@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/es/meta.mjs CHANGED
@@ -48,6 +48,9 @@ function getSchedule(payload) {
48
48
  method: "GET",
49
49
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.GetSchedule",
50
50
  packageName: PACKAGE_NAME,
51
+ migrationOptions: {
52
+ optInTransformResponse: true
53
+ },
51
54
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
52
55
  protoPath: "/v3/schedules/{scheduleId}",
53
56
  data: payload,
@@ -75,6 +78,9 @@ function querySchedules(payload) {
75
78
  method: "POST",
76
79
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.QuerySchedules",
77
80
  packageName: PACKAGE_NAME,
81
+ migrationOptions: {
82
+ optInTransformResponse: true
83
+ },
78
84
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
79
85
  protoPath: "/v3/schedules/query",
80
86
  data: payload,
@@ -111,6 +117,9 @@ function createSchedule(payload) {
111
117
  method: "POST",
112
118
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.CreateSchedule",
113
119
  packageName: PACKAGE_NAME,
120
+ migrationOptions: {
121
+ optInTransformResponse: true
122
+ },
114
123
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
115
124
  protoPath: "/v3/schedules",
116
125
  data: serializedData,
@@ -151,6 +160,9 @@ function updateSchedule(payload) {
151
160
  method: "PATCH",
152
161
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.UpdateSchedule",
153
162
  packageName: PACKAGE_NAME,
163
+ migrationOptions: {
164
+ optInTransformResponse: true
165
+ },
154
166
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
155
167
  protoPath: "/v3/schedules/{schedule.id}",
156
168
  data: serializedData,
@@ -178,6 +190,9 @@ function cancelSchedule(payload) {
178
190
  method: "POST",
179
191
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.CancelSchedule",
180
192
  packageName: PACKAGE_NAME,
193
+ migrationOptions: {
194
+ optInTransformResponse: true
195
+ },
181
196
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
182
197
  protoPath: "/v3/schedules/{scheduleId}/cancel",
183
198
  data: payload,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/calendar-v3-schedule-schedules.http.ts","../../src/calendar-v3-schedule-schedules.meta.ts"],"sourcesContent":["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,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;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,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,YAAY,SAA6C;AACvE,WAAS,cAAc,EAAE,KAAK,GAAQ;AACpC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,aAAa;AAAA,MACb,KAAK,iDAAi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zC,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":["payload","getSchedule","querySchedules","createSchedule","updateSchedule","cancelSchedule"]}
1
+ {"version":3,"sources":["../../src/calendar-v3-schedule-schedules.http.ts","../../src/calendar-v3-schedule-schedules.meta.ts"],"sourcesContent":["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,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;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,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,YAAY,SAA6C;AACvE,WAAS,cAAc,EAAE,KAAK,GAAQ;AACpC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK,iDAAiD;AAAA,QACpD,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,QAAQ,kBAAkB,OAAO;AAAA,MACjC,mBAAmB,CAACA,aAClB,eAAeA,UAAS;AAAA,QACtB;AAAA,UACE,aAAa;AAAA,UACb,OAAO;AAAA,YACL,EAAE,M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O;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":["payload","getSchedule","querySchedules","createSchedule","updateSchedule","cancelSchedule"]}
@@ -108,6 +108,9 @@ function getSchedule(payload) {
108
108
  method: "GET",
109
109
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.GetSchedule",
110
110
  packageName: PACKAGE_NAME,
111
+ migrationOptions: {
112
+ optInTransformResponse: true
113
+ },
111
114
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
112
115
  protoPath: "/v3/schedules/{scheduleId}",
113
116
  data: payload,
@@ -135,6 +138,9 @@ function querySchedules(payload) {
135
138
  method: "POST",
136
139
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.QuerySchedules",
137
140
  packageName: PACKAGE_NAME,
141
+ migrationOptions: {
142
+ optInTransformResponse: true
143
+ },
138
144
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
139
145
  protoPath: "/v3/schedules/query",
140
146
  data: payload,
@@ -171,6 +177,9 @@ function createSchedule(payload) {
171
177
  method: "POST",
172
178
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.CreateSchedule",
173
179
  packageName: PACKAGE_NAME,
180
+ migrationOptions: {
181
+ optInTransformResponse: true
182
+ },
174
183
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
175
184
  protoPath: "/v3/schedules",
176
185
  data: serializedData,
@@ -211,6 +220,9 @@ function updateSchedule(payload) {
211
220
  method: "PATCH",
212
221
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.UpdateSchedule",
213
222
  packageName: PACKAGE_NAME,
223
+ migrationOptions: {
224
+ optInTransformResponse: true
225
+ },
214
226
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
215
227
  protoPath: "/v3/schedules/{schedule.id}",
216
228
  data: serializedData,
@@ -238,6 +250,9 @@ function cancelSchedule(payload) {
238
250
  method: "POST",
239
251
  methodFqn: "wix.calendar.schedules.v3.SchedulesService.CancelSchedule",
240
252
  packageName: PACKAGE_NAME,
253
+ migrationOptions: {
254
+ optInTransformResponse: true
255
+ },
241
256
  url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({
242
257
  protoPath: "/v3/schedules/{scheduleId}/cancel",
243
258
  data: payload,