arky-sdk 0.3.129 → 0.3.130
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 +1013 -1073
- package/dist/types.d.ts +1013 -1073
- package/dist/types.js +1 -7
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { ApiResponse, Business, BusinessConfig, DayAvailability, EshopCartItem, EshopStoreState, GetAvailabilityParams, GetSlotsForDateParams, Language, Location, Market, Media, MediaResolution, PaginatedResponse, PaymentMethod, PaymentMethodType, PaymentProviderConfig, PaymentRefund, PromoCodeValidation, ProviderWithTimeline, Quote, ReservationCartItem, ReservationStoreState, Seo, ShippingMethod, ShippingWeightTier, SystemTemplateKey, Zone } from './types.cjs';
|
|
1
|
+
import { Price, Payment, UpdateUserProfileParams, RequestOptions, DeleteUserParams, AddPhoneNumberParams, PhoneNumberConfirmParams, GetMeParams, SearchUsersParams, SetRoleParams, LoginUserParams, RegisterUserParams, LogoutParams, ConfirmUserParams, GetLoginUrlParams, ForgotPasswordParams, ResetForgotPasswordParams, ResetPasswordParams, UserSubscribeParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetBusinessParentsParams, TriggerBuildsParams, GetSubscriptionPlansParams, GetSubscriptionParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, ProcessRefundParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, CreateRoleParams, UpdateRoleParams, DeleteRoleParams, GetRoleParams, GetRolesParams, TrackEmailOpenParams, GetDeliveryStatsParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, GetAnalyticsParams, CreateNodeParams, UpdateNodeParams, DeleteNodeParams, GetNodeParams, GetNodesParams, GetNodeChildrenParams, GenerateBlocksParams, GetVariableMetadataParams, CreateProductParams, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderCheckoutParams, Slot, CreateReservationParams, UpdateReservationParams, ReservationCheckoutParams, GetReservationParams, SearchReservationsParams, GetReservationQuoteParams, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, BulkScheduleParams, GetServiceParams, GetServicesParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, GetBusinessServiceWorkingTimeParams, CreateFeatureFlagParams, FeatureFlag, GetFeatureFlagParams, GetFeatureFlagsParams, UpdateFeatureFlagParams, DeleteFeatureFlagParams, GetFeatureFlagResultsParams, FlagResults, GetVariantParams, GetVariantResponse, TrackEventParams, TrackEventResponse, CreateNewsletterParams, Newsletter, GetNewsletterParams, GetNewslettersParams, Paginated, UpdateNewsletterParams, DeleteNewsletterParams, GetSubscribersParams, SubscriberInfo, CreateNewsletterPostParams, NewsletterPost, GetNewsletterPostParams, GetNewsletterPostsParams, UpdateNewsletterPostParams, DeleteNewsletterPostParams, ScheduleSendParams, CancelSendParams } from './types.cjs';
|
|
2
|
+
export { ApiResponse, Block, Business, BusinessConfig, DayAvailability, EshopCartItem, EshopStoreState, GetAvailabilityParams, GetSlotsForDateParams, Language, Location, Market, Media, MediaResolution, Node, PaginatedResponse, PaymentMethod, PaymentMethodType, PaymentProviderConfig, PaymentRefund, PromoCodeValidation, ProviderWithTimeline, Quote, ReservationCartItem, ReservationStoreState, Seo, ShippingMethod, ShippingWeightTier, SystemTemplateKey, Zone } from './types.cjs';
|
|
3
3
|
import { isValidKey, validateKey, toKey, nameToKey } from './utils.cjs';
|
|
4
4
|
|
|
5
5
|
interface AuthTokens {
|
|
@@ -22,97 +22,6 @@ interface HttpClientConfig {
|
|
|
22
22
|
isAuthenticated?: () => boolean;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
interface GetFormsParams {
|
|
26
|
-
key?: string;
|
|
27
|
-
ids?: string[];
|
|
28
|
-
statuses?: string[];
|
|
29
|
-
limit?: number;
|
|
30
|
-
cursor?: string;
|
|
31
|
-
}
|
|
32
|
-
interface GetFormParams {
|
|
33
|
-
id: string;
|
|
34
|
-
}
|
|
35
|
-
interface CreateFormParams {
|
|
36
|
-
key: string;
|
|
37
|
-
blocks?: Block[];
|
|
38
|
-
isPubliclyReadable?: boolean;
|
|
39
|
-
isPubliclyWritable?: boolean;
|
|
40
|
-
isSubmissionEnabled?: boolean;
|
|
41
|
-
isCaptchaRequired?: boolean;
|
|
42
|
-
notificationTemplateKey?: string;
|
|
43
|
-
notificationEmails?: string[];
|
|
44
|
-
}
|
|
45
|
-
interface UpdateFormParams {
|
|
46
|
-
id: string;
|
|
47
|
-
key: string;
|
|
48
|
-
blocks?: Block[];
|
|
49
|
-
isPubliclyReadable: boolean;
|
|
50
|
-
isPubliclyWritable: boolean;
|
|
51
|
-
isSubmissionEnabled: boolean;
|
|
52
|
-
isCaptchaRequired: boolean;
|
|
53
|
-
notificationTemplateKey?: string;
|
|
54
|
-
notificationEmails: string[];
|
|
55
|
-
statuses: StatusEvent[];
|
|
56
|
-
}
|
|
57
|
-
interface DeleteFormParams {
|
|
58
|
-
id: string;
|
|
59
|
-
}
|
|
60
|
-
interface GetEntriesParams {
|
|
61
|
-
formId: string;
|
|
62
|
-
ids?: string[];
|
|
63
|
-
statuses?: string[];
|
|
64
|
-
limit?: number;
|
|
65
|
-
cursor?: string;
|
|
66
|
-
}
|
|
67
|
-
interface CreateEntryParams {
|
|
68
|
-
formId: string;
|
|
69
|
-
blocks: Block[];
|
|
70
|
-
}
|
|
71
|
-
interface GetEntryParams {
|
|
72
|
-
formId: string;
|
|
73
|
-
entryId: string;
|
|
74
|
-
}
|
|
75
|
-
interface DeleteEntryParams {
|
|
76
|
-
formId: string;
|
|
77
|
-
entryId: string;
|
|
78
|
-
}
|
|
79
|
-
interface RequestOptions$1 {
|
|
80
|
-
headers?: Record<string, string>;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
interface GetTaxonomiesParams {
|
|
84
|
-
scope?: TaxonomyScope;
|
|
85
|
-
parentId?: string;
|
|
86
|
-
ids?: string[];
|
|
87
|
-
}
|
|
88
|
-
interface GetTaxonomyParams {
|
|
89
|
-
id: string;
|
|
90
|
-
}
|
|
91
|
-
interface CreateTaxonomyParams {
|
|
92
|
-
key: string;
|
|
93
|
-
scope: TaxonomyScope;
|
|
94
|
-
blocks?: Block[];
|
|
95
|
-
parentId?: string;
|
|
96
|
-
}
|
|
97
|
-
interface UpdateTaxonomyParams {
|
|
98
|
-
id: string;
|
|
99
|
-
key: string;
|
|
100
|
-
scope: TaxonomyScope;
|
|
101
|
-
blocks?: Block[];
|
|
102
|
-
parentId?: string;
|
|
103
|
-
hasChildren?: boolean;
|
|
104
|
-
statuses: StatusEvent[];
|
|
105
|
-
}
|
|
106
|
-
interface DeleteTaxonomyParams {
|
|
107
|
-
id: string;
|
|
108
|
-
}
|
|
109
|
-
interface GetTaxonomyChildrenParams {
|
|
110
|
-
id: string;
|
|
111
|
-
}
|
|
112
|
-
interface RequestOptions {
|
|
113
|
-
headers?: Record<string, string>;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
25
|
interface LocationState {
|
|
117
26
|
code: string;
|
|
118
27
|
name: string;
|
|
@@ -246,7 +155,7 @@ declare function getSvgContentForAstro(mediaObject: any): Promise<string>;
|
|
|
246
155
|
*/
|
|
247
156
|
declare function injectSvgIntoElement(mediaObject: any, targetElement: HTMLElement, className?: string): Promise<void>;
|
|
248
157
|
|
|
249
|
-
declare const SDK_VERSION = "0.3.
|
|
158
|
+
declare const SDK_VERSION = "0.3.130";
|
|
250
159
|
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
251
160
|
interface ApiConfig {
|
|
252
161
|
httpClient: any;
|
|
@@ -263,134 +172,134 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
263
172
|
locale?: string;
|
|
264
173
|
}): Promise<{
|
|
265
174
|
user: {
|
|
266
|
-
updateUser(params: UpdateUserProfileParams, options?: RequestOptions
|
|
267
|
-
deleteUser(params: DeleteUserParams, options?: RequestOptions
|
|
268
|
-
addPhoneNumber(params: AddPhoneNumberParams, options?: RequestOptions
|
|
269
|
-
phoneNumberConfirm(params: PhoneNumberConfirmParams, options?: RequestOptions
|
|
270
|
-
getMe(params: GetMeParams, options?: RequestOptions
|
|
271
|
-
searchUsers(params: SearchUsersParams, options?: RequestOptions
|
|
272
|
-
setRole(params: SetRoleParams, options?: RequestOptions
|
|
273
|
-
loginUser(params: LoginUserParams, options?: RequestOptions
|
|
274
|
-
registerUser(params: RegisterUserParams, options?: RequestOptions
|
|
275
|
-
logout(params: LogoutParams, options?: RequestOptions
|
|
276
|
-
confirmUser(params: ConfirmUserParams, options?: RequestOptions
|
|
277
|
-
getLoginUrl(params: GetLoginUrlParams, options?: RequestOptions
|
|
278
|
-
forgotPassword(params: ForgotPasswordParams, options?: RequestOptions
|
|
279
|
-
resetForgotPassword(params: ResetForgotPasswordParams, options?: RequestOptions
|
|
280
|
-
resetPassword(params: ResetPasswordParams, options?: RequestOptions
|
|
281
|
-
subscribe(params: UserSubscribeParams, options?: RequestOptions
|
|
175
|
+
updateUser(params: UpdateUserProfileParams, options?: RequestOptions): Promise<any>;
|
|
176
|
+
deleteUser(params: DeleteUserParams, options?: RequestOptions): Promise<any>;
|
|
177
|
+
addPhoneNumber(params: AddPhoneNumberParams, options?: RequestOptions): Promise<any>;
|
|
178
|
+
phoneNumberConfirm(params: PhoneNumberConfirmParams, options?: RequestOptions): Promise<any>;
|
|
179
|
+
getMe(params: GetMeParams, options?: RequestOptions): Promise<any>;
|
|
180
|
+
searchUsers(params: SearchUsersParams, options?: RequestOptions): Promise<any>;
|
|
181
|
+
setRole(params: SetRoleParams, options?: RequestOptions): Promise<any>;
|
|
182
|
+
loginUser(params: LoginUserParams, options?: RequestOptions): Promise<any>;
|
|
183
|
+
registerUser(params: RegisterUserParams, options?: RequestOptions): Promise<any>;
|
|
184
|
+
logout(params: LogoutParams, options?: RequestOptions): Promise<any>;
|
|
185
|
+
confirmUser(params: ConfirmUserParams, options?: RequestOptions): Promise<any>;
|
|
186
|
+
getLoginUrl(params: GetLoginUrlParams, options?: RequestOptions): Promise<any>;
|
|
187
|
+
forgotPassword(params: ForgotPasswordParams, options?: RequestOptions): Promise<any>;
|
|
188
|
+
resetForgotPassword(params: ResetForgotPasswordParams, options?: RequestOptions): Promise<any>;
|
|
189
|
+
resetPassword(params: ResetPasswordParams, options?: RequestOptions): Promise<any>;
|
|
190
|
+
subscribe(params: UserSubscribeParams, options?: RequestOptions): Promise<any>;
|
|
282
191
|
};
|
|
283
192
|
business: {
|
|
284
|
-
createBusiness(params: CreateBusinessParams, options?: RequestOptions
|
|
285
|
-
updateBusiness(params: UpdateBusinessParams, options?: RequestOptions
|
|
286
|
-
deleteBusiness(params: DeleteBusinessParams, options?: RequestOptions
|
|
287
|
-
getBusiness(params: GetBusinessParams, options?: RequestOptions
|
|
288
|
-
getBusinesses(params: GetBusinessesParams, options?: RequestOptions
|
|
289
|
-
getBusinessParents(params: GetBusinessParentsParams, options?: RequestOptions
|
|
290
|
-
triggerBuilds(params: TriggerBuildsParams, options?: RequestOptions
|
|
291
|
-
getSubscriptionPlans(params: GetSubscriptionPlansParams, options?: RequestOptions
|
|
292
|
-
getSubscription(params: GetSubscriptionParams, options?: RequestOptions
|
|
293
|
-
subscribe(params: SubscribeParams, options?: RequestOptions
|
|
294
|
-
createPortalSession(params: CreatePortalSessionParams, options?: RequestOptions
|
|
295
|
-
inviteUser(params: InviteUserParams, options?: RequestOptions
|
|
296
|
-
handleInvitation(params: HandleInvitationParams, options?: RequestOptions
|
|
297
|
-
testWebhook(params: TestWebhookParams, options?: RequestOptions
|
|
298
|
-
getBusinessMedia(params: GetBusinessMediaParams2, options?: RequestOptions
|
|
299
|
-
processRefund(params: ProcessRefundParams, options?: RequestOptions
|
|
193
|
+
createBusiness(params: CreateBusinessParams, options?: RequestOptions): Promise<any>;
|
|
194
|
+
updateBusiness(params: UpdateBusinessParams, options?: RequestOptions): Promise<any>;
|
|
195
|
+
deleteBusiness(params: DeleteBusinessParams, options?: RequestOptions): Promise<any>;
|
|
196
|
+
getBusiness(params: GetBusinessParams, options?: RequestOptions): Promise<any>;
|
|
197
|
+
getBusinesses(params: GetBusinessesParams, options?: RequestOptions): Promise<any>;
|
|
198
|
+
getBusinessParents(params: GetBusinessParentsParams, options?: RequestOptions): Promise<any>;
|
|
199
|
+
triggerBuilds(params: TriggerBuildsParams, options?: RequestOptions): Promise<any>;
|
|
200
|
+
getSubscriptionPlans(params: GetSubscriptionPlansParams, options?: RequestOptions): Promise<any>;
|
|
201
|
+
getSubscription(params: GetSubscriptionParams, options?: RequestOptions): Promise<any>;
|
|
202
|
+
subscribe(params: SubscribeParams, options?: RequestOptions): Promise<any>;
|
|
203
|
+
createPortalSession(params: CreatePortalSessionParams, options?: RequestOptions): Promise<any>;
|
|
204
|
+
inviteUser(params: InviteUserParams, options?: RequestOptions): Promise<any>;
|
|
205
|
+
handleInvitation(params: HandleInvitationParams, options?: RequestOptions): Promise<any>;
|
|
206
|
+
testWebhook(params: TestWebhookParams, options?: RequestOptions): Promise<any>;
|
|
207
|
+
getBusinessMedia(params: GetBusinessMediaParams2, options?: RequestOptions): Promise<any>;
|
|
208
|
+
processRefund(params: ProcessRefundParams, options?: RequestOptions): Promise<any>;
|
|
300
209
|
};
|
|
301
210
|
media: {
|
|
302
|
-
uploadBusinessMedia(params: UploadBusinessMediaParams, options?: RequestOptions
|
|
303
|
-
deleteBusinessMedia(params: DeleteBusinessMediaParams, options?: RequestOptions
|
|
304
|
-
getBusinessMedia(params: GetBusinessMediaParams, options?: RequestOptions
|
|
305
|
-
updateMedia(params: UpdateMediaParams, options?: RequestOptions
|
|
211
|
+
uploadBusinessMedia(params: UploadBusinessMediaParams, options?: RequestOptions): Promise<any>;
|
|
212
|
+
deleteBusinessMedia(params: DeleteBusinessMediaParams, options?: RequestOptions): Promise<any>;
|
|
213
|
+
getBusinessMedia(params: GetBusinessMediaParams, options?: RequestOptions): Promise<any>;
|
|
214
|
+
updateMedia(params: UpdateMediaParams, options?: RequestOptions): Promise<any>;
|
|
306
215
|
};
|
|
307
216
|
role: {
|
|
308
|
-
createRole(params: CreateRoleParams, options?: RequestOptions
|
|
309
|
-
updateRole(params: UpdateRoleParams, options?: RequestOptions
|
|
310
|
-
deleteRole(params: DeleteRoleParams, options?: RequestOptions
|
|
311
|
-
getRole(params: GetRoleParams, options?: RequestOptions
|
|
312
|
-
getRoles(params: GetRolesParams, options?: RequestOptions
|
|
217
|
+
createRole(params: CreateRoleParams, options?: RequestOptions): Promise<void>;
|
|
218
|
+
updateRole(params: UpdateRoleParams, options?: RequestOptions): Promise<any>;
|
|
219
|
+
deleteRole(params: DeleteRoleParams, options?: RequestOptions): Promise<any>;
|
|
220
|
+
getRole(params: GetRoleParams, options?: RequestOptions): Promise<any>;
|
|
221
|
+
getRoles(params: GetRolesParams, options?: RequestOptions): Promise<any>;
|
|
313
222
|
};
|
|
314
223
|
notification: {
|
|
315
|
-
trackEmailOpen(params: TrackEmailOpenParams, options?: RequestOptions
|
|
316
|
-
getDeliveryStats(params: GetDeliveryStatsParams, options?: RequestOptions
|
|
224
|
+
trackEmailOpen(params: TrackEmailOpenParams, options?: RequestOptions): Promise<any>;
|
|
225
|
+
getDeliveryStats(params: GetDeliveryStatsParams, options?: RequestOptions): Promise<any>;
|
|
317
226
|
};
|
|
318
227
|
promoCode: {
|
|
319
|
-
createPromoCode(params: CreatePromoCodeParams, options?: RequestOptions
|
|
320
|
-
updatePromoCode(params: UpdatePromoCodeParams, options?: RequestOptions
|
|
321
|
-
deletePromoCode(params: DeletePromoCodeParams, options?: RequestOptions
|
|
322
|
-
getPromoCode(params: GetPromoCodeParams, options?: RequestOptions
|
|
323
|
-
getPromoCodes(params: GetPromoCodesParams, options?: RequestOptions
|
|
228
|
+
createPromoCode(params: CreatePromoCodeParams, options?: RequestOptions): Promise<any>;
|
|
229
|
+
updatePromoCode(params: UpdatePromoCodeParams, options?: RequestOptions): Promise<any>;
|
|
230
|
+
deletePromoCode(params: DeletePromoCodeParams, options?: RequestOptions): Promise<any>;
|
|
231
|
+
getPromoCode(params: GetPromoCodeParams, options?: RequestOptions): Promise<any>;
|
|
232
|
+
getPromoCodes(params: GetPromoCodesParams, options?: RequestOptions): Promise<any>;
|
|
324
233
|
};
|
|
325
234
|
analytics: {
|
|
326
|
-
getAnalytics(params: GetAnalyticsParams, options?: RequestOptions
|
|
235
|
+
getAnalytics(params: GetAnalyticsParams, options?: RequestOptions): Promise<any>;
|
|
327
236
|
};
|
|
328
237
|
cms: {
|
|
329
|
-
createNode(params: CreateNodeParams, options?: RequestOptions
|
|
330
|
-
updateNode(params: UpdateNodeParams, options?: RequestOptions
|
|
331
|
-
deleteNode(params: DeleteNodeParams, options?: RequestOptions
|
|
332
|
-
getNode(params: GetNodeParams, options?: RequestOptions
|
|
333
|
-
getNodes(params: GetNodesParams, options?: RequestOptions
|
|
334
|
-
getNodeChildren(params: GetNodeChildrenParams, options?: RequestOptions
|
|
335
|
-
generateBlocks(params: GenerateBlocksParams, options?: RequestOptions
|
|
336
|
-
getVariableMetadata(params: GetVariableMetadataParams, options?: RequestOptions
|
|
238
|
+
createNode(params: CreateNodeParams, options?: RequestOptions): Promise<any>;
|
|
239
|
+
updateNode(params: UpdateNodeParams, options?: RequestOptions): Promise<any>;
|
|
240
|
+
deleteNode(params: DeleteNodeParams, options?: RequestOptions): Promise<any>;
|
|
241
|
+
getNode(params: GetNodeParams, options?: RequestOptions): Promise<any>;
|
|
242
|
+
getNodes(params: GetNodesParams, options?: RequestOptions): Promise<any>;
|
|
243
|
+
getNodeChildren(params: GetNodeChildrenParams, options?: RequestOptions): Promise<any>;
|
|
244
|
+
generateBlocks(params: GenerateBlocksParams, options?: RequestOptions): Promise<any>;
|
|
245
|
+
getVariableMetadata(params: GetVariableMetadataParams, options?: RequestOptions): Promise<any>;
|
|
337
246
|
};
|
|
338
247
|
eshop: {
|
|
339
|
-
createProduct(params: CreateProductParams, options?: RequestOptions
|
|
340
|
-
updateProduct(params: UpdateProductParams, options?: RequestOptions
|
|
341
|
-
deleteProduct(params: DeleteProductParams, options?: RequestOptions
|
|
342
|
-
getProduct(params: GetProductParams, options?: RequestOptions
|
|
343
|
-
getProducts(params: GetProductsParams, options?: RequestOptions
|
|
344
|
-
createOrder(params: CreateOrderParams, options?: RequestOptions
|
|
345
|
-
updateOrder(params: UpdateOrderParams, options?: RequestOptions
|
|
346
|
-
getOrder(params: GetOrderParams, options?: RequestOptions
|
|
347
|
-
getOrders(params: GetOrdersParams, options?: RequestOptions
|
|
348
|
-
getQuote(params: GetQuoteParams, options?: RequestOptions
|
|
349
|
-
checkout(params: OrderCheckoutParams, options?: RequestOptions
|
|
248
|
+
createProduct(params: CreateProductParams, options?: RequestOptions): Promise<any>;
|
|
249
|
+
updateProduct(params: UpdateProductParams, options?: RequestOptions): Promise<any>;
|
|
250
|
+
deleteProduct(params: DeleteProductParams, options?: RequestOptions): Promise<any>;
|
|
251
|
+
getProduct(params: GetProductParams, options?: RequestOptions): Promise<any>;
|
|
252
|
+
getProducts(params: GetProductsParams, options?: RequestOptions): Promise<any>;
|
|
253
|
+
createOrder(params: CreateOrderParams, options?: RequestOptions): Promise<any>;
|
|
254
|
+
updateOrder(params: UpdateOrderParams, options?: RequestOptions): Promise<any>;
|
|
255
|
+
getOrder(params: GetOrderParams, options?: RequestOptions): Promise<any>;
|
|
256
|
+
getOrders(params: GetOrdersParams, options?: RequestOptions): Promise<any>;
|
|
257
|
+
getQuote(params: GetQuoteParams, options?: RequestOptions): Promise<any>;
|
|
258
|
+
checkout(params: OrderCheckoutParams, options?: RequestOptions): Promise<any>;
|
|
350
259
|
};
|
|
351
260
|
reservation: {
|
|
352
261
|
addToCart(slot: Slot): void;
|
|
353
262
|
removeFromCart(slotId: string): void;
|
|
354
263
|
getCart(): Slot[];
|
|
355
264
|
clearCart(): void;
|
|
356
|
-
createReservation(params: CreateReservationParams, options?: RequestOptions
|
|
357
|
-
updateReservation(params: UpdateReservationParams, options?: RequestOptions
|
|
358
|
-
checkout(params?: Partial<ReservationCheckoutParams>, options?: RequestOptions
|
|
359
|
-
getReservation(params: GetReservationParams, options?: RequestOptions
|
|
360
|
-
searchReservations(params: SearchReservationsParams, options?: RequestOptions
|
|
361
|
-
getQuote(params: GetReservationQuoteParams, options?: RequestOptions
|
|
362
|
-
createService(params: CreateServiceParams, options?: RequestOptions
|
|
363
|
-
updateService(params: UpdateServiceParams, options?: RequestOptions
|
|
364
|
-
deleteService(params: DeleteServiceParams, options?: RequestOptions
|
|
365
|
-
bulkSchedule(params: BulkScheduleParams, options?: RequestOptions
|
|
366
|
-
getService(params: GetServiceParams, options?: RequestOptions
|
|
367
|
-
getServices(params: GetServicesParams, options?: RequestOptions
|
|
368
|
-
createProvider(params: CreateProviderParams, options?: RequestOptions
|
|
369
|
-
updateProvider(params: UpdateProviderParams, options?: RequestOptions
|
|
370
|
-
deleteProvider(params: DeleteProviderParams, options?: RequestOptions
|
|
371
|
-
getProvider(params: GetProviderParams, options?: RequestOptions
|
|
372
|
-
getProviders(params: GetProvidersParams, options?: RequestOptions
|
|
373
|
-
getProviderWorkingTime(params: GetBusinessServiceWorkingTimeParams, options?: RequestOptions
|
|
265
|
+
createReservation(params: CreateReservationParams, options?: RequestOptions): Promise<any>;
|
|
266
|
+
updateReservation(params: UpdateReservationParams, options?: RequestOptions): Promise<any>;
|
|
267
|
+
checkout(params?: Partial<ReservationCheckoutParams>, options?: RequestOptions): Promise<any>;
|
|
268
|
+
getReservation(params: GetReservationParams, options?: RequestOptions): Promise<any>;
|
|
269
|
+
searchReservations(params: SearchReservationsParams, options?: RequestOptions): Promise<any>;
|
|
270
|
+
getQuote(params: GetReservationQuoteParams, options?: RequestOptions): Promise<any>;
|
|
271
|
+
createService(params: CreateServiceParams, options?: RequestOptions): Promise<any>;
|
|
272
|
+
updateService(params: UpdateServiceParams, options?: RequestOptions): Promise<any>;
|
|
273
|
+
deleteService(params: DeleteServiceParams, options?: RequestOptions): Promise<any>;
|
|
274
|
+
bulkSchedule(params: BulkScheduleParams, options?: RequestOptions): Promise<any>;
|
|
275
|
+
getService(params: GetServiceParams, options?: RequestOptions): Promise<any>;
|
|
276
|
+
getServices(params: GetServicesParams, options?: RequestOptions): Promise<any>;
|
|
277
|
+
createProvider(params: CreateProviderParams, options?: RequestOptions): Promise<any>;
|
|
278
|
+
updateProvider(params: UpdateProviderParams, options?: RequestOptions): Promise<any>;
|
|
279
|
+
deleteProvider(params: DeleteProviderParams, options?: RequestOptions): Promise<any>;
|
|
280
|
+
getProvider(params: GetProviderParams, options?: RequestOptions): Promise<any>;
|
|
281
|
+
getProviders(params: GetProvidersParams, options?: RequestOptions): Promise<any>;
|
|
282
|
+
getProviderWorkingTime(params: GetBusinessServiceWorkingTimeParams, options?: RequestOptions): Promise<any>;
|
|
374
283
|
};
|
|
375
284
|
database: {
|
|
376
|
-
scanData(params: ScanDataParams, options?: RequestOptions
|
|
377
|
-
putData(params: PutDataParams, options?: RequestOptions
|
|
378
|
-
deleteData(params: DeleteDataParams, options?: RequestOptions
|
|
379
|
-
runScript(params: RunScriptParams, options?: RequestOptions
|
|
285
|
+
scanData(params: ScanDataParams, options?: RequestOptions): Promise<any[]>;
|
|
286
|
+
putData(params: PutDataParams, options?: RequestOptions): Promise<void>;
|
|
287
|
+
deleteData(params: DeleteDataParams, options?: RequestOptions): Promise<void>;
|
|
288
|
+
runScript(params: RunScriptParams, options?: RequestOptions): Promise<RunScriptResponse>;
|
|
380
289
|
};
|
|
381
290
|
featureFlags: {
|
|
382
|
-
createFlag(params: CreateFeatureFlagParams, options?: RequestOptions
|
|
383
|
-
getFlag(params: GetFeatureFlagParams, options?: RequestOptions
|
|
384
|
-
getFlags(params?: GetFeatureFlagsParams, options?: RequestOptions
|
|
385
|
-
updateFlag(params: UpdateFeatureFlagParams, options?: RequestOptions
|
|
386
|
-
deleteFlag(params: DeleteFeatureFlagParams, options?: RequestOptions
|
|
291
|
+
createFlag(params: CreateFeatureFlagParams, options?: RequestOptions<FeatureFlag>): Promise<FeatureFlag>;
|
|
292
|
+
getFlag(params: GetFeatureFlagParams, options?: RequestOptions<FeatureFlag>): Promise<FeatureFlag>;
|
|
293
|
+
getFlags(params?: GetFeatureFlagsParams, options?: RequestOptions<FeatureFlag[]>): Promise<FeatureFlag[]>;
|
|
294
|
+
updateFlag(params: UpdateFeatureFlagParams, options?: RequestOptions<FeatureFlag>): Promise<FeatureFlag>;
|
|
295
|
+
deleteFlag(params: DeleteFeatureFlagParams, options?: RequestOptions<{
|
|
387
296
|
deleted: boolean;
|
|
388
297
|
}>): Promise<{
|
|
389
298
|
deleted: boolean;
|
|
390
299
|
}>;
|
|
391
|
-
getResults(params: GetFeatureFlagResultsParams, options?: RequestOptions
|
|
392
|
-
getVariant(params: GetVariantParams, options?: RequestOptions
|
|
393
|
-
trackEvent(params: TrackEventParams, options?: RequestOptions
|
|
300
|
+
getResults(params: GetFeatureFlagResultsParams, options?: RequestOptions<FlagResults>): Promise<FlagResults>;
|
|
301
|
+
getVariant(params: GetVariantParams, options?: RequestOptions<GetVariantResponse>): Promise<GetVariantResponse>;
|
|
302
|
+
trackEvent(params: TrackEventParams, options?: RequestOptions<TrackEventResponse>): Promise<TrackEventResponse>;
|
|
394
303
|
isEnabled(flagKey: string): Promise<boolean>;
|
|
395
304
|
getVariantWithDefault<T = any>(flagKey: string, defaultValue: T): Promise<{
|
|
396
305
|
variantKey: string;
|
|
@@ -400,72 +309,27 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
400
309
|
archiveFlag(id: string): Promise<FeatureFlag>;
|
|
401
310
|
};
|
|
402
311
|
location: {
|
|
403
|
-
getCountries(options?: RequestOptions
|
|
404
|
-
getCountryStates(countryCode: string, options?: RequestOptions
|
|
312
|
+
getCountries(options?: RequestOptions): Promise<GetCountriesResponse>;
|
|
313
|
+
getCountryStates(countryCode: string, options?: RequestOptions): Promise<LocationCountry>;
|
|
405
314
|
};
|
|
406
315
|
newsletter: {
|
|
407
|
-
createNewsletter(params: CreateNewsletterParams, options?: RequestOptions
|
|
408
|
-
getNewsletter(params: GetNewsletterParams, options?: RequestOptions
|
|
409
|
-
getNewsletters(params?: GetNewslettersParams, options?: RequestOptions
|
|
410
|
-
updateNewsletter(params: UpdateNewsletterParams, options?: RequestOptions
|
|
411
|
-
deleteNewsletter(params: DeleteNewsletterParams, options?: RequestOptions
|
|
412
|
-
getSubscribers(params: GetSubscribersParams, options?: RequestOptions
|
|
413
|
-
createPost(params: CreateNewsletterPostParams, options?: RequestOptions
|
|
414
|
-
getPost(params: GetNewsletterPostParams, options?: RequestOptions
|
|
415
|
-
getPosts(params: GetNewsletterPostsParams, options?: RequestOptions
|
|
416
|
-
updatePost(params: UpdateNewsletterPostParams, options?: RequestOptions
|
|
417
|
-
deletePost(params: DeleteNewsletterPostParams, options?: RequestOptions
|
|
418
|
-
scheduleSend(params: ScheduleSendParams, options?: RequestOptions
|
|
419
|
-
cancelSend(params: CancelSendParams, options?: RequestOptions
|
|
316
|
+
createNewsletter(params: CreateNewsletterParams, options?: RequestOptions<Newsletter>): Promise<Newsletter>;
|
|
317
|
+
getNewsletter(params: GetNewsletterParams, options?: RequestOptions<Newsletter>): Promise<Newsletter>;
|
|
318
|
+
getNewsletters(params?: GetNewslettersParams, options?: RequestOptions<Paginated<Newsletter>>): Promise<Paginated<Newsletter>>;
|
|
319
|
+
updateNewsletter(params: UpdateNewsletterParams, options?: RequestOptions<Newsletter>): Promise<Newsletter>;
|
|
320
|
+
deleteNewsletter(params: DeleteNewsletterParams, options?: RequestOptions<boolean>): Promise<boolean>;
|
|
321
|
+
getSubscribers(params: GetSubscribersParams, options?: RequestOptions<SubscriberInfo[]>): Promise<SubscriberInfo[]>;
|
|
322
|
+
createPost(params: CreateNewsletterPostParams, options?: RequestOptions<NewsletterPost>): Promise<NewsletterPost>;
|
|
323
|
+
getPost(params: GetNewsletterPostParams, options?: RequestOptions<NewsletterPost>): Promise<NewsletterPost>;
|
|
324
|
+
getPosts(params: GetNewsletterPostsParams, options?: RequestOptions<Paginated<NewsletterPost>>): Promise<Paginated<NewsletterPost>>;
|
|
325
|
+
updatePost(params: UpdateNewsletterPostParams, options?: RequestOptions<NewsletterPost>): Promise<NewsletterPost>;
|
|
326
|
+
deletePost(params: DeleteNewsletterPostParams, options?: RequestOptions<boolean>): Promise<boolean>;
|
|
327
|
+
scheduleSend(params: ScheduleSendParams, options?: RequestOptions<NewsletterPost>): Promise<NewsletterPost>;
|
|
328
|
+
cancelSend(params: CancelSendParams, options?: RequestOptions<NewsletterPost>): Promise<NewsletterPost>;
|
|
420
329
|
publishPost(newsletterId: string, postId: string): Promise<NewsletterPost>;
|
|
421
330
|
archivePost(newsletterId: string, postId: string): Promise<NewsletterPost>;
|
|
422
331
|
sendNow(newsletterId: string, postId: string): Promise<NewsletterPost>;
|
|
423
332
|
};
|
|
424
|
-
emailTemplate: {
|
|
425
|
-
getTemplates(params?: GetEmailTemplatesParams, options?: RequestOptions$2<PaginatedResponse<EmailTemplate>>): Promise<PaginatedResponse<EmailTemplate>>;
|
|
426
|
-
getTemplate(params: GetEmailTemplateParams, options?: RequestOptions$2<EmailTemplate>): Promise<EmailTemplate>;
|
|
427
|
-
getTemplateByKey(params: GetEmailTemplateByKeyParams, options?: RequestOptions$2<EmailTemplate>): Promise<EmailTemplate>;
|
|
428
|
-
createTemplate(params: CreateEmailTemplateParams, options?: RequestOptions$2<EmailTemplate>): Promise<EmailTemplate>;
|
|
429
|
-
updateTemplate(params: UpdateEmailTemplateParams, options?: RequestOptions$2<EmailTemplate>): Promise<EmailTemplate>;
|
|
430
|
-
deleteTemplate(params: DeleteEmailTemplateParams, options?: RequestOptions$2<{
|
|
431
|
-
deleted: boolean;
|
|
432
|
-
}>): Promise<{
|
|
433
|
-
deleted: boolean;
|
|
434
|
-
}>;
|
|
435
|
-
};
|
|
436
|
-
taxonomy: {
|
|
437
|
-
getTaxonomies(params?: GetTaxonomiesParams, options?: RequestOptions): Promise<{
|
|
438
|
-
items: Taxonomy[];
|
|
439
|
-
cursor?: string;
|
|
440
|
-
}>;
|
|
441
|
-
getTaxonomy(params: GetTaxonomyParams, options?: RequestOptions): Promise<Taxonomy>;
|
|
442
|
-
createTaxonomy(params: CreateTaxonomyParams, options?: RequestOptions): Promise<Taxonomy>;
|
|
443
|
-
updateTaxonomy(params: UpdateTaxonomyParams, options?: RequestOptions): Promise<Taxonomy>;
|
|
444
|
-
deleteTaxonomy(params: DeleteTaxonomyParams, options?: RequestOptions): Promise<boolean>;
|
|
445
|
-
getTaxonomyChildren(params: GetTaxonomyChildrenParams, options?: RequestOptions): Promise<Taxonomy[]>;
|
|
446
|
-
getRootTaxonomies(scope: TaxonomyScope, options?: RequestOptions): Promise<Taxonomy[]>;
|
|
447
|
-
};
|
|
448
|
-
form: {
|
|
449
|
-
getForms(params?: GetFormsParams, options?: RequestOptions$1): Promise<{
|
|
450
|
-
items: Form[];
|
|
451
|
-
cursor?: string;
|
|
452
|
-
}>;
|
|
453
|
-
getForm(params: GetFormParams, options?: RequestOptions$1): Promise<Form>;
|
|
454
|
-
createForm(params: CreateFormParams, options?: RequestOptions$1): Promise<Form>;
|
|
455
|
-
updateForm(params: UpdateFormParams, options?: RequestOptions$1): Promise<Form>;
|
|
456
|
-
deleteForm(params: DeleteFormParams, options?: RequestOptions$1): Promise<{
|
|
457
|
-
deleted: boolean;
|
|
458
|
-
}>;
|
|
459
|
-
getEntries(params: GetEntriesParams, options?: RequestOptions$1): Promise<{
|
|
460
|
-
items: FormEntry[];
|
|
461
|
-
cursor?: string;
|
|
462
|
-
}>;
|
|
463
|
-
createEntry(params: CreateEntryParams, options?: RequestOptions$1): Promise<FormEntry>;
|
|
464
|
-
getEntry(params: GetEntryParams, options?: RequestOptions$1): Promise<FormEntry>;
|
|
465
|
-
deleteEntry(params: DeleteEntryParams, options?: RequestOptions$1): Promise<{
|
|
466
|
-
deleted: boolean;
|
|
467
|
-
}>;
|
|
468
|
-
};
|
|
469
333
|
setBusinessId: (businessId: string) => void;
|
|
470
334
|
getBusinessId: () => string;
|
|
471
335
|
setMarket: (market: string) => void;
|
|
@@ -516,4 +380,4 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
516
380
|
};
|
|
517
381
|
}>;
|
|
518
382
|
|
|
519
|
-
export { type ApiConfig,
|
|
383
|
+
export { type ApiConfig, type GetCountriesResponse, type HttpClientConfig, type LocationCountry, type LocationState, Payment, Price, SDK_VERSION, SUPPORTED_FRAMEWORKS, Slot, createArkySDK };
|