@wix/auto_sdk_bookings_service-options-and-variants 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.context.d.ts +21 -0
  11. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.context.js +44 -0
  12. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.context.js.map +1 -0
  13. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.http.d.ts +103 -0
  14. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.http.js +354 -0
  15. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.http.js.map +1 -0
  16. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.meta.d.ts +29 -0
  17. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.meta.js +167 -0
  18. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.meta.js.map +1 -0
  19. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.d.ts +150 -0
  20. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.js +91 -0
  21. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.js.map +1 -0
  22. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.types.d.ts +1779 -0
  23. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.types.js +213 -0
  24. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.types.js.map +1 -0
  25. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal.d.ts +2179 -0
  26. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal.js +654 -0
  27. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.context.d.ts +21 -0
  39. package/build/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.context.js +21 -0
  40. package/build/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.context.js.map +1 -0
  41. package/build/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.http.d.ts +103 -0
  42. package/build/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.http.js +344 -0
  43. package/build/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.http.js.map +1 -0
  44. package/build/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.meta.d.ts +29 -0
  45. package/build/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.meta.js +134 -0
  46. package/build/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.meta.js.map +1 -0
  47. package/build/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.d.ts +150 -0
  48. package/build/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.js +61 -0
  49. package/build/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.js.map +1 -0
  50. package/build/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.types.d.ts +1779 -0
  51. package/build/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.types.js +210 -0
  52. package/build/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.types.js.map +1 -0
  53. package/build/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal.d.ts +2179 -0
  54. package/build/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal.js +621 -0
  55. package/build/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.context.d.ts +21 -0
  66. package/build/internal/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.context.js +44 -0
  67. package/build/internal/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.context.js.map +1 -0
  68. package/build/internal/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.http.d.ts +103 -0
  69. package/build/internal/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.http.js +354 -0
  70. package/build/internal/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.http.js.map +1 -0
  71. package/build/internal/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.meta.d.ts +29 -0
  72. package/build/internal/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.meta.js +167 -0
  73. package/build/internal/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.meta.js.map +1 -0
  74. package/build/internal/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.d.ts +150 -0
  75. package/build/internal/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.js +91 -0
  76. package/build/internal/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.js.map +1 -0
  77. package/build/internal/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.types.d.ts +1779 -0
  78. package/build/internal/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.types.js +213 -0
  79. package/build/internal/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.types.js.map +1 -0
  80. package/build/internal/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal.d.ts +2179 -0
  81. package/build/internal/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal.js +654 -0
  82. package/build/internal/cjs/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.context.d.ts +21 -0
  93. package/build/internal/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.context.js +21 -0
  94. package/build/internal/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.context.js.map +1 -0
  95. package/build/internal/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.http.d.ts +103 -0
  96. package/build/internal/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.http.js +344 -0
  97. package/build/internal/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.http.js.map +1 -0
  98. package/build/internal/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.meta.d.ts +29 -0
  99. package/build/internal/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.meta.js +134 -0
  100. package/build/internal/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.meta.js.map +1 -0
  101. package/build/internal/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.d.ts +150 -0
  102. package/build/internal/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.js +61 -0
  103. package/build/internal/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.js.map +1 -0
  104. package/build/internal/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.types.d.ts +1779 -0
  105. package/build/internal/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.types.js +210 -0
  106. package/build/internal/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.types.js.map +1 -0
  107. package/build/internal/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal.d.ts +2179 -0
  108. package/build/internal/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal.js +621 -0
  109. package/build/internal/es/src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1 @@
1
+ export * from './src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.context.js';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.context.js"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iIAA+G"}
@@ -0,0 +1 @@
1
+ export * from './src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal.js';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal.js"), exports);
18
+ //# sourceMappingURL=index.typings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mIAAiH"}
@@ -0,0 +1 @@
1
+ export * from './src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.meta.js';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.meta.js"), exports);
18
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8HAA4G"}
@@ -0,0 +1,21 @@
1
+ import { createServiceOptionsAndVariants as publicCreateServiceOptionsAndVariants, cloneServiceOptionsAndVariants as publicCloneServiceOptionsAndVariants, getServiceOptionsAndVariants as publicGetServiceOptionsAndVariants, getServiceOptionsAndVariantsByServiceId as publicGetServiceOptionsAndVariantsByServiceId, updateServiceOptionsAndVariants as publicUpdateServiceOptionsAndVariants, deleteServiceOptionsAndVariants as publicDeleteServiceOptionsAndVariants, queryServiceOptionsAndVariants as publicQueryServiceOptionsAndVariants } from './bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.js';
2
+ import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
3
+ import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
4
+ import { onServiceOptionsAndVariantsCreated as publicOnServiceOptionsAndVariantsCreated } from './bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.js';
5
+ import { onServiceOptionsAndVariantsDeleted as publicOnServiceOptionsAndVariantsDeleted } from './bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.js';
6
+ import { onServiceOptionsAndVariantsUpdated as publicOnServiceOptionsAndVariantsUpdated } from './bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.js';
7
+ export declare const createServiceOptionsAndVariants: MaybeContext<BuildRESTFunction<typeof publicCreateServiceOptionsAndVariants> & typeof publicCreateServiceOptionsAndVariants>;
8
+ export declare const cloneServiceOptionsAndVariants: MaybeContext<BuildRESTFunction<typeof publicCloneServiceOptionsAndVariants> & typeof publicCloneServiceOptionsAndVariants>;
9
+ export declare const getServiceOptionsAndVariants: MaybeContext<BuildRESTFunction<typeof publicGetServiceOptionsAndVariants> & typeof publicGetServiceOptionsAndVariants>;
10
+ export declare const getServiceOptionsAndVariantsByServiceId: MaybeContext<BuildRESTFunction<typeof publicGetServiceOptionsAndVariantsByServiceId> & typeof publicGetServiceOptionsAndVariantsByServiceId>;
11
+ export declare const updateServiceOptionsAndVariants: MaybeContext<BuildRESTFunction<typeof publicUpdateServiceOptionsAndVariants> & typeof publicUpdateServiceOptionsAndVariants>;
12
+ export declare const deleteServiceOptionsAndVariants: MaybeContext<BuildRESTFunction<typeof publicDeleteServiceOptionsAndVariants> & typeof publicDeleteServiceOptionsAndVariants>;
13
+ export declare const queryServiceOptionsAndVariants: MaybeContext<BuildRESTFunction<typeof publicQueryServiceOptionsAndVariants> & typeof publicQueryServiceOptionsAndVariants>;
14
+ /** */
15
+ export declare const onServiceOptionsAndVariantsCreated: ReturnType<typeof createEventModule<typeof publicOnServiceOptionsAndVariantsCreated>>;
16
+ /** */
17
+ export declare const onServiceOptionsAndVariantsDeleted: ReturnType<typeof createEventModule<typeof publicOnServiceOptionsAndVariantsDeleted>>;
18
+ /** */
19
+ export declare const onServiceOptionsAndVariantsUpdated: ReturnType<typeof createEventModule<typeof publicOnServiceOptionsAndVariantsUpdated>>;
20
+ export { ServiceOptionType, SortOrder, Day, Transparency, RecurringIntervalType, LocationType, LocationStatus, LocationsLocationType, DayOfWeek, ApprovalStatus, ScheduleStatus, ConferenceType, ResourceStatus, Event, CalendarType, Status, SessionType, PlacementType, ResolutionMethod, WebhookIdentityType, } from './bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal.js';
21
+ export { ServiceOptionsAndVariants, ServiceOption, ServiceOptionOptionSpecificDataOneOf, CustomServiceOption, DurationServiceOption, ServiceVariant, ServiceChoice, ServiceChoiceChoiceOneOf, Duration, Money, ServiceOptions, ServiceVariants, ExtendedFields, CreateServiceOptionsAndVariantsRequest, CreateServiceOptionsAndVariantsResponse, CloneServiceOptionsAndVariantsRequest, CloneServiceOptionsAndVariantsResponse, GetServiceOptionsAndVariantsRequest, GetServiceOptionsAndVariantsResponse, GetServiceOptionsAndVariantsByServiceIdRequest, GetServiceOptionsAndVariantsByServiceIdResponse, UpdateServiceOptionsAndVariantsRequest, UpdateServiceOptionsAndVariantsResponse, DeleteServiceOptionsAndVariantsRequest, DeleteServiceOptionsAndVariantsResponse, QueryServiceOptionsAndVariantsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryServiceOptionsAndVariantsResponse, PagingMetadataV2, Cursors, ResourceNotification, Resource, FocalPoint, Schedule, RecurringInterval, Interval, Frequency, LinkedSchedule, Location, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Availability, AvailabilityConstraints, SplitInterval, Participant, ExternalCalendarOverrides, Version, ConferenceProvider, CalendarConference, BusinessLocation, Empty, ScheduleNotification, ScheduleNotificationEventOneOf, ScheduleCreated, ScheduleUpdated, RecurringSessionsUpdated, Session, CalendarDateTime, LocalDateTime, ExternalCalendarInfo, SessionVersion, ParticipantNotification, ScheduleCancelled, SessionCreated, SessionUpdated, SessionCancelled, AvailabilityPolicyUpdated, AvailabilityPolicy, IntervalSplit, RecurringSessionSplit, ScheduleUnassignedFromUser, MultipleSessionsCreated, ScheduleWithSessions, SitePropertiesOnScheduleCreation, MigrationEvent, MigrationData, StaffData, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, SitePropertiesNotification, SitePropertiesEvent, Properties, Categories, Locale, V4Address, AddressHint, GeoCoordinates, Multilingual, SupportedLanguage, ConsentPolicy, Translation, ChangeContext, ChangeContextPayloadOneOf, PropertiesChange, SiteCreated, SiteCloned, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, ServiceOptionsAndVariantsNonNullableFields, CreateServiceOptionsAndVariantsResponseNonNullableFields, CloneServiceOptionsAndVariantsResponseNonNullableFields, GetServiceOptionsAndVariantsResponseNonNullableFields, GetServiceOptionsAndVariantsByServiceIdResponseNonNullableFields, UpdateServiceOptionsAndVariantsResponseNonNullableFields, QueryServiceOptionsAndVariantsResponseNonNullableFields, BaseEventMetadata, EventMetadata, ServiceOptionsAndVariantsCreatedEnvelope, ServiceOptionsAndVariantsDeletedEnvelope, ServiceOptionsAndVariantsUpdatedEnvelope, UpdateServiceOptionsAndVariants, DeleteServiceOptionsAndVariantsOptions, ServiceOptionsAndVariantsListQueryResult, ServiceOptionsAndVariantsListQueryBuilder, } from './bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal.js';
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookIdentityType = exports.ResolutionMethod = exports.PlacementType = exports.SessionType = exports.Status = exports.CalendarType = exports.Event = exports.ResourceStatus = exports.ConferenceType = exports.ScheduleStatus = exports.ApprovalStatus = exports.DayOfWeek = exports.LocationsLocationType = exports.LocationStatus = exports.LocationType = exports.RecurringIntervalType = exports.Transparency = exports.Day = exports.SortOrder = exports.ServiceOptionType = exports.onServiceOptionsAndVariantsUpdated = exports.onServiceOptionsAndVariantsDeleted = exports.onServiceOptionsAndVariantsCreated = exports.queryServiceOptionsAndVariants = exports.deleteServiceOptionsAndVariants = exports.updateServiceOptionsAndVariants = exports.getServiceOptionsAndVariantsByServiceId = exports.getServiceOptionsAndVariants = exports.cloneServiceOptionsAndVariants = exports.createServiceOptionsAndVariants = void 0;
4
+ const bookings_catalog_v1_service_options_and_variants_service_options_and_variants_public_js_1 = require("./bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.js");
5
+ const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
6
+ const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
7
+ const bookings_catalog_v1_service_options_and_variants_service_options_and_variants_public_js_2 = require("./bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.js");
8
+ const bookings_catalog_v1_service_options_and_variants_service_options_and_variants_public_js_3 = require("./bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.js");
9
+ const bookings_catalog_v1_service_options_and_variants_service_options_and_variants_public_js_4 = require("./bookings-catalog-v1-service-options-and-variants-service-options-and-variants.public.js");
10
+ exports.createServiceOptionsAndVariants = (0, rest_modules_1.createRESTModule)(bookings_catalog_v1_service_options_and_variants_service_options_and_variants_public_js_1.createServiceOptionsAndVariants);
11
+ exports.cloneServiceOptionsAndVariants = (0, rest_modules_1.createRESTModule)(bookings_catalog_v1_service_options_and_variants_service_options_and_variants_public_js_1.cloneServiceOptionsAndVariants);
12
+ exports.getServiceOptionsAndVariants = (0, rest_modules_1.createRESTModule)(bookings_catalog_v1_service_options_and_variants_service_options_and_variants_public_js_1.getServiceOptionsAndVariants);
13
+ exports.getServiceOptionsAndVariantsByServiceId = (0, rest_modules_1.createRESTModule)(bookings_catalog_v1_service_options_and_variants_service_options_and_variants_public_js_1.getServiceOptionsAndVariantsByServiceId);
14
+ exports.updateServiceOptionsAndVariants = (0, rest_modules_1.createRESTModule)(bookings_catalog_v1_service_options_and_variants_service_options_and_variants_public_js_1.updateServiceOptionsAndVariants);
15
+ exports.deleteServiceOptionsAndVariants = (0, rest_modules_1.createRESTModule)(bookings_catalog_v1_service_options_and_variants_service_options_and_variants_public_js_1.deleteServiceOptionsAndVariants);
16
+ exports.queryServiceOptionsAndVariants = (0, rest_modules_1.createRESTModule)(bookings_catalog_v1_service_options_and_variants_service_options_and_variants_public_js_1.queryServiceOptionsAndVariants);
17
+ /** */
18
+ exports.onServiceOptionsAndVariantsCreated = (0, event_definition_modules_1.createEventModule)(bookings_catalog_v1_service_options_and_variants_service_options_and_variants_public_js_2.onServiceOptionsAndVariantsCreated);
19
+ /** */
20
+ exports.onServiceOptionsAndVariantsDeleted = (0, event_definition_modules_1.createEventModule)(bookings_catalog_v1_service_options_and_variants_service_options_and_variants_public_js_3.onServiceOptionsAndVariantsDeleted);
21
+ /** */
22
+ exports.onServiceOptionsAndVariantsUpdated = (0, event_definition_modules_1.createEventModule)(bookings_catalog_v1_service_options_and_variants_service_options_and_variants_public_js_4.onServiceOptionsAndVariantsUpdated);
23
+ var bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1 = require("./bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal.js");
24
+ Object.defineProperty(exports, "ServiceOptionType", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.ServiceOptionType; } });
25
+ Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.SortOrder; } });
26
+ Object.defineProperty(exports, "Day", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.Day; } });
27
+ Object.defineProperty(exports, "Transparency", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.Transparency; } });
28
+ Object.defineProperty(exports, "RecurringIntervalType", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.RecurringIntervalType; } });
29
+ Object.defineProperty(exports, "LocationType", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.LocationType; } });
30
+ Object.defineProperty(exports, "LocationStatus", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.LocationStatus; } });
31
+ Object.defineProperty(exports, "LocationsLocationType", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.LocationsLocationType; } });
32
+ Object.defineProperty(exports, "DayOfWeek", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.DayOfWeek; } });
33
+ Object.defineProperty(exports, "ApprovalStatus", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.ApprovalStatus; } });
34
+ Object.defineProperty(exports, "ScheduleStatus", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.ScheduleStatus; } });
35
+ Object.defineProperty(exports, "ConferenceType", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.ConferenceType; } });
36
+ Object.defineProperty(exports, "ResourceStatus", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.ResourceStatus; } });
37
+ Object.defineProperty(exports, "Event", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.Event; } });
38
+ Object.defineProperty(exports, "CalendarType", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.CalendarType; } });
39
+ Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.Status; } });
40
+ Object.defineProperty(exports, "SessionType", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.SessionType; } });
41
+ Object.defineProperty(exports, "PlacementType", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.PlacementType; } });
42
+ Object.defineProperty(exports, "ResolutionMethod", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.ResolutionMethod; } });
43
+ Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return bookings_catalog_v1_service_options_and_variants_service_options_and_variants_universal_js_1.WebhookIdentityType; } });
44
+ //# sourceMappingURL=bookings-catalog-v1-service-options-and-variants-service-options-and-variants.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bookings-catalog-v1-service-options-and-variants-service-options-and-variants.context.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-service-options-and-variants-service-options-and-variants.context.ts"],"names":[],"mappings":";;;AAAA,uMAQmG;AACnG,gEAAiE;AACjE,wFAA8E;AAE9E,uMAA2L;AAC3L,uMAA2L;AAC3L,uMAA2L;AAE9K,QAAA,+BAA+B,GAG1B,IAAA,+BAAgB,EAAC,yHAAqC,CAAC,CAAC;AAC7D,QAAA,8BAA8B,GAGzB,IAAA,+BAAgB,EAAC,wHAAoC,CAAC,CAAC;AAC5D,QAAA,4BAA4B,GAGvB,IAAA,+BAAgB,EAAC,sHAAkC,CAAC,CAAC;AAC1D,QAAA,uCAAuC,GAGlC,IAAA,+BAAgB,EAChC,iIAA6C,CAC9C,CAAC;AACW,QAAA,+BAA+B,GAG1B,IAAA,+BAAgB,EAAC,yHAAqC,CAAC,CAAC;AAC7D,QAAA,+BAA+B,GAG1B,IAAA,+BAAgB,EAAC,yHAAqC,CAAC,CAAC;AAC7D,QAAA,8BAA8B,GAGzB,IAAA,+BAAgB,EAAC,wHAAoC,CAAC,CAAC;AACzE,MAAM;AACO,QAAA,kCAAkC,GAE3C,IAAA,4CAAiB,EAAC,4HAAwC,CAAC,CAAC;AAChE,MAAM;AACO,QAAA,kCAAkC,GAE3C,IAAA,4CAAiB,EAAC,4HAAwC,CAAC,CAAC;AAChE,MAAM;AACO,QAAA,kCAAkC,GAE3C,IAAA,4CAAiB,EAAC,4HAAwC,CAAC,CAAC;AAEhE,2MAqBsG;AApBpG,+LAAA,iBAAiB,OAAA;AACjB,uLAAA,SAAS,OAAA;AACT,iLAAA,GAAG,OAAA;AACH,0LAAA,YAAY,OAAA;AACZ,mMAAA,qBAAqB,OAAA;AACrB,0LAAA,YAAY,OAAA;AACZ,4LAAA,cAAc,OAAA;AACd,mMAAA,qBAAqB,OAAA;AACrB,uLAAA,SAAS,OAAA;AACT,4LAAA,cAAc,OAAA;AACd,4LAAA,cAAc,OAAA;AACd,4LAAA,cAAc,OAAA;AACd,4LAAA,cAAc,OAAA;AACd,mLAAA,KAAK,OAAA;AACL,0LAAA,YAAY,OAAA;AACZ,oLAAA,MAAM,OAAA;AACN,yLAAA,WAAW,OAAA;AACX,2LAAA,aAAa,OAAA;AACb,8LAAA,gBAAgB,OAAA;AAChB,iMAAA,mBAAmB,OAAA"}
@@ -0,0 +1,103 @@
1
+ import { RequestOptionsFactory } from '@wix/sdk-types';
2
+ /**
3
+ * Creates a `serviceOptionsAndVariants` object and for a service.
4
+ *
5
+ *
6
+ * ## Calculate variants
7
+ *
8
+ * Before creating a `serviceOptionsAndVariants` object, you need to
9
+ * anticipate and manually define all its variants, since Wix Bookings doesn't
10
+ * automatically calculate them. For the actual
11
+ * Create Service Options And Variants* call, specify both the `options` and
12
+ * `variants` arrays.
13
+ *
14
+ * ## Limitations
15
+ *
16
+ * Wix Bookings allows you to connect only a single `serviceOptionsAndVariants`
17
+ * object to a service. *Create Service Options And Variants* fails, if the
18
+ * service already has a connected `serviceOptionsAndVariants` object.
19
+ *
20
+ * Currently, you can include only a single option per
21
+ * `serviceOptionsAndVariants` object. Taken together, this means that services
22
+ * are limited to a single option.
23
+ *
24
+ * ## Option ID
25
+ *
26
+ * When creating a`serviceOptionsAndVariants` object, you must specify an ID in
27
+ * [UUID format](https://en.wikipedia.org/wiki/Universally_unique_identifier)
28
+ * for its only option. You must reference this option ID for each variant as
29
+ * `variants.values.choices.optionId`.
30
+ *
31
+ * ## Staff member option
32
+ *
33
+ * To creating an option based on the *staff member*
34
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/introduction))
35
+ * providing the service, you need to specify `STAFF_MEMBER` as `options.values.type`.
36
+ * Also, specify all staff member IDs as `variants.values.choices.staffMemberId`.
37
+ * You could follow this *sample flow*
38
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/sample-flows#create-staff-member-based-service-variants) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/sample-flows#create-staff-member-based-service-variants)).
39
+ *
40
+ * ## Custom option
41
+ *
42
+ * To create an option based on a custom parameter, specify `CUSTOM` as
43
+ * `options.values.type`. Provide descriptive names for all custom choices as
44
+ * `variants.values.choices.custom`. These names are displayed to customers
45
+ * during the book flow. You could follow this *sample flow*
46
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/sample-flows#create-service-variants-based-on-the-booked-equipment) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/sample-flows#create-service-variants-based-on-the-booked-equipment)).
47
+ *
48
+ * ## Duration option
49
+ *
50
+ * To create an option based on appointment duration, specify `DURATION` as
51
+ * `options.values.type` and set a descriptive name in `options.values.durationData.name`.
52
+ * Also, indicate the appointment length in `minutes` and provide a descriptive
53
+ * `name` for each duration choice in `variants.values.choices.duration`.
54
+ */
55
+ export declare function createServiceOptionsAndVariants(payload: object): RequestOptionsFactory<any>;
56
+ /**
57
+ * Clones a `serviceOptionsAndVariants` object and connects it to a *service*
58
+ * ([SDK](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction) | [REST](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/introduction)).
59
+ *
60
+ *
61
+ * The call fails if the service already has a connected
62
+ * `serviceOptionsAndVariants` object.
63
+ *
64
+ * The cloned `serviceOptionsAndVariants` object gets a new, unique option ID.
65
+ * The option ID of the existing `serviceOptionsAndVariants` object isn't reused.
66
+ *
67
+ * For example, you may call this method after *cloning a service*
68
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/clone-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/clone-service)).
69
+ */
70
+ export declare function cloneServiceOptionsAndVariants(payload: object): RequestOptionsFactory<any>;
71
+ /** Retrieves a `serviceOptionsAndVariants` object by its ID. */
72
+ export declare function getServiceOptionsAndVariants(payload: object): RequestOptionsFactory<any>;
73
+ /**
74
+ * Retrieves a `serviceOptionsAndVariants` object by *service ID*
75
+ * ([SDK](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction) | [REST](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/introduction)).
76
+ */
77
+ export declare function getServiceOptionsAndVariantsByServiceId(payload: object): RequestOptionsFactory<any>;
78
+ /**
79
+ * Updates a `serviceOptionsAndVariants` object.
80
+ *
81
+ *
82
+ * Currently, only a single option is supported per `serviceOptionsAndVariants` object.
83
+ *
84
+ * If you want to update `variants`, you must pass the entire list of supported
85
+ * variants, not only newly added variants.
86
+ *
87
+ * If you want to update `options`, you must pass the entire list of supported
88
+ * options, not only newly added options.
89
+ */
90
+ export declare function updateServiceOptionsAndVariants(payload: object): RequestOptionsFactory<any>;
91
+ /**
92
+ * Deletes a `serviceOptionsAndVariants` object.
93
+ *
94
+ *
95
+ * Because each service can be connected to only a single `serviceOptionsAndVariants`
96
+ * object, the service doesn't support *varied pricing*
97
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-payments) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-payments#service-rates))
98
+ * after deleting a `serviceOptionsAndVariants` object. Instead, Wix Bookings
99
+ * uses its standard price calculation.
100
+ */
101
+ export declare function deleteServiceOptionsAndVariants(payload: object): RequestOptionsFactory<any>;
102
+ /** Creates a query to retrieve a list of `serviceOptionsAndVariants` objects.\n\nThe `queryServiceOptionsAndVariants()` function builds a query to retrieve a list of `serviceOptionsAndVariants` objects and returns a `ServiceOptionsAndVariantsQueryBuilder` object.\n\nThe returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/service-options-and-variants-list-query-builder/find) function.\n\nYou can refine the query by chaining `ServiceOptionsAndVariantsQueryBuilder` functions onto the query. `ServiceOptionsAndVariantsQueryBuilder` functions enable you to sort, filter, and control the results that `queryServiceOptionsAndVariants()` returns.\n\n`queryServiceOptionsAndVariants()` runs with the following `ServiceOptionsAndVariantsQueryBuilder` default that you can override:\n\n+ `limit` is `50`.\n+ Sorted by `id` in ascending order.\n\nThe functions that are chained to `queryServiceOptionsAndVariants()` are applied in the order they are called. For example, if you apply `ascending("options.values.type")` and then `ascending("variants.values.price")`, the results are sorted first by the `"type"`, and then, if there are multiple results with the same `"type"`, the items are sorted by `"price"`.\n\nThe following `ServiceOptionsAndVariantsQueryBuilder` functions are supported for the `queryServiceOptionsAndVariants()` function. For a full description of the `serviceOptionsAndVariants` object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/service-options-and-variants-list-query-result/items) property in `ServiceOptionsAndVariantsQueryResult`. */
103
+ export declare function queryServiceOptionsAndVariants(payload: object): RequestOptionsFactory<any>;
@@ -0,0 +1,354 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.queryServiceOptionsAndVariants = exports.deleteServiceOptionsAndVariants = exports.updateServiceOptionsAndVariants = exports.getServiceOptionsAndVariantsByServiceId = exports.getServiceOptionsAndVariants = exports.cloneServiceOptionsAndVariants = exports.createServiceOptionsAndVariants = void 0;
4
+ const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
5
+ const field_mask_1 = require("@wix/sdk-runtime/transformations/field-mask");
6
+ const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
7
+ const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
8
+ function resolveWixBookingsCatalogV1ServiceOptionsAndVariantsServiceUrl(opts) {
9
+ const domainToMappings = {
10
+ 'manage._base_domain_': [
11
+ {
12
+ srcPath: '/_api/v1/service-options-and-variants',
13
+ destPath: '/v1/serviceOptionsAndVariants',
14
+ },
15
+ {
16
+ srcPath: '/_api/v1/serviceOptionsAndVariants',
17
+ destPath: '/v1/serviceOptionsAndVariants',
18
+ },
19
+ {
20
+ srcPath: '/_api/bookings/v1/service-options-and-variants',
21
+ destPath: '',
22
+ },
23
+ ],
24
+ _: [
25
+ {
26
+ srcPath: '/_api/v1/service-options-and-variants',
27
+ destPath: '/v1/serviceOptionsAndVariants',
28
+ },
29
+ {
30
+ srcPath: '/_api/v1/serviceOptionsAndVariants',
31
+ destPath: '/v1/serviceOptionsAndVariants',
32
+ },
33
+ ],
34
+ '*.dev.wix-code.com': [
35
+ {
36
+ srcPath: '/_api/v1/service-options-and-variants',
37
+ destPath: '/v1/serviceOptionsAndVariants',
38
+ },
39
+ ],
40
+ 'editor._base_domain_': [
41
+ {
42
+ srcPath: '/_api/v1/service-options-and-variants',
43
+ destPath: '/v1/serviceOptionsAndVariants',
44
+ },
45
+ {
46
+ srcPath: '/_api/bookings/v1/service-options-and-variants',
47
+ destPath: '/api',
48
+ },
49
+ ],
50
+ 'blocks._base_domain_': [
51
+ {
52
+ srcPath: '/_api/v1/service-options-and-variants',
53
+ destPath: '/v1/serviceOptionsAndVariants',
54
+ },
55
+ {
56
+ srcPath: '/_api/bookings/v1/service-options-and-variants',
57
+ destPath: '/api',
58
+ },
59
+ ],
60
+ 'create.editorx': [
61
+ {
62
+ srcPath: '/_api/v1/service-options-and-variants',
63
+ destPath: '/v1/serviceOptionsAndVariants',
64
+ },
65
+ {
66
+ srcPath: '/_api/bookings/v1/service-options-and-variants',
67
+ destPath: '/api',
68
+ },
69
+ ],
70
+ 'www.wixapis.com': [
71
+ {
72
+ srcPath: '/bookings/v1/serviceOptionsAndVariants',
73
+ destPath: '/v1/serviceOptionsAndVariants',
74
+ },
75
+ ],
76
+ 'bo._base_domain_': [
77
+ {
78
+ srcPath: '/_api/v1/service-options-and-variants',
79
+ destPath: '/v1/serviceOptionsAndVariants',
80
+ },
81
+ ],
82
+ 'wixbo.ai': [
83
+ {
84
+ srcPath: '/_api/v1/service-options-and-variants',
85
+ destPath: '/v1/serviceOptionsAndVariants',
86
+ },
87
+ ],
88
+ 'wix-bo.com': [
89
+ {
90
+ srcPath: '/_api/v1/service-options-and-variants',
91
+ destPath: '/v1/serviceOptionsAndVariants',
92
+ },
93
+ ],
94
+ };
95
+ return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
96
+ }
97
+ const PACKAGE_NAME = '@wix/auto_sdk_bookings_service-options-and-variants';
98
+ /**
99
+ * Creates a `serviceOptionsAndVariants` object and for a service.
100
+ *
101
+ *
102
+ * ## Calculate variants
103
+ *
104
+ * Before creating a `serviceOptionsAndVariants` object, you need to
105
+ * anticipate and manually define all its variants, since Wix Bookings doesn't
106
+ * automatically calculate them. For the actual
107
+ * Create Service Options And Variants* call, specify both the `options` and
108
+ * `variants` arrays.
109
+ *
110
+ * ## Limitations
111
+ *
112
+ * Wix Bookings allows you to connect only a single `serviceOptionsAndVariants`
113
+ * object to a service. *Create Service Options And Variants* fails, if the
114
+ * service already has a connected `serviceOptionsAndVariants` object.
115
+ *
116
+ * Currently, you can include only a single option per
117
+ * `serviceOptionsAndVariants` object. Taken together, this means that services
118
+ * are limited to a single option.
119
+ *
120
+ * ## Option ID
121
+ *
122
+ * When creating a`serviceOptionsAndVariants` object, you must specify an ID in
123
+ * [UUID format](https://en.wikipedia.org/wiki/Universally_unique_identifier)
124
+ * for its only option. You must reference this option ID for each variant as
125
+ * `variants.values.choices.optionId`.
126
+ *
127
+ * ## Staff member option
128
+ *
129
+ * To creating an option based on the *staff member*
130
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/introduction))
131
+ * providing the service, you need to specify `STAFF_MEMBER` as `options.values.type`.
132
+ * Also, specify all staff member IDs as `variants.values.choices.staffMemberId`.
133
+ * You could follow this *sample flow*
134
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/sample-flows#create-staff-member-based-service-variants) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/sample-flows#create-staff-member-based-service-variants)).
135
+ *
136
+ * ## Custom option
137
+ *
138
+ * To create an option based on a custom parameter, specify `CUSTOM` as
139
+ * `options.values.type`. Provide descriptive names for all custom choices as
140
+ * `variants.values.choices.custom`. These names are displayed to customers
141
+ * during the book flow. You could follow this *sample flow*
142
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/sample-flows#create-service-variants-based-on-the-booked-equipment) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/sample-flows#create-service-variants-based-on-the-booked-equipment)).
143
+ *
144
+ * ## Duration option
145
+ *
146
+ * To create an option based on appointment duration, specify `DURATION` as
147
+ * `options.values.type` and set a descriptive name in `options.values.durationData.name`.
148
+ * Also, indicate the appointment length in `minutes` and provide a descriptive
149
+ * `name` for each duration choice in `variants.values.choices.duration`.
150
+ */
151
+ function createServiceOptionsAndVariants(payload) {
152
+ function __createServiceOptionsAndVariants({ host }) {
153
+ const metadata = {
154
+ entityFqdn: 'wix.bookings.catalog.v1.service_options_and_variants',
155
+ method: 'POST',
156
+ methodFqn: 'wix.bookings.catalog.v1.ServiceOptionsAndVariantsService.CreateServiceOptionsAndVariants',
157
+ packageName: PACKAGE_NAME,
158
+ url: resolveWixBookingsCatalogV1ServiceOptionsAndVariantsServiceUrl({
159
+ protoPath: '/v1/serviceOptionsAndVariants',
160
+ data: payload,
161
+ host,
162
+ }),
163
+ data: payload,
164
+ };
165
+ return metadata;
166
+ }
167
+ return __createServiceOptionsAndVariants;
168
+ }
169
+ exports.createServiceOptionsAndVariants = createServiceOptionsAndVariants;
170
+ /**
171
+ * Clones a `serviceOptionsAndVariants` object and connects it to a *service*
172
+ * ([SDK](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction) | [REST](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/introduction)).
173
+ *
174
+ *
175
+ * The call fails if the service already has a connected
176
+ * `serviceOptionsAndVariants` object.
177
+ *
178
+ * The cloned `serviceOptionsAndVariants` object gets a new, unique option ID.
179
+ * The option ID of the existing `serviceOptionsAndVariants` object isn't reused.
180
+ *
181
+ * For example, you may call this method after *cloning a service*
182
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/clone-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/clone-service)).
183
+ */
184
+ function cloneServiceOptionsAndVariants(payload) {
185
+ function __cloneServiceOptionsAndVariants({ host }) {
186
+ const metadata = {
187
+ entityFqdn: 'wix.bookings.catalog.v1.service_options_and_variants',
188
+ method: 'POST',
189
+ methodFqn: 'wix.bookings.catalog.v1.ServiceOptionsAndVariantsService.CloneServiceOptionsAndVariants',
190
+ packageName: PACKAGE_NAME,
191
+ url: resolveWixBookingsCatalogV1ServiceOptionsAndVariantsServiceUrl({
192
+ protoPath: '/v1/serviceOptionsAndVariants/{cloneFromId}/clone',
193
+ data: payload,
194
+ host,
195
+ }),
196
+ data: payload,
197
+ };
198
+ return metadata;
199
+ }
200
+ return __cloneServiceOptionsAndVariants;
201
+ }
202
+ exports.cloneServiceOptionsAndVariants = cloneServiceOptionsAndVariants;
203
+ /** Retrieves a `serviceOptionsAndVariants` object by its ID. */
204
+ function getServiceOptionsAndVariants(payload) {
205
+ function __getServiceOptionsAndVariants({ host }) {
206
+ const metadata = {
207
+ entityFqdn: 'wix.bookings.catalog.v1.service_options_and_variants',
208
+ method: 'GET',
209
+ methodFqn: 'wix.bookings.catalog.v1.ServiceOptionsAndVariantsService.GetServiceOptionsAndVariants',
210
+ packageName: PACKAGE_NAME,
211
+ url: resolveWixBookingsCatalogV1ServiceOptionsAndVariantsServiceUrl({
212
+ protoPath: '/v1/serviceOptionsAndVariants/{serviceOptionsAndVariantsId}',
213
+ data: payload,
214
+ host,
215
+ }),
216
+ params: (0, rest_modules_1.toURLSearchParams)(payload),
217
+ fallback: [
218
+ {
219
+ method: 'GET',
220
+ url: resolveWixBookingsCatalogV1ServiceOptionsAndVariantsServiceUrl({
221
+ protoPath: '/v1/serviceOptionsAndVariants/{serviceOptionsAndVariantsId}',
222
+ data: payload,
223
+ host,
224
+ }),
225
+ params: (0, rest_modules_1.toURLSearchParams)(payload),
226
+ },
227
+ ],
228
+ };
229
+ return metadata;
230
+ }
231
+ return __getServiceOptionsAndVariants;
232
+ }
233
+ exports.getServiceOptionsAndVariants = getServiceOptionsAndVariants;
234
+ /**
235
+ * Retrieves a `serviceOptionsAndVariants` object by *service ID*
236
+ * ([SDK](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction) | [REST](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/introduction)).
237
+ */
238
+ function getServiceOptionsAndVariantsByServiceId(payload) {
239
+ function __getServiceOptionsAndVariantsByServiceId({ host }) {
240
+ const metadata = {
241
+ entityFqdn: 'wix.bookings.catalog.v1.service_options_and_variants',
242
+ method: 'GET',
243
+ methodFqn: 'wix.bookings.catalog.v1.ServiceOptionsAndVariantsService.GetServiceOptionsAndVariantsByServiceId',
244
+ packageName: PACKAGE_NAME,
245
+ url: resolveWixBookingsCatalogV1ServiceOptionsAndVariantsServiceUrl({
246
+ protoPath: '/v1/serviceOptionsAndVariants/service_id/{serviceId}',
247
+ data: payload,
248
+ host,
249
+ }),
250
+ params: (0, rest_modules_1.toURLSearchParams)(payload),
251
+ fallback: [
252
+ {
253
+ method: 'GET',
254
+ url: resolveWixBookingsCatalogV1ServiceOptionsAndVariantsServiceUrl({
255
+ protoPath: '/v1/serviceOptionsAndVariants/service_id/{serviceId}',
256
+ data: payload,
257
+ host,
258
+ }),
259
+ params: (0, rest_modules_1.toURLSearchParams)(payload),
260
+ },
261
+ ],
262
+ };
263
+ return metadata;
264
+ }
265
+ return __getServiceOptionsAndVariantsByServiceId;
266
+ }
267
+ exports.getServiceOptionsAndVariantsByServiceId = getServiceOptionsAndVariantsByServiceId;
268
+ /**
269
+ * Updates a `serviceOptionsAndVariants` object.
270
+ *
271
+ *
272
+ * Currently, only a single option is supported per `serviceOptionsAndVariants` object.
273
+ *
274
+ * If you want to update `variants`, you must pass the entire list of supported
275
+ * variants, not only newly added variants.
276
+ *
277
+ * If you want to update `options`, you must pass the entire list of supported
278
+ * options, not only newly added options.
279
+ */
280
+ function updateServiceOptionsAndVariants(payload) {
281
+ function __updateServiceOptionsAndVariants({ host }) {
282
+ const serializedData = (0, transform_paths_1.transformPaths)(payload, [
283
+ {
284
+ transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
285
+ paths: [{ path: 'mask' }],
286
+ },
287
+ ]);
288
+ const metadata = {
289
+ entityFqdn: 'wix.bookings.catalog.v1.service_options_and_variants',
290
+ method: 'PATCH',
291
+ methodFqn: 'wix.bookings.catalog.v1.ServiceOptionsAndVariantsService.UpdateServiceOptionsAndVariants',
292
+ packageName: PACKAGE_NAME,
293
+ url: resolveWixBookingsCatalogV1ServiceOptionsAndVariantsServiceUrl({
294
+ protoPath: '/v1/serviceOptionsAndVariants/{serviceOptionsAndVariants.id}',
295
+ data: serializedData,
296
+ host,
297
+ }),
298
+ data: serializedData,
299
+ };
300
+ return metadata;
301
+ }
302
+ return __updateServiceOptionsAndVariants;
303
+ }
304
+ exports.updateServiceOptionsAndVariants = updateServiceOptionsAndVariants;
305
+ /**
306
+ * Deletes a `serviceOptionsAndVariants` object.
307
+ *
308
+ *
309
+ * Because each service can be connected to only a single `serviceOptionsAndVariants`
310
+ * object, the service doesn't support *varied pricing*
311
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-payments) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-payments#service-rates))
312
+ * after deleting a `serviceOptionsAndVariants` object. Instead, Wix Bookings
313
+ * uses its standard price calculation.
314
+ */
315
+ function deleteServiceOptionsAndVariants(payload) {
316
+ function __deleteServiceOptionsAndVariants({ host }) {
317
+ const metadata = {
318
+ entityFqdn: 'wix.bookings.catalog.v1.service_options_and_variants',
319
+ method: 'DELETE',
320
+ methodFqn: 'wix.bookings.catalog.v1.ServiceOptionsAndVariantsService.DeleteServiceOptionsAndVariants',
321
+ packageName: PACKAGE_NAME,
322
+ url: resolveWixBookingsCatalogV1ServiceOptionsAndVariantsServiceUrl({
323
+ protoPath: '/v1/serviceOptionsAndVariants/{serviceOptionsAndVariantsId}',
324
+ data: payload,
325
+ host,
326
+ }),
327
+ params: (0, rest_modules_1.toURLSearchParams)(payload),
328
+ };
329
+ return metadata;
330
+ }
331
+ return __deleteServiceOptionsAndVariants;
332
+ }
333
+ exports.deleteServiceOptionsAndVariants = deleteServiceOptionsAndVariants;
334
+ /** Creates a query to retrieve a list of `serviceOptionsAndVariants` objects.\n\nThe `queryServiceOptionsAndVariants()` function builds a query to retrieve a list of `serviceOptionsAndVariants` objects and returns a `ServiceOptionsAndVariantsQueryBuilder` object.\n\nThe returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/service-options-and-variants-list-query-builder/find) function.\n\nYou can refine the query by chaining `ServiceOptionsAndVariantsQueryBuilder` functions onto the query. `ServiceOptionsAndVariantsQueryBuilder` functions enable you to sort, filter, and control the results that `queryServiceOptionsAndVariants()` returns.\n\n`queryServiceOptionsAndVariants()` runs with the following `ServiceOptionsAndVariantsQueryBuilder` default that you can override:\n\n+ `limit` is `50`.\n+ Sorted by `id` in ascending order.\n\nThe functions that are chained to `queryServiceOptionsAndVariants()` are applied in the order they are called. For example, if you apply `ascending("options.values.type")` and then `ascending("variants.values.price")`, the results are sorted first by the `"type"`, and then, if there are multiple results with the same `"type"`, the items are sorted by `"price"`.\n\nThe following `ServiceOptionsAndVariantsQueryBuilder` functions are supported for the `queryServiceOptionsAndVariants()` function. For a full description of the `serviceOptionsAndVariants` object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/service-options-and-variants-list-query-result/items) property in `ServiceOptionsAndVariantsQueryResult`. */
335
+ function queryServiceOptionsAndVariants(payload) {
336
+ function __queryServiceOptionsAndVariants({ host }) {
337
+ const metadata = {
338
+ entityFqdn: 'wix.bookings.catalog.v1.service_options_and_variants',
339
+ method: 'POST',
340
+ methodFqn: 'wix.bookings.catalog.v1.ServiceOptionsAndVariantsService.QueryServiceOptionsAndVariants',
341
+ packageName: PACKAGE_NAME,
342
+ url: resolveWixBookingsCatalogV1ServiceOptionsAndVariantsServiceUrl({
343
+ protoPath: '/v1/serviceOptionsAndVariants/query',
344
+ data: payload,
345
+ host,
346
+ }),
347
+ data: payload,
348
+ };
349
+ return metadata;
350
+ }
351
+ return __queryServiceOptionsAndVariants;
352
+ }
353
+ exports.queryServiceOptionsAndVariants = queryServiceOptionsAndVariants;
354
+ //# sourceMappingURL=bookings-catalog-v1-service-options-and-variants-service-options-and-variants.http.js.map