@wix/auto_sdk_ecom_tip-settings 1.0.51 → 1.0.53
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/index.js +49 -28
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +17 -1
- package/build/cjs/index.typings.js +49 -28
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +17 -1
- package/build/cjs/meta.js +49 -28
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +14 -0
- package/build/cjs/schemas.js +42 -0
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +49 -28
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +17 -1
- package/build/es/index.typings.mjs +49 -28
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +17 -1
- package/build/es/meta.mjs +49 -28
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +14 -0
- package/build/es/schemas.mjs +42 -0
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js +49 -28
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +17 -1
- package/build/internal/cjs/index.typings.js +49 -28
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +17 -1
- package/build/internal/cjs/meta.js +49 -28
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +14 -0
- package/build/internal/cjs/schemas.js +42 -0
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs +49 -28
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +17 -1
- package/build/internal/es/index.typings.mjs +49 -28
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +17 -1
- package/build/internal/es/meta.mjs +49 -28
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +14 -0
- package/build/internal/es/schemas.mjs +42 -0
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../schemas.ts","../../src/tips-settings-v1-tip-settings-tip-settings.schemas.ts"],"sourcesContent":["export * from './src/tips-settings-v1-tip-settings-tip-settings.schemas.js';\n","import * as z from 'zod';\n\nexport const QueryTipSettingsRequest = z.object({\n query: z\n .object({\n filter: z\n .object({\n _id: z\n .object({\n $eq: z.string(),\n $exists: z.boolean(),\n $gt: z.string(),\n $gte: z.string(),\n $hasAll: z.array(z.string()),\n $hasSome: z.array(z.string()),\n $in: z.array(z.string()),\n $lt: z.string(),\n $lte: z.string(),\n $ne: z.string(),\n $nin: z.array(z.string()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n locationId: z\n .object({\n $eq: z.any(),\n $exists: z.boolean(),\n $gt: z.any(),\n $gte: z.any(),\n $hasAll: z.array(z.any()),\n $hasSome: z.array(z.any()),\n $in: z.array(z.any()),\n $lt: z.any(),\n $lte: z.any(),\n $ne: z.any(),\n $nin: z.array(z.any()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n paymentTerminalId: z\n .object({\n $eq: z.any(),\n $exists: z.boolean(),\n $gt: z.any(),\n $gte: z.any(),\n $hasAll: z.array(z.any()),\n $hasSome: z.array(z.any()),\n $in: z.array(z.any()),\n $lt: z.any(),\n $lte: z.any(),\n $ne: z.any(),\n $nin: z.array(z.any()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n default: z\n .object({\n $eq: z.boolean(),\n $exists: z.boolean(),\n $gt: z.boolean(),\n $gte: z.boolean(),\n $hasAll: z.array(z.boolean()),\n $hasSome: z.array(z.boolean()),\n $in: z.array(z.boolean()),\n $lt: z.boolean(),\n $lte: z.boolean(),\n $ne: z.boolean(),\n $nin: z.array(z.boolean()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n allowCustomerTip: z\n .object({\n $eq: z.boolean(),\n $exists: z.boolean(),\n $gt: z.boolean(),\n $gte: z.boolean(),\n $hasAll: z.array(z.boolean()),\n $hasSome: z.array(z.boolean()),\n $in: z.array(z.boolean()),\n $lt: z.boolean(),\n $lte: z.boolean(),\n $ne: z.boolean(),\n $nin: z.array(z.boolean()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n allowBusinessTipAtPayment: z\n .object({\n $eq: z.boolean(),\n $exists: z.boolean(),\n $gt: z.boolean(),\n $gte: z.boolean(),\n $hasAll: z.array(z.boolean()),\n $hasSome: z.array(z.boolean()),\n $in: z.array(z.boolean()),\n $lt: z.boolean(),\n $lte: z.boolean(),\n $ne: z.boolean(),\n $nin: z.array(z.boolean()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n allowEditDistribution: z\n .object({\n $eq: z.boolean(),\n $exists: z.boolean(),\n $gt: z.boolean(),\n $gte: z.boolean(),\n $hasAll: z.array(z.boolean()),\n $hasSome: z.array(z.boolean()),\n $in: z.array(z.boolean()),\n $lt: z.boolean(),\n $lte: z.boolean(),\n $ne: z.boolean(),\n $nin: z.array(z.boolean()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n allowCustomAmount: z\n .object({\n $eq: z.boolean(),\n $exists: z.boolean(),\n $gt: z.boolean(),\n $gte: z.boolean(),\n $hasAll: z.array(z.boolean()),\n $hasSome: z.array(z.boolean()),\n $in: z.array(z.boolean()),\n $lt: z.boolean(),\n $lte: z.boolean(),\n $ne: z.boolean(),\n $nin: z.array(z.boolean()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n tipType: z\n .object({\n $eq: z.string(),\n $exists: z.boolean(),\n $gt: z.string(),\n $gte: z.string(),\n $hasAll: z.array(z.string()),\n $hasSome: z.array(z.string()),\n $in: z.array(z.string()),\n $lt: z.string(),\n $lte: z.string(),\n $ne: z.string(),\n $nin: z.array(z.string()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n $and: z.array(z.any()).optional(),\n $or: z.array(z.any()).optional(),\n $not: z.any().optional(),\n })\n .strict()\n .optional(),\n sort: z\n .array(\n z.object({\n fieldName: z\n .enum([\n '_id',\n 'locationId',\n 'paymentTerminalId',\n 'default',\n 'allowCustomerTip',\n 'allowBusinessTipAtPayment',\n 'allowEditDistribution',\n 'allowCustomAmount',\n 'tipType',\n ])\n .optional(),\n order: z.enum(['ASC', 'DESC']).optional(),\n })\n )\n .optional(),\n })\n .catchall(z.any())\n .describe('WQL expression'),\n});\nexport const QueryTipSettingsResponse = z.object({\n tipSettings: z\n .array(\n z.intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the tip settings.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n tipType: z\n .enum(['UNKNOWN_TIP_TYPE', 'PERCENTAGE', 'AMOUNT'])\n .describe('Tip type.')\n .optional(),\n presets: z\n .array(\n z.object({\n value: z\n .number()\n .describe(\n \"Value of the preset tip choice that's displayed to customers in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\nFor example, `5`, `10`, and `15` percent or `1`, `3`, and `5` USD.\\n\\nMin: `0`\"\n )\n .min(0)\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether this tip choice value is the default preset that's highlighted automatically in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `false`\"\n )\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n allowCustomerTip: z\n .boolean()\n .describe(\n 'Whether customers are allowed to tip during the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowBusinessTipAtPayment: z\n .boolean()\n .describe(\n 'Whether the Wix users are given the option to add a tip during the\\npayment collection flow in their dashboard.\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowCustomAmount: z\n .boolean()\n .describe(\n \"Whether customers can enter a custom tip amount. If set to `false`, customers\\ncan only select a tip value from the available `presets` and can't enter a\\ncustom amount.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n allowEditDistribution: z\n .boolean()\n .describe(\n \"Whether Wix users are allowed to edit tip distributions. If set to\\n`false`, Wix users can't edit distributions after they were created.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n staffDistributionMethod: z\n .enum(['UNKNOWN_SPLIT_METHOD', 'EQUAL', 'PROPORTIONAL'])\n .describe(\n 'How the tip is distributed among staff.\\n\\nSupported values:\\n`UNKNOWN_SPLIT_METHOD`: There is no information about the staff distribution method.\\n`EQUAL`: The tip is distributed equally among all staff.\\n`PROPORTIONAL`: The tip is distributed proportionally among staff.'\n )\n .optional(),\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 `tipSettings` object is\\nupdated. To prevent conflicting changes, the current revision must be passed\\nwhen updating `tipSettings`. Ignored when creating a `tipSettings` object.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Date and time the tip settings were created in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Date and time the tip settings were last updated in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether these are the default tip settings.\\n\\nWix Tips automatically creates the default settings during\\nthe app's installation. You can't delete these default settings\\nbut you can update them. Wix Tips uses the default settings\\nto calculate tips, unless you specify other settings.\"\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app that has created the settings. See the list of app IDs for\\nWix business solutions ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/apps-created-by-wix) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/apps-created-by-wix)).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\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 `tipSettings` object. Extended fields must be\\nconfigured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n }),\n z.object({\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n locationId: z\n .string()\n .describe(\n 'ID of the location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/location-object))\\nfor which the tip settings apply.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n locationId: z.never().optional(),\n userId: z.never().optional(),\n paymentTerminalId: z\n .string()\n .describe(\n \"ID of the payment terminal for which the tip settings apply. Wix Tips doesn't\\nvalidate the ID you provide.\\n\\nMax: 30 characters\"\n )\n .max(30),\n }),\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z\n .string()\n .describe(\n 'ID of the Wix user for whom the tip settings apply. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n )\n )\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in the response.')\n .optional()\n .nullable(),\n offset: z\n .number()\n .int()\n .describe('Offset that was requested.')\n .optional()\n .nullable(),\n total: z\n .number()\n .int()\n .describe(\n 'Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set.'\n )\n .optional()\n .nullable(),\n tooManyToCount: z\n .boolean()\n .describe(\n 'Flag that indicates the server failed to calculate the `total` field.'\n )\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe(\n 'Cursor string pointing to the next page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to the previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.'\n )\n .optional(),\n })\n .describe('Metadata for the paged set of retrieved `tipSettings` objects.')\n .optional(),\n});\nexport const UpdateTipSettingsRequest = z.object({\n tipSettings: z\n .intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the tip settings.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n tipType: z\n .enum(['UNKNOWN_TIP_TYPE', 'PERCENTAGE', 'AMOUNT'])\n .optional(),\n presets: z\n .array(\n z.object({\n value: z\n .number()\n .describe(\n \"Value of the preset tip choice that's displayed to customers in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\nFor example, `5`, `10`, and `15` percent or `1`, `3`, and `5` USD.\\n\\nMin: `0`\"\n )\n .min(0)\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether this tip choice value is the default preset that's highlighted automatically in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `false`\"\n )\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n allowCustomerTip: z\n .boolean()\n .describe(\n 'Whether customers are allowed to tip during the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowBusinessTipAtPayment: z\n .boolean()\n .describe(\n 'Whether the Wix users are given the option to add a tip during the\\npayment collection flow in their dashboard.\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowCustomAmount: z\n .boolean()\n .describe(\n \"Whether customers can enter a custom tip amount. If set to `false`, customers\\ncan only select a tip value from the available `presets` and can't enter a\\ncustom amount.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n allowEditDistribution: z\n .boolean()\n .describe(\n \"Whether Wix users are allowed to edit tip distributions. If set to\\n`false`, Wix users can't edit distributions after they were created.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n staffDistributionMethod: z\n .enum(['UNKNOWN_SPLIT_METHOD', 'EQUAL', 'PROPORTIONAL'])\n .optional(),\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 `tipSettings` object is\\nupdated. To prevent conflicting changes, the current revision must be passed\\nwhen updating `tipSettings`. Ignored when creating a `tipSettings` object.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Date and time the tip settings were created in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Date and time the tip settings were last updated in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether these are the default tip settings.\\n\\nWix Tips automatically creates the default settings during\\nthe app's installation. You can't delete these default settings\\nbut you can update them. Wix Tips uses the default settings\\nto calculate tips, unless you specify other settings.\"\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app that has created the settings. See the list of app IDs for\\nWix business solutions ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/apps-created-by-wix) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/apps-created-by-wix)).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\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 `tipSettings` object. Extended fields must be\\nconfigured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n }),\n z.object({\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n locationId: z\n .string()\n .describe(\n 'ID of the location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/location-object))\\nfor which the tip settings apply.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n locationId: z.never().optional(),\n userId: z.never().optional(),\n paymentTerminalId: z\n .string()\n .describe(\n \"ID of the payment terminal for which the tip settings apply. Wix Tips doesn't\\nvalidate the ID you provide.\\n\\nMax: 30 characters\"\n )\n .max(30),\n }),\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z\n .string()\n .describe(\n 'ID of the Wix user for whom the tip settings apply. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n )\n .describe('Tip settings to update.'),\n});\nexport const UpdateTipSettingsResponse = z.intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the tip settings.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n tipType: z\n .enum(['UNKNOWN_TIP_TYPE', 'PERCENTAGE', 'AMOUNT'])\n .describe('Tip type.')\n .optional(),\n presets: z\n .array(\n z.object({\n value: z\n .number()\n .describe(\n \"Value of the preset tip choice that's displayed to customers in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\nFor example, `5`, `10`, and `15` percent or `1`, `3`, and `5` USD.\\n\\nMin: `0`\"\n )\n .min(0)\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether this tip choice value is the default preset that's highlighted automatically in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `false`\"\n )\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n allowCustomerTip: z\n .boolean()\n .describe(\n 'Whether customers are allowed to tip during the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowBusinessTipAtPayment: z\n .boolean()\n .describe(\n 'Whether the Wix users are given the option to add a tip during the\\npayment collection flow in their dashboard.\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowCustomAmount: z\n .boolean()\n .describe(\n \"Whether customers can enter a custom tip amount. If set to `false`, customers\\ncan only select a tip value from the available `presets` and can't enter a\\ncustom amount.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n allowEditDistribution: z\n .boolean()\n .describe(\n \"Whether Wix users are allowed to edit tip distributions. If set to\\n`false`, Wix users can't edit distributions after they were created.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n staffDistributionMethod: z\n .enum(['UNKNOWN_SPLIT_METHOD', 'EQUAL', 'PROPORTIONAL'])\n .describe(\n 'How the tip is distributed among staff.\\n\\nSupported values:\\n`UNKNOWN_SPLIT_METHOD`: There is no information about the staff distribution method.\\n`EQUAL`: The tip is distributed equally among all staff.\\n`PROPORTIONAL`: The tip is distributed proportionally among staff.'\n )\n .optional(),\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 `tipSettings` object is\\nupdated. To prevent conflicting changes, the current revision must be passed\\nwhen updating `tipSettings`. Ignored when creating a `tipSettings` object.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Date and time the tip settings were created in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Date and time the tip settings were last updated in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether these are the default tip settings.\\n\\nWix Tips automatically creates the default settings during\\nthe app's installation. You can't delete these default settings\\nbut you can update them. Wix Tips uses the default settings\\nto calculate tips, unless you specify other settings.\"\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app that has created the settings. See the list of app IDs for\\nWix business solutions ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/apps-created-by-wix) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/apps-created-by-wix)).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\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 `tipSettings` object. Extended fields must be\\nconfigured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n }),\n z.object({\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n locationId: z\n .string()\n .describe(\n 'ID of the location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/location-object))\\nfor which the tip settings apply.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n locationId: z.never().optional(),\n userId: z.never().optional(),\n paymentTerminalId: z\n .string()\n .describe(\n \"ID of the payment terminal for which the tip settings apply. Wix Tips doesn't\\nvalidate the ID you provide.\\n\\nMax: 30 characters\"\n )\n .max(30),\n }),\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z\n .string()\n .describe(\n 'ID of the Wix user for whom the tip settings apply. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n);\nexport const CreateTipSettingsRequest = z.object({\n tipSettings: z\n .intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the tip settings.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n tipType: z\n .enum(['UNKNOWN_TIP_TYPE', 'PERCENTAGE', 'AMOUNT'])\n .optional(),\n presets: z\n .array(\n z.object({\n value: z\n .number()\n .describe(\n \"Value of the preset tip choice that's displayed to customers in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\nFor example, `5`, `10`, and `15` percent or `1`, `3`, and `5` USD.\\n\\nMin: `0`\"\n )\n .min(0)\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether this tip choice value is the default preset that's highlighted automatically in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `false`\"\n )\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n allowCustomerTip: z\n .boolean()\n .describe(\n 'Whether customers are allowed to tip during the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowBusinessTipAtPayment: z\n .boolean()\n .describe(\n 'Whether the Wix users are given the option to add a tip during the\\npayment collection flow in their dashboard.\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowCustomAmount: z\n .boolean()\n .describe(\n \"Whether customers can enter a custom tip amount. If set to `false`, customers\\ncan only select a tip value from the available `presets` and can't enter a\\ncustom amount.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n allowEditDistribution: z\n .boolean()\n .describe(\n \"Whether Wix users are allowed to edit tip distributions. If set to\\n`false`, Wix users can't edit distributions after they were created.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n staffDistributionMethod: z\n .enum(['UNKNOWN_SPLIT_METHOD', 'EQUAL', 'PROPORTIONAL'])\n .optional(),\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 `tipSettings` object is\\nupdated. To prevent conflicting changes, the current revision must be passed\\nwhen updating `tipSettings`. Ignored when creating a `tipSettings` object.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Date and time the tip settings were created in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Date and time the tip settings were last updated in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether these are the default tip settings.\\n\\nWix Tips automatically creates the default settings during\\nthe app's installation. You can't delete these default settings\\nbut you can update them. Wix Tips uses the default settings\\nto calculate tips, unless you specify other settings.\"\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app that has created the settings. See the list of app IDs for\\nWix business solutions ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/apps-created-by-wix) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/apps-created-by-wix)).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\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 `tipSettings` object. Extended fields must be\\nconfigured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n }),\n z.object({\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n locationId: z\n .string()\n .describe(\n 'ID of the location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/location-object))\\nfor which the tip settings apply.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n locationId: z.never().optional(),\n userId: z.never().optional(),\n paymentTerminalId: z\n .string()\n .describe(\n \"ID of the payment terminal for which the tip settings apply. Wix Tips doesn't\\nvalidate the ID you provide.\\n\\nMax: 30 characters\"\n )\n .max(30),\n }),\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z\n .string()\n .describe(\n 'ID of the Wix user for whom the tip settings apply. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n )\n .describe('Tip settings to create.'),\n});\nexport const CreateTipSettingsResponse = z.intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the tip settings.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n tipType: z\n .enum(['UNKNOWN_TIP_TYPE', 'PERCENTAGE', 'AMOUNT'])\n .describe('Tip type.')\n .optional(),\n presets: z\n .array(\n z.object({\n value: z\n .number()\n .describe(\n \"Value of the preset tip choice that's displayed to customers in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\nFor example, `5`, `10`, and `15` percent or `1`, `3`, and `5` USD.\\n\\nMin: `0`\"\n )\n .min(0)\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether this tip choice value is the default preset that's highlighted automatically in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `false`\"\n )\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n allowCustomerTip: z\n .boolean()\n .describe(\n 'Whether customers are allowed to tip during the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowBusinessTipAtPayment: z\n .boolean()\n .describe(\n 'Whether the Wix users are given the option to add a tip during the\\npayment collection flow in their dashboard.\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowCustomAmount: z\n .boolean()\n .describe(\n \"Whether customers can enter a custom tip amount. If set to `false`, customers\\ncan only select a tip value from the available `presets` and can't enter a\\ncustom amount.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n allowEditDistribution: z\n .boolean()\n .describe(\n \"Whether Wix users are allowed to edit tip distributions. If set to\\n`false`, Wix users can't edit distributions after they were created.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n staffDistributionMethod: z\n .enum(['UNKNOWN_SPLIT_METHOD', 'EQUAL', 'PROPORTIONAL'])\n .describe(\n 'How the tip is distributed among staff.\\n\\nSupported values:\\n`UNKNOWN_SPLIT_METHOD`: There is no information about the staff distribution method.\\n`EQUAL`: The tip is distributed equally among all staff.\\n`PROPORTIONAL`: The tip is distributed proportionally among staff.'\n )\n .optional(),\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 `tipSettings` object is\\nupdated. To prevent conflicting changes, the current revision must be passed\\nwhen updating `tipSettings`. Ignored when creating a `tipSettings` object.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Date and time the tip settings were created in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Date and time the tip settings were last updated in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether these are the default tip settings.\\n\\nWix Tips automatically creates the default settings during\\nthe app's installation. You can't delete these default settings\\nbut you can update them. Wix Tips uses the default settings\\nto calculate tips, unless you specify other settings.\"\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app that has created the settings. See the list of app IDs for\\nWix business solutions ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/apps-created-by-wix) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/apps-created-by-wix)).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\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 `tipSettings` object. Extended fields must be\\nconfigured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n }),\n z.object({\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n locationId: z\n .string()\n .describe(\n 'ID of the location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/location-object))\\nfor which the tip settings apply.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n locationId: z.never().optional(),\n userId: z.never().optional(),\n paymentTerminalId: z\n .string()\n .describe(\n \"ID of the payment terminal for which the tip settings apply. Wix Tips doesn't\\nvalidate the ID you provide.\\n\\nMax: 30 characters\"\n )\n .max(30),\n }),\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z\n .string()\n .describe(\n 'ID of the Wix user for whom the tip settings apply. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n);\nexport const CreateDefaultTipSettingsRequest = z.object({\n tipSettings: z\n .intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the tip settings.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n tipType: z\n .enum(['UNKNOWN_TIP_TYPE', 'PERCENTAGE', 'AMOUNT'])\n .optional(),\n presets: z\n .array(\n z.object({\n value: z\n .number()\n .describe(\n \"Value of the preset tip choice that's displayed to customers in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\nFor example, `5`, `10`, and `15` percent or `1`, `3`, and `5` USD.\\n\\nMin: `0`\"\n )\n .min(0)\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether this tip choice value is the default preset that's highlighted automatically in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `false`\"\n )\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n allowCustomerTip: z\n .boolean()\n .describe(\n 'Whether customers are allowed to tip during the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowBusinessTipAtPayment: z\n .boolean()\n .describe(\n 'Whether the Wix users are given the option to add a tip during the\\npayment collection flow in their dashboard.\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowCustomAmount: z\n .boolean()\n .describe(\n \"Whether customers can enter a custom tip amount. If set to `false`, customers\\ncan only select a tip value from the available `presets` and can't enter a\\ncustom amount.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n allowEditDistribution: z\n .boolean()\n .describe(\n \"Whether Wix users are allowed to edit tip distributions. If set to\\n`false`, Wix users can't edit distributions after they were created.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n staffDistributionMethod: z\n .enum(['UNKNOWN_SPLIT_METHOD', 'EQUAL', 'PROPORTIONAL'])\n .optional(),\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 `tipSettings` object is\\nupdated. To prevent conflicting changes, the current revision must be passed\\nwhen updating `tipSettings`. Ignored when creating a `tipSettings` object.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Date and time the tip settings were created in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Date and time the tip settings were last updated in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether these are the default tip settings.\\n\\nWix Tips automatically creates the default settings during\\nthe app's installation. You can't delete these default settings\\nbut you can update them. Wix Tips uses the default settings\\nto calculate tips, unless you specify other settings.\"\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app that has created the settings. See the list of app IDs for\\nWix business solutions ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/apps-created-by-wix) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/apps-created-by-wix)).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\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 `tipSettings` object. Extended fields must be\\nconfigured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n }),\n z.object({\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n locationId: z\n .string()\n .describe(\n 'ID of the location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/location-object))\\nfor which the tip settings apply.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n locationId: z.never().optional(),\n userId: z.never().optional(),\n paymentTerminalId: z\n .string()\n .describe(\n \"ID of the payment terminal for which the tip settings apply. Wix Tips doesn't\\nvalidate the ID you provide.\\n\\nMax: 30 characters\"\n )\n .max(30),\n }),\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z\n .string()\n .describe(\n 'ID of the Wix user for whom the tip settings apply. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n )\n .describe('Default tip settings to create.'),\n});\nexport const CreateDefaultTipSettingsResponse = z.object({\n tipSettings: z\n .intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the tip settings.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n tipType: z\n .enum(['UNKNOWN_TIP_TYPE', 'PERCENTAGE', 'AMOUNT'])\n .describe('Tip type.')\n .optional(),\n presets: z\n .array(\n z.object({\n value: z\n .number()\n .describe(\n \"Value of the preset tip choice that's displayed to customers in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\nFor example, `5`, `10`, and `15` percent or `1`, `3`, and `5` USD.\\n\\nMin: `0`\"\n )\n .min(0)\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether this tip choice value is the default preset that's highlighted automatically in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `false`\"\n )\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n allowCustomerTip: z\n .boolean()\n .describe(\n 'Whether customers are allowed to tip during the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowBusinessTipAtPayment: z\n .boolean()\n .describe(\n 'Whether the Wix users are given the option to add a tip during the\\npayment collection flow in their dashboard.\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowCustomAmount: z\n .boolean()\n .describe(\n \"Whether customers can enter a custom tip amount. If set to `false`, customers\\ncan only select a tip value from the available `presets` and can't enter a\\ncustom amount.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n allowEditDistribution: z\n .boolean()\n .describe(\n \"Whether Wix users are allowed to edit tip distributions. If set to\\n`false`, Wix users can't edit distributions after they were created.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n staffDistributionMethod: z\n .enum(['UNKNOWN_SPLIT_METHOD', 'EQUAL', 'PROPORTIONAL'])\n .describe(\n 'How the tip is distributed among staff.\\n\\nSupported values:\\n`UNKNOWN_SPLIT_METHOD`: There is no information about the staff distribution method.\\n`EQUAL`: The tip is distributed equally among all staff.\\n`PROPORTIONAL`: The tip is distributed proportionally among staff.'\n )\n .optional(),\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 `tipSettings` object is\\nupdated. To prevent conflicting changes, the current revision must be passed\\nwhen updating `tipSettings`. Ignored when creating a `tipSettings` object.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Date and time the tip settings were created in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Date and time the tip settings were last updated in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether these are the default tip settings.\\n\\nWix Tips automatically creates the default settings during\\nthe app's installation. You can't delete these default settings\\nbut you can update them. Wix Tips uses the default settings\\nto calculate tips, unless you specify other settings.\"\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app that has created the settings. See the list of app IDs for\\nWix business solutions ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/apps-created-by-wix) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/apps-created-by-wix)).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\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 `tipSettings` object. Extended fields must be\\nconfigured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n }),\n z.object({\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n locationId: z\n .string()\n .describe(\n 'ID of the location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/location-object))\\nfor which the tip settings apply.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n locationId: z.never().optional(),\n userId: z.never().optional(),\n paymentTerminalId: z\n .string()\n .describe(\n \"ID of the payment terminal for which the tip settings apply. Wix Tips doesn't\\nvalidate the ID you provide.\\n\\nMax: 30 characters\"\n )\n .max(30),\n }),\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z\n .string()\n .describe(\n 'ID of the Wix user for whom the tip settings apply. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n )\n .describe('Created default tip settings.')\n .optional(),\n});\nexport const DeleteTipSettingsRequest = z.object({\n tipSettingsId: z\n .string()\n .describe('ID of the `tipSettings` object to delete.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const DeleteTipSettingsResponse = z.object({});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,0BAA4B,SAAO;AAAA,EAC9C,OACG,SAAO;AAAA,IACN,QACG,SAAO;AAAA,MACN,KACG,SAAO;AAAA,QACN,KAAO,SAAO;AAAA,QACd,SAAW,UAAQ;AAAA,QACnB,KAAO,SAAO;AAAA,QACd,MAAQ,SAAO;AAAA,QACf,SAAW,QAAQ,SAAO,CAAC;AAAA,QAC3B,UAAY,QA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|
1
|
+
{"version":3,"sources":["../../schemas.ts","../../src/tips-settings-v1-tip-settings-tip-settings.schemas.ts"],"sourcesContent":["export * from './src/tips-settings-v1-tip-settings-tip-settings.schemas.js';\n","import * as z from 'zod';\n\nexport const QueryTipSettingsRequest = z.object({\n query: z\n .object({\n filter: z\n .object({\n _id: z\n .object({\n $eq: z.string(),\n $exists: z.boolean(),\n $gt: z.string(),\n $gte: z.string(),\n $hasAll: z.array(z.string()),\n $hasSome: z.array(z.string()),\n $in: z.array(z.string()),\n $lt: z.string(),\n $lte: z.string(),\n $ne: z.string(),\n $nin: z.array(z.string()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n locationId: z\n .object({\n $eq: z.any(),\n $exists: z.boolean(),\n $gt: z.any(),\n $gte: z.any(),\n $hasAll: z.array(z.any()),\n $hasSome: z.array(z.any()),\n $in: z.array(z.any()),\n $lt: z.any(),\n $lte: z.any(),\n $ne: z.any(),\n $nin: z.array(z.any()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n paymentTerminalId: z\n .object({\n $eq: z.any(),\n $exists: z.boolean(),\n $gt: z.any(),\n $gte: z.any(),\n $hasAll: z.array(z.any()),\n $hasSome: z.array(z.any()),\n $in: z.array(z.any()),\n $lt: z.any(),\n $lte: z.any(),\n $ne: z.any(),\n $nin: z.array(z.any()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n default: z\n .object({\n $eq: z.boolean(),\n $exists: z.boolean(),\n $gt: z.boolean(),\n $gte: z.boolean(),\n $hasAll: z.array(z.boolean()),\n $hasSome: z.array(z.boolean()),\n $in: z.array(z.boolean()),\n $lt: z.boolean(),\n $lte: z.boolean(),\n $ne: z.boolean(),\n $nin: z.array(z.boolean()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n allowCustomerTip: z\n .object({\n $eq: z.boolean(),\n $exists: z.boolean(),\n $gt: z.boolean(),\n $gte: z.boolean(),\n $hasAll: z.array(z.boolean()),\n $hasSome: z.array(z.boolean()),\n $in: z.array(z.boolean()),\n $lt: z.boolean(),\n $lte: z.boolean(),\n $ne: z.boolean(),\n $nin: z.array(z.boolean()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n allowBusinessTipAtPayment: z\n .object({\n $eq: z.boolean(),\n $exists: z.boolean(),\n $gt: z.boolean(),\n $gte: z.boolean(),\n $hasAll: z.array(z.boolean()),\n $hasSome: z.array(z.boolean()),\n $in: z.array(z.boolean()),\n $lt: z.boolean(),\n $lte: z.boolean(),\n $ne: z.boolean(),\n $nin: z.array(z.boolean()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n allowEditDistribution: z\n .object({\n $eq: z.boolean(),\n $exists: z.boolean(),\n $gt: z.boolean(),\n $gte: z.boolean(),\n $hasAll: z.array(z.boolean()),\n $hasSome: z.array(z.boolean()),\n $in: z.array(z.boolean()),\n $lt: z.boolean(),\n $lte: z.boolean(),\n $ne: z.boolean(),\n $nin: z.array(z.boolean()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n allowCustomAmount: z\n .object({\n $eq: z.boolean(),\n $exists: z.boolean(),\n $gt: z.boolean(),\n $gte: z.boolean(),\n $hasAll: z.array(z.boolean()),\n $hasSome: z.array(z.boolean()),\n $in: z.array(z.boolean()),\n $lt: z.boolean(),\n $lte: z.boolean(),\n $ne: z.boolean(),\n $nin: z.array(z.boolean()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n tipType: z\n .object({\n $eq: z.string(),\n $exists: z.boolean(),\n $gt: z.string(),\n $gte: z.string(),\n $hasAll: z.array(z.string()),\n $hasSome: z.array(z.string()),\n $in: z.array(z.string()),\n $lt: z.string(),\n $lte: z.string(),\n $ne: z.string(),\n $nin: z.array(z.string()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n $and: z.array(z.any()).optional(),\n $or: z.array(z.any()).optional(),\n $not: z.any().optional(),\n })\n .strict()\n .optional(),\n sort: z\n .array(\n z.object({\n fieldName: z\n .enum([\n '_id',\n 'locationId',\n 'paymentTerminalId',\n 'default',\n 'allowCustomerTip',\n 'allowBusinessTipAtPayment',\n 'allowEditDistribution',\n 'allowCustomAmount',\n 'tipType',\n ])\n .optional(),\n order: z.enum(['ASC', 'DESC']).optional(),\n })\n )\n .optional(),\n })\n .catchall(z.any())\n .describe('WQL expression'),\n});\nexport const QueryTipSettingsResponse = z.object({\n tipSettings: z\n .array(\n z.intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the tip settings.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n tipType: z\n .enum(['UNKNOWN_TIP_TYPE', 'PERCENTAGE', 'AMOUNT'])\n .describe('Tip type.')\n .optional(),\n presets: z\n .array(\n z.object({\n value: z\n .number()\n .describe(\n \"Value of the preset tip choice that's displayed to customers in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\nFor example, `5`, `10`, and `15` percent or `1`, `3`, and `5` USD.\\n\\nMin: `0`\"\n )\n .min(0)\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether this tip choice value is the default preset that's highlighted automatically in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `false`\"\n )\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n allowCustomerTip: z\n .boolean()\n .describe(\n 'Whether customers are allowed to tip during the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowBusinessTipAtPayment: z\n .boolean()\n .describe(\n 'Whether the Wix users are given the option to add a tip during the\\npayment collection flow in their dashboard.\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowCustomAmount: z\n .boolean()\n .describe(\n \"Whether customers can enter a custom tip amount. If set to `false`, customers\\ncan only select a tip value from the available `presets` and can't enter a\\ncustom amount.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n allowEditDistribution: z\n .boolean()\n .describe(\n \"Whether Wix users are allowed to edit tip distributions. If set to\\n`false`, Wix users can't edit distributions after they were created.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n autoTipOnCheckInEnabled: z\n .boolean()\n .describe(\n 'Whether a tip is automatically added to the related order on check-in.\\nWhen `true`, a tip of `auto_tip_on_check_in_percentage` percent is added\\nto the order when a check-in occurs.\\n\\nDefault: `false`'\n )\n .optional()\n .nullable(),\n autoTipOnCheckInPercentage: z\n .number()\n .describe(\n 'The tip percentage that is automatically added to the order on check-in when\\n`auto_tip_on_check_in_enabled` is `true`.\\n\\nMin: `1`\\nMax: `100`'\n )\n .optional()\n .nullable(),\n staffDistributionMethod: z\n .enum(['UNKNOWN_SPLIT_METHOD', 'EQUAL', 'PROPORTIONAL'])\n .describe(\n 'How the tip is distributed among staff.\\n\\nSupported values:\\n`UNKNOWN_SPLIT_METHOD`: There is no information about the staff distribution method.\\n`EQUAL`: The tip is distributed equally among all staff.\\n`PROPORTIONAL`: The tip is distributed proportionally among staff.'\n )\n .optional(),\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 `tipSettings` object is\\nupdated. To prevent conflicting changes, the current revision must be passed\\nwhen updating `tipSettings`. Ignored when creating a `tipSettings` object.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Date and time the tip settings were created in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Date and time the tip settings were last updated in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether these are the default tip settings.\\n\\nWix Tips automatically creates the default settings during\\nthe app's installation. You can't delete these default settings\\nbut you can update them. Wix Tips uses the default settings\\nto calculate tips, unless you specify other settings.\"\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app that has created the settings. See the list of app IDs for\\nWix business solutions ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/apps-created-by-wix) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/apps-created-by-wix)).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\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 `tipSettings` object. Extended fields must be\\nconfigured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n }),\n z.object({\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n locationId: z\n .string()\n .describe(\n 'ID of the location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/location-object))\\nfor which the tip settings apply.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n locationId: z.never().optional(),\n userId: z.never().optional(),\n paymentTerminalId: z\n .string()\n .describe(\n \"ID of the payment terminal for which the tip settings apply. Wix Tips doesn't\\nvalidate the ID you provide.\\n\\nMax: 30 characters\"\n )\n .max(30),\n }),\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z\n .string()\n .describe(\n 'ID of the Wix user for whom the tip settings apply. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n )\n )\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in the response.')\n .optional()\n .nullable(),\n offset: z\n .number()\n .int()\n .describe('Offset that was requested.')\n .optional()\n .nullable(),\n total: z\n .number()\n .int()\n .describe(\n 'Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set.'\n )\n .optional()\n .nullable(),\n tooManyToCount: z\n .boolean()\n .describe(\n 'Flag that indicates the server failed to calculate the `total` field.'\n )\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe(\n 'Cursor string pointing to the next page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to the previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.'\n )\n .optional(),\n })\n .describe('Metadata for the paged set of retrieved `tipSettings` objects.')\n .optional(),\n});\nexport const UpdateTipSettingsRequest = z.object({\n tipSettings: z\n .intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the tip settings.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n tipType: z\n .enum(['UNKNOWN_TIP_TYPE', 'PERCENTAGE', 'AMOUNT'])\n .optional(),\n presets: z\n .array(\n z.object({\n value: z\n .number()\n .describe(\n \"Value of the preset tip choice that's displayed to customers in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\nFor example, `5`, `10`, and `15` percent or `1`, `3`, and `5` USD.\\n\\nMin: `0`\"\n )\n .min(0)\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether this tip choice value is the default preset that's highlighted automatically in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `false`\"\n )\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n allowCustomerTip: z\n .boolean()\n .describe(\n 'Whether customers are allowed to tip during the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowBusinessTipAtPayment: z\n .boolean()\n .describe(\n 'Whether the Wix users are given the option to add a tip during the\\npayment collection flow in their dashboard.\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowCustomAmount: z\n .boolean()\n .describe(\n \"Whether customers can enter a custom tip amount. If set to `false`, customers\\ncan only select a tip value from the available `presets` and can't enter a\\ncustom amount.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n allowEditDistribution: z\n .boolean()\n .describe(\n \"Whether Wix users are allowed to edit tip distributions. If set to\\n`false`, Wix users can't edit distributions after they were created.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n autoTipOnCheckInEnabled: z\n .boolean()\n .describe(\n 'Whether a tip is automatically added to the related order on check-in.\\nWhen `true`, a tip of `auto_tip_on_check_in_percentage` percent is added\\nto the order when a check-in occurs.\\n\\nDefault: `false`'\n )\n .optional()\n .nullable(),\n autoTipOnCheckInPercentage: z\n .number()\n .describe(\n 'The tip percentage that is automatically added to the order on check-in when\\n`auto_tip_on_check_in_enabled` is `true`.\\n\\nMin: `1`\\nMax: `100`'\n )\n .optional()\n .nullable(),\n staffDistributionMethod: z\n .enum(['UNKNOWN_SPLIT_METHOD', 'EQUAL', 'PROPORTIONAL'])\n .optional(),\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 `tipSettings` object is\\nupdated. To prevent conflicting changes, the current revision must be passed\\nwhen updating `tipSettings`. Ignored when creating a `tipSettings` object.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Date and time the tip settings were created in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Date and time the tip settings were last updated in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether these are the default tip settings.\\n\\nWix Tips automatically creates the default settings during\\nthe app's installation. You can't delete these default settings\\nbut you can update them. Wix Tips uses the default settings\\nto calculate tips, unless you specify other settings.\"\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app that has created the settings. See the list of app IDs for\\nWix business solutions ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/apps-created-by-wix) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/apps-created-by-wix)).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\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 `tipSettings` object. Extended fields must be\\nconfigured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n }),\n z.object({\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n locationId: z\n .string()\n .describe(\n 'ID of the location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/location-object))\\nfor which the tip settings apply.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n locationId: z.never().optional(),\n userId: z.never().optional(),\n paymentTerminalId: z\n .string()\n .describe(\n \"ID of the payment terminal for which the tip settings apply. Wix Tips doesn't\\nvalidate the ID you provide.\\n\\nMax: 30 characters\"\n )\n .max(30),\n }),\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z\n .string()\n .describe(\n 'ID of the Wix user for whom the tip settings apply. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n )\n .describe('Tip settings to update.'),\n});\nexport const UpdateTipSettingsResponse = z.intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the tip settings.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n tipType: z\n .enum(['UNKNOWN_TIP_TYPE', 'PERCENTAGE', 'AMOUNT'])\n .describe('Tip type.')\n .optional(),\n presets: z\n .array(\n z.object({\n value: z\n .number()\n .describe(\n \"Value of the preset tip choice that's displayed to customers in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\nFor example, `5`, `10`, and `15` percent or `1`, `3`, and `5` USD.\\n\\nMin: `0`\"\n )\n .min(0)\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether this tip choice value is the default preset that's highlighted automatically in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `false`\"\n )\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n allowCustomerTip: z\n .boolean()\n .describe(\n 'Whether customers are allowed to tip during the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowBusinessTipAtPayment: z\n .boolean()\n .describe(\n 'Whether the Wix users are given the option to add a tip during the\\npayment collection flow in their dashboard.\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowCustomAmount: z\n .boolean()\n .describe(\n \"Whether customers can enter a custom tip amount. If set to `false`, customers\\ncan only select a tip value from the available `presets` and can't enter a\\ncustom amount.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n allowEditDistribution: z\n .boolean()\n .describe(\n \"Whether Wix users are allowed to edit tip distributions. If set to\\n`false`, Wix users can't edit distributions after they were created.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n autoTipOnCheckInEnabled: z\n .boolean()\n .describe(\n 'Whether a tip is automatically added to the related order on check-in.\\nWhen `true`, a tip of `auto_tip_on_check_in_percentage` percent is added\\nto the order when a check-in occurs.\\n\\nDefault: `false`'\n )\n .optional()\n .nullable(),\n autoTipOnCheckInPercentage: z\n .number()\n .describe(\n 'The tip percentage that is automatically added to the order on check-in when\\n`auto_tip_on_check_in_enabled` is `true`.\\n\\nMin: `1`\\nMax: `100`'\n )\n .optional()\n .nullable(),\n staffDistributionMethod: z\n .enum(['UNKNOWN_SPLIT_METHOD', 'EQUAL', 'PROPORTIONAL'])\n .describe(\n 'How the tip is distributed among staff.\\n\\nSupported values:\\n`UNKNOWN_SPLIT_METHOD`: There is no information about the staff distribution method.\\n`EQUAL`: The tip is distributed equally among all staff.\\n`PROPORTIONAL`: The tip is distributed proportionally among staff.'\n )\n .optional(),\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 `tipSettings` object is\\nupdated. To prevent conflicting changes, the current revision must be passed\\nwhen updating `tipSettings`. Ignored when creating a `tipSettings` object.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Date and time the tip settings were created in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Date and time the tip settings were last updated in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether these are the default tip settings.\\n\\nWix Tips automatically creates the default settings during\\nthe app's installation. You can't delete these default settings\\nbut you can update them. Wix Tips uses the default settings\\nto calculate tips, unless you specify other settings.\"\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app that has created the settings. See the list of app IDs for\\nWix business solutions ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/apps-created-by-wix) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/apps-created-by-wix)).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\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 `tipSettings` object. Extended fields must be\\nconfigured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n }),\n z.object({\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n locationId: z\n .string()\n .describe(\n 'ID of the location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/location-object))\\nfor which the tip settings apply.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n locationId: z.never().optional(),\n userId: z.never().optional(),\n paymentTerminalId: z\n .string()\n .describe(\n \"ID of the payment terminal for which the tip settings apply. Wix Tips doesn't\\nvalidate the ID you provide.\\n\\nMax: 30 characters\"\n )\n .max(30),\n }),\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z\n .string()\n .describe(\n 'ID of the Wix user for whom the tip settings apply. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n);\nexport const CreateTipSettingsRequest = z.object({\n tipSettings: z\n .intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the tip settings.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n tipType: z\n .enum(['UNKNOWN_TIP_TYPE', 'PERCENTAGE', 'AMOUNT'])\n .optional(),\n presets: z\n .array(\n z.object({\n value: z\n .number()\n .describe(\n \"Value of the preset tip choice that's displayed to customers in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\nFor example, `5`, `10`, and `15` percent or `1`, `3`, and `5` USD.\\n\\nMin: `0`\"\n )\n .min(0)\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether this tip choice value is the default preset that's highlighted automatically in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `false`\"\n )\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n allowCustomerTip: z\n .boolean()\n .describe(\n 'Whether customers are allowed to tip during the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowBusinessTipAtPayment: z\n .boolean()\n .describe(\n 'Whether the Wix users are given the option to add a tip during the\\npayment collection flow in their dashboard.\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowCustomAmount: z\n .boolean()\n .describe(\n \"Whether customers can enter a custom tip amount. If set to `false`, customers\\ncan only select a tip value from the available `presets` and can't enter a\\ncustom amount.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n allowEditDistribution: z\n .boolean()\n .describe(\n \"Whether Wix users are allowed to edit tip distributions. If set to\\n`false`, Wix users can't edit distributions after they were created.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n autoTipOnCheckInEnabled: z\n .boolean()\n .describe(\n 'Whether a tip is automatically added to the related order on check-in.\\nWhen `true`, a tip of `auto_tip_on_check_in_percentage` percent is added\\nto the order when a check-in occurs.\\n\\nDefault: `false`'\n )\n .optional()\n .nullable(),\n autoTipOnCheckInPercentage: z\n .number()\n .describe(\n 'The tip percentage that is automatically added to the order on check-in when\\n`auto_tip_on_check_in_enabled` is `true`.\\n\\nMin: `1`\\nMax: `100`'\n )\n .optional()\n .nullable(),\n staffDistributionMethod: z\n .enum(['UNKNOWN_SPLIT_METHOD', 'EQUAL', 'PROPORTIONAL'])\n .optional(),\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 `tipSettings` object is\\nupdated. To prevent conflicting changes, the current revision must be passed\\nwhen updating `tipSettings`. Ignored when creating a `tipSettings` object.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Date and time the tip settings were created in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Date and time the tip settings were last updated in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether these are the default tip settings.\\n\\nWix Tips automatically creates the default settings during\\nthe app's installation. You can't delete these default settings\\nbut you can update them. Wix Tips uses the default settings\\nto calculate tips, unless you specify other settings.\"\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app that has created the settings. See the list of app IDs for\\nWix business solutions ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/apps-created-by-wix) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/apps-created-by-wix)).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\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 `tipSettings` object. Extended fields must be\\nconfigured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n }),\n z.object({\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n locationId: z\n .string()\n .describe(\n 'ID of the location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/location-object))\\nfor which the tip settings apply.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n locationId: z.never().optional(),\n userId: z.never().optional(),\n paymentTerminalId: z\n .string()\n .describe(\n \"ID of the payment terminal for which the tip settings apply. Wix Tips doesn't\\nvalidate the ID you provide.\\n\\nMax: 30 characters\"\n )\n .max(30),\n }),\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z\n .string()\n .describe(\n 'ID of the Wix user for whom the tip settings apply. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n )\n .describe('Tip settings to create.'),\n});\nexport const CreateTipSettingsResponse = z.intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the tip settings.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n tipType: z\n .enum(['UNKNOWN_TIP_TYPE', 'PERCENTAGE', 'AMOUNT'])\n .describe('Tip type.')\n .optional(),\n presets: z\n .array(\n z.object({\n value: z\n .number()\n .describe(\n \"Value of the preset tip choice that's displayed to customers in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\nFor example, `5`, `10`, and `15` percent or `1`, `3`, and `5` USD.\\n\\nMin: `0`\"\n )\n .min(0)\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether this tip choice value is the default preset that's highlighted automatically in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `false`\"\n )\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n allowCustomerTip: z\n .boolean()\n .describe(\n 'Whether customers are allowed to tip during the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowBusinessTipAtPayment: z\n .boolean()\n .describe(\n 'Whether the Wix users are given the option to add a tip during the\\npayment collection flow in their dashboard.\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowCustomAmount: z\n .boolean()\n .describe(\n \"Whether customers can enter a custom tip amount. If set to `false`, customers\\ncan only select a tip value from the available `presets` and can't enter a\\ncustom amount.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n allowEditDistribution: z\n .boolean()\n .describe(\n \"Whether Wix users are allowed to edit tip distributions. If set to\\n`false`, Wix users can't edit distributions after they were created.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n autoTipOnCheckInEnabled: z\n .boolean()\n .describe(\n 'Whether a tip is automatically added to the related order on check-in.\\nWhen `true`, a tip of `auto_tip_on_check_in_percentage` percent is added\\nto the order when a check-in occurs.\\n\\nDefault: `false`'\n )\n .optional()\n .nullable(),\n autoTipOnCheckInPercentage: z\n .number()\n .describe(\n 'The tip percentage that is automatically added to the order on check-in when\\n`auto_tip_on_check_in_enabled` is `true`.\\n\\nMin: `1`\\nMax: `100`'\n )\n .optional()\n .nullable(),\n staffDistributionMethod: z\n .enum(['UNKNOWN_SPLIT_METHOD', 'EQUAL', 'PROPORTIONAL'])\n .describe(\n 'How the tip is distributed among staff.\\n\\nSupported values:\\n`UNKNOWN_SPLIT_METHOD`: There is no information about the staff distribution method.\\n`EQUAL`: The tip is distributed equally among all staff.\\n`PROPORTIONAL`: The tip is distributed proportionally among staff.'\n )\n .optional(),\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 `tipSettings` object is\\nupdated. To prevent conflicting changes, the current revision must be passed\\nwhen updating `tipSettings`. Ignored when creating a `tipSettings` object.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Date and time the tip settings were created in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Date and time the tip settings were last updated in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether these are the default tip settings.\\n\\nWix Tips automatically creates the default settings during\\nthe app's installation. You can't delete these default settings\\nbut you can update them. Wix Tips uses the default settings\\nto calculate tips, unless you specify other settings.\"\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app that has created the settings. See the list of app IDs for\\nWix business solutions ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/apps-created-by-wix) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/apps-created-by-wix)).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\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 `tipSettings` object. Extended fields must be\\nconfigured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n }),\n z.object({\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n locationId: z\n .string()\n .describe(\n 'ID of the location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/location-object))\\nfor which the tip settings apply.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n locationId: z.never().optional(),\n userId: z.never().optional(),\n paymentTerminalId: z\n .string()\n .describe(\n \"ID of the payment terminal for which the tip settings apply. Wix Tips doesn't\\nvalidate the ID you provide.\\n\\nMax: 30 characters\"\n )\n .max(30),\n }),\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z\n .string()\n .describe(\n 'ID of the Wix user for whom the tip settings apply. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n);\nexport const CreateDefaultTipSettingsRequest = z.object({\n tipSettings: z\n .intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the tip settings.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n tipType: z\n .enum(['UNKNOWN_TIP_TYPE', 'PERCENTAGE', 'AMOUNT'])\n .optional(),\n presets: z\n .array(\n z.object({\n value: z\n .number()\n .describe(\n \"Value of the preset tip choice that's displayed to customers in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\nFor example, `5`, `10`, and `15` percent or `1`, `3`, and `5` USD.\\n\\nMin: `0`\"\n )\n .min(0)\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether this tip choice value is the default preset that's highlighted automatically in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `false`\"\n )\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n allowCustomerTip: z\n .boolean()\n .describe(\n 'Whether customers are allowed to tip during the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowBusinessTipAtPayment: z\n .boolean()\n .describe(\n 'Whether the Wix users are given the option to add a tip during the\\npayment collection flow in their dashboard.\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowCustomAmount: z\n .boolean()\n .describe(\n \"Whether customers can enter a custom tip amount. If set to `false`, customers\\ncan only select a tip value from the available `presets` and can't enter a\\ncustom amount.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n allowEditDistribution: z\n .boolean()\n .describe(\n \"Whether Wix users are allowed to edit tip distributions. If set to\\n`false`, Wix users can't edit distributions after they were created.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n autoTipOnCheckInEnabled: z\n .boolean()\n .describe(\n 'Whether a tip is automatically added to the related order on check-in.\\nWhen `true`, a tip of `auto_tip_on_check_in_percentage` percent is added\\nto the order when a check-in occurs.\\n\\nDefault: `false`'\n )\n .optional()\n .nullable(),\n autoTipOnCheckInPercentage: z\n .number()\n .describe(\n 'The tip percentage that is automatically added to the order on check-in when\\n`auto_tip_on_check_in_enabled` is `true`.\\n\\nMin: `1`\\nMax: `100`'\n )\n .optional()\n .nullable(),\n staffDistributionMethod: z\n .enum(['UNKNOWN_SPLIT_METHOD', 'EQUAL', 'PROPORTIONAL'])\n .optional(),\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 `tipSettings` object is\\nupdated. To prevent conflicting changes, the current revision must be passed\\nwhen updating `tipSettings`. Ignored when creating a `tipSettings` object.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Date and time the tip settings were created in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Date and time the tip settings were last updated in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether these are the default tip settings.\\n\\nWix Tips automatically creates the default settings during\\nthe app's installation. You can't delete these default settings\\nbut you can update them. Wix Tips uses the default settings\\nto calculate tips, unless you specify other settings.\"\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app that has created the settings. See the list of app IDs for\\nWix business solutions ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/apps-created-by-wix) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/apps-created-by-wix)).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\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 `tipSettings` object. Extended fields must be\\nconfigured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n }),\n z.object({\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n locationId: z\n .string()\n .describe(\n 'ID of the location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/location-object))\\nfor which the tip settings apply.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n locationId: z.never().optional(),\n userId: z.never().optional(),\n paymentTerminalId: z\n .string()\n .describe(\n \"ID of the payment terminal for which the tip settings apply. Wix Tips doesn't\\nvalidate the ID you provide.\\n\\nMax: 30 characters\"\n )\n .max(30),\n }),\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z\n .string()\n .describe(\n 'ID of the Wix user for whom the tip settings apply. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n )\n .describe('Default tip settings to create.'),\n});\nexport const CreateDefaultTipSettingsResponse = z.object({\n tipSettings: z\n .intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the tip settings.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n tipType: z\n .enum(['UNKNOWN_TIP_TYPE', 'PERCENTAGE', 'AMOUNT'])\n .describe('Tip type.')\n .optional(),\n presets: z\n .array(\n z.object({\n value: z\n .number()\n .describe(\n \"Value of the preset tip choice that's displayed to customers in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\nFor example, `5`, `10`, and `15` percent or `1`, `3`, and `5` USD.\\n\\nMin: `0`\"\n )\n .min(0)\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether this tip choice value is the default preset that's highlighted automatically in the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `false`\"\n )\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n allowCustomerTip: z\n .boolean()\n .describe(\n 'Whether customers are allowed to tip during the\\neCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowBusinessTipAtPayment: z\n .boolean()\n .describe(\n 'Whether the Wix users are given the option to add a tip during the\\npayment collection flow in their dashboard.\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n allowCustomAmount: z\n .boolean()\n .describe(\n \"Whether customers can enter a custom tip amount. If set to `false`, customers\\ncan only select a tip value from the available `presets` and can't enter a\\ncustom amount.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n allowEditDistribution: z\n .boolean()\n .describe(\n \"Whether Wix users are allowed to edit tip distributions. If set to\\n`false`, Wix users can't edit distributions after they were created.\\n\\nDefault: `true`\"\n )\n .optional()\n .nullable(),\n autoTipOnCheckInEnabled: z\n .boolean()\n .describe(\n 'Whether a tip is automatically added to the related order on check-in.\\nWhen `true`, a tip of `auto_tip_on_check_in_percentage` percent is added\\nto the order when a check-in occurs.\\n\\nDefault: `false`'\n )\n .optional()\n .nullable(),\n autoTipOnCheckInPercentage: z\n .number()\n .describe(\n 'The tip percentage that is automatically added to the order on check-in when\\n`auto_tip_on_check_in_enabled` is `true`.\\n\\nMin: `1`\\nMax: `100`'\n )\n .optional()\n .nullable(),\n staffDistributionMethod: z\n .enum(['UNKNOWN_SPLIT_METHOD', 'EQUAL', 'PROPORTIONAL'])\n .describe(\n 'How the tip is distributed among staff.\\n\\nSupported values:\\n`UNKNOWN_SPLIT_METHOD`: There is no information about the staff distribution method.\\n`EQUAL`: The tip is distributed equally among all staff.\\n`PROPORTIONAL`: The tip is distributed proportionally among staff.'\n )\n .optional(),\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 `tipSettings` object is\\nupdated. To prevent conflicting changes, the current revision must be passed\\nwhen updating `tipSettings`. Ignored when creating a `tipSettings` object.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Date and time the tip settings were created in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Date and time the tip settings were last updated in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n )\n .optional()\n .nullable(),\n default: z\n .boolean()\n .describe(\n \"Whether these are the default tip settings.\\n\\nWix Tips automatically creates the default settings during\\nthe app's installation. You can't delete these default settings\\nbut you can update them. Wix Tips uses the default settings\\nto calculate tips, unless you specify other settings.\"\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app that has created the settings. See the list of app IDs for\\nWix business solutions ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/apps-created-by-wix) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/apps-created-by-wix)).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\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 `tipSettings` object. Extended fields must be\\nconfigured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n }),\n z.object({\n paymentTerminalId: z.never().optional(),\n userId: z.never().optional(),\n locationId: z\n .string()\n .describe(\n 'ID of the location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/location-object))\\nfor which the tip settings apply.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n locationId: z.never().optional(),\n userId: z.never().optional(),\n paymentTerminalId: z\n .string()\n .describe(\n \"ID of the payment terminal for which the tip settings apply. Wix Tips doesn't\\nvalidate the ID you provide.\\n\\nMax: 30 characters\"\n )\n .max(30),\n }),\n z.object({\n locationId: z.never().optional(),\n paymentTerminalId: z.never().optional(),\n userId: z\n .string()\n .describe(\n 'ID of the Wix user for whom the tip settings apply. For example, the site owner or a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n )\n .describe('Created default tip settings.')\n .optional(),\n});\nexport const DeleteTipSettingsRequest = z.object({\n tipSettingsId: z\n .string()\n .describe('ID of the `tipSettings` object to delete.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const DeleteTipSettingsResponse = z.object({});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,0BAA4B,SAAO;AAAA,EAC9C,OACG,SAAO;AAAA,IACN,QACG,SAAO;AAAA,MACN,KACG,SAAO;AAAA,QACN,KAAO,SAAO;AAAA,QACd,SAAW,UAAQ;AAAA,QACnB,KAAO,SAAO;AAAA,QACd,MAAQ,SAAO;AAAA,QACf,SAAW,QAAQ,SAAO,CAAC;AAAA,QAC3B,UAAY,QAAQ,SAAO,CAAC;AAAA,QAC5B,KAAO,QAAQ,SAAO,CAAC;AAAA,QACvB,KAAO,SAAO;AAAA,QACd,MAAQ,SAAO;AAAA,QACf,KAAO,SAAO;AAAA,QACd,MAAQ,QAAQ,SAAO,CAAC;AAAA,QACxB,aAAe,SAAO;AAAA,MACxB,CAAC,EACA,QAAQ,EACR,OAAO,EACP,SAAS;AAAA,MACZ,YACG,SAAO;AAAA,QACN,KAAO,MAAI;AAAA,QACX,SAAW,UAAQ;AAAA,QACnB,KAAO,MAAI;AAAA,QACX,MAAQ,MAAI;AAAA,QACZ,SAAW,QAAQ,MAAI,CAAC;AAAA,QACxB,UAAY,QAAQ,MAAI,CAAC;AAAA,QACzB,KAAO,QAAQ,MAAI,CAAC;AAAA,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,QAAU,QAAM,EAAE,SAAS;AAAA,QAC3B,mBACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,IAAI,EAAE;AAAA,MACX,CAAC;AAAA,MACC,SAAO;AAAA,QACP,YAAc,QAAM,EAAE,SAAS;AAAA,QAC/B,mBAAqB,QAAM,EAAE,SAAS;AAAA,QACtC,QACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC;AAAA,UACC;AAAA,UACA;AAAA,QACF;AAAA,MACJ,CAAC;AAAA,IACH,CAAC;AAAA,EACH,EACC,SAAS,+BAA+B,EACxC,SAAS;AACd,CAAC;AACM,IAAM,2BAA6B,SAAO;AAAA,EAC/C,eACG,SAAO,EACP,SAAS,2CAA2C,EACpD;AAAA,IACC;AAAA,IACA;AAAA,EACF;AACJ,CAAC;AACM,IAAM,4BAA8B,SAAO,CAAC,CAAC;","names":[]}
|
package/build/es/index.mjs
CHANGED
|
@@ -68,16 +68,19 @@ function queryTipSettings(payload) {
|
|
|
68
68
|
}),
|
|
69
69
|
data: payload,
|
|
70
70
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
71
|
+
{
|
|
72
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
73
|
+
paths: [
|
|
74
|
+
{ path: "tipSettings.autoTipOnCheckInPercentage" },
|
|
75
|
+
{ path: "tipSettings.presets.value" }
|
|
76
|
+
]
|
|
77
|
+
},
|
|
71
78
|
{
|
|
72
79
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
73
80
|
paths: [
|
|
74
81
|
{ path: "tipSettings.createdDate" },
|
|
75
82
|
{ path: "tipSettings.updatedDate" }
|
|
76
83
|
]
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
80
|
-
paths: [{ path: "tipSettings.presets.value" }]
|
|
81
84
|
}
|
|
82
85
|
])
|
|
83
86
|
};
|
|
@@ -92,16 +95,19 @@ function updateTipSettings(payload) {
|
|
|
92
95
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
93
96
|
paths: [{ path: "fieldMask" }]
|
|
94
97
|
},
|
|
98
|
+
{
|
|
99
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
100
|
+
paths: [
|
|
101
|
+
{ path: "tipSettings.autoTipOnCheckInPercentage" },
|
|
102
|
+
{ path: "tipSettings.presets.value" }
|
|
103
|
+
]
|
|
104
|
+
},
|
|
95
105
|
{
|
|
96
106
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
97
107
|
paths: [
|
|
98
108
|
{ path: "tipSettings.createdDate" },
|
|
99
109
|
{ path: "tipSettings.updatedDate" }
|
|
100
110
|
]
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
104
|
-
paths: [{ path: "tipSettings.presets.value" }]
|
|
105
111
|
}
|
|
106
112
|
]);
|
|
107
113
|
const metadata = {
|
|
@@ -119,16 +125,19 @@ function updateTipSettings(payload) {
|
|
|
119
125
|
}),
|
|
120
126
|
data: serializedData,
|
|
121
127
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
128
|
+
{
|
|
129
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
130
|
+
paths: [
|
|
131
|
+
{ path: "tipSettings.autoTipOnCheckInPercentage" },
|
|
132
|
+
{ path: "tipSettings.presets.value" }
|
|
133
|
+
]
|
|
134
|
+
},
|
|
122
135
|
{
|
|
123
136
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
124
137
|
paths: [
|
|
125
138
|
{ path: "tipSettings.createdDate" },
|
|
126
139
|
{ path: "tipSettings.updatedDate" }
|
|
127
140
|
]
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
131
|
-
paths: [{ path: "tipSettings.presets.value" }]
|
|
132
141
|
}
|
|
133
142
|
])
|
|
134
143
|
};
|
|
@@ -139,16 +148,19 @@ function updateTipSettings(payload) {
|
|
|
139
148
|
function createTipSettings(payload) {
|
|
140
149
|
function __createTipSettings({ host }) {
|
|
141
150
|
const serializedData = transformPaths(payload, [
|
|
151
|
+
{
|
|
152
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
153
|
+
paths: [
|
|
154
|
+
{ path: "tipSettings.autoTipOnCheckInPercentage" },
|
|
155
|
+
{ path: "tipSettings.presets.value" }
|
|
156
|
+
]
|
|
157
|
+
},
|
|
142
158
|
{
|
|
143
159
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
144
160
|
paths: [
|
|
145
161
|
{ path: "tipSettings.createdDate" },
|
|
146
162
|
{ path: "tipSettings.updatedDate" }
|
|
147
163
|
]
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
151
|
-
paths: [{ path: "tipSettings.presets.value" }]
|
|
152
164
|
}
|
|
153
165
|
]);
|
|
154
166
|
const metadata = {
|
|
@@ -166,16 +178,19 @@ function createTipSettings(payload) {
|
|
|
166
178
|
}),
|
|
167
179
|
data: serializedData,
|
|
168
180
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
181
|
+
{
|
|
182
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
183
|
+
paths: [
|
|
184
|
+
{ path: "tipSettings.autoTipOnCheckInPercentage" },
|
|
185
|
+
{ path: "tipSettings.presets.value" }
|
|
186
|
+
]
|
|
187
|
+
},
|
|
169
188
|
{
|
|
170
189
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
171
190
|
paths: [
|
|
172
191
|
{ path: "tipSettings.createdDate" },
|
|
173
192
|
{ path: "tipSettings.updatedDate" }
|
|
174
193
|
]
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
178
|
-
paths: [{ path: "tipSettings.presets.value" }]
|
|
179
194
|
}
|
|
180
195
|
])
|
|
181
196
|
};
|
|
@@ -186,16 +201,19 @@ function createTipSettings(payload) {
|
|
|
186
201
|
function createDefaultTipSettings(payload) {
|
|
187
202
|
function __createDefaultTipSettings({ host }) {
|
|
188
203
|
const serializedData = transformPaths(payload, [
|
|
204
|
+
{
|
|
205
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
206
|
+
paths: [
|
|
207
|
+
{ path: "tipSettings.autoTipOnCheckInPercentage" },
|
|
208
|
+
{ path: "tipSettings.presets.value" }
|
|
209
|
+
]
|
|
210
|
+
},
|
|
189
211
|
{
|
|
190
212
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
191
213
|
paths: [
|
|
192
214
|
{ path: "tipSettings.createdDate" },
|
|
193
215
|
{ path: "tipSettings.updatedDate" }
|
|
194
216
|
]
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
198
|
-
paths: [{ path: "tipSettings.presets.value" }]
|
|
199
217
|
}
|
|
200
218
|
]);
|
|
201
219
|
const metadata = {
|
|
@@ -213,16 +231,19 @@ function createDefaultTipSettings(payload) {
|
|
|
213
231
|
}),
|
|
214
232
|
data: serializedData,
|
|
215
233
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
234
|
+
{
|
|
235
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
236
|
+
paths: [
|
|
237
|
+
{ path: "tipSettings.autoTipOnCheckInPercentage" },
|
|
238
|
+
{ path: "tipSettings.presets.value" }
|
|
239
|
+
]
|
|
240
|
+
},
|
|
216
241
|
{
|
|
217
242
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
218
243
|
paths: [
|
|
219
244
|
{ path: "tipSettings.createdDate" },
|
|
220
245
|
{ path: "tipSettings.updatedDate" }
|
|
221
246
|
]
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
225
|
-
paths: [{ path: "tipSettings.presets.value" }]
|
|
226
247
|
}
|
|
227
248
|
])
|
|
228
249
|
};
|