@solution25/n8n-nodes-shopware 1.4.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 (156) hide show
  1. package/README.md +80 -0
  2. package/dist/credentials/ShopwareOAuth2Api.credentials.d.ts +16 -0
  3. package/dist/credentials/ShopwareOAuth2Api.credentials.js +78 -0
  4. package/dist/credentials/ShopwareOAuth2Api.credentials.js.map +1 -0
  5. package/dist/nodes/Shopware/Shopware.node.d.ts +4 -0
  6. package/dist/nodes/Shopware/Shopware.node.js +23 -0
  7. package/dist/nodes/Shopware/Shopware.node.js.map +1 -0
  8. package/dist/nodes/Shopware/Shopware.node.json +18 -0
  9. package/dist/nodes/Shopware/test/v1/node/customer/getMany.test.d.ts +1 -0
  10. package/dist/nodes/Shopware/test/v1/node/customer/getMany.test.js +98 -0
  11. package/dist/nodes/Shopware/test/v1/node/customer/getMany.test.js.map +1 -0
  12. package/dist/nodes/Shopware/test/v1/node/helpers.d.ts +6 -0
  13. package/dist/nodes/Shopware/test/v1/node/helpers.js +44 -0
  14. package/dist/nodes/Shopware/test/v1/node/helpers.js.map +1 -0
  15. package/dist/nodes/Shopware/test/v1/node/order/getMany.test.d.ts +1 -0
  16. package/dist/nodes/Shopware/test/v1/node/order/getMany.test.js +111 -0
  17. package/dist/nodes/Shopware/test/v1/node/order/getMany.test.js.map +1 -0
  18. package/dist/nodes/Shopware/test/v1/node/product/getMany.test.d.ts +1 -0
  19. package/dist/nodes/Shopware/test/v1/node/product/getMany.test.js +96 -0
  20. package/dist/nodes/Shopware/test/v1/node/product/getMany.test.js.map +1 -0
  21. package/dist/nodes/Shopware/v1/ShopwareV1.node.d.ts +10 -0
  22. package/dist/nodes/Shopware/v1/ShopwareV1.node.js +23 -0
  23. package/dist/nodes/Shopware/v1/ShopwareV1.node.js.map +1 -0
  24. package/dist/nodes/Shopware/v1/actions/category/Category.resource.d.ts +8 -0
  25. package/dist/nodes/Shopware/v1/actions/category/Category.resource.js +98 -0
  26. package/dist/nodes/Shopware/v1/actions/category/Category.resource.js.map +1 -0
  27. package/dist/nodes/Shopware/v1/actions/category/create.operation.d.ts +27 -0
  28. package/dist/nodes/Shopware/v1/actions/category/create.operation.js +211 -0
  29. package/dist/nodes/Shopware/v1/actions/category/create.operation.js.map +1 -0
  30. package/dist/nodes/Shopware/v1/actions/category/deleteCategory.operation.d.ts +27 -0
  31. package/dist/nodes/Shopware/v1/actions/category/deleteCategory.operation.js +47 -0
  32. package/dist/nodes/Shopware/v1/actions/category/deleteCategory.operation.js.map +1 -0
  33. package/dist/nodes/Shopware/v1/actions/category/fields.d.ts +1 -0
  34. package/dist/nodes/Shopware/v1/actions/category/fields.js +21 -0
  35. package/dist/nodes/Shopware/v1/actions/category/fields.js.map +1 -0
  36. package/dist/nodes/Shopware/v1/actions/category/get.operation.d.ts +27 -0
  37. package/dist/nodes/Shopware/v1/actions/category/get.operation.js +77 -0
  38. package/dist/nodes/Shopware/v1/actions/category/get.operation.js.map +1 -0
  39. package/dist/nodes/Shopware/v1/actions/category/getMany.operation.d.ts +27 -0
  40. package/dist/nodes/Shopware/v1/actions/category/getMany.operation.js +164 -0
  41. package/dist/nodes/Shopware/v1/actions/category/getMany.operation.js.map +1 -0
  42. package/dist/nodes/Shopware/v1/actions/category/types.d.ts +19 -0
  43. package/dist/nodes/Shopware/v1/actions/category/types.js +3 -0
  44. package/dist/nodes/Shopware/v1/actions/category/types.js.map +1 -0
  45. package/dist/nodes/Shopware/v1/actions/category/update.operation.d.ts +27 -0
  46. package/dist/nodes/Shopware/v1/actions/category/update.operation.js +120 -0
  47. package/dist/nodes/Shopware/v1/actions/category/update.operation.js.map +1 -0
  48. package/dist/nodes/Shopware/v1/actions/customer/Customer.resource.d.ts +8 -0
  49. package/dist/nodes/Shopware/v1/actions/customer/Customer.resource.js +98 -0
  50. package/dist/nodes/Shopware/v1/actions/customer/Customer.resource.js.map +1 -0
  51. package/dist/nodes/Shopware/v1/actions/customer/create.operation.d.ts +27 -0
  52. package/dist/nodes/Shopware/v1/actions/customer/create.operation.js +301 -0
  53. package/dist/nodes/Shopware/v1/actions/customer/create.operation.js.map +1 -0
  54. package/dist/nodes/Shopware/v1/actions/customer/deleteCustomer.operation.d.ts +27 -0
  55. package/dist/nodes/Shopware/v1/actions/customer/deleteCustomer.operation.js +47 -0
  56. package/dist/nodes/Shopware/v1/actions/customer/deleteCustomer.operation.js.map +1 -0
  57. package/dist/nodes/Shopware/v1/actions/customer/fields.d.ts +4 -0
  58. package/dist/nodes/Shopware/v1/actions/customer/fields.js +30 -0
  59. package/dist/nodes/Shopware/v1/actions/customer/fields.js.map +1 -0
  60. package/dist/nodes/Shopware/v1/actions/customer/get.operation.d.ts +27 -0
  61. package/dist/nodes/Shopware/v1/actions/customer/get.operation.js +77 -0
  62. package/dist/nodes/Shopware/v1/actions/customer/get.operation.js.map +1 -0
  63. package/dist/nodes/Shopware/v1/actions/customer/getMany.operation.d.ts +27 -0
  64. package/dist/nodes/Shopware/v1/actions/customer/getMany.operation.js +319 -0
  65. package/dist/nodes/Shopware/v1/actions/customer/getMany.operation.js.map +1 -0
  66. package/dist/nodes/Shopware/v1/actions/customer/types.d.ts +54 -0
  67. package/dist/nodes/Shopware/v1/actions/customer/types.js +3 -0
  68. package/dist/nodes/Shopware/v1/actions/customer/types.js.map +1 -0
  69. package/dist/nodes/Shopware/v1/actions/customer/update.operation.d.ts +27 -0
  70. package/dist/nodes/Shopware/v1/actions/customer/update.operation.js +287 -0
  71. package/dist/nodes/Shopware/v1/actions/customer/update.operation.js.map +1 -0
  72. package/dist/nodes/Shopware/v1/actions/fields.d.ts +5 -0
  73. package/dist/nodes/Shopware/v1/actions/fields.js +26 -0
  74. package/dist/nodes/Shopware/v1/actions/fields.js.map +1 -0
  75. package/dist/nodes/Shopware/v1/actions/node.type.d.ts +9 -0
  76. package/dist/nodes/Shopware/v1/actions/node.type.js +3 -0
  77. package/dist/nodes/Shopware/v1/actions/node.type.js.map +1 -0
  78. package/dist/nodes/Shopware/v1/actions/order/Order.resource.d.ts +8 -0
  79. package/dist/nodes/Shopware/v1/actions/order/Order.resource.js +98 -0
  80. package/dist/nodes/Shopware/v1/actions/order/Order.resource.js.map +1 -0
  81. package/dist/nodes/Shopware/v1/actions/order/create.operation.d.ts +27 -0
  82. package/dist/nodes/Shopware/v1/actions/order/create.operation.js +861 -0
  83. package/dist/nodes/Shopware/v1/actions/order/create.operation.js.map +1 -0
  84. package/dist/nodes/Shopware/v1/actions/order/deleteOrder.operation.d.ts +27 -0
  85. package/dist/nodes/Shopware/v1/actions/order/deleteOrder.operation.js +47 -0
  86. package/dist/nodes/Shopware/v1/actions/order/deleteOrder.operation.js.map +1 -0
  87. package/dist/nodes/Shopware/v1/actions/order/fields.d.ts +2 -0
  88. package/dist/nodes/Shopware/v1/actions/order/fields.js +25 -0
  89. package/dist/nodes/Shopware/v1/actions/order/fields.js.map +1 -0
  90. package/dist/nodes/Shopware/v1/actions/order/get.operation.d.ts +27 -0
  91. package/dist/nodes/Shopware/v1/actions/order/get.operation.js +77 -0
  92. package/dist/nodes/Shopware/v1/actions/order/get.operation.js.map +1 -0
  93. package/dist/nodes/Shopware/v1/actions/order/getMany.operation.d.ts +27 -0
  94. package/dist/nodes/Shopware/v1/actions/order/getMany.operation.js +226 -0
  95. package/dist/nodes/Shopware/v1/actions/order/getMany.operation.js.map +1 -0
  96. package/dist/nodes/Shopware/v1/actions/order/types.d.ts +171 -0
  97. package/dist/nodes/Shopware/v1/actions/order/types.js +3 -0
  98. package/dist/nodes/Shopware/v1/actions/order/types.js.map +1 -0
  99. package/dist/nodes/Shopware/v1/actions/order/update.operation.d.ts +27 -0
  100. package/dist/nodes/Shopware/v1/actions/order/update.operation.js +723 -0
  101. package/dist/nodes/Shopware/v1/actions/order/update.operation.js.map +1 -0
  102. package/dist/nodes/Shopware/v1/actions/product/Product.resource.d.ts +8 -0
  103. package/dist/nodes/Shopware/v1/actions/product/Product.resource.js +98 -0
  104. package/dist/nodes/Shopware/v1/actions/product/Product.resource.js.map +1 -0
  105. package/dist/nodes/Shopware/v1/actions/product/create.operation.d.ts +27 -0
  106. package/dist/nodes/Shopware/v1/actions/product/create.operation.js +335 -0
  107. package/dist/nodes/Shopware/v1/actions/product/create.operation.js.map +1 -0
  108. package/dist/nodes/Shopware/v1/actions/product/deleteProduct.operation.d.ts +27 -0
  109. package/dist/nodes/Shopware/v1/actions/product/deleteProduct.operation.js +47 -0
  110. package/dist/nodes/Shopware/v1/actions/product/deleteProduct.operation.js.map +1 -0
  111. package/dist/nodes/Shopware/v1/actions/product/fields.d.ts +7 -0
  112. package/dist/nodes/Shopware/v1/actions/product/fields.js +33 -0
  113. package/dist/nodes/Shopware/v1/actions/product/fields.js.map +1 -0
  114. package/dist/nodes/Shopware/v1/actions/product/get.operation.d.ts +27 -0
  115. package/dist/nodes/Shopware/v1/actions/product/get.operation.js +77 -0
  116. package/dist/nodes/Shopware/v1/actions/product/get.operation.js.map +1 -0
  117. package/dist/nodes/Shopware/v1/actions/product/getMany.operation.d.ts +27 -0
  118. package/dist/nodes/Shopware/v1/actions/product/getMany.operation.js +319 -0
  119. package/dist/nodes/Shopware/v1/actions/product/getMany.operation.js.map +1 -0
  120. package/dist/nodes/Shopware/v1/actions/product/types.d.ts +66 -0
  121. package/dist/nodes/Shopware/v1/actions/product/types.js +3 -0
  122. package/dist/nodes/Shopware/v1/actions/product/types.js.map +1 -0
  123. package/dist/nodes/Shopware/v1/actions/product/update.operation.d.ts +27 -0
  124. package/dist/nodes/Shopware/v1/actions/product/update.operation.js +287 -0
  125. package/dist/nodes/Shopware/v1/actions/product/update.operation.js.map +1 -0
  126. package/dist/nodes/Shopware/v1/actions/router.d.ts +2 -0
  127. package/dist/nodes/Shopware/v1/actions/router.js +78 -0
  128. package/dist/nodes/Shopware/v1/actions/router.js.map +1 -0
  129. package/dist/nodes/Shopware/v1/actions/types.d.ts +97 -0
  130. package/dist/nodes/Shopware/v1/actions/types.js +3 -0
  131. package/dist/nodes/Shopware/v1/actions/types.js.map +1 -0
  132. package/dist/nodes/Shopware/v1/actions/versionDescription.d.ts +2 -0
  133. package/dist/nodes/Shopware/v1/actions/versionDescription.js +93 -0
  134. package/dist/nodes/Shopware/v1/actions/versionDescription.js.map +1 -0
  135. package/dist/nodes/Shopware/v1/helpers/handlers.d.ts +14 -0
  136. package/dist/nodes/Shopware/v1/helpers/handlers.js +261 -0
  137. package/dist/nodes/Shopware/v1/helpers/handlers.js.map +1 -0
  138. package/dist/nodes/Shopware/v1/helpers/interfaces.d.ts +1 -0
  139. package/dist/nodes/Shopware/v1/helpers/interfaces.js +3 -0
  140. package/dist/nodes/Shopware/v1/helpers/interfaces.js.map +1 -0
  141. package/dist/nodes/Shopware/v1/helpers/utils.d.ts +16 -0
  142. package/dist/nodes/Shopware/v1/helpers/utils.js +354 -0
  143. package/dist/nodes/Shopware/v1/helpers/utils.js.map +1 -0
  144. package/dist/nodes/Shopware/v1/methods/index.d.ts +1 -0
  145. package/dist/nodes/Shopware/v1/methods/index.js +38 -0
  146. package/dist/nodes/Shopware/v1/methods/index.js.map +1 -0
  147. package/dist/nodes/Shopware/v1/methods/loadOptions.d.ts +18 -0
  148. package/dist/nodes/Shopware/v1/methods/loadOptions.js +143 -0
  149. package/dist/nodes/Shopware/v1/methods/loadOptions.js.map +1 -0
  150. package/dist/nodes/Shopware/v1/transport/index.d.ts +2 -0
  151. package/dist/nodes/Shopware/v1/transport/index.js +25 -0
  152. package/dist/nodes/Shopware/v1/transport/index.js.map +1 -0
  153. package/dist/package.json +63 -0
  154. package/dist/shopware.png +0 -0
  155. package/dist/tsconfig.tsbuildinfo +1 -0
  156. package/package.json +63 -0
@@ -0,0 +1,164 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const n8n_workflow_1 = require("n8n-workflow");
6
+ const transport_1 = require("../../transport");
7
+ const fields_1 = require("./fields");
8
+ const utils_1 = require("../../helpers/utils");
9
+ const properties = [
10
+ {
11
+ displayName: 'Return All',
12
+ name: 'returnAll',
13
+ type: 'boolean',
14
+ default: true,
15
+ description: 'Whether to return all results or only up to a given limit',
16
+ },
17
+ {
18
+ displayName: 'Limit',
19
+ name: 'limit',
20
+ type: 'number',
21
+ displayOptions: {
22
+ show: {
23
+ returnAll: [false],
24
+ },
25
+ },
26
+ typeOptions: {
27
+ minValue: 1,
28
+ maxValue: 500,
29
+ },
30
+ default: 50,
31
+ description: 'Max number of results to return',
32
+ },
33
+ {
34
+ displayName: 'Filters',
35
+ name: 'filters',
36
+ type: 'collection',
37
+ placeholder: 'Add Filter',
38
+ default: {},
39
+ options: [
40
+ {
41
+ displayName: 'Active',
42
+ name: 'active',
43
+ type: 'boolean',
44
+ default: true,
45
+ description: 'Whether to filter only active categories',
46
+ },
47
+ {
48
+ displayName: 'Created At Max',
49
+ name: 'createdAtMax',
50
+ type: 'dateTime',
51
+ default: '',
52
+ description: 'Shows categories that were created at or before date',
53
+ },
54
+ {
55
+ displayName: 'Created At Min',
56
+ name: 'createdAtMin',
57
+ type: 'dateTime',
58
+ default: '',
59
+ description: 'Shows categories that were created at or after date',
60
+ },
61
+ {
62
+ displayName: 'Fields',
63
+ name: 'fields',
64
+ type: 'string',
65
+ default: '',
66
+ description: 'Fields the categories will return, formatted as a string of comma-separated values. By default all the fields are returned.',
67
+ },
68
+ {
69
+ displayName: 'IDs',
70
+ name: 'ids',
71
+ type: 'string',
72
+ default: '',
73
+ description: 'Retrieve only categories specified by a comma-separated list of category IDs',
74
+ },
75
+ {
76
+ displayName: 'Max Child Count',
77
+ name: 'childCountMax',
78
+ type: 'number',
79
+ typeOptions: {
80
+ maxValue: 999000000,
81
+ minValue: 0,
82
+ },
83
+ default: 0,
84
+ description: 'Shows categories that have the same child count or less',
85
+ },
86
+ {
87
+ displayName: 'Min Child Count',
88
+ name: 'childCountMin',
89
+ type: 'number',
90
+ typeOptions: {
91
+ maxValue: 999000000,
92
+ minValue: 0,
93
+ },
94
+ default: 0,
95
+ description: 'Shows categories that have the same child count or more',
96
+ },
97
+ {
98
+ displayName: 'Name',
99
+ name: 'name',
100
+ type: 'string',
101
+ default: '',
102
+ description: 'Filter categories by their name',
103
+ },
104
+ {
105
+ displayName: 'Parent ID',
106
+ name: 'parentId',
107
+ type: 'string',
108
+ default: '',
109
+ placeholder: 'e.g. 2a88d9b59d474...',
110
+ description: 'Filter categories by their parent ID',
111
+ },
112
+ ],
113
+ },
114
+ ];
115
+ const displayOptions = {
116
+ show: {
117
+ resource: ['category'],
118
+ operation: ['getMany'],
119
+ },
120
+ };
121
+ exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties);
122
+ async function execute(items) {
123
+ const returnData = [];
124
+ for (let i = 0; i < items.length; i++) {
125
+ try {
126
+ let page = 1;
127
+ let pageSize = 50;
128
+ let iterate = true;
129
+ let fields = fields_1.categoryFields;
130
+ const filters = this.getNodeParameter('filters', i);
131
+ const shrinkedFields = filters.fields;
132
+ if (shrinkedFields) {
133
+ fields = shrinkedFields.split(',').map((field) => field.trim());
134
+ }
135
+ const returnAll = this.getNodeParameter('returnAll', i);
136
+ if (!returnAll) {
137
+ pageSize = this.getNodeParameter('limit', i);
138
+ }
139
+ while (iterate) {
140
+ const body = utils_1.constructSearchBody.call(this, { page, limit: pageSize }, fields, 'category', filters);
141
+ const response = await transport_1.apiRequest.call(this, 'POST', `/search/category`, body);
142
+ const executionData = this.helpers.constructExecutionMetaData((0, utils_1.wrapData)(response.data), {
143
+ itemData: { item: i },
144
+ });
145
+ returnData.push(...executionData);
146
+ if (returnAll && response.data.length === pageSize) {
147
+ page++;
148
+ }
149
+ else {
150
+ iterate = false;
151
+ }
152
+ }
153
+ }
154
+ catch (error) {
155
+ if (this.continueOnFail()) {
156
+ returnData.push({ json: { error: error.message } });
157
+ continue;
158
+ }
159
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
160
+ }
161
+ }
162
+ return returnData;
163
+ }
164
+ //# sourceMappingURL=getMany.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMany.operation.js","sourceRoot":"","sources":["../../../../../../nodes/Shopware/v1/actions/category/getMany.operation.ts"],"names":[],"mappings":";;;AAiIA,0BA2DC;AA5LD,+CAOsB;AACtB,+CAA6C;AAC7C,qCAA0C;AAC1C,+CAAoE;AAEpE,MAAM,UAAU,GAAsB;IACrC;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,2DAA2D;KACxE;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,GAAG;SACb;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;KAC9C;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,0CAA0C;aACvD;YACD;gBACC,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sDAAsD;aACnE;YACD;gBACC,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,qDAAqD;aAClE;YACD;gBACC,WAAW,E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AC,QAAQ,CAAC,IAAI,CAAC,EAAE;oBACtF,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;iBACrB,CAAC,CAAC;gBAEH,UAAU,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;gBAElC,IAAI,SAAS,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;oBACpD,IAAI,EAAE,CAAC;gBACR,CAAC;qBAAM,CAAC;oBACP,OAAO,GAAG,KAAK,CAAC;gBACjB,CAAC;YACF,CAAC;QACF,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;gBAC3B,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;gBACpD,SAAS;YACV,CAAC;YAED,MAAM,IAAI,2BAAY,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAmB,CAAC,CAAC;QAC7D,CAAC;IACF,CAAC;IAED,OAAO,UAAU,CAAC;AACnB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { IDataObject } from 'n8n-workflow';
2
+ export interface CategoryCreatePayload extends IDataObject {
3
+ name: string;
4
+ description: string;
5
+ parentId?: string | null;
6
+ parent?: {
7
+ name: string;
8
+ description: string;
9
+ } | null;
10
+ children?: Array<{
11
+ name: string;
12
+ description: string;
13
+ }> | null;
14
+ }
15
+ export type CategoryUpdatePayload = Partial<CategoryCreatePayload>;
16
+ export type NodeChildCategory = {
17
+ categoryName: string;
18
+ categoryDescription: string;
19
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../nodes/Shopware/v1/actions/category/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ import { type INodeExecutionData, type INodeProperties, type IExecuteFunctions } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ disabledOptions?: import("n8n-workflow").IDisplayOptions;
12
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
13
+ placeholder?: string;
14
+ isNodeSetting?: boolean;
15
+ noDataExpression?: boolean;
16
+ required?: boolean;
17
+ routing?: import("n8n-workflow").INodePropertyRouting;
18
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
19
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
20
+ modes?: import("n8n-workflow").INodePropertyMode[];
21
+ requiresDataPath?: "single" | "multiple";
22
+ doNotInherit?: boolean;
23
+ validateType?: import("n8n-workflow").FieldType;
24
+ ignoreValidationDuringExecution?: boolean;
25
+ allowArbitraryValues?: boolean;
26
+ }[];
27
+ export declare function execute(this: IExecuteFunctions, items: INodeExecutionData[]): Promise<INodeExecutionData[]>;
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const n8n_workflow_1 = require("n8n-workflow");
6
+ const utils_1 = require("../../helpers/utils");
7
+ const fields_1 = require("./fields");
8
+ const transport_1 = require("../../transport");
9
+ const properties = [
10
+ {
11
+ displayName: 'Category ID',
12
+ name: 'id',
13
+ type: 'string',
14
+ default: '',
15
+ placeholder: 'e.g. 2a88d9b59d474...',
16
+ required: true,
17
+ description: 'ID of the category to update. You can find the ID in the URL when viewing the category in Shopware Admin (e.g. https://your-domain.com/admin#/sw/category/detail/&lt;categoryId&gt;).',
18
+ },
19
+ {
20
+ displayName: 'Update Fields',
21
+ name: 'updateFields',
22
+ type: 'collection',
23
+ placeholder: 'Add Field',
24
+ default: {},
25
+ options: [
26
+ {
27
+ displayName: 'Active',
28
+ name: 'active',
29
+ type: 'boolean',
30
+ default: true,
31
+ description: 'Whether the category is active and visible in the storefront',
32
+ },
33
+ {
34
+ displayName: 'Description',
35
+ name: 'description',
36
+ type: 'string',
37
+ typeOptions: {
38
+ rows: 4,
39
+ },
40
+ default: '',
41
+ description: 'Description of the category',
42
+ },
43
+ {
44
+ displayName: 'Name',
45
+ name: 'name',
46
+ type: 'string',
47
+ default: '',
48
+ description: 'Category name',
49
+ },
50
+ {
51
+ displayName: 'Parent',
52
+ name: 'parentId',
53
+ type: 'options',
54
+ typeOptions: {
55
+ loadOptionsMethod: 'getCategories',
56
+ },
57
+ default: '',
58
+ description: 'Select the parent category from the list',
59
+ },
60
+ ],
61
+ },
62
+ ];
63
+ const displayOptions = {
64
+ show: {
65
+ resource: ['category'],
66
+ operation: ['update'],
67
+ },
68
+ };
69
+ exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties);
70
+ async function execute(items) {
71
+ const returnData = [];
72
+ for (let i = 0; i < items.length; i++) {
73
+ try {
74
+ const id = this.getNodeParameter('id', i);
75
+ const searchBody = {
76
+ fields: fields_1.categoryFields,
77
+ includes: {
78
+ category: fields_1.categoryFields,
79
+ },
80
+ filter: [{ type: 'equals', field: 'id', value: id }],
81
+ };
82
+ const category = (await transport_1.apiRequest.call(this, 'POST', `/search/category`, searchBody))
83
+ .data[0];
84
+ if (!category) {
85
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Category does not exist', {
86
+ description: 'There is no category with id ' + id,
87
+ itemIndex: i,
88
+ });
89
+ }
90
+ const updateFields = this.getNodeParameter('updateFields', i);
91
+ const updateBody = {
92
+ active: updateFields.active,
93
+ parentId: updateFields.parentId ? updateFields.parentId.split('-')[0] : '',
94
+ name: updateFields.name,
95
+ description: updateFields.description,
96
+ };
97
+ for (const key in updateBody) {
98
+ const typedKey = key;
99
+ if (updateBody[typedKey] === '') {
100
+ delete updateBody[typedKey];
101
+ }
102
+ }
103
+ await transport_1.apiRequest.call(this, 'PATCH', `/category/${id}`, updateBody);
104
+ const response = await transport_1.apiRequest.call(this, 'POST', `/search/category`, searchBody);
105
+ const executionData = this.helpers.constructExecutionMetaData((0, utils_1.wrapData)(response.data), {
106
+ itemData: { item: i },
107
+ });
108
+ returnData.push(...executionData);
109
+ }
110
+ catch (error) {
111
+ if (this.continueOnFail()) {
112
+ returnData.push({ json: { error: error.message } });
113
+ continue;
114
+ }
115
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
116
+ }
117
+ }
118
+ return returnData;
119
+ }
120
+ //# sourceMappingURL=update.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../../nodes/Shopware/v1/actions/category/update.operation.ts"],"names":[],"mappings":";;;AAmFA,0BAgEC;AA/ID,+CAQsB;AAEtB,+CAA+C;AAC/C,qCAA0C;AAC1C,+CAA6C;AAE7C,MAAM,UAAU,GAAsB;IACrC;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,uBAAuB;QACpC,QAAQ,EAAE,IAAI;QACd,WAAW,EACV,uLAAuL;KACxL;IACD;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,8DAA8D;aAC3E;YACD;gBACC,WAAW,EA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,0BAA0B,CAAC,IAAA,gBAAQ,EAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;gBACtF,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;aACrB,CAAC,CAAC;YAEH,UAAU,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;QACnC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;gBAC3B,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;gBACpD,SAAS;YACV,CAAC;YAED,MAAM,IAAI,2BAAY,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAmB,CAAC,CAAC;QAC7D,CAAC;IACF,CAAC;IAED,OAAO,UAAU,CAAC;AACnB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ import * as create from './create.operation';
3
+ import * as deleteCustomer from './deleteCustomer.operation';
4
+ import * as get from './get.operation';
5
+ import * as getMany from './getMany.operation';
6
+ import * as update from './update.operation';
7
+ export { create, deleteCustomer, get, getMany, update };
8
+ export declare const description: INodeProperties[];
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.description = exports.update = exports.getMany = exports.get = exports.deleteCustomer = exports.create = void 0;
37
+ const create = __importStar(require("./create.operation"));
38
+ exports.create = create;
39
+ const deleteCustomer = __importStar(require("./deleteCustomer.operation"));
40
+ exports.deleteCustomer = deleteCustomer;
41
+ const get = __importStar(require("./get.operation"));
42
+ exports.get = get;
43
+ const getMany = __importStar(require("./getMany.operation"));
44
+ exports.getMany = getMany;
45
+ const update = __importStar(require("./update.operation"));
46
+ exports.update = update;
47
+ exports.description = [
48
+ {
49
+ displayName: 'Operation',
50
+ name: 'operation',
51
+ type: 'options',
52
+ noDataExpression: true,
53
+ options: [
54
+ {
55
+ name: 'Create',
56
+ value: 'create',
57
+ description: 'Create a customer',
58
+ action: 'Create a customer',
59
+ },
60
+ {
61
+ name: 'Delete',
62
+ value: 'deleteCustomer',
63
+ description: 'Delete a customer',
64
+ action: 'Delete a customer',
65
+ },
66
+ {
67
+ name: 'Get',
68
+ value: 'get',
69
+ description: 'Retrieve a customer',
70
+ action: 'Get a customer',
71
+ },
72
+ {
73
+ name: 'Get Many',
74
+ value: 'getMany',
75
+ description: 'Retrieve many customers',
76
+ action: 'Get many customers',
77
+ },
78
+ {
79
+ name: 'Update',
80
+ value: 'update',
81
+ description: 'Update a customer',
82
+ action: 'Update a customer',
83
+ },
84
+ ],
85
+ default: 'getMany',
86
+ displayOptions: {
87
+ show: {
88
+ resource: ['customer'],
89
+ },
90
+ },
91
+ },
92
+ ...create.description,
93
+ ...deleteCustomer.description,
94
+ ...get.description,
95
+ ...getMany.description,
96
+ ...update.description,
97
+ ];
98
+ //# sourceMappingURL=Customer.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Customer.resource.js","sourceRoot":"","sources":["../../../../../../nodes/Shopware/v1/actions/customer/Customer.resource.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,2DAA6C;AAMpC,wBAAM;AALf,2EAA6D;AAK5C,wCAAc;AAJ/B,qDAAuC;AAIN,kBAAG;AAHpC,6DAA+C;AAGT,0BAAO;AAF7C,2DAA6C;AAEE,wBAAM;AAExC,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,mBAAmB;gBAChC,MAAM,EAAE,mBAAmB;aAC3B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,gBAAgB;gBACvB,WAAW,EAAE,mBAAmB;gBAChC,MAAM,EAAE,mBAAmB;aAC3B;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,qBAAqB;gBAClC,MAAM,EAAE,gBAAgB;aACxB;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,yBAAyB;gBACtC,MAAM,EAAE,oBAAoB;aAC5B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,mBAAmB;gBAChC,MAAM,EAAE,mBAAmB;aAC3B;SACD;QACD,OAAO,EAAE,SAAS;QAClB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;aACtB;SACD;KACD;IACD,GAAG,MAAM,CAAC,WAAW;IACrB,GAAG,cAAc,CAAC,WAAW;IAC7B,GAAG,GAAG,CAAC,WAAW;IAClB,GAAG,OAAO,CAAC,WAAW;IACtB,GAAG,MAAM,CAAC,WAAW;CACrB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { type INodeExecutionData, type INodeProperties, type IExecuteFunctions } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ disabledOptions?: import("n8n-workflow").IDisplayOptions;
12
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
13
+ placeholder?: string;
14
+ isNodeSetting?: boolean;
15
+ noDataExpression?: boolean;
16
+ required?: boolean;
17
+ routing?: import("n8n-workflow").INodePropertyRouting;
18
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
19
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
20
+ modes?: import("n8n-workflow").INodePropertyMode[];
21
+ requiresDataPath?: "single" | "multiple";
22
+ doNotInherit?: boolean;
23
+ validateType?: import("n8n-workflow").FieldType;
24
+ ignoreValidationDuringExecution?: boolean;
25
+ allowArbitraryValues?: boolean;
26
+ }[];
27
+ export declare function execute(this: IExecuteFunctions, items: INodeExecutionData[]): Promise<INodeExecutionData[]>;