@wix/auto_sdk_bookings_resources 1.0.10 → 1.0.12

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 (126) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/bookings-resources-v2-resource-resources.context.d.ts +29 -0
  11. package/build/cjs/src/bookings-resources-v2-resource-resources.context.js +43 -0
  12. package/build/cjs/src/bookings-resources-v2-resource-resources.context.js.map +1 -0
  13. package/build/cjs/src/bookings-resources-v2-resource-resources.http.d.ts +96 -0
  14. package/build/cjs/src/bookings-resources-v2-resource-resources.http.js +446 -0
  15. package/build/cjs/src/bookings-resources-v2-resource-resources.http.js.map +1 -0
  16. package/build/cjs/src/bookings-resources-v2-resource-resources.meta.d.ts +27 -0
  17. package/build/cjs/src/bookings-resources-v2-resource-resources.meta.js +199 -0
  18. package/build/cjs/src/bookings-resources-v2-resource-resources.meta.js.map +1 -0
  19. package/build/{internal/index.d.ts → cjs/src/bookings-resources-v2-resource-resources.public.d.ts} +18 -38
  20. package/build/cjs/src/bookings-resources-v2-resource-resources.public.js +106 -0
  21. package/build/cjs/src/bookings-resources-v2-resource-resources.public.js.map +1 -0
  22. package/build/{internal/meta.d.mts → cjs/src/bookings-resources-v2-resource-resources.types.d.ts} +351 -114
  23. package/build/cjs/src/bookings-resources-v2-resource-resources.types.js +104 -0
  24. package/build/cjs/src/bookings-resources-v2-resource-resources.types.js.map +1 -0
  25. package/build/{bookings-resources-v2-resource-resources.universal-hYjNdpWu.d.mts → cjs/src/bookings-resources-v2-resource-resources.universal.d.ts} +387 -127
  26. package/build/cjs/src/bookings-resources-v2-resource-resources.universal.js +587 -0
  27. package/build/cjs/src/bookings-resources-v2-resource-resources.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/bookings-resources-v2-resource-resources.context.d.ts +29 -0
  39. package/build/es/src/bookings-resources-v2-resource-resources.context.js +29 -0
  40. package/build/es/src/bookings-resources-v2-resource-resources.context.js.map +1 -0
  41. package/build/es/src/bookings-resources-v2-resource-resources.http.d.ts +96 -0
  42. package/build/es/src/bookings-resources-v2-resource-resources.http.js +434 -0
  43. package/build/es/src/bookings-resources-v2-resource-resources.http.js.map +1 -0
  44. package/build/es/src/bookings-resources-v2-resource-resources.meta.d.ts +27 -0
  45. package/build/es/src/bookings-resources-v2-resource-resources.meta.js +164 -0
  46. package/build/es/src/bookings-resources-v2-resource-resources.meta.js.map +1 -0
  47. package/build/{index.d.ts → es/src/bookings-resources-v2-resource-resources.public.d.ts} +18 -38
  48. package/build/es/src/bookings-resources-v2-resource-resources.public.js +83 -0
  49. package/build/es/src/bookings-resources-v2-resource-resources.public.js.map +1 -0
  50. package/build/{internal/meta.d.ts → es/src/bookings-resources-v2-resource-resources.types.d.ts} +351 -114
  51. package/build/es/src/bookings-resources-v2-resource-resources.types.js +101 -0
  52. package/build/es/src/bookings-resources-v2-resource-resources.types.js.map +1 -0
  53. package/build/{bookings-resources-v2-resource-resources.universal-hYjNdpWu.d.ts → es/src/bookings-resources-v2-resource-resources.universal.d.ts} +387 -127
  54. package/build/es/src/bookings-resources-v2-resource-resources.universal.js +552 -0
  55. package/build/es/src/bookings-resources-v2-resource-resources.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.d.ts +29 -0
  66. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.js +43 -0
  67. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.js.map +1 -0
  68. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.d.ts +96 -0
  69. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.js +446 -0
  70. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.js.map +1 -0
  71. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.meta.d.ts +27 -0
  72. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.meta.js +199 -0
  73. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.meta.js.map +1 -0
  74. package/build/internal/{index.d.mts → cjs/src/bookings-resources-v2-resource-resources.public.d.ts} +18 -38
  75. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.js +106 -0
  76. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.js.map +1 -0
  77. package/build/{meta.d.mts → internal/cjs/src/bookings-resources-v2-resource-resources.types.d.ts} +351 -114
  78. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.js +104 -0
  79. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.js.map +1 -0
  80. package/build/internal/{bookings-resources-v2-resource-resources.universal-hYjNdpWu.d.mts → cjs/src/bookings-resources-v2-resource-resources.universal.d.ts} +387 -127
  81. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.js +587 -0
  82. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/bookings-resources-v2-resource-resources.context.d.ts +29 -0
  93. package/build/internal/es/src/bookings-resources-v2-resource-resources.context.js +29 -0
  94. package/build/internal/es/src/bookings-resources-v2-resource-resources.context.js.map +1 -0
  95. package/build/internal/es/src/bookings-resources-v2-resource-resources.http.d.ts +96 -0
  96. package/build/internal/es/src/bookings-resources-v2-resource-resources.http.js +434 -0
  97. package/build/internal/es/src/bookings-resources-v2-resource-resources.http.js.map +1 -0
  98. package/build/internal/es/src/bookings-resources-v2-resource-resources.meta.d.ts +27 -0
  99. package/build/internal/es/src/bookings-resources-v2-resource-resources.meta.js +164 -0
  100. package/build/internal/es/src/bookings-resources-v2-resource-resources.meta.js.map +1 -0
  101. package/build/{index.d.mts → internal/es/src/bookings-resources-v2-resource-resources.public.d.ts} +18 -38
  102. package/build/internal/es/src/bookings-resources-v2-resource-resources.public.js +83 -0
  103. package/build/internal/es/src/bookings-resources-v2-resource-resources.public.js.map +1 -0
  104. package/build/{meta.d.ts → internal/es/src/bookings-resources-v2-resource-resources.types.d.ts} +351 -114
  105. package/build/internal/es/src/bookings-resources-v2-resource-resources.types.js +101 -0
  106. package/build/internal/es/src/bookings-resources-v2-resource-resources.types.js.map +1 -0
  107. package/build/internal/{bookings-resources-v2-resource-resources.universal-hYjNdpWu.d.ts → es/src/bookings-resources-v2-resource-resources.universal.d.ts} +387 -127
  108. package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.js +552 -0
  109. package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.js.map +1 -0
  110. package/package.json +11 -12
  111. package/build/index.js +0 -882
  112. package/build/index.js.map +0 -1
  113. package/build/index.mjs +0 -836
  114. package/build/index.mjs.map +0 -1
  115. package/build/internal/index.js +0 -882
  116. package/build/internal/index.js.map +0 -1
  117. package/build/internal/index.mjs +0 -836
  118. package/build/internal/index.mjs.map +0 -1
  119. package/build/internal/meta.js +0 -559
  120. package/build/internal/meta.js.map +0 -1
  121. package/build/internal/meta.mjs +0 -524
  122. package/build/internal/meta.mjs.map +0 -1
  123. package/build/meta.js +0 -559
  124. package/build/meta.js.map +0 -1
  125. package/build/meta.mjs +0 -524
  126. package/build/meta.mjs.map +0 -1
@@ -0,0 +1,552 @@
1
+ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
2
+ import { queryBuilder } from '@wix/sdk-runtime/query-builder';
3
+ import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
4
+ import * as ambassadorWixBookingsResourcesV2Resource from './bookings-resources-v2-resource-resources.http.js';
5
+ export var ManagementType;
6
+ (function (ManagementType) {
7
+ /** The resource is managed by a Wix user. */
8
+ ManagementType["WIX_USER"] = "WIX_USER";
9
+ })(ManagementType || (ManagementType = {}));
10
+ export var SortOrder;
11
+ (function (SortOrder) {
12
+ SortOrder["ASC"] = "ASC";
13
+ SortOrder["DESC"] = "DESC";
14
+ })(SortOrder || (SortOrder = {}));
15
+ export var SortType;
16
+ (function (SortType) {
17
+ /** Should sort by number of matches */
18
+ SortType["COUNT"] = "COUNT";
19
+ /** Should sort by value of the field alphabetically */
20
+ SortType["VALUE"] = "VALUE";
21
+ })(SortType || (SortType = {}));
22
+ export var SortDirection;
23
+ (function (SortDirection) {
24
+ /** Should sort in descending order */
25
+ SortDirection["DESC"] = "DESC";
26
+ /** Should sort in ascending order */
27
+ SortDirection["ASC"] = "ASC";
28
+ })(SortDirection || (SortDirection = {}));
29
+ export var MissingValues;
30
+ (function (MissingValues) {
31
+ /** Should missing values be excluded from the aggregation results */
32
+ MissingValues["EXCLUDE"] = "EXCLUDE";
33
+ /** Should missing values be included in the aggregation results */
34
+ MissingValues["INCLUDE"] = "INCLUDE";
35
+ })(MissingValues || (MissingValues = {}));
36
+ export var ScalarType;
37
+ (function (ScalarType) {
38
+ ScalarType["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
39
+ /** Count of distinct values */
40
+ ScalarType["COUNT_DISTINCT"] = "COUNT_DISTINCT";
41
+ /** Minimum value */
42
+ ScalarType["MIN"] = "MIN";
43
+ /** Maximum value */
44
+ ScalarType["MAX"] = "MAX";
45
+ })(ScalarType || (ScalarType = {}));
46
+ export var NestedAggregationType;
47
+ (function (NestedAggregationType) {
48
+ NestedAggregationType["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
49
+ /** An aggregation where result buckets are dynamically built - one per unique value */
50
+ NestedAggregationType["VALUE"] = "VALUE";
51
+ /** An aggregation, where user can define set of ranges - each representing a bucket */
52
+ NestedAggregationType["RANGE"] = "RANGE";
53
+ /** A single-value metric aggregation - e.g. min, max, sum, avg */
54
+ NestedAggregationType["SCALAR"] = "SCALAR";
55
+ /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
56
+ NestedAggregationType["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
57
+ })(NestedAggregationType || (NestedAggregationType = {}));
58
+ export var Interval;
59
+ (function (Interval) {
60
+ Interval["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
61
+ /** Yearly interval */
62
+ Interval["YEAR"] = "YEAR";
63
+ /** Monthly interval */
64
+ Interval["MONTH"] = "MONTH";
65
+ /** Weekly interval */
66
+ Interval["WEEK"] = "WEEK";
67
+ /** Daily interval */
68
+ Interval["DAY"] = "DAY";
69
+ /** Hourly interval */
70
+ Interval["HOUR"] = "HOUR";
71
+ /** Minute interval */
72
+ Interval["MINUTE"] = "MINUTE";
73
+ /** Second interval */
74
+ Interval["SECOND"] = "SECOND";
75
+ })(Interval || (Interval = {}));
76
+ export var AggregationType;
77
+ (function (AggregationType) {
78
+ AggregationType["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
79
+ /** An aggregation where result buckets are dynamically built - one per unique value */
80
+ AggregationType["VALUE"] = "VALUE";
81
+ /** An aggregation, where user can define set of ranges - each representing a bucket */
82
+ AggregationType["RANGE"] = "RANGE";
83
+ /** A single-value metric aggregation - e.g. min, max, sum, avg */
84
+ AggregationType["SCALAR"] = "SCALAR";
85
+ /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
86
+ AggregationType["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
87
+ /** Multi-level aggregation, where each next aggregation is nested within previous one */
88
+ AggregationType["NESTED"] = "NESTED";
89
+ })(AggregationType || (AggregationType = {}));
90
+ export var Mode;
91
+ (function (Mode) {
92
+ /** Any of the search terms must be present */
93
+ Mode["OR"] = "OR";
94
+ /** All search terms must be present */
95
+ Mode["AND"] = "AND";
96
+ })(Mode || (Mode = {}));
97
+ export var WebhookIdentityType;
98
+ (function (WebhookIdentityType) {
99
+ WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
100
+ WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
101
+ WebhookIdentityType["MEMBER"] = "MEMBER";
102
+ WebhookIdentityType["WIX_USER"] = "WIX_USER";
103
+ WebhookIdentityType["APP"] = "APP";
104
+ })(WebhookIdentityType || (WebhookIdentityType = {}));
105
+ /**
106
+ * Creates a new resource.
107
+ *
108
+ *
109
+ * ## Connected schedules
110
+ *
111
+ * A new event *schedule*
112
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/wix-bookings-integration) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration))
113
+ * is automatically created for the resource.
114
+ *
115
+ * ## Locations
116
+ *
117
+ * If you don't specify `locationOptions`, Wix Bookings automatically sets
118
+ * `locationOptions.availableInAllLocations` to `true`.
119
+ *
120
+ * If you specify 1 business location ID in `locationOptions.specificLocationOptions.businessLocations`,
121
+ * you must specify `locationOptions.specificLocationOptions.availableInBusinessLocations`
122
+ * as `true`. Currently, you can specify only a single business location.
123
+ * @param resource - Resource to create.
124
+ * @public
125
+ * @documentationMaturity preview
126
+ * @requiredField resource
127
+ * @requiredField resource.name
128
+ * @permissionId BOOKINGS.RESOURCE_CREATE
129
+ * @permissionScope Manage Bookings
130
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
131
+ * @permissionScope Manage Bookings - all permissions
132
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
133
+ * @applicableIdentity APP
134
+ * @returns Created resource.
135
+ * @fqn wix.bookings.resources.v2.ResourcesService.CreateResource
136
+ */
137
+ export async function createResource(resource) {
138
+ // @ts-ignore
139
+ const { httpClient, sideEffects } = arguments[1];
140
+ const payload = renameKeysFromSDKRequestToRESTRequest({ resource: resource });
141
+ const reqOpts = ambassadorWixBookingsResourcesV2Resource.createResource(payload);
142
+ sideEffects?.onSiteCall?.();
143
+ try {
144
+ const result = await httpClient.request(reqOpts);
145
+ sideEffects?.onSuccess?.(result);
146
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.resource;
147
+ }
148
+ catch (err) {
149
+ const transformedError = sdkTransformError(err, {
150
+ spreadPathsToArguments: {},
151
+ explicitPathsToArguments: { resource: '$[0]' },
152
+ singleArgumentUnchanged: false,
153
+ }, ['resource']);
154
+ sideEffects?.onError?.(err);
155
+ throw transformedError;
156
+ }
157
+ }
158
+ /**
159
+ * Creates up to 50 resources.
160
+ *
161
+ *
162
+ * Refer to *Create Resource*
163
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/create-resource) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/create-resource))
164
+ * for more details.
165
+ * @param resources - Resources to create.
166
+ * @public
167
+ * @documentationMaturity preview
168
+ * @requiredField resources
169
+ * @requiredField resources.name
170
+ * @permissionId BOOKINGS.RESOURCE_CREATE
171
+ * @permissionScope Manage Bookings
172
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
173
+ * @permissionScope Manage Bookings - all permissions
174
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
175
+ * @applicableIdentity APP
176
+ * @fqn wix.bookings.resources.v2.ResourcesService.BulkCreateResources
177
+ */
178
+ export async function bulkCreateResources(resources, options) {
179
+ // @ts-ignore
180
+ const { httpClient, sideEffects } = arguments[2];
181
+ const payload = renameKeysFromSDKRequestToRESTRequest({
182
+ resources: resources,
183
+ returnEntity: options?.returnEntity,
184
+ });
185
+ const reqOpts = ambassadorWixBookingsResourcesV2Resource.bulkCreateResources(payload);
186
+ sideEffects?.onSiteCall?.();
187
+ try {
188
+ const result = await httpClient.request(reqOpts);
189
+ sideEffects?.onSuccess?.(result);
190
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
191
+ }
192
+ catch (err) {
193
+ const transformedError = sdkTransformError(err, {
194
+ spreadPathsToArguments: {},
195
+ explicitPathsToArguments: {
196
+ resources: '$[0]',
197
+ returnEntity: '$[1].returnEntity',
198
+ },
199
+ singleArgumentUnchanged: false,
200
+ }, ['resources', 'options']);
201
+ sideEffects?.onError?.(err);
202
+ throw transformedError;
203
+ }
204
+ }
205
+ /**
206
+ * Retrieves a resource.
207
+ * @param resourceId - ID of the resource to retrieve.
208
+ * @public
209
+ * @documentationMaturity preview
210
+ * @requiredField resourceId
211
+ * @permissionId BOOKINGS.RESOURCE_READ
212
+ * @permissionScope Read Bookings - Public Data
213
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
214
+ * @permissionScope Manage Bookings
215
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
216
+ * @permissionScope Read Bookings - Including Participants
217
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
218
+ * @permissionScope Read Bookings - all read permissions
219
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
220
+ * @permissionScope Manage Bookings - all permissions
221
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
222
+ * @applicableIdentity APP
223
+ * @applicableIdentity VISITOR
224
+ * @returns Retrieved resource.
225
+ * @fqn wix.bookings.resources.v2.ResourcesService.GetResource
226
+ */
227
+ export async function getResource(resourceId) {
228
+ // @ts-ignore
229
+ const { httpClient, sideEffects } = arguments[1];
230
+ const payload = renameKeysFromSDKRequestToRESTRequest({
231
+ resourceId: resourceId,
232
+ });
233
+ const reqOpts = ambassadorWixBookingsResourcesV2Resource.getResource(payload);
234
+ sideEffects?.onSiteCall?.();
235
+ try {
236
+ const result = await httpClient.request(reqOpts);
237
+ sideEffects?.onSuccess?.(result);
238
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.resource;
239
+ }
240
+ catch (err) {
241
+ const transformedError = sdkTransformError(err, {
242
+ spreadPathsToArguments: {},
243
+ explicitPathsToArguments: { resourceId: '$[0]' },
244
+ singleArgumentUnchanged: false,
245
+ }, ['resourceId']);
246
+ sideEffects?.onError?.(err);
247
+ throw transformedError;
248
+ }
249
+ }
250
+ /**
251
+ * Updates a resource.
252
+ *
253
+ *
254
+ * Each time the resource is updated, `revision` increments by 1. You must include the current revision of the resource when updating it.
255
+ * This ensures you're working with the latest service information and prevents unintended overwrites.
256
+ * @param _id - Resource ID.
257
+ * @public
258
+ * @documentationMaturity preview
259
+ * @requiredField _id
260
+ * @requiredField resource
261
+ * @requiredField resource.revision
262
+ * @permissionId BOOKINGS.RESOURCE_UPDATE
263
+ * @permissionScope Manage Bookings
264
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
265
+ * @permissionScope Manage Bookings - all permissions
266
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
267
+ * @applicableIdentity APP
268
+ * @returns Updated resource.
269
+ * @fqn wix.bookings.resources.v2.ResourcesService.UpdateResource
270
+ */
271
+ export async function updateResource(_id, resource) {
272
+ // @ts-ignore
273
+ const { httpClient, sideEffects } = arguments[2];
274
+ const payload = renameKeysFromSDKRequestToRESTRequest({
275
+ resource: { ...resource, id: _id },
276
+ });
277
+ const reqOpts = ambassadorWixBookingsResourcesV2Resource.updateResource(payload);
278
+ sideEffects?.onSiteCall?.();
279
+ try {
280
+ const result = await httpClient.request(reqOpts);
281
+ sideEffects?.onSuccess?.(result);
282
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.resource;
283
+ }
284
+ catch (err) {
285
+ const transformedError = sdkTransformError(err, {
286
+ spreadPathsToArguments: { resource: '$[1]' },
287
+ explicitPathsToArguments: { 'resource.id': '$[0]' },
288
+ singleArgumentUnchanged: false,
289
+ }, ['_id', 'resource']);
290
+ sideEffects?.onError?.(err);
291
+ throw transformedError;
292
+ }
293
+ }
294
+ /**
295
+ * Deletes a resource.
296
+ *
297
+ *
298
+ * Deleting a resource cancels its event schedule and all its working hour
299
+ * schedules that aren't shared with another resource. Learn more about
300
+ * _how Bookings uses the Calendar APIs_
301
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/wix-bookings-integration) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration)).
302
+ * @param resourceId - ID of the resource to delete.
303
+ * @public
304
+ * @documentationMaturity preview
305
+ * @requiredField resourceId
306
+ * @permissionId BOOKINGS.RESOURCE_DELETE
307
+ * @permissionScope Manage Bookings
308
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
309
+ * @permissionScope Manage Bookings - all permissions
310
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
311
+ * @applicableIdentity APP
312
+ * @fqn wix.bookings.resources.v2.ResourcesService.DeleteResource
313
+ */
314
+ export async function deleteResource(resourceId) {
315
+ // @ts-ignore
316
+ const { httpClient, sideEffects } = arguments[1];
317
+ const payload = renameKeysFromSDKRequestToRESTRequest({
318
+ resourceId: resourceId,
319
+ });
320
+ const reqOpts = ambassadorWixBookingsResourcesV2Resource.deleteResource(payload);
321
+ sideEffects?.onSiteCall?.();
322
+ try {
323
+ const result = await httpClient.request(reqOpts);
324
+ sideEffects?.onSuccess?.(result);
325
+ }
326
+ catch (err) {
327
+ const transformedError = sdkTransformError(err, {
328
+ spreadPathsToArguments: {},
329
+ explicitPathsToArguments: { resourceId: '$[0]' },
330
+ singleArgumentUnchanged: false,
331
+ }, ['resourceId']);
332
+ sideEffects?.onError?.(err);
333
+ throw transformedError;
334
+ }
335
+ }
336
+ /**
337
+ * Deletes multiple resources.
338
+ *
339
+ *
340
+ * Refer to *Delete Resource*
341
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/delete-resource) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/delete-resource))
342
+ * for more details.
343
+ * @param ids - IDs of the resources to delete.
344
+ * @public
345
+ * @documentationMaturity preview
346
+ * @requiredField ids
347
+ * @permissionId BOOKINGS.RESOURCE_DELETE
348
+ * @permissionScope Manage Bookings
349
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
350
+ * @permissionScope Manage Bookings - all permissions
351
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
352
+ * @applicableIdentity APP
353
+ * @fqn wix.bookings.resources.v2.ResourcesService.BulkDeleteResources
354
+ */
355
+ export async function bulkDeleteResources(ids) {
356
+ // @ts-ignore
357
+ const { httpClient, sideEffects } = arguments[1];
358
+ const payload = renameKeysFromSDKRequestToRESTRequest({ ids: ids });
359
+ const reqOpts = ambassadorWixBookingsResourcesV2Resource.bulkDeleteResources(payload);
360
+ sideEffects?.onSiteCall?.();
361
+ try {
362
+ const result = await httpClient.request(reqOpts);
363
+ sideEffects?.onSuccess?.(result);
364
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
365
+ }
366
+ catch (err) {
367
+ const transformedError = sdkTransformError(err, {
368
+ spreadPathsToArguments: {},
369
+ explicitPathsToArguments: { ids: '$[0]' },
370
+ singleArgumentUnchanged: false,
371
+ }, ['ids']);
372
+ sideEffects?.onError?.(err);
373
+ throw transformedError;
374
+ }
375
+ }
376
+ /**
377
+ * Retrieves a list of resources matching the provided search criteria.
378
+ *
379
+ *
380
+ * Refer to the *supported filters article*
381
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting))
382
+ * for a complete list of supported filters and sorting options.
383
+ * @public
384
+ * @documentationMaturity preview
385
+ * @permissionId BOOKINGS.RESOURCE_READ
386
+ * @permissionScope Read Bookings - Public Data
387
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
388
+ * @permissionScope Manage Bookings
389
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
390
+ * @permissionScope Read Bookings - Including Participants
391
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
392
+ * @permissionScope Read Bookings - all read permissions
393
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
394
+ * @permissionScope Manage Bookings - all permissions
395
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
396
+ * @applicableIdentity APP
397
+ * @applicableIdentity VISITOR
398
+ * @fqn wix.bookings.resources.v2.ResourcesService.SearchResources
399
+ */
400
+ export async function searchResources(options) {
401
+ // @ts-ignore
402
+ const { httpClient, sideEffects } = arguments[1];
403
+ const payload = renameKeysFromSDKRequestToRESTRequest({
404
+ search: options?.search,
405
+ });
406
+ const reqOpts = ambassadorWixBookingsResourcesV2Resource.searchResources(payload);
407
+ sideEffects?.onSiteCall?.();
408
+ try {
409
+ const result = await httpClient.request(reqOpts);
410
+ sideEffects?.onSuccess?.(result);
411
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
412
+ }
413
+ catch (err) {
414
+ const transformedError = sdkTransformError(err, {
415
+ spreadPathsToArguments: {},
416
+ explicitPathsToArguments: { search: '$[0].search' },
417
+ singleArgumentUnchanged: false,
418
+ }, ['options']);
419
+ sideEffects?.onError?.(err);
420
+ throw transformedError;
421
+ }
422
+ }
423
+ /**
424
+ * Creates a query to retrieve a list of resources.
425
+ *
426
+ * The `queryResources()` function builds a query to retrieve a list of resources and returns a `ResourcesQueryBuilder` object.
427
+ *
428
+ * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/resources-query-builder/find) function.
429
+ *
430
+ * You can refine the query by chaining `ResourcesQueryBuilder` functions onto the query. `ResourcesQueryBuilder` functions enable you to sort, filter, and control the results that `queryResources()` returns.
431
+ *
432
+ * `queryResources()` runs with the following `ResourcesQueryBuilder` default that you can override:
433
+ *
434
+ * + `limit` is `50`.
435
+ * + Sorted by `id` in ascending order.
436
+ *
437
+ * The functions that are chained to `queryResources()` are applied in the order they are called. For example, if you apply `ascending("typeId")` and then `ascending("name")`, the results are sorted first by the `"typeId"`, and then, if there are multiple results with the same `"typeId"`, the items are sorted by `"name"`.
438
+ *
439
+ * The following `ResourcesQueryBuilder` functions are supported for the `queryResources()` function. For a full description of the resource object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/resources-query-result/items) property in `ResourcesQueryResult`.
440
+ * @public
441
+ * @documentationMaturity preview
442
+ * @permissionScope Read Bookings - Public Data
443
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
444
+ * @permissionScope Manage Bookings
445
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
446
+ * @permissionScope Read Bookings - Including Participants
447
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
448
+ * @permissionScope Read Bookings - all read permissions
449
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
450
+ * @permissionScope Manage Bookings - all permissions
451
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
452
+ * @permissionId BOOKINGS.RESOURCE_READ
453
+ * @applicableIdentity APP
454
+ * @applicableIdentity VISITOR
455
+ * @fqn wix.bookings.resources.v2.ResourcesService.QueryResources
456
+ */
457
+ export function queryResources() {
458
+ // @ts-ignore
459
+ const { httpClient, sideEffects } = arguments[0];
460
+ return queryBuilder({
461
+ func: async (payload) => {
462
+ const reqOpts = ambassadorWixBookingsResourcesV2Resource.queryResources(payload);
463
+ sideEffects?.onSiteCall?.();
464
+ try {
465
+ const result = await httpClient.request(reqOpts);
466
+ sideEffects?.onSuccess?.(result);
467
+ return result;
468
+ }
469
+ catch (err) {
470
+ sideEffects?.onError?.(err);
471
+ throw err;
472
+ }
473
+ },
474
+ requestTransformer: (query) => {
475
+ const args = [query, {}];
476
+ return renameKeysFromSDKRequestToRESTRequest({
477
+ ...args?.[1],
478
+ query: args?.[0],
479
+ });
480
+ },
481
+ responseTransformer: ({ data }) => {
482
+ const transformedData = renameKeysFromRESTResponseToSDKResponse(data);
483
+ return {
484
+ items: transformedData?.resources,
485
+ pagingMetadata: transformedData?.pagingMetadata,
486
+ };
487
+ },
488
+ errorTransformer: (err) => {
489
+ const transformedError = sdkTransformError(err, {
490
+ spreadPathsToArguments: {},
491
+ explicitPathsToArguments: { query: '$[0]' },
492
+ singleArgumentUnchanged: false,
493
+ });
494
+ throw transformedError;
495
+ },
496
+ pagingMethod: 'CURSOR',
497
+ transformationPaths: {},
498
+ });
499
+ }
500
+ /**
501
+ * Counts resources according to given criteria.
502
+ *
503
+ *
504
+ * Refer to the *supported filters article*
505
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting))
506
+ * for a complete list of supported filters and sorting options.
507
+ * @public
508
+ * @documentationMaturity preview
509
+ * @param options - Filter to base the count on. See *the supported filters article* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting)) for a complete list of filtering options.
510
+ * @permissionId BOOKINGS.RESOURCE_READ
511
+ * @permissionScope Read Bookings - Public Data
512
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
513
+ * @permissionScope Manage Bookings
514
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
515
+ * @permissionScope Read Bookings - Including Participants
516
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
517
+ * @permissionScope Read Bookings - all read permissions
518
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
519
+ * @permissionScope Manage Bookings - all permissions
520
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
521
+ * @applicableIdentity APP
522
+ * @applicableIdentity VISITOR
523
+ * @fqn wix.bookings.resources.v2.ResourcesService.CountResources
524
+ */
525
+ export async function countResources(options) {
526
+ // @ts-ignore
527
+ const { httpClient, sideEffects } = arguments[1];
528
+ const payload = renameKeysFromSDKRequestToRESTRequest({
529
+ filter: options?.filter,
530
+ search: options?.search,
531
+ });
532
+ const reqOpts = ambassadorWixBookingsResourcesV2Resource.countResources(payload);
533
+ sideEffects?.onSiteCall?.();
534
+ try {
535
+ const result = await httpClient.request(reqOpts);
536
+ sideEffects?.onSuccess?.(result);
537
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
538
+ }
539
+ catch (err) {
540
+ const transformedError = sdkTransformError(err, {
541
+ spreadPathsToArguments: {},
542
+ explicitPathsToArguments: {
543
+ filter: '$[0].filter',
544
+ search: '$[0].search',
545
+ },
546
+ singleArgumentUnchanged: false,
547
+ }, ['options']);
548
+ sideEffects?.onError?.(err);
549
+ throw transformedError;
550
+ }
551
+ }
552
+ //# sourceMappingURL=bookings-resources-v2-resource-resources.universal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bookings-resources-v2-resource-resources.universal.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-resources.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,wCAAwC,MAAM,oDAAoD,CAAC;AA6M/G,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,6CAA6C;IAC7C,uCAAqB,CAAA;AACvB,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAmSD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAuDD,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,uCAAuC;IACvC,2BAAe,CAAA;IACf,uDAAuD;IACvD,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB;AAED,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,sCAAsC;IACtC,8BAAa,CAAA;IACb,qCAAqC;IACrC,4BAAW,CAAA;AACb,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AAED,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,qEAAqE;IACrE,oCAAmB,CAAA;IACnB,mEAAmE;IACnE,oCAAmB,CAAA;AACrB,CAAC,EALW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AAM;KACxB,CAAC,CAAC;IAEH,MAAM,OAAO,GACX,wCAAwC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAEnE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,MAAM,EAAE,aAAa;gBACrB,MAAM,EAAE,aAAa;aACtB;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './src/bookings-resources-v2-resource-resources.context.js';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/bookings-resources-v2-resource-resources.context.js"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4FAA0E"}
@@ -0,0 +1 @@
1
+ export * from './src/bookings-resources-v2-resource-resources.universal.js';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/bookings-resources-v2-resource-resources.universal.js"), exports);
18
+ //# sourceMappingURL=index.typings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8FAA4E"}
@@ -0,0 +1 @@
1
+ export * from './src/bookings-resources-v2-resource-resources.meta.js';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/bookings-resources-v2-resource-resources.meta.js"), exports);
18
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yFAAuE"}