@alfresco/js-api 7.9.0-10513466524 → 7.9.0-10524274890

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 (82) hide show
  1. package/esm2015/package.json +3 -3
  2. package/esm2015/src/api/activiti-rest-api/api/content.api.js +2 -6
  3. package/esm2015/src/api/activiti-rest-api/api/content.api.js.map +1 -1
  4. package/esm2015/src/api/activiti-rest-api/api/integrationBox.api.js +1 -3
  5. package/esm2015/src/api/activiti-rest-api/api/integrationBox.api.js.map +1 -1
  6. package/esm2015/src/api/activiti-rest-api/api/users.api.js +1 -3
  7. package/esm2015/src/api/activiti-rest-api/api/users.api.js.map +1 -1
  8. package/esm2015/src/api/content-rest-api/api/audit.api.js +2 -6
  9. package/esm2015/src/api/content-rest-api/api/audit.api.js.map +1 -1
  10. package/esm2015/src/api/content-rest-api/api/favorites.api.js +1 -3
  11. package/esm2015/src/api/content-rest-api/api/favorites.api.js.map +1 -1
  12. package/esm2015/src/api/content-rest-api/api/groups.api.js +1 -3
  13. package/esm2015/src/api/content-rest-api/api/groups.api.js.map +1 -1
  14. package/esm2015/src/api/content-rest-api/api/nodes.api.js +7 -21
  15. package/esm2015/src/api/content-rest-api/api/nodes.api.js.map +1 -1
  16. package/esm2015/src/api/content-rest-api/api/sites.api.js +4 -12
  17. package/esm2015/src/api/content-rest-api/api/sites.api.js.map +1 -1
  18. package/esm2015/src/api/content-rest-api/api/tags.api.js +1 -3
  19. package/esm2015/src/api/content-rest-api/api/tags.api.js.map +1 -1
  20. package/esm2015/src/api/content-rest-api/api/trashcan.api.js +2 -5
  21. package/esm2015/src/api/content-rest-api/api/trashcan.api.js.map +1 -1
  22. package/esm2015/src/api/content-rest-api/api/versions.api.js +1 -3
  23. package/esm2015/src/api/content-rest-api/api/versions.api.js.map +1 -1
  24. package/esm2015/src/api/gs-classification-rest-api/api/classificationGuides.api.js +3 -9
  25. package/esm2015/src/api/gs-classification-rest-api/api/classificationGuides.api.js.map +1 -1
  26. package/esm2015/src/api/gs-core-rest-api/api/unfiledRecordFolders.api.js +1 -3
  27. package/esm2015/src/api/gs-core-rest-api/api/unfiledRecordFolders.api.js.map +1 -1
  28. package/esm5/package.json +3 -3
  29. package/esm5/src/api/activiti-rest-api/api/content.api.js +2 -6
  30. package/esm5/src/api/activiti-rest-api/api/content.api.js.map +1 -1
  31. package/esm5/src/api/activiti-rest-api/api/integrationBox.api.js +1 -3
  32. package/esm5/src/api/activiti-rest-api/api/integrationBox.api.js.map +1 -1
  33. package/esm5/src/api/activiti-rest-api/api/users.api.js +1 -3
  34. package/esm5/src/api/activiti-rest-api/api/users.api.js.map +1 -1
  35. package/esm5/src/api/content-rest-api/api/audit.api.js +2 -6
  36. package/esm5/src/api/content-rest-api/api/audit.api.js.map +1 -1
  37. package/esm5/src/api/content-rest-api/api/favorites.api.js +1 -3
  38. package/esm5/src/api/content-rest-api/api/favorites.api.js.map +1 -1
  39. package/esm5/src/api/content-rest-api/api/groups.api.js +1 -3
  40. package/esm5/src/api/content-rest-api/api/groups.api.js.map +1 -1
  41. package/esm5/src/api/content-rest-api/api/nodes.api.js +7 -21
  42. package/esm5/src/api/content-rest-api/api/nodes.api.js.map +1 -1
  43. package/esm5/src/api/content-rest-api/api/sites.api.js +4 -12
  44. package/esm5/src/api/content-rest-api/api/sites.api.js.map +1 -1
  45. package/esm5/src/api/content-rest-api/api/tags.api.js +1 -3
  46. package/esm5/src/api/content-rest-api/api/tags.api.js.map +1 -1
  47. package/esm5/src/api/content-rest-api/api/trashcan.api.js +2 -5
  48. package/esm5/src/api/content-rest-api/api/trashcan.api.js.map +1 -1
  49. package/esm5/src/api/content-rest-api/api/versions.api.js +1 -3
  50. package/esm5/src/api/content-rest-api/api/versions.api.js.map +1 -1
  51. package/esm5/src/api/gs-classification-rest-api/api/classificationGuides.api.js +3 -9
  52. package/esm5/src/api/gs-classification-rest-api/api/classificationGuides.api.js.map +1 -1
  53. package/esm5/src/api/gs-core-rest-api/api/unfiledRecordFolders.api.js +1 -3
  54. package/esm5/src/api/gs-core-rest-api/api/unfiledRecordFolders.api.js.map +1 -1
  55. package/package.json +2 -2
  56. package/src/api/activiti-rest-api/api/content.api.js +2 -6
  57. package/src/api/activiti-rest-api/api/content.api.js.map +1 -1
  58. package/src/api/activiti-rest-api/api/integrationBox.api.js +1 -3
  59. package/src/api/activiti-rest-api/api/integrationBox.api.js.map +1 -1
  60. package/src/api/activiti-rest-api/api/users.api.js +1 -3
  61. package/src/api/activiti-rest-api/api/users.api.js.map +1 -1
  62. package/src/api/content-rest-api/api/audit.api.js +2 -6
  63. package/src/api/content-rest-api/api/audit.api.js.map +1 -1
  64. package/src/api/content-rest-api/api/favorites.api.js +1 -3
  65. package/src/api/content-rest-api/api/favorites.api.js.map +1 -1
  66. package/src/api/content-rest-api/api/groups.api.js +1 -3
  67. package/src/api/content-rest-api/api/groups.api.js.map +1 -1
  68. package/src/api/content-rest-api/api/nodes.api.js +7 -21
  69. package/src/api/content-rest-api/api/nodes.api.js.map +1 -1
  70. package/src/api/content-rest-api/api/sites.api.js +4 -12
  71. package/src/api/content-rest-api/api/sites.api.js.map +1 -1
  72. package/src/api/content-rest-api/api/tags.api.js +1 -3
  73. package/src/api/content-rest-api/api/tags.api.js.map +1 -1
  74. package/src/api/content-rest-api/api/trashcan.api.js +2 -5
  75. package/src/api/content-rest-api/api/trashcan.api.js.map +1 -1
  76. package/src/api/content-rest-api/api/versions.api.js +1 -3
  77. package/src/api/content-rest-api/api/versions.api.js.map +1 -1
  78. package/src/api/gs-classification-rest-api/api/classificationGuides.api.js +3 -9
  79. package/src/api/gs-classification-rest-api/api/classificationGuides.api.js.map +1 -1
  80. package/src/api/gs-core-rest-api/api/unfiledRecordFolders.api.js +1 -3
  81. package/src/api/gs-core-rest-api/api/unfiledRecordFolders.api.js.map +1 -1
  82. package/typings/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfresco/js-api",
3
- "version": "7.9.0-10513466524",
3
+ "version": "7.9.0-10524274890",
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",
@@ -19,9 +19,9 @@
19
19
  "superagent": "^9.0.1",
20
20
  "tslib": "^2.6.1"
21
21
  },
22
- "main": "./index.js",
23
22
  "typings": "./typings/index.d.ts",
24
23
  "module": "./src/index.js",
25
24
  "es2015": "./esm2015/index.js",
26
- "type": "module"
25
+ "type": "module",
26
+ "main": "./src/index.js"
27
27
  }
@@ -21,9 +21,7 @@ export class ContentApi extends BaseApi {
21
21
  createRelatedContentOnProcessInstance(processInstanceId, relatedContent, opts) {
22
22
  throwIfNotDefined(processInstanceId, 'processInstanceId');
23
23
  throwIfNotDefined(relatedContent, 'relatedContent');
24
- opts =
25
- opts ||
26
- {};
24
+ opts = opts || {};
27
25
  const pathParams = {
28
26
  processInstanceId
29
27
  };
@@ -151,9 +149,7 @@ export class ContentApi extends BaseApi {
151
149
  }
152
150
  getRelatedContentForProcessInstance(processInstanceId, opts) {
153
151
  throwIfNotDefined(processInstanceId, 'processInstanceId');
154
- opts =
155
- opts ||
156
- {};
152
+ opts = opts || {};
157
153
  const pathParams = {
158
154
  processInstanceId
159
155
  };
@@ -1 +1 @@
1
- {"version":3,"file":"content.api.js","sourceRoot":"","sources":["content.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EACH,4BAA4B,EAC5B,wDAAwD,EAE3D,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAKpD,MAAM,OAAO,UAAW,SAAQ,OAAO;IASnC,qCAAqC,CACjC,iBAAyB,EACzB,cAAkD,EAClD,IAAqC;QAErC,iBAAiB,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,CAAC;QAC1D,iBAAiB,CAAC,cAAc,EAAE,g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CAAC;QACxC,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEpC,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,kCAAkC;YACxC,WAAW,EAAE;gBACT,QAAQ;gBACR,MAAM;gBACN,IAAI;gBACJ,IAAI;aACP;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 {\n RelatedContentRepresentation,\n ResultListDataRepresentationRelatedContentRepresentation,\n ResultListDataRepresentationRelatedProcessTask\n} from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\n\n/**\n * Content service.\n */\nexport class ContentApi extends BaseApi {\n /**\n * Attach existing content to a process instance\n *\n * @param processInstanceId processInstanceId\n * @param relatedContent relatedContent\n * @param opts Optional parameters\n * @return Promise<RelatedContentRepresentation>\n */\n createRelatedContentOnProcessInstance(\n processInstanceId: string,\n relatedContent: RelatedContentRepresentation | any,\n opts?: { isRelatedContent?: boolean }\n ): Promise<RelatedContentRepresentation> {\n throwIfNotDefined(processInstanceId, 'processInstanceId');\n throwIfNotDefined(relatedContent, 'relatedContent');\n\n opts =\n opts ||\n {\n /* empty */\n };\n\n const pathParams = {\n processInstanceId\n };\n\n if (relatedContent instanceof RelatedContentRepresentation) {\n return this.post({\n path: '/api/enterprise/process-instances/{processInstanceId}/content',\n pathParams,\n queryParams: opts,\n bodyParam: relatedContent,\n returnType: RelatedContentRepresentation\n });\n } else {\n const formParams = {\n file: relatedContent\n };\n\n return this.post({\n path: '/api/enterprise/process-instances/{processInstanceId}/raw-content',\n pathParams,\n formParams,\n queryParams: opts,\n contentTypes: ['multipart/form-data'],\n returnType: RelatedContentRepresentation\n });\n }\n }\n\n /**\n * Attach existing content to a task\n *\n * @param taskId taskId\n * @param relatedContent relatedContent\n * @param opts Optional parameters\n * @return Promise<RelatedContentRepresentation>\n */\n createRelatedContentOnTask(\n taskId: string,\n relatedContent: RelatedContentRepresentation | any,\n opts?: { isRelatedContent?: boolean }\n ): Promise<RelatedContentRepresentation> {\n throwIfNotDefined(taskId, 'taskId');\n throwIfNotDefined(relatedContent, 'relatedContent');\n\n const pathParams = {\n taskId\n };\n\n if (relatedContent instanceof RelatedContentRepresentation) {\n return this.post({\n path: '/api/enterprise/tasks/{taskId}/content',\n pathParams,\n queryParams: opts,\n bodyParam: relatedContent,\n returnType: RelatedContentRepresentation\n });\n } else {\n const formParams = {\n file: relatedContent\n };\n\n return this.post({\n path: '/api/enterprise/tasks/{taskId}/raw-content',\n pathParams,\n queryParams: opts,\n formParams,\n contentTypes: ['multipart/form-data'],\n returnType: RelatedContentRepresentation\n });\n }\n }\n\n /**\n * Upload content and create a local representation\n *\n * @param file file\n * @return Promise<RelatedContentRepresentation>\n */\n createTemporaryRawRelatedContent(file: any): Promise<RelatedContentRepresentation> {\n throwIfNotDefined(file, 'file');\n\n const formParams = {\n file\n };\n\n return this.post({\n path: '/api/enterprise/content/raw',\n formParams,\n contentTypes: ['multipart/form-data'],\n returnType: RelatedContentRepresentation\n });\n }\n\n /**\n * Create a local representation of content from a remote repository\n *\n * @param relatedContent relatedContent\n * @return Promise<RelatedContentRepresentation>\n */\n createTemporaryRelatedContent(relatedContent: RelatedContentRepresentation): Promise<RelatedContentRepresentation> {\n throwIfNotDefined(relatedContent, 'relatedContent');\n\n return this.post({\n path: '/api/enterprise/content',\n bodyParam: relatedContent,\n returnType: RelatedContentRepresentation\n });\n }\n\n /**\n * Remove a local content representation\n *\n * @param contentId contentId\n * @return Promise<{}>\n */\n deleteContent(contentId: number): Promise<void> {\n throwIfNotDefined(contentId, 'contentId');\n\n const pathParams = {\n contentId\n };\n\n return this.delete({\n path: '/api/enterprise/content/{contentId}',\n pathParams\n });\n }\n\n /**\n * Get a local content representation\n *\n * @param contentId contentId\n * @return Promise<RelatedContentRepresentation>\n */\n getContent(contentId: number): Promise<RelatedContentRepresentation> {\n throwIfNotDefined(contentId, 'contentId');\n\n const pathParams = {\n contentId\n };\n\n return this.get({\n path: '/api/enterprise/content/{contentId}',\n pathParams,\n returnType: RelatedContentRepresentation\n });\n }\n\n /**\n * Get content Raw URL for the given contentId\n *\n * @param contentId contentId\n */\n getRawContentUrl(contentId: number): string {\n return `${this.apiClient.basePath}/api/enterprise/content/${contentId}/raw`;\n }\n\n /**\n * Stream content rendition\n *\n * @param contentId contentId\n * @param renditionType renditionType\n * @return Promise<{}>\n */\n getRawContent(contentId: number, renditionType?: string): Promise<any> {\n throwIfNotDefined(contentId, 'contentId');\n\n if (renditionType) {\n const pathParams = {\n contentId,\n renditionType\n };\n\n return this.get({\n path: '/api/enterprise/content/{contentId}/rendition/{renditionType}',\n pathParams,\n returnType: 'blob',\n responseType: 'blob'\n });\n } else {\n const pathParams = {\n contentId\n };\n\n return this.get({\n path: '/api/enterprise/content/{contentId}/raw',\n pathParams,\n returnType: 'blob',\n responseType: 'blob'\n });\n }\n }\n\n /**\n * List content attached to a process instance\n *\n * @param processInstanceId processInstanceId\n * @param opts Optional parameters\n * @return Promise<ResultListDataRepresentationRelatedContentRepresentation>\n */\n getRelatedContentForProcessInstance(\n processInstanceId: string,\n opts?: { isRelatedContent?: boolean }\n ): Promise<ResultListDataRepresentationRelatedContentRepresentation> {\n throwIfNotDefined(processInstanceId, 'processInstanceId');\n\n opts =\n opts ||\n {\n /* empty */\n };\n\n const pathParams = {\n processInstanceId\n };\n\n return this.get({\n path: '/api/enterprise/process-instances/{processInstanceId}/content',\n pathParams,\n queryParams: opts,\n returnType: ResultListDataRepresentationRelatedContentRepresentation\n });\n }\n\n /**\n * List content attached to a task\n *\n * @param taskId taskId\n * @param opts Optional parameters\n * @return Promise<ResultListDataRepresentationRelatedContentRepresentation>\n */\n getRelatedContentForTask(\n taskId: string,\n opts?: { isRelatedContent?: boolean }\n ): Promise<ResultListDataRepresentationRelatedContentRepresentation> {\n throwIfNotDefined(taskId, 'taskId');\n\n const pathParams = {\n taskId\n };\n\n return this.get({\n path: '/api/enterprise/tasks/{taskId}/content',\n pathParams,\n queryParams: opts,\n returnType: ResultListDataRepresentationRelatedContentRepresentation\n });\n }\n\n /**\n * Lists processes and tasks on workflow started with provided document\n *\n * @param sourceId - id of the document that workflow or task has been started with\n * @param source - source of the document that workflow or task has been started with\n * @param size - size of the entries to get\n * @param page - page number\n * @return Promise<ResultListDataRepresentationRelatedProcessTask>\n */\n getProcessesAndTasksOnContent(\n sourceId: string,\n source: string,\n size?: number,\n page?: number\n ): Promise<ResultListDataRepresentationRelatedProcessTask> {\n throwIfNotDefined(sourceId, 'sourceId');\n throwIfNotDefined(source, 'source');\n\n return this.get({\n path: '/api/enterprise/document-runtime',\n queryParams: {\n sourceId,\n source,\n size,\n page\n }\n });\n }\n}\n"]}
1
+ {"version":3,"file":"content.api.js","sourceRoot":"","sources":["content.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EACH,4BAA4B,EAC5B,wDAAwD,EAE3D,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAKpD,MAAM,OAAO,UAAW,SAAQ,OAAO;IASnC,qCAAqC,CACjC,iBAAyB,EACzB,cAAkD,EAClD,IAAqC;QAErC,iBAAiB,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,CAAC;QAC1D,iBAAiB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;QAEpD,IAAI,GAAG,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QAAQ,CAAC,CAAC;QAEpC,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,kCAAkC;YACxC,WAAW,EAAE;gBACT,QAAQ;gBACR,MAAM;gBACN,IAAI;gBACJ,IAAI;aACP;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 {\n RelatedContentRepresentation,\n ResultListDataRepresentationRelatedContentRepresentation,\n ResultListDataRepresentationRelatedProcessTask\n} from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\n\n/**\n * Content service.\n */\nexport class ContentApi extends BaseApi {\n /**\n * Attach existing content to a process instance\n *\n * @param processInstanceId processInstanceId\n * @param relatedContent relatedContent\n * @param opts Optional parameters\n * @return Promise<RelatedContentRepresentation>\n */\n createRelatedContentOnProcessInstance(\n processInstanceId: string,\n relatedContent: RelatedContentRepresentation | any,\n opts?: { isRelatedContent?: boolean }\n ): Promise<RelatedContentRepresentation> {\n throwIfNotDefined(processInstanceId, 'processInstanceId');\n throwIfNotDefined(relatedContent, 'relatedContent');\n\n opts = opts || {};\n\n const pathParams = {\n processInstanceId\n };\n\n if (relatedContent instanceof RelatedContentRepresentation) {\n return this.post({\n path: '/api/enterprise/process-instances/{processInstanceId}/content',\n pathParams,\n queryParams: opts,\n bodyParam: relatedContent,\n returnType: RelatedContentRepresentation\n });\n } else {\n const formParams = {\n file: relatedContent\n };\n\n return this.post({\n path: '/api/enterprise/process-instances/{processInstanceId}/raw-content',\n pathParams,\n formParams,\n queryParams: opts,\n contentTypes: ['multipart/form-data'],\n returnType: RelatedContentRepresentation\n });\n }\n }\n\n /**\n * Attach existing content to a task\n *\n * @param taskId taskId\n * @param relatedContent relatedContent\n * @param opts Optional parameters\n * @return Promise<RelatedContentRepresentation>\n */\n createRelatedContentOnTask(\n taskId: string,\n relatedContent: RelatedContentRepresentation | any,\n opts?: { isRelatedContent?: boolean }\n ): Promise<RelatedContentRepresentation> {\n throwIfNotDefined(taskId, 'taskId');\n throwIfNotDefined(relatedContent, 'relatedContent');\n\n const pathParams = {\n taskId\n };\n\n if (relatedContent instanceof RelatedContentRepresentation) {\n return this.post({\n path: '/api/enterprise/tasks/{taskId}/content',\n pathParams,\n queryParams: opts,\n bodyParam: relatedContent,\n returnType: RelatedContentRepresentation\n });\n } else {\n const formParams = {\n file: relatedContent\n };\n\n return this.post({\n path: '/api/enterprise/tasks/{taskId}/raw-content',\n pathParams,\n queryParams: opts,\n formParams,\n contentTypes: ['multipart/form-data'],\n returnType: RelatedContentRepresentation\n });\n }\n }\n\n /**\n * Upload content and create a local representation\n *\n * @param file file\n * @return Promise<RelatedContentRepresentation>\n */\n createTemporaryRawRelatedContent(file: any): Promise<RelatedContentRepresentation> {\n throwIfNotDefined(file, 'file');\n\n const formParams = {\n file\n };\n\n return this.post({\n path: '/api/enterprise/content/raw',\n formParams,\n contentTypes: ['multipart/form-data'],\n returnType: RelatedContentRepresentation\n });\n }\n\n /**\n * Create a local representation of content from a remote repository\n *\n * @param relatedContent relatedContent\n * @return Promise<RelatedContentRepresentation>\n */\n createTemporaryRelatedContent(relatedContent: RelatedContentRepresentation): Promise<RelatedContentRepresentation> {\n throwIfNotDefined(relatedContent, 'relatedContent');\n\n return this.post({\n path: '/api/enterprise/content',\n bodyParam: relatedContent,\n returnType: RelatedContentRepresentation\n });\n }\n\n /**\n * Remove a local content representation\n *\n * @param contentId contentId\n * @return Promise<{}>\n */\n deleteContent(contentId: number): Promise<void> {\n throwIfNotDefined(contentId, 'contentId');\n\n const pathParams = {\n contentId\n };\n\n return this.delete({\n path: '/api/enterprise/content/{contentId}',\n pathParams\n });\n }\n\n /**\n * Get a local content representation\n *\n * @param contentId contentId\n * @return Promise<RelatedContentRepresentation>\n */\n getContent(contentId: number): Promise<RelatedContentRepresentation> {\n throwIfNotDefined(contentId, 'contentId');\n\n const pathParams = {\n contentId\n };\n\n return this.get({\n path: '/api/enterprise/content/{contentId}',\n pathParams,\n returnType: RelatedContentRepresentation\n });\n }\n\n /**\n * Get content Raw URL for the given contentId\n *\n * @param contentId contentId\n */\n getRawContentUrl(contentId: number): string {\n return `${this.apiClient.basePath}/api/enterprise/content/${contentId}/raw`;\n }\n\n /**\n * Stream content rendition\n *\n * @param contentId contentId\n * @param renditionType renditionType\n * @return Promise<{}>\n */\n getRawContent(contentId: number, renditionType?: string): Promise<any> {\n throwIfNotDefined(contentId, 'contentId');\n\n if (renditionType) {\n const pathParams = {\n contentId,\n renditionType\n };\n\n return this.get({\n path: '/api/enterprise/content/{contentId}/rendition/{renditionType}',\n pathParams,\n returnType: 'blob',\n responseType: 'blob'\n });\n } else {\n const pathParams = {\n contentId\n };\n\n return this.get({\n path: '/api/enterprise/content/{contentId}/raw',\n pathParams,\n returnType: 'blob',\n responseType: 'blob'\n });\n }\n }\n\n /**\n * List content attached to a process instance\n *\n * @param processInstanceId processInstanceId\n * @param opts Optional parameters\n * @return Promise<ResultListDataRepresentationRelatedContentRepresentation>\n */\n getRelatedContentForProcessInstance(\n processInstanceId: string,\n opts?: { isRelatedContent?: boolean }\n ): Promise<ResultListDataRepresentationRelatedContentRepresentation> {\n throwIfNotDefined(processInstanceId, 'processInstanceId');\n\n opts = opts || {};\n\n const pathParams = {\n processInstanceId\n };\n\n return this.get({\n path: '/api/enterprise/process-instances/{processInstanceId}/content',\n pathParams,\n queryParams: opts,\n returnType: ResultListDataRepresentationRelatedContentRepresentation\n });\n }\n\n /**\n * List content attached to a task\n *\n * @param taskId taskId\n * @param opts Optional parameters\n * @return Promise<ResultListDataRepresentationRelatedContentRepresentation>\n */\n getRelatedContentForTask(\n taskId: string,\n opts?: { isRelatedContent?: boolean }\n ): Promise<ResultListDataRepresentationRelatedContentRepresentation> {\n throwIfNotDefined(taskId, 'taskId');\n\n const pathParams = {\n taskId\n };\n\n return this.get({\n path: '/api/enterprise/tasks/{taskId}/content',\n pathParams,\n queryParams: opts,\n returnType: ResultListDataRepresentationRelatedContentRepresentation\n });\n }\n\n /**\n * Lists processes and tasks on workflow started with provided document\n *\n * @param sourceId - id of the document that workflow or task has been started with\n * @param source - source of the document that workflow or task has been started with\n * @param size - size of the entries to get\n * @param page - page number\n * @return Promise<ResultListDataRepresentationRelatedProcessTask>\n */\n getProcessesAndTasksOnContent(\n sourceId: string,\n source: string,\n size?: number,\n page?: number\n ): Promise<ResultListDataRepresentationRelatedProcessTask> {\n throwIfNotDefined(sourceId, 'sourceId');\n throwIfNotDefined(source, 'source');\n\n return this.get({\n path: '/api/enterprise/document-runtime',\n queryParams: {\n sourceId,\n source,\n size,\n page\n }\n });\n }\n}\n"]}
@@ -54,9 +54,7 @@ export class IntegrationBoxApi extends BaseApi {
54
54
  });
55
55
  }
56
56
  getFiles(opts) {
57
- opts =
58
- opts ||
59
- {};
57
+ opts = opts || {};
60
58
  return this.get({
61
59
  path: '/api/enterprise/integration/box/files',
62
60
  queryParams: opts,
@@ -1 +1 @@
1
- {"version":3,"file":"integrationBox.api.js","sourceRoot":"","sources":["integrationBox.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAKpD,MAAM,OAAO,iBAAkB,SAAQ,OAAO;IAO1C,oBAAoB;QAChB,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,sDAAsD;YAC5D,OAAO,EAAE,CAAC,WAAW,CAAC;SAC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AC,CAAC;IACP,CAAC;IASD,uBAAuB,CAAC,MAAc,EAAE,WAAiD;QACrF,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,iBAAiB,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;QAE9C,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,kDAAkD;YACxD,UAAU;YACV,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,CAAC,KAAK,CAAC;SACnB,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 { ResultListDataRepresentationBoxContent, UserAccountCredentialsRepresentation } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\n\n/**\n * IntegrationBoxApi service.\n */\nexport class IntegrationBoxApi extends BaseApi {\n /**\n * Box Authorization\n * Returns Box OAuth HTML Page\n *\n * @return Promise<{}>\n */\n confirmAuthorisation(): Promise<any> {\n return this.get({\n path: '/api/enterprise/integration/box/confirm-auth-request',\n accepts: ['text/html']\n });\n }\n\n /**\n * Add Box account\n *\n * @param userId userId\n * @param credentials credentials\n * @return Promise<{}>\n */\n createRepositoryAccount(userId: number, credentials: UserAccountCredentialsRepresentation): Promise<any> {\n throwIfNotDefined(userId, 'userId');\n throwIfNotDefined(credentials, 'credentials');\n\n const pathParams = {\n userId\n };\n\n return this.post({\n path: '/api/enterprise/integration/box/{userId}/account',\n pathParams,\n bodyParam: credentials\n });\n }\n\n /**\n * Delete account information\n *\n * @param userId userId\n * @return Promise<{}>\n */\n deleteRepositoryAccount(userId: number): Promise<void> {\n throwIfNotDefined(userId, 'userId');\n\n const pathParams = {\n userId\n };\n\n const accepts = ['*/*'];\n\n return this.delete({\n path: '/api/enterprise/integration/box/{userId}/account',\n pathParams,\n accepts\n });\n }\n\n /**\n * Get status information\n *\n * @return Promise<boolean>\n */\n getBoxPluginStatus(): Promise<boolean> {\n return this.get({\n path: '/api/enterprise/integration/box/status',\n accepts: ['*/*']\n });\n }\n\n /**\n * List file and folders\n *\n * @param opts Optional parameters\n * @param opts.filter filter\n * @param opts.parent parent\n * @return Promise<ResultListDataRepresentationBoxContent>\n */\n getFiles(opts?: { filter?: string; parent?: string }): Promise<ResultListDataRepresentationBoxContent> {\n opts =\n opts ||\n {\n /* empty */\n };\n\n return this.get({\n path: '/api/enterprise/integration/box/files',\n queryParams: opts,\n accepts: ['*/*']\n });\n }\n\n /**\n * Get account information\n *\n * @param userId userId\n * @return Promise<{}>\n */\n getRepositoryAccount(userId: number): Promise<any> {\n throwIfNotDefined(userId, 'userId');\n\n const pathParams = {\n userId\n };\n\n return this.get({\n path: '/api/enterprise/integration/box/{userId}/account',\n pathParams,\n accepts: ['*/*']\n });\n }\n\n /**\n * Update account information\n *\n * @param userId userId\n * @param credentials credentials\n * @return Promise<{}>\n */\n updateRepositoryAccount(userId: number, credentials: UserAccountCredentialsRepresentation): Promise<any> {\n throwIfNotDefined(userId, 'userId');\n throwIfNotDefined(credentials, 'credentials');\n\n const pathParams = {\n userId\n };\n\n return this.put({\n path: '/api/enterprise/integration/box/{userId}/account',\n pathParams,\n bodyParam: credentials,\n accepts: ['*/*']\n });\n }\n}\n"]}
1
+ {"version":3,"file":"integrationBox.api.js","sourceRoot":"","sources":["integrationBox.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,YA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Ac;QAC/B,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEpC,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,kDAAkD;YACxD,UAAU;YACV,OAAO,EAAE,CAAC,KAAK,CAAC;SACnB,CAAC,CAAC;IACP,CAAC;IASD,uBAAuB,CAAC,MAAc,EAAE,WAAiD;QACrF,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,iBAAiB,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;QAE9C,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,kDAAkD;YACxD,UAAU;YACV,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,CAAC,KAAK,CAAC;SACnB,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 { ResultListDataRepresentationBoxContent, UserAccountCredentialsRepresentation } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\n\n/**\n * IntegrationBoxApi service.\n */\nexport class IntegrationBoxApi extends BaseApi {\n /**\n * Box Authorization\n * Returns Box OAuth HTML Page\n *\n * @return Promise<{}>\n */\n confirmAuthorisation(): Promise<any> {\n return this.get({\n path: '/api/enterprise/integration/box/confirm-auth-request',\n accepts: ['text/html']\n });\n }\n\n /**\n * Add Box account\n *\n * @param userId userId\n * @param credentials credentials\n * @return Promise<{}>\n */\n createRepositoryAccount(userId: number, credentials: UserAccountCredentialsRepresentation): Promise<any> {\n throwIfNotDefined(userId, 'userId');\n throwIfNotDefined(credentials, 'credentials');\n\n const pathParams = {\n userId\n };\n\n return this.post({\n path: '/api/enterprise/integration/box/{userId}/account',\n pathParams,\n bodyParam: credentials\n });\n }\n\n /**\n * Delete account information\n *\n * @param userId userId\n * @return Promise<{}>\n */\n deleteRepositoryAccount(userId: number): Promise<void> {\n throwIfNotDefined(userId, 'userId');\n\n const pathParams = {\n userId\n };\n\n const accepts = ['*/*'];\n\n return this.delete({\n path: '/api/enterprise/integration/box/{userId}/account',\n pathParams,\n accepts\n });\n }\n\n /**\n * Get status information\n *\n * @return Promise<boolean>\n */\n getBoxPluginStatus(): Promise<boolean> {\n return this.get({\n path: '/api/enterprise/integration/box/status',\n accepts: ['*/*']\n });\n }\n\n /**\n * List file and folders\n *\n * @param opts Optional parameters\n * @param opts.filter filter\n * @param opts.parent parent\n * @return Promise<ResultListDataRepresentationBoxContent>\n */\n getFiles(opts?: { filter?: string; parent?: string }): Promise<ResultListDataRepresentationBoxContent> {\n opts = opts || {};\n\n return this.get({\n path: '/api/enterprise/integration/box/files',\n queryParams: opts,\n accepts: ['*/*']\n });\n }\n\n /**\n * Get account information\n *\n * @param userId userId\n * @return Promise<{}>\n */\n getRepositoryAccount(userId: number): Promise<any> {\n throwIfNotDefined(userId, 'userId');\n\n const pathParams = {\n userId\n };\n\n return this.get({\n path: '/api/enterprise/integration/box/{userId}/account',\n pathParams,\n accepts: ['*/*']\n });\n }\n\n /**\n * Update account information\n *\n * @param userId userId\n * @param credentials credentials\n * @return Promise<{}>\n */\n updateRepositoryAccount(userId: number, credentials: UserAccountCredentialsRepresentation): Promise<any> {\n throwIfNotDefined(userId, 'userId');\n throwIfNotDefined(credentials, 'credentials');\n\n const pathParams = {\n userId\n };\n\n return this.put({\n path: '/api/enterprise/integration/box/{userId}/account',\n pathParams,\n bodyParam: credentials,\n accepts: ['*/*']\n });\n }\n}\n"]}
@@ -45,9 +45,7 @@ export class UsersApi extends BaseApi {
45
45
  });
46
46
  }
47
47
  getUsers(opts) {
48
- opts =
49
- opts ||
50
- {};
48
+ opts = opts || {};
51
49
  const queryParams = {
52
50
  filter: opts['filter'],
53
51
  email: opts['email'],
@@ -1 +1 @@
1
- {"version":3,"file":"users.api.js","sourceRoot":"","sources":["users.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAgBpD,MAAM,OAAO,QAAS,SAAQ,OAAO;IAUjC,aAAa,CAAC,MAAc,EAAE,aAAuC;QACjE,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,iBAAiB,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;QAElD,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,gCAAgC;YACtC,UAAU;YACV,SAAS,EAAE,aAAa;SAC3B,CAAC,CAAC;IACP,CAAC;IAQD,wBAAwB,CAAC,MAAc;QACnC,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,GAAG,kBAAkB,GAAG,MAAM,GAAG,UAAU,CAAC;IAC9E,CAAC;IAQD,OAAO,CAAC,MAAc;QAClB,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEpC,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,gCAAgC;YACtC,UAAU;YACV,UAAU,EAAE,kBAAkB;SACjC,CAAC,CAAC;IACP,CAAC;IAUD,QAAQ,CAAC,IAAoB;QACzB,IAAI;YACA,IAAI;gBACJ,EAEC,CAAC;QAEN,MAAM,WAAW,GAAG;YAChB,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;YACtB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;YACpB,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;YAC9B,yBAAyB,EAAE,IAAI,CAAC,2BAA2B,CAAC;YAC5D,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC;YACpC,gBAAgB,EAAE,IAAI,CAAC,kBAAkB,CAAC;YAC1C,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;YACxB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;SAC7B,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,uBAAuB;YAC7B,WAAW;SACd,CAAC,CAAC;IACP,CAAC;IAQD,oBAAoB,CAAC,aAA0C;QAC3D,iBAAiB,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;QAElD,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,+BAA+B;YACrC,SAAS,EAAE,aAAa;SAC3B,CAAC,CAAC;IACP,CAAC;IASD,UAAU,CAAC,MAAc,EAAE,WAA+B;QACtD,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,iBAAiB,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;QAE9C,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,gCAAgC;YACtC,UAAU;YACV,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,kBAAkB;SACjC,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 { ResetPasswordRepresentation } from '../model/resetPasswordRepresentation';\nimport { ResultListDataRepresentationLightUserRepresentation } from '../model/resultListDataRepresentationLightUserRepresentation';\nimport { UserActionRepresentation } from '../model/userActionRepresentation';\nimport { UserRepresentation } from '../model/userRepresentation';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\n\nexport type GetUsersQuery = {\n filter?: string;\n email?: string;\n externalId?: string;\n externalIdCaseInsensitive?: string;\n excludeTaskId?: string;\n excludeProcessId?: string;\n groupId?: number;\n tenantId?: number;\n};\n\n/**\n * Users service.\n */\nexport class UsersApi extends BaseApi {\n /**\n * Execute an action for a specific user\n *\n * Typical action is updating/reset password\n *\n * @param userId userId\n * @param actionRequest actionRequest\n * @returns Promise<{}>\n */\n executeAction(userId: number, actionRequest: UserActionRepresentation): Promise<any> {\n throwIfNotDefined(userId, 'userId');\n throwIfNotDefined(actionRequest, 'actionRequest');\n\n const pathParams = {\n userId\n };\n\n return this.post({\n path: '/api/enterprise/users/{userId}',\n pathParams,\n bodyParam: actionRequest\n });\n }\n\n /**\n * Stream user profile picture\n *\n * @param userId userId\n * @returns Promise<{}>\n */\n getUserProfilePictureUrl(userId: string): string {\n return this.apiClient.basePath + '/app/rest/users/' + userId + '/picture';\n }\n\n /**\n * Get a user\n *\n * @param userId userId\n * @returns Promise<UserRepresentation>\n */\n getUser(userId: number): Promise<UserRepresentation> {\n throwIfNotDefined(userId, 'userId');\n\n const pathParams = {\n userId\n };\n\n return this.get({\n path: '/api/enterprise/users/{userId}',\n pathParams,\n returnType: UserRepresentation\n });\n }\n\n /**\n * Query users\n *\n * A common use case is that a user wants to select another user (eg. when assigning a task) or group.\n *\n * @param opts Optional parameters\n * @returns Promise<ResultListDataRepresentationLightUserRepresentation>\n */\n getUsers(opts?: GetUsersQuery): Promise<ResultListDataRepresentationLightUserRepresentation> {\n opts =\n opts ||\n {\n /* empty */\n };\n\n const queryParams = {\n filter: opts['filter'],\n email: opts['email'],\n externalId: opts['externalId'],\n externalIdCaseInsensitive: opts['externalIdCaseInsensitive'],\n excludeTaskId: opts['excludeTaskId'],\n excludeProcessId: opts['excludeProcessId'],\n groupId: opts['groupId'],\n tenantId: opts['tenantId']\n };\n\n return this.get({\n path: '/api/enterprise/users',\n queryParams\n });\n }\n\n /**\n * Request a password reset\n *\n * @param resetPassword resetPassword\n * @returns Promise<{}>\n */\n requestPasswordReset(resetPassword: ResetPasswordRepresentation): Promise<any> {\n throwIfNotDefined(resetPassword, 'resetPassword');\n\n return this.post({\n path: '/api/enterprise/idm/passwords',\n bodyParam: resetPassword\n });\n }\n\n /**\n * Update a user\n *\n * @param userId userId\n * @param userRequest userRequest\n * @returns Promise<UserRepresentation>\n */\n updateUser(userId: number, userRequest: UserRepresentation): Promise<UserRepresentation> {\n throwIfNotDefined(userId, 'userId');\n throwIfNotDefined(userRequest, 'userRequest');\n\n const pathParams = {\n userId\n };\n\n return this.put({\n path: '/api/enterprise/users/{userId}',\n pathParams,\n bodyParam: userRequest,\n returnType: UserRepresentation\n });\n }\n}\n"]}
1
+ {"version":3,"file":"users.api.js","sourceRoot":"","sources":["users.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAgBpD,MAAM,OAAO,QAAS,SAAQ,OAAO;IAUjC,aAAa,CAAC,MAAc,EAAE,aAAuC;QACjE,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,iBAAi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AElD,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,+BAA+B;YACrC,SAAS,EAAE,aAAa;SAC3B,CAAC,CAAC;IACP,CAAC;IASD,UAAU,CAAC,MAAc,EAAE,WAA+B;QACtD,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,iBAAiB,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;QAE9C,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,gCAAgC;YACtC,UAAU;YACV,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,kBAAkB;SACjC,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 { ResetPasswordRepresentation } from '../model/resetPasswordRepresentation';\nimport { ResultListDataRepresentationLightUserRepresentation } from '../model/resultListDataRepresentationLightUserRepresentation';\nimport { UserActionRepresentation } from '../model/userActionRepresentation';\nimport { UserRepresentation } from '../model/userRepresentation';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\n\nexport type GetUsersQuery = {\n filter?: string;\n email?: string;\n externalId?: string;\n externalIdCaseInsensitive?: string;\n excludeTaskId?: string;\n excludeProcessId?: string;\n groupId?: number;\n tenantId?: number;\n};\n\n/**\n * Users service.\n */\nexport class UsersApi extends BaseApi {\n /**\n * Execute an action for a specific user\n *\n * Typical action is updating/reset password\n *\n * @param userId userId\n * @param actionRequest actionRequest\n * @returns Promise<{}>\n */\n executeAction(userId: number, actionRequest: UserActionRepresentation): Promise<any> {\n throwIfNotDefined(userId, 'userId');\n throwIfNotDefined(actionRequest, 'actionRequest');\n\n const pathParams = {\n userId\n };\n\n return this.post({\n path: '/api/enterprise/users/{userId}',\n pathParams,\n bodyParam: actionRequest\n });\n }\n\n /**\n * Stream user profile picture\n *\n * @param userId userId\n * @returns Promise<{}>\n */\n getUserProfilePictureUrl(userId: string): string {\n return this.apiClient.basePath + '/app/rest/users/' + userId + '/picture';\n }\n\n /**\n * Get a user\n *\n * @param userId userId\n * @returns Promise<UserRepresentation>\n */\n getUser(userId: number): Promise<UserRepresentation> {\n throwIfNotDefined(userId, 'userId');\n\n const pathParams = {\n userId\n };\n\n return this.get({\n path: '/api/enterprise/users/{userId}',\n pathParams,\n returnType: UserRepresentation\n });\n }\n\n /**\n * Query users\n *\n * A common use case is that a user wants to select another user (eg. when assigning a task) or group.\n *\n * @param opts Optional parameters\n * @returns Promise<ResultListDataRepresentationLightUserRepresentation>\n */\n getUsers(opts?: GetUsersQuery): Promise<ResultListDataRepresentationLightUserRepresentation> {\n opts = opts || {};\n\n const queryParams = {\n filter: opts['filter'],\n email: opts['email'],\n externalId: opts['externalId'],\n externalIdCaseInsensitive: opts['externalIdCaseInsensitive'],\n excludeTaskId: opts['excludeTaskId'],\n excludeProcessId: opts['excludeProcessId'],\n groupId: opts['groupId'],\n tenantId: opts['tenantId']\n };\n\n return this.get({\n path: '/api/enterprise/users',\n queryParams\n });\n }\n\n /**\n * Request a password reset\n *\n * @param resetPassword resetPassword\n * @returns Promise<{}>\n */\n requestPasswordReset(resetPassword: ResetPasswordRepresentation): Promise<any> {\n throwIfNotDefined(resetPassword, 'resetPassword');\n\n return this.post({\n path: '/api/enterprise/idm/passwords',\n bodyParam: resetPassword\n });\n }\n\n /**\n * Update a user\n *\n * @param userId userId\n * @param userRequest userRequest\n * @returns Promise<UserRepresentation>\n */\n updateUser(userId: number, userRequest: UserRepresentation): Promise<UserRepresentation> {\n throwIfNotDefined(userId, 'userId');\n throwIfNotDefined(userRequest, 'userRequest');\n\n const pathParams = {\n userId\n };\n\n return this.put({\n path: '/api/enterprise/users/{userId}',\n pathParams,\n bodyParam: userRequest,\n returnType: UserRepresentation\n });\n }\n}\n"]}
@@ -92,9 +92,7 @@ export class AuditApi extends BaseApi {
92
92
  }
93
93
  listAuditEntriesForAuditApp(auditApplicationId, opts) {
94
94
  throwIfNotDefined(auditApplicationId, 'auditApplicationId');
95
- opts =
96
- opts ||
97
- {};
95
+ opts = opts || {};
98
96
  const pathParams = {
99
97
  auditApplicationId
100
98
  };
@@ -115,9 +113,7 @@ export class AuditApi extends BaseApi {
115
113
  }
116
114
  listAuditEntriesForNode(nodeId, opts) {
117
115
  throwIfNotDefined(nodeId, 'nodeId');
118
- opts =
119
- opts ||
120
- {};
116
+ opts = opts || {};
121
117
  const pathParams = {
122
118
  nodeId
123
119
  };
@@ -1 +1 @@
1
- {"version":3,"file":"audit.api.js","sourceRoot":"","sources":["audit.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAY,cAAc,EAAmB,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACxG,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAMlE,MAAM,OAAO,QAAS,SAAQ,OAAO;IAoBjC,6BAA6B,CAAC,kBAA0B,EAAE,KAAa;QACnE,iBAAiB,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAAC;QAC5D,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAElC,MAAM,UAAU,GAAG;YACf,kBAAkB;SACrB,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,KAAK;SACR,CAAC;QAEF,OAAO,IAA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AG;YACf,kBAAkB;SACrB,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,0CAA0C;YAChD,UAAU;YACV,WAAW;YACX,SAAS,EAAE,kBAAkB;SAChC,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 { AuditApp, AuditAppPaging, AuditBodyUpdate, AuditEntryEntry, AuditEntryPaging } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\n/**\n * Audit service.\n */\nexport class AuditApi extends BaseApi {\n /**\n * Permanently delete audit entries for an audit application\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n *\n * Permanently delete audit entries for an audit application **auditApplicationId**.\n * The **where** clause must be specified, either with an inclusive time period or for\n * an inclusive range of ids. The delete is within the context of the given audit application.\n * For example:\n * - where=(createdAt BETWEEN ('2017-06-02T12:13:51.593+01:00' , '2017-06-04T10:05:16.536+01:00')\n * - where=(id BETWEEN ('1234', '4321')\n * You must have admin rights to delete audit information.\n *\n * @param auditApplicationId The identifier of an audit application.\n * @param where Audit entries to permanently delete for an audit application, given an inclusive time period or range of ids. For example:\n * - where=(createdAt BETWEEN ('2017-06-02T12:13:51.593+01:00' , '2017-06-04T10:05:16.536+01:00')\n * - where=(id BETWEEN ('1234', '4321')\n * @return Promise<{}>\n */\n deleteAuditEntriesForAuditApp(auditApplicationId: string, where: string): Promise<void> {\n throwIfNotDefined(auditApplicationId, 'auditApplicationId');\n throwIfNotDefined(where, 'where');\n\n const pathParams = {\n auditApplicationId\n };\n\n const queryParams = {\n where\n };\n\n return this.delete({\n path: '/audit-applications/{auditApplicationId}/audit-entries',\n pathParams,\n queryParams\n });\n }\n\n /**\n * Permanently delete an audit entry\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n * You must have admin rights to delete audit information.\n *\n * @param auditApplicationId The identifier of an audit application.\n * @param auditEntryId The identifier of an audit entry.\n * @return Promise<{}>\n */\n deleteAuditEntry(auditApplicationId: string, auditEntryId: string): Promise<void> {\n throwIfNotDefined(auditApplicationId, 'auditApplicationId');\n throwIfNotDefined(auditEntryId, 'auditEntryId');\n\n const pathParams = {\n auditApplicationId,\n auditEntryId\n };\n\n return this.delete({\n path: '/audit-applications/{auditApplicationId}/audit-entries/{auditEntryId}',\n pathParams\n });\n }\n\n /**\n * Get audit application info\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n * You must have admin rights to retrieve audit information.\n *\n * You can use the **include** parameter to return the minimum and/or maximum audit record id for the application.\n *\n * @param auditApplicationId The identifier of an audit application.\n * @param opts Optional parameters\n * @return Promise<AuditApp>\n */\n getAuditApp(auditApplicationId: string, opts?: ContentFieldsQuery & ContentIncludeQuery): Promise<AuditApp> {\n throwIfNotDefined(auditApplicationId, 'auditApplicationId');\n\n const pathParams = {\n auditApplicationId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv'),\n include: buildCollectionParam(opts?.include, 'csv')\n };\n\n return this.get({\n path: '/audit-applications/{auditApplicationId}',\n pathParams,\n queryParams\n });\n }\n\n /**\n * Get audit entry\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n * You must have admin rights to access audit information.\n *\n * @param auditApplicationId The identifier of an audit application.\n * @param auditEntryId The identifier of an audit entry.\n * @param opts Optional parameters\n * @return Promise<AuditEntryEntry>\n */\n getAuditEntry(auditApplicationId: string, auditEntryId: string, opts?: ContentFieldsQuery): Promise<AuditEntryEntry> {\n throwIfNotDefined(auditApplicationId, 'auditApplicationId');\n throwIfNotDefined(auditEntryId, 'auditEntryId');\n\n const pathParams = {\n auditApplicationId,\n auditEntryId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/audit-applications/{auditApplicationId}/audit-entries/{auditEntryId}',\n pathParams,\n queryParams,\n returnType: AuditEntryEntry\n });\n }\n\n /**\n * Gets a list of audit applications in this repository.\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n *\n * This list may include pre-configured audit applications, if enabled, such as:\n *\n * - alfresco-access\n * - CMISChangeLog\n * - Alfresco Tagging Service\n * - Alfresco Sync Service (used by Enterprise Cloud Sync)\n *\n * You must have admin rights to retrieve audit information.\n *\n * @param opts Optional parameters\n * @return Promise<AuditAppPaging>\n */\n listAuditApps(opts?: ContentPagingQuery & ContentFieldsQuery): Promise<AuditAppPaging> {\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/audit-applications',\n queryParams,\n returnType: AuditAppPaging\n });\n }\n\n /**\n * List audit entries for an audit application\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n *\n * Gets a list of audit entries for audit application **auditApplicationId**.\n * You can use the **include** parameter to return additional **values** information.\n * The list can be filtered by one or more of:\n * - **createdByUser** person id\n * - **createdAt** inclusive time period\n * - **id** inclusive range of ids\n * - **valuesKey** audit entry values contains the exact matching key\n * - **valuesValue** audit entry values contains the exact matching value\n *\n * The default sort order is **createdAt** ascending, but you can use an optional **ASC** or **DESC**\n * modifier to specify an ascending or descending sort order.\n *\n * For example, specifying orderBy=createdAt DESC returns audit entries in descending **createdAt** order.\n * You must have admin rights to retrieve audit information.\n *\n * @param auditApplicationId The identifier of an audit application.\n * @param opts Optional parameters\n * @param opts.orderBy A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to\n * sort the list by one or more fields.\n * Each field has a default sort order, which is normally ascending order. Read the API method implementation notes\n * above to check if any fields used in this method have a descending default search order.\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.\n * @param opts.where Optionally filter the list. Here are some examples:\n * - where=(createdByUser='jbloggs')\n * - where=(id BETWEEN ('1234', '4321')\n * - where=(createdAt BETWEEN ('2017-06-02T12:13:51.593+01:00' , '2017-06-04T10:05:16.536+01:00')\n * - where=(createdByUser='jbloggs' and createdAt BETWEEN ('2017-06-02T12:13:51.593+01:00' , '2017-06-04T10:05:16.536+01:00')\n * - where=(valuesKey='/alfresco-access/login/user')\n * - where=(valuesKey='/alfresco-access/transaction/action' and valuesValue='DELETE')\n * @returns Promise<AuditEntryPaging>\n */\n listAuditEntriesForAuditApp(\n auditApplicationId: string,\n opts?: {\n where?: string;\n orderBy?: string[];\n } & ContentPagingQuery &\n ContentFieldsQuery &\n ContentIncludeQuery\n ): Promise<AuditEntryPaging> {\n throwIfNotDefined(auditApplicationId, 'auditApplicationId');\n opts =\n opts ||\n {\n /* empty */\n };\n\n const pathParams = {\n auditApplicationId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n maxItems: opts?.maxItems,\n where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/audit-applications/{auditApplicationId}/audit-entries',\n pathParams,\n queryParams,\n returnType: AuditEntryPaging\n });\n }\n\n /**\n * List audit entries for a node\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n *\n * The list can be filtered by **createdByUser** and for a given inclusive time period.\n * The default sort order is **createdAt** ascending, but you can use an optional **ASC** or **DESC**\n * modifier to specify an ascending or descending sort order.\n *\n * For example, specifying orderBy=createdAt DESC returns audit entries in descending **createdAt** order.\n * This relies on the pre-configured 'alfresco-access' audit application.\n *\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @param opts.orderBy A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to\n * sort the list by one or more fields.\n * Each field has a default sort order, which is normally ascending order. Read the API method implementation notes\n * above to check if any fields used in this method have a descending default search order.\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.\n * @param opts.where Optionally filter the list. Here are some examples:\n * - where=(createdByUser='-me-')\n * - where=(createdAt BETWEEN ('2017-06-02T12:13:51.593+01:00' , '2017-06-04T10:05:16.536+01:00')\n * - where=(createdByUser='jbloggs' and createdAt BETWEEN ('2017-06-02T12:13:51.593+01:00' , '2017-06-04T10:05:16.536+01:00')\n * @returns Promise<AuditEntryPaging>\n */\n listAuditEntriesForNode(\n nodeId: string,\n opts?: {\n orderBy?: string[];\n where?: string;\n } & ContentPagingQuery &\n ContentIncludeQuery &\n ContentFieldsQuery\n ): Promise<AuditEntryPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n opts =\n opts ||\n {\n /* empty */\n };\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n maxItems: opts?.maxItems,\n where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/nodes/{nodeId}/audit-entries',\n pathParams,\n queryParams,\n returnType: AuditEntryPaging\n });\n }\n\n /**\n * Update audit application info\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n *\n * New audit entries will not be created for a disabled audit application until\n * it is re-enabled (and system-wide auditing is also enabled).\n * Note, it is still possible to query &/or delete any existing audit entries even\n * if auditing is disabled for the audit application.\n * You must have admin rights to update audit application.\n *\n * @param auditApplicationId The identifier of an audit application.\n * @param auditAppBodyUpdate The audit application to update.\n * @param opts Optional parameters\n * @returns Promise<AuditApp>\n */\n updateAuditApp(auditApplicationId: string, auditAppBodyUpdate: AuditBodyUpdate, opts?: ContentFieldsQuery): Promise<AuditApp> {\n throwIfNotDefined(auditApplicationId, 'auditApplicationId');\n throwIfNotDefined(auditAppBodyUpdate, 'auditAppBodyUpdate');\n\n const pathParams = {\n auditApplicationId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/audit-applications/{auditApplicationId}',\n pathParams,\n queryParams,\n bodyParam: auditAppBodyUpdate\n });\n }\n}\n"]}
1
+ {"version":3,"file":"audit.api.js","sourceRoot":"","sources":["audit.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAY,cAAc,EAAmB,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACxG,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAMlE,MAAM,OAAO,QAAS,SAAQ,OAAO;IAoBjC,6BAA6B,CAAC,kBAA0B,EAAE,KAAa;QACnE,iBAAiB,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAAC;QAC5D,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAElC,MAAM,UAAU,GAAG;YACf,kBAAkB;SACrB,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,KAAK;SACR,CAAC;QAEF,OAAO,IAAI,CAAC,MAAM,CAAC;YACf,IAAI,EAAE,wDAAwD;YAC9D,UAAU;YACV,WAAW;SACd,CAAC,CAAC;IACP,CAAC;IAYD,gBAAgB,CAAC,k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CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,0CAA0C;YAChD,UAAU;YACV,WAAW;YACX,SAAS,EAAE,kBAAkB;SAChC,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 { AuditApp, AuditAppPaging, AuditBodyUpdate, AuditEntryEntry, AuditEntryPaging } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\n/**\n * Audit service.\n */\nexport class AuditApi extends BaseApi {\n /**\n * Permanently delete audit entries for an audit application\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n *\n * Permanently delete audit entries for an audit application **auditApplicationId**.\n * The **where** clause must be specified, either with an inclusive time period or for\n * an inclusive range of ids. The delete is within the context of the given audit application.\n * For example:\n * - where=(createdAt BETWEEN ('2017-06-02T12:13:51.593+01:00' , '2017-06-04T10:05:16.536+01:00')\n * - where=(id BETWEEN ('1234', '4321')\n * You must have admin rights to delete audit information.\n *\n * @param auditApplicationId The identifier of an audit application.\n * @param where Audit entries to permanently delete for an audit application, given an inclusive time period or range of ids. For example:\n * - where=(createdAt BETWEEN ('2017-06-02T12:13:51.593+01:00' , '2017-06-04T10:05:16.536+01:00')\n * - where=(id BETWEEN ('1234', '4321')\n * @return Promise<{}>\n */\n deleteAuditEntriesForAuditApp(auditApplicationId: string, where: string): Promise<void> {\n throwIfNotDefined(auditApplicationId, 'auditApplicationId');\n throwIfNotDefined(where, 'where');\n\n const pathParams = {\n auditApplicationId\n };\n\n const queryParams = {\n where\n };\n\n return this.delete({\n path: '/audit-applications/{auditApplicationId}/audit-entries',\n pathParams,\n queryParams\n });\n }\n\n /**\n * Permanently delete an audit entry\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n * You must have admin rights to delete audit information.\n *\n * @param auditApplicationId The identifier of an audit application.\n * @param auditEntryId The identifier of an audit entry.\n * @return Promise<{}>\n */\n deleteAuditEntry(auditApplicationId: string, auditEntryId: string): Promise<void> {\n throwIfNotDefined(auditApplicationId, 'auditApplicationId');\n throwIfNotDefined(auditEntryId, 'auditEntryId');\n\n const pathParams = {\n auditApplicationId,\n auditEntryId\n };\n\n return this.delete({\n path: '/audit-applications/{auditApplicationId}/audit-entries/{auditEntryId}',\n pathParams\n });\n }\n\n /**\n * Get audit application info\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n * You must have admin rights to retrieve audit information.\n *\n * You can use the **include** parameter to return the minimum and/or maximum audit record id for the application.\n *\n * @param auditApplicationId The identifier of an audit application.\n * @param opts Optional parameters\n * @return Promise<AuditApp>\n */\n getAuditApp(auditApplicationId: string, opts?: ContentFieldsQuery & ContentIncludeQuery): Promise<AuditApp> {\n throwIfNotDefined(auditApplicationId, 'auditApplicationId');\n\n const pathParams = {\n auditApplicationId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv'),\n include: buildCollectionParam(opts?.include, 'csv')\n };\n\n return this.get({\n path: '/audit-applications/{auditApplicationId}',\n pathParams,\n queryParams\n });\n }\n\n /**\n * Get audit entry\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n * You must have admin rights to access audit information.\n *\n * @param auditApplicationId The identifier of an audit application.\n * @param auditEntryId The identifier of an audit entry.\n * @param opts Optional parameters\n * @return Promise<AuditEntryEntry>\n */\n getAuditEntry(auditApplicationId: string, auditEntryId: string, opts?: ContentFieldsQuery): Promise<AuditEntryEntry> {\n throwIfNotDefined(auditApplicationId, 'auditApplicationId');\n throwIfNotDefined(auditEntryId, 'auditEntryId');\n\n const pathParams = {\n auditApplicationId,\n auditEntryId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/audit-applications/{auditApplicationId}/audit-entries/{auditEntryId}',\n pathParams,\n queryParams,\n returnType: AuditEntryEntry\n });\n }\n\n /**\n * Gets a list of audit applications in this repository.\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n *\n * This list may include pre-configured audit applications, if enabled, such as:\n *\n * - alfresco-access\n * - CMISChangeLog\n * - Alfresco Tagging Service\n * - Alfresco Sync Service (used by Enterprise Cloud Sync)\n *\n * You must have admin rights to retrieve audit information.\n *\n * @param opts Optional parameters\n * @return Promise<AuditAppPaging>\n */\n listAuditApps(opts?: ContentPagingQuery & ContentFieldsQuery): Promise<AuditAppPaging> {\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/audit-applications',\n queryParams,\n returnType: AuditAppPaging\n });\n }\n\n /**\n * List audit entries for an audit application\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n *\n * Gets a list of audit entries for audit application **auditApplicationId**.\n * You can use the **include** parameter to return additional **values** information.\n * The list can be filtered by one or more of:\n * - **createdByUser** person id\n * - **createdAt** inclusive time period\n * - **id** inclusive range of ids\n * - **valuesKey** audit entry values contains the exact matching key\n * - **valuesValue** audit entry values contains the exact matching value\n *\n * The default sort order is **createdAt** ascending, but you can use an optional **ASC** or **DESC**\n * modifier to specify an ascending or descending sort order.\n *\n * For example, specifying orderBy=createdAt DESC returns audit entries in descending **createdAt** order.\n * You must have admin rights to retrieve audit information.\n *\n * @param auditApplicationId The identifier of an audit application.\n * @param opts Optional parameters\n * @param opts.orderBy A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to\n * sort the list by one or more fields.\n * Each field has a default sort order, which is normally ascending order. Read the API method implementation notes\n * above to check if any fields used in this method have a descending default search order.\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.\n * @param opts.where Optionally filter the list. Here are some examples:\n * - where=(createdByUser='jbloggs')\n * - where=(id BETWEEN ('1234', '4321')\n * - where=(createdAt BETWEEN ('2017-06-02T12:13:51.593+01:00' , '2017-06-04T10:05:16.536+01:00')\n * - where=(createdByUser='jbloggs' and createdAt BETWEEN ('2017-06-02T12:13:51.593+01:00' , '2017-06-04T10:05:16.536+01:00')\n * - where=(valuesKey='/alfresco-access/login/user')\n * - where=(valuesKey='/alfresco-access/transaction/action' and valuesValue='DELETE')\n * @returns Promise<AuditEntryPaging>\n */\n listAuditEntriesForAuditApp(\n auditApplicationId: string,\n opts?: {\n where?: string;\n orderBy?: string[];\n } & ContentPagingQuery &\n ContentFieldsQuery &\n ContentIncludeQuery\n ): Promise<AuditEntryPaging> {\n throwIfNotDefined(auditApplicationId, 'auditApplicationId');\n opts = opts || {};\n\n const pathParams = {\n auditApplicationId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n maxItems: opts?.maxItems,\n where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/audit-applications/{auditApplicationId}/audit-entries',\n pathParams,\n queryParams,\n returnType: AuditEntryPaging\n });\n }\n\n /**\n * List audit entries for a node\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n *\n * The list can be filtered by **createdByUser** and for a given inclusive time period.\n * The default sort order is **createdAt** ascending, but you can use an optional **ASC** or **DESC**\n * modifier to specify an ascending or descending sort order.\n *\n * For example, specifying orderBy=createdAt DESC returns audit entries in descending **createdAt** order.\n * This relies on the pre-configured 'alfresco-access' audit application.\n *\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @param opts.orderBy A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to\n * sort the list by one or more fields.\n * Each field has a default sort order, which is normally ascending order. Read the API method implementation notes\n * above to check if any fields used in this method have a descending default search order.\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.\n * @param opts.where Optionally filter the list. Here are some examples:\n * - where=(createdByUser='-me-')\n * - where=(createdAt BETWEEN ('2017-06-02T12:13:51.593+01:00' , '2017-06-04T10:05:16.536+01:00')\n * - where=(createdByUser='jbloggs' and createdAt BETWEEN ('2017-06-02T12:13:51.593+01:00' , '2017-06-04T10:05:16.536+01:00')\n * @returns Promise<AuditEntryPaging>\n */\n listAuditEntriesForNode(\n nodeId: string,\n opts?: {\n orderBy?: string[];\n where?: string;\n } & ContentPagingQuery &\n ContentIncludeQuery &\n ContentFieldsQuery\n ): Promise<AuditEntryPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n opts = opts || {};\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n maxItems: opts?.maxItems,\n where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/nodes/{nodeId}/audit-entries',\n pathParams,\n queryParams,\n returnType: AuditEntryPaging\n });\n }\n\n /**\n * Update audit application info\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n *\n * New audit entries will not be created for a disabled audit application until\n * it is re-enabled (and system-wide auditing is also enabled).\n * Note, it is still possible to query &/or delete any existing audit entries even\n * if auditing is disabled for the audit application.\n * You must have admin rights to update audit application.\n *\n * @param auditApplicationId The identifier of an audit application.\n * @param auditAppBodyUpdate The audit application to update.\n * @param opts Optional parameters\n * @returns Promise<AuditApp>\n */\n updateAuditApp(auditApplicationId: string, auditAppBodyUpdate: AuditBodyUpdate, opts?: ContentFieldsQuery): Promise<AuditApp> {\n throwIfNotDefined(auditApplicationId, 'auditApplicationId');\n throwIfNotDefined(auditAppBodyUpdate, 'auditAppBodyUpdate');\n\n const pathParams = {\n auditApplicationId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/audit-applications/{auditApplicationId}',\n pathParams,\n queryParams,\n bodyParam: auditAppBodyUpdate\n });\n }\n}\n"]}
@@ -131,9 +131,7 @@ export class FavoritesApi extends BaseApi {
131
131
  }
132
132
  listFavorites(personId, opts) {
133
133
  throwIfNotDefined(personId, 'personId');
134
- opts =
135
- opts ||
136
- {};
134
+ opts = opts || {};
137
135
  const pathParams = {
138
136
  personId
139
137
  };
@@ -1 +1 @@
1
- {"version":3,"file":"favorites.api.js","sourceRoot":"","sources":["favorites.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAsB,aAAa,EAAE,cAAc,EAA6C,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC/I,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAMlE,MAAM,OAAO,YAAa,SAAQ,OAAO;IAsBrC,cAAc,CACV,QAAgB,EAChB,kBAAsC,EACtC,IAAgD;QAEhD,iBAAiB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QACxC,iBAAiB,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAAC;QAE5D,MAAM,UAAU,GAAG;YACf,QAAQ;SACX,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;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G,CAAC;YACZ,IAAI,EAAE,8BAA8B;YACpC,UAAU;YACV,WAAW;YACX,UAAU,EAAE,cAAc;SAC7B,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 { FavoriteBodyCreate, FavoriteEntry, FavoritePaging, FavoriteSiteBodyCreate, FavoriteSiteEntry, SiteEntry, SitePaging } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\n/**\n * Favorites service.\n */\nexport class FavoritesApi extends BaseApi {\n /**\n * Create a favorite\n *\n * Favorite a **site**, **file**, or **folder** in the repository.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param favoriteBodyCreate An object identifying the entity to be favorited.\n * The object consists of a single property which is an object with the name site, file, or folder.\n * The content of that object is the guid of the target entity.\n * @param opts Optional parameters\n * @param opts.include Returns additional information about favorites, the following optional fields can be requested:\n * - path (note, this only applies to files and folders)\n * - properties\n * @param opts.fields A list of field names. You can use this parameter to restrict the fields\n * returned within a response if, for example, you want to save on overall bandwidth.\n * The list applies to a returned individual entity or entries within a collection.\n * If the API method also supports the **include** parameter, then the fields specified in the **include**\n * parameter are returned in addition to those specified in the **fields** parameter.\n * @returns Promise<FavoriteEntry>\n */\n createFavorite(\n personId: string,\n favoriteBodyCreate: FavoriteBodyCreate,\n opts?: { include?: string[]; fields?: string[] }\n ): Promise<FavoriteEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(favoriteBodyCreate, 'favoriteBodyCreate');\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/people/{personId}/favorites',\n pathParams,\n queryParams,\n bodyParam: favoriteBodyCreate,\n returnType: FavoriteEntry\n });\n }\n\n /**\n * Create a site favorite\n *\n * **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future. Use /people/{personId}/favorites instead.\n *\n * @param personId The identifier of a person.\n * @param favoriteSiteBodyCreate The id of the site to favorite.\n * @param opts Optional parameters\n * @returns Promise<FavoriteSiteEntry>\n */\n createSiteFavorite(personId: string, favoriteSiteBodyCreate: FavoriteSiteBodyCreate, opts?: ContentFieldsQuery): Promise<FavoriteSiteEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(favoriteSiteBodyCreate, 'favoriteSiteBodyCreate');\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/people/{personId}/favorite-sites',\n pathParams,\n queryParams,\n bodyParam: favoriteSiteBodyCreate\n });\n }\n\n /**\n * Delete a favorite\n *\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param favoriteId The identifier of a favorite.\n * @returns Promise<{}>\n */\n deleteFavorite(personId: string, favoriteId: string): Promise<void> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(favoriteId, 'favoriteId');\n\n const pathParams = {\n personId,\n favoriteId\n };\n\n return this.delete({\n path: '/people/{personId}/favorites/{favoriteId}',\n pathParams\n });\n }\n\n /**\n * Delete a site favorite\n *\n * **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future.\n * Use /people/{personId}/favorites/{favoriteId} instead.\n *\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param siteId The identifier of a site.\n * @returns Promise<{}>\n */\n deleteSiteFavorite(personId: string, siteId: string): Promise<void> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n personId,\n siteId\n };\n\n return this.delete({\n path: '/people/{personId}/favorite-sites/{siteId}',\n pathParams\n });\n }\n\n /**\n * Get a favorite\n *\n * Gets favorite **favoriteId** for person **personId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param favoriteId The identifier of a favorite.\n * @param opts Optional parameters\n * @param opts.include Returns additional information about favorites, the following optional fields can be requested:\n * - path (note, this only applies to files and folders)\n * - properties\n * @param opts.fields A list of field names. You can use this parameter to restrict the fields\n * returned within a response if, for example, you want to save on overall bandwidth.\n * The list applies to a returned individual entity or entries within a collection.\n * If the API method also supports the **include** parameter, then the fields specified in the **include**\n * parameter are returned in addition to those specified in the **fields** parameter.\n * @returns Promise<FavoriteEntry>\n */\n getFavorite(personId: string, favoriteId: string, opts?: { include?: string[]; fields?: string[] }): Promise<FavoriteEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(favoriteId, 'favoriteId');\n\n const pathParams = {\n personId,\n favoriteId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/favorites/{favoriteId}',\n pathParams,\n queryParams,\n returnType: FavoriteEntry\n });\n }\n\n /**\n * Get a favorite site\n *\n * **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future.\n * Use /people/{personId}/favorites/{favoriteId} instead.\n *\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param siteId The identifier of a site.\n * @param opts Optional parameters\n * @param opts.fields A list of field names. You can use this parameter to restrict the fields\n * returned within a response if, for example, you want to save on overall bandwidth.\n * The list applies to a returned individual entity or entries within a collection.\n * If the API method also supports the **include** parameter, then the fields specified in the **include**\n * parameter are returned in addition to those specified in the **fields** parameter.\n * @returns Promise<SiteEntry>\n */\n getFavoriteSite(personId: string, siteId: string, opts?: { fields?: string[] }): Promise<SiteEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n personId,\n siteId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/favorite-sites/{siteId}',\n pathParams,\n queryParams,\n returnType: SiteEntry\n });\n }\n\n /**\n * List favorite sites\n *\n * **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future.\n * Use /people/{personId}/favorites instead.\n *\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param opts Optional parameters\n * @returns Promise<SitePaging>\n */\n listFavoriteSitesForPerson(personId: string, opts?: ContentPagingQuery & ContentFieldsQuery): Promise<SitePaging> {\n throwIfNotDefined(personId, 'personId');\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/favorite-sites',\n pathParams,\n queryParams,\n returnType: SitePaging\n });\n }\n\n /**\n * List favorites\n *\n * Gets a list of favorites for person **personId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param opts optional parameters\n * @returns Promise<FavoritePaging>\n */\n listFavorites(\n personId: string,\n opts?: {\n orderBy?: string[];\n where?: string;\n } & ContentPagingQuery &\n ContentIncludeQuery &\n ContentFieldsQuery\n ): Promise<FavoritePaging> {\n throwIfNotDefined(personId, 'personId');\n opts =\n opts ||\n {\n /* empty */\n };\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/favorites',\n pathParams,\n queryParams,\n returnType: FavoritePaging\n });\n }\n}\n"]}
1
+ {"version":3,"file":"favorites.api.js","sourceRoot":"","sources":["favorites.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAsB,aAAa,EAAE,cAAc,EAA6C,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC/I,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAMlE,MAAM,OAAO,YAAa,SAAQ,OAAO;IAsBrC,cAAc,CACV,QAAgB,EAChB,kBAAsC,EACtC,IAAgD;QAEhD,iBAAiB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QACxC,iBAAiB,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAAC;QAE5D,MAAM,UAAU,GAAG;YACf,QAAQ;SACX,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,8BAA8B;YACpC,UAAU;YACV,WAAW;YACX,SAAS,EAAE,kBAAkB;YAC7B,UAAU,EAAE,aAAa;SAC5B,CAAC,CAAC;IACP,CAAC;IAYD,kBAAkB,CAAC,QAAgB,EAAE,sBAA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uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,mCAAmC;YACzC,UAAU;YACV,WAAW;YACX,UAAU,EAAE,UAAU;SACzB,CAAC,CAAC;IACP,CAAC;IAYD,aAAa,CACT,QAAgB,EAChB,IAKsB;QAEtB,iBAAiB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QACxC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAElB,MAAM,UAAU,GAAG;YACf,QAAQ;SACX,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,SAAS,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS;YAC1B,QAAQ,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ;YACxB,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,KAAK,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK;YAClB,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,8BAA8B;YACpC,UAAU;YACV,WAAW;YACX,UAAU,EAAE,cAAc;SAC7B,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 { FavoriteBodyCreate, FavoriteEntry, FavoritePaging, FavoriteSiteBodyCreate, FavoriteSiteEntry, SiteEntry, SitePaging } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\n/**\n * Favorites service.\n */\nexport class FavoritesApi extends BaseApi {\n /**\n * Create a favorite\n *\n * Favorite a **site**, **file**, or **folder** in the repository.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param favoriteBodyCreate An object identifying the entity to be favorited.\n * The object consists of a single property which is an object with the name site, file, or folder.\n * The content of that object is the guid of the target entity.\n * @param opts Optional parameters\n * @param opts.include Returns additional information about favorites, the following optional fields can be requested:\n * - path (note, this only applies to files and folders)\n * - properties\n * @param opts.fields A list of field names. You can use this parameter to restrict the fields\n * returned within a response if, for example, you want to save on overall bandwidth.\n * The list applies to a returned individual entity or entries within a collection.\n * If the API method also supports the **include** parameter, then the fields specified in the **include**\n * parameter are returned in addition to those specified in the **fields** parameter.\n * @returns Promise<FavoriteEntry>\n */\n createFavorite(\n personId: string,\n favoriteBodyCreate: FavoriteBodyCreate,\n opts?: { include?: string[]; fields?: string[] }\n ): Promise<FavoriteEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(favoriteBodyCreate, 'favoriteBodyCreate');\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/people/{personId}/favorites',\n pathParams,\n queryParams,\n bodyParam: favoriteBodyCreate,\n returnType: FavoriteEntry\n });\n }\n\n /**\n * Create a site favorite\n *\n * **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future. Use /people/{personId}/favorites instead.\n *\n * @param personId The identifier of a person.\n * @param favoriteSiteBodyCreate The id of the site to favorite.\n * @param opts Optional parameters\n * @returns Promise<FavoriteSiteEntry>\n */\n createSiteFavorite(personId: string, favoriteSiteBodyCreate: FavoriteSiteBodyCreate, opts?: ContentFieldsQuery): Promise<FavoriteSiteEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(favoriteSiteBodyCreate, 'favoriteSiteBodyCreate');\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/people/{personId}/favorite-sites',\n pathParams,\n queryParams,\n bodyParam: favoriteSiteBodyCreate\n });\n }\n\n /**\n * Delete a favorite\n *\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param favoriteId The identifier of a favorite.\n * @returns Promise<{}>\n */\n deleteFavorite(personId: string, favoriteId: string): Promise<void> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(favoriteId, 'favoriteId');\n\n const pathParams = {\n personId,\n favoriteId\n };\n\n return this.delete({\n path: '/people/{personId}/favorites/{favoriteId}',\n pathParams\n });\n }\n\n /**\n * Delete a site favorite\n *\n * **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future.\n * Use /people/{personId}/favorites/{favoriteId} instead.\n *\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param siteId The identifier of a site.\n * @returns Promise<{}>\n */\n deleteSiteFavorite(personId: string, siteId: string): Promise<void> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n personId,\n siteId\n };\n\n return this.delete({\n path: '/people/{personId}/favorite-sites/{siteId}',\n pathParams\n });\n }\n\n /**\n * Get a favorite\n *\n * Gets favorite **favoriteId** for person **personId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param favoriteId The identifier of a favorite.\n * @param opts Optional parameters\n * @param opts.include Returns additional information about favorites, the following optional fields can be requested:\n * - path (note, this only applies to files and folders)\n * - properties\n * @param opts.fields A list of field names. You can use this parameter to restrict the fields\n * returned within a response if, for example, you want to save on overall bandwidth.\n * The list applies to a returned individual entity or entries within a collection.\n * If the API method also supports the **include** parameter, then the fields specified in the **include**\n * parameter are returned in addition to those specified in the **fields** parameter.\n * @returns Promise<FavoriteEntry>\n */\n getFavorite(personId: string, favoriteId: string, opts?: { include?: string[]; fields?: string[] }): Promise<FavoriteEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(favoriteId, 'favoriteId');\n\n const pathParams = {\n personId,\n favoriteId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/favorites/{favoriteId}',\n pathParams,\n queryParams,\n returnType: FavoriteEntry\n });\n }\n\n /**\n * Get a favorite site\n *\n * **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future.\n * Use /people/{personId}/favorites/{favoriteId} instead.\n *\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param siteId The identifier of a site.\n * @param opts Optional parameters\n * @param opts.fields A list of field names. You can use this parameter to restrict the fields\n * returned within a response if, for example, you want to save on overall bandwidth.\n * The list applies to a returned individual entity or entries within a collection.\n * If the API method also supports the **include** parameter, then the fields specified in the **include**\n * parameter are returned in addition to those specified in the **fields** parameter.\n * @returns Promise<SiteEntry>\n */\n getFavoriteSite(personId: string, siteId: string, opts?: { fields?: string[] }): Promise<SiteEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n personId,\n siteId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/favorite-sites/{siteId}',\n pathParams,\n queryParams,\n returnType: SiteEntry\n });\n }\n\n /**\n * List favorite sites\n *\n * **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future.\n * Use /people/{personId}/favorites instead.\n *\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param opts Optional parameters\n * @returns Promise<SitePaging>\n */\n listFavoriteSitesForPerson(personId: string, opts?: ContentPagingQuery & ContentFieldsQuery): Promise<SitePaging> {\n throwIfNotDefined(personId, 'personId');\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/favorite-sites',\n pathParams,\n queryParams,\n returnType: SitePaging\n });\n }\n\n /**\n * List favorites\n *\n * Gets a list of favorites for person **personId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param opts optional parameters\n * @returns Promise<FavoritePaging>\n */\n listFavorites(\n personId: string,\n opts?: {\n orderBy?: string[];\n where?: string;\n } & ContentPagingQuery &\n ContentIncludeQuery &\n ContentFieldsQuery\n ): Promise<FavoritePaging> {\n throwIfNotDefined(personId, 'personId');\n opts = opts || {};\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/favorites',\n pathParams,\n queryParams,\n returnType: FavoritePaging\n });\n }\n}\n"]}
@@ -46,9 +46,7 @@ export class GroupsApi extends BaseApi {
46
46
  }
47
47
  deleteGroup(groupId, opts) {
48
48
  throwIfNotDefined(groupId, 'groupId');
49
- opts =
50
- opts ||
51
- {};
49
+ opts = opts || {};
52
50
  const cascadeDelete = opts['cascade'] ? opts['cascade'] : false;
53
51
  const pathParams = {
54
52
  groupId
@@ -1 +1 @@
1
- {"version":3,"file":"groups.api.js","sourceRoot":"","sources":["groups.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAkE,iBAAiB,EAA6B,WAAW,EAAE,MAAM,UAAU,CAAC;AACrJ,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAwClE,MAAM,OAAO,SAAU,SAAQ,OAAO;IAsBlC,WAAW,CAAC,eAAgC,EAAE,IAA+C;QACzF,iBAAiB,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAAC;QAEtD,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,SAAS;YACf,WAAW;YACX,SAAS,EAAE,eAAe;SAC7B,CAAC,CAAC;IACP,CAAC;IAiBD,qBAAqB,CACjB,OAAe,EACf,yBAAoD,EACpD,IAAyB;QAEzB,iBAAiB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QACtC,iBAAiB,CAAC,yBAAyB,EAAE,2BAA2B,CAAC,CAAC;QAE1E,MAAM,WAAW,GAAG;YAChB,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,I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BAAiB,CAAC,CAAC;QAEtD,MAAM,UAAU,GAAG;YACf,OAAO;SACV,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,mBAAmB;YACzB,UAAU;YACV,WAAW;YACX,SAAS,EAAE,eAAe;SAC7B,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 { GroupBodyCreate, GroupBodyUpdate, GroupEntry, GroupMemberEntry, GroupMemberPaging, GroupMembershipBodyCreate, GroupPaging } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\nexport interface ListGroupMembershipsOpts {\n /**\n * A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to\n * sort the list by one or more fields.\n *\n * Each field has a default sort order, which is normally ascending order. Read the API method implementation notes\n * above to check if any fields used in this method have a descending default search order.\n *\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field\n */\n orderBy?: string[];\n // A string to restrict the returned objects by using a predicate.\n where?: string;\n}\n\nexport interface GroupPagingOpts {\n /**\n * A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to\n * sort the list by one or more fields.\n *\n * Each field has a default sort order, which is normally ascending order. Read the API method implementation notes\n * above to check if any fields used in this method have a descending default search order.\n *\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.\n */\n orderBy?: string[];\n /**\n * A string to restrict the returned objects by using a predicate.\n */\n where?: string;\n}\n\nexport type DeleteGroupOpts = { cascade?: boolean };\n\n/**\n * Groups service.\n */\nexport class GroupsApi extends BaseApi {\n /**\n * Create a group\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Create a group.\n *\n * The group id must start with \\\"GROUP\\\\_\\\". If this is omitted it will be added automatically.\n * This format is also returned when listing groups or group memberships. It should be noted\n * that the other group-related operations also expect the id to start with \\\"GROUP\\\\_\\\".\n *\n * If one or more parentIds are specified then the group will be created and become a member of each of the specified parent groups.\n * If no parentIds are specified then the group will be created as a root group.\n * The group will be created in the **APP.DEFAULT** and **AUTH.ALF** zones.\n *\n * You must have admin rights to create a group.\n *\n * @param groupBodyCreate The group to create.\n * @param opts Optional parameters\n * @returns Promise<GroupEntry>\n */\n createGroup(groupBodyCreate: GroupBodyCreate, opts?: ContentIncludeQuery & ContentFieldsQuery): Promise<GroupEntry> {\n throwIfNotDefined(groupBodyCreate, 'groupBodyCreate');\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/groups',\n queryParams,\n bodyParam: groupBodyCreate\n });\n }\n\n /**\n * Create a group membership\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Create a group membership (for an existing person or group) within a group **groupId**.\n * If the added group was previously a root group then it becomes a non-root group since it now has a parent.\n * It is an error to specify an **id** that does not exist.\n * You must have admin rights to create a group membership.\n *\n * @param groupId The identifier of a group.\n * @param groupMembershipBodyCreate The group membership to add (person or sub-group).\n * @param opts Optional parameters\n * @returns Promise<GroupMemberEntry>\n */\n createGroupMembership(\n groupId: string,\n groupMembershipBodyCreate: GroupMembershipBodyCreate,\n opts?: ContentFieldsQuery\n ): Promise<GroupMemberEntry> {\n throwIfNotDefined(groupId, 'groupId');\n throwIfNotDefined(groupMembershipBodyCreate, 'groupMembershipBodyCreate');\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/groups/{groupId}/members',\n pathParams: { groupId },\n queryParams,\n bodyParam: groupMembershipBodyCreate\n });\n }\n\n /**\n * Delete a group\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Delete group **groupId**.\n * The option to cascade delete applies this recursively to any hierarchy of group members.\n * In this case, removing a group member does not delete the person or sub-group itself.\n * If a removed sub-group no longer has any parent groups then it becomes a root group.\n * You must have admin rights to delete a group.\n *\n * @param groupId The identifier of a group.\n * @param opts Optional parameters\n * @returns Promise\n */\n deleteGroup(groupId: string, opts?: DeleteGroupOpts): Promise<void> {\n throwIfNotDefined(groupId, 'groupId');\n opts =\n opts ||\n {\n /* empty */\n };\n\n const cascadeDelete = opts['cascade'] ? opts['cascade'] : false;\n\n const pathParams = {\n groupId\n };\n\n const queryParams = {\n cascade: cascadeDelete\n };\n\n return this.delete({\n path: '/groups/{groupId}',\n pathParams,\n queryParams\n });\n }\n\n /**\n * Delete a group membership\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Delete group member **groupMemberId** (person or sub-group) from group **groupId**.\n * Removing a group member does not delete the person or sub-group itself.\\\n * If a removed sub-group no longer has any parent groups then it becomes a root group.\n *\n * @param groupId The identifier of a group.\n * @param groupMemberId The identifier of a person or group.\n * @returns Promise<{}>\n */\n deleteGroupMembership(groupId: string, groupMemberId: string): Promise<void> {\n throwIfNotDefined(groupId, 'groupId');\n throwIfNotDefined(groupMemberId, 'groupMemberId');\n\n const pathParams = {\n groupId,\n groupMemberId\n };\n\n return this.delete({\n path: '/groups/{groupId}/members/{groupMemberId}',\n pathParams\n });\n }\n\n /**\n * Get group details\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Get details for group **groupId**.\n * You can use the **include** parameter to return additional information.\n *\n * @param groupId The identifier of a group.\n * @param opts Optional parameters\n * @returns Promise<GroupEntry>\n */\n getGroup(groupId: string, opts?: ContentIncludeQuery & ContentFieldsQuery): Promise<GroupEntry> {\n throwIfNotDefined(groupId, 'groupId');\n\n const pathParams = {\n groupId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/groups/{groupId}',\n pathParams,\n queryParams\n });\n }\n\n /**\n * List memberships of a group\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Gets a list of the group memberships for the group **groupId**.\n *\n * You can use the **where** parameter to filter the returned groups by **memberType**.\n * Example to filter by **memberType**, use any one of:\n * - (memberType='GROUP')\n * - (memberType='PERSON')\n *\n * The default sort order for the returned list is for group members to be sorted by ascending displayName.\n * You can override the default by using the **orderBy** parameter. You can specify one of the following fields in the **orderBy** parameter:\n * - id\n * - displayName\n *\n * @param groupId The identifier of a group.\n * @param opts Optional parameters\n * @returns Promise<GroupMemberPaging>\n */\n listGroupMemberships(groupId: string, opts?: ListGroupMembershipsOpts & ContentPagingQuery & ContentFieldsQuery): Promise<GroupMemberPaging> {\n throwIfNotDefined(groupId, 'groupId');\n\n const pathParams = {\n groupId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n where: opts?.where,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/groups/{groupId}/members',\n pathParams,\n queryParams,\n returnType: GroupMemberPaging\n });\n }\n\n /**\n * List group memberships\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * @param personId The identifier of a person.\n * @param opts Optional parameters\n * @param opts.skipCount The number of entities that exist in the collection before those included in this list.\n * If not supplied then the default value is 0. (default to 0)\n * @param opts.maxItems The maximum number of items to return in the list. If not supplied then the default value is 100. (default to 100)\n * @param opts.orderBy A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to\n * sort the list by one or more fields.\n * Each field has a default sort order, which is normally ascending order. Read the API method implementation notes\n * above to check if any fields used in this method have a descending default search order.\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.\n * @param opts.include Returns additional information about the group. The following optional fields can be requested:\n * - parentIds\n * - zones\n * @param opts.where A string to restrict the returned objects by using a predicate.\n * @param opts.fields A list of field names.\n * You can use this parameter to restrict the fields\n * returned within a response if, for example, you want to save on overall bandwidth.\n * The list applies to a returned individual entity or entries within a collection.\n * If the API method also supports the **include** parameter, then the fields specified in the **include**\n * parameter are returned in addition to those specified in the **fields** parameter.\n * @returns Promise<GroupPaging>\n */\n listGroupMembershipsForPerson(\n personId: string,\n opts?: GroupPagingOpts & ContentPagingQuery & ContentIncludeQuery & ContentFieldsQuery\n ): Promise<GroupPaging> {\n throwIfNotDefined(personId, 'personId');\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n include: buildCollectionParam(opts?.include, 'csv'),\n where: opts?.where,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/groups',\n pathParams,\n queryParams,\n returnType: GroupPaging\n });\n }\n\n /**\n * List groups\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * @param opts Optional parameters\n * @returns Promise<GroupPaging>\n */\n listGroups(opts?: GroupPagingOpts & ContentPagingQuery & ContentIncludeQuery & ContentFieldsQuery): Promise<GroupPaging> {\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n include: buildCollectionParam(opts?.include, 'csv'),\n where: opts?.where,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/groups',\n queryParams,\n returnType: GroupPaging\n });\n }\n\n /**\n * Update group details\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n * You must have admin rights to update a group.\n *\n * @param groupId The identifier of a group.\n * @param groupBodyUpdate The group information to update.\n * @param opts Optional parameters\n * @returns Promise<GroupEntry>\n */\n updateGroup(groupId: string, groupBodyUpdate: GroupBodyUpdate, opts?: ContentIncludeQuery & ContentFieldsQuery): Promise<GroupEntry> {\n throwIfNotDefined(groupId, 'groupId');\n throwIfNotDefined(groupBodyUpdate, 'groupBodyUpdate');\n\n const pathParams = {\n groupId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/groups/{groupId}',\n pathParams,\n queryParams,\n bodyParam: groupBodyUpdate\n });\n }\n}\n"]}
1
+ {"version":3,"file":"groups.api.js","sourceRoot":"","sources":["groups.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAkE,iBAAiB,EAA6B,WAAW,EAAE,MAAM,UAAU,CAAC;AACrJ,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAwClE,MAAM,OAAO,SAAU,SAAQ,OAAO;IAsBlC,WAAW,CAAC,eAAgC,EAAE,IAA+C;QACzF,iBAAiB,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAAC;QAEtD,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CA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E,OAAO,EAAE,KAAK,CAAC;YACnD,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,KAAK,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK;YAClB,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,SAAS;YACf,WAAW;YACX,UAAU,EAAE,WAAW;SAC1B,CAAC,CAAC;IACP,CAAC;IAaD,WAAW,CAAC,OAAe,EAAE,eAAgC,EAAE,IAA+C;QAC1G,iBAAiB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QACtC,iBAAiB,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAAC;QAEtD,MAAM,UAAU,GAAG;YACf,OAAO;SACV,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,mBAAmB;YACzB,UAAU;YACV,WAAW;YACX,SAAS,EAAE,eAAe;SAC7B,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 { GroupBodyCreate, GroupBodyUpdate, GroupEntry, GroupMemberEntry, GroupMemberPaging, GroupMembershipBodyCreate, GroupPaging } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\nexport interface ListGroupMembershipsOpts {\n /**\n * A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to\n * sort the list by one or more fields.\n *\n * Each field has a default sort order, which is normally ascending order. Read the API method implementation notes\n * above to check if any fields used in this method have a descending default search order.\n *\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field\n */\n orderBy?: string[];\n // A string to restrict the returned objects by using a predicate.\n where?: string;\n}\n\nexport interface GroupPagingOpts {\n /**\n * A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to\n * sort the list by one or more fields.\n *\n * Each field has a default sort order, which is normally ascending order. Read the API method implementation notes\n * above to check if any fields used in this method have a descending default search order.\n *\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.\n */\n orderBy?: string[];\n /**\n * A string to restrict the returned objects by using a predicate.\n */\n where?: string;\n}\n\nexport type DeleteGroupOpts = { cascade?: boolean };\n\n/**\n * Groups service.\n */\nexport class GroupsApi extends BaseApi {\n /**\n * Create a group\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Create a group.\n *\n * The group id must start with \\\"GROUP\\\\_\\\". If this is omitted it will be added automatically.\n * This format is also returned when listing groups or group memberships. It should be noted\n * that the other group-related operations also expect the id to start with \\\"GROUP\\\\_\\\".\n *\n * If one or more parentIds are specified then the group will be created and become a member of each of the specified parent groups.\n * If no parentIds are specified then the group will be created as a root group.\n * The group will be created in the **APP.DEFAULT** and **AUTH.ALF** zones.\n *\n * You must have admin rights to create a group.\n *\n * @param groupBodyCreate The group to create.\n * @param opts Optional parameters\n * @returns Promise<GroupEntry>\n */\n createGroup(groupBodyCreate: GroupBodyCreate, opts?: ContentIncludeQuery & ContentFieldsQuery): Promise<GroupEntry> {\n throwIfNotDefined(groupBodyCreate, 'groupBodyCreate');\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/groups',\n queryParams,\n bodyParam: groupBodyCreate\n });\n }\n\n /**\n * Create a group membership\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Create a group membership (for an existing person or group) within a group **groupId**.\n * If the added group was previously a root group then it becomes a non-root group since it now has a parent.\n * It is an error to specify an **id** that does not exist.\n * You must have admin rights to create a group membership.\n *\n * @param groupId The identifier of a group.\n * @param groupMembershipBodyCreate The group membership to add (person or sub-group).\n * @param opts Optional parameters\n * @returns Promise<GroupMemberEntry>\n */\n createGroupMembership(\n groupId: string,\n groupMembershipBodyCreate: GroupMembershipBodyCreate,\n opts?: ContentFieldsQuery\n ): Promise<GroupMemberEntry> {\n throwIfNotDefined(groupId, 'groupId');\n throwIfNotDefined(groupMembershipBodyCreate, 'groupMembershipBodyCreate');\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/groups/{groupId}/members',\n pathParams: { groupId },\n queryParams,\n bodyParam: groupMembershipBodyCreate\n });\n }\n\n /**\n * Delete a group\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Delete group **groupId**.\n * The option to cascade delete applies this recursively to any hierarchy of group members.\n * In this case, removing a group member does not delete the person or sub-group itself.\n * If a removed sub-group no longer has any parent groups then it becomes a root group.\n * You must have admin rights to delete a group.\n *\n * @param groupId The identifier of a group.\n * @param opts Optional parameters\n * @returns Promise\n */\n deleteGroup(groupId: string, opts?: DeleteGroupOpts): Promise<void> {\n throwIfNotDefined(groupId, 'groupId');\n opts = opts || {};\n\n const cascadeDelete = opts['cascade'] ? opts['cascade'] : false;\n\n const pathParams = {\n groupId\n };\n\n const queryParams = {\n cascade: cascadeDelete\n };\n\n return this.delete({\n path: '/groups/{groupId}',\n pathParams,\n queryParams\n });\n }\n\n /**\n * Delete a group membership\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Delete group member **groupMemberId** (person or sub-group) from group **groupId**.\n * Removing a group member does not delete the person or sub-group itself.\\\n * If a removed sub-group no longer has any parent groups then it becomes a root group.\n *\n * @param groupId The identifier of a group.\n * @param groupMemberId The identifier of a person or group.\n * @returns Promise<{}>\n */\n deleteGroupMembership(groupId: string, groupMemberId: string): Promise<void> {\n throwIfNotDefined(groupId, 'groupId');\n throwIfNotDefined(groupMemberId, 'groupMemberId');\n\n const pathParams = {\n groupId,\n groupMemberId\n };\n\n return this.delete({\n path: '/groups/{groupId}/members/{groupMemberId}',\n pathParams\n });\n }\n\n /**\n * Get group details\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Get details for group **groupId**.\n * You can use the **include** parameter to return additional information.\n *\n * @param groupId The identifier of a group.\n * @param opts Optional parameters\n * @returns Promise<GroupEntry>\n */\n getGroup(groupId: string, opts?: ContentIncludeQuery & ContentFieldsQuery): Promise<GroupEntry> {\n throwIfNotDefined(groupId, 'groupId');\n\n const pathParams = {\n groupId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/groups/{groupId}',\n pathParams,\n queryParams\n });\n }\n\n /**\n * List memberships of a group\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Gets a list of the group memberships for the group **groupId**.\n *\n * You can use the **where** parameter to filter the returned groups by **memberType**.\n * Example to filter by **memberType**, use any one of:\n * - (memberType='GROUP')\n * - (memberType='PERSON')\n *\n * The default sort order for the returned list is for group members to be sorted by ascending displayName.\n * You can override the default by using the **orderBy** parameter. You can specify one of the following fields in the **orderBy** parameter:\n * - id\n * - displayName\n *\n * @param groupId The identifier of a group.\n * @param opts Optional parameters\n * @returns Promise<GroupMemberPaging>\n */\n listGroupMemberships(groupId: string, opts?: ListGroupMembershipsOpts & ContentPagingQuery & ContentFieldsQuery): Promise<GroupMemberPaging> {\n throwIfNotDefined(groupId, 'groupId');\n\n const pathParams = {\n groupId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n where: opts?.where,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/groups/{groupId}/members',\n pathParams,\n queryParams,\n returnType: GroupMemberPaging\n });\n }\n\n /**\n * List group memberships\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * @param personId The identifier of a person.\n * @param opts Optional parameters\n * @param opts.skipCount The number of entities that exist in the collection before those included in this list.\n * If not supplied then the default value is 0. (default to 0)\n * @param opts.maxItems The maximum number of items to return in the list. If not supplied then the default value is 100. (default to 100)\n * @param opts.orderBy A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to\n * sort the list by one or more fields.\n * Each field has a default sort order, which is normally ascending order. Read the API method implementation notes\n * above to check if any fields used in this method have a descending default search order.\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.\n * @param opts.include Returns additional information about the group. The following optional fields can be requested:\n * - parentIds\n * - zones\n * @param opts.where A string to restrict the returned objects by using a predicate.\n * @param opts.fields A list of field names.\n * You can use this parameter to restrict the fields\n * returned within a response if, for example, you want to save on overall bandwidth.\n * The list applies to a returned individual entity or entries within a collection.\n * If the API method also supports the **include** parameter, then the fields specified in the **include**\n * parameter are returned in addition to those specified in the **fields** parameter.\n * @returns Promise<GroupPaging>\n */\n listGroupMembershipsForPerson(\n personId: string,\n opts?: GroupPagingOpts & ContentPagingQuery & ContentIncludeQuery & ContentFieldsQuery\n ): Promise<GroupPaging> {\n throwIfNotDefined(personId, 'personId');\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n include: buildCollectionParam(opts?.include, 'csv'),\n where: opts?.where,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/groups',\n pathParams,\n queryParams,\n returnType: GroupPaging\n });\n }\n\n /**\n * List groups\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * @param opts Optional parameters\n * @returns Promise<GroupPaging>\n */\n listGroups(opts?: GroupPagingOpts & ContentPagingQuery & ContentIncludeQuery & ContentFieldsQuery): Promise<GroupPaging> {\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n include: buildCollectionParam(opts?.include, 'csv'),\n where: opts?.where,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/groups',\n queryParams,\n returnType: GroupPaging\n });\n }\n\n /**\n * Update group details\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n * You must have admin rights to update a group.\n *\n * @param groupId The identifier of a group.\n * @param groupBodyUpdate The group information to update.\n * @param opts Optional parameters\n * @returns Promise<GroupEntry>\n */\n updateGroup(groupId: string, groupBodyUpdate: GroupBodyUpdate, opts?: ContentIncludeQuery & ContentFieldsQuery): Promise<GroupEntry> {\n throwIfNotDefined(groupId, 'groupId');\n throwIfNotDefined(groupBodyUpdate, 'groupBodyUpdate');\n\n const pathParams = {\n groupId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/groups/{groupId}',\n pathParams,\n queryParams,\n bodyParam: groupBodyUpdate\n });\n }\n}\n"]}
@@ -65,9 +65,7 @@ export class NodesApi extends BaseApi {
65
65
  include: buildCollectionParam(opts === null || opts === void 0 ? void 0 : opts.include, 'csv'),
66
66
  fields: buildCollectionParam(opts === null || opts === void 0 ? void 0 : opts.fields, 'csv')
67
67
  };
68
- formParams =
69
- formParams ||
70
- {};
68
+ formParams = formParams || {};
71
69
  let contentTypes;
72
70
  let returnType;
73
71
  if (formParams.filedata) {
@@ -186,9 +184,7 @@ export class NodesApi extends BaseApi {
186
184
  getNodeContent(nodeId, opts) {
187
185
  var _a;
188
186
  throwIfNotDefined(nodeId, 'nodeId');
189
- opts =
190
- opts ||
191
- {};
187
+ opts = opts || {};
192
188
  const pathParams = {
193
189
  nodeId
194
190
  };
@@ -236,9 +232,7 @@ export class NodesApi extends BaseApi {
236
232
  }
237
233
  listParents(nodeId, opts) {
238
234
  throwIfNotDefined(nodeId, 'nodeId');
239
- opts =
240
- opts ||
241
- {};
235
+ opts = opts || {};
242
236
  const pathParams = {
243
237
  nodeId
244
238
  };
@@ -259,9 +253,7 @@ export class NodesApi extends BaseApi {
259
253
  }
260
254
  listSecondaryChildren(nodeId, opts) {
261
255
  throwIfNotDefined(nodeId, 'nodeId');
262
- opts =
263
- opts ||
264
- {};
256
+ opts = opts || {};
265
257
  const pathParams = {
266
258
  nodeId
267
259
  };
@@ -282,9 +274,7 @@ export class NodesApi extends BaseApi {
282
274
  }
283
275
  listSourceAssociations(nodeId, opts) {
284
276
  throwIfNotDefined(nodeId, 'nodeId');
285
- opts =
286
- opts ||
287
- {};
277
+ opts = opts || {};
288
278
  const pathParams = {
289
279
  nodeId
290
280
  };
@@ -302,9 +292,7 @@ export class NodesApi extends BaseApi {
302
292
  }
303
293
  listTargetAssociations(nodeId, opts) {
304
294
  throwIfNotDefined(nodeId, 'nodeId');
305
- opts =
306
- opts ||
307
- {};
295
+ opts = opts || {};
308
296
  const pathParams = {
309
297
  nodeId
310
298
  };
@@ -395,9 +383,7 @@ export class NodesApi extends BaseApi {
395
383
  updateNodeContent(nodeId, contentBodyUpdate, opts) {
396
384
  throwIfNotDefined(nodeId, 'nodeId');
397
385
  throwIfNotDefined(contentBodyUpdate, 'contentBodyUpdate');
398
- opts =
399
- opts ||
400
- {};
386
+ opts = opts || {};
401
387
  const pathParams = {
402
388
  nodeId
403
389
  };