@alfresco/js-api 7.8.0 → 7.9.0-10005011517
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/esm2015/index.js +1 -0
- package/esm2015/index.js.map +1 -1
- package/esm2015/src/alfrescoApi.js +34 -1
- package/esm2015/src/alfrescoApi.js.map +1 -1
- package/esm2015/src/api/activiti-rest-api/model/formDefinitionRepresentation.js.map +1 -1
- package/esm2015/src/api/activiti-rest-api/model/processInstanceFilterRepresentation.js.map +1 -1
- package/esm2015/src/api/activiti-rest-api/model/processInstanceQueryRepresentation.js.map +1 -1
- package/esm2015/src/api/hxi-connector-api/api/base.api.js +23 -0
- package/esm2015/src/api/hxi-connector-api/api/base.api.js.map +1 -0
- package/esm2015/src/api/hxi-connector-api/api/index.js +18 -0
- package/esm2015/src/api/hxi-connector-api/api/index.js.map +1 -0
- package/esm2015/src/api/hxi-connector-api/api/predictions.api.js +46 -0
- package/esm2015/src/api/hxi-connector-api/api/predictions.api.js.map +1 -0
- package/esm2015/src/api/hxi-connector-api/index.js +19 -0
- package/esm2015/src/api/hxi-connector-api/index.js.map +1 -0
- package/esm2015/src/api/hxi-connector-api/model/index.js +21 -0
- package/esm2015/src/api/hxi-connector-api/model/index.js.map +1 -0
- package/esm2015/src/api/hxi-connector-api/model/prediction.js +32 -0
- package/esm2015/src/api/hxi-connector-api/model/prediction.js.map +1 -0
- package/esm2015/src/api/hxi-connector-api/model/predictionEntry.js +26 -0
- package/esm2015/src/api/hxi-connector-api/model/predictionEntry.js.map +1 -0
- package/esm2015/src/api/hxi-connector-api/model/predictionPaging.js +26 -0
- package/esm2015/src/api/hxi-connector-api/model/predictionPaging.js.map +1 -0
- package/esm2015/src/api/hxi-connector-api/model/predictionPagingList.js +30 -0
- package/esm2015/src/api/hxi-connector-api/model/predictionPagingList.js.map +1 -0
- package/esm2015/src/api-clients/api-client.js +3 -3
- package/esm2015/src/api-clients/api-client.js.map +1 -1
- package/esm2015/src/to-deprecate/alfresco-api-type.js.map +1 -1
- package/esm2015/types.js +18 -0
- package/esm2015/types.js.map +1 -0
- package/esm5/index.js +1 -0
- package/esm5/index.js.map +1 -1
- package/esm5/src/alfrescoApi.js +34 -1
- package/esm5/src/alfrescoApi.js.map +1 -1
- package/esm5/src/api/activiti-rest-api/model/formDefinitionRepresentation.js.map +1 -1
- package/esm5/src/api/activiti-rest-api/model/processInstanceFilterRepresentation.js.map +1 -1
- package/esm5/src/api/activiti-rest-api/model/processInstanceQueryRepresentation.js.map +1 -1
- package/esm5/src/api/hxi-connector-api/api/base.api.js +23 -0
- package/esm5/src/api/hxi-connector-api/api/base.api.js.map +1 -0
- package/esm5/src/api/hxi-connector-api/api/index.js +18 -0
- package/esm5/src/api/hxi-connector-api/api/index.js.map +1 -0
- package/esm5/src/api/hxi-connector-api/api/predictions.api.js +46 -0
- package/esm5/src/api/hxi-connector-api/api/predictions.api.js.map +1 -0
- package/esm5/src/api/hxi-connector-api/index.js +19 -0
- package/esm5/src/api/hxi-connector-api/index.js.map +1 -0
- package/esm5/src/api/hxi-connector-api/model/index.js +21 -0
- package/esm5/src/api/hxi-connector-api/model/index.js.map +1 -0
- package/esm5/src/api/hxi-connector-api/model/prediction.js +32 -0
- package/esm5/src/api/hxi-connector-api/model/prediction.js.map +1 -0
- package/esm5/src/api/hxi-connector-api/model/predictionEntry.js +26 -0
- package/esm5/src/api/hxi-connector-api/model/predictionEntry.js.map +1 -0
- package/esm5/src/api/hxi-connector-api/model/predictionPaging.js +26 -0
- package/esm5/src/api/hxi-connector-api/model/predictionPaging.js.map +1 -0
- package/esm5/src/api/hxi-connector-api/model/predictionPagingList.js +30 -0
- package/esm5/src/api/hxi-connector-api/model/predictionPagingList.js.map +1 -0
- package/esm5/src/api-clients/api-client.js +3 -3
- package/esm5/src/api-clients/api-client.js.map +1 -1
- package/esm5/src/to-deprecate/alfresco-api-type.js.map +1 -1
- package/esm5/types.js +18 -0
- package/esm5/types.js.map +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/src/alfrescoApi.js +34 -1
- package/src/alfrescoApi.js.map +1 -1
- package/src/api/activiti-rest-api/model/formDefinitionRepresentation.js.map +1 -1
- package/src/api/activiti-rest-api/model/processInstanceFilterRepresentation.js.map +1 -1
- package/src/api/activiti-rest-api/model/processInstanceQueryRepresentation.js.map +1 -1
- package/src/api/hxi-connector-api/api/base.api.js +27 -0
- package/src/api/hxi-connector-api/api/base.api.js.map +1 -0
- package/src/api/hxi-connector-api/api/index.js +21 -0
- package/src/api/hxi-connector-api/api/index.js.map +1 -0
- package/src/api/hxi-connector-api/api/predictions.api.js +50 -0
- package/src/api/hxi-connector-api/api/predictions.api.js.map +1 -0
- package/src/api/hxi-connector-api/index.js +22 -0
- package/src/api/hxi-connector-api/index.js.map +1 -0
- package/src/api/hxi-connector-api/model/index.js +24 -0
- package/src/api/hxi-connector-api/model/index.js.map +1 -0
- package/src/api/hxi-connector-api/model/prediction.js +36 -0
- package/src/api/hxi-connector-api/model/prediction.js.map +1 -0
- package/src/api/hxi-connector-api/model/predictionEntry.js +30 -0
- package/src/api/hxi-connector-api/model/predictionEntry.js.map +1 -0
- package/src/api/hxi-connector-api/model/predictionPaging.js +30 -0
- package/src/api/hxi-connector-api/model/predictionPaging.js.map +1 -0
- package/src/api/hxi-connector-api/model/predictionPagingList.js +34 -0
- package/src/api/hxi-connector-api/model/predictionPagingList.js.map +1 -0
- package/src/api-clients/api-client.js +3 -3
- package/src/api-clients/api-client.js.map +1 -1
- package/src/to-deprecate/alfresco-api-type.js.map +1 -1
- package/types.js +19 -0
- package/types.js.map +1 -0
- package/typings/index.d.ts +1 -0
- package/typings/src/alfrescoApi.d.ts +4 -1
- package/typings/src/alfrescoApiClient.d.ts +1 -1
- package/typings/src/api/activiti-rest-api/api/types.d.ts +2 -2
- package/typings/src/api/activiti-rest-api/api/users.api.d.ts +1 -1
- package/typings/src/api/activiti-rest-api/model/formDefinitionRepresentation.d.ts +2 -0
- package/typings/src/api/activiti-rest-api/model/processInstanceFilterRepresentation.d.ts +1 -0
- package/typings/src/api/activiti-rest-api/model/processInstanceQueryRepresentation.d.ts +5 -2
- package/typings/src/api/content-rest-api/api/categories.api.d.ts +1 -1
- package/typings/src/api/content-rest-api/api/groups.api.d.ts +1 -1
- package/typings/src/api/content-rest-api/api/nodes.api.d.ts +1 -1
- package/typings/src/api/content-rest-api/api/queries.api.d.ts +2 -2
- package/typings/src/api/content-rest-api/api/types.d.ts +3 -3
- package/typings/src/api/gs-classification-rest-api/api/types.d.ts +4 -4
- package/typings/src/api/gs-classification-rest-api/model/declassificationDate.d.ts +1 -1
- package/typings/src/api/gs-core-rest-api/api/types.d.ts +4 -4
- package/typings/src/api/hxi-connector-api/api/base.api.d.ts +21 -0
- package/typings/src/api/hxi-connector-api/api/index.d.ts +17 -0
- package/typings/src/api/hxi-connector-api/api/predictions.api.d.ts +35 -0
- package/typings/src/api/hxi-connector-api/index.d.ts +18 -0
- package/typings/src/api/hxi-connector-api/model/index.d.ts +20 -0
- package/typings/src/api/hxi-connector-api/model/prediction.d.ts +34 -0
- package/typings/src/api/hxi-connector-api/model/predictionEntry.d.ts +21 -0
- package/typings/src/api/hxi-connector-api/model/predictionPaging.d.ts +21 -0
- package/typings/src/api/hxi-connector-api/model/predictionPagingList.d.ts +23 -0
- package/typings/src/to-deprecate/alfresco-api-type.d.ts +1 -0
- package/typings/types.d.ts +17 -0
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
tslib_1.__exportStar(require("./api"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./model"), exports);
|
|
22
|
+
//# sourceMappingURL=../../../../../../lib/js-api/src/api/hxi-connector-api/index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,gDAAsB;AACtB,kDAAwB","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\nexport * from './api';\nexport * from './model';\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
tslib_1.__exportStar(require("./prediction"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./predictionEntry"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./predictionPaging"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./predictionPagingList"), exports);
|
|
24
|
+
//# sourceMappingURL=../../../../../../../lib/js-api/src/api/hxi-connector-api/model/index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,uDAA6B;AAC7B,4DAAkC;AAClC,6DAAmC;AACnC,iEAAuC","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\nexport * from './prediction';\nexport * from './predictionEntry';\nexport * from './predictionPaging';\nexport * from './predictionPagingList';\n"]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.ReviewStatus = exports.Prediction = void 0;
|
|
20
|
+
const content_custom_api_1 = require("../../content-custom-api");
|
|
21
|
+
class Prediction {
|
|
22
|
+
constructor(input) {
|
|
23
|
+
if (input) {
|
|
24
|
+
Object.assign(this, input);
|
|
25
|
+
this.predictionDateTime = input.predictionDateTime ? content_custom_api_1.DateAlfresco.parseDate(input.predictionDateTime) : undefined;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.Prediction = Prediction;
|
|
30
|
+
var ReviewStatus;
|
|
31
|
+
(function (ReviewStatus) {
|
|
32
|
+
ReviewStatus["UNREVIEWED"] = "UNREVIEWED";
|
|
33
|
+
ReviewStatus["CONFIRMED"] = "CONFIRMED";
|
|
34
|
+
ReviewStatus["REJECTED"] = "REJECTED";
|
|
35
|
+
})(ReviewStatus = exports.ReviewStatus || (exports.ReviewStatus = {}));
|
|
36
|
+
//# sourceMappingURL=../../../../../../../lib/js-api/src/api/hxi-connector-api/model/prediction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prediction.js","sourceRoot":"","sources":["prediction.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,iEAAwD;AAExD,MAAa,UAAU;IAWnB,YAAY,KAA2B;QACnC,IAAI,KAAK,EAAE;YACP,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YAC3B,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,iCAAY,CAAC,SAAS,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;SACrH;IACL,CAAC;CACJ;AAjBD,gCAiBC;AAID,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,yCAAyB,CAAA;IACzB,uCAAuB,CAAA;IACvB,qCAAqB,CAAA;AACzB,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB","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 { DateAlfresco } from '../../content-custom-api';\n\nexport class Prediction {\n id: string;\n modelId: string;\n confidenceLevel: number;\n predictionDateTime: Date;\n property: string;\n previousValue: any;\n predictionValue: any;\n updateType: UpdateType;\n reviewStatus: ReviewStatus;\n\n constructor(input?: Partial<Prediction>) {\n if (input) {\n Object.assign(this, input);\n this.predictionDateTime = input.predictionDateTime ? DateAlfresco.parseDate(input.predictionDateTime) : undefined;\n }\n }\n}\n\nexport type UpdateType = 'AUTOFILL' | 'AUTOCORRECT';\n\nexport enum ReviewStatus {\n UNREVIEWED = 'UNREVIEWED',\n CONFIRMED = 'CONFIRMED',\n REJECTED = 'REJECTED'\n}\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.PredictionEntry = void 0;
|
|
20
|
+
const prediction_1 = require("./prediction");
|
|
21
|
+
class PredictionEntry {
|
|
22
|
+
constructor(input) {
|
|
23
|
+
if (input) {
|
|
24
|
+
Object.assign(this, input);
|
|
25
|
+
this.entry = input.entry ? new prediction_1.Prediction(input.entry) : undefined;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.PredictionEntry = PredictionEntry;
|
|
30
|
+
//# sourceMappingURL=../../../../../../../lib/js-api/src/api/hxi-connector-api/model/predictionEntry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"predictionEntry.js","sourceRoot":"","sources":["predictionEntry.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,6CAA0C;AAE1C,MAAa,eAAe;IAGxB,YAAY,KAAgC;QACxC,IAAI,KAAK,EAAE;YACP,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,uBAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;SACtE;IACL,CAAC;CACJ;AATD,0CASC","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 { Prediction } from './prediction';\n\nexport class PredictionEntry {\n entry: Prediction;\n\n constructor(input?: Partial<PredictionEntry>) {\n if (input) {\n Object.assign(this, input);\n this.entry = input.entry ? new Prediction(input.entry) : undefined;\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.PredictionPaging = void 0;
|
|
20
|
+
const predictionPagingList_1 = require("./predictionPagingList");
|
|
21
|
+
class PredictionPaging {
|
|
22
|
+
constructor(input) {
|
|
23
|
+
if (input) {
|
|
24
|
+
Object.assign(this, input);
|
|
25
|
+
this.list = input.list ? new predictionPagingList_1.PredictionPagingList(input.list) : undefined;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.PredictionPaging = PredictionPaging;
|
|
30
|
+
//# sourceMappingURL=../../../../../../../lib/js-api/src/api/hxi-connector-api/model/predictionPaging.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"predictionPaging.js","sourceRoot":"","sources":["predictionPaging.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,iEAA8D;AAE9D,MAAa,gBAAgB;IAGzB,YAAY,KAAiC;QACzC,IAAI,KAAK,EAAE;YACP,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YAC3B,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,2CAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7E;IACL,CAAC;CACJ;AATD,4CASC","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 { PredictionPagingList } from './predictionPagingList';\n\nexport class PredictionPaging {\n list?: PredictionPagingList;\n\n constructor(input?: Partial<PredictionPaging>) {\n if (input) {\n Object.assign(this, input);\n this.list = input.list ? new PredictionPagingList(input.list) : undefined;\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.PredictionPagingList = void 0;
|
|
20
|
+
const pagination_1 = require("../../content-rest-api/model/pagination");
|
|
21
|
+
const predictionEntry_1 = require("./predictionEntry");
|
|
22
|
+
class PredictionPagingList {
|
|
23
|
+
constructor(input) {
|
|
24
|
+
if (input) {
|
|
25
|
+
Object.assign(this, input);
|
|
26
|
+
this.pagination = input.pagination ? new pagination_1.Pagination(input.pagination) : undefined;
|
|
27
|
+
if (input.entries) {
|
|
28
|
+
this.entries = input.entries.map((item) => new predictionEntry_1.PredictionEntry(item));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.PredictionPagingList = PredictionPagingList;
|
|
34
|
+
//# sourceMappingURL=../../../../../../../lib/js-api/src/api/hxi-connector-api/model/predictionPagingList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"predictionPagingList.js","sourceRoot":"","sources":["predictionPagingList.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,wEAAqE;AACrE,uDAAoD;AAEpD,MAAa,oBAAoB;IAI7B,YAAY,KAAqC;QAC7C,IAAI,KAAK,EAAE;YACP,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YAC3B,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,uBAAU,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,IAAI,KAAK,CAAC,OAAO,EAAE;gBACf,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,iCAAe,CAAC,IAAI,CAAC,CAAC,CAAC;aACzE;SACJ;IACL,CAAC;CACJ;AAbD,oDAaC","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 { Pagination } from '../../content-rest-api/model/pagination';\nimport { PredictionEntry } from './predictionEntry';\n\nexport class PredictionPagingList {\n pagination?: Pagination;\n entries?: PredictionEntry[];\n\n constructor(input?: Partial<PredictionPagingList>) {\n if (input) {\n Object.assign(this, input);\n this.pagination = input.pagination ? new Pagination(input.pagination) : undefined;\n if (input.entries) {\n this.entries = input.entries.map((item) => new PredictionEntry(item));\n }\n }\n }\n}\n"]}
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
exports.ApiClient = void 0;
|
|
20
20
|
class ApiClient {
|
|
21
|
+
get apiClient() {
|
|
22
|
+
return this.httpClient;
|
|
23
|
+
}
|
|
21
24
|
constructor(httpClient) {
|
|
22
25
|
if ((httpClient === null || httpClient === void 0 ? void 0 : httpClient.__type) === 'legacy-client') {
|
|
23
26
|
this.alfrescoApi = httpClient;
|
|
@@ -26,9 +29,6 @@ class ApiClient {
|
|
|
26
29
|
this.httpClient = httpClient;
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
|
-
get apiClient() {
|
|
30
|
-
return this.httpClient;
|
|
31
|
-
}
|
|
32
32
|
post(options) {
|
|
33
33
|
return this.apiClient.post(options);
|
|
34
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-client.js","sourceRoot":"","sources":["api-client.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAKH,MAAsB,SAAS;
|
|
1
|
+
{"version":3,"file":"api-client.js","sourceRoot":"","sources":["api-client.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAKH,MAAsB,SAAS;IAI3B,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAID,YAAY,UAA+C;QACvD,IAAI,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,MAAK,eAAe,EAAE;YAExC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;SACjC;aAAM;YACH,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;SAChC;IACL,CAAC;IAED,IAAI,CAAU,OAAuB;QACjC,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAI,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,GAAG,CAAU,OAAuB;QAChC,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAI,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,GAAG,CAAU,OAAuB;QAChC,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAI,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,CAAW,OAAuB;QACpC,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,YAAY,CAAC,KAAa,EAAE,UAAkB;QAC1C,OAAO,iBAAiB,KAAK,OAAO,UAAU,EAAE,CAAC;IACrD,CAAC;CACJ;AAtCD,8BAsCC","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 { AlfrescoApiType } from '../to-deprecate/alfresco-api-type';\nimport { LegacyHttpClient, RequestOptions } from './http-client.interface';\n\nexport abstract class ApiClient {\n protected alfrescoApi: AlfrescoApiType;\n protected httpClient: LegacyHttpClient;\n\n get apiClient(): LegacyHttpClient {\n return this.httpClient;\n }\n\n constructor(legacyApi?: AlfrescoApiType);\n constructor(httpClient: LegacyHttpClient);\n constructor(httpClient?: AlfrescoApiType & LegacyHttpClient) {\n if (httpClient?.__type === 'legacy-client') {\n // TODO: remove legacyApi?: AlfrescoApi option and clean up this code. BREAKING CHANGE!\n this.alfrescoApi = httpClient;\n } else {\n this.httpClient = httpClient;\n }\n }\n\n post<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.post<T>(options);\n }\n\n put<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.put<T>(options);\n }\n\n get<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.get<T>(options);\n }\n\n delete<T = void>(options: RequestOptions): Promise<T> {\n return this.apiClient.delete(options);\n }\n\n errorMessage(param: string, methodName: string) {\n return `Missing param ${param} in ${methodName}`;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alfresco-api-type.js","sourceRoot":"","sources":["alfresco-api-type.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG","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 { AlfrescoApiConfig } from '../alfrescoApiConfig';\nimport { LegacyHttpClient } from '../api-clients/http-client.interface';\n\nexport interface LegacyTicketApi {\n getAlfTicket(ticket: string): string;\n}\n\n// Extracted from existing AlfrescoApi:\nexport interface AlfrescoApiType {\n __type: string;\n config: AlfrescoApiConfig;\n contentClient: LegacyHttpClient & LegacyTicketApi;\n contentPrivateClient: LegacyHttpClient & LegacyTicketApi;\n processClient: LegacyHttpClient;\n searchClient: LegacyHttpClient;\n discoveryClient: LegacyHttpClient;\n gsClient: LegacyHttpClient;\n authClient: LegacyHttpClient;\n processAuth: LegacyHttpClient;\n\n setConfig(config: AlfrescoApiConfig): void;\n changeWithCredentialsConfig(withCredentials: boolean): void;\n changeCsrfConfig(disableCsrf: boolean): void;\n changeEcmHost(hostEcm: string): void;\n changeBpmHost(hostBpm: string): void;\n login(username: string, password: string): Promise<any>;\n isCredentialValid(credential: string): boolean;\n implicitLogin(): Promise<any>;\n loginTicket(ticketEcm: string, ticketBpm: string): Promise<any>;\n logout(): Promise<any>;\n isLoggedIn(): boolean;\n isBpmLoggedIn(): boolean;\n isEcmLoggedIn(): boolean;\n getBpmUsername(): string;\n getEcmUsername(): string;\n refreshToken(): Promise<string>;\n getTicketAuth(): string;\n setTicket(ticketEcm: string, TicketBpm: string): void;\n invalidateSession(): void;\n getTicketBpm(): string;\n getTicketEcm(): string;\n getTicket(): string[];\n isBpmConfiguration(): boolean;\n isEcmConfiguration(): boolean;\n isOauthConfiguration(): boolean;\n isPublicUrl(): boolean;\n isEcmBpmConfiguration(): boolean;\n reply(event: string, callback?: any): void;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"alfresco-api-type.js","sourceRoot":"","sources":["alfresco-api-type.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG","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 { AlfrescoApiConfig } from '../alfrescoApiConfig';\nimport { LegacyHttpClient } from '../api-clients/http-client.interface';\n\nexport interface LegacyTicketApi {\n getAlfTicket(ticket: string): string;\n}\n\n// Extracted from existing AlfrescoApi:\nexport interface AlfrescoApiType {\n __type: string;\n config: AlfrescoApiConfig;\n contentClient: LegacyHttpClient & LegacyTicketApi;\n contentPrivateClient: LegacyHttpClient & LegacyTicketApi;\n processClient: LegacyHttpClient;\n searchClient: LegacyHttpClient;\n discoveryClient: LegacyHttpClient;\n gsClient: LegacyHttpClient;\n authClient: LegacyHttpClient;\n processAuth: LegacyHttpClient;\n hxiConnectorClient: LegacyHttpClient;\n\n setConfig(config: AlfrescoApiConfig): void;\n changeWithCredentialsConfig(withCredentials: boolean): void;\n changeCsrfConfig(disableCsrf: boolean): void;\n changeEcmHost(hostEcm: string): void;\n changeBpmHost(hostBpm: string): void;\n login(username: string, password: string): Promise<any>;\n isCredentialValid(credential: string): boolean;\n implicitLogin(): Promise<any>;\n loginTicket(ticketEcm: string, ticketBpm: string): Promise<any>;\n logout(): Promise<any>;\n isLoggedIn(): boolean;\n isBpmLoggedIn(): boolean;\n isEcmLoggedIn(): boolean;\n getBpmUsername(): string;\n getEcmUsername(): string;\n refreshToken(): Promise<string>;\n getTicketAuth(): string;\n setTicket(ticketEcm: string, TicketBpm: string): void;\n invalidateSession(): void;\n getTicketBpm(): string;\n getTicketEcm(): string;\n getTicket(): string[];\n isBpmConfiguration(): boolean;\n isEcmConfiguration(): boolean;\n isOauthConfiguration(): boolean;\n isPublicUrl(): boolean;\n isEcmBpmConfiguration(): boolean;\n reply(event: string, callback?: any): void;\n}\n"]}
|
package/types.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
//# sourceMappingURL=../../../lib/js-api/types.js.map
|
package/types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG","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\n// Creates a union type of string literals with strings, but retains intellisense for the literals.\n// Union<string, 'foo' | 'bar'> => string | Omit<string, 'foo' | 'bar'>\nexport type Union<S = string, T extends string | number = string> = T | Omit<S, T>;\n"]}
|
package/typings/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export * from './src/api/auth-rest-api/index';
|
|
|
23
23
|
export * from './src/api/activiti-rest-api/index';
|
|
24
24
|
export * from './src/api/search-rest-api/index';
|
|
25
25
|
export * from './src/api/model-rest-api/index';
|
|
26
|
+
export * from './src/api/hxi-connector-api/index';
|
|
26
27
|
export * from './src/api/content-custom-api/api/content.api';
|
|
27
28
|
export * from './src/authentication/contentAuth';
|
|
28
29
|
export * from './src/authentication/processAuth';
|
|
@@ -37,6 +37,7 @@ export declare class AlfrescoApi implements Emitter, AlfrescoApiType {
|
|
|
37
37
|
discoveryClient: ContentClient;
|
|
38
38
|
gsClient: ContentClient;
|
|
39
39
|
authClient: ContentClient;
|
|
40
|
+
hxiConnectorClient: ContentClient;
|
|
40
41
|
oauth2Auth: Oauth2Auth;
|
|
41
42
|
processAuth: ProcessAuth;
|
|
42
43
|
contentAuth: ContentAuth;
|
|
@@ -47,7 +48,9 @@ export declare class AlfrescoApi implements Emitter, AlfrescoApiType {
|
|
|
47
48
|
emit: (type: string, ...args: any[]) => void;
|
|
48
49
|
username: string;
|
|
49
50
|
constructor(config?: AlfrescoApiConfig, httpClient?: HttpClient);
|
|
50
|
-
setConfig(config: AlfrescoApiConfig):
|
|
51
|
+
setConfig(config: AlfrescoApiConfig): void;
|
|
52
|
+
private initConfig;
|
|
53
|
+
private validateTicket;
|
|
51
54
|
private initAuth;
|
|
52
55
|
private clientsFactory;
|
|
53
56
|
/**@private? */
|
|
@@ -19,7 +19,7 @@ import { AlfrescoApiConfig } from './alfrescoApiConfig';
|
|
|
19
19
|
import { Authentication } from './authentication/authentication';
|
|
20
20
|
import { HttpClient, LegacyHttpClient, RequestOptions } from './api-clients/http-client.interface';
|
|
21
21
|
import { Storage } from './storage';
|
|
22
|
-
export
|
|
22
|
+
export type AlfrescoApiClientPromise<T = any> = Promise<T> & {
|
|
23
23
|
on: ee.EmitterMethod;
|
|
24
24
|
off: ee.EmitterMethod;
|
|
25
25
|
once: ee.EmitterMethod;
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export type ScopeQuery = {
|
|
18
18
|
scope?: string;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type AppIdQuery = {
|
|
21
21
|
appId?: number;
|
|
22
22
|
};
|
|
@@ -19,7 +19,7 @@ import { ResultListDataRepresentationLightUserRepresentation } from '../model/re
|
|
|
19
19
|
import { UserActionRepresentation } from '../model/userActionRepresentation';
|
|
20
20
|
import { UserRepresentation } from '../model/userRepresentation';
|
|
21
21
|
import { BaseApi } from './base.api';
|
|
22
|
-
export
|
|
22
|
+
export type GetUsersQuery = {
|
|
23
23
|
filter?: string;
|
|
24
24
|
email?: string;
|
|
25
25
|
externalId?: string;
|
|
@@ -20,6 +20,7 @@ import { FormJavascriptEventRepresentation } from './formJavascriptEventRepresen
|
|
|
20
20
|
import { FormOutcomeRepresentation } from './formOutcomeRepresentation';
|
|
21
21
|
import { FormTabRepresentation } from './formTabRepresentation';
|
|
22
22
|
import { FormVariableRepresentation } from './formVariableRepresentation';
|
|
23
|
+
import { RestVariable } from './restVariable';
|
|
23
24
|
export interface FormDefinitionRepresentation {
|
|
24
25
|
className?: string;
|
|
25
26
|
customFieldTemplates?: {
|
|
@@ -49,4 +50,5 @@ export interface FormDefinitionRepresentation {
|
|
|
49
50
|
taskId?: string;
|
|
50
51
|
taskName?: string;
|
|
51
52
|
variables?: FormVariableRepresentation[];
|
|
53
|
+
processVariables?: RestVariable[];
|
|
52
54
|
}
|
|
@@ -14,13 +14,16 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
+
import { Union } from '../../../../types';
|
|
17
18
|
export interface ProcessInstanceQueryRepresentation {
|
|
18
19
|
appDefinitionId?: number;
|
|
19
20
|
page?: number;
|
|
20
21
|
processDefinitionId?: string;
|
|
21
22
|
processInstanceId?: string;
|
|
22
23
|
size?: number;
|
|
23
|
-
sort?:
|
|
24
|
+
sort?: ProcessInstanceQueryRepresentationSort;
|
|
24
25
|
start?: number;
|
|
25
|
-
state?:
|
|
26
|
+
state?: ProcessInstanceQueryRepresentationState;
|
|
26
27
|
}
|
|
28
|
+
export type ProcessInstanceQueryRepresentationSort = Union<string, 'created-desc' | 'created-asc' | 'ended-desc' | 'ended-asc'>;
|
|
29
|
+
export type ProcessInstanceQueryRepresentationState = Union<string, 'running' | 'completed' | 'all' | 'open'>;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { BaseApi } from './base.api';
|
|
18
18
|
import { CategoryBody, CategoryEntry, CategoryLinkBody, CategoryPaging } from '../model';
|
|
19
19
|
import { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';
|
|
20
|
-
export
|
|
20
|
+
export type CategoryQuery = ContentFieldsQuery & ContentIncludeQuery;
|
|
21
21
|
/**
|
|
22
22
|
* Categories service.
|
|
23
23
|
*/
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { AssociationBody, AssociationEntry, ChildAssociationBody, ChildAssociationEntry, DirectAccessUrlEntry, NodeAssociationPaging, NodeBodyCopy, NodeBodyCreate, NodeBodyLock, NodeBodyMove, NodeBodyUpdate, NodeChildAssociationPaging, NodeEntry } from '../model';
|
|
18
18
|
import { BaseApi } from './base.api';
|
|
19
19
|
import { ContentPagingQuery } from './types';
|
|
20
|
-
export
|
|
20
|
+
export type NodesIncludeQuery = {
|
|
21
21
|
/**
|
|
22
22
|
* Returns additional information about the node. The following optional fields can be requested:
|
|
23
23
|
* - allowableOperations
|
|
@@ -19,7 +19,7 @@ import { PersonPaging } from '../model/personPaging';
|
|
|
19
19
|
import { SitePaging } from '../model/sitePaging';
|
|
20
20
|
import { BaseApi } from './base.api';
|
|
21
21
|
import { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';
|
|
22
|
-
export
|
|
22
|
+
export type FindQuery = {
|
|
23
23
|
/**
|
|
24
24
|
* The term to search for.
|
|
25
25
|
*/
|
|
@@ -35,7 +35,7 @@ export declare type FindQuery = {
|
|
|
35
35
|
*/
|
|
36
36
|
orderBy?: string[];
|
|
37
37
|
} & ContentPagingQuery & ContentFieldsQuery;
|
|
38
|
-
export
|
|
38
|
+
export type FindNodesQuery = {
|
|
39
39
|
/**
|
|
40
40
|
* The id of the node to start the search from.
|
|
41
41
|
* Supports the aliases **-my-**, **-root-** and **-shared-**.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export type ContentPagingQuery = {
|
|
18
18
|
/**
|
|
19
19
|
* The number of entities that exist in the collection before those included in this list.
|
|
20
20
|
*/
|
|
@@ -24,13 +24,13 @@ export declare type ContentPagingQuery = {
|
|
|
24
24
|
*/
|
|
25
25
|
maxItems?: number;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type ContentIncludeQuery = {
|
|
28
28
|
/**
|
|
29
29
|
* Returns additional information about the record. Any optional field from the response model can be requested.
|
|
30
30
|
*/
|
|
31
31
|
include?: string[];
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export type ContentFieldsQuery = {
|
|
34
34
|
/**
|
|
35
35
|
* A list of field names.
|
|
36
36
|
*
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export type GsGroupInclude = {
|
|
18
18
|
/**
|
|
19
19
|
* Returns additional information about the security group. The following optional fields can be requested:
|
|
20
20
|
* - inUse - A flag indicating whether the security group is in use or not.
|
|
21
21
|
*/
|
|
22
22
|
include?: string;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type GsPagingQuery = {
|
|
25
25
|
/**
|
|
26
26
|
* The number of entities that exist in the collection before those included in this list.
|
|
27
27
|
*/
|
|
@@ -31,7 +31,7 @@ export declare type GsPagingQuery = {
|
|
|
31
31
|
*/
|
|
32
32
|
maxItems?: number;
|
|
33
33
|
};
|
|
34
|
-
export
|
|
34
|
+
export type GsFieldsQuery = {
|
|
35
35
|
/**
|
|
36
36
|
* A list of field names.
|
|
37
37
|
*
|
|
@@ -47,7 +47,7 @@ export declare type GsFieldsQuery = {
|
|
|
47
47
|
*/
|
|
48
48
|
fields?: string[];
|
|
49
49
|
};
|
|
50
|
-
export
|
|
50
|
+
export type GsIncludeQuery = {
|
|
51
51
|
/**
|
|
52
52
|
* Returns additional information about the record. Any optional field from the response model can be requested.
|
|
53
53
|
*/
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export type RecordsPagingQuery = {
|
|
18
18
|
/**
|
|
19
19
|
* The number of entities that exist in the collection before those included in this list.
|
|
20
20
|
*/
|
|
@@ -24,13 +24,13 @@ export declare type RecordsPagingQuery = {
|
|
|
24
24
|
*/
|
|
25
25
|
maxItems?: number;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type RecordsIncludeQuery = {
|
|
28
28
|
/**
|
|
29
29
|
* Returns additional information about the record. Any optional field from the response model can be requested.
|
|
30
30
|
*/
|
|
31
31
|
include?: string[];
|
|
32
32
|
} & RecordsFieldsQuery;
|
|
33
|
-
export
|
|
33
|
+
export type RecordsFieldsQuery = {
|
|
34
34
|
/**
|
|
35
35
|
* A list of field names.
|
|
36
36
|
*
|
|
@@ -46,7 +46,7 @@ export declare type RecordsFieldsQuery = {
|
|
|
46
46
|
*/
|
|
47
47
|
fields?: string[];
|
|
48
48
|
};
|
|
49
|
-
export
|
|
49
|
+
export type RecordsSourceQuery = {
|
|
50
50
|
/**
|
|
51
51
|
* Also include **source** (in addition to **entries**)
|
|
52
52
|
*/
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { ApiClient } from '../../../api-clients/api-client';
|
|
18
|
+
import { LegacyHttpClient } from '../../../api-clients/http-client.interface';
|
|
19
|
+
export declare abstract class BaseApi extends ApiClient {
|
|
20
|
+
get apiClient(): LegacyHttpClient;
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
export * from './predictions.api';
|