@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,197 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.salesOrderActionDescription = exports.salesOrderActionOperations = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const actions_1 = require("../../shared/actions");
6
+ const resource_1 = require("../../shared/resource");
7
+ const get_1 = require("./get");
8
+ function orderAction(name, value, action, description, apiAction) {
9
+ return (0, actions_1.recordAction)(get_1.salesOrderInfo, name, value, action, description, apiAction);
10
+ }
11
+ exports.salesOrderActionOperations = [
12
+ orderAction('Change Currency', 'changeCurrency', 'Change the currency of a sales order in myfactory', 'Switch a sales order to another currency', 'changecurrency'),
13
+ orderAction('Change Customer', 'changeCustomer', 'Change the customer of a sales order in myfactory', 'Move a sales order to another customer. The order keeps its number but gets a new ID.', 'changecustomer'),
14
+ orderAction('Check Credit', 'checkCredit', 'Check the credit limit for a sales order in myfactory', 'Check the credit limit of the customer of a sales order', 'checkcredit'),
15
+ orderAction('Complete', 'complete', 'Complete a sales order in myfactory', 'Mark a sales order as completed', 'complete'),
16
+ orderAction('Copy', 'copy', 'Copy a sales order in myfactory', 'Create a new sales order as a copy of an existing one', 'copy'),
17
+ orderAction('Create Purchase Order', 'createPurchaseOrder', 'Create a purchase order from a sales order in myfactory', 'Create a purchase order for a supplier from positions of a sales order', 'createpurchaseorder'),
18
+ orderAction('Recalculate', 'recalc', 'Recalculate a sales order in myfactory', 'Recalculate the totals and taxes of a sales order', 'recalc'),
19
+ orderAction('Refresh Prices', 'refreshPrices', 'Refresh the prices of a sales order in myfactory', 'Take the current prices from the price lists for all positions of a sales order', 'refreshprices'),
20
+ orderAction('Renumber Positions', 'renumberPositions', 'Renumber the positions of a sales order in myfactory', 'Number the positions of a sales order again in their order', 'renumberpositions'),
21
+ orderAction('Set Printed', 'setPrinted', 'Mark a sales order as printed in myfactory', 'Mark a processed sales order as printed without printing or sending it', 'setprinted'),
22
+ (0, actions_1.transformOperation)(get_1.salesOrderInfo, 'Transform a sales order into another order type in myfactory', 'Create the follow-up document of a sales order, for example a delivery note from an order confirmation'),
23
+ ];
24
+ const resource = get_1.salesOrderInfo.resource;
25
+ const orderIdHint = 'OrderID of the sales order, not the order number. Get it from Sales Order > Get Many.';
26
+ async function sendPositionIds(requestOptions) {
27
+ const ids = String(this.getNodeParameter('positionIds', ''))
28
+ .split(',')
29
+ .map((id) => id.trim())
30
+ .filter((id) => id !== '');
31
+ if (ids.length === 0 || ids.some((id) => !/^\d+$/.test(id))) {
32
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Position IDs must be a comma-separated list of numbers', { description: 'Use the OrderPosID of each position, for example 5678,5679' });
33
+ }
34
+ requestOptions.body = {
35
+ ...requestOptions.body,
36
+ positionIds: ids.map(Number),
37
+ };
38
+ return requestOptions;
39
+ }
40
+ exports.salesOrderActionDescription = [
41
+ (0, actions_1.actionNotice)(resource, 'changeCurrency', 'Switches the sales order to another currency and converts the prices of its positions. Use a currency code that is set up in myfactory, because neither the API nor myfactory rejects an unknown code.'),
42
+ (0, actions_1.actionNotice)(resource, 'changeCustomer', 'myfactory copies the sales order to the new customer and deletes the old one. The order keeps its number but gets a new OrderID, and the old OrderID no longer exists. The addresses and the taxation always come from the new customer. With Change Conditions on (default), the order also takes over the currency and price type of the new customer and the position prices are determined again. Only offers can be moved to a prospect instead of a customer.'),
43
+ (0, actions_1.actionNotice)(resource, 'checkCredit', 'Checks whether the sales order fits into the credit limit of the customer. Changes nothing. Fails for a sales order without a customer.'),
44
+ (0, actions_1.actionNotice)(resource, 'complete', 'Marks the sales order and its main positions as completed and removes their product planning entries. Works only for processed or printed sales orders. If myfactory refuses, the API reports only a general error (status 409).'),
45
+ (0, actions_1.actionNotice)(resource, 'copy', 'Creates a new sales order as a copy. Without Additional Fields the copy gets the customer and the order type of the source.'),
46
+ (0, actions_1.actionNotice)(resource, 'createPurchaseOrder', 'Creates a purchase order at the supplier for the given positions. Supplier ID and purchase order type are values of your myfactory installation.'),
47
+ (0, actions_1.actionNotice)(resource, 'recalc', 'Recalculates the totals, taxes and position sums of the sales order, as after a change to a position.'),
48
+ (0, actions_1.actionNotice)(resource, 'refreshPrices', 'Takes the current prices from the price lists. This also overwrites prices entered by hand, unless myfactory is set up to keep fixed prices. At least one of Refresh Sales Prices and Refresh Valuation Prices must be on, otherwise the API answers with status 400.'),
49
+ (0, actions_1.actionNotice)(resource, 'renumberPositions', 'Numbers the positions again in their order: 1, 2, 3 …, group titles open a level (1, 1.1), text and page break lines get no number. The order of the positions does not change. Needs ipt RestApi2 57.9.0 or later.'),
50
+ (0, actions_1.actionNotice)(resource, 'setPrinted', 'Marks a processed sales order as printed and checks off its open entries in print batches. Nothing is printed or sent. A sales order that is already printed is returned unchanged. Use this for documents that reach the recipient by other means. Changing OrderState with Update does not do this.'),
51
+ (0, actions_1.actionNotice)(resource, 'transform', 'Creates the follow-up document, for example a delivery note from an order confirmation. The target order type must be allowed as a follow-up of the source order type in myfactory, otherwise the error message lists the allowed types. Fails if the source sales order is locked for transforming or has no positions left to take over.'),
52
+ {
53
+ ...(0, resource_1.idProperty)(get_1.salesOrderInfo, {
54
+ operation: [
55
+ 'changeCurrency',
56
+ 'changeCustomer',
57
+ 'checkCredit',
58
+ 'complete',
59
+ 'copy',
60
+ 'createPurchaseOrder',
61
+ 'recalc',
62
+ 'refreshPrices',
63
+ 'renumberPositions',
64
+ 'setPrinted',
65
+ ],
66
+ }),
67
+ hint: orderIdHint,
68
+ },
69
+ ...(0, actions_1.changeCurrencyProperties)(get_1.salesOrderInfo),
70
+ {
71
+ displayName: 'New Customer ID',
72
+ name: 'newCustomerId',
73
+ type: 'number',
74
+ required: true,
75
+ displayOptions: (0, actions_1.showFor)(resource, 'changeCustomer'),
76
+ default: 0,
77
+ description: 'ID of the new customer (field CustomerID). For an offer to a prospect, use 0 and set Prospect ID.',
78
+ routing: { send: { type: 'body', property: 'customerId' } },
79
+ },
80
+ {
81
+ displayName: 'Additional Fields',
82
+ name: 'additionalFields',
83
+ type: 'collection',
84
+ placeholder: 'Add Field',
85
+ displayOptions: (0, actions_1.showFor)(resource, 'changeCustomer'),
86
+ default: {},
87
+ options: [
88
+ {
89
+ ...(0, actions_1.bodySwitch)('Change Conditions', 'changeConditions', 'Whether to take over the currency and price type of the new customer and determine the position prices again. Off keeps the currency, prices and payment condition of the order.'),
90
+ default: true,
91
+ },
92
+ {
93
+ ...(0, actions_1.bodySwitch)('Keep Credit Card', 'keepCreditCard', 'Whether to keep the credit card data of the sales order. Only has an effect when Change Conditions is off.'),
94
+ default: true,
95
+ },
96
+ {
97
+ ...(0, actions_1.bodySwitch)('Keep Documents', 'keepDocuments', 'Whether to keep the documents linked to the sales order'),
98
+ default: true,
99
+ },
100
+ (0, actions_1.bodyNumber)('Prospect ID', 'prospectId', 'ID of the new prospect, for offers only'),
101
+ (0, actions_1.bodySwitch)('Refresh Commissions', 'refreshCommissions', 'Whether to determine the commissions again'),
102
+ ],
103
+ },
104
+ {
105
+ displayName: 'Additional Fields',
106
+ name: 'additionalFields',
107
+ type: 'collection',
108
+ placeholder: 'Add Field',
109
+ displayOptions: (0, actions_1.showFor)(resource, 'copy'),
110
+ default: {},
111
+ options: [
112
+ (0, actions_1.bodySwitch)('Change Conditions', 'changeConditions', 'Whether to take over the current conditions of the customer'),
113
+ (0, actions_1.bodyNumber)('Customer ID', 'customerId', 'ID of the customer of the copy'),
114
+ {
115
+ ...(0, actions_1.bodySwitch)('Keep Credit Card', 'keepCreditCard', 'Whether to keep the credit card data of the source'),
116
+ default: true,
117
+ },
118
+ (0, actions_1.bodyNumber)('Order Type', 'orderType', 'Number of the order type of the copy'),
119
+ (0, actions_1.bodyNumber)('Prospect ID', 'prospectId', 'ID of the prospect of the copy'),
120
+ (0, actions_1.bodySwitch)('Refresh Commissions', 'refreshCommissions', 'Whether to determine the commissions again'),
121
+ (0, actions_1.bodySwitch)('Refresh Discounts', 'refreshDiscounts', 'Whether to determine the discounts again'),
122
+ (0, actions_1.bodySwitch)('Refresh Texts', 'refreshTexts', 'Whether to take the texts from the products again'),
123
+ ],
124
+ },
125
+ {
126
+ displayName: 'Supplier ID',
127
+ name: 'supplierId',
128
+ type: 'number',
129
+ required: true,
130
+ displayOptions: (0, actions_1.showFor)(resource, 'createPurchaseOrder'),
131
+ default: 0,
132
+ description: 'ID of the supplier of the purchase order (field SupplierID)',
133
+ routing: { send: { type: 'body', property: 'supplierId' } },
134
+ },
135
+ {
136
+ displayName: 'Position IDs',
137
+ name: 'positionIds',
138
+ type: 'string',
139
+ required: true,
140
+ displayOptions: (0, actions_1.showFor)(resource, 'createPurchaseOrder'),
141
+ default: '',
142
+ placeholder: '5678,5679',
143
+ description: 'Comma-separated list of the sales order positions to order (field OrderPosID). Each must belong to the sales order.',
144
+ routing: { send: { preSend: [sendPositionIds] } },
145
+ },
146
+ {
147
+ displayName: 'Purchase Order Type',
148
+ name: 'purchaseOrderType',
149
+ type: 'number',
150
+ displayOptions: (0, actions_1.showFor)(resource, 'createPurchaseOrder'),
151
+ default: 0,
152
+ description: 'Number of the purchase order type. 0 uses the type preset in myfactory. Without a preset the API rejects the request.',
153
+ routing: { send: { type: 'body', property: 'orderType' } },
154
+ },
155
+ {
156
+ displayName: 'Additional Fields',
157
+ name: 'additionalFields',
158
+ type: 'collection',
159
+ placeholder: 'Add Field',
160
+ displayOptions: (0, actions_1.showFor)(resource, 'createPurchaseOrder'),
161
+ default: {},
162
+ options: [
163
+ {
164
+ displayName: 'Delivery Address',
165
+ name: 'differentShipment',
166
+ type: 'options',
167
+ options: [
168
+ { name: 'No Separate Address', value: 0 },
169
+ { name: 'Address of the Sales Order', value: 1 },
170
+ { name: 'Delivery Address of the Sales Order', value: 2 },
171
+ ],
172
+ default: 0,
173
+ description: 'Which address the supplier delivers to. No Separate Address gives the purchase order no separate delivery address.',
174
+ routing: { send: { type: 'body', property: 'differentShipment' } },
175
+ },
176
+ (0, actions_1.bodySwitch)('Purchase Units', 'purchaseUnits', 'Whether to convert the quantities into the purchase unit of each product, rounded up'),
177
+ (0, actions_1.bodySwitch)('Set Completed', 'setCompleted', 'Whether to mark the sales order positions as completed and delivered by the supplier'),
178
+ ],
179
+ },
180
+ {
181
+ displayName: 'Additional Fields',
182
+ name: 'additionalFields',
183
+ type: 'collection',
184
+ placeholder: 'Add Field',
185
+ displayOptions: (0, actions_1.showFor)(resource, 'refreshPrices'),
186
+ default: {},
187
+ options: [
188
+ {
189
+ ...(0, actions_1.bodySwitch)('Refresh Sales Prices', 'refreshSalesPrices', 'Whether to refresh the sales prices. This also overwrites prices entered by hand.'),
190
+ default: true,
191
+ },
192
+ (0, actions_1.bodySwitch)('Refresh Valuation Prices', 'refreshValuationPrices', 'Whether to refresh the valuation prices'),
193
+ ],
194
+ },
195
+ ...(0, actions_1.transformProperties)(get_1.salesOrderInfo, orderIdHint, 'Number of the order type of the new document, usually 3 for a delivery note. The numbers are set up in your myfactory installation. The type must be a follow-up type of the source order type in myfactory. If it is not, the error message of the API lists the allowed types.'),
196
+ ];
197
+ //# sourceMappingURL=actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/salesOrder/actions.ts"],"names":[],"mappings":";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,KAAK,EAAE,CAAC,EAAE;oBACzC,EAAE,IAAI,EAAE,4BAA4B,EAAE,KAAK,EAAE,CAAC,EAAE;oBAChD,EAAE,IAAI,EAAE,qCAAqC,EAAE,KAAK,EAAE,CAAC,EAAE;iBACzD;gBACD,OAAO,EAAE,CAAC;gBACV,WAAW,EACV,oHAAoH;gBACrH,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB,EAAE,EAAE;aAClE;YACD,IAAA,oBAAU,EACT,gBAAgB,EAChB,eAAe,EACf,sFAAsF,CACtF;YACD,IAAA,oBAAU,EACT,eAAe,EACf,cAAc,EACd,sFAAsF,CACtF;SACD;KACD;IAGD;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,cAAc,EAAE,IAAA,iBAAO,EAAC,QAAQ,EAAE,eAAe,CAAC;QAClD,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR;gBACC,GAAG,IAAA,oBAAU,EACZ,sBAAsB,EACtB,oBAAoB,EACpB,mFAAmF,CACnF;gBACD,OAAO,EAAE,IAAI;aACb;YACD,IAAA,oBAAU,EACT,0BAA0B,EAC1B,wBAAwB,EACxB,yCAAyC,CACzC;SACD;KACD;IAGD,GAAG,IAAA,6BAAmB,EACrB,oBAAc,EACd,WAAW,EACX,kRAAkR,CAClR;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const salesOrderCreateDescription: INodeProperties[];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.salesOrderCreateDescription = void 0;
4
+ const write_1 = require("../../shared/write");
5
+ exports.salesOrderCreateDescription = [
6
+ (0, write_1.returnPositionsProperty)('salesOrder'),
7
+ ...(0, write_1.createDataProperty)('salesOrder', 'Fields of the new sales order as a JSON object. OrderType is required: the number of the order type in myfactory, for example of an order confirmation or an invoice. The customer is required as CustomerID or CustomerNumber. Positions go into the array Positions, each with ProductNumber or ProductID and Quantity.', '{"OrderType": 2, "CustomerNumber": "10001", "Positions": [{"ProductNumber": "1000", "Quantity": 2}]}'),
8
+ ];
9
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/salesOrder/create.ts"],"names":[],"mappings":";;;AACA,8CAAiF;AAKpE,QAAA,2BAA2B,GAAsB;IAC7D,IAAA,+BAAuB,EAAC,YAAY,CAAC;IACrC,GAAG,IAAA,0BAAkB,EACpB,YAAY,EACZ,2TAA2T,EAC3T,sGAAsG,CACtG;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const salesOrderDeleteDescription: INodeProperties[];
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.salesOrderDeleteDescription = void 0;
4
+ const delete_1 = require("../../shared/delete");
5
+ const get_1 = require("./get");
6
+ exports.salesOrderDeleteDescription = (0, delete_1.deleteProperties)(get_1.salesOrderInfo, 'Deleting a sales order is permanent. myfactory refuses it for a processed sales order if its number range does not allow deleting or the user lacks the delete right, and for a sales order that is the template of a contract or is linked to time billing or a time quota. The API then reports only "Order could not be deleted" (status 409).');
7
+ //# sourceMappingURL=delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/salesOrder/delete.ts"],"names":[],"mappings":";;;AACA,gDAAuD;AACvD,+BAAuC;AAI1B,QAAA,2BAA2B,GAAsB,IAAA,yBAAgB,EAC7E,oBAAc,EACd,mVAAmV,CACnV,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { INodeProperties, INodePropertyOptions } from 'n8n-workflow';
2
+ import type { ResourceInfo } from '../../shared/resource';
3
+ export declare const salesOrderInfo: ResourceInfo;
4
+ export declare const salesOrderGetManyIncludes: INodePropertyOptions[];
5
+ export declare const salesOrderSimplifiedFields: string[];
6
+ export declare const salesOrderGetDescription: INodeProperties[];
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.salesOrderGetDescription = exports.salesOrderSimplifiedFields = exports.salesOrderGetManyIncludes = exports.salesOrderInfo = void 0;
4
+ const read_1 = require("../../shared/read");
5
+ exports.salesOrderInfo = {
6
+ resource: 'salesOrder',
7
+ path: '/salesorders',
8
+ label: 'sales order',
9
+ labelPlural: 'sales orders',
10
+ idParameter: 'salesOrderId',
11
+ idDisplayName: 'Sales Order ID',
12
+ idField: 'OrderID',
13
+ };
14
+ const salesOrderGetIncludes = [
15
+ { name: 'Attributes', value: 'attributes' },
16
+ { name: 'History', value: 'history' },
17
+ ];
18
+ exports.salesOrderGetManyIncludes = [
19
+ { name: 'Attributes', value: 'attributes' },
20
+ { name: 'History', value: 'history' },
21
+ { name: 'Payments', value: 'payments' },
22
+ { name: 'Positions', value: 'positions' },
23
+ { name: 'Taxes', value: 'taxes' },
24
+ ];
25
+ exports.salesOrderSimplifiedFields = [
26
+ 'OrderID',
27
+ 'OrderNumber',
28
+ 'OrderType',
29
+ 'OrderTypeDesc',
30
+ 'BookingDate',
31
+ 'CustomerID',
32
+ 'CustomerNumber',
33
+ 'Name1',
34
+ 'OrderSum',
35
+ 'CurrUnit',
36
+ ];
37
+ exports.salesOrderGetDescription = (0, read_1.getProperties)(exports.salesOrderInfo, exports.salesOrderSimplifiedFields, salesOrderGetIncludes);
38
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/salesOrder/get.ts"],"names":[],"mappings":";;;AACA,4CAAkD;AAIrC,QAAA,cAAc,GAAiB;IAC3C,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,aAAa,EAAE,gBAAgB;IAC/B,OAAO,EAAE,SAAS;CAClB,CAAC;AAIF,MAAM,qBAAqB,GAA2B;IACrD,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;IAC3C,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;CACrC,CAAC;AAGW,QAAA,yBAAyB,GAA2B;IAChE,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;IAC3C,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;IACrC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;IACvC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;IACzC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;CACjC,CAAC;AAIW,QAAA,0BAA0B,GAAG;IACzC,SAAS;IACT,aAAa;IACb,WAAW;IACX,eAAe;IACf,aAAa;IACb,YAAY;IACZ,gBAAgB;IAChB,OAAO;IACP,UAAU;IACV,UAAU;CACV,CAAC;AAEW,QAAA,wBAAwB,GAAsB,IAAA,oBAAa,EACvE,sBAAc,EACd,kCAA0B,EAC1B,qBAAqB,CACrB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const salesOrderGetManyDescription: INodeProperties[];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.salesOrderGetManyDescription = void 0;
4
+ const read_1 = require("../../shared/read");
5
+ const get_1 = require("./get");
6
+ exports.salesOrderGetManyDescription = (0, read_1.getManyProperties)(get_1.salesOrderInfo, get_1.salesOrderSimplifiedFields, get_1.salesOrderGetManyIncludes, {
7
+ fields: 'OrderID,OrderNumber,OrderSum',
8
+ sort: '-BookingDate,OrderNumber',
9
+ filterField: 'OrderType',
10
+ clause: "BookingDate$GT$$EQ$'20261001' AND BookingDate$LT$'20261101'",
11
+ });
12
+ //# sourceMappingURL=getAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/salesOrder/getAll.ts"],"names":[],"mappings":";;;AACA,4CAAsD;AACtD,+BAA8F;AAEjF,QAAA,4BAA4B,GAAsB,IAAA,wBAAiB,EAC/E,oBAAc,EACd,gCAA0B,EAC1B,+BAAyB,EACzB;IACC,MAAM,EAAE,8BAA8B;IACtC,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,WAAW;IACxB,MAAM,EAAE,6DAA6D;CACrE,CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const salesOrderDescription: INodeProperties[];
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.salesOrderDescription = void 0;
4
+ const operations_1 = require("../../shared/operations");
5
+ const actions_1 = require("./actions");
6
+ const create_1 = require("./create");
7
+ const delete_1 = require("./delete");
8
+ const get_1 = require("./get");
9
+ const getAll_1 = require("./getAll");
10
+ const update_1 = require("./update");
11
+ exports.salesOrderDescription = [
12
+ (0, operations_1.operationProperty)(get_1.salesOrderInfo, {
13
+ createDescription: 'Create a new sales order with its positions',
14
+ getDescription: 'Get the data of a single sales order with its positions',
15
+ }, actions_1.salesOrderActionOperations),
16
+ ...create_1.salesOrderCreateDescription,
17
+ ...delete_1.salesOrderDeleteDescription,
18
+ ...get_1.salesOrderGetDescription,
19
+ ...getAll_1.salesOrderGetManyDescription,
20
+ ...update_1.salesOrderUpdateDescription,
21
+ ...actions_1.salesOrderActionDescription,
22
+ ];
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/salesOrder/index.ts"],"names":[],"mappings":";;;AACA,wDAA4D;AAC5D,uCAAoF;AACpF,qCAAuD;AACvD,qCAAuD;AACvD,+BAAiE;AACjE,qCAAwD;AACxD,qCAAuD;AAE1C,QAAA,qBAAqB,GAAsB;IACvD,IAAA,8BAAiB,EAChB,oBAAc,EACd;QACC,iBAAiB,EAAE,6CAA6C;QAChE,cAAc,EAAE,yDAAyD;KACzE,EACD,oCAA0B,CAC1B;IACD,GAAG,oCAA2B;IAC9B,GAAG,oCAA2B;IAC9B,GAAG,8BAAwB;IAC3B,GAAG,qCAA4B;IAC/B,GAAG,oCAA2B;IAC9B,GAAG,qCAA2B;CAC9B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const salesOrderUpdateDescription: INodeProperties[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.salesOrderUpdateDescription = void 0;
4
+ const write_1 = require("../../shared/write");
5
+ exports.salesOrderUpdateDescription = [
6
+ ...(0, write_1.updateDataProperty)('salesOrder', '{"ReferenceText": "Order 4711", "Positions": [{"OrderPosID": 5678, "Quantity": 3}]}', 'Positions in the array Positions change existing positions and need their OrderPosID. Positions without OrderPosID are ignored.'),
7
+ ];
8
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/salesOrder/update.ts"],"names":[],"mappings":";;;AACA,8CAAwD;AAI3C,QAAA,2BAA2B,GAAsB;IAC7D,GAAG,IAAA,0BAAkB,EACpB,YAAY,EACZ,qFAAqF,EACrF,iIAAiI,CACjI;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const salesOrderPositionCreateDescription: INodeProperties[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.salesOrderPositionCreateDescription = void 0;
4
+ const write_1 = require("../../shared/write");
5
+ exports.salesOrderPositionCreateDescription = [
6
+ {
7
+ displayName: 'myfactory adds the position and recalculates the sales order, but does not number the positions again. Use the sales order action Renumber Positions for that.',
8
+ name: 'salesOrderPositionCreateNotice',
9
+ type: 'notice',
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['salesOrderPosition'],
13
+ operation: ['create'],
14
+ },
15
+ },
16
+ default: '',
17
+ },
18
+ ...(0, write_1.createDataProperty)('salesOrderPosition', 'Fields of the new position as a JSON object. OrderID is required: the ID of the sales order. PosType: 1 product (default, needs ProductID or ProductNumber), 2 manual position (send Name1, Quantity, Unit and Price), 3 alternative position (offers only), 4 text (Name1 up to 100 characters, long text in PosText), 5 subtotal, 6 page break, 7 group title. Other values are rejected. PosIndex inserts the position before the position at that place (0 is the first), without it the position is appended. For a product position, a sent Price or Discount wins over the price lists and the position is marked as a manual price (PriceManual 0 turns this off). The sales order action Refresh Prices keeps it only if myfactory is set up to keep fixed prices. Without PosNumber the new position gets the number of its predecessor plus one. myfactory recalculates the sales order.', '{"OrderID": 1234, "ProductNumber": "1000", "Quantity": 2}', 'Whether to return almost all fields of the new position instead of a few fields only. Some fields such as OrderID are missing from the response. Use Get to read them.'),
19
+ ];
20
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/salesOrderPosition/create.ts"],"names":[],"mappings":";;;AACA,8CAAwD;AAI3C,QAAA,mCAAmC,GAAsB;IACrE;QACC,WAAW,EACV,gKAAgK;QACjK,IAAI,EAAE,gCAAgC;QACtC,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,oBAAoB,CAAC;gBAChC,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;KACX;IACD,GAAG,IAAA,0BAAkB,EACpB,oBAAoB,EACpB,q2BAAq2B,EACr2B,2DAA2D,EAC3D,wKAAwK,CACxK;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const salesOrderPositionDeleteDescription: INodeProperties[];
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.salesOrderPositionDeleteDescription = void 0;
4
+ const delete_1 = require("../../shared/delete");
5
+ const get_1 = require("./get");
6
+ exports.salesOrderPositionDeleteDescription = (0, delete_1.deleteProperties)(get_1.salesOrderPositionInfo, 'Deleting a position is permanent. myfactory removes it from the sales order and recalculates the order. The API does not check whether the sales order is already processed.');
7
+ //# sourceMappingURL=delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/salesOrderPosition/delete.ts"],"names":[],"mappings":";;;AACA,gDAAuD;AACvD,+BAA+C;AAGlC,QAAA,mCAAmC,GAAsB,IAAA,yBAAgB,EACrF,4BAAsB,EACtB,8KAA8K,CAC9K,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { INodeProperties, INodePropertyOptions } from 'n8n-workflow';
2
+ import type { ResourceInfo } from '../../shared/resource';
3
+ export declare const salesOrderPositionInfo: ResourceInfo;
4
+ export declare const salesOrderPositionSimplifiedFields: string[];
5
+ export declare const salesOrderPositionIncludes: INodePropertyOptions[];
6
+ export declare const salesOrderPositionGetDescription: INodeProperties[];
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.salesOrderPositionGetDescription = exports.salesOrderPositionIncludes = exports.salesOrderPositionSimplifiedFields = exports.salesOrderPositionInfo = void 0;
4
+ const read_1 = require("../../shared/read");
5
+ exports.salesOrderPositionInfo = {
6
+ resource: 'salesOrderPosition',
7
+ path: '/salesorderpositions',
8
+ label: 'sales order position',
9
+ labelPlural: 'sales order positions',
10
+ idParameter: 'salesOrderPosId',
11
+ idDisplayName: 'Sales Order Position ID',
12
+ idField: 'OrderPosID',
13
+ };
14
+ exports.salesOrderPositionSimplifiedFields = [
15
+ 'OrderPosID',
16
+ 'OrderID',
17
+ 'PosNumber',
18
+ 'ProductID',
19
+ 'ProductNumber',
20
+ 'Name1',
21
+ 'Quantity',
22
+ 'Unit',
23
+ 'Price',
24
+ 'Turnover',
25
+ ];
26
+ exports.salesOrderPositionIncludes = [
27
+ { name: 'Attributes', value: 'attributes' },
28
+ { name: 'History', value: 'history' },
29
+ ];
30
+ exports.salesOrderPositionGetDescription = (0, read_1.getProperties)(exports.salesOrderPositionInfo, exports.salesOrderPositionSimplifiedFields, exports.salesOrderPositionIncludes);
31
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/salesOrderPosition/get.ts"],"names":[],"mappings":";;;AACA,4CAAkD;AAIrC,QAAA,sBAAsB,GAAiB;IACnD,QAAQ,EAAE,oBAAoB;IAC9B,IAAI,EAAE,sBAAsB;IAC5B,KAAK,EAAE,sBAAsB;IAC7B,WAAW,EAAE,uBAAuB;IACpC,WAAW,EAAE,iBAAiB;IAC9B,aAAa,EAAE,yBAAyB;IACxC,OAAO,EAAE,YAAY;CACrB,CAAC;AAGW,QAAA,kCAAkC,GAAG;IACjD,YAAY;IACZ,SAAS;IACT,WAAW;IACX,WAAW;IACX,eAAe;IACf,OAAO;IACP,UAAU;IACV,MAAM;IACN,OAAO;IACP,UAAU;CACV,CAAC;AAKW,QAAA,0BAA0B,GAA2B;IACjE,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;IAC3C,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;CACrC,CAAC;AAEW,QAAA,gCAAgC,GAAsB,IAAA,oBAAa,EAC/E,8BAAsB,EACtB,0CAAkC,EAClC,kCAA0B,CAC1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const salesOrderPositionGetManyDescription: INodeProperties[];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.salesOrderPositionGetManyDescription = void 0;
4
+ const read_1 = require("../../shared/read");
5
+ const get_1 = require("./get");
6
+ exports.salesOrderPositionGetManyDescription = (0, read_1.getManyProperties)(get_1.salesOrderPositionInfo, get_1.salesOrderPositionSimplifiedFields, get_1.salesOrderPositionIncludes, {
7
+ fields: 'OrderPosID,OrderID,ProductNumber,Quantity',
8
+ sort: 'OrderID,PosNumber',
9
+ filterField: 'OrderID',
10
+ clause: "ProductNumber$EQ$'1000'",
11
+ });
12
+ //# sourceMappingURL=getAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/salesOrderPosition/getAll.ts"],"names":[],"mappings":";;;AACA,4CAAsD;AACtD,+BAIe;AAGF,QAAA,oCAAoC,GAAsB,IAAA,wBAAiB,EACvF,4BAAsB,EACtB,wCAAkC,EAClC,gCAA0B,EAC1B;IACC,MAAM,EAAE,2CAA2C;IACnD,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,SAAS;IACtB,MAAM,EAAE,yBAAyB;CACjC,CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const salesOrderPositionDescription: INodeProperties[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.salesOrderPositionDescription = 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.salesOrderPositionDescription = [
11
+ (0, operations_1.operationProperty)(get_1.salesOrderPositionInfo, {
12
+ createDescription: 'Add a position to a sales order',
13
+ }),
14
+ ...create_1.salesOrderPositionCreateDescription,
15
+ ...delete_1.salesOrderPositionDeleteDescription,
16
+ ...get_1.salesOrderPositionGetDescription,
17
+ ...getAll_1.salesOrderPositionGetManyDescription,
18
+ ...update_1.salesOrderPositionUpdateDescription,
19
+ ];
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/salesOrderPosition/index.ts"],"names":[],"mappings":";;;AACA,wDAA4D;AAC5D,qCAA+D;AAC/D,qCAA+D;AAC/D,+BAAiF;AACjF,qCAAgE;AAChE,qCAA+D;AAElD,QAAA,6BAA6B,GAAsB;IAC/D,IAAA,8BAAiB,EAAC,4BAAsB,EAAE;QACzC,iBAAiB,EAAE,iCAAiC;KACpD,CAAC;IACF,GAAG,4CAAmC;IACtC,GAAG,4CAAmC;IACtC,GAAG,sCAAgC;IACnC,GAAG,6CAAoC;IACvC,GAAG,4CAAmC;CACtC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const salesOrderPositionUpdateDescription: INodeProperties[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.salesOrderPositionUpdateDescription = void 0;
4
+ const write_1 = require("../../shared/write");
5
+ exports.salesOrderPositionUpdateDescription = [
6
+ ...(0, write_1.updateDataProperty)('salesOrderPosition', '{"Quantity": 3}', 'OrderID and PosType cannot be changed. PosIndex moves the position to that place in the sales order (0 is the first), the position numbers stay the same. myfactory recalculates the sales order.'),
7
+ ];
8
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/salesOrderPosition/update.ts"],"names":[],"mappings":";;;AACA,8CAAwD;AAI3C,QAAA,mCAAmC,GAAsB;IACrE,GAAG,IAAA,0BAAkB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,mMAAmM,CACnM;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const supplierCreateDescription: INodeProperties[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.supplierCreateDescription = void 0;
4
+ const write_1 = require("../../shared/write");
5
+ exports.supplierCreateDescription = [
6
+ ...(0, write_1.createDataProperty)('supplier', 'Fields of the new supplier as a JSON object. AddressID is required: create the address first (resource Address) and use the AddressID it returns. SupplierGroup is required: the short name of a supplier group of your installation, not its description. An empty text takes the first group in alphabetical order. Without SupplierNumber, myfactory assigns the next number. A purchase order needs a payment condition: set PaymentConditions to the ConditionID of a payment condition of your installation, otherwise myfactory takes the one of the supplier group or its parent groups. Without either, creating a purchase order for the supplier fails.', '{"AddressID": 1234, "SupplierGroup": "HL", "PaymentConditions": 1}'),
7
+ ];
8
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/supplier/create.ts"],"names":[],"mappings":";;;AACA,8CAAwD;AAO3C,QAAA,yBAAyB,GAAsB;IAC3D,GAAG,IAAA,0BAAkB,EACpB,UAAU,EACV,ooBAAooB,EACpoB,oEAAoE,CACpE;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const supplierDeleteDescription: INodeProperties[];
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.supplierDeleteDescription = void 0;
4
+ const delete_1 = require("../../shared/delete");
5
+ const get_1 = require("./get");
6
+ exports.supplierDeleteDescription = (0, delete_1.deleteProperties)(get_1.supplierInfo, "Deleting a supplier is permanent and also removes its bank details and product supplier entries in myfactory. myfactory refuses the delete while the supplier is used in purchase documents, in accounting or for devices. The node then fails with the reason (status 409). If the myfactory setting to delete unused addresses is on, the supplier's address is deleted too, unless another record such as a customer or prospect still uses it.", 'SupplierGroup');
7
+ //# sourceMappingURL=delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../nodes/IptRestApi2/resources/supplier/delete.ts"],"names":[],"mappings":";;;AACA,gDAAuD;AACvD,+BAAqC;AAIxB,QAAA,yBAAyB,GAAsB,IAAA,yBAAgB,EAC3E,kBAAY,EACZ,obAAob,EACpb,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 supplierInfo: ResourceInfo;
4
+ export declare const supplierIncludes: INodePropertyOptions[];
5
+ export declare const supplierSimplifiedFields: string[];
6
+ export declare const supplierGetDescription: INodeProperties[];