Skip to content

Commit

Permalink
HIW API v5.0.1-beta.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh McCullough committed May 15, 2015
1 parent f593490 commit b187365
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 66 deletions.
1 change: 1 addition & 0 deletions Content/Scripts/API/Full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ hiw\APIResponse.ts
hiw\IAPICallback.ts
hiw\API.ts
hiw\DataObjects.Generated.ts
hiw\IndicatorDataItem.ts
hiw\Version.ts
hiw\VersionInfo.ts
hiw\Endpoints.Generated.ts
2 changes: 1 addition & 1 deletion Content/Scripts/API/Header.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Health Indicators Warehouse (HIW) JavaScript API
* v5.0.0.0 beta 1
* v5.0.1-beta.0
*
* Docs: http://developers.healthindicators.gov
* Source: https://github.com/HealthIndicators/js-api
Expand Down
56 changes: 0 additions & 56 deletions Content/Scripts/API/QUnitAssert.ts

This file was deleted.

8 changes: 4 additions & 4 deletions Content/Scripts/API/hiw/IndicatorDataItem.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Content/Scripts/API/hiw/IndicatorDataItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,22 @@

protected getFields(): any { return IndicatorDataItem.Fields; }

/** Gets IndicatorDataItems by IndicatorDescriptionID.
* @param indicatorDescriptionID The ID of the IndicatorDescription for which to retrieve the child Indicators.
/** Gets a list of all of the (flattened) IndicatorDataItems in the database which are associated with the IndicatorDescription table via the ID column.
* @param indicatorDescriptionID The ID of the IndicatorDescription for which to retrieve the child IndicatorDataItems.
* @return An Array of IndicatorDataItems. */
public static getByIndicatorDescriptionID(indicatorDescriptionID: number, api: API, callback: IAPICallback<Array<IndicatorDataItem>>, page?: number) {
api.executeEndpoint<Array<IndicatorDataItem>>(Endpoint.fromSelf<Array<IndicatorDataItem>>(), callback, { indicatorDescriptionID: indicatorDescriptionID }, null, page);
}

/** Gets how many IndicatorDataItems by IndicatorDescriptionID exist.
* @param indicatorDescriptionID The ID of the IndicatorDescription for which to retrieve the child Indicators.
* @param indicatorDescriptionID The ID of the IndicatorDescription for which to retrieve the child IndicatorDataItems.
* @return An Array of IndicatorDataItems. */
public static getByIndicatorDescriptionIDCount(indicatorDescriptionID: number, api: API, callback: IAPICallback<number>) {
api.executeEndpoint<number>(Endpoint.fromSelf<number>(), callback, { indicatorDescriptionID: indicatorDescriptionID });
}

/** Gets how many pages of IndicatorDataItems by IndicatorDescriptionID exist.
* @param indicatorDescriptionID The ID of the IndicatorDescription for which to retrieve the child Indicators.
* @param indicatorDescriptionID The ID of the IndicatorDescription for which to retrieve the child IndicatorDataItems.
* @return An Array of IndicatorDataItems. */
public static getByIndicatorDescriptionIDPageCount(indicatorDescriptionID: number, api: API, callback: IAPICallback<number>) {
api.executeEndpoint<number>(Endpoint.fromSelf<number>(), callback, { indicatorDescriptionID: indicatorDescriptionID });
Expand Down
5 changes: 4 additions & 1 deletion JavaScript API.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@
<Copy SourceFiles="Content\Scripts\API\Output\hiw-api-lite.js" DestinationFiles="Content\Scripts\API\Output\hiw-api-lite.min.js" />
<JSCompress Files="Content\Scripts\API\Output\hiw-api-lite.min.js" />
<ItemGroup>
<JSAPIOutputs Include="Content\Scripts\API\Output\*" Exclude="hiw-js-api.zip;package.json" />
<JSAPIOutputs Include="Content\Scripts\API\Output\*.ts" />
<JSAPIOutputs Include="Content\Scripts\API\Output\*.js" />
<JSAPIOutputs Include="Content\Scripts\API\Output\LICENSE.md" />
<JSAPIOutputs Include="Content\Scripts\API\Output\README.md" />
</ItemGroup>
<ItemGroup>
<JSAPIOutputs-JS Include="%(JSAPIOutputs.Identity)" Condition="'%(Extension)' == '.ts' Or '%(Extension)' == '.js'" />
Expand Down

0 comments on commit b187365

Please sign in to comment.