@wix/auto_sdk_bookings_resources 1.0.8 → 1.0.10

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/{internal/cjs/src/bookings-resources-v2-resource-resources.universal.d.ts → bookings-resources-v2-resource-resources.universal-hYjNdpWu.d.mts} +127 -405
  2. package/build/{cjs/src/bookings-resources-v2-resource-resources.universal.d.ts → bookings-resources-v2-resource-resources.universal-hYjNdpWu.d.ts} +127 -405
  3. package/build/{es/src/bookings-resources-v2-resource-resources.public.d.ts → index.d.mts} +38 -18
  4. package/build/{internal/cjs/src/bookings-resources-v2-resource-resources.public.d.ts → index.d.ts} +38 -18
  5. package/build/index.js +882 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +836 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/bookings-resources-v2-resource-resources.universal.d.ts → bookings-resources-v2-resource-resources.universal-hYjNdpWu.d.mts} +127 -405
  10. package/build/{es/src/bookings-resources-v2-resource-resources.universal.d.ts → internal/bookings-resources-v2-resource-resources.universal-hYjNdpWu.d.ts} +127 -405
  11. package/build/{cjs/src/bookings-resources-v2-resource-resources.public.d.ts → internal/index.d.mts} +38 -18
  12. package/build/internal/{es/src/bookings-resources-v2-resource-resources.public.d.ts → index.d.ts} +38 -18
  13. package/build/internal/index.js +882 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +836 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/{es/src/bookings-resources-v2-resource-resources.types.d.ts → internal/meta.d.mts} +114 -351
  18. package/build/internal/{cjs/src/bookings-resources-v2-resource-resources.types.d.ts → meta.d.ts} +114 -351
  19. package/build/internal/meta.js +559 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +524 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/{cjs/src/bookings-resources-v2-resource-resources.types.d.ts → meta.d.mts} +114 -351
  24. package/build/{internal/es/src/bookings-resources-v2-resource-resources.types.d.ts → meta.d.ts} +114 -351
  25. package/build/meta.js +559 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +524 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/bookings-resources-v2-resource-resources.context.d.ts +0 -29
  40. package/build/cjs/src/bookings-resources-v2-resource-resources.context.js +0 -43
  41. package/build/cjs/src/bookings-resources-v2-resource-resources.context.js.map +0 -1
  42. package/build/cjs/src/bookings-resources-v2-resource-resources.http.d.ts +0 -96
  43. package/build/cjs/src/bookings-resources-v2-resource-resources.http.js +0 -446
  44. package/build/cjs/src/bookings-resources-v2-resource-resources.http.js.map +0 -1
  45. package/build/cjs/src/bookings-resources-v2-resource-resources.meta.d.ts +0 -27
  46. package/build/cjs/src/bookings-resources-v2-resource-resources.meta.js +0 -199
  47. package/build/cjs/src/bookings-resources-v2-resource-resources.meta.js.map +0 -1
  48. package/build/cjs/src/bookings-resources-v2-resource-resources.public.js +0 -106
  49. package/build/cjs/src/bookings-resources-v2-resource-resources.public.js.map +0 -1
  50. package/build/cjs/src/bookings-resources-v2-resource-resources.types.js +0 -104
  51. package/build/cjs/src/bookings-resources-v2-resource-resources.types.js.map +0 -1
  52. package/build/cjs/src/bookings-resources-v2-resource-resources.universal.js +0 -605
  53. package/build/cjs/src/bookings-resources-v2-resource-resources.universal.js.map +0 -1
  54. package/build/es/index.d.ts +0 -1
  55. package/build/es/index.js +0 -2
  56. package/build/es/index.js.map +0 -1
  57. package/build/es/index.typings.d.ts +0 -1
  58. package/build/es/index.typings.js +0 -2
  59. package/build/es/index.typings.js.map +0 -1
  60. package/build/es/meta.d.ts +0 -1
  61. package/build/es/meta.js +0 -2
  62. package/build/es/meta.js.map +0 -1
  63. package/build/es/package.json +0 -3
  64. package/build/es/src/bookings-resources-v2-resource-resources.context.d.ts +0 -29
  65. package/build/es/src/bookings-resources-v2-resource-resources.context.js +0 -29
  66. package/build/es/src/bookings-resources-v2-resource-resources.context.js.map +0 -1
  67. package/build/es/src/bookings-resources-v2-resource-resources.http.d.ts +0 -96
  68. package/build/es/src/bookings-resources-v2-resource-resources.http.js +0 -434
  69. package/build/es/src/bookings-resources-v2-resource-resources.http.js.map +0 -1
  70. package/build/es/src/bookings-resources-v2-resource-resources.meta.d.ts +0 -27
  71. package/build/es/src/bookings-resources-v2-resource-resources.meta.js +0 -164
  72. package/build/es/src/bookings-resources-v2-resource-resources.meta.js.map +0 -1
  73. package/build/es/src/bookings-resources-v2-resource-resources.public.js +0 -83
  74. package/build/es/src/bookings-resources-v2-resource-resources.public.js.map +0 -1
  75. package/build/es/src/bookings-resources-v2-resource-resources.types.js +0 -101
  76. package/build/es/src/bookings-resources-v2-resource-resources.types.js.map +0 -1
  77. package/build/es/src/bookings-resources-v2-resource-resources.universal.js +0 -570
  78. package/build/es/src/bookings-resources-v2-resource-resources.universal.js.map +0 -1
  79. package/build/internal/cjs/index.d.ts +0 -1
  80. package/build/internal/cjs/index.js +0 -18
  81. package/build/internal/cjs/index.js.map +0 -1
  82. package/build/internal/cjs/index.typings.d.ts +0 -1
  83. package/build/internal/cjs/index.typings.js +0 -18
  84. package/build/internal/cjs/index.typings.js.map +0 -1
  85. package/build/internal/cjs/meta.d.ts +0 -1
  86. package/build/internal/cjs/meta.js +0 -18
  87. package/build/internal/cjs/meta.js.map +0 -1
  88. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.d.ts +0 -29
  89. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.js +0 -43
  90. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.js.map +0 -1
  91. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.d.ts +0 -96
  92. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.js +0 -446
  93. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.js.map +0 -1
  94. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.meta.d.ts +0 -27
  95. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.meta.js +0 -199
  96. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.meta.js.map +0 -1
  97. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.js +0 -106
  98. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.js.map +0 -1
  99. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.js +0 -104
  100. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.js.map +0 -1
  101. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.js +0 -605
  102. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.js.map +0 -1
  103. package/build/internal/es/index.d.ts +0 -1
  104. package/build/internal/es/index.js +0 -2
  105. package/build/internal/es/index.js.map +0 -1
  106. package/build/internal/es/index.typings.d.ts +0 -1
  107. package/build/internal/es/index.typings.js +0 -2
  108. package/build/internal/es/index.typings.js.map +0 -1
  109. package/build/internal/es/meta.d.ts +0 -1
  110. package/build/internal/es/meta.js +0 -2
  111. package/build/internal/es/meta.js.map +0 -1
  112. package/build/internal/es/src/bookings-resources-v2-resource-resources.context.d.ts +0 -29
  113. package/build/internal/es/src/bookings-resources-v2-resource-resources.context.js +0 -29
  114. package/build/internal/es/src/bookings-resources-v2-resource-resources.context.js.map +0 -1
  115. package/build/internal/es/src/bookings-resources-v2-resource-resources.http.d.ts +0 -96
  116. package/build/internal/es/src/bookings-resources-v2-resource-resources.http.js +0 -434
  117. package/build/internal/es/src/bookings-resources-v2-resource-resources.http.js.map +0 -1
  118. package/build/internal/es/src/bookings-resources-v2-resource-resources.meta.d.ts +0 -27
  119. package/build/internal/es/src/bookings-resources-v2-resource-resources.meta.js +0 -164
  120. package/build/internal/es/src/bookings-resources-v2-resource-resources.meta.js.map +0 -1
  121. package/build/internal/es/src/bookings-resources-v2-resource-resources.public.js +0 -83
  122. package/build/internal/es/src/bookings-resources-v2-resource-resources.public.js.map +0 -1
  123. package/build/internal/es/src/bookings-resources-v2-resource-resources.types.js +0 -101
  124. package/build/internal/es/src/bookings-resources-v2-resource-resources.types.js.map +0 -1
  125. package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.js +0 -570
  126. package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.js.map +0 -1
@@ -1,570 +0,0 @@
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
- * @permissionScope Picasso private app mega scope
134
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
135
- * @applicableIdentity APP
136
- * @returns Created resource.
137
- * @fqn wix.bookings.resources.v2.ResourcesService.CreateResource
138
- */
139
- export async function createResource(resource) {
140
- // @ts-ignore
141
- const { httpClient, sideEffects } = arguments[1];
142
- const payload = renameKeysFromSDKRequestToRESTRequest({ resource: resource });
143
- const reqOpts = ambassadorWixBookingsResourcesV2Resource.createResource(payload);
144
- sideEffects?.onSiteCall?.();
145
- try {
146
- const result = await httpClient.request(reqOpts);
147
- sideEffects?.onSuccess?.(result);
148
- return renameKeysFromRESTResponseToSDKResponse(result.data)?.resource;
149
- }
150
- catch (err) {
151
- const transformedError = sdkTransformError(err, {
152
- spreadPathsToArguments: {},
153
- explicitPathsToArguments: { resource: '$[0]' },
154
- singleArgumentUnchanged: false,
155
- }, ['resource']);
156
- sideEffects?.onError?.(err);
157
- throw transformedError;
158
- }
159
- }
160
- /**
161
- * Creates up to 50 resources.
162
- *
163
- *
164
- * Refer to *Create Resource*
165
- * ([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))
166
- * for more details.
167
- * @param resources - Resources to create.
168
- * @public
169
- * @documentationMaturity preview
170
- * @requiredField resources
171
- * @requiredField resources.name
172
- * @permissionId BOOKINGS.RESOURCE_CREATE
173
- * @permissionScope Manage Bookings
174
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
175
- * @permissionScope Manage Bookings - all permissions
176
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
177
- * @permissionScope Picasso private app mega scope
178
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
179
- * @applicableIdentity APP
180
- * @fqn wix.bookings.resources.v2.ResourcesService.BulkCreateResources
181
- */
182
- export async function bulkCreateResources(resources, options) {
183
- // @ts-ignore
184
- const { httpClient, sideEffects } = arguments[2];
185
- const payload = renameKeysFromSDKRequestToRESTRequest({
186
- resources: resources,
187
- returnEntity: options?.returnEntity,
188
- });
189
- const reqOpts = ambassadorWixBookingsResourcesV2Resource.bulkCreateResources(payload);
190
- sideEffects?.onSiteCall?.();
191
- try {
192
- const result = await httpClient.request(reqOpts);
193
- sideEffects?.onSuccess?.(result);
194
- return renameKeysFromRESTResponseToSDKResponse(result.data);
195
- }
196
- catch (err) {
197
- const transformedError = sdkTransformError(err, {
198
- spreadPathsToArguments: {},
199
- explicitPathsToArguments: {
200
- resources: '$[0]',
201
- returnEntity: '$[1].returnEntity',
202
- },
203
- singleArgumentUnchanged: false,
204
- }, ['resources', 'options']);
205
- sideEffects?.onError?.(err);
206
- throw transformedError;
207
- }
208
- }
209
- /**
210
- * Retrieves a resource.
211
- * @param resourceId - ID of the resource to retrieve.
212
- * @public
213
- * @documentationMaturity preview
214
- * @requiredField resourceId
215
- * @permissionId BOOKINGS.RESOURCE_READ
216
- * @permissionScope Read Bookings - Public Data
217
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
218
- * @permissionScope Manage Bookings
219
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
220
- * @permissionScope Read Bookings - Including Participants
221
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
222
- * @permissionScope Read Bookings - all read permissions
223
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
224
- * @permissionScope Manage Bookings - all permissions
225
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
226
- * @permissionScope Picasso private app mega scope
227
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
228
- * @applicableIdentity APP
229
- * @applicableIdentity VISITOR
230
- * @returns Retrieved resource.
231
- * @fqn wix.bookings.resources.v2.ResourcesService.GetResource
232
- */
233
- export async function getResource(resourceId) {
234
- // @ts-ignore
235
- const { httpClient, sideEffects } = arguments[1];
236
- const payload = renameKeysFromSDKRequestToRESTRequest({
237
- resourceId: resourceId,
238
- });
239
- const reqOpts = ambassadorWixBookingsResourcesV2Resource.getResource(payload);
240
- sideEffects?.onSiteCall?.();
241
- try {
242
- const result = await httpClient.request(reqOpts);
243
- sideEffects?.onSuccess?.(result);
244
- return renameKeysFromRESTResponseToSDKResponse(result.data)?.resource;
245
- }
246
- catch (err) {
247
- const transformedError = sdkTransformError(err, {
248
- spreadPathsToArguments: {},
249
- explicitPathsToArguments: { resourceId: '$[0]' },
250
- singleArgumentUnchanged: false,
251
- }, ['resourceId']);
252
- sideEffects?.onError?.(err);
253
- throw transformedError;
254
- }
255
- }
256
- /**
257
- * Updates a resource.
258
- *
259
- *
260
- * Each time the resource is updated, `revision` increments by 1. You must include the current revision of the resource when updating it.
261
- * This ensures you're working with the latest service information and prevents unintended overwrites.
262
- * @param _id - Resource ID.
263
- * @public
264
- * @documentationMaturity preview
265
- * @requiredField _id
266
- * @requiredField resource
267
- * @requiredField resource.revision
268
- * @permissionId BOOKINGS.RESOURCE_UPDATE
269
- * @permissionScope Manage Bookings
270
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
271
- * @permissionScope Manage Bookings - all permissions
272
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
273
- * @permissionScope Picasso private app mega scope
274
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
275
- * @applicableIdentity APP
276
- * @returns Updated resource.
277
- * @fqn wix.bookings.resources.v2.ResourcesService.UpdateResource
278
- */
279
- export async function updateResource(_id, resource) {
280
- // @ts-ignore
281
- const { httpClient, sideEffects } = arguments[2];
282
- const payload = renameKeysFromSDKRequestToRESTRequest({
283
- resource: { ...resource, id: _id },
284
- });
285
- const reqOpts = ambassadorWixBookingsResourcesV2Resource.updateResource(payload);
286
- sideEffects?.onSiteCall?.();
287
- try {
288
- const result = await httpClient.request(reqOpts);
289
- sideEffects?.onSuccess?.(result);
290
- return renameKeysFromRESTResponseToSDKResponse(result.data)?.resource;
291
- }
292
- catch (err) {
293
- const transformedError = sdkTransformError(err, {
294
- spreadPathsToArguments: { resource: '$[1]' },
295
- explicitPathsToArguments: { 'resource.id': '$[0]' },
296
- singleArgumentUnchanged: false,
297
- }, ['_id', 'resource']);
298
- sideEffects?.onError?.(err);
299
- throw transformedError;
300
- }
301
- }
302
- /**
303
- * Deletes a resource.
304
- *
305
- *
306
- * Deleting a resource cancels its event schedule and all its working hour
307
- * schedules that aren't shared with another resource. Learn more about
308
- * _how Bookings uses the Calendar APIs_
309
- * ([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)).
310
- * @param resourceId - ID of the resource to delete.
311
- * @public
312
- * @documentationMaturity preview
313
- * @requiredField resourceId
314
- * @permissionId BOOKINGS.RESOURCE_DELETE
315
- * @permissionScope Manage Bookings
316
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
317
- * @permissionScope Manage Bookings - all permissions
318
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
319
- * @permissionScope Picasso private app mega scope
320
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
321
- * @applicableIdentity APP
322
- * @fqn wix.bookings.resources.v2.ResourcesService.DeleteResource
323
- */
324
- export async function deleteResource(resourceId) {
325
- // @ts-ignore
326
- const { httpClient, sideEffects } = arguments[1];
327
- const payload = renameKeysFromSDKRequestToRESTRequest({
328
- resourceId: resourceId,
329
- });
330
- const reqOpts = ambassadorWixBookingsResourcesV2Resource.deleteResource(payload);
331
- sideEffects?.onSiteCall?.();
332
- try {
333
- const result = await httpClient.request(reqOpts);
334
- sideEffects?.onSuccess?.(result);
335
- }
336
- catch (err) {
337
- const transformedError = sdkTransformError(err, {
338
- spreadPathsToArguments: {},
339
- explicitPathsToArguments: { resourceId: '$[0]' },
340
- singleArgumentUnchanged: false,
341
- }, ['resourceId']);
342
- sideEffects?.onError?.(err);
343
- throw transformedError;
344
- }
345
- }
346
- /**
347
- * Deletes multiple resources.
348
- *
349
- *
350
- * Refer to *Delete Resource*
351
- * ([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))
352
- * for more details.
353
- * @param ids - IDs of the resources to delete.
354
- * @public
355
- * @documentationMaturity preview
356
- * @requiredField ids
357
- * @permissionId BOOKINGS.RESOURCE_DELETE
358
- * @permissionScope Manage Bookings
359
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
360
- * @permissionScope Manage Bookings - all permissions
361
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
362
- * @permissionScope Picasso private app mega scope
363
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
364
- * @applicableIdentity APP
365
- * @fqn wix.bookings.resources.v2.ResourcesService.BulkDeleteResources
366
- */
367
- export async function bulkDeleteResources(ids) {
368
- // @ts-ignore
369
- const { httpClient, sideEffects } = arguments[1];
370
- const payload = renameKeysFromSDKRequestToRESTRequest({ ids: ids });
371
- const reqOpts = ambassadorWixBookingsResourcesV2Resource.bulkDeleteResources(payload);
372
- sideEffects?.onSiteCall?.();
373
- try {
374
- const result = await httpClient.request(reqOpts);
375
- sideEffects?.onSuccess?.(result);
376
- return renameKeysFromRESTResponseToSDKResponse(result.data);
377
- }
378
- catch (err) {
379
- const transformedError = sdkTransformError(err, {
380
- spreadPathsToArguments: {},
381
- explicitPathsToArguments: { ids: '$[0]' },
382
- singleArgumentUnchanged: false,
383
- }, ['ids']);
384
- sideEffects?.onError?.(err);
385
- throw transformedError;
386
- }
387
- }
388
- /**
389
- * Retrieves a list of resources matching the provided search criteria.
390
- *
391
- *
392
- * Refer to the *supported filters article*
393
- * ([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))
394
- * for a complete list of supported filters and sorting options.
395
- * @public
396
- * @documentationMaturity preview
397
- * @permissionId BOOKINGS.RESOURCE_READ
398
- * @permissionScope Read Bookings - Public Data
399
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
400
- * @permissionScope Manage Bookings
401
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
402
- * @permissionScope Read Bookings - Including Participants
403
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
404
- * @permissionScope Read Bookings - all read permissions
405
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
406
- * @permissionScope Manage Bookings - all permissions
407
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
408
- * @permissionScope Picasso private app mega scope
409
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
410
- * @applicableIdentity APP
411
- * @applicableIdentity VISITOR
412
- * @fqn wix.bookings.resources.v2.ResourcesService.SearchResources
413
- */
414
- export async function searchResources(options) {
415
- // @ts-ignore
416
- const { httpClient, sideEffects } = arguments[1];
417
- const payload = renameKeysFromSDKRequestToRESTRequest({
418
- search: options?.search,
419
- });
420
- const reqOpts = ambassadorWixBookingsResourcesV2Resource.searchResources(payload);
421
- sideEffects?.onSiteCall?.();
422
- try {
423
- const result = await httpClient.request(reqOpts);
424
- sideEffects?.onSuccess?.(result);
425
- return renameKeysFromRESTResponseToSDKResponse(result.data);
426
- }
427
- catch (err) {
428
- const transformedError = sdkTransformError(err, {
429
- spreadPathsToArguments: {},
430
- explicitPathsToArguments: { search: '$[0].search' },
431
- singleArgumentUnchanged: false,
432
- }, ['options']);
433
- sideEffects?.onError?.(err);
434
- throw transformedError;
435
- }
436
- }
437
- /**
438
- * Creates a query to retrieve a list of resources.
439
- *
440
- * The `queryResources()` function builds a query to retrieve a list of resources and returns a `ResourcesQueryBuilder` object.
441
- *
442
- * 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.
443
- *
444
- * 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.
445
- *
446
- * `queryResources()` runs with the following `ResourcesQueryBuilder` default that you can override:
447
- *
448
- * + `limit` is `50`.
449
- * + Sorted by `id` in ascending order.
450
- *
451
- * 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"`.
452
- *
453
- * 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`.
454
- * @public
455
- * @documentationMaturity preview
456
- * @permissionScope Read Bookings - Public Data
457
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
458
- * @permissionScope Manage Bookings
459
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
460
- * @permissionScope Read Bookings - Including Participants
461
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
462
- * @permissionScope Read Bookings - all read permissions
463
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
464
- * @permissionScope Manage Bookings - all permissions
465
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
466
- * @permissionScope Picasso private app mega scope
467
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
468
- * @permissionId BOOKINGS.RESOURCE_READ
469
- * @applicableIdentity APP
470
- * @applicableIdentity VISITOR
471
- * @fqn wix.bookings.resources.v2.ResourcesService.QueryResources
472
- */
473
- export function queryResources() {
474
- // @ts-ignore
475
- const { httpClient, sideEffects } = arguments[0];
476
- return queryBuilder({
477
- func: async (payload) => {
478
- const reqOpts = ambassadorWixBookingsResourcesV2Resource.queryResources(payload);
479
- sideEffects?.onSiteCall?.();
480
- try {
481
- const result = await httpClient.request(reqOpts);
482
- sideEffects?.onSuccess?.(result);
483
- return result;
484
- }
485
- catch (err) {
486
- sideEffects?.onError?.(err);
487
- throw err;
488
- }
489
- },
490
- requestTransformer: (query) => {
491
- const args = [query, {}];
492
- return renameKeysFromSDKRequestToRESTRequest({
493
- ...args?.[1],
494
- query: args?.[0],
495
- });
496
- },
497
- responseTransformer: ({ data }) => {
498
- const transformedData = renameKeysFromRESTResponseToSDKResponse(data);
499
- return {
500
- items: transformedData?.resources,
501
- pagingMetadata: transformedData?.pagingMetadata,
502
- };
503
- },
504
- errorTransformer: (err) => {
505
- const transformedError = sdkTransformError(err, {
506
- spreadPathsToArguments: {},
507
- explicitPathsToArguments: { query: '$[0]' },
508
- singleArgumentUnchanged: false,
509
- });
510
- throw transformedError;
511
- },
512
- pagingMethod: 'CURSOR',
513
- transformationPaths: {},
514
- });
515
- }
516
- /**
517
- * Counts resources according to given criteria.
518
- *
519
- *
520
- * Refer to the *supported filters article*
521
- * ([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))
522
- * for a complete list of supported filters and sorting options.
523
- * @public
524
- * @documentationMaturity preview
525
- * @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.
526
- * @permissionId BOOKINGS.RESOURCE_READ
527
- * @permissionScope Read Bookings - Public Data
528
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
529
- * @permissionScope Manage Bookings
530
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
531
- * @permissionScope Read Bookings - Including Participants
532
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
533
- * @permissionScope Read Bookings - all read permissions
534
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
535
- * @permissionScope Manage Bookings - all permissions
536
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
537
- * @permissionScope Picasso private app mega scope
538
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
539
- * @applicableIdentity APP
540
- * @applicableIdentity VISITOR
541
- * @fqn wix.bookings.resources.v2.ResourcesService.CountResources
542
- */
543
- export async function countResources(options) {
544
- // @ts-ignore
545
- const { httpClient, sideEffects } = arguments[1];
546
- const payload = renameKeysFromSDKRequestToRESTRequest({
547
- filter: options?.filter,
548
- search: options?.search,
549
- });
550
- const reqOpts = ambassadorWixBookingsResourcesV2Resource.countResources(payload);
551
- sideEffects?.onSiteCall?.();
552
- try {
553
- const result = await httpClient.request(reqOpts);
554
- sideEffects?.onSuccess?.(result);
555
- return renameKeysFromRESTResponseToSDKResponse(result.data);
556
- }
557
- catch (err) {
558
- const transformedError = sdkTransformError(err, {
559
- spreadPathsToArguments: {},
560
- explicitPathsToArguments: {
561
- filter: '$[0].filter',
562
- search: '$[0].search',
563
- },
564
- singleArgumentUnchanged: false,
565
- }, ['options']);
566
- sideEffects?.onError?.(err);
567
- throw transformedError;
568
- }
569
- }
570
- //# sourceMappingURL=bookings-resources-v2-resource-resources.universal.js.map
@@ -1 +0,0 @@
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,o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