n8n-nodes-base 1.80.2 → 1.81.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/build.tsbuildinfo +1 -1
  2. package/dist/credentials/Aws.credentials.d.ts +56 -0
  3. package/dist/credentials/Aws.credentials.js +70 -0
  4. package/dist/credentials/Aws.credentials.js.map +1 -1
  5. package/dist/credentials/AzureStorageOAuth2Api.credentials.d.ts +8 -0
  6. package/dist/credentials/AzureStorageOAuth2Api.credentials.js +33 -0
  7. package/dist/credentials/AzureStorageOAuth2Api.credentials.js.map +1 -0
  8. package/dist/credentials/AzureStorageSharedKeyApi.credentials.d.ts +8 -0
  9. package/dist/credentials/AzureStorageSharedKeyApi.credentials.js +79 -0
  10. package/dist/credentials/AzureStorageSharedKeyApi.credentials.js.map +1 -0
  11. package/dist/credentials/VerticaApi.credentials.d.ts +14 -0
  12. package/dist/credentials/VerticaApi.credentials.js +82 -0
  13. package/dist/credentials/VerticaApi.credentials.js.map +1 -0
  14. package/dist/known/credentials.json +21 -0
  15. package/dist/known/nodes.json +4 -0
  16. package/dist/methods/defined.json +1 -0
  17. package/dist/nodes/Form/Form.node.js +26 -1
  18. package/dist/nodes/Form/Form.node.js.map +1 -1
  19. package/dist/nodes/Form/cssVariables.d.ts +1 -0
  20. package/dist/nodes/Form/cssVariables.js +74 -0
  21. package/dist/nodes/Form/cssVariables.js.map +1 -0
  22. package/dist/nodes/Form/formCompletionUtils.js +1 -0
  23. package/dist/nodes/Form/formCompletionUtils.js.map +1 -1
  24. package/dist/nodes/Form/formNodeUtils.js +1 -0
  25. package/dist/nodes/Form/formNodeUtils.js.map +1 -1
  26. package/dist/nodes/Form/interfaces.d.ts +1 -0
  27. package/dist/nodes/Form/interfaces.js.map +1 -1
  28. package/dist/nodes/Form/utils.d.ts +5 -2
  29. package/dist/nodes/Form/utils.js +14 -2
  30. package/dist/nodes/Form/utils.js.map +1 -1
  31. package/dist/nodes/Form/v2/FormTriggerV2.node.js +17 -0
  32. package/dist/nodes/Form/v2/FormTriggerV2.node.js.map +1 -1
  33. package/dist/nodes/Google/Slides/GoogleSlides.node.js +8 -8
  34. package/dist/nodes/Google/Slides/GoogleSlides.node.js.map +1 -1
  35. package/dist/nodes/Microsoft/Storage/AzureStorage.node.d.ts +12 -0
  36. package/dist/nodes/Microsoft/Storage/AzureStorage.node.js +97 -0
  37. package/dist/nodes/Microsoft/Storage/AzureStorage.node.js.map +1 -0
  38. package/dist/nodes/Microsoft/Storage/AzureStorage.node.json +18 -0
  39. package/dist/nodes/Microsoft/Storage/GenericFunctions.d.ts +72 -0
  40. package/dist/nodes/Microsoft/Storage/GenericFunctions.js +446 -0
  41. package/dist/nodes/Microsoft/Storage/GenericFunctions.js.map +1 -0
  42. package/dist/nodes/Microsoft/Storage/azureStorage.dark.svg +14 -0
  43. package/dist/nodes/Microsoft/Storage/azureStorage.svg +14 -0
  44. package/dist/nodes/Microsoft/Storage/compare-header.d.ts +1 -0
  45. package/dist/nodes/Microsoft/Storage/compare-header.js +70 -0
  46. package/dist/nodes/Microsoft/Storage/compare-header.js.map +1 -0
  47. package/dist/nodes/Microsoft/Storage/descriptions/BlobDescription.d.ts +3 -0
  48. package/dist/nodes/Microsoft/Storage/descriptions/BlobDescription.js +1278 -0
  49. package/dist/nodes/Microsoft/Storage/descriptions/BlobDescription.js.map +1 -0
  50. package/dist/nodes/Microsoft/Storage/descriptions/ContainerDescription.d.ts +3 -0
  51. package/dist/nodes/Microsoft/Storage/descriptions/ContainerDescription.js +524 -0
  52. package/dist/nodes/Microsoft/Storage/descriptions/ContainerDescription.js.map +1 -0
  53. package/dist/nodes/Microsoft/Storage/descriptions/index.d.ts +2 -0
  54. package/dist/nodes/Microsoft/Storage/descriptions/index.js +19 -0
  55. package/dist/nodes/Microsoft/Storage/descriptions/index.js.map +1 -0
  56. package/dist/nodes/Microsoft/Storage/test/workflows/blob_create.workflow.json +109 -0
  57. package/dist/nodes/Microsoft/Storage/test/workflows/blob_delete.workflow.json +51 -0
  58. package/dist/nodes/Microsoft/Storage/test/workflows/blob_get.workflow.json +113 -0
  59. package/dist/nodes/Microsoft/Storage/test/workflows/blob_getAll.workflow.json +82 -0
  60. package/dist/nodes/Microsoft/Storage/test/workflows/blob_getAllLimitOptions.workflow.json +76 -0
  61. package/dist/nodes/Microsoft/Storage/test/workflows/container_create.workflow.json +54 -0
  62. package/dist/nodes/Microsoft/Storage/test/workflows/container_delete.workflow.json +48 -0
  63. package/dist/nodes/Microsoft/Storage/test/workflows/container_get.workflow.json +61 -0
  64. package/dist/nodes/Microsoft/Storage/test/workflows/container_getAll.workflow.json +73 -0
  65. package/dist/nodes/Microsoft/Storage/test/workflows/container_getAllLimitOptions.workflow.json +59 -0
  66. package/dist/nodes/Microsoft/Storage/test/workflows/credentials_oauth2.workflow.json +65 -0
  67. package/dist/nodes/Microsoft/Storage/test/workflows/credentials_sharedKey.workflow.json +62 -0
  68. package/dist/nodes/Notion/shared/GenericFunctions.d.ts +1 -1
  69. package/dist/nodes/Odoo/Odoo.node.js +8 -17
  70. package/dist/nodes/Odoo/Odoo.node.js.map +1 -1
  71. package/dist/nodes/QuickBooks/GenericFunctions.js +5 -0
  72. package/dist/nodes/QuickBooks/GenericFunctions.js.map +1 -1
  73. package/dist/nodes/QuickBooks/descriptions/Invoice/InvoiceDescription.js +7 -0
  74. package/dist/nodes/QuickBooks/descriptions/Invoice/InvoiceDescription.js.map +1 -1
  75. package/dist/nodes/Sms77/GenericFunctions.js +0 -1
  76. package/dist/nodes/Sms77/GenericFunctions.js.map +1 -1
  77. package/dist/nodes/Sms77/Sms77.node.js +2 -30
  78. package/dist/nodes/Sms77/Sms77.node.js.map +1 -1
  79. package/dist/nodes/WhatsApp/GenericFunctions.d.ts +4 -1
  80. package/dist/nodes/WhatsApp/GenericFunctions.js +21 -0
  81. package/dist/nodes/WhatsApp/GenericFunctions.js.map +1 -1
  82. package/dist/nodes/WhatsApp/MessageFunctions.d.ts +1 -0
  83. package/dist/nodes/WhatsApp/MessageFunctions.js +4 -2
  84. package/dist/nodes/WhatsApp/MessageFunctions.js.map +1 -1
  85. package/dist/nodes/WhatsApp/MessagesDescription.d.ts +1 -1
  86. package/dist/nodes/WhatsApp/MessagesDescription.js +6 -0
  87. package/dist/nodes/WhatsApp/MessagesDescription.js.map +1 -1
  88. package/dist/nodes/WhatsApp/WhatsApp.node.d.ts +8 -1
  89. package/dist/nodes/WhatsApp/WhatsApp.node.js +34 -2
  90. package/dist/nodes/WhatsApp/WhatsApp.node.js.map +1 -1
  91. package/dist/nodes/WhatsApp/WhatsApp.node.json +4 -1
  92. package/dist/nodes/WhatsApp/WhatsAppTrigger.node.js +52 -2
  93. package/dist/nodes/WhatsApp/WhatsAppTrigger.node.js.map +1 -1
  94. package/dist/types/credentials.json +4 -1
  95. package/dist/types/nodes.json +9 -8
  96. package/dist/utils/sendAndWait/utils.d.ts +1 -2
  97. package/package.json +11 -6
  98. package/dist/nodes/WhatsApp/WhatsappDescription.d.ts +0 -2
  99. package/dist/nodes/WhatsApp/WhatsappDescription.js +0 -55
  100. package/dist/nodes/WhatsApp/WhatsappDescription.js.map +0 -1
@@ -0,0 +1,72 @@
1
+ import type { IDataObject, IExecuteFunctions, IExecuteSingleFunctions, IHttpRequestMethods, IHttpRequestOptions, ILoadOptionsFunctions, INodeExecutionData, IN8nHttpFullResponse, INodeListSearchResult, ICredentialDataDecryptedObject } from 'n8n-workflow';
2
+ export declare const XMsVersion = "2021-12-02";
3
+ export declare const HeaderConstants: {
4
+ AUTHORIZATION: string;
5
+ CONTENT_ENCODING: string;
6
+ CONTENT_LANGUAGE: string;
7
+ CONTENT_LENGTH: string;
8
+ CONTENT_MD5: string;
9
+ CONTENT_TYPE: string;
10
+ DATE: string;
11
+ ETAG: string;
12
+ IF_MATCH: string;
13
+ IF_MODIFIED_SINCE: string;
14
+ IF_NONE_MATCH: string;
15
+ IF_UNMODIFIED_SINCE: string;
16
+ ORIGIN: string;
17
+ RANGE: string;
18
+ X_MS_COPY_SOURCE: string;
19
+ X_MS_DATE: string;
20
+ X_MS_VERSION: string;
21
+ X_MS_BLOB_TYPE: string;
22
+ X_MS_BLOB_CONTENT_DISPOSITION: string;
23
+ X_MS_BLOB_PUBLIC_ACCESS: string;
24
+ X_MS_HAS_IMMUTABILITY_POLICY: string;
25
+ X_MS_HAS_LEGAL_HOLD: string;
26
+ X_MS_CONTENT_CRC64: string;
27
+ X_MS_REQUEST_SERVER_ENCRYPTED: string;
28
+ X_MS_ENCRYPTION_SCOPE: string;
29
+ X_MS_VERSION_ID: string;
30
+ X_MS_TAG_COUNT: string;
31
+ X_MS_COPY_PROGRESS: string;
32
+ X_MS_INCREMENTAL_COPY: string;
33
+ X_MS_BLOB_SEQUENCE_NUMBER: string;
34
+ X_MS_BLOB_COMMITTED_BLOCK_COUNT: string;
35
+ X_MS_SERVER_ENCRYPTED: string;
36
+ X_MS_ENCRYPTION_CONTEXT: string;
37
+ X_MS_BLOB_CONTENT_MD5: string;
38
+ X_MS_BLOB_SEALED: string;
39
+ X_MS_IMMUTABILITY_POLICY_UNTIL_DATE: string;
40
+ X_MS_IMMUTABILITY_POLICY_MODE: string;
41
+ X_MS_LEGAL_HOLD: string;
42
+ X_MS_DELETE_TYPE_PERMANENT: string;
43
+ X_MS_ACCESS_TIER: string;
44
+ X_MS_BLOB_CACHE_CONTROL: string;
45
+ X_MS_LEASE_ID: string;
46
+ X_MS_BLOB_CONTENT_ENCODING: string;
47
+ X_MS_BLOB_CONTENT_LANGUAGE: string;
48
+ X_MS_BLOB_CONTENT_TYPE: string;
49
+ X_MS_EXPIRY_OPTION: string;
50
+ X_MS_EXPIRY_TIME: string;
51
+ X_MS_TAGS: string;
52
+ X_MS_UPN: string;
53
+ PREFIX_X_MS: string;
54
+ PREFIX_X_MS_META: string;
55
+ };
56
+ export declare function azureStorageApiRequest(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, method: IHttpRequestMethods, endpoint: string, body?: IDataObject, qs?: IDataObject, headers?: IDataObject, url?: string): Promise<string>;
57
+ export declare function handleErrorPostReceive(this: IExecuteSingleFunctions, data: INodeExecutionData[], response: IN8nHttpFullResponse): Promise<INodeExecutionData[]>;
58
+ export declare function getCanonicalizedHeadersString(requestOptions: IHttpRequestOptions): string;
59
+ export declare function getCanonicalizedResourceString(requestOptions: IHttpRequestOptions, credentials: ICredentialDataDecryptedObject): string;
60
+ export declare function parseHeaders(headers: IDataObject): IDataObject;
61
+ export declare function parseBlobList(xml: string): Promise<{
62
+ blobs: IDataObject[];
63
+ maxResults?: number;
64
+ nextMarker?: string;
65
+ }>;
66
+ export declare function parseContainerList(xml: string): Promise<{
67
+ containers: IDataObject[];
68
+ maxResults?: number;
69
+ nextMarker?: string;
70
+ }>;
71
+ export declare function getBlobs(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
72
+ export declare function getContainers(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
@@ -0,0 +1,446 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HeaderConstants = exports.XMsVersion = void 0;
4
+ exports.azureStorageApiRequest = azureStorageApiRequest;
5
+ exports.handleErrorPostReceive = handleErrorPostReceive;
6
+ exports.getCanonicalizedHeadersString = getCanonicalizedHeadersString;
7
+ exports.getCanonicalizedResourceString = getCanonicalizedResourceString;
8
+ exports.parseHeaders = parseHeaders;
9
+ exports.parseBlobList = parseBlobList;
10
+ exports.parseContainerList = parseContainerList;
11
+ exports.getBlobs = getBlobs;
12
+ exports.getContainers = getContainers;
13
+ const change_case_1 = require("change-case");
14
+ const n8n_workflow_1 = require("n8n-workflow");
15
+ const xml2js_1 = require("xml2js");
16
+ const processors_1 = require("xml2js/lib/processors");
17
+ const compare_header_1 = require("./compare-header");
18
+ exports.XMsVersion = '2021-12-02';
19
+ exports.HeaderConstants = {
20
+ AUTHORIZATION: 'authorization',
21
+ CONTENT_ENCODING: 'content-encoding',
22
+ CONTENT_LANGUAGE: 'content-language',
23
+ CONTENT_LENGTH: 'content-length',
24
+ CONTENT_MD5: 'content-md5',
25
+ CONTENT_TYPE: 'content-Type',
26
+ DATE: 'date',
27
+ ETAG: 'etag',
28
+ IF_MATCH: 'if-match',
29
+ IF_MODIFIED_SINCE: 'if-Modified-since',
30
+ IF_NONE_MATCH: 'if-none-match',
31
+ IF_UNMODIFIED_SINCE: 'if-unmodified-since',
32
+ ORIGIN: 'origin',
33
+ RANGE: 'range',
34
+ X_MS_COPY_SOURCE: 'x-ms-copy-source',
35
+ X_MS_DATE: 'x-ms-date',
36
+ X_MS_VERSION: 'x-ms-version',
37
+ X_MS_BLOB_TYPE: 'x-ms-blob-type',
38
+ X_MS_BLOB_CONTENT_DISPOSITION: 'x-ms-blob-content-disposition',
39
+ X_MS_BLOB_PUBLIC_ACCESS: 'x-ms-blob-public-access',
40
+ X_MS_HAS_IMMUTABILITY_POLICY: 'x-ms-has-immutability-policy',
41
+ X_MS_HAS_LEGAL_HOLD: 'x-ms-has-legal-hold',
42
+ X_MS_CONTENT_CRC64: 'x-ms-content-crc64',
43
+ X_MS_REQUEST_SERVER_ENCRYPTED: 'x-ms-request-server-encrypted',
44
+ X_MS_ENCRYPTION_SCOPE: 'x-ms-encryption-scope',
45
+ X_MS_VERSION_ID: 'x-ms-version-id',
46
+ X_MS_TAG_COUNT: 'x-ms-tag-count',
47
+ X_MS_COPY_PROGRESS: 'x-ms-copy-progress',
48
+ X_MS_INCREMENTAL_COPY: 'x-ms-incremental-copy',
49
+ X_MS_BLOB_SEQUENCE_NUMBER: 'x-ms-blob-sequence-number',
50
+ X_MS_BLOB_COMMITTED_BLOCK_COUNT: 'x-ms-blob-committed-block-count',
51
+ X_MS_SERVER_ENCRYPTED: 'x-ms-server-encrypted',
52
+ X_MS_ENCRYPTION_CONTEXT: 'x-ms-encryption-context',
53
+ X_MS_BLOB_CONTENT_MD5: 'x-ms-blob-content-md5',
54
+ X_MS_BLOB_SEALED: 'x-ms-blob-sealed',
55
+ X_MS_IMMUTABILITY_POLICY_UNTIL_DATE: 'x-ms-immutability-policy-until-date',
56
+ X_MS_IMMUTABILITY_POLICY_MODE: 'x-ms-immutability-policy-mode',
57
+ X_MS_LEGAL_HOLD: 'x-ms-legal-hold',
58
+ X_MS_DELETE_TYPE_PERMANENT: 'x-ms-delete-type-permanent',
59
+ X_MS_ACCESS_TIER: 'x-ms-access-tier',
60
+ X_MS_BLOB_CACHE_CONTROL: 'x-ms-blob-cache-control',
61
+ X_MS_LEASE_ID: 'x-ms-lease-id',
62
+ X_MS_BLOB_CONTENT_ENCODING: 'x-ms-blob-content-encoding',
63
+ X_MS_BLOB_CONTENT_LANGUAGE: 'x-ms-blob-content-language',
64
+ X_MS_BLOB_CONTENT_TYPE: 'x-ms-blob-content-type',
65
+ X_MS_EXPIRY_OPTION: 'x-ms-expiry-option',
66
+ X_MS_EXPIRY_TIME: 'x-ms-expiry-time',
67
+ X_MS_TAGS: 'x-ms-tags',
68
+ X_MS_UPN: 'x-ms-upn',
69
+ PREFIX_X_MS: 'x-ms-',
70
+ PREFIX_X_MS_META: 'x-ms-meta-',
71
+ };
72
+ async function azureStorageApiRequest(method, endpoint, body = {}, qs, headers, url) {
73
+ const authentication = this.getNodeParameter('authentication', 0);
74
+ const credentialsType = authentication === 'oAuth2' ? 'azureStorageOAuth2Api' : 'azureStorageSharedKeyApi';
75
+ const credentials = await this.getCredentials(credentialsType);
76
+ const options = {
77
+ method,
78
+ url: url ?? `${credentials.baseUrl}${endpoint}`,
79
+ headers,
80
+ body,
81
+ qs,
82
+ };
83
+ options.headers ??= {};
84
+ options.headers[exports.HeaderConstants.X_MS_DATE] = new Date().toUTCString();
85
+ options.headers[exports.HeaderConstants.X_MS_VERSION] = exports.XMsVersion;
86
+ const response = (await this.helpers.requestWithAuthentication.call(this, credentialsType, options));
87
+ return response;
88
+ }
89
+ async function handleErrorPostReceive(data, response) {
90
+ if (String(response.statusCode).startsWith('4') || String(response.statusCode).startsWith('5')) {
91
+ const resource = this.getNodeParameter('resource');
92
+ const operation = this.getNodeParameter('operation');
93
+ const parser = new xml2js_1.Parser({
94
+ explicitArray: false,
95
+ tagNameProcessors: [processors_1.firstCharLowerCase],
96
+ });
97
+ const { error } = (await parser.parseStringPromise(data[0].json)) ?? {};
98
+ if (error?.code === 'InvalidAuthenticationInfo' &&
99
+ error?.authenticationErrorDetail ===
100
+ 'Lifetime validation failed. The token is expired.') {
101
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
102
+ message: 'Lifetime validation failed. The token is expired.',
103
+ description: 'Please check your credentials and try again',
104
+ });
105
+ }
106
+ if (resource === 'blob') {
107
+ if (error?.code === 'ContainerNotFound') {
108
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
109
+ message: "The required container doesn't match any existing one",
110
+ description: "Double-check the value in the parameter 'Container Name' and try again",
111
+ });
112
+ }
113
+ if (operation === 'create') {
114
+ if (this.getNodeParameter('from') === 'url' &&
115
+ ((error?.code === 'InvalidHeaderValue' &&
116
+ error?.headerName === exports.HeaderConstants.X_MS_COPY_SOURCE) ||
117
+ error?.code === 'CannotVerifyCopySource')) {
118
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
119
+ message: 'The provided URL is invalid',
120
+ description: "Double-check the value in the parameter 'URL' and try again",
121
+ });
122
+ }
123
+ }
124
+ else if (operation === 'delete') {
125
+ if (error?.code === 'BlobNotFound') {
126
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
127
+ message: "The required blob doesn't match any existing one",
128
+ description: "Double-check the value in the parameter 'Blob to Delete' and try again",
129
+ });
130
+ }
131
+ }
132
+ else if (operation === 'get') {
133
+ if (error?.code === 'BlobNotFound') {
134
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
135
+ message: "The required blob doesn't match any existing one",
136
+ description: "Double-check the value in the parameter 'Blob to Get' and try again",
137
+ });
138
+ }
139
+ }
140
+ else if (operation === 'getAll') {
141
+ if (error?.code === 'InvalidQueryParameterValue' &&
142
+ this.getNodeParameter('fields', []).includes('permissions')) {
143
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
144
+ message: 'Permissions field is only supported for accounts with a hierarchical namespace enabled',
145
+ description: "Exclude 'Permissions' from 'Fields' and try again",
146
+ });
147
+ }
148
+ if (error?.code === 'UnsupportedQueryParameter' &&
149
+ this.getNodeParameter('fields', []).includes('deleted') &&
150
+ this.getNodeParameter('filter', []).includes('deleted')) {
151
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
152
+ message: "Including 'Deleted' field and filter is not supported",
153
+ description: "Exclude 'Deleted' from 'Fields' or 'Filter' and try again",
154
+ });
155
+ }
156
+ }
157
+ }
158
+ else if (resource === 'container') {
159
+ if (operation === 'create') {
160
+ if (error?.code === 'ContainerAlreadyExists') {
161
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
162
+ message: 'The specified container already exists',
163
+ description: "Use a unique value for 'Container Name' and try again",
164
+ });
165
+ }
166
+ if (error?.code === 'PublicAccessNotPermitted') {
167
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
168
+ message: 'Public access is not permitted on this storage account',
169
+ description: "Check the 'Access Level' and try again",
170
+ });
171
+ }
172
+ }
173
+ else if (operation === 'delete') {
174
+ if (error?.code === 'ContainerNotFound') {
175
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
176
+ message: "The required container doesn't match any existing one",
177
+ description: "Double-check the value in the parameter 'Container to Delete' and try again",
178
+ });
179
+ }
180
+ }
181
+ else if (operation === 'get') {
182
+ if (error?.code === 'ContainerNotFound') {
183
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
184
+ message: "The required container doesn't match any existing one",
185
+ description: "Double-check the value in the parameter 'Container to Get' and try again",
186
+ });
187
+ }
188
+ }
189
+ else if (operation === 'getAll') {
190
+ }
191
+ }
192
+ if (error) {
193
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), response, {
194
+ message: error.code,
195
+ description: error.message,
196
+ });
197
+ }
198
+ else {
199
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), response, {
200
+ parseXml: true,
201
+ });
202
+ }
203
+ }
204
+ return data;
205
+ }
206
+ function getCanonicalizedHeadersString(requestOptions) {
207
+ let headersArray = [];
208
+ for (const [name, value] of Object.entries(requestOptions.headers)) {
209
+ if (name.toLowerCase().startsWith(exports.HeaderConstants.PREFIX_X_MS)) {
210
+ headersArray.push({ name, value });
211
+ }
212
+ }
213
+ headersArray.sort((a, b) => {
214
+ return (0, compare_header_1.compareHeader)(a.name.toLowerCase(), b.name.toLowerCase());
215
+ });
216
+ headersArray = headersArray.filter((value, index, array) => {
217
+ if (index > 0 && value.name.toLowerCase() === array[index - 1].name.toLowerCase()) {
218
+ return false;
219
+ }
220
+ return true;
221
+ });
222
+ let canonicalizedHeadersStringToSign = '';
223
+ headersArray.forEach((header) => {
224
+ canonicalizedHeadersStringToSign += `${header.name
225
+ .toLowerCase()
226
+ .trimEnd()}:${header.value.trimStart()}\n`;
227
+ });
228
+ return canonicalizedHeadersStringToSign;
229
+ }
230
+ function getCanonicalizedResourceString(requestOptions, credentials) {
231
+ const path = new URL(requestOptions.baseURL + requestOptions.url).pathname || '/';
232
+ let canonicalizedResourceString = `/${credentials.account}${path}`;
233
+ if (requestOptions.qs && Object.keys(requestOptions.qs).length > 0) {
234
+ canonicalizedResourceString +=
235
+ '\n' +
236
+ Object.keys(requestOptions.qs)
237
+ .sort()
238
+ .map((key) => `${key.toLowerCase()}:${decodeURIComponent(requestOptions.qs[key])}`)
239
+ .join('\n');
240
+ }
241
+ return canonicalizedResourceString;
242
+ }
243
+ function parseHeaders(headers) {
244
+ const parseBooleanHeaders = [
245
+ exports.HeaderConstants.X_MS_DELETE_TYPE_PERMANENT,
246
+ exports.HeaderConstants.X_MS_INCREMENTAL_COPY,
247
+ exports.HeaderConstants.X_MS_SERVER_ENCRYPTED,
248
+ exports.HeaderConstants.X_MS_BLOB_SEALED,
249
+ exports.HeaderConstants.X_MS_REQUEST_SERVER_ENCRYPTED,
250
+ exports.HeaderConstants.X_MS_HAS_IMMUTABILITY_POLICY,
251
+ exports.HeaderConstants.X_MS_HAS_LEGAL_HOLD,
252
+ ];
253
+ const parseNumberHeaders = [
254
+ exports.HeaderConstants.X_MS_TAG_COUNT,
255
+ exports.HeaderConstants.CONTENT_LENGTH,
256
+ exports.HeaderConstants.X_MS_BLOB_SEQUENCE_NUMBER,
257
+ exports.HeaderConstants.X_MS_COPY_PROGRESS,
258
+ exports.HeaderConstants.X_MS_BLOB_COMMITTED_BLOCK_COUNT,
259
+ ];
260
+ const result = {};
261
+ const metadataKeys = Object.keys(headers).filter((x) => x.startsWith(exports.HeaderConstants.PREFIX_X_MS_META));
262
+ for (const key in headers) {
263
+ if (metadataKeys.includes(key)) {
264
+ continue;
265
+ }
266
+ let newKey = key.startsWith(exports.HeaderConstants.PREFIX_X_MS)
267
+ ? (0, change_case_1.camelCase)(key.replace(exports.HeaderConstants.PREFIX_X_MS, ''))
268
+ : (0, change_case_1.camelCase)(key);
269
+ newKey = newKey.replace('-', '');
270
+ const newValue = parseBooleanHeaders.includes(key)
271
+ ? (0, processors_1.parseBooleans)(headers[key])
272
+ : parseNumberHeaders.includes(key)
273
+ ? (0, processors_1.parseNumbers)(headers[key])
274
+ : headers[key];
275
+ result[newKey] = newValue;
276
+ }
277
+ if (metadataKeys.length > 0) {
278
+ result.metadata = {};
279
+ for (const key of metadataKeys) {
280
+ result.metadata[key.replace(exports.HeaderConstants.PREFIX_X_MS_META, '')] =
281
+ headers[key];
282
+ }
283
+ }
284
+ return result;
285
+ }
286
+ async function parseBlobList(xml) {
287
+ const parser = new xml2js_1.Parser({
288
+ explicitArray: false,
289
+ tagNameProcessors: [processors_1.firstCharLowerCase, (name) => name.replace('-', '')],
290
+ valueProcessors: [
291
+ function (value, name) {
292
+ if ([
293
+ 'deleted',
294
+ 'isCurrentVersion',
295
+ 'serverEncrypted',
296
+ 'incrementalCopy',
297
+ 'accessTierInferred',
298
+ 'isSealed',
299
+ 'legalHold',
300
+ ].includes(name)) {
301
+ return (0, processors_1.parseBooleans)(value);
302
+ }
303
+ else if ([
304
+ 'maxResults',
305
+ 'contentLength',
306
+ 'blobSequenceNumber',
307
+ 'remainingRetentionDays',
308
+ 'tagCount',
309
+ 'content-Length',
310
+ ].includes(name)) {
311
+ return (0, processors_1.parseNumbers)(value);
312
+ }
313
+ return value;
314
+ },
315
+ ],
316
+ });
317
+ const data = (await parser.parseStringPromise(xml));
318
+ if (typeof data.enumerationResults.blobs !== 'object') {
319
+ return { blobs: [] };
320
+ }
321
+ if (!Array.isArray(data.enumerationResults.blobs.blob)) {
322
+ data.enumerationResults.blobs.blob = [data.enumerationResults.blobs.blob];
323
+ }
324
+ for (const blob of data.enumerationResults.blobs.blob) {
325
+ if (blob.tags) {
326
+ if (!Array.isArray(blob.tags.tagSet.tag)) {
327
+ blob.tags.tagSet.tag = [
328
+ blob.tags.tagSet.tag,
329
+ ];
330
+ }
331
+ blob.tags = blob.tags.tagSet.tag;
332
+ }
333
+ }
334
+ for (const container of data.enumerationResults.blobs.blob) {
335
+ if (container.metadata === '') {
336
+ delete container.metadata;
337
+ }
338
+ if (container.orMetadata === '') {
339
+ delete container.orMetadata;
340
+ }
341
+ }
342
+ return {
343
+ blobs: data.enumerationResults.blobs.blob,
344
+ maxResults: data.enumerationResults.maxResults,
345
+ nextMarker: data.enumerationResults.nextMarker,
346
+ };
347
+ }
348
+ async function parseContainerList(xml) {
349
+ const parser = new xml2js_1.Parser({
350
+ explicitArray: false,
351
+ tagNameProcessors: [processors_1.firstCharLowerCase, (name) => name.replace('-', '')],
352
+ valueProcessors: [
353
+ function (value, name) {
354
+ if ([
355
+ 'deleted',
356
+ 'hasImmutabilityPolicy',
357
+ 'hasLegalHold',
358
+ 'preventEncryptionScopeOverride',
359
+ 'isImmutableStorageWithVersioningEnabled',
360
+ ].includes(name)) {
361
+ return (0, processors_1.parseBooleans)(value);
362
+ }
363
+ else if (['maxResults', 'remainingRetentionDays'].includes(name)) {
364
+ return (0, processors_1.parseNumbers)(value);
365
+ }
366
+ return value;
367
+ },
368
+ ],
369
+ });
370
+ const data = (await parser.parseStringPromise(xml));
371
+ if (typeof data.enumerationResults.containers !== 'object') {
372
+ return { containers: [] };
373
+ }
374
+ if (!Array.isArray(data.enumerationResults.containers.container)) {
375
+ data.enumerationResults.containers.container = [data.enumerationResults.containers.container];
376
+ }
377
+ for (const container of data.enumerationResults.containers.container) {
378
+ if (container.metadata === '') {
379
+ delete container.metadata;
380
+ }
381
+ }
382
+ return {
383
+ containers: data.enumerationResults.containers.container,
384
+ maxResults: data.enumerationResults.maxResults,
385
+ nextMarker: data.enumerationResults.nextMarker,
386
+ };
387
+ }
388
+ async function getBlobs(filter, paginationToken) {
389
+ const container = this.getNodeParameter('container');
390
+ let response;
391
+ const qs = {
392
+ restype: 'container',
393
+ comp: 'list',
394
+ };
395
+ if (paginationToken) {
396
+ qs.marker = paginationToken;
397
+ response = await azureStorageApiRequest.call(this, 'GET', `/${container.value}`, {}, qs);
398
+ }
399
+ else {
400
+ qs.maxresults = 5000;
401
+ if (filter) {
402
+ qs.prefix = filter;
403
+ }
404
+ response = await azureStorageApiRequest.call(this, 'GET', `/${container.value}`, {}, qs);
405
+ }
406
+ const data = await parseBlobList(response);
407
+ const results = data.blobs
408
+ .map((c) => ({
409
+ name: c.name,
410
+ value: c.name,
411
+ }))
412
+ .sort((a, b) => a.name.localeCompare(b.name, undefined, { numeric: true, sensitivity: 'base' }));
413
+ return {
414
+ results,
415
+ paginationToken: data.nextMarker,
416
+ };
417
+ }
418
+ async function getContainers(filter, paginationToken) {
419
+ let response;
420
+ const qs = {
421
+ comp: 'list',
422
+ };
423
+ if (paginationToken) {
424
+ qs.marker = paginationToken;
425
+ response = await azureStorageApiRequest.call(this, 'GET', '/', {}, qs);
426
+ }
427
+ else {
428
+ qs.maxresults = 5000;
429
+ if (filter) {
430
+ qs.prefix = filter;
431
+ }
432
+ response = await azureStorageApiRequest.call(this, 'GET', '/', {}, qs);
433
+ }
434
+ const data = await parseContainerList(response);
435
+ const results = data.containers
436
+ .map((c) => ({
437
+ name: c.name,
438
+ value: c.name,
439
+ }))
440
+ .sort((a, b) => a.name.localeCompare(b.name, undefined, { numeric: true, sensitivity: 'base' }));
441
+ return {
442
+ results,
443
+ paginationToken: data.nextMarker,
444
+ };
445
+ }
446
+ //# sourceMappingURL=GenericFunctions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../../nodes/Microsoft/Storage/GenericFunctions.ts"],"names":[],"mappings":";;;AA8EA,wDAoCC;AAED,wDAwIC;AAED,sEAgCC;AAED,wEAmBC;AAED,oCAoDC;AAED,sCAgFC;AAED,gDAuDC;AAED,4BAwCC;AAED,sCAqCC;AArkBD,6CAAwC;AAgBxC,+CAA4C;AAC5C,mCAAgC;AAChC,sDAAwF;AAExF,qDAAiD;AAEpC,QAAA,UAAU,GAAG,YAAY,CAAC;AAE1B,QAAA,eAAe,GAAG;IAC9B,aAAa,EAAE,eAAe;IAC9B,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,cAAc,EAAE,gBAAgB;IAChC,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,iBAAiB,EAAE,mBAAmB;IACtC,aAAa,EAAE,eAAe;IAC9B,mBAAmB,EAAE,qBAAqB;IAC1C,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,gBAAgB,EAAE,kBAAkB;IACpC,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,cAAc;IAC5B,cAAc,EAAE,gBAAgB;IAChC,6BAA6B,EAAE,+BAA+B;IAC9D,uBAAuB,EAAE,yBAAyB;IAClD,4BAA4B,EAAE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,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAC/E,CAAC;IAEH,OAAO;QACN,OAAO;QACP,eAAe,EAAE,IAAI,CAAC,UAAU;KAChC,CAAC;AACH,CAAC"}
@@ -0,0 +1,14 @@
1
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="200" height="200" >
2
+ <defs>
3
+ <linearGradient id="a" x1="9" y1="15.83" x2="9" y2="5.79" gradientUnits="userSpaceOnUse">
4
+ <stop offset="0" stop-color="#b3b3b3"/>
5
+ <stop offset=".26" stop-color="#c1c1c1"/>
6
+ <stop offset="1" stop-color="#e6e6e6"/>
7
+ </linearGradient>
8
+ </defs>
9
+ <path d="M.5 5.79h17v9.48a.57.57 0 01-.57.57H1.07a.57.57 0 01-.57-.57V5.79z" fill="url(#a)"/>
10
+ <path d="M1.07 2.17h15.86a.57.57 0 01.57.57v3.05H.5V2.73a.57.57 0 01.57-.56z" fill="#37c2b1"/>
11
+ <path d="M2.81 6.89h12.37a.27.27 0 01.26.27v1.4a.27.27 0 01-.26.27H2.81a.27.27 0 01-.26-.27v-1.4a.27.27 0 01.26-.27z" fill="#fff"/>
12
+ <path d="M2.82 9.68h12.37a.27.27 0 01.26.27v1.41a.27.27 0 01-.26.27H2.82a.27.27 0 01-.26-.27V10a.27.27 0 01.26-.32z" fill="#37c2b1"/>
13
+ <path d="M2.82 12.5h12.37a.27.27 0 01.26.27v1.41a.27.27 0 01-.26.27H2.82a.27.27 0 01-.26-.27v-1.41a.27.27 0 01.26-.27z" fill="#258277"/>
14
+ </svg>
@@ -0,0 +1,14 @@
1
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="200" height="200" >
2
+ <defs>
3
+ <linearGradient id="a" x1="9" y1="15.83" x2="9" y2="5.79" gradientUnits="userSpaceOnUse">
4
+ <stop offset="0" stop-color="#b3b3b3"/>
5
+ <stop offset=".26" stop-color="#c1c1c1"/>
6
+ <stop offset="1" stop-color="#e6e6e6"/>
7
+ </linearGradient>
8
+ </defs>
9
+ <path d="M.5 5.79h17v9.48a.57.57 0 01-.57.57H1.07a.57.57 0 01-.57-.57V5.79z" fill="url(#a)"/>
10
+ <path d="M1.07 2.17h15.86a.57.57 0 01.57.57v3.05H.5V2.73a.57.57 0 01.57-.56z" fill="#37c2b1"/>
11
+ <path d="M2.81 6.89h12.37a.27.27 0 01.26.27v1.4a.27.27 0 01-.26.27H2.81a.27.27 0 01-.26-.27v-1.4a.27.27 0 01.26-.27z" fill="#fff"/>
12
+ <path d="M2.82 9.68h12.37a.27.27 0 01.26.27v1.41a.27.27 0 01-.26.27H2.82a.27.27 0 01-.26-.27V10a.27.27 0 01.26-.32z" fill="#37c2b1"/>
13
+ <path d="M2.82 12.5h12.37a.27.27 0 01.26.27v1.41a.27.27 0 01-.26.27H2.82a.27.27 0 01-.26-.27v-1.41a.27.27 0 01.26-.27z" fill="#258277"/>
14
+ </svg>
@@ -0,0 +1 @@
1
+ export declare function compareHeader(lhs: string, rhs: string): number;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.compareHeader = compareHeader;
4
+ const table_lv0 = new Uint32Array([
5
+ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
6
+ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x71c, 0x0, 0x71f, 0x721,
7
+ 0x723, 0x725, 0x0, 0x0, 0x0, 0x72d, 0x803, 0x0, 0x0, 0x733, 0x0, 0xd03, 0xd1a, 0xd1c, 0xd1e,
8
+ 0xd20, 0xd22, 0xd24, 0xd26, 0xd28, 0xd2a, 0x0, 0x0,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0, 0x0, 0x0,
22
+ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
23
+ ]);
24
+ const table_lv4 = new Uint32Array([
25
+ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
26
+ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
27
+ 0x0, 0x8012, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8212, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
28
+ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
29
+ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
30
+ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
31
+ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
32
+ ]);
33
+ function isLessThan(lhs, rhs) {
34
+ const tables = [table_lv0, table_lv2, table_lv4];
35
+ let curr_level = 0;
36
+ let i = 0;
37
+ let j = 0;
38
+ while (curr_level < tables.length) {
39
+ if (curr_level === tables.length - 1 && i !== j) {
40
+ return i > j;
41
+ }
42
+ const weight1 = i < lhs.length ? tables[curr_level][lhs[i].charCodeAt(0)] : 0x1;
43
+ const weight2 = j < rhs.length ? tables[curr_level][rhs[j].charCodeAt(0)] : 0x1;
44
+ if (weight1 === 0x1 && weight2 === 0x1) {
45
+ i = 0;
46
+ j = 0;
47
+ ++curr_level;
48
+ }
49
+ else if (weight1 === weight2) {
50
+ ++i;
51
+ ++j;
52
+ }
53
+ else if (weight1 === 0) {
54
+ ++i;
55
+ }
56
+ else if (weight2 === 0) {
57
+ ++j;
58
+ }
59
+ else {
60
+ return weight1 < weight2;
61
+ }
62
+ }
63
+ return false;
64
+ }
65
+ function compareHeader(lhs, rhs) {
66
+ if (isLessThan(lhs, rhs))
67
+ return -1;
68
+ return 1;
69
+ }
70
+ //# sourceMappingURL=compare-header.js.map