@wix/auto_sdk_bookings_booking-policies 1.0.31 → 1.0.33
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/{internal/cjs/src/bookings-v1-booking-policy-booking-policies.universal.d.ts → bookings-v1-booking-policy-booking-policies.universal-Dn-27NDP.d.mts} +129 -435
- package/build/{cjs/src/bookings-v1-booking-policy-booking-policies.universal.d.ts → bookings-v1-booking-policy-booking-policies.universal-Dn-27NDP.d.ts} +129 -435
- package/build/index.d.mts +146 -0
- package/build/index.d.ts +146 -0
- package/build/index.js +794 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +750 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{es/src/bookings-v1-booking-policy-booking-policies.universal.d.ts → bookings-v1-booking-policy-booking-policies.universal-Dn-27NDP.d.mts} +129 -435
- package/build/{es/src/bookings-v1-booking-policy-booking-policies.universal.d.ts → internal/bookings-v1-booking-policy-booking-policies.universal-Dn-27NDP.d.ts} +129 -435
- package/build/internal/index.d.mts +146 -0
- package/build/internal/index.d.ts +146 -0
- package/build/internal/index.js +794 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +750 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +545 -0
- package/build/internal/meta.d.ts +545 -0
- package/build/internal/meta.js +448 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +414 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +545 -0
- package/build/meta.d.ts +545 -0
- package/build/meta.js +448 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +414 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.context.d.ts +0 -37
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.context.js +0 -49
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.context.js.map +0 -1
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.http.d.ts +0 -71
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.http.js +0 -330
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.http.js.map +0 -1
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.meta.d.ts +0 -28
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.meta.js +0 -180
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.meta.js.map +0 -1
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.public.d.ts +0 -117
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.public.js +0 -110
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.public.js.map +0 -1
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.types.d.ts +0 -1438
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.types.js +0 -155
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.types.js.map +0 -1
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.universal.js +0 -594
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/bookings-v1-booking-policy-booking-policies.context.d.ts +0 -37
- package/build/es/src/bookings-v1-booking-policy-booking-policies.context.js +0 -37
- package/build/es/src/bookings-v1-booking-policy-booking-policies.context.js.map +0 -1
- package/build/es/src/bookings-v1-booking-policy-booking-policies.http.d.ts +0 -71
- package/build/es/src/bookings-v1-booking-policy-booking-policies.http.js +0 -319
- package/build/es/src/bookings-v1-booking-policy-booking-policies.http.js.map +0 -1
- package/build/es/src/bookings-v1-booking-policy-booking-policies.meta.d.ts +0 -28
- package/build/es/src/bookings-v1-booking-policy-booking-policies.meta.js +0 -146
- package/build/es/src/bookings-v1-booking-policy-booking-policies.meta.js.map +0 -1
- package/build/es/src/bookings-v1-booking-policy-booking-policies.public.d.ts +0 -117
- package/build/es/src/bookings-v1-booking-policy-booking-policies.public.js +0 -90
- package/build/es/src/bookings-v1-booking-policy-booking-policies.public.js.map +0 -1
- package/build/es/src/bookings-v1-booking-policy-booking-policies.types.d.ts +0 -1438
- package/build/es/src/bookings-v1-booking-policy-booking-policies.types.js +0 -152
- package/build/es/src/bookings-v1-booking-policy-booking-policies.types.js.map +0 -1
- package/build/es/src/bookings-v1-booking-policy-booking-policies.universal.js +0 -560
- package/build/es/src/bookings-v1-booking-policy-booking-policies.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.context.d.ts +0 -37
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.context.js +0 -49
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.context.js.map +0 -1
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.http.d.ts +0 -71
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.http.js +0 -330
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.http.js.map +0 -1
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.meta.d.ts +0 -28
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.meta.js +0 -180
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.public.d.ts +0 -117
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.public.js +0 -110
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.public.js.map +0 -1
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.types.d.ts +0 -1438
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.types.js +0 -155
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.types.js.map +0 -1
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.universal.js +0 -594
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.context.d.ts +0 -37
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.context.js +0 -37
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.context.js.map +0 -1
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.http.d.ts +0 -71
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.http.js +0 -319
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.http.js.map +0 -1
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.meta.d.ts +0 -28
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.meta.js +0 -146
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.meta.js.map +0 -1
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.public.d.ts +0 -117
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.public.js +0 -90
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.public.js.map +0 -1
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.types.d.ts +0 -1438
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.types.js +0 -152
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.types.js.map +0 -1
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.universal.js +0 -560
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.universal.js.map +0 -1
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { createBookingPolicy as publicCreateBookingPolicy, getBookingPolicy as publicGetBookingPolicy, getStrictestBookingPolicy as publicGetStrictestBookingPolicy, updateBookingPolicy as publicUpdateBookingPolicy, setDefaultBookingPolicy as publicSetDefaultBookingPolicy, deleteBookingPolicy as publicDeleteBookingPolicy, queryBookingPolicies as publicQueryBookingPolicies, countBookingPolicies as publicCountBookingPolicies } from './bookings-v1-booking-policy-booking-policies.public.js';
|
|
2
|
-
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
3
|
-
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
4
|
-
import { onBookingPolicyCreated as publicOnBookingPolicyCreated } from './bookings-v1-booking-policy-booking-policies.public.js';
|
|
5
|
-
import { onBookingPolicyDefaultBookingPolicySet as publicOnBookingPolicyDefaultBookingPolicySet } from './bookings-v1-booking-policy-booking-policies.public.js';
|
|
6
|
-
import { onBookingPolicyDeleted as publicOnBookingPolicyDeleted } from './bookings-v1-booking-policy-booking-policies.public.js';
|
|
7
|
-
import { onBookingPolicyUpdated as publicOnBookingPolicyUpdated } from './bookings-v1-booking-policy-booking-policies.public.js';
|
|
8
|
-
export declare const createBookingPolicy: MaybeContext<BuildRESTFunction<typeof publicCreateBookingPolicy> & typeof publicCreateBookingPolicy>;
|
|
9
|
-
export declare const getBookingPolicy: MaybeContext<BuildRESTFunction<typeof publicGetBookingPolicy> & typeof publicGetBookingPolicy>;
|
|
10
|
-
export declare const getStrictestBookingPolicy: MaybeContext<BuildRESTFunction<typeof publicGetStrictestBookingPolicy> & typeof publicGetStrictestBookingPolicy>;
|
|
11
|
-
export declare const updateBookingPolicy: MaybeContext<BuildRESTFunction<typeof publicUpdateBookingPolicy> & typeof publicUpdateBookingPolicy>;
|
|
12
|
-
export declare const setDefaultBookingPolicy: MaybeContext<BuildRESTFunction<typeof publicSetDefaultBookingPolicy> & typeof publicSetDefaultBookingPolicy>;
|
|
13
|
-
export declare const deleteBookingPolicy: MaybeContext<BuildRESTFunction<typeof publicDeleteBookingPolicy> & typeof publicDeleteBookingPolicy>;
|
|
14
|
-
export declare const queryBookingPolicies: MaybeContext<BuildRESTFunction<typeof publicQueryBookingPolicies> & typeof publicQueryBookingPolicies>;
|
|
15
|
-
export declare const countBookingPolicies: MaybeContext<BuildRESTFunction<typeof publicCountBookingPolicies> & typeof publicCountBookingPolicies>;
|
|
16
|
-
/**
|
|
17
|
-
* Triggered when a booking policy is created.
|
|
18
|
-
*/
|
|
19
|
-
export declare const onBookingPolicyCreated: ReturnType<typeof createEventModule<typeof publicOnBookingPolicyCreated>>;
|
|
20
|
-
/**
|
|
21
|
-
* Triggered when the site's default policy changes. Then,
|
|
22
|
-
* _Booking Policy Updated_
|
|
23
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/on-booking-policy-updated) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/booking-policy-updated))
|
|
24
|
-
* is also triggered both for the new and the previous default policy.
|
|
25
|
-
*/
|
|
26
|
-
export declare const onBookingPolicyDefaultBookingPolicySet: ReturnType<typeof createEventModule<typeof publicOnBookingPolicyDefaultBookingPolicySet>>;
|
|
27
|
-
/**
|
|
28
|
-
* Triggered when a booking policy is deleted.
|
|
29
|
-
*/
|
|
30
|
-
export declare const onBookingPolicyDeleted: ReturnType<typeof createEventModule<typeof publicOnBookingPolicyDeleted>>;
|
|
31
|
-
/**
|
|
32
|
-
* Triggered when a booking policy is updated, including when a policy's
|
|
33
|
-
* `default` attribute changes.
|
|
34
|
-
*/
|
|
35
|
-
export declare const onBookingPolicyUpdated: ReturnType<typeof createEventModule<typeof publicOnBookingPolicyUpdated>>;
|
|
36
|
-
export { SortOrder, PlacementType, DayOfWeek, ResolutionMethod, State, SiteCreatedContext, Namespace, DeleteStatus, WebhookIdentityType, } from './bookings-v1-booking-policy-booking-policies.universal.js';
|
|
37
|
-
export { BookingPolicy, PolicyDescription, LimitEarlyBookingPolicy, LimitLateBookingPolicy, BookAfterStartPolicy, CancellationPolicy, ReschedulePolicy, WaitlistPolicy, ParticipantsPolicy, ResourcesPolicy, CancellationFeePolicy, Money, CancellationWindow, CancellationWindowFeeOneOf, SaveCreditCardPolicy, ExtendedFields, DefaultBookingPolicySet, CreateBookingPolicyRequest, CreateBookingPolicyResponse, GetBookingPolicyRequest, GetBookingPolicyResponse, GetStrictestBookingPolicyRequest, GetStrictestBookingPolicyResponse, UpdateBookingPolicyRequest, UpdateBookingPolicyResponse, SetDefaultBookingPolicyRequest, SetDefaultBookingPolicyResponse, DeleteBookingPolicyRequest, DeleteBookingPolicyResponse, QueryBookingPoliciesRequest, CursorQuery, CursorQueryPagingMethodOneOf, Sorting, CursorPaging, QueryBookingPoliciesResponse, CursorPagingMetadata, Cursors, CountBookingPoliciesRequest, CountBookingPoliciesResponse, UpdateAllPoliciesRequest, UpdateAllPoliciesResponse, CreateMissingDefaultPolicyRequest, CreateMissingDefaultPolicyResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, SitePropertiesNotification, SitePropertiesEvent, Properties, Categories, Locale, Address, AddressHint, GeoCoordinates, BusinessSchedule, TimePeriod, SpecialHourPeriod, Multilingual, SupportedLanguage, ConsentPolicy, Translation, ChangeContext, ChangeContextPayloadOneOf, PropertiesChange, V4SiteCreated, SiteCloned, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Asset, SiteCreated, SiteTransferred, SiteDeleted, DeleteContext, SiteUndeleted, SitePublished, SiteUnpublished, SiteMarkedAsTemplate, SiteMarkedAsWixSite, ServiceProvisioned, ServiceRemoved, SiteRenamed, SiteHardDeleted, NamespaceChanged, StudioAssigned, StudioUnassigned, SiteUrlChanged, SitePurgedExternally, OdeditorAssigned, OdeditorUnassigned, PicassoAssigned, PicassoUnassigned, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, EventMetadata, BookingPolicyCreatedEnvelope, BookingPolicyDefaultBookingPolicySetEnvelope, BookingPolicyDeletedEnvelope, BookingPolicyUpdatedEnvelope, UpdateBookingPolicy, BookingPoliciesQueryResult, BookingPoliciesQueryBuilder, CountBookingPoliciesOptions, } from './bookings-v1-booking-policy-booking-policies.universal.js';
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebhookIdentityType = exports.DeleteStatus = exports.Namespace = exports.SiteCreatedContext = exports.State = exports.ResolutionMethod = exports.DayOfWeek = exports.PlacementType = exports.SortOrder = exports.onBookingPolicyUpdated = exports.onBookingPolicyDeleted = exports.onBookingPolicyDefaultBookingPolicySet = exports.onBookingPolicyCreated = exports.countBookingPolicies = exports.queryBookingPolicies = exports.deleteBookingPolicy = exports.setDefaultBookingPolicy = exports.updateBookingPolicy = exports.getStrictestBookingPolicy = exports.getBookingPolicy = exports.createBookingPolicy = void 0;
|
|
4
|
-
const bookings_v1_booking_policy_booking_policies_public_js_1 = require("./bookings-v1-booking-policy-booking-policies.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_v1_booking_policy_booking_policies_public_js_2 = require("./bookings-v1-booking-policy-booking-policies.public.js");
|
|
8
|
-
const bookings_v1_booking_policy_booking_policies_public_js_3 = require("./bookings-v1-booking-policy-booking-policies.public.js");
|
|
9
|
-
const bookings_v1_booking_policy_booking_policies_public_js_4 = require("./bookings-v1-booking-policy-booking-policies.public.js");
|
|
10
|
-
const bookings_v1_booking_policy_booking_policies_public_js_5 = require("./bookings-v1-booking-policy-booking-policies.public.js");
|
|
11
|
-
exports.createBookingPolicy = (0, rest_modules_1.createRESTModule)(bookings_v1_booking_policy_booking_policies_public_js_1.createBookingPolicy);
|
|
12
|
-
exports.getBookingPolicy = (0, rest_modules_1.createRESTModule)(bookings_v1_booking_policy_booking_policies_public_js_1.getBookingPolicy);
|
|
13
|
-
exports.getStrictestBookingPolicy = (0, rest_modules_1.createRESTModule)(bookings_v1_booking_policy_booking_policies_public_js_1.getStrictestBookingPolicy);
|
|
14
|
-
exports.updateBookingPolicy = (0, rest_modules_1.createRESTModule)(bookings_v1_booking_policy_booking_policies_public_js_1.updateBookingPolicy);
|
|
15
|
-
exports.setDefaultBookingPolicy = (0, rest_modules_1.createRESTModule)(bookings_v1_booking_policy_booking_policies_public_js_1.setDefaultBookingPolicy);
|
|
16
|
-
exports.deleteBookingPolicy = (0, rest_modules_1.createRESTModule)(bookings_v1_booking_policy_booking_policies_public_js_1.deleteBookingPolicy);
|
|
17
|
-
exports.queryBookingPolicies = (0, rest_modules_1.createRESTModule)(bookings_v1_booking_policy_booking_policies_public_js_1.queryBookingPolicies);
|
|
18
|
-
exports.countBookingPolicies = (0, rest_modules_1.createRESTModule)(bookings_v1_booking_policy_booking_policies_public_js_1.countBookingPolicies);
|
|
19
|
-
/**
|
|
20
|
-
* Triggered when a booking policy is created.
|
|
21
|
-
*/
|
|
22
|
-
exports.onBookingPolicyCreated = (0, event_definition_modules_1.createEventModule)(bookings_v1_booking_policy_booking_policies_public_js_2.onBookingPolicyCreated);
|
|
23
|
-
/**
|
|
24
|
-
* Triggered when the site's default policy changes. Then,
|
|
25
|
-
* _Booking Policy Updated_
|
|
26
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/on-booking-policy-updated) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/booking-policy-updated))
|
|
27
|
-
* is also triggered both for the new and the previous default policy.
|
|
28
|
-
*/
|
|
29
|
-
exports.onBookingPolicyDefaultBookingPolicySet = (0, event_definition_modules_1.createEventModule)(bookings_v1_booking_policy_booking_policies_public_js_3.onBookingPolicyDefaultBookingPolicySet);
|
|
30
|
-
/**
|
|
31
|
-
* Triggered when a booking policy is deleted.
|
|
32
|
-
*/
|
|
33
|
-
exports.onBookingPolicyDeleted = (0, event_definition_modules_1.createEventModule)(bookings_v1_booking_policy_booking_policies_public_js_4.onBookingPolicyDeleted);
|
|
34
|
-
/**
|
|
35
|
-
* Triggered when a booking policy is updated, including when a policy's
|
|
36
|
-
* `default` attribute changes.
|
|
37
|
-
*/
|
|
38
|
-
exports.onBookingPolicyUpdated = (0, event_definition_modules_1.createEventModule)(bookings_v1_booking_policy_booking_policies_public_js_5.onBookingPolicyUpdated);
|
|
39
|
-
var bookings_v1_booking_policy_booking_policies_universal_js_1 = require("./bookings-v1-booking-policy-booking-policies.universal.js");
|
|
40
|
-
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return bookings_v1_booking_policy_booking_policies_universal_js_1.SortOrder; } });
|
|
41
|
-
Object.defineProperty(exports, "PlacementType", { enumerable: true, get: function () { return bookings_v1_booking_policy_booking_policies_universal_js_1.PlacementType; } });
|
|
42
|
-
Object.defineProperty(exports, "DayOfWeek", { enumerable: true, get: function () { return bookings_v1_booking_policy_booking_policies_universal_js_1.DayOfWeek; } });
|
|
43
|
-
Object.defineProperty(exports, "ResolutionMethod", { enumerable: true, get: function () { return bookings_v1_booking_policy_booking_policies_universal_js_1.ResolutionMethod; } });
|
|
44
|
-
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return bookings_v1_booking_policy_booking_policies_universal_js_1.State; } });
|
|
45
|
-
Object.defineProperty(exports, "SiteCreatedContext", { enumerable: true, get: function () { return bookings_v1_booking_policy_booking_policies_universal_js_1.SiteCreatedContext; } });
|
|
46
|
-
Object.defineProperty(exports, "Namespace", { enumerable: true, get: function () { return bookings_v1_booking_policy_booking_policies_universal_js_1.Namespace; } });
|
|
47
|
-
Object.defineProperty(exports, "DeleteStatus", { enumerable: true, get: function () { return bookings_v1_booking_policy_booking_policies_universal_js_1.DeleteStatus; } });
|
|
48
|
-
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return bookings_v1_booking_policy_booking_policies_universal_js_1.WebhookIdentityType; } });
|
|
49
|
-
//# sourceMappingURL=bookings-v1-booking-policy-booking-policies.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-v1-booking-policy-booking-policies.context.js","sourceRoot":"","sources":["../../../../src/bookings-v1-booking-policy-booking-policies.context.ts"],"names":[],"mappings":";;;AAAA,mIASiE;AACjE,gEAAiE;AACjE,wFAA8E;AAE9E,mIAAiI;AACjI,mIAAiK;AACjK,mIAAiI;AACjI,mIAAiI;AAEpH,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,2EAAyB,CAAC,CAAC;AACjD,QAAA,gBAAgB,GAGX,IAAA,+BAAgB,EAAC,wEAAsB,CAAC,CAAC;AAC9C,QAAA,yBAAyB,GAGpB,IAAA,+BAAgB,EAAC,iFAA+B,CAAC,CAAC;AACvD,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,2EAAyB,CAAC,CAAC;AACjD,QAAA,uBAAuB,GAGlB,IAAA,+BAAgB,EAAC,+EAA6B,CAAC,CAAC;AACrD,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,2EAAyB,CAAC,CAAC;AACjD,QAAA,oBAAoB,GAGf,IAAA,+BAAgB,EAAC,4EAA0B,CAAC,CAAC;AAClD,QAAA,oBAAoB,GAGf,IAAA,+BAAgB,EAAC,4EAA0B,CAAC,CAAC;AAC/D;;GAEG;AACU,QAAA,sBAAsB,GAE/B,IAAA,4CAAiB,EAAC,8EAA4B,CAAC,CAAC;AACpD;;;;;GAKG;AACU,QAAA,sCAAsC,GAE/C,IAAA,4CAAiB,EAAC,8FAA4C,CAAC,CAAC;AACpE;;GAEG;AACU,QAAA,sBAAsB,GAE/B,IAAA,4CAAiB,EAAC,8EAA4B,CAAC,CAAC;AACpD;;;GAGG;AACU,QAAA,sBAAsB,GAE/B,IAAA,4CAAiB,EAAC,8EAA4B,CAAC,CAAC;AAEpD,uIAUoE;AATlE,qJAAA,SAAS,OAAA;AACT,yJAAA,aAAa,OAAA;AACb,qJAAA,SAAS,OAAA;AACT,4JAAA,gBAAgB,OAAA;AAChB,iJAAA,KAAK,OAAA;AACL,8JAAA,kBAAkB,OAAA;AAClB,qJAAA,SAAS,OAAA;AACT,wJAAA,YAAY,OAAA;AACZ,+JAAA,mBAAmB,OAAA"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
/** Creates a booking policy. */
|
|
3
|
-
export declare function createBookingPolicy(payload: object): RequestOptionsFactory<any>;
|
|
4
|
-
/** Retrieves a booking policy. */
|
|
5
|
-
export declare function getBookingPolicy(payload: object): RequestOptionsFactory<any>;
|
|
6
|
-
/**
|
|
7
|
-
* Retrieves the strictest version of each policy rule from a list of booking
|
|
8
|
-
* policies.
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* Returns a hypothetical `bookingPolicy` object that combines the strictest
|
|
12
|
-
* version of each rule. The `id` of the returned policy is `null` and no
|
|
13
|
-
* corresponding `bookingPolicy` object is created. To create a new policy, you
|
|
14
|
-
* can call *Create Booking Policy*
|
|
15
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/create-booking-policy) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/create-booking-policy)).
|
|
16
|
-
*/
|
|
17
|
-
export declare function getStrictestBookingPolicy(payload: object): RequestOptionsFactory<any>;
|
|
18
|
-
/**
|
|
19
|
-
* Updates a booking policy.
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* Each time the booking policy is updated, `revision` increments by 1.
|
|
23
|
-
* The current `revision` must be specified when updating the booking policy.
|
|
24
|
-
* This ensures you're working with the latest booking policy and prevents unintended overwrites.
|
|
25
|
-
*/
|
|
26
|
-
export declare function updateBookingPolicy(payload: object): RequestOptionsFactory<any>;
|
|
27
|
-
/**
|
|
28
|
-
* Sets a booking policy as the default.
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* Also updates the site's current default policy by setting its `default`
|
|
32
|
-
* attribute to `false`. If the provided policy is already the site's
|
|
33
|
-
* default, the call succeeds without changing any `bookingPolicy` object.
|
|
34
|
-
*/
|
|
35
|
-
export declare function setDefaultBookingPolicy(payload: object): RequestOptionsFactory<any>;
|
|
36
|
-
/**
|
|
37
|
-
* Deletes a booking policy.
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* You can't delete the default policy without first *setting a different policy as default*
|
|
41
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/set-default-booking-policy) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/set-default-booking-policy)).
|
|
42
|
-
*/
|
|
43
|
-
export declare function deleteBookingPolicy(payload: object): RequestOptionsFactory<any>;
|
|
44
|
-
/**
|
|
45
|
-
* Creates a query to retrieve a list of `bookingPolicy` objects.
|
|
46
|
-
*
|
|
47
|
-
* The `queryBookingPolicies()` function builds a query to retrieve a list of `bookingPolicy` objects and returns a `BookingPoliciesQueryBuilder` object.
|
|
48
|
-
*
|
|
49
|
-
* The 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/booking-policies/booking-policies-query-builder/find) function.
|
|
50
|
-
*
|
|
51
|
-
* You can refine the query by chaining `BookingPoliciesQueryBuilder` functions onto the query. `BookingPoliciesQueryBuilder` functions enable you to sort, filter, and control the results that `queryBookingPolicies()` returns.
|
|
52
|
-
*
|
|
53
|
-
* `queryBookingPolicies()` runs with the following `BookingPoliciesQueryBuilder` defaults that you can override:
|
|
54
|
-
*
|
|
55
|
-
* + `limit` is `50`.
|
|
56
|
-
* + Sorted by `createdDate` in ascending order.
|
|
57
|
-
*
|
|
58
|
-
* The functions that are chained to `queryBookingPolicies()` are applied in the order they are called. For example, if you apply `ascending("waitlistPolicy.capacity")` and then `ascending("name")`, the results are sorted first by `waitlistPolicy.capacity`, and then, if there are multiple results with the same `waitlistPolicy.capacity`, the items are sorted by `name`.
|
|
59
|
-
*
|
|
60
|
-
* The following `BookingPoliciesQueryBuilder` functions are supported for the `queryBookingPolicies()` function. For a full description of the `bookingPolicy` object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/booking-policies-query-result/items) property in `BookingPoliciesQueryResult`.
|
|
61
|
-
*/
|
|
62
|
-
export declare function queryBookingPolicies(payload: object): RequestOptionsFactory<any>;
|
|
63
|
-
/**
|
|
64
|
-
* Counts booking policies, given the provided filtering.
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* See *supported filters*
|
|
68
|
-
* ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters))
|
|
69
|
-
* for a complete list of supported filters.
|
|
70
|
-
*/
|
|
71
|
-
export declare function countBookingPolicies(payload: object): RequestOptionsFactory<any>;
|
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.countBookingPolicies = exports.queryBookingPolicies = exports.deleteBookingPolicy = exports.setDefaultBookingPolicy = exports.updateBookingPolicy = exports.getStrictestBookingPolicy = exports.getBookingPolicy = exports.createBookingPolicy = void 0;
|
|
4
|
-
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
5
|
-
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
-
const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
7
|
-
const field_mask_1 = require("@wix/sdk-runtime/transformations/field-mask");
|
|
8
|
-
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
9
|
-
const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
|
|
10
|
-
function resolveWixBookingsV1BookingPoliciesServiceUrl(opts) {
|
|
11
|
-
const domainToMappings = {
|
|
12
|
-
'manage._base_domain_': [
|
|
13
|
-
{
|
|
14
|
-
srcPath: '/_api/bookings/v1/booking-policies',
|
|
15
|
-
destPath: '/v1/booking-policies',
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
'www.wixapis.com': [
|
|
19
|
-
{
|
|
20
|
-
srcPath: '/bookings/v1/booking-policies',
|
|
21
|
-
destPath: '/v1/booking-policies',
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
_: [
|
|
25
|
-
{
|
|
26
|
-
srcPath: '/_api/bookings/v1/booking-policies/strictest',
|
|
27
|
-
destPath: '/v1/booking-policies/strictest',
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
srcPath: '/_api/bookings/v1/booking-policies/query',
|
|
31
|
-
destPath: '/v1/booking-policies/query',
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
};
|
|
35
|
-
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
36
|
-
}
|
|
37
|
-
const PACKAGE_NAME = '@wix/auto_sdk_bookings_booking-policies';
|
|
38
|
-
/** Creates a booking policy. */
|
|
39
|
-
function createBookingPolicy(payload) {
|
|
40
|
-
function __createBookingPolicy({ host }) {
|
|
41
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
42
|
-
{
|
|
43
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
44
|
-
paths: [
|
|
45
|
-
{ path: 'bookingPolicy.createdDate' },
|
|
46
|
-
{ path: 'bookingPolicy.updatedDate' },
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
]);
|
|
50
|
-
const metadata = {
|
|
51
|
-
entityFqdn: 'wix.bookings.v1.booking_policy',
|
|
52
|
-
method: 'POST',
|
|
53
|
-
methodFqn: 'wix.bookings.v1.BookingPoliciesService.CreateBookingPolicy',
|
|
54
|
-
packageName: PACKAGE_NAME,
|
|
55
|
-
url: resolveWixBookingsV1BookingPoliciesServiceUrl({
|
|
56
|
-
protoPath: '/v1/booking-policies',
|
|
57
|
-
data: serializedData,
|
|
58
|
-
host,
|
|
59
|
-
}),
|
|
60
|
-
data: serializedData,
|
|
61
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
62
|
-
{
|
|
63
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
64
|
-
paths: [
|
|
65
|
-
{ path: 'bookingPolicy.createdDate' },
|
|
66
|
-
{ path: 'bookingPolicy.updatedDate' },
|
|
67
|
-
],
|
|
68
|
-
},
|
|
69
|
-
]),
|
|
70
|
-
};
|
|
71
|
-
return metadata;
|
|
72
|
-
}
|
|
73
|
-
return __createBookingPolicy;
|
|
74
|
-
}
|
|
75
|
-
exports.createBookingPolicy = createBookingPolicy;
|
|
76
|
-
/** Retrieves a booking policy. */
|
|
77
|
-
function getBookingPolicy(payload) {
|
|
78
|
-
function __getBookingPolicy({ host }) {
|
|
79
|
-
const metadata = {
|
|
80
|
-
entityFqdn: 'wix.bookings.v1.booking_policy',
|
|
81
|
-
method: 'GET',
|
|
82
|
-
methodFqn: 'wix.bookings.v1.BookingPoliciesService.GetBookingPolicy',
|
|
83
|
-
packageName: PACKAGE_NAME,
|
|
84
|
-
url: resolveWixBookingsV1BookingPoliciesServiceUrl({
|
|
85
|
-
protoPath: '/v1/booking-policies/{bookingPolicyId}',
|
|
86
|
-
data: payload,
|
|
87
|
-
host,
|
|
88
|
-
}),
|
|
89
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
90
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
91
|
-
{
|
|
92
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
93
|
-
paths: [
|
|
94
|
-
{ path: 'bookingPolicy.createdDate' },
|
|
95
|
-
{ path: 'bookingPolicy.updatedDate' },
|
|
96
|
-
],
|
|
97
|
-
},
|
|
98
|
-
]),
|
|
99
|
-
};
|
|
100
|
-
return metadata;
|
|
101
|
-
}
|
|
102
|
-
return __getBookingPolicy;
|
|
103
|
-
}
|
|
104
|
-
exports.getBookingPolicy = getBookingPolicy;
|
|
105
|
-
/**
|
|
106
|
-
* Retrieves the strictest version of each policy rule from a list of booking
|
|
107
|
-
* policies.
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* Returns a hypothetical `bookingPolicy` object that combines the strictest
|
|
111
|
-
* version of each rule. The `id` of the returned policy is `null` and no
|
|
112
|
-
* corresponding `bookingPolicy` object is created. To create a new policy, you
|
|
113
|
-
* can call *Create Booking Policy*
|
|
114
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/create-booking-policy) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/create-booking-policy)).
|
|
115
|
-
*/
|
|
116
|
-
function getStrictestBookingPolicy(payload) {
|
|
117
|
-
function __getStrictestBookingPolicy({ host }) {
|
|
118
|
-
const metadata = {
|
|
119
|
-
entityFqdn: 'wix.bookings.v1.booking_policy',
|
|
120
|
-
method: 'POST',
|
|
121
|
-
methodFqn: 'wix.bookings.v1.BookingPoliciesService.GetStrictestBookingPolicy',
|
|
122
|
-
packageName: PACKAGE_NAME,
|
|
123
|
-
url: resolveWixBookingsV1BookingPoliciesServiceUrl({
|
|
124
|
-
protoPath: '/v1/booking-policies/strictest',
|
|
125
|
-
data: payload,
|
|
126
|
-
host,
|
|
127
|
-
}),
|
|
128
|
-
data: payload,
|
|
129
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
130
|
-
{
|
|
131
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
132
|
-
paths: [
|
|
133
|
-
{ path: 'bookingPolicy.createdDate' },
|
|
134
|
-
{ path: 'bookingPolicy.updatedDate' },
|
|
135
|
-
],
|
|
136
|
-
},
|
|
137
|
-
]),
|
|
138
|
-
};
|
|
139
|
-
return metadata;
|
|
140
|
-
}
|
|
141
|
-
return __getStrictestBookingPolicy;
|
|
142
|
-
}
|
|
143
|
-
exports.getStrictestBookingPolicy = getStrictestBookingPolicy;
|
|
144
|
-
/**
|
|
145
|
-
* Updates a booking policy.
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
* Each time the booking policy is updated, `revision` increments by 1.
|
|
149
|
-
* The current `revision` must be specified when updating the booking policy.
|
|
150
|
-
* This ensures you're working with the latest booking policy and prevents unintended overwrites.
|
|
151
|
-
*/
|
|
152
|
-
function updateBookingPolicy(payload) {
|
|
153
|
-
function __updateBookingPolicy({ host }) {
|
|
154
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
155
|
-
{
|
|
156
|
-
transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
|
|
157
|
-
paths: [{ path: 'mask' }],
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
161
|
-
paths: [
|
|
162
|
-
{ path: 'bookingPolicy.createdDate' },
|
|
163
|
-
{ path: 'bookingPolicy.updatedDate' },
|
|
164
|
-
],
|
|
165
|
-
},
|
|
166
|
-
]);
|
|
167
|
-
const metadata = {
|
|
168
|
-
entityFqdn: 'wix.bookings.v1.booking_policy',
|
|
169
|
-
method: 'PATCH',
|
|
170
|
-
methodFqn: 'wix.bookings.v1.BookingPoliciesService.UpdateBookingPolicy',
|
|
171
|
-
packageName: PACKAGE_NAME,
|
|
172
|
-
url: resolveWixBookingsV1BookingPoliciesServiceUrl({
|
|
173
|
-
protoPath: '/v1/booking-policies/{bookingPolicy.id}',
|
|
174
|
-
data: serializedData,
|
|
175
|
-
host,
|
|
176
|
-
}),
|
|
177
|
-
data: serializedData,
|
|
178
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
179
|
-
{
|
|
180
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
181
|
-
paths: [
|
|
182
|
-
{ path: 'bookingPolicy.createdDate' },
|
|
183
|
-
{ path: 'bookingPolicy.updatedDate' },
|
|
184
|
-
],
|
|
185
|
-
},
|
|
186
|
-
]),
|
|
187
|
-
};
|
|
188
|
-
return metadata;
|
|
189
|
-
}
|
|
190
|
-
return __updateBookingPolicy;
|
|
191
|
-
}
|
|
192
|
-
exports.updateBookingPolicy = updateBookingPolicy;
|
|
193
|
-
/**
|
|
194
|
-
* Sets a booking policy as the default.
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
* Also updates the site's current default policy by setting its `default`
|
|
198
|
-
* attribute to `false`. If the provided policy is already the site's
|
|
199
|
-
* default, the call succeeds without changing any `bookingPolicy` object.
|
|
200
|
-
*/
|
|
201
|
-
function setDefaultBookingPolicy(payload) {
|
|
202
|
-
function __setDefaultBookingPolicy({ host }) {
|
|
203
|
-
const metadata = {
|
|
204
|
-
entityFqdn: 'wix.bookings.v1.booking_policy',
|
|
205
|
-
method: 'POST',
|
|
206
|
-
methodFqn: 'wix.bookings.v1.BookingPoliciesService.SetDefaultBookingPolicy',
|
|
207
|
-
packageName: PACKAGE_NAME,
|
|
208
|
-
url: resolveWixBookingsV1BookingPoliciesServiceUrl({
|
|
209
|
-
protoPath: '/v1/booking-policies/{bookingPolicyId}:setDefault',
|
|
210
|
-
data: payload,
|
|
211
|
-
host,
|
|
212
|
-
}),
|
|
213
|
-
data: payload,
|
|
214
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
215
|
-
{
|
|
216
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
217
|
-
paths: [
|
|
218
|
-
{ path: 'currentDefaultBookingPolicy.createdDate' },
|
|
219
|
-
{ path: 'currentDefaultBookingPolicy.updatedDate' },
|
|
220
|
-
{ path: 'previousDefaultBookingPolicy.createdDate' },
|
|
221
|
-
{ path: 'previousDefaultBookingPolicy.updatedDate' },
|
|
222
|
-
],
|
|
223
|
-
},
|
|
224
|
-
]),
|
|
225
|
-
};
|
|
226
|
-
return metadata;
|
|
227
|
-
}
|
|
228
|
-
return __setDefaultBookingPolicy;
|
|
229
|
-
}
|
|
230
|
-
exports.setDefaultBookingPolicy = setDefaultBookingPolicy;
|
|
231
|
-
/**
|
|
232
|
-
* Deletes a booking policy.
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
* You can't delete the default policy without first *setting a different policy as default*
|
|
236
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/set-default-booking-policy) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/set-default-booking-policy)).
|
|
237
|
-
*/
|
|
238
|
-
function deleteBookingPolicy(payload) {
|
|
239
|
-
function __deleteBookingPolicy({ host }) {
|
|
240
|
-
const metadata = {
|
|
241
|
-
entityFqdn: 'wix.bookings.v1.booking_policy',
|
|
242
|
-
method: 'DELETE',
|
|
243
|
-
methodFqn: 'wix.bookings.v1.BookingPoliciesService.DeleteBookingPolicy',
|
|
244
|
-
packageName: PACKAGE_NAME,
|
|
245
|
-
url: resolveWixBookingsV1BookingPoliciesServiceUrl({
|
|
246
|
-
protoPath: '/v1/booking-policies/{bookingPolicyId}',
|
|
247
|
-
data: payload,
|
|
248
|
-
host,
|
|
249
|
-
}),
|
|
250
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
251
|
-
};
|
|
252
|
-
return metadata;
|
|
253
|
-
}
|
|
254
|
-
return __deleteBookingPolicy;
|
|
255
|
-
}
|
|
256
|
-
exports.deleteBookingPolicy = deleteBookingPolicy;
|
|
257
|
-
/**
|
|
258
|
-
* Creates a query to retrieve a list of `bookingPolicy` objects.
|
|
259
|
-
*
|
|
260
|
-
* The `queryBookingPolicies()` function builds a query to retrieve a list of `bookingPolicy` objects and returns a `BookingPoliciesQueryBuilder` object.
|
|
261
|
-
*
|
|
262
|
-
* The 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/booking-policies/booking-policies-query-builder/find) function.
|
|
263
|
-
*
|
|
264
|
-
* You can refine the query by chaining `BookingPoliciesQueryBuilder` functions onto the query. `BookingPoliciesQueryBuilder` functions enable you to sort, filter, and control the results that `queryBookingPolicies()` returns.
|
|
265
|
-
*
|
|
266
|
-
* `queryBookingPolicies()` runs with the following `BookingPoliciesQueryBuilder` defaults that you can override:
|
|
267
|
-
*
|
|
268
|
-
* + `limit` is `50`.
|
|
269
|
-
* + Sorted by `createdDate` in ascending order.
|
|
270
|
-
*
|
|
271
|
-
* The functions that are chained to `queryBookingPolicies()` are applied in the order they are called. For example, if you apply `ascending("waitlistPolicy.capacity")` and then `ascending("name")`, the results are sorted first by `waitlistPolicy.capacity`, and then, if there are multiple results with the same `waitlistPolicy.capacity`, the items are sorted by `name`.
|
|
272
|
-
*
|
|
273
|
-
* The following `BookingPoliciesQueryBuilder` functions are supported for the `queryBookingPolicies()` function. For a full description of the `bookingPolicy` object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/booking-policies-query-result/items) property in `BookingPoliciesQueryResult`.
|
|
274
|
-
*/
|
|
275
|
-
function queryBookingPolicies(payload) {
|
|
276
|
-
function __queryBookingPolicies({ host }) {
|
|
277
|
-
const metadata = {
|
|
278
|
-
entityFqdn: 'wix.bookings.v1.booking_policy',
|
|
279
|
-
method: 'POST',
|
|
280
|
-
methodFqn: 'wix.bookings.v1.BookingPoliciesService.QueryBookingPolicies',
|
|
281
|
-
packageName: PACKAGE_NAME,
|
|
282
|
-
url: resolveWixBookingsV1BookingPoliciesServiceUrl({
|
|
283
|
-
protoPath: '/v1/booking-policies/query',
|
|
284
|
-
data: payload,
|
|
285
|
-
host,
|
|
286
|
-
}),
|
|
287
|
-
data: payload,
|
|
288
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
289
|
-
{
|
|
290
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
291
|
-
paths: [
|
|
292
|
-
{ path: 'bookingPolicies.createdDate' },
|
|
293
|
-
{ path: 'bookingPolicies.updatedDate' },
|
|
294
|
-
],
|
|
295
|
-
},
|
|
296
|
-
]),
|
|
297
|
-
};
|
|
298
|
-
return metadata;
|
|
299
|
-
}
|
|
300
|
-
return __queryBookingPolicies;
|
|
301
|
-
}
|
|
302
|
-
exports.queryBookingPolicies = queryBookingPolicies;
|
|
303
|
-
/**
|
|
304
|
-
* Counts booking policies, given the provided filtering.
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
* See *supported filters*
|
|
308
|
-
* ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters))
|
|
309
|
-
* for a complete list of supported filters.
|
|
310
|
-
*/
|
|
311
|
-
function countBookingPolicies(payload) {
|
|
312
|
-
function __countBookingPolicies({ host }) {
|
|
313
|
-
const metadata = {
|
|
314
|
-
entityFqdn: 'wix.bookings.v1.booking_policy',
|
|
315
|
-
method: 'POST',
|
|
316
|
-
methodFqn: 'wix.bookings.v1.BookingPoliciesService.CountBookingPolicies',
|
|
317
|
-
packageName: PACKAGE_NAME,
|
|
318
|
-
url: resolveWixBookingsV1BookingPoliciesServiceUrl({
|
|
319
|
-
protoPath: '/v1/booking-policies/count',
|
|
320
|
-
data: payload,
|
|
321
|
-
host,
|
|
322
|
-
}),
|
|
323
|
-
data: payload,
|
|
324
|
-
};
|
|
325
|
-
return metadata;
|
|
326
|
-
}
|
|
327
|
-
return __countBookingPolicies;
|
|
328
|
-
}
|
|
329
|
-
exports.countBookingPolicies = countBookingPolicies;
|
|
330
|
-
//# sourceMappingURL=bookings-v1-booking-policy-booking-policies.http.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-v1-booking-policy-booking-policies.http.js","sourceRoot":"","sources":["../../../../src/bookings-v1-booking-policy-booking-policies.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,6CAA6C,CACpD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,oCAAoC;gBAC7C,QAAQ,EAAE,sBAAsB;aACjC;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,sBAAsB;aACjC;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,8CAA8C;gBACvD,QAAQ,EAAE,gCAAgC;aAC3C;YACD;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,4BAA4B;aACvC;SACF;KACF,CAAC;IAEF,OAAO,IAAA,yBAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,yCAAyC,CAAC;AAE/D,gCAAgC;AAChC,SAAgB,mBAAmB,CACjC,OAAe;IAEf,SAAS,qBAAqB,CAAC,EAAE,IAAI,EAAO;QAC1C,MAAM,cAAc,GAAG,IAAA,gCAAc,EAAC,OAAO,EAAE;YAC7C;gBACE,WAAW,EAAE,gDAAoC;gBACjD,KAAK,EAAE;oBACL,EAAE,IAAI,E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AE;qBACxC;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,sBAAsB,CAAC;AAChC,CAAC;AA/BD,oDA+BC;AAED;;;;;;;GAOG;AACH,SAAgB,oBAAoB,CAClC,OAAe;IAEf,SAAS,sBAAsB,CAAC,EAAE,IAAI,EAAO;QAC3C,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,gCAAgC;YAC5C,MAAM,EAAE,MAAa;YACrB,SAAS,EAAE,6DAA6D;YACxE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,6CAA6C,CAAC;gBACjD,SAAS,EAAE,4BAA4B;gBACvC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,sBAAsB,CAAC;AAChC,CAAC;AArBD,oDAqBC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixBookingsV1BookingPolicyTypes from './bookings-v1-booking-policy-booking-policies.types.js';
|
|
2
|
-
import * as ambassadorWixBookingsV1BookingPolicyUniversalTypes from './bookings-v1-booking-policy-booking-policies.universal.js';
|
|
3
|
-
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
-
getUrl: (context: any) => string;
|
|
5
|
-
httpMethod: K;
|
|
6
|
-
path: string;
|
|
7
|
-
pathParams: M;
|
|
8
|
-
__requestType: T;
|
|
9
|
-
__originalRequestType: S;
|
|
10
|
-
__responseType: Q;
|
|
11
|
-
__originalResponseType: R;
|
|
12
|
-
};
|
|
13
|
-
export declare function createBookingPolicy(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsV1BookingPolicyUniversalTypes.CreateBookingPolicyRequest, ambassadorWixBookingsV1BookingPolicyTypes.CreateBookingPolicyRequest, ambassadorWixBookingsV1BookingPolicyUniversalTypes.CreateBookingPolicyResponse, ambassadorWixBookingsV1BookingPolicyTypes.CreateBookingPolicyResponse>;
|
|
14
|
-
export declare function getBookingPolicy(): __PublicMethodMetaInfo<'GET', {
|
|
15
|
-
bookingPolicyId: string;
|
|
16
|
-
}, ambassadorWixBookingsV1BookingPolicyUniversalTypes.GetBookingPolicyRequest, ambassadorWixBookingsV1BookingPolicyTypes.GetBookingPolicyRequest, ambassadorWixBookingsV1BookingPolicyUniversalTypes.GetBookingPolicyResponse, ambassadorWixBookingsV1BookingPolicyTypes.GetBookingPolicyResponse>;
|
|
17
|
-
export declare function getStrictestBookingPolicy(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsV1BookingPolicyUniversalTypes.GetStrictestBookingPolicyRequest, ambassadorWixBookingsV1BookingPolicyTypes.GetStrictestBookingPolicyRequest, ambassadorWixBookingsV1BookingPolicyUniversalTypes.GetStrictestBookingPolicyResponse, ambassadorWixBookingsV1BookingPolicyTypes.GetStrictestBookingPolicyResponse>;
|
|
18
|
-
export declare function updateBookingPolicy(): __PublicMethodMetaInfo<'PATCH', {
|
|
19
|
-
bookingPolicyId: string;
|
|
20
|
-
}, ambassadorWixBookingsV1BookingPolicyUniversalTypes.UpdateBookingPolicyRequest, ambassadorWixBookingsV1BookingPolicyTypes.UpdateBookingPolicyRequest, ambassadorWixBookingsV1BookingPolicyUniversalTypes.UpdateBookingPolicyResponse, ambassadorWixBookingsV1BookingPolicyTypes.UpdateBookingPolicyResponse>;
|
|
21
|
-
export declare function setDefaultBookingPolicy(): __PublicMethodMetaInfo<'POST', {
|
|
22
|
-
bookingPolicyId: string;
|
|
23
|
-
}, ambassadorWixBookingsV1BookingPolicyUniversalTypes.SetDefaultBookingPolicyRequest, ambassadorWixBookingsV1BookingPolicyTypes.SetDefaultBookingPolicyRequest, ambassadorWixBookingsV1BookingPolicyUniversalTypes.SetDefaultBookingPolicyResponse, ambassadorWixBookingsV1BookingPolicyTypes.SetDefaultBookingPolicyResponse>;
|
|
24
|
-
export declare function deleteBookingPolicy(): __PublicMethodMetaInfo<'DELETE', {
|
|
25
|
-
bookingPolicyId: string;
|
|
26
|
-
}, ambassadorWixBookingsV1BookingPolicyUniversalTypes.DeleteBookingPolicyRequest, ambassadorWixBookingsV1BookingPolicyTypes.DeleteBookingPolicyRequest, ambassadorWixBookingsV1BookingPolicyUniversalTypes.DeleteBookingPolicyResponse, ambassadorWixBookingsV1BookingPolicyTypes.DeleteBookingPolicyResponse>;
|
|
27
|
-
export declare function queryBookingPolicies(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsV1BookingPolicyUniversalTypes.QueryBookingPoliciesRequest, ambassadorWixBookingsV1BookingPolicyTypes.QueryBookingPoliciesRequest, ambassadorWixBookingsV1BookingPolicyUniversalTypes.QueryBookingPoliciesResponse, ambassadorWixBookingsV1BookingPolicyTypes.QueryBookingPoliciesResponse>;
|
|
28
|
-
export declare function countBookingPolicies(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsV1BookingPolicyUniversalTypes.CountBookingPoliciesRequest, ambassadorWixBookingsV1BookingPolicyTypes.CountBookingPoliciesRequest, ambassadorWixBookingsV1BookingPolicyUniversalTypes.CountBookingPoliciesResponse, ambassadorWixBookingsV1BookingPolicyTypes.CountBookingPoliciesResponse>;
|