n8n-nodes-lemonsqueezy 0.2.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/LICENSE +21 -0
- package/README.md +216 -0
- package/dist/credentials/LemonSqueezyApi.credentials.d.ts +10 -0
- package/dist/credentials/LemonSqueezyApi.credentials.js +41 -0
- package/dist/nodes/LemonSqueezy/LemonSqueezy.node.d.ts +5 -0
- package/dist/nodes/LemonSqueezy/LemonSqueezy.node.js +358 -0
- package/dist/nodes/LemonSqueezy/LemonSqueezyTrigger.node.d.ts +12 -0
- package/dist/nodes/LemonSqueezy/LemonSqueezyTrigger.node.js +230 -0
- package/dist/nodes/LemonSqueezy/constants.d.ts +89 -0
- package/dist/nodes/LemonSqueezy/constants.js +207 -0
- package/dist/nodes/LemonSqueezy/helpers.d.ts +28 -0
- package/dist/nodes/LemonSqueezy/helpers.js +241 -0
- package/dist/nodes/LemonSqueezy/lemonSqueezy.svg +20 -0
- package/dist/nodes/LemonSqueezy/resources/checkout.d.ts +3 -0
- package/dist/nodes/LemonSqueezy/resources/checkout.js +272 -0
- package/dist/nodes/LemonSqueezy/resources/customer.d.ts +3 -0
- package/dist/nodes/LemonSqueezy/resources/customer.js +242 -0
- package/dist/nodes/LemonSqueezy/resources/discount.d.ts +3 -0
- package/dist/nodes/LemonSqueezy/resources/discount.js +210 -0
- package/dist/nodes/LemonSqueezy/resources/index.d.ts +15 -0
- package/dist/nodes/LemonSqueezy/resources/index.js +76 -0
- package/dist/nodes/LemonSqueezy/resources/licenseKey.d.ts +3 -0
- package/dist/nodes/LemonSqueezy/resources/licenseKey.js +209 -0
- package/dist/nodes/LemonSqueezy/resources/order.d.ts +3 -0
- package/dist/nodes/LemonSqueezy/resources/order.js +113 -0
- package/dist/nodes/LemonSqueezy/resources/product.d.ts +3 -0
- package/dist/nodes/LemonSqueezy/resources/product.js +93 -0
- package/dist/nodes/LemonSqueezy/resources/store.d.ts +3 -0
- package/dist/nodes/LemonSqueezy/resources/store.js +64 -0
- package/dist/nodes/LemonSqueezy/resources/subscription.d.ts +3 -0
- package/dist/nodes/LemonSqueezy/resources/subscription.js +196 -0
- package/dist/nodes/LemonSqueezy/resources/variant.d.ts +3 -0
- package/dist/nodes/LemonSqueezy/resources/variant.js +96 -0
- package/dist/nodes/LemonSqueezy/resources/webhook.d.ts +3 -0
- package/dist/nodes/LemonSqueezy/resources/webhook.js +206 -0
- package/dist/nodes/LemonSqueezy/types.d.ts +364 -0
- package/dist/nodes/LemonSqueezy/types.js +2 -0
- package/package.json +71 -0
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerFields = exports.customerOperations = void 0;
|
|
4
|
+
const constants_1 = require("../constants");
|
|
5
|
+
exports.customerOperations = {
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: { resource: ['customer'] },
|
|
12
|
+
},
|
|
13
|
+
options: [
|
|
14
|
+
{
|
|
15
|
+
name: 'Create',
|
|
16
|
+
value: 'create',
|
|
17
|
+
action: 'Create a customer',
|
|
18
|
+
description: 'Create a new customer',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'Delete',
|
|
22
|
+
value: 'delete',
|
|
23
|
+
action: 'Delete a customer',
|
|
24
|
+
description: 'Archive a customer',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'Get',
|
|
28
|
+
value: 'get',
|
|
29
|
+
action: 'Get a customer',
|
|
30
|
+
description: 'Retrieve a single customer by ID',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'Get Many',
|
|
34
|
+
value: 'getAll',
|
|
35
|
+
action: 'Get many customers',
|
|
36
|
+
description: 'Retrieve multiple customers',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'Update',
|
|
40
|
+
value: 'update',
|
|
41
|
+
action: 'Update a customer',
|
|
42
|
+
description: 'Update a customer',
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
default: 'getAll',
|
|
46
|
+
};
|
|
47
|
+
exports.customerFields = [
|
|
48
|
+
// Customer ID for Get/Update/Delete operations
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Customer ID',
|
|
51
|
+
name: 'customerId',
|
|
52
|
+
type: 'string',
|
|
53
|
+
required: true,
|
|
54
|
+
default: '',
|
|
55
|
+
description: 'The ID of the customer',
|
|
56
|
+
displayOptions: {
|
|
57
|
+
show: { resource: ['customer'], operation: ['get', 'update', 'delete'] },
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
// Create Fields
|
|
61
|
+
{
|
|
62
|
+
displayName: 'Store ID',
|
|
63
|
+
name: 'customerStoreId',
|
|
64
|
+
type: 'string',
|
|
65
|
+
required: true,
|
|
66
|
+
default: '',
|
|
67
|
+
description: 'The ID of the store this customer belongs to',
|
|
68
|
+
displayOptions: {
|
|
69
|
+
show: { resource: ['customer'], operation: ['create'] },
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
displayName: 'Name',
|
|
74
|
+
name: 'customerName',
|
|
75
|
+
type: 'string',
|
|
76
|
+
required: true,
|
|
77
|
+
default: '',
|
|
78
|
+
description: 'The full name of the customer',
|
|
79
|
+
displayOptions: {
|
|
80
|
+
show: { resource: ['customer'], operation: ['create'] },
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
displayName: 'Email',
|
|
85
|
+
name: 'customerEmail',
|
|
86
|
+
type: 'string',
|
|
87
|
+
placeholder: 'name@email.com',
|
|
88
|
+
required: true,
|
|
89
|
+
default: '',
|
|
90
|
+
description: 'The email address of the customer',
|
|
91
|
+
displayOptions: {
|
|
92
|
+
show: { resource: ['customer'], operation: ['create'] },
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
displayName: 'Additional Fields',
|
|
97
|
+
name: 'additionalFields',
|
|
98
|
+
type: 'collection',
|
|
99
|
+
placeholder: 'Add Field',
|
|
100
|
+
default: {},
|
|
101
|
+
displayOptions: {
|
|
102
|
+
show: { resource: ['customer'], operation: ['create'] },
|
|
103
|
+
},
|
|
104
|
+
options: [
|
|
105
|
+
{
|
|
106
|
+
displayName: 'City',
|
|
107
|
+
name: 'city',
|
|
108
|
+
type: 'string',
|
|
109
|
+
default: '',
|
|
110
|
+
description: 'The city of the customer',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
displayName: 'Country',
|
|
114
|
+
name: 'country',
|
|
115
|
+
type: 'string',
|
|
116
|
+
default: '',
|
|
117
|
+
description: 'ISO 3166-1 alpha-2 country code (e.g., US, GB, DE)',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
displayName: 'Region',
|
|
121
|
+
name: 'region',
|
|
122
|
+
type: 'string',
|
|
123
|
+
default: '',
|
|
124
|
+
description: 'The region/state of the customer',
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
// Update Fields
|
|
129
|
+
{
|
|
130
|
+
displayName: 'Update Fields',
|
|
131
|
+
name: 'updateFields',
|
|
132
|
+
type: 'collection',
|
|
133
|
+
placeholder: 'Add Field',
|
|
134
|
+
default: {},
|
|
135
|
+
displayOptions: {
|
|
136
|
+
show: { resource: ['customer'], operation: ['update'] },
|
|
137
|
+
},
|
|
138
|
+
options: [
|
|
139
|
+
{
|
|
140
|
+
displayName: 'Name',
|
|
141
|
+
name: 'name',
|
|
142
|
+
type: 'string',
|
|
143
|
+
default: '',
|
|
144
|
+
description: 'The full name of the customer',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
displayName: 'Email',
|
|
148
|
+
name: 'email',
|
|
149
|
+
type: 'string',
|
|
150
|
+
default: '',
|
|
151
|
+
description: 'The email address of the customer',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
displayName: 'City',
|
|
155
|
+
name: 'city',
|
|
156
|
+
type: 'string',
|
|
157
|
+
default: '',
|
|
158
|
+
description: 'The city of the customer',
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
displayName: 'Country',
|
|
162
|
+
name: 'country',
|
|
163
|
+
type: 'string',
|
|
164
|
+
default: '',
|
|
165
|
+
description: 'ISO 3166-1 alpha-2 country code',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
displayName: 'Region',
|
|
169
|
+
name: 'region',
|
|
170
|
+
type: 'string',
|
|
171
|
+
default: '',
|
|
172
|
+
description: 'The region/state of the customer',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
displayName: 'Status',
|
|
176
|
+
name: 'status',
|
|
177
|
+
type: 'options',
|
|
178
|
+
options: constants_1.CUSTOMER_STATUSES,
|
|
179
|
+
default: '',
|
|
180
|
+
description: 'The status of the customer',
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
},
|
|
184
|
+
// Return All
|
|
185
|
+
{
|
|
186
|
+
displayName: 'Return All',
|
|
187
|
+
name: 'returnAll',
|
|
188
|
+
type: 'boolean',
|
|
189
|
+
default: false,
|
|
190
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
191
|
+
displayOptions: {
|
|
192
|
+
show: { resource: ['customer'], operation: ['getAll'] },
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
// Limit
|
|
196
|
+
{
|
|
197
|
+
displayName: 'Limit',
|
|
198
|
+
name: 'limit',
|
|
199
|
+
type: 'number',
|
|
200
|
+
default: 50,
|
|
201
|
+
description: 'Max number of results to return',
|
|
202
|
+
typeOptions: { minValue: 1 },
|
|
203
|
+
displayOptions: {
|
|
204
|
+
show: { resource: ['customer'], operation: ['getAll'], returnAll: [false] },
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
// Filters
|
|
208
|
+
{
|
|
209
|
+
displayName: 'Filters',
|
|
210
|
+
name: 'filters',
|
|
211
|
+
type: 'collection',
|
|
212
|
+
placeholder: 'Add Filter',
|
|
213
|
+
default: {},
|
|
214
|
+
displayOptions: {
|
|
215
|
+
show: { resource: ['customer'], operation: ['getAll'] },
|
|
216
|
+
},
|
|
217
|
+
options: [
|
|
218
|
+
{
|
|
219
|
+
displayName: 'Store ID',
|
|
220
|
+
name: 'storeId',
|
|
221
|
+
type: 'string',
|
|
222
|
+
default: '',
|
|
223
|
+
description: 'Filter by store ID',
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
displayName: 'Email',
|
|
227
|
+
name: 'email',
|
|
228
|
+
type: 'string',
|
|
229
|
+
default: '',
|
|
230
|
+
description: 'Filter by customer email',
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
displayName: 'Status',
|
|
234
|
+
name: 'status',
|
|
235
|
+
type: 'options',
|
|
236
|
+
options: constants_1.CUSTOMER_STATUSES,
|
|
237
|
+
default: '',
|
|
238
|
+
description: 'Filter by customer status',
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
},
|
|
242
|
+
];
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.discountFields = exports.discountOperations = void 0;
|
|
4
|
+
const constants_1 = require("../constants");
|
|
5
|
+
exports.discountOperations = {
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: { resource: ['discount'] },
|
|
12
|
+
},
|
|
13
|
+
options: [
|
|
14
|
+
{
|
|
15
|
+
name: 'Create',
|
|
16
|
+
value: 'create',
|
|
17
|
+
action: 'Create a discount',
|
|
18
|
+
description: 'Create a new discount code',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'Delete',
|
|
22
|
+
value: 'delete',
|
|
23
|
+
action: 'Delete a discount',
|
|
24
|
+
description: 'Delete a discount code',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'Get',
|
|
28
|
+
value: 'get',
|
|
29
|
+
action: 'Get a discount',
|
|
30
|
+
description: 'Retrieve a single discount by ID',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'Get Many',
|
|
34
|
+
value: 'getAll',
|
|
35
|
+
action: 'Get many discounts',
|
|
36
|
+
description: 'Retrieve multiple discounts',
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
default: 'getAll',
|
|
40
|
+
};
|
|
41
|
+
exports.discountFields = [
|
|
42
|
+
// Discount ID for Get/Delete operations
|
|
43
|
+
{
|
|
44
|
+
displayName: 'Discount ID',
|
|
45
|
+
name: 'discountId',
|
|
46
|
+
type: 'string',
|
|
47
|
+
required: true,
|
|
48
|
+
default: '',
|
|
49
|
+
description: 'The ID of the discount',
|
|
50
|
+
displayOptions: {
|
|
51
|
+
show: { resource: ['discount'], operation: ['get', 'delete'] },
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
// Create Fields
|
|
55
|
+
{
|
|
56
|
+
displayName: 'Store ID',
|
|
57
|
+
name: 'discountStoreId',
|
|
58
|
+
type: 'string',
|
|
59
|
+
required: true,
|
|
60
|
+
default: '',
|
|
61
|
+
description: 'The ID of the store this discount belongs to',
|
|
62
|
+
displayOptions: {
|
|
63
|
+
show: { resource: ['discount'], operation: ['create'] },
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
displayName: 'Name',
|
|
68
|
+
name: 'discountName',
|
|
69
|
+
type: 'string',
|
|
70
|
+
required: true,
|
|
71
|
+
default: '',
|
|
72
|
+
description: 'Internal name for the discount (not visible to customers)',
|
|
73
|
+
displayOptions: {
|
|
74
|
+
show: { resource: ['discount'], operation: ['create'] },
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
displayName: 'Code',
|
|
79
|
+
name: 'discountCode',
|
|
80
|
+
type: 'string',
|
|
81
|
+
required: true,
|
|
82
|
+
default: '',
|
|
83
|
+
description: 'The discount code customers will use at checkout',
|
|
84
|
+
displayOptions: {
|
|
85
|
+
show: { resource: ['discount'], operation: ['create'] },
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
displayName: 'Amount',
|
|
90
|
+
name: 'discountAmount',
|
|
91
|
+
type: 'number',
|
|
92
|
+
required: true,
|
|
93
|
+
default: 0,
|
|
94
|
+
description: 'Discount amount (percentage 0-100 or fixed amount in cents)',
|
|
95
|
+
displayOptions: {
|
|
96
|
+
show: { resource: ['discount'], operation: ['create'] },
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
displayName: 'Amount Type',
|
|
101
|
+
name: 'discountAmountType',
|
|
102
|
+
type: 'options',
|
|
103
|
+
options: constants_1.DISCOUNT_AMOUNT_TYPES,
|
|
104
|
+
default: 'percent',
|
|
105
|
+
description: 'Whether the discount is a percentage or fixed amount',
|
|
106
|
+
displayOptions: {
|
|
107
|
+
show: { resource: ['discount'], operation: ['create'] },
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
displayName: 'Additional Options',
|
|
112
|
+
name: 'additionalOptions',
|
|
113
|
+
type: 'collection',
|
|
114
|
+
placeholder: 'Add Option',
|
|
115
|
+
default: {},
|
|
116
|
+
displayOptions: {
|
|
117
|
+
show: { resource: ['discount'], operation: ['create'] },
|
|
118
|
+
},
|
|
119
|
+
options: [
|
|
120
|
+
{
|
|
121
|
+
displayName: 'Duration',
|
|
122
|
+
name: 'duration',
|
|
123
|
+
type: 'options',
|
|
124
|
+
options: constants_1.DISCOUNT_DURATION_TYPES,
|
|
125
|
+
default: 'once',
|
|
126
|
+
description: 'How long the discount should apply for subscriptions',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
displayName: 'Duration In Months',
|
|
130
|
+
name: 'durationInMonths',
|
|
131
|
+
type: 'number',
|
|
132
|
+
default: 1,
|
|
133
|
+
description: 'Number of months the discount applies (only for "repeating" duration)',
|
|
134
|
+
typeOptions: { minValue: 1 },
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
displayName: 'Max Redemptions',
|
|
138
|
+
name: 'maxRedemptions',
|
|
139
|
+
type: 'number',
|
|
140
|
+
default: 0,
|
|
141
|
+
description: 'Maximum number of times this discount can be used (0 for unlimited)',
|
|
142
|
+
typeOptions: { minValue: 0 },
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
displayName: 'Starts At',
|
|
146
|
+
name: 'startsAt',
|
|
147
|
+
type: 'dateTime',
|
|
148
|
+
default: '',
|
|
149
|
+
description: 'When the discount becomes active (ISO 8601 format)',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
displayName: 'Expires At',
|
|
153
|
+
name: 'expiresAt',
|
|
154
|
+
type: 'dateTime',
|
|
155
|
+
default: '',
|
|
156
|
+
description: 'When the discount expires (ISO 8601 format)',
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
displayName: 'Test Mode',
|
|
160
|
+
name: 'testMode',
|
|
161
|
+
type: 'boolean',
|
|
162
|
+
default: false,
|
|
163
|
+
description: 'Whether this is a test discount',
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
},
|
|
167
|
+
// Return All
|
|
168
|
+
{
|
|
169
|
+
displayName: 'Return All',
|
|
170
|
+
name: 'returnAll',
|
|
171
|
+
type: 'boolean',
|
|
172
|
+
default: false,
|
|
173
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
174
|
+
displayOptions: {
|
|
175
|
+
show: { resource: ['discount'], operation: ['getAll'] },
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
// Limit
|
|
179
|
+
{
|
|
180
|
+
displayName: 'Limit',
|
|
181
|
+
name: 'limit',
|
|
182
|
+
type: 'number',
|
|
183
|
+
default: 50,
|
|
184
|
+
description: 'Max number of results to return',
|
|
185
|
+
typeOptions: { minValue: 1 },
|
|
186
|
+
displayOptions: {
|
|
187
|
+
show: { resource: ['discount'], operation: ['getAll'], returnAll: [false] },
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
// Filters
|
|
191
|
+
{
|
|
192
|
+
displayName: 'Filters',
|
|
193
|
+
name: 'filters',
|
|
194
|
+
type: 'collection',
|
|
195
|
+
placeholder: 'Add Filter',
|
|
196
|
+
default: {},
|
|
197
|
+
displayOptions: {
|
|
198
|
+
show: { resource: ['discount'], operation: ['getAll'] },
|
|
199
|
+
},
|
|
200
|
+
options: [
|
|
201
|
+
{
|
|
202
|
+
displayName: 'Store ID',
|
|
203
|
+
name: 'storeId',
|
|
204
|
+
type: 'string',
|
|
205
|
+
default: '',
|
|
206
|
+
description: 'Filter by store ID',
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
},
|
|
210
|
+
];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
import { productOperations, productFields } from './product';
|
|
3
|
+
import { orderOperations, orderFields } from './order';
|
|
4
|
+
import { subscriptionOperations, subscriptionFields } from './subscription';
|
|
5
|
+
import { customerOperations, customerFields } from './customer';
|
|
6
|
+
import { licenseKeyOperations, licenseKeyFields } from './licenseKey';
|
|
7
|
+
import { discountOperations, discountFields } from './discount';
|
|
8
|
+
import { storeOperations, storeFields } from './store';
|
|
9
|
+
import { variantOperations, variantFields } from './variant';
|
|
10
|
+
import { checkoutOperations, checkoutFields } from './checkout';
|
|
11
|
+
import { webhookOperations, webhookFields } from './webhook';
|
|
12
|
+
export declare const resourceProperty: INodeProperties;
|
|
13
|
+
export declare const allOperations: INodeProperties[];
|
|
14
|
+
export declare const allFields: INodeProperties[];
|
|
15
|
+
export { productOperations, productFields, orderOperations, orderFields, subscriptionOperations, subscriptionFields, customerOperations, customerFields, licenseKeyOperations, licenseKeyFields, discountOperations, discountFields, storeOperations, storeFields, variantOperations, variantFields, checkoutOperations, checkoutFields, webhookOperations, webhookFields, };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.webhookFields = exports.webhookOperations = exports.checkoutFields = exports.checkoutOperations = exports.variantFields = exports.variantOperations = exports.storeFields = exports.storeOperations = exports.discountFields = exports.discountOperations = exports.licenseKeyFields = exports.licenseKeyOperations = exports.customerFields = exports.customerOperations = exports.subscriptionFields = exports.subscriptionOperations = exports.orderFields = exports.orderOperations = exports.productFields = exports.productOperations = exports.allFields = exports.allOperations = exports.resourceProperty = void 0;
|
|
4
|
+
const product_1 = require("./product");
|
|
5
|
+
Object.defineProperty(exports, "productOperations", { enumerable: true, get: function () { return product_1.productOperations; } });
|
|
6
|
+
Object.defineProperty(exports, "productFields", { enumerable: true, get: function () { return product_1.productFields; } });
|
|
7
|
+
const order_1 = require("./order");
|
|
8
|
+
Object.defineProperty(exports, "orderOperations", { enumerable: true, get: function () { return order_1.orderOperations; } });
|
|
9
|
+
Object.defineProperty(exports, "orderFields", { enumerable: true, get: function () { return order_1.orderFields; } });
|
|
10
|
+
const subscription_1 = require("./subscription");
|
|
11
|
+
Object.defineProperty(exports, "subscriptionOperations", { enumerable: true, get: function () { return subscription_1.subscriptionOperations; } });
|
|
12
|
+
Object.defineProperty(exports, "subscriptionFields", { enumerable: true, get: function () { return subscription_1.subscriptionFields; } });
|
|
13
|
+
const customer_1 = require("./customer");
|
|
14
|
+
Object.defineProperty(exports, "customerOperations", { enumerable: true, get: function () { return customer_1.customerOperations; } });
|
|
15
|
+
Object.defineProperty(exports, "customerFields", { enumerable: true, get: function () { return customer_1.customerFields; } });
|
|
16
|
+
const licenseKey_1 = require("./licenseKey");
|
|
17
|
+
Object.defineProperty(exports, "licenseKeyOperations", { enumerable: true, get: function () { return licenseKey_1.licenseKeyOperations; } });
|
|
18
|
+
Object.defineProperty(exports, "licenseKeyFields", { enumerable: true, get: function () { return licenseKey_1.licenseKeyFields; } });
|
|
19
|
+
const discount_1 = require("./discount");
|
|
20
|
+
Object.defineProperty(exports, "discountOperations", { enumerable: true, get: function () { return discount_1.discountOperations; } });
|
|
21
|
+
Object.defineProperty(exports, "discountFields", { enumerable: true, get: function () { return discount_1.discountFields; } });
|
|
22
|
+
const store_1 = require("./store");
|
|
23
|
+
Object.defineProperty(exports, "storeOperations", { enumerable: true, get: function () { return store_1.storeOperations; } });
|
|
24
|
+
Object.defineProperty(exports, "storeFields", { enumerable: true, get: function () { return store_1.storeFields; } });
|
|
25
|
+
const variant_1 = require("./variant");
|
|
26
|
+
Object.defineProperty(exports, "variantOperations", { enumerable: true, get: function () { return variant_1.variantOperations; } });
|
|
27
|
+
Object.defineProperty(exports, "variantFields", { enumerable: true, get: function () { return variant_1.variantFields; } });
|
|
28
|
+
const checkout_1 = require("./checkout");
|
|
29
|
+
Object.defineProperty(exports, "checkoutOperations", { enumerable: true, get: function () { return checkout_1.checkoutOperations; } });
|
|
30
|
+
Object.defineProperty(exports, "checkoutFields", { enumerable: true, get: function () { return checkout_1.checkoutFields; } });
|
|
31
|
+
const 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
|
+
exports.resourceProperty = {
|
|
35
|
+
displayName: 'Resource',
|
|
36
|
+
name: 'resource',
|
|
37
|
+
type: 'options',
|
|
38
|
+
noDataExpression: true,
|
|
39
|
+
options: [
|
|
40
|
+
{ name: 'Checkout', value: 'checkout' },
|
|
41
|
+
{ name: 'Customer', value: 'customer' },
|
|
42
|
+
{ name: 'Discount', value: 'discount' },
|
|
43
|
+
{ name: 'License Key', value: 'licenseKey' },
|
|
44
|
+
{ name: 'Order', value: 'order' },
|
|
45
|
+
{ name: 'Product', value: 'product' },
|
|
46
|
+
{ name: 'Store', value: 'store' },
|
|
47
|
+
{ name: 'Subscription', value: 'subscription' },
|
|
48
|
+
{ name: 'Variant', value: 'variant' },
|
|
49
|
+
{ name: 'Webhook', value: 'webhook' },
|
|
50
|
+
],
|
|
51
|
+
default: 'product',
|
|
52
|
+
};
|
|
53
|
+
exports.allOperations = [
|
|
54
|
+
product_1.productOperations,
|
|
55
|
+
order_1.orderOperations,
|
|
56
|
+
subscription_1.subscriptionOperations,
|
|
57
|
+
customer_1.customerOperations,
|
|
58
|
+
licenseKey_1.licenseKeyOperations,
|
|
59
|
+
discount_1.discountOperations,
|
|
60
|
+
store_1.storeOperations,
|
|
61
|
+
variant_1.variantOperations,
|
|
62
|
+
checkout_1.checkoutOperations,
|
|
63
|
+
webhook_1.webhookOperations,
|
|
64
|
+
];
|
|
65
|
+
exports.allFields = [
|
|
66
|
+
...product_1.productFields,
|
|
67
|
+
...order_1.orderFields,
|
|
68
|
+
...subscription_1.subscriptionFields,
|
|
69
|
+
...customer_1.customerFields,
|
|
70
|
+
...licenseKey_1.licenseKeyFields,
|
|
71
|
+
...discount_1.discountFields,
|
|
72
|
+
...store_1.storeFields,
|
|
73
|
+
...variant_1.variantFields,
|
|
74
|
+
...checkout_1.checkoutFields,
|
|
75
|
+
...webhook_1.webhookFields,
|
|
76
|
+
];
|