@wix/auto_sdk_calendar_schedules 1.0.68 → 1.0.70

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.
package/build/cjs/meta.js CHANGED
@@ -78,6 +78,9 @@ function getSchedule(payload) {
78
78
  method: "GET",
79
79
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.GetSchedule",
80
80
  packageName: PACKAGE_NAME,
81
+ migrationOptions: {
82
+ optInTransformResponse: true
83
+ },
81
84
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
82
85
  protoPath: "/v3/schedules/{scheduleId}",
83
86
  data: payload,
@@ -105,6 +108,9 @@ function querySchedules(payload) {
105
108
  method: "POST",
106
109
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.QuerySchedules",
107
110
  packageName: PACKAGE_NAME,
111
+ migrationOptions: {
112
+ optInTransformResponse: true
113
+ },
108
114
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
109
115
  protoPath: "/v3/schedules/query",
110
116
  data: payload,
@@ -141,6 +147,9 @@ function createSchedule(payload) {
141
147
  method: "POST",
142
148
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.CreateSchedule",
143
149
  packageName: PACKAGE_NAME,
150
+ migrationOptions: {
151
+ optInTransformResponse: true
152
+ },
144
153
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
145
154
  protoPath: "/v3/schedules",
146
155
  data: serializedData,
@@ -181,6 +190,9 @@ function updateSchedule(payload) {
181
190
  method: "PATCH",
182
191
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.UpdateSchedule",
183
192
  packageName: PACKAGE_NAME,
193
+ migrationOptions: {
194
+ optInTransformResponse: true
195
+ },
184
196
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
185
197
  protoPath: "/v3/schedules/{schedule.id}",
186
198
  data: serializedData,
@@ -208,6 +220,9 @@ function cancelSchedule(payload) {
208
220
  method: "POST",
209
221
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.CancelSchedule",
210
222
  packageName: PACKAGE_NAME,
223
+ migrationOptions: {
224
+ optInTransformResponse: true
225
+ },
211
226
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
212
227
  protoPath: "/v3/schedules/{scheduleId}/cancel",
213
228
  data: payload,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../meta.ts","../../src/calendar-v3-schedule-schedules.http.ts","../../src/calendar-v3-schedule-schedules.meta.ts"],"sourcesContent":["export * from './src/calendar-v3-schedule-schedules.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixCalendarSchedulesV3SchedulesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/schedules-3',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/calendar/v3/schedules',\n destPath: '/v3/schedules',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/calendar/v3/schedules',\n destPath: '/v3/schedules',\n },\n ],\n _: [\n {\n srcPath: '/_api/calendar/v3/schedules',\n destPath: '/v3/schedules',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/calendar/v3/schedules',\n destPath: '/v3/schedules',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_calendar_schedules';\n\n/** Retrieves a schedule. */\nexport function getSchedule(payload: object): RequestOptionsFactory<any> {\n function __getSchedule({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'GET' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.GetSchedule',\n packageName: PACKAGE_NAME,\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules/{scheduleId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getSchedule;\n}\n\n/**\n * Creates a query to retrieve a list of schedules.\n *\n * The `querySchedules()` function builds a query to retrieve a list of tip settings and returns a `SchedulesQueryBuilder` object.\n *\n * 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/calendar/schedules/schedules-query-builder/find) function.\n *\n * You can refine the query by chaining `SchedulesQueryBuilder` functions onto the query. `SchedulesQueryBuilder` functions enable you to sort, filter, and control the results that `querySchedules()` returns.\n *\n * `querySchedules()` runs with the following `SchedulesQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `id` in ascending order.\n *\n * The functions that are chained to `querySchedules()` are applied in the order they are called. For example, if you apply `ascending(\"status\")` and then `ascending(\"externalId\")`, the results are sorted first by the `\"status\"`, and then, if there are multiple results with the same `\"status\"`, the items are sorted by `\"externalId\"`.\n *\n * The following `SchedulesQueryBuilder` functions are supported for the `querySchedules()` function. For a full description of the tip settings object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-result/items) property in `SchedulesQueryResult`.\n */\nexport function querySchedules(payload: object): RequestOptionsFactory<any> {\n function __querySchedules({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'POST' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.QuerySchedules',\n packageName: PACKAGE_NAME,\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedules.createdDate' },\n { path: 'schedules.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __querySchedules;\n}\n\n/**\n * Creates a schedule.\n *\n *\n * If you want the schedule's events to appear in the\n * [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),\n * you must set `appId` to the ID of the Wix Bookings app by providing\n * `{\"appId\": \"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"}`.\n */\nexport function createSchedule(payload: object): RequestOptionsFactory<any> {\n function __createSchedule({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'POST' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.CreateSchedule',\n packageName: PACKAGE_NAME,\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createSchedule;\n}\n\n/**\n * Updates a schedule.\n *\n *\n * Each time the schedule is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the schedule.\n * This ensures you're working with the latest schedule\n * and prevents unintended overwrites.\n */\nexport function updateSchedule(payload: object): RequestOptionsFactory<any> {\n function __updateSchedule({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldmask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'PATCH' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.UpdateSchedule',\n packageName: PACKAGE_NAME,\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules/{schedule.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateSchedule;\n}\n\n/**\n * Sets a schedule's `status` to `CANCELLED`.\n *\n *\n * Also cancels future events belonging to the schedule.\n *\n * Once a schedule is marked as `CANCELLED`, you can't reactivate it, update it,\n * or assign new events.\n */\nexport function cancelSchedule(payload: object): RequestOptionsFactory<any> {\n function __cancelSchedule({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'POST' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.CancelSchedule',\n packageName: PACKAGE_NAME,\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules/{scheduleId}/cancel',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __cancelSchedule;\n}\n","import * as ambassadorWixCalendarV3Schedule from './calendar-v3-schedule-schedules.http.js';\nimport * as ambassadorWixCalendarV3ScheduleTypes from './calendar-v3-schedule-schedules.types.js';\nimport * as ambassadorWixCalendarV3ScheduleUniversalTypes from './calendar-v3-schedule-schedules.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getSchedule(): __PublicMethodMetaInfo<\n 'GET',\n { scheduleId: string },\n ambassadorWixCalendarV3ScheduleUniversalTypes.GetScheduleRequest,\n ambassadorWixCalendarV3ScheduleTypes.GetScheduleRequest,\n ambassadorWixCalendarV3ScheduleUniversalTypes.GetScheduleResponse,\n ambassadorWixCalendarV3ScheduleTypes.GetScheduleResponse\n> {\n const payload = { scheduleId: ':scheduleId' } as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Schedule.getSchedule(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/schedules/{scheduleId}',\n pathParams: { scheduleId: 'scheduleId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function querySchedules(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixCalendarV3ScheduleUniversalTypes.QuerySchedulesRequest,\n ambassadorWixCalendarV3ScheduleTypes.QuerySchedulesRequest,\n ambassadorWixCalendarV3ScheduleUniversalTypes.QuerySchedulesResponse,\n ambassadorWixCalendarV3ScheduleTypes.QuerySchedulesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Schedule.querySchedules(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/schedules/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createSchedule(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixCalendarV3ScheduleUniversalTypes.CreateScheduleRequest,\n ambassadorWixCalendarV3ScheduleTypes.CreateScheduleRequest,\n ambassadorWixCalendarV3ScheduleUniversalTypes.CreateScheduleResponse,\n ambassadorWixCalendarV3ScheduleTypes.CreateScheduleResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Schedule.createSchedule(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/schedules',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateSchedule(): __PublicMethodMetaInfo<\n 'PATCH',\n { scheduleId: string },\n ambassadorWixCalendarV3ScheduleUniversalTypes.UpdateScheduleRequest,\n ambassadorWixCalendarV3ScheduleTypes.UpdateScheduleRequest,\n ambassadorWixCalendarV3ScheduleUniversalTypes.UpdateScheduleResponse,\n ambassadorWixCalendarV3ScheduleTypes.UpdateScheduleResponse\n> {\n const payload = { schedule: { id: ':scheduleId' } } as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Schedule.updateSchedule(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v3/schedules/{schedule.id}',\n pathParams: { scheduleId: 'scheduleId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function cancelSchedule(): __PublicMethodMetaInfo<\n 'POST',\n { scheduleId: string },\n ambassadorWixCalendarV3ScheduleUniversalTypes.CancelScheduleRequest,\n ambassadorWixCalendarV3ScheduleTypes.CancelScheduleRequest,\n ambassadorWixCalendarV3ScheduleUniversalTypes.CancelScheduleResponse,\n ambassadorWixCalendarV3ScheduleTypes.CancelScheduleResponse\n> {\n const payload = { scheduleId: ':scheduleId' } as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Schedule.cancelSchedule(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/schedules/{scheduleId}/cancel',\n pathParams: { scheduleId: 'scheduleId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAAA;AAAA,EAAA,sBAAAC;AAAA,EAAA,mBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,sBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,iDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAG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ChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,kBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC4B,eAAe,OAAO;AAExD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,kBAOd;AACA,QAAM,UAAU,EAAE,UAAU,EAAE,IAAI,cAAc,EAAE;AAElD,QAAM,oBAC4B,eAAe,OAAO;AAExD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,YAAY,aAAa;AAAA,IACvC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,kBAOd;AACA,QAAM,UAAU,EAAE,YAAY,cAAc;AAE5C,QAAM,oBAC4B,eAAe,OAAO;AAExD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,YAAY,aAAa;AAAA,IACvC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["cancelSchedule","createSchedule","getSchedule","querySchedules","updateSchedule","import_timestamp","import_rest_modules","payload","getSchedule","querySchedules","createSchedule","updateSchedule","cancelSchedule"]}
1
+ {"version":3,"sources":["../../meta.ts","../../src/calendar-v3-schedule-schedules.http.ts","../../src/calendar-v3-schedule-schedules.meta.ts"],"sourcesContent":["export * from './src/calendar-v3-schedule-schedules.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixCalendarSchedulesV3SchedulesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/schedules-3',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/calendar/v3/schedules',\n destPath: '/v3/schedules',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/calendar/v3/schedules',\n destPath: '/v3/schedules',\n },\n ],\n _: [\n {\n srcPath: '/_api/calendar/v3/schedules',\n destPath: '/v3/schedules',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/calendar/v3/schedules',\n destPath: '/v3/schedules',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_calendar_schedules';\n\n/** Retrieves a schedule. */\nexport function getSchedule(payload: object): RequestOptionsFactory<any> {\n function __getSchedule({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'GET' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.GetSchedule',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules/{scheduleId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getSchedule;\n}\n\n/**\n * Creates a query to retrieve a list of schedules.\n *\n * The `querySchedules()` function builds a query to retrieve a list of tip settings and returns a `SchedulesQueryBuilder` object.\n *\n * 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/calendar/schedules/schedules-query-builder/find) function.\n *\n * You can refine the query by chaining `SchedulesQueryBuilder` functions onto the query. `SchedulesQueryBuilder` functions enable you to sort, filter, and control the results that `querySchedules()` returns.\n *\n * `querySchedules()` runs with the following `SchedulesQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `id` in ascending order.\n *\n * The functions that are chained to `querySchedules()` are applied in the order they are called. For example, if you apply `ascending(\"status\")` and then `ascending(\"externalId\")`, the results are sorted first by the `\"status\"`, and then, if there are multiple results with the same `\"status\"`, the items are sorted by `\"externalId\"`.\n *\n * The following `SchedulesQueryBuilder` functions are supported for the `querySchedules()` function. For a full description of the tip settings object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-result/items) property in `SchedulesQueryResult`.\n */\nexport function querySchedules(payload: object): RequestOptionsFactory<any> {\n function __querySchedules({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'POST' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.QuerySchedules',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedules.createdDate' },\n { path: 'schedules.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __querySchedules;\n}\n\n/**\n * Creates a schedule.\n *\n *\n * If you want the schedule's events to appear in the\n * [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),\n * you must set `appId` to the ID of the Wix Bookings app by providing\n * `{\"appId\": \"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"}`.\n */\nexport function createSchedule(payload: object): RequestOptionsFactory<any> {\n function __createSchedule({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'POST' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.CreateSchedule',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createSchedule;\n}\n\n/**\n * Updates a schedule.\n *\n *\n * Each time the schedule is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the schedule.\n * This ensures you're working with the latest schedule\n * and prevents unintended overwrites.\n */\nexport function updateSchedule(payload: object): RequestOptionsFactory<any> {\n function __updateSchedule({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldmask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'PATCH' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.UpdateSchedule',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules/{schedule.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateSchedule;\n}\n\n/**\n * Sets a schedule's `status` to `CANCELLED`.\n *\n *\n * Also cancels future events belonging to the schedule.\n *\n * Once a schedule is marked as `CANCELLED`, you can't reactivate it, update it,\n * or assign new events.\n */\nexport function cancelSchedule(payload: object): RequestOptionsFactory<any> {\n function __cancelSchedule({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'POST' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.CancelSchedule',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules/{scheduleId}/cancel',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __cancelSchedule;\n}\n","import * as ambassadorWixCalendarV3Schedule from './calendar-v3-schedule-schedules.http.js';\nimport * as ambassadorWixCalendarV3ScheduleTypes from './calendar-v3-schedule-schedules.types.js';\nimport * as ambassadorWixCalendarV3ScheduleUniversalTypes from './calendar-v3-schedule-schedules.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getSchedule(): __PublicMethodMetaInfo<\n 'GET',\n { scheduleId: string },\n ambassadorWixCalendarV3ScheduleUniversalTypes.GetScheduleRequest,\n ambassadorWixCalendarV3ScheduleTypes.GetScheduleRequest,\n ambassadorWixCalendarV3ScheduleUniversalTypes.GetScheduleResponse,\n ambassadorWixCalendarV3ScheduleTypes.GetScheduleResponse\n> {\n const payload = { scheduleId: ':scheduleId' } as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Schedule.getSchedule(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/schedules/{scheduleId}',\n pathParams: { scheduleId: 'scheduleId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function querySchedules(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixCalendarV3ScheduleUniversalTypes.QuerySchedulesRequest,\n ambassadorWixCalendarV3ScheduleTypes.QuerySchedulesRequest,\n ambassadorWixCalendarV3ScheduleUniversalTypes.QuerySchedulesResponse,\n ambassadorWixCalendarV3ScheduleTypes.QuerySchedulesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Schedule.querySchedules(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/schedules/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createSchedule(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixCalendarV3ScheduleUniversalTypes.CreateScheduleRequest,\n ambassadorWixCalendarV3ScheduleTypes.CreateScheduleRequest,\n ambassadorWixCalendarV3ScheduleUniversalTypes.CreateScheduleResponse,\n ambassadorWixCalendarV3ScheduleTypes.CreateScheduleResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Schedule.createSchedule(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/schedules',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateSchedule(): __PublicMethodMetaInfo<\n 'PATCH',\n { scheduleId: string },\n ambassadorWixCalendarV3ScheduleUniversalTypes.UpdateScheduleRequest,\n ambassadorWixCalendarV3ScheduleTypes.UpdateScheduleRequest,\n ambassadorWixCalendarV3ScheduleUniversalTypes.UpdateScheduleResponse,\n ambassadorWixCalendarV3ScheduleTypes.UpdateScheduleResponse\n> {\n const payload = { schedule: { id: ':scheduleId' } } as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Schedule.updateSchedule(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v3/schedules/{schedule.id}',\n pathParams: { scheduleId: 'scheduleId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function cancelSchedule(): __PublicMethodMetaInfo<\n 'POST',\n { scheduleId: string },\n ambassadorWixCalendarV3ScheduleUniversalTypes.CancelScheduleRequest,\n ambassadorWixCalendarV3ScheduleTypes.CancelScheduleRequest,\n ambassadorWixCalendarV3ScheduleUniversalTypes.CancelScheduleResponse,\n ambassadorWixCalendarV3ScheduleTypes.CancelScheduleResponse\n> {\n const payload = { scheduleId: ':scheduleId' } as any;\n\n const getRequestOptions =\n ambassadorWixCalendarV3Schedule.cancelSchedule(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/schedules/{scheduleId}/cancel',\n pathParams: { scheduleId: 'scheduleId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAAA;AAAA,EAAA,sBAAAC;AAAA,EAAA,mBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,sBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,iDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,YAAY,SAA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A,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,YAAY,aAAa;AAAA,IACvC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["cancelSchedule","createSchedule","getSchedule","querySchedules","updateSchedule","import_timestamp","import_rest_modules","payload","getSchedule","querySchedules","createSchedule","updateSchedule","cancelSchedule"]}
@@ -62,6 +62,9 @@ function getSchedule(payload) {
62
62
  method: "GET",
63
63
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.GetSchedule",
64
64
  packageName: PACKAGE_NAME,
65
+ migrationOptions: {
66
+ optInTransformResponse: true
67
+ },
65
68
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
66
69
  protoPath: "/v3/schedules/{scheduleId}",
67
70
  data: payload,
@@ -89,6 +92,9 @@ function querySchedules(payload) {
89
92
  method: "POST",
90
93
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.QuerySchedules",
91
94
  packageName: PACKAGE_NAME,
95
+ migrationOptions: {
96
+ optInTransformResponse: true
97
+ },
92
98
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
93
99
  protoPath: "/v3/schedules/query",
94
100
  data: payload,
@@ -125,6 +131,9 @@ function createSchedule(payload) {
125
131
  method: "POST",
126
132
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.CreateSchedule",
127
133
  packageName: PACKAGE_NAME,
134
+ migrationOptions: {
135
+ optInTransformResponse: true
136
+ },
128
137
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
129
138
  protoPath: "/v3/schedules",
130
139
  data: serializedData,
@@ -165,6 +174,9 @@ function updateSchedule(payload) {
165
174
  method: "PATCH",
166
175
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.UpdateSchedule",
167
176
  packageName: PACKAGE_NAME,
177
+ migrationOptions: {
178
+ optInTransformResponse: true
179
+ },
168
180
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
169
181
  protoPath: "/v3/schedules/{schedule.id}",
170
182
  data: serializedData,
@@ -192,6 +204,9 @@ function cancelSchedule(payload) {
192
204
  method: "POST",
193
205
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.CancelSchedule",
194
206
  packageName: PACKAGE_NAME,
207
+ migrationOptions: {
208
+ optInTransformResponse: true
209
+ },
195
210
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
196
211
  protoPath: "/v3/schedules/{scheduleId}/cancel",
197
212
  data: payload,