@wix/table-reservations 1.0.77 → 1.0.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/build/cjs/context.d.ts +3 -3
  2. package/build/cjs/context.js +3 -3
  3. package/build/cjs/context.js.map +1 -1
  4. package/build/cjs/index.d.ts +3 -3
  5. package/build/cjs/index.js +3 -3
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/meta.d.ts +3 -3
  8. package/build/cjs/meta.js +3 -3
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/context.d.ts +3 -3
  11. package/build/es/context.js +3 -3
  12. package/build/es/context.js.map +1 -1
  13. package/build/es/index.d.ts +3 -3
  14. package/build/es/index.js +3 -3
  15. package/build/es/index.js.map +1 -1
  16. package/build/es/meta.d.ts +3 -3
  17. package/build/es/meta.js +3 -3
  18. package/build/es/meta.js.map +1 -1
  19. package/package.json +13 -9
  20. package/build/cjs/index.typings.d.ts +0 -3
  21. package/build/cjs/index.typings.js +0 -30
  22. package/build/cjs/index.typings.js.map +0 -1
  23. package/build/cjs/src/table-reservations-v1-reservation-location.context.d.ts +0 -6
  24. package/build/cjs/src/table-reservations-v1-reservation-location.context.js +0 -73
  25. package/build/cjs/src/table-reservations-v1-reservation-location.context.js.map +0 -1
  26. package/build/cjs/src/table-reservations-v1-reservation-location.http.d.ts +0 -40
  27. package/build/cjs/src/table-reservations-v1-reservation-location.http.js +0 -266
  28. package/build/cjs/src/table-reservations-v1-reservation-location.http.js.map +0 -1
  29. package/build/cjs/src/table-reservations-v1-reservation-location.meta.d.ts +0 -20
  30. package/build/cjs/src/table-reservations-v1-reservation-location.meta.js +0 -106
  31. package/build/cjs/src/table-reservations-v1-reservation-location.meta.js.map +0 -1
  32. package/build/cjs/src/table-reservations-v1-reservation-location.public.d.ts +0 -178
  33. package/build/cjs/src/table-reservations-v1-reservation-location.public.js +0 -48
  34. package/build/cjs/src/table-reservations-v1-reservation-location.public.js.map +0 -1
  35. package/build/cjs/src/table-reservations-v1-reservation-location.types.d.ts +0 -2260
  36. package/build/cjs/src/table-reservations-v1-reservation-location.types.js +0 -187
  37. package/build/cjs/src/table-reservations-v1-reservation-location.types.js.map +0 -1
  38. package/build/cjs/src/table-reservations-v1-reservation-location.universal.d.ts +0 -2333
  39. package/build/cjs/src/table-reservations-v1-reservation-location.universal.js +0 -613
  40. package/build/cjs/src/table-reservations-v1-reservation-location.universal.js.map +0 -1
  41. package/build/cjs/src/table-reservations-v1-reservation.context.d.ts +0 -11
  42. package/build/cjs/src/table-reservations-v1-reservation.context.js +0 -158
  43. package/build/cjs/src/table-reservations-v1-reservation.context.js.map +0 -1
  44. package/build/cjs/src/table-reservations-v1-reservation.http.d.ts +0 -89
  45. package/build/cjs/src/table-reservations-v1-reservation.http.js +0 -508
  46. package/build/cjs/src/table-reservations-v1-reservation.http.js.map +0 -1
  47. package/build/cjs/src/table-reservations-v1-reservation.meta.d.ts +0 -29
  48. package/build/cjs/src/table-reservations-v1-reservation.meta.js +0 -199
  49. package/build/cjs/src/table-reservations-v1-reservation.meta.js.map +0 -1
  50. package/build/cjs/src/table-reservations-v1-reservation.public.d.ts +0 -26
  51. package/build/cjs/src/table-reservations-v1-reservation.public.js +0 -78
  52. package/build/cjs/src/table-reservations-v1-reservation.public.js.map +0 -1
  53. package/build/cjs/src/table-reservations-v1-reservation.types.d.ts +0 -976
  54. package/build/cjs/src/table-reservations-v1-reservation.types.js +0 -119
  55. package/build/cjs/src/table-reservations-v1-reservation.types.js.map +0 -1
  56. package/build/cjs/src/table-reservations-v1-reservation.universal.d.ts +0 -1382
  57. package/build/cjs/src/table-reservations-v1-reservation.universal.js +0 -872
  58. package/build/cjs/src/table-reservations-v1-reservation.universal.js.map +0 -1
  59. package/build/cjs/src/table-reservations-v1-time-slot.context.d.ts +0 -3
  60. package/build/cjs/src/table-reservations-v1-time-slot.context.js +0 -22
  61. package/build/cjs/src/table-reservations-v1-time-slot.context.js.map +0 -1
  62. package/build/cjs/src/table-reservations-v1-time-slot.http.d.ts +0 -13
  63. package/build/cjs/src/table-reservations-v1-time-slot.http.js +0 -126
  64. package/build/cjs/src/table-reservations-v1-time-slot.http.js.map +0 -1
  65. package/build/cjs/src/table-reservations-v1-time-slot.meta.d.ts +0 -13
  66. package/build/cjs/src/table-reservations-v1-time-slot.meta.js +0 -47
  67. package/build/cjs/src/table-reservations-v1-time-slot.meta.js.map +0 -1
  68. package/build/cjs/src/table-reservations-v1-time-slot.public.d.ts +0 -8
  69. package/build/cjs/src/table-reservations-v1-time-slot.public.js +0 -17
  70. package/build/cjs/src/table-reservations-v1-time-slot.public.js.map +0 -1
  71. package/build/cjs/src/table-reservations-v1-time-slot.types.d.ts +0 -137
  72. package/build/cjs/src/table-reservations-v1-time-slot.types.js +0 -32
  73. package/build/cjs/src/table-reservations-v1-time-slot.types.js.map +0 -1
  74. package/build/cjs/src/table-reservations-v1-time-slot.universal.d.ts +0 -178
  75. package/build/cjs/src/table-reservations-v1-time-slot.universal.js +0 -166
  76. package/build/cjs/src/table-reservations-v1-time-slot.universal.js.map +0 -1
  77. package/build/es/index.typings.d.ts +0 -3
  78. package/build/es/index.typings.js +0 -4
  79. package/build/es/index.typings.js.map +0 -1
  80. package/build/es/src/table-reservations-v1-reservation-location.context.d.ts +0 -6
  81. package/build/es/src/table-reservations-v1-reservation-location.context.js +0 -66
  82. package/build/es/src/table-reservations-v1-reservation-location.context.js.map +0 -1
  83. package/build/es/src/table-reservations-v1-reservation-location.http.d.ts +0 -40
  84. package/build/es/src/table-reservations-v1-reservation-location.http.js +0 -259
  85. package/build/es/src/table-reservations-v1-reservation-location.http.js.map +0 -1
  86. package/build/es/src/table-reservations-v1-reservation-location.meta.d.ts +0 -20
  87. package/build/es/src/table-reservations-v1-reservation-location.meta.js +0 -76
  88. package/build/es/src/table-reservations-v1-reservation-location.meta.js.map +0 -1
  89. package/build/es/src/table-reservations-v1-reservation-location.public.d.ts +0 -178
  90. package/build/es/src/table-reservations-v1-reservation-location.public.js +0 -25
  91. package/build/es/src/table-reservations-v1-reservation-location.public.js.map +0 -1
  92. package/build/es/src/table-reservations-v1-reservation-location.types.d.ts +0 -2260
  93. package/build/es/src/table-reservations-v1-reservation-location.types.js +0 -184
  94. package/build/es/src/table-reservations-v1-reservation-location.types.js.map +0 -1
  95. package/build/es/src/table-reservations-v1-reservation-location.universal.d.ts +0 -2333
  96. package/build/es/src/table-reservations-v1-reservation-location.universal.js +0 -583
  97. package/build/es/src/table-reservations-v1-reservation-location.universal.js.map +0 -1
  98. package/build/es/src/table-reservations-v1-reservation.context.d.ts +0 -11
  99. package/build/es/src/table-reservations-v1-reservation.context.js +0 -146
  100. package/build/es/src/table-reservations-v1-reservation.context.js.map +0 -1
  101. package/build/es/src/table-reservations-v1-reservation.http.d.ts +0 -89
  102. package/build/es/src/table-reservations-v1-reservation.http.js +0 -496
  103. package/build/es/src/table-reservations-v1-reservation.http.js.map +0 -1
  104. package/build/es/src/table-reservations-v1-reservation.meta.d.ts +0 -29
  105. package/build/es/src/table-reservations-v1-reservation.meta.js +0 -164
  106. package/build/es/src/table-reservations-v1-reservation.meta.js.map +0 -1
  107. package/build/es/src/table-reservations-v1-reservation.public.d.ts +0 -26
  108. package/build/es/src/table-reservations-v1-reservation.public.js +0 -50
  109. package/build/es/src/table-reservations-v1-reservation.public.js.map +0 -1
  110. package/build/es/src/table-reservations-v1-reservation.types.d.ts +0 -976
  111. package/build/es/src/table-reservations-v1-reservation.types.js +0 -116
  112. package/build/es/src/table-reservations-v1-reservation.types.js.map +0 -1
  113. package/build/es/src/table-reservations-v1-reservation.universal.d.ts +0 -1382
  114. package/build/es/src/table-reservations-v1-reservation.universal.js +0 -837
  115. package/build/es/src/table-reservations-v1-reservation.universal.js.map +0 -1
  116. package/build/es/src/table-reservations-v1-time-slot.context.d.ts +0 -3
  117. package/build/es/src/table-reservations-v1-time-slot.context.js +0 -18
  118. package/build/es/src/table-reservations-v1-time-slot.context.js.map +0 -1
  119. package/build/es/src/table-reservations-v1-time-slot.http.d.ts +0 -13
  120. package/build/es/src/table-reservations-v1-time-slot.http.js +0 -122
  121. package/build/es/src/table-reservations-v1-time-slot.http.js.map +0 -1
  122. package/build/es/src/table-reservations-v1-time-slot.meta.d.ts +0 -13
  123. package/build/es/src/table-reservations-v1-time-slot.meta.js +0 -20
  124. package/build/es/src/table-reservations-v1-time-slot.meta.js.map +0 -1
  125. package/build/es/src/table-reservations-v1-time-slot.public.d.ts +0 -8
  126. package/build/es/src/table-reservations-v1-time-slot.public.js +0 -9
  127. package/build/es/src/table-reservations-v1-time-slot.public.js.map +0 -1
  128. package/build/es/src/table-reservations-v1-time-slot.types.d.ts +0 -137
  129. package/build/es/src/table-reservations-v1-time-slot.types.js +0 -29
  130. package/build/es/src/table-reservations-v1-time-slot.types.js.map +0 -1
  131. package/build/es/src/table-reservations-v1-time-slot.universal.d.ts +0 -178
  132. package/build/es/src/table-reservations-v1-time-slot.universal.js +0 -139
  133. package/build/es/src/table-reservations-v1-time-slot.universal.js.map +0 -1
@@ -1,158 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchReservations = exports.queryReservations = exports.listReservations = exports.cancelReservation = exports.reserveReservation = exports.createHeldReservation = exports.updateReservation = exports.getReservation = exports.createReservation = void 0;
4
- const table_reservations_v1_reservation_public_1 = require("./table-reservations-v1-reservation.public");
5
- const createReservation = (...args) => {
6
- var _a;
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) {
15
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
16
- }
17
- return context
18
- .initWixModules(table_reservations_v1_reservation_public_1.createReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
19
- .apply(undefined, args);
20
- };
21
- exports.createReservation = createReservation;
22
- const getReservation = (...args) => {
23
- var _a;
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) {
32
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
33
- }
34
- return context
35
- .initWixModules(table_reservations_v1_reservation_public_1.getReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
36
- .apply(undefined, args);
37
- };
38
- exports.getReservation = getReservation;
39
- const updateReservation = (...args) => {
40
- var _a;
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) {
49
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
50
- }
51
- return context
52
- .initWixModules(table_reservations_v1_reservation_public_1.updateReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
53
- .apply(undefined, args);
54
- };
55
- exports.updateReservation = updateReservation;
56
- const createHeldReservation = (...args) => {
57
- var _a;
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) {
66
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
67
- }
68
- return context
69
- .initWixModules(table_reservations_v1_reservation_public_1.createHeldReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
70
- .apply(undefined, args);
71
- };
72
- exports.createHeldReservation = createHeldReservation;
73
- const reserveReservation = (...args) => {
74
- var _a;
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) {
83
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
84
- }
85
- return context
86
- .initWixModules(table_reservations_v1_reservation_public_1.reserveReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
87
- .apply(undefined, args);
88
- };
89
- exports.reserveReservation = reserveReservation;
90
- const cancelReservation = (...args) => {
91
- var _a;
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) {
100
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
101
- }
102
- return context
103
- .initWixModules(table_reservations_v1_reservation_public_1.cancelReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
104
- .apply(undefined, args);
105
- };
106
- exports.cancelReservation = cancelReservation;
107
- const listReservations = (...args) => {
108
- var _a;
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) {
117
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
118
- }
119
- return context
120
- .initWixModules(table_reservations_v1_reservation_public_1.listReservations, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
121
- .apply(undefined, args);
122
- };
123
- exports.listReservations = listReservations;
124
- const queryReservations = (...args) => {
125
- var _a;
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) {
134
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
135
- }
136
- return context
137
- .initWixModules(table_reservations_v1_reservation_public_1.queryReservations, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
138
- .apply(undefined, args);
139
- };
140
- exports.queryReservations = queryReservations;
141
- const searchReservations = (...args) => {
142
- var _a;
143
- const context =
144
- // @ts-expect-error
145
- typeof $wixContext !== 'undefined'
146
- ? // @ts-expect-error
147
- $wixContext
148
- : // @ts-expect-error
149
- globalThis.__wix_context__;
150
- if (!context) {
151
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
152
- }
153
- return context
154
- .initWixModules(table_reservations_v1_reservation_public_1.searchReservations, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
155
- .apply(undefined, args);
156
- };
157
- exports.searchReservations = searchReservations;
158
- //# sourceMappingURL=table-reservations-v1-reservation.context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-reservations-v1-reservation.context.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation.context.ts"],"names":[],"mappings":";;;AAAA,yGAUoD;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,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,W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AAC5B,CAAC,CAAC;AArBW,QAAA,iBAAiB,qBAqB5B;AACK,MAAM,kBAAkB,GAE3B,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,6DAAwB,EACxB,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,kBAAkB,sBAqB7B"}
@@ -1,89 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- /**
3
- * Creates a new reservation.
4
- *
5
- * `createReservation()` accepts and requires different fields depending on the `status` provided and your permissions.
6
- *
7
- * **Status and source**
8
- *
9
- * If a `status` is not provided, it will be set to:
10
- * * `RESERVED` if manual approval is not required for confirmation
11
- * * `REQUESTED` if manual approval is required for confirmation.
12
- *
13
- * A reservation created with any `source` other than `WALK_IN` requires the `reservation.reservee.phone` and `reservation.reservee.firstName` fields.
14
- * Attempting to create a reservation without these fields will result in an error.
15
- *
16
- * **Permissions**
17
- *
18
- * Including the fields `status`, `source`, `reservation.details.tableIds`, `reservation.details.endDate`, `ignoreReservationLocationConflicts`, or `ignoreTableCombinationConflicts` in the request requires additional permissions. See this API's Introduction article for more information.
19
- *
20
- * If `source` is not provided, its value is set depending on the permissions of the user making the call. See this API's Introduction article for more information.
21
- *
22
- *
23
- * > **Note:** `createReservation()` requires all details of the reservation upfront. The process of creating a reservation can be broken up using `createHeldReservation`. `createHeldReservation` creates a temporary reservation that expires automatically unless it is completed with the addition of more details using `reserveReservation()`.
24
- */
25
- export declare function createReservation(payload: object): RequestOptionsFactory<any>;
26
- /**
27
- * Retrieves a reservation.
28
- *
29
- * Calling this method with `fieldsets` set to `FULL` requires additional permissions. See this API's Introduction article for more information.
30
- */
31
- export declare function getReservation(payload: object): RequestOptionsFactory<any>;
32
- /**
33
- * Updates a reservation.
34
- *
35
- * Including the fields `status`, `source`, `reservation.details.tableIds`, `reservation.details.endDate`, `ignoreReservationLocationConflicts`, and `ignoreTableCombinationConflicts` in the request requires additional permissions. See this API's Introduction article for more information.
36
- *
37
- * Each time the reservation is updated, revision increments by 1. The existing revision must be included when updating the reservation. This ensures you're working with the latest reservation information, and it prevents unintended overwrites.
38
- */
39
- export declare function updateReservation(payload: object): RequestOptionsFactory<any>;
40
- /**
41
- * Creates a new temporary reservation and holds it for the customer for 10 minutes.
42
- *
43
- * Creates a new reservation with the `HELD` status. `HELD` reservations are intended to reserve seats and tables for a party in a selected time slot while they enter further reservation details, such as names and contact information. Reservations with the `HELD` status are only valid for 10 minutes. Trying to change a `HELD` reservation’s status after 10 minutes returns an error.
44
- *
45
- * You cannot call `updateReservation()` to change a reservation’s status from `HELD`. Trying to do so returns an error. Instead, you should use `reserveReservation()`.
46
- *
47
- * If you do not wish to have `HELD` reservations in your flow, you can create a reservation with all required details using `createReservation()`.
48
- *
49
- */
50
- export declare function createHeldReservation(payload: object): RequestOptionsFactory<any>;
51
- /**
52
- * Reserves or requests a held reservation.
53
- *
54
- * Held reservations are temporary reservations with the `HELD` status created by `createHeldReservation()`.
55
- *
56
- * They are intended to reserve seats and tables for a party in a selected time slot while they enter further reservation details, such as names and contact information. Reservations with the `HELD` status are only valid for 10 minutes. Trying to call `Reserve Reservation` with a held reservation older than 10 minutes returns an error.
57
- *
58
- * `Reserve Reservation` changes a reservation's `HELD` status to:
59
- * * `RESERVED` if the reservation's reservation location does not require manual approval.
60
- * * `REQUESTED` if the reservation's reservation location requires manual approval.
61
- */
62
- export declare function reserveReservation(payload: object): RequestOptionsFactory<any>;
63
- /**
64
- * Cancels a reservation.
65
- *
66
- * Sets the reservation status to `CANCELED`.
67
- */
68
- export declare function cancelReservation(payload: object): RequestOptionsFactory<any>;
69
- /** Retrieves a list of up to 100 reservations. */
70
- export declare function listReservations(payload: object): RequestOptionsFactory<any>;
71
- /**
72
- * Creates a query to retrieve a list of reservations.
73
- *
74
- * The `queryReservations()` function builds a query to retrieve a list of reservations and returns a [`ReservationsQueryBuilder`](#ReservationsQueryBuilder) object.
75
- *
76
- * The returned object contains the query definition, which is used to run the query using the [find()](#ReservationsQueryBuilder/find) function.
77
- *
78
- * You can refine the query by chaining `ReservationsQueryBuilder` functions onto the query. `ReservationsQueryBuilder` functions enable you to filter, sort, and control the results that `queryReservations()` returns.
79
- *
80
- * `queryReservations()` runs with the following `ReservationsQueryBuilder` defaults, which you can override:
81
- *
82
- * * [`skip(0)`](#ReservationsQueryBuilder/skip)
83
- * * [`limit(50)`](#ReservationsQueryBuilder/limit)
84
- * * [`descending('_createdDate')`](#ReservationsQueryBuilder/descending)
85
- *
86
- * The following `ReservationsQueryBuilder` functions are supported for `queryReservations()`. For a full description of the reservation object, see the object returned for the [`items`](#ReservationsQueryResult/items) property in [`ReservationsQueryResult`](#ReservationsQueryResult).
87
- */
88
- export declare function queryReservations(payload: object): RequestOptionsFactory<any>;
89
- export declare function searchReservations(payload: object): RequestOptionsFactory<any>;