arky-sdk 0.3.129 → 0.3.131
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/dist/index.cjs +3 -220
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +117 -253
- package/dist/index.d.ts +117 -253
- package/dist/index.js +4 -220
- package/dist/index.js.map +1 -1
- package/dist/types.cjs +0 -7
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +1014 -1074
- package/dist/types.d.ts +1014 -1074
- package/dist/types.js +1 -7
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,1311 +1,1251 @@
|
|
|
1
|
-
interface
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
url: string;
|
|
9
|
-
status: number;
|
|
10
|
-
request?: any;
|
|
11
|
-
durationMs?: number;
|
|
12
|
-
requestId?: string | null;
|
|
13
|
-
}) => void | Promise<void>;
|
|
14
|
-
onError?: (ctx: {
|
|
15
|
-
error: any;
|
|
16
|
-
method: string;
|
|
17
|
-
url: string;
|
|
18
|
-
status?: number;
|
|
19
|
-
request?: any;
|
|
20
|
-
response?: any;
|
|
21
|
-
durationMs?: number;
|
|
22
|
-
requestId?: string | null;
|
|
23
|
-
aborted?: boolean;
|
|
24
|
-
}) => void | Promise<void>;
|
|
25
|
-
}
|
|
26
|
-
interface EshopItem {
|
|
27
|
-
productId: string;
|
|
28
|
-
variantId: string;
|
|
29
|
-
quantity: number;
|
|
1
|
+
interface PaymentRefund {
|
|
2
|
+
id: string;
|
|
3
|
+
entity: string;
|
|
4
|
+
total: number;
|
|
5
|
+
providerRefundId?: string;
|
|
6
|
+
status: string;
|
|
7
|
+
createdAt: number;
|
|
30
8
|
}
|
|
31
|
-
interface
|
|
32
|
-
|
|
9
|
+
interface Payment {
|
|
10
|
+
currency: string;
|
|
11
|
+
market: string;
|
|
12
|
+
subtotal: number;
|
|
13
|
+
shipping: number;
|
|
14
|
+
discount: number;
|
|
15
|
+
total: number;
|
|
16
|
+
paid: number;
|
|
17
|
+
tax?: {
|
|
18
|
+
amount: number;
|
|
19
|
+
modeSnapshot?: string;
|
|
20
|
+
rateBps: number;
|
|
21
|
+
lines: Array<{
|
|
22
|
+
rateBps: number;
|
|
23
|
+
amount: number;
|
|
24
|
+
label?: string;
|
|
25
|
+
scope?: string;
|
|
26
|
+
}>;
|
|
27
|
+
};
|
|
28
|
+
promoCode?: {
|
|
29
|
+
id: string;
|
|
30
|
+
code: string;
|
|
31
|
+
type: string;
|
|
32
|
+
value: number;
|
|
33
|
+
};
|
|
34
|
+
type: PaymentMethodType;
|
|
35
|
+
provider?: {
|
|
36
|
+
customerId: string;
|
|
37
|
+
paymentIntentId?: string;
|
|
38
|
+
subscriptionId?: string;
|
|
39
|
+
priceId?: string;
|
|
40
|
+
};
|
|
41
|
+
refunds: PaymentRefund[];
|
|
42
|
+
zoneId?: string;
|
|
33
43
|
paymentMethodId?: string;
|
|
34
44
|
shippingMethodId?: string;
|
|
35
|
-
promoCode?: string;
|
|
36
|
-
location?: Location;
|
|
37
45
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
shippingMethodId: string;
|
|
43
|
-
promoCodeId?: string;
|
|
44
|
-
address?: Location;
|
|
45
|
-
email?: string;
|
|
46
|
-
phone?: string;
|
|
46
|
+
declare enum PaymentMethodType {
|
|
47
|
+
Cash = "CASH",
|
|
48
|
+
CreditCard = "CREDIT_CARD",
|
|
49
|
+
Free = "FREE"
|
|
47
50
|
}
|
|
48
|
-
interface
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
status?: string;
|
|
54
|
-
limit?: number;
|
|
55
|
-
cursor?: string;
|
|
56
|
-
query?: string;
|
|
57
|
-
statuses?: string[];
|
|
58
|
-
sortField?: string;
|
|
59
|
-
sortDirection?: string;
|
|
60
|
-
createdAtFrom?: number | null;
|
|
61
|
-
createdAtTo?: number | null;
|
|
51
|
+
interface PromoCodeValidation {
|
|
52
|
+
promoCodeId: string;
|
|
53
|
+
code: string;
|
|
54
|
+
discounts: any[];
|
|
55
|
+
conditions: any[];
|
|
62
56
|
}
|
|
63
|
-
interface
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
57
|
+
interface Quote {
|
|
58
|
+
market: string;
|
|
59
|
+
zone: Zone;
|
|
60
|
+
subtotal: number;
|
|
61
|
+
shipping: number;
|
|
62
|
+
discount: number;
|
|
63
|
+
tax: number;
|
|
64
|
+
total: number;
|
|
65
|
+
shippingMethod: ShippingMethod | null;
|
|
66
|
+
paymentMethod: PaymentMethod | null;
|
|
67
|
+
promoCode: PromoCodeValidation | null;
|
|
68
|
+
payment: Payment;
|
|
69
|
+
chargeAmount: number;
|
|
70
|
+
id?: string;
|
|
71
|
+
expiresAt?: number;
|
|
76
72
|
}
|
|
77
|
-
interface
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
hasChildren?: boolean;
|
|
82
|
-
seo?: any;
|
|
83
|
-
status?: string;
|
|
73
|
+
interface Price {
|
|
74
|
+
market: string;
|
|
75
|
+
amount: number;
|
|
76
|
+
compareAt?: number;
|
|
84
77
|
}
|
|
85
|
-
interface
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
78
|
+
interface Location {
|
|
79
|
+
country?: string | null;
|
|
80
|
+
address?: string | null;
|
|
81
|
+
city?: string | null;
|
|
82
|
+
state?: string | null;
|
|
83
|
+
postalCode?: string | null;
|
|
84
|
+
coordinates?: {
|
|
85
|
+
lat: number;
|
|
86
|
+
lon: number;
|
|
87
|
+
} | null;
|
|
93
88
|
}
|
|
94
|
-
interface
|
|
89
|
+
interface EshopCartItem {
|
|
95
90
|
id: string;
|
|
91
|
+
productId: string;
|
|
92
|
+
variantId: string;
|
|
93
|
+
productName: string;
|
|
94
|
+
productSlug: string;
|
|
95
|
+
variantAttributes: Record<string, any>;
|
|
96
|
+
price: Price;
|
|
97
|
+
quantity: number;
|
|
98
|
+
addedAt: number;
|
|
96
99
|
}
|
|
97
|
-
interface
|
|
100
|
+
interface ReservationCartItem {
|
|
98
101
|
id: string;
|
|
102
|
+
serviceId: string;
|
|
103
|
+
serviceName: string;
|
|
104
|
+
date: string;
|
|
105
|
+
from: number;
|
|
106
|
+
to: number;
|
|
107
|
+
timeText: string;
|
|
108
|
+
providerId?: string;
|
|
109
|
+
blocks: any[];
|
|
99
110
|
}
|
|
100
|
-
interface
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
111
|
+
interface PaymentProviderConfig {
|
|
112
|
+
type: "STRIPE";
|
|
113
|
+
publicKey: string;
|
|
114
|
+
secretKey: string;
|
|
115
|
+
webhookSecret: string;
|
|
104
116
|
}
|
|
105
|
-
interface
|
|
106
|
-
|
|
107
|
-
|
|
117
|
+
interface ShippingWeightTier {
|
|
118
|
+
upToGrams: number;
|
|
119
|
+
amount: number;
|
|
108
120
|
}
|
|
109
|
-
interface
|
|
121
|
+
interface PaymentMethod {
|
|
110
122
|
id: string;
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
interface UpdateMediaParams {
|
|
114
|
-
mediaId: string;
|
|
115
|
-
seo?: any;
|
|
116
|
-
title?: string;
|
|
117
|
-
description?: string;
|
|
118
|
-
alt?: string;
|
|
119
|
-
}
|
|
120
|
-
interface GetBusinessMediaParams {
|
|
121
|
-
cursor?: string | null;
|
|
122
|
-
limit: number;
|
|
123
|
-
ids?: string[];
|
|
124
|
-
query?: string;
|
|
125
|
-
mimeType?: string;
|
|
126
|
-
sortField?: string;
|
|
127
|
-
sortDirection?: 'asc' | 'desc';
|
|
128
|
-
}
|
|
129
|
-
interface LoginUserParams {
|
|
130
|
-
email?: string;
|
|
131
|
-
password?: string;
|
|
132
|
-
provider: string;
|
|
133
|
-
token?: string;
|
|
134
|
-
code?: string;
|
|
135
|
-
originUrl?: string;
|
|
136
|
-
}
|
|
137
|
-
interface RegisterUserParams {
|
|
138
|
-
name: string;
|
|
139
|
-
email: string;
|
|
140
|
-
password: string;
|
|
141
|
-
}
|
|
142
|
-
interface AddPhoneNumberParams {
|
|
143
|
-
phoneNumber: string;
|
|
144
|
-
}
|
|
145
|
-
interface PhoneNumberConfirmParams {
|
|
146
|
-
phoneNumber: string;
|
|
147
|
-
code: string;
|
|
123
|
+
type: PaymentMethodType;
|
|
148
124
|
}
|
|
149
|
-
interface
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
blocks?: any[];
|
|
158
|
-
sortField?: string;
|
|
159
|
-
sortDirection?: string;
|
|
160
|
-
priceFrom?: number;
|
|
161
|
-
priceTo?: number;
|
|
125
|
+
interface ShippingMethod {
|
|
126
|
+
id: string;
|
|
127
|
+
taxable: boolean;
|
|
128
|
+
etaText: string;
|
|
129
|
+
pickupLocation?: Location;
|
|
130
|
+
amount: number;
|
|
131
|
+
freeAbove?: number;
|
|
132
|
+
weightTiers?: ShippingWeightTier[];
|
|
162
133
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
134
|
+
type ZoneScope = "ORDER" | "RESERVATION";
|
|
135
|
+
interface Zone {
|
|
136
|
+
id: string;
|
|
137
|
+
marketId: string;
|
|
138
|
+
scope: ZoneScope;
|
|
139
|
+
countries: string[];
|
|
140
|
+
states: string[];
|
|
141
|
+
postalCodes: string[];
|
|
142
|
+
taxBps: number;
|
|
143
|
+
paymentMethods: PaymentMethod[];
|
|
144
|
+
shippingMethods: ShippingMethod[];
|
|
171
145
|
}
|
|
172
|
-
interface
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
providerId: string;
|
|
146
|
+
interface Market {
|
|
147
|
+
id: string;
|
|
148
|
+
currency: string;
|
|
149
|
+
taxMode: "EXCLUSIVE" | "INCLUSIVE";
|
|
177
150
|
}
|
|
178
|
-
interface
|
|
179
|
-
|
|
180
|
-
paymentMethodId?: string;
|
|
181
|
-
promoCode?: string;
|
|
182
|
-
location?: Location;
|
|
151
|
+
interface Language {
|
|
152
|
+
id: string;
|
|
183
153
|
}
|
|
184
|
-
interface
|
|
185
|
-
|
|
186
|
-
|
|
154
|
+
interface BusinessEmails {
|
|
155
|
+
billing: string;
|
|
156
|
+
support: string;
|
|
187
157
|
}
|
|
188
|
-
interface
|
|
189
|
-
|
|
190
|
-
|
|
158
|
+
interface OrderConfigs {
|
|
159
|
+
isEmailRequired: boolean;
|
|
160
|
+
isPhoneRequired: boolean;
|
|
191
161
|
}
|
|
192
|
-
interface
|
|
193
|
-
|
|
194
|
-
|
|
162
|
+
interface BusinessReservationConfigs {
|
|
163
|
+
isEmailRequired: boolean;
|
|
164
|
+
isPhoneRequired: boolean;
|
|
195
165
|
}
|
|
196
|
-
interface
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
166
|
+
interface BusinessConfig {
|
|
167
|
+
languages: Language[];
|
|
168
|
+
markets: Market[];
|
|
169
|
+
zones: Zone[];
|
|
170
|
+
buildHooks: string[];
|
|
171
|
+
webhooks: any[];
|
|
172
|
+
orderBlocks: any[];
|
|
173
|
+
reservationBlocks: any[];
|
|
174
|
+
orderConfigs: OrderConfigs;
|
|
175
|
+
reservationConfigs: BusinessReservationConfigs;
|
|
176
|
+
paymentProvider?: PaymentProviderConfig;
|
|
177
|
+
aiProvider?: any;
|
|
178
|
+
emails: BusinessEmails;
|
|
200
179
|
}
|
|
201
|
-
interface
|
|
202
|
-
|
|
203
|
-
|
|
180
|
+
interface Business {
|
|
181
|
+
id: string;
|
|
182
|
+
name: string;
|
|
183
|
+
configs?: BusinessConfig;
|
|
204
184
|
}
|
|
205
|
-
interface
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
185
|
+
interface EshopStoreState {
|
|
186
|
+
businessId: string;
|
|
187
|
+
selectedShippingMethodId: string | null;
|
|
188
|
+
userToken: string | null;
|
|
189
|
+
processingCheckout: boolean;
|
|
190
|
+
loading: boolean;
|
|
191
|
+
error: string | null;
|
|
192
|
+
phoneNumber: string;
|
|
193
|
+
phoneError: string | null;
|
|
194
|
+
verificationCode: string;
|
|
195
|
+
verifyError: string | null;
|
|
209
196
|
}
|
|
210
|
-
interface
|
|
197
|
+
interface Block {
|
|
211
198
|
id: string;
|
|
212
199
|
key: string;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
concurrentLimit: number;
|
|
217
|
-
taxonomyIds: string[];
|
|
218
|
-
blocks: Block[];
|
|
219
|
-
createdAt: number;
|
|
220
|
-
updatedAt: number;
|
|
221
|
-
workingTime: WorkingTime | null;
|
|
222
|
-
timeline: TimelinePoint[];
|
|
223
|
-
}
|
|
224
|
-
interface GetAnalyticsParams {
|
|
225
|
-
metrics?: string[];
|
|
226
|
-
period?: string;
|
|
227
|
-
startDate?: string;
|
|
228
|
-
endDate?: string;
|
|
229
|
-
interval?: string;
|
|
230
|
-
}
|
|
231
|
-
interface GetAnalyticsHealthParams {
|
|
232
|
-
}
|
|
233
|
-
interface CreateRoleParams {
|
|
234
|
-
name: string;
|
|
235
|
-
parentRoles?: string[];
|
|
236
|
-
permissions?: any[];
|
|
237
|
-
[key: string]: any;
|
|
200
|
+
type: string;
|
|
201
|
+
properties?: any;
|
|
202
|
+
value?: any;
|
|
238
203
|
}
|
|
239
|
-
interface
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
204
|
+
interface Seo {
|
|
205
|
+
slug: Record<string, string>;
|
|
206
|
+
metaTitle: Record<string, string>;
|
|
207
|
+
metaDescription: Record<string, string>;
|
|
208
|
+
canonicalUrl: Record<string, string>;
|
|
209
|
+
ogImage: string;
|
|
245
210
|
}
|
|
246
|
-
interface
|
|
211
|
+
interface MediaResolution {
|
|
247
212
|
id: string;
|
|
213
|
+
size: string;
|
|
214
|
+
url: string;
|
|
248
215
|
}
|
|
249
|
-
interface
|
|
216
|
+
interface Media {
|
|
250
217
|
id: string;
|
|
218
|
+
resolutions: {
|
|
219
|
+
[key: string]: MediaResolution;
|
|
220
|
+
};
|
|
221
|
+
mimeType: string;
|
|
222
|
+
title?: string | null;
|
|
223
|
+
description?: string | null;
|
|
224
|
+
alt?: string | null;
|
|
225
|
+
owner: string;
|
|
226
|
+
metadata?: string | null;
|
|
227
|
+
uploadedAt: string;
|
|
228
|
+
seo: Seo;
|
|
251
229
|
}
|
|
252
|
-
interface
|
|
253
|
-
|
|
254
|
-
|
|
230
|
+
interface ApiResponse<T> {
|
|
231
|
+
success: boolean;
|
|
232
|
+
data?: T;
|
|
233
|
+
error?: string;
|
|
234
|
+
cursor?: string;
|
|
235
|
+
total?: number;
|
|
255
236
|
}
|
|
256
|
-
interface
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
237
|
+
interface PaginatedResponse<T> {
|
|
238
|
+
data: T[];
|
|
239
|
+
meta?: {
|
|
240
|
+
total: number;
|
|
241
|
+
page: number;
|
|
242
|
+
per_page: number;
|
|
243
|
+
};
|
|
261
244
|
}
|
|
262
|
-
interface
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
245
|
+
interface ReservationStoreState {
|
|
246
|
+
currentStep: number;
|
|
247
|
+
totalSteps: number;
|
|
248
|
+
steps: Record<number, {
|
|
249
|
+
name: string;
|
|
250
|
+
labelKey: string;
|
|
251
|
+
}>;
|
|
252
|
+
weekdays: string[];
|
|
253
|
+
monthYear: string;
|
|
254
|
+
days: any[];
|
|
255
|
+
current: Date;
|
|
256
|
+
selectedDate: string | null;
|
|
257
|
+
slots: any[];
|
|
258
|
+
selectedSlot: any | null;
|
|
259
|
+
selectedProvider: any | null;
|
|
260
|
+
providers: any[];
|
|
261
|
+
loading: boolean;
|
|
262
|
+
startDate: string | null;
|
|
263
|
+
endDate: string | null;
|
|
264
|
+
phoneNumber: string;
|
|
265
|
+
phoneError: string | null;
|
|
266
|
+
phoneSuccess: string | null;
|
|
267
|
+
verificationCode: string;
|
|
268
|
+
verifyError: string | null;
|
|
269
|
+
isPhoneVerified: boolean;
|
|
270
|
+
isSendingCode: boolean;
|
|
271
|
+
isVerifying: boolean;
|
|
272
|
+
codeSentAt: number | null;
|
|
273
|
+
canResendAt: number | null;
|
|
274
|
+
guestToken: string | null;
|
|
275
|
+
service: any | null;
|
|
276
|
+
business: Business | null;
|
|
277
|
+
currency: string;
|
|
278
|
+
reservationBlocks: Block[];
|
|
279
|
+
apiUrl: string;
|
|
280
|
+
businessId: string;
|
|
281
|
+
timezone: string;
|
|
282
|
+
tzGroups: any;
|
|
283
|
+
items: ReservationCartItem[];
|
|
284
|
+
allowedPaymentMethods: string[];
|
|
285
|
+
paymentConfig: {
|
|
286
|
+
provider: PaymentProviderConfig | null;
|
|
287
|
+
enabled: boolean;
|
|
267
288
|
};
|
|
268
289
|
}
|
|
269
|
-
interface
|
|
270
|
-
code: string;
|
|
271
|
-
discounts: Discount[];
|
|
272
|
-
conditions: Condition[];
|
|
273
|
-
}
|
|
274
|
-
interface UpdatePromoCodeParams {
|
|
275
|
-
id: string;
|
|
276
|
-
code: string;
|
|
277
|
-
discounts: Discount[];
|
|
278
|
-
conditions: Condition[];
|
|
279
|
-
statuses?: any[];
|
|
280
|
-
}
|
|
281
|
-
interface DeletePromoCodeParams {
|
|
290
|
+
interface StatusEvent {
|
|
282
291
|
id: string;
|
|
292
|
+
changedBy: 'BUSINESS' | 'USER' | 'SYSTEM';
|
|
293
|
+
userId?: string;
|
|
294
|
+
status: string;
|
|
295
|
+
note?: string;
|
|
296
|
+
timestamp: number;
|
|
283
297
|
}
|
|
284
|
-
interface
|
|
298
|
+
interface ReservationItem {
|
|
285
299
|
id: string;
|
|
300
|
+
serviceId: string;
|
|
301
|
+
providerId: string;
|
|
302
|
+
businessId: string;
|
|
303
|
+
reservationId: string;
|
|
304
|
+
userId: string;
|
|
305
|
+
from: number;
|
|
306
|
+
to: number;
|
|
307
|
+
blocks: Block[];
|
|
308
|
+
price: Price;
|
|
286
309
|
}
|
|
287
|
-
interface
|
|
288
|
-
statuses?: string[];
|
|
289
|
-
query?: string;
|
|
290
|
-
limit?: number;
|
|
291
|
-
cursor?: string;
|
|
292
|
-
sortField?: string;
|
|
293
|
-
sortDirection?: string;
|
|
294
|
-
createdAtFrom?: string;
|
|
295
|
-
createdAtTo?: string;
|
|
296
|
-
startsAtFrom?: string;
|
|
297
|
-
startsAtTo?: string;
|
|
298
|
-
expiresAtFrom?: string;
|
|
299
|
-
expiresAtTo?: string;
|
|
300
|
-
}
|
|
301
|
-
interface CreateBusinessParams {
|
|
302
|
-
name: string;
|
|
303
|
-
slug?: string;
|
|
304
|
-
description?: string;
|
|
305
|
-
email?: string;
|
|
306
|
-
phone?: string;
|
|
307
|
-
website?: string;
|
|
308
|
-
address?: any;
|
|
309
|
-
settings?: any;
|
|
310
|
-
[key: string]: any;
|
|
311
|
-
}
|
|
312
|
-
interface UpdateBusinessParams {
|
|
310
|
+
interface Reservation {
|
|
313
311
|
id: string;
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
312
|
+
number: string;
|
|
313
|
+
userId: string;
|
|
314
|
+
blocks: Block[];
|
|
315
|
+
businessId: string;
|
|
316
|
+
statuses: StatusEvent[];
|
|
317
|
+
serviceIds: string[];
|
|
318
|
+
providerIds: string[];
|
|
319
|
+
payment: Payment;
|
|
320
|
+
business?: Business;
|
|
321
|
+
user?: any;
|
|
322
|
+
items: ReservationItem[];
|
|
317
323
|
email?: string;
|
|
318
324
|
phone?: string;
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
settings?: any;
|
|
322
|
-
[key: string]: any;
|
|
323
|
-
}
|
|
324
|
-
interface DeleteBusinessParams {
|
|
325
|
-
id: string;
|
|
325
|
+
createdAt: number;
|
|
326
|
+
lastModified: number;
|
|
326
327
|
}
|
|
327
|
-
interface
|
|
328
|
+
interface NodeNotifications {
|
|
329
|
+
emails: string[];
|
|
330
|
+
templateKey?: string | null;
|
|
328
331
|
}
|
|
329
|
-
interface
|
|
332
|
+
interface NodeConfig {
|
|
333
|
+
isPubliclyReadable: boolean;
|
|
334
|
+
isPubliclyWritable: boolean;
|
|
330
335
|
}
|
|
331
|
-
interface
|
|
336
|
+
interface Node {
|
|
332
337
|
id: string;
|
|
333
|
-
}
|
|
334
|
-
interface GetSubscriptionParams {
|
|
335
|
-
}
|
|
336
|
-
interface SubscribeParams {
|
|
337
|
-
planId: string;
|
|
338
|
-
successUrl: string;
|
|
339
|
-
cancelUrl: string;
|
|
340
|
-
}
|
|
341
|
-
interface CreatePortalSessionParams {
|
|
342
|
-
returnUrl: string;
|
|
343
|
-
}
|
|
344
|
-
interface InviteUserParams {
|
|
345
|
-
email: string;
|
|
346
|
-
roleIds?: string[] | null;
|
|
347
|
-
}
|
|
348
|
-
interface HandleInvitationParams {
|
|
349
|
-
token: string;
|
|
350
|
-
action: string;
|
|
351
|
-
}
|
|
352
|
-
interface TestWebhookParams {
|
|
353
|
-
webhook: any;
|
|
354
|
-
}
|
|
355
|
-
interface FormPropsParams {
|
|
356
|
-
isPubliclyReadable?: boolean;
|
|
357
|
-
isPubliclyWritable?: boolean;
|
|
358
|
-
isSubmissionEnabled?: boolean;
|
|
359
|
-
isCaptchaRequired?: boolean;
|
|
360
|
-
notificationEmails?: string[];
|
|
361
|
-
}
|
|
362
|
-
interface GenerateBlocksParams {
|
|
363
|
-
[key: string]: any;
|
|
364
|
-
}
|
|
365
|
-
interface GetVariableMetadataParams {
|
|
366
|
-
nodeType: string;
|
|
367
|
-
}
|
|
368
|
-
interface UserSubscribeParams {
|
|
369
|
-
target?: string;
|
|
370
|
-
identifier: string;
|
|
371
|
-
planId?: string;
|
|
372
|
-
successUrl?: string;
|
|
373
|
-
cancelUrl?: string;
|
|
374
|
-
}
|
|
375
|
-
interface CreateProductParams {
|
|
376
338
|
key: string;
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
339
|
+
businessId: string;
|
|
340
|
+
blocks: Block[];
|
|
341
|
+
parentId?: string | null;
|
|
342
|
+
hasChildren: boolean;
|
|
343
|
+
statuses: StatusEvent[];
|
|
344
|
+
seo: Seo;
|
|
345
|
+
notifications: NodeNotifications;
|
|
346
|
+
config: NodeConfig;
|
|
347
|
+
createdAt: number;
|
|
348
|
+
updatedAt: number;
|
|
383
349
|
}
|
|
384
|
-
interface
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
description?: string;
|
|
388
|
-
taxonomyIds?: string[];
|
|
389
|
-
blocks?: any[];
|
|
390
|
-
variants?: any[];
|
|
391
|
-
status?: string;
|
|
392
|
-
[key: string]: any;
|
|
350
|
+
interface ServiceDuration {
|
|
351
|
+
duration: number;
|
|
352
|
+
isPause?: boolean;
|
|
393
353
|
}
|
|
394
|
-
interface
|
|
354
|
+
interface ServiceProvider {
|
|
395
355
|
id: string;
|
|
356
|
+
providerId: string;
|
|
357
|
+
workingTime: {
|
|
358
|
+
workingDays: Array<{
|
|
359
|
+
day: string;
|
|
360
|
+
workingHours: Array<{
|
|
361
|
+
from: number;
|
|
362
|
+
to: number;
|
|
363
|
+
}>;
|
|
364
|
+
}>;
|
|
365
|
+
outcastDates: Array<{
|
|
366
|
+
month: number;
|
|
367
|
+
day: number;
|
|
368
|
+
workingHours: Array<{
|
|
369
|
+
from: number;
|
|
370
|
+
to: number;
|
|
371
|
+
}>;
|
|
372
|
+
}>;
|
|
373
|
+
specificDates: Array<{
|
|
374
|
+
date: number;
|
|
375
|
+
workingHours: Array<{
|
|
376
|
+
from: number;
|
|
377
|
+
to: number;
|
|
378
|
+
}>;
|
|
379
|
+
}>;
|
|
380
|
+
};
|
|
381
|
+
provider?: Provider;
|
|
396
382
|
}
|
|
397
|
-
interface
|
|
383
|
+
interface Service {
|
|
398
384
|
id: string;
|
|
385
|
+
key: string;
|
|
386
|
+
seo: Seo;
|
|
387
|
+
businessId: string;
|
|
388
|
+
prices: Price[];
|
|
389
|
+
durations: ServiceDuration[];
|
|
390
|
+
blocks: Block[];
|
|
391
|
+
nodeIds: string[];
|
|
392
|
+
isApprovalRequired: boolean;
|
|
393
|
+
providers: ServiceProvider[];
|
|
394
|
+
createdAt: number;
|
|
395
|
+
updatedAt: number;
|
|
396
|
+
statuses: StatusEvent[];
|
|
399
397
|
}
|
|
400
|
-
interface
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
productIds?: string[];
|
|
404
|
-
query?: string | null;
|
|
405
|
-
limit?: number | null;
|
|
406
|
-
cursor?: string | null;
|
|
407
|
-
sortField?: string | null;
|
|
408
|
-
sortDirection?: string | null;
|
|
409
|
-
createdAtFrom?: string | null;
|
|
410
|
-
createdAtTo?: string | null;
|
|
398
|
+
interface ProviderTimelinePoint {
|
|
399
|
+
timestamp: number;
|
|
400
|
+
concurrent: number;
|
|
411
401
|
}
|
|
412
|
-
interface
|
|
402
|
+
interface Provider {
|
|
413
403
|
id: string;
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
404
|
+
key: string;
|
|
405
|
+
seo: Seo;
|
|
406
|
+
businessId: string;
|
|
407
|
+
statuses: StatusEvent[];
|
|
408
|
+
concurrentLimit: number;
|
|
409
|
+
nodeIds: string[];
|
|
410
|
+
blocks: Block[];
|
|
411
|
+
timeline: ProviderTimelinePoint[];
|
|
412
|
+
createdAt: number;
|
|
413
|
+
updatedAt: number;
|
|
424
414
|
}
|
|
425
|
-
|
|
426
|
-
|
|
415
|
+
|
|
416
|
+
interface RequestOptions<T = any> {
|
|
417
|
+
headers?: Record<string, string>;
|
|
418
|
+
params?: Record<string, any>;
|
|
419
|
+
transformRequest?: (data: any) => any;
|
|
420
|
+
onSuccess?: (ctx: {
|
|
421
|
+
data: T;
|
|
422
|
+
method: string;
|
|
423
|
+
url: string;
|
|
424
|
+
status: number;
|
|
425
|
+
request?: any;
|
|
426
|
+
durationMs?: number;
|
|
427
|
+
requestId?: string | null;
|
|
428
|
+
}) => void | Promise<void>;
|
|
429
|
+
onError?: (ctx: {
|
|
430
|
+
error: any;
|
|
431
|
+
method: string;
|
|
432
|
+
url: string;
|
|
433
|
+
status?: number;
|
|
434
|
+
request?: any;
|
|
435
|
+
response?: any;
|
|
436
|
+
durationMs?: number;
|
|
437
|
+
requestId?: string | null;
|
|
438
|
+
aborted?: boolean;
|
|
439
|
+
}) => void | Promise<void>;
|
|
427
440
|
}
|
|
428
|
-
interface
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
parts?: any;
|
|
433
|
-
payment?: any | null;
|
|
434
|
-
[key: string]: any;
|
|
441
|
+
interface EshopItem {
|
|
442
|
+
productId: string;
|
|
443
|
+
variantId: string;
|
|
444
|
+
quantity: number;
|
|
435
445
|
}
|
|
436
|
-
interface
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
[key: string]: any;
|
|
446
|
+
interface GetQuoteParams {
|
|
447
|
+
items: EshopItem[];
|
|
448
|
+
paymentMethodId?: string;
|
|
449
|
+
shippingMethodId?: string;
|
|
450
|
+
promoCode?: string;
|
|
451
|
+
location?: Location;
|
|
443
452
|
}
|
|
444
|
-
interface
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
taxonomyIds?: string[];
|
|
453
|
+
interface OrderCheckoutParams {
|
|
454
|
+
items: EshopItem[];
|
|
455
|
+
paymentMethodId?: string;
|
|
448
456
|
blocks?: any[];
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
457
|
+
shippingMethodId: string;
|
|
458
|
+
promoCodeId?: string;
|
|
459
|
+
address?: Location;
|
|
460
|
+
email?: string;
|
|
461
|
+
phone?: string;
|
|
452
462
|
}
|
|
453
|
-
interface
|
|
454
|
-
|
|
463
|
+
interface GetProductsParams {
|
|
464
|
+
ids?: string[];
|
|
465
|
+
nodeIds?: string[] | null;
|
|
466
|
+
nodeId?: string | null;
|
|
467
|
+
blocks?: any[] | null;
|
|
468
|
+
status?: string;
|
|
469
|
+
limit?: number;
|
|
470
|
+
cursor?: string;
|
|
471
|
+
query?: string;
|
|
472
|
+
statuses?: string[];
|
|
473
|
+
sortField?: string;
|
|
474
|
+
sortDirection?: string;
|
|
475
|
+
createdAtFrom?: number | null;
|
|
476
|
+
createdAtTo?: number | null;
|
|
455
477
|
}
|
|
456
|
-
interface
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
478
|
+
interface GetNodesParams {
|
|
479
|
+
parentId?: string;
|
|
480
|
+
limit?: number;
|
|
481
|
+
cursor?: string;
|
|
482
|
+
ids?: string[];
|
|
483
|
+
query?: string;
|
|
484
|
+
type?: string;
|
|
485
|
+
key?: string;
|
|
486
|
+
statuses?: string[];
|
|
487
|
+
sortField?: string;
|
|
488
|
+
sortDirection?: string;
|
|
489
|
+
createdAtFrom?: string;
|
|
490
|
+
createdAtTo?: string;
|
|
460
491
|
}
|
|
461
|
-
interface
|
|
492
|
+
interface CreateNodeParams {
|
|
462
493
|
key: string;
|
|
463
|
-
taxonomyIds?: string[];
|
|
464
494
|
blocks?: any[];
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
495
|
+
parentId?: string | null;
|
|
496
|
+
hasChildren?: boolean;
|
|
497
|
+
seo?: any;
|
|
498
|
+
status?: string;
|
|
499
|
+
notifications?: {
|
|
500
|
+
emails?: string[];
|
|
501
|
+
templateKey?: string | null;
|
|
502
|
+
};
|
|
503
|
+
config?: {
|
|
504
|
+
isPubliclyReadable?: boolean;
|
|
505
|
+
isPubliclyWritable?: boolean;
|
|
506
|
+
};
|
|
507
|
+
/** Email subject for email template nodes */
|
|
508
|
+
emailSubject?: string;
|
|
471
509
|
}
|
|
472
|
-
interface
|
|
510
|
+
interface UpdateNodeParams {
|
|
473
511
|
id: string;
|
|
474
512
|
key?: string;
|
|
475
|
-
taxonomyIds?: string[];
|
|
476
513
|
blocks?: any[];
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
514
|
+
parentId?: string | null;
|
|
515
|
+
hasChildren?: boolean;
|
|
516
|
+
seo?: any;
|
|
517
|
+
status?: string;
|
|
518
|
+
notifications?: {
|
|
519
|
+
emails?: string[];
|
|
520
|
+
templateKey?: string | null;
|
|
521
|
+
};
|
|
522
|
+
config?: {
|
|
523
|
+
isPubliclyReadable?: boolean;
|
|
524
|
+
isPubliclyWritable?: boolean;
|
|
525
|
+
};
|
|
526
|
+
/** Email subject for email template nodes */
|
|
527
|
+
emailSubject?: string;
|
|
483
528
|
}
|
|
484
|
-
interface
|
|
529
|
+
interface GetNodeParams {
|
|
485
530
|
id: string;
|
|
486
531
|
}
|
|
487
|
-
interface
|
|
488
|
-
serviceIds: string[];
|
|
489
|
-
providerIds: string[];
|
|
490
|
-
workingTime: WorkingTime;
|
|
491
|
-
}
|
|
492
|
-
interface GetServiceParams {
|
|
532
|
+
interface DeleteNodeParams {
|
|
493
533
|
id: string;
|
|
494
534
|
}
|
|
495
|
-
interface
|
|
496
|
-
|
|
497
|
-
ids?: string[];
|
|
498
|
-
query?: string | null;
|
|
499
|
-
statuses?: string[] | null;
|
|
535
|
+
interface GetNodeChildrenParams {
|
|
536
|
+
id: string;
|
|
500
537
|
limit?: number;
|
|
501
538
|
cursor?: string;
|
|
502
|
-
sortField?: string | null;
|
|
503
|
-
sortDirection?: string | null;
|
|
504
|
-
createdAtFrom?: string | null;
|
|
505
|
-
createdAtTo?: string | null;
|
|
506
|
-
taxonomyId?: string | null;
|
|
507
|
-
blocks?: string | null;
|
|
508
|
-
}
|
|
509
|
-
interface GetProviderParams {
|
|
510
|
-
id: string;
|
|
511
539
|
}
|
|
512
|
-
interface
|
|
513
|
-
|
|
514
|
-
|
|
540
|
+
interface UploadBusinessMediaParams {
|
|
541
|
+
files?: File[];
|
|
542
|
+
urls?: string[];
|
|
515
543
|
}
|
|
516
|
-
interface
|
|
544
|
+
interface DeleteBusinessMediaParams {
|
|
517
545
|
id: string;
|
|
546
|
+
mediaId: string;
|
|
518
547
|
}
|
|
519
|
-
interface
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
to?: number;
|
|
526
|
-
status?: string;
|
|
527
|
-
limit?: number;
|
|
528
|
-
cursor?: string;
|
|
529
|
-
sortField?: string;
|
|
530
|
-
sortOrder?: string;
|
|
531
|
-
}
|
|
532
|
-
interface UpdateUserProfileParams {
|
|
533
|
-
name?: string;
|
|
534
|
-
phoneNumbers?: string[];
|
|
535
|
-
addresses?: any[];
|
|
536
|
-
apiTokens?: any[] | null;
|
|
537
|
-
}
|
|
538
|
-
interface SetRoleParams {
|
|
539
|
-
userId: string;
|
|
540
|
-
roleId: string;
|
|
548
|
+
interface UpdateMediaParams {
|
|
549
|
+
mediaId: string;
|
|
550
|
+
seo?: any;
|
|
551
|
+
title?: string;
|
|
552
|
+
description?: string;
|
|
553
|
+
alt?: string;
|
|
541
554
|
}
|
|
542
|
-
interface
|
|
543
|
-
limit?: number;
|
|
555
|
+
interface GetBusinessMediaParams {
|
|
544
556
|
cursor?: string | null;
|
|
557
|
+
limit: number;
|
|
558
|
+
ids?: string[];
|
|
545
559
|
query?: string;
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
interface ConfirmUserParams {
|
|
550
|
-
token: string;
|
|
560
|
+
mimeType?: string;
|
|
561
|
+
sortField?: string;
|
|
562
|
+
sortDirection?: 'asc' | 'desc';
|
|
551
563
|
}
|
|
552
|
-
interface
|
|
564
|
+
interface LoginUserParams {
|
|
565
|
+
email?: string;
|
|
566
|
+
password?: string;
|
|
553
567
|
provider: string;
|
|
554
|
-
|
|
555
|
-
|
|
568
|
+
token?: string;
|
|
569
|
+
code?: string;
|
|
570
|
+
originUrl?: string;
|
|
556
571
|
}
|
|
557
|
-
interface
|
|
572
|
+
interface RegisterUserParams {
|
|
573
|
+
name: string;
|
|
558
574
|
email: string;
|
|
559
|
-
}
|
|
560
|
-
interface ResetForgotPasswordParams {
|
|
561
|
-
token: string;
|
|
562
575
|
password: string;
|
|
563
576
|
}
|
|
564
|
-
interface
|
|
565
|
-
|
|
566
|
-
oldPassword?: string;
|
|
567
|
-
}
|
|
568
|
-
interface DeleteUserParams {
|
|
569
|
-
}
|
|
570
|
-
interface TrackEmailOpenParams {
|
|
571
|
-
trackingPixelId: string;
|
|
572
|
-
}
|
|
573
|
-
interface TrackEmailOpenParams {
|
|
574
|
-
trackingPixelId: string;
|
|
575
|
-
}
|
|
576
|
-
interface GetDeliveryStatsParams {
|
|
577
|
-
}
|
|
578
|
-
interface GetDeliveryStatsParams {
|
|
579
|
-
}
|
|
580
|
-
interface UpdateNotificationsParams {
|
|
577
|
+
interface AddPhoneNumberParams {
|
|
578
|
+
phoneNumber: string;
|
|
581
579
|
}
|
|
582
|
-
interface
|
|
580
|
+
interface PhoneNumberConfirmParams {
|
|
581
|
+
phoneNumber: string;
|
|
582
|
+
code: string;
|
|
583
583
|
}
|
|
584
|
-
interface
|
|
584
|
+
interface GetServicesParams {
|
|
585
|
+
providerId?: string;
|
|
586
|
+
limit?: number;
|
|
587
|
+
cursor?: string;
|
|
588
|
+
query?: string;
|
|
589
|
+
ids?: string[];
|
|
590
|
+
statuses?: string[];
|
|
591
|
+
nodeId?: string;
|
|
592
|
+
blocks?: any[];
|
|
593
|
+
sortField?: string;
|
|
594
|
+
sortDirection?: string;
|
|
595
|
+
priceFrom?: number;
|
|
596
|
+
priceTo?: number;
|
|
585
597
|
}
|
|
586
|
-
interface
|
|
598
|
+
interface ReservationCheckoutParams {
|
|
599
|
+
items: any[];
|
|
600
|
+
paymentMethodId?: string;
|
|
601
|
+
blocks?: any[];
|
|
602
|
+
promoCodeId?: string;
|
|
603
|
+
email?: string;
|
|
604
|
+
phone?: string;
|
|
605
|
+
location?: Location;
|
|
587
606
|
}
|
|
588
|
-
interface
|
|
607
|
+
interface ReservationQuoteItem {
|
|
608
|
+
serviceId: string;
|
|
609
|
+
from: number;
|
|
610
|
+
to: number;
|
|
611
|
+
providerId: string;
|
|
589
612
|
}
|
|
590
|
-
interface
|
|
591
|
-
|
|
613
|
+
interface GetReservationQuoteParams {
|
|
614
|
+
items: ReservationQuoteItem[];
|
|
615
|
+
paymentMethodId?: string;
|
|
616
|
+
promoCode?: string;
|
|
617
|
+
location?: Location;
|
|
592
618
|
}
|
|
593
|
-
interface
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
limit: number;
|
|
597
|
-
ids?: string[];
|
|
598
|
-
query?: string;
|
|
599
|
-
mimeType?: string;
|
|
600
|
-
sortField?: string;
|
|
601
|
-
sortDirection?: 'asc' | 'desc';
|
|
619
|
+
interface TimelinePoint {
|
|
620
|
+
timestamp: number;
|
|
621
|
+
concurrent: number;
|
|
602
622
|
}
|
|
603
|
-
interface
|
|
604
|
-
|
|
623
|
+
interface WorkingHour {
|
|
624
|
+
from: number;
|
|
625
|
+
to: number;
|
|
605
626
|
}
|
|
606
|
-
interface
|
|
607
|
-
|
|
627
|
+
interface WorkingDay {
|
|
628
|
+
day: string;
|
|
629
|
+
workingHours: WorkingHour[];
|
|
608
630
|
}
|
|
609
|
-
interface
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
631
|
+
interface OutcastDate {
|
|
632
|
+
month: number;
|
|
633
|
+
day: number;
|
|
634
|
+
workingHours: WorkingHour[];
|
|
613
635
|
}
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
weight: number;
|
|
618
|
-
payload?: Block[];
|
|
636
|
+
interface SpecificDate {
|
|
637
|
+
date: number;
|
|
638
|
+
workingHours: WorkingHour[];
|
|
619
639
|
}
|
|
620
|
-
interface
|
|
621
|
-
|
|
622
|
-
|
|
640
|
+
interface WorkingTime {
|
|
641
|
+
workingDays: WorkingDay[];
|
|
642
|
+
outcastDates: OutcastDate[];
|
|
643
|
+
specificDates: SpecificDate[];
|
|
623
644
|
}
|
|
624
|
-
interface
|
|
645
|
+
interface ProviderWithTimeline {
|
|
625
646
|
id: string;
|
|
626
647
|
key: string;
|
|
627
648
|
businessId: string;
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
649
|
+
seo: any;
|
|
650
|
+
statuses: any[];
|
|
651
|
+
concurrentLimit: number;
|
|
652
|
+
nodeIds: string[];
|
|
653
|
+
blocks: Block[];
|
|
631
654
|
createdAt: number;
|
|
632
655
|
updatedAt: number;
|
|
656
|
+
workingTime: WorkingTime | null;
|
|
657
|
+
timeline: TimelinePoint[];
|
|
633
658
|
}
|
|
634
|
-
interface
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
}
|
|
641
|
-
interface FlagResults {
|
|
642
|
-
totalAssignments: number;
|
|
643
|
-
totalConversions: number;
|
|
644
|
-
variantResults: VariantResult[];
|
|
645
|
-
}
|
|
646
|
-
interface GetVariantResponse {
|
|
647
|
-
flagKey: string;
|
|
648
|
-
variantKey: string;
|
|
649
|
-
payload: Block[];
|
|
650
|
-
isNewAssignment: boolean;
|
|
659
|
+
interface GetAnalyticsParams {
|
|
660
|
+
metrics?: string[];
|
|
661
|
+
period?: string;
|
|
662
|
+
startDate?: string;
|
|
663
|
+
endDate?: string;
|
|
664
|
+
interval?: string;
|
|
651
665
|
}
|
|
652
|
-
interface
|
|
653
|
-
tracked: boolean;
|
|
654
|
-
experimentsUpdated: number;
|
|
666
|
+
interface GetAnalyticsHealthParams {
|
|
655
667
|
}
|
|
656
|
-
interface
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
668
|
+
interface CreateRoleParams {
|
|
669
|
+
name: string;
|
|
670
|
+
parentRoles?: string[];
|
|
671
|
+
permissions?: any[];
|
|
672
|
+
[key: string]: any;
|
|
660
673
|
}
|
|
661
|
-
interface
|
|
674
|
+
interface UpdateRoleParams {
|
|
662
675
|
id: string;
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
676
|
+
name?: string;
|
|
677
|
+
parentRoles?: string[];
|
|
678
|
+
permissions?: any[];
|
|
679
|
+
[key: string]: any;
|
|
666
680
|
}
|
|
667
|
-
interface
|
|
681
|
+
interface DeleteRoleParams {
|
|
668
682
|
id: string;
|
|
669
683
|
}
|
|
670
|
-
interface
|
|
684
|
+
interface GetRoleParams {
|
|
671
685
|
id: string;
|
|
672
686
|
}
|
|
673
|
-
interface
|
|
674
|
-
|
|
687
|
+
interface GetRolesParams {
|
|
688
|
+
action: string;
|
|
689
|
+
ids?: string[];
|
|
675
690
|
}
|
|
676
|
-
interface
|
|
677
|
-
|
|
691
|
+
interface Discount {
|
|
692
|
+
type: "ITEMS_PERCENTAGE" | "ITEMS_FIXED" | "SHIPPING_PERCENTAGE";
|
|
693
|
+
marketId: string;
|
|
694
|
+
bps?: number;
|
|
695
|
+
amount?: number;
|
|
678
696
|
}
|
|
679
|
-
interface
|
|
680
|
-
|
|
697
|
+
interface Condition {
|
|
698
|
+
type: "PRODUCTS" | "SERVICES" | "MIN_ORDER_AMOUNT" | "DATE_RANGE" | "MAX_USES" | "MAX_USES_PER_USER";
|
|
699
|
+
value: string[] | number | {
|
|
700
|
+
start?: number;
|
|
701
|
+
end?: number;
|
|
702
|
+
};
|
|
681
703
|
}
|
|
682
|
-
interface
|
|
683
|
-
|
|
684
|
-
|
|
704
|
+
interface CreatePromoCodeParams {
|
|
705
|
+
code: string;
|
|
706
|
+
discounts: Discount[];
|
|
707
|
+
conditions: Condition[];
|
|
685
708
|
}
|
|
686
|
-
|
|
687
|
-
|
|
709
|
+
interface UpdatePromoCodeParams {
|
|
710
|
+
id: string;
|
|
711
|
+
code: string;
|
|
712
|
+
discounts: Discount[];
|
|
713
|
+
conditions: Condition[];
|
|
714
|
+
statuses?: any[];
|
|
715
|
+
}
|
|
716
|
+
interface DeletePromoCodeParams {
|
|
717
|
+
id: string;
|
|
718
|
+
}
|
|
719
|
+
interface GetPromoCodeParams {
|
|
688
720
|
id: string;
|
|
721
|
+
}
|
|
722
|
+
interface GetPromoCodesParams {
|
|
723
|
+
statuses?: string[];
|
|
724
|
+
query?: string;
|
|
725
|
+
limit?: number;
|
|
726
|
+
cursor?: string;
|
|
727
|
+
sortField?: string;
|
|
728
|
+
sortDirection?: string;
|
|
729
|
+
createdAtFrom?: string;
|
|
730
|
+
createdAtTo?: string;
|
|
731
|
+
startsAtFrom?: string;
|
|
732
|
+
startsAtTo?: string;
|
|
733
|
+
expiresAtFrom?: string;
|
|
734
|
+
expiresAtTo?: string;
|
|
735
|
+
}
|
|
736
|
+
interface CreateBusinessParams {
|
|
689
737
|
name: string;
|
|
690
|
-
|
|
691
|
-
|
|
738
|
+
slug?: string;
|
|
739
|
+
description?: string;
|
|
740
|
+
email?: string;
|
|
741
|
+
phone?: string;
|
|
742
|
+
website?: string;
|
|
743
|
+
address?: any;
|
|
744
|
+
settings?: any;
|
|
745
|
+
[key: string]: any;
|
|
692
746
|
}
|
|
693
|
-
interface
|
|
747
|
+
interface UpdateBusinessParams {
|
|
694
748
|
id: string;
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
749
|
+
name?: string;
|
|
750
|
+
slug?: string;
|
|
751
|
+
description?: string;
|
|
752
|
+
email?: string;
|
|
753
|
+
phone?: string;
|
|
754
|
+
website?: string;
|
|
755
|
+
address?: any;
|
|
756
|
+
settings?: any;
|
|
757
|
+
[key: string]: any;
|
|
700
758
|
}
|
|
701
|
-
interface
|
|
759
|
+
interface DeleteBusinessParams {
|
|
702
760
|
id: string;
|
|
703
|
-
businessId: string;
|
|
704
|
-
key: string;
|
|
705
|
-
plans: SubscriptionPlan[];
|
|
706
|
-
statuses: any[];
|
|
707
|
-
createdAt: number;
|
|
708
|
-
updatedAt: number;
|
|
709
761
|
}
|
|
710
|
-
interface
|
|
762
|
+
interface GetBusinessParams {
|
|
763
|
+
}
|
|
764
|
+
interface GetBusinessParentsParams {
|
|
765
|
+
}
|
|
766
|
+
interface TriggerBuildsParams {
|
|
711
767
|
id: string;
|
|
712
|
-
newsletterId: string;
|
|
713
|
-
businessId: string;
|
|
714
|
-
key: string;
|
|
715
|
-
subject: string;
|
|
716
|
-
contentMjml: string;
|
|
717
|
-
sends: NewsletterSend[];
|
|
718
|
-
statuses: any[];
|
|
719
|
-
createdAt: number;
|
|
720
|
-
updatedAt: number;
|
|
721
768
|
}
|
|
722
|
-
interface
|
|
723
|
-
|
|
769
|
+
interface GetSubscriptionParams {
|
|
770
|
+
}
|
|
771
|
+
interface SubscribeParams {
|
|
772
|
+
planId: string;
|
|
773
|
+
successUrl: string;
|
|
774
|
+
cancelUrl: string;
|
|
775
|
+
}
|
|
776
|
+
interface CreatePortalSessionParams {
|
|
777
|
+
returnUrl: string;
|
|
778
|
+
}
|
|
779
|
+
interface InviteUserParams {
|
|
724
780
|
email: string;
|
|
725
|
-
|
|
726
|
-
subscribedAt: number;
|
|
781
|
+
roleIds?: string[] | null;
|
|
727
782
|
}
|
|
728
|
-
interface
|
|
729
|
-
|
|
730
|
-
|
|
783
|
+
interface HandleInvitationParams {
|
|
784
|
+
token: string;
|
|
785
|
+
action: string;
|
|
731
786
|
}
|
|
732
|
-
interface
|
|
733
|
-
|
|
734
|
-
plans?: SubscriptionPlan[];
|
|
787
|
+
interface TestWebhookParams {
|
|
788
|
+
webhook: any;
|
|
735
789
|
}
|
|
736
|
-
interface
|
|
737
|
-
|
|
790
|
+
interface GenerateBlocksParams {
|
|
791
|
+
[key: string]: any;
|
|
738
792
|
}
|
|
739
|
-
interface
|
|
740
|
-
|
|
741
|
-
|
|
793
|
+
interface GetVariableMetadataParams {
|
|
794
|
+
nodeType: string;
|
|
795
|
+
}
|
|
796
|
+
interface UserSubscribeParams {
|
|
797
|
+
target?: string;
|
|
798
|
+
identifier: string;
|
|
799
|
+
planId?: string;
|
|
800
|
+
successUrl?: string;
|
|
801
|
+
cancelUrl?: string;
|
|
802
|
+
}
|
|
803
|
+
interface CreateProductParams {
|
|
804
|
+
key: string;
|
|
805
|
+
description?: string;
|
|
806
|
+
nodeIds?: string[];
|
|
807
|
+
blocks?: any[];
|
|
808
|
+
variants?: any[];
|
|
809
|
+
status?: string;
|
|
810
|
+
[key: string]: any;
|
|
742
811
|
}
|
|
743
|
-
interface
|
|
812
|
+
interface UpdateProductParams {
|
|
744
813
|
id: string;
|
|
745
814
|
key?: string;
|
|
746
|
-
|
|
815
|
+
description?: string;
|
|
816
|
+
nodeIds?: string[];
|
|
817
|
+
blocks?: any[];
|
|
818
|
+
variants?: any[];
|
|
747
819
|
status?: string;
|
|
820
|
+
[key: string]: any;
|
|
748
821
|
}
|
|
749
|
-
interface
|
|
822
|
+
interface GetProductParams {
|
|
750
823
|
id: string;
|
|
751
824
|
}
|
|
752
|
-
interface
|
|
825
|
+
interface GetOrderParams {
|
|
753
826
|
id: string;
|
|
754
827
|
}
|
|
755
|
-
interface
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
newsletterId: string;
|
|
767
|
-
limit?: number;
|
|
768
|
-
cursor?: string;
|
|
769
|
-
}
|
|
770
|
-
interface UpdateNewsletterPostParams {
|
|
771
|
-
newsletterId: string;
|
|
772
|
-
postId: string;
|
|
773
|
-
key?: string;
|
|
774
|
-
subject?: string;
|
|
775
|
-
contentMjml?: string;
|
|
776
|
-
status?: string;
|
|
828
|
+
interface GetOrdersParams {
|
|
829
|
+
userId?: string | null;
|
|
830
|
+
statuses?: string[] | null;
|
|
831
|
+
productIds?: string[];
|
|
832
|
+
query?: string | null;
|
|
833
|
+
limit?: number | null;
|
|
834
|
+
cursor?: string | null;
|
|
835
|
+
sortField?: string | null;
|
|
836
|
+
sortDirection?: string | null;
|
|
837
|
+
createdAtFrom?: string | null;
|
|
838
|
+
createdAtTo?: string | null;
|
|
777
839
|
}
|
|
778
|
-
interface
|
|
779
|
-
|
|
780
|
-
|
|
840
|
+
interface UpdateOrderParams {
|
|
841
|
+
id: string;
|
|
842
|
+
statuses: any[];
|
|
843
|
+
blocks: any[];
|
|
844
|
+
items: any[];
|
|
845
|
+
address?: any | null;
|
|
846
|
+
email?: string | null;
|
|
847
|
+
phone?: string | null;
|
|
848
|
+
payment?: any | null;
|
|
781
849
|
}
|
|
782
|
-
interface
|
|
783
|
-
|
|
784
|
-
postId: string;
|
|
785
|
-
scheduledAt?: number;
|
|
850
|
+
interface CreateOrderParams {
|
|
851
|
+
[key: string]: any;
|
|
786
852
|
}
|
|
787
|
-
interface
|
|
788
|
-
|
|
789
|
-
postId: string;
|
|
790
|
-
sendId: string;
|
|
853
|
+
interface CreateReservationParams {
|
|
854
|
+
[key: string]: any;
|
|
791
855
|
}
|
|
792
|
-
|
|
793
|
-
interface EmailTemplate {
|
|
856
|
+
interface UpdateReservationParams {
|
|
794
857
|
id: string;
|
|
795
|
-
|
|
858
|
+
statuses?: any;
|
|
859
|
+
blocks?: any;
|
|
860
|
+
parts?: any;
|
|
861
|
+
payment?: any | null;
|
|
862
|
+
[key: string]: any;
|
|
863
|
+
}
|
|
864
|
+
interface CreateProviderParams {
|
|
796
865
|
key: string;
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
866
|
+
nodeIds?: string[];
|
|
867
|
+
blocks?: any[];
|
|
868
|
+
concurrentLimit?: number;
|
|
869
|
+
statuses?: any[];
|
|
870
|
+
[key: string]: any;
|
|
801
871
|
}
|
|
802
|
-
interface
|
|
803
|
-
|
|
872
|
+
interface UpdateProviderParams {
|
|
873
|
+
id: string;
|
|
804
874
|
key?: string;
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
875
|
+
nodeIds?: string[];
|
|
876
|
+
blocks?: any[];
|
|
877
|
+
concurrentLimit?: number;
|
|
878
|
+
statuses?: any[];
|
|
879
|
+
[key: string]: any;
|
|
809
880
|
}
|
|
810
|
-
interface
|
|
881
|
+
interface DeleteProviderParams {
|
|
811
882
|
id: string;
|
|
812
|
-
businessId?: string;
|
|
813
883
|
}
|
|
814
|
-
interface
|
|
815
|
-
|
|
816
|
-
|
|
884
|
+
interface ServiceProviderInput {
|
|
885
|
+
id?: string;
|
|
886
|
+
providerId: string;
|
|
887
|
+
workingTime: WorkingTime;
|
|
817
888
|
}
|
|
818
|
-
interface
|
|
889
|
+
interface CreateServiceParams {
|
|
819
890
|
key: string;
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
891
|
+
nodeIds?: string[];
|
|
892
|
+
blocks?: any[];
|
|
893
|
+
prices?: any[];
|
|
894
|
+
durations?: any[];
|
|
895
|
+
isApprovalRequired?: boolean;
|
|
896
|
+
statuses?: any[];
|
|
897
|
+
providers?: ServiceProviderInput[];
|
|
898
|
+
[key: string]: any;
|
|
823
899
|
}
|
|
824
|
-
interface
|
|
900
|
+
interface UpdateServiceParams {
|
|
825
901
|
id: string;
|
|
826
902
|
key?: string;
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
903
|
+
nodeIds?: string[];
|
|
904
|
+
blocks?: any[];
|
|
905
|
+
prices?: any[];
|
|
906
|
+
durations?: any[];
|
|
907
|
+
isApprovalRequired?: boolean;
|
|
908
|
+
statuses?: any[];
|
|
909
|
+
providers?: ServiceProviderInput[];
|
|
910
|
+
[key: string]: any;
|
|
830
911
|
}
|
|
831
|
-
interface
|
|
912
|
+
interface DeleteServiceParams {
|
|
832
913
|
id: string;
|
|
833
|
-
businessId?: string;
|
|
834
914
|
}
|
|
835
|
-
interface
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
providerId?: string;
|
|
915
|
+
interface BulkScheduleParams {
|
|
916
|
+
serviceIds: string[];
|
|
917
|
+
providerIds: string[];
|
|
918
|
+
workingTime: WorkingTime;
|
|
840
919
|
}
|
|
841
|
-
interface
|
|
842
|
-
|
|
843
|
-
from: Date;
|
|
844
|
-
to: Date;
|
|
845
|
-
timezone: string;
|
|
920
|
+
interface GetServiceParams {
|
|
921
|
+
id: string;
|
|
846
922
|
}
|
|
847
|
-
interface
|
|
848
|
-
|
|
849
|
-
|
|
923
|
+
interface GetProvidersParams {
|
|
924
|
+
serviceId?: string;
|
|
925
|
+
ids?: string[];
|
|
926
|
+
query?: string | null;
|
|
927
|
+
statuses?: string[] | null;
|
|
928
|
+
limit?: number;
|
|
929
|
+
cursor?: string;
|
|
930
|
+
sortField?: string | null;
|
|
931
|
+
sortDirection?: string | null;
|
|
932
|
+
createdAtFrom?: string | null;
|
|
933
|
+
createdAtTo?: string | null;
|
|
934
|
+
nodeId?: string | null;
|
|
935
|
+
blocks?: string | null;
|
|
850
936
|
}
|
|
851
|
-
|
|
852
|
-
* A bookable time slot returned by getSlotsForDate.
|
|
853
|
-
* Contains all information needed to display and book the slot.
|
|
854
|
-
*/
|
|
855
|
-
interface Slot {
|
|
937
|
+
interface GetProviderParams {
|
|
856
938
|
id: string;
|
|
857
|
-
|
|
939
|
+
}
|
|
940
|
+
interface GetBusinessServiceWorkingTimeParams {
|
|
858
941
|
providerId: string;
|
|
859
|
-
|
|
860
|
-
to: number;
|
|
861
|
-
timeText: string;
|
|
862
|
-
dateText: string;
|
|
942
|
+
serviceId?: string;
|
|
863
943
|
}
|
|
864
|
-
|
|
865
|
-
interface PaymentRefund {
|
|
944
|
+
interface GetReservationParams {
|
|
866
945
|
id: string;
|
|
867
|
-
entity: string;
|
|
868
|
-
total: number;
|
|
869
|
-
providerRefundId?: string;
|
|
870
|
-
status: string;
|
|
871
|
-
createdAt: number;
|
|
872
|
-
}
|
|
873
|
-
interface Payment {
|
|
874
|
-
currency: string;
|
|
875
|
-
market: string;
|
|
876
|
-
subtotal: number;
|
|
877
|
-
shipping: number;
|
|
878
|
-
discount: number;
|
|
879
|
-
total: number;
|
|
880
|
-
paid: number;
|
|
881
|
-
tax?: {
|
|
882
|
-
amount: number;
|
|
883
|
-
modeSnapshot?: string;
|
|
884
|
-
rateBps: number;
|
|
885
|
-
lines: Array<{
|
|
886
|
-
rateBps: number;
|
|
887
|
-
amount: number;
|
|
888
|
-
label?: string;
|
|
889
|
-
scope?: string;
|
|
890
|
-
}>;
|
|
891
|
-
};
|
|
892
|
-
promoCode?: {
|
|
893
|
-
id: string;
|
|
894
|
-
code: string;
|
|
895
|
-
type: string;
|
|
896
|
-
value: number;
|
|
897
|
-
};
|
|
898
|
-
type: PaymentMethodType;
|
|
899
|
-
provider?: {
|
|
900
|
-
customerId: string;
|
|
901
|
-
paymentIntentId?: string;
|
|
902
|
-
subscriptionId?: string;
|
|
903
|
-
priceId?: string;
|
|
904
|
-
};
|
|
905
|
-
refunds: PaymentRefund[];
|
|
906
|
-
zoneId?: string;
|
|
907
|
-
paymentMethodId?: string;
|
|
908
|
-
shippingMethodId?: string;
|
|
909
946
|
}
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
947
|
+
interface SearchReservationsParams {
|
|
948
|
+
query?: string;
|
|
949
|
+
serviceIds?: string[];
|
|
950
|
+
providerIds?: string[];
|
|
951
|
+
userId?: string;
|
|
952
|
+
from?: number;
|
|
953
|
+
to?: number;
|
|
954
|
+
status?: string;
|
|
955
|
+
limit?: number;
|
|
956
|
+
cursor?: string;
|
|
957
|
+
sortField?: string;
|
|
958
|
+
sortOrder?: string;
|
|
920
959
|
}
|
|
921
|
-
interface
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
discount: number;
|
|
927
|
-
tax: number;
|
|
928
|
-
total: number;
|
|
929
|
-
shippingMethod: ShippingMethod | null;
|
|
930
|
-
paymentMethod: PaymentMethod | null;
|
|
931
|
-
promoCode: PromoCodeValidation | null;
|
|
932
|
-
payment: Payment;
|
|
933
|
-
chargeAmount: number;
|
|
934
|
-
id?: string;
|
|
935
|
-
expiresAt?: number;
|
|
960
|
+
interface UpdateUserProfileParams {
|
|
961
|
+
name?: string;
|
|
962
|
+
phoneNumbers?: string[];
|
|
963
|
+
addresses?: any[];
|
|
964
|
+
apiTokens?: any[] | null;
|
|
936
965
|
}
|
|
937
|
-
interface
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
compareAt?: number;
|
|
966
|
+
interface SetRoleParams {
|
|
967
|
+
userId: string;
|
|
968
|
+
roleId: string;
|
|
941
969
|
}
|
|
942
|
-
interface
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
coordinates?: {
|
|
949
|
-
lat: number;
|
|
950
|
-
lon: number;
|
|
951
|
-
} | null;
|
|
970
|
+
interface SearchUsersParams {
|
|
971
|
+
limit?: number;
|
|
972
|
+
cursor?: string | null;
|
|
973
|
+
query?: string;
|
|
974
|
+
roleIds?: string[];
|
|
975
|
+
owner?: string;
|
|
952
976
|
}
|
|
953
|
-
interface
|
|
954
|
-
|
|
955
|
-
productId: string;
|
|
956
|
-
variantId: string;
|
|
957
|
-
productName: string;
|
|
958
|
-
productSlug: string;
|
|
959
|
-
variantAttributes: Record<string, any>;
|
|
960
|
-
price: Price;
|
|
961
|
-
quantity: number;
|
|
962
|
-
addedAt: number;
|
|
977
|
+
interface ConfirmUserParams {
|
|
978
|
+
token: string;
|
|
963
979
|
}
|
|
964
|
-
interface
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
date: string;
|
|
969
|
-
from: number;
|
|
970
|
-
to: number;
|
|
971
|
-
timeText: string;
|
|
972
|
-
providerId?: string;
|
|
973
|
-
blocks: any[];
|
|
980
|
+
interface GetLoginUrlParams {
|
|
981
|
+
provider: string;
|
|
982
|
+
originUrl: string;
|
|
983
|
+
redirectUrl: string;
|
|
974
984
|
}
|
|
975
|
-
interface
|
|
976
|
-
|
|
977
|
-
publicKey: string;
|
|
978
|
-
secretKey: string;
|
|
979
|
-
webhookSecret: string;
|
|
985
|
+
interface ForgotPasswordParams {
|
|
986
|
+
email: string;
|
|
980
987
|
}
|
|
981
|
-
interface
|
|
982
|
-
|
|
983
|
-
|
|
988
|
+
interface ResetForgotPasswordParams {
|
|
989
|
+
token: string;
|
|
990
|
+
password: string;
|
|
984
991
|
}
|
|
985
|
-
interface
|
|
986
|
-
|
|
987
|
-
|
|
992
|
+
interface ResetPasswordParams {
|
|
993
|
+
newPassword: string;
|
|
994
|
+
oldPassword?: string;
|
|
988
995
|
}
|
|
989
|
-
interface
|
|
990
|
-
id: string;
|
|
991
|
-
taxable: boolean;
|
|
992
|
-
etaText: string;
|
|
993
|
-
pickupLocation?: Location;
|
|
994
|
-
amount: number;
|
|
995
|
-
freeAbove?: number;
|
|
996
|
-
weightTiers?: ShippingWeightTier[];
|
|
996
|
+
interface DeleteUserParams {
|
|
997
997
|
}
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
id: string;
|
|
1001
|
-
marketId: string;
|
|
1002
|
-
scope: ZoneScope;
|
|
1003
|
-
countries: string[];
|
|
1004
|
-
states: string[];
|
|
1005
|
-
postalCodes: string[];
|
|
1006
|
-
taxBps: number;
|
|
1007
|
-
paymentMethods: PaymentMethod[];
|
|
1008
|
-
shippingMethods: ShippingMethod[];
|
|
998
|
+
interface TrackEmailOpenParams {
|
|
999
|
+
trackingPixelId: string;
|
|
1009
1000
|
}
|
|
1010
|
-
interface
|
|
1011
|
-
|
|
1012
|
-
currency: string;
|
|
1013
|
-
taxMode: "EXCLUSIVE" | "INCLUSIVE";
|
|
1001
|
+
interface TrackEmailOpenParams {
|
|
1002
|
+
trackingPixelId: string;
|
|
1014
1003
|
}
|
|
1015
|
-
interface
|
|
1016
|
-
id: string;
|
|
1004
|
+
interface GetDeliveryStatsParams {
|
|
1017
1005
|
}
|
|
1018
|
-
interface
|
|
1019
|
-
billing: string;
|
|
1020
|
-
support: string;
|
|
1006
|
+
interface GetDeliveryStatsParams {
|
|
1021
1007
|
}
|
|
1022
|
-
interface
|
|
1023
|
-
isEmailRequired: boolean;
|
|
1024
|
-
isPhoneRequired: boolean;
|
|
1008
|
+
interface UpdateNotificationsParams {
|
|
1025
1009
|
}
|
|
1026
|
-
interface
|
|
1027
|
-
isEmailRequired: boolean;
|
|
1028
|
-
isPhoneRequired: boolean;
|
|
1010
|
+
interface GetMeParams {
|
|
1029
1011
|
}
|
|
1030
|
-
interface
|
|
1031
|
-
languages: Language[];
|
|
1032
|
-
markets: Market[];
|
|
1033
|
-
zones: Zone[];
|
|
1034
|
-
buildHooks: string[];
|
|
1035
|
-
webhooks: any[];
|
|
1036
|
-
orderBlocks: any[];
|
|
1037
|
-
reservationBlocks: any[];
|
|
1038
|
-
orderConfigs: OrderConfigs;
|
|
1039
|
-
reservationConfigs: BusinessReservationConfigs;
|
|
1040
|
-
paymentProvider?: PaymentProviderConfig;
|
|
1041
|
-
aiProvider?: any;
|
|
1042
|
-
emails: BusinessEmails;
|
|
1012
|
+
interface LogoutParams {
|
|
1043
1013
|
}
|
|
1044
|
-
interface
|
|
1045
|
-
id: string;
|
|
1046
|
-
name: string;
|
|
1047
|
-
configs?: BusinessConfig;
|
|
1014
|
+
interface GetBusinessesParams {
|
|
1048
1015
|
}
|
|
1049
|
-
interface
|
|
1050
|
-
businessId: string;
|
|
1051
|
-
selectedShippingMethodId: string | null;
|
|
1052
|
-
userToken: string | null;
|
|
1053
|
-
processingCheckout: boolean;
|
|
1054
|
-
loading: boolean;
|
|
1055
|
-
error: string | null;
|
|
1056
|
-
phoneNumber: string;
|
|
1057
|
-
phoneError: string | null;
|
|
1058
|
-
verificationCode: string;
|
|
1059
|
-
verifyError: string | null;
|
|
1016
|
+
interface GetSubscriptionPlansParams {
|
|
1060
1017
|
}
|
|
1061
|
-
interface
|
|
1018
|
+
interface SetupAnalyticsParams {
|
|
1019
|
+
[key: string]: any;
|
|
1020
|
+
}
|
|
1021
|
+
interface GetBusinessMediaParams2 {
|
|
1062
1022
|
id: string;
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1023
|
+
cursor?: string | null;
|
|
1024
|
+
limit: number;
|
|
1025
|
+
ids?: string[];
|
|
1026
|
+
query?: string;
|
|
1027
|
+
mimeType?: string;
|
|
1028
|
+
sortField?: string;
|
|
1029
|
+
sortDirection?: 'asc' | 'desc';
|
|
1067
1030
|
}
|
|
1068
|
-
interface
|
|
1069
|
-
|
|
1070
|
-
metaTitle: Record<string, string>;
|
|
1071
|
-
metaDescription: Record<string, string>;
|
|
1072
|
-
canonicalUrl: Record<string, string>;
|
|
1073
|
-
ogImage: string;
|
|
1031
|
+
interface DeleteProductParams {
|
|
1032
|
+
id: string;
|
|
1074
1033
|
}
|
|
1075
|
-
interface
|
|
1034
|
+
interface DeleteProductParams {
|
|
1076
1035
|
id: string;
|
|
1077
|
-
size: string;
|
|
1078
|
-
url: string;
|
|
1079
1036
|
}
|
|
1080
|
-
interface
|
|
1037
|
+
interface ProcessRefundParams {
|
|
1081
1038
|
id: string;
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
};
|
|
1085
|
-
mimeType: string;
|
|
1086
|
-
title?: string | null;
|
|
1087
|
-
description?: string | null;
|
|
1088
|
-
alt?: string | null;
|
|
1089
|
-
owner: string;
|
|
1090
|
-
metadata?: string | null;
|
|
1091
|
-
uploadedAt: string;
|
|
1092
|
-
seo: Seo;
|
|
1039
|
+
entity: string;
|
|
1040
|
+
amount: number;
|
|
1093
1041
|
}
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
total?: number;
|
|
1042
|
+
type FeatureFlagStatus = "DRAFT" | "ACTIVE" | "ARCHIVED";
|
|
1043
|
+
interface VariantInput {
|
|
1044
|
+
key: string;
|
|
1045
|
+
weight: number;
|
|
1046
|
+
payload?: Block[];
|
|
1100
1047
|
}
|
|
1101
|
-
interface
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
total: number;
|
|
1105
|
-
page: number;
|
|
1106
|
-
per_page: number;
|
|
1107
|
-
};
|
|
1048
|
+
interface Variant extends VariantInput {
|
|
1049
|
+
assignments: number;
|
|
1050
|
+
conversions: number;
|
|
1108
1051
|
}
|
|
1109
|
-
interface
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
steps: Record<number, {
|
|
1113
|
-
name: string;
|
|
1114
|
-
labelKey: string;
|
|
1115
|
-
}>;
|
|
1116
|
-
weekdays: string[];
|
|
1117
|
-
monthYear: string;
|
|
1118
|
-
days: any[];
|
|
1119
|
-
current: Date;
|
|
1120
|
-
selectedDate: string | null;
|
|
1121
|
-
slots: any[];
|
|
1122
|
-
selectedSlot: any | null;
|
|
1123
|
-
selectedProvider: any | null;
|
|
1124
|
-
providers: any[];
|
|
1125
|
-
loading: boolean;
|
|
1126
|
-
startDate: string | null;
|
|
1127
|
-
endDate: string | null;
|
|
1128
|
-
phoneNumber: string;
|
|
1129
|
-
phoneError: string | null;
|
|
1130
|
-
phoneSuccess: string | null;
|
|
1131
|
-
verificationCode: string;
|
|
1132
|
-
verifyError: string | null;
|
|
1133
|
-
isPhoneVerified: boolean;
|
|
1134
|
-
isSendingCode: boolean;
|
|
1135
|
-
isVerifying: boolean;
|
|
1136
|
-
codeSentAt: number | null;
|
|
1137
|
-
canResendAt: number | null;
|
|
1138
|
-
guestToken: string | null;
|
|
1139
|
-
service: any | null;
|
|
1140
|
-
business: Business | null;
|
|
1141
|
-
currency: string;
|
|
1142
|
-
reservationBlocks: Block[];
|
|
1143
|
-
apiUrl: string;
|
|
1052
|
+
interface FeatureFlag {
|
|
1053
|
+
id: string;
|
|
1054
|
+
key: string;
|
|
1144
1055
|
businessId: string;
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1056
|
+
status: FeatureFlagStatus;
|
|
1057
|
+
variants: Variant[];
|
|
1058
|
+
goalEvent?: string;
|
|
1059
|
+
createdAt: number;
|
|
1060
|
+
updatedAt: number;
|
|
1061
|
+
}
|
|
1062
|
+
interface VariantResult {
|
|
1063
|
+
variantKey: string;
|
|
1064
|
+
assignments: number;
|
|
1065
|
+
conversions: number;
|
|
1066
|
+
conversionRate: number;
|
|
1067
|
+
improvement?: number;
|
|
1153
1068
|
}
|
|
1154
|
-
interface
|
|
1069
|
+
interface FlagResults {
|
|
1070
|
+
totalAssignments: number;
|
|
1071
|
+
totalConversions: number;
|
|
1072
|
+
variantResults: VariantResult[];
|
|
1073
|
+
}
|
|
1074
|
+
interface GetVariantResponse {
|
|
1075
|
+
flagKey: string;
|
|
1076
|
+
variantKey: string;
|
|
1077
|
+
payload: Block[];
|
|
1078
|
+
isNewAssignment: boolean;
|
|
1079
|
+
}
|
|
1080
|
+
interface TrackEventResponse {
|
|
1081
|
+
tracked: boolean;
|
|
1082
|
+
experimentsUpdated: number;
|
|
1083
|
+
}
|
|
1084
|
+
interface CreateFeatureFlagParams {
|
|
1085
|
+
key: string;
|
|
1086
|
+
variants: VariantInput[];
|
|
1087
|
+
goalEvent?: string;
|
|
1088
|
+
}
|
|
1089
|
+
interface UpdateFeatureFlagParams {
|
|
1155
1090
|
id: string;
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
status
|
|
1159
|
-
note?: string;
|
|
1160
|
-
timestamp: number;
|
|
1091
|
+
variants?: VariantInput[];
|
|
1092
|
+
goalEvent?: string;
|
|
1093
|
+
status?: FeatureFlagStatus;
|
|
1161
1094
|
}
|
|
1162
|
-
interface
|
|
1095
|
+
interface DeleteFeatureFlagParams {
|
|
1163
1096
|
id: string;
|
|
1164
|
-
serviceId: string;
|
|
1165
|
-
providerId: string;
|
|
1166
|
-
businessId: string;
|
|
1167
|
-
reservationId: string;
|
|
1168
|
-
userId: string;
|
|
1169
|
-
from: number;
|
|
1170
|
-
to: number;
|
|
1171
|
-
blocks: Block[];
|
|
1172
|
-
price: Price;
|
|
1173
1097
|
}
|
|
1174
|
-
interface
|
|
1098
|
+
interface GetFeatureFlagParams {
|
|
1175
1099
|
id: string;
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1100
|
+
}
|
|
1101
|
+
interface GetFeatureFlagsParams {
|
|
1102
|
+
status?: FeatureFlagStatus;
|
|
1103
|
+
}
|
|
1104
|
+
interface GetFeatureFlagResultsParams {
|
|
1105
|
+
id: string;
|
|
1106
|
+
}
|
|
1107
|
+
interface GetVariantParams {
|
|
1108
|
+
flagKey: string;
|
|
1109
|
+
}
|
|
1110
|
+
interface TrackEventParams {
|
|
1111
|
+
eventName: string;
|
|
1112
|
+
value?: number;
|
|
1113
|
+
}
|
|
1114
|
+
type SendStatus = "SCHEDULED" | "SENDING" | "SENT" | "CANCELLED" | "FAILED";
|
|
1115
|
+
interface SubscriptionPlan {
|
|
1116
|
+
id: string;
|
|
1117
|
+
name: string;
|
|
1118
|
+
price?: number;
|
|
1119
|
+
marketId?: string;
|
|
1120
|
+
}
|
|
1121
|
+
interface NewsletterSend {
|
|
1122
|
+
id: string;
|
|
1123
|
+
scheduledAt: number;
|
|
1124
|
+
status: SendStatus;
|
|
1125
|
+
sentCount: number;
|
|
1126
|
+
failedCount: number;
|
|
1189
1127
|
createdAt: number;
|
|
1190
|
-
lastModified: number;
|
|
1191
1128
|
}
|
|
1192
|
-
interface
|
|
1129
|
+
interface Newsletter {
|
|
1193
1130
|
id: string;
|
|
1194
1131
|
businessId: string;
|
|
1195
1132
|
key: string;
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
isPubliclyWritable: boolean;
|
|
1199
|
-
isSubmissionEnabled: boolean;
|
|
1200
|
-
isCaptchaRequired: boolean;
|
|
1201
|
-
notificationTemplateKey: string | null;
|
|
1202
|
-
notificationEmails: string[];
|
|
1203
|
-
statuses: StatusEvent[];
|
|
1133
|
+
plans: SubscriptionPlan[];
|
|
1134
|
+
statuses: any[];
|
|
1204
1135
|
createdAt: number;
|
|
1205
1136
|
updatedAt: number;
|
|
1206
1137
|
}
|
|
1207
|
-
interface
|
|
1138
|
+
interface NewsletterPost {
|
|
1208
1139
|
id: string;
|
|
1140
|
+
newsletterId: string;
|
|
1209
1141
|
businessId: string;
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1142
|
+
key: string;
|
|
1143
|
+
subject: string;
|
|
1144
|
+
contentHtml: string;
|
|
1145
|
+
sends: NewsletterSend[];
|
|
1146
|
+
statuses: any[];
|
|
1213
1147
|
createdAt: number;
|
|
1214
1148
|
updatedAt: number;
|
|
1215
1149
|
}
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1150
|
+
interface SubscriberInfo {
|
|
1151
|
+
userId: string;
|
|
1152
|
+
email: string;
|
|
1153
|
+
name: string;
|
|
1154
|
+
subscribedAt: number;
|
|
1155
|
+
}
|
|
1156
|
+
interface Paginated<T> {
|
|
1157
|
+
items: T[];
|
|
1158
|
+
cursor: string | null;
|
|
1220
1159
|
}
|
|
1221
|
-
interface
|
|
1222
|
-
id: string;
|
|
1223
|
-
businessId: string;
|
|
1160
|
+
interface CreateNewsletterParams {
|
|
1224
1161
|
key: string;
|
|
1225
|
-
|
|
1226
|
-
blocks: Block[];
|
|
1227
|
-
parentId: string | null;
|
|
1228
|
-
hasChildren: boolean;
|
|
1229
|
-
statuses: StatusEvent[];
|
|
1230
|
-
createdAt: number;
|
|
1231
|
-
updatedAt: number;
|
|
1162
|
+
plans?: SubscriptionPlan[];
|
|
1232
1163
|
}
|
|
1233
|
-
interface
|
|
1164
|
+
interface GetNewsletterParams {
|
|
1234
1165
|
id: string;
|
|
1235
|
-
key: string;
|
|
1236
|
-
businessId: string;
|
|
1237
|
-
blocks: Block[];
|
|
1238
|
-
parentId?: string | null;
|
|
1239
|
-
hasChildren: boolean;
|
|
1240
|
-
statuses: StatusEvent[];
|
|
1241
|
-
seo: Seo;
|
|
1242
|
-
createdAt: number;
|
|
1243
|
-
updatedAt: number;
|
|
1244
1166
|
}
|
|
1245
|
-
interface
|
|
1246
|
-
|
|
1247
|
-
|
|
1167
|
+
interface GetNewslettersParams {
|
|
1168
|
+
limit?: number;
|
|
1169
|
+
cursor?: string;
|
|
1248
1170
|
}
|
|
1249
|
-
interface
|
|
1171
|
+
interface UpdateNewsletterParams {
|
|
1250
1172
|
id: string;
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
day: string;
|
|
1255
|
-
workingHours: Array<{
|
|
1256
|
-
from: number;
|
|
1257
|
-
to: number;
|
|
1258
|
-
}>;
|
|
1259
|
-
}>;
|
|
1260
|
-
outcastDates: Array<{
|
|
1261
|
-
month: number;
|
|
1262
|
-
day: number;
|
|
1263
|
-
workingHours: Array<{
|
|
1264
|
-
from: number;
|
|
1265
|
-
to: number;
|
|
1266
|
-
}>;
|
|
1267
|
-
}>;
|
|
1268
|
-
specificDates: Array<{
|
|
1269
|
-
date: number;
|
|
1270
|
-
workingHours: Array<{
|
|
1271
|
-
from: number;
|
|
1272
|
-
to: number;
|
|
1273
|
-
}>;
|
|
1274
|
-
}>;
|
|
1275
|
-
};
|
|
1276
|
-
provider?: Provider;
|
|
1173
|
+
key?: string;
|
|
1174
|
+
plans?: SubscriptionPlan[];
|
|
1175
|
+
status?: string;
|
|
1277
1176
|
}
|
|
1278
|
-
interface
|
|
1177
|
+
interface DeleteNewsletterParams {
|
|
1178
|
+
id: string;
|
|
1179
|
+
}
|
|
1180
|
+
interface GetSubscribersParams {
|
|
1279
1181
|
id: string;
|
|
1182
|
+
}
|
|
1183
|
+
interface CreateNewsletterPostParams {
|
|
1184
|
+
newsletterId: string;
|
|
1280
1185
|
key: string;
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
prices: Price[];
|
|
1284
|
-
durations: ServiceDuration[];
|
|
1285
|
-
blocks: Block[];
|
|
1286
|
-
taxonomyIds: string[];
|
|
1287
|
-
isApprovalRequired: boolean;
|
|
1288
|
-
providers: ServiceProvider[];
|
|
1289
|
-
createdAt: number;
|
|
1290
|
-
updatedAt: number;
|
|
1291
|
-
statuses: StatusEvent[];
|
|
1186
|
+
subject: string;
|
|
1187
|
+
contentHtml?: string;
|
|
1292
1188
|
}
|
|
1293
|
-
interface
|
|
1294
|
-
|
|
1295
|
-
|
|
1189
|
+
interface GetNewsletterPostParams {
|
|
1190
|
+
newsletterId: string;
|
|
1191
|
+
postId: string;
|
|
1296
1192
|
}
|
|
1297
|
-
interface
|
|
1193
|
+
interface GetNewsletterPostsParams {
|
|
1194
|
+
newsletterId: string;
|
|
1195
|
+
limit?: number;
|
|
1196
|
+
cursor?: string;
|
|
1197
|
+
}
|
|
1198
|
+
interface UpdateNewsletterPostParams {
|
|
1199
|
+
newsletterId: string;
|
|
1200
|
+
postId: string;
|
|
1201
|
+
key?: string;
|
|
1202
|
+
subject?: string;
|
|
1203
|
+
contentHtml?: string;
|
|
1204
|
+
status?: string;
|
|
1205
|
+
}
|
|
1206
|
+
interface DeleteNewsletterPostParams {
|
|
1207
|
+
newsletterId: string;
|
|
1208
|
+
postId: string;
|
|
1209
|
+
}
|
|
1210
|
+
interface ScheduleSendParams {
|
|
1211
|
+
newsletterId: string;
|
|
1212
|
+
postId: string;
|
|
1213
|
+
scheduledAt?: number;
|
|
1214
|
+
}
|
|
1215
|
+
interface CancelSendParams {
|
|
1216
|
+
newsletterId: string;
|
|
1217
|
+
postId: string;
|
|
1218
|
+
sendId: string;
|
|
1219
|
+
}
|
|
1220
|
+
type SystemTemplateKey = "system:reservation-business-update" | "system:reservation-customer-update" | "system:user-invitation" | "system:order-status-update" | "system:user-confirmation" | "system:forgot-password";
|
|
1221
|
+
interface GetSlotsForDateParams {
|
|
1222
|
+
serviceId: string;
|
|
1223
|
+
date: Date;
|
|
1224
|
+
timezone: string;
|
|
1225
|
+
providerId?: string;
|
|
1226
|
+
}
|
|
1227
|
+
interface GetAvailabilityParams {
|
|
1228
|
+
serviceId: string;
|
|
1229
|
+
from: Date;
|
|
1230
|
+
to: Date;
|
|
1231
|
+
timezone: string;
|
|
1232
|
+
}
|
|
1233
|
+
interface DayAvailability {
|
|
1234
|
+
date: Date;
|
|
1235
|
+
available: boolean;
|
|
1236
|
+
}
|
|
1237
|
+
/**
|
|
1238
|
+
* A bookable time slot returned by getSlotsForDate.
|
|
1239
|
+
* Contains all information needed to display and book the slot.
|
|
1240
|
+
*/
|
|
1241
|
+
interface Slot {
|
|
1298
1242
|
id: string;
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
blocks: Block[];
|
|
1306
|
-
timeline: ProviderTimelinePoint[];
|
|
1307
|
-
createdAt: number;
|
|
1308
|
-
updatedAt: number;
|
|
1243
|
+
serviceId: string;
|
|
1244
|
+
providerId: string;
|
|
1245
|
+
from: number;
|
|
1246
|
+
to: number;
|
|
1247
|
+
timeText: string;
|
|
1248
|
+
dateText: string;
|
|
1309
1249
|
}
|
|
1310
1250
|
|
|
1311
|
-
export { type AddPhoneNumberParams, type ApiResponse, type Block, type BulkScheduleParams, type Business, type BusinessConfig, type BusinessEmails, type BusinessReservationConfigs, type CancelSendParams, type Condition, type ConfirmUserParams, type CreateBusinessParams, type
|
|
1251
|
+
export { type AddPhoneNumberParams, type ApiResponse, type Block, type BulkScheduleParams, type Business, type BusinessConfig, type BusinessEmails, type BusinessReservationConfigs, type CancelSendParams, type Condition, type ConfirmUserParams, type CreateBusinessParams, type CreateFeatureFlagParams, type CreateNewsletterParams, type CreateNewsletterPostParams, type CreateNodeParams, type CreateOrderParams, type CreatePortalSessionParams, type CreateProductParams, type CreatePromoCodeParams, type CreateProviderParams, type CreateReservationParams, type CreateRoleParams, type CreateServiceParams, type DayAvailability, type DeleteBusinessMediaParams, type DeleteBusinessParams, type DeleteFeatureFlagParams, type DeleteNewsletterParams, type DeleteNewsletterPostParams, type DeleteNodeParams, type DeleteProductParams, type DeletePromoCodeParams, type DeleteProviderParams, type DeleteRoleParams, type DeleteServiceParams, type DeleteUserParams, type Discount, type EshopCartItem, type EshopItem, type EshopStoreState, type FeatureFlag, type FeatureFlagStatus, type FlagResults, type ForgotPasswordParams, type GenerateBlocksParams, type GetAnalyticsHealthParams, type GetAnalyticsParams, type GetAvailabilityParams, type GetBusinessMediaParams, type GetBusinessMediaParams2, type GetBusinessParams, type GetBusinessParentsParams, type GetBusinessServiceWorkingTimeParams, type GetBusinessesParams, type GetDeliveryStatsParams, type GetFeatureFlagParams, type GetFeatureFlagResultsParams, type GetFeatureFlagsParams, type GetLoginUrlParams, type GetMeParams, type GetNewsletterParams, type GetNewsletterPostParams, type GetNewsletterPostsParams, type GetNewslettersParams, type GetNodeChildrenParams, type GetNodeParams, type GetNodesParams, type GetOrderParams, type GetOrdersParams, type GetProductParams, type GetProductsParams, type GetPromoCodeParams, type GetPromoCodesParams, type GetProviderParams, type GetProvidersParams, type GetQuoteParams, type GetReservationParams, type GetReservationQuoteParams, type GetRoleParams, type GetRolesParams, type GetServiceParams, type GetServicesParams, type GetSlotsForDateParams, type GetSubscribersParams, type GetSubscriptionParams, type GetSubscriptionPlansParams, type GetVariableMetadataParams, type GetVariantParams, type GetVariantResponse, type HandleInvitationParams, type InviteUserParams, type Language, type Location, type LoginUserParams, type LogoutParams, type Market, type Media, type MediaResolution, type Newsletter, type NewsletterPost, type NewsletterSend, type Node, type NodeConfig, type NodeNotifications, type OrderCheckoutParams, type OrderConfigs, type OutcastDate, type Paginated, type PaginatedResponse, type Payment, type PaymentMethod, PaymentMethodType, type PaymentProviderConfig, type PaymentRefund, type PhoneNumberConfirmParams, type Price, type ProcessRefundParams, type PromoCodeValidation, type Provider, type ProviderTimelinePoint, type ProviderWithTimeline, type Quote, type RegisterUserParams, type RequestOptions, type Reservation, type ReservationCartItem, type ReservationCheckoutParams, type ReservationItem, type ReservationQuoteItem, type ReservationStoreState, type ResetForgotPasswordParams, type ResetPasswordParams, type ScheduleSendParams, type SearchReservationsParams, type SearchUsersParams, type SendStatus, type Seo, type Service, type ServiceDuration, type ServiceProvider, type ServiceProviderInput, type SetRoleParams, type SetupAnalyticsParams, type ShippingMethod, type ShippingWeightTier, type Slot, type SpecificDate, type StatusEvent, type SubscribeParams, type SubscriberInfo, type SubscriptionPlan, type SystemTemplateKey, type TestWebhookParams, type TimelinePoint, type TrackEmailOpenParams, type TrackEventParams, type TrackEventResponse, type TriggerBuildsParams, type UpdateBusinessParams, type UpdateFeatureFlagParams, type UpdateMediaParams, type UpdateNewsletterParams, type UpdateNewsletterPostParams, type UpdateNodeParams, type UpdateNotificationsParams, type UpdateOrderParams, type UpdateProductParams, type UpdatePromoCodeParams, type UpdateProviderParams, type UpdateReservationParams, type UpdateRoleParams, type UpdateServiceParams, type UpdateUserProfileParams, type UploadBusinessMediaParams, type UserSubscribeParams, type Variant, type VariantInput, type VariantResult, type WorkingDay, type WorkingHour, type WorkingTime, type Zone, type ZoneScope };
|