// src/data-v2-data-collection-collections.http.ts
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(opts) {
  const domainToMappings = {
    "api._api_base_domain_": [
      {
        srcPath: "/cloud-data",
        destPath: ""
      }
    ],
    "code._base_domain_": [
      {
        srcPath: "/_api/cloud-data/v1/data-settings",
        destPath: "/v1/data-settings"
      },
      {
        srcPath: "/_api/cloud-data/v1/schemas",
        destPath: "/v1/schemas"
      },
      {
        srcPath: "/_api/cloud-data/v1/connector",
        destPath: "/v1/connector"
      },
      {
        srcPath: "/_api/data/v1/data-settings",
        destPath: "/v1/data-settings"
      },
      {
        srcPath: "/_api/data/v1/schemas",
        destPath: "/v1/schemas"
      },
      {
        srcPath: "/_api/data/v1/connector",
        destPath: "/v1/connector"
      },
      {
        srcPath: "/_api/cloud-data/v1/wix-data",
        destPath: "/v1/wix-data"
      }
    ],
    "cloud-data.wix-code.com": [
      {
        srcPath: "",
        destPath: ""
      }
    ],
    _: [
      {
        srcPath: "/_api/cloud-data",
        destPath: ""
      }
    ],
    "www._base_domain_": [
      {
        srcPath: "/_api/cloud-data",
        destPath: ""
      },
      {
        srcPath: "/_api/data",
        destPath: ""
      },
      {
        srcPath: "/_api/cloud-data",
        destPath: ""
      }
    ],
    "dev._base_domain_": [
      {
        srcPath: "/_api/cloud-data",
        destPath: ""
      }
    ],
    "bo._base_domain_": [
      {
        srcPath: "/_api/cloud-data/v1",
        destPath: "/v1"
      },
      {
        srcPath: "/_api/cloud-data/v2",
        destPath: "/v2"
      }
    ],
    "wixbo.ai": [
      {
        srcPath: "/_api/cloud-data/v1",
        destPath: "/v1"
      },
      {
        srcPath: "/_api/cloud-data/v2",
        destPath: "/v2"
      }
    ],
    "wix-bo.com": [
      {
        srcPath: "/_api/cloud-data/v1",
        destPath: "/v1"
      },
      {
        srcPath: "/_api/cloud-data/v2",
        destPath: "/v2"
      }
    ],
    "manage._base_domain_": [
      {
        srcPath: "/_api/cloud-data",
        destPath: ""
      },
      {
        srcPath: "/_api/data",
        destPath: ""
      },
      {
        srcPath: "/_api/cloud-data",
        destPath: ""
      }
    ],
    "editor._base_domain_": [
      {
        srcPath: "/_api/cloud-data/v1/schemas",
        destPath: "/v1/schemas"
      },
      {
        srcPath: "/_api/cloud-data/dbs/tasks",
        destPath: "/dbs/tasks"
      },
      {
        srcPath: "/_api/data/v1/schemas",
        destPath: "/v1/schemas"
      },
      {
        srcPath: "/_api/data/dbs/tasks",
        destPath: "/dbs/tasks"
      },
      {
        srcPath: "/_api/cloud-data/v1/wix-data",
        destPath: "/v1/wix-data"
      },
      {
        srcPath: "/_api/cloud-data/v1/data-settings",
        destPath: "/v1/data-settings"
      },
      {
        srcPath: "/_api/data/v2/indexes",
        destPath: "/v2/indexes"
      },
      {
        srcPath: "/_api/cloud-data/v1/external-database-connections",
        destPath: "/v1/external-database-connections"
      },
      {
        srcPath: "/_api/data/v1/data-collection-sharing",
        destPath: "/v1/data-collection-sharing"
      },
      {
        srcPath: "/_api/cloud-data/v2/collections",
        destPath: "/v2/collections"
      },
      {
        srcPath: "/_api/cloud-data/v2/bulk",
        destPath: "/v2/bulk"
      },
      {
        srcPath: "/_api/cloud-data/v2/items",
        destPath: "/v2/items"
      },
      {
        srcPath: "/_api/cloud-data/v2/dbs/tasks",
        destPath: "/v2/dbs/tasks"
      }
    ],
    "blocks._base_domain_": [
      {
        srcPath: "/_api/cloud-data/v1/schemas",
        destPath: "/v1/schemas"
      },
      {
        srcPath: "/_api/cloud-data/dbs/tasks",
        destPath: "/dbs/tasks"
      },
      {
        srcPath: "/_api/data/v1/schemas",
        destPath: "/v1/schemas"
      },
      {
        srcPath: "/_api/data/dbs/tasks",
        destPath: "/dbs/tasks"
      },
      {
        srcPath: "/_api/cloud-data/v1/wix-data",
        destPath: "/v1/wix-data"
      },
      {
        srcPath: "/_api/cloud-data/v1/data-settings",
        destPath: "/v1/data-settings"
      },
      {
        srcPath: "/_api/data/v2/indexes",
        destPath: "/v2/indexes"
      },
      {
        srcPath: "/_api/cloud-data/v1/external-database-connections",
        destPath: "/v1/external-database-connections"
      },
      {
        srcPath: "/_api/data/v1/data-collection-sharing",
        destPath: "/v1/data-collection-sharing"
      },
      {
        srcPath: "/_api/cloud-data/v2/collections",
        destPath: "/v2/collections"
      },
      {
        srcPath: "/_api/cloud-data/v2/bulk",
        destPath: "/v2/bulk"
      },
      {
        srcPath: "/_api/cloud-data/v2/items",
        destPath: "/v2/items"
      },
      {
        srcPath: "/_api/cloud-data/v2/dbs/tasks",
        destPath: "/v2/dbs/tasks"
      }
    ],
    "create.editorx": [
      {
        srcPath: "/_api/cloud-data/v1/schemas",
        destPath: "/v1/schemas"
      },
      {
        srcPath: "/_api/cloud-data/dbs/tasks",
        destPath: "/dbs/tasks"
      },
      {
        srcPath: "/_api/data/v1/schemas",
        destPath: "/v1/schemas"
      },
      {
        srcPath: "/_api/data/dbs/tasks",
        destPath: "/dbs/tasks"
      },
      {
        srcPath: "/_api/cloud-data/v1/wix-data",
        destPath: "/v1/wix-data"
      },
      {
        srcPath: "/_api/cloud-data/v1/data-settings",
        destPath: "/v1/data-settings"
      },
      {
        srcPath: "/_api/data/v2/indexes",
        destPath: "/v2/indexes"
      },
      {
        srcPath: "/_api/cloud-data/v1/external-database-connections",
        destPath: "/v1/external-database-connections"
      },
      {
        srcPath: "/_api/data/v1/data-collection-sharing",
        destPath: "/v1/data-collection-sharing"
      },
      {
        srcPath: "/_api/cloud-data/v2/collections",
        destPath: "/v2/collections"
      },
      {
        srcPath: "/_api/cloud-data/v2/bulk",
        destPath: "/v2/bulk"
      },
      {
        srcPath: "/_api/cloud-data/v2/items",
        destPath: "/v2/items"
      },
      {
        srcPath: "/_api/cloud-data/v2/dbs/tasks",
        destPath: "/v2/dbs/tasks"
      }
    ],
    "www.wixapis.com": [
      {
        srcPath: "/wix-data/v1/collections",
        destPath: "/v1/wix-data/collections"
      },
      {
        srcPath: "/wix-data/v1/external-database-connections",
        destPath: "/v1/external-database-connections"
      },
      {
        srcPath: "/wix-data/v2/indexes",
        destPath: "/v2/indexes"
      },
      {
        srcPath: "/wix-data/v1/items",
        destPath: "/v1/items"
      },
      {
        srcPath: "/wix-data/v1/bulk",
        destPath: "/v1/bulk"
      },
      {
        srcPath: "/wix-data/v1/external-databases",
        destPath: "/v1/external-databases"
      },
      {
        srcPath: "/wix-data/v2",
        destPath: "/v2"
      },
      {
        srcPath: "/data/v2/collections",
        destPath: "/v2/collections"
      },
      {
        srcPath: "/data/v2/items",
        destPath: "/v2/items"
      },
      {
        srcPath: "/data/v2/bulk/items",
        destPath: "/v2/bulk/items"
      },
      {
        srcPath: "/data/v2/indexes",
        destPath: "/v2/indexes"
      },
      {
        srcPath: "/data/v1/external-database-connections",
        destPath: "/v1/external-database-connections"
      },
      {
        srcPath: "/data/v1/data-collection-sharing",
        destPath: "/v1/data-collection-sharing"
      }
    ],
    "www.wixgateway.com": [
      {
        srcPath: "/wix-data/v1/items",
        destPath: "/v1/items"
      },
      {
        srcPath: "/wix-data/v1/bulk",
        destPath: "/v1/bulk"
      }
    ],
    "*.dev.wix-code.com": [
      {
        srcPath: "/_api/cloud-data/v2",
        destPath: "/v2"
      },
      {
        srcPath: "/_api/cloud-data/v1/external-database-connections",
        destPath: "/v1/external-database-connections"
      },
      {
        srcPath: "/data/v1/data-collection-sharing",
        destPath: "/v1/data-collection-sharing"
      }
    ]
  };
  return resolveUrl(Object.assign(opts, { domainToMappings }));
}
var PACKAGE_NAME = "@wix/auto_sdk_data_collections";
function createDataCollection(payload) {
  function __createDataCollection({ host }) {
    const serializedData = transformPaths(payload, [
      {
        transformFn: transformSDKTimestampToRESTTimestamp,
        paths: [
          { path: "collection.createdDate" },
          { path: "collection.updatedDate" },
          { path: "collection.fields.typeMetadata.date.defaultValueFixed" },
          { path: "collection.fields.typeMetadata.date.minDateFixed" },
          { path: "collection.fields.typeMetadata.date.maxDateFixed" },
          { path: "collection.fields.typeMetadata.datetime.defaultValueFixed" },
          { path: "collection.fields.typeMetadata.datetime.minDateFixed" },
          { path: "collection.fields.typeMetadata.datetime.maxDateFixed" }
        ]
      },
      {
        transformFn: transformSDKFloatToRESTFloat,
        paths: [
          { path: "collection.fields.numberRange.min" },
          { path: "collection.fields.numberRange.max" },
          { path: "collection.fields.typeMetadata.number.defaultValue" },
          { path: "collection.fields.typeMetadata.number.min" },
          { path: "collection.fields.typeMetadata.number.max" }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.data.v2.data_collection",
      method: "POST",
      methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.CreateDataCollection",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
        { protoPath: "/v2/collections", data: serializedData, host }
      ),
      data: serializedData,
      transformResponse: (payload2) => transformPaths(payload2, [
        {
          transformFn: transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "collection.createdDate" },
            { path: "collection.updatedDate" },
            { path: "collection.fields.typeMetadata.date.defaultValueFixed" },
            { path: "collection.fields.typeMetadata.date.minDateFixed" },
            { path: "collection.fields.typeMetadata.date.maxDateFixed" },
            {
              path: "collection.fields.typeMetadata.datetime.defaultValueFixed"
            },
            { path: "collection.fields.typeMetadata.datetime.minDateFixed" },
            { path: "collection.fields.typeMetadata.datetime.maxDateFixed" }
          ]
        },
        {
          transformFn: transformRESTFloatToSDKFloat,
          paths: [
            { path: "collection.fields.numberRange.min" },
            { path: "collection.fields.numberRange.max" },
            { path: "collection.fields.typeMetadata.number.defaultValue" },
            { path: "collection.fields.typeMetadata.number.min" },
            { path: "collection.fields.typeMetadata.number.max" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __createDataCollection;
}
function getDataCollection(payload) {
  function __getDataCollection({ host }) {
    const metadata = {
      entityFqdn: "wix.data.v2.data_collection",
      method: "GET",
      methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.GetDataCollection",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
        { protoPath: "/v2/collections/{dataCollectionId}", data: payload, host }
      ),
      params: toURLSearchParams(payload),
      transformResponse: (payload2) => transformPaths(payload2, [
        {
          transformFn: transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "collection.createdDate" },
            { path: "collection.updatedDate" },
            { path: "collection.fields.typeMetadata.date.defaultValueFixed" },
            { path: "collection.fields.typeMetadata.date.minDateFixed" },
            { path: "collection.fields.typeMetadata.date.maxDateFixed" },
            {
              path: "collection.fields.typeMetadata.datetime.defaultValueFixed"
            },
            { path: "collection.fields.typeMetadata.datetime.minDateFixed" },
            { path: "collection.fields.typeMetadata.datetime.maxDateFixed" },
            { path: "referencedCollections.createdDate" },
            { path: "referencedCollections.updatedDate" },
            {
              path: "referencedCollections.fields.typeMetadata.date.defaultValueFixed"
            },
            {
              path: "referencedCollections.fields.typeMetadata.date.minDateFixed"
            },
            {
              path: "referencedCollections.fields.typeMetadata.date.maxDateFixed"
            },
            {
              path: "referencedCollections.fields.typeMetadata.datetime.defaultValueFixed"
            },
            {
              path: "referencedCollections.fields.typeMetadata.datetime.minDateFixed"
            },
            {
              path: "referencedCollections.fields.typeMetadata.datetime.maxDateFixed"
            }
          ]
        },
        {
          transformFn: transformRESTFloatToSDKFloat,
          paths: [
            { path: "collection.fields.numberRange.min" },
            { path: "collection.fields.numberRange.max" },
            { path: "collection.fields.typeMetadata.number.defaultValue" },
            { path: "collection.fields.typeMetadata.number.min" },
            { path: "collection.fields.typeMetadata.number.max" },
            { path: "referencedCollections.fields.numberRange.min" },
            { path: "referencedCollections.fields.numberRange.max" },
            {
              path: "referencedCollections.fields.typeMetadata.number.defaultValue"
            },
            { path: "referencedCollections.fields.typeMetadata.number.min" },
            { path: "referencedCollections.fields.typeMetadata.number.max" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __getDataCollection;
}
function listDataCollections(payload) {
  function __listDataCollections({ host }) {
    const metadata = {
      entityFqdn: "wix.data.v2.data_collection",
      method: "GET",
      methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.ListDataCollections",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
        { protoPath: "/v2/collections", data: payload, host }
      ),
      params: toURLSearchParams(payload),
      transformResponse: (payload2) => transformPaths(payload2, [
        {
          transformFn: transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "collections.createdDate" },
            { path: "collections.updatedDate" },
            {
              path: "collections.fields.typeMetadata.date.defaultValueFixed"
            },
            { path: "collections.fields.typeMetadata.date.minDateFixed" },
            { path: "collections.fields.typeMetadata.date.maxDateFixed" },
            {
              path: "collections.fields.typeMetadata.datetime.defaultValueFixed"
            },
            { path: "collections.fields.typeMetadata.datetime.minDateFixed" },
            { path: "collections.fields.typeMetadata.datetime.maxDateFixed" }
          ]
        },
        {
          transformFn: transformRESTFloatToSDKFloat,
          paths: [
            { path: "collections.fields.numberRange.min" },
            { path: "collections.fields.numberRange.max" },
            { path: "collections.fields.typeMetadata.number.defaultValue" },
            { path: "collections.fields.typeMetadata.number.min" },
            { path: "collections.fields.typeMetadata.number.max" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __listDataCollections;
}
function updateDataCollection(payload) {
  function __updateDataCollection({ host }) {
    const serializedData = transformPaths(payload, [
      {
        transformFn: transformSDKTimestampToRESTTimestamp,
        paths: [
          { path: "collection.createdDate" },
          { path: "collection.updatedDate" },
          { path: "collection.fields.typeMetadata.date.defaultValueFixed" },
          { path: "collection.fields.typeMetadata.date.minDateFixed" },
          { path: "collection.fields.typeMetadata.date.maxDateFixed" },
          { path: "collection.fields.typeMetadata.datetime.defaultValueFixed" },
          { path: "collection.fields.typeMetadata.datetime.minDateFixed" },
          { path: "collection.fields.typeMetadata.datetime.maxDateFixed" }
        ]
      },
      {
        transformFn: transformSDKFloatToRESTFloat,
        paths: [
          { path: "collection.fields.numberRange.min" },
          { path: "collection.fields.numberRange.max" },
          { path: "collection.fields.typeMetadata.number.defaultValue" },
          { path: "collection.fields.typeMetadata.number.min" },
          { path: "collection.fields.typeMetadata.number.max" }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.data.v2.data_collection",
      method: "PUT",
      methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDataCollection",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
        { protoPath: "/v2/collections", data: serializedData, host }
      ),
      data: serializedData,
      transformResponse: (payload2) => transformPaths(payload2, [
        {
          transformFn: transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "collection.createdDate" },
            { path: "collection.updatedDate" },
            { path: "collection.fields.typeMetadata.date.defaultValueFixed" },
            { path: "collection.fields.typeMetadata.date.minDateFixed" },
            { path: "collection.fields.typeMetadata.date.maxDateFixed" },
            {
              path: "collection.fields.typeMetadata.datetime.defaultValueFixed"
            },
            { path: "collection.fields.typeMetadata.datetime.minDateFixed" },
            { path: "collection.fields.typeMetadata.datetime.maxDateFixed" }
          ]
        },
        {
          transformFn: transformRESTFloatToSDKFloat,
          paths: [
            { path: "collection.fields.numberRange.min" },
            { path: "collection.fields.numberRange.max" },
            { path: "collection.fields.typeMetadata.number.defaultValue" },
            { path: "collection.fields.typeMetadata.number.min" },
            { path: "collection.fields.typeMetadata.number.max" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __updateDataCollection;
}
function deleteDataCollection(payload) {
  function __deleteDataCollection({ host }) {
    const metadata = {
      entityFqdn: "wix.data.v2.data_collection",
      method: "DELETE",
      methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollection",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
        { protoPath: "/v2/collections/{dataCollectionId}", data: payload, host }
      ),
      params: toURLSearchParams(payload)
    };
    return metadata;
  }
  return __deleteDataCollection;
}
function restoreDataCollection(payload) {
  function __restoreDataCollection({ host }) {
    const metadata = {
      entityFqdn: "wix.data.v2.data_collection",
      method: "POST",
      methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.RestoreDataCollection",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
        {
          protoPath: "/v2/collections/restore/{dataCollectionId}",
          data: payload,
          host
        }
      ),
      data: payload,
      transformResponse: (payload2) => transformPaths(payload2, [
        {
          transformFn: transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "dataCollection.createdDate" },
            { path: "dataCollection.updatedDate" },
            {
              path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
            },
            { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
            { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
            {
              path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
            },
            {
              path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
            },
            {
              path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
            }
          ]
        },
        {
          transformFn: transformRESTFloatToSDKFloat,
          paths: [
            { path: "dataCollection.fields.numberRange.min" },
            { path: "dataCollection.fields.numberRange.max" },
            {
              path: "dataCollection.fields.typeMetadata.number.defaultValue"
            },
            { path: "dataCollection.fields.typeMetadata.number.min" },
            { path: "dataCollection.fields.typeMetadata.number.max" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __restoreDataCollection;
}
function patchDataCollection(payload) {
  function __patchDataCollection({ host }) {
    const serializedData = transformPaths(payload, [
      {
        transformFn: transformSDKFieldMaskToRESTFieldMask,
        paths: [{ path: "fieldMask" }]
      },
      {
        transformFn: transformSDKTimestampToRESTTimestamp,
        paths: [
          { path: "dataCollection.createdDate" },
          { path: "dataCollection.updatedDate" },
          { path: "dataCollection.fields.typeMetadata.date.defaultValueFixed" },
          { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
          { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
          {
            path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
          },
          { path: "dataCollection.fields.typeMetadata.datetime.minDateFixed" },
          { path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed" }
        ]
      },
      {
        transformFn: transformSDKFloatToRESTFloat,
        paths: [
          { path: "dataCollection.fields.numberRange.min" },
          { path: "dataCollection.fields.numberRange.max" },
          { path: "dataCollection.fields.typeMetadata.number.defaultValue" },
          { path: "dataCollection.fields.typeMetadata.number.min" },
          { path: "dataCollection.fields.typeMetadata.number.max" }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.data.v2.data_collection",
      method: "PATCH",
      methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.PatchDataCollection",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
        {
          protoPath: "/v2/collections/{dataCollection.id}",
          data: serializedData,
          host
        }
      ),
      data: serializedData,
      transformResponse: (payload2) => transformPaths(payload2, [
        {
          transformFn: transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "dataCollection.createdDate" },
            { path: "dataCollection.updatedDate" },
            {
              path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
            },
            { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
            { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
            {
              path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
            },
            {
              path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
            },
            {
              path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
            }
          ]
        },
        {
          transformFn: transformRESTFloatToSDKFloat,
          paths: [
            { path: "dataCollection.fields.numberRange.min" },
            { path: "dataCollection.fields.numberRange.max" },
            {
              path: "dataCollection.fields.typeMetadata.number.defaultValue"
            },
            { path: "dataCollection.fields.typeMetadata.number.min" },
            { path: "dataCollection.fields.typeMetadata.number.max" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __patchDataCollection;
}
function createDataCollectionField(payload) {
  function __createDataCollectionField({ host }) {
    const serializedData = transformPaths(payload, [
      {
        transformFn: transformSDKFloatToRESTFloat,
        paths: [
          { path: "field.numberRange.min" },
          { path: "field.numberRange.max" },
          { path: "field.typeMetadata.number.defaultValue" },
          { path: "field.typeMetadata.number.min" },
          { path: "field.typeMetadata.number.max" }
        ]
      },
      {
        transformFn: transformSDKTimestampToRESTTimestamp,
        paths: [
          { path: "field.typeMetadata.date.defaultValueFixed" },
          { path: "field.typeMetadata.date.minDateFixed" },
          { path: "field.typeMetadata.date.maxDateFixed" },
          { path: "field.typeMetadata.datetime.defaultValueFixed" },
          { path: "field.typeMetadata.datetime.minDateFixed" },
          { path: "field.typeMetadata.datetime.maxDateFixed" }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.data.v2.data_collection",
      method: "POST",
      methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.CreateDataCollectionField",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
        {
          protoPath: "/v2/collections/create-field",
          data: serializedData,
          host
        }
      ),
      data: serializedData,
      transformResponse: (payload2) => transformPaths(payload2, [
        {
          transformFn: transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "dataCollection.createdDate" },
            { path: "dataCollection.updatedDate" },
            {
              path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
            },
            { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
            { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
            {
              path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
            },
            {
              path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
            },
            {
              path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
            }
          ]
        },
        {
          transformFn: transformRESTFloatToSDKFloat,
          paths: [
            { path: "dataCollection.fields.numberRange.min" },
            { path: "dataCollection.fields.numberRange.max" },
            {
              path: "dataCollection.fields.typeMetadata.number.defaultValue"
            },
            { path: "dataCollection.fields.typeMetadata.number.min" },
            { path: "dataCollection.fields.typeMetadata.number.max" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __createDataCollectionField;
}
function updateDataCollectionField(payload) {
  function __updateDataCollectionField({ host }) {
    const serializedData = transformPaths(payload, [
      {
        transformFn: transformSDKFloatToRESTFloat,
        paths: [
          { path: "field.numberRange.min" },
          { path: "field.numberRange.max" },
          { path: "field.typeMetadata.number.defaultValue" },
          { path: "field.typeMetadata.number.min" },
          { path: "field.typeMetadata.number.max" }
        ]
      },
      {
        transformFn: transformSDKTimestampToRESTTimestamp,
        paths: [
          { path: "field.typeMetadata.date.defaultValueFixed" },
          { path: "field.typeMetadata.date.minDateFixed" },
          { path: "field.typeMetadata.date.maxDateFixed" },
          { path: "field.typeMetadata.datetime.defaultValueFixed" },
          { path: "field.typeMetadata.datetime.minDateFixed" },
          { path: "field.typeMetadata.datetime.maxDateFixed" }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.data.v2.data_collection",
      method: "POST",
      methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDataCollectionField",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
        {
          protoPath: "/v2/collections/update-field",
          data: serializedData,
          host
        }
      ),
      data: serializedData,
      transformResponse: (payload2) => transformPaths(payload2, [
        {
          transformFn: transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "dataCollection.createdDate" },
            { path: "dataCollection.updatedDate" },
            {
              path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
            },
            { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
            { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
            {
              path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
            },
            {
              path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
            },
            {
              path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
            }
          ]
        },
        {
          transformFn: transformRESTFloatToSDKFloat,
          paths: [
            { path: "dataCollection.fields.numberRange.min" },
            { path: "dataCollection.fields.numberRange.max" },
            {
              path: "dataCollection.fields.typeMetadata.number.defaultValue"
            },
            { path: "dataCollection.fields.typeMetadata.number.min" },
            { path: "dataCollection.fields.typeMetadata.number.max" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __updateDataCollectionField;
}
function deleteDataCollectionField(payload) {
  function __deleteDataCollectionField({ host }) {
    const metadata = {
      entityFqdn: "wix.data.v2.data_collection",
      method: "POST",
      methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollectionField",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
        { protoPath: "/v2/collections/delete-field", data: payload, host }
      ),
      data: payload,
      transformResponse: (payload2) => transformPaths(payload2, [
        {
          transformFn: transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "dataCollection.createdDate" },
            { path: "dataCollection.updatedDate" },
            {
              path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
            },
            { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
            { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
            {
              path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
            },
            {
              path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
            },
            {
              path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
            }
          ]
        },
        {
          transformFn: transformRESTFloatToSDKFloat,
          paths: [
            { path: "dataCollection.fields.numberRange.min" },
            { path: "dataCollection.fields.numberRange.max" },
            {
              path: "dataCollection.fields.typeMetadata.number.defaultValue"
            },
            { path: "dataCollection.fields.typeMetadata.number.min" },
            { path: "dataCollection.fields.typeMetadata.number.max" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __deleteDataCollectionField;
}
function addDataCollectionPlugin(payload) {
  function __addDataCollectionPlugin({ host }) {
    const metadata = {
      entityFqdn: "wix.data.v2.data_collection",
      method: "POST",
      methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddDataCollectionPlugin",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
        { protoPath: "/v2/collections/add-plugin", data: payload, host }
      ),
      data: payload,
      transformResponse: (payload2) => transformPaths(payload2, [
        {
          transformFn: transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "dataCollection.createdDate" },
            { path: "dataCollection.updatedDate" },
            {
              path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
            },
            { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
            { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
            {
              path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
            },
            {
              path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
            },
            {
              path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
            }
          ]
        },
        {
          transformFn: transformRESTFloatToSDKFloat,
          paths: [
            { path: "dataCollection.fields.numberRange.min" },
            { path: "dataCollection.fields.numberRange.max" },
            {
              path: "dataCollection.fields.typeMetadata.number.defaultValue"
            },
            { path: "dataCollection.fields.typeMetadata.number.min" },
            { path: "dataCollection.fields.typeMetadata.number.max" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __addDataCollectionPlugin;
}
function deleteDataCollectionPlugin(payload) {
  function __deleteDataCollectionPlugin({ host }) {
    const metadata = {
      entityFqdn: "wix.data.v2.data_collection",
      method: "POST",
      methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollectionPlugin",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
        { protoPath: "/v2/collections/delete-plugin", data: payload, host }
      ),
      data: payload,
      transformResponse: (payload2) => transformPaths(payload2, [
        {
          transformFn: transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "dataCollection.createdDate" },
            { path: "dataCollection.updatedDate" },
            {
              path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
            },
            { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
            { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
            {
              path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
            },
            {
              path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
            },
            {
              path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
            }
          ]
        },
        {
          transformFn: transformRESTFloatToSDKFloat,
          paths: [
            { path: "dataCollection.fields.numberRange.min" },
            { path: "dataCollection.fields.numberRange.max" },
            {
              path: "dataCollection.fields.typeMetadata.number.defaultValue"
            },
            { path: "dataCollection.fields.typeMetadata.number.min" },
            { path: "dataCollection.fields.typeMetadata.number.max" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __deleteDataCollectionPlugin;
}
function patchDataCollectionField(payload) {
  function __patchDataCollectionField({ host }) {
    const serializedData = transformPaths(payload, [
      {
        transformFn: transformSDKFieldMaskToRESTFieldMask,
        paths: [{ path: "fieldMask" }]
      },
      {
        transformFn: transformSDKFloatToRESTFloat,
        paths: [
          { path: "field.numberRange.min" },
          { path: "field.numberRange.max" },
          { path: "field.typeMetadata.number.defaultValue" },
          { path: "field.typeMetadata.number.min" },
          { path: "field.typeMetadata.number.max" }
        ]
      },
      {
        transformFn: transformSDKTimestampToRESTTimestamp,
        paths: [
          { path: "field.typeMetadata.date.defaultValueFixed" },
          { path: "field.typeMetadata.date.minDateFixed" },
          { path: "field.typeMetadata.date.maxDateFixed" },
          { path: "field.typeMetadata.datetime.defaultValueFixed" },
          { path: "field.typeMetadata.datetime.minDateFixed" },
          { path: "field.typeMetadata.datetime.maxDateFixed" }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.data.v2.data_collection",
      method: "PATCH",
      methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.PatchDataCollectionField",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
        {
          protoPath: "/v2/collections/{dataCollectionId}/patch-field",
          data: serializedData,
          host
        }
      ),
      data: serializedData,
      transformResponse: (payload2) => transformPaths(payload2, [
        {
          transformFn: transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "dataCollection.createdDate" },
            { path: "dataCollection.updatedDate" },
            {
              path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
            },
            { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
            { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
            {
              path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
            },
            {
              path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
            },
            {
              path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
            }
          ]
        },
        {
          transformFn: transformRESTFloatToSDKFloat,
          paths: [
            { path: "dataCollection.fields.numberRange.min" },
            { path: "dataCollection.fields.numberRange.max" },
            {
              path: "dataCollection.fields.typeMetadata.number.defaultValue"
            },
            { path: "dataCollection.fields.typeMetadata.number.min" },
            { path: "dataCollection.fields.typeMetadata.number.max" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __patchDataCollectionField;
}

// src/data-v2-data-collection-collections.types.ts
var CollectionType = /* @__PURE__ */ ((CollectionType2) => {
  CollectionType2["NATIVE"] = "NATIVE";
  CollectionType2["WIX_APP"] = "WIX_APP";
  CollectionType2["BLOCKS_APP"] = "BLOCKS_APP";
  CollectionType2["EXTERNAL"] = "EXTERNAL";
  return CollectionType2;
})(CollectionType || {});
var Direction = /* @__PURE__ */ ((Direction2) => {
  Direction2["ASC"] = "ASC";
  Direction2["DESC"] = "DESC";
  return Direction2;
})(Direction || {});
var DataOperation = /* @__PURE__ */ ((DataOperation2) => {
  DataOperation2["AGGREGATE"] = "AGGREGATE";
  DataOperation2["BULK_INSERT"] = "BULK_INSERT";
  DataOperation2["BULK_REMOVE"] = "BULK_REMOVE";
  DataOperation2["BULK_SAVE"] = "BULK_SAVE";
  DataOperation2["BULK_UPDATE"] = "BULK_UPDATE";
  DataOperation2["COUNT"] = "COUNT";
  DataOperation2["DISTINCT"] = "DISTINCT";
  DataOperation2["FIND"] = "FIND";
  DataOperation2["GET"] = "GET";
  DataOperation2["INSERT"] = "INSERT";
  DataOperation2["INSERT_REFERENCE"] = "INSERT_REFERENCE";
  DataOperation2["IS_REFERENCED"] = "IS_REFERENCED";
  DataOperation2["QUERY_REFERENCED"] = "QUERY_REFERENCED";
  DataOperation2["REMOVE"] = "REMOVE";
  DataOperation2["REMOVE_REFERENCE"] = "REMOVE_REFERENCE";
  DataOperation2["REPLACE_REFERENCES"] = "REPLACE_REFERENCES";
  DataOperation2["SAVE"] = "SAVE";
  DataOperation2["TRUNCATE"] = "TRUNCATE";
  DataOperation2["UPDATE"] = "UPDATE";
  DataOperation2["PATCH"] = "PATCH";
  DataOperation2["BULK_PATCH"] = "BULK_PATCH";
  return DataOperation2;
})(DataOperation || {});
var CollectionOperation = /* @__PURE__ */ ((CollectionOperation2) => {
  CollectionOperation2["UPDATE"] = "UPDATE";
  CollectionOperation2["REMOVE"] = "REMOVE";
  return CollectionOperation2;
})(CollectionOperation || {});
var Type = /* @__PURE__ */ ((Type2) => {
  Type2["TEXT"] = "TEXT";
  Type2["NUMBER"] = "NUMBER";
  Type2["DATE"] = "DATE";
  Type2["DATETIME"] = "DATETIME";
  Type2["IMAGE"] = "IMAGE";
  Type2["BOOLEAN"] = "BOOLEAN";
  Type2["DOCUMENT"] = "DOCUMENT";
  Type2["URL"] = "URL";
  Type2["RICH_TEXT"] = "RICH_TEXT";
  Type2["VIDEO"] = "VIDEO";
  Type2["ANY"] = "ANY";
  Type2["ARRAY_STRING"] = "ARRAY_STRING";
  Type2["ARRAY_DOCUMENT"] = "ARRAY_DOCUMENT";
  Type2["AUDIO"] = "AUDIO";
  Type2["TIME"] = "TIME";
  Type2["LANGUAGE"] = "LANGUAGE";
  Type2["RICH_CONTENT"] = "RICH_CONTENT";
  Type2["MEDIA_GALLERY"] = "MEDIA_GALLERY";
  Type2["ADDRESS"] = "ADDRESS";
  Type2["PAGE_LINK"] = "PAGE_LINK";
  Type2["REFERENCE"] = "REFERENCE";
  Type2["MULTI_REFERENCE"] = "MULTI_REFERENCE";
  Type2["OBJECT"] = "OBJECT";
  Type2["ARRAY"] = "ARRAY";
  Type2["LEGACY_TIME"] = "LEGACY_TIME";
  Type2["LEGACY_BOOK"] = "LEGACY_BOOK";
  Type2["LEGACY_EXTERNAL_URL"] = "LEGACY_EXTERNAL_URL";
  Type2["LEGACY_BROKEN_REFERENCE"] = "LEGACY_BROKEN_REFERENCE";
  Type2["LEGACY_IMAGE"] = "LEGACY_IMAGE";
  Type2["LEGACY_COLOR"] = "LEGACY_COLOR";
  Type2["LEGACY_EXTERNAL_VIDEO"] = "LEGACY_EXTERNAL_VIDEO";
  Type2["EMAIL"] = "EMAIL";
  return Type2;
})(Type || {});
var QueryOperator = /* @__PURE__ */ ((QueryOperator2) => {
  QueryOperator2["EQ"] = "EQ";
  QueryOperator2["LT"] = "LT";
  QueryOperator2["GT"] = "GT";
  QueryOperator2["NE"] = "NE";
  QueryOperator2["LTE"] = "LTE";
  QueryOperator2["GTE"] = "GTE";
  QueryOperator2["STARTS_WITH"] = "STARTS_WITH";
  QueryOperator2["ENDS_WITH"] = "ENDS_WITH";
  QueryOperator2["CONTAINS"] = "CONTAINS";
  QueryOperator2["HAS_SOME"] = "HAS_SOME";
  QueryOperator2["HAS_ALL"] = "HAS_ALL";
  QueryOperator2["EXISTS"] = "EXISTS";
  QueryOperator2["URLIZED"] = "URLIZED";
  return QueryOperator2;
})(QueryOperator || {});
var PageLinkType = /* @__PURE__ */ ((PageLinkType2) => {
  PageLinkType2["COLLECTION_DEFINED"] = "COLLECTION_DEFINED";
  PageLinkType2["ROUTER_DEFINED"] = "ROUTER_DEFINED";
  return PageLinkType2;
})(PageLinkType || {});
var FieldPluginType = /* @__PURE__ */ ((FieldPluginType2) => {
  FieldPluginType2["UNKNOWN"] = "UNKNOWN";
  FieldPluginType2["CMS"] = "CMS";
  return FieldPluginType2;
})(FieldPluginType || {});
var Permission = /* @__PURE__ */ ((Permission2) => {
  Permission2["ANYONE"] = "ANYONE";
  Permission2["RESTRICTED"] = "RESTRICTED";
  return Permission2;
})(Permission || {});
var Role = /* @__PURE__ */ ((Role2) => {
  Role2["ADMIN"] = "ADMIN";
  Role2["SITE_MEMBER_AUTHOR"] = "SITE_MEMBER_AUTHOR";
  Role2["SITE_MEMBER"] = "SITE_MEMBER";
  Role2["ANYONE"] = "ANYONE";
  return Role2;
})(Role || {});
var Status = /* @__PURE__ */ ((Status2) => {
  Status2["PUBLISHED"] = "PUBLISHED";
  Status2["DRAFT"] = "DRAFT";
  return Status2;
})(Status || {});
var Format = /* @__PURE__ */ ((Format2) => {
  Format2["ORIGINAL"] = "ORIGINAL";
  Format2["PLAIN"] = "PLAIN";
  return Format2;
})(Format || {});
var PluginType = /* @__PURE__ */ ((PluginType2) => {
  PluginType2["PUBLISH"] = "PUBLISH";
  PluginType2["SINGLE_ITEM"] = "SINGLE_ITEM";
  PluginType2["URLIZED"] = "URLIZED";
  PluginType2["GRIDAPPLESS"] = "GRIDAPPLESS";
  PluginType2["MULTILINGUAL"] = "MULTILINGUAL";
  PluginType2["SHARED"] = "SHARED";
  PluginType2["EDITABLE_PAGE_LINK"] = "EDITABLE_PAGE_LINK";
  PluginType2["CMS"] = "CMS";
  return PluginType2;
})(PluginType || {});
var PagingMode = /* @__PURE__ */ ((PagingMode2) => {
  PagingMode2["OFFSET"] = "OFFSET";
  PagingMode2["CURSOR"] = "CURSOR";
  return PagingMode2;
})(PagingMode || {});
var AccessLevel = /* @__PURE__ */ ((AccessLevel2) => {
  AccessLevel2["ANYONE"] = "ANYONE";
  AccessLevel2["SITE_MEMBER"] = "SITE_MEMBER";
  AccessLevel2["SITE_MEMBER_AUTHOR"] = "SITE_MEMBER_AUTHOR";
  AccessLevel2["CMS_EDITOR"] = "CMS_EDITOR";
  AccessLevel2["PRIVILEGED"] = "PRIVILEGED";
  return AccessLevel2;
})(AccessLevel || {});
var Segment = /* @__PURE__ */ ((Segment2) => {
  Segment2["UNKNOWN_SEGMENT"] = "UNKNOWN_SEGMENT";
  Segment2["PUBLIC"] = "PUBLIC";
  Segment2["DEV"] = "DEV";
  return Segment2;
})(Segment || {});
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
  SortOrder2["ASC"] = "ASC";
  SortOrder2["DESC"] = "DESC";
  return SortOrder2;
})(SortOrder || {});
var TenantMode = /* @__PURE__ */ ((TenantMode2) => {
  TenantMode2["META_SITE"] = "META_SITE";
  TenantMode2["ACCOUNT"] = "ACCOUNT";
  TenantMode2["APP"] = "APP";
  return TenantMode2;
})(TenantMode || {});
var Order = /* @__PURE__ */ ((Order2) => {
  Order2["ASC"] = "ASC";
  Order2["DESC"] = "DESC";
  return Order2;
})(Order || {});
var IndexStatus = /* @__PURE__ */ ((IndexStatus2) => {
  IndexStatus2["UNKNOWN"] = "UNKNOWN";
  IndexStatus2["BUILDING"] = "BUILDING";
  IndexStatus2["ACTIVE"] = "ACTIVE";
  IndexStatus2["DROPPING"] = "DROPPING";
  IndexStatus2["DROPPED"] = "DROPPED";
  IndexStatus2["FAILED"] = "FAILED";
  IndexStatus2["INVALID"] = "INVALID";
  return IndexStatus2;
})(IndexStatus || {});
var IndexSource = /* @__PURE__ */ ((IndexSource2) => {
  IndexSource2["SYSTEM"] = "SYSTEM";
  IndexSource2["USER"] = "USER";
  IndexSource2["AUTO"] = "AUTO";
  return IndexSource2;
})(IndexSource || {});
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
  WebhookIdentityType2["MEMBER"] = "MEMBER";
  WebhookIdentityType2["WIX_USER"] = "WIX_USER";
  WebhookIdentityType2["APP"] = "APP";
  return WebhookIdentityType2;
})(WebhookIdentityType || {});

// src/data-v2-data-collection-collections.meta.ts
function createDataCollection2() {
  const payload = {};
  const getRequestOptions = createDataCollection(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v2/collections",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function getDataCollection2() {
  const payload = { dataCollectionId: ":dataCollectionId" };
  const getRequestOptions = getDataCollection(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "GET",
    path: "/v2/collections/{dataCollectionId}",
    pathParams: { dataCollectionId: "dataCollectionId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function listDataCollections2() {
  const payload = {};
  const getRequestOptions = listDataCollections(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "GET",
    path: "/v2/collections",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function updateDataCollection2() {
  const payload = {};
  const getRequestOptions = updateDataCollection(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "PUT",
    path: "/v2/collections",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function deleteDataCollection2() {
  const payload = { dataCollectionId: ":dataCollectionId" };
  const getRequestOptions = deleteDataCollection(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "DELETE",
    path: "/v2/collections/{dataCollectionId}",
    pathParams: { dataCollectionId: "dataCollectionId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function restoreDataCollection2() {
  const payload = { dataCollectionId: ":dataCollectionId" };
  const getRequestOptions = restoreDataCollection(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v2/collections/restore/{dataCollectionId}",
    pathParams: { dataCollectionId: "dataCollectionId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function patchDataCollection2() {
  const payload = { dataCollection: { id: ":dataCollectionId" } };
  const getRequestOptions = patchDataCollection(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "PATCH",
    path: "/v2/collections/{dataCollection.id}",
    pathParams: { dataCollectionId: "dataCollectionId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function createDataCollectionField2() {
  const payload = {};
  const getRequestOptions = createDataCollectionField(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v2/collections/create-field",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function updateDataCollectionField2() {
  const payload = {};
  const getRequestOptions = updateDataCollectionField(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v2/collections/update-field",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function deleteDataCollectionField2() {
  const payload = {};
  const getRequestOptions = deleteDataCollectionField(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v2/collections/delete-field",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function addDataCollectionPlugin2() {
  const payload = {};
  const getRequestOptions = addDataCollectionPlugin(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v2/collections/add-plugin",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function deleteDataCollectionPlugin2() {
  const payload = {};
  const getRequestOptions = deleteDataCollectionPlugin(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v2/collections/delete-plugin",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function patchDataCollectionField2() {
  const payload = { dataCollectionId: ":dataCollectionId" };
  const getRequestOptions = patchDataCollectionField(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "PATCH",
    path: "/v2/collections/{dataCollectionId}/patch-field",
    pathParams: { dataCollectionId: "dataCollectionId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
export {
  AccessLevel as AccessLevelOriginal,
  CollectionOperation as CollectionOperationOriginal,
  CollectionType as CollectionTypeOriginal,
  DataOperation as DataOperationOriginal,
  Direction as DirectionOriginal,
  FieldPluginType as FieldPluginTypeOriginal,
  Format as FormatOriginal,
  IndexSource as IndexSourceOriginal,
  IndexStatus as IndexStatusOriginal,
  Order as OrderOriginal,
  PageLinkType as PageLinkTypeOriginal,
  PagingMode as PagingModeOriginal,
  Permission as PermissionOriginal,
  PluginType as PluginTypeOriginal,
  QueryOperator as QueryOperatorOriginal,
  Role as RoleOriginal,
  Segment as SegmentOriginal,
  SortOrder as SortOrderOriginal,
  Status as StatusOriginal,
  TenantMode as TenantModeOriginal,
  Type as TypeOriginal,
  WebhookIdentityType as WebhookIdentityTypeOriginal,
  addDataCollectionPlugin2 as addDataCollectionPlugin,
  createDataCollection2 as createDataCollection,
  createDataCollectionField2 as createDataCollectionField,
  deleteDataCollection2 as deleteDataCollection,
  deleteDataCollectionField2 as deleteDataCollectionField,
  deleteDataCollectionPlugin2 as deleteDataCollectionPlugin,
  getDataCollection2 as getDataCollection,
  listDataCollections2 as listDataCollections,
  patchDataCollection2 as patchDataCollection,
  patchDataCollectionField2 as patchDataCollectionField,
  restoreDataCollection2 as restoreDataCollection,
  updateDataCollection2 as updateDataCollection,
  updateDataCollectionField2 as updateDataCollectionField
};
//# sourceMappingURL=meta.mjs.map