n8n-nodes-listbee 0.14.0 → 0.16.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 CHANGED
@@ -32,16 +32,18 @@ Starts workflows when ListBee events occur. Automatically registers and cleans u
32
32
  | Operation | Description |
33
33
  |-----------|-------------|
34
34
  | Get | Get account status, plan, fee rate, and operational readiness |
35
- | Update | Update account profile (display name, bio, avatar, GA ID) |
35
+ | Update | Update account settings (GA Measurement ID, order notifications) |
36
36
  | Delete | Permanently delete the account and all associated data |
37
37
 
38
- ### API Key
38
+ ### Bootstrap
39
+
40
+ Public endpoints — no API key required. Use these to automate account creation and onboarding flows.
39
41
 
40
42
  | Operation | Description |
41
43
  |-----------|-------------|
42
- | Create | Create a new API key the full key value is returned once, store it securely |
43
- | Get Many | List all API keys for the authenticated account |
44
- | Delete | Revoke an API key permanently |
44
+ | Start | Begin account bootstrapsends a verification OTP to the email address |
45
+ | Verify | Verify the OTP code returns an API key on success |
46
+ | Create Store | Set up the store name and bio as the final step of the bootstrap flow |
45
47
 
46
48
  ### Customer
47
49
 
@@ -86,6 +88,13 @@ Starts workflows when ListBee events occur. Automatically registers and cleans u
86
88
  |-----------|-------------|
87
89
  | List | List all available plans with pricing (public endpoint, no authentication required) |
88
90
 
91
+ ### Store
92
+
93
+ | Operation | Description |
94
+ |-----------|-------------|
95
+ | Get | Retrieve store configuration (display name, bio, avatar, readiness) |
96
+ | Update | Update store display name, bio, or avatar |
97
+
89
98
  ### Utility
90
99
 
91
100
  | Operation | Description |
@@ -40,12 +40,13 @@ class ListBee {
40
40
  noDataExpression: true,
41
41
  options: [
42
42
  { name: 'Account', value: 'account' },
43
- { name: 'API Key', value: 'apiKey' },
43
+ { name: 'Bootstrap', value: 'bootstrap' },
44
44
  { name: 'Customer', value: 'customer' },
45
45
  { name: 'File', value: 'file' },
46
46
  { name: 'Listing', value: 'listing' },
47
47
  { name: 'Order', value: 'order' },
48
48
  { name: 'Plan', value: 'plan' },
49
+ { name: 'Store', value: 'store' },
49
50
  { name: 'Stripe', value: 'stripe' },
50
51
  { name: 'Utility', value: 'utility' },
51
52
  { name: 'Webhook', value: 'webhook' },
@@ -54,8 +55,8 @@ class ListBee {
54
55
  },
55
56
  ...resources_1.accountOperations,
56
57
  ...resources_1.accountFields,
57
- ...resources_1.apiKeyOperations,
58
- ...resources_1.apiKeyFields,
58
+ ...resources_1.bootstrapOperations,
59
+ ...resources_1.bootstrapFields,
59
60
  ...resources_1.customerOperations,
60
61
  ...resources_1.customerFields,
61
62
  ...resources_1.fileOperations,
@@ -66,6 +67,8 @@ class ListBee {
66
67
  ...resources_1.orderFields,
67
68
  ...resources_1.planOperations,
68
69
  ...resources_1.planFields,
70
+ ...resources_1.storeOperations,
71
+ ...resources_1.storeFields,
69
72
  ...resources_1.stripeOperations,
70
73
  ...resources_1.stripeFields,
71
74
  ...resources_1.utilityOperations,
@@ -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,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,EAAE,wB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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,2CAuBqB;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,EAAE,wBAAwB;gBACjC,OAAO,EAAE;oBACP,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBACnC;aACF;YACD,UAAU,EAAE;gBACV;oBACE,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACP,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;wBACrC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;wBACzC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;wBACvC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;wBAC/B,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;wBACrC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;wBACjC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;wBAC/B,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;wBACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;wBACnC,EAAE,IAAI,EAAE,SAAS,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,2BAAe;gBAClB,GAAG,uBAAW;gBACd,GAAG,4BAAgB;gBACnB,GAAG,wBAAY;gBACf,GAAG,6BAAiB;gBACpB,GAAG,yBAAa;gBAChB,GAAG,6BAAiB;gBACpB,GAAG,yBAAa;aACjB;SACF,CAAC;IACJ,CAAC;CAAA;AAzED,0BAyEC"}
@@ -82,51 +82,6 @@ exports.accountFields = [
82
82
  default: {},
83
83
  displayOptions: show(['update']),
84
84
  options: [
85
- {
86
- displayName: 'Avatar',
87
- name: 'avatar',
88
- type: 'string',
89
- default: '',
90
- placeholder: 'fil_abc123',
91
- description: 'File token from the File Upload operation. Used as the account avatar.',
92
- routing: {
93
- send: {
94
- type: 'body',
95
- property: 'avatar',
96
- value: '={{ $value || undefined }}',
97
- },
98
- },
99
- },
100
- {
101
- displayName: 'Bio',
102
- name: 'bio',
103
- type: 'string',
104
- default: '',
105
- typeOptions: { rows: 3 },
106
- description: 'Short bio or description for the account profile',
107
- routing: {
108
- send: {
109
- type: 'body',
110
- property: 'bio',
111
- value: '={{ $value || undefined }}',
112
- },
113
- },
114
- },
115
- {
116
- displayName: 'Display Name',
117
- name: 'display_name',
118
- type: 'string',
119
- default: '',
120
- placeholder: 'My Brand',
121
- description: 'Public display name for the account',
122
- routing: {
123
- send: {
124
- type: 'body',
125
- property: 'display_name',
126
- value: '={{ $value || undefined }}',
127
- },
128
- },
129
- },
130
85
  {
131
86
  displayName: 'GA Measurement ID',
132
87
  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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e;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,KAAK;gBACZ,MAAM,EAAE,oBAAoB;gBAC5B,OAAO,EAAE;oBACP,OAAO,EAAE;wBACP,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,aAAa;qBACnB;oBACD,MAAM,EAAE;wBACN,WAAW,EAAE,CAAC,uBAAc,CAAC;qBAC9B;iBACF;aACF;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,yBAAyB;gBACjC,O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 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const bootstrapOperations: INodeProperties[];
3
+ export declare const bootstrapFields: INodeProperties[];
@@ -0,0 +1,159 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bootstrapFields = exports.bootstrapOperations = void 0;
4
+ const fields_1 = require("../utils/fields");
5
+ const errors_1 = require("../utils/errors");
6
+ const transport_1 = require("../utils/transport");
7
+ const show = (ops) => (0, fields_1.showFor)('bootstrap', ops);
8
+ exports.bootstrapOperations = [
9
+ {
10
+ displayName: 'Operation',
11
+ name: 'operation',
12
+ type: 'options',
13
+ noDataExpression: true,
14
+ displayOptions: {
15
+ show: { resource: ['bootstrap'] },
16
+ },
17
+ options: [
18
+ {
19
+ name: 'Create Store',
20
+ value: 'createStore',
21
+ action: 'Create store during bootstrap',
22
+ description: 'Set up the store (name, bio) as the final step of the bootstrap flow',
23
+ routing: {
24
+ request: {
25
+ method: 'POST',
26
+ url: '/v1/bootstrap/store',
27
+ },
28
+ send: {
29
+ preSend: [transport_1.injectIdempotencyKey],
30
+ },
31
+ output: {
32
+ postReceive: [errors_1.handleApiError],
33
+ },
34
+ },
35
+ },
36
+ {
37
+ name: 'Start',
38
+ value: 'start',
39
+ action: 'Start bootstrap',
40
+ description: 'Begin the account bootstrap flow — sends a verification OTP to the email address (no API key required)',
41
+ routing: {
42
+ request: {
43
+ method: 'POST',
44
+ url: '/v1/bootstrap',
45
+ },
46
+ send: {
47
+ preSend: [transport_1.injectIdempotencyKey],
48
+ },
49
+ output: {
50
+ postReceive: [errors_1.handleApiError],
51
+ },
52
+ },
53
+ },
54
+ {
55
+ name: 'Verify',
56
+ value: 'verify',
57
+ action: 'Verify bootstrap OTP',
58
+ description: 'Verify the OTP code sent during bootstrap start — returns an API key on success (no API key required)',
59
+ routing: {
60
+ request: {
61
+ method: 'POST',
62
+ url: '/v1/bootstrap/verify',
63
+ },
64
+ send: {
65
+ preSend: [transport_1.injectIdempotencyKey],
66
+ },
67
+ output: {
68
+ postReceive: [errors_1.handleApiError],
69
+ },
70
+ },
71
+ },
72
+ ],
73
+ default: 'start',
74
+ },
75
+ ];
76
+ exports.bootstrapFields = [
77
+ {
78
+ displayName: 'Email',
79
+ name: 'email',
80
+ type: 'string',
81
+ required: true,
82
+ default: '',
83
+ displayOptions: show(['start']),
84
+ description: 'Email address to send the verification OTP to',
85
+ placeholder: 'you@example.com',
86
+ routing: {
87
+ send: {
88
+ type: 'body',
89
+ property: 'email',
90
+ },
91
+ },
92
+ },
93
+ {
94
+ displayName: 'Email',
95
+ name: 'email',
96
+ type: 'string',
97
+ required: true,
98
+ default: '',
99
+ displayOptions: show(['verify']),
100
+ description: 'Email address used during bootstrap start',
101
+ placeholder: 'you@example.com',
102
+ routing: {
103
+ send: {
104
+ type: 'body',
105
+ property: 'email',
106
+ },
107
+ },
108
+ },
109
+ {
110
+ displayName: 'OTP Code',
111
+ name: 'code',
112
+ type: 'string',
113
+ required: true,
114
+ default: '',
115
+ displayOptions: show(['verify']),
116
+ description: 'One-time verification code sent to the email address',
117
+ placeholder: '123456',
118
+ routing: {
119
+ send: {
120
+ type: 'body',
121
+ property: 'code',
122
+ },
123
+ },
124
+ },
125
+ {
126
+ displayName: 'Display Name',
127
+ name: 'display_name',
128
+ type: 'string',
129
+ required: true,
130
+ default: '',
131
+ displayOptions: show(['createStore']),
132
+ description: 'Public display name for the new store',
133
+ placeholder: 'My Brand',
134
+ routing: {
135
+ send: {
136
+ type: 'body',
137
+ property: 'display_name',
138
+ },
139
+ },
140
+ },
141
+ {
142
+ displayName: 'Additional Fields',
143
+ name: 'additionalFields',
144
+ type: 'collection',
145
+ placeholder: 'Add Field',
146
+ default: {},
147
+ displayOptions: show(['start', 'verify', 'createStore']),
148
+ options: [
149
+ {
150
+ displayName: 'Idempotency Key',
151
+ name: 'idempotencyKey',
152
+ type: 'string',
153
+ default: '',
154
+ description: 'Unique key for safe retries — same key + body returns cached response',
155
+ },
156
+ ],
157
+ },
158
+ ];
159
+ //# sourceMappingURL=bootstrap.js.map
@@ -0,0 +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,cAAc;gBACpB,KAAK,EAAE,aAAa;gBACpB,MAAM,EAAE,+BAA+B;gBACvC,WAAW,EAAE,sEAAsE;gBACnF,OAAO,EAAE;oBACP,OAAO,EAAE;wBACP,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,qBAAqB;qBAC3B;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,I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,QAAQ,CAAC,CAAC;QAChC,WAAW,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,cAAc;QAC3B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,IAAI,CAAC,CAAC,aAAa,CAAC,CAAC;QACrC,WAAW,EAAE,uCAAuC;QACpD,WAAW,EAAE,UAAU;QACvB,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,cAAc;aACzB;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,aAAa,CAAC,CAAC;QACxD,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"}
@@ -46,5 +46,46 @@ exports.fileFields = [
46
46
  description: 'Name of the binary property containing the file to upload. Use the output of an HTTP Request or Read Binary File node.',
47
47
  displayOptions: (0, fields_1.showFor)('file', ['upload']),
48
48
  },
49
+ {
50
+ displayName: 'Additional Fields',
51
+ name: 'additionalFields',
52
+ type: 'collection',
53
+ placeholder: 'Add Field',
54
+ default: {},
55
+ displayOptions: (0, fields_1.showFor)('file', ['upload']),
56
+ options: [
57
+ {
58
+ displayName: 'Purpose',
59
+ name: 'purpose',
60
+ type: 'options',
61
+ default: 'deliverable',
62
+ description: 'Intended use of the uploaded file. Limits: deliverable up to 500 MB, cover up to 10 MB, avatar up to 5 MB.',
63
+ options: [
64
+ {
65
+ name: 'Deliverable',
66
+ value: 'deliverable',
67
+ description: 'Digital product file delivered to buyers (max 500 MB)',
68
+ },
69
+ {
70
+ name: 'Cover',
71
+ value: 'cover',
72
+ description: 'Listing cover image (max 10 MB)',
73
+ },
74
+ {
75
+ name: 'Avatar',
76
+ value: 'avatar',
77
+ description: 'Store avatar image (max 5 MB)',
78
+ },
79
+ ],
80
+ routing: {
81
+ send: {
82
+ type: 'body',
83
+ property: 'purpose',
84
+ value: '={{ $value || undefined }}',
85
+ },
86
+ },
87
+ },
88
+ ],
89
+ },
49
90
  ];
50
91
  //# sourceMappingURL=file.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"file.js","sourceRoot":"","sources":["../../../../nodes/ListBee/resources/file.ts"],"names":[],"mappings":";;;AACA,4CAA0C;AAC1C,4CAAiD;AACjD,kDAA2D;AAE9C,QAAA,cAAc,GAAsB;IAC/C;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,MAAM,CAAC,EAAE;SAC7B;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,eAAe;gBACvB,WAAW,EAAE,4EAA4E;gBACzF,OAAO,EAAE;oBACP,OAAO,EAAE;wBACP,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,WAAW;qBACjB;oBACD,IAAI,EAAE;wBACJ,OAAO,EAAE,CAAC,iCAAqB,CAAC;qBACjC;oBACD,MAAM,EAAE;wBACN,WAAW,EAAE,CAAC,uBAAc,CAAC;qBAC9B;iBACF;aACF;SACF;QACD,OAAO,EAAE,QAAQ;KAClB;CACF,C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gBAAO,EAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC;KAC5C;IACD;QACE,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,IAAA,gBAAO,EAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC;QAC3C,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,aAAa;gBACtB,WAAW,EAAE,4GAA4G;gBACzH,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,aAAa;wBACnB,KAAK,EAAE,aAAa;wBACpB,WAAW,EAAE,uDAAuD;qBACrE;oBACD;wBACE,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,OAAO;wBACd,WAAW,EAAE,iCAAiC;qBAC/C;oBACD;wBACE,IAAI,EAAE,QAAQ;wBACd,KAAK,EAAE,QAAQ;wBACf,WAAW,EAAE,+BAA+B;qBAC7C;iBACF;gBACD,OAAO,EAAE;oBACP,IAAI,EAAE;wBACJ,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,SAAS;wBACnB,KAAK,EAAE,4BAA4B;qBACpC;iBACF;aACF;SACF;KACF;CACF,CAAC"}
@@ -1,10 +1,11 @@
1
1
  export { accountOperations, accountFields } from './account';
2
- export { apiKeyOperations, apiKeyFields } from './apiKeys';
2
+ export { bootstrapOperations, bootstrapFields } from './bootstrap';
3
3
  export { customerOperations, customerFields } from './customer';
4
4
  export { fileOperations, fileFields } from './file';
5
5
  export { listingOperations, listingFields } from './listing';
6
6
  export { orderOperations, orderFields } from './order';
7
7
  export { planOperations, planFields } from './plans';
8
+ export { storeOperations, storeFields } from './store';
8
9
  export { stripeOperations, stripeFields } from './stripe';
9
10
  export { utilityOperations, utilityFields } from './utility';
10
11
  export { webhookOperations, webhookFields } from './webhook';
@@ -1,12 +1,12 @@
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.apiKeyFields = exports.apiKeyOperations = exports.accountFields = exports.accountOperations = void 0;
3
+ exports.webhookFields = exports.webhookOperations = exports.utilityFields = exports.utilityOperations = exports.stripeFields = exports.stripeOperations = exports.storeFields = exports.storeOperations = 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;
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 apiKeys_1 = require("./apiKeys");
8
- Object.defineProperty(exports, "apiKeyOperations", { enumerable: true, get: function () { return apiKeys_1.apiKeyOperations; } });
9
- Object.defineProperty(exports, "apiKeyFields", { enumerable: true, get: function () { return apiKeys_1.apiKeyFields; } });
7
+ var bootstrap_1 = require("./bootstrap");
8
+ Object.defineProperty(exports, "bootstrapOperations", { enumerable: true, get: function () { return bootstrap_1.bootstrapOperations; } });
9
+ Object.defineProperty(exports, "bootstrapFields", { enumerable: true, get: function () { return bootstrap_1.bootstrapFields; } });
10
10
  var customer_1 = require("./customer");
11
11
  Object.defineProperty(exports, "customerOperations", { enumerable: true, get: function () { return customer_1.customerOperations; } });
12
12
  Object.defineProperty(exports, "customerFields", { enumerable: true, get: function () { return customer_1.customerFields; } });
@@ -22,6 +22,9 @@ Object.defineProperty(exports, "orderFields", { enumerable: true, get: function
22
22
  var plans_1 = require("./plans");
23
23
  Object.defineProperty(exports, "planOperations", { enumerable: true, get: function () { return plans_1.planOperations; } });
24
24
  Object.defineProperty(exports, "planFields", { enumerable: true, get: function () { return plans_1.planFields; } });
25
+ var store_1 = require("./store");
26
+ Object.defineProperty(exports, "storeOperations", { enumerable: true, get: function () { return store_1.storeOperations; } });
27
+ Object.defineProperty(exports, "storeFields", { enumerable: true, get: function () { return store_1.storeFields; } });
25
28
  var stripe_1 = require("./stripe");
26
29
  Object.defineProperty(exports, "stripeOperations", { enumerable: true, get: function () { return stripe_1.stripeOperations; } });
27
30
  Object.defineProperty(exports, "stripeFields", { enumerable: true, get: function () { return stripe_1.stripeFields; } });
@@ -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,qCAA2D;AAAlD,2GAAA,gBAAgB,OAAA;AAAE,uGAAA,YAAY,OAAA;AACvC,uCAAgE;AAAvD,8GAAA,kBAAkB,OAAA;AAAE,0GAAA,cAAc,OAAA;AAC3C,+BAAoD;AAA3C,sGAAA,cAAc,OAAA;AAAE,kGAAA,UAAU,OAAA;AACnC,qCAA6D;AAApD,4GAAA,iBAAiB,OAAA;AAAE,wGAAA,aAAa,OAAA;AACzC,iCAAuD;AAA9C,wGAAA,eAAe,OAAA;AAAE,oGAAA,WAAW,OAAA;AACrC,iCAAqD;AAA5C,uGAAA,cAAc,OAAA;AAAE,mGAAA,UAAU,OAAA;AACnC,mCAA0D;AAAjD,0GAAA,gBAAgB,OAAA;AAAE,sGAAA,YAAY,OAAA;AACvC,qCAA6D;AAApD,4GAAA,iBAAiB,OAAA;AAAE,wGAAA,aAAa,OAAA;AACzC,qCAA6D;AAApD,4GAAA,iBAAiB,OAAA;AAAE,wGAAA,aAAa,OAAA"}
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,0GAAA,cAAc,OAAA;AAC3C,+BAAoD;AAA3C,sGAAA,cAAc,OAAA;AAAE,kGAAA,UAAU,OAAA;AACnC,qCAA6D;AAApD,4GAAA,iBAAiB,OAAA;AAAE,wGAAA,aAAa,OAAA;AACzC,iCAAuD;AAA9C,wGAAA,eAAe,OAAA;AAAE,oGAAA,WAAW,OAAA;AACrC,iCAAqD;AAA5C,uGAAA,cAAc,OAAA;AAAE,mGAAA,UAAU,OAAA;AACnC,iCAAuD;AAA9C,wGAAA,eAAe,OAAA;AAAE,oGAAA,WAAW,OAAA;AACrC,mCAA0D;AAAjD,0GAAA,gBAAgB,OAAA;AAAE,sGAAA,YAAY,OAAA;AACvC,qCAA6D;AAApD,4GAAA,iBAAiB,OAAA;AAAE,wGAAA,aAAa,OAAA;AACzC,qCAA6D;AAApD,4GAAA,iBAAiB,OAAA;AAAE,wGAAA,aAAa,OAAA"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const storeOperations: INodeProperties[];
3
+ export declare const storeFields: INodeProperties[];
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.storeFields = exports.storeOperations = void 0;
4
+ const fields_1 = require("../utils/fields");
5
+ const errors_1 = require("../utils/errors");
6
+ const transport_1 = require("../utils/transport");
7
+ const show = (ops) => (0, fields_1.showFor)('store', ops);
8
+ exports.storeOperations = [
9
+ {
10
+ displayName: 'Operation',
11
+ name: 'operation',
12
+ type: 'options',
13
+ noDataExpression: true,
14
+ displayOptions: {
15
+ show: { resource: ['store'] },
16
+ },
17
+ options: [
18
+ {
19
+ name: 'Get',
20
+ value: 'get',
21
+ action: 'Get store settings',
22
+ description: 'Retrieve the store configuration for the authenticated account',
23
+ routing: {
24
+ request: {
25
+ method: 'GET',
26
+ url: '/v1/store',
27
+ },
28
+ output: {
29
+ postReceive: [errors_1.handleApiError],
30
+ },
31
+ },
32
+ },
33
+ {
34
+ name: 'Update',
35
+ value: 'update',
36
+ action: 'Update store settings',
37
+ description: 'Update the store name, description, and other settings',
38
+ routing: {
39
+ request: {
40
+ method: 'PUT',
41
+ url: '/v1/store',
42
+ },
43
+ send: {
44
+ preSend: [transport_1.injectIdempotencyKey],
45
+ },
46
+ output: {
47
+ postReceive: [errors_1.handleApiError],
48
+ },
49
+ },
50
+ },
51
+ ],
52
+ default: 'get',
53
+ },
54
+ ];
55
+ exports.storeFields = [
56
+ {
57
+ displayName: 'Update Fields',
58
+ name: 'updateFields',
59
+ type: 'collection',
60
+ placeholder: 'Add Field',
61
+ default: {},
62
+ displayOptions: show(['update']),
63
+ options: [
64
+ {
65
+ displayName: 'Display Name',
66
+ name: 'display_name',
67
+ type: 'string',
68
+ default: '',
69
+ placeholder: 'My Brand',
70
+ description: 'Public display name for the store',
71
+ routing: {
72
+ send: {
73
+ type: 'body',
74
+ property: 'display_name',
75
+ value: '={{ $value || undefined }}',
76
+ },
77
+ },
78
+ },
79
+ {
80
+ displayName: 'Bio',
81
+ name: 'bio',
82
+ type: 'string',
83
+ default: '',
84
+ typeOptions: { rows: 3 },
85
+ description: 'Short description shown on the store profile',
86
+ routing: {
87
+ send: {
88
+ type: 'body',
89
+ property: 'bio',
90
+ value: '={{ $value || undefined }}',
91
+ },
92
+ },
93
+ },
94
+ {
95
+ displayName: 'Avatar',
96
+ name: 'avatar',
97
+ type: 'string',
98
+ default: '',
99
+ placeholder: 'fil_abc123',
100
+ description: 'File token from the File Upload operation. Used as the store avatar.',
101
+ routing: {
102
+ send: {
103
+ type: 'body',
104
+ property: 'avatar',
105
+ value: '={{ $value || undefined }}',
106
+ },
107
+ },
108
+ },
109
+ {
110
+ displayName: 'Idempotency Key',
111
+ name: 'idempotencyKey',
112
+ type: 'string',
113
+ default: '',
114
+ description: 'Unique key for safe retries — same key + body returns cached response',
115
+ },
116
+ ],
117
+ },
118
+ ];
119
+ //# sourceMappingURL=store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../../nodes/ListBee/resources/store.ts"],"names":[],"mappings":";;;AACA,4CAA0C;AAC1C,4CAAiD;AACjD,kDAA0D;AAE1D,MAAM,IAAI,GAAG,CAAC,GAAa,EAAE,EAAE,CAAC,IAAA,gBAAO,EAAC,OAAO,EAAE,GAAG,CAAC,CAAC;AAEzC,QAAA,eAAe,GAAsB;IAChD;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,OAAO,CAAC,EAAE;SAC9B;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,oBAAoB;gBAC5B,WAAW,EAAE,gEAAgE;gBAC7E,OAAO,EAAE;oBACP,OAAO,EAAE;wBACP,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,WAAW;qBACjB;oBACD,MAAM,EAAE;wBACN,WAAW,EAAE,CAAC,uBAAc,CAAC;qBAC9B;iBACF;aACF;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,uBAAuB;gBAC/B,WAAW,EAAE,wDAAwD;gBACrE,OAAO,EAAE;oBACP,OAAO,EAAE;wBACP,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,WAAW;qBACjB;oBACD,IAAI,EAAE;wBACJ,OAAO,EAAE,CAAC,gCAAoB,CAAC;qBAChC;oBACD,M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ACF;YACD;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"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-listbee",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "description": "n8n community node for the ListBee commerce API",
5
5
  "license": "MIT",
6
6
  "homepage": "https://listbee.so",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-listbee",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "description": "n8n community node for the ListBee commerce API",
5
5
  "license": "MIT",
6
6
  "homepage": "https://listbee.so",
@@ -1,3 +0,0 @@
1
- import type { INodeProperties } from 'n8n-workflow';
2
- export declare const apiKeyOperations: INodeProperties[];
3
- export declare const apiKeyFields: INodeProperties[];
@@ -1,108 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.apiKeyFields = exports.apiKeyOperations = void 0;
4
- const fields_1 = require("../utils/fields");
5
- const errors_1 = require("../utils/errors");
6
- const transport_1 = require("../utils/transport");
7
- exports.apiKeyOperations = [
8
- {
9
- displayName: 'Operation',
10
- name: 'operation',
11
- type: 'options',
12
- noDataExpression: true,
13
- displayOptions: {
14
- show: { resource: ['apiKey'] },
15
- },
16
- options: [
17
- {
18
- name: 'Create',
19
- value: 'create',
20
- action: 'Create an API key',
21
- description: 'Create a new API key. The full key value is returned once — store it securely.',
22
- routing: {
23
- request: {
24
- method: 'POST',
25
- url: '/v1/api-keys',
26
- },
27
- send: { preSend: [transport_1.injectIdempotencyKey] },
28
- output: { postReceive: [errors_1.handleApiError] },
29
- },
30
- },
31
- {
32
- name: 'Delete',
33
- value: 'delete',
34
- action: 'Delete an API key',
35
- description: 'Revoke an API key permanently',
36
- routing: {
37
- request: {
38
- method: 'DELETE',
39
- url: '=/v1/api-keys/{{$parameter.keyId}}',
40
- },
41
- output: {
42
- postReceive: [
43
- errors_1.handleApiError,
44
- { type: 'set', properties: { value: '={{ { "deleted": true } }}' } },
45
- ],
46
- },
47
- },
48
- },
49
- {
50
- name: 'Get Many',
51
- value: 'getMany',
52
- action: 'List all API keys',
53
- description: 'List all API keys for the authenticated account',
54
- routing: {
55
- request: {
56
- method: 'GET',
57
- url: '/v1/api-keys',
58
- },
59
- output: { postReceive: [errors_1.handleApiError] },
60
- },
61
- },
62
- ],
63
- default: 'getMany',
64
- },
65
- ];
66
- exports.apiKeyFields = [
67
- {
68
- displayName: 'Name',
69
- name: 'name',
70
- type: 'string',
71
- default: '',
72
- required: true,
73
- ...(0, fields_1.showFor)('apiKey', ['create']),
74
- description: 'Human-readable label for this API key',
75
- placeholder: 'n8n production',
76
- routing: {
77
- send: { type: 'body', property: 'name' },
78
- },
79
- },
80
- {
81
- displayName: 'Key ID',
82
- name: 'keyId',
83
- type: 'string',
84
- required: true,
85
- ...(0, fields_1.showFor)('apiKey', ['delete']),
86
- description: 'ID of the API key to delete (lbk_ prefix)',
87
- placeholder: 'lbk_...',
88
- default: '',
89
- },
90
- {
91
- displayName: 'Additional Fields',
92
- name: 'additionalFields',
93
- type: 'collection',
94
- placeholder: 'Add Field',
95
- default: {},
96
- ...(0, fields_1.showFor)('apiKey', ['create']),
97
- options: [
98
- {
99
- displayName: 'Idempotency Key',
100
- name: 'idempotencyKey',
101
- type: 'string',
102
- default: '',
103
- description: 'Unique key to prevent duplicate creation',
104
- },
105
- ],
106
- },
107
- ];
108
- //# sourceMappingURL=apiKeys.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apiKeys.js","sourceRoot":"","sources":["../../../../nodes/ListBee/resources/apiKeys.ts"],"names":[],"mappings":";;;AACA,4CAA0C;AAC1C,4CAAiD;AACjD,kDAA0D;AAE7C,QAAA,gBAAgB,GAAsB;IAClD;QACC,W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