{"version":3,"sources":["../../../src/cloud-autocms-v3-collection-metadata-autocms.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const CreateCollectionMetadataRequest = z.object({\n  collectionMetadata: z\n    .object({\n      dataCollectionId: z\n        .string()\n        .describe('ID of the associated data collection.')\n        .max(256)\n        .optional(),\n      activeNamedViewId: z\n        .string()\n        .describe(\n          'ID of the active named (custom) view. Learn more about [creating custom collection views](https://support.wix.com/en/article/cms-creating-custom-collection-views) in the CMS.'\n        )\n        .max(1024)\n        .optional()\n        .nullable(),\n      hideTableView: z\n        .boolean()\n        .describe(\n          'Whether to [hide the table layout view](https://support.wix.com/en/article/cms-setting-field-validations-in-your-collections#hiding-the-table-layout-to-prevent-empty-required-fields). Default: `false`.'\n        )\n        .optional()\n        .nullable(),\n      namedViews: z.array(z.record(z.string(), z.any())).max(1000).optional(),\n      namedViewIdForSiteSort: z\n        .string()\n        .describe(\n          \"Custom view to mirror on the Wix site. Learn more about [mirroring item order to the site's connected elements](https://support.wix.com/en/article/cms-mirroring-the-order-of-items-in-your-collection-to-your-sites-connected-elements).\"\n        )\n        .max(1024)\n        .optional()\n        .nullable(),\n      permissionsTemplate: z\n        .enum(['UNDEFINED', 'SHOW_CONTENT', 'COLLECT_CONTENT', 'CUSTOM'])\n        .optional(),\n    })\n    .describe('Collection metadata details.'),\n});\nexport const CreateCollectionMetadataResponse = z.object({\n  dataCollectionId: z\n    .string()\n    .describe('ID of the associated data collection.')\n    .max(256)\n    .optional(),\n  activeNamedViewId: z\n    .string()\n    .describe(\n      'ID of the active named (custom) view. Learn more about [creating custom collection views](https://support.wix.com/en/article/cms-creating-custom-collection-views) in the CMS.'\n    )\n    .max(1024)\n    .optional()\n    .nullable(),\n  hideTableView: z\n    .boolean()\n    .describe(\n      'Whether to [hide the table layout view](https://support.wix.com/en/article/cms-setting-field-validations-in-your-collections#hiding-the-table-layout-to-prevent-empty-required-fields). Default: `false`.'\n    )\n    .optional()\n    .nullable(),\n  namedViews: z.array(z.record(z.string(), z.any())).max(1000).optional(),\n  namedViewIdForSiteSort: z\n    .string()\n    .describe(\n      \"Custom view to mirror on the Wix site. Learn more about [mirroring item order to the site's connected elements](https://support.wix.com/en/article/cms-mirroring-the-order-of-items-in-your-collection-to-your-sites-connected-elements).\"\n    )\n    .max(1024)\n    .optional()\n    .nullable(),\n  permissionsTemplate: z\n    .enum(['UNDEFINED', 'SHOW_CONTENT', 'COLLECT_CONTENT', 'CUSTOM'])\n    .describe(\n      'Collection permission template. Each collection has a permissions template that determines what Learn more about [collection permissions](https://support.wix.com/en/article/cms-changing-your-collection-permissions).'\n    )\n    .optional(),\n});\nexport const GetCollectionMetadataRequest = z.object({\n  dataCollectionId: z\n    .string()\n    .describe('ID of the collection for which to retrieve metadata.')\n    .max(256),\n});\nexport const GetCollectionMetadataResponse = z.object({\n  dataCollectionId: z\n    .string()\n    .describe('ID of the associated data collection.')\n    .max(256)\n    .optional(),\n  activeNamedViewId: z\n    .string()\n    .describe(\n      'ID of the active named (custom) view. Learn more about [creating custom collection views](https://support.wix.com/en/article/cms-creating-custom-collection-views) in the CMS.'\n    )\n    .max(1024)\n    .optional()\n    .nullable(),\n  hideTableView: z\n    .boolean()\n    .describe(\n      'Whether to [hide the table layout view](https://support.wix.com/en/article/cms-setting-field-validations-in-your-collections#hiding-the-table-layout-to-prevent-empty-required-fields). Default: `false`.'\n    )\n    .optional()\n    .nullable(),\n  namedViews: z.array(z.record(z.string(), z.any())).max(1000).optional(),\n  namedViewIdForSiteSort: z\n    .string()\n    .describe(\n      \"Custom view to mirror on the Wix site. Learn more about [mirroring item order to the site's connected elements](https://support.wix.com/en/article/cms-mirroring-the-order-of-items-in-your-collection-to-your-sites-connected-elements).\"\n    )\n    .max(1024)\n    .optional()\n    .nullable(),\n  permissionsTemplate: z\n    .enum(['UNDEFINED', 'SHOW_CONTENT', 'COLLECT_CONTENT', 'CUSTOM'])\n    .describe(\n      'Collection permission template. Each collection has a permissions template that determines what Learn more about [collection permissions](https://support.wix.com/en/article/cms-changing-your-collection-permissions).'\n    )\n    .optional(),\n});\nexport const UpdateCollectionMetadataRequest = z.object({\n  dataCollectionId: z\n    .string()\n    .describe(\n      \"TODO CLARIFY WHAT THIS MEANS:\\nID of metadata to update, ignored if **collection_metadata.data_collection_id** is non-empty // a technical workaround\\nexists because of docs generation issue with nested fields and ** path variables\\nTODO shouldn't this be required? // Yes\\nID of the collection for which to update metadata.\"\n    )\n    .max(256),\n  collectionMetadata: z\n    .object({\n      dataCollectionId: z\n        .string()\n        .describe('ID of the associated data collection.')\n        .max(256)\n        .optional(),\n      activeNamedViewId: z\n        .string()\n        .describe(\n          'ID of the active named (custom) view. Learn more about [creating custom collection views](https://support.wix.com/en/article/cms-creating-custom-collection-views) in the CMS.'\n        )\n        .max(1024)\n        .optional()\n        .nullable(),\n      hideTableView: z\n        .boolean()\n        .describe(\n          'Whether to [hide the table layout view](https://support.wix.com/en/article/cms-setting-field-validations-in-your-collections#hiding-the-table-layout-to-prevent-empty-required-fields). Default: `false`.'\n        )\n        .optional()\n        .nullable(),\n      namedViews: z.array(z.record(z.string(), z.any())).max(1000).optional(),\n      namedViewIdForSiteSort: z\n        .string()\n        .describe(\n          \"Custom view to mirror on the Wix site. Learn more about [mirroring item order to the site's connected elements](https://support.wix.com/en/article/cms-mirroring-the-order-of-items-in-your-collection-to-your-sites-connected-elements).\"\n        )\n        .max(1024)\n        .optional()\n        .nullable(),\n      permissionsTemplate: z\n        .enum(['UNDEFINED', 'SHOW_CONTENT', 'COLLECT_CONTENT', 'CUSTOM'])\n        .optional(),\n    })\n    .describe(\n      'Collection metadata to update. Only the specified fields are affected. Fields not mentioned remain unchanged.'\n    ),\n});\nexport const UpdateCollectionMetadataResponse = z.object({\n  dataCollectionId: z\n    .string()\n    .describe('ID of the associated data collection.')\n    .max(256)\n    .optional(),\n  activeNamedViewId: z\n    .string()\n    .describe(\n      'ID of the active named (custom) view. Learn more about [creating custom collection views](https://support.wix.com/en/article/cms-creating-custom-collection-views) in the CMS.'\n    )\n    .max(1024)\n    .optional()\n    .nullable(),\n  hideTableView: z\n    .boolean()\n    .describe(\n      'Whether to [hide the table layout view](https://support.wix.com/en/article/cms-setting-field-validations-in-your-collections#hiding-the-table-layout-to-prevent-empty-required-fields). Default: `false`.'\n    )\n    .optional()\n    .nullable(),\n  namedViews: z.array(z.record(z.string(), z.any())).max(1000).optional(),\n  namedViewIdForSiteSort: z\n    .string()\n    .describe(\n      \"Custom view to mirror on the Wix site. Learn more about [mirroring item order to the site's connected elements](https://support.wix.com/en/article/cms-mirroring-the-order-of-items-in-your-collection-to-your-sites-connected-elements).\"\n    )\n    .max(1024)\n    .optional()\n    .nullable(),\n  permissionsTemplate: z\n    .enum(['UNDEFINED', 'SHOW_CONTENT', 'COLLECT_CONTENT', 'CUSTOM'])\n    .describe(\n      'Collection permission template. Each collection has a permissions template that determines what Learn more about [collection permissions](https://support.wix.com/en/article/cms-changing-your-collection-permissions).'\n    )\n    .optional(),\n});\nexport const ReplaceCollectionMetadataRequest = z.object({\n  options: z\n    .object({\n      items: z\n        .array(\n          z.object({\n            dataCollectionId: z\n              .string()\n              .describe('ID of the associated data collection.')\n              .max(256)\n              .optional(),\n            activeNamedViewId: z\n              .string()\n              .describe(\n                'ID of the active named (custom) view. Learn more about [creating custom collection views](https://support.wix.com/en/article/cms-creating-custom-collection-views) in the CMS.'\n              )\n              .max(1024)\n              .optional()\n              .nullable(),\n            hideTableView: z\n              .boolean()\n              .describe(\n                'Whether to [hide the table layout view](https://support.wix.com/en/article/cms-setting-field-validations-in-your-collections#hiding-the-table-layout-to-prevent-empty-required-fields). Default: `false`.'\n              )\n              .optional()\n              .nullable(),\n            namedViews: z\n              .array(z.record(z.string(), z.any()))\n              .max(1000)\n              .optional(),\n            namedViewIdForSiteSort: z\n              .string()\n              .describe(\n                \"Custom view to mirror on the Wix site. Learn more about [mirroring item order to the site's connected elements](https://support.wix.com/en/article/cms-mirroring-the-order-of-items-in-your-collection-to-your-sites-connected-elements).\"\n              )\n              .max(1024)\n              .optional()\n              .nullable(),\n            permissionsTemplate: z\n              .enum(['UNDEFINED', 'SHOW_CONTENT', 'COLLECT_CONTENT', 'CUSTOM'])\n              .optional(),\n          })\n        )\n        .max(1000)\n        .optional(),\n    })\n    .optional(),\n});\nexport const ReplaceCollectionMetadataResponse = z.object({});\nexport const DeleteCollectionMetadataRequest = z.object({\n  dataCollectionId: z\n    .string()\n    .describe('ID of the collection for which to delete metadata.')\n    .max(256),\n});\nexport const DeleteCollectionMetadataResponse = z.object({});\nexport const ListCollectionMetadataRequest = z.object({\n  options: z\n    .object({\n      paging: z\n        .object({\n          limit: z\n            .number()\n            .int()\n            .describe('Maximum number of items to return in the results.')\n            .min(0)\n            .max(100)\n            .optional()\n            .nullable(),\n          cursor: z\n            .string()\n            .describe(\n              \"Pointer to the next or previous page in the list of results.\\n\\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n            )\n            .max(16000)\n            .optional()\n            .nullable(),\n        })\n        .describe('Paging settings.')\n        .optional(),\n    })\n    .optional(),\n});\nexport const ListCollectionMetadataResponse = z.object({\n  items: z\n    .array(\n      z.object({\n        dataCollectionId: z\n          .string()\n          .describe('ID of the associated data collection.')\n          .max(256)\n          .optional(),\n        activeNamedViewId: z\n          .string()\n          .describe(\n            'ID of the active named (custom) view. Learn more about [creating custom collection views](https://support.wix.com/en/article/cms-creating-custom-collection-views) in the CMS.'\n          )\n          .max(1024)\n          .optional()\n          .nullable(),\n        hideTableView: z\n          .boolean()\n          .describe(\n            'Whether to [hide the table layout view](https://support.wix.com/en/article/cms-setting-field-validations-in-your-collections#hiding-the-table-layout-to-prevent-empty-required-fields). Default: `false`.'\n          )\n          .optional()\n          .nullable(),\n        namedViews: z.array(z.record(z.string(), z.any())).max(1000).optional(),\n        namedViewIdForSiteSort: z\n          .string()\n          .describe(\n            \"Custom view to mirror on the Wix site. Learn more about [mirroring item order to the site's connected elements](https://support.wix.com/en/article/cms-mirroring-the-order-of-items-in-your-collection-to-your-sites-connected-elements).\"\n          )\n          .max(1024)\n          .optional()\n          .nullable(),\n        permissionsTemplate: z\n          .enum(['UNDEFINED', 'SHOW_CONTENT', 'COLLECT_CONTENT', 'CUSTOM'])\n          .describe(\n            'Collection permission template. Each collection has a permissions template that determines what Learn more about [collection permissions](https://support.wix.com/en/article/cms-changing-your-collection-permissions).'\n          )\n          .optional(),\n      })\n    )\n    .optional(),\n  pagingMetadata: z\n    .object({\n      count: z\n        .number()\n        .int()\n        .describe('Number of items returned in current page.')\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          'Cursor strings that point to the next page, previous page, or both.'\n        )\n        .optional(),\n      hasNext: z\n        .boolean()\n        .describe(\n          'Whether there are more pages to retrieve following the current page.\\n\\n+ `true`: Another page of results can be retrieved.\\n+ `false`: This is the last page.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe('Paging information.')\n    .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,kCAAoC,SAAO;AAAA,EACtD,oBACG,SAAO;AAAA,IACN,kBACG,SAAO,EACP,SAAS,uCAAuC,EAChD,IAAI,GAAG,EACP,SAAS;AAAA,IACZ,mBACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,IAAI,EACR,SAAS,EACT,SAAS;AAAA,IACZ,eACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,YAAc,QAAQ,SAAS,SAAO,GAAK,MAAI,CAAC,CAAC,EAAE,IAAI,GAAI,EAAE,SAAS;AAAA,IACtE,wBACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,I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