@alfresco/js-api 10.2.0-40708416374 → 10.2.0-40882845193

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": "10.2.0-40708416374",
3
+ "version": "10.2.0-40882845193",
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",
@@ -1 +1 @@
1
- {"version":3,"file":"renditions.api.js","sourceRoot":"","sources":["renditions.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,oBAAoB,EAAuB,cAAc,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AACtG,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAKpD,MAAM,OAAO,aAAc,SAAQ,OAAO;IAUtC,eAAe,CAAC,MAAc,EAAE,mBAAwC;QACpE,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,iBAAiB,CAAC,mBAAmB,EAAE,qBAAqB,CAAC,CAAC;QAE9D,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,4BAA4B;YAClC,UAAU;YACV,SAAS,EAAE,mBAAmB;SACjC,CAAC,CAAC;IACP,CAAC;IAWD,YAAY,CAAC,MAAc,EAAE,WAAmB;QAC5C,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,iBAAiB,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;QAE9C,MAAM,UAAU,GAAG;YACf,MAAM;YACN,WAAW;SACd,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,0CAA0C;YAChD,UAAU;Y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AC;QAE9C,MAAM,UAAU,GAAG;YACf,MAAM;YACN,WAAW;SACd,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,oEAAoE;YAC1E,UAAU;YACV,UAAU,EAAE,oBAAoB;SACnC,CAAC,CAAC;IACP,CAAC;CACJ","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2026 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 { DirectAccessUrlEntry, RenditionBodyCreate, RenditionEntry, RenditionPaging } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\n\n/**\n * Renditions service.\n */\nexport class RenditionsApi extends BaseApi {\n /**\n * Create rendition\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionBodyCreate The rendition \\\"id\\\".\n * @returns Promise<{}>\n */\n createRendition(nodeId: string, renditionBodyCreate: RenditionBodyCreate): Promise<any> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionBodyCreate, 'renditionBodyCreate');\n\n const pathParams = {\n nodeId\n };\n\n return this.post({\n path: '/nodes/{nodeId}/renditions',\n pathParams,\n bodyParam: renditionBodyCreate\n });\n }\n\n /**\n * Get rendition information\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @returns Promise<RenditionEntry>\n */\n getRendition(nodeId: string, renditionId: string): Promise<RenditionEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n nodeId,\n renditionId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/renditions/{renditionId}',\n pathParams,\n returnType: RenditionEntry\n });\n }\n\n /**\n * Get rendition content\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @param opts Optional parameters\n * @param opts.attachment **true** enables a web browser to download the file as an attachment.\n * **false** means a web browser may preview the file in a new tab or window, but not download the file.\n * You can only set this parameter to **false** if the content type of the file is in the supported list; for example, certain image files and PDF files.\n * If the content type is not supported for preview, then a value of **false** is ignored, and\n * the attachment will be returned in the response. (default to true)\n * @param opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\n * Use the date format defined by HTTP. For example, Wed, 09 Mar 2016 16:56:34 GMT.\n * @param opts.range The Range header indicates the part of a document that the server should return.\n * Single part request supported, for example: bytes=1-10.\n * @param opts.placeholder If **true** and there is no rendition for this **nodeId** and **renditionId**,\n * then the placeholder image for the mime type of this rendition is returned, rather than a 404 response. (default to false)\n * @returns Promise<Blob>\n */\n getRenditionContent(\n nodeId: string,\n renditionId: string,\n opts?: {\n attachment?: boolean;\n placeholder?: boolean;\n ifModifiedSince?: string;\n range?: string;\n }\n ): Promise<Blob> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n nodeId,\n renditionId\n };\n\n const queryParams = {\n attachment: opts?.attachment,\n placeholder: opts?.placeholder\n };\n\n const headerParams = {\n 'If-Modified-Since': opts?.ifModifiedSince,\n Range: opts?.range\n };\n\n const accepts = ['application/octet-stream'];\n\n return this.get({\n path: '/nodes/{nodeId}/renditions/{renditionId}/content',\n pathParams,\n queryParams,\n headerParams,\n accepts,\n returnType: 'blob'\n });\n }\n\n /**\n * List renditions\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Gets a list of the rendition information for each rendition of the the file **nodeId**, including the rendition id.\n * Each rendition returned has a **status**: CREATED means it is available to view or download, NOT_CREATED means the rendition can be requested.\n * You can use the **where** parameter to filter the returned renditions by **status**. For example, the following **where**\n * clause will return just the CREATED renditions:\n * - (status='CREATED')\n *\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @param opts.where A string to restrict the returned objects by using a predicate.\n * @returns Promise<RenditionPaging>\n */\n listRenditions(nodeId: string, opts?: { where?: string }): Promise<RenditionPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/renditions',\n pathParams,\n queryParams: opts,\n returnType: RenditionPaging\n });\n }\n\n /**\n * Generate a direct access content url for a given rendition of a node\n *\n * **Note:** this endpoint is available in Alfresco 7.1 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionId The identifier of a version\n * @returns Promise<DirectAccessUrlEntry>\n */\n requestDirectAccessUrl(nodeId: string, renditionId: string): Promise<DirectAccessUrlEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n nodeId,\n renditionId\n };\n\n return this.post({\n path: '/nodes/{nodeId}/renditions/{renditionId}/request-direct-access-url',\n pathParams,\n returnType: DirectAccessUrlEntry\n });\n }\n}\n"]}
1
+ {"version":3,"file":"renditions.api.js","sourceRoot":"","sources":["renditions.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,oBAAoB,EAAuB,cAAc,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AACtG,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAKpD,MAAM,OAAO,aAAc,SAAQ,OAAO;IAUtC,eAAe,CAAC,MAAc,EAAE,mBAAwC;QACpE,iBAAiB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AI,EAAE,kDAAkD;YACxD,UAAU;YACV,WAAW;YACX,YAAY;YACZ,OAAO;YACP,UAAU,EAAE,MAAM;SACrB,CAAC,CAAC;IACP,CAAC;IAkBD,cAAc,CAAC,MAAc,EAAE,IAAyB;QACpD,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEpC,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,4BAA4B;YAClC,UAAU;YACV,WAAW,EAAE,IAAI;YACjB,UAAU,EAAE,eAAe;SAC9B,CAAC,CAAC;IACP,CAAC;IAWD,sBAAsB,CAAC,MAAc,EAAE,WAAmB;QACtD,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,iBAAiB,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;QAE9C,MAAM,UAAU,GAAG;YACf,MAAM;YACN,WAAW;SACd,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,oEAAoE;YAC1E,UAAU;YACV,UAAU,EAAE,oBAAoB;SACnC,CAAC,CAAC;IACP,CAAC;CACJ","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2026 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 { DirectAccessUrlEntry, RenditionBodyCreate, RenditionEntry, RenditionPaging } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\n\n/**\n * Renditions service.\n */\nexport class RenditionsApi extends BaseApi {\n /**\n * Create rendition\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionBodyCreate The rendition \\\"id\\\".\n * @returns Promise<{}>\n */\n createRendition(nodeId: string, renditionBodyCreate: RenditionBodyCreate): Promise<any> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionBodyCreate, 'renditionBodyCreate');\n\n const pathParams = {\n nodeId\n };\n\n return this.post({\n path: '/nodes/{nodeId}/renditions',\n pathParams,\n bodyParam: renditionBodyCreate\n });\n }\n\n /**\n * Get rendition information\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @returns Promise<RenditionEntry>\n */\n getRendition(nodeId: string, renditionId: string): Promise<RenditionEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n nodeId,\n renditionId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/renditions/{renditionId}',\n pathParams,\n returnType: RenditionEntry\n });\n }\n\n /**\n * Get rendition content\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @param opts Optional parameters\n * @param opts.attachment **true** enables a web browser to download the file as an attachment.\n * **false** means a web browser may preview the file in a new tab or window, but not download the file.\n * You can only set this parameter to **false** if the content type of the file is in the supported list; for example, certain image files and PDF files.\n * If the content type is not supported for preview, then a value of **false** is ignored, and\n * the attachment will be returned in the response. (default to true)\n * @param opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\n * Use the date format defined by HTTP. For example, Wed, 09 Mar 2016 16:56:34 GMT.\n * @param opts.range The Range header indicates the part of a document that the server should return.\n * Single part request supported, for example: bytes=1-10.\n * @param opts.placeholder If **true** and there is no rendition for this **nodeId** and **renditionId**,\n * then the placeholder image for the mime type of this rendition is returned, rather than a 404 response. (default to false)\n * @returns Promise<Blob>\n */\n getRenditionContent(\n nodeId: string,\n renditionId: string,\n opts?: {\n attachment?: boolean;\n placeholder?: boolean;\n ifModifiedSince?: string;\n range?: string;\n }\n ): Promise<Blob> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n nodeId,\n renditionId\n };\n\n const queryParams = {\n attachment: opts?.attachment,\n placeholder: opts?.placeholder\n };\n\n const headerParams = {\n 'If-Modified-Since': opts?.ifModifiedSince,\n Range: opts?.range\n };\n\n const accepts = ['application/octet-stream'];\n\n return this.get({\n path: '/nodes/{nodeId}/renditions/{renditionId}/content',\n pathParams,\n queryParams,\n headerParams,\n accepts,\n returnType: 'blob'\n });\n }\n\n /**\n * List renditions\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Gets a list of the rendition information for each rendition of the file **nodeId**, including the rendition id.\n * Each rendition returned has a **status**: CREATED means it is available to view or download, NOT_CREATED means the rendition can be requested.\n * You can use the **where** parameter to filter the returned renditions by **status**. For example, the following **where**\n * clause will return just the CREATED renditions:\n * - (status='CREATED')\n *\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @param opts.where A string to restrict the returned objects by using a predicate.\n * @returns Promise<RenditionPaging>\n */\n listRenditions(nodeId: string, opts?: { where?: string }): Promise<RenditionPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/renditions',\n pathParams,\n queryParams: opts,\n returnType: RenditionPaging\n });\n }\n\n /**\n * Generate a direct access content url for a given rendition of a node\n *\n * **Note:** this endpoint is available in Alfresco 7.1 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionId The identifier of a version\n * @returns Promise<DirectAccessUrlEntry>\n */\n requestDirectAccessUrl(nodeId: string, renditionId: string): Promise<DirectAccessUrlEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n nodeId,\n renditionId\n };\n\n return this.post({\n path: '/nodes/{nodeId}/renditions/{renditionId}/request-direct-access-url',\n pathParams,\n returnType: DirectAccessUrlEntry\n });\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfresco/js-api",
3
- "version": "10.2.0-40708416374",
3
+ "version": "10.2.0-40882845193",
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",
@@ -1 +1 @@
1
- {"version":3,"file":"renditions.api.js","sourceRoot":"","sources":["renditions.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,oCAAsG;AACtG,yCAAqC;AACrC,4CAAoD;AAKpD,MAAa,aAAc,SAAQ,kBAAO;IAUtC,eAAe,CAAC,MAAc,EAAE,mBAAwC;QACpE,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,mBAAmB,EAAE,qBAAqB,CAAC,CAAC;QAE9D,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,4BAA4B;YAClC,UAAU;YACV,SAAS,EAAE,mBAAmB;SACjC,CAAC,CAAC;IACP,CAAC;IAWD,YAAY,CAAC,MAAc,EAAE,WAAmB;QAC5C,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,WAAW,EAAE,aAAa,CAAC,CAAC;QAE9C,MAAM,UAAU,GAAG;YACf,MAAM;YACN,WAAW;SACd,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,0CAA0C;YAChD,UAAU;YACV,UAAU,EAAE,sBAAc;SAC7B,CAAC,CAAC;IACP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AM,UAAU,GAAG;YACf,MAAM;YACN,WAAW;SACd,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,oEAAoE;YAC1E,UAAU;YACV,UAAU,EAAE,4BAAoB;SACnC,CAAC,CAAC;IACP,CAAC;CACJ;AAtKD,sCAsKC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2026 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 { DirectAccessUrlEntry, RenditionBodyCreate, RenditionEntry, RenditionPaging } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\n\n/**\n * Renditions service.\n */\nexport class RenditionsApi extends BaseApi {\n /**\n * Create rendition\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionBodyCreate The rendition \\\"id\\\".\n * @returns Promise<{}>\n */\n createRendition(nodeId: string, renditionBodyCreate: RenditionBodyCreate): Promise<any> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionBodyCreate, 'renditionBodyCreate');\n\n const pathParams = {\n nodeId\n };\n\n return this.post({\n path: '/nodes/{nodeId}/renditions',\n pathParams,\n bodyParam: renditionBodyCreate\n });\n }\n\n /**\n * Get rendition information\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @returns Promise<RenditionEntry>\n */\n getRendition(nodeId: string, renditionId: string): Promise<RenditionEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n nodeId,\n renditionId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/renditions/{renditionId}',\n pathParams,\n returnType: RenditionEntry\n });\n }\n\n /**\n * Get rendition content\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @param opts Optional parameters\n * @param opts.attachment **true** enables a web browser to download the file as an attachment.\n * **false** means a web browser may preview the file in a new tab or window, but not download the file.\n * You can only set this parameter to **false** if the content type of the file is in the supported list; for example, certain image files and PDF files.\n * If the content type is not supported for preview, then a value of **false** is ignored, and\n * the attachment will be returned in the response. (default to true)\n * @param opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\n * Use the date format defined by HTTP. For example, Wed, 09 Mar 2016 16:56:34 GMT.\n * @param opts.range The Range header indicates the part of a document that the server should return.\n * Single part request supported, for example: bytes=1-10.\n * @param opts.placeholder If **true** and there is no rendition for this **nodeId** and **renditionId**,\n * then the placeholder image for the mime type of this rendition is returned, rather than a 404 response. (default to false)\n * @returns Promise<Blob>\n */\n getRenditionContent(\n nodeId: string,\n renditionId: string,\n opts?: {\n attachment?: boolean;\n placeholder?: boolean;\n ifModifiedSince?: string;\n range?: string;\n }\n ): Promise<Blob> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n nodeId,\n renditionId\n };\n\n const queryParams = {\n attachment: opts?.attachment,\n placeholder: opts?.placeholder\n };\n\n const headerParams = {\n 'If-Modified-Since': opts?.ifModifiedSince,\n Range: opts?.range\n };\n\n const accepts = ['application/octet-stream'];\n\n return this.get({\n path: '/nodes/{nodeId}/renditions/{renditionId}/content',\n pathParams,\n queryParams,\n headerParams,\n accepts,\n returnType: 'blob'\n });\n }\n\n /**\n * List renditions\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Gets a list of the rendition information for each rendition of the the file **nodeId**, including the rendition id.\n * Each rendition returned has a **status**: CREATED means it is available to view or download, NOT_CREATED means the rendition can be requested.\n * You can use the **where** parameter to filter the returned renditions by **status**. For example, the following **where**\n * clause will return just the CREATED renditions:\n * - (status='CREATED')\n *\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @param opts.where A string to restrict the returned objects by using a predicate.\n * @returns Promise<RenditionPaging>\n */\n listRenditions(nodeId: string, opts?: { where?: string }): Promise<RenditionPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/renditions',\n pathParams,\n queryParams: opts,\n returnType: RenditionPaging\n });\n }\n\n /**\n * Generate a direct access content url for a given rendition of a node\n *\n * **Note:** this endpoint is available in Alfresco 7.1 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionId The identifier of a version\n * @returns Promise<DirectAccessUrlEntry>\n */\n requestDirectAccessUrl(nodeId: string, renditionId: string): Promise<DirectAccessUrlEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n nodeId,\n renditionId\n };\n\n return this.post({\n path: '/nodes/{nodeId}/renditions/{renditionId}/request-direct-access-url',\n pathParams,\n returnType: DirectAccessUrlEntry\n });\n }\n}\n"]}
1
+ {"version":3,"file":"renditions.api.js","sourceRoot":"","sources":["renditions.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,oCAAsG;AACtG,yCAAqC;AACrC,4CAAoD;AAKpD,MAAa,aAAc,SAAQ,kBAAO;IAUtC,eAAe,CAAC,MAAc,EAAE,mBAAwC;QACpE,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,mBAAmB,EAAE,qBAAqB,CAAC,CAAC;QAE9D,MAAM,UAAU,GAAG;YAC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C,CAAC;IACP,CAAC;IAkBD,cAAc,CAAC,MAAc,EAAE,IAAyB;QACpD,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEpC,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,4BAA4B;YAClC,UAAU;YACV,WAAW,EAAE,IAAI;YACjB,UAAU,EAAE,uBAAe;SAC9B,CAAC,CAAC;IACP,CAAC;IAWD,sBAAsB,CAAC,MAAc,EAAE,WAAmB;QACtD,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,WAAW,EAAE,aAAa,CAAC,CAAC;QAE9C,MAAM,UAAU,GAAG;YACf,MAAM;YACN,WAAW;SACd,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,oEAAoE;YAC1E,UAAU;YACV,UAAU,EAAE,4BAAoB;SACnC,CAAC,CAAC;IACP,CAAC;CACJ;AAtKD,sCAsKC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2026 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 { DirectAccessUrlEntry, RenditionBodyCreate, RenditionEntry, RenditionPaging } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\n\n/**\n * Renditions service.\n */\nexport class RenditionsApi extends BaseApi {\n /**\n * Create rendition\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionBodyCreate The rendition \\\"id\\\".\n * @returns Promise<{}>\n */\n createRendition(nodeId: string, renditionBodyCreate: RenditionBodyCreate): Promise<any> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionBodyCreate, 'renditionBodyCreate');\n\n const pathParams = {\n nodeId\n };\n\n return this.post({\n path: '/nodes/{nodeId}/renditions',\n pathParams,\n bodyParam: renditionBodyCreate\n });\n }\n\n /**\n * Get rendition information\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @returns Promise<RenditionEntry>\n */\n getRendition(nodeId: string, renditionId: string): Promise<RenditionEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n nodeId,\n renditionId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/renditions/{renditionId}',\n pathParams,\n returnType: RenditionEntry\n });\n }\n\n /**\n * Get rendition content\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @param opts Optional parameters\n * @param opts.attachment **true** enables a web browser to download the file as an attachment.\n * **false** means a web browser may preview the file in a new tab or window, but not download the file.\n * You can only set this parameter to **false** if the content type of the file is in the supported list; for example, certain image files and PDF files.\n * If the content type is not supported for preview, then a value of **false** is ignored, and\n * the attachment will be returned in the response. (default to true)\n * @param opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\n * Use the date format defined by HTTP. For example, Wed, 09 Mar 2016 16:56:34 GMT.\n * @param opts.range The Range header indicates the part of a document that the server should return.\n * Single part request supported, for example: bytes=1-10.\n * @param opts.placeholder If **true** and there is no rendition for this **nodeId** and **renditionId**,\n * then the placeholder image for the mime type of this rendition is returned, rather than a 404 response. (default to false)\n * @returns Promise<Blob>\n */\n getRenditionContent(\n nodeId: string,\n renditionId: string,\n opts?: {\n attachment?: boolean;\n placeholder?: boolean;\n ifModifiedSince?: string;\n range?: string;\n }\n ): Promise<Blob> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n nodeId,\n renditionId\n };\n\n const queryParams = {\n attachment: opts?.attachment,\n placeholder: opts?.placeholder\n };\n\n const headerParams = {\n 'If-Modified-Since': opts?.ifModifiedSince,\n Range: opts?.range\n };\n\n const accepts = ['application/octet-stream'];\n\n return this.get({\n path: '/nodes/{nodeId}/renditions/{renditionId}/content',\n pathParams,\n queryParams,\n headerParams,\n accepts,\n returnType: 'blob'\n });\n }\n\n /**\n * List renditions\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Gets a list of the rendition information for each rendition of the file **nodeId**, including the rendition id.\n * Each rendition returned has a **status**: CREATED means it is available to view or download, NOT_CREATED means the rendition can be requested.\n * You can use the **where** parameter to filter the returned renditions by **status**. For example, the following **where**\n * clause will return just the CREATED renditions:\n * - (status='CREATED')\n *\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @param opts.where A string to restrict the returned objects by using a predicate.\n * @returns Promise<RenditionPaging>\n */\n listRenditions(nodeId: string, opts?: { where?: string }): Promise<RenditionPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/renditions',\n pathParams,\n queryParams: opts,\n returnType: RenditionPaging\n });\n }\n\n /**\n * Generate a direct access content url for a given rendition of a node\n *\n * **Note:** this endpoint is available in Alfresco 7.1 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionId The identifier of a version\n * @returns Promise<DirectAccessUrlEntry>\n */\n requestDirectAccessUrl(nodeId: string, renditionId: string): Promise<DirectAccessUrlEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n nodeId,\n renditionId\n };\n\n return this.post({\n path: '/nodes/{nodeId}/renditions/{renditionId}/request-direct-access-url',\n pathParams,\n returnType: DirectAccessUrlEntry\n });\n }\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfresco/js-api",
3
- "version": "10.2.0-40708416374",
3
+ "version": "10.2.0-40882845193",
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",
@@ -72,7 +72,7 @@ export declare class RenditionsApi extends BaseApi {
72
72
  *
73
73
  * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.
74
74
  *
75
- * Gets a list of the rendition information for each rendition of the the file **nodeId**, including the rendition id.
75
+ * Gets a list of the rendition information for each rendition of the file **nodeId**, including the rendition id.
76
76
  * Each rendition returned has a **status**: CREATED means it is available to view or download, NOT_CREATED means the rendition can be requested.
77
77
  * You can use the **where** parameter to filter the returned renditions by **status**. For example, the following **where**
78
78
  * clause will return just the CREATED renditions: