n8n-nodes-base 1.86.0 → 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 (71) 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/Code/Pyodide.js +3 -1
  8. package/dist/nodes/Code/Pyodide.js.map +1 -1
  9. package/dist/nodes/EmailReadImap/v2/utils.js +4 -1
  10. package/dist/nodes/EmailReadImap/v2/utils.js.map +1 -1
  11. package/dist/nodes/Form/Form.node.js +2 -2
  12. package/dist/nodes/Form/Form.node.js.map +1 -1
  13. package/dist/nodes/Form/v2/FormTriggerV2.node.js +2 -2
  14. package/dist/nodes/Form/v2/FormTriggerV2.node.js.map +1 -1
  15. package/dist/nodes/Microsoft/AzureCosmosDb/AzureCosmosDb.node.js +87 -0
  16. package/dist/nodes/Microsoft/AzureCosmosDb/AzureCosmosDb.node.js.map +1 -0
  17. package/dist/nodes/Microsoft/AzureCosmosDb/AzureCosmosDb.node.json +18 -0
  18. package/dist/nodes/Microsoft/AzureCosmosDb/AzureCosmosDb.svg +1 -0
  19. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/common.js +163 -0
  20. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/common.js.map +1 -0
  21. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/Container.resource.js +141 -0
  22. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/Container.resource.js.map +1 -0
  23. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/create.operation.js +166 -0
  24. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/create.operation.js.map +1 -0
  25. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/delete.operation.js +40 -0
  26. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/delete.operation.js.map +1 -0
  27. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/get.operation.js +47 -0
  28. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/get.operation.js.map +1 -0
  29. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/getAll.operation.js +47 -0
  30. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/getAll.operation.js.map +1 -0
  31. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/index.js +42 -0
  32. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/index.js.map +1 -0
  33. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/Item.resource.js +210 -0
  34. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/Item.resource.js.map +1 -0
  35. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/create.operation.js +72 -0
  36. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/create.operation.js.map +1 -0
  37. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/delete.operation.js +64 -0
  38. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/delete.operation.js.map +1 -0
  39. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/get.operation.js +77 -0
  40. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/get.operation.js.map +1 -0
  41. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/getAll.operation.js +48 -0
  42. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/getAll.operation.js.map +1 -0
  43. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/query.operation.js +102 -0
  44. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/query.operation.js.map +1 -0
  45. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/update.operation.js +83 -0
  46. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/update.operation.js.map +1 -0
  47. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/constants.js +52 -0
  48. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/constants.js.map +1 -0
  49. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/errorHandler.js +108 -0
  50. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/errorHandler.js.map +1 -0
  51. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/interfaces.js +17 -0
  52. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/interfaces.js.map +1 -0
  53. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/utils.js +200 -0
  54. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/utils.js.map +1 -0
  55. package/dist/nodes/Microsoft/AzureCosmosDb/methods/index.js +39 -0
  56. package/dist/nodes/Microsoft/AzureCosmosDb/methods/index.js.map +1 -0
  57. package/dist/nodes/Microsoft/AzureCosmosDb/methods/listSearch.js +75 -0
  58. package/dist/nodes/Microsoft/AzureCosmosDb/methods/listSearch.js.map +1 -0
  59. package/dist/nodes/Microsoft/AzureCosmosDb/transport/index.js +43 -0
  60. package/dist/nodes/Microsoft/AzureCosmosDb/transport/index.js.map +1 -0
  61. package/dist/nodes/Wait/Wait.node.js +2 -2
  62. package/dist/nodes/Wait/Wait.node.js.map +1 -1
  63. package/dist/nodes/Webhook/error.d.ts +8 -0
  64. package/dist/nodes/Webhook/utils.d.ts +32 -0
  65. package/dist/nodes/Webhook/utils.js +13 -0
  66. package/dist/nodes/Webhook/utils.js.map +1 -1
  67. package/dist/test/nodes/FakeCredentialsMap.js +6 -0
  68. package/dist/test/nodes/FakeCredentialsMap.js.map +1 -1
  69. package/dist/types/credentials.json +2 -0
  70. package/dist/types/nodes.json +6 -5
  71. package/package.json +10 -7
@@ -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":[]}
@@ -0,0 +1,42 @@
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 descriptions_exports = {};
30
+ __export(descriptions_exports, {
31
+ container: () => container,
32
+ item: () => item
33
+ });
34
+ module.exports = __toCommonJS(descriptions_exports);
35
+ var container = __toESM(require("./container/Container.resource"));
36
+ var item = __toESM(require("./item/Item.resource"));
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ container,
40
+ item
41
+ });
42
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Microsoft/AzureCosmosDb/descriptions/index.ts"],"sourcesContent":["export * as container from './container/Container.resource';\nexport * as item from './item/Item.resource';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAA2B;AAC3B,WAAsB;","names":[]}
@@ -0,0 +1,210 @@
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 Item_resource_exports = {};
30
+ __export(Item_resource_exports, {
31
+ description: () => description
32
+ });
33
+ module.exports = __toCommonJS(Item_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 query = __toESM(require("./query.operation"));
39
+ var update = __toESM(require("./update.operation"));
40
+ var import_constants = require("../../helpers/constants");
41
+ var import_errorHandler = require("../../helpers/errorHandler");
42
+ var import_utils = require("../../helpers/utils");
43
+ const description = [
44
+ {
45
+ displayName: "Operation",
46
+ name: "operation",
47
+ type: "options",
48
+ noDataExpression: true,
49
+ displayOptions: {
50
+ show: {
51
+ resource: ["item"]
52
+ }
53
+ },
54
+ options: [
55
+ {
56
+ name: "Create",
57
+ value: "create",
58
+ description: "Create a new item",
59
+ routing: {
60
+ send: {
61
+ preSend: [import_utils.validatePartitionKey]
62
+ },
63
+ request: {
64
+ method: "POST",
65
+ url: '=/colls/{{ $parameter["container"] }}/docs',
66
+ headers: {
67
+ [import_constants.HeaderConstants.X_MS_DOCUMENTDB_IS_UPSERT]: "True"
68
+ }
69
+ },
70
+ output: {
71
+ postReceive: [import_errorHandler.handleError]
72
+ }
73
+ },
74
+ action: "Create item"
75
+ },
76
+ {
77
+ name: "Delete",
78
+ value: "delete",
79
+ description: "Delete an existing item",
80
+ routing: {
81
+ send: {
82
+ preSend: [import_utils.validatePartitionKey]
83
+ },
84
+ request: {
85
+ method: "DELETE",
86
+ url: '=/colls/{{ $parameter["container"] }}/docs/{{ $parameter["item"] }}'
87
+ },
88
+ output: {
89
+ postReceive: [
90
+ import_errorHandler.handleError,
91
+ {
92
+ type: "set",
93
+ properties: {
94
+ value: '={{ { "deleted": true } }}'
95
+ }
96
+ }
97
+ ]
98
+ }
99
+ },
100
+ action: "Delete item"
101
+ },
102
+ {
103
+ name: "Get",
104
+ value: "get",
105
+ description: "Retrieve an item",
106
+ routing: {
107
+ send: {
108
+ preSend: [import_utils.validatePartitionKey]
109
+ },
110
+ request: {
111
+ method: "GET",
112
+ url: '=/colls/{{ $parameter["container"]}}/docs/{{$parameter["item"]}}',
113
+ headers: {
114
+ [import_constants.HeaderConstants.X_MS_DOCUMENTDB_IS_UPSERT]: "True"
115
+ }
116
+ },
117
+ output: {
118
+ postReceive: [import_errorHandler.handleError, import_utils.simplifyData]
119
+ }
120
+ },
121
+ action: "Get item"
122
+ },
123
+ {
124
+ name: "Get Many",
125
+ value: "getAll",
126
+ description: "Retrieve a list of items",
127
+ routing: {
128
+ request: {
129
+ method: "GET",
130
+ url: '=/colls/{{ $parameter["container"] }}/docs'
131
+ },
132
+ output: {
133
+ postReceive: [
134
+ import_errorHandler.handleError,
135
+ {
136
+ type: "rootProperty",
137
+ properties: {
138
+ property: "Documents"
139
+ }
140
+ },
141
+ import_utils.simplifyData
142
+ ]
143
+ }
144
+ },
145
+ action: "Get many items"
146
+ },
147
+ {
148
+ name: "Execute Query",
149
+ value: "query",
150
+ routing: {
151
+ request: {
152
+ method: "POST",
153
+ url: '=/colls/{{ $parameter["container"] }}/docs',
154
+ headers: {
155
+ "Content-Type": "application/query+json",
156
+ "x-ms-documentdb-isquery": "True",
157
+ "x-ms-documentdb-query-enablecrosspartition": "True"
158
+ }
159
+ },
160
+ output: {
161
+ postReceive: [
162
+ import_errorHandler.handleError,
163
+ {
164
+ type: "rootProperty",
165
+ properties: {
166
+ property: "Documents"
167
+ }
168
+ },
169
+ import_utils.simplifyData
170
+ ]
171
+ }
172
+ },
173
+ action: "Query items"
174
+ },
175
+ {
176
+ name: "Update",
177
+ value: "update",
178
+ description: "Update an existing item",
179
+ routing: {
180
+ send: {
181
+ preSend: [import_utils.validatePartitionKey]
182
+ },
183
+ request: {
184
+ method: "PUT",
185
+ url: '=/colls/{{ $parameter["container"] }}/docs/{{ $parameter["item"] }}',
186
+ headers: {
187
+ "Content-Type": "application/json-patch+json"
188
+ }
189
+ },
190
+ output: {
191
+ postReceive: [import_errorHandler.handleError]
192
+ }
193
+ },
194
+ action: "Update item"
195
+ }
196
+ ],
197
+ default: "getAll"
198
+ },
199
+ ...create.description,
200
+ ...del.description,
201
+ ...get.description,
202
+ ...getAll.description,
203
+ ...query.description,
204
+ ...update.description
205
+ ];
206
+ // Annotate the CommonJS export names for ESM import in node:
207
+ 0 && (module.exports = {
208
+ description
209
+ });
210
+ //# sourceMappingURL=Item.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Microsoft/AzureCosmosDb/descriptions/item/Item.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 * as query from './query.operation';\nimport * as update from './update.operation';\nimport { HeaderConstants } from '../../helpers/constants';\nimport { handleError } from '../../helpers/errorHandler';\nimport { simplifyData, validatePartitionKey } 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: ['item'],\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 new item',\n\t\t\t\trouting: {\n\t\t\t\t\tsend: {\n\t\t\t\t\t\tpreSend: [validatePartitionKey],\n\t\t\t\t\t},\n\t\t\t\t\trequest: {\n\t\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\t\turl: '=/colls/{{ $parameter[\"container\"] }}/docs',\n\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t[HeaderConstants.X_MS_DOCUMENTDB_IS_UPSERT]: 'True',\n\t\t\t\t\t\t},\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 item',\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 an existing item',\n\t\t\t\trouting: {\n\t\t\t\t\tsend: {\n\t\t\t\t\t\tpreSend: [validatePartitionKey],\n\t\t\t\t\t},\n\t\t\t\t\trequest: {\n\t\t\t\t\t\tmethod: 'DELETE',\n\t\t\t\t\t\turl: '=/colls/{{ $parameter[\"container\"] }}/docs/{{ $parameter[\"item\"] }}',\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 item',\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 an item',\n\t\t\t\trouting: {\n\t\t\t\t\tsend: {\n\t\t\t\t\t\tpreSend: [validatePartitionKey],\n\t\t\t\t\t},\n\t\t\t\t\trequest: {\n\t\t\t\t\t\tmethod: 'GET',\n\t\t\t\t\t\turl: '=/colls/{{ $parameter[\"container\"]}}/docs/{{$parameter[\"item\"]}}',\n\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t[HeaderConstants.X_MS_DOCUMENTDB_IS_UPSERT]: 'True',\n\t\t\t\t\t\t},\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 item',\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 items',\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\"] }}/docs',\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: 'Documents',\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 items',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Execute Query',\n\t\t\t\tvalue: 'query',\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/{{ $parameter[\"container\"] }}/docs',\n\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t'Content-Type': 'application/query+json',\n\t\t\t\t\t\t\t'x-ms-documentdb-isquery': 'True',\n\t\t\t\t\t\t\t'x-ms-documentdb-query-enablecrosspartition': 'True',\n\t\t\t\t\t\t},\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: 'Documents',\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: 'Query items',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Update',\n\t\t\t\tvalue: 'update',\n\t\t\t\tdescription: 'Update an existing item',\n\t\t\t\trouting: {\n\t\t\t\t\tsend: {\n\t\t\t\t\t\tpreSend: [validatePartitionKey],\n\t\t\t\t\t},\n\t\t\t\t\trequest: {\n\t\t\t\t\t\tmethod: 'PUT',\n\t\t\t\t\t\turl: '=/colls/{{ $parameter[\"container\"] }}/docs/{{ $parameter[\"item\"] }}',\n\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t'Content-Type': 'application/json-patch+json',\n\t\t\t\t\t\t},\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: 'Update item',\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\t...query.description,\n\t...update.description,\n];\n"],"mappings":"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","names":[]}
@@ -0,0 +1,72 @@
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_utils = require("../../helpers/utils");
26
+ var import_common = require("../common");
27
+ const properties = [
28
+ { ...import_common.containerResourceLocator, description: "Select the container you want to use" },
29
+ {
30
+ displayName: "Item Contents",
31
+ name: "customProperties",
32
+ default: '{\n "id": "replace_with_new_document_id"\n}',
33
+ description: "The item contents as a JSON object",
34
+ displayOptions: {
35
+ hide: {
36
+ ...import_utils.untilContainerSelected
37
+ }
38
+ },
39
+ hint: "The item requires an ID and partition key value if a custom key is set",
40
+ required: true,
41
+ routing: {
42
+ send: {
43
+ preSend: [
44
+ async function(requestOptions) {
45
+ const rawCustomProperties = this.getNodeParameter("customProperties");
46
+ const customProperties = (0, import_utils.processJsonInput)(
47
+ rawCustomProperties,
48
+ "Item Contents",
49
+ void 0,
50
+ ["id"]
51
+ );
52
+ requestOptions.body = customProperties;
53
+ return requestOptions;
54
+ }
55
+ ]
56
+ }
57
+ },
58
+ type: "json"
59
+ }
60
+ ];
61
+ const displayOptions = {
62
+ show: {
63
+ resource: ["item"],
64
+ operation: ["create"]
65
+ }
66
+ };
67
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
68
+ // Annotate the CommonJS export names for ESM import in node:
69
+ 0 && (module.exports = {
70
+ description
71
+ });
72
+ //# sourceMappingURL=create.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Microsoft/AzureCosmosDb/descriptions/item/create.operation.ts"],"sourcesContent":["import type {\n\tIDataObject,\n\tIExecuteSingleFunctions,\n\tIHttpRequestOptions,\n\tINodeProperties,\n} from 'n8n-workflow';\nimport { updateDisplayOptions } from 'n8n-workflow';\n\nimport { processJsonInput, untilContainerSelected } from '../../helpers/utils';\nimport { containerResourceLocator } from '../common';\n\nconst properties: INodeProperties[] = [\n\t{ ...containerResourceLocator, description: 'Select the container you want to use' },\n\t{\n\t\tdisplayName: 'Item Contents',\n\t\tname: 'customProperties',\n\t\tdefault: '{\\n\\t\"id\": \"replace_with_new_document_id\"\\n}',\n\t\tdescription: 'The item contents as a JSON object',\n\t\tdisplayOptions: {\n\t\t\thide: {\n\t\t\t\t...untilContainerSelected,\n\t\t\t},\n\t\t},\n\t\thint: 'The item requires an ID and partition key value if a custom key is set',\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 rawCustomProperties = this.getNodeParameter('customProperties') as IDataObject;\n\t\t\t\t\t\tconst customProperties = processJsonInput(\n\t\t\t\t\t\t\trawCustomProperties,\n\t\t\t\t\t\t\t'Item Contents',\n\t\t\t\t\t\t\tundefined,\n\t\t\t\t\t\t\t['id'],\n\t\t\t\t\t\t);\n\t\t\t\t\t\trequestOptions.body = customProperties;\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];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['item'],\n\t\toperation: ['create'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,0BAAqC;AAErC,mBAAyD;AACzD,oBAAyC;AAEzC,MAAM,aAAgC;AAAA,EACrC,EAAE,GAAG,wCAA0B,aAAa,uCAAuC;AAAA,EACnF;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,IACb,gBAAgB;AAAA,MACf,MAAM;AAAA,QACL,GAAG;AAAA,MACJ;AAAA,IACD;AAAA,IACA,MAAM;AAAA,IACN,UAAU;AAAA,IACV,SAAS;AAAA,MACR,MAAM;AAAA,QACL,SAAS;AAAA,UACR,eAEC,gBAC+B;AAC/B,kBAAM,sBAAsB,KAAK,iBAAiB,kBAAkB;AACpE,kBAAM,uBAAmB;AAAA,cACxB;AAAA,cACA;AAAA,cACA;AAAA,cACA,CAAC,IAAI;AAAA,YACN;AACA,2BAAe,OAAO;AACtB,mBAAO;AAAA,UACR;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,IACA,MAAM;AAAA,EACP;AACD;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,MAAM;AAAA,IACjB,WAAW,CAAC,QAAQ;AAAA,EACrB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}
@@ -0,0 +1,64 @@
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_utils = require("../../helpers/utils");
26
+ var import_common = require("../common");
27
+ const properties = [
28
+ { ...import_common.containerResourceLocator, description: "Select the container you want to use" },
29
+ { ...import_common.itemResourceLocator, description: "Select the item to be deleted" },
30
+ {
31
+ displayName: "Additional Fields",
32
+ name: "additionalFields",
33
+ default: {},
34
+ displayOptions: {
35
+ hide: {
36
+ ...import_utils.untilContainerSelected,
37
+ ...import_utils.untilItemSelected
38
+ }
39
+ },
40
+ options: [
41
+ {
42
+ displayName: "Partition Key",
43
+ name: "partitionKey",
44
+ default: "",
45
+ hint: "Only required if a custom partition key is set for the container",
46
+ type: "string"
47
+ }
48
+ ],
49
+ placeholder: "Add Partition Key",
50
+ type: "collection"
51
+ }
52
+ ];
53
+ const displayOptions = {
54
+ show: {
55
+ resource: ["item"],
56
+ operation: ["delete"]
57
+ }
58
+ };
59
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
60
+ // Annotate the CommonJS export names for ESM import in node:
61
+ 0 && (module.exports = {
62
+ description
63
+ });
64
+ //# sourceMappingURL=delete.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Microsoft/AzureCosmosDb/descriptions/item/delete.operation.ts"],"sourcesContent":["import { updateDisplayOptions, type INodeProperties } from 'n8n-workflow';\n\nimport { untilContainerSelected, untilItemSelected } from '../../helpers/utils';\nimport { containerResourceLocator, itemResourceLocator } from '../common';\n\nconst properties: INodeProperties[] = [\n\t{ ...containerResourceLocator, description: 'Select the container you want to use' },\n\t{ ...itemResourceLocator, description: 'Select the item to be deleted' },\n\t{\n\t\tdisplayName: 'Additional Fields',\n\t\tname: 'additionalFields',\n\t\tdefault: {},\n\t\tdisplayOptions: {\n\t\t\thide: {\n\t\t\t\t...untilContainerSelected,\n\t\t\t\t...untilItemSelected,\n\t\t\t},\n\t\t},\n\t\toptions: [\n\t\t\t{\n\t\t\t\tdisplayName: 'Partition Key',\n\t\t\t\tname: 'partitionKey',\n\t\t\t\tdefault: '',\n\t\t\t\thint: 'Only required if a custom partition key is set for the container',\n\t\t\t\ttype: 'string',\n\t\t\t},\n\t\t],\n\t\tplaceholder: 'Add Partition Key',\n\t\ttype: 'collection',\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['item'],\n\t\toperation: ['delete'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA2D;AAE3D,mBAA0D;AAC1D,oBAA8D;AAE9D,MAAM,aAAgC;AAAA,EACrC,EAAE,GAAG,wCAA0B,aAAa,uCAAuC;AAAA,EACnF,EAAE,GAAG,mCAAqB,aAAa,gCAAgC;AAAA,EACvE;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IACV,gBAAgB;AAAA,MACf,MAAM;AAAA,QACL,GAAG;AAAA,QACH,GAAG;AAAA,MACJ;AAAA,IACD;AAAA,IACA,SAAS;AAAA,MACR;AAAA,QACC,aAAa;AAAA,QACb,MAAM;AAAA,QACN,SAAS;AAAA,QACT,MAAM;AAAA,QACN,MAAM;AAAA,MACP;AAAA,IACD;AAAA,IACA,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AACD;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,MAAM;AAAA,IACjB,WAAW,CAAC,QAAQ;AAAA,EACrB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}
@@ -0,0 +1,77 @@
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_utils = require("../../helpers/utils");
26
+ var import_common = require("../common");
27
+ const properties = [
28
+ { ...import_common.containerResourceLocator, description: "Select the container you want to use" },
29
+ { ...import_common.itemResourceLocator, description: "Select the item you want to retrieve" },
30
+ {
31
+ displayName: "Simplify",
32
+ name: "simple",
33
+ default: true,
34
+ description: "Whether to return a simplified version of the response instead of the raw data",
35
+ displayOptions: {
36
+ hide: {
37
+ ...import_utils.untilContainerSelected,
38
+ ...import_utils.untilItemSelected
39
+ }
40
+ },
41
+ type: "boolean"
42
+ },
43
+ {
44
+ displayName: "Additional Fields",
45
+ name: "additionalFields",
46
+ default: {},
47
+ displayOptions: {
48
+ hide: {
49
+ ...import_utils.untilContainerSelected,
50
+ ...import_utils.untilItemSelected
51
+ }
52
+ },
53
+ options: [
54
+ {
55
+ displayName: "Partition Key",
56
+ name: "partitionKey",
57
+ default: "",
58
+ hint: "Only required if a custom partition key is set for the container",
59
+ type: "string"
60
+ }
61
+ ],
62
+ placeholder: "Add Partition Key",
63
+ type: "collection"
64
+ }
65
+ ];
66
+ const displayOptions = {
67
+ show: {
68
+ resource: ["item"],
69
+ operation: ["get"]
70
+ }
71
+ };
72
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
73
+ // Annotate the CommonJS export names for ESM import in node:
74
+ 0 && (module.exports = {
75
+ description
76
+ });
77
+ //# sourceMappingURL=get.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Microsoft/AzureCosmosDb/descriptions/item/get.operation.ts"],"sourcesContent":["import { updateDisplayOptions, type INodeProperties } from 'n8n-workflow';\n\nimport { untilContainerSelected, untilItemSelected } from '../../helpers/utils';\nimport { containerResourceLocator, itemResourceLocator } from '../common';\n\nconst properties: INodeProperties[] = [\n\t{ ...containerResourceLocator, description: 'Select the container you want to use' },\n\t{ ...itemResourceLocator, description: 'Select the item 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\tdisplayOptions: {\n\t\t\thide: {\n\t\t\t\t...untilContainerSelected,\n\t\t\t\t...untilItemSelected,\n\t\t\t},\n\t\t},\n\t\ttype: 'boolean',\n\t},\n\t{\n\t\tdisplayName: 'Additional Fields',\n\t\tname: 'additionalFields',\n\t\tdefault: {},\n\t\tdisplayOptions: {\n\t\t\thide: {\n\t\t\t\t...untilContainerSelected,\n\t\t\t\t...untilItemSelected,\n\t\t\t},\n\t\t},\n\t\toptions: [\n\t\t\t{\n\t\t\t\tdisplayName: 'Partition Key',\n\t\t\t\tname: 'partitionKey',\n\t\t\t\tdefault: '',\n\t\t\t\thint: 'Only required if a custom partition key is set for the container',\n\t\t\t\ttype: 'string',\n\t\t\t},\n\t\t],\n\t\tplaceholder: 'Add Partition Key',\n\t\ttype: 'collection',\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['item'],\n\t\toperation: ['get'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA2D;AAE3D,mBAA0D;AAC1D,oBAA8D;AAE9D,MAAM,aAAgC;AAAA,EACrC,EAAE,GAAG,wCAA0B,aAAa,uCAAuC;AAAA,EACnF,EAAE,GAAG,mCAAqB,aAAa,uCAAuC;AAAA,EAC9E;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,IACb,gBAAgB;AAAA,MACf,MAAM;AAAA,QACL,GAAG;AAAA,QACH,GAAG;AAAA,MACJ;AAAA,IACD;AAAA,IACA,MAAM;AAAA,EACP;AAAA,EACA;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IACV,gBAAgB;AAAA,MACf,MAAM;AAAA,QACL,GAAG;AAAA,QACH,GAAG;AAAA,MACJ;AAAA,IACD;AAAA,IACA,SAAS;AAAA,MACR;AAAA,QACC,aAAa;AAAA,QACb,MAAM;AAAA,QACN,SAAS;AAAA,QACT,MAAM;AAAA,QACN,MAAM;AAAA,MACP;AAAA,IACD;AAAA,IACA,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AACD;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,MAAM;AAAA,IACjB,WAAW,CAAC,KAAK;AAAA,EAClB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}
@@ -0,0 +1,48 @@
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.containerResourceLocator, description: "Select the container you want to use" },
28
+ ...import_common.paginationParameters,
29
+ {
30
+ displayName: "Simplify",
31
+ name: "simple",
32
+ default: true,
33
+ description: "Whether to return a simplified version of the response instead of the raw data",
34
+ type: "boolean"
35
+ }
36
+ ];
37
+ const displayOptions = {
38
+ show: {
39
+ resource: ["item"],
40
+ operation: ["getAll"]
41
+ }
42
+ };
43
+ const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
44
+ // Annotate the CommonJS export names for ESM import in node:
45
+ 0 && (module.exports = {
46
+ description
47
+ });
48
+ //# sourceMappingURL=getAll.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../nodes/Microsoft/AzureCosmosDb/descriptions/item/getAll.operation.ts"],"sourcesContent":["import { updateDisplayOptions, type INodeProperties } from 'n8n-workflow';\n\nimport { containerResourceLocator, paginationParameters } from '../common';\n\nconst properties: INodeProperties[] = [\n\t{ ...containerResourceLocator, description: 'Select the container you want to use' },\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: ['item'],\n\t\toperation: ['getAll'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA2D;AAE3D,oBAA+D;AAE/D,MAAM,aAAgC;AAAA,EACrC,EAAE,GAAG,wCAA0B,aAAa,uCAAuC;AAAA,EACnF,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,MAAM;AAAA,IACjB,WAAW,CAAC,QAAQ;AAAA,EACrB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}