@alfresco/js-api 9.1.0-15607239857 → 9.1.0-15610360779

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfresco/js-api",
3
- "version": "9.1.0-15607239857",
3
+ "version": "9.1.0-15610360779",
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",
@@ -95,17 +95,23 @@ export class FilePlansApi extends BaseApi {
95
95
  });
96
96
  }
97
97
  getFilePlanRoles(filePlanId, parameters) {
98
- var _a;
99
98
  throwIfNotDefined(filePlanId, 'filePlanId');
99
+ const whereConditions = [];
100
+ if (parameters === null || parameters === void 0 ? void 0 : parameters.where) {
101
+ if (parameters.where.personId) {
102
+ whereConditions.push(`personId='${parameters.where.personId}'`);
103
+ }
104
+ if (parameters.where.capabilityNames) {
105
+ whereConditions.push(`capabilityName in (${parameters.where.capabilityNames.map((value) => "'" + value + "'").join(', ')})`);
106
+ }
107
+ }
100
108
  return this.get({
101
109
  path: '/file-plans/{filePlanId}/roles',
102
110
  pathParams: {
103
111
  filePlanId
104
112
  },
105
113
  queryParams: {
106
- where: ((_a = parameters === null || parameters === void 0 ? void 0 : parameters.where) === null || _a === void 0 ? void 0 : _a.capabilityNames)
107
- ? `(capabilityName in (${parameters.where.capabilityNames.map((value) => "'" + value + "'").join(', ')}))`
108
- : undefined
114
+ where: whereConditions.length ? `(${whereConditions.join(' and ')})` : undefined
109
115
  }
110
116
  });
111
117
  }
@@ -1 +1 @@
1
- {"version":3,"file":"filePlans.api.js","sourceRoot":"","sources":["filePlans.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,oBAAo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K,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,0BAA0B;YAChC,UAAU;YACV,WAAW;YACX,SAAS,EAAE,kBAAkB;YAC7B,UAAU,EAAE,aAAa;SAC5B,CAAC,CAAC;IACP,CAAC;IAQD,gBAAgB,CAAC,UAAkB,EAAE,UAAmC;;QACpE,iBAAiB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAE5C,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,gCAAgC;YACtC,UAAU,EAAE;gBACR,UAAU;aACb;YACD,WAAW,EAAE;gBACT,KAAK,EAAE,CAAA,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,eAAe;oBACrC,CAAC,CAAC,uBAAuB,UAAU,CAAC,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,GAAG,KAAK,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI;oBAC1G,CAAC,CAAC,SAAS;aAClB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 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 { FilePlanBodyUpdate } from '../model/filePlanBodyUpdate';\nimport { FilePlanEntry } from '../model/filePlanEntry';\nimport { RecordCategoryEntry } from '../model/recordCategoryEntry';\nimport { RecordCategoryPaging } from '../model/recordCategoryPaging';\nimport { RootCategoryBodyCreate } from '../model/rootCategoryBodyCreate';\nimport { BaseApi } from './base.api';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { throwIfNotDefined } from '../../../assert';\nimport { RecordsIncludeQuery, RecordsPagingQuery, RecordsSourceQuery } from './types';\nimport { FilePlanRolePaging, FilePlanRoleParameters } from '../model';\n\n/**\n * FilePlansApi service.\n */\nexport class FilePlansApi extends BaseApi {\n /**\n * Create record categories for a file plan\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param nodeBodyCreate The node information to create.\n * @param opts Optional parameters\n * @param opts.autoRename If `true`, then a name clash will cause an attempt to auto rename by finding a unique name using an integer suffix.\n * @returns Promise<RecordCategoryEntry>\n */\n createFilePlanCategories(\n filePlanId: string,\n nodeBodyCreate: RootCategoryBodyCreate,\n opts?: {\n autoRename?: boolean;\n } & RecordsIncludeQuery\n ): Promise<RecordCategoryEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(nodeBodyCreate, 'nodeBodyCreate');\n\n const pathParams = {\n filePlanId\n };\n\n const queryParams = {\n autoRename: opts?.autoRename,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/file-plans/{filePlanId}/categories',\n pathParams,\n queryParams,\n contentTypes: ['application/json', 'multipart/form-data'],\n bodyParam: nodeBodyCreate,\n returnType: RecordCategoryEntry\n });\n }\n\n /**\n * Get a file plan\n *\n * Mandatory fields and the file plan's aspects and properties are returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param opts Optional parameters\n * @returns Promise<FilePlanEntry>\n */\n getFilePlan(filePlanId: string, opts?: RecordsIncludeQuery): Promise<FilePlanEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n const pathParams = {\n filePlanId\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: '/file-plans/{filePlanId}',\n pathParams,\n queryParams,\n returnType: FilePlanEntry\n });\n }\n\n /**\n * List file plans's children\n *\n * Minimal information for each child is returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param opts Optional parameters\n * @returns Promise<RecordCategoryPaging>\n */\n getFilePlanCategories(filePlanId: string, opts?: RecordsIncludeQuery & RecordsPagingQuery & RecordsSourceQuery): Promise<RecordCategoryPaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n const pathParams = {\n filePlanId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n include: buildCollectionParam(opts?.include, 'csv'),\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/file-plans/{filePlanId}/categories',\n pathParams,\n queryParams,\n returnType: RecordCategoryPaging\n });\n }\n\n /**\n * Update a file plan\n *\n * **Note:** Currently there is no optimistic locking for updates, so they are applied in \\\"last one wins\\\" order.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param filePlanBodyUpdate The file plan information to update.\n * @param opts Optional parameters\n * @returns Promise<FilePlanEntry>\n */\n updateFilePlan(filePlanId: string, filePlanBodyUpdate: FilePlanBodyUpdate, opts?: RecordsIncludeQuery): Promise<FilePlanEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(filePlanBodyUpdate, 'filePlanBodyUpdate');\n\n const pathParams = {\n filePlanId\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: '/file-plans/{filePlanId}',\n pathParams,\n queryParams,\n bodyParam: filePlanBodyUpdate,\n returnType: FilePlanEntry\n });\n }\n\n /**\n * Gets a list of roles for the specified file plan.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param parameters Optional parameters\n * @returns Promise<FilePlanEntry>\n */\n getFilePlanRoles(filePlanId: string, parameters?: FilePlanRoleParameters): Promise<FilePlanRolePaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n return this.get({\n path: '/file-plans/{filePlanId}/roles',\n pathParams: {\n filePlanId\n },\n queryParams: {\n where: parameters?.where?.capabilityNames\n ? `(capabilityName in (${parameters.where.capabilityNames.map((value) => \"'\" + value + \"'\").join(', ')}))`\n : undefined\n }\n });\n }\n}\n"]}
1
+ {"version":3,"file":"filePlans.api.js","sourceRoot":"","sources":["filePlans.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAOpD,MAAM,OAAO,YAAa,SAAQ,OAAO;IASrC,wBAAwB,CACpB,UAAkB,EAClB,cAAsC,EACtC,IAEuB;QAEvB,iBAAiB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAC5C,iBAAiB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;QAEpD,MAAM,UAAU,GAAG;YACf,UAAU;SACb,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,UAAU,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,UAAU;YAC5B,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAA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AK,CAAC,QAAQ,GAAG,CAAC,CAAC;YACpE,CAAC;YACD,IAAI,UAAU,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;gBACnC,eAAe,CAAC,IAAI,CAAC,sBAAsB,UAAU,CAAC,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,GAAG,KAAK,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACjI,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,gCAAgC;YACtC,UAAU,EAAE;gBACR,UAAU;aACb;YACD,WAAW,EAAE;gBACT,KAAK,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS;aACnF;SACJ,CAAC,CAAC;IACP,CAAC;CACJ","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 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 { FilePlanBodyUpdate } from '../model/filePlanBodyUpdate';\nimport { FilePlanEntry } from '../model/filePlanEntry';\nimport { RecordCategoryEntry } from '../model/recordCategoryEntry';\nimport { RecordCategoryPaging } from '../model/recordCategoryPaging';\nimport { RootCategoryBodyCreate } from '../model/rootCategoryBodyCreate';\nimport { BaseApi } from './base.api';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { throwIfNotDefined } from '../../../assert';\nimport { RecordsIncludeQuery, RecordsPagingQuery, RecordsSourceQuery } from './types';\nimport { FilePlanRolePaging, FilePlanRoleParameters } from '../model';\n\n/**\n * FilePlansApi service.\n */\nexport class FilePlansApi extends BaseApi {\n /**\n * Create record categories for a file plan\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param nodeBodyCreate The node information to create.\n * @param opts Optional parameters\n * @param opts.autoRename If `true`, then a name clash will cause an attempt to auto rename by finding a unique name using an integer suffix.\n * @returns Promise<RecordCategoryEntry>\n */\n createFilePlanCategories(\n filePlanId: string,\n nodeBodyCreate: RootCategoryBodyCreate,\n opts?: {\n autoRename?: boolean;\n } & RecordsIncludeQuery\n ): Promise<RecordCategoryEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(nodeBodyCreate, 'nodeBodyCreate');\n\n const pathParams = {\n filePlanId\n };\n\n const queryParams = {\n autoRename: opts?.autoRename,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/file-plans/{filePlanId}/categories',\n pathParams,\n queryParams,\n contentTypes: ['application/json', 'multipart/form-data'],\n bodyParam: nodeBodyCreate,\n returnType: RecordCategoryEntry\n });\n }\n\n /**\n * Get a file plan\n *\n * Mandatory fields and the file plan's aspects and properties are returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param opts Optional parameters\n * @returns Promise<FilePlanEntry>\n */\n getFilePlan(filePlanId: string, opts?: RecordsIncludeQuery): Promise<FilePlanEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n const pathParams = {\n filePlanId\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: '/file-plans/{filePlanId}',\n pathParams,\n queryParams,\n returnType: FilePlanEntry\n });\n }\n\n /**\n * List file plans's children\n *\n * Minimal information for each child is returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param opts Optional parameters\n * @returns Promise<RecordCategoryPaging>\n */\n getFilePlanCategories(filePlanId: string, opts?: RecordsIncludeQuery & RecordsPagingQuery & RecordsSourceQuery): Promise<RecordCategoryPaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n const pathParams = {\n filePlanId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n include: buildCollectionParam(opts?.include, 'csv'),\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/file-plans/{filePlanId}/categories',\n pathParams,\n queryParams,\n returnType: RecordCategoryPaging\n });\n }\n\n /**\n * Update a file plan\n *\n * **Note:** Currently there is no optimistic locking for updates, so they are applied in \\\"last one wins\\\" order.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param filePlanBodyUpdate The file plan information to update.\n * @param opts Optional parameters\n * @returns Promise<FilePlanEntry>\n */\n updateFilePlan(filePlanId: string, filePlanBodyUpdate: FilePlanBodyUpdate, opts?: RecordsIncludeQuery): Promise<FilePlanEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(filePlanBodyUpdate, 'filePlanBodyUpdate');\n\n const pathParams = {\n filePlanId\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: '/file-plans/{filePlanId}',\n pathParams,\n queryParams,\n bodyParam: filePlanBodyUpdate,\n returnType: FilePlanEntry\n });\n }\n\n /**\n * Gets a list of roles for the specified file plan.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param parameters Optional parameters\n * @returns Promise<FilePlanEntry>\n */\n getFilePlanRoles(filePlanId: string, parameters?: FilePlanRoleParameters): Promise<FilePlanRolePaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n const whereConditions: string[] = [];\n if (parameters?.where) {\n if (parameters.where.personId) {\n whereConditions.push(`personId='${parameters.where.personId}'`);\n }\n if (parameters.where.capabilityNames) {\n whereConditions.push(`capabilityName in (${parameters.where.capabilityNames.map((value) => \"'\" + value + \"'\").join(', ')})`);\n }\n }\n return this.get({\n path: '/file-plans/{filePlanId}/roles',\n pathParams: {\n filePlanId\n },\n queryParams: {\n where: whereConditions.length ? `(${whereConditions.join(' and ')})` : undefined\n }\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"filePlanRoleParametersWhere.js","sourceRoot":"","sources":["filePlanRoleParametersWhere.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface FilePlanRoleParametersWhere {\n capabilityNames?: string[];\n}\n"]}
1
+ {"version":3,"file":"filePlanRoleParametersWhere.js","sourceRoot":"","sources":["filePlanRoleParametersWhere.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface FilePlanRoleParametersWhere {\n personId?: string;\n capabilityNames?: string[];\n}\n"]}
package/esm5/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfresco/js-api",
3
- "version": "9.1.0-15607239857",
3
+ "version": "9.1.0-15610360779",
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",
@@ -95,17 +95,23 @@ export class FilePlansApi extends BaseApi {
95
95
  });
96
96
  }
97
97
  getFilePlanRoles(filePlanId, parameters) {
98
- var _a;
99
98
  throwIfNotDefined(filePlanId, 'filePlanId');
99
+ const whereConditions = [];
100
+ if (parameters === null || parameters === void 0 ? void 0 : parameters.where) {
101
+ if (parameters.where.personId) {
102
+ whereConditions.push(`personId='${parameters.where.personId}'`);
103
+ }
104
+ if (parameters.where.capabilityNames) {
105
+ whereConditions.push(`capabilityName in (${parameters.where.capabilityNames.map((value) => "'" + value + "'").join(', ')})`);
106
+ }
107
+ }
100
108
  return this.get({
101
109
  path: '/file-plans/{filePlanId}/roles',
102
110
  pathParams: {
103
111
  filePlanId
104
112
  },
105
113
  queryParams: {
106
- where: ((_a = parameters === null || parameters === void 0 ? void 0 : parameters.where) === null || _a === void 0 ? void 0 : _a.capabilityNames)
107
- ? `(capabilityName in (${parameters.where.capabilityNames.map((value) => "'" + value + "'").join(', ')}))`
108
- : undefined
114
+ where: whereConditions.length ? `(${whereConditions.join(' and ')})` : undefined
109
115
  }
110
116
  });
111
117
  }
@@ -1 +1 @@
1
- {"version":3,"file":"filePlans.api.js","sourceRoot":"","sources":["filePlans.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE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AE,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,0BAA0B;YAChC,UAAU;YACV,WAAW;YACX,SAAS,EAAE,kBAAkB;YAC7B,UAAU,EAAE,aAAa;SAC5B,CAAC,CAAC;IACP,CAAC;IAQD,gBAAgB,CAAC,UAAkB,EAAE,UAAmC;;QACpE,iBAAiB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAE5C,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,gCAAgC;YACtC,UAAU,EAAE;gBACR,UAAU;aACb;YACD,WAAW,EAAE;gBACT,KAAK,EAAE,CAAA,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,eAAe;oBACrC,CAAC,CAAC,uBAAuB,UAAU,CAAC,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,GAAG,KAAK,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI;oBAC1G,CAAC,CAAC,SAAS;aAClB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 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 { FilePlanBodyUpdate } from '../model/filePlanBodyUpdate';\nimport { FilePlanEntry } from '../model/filePlanEntry';\nimport { RecordCategoryEntry } from '../model/recordCategoryEntry';\nimport { RecordCategoryPaging } from '../model/recordCategoryPaging';\nimport { RootCategoryBodyCreate } from '../model/rootCategoryBodyCreate';\nimport { BaseApi } from './base.api';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { throwIfNotDefined } from '../../../assert';\nimport { RecordsIncludeQuery, RecordsPagingQuery, RecordsSourceQuery } from './types';\nimport { FilePlanRolePaging, FilePlanRoleParameters } from '../model';\n\n/**\n * FilePlansApi service.\n */\nexport class FilePlansApi extends BaseApi {\n /**\n * Create record categories for a file plan\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param nodeBodyCreate The node information to create.\n * @param opts Optional parameters\n * @param opts.autoRename If `true`, then a name clash will cause an attempt to auto rename by finding a unique name using an integer suffix.\n * @returns Promise<RecordCategoryEntry>\n */\n createFilePlanCategories(\n filePlanId: string,\n nodeBodyCreate: RootCategoryBodyCreate,\n opts?: {\n autoRename?: boolean;\n } & RecordsIncludeQuery\n ): Promise<RecordCategoryEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(nodeBodyCreate, 'nodeBodyCreate');\n\n const pathParams = {\n filePlanId\n };\n\n const queryParams = {\n autoRename: opts?.autoRename,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/file-plans/{filePlanId}/categories',\n pathParams,\n queryParams,\n contentTypes: ['application/json', 'multipart/form-data'],\n bodyParam: nodeBodyCreate,\n returnType: RecordCategoryEntry\n });\n }\n\n /**\n * Get a file plan\n *\n * Mandatory fields and the file plan's aspects and properties are returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param opts Optional parameters\n * @returns Promise<FilePlanEntry>\n */\n getFilePlan(filePlanId: string, opts?: RecordsIncludeQuery): Promise<FilePlanEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n const pathParams = {\n filePlanId\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: '/file-plans/{filePlanId}',\n pathParams,\n queryParams,\n returnType: FilePlanEntry\n });\n }\n\n /**\n * List file plans's children\n *\n * Minimal information for each child is returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param opts Optional parameters\n * @returns Promise<RecordCategoryPaging>\n */\n getFilePlanCategories(filePlanId: string, opts?: RecordsIncludeQuery & RecordsPagingQuery & RecordsSourceQuery): Promise<RecordCategoryPaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n const pathParams = {\n filePlanId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n include: buildCollectionParam(opts?.include, 'csv'),\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/file-plans/{filePlanId}/categories',\n pathParams,\n queryParams,\n returnType: RecordCategoryPaging\n });\n }\n\n /**\n * Update a file plan\n *\n * **Note:** Currently there is no optimistic locking for updates, so they are applied in \\\"last one wins\\\" order.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param filePlanBodyUpdate The file plan information to update.\n * @param opts Optional parameters\n * @returns Promise<FilePlanEntry>\n */\n updateFilePlan(filePlanId: string, filePlanBodyUpdate: FilePlanBodyUpdate, opts?: RecordsIncludeQuery): Promise<FilePlanEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(filePlanBodyUpdate, 'filePlanBodyUpdate');\n\n const pathParams = {\n filePlanId\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: '/file-plans/{filePlanId}',\n pathParams,\n queryParams,\n bodyParam: filePlanBodyUpdate,\n returnType: FilePlanEntry\n });\n }\n\n /**\n * Gets a list of roles for the specified file plan.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param parameters Optional parameters\n * @returns Promise<FilePlanEntry>\n */\n getFilePlanRoles(filePlanId: string, parameters?: FilePlanRoleParameters): Promise<FilePlanRolePaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n return this.get({\n path: '/file-plans/{filePlanId}/roles',\n pathParams: {\n filePlanId\n },\n queryParams: {\n where: parameters?.where?.capabilityNames\n ? `(capabilityName in (${parameters.where.capabilityNames.map((value) => \"'\" + value + \"'\").join(', ')}))`\n : undefined\n }\n });\n }\n}\n"]}
1
+ {"version":3,"file":"filePlans.api.js","sourceRoot":"","sources":["filePlans.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAOpD,MAAM,OAAO,YAAa,SAAQ,OAAO;IASrC,wBAAwB,CACpB,UAAkB,EAClB,cAAsC,EACtC,IAEuB;QAEvB,iBAAiB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAC5C,iBAAiB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;QAEpD,MAAM,UAAU,GAAG;YACf,UAAU;SACb,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,UAAU,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,UAAU;YAC5B,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IA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AAC,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC;YACpE,CAAC;YACD,IAAI,UAAU,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;gBACnC,eAAe,CAAC,IAAI,CAAC,sBAAsB,UAAU,CAAC,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,GAAG,KAAK,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACjI,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,gCAAgC;YACtC,UAAU,EAAE;gBACR,UAAU;aACb;YACD,WAAW,EAAE;gBACT,KAAK,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS;aACnF;SACJ,CAAC,CAAC;IACP,CAAC;CACJ","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 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 { FilePlanBodyUpdate } from '../model/filePlanBodyUpdate';\nimport { FilePlanEntry } from '../model/filePlanEntry';\nimport { RecordCategoryEntry } from '../model/recordCategoryEntry';\nimport { RecordCategoryPaging } from '../model/recordCategoryPaging';\nimport { RootCategoryBodyCreate } from '../model/rootCategoryBodyCreate';\nimport { BaseApi } from './base.api';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { throwIfNotDefined } from '../../../assert';\nimport { RecordsIncludeQuery, RecordsPagingQuery, RecordsSourceQuery } from './types';\nimport { FilePlanRolePaging, FilePlanRoleParameters } from '../model';\n\n/**\n * FilePlansApi service.\n */\nexport class FilePlansApi extends BaseApi {\n /**\n * Create record categories for a file plan\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param nodeBodyCreate The node information to create.\n * @param opts Optional parameters\n * @param opts.autoRename If `true`, then a name clash will cause an attempt to auto rename by finding a unique name using an integer suffix.\n * @returns Promise<RecordCategoryEntry>\n */\n createFilePlanCategories(\n filePlanId: string,\n nodeBodyCreate: RootCategoryBodyCreate,\n opts?: {\n autoRename?: boolean;\n } & RecordsIncludeQuery\n ): Promise<RecordCategoryEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(nodeBodyCreate, 'nodeBodyCreate');\n\n const pathParams = {\n filePlanId\n };\n\n const queryParams = {\n autoRename: opts?.autoRename,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/file-plans/{filePlanId}/categories',\n pathParams,\n queryParams,\n contentTypes: ['application/json', 'multipart/form-data'],\n bodyParam: nodeBodyCreate,\n returnType: RecordCategoryEntry\n });\n }\n\n /**\n * Get a file plan\n *\n * Mandatory fields and the file plan's aspects and properties are returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param opts Optional parameters\n * @returns Promise<FilePlanEntry>\n */\n getFilePlan(filePlanId: string, opts?: RecordsIncludeQuery): Promise<FilePlanEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n const pathParams = {\n filePlanId\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: '/file-plans/{filePlanId}',\n pathParams,\n queryParams,\n returnType: FilePlanEntry\n });\n }\n\n /**\n * List file plans's children\n *\n * Minimal information for each child is returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param opts Optional parameters\n * @returns Promise<RecordCategoryPaging>\n */\n getFilePlanCategories(filePlanId: string, opts?: RecordsIncludeQuery & RecordsPagingQuery & RecordsSourceQuery): Promise<RecordCategoryPaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n const pathParams = {\n filePlanId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n include: buildCollectionParam(opts?.include, 'csv'),\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/file-plans/{filePlanId}/categories',\n pathParams,\n queryParams,\n returnType: RecordCategoryPaging\n });\n }\n\n /**\n * Update a file plan\n *\n * **Note:** Currently there is no optimistic locking for updates, so they are applied in \\\"last one wins\\\" order.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param filePlanBodyUpdate The file plan information to update.\n * @param opts Optional parameters\n * @returns Promise<FilePlanEntry>\n */\n updateFilePlan(filePlanId: string, filePlanBodyUpdate: FilePlanBodyUpdate, opts?: RecordsIncludeQuery): Promise<FilePlanEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(filePlanBodyUpdate, 'filePlanBodyUpdate');\n\n const pathParams = {\n filePlanId\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: '/file-plans/{filePlanId}',\n pathParams,\n queryParams,\n bodyParam: filePlanBodyUpdate,\n returnType: FilePlanEntry\n });\n }\n\n /**\n * Gets a list of roles for the specified file plan.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param parameters Optional parameters\n * @returns Promise<FilePlanEntry>\n */\n getFilePlanRoles(filePlanId: string, parameters?: FilePlanRoleParameters): Promise<FilePlanRolePaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n const whereConditions: string[] = [];\n if (parameters?.where) {\n if (parameters.where.personId) {\n whereConditions.push(`personId='${parameters.where.personId}'`);\n }\n if (parameters.where.capabilityNames) {\n whereConditions.push(`capabilityName in (${parameters.where.capabilityNames.map((value) => \"'\" + value + \"'\").join(', ')})`);\n }\n }\n return this.get({\n path: '/file-plans/{filePlanId}/roles',\n pathParams: {\n filePlanId\n },\n queryParams: {\n where: whereConditions.length ? `(${whereConditions.join(' and ')})` : undefined\n }\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"filePlanRoleParametersWhere.js","sourceRoot":"","sources":["filePlanRoleParametersWhere.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface FilePlanRoleParametersWhere {\n capabilityNames?: string[];\n}\n"]}
1
+ {"version":3,"file":"filePlanRoleParametersWhere.js","sourceRoot":"","sources":["filePlanRoleParametersWhere.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface FilePlanRoleParametersWhere {\n personId?: string;\n capabilityNames?: string[];\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfresco/js-api",
3
- "version": "9.1.0-15607239857",
3
+ "version": "9.1.0-15610360779",
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",
@@ -98,17 +98,23 @@ class FilePlansApi extends base_api_1.BaseApi {
98
98
  });
99
99
  }
100
100
  getFilePlanRoles(filePlanId, parameters) {
101
- var _a;
102
101
  (0, assert_1.throwIfNotDefined)(filePlanId, 'filePlanId');
102
+ const whereConditions = [];
103
+ if (parameters === null || parameters === void 0 ? void 0 : parameters.where) {
104
+ if (parameters.where.personId) {
105
+ whereConditions.push(`personId='${parameters.where.personId}'`);
106
+ }
107
+ if (parameters.where.capabilityNames) {
108
+ whereConditions.push(`capabilityName in (${parameters.where.capabilityNames.map((value) => "'" + value + "'").join(', ')})`);
109
+ }
110
+ }
103
111
  return this.get({
104
112
  path: '/file-plans/{filePlanId}/roles',
105
113
  pathParams: {
106
114
  filePlanId
107
115
  },
108
116
  queryParams: {
109
- where: ((_a = parameters === null || parameters === void 0 ? void 0 : parameters.where) === null || _a === void 0 ? void 0 : _a.capabilityNames)
110
- ? `(capabilityName in (${parameters.where.capabilityNames.map((value) => "'" + value + "'").join(', ')}))`
111
- : undefined
117
+ where: whereConditions.length ? `(${whereConditions.join(' and ')})` : undefined
112
118
  }
113
119
  });
114
120
  }
@@ -1 +1 @@
1
- {"version":3,"file":"filePlans.api.js","sourceRoot":"","sources":["filePlans.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAGH,0DAAuD;AACvD,sEAAmE;AACnE,wEAAqE;AAErE,yCAAqC;AACrC,kEAAkE;AAClE,4CAAoD;AAOpD,MAAa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C;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,0BAA0B;YAChC,UAAU;YACV,WAAW;YACX,SAAS,EAAE,kBAAkB;YAC7B,UAAU,EAAE,6BAAa;SAC5B,CAAC,CAAC;IACP,CAAC;IAQD,gBAAgB,CAAC,UAAkB,EAAE,UAAmC;;QACpE,IAAA,0BAAiB,EAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAE5C,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,gCAAgC;YACtC,UAAU,EAAE;gBACR,UAAU;aACb;YACD,WAAW,EAAE;gBACT,KAAK,EAAE,CAAA,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,eAAe;oBACrC,CAAC,CAAC,uBAAuB,UAAU,CAAC,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,GAAG,KAAK,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI;oBAC1G,CAAC,CAAC,SAAS;aAClB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AAxJD,oCAwJC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 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 { FilePlanBodyUpdate } from '../model/filePlanBodyUpdate';\nimport { FilePlanEntry } from '../model/filePlanEntry';\nimport { RecordCategoryEntry } from '../model/recordCategoryEntry';\nimport { RecordCategoryPaging } from '../model/recordCategoryPaging';\nimport { RootCategoryBodyCreate } from '../model/rootCategoryBodyCreate';\nimport { BaseApi } from './base.api';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { throwIfNotDefined } from '../../../assert';\nimport { RecordsIncludeQuery, RecordsPagingQuery, RecordsSourceQuery } from './types';\nimport { FilePlanRolePaging, FilePlanRoleParameters } from '../model';\n\n/**\n * FilePlansApi service.\n */\nexport class FilePlansApi extends BaseApi {\n /**\n * Create record categories for a file plan\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param nodeBodyCreate The node information to create.\n * @param opts Optional parameters\n * @param opts.autoRename If `true`, then a name clash will cause an attempt to auto rename by finding a unique name using an integer suffix.\n * @returns Promise<RecordCategoryEntry>\n */\n createFilePlanCategories(\n filePlanId: string,\n nodeBodyCreate: RootCategoryBodyCreate,\n opts?: {\n autoRename?: boolean;\n } & RecordsIncludeQuery\n ): Promise<RecordCategoryEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(nodeBodyCreate, 'nodeBodyCreate');\n\n const pathParams = {\n filePlanId\n };\n\n const queryParams = {\n autoRename: opts?.autoRename,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/file-plans/{filePlanId}/categories',\n pathParams,\n queryParams,\n contentTypes: ['application/json', 'multipart/form-data'],\n bodyParam: nodeBodyCreate,\n returnType: RecordCategoryEntry\n });\n }\n\n /**\n * Get a file plan\n *\n * Mandatory fields and the file plan's aspects and properties are returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param opts Optional parameters\n * @returns Promise<FilePlanEntry>\n */\n getFilePlan(filePlanId: string, opts?: RecordsIncludeQuery): Promise<FilePlanEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n const pathParams = {\n filePlanId\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: '/file-plans/{filePlanId}',\n pathParams,\n queryParams,\n returnType: FilePlanEntry\n });\n }\n\n /**\n * List file plans's children\n *\n * Minimal information for each child is returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param opts Optional parameters\n * @returns Promise<RecordCategoryPaging>\n */\n getFilePlanCategories(filePlanId: string, opts?: RecordsIncludeQuery & RecordsPagingQuery & RecordsSourceQuery): Promise<RecordCategoryPaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n const pathParams = {\n filePlanId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n include: buildCollectionParam(opts?.include, 'csv'),\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/file-plans/{filePlanId}/categories',\n pathParams,\n queryParams,\n returnType: RecordCategoryPaging\n });\n }\n\n /**\n * Update a file plan\n *\n * **Note:** Currently there is no optimistic locking for updates, so they are applied in \\\"last one wins\\\" order.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param filePlanBodyUpdate The file plan information to update.\n * @param opts Optional parameters\n * @returns Promise<FilePlanEntry>\n */\n updateFilePlan(filePlanId: string, filePlanBodyUpdate: FilePlanBodyUpdate, opts?: RecordsIncludeQuery): Promise<FilePlanEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(filePlanBodyUpdate, 'filePlanBodyUpdate');\n\n const pathParams = {\n filePlanId\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: '/file-plans/{filePlanId}',\n pathParams,\n queryParams,\n bodyParam: filePlanBodyUpdate,\n returnType: FilePlanEntry\n });\n }\n\n /**\n * Gets a list of roles for the specified file plan.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param parameters Optional parameters\n * @returns Promise<FilePlanEntry>\n */\n getFilePlanRoles(filePlanId: string, parameters?: FilePlanRoleParameters): Promise<FilePlanRolePaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n return this.get({\n path: '/file-plans/{filePlanId}/roles',\n pathParams: {\n filePlanId\n },\n queryParams: {\n where: parameters?.where?.capabilityNames\n ? `(capabilityName in (${parameters.where.capabilityNames.map((value) => \"'\" + value + \"'\").join(', ')}))`\n : undefined\n }\n });\n }\n}\n"]}
1
+ {"version":3,"file":"filePlans.api.js","sourceRoot":"","sources":["filePlans.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAGH,0DAAuD;AACvD,sEAAmE;AACnE,wEAAqE;AAErE,yCAAqC;AACrC,kEAAkE;AAClE,4CAAoD;AAOpD,MAAa,YAAa,SAAQ,kBAAO;IASrC,wBAAwB,CACpB,UAAkB,EAClB,cAAsC,EACtC,IAEuB;QAEvB,IAAA,0BAAiB,EAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAC5C,IAAA,0BAAiB,EAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;QAEpD,MAAM,UAAU,GAAG;YACf,UAAU;SACb,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,UAAU,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,UAAU;YAC5B,OAAO,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,qCAAqC;YAC3C,UAAU;YACV,WAAW;YACX,YAAY,EAAE,CAAC,kBAAkB,EAAE,qBAAqB,CAAC;YACzD,SAAS,EAAE,cAA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AAG,KAAK,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACjI,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,gCAAgC;YACtC,UAAU,EAAE;gBACR,UAAU;aACb;YACD,WAAW,EAAE;gBACT,KAAK,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS;aACnF;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AA9JD,oCA8JC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 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 { FilePlanBodyUpdate } from '../model/filePlanBodyUpdate';\nimport { FilePlanEntry } from '../model/filePlanEntry';\nimport { RecordCategoryEntry } from '../model/recordCategoryEntry';\nimport { RecordCategoryPaging } from '../model/recordCategoryPaging';\nimport { RootCategoryBodyCreate } from '../model/rootCategoryBodyCreate';\nimport { BaseApi } from './base.api';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { throwIfNotDefined } from '../../../assert';\nimport { RecordsIncludeQuery, RecordsPagingQuery, RecordsSourceQuery } from './types';\nimport { FilePlanRolePaging, FilePlanRoleParameters } from '../model';\n\n/**\n * FilePlansApi service.\n */\nexport class FilePlansApi extends BaseApi {\n /**\n * Create record categories for a file plan\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param nodeBodyCreate The node information to create.\n * @param opts Optional parameters\n * @param opts.autoRename If `true`, then a name clash will cause an attempt to auto rename by finding a unique name using an integer suffix.\n * @returns Promise<RecordCategoryEntry>\n */\n createFilePlanCategories(\n filePlanId: string,\n nodeBodyCreate: RootCategoryBodyCreate,\n opts?: {\n autoRename?: boolean;\n } & RecordsIncludeQuery\n ): Promise<RecordCategoryEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(nodeBodyCreate, 'nodeBodyCreate');\n\n const pathParams = {\n filePlanId\n };\n\n const queryParams = {\n autoRename: opts?.autoRename,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/file-plans/{filePlanId}/categories',\n pathParams,\n queryParams,\n contentTypes: ['application/json', 'multipart/form-data'],\n bodyParam: nodeBodyCreate,\n returnType: RecordCategoryEntry\n });\n }\n\n /**\n * Get a file plan\n *\n * Mandatory fields and the file plan's aspects and properties are returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param opts Optional parameters\n * @returns Promise<FilePlanEntry>\n */\n getFilePlan(filePlanId: string, opts?: RecordsIncludeQuery): Promise<FilePlanEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n const pathParams = {\n filePlanId\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: '/file-plans/{filePlanId}',\n pathParams,\n queryParams,\n returnType: FilePlanEntry\n });\n }\n\n /**\n * List file plans's children\n *\n * Minimal information for each child is returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param opts Optional parameters\n * @returns Promise<RecordCategoryPaging>\n */\n getFilePlanCategories(filePlanId: string, opts?: RecordsIncludeQuery & RecordsPagingQuery & RecordsSourceQuery): Promise<RecordCategoryPaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n\n const pathParams = {\n filePlanId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n include: buildCollectionParam(opts?.include, 'csv'),\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/file-plans/{filePlanId}/categories',\n pathParams,\n queryParams,\n returnType: RecordCategoryPaging\n });\n }\n\n /**\n * Update a file plan\n *\n * **Note:** Currently there is no optimistic locking for updates, so they are applied in \\\"last one wins\\\" order.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param filePlanBodyUpdate The file plan information to update.\n * @param opts Optional parameters\n * @returns Promise<FilePlanEntry>\n */\n updateFilePlan(filePlanId: string, filePlanBodyUpdate: FilePlanBodyUpdate, opts?: RecordsIncludeQuery): Promise<FilePlanEntry> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n throwIfNotDefined(filePlanBodyUpdate, 'filePlanBodyUpdate');\n\n const pathParams = {\n filePlanId\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: '/file-plans/{filePlanId}',\n pathParams,\n queryParams,\n bodyParam: filePlanBodyUpdate,\n returnType: FilePlanEntry\n });\n }\n\n /**\n * Gets a list of roles for the specified file plan.\n * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias.\n * @param parameters Optional parameters\n * @returns Promise<FilePlanEntry>\n */\n getFilePlanRoles(filePlanId: string, parameters?: FilePlanRoleParameters): Promise<FilePlanRolePaging> {\n throwIfNotDefined(filePlanId, 'filePlanId');\n const whereConditions: string[] = [];\n if (parameters?.where) {\n if (parameters.where.personId) {\n whereConditions.push(`personId='${parameters.where.personId}'`);\n }\n if (parameters.where.capabilityNames) {\n whereConditions.push(`capabilityName in (${parameters.where.capabilityNames.map((value) => \"'\" + value + \"'\").join(', ')})`);\n }\n }\n return this.get({\n path: '/file-plans/{filePlanId}/roles',\n pathParams: {\n filePlanId\n },\n queryParams: {\n where: whereConditions.length ? `(${whereConditions.join(' and ')})` : undefined\n }\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"filePlanRoleParametersWhere.js","sourceRoot":"","sources":["filePlanRoleParametersWhere.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface FilePlanRoleParametersWhere {\n capabilityNames?: string[];\n}\n"]}
1
+ {"version":3,"file":"filePlanRoleParametersWhere.js","sourceRoot":"","sources":["filePlanRoleParametersWhere.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface FilePlanRoleParametersWhere {\n personId?: string;\n capabilityNames?: string[];\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfresco/js-api",
3
- "version": "9.1.0-15607239857",
3
+ "version": "9.1.0-15610360779",
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",
@@ -15,5 +15,6 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  export interface FilePlanRoleParametersWhere {
18
+ personId?: string;
18
19
  capabilityNames?: string[];
19
20
  }