@wix/auto_sdk_bookings_services 1.0.243 → 1.0.244
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/build/cjs/{bookings-services-v2-service-services.universal-BpDjq9wo.d.ts → bookings-services-v2-service-services.universal-BDo4HjUj.d.ts} +76 -35
- package/build/cjs/index.d.ts +11 -11
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +56 -18
- package/build/cjs/meta.js +2 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +676 -0
- package/build/cjs/schemas.js +1189 -46
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-BpDjq9wo.d.mts → bookings-services-v2-service-services.universal-BDo4HjUj.d.mts} +76 -35
- package/build/es/index.d.mts +11 -11
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +56 -18
- package/build/es/meta.mjs +2 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +676 -0
- package/build/es/schemas.mjs +1189 -46
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-X8z1jH2M.d.ts → bookings-services-v2-service-services.universal-C2tQPxPU.d.ts} +69 -43
- package/build/internal/cjs/index.d.ts +11 -11
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +56 -18
- package/build/internal/cjs/meta.js +2 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +676 -0
- package/build/internal/cjs/schemas.js +1189 -46
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-X8z1jH2M.d.mts → bookings-services-v2-service-services.universal-C2tQPxPU.d.mts} +69 -43
- package/build/internal/es/index.d.mts +11 -11
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +56 -18
- package/build/internal/es/meta.mjs +2 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +676 -0
- package/build/internal/es/schemas.mjs +1189 -46
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cJ as CreateServiceRequest$1, cK as CreateServiceResponse$1, cO as BulkCreateServicesRequest$1, a as BulkCreateServicesResponse$1, cT as GetServiceRequest$1, cU as GetServiceResponse$1, cZ as UpdateServiceRequest$1, c_ as UpdateServiceResponse$1, c$ as BulkUpdateServicesRequest$1, d as BulkUpdateServicesResponse$1, d1 as BulkUpdateServicesByFilterRequest$1, f as BulkUpdateServicesByFilterResponse$1, d2 as DeleteServiceRequest$1, d4 as DeleteServiceResponse$1, d5 as BulkDeleteServicesRequest$1, h as BulkDeleteServicesResponse$1, d6 as BulkDeleteServicesByFilterRequest$1, j as BulkDeleteServicesByFilterResponse$1, d7 as QueryServicesRequest$1, dd as QueryServicesResponse$1, dg as SearchServicesRequest$1, l as SearchServicesResponse$1, dX as QueryPoliciesRequest$1, Q as QueryPoliciesResponse$1, d_ as QueryBookingFormsRequest$1, o as QueryBookingFormsResponse$1, e2 as CountServicesRequest$1, r as CountServicesResponse$1, e3 as QueryLocationsRequest$1, t as QueryLocationsResponse$1, e8 as QueryCategoriesRequest$1, v as QueryCategoriesResponse$1, ec as SetServiceLocationsRequest$1, x as SetServiceLocationsResponse$1, eg as EnablePricingPlansForServiceRequest$1, E as EnablePricingPlansForServiceResponse$1, ej as DisablePricingPlansForServiceRequest$1, A as DisablePricingPlansForServiceResponse$1, ek as SetCustomSlugRequest$1, I as SetCustomSlugResponse$1, el as ValidateSlugRequest$1, L as ValidateSlugResponse$1, em as CloneServiceRequest$1, M as CloneServiceResponse$1, eN as CreateAddOnGroupRequest$1, P as CreateAddOnGroupResponse$1, eO as DeleteAddOnGroupRequest$1, eP as DeleteAddOnGroupResponse$1, eQ as UpdateAddOnGroupRequest$1, Y as UpdateAddOnGroupResponse$1, eR as ListAddOnGroupsByServiceIdRequest$1, $ as ListAddOnGroupsByServiceIdResponse$1, eV as SetAddOnsForGroupRequest$1, a1 as SetAddOnsForGroupResponse$1 } from './bookings-services-v2-service-services.universal-
|
|
1
|
+
import { cJ as CreateServiceRequest$1, cK as CreateServiceResponse$1, cO as BulkCreateServicesRequest$1, a as BulkCreateServicesResponse$1, cT as GetServiceRequest$1, cU as GetServiceResponse$1, cZ as UpdateServiceRequest$1, c_ as UpdateServiceResponse$1, c$ as BulkUpdateServicesRequest$1, d as BulkUpdateServicesResponse$1, d1 as BulkUpdateServicesByFilterRequest$1, f as BulkUpdateServicesByFilterResponse$1, d2 as DeleteServiceRequest$1, d4 as DeleteServiceResponse$1, d5 as BulkDeleteServicesRequest$1, h as BulkDeleteServicesResponse$1, d6 as BulkDeleteServicesByFilterRequest$1, j as BulkDeleteServicesByFilterResponse$1, d7 as QueryServicesRequest$1, dd as QueryServicesResponse$1, dg as SearchServicesRequest$1, l as SearchServicesResponse$1, dX as QueryPoliciesRequest$1, Q as QueryPoliciesResponse$1, d_ as QueryBookingFormsRequest$1, o as QueryBookingFormsResponse$1, e2 as CountServicesRequest$1, r as CountServicesResponse$1, e3 as QueryLocationsRequest$1, t as QueryLocationsResponse$1, e8 as QueryCategoriesRequest$1, v as QueryCategoriesResponse$1, ec as SetServiceLocationsRequest$1, x as SetServiceLocationsResponse$1, eg as EnablePricingPlansForServiceRequest$1, E as EnablePricingPlansForServiceResponse$1, ej as DisablePricingPlansForServiceRequest$1, A as DisablePricingPlansForServiceResponse$1, ek as SetCustomSlugRequest$1, I as SetCustomSlugResponse$1, el as ValidateSlugRequest$1, L as ValidateSlugResponse$1, em as CloneServiceRequest$1, M as CloneServiceResponse$1, eN as CreateAddOnGroupRequest$1, P as CreateAddOnGroupResponse$1, eO as DeleteAddOnGroupRequest$1, eP as DeleteAddOnGroupResponse$1, eQ as UpdateAddOnGroupRequest$1, Y as UpdateAddOnGroupResponse$1, eR as ListAddOnGroupsByServiceIdRequest$1, $ as ListAddOnGroupsByServiceIdResponse$1, eV as SetAddOnsForGroupRequest$1, a1 as SetAddOnsForGroupResponse$1 } from './bookings-services-v2-service-services.universal-BDo4HjUj.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/** The `service` object represents an offering that a business provides to its customers. */
|
|
@@ -287,6 +287,13 @@ interface Payment extends PaymentRateOneOf {
|
|
|
287
287
|
* Required when: `rateType` is `VARIED`
|
|
288
288
|
*/
|
|
289
289
|
varied?: VariedPayment;
|
|
290
|
+
/**
|
|
291
|
+
* Subscription pricing details for the service. Supported for course services only.
|
|
292
|
+
* The business charges recurring monthly payments instead of a one-time fee.
|
|
293
|
+
*
|
|
294
|
+
* Required when: `rateType` is `SUBSCRIPTION`.
|
|
295
|
+
*/
|
|
296
|
+
subscription?: SubscriptionPayment;
|
|
290
297
|
/** The rate the customer is expected to pay for the service. */
|
|
291
298
|
rateType?: RateTypeWithLiterals;
|
|
292
299
|
/** The payment options a customer can use to pay for the service. */
|
|
@@ -338,6 +345,13 @@ interface PaymentRateOneOf {
|
|
|
338
345
|
* Required when: `rateType` is `VARIED`
|
|
339
346
|
*/
|
|
340
347
|
varied?: VariedPayment;
|
|
348
|
+
/**
|
|
349
|
+
* Subscription pricing details for the service. Supported for course services only.
|
|
350
|
+
* The business charges recurring monthly payments instead of a one-time fee.
|
|
351
|
+
*
|
|
352
|
+
* Required when: `rateType` is `SUBSCRIPTION`.
|
|
353
|
+
*/
|
|
354
|
+
subscription?: SubscriptionPayment;
|
|
341
355
|
}
|
|
342
356
|
declare enum RateType {
|
|
343
357
|
/** The service has a fixed price. */
|
|
@@ -347,10 +361,15 @@ declare enum RateType {
|
|
|
347
361
|
/** This service is offered with a set of different prices based on different terms. */
|
|
348
362
|
VARIED = "VARIED",
|
|
349
363
|
/** This service is offered free of charge. */
|
|
350
|
-
NO_FEE = "NO_FEE"
|
|
364
|
+
NO_FEE = "NO_FEE",
|
|
365
|
+
/**
|
|
366
|
+
* The service charges recurring monthly payments. Supported for course services only.
|
|
367
|
+
* @documentationMaturity preview
|
|
368
|
+
*/
|
|
369
|
+
SUBSCRIPTION = "SUBSCRIPTION"
|
|
351
370
|
}
|
|
352
371
|
/** @enumType */
|
|
353
|
-
type RateTypeWithLiterals = RateType | 'FIXED' | 'CUSTOM' | 'VARIED' | 'NO_FEE';
|
|
372
|
+
type RateTypeWithLiterals = RateType | 'FIXED' | 'CUSTOM' | 'VARIED' | 'NO_FEE' | 'SUBSCRIPTION';
|
|
354
373
|
interface FixedPayment {
|
|
355
374
|
/**
|
|
356
375
|
* The fixed price required to book the service.
|
|
@@ -432,24 +451,38 @@ interface VariedPayment {
|
|
|
432
451
|
fullUpfrontPaymentAllowed?: boolean | null;
|
|
433
452
|
}
|
|
434
453
|
interface SubscriptionPayment {
|
|
435
|
-
/**
|
|
454
|
+
/**
|
|
455
|
+
* Base price charged per billing cycle before tax and discounts.
|
|
456
|
+
* The actual amount charged may differ after checkout applies tax and discounts.
|
|
457
|
+
*/
|
|
436
458
|
amountPerBillingCycle?: Money;
|
|
437
|
-
/**
|
|
459
|
+
/**
|
|
460
|
+
* Billing frequency for recurring subscription charges.
|
|
461
|
+
* Reflected as `billingFrequency` in the booking's subscription info.
|
|
462
|
+
*
|
|
463
|
+
* Currently supports `MONTHLY` only.
|
|
464
|
+
*/
|
|
438
465
|
frequency?: FrequencyTypeWithLiterals;
|
|
439
466
|
/**
|
|
440
|
-
* Total number of
|
|
441
|
-
*
|
|
442
|
-
*
|
|
467
|
+
* Total number of billing cycles in the subscription. For example, `12` for a 12-month subscription with monthly payments.
|
|
468
|
+
* Reflected as `totalCycles` in the booking's subscription info.
|
|
469
|
+
*
|
|
470
|
+
* Required when: `rateType` is `SUBSCRIPTION`.
|
|
443
471
|
* @min 2
|
|
444
472
|
*/
|
|
445
473
|
totalPayments?: number | null;
|
|
446
|
-
/**
|
|
474
|
+
/** Determines when the first billing cycle payment is charged. Used together with `recurringStartDate` to define the subscription billing schedule. */
|
|
447
475
|
firstChargeDate?: FirstChargeDateTypeWithLiterals;
|
|
448
476
|
/**
|
|
449
|
-
* Date and time when recurring
|
|
477
|
+
* Date and time when recurring billing starts.
|
|
478
|
+
*
|
|
479
|
+
* When `firstChargeDate` is `CHECKOUT`, the first charge occurs at checkout and subsequent billing cycles start from this date.
|
|
480
|
+
*
|
|
450
481
|
* When `firstChargeDate` is `SCHEDULED`, the first charge occurs on this date.
|
|
451
|
-
*
|
|
452
|
-
*
|
|
482
|
+
*
|
|
483
|
+
* Customers who book after recurring billing starts are billed for the remaining billing cycles only.
|
|
484
|
+
*
|
|
485
|
+
* Required when: `rateType` is `SUBSCRIPTION`.
|
|
453
486
|
*/
|
|
454
487
|
recurringStartDate?: Date | null;
|
|
455
488
|
/**
|
|
@@ -466,15 +499,15 @@ interface SubscriptionPayment {
|
|
|
466
499
|
fullUpfrontPayment?: FullUpfrontPayment;
|
|
467
500
|
}
|
|
468
501
|
declare enum FrequencyType {
|
|
469
|
-
/**
|
|
502
|
+
/** Billing cycle repeats once per month. */
|
|
470
503
|
MONTHLY = "MONTHLY"
|
|
471
504
|
}
|
|
472
505
|
/** @enumType */
|
|
473
506
|
type FrequencyTypeWithLiterals = FrequencyType | 'MONTHLY';
|
|
474
507
|
declare enum FirstChargeDateType {
|
|
475
|
-
/**
|
|
508
|
+
/** The first billing cycle is charged at checkout. Recurring billing continues from the `recurringStartDate`. */
|
|
476
509
|
CHECKOUT = "CHECKOUT",
|
|
477
|
-
/**
|
|
510
|
+
/** The first billing cycle is charged on the `recurringStartDate`. */
|
|
478
511
|
SCHEDULED = "SCHEDULED"
|
|
479
512
|
}
|
|
480
513
|
/** @enumType */
|
|
@@ -2257,10 +2290,15 @@ declare enum PaymentStatus {
|
|
|
2257
2290
|
/** The booking is refunded. */
|
|
2258
2291
|
REFUNDED = "REFUNDED",
|
|
2259
2292
|
/** The booking is free of charge. */
|
|
2260
|
-
EXEMPT = "EXEMPT"
|
|
2293
|
+
EXEMPT = "EXEMPT",
|
|
2294
|
+
/**
|
|
2295
|
+
* The most recent subscription payment for this booking failed. If the payment is later recovered, the status changes back to `PAID`. Returned only for course bookings with subscription pricing.
|
|
2296
|
+
* @documentationMaturity preview
|
|
2297
|
+
*/
|
|
2298
|
+
FAILED = "FAILED"
|
|
2261
2299
|
}
|
|
2262
2300
|
/** @enumType */
|
|
2263
|
-
type PaymentStatusWithLiterals = PaymentStatus | 'UNDEFINED' | 'NOT_PAID' | 'PAID' | 'PARTIALLY_PAID' | 'REFUNDED' | 'EXEMPT';
|
|
2301
|
+
type PaymentStatusWithLiterals = PaymentStatus | 'UNDEFINED' | 'NOT_PAID' | 'PAID' | 'PARTIALLY_PAID' | 'REFUNDED' | 'EXEMPT' | 'FAILED';
|
|
2264
2302
|
/**
|
|
2265
2303
|
* Selected payment option.
|
|
2266
2304
|
*
|
|
@@ -2591,7 +2629,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
2591
2629
|
/** If present, indicates the action that triggered the event. */
|
|
2592
2630
|
originatedFrom?: string | null;
|
|
2593
2631
|
/**
|
|
2594
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01
|
|
2632
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
2595
2633
|
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
2596
2634
|
*/
|
|
2597
2635
|
entityEventSequence?: string | null;
|
package/build/cjs/meta.js
CHANGED
|
@@ -1832,6 +1832,7 @@ var RateType = /* @__PURE__ */ ((RateType2) => {
|
|
|
1832
1832
|
RateType2["CUSTOM"] = "CUSTOM";
|
|
1833
1833
|
RateType2["VARIED"] = "VARIED";
|
|
1834
1834
|
RateType2["NO_FEE"] = "NO_FEE";
|
|
1835
|
+
RateType2["SUBSCRIPTION"] = "SUBSCRIPTION";
|
|
1835
1836
|
return RateType2;
|
|
1836
1837
|
})(RateType || {});
|
|
1837
1838
|
var FrequencyType = /* @__PURE__ */ ((FrequencyType2) => {
|
|
@@ -1934,6 +1935,7 @@ var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => {
|
|
|
1934
1935
|
PaymentStatus2["PARTIALLY_PAID"] = "PARTIALLY_PAID";
|
|
1935
1936
|
PaymentStatus2["REFUNDED"] = "REFUNDED";
|
|
1936
1937
|
PaymentStatus2["EXEMPT"] = "EXEMPT";
|
|
1938
|
+
PaymentStatus2["FAILED"] = "FAILED";
|
|
1937
1939
|
return PaymentStatus2;
|
|
1938
1940
|
})(PaymentStatus || {});
|
|
1939
1941
|
var SelectedPaymentOption = /* @__PURE__ */ ((SelectedPaymentOption2) => {
|