{"version":3,"sources":["../../src/data-v1-external-database-connection-external-database-connections.http.ts","../../src/data-v1-external-database-connection-external-database-connections.types.ts","../../src/data-v1-external-database-connection-external-database-connections.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressCloudDataApiExternaldatabaseExternalDatabaseConnectionServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'api._api_base_domain_': [\n      {\n        srcPath: '/cloud-data',\n        destPath: '',\n      },\n    ],\n    'code._base_domain_': [\n      {\n        srcPath: '/_api/cloud-data/v1/data-settings',\n        destPath: '/v1/data-settings',\n      },\n      {\n        srcPath: '/_api/cloud-data/v1/connector',\n        destPath: '/v1/connector',\n      },\n      {\n        srcPath: '/_api/data/v1/data-settings',\n        destPath: '/v1/data-settings',\n      },\n      {\n        srcPath: '/_api/data/v1/connector',\n        destPath: '/v1/connector',\n      },\n      {\n        srcPath: '/_api/cloud-data/v1/wix-data',\n        destPath: '/v1/wix-data',\n      },\n    ],\n    'cloud-data.wix-code.com': [\n      {\n        srcPath: '',\n        destPath: '',\n      },\n      {\n        srcPath: '/v2/items',\n        destPath: '/v2/items',\n      },\n      {\n        srcPath: '/v2/bulk/items',\n        destPath: '/v2/bulk/items',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/cloud-data',\n        destPath: '',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/cloud-data',\n        destPath: '',\n      },\n      {\n        srcPath: '/_api/data',\n        destPath: '',\n      },\n      {\n        srcPath: '/_api/cloud-data',\n        destPath: '',\n      },\n    ],\n    'dev._base_domain_': [\n      {\n        srcPath: '/_api/cloud-data',\n        destPath: '',\n      },\n    ],\n    'bo._base_domain_': [\n      {\n        srcPath: '/_api/cloud-data/v1',\n        destPath: '/v1',\n      },\n      {\n        srcPath: '/_api/cloud-data/v2',\n        destPath: '/v2',\n      },\n    ],\n    'wixbo.ai': [\n      {\n        srcPath: '/_api/cloud-data/v1',\n        destPath: '/v1',\n      },\n      {\n        srcPath: '/_api/cloud-data/v2',\n        destPath: '/v2',\n      },\n    ],\n    'wix-bo.com': [\n      {\n        srcPath: '/_api/cloud-data/v1',\n        destPath: '/v1',\n      },\n      {\n        srcPath: '/_api/cloud-data/v2',\n        destPath: '/v2',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/cloud-data',\n        destPath: '',\n      },\n      {\n        srcPath: '/_api/data',\n        destPath: '',\n      },\n      {\n        srcPath: '/_api/cloud-data',\n        destPath: '',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/cloud-data/dbs/tasks',\n        destPath: '/dbs/tasks',\n      },\n      {\n        srcPath: '/_api/data/dbs/tasks',\n        destPath: '/dbs/tasks',\n      },\n      {\n        srcPath: '/_api/cloud-data/v1/wix-data',\n        destPath: '/v1/wix-data',\n      },\n      {\n        srcPath: '/_api/cloud-data/v1/data-settings',\n        destPath: '/v1/data-settings',\n      },\n      {\n        srcPath: '/_api/data/v2/indexes',\n        destPath: '/v2/indexes',\n      },\n      {\n        srcPath: '/_api/cloud-data/v1/external-database-connections',\n        destPath: '/v1/external-database-connections',\n      },\n      {\n        srcPath: '/_api/data/v1/data-collection-sharing',\n        destPath: '/v1/data-collection-sharing',\n      },\n      {\n        srcPath: '/_api/cloud-data/v2/bulk',\n        destPath: '/v2/bulk',\n      },\n      {\n        srcPath: '/_api/cloud-data/v2/items',\n        destPath: '/v2/items',\n      },\n      {\n        srcPath: '/_api/cloud-data/v2/dbs/tasks',\n        destPath: '/v2/dbs/tasks',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/cloud-data/dbs/tasks',\n        destPath: '/dbs/tasks',\n      },\n      {\n        srcPath: '/_api/data/dbs/tasks',\n        destPath: '/dbs/tasks',\n      },\n      {\n        srcPath: '/_api/cloud-data/v1/wix-data',\n        destPath: '/v1/wix-data',\n      },\n      {\n        srcPath: '/_api/cloud-data/v1/data-settings',\n        destPath: '/v1/data-settings',\n      },\n      {\n        srcPath: '/_api/data/v2/indexes',\n        destPath: '/v2/indexes',\n      },\n      {\n        srcPath: '/_api/cloud-data/v1/external-database-connections',\n        destPath: '/v1/external-database-connections',\n      },\n      {\n        srcPath: '/_api/data/v1/data-collection-sharing',\n        destPath: '/v1/data-collection-sharing',\n      },\n      {\n        srcPath: '/_api/cloud-data/v2/bulk',\n        destPath: '/v2/bulk',\n      },\n      {\n        srcPath: '/_api/cloud-data/v2/items',\n        destPath: '/v2/items',\n      },\n      {\n        srcPath: '/_api/cloud-data/v2/dbs/tasks',\n        destPath: '/v2/dbs/tasks',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/cloud-data/dbs/tasks',\n        destPath: '/dbs/tasks',\n      },\n      {\n        srcPath: '/_api/data/dbs/tasks',\n        destPath: '/dbs/tasks',\n      },\n      {\n        srcPath: '/_api/cloud-data/v1/wix-data',\n        destPath: '/v1/wix-data',\n      },\n      {\n        srcPath: '/_api/cloud-data/v1/data-settings',\n        destPath: '/v1/data-settings',\n      },\n      {\n        srcPath: '/_api/data/v2/indexes',\n        destPath: '/v2/indexes',\n      },\n      {\n        srcPath: '/_api/cloud-data/v1/external-database-connections',\n        destPath: '/v1/external-database-connections',\n      },\n      {\n        srcPath: '/_api/data/v1/data-collection-sharing',\n        destPath: '/v1/data-collection-sharing',\n      },\n      {\n        srcPath: '/_api/cloud-data/v2/bulk',\n        destPath: '/v2/bulk',\n      },\n      {\n        srcPath: '/_api/cloud-data/v2/items',\n        destPath: '/v2/items',\n      },\n      {\n        srcPath: '/_api/cloud-data/v2/dbs/tasks',\n        destPath: '/v2/dbs/tasks',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/wix-data/v1/collections',\n        destPath: '/v1/wix-data/collections',\n      },\n      {\n        srcPath: '/wix-data/v1/external-database-connections',\n        destPath: '/v1/external-database-connections',\n      },\n      {\n        srcPath: '/wix-data/v2/indexes',\n        destPath: '/v2/indexes',\n      },\n      {\n        srcPath: '/wix-data/v1/items',\n        destPath: '/v1/items',\n      },\n      {\n        srcPath: '/wix-data/v1/bulk',\n        destPath: '/v1/bulk',\n      },\n      {\n        srcPath: '/wix-data/v1/external-databases',\n        destPath: '/v1/external-databases',\n      },\n      {\n        srcPath: '/wix-data/v2',\n        destPath: '/v2',\n      },\n      {\n        srcPath: '/data/v2/items',\n        destPath: '/v2/items',\n      },\n      {\n        srcPath: '/data/v2/bulk/items',\n        destPath: '/v2/bulk/items',\n      },\n      {\n        srcPath: '/data/v2/indexes',\n        destPath: '/v2/indexes',\n      },\n      {\n        srcPath: '/data/v1/external-database-connections',\n        destPath: '/v1/external-database-connections',\n      },\n      {\n        srcPath: '/data/v1/data-collection-sharing',\n        destPath: '/v1/data-collection-sharing',\n      },\n    ],\n    'www.wixgateway.com': [\n      {\n        srcPath: '/wix-data/v1/items',\n        destPath: '/v1/items',\n      },\n      {\n        srcPath: '/wix-data/v1/bulk',\n        destPath: '/v1/bulk',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/cloud-data/v2',\n        destPath: '/v2',\n      },\n      {\n        srcPath: '/_api/cloud-data/v1/external-database-connections',\n        destPath: '/v1/external-database-connections',\n      },\n      {\n        srcPath: '/data/v1/data-collection-sharing',\n        destPath: '/v1/data-collection-sharing',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_data_external-database-connections';\n\n/** Retrieves the specified external database connection. */\nexport function getExternalDatabaseConnection(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getExternalDatabaseConnection({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.data.v1.external_database_connection',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService.GetExternalDatabaseConnection',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressCloudDataApiExternaldatabaseExternalDatabaseConnectionServiceUrl(\n        {\n          protoPath: '/v1/external-database-connections/{name}',\n          data: payload,\n          host,\n        }\n      ),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __getExternalDatabaseConnection;\n}\n\n/** Lists all of the site's external database connections of all adaptor types. */\nexport function listExternalDatabaseConnections(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __listExternalDatabaseConnections({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.data.v1.external_database_connection',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService.ListExternalDatabaseConnections',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressCloudDataApiExternaldatabaseExternalDatabaseConnectionServiceUrl(\n        { protoPath: '/v1/external-database-connections', data: payload, host }\n      ),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __listExternalDatabaseConnections;\n}\n\n/**\n * Creates a new external database connection.\n *\n * Before you can establish a connection between a site and an external database, you must prepare an external database adaptor.\n */\nexport function createExternalDatabaseConnection(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __createExternalDatabaseConnection({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.data.v1.external_database_connection',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService.CreateExternalDatabaseConnection',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressCloudDataApiExternaldatabaseExternalDatabaseConnectionServiceUrl(\n        { protoPath: '/v1/external-database-connections', data: payload, host }\n      ),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __createExternalDatabaseConnection;\n}\n\n/**\n * Updates an external database connection.\n *\n * > **Note:** After an external database connection is updated, it only contains the values provided in the request. All previous values are lost.\n */\nexport function updateExternalDatabaseConnection(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __updateExternalDatabaseConnection({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.data.v1.external_database_connection',\n      method: 'PUT' as any,\n      methodFqn:\n        'com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService.UpdateExternalDatabaseConnection',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressCloudDataApiExternaldatabaseExternalDatabaseConnectionServiceUrl(\n        {\n          protoPath:\n            '/v1/external-database-connections/{externalDatabaseConnection.name}',\n          data: payload,\n          host,\n        }\n      ),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __updateExternalDatabaseConnection;\n}\n\n/**\n * Deletes an external database connection.\n *\n * > **Note:** Once an external database connection is deleted, it can't be restored. To reconnect the database, create a new external database connection.\n */\nexport function deleteExternalDatabaseConnection(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __deleteExternalDatabaseConnection({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.data.v1.external_database_connection',\n      method: 'DELETE' as any,\n      methodFqn:\n        'com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService.DeleteExternalDatabaseConnection',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressCloudDataApiExternaldatabaseExternalDatabaseConnectionServiceUrl(\n        {\n          protoPath: '/v1/external-database-connections/{name}',\n          data: payload,\n          host,\n        }\n      ),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __deleteExternalDatabaseConnection;\n}\n","/** An external database connection defines a connection between an external database and a Wix site. */\nexport interface ExternalDatabaseConnection {\n  /**\n   * Name of the external database connection.\n   *\n   * An external database connection can connect to one or more external data collections or tables. These appear as `connectionName/dataCollectionId`.\n   * @immutable\n   * @minLength 1\n   * @maxLength 255\n   */\n  name?: string;\n  /**\n   * Base URL for accessing and managing data in the external database. For example: `https://example.com/my-external-database`.\n   * Required for STANDALONE connection type.\n   * @format WEB_URL\n   */\n  endpoint?: string | null;\n  /**\n   * Settings specified to the external database connection as part of each request.\n   *\n   * These settings can relate to authentication, tenancy, or provide any other information necessary for processing a request. Their content and structure depend on the specific requirements of the external database's API.\n   */\n  configuration?: Record<string, any> | null;\n  /**\n   * Status of the external database connection. Includes whether the connection was established successfully, and if not, the reason for the failure.\n   * @readonly\n   */\n  connectionStatus?: ConnectionStatus;\n  /**\n   * Protocol version of the external database connection.\n   * @internal\n   * @readonly\n   */\n  protocolVersion?: ProtocolVersionWithLiterals;\n  /**\n   * Public key used to validate requests to the external database.\n   * @readonly\n   * @maxLength 128\n   */\n  publicKey?: string | null;\n  /**\n   * Capabilities of the external database.\n   * @readonly\n   */\n  capabilities?: Capabilities;\n  /**\n   * ID of the app used to integrate this external database.\n   * @internal\n   * @readonly\n   * @maxLength 128\n   */\n  applicationId?: string | null;\n}\n\nexport enum CauseOfFailure {\n  /** No connection failure. */\n  NONE = 'NONE',\n  /** General communication failure. */\n  COMMUNICATION_FAILURE = 'COMMUNICATION_FAILURE',\n  /** External database host is unreachable. */\n  DESTINATION_HOST_UNREACHABLE = 'DESTINATION_HOST_UNREACHABLE',\n  /** Unauthorized to access the external database. */\n  UNAUTHORIZED = 'UNAUTHORIZED',\n  /** `endpoint` is not set. */\n  DESTINATION_ENDPOINT_NOT_DEFINED = 'DESTINATION_ENDPOINT_NOT_DEFINED',\n}\n\n/** @enumType */\nexport type CauseOfFailureWithLiterals =\n  | CauseOfFailure\n  | 'NONE'\n  | 'COMMUNICATION_FAILURE'\n  | 'DESTINATION_HOST_UNREACHABLE'\n  | 'UNAUTHORIZED'\n  | 'DESTINATION_ENDPOINT_NOT_DEFINED';\n\nexport enum CollectionsFound {\n  /** Attempt to connect to the external database failed, so status is unknown. */\n  UNKNOWN = 'UNKNOWN',\n  /** External database has collections. */\n  YES = 'YES',\n  /** External database does not have any collections. */\n  NO = 'NO',\n}\n\n/** @enumType */\nexport type CollectionsFoundWithLiterals =\n  | CollectionsFound\n  | 'UNKNOWN'\n  | 'YES'\n  | 'NO';\n\nexport enum FieldType {\n  TEXT = 'TEXT',\n  NUMBER = 'NUMBER',\n  DATE = 'DATE',\n  DATETIME = 'DATETIME',\n  IMAGE = 'IMAGE',\n  BOOLEAN = 'BOOLEAN',\n  DOCUMENT = 'DOCUMENT',\n  URL = 'URL',\n  RICH_TEXT = 'RICH_TEXT',\n  VIDEO = 'VIDEO',\n  ANY = 'ANY',\n  ARRAY_STRING = 'ARRAY_STRING',\n  ARRAY_DOCUMENT = 'ARRAY_DOCUMENT',\n  AUDIO = 'AUDIO',\n  TIME = 'TIME',\n  LANGUAGE = 'LANGUAGE',\n  RICH_CONTENT = 'RICH_CONTENT',\n  MEDIA_GALLERY = 'MEDIA_GALLERY',\n  ADDRESS = 'ADDRESS',\n  PAGE_LINK = 'PAGE_LINK',\n  REFERENCE = 'REFERENCE',\n  MULTI_REFERENCE = 'MULTI_REFERENCE',\n  OBJECT = 'OBJECT',\n  ARRAY = 'ARRAY',\n  /** Deprecated - can’t be added to collections. Can only appear in older collections. */\n  LEGACY_TIME = 'LEGACY_TIME',\n  /** Deprecated - can’t be added to collections. Can only appear in older collections. */\n  LEGACY_BOOK = 'LEGACY_BOOK',\n  /** Deprecated - can’t be added to collections. Can only appear in older collections. */\n  LEGACY_EXTERNAL_URL = 'LEGACY_EXTERNAL_URL',\n  /** Deprecated - can’t be added to collections. Can only appear in older collections. */\n  LEGACY_BROKEN_REFERENCE = 'LEGACY_BROKEN_REFERENCE',\n  /** Deprecated - can’t be added to collections. Can only appear in older collections. */\n  LEGACY_IMAGE = 'LEGACY_IMAGE',\n  /** Deprecated - can’t be added to collections. Can only appear in older collections. */\n  LEGACY_COLOR = 'LEGACY_COLOR',\n  /** Deprecated - can’t be added to collections. Can only appear in older collections. */\n  LEGACY_EXTERNAL_VIDEO = 'LEGACY_EXTERNAL_VIDEO',\n  /** @documentationMaturity preview\n   * @internal\n   */\n  SLUG = 'SLUG',\n  /** @documentationMaturity preview\n   * @internal\n   */\n  EMAIL = 'EMAIL',\n  /** @documentationMaturity preview\n   * @internal\n   */\n  SECURED_MEDIA = 'SECURED_MEDIA',\n  /** @documentationMaturity preview\n   * @internal\n   */\n  MEDIA_IMAGE = 'MEDIA_IMAGE',\n  /** @documentationMaturity preview\n   * @internal\n   */\n  MEDIA_VECTOR_ART = 'MEDIA_VECTOR_ART',\n}\n\n/** @enumType */\nexport type FieldTypeWithLiterals =\n  | FieldType\n  | 'TEXT'\n  | 'NUMBER'\n  | 'DATE'\n  | 'DATETIME'\n  | 'IMAGE'\n  | 'BOOLEAN'\n  | 'DOCUMENT'\n  | 'URL'\n  | 'RICH_TEXT'\n  | 'VIDEO'\n  | 'ANY'\n  | 'ARRAY_STRING'\n  | 'ARRAY_DOCUMENT'\n  | 'AUDIO'\n  | 'TIME'\n  | 'LANGUAGE'\n  | 'RICH_CONTENT'\n  | 'MEDIA_GALLERY'\n  | 'ADDRESS'\n  | 'PAGE_LINK'\n  | 'REFERENCE'\n  | 'MULTI_REFERENCE'\n  | 'OBJECT'\n  | 'ARRAY'\n  | 'LEGACY_TIME'\n  | 'LEGACY_BOOK'\n  | 'LEGACY_EXTERNAL_URL'\n  | 'LEGACY_BROKEN_REFERENCE'\n  | 'LEGACY_IMAGE'\n  | 'LEGACY_COLOR'\n  | 'LEGACY_EXTERNAL_VIDEO';\n\nexport interface ConnectionStatus {\n  /** Whether the connection was established successfully. */\n  successful?: boolean;\n  /** Whether and why the connection attempt failed. */\n  causeOfFailure?: CauseOfFailureWithLiterals;\n  /**\n   * Whether the external database has collections.\n   * @readonly\n   */\n  hasCollections?: CollectionsFoundWithLiterals;\n}\n\nexport enum ProtocolVersion {\n  V1 = 'V1',\n  V2 = 'V2',\n  V3 = 'V3',\n}\n\n/** @enumType */\nexport type ProtocolVersionWithLiterals = ProtocolVersion | 'V1' | 'V2' | 'V3';\n\nexport interface Capabilities {\n  /** Whether the external database supports creating new collections, updating the structure of existing collections, or deleting them. */\n  collectionModificationsSupported?: boolean;\n  /**\n   * Field types the external database supports. Applies only when `collectionModificationsSupported` is set to `true`.\n   * @maxSize 255\n   */\n  fieldTypes?: FieldTypeWithLiterals[];\n}\n\nexport interface GetExternalDatabaseConnectionRequest {\n  /**\n   * Name of the external database connection to retrieve.\n   * @maxLength 255\n   */\n  name: string;\n}\n\nexport interface GetExternalDatabaseConnectionResponse {\n  /** Details of the retrieved external database connection. */\n  externalDatabaseConnection?: ExternalDatabaseConnection;\n}\n\nexport interface ListExternalDatabaseConnectionsRequest {\n  /** Paging metadata. */\n  paging?: Paging;\n}\n\nexport interface Paging {\n  /** Number of items to load. */\n  limit?: number | null;\n  /** Number of items to skip in the current sort order. */\n  offset?: number | null;\n}\n\nexport interface ListExternalDatabaseConnectionsResponse {\n  /** List of external database connections. */\n  externalDatabaseConnections?: ExternalDatabaseConnection[];\n  /** Paging metadata. */\n  pagingMetadata?: PagingMetadata;\n}\n\nexport interface PagingMetadata {\n  /** Number of items returned in the response. */\n  count?: number | null;\n  /** Offset that was requested. */\n  offset?: number | null;\n  /** Total number of items that match the query. */\n  total?: number | null;\n  /** Flag that indicates the server failed to calculate the `total` field. */\n  tooManyToCount?: boolean | null;\n  /**\n   * Indicates if there are more results after the current page.\n   * If `true`, another page of results can be retrieved.\n   * If `false`, this is the last page.\n   * @internal\n   */\n  hasNext?: boolean | null;\n}\n\nexport interface CreateExternalDatabaseConnectionRequest {\n  /** External database connection details. */\n  externalDatabaseConnection: ExternalDatabaseConnection;\n  /** Connection type. The connection type specifies the type of adaptor by which the external collection is integrated with the site. */\n  connectionType: ConnectionTypeWithLiterals;\n  /**\n   * Whether the database is managed by Wix.\n   * @internal\n   */\n  databaseManagedByWix?: boolean;\n}\n\nexport enum ConnectionType {\n  /** External database connection based on the legacy [external database collection service plugin](https://dev.wix.com/docs/velo/api-reference/wix-data-v2/service-plugins-spis/external-database-collection-legacy/introduction). */\n  STANDALONE = 'STANDALONE',\n  /** External database connection based on the [external database service plugin](https://dev.wix.com/docs/rest/business-solutions/cms/service-plugins/external-database-service-plugin/introduction). */\n  WIX_SERVICE_PLUGIN = 'WIX_SERVICE_PLUGIN',\n}\n\n/** @enumType */\nexport type ConnectionTypeWithLiterals =\n  | ConnectionType\n  | 'STANDALONE'\n  | 'WIX_SERVICE_PLUGIN';\n\nexport interface CreateExternalDatabaseConnectionResponse {\n  /** Details of the created external database connection. */\n  externalDatabaseConnection?: ExternalDatabaseConnection;\n}\n\nexport interface UpdateExternalDatabaseConnectionRequest {\n  /** Updated external database connection. The existing connection is replaced with this version. */\n  externalDatabaseConnection: ExternalDatabaseConnection;\n}\n\nexport interface UpdateExternalDatabaseConnectionResponse {\n  /** Details of the updated external database connection. */\n  externalDatabaseConnection?: ExternalDatabaseConnection;\n}\n\nexport interface DeleteExternalDatabaseConnectionRequest {\n  /**\n   * Name of the external database connection to delete.\n   * @maxLength 255\n   */\n  name: string;\n}\n\nexport interface DeleteExternalDatabaseConnectionResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n  id?: string;\n  /**\n   * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n   * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n   */\n  entityFqdn?: string;\n  /**\n   * Event action name, placed at the top level to make it easier for users to dispatch messages.\n   * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n   * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n   */\n  entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n  entityAsJson?: string;\n  /**\n   * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n   * @internal\n   */\n  triggeredByUndelete?: boolean | null;\n  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n  restoreInfo?: RestoreInfo;\n  /**\n   * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n   * @internal\n   */\n  additionalMetadataAsJson?: string | null;\n}\n\nexport interface RestoreInfo {\n  deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n  /**\n   * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n   * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n   * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n   */\n  currentEntityAsJson?: string;\n  /**\n   * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n   * wont populate it / have any reference to it in the API.\n   * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n   * the developer should send only the new (current) entity.\n   * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n   * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n   * @internal\n   * @deprecated\n   */\n  previousEntityAsJson?: string | null;\n  /**\n   * Map of fully qualified field paths to their previous values for fields that changed.\n   * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n   * @internal\n   */\n  modifiedFields?: Record<string, any>;\n  /**\n   * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n   * @internal\n   */\n  additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n  /**\n   * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n   * @internal\n   */\n  movedToTrash?: boolean | null;\n  /** Entity that was deleted. */\n  deletedEntityAsJson?: string | null;\n  /**\n   * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n   * @internal\n   */\n  additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n  bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n  /**\n   * App instance ID.\n   * @format GUID\n   */\n  instanceId?: string | null;\n  /**\n   * Event type.\n   * @maxLength 150\n   */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Stringify payload. */\n  data?: string;\n  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n  /** @readonly */\n  identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n}\n\nexport enum WebhookIdentityType {\n  UNKNOWN = 'UNKNOWN',\n  ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n  MEMBER = 'MEMBER',\n  WIX_USER = 'WIX_USER',\n  APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n  | WebhookIdentityType\n  | 'UNKNOWN'\n  | 'ANONYMOUS_VISITOR'\n  | 'MEMBER'\n  | 'WIX_USER'\n  | 'APP';\n\nexport interface AccountInfo {\n  /**\n   * ID of the Wix account associated with the event.\n   * @format GUID\n   */\n  accountId?: string | null;\n  /**\n   * ID of the parent Wix account. Only included when accountId belongs to a child account.\n   * @format GUID\n   */\n  parentAccountId?: string | null;\n  /**\n   * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n   * @format GUID\n   */\n  siteId?: string | null;\n}\n","import * as ambassadorWixDataV1ExternalDatabaseConnection from './data-v1-external-database-connection-external-database-connections.http.js';\nimport * as ambassadorWixDataV1ExternalDatabaseConnectionTypes from './data-v1-external-database-connection-external-database-connections.types.js';\nimport * as ambassadorWixDataV1ExternalDatabaseConnectionUniversalTypes from './data-v1-external-database-connection-external-database-connections.universal.js';\n\nexport type __PublicMethodMetaInfo<\n  K = string,\n  M = unknown,\n  T = unknown,\n  S = unknown,\n  Q = unknown,\n  R = unknown\n> = {\n  getUrl: (context: any) => string;\n  httpMethod: K;\n  path: string;\n  pathParams: M;\n  __requestType: T;\n  __originalRequestType: S;\n  __responseType: Q;\n  __originalResponseType: R;\n};\n\nexport function getExternalDatabaseConnection(): __PublicMethodMetaInfo<\n  'GET',\n  { name: string },\n  ambassadorWixDataV1ExternalDatabaseConnectionUniversalTypes.GetExternalDatabaseConnectionRequest,\n  ambassadorWixDataV1ExternalDatabaseConnectionTypes.GetExternalDatabaseConnectionRequest,\n  ambassadorWixDataV1ExternalDatabaseConnectionUniversalTypes.GetExternalDatabaseConnectionResponse,\n  ambassadorWixDataV1ExternalDatabaseConnectionTypes.GetExternalDatabaseConnectionResponse\n> {\n  const payload = { name: ':name' } as any;\n\n  const getRequestOptions =\n    ambassadorWixDataV1ExternalDatabaseConnection.getExternalDatabaseConnection(\n      payload\n    );\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'GET',\n    path: '/v1/external-database-connections/{name}',\n    pathParams: { name: 'name' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function listExternalDatabaseConnections(): __PublicMethodMetaInfo<\n  'GET',\n  {},\n  ambassadorWixDataV1ExternalDatabaseConnectionUniversalTypes.ListExternalDatabaseConnectionsRequest,\n  ambassadorWixDataV1ExternalDatabaseConnectionTypes.ListExternalDatabaseConnectionsRequest,\n  ambassadorWixDataV1ExternalDatabaseConnectionUniversalTypes.ListExternalDatabaseConnectionsResponse,\n  ambassadorWixDataV1ExternalDatabaseConnectionTypes.ListExternalDatabaseConnectionsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixDataV1ExternalDatabaseConnection.listExternalDatabaseConnections(\n      payload\n    );\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'GET',\n    path: '/v1/external-database-connections',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function createExternalDatabaseConnection(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixDataV1ExternalDatabaseConnectionUniversalTypes.CreateExternalDatabaseConnectionRequest,\n  ambassadorWixDataV1ExternalDatabaseConnectionTypes.CreateExternalDatabaseConnectionRequest,\n  ambassadorWixDataV1ExternalDatabaseConnectionUniversalTypes.CreateExternalDatabaseConnectionResponse,\n  ambassadorWixDataV1ExternalDatabaseConnectionTypes.CreateExternalDatabaseConnectionResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixDataV1ExternalDatabaseConnection.createExternalDatabaseConnection(\n      payload\n    );\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/external-database-connections',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function updateExternalDatabaseConnection(): __PublicMethodMetaInfo<\n  'PUT',\n  { externalDatabaseConnectionName: string },\n  ambassadorWixDataV1ExternalDatabaseConnectionUniversalTypes.UpdateExternalDatabaseConnectionRequest,\n  ambassadorWixDataV1ExternalDatabaseConnectionTypes.UpdateExternalDatabaseConnectionRequest,\n  ambassadorWixDataV1ExternalDatabaseConnectionUniversalTypes.UpdateExternalDatabaseConnectionResponse,\n  ambassadorWixDataV1ExternalDatabaseConnectionTypes.UpdateExternalDatabaseConnectionResponse\n> {\n  const payload = {\n    externalDatabaseConnection: { name: ':externalDatabaseConnectionName' },\n  } as any;\n\n  const getRequestOptions =\n    ambassadorWixDataV1ExternalDatabaseConnection.updateExternalDatabaseConnection(\n      payload\n    );\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'PUT',\n    path: '/v1/external-database-connections/{externalDatabaseConnection.name}',\n    pathParams: {\n      externalDatabaseConnectionName: 'externalDatabaseConnectionName',\n    },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function deleteExternalDatabaseConnection(): __PublicMethodMetaInfo<\n  'DELETE',\n  { name: string },\n  ambassadorWixDataV1ExternalDatabaseConnectionUniversalTypes.DeleteExternalDatabaseConnectionRequest,\n  ambassadorWixDataV1ExternalDatabaseConnectionTypes.DeleteExternalDatabaseConnectionRequest,\n  ambassadorWixDataV1ExternalDatabaseConnectionUniversalTypes.DeleteExternalDatabaseConnectionResponse,\n  ambassadorWixDataV1ExternalDatabaseConnectionTypes.DeleteExternalDatabaseConnectionResponse\n> {\n  const payload = { name: ':name' } as any;\n\n  const getRequestOptions =\n    ambassadorWixDataV1ExternalDatabaseConnection.deleteExternalDatabaseConnection(\n      payload\n    );\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'DELETE',\n    path: '/v1/external-database-connections/{name}',\n    pathParams: { name: 'name' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport {\n  ExternalDatabaseConnection as ExternalDatabaseConnectionOriginal,\n  CauseOfFailure as CauseOfFailureOriginal,\n  CauseOfFailureWithLiterals as CauseOfFailureWithLiteralsOriginal,\n  CollectionsFound as CollectionsFoundOriginal,\n  CollectionsFoundWithLiterals as CollectionsFoundWithLiteralsOriginal,\n  FieldType as FieldTypeOriginal,\n  FieldTypeWithLiterals as FieldTypeWithLiteralsOriginal,\n  ConnectionStatus as ConnectionStatusOriginal,\n  ProtocolVersion as ProtocolVersionOriginal,\n  ProtocolVersionWithLiterals as ProtocolVersionWithLiteralsOriginal,\n  Capabilities as CapabilitiesOriginal,\n  GetExternalDatabaseConnectionRequest as GetExternalDatabaseConnectionRequestOriginal,\n  GetExternalDatabaseConnectionResponse as GetExternalDatabaseConnectionResponseOriginal,\n  ListExternalDatabaseConnectionsRequest as ListExternalDatabaseConnectionsRequestOriginal,\n  Paging as PagingOriginal,\n  ListExternalDatabaseConnectionsResponse as ListExternalDatabaseConnectionsResponseOriginal,\n  PagingMetadata as PagingMetadataOriginal,\n  CreateExternalDatabaseConnectionRequest as CreateExternalDatabaseConnectionRequestOriginal,\n  ConnectionType as ConnectionTypeOriginal,\n  ConnectionTypeWithLiterals as ConnectionTypeWithLiteralsOriginal,\n  CreateExternalDatabaseConnectionResponse as CreateExternalDatabaseConnectionResponseOriginal,\n  UpdateExternalDatabaseConnectionRequest as UpdateExternalDatabaseConnectionRequestOriginal,\n  UpdateExternalDatabaseConnectionResponse as UpdateExternalDatabaseConnectionResponseOriginal,\n  DeleteExternalDatabaseConnectionRequest as DeleteExternalDatabaseConnectionRequestOriginal,\n  DeleteExternalDatabaseConnectionResponse as DeleteExternalDatabaseConnectionResponseOriginal,\n  DomainEvent as DomainEventOriginal,\n  DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n  EntityCreatedEvent as EntityCreatedEventOriginal,\n  RestoreInfo as RestoreInfoOriginal,\n  EntityUpdatedEvent as EntityUpdatedEventOriginal,\n  EntityDeletedEvent as EntityDeletedEventOriginal,\n  ActionEvent as ActionEventOriginal,\n  MessageEnvelope as MessageEnvelopeOriginal,\n  IdentificationData as IdentificationDataOriginal,\n  IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n  WebhookIdentityType as WebhookIdentityTypeOriginal,\n  WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n  AccountInfo as AccountInfoOriginal,\n} from './data-v1-external-database-connection-external-database-connections.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,mFACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MAC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;AAAA,IAC3B,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["CauseOfFailure","CollectionsFound","FieldType","ProtocolVersion","ConnectionType","WebhookIdentityType","getExternalDatabaseConnection","listExternalDatabaseConnections","createExternalDatabaseConnection","updateExternalDatabaseConnection","deleteExternalDatabaseConnection"]}