{"version":3,"sources":["../../../src/bookings-v2-bookings-settings-bookings-settings.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetBookingsSettingsRequest = z.object({});\nexport const GetBookingsSettingsResponse = z.object({\n  revision: z\n    .string()\n    .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n    .describe(\n      'Revision number, which increments by 1 each time the bookings settings are updated.\\nTo prevent conflicting changes,\\nthe current revision must be passed when updating the bookings settings.'\n    )\n    .optional()\n    .nullable(),\n  _createdDate: z\n    .date()\n    .describe('Date and time the bookings settings were created.')\n    .optional()\n    .nullable(),\n  _updatedDate: z\n    .date()\n    .describe('Date and time the bookings settings were updated.')\n    .optional()\n    .nullable(),\n  cartCheckout: z\n    .object({\n      enabled: z\n        .boolean()\n        .describe(\n          'Whether customers can add multiple services to a cart and check out together.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      'Cart checkout settings, which control whether customers can add multiple services to a cart and check out together.'\n    )\n    .optional(),\n  multiServiceAppointments: z\n    .object({\n      enabled: z\n        .boolean()\n        .describe(\n          'Whether customers can book more than one service in a single appointment.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      'Multi-service appointment settings, which control whether customers can book more than one service in a single appointment.'\n    )\n    .optional(),\n  displayTimeZone: z\n    .object({\n      customerCanChange: z\n        .boolean()\n        .describe(\n          'Whether customers can switch between the business and customer time zones when viewing times.'\n        )\n        .optional()\n        .nullable(),\n      basedOn: z\n        .enum(['BUSINESS_TIME_ZONE', 'CUSTOMER_TIME_ZONE'])\n        .describe('Time zone that times are displayed in by default.')\n        .optional(),\n    })\n    .describe(\n      \"Display time zone settings, which control whether times are shown in the business's or the customer's time zone.\"\n    )\n    .optional(),\n  extendedFields: z\n    .object({\n      namespaces: z\n        .record(z.string(), z.record(z.string(), z.any()))\n        .describe(\n          'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n        )\n        .optional(),\n    })\n    .describe(\n      'Custom field data for the bookings settings object.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n    )\n    .optional(),\n});\nexport const UpdateBookingsSettingsRequest = z.object({\n  bookingsSettings: z\n    .object({\n      revision: z\n        .string()\n        .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n        .describe(\n          'Revision number, which increments by 1 each time the bookings settings are updated.\\nTo prevent conflicting changes,\\nthe current revision must be passed when updating the bookings settings.'\n        ),\n      _createdDate: z\n        .date()\n        .describe('Date and time the bookings settings were created.')\n        .optional()\n        .nullable(),\n      _updatedDate: z\n        .date()\n        .describe('Date and time the bookings settings were updated.')\n        .optional()\n        .nullable(),\n      cartCheckout: z\n        .object({\n          enabled: z\n            .boolean()\n            .describe(\n              'Whether customers can add multiple services to a cart and check out together.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          'Cart checkout settings, which control whether customers can add multiple services to a cart and check out together.'\n        )\n        .optional(),\n      multiServiceAppointments: z\n        .object({\n          enabled: z\n            .boolean()\n            .describe(\n              'Whether customers can book more than one service in a single appointment.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          'Multi-service appointment settings, which control whether customers can book more than one service in a single appointment.'\n        )\n        .optional(),\n      displayTimeZone: z\n        .object({\n          customerCanChange: z\n            .boolean()\n            .describe(\n              'Whether customers can switch between the business and customer time zones when viewing times.'\n            )\n            .optional()\n            .nullable(),\n          basedOn: z\n            .enum(['BUSINESS_TIME_ZONE', 'CUSTOMER_TIME_ZONE'])\n            .optional(),\n        })\n        .describe(\n          \"Display time zone settings, which control whether times are shown in the business's or the customer's time zone.\"\n        )\n        .optional(),\n      extendedFields: z\n        .object({\n          namespaces: z\n            .record(z.string(), z.record(z.string(), z.any()))\n            .describe(\n              'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n            )\n            .optional(),\n        })\n        .describe(\n          'Custom field data for the bookings settings object.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n        )\n        .optional(),\n    })\n    .describe('Bookings settings to update.'),\n});\nexport const UpdateBookingsSettingsResponse = z.object({\n  revision: z\n    .string()\n    .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n    .describe(\n      'Revision number, which increments by 1 each time the bookings settings are updated.\\nTo prevent conflicting changes,\\nthe current revision must be passed when updating the bookings settings.'\n    )\n    .optional()\n    .nullable(),\n  _createdDate: z\n    .date()\n    .describe('Date and time the bookings settings were created.')\n    .optional()\n    .nullable(),\n  _updatedDate: z\n    .date()\n    .describe('Date and time the bookings settings were updated.')\n    .optional()\n    .nullable(),\n  cartCheckout: z\n    .object({\n      enabled: z\n        .boolean()\n        .describe(\n          'Whether customers can add multiple services to a cart and check out together.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      'Cart checkout settings, which control whether customers can add multiple services to a cart and check out together.'\n    )\n    .optional(),\n  multiServiceAppointments: z\n    .object({\n      enabled: z\n        .boolean()\n        .describe(\n          'Whether customers can book more than one service in a single appointment.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe(\n      'Multi-service appointment settings, which control whether customers can book more than one service in a single appointment.'\n    )\n    .optional(),\n  displayTimeZone: z\n    .object({\n      customerCanChange: z\n        .boolean()\n        .describe(\n          'Whether customers can switch between the business and customer time zones when viewing times.'\n        )\n        .optional()\n        .nullable(),\n      basedOn: z\n        .enum(['BUSINESS_TIME_ZONE', 'CUSTOMER_TIME_ZONE'])\n        .describe('Time zone that times are displayed in by default.')\n        .optional(),\n    })\n    .describe(\n      \"Display time zone settings, which control whether times are shown in the business's or the customer's time zone.\"\n    )\n    .optional(),\n  extendedFields: z\n    .object({\n      namespaces: z\n        .record(z.string(), z.record(z.string(), z.any()))\n        .describe(\n          'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n        )\n        .optional(),\n    })\n    .describe(\n      'Custom field data for the bookings settings object.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n    )\n    .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,6BAA+B,SAAO,CAAC,CAAC;AAC9C,IAAM,8BAAgC,SAAO;AAAA,EAClD,UACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,IACC;AAAA,EACF,EACC,SAAS,EACT,SAAS;AAAA,EACZ,cACG,OAAK,EACL,SAAS,mDAAmD,EAC5D,SAAS,EACT,SAAS;AAAA,EACZ,cACG,OAAK,EACL,SAAS,mDAAmD,EAC5D,SAAS,EACT,SAAS;AAAA,EACZ,cACG,SAAO;AAAA,IACN,SACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA;AAAA,IACC;AAAA,EACF,EACC,SAAS;AAAA,EACZ,0BACG,SAAO;AAAA,IACN,SACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA;AAAA,IACC;AAAA,EACF,EACC,SAAS;AAAA,EACZ,iBACG,SAAO;AAAA,IACN,mBACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAA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