arky-sdk 0.3.128 → 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.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Block, StatusEvent, TaxonomyScope, Price, Payment, UpdateUserProfileParams, RequestOptions as RequestOptions$2, 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, GetEmailTemplatesParams, EmailTemplate, GetEmailTemplateParams, GetEmailTemplateByKeyParams, CreateEmailTemplateParams, UpdateEmailTemplateParams, DeleteEmailTemplateParams, Taxonomy, Form, FormEntry } from './types.js';
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.js';
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.js';
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.js';
3
3
  import { isValidKey, validateKey, toKey, nameToKey } from './utils.js';
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.88";
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$2): Promise<any>;
267
- deleteUser(params: DeleteUserParams, options?: RequestOptions$2): Promise<any>;
268
- addPhoneNumber(params: AddPhoneNumberParams, options?: RequestOptions$2): Promise<any>;
269
- phoneNumberConfirm(params: PhoneNumberConfirmParams, options?: RequestOptions$2): Promise<any>;
270
- getMe(params: GetMeParams, options?: RequestOptions$2): Promise<any>;
271
- searchUsers(params: SearchUsersParams, options?: RequestOptions$2): Promise<any>;
272
- setRole(params: SetRoleParams, options?: RequestOptions$2): Promise<any>;
273
- loginUser(params: LoginUserParams, options?: RequestOptions$2): Promise<any>;
274
- registerUser(params: RegisterUserParams, options?: RequestOptions$2): Promise<any>;
275
- logout(params: LogoutParams, options?: RequestOptions$2): Promise<any>;
276
- confirmUser(params: ConfirmUserParams, options?: RequestOptions$2): Promise<any>;
277
- getLoginUrl(params: GetLoginUrlParams, options?: RequestOptions$2): Promise<any>;
278
- forgotPassword(params: ForgotPasswordParams, options?: RequestOptions$2): Promise<any>;
279
- resetForgotPassword(params: ResetForgotPasswordParams, options?: RequestOptions$2): Promise<any>;
280
- resetPassword(params: ResetPasswordParams, options?: RequestOptions$2): Promise<any>;
281
- subscribe(params: UserSubscribeParams, options?: RequestOptions$2): Promise<any>;
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$2): Promise<any>;
285
- updateBusiness(params: UpdateBusinessParams, options?: RequestOptions$2): Promise<any>;
286
- deleteBusiness(params: DeleteBusinessParams, options?: RequestOptions$2): Promise<any>;
287
- getBusiness(params: GetBusinessParams, options?: RequestOptions$2): Promise<any>;
288
- getBusinesses(params: GetBusinessesParams, options?: RequestOptions$2): Promise<any>;
289
- getBusinessParents(params: GetBusinessParentsParams, options?: RequestOptions$2): Promise<any>;
290
- triggerBuilds(params: TriggerBuildsParams, options?: RequestOptions$2): Promise<any>;
291
- getSubscriptionPlans(params: GetSubscriptionPlansParams, options?: RequestOptions$2): Promise<any>;
292
- getSubscription(params: GetSubscriptionParams, options?: RequestOptions$2): Promise<any>;
293
- subscribe(params: SubscribeParams, options?: RequestOptions$2): Promise<any>;
294
- createPortalSession(params: CreatePortalSessionParams, options?: RequestOptions$2): Promise<any>;
295
- inviteUser(params: InviteUserParams, options?: RequestOptions$2): Promise<any>;
296
- handleInvitation(params: HandleInvitationParams, options?: RequestOptions$2): Promise<any>;
297
- testWebhook(params: TestWebhookParams, options?: RequestOptions$2): Promise<any>;
298
- getBusinessMedia(params: GetBusinessMediaParams2, options?: RequestOptions$2): Promise<any>;
299
- processRefund(params: ProcessRefundParams, options?: RequestOptions$2): Promise<any>;
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$2): Promise<any>;
303
- deleteBusinessMedia(params: DeleteBusinessMediaParams, options?: RequestOptions$2): Promise<any>;
304
- getBusinessMedia(params: GetBusinessMediaParams, options?: RequestOptions$2): Promise<any>;
305
- updateMedia(params: UpdateMediaParams, options?: RequestOptions$2): Promise<any>;
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$2): Promise<void>;
309
- updateRole(params: UpdateRoleParams, options?: RequestOptions$2): Promise<any>;
310
- deleteRole(params: DeleteRoleParams, options?: RequestOptions$2): Promise<any>;
311
- getRole(params: GetRoleParams, options?: RequestOptions$2): Promise<any>;
312
- getRoles(params: GetRolesParams, options?: RequestOptions$2): Promise<any>;
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$2): Promise<any>;
316
- getDeliveryStats(params: GetDeliveryStatsParams, options?: RequestOptions$2): Promise<any>;
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$2): Promise<any>;
320
- updatePromoCode(params: UpdatePromoCodeParams, options?: RequestOptions$2): Promise<any>;
321
- deletePromoCode(params: DeletePromoCodeParams, options?: RequestOptions$2): Promise<any>;
322
- getPromoCode(params: GetPromoCodeParams, options?: RequestOptions$2): Promise<any>;
323
- getPromoCodes(params: GetPromoCodesParams, options?: RequestOptions$2): Promise<any>;
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$2): Promise<any>;
235
+ getAnalytics(params: GetAnalyticsParams, options?: RequestOptions): Promise<any>;
327
236
  };
328
237
  cms: {
329
- createNode(params: CreateNodeParams, options?: RequestOptions$2): Promise<any>;
330
- updateNode(params: UpdateNodeParams, options?: RequestOptions$2): Promise<any>;
331
- deleteNode(params: DeleteNodeParams, options?: RequestOptions$2): Promise<any>;
332
- getNode(params: GetNodeParams, options?: RequestOptions$2): Promise<any>;
333
- getNodes(params: GetNodesParams, options?: RequestOptions$2): Promise<any>;
334
- getNodeChildren(params: GetNodeChildrenParams, options?: RequestOptions$2): Promise<any>;
335
- generateBlocks(params: GenerateBlocksParams, options?: RequestOptions$2): Promise<any>;
336
- getVariableMetadata(params: GetVariableMetadataParams, options?: RequestOptions$2): Promise<any>;
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$2): Promise<any>;
340
- updateProduct(params: UpdateProductParams, options?: RequestOptions$2): Promise<any>;
341
- deleteProduct(params: DeleteProductParams, options?: RequestOptions$2): Promise<any>;
342
- getProduct(params: GetProductParams, options?: RequestOptions$2): Promise<any>;
343
- getProducts(params: GetProductsParams, options?: RequestOptions$2): Promise<any>;
344
- createOrder(params: CreateOrderParams, options?: RequestOptions$2): Promise<any>;
345
- updateOrder(params: UpdateOrderParams, options?: RequestOptions$2): Promise<any>;
346
- getOrder(params: GetOrderParams, options?: RequestOptions$2): Promise<any>;
347
- getOrders(params: GetOrdersParams, options?: RequestOptions$2): Promise<any>;
348
- getQuote(params: GetQuoteParams, options?: RequestOptions$2): Promise<any>;
349
- checkout(params: OrderCheckoutParams, options?: RequestOptions$2): Promise<any>;
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$2): Promise<any>;
357
- updateReservation(params: UpdateReservationParams, options?: RequestOptions$2): Promise<any>;
358
- checkout(params?: Partial<ReservationCheckoutParams>, options?: RequestOptions$2): Promise<any>;
359
- getReservation(params: GetReservationParams, options?: RequestOptions$2): Promise<any>;
360
- searchReservations(params: SearchReservationsParams, options?: RequestOptions$2): Promise<any>;
361
- getQuote(params: GetReservationQuoteParams, options?: RequestOptions$2): Promise<any>;
362
- createService(params: CreateServiceParams, options?: RequestOptions$2): Promise<any>;
363
- updateService(params: UpdateServiceParams, options?: RequestOptions$2): Promise<any>;
364
- deleteService(params: DeleteServiceParams, options?: RequestOptions$2): Promise<any>;
365
- bulkSchedule(params: BulkScheduleParams, options?: RequestOptions$2): Promise<any>;
366
- getService(params: GetServiceParams, options?: RequestOptions$2): Promise<any>;
367
- getServices(params: GetServicesParams, options?: RequestOptions$2): Promise<any>;
368
- createProvider(params: CreateProviderParams, options?: RequestOptions$2): Promise<any>;
369
- updateProvider(params: UpdateProviderParams, options?: RequestOptions$2): Promise<any>;
370
- deleteProvider(params: DeleteProviderParams, options?: RequestOptions$2): Promise<any>;
371
- getProvider(params: GetProviderParams, options?: RequestOptions$2): Promise<any>;
372
- getProviders(params: GetProvidersParams, options?: RequestOptions$2): Promise<any>;
373
- getProviderWorkingTime(params: GetBusinessServiceWorkingTimeParams, options?: RequestOptions$2): Promise<any>;
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$2): Promise<any[]>;
377
- putData(params: PutDataParams, options?: RequestOptions$2): Promise<void>;
378
- deleteData(params: DeleteDataParams, options?: RequestOptions$2): Promise<void>;
379
- runScript(params: RunScriptParams, options?: RequestOptions$2): Promise<RunScriptResponse>;
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$2<FeatureFlag>): Promise<FeatureFlag>;
383
- getFlag(params: GetFeatureFlagParams, options?: RequestOptions$2<FeatureFlag>): Promise<FeatureFlag>;
384
- getFlags(params?: GetFeatureFlagsParams, options?: RequestOptions$2<FeatureFlag[]>): Promise<FeatureFlag[]>;
385
- updateFlag(params: UpdateFeatureFlagParams, options?: RequestOptions$2<FeatureFlag>): Promise<FeatureFlag>;
386
- deleteFlag(params: DeleteFeatureFlagParams, options?: RequestOptions$2<{
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$2<FlagResults>): Promise<FlagResults>;
392
- getVariant(params: GetVariantParams, options?: RequestOptions$2<GetVariantResponse>): Promise<GetVariantResponse>;
393
- trackEvent(params: TrackEventParams, options?: RequestOptions$2<TrackEventResponse>): Promise<TrackEventResponse>;
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$2): Promise<GetCountriesResponse>;
404
- getCountryStates(countryCode: string, options?: RequestOptions$2): Promise<LocationCountry>;
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$2<Newsletter>): Promise<Newsletter>;
408
- getNewsletter(params: GetNewsletterParams, options?: RequestOptions$2<Newsletter>): Promise<Newsletter>;
409
- getNewsletters(params?: GetNewslettersParams, options?: RequestOptions$2<Paginated<Newsletter>>): Promise<Paginated<Newsletter>>;
410
- updateNewsletter(params: UpdateNewsletterParams, options?: RequestOptions$2<Newsletter>): Promise<Newsletter>;
411
- deleteNewsletter(params: DeleteNewsletterParams, options?: RequestOptions$2<boolean>): Promise<boolean>;
412
- getSubscribers(params: GetSubscribersParams, options?: RequestOptions$2<SubscriberInfo[]>): Promise<SubscriberInfo[]>;
413
- createPost(params: CreateNewsletterPostParams, options?: RequestOptions$2<NewsletterPost>): Promise<NewsletterPost>;
414
- getPost(params: GetNewsletterPostParams, options?: RequestOptions$2<NewsletterPost>): Promise<NewsletterPost>;
415
- getPosts(params: GetNewsletterPostsParams, options?: RequestOptions$2<Paginated<NewsletterPost>>): Promise<Paginated<NewsletterPost>>;
416
- updatePost(params: UpdateNewsletterPostParams, options?: RequestOptions$2<NewsletterPost>): Promise<NewsletterPost>;
417
- deletePost(params: DeleteNewsletterPostParams, options?: RequestOptions$2<boolean>): Promise<boolean>;
418
- scheduleSend(params: ScheduleSendParams, options?: RequestOptions$2<NewsletterPost>): Promise<NewsletterPost>;
419
- cancelSend(params: CancelSendParams, options?: RequestOptions$2<NewsletterPost>): Promise<NewsletterPost>;
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, Block, CreateEmailTemplateParams, type CreateEntryParams, type CreateFormParams, type CreateTaxonomyParams, DeleteEmailTemplateParams, type DeleteEntryParams, type DeleteFormParams, type DeleteTaxonomyParams, EmailTemplate, Form, FormEntry, type GetCountriesResponse, GetEmailTemplateByKeyParams, GetEmailTemplateParams, GetEmailTemplatesParams, type GetEntriesParams, type GetEntryParams, type GetFormParams, type GetFormsParams, type GetTaxonomiesParams, type GetTaxonomyChildrenParams, type GetTaxonomyParams, type HttpClientConfig, type LocationCountry, type LocationState, Payment, Price, SDK_VERSION, SUPPORTED_FRAMEWORKS, Slot, Taxonomy, TaxonomyScope, UpdateEmailTemplateParams, type UpdateFormParams, type UpdateTaxonomyParams, createArkySDK };
383
+ export { type ApiConfig, type GetCountriesResponse, type HttpClientConfig, type LocationCountry, type LocationState, Payment, Price, SDK_VERSION, SUPPORTED_FRAMEWORKS, Slot, createArkySDK };