@posty5/n8n-nodes-posty5 4.0.0 → 5.0.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 (174) hide show
  1. package/README.md +397 -19
  2. package/dist/credentials/Posty5Api.credentials.d.ts +4 -0
  3. package/dist/credentials/Posty5Api.credentials.d.ts.map +1 -1
  4. package/dist/credentials/Posty5Api.credentials.js +30 -4
  5. package/dist/credentials/Posty5Api.credentials.js.map +1 -1
  6. package/dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.d.ts.map +1 -1
  7. package/dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.js +6 -2
  8. package/dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.js.map +1 -1
  9. package/dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.d.ts.map +1 -1
  10. package/dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.js +14 -3
  11. package/dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.js.map +1 -1
  12. package/dist/nodes/Posty5QrCode/Posty5QrCode.node.d.ts +6 -0
  13. package/dist/nodes/Posty5QrCode/Posty5QrCode.node.d.ts.map +1 -1
  14. package/dist/nodes/Posty5QrCode/Posty5QrCode.node.js +850 -189
  15. package/dist/nodes/Posty5QrCode/Posty5QrCode.node.js.map +1 -1
  16. package/dist/nodes/Posty5QrCode/helpers.d.ts +12 -0
  17. package/dist/nodes/Posty5QrCode/helpers.d.ts.map +1 -0
  18. package/dist/nodes/Posty5QrCode/helpers.js +56 -0
  19. package/dist/nodes/Posty5QrCode/helpers.js.map +1 -0
  20. package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.d.ts +8 -0
  21. package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.d.ts.map +1 -1
  22. package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.js +389 -78
  23. package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.js.map +1 -1
  24. package/dist/nodes/Posty5ShortLink/helpers.d.ts +12 -0
  25. package/dist/nodes/Posty5ShortLink/helpers.d.ts.map +1 -0
  26. package/dist/nodes/Posty5ShortLink/helpers.js +46 -0
  27. package/dist/nodes/Posty5ShortLink/helpers.js.map +1 -0
  28. package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.d.ts.map +1 -1
  29. package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.js +458 -75
  30. package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.js.map +1 -1
  31. package/dist/nodes/Posty5Store/Posty5Store.node.d.ts +17 -0
  32. package/dist/nodes/Posty5Store/Posty5Store.node.d.ts.map +1 -0
  33. package/dist/nodes/Posty5Store/Posty5Store.node.js +230 -0
  34. package/dist/nodes/Posty5Store/Posty5Store.node.js.map +1 -0
  35. package/dist/nodes/Posty5Store/descriptions/fulfilment-group.description.d.ts +4 -0
  36. package/dist/nodes/Posty5Store/descriptions/fulfilment-group.description.d.ts.map +1 -0
  37. package/dist/nodes/Posty5Store/descriptions/fulfilment-group.description.js +55 -0
  38. package/dist/nodes/Posty5Store/descriptions/fulfilment-group.description.js.map +1 -0
  39. package/dist/nodes/Posty5Store/descriptions/order.description.d.ts +4 -0
  40. package/dist/nodes/Posty5Store/descriptions/order.description.d.ts.map +1 -0
  41. package/dist/nodes/Posty5Store/descriptions/order.description.js +91 -0
  42. package/dist/nodes/Posty5Store/descriptions/order.description.js.map +1 -0
  43. package/dist/nodes/Posty5Store/descriptions/product-link.description.d.ts +4 -0
  44. package/dist/nodes/Posty5Store/descriptions/product-link.description.d.ts.map +1 -0
  45. package/dist/nodes/Posty5Store/descriptions/product-link.description.js +48 -0
  46. package/dist/nodes/Posty5Store/descriptions/product-link.description.js.map +1 -0
  47. package/dist/nodes/Posty5Store/descriptions/supplier-order.description.d.ts +4 -0
  48. package/dist/nodes/Posty5Store/descriptions/supplier-order.description.d.ts.map +1 -0
  49. package/dist/nodes/Posty5Store/descriptions/supplier-order.description.js +118 -0
  50. package/dist/nodes/Posty5Store/descriptions/supplier-order.description.js.map +1 -0
  51. package/dist/nodes/Posty5Store/descriptions/supplier-product.description.d.ts +4 -0
  52. package/dist/nodes/Posty5Store/descriptions/supplier-product.description.d.ts.map +1 -0
  53. package/dist/nodes/Posty5Store/descriptions/supplier-product.description.js +167 -0
  54. package/dist/nodes/Posty5Store/descriptions/supplier-product.description.js.map +1 -0
  55. package/dist/nodes/Posty5Store/descriptions/supplier.description.d.ts +4 -0
  56. package/dist/nodes/Posty5Store/descriptions/supplier.description.d.ts.map +1 -0
  57. package/dist/nodes/Posty5Store/descriptions/supplier.description.js +50 -0
  58. package/dist/nodes/Posty5Store/descriptions/supplier.description.js.map +1 -0
  59. package/dist/nodes/Posty5Trigger/Posty5Trigger.node.d.ts +13 -0
  60. package/dist/nodes/Posty5Trigger/Posty5Trigger.node.d.ts.map +1 -0
  61. package/dist/nodes/Posty5Trigger/Posty5Trigger.node.js +171 -0
  62. package/dist/nodes/Posty5Trigger/Posty5Trigger.node.js.map +1 -0
  63. package/dist/nodes/Posty5Trigger/config.d.ts +51 -0
  64. package/dist/nodes/Posty5Trigger/config.d.ts.map +1 -0
  65. package/dist/nodes/Posty5Trigger/config.js +76 -0
  66. package/dist/nodes/Posty5Trigger/config.js.map +1 -0
  67. package/dist/nodes/Posty5Trigger/descriptions.d.ts +4 -0
  68. package/dist/nodes/Posty5Trigger/descriptions.d.ts.map +1 -0
  69. package/dist/nodes/Posty5Trigger/descriptions.js +99 -0
  70. package/dist/nodes/Posty5Trigger/descriptions.js.map +1 -0
  71. package/dist/nodes/Posty5Trigger/helpers.d.ts +34 -0
  72. package/dist/nodes/Posty5Trigger/helpers.d.ts.map +1 -0
  73. package/dist/nodes/Posty5Trigger/helpers.js +139 -0
  74. package/dist/nodes/Posty5Trigger/helpers.js.map +1 -0
  75. package/dist/package.json +78 -0
  76. package/dist/types/common.d.ts +62 -0
  77. package/dist/types/common.d.ts.map +1 -1
  78. package/dist/types/link-analytics.types.d.ts +147 -0
  79. package/dist/types/link-analytics.types.d.ts.map +1 -0
  80. package/dist/types/link-analytics.types.js +10 -0
  81. package/dist/types/link-analytics.types.js.map +1 -0
  82. package/dist/types/link-bulk.types.d.ts +68 -0
  83. package/dist/types/link-bulk.types.d.ts.map +1 -0
  84. package/dist/types/link-bulk.types.js +8 -0
  85. package/dist/types/link-bulk.types.js.map +1 -0
  86. package/dist/types/qr-code.types.d.ts +189 -56
  87. package/dist/types/qr-code.types.d.ts.map +1 -1
  88. package/dist/types/short-link-controls.types.d.ts +82 -0
  89. package/dist/types/short-link-controls.types.d.ts.map +1 -0
  90. package/dist/types/short-link-controls.types.js +7 -0
  91. package/dist/types/short-link-controls.types.js.map +1 -0
  92. package/dist/types/short-link.types.d.ts +63 -15
  93. package/dist/types/short-link.types.d.ts.map +1 -1
  94. package/dist/types/store.types.d.ts +71 -0
  95. package/dist/types/store.types.d.ts.map +1 -0
  96. package/dist/types/store.types.js +7 -0
  97. package/dist/types/store.types.js.map +1 -0
  98. package/dist/types/webhook.types.d.ts +66 -0
  99. package/dist/types/webhook.types.d.ts.map +1 -0
  100. package/dist/types/webhook.types.js +7 -0
  101. package/dist/types/webhook.types.js.map +1 -0
  102. package/dist/utils/analytics.helpers.d.ts +68 -0
  103. package/dist/utils/analytics.helpers.d.ts.map +1 -0
  104. package/dist/utils/analytics.helpers.js +202 -0
  105. package/dist/utils/analytics.helpers.js.map +1 -0
  106. package/dist/utils/analytics.properties.d.ts +10 -0
  107. package/dist/utils/analytics.properties.d.ts.map +1 -0
  108. package/dist/utils/analytics.properties.js +172 -0
  109. package/dist/utils/analytics.properties.js.map +1 -0
  110. package/dist/utils/api.helpers.d.ts +36 -3
  111. package/dist/utils/api.helpers.d.ts.map +1 -1
  112. package/dist/utils/api.helpers.js +77 -7
  113. package/dist/utils/api.helpers.js.map +1 -1
  114. package/dist/utils/constants.d.ts +198 -0
  115. package/dist/utils/constants.d.ts.map +1 -1
  116. package/dist/utils/constants.js +215 -1
  117. package/dist/utils/constants.js.map +1 -1
  118. package/dist/utils/date.helpers.d.ts +25 -0
  119. package/dist/utils/date.helpers.d.ts.map +1 -0
  120. package/dist/utils/date.helpers.js +65 -0
  121. package/dist/utils/date.helpers.js.map +1 -0
  122. package/dist/utils/link-bulk.helpers.d.ts +26 -0
  123. package/dist/utils/link-bulk.helpers.d.ts.map +1 -0
  124. package/dist/utils/link-bulk.helpers.js +135 -0
  125. package/dist/utils/link-bulk.helpers.js.map +1 -0
  126. package/dist/utils/link-bulk.properties.d.ts +9 -0
  127. package/dist/utils/link-bulk.properties.d.ts.map +1 -0
  128. package/dist/utils/link-bulk.properties.js +113 -0
  129. package/dist/utils/link-bulk.properties.js.map +1 -0
  130. package/dist/utils/link-tool.helpers.d.ts +43 -0
  131. package/dist/utils/link-tool.helpers.d.ts.map +1 -0
  132. package/dist/utils/link-tool.helpers.js +121 -0
  133. package/dist/utils/link-tool.helpers.js.map +1 -0
  134. package/dist/utils/post-comments.d.ts +43 -0
  135. package/dist/utils/post-comments.d.ts.map +1 -0
  136. package/dist/utils/post-comments.js +53 -0
  137. package/dist/utils/post-comments.js.map +1 -0
  138. package/dist/utils/qr-content.config.d.ts +66 -0
  139. package/dist/utils/qr-content.config.d.ts.map +1 -0
  140. package/dist/utils/qr-content.config.js +139 -0
  141. package/dist/utils/qr-content.config.js.map +1 -0
  142. package/dist/utils/qr-file.helpers.d.ts +22 -0
  143. package/dist/utils/qr-file.helpers.d.ts.map +1 -0
  144. package/dist/utils/qr-file.helpers.js +63 -0
  145. package/dist/utils/qr-file.helpers.js.map +1 -0
  146. package/dist/utils/qr-target.helpers.d.ts +35 -0
  147. package/dist/utils/qr-target.helpers.d.ts.map +1 -0
  148. package/dist/utils/qr-target.helpers.js +260 -0
  149. package/dist/utils/qr-target.helpers.js.map +1 -0
  150. package/dist/utils/qr-templates.helpers.d.ts +26 -0
  151. package/dist/utils/qr-templates.helpers.d.ts.map +1 -0
  152. package/dist/utils/qr-templates.helpers.js +70 -0
  153. package/dist/utils/qr-templates.helpers.js.map +1 -0
  154. package/dist/utils/resumable-upload.d.ts +39 -0
  155. package/dist/utils/resumable-upload.d.ts.map +1 -0
  156. package/dist/utils/resumable-upload.js +164 -0
  157. package/dist/utils/resumable-upload.js.map +1 -0
  158. package/dist/utils/short-link-controls.helpers.d.ts +31 -0
  159. package/dist/utils/short-link-controls.helpers.d.ts.map +1 -0
  160. package/dist/utils/short-link-controls.helpers.js +185 -0
  161. package/dist/utils/short-link-controls.helpers.js.map +1 -0
  162. package/dist/utils/short-link-controls.properties.d.ts +17 -0
  163. package/dist/utils/short-link-controls.properties.d.ts.map +1 -0
  164. package/dist/utils/short-link-controls.properties.js +315 -0
  165. package/dist/utils/short-link-controls.properties.js.map +1 -0
  166. package/dist/utils/store.helpers.d.ts +43 -0
  167. package/dist/utils/store.helpers.d.ts.map +1 -0
  168. package/dist/utils/store.helpers.js +87 -0
  169. package/dist/utils/store.helpers.js.map +1 -0
  170. package/dist/utils/versioned-write.helpers.d.ts +31 -0
  171. package/dist/utils/versioned-write.helpers.d.ts.map +1 -0
  172. package/dist/utils/versioned-write.helpers.js +120 -0
  173. package/dist/utils/versioned-write.helpers.js.map +1 -0
  174. package/package.json +7 -3
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.productLinkFields = exports.productLinkOperations = void 0;
4
+ const show = { resource: ['productLink'] };
5
+ exports.productLinkOperations = {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: { show },
11
+ options: [
12
+ {
13
+ name: 'Get Many',
14
+ value: 'getMany',
15
+ description: "List the store's product links to suppliers",
16
+ action: 'Get many product links',
17
+ },
18
+ {
19
+ name: 'Sync',
20
+ value: 'sync',
21
+ description: 'Sync one link with its supplier now. Refused within a minute of the last sync.',
22
+ action: 'Sync a product link',
23
+ },
24
+ ],
25
+ default: 'getMany',
26
+ };
27
+ exports.productLinkFields = [
28
+ {
29
+ displayName: 'Link ID',
30
+ name: 'linkId',
31
+ type: 'string',
32
+ required: true,
33
+ default: '',
34
+ displayOptions: { show: { ...show, operation: ['sync'] } },
35
+ },
36
+ {
37
+ displayName: 'Filters',
38
+ name: 'filters',
39
+ type: 'collection',
40
+ placeholder: 'Add Filter',
41
+ default: {},
42
+ displayOptions: { show: { ...show, operation: ['getMany'] } },
43
+ options: [
44
+ { displayName: 'Product ID', name: 'productId', type: 'string', default: '', description: 'Only the link of this store product' },
45
+ ],
46
+ },
47
+ ];
48
+ //# sourceMappingURL=product-link.description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-link.description.js","sourceRoot":"","sources":["../../../../nodes/Posty5Store/descriptions/product-link.description.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;AAE9B,QAAA,qBAAqB,GAAoB;IACrD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE,EAAE,IAAI,EAAE;IACxB,OAAO,EAAE;QACR;YACC,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,6CAA6C;YAC1D,MAAM,EAAE,wBAAwB;SAChC;QACD;YACC,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,gFAAgF;YAC7F,MAAM,EAAE,qBAAqB;SAC7B;KACD;IACD,OAAO,EAAE,SAAS;CAClB,CAAC;AAEW,QAAA,iBAAiB,GAAsB;IACnD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE;KAC1D;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE;QAC7D,OAAO,EAAE;YACR,EAAE,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,qCAAqC,EAAE;SACjI;KACD;CACD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const supplierOrderOperations: INodeProperties;
3
+ export declare const supplierOrderFields: INodeProperties[];
4
+ //# sourceMappingURL=supplier-order.description.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supplier-order.description.d.ts","sourceRoot":"","sources":["../../../../nodes/Posty5Store/descriptions/supplier-order.description.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAKpD,eAAO,MAAM,uBAAuB,EAAE,eAyCrC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,eAAe,EAuEhD,CAAC"}
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.supplierOrderFields = exports.supplierOrderOperations = void 0;
4
+ const constants_1 = require("../../../utils/constants");
5
+ const show = { resource: ['supplierOrder'] };
6
+ exports.supplierOrderOperations = {
7
+ displayName: 'Operation',
8
+ name: 'operation',
9
+ type: 'options',
10
+ noDataExpression: true,
11
+ displayOptions: { show },
12
+ options: [
13
+ {
14
+ name: 'Cancel',
15
+ value: 'cancel',
16
+ description: 'Withdraw the order at the supplier, where the supplier still allows it',
17
+ action: 'Cancel a supplier order',
18
+ },
19
+ {
20
+ name: 'Get',
21
+ value: 'get',
22
+ description: 'Get one supplier order with its history',
23
+ action: 'Get a supplier order',
24
+ },
25
+ {
26
+ name: 'Get Many',
27
+ value: 'getMany',
28
+ description: 'List supplier orders, newest first',
29
+ action: 'Get many supplier orders',
30
+ },
31
+ {
32
+ name: 'Pay',
33
+ value: 'pay',
34
+ description: "Pay a supplier order that was created but not paid. Spends the merchant's balance at the supplier; needs suppliers.orders.manage. An order already paid there is recorded, not paid again.",
35
+ action: 'Pay a supplier order',
36
+ },
37
+ {
38
+ name: 'Retry',
39
+ value: 'retry',
40
+ description: 'Try a queued, paused or failed supplier order again. A paused order usually needs something changed first.',
41
+ action: 'Retry a supplier order',
42
+ },
43
+ ],
44
+ default: 'getMany',
45
+ };
46
+ exports.supplierOrderFields = [
47
+ {
48
+ displayName: 'Supplier Order ID',
49
+ name: 'supplierOrderId',
50
+ type: 'string',
51
+ required: true,
52
+ default: '',
53
+ displayOptions: { show: { ...show, operation: ['cancel', 'get', 'pay', 'retry'] } },
54
+ },
55
+ {
56
+ displayName: 'Accept New Cost',
57
+ name: 'acceptCost',
58
+ type: 'boolean',
59
+ default: false,
60
+ description: "Whether to accept the supplier's new price after a price change. Recorded as the caller's decision.",
61
+ displayOptions: { show: { ...show, operation: ['retry'] } },
62
+ },
63
+ {
64
+ displayName: 'Return All',
65
+ name: 'returnAll',
66
+ type: 'boolean',
67
+ default: false,
68
+ description: 'Whether to return all results or only up to a given limit',
69
+ displayOptions: { show: { ...show, operation: ['getMany'] } },
70
+ },
71
+ {
72
+ displayName: 'Limit',
73
+ name: 'limit',
74
+ type: 'number',
75
+ typeOptions: { minValue: 1, maxValue: constants_1.STORE_SUPPLIER_PAGE_SIZES.SUPPLIER_ORDERS_MAX },
76
+ default: 50,
77
+ description: 'Max number of results to return',
78
+ displayOptions: { show: { ...show, operation: ['getMany'], returnAll: [false] } },
79
+ },
80
+ {
81
+ displayName: 'Filters',
82
+ name: 'filters',
83
+ type: 'collection',
84
+ placeholder: 'Add Filter',
85
+ default: {},
86
+ displayOptions: { show: { ...show, operation: ['getMany'] } },
87
+ options: [
88
+ { displayName: 'Cursor', name: 'cursor', type: 'string', default: '', description: 'The nextCursor of the previous page' },
89
+ { displayName: 'Order ID', name: 'orderId', type: 'string', default: '', description: 'Only the supplier orders of this store order' },
90
+ {
91
+ displayName: 'Needs Review',
92
+ name: 'needsReview',
93
+ type: 'boolean',
94
+ default: true,
95
+ description: 'Whether to return only paused supplier orders',
96
+ },
97
+ {
98
+ displayName: 'Status',
99
+ name: 'status',
100
+ type: 'options',
101
+ options: [
102
+ { name: 'Cancelled', value: 'cancelled' },
103
+ { name: 'Confirmed', value: 'confirmed' },
104
+ { name: 'Delivered', value: 'delivered' },
105
+ { name: 'Failed', value: 'failed' },
106
+ { name: 'Needs Review', value: 'needsReview' },
107
+ { name: 'Processing', value: 'processing' },
108
+ { name: 'Queued', value: 'queued' },
109
+ { name: 'Shipped', value: 'shipped' },
110
+ { name: 'Submitted', value: 'submitted' },
111
+ ],
112
+ default: 'needsReview',
113
+ },
114
+ { displayName: 'Supplier Connection ID', name: 'integrationId', type: 'string', default: '' },
115
+ ],
116
+ },
117
+ ];
118
+ //# sourceMappingURL=supplier-order.description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supplier-order.description.js","sourceRoot":"","sources":["../../../../nodes/Posty5Store/descriptions/supplier-order.description.ts"],"names":[],"mappings":";;;AACA,wDAAqE;AAErE,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC;AAEhC,QAAA,uBAAuB,GAAoB;IACvD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE,EAAE,IAAI,EAAE;IACxB,OAAO,EAAE;QACR;YACC,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,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EAAE,WAAW,EAAE;oBACzC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;oBACzC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;oBACzC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACnC,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,aAAa,EAAE;oBAC9C,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;oBAC3C,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACnC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACrC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;iBACzC;gBACD,OAAO,EAAE,aAAa;aACtB;YACD,EAAE,WAAW,EAAE,wBAAwB,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;SAC7F;KACD;CACD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const supplierProductOperations: INodeProperties;
3
+ export declare const supplierProductFields: INodeProperties[];
4
+ //# sourceMappingURL=supplier-product.description.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supplier-product.description.d.ts","sourceRoot":"","sources":["../../../../nodes/Posty5Store/descriptions/supplier-product.description.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAKpD,eAAO,MAAM,yBAAyB,EAAE,eA8CvC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,eAAe,EAkHlD,CAAC"}
@@ -0,0 +1,167 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.supplierProductFields = exports.supplierProductOperations = void 0;
4
+ const constants_1 = require("../../../utils/constants");
5
+ const show = { resource: ['supplierProduct'] };
6
+ exports.supplierProductOperations = {
7
+ displayName: 'Operation',
8
+ name: 'operation',
9
+ type: 'options',
10
+ noDataExpression: true,
11
+ displayOptions: { show },
12
+ options: [
13
+ {
14
+ name: 'Get',
15
+ value: 'get',
16
+ description: 'Get one supplier product with its variants, costs and stock',
17
+ action: 'Get a supplier product',
18
+ },
19
+ {
20
+ name: 'Get Import Status',
21
+ value: 'getImportStatus',
22
+ description: 'Read the progress of a background import',
23
+ action: 'Get an import status',
24
+ },
25
+ {
26
+ name: 'Get Many',
27
+ value: 'getMany',
28
+ description: "Browse or search the supplier's catalogue",
29
+ action: 'Get many supplier products',
30
+ },
31
+ {
32
+ name: 'Import',
33
+ value: 'import',
34
+ description: 'Import up to 50 products into the store. Charged like adding products. Large imports answer a job ID to poll.',
35
+ action: 'Import supplier products',
36
+ },
37
+ {
38
+ name: 'Preview Import',
39
+ value: 'previewImport',
40
+ description: 'Price the chosen products and name duplicates. Nothing is created or charged.',
41
+ action: 'Preview a supplier import',
42
+ },
43
+ {
44
+ name: 'Resolve URL',
45
+ value: 'resolveUrl',
46
+ description: 'Turn a pasted product link into the supplier product',
47
+ action: 'Resolve a supplier product URL',
48
+ },
49
+ ],
50
+ default: 'getMany',
51
+ };
52
+ exports.supplierProductFields = [
53
+ {
54
+ displayName: 'Supplier Connection ID',
55
+ name: 'integrationId',
56
+ type: 'string',
57
+ required: true,
58
+ default: '',
59
+ description: 'The connection ID, from Supplier → Get Many',
60
+ displayOptions: { show: { ...show, operation: ['get', 'getMany', 'import', 'previewImport', 'resolveUrl'] } },
61
+ },
62
+ {
63
+ displayName: 'Supplier Product ID',
64
+ name: 'supplierProductId',
65
+ type: 'string',
66
+ required: true,
67
+ default: '',
68
+ displayOptions: { show: { ...show, operation: ['get'] } },
69
+ },
70
+ {
71
+ displayName: 'Product URL',
72
+ name: 'url',
73
+ type: 'string',
74
+ required: true,
75
+ default: '',
76
+ placeholder: 'https://…',
77
+ description: 'A full product link from the supplier. Shortened links are refused.',
78
+ displayOptions: { show: { ...show, operation: ['resolveUrl'] } },
79
+ },
80
+ {
81
+ displayName: 'Supplier Product IDs',
82
+ name: 'supplierProductIds',
83
+ type: 'string',
84
+ required: true,
85
+ default: '',
86
+ description: 'Comma-separated supplier product IDs, up to 50. Every variant of each is imported.',
87
+ displayOptions: { show: { ...show, operation: ['import', 'previewImport'] } },
88
+ },
89
+ {
90
+ displayName: 'Job ID',
91
+ name: 'jobId',
92
+ type: 'string',
93
+ required: true,
94
+ default: '',
95
+ description: 'The job ID an Import answered',
96
+ displayOptions: { show: { ...show, operation: ['getImportStatus'] } },
97
+ },
98
+ {
99
+ displayName: 'Page',
100
+ name: 'page',
101
+ type: 'number',
102
+ typeOptions: { minValue: 1 },
103
+ default: 1,
104
+ displayOptions: { show: { ...show, operation: ['getMany'] } },
105
+ },
106
+ {
107
+ displayName: 'Limit',
108
+ name: 'limit',
109
+ type: 'number',
110
+ typeOptions: { minValue: 1, maxValue: constants_1.STORE_SUPPLIER_PAGE_SIZES.CATALOGUE_MAX },
111
+ // The lint rule wants 50, but the api refuses a catalogue pageSize above 48 with a 400.
112
+ // A literal because the lint rules read it; the test pins it to STORE_SUPPLIER_PAGE_SIZES.CATALOGUE_MAX.
113
+ // eslint-disable-next-line n8n-nodes-base/node-param-default-wrong-for-limit
114
+ default: 48,
115
+ description: 'Max number of results to return',
116
+ displayOptions: { show: { ...show, operation: ['getMany'] } },
117
+ },
118
+ {
119
+ displayName: 'Filters',
120
+ name: 'filters',
121
+ type: 'collection',
122
+ placeholder: 'Add Filter',
123
+ default: {},
124
+ displayOptions: { show: { ...show, operation: ['getMany'] } },
125
+ options: [
126
+ { displayName: 'Category ID', name: 'categoryId', type: 'string', default: '' },
127
+ { displayName: 'Search', name: 'q', type: 'string', default: '', description: 'Search text' },
128
+ ],
129
+ },
130
+ {
131
+ displayName: 'Import Options',
132
+ name: 'importOptions',
133
+ type: 'collection',
134
+ placeholder: 'Add Option',
135
+ default: {},
136
+ displayOptions: { show: { ...show, operation: ['import', 'previewImport'] } },
137
+ options: [
138
+ {
139
+ displayName: 'Allow Duplicate',
140
+ name: 'allowDuplicate',
141
+ type: 'boolean',
142
+ default: false,
143
+ description: 'Whether to import a supplier product the store already has, as a second copy',
144
+ },
145
+ {
146
+ displayName: 'Status',
147
+ name: 'status',
148
+ type: 'options',
149
+ options: [
150
+ { name: 'Active', value: 'active' },
151
+ { name: 'Draft', value: 'draft' },
152
+ { name: 'Hidden', value: 'hidden' },
153
+ ],
154
+ default: 'draft',
155
+ description: 'Status of the imported products',
156
+ },
157
+ {
158
+ displayName: 'Tag Names',
159
+ name: 'tagNames',
160
+ type: 'string',
161
+ default: '',
162
+ description: 'Comma-separated tags to add to the imported products',
163
+ },
164
+ ],
165
+ },
166
+ ];
167
+ //# sourceMappingURL=supplier-product.description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supplier-product.description.js","sourceRoot":"","sources":["../../../../nodes/Posty5Store/descriptions/supplier-product.description.ts"],"names":[],"mappings":";;;AACA,wDAAqE;AAErE,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,iBAAiB,CAAC,EAAE,CAAC;AAElC,QAAA,yBAAyB,GAAoB;IACzD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE,EAAE,IAAI,EAAE;IACxB,OAAO,EAAE;QACR;YACC,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,6DAA6D;YAC1E,MAAM,EAAE,wBAAwB;SAChC;QACD;YACC,IAAI,EAAE,mBAAmB;YACzB,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,0CAA0C;YACvD,MAAM,EAAE,sBAAsB;SAC9B;QACD;YACC,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,2CAA2C;Y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,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sDAAsD;aACnE;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const supplierOperations: INodeProperties;
3
+ export declare const supplierFields: INodeProperties[];
4
+ //# sourceMappingURL=supplier.description.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supplier.description.d.ts","sourceRoot":"","sources":["../../../../nodes/Posty5Store/descriptions/supplier.description.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD,eAAO,MAAM,kBAAkB,EAAE,eAiChC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,EAU3C,CAAC"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.supplierFields = exports.supplierOperations = void 0;
4
+ const show = { resource: ['supplier'] };
5
+ exports.supplierOperations = {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: { show },
11
+ options: [
12
+ {
13
+ name: 'Get Balance',
14
+ value: 'getBalance',
15
+ description: "Read the store's balance at the supplier, where the supplier reports one",
16
+ action: 'Get a supplier balance',
17
+ },
18
+ {
19
+ name: 'Get Catalogue',
20
+ value: 'getCatalogue',
21
+ description: 'List the suppliers this store can connect, with what each can do',
22
+ action: 'Get the supplier catalogue',
23
+ },
24
+ {
25
+ name: 'Get Many',
26
+ value: 'getMany',
27
+ description: "List the store's supplier connections. Credentials are never returned.",
28
+ action: 'Get many supplier connections',
29
+ },
30
+ {
31
+ name: 'Test',
32
+ value: 'test',
33
+ description: 'Check a connection now and record its health. Free; calls the supplier once.',
34
+ action: 'Test a supplier connection',
35
+ },
36
+ ],
37
+ default: 'getMany',
38
+ };
39
+ exports.supplierFields = [
40
+ {
41
+ displayName: 'Supplier Connection ID',
42
+ name: 'integrationId',
43
+ type: 'string',
44
+ required: true,
45
+ default: '',
46
+ description: 'The connection ID, from Supplier → Get Many',
47
+ displayOptions: { show: { ...show, operation: ['getBalance', 'test'] } },
48
+ },
49
+ ];
50
+ //# sourceMappingURL=supplier.description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supplier.description.js","sourceRoot":"","sources":["../../../../nodes/Posty5Store/descriptions/supplier.description.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;AAE3B,QAAA,kBAAkB,GAAoB;IAClD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE,EAAE,IAAI,EAAE;IACxB,OAAO,EAAE;QACR;YACC,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,0EAA0E;YACvF,MAAM,EAAE,wBAAwB;SAChC;QACD;YACC,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,kEAAkE;YAC/E,MAAM,EAAE,4BAA4B;SACpC;QACD;YACC,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,wEAAwE;YACrF,MAAM,EAAE,+BAA+B;SACvC;QACD;YACC,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,8EAA8E;YAC3F,MAAM,EAAE,4BAA4B;SACpC;KACD;IACD,OAAO,EAAE,SAAS;CAClB,CAAC;AAEW,QAAA,cAAc,GAAsB;IAChD;QACC,WAAW,EAAE,wBAAwB;QACrC,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,6CAA6C;QAC1D,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,YAAY,EAAE,MAAM,CAAC,EAAE,EAAE;KACxE;CACD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { IHookFunctions, INodeType, INodeTypeDescription, IWebhookFunctions, IWebhookResponseData } from 'n8n-workflow';
2
+ export declare class Posty5Trigger implements INodeType {
3
+ description: INodeTypeDescription;
4
+ webhookMethods: {
5
+ default: {
6
+ checkExists(this: IHookFunctions): Promise<boolean>;
7
+ create(this: IHookFunctions): Promise<boolean>;
8
+ delete(this: IHookFunctions): Promise<boolean>;
9
+ };
10
+ };
11
+ webhook(this: IWebhookFunctions): Promise<IWebhookResponseData>;
12
+ }
13
+ //# sourceMappingURL=Posty5Trigger.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Posty5Trigger.node.d.ts","sourceRoot":"","sources":["../../../nodes/Posty5Trigger/Posty5Trigger.node.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,cAAc,EACd,SAAS,EACT,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EAEpB,MAAM,cAAc,CAAC;AAiDtB,qBAAa,aAAc,YAAW,SAAS;IAC9C,WAAW,EAAE,oBAAoB,CA4B/B;IAEF,cAAc;;8BAEY,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;yBAwBtC,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;yBAuDjC,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;;MAUpD;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAoBrE"}
@@ -0,0 +1,171 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Posty5Trigger = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const api_helpers_1 = require("../../utils/api.helpers");
6
+ const versioned_write_helpers_1 = require("../../utils/versioned-write.helpers");
7
+ const constants_1 = require("../../utils/constants");
8
+ const config_1 = require("./config");
9
+ const descriptions_1 = require("./descriptions");
10
+ const helpers_1 = require("./helpers");
11
+ /** The node's API key. */
12
+ async function readApiKey(ctx) {
13
+ const credentials = await ctx.getCredentials('posty5Api');
14
+ return credentials.apiKey;
15
+ }
16
+ /** Events and targets as set on the node. */
17
+ function readSubscription(ctx) {
18
+ const links = ctx.getNodeParameter('links', 'all');
19
+ const ids = ctx.getNodeParameter(links === 'qrCodes' ? 'qrCodeIds' : 'shortLinkIds', '');
20
+ return {
21
+ events: ctx.getNodeParameter('events', []),
22
+ targets: (0, helpers_1.buildTargets)(links, ids),
23
+ };
24
+ }
25
+ /**
26
+ * Delete an endpoint; a 404 (already gone) is success. The endpoint is the
27
+ * node's own, so it is read first and its `__v` sent as `If-Match`
28
+ * (optimistic concurrency: the delete is a versioned write).
29
+ */
30
+ async function removeEndpoint(ctx, apiKey, id) {
31
+ const endpoint = `${constants_1.API_ENDPOINTS.WEBHOOK_ENDPOINTS}/${id}`;
32
+ try {
33
+ const stored = await api_helpers_1.makeApiRequest.call(ctx, apiKey, { method: 'GET', endpoint });
34
+ await api_helpers_1.makeApiRequest.call(ctx, apiKey, { method: 'DELETE', endpoint, version: (0, versioned_write_helpers_1.readStoredVersion)(stored) });
35
+ }
36
+ catch (error) {
37
+ if (error.httpCode !== config_1.TRIGGER_CONFIG.NOT_FOUND_HTTP_CODE)
38
+ throw error;
39
+ }
40
+ }
41
+ class Posty5Trigger {
42
+ constructor() {
43
+ this.description = {
44
+ displayName: 'Posty5 Trigger',
45
+ name: 'posty5Trigger',
46
+ icon: 'file:posty5.svg',
47
+ group: ['trigger'],
48
+ version: 1,
49
+ subtitle: '={{$parameter["events"].join(", ")}}',
50
+ description: 'Starts the workflow when a Posty5 short link is visited, a QR code is scanned or a milestone is reached',
51
+ defaults: {
52
+ name: 'Posty5 Trigger',
53
+ },
54
+ inputs: [],
55
+ outputs: ['main'],
56
+ credentials: [
57
+ {
58
+ name: 'posty5Api',
59
+ required: true,
60
+ },
61
+ ],
62
+ webhooks: [
63
+ {
64
+ name: config_1.TRIGGER_CONFIG.WEBHOOK_NAME,
65
+ httpMethod: 'POST',
66
+ responseMode: 'onReceived',
67
+ path: config_1.TRIGGER_CONFIG.WEBHOOK_PATH,
68
+ },
69
+ ],
70
+ properties: descriptions_1.POSTY5_TRIGGER_PROPERTIES,
71
+ };
72
+ this.webhookMethods = {
73
+ default: {
74
+ async checkExists() {
75
+ const staticData = this.getWorkflowStaticData('node');
76
+ if (!staticData.endpointId)
77
+ return false;
78
+ const apiKey = await readApiKey(this);
79
+ let endpoint;
80
+ try {
81
+ endpoint = (await api_helpers_1.makeApiRequest.call(this, apiKey, {
82
+ method: 'GET',
83
+ endpoint: `${constants_1.API_ENDPOINTS.WEBHOOK_ENDPOINTS}/${staticData.endpointId}`,
84
+ }));
85
+ }
86
+ catch (error) {
87
+ if (error.httpCode === config_1.TRIGGER_CONFIG.NOT_FOUND_HTTP_CODE) {
88
+ delete staticData.endpointId;
89
+ delete staticData.secret;
90
+ return false;
91
+ }
92
+ throw error;
93
+ }
94
+ const { events, targets } = readSubscription(this);
95
+ const url = this.getNodeWebhookUrl(config_1.TRIGGER_CONFIG.WEBHOOK_NAME) || '';
96
+ // A mismatch (or a disabled endpoint) answers false: n8n then calls create, which replaces it.
97
+ return (0, helpers_1.endpointMatches)(endpoint, url, events, targets);
98
+ },
99
+ async create() {
100
+ const staticData = this.getWorkflowStaticData('node');
101
+ const apiKey = await readApiKey(this);
102
+ const url = this.getNodeWebhookUrl(config_1.TRIGGER_CONFIG.WEBHOOK_NAME);
103
+ if (!url)
104
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), config_1.TRIGGER_MESSAGES.NO_WEBHOOK_URL);
105
+ if (staticData.endpointId) {
106
+ await removeEndpoint(this, apiKey, staticData.endpointId);
107
+ delete staticData.endpointId;
108
+ delete staticData.secret;
109
+ }
110
+ const { events, targets } = readSubscription(this);
111
+ const options = this.getNodeParameter('options', {});
112
+ let body;
113
+ try {
114
+ body = (0, helpers_1.buildEndpointBody)(url, events, targets, options, `${config_1.TRIGGER_CONFIG.DESCRIPTION_PREFIX} ${this.getWorkflow().name ?? ''} / ${this.getNode().name}`.slice(0, config_1.TRIGGER_CONFIG.MAX_DESCRIPTION_LENGTH));
115
+ }
116
+ catch (error) {
117
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), error);
118
+ }
119
+ let created;
120
+ try {
121
+ created = (await api_helpers_1.makeApiRequest.call(this, apiKey, {
122
+ method: 'POST',
123
+ endpoint: constants_1.API_ENDPOINTS.WEBHOOK_ENDPOINTS,
124
+ body,
125
+ }));
126
+ }
127
+ catch (error) {
128
+ const apiError = error;
129
+ if (apiError.httpCode === config_1.TRIGGER_CONFIG.INVALID_URL_HTTP_CODE) {
130
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), config_1.TRIGGER_MESSAGES.PUBLIC_HTTPS_REQUIRED, {
131
+ description: apiError.apiMessage,
132
+ });
133
+ }
134
+ if (apiError.httpCode === config_1.TRIGGER_CONFIG.PLAN_GATE_HTTP_CODE) {
135
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), apiError.apiMessage || config_1.TRIGGER_MESSAGES.PLAN_REQUIRED);
136
+ }
137
+ throw error;
138
+ }
139
+ staticData.endpointId = created.endpoint._id;
140
+ staticData.secret = created.secret;
141
+ return true;
142
+ },
143
+ async delete() {
144
+ const staticData = this.getWorkflowStaticData('node');
145
+ if (staticData.endpointId) {
146
+ await removeEndpoint(this, await readApiKey(this), staticData.endpointId);
147
+ }
148
+ delete staticData.endpointId;
149
+ delete staticData.secret;
150
+ return true;
151
+ },
152
+ },
153
+ };
154
+ }
155
+ async webhook() {
156
+ const staticData = this.getWorkflowStaticData('node');
157
+ const request = this.getRequestObject();
158
+ const headers = this.getHeaderData();
159
+ // The raw body, never a re-serialised `req.body`: the signature covers the exact bytes.
160
+ const verified = (0, helpers_1.verifySignature)(request.rawBody, headers, staticData.secret);
161
+ if ('failure' in verified) {
162
+ this.getResponseObject().status(config_1.TRIGGER_CONFIG.UNAUTHORIZED_STATUS).json({ message: config_1.TRIGGER_MESSAGES.SIGNATURE_REJECTED });
163
+ return { noWebhookResponse: true };
164
+ }
165
+ const options = this.getNodeParameter('options', {});
166
+ const items = (0, helpers_1.toItems)(verified.event, (0, helpers_1.readHeader)(headers, config_1.TRIGGER_SIGNATURE.HEADER_ID), options.splitBatches !== false);
167
+ return { workflowData: [items] };
168
+ }
169
+ }
170
+ exports.Posty5Trigger = Posty5Trigger;
171
+ //# sourceMappingURL=Posty5Trigger.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Posty5Trigger.node.js","sourceRoot":"","sources":["../../../nodes/Posty5Trigger/Posty5Trigger.node.ts"],"names":[],"mappings":";;;AAAA,+CAOsB;AACtB,yDAAyD;AACzD,iFAAwE;AACxE,qDAAsD;AACtD,qCAA+E;AAC/E,iDAA2D;AAC3D,uCAAmH;AAYnH,0BAA0B;AAC1B,KAAK,UAAU,UAAU,CAAC,GAAmB;IAC5C,MAAM,WAAW,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAC1D,OAAO,WAAW,CAAC,MAAgB,CAAC;AACrC,CAAC;AAED,6CAA6C;AAC7C,SAAS,gBAAgB,CAAC,GAAmB;IAC5C,MAAM,KAAK,GAAG,GAAG,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAW,CAAC;IAC7D,MAAM,GAAG,GAAG,GAAG,CAAC,gBAAgB,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IACzF,OAAO;QACN,MAAM,EAAE,GAAG,CAAC,gBAAgB,CAAC,QAAQ,EAAE,EAAE,CAAuB;QAChE,OAAO,EAAE,IAAA,sBAAY,EAAC,KAAK,EAAE,GAAG,CAAC;KACjC,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