@wix/bookings 1.0.325 → 1.0.327
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 +14 -0
- package/build/cjs/context.js +41 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +3 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +3 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -2
- package/build/cjs/meta.js +3 -3
- package/build/cjs/meta.js.map +1 -1
- 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-resource.context.d.ts +6 -0
- package/build/cjs/src/bookings-catalog-v1-resource.context.js +49 -0
- package/build/cjs/src/bookings-catalog-v1-resource.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-v1-category.context.d.ts +6 -0
- package/build/cjs/src/bookings-v1-category.context.js +49 -0
- package/build/cjs/src/bookings-v1-category.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 +14 -0
- package/build/es/context.js +15 -0
- package/build/es/context.js.map +1 -0
- package/build/es/index.d.ts +2 -2
- package/build/es/index.js +2 -2
- package/build/es/index.js.map +1 -1
- package/build/es/index.typings.d.ts +2 -2
- package/build/es/index.typings.js +2 -2
- package/build/es/index.typings.js.map +1 -1
- package/build/es/meta.d.ts +2 -2
- package/build/es/meta.js +2 -2
- package/build/es/meta.js.map +1 -1
- 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-resource.context.d.ts +6 -0
- package/build/es/src/bookings-catalog-v1-resource.context.js +42 -0
- package/build/es/src/bookings-catalog-v1-resource.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-v1-category.context.d.ts +6 -0
- package/build/es/src/bookings-v1-category.context.js +42 -0
- package/build/es/src/bookings-v1-category.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,42 @@
|
|
|
1
|
+
import { listCategories as publicListCategories, createCategory as publicCreateCategory, updateCategory as publicUpdateCategory, deleteCategory as publicDeleteCategory, } from './bookings-v1-category.public';
|
|
2
|
+
export const listCategories = (...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(publicListCategories)
|
|
10
|
+
.apply(undefined, args);
|
|
11
|
+
};
|
|
12
|
+
export const createCategory = (...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(publicCreateCategory)
|
|
20
|
+
.apply(undefined, args);
|
|
21
|
+
};
|
|
22
|
+
export const updateCategory = (...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(publicUpdateCategory)
|
|
30
|
+
.apply(undefined, args);
|
|
31
|
+
};
|
|
32
|
+
export const deleteCategory = (...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(publicDeleteCategory)
|
|
40
|
+
.apply(undefined, args);
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=bookings-v1-category.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-v1-category.context.js","sourceRoot":"","sources":["../../../src/bookings-v1-category.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,cAAc,IAAI,oBAAoB,EACtC,cAAc,IAAI,oBAAoB,EACtC,cAAc,IAAI,oBAAoB,GACvC,MAAM,+BAA+B,CAAC;AAGvC,MAAM,CAAC,MAAM,cAAc,GAAmD,CAC5E,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,C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}
|
|
@@ -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,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,mBAAmB,CAAC;SACnC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,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,CAAC,MAAM,iBAAiB,GAE1B,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,uBAAuB,CAAC;SACvC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,eAAe,GAExB,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,qBAAqB,CAAC;SACrC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
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,CAAC,MAAM,iBAAiB,GAE1B,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,uBAAuB,CAA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AC,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.327",
|
|
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": "210ff706942e323a1b2b861daff5a04198c255b9446323065b7d2506"
|
|
37
39
|
}
|