@wix/bookings 1.0.325 → 1.0.326
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/context.d.ts +12 -0
- package/build/cjs/context.js +39 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability.context.d.ts +3 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability.context.js +16 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability.context.js.map +1 -0
- package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.context.d.ts +4 -0
- package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.context.js +27 -0
- package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.context.js.map +1 -0
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.d.ts +4 -0
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js +27 -0
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js.map +1 -0
- package/build/cjs/src/bookings-calendar-v1-session.context.d.ts +5 -0
- package/build/cjs/src/bookings-calendar-v1-session.context.js +38 -0
- package/build/cjs/src/bookings-calendar-v1-session.context.js.map +1 -0
- package/build/cjs/src/bookings-calendar-v1-session.http.js +6 -0
- package/build/cjs/src/bookings-calendar-v1-session.http.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v2-external-calendar.context.d.ts +11 -0
- package/build/cjs/src/bookings-calendar-v2-external-calendar.context.js +104 -0
- package/build/cjs/src/bookings-calendar-v2-external-calendar.context.js.map +1 -0
- package/build/cjs/src/bookings-calendar-v2-session-view.context.d.ts +3 -0
- package/build/cjs/src/bookings-calendar-v2-session-view.context.js +16 -0
- package/build/cjs/src/bookings-calendar-v2-session-view.context.js.map +1 -0
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.context.d.ts +9 -0
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.context.js +82 -0
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.context.js.map +1 -0
- package/build/cjs/src/bookings-reader-v2-extended-booking.context.d.ts +3 -0
- package/build/cjs/src/bookings-reader-v2-extended-booking.context.js +16 -0
- package/build/cjs/src/bookings-reader-v2-extended-booking.context.js.map +1 -0
- package/build/cjs/src/bookings-services-v2-service.context.d.ts +7 -0
- package/build/cjs/src/bookings-services-v2-service.context.js +60 -0
- package/build/cjs/src/bookings-services-v2-service.context.js.map +1 -0
- package/build/cjs/src/bookings-v2-attendance.context.d.ts +6 -0
- package/build/cjs/src/bookings-v2-attendance.context.js +49 -0
- package/build/cjs/src/bookings-v2-attendance.context.js.map +1 -0
- package/build/cjs/src/bookings-v2-booking.context.d.ts +12 -0
- package/build/cjs/src/bookings-v2-booking.context.js +115 -0
- package/build/cjs/src/bookings-v2-booking.context.js.map +1 -0
- package/build/cjs/src/bookings-v2-price-info.context.d.ts +4 -0
- package/build/cjs/src/bookings-v2-price-info.context.js +27 -0
- package/build/cjs/src/bookings-v2-price-info.context.js.map +1 -0
- package/build/es/context.d.ts +12 -0
- package/build/es/context.js +13 -0
- package/build/es/context.js.map +1 -0
- package/build/es/src/bookings-availability-v1-slot-availability.context.d.ts +3 -0
- package/build/es/src/bookings-availability-v1-slot-availability.context.js +12 -0
- package/build/es/src/bookings-availability-v1-slot-availability.context.js.map +1 -0
- package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.context.d.ts +4 -0
- package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.context.js +22 -0
- package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.context.js.map +1 -0
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.d.ts +4 -0
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js +22 -0
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js.map +1 -0
- package/build/es/src/bookings-calendar-v1-session.context.d.ts +5 -0
- package/build/es/src/bookings-calendar-v1-session.context.js +32 -0
- package/build/es/src/bookings-calendar-v1-session.context.js.map +1 -0
- package/build/es/src/bookings-calendar-v1-session.http.js +6 -0
- package/build/es/src/bookings-calendar-v1-session.http.js.map +1 -1
- package/build/es/src/bookings-calendar-v2-external-calendar.context.d.ts +11 -0
- package/build/es/src/bookings-calendar-v2-external-calendar.context.js +92 -0
- package/build/es/src/bookings-calendar-v2-external-calendar.context.js.map +1 -0
- package/build/es/src/bookings-calendar-v2-session-view.context.d.ts +3 -0
- package/build/es/src/bookings-calendar-v2-session-view.context.js +12 -0
- package/build/es/src/bookings-calendar-v2-session-view.context.js.map +1 -0
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.context.d.ts +9 -0
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.context.js +72 -0
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.context.js.map +1 -0
- package/build/es/src/bookings-reader-v2-extended-booking.context.d.ts +3 -0
- package/build/es/src/bookings-reader-v2-extended-booking.context.js +12 -0
- package/build/es/src/bookings-reader-v2-extended-booking.context.js.map +1 -0
- package/build/es/src/bookings-services-v2-service.context.d.ts +7 -0
- package/build/es/src/bookings-services-v2-service.context.js +52 -0
- package/build/es/src/bookings-services-v2-service.context.js.map +1 -0
- package/build/es/src/bookings-v2-attendance.context.d.ts +6 -0
- package/build/es/src/bookings-v2-attendance.context.js +42 -0
- package/build/es/src/bookings-v2-attendance.context.js.map +1 -0
- package/build/es/src/bookings-v2-booking.context.d.ts +12 -0
- package/build/es/src/bookings-v2-booking.context.js +102 -0
- package/build/es/src/bookings-v2-booking.context.js.map +1 -0
- package/build/es/src/bookings-v2-price-info.context.d.ts +4 -0
- package/build/es/src/bookings-v2-price-info.context.js +22 -0
- package/build/es/src/bookings-v2-price-info.context.js.map +1 -0
- package/context/package.json +6 -0
- package/package.json +6 -4
|
@@ -0,0 +1,72 @@
|
|
|
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.public';
|
|
2
|
+
export const createServiceOptionsAndVariants = (...args) => {
|
|
3
|
+
// @ts-expect-error
|
|
4
|
+
if (!globalThis.__wix_context__) {
|
|
5
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
6
|
+
}
|
|
7
|
+
// @ts-expect-error
|
|
8
|
+
return globalThis.__wix_context__
|
|
9
|
+
.initWixModules(publicCreateServiceOptionsAndVariants)
|
|
10
|
+
.apply(undefined, args);
|
|
11
|
+
};
|
|
12
|
+
export const cloneServiceOptionsAndVariants = (...args) => {
|
|
13
|
+
// @ts-expect-error
|
|
14
|
+
if (!globalThis.__wix_context__) {
|
|
15
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
16
|
+
}
|
|
17
|
+
// @ts-expect-error
|
|
18
|
+
return globalThis.__wix_context__
|
|
19
|
+
.initWixModules(publicCloneServiceOptionsAndVariants)
|
|
20
|
+
.apply(undefined, args);
|
|
21
|
+
};
|
|
22
|
+
export const getServiceOptionsAndVariants = (...args) => {
|
|
23
|
+
// @ts-expect-error
|
|
24
|
+
if (!globalThis.__wix_context__) {
|
|
25
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
26
|
+
}
|
|
27
|
+
// @ts-expect-error
|
|
28
|
+
return globalThis.__wix_context__
|
|
29
|
+
.initWixModules(publicGetServiceOptionsAndVariants)
|
|
30
|
+
.apply(undefined, args);
|
|
31
|
+
};
|
|
32
|
+
export const getServiceOptionsAndVariantsByServiceId = (...args) => {
|
|
33
|
+
// @ts-expect-error
|
|
34
|
+
if (!globalThis.__wix_context__) {
|
|
35
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
36
|
+
}
|
|
37
|
+
// @ts-expect-error
|
|
38
|
+
return globalThis.__wix_context__
|
|
39
|
+
.initWixModules(publicGetServiceOptionsAndVariantsByServiceId)
|
|
40
|
+
.apply(undefined, args);
|
|
41
|
+
};
|
|
42
|
+
export const updateServiceOptionsAndVariants = (...args) => {
|
|
43
|
+
// @ts-expect-error
|
|
44
|
+
if (!globalThis.__wix_context__) {
|
|
45
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
46
|
+
}
|
|
47
|
+
// @ts-expect-error
|
|
48
|
+
return globalThis.__wix_context__
|
|
49
|
+
.initWixModules(publicUpdateServiceOptionsAndVariants)
|
|
50
|
+
.apply(undefined, args);
|
|
51
|
+
};
|
|
52
|
+
export const deleteServiceOptionsAndVariants = (...args) => {
|
|
53
|
+
// @ts-expect-error
|
|
54
|
+
if (!globalThis.__wix_context__) {
|
|
55
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
56
|
+
}
|
|
57
|
+
// @ts-expect-error
|
|
58
|
+
return globalThis.__wix_context__
|
|
59
|
+
.initWixModules(publicDeleteServiceOptionsAndVariants)
|
|
60
|
+
.apply(undefined, args);
|
|
61
|
+
};
|
|
62
|
+
export const queryServiceOptionsAndVariants = (...args) => {
|
|
63
|
+
// @ts-expect-error
|
|
64
|
+
if (!globalThis.__wix_context__) {
|
|
65
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
66
|
+
}
|
|
67
|
+
// @ts-expect-error
|
|
68
|
+
return globalThis.__wix_context__
|
|
69
|
+
.initWixModules(publicQueryServiceOptionsAndVariants)
|
|
70
|
+
.apply(undefined, args);
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=bookings-catalog-v1-service-options-and-variants.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-catalog-v1-service-options-and-variants.context.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-service-options-and-variants.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,IAAI,qCAAqC,EACxE,8BAA8B,IAAI,oCAAoC,EACtE,4BAA4B,IAAI,kCAAkC,EAClE,uCAAuC,IAAI,6CAA6C,EACxF,+BAA+B,IAAI,qCAAqC,EACxE,+BAA+B,IAAI,qCAAqC,EACxE,8BAA8B,IAAI,oCAAoC,GACvE,MAAM,2DAA2D,CAAC;AAGnE,MAAM,CAAC,MAAM,+BAA+B,GAExC,CAAC,GAAG,IAAS,EAAE,EAAE;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,qCAAqC,CAAC;SACrD,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,8BAA8B,GAEvC,CAAC,GAAG,IAAS,EAAE,EAAE;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,oCAAoC,CAAC;SACpD,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,4BAA4B,GAErC,CAAC,GAAG,IAAS,EAAE,EAAE;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,C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,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,oCAAoC,CAAC;SACpD,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { queryExtendedBookings as publicQueryExtendedBookings } from './bookings-reader-v2-extended-booking.public';
|
|
2
|
+
export const queryExtendedBookings = (...args) => {
|
|
3
|
+
// @ts-expect-error
|
|
4
|
+
if (!globalThis.__wix_context__) {
|
|
5
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
6
|
+
}
|
|
7
|
+
// @ts-expect-error
|
|
8
|
+
return globalThis.__wix_context__
|
|
9
|
+
.initWixModules(publicQueryExtendedBookings)
|
|
10
|
+
.apply(undefined, args);
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=bookings-reader-v2-extended-booking.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-reader-v2-extended-booking.context.js","sourceRoot":"","sources":["../../../src/bookings-reader-v2-extended-booking.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,IAAI,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAGpH,MAAM,CAAC,MAAM,qBAAqB,GAE9B,CAAC,GAAG,IAAS,EAAE,EAAE;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,2BAA2B,CAAC;SAC3C,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createService as publicCreateService, getService as publicGetService, updateService as publicUpdateService, deleteService as publicDeleteService, queryServices as publicQueryServices } from './bookings-services-v2-service.public';
|
|
2
|
+
import { BuildRESTFunction } from '@wix/sdk-types';
|
|
3
|
+
export declare const createService: BuildRESTFunction<typeof publicCreateService>;
|
|
4
|
+
export declare const getService: BuildRESTFunction<typeof publicGetService>;
|
|
5
|
+
export declare const updateService: BuildRESTFunction<typeof publicUpdateService>;
|
|
6
|
+
export declare const deleteService: BuildRESTFunction<typeof publicDeleteService>;
|
|
7
|
+
export declare const queryServices: BuildRESTFunction<typeof publicQueryServices>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { createService as publicCreateService, getService as publicGetService, updateService as publicUpdateService, deleteService as publicDeleteService, queryServices as publicQueryServices, } from './bookings-services-v2-service.public';
|
|
2
|
+
export const createService = (...args) => {
|
|
3
|
+
// @ts-expect-error
|
|
4
|
+
if (!globalThis.__wix_context__) {
|
|
5
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
6
|
+
}
|
|
7
|
+
// @ts-expect-error
|
|
8
|
+
return globalThis.__wix_context__
|
|
9
|
+
.initWixModules(publicCreateService)
|
|
10
|
+
.apply(undefined, args);
|
|
11
|
+
};
|
|
12
|
+
export const getService = (...args) => {
|
|
13
|
+
// @ts-expect-error
|
|
14
|
+
if (!globalThis.__wix_context__) {
|
|
15
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
16
|
+
}
|
|
17
|
+
// @ts-expect-error
|
|
18
|
+
return globalThis.__wix_context__
|
|
19
|
+
.initWixModules(publicGetService)
|
|
20
|
+
.apply(undefined, args);
|
|
21
|
+
};
|
|
22
|
+
export const updateService = (...args) => {
|
|
23
|
+
// @ts-expect-error
|
|
24
|
+
if (!globalThis.__wix_context__) {
|
|
25
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
26
|
+
}
|
|
27
|
+
// @ts-expect-error
|
|
28
|
+
return globalThis.__wix_context__
|
|
29
|
+
.initWixModules(publicUpdateService)
|
|
30
|
+
.apply(undefined, args);
|
|
31
|
+
};
|
|
32
|
+
export const deleteService = (...args) => {
|
|
33
|
+
// @ts-expect-error
|
|
34
|
+
if (!globalThis.__wix_context__) {
|
|
35
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
36
|
+
}
|
|
37
|
+
// @ts-expect-error
|
|
38
|
+
return globalThis.__wix_context__
|
|
39
|
+
.initWixModules(publicDeleteService)
|
|
40
|
+
.apply(undefined, args);
|
|
41
|
+
};
|
|
42
|
+
export const queryServices = (...args) => {
|
|
43
|
+
// @ts-expect-error
|
|
44
|
+
if (!globalThis.__wix_context__) {
|
|
45
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
46
|
+
}
|
|
47
|
+
// @ts-expect-error
|
|
48
|
+
return globalThis.__wix_context__
|
|
49
|
+
.initWixModules(publicQueryServices)
|
|
50
|
+
.apply(undefined, args);
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=bookings-services-v2-service.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-services-v2-service.context.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,IAAI,mBAAmB,EACpC,UAAU,IAAI,gBAAgB,EAC9B,aAAa,IAAI,mBAAmB,EACpC,aAAa,IAAI,mBAAmB,EACpC,aAAa,IAAI,mBAAmB,GACrC,MAAM,uCAAuC,CAAC;AAG/C,MAAM,CAAC,MAAM,aAAa,GAAkD,CAC1E,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CA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ACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,mBAAmB,CAAC;SACnC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { getAttendance as publicGetAttendance, setAttendance as publicSetAttendance, bulkSetAttendance as publicBulkSetAttendance, queryAttendance as publicQueryAttendance } from './bookings-v2-attendance.public';
|
|
2
|
+
import { BuildRESTFunction } from '@wix/sdk-types';
|
|
3
|
+
export declare const getAttendance: BuildRESTFunction<typeof publicGetAttendance>;
|
|
4
|
+
export declare const setAttendance: BuildRESTFunction<typeof publicSetAttendance>;
|
|
5
|
+
export declare const bulkSetAttendance: BuildRESTFunction<typeof publicBulkSetAttendance>;
|
|
6
|
+
export declare const queryAttendance: BuildRESTFunction<typeof publicQueryAttendance>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getAttendance as publicGetAttendance, setAttendance as publicSetAttendance, bulkSetAttendance as publicBulkSetAttendance, queryAttendance as publicQueryAttendance, } from './bookings-v2-attendance.public';
|
|
2
|
+
export const getAttendance = (...args) => {
|
|
3
|
+
// @ts-expect-error
|
|
4
|
+
if (!globalThis.__wix_context__) {
|
|
5
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
6
|
+
}
|
|
7
|
+
// @ts-expect-error
|
|
8
|
+
return globalThis.__wix_context__
|
|
9
|
+
.initWixModules(publicGetAttendance)
|
|
10
|
+
.apply(undefined, args);
|
|
11
|
+
};
|
|
12
|
+
export const setAttendance = (...args) => {
|
|
13
|
+
// @ts-expect-error
|
|
14
|
+
if (!globalThis.__wix_context__) {
|
|
15
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
16
|
+
}
|
|
17
|
+
// @ts-expect-error
|
|
18
|
+
return globalThis.__wix_context__
|
|
19
|
+
.initWixModules(publicSetAttendance)
|
|
20
|
+
.apply(undefined, args);
|
|
21
|
+
};
|
|
22
|
+
export const bulkSetAttendance = (...args) => {
|
|
23
|
+
// @ts-expect-error
|
|
24
|
+
if (!globalThis.__wix_context__) {
|
|
25
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
26
|
+
}
|
|
27
|
+
// @ts-expect-error
|
|
28
|
+
return globalThis.__wix_context__
|
|
29
|
+
.initWixModules(publicBulkSetAttendance)
|
|
30
|
+
.apply(undefined, args);
|
|
31
|
+
};
|
|
32
|
+
export const queryAttendance = (...args) => {
|
|
33
|
+
// @ts-expect-error
|
|
34
|
+
if (!globalThis.__wix_context__) {
|
|
35
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
36
|
+
}
|
|
37
|
+
// @ts-expect-error
|
|
38
|
+
return globalThis.__wix_context__
|
|
39
|
+
.initWixModules(publicQueryAttendance)
|
|
40
|
+
.apply(undefined, args);
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=bookings-v2-attendance.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-v2-attendance.context.js","sourceRoot":"","sources":["../../../src/bookings-v2-attendance.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,IAAI,mBAAmB,EACpC,aAAa,IAAI,mBAAmB,EACpC,iBAAiB,IAAI,uBAAuB,EAC5C,eAAe,IAAI,qBAAqB,GACzC,MAAM,iCAAiC,CAAC;AAGzC,MAAM,CAAC,MAAM,aAAa,GAAkD,CAC1E,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB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escheduleBooking, confirmBooking as publicConfirmBooking, updateExtendedFields as publicUpdateExtendedFields, declineBooking as publicDeclineBooking, cancelBooking as publicCancelBooking, updateNumberOfParticipants as publicUpdateNumberOfParticipants, confirmOrDeclineBooking as publicConfirmOrDeclineBooking, bulkConfirmOrDeclineBooking as publicBulkConfirmOrDeclineBooking } from './bookings-v2-booking.public';
|
|
2
|
+
import { BuildRESTFunction } from '@wix/sdk-types';
|
|
3
|
+
export declare const createBooking: BuildRESTFunction<typeof publicCreateBooking>;
|
|
4
|
+
export declare const bulkCreateBooking: BuildRESTFunction<typeof publicBulkCreateBooking>;
|
|
5
|
+
export declare const rescheduleBooking: BuildRESTFunction<typeof publicRescheduleBooking>;
|
|
6
|
+
export declare const confirmBooking: BuildRESTFunction<typeof publicConfirmBooking>;
|
|
7
|
+
export declare const updateExtendedFields: BuildRESTFunction<typeof publicUpdateExtendedFields>;
|
|
8
|
+
export declare const declineBooking: BuildRESTFunction<typeof publicDeclineBooking>;
|
|
9
|
+
export declare const cancelBooking: BuildRESTFunction<typeof publicCancelBooking>;
|
|
10
|
+
export declare const updateNumberOfParticipants: BuildRESTFunction<typeof publicUpdateNumberOfParticipants>;
|
|
11
|
+
export declare const confirmOrDeclineBooking: BuildRESTFunction<typeof publicConfirmOrDeclineBooking>;
|
|
12
|
+
export declare const bulkConfirmOrDeclineBooking: BuildRESTFunction<typeof publicBulkConfirmOrDeclineBooking>;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { createBooking as publicCreateBooking, bulkCreateBooking as publicBulkCreateBooking, rescheduleBooking as publicRescheduleBooking, confirmBooking as publicConfirmBooking, updateExtendedFields as publicUpdateExtendedFields, declineBooking as publicDeclineBooking, cancelBooking as publicCancelBooking, updateNumberOfParticipants as publicUpdateNumberOfParticipants, confirmOrDeclineBooking as publicConfirmOrDeclineBooking, bulkConfirmOrDeclineBooking as publicBulkConfirmOrDeclineBooking, } from './bookings-v2-booking.public';
|
|
2
|
+
export const createBooking = (...args) => {
|
|
3
|
+
// @ts-expect-error
|
|
4
|
+
if (!globalThis.__wix_context__) {
|
|
5
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
6
|
+
}
|
|
7
|
+
// @ts-expect-error
|
|
8
|
+
return globalThis.__wix_context__
|
|
9
|
+
.initWixModules(publicCreateBooking)
|
|
10
|
+
.apply(undefined, args);
|
|
11
|
+
};
|
|
12
|
+
export const bulkCreateBooking = (...args) => {
|
|
13
|
+
// @ts-expect-error
|
|
14
|
+
if (!globalThis.__wix_context__) {
|
|
15
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
16
|
+
}
|
|
17
|
+
// @ts-expect-error
|
|
18
|
+
return globalThis.__wix_context__
|
|
19
|
+
.initWixModules(publicBulkCreateBooking)
|
|
20
|
+
.apply(undefined, args);
|
|
21
|
+
};
|
|
22
|
+
export const rescheduleBooking = (...args) => {
|
|
23
|
+
// @ts-expect-error
|
|
24
|
+
if (!globalThis.__wix_context__) {
|
|
25
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
26
|
+
}
|
|
27
|
+
// @ts-expect-error
|
|
28
|
+
return globalThis.__wix_context__
|
|
29
|
+
.initWixModules(publicRescheduleBooking)
|
|
30
|
+
.apply(undefined, args);
|
|
31
|
+
};
|
|
32
|
+
export const confirmBooking = (...args) => {
|
|
33
|
+
// @ts-expect-error
|
|
34
|
+
if (!globalThis.__wix_context__) {
|
|
35
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
36
|
+
}
|
|
37
|
+
// @ts-expect-error
|
|
38
|
+
return globalThis.__wix_context__
|
|
39
|
+
.initWixModules(publicConfirmBooking)
|
|
40
|
+
.apply(undefined, args);
|
|
41
|
+
};
|
|
42
|
+
export const updateExtendedFields = (...args) => {
|
|
43
|
+
// @ts-expect-error
|
|
44
|
+
if (!globalThis.__wix_context__) {
|
|
45
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
46
|
+
}
|
|
47
|
+
// @ts-expect-error
|
|
48
|
+
return globalThis.__wix_context__
|
|
49
|
+
.initWixModules(publicUpdateExtendedFields)
|
|
50
|
+
.apply(undefined, args);
|
|
51
|
+
};
|
|
52
|
+
export const declineBooking = (...args) => {
|
|
53
|
+
// @ts-expect-error
|
|
54
|
+
if (!globalThis.__wix_context__) {
|
|
55
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
56
|
+
}
|
|
57
|
+
// @ts-expect-error
|
|
58
|
+
return globalThis.__wix_context__
|
|
59
|
+
.initWixModules(publicDeclineBooking)
|
|
60
|
+
.apply(undefined, args);
|
|
61
|
+
};
|
|
62
|
+
export const cancelBooking = (...args) => {
|
|
63
|
+
// @ts-expect-error
|
|
64
|
+
if (!globalThis.__wix_context__) {
|
|
65
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
66
|
+
}
|
|
67
|
+
// @ts-expect-error
|
|
68
|
+
return globalThis.__wix_context__
|
|
69
|
+
.initWixModules(publicCancelBooking)
|
|
70
|
+
.apply(undefined, args);
|
|
71
|
+
};
|
|
72
|
+
export const updateNumberOfParticipants = (...args) => {
|
|
73
|
+
// @ts-expect-error
|
|
74
|
+
if (!globalThis.__wix_context__) {
|
|
75
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
76
|
+
}
|
|
77
|
+
// @ts-expect-error
|
|
78
|
+
return globalThis.__wix_context__
|
|
79
|
+
.initWixModules(publicUpdateNumberOfParticipants)
|
|
80
|
+
.apply(undefined, args);
|
|
81
|
+
};
|
|
82
|
+
export const confirmOrDeclineBooking = (...args) => {
|
|
83
|
+
// @ts-expect-error
|
|
84
|
+
if (!globalThis.__wix_context__) {
|
|
85
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
86
|
+
}
|
|
87
|
+
// @ts-expect-error
|
|
88
|
+
return globalThis.__wix_context__
|
|
89
|
+
.initWixModules(publicConfirmOrDeclineBooking)
|
|
90
|
+
.apply(undefined, args);
|
|
91
|
+
};
|
|
92
|
+
export const bulkConfirmOrDeclineBooking = (...args) => {
|
|
93
|
+
// @ts-expect-error
|
|
94
|
+
if (!globalThis.__wix_context__) {
|
|
95
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
96
|
+
}
|
|
97
|
+
// @ts-expect-error
|
|
98
|
+
return globalThis.__wix_context__
|
|
99
|
+
.initWixModules(publicBulkConfirmOrDeclineBooking)
|
|
100
|
+
.apply(undefined, args);
|
|
101
|
+
};
|
|
102
|
+
//# sourceMappingURL=bookings-v2-booking.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-v2-booking.context.js","sourceRoot":"","sources":["../../../src/bookings-v2-booking.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,IAAI,mBAAmB,EACpC,iBAAiB,IAAI,uBAAuB,EAC5C,iBAAiB,IAAI,uBAAuB,EAC5C,cAAc,IAAI,oBAAoB,EACtC,oBAAoB,IAAI,0BAA0B,EAClD,cAAc,IAAI,oBAAoB,EACtC,aAAa,IAAI,mBAAmB,EACpC,0BAA0B,IAAI,gCAAgC,EAC9D,uBAAuB,IAAI,6BAA6B,EACxD,2BAA2B,IAAI,iCAAiC,GACjE,MAAM,8BAA8B,CAAC;AAGtC,MAAM,CAAC,MAAM,aAAa,GAAkD,CAC1E,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,mBAAmB,CAAC;SACnC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAA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AAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,6BAA6B,CAAC;SAC7C,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,2BAA2B,GAEpC,CAAC,GAAG,IAAS,EAAE,EAAE;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,iCAAiC,CAAC;SACjD,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { previewPrice as publicPreviewPrice, calculatePrice as publicCalculatePrice } from './bookings-v2-price-info.public';
|
|
2
|
+
import { BuildRESTFunction } from '@wix/sdk-types';
|
|
3
|
+
export declare const previewPrice: BuildRESTFunction<typeof publicPreviewPrice>;
|
|
4
|
+
export declare const calculatePrice: BuildRESTFunction<typeof publicCalculatePrice>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { previewPrice as publicPreviewPrice, calculatePrice as publicCalculatePrice, } from './bookings-v2-price-info.public';
|
|
2
|
+
export const previewPrice = (...args) => {
|
|
3
|
+
// @ts-expect-error
|
|
4
|
+
if (!globalThis.__wix_context__) {
|
|
5
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
6
|
+
}
|
|
7
|
+
// @ts-expect-error
|
|
8
|
+
return globalThis.__wix_context__
|
|
9
|
+
.initWixModules(publicPreviewPrice)
|
|
10
|
+
.apply(undefined, args);
|
|
11
|
+
};
|
|
12
|
+
export const calculatePrice = (...args) => {
|
|
13
|
+
// @ts-expect-error
|
|
14
|
+
if (!globalThis.__wix_context__) {
|
|
15
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
16
|
+
}
|
|
17
|
+
// @ts-expect-error
|
|
18
|
+
return globalThis.__wix_context__
|
|
19
|
+
.initWixModules(publicCalculatePrice)
|
|
20
|
+
.apply(undefined, args);
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=bookings-v2-price-info.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-v2-price-info.context.js","sourceRoot":"","sources":["../../../src/bookings-v2-price-info.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,IAAI,kBAAkB,EAClC,cAAc,IAAI,oBAAoB,GACvC,MAAM,iCAAiC,CAAC;AAGzC,MAAM,CAAC,MAAM,YAAY,GAAiD,CACxE,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,kBAAkB,CAAC;SAClC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,cAAc,GAAmD,CAC5E,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,oBAAoB,CAAC;SACpC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/bookings",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.326",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"files": [
|
|
13
13
|
"build",
|
|
14
14
|
"frontend/package.json",
|
|
15
|
-
"meta"
|
|
15
|
+
"meta",
|
|
16
|
+
"context"
|
|
16
17
|
],
|
|
17
18
|
"dependencies": {
|
|
18
19
|
"@wix/metro-runtime": "^1.1528.0",
|
|
@@ -21,7 +22,8 @@
|
|
|
21
22
|
"@wix/motion-edm-autogen-query-wrapper": "^1.0.37"
|
|
22
23
|
},
|
|
23
24
|
"devDependencies": {
|
|
24
|
-
"typescript": "^5.3.2"
|
|
25
|
+
"typescript": "^5.3.2",
|
|
26
|
+
"@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz"
|
|
25
27
|
},
|
|
26
28
|
"scripts": {
|
|
27
29
|
"build": "tsc -b tsconfig.json tsconfig.esm.json",
|
|
@@ -33,5 +35,5 @@
|
|
|
33
35
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
34
36
|
}
|
|
35
37
|
},
|
|
36
|
-
"falconPackageHash": "
|
|
38
|
+
"falconPackageHash": "6d10f7347cb75e1dce5ba89f8cea53aba151c11bba11ceac2b951199"
|
|
37
39
|
}
|