@wix/table-reservations 1.0.75 → 1.0.76
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/src/table-reservations-v1-reservation-location.context.js +32 -12
- package/build/cjs/src/table-reservations-v1-reservation-location.context.js.map +1 -1
- package/build/cjs/src/table-reservations-v1-reservation.context.js +72 -32
- package/build/cjs/src/table-reservations-v1-reservation.context.js.map +1 -1
- package/build/cjs/src/table-reservations-v1-time-slot.context.js +8 -3
- package/build/cjs/src/table-reservations-v1-time-slot.context.js.map +1 -1
- package/build/es/src/table-reservations-v1-reservation-location.context.js +32 -12
- package/build/es/src/table-reservations-v1-reservation-location.context.js.map +1 -1
- package/build/es/src/table-reservations-v1-reservation.context.js +72 -32
- package/build/es/src/table-reservations-v1-reservation.context.js.map +1 -1
- package/build/es/src/table-reservations-v1-time-slot.context.js +8 -3
- package/build/es/src/table-reservations-v1-time-slot.context.js.map +1 -1
- package/package.json +2 -2
|
@@ -4,48 +4,68 @@ exports.listReservationLocations = exports.queryReservationLocations = exports.u
|
|
|
4
4
|
const table_reservations_v1_reservation_location_public_1 = require("./table-reservations-v1-reservation-location.public");
|
|
5
5
|
const getReservationLocation = (...args) => {
|
|
6
6
|
var _a;
|
|
7
|
+
const context =
|
|
7
8
|
// @ts-expect-error
|
|
8
|
-
|
|
9
|
+
typeof $wixContext !== 'undefined'
|
|
10
|
+
? // @ts-expect-error
|
|
11
|
+
$wixContext
|
|
12
|
+
: // @ts-expect-error
|
|
13
|
+
globalThis.__wix_context__;
|
|
14
|
+
if (!context) {
|
|
9
15
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
10
16
|
}
|
|
11
|
-
|
|
12
|
-
return globalThis.__wix_context__
|
|
17
|
+
return context
|
|
13
18
|
.initWixModules(table_reservations_v1_reservation_location_public_1.getReservationLocation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
14
19
|
.apply(undefined, args);
|
|
15
20
|
};
|
|
16
21
|
exports.getReservationLocation = getReservationLocation;
|
|
17
22
|
const updateReservationLocation = (...args) => {
|
|
18
23
|
var _a;
|
|
24
|
+
const context =
|
|
19
25
|
// @ts-expect-error
|
|
20
|
-
|
|
26
|
+
typeof $wixContext !== 'undefined'
|
|
27
|
+
? // @ts-expect-error
|
|
28
|
+
$wixContext
|
|
29
|
+
: // @ts-expect-error
|
|
30
|
+
globalThis.__wix_context__;
|
|
31
|
+
if (!context) {
|
|
21
32
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
22
33
|
}
|
|
23
|
-
|
|
24
|
-
return globalThis.__wix_context__
|
|
34
|
+
return context
|
|
25
35
|
.initWixModules(table_reservations_v1_reservation_location_public_1.updateReservationLocation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
26
36
|
.apply(undefined, args);
|
|
27
37
|
};
|
|
28
38
|
exports.updateReservationLocation = updateReservationLocation;
|
|
29
39
|
const queryReservationLocations = (...args) => {
|
|
30
40
|
var _a;
|
|
41
|
+
const context =
|
|
31
42
|
// @ts-expect-error
|
|
32
|
-
|
|
43
|
+
typeof $wixContext !== 'undefined'
|
|
44
|
+
? // @ts-expect-error
|
|
45
|
+
$wixContext
|
|
46
|
+
: // @ts-expect-error
|
|
47
|
+
globalThis.__wix_context__;
|
|
48
|
+
if (!context) {
|
|
33
49
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
34
50
|
}
|
|
35
|
-
|
|
36
|
-
return globalThis.__wix_context__
|
|
51
|
+
return context
|
|
37
52
|
.initWixModules(table_reservations_v1_reservation_location_public_1.queryReservationLocations, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
38
53
|
.apply(undefined, args);
|
|
39
54
|
};
|
|
40
55
|
exports.queryReservationLocations = queryReservationLocations;
|
|
41
56
|
const listReservationLocations = (...args) => {
|
|
42
57
|
var _a;
|
|
58
|
+
const context =
|
|
43
59
|
// @ts-expect-error
|
|
44
|
-
|
|
60
|
+
typeof $wixContext !== 'undefined'
|
|
61
|
+
? // @ts-expect-error
|
|
62
|
+
$wixContext
|
|
63
|
+
: // @ts-expect-error
|
|
64
|
+
globalThis.__wix_context__;
|
|
65
|
+
if (!context) {
|
|
45
66
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
46
67
|
}
|
|
47
|
-
|
|
48
|
-
return globalThis.__wix_context__
|
|
68
|
+
return context
|
|
49
69
|
.initWixModules(table_reservations_v1_reservation_location_public_1.listReservationLocations, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
50
70
|
.apply(undefined, args);
|
|
51
71
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-reservations-v1-reservation-location.context.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation-location.context.ts"],"names":[],"mappings":";;;AAAA,2HAK6D;AAGtD,MAAM,sBAAsB,GAE/B,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,mBAAmB;IACnB,
|
|
1
|
+
{"version":3,"file":"table-reservations-v1-reservation-location.context.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation-location.context.ts"],"names":[],"mappings":";;;AAAA,2HAK6D;AAGtD,MAAM,sBAAsB,GAE/B,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CACb,0EAA4B,EAC5B,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAA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C,CAAC;AArBW,QAAA,yBAAyB,6BAqBpC;AACK,MAAM,wBAAwB,GAEjC,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CACb,4EAA8B,EAC9B,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AArBW,QAAA,wBAAwB,4BAqBnC"}
|
|
@@ -4,96 +4,136 @@ exports.queryReservations = exports.listReservations = exports.cancelReservation
|
|
|
4
4
|
const table_reservations_v1_reservation_public_1 = require("./table-reservations-v1-reservation.public");
|
|
5
5
|
const createReservation = (...args) => {
|
|
6
6
|
var _a;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const context =
|
|
8
|
+
// @ts-expect-error
|
|
9
|
+
typeof $wixContext !== 'undefined'
|
|
10
|
+
? // @ts-expect-error
|
|
11
|
+
$wixContext
|
|
12
|
+
: // @ts-expect-error
|
|
13
|
+
globalThis.__wix_context__;
|
|
14
|
+
if (!context) {
|
|
9
15
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
10
16
|
}
|
|
11
|
-
|
|
12
|
-
return globalThis.__wix_context__
|
|
17
|
+
return context
|
|
13
18
|
.initWixModules(table_reservations_v1_reservation_public_1.createReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
14
19
|
.apply(undefined, args);
|
|
15
20
|
};
|
|
16
21
|
exports.createReservation = createReservation;
|
|
17
22
|
const getReservation = (...args) => {
|
|
18
23
|
var _a;
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
const context =
|
|
25
|
+
// @ts-expect-error
|
|
26
|
+
typeof $wixContext !== 'undefined'
|
|
27
|
+
? // @ts-expect-error
|
|
28
|
+
$wixContext
|
|
29
|
+
: // @ts-expect-error
|
|
30
|
+
globalThis.__wix_context__;
|
|
31
|
+
if (!context) {
|
|
21
32
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
22
33
|
}
|
|
23
|
-
|
|
24
|
-
return globalThis.__wix_context__
|
|
34
|
+
return context
|
|
25
35
|
.initWixModules(table_reservations_v1_reservation_public_1.getReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
26
36
|
.apply(undefined, args);
|
|
27
37
|
};
|
|
28
38
|
exports.getReservation = getReservation;
|
|
29
39
|
const updateReservation = (...args) => {
|
|
30
40
|
var _a;
|
|
31
|
-
|
|
32
|
-
|
|
41
|
+
const context =
|
|
42
|
+
// @ts-expect-error
|
|
43
|
+
typeof $wixContext !== 'undefined'
|
|
44
|
+
? // @ts-expect-error
|
|
45
|
+
$wixContext
|
|
46
|
+
: // @ts-expect-error
|
|
47
|
+
globalThis.__wix_context__;
|
|
48
|
+
if (!context) {
|
|
33
49
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
34
50
|
}
|
|
35
|
-
|
|
36
|
-
return globalThis.__wix_context__
|
|
51
|
+
return context
|
|
37
52
|
.initWixModules(table_reservations_v1_reservation_public_1.updateReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
38
53
|
.apply(undefined, args);
|
|
39
54
|
};
|
|
40
55
|
exports.updateReservation = updateReservation;
|
|
41
56
|
const createHeldReservation = (...args) => {
|
|
42
57
|
var _a;
|
|
43
|
-
|
|
44
|
-
|
|
58
|
+
const context =
|
|
59
|
+
// @ts-expect-error
|
|
60
|
+
typeof $wixContext !== 'undefined'
|
|
61
|
+
? // @ts-expect-error
|
|
62
|
+
$wixContext
|
|
63
|
+
: // @ts-expect-error
|
|
64
|
+
globalThis.__wix_context__;
|
|
65
|
+
if (!context) {
|
|
45
66
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
46
67
|
}
|
|
47
|
-
|
|
48
|
-
return globalThis.__wix_context__
|
|
68
|
+
return context
|
|
49
69
|
.initWixModules(table_reservations_v1_reservation_public_1.createHeldReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
50
70
|
.apply(undefined, args);
|
|
51
71
|
};
|
|
52
72
|
exports.createHeldReservation = createHeldReservation;
|
|
53
73
|
const reserveReservation = (...args) => {
|
|
54
74
|
var _a;
|
|
55
|
-
|
|
56
|
-
|
|
75
|
+
const context =
|
|
76
|
+
// @ts-expect-error
|
|
77
|
+
typeof $wixContext !== 'undefined'
|
|
78
|
+
? // @ts-expect-error
|
|
79
|
+
$wixContext
|
|
80
|
+
: // @ts-expect-error
|
|
81
|
+
globalThis.__wix_context__;
|
|
82
|
+
if (!context) {
|
|
57
83
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
58
84
|
}
|
|
59
|
-
|
|
60
|
-
return globalThis.__wix_context__
|
|
85
|
+
return context
|
|
61
86
|
.initWixModules(table_reservations_v1_reservation_public_1.reserveReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
62
87
|
.apply(undefined, args);
|
|
63
88
|
};
|
|
64
89
|
exports.reserveReservation = reserveReservation;
|
|
65
90
|
const cancelReservation = (...args) => {
|
|
66
91
|
var _a;
|
|
67
|
-
|
|
68
|
-
|
|
92
|
+
const context =
|
|
93
|
+
// @ts-expect-error
|
|
94
|
+
typeof $wixContext !== 'undefined'
|
|
95
|
+
? // @ts-expect-error
|
|
96
|
+
$wixContext
|
|
97
|
+
: // @ts-expect-error
|
|
98
|
+
globalThis.__wix_context__;
|
|
99
|
+
if (!context) {
|
|
69
100
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
70
101
|
}
|
|
71
|
-
|
|
72
|
-
return globalThis.__wix_context__
|
|
102
|
+
return context
|
|
73
103
|
.initWixModules(table_reservations_v1_reservation_public_1.cancelReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
74
104
|
.apply(undefined, args);
|
|
75
105
|
};
|
|
76
106
|
exports.cancelReservation = cancelReservation;
|
|
77
107
|
const listReservations = (...args) => {
|
|
78
108
|
var _a;
|
|
79
|
-
|
|
80
|
-
|
|
109
|
+
const context =
|
|
110
|
+
// @ts-expect-error
|
|
111
|
+
typeof $wixContext !== 'undefined'
|
|
112
|
+
? // @ts-expect-error
|
|
113
|
+
$wixContext
|
|
114
|
+
: // @ts-expect-error
|
|
115
|
+
globalThis.__wix_context__;
|
|
116
|
+
if (!context) {
|
|
81
117
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
82
118
|
}
|
|
83
|
-
|
|
84
|
-
return globalThis.__wix_context__
|
|
119
|
+
return context
|
|
85
120
|
.initWixModules(table_reservations_v1_reservation_public_1.listReservations, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
86
121
|
.apply(undefined, args);
|
|
87
122
|
};
|
|
88
123
|
exports.listReservations = listReservations;
|
|
89
124
|
const queryReservations = (...args) => {
|
|
90
125
|
var _a;
|
|
91
|
-
|
|
92
|
-
|
|
126
|
+
const context =
|
|
127
|
+
// @ts-expect-error
|
|
128
|
+
typeof $wixContext !== 'undefined'
|
|
129
|
+
? // @ts-expect-error
|
|
130
|
+
$wixContext
|
|
131
|
+
: // @ts-expect-error
|
|
132
|
+
globalThis.__wix_context__;
|
|
133
|
+
if (!context) {
|
|
93
134
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
94
135
|
}
|
|
95
|
-
|
|
96
|
-
return globalThis.__wix_context__
|
|
136
|
+
return context
|
|
97
137
|
.initWixModules(table_reservations_v1_reservation_public_1.queryReservations, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
98
138
|
.apply(undefined, args);
|
|
99
139
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-reservations-v1-reservation.context.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation.context.ts"],"names":[],"mappings":";;;AAAA,yGASoD;AAG7C,MAAM,iBAAiB,GAE1B,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,mBAAmB;IACnB,
|
|
1
|
+
{"version":3,"file":"table-reservations-v1-reservation.context.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation.context.ts"],"names":[],"mappings":";;;AAAA,yGASoD;AAG7C,MAAM,iBAAiB,GAE1B,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CACb,4DAAuB,EACvB,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AArBW,QAAA,iBAAiB,qBAqB5B;AACK,MAAM,cAAc,GAAmD,CAC5E,GAAG,IAAS,EACZ,EAAE;;IACF,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAA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KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AArBW,QAAA,iBAAiB,qBAqB5B"}
|
|
@@ -4,12 +4,17 @@ exports.getTimeSlots = void 0;
|
|
|
4
4
|
const table_reservations_v1_time_slot_public_1 = require("./table-reservations-v1-time-slot.public");
|
|
5
5
|
const getTimeSlots = (...args) => {
|
|
6
6
|
var _a;
|
|
7
|
+
const context =
|
|
7
8
|
// @ts-expect-error
|
|
8
|
-
|
|
9
|
+
typeof $wixContext !== 'undefined'
|
|
10
|
+
? // @ts-expect-error
|
|
11
|
+
$wixContext
|
|
12
|
+
: // @ts-expect-error
|
|
13
|
+
globalThis.__wix_context__;
|
|
14
|
+
if (!context) {
|
|
9
15
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
10
16
|
}
|
|
11
|
-
|
|
12
|
-
return globalThis.__wix_context__
|
|
17
|
+
return context
|
|
13
18
|
.initWixModules(table_reservations_v1_time_slot_public_1.getTimeSlots, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
14
19
|
.apply(undefined, args);
|
|
15
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-reservations-v1-time-slot.context.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-time-slot.context.ts"],"names":[],"mappings":";;;AAAA,qGAA8F;AAGvF,MAAM,YAAY,GAAiD,CACxE,GAAG,IAAS,EACZ,EAAE;;IACF,mBAAmB;IACnB,
|
|
1
|
+
{"version":3,"file":"table-reservations-v1-time-slot.context.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-time-slot.context.ts"],"names":[],"mappings":";;;AAAA,qGAA8F;AAGvF,MAAM,YAAY,GAAiD,CACxE,GAAG,IAAS,EACZ,EAAE;;IACF,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CAAC,qDAAkB,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SACvE,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAlBW,QAAA,YAAY,gBAkBvB"}
|
|
@@ -1,45 +1,65 @@
|
|
|
1
1
|
import { getReservationLocation as publicGetReservationLocation, updateReservationLocation as publicUpdateReservationLocation, queryReservationLocations as publicQueryReservationLocations, listReservationLocations as publicListReservationLocations, } from './table-reservations-v1-reservation-location.public';
|
|
2
2
|
export const getReservationLocation = (...args) => {
|
|
3
3
|
var _a;
|
|
4
|
+
const context =
|
|
4
5
|
// @ts-expect-error
|
|
5
|
-
|
|
6
|
+
typeof $wixContext !== 'undefined'
|
|
7
|
+
? // @ts-expect-error
|
|
8
|
+
$wixContext
|
|
9
|
+
: // @ts-expect-error
|
|
10
|
+
globalThis.__wix_context__;
|
|
11
|
+
if (!context) {
|
|
6
12
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
7
13
|
}
|
|
8
|
-
|
|
9
|
-
return globalThis.__wix_context__
|
|
14
|
+
return context
|
|
10
15
|
.initWixModules(publicGetReservationLocation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
11
16
|
.apply(undefined, args);
|
|
12
17
|
};
|
|
13
18
|
export const updateReservationLocation = (...args) => {
|
|
14
19
|
var _a;
|
|
20
|
+
const context =
|
|
15
21
|
// @ts-expect-error
|
|
16
|
-
|
|
22
|
+
typeof $wixContext !== 'undefined'
|
|
23
|
+
? // @ts-expect-error
|
|
24
|
+
$wixContext
|
|
25
|
+
: // @ts-expect-error
|
|
26
|
+
globalThis.__wix_context__;
|
|
27
|
+
if (!context) {
|
|
17
28
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
18
29
|
}
|
|
19
|
-
|
|
20
|
-
return globalThis.__wix_context__
|
|
30
|
+
return context
|
|
21
31
|
.initWixModules(publicUpdateReservationLocation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
22
32
|
.apply(undefined, args);
|
|
23
33
|
};
|
|
24
34
|
export const queryReservationLocations = (...args) => {
|
|
25
35
|
var _a;
|
|
36
|
+
const context =
|
|
26
37
|
// @ts-expect-error
|
|
27
|
-
|
|
38
|
+
typeof $wixContext !== 'undefined'
|
|
39
|
+
? // @ts-expect-error
|
|
40
|
+
$wixContext
|
|
41
|
+
: // @ts-expect-error
|
|
42
|
+
globalThis.__wix_context__;
|
|
43
|
+
if (!context) {
|
|
28
44
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
29
45
|
}
|
|
30
|
-
|
|
31
|
-
return globalThis.__wix_context__
|
|
46
|
+
return context
|
|
32
47
|
.initWixModules(publicQueryReservationLocations, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
33
48
|
.apply(undefined, args);
|
|
34
49
|
};
|
|
35
50
|
export const listReservationLocations = (...args) => {
|
|
36
51
|
var _a;
|
|
52
|
+
const context =
|
|
37
53
|
// @ts-expect-error
|
|
38
|
-
|
|
54
|
+
typeof $wixContext !== 'undefined'
|
|
55
|
+
? // @ts-expect-error
|
|
56
|
+
$wixContext
|
|
57
|
+
: // @ts-expect-error
|
|
58
|
+
globalThis.__wix_context__;
|
|
59
|
+
if (!context) {
|
|
39
60
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
40
61
|
}
|
|
41
|
-
|
|
42
|
-
return globalThis.__wix_context__
|
|
62
|
+
return context
|
|
43
63
|
.initWixModules(publicListReservationLocations, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
44
64
|
.apply(undefined, args);
|
|
45
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-reservations-v1-reservation-location.context.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation-location.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,IAAI,4BAA4B,EACtD,yBAAyB,IAAI,+BAA+B,EAC5D,yBAAyB,IAAI,+BAA+B,EAC5D,wBAAwB,IAAI,8BAA8B,GAC3D,MAAM,qDAAqD,CAAC;AAG7D,MAAM,CAAC,MAAM,sBAAsB,GAE/B,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,mBAAmB;IACnB,
|
|
1
|
+
{"version":3,"file":"table-reservations-v1-reservation-location.context.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation-location.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,IAAI,4BAA4B,EACtD,yBAAyB,IAAI,+BAA+B,EAC5D,yBAAyB,IAAI,+BAA+B,EAC5D,wBAAwB,IAAI,8BAA8B,GAC3D,MAAM,qDAAqD,CAAC;AAG7D,MAAM,CAAC,MAAM,sBAAsB,GAE/B,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CACb,4BAA4B,EAC5B,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,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AAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CACb,8BAA8B,EAC9B,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -1,89 +1,129 @@
|
|
|
1
1
|
import { createReservation as publicCreateReservation, getReservation as publicGetReservation, updateReservation as publicUpdateReservation, createHeldReservation as publicCreateHeldReservation, reserveReservation as publicReserveReservation, cancelReservation as publicCancelReservation, listReservations as publicListReservations, queryReservations as publicQueryReservations, } from './table-reservations-v1-reservation.public';
|
|
2
2
|
export const createReservation = (...args) => {
|
|
3
3
|
var _a;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
const context =
|
|
5
|
+
// @ts-expect-error
|
|
6
|
+
typeof $wixContext !== 'undefined'
|
|
7
|
+
? // @ts-expect-error
|
|
8
|
+
$wixContext
|
|
9
|
+
: // @ts-expect-error
|
|
10
|
+
globalThis.__wix_context__;
|
|
11
|
+
if (!context) {
|
|
6
12
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
7
13
|
}
|
|
8
|
-
|
|
9
|
-
return globalThis.__wix_context__
|
|
14
|
+
return context
|
|
10
15
|
.initWixModules(publicCreateReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
11
16
|
.apply(undefined, args);
|
|
12
17
|
};
|
|
13
18
|
export const getReservation = (...args) => {
|
|
14
19
|
var _a;
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
const context =
|
|
21
|
+
// @ts-expect-error
|
|
22
|
+
typeof $wixContext !== 'undefined'
|
|
23
|
+
? // @ts-expect-error
|
|
24
|
+
$wixContext
|
|
25
|
+
: // @ts-expect-error
|
|
26
|
+
globalThis.__wix_context__;
|
|
27
|
+
if (!context) {
|
|
17
28
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
18
29
|
}
|
|
19
|
-
|
|
20
|
-
return globalThis.__wix_context__
|
|
30
|
+
return context
|
|
21
31
|
.initWixModules(publicGetReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
22
32
|
.apply(undefined, args);
|
|
23
33
|
};
|
|
24
34
|
export const updateReservation = (...args) => {
|
|
25
35
|
var _a;
|
|
26
|
-
|
|
27
|
-
|
|
36
|
+
const context =
|
|
37
|
+
// @ts-expect-error
|
|
38
|
+
typeof $wixContext !== 'undefined'
|
|
39
|
+
? // @ts-expect-error
|
|
40
|
+
$wixContext
|
|
41
|
+
: // @ts-expect-error
|
|
42
|
+
globalThis.__wix_context__;
|
|
43
|
+
if (!context) {
|
|
28
44
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
29
45
|
}
|
|
30
|
-
|
|
31
|
-
return globalThis.__wix_context__
|
|
46
|
+
return context
|
|
32
47
|
.initWixModules(publicUpdateReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
33
48
|
.apply(undefined, args);
|
|
34
49
|
};
|
|
35
50
|
export const createHeldReservation = (...args) => {
|
|
36
51
|
var _a;
|
|
37
|
-
|
|
38
|
-
|
|
52
|
+
const context =
|
|
53
|
+
// @ts-expect-error
|
|
54
|
+
typeof $wixContext !== 'undefined'
|
|
55
|
+
? // @ts-expect-error
|
|
56
|
+
$wixContext
|
|
57
|
+
: // @ts-expect-error
|
|
58
|
+
globalThis.__wix_context__;
|
|
59
|
+
if (!context) {
|
|
39
60
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
40
61
|
}
|
|
41
|
-
|
|
42
|
-
return globalThis.__wix_context__
|
|
62
|
+
return context
|
|
43
63
|
.initWixModules(publicCreateHeldReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
44
64
|
.apply(undefined, args);
|
|
45
65
|
};
|
|
46
66
|
export const reserveReservation = (...args) => {
|
|
47
67
|
var _a;
|
|
48
|
-
|
|
49
|
-
|
|
68
|
+
const context =
|
|
69
|
+
// @ts-expect-error
|
|
70
|
+
typeof $wixContext !== 'undefined'
|
|
71
|
+
? // @ts-expect-error
|
|
72
|
+
$wixContext
|
|
73
|
+
: // @ts-expect-error
|
|
74
|
+
globalThis.__wix_context__;
|
|
75
|
+
if (!context) {
|
|
50
76
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
51
77
|
}
|
|
52
|
-
|
|
53
|
-
return globalThis.__wix_context__
|
|
78
|
+
return context
|
|
54
79
|
.initWixModules(publicReserveReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
55
80
|
.apply(undefined, args);
|
|
56
81
|
};
|
|
57
82
|
export const cancelReservation = (...args) => {
|
|
58
83
|
var _a;
|
|
59
|
-
|
|
60
|
-
|
|
84
|
+
const context =
|
|
85
|
+
// @ts-expect-error
|
|
86
|
+
typeof $wixContext !== 'undefined'
|
|
87
|
+
? // @ts-expect-error
|
|
88
|
+
$wixContext
|
|
89
|
+
: // @ts-expect-error
|
|
90
|
+
globalThis.__wix_context__;
|
|
91
|
+
if (!context) {
|
|
61
92
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
62
93
|
}
|
|
63
|
-
|
|
64
|
-
return globalThis.__wix_context__
|
|
94
|
+
return context
|
|
65
95
|
.initWixModules(publicCancelReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
66
96
|
.apply(undefined, args);
|
|
67
97
|
};
|
|
68
98
|
export const listReservations = (...args) => {
|
|
69
99
|
var _a;
|
|
70
|
-
|
|
71
|
-
|
|
100
|
+
const context =
|
|
101
|
+
// @ts-expect-error
|
|
102
|
+
typeof $wixContext !== 'undefined'
|
|
103
|
+
? // @ts-expect-error
|
|
104
|
+
$wixContext
|
|
105
|
+
: // @ts-expect-error
|
|
106
|
+
globalThis.__wix_context__;
|
|
107
|
+
if (!context) {
|
|
72
108
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
73
109
|
}
|
|
74
|
-
|
|
75
|
-
return globalThis.__wix_context__
|
|
110
|
+
return context
|
|
76
111
|
.initWixModules(publicListReservations, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
77
112
|
.apply(undefined, args);
|
|
78
113
|
};
|
|
79
114
|
export const queryReservations = (...args) => {
|
|
80
115
|
var _a;
|
|
81
|
-
|
|
82
|
-
|
|
116
|
+
const context =
|
|
117
|
+
// @ts-expect-error
|
|
118
|
+
typeof $wixContext !== 'undefined'
|
|
119
|
+
? // @ts-expect-error
|
|
120
|
+
$wixContext
|
|
121
|
+
: // @ts-expect-error
|
|
122
|
+
globalThis.__wix_context__;
|
|
123
|
+
if (!context) {
|
|
83
124
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
84
125
|
}
|
|
85
|
-
|
|
86
|
-
return globalThis.__wix_context__
|
|
126
|
+
return context
|
|
87
127
|
.initWixModules(publicQueryReservations, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
88
128
|
.apply(undefined, args);
|
|
89
129
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-reservations-v1-reservation.context.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,IAAI,uBAAuB,EAC5C,cAAc,IAAI,oBAAoB,EACtC,iBAAiB,IAAI,uBAAuB,EAC5C,qBAAqB,IAAI,2BAA2B,EACpD,kBAAkB,IAAI,wBAAwB,EAC9C,iBAAiB,IAAI,uBAAuB,EAC5C,gBAAgB,IAAI,sBAAsB,EAC1C,iBAAiB,IAAI,uBAAuB,GAC7C,MAAM,4CAA4C,CAAC;AAGpD,MAAM,CAAC,MAAM,iBAAiB,GAE1B,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,mBAAmB;IACnB,
|
|
1
|
+
{"version":3,"file":"table-reservations-v1-reservation.context.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,IAAI,uBAAuB,EAC5C,cAAc,IAAI,oBAAoB,EACtC,iBAAiB,IAAI,uBAAuB,EAC5C,qBAAqB,IAAI,2BAA2B,EACpD,kBAAkB,IAAI,wBAAwB,EAC9C,iBAAiB,IAAI,uBAAuB,EAC5C,gBAAgB,IAAI,sBAAsB,EAC1C,iBAAiB,IAAI,uBAAuB,GAC7C,MAAM,4CAA4C,CAAC;AAGpD,MAAM,CAAC,MAAM,iBAAiB,GAE1B,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CACb,uBAAuB,EACvB,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF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pC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { getTimeSlots as publicGetTimeSlots } from './table-reservations-v1-time-slot.public';
|
|
2
2
|
export const getTimeSlots = (...args) => {
|
|
3
3
|
var _a;
|
|
4
|
+
const context =
|
|
4
5
|
// @ts-expect-error
|
|
5
|
-
|
|
6
|
+
typeof $wixContext !== 'undefined'
|
|
7
|
+
? // @ts-expect-error
|
|
8
|
+
$wixContext
|
|
9
|
+
: // @ts-expect-error
|
|
10
|
+
globalThis.__wix_context__;
|
|
11
|
+
if (!context) {
|
|
6
12
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
7
13
|
}
|
|
8
|
-
|
|
9
|
-
return globalThis.__wix_context__
|
|
14
|
+
return context
|
|
10
15
|
.initWixModules(publicGetTimeSlots, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
11
16
|
.apply(undefined, args);
|
|
12
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-reservations-v1-time-slot.context.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-time-slot.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAG9F,MAAM,CAAC,MAAM,YAAY,GAAiD,CACxE,GAAG,IAAS,EACZ,EAAE;;IACF,mBAAmB;IACnB,
|
|
1
|
+
{"version":3,"file":"table-reservations-v1-time-slot.context.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-time-slot.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAG9F,MAAM,CAAC,MAAM,YAAY,GAAiD,CACxE,GAAG,IAAS,EACZ,EAAE;;IACF,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CAAC,kBAAkB,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SACvE,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/table-reservations",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.76",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
-
"falconPackageHash": "
|
|
38
|
+
"falconPackageHash": "7ef0c300e102658106a0ed00a6658a988e7c2b198e71899c9fa918b3"
|
|
39
39
|
}
|