From 14593a883296ec01ef388125a623fd1301595fc7 Mon Sep 17 00:00:00 2001 From: "atharva.dev" Date: Mon, 17 Nov 2025 05:44:50 +0000 Subject: [PATCH] (PS-383) Dist folder removed from git (!3) Reviewed-on: https://repo.seclore.com/public/n8n-nodes-seclore/pulls/3 Reviewed-by: Nitin Baranwal --- .gitignore | 3 +- .../SecloreProtectApi.credentials.d.ts | 9 - .../SecloreProtectApi.credentials.js | 58 --- .../SecloreProtectApi.credentials.js.map | 1 - dist/icons/seclore.svg | 11 - .../SecloreProtect/SecloreProtect.node.d.ts | 14 - .../SecloreProtect/SecloreProtect.node.js | 170 -------- .../SecloreProtect/SecloreProtect.node.js.map | 1 - .../SecloreProtect/SecloreProtect.node.json | 4 - .../Services/Interfaces/ErrorInterfaces.d.ts | 4 - .../Services/Interfaces/ErrorInterfaces.js | 3 - .../Interfaces/ErrorInterfaces.js.map | 1 - .../Interfaces/FileStorageInterfaces.d.ts | 23 - .../Interfaces/FileStorageInterfaces.js | 3 - .../Interfaces/FileStorageInterfaces.js.map | 1 - .../Services/Interfaces/LoginInterfaces.d.ts | 14 - .../Services/Interfaces/LoginInterfaces.js | 3 - .../Interfaces/LoginInterfaces.js.map | 1 - .../Interfaces/ProtectInterfaces.d.ts | 40 -- .../Services/Interfaces/ProtectInterfaces.js | 3 - .../Interfaces/ProtectInterfaces.js.map | 1 - .../Interfaces/UnprotectInterfaces.d.ts | 9 - .../Interfaces/UnprotectInterfaces.js | 3 - .../Interfaces/UnprotectInterfaces.js.map | 1 - .../Services/SecloreDRMApiService.d.ts | 20 - .../Services/SecloreDRMApiService.js | 403 ------------------ .../Services/SecloreDRMApiService.js.map | 1 - .../Services/SecloreDRMFileService.d.ts | 31 -- .../Services/SecloreDRMFileService.js | 217 ---------- .../Services/SecloreDRMFileService.js.map | 1 - dist/nodes/SecloreProtect/Services/Utils.d.ts | 3 - dist/nodes/SecloreProtect/Services/Utils.js | 43 -- .../SecloreProtect/Services/Utils.js.map | 1 - .../operations/protectWithHotFolder.d.ts | 2 - .../operations/protectWithHotFolder.js | 205 --------- .../operations/protectWithHotFolder.js.map | 1 - .../SecloreProtect/operations/unprotect.d.ts | 2 - .../SecloreProtect/operations/unprotect.js | 195 --------- .../operations/unprotect.js.map | 1 - dist/package.json | 51 --- dist/tsconfig.tsbuildinfo | 1 - 41 files changed, 2 insertions(+), 1557 deletions(-) delete mode 100644 dist/credentials/SecloreProtectApi.credentials.d.ts delete mode 100644 dist/credentials/SecloreProtectApi.credentials.js delete mode 100644 dist/credentials/SecloreProtectApi.credentials.js.map delete mode 100644 dist/icons/seclore.svg delete mode 100644 dist/nodes/SecloreProtect/SecloreProtect.node.d.ts delete mode 100644 dist/nodes/SecloreProtect/SecloreProtect.node.js delete mode 100644 dist/nodes/SecloreProtect/SecloreProtect.node.js.map delete mode 100644 dist/nodes/SecloreProtect/SecloreProtect.node.json delete mode 100644 dist/nodes/SecloreProtect/Services/Interfaces/ErrorInterfaces.d.ts delete mode 100644 dist/nodes/SecloreProtect/Services/Interfaces/ErrorInterfaces.js delete mode 100644 dist/nodes/SecloreProtect/Services/Interfaces/ErrorInterfaces.js.map delete mode 100644 dist/nodes/SecloreProtect/Services/Interfaces/FileStorageInterfaces.d.ts delete mode 100644 dist/nodes/SecloreProtect/Services/Interfaces/FileStorageInterfaces.js delete mode 100644 dist/nodes/SecloreProtect/Services/Interfaces/FileStorageInterfaces.js.map delete mode 100644 dist/nodes/SecloreProtect/Services/Interfaces/LoginInterfaces.d.ts delete mode 100644 dist/nodes/SecloreProtect/Services/Interfaces/LoginInterfaces.js delete mode 100644 dist/nodes/SecloreProtect/Services/Interfaces/LoginInterfaces.js.map delete mode 100644 dist/nodes/SecloreProtect/Services/Interfaces/ProtectInterfaces.d.ts delete mode 100644 dist/nodes/SecloreProtect/Services/Interfaces/ProtectInterfaces.js delete mode 100644 dist/nodes/SecloreProtect/Services/Interfaces/ProtectInterfaces.js.map delete mode 100644 dist/nodes/SecloreProtect/Services/Interfaces/UnprotectInterfaces.d.ts delete mode 100644 dist/nodes/SecloreProtect/Services/Interfaces/UnprotectInterfaces.js delete mode 100644 dist/nodes/SecloreProtect/Services/Interfaces/UnprotectInterfaces.js.map delete mode 100644 dist/nodes/SecloreProtect/Services/SecloreDRMApiService.d.ts delete mode 100644 dist/nodes/SecloreProtect/Services/SecloreDRMApiService.js delete mode 100644 dist/nodes/SecloreProtect/Services/SecloreDRMApiService.js.map delete mode 100644 dist/nodes/SecloreProtect/Services/SecloreDRMFileService.d.ts delete mode 100644 dist/nodes/SecloreProtect/Services/SecloreDRMFileService.js delete mode 100644 dist/nodes/SecloreProtect/Services/SecloreDRMFileService.js.map delete mode 100644 dist/nodes/SecloreProtect/Services/Utils.d.ts delete mode 100644 dist/nodes/SecloreProtect/Services/Utils.js delete mode 100644 dist/nodes/SecloreProtect/Services/Utils.js.map delete mode 100644 dist/nodes/SecloreProtect/operations/protectWithHotFolder.d.ts delete mode 100644 dist/nodes/SecloreProtect/operations/protectWithHotFolder.js delete mode 100644 dist/nodes/SecloreProtect/operations/protectWithHotFolder.js.map delete mode 100644 dist/nodes/SecloreProtect/operations/unprotect.d.ts delete mode 100644 dist/nodes/SecloreProtect/operations/unprotect.js delete mode 100644 dist/nodes/SecloreProtect/operations/unprotect.js.map delete mode 100644 dist/package.json delete mode 100644 dist/tsconfig.tsbuildinfo diff --git a/.gitignore b/.gitignore index 1becb99..e813dcd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules package-lock.json .n8n -.devcontainer \ No newline at end of file +.devcontainer +dist \ No newline at end of file diff --git a/dist/credentials/SecloreProtectApi.credentials.d.ts b/dist/credentials/SecloreProtectApi.credentials.d.ts deleted file mode 100644 index 2c7cc89..0000000 --- a/dist/credentials/SecloreProtectApi.credentials.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { ICredentialTestRequest, ICredentialType, INodeProperties, Icon } from 'n8n-workflow'; -export declare class SecloreProtectApi implements ICredentialType { - name: string; - displayName: string; - documentationUrl: string; - icon: Icon; - properties: INodeProperties[]; - test: ICredentialTestRequest; -} diff --git a/dist/credentials/SecloreProtectApi.credentials.js b/dist/credentials/SecloreProtectApi.credentials.js deleted file mode 100644 index eff3ba8..0000000 --- a/dist/credentials/SecloreProtectApi.credentials.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SecloreProtectApi = void 0; -class SecloreProtectApi { - constructor() { - this.name = 'secloreProtectApi'; - this.displayName = 'Seclore API'; - this.documentationUrl = 'https://docs.seclore.com/'; - this.icon = 'file:../icons/seclore.svg'; - this.properties = [ - { - displayName: 'Base URL', - name: 'baseUrl', - type: 'string', - default: '', - placeholder: 'https://api.seclore.com', - description: 'The base URL of your Seclore DRM Server', - required: true, - }, - { - displayName: 'Tenant ID', - name: 'tenantId', - type: 'string', - default: '', - placeholder: 'your-tenant-id', - description: 'Your Seclore tenant ID', - required: true, - }, - { - displayName: 'Tenant Secret', - name: 'tenantSecret', - type: 'string', - typeOptions: { - password: true, - }, - default: '', - description: 'Your Seclore tenant secret', - required: true, - }, - ]; - this.test = { - request: { - baseURL: '={{$credentials.baseUrl}}', - url: '/seclore/drm/1.0/auth/login', - method: 'POST', - body: { - tenantId: '={{$credentials.tenantId}}', - tenantSecret: '={{$credentials.tenantSecret}}', - }, - headers: { - 'Content-Type': 'application/json', - }, - }, - }; - } -} -exports.SecloreProtectApi = SecloreProtectApi; -//# sourceMappingURL=SecloreProtectApi.credentials.js.map \ No newline at end of file diff --git a/dist/credentials/SecloreProtectApi.credentials.js.map b/dist/credentials/SecloreProtectApi.credentials.js.map deleted file mode 100644 index b29977b..0000000 --- a/dist/credentials/SecloreProtectApi.credentials.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SecloreProtectApi.credentials.js","sourceRoot":"","sources":["../../credentials/SecloreProtectApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,iBAAiB;IAA9B;QACC,SAAI,GAAG,mBAAmB,CAAC;QAC3B,gBAAW,GAAG,aAAa,CAAC;QAC5B,qBAAgB,GAAG,2BAA2B,CAAC;QAC/C,SAAI,GAAS,2BAA2B,CAAC;QACzC,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,yBAAyB;gBACtC,WAAW,EAAE,yCAAyC;gBACtD,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,gBAAgB;gBAC7B,WAAW,EAAE,wBAAwB;gBACrC,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,4BAA4B;gBACzC,QAAQ,EAAE,IAAI;aACd;SACD,CAAC;QAGF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,2BAA2B;gBACpC,GAAG,EAAE,6BAA6B;gBAClC,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE;oBACL,QAAQ,EAAE,4BAA4B;oBACtC,YAAY,EAAE,gCAAgC;iBAC9C;gBACD,OAAO,EAAE;oBACR,cAAc,EAAE,kBAAkB;iBAClC;aACD;SACD,CAAC;IACH,CAAC;CAAA;AApDD,8CAoDC"} \ No newline at end of file diff --git a/dist/icons/seclore.svg b/dist/icons/seclore.svg deleted file mode 100644 index 58541ba..0000000 --- a/dist/icons/seclore.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/SecloreProtect.node.d.ts b/dist/nodes/SecloreProtect/SecloreProtect.node.d.ts deleted file mode 100644 index e25f463..0000000 --- a/dist/nodes/SecloreProtect/SecloreProtect.node.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { INodeType, INodeTypeDescription } from 'n8n-workflow'; -import { protectWithHotFolder } from './operations/protectWithHotFolder'; -import { unprotect } from './operations/unprotect'; -export declare class SecloreProtect implements INodeType { - description: INodeTypeDescription; - customOperations: { - drmProtection: { - protectWithHotFolder: typeof protectWithHotFolder; - }; - drmUnprotection: { - unprotect: typeof unprotect; - }; - }; -} diff --git a/dist/nodes/SecloreProtect/SecloreProtect.node.js b/dist/nodes/SecloreProtect/SecloreProtect.node.js deleted file mode 100644 index 8e8daf9..0000000 --- a/dist/nodes/SecloreProtect/SecloreProtect.node.js +++ /dev/null @@ -1,170 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SecloreProtect = void 0; -const protectWithHotFolder_1 = require("./operations/protectWithHotFolder"); -const unprotect_1 = require("./operations/unprotect"); -class SecloreProtect { - constructor() { - this.description = { - displayName: 'Seclore', - name: 'secloreProtect', - icon: 'file:../../icons/seclore.svg', - usableAsTool: true, - group: ['transform'], - version: 1, - subtitle: '={{$parameter["resource"] + ": " + $parameter["operation"]}}', - description: 'Protect files using Seclore DRM', - defaults: { - name: 'Seclore', - }, - inputs: ['main'], - outputs: ['main'], - credentials: [ - { - name: 'secloreProtectApi', - required: true, - }, - ], - properties: [ - { - displayName: 'Resource', - name: 'resource', - type: 'options', - noDataExpression: true, - options: [ - { - name: 'DRM Protection', - value: 'drmProtection', - description: 'DRM file protection operations', - }, - { - name: 'DRM Unprotection', - value: 'drmUnprotection', - description: 'DRM file unprotection operations', - }, - ], - default: 'drmProtection', - }, - { - displayName: 'Operation', - name: 'operation', - type: 'options', - noDataExpression: true, - displayOptions: { - show: { - resource: ['drmProtection'], - }, - }, - options: [ - { - name: 'Protect Using Policy', - value: 'protectWithHotFolder', - description: 'Protect a file using HotFolder ID configuration', - action: 'Protect file using policy', - }, - ], - default: 'protectWithHotFolder', - }, - { - displayName: 'Operation', - name: 'operation', - type: 'options', - noDataExpression: true, - displayOptions: { - show: { - resource: ['drmUnprotection'], - }, - }, - options: [ - { - name: 'Unprotect', - value: 'unprotect', - description: 'Unprotect a protected file', - action: 'Unprotect file', - }, - ], - default: 'unprotect', - }, - { - displayName: 'HotFolder ID', - name: 'hotfolderId', - type: 'string', - required: true, - default: '', - placeholder: '', - description: 'The ID of the HotFolder configuration to use for protection', - displayOptions: { - show: { - resource: ['drmProtection'], - operation: ['protectWithHotFolder'], - }, - }, - }, - { - displayName: 'Input Binary Property', - name: 'binaryPropertyName', - type: 'string', - default: 'data', - required: true, - description: 'Name of the binary property that contains the file to protect', - displayOptions: { - show: { - resource: ['drmProtection'], - operation: ['protectWithHotFolder'], - }, - }, - }, - { - displayName: 'Retry Count', - name: 'retryCount', - type: 'number', - default: 3, - description: 'Number of retry attempts for failed requests', - displayOptions: { - show: { - resource: ['drmProtection'], - operation: ['protectWithHotFolder'], - }, - }, - }, - { - displayName: 'Input Binary Property', - name: 'binaryPropertyName', - type: 'string', - default: 'data', - required: true, - description: 'Name of the binary property that contains the protected file to unprotect', - displayOptions: { - show: { - resource: ['drmUnprotection'], - operation: ['unprotect'], - }, - }, - }, - { - displayName: 'Retry Count', - name: 'retryCount', - type: 'number', - default: 3, - description: 'Number of retry attempts for failed requests', - displayOptions: { - show: { - resource: ['drmUnprotection'], - operation: ['unprotect'], - }, - }, - }, - ], - }; - this.customOperations = { - drmProtection: { - protectWithHotFolder: protectWithHotFolder_1.protectWithHotFolder, - }, - drmUnprotection: { - unprotect: unprotect_1.unprotect, - }, - }; - } -} -exports.SecloreProtect = SecloreProtect; -//# sourceMappingURL=SecloreProtect.node.js.map \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/SecloreProtect.node.js.map b/dist/nodes/SecloreProtect/SecloreProtect.node.js.map deleted file mode 100644 index a696862..0000000 --- a/dist/nodes/SecloreProtect/SecloreProtect.node.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SecloreProtect.node.js","sourceRoot":"","sources":["../../../nodes/SecloreProtect/SecloreProtect.node.ts"],"names":[],"mappings":";;;AAKA,4EAAyE;AACzE,sDAAmD;AAEnD,MAAa,cAAc;IAA3B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,8BAA8B;YACpC,YAAY,EAAE,IAAI;YAClB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,iCAAiC;YAC9C,QAAQ,EAAE;gBACT,IAAI,EAAE,SAAS;aACf;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,mBAAmB;oBACzB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,gBAAgB;4BACtB,KAAK,EAAE,eAAe;4BACtB,WAAW,EAAE,gCAAgC;yBAC7C;wBACD;4BACC,IAAI,EAAE,kBAAkB;4BACxB,KAAK,EAAE,iBAAiB;4BACxB,WAAW,EAAE,kCAAkC;yBAC/C;qBACD;oBACD,OAAO,EAAE,eAAe;iBACxB;gBACD;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,QAAQ,EAAE,CAAC,eAAe,CAAC;yBAC3B;qBACD;oBACD,OAAO,EAAE;wBACR;4BACC,I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,OAAO,EAAE,CAAC;oBACV,WAAW,EAAE,8CAA8C;oBAC3D,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,QAAQ,EAAE,CAAC,eAAe,CAAC;4BAC3B,SAAS,EAAE,CAAC,sBAAsB,CAAC;yBACnC;qBACD;iBACD;gBAED;oBACC,WAAW,EAAE,uBAAuB;oBACpC,IAAI,EAAE,oBAAoB;oBAC1B,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,MAAM;oBACf,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,2EAA2E;oBACxF,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,QAAQ,EAAE,CAAC,iBAAiB,CAAC;4BAC7B,SAAS,EAAE,CAAC,WAAW,CAAC;yBACxB;qBACD;iBACD;gBACD;oBACC,WAAW,EAAE,aAAa;oBAC1B,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,CAAC;oBACV,WAAW,EAAE,8CAA8C;oBAC3D,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,QAAQ,EAAE,CAAC,iBAAiB,CAAC;4BAC7B,SAAS,EAAE,CAAC,WAAW,CAAC;yBACxB;qBACD;iBACD;aACD;SACD,CAAC;QAEF,qBAAgB,GAAG;YAClB,aAAa,EAAE;gBACd,oBAAoB,EAApB,2CAAoB;aACpB;YACD,eAAe,EAAE;gBAChB,SAAS,EAAT,qBAAS;aACT;SACD,CAAC;IAEH,CAAC;CAAA;AAnKD,wCAmKC"} \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/SecloreProtect.node.json b/dist/nodes/SecloreProtect/SecloreProtect.node.json deleted file mode 100644 index cc06129..0000000 --- a/dist/nodes/SecloreProtect/SecloreProtect.node.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "node": "dist/nodes/SecloreProtect/SecloreProtect.node.js", - "credentials": "dist/credentials/SecloreProtectApi.credentials.js" -} diff --git a/dist/nodes/SecloreProtect/Services/Interfaces/ErrorInterfaces.d.ts b/dist/nodes/SecloreProtect/Services/Interfaces/ErrorInterfaces.d.ts deleted file mode 100644 index ad87239..0000000 --- a/dist/nodes/SecloreProtect/Services/Interfaces/ErrorInterfaces.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface IErrorResponse { - errorCode: string; - errorMessage: string; -} diff --git a/dist/nodes/SecloreProtect/Services/Interfaces/ErrorInterfaces.js b/dist/nodes/SecloreProtect/Services/Interfaces/ErrorInterfaces.js deleted file mode 100644 index 3f2a6b0..0000000 --- a/dist/nodes/SecloreProtect/Services/Interfaces/ErrorInterfaces.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ErrorInterfaces.js.map \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/Services/Interfaces/ErrorInterfaces.js.map b/dist/nodes/SecloreProtect/Services/Interfaces/ErrorInterfaces.js.map deleted file mode 100644 index 7badfb7..0000000 --- a/dist/nodes/SecloreProtect/Services/Interfaces/ErrorInterfaces.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ErrorInterfaces.js","sourceRoot":"","sources":["../../../../../nodes/SecloreProtect/Services/Interfaces/ErrorInterfaces.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/Services/Interfaces/FileStorageInterfaces.d.ts b/dist/nodes/SecloreProtect/Services/Interfaces/FileStorageInterfaces.d.ts deleted file mode 100644 index 01e569f..0000000 --- a/dist/nodes/SecloreProtect/Services/Interfaces/FileStorageInterfaces.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -export interface IFileUploadResponse { - fileStorageId: string; - fileName: string; - downloadUrl: string; - fileType: string; - fileSize: number; - secloreFileId: string; - protected: boolean; - headers?: { - [key: string]: string; - }; -} -export interface IFileDownloadResponse { - data: Uint8Array; - headers?: { - [key: string]: string; - }; -} -export interface IFileDeleteResponse { - headers?: { - [key: string]: string; - }; -} diff --git a/dist/nodes/SecloreProtect/Services/Interfaces/FileStorageInterfaces.js b/dist/nodes/SecloreProtect/Services/Interfaces/FileStorageInterfaces.js deleted file mode 100644 index a56dfbd..0000000 --- a/dist/nodes/SecloreProtect/Services/Interfaces/FileStorageInterfaces.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=FileStorageInterfaces.js.map \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/Services/Interfaces/FileStorageInterfaces.js.map b/dist/nodes/SecloreProtect/Services/Interfaces/FileStorageInterfaces.js.map deleted file mode 100644 index ce0d35c..0000000 --- a/dist/nodes/SecloreProtect/Services/Interfaces/FileStorageInterfaces.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FileStorageInterfaces.js","sourceRoot":"","sources":["../../../../../nodes/SecloreProtect/Services/Interfaces/FileStorageInterfaces.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/Services/Interfaces/LoginInterfaces.d.ts b/dist/nodes/SecloreProtect/Services/Interfaces/LoginInterfaces.d.ts deleted file mode 100644 index 2935af1..0000000 --- a/dist/nodes/SecloreProtect/Services/Interfaces/LoginInterfaces.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export interface ILoginRequest { - tenantId: string; - tenantSecret: string; -} -export interface ILoginResponse { - accessToken: string; - refreshToken: string; - headers?: { - [key: string]: string; - }; -} -export interface IRefreshTokenRequest { - refreshToken: string; -} diff --git a/dist/nodes/SecloreProtect/Services/Interfaces/LoginInterfaces.js b/dist/nodes/SecloreProtect/Services/Interfaces/LoginInterfaces.js deleted file mode 100644 index 4739a48..0000000 --- a/dist/nodes/SecloreProtect/Services/Interfaces/LoginInterfaces.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=LoginInterfaces.js.map \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/Services/Interfaces/LoginInterfaces.js.map b/dist/nodes/SecloreProtect/Services/Interfaces/LoginInterfaces.js.map deleted file mode 100644 index 10b15b4..0000000 --- a/dist/nodes/SecloreProtect/Services/Interfaces/LoginInterfaces.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoginInterfaces.js","sourceRoot":"","sources":["../../../../../nodes/SecloreProtect/Services/Interfaces/LoginInterfaces.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/Services/Interfaces/ProtectInterfaces.d.ts b/dist/nodes/SecloreProtect/Services/Interfaces/ProtectInterfaces.d.ts deleted file mode 100644 index 361f06f..0000000 --- a/dist/nodes/SecloreProtect/Services/Interfaces/ProtectInterfaces.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -export interface IExtRefProtectionDetail { - externalReferenceId: string; - externalReferenceName?: string; - externalReferenceData?: string; - externalAppId?: string; -} -export interface IProtectWithExternalRefIdRequest { - hotfolderExternalReference: IExtRefProtectionDetail; - fileExternalReference?: IExtRefProtectionDetail; - fileStorageId: string; -} -export interface IProtectWithExternalRefIdResponse { - fileStorageId: string; - secloreFileId: string; - headers?: { - [key: string]: string; - }; -} -export interface IProtectWithFileIdRequest { - existingProtectedFileId: string; - fileStorageId: string; -} -export interface IProtectWithFileIdResponse { - fileStorageId: string; - secloreFileId: string; - headers?: { - [key: string]: string; - }; -} -export interface IProtectWithHotFolderRequest { - hotfolderId: string; - fileStorageId: string; -} -export interface IProtectWithHotFolderResponse { - fileStorageId: string; - secloreFileId: string; - headers?: { - [key: string]: string; - }; -} diff --git a/dist/nodes/SecloreProtect/Services/Interfaces/ProtectInterfaces.js b/dist/nodes/SecloreProtect/Services/Interfaces/ProtectInterfaces.js deleted file mode 100644 index a39b18c..0000000 --- a/dist/nodes/SecloreProtect/Services/Interfaces/ProtectInterfaces.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ProtectInterfaces.js.map \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/Services/Interfaces/ProtectInterfaces.js.map b/dist/nodes/SecloreProtect/Services/Interfaces/ProtectInterfaces.js.map deleted file mode 100644 index eb049fd..0000000 --- a/dist/nodes/SecloreProtect/Services/Interfaces/ProtectInterfaces.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProtectInterfaces.js","sourceRoot":"","sources":["../../../../../nodes/SecloreProtect/Services/Interfaces/ProtectInterfaces.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/Services/Interfaces/UnprotectInterfaces.d.ts b/dist/nodes/SecloreProtect/Services/Interfaces/UnprotectInterfaces.d.ts deleted file mode 100644 index dadba85..0000000 --- a/dist/nodes/SecloreProtect/Services/Interfaces/UnprotectInterfaces.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export interface IUnprotectRequest { - fileStorageId: string; -} -export interface IUnprotectResponse { - fileStorageId: string; - headers?: { - [key: string]: string; - }; -} diff --git a/dist/nodes/SecloreProtect/Services/Interfaces/UnprotectInterfaces.js b/dist/nodes/SecloreProtect/Services/Interfaces/UnprotectInterfaces.js deleted file mode 100644 index ce55de6..0000000 --- a/dist/nodes/SecloreProtect/Services/Interfaces/UnprotectInterfaces.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=UnprotectInterfaces.js.map \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/Services/Interfaces/UnprotectInterfaces.js.map b/dist/nodes/SecloreProtect/Services/Interfaces/UnprotectInterfaces.js.map deleted file mode 100644 index 63c69c6..0000000 --- a/dist/nodes/SecloreProtect/Services/Interfaces/UnprotectInterfaces.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UnprotectInterfaces.js","sourceRoot":"","sources":["../../../../../nodes/SecloreProtect/Services/Interfaces/UnprotectInterfaces.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/Services/SecloreDRMApiService.d.ts b/dist/nodes/SecloreProtect/Services/SecloreDRMApiService.d.ts deleted file mode 100644 index f05394a..0000000 --- a/dist/nodes/SecloreProtect/Services/SecloreDRMApiService.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { IExecuteFunctions } from 'n8n-workflow'; -import { IFileUploadResponse, IFileDownloadResponse, IFileDeleteResponse } from './Interfaces/FileStorageInterfaces'; -import { ILoginResponse } from './Interfaces/LoginInterfaces'; -import { IProtectWithExternalRefIdRequest, IProtectWithExternalRefIdResponse, IProtectWithFileIdRequest, IProtectWithFileIdResponse, IProtectWithHotFolderRequest, IProtectWithHotFolderResponse } from './Interfaces/ProtectInterfaces'; -import { IUnprotectRequest, IUnprotectResponse } from './Interfaces/UnprotectInterfaces'; -export declare class SecloreDRMApiService { - private context; - private baseUrl; - constructor(context: IExecuteFunctions, baseUrl: string); - private handleHttpError; - login(tenantId: string, tenantSecret: string, correlationId?: string): Promise; - refreshToken(refreshToken: string, correlationId?: string): Promise; - protectWithExternalRefId(protectRequest: IProtectWithExternalRefIdRequest, accessToken: string, correlationId?: string): Promise; - protectWithFileId(protectRequest: IProtectWithFileIdRequest, accessToken: string, correlationId?: string): Promise; - protectWithHotFolder(protectRequest: IProtectWithHotFolderRequest, accessToken: string, correlationId?: string): Promise; - unprotect(unprotectRequest: IUnprotectRequest, accessToken: string, correlationId?: string): Promise; - uploadFile(fileBuffer: Uint8Array, fileName: string, accessToken: string, correlationId?: string): Promise; - downloadFile(fileStorageId: string, accessToken: string, correlationId?: string): Promise; - deleteFile(fileStorageId: string, accessToken: string, correlationId?: string): Promise; -} diff --git a/dist/nodes/SecloreProtect/Services/SecloreDRMApiService.js b/dist/nodes/SecloreProtect/Services/SecloreDRMApiService.js deleted file mode 100644 index b2c83c6..0000000 --- a/dist/nodes/SecloreProtect/Services/SecloreDRMApiService.js +++ /dev/null @@ -1,403 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SecloreDRMApiService = void 0; -const n8n_workflow_1 = require("n8n-workflow"); -class SecloreDRMApiService { - constructor(context, baseUrl) { - this.context = context; - this.baseUrl = baseUrl; - } - handleHttpError(error, customMessages) { - var _a; - const statusCode = parseInt((_a = error.httpCode) !== null && _a !== void 0 ? _a : '0'); - const errorResponse = error.errorResponse; - if (customMessages && customMessages[statusCode]) { - throw new Error(`${customMessages[statusCode]}: ${(errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.errorMessage) || 'Unknown error'}`); - } - switch (statusCode) { - case 400: - throw new Error(`Bad Request: ${(errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.errorMessage) || 'Invalid request data'}`); - case 401: - throw new Error(`Unauthorized: ${(errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.errorMessage) || 'Invalid credentials'}`); - case 413: - throw new Error(`Payload Too Large: ${(errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.errorMessage) || 'File size exceeds limit'}`); - case 500: - throw new Error(`Server Error: ${(errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.errorMessage) || 'Internal server error'}`); - default: - throw error; - } - } - async login(tenantId, tenantSecret, correlationId) { - const who = "SecloreDRMApiService::login:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Attempting login', { tenantId, correlationId }); - const requestBody = { - tenantId, - tenantSecret, - }; - const headers = { - 'Content-Type': 'application/json', - }; - if (correlationId) { - headers['X-SECLORE-CORRELATION-ID'] = correlationId; - } - const options = { - method: 'POST', - url: `${this.baseUrl}/seclore/drm/1.0/auth/login`, - headers, - body: requestBody, - json: true, - }; - n8n_workflow_1.LoggerProxy.debug(who + 'Making HTTP request', { url: options.url, method: options.method, correlationId }); - const response = await this.context.helpers.httpRequest({ ...options, returnFullResponse: true }); - n8n_workflow_1.LoggerProxy.debug(who + 'Login successful', { tenantId, correlationId }); - const loginResponse = { - ...response.body, - headers: response.headers - }; - return loginResponse; - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Login failed', { error, tenantId, correlationId }); - this.handleHttpError(error); - } - } - async refreshToken(refreshToken, correlationId) { - const who = "SecloreDRMApiService::refreshToken:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Attempting token refresh', { correlationId }); - const requestBody = { - refreshToken, - }; - const headers = { - 'Content-Type': 'application/json', - }; - if (correlationId) { - headers['X-SECLORE-CORRELATION-ID'] = correlationId; - } - const options = { - method: 'POST', - url: `${this.baseUrl}/seclore/drm/1.0/auth/refresh`, - headers, - body: requestBody, - json: true, - }; - n8n_workflow_1.LoggerProxy.debug(who + 'Making HTTP request', { url: options.url, method: options.method, correlationId }); - const response = await this.context.helpers.httpRequest({ ...options, returnFullResponse: true }); - n8n_workflow_1.LoggerProxy.debug(who + 'Token refresh successful', { correlationId }); - const refreshResponse = { - ...response.body, - headers: response.headers - }; - return refreshResponse; - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Token refresh failed', { error, correlationId }); - this.handleHttpError(error, { 401: 'Unauthorized' }); - } - } - async protectWithExternalRefId(protectRequest, accessToken, correlationId) { - const who = "SecloreDRMApiService::protectWithExternalRefId:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Protecting file with external ref ID', { - fileStorageId: protectRequest.fileStorageId, - hotfolderExternalReferenceId: protectRequest.hotfolderExternalReference.externalReferenceId, - correlationId - }); - const headers = { - 'Content-Type': 'application/json', - Authorization: `Bearer ${accessToken}`, - }; - if (correlationId) { - headers['X-SECLORE-CORRELATION-ID'] = correlationId; - } - const options = { - method: 'POST', - url: `${this.baseUrl}/seclore/drm/1.0/protect/externalref`, - headers, - body: protectRequest, - json: true, - }; - n8n_workflow_1.LoggerProxy.debug(who + 'Making HTTP request', { url: options.url, method: options.method, correlationId }); - const response = await this.context.helpers.httpRequest({ ...options, returnFullResponse: true }); - n8n_workflow_1.LoggerProxy.debug(who + 'Protection with external ref ID successful', { - fileStorageId: protectRequest.fileStorageId, - secloreFileId: response.body.secloreFileId, - correlationId - }); - const protectResponse = { - ...response.body, - headers: response.headers - }; - return protectResponse; - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Protection with external ref ID failed', { - error, - fileStorageId: protectRequest.fileStorageId, - correlationId - }); - this.handleHttpError(error); - } - } - async protectWithFileId(protectRequest, accessToken, correlationId) { - const who = "SecloreDRMApiService::protectWithFileId:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Protecting file with file ID', { - existingProtectedFileId: protectRequest.existingProtectedFileId, - fileStorageId: protectRequest.fileStorageId, - correlationId - }); - const headers = { - 'Content-Type': 'application/json', - Authorization: `Bearer ${accessToken}`, - }; - if (correlationId) { - headers['X-SECLORE-CORRELATION-ID'] = correlationId; - } - const options = { - method: 'POST', - url: `${this.baseUrl}/seclore/drm/1.0/protect/fileid`, - headers, - body: protectRequest, - json: true, - }; - n8n_workflow_1.LoggerProxy.debug(who + 'Making HTTP request', { url: options.url, method: options.method, correlationId }); - const response = await this.context.helpers.httpRequest({ ...options, returnFullResponse: true }); - n8n_workflow_1.LoggerProxy.debug(who + 'Protection with file ID successful', { - existingProtectedFileId: protectRequest.existingProtectedFileId, - secloreFileId: response.body.secloreFileId, - correlationId - }); - const protectResponse = { - ...response.body, - headers: response.headers - }; - return protectResponse; - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Protection with file ID failed', { - error, - existingProtectedFileId: protectRequest.existingProtectedFileId, - correlationId - }); - this.handleHttpError(error); - } - } - async protectWithHotFolder(protectRequest, accessToken, correlationId) { - const who = "SecloreDRMApiService::protectWithHotFolder:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Protecting file with hot folder', { - hotfolderId: protectRequest.hotfolderId, - fileStorageId: protectRequest.fileStorageId, - correlationId - }); - const headers = { - 'Content-Type': 'application/json', - Authorization: `Bearer ${accessToken}`, - }; - if (correlationId) { - headers['X-SECLORE-CORRELATION-ID'] = correlationId; - } - const options = { - method: 'POST', - url: `${this.baseUrl}/seclore/drm/1.0/protect/hf`, - headers, - body: protectRequest, - json: true, - }; - n8n_workflow_1.LoggerProxy.debug(who + 'Making HTTP request', { url: options.url, method: options.method, correlationId }); - const response = await this.context.helpers.httpRequest({ ...options, returnFullResponse: true }); - n8n_workflow_1.LoggerProxy.debug(who + 'Protection with hot folder successful', { - hotfolderId: protectRequest.hotfolderId, - secloreFileId: response.body.secloreFileId, - correlationId - }); - const protectResponse = { - ...response.body, - headers: response.headers - }; - return protectResponse; - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Protection with hot folder failed', { - error, - hotfolderId: protectRequest.hotfolderId, - fileStorageId: protectRequest.fileStorageId, - correlationId - }); - this.handleHttpError(error); - } - } - async unprotect(unprotectRequest, accessToken, correlationId) { - const who = "SecloreDRMApiService::unprotect:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Unprotecting file', { - fileStorageId: unprotectRequest.fileStorageId, - correlationId - }); - const headers = { - 'Content-Type': 'application/json', - Authorization: `Bearer ${accessToken}`, - }; - if (correlationId) { - headers['X-SECLORE-CORRELATION-ID'] = correlationId; - } - const options = { - method: 'POST', - url: `${this.baseUrl}/seclore/drm/1.0/unprotect`, - headers, - body: unprotectRequest, - json: true, - }; - n8n_workflow_1.LoggerProxy.debug(who + 'Making HTTP request', { url: options.url, method: options.method, correlationId }); - const response = await this.context.helpers.httpRequest({ ...options, returnFullResponse: true }); - n8n_workflow_1.LoggerProxy.debug(who + 'Unprotection successful', { - originalFileStorageId: unprotectRequest.fileStorageId, - unprotectedFileStorageId: response.body.fileStorageId, - correlationId - }); - const unprotectResponse = { - ...response.body, - headers: response.headers - }; - return unprotectResponse; - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Unprotection failed', { - error, - fileStorageId: unprotectRequest.fileStorageId, - correlationId - }); - this.handleHttpError(error); - } - } - async uploadFile(fileBuffer, fileName, accessToken, correlationId) { - const who = "SecloreDRMApiService::uploadFile:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Uploading file', { - fileName, - fileSize: fileBuffer.length, - correlationId - }); - const headers = { - Authorization: `Bearer ${accessToken}`, - }; - if (correlationId) { - headers['X-SECLORE-CORRELATION-ID'] = correlationId; - } - const formData = new FormData(); - const file = new Blob([fileBuffer], { type: 'application/octet-stream' }); - formData.append('file', file, fileName); - const options = { - method: 'POST', - url: `${this.baseUrl}/seclore/drm/filestorage/1.0/upload`, - headers, - body: formData, - }; - n8n_workflow_1.LoggerProxy.debug(who + 'Making HTTP request', { url: options.url, method: options.method, fileName, correlationId }); - const response = await this.context.helpers.httpRequest({ ...options, returnFullResponse: true }); - n8n_workflow_1.LoggerProxy.debug(who + 'File upload successful', { - fileName, - fileStorageId: response.body.fileStorageId, - correlationId - }); - const uploadResponse = { - ...response.body, - headers: response.headers - }; - return uploadResponse; - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'File upload failed', { - error, - fileName, - fileSize: fileBuffer.length, - correlationId - }); - this.handleHttpError(error); - } - } - async downloadFile(fileStorageId, accessToken, correlationId) { - const who = "SecloreDRMApiService::downloadFile:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Downloading file', { - fileStorageId, - correlationId - }); - const headers = { - Authorization: `Bearer ${accessToken}`, - }; - if (correlationId) { - headers['X-SECLORE-CORRELATION-ID'] = correlationId; - } - const options = { - method: 'GET', - url: `${this.baseUrl}/seclore/drm/filestorage/1.0/download/${fileStorageId}`, - headers, - encoding: 'arraybuffer', - }; - n8n_workflow_1.LoggerProxy.debug(who + 'Making HTTP request', { url: options.url, method: options.method, fileStorageId, correlationId }); - const response = await this.context.helpers.httpRequest({ ...options, returnFullResponse: true }); - const fileData = new Uint8Array(response.body); - n8n_workflow_1.LoggerProxy.debug(who + 'File download successful', { - fileStorageId, - fileSize: fileData.length, - correlationId - }); - const downloadResponse = { - data: fileData, - headers: response.headers - }; - return downloadResponse; - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'File download failed', { - error, - fileStorageId, - correlationId - }); - this.handleHttpError(error); - } - } - async deleteFile(fileStorageId, accessToken, correlationId) { - const who = "SecloreDRMApiService::deleteFile:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Deleting file', { - fileStorageId, - correlationId - }); - const headers = { - Authorization: `Bearer ${accessToken}`, - }; - if (correlationId) { - headers['X-SECLORE-CORRELATION-ID'] = correlationId; - } - const options = { - method: 'DELETE', - url: `${this.baseUrl}/seclore/drm/filestorage/1.0/${fileStorageId}`, - headers, - }; - n8n_workflow_1.LoggerProxy.debug(who + 'Making HTTP request', { url: options.url, method: options.method, fileStorageId, correlationId }); - const response = await this.context.helpers.httpRequest({ ...options, returnFullResponse: true }); - n8n_workflow_1.LoggerProxy.debug(who + 'File deletion successful', { - fileStorageId, - correlationId - }); - const deleteResponse = { - headers: response.headers - }; - return deleteResponse; - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'File deletion failed', { - error, - fileStorageId, - correlationId - }); - this.handleHttpError(error); - } - } -} -exports.SecloreDRMApiService = SecloreDRMApiService; -//# sourceMappingURL=SecloreDRMApiService.js.map \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/Services/SecloreDRMApiService.js.map b/dist/nodes/SecloreProtect/Services/SecloreDRMApiService.js.map deleted file mode 100644 index 2729388..0000000 --- a/dist/nodes/SecloreProtect/Services/SecloreDRMApiService.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SecloreDRMApiService.js","sourceRoot":"","sources":["../../../../nodes/SecloreProtect/Services/SecloreDRMApiService.ts"],"names":[],"mappings":";;;AAAA,+CAA2G;AAc3G,MAAa,oBAAoB;IAChC,YACS,OAA0B,EAC1B,OAAe;QADf,YAAO,GAAP,OAAO,CAAmB;QAC1B,YAAO,GAAP,OAAO,CAAQ;IACpB,CAAC;IAOG,eAAe,CACtB,KAAmB,EACnB,cAAiD;;QAEjD,MAAM,UAAU,GAAW,QAAQ,CAAC,MAAA,KAAK,CAAC,QAAQ,mCAAI,GAAG,CAAC,CAAC;QAC3D,MAAM,aAAa,GAAG,KAAK,CAAC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E,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC,CAAC;YACtH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,GAAG,OAAO,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,CAAC;YAClG,0BAAM,CAAC,KAAK,CAAC,GAAG,GAAG,0BAA0B,EAAE;gBAC9C,aAAa;gBACb,aAAa;aACb,CAAC,CAAC;YAEH,MAAM,cAAc,GAAwB;gBAC3C,OAAO,EAAE,QAAQ,CAAC,OAAoC;aACtD,CAAC;YAEF,OAAO,cAAc,CAAC;QACvB,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACzB,0BAAM,CAAC,KAAK,CAAC,GAAG,GAAG,sBAAsB,EAAE;gBAC1C,KAAK;gBACL,aAAa;gBACb,aAAa;aACb,CAAC,CAAC;YACH,IAAI,CAAC,eAAe,CAAC,KAAqB,CAAC,CAAC;QAC7C,CAAC;IACF,CAAC;CACD;AAnlBD,oDAmlBC"} \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/Services/SecloreDRMFileService.d.ts b/dist/nodes/SecloreProtect/Services/SecloreDRMFileService.d.ts deleted file mode 100644 index 0319147..0000000 --- a/dist/nodes/SecloreProtect/Services/SecloreDRMFileService.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { IExecuteFunctions } from 'n8n-workflow'; -import { IFileDownloadResponse, IFileUploadResponse } from './Interfaces/FileStorageInterfaces'; -import { IProtectWithExternalRefIdRequest, IProtectWithExternalRefIdResponse, IProtectWithFileIdRequest, IProtectWithFileIdResponse, IProtectWithHotFolderRequest, IProtectWithHotFolderResponse } from './Interfaces/ProtectInterfaces'; -import { IUnprotectRequest, IUnprotectResponse } from './Interfaces/UnprotectInterfaces'; -export declare class SecloreDRMFileService { - private defaultRetryCount; - private apiService; - private tenantId; - private tenantSecret; - private accessToken?; - private refreshToken?; - private tokenExpiry?; - private refreshPromise?; - private loginPromise?; - constructor(context: IExecuteFunctions, baseUrl: string, tenantId: string, tenantSecret: string, defaultRetryCount?: number); - private ensureAuthenticated; - private login; - private refreshAccessToken; - private performTokenRefresh; - private clearTokens; - private executeWithRetry; - protectWithExternalRefId(protectRequest: IProtectWithExternalRefIdRequest, correlationId?: string, retryCount?: number): Promise; - protectWithFileId(protectRequest: IProtectWithFileIdRequest, correlationId?: string, retryCount?: number): Promise; - protectWithHotFolder(protectRequest: IProtectWithHotFolderRequest, correlationId?: string, retryCount?: number): Promise; - unprotect(unprotectRequest: IUnprotectRequest, correlationId?: string, retryCount?: number): Promise; - uploadFile(fileBuffer: Uint8Array, fileName: string, correlationId?: string, retryCount?: number): Promise; - downloadFile(fileStorageId: string, correlationId?: string, retryCount?: number): Promise; - deleteFile(fileStorageId: string, correlationId?: string, retryCount?: number): Promise; - getAccessToken(): string | undefined; - isAuthenticated(): boolean; -} diff --git a/dist/nodes/SecloreProtect/Services/SecloreDRMFileService.js b/dist/nodes/SecloreProtect/Services/SecloreDRMFileService.js deleted file mode 100644 index fe3959f..0000000 --- a/dist/nodes/SecloreProtect/Services/SecloreDRMFileService.js +++ /dev/null @@ -1,217 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SecloreDRMFileService = void 0; -const n8n_workflow_1 = require("n8n-workflow"); -const SecloreDRMApiService_1 = require("./SecloreDRMApiService"); -class SecloreDRMFileService { - constructor(context, baseUrl, tenantId, tenantSecret, defaultRetryCount = 3) { - this.defaultRetryCount = defaultRetryCount; - this.apiService = new SecloreDRMApiService_1.SecloreDRMApiService(context, baseUrl); - this.tenantId = tenantId; - this.tenantSecret = tenantSecret; - } - async ensureAuthenticated(correlationId) { - if (!this.accessToken || (this.tokenExpiry && new Date() >= this.tokenExpiry)) { - if (this.loginPromise) { - await this.loginPromise; - return; - } - this.loginPromise = this.login(correlationId); - try { - await this.loginPromise; - } - finally { - this.loginPromise = undefined; - } - } - } - async login(correlationId) { - const who = "SecloreDRMFileService::login:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Attempting login', { tenantId: this.tenantId, correlationId }); - const loginResponse = await this.apiService.login(this.tenantId, this.tenantSecret, correlationId); - this.accessToken = loginResponse.accessToken; - this.refreshToken = loginResponse.refreshToken; - this.tokenExpiry = new Date(Date.now() + 50 * 60 * 1000); - n8n_workflow_1.LoggerProxy.info(who + 'Login successful', { tenantId: this.tenantId, correlationId }); - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Login failed', { error, tenantId: this.tenantId, correlationId }); - this.clearTokens(); - throw error; - } - } - async refreshAccessToken(correlationId) { - if (this.refreshPromise) { - await this.refreshPromise; - return; - } - if (!this.refreshToken) { - throw new Error('No refresh token available'); - } - this.refreshPromise = this.performTokenRefresh(correlationId); - try { - await this.refreshPromise; - } - finally { - this.refreshPromise = undefined; - } - } - async performTokenRefresh(correlationId) { - const who = "SecloreDRMFileService::performTokenRefresh:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Attempting token refresh', { correlationId }); - const refreshResponse = await this.apiService.refreshToken(this.refreshToken, correlationId); - this.accessToken = refreshResponse.accessToken; - this.refreshToken = refreshResponse.refreshToken; - this.tokenExpiry = new Date(Date.now() + 50 * 60 * 1000); - n8n_workflow_1.LoggerProxy.info(who + 'Token refresh successful', { correlationId }); - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Token refresh failed', { error, correlationId }); - this.clearTokens(); - throw error; - } - } - clearTokens() { - this.accessToken = undefined; - this.refreshToken = undefined; - this.tokenExpiry = undefined; - this.refreshPromise = undefined; - this.loginPromise = undefined; - } - async executeWithRetry(apiCall, retryCount = this.defaultRetryCount, correlationId) { - let lastError; - for (let attempt = 0; attempt <= retryCount; attempt++) { - try { - await this.ensureAuthenticated(correlationId); - if (!this.accessToken) { - throw new Error('Failed to obtain access token'); - } - return await apiCall(this.accessToken); - } - catch (error) { - lastError = error; - if (error.message.includes('Unauthorized') && attempt < retryCount) { - try { - await this.refreshAccessToken(correlationId); - continue; - } - catch (refreshError) { - n8n_workflow_1.LoggerProxy.error('SecloreDRMFileService::executeWithRetry:: Token refresh failed', { refreshError, correlationId }); - this.clearTokens(); - } - } - if (attempt === retryCount) { - throw lastError; - } - await new Promise((resolve) => { - const delay = Math.pow(2, attempt) * 1000; - const start = Date.now(); - while (Date.now() - start < delay) { - } - resolve(undefined); - }); - } - } - throw lastError; - } - async protectWithExternalRefId(protectRequest, correlationId, retryCount) { - const who = "SecloreDRMFileService::protectWithExternalRefId:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Protecting file with external ref ID', { fileStorageId: protectRequest.fileStorageId, hotfolderExternalReferenceId: protectRequest.hotfolderExternalReference.externalReferenceId, correlationId }); - const result = await this.executeWithRetry((accessToken) => this.apiService.protectWithExternalRefId(protectRequest, accessToken, correlationId), retryCount, correlationId); - n8n_workflow_1.LoggerProxy.info(who + 'File protected with external ref ID successfully', { fileStorageId: protectRequest.fileStorageId, secloreFileId: result.secloreFileId, correlationId }); - return result; - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Protect with external ref ID failed', { error, fileStorageId: protectRequest.fileStorageId, correlationId }); - throw error; - } - } - async protectWithFileId(protectRequest, correlationId, retryCount) { - const who = "SecloreDRMFileService::protectWithFileId:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Protecting file with file ID', { existingProtectedFileId: protectRequest.existingProtectedFileId, fileStorageId: protectRequest.fileStorageId, correlationId }); - const result = await this.executeWithRetry((accessToken) => this.apiService.protectWithFileId(protectRequest, accessToken, correlationId), retryCount, correlationId); - n8n_workflow_1.LoggerProxy.info(who + 'File protected with file ID successfully', { existingProtectedFileId: protectRequest.existingProtectedFileId, secloreFileId: result.secloreFileId, correlationId }); - return result; - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Protect with file ID failed', { error, existingProtectedFileId: protectRequest.existingProtectedFileId, correlationId }); - throw error; - } - } - async protectWithHotFolder(protectRequest, correlationId, retryCount) { - const who = "SecloreDRMFileService::protectWithHotFolder:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Protecting file with hot folder', { hotfolderId: protectRequest.hotfolderId, fileStorageId: protectRequest.fileStorageId, correlationId }); - const result = await this.executeWithRetry((accessToken) => this.apiService.protectWithHotFolder(protectRequest, accessToken, correlationId), retryCount, correlationId); - n8n_workflow_1.LoggerProxy.info(who + 'File protected with hot folder successfully', { hotfolderId: protectRequest.hotfolderId, fileStorageId: protectRequest.fileStorageId, secloreFileId: result.secloreFileId, correlationId }); - return result; - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Protect with hot folder failed', { error, hotfolderId: protectRequest.hotfolderId, fileStorageId: protectRequest.fileStorageId, correlationId }); - throw error; - } - } - async unprotect(unprotectRequest, correlationId, retryCount) { - const who = "SecloreDRMFileService::unprotect:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Unprotecting file', { fileStorageId: unprotectRequest.fileStorageId, correlationId }); - const result = await this.executeWithRetry((accessToken) => this.apiService.unprotect(unprotectRequest, accessToken, correlationId), retryCount, correlationId); - n8n_workflow_1.LoggerProxy.info(who + 'File unprotected successfully', { originalFileStorageId: unprotectRequest.fileStorageId, unprotectedFileStorageId: result.fileStorageId, correlationId }); - return result; - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Unprotect file failed', { error, fileStorageId: unprotectRequest.fileStorageId, correlationId }); - throw error; - } - } - async uploadFile(fileBuffer, fileName, correlationId, retryCount) { - const who = "SecloreDRMFileService::uploadFile:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Uploading file', { fileName, correlationId }); - const result = await this.executeWithRetry((accessToken) => this.apiService.uploadFile(fileBuffer, fileName, accessToken, correlationId), retryCount, correlationId); - n8n_workflow_1.LoggerProxy.info(who + 'File uploaded successfully', { fileName, correlationId }); - return result; - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Upload file failed', { error, fileName, correlationId }); - throw error; - } - } - async downloadFile(fileStorageId, correlationId, retryCount) { - const who = "SecloreDRMFileService::downloadFile:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Downloading file', { fileStorageId, correlationId }); - const result = await this.executeWithRetry((accessToken) => this.apiService.downloadFile(fileStorageId, accessToken, correlationId), retryCount, correlationId); - n8n_workflow_1.LoggerProxy.info(who + 'File downloaded successfully', { fileStorageId, fileSize: result.data.length, correlationId }); - return result; - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Download file failed', { error, fileStorageId, correlationId }); - throw error; - } - } - async deleteFile(fileStorageId, correlationId, retryCount) { - const who = "SecloreDRMFileService::deleteFile:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Deleting file', { fileStorageId, correlationId }); - await this.executeWithRetry((accessToken) => this.apiService.deleteFile(fileStorageId, accessToken, correlationId), retryCount, correlationId); - n8n_workflow_1.LoggerProxy.info(who + 'File deleted successfully', { fileStorageId, correlationId }); - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Delete file failed', { error, fileStorageId, correlationId }); - throw error; - } - } - getAccessToken() { - return this.accessToken; - } - isAuthenticated() { - return !!this.accessToken && (!this.tokenExpiry || new Date() < this.tokenExpiry); - } -} -exports.SecloreDRMFileService = SecloreDRMFileService; -//# sourceMappingURL=SecloreDRMFileService.js.map \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/Services/SecloreDRMFileService.js.map b/dist/nodes/SecloreProtect/Services/SecloreDRMFileService.js.map deleted file mode 100644 index 8c9f7d6..0000000 --- a/dist/nodes/SecloreProtect/Services/SecloreDRMFileService.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SecloreDRMFileService.js","sourceRoot":"","sources":["../../../../nodes/SecloreProtect/Services/SecloreDRMFileService.ts"],"names":[],"mappings":";;;AAAA,+CAAwE;AAWxE,iEAA8D;AAE9D,MAAa,qBAAqB;IAUjC,YACC,OAA0B,EAC1B,OAAe,EACf,QAAgB,EAChB,YAAoB,EACZ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CAAC;IAKD,KAAK,CAAC,UAAU,CACf,aAAqB,EACrB,aAAsB,EACtB,UAAmB;QAEnB,MAAM,GAAG,GAAG,sCAAsC,CAAC;QACnD,IAAI,CAAC;YACJ,0BAAM,CAAC,KAAK,CAAC,GAAG,GAAG,eAAe,EAAE,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC,CAAC;YACtE,MAAM,IAAI,CAAC,gBAAgB,CAC1B,CAAC,WAAW,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,aAAa,EAAE,WAAW,EAAE,aAAa,CAAC,EACtF,UAAU,EACV,aAAa,CACb,CAAC;YACF,0BAAM,CAAC,IAAI,CAAC,GAAG,GAAG,2BAA2B,EAAE,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC,CAAC;QAClF,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,0BAAM,CAAC,KAAK,CAAC,GAAG,GAAG,oBAAoB,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC,CAAC;YAClF,MAAM,KAAK,CAAC;QACb,CAAC;IACF,CAAC;IAKD,cAAc;QACb,OAAO,IAAI,CAAC,WAAW,CAAC;IACzB,CAAC;IAKD,eAAe;QACd,OAAO,CAAC,CAAC,IAAI,CAAC,WAAW,IAAI,CAAC,CAAC,IAAI,CAAC,WAAW,IAAI,IAAI,IAAI,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;IACnF,CAAC;CACD;AAtXD,sDAsXC"} \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/Services/Utils.d.ts b/dist/nodes/SecloreProtect/Services/Utils.d.ts deleted file mode 100644 index d58f0bc..0000000 --- a/dist/nodes/SecloreProtect/Services/Utils.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare function getFileNameFromHeaders(headers?: { - [key: string]: string; -}): string | null; diff --git a/dist/nodes/SecloreProtect/Services/Utils.js b/dist/nodes/SecloreProtect/Services/Utils.js deleted file mode 100644 index 7c677b1..0000000 --- a/dist/nodes/SecloreProtect/Services/Utils.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getFileNameFromHeaders = getFileNameFromHeaders; -const n8n_workflow_1 = require("n8n-workflow"); -function getFileNameFromHeaders(headers) { - const who = "Utils::getFileNameFromHeaders:: "; - if (!headers) { - n8n_workflow_1.LoggerProxy.debug(who + 'No headers provided'); - return null; - } - const contentDisposition = Object.keys(headers).find(key => key.toLowerCase() === 'content-disposition'); - if (!contentDisposition || !headers[contentDisposition]) { - n8n_workflow_1.LoggerProxy.debug(who + 'Content-Disposition header not found'); - return null; - } - const headerValue = headers[contentDisposition]; - n8n_workflow_1.LoggerProxy.debug(who + 'Found Content-Disposition header', { headerValue }); - const utf8Match = headerValue.match(/filename\*=UTF-8''([^;]+)/i); - if (utf8Match) { - try { - const decodedFilename = decodeURIComponent(utf8Match[1]); - n8n_workflow_1.LoggerProxy.debug(who + 'Extracted filename from UTF-8 format', { filename: decodedFilename }); - return decodedFilename; - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Failed to decode UTF-8 filename', { error, encodedFilename: utf8Match[1] }); - } - } - const quotedMatch = headerValue.match(/filename="([^"]+)"/i); - if (quotedMatch) { - n8n_workflow_1.LoggerProxy.debug(who + 'Extracted filename from quoted format', { filename: quotedMatch[1] }); - return quotedMatch[1]; - } - const unquotedMatch = headerValue.match(/filename=([^;]+)/i); - if (unquotedMatch) { - const filename = unquotedMatch[1].trim(); - n8n_workflow_1.LoggerProxy.debug(who + 'Extracted filename from unquoted format', { filename }); - return filename; - } - n8n_workflow_1.LoggerProxy.debug(who + 'Could not extract filename from Content-Disposition header', { headerValue }); - return null; -} -//# sourceMappingURL=Utils.js.map \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/Services/Utils.js.map b/dist/nodes/SecloreProtect/Services/Utils.js.map deleted file mode 100644 index 012e207..0000000 --- a/dist/nodes/SecloreProtect/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AG,GAAG,iCAAiC,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACjG,CAAC;IACF,CAAC;IAGD,MAAM,WAAW,GAAG,WAAW,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAC7D,IAAI,WAAW,EAAE,CAAC;QACjB,0BAAM,CAAC,KAAK,CAAC,GAAG,GAAG,uCAAuC,EAAE,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAC1F,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;IACvB,CAAC;IAGD,MAAM,aAAa,GAAG,WAAW,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAC7D,IAAI,aAAa,EAAE,CAAC;QACnB,MAAM,QAAQ,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACzC,0BAAM,CAAC,KAAK,CAAC,GAAG,GAAG,yCAAyC,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;QAC5E,OAAO,QAAQ,CAAC;IACjB,CAAC;IAED,0BAAM,CAAC,KAAK,CAAC,GAAG,GAAG,4DAA4D,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC;IAClG,OAAO,IAAI,CAAC;AACb,CAAC"} \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/operations/protectWithHotFolder.d.ts b/dist/nodes/SecloreProtect/operations/protectWithHotFolder.d.ts deleted file mode 100644 index 4b75b24..0000000 --- a/dist/nodes/SecloreProtect/operations/protectWithHotFolder.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { IExecuteFunctions, NodeOutput } from 'n8n-workflow'; -export declare function protectWithHotFolder(this: IExecuteFunctions): Promise; diff --git a/dist/nodes/SecloreProtect/operations/protectWithHotFolder.js b/dist/nodes/SecloreProtect/operations/protectWithHotFolder.js deleted file mode 100644 index 6275309..0000000 --- a/dist/nodes/SecloreProtect/operations/protectWithHotFolder.js +++ /dev/null @@ -1,205 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.protectWithHotFolder = protectWithHotFolder; -const n8n_workflow_1 = require("n8n-workflow"); -const node_crypto_1 = __importDefault(require("node:crypto")); -const SecloreDRMFileService_1 = require("../Services/SecloreDRMFileService"); -const Utils_1 = require("../Services/Utils"); -async function deleteFile(fileService, fileStorageId, correlationId, retryCount = 3) { - const who = "protectWithHotFolder::deleteFile:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Attempting to delete file', { fileStorageId, correlationId, retryCount }); - await fileService.deleteFile(fileStorageId, correlationId, retryCount); - n8n_workflow_1.LoggerProxy.debug(who + 'File deleted successfully', { fileStorageId, correlationId }); - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'File deletion failed, continuing operation', { - error, - fileStorageId, - correlationId, - message: 'This is a cleanup operation, continuing despite deletion failure' - }); - } -} -async function protectFileWithHotFolder(fileService, fileBuffer, fileName, hotfolderId, correlationId, retryCount = 3) { - const who = "protectWithHotFolder::protectFileWithHotFolder:: "; - let originalFileStorageId = ''; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Starting protect file with hot folder operation', { fileName, fileSize: fileBuffer.length, hotfolderId, correlationId, retryCount }); - n8n_workflow_1.LoggerProxy.debug(who + 'Uploading file', { fileName, fileSize: fileBuffer.length, correlationId }); - const uploadResult = await fileService.uploadFile(new Uint8Array(fileBuffer), fileName, correlationId, retryCount); - n8n_workflow_1.LoggerProxy.debug(who + 'File uploaded successfully', { fileStorageId: uploadResult.fileStorageId, fileName, correlationId }); - if (uploadResult.protected) { - throw new Error('File is already protected'); - } - originalFileStorageId = uploadResult.fileStorageId; - n8n_workflow_1.LoggerProxy.debug(who + 'Protecting file with hot folder', { fileStorageId: uploadResult.fileStorageId, hotfolderId, fileName, correlationId }); - const protectResult = await fileService.protectWithHotFolder({ - hotfolderId, - fileStorageId: uploadResult.fileStorageId, - }, correlationId, retryCount); - n8n_workflow_1.LoggerProxy.debug(who + 'File protected successfully', { - originalFileStorageId: uploadResult.fileStorageId, - protectedFileStorageId: protectResult.fileStorageId, - secloreFileId: protectResult.secloreFileId, - hotfolderId, - fileName, - correlationId - }); - n8n_workflow_1.LoggerProxy.debug(who + 'Downloading protected file', { fileStorageId: protectResult.fileStorageId, fileName, correlationId }); - const protectedFileData = await fileService.downloadFile(protectResult.fileStorageId, correlationId, retryCount); - const actualFileName = (0, Utils_1.getFileNameFromHeaders)(protectedFileData.headers) || fileName; - n8n_workflow_1.LoggerProxy.debug(who + 'Protected file downloaded successfully', { - fileStorageId: protectResult.fileStorageId, - fileSize: protectedFileData.data.length, - originalFileName: fileName, - actualFileName, - correlationId - }); - const result = { - protectedFileData: protectedFileData.data, - originalFileStorageId: uploadResult.fileStorageId, - protectedFileStorageId: protectResult.fileStorageId, - secloreFileId: protectResult.secloreFileId, - fileName: actualFileName, - fileSize: protectedFileData.data.length, - }; - n8n_workflow_1.LoggerProxy.debug(who + 'Protect file with hot folder operation completed successfully', { - fileName: result.fileName, - originalFileStorageId: result.originalFileStorageId, - protectedFileStorageId: result.protectedFileStorageId, - secloreFileId: result.secloreFileId, - fileSize: result.fileSize, - hotfolderId, - correlationId - }); - return result; - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Protect file with hot folder operation failed', { error, fileName, hotfolderId, correlationId }); - throw error; - } - finally { - if (originalFileStorageId !== '') { - await deleteFile(fileService, originalFileStorageId, correlationId, retryCount); - } - } -} -async function protectWithHotFolder() { - const who = "protectWithHotFolder::protectWithHotFolder:: "; - const items = this.getInputData(); - const returnData = []; - n8n_workflow_1.LoggerProxy.init(this.logger); - n8n_workflow_1.LoggerProxy.debug(who + 'Seclore Protect with HotFolder operation started', { itemCount: items.length }); - n8n_workflow_1.LoggerProxy.debug(who + 'Getting credentials', {}); - const credentials = await this.getCredentials('secloreProtectApi'); - const baseUrl = credentials.baseUrl; - const tenantId = credentials.tenantId; - const tenantSecret = credentials.tenantSecret; - n8n_workflow_1.LoggerProxy.debug(who + 'Initializing file service', { baseUrl, tenantId }); - const fileService = new SecloreDRMFileService_1.SecloreDRMFileService(this, baseUrl, tenantId, tenantSecret); - for (let i = 0; i < items.length; i++) { - n8n_workflow_1.LoggerProxy.debug(who + 'Processing item', { itemIndex: i }); - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Getting node parameters', { itemIndex: i }); - const hotfolderId = this.getNodeParameter('hotfolderId', i); - const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i); - const correlationId = node_crypto_1.default.randomUUID(); - const retryCount = this.getNodeParameter('retryCount', i); - if (!hotfolderId) { - throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'HotFolder ID is required', { - itemIndex: i, - }); - } - n8n_workflow_1.LoggerProxy.debug(who + 'Asserting binary data', { binaryPropertyName, itemIndex: i }); - const binaryData = this.helpers.assertBinaryData(i, binaryPropertyName); - n8n_workflow_1.LoggerProxy.debug(who + 'Getting binary data buffer', { binaryPropertyName, itemIndex: i }); - const fileBuffer = await this.helpers.getBinaryDataBuffer(i, binaryPropertyName); - n8n_workflow_1.LoggerProxy.debug(who + 'Binary data retrieved', { - fileName: binaryData.fileName, - fileSize: fileBuffer.length, - mimeType: binaryData.mimeType, - itemIndex: i, - correlationId, - retryCount - }); - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Starting protect file with hot folder operation', { - fileName: binaryData.fileName, - hotfolderId, - correlationId, - retryCount, - itemIndex: i - }); - const result = await protectFileWithHotFolder(fileService, fileBuffer, binaryData.fileName || 'file', hotfolderId, correlationId, retryCount); - n8n_workflow_1.LoggerProxy.debug(who + 'Protect file with hot folder operation completed successfully', { - fileName: result.fileName, - originalFileStorageId: result.originalFileStorageId, - protectedFileStorageId: result.protectedFileStorageId, - secloreFileId: result.secloreFileId, - fileSize: result.fileSize, - hotfolderId, - itemIndex: i, - correlationId - }); - n8n_workflow_1.LoggerProxy.debug(who + 'Preparing binary data for output', { - fileName: result.fileName, - mimeType: binaryData.mimeType, - fileSize: result.fileSize, - itemIndex: i - }); - const outputBinaryData = await this.helpers.prepareBinaryData(Buffer.from(result.protectedFileData), result.fileName, binaryData.mimeType); - const returnItem = { - json: { - success: true, - originalFileStorageId: result.originalFileStorageId, - protectedFileStorageId: result.protectedFileStorageId, - secloreFileId: result.secloreFileId, - hotfolderId, - fileName: result.fileName, - fileSize: result.fileSize, - correlationId: correlationId, - }, - binary: { - data: outputBinaryData, - }, - }; - n8n_workflow_1.LoggerProxy.debug(who + 'Adding result to return data', { itemIndex: i, success: true }); - returnData.push(returnItem); - } - catch (protectError) { - n8n_workflow_1.LoggerProxy.error(who + 'Protect file with hot folder operation failed', { protectError, itemIndex: i }); - throw protectError; - } - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Item processing failed', { error, itemIndex: i }); - if (this.continueOnFail()) { - n8n_workflow_1.LoggerProxy.debug(who + 'Continuing on fail, adding error item', { itemIndex: i, errorMessage: error.message }); - const returnItem = { - json: { - success: false, - error: error.message, - itemIndex: i, - }, - }; - returnData.push(returnItem); - } - else { - n8n_workflow_1.LoggerProxy.error(who + 'Throwing NodeOperationError', { error: error.message, itemIndex: i }); - throw new n8n_workflow_1.NodeOperationError(this.getNode(), error.message, { - itemIndex: i, - }); - } - } - } - n8n_workflow_1.LoggerProxy.debug(who + 'Seclore Protect with HotFolder operation completed', { - processedItems: returnData.length, - successfulItems: returnData.filter(item => item.json.success).length - }); - return [returnData]; -} -//# sourceMappingURL=protectWithHotFolder.js.map \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/operations/protectWithHotFolder.js.map b/dist/nodes/SecloreProtect/operations/protectWithHotFolder.js.map deleted file mode 100644 index ac250c7..0000000 --- a/dist/nodes/SecloreProtect/operations/protectWithHotFolder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"protectWithHotFolder.js","sourceRoot":"","sources":["../../../../nodes/Sec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AC,OAAO,EAAE;oBAC3D,SAAS,EAAE,CAAC;iBACZ,CAAC,CAAC;YACJ,CAAC;QACF,CAAC;IACF,CAAC;IAED,0BAAM,CAAC,KAAK,CAAC,GAAG,GAAG,oDAAoD,EAAE;QACxE,cAAc,EAAE,UAAU,CAAC,MAAM;QACjC,eAAe,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM;KACpE,CAAC,CAAC;IAEH,OAAO,CAAC,UAAU,CAAC,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/operations/unprotect.d.ts b/dist/nodes/SecloreProtect/operations/unprotect.d.ts deleted file mode 100644 index a46e5f7..0000000 --- a/dist/nodes/SecloreProtect/operations/unprotect.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { IExecuteFunctions, NodeOutput } from 'n8n-workflow'; -export declare function unprotect(this: IExecuteFunctions): Promise; diff --git a/dist/nodes/SecloreProtect/operations/unprotect.js b/dist/nodes/SecloreProtect/operations/unprotect.js deleted file mode 100644 index 794cf75..0000000 --- a/dist/nodes/SecloreProtect/operations/unprotect.js +++ /dev/null @@ -1,195 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.unprotect = unprotect; -const n8n_workflow_1 = require("n8n-workflow"); -const node_crypto_1 = __importDefault(require("node:crypto")); -const SecloreDRMFileService_1 = require("../Services/SecloreDRMFileService"); -const Utils_1 = require("../Services/Utils"); -async function deleteFile(fileService, fileStorageId, correlationId, retryCount = 3) { - const who = "unprotect::deleteFileWithErrorHandling:: "; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Attempting to delete file', { fileStorageId, correlationId, retryCount }); - await fileService.deleteFile(fileStorageId, correlationId, retryCount); - n8n_workflow_1.LoggerProxy.debug(who + 'File deleted successfully', { fileStorageId, correlationId }); - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'File deletion failed, continuing operation', { - error, - fileStorageId, - correlationId, - message: 'This is a cleanup operation, continuing despite deletion failure' - }); - } -} -async function unprotectFile(fileService, fileBuffer, fileName, correlationId, retryCount = 3) { - const who = "unprotect::unprotectFile:: "; - let originalFileStorageId = ''; - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Starting unprotect file operation', { fileName, fileSize: fileBuffer.length, correlationId, retryCount }); - n8n_workflow_1.LoggerProxy.debug(who + 'Uploading protected file', { fileName, fileSize: fileBuffer.length, correlationId }); - const uploadResult = await fileService.uploadFile(new Uint8Array(fileBuffer), fileName, correlationId, retryCount); - n8n_workflow_1.LoggerProxy.debug(who + 'File uploaded successfully', { fileStorageId: uploadResult.fileStorageId, fileName, correlationId }); - originalFileStorageId = uploadResult.fileStorageId; - if (!uploadResult.protected) { - n8n_workflow_1.LoggerProxy.debug(who + 'File is already unprotected', { fileStorageId: uploadResult.fileStorageId, fileName, correlationId }); - return { - unprotectedFileData: fileBuffer, - originalFileStorageId: uploadResult.fileStorageId, - unprotectedFileStorageId: uploadResult.fileStorageId, - fileName, - fileSize: fileBuffer.length, - }; - } - n8n_workflow_1.LoggerProxy.debug(who + 'Unprotecting file', { fileStorageId: uploadResult.fileStorageId, fileName, correlationId }); - const unprotectResult = await fileService.unprotect({ - fileStorageId: uploadResult.fileStorageId, - }, correlationId, retryCount); - n8n_workflow_1.LoggerProxy.debug(who + 'File unprotected successfully', { - originalFileStorageId: uploadResult.fileStorageId, - unprotectedFileStorageId: unprotectResult.fileStorageId, - fileName, - correlationId - }); - n8n_workflow_1.LoggerProxy.debug(who + 'Downloading unprotected file', { fileStorageId: unprotectResult.fileStorageId, fileName, correlationId }); - const unprotectedFileData = await fileService.downloadFile(unprotectResult.fileStorageId, correlationId, retryCount); - const actualFileName = (0, Utils_1.getFileNameFromHeaders)(unprotectedFileData.headers) || fileName; - n8n_workflow_1.LoggerProxy.debug(who + 'Unprotected file downloaded successfully', { - fileStorageId: unprotectResult.fileStorageId, - fileSize: unprotectedFileData.data.length, - originalFileName: fileName, - actualFileName: actualFileName, - correlationId - }); - const result = { - unprotectedFileData: unprotectedFileData.data, - originalFileStorageId: uploadResult.fileStorageId, - unprotectedFileStorageId: unprotectResult.fileStorageId, - fileName: actualFileName, - fileSize: unprotectedFileData.data.length, - }; - n8n_workflow_1.LoggerProxy.debug(who + 'Unprotect file operation completed successfully', { - fileName: result.fileName, - originalFileStorageId: result.originalFileStorageId, - unprotectedFileStorageId: result.unprotectedFileStorageId, - fileSize: result.fileSize, - correlationId - }); - return result; - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Unprotect file operation failed', { error, fileName, correlationId }); - throw error; - } - finally { - if (originalFileStorageId !== '') { - await deleteFile(fileService, originalFileStorageId, correlationId, retryCount); - } - } -} -async function unprotect() { - const who = "unprotect::unprotect:: "; - const items = this.getInputData(); - const returnData = []; - n8n_workflow_1.LoggerProxy.init(this.logger); - n8n_workflow_1.LoggerProxy.debug(who + 'Seclore Unprotect operation started', { itemCount: items.length }); - n8n_workflow_1.LoggerProxy.debug(who + 'Getting credentials', {}); - const credentials = await this.getCredentials('secloreProtectApi'); - const baseUrl = credentials.baseUrl; - const tenantId = credentials.tenantId; - const tenantSecret = credentials.tenantSecret; - n8n_workflow_1.LoggerProxy.debug(who + 'Initializing file service', { baseUrl, tenantId }); - const fileService = new SecloreDRMFileService_1.SecloreDRMFileService(this, baseUrl, tenantId, tenantSecret); - for (let i = 0; i < items.length; i++) { - n8n_workflow_1.LoggerProxy.debug(who + 'Processing item', { itemIndex: i }); - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Getting node parameters', { itemIndex: i }); - const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i); - const correlationId = node_crypto_1.default.randomUUID(); - const retryCount = this.getNodeParameter('retryCount', i); - n8n_workflow_1.LoggerProxy.debug(who + 'Asserting binary data', { binaryPropertyName, itemIndex: i }); - const binaryData = this.helpers.assertBinaryData(i, binaryPropertyName); - n8n_workflow_1.LoggerProxy.debug(who + 'Getting binary data buffer', { binaryPropertyName, itemIndex: i }); - const fileBuffer = await this.helpers.getBinaryDataBuffer(i, binaryPropertyName); - n8n_workflow_1.LoggerProxy.debug(who + 'Binary data retrieved', { - fileName: binaryData.fileName, - fileSize: fileBuffer.length, - mimeType: binaryData.mimeType, - itemIndex: i, - correlationId, - retryCount - }); - try { - n8n_workflow_1.LoggerProxy.debug(who + 'Starting unprotect file operation', { - fileName: binaryData.fileName, - correlationId, - retryCount, - itemIndex: i - }); - const result = await unprotectFile(fileService, fileBuffer, binaryData.fileName || 'protected_file', correlationId, retryCount); - n8n_workflow_1.LoggerProxy.debug(who + 'Unprotect file operation completed successfully', { - fileName: result.fileName, - originalFileStorageId: result.originalFileStorageId, - unprotectedFileStorageId: result.unprotectedFileStorageId, - fileSize: result.fileSize, - itemIndex: i, - correlationId - }); - n8n_workflow_1.LoggerProxy.debug(who + 'Preparing binary data for output', { - fileName: binaryData.fileName, - mimeType: binaryData.mimeType, - fileSize: result.fileSize, - itemIndex: i - }); - const outputBinaryData = await this.helpers.prepareBinaryData(Buffer.from(result.unprotectedFileData), result.fileName, binaryData.mimeType); - const returnItem = { - json: { - success: true, - originalFileStorageId: result.originalFileStorageId, - unprotectedFileStorageId: result.unprotectedFileStorageId, - fileName: result.fileName, - fileSize: result.fileSize, - correlationId: correlationId, - }, - binary: { - data: outputBinaryData, - }, - }; - n8n_workflow_1.LoggerProxy.debug(who + 'Adding result to return data', { itemIndex: i, success: true }); - returnData.push(returnItem); - } - catch (unprotectError) { - n8n_workflow_1.LoggerProxy.error(who + 'Unprotect file operation failed', { unprotectError, itemIndex: i }); - throw unprotectError; - } - } - catch (error) { - n8n_workflow_1.LoggerProxy.error(who + 'Item processing failed', { error, itemIndex: i }); - if (this.continueOnFail()) { - n8n_workflow_1.LoggerProxy.debug(who + 'Continuing on fail, adding error item', { itemIndex: i, errorMessage: error.message }); - const returnItem = { - json: { - success: false, - error: error.message, - itemIndex: i, - }, - }; - returnData.push(returnItem); - } - else { - n8n_workflow_1.LoggerProxy.error(who + 'Throwing NodeOperationError', { error: error.message, itemIndex: i }); - throw new n8n_workflow_1.NodeOperationError(this.getNode(), error.message, { - itemIndex: i, - }); - } - } - } - n8n_workflow_1.LoggerProxy.debug(who + 'Seclore Unprotect operation completed', { - processedItems: returnData.length, - successfulItems: returnData.filter(item => item.json.success).length - }); - return [returnData]; -} -//# sourceMappingURL=unprotect.js.map \ No newline at end of file diff --git a/dist/nodes/SecloreProtect/operations/unprotect.js.map b/dist/nodes/SecloreProtect/operations/unprotect.js.map deleted file mode 100644 index b7282dc..0000000 --- a/dist/nodes/SecloreProtect/operations/unprotect.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"unprotect.js","sourceRoot":"","sources":["../../../../nodes/SecloreProtect/operations/unprotect.ts"],"names":[],"mappings":";;;;;AAiKA,8BAwIC;AAzSD,+CAMsB;AACtB,8DAAiC;AACjC,6EAA0E;AAC1E,6CAA2D;AAS3D,KAAK,UAAU,UAAU,CACxB,WAAkC,EAClC,aAAqB,EACrB,aAAsB,EACtB,aAAqB,CAAC;IAEtB,MAAM,GAAG,GAAG,2CAA2C,CAAC;IACxD,IAAI,CAAC;QACJ,0BAAM,CAAC,KAAK,CAAC,GAAG,GAAG,2BAA2B,EAAE,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC,CAAC;QAE9F,MAAM,WAAW,CAAC,UAAU,CAC3B,aAAa,EACb,aAAa,EACb,UAAU,CACV,CAAC;QAEF,0BAAM,CAAC,KAAK,CAAC,GAAG,GAAG,2BAA2B,EAAE,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC,CAAC;IACnF,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAEhB,0BAAM,CAAC,KAAK,CAAC,GAAG,GAAG,4CAA4C,EAAE;YAChE,KAAK;YACL,aAAa;YACb,aAAa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,IAAI,CAAC,UAAU,CAAC,CAAC;YAC7B,CAAC;iBAAM,CAAC;gBACP,0BAAM,CAAC,KAAK,CAAC,GAAG,GAAG,6BAA6B,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;gBAC1F,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC,OAAO,EAAE;oBAC3D,SAAS,EAAE,CAAC;iBACZ,CAAC,CAAC;YACJ,CAAC;QACF,CAAC;IACF,CAAC;IAED,0BAAM,CAAC,KAAK,CAAC,GAAG,GAAG,uCAAuC,EAAE;QAC3D,cAAc,EAAE,UAAU,CAAC,MAAM;QACjC,eAAe,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM;KACpE,CAAC,CAAC;IAEH,OAAO,CAAC,UAAU,CAAC,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/dist/package.json b/dist/package.json deleted file mode 100644 index 64d9a28..0000000 --- a/dist/package.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "@seclore/n8n-nodes-seclore", - "version": "0.1.0", - "description": "n8n community node for Seclore Protect - secure file protection using DRM technology", - "license": "MIT", - "homepage": "", - "keywords": [ - "n8n-community-node-package" - ], - "author": { - "name": "Seclore Technology", - "email": "support@seclore.com" - }, - "repository": { - "type": "git", - "url": "https://repo.seclore.com/public/n8n-nodes-seclore.git" - }, - "scripts": { - "build": "n8n-node build", - "build:watch": "tsc --watch", - "dev": "n8n-node dev", - "lint": "n8n-node lint", - "lint:fix": "n8n-node lint --fix", - "release": "n8n-node release", - "prepublishOnly": "n8n-node prerelease" - }, - "files": [ - "dist" - ], - "n8n": { - "n8nNodesApiVersion": 1, - "strict": true, - "credentials": [ - "dist/credentials/SecloreProtectApi.credentials.js" - ], - "nodes": [ - "dist/nodes/SecloreProtect/SecloreProtect.node.js" - ] - }, - "devDependencies": { - "@n8n/node-cli": "*", - "@types/node": "^24.9.1", - "eslint": "9.32.0", - "prettier": "3.6.2", - "release-it": "^19.0.4", - "typescript": "5.9.2" - }, - "peerDependencies": { - "n8n-workflow": "*" - } -} diff --git a/dist/tsconfig.tsbuildinfo b/dist/tsconfig.tsbuildinfo deleted file mode 100644 index 749d306..0000000 --- a/dist/tsconfig.tsbuildinfo +++ /dev/null @@ -1 +0,0 @@ -{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../node_modules/typescript/lib/lib.esnext.float16.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/@types/node/globals.typedarray.d.ts","../node_modules/@types/node/buffer.buffer.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/web-globals/abortcontroller.d.ts","../node_modules/@types/node/web-globals/crypto.d.ts","../node_modules/@types/node/web-globals/domexception.d.ts","../node_modules/@types/node/web-globals/events.d.ts","../node_modules/undici-types/utility.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client-stats.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/h2c-client.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-call-history.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/snapshot-agent.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/undici-types/retry-handler.d.ts","../node_modules/undici-types/retry-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/cache-interceptor.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/util.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/eventsource.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/web-globals/fetch.d.ts","../node_modules/@types/node/web-globals/navigator.d.ts","../node_modules/@types/node/web-globals/storage.d.ts","../node_modules/@types/node/web-globals/streams.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/inspector.generated.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/sea.d.ts","../node_modules/@types/node/sqlite.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/form-data/index.d.ts","../node_modules/n8n-workflow/dist/esm/constants.d.ts","../node_modules/n8n-workflow/dist/esm/data-table.types.d.ts","../node_modules/n8n-workflow/dist/esm/deferred-promise.d.ts","../node_modules/@n8n/errors/dist/types.d.ts","../node_modules/@n8n/errors/dist/application.error.d.ts","../node_modules/@n8n/errors/dist/index.d.ts","../node_modules/n8n-workflow/dist/esm/errors/base/base.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/base/operational.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/base/unexpected.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/base/user.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/abstract/execution-base.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/expression.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/execution-cancelled.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/abstract/node.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/node-api.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/node-operation.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/workflow-configuration.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/node-ssl.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/workflow-activation.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/webhook-taken.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/workflow-deactivation.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/workflow-operation.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/subworkflow-operation.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/cli-subworkflow-operation.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/trigger-close.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/expression-extension.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/db-connection-timeout-error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/ensure-error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/index.d.ts","../node_modules/n8n-workflow/dist/esm/execution-status.d.ts","../node_modules/n8n-workflow/dist/esm/result.d.ts","../node_modules/n8n-workflow/dist/esm/expression.d.ts","../node_modules/n8n-workflow/dist/esm/workflow.d.ts","../node_modules/n8n-workflow/dist/esm/workflow-data-proxy-env-provider.d.ts","../node_modules/n8n-workflow/dist/esm/interfaces.d.ts","../node_modules/n8n-workflow/dist/esm/logger-proxy.d.ts","../node_modules/n8n-workflow/dist/esm/node-helpers.d.ts","../node_modules/n8n-workflow/dist/esm/observable-object.d.ts","../node_modules/n8n-workflow/dist/esm/telemetry-helpers.d.ts","../node_modules/n8n-workflow/dist/esm/common/get-child-nodes.d.ts","../node_modules/n8n-workflow/dist/esm/common/get-connected-nodes.d.ts","../node_modules/n8n-workflow/dist/esm/common/get-node-by-name.d.ts","../node_modules/n8n-workflow/dist/esm/common/get-parent-nodes.d.ts","../node_modules/n8n-workflow/dist/esm/common/map-connections-by-destination.d.ts","../node_modules/n8n-workflow/dist/esm/common/index.d.ts","../node_modules/n8n-workflow/dist/esm/cron.d.ts","../node_modules/n8n-workflow/dist/esm/global-state.d.ts","../node_modules/n8n-workflow/dist/esm/message-event-bus.d.ts","../node_modules/n8n-workflow/dist/esm/expressions/expression-helpers.d.ts","../node_modules/zod/dist/types/v3/helpers/typealiases.d.ts","../node_modules/zod/dist/types/v3/helpers/util.d.ts","../node_modules/zod/dist/types/v3/zoderror.d.ts","../node_modules/zod/dist/types/v3/locales/en.d.ts","../node_modules/zod/dist/types/v3/errors.d.ts","../node_modules/zod/dist/types/v3/helpers/parseutil.d.ts","../node_modules/zod/dist/types/v3/helpers/enumutil.d.ts","../node_modules/zod/dist/types/v3/helpers/errorutil.d.ts","../node_modules/zod/dist/types/v3/helpers/partialutil.d.ts","../node_modules/zod/dist/types/v3/standard-schema.d.ts","../node_modules/zod/dist/types/v3/types.d.ts","../node_modules/zod/dist/types/v3/external.d.ts","../node_modules/zod/dist/types/v3/index.d.ts","../node_modules/zod/dist/types/index.d.ts","../node_modules/n8n-workflow/dist/esm/from-ai-parse-utils.d.ts","../node_modules/n8n-workflow/dist/esm/tool-helpers.d.ts","../node_modules/n8n-workflow/dist/esm/node-reference-parser-utils.d.ts","../node_modules/n8n-workflow/dist/esm/metadata-utils.d.ts","../node_modules/n8n-workflow/dist/esm/workflow-data-proxy.d.ts","../node_modules/n8n-workflow/dist/esm/versioned-node-type.d.ts","../node_modules/n8n-workflow/dist/esm/type-validation.d.ts","../node_modules/n8n-workflow/dist/esm/utils.d.ts","../node_modules/n8n-workflow/dist/esm/type-guards.d.ts","../node_modules/n8n-workflow/dist/esm/graph/graph-utils.d.ts","../node_modules/n8n-workflow/dist/esm/extensions/extensions.d.ts","../node_modules/n8n-workflow/dist/esm/extensions/expression-extension.d.ts","../node_modules/n8n-workflow/dist/esm/extensions/index.d.ts","../node_modules/n8n-workflow/dist/esm/extensions/expression-parser.d.ts","../node_modules/n8n-workflow/dist/esm/native-methods/index.d.ts","../node_modules/n8n-workflow/dist/esm/node-parameters/filter-parameter.d.ts","../node_modules/n8n-workflow/dist/esm/node-parameters/parameter-type-validation.d.ts","../node_modules/n8n-workflow/dist/esm/node-parameters/path-utils.d.ts","../node_modules/n8n-workflow/dist/esm/evaluation-helpers.d.ts","../node_modules/n8n-workflow/dist/esm/index.d.ts","../credentials/secloreprotectapi.credentials.ts","../nodes/secloreprotect/services/interfaces/filestorageinterfaces.ts","../nodes/secloreprotect/services/interfaces/protectinterfaces.ts","../nodes/secloreprotect/services/interfaces/unprotectinterfaces.ts","../nodes/secloreprotect/services/interfaces/errorinterfaces.ts","../nodes/secloreprotect/services/interfaces/logininterfaces.ts","../nodes/secloreprotect/services/secloredrmapiservice.ts","../nodes/secloreprotect/services/secloredrmfileservice.ts","../nodes/secloreprotect/services/utils.ts","../nodes/secloreprotect/operations/protectwithhotfolder.ts","../nodes/secloreprotect/operations/unprotect.ts","../nodes/secloreprotect/secloreprotect.node.ts","../nodes/secloreprotect/secloreprotect.node.json","../package.json"],"fileIdsList":[[52,106,123,124,240],[52,106,123,124,161],[52,106,123,124,161,162],[52,106,123,124],[52,103,104,106,123,124],[52,105,106,123,124],[106,123,124],[52,106,111,123,124,141],[52,106,107,112,117,123,124,126,138,149],[52,106,107,108,117,123,124,126],[52,106,109,123,124,150],[52,106,110,111,118,123,124,127],[52,106,111,123,124,138,146],[52,106,112,114,117,123,124,126],[52,105,106,113,123,124],[52,106,114,115,123,124],[52,106,116,117,123,124],[52,105,106,117,123,124],[52,106,117,118,119,123,124,138,149],[52,106,117,118,119,123,124,133,138,141],[52,98,106,114,117,120,123,124,126,138,149,240],[52,106,117,118,120,121,123,124,126,138,146,149],[52,106,120,122,123,124,138,146,149],[50,51,52,53,54,55,56,57,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155],[52,106,117,123,124],[52,106,123,124,125,149],[52,106,114,117,123,124,126,138],[52,106,123,124,127],[52,106,123,124,128],[52,105,106,123,124,129],[52,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,240],[52,106,123,124,131],[52,106,123,124,132],[52,106,117,123,124,133,134],[52,106,123,124,133,135,150,152],[52,106,118,123,124],[52,106,117,123,124,138,139,141],[52,106,123,124,140,141],[52,106,123,124,138,139],[52,106,123,124,141],[52,106,123,124,142],[52,103,106,123,124,138,143],[52,106,117,123,124,144,145],[52,106,123,124,144,145],[52,106,111,123,124,126,138,146],[52,106,123,124,147],[52,106,123,124,126,148],[52,106,120,123,124,132,149],[52,106,111,123,124,150],[52,106,123,124,138,151],[52,106,123,124,125,152],[52,106,123,124,153],[52,106,111,123,124],[52,98,106,123,124],[52,106,123,124,154],[52,98,106,117,119,123,124,129,138,141,149,151,152,154],[52,106,123,124,138,155],[52,106,120,123,124,138,156,240],[52,106,123,124,192],[52,106,123,124,197,198,199,200,201],[52,106,123,124,163,192],[52,106,123,124,168,192],[52,106,123,124,163],[52,106,123,124,164],[52,106,123,124,180],[52,106,123,124,168],[52,106,123,124,169],[52,106,123,124,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185],[52,106,123,124,163,171,192],[52,106,123,124,171,172,192],[52,106,123,124,179],[52,106,123,124,176],[52,106,123,124,163,168,192],[52,106,123,124,173],[52,106,123,124,190,192],[52,106,123,124,231],[52,106,123,124,231,232],[52,106,123,124,220],[52,106,120,123,124,158,159,160,186,187,188,189,190,191,192,193,194,195,196,202,203,204,205,206,221,222,223,224,225,226,227,228,229,230,233,234,235,236,237,238,239],[52,106,118,120,123,124,138,146,149,157,158,159,160,169,172,173,176,179,186,187,188,190,191,240],[52,106,123,124,190,191,192],[52,106,123,124,189,192],[52,64,67,70,71,106,123,124,149],[52,67,106,123,124,138,149],[52,67,71,106,123,124,149],[52,106,123,124,138],[52,61,106,123,124],[52,65,106,123,124],[52,63,64,67,106,123,124,149],[52,106,123,124,126,146],[52,106,123,124,156],[52,61,106,123,124,156],[52,63,67,106,123,124,126,149],[52,58,59,60,62,66,106,117,123,124,138,149],[52,67,75,83,106,123,124],[52,59,65,106,123,124],[52,67,92,93,106,123,124],[52,59,62,67,106,123,124,141,149,156],[52,67,106,123,124],[52,63,67,106,123,124,149],[52,58,106,123,124],[52,61,62,63,65,66,67,68,69,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,93,94,95,96,97,106,123,124],[52,67,85,88,106,114,123,124],[52,67,75,76,77,106,123,124],[52,65,67,76,78,106,123,124],[52,66,106,123,124],[52,59,61,67,106,123,124],[52,67,71,76,78,106,123,124],[52,71,106,123,124],[52,65,67,70,106,123,124,149],[52,59,63,67,75,106,123,124],[52,67,85,106,123,124],[52,78,106,123,124],[52,61,67,92,106,123,124,141,154,156],[52,106,123,124,219],[52,106,123,124,209,210],[52,106,123,124,207,208,209,211,212,217],[52,106,123,124,208,209],[52,106,123,124,217],[52,106,123,124,218],[52,106,123,124,209],[52,106,123,124,207,208,209,212,213,214,215,216],[52,106,123,124,207,208,219],[52,106,111,123,124,240,248,249],[52,106,123,124,240,250,251],[52,106,123,124,240,242,243,244,245,246],[52,106,123,124,240,242,243,244,247]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"4245fee526a7d1754529d19227ecbf3be066ff79ebb6a380d78e41648f2f224d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"378281aa35786c27d5811af7e6bcaa492eebd0c7013d48137c35bbc69a2b9751","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"1b2dd1cbeb0cc6ae20795958ba5950395ebb2849b7c8326853dd15530c77ab0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"387a023d363f755eb63450a66c28b14cdd7bc30a104565e2dbf0a8988bb4a56c","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","impliedFormat":1},{"version":"487b694c3de27ddf4ad107d4007ad304d29effccf9800c8ae23c2093638d906a","impliedFormat":1},{"version":"3a80bc85f38526ca3b08007ee80712e7bb0601df178b23fbf0bf87036fce40ce","impliedFormat":1},{"version":"ccf4552357ce3c159ef75f0f0114e80401702228f1898bdc9402214c9499e8c0","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"68834d631c8838c715f225509cfc3927913b9cc7a4870460b5b60c8dbdb99baf","impliedFormat":1},{"version":"2931540c47ee0ff8a62860e61782eb17b155615db61e36986e54645ec67f67c2","impliedFormat":1},{"version":"ccab02f3920fc75c01174c47fcf67882a11daf16baf9e81701d0a94636e94556","impliedFormat":1},{"version":"f6faf5f74e4c4cc309a6c6a6c4da02dbb840be5d3e92905a23dcd7b2b0bd1986","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"33e981bf6376e939f99bd7f89abec757c64897d33c005036b9a10d9587d80187","impliedFormat":1},{"version":"7fd1b31fd35876b0aa650811c25ec2c97a3c6387e5473eb18004bed86cdd76b6","impliedFormat":1},{"version":"b41767d372275c154c7ea6c9d5449d9a741b8ce080f640155cc88ba1763e35b3","impliedFormat":1},{"version":"3bacf516d686d08682751a3bd2519ea3b8041a164bfb4f1d35728993e70a2426","impliedFormat":1},{"version":"7fb266686238369442bd1719bc0d7edd0199da4fb8540354e1ff7f16669b4323","impliedFormat":1},{"version":"0a60a292b89ca7218b8616f78e5bbd1c96b87e048849469cccb4355e98af959a","impliedFormat":1},{"version":"0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","impliedFormat":1},{"version":"9666f2f84b985b62400d2e5ab0adae9ff44de9b2a34803c2c5bd3c8325b17dc0","impliedFormat":1},{"version":"40cd35c95e9cf22cfa5bd84e96408b6fcbca55295f4ff822390abb11afbc3dca","impliedFormat":1},{"version":"b1616b8959bf557feb16369c6124a97a0e74ed6f49d1df73bb4b9ddf68acf3f3","impliedFormat":1},{"version":"5b03a034c72146b61573aab280f295b015b9168470f2df05f6080a2122f9b4df","impliedFormat":1},{"version":"40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","impliedFormat":1},{"version":"249b9cab7f5d628b71308c7d9bb0a808b50b091e640ba3ed6e2d0516f4a8d91d","impliedFormat":1},{"version":"80aae6afc67faa5ac0b32b5b8bc8cc9f7fa299cff15cf09cc2e11fd28c6ae29e","impliedFormat":1},{"version":"f473cd2288991ff3221165dcf73cd5d24da30391f87e85b3dd4d0450c787a391","impliedFormat":1},{"version":"499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","impliedFormat":1},{"version":"54c3e2371e3d016469ad959697fd257e5621e16296fa67082c2575d0bf8eced0","impliedFormat":1},{"version":"beb8233b2c220cfa0feea31fbe9218d89fa02faa81ef744be8dce5acb89bb1fd","impliedFormat":1},{"version":"c183b931b68ad184bc8e8372bf663f3d33304772fb482f29fb91b3c391031f3e","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"48cc3ec153b50985fb95153258a710782b25975b10dd4ac8a4f3920632d10790","impliedFormat":1},{"version":"adf27937dba6af9f08a68c5b1d3fce0ca7d4b960c57e6d6c844e7d1a8e53adae","impliedFormat":1},{"version":"e1528ca65ac90f6fa0e4a247eb656b4263c470bb22d9033e466463e13395e599","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"866078923a56d026e39243b4392e282c1c63159723996fa89243140e1388a98d","impliedFormat":1},{"version":"830171b27c5fdf9bcbe4cf7d428fcf3ae2c67780fb7fbdccdf70d1623d938bc4","affectsGlobalScope":true,"impliedFormat":1},{"version":"1cf059eaf468efcc649f8cf6075d3cb98e9a35a0fe9c44419ec3d2f5428d7123","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d97fb21da858fb18b8ae72c314e9743fd52f73ebe2764e12af1db32fc03f853f","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ea15fd99b2e34cb25fe8346c955000bb70c8b423ae4377a972ef46bfb37f595","impliedFormat":1},{"version":"7cf69dd5502c41644c9e5106210b5da7144800670cbe861f66726fa209e231c4","impliedFormat":1},{"version":"72c1f5e0a28e473026074817561d1bc9647909cf253c8d56c41d1df8d95b85f7","impliedFormat":1},{"version":"f9b4137a0d285bd77dba2e6e895530112264310ae47e07bf311feae428fb8b61","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b21e13ed07d0df176ae31d6b7f01f7b17d66dbeb489c0d31d00de2ca14883da","impliedFormat":1},{"version":"51aecd2df90a3cffea1eb4696b33b2d78594ea2aa2138e6b9471ec4841c6c2ee","impliedFormat":1},{"version":"2c91d8366ff2506296191c26fd97cc1990bab3ee22576275d28b654a21261a44","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"f929f0b6b3421a2d34344b0f421f45aeb2c84ad365ebf29d04312023b3accc58","impliedFormat":1},{"version":"db9ada976f9e52e13f7ae8b9a320f4b67b87685938c5879187d8864b2fbe97f3","impliedFormat":1},{"version":"9f39e70a354d0fba29ac3cdf6eca00b7f9e96f64b2b2780c432e8ea27f133743","impliedFormat":1},{"version":"0dace96cc0f7bc6d0ee2044921bdf19fe42d16284dbcc8ae200800d1c9579335","impliedFormat":1},{"version":"a2e2bbde231b65c53c764c12313897ffdfb6c49183dd31823ee2405f2f7b5378","impliedFormat":1},{"version":"ad1cc0ed328f3f708771272021be61ab146b32ecf2b78f3224959ff1e2cd2a5c","impliedFormat":1},{"version":"c64e1888baaa3253ca4405b455e4bf44f76357868a1bd0a52998ade9a092ad78","affectsGlobalScope":true,"impliedFormat":1},{"version":"d8cf132379078d0974a59df26069689a2d33c7dc826b5be56231841cb2f32e58","impliedFormat":1},{"version":"fbf413fc617837453c878a9174a1f1b383616857a3f8366bc41cf30df4aea7d5","impliedFormat":1},{"version":"148c73ec11318850f571172ceae3e55ce479d850fe18ec8eae0abd99d9f6c319","impliedFormat":1},{"version":"230bdc111d7578276e4a3bb9d075d85c78c6b68f428c3a9935e2eaa10f4ae1f5","impliedFormat":1},{"version":"e8aabbee5e7b9101b03bb4222607d57f38859b8115a8050a4eb91b4ee43a3a73","impliedFormat":1},{"version":"bbf42f98a5819f4f06e18c8b669a994afe9a17fe520ae3454a195e6eabf7700d","impliedFormat":1},{"version":"c0bb1b65757c72bbf8ddf7eaa532223bacf58041ff16c883e76f45506596e925","impliedFormat":1},{"version":"c8b85f7aed29f8f52b813f800611406b0bfe5cf3224d20a4bdda7c7f73ce368e","affectsGlobalScope":true,"impliedFormat":1},{"version":"145dcf25fd4967c610c53d93d7bc4dce8fbb1b6dd7935362472d4ae49363c7ba","impliedFormat":1},{"version":"ff65b8a8bd380c6d129becc35de02f7c29ad7ce03300331ca91311fb4044d1a9","impliedFormat":1},{"version":"76957a6d92b94b9e2852cf527fea32ad2dc0ef50f67fe2b14bd027c9ceef2d86","impliedFormat":1},{"version":"9043daec15206650fa119bad6b8d70136021ea7d52673a71f79a87a42ee38d44","affectsGlobalScope":true,"impliedFormat":1},{"version":"8ba0db41ed773e152647a78e9053e36a747891db41d6a51c7030a0d0f01babb2","affectsGlobalScope":true,"impliedFormat":1},{"version":"a58a15da4c5ba3df60c910a043281256fa52d36a0fcdef9b9100c646282e88dd","impliedFormat":1},{"version":"b36beffbf8acdc3ebc58c8bb4b75574b31a2169869c70fc03f82895b93950a12","impliedFormat":1},{"version":"de263f0089aefbfd73c89562fb7254a7468b1f33b61839aafc3f035d60766cb4","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"8c81fd4a110490c43d7c578e8c6f69b3af01717189196899a6a44f93daa57a3a","impliedFormat":1},{"version":"5fb39858b2459864b139950a09adae4f38dad87c25bf572ce414f10e4bd7baab","impliedFormat":1},{"version":"28e3631087ecef78fef8efdb21d4d2509f776ef6f0d660ff605b5ee6a22ebb8c","impliedFormat":1},{"version":"b33b74b97952d9bf4fbd2951dcfbb5136656ddb310ce1c84518aaa77dbca9992","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"6b306cd4282bbb54d4a6bb23cfb7a271160983dfc38c67b5a132504cfcc34896","affectsGlobalScope":true,"impliedFormat":1},{"version":"c119835edf36415081dfd9ed15fc0cd37aaa28d232be029ad073f15f3d88c323","impliedFormat":1},{"version":"450172a56b944c2d83f45cc11c9a388ea967cd301a21202aa0a23c34c7506a18","impliedFormat":1},{"version":"9705cd157ffbb91c5cab48bdd2de5a437a372e63f870f8a8472e72ff634d47c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ae86f30d5d10e4f75ce8dcb6e1bd3a12ecec3d071a21e8f462c5c85c678efb41","impliedFormat":1},{"version":"72f8936aebf0c4a1adab767b97d34ba7d3a308afcf76de4417b9c16fb92ed548","impliedFormat":1},{"version":"e03460fe72b259f6d25ad029f085e4bedc3f90477da4401d8fbc1efa9793230e","impliedFormat":1},{"version":"4286a3a6619514fca656089aee160bb6f2e77f4dd53dc5a96b26a0b4fc778055","impliedFormat":1},{"version":"04aa8fb012abeecf5666b013c59ba01dca5aa0c28173cb5385bc88d4adeb8d64","affectsGlobalScope":true,"impliedFormat":1},{"version":"3585d6891e9ea18e07d0755a6d90d71331558ba5dc5561933553209f886db106","affectsGlobalScope":true,"impliedFormat":1},{"version":"86be71cbb0593468644932a6eb96d527cfa600cecfc0b698af5f52e51804451d","impliedFormat":1},{"version":"84dd6b0fd2505135692935599d6606f50a421389e8d4535194bcded307ee5cf2","impliedFormat":1},{"version":"0d5b085f36e6dc55bc6332ecb9c733be3a534958c238fb8d8d18d4a2b6f2a15a","impliedFormat":1},{"version":"db19ea066fdc5f97df3f769e582ae3000380ab7942e266654bdb1a4650d19eaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"2a034894bf28c220a331c7a0229d33564803abe2ac1b9a5feee91b6b9b6e88ea","impliedFormat":1},{"version":"d7e9ab1b0996639047c61c1e62f85c620e4382206b3abb430d9a21fb7bc23c77","impliedFormat":1},{"version":"736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","impliedFormat":1},{"version":"1c2b66507ace4ea54e711001fbdac6d5ff836cf825a3637bdf9c9df189877c2b","impliedFormat":1},{"version":"a588d1f897adf938963ef3d90c8038c3c5cd19ef88fbedda4cb1a77b8b7ba3e6","impliedFormat":1},{"version":"a0981ee0c7ac06bdb575558bd09bac190e1c0c7888ddcb63d8bf648f23a30e8c","impliedFormat":1},{"version":"00f11c3ec667314eaa2adfe253b5ebebbbdbb82510e04460c2f09d1c3b521d31","impliedFormat":1},{"version":"5c7a516e25a2fd1dc5e054c6161fe3c8ba46364f3784ef98f3fca48ab685231c","impliedFormat":1},{"version":"3ff739b7f819cfc12b330f9adcc4c3abbbd5e9f9ca68f53243222a049a8361a2","impliedFormat":1},{"version":"d762b92c1af47b7b3c4eef92fe9a3806194d9edc5dae6901342fc87ef21d7f4a","impliedFormat":1},{"version":"41d14b690d8d8c2a9b7395e8c36de6ca981010736723216ab9f35eb598e09ad9","impliedFormat":1},{"version":"3fdcca6b893ffd38b61b792772f649c82ae28077c360802cec25360eabca24c0","impliedFormat":1},{"version":"299924f7545be254b02278e4dcff7038611f2325d30f0e5ae4bcac906847c164","impliedFormat":1},{"version":"be1d650f04c9f472f0ad0ead3e1b7059dd1e0ff918f7bcb707786d27c3bbeadd","impliedFormat":1},{"version":"1e16c1b1c4d8600a146b15a933f9a880cc275c01f39dc436625f22d3cca46272","impliedFormat":1},{"version":"a631639d7f79f49f68a0ef6553baa1b977e06b230e768511812952709fe5c1f0","impliedFormat":1},{"version":"bf2aefef15e0b4d6bc8f4e19f967494b59b5f90a834de503c373df042513d924","impliedFormat":1},{"version":"4085248a1c89ee865cf9498402c90611d16920a6c9929f701ddc0b963ddad230","impliedFormat":1},{"version":"1a1acd3311ff1794be8401ee394efc3beeb1746068244eb0ee1d51d08e457401","impliedFormat":1},{"version":"ce0b4440a3dd75e14ca94b6d6b27fa26ca89e776d91b8803b3c86c4e8f06ed1a","impliedFormat":1},{"version":"37020cf15e16fa6e1c6e2485cd51d6cbe74adee3b860ab49fb7528ca7e8e518e","impliedFormat":1},{"version":"b6b1a3ff9ba1ddf1a908cfd1bcd471334ecd218a366460fc64c4561d6d0467a4","impliedFormat":1},{"version":"1950d2a49c05c7aa6decfe409b552c4ea5fb156894cf0541b34999819bd778ea","impliedFormat":1},{"version":"32fe829960ff7120843f6dd20197e863aee3e81ecded415641a7500654d1bda7","impliedFormat":1},{"version":"da73778888d41d0abe7d28a24529ba13ff0a9311d55e1902feee7ab97dc6a67d","impliedFormat":1},{"version":"393b1ed0dca4f0aac333e65f2e40dfedfa8b37ac60571e02b152d32d8c84d340","impliedFormat":1},{"version":"f46d50c283425bcc59d68ccf067b3672fb727f802652dc7d60d2e470fb956370","impliedFormat":1},{"version":"0e10fd1d283b4ba7b94f5abb1bc30a2070ccb16c22f86a2780bea8ddc48f3bf7","impliedFormat":1},{"version":"0b4b6ca509cdb152e18ceeed526d17bb416e7e518508d859a0174977195f9a35","impliedFormat":1},{"version":"79b9e661f99d6d01ad0031fbffbb20a8570ca526125a1b01ef5643c00348a8c4","impliedFormat":1},{"version":"deb85dff5a350bd77f24fb5665b7a3c95aa0d4556a0d45ab423ebf3ffcbc70ce","impliedFormat":1},{"version":"f3e1a9f8c28c949f8432b0ef8f0d2686ccc3e38dcc338bbc8a02f956bc7a0725","impliedFormat":1},{"version":"3226c2a2af36d14aa551babd4154ad18042c0deb1509a61058c6b066cfddc30a","impliedFormat":1},{"version":"64c9811ebae7d6bdd3749155911ca473017944d6e9787cec3d11549b05b19de9","impliedFormat":1},{"version":"65f5d56e387495e8421e550d73ddb2132e82060d83b2907238629f4fe453214a","impliedFormat":1},{"version":"18c4c5d4069ae6ddce9443a6057fcf333688556b0d644813a78e604812f82bb3","impliedFormat":1},{"version":"6481b29f54e19becbeb7236c60043e2daa47b45cb4fd7e88f287df09250f2405","impliedFormat":1},{"version":"5157e3f3a6d9c5b7b9648dae93f6998d4867f1137415a8f75f857d5611721dd5","impliedFormat":1},{"version":"01658146c02cba2e49ee7beaa0b90864e7a17c3d02cc39cd8b643b5be3a1a438","impliedFormat":1},{"version":"fcbfe8a05b4b1d990aaf289b951ca3fb16bd5aa18004f576283576069be59939","impliedFormat":1},{"version":"db18ec88a0f1512b153a28a0ed1e19f34530885bca1d00e5f17a6e9b3184697f","impliedFormat":1},{"version":"21f166065c0725ca16281aa2f05f5ee9fb556795c8426049bf44ee36bdca9afd","impliedFormat":1},{"version":"36cd04c9f4116122a3545fcc6da5e522861d739718ab3a3cb7ff2268612531aa","impliedFormat":1},{"version":"9ae86dde42766df895cde73c60dc13347cc30829c6696de3cc54036b3120a5ba","impliedFormat":1},{"version":"6823cce79c10482d0860d40ebbfc29f00ddf7f99bca0aa23330599ddd8baead4","impliedFormat":1},{"version":"30ed6587fb249cc1b0585bab7ce2ca81ef193bfe2934241b6f06ffefdaaf4bf9","impliedFormat":1},{"version":"aa18fcf8ad877a9eb0c357c247708f019e25c4d906e3025d73604b66de8d7f11","impliedFormat":1},{"version":"cfc5482e113e44dae9712ae0a4e412788622221ae5eb1327fb69a13a0f5af662","impliedFormat":1},{"version":"5e620d0ed3eeb9a9a767355547123c85aea7e8f26d90e94d0cc3fa457f1c2035","impliedFormat":1},{"version":"304b0d21771513c0a36ed7179a9d1069bfa776e95f50b789ce898f3ef2b71514","impliedFormat":1},{"version":"4904d7124f9731d2368b613523070ca594cbc82f172023b4b5678018be7b6022","impliedFormat":1},{"version":"18c078c2b34901a328c1fc3e5a2f5bd51aa0fef06a548418198955e0af5eaf39","impliedFormat":1},{"version":"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","impliedFormat":1},{"version":"293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","impliedFormat":1},{"version":"54f6ec6ea75acea6eb23635617252d249145edbc7bcd9d53f2d70280d2aef953","impliedFormat":1},{"version":"c25ce98cca43a3bfa885862044be0d59557be4ecd06989b2001a83dcf69620fd","impliedFormat":1},{"version":"8e71e53b02c152a38af6aec45e288cc65bede077b92b9b43b3cb54a37978bb33","impliedFormat":1},{"version":"754a9396b14ca3a4241591afb4edc644b293ccc8a3397f49be4dfd520c08acb3","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","impliedFormat":1},{"version":"de2316e90fc6d379d83002f04ad9698bc1e5285b4d52779778f454dd12ce9f44","impliedFormat":1},{"version":"25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","impliedFormat":1},{"version":"2da997a01a6aa5c5c09de5d28f0f4407b597c5e1aecfd32f1815809c532650a2","impliedFormat":1},{"version":"5d26d2e47e2352def36f89a3e8bf8581da22b7f857e07ef3114cd52cf4813445","impliedFormat":1},{"version":"3db2efd285e7328d8014b54a7fce3f4861ebcdc655df40517092ed0050983617","impliedFormat":1},{"version":"d5d39a24c759df40480a4bfc0daffd364489702fdbcbdfc1711cde34f8739995","impliedFormat":1},{"version":"581b97f369056070fafbe168120a192e918e67763116dfbbb2782bbca5f32111","impliedFormat":1},{"version":"74f9797560463a8c9070dd72c04b38cc17b79759b841e2a4175a11742f2ecd11","impliedFormat":1},{"version":"ce22b96ece23ecc9bc1f2a445afefa0a487f299986a1584887e4e4217e196963","impliedFormat":1},{"version":"4788f58342a67af140858e23a24cdf62457ec1ff79af68ac71b9d3c0c89bb53b","impliedFormat":1},{"version":"be19e5bce1b45d5c0ef87d46c3a95a991a3cd8b6c7cb4d756791756e69cc3568","impliedFormat":1},{"version":"e9634e0306920990ddca8f667e3cb624597ea7a4cd25d557a599c0e175419879","impliedFormat":1},{"version":"d4866c666180e89bdc142940cb2986a8fa9f3d2a363cc757bb61cef698b6e976","impliedFormat":1},{"version":"e73799489c16d7281d0466925ba620e9f804bb78400e0dbe04997b98407b1ab5","impliedFormat":1},{"version":"cb279466d8f2d95f3ee0a24637506b18d18d9b1cb869b4dbb534b7597b06daec","impliedFormat":1},{"version":"b33057a3c7ea75948a207a5b784726118ec60f882eeb875bd64e932b4cd41041","impliedFormat":1},{"version":"b773bcdaeda86c0f58910cecd6c77a0bd60be763127c42cad5a64fe66799b1f6","impliedFormat":1},{"version":"9e2e0b4711f1efef5c3c488616334ba2e5b911648a8784fd77fc8beb1e5047c9","impliedFormat":1},{"version":"ca1c4f7d0c786d90ab15a363d59d0e18269b393191ed7b2841547c0e187a8d35","impliedFormat":1},{"version":"0494f89b64c5e8906ce5284194e09bad42b56837757d79cb9e62ce16aae88ab4","impliedFormat":1},{"version":"28f1497962f8853339b46d766384abe7a907900998f551cf43cd793cdcb98e3d","impliedFormat":1},{"version":"e4cce0b510957aab4b12a0dc21a3b4857b8f8a85bbded2b8b81f836ca3c83dbc","impliedFormat":1},{"version":"79a0953f85a27dcaab70dd0e3791a3564631dfd5d85c637513027747c6844357","impliedFormat":1},{"version":"678c7436b7aa03dad934a96850ea395c018637013aa0b52a65898f502b4d6e2a","impliedFormat":1},{"version":"1c18a09d1deaf0e9906100ab54592f256f87fc94c67cce61bfc1c2ea44ac3d13","impliedFormat":1},{"version":"8a4470294a22dd13943cf7b946548fc302b79a10c618abae42a1bd6b2836df2d","impliedFormat":1},{"version":"17e41aa18902fb225a6c9b6e80b75b3b9688ffeef6b7aee542b888ab2df01eec","signature":"92003a12ed5158899e9c20e7de1fcfacf516f6d305eece6405b0852ae18d6d9a"},{"version":"85ba3fc804fc7db6b1d1532c9ba0cef907a1ab1bb955613075e715ea4ea0090c","signature":"f8a093a73420113dcb83c2b366f53d8d8acad6f83941903c31513684b4085cb3"},{"version":"b0798123ab9c4566fdd3476060fc58b458e1d4b4357c848052cb1cf111851acd","signature":"d379929995a2dcb712acb6cafe633b0a954ba20e8cb3256091605932ff5002bd"},{"version":"ff6b04a68837ad4b05314d09a9edb4306749c1570dc9702b1f8c301c01fe8315","signature":"6dea38d1852516ef376621f14c6ee12a7f011e6cfb3efa3bd8030439bdbac66b"},{"version":"7e2af11fe4272ba75767a8b4cdc898b68c28dee9ac49455d727d48e02c579fdf","signature":"dd97a0ed59768378d99605f081dda5eb329e19d7d220ec7f9111c9072f4c8a46"},{"version":"3f2cbacd3f8af77efebf303530b396db44fc42f9c80f584a40d91d3dc87f7bcd","signature":"92f82671219a1326d4cd42daa15c49fddac949ab0f2fa163d3089b1be672da4f"},{"version":"268e690fed57441ffbc9c5548093aecea6cc6a345a2da674d43b550036f34f2b","signature":"13ca43a2ff3e0cff69bebde8cd6ff27a2e20e5a0843d87b3e916202a0eeabeb8"},{"version":"a253a9e4da395779985ffe60e4e646269139488694cdbc8cf672c1fab1b447e0","signature":"36934fbe49686cfc8b62bddd7572acb2d344438bc35fedf13d2803f129a2a37a"},{"version":"c82d96d46f5c76406cc8827aad2493b6347538fba5f7e7f2051fabcd1c000348","signature":"db097ac6720de841d6038c2beed869bcfa80eb05d2a4a3e979bb0cfd0b4a9b33"},{"version":"4a8dc9f8434254af5f02ed3ab11bdec1bcfb5429251385186d3411f1e048aee4","signature":"4e1518fd9fb5bf4edc0cbb41d38581a15ed7ffb48c840901a756ab0d636fa7f1"},{"version":"cf4ef4cbe45f4d646193d760279545f40b713aad72a0f39f25029156eb978259","signature":"019f4ee7341580b5acd0969855bc8e6c2b4ac1e5a07a61e734dca3e4c2cf949a"},{"version":"fbf64dd3134d6b1604bf5adf5b27eb782600b62770d01626d928f8fb949bc182","signature":"42accac13603d45647cb6126c065d2d3dba74c995fbb75ccae92daaeb962b331"},"caaada05b51c17b58e38fd430c08307ede9ab3c609ae78d824233e24cb24ea1e","e993ee5fe08d7fbb1079814db9e96a1206149cda78fa52fb48bb4f1e1132be6c"],"root":[[241,254]],"options":{"declaration":true,"esModuleInterop":true,"module":1,"noImplicitAny":true,"noImplicitReturns":true,"noUnusedLocals":true,"outDir":"./","preserveConstEnums":true,"removeComments":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"strictNullChecks":true,"target":6,"useUnknownInCatchVariables":false},"referencedMap":[[241,1],[162,2],[163,3],[161,4],[103,5],[104,5],[105,6],[52,7],[106,8],[107,9],[108,10],[50,4],[109,11],[110,12],[111,13],[112,14],[113,15],[114,16],[115,16],[116,17],[117,18],[118,19],[119,20],[53,4],[51,4],[120,21],[121,22],[122,23],[156,24],[123,25],[124,4],[125,26],[126,27],[127,28],[128,29],[129,30],[130,31],[131,32],[132,33],[133,34],[134,34],[135,35],[136,4],[137,36],[138,37],[140,38],[139,39],[141,40],[142,41],[143,42],[144,43],[145,44],[146,45],[147,46],[148,47],[149,48],[150,49],[151,50],[152,51],[153,52],[54,4],[55,53],[56,4],[57,4],[99,54],[100,55],[101,4],[102,40],[154,56],[155,57],[157,58],[197,59],[198,59],[199,59],[200,59],[202,60],[201,59],[158,4],[203,59],[159,4],[160,4],[168,61],[171,62],[164,63],[165,64],[166,64],[167,64],[181,65],[184,63],[185,4],[170,66],[183,67],[169,66],[186,68],[172,69],[173,70],[175,66],[180,71],[182,61],[177,72],[176,73],[174,74],[178,72],[179,62],[239,4],[187,4],[189,75],[206,4],[232,76],[234,4],[231,4],[233,77],[221,78],[204,4],[230,59],[240,79],[192,80],[193,59],[205,59],[224,1],[235,76],[194,75],[236,61],[237,59],[238,4],[223,59],[195,59],[188,4],[196,59],[222,59],[229,59],[227,59],[228,59],[226,59],[191,4],[225,81],[190,82],[48,4],[49,4],[9,4],[8,4],[2,4],[10,4],[11,4],[12,4],[13,4],[14,4],[15,4],[16,4],[17,4],[3,4],[18,4],[19,4],[4,4],[20,4],[24,4],[21,4],[22,4],[23,4],[25,4],[26,4],[27,4],[5,4],[28,4],[29,4],[30,4],[31,4],[6,4],[35,4],[32,4],[33,4],[34,4],[36,4],[7,4],[37,4],[42,4],[43,4],[38,4],[39,4],[40,4],[41,4],[44,4],[45,4],[1,4],[46,4],[47,4],[75,83],[87,84],[73,85],[88,86],[97,87],[64,88],[65,89],[63,90],[96,91],[91,92],[95,93],[67,94],[84,95],[66,96],[94,97],[61,98],[62,92],[68,99],[69,4],[74,100],[72,99],[59,101],[98,102],[89,103],[78,104],[77,99],[79,105],[82,106],[76,107],[80,108],[92,91],[70,109],[71,110],[83,111],[60,86],[86,112],[85,99],[81,113],[90,4],[58,4],[93,114],[220,115],[211,116],[218,117],[213,4],[214,4],[212,118],[215,119],[207,4],[208,4],[219,120],[210,121],[216,4],[217,122],[209,123],[250,124],[251,124],[253,4],[252,125],[245,4],[242,4],[246,4],[243,4],[244,4],[247,126],[248,127],[249,1],[254,4]],"version":"5.9.2"} \ No newline at end of file