@posty5/n8n-nodes-posty5 4.2.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.
- package/README.md +351 -15
- package/dist/credentials/Posty5Api.credentials.d.ts +4 -0
- package/dist/credentials/Posty5Api.credentials.d.ts.map +1 -1
- package/dist/credentials/Posty5Api.credentials.js +30 -4
- package/dist/credentials/Posty5Api.credentials.js.map +1 -1
- package/dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.d.ts.map +1 -1
- package/dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.js +6 -2
- package/dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.js.map +1 -1
- package/dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.d.ts.map +1 -1
- package/dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.js +14 -3
- package/dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.js.map +1 -1
- package/dist/nodes/Posty5QrCode/Posty5QrCode.node.d.ts +6 -0
- package/dist/nodes/Posty5QrCode/Posty5QrCode.node.d.ts.map +1 -1
- package/dist/nodes/Posty5QrCode/Posty5QrCode.node.js +850 -189
- package/dist/nodes/Posty5QrCode/Posty5QrCode.node.js.map +1 -1
- package/dist/nodes/Posty5QrCode/helpers.d.ts +12 -0
- package/dist/nodes/Posty5QrCode/helpers.d.ts.map +1 -0
- package/dist/nodes/Posty5QrCode/helpers.js +56 -0
- package/dist/nodes/Posty5QrCode/helpers.js.map +1 -0
- package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.d.ts +8 -0
- package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.d.ts.map +1 -1
- package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.js +389 -78
- package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.js.map +1 -1
- package/dist/nodes/Posty5ShortLink/helpers.d.ts +12 -0
- package/dist/nodes/Posty5ShortLink/helpers.d.ts.map +1 -0
- package/dist/nodes/Posty5ShortLink/helpers.js +46 -0
- package/dist/nodes/Posty5ShortLink/helpers.js.map +1 -0
- package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.d.ts.map +1 -1
- package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.js +143 -52
- package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.js.map +1 -1
- package/dist/nodes/Posty5Store/Posty5Store.node.d.ts +17 -0
- package/dist/nodes/Posty5Store/Posty5Store.node.d.ts.map +1 -0
- package/dist/nodes/Posty5Store/Posty5Store.node.js +230 -0
- package/dist/nodes/Posty5Store/Posty5Store.node.js.map +1 -0
- package/dist/nodes/Posty5Store/descriptions/fulfilment-group.description.d.ts +4 -0
- package/dist/nodes/Posty5Store/descriptions/fulfilment-group.description.d.ts.map +1 -0
- package/dist/nodes/Posty5Store/descriptions/fulfilment-group.description.js +55 -0
- package/dist/nodes/Posty5Store/descriptions/fulfilment-group.description.js.map +1 -0
- package/dist/nodes/Posty5Store/descriptions/order.description.d.ts +4 -0
- package/dist/nodes/Posty5Store/descriptions/order.description.d.ts.map +1 -0
- package/dist/nodes/Posty5Store/descriptions/order.description.js +91 -0
- package/dist/nodes/Posty5Store/descriptions/order.description.js.map +1 -0
- package/dist/nodes/Posty5Store/descriptions/product-link.description.d.ts +4 -0
- package/dist/nodes/Posty5Store/descriptions/product-link.description.d.ts.map +1 -0
- package/dist/nodes/Posty5Store/descriptions/product-link.description.js +48 -0
- package/dist/nodes/Posty5Store/descriptions/product-link.description.js.map +1 -0
- package/dist/nodes/Posty5Store/descriptions/supplier-order.description.d.ts +4 -0
- package/dist/nodes/Posty5Store/descriptions/supplier-order.description.d.ts.map +1 -0
- package/dist/nodes/Posty5Store/descriptions/supplier-order.description.js +118 -0
- package/dist/nodes/Posty5Store/descriptions/supplier-order.description.js.map +1 -0
- package/dist/nodes/Posty5Store/descriptions/supplier-product.description.d.ts +4 -0
- package/dist/nodes/Posty5Store/descriptions/supplier-product.description.d.ts.map +1 -0
- package/dist/nodes/Posty5Store/descriptions/supplier-product.description.js +167 -0
- package/dist/nodes/Posty5Store/descriptions/supplier-product.description.js.map +1 -0
- package/dist/nodes/Posty5Store/descriptions/supplier.description.d.ts +4 -0
- package/dist/nodes/Posty5Store/descriptions/supplier.description.d.ts.map +1 -0
- package/dist/nodes/Posty5Store/descriptions/supplier.description.js +50 -0
- package/dist/nodes/Posty5Store/descriptions/supplier.description.js.map +1 -0
- package/dist/nodes/Posty5Trigger/Posty5Trigger.node.d.ts +13 -0
- package/dist/nodes/Posty5Trigger/Posty5Trigger.node.d.ts.map +1 -0
- package/dist/nodes/Posty5Trigger/Posty5Trigger.node.js +171 -0
- package/dist/nodes/Posty5Trigger/Posty5Trigger.node.js.map +1 -0
- package/dist/nodes/Posty5Trigger/config.d.ts +51 -0
- package/dist/nodes/Posty5Trigger/config.d.ts.map +1 -0
- package/dist/nodes/Posty5Trigger/config.js +76 -0
- package/dist/nodes/Posty5Trigger/config.js.map +1 -0
- package/dist/nodes/Posty5Trigger/descriptions.d.ts +4 -0
- package/dist/nodes/Posty5Trigger/descriptions.d.ts.map +1 -0
- package/dist/nodes/Posty5Trigger/descriptions.js +99 -0
- package/dist/nodes/Posty5Trigger/descriptions.js.map +1 -0
- package/dist/nodes/Posty5Trigger/helpers.d.ts +34 -0
- package/dist/nodes/Posty5Trigger/helpers.d.ts.map +1 -0
- package/dist/nodes/Posty5Trigger/helpers.js +139 -0
- package/dist/nodes/Posty5Trigger/helpers.js.map +1 -0
- package/dist/package.json +78 -0
- package/dist/types/common.d.ts +62 -0
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/link-analytics.types.d.ts +147 -0
- package/dist/types/link-analytics.types.d.ts.map +1 -0
- package/dist/types/link-analytics.types.js +10 -0
- package/dist/types/link-analytics.types.js.map +1 -0
- package/dist/types/link-bulk.types.d.ts +68 -0
- package/dist/types/link-bulk.types.d.ts.map +1 -0
- package/dist/types/link-bulk.types.js +8 -0
- package/dist/types/link-bulk.types.js.map +1 -0
- package/dist/types/qr-code.types.d.ts +189 -56
- package/dist/types/qr-code.types.d.ts.map +1 -1
- package/dist/types/short-link-controls.types.d.ts +82 -0
- package/dist/types/short-link-controls.types.d.ts.map +1 -0
- package/dist/types/short-link-controls.types.js +7 -0
- package/dist/types/short-link-controls.types.js.map +1 -0
- package/dist/types/short-link.types.d.ts +63 -15
- package/dist/types/short-link.types.d.ts.map +1 -1
- package/dist/types/store.types.d.ts +71 -0
- package/dist/types/store.types.d.ts.map +1 -0
- package/dist/types/store.types.js +7 -0
- package/dist/types/store.types.js.map +1 -0
- package/dist/types/webhook.types.d.ts +66 -0
- package/dist/types/webhook.types.d.ts.map +1 -0
- package/dist/types/webhook.types.js +7 -0
- package/dist/types/webhook.types.js.map +1 -0
- package/dist/utils/analytics.helpers.d.ts +68 -0
- package/dist/utils/analytics.helpers.d.ts.map +1 -0
- package/dist/utils/analytics.helpers.js +202 -0
- package/dist/utils/analytics.helpers.js.map +1 -0
- package/dist/utils/analytics.properties.d.ts +10 -0
- package/dist/utils/analytics.properties.d.ts.map +1 -0
- package/dist/utils/analytics.properties.js +172 -0
- package/dist/utils/analytics.properties.js.map +1 -0
- package/dist/utils/api.helpers.d.ts +36 -3
- package/dist/utils/api.helpers.d.ts.map +1 -1
- package/dist/utils/api.helpers.js +77 -7
- package/dist/utils/api.helpers.js.map +1 -1
- package/dist/utils/constants.d.ts +198 -0
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/constants.js +215 -1
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/date.helpers.d.ts +25 -0
- package/dist/utils/date.helpers.d.ts.map +1 -0
- package/dist/utils/date.helpers.js +65 -0
- package/dist/utils/date.helpers.js.map +1 -0
- package/dist/utils/link-bulk.helpers.d.ts +26 -0
- package/dist/utils/link-bulk.helpers.d.ts.map +1 -0
- package/dist/utils/link-bulk.helpers.js +135 -0
- package/dist/utils/link-bulk.helpers.js.map +1 -0
- package/dist/utils/link-bulk.properties.d.ts +9 -0
- package/dist/utils/link-bulk.properties.d.ts.map +1 -0
- package/dist/utils/link-bulk.properties.js +113 -0
- package/dist/utils/link-bulk.properties.js.map +1 -0
- package/dist/utils/link-tool.helpers.d.ts +43 -0
- package/dist/utils/link-tool.helpers.d.ts.map +1 -0
- package/dist/utils/link-tool.helpers.js +121 -0
- package/dist/utils/link-tool.helpers.js.map +1 -0
- package/dist/utils/post-comments.d.ts +43 -0
- package/dist/utils/post-comments.d.ts.map +1 -0
- package/dist/utils/post-comments.js +53 -0
- package/dist/utils/post-comments.js.map +1 -0
- package/dist/utils/qr-content.config.d.ts +66 -0
- package/dist/utils/qr-content.config.d.ts.map +1 -0
- package/dist/utils/qr-content.config.js +139 -0
- package/dist/utils/qr-content.config.js.map +1 -0
- package/dist/utils/qr-file.helpers.d.ts +22 -0
- package/dist/utils/qr-file.helpers.d.ts.map +1 -0
- package/dist/utils/qr-file.helpers.js +63 -0
- package/dist/utils/qr-file.helpers.js.map +1 -0
- package/dist/utils/qr-target.helpers.d.ts +35 -0
- package/dist/utils/qr-target.helpers.d.ts.map +1 -0
- package/dist/utils/qr-target.helpers.js +260 -0
- package/dist/utils/qr-target.helpers.js.map +1 -0
- package/dist/utils/qr-templates.helpers.d.ts +26 -0
- package/dist/utils/qr-templates.helpers.d.ts.map +1 -0
- package/dist/utils/qr-templates.helpers.js +70 -0
- package/dist/utils/qr-templates.helpers.js.map +1 -0
- package/dist/utils/short-link-controls.helpers.d.ts +31 -0
- package/dist/utils/short-link-controls.helpers.d.ts.map +1 -0
- package/dist/utils/short-link-controls.helpers.js +185 -0
- package/dist/utils/short-link-controls.helpers.js.map +1 -0
- package/dist/utils/short-link-controls.properties.d.ts +17 -0
- package/dist/utils/short-link-controls.properties.d.ts.map +1 -0
- package/dist/utils/short-link-controls.properties.js +315 -0
- package/dist/utils/short-link-controls.properties.js.map +1 -0
- package/dist/utils/store.helpers.d.ts +43 -0
- package/dist/utils/store.helpers.d.ts.map +1 -0
- package/dist/utils/store.helpers.js +87 -0
- package/dist/utils/store.helpers.js.map +1 -0
- package/dist/utils/versioned-write.helpers.d.ts +31 -0
- package/dist/utils/versioned-write.helpers.d.ts.map +1 -0
- package/dist/utils/versioned-write.helpers.js +120 -0
- package/dist/utils/versioned-write.helpers.js.map +1 -0
- package/package.json +7 -3
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpers for the Posty5 Store node (dropshipping).
|
|
3
|
+
*/
|
|
4
|
+
import type { IDataObject, IExecuteFunctions } from 'n8n-workflow';
|
|
5
|
+
import { makeApiRequest } from './api.helpers';
|
|
6
|
+
import type { FulfilmentGroupAction, IOrderPartItem, IStoreCursorPage, IStoreOrderWithParts, SupplierOrderAction } from '../types/store.types';
|
|
7
|
+
/**
|
|
8
|
+
* The route for an action on one part of an order. The part key looks like
|
|
9
|
+
* `supplier:<integrationId>`, so it is encoded before it enters the path.
|
|
10
|
+
*/
|
|
11
|
+
export declare function buildGroupActionEndpoint(storeId: string, orderId: string, groupKey: string, action: FulfilmentGroupAction): string;
|
|
12
|
+
/** The route for an action on one supplier order. */
|
|
13
|
+
export declare function buildSupplierOrderActionEndpoint(storeId: string, supplierOrderId: string, action: SupplierOrderAction): string;
|
|
14
|
+
/**
|
|
15
|
+
* One item per part of an order, each carrying the order's id and number and
|
|
16
|
+
* the supplier order behind it (newest attempt), or null for the store's own part.
|
|
17
|
+
* An order from before parts existed still has one merchant part (the api adds it).
|
|
18
|
+
*/
|
|
19
|
+
export declare function splitOrderParts(order: IStoreOrderWithParts): IOrderPartItem[];
|
|
20
|
+
/**
|
|
21
|
+
* A POST to the `/api/store-suppliers` routes, without the `createdFrom` stamp
|
|
22
|
+
* their schemas never declared. Call it with the node's context:
|
|
23
|
+
* `storeSupplierPost.call(this, apiKey, endpoint, body)`.
|
|
24
|
+
*/
|
|
25
|
+
export declare function storeSupplierPost(this: IExecuteFunctions, apiKey: string, endpoint: string, body?: Record<string, unknown>): ReturnType<typeof makeApiRequest>;
|
|
26
|
+
/** A GET for the store node, with empty filter values dropped from the query. */
|
|
27
|
+
export declare function storeGet(this: IExecuteFunctions, apiKey: string, endpoint: string, qs?: Record<string, unknown>): ReturnType<typeof makeApiRequest>;
|
|
28
|
+
/**
|
|
29
|
+
* One page of a cursor-paged store list as output rows. The page's
|
|
30
|
+
* `nextCursor` rides on the last row, so the next run can pass it back as the
|
|
31
|
+
* Cursor filter and continue from there.
|
|
32
|
+
*/
|
|
33
|
+
export declare function rowsWithNextCursor(page: IStoreCursorPage<IDataObject> | undefined): IDataObject[];
|
|
34
|
+
/**
|
|
35
|
+
* Every row of a cursor-paged store list (Return All): follows
|
|
36
|
+
* `pagination.nextCursor` until `pagination.hasMore` is false. A cursor in `qs`
|
|
37
|
+
* is the starting point. Stops, too, if the api hands back the cursor it was
|
|
38
|
+
* just sent, so a misbehaving page can never loop forever.
|
|
39
|
+
*/
|
|
40
|
+
export declare function storeGetAllByCursor(this: IExecuteFunctions, apiKey: string, endpoint: string, qs: Record<string, unknown>, pageSize: number): Promise<IDataObject[]>;
|
|
41
|
+
/** Drop empty filter values so the api sees only what the user chose. */
|
|
42
|
+
export declare function stripEmpty(qs: Record<string, unknown>): Record<string, unknown>;
|
|
43
|
+
//# sourceMappingURL=store.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.helpers.d.ts","sourceRoot":"","sources":["../../utils/store.helpers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,KAAK,EACX,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,MAAM,sBAAsB,CAAC;AAE9B;;;GAGG;AACH,wBAAgB,wBAAwB,CACvC,OAAO,EAAE,MAAM,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0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Helpers for the Posty5 Store node (dropshipping).
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.buildGroupActionEndpoint = buildGroupActionEndpoint;
|
|
7
|
+
exports.buildSupplierOrderActionEndpoint = buildSupplierOrderActionEndpoint;
|
|
8
|
+
exports.splitOrderParts = splitOrderParts;
|
|
9
|
+
exports.storeSupplierPost = storeSupplierPost;
|
|
10
|
+
exports.storeGet = storeGet;
|
|
11
|
+
exports.rowsWithNextCursor = rowsWithNextCursor;
|
|
12
|
+
exports.storeGetAllByCursor = storeGetAllByCursor;
|
|
13
|
+
exports.stripEmpty = stripEmpty;
|
|
14
|
+
const api_helpers_1 = require("./api.helpers");
|
|
15
|
+
const constants_1 = require("./constants");
|
|
16
|
+
/**
|
|
17
|
+
* The route for an action on one part of an order. The part key looks like
|
|
18
|
+
* `supplier:<integrationId>`, so it is encoded before it enters the path.
|
|
19
|
+
*/
|
|
20
|
+
function buildGroupActionEndpoint(storeId, orderId, groupKey, action) {
|
|
21
|
+
return `${constants_1.API_ENDPOINTS.STORE_SUPPLIERS}/${storeId}/orders/${orderId}/groups/${encodeURIComponent(groupKey)}/${action}`;
|
|
22
|
+
}
|
|
23
|
+
/** The route for an action on one supplier order. */
|
|
24
|
+
function buildSupplierOrderActionEndpoint(storeId, supplierOrderId, action) {
|
|
25
|
+
return `${constants_1.API_ENDPOINTS.STORE_SUPPLIERS}/${storeId}/orders/${supplierOrderId}/${action}`;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* One item per part of an order, each carrying the order's id and number and
|
|
29
|
+
* the supplier order behind it (newest attempt), or null for the store's own part.
|
|
30
|
+
* An order from before parts existed still has one merchant part (the api adds it).
|
|
31
|
+
*/
|
|
32
|
+
function splitOrderParts(order) {
|
|
33
|
+
const supplierOrders = order.supplierOrders || [];
|
|
34
|
+
return (order.fulfilmentGroups || []).map((group) => ({
|
|
35
|
+
...group,
|
|
36
|
+
orderId: order._id,
|
|
37
|
+
orderNumber: order.orderNumber,
|
|
38
|
+
supplierOrder: supplierOrders.find((row) => row.fulfilmentGroupKey === group.key) || null,
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* A POST to the `/api/store-suppliers` routes, without the `createdFrom` stamp
|
|
43
|
+
* their schemas never declared. Call it with the node's context:
|
|
44
|
+
* `storeSupplierPost.call(this, apiKey, endpoint, body)`.
|
|
45
|
+
*/
|
|
46
|
+
function storeSupplierPost(apiKey, endpoint, body = {}) {
|
|
47
|
+
return api_helpers_1.makeApiRequest.call(this, apiKey, { method: 'POST', endpoint, body, stampCreatedFrom: false });
|
|
48
|
+
}
|
|
49
|
+
/** A GET for the store node, with empty filter values dropped from the query. */
|
|
50
|
+
function storeGet(apiKey, endpoint, qs) {
|
|
51
|
+
return api_helpers_1.makeApiRequest.call(this, apiKey, { method: 'GET', endpoint, ...(qs ? { qs: stripEmpty(qs) } : {}) });
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* One page of a cursor-paged store list as output rows. The page's
|
|
55
|
+
* `nextCursor` rides on the last row, so the next run can pass it back as the
|
|
56
|
+
* Cursor filter and continue from there.
|
|
57
|
+
*/
|
|
58
|
+
function rowsWithNextCursor(page) {
|
|
59
|
+
const rows = [...(page?.items || [])];
|
|
60
|
+
const nextCursor = page?.pagination?.nextCursor;
|
|
61
|
+
if (rows.length && nextCursor)
|
|
62
|
+
rows[rows.length - 1] = { ...rows[rows.length - 1], nextCursor };
|
|
63
|
+
return rows;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Every row of a cursor-paged store list (Return All): follows
|
|
67
|
+
* `pagination.nextCursor` until `pagination.hasMore` is false. A cursor in `qs`
|
|
68
|
+
* is the starting point. Stops, too, if the api hands back the cursor it was
|
|
69
|
+
* just sent, so a misbehaving page can never loop forever.
|
|
70
|
+
*/
|
|
71
|
+
async function storeGetAllByCursor(apiKey, endpoint, qs, pageSize) {
|
|
72
|
+
const rows = [];
|
|
73
|
+
let cursor = typeof qs.cursor === 'string' && qs.cursor ? qs.cursor : undefined;
|
|
74
|
+
for (;;) {
|
|
75
|
+
const page = (await storeGet.call(this, apiKey, endpoint, { ...qs, cursor, pageSize }));
|
|
76
|
+
rows.push(...(page?.items || []));
|
|
77
|
+
const next = page?.pagination?.hasMore ? page.pagination.nextCursor : undefined;
|
|
78
|
+
if (!next || next === cursor)
|
|
79
|
+
return rows;
|
|
80
|
+
cursor = next;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
/** Drop empty filter values so the api sees only what the user chose. */
|
|
84
|
+
function stripEmpty(qs) {
|
|
85
|
+
return Object.fromEntries(Object.entries(qs).filter(([, value]) => value !== undefined && value !== null && value !== ''));
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=store.helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.helpers.js","sourceRoot":"","sources":["../../utils/store.helpers.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAiBH,4DAOC;AAGD,4EAMC;AAOD,0CAQC;AAOD,8CAOC;AAGD,4BAOC;AAOD,gDAKC;AAQD,kDAkBC;AAGD,gCAIC;AAlHD,+CAA+C;AAC/C,2CAA4C;AAS5C;;;GAGG;AACH,SAAgB,wBAAwB,CACvC,OAAe,EACf,OAAe,EACf,QAAgB,EAChB,MAA6B;IAE7B,OAAO,GAAG,yBAAa,CAAC,eAAe,IAAI,OAAO,WAAW,OAAO,WAAW,kBAAkB,CAAC,QAAQ,CAAC,IAAI,MAAM,EAAE,CAAC;AACzH,CAAC;AAED,qDAAqD;AACrD,SAAgB,gCAAgC,CAC/C,OAAe,EACf,eAAuB,EACvB,MAA2B;IAE3B,OAAO,GAAG,yBAAa,CAAC,eAAe,IAAI,OAAO,WAAW,eAAe,IAAI,MAAM,EAAE,CAAC;AAC1F,CAAC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AC,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC,CAC/F,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Versioned writes (optimistic-concurrency, D-18): the Version field of the v2
|
|
3
|
+
* nodes, and the version each update/delete sends as `If-Match`.
|
|
4
|
+
*
|
|
5
|
+
* - v2: the Version field (default `{{ $json.__v }}`); when it is empty, the
|
|
6
|
+
* node fails, unless Version Options > On Unknown Version is Use Latest,
|
|
7
|
+
* which reads the item and uses its `__v` (an explicit opt-in to
|
|
8
|
+
* last-write-wins).
|
|
9
|
+
* - v1: unchanged UI; the item is read first and its `__v` is sent, so a saved
|
|
10
|
+
* workflow keeps last-write-wins after enforcement (legacy, documented).
|
|
11
|
+
*/
|
|
12
|
+
import type { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
13
|
+
/** True when the running node is v2 or later. */
|
|
14
|
+
export declare function isVersionedNode(context: IExecuteFunctions): boolean;
|
|
15
|
+
/** A `__v` read from a stored item, when it is a number. */
|
|
16
|
+
export declare function readStoredVersion(item: unknown): number | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The version a write sends.
|
|
19
|
+
*
|
|
20
|
+
* @param getEndpoint - the item's GET route, read for v1 and for Use Latest.
|
|
21
|
+
* @param stored - an item the operation already read (its `__v` is reused, no
|
|
22
|
+
* second GET), for the operations that fetch-then-put.
|
|
23
|
+
*/
|
|
24
|
+
export declare function resolveWriteVersion(context: IExecuteFunctions, apiKey: string, itemIndex: number, getEndpoint: string, stored?: unknown): Promise<number | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* The v2-only Version field and Version Options for the given operations. A
|
|
27
|
+
* v1 node shows neither (`@version` display rule): it shows only a notice,
|
|
28
|
+
* not an input, that marks its write operations as legacy (D-18).
|
|
29
|
+
*/
|
|
30
|
+
export declare function buildVersionedWriteProperties(operations: string[]): INodeProperties[];
|
|
31
|
+
//# sourceMappingURL=versioned-write.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versioned-write.helpers.d.ts","sourceRoot":"","sources":["../../utils/versioned-write.helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAKvE,iDAAiD;AACjD,wBAAgB,eAAe,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAGnE;AAED,4DAA4D;AAC5D,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAGnE;AAQD;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CACxC,OAAO,EAAE,iBAAiB,EAC1B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,MAAM,CAAC,EAAE,OAAO,GACd,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAmB7B;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,eAAe,EAAE,CAqDrF"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Versioned writes (optimistic-concurrency, D-18): the Version field of the v2
|
|
4
|
+
* nodes, and the version each update/delete sends as `If-Match`.
|
|
5
|
+
*
|
|
6
|
+
* - v2: the Version field (default `{{ $json.__v }}`); when it is empty, the
|
|
7
|
+
* node fails, unless Version Options > On Unknown Version is Use Latest,
|
|
8
|
+
* which reads the item and uses its `__v` (an explicit opt-in to
|
|
9
|
+
* last-write-wins).
|
|
10
|
+
* - v1: unchanged UI; the item is read first and its `__v` is sent, so a saved
|
|
11
|
+
* workflow keeps last-write-wins after enforcement (legacy, documented).
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.isVersionedNode = isVersionedNode;
|
|
15
|
+
exports.readStoredVersion = readStoredVersion;
|
|
16
|
+
exports.resolveWriteVersion = resolveWriteVersion;
|
|
17
|
+
exports.buildVersionedWriteProperties = buildVersionedWriteProperties;
|
|
18
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
19
|
+
const api_helpers_1 = require("./api.helpers");
|
|
20
|
+
const constants_1 = require("./constants");
|
|
21
|
+
/** True when the running node is v2 or later. */
|
|
22
|
+
function isVersionedNode(context) {
|
|
23
|
+
const typeVersion = Number(context.getNode()?.typeVersion ?? 1);
|
|
24
|
+
return typeVersion >= constants_1.VERSIONED_WRITES.FIRST_VERSIONED_NODE_VERSION;
|
|
25
|
+
}
|
|
26
|
+
/** A `__v` read from a stored item, when it is a number. */
|
|
27
|
+
function readStoredVersion(item) {
|
|
28
|
+
const v = item?.__v;
|
|
29
|
+
return typeof v === 'number' && Number.isInteger(v) && v >= 0 ? v : undefined;
|
|
30
|
+
}
|
|
31
|
+
function parseVersion(value) {
|
|
32
|
+
if (value === undefined || value === null || value === '')
|
|
33
|
+
return undefined;
|
|
34
|
+
const n = typeof value === 'number' ? value : Number(String(value).trim());
|
|
35
|
+
return Number.isInteger(n) && n >= 0 ? n : undefined;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The version a write sends.
|
|
39
|
+
*
|
|
40
|
+
* @param getEndpoint - the item's GET route, read for v1 and for Use Latest.
|
|
41
|
+
* @param stored - an item the operation already read (its `__v` is reused, no
|
|
42
|
+
* second GET), for the operations that fetch-then-put.
|
|
43
|
+
*/
|
|
44
|
+
async function resolveWriteVersion(context, apiKey, itemIndex, getEndpoint, stored) {
|
|
45
|
+
const readLatest = async () => {
|
|
46
|
+
// An item the operation already read is the latest: never read it twice.
|
|
47
|
+
if (stored !== undefined && stored !== null)
|
|
48
|
+
return readStoredVersion(stored);
|
|
49
|
+
const item = await api_helpers_1.makeApiRequest.call(context, apiKey, { method: 'GET', endpoint: getEndpoint });
|
|
50
|
+
return readStoredVersion(item);
|
|
51
|
+
};
|
|
52
|
+
if (!isVersionedNode(context))
|
|
53
|
+
return readLatest();
|
|
54
|
+
const given = parseVersion(context.getNodeParameter(constants_1.VERSIONED_WRITES.VERSION_PARAMETER, itemIndex, ''));
|
|
55
|
+
if (given !== undefined)
|
|
56
|
+
return given;
|
|
57
|
+
const options = context.getNodeParameter(constants_1.VERSIONED_WRITES.OPTIONS_PARAMETER, itemIndex, {});
|
|
58
|
+
if (options?.onUnknownVersion === constants_1.VERSIONED_WRITES.ON_UNKNOWN_USE_LATEST)
|
|
59
|
+
return readLatest();
|
|
60
|
+
throw new n8n_workflow_1.NodeOperationError(context.getNode(), constants_1.VERSIONED_WRITES.UNKNOWN_VERSION_MESSAGE, { itemIndex });
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* The v2-only Version field and Version Options for the given operations. A
|
|
64
|
+
* v1 node shows neither (`@version` display rule): it shows only a notice,
|
|
65
|
+
* not an input, that marks its write operations as legacy (D-18).
|
|
66
|
+
*/
|
|
67
|
+
function buildVersionedWriteProperties(operations) {
|
|
68
|
+
const show = {
|
|
69
|
+
'@version': [constants_1.VERSIONED_WRITES.FIRST_VERSIONED_NODE_VERSION],
|
|
70
|
+
operation: operations,
|
|
71
|
+
};
|
|
72
|
+
return [
|
|
73
|
+
{
|
|
74
|
+
displayName: constants_1.VERSIONED_WRITES.V1_DEPRECATION_NOTE,
|
|
75
|
+
name: constants_1.VERSIONED_WRITES.V1_NOTICE_PARAMETER,
|
|
76
|
+
type: 'notice',
|
|
77
|
+
default: '',
|
|
78
|
+
displayOptions: { show: { '@version': [1], operation: operations } },
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
displayName: 'Version',
|
|
82
|
+
name: constants_1.VERSIONED_WRITES.VERSION_PARAMETER,
|
|
83
|
+
type: 'number',
|
|
84
|
+
required: true,
|
|
85
|
+
default: constants_1.VERSIONED_WRITES.DEFAULT_VERSION_EXPRESSION,
|
|
86
|
+
description: 'The version (`__v`) of the item as you read it. Use the output of a Get step. If the item changed since, the node fails with a conflict instead of overwriting it.',
|
|
87
|
+
displayOptions: { show },
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
displayName: 'Version Options',
|
|
91
|
+
name: constants_1.VERSIONED_WRITES.OPTIONS_PARAMETER,
|
|
92
|
+
type: 'collection',
|
|
93
|
+
placeholder: 'Add Option',
|
|
94
|
+
default: {},
|
|
95
|
+
displayOptions: { show },
|
|
96
|
+
options: [
|
|
97
|
+
{
|
|
98
|
+
displayName: 'On Unknown Version',
|
|
99
|
+
name: 'onUnknownVersion',
|
|
100
|
+
type: 'options',
|
|
101
|
+
default: constants_1.VERSIONED_WRITES.ON_UNKNOWN_FAIL,
|
|
102
|
+
description: 'What to do when Version is empty',
|
|
103
|
+
options: [
|
|
104
|
+
{
|
|
105
|
+
name: 'Fail',
|
|
106
|
+
value: constants_1.VERSIONED_WRITES.ON_UNKNOWN_FAIL,
|
|
107
|
+
description: 'Stop with an error: map the __v of a Get step',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: 'Use Latest (Overwrite)',
|
|
111
|
+
value: constants_1.VERSIONED_WRITES.ON_UNKNOWN_USE_LATEST,
|
|
112
|
+
description: 'Read the item and use its current version: the last write wins',
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
];
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=versioned-write.helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versioned-write.helpers.js","sourceRoot":"","sources":["../../utils/versioned-write.helpers.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;AAQH,0CAGC;AAGD,8CAGC;AAeD,kDAyBC;AAOD,sEAqDC;AAlHD,+CAAkD;AAClD,+CAA+C;AAC/C,2CAA+C;AAE/C,iDAAiD;AACjD,SAAgB,eAAe,CAAC,OAA0B;IACzD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;YACd,OAAO,EAAE,4BAAgB,CAAC,0BAA0B;YACpD,WAAW,EACV,oKAAoK;YACrK,cAAc,EAAE,EAAE,IAAI,EAAE;SACxB;QACD;YACC,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE,4BAAgB,CAAC,iBAAiB;YACxC,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,YAAY;YACzB,OAAO,EAAE,EAAE;YACX,cAAc,EAAE,EAAE,IAAI,EAAE;YACxB,OAAO,EAAE;gBACR;oBACC,WAAW,EAAE,oBAAoB;oBACjC,IAAI,EAAE,kBAAkB;oBACxB,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,4BAAgB,CAAC,eAAe;oBACzC,WAAW,EAAE,kCAAkC;oBAC/C,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,4BAAgB,CAAC,eAAe;4BACvC,WAAW,EAAE,+CAA+C;yBAC5D;wBACD;4BACC,IAAI,EAAE,wBAAwB;4BAC9B,KAAK,EAAE,4BAAgB,CAAC,qBAAqB;4BAC7C,WAAW,EAAE,gEAAgE;yBAC7E;qBACD;iBACD;aACD;SACD;KACD,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@posty5/n8n-nodes-posty5",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "N8N community nodes for Posty5 - URL shortening, QR codes, HTML hosting,
|
|
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",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
7
7
|
"n8n-community-node",
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
"url-shortener",
|
|
11
11
|
"qr-code",
|
|
12
12
|
"social-media",
|
|
13
|
+
"online-store",
|
|
14
|
+
"dropshipping",
|
|
13
15
|
"automation"
|
|
14
16
|
],
|
|
15
17
|
"license": "MIT",
|
|
@@ -52,7 +54,9 @@
|
|
|
52
54
|
"dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.js",
|
|
53
55
|
"dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.js",
|
|
54
56
|
"dist/nodes/Posty5SocialPublisherWorkspace/Posty5SocialPublisherWorkspace.node.js",
|
|
55
|
-
"dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.js"
|
|
57
|
+
"dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.js",
|
|
58
|
+
"dist/nodes/Posty5Store/Posty5Store.node.js",
|
|
59
|
+
"dist/nodes/Posty5Trigger/Posty5Trigger.node.js"
|
|
56
60
|
]
|
|
57
61
|
},
|
|
58
62
|
"devDependencies": {
|