@wix/bookings 1.0.38 → 1.0.40

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 (59) hide show
  1. package/build/cjs/index.d.ts +2 -1
  2. package/build/cjs/index.js +3 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/src/bookings-calendar-v1-session.http.js +6 -0
  5. package/build/cjs/src/bookings-calendar-v1-session.http.js.map +1 -1
  6. package/build/cjs/src/bookings-calendar-v1-session.types.d.ts +1 -1
  7. package/build/cjs/src/bookings-calendar-v1-session.universal.d.ts +1 -1
  8. package/build/cjs/src/bookings-calendar-v2-session-view.http.d.ts +7 -0
  9. package/build/cjs/src/bookings-calendar-v2-session-view.http.js +41 -0
  10. package/build/cjs/src/bookings-calendar-v2-session-view.http.js.map +1 -0
  11. package/build/cjs/src/bookings-calendar-v2-session-view.public.d.ts +4 -0
  12. package/build/cjs/src/bookings-calendar-v2-session-view.public.js +25 -0
  13. package/build/cjs/src/bookings-calendar-v2-session-view.public.js.map +1 -0
  14. package/build/cjs/src/bookings-calendar-v2-session-view.types.d.ts +1143 -0
  15. package/build/cjs/src/bookings-calendar-v2-session-view.types.js +141 -0
  16. package/build/cjs/src/bookings-calendar-v2-session-view.types.js.map +1 -0
  17. package/build/cjs/src/bookings-calendar-v2-session-view.universal.d.ts +1150 -0
  18. package/build/cjs/src/bookings-calendar-v2-session-view.universal.js +236 -0
  19. package/build/cjs/src/bookings-calendar-v2-session-view.universal.js.map +1 -0
  20. package/build/cjs/src/bookings-services-v2-service.http.d.ts +2 -17
  21. package/build/cjs/src/bookings-services-v2-service.http.js +3 -18
  22. package/build/cjs/src/bookings-services-v2-service.http.js.map +1 -1
  23. package/build/cjs/src/bookings-services-v2-service.public.d.ts +1 -1
  24. package/build/cjs/src/bookings-services-v2-service.types.d.ts +42 -33
  25. package/build/cjs/src/bookings-services-v2-service.types.js +1 -1
  26. package/build/cjs/src/bookings-services-v2-service.types.js.map +1 -1
  27. package/build/cjs/src/bookings-services-v2-service.universal.d.ts +45 -49
  28. package/build/cjs/src/bookings-services-v2-service.universal.js +6 -19
  29. package/build/cjs/src/bookings-services-v2-service.universal.js.map +1 -1
  30. package/build/es/index.d.ts +2 -1
  31. package/build/es/index.js +2 -1
  32. package/build/es/index.js.map +1 -1
  33. package/build/es/src/bookings-calendar-v1-session.http.js +6 -0
  34. package/build/es/src/bookings-calendar-v1-session.http.js.map +1 -1
  35. package/build/es/src/bookings-calendar-v1-session.types.d.ts +1 -1
  36. package/build/es/src/bookings-calendar-v1-session.universal.d.ts +1 -1
  37. package/build/es/src/bookings-calendar-v2-session-view.http.d.ts +7 -0
  38. package/build/es/src/bookings-calendar-v2-session-view.http.js +37 -0
  39. package/build/es/src/bookings-calendar-v2-session-view.http.js.map +1 -0
  40. package/build/es/src/bookings-calendar-v2-session-view.public.d.ts +4 -0
  41. package/build/es/src/bookings-calendar-v2-session-view.public.js +8 -0
  42. package/build/es/src/bookings-calendar-v2-session-view.public.js.map +1 -0
  43. package/build/es/src/bookings-calendar-v2-session-view.types.d.ts +1143 -0
  44. package/build/es/src/bookings-calendar-v2-session-view.types.js +138 -0
  45. package/build/es/src/bookings-calendar-v2-session-view.types.js.map +1 -0
  46. package/build/es/src/bookings-calendar-v2-session-view.universal.d.ts +1150 -0
  47. package/build/es/src/bookings-calendar-v2-session-view.universal.js +213 -0
  48. package/build/es/src/bookings-calendar-v2-session-view.universal.js.map +1 -0
  49. package/build/es/src/bookings-services-v2-service.http.d.ts +2 -17
  50. package/build/es/src/bookings-services-v2-service.http.js +3 -18
  51. package/build/es/src/bookings-services-v2-service.http.js.map +1 -1
  52. package/build/es/src/bookings-services-v2-service.public.d.ts +1 -1
  53. package/build/es/src/bookings-services-v2-service.types.d.ts +42 -33
  54. package/build/es/src/bookings-services-v2-service.types.js +1 -1
  55. package/build/es/src/bookings-services-v2-service.types.js.map +1 -1
  56. package/build/es/src/bookings-services-v2-service.universal.d.ts +45 -49
  57. package/build/es/src/bookings-services-v2-service.universal.js +6 -19
  58. package/build/es/src/bookings-services-v2-service.universal.js.map +1 -1
  59. package/package.json +2 -2
@@ -0,0 +1,213 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { serializer, transformError } from '@wix/metro-runtime/velo';
11
+ import * as ambassadorWixBookingsCalendarV2SessionView from './bookings-calendar-v2-session-view.http';
12
+ let __verbose = false;
13
+ function __log(...args) {
14
+ __verbose && console.log(...args);
15
+ }
16
+ function __inspect(obj) {
17
+ return obj;
18
+ }
19
+ export const __debug = {
20
+ verboseLogging: {
21
+ on: () => (__verbose = true),
22
+ off: () => (__verbose = false),
23
+ },
24
+ };
25
+ const _toVeloEntity = '$';
26
+ const _fromVeloEntity = '$';
27
+ export var Transparency;
28
+ (function (Transparency) {
29
+ Transparency["UNDEFINED"] = "UNDEFINED";
30
+ /** The schedule can have available slots during the session. */
31
+ Transparency["FREE"] = "FREE";
32
+ /** The schedule cannot have available slots during the session. Default value. */
33
+ Transparency["BUSY"] = "BUSY";
34
+ })(Transparency || (Transparency = {}));
35
+ export var LocationType;
36
+ (function (LocationType) {
37
+ LocationType["UNDEFINED"] = "UNDEFINED";
38
+ LocationType["OWNER_BUSINESS"] = "OWNER_BUSINESS";
39
+ LocationType["OWNER_CUSTOM"] = "OWNER_CUSTOM";
40
+ LocationType["CUSTOM"] = "CUSTOM";
41
+ })(LocationType || (LocationType = {}));
42
+ /** For future use */
43
+ export var LocationStatus;
44
+ (function (LocationStatus) {
45
+ LocationStatus["ACTIVE"] = "ACTIVE";
46
+ LocationStatus["INACTIVE"] = "INACTIVE";
47
+ })(LocationStatus || (LocationStatus = {}));
48
+ /** For future use */
49
+ export var LocationsLocationType;
50
+ (function (LocationsLocationType) {
51
+ LocationsLocationType["UNKNOWN"] = "UNKNOWN";
52
+ LocationsLocationType["BRANCH"] = "BRANCH";
53
+ LocationsLocationType["OFFICES"] = "OFFICES";
54
+ LocationsLocationType["RECEPTION"] = "RECEPTION";
55
+ LocationsLocationType["HEADQUARTERS"] = "HEADQUARTERS";
56
+ })(LocationsLocationType || (LocationsLocationType = {}));
57
+ /** Enumerates the days of the week. */
58
+ export var DayOfWeek;
59
+ (function (DayOfWeek) {
60
+ DayOfWeek["MONDAY"] = "MONDAY";
61
+ DayOfWeek["TUESDAY"] = "TUESDAY";
62
+ DayOfWeek["WEDNESDAY"] = "WEDNESDAY";
63
+ DayOfWeek["THURSDAY"] = "THURSDAY";
64
+ DayOfWeek["FRIDAY"] = "FRIDAY";
65
+ DayOfWeek["SATURDAY"] = "SATURDAY";
66
+ DayOfWeek["SUNDAY"] = "SUNDAY";
67
+ })(DayOfWeek || (DayOfWeek = {}));
68
+ export var ApprovalStatus;
69
+ (function (ApprovalStatus) {
70
+ /** Default. */
71
+ ApprovalStatus["UNDEFINED"] = "UNDEFINED";
72
+ /** Pending business approval. */
73
+ ApprovalStatus["PENDING"] = "PENDING";
74
+ /** Approved by the business. */
75
+ ApprovalStatus["APPROVED"] = "APPROVED";
76
+ /** Declined by the business. */
77
+ ApprovalStatus["DECLINED"] = "DECLINED";
78
+ })(ApprovalStatus || (ApprovalStatus = {}));
79
+ export var CalendarType;
80
+ (function (CalendarType) {
81
+ CalendarType["UNDEFINED"] = "UNDEFINED";
82
+ CalendarType["GOOGLE"] = "GOOGLE";
83
+ CalendarType["I_CAL"] = "I_CAL";
84
+ /** Use `MICROSOFT` instead. */
85
+ CalendarType["OUTLOOK"] = "OUTLOOK";
86
+ /** Use `MICROSOFT` instead. */
87
+ CalendarType["OFFICE_365"] = "OFFICE_365";
88
+ CalendarType["MICROSOFT"] = "MICROSOFT";
89
+ CalendarType["OTHER"] = "OTHER";
90
+ })(CalendarType || (CalendarType = {}));
91
+ export var Status;
92
+ (function (Status) {
93
+ Status["UNDEFINED"] = "UNDEFINED";
94
+ /** The session is confirmed. Default status. */
95
+ Status["CONFIRMED"] = "CONFIRMED";
96
+ /**
97
+ * The session is cancelled.
98
+ * A cancelled session can be the cancellation of a recurring session that should no longer be displayed or a deleted single session.
99
+ * The ListSessions returns cancelled sessions only if 'includeDelete' flag is set to true.
100
+ */
101
+ Status["CANCELLED"] = "CANCELLED";
102
+ })(Status || (Status = {}));
103
+ export var SessionType;
104
+ (function (SessionType) {
105
+ SessionType["UNDEFINED"] = "UNDEFINED";
106
+ /**
107
+ * The session creates an event on the calendar for the owner of the schedule that the session belongs to.
108
+ * Default type.
109
+ */
110
+ SessionType["EVENT"] = "EVENT";
111
+ /** The session represents a resource's available working hours. */
112
+ SessionType["WORKING_HOURS"] = "WORKING_HOURS";
113
+ /** Deprecated. please use WORKING_HOURS */
114
+ SessionType["TIME_AVAILABILITY"] = "TIME_AVAILABILITY";
115
+ /** Deprecated. The session represents a resource's available hours. please use WORKING_HOURS */
116
+ SessionType["AVAILABILITY"] = "AVAILABILITY";
117
+ })(SessionType || (SessionType = {}));
118
+ export var ConferenceType;
119
+ (function (ConferenceType) {
120
+ ConferenceType["UNDEFINED"] = "UNDEFINED";
121
+ /** API-generated online meeting. */
122
+ ConferenceType["ONLINE_MEETING_PROVIDER"] = "ONLINE_MEETING_PROVIDER";
123
+ /** User-defined meeting. */
124
+ ConferenceType["CUSTOM"] = "CUSTOM";
125
+ })(ConferenceType || (ConferenceType = {}));
126
+ export var Day;
127
+ (function (Day) {
128
+ /** Undefined. */
129
+ Day["UNDEFINED"] = "UNDEFINED";
130
+ /** Monday. */
131
+ Day["MON"] = "MON";
132
+ /** Tuesday. */
133
+ Day["TUE"] = "TUE";
134
+ /** Wednesday. */
135
+ Day["WED"] = "WED";
136
+ /** Thursday. */
137
+ Day["THU"] = "THU";
138
+ /** Friday. */
139
+ Day["FRI"] = "FRI";
140
+ /** Saturday. */
141
+ Day["SAT"] = "SAT";
142
+ /** Sunday. */
143
+ Day["SUN"] = "SUN";
144
+ })(Day || (Day = {}));
145
+ export var RecurringIntervalType;
146
+ (function (RecurringIntervalType) {
147
+ /** The default value. Sessions for this interval will be of type EVENT. */
148
+ RecurringIntervalType["UNDEFINED"] = "UNDEFINED";
149
+ /** A recurring interval of events */
150
+ RecurringIntervalType["EVENT"] = "EVENT";
151
+ /** Deprecated */
152
+ RecurringIntervalType["TIME_AVAILABILITY"] = "TIME_AVAILABILITY";
153
+ /** A recurring interval for availability */
154
+ RecurringIntervalType["AVAILABILITY"] = "AVAILABILITY";
155
+ })(RecurringIntervalType || (RecurringIntervalType = {}));
156
+ export var ScheduleStatus;
157
+ (function (ScheduleStatus) {
158
+ ScheduleStatus["UNDEFINED"] = "UNDEFINED";
159
+ /** The default value when the schedule is created. */
160
+ ScheduleStatus["CREATED"] = "CREATED";
161
+ /** The schedule has been canceled. */
162
+ ScheduleStatus["CANCELLED"] = "CANCELLED";
163
+ })(ScheduleStatus || (ScheduleStatus = {}));
164
+ const _getSessionViewRequest = {};
165
+ const _getSessionViewResponse = {};
166
+ /**
167
+ * Gets the sessions view information.
168
+ * E.g. the current view end date, or the future duration in days the view should strive for.
169
+ * @public
170
+ * @documentationMaturity preview
171
+ */
172
+ export function getSessionView() {
173
+ var _a, _b, _c;
174
+ return __awaiter(this, arguments, void 0, function* () {
175
+ const requestTransformation = {};
176
+ const responseTransformation = '$';
177
+ // @ts-ignore
178
+ const { httpClient, sideEffects } = arguments[0];
179
+ const { toAmbassadorRequest } = serializer({
180
+ rootSchema: _getSessionViewRequest,
181
+ depSchemas: {},
182
+ fqdnTransformation: {
183
+ paths: [],
184
+ transformation: _fromVeloEntity,
185
+ },
186
+ customTransformation: requestTransformation,
187
+ });
188
+ const { fromJSON } = serializer({
189
+ rootSchema: _getSessionViewResponse,
190
+ depSchemas: {},
191
+ fqdnTransformation: {
192
+ paths: [...['sessionView']],
193
+ transformation: _toVeloEntity,
194
+ },
195
+ customTransformation: responseTransformation,
196
+ });
197
+ const payload = toAmbassadorRequest([]);
198
+ const reqOpts = ambassadorWixBookingsCalendarV2SessionView.getSessionView(payload);
199
+ __log(`"GetSessionView" sending request with: ${__inspect(reqOpts)}`);
200
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
201
+ try {
202
+ const result = yield httpClient.request(reqOpts);
203
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
204
+ return fromJSON(result.data);
205
+ }
206
+ catch (err) {
207
+ const transformedError = transformError(err, requestTransformation, []);
208
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
209
+ throw transformedError;
210
+ }
211
+ });
212
+ }
213
+ //# sourceMappingURL=bookings-calendar-v2-session-view.universal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bookings-calendar-v2-session-view.universal.js","sourceRoot":"","sources":["../../../src/bookings-calendar-v2-session-view.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,0CAA0C,MAAM,0CAA0C,CAAC;AAEvG,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO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B,EAAE;gBAClB,KAAK,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;gBAC3B,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,EAAE,CAAC,CAAC;QAExC,MAAM,OAAO,GACX,0CAA0C,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAErE,KAAK,CAAC,0CAA0C,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAEtE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE,EAAE,CAAC,CAAC;YACxE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
@@ -1,21 +1,6 @@
1
1
  import { RequestOptionsFactory } from '@wix/sdk-types';
2
2
  import { GetServiceRequest, GetServiceResponse, QueryServicesRequest, QueryServicesResponse } from './bookings-services-v2-service.types';
3
- /** Get a Service by id. */
3
+ /** Retrieves a service. */
4
4
  export declare function getService(payload: GetServiceRequest): RequestOptionsFactory<GetServiceResponse>;
5
- /**
6
- * <!--ONLY:REST-->
7
- * Query Services using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) with [Cursor paging](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging) only.
8
- * Retrieves a list of services according to the provided filters and paging.
9
- *
10
- * To retrieve all services use an empty query:
11
- * ```javascript
12
- * {
13
- * "query": {}
14
- * }
15
- * ```
16
- * >**Notes:**
17
- * > + Use UTC when specifying filters with dates.
18
- * > - Only 1 use at a time of each filter once in the same query is supported. If a filter is defined more than once in a query, only the first occurrence is taken.
19
- * <!--END:ONLY:REST-->
20
- */
5
+ /** To learn about working with Query endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language), [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection). */
21
6
  export declare function queryServices(payload: QueryServicesRequest): RequestOptionsFactory<QueryServicesResponse>;
@@ -16,7 +16,7 @@ const _getServiceRequest = {};
16
16
  const _getServiceResponse = { service: '_service' };
17
17
  const _image = { urlExpirationDate: 'google.protobuf.Timestamp' };
18
18
  const _location = {
19
- address: '_address',
19
+ calculatedAddress: '_address',
20
20
  business: '_businessLocationOptions',
21
21
  custom: '_customLocationOptions',
22
22
  };
@@ -84,7 +84,7 @@ function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
84
84
  };
85
85
  return resolveUrl(Object.assign(opts, { domainToMappings }));
86
86
  }
87
- /** Get a Service by id. */
87
+ /** Retrieves a service. */
88
88
  export function getService(payload) {
89
89
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_getServiceRequest, {});
90
90
  const { fromJSON: fromRes } = serializer(_getServiceResponse, {
@@ -118,22 +118,7 @@ export function getService(payload) {
118
118
  __getService.fromReq = fromReq;
119
119
  return __getService;
120
120
  }
121
- /**
122
- * <!--ONLY:REST-->
123
- * Query Services using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) with [Cursor paging](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging) only.
124
- * Retrieves a list of services according to the provided filters and paging.
125
- *
126
- * To retrieve all services use an empty query:
127
- * ```javascript
128
- * {
129
- * "query": {}
130
- * }
131
- * ```
132
- * >**Notes:**
133
- * > + Use UTC when specifying filters with dates.
134
- * > - Only 1 use at a time of each filter once in the same query is supported. If a filter is defined more than once in a query, only the first occurrence is taken.
135
- * <!--END:ONLY:REST-->
136
- */
121
+ /** To learn about working with Query endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language), [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection). */
137
122
  export function queryServices(payload) {
138
123
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_queryServicesRequest, {});
139
124
  const { fromJSON: fromRes } = serializer(_queryServicesResponse, {
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-services-v2-service.http.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAUhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,cAAc,GAAG;IACrB,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;CACzC,CAAC;AACF,MAAM,wBAAwB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACzD,MAAM,sBAAsB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACvD,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAC9B,MAAM,mBAAmB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACpD,MAAM,MAAM,GAAG,E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7B,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CACrD,qBAAqB,EACrB,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,sBAAsB,EAAE;QAC/D,QAAQ;QACR,gBAAgB;QAChB,cAAc;QACd,wBAAwB;QACxB,sBAAsB;QACtB,MAAM;QACN,SAAS;QACT,MAAM;QACN,UAAU;QACV,SAAS;QACT,QAAQ;QACR,KAAK;KACN,CAAC,CAAC;IAEH,SAAS,eAAe,CAAC,EAAE,IAAI,EAAO;QACpC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,MAAa;YACrB,GAAG,EAAE,8CAA8C,CAAC;gBAClD,SAAS,EAAE,oBAAoB;gBAC/B,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,eAAe,CAAC,OAAO,GAAG,OAAO,CAAC;IAElC,OAAO,eAAe,CAAC;AACzB,CAAC"}
1
+ {"version":3,"file":"bookings-services-v2-service.http.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAUhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,cAAc,GAAG;IACrB,WAAW,EAAE,2B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E,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,MAAM,EAAE,iBAAiB,CAAC,cAAc,CAAC;YACzC,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,YAAY,CAAC,OAAO,GAAG,OAAO,CAAC;IAE/B,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,4TAA4T;AAC5T,MAAM,UAAU,aAAa,CAC3B,OAA6B;IAE7B,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CACrD,qBAAqB,EACrB,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,sBAAsB,EAAE;QAC/D,QAAQ;QACR,gBAAgB;QAChB,cAAc;QACd,wBAAwB;QACxB,sBAAsB;QACtB,MAAM;QACN,SAAS;QACT,MAAM;QACN,UAAU;QACV,SAAS;QACT,QAAQ;QACR,KAAK;KACN,CAAC,CAAC;IAEH,SAAS,eAAe,CAAC,EAAE,IAAI,EAAO;QACpC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,MAAa;YACrB,GAAG,EAAE,8CAA8C,CAAC;gBAClD,SAAS,EAAE,oBAAoB;gBAC/B,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,eAAe,CAAC,OAAO,GAAG,OAAO,CAAC;IAElC,OAAO,eAAe,CAAC;AACzB,CAAC"}
@@ -2,4 +2,4 @@ import { HttpClient } from '@wix/sdk-types';
2
2
  export declare function getService(httpClient: HttpClient): (serviceId: string) => Promise<import("./bookings-services-v2-service.universal").Service>;
3
3
  export declare function queryServices(httpClient: HttpClient): () => import("./bookings-services-v2-service.universal").ServicesQueryBuilder;
4
4
  export { ServiceType, RateType, LocationType, SortOrder, Status, Event, InvalidSlugError, } from './bookings-services-v2-service.universal';
5
- export { Service, Media, MediaItem, MediaItemItemOneOf, V2Category, Form, FormSettings, Payment, PaymentRateOneOf, FixedPayment, Money, CustomPayment, VariedPayment, PaymentOptions, OnlineBooking, Conferencing, Location, LocationOptionsOneOf, Address, StreetAddress, AddressLocation, BusinessLocationOptions, CustomLocationOptions, BookingPolicy, PolicyDescription, LimitEarlyBookingPolicy, LimitLateBookingPolicy, BookAfterStartPolicy, CancellationPolicy, ReschedulePolicy, WaitlistPolicy, ParticipantsPolicy, Schedule, AvailabilityConstraints, Slug, URLs, ExtendedFields, SeoSchema, Keyword, Tag, Settings, CreateServiceRequest, CreateServiceResponse, GetServiceRequest, GetServiceResponse, UpdateServiceRequest, UpdateServiceResponse, DeleteServiceRequest, DeleteServiceResponse, QueryServicesRequest, CursorQuery, CursorQueryPagingMethodOneOf, Sorting, CursorPaging, QueryServicesResponse, CursorPagingMetadata, Cursors, CountServicesRequest, CountServicesResponse, CategoryNotification, Category, Empty, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, ExtendedFieldsUpdatedEvent, AddStaffMembersToServiceRequest, AddStaffMembersToServiceResponse, StaffMember, InvalidStaffMember, RemoveStaffMembersFromServiceRequest, RemoveStaffMembersFromServiceResponse, ConnectPricingPlansToServiceRequest, ConnectPricingPlansToServiceResponse, InvalidPricingPlan, DisconnectPricingPlansFromServiceRequest, DisconnectPricingPlansFromServiceResponse, SetCustomSlugRequest, SetCustomSlugResponse, ValidateSlugRequest, ValidateSlugResponse, ServicesQueryResult, ServicesQueryBuilder, } from './bookings-services-v2-service.universal';
5
+ export { Service, Media, MediaItem, MediaItemItemOneOf, V2Category, Form, FormSettings, Payment, PaymentRateOneOf, FixedPayment, Money, CustomPayment, VariedPayment, PaymentOptions, OnlineBooking, Conferencing, Location, LocationOptionsOneOf, Address, AddressStreetOneOf, StreetAddress, AddressLocation, BusinessLocationOptions, CustomLocationOptions, BookingPolicy, PolicyDescription, LimitEarlyBookingPolicy, LimitLateBookingPolicy, BookAfterStartPolicy, CancellationPolicy, ReschedulePolicy, WaitlistPolicy, ParticipantsPolicy, Schedule, AvailabilityConstraints, Slug, URLs, ExtendedFields, SeoSchema, Keyword, Tag, Settings, CreateServiceRequest, CreateServiceResponse, GetServiceRequest, GetServiceResponse, UpdateServiceRequest, UpdateServiceResponse, DeleteServiceRequest, DeleteServiceResponse, QueryServicesRequest, CursorQuery, CursorQueryPagingMethodOneOf, Sorting, CursorPaging, QueryServicesResponse, CursorPagingMetadata, Cursors, CountServicesRequest, CountServicesResponse, CategoryNotification, Category, Empty, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, ExtendedFieldsUpdatedEvent, AddStaffMembersToServiceRequest, AddStaffMembersToServiceResponse, StaffMember, InvalidStaffMember, RemoveStaffMembersFromServiceRequest, RemoveStaffMembersFromServiceResponse, ConnectPricingPlansToServiceRequest, ConnectPricingPlansToServiceResponse, InvalidPricingPlan, DisconnectPricingPlansFromServiceRequest, DisconnectPricingPlansFromServiceResponse, SetCustomSlugRequest, SetCustomSlugResponse, ValidateSlugRequest, ValidateSlugResponse, ServicesQueryResult, ServicesQueryBuilder, } from './bookings-services-v2-service.universal';
@@ -312,7 +312,7 @@ export interface Location extends LocationOptionsOneOf {
312
312
  * The location address, based on the location `type`. If `type` is `CUSTOMER`, this address is empty.
313
313
  * @readonly
314
314
  */
315
- address?: Address;
315
+ calculatedAddress?: Address;
316
316
  /** The service is offered at the referenced business location. */
317
317
  business?: BusinessLocationOptions;
318
318
  /** The service is offered at a custom location. */
@@ -327,14 +327,14 @@ export interface LocationOptionsOneOf {
327
327
  }
328
328
  export declare enum LocationType {
329
329
  UNKNOWN_LOCATION_TYPE = "UNKNOWN_LOCATION_TYPE",
330
- /** The location is unique to this service and isn't defined as one of the business locations. */
330
+ /** The location is unique to this service and isn't defined as one of the business locations. `CUSTOM` is the equivalent of the `OWNER_CUSTOM` location type in [Schedules & Sessions API](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions). */
331
331
  CUSTOM = "CUSTOM",
332
332
  /** The location is one of the business locations available using the Business Info [Locations API](https://dev.wix.com/api/rest/business-info/locations). */
333
333
  BUSINESS = "BUSINESS",
334
334
  /** The location can be determined by the customer and is not set up beforehand. This is applicable to services of type `APPOINTMENT` only. */
335
335
  CUSTOMER = "CUSTOMER"
336
336
  }
337
- export interface Address {
337
+ export interface Address extends AddressStreetOneOf {
338
338
  /** 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
339
339
  country?: string | null;
340
340
  /** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format. */
@@ -343,10 +343,19 @@ export interface Address {
343
343
  city?: string | null;
344
344
  /** Postal or zip code. */
345
345
  postalCode?: string | null;
346
- /** Street address. Includes street name, number, and apartment number in separate fields. */
347
- streetAddress?: StreetAddress;
348
346
  /** Full address of the location. */
349
347
  formattedAddress?: string | null;
348
+ /** Street name and number. */
349
+ streetAddress?: StreetAddress;
350
+ /** Main address line, usually street and number as free text. */
351
+ addressLine?: string | null;
352
+ }
353
+ /** @oneof */
354
+ export interface AddressStreetOneOf {
355
+ /** Street name and number. */
356
+ streetAddress?: StreetAddress;
357
+ /** Main address line, usually street and number as free text. */
358
+ addressLine?: string | null;
350
359
  }
351
360
  /** Street address. Includes street name, number, and apartment number in separate fields. */
352
361
  export interface StreetAddress {
@@ -702,41 +711,41 @@ export interface Settings {
702
711
  keywords?: Keyword[];
703
712
  }
704
713
  export interface CreateServiceRequest {
705
- /** Service to be created */
714
+ /** Service to be created. */
706
715
  service?: Service;
707
716
  }
708
717
  export interface CreateServiceResponse {
709
- /** The created Service */
718
+ /** The created service. */
710
719
  service?: Service;
711
720
  }
712
721
  export interface GetServiceRequest {
713
- /** Id of the Service to retrieve */
722
+ /** ID of the service to retrieve. */
714
723
  serviceId: string;
715
724
  }
716
725
  export interface GetServiceResponse {
717
- /** The retrieved Service */
726
+ /** The retrieved service. */
718
727
  service?: Service;
719
728
  }
720
729
  export interface UpdateServiceRequest {
721
- /** Service to be updated, may be partial */
730
+ /** Service to update. [Partial updates](https:\\example.com) are supported. */
722
731
  service?: Service;
723
- /** Explicit list of fields to update */
732
+ /** Explicit list of fields to update. */
724
733
  mask?: string[];
725
734
  }
726
735
  export interface UpdateServiceResponse {
727
- /** The updated Service */
736
+ /** The updated service. */
728
737
  service?: Service;
729
738
  }
730
739
  export interface DeleteServiceRequest {
731
- /** Id of the Service to delete */
740
+ /** ID of the service to delete. */
732
741
  serviceId?: string;
733
- /** The revision of the Service */
742
+ /** The revision of the service. */
734
743
  revision?: string;
735
744
  }
736
745
  export interface DeleteServiceResponse {
737
746
  }
738
747
  export interface QueryServicesRequest {
739
- /** WQL expression */
748
+ /** WQL expression. */
740
749
  query: CursorQuery;
741
750
  }
742
751
  export interface CursorQuery extends CursorQueryPagingMethodOneOf {
@@ -785,9 +794,9 @@ export interface CursorPaging {
785
794
  cursor?: string | null;
786
795
  }
787
796
  export interface QueryServicesResponse {
788
- /** The retrieved Services */
797
+ /** The retrieved services. */
789
798
  services?: Service[];
790
- /** Paging metadata, count and [cursors](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
799
+ /** Paging metadata, including offset, count and [cursors](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
791
800
  pagingMetadata?: CursorPagingMetadata;
792
801
  }
793
802
  export interface CursorPagingMetadata {
@@ -809,11 +818,11 @@ export interface Cursors {
809
818
  prev?: string | null;
810
819
  }
811
820
  export interface CountServicesRequest {
812
- /** The filters to perform the count by. */
821
+ /** The filters for performing the count. */
813
822
  filter?: Record<string, any> | null;
814
823
  }
815
824
  export interface CountServicesResponse {
816
- /** The number of Services matching the provided filter in the request. */
825
+ /** The number of services matching the given filter. */
817
826
  count?: number;
818
827
  }
819
828
  /** An event sent every time a category entity is changed. */
@@ -925,13 +934,13 @@ export interface ExtendedFieldsUpdatedEvent {
925
934
  currentEntityAsJson?: string;
926
935
  }
927
936
  export interface AddStaffMembersToServiceRequest {
928
- /** Id of the service to add the staff member to. */
937
+ /** ID of the service to add the staff members to. */
929
938
  serviceId?: string;
930
- /** The staff id to add to the service. */
939
+ /** IDs of the staff members to add to the service. */
931
940
  staffMembersIds?: string[];
932
941
  }
933
942
  export interface AddStaffMembersToServiceResponse {
934
- /** The added staff members */
943
+ /** The added staff members. */
935
944
  staffMembers?: StaffMember[];
936
945
  }
937
946
  export interface StaffMember {
@@ -965,21 +974,21 @@ export interface InvalidStaffMember {
965
974
  message?: string;
966
975
  }
967
976
  export interface RemoveStaffMembersFromServiceRequest {
968
- /** Id of the service to remove the staff member from. */
977
+ /** ID of the service to remove the staff members from. */
969
978
  serviceId?: string;
970
- /** The staff id to remove from the service. */
979
+ /** IDs of the staff members to remove from the service. */
971
980
  staffMembersIds?: string[];
972
981
  }
973
982
  export interface RemoveStaffMembersFromServiceResponse {
974
983
  }
975
984
  export interface ConnectPricingPlansToServiceRequest {
976
- /** Id of the service to add the pricing plan to. */
985
+ /** ID of the service to add the pricing plans to. */
977
986
  serviceId?: string;
978
- /** The pricing plan id to add to the service. */
987
+ /** IDs of the pricing plans to connect to the service. */
979
988
  pricingPlansIds?: string[];
980
989
  }
981
990
  export interface ConnectPricingPlansToServiceResponse {
982
- /** The pricing plan id connected to the service. */
991
+ /** IDs of the pricing plans connect to the service. */
983
992
  pricingPlansIds?: string[];
984
993
  }
985
994
  export interface InvalidPricingPlan {
@@ -989,15 +998,15 @@ export interface InvalidPricingPlan {
989
998
  message?: string;
990
999
  }
991
1000
  export interface DisconnectPricingPlansFromServiceRequest {
992
- /** Id of the service to remove the pricing plan from. */
1001
+ /** ID of the service to disconnect the pricing plans from. */
993
1002
  serviceId?: string;
994
- /** The pricing plan id to disconnect from the service. */
1003
+ /** ID of the pricing plans to disconnect from the service. */
995
1004
  pricingPlansIds?: string[];
996
1005
  }
997
1006
  export interface DisconnectPricingPlansFromServiceResponse {
998
1007
  }
999
1008
  export interface SetCustomSlugRequest {
1000
- /** Id of the service to assign the custom slug to. */
1009
+ /** ID of the service to assign the custom slug to. */
1001
1010
  serviceId?: string;
1002
1011
  /** The custom name to set as the active slug for the service. */
1003
1012
  slugName?: string;
@@ -1011,11 +1020,11 @@ export interface ValidateSlugRequest {
1011
1020
  slugName?: string;
1012
1021
  }
1013
1022
  export interface ValidateSlugResponse {
1014
- /** true if the requested name is valid, false if invalid. */
1023
+ /** Whether the requested slug name is valid. */
1015
1024
  valid?: boolean;
1016
- /** The requested custom name to validate, if valid - it can be set as a slug for the service, and will be populated with the requested slug, if valid is false - will be empty. */
1025
+ /** The requested custom slug name to validate. If valid, the slug name can be set as a slug for the service and is populated with the requested slug. Otherwise, `slugName` is empty. */
1017
1026
  slugName?: string | null;
1018
- /** In case the slug is invalid, this field would be populated with the reasons for why the slug is invalid, errors may include SLUG_IS_TOO_LONG, SLUG_CONTAIN_ILLEGAL_CHARACTERS and SLUG_ALREADY_EXISTS */
1027
+ /** If the slug is invalid, this field is populated with the reasons why the slug is invalid. Validation errors may include `SLUG_IS_TOO_LONG`, `SLUG_CONTAIN_ILLEGAL_CHARACTERS`, and `SLUG_ALREADY_EXISTS`. */
1019
1028
  errors?: InvalidSlugError[];
1020
1029
  }
1021
1030
  export declare enum InvalidSlugError {
@@ -23,7 +23,7 @@ export var RateType;
23
23
  export var LocationType;
24
24
  (function (LocationType) {
25
25
  LocationType["UNKNOWN_LOCATION_TYPE"] = "UNKNOWN_LOCATION_TYPE";
26
- /** The location is unique to this service and isn't defined as one of the business locations. */
26
+ /** The location is unique to this service and isn't defined as one of the business locations. `CUSTOM` is the equivalent of the `OWNER_CUSTOM` location type in [Schedules & Sessions API](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions). */
27
27
  LocationType["CUSTOM"] = "CUSTOM";
28
28
  /** The location is one of the business locations available using the Business Info [Locations API](https://dev.wix.com/api/rest/business-info/locations). */
29
29
  LocationType["BUSINESS"] = "BUSINESS";
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-services-v2-service.types.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.types.ts"],"names":[],"mappings":"AAsFA,MAAM,CAAN,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,qCAAqC;IACrC,0CAA2B,CAAA;IAC3B,8BAA8B;IAC9B,8BAAe,CAAA;IACf,+BAA+B;IAC/B,gCAAiB,CAAA;AACnB,CAAC,EARW,WAAW,KAAX,WAAW,QAQtB;AAmID,MAAM,CAAN,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,qCAAqC;IACrC,2BAAe,CAAA;IACf,wEAAwE;IACxE,6BAAiB,CAAA;IACjB,uFAAuF;IACvF,6BAAiB,CAAA;IACjB,8CAA8C;IAC9C,6BAAiB,CAAA;AACnB,CAAC,EAVW,QAAQ,KAAR,QAAQ,QAUnB;AAiHD,MAAM,CAAN,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,iGAAiG;IACjG,iCAAiB,CAAA;IACjB,6JAA6J;IAC7J,qCAAqB,CAAA;IACrB,8IAA8I;IAC9I,qCAAqB,CAAA;AACvB,CAAC,EARW,YAAY,KAAZ,YAAY,QAQvB;AAudD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AA8ED,MAAM,CAAN,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,sBAAsB;IACtB,6BAAmB,CAAA;IACnB,2BAA2B;IAC3B,6BAAmB,CAAA;AACrB,CAAC,EALW,MAAM,KAAN,MAAM,QAKjB;AAED,MAAM,CAAN,IAAY,KAIX;AAJD,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;AACrB,CAAC,EAJW,KAAK,KAAL,KAAK,QAIhB;AA4LD,MAAM,CAAN,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,6DAAyC,CAAA;IACzC,gFAAgF;IAChF,yDAAqC,CAAA;IACrC,0DAA0D;IAC1D,uFAAmE,CAAA;IACnE,6EAA6E;IAC7E,+DAA2C,CAAA;AAC7C,CAAC,EARW,gBAAgB,KAAhB,gBAAgB,QAQ3B"}
1
+ {"version":3,"file":"bookings-services-v2-service.types.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.types.ts"],"names":[],"mappings":"AAsFA,MAAM,CAAN,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,qCAAqC;IACrC,0CAA2B,CAAA;IAC3B,8BAA8B;IAC9B,8BAAe,CAAA;IACf,+BAA+B;IAC/B,gCAAiB,CAAA;AACnB,CAAC,EARW,WAAW,KAAX,WAAW,QAQtB;AAmID,MAAM,CAAN,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,qCAAqC;IACrC,2BAAe,CAAA;IACf,wEAAwE;IACxE,6BAAiB,CAAA;IACjB,uFAAuF;IACvF,6BAAiB,CAAA;IACjB,8CAA8C;IAC9C,6BAAiB,CAAA;AACnB,CAAC,EAVW,QAAQ,KAAR,QAAQ,QAUnB;AAiHD,MAAM,CAAN,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,iQAAiQ;IACjQ,iCAAiB,CAAA;IACjB,6JAA6J;IAC7J,qCAAqB,CAAA;IACrB,8IAA8I;IAC9I,qCAAqB,CAAA;AACvB,CAAC,EARW,YAAY,KAAZ,YAAY,QAQvB;AAieD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS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