@alfresco/js-api 7.9.0-10560074161 → 7.9.0-10562408420

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.
Files changed (46) hide show
  1. package/esm2015/package.json +1 -1
  2. package/esm2015/src/api/gs-core-rest-api/api/legal-hold.api.js +10 -0
  3. package/esm2015/src/api/gs-core-rest-api/api/legal-hold.api.js.map +1 -1
  4. package/esm2015/src/api/gs-core-rest-api/model/bulkAssignHoldResponseEntry.js +18 -0
  5. package/esm2015/src/api/gs-core-rest-api/model/bulkAssignHoldResponseEntry.js.map +1 -0
  6. package/esm2015/src/api/gs-core-rest-api/model/holdBulkOperation.js +24 -0
  7. package/esm2015/src/api/gs-core-rest-api/model/holdBulkOperation.js.map +1 -0
  8. package/esm2015/src/api/gs-core-rest-api/model/holdBulkStatus.js +27 -0
  9. package/esm2015/src/api/gs-core-rest-api/model/holdBulkStatus.js.map +1 -0
  10. package/esm2015/src/api/gs-core-rest-api/model/holdBulkStatusEntry.js +24 -0
  11. package/esm2015/src/api/gs-core-rest-api/model/holdBulkStatusEntry.js.map +1 -0
  12. package/esm2015/src/api/gs-core-rest-api/model/index.js +4 -0
  13. package/esm2015/src/api/gs-core-rest-api/model/index.js.map +1 -1
  14. package/esm5/package.json +1 -1
  15. package/esm5/src/api/gs-core-rest-api/api/legal-hold.api.js +10 -0
  16. package/esm5/src/api/gs-core-rest-api/api/legal-hold.api.js.map +1 -1
  17. package/esm5/src/api/gs-core-rest-api/model/bulkAssignHoldResponseEntry.js +18 -0
  18. package/esm5/src/api/gs-core-rest-api/model/bulkAssignHoldResponseEntry.js.map +1 -0
  19. package/esm5/src/api/gs-core-rest-api/model/holdBulkOperation.js +24 -0
  20. package/esm5/src/api/gs-core-rest-api/model/holdBulkOperation.js.map +1 -0
  21. package/esm5/src/api/gs-core-rest-api/model/holdBulkStatus.js +27 -0
  22. package/esm5/src/api/gs-core-rest-api/model/holdBulkStatus.js.map +1 -0
  23. package/esm5/src/api/gs-core-rest-api/model/holdBulkStatusEntry.js +24 -0
  24. package/esm5/src/api/gs-core-rest-api/model/holdBulkStatusEntry.js.map +1 -0
  25. package/esm5/src/api/gs-core-rest-api/model/index.js +4 -0
  26. package/esm5/src/api/gs-core-rest-api/model/index.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/api/gs-core-rest-api/api/legal-hold.api.js +10 -0
  29. package/src/api/gs-core-rest-api/api/legal-hold.api.js.map +1 -1
  30. package/src/api/gs-core-rest-api/model/bulkAssignHoldResponseEntry.js +19 -0
  31. package/src/api/gs-core-rest-api/model/bulkAssignHoldResponseEntry.js.map +1 -0
  32. package/src/api/gs-core-rest-api/model/holdBulkOperation.js +28 -0
  33. package/src/api/gs-core-rest-api/model/holdBulkOperation.js.map +1 -0
  34. package/src/api/gs-core-rest-api/model/holdBulkStatus.js +31 -0
  35. package/src/api/gs-core-rest-api/model/holdBulkStatus.js.map +1 -0
  36. package/src/api/gs-core-rest-api/model/holdBulkStatusEntry.js +28 -0
  37. package/src/api/gs-core-rest-api/model/holdBulkStatusEntry.js.map +1 -0
  38. package/src/api/gs-core-rest-api/model/index.js +4 -0
  39. package/src/api/gs-core-rest-api/model/index.js.map +1 -1
  40. package/typings/package.json +1 -1
  41. package/typings/src/api/gs-core-rest-api/api/legal-hold.api.d.ts +12 -4
  42. package/typings/src/api/gs-core-rest-api/model/bulkAssignHoldResponseEntry.d.ts +20 -0
  43. package/typings/src/api/gs-core-rest-api/model/holdBulkOperation.d.ts +24 -0
  44. package/typings/src/api/gs-core-rest-api/model/holdBulkStatus.d.ts +28 -0
  45. package/typings/src/api/gs-core-rest-api/model/holdBulkStatusEntry.d.ts +21 -0
  46. package/typings/src/api/gs-core-rest-api/model/index.d.ts +4 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfresco/js-api",
3
- "version": "7.9.0-10560074161",
3
+ "version": "7.9.0-10562408420",
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",
@@ -17,6 +17,7 @@
17
17
  import { BaseApi } from './base.api';
18
18
  import { throwIfNotDefined } from '../../../assert';
19
19
  import { HoldEntry, HoldPaging } from './../model';
20
+ import { HoldBulkStatusEntry } from '../model/holdBulkStatusEntry';
20
21
  export class LegalHoldApi extends BaseApi {
21
22
  getHolds(filePlanId = '-filePlan-', options) {
22
23
  throwIfNotDefined(filePlanId, 'filePlanId');
@@ -100,5 +101,14 @@ export class LegalHoldApi extends BaseApi {
100
101
  }
101
102
  });
102
103
  }
104
+ getBulkStatus(bulkStatusId, holdId) {
105
+ throwIfNotDefined(holdId, 'holdId');
106
+ throwIfNotDefined(bulkStatusId, 'bulkStatusId');
107
+ return this.get({
108
+ path: `/holds/{holdId}/bulk-statuses/{bulkStatusId}`,
109
+ pathParams: { holdId, bulkStatusId },
110
+ returnType: HoldBulkStatusEntry
111
+ });
112
+ }
103
113
  }
104
114
  //# sourceMappingURL=../../../../../../../../lib/js-api/src/api/gs-core-rest-api/api/legal-hold.api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"legal-hold.api.js","sourceRoot":"","sources":["legal-hold.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EAAY,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAS7D,MAAM,OAAO,YAAa,SAAQ,OAAO;IAQrC,QAAQ,CAAC,UAAU,GAAG,YAAY,EAAE,OAA4B;QAC5D,iBAAiB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAE5C,MAAM,UAAU,GAAG;YACf,UAAU;SACb,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,SAAS,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS;YAC7B,QAAQ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QAC5C,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAEhC,MAAM,UAAU,GAAG;YACf,UAAU;SACb,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,gCAAgC;YACtC,UAAU;YACV,SAAS,EAAE,CAAC,IAAI,CAAC;YACjB,UAAU,EAAE,SAAS;SACxB,CAAC,CAAC;IACP,CAAC;IASD,WAAW,CAAC,UAAU,GAAG,YAAY,EAAE,KAAiB;QACpD,iBAAiB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAC5C,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAElC,MAAM,UAAU,GAAG;YACf,UAAU;SACb,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,gCAAgC;YACtC,UAAU;YACV,SAAS,EAAE,KAAK;YAChB,UAAU,EAAE,UAAU;SACzB,CAAC,CAAC;IACP,CAAC;IASD,cAAc,CAAC,MAAc,EAAE,KAAmB;QAC9C,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAElC,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,sBAAsB;YAC5B,UAAU,EAAE,EAAE,MAAM,EAAE;YACtB,SAAS,EAAE;gBACP,KAAK;gBACL,EAAE,EAAE,KAAK;aACZ;SACJ,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 { ContentPagingQuery } from '../../content-rest-api';\nimport { HoldBody, HoldEntry, HoldPaging } from './../model';\nimport { BulkAssignHoldResponse } from '../model/bulkAssignHoldResponse';\nimport { RequestQuery } from '../../search-rest-api';\n\n/**\n * Legal Holds service.\n *\n * @module LegalHoldApi\n */\nexport class LegalHoldApi extends BaseApi {\n /**\n * List of legal holds\n *\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param options Optional parameters\n * @returns Promise<HoldPaging>\n */\n getHolds(filePlanId = '-filePlan-', options?: ContentPagingQuery): Promise<HoldPaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n const pathParams = {\n filePlanId\n };\n\n const queryParams = {\n skipCount: options?.skipCount,\n maxItems: options?.maxItems\n };\n\n return this.get({\n path: '/file-plans/{filePlanId}/holds',\n pathParams,\n queryParams,\n returnType: HoldPaging\n });\n }\n\n /**\n * Assign node to legal hold\n *\n * @param holdId The identifier of a hold\n * @param nodeId The id of the node to be assigned to existing hold\n * @returns Promise<HoldEntry>\n */\n assignHold(nodeId: string, holdId: string): Promise<HoldEntry> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(nodeId, 'nodeId');\n\n return this.post({\n path: `/holds/{holdId}/children`,\n pathParams: { holdId },\n bodyParam: [{ id: nodeId }],\n returnType: HoldEntry\n });\n }\n\n /**\n * Assign nodes to legal hold\n *\n * @param holdId The identifier of a hold\n * @param nodeIds The list with id of nodes to assign to existing hold\n * @returns Promise<HoldPaging>\n */\n assignHolds(nodeIds: { id: string }[], holdId: string): Promise<HoldPaging> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(nodeIds, 'nodeIds');\n\n return this.post({\n path: `/holds/{holdId}/children`,\n pathParams: { holdId },\n bodyParam: nodeIds,\n returnType: HoldPaging\n });\n }\n\n /**\n * Deletes the relationship between a child with id nodeId and a parent hold with id holdId\n *\n * @param holdId The identifier of a hold\n * @param nodeId The Id of the node which is unassigned\n * @returns Empty response\n */\n unassignHold(holdId: string, nodeId: string): Promise<void> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(nodeId, 'nodeId');\n\n return this.delete({\n path: `/holds/{holdId}/children/{nodeId}`,\n pathParams: { holdId, nodeId }\n });\n }\n\n /**\n * Create new hold\n *\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param hold Hold to create\n * @returns Promise<HoldEntry>\n */\n createHold(filePlanId: string, hold: HoldBody): Promise<HoldEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(hold, 'hold');\n\n const pathParams = {\n filePlanId\n };\n\n return this.post({\n path: '/file-plans/{filePlanId}/holds',\n pathParams,\n bodyParam: [hold],\n returnType: HoldEntry\n });\n }\n\n /**\n * Create list of new holds\n *\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param holds Array of holds\n * @returns Promise<HoldPaging>\n */\n createHolds(filePlanId = '-filePlan-', holds: HoldBody[]): Promise<HoldPaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(holds, 'holds');\n\n const pathParams = {\n filePlanId\n };\n\n return this.post({\n path: '/file-plans/{filePlanId}/holds',\n pathParams,\n bodyParam: holds,\n returnType: HoldPaging\n });\n }\n\n /**\n * Start the asynchronous bulk process for a hold with id holdId based on search query results.\n *\n * @param holdId The identifier of a hold\n * @param query Search query\n * @returns Promise<BulkAssignHoldResponse>\n */\n bulkAssignHold(holdId: string, query: RequestQuery): Promise<BulkAssignHoldResponse> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(query, 'query');\n\n return this.post({\n path: `/holds/{holdId}/bulk`,\n pathParams: { holdId },\n bodyParam: {\n query,\n op: 'ADD'\n }\n });\n }\n}\n"]}
1
+ {"version":3,"file":"legal-hold.api.js","sourceRoot":"","sources":["legal-hold.api.ts"],"names":[],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AC;QACpC,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAElC,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,sBAAsB;YAC5B,UAAU,EAAE,EAAE,MAAM,EAAE;YACtB,SAAS,EAAE;gBACP,KAAK;gBACL,EAAE,EAAE,KAAK;aACZ;SACJ,CAAC,CAAC;IACP,CAAC;IASD,aAAa,CAAC,YAAoB,EAAE,MAAc;QAC9C,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,iBAAiB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QAEhD,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,8CAA8C;YACpD,UAAU,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE;YACpC,UAAU,EAAE,mBAAmB;SAClC,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 { ContentPagingQuery } from '../../content-rest-api';\nimport { BulkAssignHoldResponseEntry, HoldBody, HoldEntry, HoldPaging } from './../model';\nimport { RequestQuery } from '../../search-rest-api';\nimport { HoldBulkStatusEntry } from '../model/holdBulkStatusEntry';\n\n/**\n * Legal Holds service.\n *\n * @module LegalHoldApi\n */\nexport class LegalHoldApi extends BaseApi {\n /**\n * List of legal holds\n *\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param options Optional parameters\n * @returns Promise<HoldPaging>\n */\n getHolds(filePlanId = '-filePlan-', options?: ContentPagingQuery): Promise<HoldPaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n const pathParams = {\n filePlanId\n };\n\n const queryParams = {\n skipCount: options?.skipCount,\n maxItems: options?.maxItems\n };\n\n return this.get({\n path: '/file-plans/{filePlanId}/holds',\n pathParams,\n queryParams,\n returnType: HoldPaging\n });\n }\n\n /**\n * Assign node to legal hold\n *\n * @param holdId The identifier of a hold\n * @param nodeId The id of the node to be assigned to existing hold\n * @returns Promise<HoldEntry>\n */\n assignHold(nodeId: string, holdId: string): Promise<HoldEntry> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(nodeId, 'nodeId');\n\n return this.post({\n path: `/holds/{holdId}/children`,\n pathParams: { holdId },\n bodyParam: [{ id: nodeId }],\n returnType: HoldEntry\n });\n }\n\n /**\n * Assign nodes to legal hold\n *\n * @param holdId The identifier of a hold\n * @param nodeIds The list with id of nodes to assign to existing hold\n * @returns Promise<HoldPaging>\n */\n assignHolds(nodeIds: { id: string }[], holdId: string): Promise<HoldPaging> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(nodeIds, 'nodeIds');\n\n return this.post({\n path: `/holds/{holdId}/children`,\n pathParams: { holdId },\n bodyParam: nodeIds,\n returnType: HoldPaging\n });\n }\n\n /**\n * Deletes the relationship between a child with id nodeId and a parent hold with id holdId\n *\n * @param holdId The identifier of a hold\n * @param nodeId The Id of the node which is unassigned\n * @returns Empty response\n */\n unassignHold(holdId: string, nodeId: string): Promise<void> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(nodeId, 'nodeId');\n\n return this.delete({\n path: `/holds/{holdId}/children/{nodeId}`,\n pathParams: { holdId, nodeId }\n });\n }\n\n /**\n * Create new hold\n *\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param hold Hold to create\n * @returns Promise<HoldEntry>\n */\n createHold(filePlanId: string, hold: HoldBody): Promise<HoldEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(hold, 'hold');\n\n const pathParams = {\n filePlanId\n };\n\n return this.post({\n path: '/file-plans/{filePlanId}/holds',\n pathParams,\n bodyParam: [hold],\n returnType: HoldEntry\n });\n }\n\n /**\n * Create list of new holds\n *\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param holds Array of holds\n * @returns Promise<HoldPaging>\n */\n createHolds(filePlanId = '-filePlan-', holds: HoldBody[]): Promise<HoldPaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(holds, 'holds');\n\n const pathParams = {\n filePlanId\n };\n\n return this.post({\n path: '/file-plans/{filePlanId}/holds',\n pathParams,\n bodyParam: holds,\n returnType: HoldPaging\n });\n }\n\n /**\n * Start the asynchronous bulk process for a hold with id holdId based on search query results.\n *\n * @param holdId The identifier of a hold\n * @param query Search query\n * @returns Promise<BulkAssignHoldResponseEntry>\n */\n bulkAssignHold(holdId: string, query: RequestQuery): Promise<BulkAssignHoldResponseEntry> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(query, 'query');\n\n return this.post({\n path: `/holds/{holdId}/bulk`,\n pathParams: { holdId },\n bodyParam: {\n query,\n op: 'ADD'\n }\n });\n }\n\n /**\n * Get status of bulk operation with **bulkStatusId** for **holdId**.\n *\n * @param bulkStatusId The identifier of a bulk status\n * @param holdId The identifier of a hold\n * @returns Promise<HoldsBulkStatusEntry>\n */\n getBulkStatus(bulkStatusId: string, holdId: string): Promise<HoldBulkStatusEntry> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(bulkStatusId, 'bulkStatusId');\n\n return this.get({\n path: `/holds/{holdId}/bulk-statuses/{bulkStatusId}`,\n pathParams: { holdId, bulkStatusId },\n returnType: HoldBulkStatusEntry\n });\n }\n}\n"]}
@@ -0,0 +1,18 @@
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 {};
18
+ //# sourceMappingURL=../../../../../../../../lib/js-api/src/api/gs-core-rest-api/model/bulkAssignHoldResponseEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulkAssignHoldResponseEntry.js","sourceRoot":"","sources":["bulkAssignHoldResponseEntry.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 { BulkAssignHoldResponse } from './bulkAssignHoldResponse';\n\nexport interface BulkAssignHoldResponseEntry {\n entry: BulkAssignHoldResponse;\n}\n"]}
@@ -0,0 +1,24 @@
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 class HoldBulkOperation {
18
+ constructor(input) {
19
+ if (input) {
20
+ Object.assign(this, input);
21
+ }
22
+ }
23
+ }
24
+ //# sourceMappingURL=../../../../../../../../lib/js-api/src/api/gs-core-rest-api/model/holdBulkOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"holdBulkOperation.js","sourceRoot":"","sources":["holdBulkOperation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,OAAO,iBAAiB;IAO1B,YAAY,KAAkC;QAC1C,IAAI,KAAK,EAAE;YACP,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;SAC9B;IACL,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\nexport class HoldBulkOperation {\n op: string;\n query: {\n language: string;\n query: string;\n };\n\n constructor(input?: Partial<HoldBulkOperation>) {\n if (input) {\n Object.assign(this, input);\n }\n }\n}\n"]}
@@ -0,0 +1,27 @@
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 { DateAlfresco } from '../../content-custom-api';
18
+ export class HoldBulkStatus {
19
+ constructor(input) {
20
+ if (input) {
21
+ Object.assign(this, input);
22
+ this.startTime = input.startTime ? DateAlfresco.parseDate(input.startTime) : undefined;
23
+ this.endTime = input.endTime ? DateAlfresco.parseDate(input.endTime) : undefined;
24
+ }
25
+ }
26
+ }
27
+ //# sourceMappingURL=../../../../../../../../lib/js-api/src/api/gs-core-rest-api/model/holdBulkStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"holdBulkStatus.js","sourceRoot":"","sources":["holdBulkStatus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,OAAO,cAAc;IAUvB,YAAY,KAA+B;QACvC,IAAI,KAAK,EAAE;YACP,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YAC3B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACvF,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;SACpF;IACL,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 { HoldBulkOperation } from './holdBulkOperation';\nimport { DateAlfresco } from '../../content-custom-api';\n\nexport class HoldBulkStatus {\n bulkStatusId: string;\n errorsCount: number;\n holdBulkOperation: HoldBulkOperation;\n processedItems: number;\n status: string;\n totalItems: number;\n startTime: Date;\n endTime?: Date;\n\n constructor(input?: Partial<HoldBulkStatus>) {\n if (input) {\n Object.assign(this, input);\n this.startTime = input.startTime ? DateAlfresco.parseDate(input.startTime) : undefined;\n this.endTime = input.endTime ? DateAlfresco.parseDate(input.endTime) : undefined;\n }\n }\n}\n"]}
@@ -0,0 +1,24 @@
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 class HoldBulkStatusEntry {
18
+ constructor(input) {
19
+ if (input) {
20
+ Object.assign(this, input);
21
+ }
22
+ }
23
+ }
24
+ //# sourceMappingURL=../../../../../../../../lib/js-api/src/api/gs-core-rest-api/model/holdBulkStatusEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"holdBulkStatusEntry.js","sourceRoot":"","sources":["holdBulkStatusEntry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,MAAM,OAAO,mBAAmB;IAG5B,YAAY,KAAoC;QAC5C,IAAI,KAAK,EAAE;YACP,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;SAC9B;IACL,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 { HoldBulkStatus } from './holdBulkStatus';\n\nexport class HoldBulkStatusEntry {\n entry: HoldBulkStatus;\n\n constructor(input?: Partial<HoldBulkStatusEntry>) {\n if (input) {\n Object.assign(this, input);\n }\n }\n}\n"]}
@@ -75,9 +75,13 @@ export * from './unfiledContainerChildAssociation';
75
75
  export * from './unfiledRecordFolderChildAssociation';
76
76
  export * from './hold';
77
77
  export * from './holdBody';
78
+ export * from './holdBulkOperation';
79
+ export * from './holdBulkStatus';
80
+ export * from './holdBulkStatusEntry';
78
81
  export * from './holdEntry';
79
82
  export * from './holdPaging';
80
83
  export * from './holdPagingList';
81
84
  export * from './nodeAssignedHold';
82
85
  export * from './bulkAssignHoldResponse';
86
+ export * from './bulkAssignHoldResponseEntry';
83
87
  //# sourceMappingURL=../../../../../../../../lib/js-api/src/api/gs-core-rest-api/model/index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oC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C3C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC","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 './filePlan';\nexport * from './filePlanBodyUpdate';\nexport * from './filePlanComponentBodyUpdate';\nexport * from './filePlanEntry';\nexport * from './rMNodeBodyCreate';\nexport * from './rMNodeBodyCreateWithRelativePath';\nexport * from './rMSite';\nexport * from './rMSiteBodyCreate';\nexport * from './rMSiteBodyUpdate';\nexport * from './rMSiteEntry';\nexport * from './record';\nexport * from './recordCategory';\nexport * from './recordCategoryChild';\nexport * from './recordCategoryChildEntry';\nexport * from './recordCategoryChildPaging';\nexport * from './recordCategoryChildPagingList';\nexport * from './recordCategoryEntry';\nexport * from './recordCategoryPaging';\nexport * from './recordCategoryPagingList';\nexport * from './recordEntry';\nexport * from './recordFolder';\nexport * from './recordFolderAssociationPaging';\nexport * from './recordFolderAssociationPagingList';\nexport * from './recordFolderChildAssociationEntry';\nexport * from './recordFolderEntry';\nexport * from './requestBodyFile';\nexport * from './rootCategoryBodyCreate';\nexport * from './transfer';\nexport * from './transferAssociationPaging';\nexport * from './transferAssociationPagingList';\nexport * from './transferChild';\nexport * from './transferChildAssociationEntry';\nexport * from './transferContainer';\nexport * from './transferContainerAssociationPaging';\nexport * from './transferContainerAssociationPagingList';\nexport * from './transferContainerBodyUpdate';\nexport * from './transferContainerChild';\nexport * from './transferContainerChildAssociationEntry';\nexport * from './transferContainerEntry';\nexport * from './transferEntry';\nexport * from './unfiledContainer';\nexport * from './unfiledContainerAssociationPaging';\nexport * from './unfiledContainerAssociationPagingList';\nexport * from './unfiledContainerChild';\nexport * from './unfiledContainerChildAssociationEntry';\nexport * from './unfiledContainerEntry';\nexport * from './unfiledRecordContainerBodyUpdate';\nexport * from './unfiledRecordFolder';\nexport * from './unfiledRecordFolderAssociationPaging';\nexport * from './unfiledRecordFolderAssociationPagingList';\nexport * from './unfiledRecordFolderBodyUpdate';\nexport * from './unfiledRecordFolderChild';\nexport * from './unfiledRecordFolderChildAssociationEntry';\nexport * from './unfiledRecordFolderEntry';\nexport * from './recordFolderChildAssociation';\nexport * from './transferChildAssociation';\nexport * from './transferContainerChildAssociation';\nexport * from './unfiledContainerChildAssociation';\nexport * from './unfiledRecordFolderChildAssociation';\nexport * from './hold';\nexport * from './holdBody';\nexport * from './holdEntry';\nexport * from './holdPaging';\nexport * from './holdPagingList';\nexport * from './nodeAssignedHold';\nexport * from './bulkAssignHoldResponse';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oCAAoC,CAAC;AACnD,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,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BAA4B,CAAC;AAC3C,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC","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 './filePlan';\nexport * from './filePlanBodyUpdate';\nexport * from './filePlanComponentBodyUpdate';\nexport * from './filePlanEntry';\nexport * from './rMNodeBodyCreate';\nexport * from './rMNodeBodyCreateWithRelativePath';\nexport * from './rMSite';\nexport * from './rMSiteBodyCreate';\nexport * from './rMSiteBodyUpdate';\nexport * from './rMSiteEntry';\nexport * from './record';\nexport * from './recordCategory';\nexport * from './recordCategoryChild';\nexport * from './recordCategoryChildEntry';\nexport * from './recordCategoryChildPaging';\nexport * from './recordCategoryChildPagingList';\nexport * from './recordCategoryEntry';\nexport * from './recordCategoryPaging';\nexport * from './recordCategoryPagingList';\nexport * from './recordEntry';\nexport * from './recordFolder';\nexport * from './recordFolderAssociationPaging';\nexport * from './recordFolderAssociationPagingList';\nexport * from './recordFolderChildAssociationEntry';\nexport * from './recordFolderEntry';\nexport * from './requestBodyFile';\nexport * from './rootCategoryBodyCreate';\nexport * from './transfer';\nexport * from './transferAssociationPaging';\nexport * from './transferAssociationPagingList';\nexport * from './transferChild';\nexport * from './transferChildAssociationEntry';\nexport * from './transferContainer';\nexport * from './transferContainerAssociationPaging';\nexport * from './transferContainerAssociationPagingList';\nexport * from './transferContainerBodyUpdate';\nexport * from './transferContainerChild';\nexport * from './transferContainerChildAssociationEntry';\nexport * from './transferContainerEntry';\nexport * from './transferEntry';\nexport * from './unfiledContainer';\nexport * from './unfiledContainerAssociationPaging';\nexport * from './unfiledContainerAssociationPagingList';\nexport * from './unfiledContainerChild';\nexport * from './unfiledContainerChildAssociationEntry';\nexport * from './unfiledContainerEntry';\nexport * from './unfiledRecordContainerBodyUpdate';\nexport * from './unfiledRecordFolder';\nexport * from './unfiledRecordFolderAssociationPaging';\nexport * from './unfiledRecordFolderAssociationPagingList';\nexport * from './unfiledRecordFolderBodyUpdate';\nexport * from './unfiledRecordFolderChild';\nexport * from './unfiledRecordFolderChildAssociationEntry';\nexport * from './unfiledRecordFolderEntry';\nexport * from './recordFolderChildAssociation';\nexport * from './transferChildAssociation';\nexport * from './transferContainerChildAssociation';\nexport * from './unfiledContainerChildAssociation';\nexport * from './unfiledRecordFolderChildAssociation';\nexport * from './hold';\nexport * from './holdBody';\nexport * from './holdBulkOperation';\nexport * from './holdBulkStatus';\nexport * from './holdBulkStatusEntry';\nexport * from './holdEntry';\nexport * from './holdPaging';\nexport * from './holdPagingList';\nexport * from './nodeAssignedHold';\nexport * from './bulkAssignHoldResponse';\nexport * from './bulkAssignHoldResponseEntry';\n"]}
package/esm5/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfresco/js-api",
3
- "version": "7.9.0-10560074161",
3
+ "version": "7.9.0-10562408420",
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",
@@ -17,6 +17,7 @@
17
17
  import { BaseApi } from './base.api';
18
18
  import { throwIfNotDefined } from '../../../assert';
19
19
  import { HoldEntry, HoldPaging } from './../model';
20
+ import { HoldBulkStatusEntry } from '../model/holdBulkStatusEntry';
20
21
  export class LegalHoldApi extends BaseApi {
21
22
  getHolds(filePlanId = '-filePlan-', options) {
22
23
  throwIfNotDefined(filePlanId, 'filePlanId');
@@ -100,5 +101,14 @@ export class LegalHoldApi extends BaseApi {
100
101
  }
101
102
  });
102
103
  }
104
+ getBulkStatus(bulkStatusId, holdId) {
105
+ throwIfNotDefined(holdId, 'holdId');
106
+ throwIfNotDefined(bulkStatusId, 'bulkStatusId');
107
+ return this.get({
108
+ path: `/holds/{holdId}/bulk-statuses/{bulkStatusId}`,
109
+ pathParams: { holdId, bulkStatusId },
110
+ returnType: HoldBulkStatusEntry
111
+ });
112
+ }
103
113
  }
104
114
  //# sourceMappingURL=../../../../../../../../lib/js-api/src/api/gs-core-rest-api/api/legal-hold.api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"legal-hold.api.js","sourceRoot":"","sources":["legal-hold.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EAAY,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAS7D,MAAM,OAAO,YAAa,SAAQ,OAAO;IAQrC,QAAQ,CAAC,UAAU,GAAG,YAAY,EAAE,OAA4B;QAC5D,iBAAiB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAE5C,MAAM,UAAU,GAAG;YACf,UAAU;SACb,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,SAAS,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS;YAC7B,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;SAC9B,CAAC;QAE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U,GAAG;YACf,UAAU;SACb,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,gCAAgC;YACtC,UAAU;YACV,SAAS,EAAE,CAAC,IAAI,CAAC;YACjB,UAAU,EAAE,SAAS;SACxB,CAAC,CAAC;IACP,CAAC;IASD,WAAW,CAAC,UAAU,GAAG,YAAY,EAAE,KAAiB;QACpD,iBAAiB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAC5C,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAElC,MAAM,UAAU,GAAG;YACf,UAAU;SACb,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,gCAAgC;YACtC,UAAU;YACV,SAAS,EAAE,KAAK;YAChB,UAAU,EAAE,UAAU;SACzB,CAAC,CAAC;IACP,CAAC;IASD,cAAc,CAAC,MAAc,EAAE,KAAmB;QAC9C,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAElC,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,sBAAsB;YAC5B,UAAU,EAAE,EAAE,MAAM,EAAE;YACtB,SAAS,EAAE;gBACP,KAAK;gBACL,EAAE,EAAE,KAAK;aACZ;SACJ,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 { ContentPagingQuery } from '../../content-rest-api';\nimport { HoldBody, HoldEntry, HoldPaging } from './../model';\nimport { BulkAssignHoldResponse } from '../model/bulkAssignHoldResponse';\nimport { RequestQuery } from '../../search-rest-api';\n\n/**\n * Legal Holds service.\n *\n * @module LegalHoldApi\n */\nexport class LegalHoldApi extends BaseApi {\n /**\n * List of legal holds\n *\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param options Optional parameters\n * @returns Promise<HoldPaging>\n */\n getHolds(filePlanId = '-filePlan-', options?: ContentPagingQuery): Promise<HoldPaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n const pathParams = {\n filePlanId\n };\n\n const queryParams = {\n skipCount: options?.skipCount,\n maxItems: options?.maxItems\n };\n\n return this.get({\n path: '/file-plans/{filePlanId}/holds',\n pathParams,\n queryParams,\n returnType: HoldPaging\n });\n }\n\n /**\n * Assign node to legal hold\n *\n * @param holdId The identifier of a hold\n * @param nodeId The id of the node to be assigned to existing hold\n * @returns Promise<HoldEntry>\n */\n assignHold(nodeId: string, holdId: string): Promise<HoldEntry> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(nodeId, 'nodeId');\n\n return this.post({\n path: `/holds/{holdId}/children`,\n pathParams: { holdId },\n bodyParam: [{ id: nodeId }],\n returnType: HoldEntry\n });\n }\n\n /**\n * Assign nodes to legal hold\n *\n * @param holdId The identifier of a hold\n * @param nodeIds The list with id of nodes to assign to existing hold\n * @returns Promise<HoldPaging>\n */\n assignHolds(nodeIds: { id: string }[], holdId: string): Promise<HoldPaging> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(nodeIds, 'nodeIds');\n\n return this.post({\n path: `/holds/{holdId}/children`,\n pathParams: { holdId },\n bodyParam: nodeIds,\n returnType: HoldPaging\n });\n }\n\n /**\n * Deletes the relationship between a child with id nodeId and a parent hold with id holdId\n *\n * @param holdId The identifier of a hold\n * @param nodeId The Id of the node which is unassigned\n * @returns Empty response\n */\n unassignHold(holdId: string, nodeId: string): Promise<void> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(nodeId, 'nodeId');\n\n return this.delete({\n path: `/holds/{holdId}/children/{nodeId}`,\n pathParams: { holdId, nodeId }\n });\n }\n\n /**\n * Create new hold\n *\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param hold Hold to create\n * @returns Promise<HoldEntry>\n */\n createHold(filePlanId: string, hold: HoldBody): Promise<HoldEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(hold, 'hold');\n\n const pathParams = {\n filePlanId\n };\n\n return this.post({\n path: '/file-plans/{filePlanId}/holds',\n pathParams,\n bodyParam: [hold],\n returnType: HoldEntry\n });\n }\n\n /**\n * Create list of new holds\n *\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param holds Array of holds\n * @returns Promise<HoldPaging>\n */\n createHolds(filePlanId = '-filePlan-', holds: HoldBody[]): Promise<HoldPaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(holds, 'holds');\n\n const pathParams = {\n filePlanId\n };\n\n return this.post({\n path: '/file-plans/{filePlanId}/holds',\n pathParams,\n bodyParam: holds,\n returnType: HoldPaging\n });\n }\n\n /**\n * Start the asynchronous bulk process for a hold with id holdId based on search query results.\n *\n * @param holdId The identifier of a hold\n * @param query Search query\n * @returns Promise<BulkAssignHoldResponse>\n */\n bulkAssignHold(holdId: string, query: RequestQuery): Promise<BulkAssignHoldResponse> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(query, 'query');\n\n return this.post({\n path: `/holds/{holdId}/bulk`,\n pathParams: { holdId },\n bodyParam: {\n query,\n op: 'ADD'\n }\n });\n }\n}\n"]}
1
+ {"version":3,"file":"legal-hold.api.js","sourceRoot":"","sources":["legal-hold.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,OAAO,EAAE,MA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AI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,sBAAsB;YAC5B,UAAU,EAAE,EAAE,MAAM,EAAE;YACtB,SAAS,EAAE;gBACP,KAAK;gBACL,EAAE,EAAE,KAAK;aACZ;SACJ,CAAC,CAAC;IACP,CAAC;IASD,aAAa,CAAC,YAAoB,EAAE,MAAc;QAC9C,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,iBAAiB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QAEhD,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,8CAA8C;YACpD,UAAU,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE;YACpC,UAAU,EAAE,mBAAmB;SAClC,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 { ContentPagingQuery } from '../../content-rest-api';\nimport { BulkAssignHoldResponseEntry, HoldBody, HoldEntry, HoldPaging } from './../model';\nimport { RequestQuery } from '../../search-rest-api';\nimport { HoldBulkStatusEntry } from '../model/holdBulkStatusEntry';\n\n/**\n * Legal Holds service.\n *\n * @module LegalHoldApi\n */\nexport class LegalHoldApi extends BaseApi {\n /**\n * List of legal holds\n *\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param options Optional parameters\n * @returns Promise<HoldPaging>\n */\n getHolds(filePlanId = '-filePlan-', options?: ContentPagingQuery): Promise<HoldPaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n const pathParams = {\n filePlanId\n };\n\n const queryParams = {\n skipCount: options?.skipCount,\n maxItems: options?.maxItems\n };\n\n return this.get({\n path: '/file-plans/{filePlanId}/holds',\n pathParams,\n queryParams,\n returnType: HoldPaging\n });\n }\n\n /**\n * Assign node to legal hold\n *\n * @param holdId The identifier of a hold\n * @param nodeId The id of the node to be assigned to existing hold\n * @returns Promise<HoldEntry>\n */\n assignHold(nodeId: string, holdId: string): Promise<HoldEntry> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(nodeId, 'nodeId');\n\n return this.post({\n path: `/holds/{holdId}/children`,\n pathParams: { holdId },\n bodyParam: [{ id: nodeId }],\n returnType: HoldEntry\n });\n }\n\n /**\n * Assign nodes to legal hold\n *\n * @param holdId The identifier of a hold\n * @param nodeIds The list with id of nodes to assign to existing hold\n * @returns Promise<HoldPaging>\n */\n assignHolds(nodeIds: { id: string }[], holdId: string): Promise<HoldPaging> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(nodeIds, 'nodeIds');\n\n return this.post({\n path: `/holds/{holdId}/children`,\n pathParams: { holdId },\n bodyParam: nodeIds,\n returnType: HoldPaging\n });\n }\n\n /**\n * Deletes the relationship between a child with id nodeId and a parent hold with id holdId\n *\n * @param holdId The identifier of a hold\n * @param nodeId The Id of the node which is unassigned\n * @returns Empty response\n */\n unassignHold(holdId: string, nodeId: string): Promise<void> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(nodeId, 'nodeId');\n\n return this.delete({\n path: `/holds/{holdId}/children/{nodeId}`,\n pathParams: { holdId, nodeId }\n });\n }\n\n /**\n * Create new hold\n *\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param hold Hold to create\n * @returns Promise<HoldEntry>\n */\n createHold(filePlanId: string, hold: HoldBody): Promise<HoldEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(hold, 'hold');\n\n const pathParams = {\n filePlanId\n };\n\n return this.post({\n path: '/file-plans/{filePlanId}/holds',\n pathParams,\n bodyParam: [hold],\n returnType: HoldEntry\n });\n }\n\n /**\n * Create list of new holds\n *\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param holds Array of holds\n * @returns Promise<HoldPaging>\n */\n createHolds(filePlanId = '-filePlan-', holds: HoldBody[]): Promise<HoldPaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(holds, 'holds');\n\n const pathParams = {\n filePlanId\n };\n\n return this.post({\n path: '/file-plans/{filePlanId}/holds',\n pathParams,\n bodyParam: holds,\n returnType: HoldPaging\n });\n }\n\n /**\n * Start the asynchronous bulk process for a hold with id holdId based on search query results.\n *\n * @param holdId The identifier of a hold\n * @param query Search query\n * @returns Promise<BulkAssignHoldResponseEntry>\n */\n bulkAssignHold(holdId: string, query: RequestQuery): Promise<BulkAssignHoldResponseEntry> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(query, 'query');\n\n return this.post({\n path: `/holds/{holdId}/bulk`,\n pathParams: { holdId },\n bodyParam: {\n query,\n op: 'ADD'\n }\n });\n }\n\n /**\n * Get status of bulk operation with **bulkStatusId** for **holdId**.\n *\n * @param bulkStatusId The identifier of a bulk status\n * @param holdId The identifier of a hold\n * @returns Promise<HoldsBulkStatusEntry>\n */\n getBulkStatus(bulkStatusId: string, holdId: string): Promise<HoldBulkStatusEntry> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(bulkStatusId, 'bulkStatusId');\n\n return this.get({\n path: `/holds/{holdId}/bulk-statuses/{bulkStatusId}`,\n pathParams: { holdId, bulkStatusId },\n returnType: HoldBulkStatusEntry\n });\n }\n}\n"]}
@@ -0,0 +1,18 @@
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 {};
18
+ //# sourceMappingURL=../../../../../../../../lib/js-api/src/api/gs-core-rest-api/model/bulkAssignHoldResponseEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulkAssignHoldResponseEntry.js","sourceRoot":"","sources":["bulkAssignHoldResponseEntry.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 { BulkAssignHoldResponse } from './bulkAssignHoldResponse';\n\nexport interface BulkAssignHoldResponseEntry {\n entry: BulkAssignHoldResponse;\n}\n"]}
@@ -0,0 +1,24 @@
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 class HoldBulkOperation {
18
+ constructor(input) {
19
+ if (input) {
20
+ Object.assign(this, input);
21
+ }
22
+ }
23
+ }
24
+ //# sourceMappingURL=../../../../../../../../lib/js-api/src/api/gs-core-rest-api/model/holdBulkOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"holdBulkOperation.js","sourceRoot":"","sources":["holdBulkOperation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,OAAO,iBAAiB;IAO1B,YAAY,KAAkC;QAC1C,IAAI,KAAK,EAAE;YACP,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;SAC9B;IACL,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\nexport class HoldBulkOperation {\n op: string;\n query: {\n language: string;\n query: string;\n };\n\n constructor(input?: Partial<HoldBulkOperation>) {\n if (input) {\n Object.assign(this, input);\n }\n }\n}\n"]}
@@ -0,0 +1,27 @@
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 { DateAlfresco } from '../../content-custom-api';
18
+ export class HoldBulkStatus {
19
+ constructor(input) {
20
+ if (input) {
21
+ Object.assign(this, input);
22
+ this.startTime = input.startTime ? DateAlfresco.parseDate(input.startTime) : undefined;
23
+ this.endTime = input.endTime ? DateAlfresco.parseDate(input.endTime) : undefined;
24
+ }
25
+ }
26
+ }
27
+ //# sourceMappingURL=../../../../../../../../lib/js-api/src/api/gs-core-rest-api/model/holdBulkStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"holdBulkStatus.js","sourceRoot":"","sources":["holdBulkStatus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,OAAO,cAAc;IAUvB,YAAY,KAA+B;QACvC,IAAI,KAAK,EAAE;YACP,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YAC3B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACvF,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;SACpF;IACL,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 { HoldBulkOperation } from './holdBulkOperation';\nimport { DateAlfresco } from '../../content-custom-api';\n\nexport class HoldBulkStatus {\n bulkStatusId: string;\n errorsCount: number;\n holdBulkOperation: HoldBulkOperation;\n processedItems: number;\n status: string;\n totalItems: number;\n startTime: Date;\n endTime?: Date;\n\n constructor(input?: Partial<HoldBulkStatus>) {\n if (input) {\n Object.assign(this, input);\n this.startTime = input.startTime ? DateAlfresco.parseDate(input.startTime) : undefined;\n this.endTime = input.endTime ? DateAlfresco.parseDate(input.endTime) : undefined;\n }\n }\n}\n"]}
@@ -0,0 +1,24 @@
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 class HoldBulkStatusEntry {
18
+ constructor(input) {
19
+ if (input) {
20
+ Object.assign(this, input);
21
+ }
22
+ }
23
+ }
24
+ //# sourceMappingURL=../../../../../../../../lib/js-api/src/api/gs-core-rest-api/model/holdBulkStatusEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"holdBulkStatusEntry.js","sourceRoot":"","sources":["holdBulkStatusEntry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,MAAM,OAAO,mBAAmB;IAG5B,YAAY,KAAoC;QAC5C,IAAI,KAAK,EAAE;YACP,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;SAC9B;IACL,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 { HoldBulkStatus } from './holdBulkStatus';\n\nexport class HoldBulkStatusEntry {\n entry: HoldBulkStatus;\n\n constructor(input?: Partial<HoldBulkStatusEntry>) {\n if (input) {\n Object.assign(this, input);\n }\n }\n}\n"]}
@@ -75,9 +75,13 @@ export * from './unfiledContainerChildAssociation';
75
75
  export * from './unfiledRecordFolderChildAssociation';
76
76
  export * from './hold';
77
77
  export * from './holdBody';
78
+ export * from './holdBulkOperation';
79
+ export * from './holdBulkStatus';
80
+ export * from './holdBulkStatusEntry';
78
81
  export * from './holdEntry';
79
82
  export * from './holdPaging';
80
83
  export * from './holdPagingList';
81
84
  export * from './nodeAssignedHold';
82
85
  export * from './bulkAssignHoldResponse';
86
+ export * from './bulkAssignHoldResponseEntry';
83
87
  //# sourceMappingURL=../../../../../../../../lib/js-api/src/api/gs-core-rest-api/model/index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oCAAoC,CAAC;AACnD,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,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AAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC","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 './filePlan';\nexport * from './filePlanBodyUpdate';\nexport * from './filePlanComponentBodyUpdate';\nexport * from './filePlanEntry';\nexport * from './rMNodeBodyCreate';\nexport * from './rMNodeBodyCreateWithRelativePath';\nexport * from './rMSite';\nexport * from './rMSiteBodyCreate';\nexport * from './rMSiteBodyUpdate';\nexport * from './rMSiteEntry';\nexport * from './record';\nexport * from './recordCategory';\nexport * from './recordCategoryChild';\nexport * from './recordCategoryChildEntry';\nexport * from './recordCategoryChildPaging';\nexport * from './recordCategoryChildPagingList';\nexport * from './recordCategoryEntry';\nexport * from './recordCategoryPaging';\nexport * from './recordCategoryPagingList';\nexport * from './recordEntry';\nexport * from './recordFolder';\nexport * from './recordFolderAssociationPaging';\nexport * from './recordFolderAssociationPagingList';\nexport * from './recordFolderChildAssociationEntry';\nexport * from './recordFolderEntry';\nexport * from './requestBodyFile';\nexport * from './rootCategoryBodyCreate';\nexport * from './transfer';\nexport * from './transferAssociationPaging';\nexport * from './transferAssociationPagingList';\nexport * from './transferChild';\nexport * from './transferChildAssociationEntry';\nexport * from './transferContainer';\nexport * from './transferContainerAssociationPaging';\nexport * from './transferContainerAssociationPagingList';\nexport * from './transferContainerBodyUpdate';\nexport * from './transferContainerChild';\nexport * from './transferContainerChildAssociationEntry';\nexport * from './transferContainerEntry';\nexport * from './transferEntry';\nexport * from './unfiledContainer';\nexport * from './unfiledContainerAssociationPaging';\nexport * from './unfiledContainerAssociationPagingList';\nexport * from './unfiledContainerChild';\nexport * from './unfiledContainerChildAssociationEntry';\nexport * from './unfiledContainerEntry';\nexport * from './unfiledRecordContainerBodyUpdate';\nexport * from './unfiledRecordFolder';\nexport * from './unfiledRecordFolderAssociationPaging';\nexport * from './unfiledRecordFolderAssociationPagingList';\nexport * from './unfiledRecordFolderBodyUpdate';\nexport * from './unfiledRecordFolderChild';\nexport * from './unfiledRecordFolderChildAssociationEntry';\nexport * from './unfiledRecordFolderEntry';\nexport * from './recordFolderChildAssociation';\nexport * from './transferChildAssociation';\nexport * from './transferContainerChildAssociation';\nexport * from './unfiledContainerChildAssociation';\nexport * from './unfiledRecordFolderChildAssociation';\nexport * from './hold';\nexport * from './holdBody';\nexport * from './holdEntry';\nexport * from './holdPaging';\nexport * from './holdPagingList';\nexport * from './nodeAssignedHold';\nexport * from './bulkAssignHoldResponse';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oCAAoC,CAAC;AACnD,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC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ACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC","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 './filePlan';\nexport * from './filePlanBodyUpdate';\nexport * from './filePlanComponentBodyUpdate';\nexport * from './filePlanEntry';\nexport * from './rMNodeBodyCreate';\nexport * from './rMNodeBodyCreateWithRelativePath';\nexport * from './rMSite';\nexport * from './rMSiteBodyCreate';\nexport * from './rMSiteBodyUpdate';\nexport * from './rMSiteEntry';\nexport * from './record';\nexport * from './recordCategory';\nexport * from './recordCategoryChild';\nexport * from './recordCategoryChildEntry';\nexport * from './recordCategoryChildPaging';\nexport * from './recordCategoryChildPagingList';\nexport * from './recordCategoryEntry';\nexport * from './recordCategoryPaging';\nexport * from './recordCategoryPagingList';\nexport * from './recordEntry';\nexport * from './recordFolder';\nexport * from './recordFolderAssociationPaging';\nexport * from './recordFolderAssociationPagingList';\nexport * from './recordFolderChildAssociationEntry';\nexport * from './recordFolderEntry';\nexport * from './requestBodyFile';\nexport * from './rootCategoryBodyCreate';\nexport * from './transfer';\nexport * from './transferAssociationPaging';\nexport * from './transferAssociationPagingList';\nexport * from './transferChild';\nexport * from './transferChildAssociationEntry';\nexport * from './transferContainer';\nexport * from './transferContainerAssociationPaging';\nexport * from './transferContainerAssociationPagingList';\nexport * from './transferContainerBodyUpdate';\nexport * from './transferContainerChild';\nexport * from './transferContainerChildAssociationEntry';\nexport * from './transferContainerEntry';\nexport * from './transferEntry';\nexport * from './unfiledContainer';\nexport * from './unfiledContainerAssociationPaging';\nexport * from './unfiledContainerAssociationPagingList';\nexport * from './unfiledContainerChild';\nexport * from './unfiledContainerChildAssociationEntry';\nexport * from './unfiledContainerEntry';\nexport * from './unfiledRecordContainerBodyUpdate';\nexport * from './unfiledRecordFolder';\nexport * from './unfiledRecordFolderAssociationPaging';\nexport * from './unfiledRecordFolderAssociationPagingList';\nexport * from './unfiledRecordFolderBodyUpdate';\nexport * from './unfiledRecordFolderChild';\nexport * from './unfiledRecordFolderChildAssociationEntry';\nexport * from './unfiledRecordFolderEntry';\nexport * from './recordFolderChildAssociation';\nexport * from './transferChildAssociation';\nexport * from './transferContainerChildAssociation';\nexport * from './unfiledContainerChildAssociation';\nexport * from './unfiledRecordFolderChildAssociation';\nexport * from './hold';\nexport * from './holdBody';\nexport * from './holdBulkOperation';\nexport * from './holdBulkStatus';\nexport * from './holdBulkStatusEntry';\nexport * from './holdEntry';\nexport * from './holdPaging';\nexport * from './holdPagingList';\nexport * from './nodeAssignedHold';\nexport * from './bulkAssignHoldResponse';\nexport * from './bulkAssignHoldResponseEntry';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfresco/js-api",
3
- "version": "7.9.0-10560074161",
3
+ "version": "7.9.0-10562408420",
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",
@@ -20,6 +20,7 @@ exports.LegalHoldApi = void 0;
20
20
  const base_api_1 = require("./base.api");
21
21
  const assert_1 = require("../../../assert");
22
22
  const model_1 = require("./../model");
23
+ const holdBulkStatusEntry_1 = require("../model/holdBulkStatusEntry");
23
24
  class LegalHoldApi extends base_api_1.BaseApi {
24
25
  getHolds(filePlanId = '-filePlan-', options) {
25
26
  (0, assert_1.throwIfNotDefined)(filePlanId, 'filePlanId');
@@ -103,6 +104,15 @@ class LegalHoldApi extends base_api_1.BaseApi {
103
104
  }
104
105
  });
105
106
  }
107
+ getBulkStatus(bulkStatusId, holdId) {
108
+ (0, assert_1.throwIfNotDefined)(holdId, 'holdId');
109
+ (0, assert_1.throwIfNotDefined)(bulkStatusId, 'bulkStatusId');
110
+ return this.get({
111
+ path: `/holds/{holdId}/bulk-statuses/{bulkStatusId}`,
112
+ pathParams: { holdId, bulkStatusId },
113
+ returnType: holdBulkStatusEntry_1.HoldBulkStatusEntry
114
+ });
115
+ }
106
116
  }
107
117
  exports.LegalHoldApi = LegalHoldApi;
108
118
  //# sourceMappingURL=../../../../../../../lib/js-api/src/api/gs-core-rest-api/api/legal-hold.api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"legal-hold.api.js","sourceRoot":"","sources":["legal-hold.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,yCAAqC;AACrC,4CAAoD;AAEpD,sCAA6D;AAS7D,MAAa,YAAa,SAAQ,kBAAO;IAQrC,QAAQ,CAAC,UAAU,GAAG,YAAY,EAAE,OAA4B;QAC5D,IAAA,0BAAiB,EAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAE5C,MAAM,UAAU,GAAG;YACf,UAAU;SACb,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,SAAS,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS;YAC7B,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;SAC9B,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,gCAAgC;YACtC,UAAU;YACV,WAAW;YACX,UA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AAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,gCAAgC;YACtC,UAAU;YACV,SAAS,EAAE,CAAC,IAAI,CAAC;YACjB,UAAU,EAAE,iBAAS;SACxB,CAAC,CAAC;IACP,CAAC;IASD,WAAW,CAAC,UAAU,GAAG,YAAY,EAAE,KAAiB;QACpD,IAAA,0BAAiB,EAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAC5C,IAAA,0BAAiB,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAElC,MAAM,UAAU,GAAG;YACf,UAAU;SACb,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,gCAAgC;YACtC,UAAU;YACV,SAAS,EAAE,KAAK;YAChB,UAAU,EAAE,kBAAU;SACzB,CAAC,CAAC;IACP,CAAC;IASD,cAAc,CAAC,MAAc,EAAE,KAAmB;QAC9C,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAElC,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,sBAAsB;YAC5B,UAAU,EAAE,EAAE,MAAM,EAAE;YACtB,SAAS,EAAE;gBACP,KAAK;gBACL,EAAE,EAAE,KAAK;aACZ;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AArJD,oCAqJC","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 { ContentPagingQuery } from '../../content-rest-api';\nimport { HoldBody, HoldEntry, HoldPaging } from './../model';\nimport { BulkAssignHoldResponse } from '../model/bulkAssignHoldResponse';\nimport { RequestQuery } from '../../search-rest-api';\n\n/**\n * Legal Holds service.\n *\n * @module LegalHoldApi\n */\nexport class LegalHoldApi extends BaseApi {\n /**\n * List of legal holds\n *\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param options Optional parameters\n * @returns Promise<HoldPaging>\n */\n getHolds(filePlanId = '-filePlan-', options?: ContentPagingQuery): Promise<HoldPaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n const pathParams = {\n filePlanId\n };\n\n const queryParams = {\n skipCount: options?.skipCount,\n maxItems: options?.maxItems\n };\n\n return this.get({\n path: '/file-plans/{filePlanId}/holds',\n pathParams,\n queryParams,\n returnType: HoldPaging\n });\n }\n\n /**\n * Assign node to legal hold\n *\n * @param holdId The identifier of a hold\n * @param nodeId The id of the node to be assigned to existing hold\n * @returns Promise<HoldEntry>\n */\n assignHold(nodeId: string, holdId: string): Promise<HoldEntry> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(nodeId, 'nodeId');\n\n return this.post({\n path: `/holds/{holdId}/children`,\n pathParams: { holdId },\n bodyParam: [{ id: nodeId }],\n returnType: HoldEntry\n });\n }\n\n /**\n * Assign nodes to legal hold\n *\n * @param holdId The identifier of a hold\n * @param nodeIds The list with id of nodes to assign to existing hold\n * @returns Promise<HoldPaging>\n */\n assignHolds(nodeIds: { id: string }[], holdId: string): Promise<HoldPaging> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(nodeIds, 'nodeIds');\n\n return this.post({\n path: `/holds/{holdId}/children`,\n pathParams: { holdId },\n bodyParam: nodeIds,\n returnType: HoldPaging\n });\n }\n\n /**\n * Deletes the relationship between a child with id nodeId and a parent hold with id holdId\n *\n * @param holdId The identifier of a hold\n * @param nodeId The Id of the node which is unassigned\n * @returns Empty response\n */\n unassignHold(holdId: string, nodeId: string): Promise<void> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(nodeId, 'nodeId');\n\n return this.delete({\n path: `/holds/{holdId}/children/{nodeId}`,\n pathParams: { holdId, nodeId }\n });\n }\n\n /**\n * Create new hold\n *\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param hold Hold to create\n * @returns Promise<HoldEntry>\n */\n createHold(filePlanId: string, hold: HoldBody): Promise<HoldEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(hold, 'hold');\n\n const pathParams = {\n filePlanId\n };\n\n return this.post({\n path: '/file-plans/{filePlanId}/holds',\n pathParams,\n bodyParam: [hold],\n returnType: HoldEntry\n });\n }\n\n /**\n * Create list of new holds\n *\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param holds Array of holds\n * @returns Promise<HoldPaging>\n */\n createHolds(filePlanId = '-filePlan-', holds: HoldBody[]): Promise<HoldPaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(holds, 'holds');\n\n const pathParams = {\n filePlanId\n };\n\n return this.post({\n path: '/file-plans/{filePlanId}/holds',\n pathParams,\n bodyParam: holds,\n returnType: HoldPaging\n });\n }\n\n /**\n * Start the asynchronous bulk process for a hold with id holdId based on search query results.\n *\n * @param holdId The identifier of a hold\n * @param query Search query\n * @returns Promise<BulkAssignHoldResponse>\n */\n bulkAssignHold(holdId: string, query: RequestQuery): Promise<BulkAssignHoldResponse> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(query, 'query');\n\n return this.post({\n path: `/holds/{holdId}/bulk`,\n pathParams: { holdId },\n bodyParam: {\n query,\n op: 'ADD'\n }\n });\n }\n}\n"]}
1
+ {"version":3,"file":"legal-hold.api.js","sourceRoot":"","sources":["legal-hold.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,yCAAqC;AACrC,4CAAo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MAAM,EAAE;YACtB,SAAS,EAAE;gBACP,KAAK;gBACL,EAAE,EAAE,KAAK;aACZ;SACJ,CAAC,CAAC;IACP,CAAC;IASD,aAAa,CAAC,YAAoB,EAAE,MAAc;QAC9C,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QAEhD,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,8CAA8C;YACpD,UAAU,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE;YACpC,UAAU,EAAE,yCAAmB;SAClC,CAAC,CAAC;IACP,CAAC;CACJ;AAvKD,oCAuKC","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 { ContentPagingQuery } from '../../content-rest-api';\nimport { BulkAssignHoldResponseEntry, HoldBody, HoldEntry, HoldPaging } from './../model';\nimport { RequestQuery } from '../../search-rest-api';\nimport { HoldBulkStatusEntry } from '../model/holdBulkStatusEntry';\n\n/**\n * Legal Holds service.\n *\n * @module LegalHoldApi\n */\nexport class LegalHoldApi extends BaseApi {\n /**\n * List of legal holds\n *\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param options Optional parameters\n * @returns Promise<HoldPaging>\n */\n getHolds(filePlanId = '-filePlan-', options?: ContentPagingQuery): Promise<HoldPaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n const pathParams = {\n filePlanId\n };\n\n const queryParams = {\n skipCount: options?.skipCount,\n maxItems: options?.maxItems\n };\n\n return this.get({\n path: '/file-plans/{filePlanId}/holds',\n pathParams,\n queryParams,\n returnType: HoldPaging\n });\n }\n\n /**\n * Assign node to legal hold\n *\n * @param holdId The identifier of a hold\n * @param nodeId The id of the node to be assigned to existing hold\n * @returns Promise<HoldEntry>\n */\n assignHold(nodeId: string, holdId: string): Promise<HoldEntry> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(nodeId, 'nodeId');\n\n return this.post({\n path: `/holds/{holdId}/children`,\n pathParams: { holdId },\n bodyParam: [{ id: nodeId }],\n returnType: HoldEntry\n });\n }\n\n /**\n * Assign nodes to legal hold\n *\n * @param holdId The identifier of a hold\n * @param nodeIds The list with id of nodes to assign to existing hold\n * @returns Promise<HoldPaging>\n */\n assignHolds(nodeIds: { id: string }[], holdId: string): Promise<HoldPaging> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(nodeIds, 'nodeIds');\n\n return this.post({\n path: `/holds/{holdId}/children`,\n pathParams: { holdId },\n bodyParam: nodeIds,\n returnType: HoldPaging\n });\n }\n\n /**\n * Deletes the relationship between a child with id nodeId and a parent hold with id holdId\n *\n * @param holdId The identifier of a hold\n * @param nodeId The Id of the node which is unassigned\n * @returns Empty response\n */\n unassignHold(holdId: string, nodeId: string): Promise<void> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(nodeId, 'nodeId');\n\n return this.delete({\n path: `/holds/{holdId}/children/{nodeId}`,\n pathParams: { holdId, nodeId }\n });\n }\n\n /**\n * Create new hold\n *\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param hold Hold to create\n * @returns Promise<HoldEntry>\n */\n createHold(filePlanId: string, hold: HoldBody): Promise<HoldEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(hold, 'hold');\n\n const pathParams = {\n filePlanId\n };\n\n return this.post({\n path: '/file-plans/{filePlanId}/holds',\n pathParams,\n bodyParam: [hold],\n returnType: HoldEntry\n });\n }\n\n /**\n * Create list of new holds\n *\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param holds Array of holds\n * @returns Promise<HoldPaging>\n */\n createHolds(filePlanId = '-filePlan-', holds: HoldBody[]): Promise<HoldPaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(holds, 'holds');\n\n const pathParams = {\n filePlanId\n };\n\n return this.post({\n path: '/file-plans/{filePlanId}/holds',\n pathParams,\n bodyParam: holds,\n returnType: HoldPaging\n });\n }\n\n /**\n * Start the asynchronous bulk process for a hold with id holdId based on search query results.\n *\n * @param holdId The identifier of a hold\n * @param query Search query\n * @returns Promise<BulkAssignHoldResponseEntry>\n */\n bulkAssignHold(holdId: string, query: RequestQuery): Promise<BulkAssignHoldResponseEntry> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(query, 'query');\n\n return this.post({\n path: `/holds/{holdId}/bulk`,\n pathParams: { holdId },\n bodyParam: {\n query,\n op: 'ADD'\n }\n });\n }\n\n /**\n * Get status of bulk operation with **bulkStatusId** for **holdId**.\n *\n * @param bulkStatusId The identifier of a bulk status\n * @param holdId The identifier of a hold\n * @returns Promise<HoldsBulkStatusEntry>\n */\n getBulkStatus(bulkStatusId: string, holdId: string): Promise<HoldBulkStatusEntry> {\n throwIfNotDefined(holdId, 'holdId');\n throwIfNotDefined(bulkStatusId, 'bulkStatusId');\n\n return this.get({\n path: `/holds/{holdId}/bulk-statuses/{bulkStatusId}`,\n pathParams: { holdId, bulkStatusId },\n returnType: HoldBulkStatusEntry\n });\n }\n}\n"]}
@@ -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/src/api/gs-core-rest-api/model/bulkAssignHoldResponseEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulkAssignHoldResponseEntry.js","sourceRoot":"","sources":["bulkAssignHoldResponseEntry.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 { BulkAssignHoldResponse } from './bulkAssignHoldResponse';\n\nexport interface BulkAssignHoldResponseEntry {\n entry: BulkAssignHoldResponse;\n}\n"]}
@@ -0,0 +1,28 @@
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.HoldBulkOperation = void 0;
20
+ class HoldBulkOperation {
21
+ constructor(input) {
22
+ if (input) {
23
+ Object.assign(this, input);
24
+ }
25
+ }
26
+ }
27
+ exports.HoldBulkOperation = HoldBulkOperation;
28
+ //# sourceMappingURL=../../../../../../../lib/js-api/src/api/gs-core-rest-api/model/holdBulkOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"holdBulkOperation.js","sourceRoot":"","sources":["holdBulkOperation.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,MAAa,iBAAiB;IAO1B,YAAY,KAAkC;QAC1C,IAAI,KAAK,EAAE;YACP,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;SAC9B;IACL,CAAC;CACJ;AAZD,8CAYC","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 class HoldBulkOperation {\n op: string;\n query: {\n language: string;\n query: string;\n };\n\n constructor(input?: Partial<HoldBulkOperation>) {\n if (input) {\n Object.assign(this, input);\n }\n }\n}\n"]}
@@ -0,0 +1,31 @@
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.HoldBulkStatus = void 0;
20
+ const content_custom_api_1 = require("../../content-custom-api");
21
+ class HoldBulkStatus {
22
+ constructor(input) {
23
+ if (input) {
24
+ Object.assign(this, input);
25
+ this.startTime = input.startTime ? content_custom_api_1.DateAlfresco.parseDate(input.startTime) : undefined;
26
+ this.endTime = input.endTime ? content_custom_api_1.DateAlfresco.parseDate(input.endTime) : undefined;
27
+ }
28
+ }
29
+ }
30
+ exports.HoldBulkStatus = HoldBulkStatus;
31
+ //# sourceMappingURL=../../../../../../../lib/js-api/src/api/gs-core-rest-api/model/holdBulkStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"holdBulkStatus.js","sourceRoot":"","sources":["holdBulkStatus.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAGH,iEAAwD;AAExD,MAAa,cAAc;IAUvB,YAAY,KAA+B;QACvC,IAAI,KAAK,EAAE;YACP,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YAC3B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,iCAAY,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACvF,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,iCAAY,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;SACpF;IACL,CAAC;CACJ;AAjBD,wCAiBC","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 { HoldBulkOperation } from './holdBulkOperation';\nimport { DateAlfresco } from '../../content-custom-api';\n\nexport class HoldBulkStatus {\n bulkStatusId: string;\n errorsCount: number;\n holdBulkOperation: HoldBulkOperation;\n processedItems: number;\n status: string;\n totalItems: number;\n startTime: Date;\n endTime?: Date;\n\n constructor(input?: Partial<HoldBulkStatus>) {\n if (input) {\n Object.assign(this, input);\n this.startTime = input.startTime ? DateAlfresco.parseDate(input.startTime) : undefined;\n this.endTime = input.endTime ? DateAlfresco.parseDate(input.endTime) : undefined;\n }\n }\n}\n"]}
@@ -0,0 +1,28 @@
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.HoldBulkStatusEntry = void 0;
20
+ class HoldBulkStatusEntry {
21
+ constructor(input) {
22
+ if (input) {
23
+ Object.assign(this, input);
24
+ }
25
+ }
26
+ }
27
+ exports.HoldBulkStatusEntry = HoldBulkStatusEntry;
28
+ //# sourceMappingURL=../../../../../../../lib/js-api/src/api/gs-core-rest-api/model/holdBulkStatusEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"holdBulkStatusEntry.js","sourceRoot":"","sources":["holdBulkStatusEntry.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAIH,MAAa,mBAAmB;IAG5B,YAAY,KAAoC;QAC5C,IAAI,KAAK,EAAE;YACP,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;SAC9B;IACL,CAAC;CACJ;AARD,kDAQC","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 { HoldBulkStatus } from './holdBulkStatus';\n\nexport class HoldBulkStatusEntry {\n entry: HoldBulkStatus;\n\n constructor(input?: Partial<HoldBulkStatusEntry>) {\n if (input) {\n Object.assign(this, input);\n }\n }\n}\n"]}
@@ -78,9 +78,13 @@ tslib_1.__exportStar(require("./unfiledContainerChildAssociation"), exports);
78
78
  tslib_1.__exportStar(require("./unfiledRecordFolderChildAssociation"), exports);
79
79
  tslib_1.__exportStar(require("./hold"), exports);
80
80
  tslib_1.__exportStar(require("./holdBody"), exports);
81
+ tslib_1.__exportStar(require("./holdBulkOperation"), exports);
82
+ tslib_1.__exportStar(require("./holdBulkStatus"), exports);
83
+ tslib_1.__exportStar(require("./holdBulkStatusEntry"), exports);
81
84
  tslib_1.__exportStar(require("./holdEntry"), exports);
82
85
  tslib_1.__exportStar(require("./holdPaging"), exports);
83
86
  tslib_1.__exportStar(require("./holdPagingList"), exports);
84
87
  tslib_1.__exportStar(require("./nodeAssignedHold"), exports);
85
88
  tslib_1.__exportStar(require("./bulkAssignHoldResponse"), exports);
89
+ tslib_1.__exportStar(require("./bulkAssignHoldResponseEntry"), exports);
86
90
  //# sourceMappingURL=../../../../../../../lib/js-api/src/api/gs-core-rest-api/model/index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,qDAA2B;AAC3B,+DAAqC;AACrC,wEAA8C;AAC9C,0DAAgC;AAChC,6DAAmC;AACnC,6EAAmD;AACnD,mDAAyB;AACzB,6DAAmC;AACnC,6DAAmC;AACnC,wDAA8B;AAC9B,mDAAyB;AACzB,2DAAiC;AACjC,gEAAsC;AACtC,qEAA2C;AAC3C,sEAA4C;AAC5C,0EAAgD;AAChD,gEAAsC;AACtC,iEAAuC;AACvC,qEAA2C;AAC3C,wDAA8B;AAC9B,yDAA+B;AAC/B,0EAAgD;AAChD,8EAAoD;AACpD,8EAAoD;AACpD,8DAAoC;AACpC,4DAAkC;AAClC,mEAAyC;AACzC,qDAA2B;AAC3B,sEAA4C;AAC5C,0EAAgD;AAChD,0DAAgC;AAChC,0EAAgD;AAChD,8DAAoC;AACpC,+EAAqD;AACrD,mFAAyD;AACzD,wEAA8C;AAC9C,mEAAyC;AACzC,mFAAyD;AACzD,mEAAyC;AACzC,0DAAgC;AAChC,6DAAmC;AACnC,8EAAoD;AACpD,kFAAwD;AACxD,kEAAwC;AACxC,kFAAwD;AACxD,kEAAwC;AACxC,6EAAmD;AACnD,gEAAsC;AACtC,iFAAuD;AACvD,qFAA2D;AAC3D,0EAAgD;AAChD,qEAA2C;AAC3C,qFAA2D;AAC3D,qEAA2C;AAC3C,yEAA+C;AAC/C,qEAA2C;AAC3C,8EAAoD;AACpD,6EAAmD;AACnD,gFAAsD;AACtD,iDAAuB;AACvB,qDAA2B;AAC3B,sDAA4B;AAC5B,uDAA6B;AAC7B,2DAAiC;AACjC,6DAAmC;AACnC,mEAAyC","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 './filePlan';\nexport * from './filePlanBodyUpdate';\nexport * from './filePlanComponentBodyUpdate';\nexport * from './filePlanEntry';\nexport * from './rMNodeBodyCreate';\nexport * from './rMNodeBodyCreateWithRelativePath';\nexport * from './rMSite';\nexport * from './rMSiteBodyCreate';\nexport * from './rMSiteBodyUpdate';\nexport * from './rMSiteEntry';\nexport * from './record';\nexport * from './recordCategory';\nexport * from './recordCategoryChild';\nexport * from './recordCategoryChildEntry';\nexport * from './recordCategoryChildPaging';\nexport * from './recordCategoryChildPagingList';\nexport * from './recordCategoryEntry';\nexport * from './recordCategoryPaging';\nexport * from './recordCategoryPagingList';\nexport * from './recordEntry';\nexport * from './recordFolder';\nexport * from './recordFolderAssociationPaging';\nexport * from './recordFolderAssociationPagingList';\nexport * from './recordFolderChildAssociationEntry';\nexport * from './recordFolderEntry';\nexport * from './requestBodyFile';\nexport * from './rootCategoryBodyCreate';\nexport * from './transfer';\nexport * from './transferAssociationPaging';\nexport * from './transferAssociationPagingList';\nexport * from './transferChild';\nexport * from './transferChildAssociationEntry';\nexport * from './transferContainer';\nexport * from './transferContainerAssociationPaging';\nexport * from './transferContainerAssociationPagingList';\nexport * from './transferContainerBodyUpdate';\nexport * from './transferContainerChild';\nexport * from './transferContainerChildAssociationEntry';\nexport * from './transferContainerEntry';\nexport * from './transferEntry';\nexport * from './unfiledContainer';\nexport * from './unfiledContainerAssociationPaging';\nexport * from './unfiledContainerAssociationPagingList';\nexport * from './unfiledContainerChild';\nexport * from './unfiledContainerChildAssociationEntry';\nexport * from './unfiledContainerEntry';\nexport * from './unfiledRecordContainerBodyUpdate';\nexport * from './unfiledRecordFolder';\nexport * from './unfiledRecordFolderAssociationPaging';\nexport * from './unfiledRecordFolderAssociationPagingList';\nexport * from './unfiledRecordFolderBodyUpdate';\nexport * from './unfiledRecordFolderChild';\nexport * from './unfiledRecordFolderChildAssociationEntry';\nexport * from './unfiledRecordFolderEntry';\nexport * from './recordFolderChildAssociation';\nexport * from './transferChildAssociation';\nexport * from './transferContainerChildAssociation';\nexport * from './unfiledContainerChildAssociation';\nexport * from './unfiledRecordFolderChildAssociation';\nexport * from './hold';\nexport * from './holdBody';\nexport * from './holdEntry';\nexport * from './holdPaging';\nexport * from './holdPagingList';\nexport * from './nodeAssignedHold';\nexport * from './bulkAssignHoldResponse';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,qDAA2B;AAC3B,+DAAqC;AACrC,wEAA8C;AAC9C,0DAAgC;AAChC,6DAAmC;AACnC,6EAAmD;AACnD,mDAAyB;AACzB,6DAAmC;AACnC,6DAAmC;AACnC,wDAA8B;AAC9B,mDAAyB;AACzB,2DAAiC;AACjC,gEAAsC;AACtC,qEAA2C;AAC3C,sEAA4C;AAC5C,0EAAgD;AAChD,gEAAsC;AACtC,iEAAuC;AACvC,qEAA2C;AAC3C,wDAA8B;AAC9B,yDAA+B;AAC/B,0EAAgD;AAChD,8EAAoD;AACpD,8EAAoD;AACpD,8DAAoC;AACpC,4DAAkC;AAClC,mEAAyC;AACzC,qDAA2B;AAC3B,sEAA4C;AAC5C,0EAAgD;AAChD,0DAAgC;AAChC,0EAAgD;AAChD,8DAAoC;AACpC,+EAAqD;AACrD,mFAAyD;AACzD,wEAA8C;AAC9C,mEAAyC;AACzC,mFAAyD;AACzD,mEAAyC;AACzC,0DAAgC;AAChC,6DAAmC;AACnC,8EAAoD;AACpD,kFAAwD;AACxD,kEAAwC;AACxC,kFAAwD;AACxD,kEAAwC;AACxC,6EAAmD;AACnD,gEAAsC;AACtC,iFAAuD;AACvD,qFAA2D;AAC3D,0EAAgD;AAChD,qEAA2C;AAC3C,qFAA2D;AAC3D,qEAA2C;AAC3C,yEAA+C;AAC/C,qEAA2C;AAC3C,8EAAoD;AACpD,6EAAmD;AACnD,gFAAsD;AACtD,iDAAuB;AACvB,qDAA2B;AAC3B,8DAAoC;AACpC,2DAAiC;AACjC,gEAAsC;AACtC,sDAA4B;AAC5B,uDAA6B;AAC7B,2DAAiC;AACjC,6DAAmC;AACnC,mEAAyC;AACzC,wEAA8C","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 './filePlan';\nexport * from './filePlanBodyUpdate';\nexport * from './filePlanComponentBodyUpdate';\nexport * from './filePlanEntry';\nexport * from './rMNodeBodyCreate';\nexport * from './rMNodeBodyCreateWithRelativePath';\nexport * from './rMSite';\nexport * from './rMSiteBodyCreate';\nexport * from './rMSiteBodyUpdate';\nexport * from './rMSiteEntry';\nexport * from './record';\nexport * from './recordCategory';\nexport * from './recordCategoryChild';\nexport * from './recordCategoryChildEntry';\nexport * from './recordCategoryChildPaging';\nexport * from './recordCategoryChildPagingList';\nexport * from './recordCategoryEntry';\nexport * from './recordCategoryPaging';\nexport * from './recordCategoryPagingList';\nexport * from './recordEntry';\nexport * from './recordFolder';\nexport * from './recordFolderAssociationPaging';\nexport * from './recordFolderAssociationPagingList';\nexport * from './recordFolderChildAssociationEntry';\nexport * from './recordFolderEntry';\nexport * from './requestBodyFile';\nexport * from './rootCategoryBodyCreate';\nexport * from './transfer';\nexport * from './transferAssociationPaging';\nexport * from './transferAssociationPagingList';\nexport * from './transferChild';\nexport * from './transferChildAssociationEntry';\nexport * from './transferContainer';\nexport * from './transferContainerAssociationPaging';\nexport * from './transferContainerAssociationPagingList';\nexport * from './transferContainerBodyUpdate';\nexport * from './transferContainerChild';\nexport * from './transferContainerChildAssociationEntry';\nexport * from './transferContainerEntry';\nexport * from './transferEntry';\nexport * from './unfiledContainer';\nexport * from './unfiledContainerAssociationPaging';\nexport * from './unfiledContainerAssociationPagingList';\nexport * from './unfiledContainerChild';\nexport * from './unfiledContainerChildAssociationEntry';\nexport * from './unfiledContainerEntry';\nexport * from './unfiledRecordContainerBodyUpdate';\nexport * from './unfiledRecordFolder';\nexport * from './unfiledRecordFolderAssociationPaging';\nexport * from './unfiledRecordFolderAssociationPagingList';\nexport * from './unfiledRecordFolderBodyUpdate';\nexport * from './unfiledRecordFolderChild';\nexport * from './unfiledRecordFolderChildAssociationEntry';\nexport * from './unfiledRecordFolderEntry';\nexport * from './recordFolderChildAssociation';\nexport * from './transferChildAssociation';\nexport * from './transferContainerChildAssociation';\nexport * from './unfiledContainerChildAssociation';\nexport * from './unfiledRecordFolderChildAssociation';\nexport * from './hold';\nexport * from './holdBody';\nexport * from './holdBulkOperation';\nexport * from './holdBulkStatus';\nexport * from './holdBulkStatusEntry';\nexport * from './holdEntry';\nexport * from './holdPaging';\nexport * from './holdPagingList';\nexport * from './nodeAssignedHold';\nexport * from './bulkAssignHoldResponse';\nexport * from './bulkAssignHoldResponseEntry';\n"]}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfresco/js-api",
3
- "version": "7.9.0-10560074161",
3
+ "version": "7.9.0-10562408420",
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",
@@ -16,9 +16,9 @@
16
16
  */
17
17
  import { BaseApi } from './base.api';
18
18
  import { ContentPagingQuery } from '../../content-rest-api';
19
- import { HoldBody, HoldEntry, HoldPaging } from './../model';
20
- import { BulkAssignHoldResponse } from '../model/bulkAssignHoldResponse';
19
+ import { BulkAssignHoldResponseEntry, HoldBody, HoldEntry, HoldPaging } from './../model';
21
20
  import { RequestQuery } from '../../search-rest-api';
21
+ import { HoldBulkStatusEntry } from '../model/holdBulkStatusEntry';
22
22
  /**
23
23
  * Legal Holds service.
24
24
  *
@@ -80,7 +80,15 @@ export declare class LegalHoldApi extends BaseApi {
80
80
  *
81
81
  * @param holdId The identifier of a hold
82
82
  * @param query Search query
83
- * @returns Promise<BulkAssignHoldResponse>
83
+ * @returns Promise<BulkAssignHoldResponseEntry>
84
84
  */
85
- bulkAssignHold(holdId: string, query: RequestQuery): Promise<BulkAssignHoldResponse>;
85
+ bulkAssignHold(holdId: string, query: RequestQuery): Promise<BulkAssignHoldResponseEntry>;
86
+ /**
87
+ * Get status of bulk operation with **bulkStatusId** for **holdId**.
88
+ *
89
+ * @param bulkStatusId The identifier of a bulk status
90
+ * @param holdId The identifier of a hold
91
+ * @returns Promise<HoldsBulkStatusEntry>
92
+ */
93
+ getBulkStatus(bulkStatusId: string, holdId: string): Promise<HoldBulkStatusEntry>;
86
94
  }
@@ -0,0 +1,20 @@
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 { BulkAssignHoldResponse } from './bulkAssignHoldResponse';
18
+ export interface BulkAssignHoldResponseEntry {
19
+ entry: BulkAssignHoldResponse;
20
+ }
@@ -0,0 +1,24 @@
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 declare class HoldBulkOperation {
18
+ op: string;
19
+ query: {
20
+ language: string;
21
+ query: string;
22
+ };
23
+ constructor(input?: Partial<HoldBulkOperation>);
24
+ }
@@ -0,0 +1,28 @@
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 { HoldBulkOperation } from './holdBulkOperation';
18
+ export declare class HoldBulkStatus {
19
+ bulkStatusId: string;
20
+ errorsCount: number;
21
+ holdBulkOperation: HoldBulkOperation;
22
+ processedItems: number;
23
+ status: string;
24
+ totalItems: number;
25
+ startTime: Date;
26
+ endTime?: Date;
27
+ constructor(input?: Partial<HoldBulkStatus>);
28
+ }
@@ -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 { HoldBulkStatus } from './holdBulkStatus';
18
+ export declare class HoldBulkStatusEntry {
19
+ entry: HoldBulkStatus;
20
+ constructor(input?: Partial<HoldBulkStatusEntry>);
21
+ }
@@ -75,8 +75,12 @@ export * from './unfiledContainerChildAssociation';
75
75
  export * from './unfiledRecordFolderChildAssociation';
76
76
  export * from './hold';
77
77
  export * from './holdBody';
78
+ export * from './holdBulkOperation';
79
+ export * from './holdBulkStatus';
80
+ export * from './holdBulkStatusEntry';
78
81
  export * from './holdEntry';
79
82
  export * from './holdPaging';
80
83
  export * from './holdPagingList';
81
84
  export * from './nodeAssignedHold';
82
85
  export * from './bulkAssignHoldResponse';
86
+ export * from './bulkAssignHoldResponseEntry';