@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,146 +0,0 @@
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, searchReservations as publicSearchReservations, } from './table-reservations-v1-reservation.public';
2
- export const createReservation = (...args) => {
3
- var _a;
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) {
12
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
13
- }
14
- return context
15
- .initWixModules(publicCreateReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
16
- .apply(undefined, args);
17
- };
18
- export const getReservation = (...args) => {
19
- var _a;
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) {
28
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
29
- }
30
- return context
31
- .initWixModules(publicGetReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
32
- .apply(undefined, args);
33
- };
34
- export const updateReservation = (...args) => {
35
- var _a;
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) {
44
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
45
- }
46
- return context
47
- .initWixModules(publicUpdateReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
48
- .apply(undefined, args);
49
- };
50
- export const createHeldReservation = (...args) => {
51
- var _a;
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) {
60
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
61
- }
62
- return context
63
- .initWixModules(publicCreateHeldReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
64
- .apply(undefined, args);
65
- };
66
- export const reserveReservation = (...args) => {
67
- var _a;
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) {
76
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
77
- }
78
- return context
79
- .initWixModules(publicReserveReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
80
- .apply(undefined, args);
81
- };
82
- export const cancelReservation = (...args) => {
83
- var _a;
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) {
92
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
93
- }
94
- return context
95
- .initWixModules(publicCancelReservation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
96
- .apply(undefined, args);
97
- };
98
- export const listReservations = (...args) => {
99
- var _a;
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) {
108
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
109
- }
110
- return context
111
- .initWixModules(publicListReservations, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
112
- .apply(undefined, args);
113
- };
114
- export const queryReservations = (...args) => {
115
- var _a;
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) {
124
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
125
- }
126
- return context
127
- .initWixModules(publicQueryReservations, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
128
- .apply(undefined, args);
129
- };
130
- export const searchReservations = (...args) => {
131
- var _a;
132
- const context =
133
- // @ts-expect-error
134
- typeof $wixContext !== 'undefined'
135
- ? // @ts-expect-error
136
- $wixContext
137
- : // @ts-expect-error
138
- globalThis.__wix_context__;
139
- if (!context) {
140
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
141
- }
142
- return context
143
- .initWixModules(publicSearchReservations, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
144
- .apply(undefined, args);
145
- };
146
- //# 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,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,EAC5C,kBAAkB,IAAI,wBAAwB,GAC/C,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,MAAM,CAAC,MAAM,cAAc,GAAmD,CAC5E,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,CAA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AAW;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,wBAAwB,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"}
@@ -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>;