@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.
- package/README.md +364 -16
- 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 +8 -0
- package/dist/nodes/Posty5QrCode/Posty5QrCode.node.d.ts.map +1 -1
- package/dist/nodes/Posty5QrCode/Posty5QrCode.node.js +885 -190
- 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 +70 -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 +252 -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 +50 -3
- package/dist/utils/api.helpers.d.ts.map +1 -1
- package/dist/utils/api.helpers.js +170 -7
- package/dist/utils/api.helpers.js.map +1 -1
- package/dist/utils/constants.d.ts +239 -0
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/constants.js +260 -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-render.helpers.d.ts +48 -0
- package/dist/utils/qr-render.helpers.d.ts.map +1 -0
- package/dist/utils/qr-render.helpers.js +172 -0
- package/dist/utils/qr-render.helpers.js.map +1 -0
- package/dist/utils/qr-render.properties.d.ts +8 -0
- package/dist/utils/qr-render.properties.d.ts.map +1 -0
- package/dist/utils/qr-render.properties.js +143 -0
- package/dist/utils/qr-render.properties.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
package/README.md
CHANGED
|
@@ -41,31 +41,61 @@ npm install n8n-nodes-posty5
|
|
|
41
41
|
|
|
42
42
|
1. Add **Posty5 API** credentials
|
|
43
43
|
2. Paste your API key
|
|
44
|
-
3.
|
|
44
|
+
3. Click **Test**. It asks the API which key this is (`GET /api/api-key/current`):
|
|
45
|
+
a good key passes, a wrong or revoked one fails with "Invalid or revoked API
|
|
46
|
+
key". Requests go to `https://api.posty5.com`; there is no base URL to set.
|
|
47
|
+
|
|
48
|
+
Every request the nodes send carries `X-Posty5-Client: posty5-n8n/<package version>`
|
|
49
|
+
(from 4.5.0), which the API uses to tell n8n traffic apart. It is not a
|
|
50
|
+
credential and needs no setup.
|
|
45
51
|
|
|
46
52
|
## 📋 Available Nodes
|
|
47
53
|
|
|
48
54
|
### 1. Posty5 Short Link
|
|
49
55
|
|
|
50
|
-
Create and manage shortened URLs
|
|
56
|
+
Create and manage shortened URLs. Each link counts its visits.
|
|
51
57
|
|
|
52
58
|
**Operations:**
|
|
53
59
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
60
|
+
| Operation | What it sends |
|
|
61
|
+
| --- | --- |
|
|
62
|
+
| Create | Destination URL and **Template** (required), plus Name, Custom Slug and Additional Fields: Tag, Reference ID, Landing Page with its Page Title and Page Description, Android URL, iOS URL. |
|
|
63
|
+
| Get | Retrieve link details, including its visit count and Android/iOS URLs. |
|
|
64
|
+
| Get Analytics | Visits, unique visitors and bot visits over a range, a series by day/week/month, and breakdowns (country, device, OS, browser, referrer, channel = click or scan, language). See [Get Analytics](#get-analytics-short-link-and-qr-code). |
|
|
65
|
+
| Get Statistics | Counts over all your short links: totals, visits per day, links created per day, top 10 links by visits. See [Get Statistics](#get-statistics-short-link-and-qr-code). |
|
|
66
|
+
| List | Filters: Search (name), Destination URL Contains, Tag, Reference ID, Landing Page Enabled. |
|
|
67
|
+
| Update | Reads the link, then saves it with your changes on top: anything you leave alone keeps its stored value. Template may stay empty to keep the current one. Destination URL is under Additional Fields. The Custom Slug cannot be changed. |
|
|
68
|
+
| Create Many | One short link per input item in batched calls (up to 100 rows per request): Destination URL, Name, Custom Slug, Template, Row Fields (Tag, Reference ID), **Defaults** (Template ID, Tag, Reference ID) and Options (Batch Size, Fetch Page Metadata, Fail on Any Row Error). See [Create Many](#create-many-short-link-and-qr-code). |
|
|
69
|
+
| Delete | Remove links. |
|
|
70
|
+
| Set Rules | Changes only the rule sections you add: access (Active From, Expires At, Max Visits, Fallback URL, Password / Remove Password), Routing Rules, Variants, UTM, Pixels. Empty clears a section. |
|
|
71
|
+
| List Tags | Your links' distinct tags (optional Starts With), one item per tag. |
|
|
72
|
+
| Check Health | Queues one destination check of a link (once per 10 minutes; plan-gated). |
|
|
73
|
+
| Create / Get / List / Update / Delete Campaign | Link campaigns (`/api/link-campaign`): name, description, color, UTM, archived. Delete Campaign with *Detach Links* detaches the campaign's links first. |
|
|
74
|
+
|
|
75
|
+
Create and Update also take, under Additional Fields: **Tags** (comma-separated;
|
|
76
|
+
*Tag* is deprecated but still works), **Campaign**, the access fields above,
|
|
77
|
+
**UTM**, **Routing Rules (JSON)**, **Variants (JSON)**, **Pixels** with **Pixels
|
|
78
|
+
Consent Acknowledged** (required the first time), and **Health Monitor**. List
|
|
79
|
+
filters gain Tags and Campaign.
|
|
80
|
+
|
|
81
|
+
> **Secrets:** the Password field is masked in the editor, but n8n stores node
|
|
82
|
+
> parameters inside the workflow. Put the password in an expression that reads
|
|
83
|
+
> a secret (environment variable or a credential-backed node) rather than
|
|
84
|
+
> typing it in, and never share the workflow JSON with a literal password.
|
|
85
|
+
|
|
86
|
+
**Template** is a dropdown of your QR code templates and the public ones; the
|
|
87
|
+
Posty5 API requires one on every API-key create and update. On Update, a Tag,
|
|
88
|
+
Reference ID, Android URL or iOS URL you add but leave empty clears it.
|
|
59
89
|
|
|
60
90
|
**Use Cases:**
|
|
61
91
|
|
|
62
92
|
- Generate tracking links for marketing campaigns
|
|
63
93
|
- Create QR-friendly short URLs
|
|
64
|
-
-
|
|
94
|
+
- Send app users to the app (Android/iOS URLs) and everyone else to the web page
|
|
65
95
|
|
|
66
96
|
### 2. Posty5 QR Code
|
|
67
97
|
|
|
68
|
-
Generate QR codes for
|
|
98
|
+
Generate QR codes for 14 different types.
|
|
69
99
|
|
|
70
100
|
**QR Types:**
|
|
71
101
|
|
|
@@ -76,14 +106,123 @@ Generate QR codes for 7 different types.
|
|
|
76
106
|
- Phone Call - tel: links
|
|
77
107
|
- SMS - Pre-filled text messages
|
|
78
108
|
- Geolocation - GPS coordinates
|
|
109
|
+
- Business Card (vCard) - Name, organization, up to 3 phones, 2 emails, website, address, note
|
|
110
|
+
- Calendar Event - Title, start/end, all day, timezone, location, description, URL
|
|
111
|
+
- WhatsApp - Chat with a pre-filled message
|
|
112
|
+
- Review Link - Google (Place ID or URL), Tripadvisor, Trustpilot, Yelp, Facebook, other
|
|
113
|
+
- Social Profile - 1 profile, or 2-12 profiles on a list page (always dynamic)
|
|
114
|
+
- App Store Links - Android URL and/or iOS URL plus a required Fallback URL (dynamic only)
|
|
115
|
+
- File (PDF or Image) - A PDF, JPEG, PNG or WebP of up to 10 MB from an input binary property (dynamic only, not in Create Many)
|
|
79
116
|
|
|
80
117
|
**Operations:**
|
|
81
118
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
119
|
+
| Operation | What it sends |
|
|
120
|
+
| --- | --- |
|
|
121
|
+
| Create | QR Type, its content fields and **Template** (required), plus Name, **Mode** and Additional Fields: Tag, Reference ID, Landing Page with its Page Title and Page Description. |
|
|
122
|
+
| Get | Retrieve QR code details. |
|
|
123
|
+
| Get Analytics | Scans, unique visitors and bot visits over a range, a series and breakdowns, as on the Short Link node. See [Get Analytics](#get-analytics-short-link-and-qr-code). |
|
|
124
|
+
| Get Statistics | Counts over all your QR codes, as on the Short Link node (top list `topQRCodes`). See [Get Statistics](#get-statistics-short-link-and-qr-code). |
|
|
125
|
+
| List | Filters: Search (name), Tag, Reference ID, Mode. |
|
|
126
|
+
| Update | Reads the QR code, then saves the content you enter with everything else kept. Template may stay empty to keep the current one; Mode defaults to Keep Current. |
|
|
127
|
+
| Create Many | One QR code per input item in batched calls (up to 100 rows per request): QR Type and its fields, Name, Mode, Template, Row Fields (Tag, Reference ID), **Defaults** and Options (Batch Size, Fail on Any Row Error). See [Create Many](#create-many-short-link-and-qr-code). |
|
|
128
|
+
| Delete | Remove QR codes. |
|
|
129
|
+
| Render | Downloads a QR code as a **file** in a binary field (default `data`) for the next node to email, upload or post. **Format** PNG / SVG / PDF; **Print Preset** (loaded from the design catalogue: Sticker 3cm, Business Card, Flyer 5cm, Table Tent 8cm, Poster 15cm, Custom 20–500 mm) with **DPI** 150 / 300 / 600 for PNG; with no preset, **Size (Px)** for PNG and SVG. The json carries `qrCodeId`, `format`, `presetId`, `fileName`, `mimeType`, `fileSize`. |
|
|
130
|
+
| Check Scannability | A report on whether a saved QR code (as rendered) or a template will scan: `verdict` (`good` / `warning` / `poor`), `checks` (contrast, inverted colours, logo coverage, quiet zone, module size, dot scale) and `symbol`. A Print Preset adds the module size in mm. It only warns. |
|
|
131
|
+
| List Templates | `{ _id, name }` rows of **My Templates** or **Public Templates**, filtered by Search, up to Limit: the IDs the Template field takes. |
|
|
132
|
+
|
|
133
|
+
The design comes from the template, and Posty5 builds the encoded text from the
|
|
134
|
+
content fields: the node sends the content as `qrCodeTarget` and nothing else.
|
|
135
|
+
|
|
136
|
+
**Mode.** Static (the default) encodes the content in the image. Dynamic: the
|
|
137
|
+
image points to a Posty5 link, so you can change where it goes later without
|
|
138
|
+
reprinting. Mode is hidden for WiFi, which cannot be dynamic (the API answers
|
|
139
|
+
400). Create sends `mode` only for Dynamic, so saved workflows keep producing
|
|
140
|
+
static codes; Update sends it only when you pick one. Outputs carry `mode` and
|
|
141
|
+
`dynamicSince` (null for a static code).
|
|
142
|
+
|
|
143
|
+
**Scan Rules** (dynamic codes, Starter plan and above): Active From, Expires At,
|
|
144
|
+
Max Scans and Fallback URL (where gated scans go). Shown on Create for Dynamic
|
|
145
|
+
and on Update. On Update, leave it empty to keep the current rules; any rule set
|
|
146
|
+
replaces all of them, and Clear Scan Rules removes them. Outputs carry `access`.
|
|
147
|
+
|
|
148
|
+
**Dynamic-only types.** App Store Links and File have no static form: Mode is
|
|
149
|
+
hidden and the node always sends `mode: dynamic` (Scan Rules are shown on
|
|
150
|
+
Create). A Social Profile code with 2 or more profiles is sent as dynamic too.
|
|
151
|
+
|
|
152
|
+
**File QR codes.** Set *Binary Property* (default `data`) to the input binary
|
|
153
|
+
holding the file, e.g. from an HTTP Request or Read Binary File node. The node
|
|
154
|
+
checks the type and size, asks Posty5 for a signed upload URL
|
|
155
|
+
(`POST /api/qr-code/file/upload-url`), uploads the bytes there (no API key is
|
|
156
|
+
sent to the storage URL), then creates the code with the returned
|
|
157
|
+
`bucketFilePath`. *File Name* overrides the binary's name. On Update, leave
|
|
158
|
+
Binary Property empty to keep the stored file. Create Many does not offer File:
|
|
159
|
+
the bulk route cannot upload.
|
|
160
|
+
|
|
161
|
+
**Render and plans.** Plain PNG up to 2048 px works on every plan. SVG, PDF, a
|
|
162
|
+
print preset, a DPI or a PNG over 2048 px need Starter or higher; otherwise the
|
|
163
|
+
node fails with the API's message (*This feature is not available on your
|
|
164
|
+
current plan.*), or outputs it as `error` with *Continue On Fail*. Rendering
|
|
165
|
+
costs no credits. PDF with no preset prints at Flyer 5cm. The file is named by
|
|
166
|
+
the API (`<name>-<preset or size>.<ext>`).
|
|
167
|
+
|
|
168
|
+
### Create Many (Short Link and QR Code)
|
|
169
|
+
|
|
170
|
+
*Create Many* turns every input item into one row and sends them to
|
|
171
|
+
`POST /api/short-link/bulk` / `POST /api/qr-code/bulk` in chunks of
|
|
172
|
+
**Batch Size** (default and maximum 100): 250 items are 3 requests. Each chunk
|
|
173
|
+
carries `Idempotency-Key: n8n-<executionId>-<nodeName>-<chunk>`, so retrying the
|
|
174
|
+
same execution is not charged twice; a new run creates new records.
|
|
175
|
+
|
|
176
|
+
- Output: one item per input item, in order, paired to it: `status`
|
|
177
|
+
(`created` / `failed`), `id`, `shortUrl` or `qrCodeDownloadURL`, `errors`.
|
|
178
|
+
- A row Posty5 refuses is an output item with `status: "failed"`. Turn on
|
|
179
|
+
**Fail on Any Row Error** to stop the workflow instead (rows already created
|
|
180
|
+
stay created).
|
|
181
|
+
- An item with no Template and no **Defaults → Template ID** fails locally and
|
|
182
|
+
is not sent.
|
|
183
|
+
- A whole-request error (plan gate, credits) stops the node, or with *Continue
|
|
184
|
+
On Fail* is output as `error` on every item of that chunk.
|
|
185
|
+
- QR *Type* and every field are per item, so one run can mix types. Landing
|
|
186
|
+
page and Android/iOS fields are not part of a bulk row.
|
|
187
|
+
|
|
188
|
+
### Get Analytics (Short Link and QR Code)
|
|
189
|
+
|
|
190
|
+
`GET /api/short-link/:id/analytics` or `GET /api/qr-code/:id/analytics`, the
|
|
191
|
+
same numbers the dashboard's Analytics tab and the Posty5 SDKs read. Reading
|
|
192
|
+
analytics costs no credits.
|
|
193
|
+
|
|
194
|
+
| Parameter | What it sends |
|
|
195
|
+
| --- | --- |
|
|
196
|
+
| Short Link ID / QR Code ID | The record to read. |
|
|
197
|
+
| Range | *Last 7 / 30 / 90 Days* (today included, "today" counted in the Time Zone option, else the workflow's time zone) or *Custom* with **From** and **To** dates (both days included). Sent as `from` / `to`, `YYYY-MM-DD`. Default: last 30 days. |
|
|
198
|
+
| Interval | `day` (default), `week` (points start on Monday) or `month` (points start on the 1st). |
|
|
199
|
+
| All Breakdowns My Plan Allows | On (default): `breakdown=all`. Breakdowns your plan does not include are listed in `meta.locked` with the plan that adds them, instead of failing. |
|
|
200
|
+
| Breakdowns | Off the toggle: the ones you pick, comma-joined. None picked: `breakdown` is left out and the API returns every breakdown your plan allows. |
|
|
201
|
+
| Output | *Full Response* (one item, the API answer unchanged) or *Series as Items* (one item per series point, each with `meta`, handy for Google Sheets). |
|
|
202
|
+
| Options → Breakdown Rows | Rows per breakdown, 1–50 (API default 10); the rest is summed into an `other` row. |
|
|
203
|
+
| Options → Time Zone | IANA name, e.g. `Africa/Cairo`. Empty: the workflow's time zone (Workflow Settings → Timezone, default the instance's `GENERIC_TIMEZONE`). Always sent as `tz`, so the API counts days in the same zone the presets use. |
|
|
204
|
+
|
|
205
|
+
The answer is `{ totals: { visits, uniqueVisitors, botVisits }, series: [{ date,
|
|
206
|
+
visits, uniqueVisitors }], breakdowns: { <name>: [{ key, visits, uniqueVisitors }] },
|
|
207
|
+
meta: { from, to, interval, timezone, source, analyticsStartedAt, locked,
|
|
208
|
+
maxHistoryDays } }`. Bots and link-preview fetchers count only in `botVisits`;
|
|
209
|
+
`uniqueVisitors` over several days is the sum of each day's unique visitors.
|
|
210
|
+
Naming a breakdown your plan does not include, or a range further back than it
|
|
211
|
+
allows, fails with the API's own plan message (HTTP 403). An unknown ID fails
|
|
212
|
+
with the API's 400 "The Short Link Is Not Found" / "The QR Code Is Not Found".
|
|
213
|
+
|
|
214
|
+
### Get Statistics (Short Link and QR Code)
|
|
215
|
+
|
|
216
|
+
`GET /api/short-link/statistics` or `GET /api/qr-code/statistics`: counts over
|
|
217
|
+
all your links (or QR codes), with no ID. **Period** is *Today*, *Last 7 Days*,
|
|
218
|
+
*Last 30 Days* (default), *This Month* or *Custom* with **From** / **To**
|
|
219
|
+
(`YYYY-MM-DD`); sent as the API's `period` (`today`, `7d`, `30d`, `month`,
|
|
220
|
+
`custom`). Days are UTC days. The answer is one item, unchanged: `{ range: {
|
|
221
|
+
from, to, period }, data: { totals, daily: [{ _id, createdCount, visitorsSum }],
|
|
222
|
+
topLinks | topQRCodes } }`. `totals` holds the lifetime `totalVisitors` counter
|
|
223
|
+
(it includes visits from before visit analytics launched) and the in-range
|
|
224
|
+
`visitsInRange`, `uniqueVisitorsInRange` and `botVisitsInRange`; `visitorsSum`
|
|
225
|
+
is visits by people that day. Reading statistics costs no credits.
|
|
87
226
|
|
|
88
227
|
### 3. Posty5 HTML Hosting
|
|
89
228
|
|
|
@@ -218,6 +357,13 @@ offer the resumable service.
|
|
|
218
357
|
- Direct video URL
|
|
219
358
|
- Direct video file URL for content you created or have rights to publish
|
|
220
359
|
|
|
360
|
+
**Uploaded images:** **Publish Image** with the **Uploaded Bucket File** source
|
|
361
|
+
takes a file you already uploaded through `generate-upload-urls`, so the node
|
|
362
|
+
cannot reserve a post ID for it. Also pass the `postId` from that response as
|
|
363
|
+
**Upload Post ID**. Posty5 deletes an uploaded file only from the folder of the
|
|
364
|
+
post that owns it, so without the ID the image stays in storage after the post
|
|
365
|
+
is published or deleted.
|
|
366
|
+
|
|
221
367
|
TikTok Direct Post is not exposed as a public repost workflow in these n8n nodes. Do not use TikTok publishing to copy arbitrary third-party videos from TikTok, YouTube, Facebook, Instagram, or any other platform.
|
|
222
368
|
|
|
223
369
|
**Platform-Specific Settings:**
|
|
@@ -227,6 +373,105 @@ TikTok Direct Post is not exposed as a public repost workflow in these n8n nodes
|
|
|
227
373
|
- **Facebook:** Title, description
|
|
228
374
|
- **Instagram:** Description, share to feed
|
|
229
375
|
|
|
376
|
+
**Post-publish comments:**
|
|
377
|
+
|
|
378
|
+
Up to **five** comments per post, through the **Comments** collection. Each one
|
|
379
|
+
carries its own text, its own delay (0-1440 minutes after the post goes live),
|
|
380
|
+
its own optional image and its own per-platform switches.
|
|
381
|
+
|
|
382
|
+
- **25 credits each**, charged per comment that actually posts. A comment aimed
|
|
383
|
+
at no enabled platform is dropped before it is charged.
|
|
384
|
+
- **TikTok is never one of them.** TikTok exposes no public comment-posting
|
|
385
|
+
endpoint, so a comment aimed at it reports `notSupported` rather than failing.
|
|
386
|
+
- **An image is Facebook only.** Instagram's and YouTube's comment endpoints are
|
|
387
|
+
text-only, so an image bound for either is dropped with a reason rather than
|
|
388
|
+
failing the comment.
|
|
389
|
+
|
|
390
|
+
The older single **Comment** collection still works and is marked deprecated. It
|
|
391
|
+
is mapped into the first entry of **Comments** when that is empty, and the two
|
|
392
|
+
are never sent together — the API refuses a request carrying both.
|
|
393
|
+
|
|
394
|
+
### 8. Posty5 Store
|
|
395
|
+
|
|
396
|
+
Dropshipping with a Posty5 store: watch the orders sent to suppliers, act on a
|
|
397
|
+
paused one, import supplier products and follow each part of an order.
|
|
398
|
+
|
|
399
|
+
**Resources and operations:**
|
|
400
|
+
|
|
401
|
+
- **Supplier** — Get Catalogue, Get Many (connections), Test, Get Balance
|
|
402
|
+
- **Supplier Product** — Get Many (browse), Get, Resolve URL, Preview Import, Import, Get Import Status
|
|
403
|
+
- **Product Link** — Get Many, Sync
|
|
404
|
+
- **Supplier Order** — Get Many (Return All or Limit; filters Needs Review, Status, Order ID, Supplier Connection ID, Cursor), Get, Retry (option Accept New Cost), Pay, Cancel
|
|
405
|
+
- **Fulfilment Group** (an order part, addressed by order ID + part key) — Submit (option Pay Now), Fulfil Manually
|
|
406
|
+
- **Order** — Get (option **Split Parts**: one item per part, with its supplier order), Get Many (filter Needs Attention)
|
|
407
|
+
|
|
408
|
+
**Use Cases:**
|
|
409
|
+
|
|
410
|
+
- Alert a channel when a supplier order needs attention, and retry it automatically when the cause is fixable
|
|
411
|
+
- Import supplier products from a spreadsheet of product IDs
|
|
412
|
+
- Push tracking numbers of shipped parts to a sheet or a customer message
|
|
413
|
+
|
|
414
|
+
> **No store trigger yet.** The API does not push supplier-order events to
|
|
415
|
+
> merchants (Posty5 Trigger covers link visits, QR scans and milestones), so a
|
|
416
|
+
> store trigger would only poll. Use a **Schedule Trigger** with **Supplier Order → Get
|
|
417
|
+
> Many** (Example 5) — every 15 minutes matches how often Posty5 itself checks
|
|
418
|
+
> suppliers for updates.
|
|
419
|
+
>
|
|
420
|
+
> **What the node will not do:** connect a supplier, change its credentials or
|
|
421
|
+
> automation, or build a product link. Those stay in the store's control panel —
|
|
422
|
+
> a supplier credential in a node parameter would sit in plain text in the
|
|
423
|
+
> workflow JSON.
|
|
424
|
+
|
|
425
|
+
**Money and permissions:** **Pay** and **Submit → Pay Now** spend the merchant's
|
|
426
|
+
balance at the supplier and need `suppliers.orders.manage`. A second **Submit**
|
|
427
|
+
finds the first supplier order instead of creating another; **Pay** on an order
|
|
428
|
+
already paid at the supplier records it and does not pay again. **Import** is
|
|
429
|
+
charged like adding products; nothing else here is charged. **Retry**, **Pay** and
|
|
430
|
+
**Submit** answer a paused outcome as an error — use *Continue On Fail* to keep
|
|
431
|
+
the reason in the item.
|
|
432
|
+
|
|
433
|
+
**Pagination:** each **Get Many** outputs one item per row. **Supplier Product
|
|
434
|
+
→ Get Many** (the supplier's catalogue) takes **Page** and **Limit**.
|
|
435
|
+
**Supplier Order → Get Many** and **Order → Get Many** page by cursor: they take
|
|
436
|
+
a **Limit** (sent as `pageSize`) and a **Cursor** filter, and put `nextCursor`
|
|
437
|
+
on the last row they return, so the next run can continue from it. **Supplier
|
|
438
|
+
Order → Get Many** also has **Return All**, which follows `nextCursor` 100 rows
|
|
439
|
+
at a time until the API says there is no more (`hasMore` false).
|
|
440
|
+
|
|
441
|
+
**Errors:** **Product Link → Sync** runs at most once a minute per link; a second
|
|
442
|
+
run inside that minute fails with `Posty5 API Error: This product was synced a
|
|
443
|
+
moment ago…` (an HTTP 400, not a 429) — wait a minute and run again. A 403 on
|
|
444
|
+
**Pay** or **Submit → Pay Now** means the API key lacks
|
|
445
|
+
`suppliers.orders.manage`; elsewhere, check that the store's plan includes
|
|
446
|
+
dropshipping. **Supplier Product → Get Many** takes at most 48 rows a page and
|
|
447
|
+
**Supplier Order → Get Many** at most 100; the API refuses a larger Limit.
|
|
448
|
+
|
|
449
|
+
### 9. Posty5 Trigger
|
|
450
|
+
|
|
451
|
+
Starts a workflow when a short link is visited, a QR code is scanned or a
|
|
452
|
+
visit/scan milestone is reached. Activating the workflow registers a Posty5
|
|
453
|
+
webhook endpoint for the node's URL; deactivating it removes the endpoint.
|
|
454
|
+
|
|
455
|
+
| Setting | Meaning |
|
|
456
|
+
| --- | --- |
|
|
457
|
+
| Events | *Short Link Visited*, *QR Code Scanned*, *Short Link Visit Milestone*, *QR Code Scan Milestone* |
|
|
458
|
+
| Links | All my links and QR codes, or specific short link / QR code IDs (comma-separated) |
|
|
459
|
+
| Options | Include Bot Visits (off), Milestones (`100,1000`, up to 10), Delivery (each event, or batched every 1 min / 5 min / 1 h), Split Batches Into Items (on) |
|
|
460
|
+
|
|
461
|
+
- **n8n must be reachable over public HTTPS**: n8n Cloud, or self-hosted with
|
|
462
|
+
`WEBHOOK_URL` set to a public HTTPS address (or a tunnel). Posty5 refuses
|
|
463
|
+
private or plain-HTTP URLs.
|
|
464
|
+
- Every request is verified (Standard Webhooks signature, 5-minute replay
|
|
465
|
+
window) before the workflow runs; a forged one gets 401.
|
|
466
|
+
- **Static QR codes never produce events** — the image holds the content
|
|
467
|
+
itself. A scan of a short link's QR image arrives as *Short Link Visited* with
|
|
468
|
+
`channel: "qr"`; dynamic QR codes send *QR Code Scanned*.
|
|
469
|
+
- Each item is the event envelope (`id`, `type`, `createdAt`, `data`) plus
|
|
470
|
+
`webhookId` for de-duplication.
|
|
471
|
+
- Rotating the endpoint's secret in the dashboard breaks verification: rotate
|
|
472
|
+
by deactivating and re-activating the workflow. An endpoint Posty5 disabled
|
|
473
|
+
after repeated failures is recreated on the next activation.
|
|
474
|
+
|
|
230
475
|
## 💡 Workflow Examples
|
|
231
476
|
|
|
232
477
|
### Example 1: URL Shortener → QR Code
|
|
@@ -240,7 +485,9 @@ Posty5 Short Link (Create)
|
|
|
240
485
|
↓
|
|
241
486
|
Posty5 QR Code (Create URL type)
|
|
242
487
|
↓
|
|
243
|
-
|
|
488
|
+
Posty5 QR Code (Render, Format PDF, Print Preset Flyer 5cm; QR Code ID = {{ $json._id }})
|
|
489
|
+
↓
|
|
490
|
+
Send Email (Attachments: data)
|
|
244
491
|
```
|
|
245
492
|
|
|
246
493
|
### Example 2: Form Submission → Email Notification
|
|
@@ -292,6 +539,85 @@ Posty5 Short Link (Create)
|
|
|
292
539
|
Slack Notification (with short URL)
|
|
293
540
|
```
|
|
294
541
|
|
|
542
|
+
### Example 5: Needs-Attention Alerts
|
|
543
|
+
|
|
544
|
+
Hear about a paused supplier order, and retry the fixable ones:
|
|
545
|
+
|
|
546
|
+
```
|
|
547
|
+
Schedule Trigger (every 15 minutes)
|
|
548
|
+
↓
|
|
549
|
+
Posty5 Store (Supplier Order → Get Many, Needs Review = true)
|
|
550
|
+
↓
|
|
551
|
+
Filter (updatedAt within the last 15 minutes)
|
|
552
|
+
↓
|
|
553
|
+
Slack (order number, reviewReason, reviewMessage)
|
|
554
|
+
↓
|
|
555
|
+
IF (reviewReason = connectionUnhealthy)
|
|
556
|
+
↓
|
|
557
|
+
Posty5 Store (Supplier Order → Retry)
|
|
558
|
+
```
|
|
559
|
+
|
|
560
|
+
### Example 6: Import From a Spreadsheet
|
|
561
|
+
|
|
562
|
+
```
|
|
563
|
+
Google Sheets (rows of supplier product IDs)
|
|
564
|
+
↓
|
|
565
|
+
Posty5 Store (Supplier Product → Preview Import)
|
|
566
|
+
↓
|
|
567
|
+
IF (no row has duplicateOf)
|
|
568
|
+
↓
|
|
569
|
+
Posty5 Store (Supplier Product → Import)
|
|
570
|
+
↓
|
|
571
|
+
IF (jobId is set) → Wait → Posty5 Store (Supplier Product → Get Import Status)
|
|
572
|
+
↓
|
|
573
|
+
Email (rows with state = failed)
|
|
574
|
+
```
|
|
575
|
+
|
|
576
|
+
### Example 7: Weekly Top Countries to Slack
|
|
577
|
+
|
|
578
|
+
```
|
|
579
|
+
Schedule Trigger (every Monday)
|
|
580
|
+
↓
|
|
581
|
+
Posty5 Short Link (Get Analytics: Last 7 Days, Breakdowns = Country, Breakdown Rows = 5)
|
|
582
|
+
↓
|
|
583
|
+
Slack (post totals.visits and breakdowns.country)
|
|
584
|
+
```
|
|
585
|
+
|
|
586
|
+
### Example 8: Tracking Updates Per Part
|
|
587
|
+
|
|
588
|
+
```
|
|
589
|
+
Schedule Trigger (hourly)
|
|
590
|
+
↓
|
|
591
|
+
Posty5 Store (Order → Get Many, Status = processing)
|
|
592
|
+
↓
|
|
593
|
+
Posty5 Store (Order → Get, Split Parts = true)
|
|
594
|
+
↓
|
|
595
|
+
IF (status = shipped and shipment.trackingNumber is set)
|
|
596
|
+
↓
|
|
597
|
+
Google Sheets (append order number, part label, tracking number)
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
A supplier order carries the delivery address only when the API key's owner may
|
|
601
|
+
see customer data. Forwarding the output to a third-party channel forwards it too.
|
|
602
|
+
|
|
603
|
+
### Example 9: Slack Message on Click
|
|
604
|
+
|
|
605
|
+
```
|
|
606
|
+
Posty5 Trigger (Short Link Visited, specific short link)
|
|
607
|
+
↓
|
|
608
|
+
Slack → Send Message ("{{$json.data.target.name}} opened from {{$json.data.visit.country}}")
|
|
609
|
+
```
|
|
610
|
+
|
|
611
|
+
### Example 10: Sheet Rows → Short Links (Create Many)
|
|
612
|
+
|
|
613
|
+
```
|
|
614
|
+
Google Sheets → Get Rows (800 rows)
|
|
615
|
+
↓
|
|
616
|
+
Posty5 Short Link → Create Many (Destination URL = {{$json.url}}, Defaults → Template ID)
|
|
617
|
+
↓ 8 API calls, one output item per row
|
|
618
|
+
Google Sheets → Update Row (shortUrl, status)
|
|
619
|
+
```
|
|
620
|
+
|
|
295
621
|
## 🔧 Advanced Features
|
|
296
622
|
|
|
297
623
|
### Pagination
|
|
@@ -347,6 +673,27 @@ scheduledPublishTime: 'now';
|
|
|
347
673
|
scheduledPublishTime: new Date('2024-12-31T10:00:00Z');
|
|
348
674
|
```
|
|
349
675
|
|
|
676
|
+
## 🔒 Versioned writes (5.0.0)
|
|
677
|
+
|
|
678
|
+
Version 2 of the Short Link, QR Code, HTML Hosting, Form Submission and Social
|
|
679
|
+
Publisher Post nodes protects updates and deletes from overwriting someone
|
|
680
|
+
else's change:
|
|
681
|
+
|
|
682
|
+
- **Version** (required on update, delete, change status, reschedule, and on
|
|
683
|
+
Short Link's Set Rules, Update Campaign and Delete Campaign): the
|
|
684
|
+
`__v` of the item as you read it. It defaults to `{{ $json.__v }}`, so a
|
|
685
|
+
Get → Update chain works as is. It is sent as `If-Match`.
|
|
686
|
+
- If the item changed since, the node fails with a `409` conflict:
|
|
687
|
+
*"The item changed since it was read (current version N). Get it again, then
|
|
688
|
+
update."*
|
|
689
|
+
- **Version Options > On Unknown Version**: `Fail` (default) or
|
|
690
|
+
`Use Latest (Overwrite)`, which reads the item and uses its current version
|
|
691
|
+
(last write wins, your explicit choice).
|
|
692
|
+
- **v1 nodes (legacy, deprecated)** show no new field, only a notice on their
|
|
693
|
+
write operations: they read the item first and overwrite it, exactly as
|
|
694
|
+
before.
|
|
695
|
+
- Every request identifies itself with `X-Posty5-Client: posty5-n8n/<version>`.
|
|
696
|
+
|
|
350
697
|
## 🐛 Error Handling
|
|
351
698
|
|
|
352
699
|
All nodes support N8N's "Continue on Fail" option:
|
|
@@ -362,7 +709,8 @@ All nodes support N8N's "Continue on Fail" option:
|
|
|
362
709
|
Common errors:
|
|
363
710
|
|
|
364
711
|
- **401 Unauthorized** - Invalid API key
|
|
365
|
-
- **
|
|
712
|
+
- **403 Forbidden** - On Get Analytics: a breakdown or range your plan does not include (the API's message is shown as is)
|
|
713
|
+
- **404 Not Found** - Resource doesn't exist (Get Analytics answers an unknown ID with a 400 and the API's not-found message)
|
|
366
714
|
- **429 Too Many Requests** - Rate limit exceeded
|
|
367
715
|
- **422 Validation Error** - Invalid parameters
|
|
368
716
|
|
|
@@ -5,6 +5,10 @@ export declare class Posty5Api implements ICredentialType {
|
|
|
5
5
|
documentationUrl: string;
|
|
6
6
|
properties: INodeProperties[];
|
|
7
7
|
authenticate: IAuthenticateGeneric;
|
|
8
|
+
/**
|
|
9
|
+
* Asks the API which key this is. A credential test has no node defaults to
|
|
10
|
+
* borrow, so `baseURL` is set here, from the constant the nodes use.
|
|
11
|
+
*/
|
|
8
12
|
test: ICredentialTestRequest;
|
|
9
13
|
}
|
|
10
14
|
//# sourceMappingURL=Posty5Api.credentials.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Posty5Api.credentials.d.ts","sourceRoot":"","sources":["../../credentials/Posty5Api.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,oBAAoB,
|
|
1
|
+
{"version":3,"file":"Posty5Api.credentials.d.ts","sourceRoot":"","sources":["../../credentials/Posty5Api.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,oBAAoB,EAGpB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,MAAM,cAAc,CAAC;AAQtB,qBAAa,SAAU,YAAW,eAAe;IAChD,IAAI,SAAe;IACnB,WAAW,SAAgB;IAC3B,gBAAgB,SAA+B;IAC/C,UAAU,EAAE,eAAe,EAAE,CAa3B;IAEF,YAAY,EAAE,oBAAoB,CAOhC;IAEF;;;OAGG;IACH,IAAI,EAAE,sBAAsB,CA8B1B;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Posty5Api = void 0;
|
|
4
|
+
const constants_1 = require("../utils/constants");
|
|
4
5
|
class Posty5Api {
|
|
5
6
|
constructor() {
|
|
6
7
|
this.name = 'posty5Api';
|
|
@@ -27,15 +28,40 @@ class Posty5Api {
|
|
|
27
28
|
},
|
|
28
29
|
},
|
|
29
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* Asks the API which key this is. A credential test has no node defaults to
|
|
33
|
+
* borrow, so `baseURL` is set here, from the constant the nodes use.
|
|
34
|
+
*/
|
|
30
35
|
this.test = {
|
|
31
36
|
request: {
|
|
32
|
-
|
|
37
|
+
baseURL: constants_1.POSTY5_API_BASE_URL,
|
|
38
|
+
url: constants_1.API_ENDPOINTS.API_KEY_CURRENT,
|
|
33
39
|
method: 'GET',
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
pageSize: 1,
|
|
40
|
+
headers: {
|
|
41
|
+
[constants_1.Posty5ClientConst.HEADER]: constants_1.Posty5ClientConst.VALUE,
|
|
37
42
|
},
|
|
38
43
|
},
|
|
44
|
+
// n8n-workflow types `rules` as a list of one kind, but its credential tester
|
|
45
|
+
// reads every rule by `type`: `responseCode` when the request fails,
|
|
46
|
+
// `responseSuccessBody` when it succeeds (failing when the value at `key`
|
|
47
|
+
// equals `value`). One list carrying both is what gives this test both checks.
|
|
48
|
+
rules: [
|
|
49
|
+
{
|
|
50
|
+
type: 'responseCode',
|
|
51
|
+
properties: {
|
|
52
|
+
value: constants_1.CredentialTestConst.INVALID_KEY_STATUS,
|
|
53
|
+
message: constants_1.CredentialTestConst.INVALID_KEY_MESSAGE,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
type: 'responseSuccessBody',
|
|
58
|
+
properties: {
|
|
59
|
+
key: constants_1.CredentialTestConst.KEY_ID_PATH,
|
|
60
|
+
value: undefined,
|
|
61
|
+
message: constants_1.CredentialTestConst.NO_KEY_ID_MESSAGE,
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
],
|
|
39
65
|
};
|
|
40
66
|
}
|
|
41
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Posty5Api.credentials.js","sourceRoot":"","sources":["../../credentials/Posty5Api.credentials.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Posty5Api.credentials.js","sourceRoot":"","sources":["../../credentials/Posty5Api.credentials.ts"],"names":[],"mappings":";;;AAQA,kDAK4B;AAE5B,MAAa,SAAS;IAAtB;QACC,SAAI,GAAG,WAAW,CAAC;QACnB,gBAAW,GAAG,YAAY,CAAC;QAC3B,qBAAgB,GAAG,2BAA2B,CAAC;QAC/C,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EACV,yFAAyF;aAC1F;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,WAAW,EAAE,0BAA0B;iBACvC;aACD;SACD,CAAC;QAEF;;;WAGG;QACH,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,+BAAmB;gBAC5B,GAAG,EAAE,yBAAa,CAAC,eAAe;gBAClC,MAAM,EAAE,KAAK;gBACb,OAAO,EAAE;oBACR,CAAC,6BAAiB,CAAC,MAAM,CAAC,EAAE,6BAAiB,CAAC,KAAK;iBACnD;aACD;YACD,8EAA8E;YAC9E,qEAAqE;YACrE,0EAA0E;YAC1E,+EAA+E;YAC/E,KAAK,EAAE;gBACN;oBACC,IAAI,EAAE,cAAc;oBACpB,UAAU,EAAE;wBACX,KAAK,EAAE,+BAAmB,CAAC,kBAAkB;wBAC7C,OAAO,EAAE,+BAAmB,CAAC,mBAAmB;qBAChD;iBACuC;gBACzC;oBACC,IAAI,EAAE,qBAAqB;oBAC3B,UAAU,EAAE;wBACX,GAAG,EAAE,+BAAmB,CAAC,WAAW;wBACpC,KAAK,EAAE,SAAS;wBAChB,OAAO,EAAE,+BAAmB,CAAC,iBAAiB;qBAC9C;iBAC8C;aACb;SACpC,CAAC;IACH,CAAC;CAAA;AA/DD,8BA+DC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Posty5FormSubmission.node.d.ts","sourceRoot":"","sources":["../../../nodes/Posty5FormSubmission/Posty5FormSubmission.node.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EACpB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Posty5FormSubmission.node.d.ts","sourceRoot":"","sources":["../../../nodes/Posty5FormSubmission/Posty5FormSubmission.node.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EACpB,MAAM,cAAc,CAAC;AAMtB,qBAAa,oBAAqB,YAAW,SAAS;IACrD,WAAW,EAAE,oBAAoB,CAiN/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CA4FvE"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Posty5FormSubmission = void 0;
|
|
4
4
|
const api_helpers_1 = require("../../utils/api.helpers");
|
|
5
|
+
const versioned_write_helpers_1 = require("../../utils/versioned-write.helpers");
|
|
5
6
|
const constants_1 = require("../../utils/constants");
|
|
6
7
|
class Posty5FormSubmission {
|
|
7
8
|
constructor() {
|
|
@@ -10,9 +11,10 @@ class Posty5FormSubmission {
|
|
|
10
11
|
name: 'posty5FormSubmission',
|
|
11
12
|
icon: 'file:posty5.svg',
|
|
12
13
|
group: ['transform'],
|
|
13
|
-
version: 1,
|
|
14
|
+
version: [1, 2],
|
|
15
|
+
defaultVersion: 2,
|
|
14
16
|
subtitle: '={{$parameter["operation"]}}',
|
|
15
|
-
description: 'Manage form submissions from HTML pages',
|
|
17
|
+
description: 'Manage form submissions from HTML pages. v1 is legacy: update and delete overwrite (last write wins)',
|
|
16
18
|
defaults: {
|
|
17
19
|
name: 'Posty5 Form Submission',
|
|
18
20
|
},
|
|
@@ -208,6 +210,7 @@ class Posty5FormSubmission {
|
|
|
208
210
|
},
|
|
209
211
|
],
|
|
210
212
|
},
|
|
213
|
+
...(0, versioned_write_helpers_1.buildVersionedWriteProperties)(['changeStatus']),
|
|
211
214
|
],
|
|
212
215
|
};
|
|
213
216
|
}
|
|
@@ -248,6 +251,7 @@ class Posty5FormSubmission {
|
|
|
248
251
|
method: 'PUT',
|
|
249
252
|
endpoint: `${constants_1.API_ENDPOINTS.FORM_SUBMISSION}/${submissionId}/status`,
|
|
250
253
|
body,
|
|
254
|
+
version: await (0, versioned_write_helpers_1.resolveWriteVersion)(this, apiKey, i, `${constants_1.API_ENDPOINTS.FORM_SUBMISSION}/${submissionId}`),
|
|
251
255
|
});
|
|
252
256
|
}
|
|
253
257
|
else if (operation === 'list') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Posty5FormSubmission.node.js","sourceRoot":"","sources":["../../../nodes/Posty5FormSubmission/Posty5FormSubmission.node.ts"],"names":[],"mappings":";;;AAMA,yDAA+E;AAC/E,qDAAsD;AAGtD,MAAa,oBAAoB;IAAjC;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,sBAAsB;YAC5B,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"Posty5FormSubmission.node.js","sourceRoot":"","sources":["../../../nodes/Posty5FormSubmission/Posty5FormSubmission.node.ts"],"names":[],"mappings":";;;AAMA,yDAA+E;AAC/E,iFAAyG;AACzG,qDAAsD;AAGtD,MAAa,oBAAoB;IAAjC;QACC,gBAAW,GAAyB;YACnC,WAAW,E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E,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE;wBACzC,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;qBACvB,CAAC,CAAC;oBACH,SAAS;gBACV,CAAC;gBACD,MAAM,KAAK,CAAC;YACb,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AAhTD,oDAgTC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Posty5HtmlHosting.node.d.ts","sourceRoot":"","sources":["../../../nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EACpB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Posty5HtmlHosting.node.d.ts","sourceRoot":"","sources":["../../../nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EACpB,MAAM,cAAc,CAAC;AAMtB,qBAAa,iBAAkB,YAAW,SAAS;IAClD,WAAW,EAAE,oBAAoB,CAsR/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CA2LvE"}
|