@posty5/n8n-nodes-posty5 4.2.0 → 5.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 (178) hide show
  1. package/README.md +364 -16
  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 +8 -0
  13. package/dist/nodes/Posty5QrCode/Posty5QrCode.node.d.ts.map +1 -1
  14. package/dist/nodes/Posty5QrCode/Posty5QrCode.node.js +885 -190
  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 +143 -52
  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 +70 -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 +252 -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 +50 -3
  111. package/dist/utils/api.helpers.d.ts.map +1 -1
  112. package/dist/utils/api.helpers.js +170 -7
  113. package/dist/utils/api.helpers.js.map +1 -1
  114. package/dist/utils/constants.d.ts +239 -0
  115. package/dist/utils/constants.d.ts.map +1 -1
  116. package/dist/utils/constants.js +260 -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-render.helpers.d.ts +48 -0
  147. package/dist/utils/qr-render.helpers.d.ts.map +1 -0
  148. package/dist/utils/qr-render.helpers.js +172 -0
  149. package/dist/utils/qr-render.helpers.js.map +1 -0
  150. package/dist/utils/qr-render.properties.d.ts +8 -0
  151. package/dist/utils/qr-render.properties.d.ts.map +1 -0
  152. package/dist/utils/qr-render.properties.js +143 -0
  153. package/dist/utils/qr-render.properties.js.map +1 -0
  154. package/dist/utils/qr-target.helpers.d.ts +35 -0
  155. package/dist/utils/qr-target.helpers.d.ts.map +1 -0
  156. package/dist/utils/qr-target.helpers.js +260 -0
  157. package/dist/utils/qr-target.helpers.js.map +1 -0
  158. package/dist/utils/qr-templates.helpers.d.ts +26 -0
  159. package/dist/utils/qr-templates.helpers.d.ts.map +1 -0
  160. package/dist/utils/qr-templates.helpers.js +70 -0
  161. package/dist/utils/qr-templates.helpers.js.map +1 -0
  162. package/dist/utils/short-link-controls.helpers.d.ts +31 -0
  163. package/dist/utils/short-link-controls.helpers.d.ts.map +1 -0
  164. package/dist/utils/short-link-controls.helpers.js +185 -0
  165. package/dist/utils/short-link-controls.helpers.js.map +1 -0
  166. package/dist/utils/short-link-controls.properties.d.ts +17 -0
  167. package/dist/utils/short-link-controls.properties.d.ts.map +1 -0
  168. package/dist/utils/short-link-controls.properties.js +315 -0
  169. package/dist/utils/short-link-controls.properties.js.map +1 -0
  170. package/dist/utils/store.helpers.d.ts +43 -0
  171. package/dist/utils/store.helpers.d.ts.map +1 -0
  172. package/dist/utils/store.helpers.js +87 -0
  173. package/dist/utils/store.helpers.js.map +1 -0
  174. package/dist/utils/versioned-write.helpers.d.ts +31 -0
  175. package/dist/utils/versioned-write.helpers.d.ts.map +1 -0
  176. package/dist/utils/versioned-write.helpers.js +120 -0
  177. package/dist/utils/versioned-write.helpers.js.map +1 -0
  178. package/package.json +7 -3
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Posty5 Trigger configuration. The event list is static on purpose: n8n loads
3
+ * node descriptions without credentials, so it cannot read
4
+ * `GET /api/webhook-endpoints/event-types`. Add an event here when the API adds one.
5
+ */
6
+ import type { INodePropertyOptions } from 'n8n-workflow';
7
+ /** Standard Webhooks, as `@posty5/webhooks` verifies them. */
8
+ export declare const TRIGGER_SIGNATURE: {
9
+ readonly TOLERANCE_SECONDS: 300;
10
+ readonly HEADER_ID: "webhook-id";
11
+ readonly HEADER_TIMESTAMP: "webhook-timestamp";
12
+ readonly HEADER_SIGNATURE: "webhook-signature";
13
+ readonly SECRET_PREFIX: "whsec_";
14
+ readonly VERSION: "v1";
15
+ };
16
+ export declare const TRIGGER_CONFIG: {
17
+ readonly WEBHOOK_NAME: "default";
18
+ readonly WEBHOOK_PATH: "webhook";
19
+ readonly DESCRIPTION_PREFIX: "n8n:";
20
+ readonly TEST_EVENT: "webhook.test";
21
+ readonly BATCH_EVENT: "batch";
22
+ readonly MAX_MILESTONES: 10;
23
+ /** API limit on an endpoint's `description`. */
24
+ readonly MAX_DESCRIPTION_LENGTH: 500;
25
+ readonly MILESTONE_SEPARATOR: ",";
26
+ readonly ID_SEPARATOR: ",";
27
+ readonly NOT_FOUND_HTTP_CODE: "404";
28
+ readonly INVALID_URL_HTTP_CODE: "400";
29
+ readonly PLAN_GATE_HTTP_CODE: "403";
30
+ readonly UNAUTHORIZED_STATUS: 401;
31
+ };
32
+ /** *Links* values. */
33
+ export declare const TRIGGER_TARGETS: {
34
+ readonly ALL: "all";
35
+ readonly SHORT_LINKS: "shortLinks";
36
+ readonly QR_CODES: "qrCodes";
37
+ };
38
+ /** *Delivery* values → the endpoint's `delivery`. */
39
+ export declare const TRIGGER_DELIVERY: Record<string, {
40
+ mode: 'each' | 'batch';
41
+ windowSeconds?: number;
42
+ }>;
43
+ export declare const TRIGGER_EVENT_OPTIONS: INodePropertyOptions[];
44
+ export declare const TRIGGER_MESSAGES: {
45
+ readonly PUBLIC_HTTPS_REQUIRED: "Posty5 refused the n8n webhook URL. It must be a public HTTPS address: use n8n Cloud, or set WEBHOOK_URL on your self-hosted n8n to a public HTTPS address (or a tunnel).";
46
+ readonly PLAN_REQUIRED: "Your Posty5 plan does not include webhooks for these events";
47
+ readonly INVALID_MILESTONES: "Milestones must be up to 10 positive whole numbers separated by commas, such as 100,1000";
48
+ readonly NO_WEBHOOK_URL: "n8n has no webhook URL for this node";
49
+ readonly SIGNATURE_REJECTED: "Invalid Posty5 webhook signature";
50
+ };
51
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../nodes/Posty5Trigger/config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEzD,8DAA8D;AAC9D,eAAO,MAAM,iBAAiB;;;;;;;CAOpB,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;;;IAO1B,gDAAgD;;;;;;;;CAQvC,CAAC;AAEX,sBAAsB;AACtB,eAAO,MAAM,eAAe;;;;CAIlB,CAAC;AAEX,qDAAqD;AACrD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,CAK/F,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,oBAAoB,EAsBvD,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;CAOnB,CAAC"}
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ /**
3
+ * Posty5 Trigger configuration. The event list is static on purpose: n8n loads
4
+ * node descriptions without credentials, so it cannot read
5
+ * `GET /api/webhook-endpoints/event-types`. Add an event here when the API adds one.
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.TRIGGER_MESSAGES = exports.TRIGGER_EVENT_OPTIONS = exports.TRIGGER_DELIVERY = exports.TRIGGER_TARGETS = exports.TRIGGER_CONFIG = exports.TRIGGER_SIGNATURE = void 0;
9
+ /** Standard Webhooks, as `@posty5/webhooks` verifies them. */
10
+ exports.TRIGGER_SIGNATURE = {
11
+ TOLERANCE_SECONDS: 300,
12
+ HEADER_ID: 'webhook-id',
13
+ HEADER_TIMESTAMP: 'webhook-timestamp',
14
+ HEADER_SIGNATURE: 'webhook-signature',
15
+ SECRET_PREFIX: 'whsec_',
16
+ VERSION: 'v1',
17
+ };
18
+ exports.TRIGGER_CONFIG = {
19
+ WEBHOOK_NAME: 'default',
20
+ WEBHOOK_PATH: 'webhook',
21
+ DESCRIPTION_PREFIX: 'n8n:',
22
+ TEST_EVENT: 'webhook.test',
23
+ BATCH_EVENT: 'batch',
24
+ MAX_MILESTONES: 10,
25
+ /** API limit on an endpoint's `description`. */
26
+ MAX_DESCRIPTION_LENGTH: 500,
27
+ MILESTONE_SEPARATOR: ',',
28
+ ID_SEPARATOR: ',',
29
+ NOT_FOUND_HTTP_CODE: '404',
30
+ INVALID_URL_HTTP_CODE: '400',
31
+ PLAN_GATE_HTTP_CODE: '403',
32
+ UNAUTHORIZED_STATUS: 401,
33
+ };
34
+ /** *Links* values. */
35
+ exports.TRIGGER_TARGETS = {
36
+ ALL: 'all',
37
+ SHORT_LINKS: 'shortLinks',
38
+ QR_CODES: 'qrCodes',
39
+ };
40
+ /** *Delivery* values → the endpoint's `delivery`. */
41
+ exports.TRIGGER_DELIVERY = {
42
+ each: { mode: 'each' },
43
+ batch60: { mode: 'batch', windowSeconds: 60 },
44
+ batch300: { mode: 'batch', windowSeconds: 300 },
45
+ batch3600: { mode: 'batch', windowSeconds: 3600 },
46
+ };
47
+ exports.TRIGGER_EVENT_OPTIONS = [
48
+ {
49
+ name: 'QR Code Scan Milestone',
50
+ value: 'qr_code.scans_milestone',
51
+ description: 'A dynamic QR code reached one of the Milestones values',
52
+ },
53
+ {
54
+ name: 'QR Code Scanned',
55
+ value: 'qr_code.scanned',
56
+ description: 'A dynamic QR code was scanned. Static QR codes never produce events (the image holds the content itself).',
57
+ },
58
+ {
59
+ name: 'Short Link Visit Milestone',
60
+ value: 'short_link.visits_milestone',
61
+ description: 'A short link reached one of the Milestones values',
62
+ },
63
+ {
64
+ name: 'Short Link Visited',
65
+ value: 'short_link.visited',
66
+ description: 'A short link was opened, including a scan of its QR image (channel "qr")',
67
+ },
68
+ ];
69
+ exports.TRIGGER_MESSAGES = {
70
+ PUBLIC_HTTPS_REQUIRED: 'Posty5 refused the n8n webhook URL. It must be a public HTTPS address: use n8n Cloud, or set WEBHOOK_URL on your self-hosted n8n to a public HTTPS address (or a tunnel).',
71
+ PLAN_REQUIRED: 'Your Posty5 plan does not include webhooks for these events',
72
+ INVALID_MILESTONES: 'Milestones must be up to 10 positive whole numbers separated by commas, such as 100,1000',
73
+ NO_WEBHOOK_URL: 'n8n has no webhook URL for this node',
74
+ SIGNATURE_REJECTED: 'Invalid Posty5 webhook signature',
75
+ };
76
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../nodes/Posty5Trigger/config.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAIH,8DAA8D;AACjD,QAAA,iBAAiB,GAAG;IAChC,iBAAiB,EAAE,GAAG;IACtB,SAAS,EAAE,YAAY;IACvB,gBAAgB,EAAE,mBAAmB;IACrC,gBAAgB,EAAE,mBAAmB;IACrC,aAAa,EAAE,QAAQ;IACvB,OAAO,EAAE,IAAI;CACJ,CAAC;AAEE,QAAA,cAAc,GAAG;IAC7B,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS;IACvB,kBAAkB,EAAE,MAAM;IAC1B,UAAU,EAAE,cAAc;IAC1B,WAAW,EAAE,OAAO;IACpB,cAAc,EAAE,EAAE;IAClB,gDAAgD;IAChD,sBAAsB,EAAE,GAAG;IAC3B,mBAAmB,EAAE,GAAG;IACxB,YAAY,EAAE,GAAG;IACjB,mBAAmB,EAAE,KAAK;IAC1B,qBAAqB,EAAE,KAAK;IAC5B,mBAAmB,EAAE,KAAK;IAC1B,mBAAmB,EAAE,GAAG;CACf,CAAC;AAEX,sBAAsB;AACT,QAAA,eAAe,GAAG;IAC9B,GAAG,EAAE,KAAK;IACV,WAAW,EAAE,YAAY;IACzB,QAAQ,EAAE,SAAS;CACV,CAAC;AAEX,qDAAqD;AACxC,QAAA,gBAAgB,GAAuE;IACnG,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACtB,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE;IAC7C,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE;IAC/C,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE;CACjD,CAAC;AAEW,QAAA,qBAAqB,GAA2B;IAC5D;QACC,IAAI,EAAE,wBAAwB;QAC9B,KAAK,EAAE,yBAAyB;QAChC,WAAW,EAAE,wDAAwD;KACrE;IACD;QACC,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,iBAAiB;QACxB,WAAW,EACV,2GAA2G;KAC5G;IACD;QACC,IAAI,EAAE,4BAA4B;QAClC,KAAK,EAAE,6BAA6B;QACpC,WAAW,EAAE,mDAAmD;KAChE;IACD;QACC,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,oBAAoB;QAC3B,WAAW,EAAE,0EAA0E;KACvF;CACD,CAAC;AAEW,QAAA,gBAAgB,GAAG;IAC/B,qBAAqB,EACpB,2KAA2K;IAC5K,aAAa,EAAE,6DAA6D;IAC5E,kBAAkB,EAAE,0FAA0F;IAC9G,cAAc,EAAE,sCAAsC;IACtD,kBAAkB,EAAE,kCAAkC;CAC7C,CAAC"}
@@ -0,0 +1,4 @@
1
+ /** Posty5 Trigger properties: Events, Links, Options. */
2
+ import type { INodeProperties } from 'n8n-workflow';
3
+ export declare const POSTY5_TRIGGER_PROPERTIES: INodeProperties[];
4
+ //# sourceMappingURL=descriptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"descriptions.d.ts","sourceRoot":"","sources":["../../../nodes/Posty5Trigger/descriptions.ts"],"names":[],"mappings":"AAAA,yDAAyD;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,eAAO,MAAM,yBAAyB,EAAE,eAAe,EA6FtD,CAAC"}
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ /** Posty5 Trigger properties: Events, Links, Options. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.POSTY5_TRIGGER_PROPERTIES = void 0;
5
+ const config_1 = require("./config");
6
+ exports.POSTY5_TRIGGER_PROPERTIES = [
7
+ {
8
+ displayName: 'n8n must be reachable over public HTTPS (n8n Cloud, or self-hosted with WEBHOOK_URL set to a public HTTPS address). Static QR codes never produce events.',
9
+ name: 'notice',
10
+ type: 'notice',
11
+ default: '',
12
+ },
13
+ {
14
+ displayName: 'Events',
15
+ name: 'events',
16
+ type: 'multiOptions',
17
+ required: true,
18
+ options: config_1.TRIGGER_EVENT_OPTIONS,
19
+ default: [],
20
+ description: 'The Posty5 events that start this workflow',
21
+ },
22
+ {
23
+ displayName: 'Links',
24
+ name: 'links',
25
+ type: 'options',
26
+ options: [
27
+ { name: 'All My Links and QR Codes', value: config_1.TRIGGER_TARGETS.ALL },
28
+ { name: 'Specific Short Links', value: config_1.TRIGGER_TARGETS.SHORT_LINKS },
29
+ { name: 'Specific QR Codes', value: config_1.TRIGGER_TARGETS.QR_CODES },
30
+ ],
31
+ default: 'all',
32
+ description: 'Which records the events are about',
33
+ },
34
+ {
35
+ displayName: 'Short Link IDs',
36
+ name: 'shortLinkIds',
37
+ type: 'string',
38
+ required: true,
39
+ displayOptions: { show: { links: [config_1.TRIGGER_TARGETS.SHORT_LINKS] } },
40
+ default: '',
41
+ placeholder: '64f0c..., 64f0d...',
42
+ description: 'Comma-separated short link IDs',
43
+ },
44
+ {
45
+ displayName: 'QR Code IDs',
46
+ name: 'qrCodeIds',
47
+ type: 'string',
48
+ required: true,
49
+ displayOptions: { show: { links: [config_1.TRIGGER_TARGETS.QR_CODES] } },
50
+ default: '',
51
+ placeholder: '64f0c..., 64f0d...',
52
+ description: 'Comma-separated QR code IDs',
53
+ },
54
+ {
55
+ displayName: 'Options',
56
+ name: 'options',
57
+ type: 'collection',
58
+ placeholder: 'Add Option',
59
+ default: {},
60
+ options: [
61
+ {
62
+ displayName: 'Delivery',
63
+ name: 'delivery',
64
+ type: 'options',
65
+ options: [
66
+ { name: 'Each Event', value: 'each' },
67
+ { name: 'Batched — 1 Min', value: 'batch60' },
68
+ { name: 'Batched — 5 Min', value: 'batch300' },
69
+ { name: 'Batched — 1 Hour', value: 'batch3600' },
70
+ ],
71
+ default: 'each',
72
+ description: 'Send every event at once, or collect them and send one batch per window',
73
+ },
74
+ {
75
+ displayName: 'Include Bot Visits',
76
+ name: 'includeBots',
77
+ type: 'boolean',
78
+ default: false,
79
+ description: 'Whether visits Posty5 recognises as bots also start the workflow',
80
+ },
81
+ {
82
+ displayName: 'Milestones',
83
+ name: 'milestones',
84
+ type: 'string',
85
+ default: '',
86
+ placeholder: '100,1000',
87
+ description: 'Visit or scan counts that fire the milestone events: up to 10 numbers, comma-separated',
88
+ },
89
+ {
90
+ displayName: 'Split Batches Into Items',
91
+ name: 'splitBatches',
92
+ type: 'boolean',
93
+ default: true,
94
+ description: 'Whether a batched delivery becomes one item per event (on) or one item holding the batch (off)',
95
+ },
96
+ ],
97
+ },
98
+ ];
99
+ //# sourceMappingURL=descriptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"descriptions.js","sourceRoot":"","sources":["../../../nodes/Posty5Trigger/descriptions.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAGzD,qCAAkE;AAErD,QAAA,yBAAyB,GAAsB;IAC3D;QACC,WAAW,EACV,2JAA2J;QAC5J,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;KACX;IACD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,8BAAqB;QAC9B,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4CAA4C;KACzD;IACD;QACC,WAAW,EAAE,O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AE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,SAAS,EAAE;oBAC7C,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,UAAU,EAAE;oBAC9C,EAAE,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,WAAW,EAAE;iBAChD;gBACD,OAAO,EAAE,MAAM;gBACf,WAAW,EAAE,yEAAyE;aACtF;YACD;gBACC,WAAW,EAAE,oBAAoB;gBACjC,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,kEAAkE;aAC/E;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,UAAU;gBACvB,WAAW,EAAE,wFAAwF;aACrG;YACD;gBACC,WAAW,EAAE,0BAA0B;gBACvC,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,gGAAgG;aAC7G;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Posty5 Trigger helpers: the endpoint body, the "is the stored endpoint still
3
+ * ours" check, Standard Webhooks verification (the same algorithm as
4
+ * `@posty5/webhooks` `verifyWebhookSignature`, kept in-node because the
5
+ * package has no runtime dependencies) and envelope → items.
6
+ */
7
+ import type { INodeExecutionData } from 'n8n-workflow';
8
+ import type { ICreateWebhookEndpointRequest, IPosty5TriggerOptions, IWebhookEndpoint, IWebhookEnvelope, IWebhookTargets, WebhookEventType, WebhookHeaders, WebhookVerifyFailure } from '../../types/webhook.types';
9
+ /** A comma-separated id list, trimmed, empties dropped. */
10
+ export declare function splitIds(value: unknown): string[];
11
+ /** *Links* as the endpoint's `targets`; undefined = all of the caller's links and QR codes. */
12
+ export declare function buildTargets(links: string, ids: unknown): IWebhookTargets | undefined;
13
+ /** *Milestones* (`100,1000`) as numbers; throws on anything but up to 10 positive integers. */
14
+ export declare function parseMilestones(value: unknown): number[] | undefined;
15
+ /** The `POST /api/webhook-endpoints` body for this node. */
16
+ export declare function buildEndpointBody(url: string, events: WebhookEventType[], targets: IWebhookTargets | undefined, options: IPosty5TriggerOptions, description: string): ICreateWebhookEndpointRequest;
17
+ /** Whether the stored endpoint is enabled and still points at this URL with these events and targets. */
18
+ export declare function endpointMatches(endpoint: IWebhookEndpoint, url: string, events: WebhookEventType[], targets: IWebhookTargets | undefined): boolean;
19
+ /** A header's value, case-insensitive; the first of a repeated header. */
20
+ export declare function readHeader(headers: WebhookHeaders, name: string): string | undefined;
21
+ /** base64 HMAC-SHA256 of `<id>.<timestamp>.<payload>` with the base64 key after `whsec_`. */
22
+ export declare function signPayload(secret: string, id: string, timestamp: string, payload: Buffer | string): string;
23
+ /**
24
+ * Verify a delivery and parse it. Answers the envelope, or the failure reason.
25
+ * `payload` must be the raw body: a re-serialised object does not match.
26
+ */
27
+ export declare function verifySignature(payload: Buffer | string | undefined, headers: WebhookHeaders, secret: string | undefined, nowSeconds?: number): {
28
+ event: IWebhookEnvelope;
29
+ } | {
30
+ failure: WebhookVerifyFailure;
31
+ };
32
+ /** The envelope as output items: a batch is split into one item per event unless *Split Batches* is off. */
33
+ export declare function toItems(event: IWebhookEnvelope, webhookId: string | undefined, splitBatches: boolean): INodeExecutionData[];
34
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../nodes/Posty5Trigger/helpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAe,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,KAAK,EACX,6BAA6B,EAC7B,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,MAAM,2BAA2B,CAAC;A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AAC5G,wBAAgB,OAAO,CAAC,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,GAAG,SAAS,EAAE,YAAY,EAAE,OAAO,GAAG,kBAAkB,EAAE,CAQ3H"}
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+ /**
3
+ * Posty5 Trigger helpers: the endpoint body, the "is the stored endpoint still
4
+ * ours" check, Standard Webhooks verification (the same algorithm as
5
+ * `@posty5/webhooks` `verifyWebhookSignature`, kept in-node because the
6
+ * package has no runtime dependencies) and envelope → items.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.splitIds = splitIds;
10
+ exports.buildTargets = buildTargets;
11
+ exports.parseMilestones = parseMilestones;
12
+ exports.buildEndpointBody = buildEndpointBody;
13
+ exports.endpointMatches = endpointMatches;
14
+ exports.readHeader = readHeader;
15
+ exports.signPayload = signPayload;
16
+ exports.verifySignature = verifySignature;
17
+ exports.toItems = toItems;
18
+ const crypto_1 = require("crypto");
19
+ const config_1 = require("./config");
20
+ /** A comma-separated id list, trimmed, empties dropped. */
21
+ function splitIds(value) {
22
+ return String(value ?? '')
23
+ .split(config_1.TRIGGER_CONFIG.ID_SEPARATOR)
24
+ .map((id) => id.trim())
25
+ .filter(Boolean);
26
+ }
27
+ /** *Links* as the endpoint's `targets`; undefined = all of the caller's links and QR codes. */
28
+ function buildTargets(links, ids) {
29
+ if (links === config_1.TRIGGER_TARGETS.SHORT_LINKS)
30
+ return { shortLinkIds: splitIds(ids) };
31
+ if (links === config_1.TRIGGER_TARGETS.QR_CODES)
32
+ return { qrCodeIds: splitIds(ids) };
33
+ return undefined;
34
+ }
35
+ /** *Milestones* (`100,1000`) as numbers; throws on anything but up to 10 positive integers. */
36
+ function parseMilestones(value) {
37
+ const parts = splitIds(value);
38
+ if (!parts.length)
39
+ return undefined;
40
+ const numbers = parts.map(Number);
41
+ if (numbers.length > config_1.TRIGGER_CONFIG.MAX_MILESTONES || numbers.some((n) => !Number.isInteger(n) || n < 1)) {
42
+ throw new Error(config_1.TRIGGER_MESSAGES.INVALID_MILESTONES);
43
+ }
44
+ return numbers;
45
+ }
46
+ /** The `POST /api/webhook-endpoints` body for this node. */
47
+ function buildEndpointBody(url, events, targets, options, description) {
48
+ const body = {
49
+ url,
50
+ events,
51
+ includeBots: options.includeBots === true,
52
+ delivery: config_1.TRIGGER_DELIVERY[options.delivery || 'each'] || config_1.TRIGGER_DELIVERY.each,
53
+ description,
54
+ };
55
+ if (targets)
56
+ body.targets = targets;
57
+ const milestones = parseMilestones(options.milestones);
58
+ if (milestones)
59
+ body.milestones = milestones;
60
+ return body;
61
+ }
62
+ /** Same members, any order. */
63
+ function sameSet(a = [], b = []) {
64
+ if (a.length !== b.length)
65
+ return false;
66
+ const set = new Set(a);
67
+ return b.every((value) => set.has(value));
68
+ }
69
+ /** Whether the stored endpoint is enabled and still points at this URL with these events and targets. */
70
+ function endpointMatches(endpoint, url, events, targets) {
71
+ return (endpoint.enabled !== false &&
72
+ endpoint.url === url &&
73
+ sameSet(endpoint.events, events) &&
74
+ sameSet(endpoint.targets?.shortLinkIds, targets?.shortLinkIds) &&
75
+ sameSet(endpoint.targets?.qrCodeIds, targets?.qrCodeIds));
76
+ }
77
+ /** A header's value, case-insensitive; the first of a repeated header. */
78
+ function readHeader(headers, name) {
79
+ for (const [key, value] of Object.entries(headers || {})) {
80
+ if (key.toLowerCase() === name)
81
+ return Array.isArray(value) ? value[0] : value;
82
+ }
83
+ return undefined;
84
+ }
85
+ /** base64 HMAC-SHA256 of `<id>.<timestamp>.<payload>` with the base64 key after `whsec_`. */
86
+ function signPayload(secret, id, timestamp, payload) {
87
+ const encoded = secret.startsWith(config_1.TRIGGER_SIGNATURE.SECRET_PREFIX)
88
+ ? secret.slice(config_1.TRIGGER_SIGNATURE.SECRET_PREFIX.length)
89
+ : secret;
90
+ const text = typeof payload === 'string' ? payload : payload.toString('utf8');
91
+ return (0, crypto_1.createHmac)('sha256', Buffer.from(encoded, 'base64')).update(`${id}.${timestamp}.${text}`).digest('base64');
92
+ }
93
+ /** Constant-time match of any `v1,<sig>` entry (two during a secret rotation). */
94
+ function anySignatureMatches(header, expected) {
95
+ const wanted = Buffer.from(expected);
96
+ return header.split(' ').some((entry) => {
97
+ const comma = entry.indexOf(',');
98
+ if (comma < 0 || entry.slice(0, comma) !== config_1.TRIGGER_SIGNATURE.VERSION)
99
+ return false;
100
+ const received = Buffer.from(entry.slice(comma + 1));
101
+ return received.length === wanted.length && (0, crypto_1.timingSafeEqual)(received, wanted);
102
+ });
103
+ }
104
+ /**
105
+ * Verify a delivery and parse it. Answers the envelope, or the failure reason.
106
+ * `payload` must be the raw body: a re-serialised object does not match.
107
+ */
108
+ function verifySignature(payload, headers, secret, nowSeconds = Math.floor(Date.now() / 1000)) {
109
+ const id = readHeader(headers, config_1.TRIGGER_SIGNATURE.HEADER_ID);
110
+ const timestamp = readHeader(headers, config_1.TRIGGER_SIGNATURE.HEADER_TIMESTAMP);
111
+ const signature = readHeader(headers, config_1.TRIGGER_SIGNATURE.HEADER_SIGNATURE);
112
+ if (!id || !timestamp || !signature || !secret || payload === undefined)
113
+ return { failure: 'missingHeaders' };
114
+ const sentAt = Number(timestamp);
115
+ if (!Number.isFinite(sentAt) || Math.abs(nowSeconds - sentAt) > config_1.TRIGGER_SIGNATURE.TOLERANCE_SECONDS) {
116
+ return { failure: 'timestampOutOfRange' };
117
+ }
118
+ if (!anySignatureMatches(signature, signPayload(secret, id, timestamp, payload))) {
119
+ return { failure: 'noMatchingSignature' };
120
+ }
121
+ try {
122
+ const text = typeof payload === 'string' ? payload : payload.toString('utf8');
123
+ return { event: JSON.parse(text) };
124
+ }
125
+ catch {
126
+ return { failure: 'invalidJson' };
127
+ }
128
+ }
129
+ /** The envelope as output items: a batch is split into one item per event unless *Split Batches* is off. */
130
+ function toItems(event, webhookId, splitBatches) {
131
+ const withId = (envelope) => ({
132
+ json: { ...envelope, webhookId },
133
+ });
134
+ if (event.type === config_1.TRIGGER_CONFIG.BATCH_EVENT && splitBatches) {
135
+ return (event.data.events || []).map(withId);
136
+ }
137
+ return [withId(event)];
138
+ }
139
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../nodes/Posty5Trigger/helpers.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAiBH,4BAKC;AAGD,oCAIC;AAGD,0CAQC;AAGD,8CAkBC;AAUD,0CAaC;AAGD,gCAKC;AAGD,kCAMC;AAiBD,0CAwBC;AAGD,0BAQC;AAvJD,mCAAqD;AAErD,qCAAkH;AAYlH,2DAA2D;AAC3D,SAAgB,QAAQ,CAAC,KAAc;IACtC,OAAO,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;SACxB,KAAK,CAAC,uBAAc,CAAC,YAAY,CAAC;SAClC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC;SACtB,MAAM,CAAC,OAAO,CAAC,CAAC;AACnB,CAAC;AAED,+FAA+F;AAC/F,SAAgB,YAAY,CAAC,KAAa,EAAE,GAAY;IACvD,IAAI,KAAK,KAAK,wBAAe,CAAC,WAAW;QAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;IAClF,IAAI,KAAK,KAAK,wBAAe,CAAC,QAAQ;QAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;IAC5E,OAAO,SAAS,CAAC;AAClB,CAAC;AAED,+FAA+F;AAC/F,SAAgB,eAAe,CAAC,KAAc;IAC7C,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9B,IAAI,CAAC,KAAK,CAAC,MAAM;QAAE,OAAO,SAAS,CAAC;IACpC,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAClC,IAAI,OAAO,CAAC,MAAM,GAAG,uBAAc,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,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;IACD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AACxB,CAAC"}
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "@posty5/n8n-nodes-posty5",
3
+ "version": "5.1.0",
4
+ "description": "N8N community nodes for Posty5 - URL shortening, QR codes, HTML hosting, social media publishing and online-store dropshipping",
5
+ "keywords": [
6
+ "n8n-community-node-package",
7
+ "n8n-community-node",
8
+ "n8n",
9
+ "posty5",
10
+ "url-shortener",
11
+ "qr-code",
12
+ "social-media",
13
+ "online-store",
14
+ "dropshipping",
15
+ "automation"
16
+ ],
17
+ "license": "MIT",
18
+ "homepage": "https://posty5.com",
19
+ "author": {
20
+ "name": "Posty5",
21
+ "email": "support@posty5.com"
22
+ },
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/Posty5/n8n-nodes.git"
26
+ },
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
+ "main": "dist/index.js",
31
+ "types": "dist/index.d.ts",
32
+ "scripts": {
33
+ "prebuild": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
34
+ "build": "tsc",
35
+ "dev": "tsc --watch",
36
+ "format": "prettier --write \"**/*.ts\"",
37
+ "lint": "eslint . --ext .ts",
38
+ "test": "jest",
39
+ "test:watch": "jest --watch",
40
+ "test:coverage": "jest --coverage",
41
+ "prepare": "npm run build"
42
+ },
43
+ "files": [
44
+ "dist"
45
+ ],
46
+ "n8n": {
47
+ "n8nNodesApiVersion": 1,
48
+ "credentials": [
49
+ "dist/credentials/Posty5Api.credentials.js"
50
+ ],
51
+ "nodes": [
52
+ "dist/nodes/Posty5ShortLink/Posty5ShortLink.node.js",
53
+ "dist/nodes/Posty5QrCode/Posty5QrCode.node.js",
54
+ "dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.js",
55
+ "dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.js",
56
+ "dist/nodes/Posty5SocialPublisherWorkspace/Posty5SocialPublisherWorkspace.node.js",
57
+ "dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.js",
58
+ "dist/nodes/Posty5Store/Posty5Store.node.js",
59
+ "dist/nodes/Posty5Trigger/Posty5Trigger.node.js"
60
+ ]
61
+ },
62
+ "devDependencies": {
63
+ "@types/jest": "^29.5.14",
64
+ "@types/node": "^20.11.0",
65
+ "@typescript-eslint/eslint-plugin": "^6.19.0",
66
+ "@typescript-eslint/parser": "^6.19.0",
67
+ "eslint": "^8.56.0",
68
+ "eslint-plugin-n8n-nodes-base": "^1.16.1",
69
+ "jest": "^29.7.0",
70
+ "n8n-workflow": "^1.25.0",
71
+ "prettier": "^3.2.4",
72
+ "ts-jest": "^29.1.1",
73
+ "typescript": "^5.3.3"
74
+ },
75
+ "peerDependencies": {
76
+ "n8n-workflow": ">=1.0.0"
77
+ }
78
+ }
@@ -55,4 +55,74 @@ export interface IDeleteResponse {
55
55
  * Created from sources
56
56
  */
57
57
  export type CreatedFromType = 'dashboard' | 'npmPackage' | 'dotnetPackage' | 'n8n' | 'zapier' | 'api';
58
+ /**
59
+ * The Additional Fields the Short Link and QR Code nodes share, as n8n hands
60
+ * them over. A key is present only when the user added that field; on Update a
61
+ * present key is what the user wants stored.
62
+ */
63
+ export interface ILinkToolAdditionalFields {
64
+ tag?: string;
65
+ refId?: string;
66
+ isEnableLandingPage?: boolean;
67
+ pageTitle?: string;
68
+ pageDescription?: string;
69
+ /** Deprecated (≤ 4.4.0 put the template here); read only when Template is empty. */
70
+ templateId?: string;
71
+ }
72
+ /** The stored page info a GET returns (it may carry read-only keys the write schemas refuse). */
73
+ export interface ILinkToolStoredPageInfo {
74
+ title?: string | null;
75
+ description?: string | null;
76
+ descriptionIsHtmlFile?: boolean | null;
77
+ }
78
+ /** What a fetch-then-put Update carries over from `GET /:id` when the user left it alone. */
79
+ export interface ILinkToolStoredFields {
80
+ name?: string | null;
81
+ templateId?: string | null;
82
+ templateType?: string | null;
83
+ refId?: string | null;
84
+ tag?: string | null;
85
+ isEnableLandingPage?: boolean | null;
86
+ pageInfo?: ILinkToolStoredPageInfo | null;
87
+ createdFrom?: string | null;
88
+ }
89
+ /** The page info both write schemas accept: `title`, `description`, `descriptionIsHtmlFile`. */
90
+ export interface ILinkToolPageInfo {
91
+ title?: string;
92
+ description?: string;
93
+ descriptionIsHtmlFile?: boolean;
94
+ }
95
+ /** The body keys the two nodes build the same way. */
96
+ export interface ILinkToolCommonBody {
97
+ tag?: string;
98
+ refId?: string;
99
+ templateType?: string;
100
+ createdFrom?: string;
101
+ isEnableLandingPage?: boolean;
102
+ pageInfo?: ILinkToolPageInfo;
103
+ }
104
+ /**
105
+ * The error `makeApiRequest` throws. Its message stays
106
+ * `Posty5 API Error: <message>`; the HTTP status and the API's own message ride
107
+ * along so an operation can map a status (e.g. the plan-gate 403) without
108
+ * parsing the text.
109
+ */
110
+ export interface IPosty5ApiError extends Error {
111
+ /** HTTP status as a string (`'403'`), when the request got an answer. */
112
+ httpCode?: string;
113
+ /** The API's `message`, unprefixed, when the answer carried one. */
114
+ apiMessage?: string;
115
+ /** The API's stable error `code` (e.g. `VERSION_CONFLICT`), when the answer carried one. */
116
+ code?: string;
117
+ /** On a `VERSION_CONFLICT`, the document's stored version. */
118
+ currentVersion?: number;
119
+ }
120
+ /** What `makeBinaryApiRequest` answers: the file's bytes and how the API named it. */
121
+ export interface IPosty5BinaryResponse {
122
+ data: Buffer;
123
+ /** `Content-Type` without parameters (`image/png`), or empty when the answer had none. */
124
+ mimeType: string;
125
+ /** From `Content-Disposition`, or empty when the answer had none. */
126
+ fileName: string;
127
+ }
58
128
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../types/common.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS,CAAC,CAAC;IAC3B,OA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