@posty5/n8n-nodes-posty5 5.0.0 → 6.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 (98) hide show
  1. package/README.md +25 -119
  2. package/dist/credentials/Posty5Api.credentials.js +1 -1
  3. package/dist/credentials/Posty5Api.credentials.js.map +1 -1
  4. package/dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.d.ts.map +1 -1
  5. package/dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.js +20 -18
  6. package/dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.js.map +1 -1
  7. package/dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.d.ts.map +1 -1
  8. package/dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.js +42 -36
  9. package/dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.js.map +1 -1
  10. package/dist/nodes/Posty5QrCode/Posty5QrCode.node.d.ts +2 -0
  11. package/dist/nodes/Posty5QrCode/Posty5QrCode.node.d.ts.map +1 -1
  12. package/dist/nodes/Posty5QrCode/Posty5QrCode.node.js +89 -51
  13. package/dist/nodes/Posty5QrCode/Posty5QrCode.node.js.map +1 -1
  14. package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.d.ts.map +1 -1
  15. package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.js +10 -7
  16. package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.js.map +1 -1
  17. package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.d.ts.map +1 -1
  18. package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.js +102 -85
  19. package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.js.map +1 -1
  20. package/dist/nodes/Posty5SocialPublisherWorkspace/Posty5SocialPublisherWorkspace.node.js +2 -2
  21. package/dist/nodes/Posty5SocialPublisherWorkspace/Posty5SocialPublisherWorkspace.node.js.map +1 -1
  22. package/dist/nodes/Posty5Trigger/Posty5Trigger.node.js +2 -2
  23. package/dist/nodes/Posty5Trigger/Posty5Trigger.node.js.map +1 -1
  24. package/dist/package.json +10 -10
  25. package/dist/types/common.d.ts +18 -0
  26. package/dist/types/common.d.ts.map +1 -1
  27. package/dist/types/html-hosting.types.d.ts +4 -3
  28. package/dist/types/html-hosting.types.d.ts.map +1 -1
  29. package/dist/types/qr-code.types.d.ts +67 -3
  30. package/dist/types/qr-code.types.d.ts.map +1 -1
  31. package/dist/types/short-link.types.d.ts +5 -4
  32. package/dist/types/short-link.types.d.ts.map +1 -1
  33. package/dist/utils/analytics.helpers.js +1 -1
  34. package/dist/utils/analytics.helpers.js.map +1 -1
  35. package/dist/utils/analytics.properties.d.ts.map +1 -1
  36. package/dist/utils/analytics.properties.js +1 -0
  37. package/dist/utils/analytics.properties.js.map +1 -1
  38. package/dist/utils/api.helpers.d.ts +25 -4
  39. package/dist/utils/api.helpers.d.ts.map +1 -1
  40. package/dist/utils/api.helpers.js +106 -0
  41. package/dist/utils/api.helpers.js.map +1 -1
  42. package/dist/utils/constants.d.ts +45 -13
  43. package/dist/utils/constants.d.ts.map +1 -1
  44. package/dist/utils/constants.js +50 -14
  45. package/dist/utils/constants.js.map +1 -1
  46. package/dist/utils/date.helpers.d.ts +9 -0
  47. package/dist/utils/date.helpers.d.ts.map +1 -1
  48. package/dist/utils/date.helpers.js +26 -0
  49. package/dist/utils/date.helpers.js.map +1 -1
  50. package/dist/utils/list-date-filter.properties.d.ts +11 -0
  51. package/dist/utils/list-date-filter.properties.d.ts.map +1 -0
  52. package/dist/utils/list-date-filter.properties.js +30 -0
  53. package/dist/utils/list-date-filter.properties.js.map +1 -0
  54. package/dist/utils/qr-render.helpers.d.ts +48 -0
  55. package/dist/utils/qr-render.helpers.d.ts.map +1 -0
  56. package/dist/utils/qr-render.helpers.js +172 -0
  57. package/dist/utils/qr-render.helpers.js.map +1 -0
  58. package/dist/utils/qr-render.properties.d.ts +8 -0
  59. package/dist/utils/qr-render.properties.d.ts.map +1 -0
  60. package/dist/utils/qr-render.properties.js +143 -0
  61. package/dist/utils/qr-render.properties.js.map +1 -0
  62. package/package.json +10 -10
  63. package/dist/nodes/Posty5Store/Posty5Store.node.d.ts +0 -17
  64. package/dist/nodes/Posty5Store/Posty5Store.node.d.ts.map +0 -1
  65. package/dist/nodes/Posty5Store/Posty5Store.node.js +0 -230
  66. package/dist/nodes/Posty5Store/Posty5Store.node.js.map +0 -1
  67. package/dist/nodes/Posty5Store/descriptions/fulfilment-group.description.d.ts +0 -4
  68. package/dist/nodes/Posty5Store/descriptions/fulfilment-group.description.d.ts.map +0 -1
  69. package/dist/nodes/Posty5Store/descriptions/fulfilment-group.description.js +0 -55
  70. package/dist/nodes/Posty5Store/descriptions/fulfilment-group.description.js.map +0 -1
  71. package/dist/nodes/Posty5Store/descriptions/order.description.d.ts +0 -4
  72. package/dist/nodes/Posty5Store/descriptions/order.description.d.ts.map +0 -1
  73. package/dist/nodes/Posty5Store/descriptions/order.description.js +0 -91
  74. package/dist/nodes/Posty5Store/descriptions/order.description.js.map +0 -1
  75. package/dist/nodes/Posty5Store/descriptions/product-link.description.d.ts +0 -4
  76. package/dist/nodes/Posty5Store/descriptions/product-link.description.d.ts.map +0 -1
  77. package/dist/nodes/Posty5Store/descriptions/product-link.description.js +0 -48
  78. package/dist/nodes/Posty5Store/descriptions/product-link.description.js.map +0 -1
  79. package/dist/nodes/Posty5Store/descriptions/supplier-order.description.d.ts +0 -4
  80. package/dist/nodes/Posty5Store/descriptions/supplier-order.description.d.ts.map +0 -1
  81. package/dist/nodes/Posty5Store/descriptions/supplier-order.description.js +0 -118
  82. package/dist/nodes/Posty5Store/descriptions/supplier-order.description.js.map +0 -1
  83. package/dist/nodes/Posty5Store/descriptions/supplier-product.description.d.ts +0 -4
  84. package/dist/nodes/Posty5Store/descriptions/supplier-product.description.d.ts.map +0 -1
  85. package/dist/nodes/Posty5Store/descriptions/supplier-product.description.js +0 -167
  86. package/dist/nodes/Posty5Store/descriptions/supplier-product.description.js.map +0 -1
  87. package/dist/nodes/Posty5Store/descriptions/supplier.description.d.ts +0 -4
  88. package/dist/nodes/Posty5Store/descriptions/supplier.description.d.ts.map +0 -1
  89. package/dist/nodes/Posty5Store/descriptions/supplier.description.js +0 -50
  90. package/dist/nodes/Posty5Store/descriptions/supplier.description.js.map +0 -1
  91. package/dist/types/store.types.d.ts +0 -71
  92. package/dist/types/store.types.d.ts.map +0 -1
  93. package/dist/types/store.types.js +0 -7
  94. package/dist/types/store.types.js.map +0 -1
  95. package/dist/utils/store.helpers.d.ts +0 -43
  96. package/dist/utils/store.helpers.d.ts.map +0 -1
  97. package/dist/utils/store.helpers.js +0 -87
  98. package/dist/utils/store.helpers.js.map +0 -1
@@ -0,0 +1,172 @@
1
+ "use strict";
2
+ /**
3
+ * QR Code *Render*, *Check Scannability* and *List Templates* (QR design and
4
+ * export, K6/K7), mirroring `@posty5/qr-code`'s `render`, `checkScannability`
5
+ * and the template lookups:
6
+ * - Render: `GET /api/qr-code/:id/render?format&presetId&customMm&dpi&sizePx&download`
7
+ * → the file, emitted as an n8n binary property;
8
+ * - Check Scannability: `POST /api/qr-code/scannability-check` → the K5 report;
9
+ * - List Templates: `GET /api/qr-code-template/user-lookup|public-lookup` → `{ _id, name }` rows.
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.getQrPrintPresets = getQrPrintPresets;
13
+ exports.toPresetOption = toPresetOption;
14
+ exports.buildQrRenderQuery = buildQrRenderQuery;
15
+ exports.executeQrRender = executeQrRender;
16
+ exports.buildQrScannabilityRequest = buildQrScannabilityRequest;
17
+ exports.executeQrScannabilityCheck = executeQrScannabilityCheck;
18
+ exports.executeListQrTemplates = executeListQrTemplates;
19
+ const n8n_workflow_1 = require("n8n-workflow");
20
+ const api_helpers_1 = require("./api.helpers");
21
+ const constants_1 = require("./constants");
22
+ const link_tool_helpers_1 = require("./link-tool.helpers");
23
+ /**
24
+ * `loadOptions` for the Print Preset field: "None" (size in pixels), then the
25
+ * design catalogue's presets. The catalogue route is public, but the request
26
+ * still carries the API key like every other call.
27
+ */
28
+ async function getQrPrintPresets() {
29
+ const credentials = await this.getCredentials('posty5Api');
30
+ const catalogue = (await api_helpers_1.makeApiRequest.call(this, credentials.apiKey, {
31
+ method: 'GET',
32
+ endpoint: `${constants_1.API_ENDPOINTS.QR_CODE_TEMPLATE}${constants_1.QR_RENDER.CATALOGUE_PATH}`,
33
+ }));
34
+ return [
35
+ { name: constants_1.QR_RENDER.NO_PRESET_LABEL, value: '' },
36
+ ...(catalogue?.printPresets || []).filter((preset) => (0, link_tool_helpers_1.firstText)(preset?.id)).map(toPresetOption),
37
+ ];
38
+ }
39
+ /** `table-tent-8cm` (80 mm) → "Table Tent 8cm (80 mm)"; `custom` → "Custom (20–500 mm)". */
40
+ function toPresetOption(preset) {
41
+ const label = preset.id
42
+ .split('-')
43
+ .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
44
+ .join(' ');
45
+ const size = typeof preset.mm === 'number'
46
+ ? `${preset.mm} mm`
47
+ : typeof preset.minMm === 'number' && typeof preset.maxMm === 'number'
48
+ ? `${preset.minMm}–${preset.maxMm} mm`
49
+ : '';
50
+ return { name: size ? `${label} (${size})` : label, value: preset.id };
51
+ }
52
+ /**
53
+ * The render query. A preset sends `presetId` (+ `customMm` for custom, + `dpi`
54
+ * for PNG); no preset sends `sizePx` for PNG and SVG. PDF with no preset sends
55
+ * neither (the API uses `flyer-5cm`). Throws on an unknown format, before any request.
56
+ */
57
+ function buildQrRenderQuery(read) {
58
+ const format = (0, link_tool_helpers_1.toText)(read('renderFormat', constants_1.QR_RENDER.DEFAULT_FORMAT)).trim().toLowerCase();
59
+ if (!constants_1.QR_RENDER.FORMATS.includes(format)) {
60
+ throw new Error(constants_1.QR_RENDER_MESSAGES.unknownFormat(format));
61
+ }
62
+ const query = { format, download: constants_1.QR_RENDER.DOWNLOAD_FLAG };
63
+ const presetId = (0, link_tool_helpers_1.toText)(read('presetId', '')).trim();
64
+ if (presetId) {
65
+ query.presetId = presetId;
66
+ if (presetId === constants_1.QR_RENDER.CUSTOM_PRESET_ID) {
67
+ query.customMm = Number(read('customMm', constants_1.QR_RENDER.DEFAULT_CUSTOM_MM));
68
+ }
69
+ if (format === 'png')
70
+ query.dpi = Number(read('dpi', constants_1.QR_RENDER.DEFAULT_DPI));
71
+ }
72
+ else if (format !== 'pdf') {
73
+ query.sizePx = Number(read('sizePx', constants_1.QR_RENDER.DEFAULT_SIZE_PX));
74
+ }
75
+ return query;
76
+ }
77
+ /**
78
+ * *Render* for one item: the file as binary property `renderBinaryProperty`
79
+ * (default `data`), the request's facts as json. The input item's other binary
80
+ * properties are carried over, so a chain keeps its earlier files.
81
+ */
82
+ async function executeQrRender(ctx, apiKey, itemIndex) {
83
+ const read = (name, fallback) => ctx.getNodeParameter(name, itemIndex, fallback);
84
+ const qrCodeId = (0, link_tool_helpers_1.toText)(read('qrCodeId', '')).trim();
85
+ if (!qrCodeId) {
86
+ throw new n8n_workflow_1.NodeOperationError(ctx.getNode(), constants_1.QR_RENDER_MESSAGES.idRequired('QR Code ID'), { itemIndex });
87
+ }
88
+ const query = buildQrRenderQuery(read);
89
+ const binaryProperty = (0, link_tool_helpers_1.toText)(read('renderBinaryProperty', constants_1.QR_RENDER.DEFAULT_BINARY_PROPERTY)).trim() ||
90
+ constants_1.QR_RENDER.DEFAULT_BINARY_PROPERTY;
91
+ const file = await api_helpers_1.makeBinaryApiRequest.call(ctx, apiKey, `${constants_1.API_ENDPOINTS.QR_CODE}/${(0, api_helpers_1.encodePathSegment)(qrCodeId)}/${constants_1.QR_RENDER.RENDER_PATH_SEGMENT}`, query);
92
+ const mimeType = file.mimeType || constants_1.QR_RENDER.MIME_TYPES[query.format];
93
+ const fileName = file.fileName || `${constants_1.QR_RENDER.FALLBACK_FILE_NAME_PREFIX}${qrCodeId}.${query.format}`;
94
+ const binaryData = await ctx.helpers.prepareBinaryData(file.data, fileName, mimeType);
95
+ const json = {
96
+ qrCodeId,
97
+ format: query.format,
98
+ presetId: query.presetId ?? null,
99
+ fileName,
100
+ mimeType,
101
+ fileSize: file.data.length,
102
+ binaryProperty,
103
+ };
104
+ const inputBinary = ctx.getInputData()[itemIndex]?.binary || {};
105
+ return {
106
+ json: json,
107
+ binary: { ...inputBinary, [binaryProperty]: binaryData },
108
+ pairedItem: { item: itemIndex },
109
+ };
110
+ }
111
+ /**
112
+ * The scannability-check body for one saved source: a QR code (as rendered,
113
+ * its template wins) or a template (yours or public, with optional sample
114
+ * text). A preset adds the module-size-in-mm check. Throws when the ID is empty.
115
+ */
116
+ function buildQrScannabilityRequest(read) {
117
+ const source = (0, link_tool_helpers_1.toText)(read('scannabilitySource', 'qrCode'));
118
+ const body = {};
119
+ if (source === 'template') {
120
+ const templateId = (0, link_tool_helpers_1.firstText)(read('scannabilityTemplateId', ''));
121
+ if (!templateId)
122
+ throw new Error(constants_1.QR_RENDER_MESSAGES.idRequired('Template'));
123
+ body.templateId = templateId;
124
+ const text = (0, link_tool_helpers_1.firstText)(read('sampleText', ''));
125
+ if (text)
126
+ body.text = text;
127
+ }
128
+ else {
129
+ const qrCodeId = (0, link_tool_helpers_1.firstText)(read('qrCodeId', ''));
130
+ if (!qrCodeId)
131
+ throw new Error(constants_1.QR_RENDER_MESSAGES.idRequired('QR Code ID'));
132
+ body.qrCodeId = qrCodeId;
133
+ }
134
+ const presetId = (0, link_tool_helpers_1.firstText)(read('presetId', ''));
135
+ if (presetId) {
136
+ body.presetId = presetId;
137
+ if (presetId === constants_1.QR_RENDER.CUSTOM_PRESET_ID) {
138
+ body.customMm = Number(read('customMm', constants_1.QR_RENDER.DEFAULT_CUSTOM_MM));
139
+ }
140
+ }
141
+ return body;
142
+ }
143
+ /** *Check Scannability* for one item: the K5 report. */
144
+ async function executeQrScannabilityCheck(ctx, apiKey, itemIndex) {
145
+ const body = buildQrScannabilityRequest((name, fallback) => ctx.getNodeParameter(name, itemIndex, fallback));
146
+ return (await api_helpers_1.makeApiRequest.call(ctx, apiKey, {
147
+ method: 'POST',
148
+ endpoint: `${constants_1.API_ENDPOINTS.QR_CODE}${constants_1.QR_RENDER.SCANNABILITY_PATH}`,
149
+ body,
150
+ // The check's schema refuses unknown keys.
151
+ stampCreatedFrom: false,
152
+ }));
153
+ }
154
+ /**
155
+ * *List Templates* for one item: one page of the caller's templates (`mine`)
156
+ * or Posty5's public ones, as `{ _id, name }` rows, filtered by Search.
157
+ */
158
+ async function executeListQrTemplates(ctx, apiKey, itemIndex) {
159
+ const scope = (0, link_tool_helpers_1.toText)(ctx.getNodeParameter('templateScope', itemIndex, 'mine'));
160
+ const term = (0, link_tool_helpers_1.firstText)(ctx.getNodeParameter('templateSearch', itemIndex, ''));
161
+ const limit = Number(ctx.getNodeParameter('templateLimit', itemIndex, constants_1.QR_RENDER.LIST_TEMPLATES_DEFAULT_LIMIT));
162
+ const path = scope === 'public' ? constants_1.QR_TEMPLATE_LOOKUP.PUBLIC_PATH : constants_1.QR_TEMPLATE_LOOKUP.USER_PATH;
163
+ const page = (await api_helpers_1.makeApiRequest.call(ctx, apiKey, {
164
+ method: 'GET',
165
+ endpoint: `${constants_1.API_ENDPOINTS.QR_CODE_TEMPLATE}${path}`,
166
+ qs: { page: 1, pageSize: limit, ...(term ? { term } : {}) },
167
+ }));
168
+ return (page?.items || [])
169
+ .filter((template) => (0, link_tool_helpers_1.firstText)(template?._id))
170
+ .map((template) => ({ _id: template._id, name: (0, link_tool_helpers_1.firstText)(template.name) }));
171
+ }
172
+ //# sourceMappingURL=qr-render.helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"qr-render.helpers.js","sourceRoot":"","sources":["../../utils/qr-render.helpers.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;AA+BH,8CAWC;AAGD,wCAYC;AAOD,gDAkBC;AAOD,0CAwCC;AAOD,gEAuBC;AAGD,gEAaC;AAMD,wDAqBC;AAxMD,+CAMsB;AACtB,+CAAwF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AAA,6BAAS,EAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;AAC9E,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The QR Code node's *Render*, *Check Scannability* and *List Templates*
3
+ * parameters (the QR Code ID field is the node's own, shown for Render too).
4
+ * Read by `qr-render.helpers.ts`.
5
+ */
6
+ import type { INodeProperties } from 'n8n-workflow';
7
+ export declare const QR_RENDER_PROPERTIES: INodeProperties[];
8
+ //# sourceMappingURL=qr-render.properties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"qr-render.properties.d.ts","sourceRoot":"","sources":["../../utils/qr-render.properties.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAOpD,eAAO,MAAM,oBAAoB,EAAE,eAAe,EAsIjD,CAAC"}
@@ -0,0 +1,143 @@
1
+ "use strict";
2
+ /**
3
+ * The QR Code node's *Render*, *Check Scannability* and *List Templates*
4
+ * parameters (the QR Code ID field is the node's own, shown for Render too).
5
+ * Read by `qr-render.helpers.ts`.
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.QR_RENDER_PROPERTIES = void 0;
9
+ const constants_1 = require("./constants");
10
+ const SHOW_ON_RENDER = { show: { operation: ['render'] } };
11
+ const SHOW_ON_CHECK = { show: { operation: ['checkScannability'] } };
12
+ const SHOW_ON_LIST_TEMPLATES = { show: { operation: ['listTemplates'] } };
13
+ exports.QR_RENDER_PROPERTIES = [
14
+ // Check Scannability: which saved design to check
15
+ {
16
+ displayName: 'Source',
17
+ name: 'scannabilitySource',
18
+ type: 'options',
19
+ noDataExpression: true,
20
+ displayOptions: SHOW_ON_CHECK,
21
+ options: [
22
+ { name: 'QR Code', value: 'qrCode', description: 'A saved QR code, as it renders (its template wins)' },
23
+ { name: 'Template', value: 'template', description: 'One of your templates, or a public one' },
24
+ ],
25
+ default: 'qrCode',
26
+ },
27
+ {
28
+ displayName: 'QR Code ID',
29
+ name: 'qrCodeId',
30
+ type: 'string',
31
+ required: true,
32
+ displayOptions: { show: { operation: ['checkScannability'], scannabilitySource: ['qrCode'] } },
33
+ default: '',
34
+ description: 'The ID of the QR code',
35
+ },
36
+ {
37
+ displayName: 'Template Name or ID',
38
+ name: 'scannabilityTemplateId',
39
+ type: 'options',
40
+ required: true,
41
+ typeOptions: { loadOptionsMethod: 'getQrTemplates' },
42
+ displayOptions: { show: { operation: ['checkScannability'], scannabilitySource: ['template'] } },
43
+ default: '',
44
+ description: 'The template to check. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
45
+ },
46
+ {
47
+ displayName: 'Sample Text',
48
+ name: 'sampleText',
49
+ type: 'string',
50
+ displayOptions: { show: { operation: ['checkScannability'], scannabilitySource: ['template'] } },
51
+ default: '',
52
+ description: 'The content to check the template with. Empty uses a representative Posty5 QR URL.',
53
+ },
54
+ // Render: the file
55
+ {
56
+ displayName: 'Format',
57
+ name: 'renderFormat',
58
+ type: 'options',
59
+ displayOptions: SHOW_ON_RENDER,
60
+ options: [
61
+ { name: 'PNG', value: 'png', description: 'Raster image (every plan, up to 2048 px)' },
62
+ { name: 'SVG', value: 'svg', description: 'Vector image (paid plans)' },
63
+ { name: 'PDF', value: 'pdf', description: 'Print-ready PDF at the preset size (paid plans)' },
64
+ ],
65
+ default: constants_1.QR_RENDER.DEFAULT_FORMAT,
66
+ },
67
+ // Render and Check Scannability: the print size
68
+ {
69
+ displayName: 'Print Preset Name or ID',
70
+ name: 'presetId',
71
+ type: 'options',
72
+ typeOptions: { loadOptionsMethod: 'getQrPrintPresets' },
73
+ displayOptions: { show: { operation: ['render', 'checkScannability'] } },
74
+ default: '',
75
+ description: 'Print size. On Render a preset, a DPI, SVG, PDF or a PNG over 2048 px need a paid plan; PDF with no preset prints at Flyer 5cm. On Check Scannability a preset adds the module size in mm. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
76
+ },
77
+ {
78
+ displayName: 'Custom Width (Mm)',
79
+ name: 'customMm',
80
+ type: 'number',
81
+ displayOptions: { show: { operation: ['render', 'checkScannability'], presetId: [constants_1.QR_RENDER.CUSTOM_PRESET_ID] } },
82
+ typeOptions: { minValue: constants_1.QR_RENDER.CUSTOM_MM_MIN, maxValue: constants_1.QR_RENDER.CUSTOM_MM_MAX },
83
+ default: constants_1.QR_RENDER.DEFAULT_CUSTOM_MM,
84
+ description: 'Printed width of the QR code for the Custom preset',
85
+ },
86
+ {
87
+ displayName: 'DPI',
88
+ name: 'dpi',
89
+ type: 'options',
90
+ displayOptions: { show: { operation: ['render'], renderFormat: ['png'] }, hide: { presetId: [''] } },
91
+ options: constants_1.QR_RENDER.DPI_VALUES.map((dpi) => ({ name: String(dpi), value: dpi })),
92
+ default: constants_1.QR_RENDER.DEFAULT_DPI,
93
+ description: 'PNG resolution at the print preset',
94
+ },
95
+ {
96
+ displayName: 'Size (Px)',
97
+ name: 'sizePx',
98
+ type: 'number',
99
+ displayOptions: { show: { operation: ['render'], renderFormat: ['png', 'svg'], presetId: [''] } },
100
+ typeOptions: { minValue: constants_1.QR_RENDER.SIZE_PX_MIN, maxValue: constants_1.QR_RENDER.SIZE_PX_MAX },
101
+ default: constants_1.QR_RENDER.DEFAULT_SIZE_PX,
102
+ description: 'Width in pixels when no print preset is chosen. Over 2048 needs a paid plan.',
103
+ },
104
+ {
105
+ displayName: 'Put Output File in Field',
106
+ name: 'renderBinaryProperty',
107
+ type: 'string',
108
+ required: true,
109
+ displayOptions: SHOW_ON_RENDER,
110
+ default: constants_1.QR_RENDER.DEFAULT_BINARY_PROPERTY,
111
+ hint: 'The name of the output binary field to put the file in',
112
+ },
113
+ // List Templates
114
+ {
115
+ displayName: 'Scope',
116
+ name: 'templateScope',
117
+ type: 'options',
118
+ displayOptions: SHOW_ON_LIST_TEMPLATES,
119
+ options: [
120
+ { name: 'My Templates', value: 'mine', description: 'Templates you created' },
121
+ { name: 'Public Templates', value: 'public', description: "Posty5's public templates (any is a valid Template ID)" },
122
+ ],
123
+ default: 'mine',
124
+ },
125
+ {
126
+ displayName: 'Search',
127
+ name: 'templateSearch',
128
+ type: 'string',
129
+ displayOptions: SHOW_ON_LIST_TEMPLATES,
130
+ default: '',
131
+ description: 'Only templates whose name contains this text',
132
+ },
133
+ {
134
+ displayName: 'Limit',
135
+ name: 'templateLimit',
136
+ type: 'number',
137
+ displayOptions: SHOW_ON_LIST_TEMPLATES,
138
+ typeOptions: { minValue: 1, maxValue: constants_1.QR_RENDER.LIST_TEMPLATES_MAX_LIMIT },
139
+ default: constants_1.QR_RENDER.LIST_TEMPLATES_DEFAULT_LIMIT,
140
+ description: 'Max number of results to return',
141
+ },
142
+ ];
143
+ //# sourceMappingURL=qr-render.properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"qr-render.properties.js","sourceRoot":"","sources":["../../utils/qr-render.properties.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,2CAAwC;AAExC,MAAM,cAAc,GAAG,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;AAC3D,MAAM,aAAa,GAAG,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,mBAAmB,CAAC,EAAE,EAAE,CAAC;AACrE,MAAM,sBAAsB,GAAG,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC;AAE7D,QAAA,oBAAoB,GAAsB;IACtD,kDAAkD;IAClD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,aAAa;QAC7B,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,oDAAoD,EAAE;YACvG,EAAE,IAAI,EAAE,UAA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;QACtC,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8CAA8C;KAC3D;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE,sBAAsB;QACtC,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,qBAAS,CAAC,wBAAwB,EAAE;QAC1E,OAAO,EAAE,qBAAS,CAAC,4BAA4B;QAC/C,WAAW,EAAE,iCAAiC;KAC9C;CACD,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@posty5/n8n-nodes-posty5",
3
- "version": "5.0.0",
4
- "description": "N8N community nodes for Posty5 - URL shortening, QR codes, HTML hosting, social media publishing and online-store dropshipping",
3
+ "version": "6.0.0",
4
+ "description": "N8N community nodes for Posty5 - URL shortening, QR codes, HTML hosting and social media publishing",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",
7
7
  "n8n-community-node",
@@ -10,8 +10,6 @@
10
10
  "url-shortener",
11
11
  "qr-code",
12
12
  "social-media",
13
- "online-store",
14
- "dropshipping",
15
13
  "automation"
16
14
  ],
17
15
  "license": "MIT",
@@ -55,24 +53,26 @@
55
53
  "dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.js",
56
54
  "dist/nodes/Posty5SocialPublisherWorkspace/Posty5SocialPublisherWorkspace.node.js",
57
55
  "dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.js",
58
- "dist/nodes/Posty5Store/Posty5Store.node.js",
59
56
  "dist/nodes/Posty5Trigger/Posty5Trigger.node.js"
60
57
  ]
61
58
  },
62
59
  "devDependencies": {
63
60
  "@types/jest": "^29.5.14",
64
61
  "@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",
62
+ "@typescript-eslint/eslint-plugin": "^8.72.1",
63
+ "@typescript-eslint/parser": "^8.72.1",
64
+ "eslint": "^8.57.1",
65
+ "eslint-plugin-n8n-nodes-base": "^2.0.0",
69
66
  "jest": "^29.7.0",
70
- "n8n-workflow": "^1.25.0",
67
+ "n8n-workflow": "^1.120.33",
71
68
  "prettier": "^3.2.4",
72
69
  "ts-jest": "^29.1.1",
73
70
  "typescript": "^5.3.3"
74
71
  },
75
72
  "peerDependencies": {
76
73
  "n8n-workflow": ">=1.0.0"
74
+ },
75
+ "overrides": {
76
+ "form-data": "^4.0.6"
77
77
  }
78
78
  }
@@ -1,17 +0,0 @@
1
- import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
- /**
3
- * Posty5 Store — dropshipping workflows over `/api/store-suppliers` and the
4
- * order parts on `/api/store-orders`.
5
- *
6
- * No store trigger yet: the api pushes no store-order events, so a trigger would
7
- * poll — which Schedule Trigger + Supplier Order → Get Many already does. Push
8
- * events (link visits, QR scans, milestones) arrive through Posty5 Trigger;
9
- * store orders become one more event there when the API adds them. Connecting and
10
- * configuring suppliers stays in the store's control panel: a supplier
11
- * credential in a node parameter would sit in plain text in the workflow JSON.
12
- */
13
- export declare class Posty5Store implements INodeType {
14
- description: INodeTypeDescription;
15
- execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
16
- }
17
- //# sourceMappingURL=Posty5Store.node.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Posty5Store.node.d.ts","sourceRoot":"","sources":["../../../nodes/Posty5Store/Posty5Store.node.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EACpB,MAAM,cAAc,CAAC;AAmBtB;;;;;;;;;;GAUG;AACH,qBAAa,WAAY,YAAW,SAAS;IAC5C,WAAW,EAAE,oBAAoB,CAwD/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CAqJvE"}