@ipt-solution/n8n-nodes-ipt-restapi2 0.0.0-stage → 0.1.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 (194) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +350 -2
  3. package/dist/credentials/IptRestApi2Api.credentials.d.ts +10 -0
  4. package/dist/credentials/IptRestApi2Api.credentials.js +88 -0
  5. package/dist/credentials/IptRestApi2Api.credentials.js.map +1 -0
  6. package/dist/nodes/IptRestApi2/IptRestApi2.node.d.ts +9 -0
  7. package/dist/nodes/IptRestApi2/IptRestApi2.node.js +120 -0
  8. package/dist/nodes/IptRestApi2/IptRestApi2.node.js.map +1 -0
  9. package/dist/nodes/IptRestApi2/IptRestApi2.node.json +18 -0
  10. package/dist/nodes/IptRestApi2/iptRestApi2.dark.svg +1 -0
  11. package/dist/nodes/IptRestApi2/iptRestApi2.svg +1 -0
  12. package/dist/nodes/IptRestApi2/resources/address/create.d.ts +2 -0
  13. package/dist/nodes/IptRestApi2/resources/address/create.js +8 -0
  14. package/dist/nodes/IptRestApi2/resources/address/create.js.map +1 -0
  15. package/dist/nodes/IptRestApi2/resources/address/delete.d.ts +2 -0
  16. package/dist/nodes/IptRestApi2/resources/address/delete.js +7 -0
  17. package/dist/nodes/IptRestApi2/resources/address/delete.js.map +1 -0
  18. package/dist/nodes/IptRestApi2/resources/address/get.d.ts +6 -0
  19. package/dist/nodes/IptRestApi2/resources/address/get.js +31 -0
  20. package/dist/nodes/IptRestApi2/resources/address/get.js.map +1 -0
  21. package/dist/nodes/IptRestApi2/resources/address/getAll.d.ts +2 -0
  22. package/dist/nodes/IptRestApi2/resources/address/getAll.js +12 -0
  23. package/dist/nodes/IptRestApi2/resources/address/getAll.js.map +1 -0
  24. package/dist/nodes/IptRestApi2/resources/address/index.d.ts +2 -0
  25. package/dist/nodes/IptRestApi2/resources/address/index.js +18 -0
  26. package/dist/nodes/IptRestApi2/resources/address/index.js.map +1 -0
  27. package/dist/nodes/IptRestApi2/resources/address/update.d.ts +2 -0
  28. package/dist/nodes/IptRestApi2/resources/address/update.js +8 -0
  29. package/dist/nodes/IptRestApi2/resources/address/update.js.map +1 -0
  30. package/dist/nodes/IptRestApi2/resources/customer/create.d.ts +2 -0
  31. package/dist/nodes/IptRestApi2/resources/customer/create.js +8 -0
  32. package/dist/nodes/IptRestApi2/resources/customer/create.js.map +1 -0
  33. package/dist/nodes/IptRestApi2/resources/customer/delete.d.ts +2 -0
  34. package/dist/nodes/IptRestApi2/resources/customer/delete.js +7 -0
  35. package/dist/nodes/IptRestApi2/resources/customer/delete.js.map +1 -0
  36. package/dist/nodes/IptRestApi2/resources/customer/get.d.ts +6 -0
  37. package/dist/nodes/IptRestApi2/resources/customer/get.js +31 -0
  38. package/dist/nodes/IptRestApi2/resources/customer/get.js.map +1 -0
  39. package/dist/nodes/IptRestApi2/resources/customer/getAll.d.ts +2 -0
  40. package/dist/nodes/IptRestApi2/resources/customer/getAll.js +12 -0
  41. package/dist/nodes/IptRestApi2/resources/customer/getAll.js.map +1 -0
  42. package/dist/nodes/IptRestApi2/resources/customer/index.d.ts +2 -0
  43. package/dist/nodes/IptRestApi2/resources/customer/index.js +20 -0
  44. package/dist/nodes/IptRestApi2/resources/customer/index.js.map +1 -0
  45. package/dist/nodes/IptRestApi2/resources/customer/update.d.ts +2 -0
  46. package/dist/nodes/IptRestApi2/resources/customer/update.js +8 -0
  47. package/dist/nodes/IptRestApi2/resources/customer/update.js.map +1 -0
  48. package/dist/nodes/IptRestApi2/resources/product/create.d.ts +2 -0
  49. package/dist/nodes/IptRestApi2/resources/product/create.js +8 -0
  50. package/dist/nodes/IptRestApi2/resources/product/create.js.map +1 -0
  51. package/dist/nodes/IptRestApi2/resources/product/delete.d.ts +2 -0
  52. package/dist/nodes/IptRestApi2/resources/product/delete.js +7 -0
  53. package/dist/nodes/IptRestApi2/resources/product/delete.js.map +1 -0
  54. package/dist/nodes/IptRestApi2/resources/product/get.d.ts +6 -0
  55. package/dist/nodes/IptRestApi2/resources/product/get.js +33 -0
  56. package/dist/nodes/IptRestApi2/resources/product/get.js.map +1 -0
  57. package/dist/nodes/IptRestApi2/resources/product/getAll.d.ts +2 -0
  58. package/dist/nodes/IptRestApi2/resources/product/getAll.js +12 -0
  59. package/dist/nodes/IptRestApi2/resources/product/getAll.js.map +1 -0
  60. package/dist/nodes/IptRestApi2/resources/product/index.d.ts +2 -0
  61. package/dist/nodes/IptRestApi2/resources/product/index.js +18 -0
  62. package/dist/nodes/IptRestApi2/resources/product/index.js.map +1 -0
  63. package/dist/nodes/IptRestApi2/resources/product/update.d.ts +2 -0
  64. package/dist/nodes/IptRestApi2/resources/product/update.js +8 -0
  65. package/dist/nodes/IptRestApi2/resources/product/update.js.map +1 -0
  66. package/dist/nodes/IptRestApi2/resources/purchaseOrder/actions.d.ts +3 -0
  67. package/dist/nodes/IptRestApi2/resources/purchaseOrder/actions.js +149 -0
  68. package/dist/nodes/IptRestApi2/resources/purchaseOrder/actions.js.map +1 -0
  69. package/dist/nodes/IptRestApi2/resources/purchaseOrder/create.d.ts +2 -0
  70. package/dist/nodes/IptRestApi2/resources/purchaseOrder/create.js +9 -0
  71. package/dist/nodes/IptRestApi2/resources/purchaseOrder/create.js.map +1 -0
  72. package/dist/nodes/IptRestApi2/resources/purchaseOrder/delete.d.ts +2 -0
  73. package/dist/nodes/IptRestApi2/resources/purchaseOrder/delete.js +7 -0
  74. package/dist/nodes/IptRestApi2/resources/purchaseOrder/delete.js.map +1 -0
  75. package/dist/nodes/IptRestApi2/resources/purchaseOrder/get.d.ts +6 -0
  76. package/dist/nodes/IptRestApi2/resources/purchaseOrder/get.js +38 -0
  77. package/dist/nodes/IptRestApi2/resources/purchaseOrder/get.js.map +1 -0
  78. package/dist/nodes/IptRestApi2/resources/purchaseOrder/getAll.d.ts +2 -0
  79. package/dist/nodes/IptRestApi2/resources/purchaseOrder/getAll.js +12 -0
  80. package/dist/nodes/IptRestApi2/resources/purchaseOrder/getAll.js.map +1 -0
  81. package/dist/nodes/IptRestApi2/resources/purchaseOrder/index.d.ts +2 -0
  82. package/dist/nodes/IptRestApi2/resources/purchaseOrder/index.js +23 -0
  83. package/dist/nodes/IptRestApi2/resources/purchaseOrder/index.js.map +1 -0
  84. package/dist/nodes/IptRestApi2/resources/purchaseOrder/update.d.ts +2 -0
  85. package/dist/nodes/IptRestApi2/resources/purchaseOrder/update.js +8 -0
  86. package/dist/nodes/IptRestApi2/resources/purchaseOrder/update.js.map +1 -0
  87. package/dist/nodes/IptRestApi2/resources/purchaseOrderPosition/create.d.ts +2 -0
  88. package/dist/nodes/IptRestApi2/resources/purchaseOrderPosition/create.js +20 -0
  89. package/dist/nodes/IptRestApi2/resources/purchaseOrderPosition/create.js.map +1 -0
  90. package/dist/nodes/IptRestApi2/resources/purchaseOrderPosition/delete.d.ts +2 -0
  91. package/dist/nodes/IptRestApi2/resources/purchaseOrderPosition/delete.js +7 -0
  92. package/dist/nodes/IptRestApi2/resources/purchaseOrderPosition/delete.js.map +1 -0
  93. package/dist/nodes/IptRestApi2/resources/purchaseOrderPosition/get.d.ts +6 -0
  94. package/dist/nodes/IptRestApi2/resources/purchaseOrderPosition/get.js +31 -0
  95. package/dist/nodes/IptRestApi2/resources/purchaseOrderPosition/get.js.map +1 -0
  96. package/dist/nodes/IptRestApi2/resources/purchaseOrderPosition/getAll.d.ts +2 -0
  97. package/dist/nodes/IptRestApi2/resources/purchaseOrderPosition/getAll.js +12 -0
  98. package/dist/nodes/IptRestApi2/resources/purchaseOrderPosition/getAll.js.map +1 -0
  99. package/dist/nodes/IptRestApi2/resources/purchaseOrderPosition/index.d.ts +2 -0
  100. package/dist/nodes/IptRestApi2/resources/purchaseOrderPosition/index.js +20 -0
  101. package/dist/nodes/IptRestApi2/resources/purchaseOrderPosition/index.js.map +1 -0
  102. package/dist/nodes/IptRestApi2/resources/purchaseOrderPosition/update.d.ts +2 -0
  103. package/dist/nodes/IptRestApi2/resources/purchaseOrderPosition/update.js +8 -0
  104. package/dist/nodes/IptRestApi2/resources/purchaseOrderPosition/update.js.map +1 -0
  105. package/dist/nodes/IptRestApi2/resources/salesOrder/actions.d.ts +3 -0
  106. package/dist/nodes/IptRestApi2/resources/salesOrder/actions.js +197 -0
  107. package/dist/nodes/IptRestApi2/resources/salesOrder/actions.js.map +1 -0
  108. package/dist/nodes/IptRestApi2/resources/salesOrder/create.d.ts +2 -0
  109. package/dist/nodes/IptRestApi2/resources/salesOrder/create.js +9 -0
  110. package/dist/nodes/IptRestApi2/resources/salesOrder/create.js.map +1 -0
  111. package/dist/nodes/IptRestApi2/resources/salesOrder/delete.d.ts +2 -0
  112. package/dist/nodes/IptRestApi2/resources/salesOrder/delete.js +7 -0
  113. package/dist/nodes/IptRestApi2/resources/salesOrder/delete.js.map +1 -0
  114. package/dist/nodes/IptRestApi2/resources/salesOrder/get.d.ts +6 -0
  115. package/dist/nodes/IptRestApi2/resources/salesOrder/get.js +38 -0
  116. package/dist/nodes/IptRestApi2/resources/salesOrder/get.js.map +1 -0
  117. package/dist/nodes/IptRestApi2/resources/salesOrder/getAll.d.ts +2 -0
  118. package/dist/nodes/IptRestApi2/resources/salesOrder/getAll.js +12 -0
  119. package/dist/nodes/IptRestApi2/resources/salesOrder/getAll.js.map +1 -0
  120. package/dist/nodes/IptRestApi2/resources/salesOrder/index.d.ts +2 -0
  121. package/dist/nodes/IptRestApi2/resources/salesOrder/index.js +23 -0
  122. package/dist/nodes/IptRestApi2/resources/salesOrder/index.js.map +1 -0
  123. package/dist/nodes/IptRestApi2/resources/salesOrder/update.d.ts +2 -0
  124. package/dist/nodes/IptRestApi2/resources/salesOrder/update.js +8 -0
  125. package/dist/nodes/IptRestApi2/resources/salesOrder/update.js.map +1 -0
  126. package/dist/nodes/IptRestApi2/resources/salesOrderPosition/create.d.ts +2 -0
  127. package/dist/nodes/IptRestApi2/resources/salesOrderPosition/create.js +20 -0
  128. package/dist/nodes/IptRestApi2/resources/salesOrderPosition/create.js.map +1 -0
  129. package/dist/nodes/IptRestApi2/resources/salesOrderPosition/delete.d.ts +2 -0
  130. package/dist/nodes/IptRestApi2/resources/salesOrderPosition/delete.js +7 -0
  131. package/dist/nodes/IptRestApi2/resources/salesOrderPosition/delete.js.map +1 -0
  132. package/dist/nodes/IptRestApi2/resources/salesOrderPosition/get.d.ts +6 -0
  133. package/dist/nodes/IptRestApi2/resources/salesOrderPosition/get.js +31 -0
  134. package/dist/nodes/IptRestApi2/resources/salesOrderPosition/get.js.map +1 -0
  135. package/dist/nodes/IptRestApi2/resources/salesOrderPosition/getAll.d.ts +2 -0
  136. package/dist/nodes/IptRestApi2/resources/salesOrderPosition/getAll.js +12 -0
  137. package/dist/nodes/IptRestApi2/resources/salesOrderPosition/getAll.js.map +1 -0
  138. package/dist/nodes/IptRestApi2/resources/salesOrderPosition/index.d.ts +2 -0
  139. package/dist/nodes/IptRestApi2/resources/salesOrderPosition/index.js +20 -0
  140. package/dist/nodes/IptRestApi2/resources/salesOrderPosition/index.js.map +1 -0
  141. package/dist/nodes/IptRestApi2/resources/salesOrderPosition/update.d.ts +2 -0
  142. package/dist/nodes/IptRestApi2/resources/salesOrderPosition/update.js +8 -0
  143. package/dist/nodes/IptRestApi2/resources/salesOrderPosition/update.js.map +1 -0
  144. package/dist/nodes/IptRestApi2/resources/supplier/create.d.ts +2 -0
  145. package/dist/nodes/IptRestApi2/resources/supplier/create.js +8 -0
  146. package/dist/nodes/IptRestApi2/resources/supplier/create.js.map +1 -0
  147. package/dist/nodes/IptRestApi2/resources/supplier/delete.d.ts +2 -0
  148. package/dist/nodes/IptRestApi2/resources/supplier/delete.js +7 -0
  149. package/dist/nodes/IptRestApi2/resources/supplier/delete.js.map +1 -0
  150. package/dist/nodes/IptRestApi2/resources/supplier/get.d.ts +6 -0
  151. package/dist/nodes/IptRestApi2/resources/supplier/get.js +31 -0
  152. package/dist/nodes/IptRestApi2/resources/supplier/get.js.map +1 -0
  153. package/dist/nodes/IptRestApi2/resources/supplier/getAll.d.ts +2 -0
  154. package/dist/nodes/IptRestApi2/resources/supplier/getAll.js +12 -0
  155. package/dist/nodes/IptRestApi2/resources/supplier/getAll.js.map +1 -0
  156. package/dist/nodes/IptRestApi2/resources/supplier/index.d.ts +2 -0
  157. package/dist/nodes/IptRestApi2/resources/supplier/index.js +20 -0
  158. package/dist/nodes/IptRestApi2/resources/supplier/index.js.map +1 -0
  159. package/dist/nodes/IptRestApi2/resources/supplier/update.d.ts +2 -0
  160. package/dist/nodes/IptRestApi2/resources/supplier/update.js +8 -0
  161. package/dist/nodes/IptRestApi2/resources/supplier/update.js.map +1 -0
  162. package/dist/nodes/IptRestApi2/resources/tableData/getAll.d.ts +2 -0
  163. package/dist/nodes/IptRestApi2/resources/tableData/getAll.js +68 -0
  164. package/dist/nodes/IptRestApi2/resources/tableData/getAll.js.map +1 -0
  165. package/dist/nodes/IptRestApi2/resources/tableData/index.d.ts +2 -0
  166. package/dist/nodes/IptRestApi2/resources/tableData/index.js +43 -0
  167. package/dist/nodes/IptRestApi2/resources/tableData/index.js.map +1 -0
  168. package/dist/nodes/IptRestApi2/shared/actions.d.ts +15 -0
  169. package/dist/nodes/IptRestApi2/shared/actions.js +171 -0
  170. package/dist/nodes/IptRestApi2/shared/actions.js.map +1 -0
  171. package/dist/nodes/IptRestApi2/shared/delete.d.ts +4 -0
  172. package/dist/nodes/IptRestApi2/shared/delete.js +115 -0
  173. package/dist/nodes/IptRestApi2/shared/delete.js.map +1 -0
  174. package/dist/nodes/IptRestApi2/shared/filters.d.ts +3 -0
  175. package/dist/nodes/IptRestApi2/shared/filters.js +116 -0
  176. package/dist/nodes/IptRestApi2/shared/filters.js.map +1 -0
  177. package/dist/nodes/IptRestApi2/shared/operations.d.ts +7 -0
  178. package/dist/nodes/IptRestApi2/shared/operations.js +76 -0
  179. package/dist/nodes/IptRestApi2/shared/operations.js.map +1 -0
  180. package/dist/nodes/IptRestApi2/shared/read.d.ts +16 -0
  181. package/dist/nodes/IptRestApi2/shared/read.js +276 -0
  182. package/dist/nodes/IptRestApi2/shared/read.js.map +1 -0
  183. package/dist/nodes/IptRestApi2/shared/resource.d.ts +11 -0
  184. package/dist/nodes/IptRestApi2/shared/resource.js +21 -0
  185. package/dist/nodes/IptRestApi2/shared/resource.js.map +1 -0
  186. package/dist/nodes/IptRestApi2/shared/response.d.ts +4 -0
  187. package/dist/nodes/IptRestApi2/shared/response.js +45 -0
  188. package/dist/nodes/IptRestApi2/shared/response.js.map +1 -0
  189. package/dist/nodes/IptRestApi2/shared/write.d.ts +6 -0
  190. package/dist/nodes/IptRestApi2/shared/write.js +194 -0
  191. package/dist/nodes/IptRestApi2/shared/write.js.map +1 -0
  192. package/dist/package.json +41 -0
  193. package/dist/tsconfig.tsbuildinfo +1 -0
  194. package/package.json +39 -4
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IptRestApi2 = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const address_1 = require("./resources/address");
6
+ const get_1 = require("./resources/address/get");
7
+ const customer_1 = require("./resources/customer");
8
+ const get_2 = require("./resources/customer/get");
9
+ const product_1 = require("./resources/product");
10
+ const get_3 = require("./resources/product/get");
11
+ const purchaseOrder_1 = require("./resources/purchaseOrder");
12
+ const get_4 = require("./resources/purchaseOrder/get");
13
+ const purchaseOrderPosition_1 = require("./resources/purchaseOrderPosition");
14
+ const get_5 = require("./resources/purchaseOrderPosition/get");
15
+ const salesOrder_1 = require("./resources/salesOrder");
16
+ const get_6 = require("./resources/salesOrder/get");
17
+ const salesOrderPosition_1 = require("./resources/salesOrderPosition");
18
+ const get_7 = require("./resources/salesOrderPosition/get");
19
+ const supplier_1 = require("./resources/supplier");
20
+ const get_8 = require("./resources/supplier/get");
21
+ const tableData_1 = require("./resources/tableData");
22
+ const write_1 = require("./shared/write");
23
+ class IptRestApi2 {
24
+ constructor() {
25
+ this.methods = {
26
+ resourceMapping: {
27
+ getWriteFields: (0, write_1.writeFieldsLoader)([
28
+ get_1.addressInfo,
29
+ get_2.customerInfo,
30
+ get_3.productInfo,
31
+ get_4.purchaseOrderInfo,
32
+ get_5.purchaseOrderPositionInfo,
33
+ get_6.salesOrderInfo,
34
+ get_7.salesOrderPositionInfo,
35
+ get_8.supplierInfo,
36
+ ]),
37
+ },
38
+ };
39
+ this.description = {
40
+ displayName: 'ipt RestApi2',
41
+ name: 'iptRestApi2',
42
+ icon: { light: 'file:iptRestApi2.svg', dark: 'file:iptRestApi2.dark.svg' },
43
+ group: ['transform'],
44
+ version: 1,
45
+ subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
46
+ description: 'Read and write myfactory data through the ipt RestApi2 interface',
47
+ defaults: {
48
+ name: 'ipt RestApi2',
49
+ },
50
+ usableAsTool: true,
51
+ inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
52
+ outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
53
+ credentials: [{ name: 'iptRestApi2Api', required: true }],
54
+ requestDefaults: {
55
+ baseURL: '={{$credentials.baseUrl.replace(/\\/+$/, "")}}/ipt/api',
56
+ headers: {
57
+ Accept: 'application/json',
58
+ },
59
+ },
60
+ properties: [
61
+ {
62
+ displayName: 'Resource',
63
+ name: 'resource',
64
+ type: 'options',
65
+ noDataExpression: true,
66
+ options: [
67
+ {
68
+ name: 'Address',
69
+ value: 'address',
70
+ },
71
+ {
72
+ name: 'Customer',
73
+ value: 'customer',
74
+ },
75
+ {
76
+ name: 'Product',
77
+ value: 'product',
78
+ },
79
+ {
80
+ name: 'Purchase Order',
81
+ value: 'purchaseOrder',
82
+ },
83
+ {
84
+ name: 'Purchase Order Position',
85
+ value: 'purchaseOrderPosition',
86
+ },
87
+ {
88
+ name: 'Sales Order',
89
+ value: 'salesOrder',
90
+ },
91
+ {
92
+ name: 'Sales Order Position',
93
+ value: 'salesOrderPosition',
94
+ },
95
+ {
96
+ name: 'Supplier',
97
+ value: 'supplier',
98
+ },
99
+ {
100
+ name: 'Table Data',
101
+ value: 'tableData',
102
+ },
103
+ ],
104
+ default: 'product',
105
+ },
106
+ ...address_1.addressDescription,
107
+ ...customer_1.customerDescription,
108
+ ...product_1.productDescription,
109
+ ...purchaseOrder_1.purchaseOrderDescription,
110
+ ...purchaseOrderPosition_1.purchaseOrderPositionDescription,
111
+ ...salesOrder_1.salesOrderDescription,
112
+ ...salesOrderPosition_1.salesOrderPositionDescription,
113
+ ...supplier_1.supplierDescription,
114
+ ...tableData_1.tableDataDescription,
115
+ ],
116
+ };
117
+ }
118
+ }
119
+ exports.IptRestApi2 = IptRestApi2;
120
+ //# sourceMappingURL=IptRestApi2.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IptRestApi2.node.js","sourceRoot":"","sources":["../../../nodes/IptRestApi2/IptRestApi2.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,iDAAyD;AACzD,iDAAsD;AACtD,mDAA2D;AAC3D,kDAAwD;AACxD,iDAAyD;AACzD,iDAAsD;AACtD,6DAAqE;AACrE,uDAAkE;AAClE,6EAAqF;AACrF,+DAAkF;AAClF,uDAA+D;AAC/D,oDAA4D;AAC5D,uEAA+E;AAC/E,4DAA4E;AAC5E,mDAA2D;AAC3D,kDAAwD;AACxD,qDAA6D;AAC7D,0CAAmD;AAEnD,MAAa,WAAW;IAAxB;QAEC,YAAO,GAAG;YACT,eAAe,EAAE;gBAChB,cAAc,EAAE,IAAA,yBAAiB,EAAC;oBACjC,iBAAW;oBACX,kBAAY;oBACZ,iBAAW;oBACX,uBAAiB;oBACjB,+BAAyB;oBACzB,oBAAc;oBACd,4BAAsB;oBACtB,kBAAY;iBACZ,CAAC;aACF;SACD,CAAC;QAEF,gBAAW,GAAyB;YACnC,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,EAAE,KAAK,EAAE,sBAAsB,EAAE,IAAI,EAAE,2BAA2B,EAAE;YAC1E,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,kEAAkE;YAC/E,QAAQ,EAAE;gBACT,IAAI,EAAE,cAAc;aACpB;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YACzD,eAAe,EAAE;gBAEhB,OAAO,EAAE,wDAAwD;gBACjE,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;iBAC1B;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,SAAS;4BACf,KAAK,EAAE,SAAS;yBAChB;wBACD;4BACC,IAAI,EAAE,UAAU;4BAChB,KAAK,EAAE,UAAU;yBACjB;wBACD;4BACC,IAAI,EAAE,SAAS;4BACf,KAAK,EAAE,SAAS;yBAChB;wBACD;4BACC,IAAI,EAAE,gBAAgB;4BACtB,KAAK,EAAE,eAAe;yBACtB;wBACD;4BACC,IAAI,EAAE,yBAAyB;4BAC/B,KAAK,EAAE,uBAAuB;yBAC9B;wBACD;4BACC,IAAI,EAAE,aAAa;4BACnB,KAAK,EAAE,YAAY;yBACnB;wBACD;4BACC,IAAI,EAAE,sBAAsB;4BAC5B,KAAK,EAAE,oBAAoB;yBAC3B;wBACD;4BACC,IAAI,EAAE,UAAU;4BAChB,KAAK,EAAE,UAAU;yBACjB;wBACD;4BACC,IAAI,EAAE,YAAY;4BAClB,KAAK,EAAE,WAAW;yBAClB;qBACD;oBAED,OAAO,EAAE,SAAS;iBAClB;gBACD,GAAG,4BAAkB;gBACrB,GAAG,8BAAmB;gBACtB,GAAG,4BAAkB;gBACrB,GAAG,wCAAwB;gBAC3B,GAAG,wDAAgC;gBACnC,GAAG,kCAAqB;gBACxB,GAAG,kDAA6B;gBAChC,GAAG,8BAAmB;gBACtB,GAAG,gCAAoB;aACvB;SACD,CAAC;IACH,CAAC;CAAA;AAjGD,kCAiGC"}
@@ -0,0 +1,18 @@
1
+ {
2
+ "node": "@ipt-solution/n8n-nodes-ipt-restapi2",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": ["Data & Storage"],
6
+ "resources": {
7
+ "credentialDocumentation": [
8
+ {
9
+ "url": "https://github.com/ipt-solution-gmbh/n8n.iptRestApi2.node?tab=readme-ov-file#credentials"
10
+ }
11
+ ],
12
+ "primaryDocumentation": [
13
+ {
14
+ "url": "https://github.com/ipt-solution-gmbh/n8n.iptRestApi2.node?tab=readme-ov-file"
15
+ }
16
+ ]
17
+ }
18
+ }
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="-135 -20 1009 1009"><g fill="#F1C336"><path d="M70 299 369 0v299L219 449z"/><path d="M0 300 369 669 739 300v299L369 969 0 599z"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="-135 -20 1009 1009"><g fill="#F1C336"><path d="M70 299 369 0v299L219 449z"/><path d="M0 300 369 669 739 300v299L369 969 0 599z"/></g></svg>
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const addressCreateDescription: INodeProperties[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addressCreateDescription = void 0;
4
+ const write_1 = require("../../shared/write");
5
+ exports.addressCreateDescription = [
6
+ ...(0, write_1.createDataProperty)('address', 'Fields of the new address as a JSON object. Name1 and Matchcode are required. An address with the same Name1 and Matchcode is rejected as a duplicate. Without AddressNumber, myfactory assigns the next number.', '{"Matchcode": "SAMPLE", "Name1": "Sample Ltd"}'),
7
+ ];
8
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/address/create.ts"],"names":[],"mappings":";;;AACA,8CAAwD;AAK3C,QAAA,wBAAwB,GAAsB;IAC1D,GAAG,IAAA,0BAAkB,EACpB,SAAS,EACT,kNAAkN,EAClN,gDAAgD,CAChD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const addressDeleteDescription: INodeProperties[];
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addressDeleteDescription = void 0;
4
+ const delete_1 = require("../../shared/delete");
5
+ const get_1 = require("./get");
6
+ exports.addressDeleteDescription = (0, delete_1.deleteProperties)(get_1.addressInfo, 'Deleting an address is permanent and also removes its dependent data in myfactory. myfactory refuses the delete while the address is still used, for example as customer, supplier, prospect, representative, employee or delivery address. The node then fails with the reason (status 409).', 'AddressGroup');
7
+ //# sourceMappingURL=delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/address/delete.ts"],"names":[],"mappings":";;;AACA,gDAAuD;AACvD,+BAAoC;AAIvB,QAAA,wBAAwB,GAAsB,IAAA,yBAAgB,EAC1E,iBAAW,EACX,+RAA+R,EAC/R,cAAc,CACd,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { INodeProperties, INodePropertyOptions } from 'n8n-workflow';
2
+ import type { ResourceInfo } from '../../shared/resource';
3
+ export declare const addressInfo: ResourceInfo;
4
+ export declare const addressIncludes: INodePropertyOptions[];
5
+ export declare const addressSimplifiedFields: string[];
6
+ export declare const addressGetDescription: INodeProperties[];
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addressGetDescription = exports.addressSimplifiedFields = exports.addressIncludes = exports.addressInfo = void 0;
4
+ const read_1 = require("../../shared/read");
5
+ exports.addressInfo = {
6
+ resource: 'address',
7
+ path: '/addresses',
8
+ label: 'address',
9
+ labelPlural: 'addresses',
10
+ idParameter: 'addressId',
11
+ idDisplayName: 'Address ID',
12
+ idField: 'AddressID',
13
+ };
14
+ exports.addressIncludes = [
15
+ { name: 'Attributes', value: 'attributes' },
16
+ { name: 'History', value: 'history' },
17
+ ];
18
+ exports.addressSimplifiedFields = [
19
+ 'AddressID',
20
+ 'AddressNumber',
21
+ 'Matchcode',
22
+ 'Name1',
23
+ 'Street',
24
+ 'PostalCode',
25
+ 'City',
26
+ 'Country',
27
+ 'EMail',
28
+ 'PhoneNr',
29
+ ];
30
+ exports.addressGetDescription = (0, read_1.getProperties)(exports.addressInfo, exports.addressSimplifiedFields, exports.addressIncludes);
31
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/address/get.ts"],"names":[],"mappings":";;;AACA,4CAAkD;AAIrC,QAAA,WAAW,GAAiB;IACxC,QAAQ,EAAE,SAAS;IACnB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,WAAW;IACxB,aAAa,EAAE,YAAY;IAC3B,OAAO,EAAE,WAAW;CACpB,CAAC;AAGW,QAAA,eAAe,GAA2B;IACtD,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;IAC3C,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;CACrC,CAAC;AAGW,QAAA,uBAAuB,GAAG;IACtC,WAAW;IACX,eAAe;IACf,WAAW;IACX,OAAO;IACP,QAAQ;IACR,YAAY;IACZ,MAAM;IACN,SAAS;IACT,OAAO;IACP,SAAS;CACT,CAAC;AAEW,QAAA,qBAAqB,GAAsB,IAAA,oBAAa,EACpE,mBAAW,EACX,+BAAuB,EACvB,uBAAe,CACf,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const addressGetManyDescription: INodeProperties[];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addressGetManyDescription = void 0;
4
+ const read_1 = require("../../shared/read");
5
+ const get_1 = require("./get");
6
+ exports.addressGetManyDescription = (0, read_1.getManyProperties)(get_1.addressInfo, get_1.addressSimplifiedFields, get_1.addressIncludes, {
7
+ fields: 'AddressID,Matchcode,City',
8
+ sort: '-ChangeDate,Matchcode',
9
+ filterField: 'City',
10
+ clause: "Name1 LIKE '$P100$Sample$P100$'",
11
+ });
12
+ //# sourceMappingURL=getAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/address/getAll.ts"],"names":[],"mappings":";;;AACA,4CAAsD;AACtD,+BAA8E;AAEjE,QAAA,yBAAyB,GAAsB,IAAA,wBAAiB,EAC5E,iBAAW,EACX,6BAAuB,EACvB,qBAAe,EACf;IACC,MAAM,EAAE,0BAA0B;IAClC,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,MAAM;IACnB,MAAM,EAAE,iCAAiC;CACzC,CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const addressDescription: INodeProperties[];
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addressDescription = void 0;
4
+ const operations_1 = require("../../shared/operations");
5
+ const create_1 = require("./create");
6
+ const delete_1 = require("./delete");
7
+ const get_1 = require("./get");
8
+ const getAll_1 = require("./getAll");
9
+ const update_1 = require("./update");
10
+ exports.addressDescription = [
11
+ (0, operations_1.operationProperty)(get_1.addressInfo),
12
+ ...create_1.addressCreateDescription,
13
+ ...delete_1.addressDeleteDescription,
14
+ ...get_1.addressGetDescription,
15
+ ...getAll_1.addressGetManyDescription,
16
+ ...update_1.addressUpdateDescription,
17
+ ];
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/address/index.ts"],"names":[],"mappings":";;;AACA,wDAA4D;AAC5D,qCAAoD;AACpD,qCAAoD;AACpD,+BAA2D;AAC3D,qCAAqD;AACrD,qCAAoD;AAEvC,QAAA,kBAAkB,GAAsB;IACpD,IAAA,8BAAiB,EAAC,iBAAW,CAAC;IAC9B,GAAG,iCAAwB;IAC3B,GAAG,iCAAwB;IAC3B,GAAG,2BAAqB;IACxB,GAAG,kCAAyB;IAC5B,GAAG,iCAAwB;CAC3B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const addressUpdateDescription: INodeProperties[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addressUpdateDescription = void 0;
4
+ const write_1 = require("../../shared/write");
5
+ exports.addressUpdateDescription = [
6
+ ...(0, write_1.updateDataProperty)('address', '{"Street": "New Street 2", "City": "Sample City"}'),
7
+ ];
8
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/address/update.ts"],"names":[],"mappings":";;;AACA,8CAAwD;AAG3C,QAAA,wBAAwB,GAAsB;IAC1D,GAAG,IAAA,0BAAkB,EAAC,SAAS,EAAE,mDAAmD,CAAC;CACrF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const customerCreateDescription: INodeProperties[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.customerCreateDescription = void 0;
4
+ const write_1 = require("../../shared/write");
5
+ exports.customerCreateDescription = [
6
+ ...(0, write_1.createDataProperty)('customer', 'Fields of the new customer as a JSON object. AddressID is required: create the address first (resource Address) and use the AddressID it returns. Without CustomerNumber, myfactory assigns the next number.', '{"AddressID": 1234}'),
7
+ ];
8
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/customer/create.ts"],"names":[],"mappings":";;;AACA,8CAAwD;AAM3C,QAAA,yBAAyB,GAAsB;IAC3D,GAAG,IAAA,0BAAkB,EACpB,UAAU,EACV,8MAA8M,EAC9M,qBAAqB,CACrB;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const customerDeleteDescription: INodeProperties[];
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.customerDeleteDescription = void 0;
4
+ const delete_1 = require("../../shared/delete");
5
+ const get_1 = require("./get");
6
+ exports.customerDeleteDescription = (0, delete_1.deleteProperties)(get_1.customerInfo, "Deleting a customer is permanent and also removes its dependent data in myfactory. myfactory refuses the delete while the customer is still used, for example in sales documents (also as invoice recipient), support cases, projects, accounting or contracts, or as template customer in web shop, country or branch settings. The node then fails with the reason (status 409). If the myfactory setting to delete unused addresses is on, the customer's address is deleted too, unless another record such as a supplier or prospect still uses it.", 'CustomerGroup');
7
+ //# sourceMappingURL=delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/customer/delete.ts"],"names":[],"mappings":";;;AACA,gDAAuD;AACvD,+BAAqC;AAIxB,QAAA,yBAAyB,GAAsB,IAAA,yBAAgB,EAC3E,kBAAY,EACZ,0hBAA0hB,EAC1hB,eAAe,CACf,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { INodeProperties, INodePropertyOptions } from 'n8n-workflow';
2
+ import type { ResourceInfo } from '../../shared/resource';
3
+ export declare const customerInfo: ResourceInfo;
4
+ export declare const customerIncludes: INodePropertyOptions[];
5
+ export declare const customerSimplifiedFields: string[];
6
+ export declare const customerGetDescription: INodeProperties[];
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.customerGetDescription = exports.customerSimplifiedFields = exports.customerIncludes = exports.customerInfo = void 0;
4
+ const read_1 = require("../../shared/read");
5
+ exports.customerInfo = {
6
+ resource: 'customer',
7
+ path: '/customers',
8
+ label: 'customer',
9
+ labelPlural: 'customers',
10
+ idParameter: 'customerId',
11
+ idDisplayName: 'Customer ID',
12
+ idField: 'CustomerID',
13
+ };
14
+ exports.customerIncludes = [
15
+ { name: 'Attributes', value: 'attributes' },
16
+ { name: 'History', value: 'history' },
17
+ ];
18
+ exports.customerSimplifiedFields = [
19
+ 'CustomerID',
20
+ 'CustomerNumber',
21
+ 'AddressID',
22
+ 'MatchcodeAdd',
23
+ 'CustomerGroup',
24
+ 'CurrencyUnit',
25
+ 'PaymentConditions',
26
+ 'IsFreezed',
27
+ 'InActive',
28
+ 'ChangeDate',
29
+ ];
30
+ exports.customerGetDescription = (0, read_1.getProperties)(exports.customerInfo, exports.customerSimplifiedFields, exports.customerIncludes);
31
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/customer/get.ts"],"names":[],"mappings":";;;AACA,4CAAkD;AAIrC,QAAA,YAAY,GAAiB;IACzC,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,YAAY;IACzB,aAAa,EAAE,aAAa;IAC5B,OAAO,EAAE,YAAY;CACrB,CAAC;AAGW,QAAA,gBAAgB,GAA2B;IACvD,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;IAC3C,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;CACrC,CAAC;AAIW,QAAA,wBAAwB,GAAG;IACvC,YAAY;IACZ,gBAAgB;IAChB,WAAW;IACX,cAAc;IACd,eAAe;IACf,cAAc;IACd,mBAAmB;IACnB,WAAW;IACX,UAAU;IACV,YAAY;CACZ,CAAC;AAEW,QAAA,sBAAsB,GAAsB,IAAA,oBAAa,EACrE,oBAAY,EACZ,gCAAwB,EACxB,wBAAgB,CAChB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const customerGetManyDescription: INodeProperties[];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.customerGetManyDescription = void 0;
4
+ const read_1 = require("../../shared/read");
5
+ const get_1 = require("./get");
6
+ exports.customerGetManyDescription = (0, read_1.getManyProperties)(get_1.customerInfo, get_1.customerSimplifiedFields, get_1.customerIncludes, {
7
+ fields: 'CustomerID,CustomerNumber,AddressID',
8
+ sort: '-ChangeDate,CustomerNumber',
9
+ filterField: 'CustomerGroup',
10
+ clause: "ChangeDate$GT$$EQ$'20261001'",
11
+ });
12
+ //# sourceMappingURL=getAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/customer/getAll.ts"],"names":[],"mappings":";;;AACA,4CAAsD;AACtD,+BAAiF;AAEpE,QAAA,0BAA0B,GAAsB,IAAA,wBAAiB,EAC7E,kBAAY,EACZ,8BAAwB,EACxB,sBAAgB,EAChB;IACC,MAAM,EAAE,qCAAqC;IAC7C,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,eAAe;IAC5B,MAAM,EAAE,8BAA8B;CACtC,CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const customerDescription: INodeProperties[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.customerDescription = void 0;
4
+ const operations_1 = require("../../shared/operations");
5
+ const create_1 = require("./create");
6
+ const delete_1 = require("./delete");
7
+ const get_1 = require("./get");
8
+ const getAll_1 = require("./getAll");
9
+ const update_1 = require("./update");
10
+ exports.customerDescription = [
11
+ (0, operations_1.operationProperty)(get_1.customerInfo, {
12
+ createDescription: 'Create a new customer for an existing address',
13
+ }),
14
+ ...create_1.customerCreateDescription,
15
+ ...delete_1.customerDeleteDescription,
16
+ ...get_1.customerGetDescription,
17
+ ...getAll_1.customerGetManyDescription,
18
+ ...update_1.customerUpdateDescription,
19
+ ];
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/customer/index.ts"],"names":[],"mappings":";;;AACA,wDAA4D;AAC5D,qCAAqD;AACrD,qCAAqD;AACrD,+BAA6D;AAC7D,qCAAsD;AACtD,qCAAqD;AAExC,QAAA,mBAAmB,GAAsB;IACrD,IAAA,8BAAiB,EAAC,kBAAY,EAAE;QAC/B,iBAAiB,EAAE,+CAA+C;KAClE,CAAC;IACF,GAAG,kCAAyB;IAC5B,GAAG,kCAAyB;IAC5B,GAAG,4BAAsB;IACzB,GAAG,mCAA0B;IAC7B,GAAG,kCAAyB;CAC5B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const customerUpdateDescription: INodeProperties[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.customerUpdateDescription = void 0;
4
+ const write_1 = require("../../shared/write");
5
+ exports.customerUpdateDescription = [
6
+ ...(0, write_1.updateDataProperty)('customer', '{"CreditLimit": 5000, "Discount": 2}'),
7
+ ];
8
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/customer/update.ts"],"names":[],"mappings":";;;AACA,8CAAwD;AAG3C,QAAA,yBAAyB,GAAsB;IAC3D,GAAG,IAAA,0BAAkB,EAAC,UAAU,EAAE,sCAAsC,CAAC;CACzE,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const productCreateDescription: INodeProperties[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.productCreateDescription = void 0;
4
+ const write_1 = require("../../shared/write");
5
+ exports.productCreateDescription = [
6
+ ...(0, write_1.createDataProperty)('product', 'Fields of the new product as a JSON object. Without a template product for the access point, Matchcode, BaseUnit, BaseDecimals and ProductGroup are required. BaseUnit and ProductGroup must exist in myfactory. Without ProductNumber, myfactory assigns the next number.', '{"Matchcode": "Sample product", "BaseUnit": "Stk", "BaseDecimals": 0, "ProductGroup": "Allg."}', 'Whether to ask for all fields of the new product. For products the API returns only the sent fields and the ProductID either way. Use Get to read all fields.'),
7
+ ];
8
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/product/create.ts"],"names":[],"mappings":";;;AACA,8CAAwD;AAO3C,QAAA,wBAAwB,GAAsB;IAC1D,GAAG,IAAA,0BAAkB,EACpB,SAAS,EACT,4QAA4Q,EAC5Q,gGAAgG,EAChG,+JAA+J,CAC/J;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const productDeleteDescription: INodeProperties[];
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.productDeleteDescription = void 0;
4
+ const delete_1 = require("../../shared/delete");
5
+ const get_1 = require("./get");
6
+ exports.productDeleteDescription = (0, delete_1.deleteProperties)(get_1.productInfo, 'Deleting a product is permanent and also removes its dependent data in myfactory. If the product is still in use, for example in sales or purchase documents, bills of materials, production orders or bookings, myfactory refuses the delete and the node fails with the reason (status 409).', 'ProductGroup');
7
+ //# sourceMappingURL=delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/product/delete.ts"],"names":[],"mappings":";;;AACA,gDAAuD;AACvD,+BAAoC;AAIvB,QAAA,wBAAwB,GAAsB,IAAA,yBAAgB,EAC1E,iBAAW,EACX,gSAAgS,EAChS,cAAc,CACd,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { INodeProperties, INodePropertyOptions } from 'n8n-workflow';
2
+ import type { ResourceInfo } from '../../shared/resource';
3
+ export declare const productInfo: ResourceInfo;
4
+ export declare const productIncludes: INodePropertyOptions[];
5
+ export declare const productSimplifiedFields: string[];
6
+ export declare const productGetDescription: INodeProperties[];
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.productGetDescription = exports.productSimplifiedFields = exports.productIncludes = exports.productInfo = void 0;
4
+ const read_1 = require("../../shared/read");
5
+ exports.productInfo = {
6
+ resource: 'product',
7
+ path: '/products',
8
+ label: 'product',
9
+ labelPlural: 'products',
10
+ idParameter: 'productId',
11
+ idDisplayName: 'Product ID',
12
+ idField: 'ProductID',
13
+ };
14
+ exports.productIncludes = [
15
+ { name: 'Attributes', value: 'attributes' },
16
+ { name: 'History', value: 'history' },
17
+ { name: 'Multiple EANs', value: 'multiean' },
18
+ { name: 'Variants', value: 'variants' },
19
+ ];
20
+ exports.productSimplifiedFields = [
21
+ 'ProductID',
22
+ 'ProductNumber',
23
+ 'Matchcode',
24
+ 'Name1',
25
+ 'ProductGroup',
26
+ 'BaseUnit',
27
+ 'EANNumber',
28
+ 'InActive',
29
+ 'ProductState',
30
+ 'ChangeDate',
31
+ ];
32
+ exports.productGetDescription = (0, read_1.getProperties)(exports.productInfo, exports.productSimplifiedFields, exports.productIncludes);
33
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/product/get.ts"],"names":[],"mappings":";;;AACA,4CAAkD;AAIrC,QAAA,WAAW,GAAiB;IACxC,QAAQ,EAAE,SAAS;IACnB,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,UAAU;IACvB,WAAW,EAAE,WAAW;IACxB,aAAa,EAAE,YAAY;IAC3B,OAAO,EAAE,WAAW;CACpB,CAAC;AAGW,QAAA,eAAe,GAA2B;IACtD,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;IAC3C,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;IACrC,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,UAAU,EAAE;IAC5C,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;CACvC,CAAC;AAGW,QAAA,uBAAuB,GAAG;IACtC,WAAW;IACX,eAAe;IACf,WAAW;IACX,OAAO;IACP,cAAc;IACd,UAAU;IACV,WAAW;IACX,UAAU;IACV,cAAc;IACd,YAAY;CACZ,CAAC;AAEW,QAAA,qBAAqB,GAAsB,IAAA,oBAAa,EACpE,mBAAW,EACX,+BAAuB,EACvB,uBAAe,CACf,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const productGetManyDescription: INodeProperties[];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.productGetManyDescription = void 0;
4
+ const read_1 = require("../../shared/read");
5
+ const get_1 = require("./get");
6
+ exports.productGetManyDescription = (0, read_1.getManyProperties)(get_1.productInfo, get_1.productSimplifiedFields, get_1.productIncludes, {
7
+ fields: 'ProductID,ProductNumber,Matchcode',
8
+ sort: '-ChangeDate,Matchcode',
9
+ filterField: 'ProductGroup',
10
+ clause: "Matchcode LIKE '$P100$Hammer$P100$'",
11
+ });
12
+ //# sourceMappingURL=getAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/product/getAll.ts"],"names":[],"mappings":";;;AACA,4CAAsD;AACtD,+BAA8E;AAEjE,QAAA,yBAAyB,GAAsB,IAAA,wBAAiB,EAC5E,iBAAW,EACX,6BAAuB,EACvB,qBAAe,EACf;IACC,MAAM,EAAE,mCAAmC;IAC3C,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,cAAc;IAC3B,MAAM,EAAE,qCAAqC;CAC7C,CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const productDescription: INodeProperties[];
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.productDescription = void 0;
4
+ const operations_1 = require("../../shared/operations");
5
+ const create_1 = require("./create");
6
+ const delete_1 = require("./delete");
7
+ const get_1 = require("./get");
8
+ const getAll_1 = require("./getAll");
9
+ const update_1 = require("./update");
10
+ exports.productDescription = [
11
+ (0, operations_1.operationProperty)(get_1.productInfo),
12
+ ...create_1.productCreateDescription,
13
+ ...delete_1.productDeleteDescription,
14
+ ...get_1.productGetDescription,
15
+ ...getAll_1.productGetManyDescription,
16
+ ...update_1.productUpdateDescription,
17
+ ];
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/product/index.ts"],"names":[],"mappings":";;;AACA,wDAA4D;AAC5D,qCAAoD;AACpD,qCAAoD;AACpD,+BAA2D;AAC3D,qCAAqD;AACrD,qCAAoD;AAEvC,QAAA,kBAAkB,GAAsB;IACpD,IAAA,8BAAiB,EAAC,iBAAW,CAAC;IAC9B,GAAG,iCAAwB;IAC3B,GAAG,iCAAwB;IAC3B,GAAG,2BAAqB;IACxB,GAAG,kCAAyB;IAC5B,GAAG,iCAAwB;CAC3B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const productUpdateDescription: INodeProperties[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.productUpdateDescription = void 0;
4
+ const write_1 = require("../../shared/write");
5
+ exports.productUpdateDescription = [
6
+ ...(0, write_1.updateDataProperty)('product', '{"Matchcode": "New name"}'),
7
+ ];
8
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/product/update.ts"],"names":[],"mappings":";;;AACA,8CAAwD;AAG3C,QAAA,wBAAwB,GAAsB;IAC1D,GAAG,IAAA,0BAAkB,EAAC,SAAS,EAAE,2BAA2B,CAAC;CAC7D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties, INodePropertyOptions } from 'n8n-workflow';
2
+ export declare const purchaseOrderActionOperations: INodePropertyOptions[];
3
+ export declare const purchaseOrderActionDescription: INodeProperties[];