{"version":3,"sources":["../../src/tips-staff-v1-staff-tippable-staff.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const ListTippableStaffRequest = z.object({\n  options: z\n    .object({\n      includeWixUsers: z\n        .boolean()\n        .describe(\n          'Whether to include staff who are only Wix users and not\\nBookings staff members ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/staff-member-object))\\nin the response. Setting `{\"includeWixUsers\": true}` returns all tippable\\nstaff, including Bookings staff, site collaborators, or those who are both.\\nBy default, or if you provide `{\"includeWixUsers\": false}`, only Bookings\\nstaff members or those who are both are returned.\\n\\nDefault: `false`.'\n        )\n        .optional(),\n      filterByName: z\n        .string()\n        .describe(\n          \"Filters the returned staff by name. If you provide a name as filter, only\\nstaff whose names start with the given input are returned. The filter isn't\\ncase sensitive.\\n\\nMax: 500 characters\"\n        )\n        .max(500)\n        .optional()\n        .nullable(),\n      filterByIds: z.array(z.string()).min(0).max(100).optional(),\n    })\n    .describe('Options to use when listing tippable staff.')\n    .optional(),\n});\nexport const ListTippableStaffResponse = z.object({\n  staff: z\n    .array(\n      z.object({\n        _id: z\n          .string()\n          .describe(\n            'Staff ID. Matches `staffMemberId` if available, or\\n`identificationData.wixUserId` if not.'\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        name: z\n          .string()\n          .describe(\n            'Staff name. Matches the name of the\\nBookings staff member ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/staff-member-object)),\\nif available.'\n          )\n          .max(500)\n          .optional()\n          .nullable(),\n        staffMemberId: z\n          .string()\n          .describe(\n            'Staff member ID. Available only if the staff is connected to a\\nBookings staff member ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/staff-member-object)).'\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        identificationData: z\n          .intersection(\n            z.object({\n              contactId: z\n                .string()\n                .describe(\n                  \"ID of the contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system.\\nSee the Contacts API for additional details.\"\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            }),\n            z.xor([\n              z.object({\n                anonymousVisitorId: z.never().optional(),\n                memberId: z.never().optional(),\n                wixUserId: z.never().optional(),\n                appId: z.never().optional(),\n              }),\n              z.object({\n                memberId: z.never().optional(),\n                wixUserId: z.never().optional(),\n                appId: z.never().optional(),\n                anonymousVisitorId: z\n                  .string()\n                  .describe(\n                    \"ID of a site visitor who hasn't logged in to the 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              z.object({\n                anonymousVisitorId: z.never().optional(),\n                wixUserId: z.never().optional(),\n                appId: z.never().optional(),\n                memberId: z\n                  .string()\n                  .describe(\n                    'ID of a site visitor who has logged in to the 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              z.object({\n                anonymousVisitorId: z.never().optional(),\n                memberId: z.never().optional(),\n                appId: z.never().optional(),\n                wixUserId: z\n                  .string()\n                  .describe(\n                    'ID of a Wix user. 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              z.object({\n                anonymousVisitorId: z.never().optional(),\n                memberId: z.never().optional(),\n                wixUserId: z.never().optional(),\n                appId: z\n                  .string()\n                  .describe('ID of an app.')\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(\n            'Identification data of the staff. Available only if the staff is a\\n[site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).'\n          )\n          .optional(),\n      })\n    )\n    .max(100)\n    .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,2BAA6B,SAAO;AAAA,EAC/C,SACG,SAAO;AAAA,IACN,iBACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,cACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,IACZ,aAAe,QAAQ,SAAO,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,EAC5D,CAAC,EACA,SAAS,6CAA6C,EACtD,SAAS;AACd,CAAC;AACM,IAAM,4BAA8B,SAAO;AAAA,EAChD,OACG;AAAA,IACG,SAAO;AAAA,MACP,KACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,M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