n8n-nodes-listbee 0.18.1 → 0.19.1

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 (33) hide show
  1. package/README.md +27 -40
  2. package/dist/nodes/ListBee/ListBee.node.js +6 -9
  3. package/dist/nodes/ListBee/ListBee.node.js.map +1 -1
  4. package/dist/nodes/ListBee/resources/account.js +15 -0
  5. package/dist/nodes/ListBee/resources/account.js.map +1 -1
  6. package/dist/nodes/ListBee/resources/api_keys.d.ts +3 -0
  7. package/dist/nodes/ListBee/resources/api_keys.js +59 -0
  8. package/dist/nodes/ListBee/resources/api_keys.js.map +1 -0
  9. package/dist/nodes/ListBee/resources/bootstrap.js +22 -30
  10. package/dist/nodes/ListBee/resources/bootstrap.js.map +1 -1
  11. package/dist/nodes/ListBee/resources/events.d.ts +3 -0
  12. package/dist/nodes/ListBee/resources/events.js +99 -0
  13. package/dist/nodes/ListBee/resources/events.js.map +1 -0
  14. package/dist/nodes/ListBee/resources/index.d.ts +2 -3
  15. package/dist/nodes/ListBee/resources/index.js +7 -10
  16. package/dist/nodes/ListBee/resources/index.js.map +1 -1
  17. package/dist/nodes/ListBee/resources/listing.js +121 -202
  18. package/dist/nodes/ListBee/resources/listing.js.map +1 -1
  19. package/dist/nodes/ListBee/resources/order.js +59 -50
  20. package/dist/nodes/ListBee/resources/order.js.map +1 -1
  21. package/dist/nodes/ListBee/utils/fields.js +0 -3
  22. package/dist/nodes/ListBee/utils/fields.js.map +1 -1
  23. package/dist/package.json +1 -1
  24. package/package.json +1 -1
  25. package/dist/nodes/ListBee/resources/customer.d.ts +0 -3
  26. package/dist/nodes/ListBee/resources/customer.js +0 -107
  27. package/dist/nodes/ListBee/resources/customer.js.map +0 -1
  28. package/dist/nodes/ListBee/resources/file.d.ts +0 -3
  29. package/dist/nodes/ListBee/resources/file.js +0 -91
  30. package/dist/nodes/ListBee/resources/file.js.map +0 -1
  31. package/dist/nodes/ListBee/resources/webhook.d.ts +0 -3
  32. package/dist/nodes/ListBee/resources/webhook.js +0 -298
  33. package/dist/nodes/ListBee/resources/webhook.js.map +0 -1
package/README.md CHANGED
@@ -27,36 +27,37 @@ Starts workflows when ListBee events occur. Automatically registers and cleans u
27
27
 
28
28
  ## Operations
29
29
 
30
+ 25 operations across 9 resources.
31
+
30
32
  ### Account
31
33
 
32
34
  | Operation | Description |
33
35
  |-----------|-------------|
34
36
  | Get | Get account status, plan, fee rate, and operational readiness |
35
- | Update | Update account settings (GA Measurement ID, order notifications) |
37
+ | Update | Update account settings (GA Measurement ID, order notifications, events callback URL) |
36
38
  | Delete | Permanently delete the account and all associated data |
37
39
 
38
- ### Bootstrap
39
-
40
- Public endpoints — no API key required. Use these to automate account creation and onboarding flows.
40
+ ### API Keys
41
41
 
42
42
  | Operation | Description |
43
43
  |-----------|-------------|
44
- | Start | Begin account bootstrap sends a verification OTP to the email address |
45
- | Verify | Verify the OTP code — returns an API key and session ID on success |
46
- | Complete | Complete the bootstrap flow using the session ID from the Verify step |
44
+ | Self Revoke | Permanently revoke the API key used to authenticate this request |
47
45
 
48
- ### Customer
46
+ ### Bootstrap
47
+
48
+ Public endpoints — no API key required. Use these to automate account creation and onboarding flows.
49
49
 
50
50
  | Operation | Description |
51
51
  |-----------|-------------|
52
- | Get | Get a customer by ID |
53
- | Get Many | List customers, optionally filtered by email or creation date |
52
+ | Start | Begin account bootstrap — sends a verification OTP to the email address |
53
+ | Verify | Verify the OTP code (`bootstrap_token` + `otp_code`) returns `api_key`, `account_id`, and `stripe_onboarding_url` |
54
+ | Poll | Check bootstrap status by account ID — returns readiness and Stripe onboarding state |
54
55
 
55
- ### File
56
+ ### Events
56
57
 
57
58
  | Operation | Description |
58
59
  |-----------|-------------|
59
- | Upload | Upload a file and receive a token for use as a listing cover image or deliverable |
60
+ | List | List all events, optionally filtered by type, listing ID, or order ID |
60
61
 
61
62
  ### Listing
62
63
 
@@ -64,14 +65,14 @@ Public endpoints — no API key required. Use these to automate account creation
64
65
  |-----------|-------------|
65
66
  | Create | Create a listing with product page and payment link |
66
67
  | Get | Get a listing by ID |
67
- | Get Many | List all listings, optionally filtered by status (draft/published) |
68
+ | Get Many | List all listings, optionally filtered by status (draft/published/archived) |
68
69
  | Update | Update listing fields (name, price, description, cover, and more) |
69
70
  | Delete | Delete a listing permanently |
70
71
  | Publish | Make a draft listing publicly visible |
71
- | Set Deliverables | Replace the digital deliverables on a listing (file, URL, or text) |
72
- | Remove Deliverables | Remove all deliverables from a listing |
72
+ | Unpublish | Revert a published listing back to draft state |
73
+ | Archive | Move a published listing to archived state |
73
74
 
74
- **Create and Update support:** name, price, description, tagline, CTA, compare-at price, cover image, cover blur, highlights, badges, rating, rating count, stock, reviews, FAQs, checkout schema, UTM parameters, metadata, and fulfillment URL.
75
+ **Create and Update support:** name, price, description, tagline, CTA, compare-at price, cover image, cover blur, highlights, badges, rating, rating count, deliverable (single), fulfillment mode, agent callback URL, signing secret, reviews, FAQs, checkout schema, UTM parameters, and metadata.
75
76
 
76
77
  ### Order
77
78
 
@@ -79,7 +80,8 @@ Public endpoints — no API key required. Use these to automate account creation
79
80
  |-----------|-------------|
80
81
  | Get | Get an order by ID |
81
82
  | Get Many | List orders, optionally filtered by status, listing, buyer email, or date range |
82
- | Fulfill | Mark an order as fulfilled, optionally pushing digital deliverables to the buyer |
83
+ | Fulfill | Mark an order as fulfilled, optionally pushing a single deliverable to the buyer |
84
+ | Redeliver | Re-send the delivery to the buyer (resends access grant or deliverable) |
83
85
  | Refund | Issue a full refund for a paid order |
84
86
 
85
87
  ### Plan
@@ -88,12 +90,6 @@ Public endpoints — no API key required. Use these to automate account creation
88
90
  |-----------|-------------|
89
91
  | List | List all available plans with pricing (public endpoint, no authentication required) |
90
92
 
91
- ### Utility
92
-
93
- | Operation | Description |
94
- |-----------|-------------|
95
- | Ping | Check API connectivity and verify API key validity |
96
-
97
93
  ### Stripe
98
94
 
99
95
  | Operation | Description |
@@ -101,21 +97,15 @@ Public endpoints — no API key required. Use these to automate account creation
101
97
  | Connect | Get a Stripe Connect onboarding URL for guided account setup |
102
98
  | Disconnect | Remove Stripe configuration from your account |
103
99
 
104
- ### Webhook
100
+ ### Utility
105
101
 
106
102
  | Operation | Description |
107
103
  |-----------|-------------|
108
- | Create | Register a new webhook endpoint with event subscriptions |
109
- | Get Many | List all webhook subscriptions |
110
- | Update | Modify webhook URL, name, events, or enabled state |
111
- | Delete | Remove a webhook endpoint |
112
- | Get Events | View delivery logs for a webhook, filterable by status |
113
- | Retry Event | Re-send a previously failed or pending webhook delivery |
114
- | Test | Send a test event to a webhook endpoint |
104
+ | Ping | Check API connectivity and verify API key validity |
115
105
 
116
106
  ## Trigger Events
117
107
 
118
- The ListBee Trigger node supports all 12 event types:
108
+ The ListBee Trigger node supports all 10 event types:
119
109
 
120
110
  | Event | Description |
121
111
  |-------|-------------|
@@ -128,9 +118,7 @@ The ListBee Trigger node supports all 12 event types:
128
118
  | `listing.created` | A new listing was created |
129
119
  | `listing.updated` | A listing was updated |
130
120
  | `listing.published` | A listing was published and made public |
131
- | `listing.out_of_stock` | A listing ran out of stock |
132
121
  | `listing.deleted` | A listing was deleted |
133
- | `customer.created` | A new customer record was created |
134
122
 
135
123
  Leave the events field empty to subscribe to all events.
136
124
 
@@ -144,16 +132,15 @@ ListBee supports two fulfillment modes:
144
132
 
145
133
  Typical managed fulfillment workflow:
146
134
 
147
- 1. **File: Upload** → get a file token
148
- 2. **Listing: Create** with name and price get a listing ID
149
- 3. **Listing: Set Deliverables** with the file token
150
- 4. **Listing: Publish** → listing goes live with a checkout URL
135
+ 1. **Listing: Create** with name, price, and `deliverable` (URL or text) → get a listing ID
136
+ 2. **Listing: Publish** listing goes live with a checkout URL
137
+ 3. ListBee delivers the deliverable to the buyer automatically after payment
151
138
 
152
139
  Typical external fulfillment workflow:
153
140
 
154
- 1. **ListBee Trigger** (`order.paid`) → workflow starts
141
+ 1. **ListBee Trigger** (`order.paid`) → workflow starts, or use `agent_callback_url` on the listing
155
142
  2. Generate or retrieve content
156
- 3. **Order: Fulfill** → push deliverables to ListBee for the buyer
143
+ 3. **Order: Fulfill** → push a single deliverable to ListBee for the buyer
157
144
 
158
145
  ## Pagination
159
146
 
@@ -40,26 +40,25 @@ class ListBee {
40
40
  noDataExpression: true,
41
41
  options: [
42
42
  { name: 'Account', value: 'account' },
43
+ { name: 'API Key', value: 'apiKeys' },
43
44
  { name: 'Bootstrap', value: 'bootstrap' },
44
- { name: 'Customer', value: 'customer' },
45
- { name: 'File', value: 'file' },
45
+ { name: 'Event', value: 'events' },
46
46
  { name: 'Listing', value: 'listing' },
47
47
  { name: 'Order', value: 'order' },
48
48
  { name: 'Plan', value: 'plan' },
49
49
  { name: 'Stripe', value: 'stripe' },
50
50
  { name: 'Utility', value: 'utility' },
51
- { name: 'Webhook', value: 'webhook' },
52
51
  ],
53
52
  default: 'listing',
54
53
  },
55
54
  ...resources_1.accountOperations,
56
55
  ...resources_1.accountFields,
56
+ ...resources_1.apiKeysOperations,
57
+ ...resources_1.apiKeysFields,
57
58
  ...resources_1.bootstrapOperations,
58
59
  ...resources_1.bootstrapFields,
59
- ...resources_1.customerOperations,
60
- ...resources_1.customerFields,
61
- ...resources_1.fileOperations,
62
- ...resources_1.fileFields,
60
+ ...resources_1.eventsOperations,
61
+ ...resources_1.eventsFields,
63
62
  ...resources_1.listingOperations,
64
63
  ...resources_1.listingFields,
65
64
  ...resources_1.orderOperations,
@@ -70,8 +69,6 @@ class ListBee {
70
69
  ...resources_1.stripeFields,
71
70
  ...resources_1.utilityOperations,
72
71
  ...resources_1.utilityFields,
73
- ...resources_1.webhookOperations,
74
- ...resources_1.webhookFields,
75
72
  ],
76
73
  };
77
74
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ListBee.node.js","sourceRoot":"","sources":["../../../nodes/ListBee/ListBee.node.ts"],"names":[],"mappings":";;;AAAA,+CAIsB;AAEtB,2CAqBqB;AAErB,MAAa,OAAO;IAApB;QACE,gBAAW,GAAyB;YAClC,W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AAS,EAAE,KAAK,EAAE,SAAS,EAAE;wBACrC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;qBACtC;oBACD,OAAO,EAAE,SAAS;iBACnB;gBACD,GAAG,6BAAiB;gBACpB,GAAG,yBAAa;gBAChB,GAAG,+BAAmB;gBACtB,GAAG,2BAAe;gBAClB,GAAG,8BAAkB;gBACrB,GAAG,0BAAc;gBACjB,GAAG,0BAAc;gBACjB,GAAG,sBAAU;gBACb,GAAG,6BAAiB;gBACpB,GAAG,yBAAa;gBAChB,GAAG,2BAAe;gBAClB,GAAG,uBAAW;gBACd,GAAG,0BAAc;gBACjB,GAAG,sBAAU;gBACb,GAAG,4BAAgB;gBACnB,GAAG,wBAAY;gBACf,GAAG,6BAAiB;gBACpB,GAAG,yBAAa;gBAChB,GAAG,6BAAiB;gBACpB,GAAG,yBAAa;aACjB;SACF,CAAC;IACJ,CAAC;CAAA;AAtED,0BAsEC"}
1
+ {"version":3,"file":"ListBee.node.js","sourceRoot":"","sources":["../../../nodes/ListBee/ListBee.node.ts"],"names":[],"mappings":";;;AAAA,+CAIsB;AAEtB,2CAmBqB;AAErB,MAAa,OAAO;IAApB;QACE,gBAAW,GAAyB;YAClC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,CAAC,OAAO,CAAC;YAChB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,sDAAsD;YACnE,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;YACD,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE;gBACX;oBACE,IAAI,EAAE,YAAY;oBAClB,QAAQ,EAAE,IAAI;iBACf;aACF;YACD,eAAe,EAAE;gBACf,OAAO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,CAAC;CAAA;AAnED,0BAmEC"}
@@ -82,6 +82,21 @@ exports.accountFields = [
82
82
  default: {},
83
83
  displayOptions: show(['update']),
84
84
  options: [
85
+ {
86
+ displayName: 'Events Callback URL',
87
+ name: 'events_callback_url',
88
+ type: 'string',
89
+ default: '',
90
+ placeholder: 'https://your-agent.example.com/events',
91
+ description: 'URL that receives all account-level events (order.paid, order.fulfilled, etc.) for this account. Leave empty to clear.',
92
+ routing: {
93
+ send: {
94
+ type: 'body',
95
+ property: 'events_callback_url',
96
+ value: '={{ $value || null }}',
97
+ },
98
+ },
99
+ },
85
100
  {
86
101
  displayName: 'GA Measurement ID',
87
102
  name: 'ga_measurement_id',
@@ -1 +1 @@
1
- {"version":3,"file":"account.js","sourceRoot":"","sources":["../../../../nodes/ListBee/resources/account.ts"],"names":[],"mappings":";;;AACA,4CAA0C;AAC1C,4CAAiD;AACjD,kDAA0D;AAE1D,MAAM,IAAI,GAAG,CAAC,GAAa,EAAE,EAAE,CAAC,IAAA,gBAAO,EAAC,SAAS,EAAE,GAAG,CAAC,CAAC;AAE3C,QAAA,iBAAiB,GAAsB;IAClD;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACd,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE;SAChC;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,gBAAgB;gBACxB,WAAW,EAAE,wDAAwD;gBACrE,OAAO,EAAE;oBACP,OAAO,EAAE;wBACP,MAAM,EAAE,QAAQ;wBAChB,GAAG,EAAE,aAAa;qBACnB;oBACD,MAAM,EAAE;wBACN,WAAW,EAAE;4BACX,uBAAc;4BACd;gCACE,IAAI,EAAE,KAAK;gCACX,UAAU,EAAE;oCACV,KAAK,EAAE,4BAA4B;iCACpC;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AI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uEAAuE;aACrF;YACD;gBACE,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,yEAAyE;gBACtF,OAAO,EAAE;oBACP,IAAI,EAAE;wBACJ,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,eAAe;wBACzB,KAAK,EAAE,eAAe;qBACvB;iBACF;aACF;SACF;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"account.js","sourceRoot":"","sources":["../../../../nodes/ListBee/resources/account.ts"],"names":[],"mappings":";;;AACA,4CAA0C;AAC1C,4CAAiD;AACjD,kDAA0D;AAE1D,MAAM,IAAI,GAAG,CAAC,GAAa,EAAE,EAAE,CAAC,IAAA,gBAAO,EAAC,SAAS,EAAE,GAAG,CAAC,CAAC;AAE3C,QAAA,iBAAiB,GAAsB;IAClD;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACd,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE;SAChC;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,gBAAgB;gBACxB,WAAW,EAAE,wDAAwD;gBACrE,OAAO,EAAE;oBACP,OAAO,EAAE;wBACP,MAAM,EAAE,QAAQ;wBAChB,GAAG,EAAE,aAAa;qBACnB;oBACD,MAAM,EAAE;wBACN,WAAW,EAAE;4BACX,uBAAc;4BACd;gCACE,IAAI,EAAE,KAAK;gCACX,UAAU,EAAE;oCACV,KAAK,EAAE,4BAA4B;iCACpC;6BACF;yBACF;qBACF;iBACF;aACF;YACD;gBACE,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,K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AW,EAAE,0DAA0D;gBACvE,OAAO,EAAE;oBACP,IAAI,EAAE;wBACJ,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,mBAAmB;wBAC7B,KAAK,EAAE,uBAAuB;qBAC/B;iBACF;aACF;YACD;gBACE,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uEAAuE;aACrF;YACD;gBACE,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,yEAAyE;gBACtF,OAAO,EAAE;oBACP,IAAI,EAAE;wBACJ,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,eAAe;wBACzB,KAAK,EAAE,eAAe;qBACvB;iBACF;aACF;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const apiKeysOperations: INodeProperties[];
3
+ export declare const apiKeysFields: INodeProperties[];
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.apiKeysFields = exports.apiKeysOperations = void 0;
4
+ const errors_1 = require("../utils/errors");
5
+ const transport_1 = require("../utils/transport");
6
+ exports.apiKeysOperations = [
7
+ {
8
+ displayName: 'Operation',
9
+ name: 'operation',
10
+ type: 'options',
11
+ noDataExpression: true,
12
+ displayOptions: {
13
+ show: { resource: ['apiKeys'] },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Self Revoke',
18
+ value: 'selfRevoke',
19
+ action: 'Revoke the current API key',
20
+ description: 'Permanently revoke the API key used to authenticate this request',
21
+ routing: {
22
+ request: {
23
+ method: 'POST',
24
+ url: '/v1/api-keys/self-revoke',
25
+ },
26
+ send: {
27
+ preSend: [transport_1.injectIdempotencyKey],
28
+ },
29
+ output: {
30
+ postReceive: [errors_1.handleApiError],
31
+ },
32
+ },
33
+ },
34
+ ],
35
+ default: 'selfRevoke',
36
+ },
37
+ ];
38
+ exports.apiKeysFields = [
39
+ {
40
+ displayName: 'Additional Fields',
41
+ name: 'additionalFields',
42
+ type: 'collection',
43
+ placeholder: 'Add Field',
44
+ default: {},
45
+ displayOptions: {
46
+ show: { resource: ['apiKeys'], operation: ['selfRevoke'] },
47
+ },
48
+ options: [
49
+ {
50
+ displayName: 'Idempotency Key',
51
+ name: 'idempotencyKey',
52
+ type: 'string',
53
+ default: '',
54
+ description: 'Unique key for safe retries — same key + body returns cached response',
55
+ },
56
+ ],
57
+ },
58
+ ];
59
+ //# sourceMappingURL=api_keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_keys.js","sourceRoot":"","sources":["../../../../nodes/ListBee/resources/api_keys.ts"],"names":[],"mappings":";;;AACA,4CAAiD;AACjD,kDAA0D;AAE7C,QAAA,iBAAiB,GAAsB;IAClD;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACd,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE;SAChC;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,YAAY;gBACnB,MAAM,EAAE,4BAA4B;gBACpC,WAAW,EAAE,kEAAkE;gBAC/E,OAAO,EAAE;oBACP,OAAO,EAAE;wBACP,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,0BAA0B;qBAChC;oBACD,IAAI,EAAE;wBACJ,OAAO,EAAE,CAAC,gCAAoB,CAAC;qBAChC;oBACD,MAAM,EAAE;wBACN,WAAW,EAAE,CAAC,uBAAc,CAAC;qBAC9B;iBACF;aACF;SACF;QACD,OAAO,EAAE,YAAY;KACtB;CACF,CAAC;AAEW,QAAA,aAAa,GAAsB;IAC9C;QACE,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE;SAC3D;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uEAAuE;aACrF;SACF;KACF;CACF,CAAC"}
@@ -16,17 +16,14 @@ exports.bootstrapOperations = [
16
16
  },
17
17
  options: [
18
18
  {
19
- name: 'Complete',
20
- value: 'complete',
21
- action: 'Complete bootstrap',
22
- description: 'Complete the bootstrap flow using the session ID returned after OTP verification',
19
+ name: 'Poll',
20
+ value: 'poll',
21
+ action: 'Poll bootstrap status',
22
+ description: 'Check the status of a bootstrap flow by account ID returns readiness and Stripe onboarding state (no API key required)',
23
23
  routing: {
24
24
  request: {
25
- method: 'POST',
26
- url: '/v1/bootstrap/complete',
27
- },
28
- send: {
29
- preSend: [transport_1.injectIdempotencyKey],
25
+ method: 'GET',
26
+ url: '=/v1/bootstrap/{{$parameter.accountId}}',
30
27
  },
31
28
  output: {
32
29
  postReceive: [errors_1.handleApiError],
@@ -41,7 +38,7 @@ exports.bootstrapOperations = [
41
38
  routing: {
42
39
  request: {
43
40
  method: 'POST',
44
- url: '/v1/bootstrap',
41
+ url: '/v1/bootstrap/start',
45
42
  },
46
43
  send: {
47
44
  preSend: [transport_1.injectIdempotencyKey],
@@ -55,7 +52,7 @@ exports.bootstrapOperations = [
55
52
  name: 'Verify',
56
53
  value: 'verify',
57
54
  action: 'Verify bootstrap OTP',
58
- description: 'Verify the OTP code sent during bootstrap start — returns an API key on success (no API key required)',
55
+ description: 'Verify the OTP code sent during bootstrap start — returns api_key, account_id, and stripe_onboarding_url (no API key required)',
59
56
  routing: {
60
57
  request: {
61
58
  method: 'POST',
@@ -91,24 +88,25 @@ exports.bootstrapFields = [
91
88
  },
92
89
  },
93
90
  {
94
- displayName: 'Email',
95
- name: 'email',
91
+ displayName: 'Bootstrap Token',
92
+ name: 'bootstrap_token',
96
93
  type: 'string',
94
+ typeOptions: { password: true },
97
95
  required: true,
98
96
  default: '',
99
97
  displayOptions: show(['verify']),
100
- description: 'Email address used during bootstrap start',
101
- placeholder: 'you@example.com',
98
+ description: 'Bootstrap token returned by the Start operation',
99
+ placeholder: 'bst_abc123',
102
100
  routing: {
103
101
  send: {
104
102
  type: 'body',
105
- property: 'email',
103
+ property: 'bootstrap_token',
106
104
  },
107
105
  },
108
106
  },
109
107
  {
110
108
  displayName: 'OTP Code',
111
- name: 'code',
109
+ name: 'otp_code',
112
110
  type: 'string',
113
111
  required: true,
114
112
  default: '',
@@ -118,25 +116,19 @@ exports.bootstrapFields = [
118
116
  routing: {
119
117
  send: {
120
118
  type: 'body',
121
- property: 'code',
119
+ property: 'otp_code',
122
120
  },
123
121
  },
124
122
  },
125
123
  {
126
- displayName: 'Session ID',
127
- name: 'session_id',
124
+ displayName: 'Account ID',
125
+ name: 'accountId',
128
126
  type: 'string',
129
127
  required: true,
130
128
  default: '',
131
- displayOptions: show(['complete']),
132
- description: 'Session ID returned by the Verify operation',
133
- placeholder: 'sess_abc123',
134
- routing: {
135
- send: {
136
- type: 'body',
137
- property: 'session_id',
138
- },
139
- },
129
+ displayOptions: show(['poll']),
130
+ description: 'Account ID returned by the Verify operation (starts with acc_)',
131
+ placeholder: 'acc_abc123',
140
132
  },
141
133
  {
142
134
  displayName: 'Additional Fields',
@@ -144,7 +136,7 @@ exports.bootstrapFields = [
144
136
  type: 'collection',
145
137
  placeholder: 'Add Field',
146
138
  default: {},
147
- displayOptions: show(['start', 'verify', 'complete']),
139
+ displayOptions: show(['start', 'verify']),
148
140
  options: [
149
141
  {
150
142
  displayName: 'Idempotency Key',
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../../../../nodes/ListBee/resources/bootstrap.ts"],"names":[],"mappings":";;;AACA,4CAA0C;AAC1C,4CAAiD;AACjD,kDAA0D;AAE1D,MAAM,IAAI,GAAG,CAAC,GAAa,EAAE,EAAE,CAAC,IAAA,gBAAO,EAAC,WAAW,EAAE,GAAG,CAAC,CAAC;AAK7C,QAAA,mBAAmB,GAAsB;IACpD;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACd,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE;SAClC;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,UAAU;gBACjB,MAAM,EAAE,oBAAoB;gBAC5B,WAAW,EAAE,kFAAkF;gBAC/F,OAAO,EAAE;oBACP,OAAO,EAAE;wBACP,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,wBAAwB;qBAC9B;oBACD,IAAI,EAAE;wBACJ,OAAO,EAAE,CAAC,gCAAoB,CAAC;qBAChC;oBACD,MAAM,EAAE;wBACN,WAAW,EAAE,CAAC,uBAAc,CAAC;qBAC9B;iBACF;aACF;YACD;gBACE,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,OAAO;gBACd,MAAM,EAAE,iBAAiB;gBACzB,WAAW,EAAE,wGAAwG;gBACrH,OAAO,EAAE;oBACP,OAAO,EAAE;wBACP,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,eAAe;qBACrB;oBACD,IAAI,EAAE;wBACJ,OAAO,EAAE,CAAC,gCAAoB,CAAC;qBAChC;oBACD,MAAM,EAAE;wBACN,WAAW,EAAE,CAAC,uBAAc,CAAC;qBAC9B;iBACF;aACF;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK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AW,EAAE,sDAAsD;QACnE,WAAW,EAAE,QAAQ;QACrB,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,MAAM;aACjB;SACF;KACF;IAED;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC;QAClC,WAAW,EAAE,6CAA6C;QAC1D,WAAW,EAAE,aAAa;QAC1B,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,YAAY;aACvB;SACF;KACF;IACD;QACE,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,IAAI,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;QACrD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uEAAuE;aACrF;SACF;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../../../../nodes/ListBee/resources/bootstrap.ts"],"names":[],"mappings":";;;AACA,4CAA0C;AAC1C,4CAAiD;AACjD,kDAA0D;AAE1D,MAAM,IAAI,GAAG,CAAC,GAAa,EAAE,EAAE,CAAC,IAAA,gBAAO,EAAC,WAAW,EAAE,GAAG,CAAC,CAAC;AAK7C,QAAA,mBAAmB,GAAsB;IACpD;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,I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E,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,IAAI,CAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACzC,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uEAAuE;aACrF;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const eventsOperations: INodeProperties[];
3
+ export declare const eventsFields: INodeProperties[];
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.eventsFields = exports.eventsOperations = void 0;
4
+ const fields_1 = require("../utils/fields");
5
+ const errors_1 = require("../utils/errors");
6
+ const show = (ops) => (0, fields_1.showFor)('events', ops);
7
+ exports.eventsOperations = [
8
+ {
9
+ displayName: 'Operation',
10
+ name: 'operation',
11
+ type: 'options',
12
+ noDataExpression: true,
13
+ displayOptions: {
14
+ show: { resource: ['events'] },
15
+ },
16
+ options: [
17
+ {
18
+ name: 'List',
19
+ value: 'list',
20
+ action: 'List events',
21
+ description: 'List all events, optionally filtered by type, listing, or order',
22
+ routing: {
23
+ request: {
24
+ method: 'GET',
25
+ url: '/v1/events',
26
+ },
27
+ output: {
28
+ postReceive: [errors_1.handleApiError],
29
+ },
30
+ },
31
+ },
32
+ ],
33
+ default: 'list',
34
+ },
35
+ ];
36
+ exports.eventsFields = [
37
+ {
38
+ displayName: 'Event Type',
39
+ name: 'type',
40
+ type: 'options',
41
+ default: '',
42
+ description: 'Filter events by type',
43
+ displayOptions: show(['list']),
44
+ options: [
45
+ { name: 'All', value: '' },
46
+ { name: 'Listing Created', value: 'listing.created' },
47
+ { name: 'Listing Deleted', value: 'listing.deleted' },
48
+ { name: 'Listing Published', value: 'listing.published' },
49
+ { name: 'Listing Updated', value: 'listing.updated' },
50
+ { name: 'Order Canceled', value: 'order.canceled' },
51
+ { name: 'Order Dispute Closed', value: 'order.dispute_closed' },
52
+ { name: 'Order Disputed', value: 'order.disputed' },
53
+ { name: 'Order Fulfilled', value: 'order.fulfilled' },
54
+ { name: 'Order Paid', value: 'order.paid' },
55
+ { name: 'Order Refunded', value: 'order.refunded' },
56
+ ],
57
+ routing: {
58
+ send: {
59
+ type: 'query',
60
+ property: 'type',
61
+ value: '={{ $value || undefined }}',
62
+ },
63
+ },
64
+ },
65
+ {
66
+ displayName: 'Listing ID',
67
+ name: 'listing_id',
68
+ type: 'string',
69
+ default: '',
70
+ placeholder: 'lst_7kQ2xY9mN3pR5tW1vB8a',
71
+ description: 'Filter events by listing ID',
72
+ displayOptions: show(['list']),
73
+ routing: {
74
+ send: {
75
+ type: 'query',
76
+ property: 'listing_id',
77
+ value: '={{ $value || undefined }}',
78
+ },
79
+ },
80
+ },
81
+ {
82
+ displayName: 'Order ID',
83
+ name: 'order_id',
84
+ type: 'string',
85
+ default: '',
86
+ placeholder: 'ord_9xM4kP7nR2qT5wY1',
87
+ description: 'Filter events by order ID',
88
+ displayOptions: show(['list']),
89
+ routing: {
90
+ send: {
91
+ type: 'query',
92
+ property: 'order_id',
93
+ value: '={{ $value || undefined }}',
94
+ },
95
+ },
96
+ },
97
+ ...(0, fields_1.paginationFields)('events', ['list']),
98
+ ];
99
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../../../nodes/ListBee/resources/events.ts"],"names":[],"mappings":";;;AACA,4CAA4D;AAC5D,4CAAiD;AAEjD,MAAM,IAAI,GAAG,CAAC,GAAa,EAAE,EAAE,CAAC,IAAA,gBAAO,EAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AAE1C,QAAA,gBAAgB,GAAsB;IACjD;QACE,WAA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AAE,gBAAgB,EAAE;YACnD,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;YACrD,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;YAC3C,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;SACpD;QACD,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,MAAM;gBAChB,KAAK,EAAE,4BAA4B;aACpC;SACF;KACF;IACD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,0BAA0B;QACvC,WAAW,EAAE,6BAA6B;QAC1C,cAAc,EAAE,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;QAC9B,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,YAAY;gBACtB,KAAK,EAAE,4BAA4B;aACpC;SACF;KACF;IACD;QACE,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,sBAAsB;QACnC,WAAW,EAAE,2BAA2B;QACxC,cAAc,EAAE,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;QAC9B,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,UAAU;gBACpB,KAAK,EAAE,4BAA4B;aACpC;SACF;KACF;IAGD,GAAG,IAAA,yBAAgB,EAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,CAAC;CACxC,CAAC"}
@@ -1,10 +1,9 @@
1
1
  export { accountOperations, accountFields } from './account';
2
+ export { apiKeysOperations, apiKeysFields } from './api_keys';
2
3
  export { bootstrapOperations, bootstrapFields } from './bootstrap';
3
- export { customerOperations, customerFields } from './customer';
4
- export { fileOperations, fileFields } from './file';
4
+ export { eventsOperations, eventsFields } from './events';
5
5
  export { listingOperations, listingFields } from './listing';
6
6
  export { orderOperations, orderFields } from './order';
7
7
  export { planOperations, planFields } from './plans';
8
8
  export { stripeOperations, stripeFields } from './stripe';
9
9
  export { utilityOperations, utilityFields } from './utility';
10
- export { webhookOperations, webhookFields } from './webhook';
@@ -1,18 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.webhookFields = exports.webhookOperations = exports.utilityFields = exports.utilityOperations = exports.stripeFields = exports.stripeOperations = exports.planFields = exports.planOperations = exports.orderFields = exports.orderOperations = exports.listingFields = exports.listingOperations = exports.fileFields = exports.fileOperations = exports.customerFields = exports.customerOperations = exports.bootstrapFields = exports.bootstrapOperations = exports.accountFields = exports.accountOperations = void 0;
3
+ exports.utilityFields = exports.utilityOperations = exports.stripeFields = exports.stripeOperations = exports.planFields = exports.planOperations = exports.orderFields = exports.orderOperations = exports.listingFields = exports.listingOperations = exports.eventsFields = exports.eventsOperations = exports.bootstrapFields = exports.bootstrapOperations = exports.apiKeysFields = exports.apiKeysOperations = exports.accountFields = exports.accountOperations = void 0;
4
4
  var account_1 = require("./account");
5
5
  Object.defineProperty(exports, "accountOperations", { enumerable: true, get: function () { return account_1.accountOperations; } });
6
6
  Object.defineProperty(exports, "accountFields", { enumerable: true, get: function () { return account_1.accountFields; } });
7
+ var api_keys_1 = require("./api_keys");
8
+ Object.defineProperty(exports, "apiKeysOperations", { enumerable: true, get: function () { return api_keys_1.apiKeysOperations; } });
9
+ Object.defineProperty(exports, "apiKeysFields", { enumerable: true, get: function () { return api_keys_1.apiKeysFields; } });
7
10
  var bootstrap_1 = require("./bootstrap");
8
11
  Object.defineProperty(exports, "bootstrapOperations", { enumerable: true, get: function () { return bootstrap_1.bootstrapOperations; } });
9
12
  Object.defineProperty(exports, "bootstrapFields", { enumerable: true, get: function () { return bootstrap_1.bootstrapFields; } });
10
- var customer_1 = require("./customer");
11
- Object.defineProperty(exports, "customerOperations", { enumerable: true, get: function () { return customer_1.customerOperations; } });
12
- Object.defineProperty(exports, "customerFields", { enumerable: true, get: function () { return customer_1.customerFields; } });
13
- var file_1 = require("./file");
14
- Object.defineProperty(exports, "fileOperations", { enumerable: true, get: function () { return file_1.fileOperations; } });
15
- Object.defineProperty(exports, "fileFields", { enumerable: true, get: function () { return file_1.fileFields; } });
13
+ var events_1 = require("./events");
14
+ Object.defineProperty(exports, "eventsOperations", { enumerable: true, get: function () { return events_1.eventsOperations; } });
15
+ Object.defineProperty(exports, "eventsFields", { enumerable: true, get: function () { return events_1.eventsFields; } });
16
16
  var listing_1 = require("./listing");
17
17
  Object.defineProperty(exports, "listingOperations", { enumerable: true, get: function () { return listing_1.listingOperations; } });
18
18
  Object.defineProperty(exports, "listingFields", { enumerable: true, get: function () { return listing_1.listingFields; } });
@@ -28,7 +28,4 @@ Object.defineProperty(exports, "stripeFields", { enumerable: true, get: function
28
28
  var utility_1 = require("./utility");
29
29
  Object.defineProperty(exports, "utilityOperations", { enumerable: true, get: function () { return utility_1.utilityOperations; } });
30
30
  Object.defineProperty(exports, "utilityFields", { enumerable: true, get: function () { return utility_1.utilityFields; } });
31
- var webhook_1 = require("./webhook");
32
- Object.defineProperty(exports, "webhookOperations", { enumerable: true, get: function () { return webhook_1.webhookOperations; } });
33
- Object.defineProperty(exports, "webhookFields", { enumerable: true, get: function () { return webhook_1.webhookFields; } });
34
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/ListBee/resources/index.ts"],"names":[],"mappings":";;;AAAA,qCAA6D;AAApD,4GAAA,iBAAiB,OAAA;AAAE,wGAAA,aAAa,OAAA;AACzC,yCAAmE;AAA1D,gHAAA,mBAAmB,OAAA;AAAE,4GAAA,eAAe,OAAA;AAC7C,uCAAgE;AAAvD,8GAAA,kBAAkB,OAAA;AAAE,0GAA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