n8n-nodes-base 1.86.1 → 1.87.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 (69) hide show
  1. package/dist/credentials/HttpBearerAuth.credentials.js +63 -0
  2. package/dist/credentials/HttpBearerAuth.credentials.js.map +1 -0
  3. package/dist/credentials/MicrosoftAzureCosmosDbSharedKeyApi.credentials.js +109 -0
  4. package/dist/credentials/MicrosoftAzureCosmosDbSharedKeyApi.credentials.js.map +1 -0
  5. package/dist/known/credentials.json +11 -0
  6. package/dist/known/nodes.json +4 -0
  7. package/dist/nodes/EmailReadImap/v2/utils.js +4 -1
  8. package/dist/nodes/EmailReadImap/v2/utils.js.map +1 -1
  9. package/dist/nodes/Form/Form.node.js +2 -2
  10. package/dist/nodes/Form/Form.node.js.map +1 -1
  11. package/dist/nodes/Form/v2/FormTriggerV2.node.js +2 -2
  12. package/dist/nodes/Form/v2/FormTriggerV2.node.js.map +1 -1
  13. package/dist/nodes/Microsoft/AzureCosmosDb/AzureCosmosDb.node.js +87 -0
  14. package/dist/nodes/Microsoft/AzureCosmosDb/AzureCosmosDb.node.js.map +1 -0
  15. package/dist/nodes/Microsoft/AzureCosmosDb/AzureCosmosDb.node.json +18 -0
  16. package/dist/nodes/Microsoft/AzureCosmosDb/AzureCosmosDb.svg +1 -0
  17. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/common.js +163 -0
  18. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/common.js.map +1 -0
  19. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/Container.resource.js +141 -0
  20. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/Container.resource.js.map +1 -0
  21. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/create.operation.js +166 -0
  22. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/create.operation.js.map +1 -0
  23. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/delete.operation.js +40 -0
  24. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/delete.operation.js.map +1 -0
  25. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/get.operation.js +47 -0
  26. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/get.operation.js.map +1 -0
  27. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/getAll.operation.js +47 -0
  28. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/getAll.operation.js.map +1 -0
  29. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/index.js +42 -0
  30. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/index.js.map +1 -0
  31. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/Item.resource.js +210 -0
  32. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/Item.resource.js.map +1 -0
  33. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/create.operation.js +72 -0
  34. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/create.operation.js.map +1 -0
  35. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/delete.operation.js +64 -0
  36. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/delete.operation.js.map +1 -0
  37. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/get.operation.js +77 -0
  38. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/get.operation.js.map +1 -0
  39. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/getAll.operation.js +48 -0
  40. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/getAll.operation.js.map +1 -0
  41. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/query.operation.js +102 -0
  42. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/query.operation.js.map +1 -0
  43. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/update.operation.js +83 -0
  44. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/update.operation.js.map +1 -0
  45. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/constants.js +52 -0
  46. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/constants.js.map +1 -0
  47. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/errorHandler.js +108 -0
  48. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/errorHandler.js.map +1 -0
  49. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/interfaces.js +17 -0
  50. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/interfaces.js.map +1 -0
  51. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/utils.js +200 -0
  52. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/utils.js.map +1 -0
  53. package/dist/nodes/Microsoft/AzureCosmosDb/methods/index.js +39 -0
  54. package/dist/nodes/Microsoft/AzureCosmosDb/methods/index.js.map +1 -0
  55. package/dist/nodes/Microsoft/AzureCosmosDb/methods/listSearch.js +75 -0
  56. package/dist/nodes/Microsoft/AzureCosmosDb/methods/listSearch.js.map +1 -0
  57. package/dist/nodes/Microsoft/AzureCosmosDb/transport/index.js +43 -0
  58. package/dist/nodes/Microsoft/AzureCosmosDb/transport/index.js.map +1 -0
  59. package/dist/nodes/Wait/Wait.node.js +2 -2
  60. package/dist/nodes/Wait/Wait.node.js.map +1 -1
  61. package/dist/nodes/Webhook/error.d.ts +8 -0
  62. package/dist/nodes/Webhook/utils.d.ts +32 -0
  63. package/dist/nodes/Webhook/utils.js +13 -0
  64. package/dist/nodes/Webhook/utils.js.map +1 -1
  65. package/dist/test/nodes/FakeCredentialsMap.js +6 -0
  66. package/dist/test/nodes/FakeCredentialsMap.js.map +1 -1
  67. package/dist/types/credentials.json +2 -0
  68. package/dist/types/nodes.json +6 -5
  69. package/package.json +9 -6
@@ -0,0 +1,163 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var common_exports = {};
20
+ __export(common_exports, {
21
+ containerResourceLocator: () => containerResourceLocator,
22
+ itemResourceLocator: () => itemResourceLocator,
23
+ paginationParameters: () => paginationParameters
24
+ });
25
+ module.exports = __toCommonJS(common_exports);
26
+ var import_constants = require("../helpers/constants");
27
+ var import_utils = require("../helpers/utils");
28
+ const containerResourceLocator = {
29
+ displayName: "Container",
30
+ name: "container",
31
+ default: {
32
+ mode: "list",
33
+ value: ""
34
+ },
35
+ modes: [
36
+ {
37
+ displayName: "From list",
38
+ name: "list",
39
+ type: "list",
40
+ typeOptions: {
41
+ searchListMethod: "searchContainers",
42
+ searchable: true
43
+ }
44
+ },
45
+ {
46
+ displayName: "By ID",
47
+ name: "id",
48
+ hint: "Enter the container ID",
49
+ placeholder: "e.g. AndersenFamily",
50
+ type: "string",
51
+ validation: [
52
+ {
53
+ type: "regex",
54
+ properties: {
55
+ regex: "^[\\w+=,.@-]+$",
56
+ errorMessage: "The container ID must follow the allowed pattern"
57
+ }
58
+ }
59
+ ]
60
+ }
61
+ ],
62
+ required: true,
63
+ type: "resourceLocator"
64
+ };
65
+ const itemResourceLocator = {
66
+ displayName: "Item",
67
+ name: "item",
68
+ default: {
69
+ mode: "list",
70
+ value: ""
71
+ },
72
+ displayOptions: {
73
+ hide: {
74
+ ...import_utils.untilContainerSelected
75
+ }
76
+ },
77
+ modes: [
78
+ {
79
+ displayName: "From list",
80
+ name: "list",
81
+ type: "list",
82
+ typeOptions: {
83
+ searchListMethod: "searchItems",
84
+ searchable: true
85
+ }
86
+ },
87
+ {
88
+ displayName: "By ID",
89
+ name: "id",
90
+ hint: "Enter the item ID",
91
+ placeholder: "e.g. AndersenFamily",
92
+ type: "string",
93
+ validation: [
94
+ {
95
+ type: "regex",
96
+ properties: {
97
+ regex: "^[\\w+=,.@-]+$",
98
+ errorMessage: "The item ID must follow the allowed pattern"
99
+ }
100
+ }
101
+ ]
102
+ }
103
+ ],
104
+ required: true,
105
+ type: "resourceLocator"
106
+ };
107
+ const paginationParameters = [
108
+ {
109
+ displayName: "Return All",
110
+ name: "returnAll",
111
+ default: false,
112
+ description: "Whether to return all results or only up to a given limit",
113
+ routing: {
114
+ send: {
115
+ paginate: "={{ $value }}"
116
+ },
117
+ operations: {
118
+ pagination: {
119
+ type: "generic",
120
+ properties: {
121
+ continue: `={{ !!$response.headers?.["${import_constants.HeaderConstants.X_MS_CONTINUATION}"] }}`,
122
+ request: {
123
+ headers: {
124
+ [import_constants.HeaderConstants.X_MS_CONTINUATION]: `={{ $response.headers?.["${import_constants.HeaderConstants.X_MS_CONTINUATION}"] }}`
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }
130
+ },
131
+ type: "boolean"
132
+ },
133
+ {
134
+ displayName: "Limit",
135
+ name: "limit",
136
+ default: 50,
137
+ description: "Max number of results to return",
138
+ displayOptions: {
139
+ show: {
140
+ returnAll: [false]
141
+ }
142
+ },
143
+ routing: {
144
+ request: {
145
+ headers: {
146
+ [import_constants.HeaderConstants.X_MS_MAX_ITEM_COUNT]: "={{ $value || undefined }}"
147
+ }
148
+ }
149
+ },
150
+ type: "number",
151
+ typeOptions: {
152
+ minValue: 1
153
+ },
154
+ validateType: "number"
155
+ }
156
+ ];
157
+ // Annotate the CommonJS export names for ESM import in node:
158
+ 0 && (module.exports = {
159
+ containerResourceLocator,
160
+ itemResourceLocator,
161
+ paginationParameters
162
+ });
163
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Microsoft/AzureCosmosDb/descriptions/common.ts"],"sourcesContent":["import type { INodeProperties } from 'n8n-workflow';\n\nimport { HeaderConstants } from '../helpers/constants';\nimport { untilContainerSelected } from '../helpers/utils';\n\nexport const containerResourceLocator: INodeProperties = {\n\tdisplayName: 'Container',\n\tname: 'container',\n\tdefault: {\n\t\tmode: 'list',\n\t\tvalue: '',\n\t},\n\tmodes: [\n\t\t{\n\t\t\tdisplayName: 'From list',\n\t\t\tname: 'list',\n\t\t\ttype: 'list',\n\t\t\ttypeOptions: {\n\t\t\t\tsearchListMethod: 'searchContainers',\n\t\t\t\tsearchable: true,\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tdisplayName: 'By ID',\n\t\t\tname: 'id',\n\t\t\thint: 'Enter the container ID',\n\t\t\tplaceholder: 'e.g. AndersenFamily',\n\t\t\ttype: 'string',\n\t\t\tvalidation: [\n\t\t\t\t{\n\t\t\t\t\ttype: 'regex',\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tregex: '^[\\\\w+=,.@-]+$',\n\t\t\t\t\t\terrorMessage: 'The container ID must follow the allowed pattern',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t],\n\trequired: true,\n\ttype: 'resourceLocator',\n};\n\nexport const itemResourceLocator: INodeProperties = {\n\tdisplayName: 'Item',\n\tname: 'item',\n\tdefault: {\n\t\tmode: 'list',\n\t\tvalue: '',\n\t},\n\tdisplayOptions: {\n\t\thide: {\n\t\t\t...untilContainerSelected,\n\t\t},\n\t},\n\tmodes: [\n\t\t{\n\t\t\tdisplayName: 'From list',\n\t\t\tname: 'list',\n\t\t\ttype: 'list',\n\t\t\ttypeOptions: {\n\t\t\t\tsearchListMethod: 'searchItems',\n\t\t\t\tsearchable: true,\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tdisplayName: 'By ID',\n\t\t\tname: 'id',\n\t\t\thint: 'Enter the item ID',\n\t\t\tplaceholder: 'e.g. AndersenFamily',\n\t\t\ttype: 'string',\n\t\t\tvalidation: [\n\t\t\t\t{\n\t\t\t\t\ttype: 'regex',\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tregex: '^[\\\\w+=,.@-]+$',\n\t\t\t\t\t\terrorMessage: 'The item ID must follow the allowed pattern',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t],\n\trequired: true,\n\ttype: 'resourceLocator',\n};\n\nexport const paginationParameters: INodeProperties[] = [\n\t{\n\t\tdisplayName: 'Return All',\n\t\tname: 'returnAll',\n\t\tdefault: false,\n\t\tdescription: 'Whether to return all results or only up to a given limit',\n\t\trouting: {\n\t\t\tsend: {\n\t\t\t\tpaginate: '={{ $value }}',\n\t\t\t},\n\t\t\toperations: {\n\t\t\t\tpagination: {\n\t\t\t\t\ttype: 'generic',\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tcontinue: `={{ !!$response.headers?.[\"${HeaderConstants.X_MS_CONTINUATION}\"] }}`,\n\t\t\t\t\t\trequest: {\n\t\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t\t[HeaderConstants.X_MS_CONTINUATION]: `={{ $response.headers?.[\"${HeaderConstants.X_MS_CONTINUATION}\"] }}`,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\ttype: 'boolean',\n\t},\n\t{\n\t\tdisplayName: 'Limit',\n\t\tname: 'limit',\n\t\tdefault: 50,\n\t\tdescription: 'Max number of results to return',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\treturnAll: [false],\n\t\t\t},\n\t\t},\n\t\trouting: {\n\t\t\trequest: {\n\t\t\t\theaders: {\n\t\t\t\t\t[HeaderConstants.X_MS_MAX_ITEM_COUNT]: '={{ $value || undefined }}',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\ttype: 'number',\n\t\ttypeOptions: {\n\t\t\tminValue: 1,\n\t\t},\n\t\tvalidateType: 'number',\n\t},\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,uBAAgC;AAChC,mBAAuC;AAEhC,MAAM,2BAA4C;AAAA,EACxD,aAAa;AAAA,EACb,MAAM;AAAA,EACN,SAAS;AAAA,IACR,MAAM;AAAA,IACN,OAAO;AAAA,EACR;AAAA,EACA,OAAO;AAAA,IACN;AAAA,MACC,aAAa;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,MACN,aAAa;AAAA,QACZ,kBAAkB;AAAA,QAClB,YAAY;AAAA,MACb;AAAA,IACD;AAAA,IACA;AAAA,MACC,aAAa;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,MACN,aAAa;AAAA,MACb,MAAM;AAAA,MACN,YAAY;AAAA,QACX;AAAA,UACC,MAAM;AAAA,UACN,YAAY;AAAA,YACX,OAAO;AAAA,YACP,cAAc;AAAA,UACf;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,EACA,UAAU;AAAA,EACV,MAAM;AACP;AAEO,MAAM,sBAAuC;AAAA,EACnD,aAAa;AAAA,EACb,MAAM;AAAA,EACN,SAAS;AAAA,IACR,MAAM;AAAA,IACN,OAAO;AAAA,EACR;AAAA,EACA,gBAAgB;AAAA,IACf,MAAM;AAAA,MACL,GAAG;AAAA,IACJ;AAAA,EACD;AAAA,EACA,OAAO;AAAA,IACN;AAAA,MACC,aAAa;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,MACN,aAAa;AAAA,QACZ,kBAAkB;AAAA,QAClB,YAAY;AAAA,MACb;AAAA,IACD;AAAA,IACA;AAAA,MACC,aAAa;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,MACN,aAAa;AAAA,MACb,MAAM;AAAA,MACN,YAAY;AAAA,QACX;AAAA,UACC,MAAM;AAAA,UACN,YAAY;AAAA,YACX,OAAO;AAAA,YACP,cAAc;AAAA,UACf;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,EACA,UAAU;AAAA,EACV,MAAM;AACP;AAEO,MAAM,uBAA0C;AAAA,EACtD;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,IACb,SAAS;AAAA,MACR,MAAM;AAAA,QACL,UAAU;AAAA,MACX;AAAA,MACA,YAAY;AAAA,QACX,YAAY;AAAA,UACX,MAAM;AAAA,UACN,YAAY;AAAA,YACX,UAAU,8BAA8B,iCAAgB,iBAAiB;AAAA,YACzE,SAAS;AAAA,cACR,SAAS;AAAA,gBACR,CAAC,iCAAgB,iBAAiB,GAAG,4BAA4B,iCAAgB,iBAAiB;AAAA,cACnG;AAAA,YACD;AAAA,UACD;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,IACA,MAAM;AAAA,EACP;AAAA,EACA;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,IACb,gBAAgB;AAAA,MACf,MAAM;AAAA,QACL,WAAW,CAAC,KAAK;AAAA,MAClB;AAAA,IACD;AAAA,IACA,SAAS;AAAA,MACR,SAAS;AAAA,QACR,SAAS;AAAA,UACR,CAAC,iCAAgB,mBAAmB,GAAG;AAAA,QACxC;AAAA,MACD;AAAA,IACD;AAAA,IACA,MAAM;AAAA,IACN,aAAa;AAAA,MACZ,UAAU;AAAA,IACX;AAAA,IACA,cAAc;AAAA,EACf;AACD;","names":[]}
@@ -0,0 +1,141 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var Container_resource_exports = {};
30
+ __export(Container_resource_exports, {
31
+ description: () => description
32
+ });
33
+ module.exports = __toCommonJS(Container_resource_exports);
34
+ var create = __toESM(require("./create.operation"));
35
+ var del = __toESM(require("./delete.operation"));
36
+ var get = __toESM(require("./get.operation"));
37
+ var getAll = __toESM(require("./getAll.operation"));
38
+ var import_errorHandler = require("../../helpers/errorHandler");
39
+ var import_utils = require("../../helpers/utils");
40
+ const description = [
41
+ {
42
+ displayName: "Operation",
43
+ name: "operation",
44
+ type: "options",
45
+ noDataExpression: true,
46
+ displayOptions: {
47
+ show: {
48
+ resource: ["container"]
49
+ }
50
+ },
51
+ options: [
52
+ {
53
+ name: "Create",
54
+ value: "create",
55
+ description: "Create a container",
56
+ routing: {
57
+ request: {
58
+ method: "POST",
59
+ url: "/colls"
60
+ },
61
+ output: {
62
+ postReceive: [import_errorHandler.handleError]
63
+ }
64
+ },
65
+ action: "Create container"
66
+ },
67
+ {
68
+ name: "Delete",
69
+ value: "delete",
70
+ description: "Delete a container",
71
+ routing: {
72
+ request: {
73
+ method: "DELETE",
74
+ url: '=/colls/{{ $parameter["container"] }}'
75
+ },
76
+ output: {
77
+ postReceive: [
78
+ import_errorHandler.handleError,
79
+ {
80
+ type: "set",
81
+ properties: {
82
+ value: '={{ { "deleted": true } }}'
83
+ }
84
+ }
85
+ ]
86
+ }
87
+ },
88
+ action: "Delete container"
89
+ },
90
+ {
91
+ name: "Get",
92
+ value: "get",
93
+ description: "Retrieve a container",
94
+ routing: {
95
+ request: {
96
+ method: "GET",
97
+ url: '=/colls/{{ $parameter["container"] }}'
98
+ },
99
+ output: {
100
+ postReceive: [import_errorHandler.handleError, import_utils.simplifyData]
101
+ }
102
+ },
103
+ action: "Get container"
104
+ },
105
+ {
106
+ name: "Get Many",
107
+ value: "getAll",
108
+ description: "Retrieve a list of containers",
109
+ routing: {
110
+ request: {
111
+ method: "GET",
112
+ url: "/colls"
113
+ },
114
+ output: {
115
+ postReceive: [
116
+ import_errorHandler.handleError,
117
+ {
118
+ type: "rootProperty",
119
+ properties: {
120
+ property: "DocumentCollections"
121
+ }
122
+ },
123
+ import_utils.simplifyData
124
+ ]
125
+ }
126
+ },
127
+ action: "Get many containers"
128
+ }
129
+ ],
130
+ default: "getAll"
131
+ },
132
+ ...create.description,
133
+ ...del.description,
134
+ ...get.description,
135
+ ...getAll.description
136
+ ];
137
+ // Annotate the CommonJS export names for ESM import in node:
138
+ 0 && (module.exports = {
139
+ description
140
+ });
141
+ //# sourceMappingURL=Container.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Microsoft/AzureCosmosDb/descriptions/container/Container.resource.ts"],"sourcesContent":["import type { INodeProperties } from 'n8n-workflow';\n\nimport * as create from './create.operation';\nimport * as del from './delete.operation';\nimport * as get from './get.operation';\nimport * as getAll from './getAll.operation';\nimport { handleError } from '../../helpers/errorHandler';\nimport { simplifyData } from '../../helpers/utils';\n\nexport const description: INodeProperties[] = [\n\t{\n\t\tdisplayName: 'Operation',\n\t\tname: 'operation',\n\t\ttype: 'options',\n\t\tnoDataExpression: true,\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['container'],\n\t\t\t},\n\t\t},\n\t\toptions: [\n\t\t\t{\n\t\t\t\tname: 'Create',\n\t\t\t\tvalue: 'create',\n\t\t\t\tdescription: 'Create a container',\n\t\t\t\trouting: {\n\t\t\t\t\trequest: {\n\t\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\t\turl: '/colls',\n\t\t\t\t\t},\n\t\t\t\t\toutput: {\n\t\t\t\t\t\tpostReceive: [handleError],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\taction: 'Create container',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Delete',\n\t\t\t\tvalue: 'delete',\n\t\t\t\tdescription: 'Delete a container',\n\t\t\t\trouting: {\n\t\t\t\t\trequest: {\n\t\t\t\t\t\tmethod: 'DELETE',\n\t\t\t\t\t\turl: '=/colls/{{ $parameter[\"container\"] }}',\n\t\t\t\t\t},\n\t\t\t\t\toutput: {\n\t\t\t\t\t\tpostReceive: [\n\t\t\t\t\t\t\thandleError,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: 'set',\n\t\t\t\t\t\t\t\tproperties: {\n\t\t\t\t\t\t\t\t\tvalue: '={{ { \"deleted\": true } }}',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\taction: 'Delete container',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Get',\n\t\t\t\tvalue: 'get',\n\t\t\t\tdescription: 'Retrieve a container',\n\t\t\t\trouting: {\n\t\t\t\t\trequest: {\n\t\t\t\t\t\tmethod: 'GET',\n\t\t\t\t\t\turl: '=/colls/{{ $parameter[\"container\"] }}',\n\t\t\t\t\t},\n\t\t\t\t\toutput: {\n\t\t\t\t\t\tpostReceive: [handleError, simplifyData],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\taction: 'Get container',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Get Many',\n\t\t\t\tvalue: 'getAll',\n\t\t\t\tdescription: 'Retrieve a list of containers',\n\t\t\t\trouting: {\n\t\t\t\t\trequest: {\n\t\t\t\t\t\tmethod: 'GET',\n\t\t\t\t\t\turl: '/colls',\n\t\t\t\t\t},\n\t\t\t\t\toutput: {\n\t\t\t\t\t\tpostReceive: [\n\t\t\t\t\t\t\thandleError,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: 'rootProperty',\n\t\t\t\t\t\t\t\tproperties: {\n\t\t\t\t\t\t\t\t\tproperty: 'DocumentCollections',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsimplifyData,\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\taction: 'Get many containers',\n\t\t\t},\n\t\t],\n\t\tdefault: 'getAll',\n\t},\n\n\t...create.description,\n\t...del.description,\n\t...get.description,\n\t...getAll.description,\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,aAAwB;AACxB,UAAqB;AACrB,UAAqB;AACrB,aAAwB;AACxB,0BAA4B;AAC5B,mBAA6B;AAEtB,MAAM,cAAiC;AAAA,EAC7C;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,MAAM;AAAA,IACN,kBAAkB;AAAA,IAClB,gBAAgB;AAAA,MACf,MAAM;AAAA,QACL,UAAU,CAAC,WAAW;AAAA,MACvB;AAAA,IACD;AAAA,IACA,SAAS;AAAA,MACR;AAAA,QACC,MAAM;AAAA,QACN,OAAO;AAAA,QACP,aAAa;AAAA,QACb,SAAS;AAAA,UACR,SAAS;AAAA,YACR,QAAQ;AAAA,YACR,KAAK;AAAA,UACN;AAAA,UACA,QAAQ;AAAA,YACP,aAAa,CAAC,+BAAW;AAAA,UAC1B;AAAA,QACD;AAAA,QACA,QAAQ;AAAA,MACT;AAAA,MACA;AAAA,QACC,MAAM;AAAA,QACN,OAAO;AAAA,QACP,aAAa;AAAA,QACb,SAAS;AAAA,UACR,SAAS;AAAA,YACR,QAAQ;AAAA,YACR,KAAK;AAAA,UACN;AAAA,UACA,QAAQ;AAAA,YACP,aAAa;AAAA,cACZ;AAAA,cACA;AAAA,gBACC,MAAM;AAAA,gBACN,YAAY;AAAA,kBACX,OAAO;AAAA,gBACR;AAAA,cACD;AAAA,YACD;AAAA,UACD;AAAA,QACD;AAAA,QACA,QAAQ;AAAA,MACT;AAAA,MACA;AAAA,QACC,MAAM;AAAA,QACN,OAAO;AAAA,QACP,aAAa;AAAA,QACb,SAAS;AAAA,UACR,SAAS;AAAA,YACR,QAAQ;AAAA,YACR,KAAK;AAAA,UACN;AAAA,UACA,QAAQ;AAAA,YACP,aAAa,CAAC,iCAAa,yBAAY;AAAA,UACxC;AAAA,QACD;AAAA,QACA,QAAQ;AAAA,MACT;AAAA,MACA;AAAA,QACC,MAAM;AAAA,QACN,OAAO;AAAA,QACP,aAAa;AAAA,QACb,SAAS;AAAA,UACR,SAAS;AAAA,YACR,QAAQ;AAAA,YACR,KAAK;AAAA,UACN;AAAA,UACA,QAAQ;AAAA,YACP,aAAa;AAAA,cACZ;AAAA,cACA;AAAA,gBACC,MAAM;AAAA,gBACN,YAAY;AAAA,kBACX,UAAU;AAAA,gBACX;AAAA,cACD;AAAA,cACA;AAAA,YACD;AAAA,UACD;AAAA,QACD;AAAA,QACA,QAAQ;AAAA,MACT;AAAA,IACD;AAAA,IACA,SAAS;AAAA,EACV;AAAA,EAEA,GAAG,OAAO;AAAA,EACV,GAAG,IAAI;AAAA,EACP,GAAG,IAAI;AAAA,EACP,GAAG,OAAO;AACX;","names":[]}
@@ -0,0 +1,166 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var create_operation_exports = {};
20
+ __export(create_operation_exports, {
21
+ description: () => description
22
+ });
23
+ module.exports = __toCommonJS(create_operation_exports);
24
+ var import_n8n_workflow = require("n8n-workflow");
25
+ var import_constants = require("../../helpers/constants");
26
+ var import_utils = require("../../helpers/utils");
27
+ const properties = [
28
+ {
29
+ displayName: "ID",
30
+ name: "containerCreate",
31
+ default: "",
32
+ description: "Unique identifier for the new container",
33
+ placeholder: "e.g. Container1",
34
+ required: true,
35
+ routing: {
36
+ send: {
37
+ preSend: [
38
+ async function(requestOptions) {
39
+ const id = this.getNodeParameter("containerCreate");
40
+ if (/\s/.test(id)) {
41
+ throw new import_n8n_workflow.OperationalError("The container ID must not contain spaces.");
42
+ }
43
+ if (!/^[a-zA-Z0-9-_]+$/.test(id)) {
44
+ throw new import_n8n_workflow.OperationalError(
45
+ "The container ID may only contain letters, numbers, hyphens, and underscores."
46
+ );
47
+ }
48
+ requestOptions.body.id = id;
49
+ return requestOptions;
50
+ }
51
+ ]
52
+ }
53
+ },
54
+ type: "string"
55
+ },
56
+ {
57
+ displayName: "Partition Key",
58
+ name: "partitionKey",
59
+ default: '{\n "paths": [\n "/id"\n ],\n "kind": "Hash",\n "version": 2\n}',
60
+ description: "The partition key is used to automatically distribute data across partitions for scalability. Choose a property in your JSON document that has a wide range of values and evenly distributes request volume.",
61
+ required: true,
62
+ routing: {
63
+ send: {
64
+ preSend: [
65
+ async function(requestOptions) {
66
+ const rawPartitionKey = this.getNodeParameter("partitionKey");
67
+ const partitionKey = (0, import_utils.processJsonInput)(rawPartitionKey, "Partition Key", {
68
+ paths: ["/id"],
69
+ kind: "Hash",
70
+ version: 2
71
+ });
72
+ requestOptions.body.partitionKey = partitionKey;
73
+ return requestOptions;
74
+ }
75
+ ]
76
+ }
77
+ },
78
+ type: "json"
79
+ },
80
+ {
81
+ displayName: "Additional Fields",
82
+ name: "additionalFields",
83
+ default: {},
84
+ options: [
85
+ {
86
+ displayName: "Indexing Policy",
87
+ name: "indexingPolicy",
88
+ default: '{\n "indexingMode": "consistent",\n "automatic": true,\n "includedPaths": [\n {\n "path": "/*"\n }\n ],\n "excludedPaths": []\n}',
89
+ description: "This value is used to configure indexing policy",
90
+ routing: {
91
+ send: {
92
+ preSend: [
93
+ async function(requestOptions) {
94
+ const rawIndexingPolicy = this.getNodeParameter(
95
+ "additionalFields.indexingPolicy"
96
+ );
97
+ const indexPolicy = (0, import_utils.processJsonInput)(rawIndexingPolicy, "Indexing Policy");
98
+ requestOptions.body.indexingPolicy = indexPolicy;
99
+ return requestOptions;
100
+ }
101
+ ]
102
+ }
103
+ },
104
+ type: "json"
105
+ },
106
+ {
107
+ displayName: "Max RU/s (for Autoscale)",
108
+ name: "maxThroughput",
109
+ default: 1e3,
110
+ description: "The user specified autoscale max RU/s",
111
+ displayOptions: {
112
+ hide: {
113
+ "/additionalFields.offerThroughput": [{ _cnd: { exists: true } }]
114
+ }
115
+ },
116
+ routing: {
117
+ request: {
118
+ headers: {
119
+ [import_constants.HeaderConstants.X_MS_COSMOS_OFFER_AUTOPILOT_SETTING]: "={{ $value }}"
120
+ }
121
+ }
122
+ },
123
+ type: "number",
124
+ typeOptions: {
125
+ minValue: 1e3
126
+ }
127
+ },
128
+ {
129
+ displayName: "Manual Throughput RU/s",
130
+ name: "offerThroughput",
131
+ default: 400,
132
+ description: "The user specified manual throughput (RU/s) for the collection expressed in units of 100 request units per second",
133
+ displayOptions: {
134
+ hide: {
135
+ "/additionalFields.maxThroughput": [{ _cnd: { exists: true } }]
136
+ }
137
+ },
138
+ routing: {
139
+ request: {
140
+ headers: {
141
+ [import_constants.HeaderConstants.X_MS_OFFER_THROUGHPUT]: "={{ $value }}"
142
+ }
143
+ }
144
+ },
145
+ type: "number",
146
+ typeOptions: {
147
+ minValue: 400
148
+ }
149
+ }
150
+ ],
151
+ placeholder: "Add Option",
152
+ type: "collection"
153
+ }
154
+ ];
155
+ const displayOptions = {
156
+ show: {
157
+ resource: ["container"],
158
+ operation: ["create"]
159
+ }
160
+ };
161
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
162
+ // Annotate the CommonJS export names for ESM import in node:
163
+ 0 && (module.exports = {
164
+ description
165
+ });
166
+ //# sourceMappingURL=create.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Microsoft/AzureCosmosDb/descriptions/container/create.operation.ts"],"sourcesContent":["import type {\n\tIDataObject,\n\tIExecuteSingleFunctions,\n\tIHttpRequestOptions,\n\tINodeProperties,\n} from 'n8n-workflow';\nimport { OperationalError, updateDisplayOptions } from 'n8n-workflow';\n\nimport { HeaderConstants } from '../../helpers/constants';\nimport { processJsonInput } from '../../helpers/utils';\n\nconst properties: INodeProperties[] = [\n\t{\n\t\tdisplayName: 'ID',\n\t\tname: 'containerCreate',\n\t\tdefault: '',\n\t\tdescription: 'Unique identifier for the new container',\n\t\tplaceholder: 'e.g. Container1',\n\t\trequired: true,\n\t\trouting: {\n\t\t\tsend: {\n\t\t\t\tpreSend: [\n\t\t\t\t\tasync function (\n\t\t\t\t\t\tthis: IExecuteSingleFunctions,\n\t\t\t\t\t\trequestOptions: IHttpRequestOptions,\n\t\t\t\t\t): Promise<IHttpRequestOptions> {\n\t\t\t\t\t\tconst id = this.getNodeParameter('containerCreate') as string;\n\n\t\t\t\t\t\tif (/\\s/.test(id)) {\n\t\t\t\t\t\t\tthrow new OperationalError('The container ID must not contain spaces.');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!/^[a-zA-Z0-9-_]+$/.test(id)) {\n\t\t\t\t\t\t\tthrow new OperationalError(\n\t\t\t\t\t\t\t\t'The container ID may only contain letters, numbers, hyphens, and underscores.',\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t(requestOptions.body as IDataObject).id = id;\n\n\t\t\t\t\t\treturn requestOptions;\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t},\n\t\ttype: 'string',\n\t},\n\t{\n\t\tdisplayName: 'Partition Key',\n\t\tname: 'partitionKey',\n\t\tdefault: '{\\n\\t\"paths\": [\\n\\t\\t\"/id\"\\n\\t],\\n\\t\"kind\": \"Hash\",\\n\\t\"version\": 2\\n}',\n\t\tdescription:\n\t\t\t'The partition key is used to automatically distribute data across partitions for scalability. Choose a property in your JSON document that has a wide range of values and evenly distributes request volume.',\n\t\trequired: true,\n\t\trouting: {\n\t\t\tsend: {\n\t\t\t\tpreSend: [\n\t\t\t\t\tasync function (\n\t\t\t\t\t\tthis: IExecuteSingleFunctions,\n\t\t\t\t\t\trequestOptions: IHttpRequestOptions,\n\t\t\t\t\t): Promise<IHttpRequestOptions> {\n\t\t\t\t\t\tconst rawPartitionKey = this.getNodeParameter('partitionKey') as IDataObject;\n\t\t\t\t\t\tconst partitionKey = processJsonInput(rawPartitionKey, 'Partition Key', {\n\t\t\t\t\t\t\tpaths: ['/id'],\n\t\t\t\t\t\t\tkind: 'Hash',\n\t\t\t\t\t\t\tversion: 2,\n\t\t\t\t\t\t});\n\t\t\t\t\t\t(requestOptions.body as IDataObject).partitionKey = partitionKey;\n\t\t\t\t\t\treturn requestOptions;\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t},\n\t\ttype: 'json',\n\t},\n\t{\n\t\tdisplayName: 'Additional Fields',\n\t\tname: 'additionalFields',\n\t\tdefault: {},\n\t\toptions: [\n\t\t\t{\n\t\t\t\tdisplayName: 'Indexing Policy',\n\t\t\t\tname: 'indexingPolicy',\n\t\t\t\tdefault:\n\t\t\t\t\t'{\\n\\t\"indexingMode\": \"consistent\",\\n\\t\"automatic\": true,\\n\\t\"includedPaths\": [\\n\\t\\t{\\n\\t\\t\\t\"path\": \"/*\"\\n\\t\\t}\\n\\t],\\n\\t\"excludedPaths\": []\\n}',\n\t\t\t\tdescription: 'This value is used to configure indexing policy',\n\t\t\t\trouting: {\n\t\t\t\t\tsend: {\n\t\t\t\t\t\tpreSend: [\n\t\t\t\t\t\t\tasync function (\n\t\t\t\t\t\t\t\tthis: IExecuteSingleFunctions,\n\t\t\t\t\t\t\t\trequestOptions: IHttpRequestOptions,\n\t\t\t\t\t\t\t): Promise<IHttpRequestOptions> {\n\t\t\t\t\t\t\t\tconst rawIndexingPolicy = this.getNodeParameter(\n\t\t\t\t\t\t\t\t\t'additionalFields.indexingPolicy',\n\t\t\t\t\t\t\t\t) as IDataObject;\n\t\t\t\t\t\t\t\tconst indexPolicy = processJsonInput(rawIndexingPolicy, 'Indexing Policy');\n\t\t\t\t\t\t\t\t(requestOptions.body as IDataObject).indexingPolicy = indexPolicy;\n\t\t\t\t\t\t\t\treturn requestOptions;\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\ttype: 'json',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Max RU/s (for Autoscale)',\n\t\t\t\tname: 'maxThroughput',\n\t\t\t\tdefault: 1000,\n\t\t\t\tdescription: 'The user specified autoscale max RU/s',\n\t\t\t\tdisplayOptions: {\n\t\t\t\t\thide: {\n\t\t\t\t\t\t'/additionalFields.offerThroughput': [{ _cnd: { exists: true } }],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\trouting: {\n\t\t\t\t\trequest: {\n\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t[HeaderConstants.X_MS_COSMOS_OFFER_AUTOPILOT_SETTING]: '={{ $value }}',\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\ttype: 'number',\n\t\t\t\ttypeOptions: {\n\t\t\t\t\tminValue: 1000,\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Manual Throughput RU/s',\n\t\t\t\tname: 'offerThroughput',\n\t\t\t\tdefault: 400,\n\t\t\t\tdescription:\n\t\t\t\t\t'The user specified manual throughput (RU/s) for the collection expressed in units of 100 request units per second',\n\t\t\t\tdisplayOptions: {\n\t\t\t\t\thide: {\n\t\t\t\t\t\t'/additionalFields.maxThroughput': [{ _cnd: { exists: true } }],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\trouting: {\n\t\t\t\t\trequest: {\n\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t[HeaderConstants.X_MS_OFFER_THROUGHPUT]: '={{ $value }}',\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\ttype: 'number',\n\t\t\t\ttypeOptions: {\n\t\t\t\t\tminValue: 400,\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t\tplaceholder: 'Add Option',\n\t\ttype: 'collection',\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['container'],\n\t\toperation: ['create'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":"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","names":[]}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var delete_operation_exports = {};
20
+ __export(delete_operation_exports, {
21
+ description: () => description
22
+ });
23
+ module.exports = __toCommonJS(delete_operation_exports);
24
+ var import_n8n_workflow = require("n8n-workflow");
25
+ var import_common = require("../common");
26
+ const properties = [
27
+ { ...import_common.containerResourceLocator, description: "Select the container you want to delete" }
28
+ ];
29
+ const displayOptions = {
30
+ show: {
31
+ resource: ["container"],
32
+ operation: ["delete"]
33
+ }
34
+ };
35
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ description
39
+ });
40
+ //# sourceMappingURL=delete.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Microsoft/AzureCosmosDb/descriptions/container/delete.operation.ts"],"sourcesContent":["import { updateDisplayOptions, type INodeProperties } from 'n8n-workflow';\n\nimport { containerResourceLocator } from '../common';\n\nconst properties: INodeProperties[] = [\n\t{ ...containerResourceLocator, description: 'Select the container you want to delete' },\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['container'],\n\t\toperation: ['delete'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA2D;AAE3D,oBAAyC;AAEzC,MAAM,aAAgC;AAAA,EACrC,EAAE,GAAG,wCAA0B,aAAa,0CAA0C;AACvF;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,WAAW;AAAA,IACtB,WAAW,CAAC,QAAQ;AAAA,EACrB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var get_operation_exports = {};
20
+ __export(get_operation_exports, {
21
+ description: () => description
22
+ });
23
+ module.exports = __toCommonJS(get_operation_exports);
24
+ var import_n8n_workflow = require("n8n-workflow");
25
+ var import_common = require("../common");
26
+ const properties = [
27
+ { ...import_common.containerResourceLocator, description: "Select the container you want to retrieve" },
28
+ {
29
+ displayName: "Simplify",
30
+ name: "simple",
31
+ default: true,
32
+ description: "Whether to return a simplified version of the response instead of the raw data",
33
+ type: "boolean"
34
+ }
35
+ ];
36
+ const displayOptions = {
37
+ show: {
38
+ resource: ["container"],
39
+ operation: ["get"]
40
+ }
41
+ };
42
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
43
+ // Annotate the CommonJS export names for ESM import in node:
44
+ 0 && (module.exports = {
45
+ description
46
+ });
47
+ //# sourceMappingURL=get.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Microsoft/AzureCosmosDb/descriptions/container/get.operation.ts"],"sourcesContent":["import { updateDisplayOptions, type INodeProperties } from 'n8n-workflow';\n\nimport { containerResourceLocator } from '../common';\n\nconst properties: INodeProperties[] = [\n\t{ ...containerResourceLocator, description: 'Select the container you want to retrieve' },\n\t{\n\t\tdisplayName: 'Simplify',\n\t\tname: 'simple',\n\t\tdefault: true,\n\t\tdescription: 'Whether to return a simplified version of the response instead of the raw data',\n\t\ttype: 'boolean',\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['container'],\n\t\toperation: ['get'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA2D;AAE3D,oBAAyC;AAEzC,MAAM,aAAgC;AAAA,EACrC,EAAE,GAAG,wCAA0B,aAAa,4CAA4C;AAAA,EACxF;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AACD;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,WAAW;AAAA,IACtB,WAAW,CAAC,KAAK;AAAA,EAClB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var getAll_operation_exports = {};
20
+ __export(getAll_operation_exports, {
21
+ description: () => description
22
+ });
23
+ module.exports = __toCommonJS(getAll_operation_exports);
24
+ var import_n8n_workflow = require("n8n-workflow");
25
+ var import_common = require("../common");
26
+ const properties = [
27
+ ...import_common.paginationParameters,
28
+ {
29
+ displayName: "Simplify",
30
+ name: "simple",
31
+ default: true,
32
+ description: "Whether to return a simplified version of the response instead of the raw data",
33
+ type: "boolean"
34
+ }
35
+ ];
36
+ const displayOptions = {
37
+ show: {
38
+ resource: ["container"],
39
+ operation: ["getAll"]
40
+ }
41
+ };
42
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
43
+ // Annotate the CommonJS export names for ESM import in node:
44
+ 0 && (module.exports = {
45
+ description
46
+ });
47
+ //# sourceMappingURL=getAll.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Microsoft/AzureCosmosDb/descriptions/container/getAll.operation.ts"],"sourcesContent":["import { updateDisplayOptions, type INodeProperties } from 'n8n-workflow';\n\nimport { paginationParameters } from '../common';\n\nconst properties: INodeProperties[] = [\n\t...paginationParameters,\n\t{\n\t\tdisplayName: 'Simplify',\n\t\tname: 'simple',\n\t\tdefault: true,\n\t\tdescription: 'Whether to return a simplified version of the response instead of the raw data',\n\t\ttype: 'boolean',\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['container'],\n\t\toperation: ['getAll'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA2D;AAE3D,oBAAqC;AAErC,MAAM,aAAgC;AAAA,EACrC,GAAG;AAAA,EACH;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AACD;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,WAAW;AAAA,IACtB,WAAW,CAAC,QAAQ;AAAA,EACrB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}