@alfresco/js-api 7.9.0-9305295433 → 7.9.0-9316851580

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.
@@ -29,5 +29,18 @@ export class PredictionsApi extends BaseApi {
29
29
  returnType: PredictionPaging
30
30
  });
31
31
  }
32
+ reviewPrediction(predictionId, reviewStatus) {
33
+ throwIfNotDefined(predictionId, 'predictionId');
34
+ throwIfNotDefined(reviewStatus, 'reviewStatus');
35
+ const pathParams = {
36
+ predictionId,
37
+ reviewStatus
38
+ };
39
+ return this.post({
40
+ path: '/predictions/{predictionId}/review',
41
+ pathParams,
42
+ returnType: (Promise)
43
+ });
44
+ }
32
45
  }
33
46
  //# sourceMappingURL=../../../../../../../../lib/js-api/src/api/hxi-connector-api/api/predictions.api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"predictions.api.js","sourceRoot":"","sources":["predictions.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,OAAO,cAAe,SAAQ,OAAO;IAOvC,cAAc,CAAC,MAAc;QACzB,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEpC,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,6BAA6B;YACnC,UAAU;YACV,UAAU,EAAE,gBAAgB;SAC/B,CAAC,CAAC;IACP,CAAC;CACJ","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { PredictionPaging } from '../model';\n\nexport class PredictionsApi extends BaseApi {\n /**\n * List of predictions for a node\n *\n * @param nodeId The identifier of a node.\n * @returns Promise<PredictionPaging>\n */\n getPredictions(nodeId: string): Promise<PredictionPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/predictions',\n pathParams,\n returnType: PredictionPaging\n });\n }\n}\n"]}
1
+ {"version":3,"file":"predictions.api.js","sourceRoot":"","sources":["predictions.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAgB,MAAM,UAAU,CAAC;AAE1D,MAAM,OAAO,cAAe,SAAQ,OAAO;IAOvC,cAAc,CAAC,MAAc;QACzB,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEpC,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,6BAA6B;YACnC,UAAU;YACV,UAAU,EAAE,gBAAgB;SAC/B,CAAC,CAAC;IACP,CAAC;IASD,gBAAgB,CAAC,YAAoB,EAAE,YAA0B;QAC7D,iBAAiB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QAChD,iBAAiB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QAEhD,MAAM,UAAU,GAAG;YACf,YAAY;YACZ,YAAY;SACf,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,oCAAoC;YAC1C,UAAU;YACV,UAAU,EAAE,CAAA,OAAa,CAAA;SAC5B,CAAC,CAAC;IACP,CAAC;CACJ","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { PredictionPaging, ReviewStatus } from '../model';\n\nexport class PredictionsApi extends BaseApi {\n /**\n * List of predictions for a node\n *\n * @param nodeId The identifier of a node.\n * @returns Promise<PredictionPaging>\n */\n getPredictions(nodeId: string): Promise<PredictionPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/predictions',\n pathParams,\n returnType: PredictionPaging\n });\n }\n\n /**\n * Confirm or reject a prediction\n *\n * @param predictionId The identifier of a prediction.\n * @param reviewStatus New status to apply for prediction. Can be either 'confirmed' or 'rejected'.\n * @returns Promise<void>\n */\n reviewPrediction(predictionId: string, reviewStatus: ReviewStatus): Promise<void> {\n throwIfNotDefined(predictionId, 'predictionId');\n throwIfNotDefined(reviewStatus, 'reviewStatus');\n\n const pathParams = {\n predictionId,\n reviewStatus\n };\n\n return this.post({\n path: '/predictions/{predictionId}/review',\n pathParams,\n returnType: Promise<void>\n });\n }\n}\n"]}
@@ -29,5 +29,18 @@ export class PredictionsApi extends BaseApi {
29
29
  returnType: PredictionPaging
30
30
  });
31
31
  }
32
+ reviewPrediction(predictionId, reviewStatus) {
33
+ throwIfNotDefined(predictionId, 'predictionId');
34
+ throwIfNotDefined(reviewStatus, 'reviewStatus');
35
+ const pathParams = {
36
+ predictionId,
37
+ reviewStatus
38
+ };
39
+ return this.post({
40
+ path: '/predictions/{predictionId}/review',
41
+ pathParams,
42
+ returnType: (Promise)
43
+ });
44
+ }
32
45
  }
33
46
  //# sourceMappingURL=../../../../../../../../lib/js-api/src/api/hxi-connector-api/api/predictions.api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"predictions.api.js","sourceRoot":"","sources":["predictions.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,OAAO,cAAe,SAAQ,OAAO;IAOvC,cAAc,CAAC,MAAc;QACzB,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEpC,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,6BAA6B;YACnC,UAAU;YACV,UAAU,EAAE,gBAAgB;SAC/B,CAAC,CAAC;IACP,CAAC;CACJ","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { PredictionPaging } from '../model';\n\nexport class PredictionsApi extends BaseApi {\n /**\n * List of predictions for a node\n *\n * @param nodeId The identifier of a node.\n * @returns Promise<PredictionPaging>\n */\n getPredictions(nodeId: string): Promise<PredictionPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/predictions',\n pathParams,\n returnType: PredictionPaging\n });\n }\n}\n"]}
1
+ {"version":3,"file":"predictions.api.js","sourceRoot":"","sources":["predictions.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAgB,MAAM,UAAU,CAAC;AAE1D,MAAM,OAAO,cAAe,SAAQ,OAAO;IAOvC,cAAc,CAAC,MAAc;QACzB,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEpC,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,6BAA6B;YACnC,UAAU;YACV,UAAU,EAAE,gBAAgB;SAC/B,CAAC,CAAC;IACP,CAAC;IASD,gBAAgB,CAAC,YAAoB,EAAE,YAA0B;QAC7D,iBAAiB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QAChD,iBAAiB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QAEhD,MAAM,UAAU,GAAG;YACf,YAAY;YACZ,YAAY;SACf,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,oCAAoC;YAC1C,UAAU;YACV,UAAU,EAAE,CAAA,OAAa,CAAA;SAC5B,CAAC,CAAC;IACP,CAAC;CACJ","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { PredictionPaging, ReviewStatus } from '../model';\n\nexport class PredictionsApi extends BaseApi {\n /**\n * List of predictions for a node\n *\n * @param nodeId The identifier of a node.\n * @returns Promise<PredictionPaging>\n */\n getPredictions(nodeId: string): Promise<PredictionPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/predictions',\n pathParams,\n returnType: PredictionPaging\n });\n }\n\n /**\n * Confirm or reject a prediction\n *\n * @param predictionId The identifier of a prediction.\n * @param reviewStatus New status to apply for prediction. Can be either 'confirmed' or 'rejected'.\n * @returns Promise<void>\n */\n reviewPrediction(predictionId: string, reviewStatus: ReviewStatus): Promise<void> {\n throwIfNotDefined(predictionId, 'predictionId');\n throwIfNotDefined(reviewStatus, 'reviewStatus');\n\n const pathParams = {\n predictionId,\n reviewStatus\n };\n\n return this.post({\n path: '/predictions/{predictionId}/review',\n pathParams,\n returnType: Promise<void>\n });\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfresco/js-api",
3
- "version": "7.9.0-9305295433",
3
+ "version": "7.9.0-9316851580",
4
4
  "license": "Apache-2.0",
5
5
  "description": "JavaScript client library for the Alfresco REST API",
6
6
  "author": "Hyland Software, Inc. and its affiliates",
@@ -32,6 +32,19 @@ class PredictionsApi extends base_api_1.BaseApi {
32
32
  returnType: model_1.PredictionPaging
33
33
  });
34
34
  }
35
+ reviewPrediction(predictionId, reviewStatus) {
36
+ (0, assert_1.throwIfNotDefined)(predictionId, 'predictionId');
37
+ (0, assert_1.throwIfNotDefined)(reviewStatus, 'reviewStatus');
38
+ const pathParams = {
39
+ predictionId,
40
+ reviewStatus
41
+ };
42
+ return this.post({
43
+ path: '/predictions/{predictionId}/review',
44
+ pathParams,
45
+ returnType: (Promise)
46
+ });
47
+ }
35
48
  }
36
49
  exports.PredictionsApi = PredictionsApi;
37
50
  //# sourceMappingURL=../../../../../../../lib/js-api/src/api/hxi-connector-api/api/predictions.api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"predictions.api.js","sourceRoot":"","sources":["predictions.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,yCAAqC;AACrC,4CAAoD;AACpD,oCAA4C;AAE5C,MAAa,cAAe,SAAQ,kBAAO;IAOvC,cAAc,CAAC,MAAc;QACzB,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEpC,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,6BAA6B;YACnC,UAAU;YACV,UAAU,EAAE,wBAAgB;SAC/B,CAAC,CAAC;IACP,CAAC;CACJ;AApBD,wCAoBC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { PredictionPaging } from '../model';\n\nexport class PredictionsApi extends BaseApi {\n /**\n * List of predictions for a node\n *\n * @param nodeId The identifier of a node.\n * @returns Promise<PredictionPaging>\n */\n getPredictions(nodeId: string): Promise<PredictionPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/predictions',\n pathParams,\n returnType: PredictionPaging\n });\n }\n}\n"]}
1
+ {"version":3,"file":"predictions.api.js","sourceRoot":"","sources":["predictions.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,yCAAqC;AACrC,4CAAoD;AACpD,oCAA0D;AAE1D,MAAa,cAAe,SAAQ,kBAAO;IAOvC,cAAc,CAAC,MAAc;QACzB,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEpC,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,6BAA6B;YACnC,UAAU;YACV,UAAU,EAAE,wBAAgB;SAC/B,CAAC,CAAC;IACP,CAAC;IASD,gBAAgB,CAAC,YAAoB,EAAE,YAA0B;QAC7D,IAAA,0BAAiB,EAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QAChD,IAAA,0BAAiB,EAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QAEhD,MAAM,UAAU,GAAG;YACf,YAAY;YACZ,YAAY;SACf,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,oCAAoC;YAC1C,UAAU;YACV,UAAU,EAAE,CAAA,OAAa,CAAA;SAC5B,CAAC,CAAC;IACP,CAAC;CACJ;AA3CD,wCA2CC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { PredictionPaging, ReviewStatus } from '../model';\n\nexport class PredictionsApi extends BaseApi {\n /**\n * List of predictions for a node\n *\n * @param nodeId The identifier of a node.\n * @returns Promise<PredictionPaging>\n */\n getPredictions(nodeId: string): Promise<PredictionPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/predictions',\n pathParams,\n returnType: PredictionPaging\n });\n }\n\n /**\n * Confirm or reject a prediction\n *\n * @param predictionId The identifier of a prediction.\n * @param reviewStatus New status to apply for prediction. Can be either 'confirmed' or 'rejected'.\n * @returns Promise<void>\n */\n reviewPrediction(predictionId: string, reviewStatus: ReviewStatus): Promise<void> {\n throwIfNotDefined(predictionId, 'predictionId');\n throwIfNotDefined(reviewStatus, 'reviewStatus');\n\n const pathParams = {\n predictionId,\n reviewStatus\n };\n\n return this.post({\n path: '/predictions/{predictionId}/review',\n pathParams,\n returnType: Promise<void>\n });\n }\n}\n"]}
@@ -15,7 +15,7 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { BaseApi } from './base.api';
18
- import { PredictionPaging } from '../model';
18
+ import { PredictionPaging, ReviewStatus } from '../model';
19
19
  export declare class PredictionsApi extends BaseApi {
20
20
  /**
21
21
  * List of predictions for a node
@@ -24,4 +24,12 @@ export declare class PredictionsApi extends BaseApi {
24
24
  * @returns Promise<PredictionPaging>
25
25
  */
26
26
  getPredictions(nodeId: string): Promise<PredictionPaging>;
27
+ /**
28
+ * Confirm or reject a prediction
29
+ *
30
+ * @param predictionId The identifier of a prediction.
31
+ * @param reviewStatus New status to apply for prediction. Can be either 'confirmed' or 'rejected'.
32
+ * @returns Promise<void>
33
+ */
34
+ reviewPrediction(predictionId: string, reviewStatus: ReviewStatus): Promise<void>;
27
35
  }