octopian-configuration-apis 1.0.39 → 1.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "octopian-configuration-apis",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "description": "a configuration api sdk",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -2767,7 +2767,7 @@ export async function GetKnowledgeList(AuthToken = null, Timeout = 30000) {
2767
2767
  */
2768
2768
  export async function GetKnowledgeByOntologyId(Input, AuthToken = null, Timeout = 30000) {
2769
2769
  let APIResponse = await apiHandler.GetMethod(
2770
- ConfigurationAPIConstants.uriGetKnowledgeByOntologyId(Input.ontologyId, Input.conceptId),
2770
+ ConfigurationAPIConstants.uriGetKnowledgeByOntologyId(Input.ontologyId, Input.conceptId, Input.page, Input.pageSize),
2771
2771
  AuthToken,
2772
2772
  Timeout
2773
2773
  );
@@ -1,4 +1,6 @@
1
1
  export interface GetKnowledgeByOntologyIdInput {
2
2
  ontologyId: string;
3
3
  conceptId?: string;
4
+ page?: number;
5
+ pageSize?: number;
4
6
  }
@@ -216,8 +216,8 @@ export class ConfigurationAPIConstants {
216
216
  static uriGetKnowledgeList() {
217
217
  return ontologyURI + "/api/GetKnowledgeList";
218
218
  }
219
- static uriGetKnowledgeByOntologyId( id,conceptId = null ) {
220
- return ontologyURI + `/api/GetKnowledgeByOntologyId?modelId=${id}` + (conceptId ? `&conceptGuid=${conceptId}` : '');
219
+ static uriGetKnowledgeByOntologyId( id,conceptId = null, page = 0, pageSize = 0 ) {
220
+ return ontologyURI + `/api/GetKnowledgeByOntologyId?modelId=${id}` + (conceptId ? `&conceptGuid=${conceptId}` : '') + `&pageIndex=${page}&pageSize=${pageSize}`;
221
221
  }
222
222
  static uriUpdateKnowledge() {
223
223
  return ontologyURI + "/api/UpdateKnowledge";