@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.
Files changed (45) hide show
  1. package/build/cjs/index.js +49 -28
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +17 -1
  4. package/build/cjs/index.typings.js +49 -28
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +17 -1
  7. package/build/cjs/meta.js +49 -28
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/cjs/schemas.d.ts +14 -0
  10. package/build/cjs/schemas.js +42 -0
  11. package/build/cjs/schemas.js.map +1 -1
  12. package/build/es/index.mjs +49 -28
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +17 -1
  15. package/build/es/index.typings.mjs +49 -28
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +17 -1
  18. package/build/es/meta.mjs +49 -28
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/schemas.d.mts +14 -0
  21. package/build/es/schemas.mjs +42 -0
  22. package/build/es/schemas.mjs.map +1 -1
  23. package/build/internal/cjs/index.js +49 -28
  24. package/build/internal/cjs/index.js.map +1 -1
  25. package/build/internal/cjs/index.typings.d.ts +17 -1
  26. package/build/internal/cjs/index.typings.js +49 -28
  27. package/build/internal/cjs/index.typings.js.map +1 -1
  28. package/build/internal/cjs/meta.d.ts +17 -1
  29. package/build/internal/cjs/meta.js +49 -28
  30. package/build/internal/cjs/meta.js.map +1 -1
  31. package/build/internal/cjs/schemas.d.ts +14 -0
  32. package/build/internal/cjs/schemas.js +42 -0
  33. package/build/internal/cjs/schemas.js.map +1 -1
  34. package/build/internal/es/index.mjs +49 -28
  35. package/build/internal/es/index.mjs.map +1 -1
  36. package/build/internal/es/index.typings.d.mts +17 -1
  37. package/build/internal/es/index.typings.mjs +49 -28
  38. package/build/internal/es/index.typings.mjs.map +1 -1
  39. package/build/internal/es/meta.d.mts +17 -1
  40. package/build/internal/es/meta.mjs +49 -28
  41. package/build/internal/es/meta.mjs.map +1 -1
  42. package/build/internal/es/schemas.d.mts +14 -0
  43. package/build/internal/es/schemas.mjs +42 -0
  44. package/build/internal/es/schemas.mjs.map +1 -1
  45. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/tips-settings-v1-tip-settings-tip-settings.schemas.ts"],"sourcesContent":["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,YAAY,OAAO;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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A,QACN,YACG,SAAS,SAAO,GAAK,SAAS,SAAO,GAAK,MAAI,CAAC,CAAC,EAChD;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC;AAAA,IACC,MAAI;AAAA,MACF,SAAO;AAAA,QACP,YAAc,QAAM,EAAE,SAAS;AAAA,QAC/B,mBAAqB,QAAM,EAAE,SAAS;AAAA,QACtC,QAAU,QAAM,EAAE,SAAS;AAAA,MAC7B,CAAC;AAAA,MACC,SAAO;AAAA,QACP,mBAAqB,QAAM,EAAE,SAAS;AAAA,QACtC,QAAU,QAAM,EAAE,SAAS;AAAA,QAC3B,YACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC;AAAA,UACC;AAAA,UACA;AAAA,QACF;AAAA,MACJ,CAAC;AAAA,MACC,SAAO;AAAA,QACP,YAAc,QAAM,EAAE,SAAS;AAAA,QAC/B,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":[]}
1
+ {"version":3,"sources":["../../src/tips-settings-v1-tip-settings-tip-settings.schemas.ts"],"sourcesContent":["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,YAAY,OAAO;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,QACpB,KAAO,MAAI;AAAA,QACX,MAAQ,MAAI;AAAA,QACZ,KAAO,MAAI;AAAA,QACX,MAAQ,QAAQ,MAAI,CAAC;AAAA,QACrB,aAAe,SAAO;AAAA,MACxB,CAAC,EACA,QAAQ,EACR,OAAO,EACP,SAAS;AAAA,MACZ,mBACG,SAAO;AAAA,QACN,KAAO,MAAI;AAAA,QACX,SAAW,UAAQ;AAAA,QACnB,KAAO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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":[]}
@@ -100,16 +100,19 @@ function queryTipSettings(payload) {
100
100
  }),
101
101
  data: payload,
102
102
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
103
+ {
104
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
105
+ paths: [
106
+ { path: "tipSettings.autoTipOnCheckInPercentage" },
107
+ { path: "tipSettings.presets.value" }
108
+ ]
109
+ },
103
110
  {
104
111
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
105
112
  paths: [
106
113
  { path: "tipSettings.createdDate" },
107
114
  { path: "tipSettings.updatedDate" }
108
115
  ]
109
- },
110
- {
111
- transformFn: import_float2.transformRESTFloatToSDKFloat,
112
- paths: [{ path: "tipSettings.presets.value" }]
113
116
  }
114
117
  ])
115
118
  };
@@ -124,16 +127,19 @@ function updateTipSettings(payload) {
124
127
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
125
128
  paths: [{ path: "fieldMask" }]
126
129
  },
130
+ {
131
+ transformFn: import_float.transformSDKFloatToRESTFloat,
132
+ paths: [
133
+ { path: "tipSettings.autoTipOnCheckInPercentage" },
134
+ { path: "tipSettings.presets.value" }
135
+ ]
136
+ },
127
137
  {
128
138
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
129
139
  paths: [
130
140
  { path: "tipSettings.createdDate" },
131
141
  { path: "tipSettings.updatedDate" }
132
142
  ]
133
- },
134
- {
135
- transformFn: import_float.transformSDKFloatToRESTFloat,
136
- paths: [{ path: "tipSettings.presets.value" }]
137
143
  }
138
144
  ]);
139
145
  const metadata = {
@@ -151,16 +157,19 @@ function updateTipSettings(payload) {
151
157
  }),
152
158
  data: serializedData,
153
159
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
160
+ {
161
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
162
+ paths: [
163
+ { path: "tipSettings.autoTipOnCheckInPercentage" },
164
+ { path: "tipSettings.presets.value" }
165
+ ]
166
+ },
154
167
  {
155
168
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
156
169
  paths: [
157
170
  { path: "tipSettings.createdDate" },
158
171
  { path: "tipSettings.updatedDate" }
159
172
  ]
160
- },
161
- {
162
- transformFn: import_float2.transformRESTFloatToSDKFloat,
163
- paths: [{ path: "tipSettings.presets.value" }]
164
173
  }
165
174
  ])
166
175
  };
@@ -171,16 +180,19 @@ function updateTipSettings(payload) {
171
180
  function createTipSettings(payload) {
172
181
  function __createTipSettings({ host }) {
173
182
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
183
+ {
184
+ transformFn: import_float.transformSDKFloatToRESTFloat,
185
+ paths: [
186
+ { path: "tipSettings.autoTipOnCheckInPercentage" },
187
+ { path: "tipSettings.presets.value" }
188
+ ]
189
+ },
174
190
  {
175
191
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
176
192
  paths: [
177
193
  { path: "tipSettings.createdDate" },
178
194
  { path: "tipSettings.updatedDate" }
179
195
  ]
180
- },
181
- {
182
- transformFn: import_float.transformSDKFloatToRESTFloat,
183
- paths: [{ path: "tipSettings.presets.value" }]
184
196
  }
185
197
  ]);
186
198
  const metadata = {
@@ -198,16 +210,19 @@ function createTipSettings(payload) {
198
210
  }),
199
211
  data: serializedData,
200
212
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
213
+ {
214
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
215
+ paths: [
216
+ { path: "tipSettings.autoTipOnCheckInPercentage" },
217
+ { path: "tipSettings.presets.value" }
218
+ ]
219
+ },
201
220
  {
202
221
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
203
222
  paths: [
204
223
  { path: "tipSettings.createdDate" },
205
224
  { path: "tipSettings.updatedDate" }
206
225
  ]
207
- },
208
- {
209
- transformFn: import_float2.transformRESTFloatToSDKFloat,
210
- paths: [{ path: "tipSettings.presets.value" }]
211
226
  }
212
227
  ])
213
228
  };
@@ -218,16 +233,19 @@ function createTipSettings(payload) {
218
233
  function createDefaultTipSettings(payload) {
219
234
  function __createDefaultTipSettings({ host }) {
220
235
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
236
+ {
237
+ transformFn: import_float.transformSDKFloatToRESTFloat,
238
+ paths: [
239
+ { path: "tipSettings.autoTipOnCheckInPercentage" },
240
+ { path: "tipSettings.presets.value" }
241
+ ]
242
+ },
221
243
  {
222
244
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
223
245
  paths: [
224
246
  { path: "tipSettings.createdDate" },
225
247
  { path: "tipSettings.updatedDate" }
226
248
  ]
227
- },
228
- {
229
- transformFn: import_float.transformSDKFloatToRESTFloat,
230
- paths: [{ path: "tipSettings.presets.value" }]
231
249
  }
232
250
  ]);
233
251
  const metadata = {
@@ -245,16 +263,19 @@ function createDefaultTipSettings(payload) {
245
263
  }),
246
264
  data: serializedData,
247
265
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
266
+ {
267
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
268
+ paths: [
269
+ { path: "tipSettings.autoTipOnCheckInPercentage" },
270
+ { path: "tipSettings.presets.value" }
271
+ ]
272
+ },
248
273
  {
249
274
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
250
275
  paths: [
251
276
  { path: "tipSettings.createdDate" },
252
277
  { path: "tipSettings.updatedDate" }
253
278
  ]
254
- },
255
- {
256
- transformFn: import_float2.transformRESTFloatToSDKFloat,
257
- paths: [{ path: "tipSettings.presets.value" }]
258
279
  }
259
280
  ])
260
281
  };