{"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,M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