@wix/auto_sdk_domains_connected-domain-setup-info 1.0.35 → 1.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../index.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.context.ts"],"sourcesContent":["export * from './src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js';\n\n/**\n * A `connectedDomainSetupInfo` object holds information the connected domain's\n * external registrar and some DNS records. You can use this information to guide\n * the site owner through the domain's setup process.\n */\nexport interface ConnectedDomainSetupInfo\n extends ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n /**\n * ID of the connected domain. Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId?: string;\n /**\n * Information about the external domain registrar including current name\n * servers.\n */\n registrar?: Registrar;\n}\n\n/** @oneof */\nexport interface ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n}\n\nexport interface Registrar {\n /**\n * Name of the external domain registrar. For subdomains it's the registrar of the root domain.\n * @readonly\n */\n name?: string | null;\n /**\n * Values of the current name server records. In case you connect an external\n * domain using name servers, site owners must replace these current name servers\n * with the new name servers found in `connectedDomainSetupInfo.nameserverRecord.nsRecord.values`\n * during the initial domain setup.\n * The replacement can't be performed through Wix APIs, you must use the\n * infrastructure of the external domain registrar. Read more about\n * [connecting domains using nameservers](https://dev.wix.com/api/rest/account-level-apis/connected-domains/sample-flows#account-level-apis_connected-domains_sample-flows_connect-an-external-domain-using-nameservers).\n * @readonly\n */\n nameServers?: string[];\n}\n\n/** Information about domains connected by nameservers. */\nexport interface NameserverRecord {\n /**\n * Default [nameserver record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#NS).\n * @readonly\n */\n nsRecord?: NsRecord;\n}\n\nexport interface NsRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\n/** Information about domains connected by pointing. */\nexport interface PointingRecords {\n /**\n * [Address record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#A).\n * @readonly\n */\n aRecord?: ARecord;\n /**\n * [Canonical Name record](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n */\n cnameRecord?: CnameRecord;\n}\n\nexport interface ARecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\nexport interface CnameRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /** DNS record value. */\n value?: string;\n}\n\n/** Information about subdomains. */\nexport interface SubdomainRecords {\n /**\n * [Canonical Name records](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n * @maxSize 2\n */\n cnameRecords?: CnameRecord[];\n}\n\nexport interface GetConnectedDomainSetupInfoRequest {\n /**\n * ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId: string;\n}\n\nexport interface GetConnectedDomainSetupInfoResponse {\n /** Retrieved setup information. */\n connectedDomainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\nexport interface GetSetupInfoRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * How the domain should be to connected the Wix site.\n *\n * + `\"UNKNOWN_CONNECTION_TYPE\"`: supported only for subdomain.\n * + `\"POINTING\"`: Get domain or subdomain setup by pointing\n * + `\"NAMESERVERS\"`: Get domain setup by nameservers\n * + `\"HIDDEN\"`: supported only for subdomain.\n */\n connectionType?: ConnectionTypeWithLiterals;\n /** Whether to return registrar information or not. Default is false. */\n includeRegistrar?: boolean;\n}\n\nexport enum ConnectionType {\n /** The domain is connected by pointing. Wix doesn't manage DNS information. */\n POINTING = 'POINTING',\n /** The domain is connected by nameservers. Wix manages DNS information. */\n NAMESERVERS = 'NAMESERVERS',\n /** The domain isn't visible to site visitors. */\n HIDDEN = 'HIDDEN',\n}\n\n/** @enumType */\nexport type ConnectionTypeWithLiterals =\n | ConnectionType\n | 'POINTING'\n | 'NAMESERVERS'\n | 'HIDDEN';\n\nexport interface GetSetupInfoResponse {\n /** Retrieved setup information. */\n domainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\nexport interface PreCreateConnectedDomainRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface PreCreateConnectedDomainResponse {}\n\nexport interface CanChangeDomainOwnerRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface CanChangeDomainOwnerResponse {\n /** Whether the domain owner can be changed. */\n canChangeOwner?: boolean;\n}\n\nexport interface GetMxRecordsRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface GetMxRecordsResponse {\n /**\n * MX records for the domain.\n * Domain can be either registered or connected.\n * The list will be empty if no MX records are found in the public DNS.\n */\n mxRecords?: MxRecord[];\n}\n\nexport interface MxRecord {\n /**\n * DNS record values. Wix limits DNS records to 50 values per type. External\n * providers may support a different maximum number of DNS records for a\n * specific type, Wix doesn't validate that you don't exceed these external\n * limits.\n *\n * Max: 50 records\n * @minSize 1\n * @maxSize 50\n * @maxLength 1000\n */\n values?: string[];\n}\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param connectedDomainId - ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @public\n * @requiredField connectedDomainId\n * @permissionId DOMAINS.READ_CONNECTED_DOMAINS\n * @returns Retrieved setup information.\n * @fqn com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo\n */\nexport async function getConnectedDomainSetupInfo(\n connectedDomainId: string\n): Promise<\n NonNullablePaths<\n ConnectedDomainSetupInfo,\n | `nameserverRecord.nsRecord.hostName`\n | `nameserverRecord.nsRecord.ttl`\n | `nameserverRecord.nsRecord.values`\n | `pointingRecords.aRecord.hostName`\n | `pointingRecords.aRecord.ttl`\n | `pointingRecords.aRecord.values`\n | `pointingRecords.cnameRecord.hostName`\n | `pointingRecords.cnameRecord.ttl`\n | `pointingRecords.cnameRecord.value`\n | `subdomainRecords.cnameRecords`\n | `connectedDomainId`\n | `registrar.nameServers`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectedDomainId: connectedDomainId,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo.getConnectedDomainSetupInfo(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.connectedDomainSetupInfo!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { connectedDomainId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['connectedDomainId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","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 resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/v1/mx-records',\n destPath: '/v1/mx-records',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_connected-domain-setup-info';\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function getConnectedDomainSetupInfo(\n payload: object\n): RequestOptionsFactory<any> {\n function __getConnectedDomainSetupInfo({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.connected_domain_setup_info',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n {\n protoPath: '/v1/connected-domain-setup-info/{connectedDomainId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getConnectedDomainSetupInfo;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n ConnectedDomainSetupInfo,\n getConnectedDomainSetupInfo as universalGetConnectedDomainSetupInfo,\n} from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/domains' };\n\nexport function getConnectedDomainSetupInfo(\n httpClient: HttpClient\n): GetConnectedDomainSetupInfoSignature {\n return (connectedDomainId: string) =>\n universalGetConnectedDomainSetupInfo(\n connectedDomainId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetConnectedDomainSetupInfoSignature {\n /**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param - ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @returns Retrieved setup information.\n */\n (connectedDomainId: string): Promise<\n NonNullablePaths<\n ConnectedDomainSetupInfo,\n | `nameserverRecord.nsRecord.hostName`\n | `nameserverRecord.nsRecord.ttl`\n | `nameserverRecord.nsRecord.values`\n | `pointingRecords.aRecord.hostName`\n | `pointingRecords.aRecord.ttl`\n | `pointingRecords.aRecord.values`\n | `pointingRecords.cnameRecord.hostName`\n | `pointingRecords.cnameRecord.ttl`\n | `pointingRecords.cnameRecord.value`\n | `subdomainRecords.cnameRecords`\n | `connectedDomainId`\n | `registrar.nameServers`,\n 2\n >\n >;\n}\n\nexport {\n ARecord,\n CanChangeDomainOwnerRequest,\n CanChangeDomainOwnerResponse,\n CnameRecord,\n ConnectedDomainSetupInfo,\n ConnectedDomainSetupInfoDnsRecordsOneOf,\n ConnectionType,\n GetConnectedDomainSetupInfoRequest,\n GetConnectedDomainSetupInfoResponse,\n GetMxRecordsRequest,\n GetMxRecordsResponse,\n GetSetupInfoRequest,\n GetSetupInfoResponse,\n MxRecord,\n NameserverRecord,\n NsRecord,\n PointingRecords,\n PreCreateConnectedDomainRequest,\n PreCreateConnectedDomainResponse,\n Registrar,\n SubdomainRecords,\n} from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\n","import { getConnectedDomainSetupInfo as publicGetConnectedDomainSetupInfo } from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getConnectedDomainSetupInfo: MaybeContext<\n BuildRESTFunction<typeof publicGetConnectedDomainSetupInfo> &\n typeof publicGetConnectedDomainSetupInfo\n> = /*#__PURE__*/ createRESTModule(publicGetConnectedDomainSetupInfo);\n\nexport { ConnectionType } from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\nexport {\n ConnectedDomainSetupInfo,\n ConnectedDomainSetupInfoDnsRecordsOneOf,\n Registrar,\n NameserverRecord,\n NsRecord,\n PointingRecords,\n ARecord,\n CnameRecord,\n SubdomainRecords,\n GetConnectedDomainSetupInfoRequest,\n GetConnectedDomainSetupInfoResponse,\n GetSetupInfoRequest,\n GetSetupInfoResponse,\n PreCreateConnectedDomainRequest,\n PreCreateConnectedDomainResponse,\n CanChangeDomainOwnerRequest,\n CanChangeDomainOwnerResponse,\n GetMxRecordsRequest,\n GetMxRecordsResponse,\n MxRecord,\n} from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\nexport { ConnectionTypeWithLiterals } from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,qCAAAA;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,IAAAC,uBAA2B;AAI3B,SAAS,2EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,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6BACpB,mBAkBA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,QAAM,UACkD;AAAA,IACpD;AAAA,EACF;AAEF,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI,GACtD;AAAA,EACN,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAC;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,mBAAmB,OAAO;AAAA,QACtD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,mBAAmB;AAAA,IACtB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE3UO,SAASC,6BACd,YACsC;AACtC,SAAO,CAAC,sBACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AChBA,IAAAC,uBAAiC;AAG1B,IAAMC,+BAGK,2DAAiBA,4BAAiC;","names":["getConnectedDomainSetupInfo","import_rest_modules","ConnectionType","getConnectedDomainSetupInfo","sdkTransformError","getConnectedDomainSetupInfo","import_rest_modules","getConnectedDomainSetupInfo"]}
1
+ {"version":3,"sources":["../../index.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.context.ts"],"sourcesContent":["export * from './src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js';\n\n/**\n * A `connectedDomainSetupInfo` object holds information the connected domain's\n * external registrar and some DNS records. You can use this information to guide\n * the site owner through the domain's setup process.\n */\nexport interface ConnectedDomainSetupInfo\n extends ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n /**\n * ID of the connected domain. Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId?: string;\n /**\n * Information about the external domain registrar including current name\n * servers.\n */\n registrar?: Registrar;\n}\n\n/** @oneof */\nexport interface ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n}\n\nexport interface Registrar {\n /**\n * Name of the external domain registrar. For subdomains it's the registrar of the root domain.\n * @readonly\n */\n name?: string | null;\n /**\n * Values of the current name server records. In case you connect an external\n * domain using name servers, site owners must replace these current name servers\n * with the new name servers found in `connectedDomainSetupInfo.nameserverRecord.nsRecord.values`\n * during the initial domain setup.\n * The replacement can't be performed through Wix APIs, you must use the\n * infrastructure of the external domain registrar. Read more about\n * [connecting domains using nameservers](https://dev.wix.com/api/rest/account-level-apis/connected-domains/sample-flows#account-level-apis_connected-domains_sample-flows_connect-an-external-domain-using-nameservers).\n * @readonly\n */\n nameServers?: string[];\n}\n\n/** Information about domains connected by nameservers. */\nexport interface NameserverRecord {\n /**\n * Default [nameserver record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#NS).\n * @readonly\n */\n nsRecord?: NsRecord;\n}\n\nexport interface NsRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\n/** Information about domains connected by pointing. */\nexport interface PointingRecords {\n /**\n * [Address record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#A).\n * @readonly\n */\n aRecord?: ARecord;\n /**\n * [Canonical Name record](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n */\n cnameRecord?: CnameRecord;\n}\n\nexport interface ARecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\nexport interface CnameRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /** DNS record value. */\n value?: string;\n}\n\n/** Information about subdomains. */\nexport interface SubdomainRecords {\n /**\n * [Canonical Name records](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n * @maxSize 2\n */\n cnameRecords?: CnameRecord[];\n}\n\nexport interface GetSetupInfoRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * How the domain should be to connected the Wix site.\n *\n * + `\"UNKNOWN_CONNECTION_TYPE\"`: supported only for subdomain.\n * + `\"POINTING\"`: Get domain or subdomain setup by pointing\n * + `\"NAMESERVERS\"`: Get domain setup by nameservers\n * + `\"HIDDEN\"`: supported only for subdomain.\n */\n connectionType?: ConnectionTypeWithLiterals;\n /** Whether to return registrar information or not. Default is false. */\n includeRegistrar?: boolean;\n}\n\nexport enum ConnectionType {\n /** The domain is connected by pointing. Wix doesn't manage DNS information. */\n POINTING = 'POINTING',\n /** The domain is connected by nameservers. Wix manages DNS information. */\n NAMESERVERS = 'NAMESERVERS',\n /** The domain isn't visible to site visitors. */\n HIDDEN = 'HIDDEN',\n}\n\n/** @enumType */\nexport type ConnectionTypeWithLiterals =\n | ConnectionType\n | 'POINTING'\n | 'NAMESERVERS'\n | 'HIDDEN';\n\nexport interface GetSetupInfoResponse {\n /** Retrieved setup information. */\n domainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\nexport interface PreCreateConnectedDomainRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface PreCreateConnectedDomainResponse {}\n\nexport interface CanChangeDomainOwnerRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface CanChangeDomainOwnerResponse {\n /** Whether the domain owner can be changed. */\n canChangeOwner?: boolean;\n}\n\nexport interface GetMxRecordsRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface GetMxRecordsResponse {\n /**\n * MX records for the domain.\n * Domain can be either registered or connected.\n * The list will be empty if no MX records are found in the public DNS.\n */\n mxRecords?: MxRecord[];\n}\n\nexport interface MxRecord {\n /**\n * DNS record values. Wix limits DNS records to 50 values per type. External\n * providers may support a different maximum number of DNS records for a\n * specific type, Wix doesn't validate that you don't exceed these external\n * limits.\n *\n * Max: 50 records\n * @minSize 1\n * @maxSize 50\n * @maxLength 1000\n */\n values?: string[];\n}\n\nexport interface GetConnectedDomainSetupInfoRequest {\n /**\n * ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId: string;\n}\n\nexport interface GetConnectedDomainSetupInfoResponse {\n /** Retrieved setup information. */\n connectedDomainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param connectedDomainId - ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @public\n * @requiredField connectedDomainId\n * @permissionId DOMAINS.READ_CONNECTED_DOMAINS\n * @returns Retrieved setup information.\n * @fqn com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo\n */\nexport async function getConnectedDomainSetupInfo(\n connectedDomainId: string\n): Promise<\n NonNullablePaths<\n ConnectedDomainSetupInfo,\n | `nameserverRecord.nsRecord.hostName`\n | `nameserverRecord.nsRecord.ttl`\n | `nameserverRecord.nsRecord.values`\n | `pointingRecords.aRecord.hostName`\n | `pointingRecords.aRecord.ttl`\n | `pointingRecords.aRecord.values`\n | `pointingRecords.cnameRecord.hostName`\n | `pointingRecords.cnameRecord.ttl`\n | `pointingRecords.cnameRecord.value`\n | `subdomainRecords.cnameRecords`\n | `connectedDomainId`\n | `registrar.nameServers`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectedDomainId: connectedDomainId,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo.getConnectedDomainSetupInfo(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.connectedDomainSetupInfo!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { connectedDomainId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['connectedDomainId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","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 resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/v1/mx-records',\n destPath: '/v1/mx-records',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_connected-domain-setup-info';\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function getConnectedDomainSetupInfo(\n payload: object\n): RequestOptionsFactory<any> {\n function __getConnectedDomainSetupInfo({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.connected_domain_setup_info',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n {\n protoPath: '/v1/connected-domain-setup-info/{connectedDomainId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getConnectedDomainSetupInfo;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n ConnectedDomainSetupInfo,\n getConnectedDomainSetupInfo as universalGetConnectedDomainSetupInfo,\n} from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/domains' };\n\nexport function getConnectedDomainSetupInfo(\n httpClient: HttpClient\n): GetConnectedDomainSetupInfoSignature {\n return (connectedDomainId: string) =>\n universalGetConnectedDomainSetupInfo(\n connectedDomainId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetConnectedDomainSetupInfoSignature {\n /**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param - ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @returns Retrieved setup information.\n */\n (connectedDomainId: string): Promise<\n NonNullablePaths<\n ConnectedDomainSetupInfo,\n | `nameserverRecord.nsRecord.hostName`\n | `nameserverRecord.nsRecord.ttl`\n | `nameserverRecord.nsRecord.values`\n | `pointingRecords.aRecord.hostName`\n | `pointingRecords.aRecord.ttl`\n | `pointingRecords.aRecord.values`\n | `pointingRecords.cnameRecord.hostName`\n | `pointingRecords.cnameRecord.ttl`\n | `pointingRecords.cnameRecord.value`\n | `subdomainRecords.cnameRecords`\n | `connectedDomainId`\n | `registrar.nameServers`,\n 2\n >\n >;\n}\n\nexport {\n ARecord,\n CanChangeDomainOwnerRequest,\n CanChangeDomainOwnerResponse,\n CnameRecord,\n ConnectedDomainSetupInfo,\n ConnectedDomainSetupInfoDnsRecordsOneOf,\n ConnectionType,\n GetConnectedDomainSetupInfoRequest,\n GetConnectedDomainSetupInfoResponse,\n GetMxRecordsRequest,\n GetMxRecordsResponse,\n GetSetupInfoRequest,\n GetSetupInfoResponse,\n MxRecord,\n NameserverRecord,\n NsRecord,\n PointingRecords,\n PreCreateConnectedDomainRequest,\n PreCreateConnectedDomainResponse,\n Registrar,\n SubdomainRecords,\n} from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\n","import { getConnectedDomainSetupInfo as publicGetConnectedDomainSetupInfo } from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getConnectedDomainSetupInfo: MaybeContext<\n BuildRESTFunction<typeof publicGetConnectedDomainSetupInfo> &\n typeof publicGetConnectedDomainSetupInfo\n> = /*#__PURE__*/ createRESTModule(publicGetConnectedDomainSetupInfo);\n\nexport { ConnectionType } from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\nexport {\n ConnectedDomainSetupInfo,\n ConnectedDomainSetupInfoDnsRecordsOneOf,\n Registrar,\n NameserverRecord,\n NsRecord,\n PointingRecords,\n ARecord,\n CnameRecord,\n SubdomainRecords,\n GetSetupInfoRequest,\n GetSetupInfoResponse,\n PreCreateConnectedDomainRequest,\n PreCreateConnectedDomainResponse,\n CanChangeDomainOwnerRequest,\n CanChangeDomainOwnerResponse,\n GetMxRecordsRequest,\n GetMxRecordsResponse,\n MxRecord,\n GetConnectedDomainSetupInfoRequest,\n GetConnectedDomainSetupInfoResponse,\n} from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\nexport { ConnectionTypeWithLiterals } from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,qCAAAA;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,IAAAC,uBAA2B;AAI3B,SAAS,2EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA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AAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE3UO,SAASC,6BACd,YACsC;AACtC,SAAO,CAAC,sBACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AChBA,IAAAC,uBAAiC;AAG1B,IAAMC,+BAGK,2DAAiBA,4BAAiC;","names":["getConnectedDomainSetupInfo","import_rest_modules","ConnectionType","getConnectedDomainSetupInfo","sdkTransformError","getConnectedDomainSetupInfo","import_rest_modules","getConnectedDomainSetupInfo"]}
@@ -141,18 +141,6 @@ interface SubdomainRecords {
141
141
  */
142
142
  cnameRecords?: CnameRecord[];
143
143
  }
144
- interface GetConnectedDomainSetupInfoRequest {
145
- /**
146
- * ID of the connected domain to retrieve setup information for.
147
- * Identical to the domain name including TLD.
148
- * @format HOSTNAME
149
- */
150
- connectedDomainId: string;
151
- }
152
- interface GetConnectedDomainSetupInfoResponse {
153
- /** Retrieved setup information. */
154
- connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
155
- }
156
144
  interface GetSetupInfoRequest {
157
145
  /**
158
146
  * Domain name including TLD
@@ -234,6 +222,18 @@ interface MxRecord {
234
222
  */
235
223
  values?: string[];
236
224
  }
225
+ interface GetConnectedDomainSetupInfoRequest {
226
+ /**
227
+ * ID of the connected domain to retrieve setup information for.
228
+ * Identical to the domain name including TLD.
229
+ * @format HOSTNAME
230
+ */
231
+ connectedDomainId: string;
232
+ }
233
+ interface GetConnectedDomainSetupInfoResponse {
234
+ /** Retrieved setup information. */
235
+ connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
236
+ }
237
237
  /**
238
238
  * Retrieves information for the initial setup of a connected domain.
239
239
  *
@@ -1 +1 @@
1
- {"version":3,"sources":["../../index.typings.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.ts"],"sourcesContent":["export * from './src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js';\n\n/**\n * A `connectedDomainSetupInfo` object holds information the connected domain's\n * external registrar and some DNS records. You can use this information to guide\n * the site owner through the domain's setup process.\n */\nexport interface ConnectedDomainSetupInfo\n extends ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n /**\n * ID of the connected domain. Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId?: string;\n /**\n * Information about the external domain registrar including current name\n * servers.\n */\n registrar?: Registrar;\n}\n\n/** @oneof */\nexport interface ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n}\n\nexport interface Registrar {\n /**\n * Name of the external domain registrar. For subdomains it's the registrar of the root domain.\n * @readonly\n */\n name?: string | null;\n /**\n * Values of the current name server records. In case you connect an external\n * domain using name servers, site owners must replace these current name servers\n * with the new name servers found in `connectedDomainSetupInfo.nameserverRecord.nsRecord.values`\n * during the initial domain setup.\n * The replacement can't be performed through Wix APIs, you must use the\n * infrastructure of the external domain registrar. Read more about\n * [connecting domains using nameservers](https://dev.wix.com/api/rest/account-level-apis/connected-domains/sample-flows#account-level-apis_connected-domains_sample-flows_connect-an-external-domain-using-nameservers).\n * @readonly\n */\n nameServers?: string[];\n}\n\n/** Information about domains connected by nameservers. */\nexport interface NameserverRecord {\n /**\n * Default [nameserver record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#NS).\n * @readonly\n */\n nsRecord?: NsRecord;\n}\n\nexport interface NsRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\n/** Information about domains connected by pointing. */\nexport interface PointingRecords {\n /**\n * [Address record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#A).\n * @readonly\n */\n aRecord?: ARecord;\n /**\n * [Canonical Name record](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n */\n cnameRecord?: CnameRecord;\n}\n\nexport interface ARecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\nexport interface CnameRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /** DNS record value. */\n value?: string;\n}\n\n/** Information about subdomains. */\nexport interface SubdomainRecords {\n /**\n * [Canonical Name records](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n * @maxSize 2\n */\n cnameRecords?: CnameRecord[];\n}\n\nexport interface GetConnectedDomainSetupInfoRequest {\n /**\n * ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId: string;\n}\n\nexport interface GetConnectedDomainSetupInfoResponse {\n /** Retrieved setup information. */\n connectedDomainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\nexport interface GetSetupInfoRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * How the domain should be to connected the Wix site.\n *\n * + `\"UNKNOWN_CONNECTION_TYPE\"`: supported only for subdomain.\n * + `\"POINTING\"`: Get domain or subdomain setup by pointing\n * + `\"NAMESERVERS\"`: Get domain setup by nameservers\n * + `\"HIDDEN\"`: supported only for subdomain.\n */\n connectionType?: ConnectionTypeWithLiterals;\n /** Whether to return registrar information or not. Default is false. */\n includeRegistrar?: boolean;\n}\n\nexport enum ConnectionType {\n /** The domain is connected by pointing. Wix doesn't manage DNS information. */\n POINTING = 'POINTING',\n /** The domain is connected by nameservers. Wix manages DNS information. */\n NAMESERVERS = 'NAMESERVERS',\n /** The domain isn't visible to site visitors. */\n HIDDEN = 'HIDDEN',\n}\n\n/** @enumType */\nexport type ConnectionTypeWithLiterals =\n | ConnectionType\n | 'POINTING'\n | 'NAMESERVERS'\n | 'HIDDEN';\n\nexport interface GetSetupInfoResponse {\n /** Retrieved setup information. */\n domainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\nexport interface PreCreateConnectedDomainRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface PreCreateConnectedDomainResponse {}\n\nexport interface CanChangeDomainOwnerRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface CanChangeDomainOwnerResponse {\n /** Whether the domain owner can be changed. */\n canChangeOwner?: boolean;\n}\n\nexport interface GetMxRecordsRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface GetMxRecordsResponse {\n /**\n * MX records for the domain.\n * Domain can be either registered or connected.\n * The list will be empty if no MX records are found in the public DNS.\n */\n mxRecords?: MxRecord[];\n}\n\nexport interface MxRecord {\n /**\n * DNS record values. Wix limits DNS records to 50 values per type. External\n * providers may support a different maximum number of DNS records for a\n * specific type, Wix doesn't validate that you don't exceed these external\n * limits.\n *\n * Max: 50 records\n * @minSize 1\n * @maxSize 50\n * @maxLength 1000\n */\n values?: string[];\n}\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param connectedDomainId - ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @public\n * @requiredField connectedDomainId\n * @permissionId DOMAINS.READ_CONNECTED_DOMAINS\n * @returns Retrieved setup information.\n * @fqn com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo\n */\nexport async function getConnectedDomainSetupInfo(\n connectedDomainId: string\n): Promise<\n NonNullablePaths<\n ConnectedDomainSetupInfo,\n | `nameserverRecord.nsRecord.hostName`\n | `nameserverRecord.nsRecord.ttl`\n | `nameserverRecord.nsRecord.values`\n | `pointingRecords.aRecord.hostName`\n | `pointingRecords.aRecord.ttl`\n | `pointingRecords.aRecord.values`\n | `pointingRecords.cnameRecord.hostName`\n | `pointingRecords.cnameRecord.ttl`\n | `pointingRecords.cnameRecord.value`\n | `subdomainRecords.cnameRecords`\n | `connectedDomainId`\n | `registrar.nameServers`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectedDomainId: connectedDomainId,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo.getConnectedDomainSetupInfo(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.connectedDomainSetupInfo!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { connectedDomainId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['connectedDomainId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","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 resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/v1/mx-records',\n destPath: '/v1/mx-records',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_connected-domain-setup-info';\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function getConnectedDomainSetupInfo(\n payload: object\n): RequestOptionsFactory<any> {\n function __getConnectedDomainSetupInfo({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.connected_domain_setup_info',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n {\n protoPath: '/v1/connected-domain-setup-info/{connectedDomainId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getConnectedDomainSetupInfo;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,qCAAAA;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,IAAAC,uBAA2B;AAI3B,SAAS,2EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA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AAC;AAED,QAAM,UACkD;AAAA,IACpD;AAAA,EACF;AAEF,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI,GACtD;AAAA,EACN,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAC;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,mBAAmB,OAAO;AAAA,QACtD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,mBAAmB;AAAA,IACtB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["getConnectedDomainSetupInfo","import_rest_modules","ConnectionType","getConnectedDomainSetupInfo","sdkTransformError"]}
1
+ {"version":3,"sources":["../../index.typings.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.ts"],"sourcesContent":["export * from './src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js';\n\n/**\n * A `connectedDomainSetupInfo` object holds information the connected domain's\n * external registrar and some DNS records. You can use this information to guide\n * the site owner through the domain's setup process.\n */\nexport interface ConnectedDomainSetupInfo\n extends ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n /**\n * ID of the connected domain. Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId?: string;\n /**\n * Information about the external domain registrar including current name\n * servers.\n */\n registrar?: Registrar;\n}\n\n/** @oneof */\nexport interface ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n}\n\nexport interface Registrar {\n /**\n * Name of the external domain registrar. For subdomains it's the registrar of the root domain.\n * @readonly\n */\n name?: string | null;\n /**\n * Values of the current name server records. In case you connect an external\n * domain using name servers, site owners must replace these current name servers\n * with the new name servers found in `connectedDomainSetupInfo.nameserverRecord.nsRecord.values`\n * during the initial domain setup.\n * The replacement can't be performed through Wix APIs, you must use the\n * infrastructure of the external domain registrar. Read more about\n * [connecting domains using nameservers](https://dev.wix.com/api/rest/account-level-apis/connected-domains/sample-flows#account-level-apis_connected-domains_sample-flows_connect-an-external-domain-using-nameservers).\n * @readonly\n */\n nameServers?: string[];\n}\n\n/** Information about domains connected by nameservers. */\nexport interface NameserverRecord {\n /**\n * Default [nameserver record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#NS).\n * @readonly\n */\n nsRecord?: NsRecord;\n}\n\nexport interface NsRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\n/** Information about domains connected by pointing. */\nexport interface PointingRecords {\n /**\n * [Address record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#A).\n * @readonly\n */\n aRecord?: ARecord;\n /**\n * [Canonical Name record](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n */\n cnameRecord?: CnameRecord;\n}\n\nexport interface ARecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\nexport interface CnameRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /** DNS record value. */\n value?: string;\n}\n\n/** Information about subdomains. */\nexport interface SubdomainRecords {\n /**\n * [Canonical Name records](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n * @maxSize 2\n */\n cnameRecords?: CnameRecord[];\n}\n\nexport interface GetSetupInfoRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * How the domain should be to connected the Wix site.\n *\n * + `\"UNKNOWN_CONNECTION_TYPE\"`: supported only for subdomain.\n * + `\"POINTING\"`: Get domain or subdomain setup by pointing\n * + `\"NAMESERVERS\"`: Get domain setup by nameservers\n * + `\"HIDDEN\"`: supported only for subdomain.\n */\n connectionType?: ConnectionTypeWithLiterals;\n /** Whether to return registrar information or not. Default is false. */\n includeRegistrar?: boolean;\n}\n\nexport enum ConnectionType {\n /** The domain is connected by pointing. Wix doesn't manage DNS information. */\n POINTING = 'POINTING',\n /** The domain is connected by nameservers. Wix manages DNS information. */\n NAMESERVERS = 'NAMESERVERS',\n /** The domain isn't visible to site visitors. */\n HIDDEN = 'HIDDEN',\n}\n\n/** @enumType */\nexport type ConnectionTypeWithLiterals =\n | ConnectionType\n | 'POINTING'\n | 'NAMESERVERS'\n | 'HIDDEN';\n\nexport interface GetSetupInfoResponse {\n /** Retrieved setup information. */\n domainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\nexport interface PreCreateConnectedDomainRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface PreCreateConnectedDomainResponse {}\n\nexport interface CanChangeDomainOwnerRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface CanChangeDomainOwnerResponse {\n /** Whether the domain owner can be changed. */\n canChangeOwner?: boolean;\n}\n\nexport interface GetMxRecordsRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface GetMxRecordsResponse {\n /**\n * MX records for the domain.\n * Domain can be either registered or connected.\n * The list will be empty if no MX records are found in the public DNS.\n */\n mxRecords?: MxRecord[];\n}\n\nexport interface MxRecord {\n /**\n * DNS record values. Wix limits DNS records to 50 values per type. External\n * providers may support a different maximum number of DNS records for a\n * specific type, Wix doesn't validate that you don't exceed these external\n * limits.\n *\n * Max: 50 records\n * @minSize 1\n * @maxSize 50\n * @maxLength 1000\n */\n values?: string[];\n}\n\nexport interface GetConnectedDomainSetupInfoRequest {\n /**\n * ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId: string;\n}\n\nexport interface GetConnectedDomainSetupInfoResponse {\n /** Retrieved setup information. */\n connectedDomainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param connectedDomainId - ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @public\n * @requiredField connectedDomainId\n * @permissionId DOMAINS.READ_CONNECTED_DOMAINS\n * @returns Retrieved setup information.\n * @fqn com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo\n */\nexport async function getConnectedDomainSetupInfo(\n connectedDomainId: string\n): Promise<\n NonNullablePaths<\n ConnectedDomainSetupInfo,\n | `nameserverRecord.nsRecord.hostName`\n | `nameserverRecord.nsRecord.ttl`\n | `nameserverRecord.nsRecord.values`\n | `pointingRecords.aRecord.hostName`\n | `pointingRecords.aRecord.ttl`\n | `pointingRecords.aRecord.values`\n | `pointingRecords.cnameRecord.hostName`\n | `pointingRecords.cnameRecord.ttl`\n | `pointingRecords.cnameRecord.value`\n | `subdomainRecords.cnameRecords`\n | `connectedDomainId`\n | `registrar.nameServers`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectedDomainId: connectedDomainId,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo.getConnectedDomainSetupInfo(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.connectedDomainSetupInfo!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { connectedDomainId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['connectedDomainId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","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 resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/v1/mx-records',\n destPath: '/v1/mx-records',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_connected-domain-setup-info';\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function getConnectedDomainSetupInfo(\n payload: object\n): RequestOptionsFactory<any> {\n function __getConnectedDomainSetupInfo({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.connected_domain_setup_info',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n {\n protoPath: '/v1/connected-domain-setup-info/{connectedDomainId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getConnectedDomainSetupInfo;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,qCAAAA;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,IAAAC,uBAA2B;AAI3B,SAAS,2EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA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C,CAAC;AAC7D;AAEA,IAAM,eAAe;AAUd,SAAS,4BACd,SAC4B;AAC5B,WAAS,8BAA8B,EAAE,KAAK,GAAQ;AACpD,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK;AAAA,QACH;AAAA,UACE,WAAW;AAAA,UACX,MAAM;AAAA,UACN;AAAA,QACF;AAAA,MACF;AAAA,MACA,YAAQ,uCAAkB,OAAO;AAAA,IACnC;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;AD+BO,IAAK,iBAAL,kBAAKC,oBAAL;AAEL,EAAAA,gBAAA,cAAW;AAEX,EAAAA,gBAAA,iBAAc;AAEd,EAAAA,gBAAA,YAAS;AANC,SAAAA;AAAA,GAAA;AAyGZ,eAAsBC,6BACpB,mBAkBA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,QAAM,UACkD;AAAA,IACpD;AAAA,EACF;AAEF,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI,GACtD;AAAA,EACN,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAC;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,mBAAmB,OAAO;AAAA,QACtD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,mBAAmB;AAAA,IACtB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["getConnectedDomainSetupInfo","import_rest_modules","ConnectionType","getConnectedDomainSetupInfo","sdkTransformError"]}
@@ -142,18 +142,6 @@ interface SubdomainRecords {
142
142
  */
143
143
  cnameRecords?: CnameRecord[];
144
144
  }
145
- interface GetConnectedDomainSetupInfoRequest {
146
- /**
147
- * ID of the connected domain to retrieve setup information for.
148
- * Identical to the domain name including TLD.
149
- * @format HOSTNAME
150
- */
151
- connectedDomainId: string;
152
- }
153
- interface GetConnectedDomainSetupInfoResponse {
154
- /** Retrieved setup information. */
155
- connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
156
- }
157
145
  interface GetSetupInfoRequest {
158
146
  /**
159
147
  * Domain name including TLD
@@ -235,6 +223,18 @@ interface MxRecord {
235
223
  */
236
224
  values?: string[];
237
225
  }
226
+ interface GetConnectedDomainSetupInfoRequest {
227
+ /**
228
+ * ID of the connected domain to retrieve setup information for.
229
+ * Identical to the domain name including TLD.
230
+ * @format HOSTNAME
231
+ */
232
+ connectedDomainId: string;
233
+ }
234
+ interface GetConnectedDomainSetupInfoResponse {
235
+ /** Retrieved setup information. */
236
+ connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
237
+ }
238
238
 
239
239
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
240
240
  getUrl: (context: any) => string;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../meta.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.meta.ts"],"sourcesContent":["export * from './src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.meta.js';\n","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 resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/v1/mx-records',\n destPath: '/v1/mx-records',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_connected-domain-setup-info';\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function getConnectedDomainSetupInfo(\n payload: object\n): RequestOptionsFactory<any> {\n function __getConnectedDomainSetupInfo({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.connected_domain_setup_info',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n {\n protoPath: '/v1/connected-domain-setup-info/{connectedDomainId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getConnectedDomainSetupInfo;\n}\n","/**\n * A `connectedDomainSetupInfo` object holds information the connected domain's\n * external registrar and some DNS records. You can use this information to guide\n * the site owner through the domain's setup process.\n */\nexport interface ConnectedDomainSetupInfo\n extends ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n /**\n * ID of the connected domain. Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId?: string;\n /**\n * Information about the external domain registrar including current name\n * servers.\n */\n registrar?: Registrar;\n}\n\n/** @oneof */\nexport interface ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n}\n\nexport interface Registrar {\n /**\n * Name of the external domain registrar. For subdomains it's the registrar of the root domain.\n * @readonly\n */\n name?: string | null;\n /**\n * Values of the current name server records. In case you connect an external\n * domain using name servers, site owners must replace these current name servers\n * with the new name servers found in `connectedDomainSetupInfo.nameserverRecord.nsRecord.values`\n * during the initial domain setup.\n * The replacement can't be performed through Wix APIs, you must use the\n * infrastructure of the external domain registrar. Read more about\n * [connecting domains using nameservers](https://dev.wix.com/api/rest/account-level-apis/connected-domains/sample-flows#account-level-apis_connected-domains_sample-flows_connect-an-external-domain-using-nameservers).\n * @readonly\n */\n nameServers?: string[];\n}\n\n/** Information about domains connected by nameservers. */\nexport interface NameserverRecord {\n /**\n * Default [nameserver record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#NS).\n * @readonly\n */\n nsRecord?: NsRecord;\n}\n\nexport interface NsRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\n/** Information about domains connected by pointing. */\nexport interface PointingRecords {\n /**\n * [Address record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#A).\n * @readonly\n */\n aRecord?: ARecord;\n /**\n * [Canonical Name record](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n */\n cnameRecord?: CnameRecord;\n}\n\nexport interface ARecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\nexport interface CnameRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /** DNS record value. */\n value?: string;\n}\n\n/** Information about subdomains. */\nexport interface SubdomainRecords {\n /**\n * [Canonical Name records](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n * @maxSize 2\n */\n cnameRecords?: CnameRecord[];\n}\n\nexport interface GetConnectedDomainSetupInfoRequest {\n /**\n * ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId: string;\n}\n\nexport interface GetConnectedDomainSetupInfoResponse {\n /** Retrieved setup information. */\n connectedDomainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\nexport interface GetSetupInfoRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * How the domain should be to connected the Wix site.\n *\n * + `\"UNKNOWN_CONNECTION_TYPE\"`: supported only for subdomain.\n * + `\"POINTING\"`: Get domain or subdomain setup by pointing\n * + `\"NAMESERVERS\"`: Get domain setup by nameservers\n * + `\"HIDDEN\"`: supported only for subdomain.\n */\n connectionType?: ConnectionTypeWithLiterals;\n /** Whether to return registrar information or not. Default is false. */\n includeRegistrar?: boolean;\n}\n\nexport enum ConnectionType {\n /** The domain is connected by pointing. Wix doesn't manage DNS information. */\n POINTING = 'POINTING',\n /** The domain is connected by nameservers. Wix manages DNS information. */\n NAMESERVERS = 'NAMESERVERS',\n /** The domain isn't visible to site visitors. */\n HIDDEN = 'HIDDEN',\n}\n\n/** @enumType */\nexport type ConnectionTypeWithLiterals =\n | ConnectionType\n | 'POINTING'\n | 'NAMESERVERS'\n | 'HIDDEN';\n\nexport interface GetSetupInfoResponse {\n /** Retrieved setup information. */\n domainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\nexport interface PreCreateConnectedDomainRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface PreCreateConnectedDomainResponse {}\n\nexport interface CanChangeDomainOwnerRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface CanChangeDomainOwnerResponse {\n /** Whether the domain owner can be changed. */\n canChangeOwner?: boolean;\n}\n\nexport interface GetMxRecordsRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface GetMxRecordsResponse {\n /**\n * MX records for the domain.\n * Domain can be either registered or connected.\n * The list will be empty if no MX records are found in the public DNS.\n */\n mxRecords?: MxRecord[];\n}\n\nexport interface MxRecord {\n /**\n * DNS record values. Wix limits DNS records to 50 values per type. External\n * providers may support a different maximum number of DNS records for a\n * specific type, Wix doesn't validate that you don't exceed these external\n * limits.\n *\n * Max: 50 records\n * @minSize 1\n * @maxSize 50\n * @maxLength 1000\n */\n values?: string[];\n}\n","import * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js';\nimport * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoTypes from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.js';\nimport * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoUniversalTypes from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.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 getConnectedDomainSetupInfo(): __PublicMethodMetaInfo<\n 'GET',\n { connectedDomainId: string },\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoUniversalTypes.GetConnectedDomainSetupInfoRequest,\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoTypes.GetConnectedDomainSetupInfoRequest,\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoUniversalTypes.GetConnectedDomainSetupInfoResponse,\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoTypes.GetConnectedDomainSetupInfoResponse\n> {\n const payload = { connectedDomainId: ':connectedDomainId' } as any;\n\n const getRequestOptions =\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo.getConnectedDomainSetupInfo(\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/connected-domain-setup-info/{connectedDomainId}',\n pathParams: { connectedDomainId: 'connectedDomainId' },\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 ConnectedDomainSetupInfo as ConnectedDomainSetupInfoOriginal,\n ConnectedDomainSetupInfoDnsRecordsOneOf as ConnectedDomainSetupInfoDnsRecordsOneOfOriginal,\n Registrar as RegistrarOriginal,\n NameserverRecord as NameserverRecordOriginal,\n NsRecord as NsRecordOriginal,\n PointingRecords as PointingRecordsOriginal,\n ARecord as ARecordOriginal,\n CnameRecord as CnameRecordOriginal,\n SubdomainRecords as SubdomainRecordsOriginal,\n GetConnectedDomainSetupInfoRequest as GetConnectedDomainSetupInfoRequestOriginal,\n GetConnectedDomainSetupInfoResponse as GetConnectedDomainSetupInfoResponseOriginal,\n GetSetupInfoRequest as GetSetupInfoRequestOriginal,\n ConnectionType as ConnectionTypeOriginal,\n ConnectionTypeWithLiterals as ConnectionTypeWithLiteralsOriginal,\n GetSetupInfoResponse as GetSetupInfoResponseOriginal,\n PreCreateConnectedDomainRequest as PreCreateConnectedDomainRequestOriginal,\n PreCreateConnectedDomainResponse as PreCreateConnectedDomainResponseOriginal,\n CanChangeDomainOwnerRequest as CanChangeDomainOwnerRequestOriginal,\n CanChangeDomainOwnerResponse as CanChangeDomainOwnerResponseOriginal,\n GetMxRecordsRequest as GetMxRecordsRequestOriginal,\n GetMxRecordsResponse as GetMxRecordsResponseOriginal,\n MxRecord as MxRecordOriginal,\n} from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,qCAAAA;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,IAAAC,uBAA2B;AAI3B,SAAS,2EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;A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AKC,oBAAL;AAEL,EAAAA,gBAAA,cAAW;AAEX,EAAAA,gBAAA,iBAAc;AAEd,EAAAA,gBAAA,YAAS;AANC,SAAAA;AAAA,GAAA;;;AClKL,SAASC,+BAOd;AACA,QAAM,UAAU,EAAE,mBAAmB,qBAAqB;AAE1D,QAAM,oBACkD;AAAA,IACpD;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,mBAAmB,oBAAoB;AAAA,IACrD,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getConnectedDomainSetupInfo","import_rest_modules","ConnectionType","getConnectedDomainSetupInfo"]}
1
+ {"version":3,"sources":["../../meta.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.meta.ts"],"sourcesContent":["export * from './src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.meta.js';\n","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 resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/v1/mx-records',\n destPath: '/v1/mx-records',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_connected-domain-setup-info';\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function getConnectedDomainSetupInfo(\n payload: object\n): RequestOptionsFactory<any> {\n function __getConnectedDomainSetupInfo({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.connected_domain_setup_info',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n {\n protoPath: '/v1/connected-domain-setup-info/{connectedDomainId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getConnectedDomainSetupInfo;\n}\n","/**\n * A `connectedDomainSetupInfo` object holds information the connected domain's\n * external registrar and some DNS records. You can use this information to guide\n * the site owner through the domain's setup process.\n */\nexport interface ConnectedDomainSetupInfo\n extends ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n /**\n * ID of the connected domain. Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId?: string;\n /**\n * Information about the external domain registrar including current name\n * servers.\n */\n registrar?: Registrar;\n}\n\n/** @oneof */\nexport interface ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n}\n\nexport interface Registrar {\n /**\n * Name of the external domain registrar. For subdomains it's the registrar of the root domain.\n * @readonly\n */\n name?: string | null;\n /**\n * Values of the current name server records. In case you connect an external\n * domain using name servers, site owners must replace these current name servers\n * with the new name servers found in `connectedDomainSetupInfo.nameserverRecord.nsRecord.values`\n * during the initial domain setup.\n * The replacement can't be performed through Wix APIs, you must use the\n * infrastructure of the external domain registrar. Read more about\n * [connecting domains using nameservers](https://dev.wix.com/api/rest/account-level-apis/connected-domains/sample-flows#account-level-apis_connected-domains_sample-flows_connect-an-external-domain-using-nameservers).\n * @readonly\n */\n nameServers?: string[];\n}\n\n/** Information about domains connected by nameservers. */\nexport interface NameserverRecord {\n /**\n * Default [nameserver record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#NS).\n * @readonly\n */\n nsRecord?: NsRecord;\n}\n\nexport interface NsRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\n/** Information about domains connected by pointing. */\nexport interface PointingRecords {\n /**\n * [Address record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#A).\n * @readonly\n */\n aRecord?: ARecord;\n /**\n * [Canonical Name record](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n */\n cnameRecord?: CnameRecord;\n}\n\nexport interface ARecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\nexport interface CnameRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /** DNS record value. */\n value?: string;\n}\n\n/** Information about subdomains. */\nexport interface SubdomainRecords {\n /**\n * [Canonical Name records](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n * @maxSize 2\n */\n cnameRecords?: CnameRecord[];\n}\n\nexport interface GetSetupInfoRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * How the domain should be to connected the Wix site.\n *\n * + `\"UNKNOWN_CONNECTION_TYPE\"`: supported only for subdomain.\n * + `\"POINTING\"`: Get domain or subdomain setup by pointing\n * + `\"NAMESERVERS\"`: Get domain setup by nameservers\n * + `\"HIDDEN\"`: supported only for subdomain.\n */\n connectionType?: ConnectionTypeWithLiterals;\n /** Whether to return registrar information or not. Default is false. */\n includeRegistrar?: boolean;\n}\n\nexport enum ConnectionType {\n /** The domain is connected by pointing. Wix doesn't manage DNS information. */\n POINTING = 'POINTING',\n /** The domain is connected by nameservers. Wix manages DNS information. */\n NAMESERVERS = 'NAMESERVERS',\n /** The domain isn't visible to site visitors. */\n HIDDEN = 'HIDDEN',\n}\n\n/** @enumType */\nexport type ConnectionTypeWithLiterals =\n | ConnectionType\n | 'POINTING'\n | 'NAMESERVERS'\n | 'HIDDEN';\n\nexport interface GetSetupInfoResponse {\n /** Retrieved setup information. */\n domainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\nexport interface PreCreateConnectedDomainRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface PreCreateConnectedDomainResponse {}\n\nexport interface CanChangeDomainOwnerRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface CanChangeDomainOwnerResponse {\n /** Whether the domain owner can be changed. */\n canChangeOwner?: boolean;\n}\n\nexport interface GetMxRecordsRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface GetMxRecordsResponse {\n /**\n * MX records for the domain.\n * Domain can be either registered or connected.\n * The list will be empty if no MX records are found in the public DNS.\n */\n mxRecords?: MxRecord[];\n}\n\nexport interface MxRecord {\n /**\n * DNS record values. Wix limits DNS records to 50 values per type. External\n * providers may support a different maximum number of DNS records for a\n * specific type, Wix doesn't validate that you don't exceed these external\n * limits.\n *\n * Max: 50 records\n * @minSize 1\n * @maxSize 50\n * @maxLength 1000\n */\n values?: string[];\n}\n\nexport interface GetConnectedDomainSetupInfoRequest {\n /**\n * ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId: string;\n}\n\nexport interface GetConnectedDomainSetupInfoResponse {\n /** Retrieved setup information. */\n connectedDomainSetupInfo?: ConnectedDomainSetupInfo;\n}\n","import * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js';\nimport * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoTypes from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.js';\nimport * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoUniversalTypes from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.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 getConnectedDomainSetupInfo(): __PublicMethodMetaInfo<\n 'GET',\n { connectedDomainId: string },\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoUniversalTypes.GetConnectedDomainSetupInfoRequest,\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoTypes.GetConnectedDomainSetupInfoRequest,\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoUniversalTypes.GetConnectedDomainSetupInfoResponse,\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoTypes.GetConnectedDomainSetupInfoResponse\n> {\n const payload = { connectedDomainId: ':connectedDomainId' } as any;\n\n const getRequestOptions =\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo.getConnectedDomainSetupInfo(\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/connected-domain-setup-info/{connectedDomainId}',\n pathParams: { connectedDomainId: 'connectedDomainId' },\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 ConnectedDomainSetupInfo as ConnectedDomainSetupInfoOriginal,\n ConnectedDomainSetupInfoDnsRecordsOneOf as ConnectedDomainSetupInfoDnsRecordsOneOfOriginal,\n Registrar as RegistrarOriginal,\n NameserverRecord as NameserverRecordOriginal,\n NsRecord as NsRecordOriginal,\n PointingRecords as PointingRecordsOriginal,\n ARecord as ARecordOriginal,\n CnameRecord as CnameRecordOriginal,\n SubdomainRecords as SubdomainRecordsOriginal,\n GetSetupInfoRequest as GetSetupInfoRequestOriginal,\n ConnectionType as ConnectionTypeOriginal,\n ConnectionTypeWithLiterals as ConnectionTypeWithLiteralsOriginal,\n GetSetupInfoResponse as GetSetupInfoResponseOriginal,\n PreCreateConnectedDomainRequest as PreCreateConnectedDomainRequestOriginal,\n PreCreateConnectedDomainResponse as PreCreateConnectedDomainResponseOriginal,\n CanChangeDomainOwnerRequest as CanChangeDomainOwnerRequestOriginal,\n CanChangeDomainOwnerResponse as CanChangeDomainOwnerResponseOriginal,\n GetMxRecordsRequest as GetMxRecordsRequestOriginal,\n GetMxRecordsResponse as GetMxRecordsResponseOriginal,\n MxRecord as MxRecordOriginal,\n GetConnectedDomainSetupInfoRequest as GetConnectedDomainSetupInfoRequestOriginal,\n GetConnectedDomainSetupInfoResponse as GetConnectedDomainSetupInfoResponseOriginal,\n} from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,qCAAAA;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,IAAAC,uBAA2B;AAI3B,SAAS,2EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,Q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;AAE1D,QAAM,oBACkD;AAAA,IACpD;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,mBAAmB,oBAAoB;AAAA,IACrD,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getConnectedDomainSetupInfo","import_rest_modules","ConnectionType","getConnectedDomainSetupInfo"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js';\n\n/**\n * A `connectedDomainSetupInfo` object holds information the connected domain's\n * external registrar and some DNS records. You can use this information to guide\n * the site owner through the domain's setup process.\n */\nexport interface ConnectedDomainSetupInfo\n extends ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n /**\n * ID of the connected domain. Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId?: string;\n /**\n * Information about the external domain registrar including current name\n * servers.\n */\n registrar?: Registrar;\n}\n\n/** @oneof */\nexport interface ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n}\n\nexport interface Registrar {\n /**\n * Name of the external domain registrar. For subdomains it's the registrar of the root domain.\n * @readonly\n */\n name?: string | null;\n /**\n * Values of the current name server records. In case you connect an external\n * domain using name servers, site owners must replace these current name servers\n * with the new name servers found in `connectedDomainSetupInfo.nameserverRecord.nsRecord.values`\n * during the initial domain setup.\n * The replacement can't be performed through Wix APIs, you must use the\n * infrastructure of the external domain registrar. Read more about\n * [connecting domains using nameservers](https://dev.wix.com/api/rest/account-level-apis/connected-domains/sample-flows#account-level-apis_connected-domains_sample-flows_connect-an-external-domain-using-nameservers).\n * @readonly\n */\n nameServers?: string[];\n}\n\n/** Information about domains connected by nameservers. */\nexport interface NameserverRecord {\n /**\n * Default [nameserver record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#NS).\n * @readonly\n */\n nsRecord?: NsRecord;\n}\n\nexport interface NsRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\n/** Information about domains connected by pointing. */\nexport interface PointingRecords {\n /**\n * [Address record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#A).\n * @readonly\n */\n aRecord?: ARecord;\n /**\n * [Canonical Name record](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n */\n cnameRecord?: CnameRecord;\n}\n\nexport interface ARecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\nexport interface CnameRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /** DNS record value. */\n value?: string;\n}\n\n/** Information about subdomains. */\nexport interface SubdomainRecords {\n /**\n * [Canonical Name records](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n * @maxSize 2\n */\n cnameRecords?: CnameRecord[];\n}\n\nexport interface GetConnectedDomainSetupInfoRequest {\n /**\n * ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId: string;\n}\n\nexport interface GetConnectedDomainSetupInfoResponse {\n /** Retrieved setup information. */\n connectedDomainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\nexport interface GetSetupInfoRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * How the domain should be to connected the Wix site.\n *\n * + `\"UNKNOWN_CONNECTION_TYPE\"`: supported only for subdomain.\n * + `\"POINTING\"`: Get domain or subdomain setup by pointing\n * + `\"NAMESERVERS\"`: Get domain setup by nameservers\n * + `\"HIDDEN\"`: supported only for subdomain.\n */\n connectionType?: ConnectionTypeWithLiterals;\n /** Whether to return registrar information or not. Default is false. */\n includeRegistrar?: boolean;\n}\n\nexport enum ConnectionType {\n /** The domain is connected by pointing. Wix doesn't manage DNS information. */\n POINTING = 'POINTING',\n /** The domain is connected by nameservers. Wix manages DNS information. */\n NAMESERVERS = 'NAMESERVERS',\n /** The domain isn't visible to site visitors. */\n HIDDEN = 'HIDDEN',\n}\n\n/** @enumType */\nexport type ConnectionTypeWithLiterals =\n | ConnectionType\n | 'POINTING'\n | 'NAMESERVERS'\n | 'HIDDEN';\n\nexport interface GetSetupInfoResponse {\n /** Retrieved setup information. */\n domainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\nexport interface PreCreateConnectedDomainRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface PreCreateConnectedDomainResponse {}\n\nexport interface CanChangeDomainOwnerRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface CanChangeDomainOwnerResponse {\n /** Whether the domain owner can be changed. */\n canChangeOwner?: boolean;\n}\n\nexport interface GetMxRecordsRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface GetMxRecordsResponse {\n /**\n * MX records for the domain.\n * Domain can be either registered or connected.\n * The list will be empty if no MX records are found in the public DNS.\n */\n mxRecords?: MxRecord[];\n}\n\nexport interface MxRecord {\n /**\n * DNS record values. Wix limits DNS records to 50 values per type. External\n * providers may support a different maximum number of DNS records for a\n * specific type, Wix doesn't validate that you don't exceed these external\n * limits.\n *\n * Max: 50 records\n * @minSize 1\n * @maxSize 50\n * @maxLength 1000\n */\n values?: string[];\n}\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param connectedDomainId - ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @public\n * @requiredField connectedDomainId\n * @permissionId DOMAINS.READ_CONNECTED_DOMAINS\n * @returns Retrieved setup information.\n * @fqn com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo\n */\nexport async function getConnectedDomainSetupInfo(\n connectedDomainId: string\n): Promise<\n NonNullablePaths<\n ConnectedDomainSetupInfo,\n | `nameserverRecord.nsRecord.hostName`\n | `nameserverRecord.nsRecord.ttl`\n | `nameserverRecord.nsRecord.values`\n | `pointingRecords.aRecord.hostName`\n | `pointingRecords.aRecord.ttl`\n | `pointingRecords.aRecord.values`\n | `pointingRecords.cnameRecord.hostName`\n | `pointingRecords.cnameRecord.ttl`\n | `pointingRecords.cnameRecord.value`\n | `subdomainRecords.cnameRecords`\n | `connectedDomainId`\n | `registrar.nameServers`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectedDomainId: connectedDomainId,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo.getConnectedDomainSetupInfo(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.connectedDomainSetupInfo!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { connectedDomainId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['connectedDomainId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","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 resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/v1/mx-records',\n destPath: '/v1/mx-records',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_connected-domain-setup-info';\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function getConnectedDomainSetupInfo(\n payload: object\n): RequestOptionsFactory<any> {\n function __getConnectedDomainSetupInfo({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.connected_domain_setup_info',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n {\n protoPath: '/v1/connected-domain-setup-info/{connectedDomainId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getConnectedDomainSetupInfo;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n ConnectedDomainSetupInfo,\n getConnectedDomainSetupInfo as universalGetConnectedDomainSetupInfo,\n} from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/domains' };\n\nexport function getConnectedDomainSetupInfo(\n httpClient: HttpClient\n): GetConnectedDomainSetupInfoSignature {\n return (connectedDomainId: string) =>\n universalGetConnectedDomainSetupInfo(\n connectedDomainId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetConnectedDomainSetupInfoSignature {\n /**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param - ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @returns Retrieved setup information.\n */\n (connectedDomainId: string): Promise<\n NonNullablePaths<\n ConnectedDomainSetupInfo,\n | `nameserverRecord.nsRecord.hostName`\n | `nameserverRecord.nsRecord.ttl`\n | `nameserverRecord.nsRecord.values`\n | `pointingRecords.aRecord.hostName`\n | `pointingRecords.aRecord.ttl`\n | `pointingRecords.aRecord.values`\n | `pointingRecords.cnameRecord.hostName`\n | `pointingRecords.cnameRecord.ttl`\n | `pointingRecords.cnameRecord.value`\n | `subdomainRecords.cnameRecords`\n | `connectedDomainId`\n | `registrar.nameServers`,\n 2\n >\n >;\n}\n\nexport {\n ARecord,\n CanChangeDomainOwnerRequest,\n CanChangeDomainOwnerResponse,\n CnameRecord,\n ConnectedDomainSetupInfo,\n ConnectedDomainSetupInfoDnsRecordsOneOf,\n ConnectionType,\n GetConnectedDomainSetupInfoRequest,\n GetConnectedDomainSetupInfoResponse,\n GetMxRecordsRequest,\n GetMxRecordsResponse,\n GetSetupInfoRequest,\n GetSetupInfoResponse,\n MxRecord,\n NameserverRecord,\n NsRecord,\n PointingRecords,\n PreCreateConnectedDomainRequest,\n PreCreateConnectedDomainResponse,\n Registrar,\n SubdomainRecords,\n} from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\n","import { getConnectedDomainSetupInfo as publicGetConnectedDomainSetupInfo } from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getConnectedDomainSetupInfo: MaybeContext<\n BuildRESTFunction<typeof publicGetConnectedDomainSetupInfo> &\n typeof publicGetConnectedDomainSetupInfo\n> = /*#__PURE__*/ createRESTModule(publicGetConnectedDomainSetupInfo);\n\nexport { ConnectionType } from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\nexport {\n ConnectedDomainSetupInfo,\n ConnectedDomainSetupInfoDnsRecordsOneOf,\n Registrar,\n NameserverRecord,\n NsRecord,\n PointingRecords,\n ARecord,\n CnameRecord,\n SubdomainRecords,\n GetConnectedDomainSetupInfoRequest,\n GetConnectedDomainSetupInfoResponse,\n GetSetupInfoRequest,\n GetSetupInfoResponse,\n PreCreateConnectedDomainRequest,\n PreCreateConnectedDomainResponse,\n CanChangeDomainOwnerRequest,\n CanChangeDomainOwnerResponse,\n GetMxRecordsRequest,\n GetMxRecordsResponse,\n MxRecord,\n} from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\nexport { ConnectionTypeWithLiterals } from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,2EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACn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EACT;AAEA,SAAO;AACT;;;AD6CO,IAAK,iBAAL,kBAAKA,oBAAL;AAEL,EAAAA,gBAAA,cAAW;AAEX,EAAAA,gBAAA,iBAAc;AAEd,EAAAA,gBAAA,YAAS;AANC,SAAAA;AAAA,GAAA;AA2FZ,eAAsBC,6BACpB,mBAkBA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,QAAM,UACkD;AAAA,IACpD;AAAA,EACF;AAEF,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI,GACtD;AAAA,EACN,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,mBAAmB,OAAO;AAAA,QACtD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,mBAAmB;AAAA,IACtB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE3UO,SAASC,6BACd,YACsC;AACtC,SAAO,CAAC,sBACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AChBA,SAAS,wBAAwB;AAG1B,IAAMC,+BAGK,iCAAiBA,4BAAiC;","names":["ConnectionType","getConnectedDomainSetupInfo","getConnectedDomainSetupInfo","getConnectedDomainSetupInfo"]}
1
+ {"version":3,"sources":["../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js';\n\n/**\n * A `connectedDomainSetupInfo` object holds information the connected domain's\n * external registrar and some DNS records. You can use this information to guide\n * the site owner through the domain's setup process.\n */\nexport interface ConnectedDomainSetupInfo\n extends ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n /**\n * ID of the connected domain. Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId?: string;\n /**\n * Information about the external domain registrar including current name\n * servers.\n */\n registrar?: Registrar;\n}\n\n/** @oneof */\nexport interface ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n}\n\nexport interface Registrar {\n /**\n * Name of the external domain registrar. For subdomains it's the registrar of the root domain.\n * @readonly\n */\n name?: string | null;\n /**\n * Values of the current name server records. In case you connect an external\n * domain using name servers, site owners must replace these current name servers\n * with the new name servers found in `connectedDomainSetupInfo.nameserverRecord.nsRecord.values`\n * during the initial domain setup.\n * The replacement can't be performed through Wix APIs, you must use the\n * infrastructure of the external domain registrar. Read more about\n * [connecting domains using nameservers](https://dev.wix.com/api/rest/account-level-apis/connected-domains/sample-flows#account-level-apis_connected-domains_sample-flows_connect-an-external-domain-using-nameservers).\n * @readonly\n */\n nameServers?: string[];\n}\n\n/** Information about domains connected by nameservers. */\nexport interface NameserverRecord {\n /**\n * Default [nameserver record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#NS).\n * @readonly\n */\n nsRecord?: NsRecord;\n}\n\nexport interface NsRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\n/** Information about domains connected by pointing. */\nexport interface PointingRecords {\n /**\n * [Address record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#A).\n * @readonly\n */\n aRecord?: ARecord;\n /**\n * [Canonical Name record](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n */\n cnameRecord?: CnameRecord;\n}\n\nexport interface ARecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\nexport interface CnameRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /** DNS record value. */\n value?: string;\n}\n\n/** Information about subdomains. */\nexport interface SubdomainRecords {\n /**\n * [Canonical Name records](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n * @maxSize 2\n */\n cnameRecords?: CnameRecord[];\n}\n\nexport interface GetSetupInfoRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * How the domain should be to connected the Wix site.\n *\n * + `\"UNKNOWN_CONNECTION_TYPE\"`: supported only for subdomain.\n * + `\"POINTING\"`: Get domain or subdomain setup by pointing\n * + `\"NAMESERVERS\"`: Get domain setup by nameservers\n * + `\"HIDDEN\"`: supported only for subdomain.\n */\n connectionType?: ConnectionTypeWithLiterals;\n /** Whether to return registrar information or not. Default is false. */\n includeRegistrar?: boolean;\n}\n\nexport enum ConnectionType {\n /** The domain is connected by pointing. Wix doesn't manage DNS information. */\n POINTING = 'POINTING',\n /** The domain is connected by nameservers. Wix manages DNS information. */\n NAMESERVERS = 'NAMESERVERS',\n /** The domain isn't visible to site visitors. */\n HIDDEN = 'HIDDEN',\n}\n\n/** @enumType */\nexport type ConnectionTypeWithLiterals =\n | ConnectionType\n | 'POINTING'\n | 'NAMESERVERS'\n | 'HIDDEN';\n\nexport interface GetSetupInfoResponse {\n /** Retrieved setup information. */\n domainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\nexport interface PreCreateConnectedDomainRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface PreCreateConnectedDomainResponse {}\n\nexport interface CanChangeDomainOwnerRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface CanChangeDomainOwnerResponse {\n /** Whether the domain owner can be changed. */\n canChangeOwner?: boolean;\n}\n\nexport interface GetMxRecordsRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface GetMxRecordsResponse {\n /**\n * MX records for the domain.\n * Domain can be either registered or connected.\n * The list will be empty if no MX records are found in the public DNS.\n */\n mxRecords?: MxRecord[];\n}\n\nexport interface MxRecord {\n /**\n * DNS record values. Wix limits DNS records to 50 values per type. External\n * providers may support a different maximum number of DNS records for a\n * specific type, Wix doesn't validate that you don't exceed these external\n * limits.\n *\n * Max: 50 records\n * @minSize 1\n * @maxSize 50\n * @maxLength 1000\n */\n values?: string[];\n}\n\nexport interface GetConnectedDomainSetupInfoRequest {\n /**\n * ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId: string;\n}\n\nexport interface GetConnectedDomainSetupInfoResponse {\n /** Retrieved setup information. */\n connectedDomainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param connectedDomainId - ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @public\n * @requiredField connectedDomainId\n * @permissionId DOMAINS.READ_CONNECTED_DOMAINS\n * @returns Retrieved setup information.\n * @fqn com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo\n */\nexport async function getConnectedDomainSetupInfo(\n connectedDomainId: string\n): Promise<\n NonNullablePaths<\n ConnectedDomainSetupInfo,\n | `nameserverRecord.nsRecord.hostName`\n | `nameserverRecord.nsRecord.ttl`\n | `nameserverRecord.nsRecord.values`\n | `pointingRecords.aRecord.hostName`\n | `pointingRecords.aRecord.ttl`\n | `pointingRecords.aRecord.values`\n | `pointingRecords.cnameRecord.hostName`\n | `pointingRecords.cnameRecord.ttl`\n | `pointingRecords.cnameRecord.value`\n | `subdomainRecords.cnameRecords`\n | `connectedDomainId`\n | `registrar.nameServers`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectedDomainId: connectedDomainId,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo.getConnectedDomainSetupInfo(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.connectedDomainSetupInfo!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { connectedDomainId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['connectedDomainId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","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 resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/v1/mx-records',\n destPath: '/v1/mx-records',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_connected-domain-setup-info';\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function getConnectedDomainSetupInfo(\n payload: object\n): RequestOptionsFactory<any> {\n function __getConnectedDomainSetupInfo({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.connected_domain_setup_info',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n {\n protoPath: '/v1/connected-domain-setup-info/{connectedDomainId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getConnectedDomainSetupInfo;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n ConnectedDomainSetupInfo,\n getConnectedDomainSetupInfo as universalGetConnectedDomainSetupInfo,\n} from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/domains' };\n\nexport function getConnectedDomainSetupInfo(\n httpClient: HttpClient\n): GetConnectedDomainSetupInfoSignature {\n return (connectedDomainId: string) =>\n universalGetConnectedDomainSetupInfo(\n connectedDomainId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetConnectedDomainSetupInfoSignature {\n /**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param - ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @returns Retrieved setup information.\n */\n (connectedDomainId: string): Promise<\n NonNullablePaths<\n ConnectedDomainSetupInfo,\n | `nameserverRecord.nsRecord.hostName`\n | `nameserverRecord.nsRecord.ttl`\n | `nameserverRecord.nsRecord.values`\n | `pointingRecords.aRecord.hostName`\n | `pointingRecords.aRecord.ttl`\n | `pointingRecords.aRecord.values`\n | `pointingRecords.cnameRecord.hostName`\n | `pointingRecords.cnameRecord.ttl`\n | `pointingRecords.cnameRecord.value`\n | `subdomainRecords.cnameRecords`\n | `connectedDomainId`\n | `registrar.nameServers`,\n 2\n >\n >;\n}\n\nexport {\n ARecord,\n CanChangeDomainOwnerRequest,\n CanChangeDomainOwnerResponse,\n CnameRecord,\n ConnectedDomainSetupInfo,\n ConnectedDomainSetupInfoDnsRecordsOneOf,\n ConnectionType,\n GetConnectedDomainSetupInfoRequest,\n GetConnectedDomainSetupInfoResponse,\n GetMxRecordsRequest,\n GetMxRecordsResponse,\n GetSetupInfoRequest,\n GetSetupInfoResponse,\n MxRecord,\n NameserverRecord,\n NsRecord,\n PointingRecords,\n PreCreateConnectedDomainRequest,\n PreCreateConnectedDomainResponse,\n Registrar,\n SubdomainRecords,\n} from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\n","import { getConnectedDomainSetupInfo as publicGetConnectedDomainSetupInfo } from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getConnectedDomainSetupInfo: MaybeContext<\n BuildRESTFunction<typeof publicGetConnectedDomainSetupInfo> &\n typeof publicGetConnectedDomainSetupInfo\n> = /*#__PURE__*/ createRESTModule(publicGetConnectedDomainSetupInfo);\n\nexport { ConnectionType } from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\nexport {\n ConnectedDomainSetupInfo,\n ConnectedDomainSetupInfoDnsRecordsOneOf,\n Registrar,\n NameserverRecord,\n NsRecord,\n PointingRecords,\n ARecord,\n CnameRecord,\n SubdomainRecords,\n GetSetupInfoRequest,\n GetSetupInfoResponse,\n PreCreateConnectedDomainRequest,\n PreCreateConnectedDomainResponse,\n CanChangeDomainOwnerRequest,\n CanChangeDomainOwnerResponse,\n GetMxRecordsRequest,\n GetMxRecordsResponse,\n MxRecord,\n GetConnectedDomainSetupInfoRequest,\n GetConnectedDomainSetupInfoResponse,\n} from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\nexport { ConnectionTypeWithLiterals } from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,2EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;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,mBAAmB;AAAA,IACtB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE3UO,SAASC,6BACd,YACsC;AACtC,SAAO,CAAC,sBACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AChBA,SAAS,wBAAwB;AAG1B,IAAMC,+BAGK,iCAAiBA,4BAAiC;","names":["ConnectionType","getConnectedDomainSetupInfo","getConnectedDomainSetupInfo","getConnectedDomainSetupInfo"]}
@@ -141,18 +141,6 @@ interface SubdomainRecords {
141
141
  */
142
142
  cnameRecords?: CnameRecord[];
143
143
  }
144
- interface GetConnectedDomainSetupInfoRequest {
145
- /**
146
- * ID of the connected domain to retrieve setup information for.
147
- * Identical to the domain name including TLD.
148
- * @format HOSTNAME
149
- */
150
- connectedDomainId: string;
151
- }
152
- interface GetConnectedDomainSetupInfoResponse {
153
- /** Retrieved setup information. */
154
- connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
155
- }
156
144
  interface GetSetupInfoRequest {
157
145
  /**
158
146
  * Domain name including TLD
@@ -234,6 +222,18 @@ interface MxRecord {
234
222
  */
235
223
  values?: string[];
236
224
  }
225
+ interface GetConnectedDomainSetupInfoRequest {
226
+ /**
227
+ * ID of the connected domain to retrieve setup information for.
228
+ * Identical to the domain name including TLD.
229
+ * @format HOSTNAME
230
+ */
231
+ connectedDomainId: string;
232
+ }
233
+ interface GetConnectedDomainSetupInfoResponse {
234
+ /** Retrieved setup information. */
235
+ connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
236
+ }
237
237
  /**
238
238
  * Retrieves information for the initial setup of a connected domain.
239
239
  *
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js';\n\n/**\n * A `connectedDomainSetupInfo` object holds information the connected domain's\n * external registrar and some DNS records. You can use this information to guide\n * the site owner through the domain's setup process.\n */\nexport interface ConnectedDomainSetupInfo\n extends ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n /**\n * ID of the connected domain. Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId?: string;\n /**\n * Information about the external domain registrar including current name\n * servers.\n */\n registrar?: Registrar;\n}\n\n/** @oneof */\nexport interface ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n}\n\nexport interface Registrar {\n /**\n * Name of the external domain registrar. For subdomains it's the registrar of the root domain.\n * @readonly\n */\n name?: string | null;\n /**\n * Values of the current name server records. In case you connect an external\n * domain using name servers, site owners must replace these current name servers\n * with the new name servers found in `connectedDomainSetupInfo.nameserverRecord.nsRecord.values`\n * during the initial domain setup.\n * The replacement can't be performed through Wix APIs, you must use the\n * infrastructure of the external domain registrar. Read more about\n * [connecting domains using nameservers](https://dev.wix.com/api/rest/account-level-apis/connected-domains/sample-flows#account-level-apis_connected-domains_sample-flows_connect-an-external-domain-using-nameservers).\n * @readonly\n */\n nameServers?: string[];\n}\n\n/** Information about domains connected by nameservers. */\nexport interface NameserverRecord {\n /**\n * Default [nameserver record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#NS).\n * @readonly\n */\n nsRecord?: NsRecord;\n}\n\nexport interface NsRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\n/** Information about domains connected by pointing. */\nexport interface PointingRecords {\n /**\n * [Address record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#A).\n * @readonly\n */\n aRecord?: ARecord;\n /**\n * [Canonical Name record](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n */\n cnameRecord?: CnameRecord;\n}\n\nexport interface ARecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\nexport interface CnameRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /** DNS record value. */\n value?: string;\n}\n\n/** Information about subdomains. */\nexport interface SubdomainRecords {\n /**\n * [Canonical Name records](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n * @maxSize 2\n */\n cnameRecords?: CnameRecord[];\n}\n\nexport interface GetConnectedDomainSetupInfoRequest {\n /**\n * ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId: string;\n}\n\nexport interface GetConnectedDomainSetupInfoResponse {\n /** Retrieved setup information. */\n connectedDomainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\nexport interface GetSetupInfoRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * How the domain should be to connected the Wix site.\n *\n * + `\"UNKNOWN_CONNECTION_TYPE\"`: supported only for subdomain.\n * + `\"POINTING\"`: Get domain or subdomain setup by pointing\n * + `\"NAMESERVERS\"`: Get domain setup by nameservers\n * + `\"HIDDEN\"`: supported only for subdomain.\n */\n connectionType?: ConnectionTypeWithLiterals;\n /** Whether to return registrar information or not. Default is false. */\n includeRegistrar?: boolean;\n}\n\nexport enum ConnectionType {\n /** The domain is connected by pointing. Wix doesn't manage DNS information. */\n POINTING = 'POINTING',\n /** The domain is connected by nameservers. Wix manages DNS information. */\n NAMESERVERS = 'NAMESERVERS',\n /** The domain isn't visible to site visitors. */\n HIDDEN = 'HIDDEN',\n}\n\n/** @enumType */\nexport type ConnectionTypeWithLiterals =\n | ConnectionType\n | 'POINTING'\n | 'NAMESERVERS'\n | 'HIDDEN';\n\nexport interface GetSetupInfoResponse {\n /** Retrieved setup information. */\n domainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\nexport interface PreCreateConnectedDomainRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface PreCreateConnectedDomainResponse {}\n\nexport interface CanChangeDomainOwnerRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface CanChangeDomainOwnerResponse {\n /** Whether the domain owner can be changed. */\n canChangeOwner?: boolean;\n}\n\nexport interface GetMxRecordsRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface GetMxRecordsResponse {\n /**\n * MX records for the domain.\n * Domain can be either registered or connected.\n * The list will be empty if no MX records are found in the public DNS.\n */\n mxRecords?: MxRecord[];\n}\n\nexport interface MxRecord {\n /**\n * DNS record values. Wix limits DNS records to 50 values per type. External\n * providers may support a different maximum number of DNS records for a\n * specific type, Wix doesn't validate that you don't exceed these external\n * limits.\n *\n * Max: 50 records\n * @minSize 1\n * @maxSize 50\n * @maxLength 1000\n */\n values?: string[];\n}\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param connectedDomainId - ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @public\n * @requiredField connectedDomainId\n * @permissionId DOMAINS.READ_CONNECTED_DOMAINS\n * @returns Retrieved setup information.\n * @fqn com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo\n */\nexport async function getConnectedDomainSetupInfo(\n connectedDomainId: string\n): Promise<\n NonNullablePaths<\n ConnectedDomainSetupInfo,\n | `nameserverRecord.nsRecord.hostName`\n | `nameserverRecord.nsRecord.ttl`\n | `nameserverRecord.nsRecord.values`\n | `pointingRecords.aRecord.hostName`\n | `pointingRecords.aRecord.ttl`\n | `pointingRecords.aRecord.values`\n | `pointingRecords.cnameRecord.hostName`\n | `pointingRecords.cnameRecord.ttl`\n | `pointingRecords.cnameRecord.value`\n | `subdomainRecords.cnameRecords`\n | `connectedDomainId`\n | `registrar.nameServers`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectedDomainId: connectedDomainId,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo.getConnectedDomainSetupInfo(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.connectedDomainSetupInfo!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { connectedDomainId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['connectedDomainId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","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 resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/v1/mx-records',\n destPath: '/v1/mx-records',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_connected-domain-setup-info';\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function getConnectedDomainSetupInfo(\n payload: object\n): RequestOptionsFactory<any> {\n function __getConnectedDomainSetupInfo({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.connected_domain_setup_info',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n {\n protoPath: '/v1/connected-domain-setup-info/{connectedDomainId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getConnectedDomainSetupInfo;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,2EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA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OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI,GACtD;AAAA,EACN,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,mBAAmB,OAAO;AAAA,QACtD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,mBAAmB;AAAA,IACtB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["ConnectionType","getConnectedDomainSetupInfo"]}
1
+ {"version":3,"sources":["../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js';\n\n/**\n * A `connectedDomainSetupInfo` object holds information the connected domain's\n * external registrar and some DNS records. You can use this information to guide\n * the site owner through the domain's setup process.\n */\nexport interface ConnectedDomainSetupInfo\n extends ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n /**\n * ID of the connected domain. Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId?: string;\n /**\n * Information about the external domain registrar including current name\n * servers.\n */\n registrar?: Registrar;\n}\n\n/** @oneof */\nexport interface ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n}\n\nexport interface Registrar {\n /**\n * Name of the external domain registrar. For subdomains it's the registrar of the root domain.\n * @readonly\n */\n name?: string | null;\n /**\n * Values of the current name server records. In case you connect an external\n * domain using name servers, site owners must replace these current name servers\n * with the new name servers found in `connectedDomainSetupInfo.nameserverRecord.nsRecord.values`\n * during the initial domain setup.\n * The replacement can't be performed through Wix APIs, you must use the\n * infrastructure of the external domain registrar. Read more about\n * [connecting domains using nameservers](https://dev.wix.com/api/rest/account-level-apis/connected-domains/sample-flows#account-level-apis_connected-domains_sample-flows_connect-an-external-domain-using-nameservers).\n * @readonly\n */\n nameServers?: string[];\n}\n\n/** Information about domains connected by nameservers. */\nexport interface NameserverRecord {\n /**\n * Default [nameserver record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#NS).\n * @readonly\n */\n nsRecord?: NsRecord;\n}\n\nexport interface NsRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\n/** Information about domains connected by pointing. */\nexport interface PointingRecords {\n /**\n * [Address record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#A).\n * @readonly\n */\n aRecord?: ARecord;\n /**\n * [Canonical Name record](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n */\n cnameRecord?: CnameRecord;\n}\n\nexport interface ARecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\nexport interface CnameRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /** DNS record value. */\n value?: string;\n}\n\n/** Information about subdomains. */\nexport interface SubdomainRecords {\n /**\n * [Canonical Name records](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n * @maxSize 2\n */\n cnameRecords?: CnameRecord[];\n}\n\nexport interface GetSetupInfoRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * How the domain should be to connected the Wix site.\n *\n * + `\"UNKNOWN_CONNECTION_TYPE\"`: supported only for subdomain.\n * + `\"POINTING\"`: Get domain or subdomain setup by pointing\n * + `\"NAMESERVERS\"`: Get domain setup by nameservers\n * + `\"HIDDEN\"`: supported only for subdomain.\n */\n connectionType?: ConnectionTypeWithLiterals;\n /** Whether to return registrar information or not. Default is false. */\n includeRegistrar?: boolean;\n}\n\nexport enum ConnectionType {\n /** The domain is connected by pointing. Wix doesn't manage DNS information. */\n POINTING = 'POINTING',\n /** The domain is connected by nameservers. Wix manages DNS information. */\n NAMESERVERS = 'NAMESERVERS',\n /** The domain isn't visible to site visitors. */\n HIDDEN = 'HIDDEN',\n}\n\n/** @enumType */\nexport type ConnectionTypeWithLiterals =\n | ConnectionType\n | 'POINTING'\n | 'NAMESERVERS'\n | 'HIDDEN';\n\nexport interface GetSetupInfoResponse {\n /** Retrieved setup information. */\n domainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\nexport interface PreCreateConnectedDomainRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface PreCreateConnectedDomainResponse {}\n\nexport interface CanChangeDomainOwnerRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface CanChangeDomainOwnerResponse {\n /** Whether the domain owner can be changed. */\n canChangeOwner?: boolean;\n}\n\nexport interface GetMxRecordsRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface GetMxRecordsResponse {\n /**\n * MX records for the domain.\n * Domain can be either registered or connected.\n * The list will be empty if no MX records are found in the public DNS.\n */\n mxRecords?: MxRecord[];\n}\n\nexport interface MxRecord {\n /**\n * DNS record values. Wix limits DNS records to 50 values per type. External\n * providers may support a different maximum number of DNS records for a\n * specific type, Wix doesn't validate that you don't exceed these external\n * limits.\n *\n * Max: 50 records\n * @minSize 1\n * @maxSize 50\n * @maxLength 1000\n */\n values?: string[];\n}\n\nexport interface GetConnectedDomainSetupInfoRequest {\n /**\n * ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId: string;\n}\n\nexport interface GetConnectedDomainSetupInfoResponse {\n /** Retrieved setup information. */\n connectedDomainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param connectedDomainId - ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @public\n * @requiredField connectedDomainId\n * @permissionId DOMAINS.READ_CONNECTED_DOMAINS\n * @returns Retrieved setup information.\n * @fqn com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo\n */\nexport async function getConnectedDomainSetupInfo(\n connectedDomainId: string\n): Promise<\n NonNullablePaths<\n ConnectedDomainSetupInfo,\n | `nameserverRecord.nsRecord.hostName`\n | `nameserverRecord.nsRecord.ttl`\n | `nameserverRecord.nsRecord.values`\n | `pointingRecords.aRecord.hostName`\n | `pointingRecords.aRecord.ttl`\n | `pointingRecords.aRecord.values`\n | `pointingRecords.cnameRecord.hostName`\n | `pointingRecords.cnameRecord.ttl`\n | `pointingRecords.cnameRecord.value`\n | `subdomainRecords.cnameRecords`\n | `connectedDomainId`\n | `registrar.nameServers`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectedDomainId: connectedDomainId,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo.getConnectedDomainSetupInfo(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.connectedDomainSetupInfo!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { connectedDomainId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['connectedDomainId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","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 resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/v1/mx-records',\n destPath: '/v1/mx-records',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_connected-domain-setup-info';\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function getConnectedDomainSetupInfo(\n payload: object\n): RequestOptionsFactory<any> {\n function __getConnectedDomainSetupInfo({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.connected_domain_setup_info',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n {\n protoPath: '/v1/connected-domain-setup-info/{connectedDomainId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getConnectedDomainSetupInfo;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,2EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,M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KAAK;AAAA,QACH;AAAA,UACE,WAAW;AAAA,UACX,MAAM;AAAA,UACN;AAAA,QACF;AAAA,MACF;AAAA,MACA,QAAQ,kBAAkB,OAAO;AAAA,IACnC;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;AD+BO,IAAK,iBAAL,kBAAKA,oBAAL;AAEL,EAAAA,gBAAA,cAAW;AAEX,EAAAA,gBAAA,iBAAc;AAEd,EAAAA,gBAAA,YAAS;AANC,SAAAA;AAAA,GAAA;AAyGZ,eAAsBC,6BACpB,mBAkBA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,QAAM,UACkD;AAAA,IACpD;AAAA,EACF;AAEF,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI,GACtD;AAAA,EACN,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,mBAAmB,OAAO;AAAA,QACtD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,mBAAmB;AAAA,IACtB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["ConnectionType","getConnectedDomainSetupInfo"]}
@@ -142,18 +142,6 @@ interface SubdomainRecords {
142
142
  */
143
143
  cnameRecords?: CnameRecord[];
144
144
  }
145
- interface GetConnectedDomainSetupInfoRequest {
146
- /**
147
- * ID of the connected domain to retrieve setup information for.
148
- * Identical to the domain name including TLD.
149
- * @format HOSTNAME
150
- */
151
- connectedDomainId: string;
152
- }
153
- interface GetConnectedDomainSetupInfoResponse {
154
- /** Retrieved setup information. */
155
- connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
156
- }
157
145
  interface GetSetupInfoRequest {
158
146
  /**
159
147
  * Domain name including TLD
@@ -235,6 +223,18 @@ interface MxRecord {
235
223
  */
236
224
  values?: string[];
237
225
  }
226
+ interface GetConnectedDomainSetupInfoRequest {
227
+ /**
228
+ * ID of the connected domain to retrieve setup information for.
229
+ * Identical to the domain name including TLD.
230
+ * @format HOSTNAME
231
+ */
232
+ connectedDomainId: string;
233
+ }
234
+ interface GetConnectedDomainSetupInfoResponse {
235
+ /** Retrieved setup information. */
236
+ connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
237
+ }
238
238
 
239
239
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
240
240
  getUrl: (context: any) => string;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.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 resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/v1/mx-records',\n destPath: '/v1/mx-records',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_connected-domain-setup-info';\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function getConnectedDomainSetupInfo(\n payload: object\n): RequestOptionsFactory<any> {\n function __getConnectedDomainSetupInfo({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.connected_domain_setup_info',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n {\n protoPath: '/v1/connected-domain-setup-info/{connectedDomainId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getConnectedDomainSetupInfo;\n}\n","/**\n * A `connectedDomainSetupInfo` object holds information the connected domain's\n * external registrar and some DNS records. You can use this information to guide\n * the site owner through the domain's setup process.\n */\nexport interface ConnectedDomainSetupInfo\n extends ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n /**\n * ID of the connected domain. Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId?: string;\n /**\n * Information about the external domain registrar including current name\n * servers.\n */\n registrar?: Registrar;\n}\n\n/** @oneof */\nexport interface ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n}\n\nexport interface Registrar {\n /**\n * Name of the external domain registrar. For subdomains it's the registrar of the root domain.\n * @readonly\n */\n name?: string | null;\n /**\n * Values of the current name server records. In case you connect an external\n * domain using name servers, site owners must replace these current name servers\n * with the new name servers found in `connectedDomainSetupInfo.nameserverRecord.nsRecord.values`\n * during the initial domain setup.\n * The replacement can't be performed through Wix APIs, you must use the\n * infrastructure of the external domain registrar. Read more about\n * [connecting domains using nameservers](https://dev.wix.com/api/rest/account-level-apis/connected-domains/sample-flows#account-level-apis_connected-domains_sample-flows_connect-an-external-domain-using-nameservers).\n * @readonly\n */\n nameServers?: string[];\n}\n\n/** Information about domains connected by nameservers. */\nexport interface NameserverRecord {\n /**\n * Default [nameserver record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#NS).\n * @readonly\n */\n nsRecord?: NsRecord;\n}\n\nexport interface NsRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\n/** Information about domains connected by pointing. */\nexport interface PointingRecords {\n /**\n * [Address record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#A).\n * @readonly\n */\n aRecord?: ARecord;\n /**\n * [Canonical Name record](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n */\n cnameRecord?: CnameRecord;\n}\n\nexport interface ARecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\nexport interface CnameRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /** DNS record value. */\n value?: string;\n}\n\n/** Information about subdomains. */\nexport interface SubdomainRecords {\n /**\n * [Canonical Name records](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n * @maxSize 2\n */\n cnameRecords?: CnameRecord[];\n}\n\nexport interface GetConnectedDomainSetupInfoRequest {\n /**\n * ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId: string;\n}\n\nexport interface GetConnectedDomainSetupInfoResponse {\n /** Retrieved setup information. */\n connectedDomainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\nexport interface GetSetupInfoRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * How the domain should be to connected the Wix site.\n *\n * + `\"UNKNOWN_CONNECTION_TYPE\"`: supported only for subdomain.\n * + `\"POINTING\"`: Get domain or subdomain setup by pointing\n * + `\"NAMESERVERS\"`: Get domain setup by nameservers\n * + `\"HIDDEN\"`: supported only for subdomain.\n */\n connectionType?: ConnectionTypeWithLiterals;\n /** Whether to return registrar information or not. Default is false. */\n includeRegistrar?: boolean;\n}\n\nexport enum ConnectionType {\n /** The domain is connected by pointing. Wix doesn't manage DNS information. */\n POINTING = 'POINTING',\n /** The domain is connected by nameservers. Wix manages DNS information. */\n NAMESERVERS = 'NAMESERVERS',\n /** The domain isn't visible to site visitors. */\n HIDDEN = 'HIDDEN',\n}\n\n/** @enumType */\nexport type ConnectionTypeWithLiterals =\n | ConnectionType\n | 'POINTING'\n | 'NAMESERVERS'\n | 'HIDDEN';\n\nexport interface GetSetupInfoResponse {\n /** Retrieved setup information. */\n domainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\nexport interface PreCreateConnectedDomainRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface PreCreateConnectedDomainResponse {}\n\nexport interface CanChangeDomainOwnerRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface CanChangeDomainOwnerResponse {\n /** Whether the domain owner can be changed. */\n canChangeOwner?: boolean;\n}\n\nexport interface GetMxRecordsRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface GetMxRecordsResponse {\n /**\n * MX records for the domain.\n * Domain can be either registered or connected.\n * The list will be empty if no MX records are found in the public DNS.\n */\n mxRecords?: MxRecord[];\n}\n\nexport interface MxRecord {\n /**\n * DNS record values. Wix limits DNS records to 50 values per type. External\n * providers may support a different maximum number of DNS records for a\n * specific type, Wix doesn't validate that you don't exceed these external\n * limits.\n *\n * Max: 50 records\n * @minSize 1\n * @maxSize 50\n * @maxLength 1000\n */\n values?: string[];\n}\n","import * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js';\nimport * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoTypes from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.js';\nimport * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoUniversalTypes from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.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 getConnectedDomainSetupInfo(): __PublicMethodMetaInfo<\n 'GET',\n { connectedDomainId: string },\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoUniversalTypes.GetConnectedDomainSetupInfoRequest,\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoTypes.GetConnectedDomainSetupInfoRequest,\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoUniversalTypes.GetConnectedDomainSetupInfoResponse,\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoTypes.GetConnectedDomainSetupInfoResponse\n> {\n const payload = { connectedDomainId: ':connectedDomainId' } as any;\n\n const getRequestOptions =\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo.getConnectedDomainSetupInfo(\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/connected-domain-setup-info/{connectedDomainId}',\n pathParams: { connectedDomainId: 'connectedDomainId' },\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 ConnectedDomainSetupInfo as ConnectedDomainSetupInfoOriginal,\n ConnectedDomainSetupInfoDnsRecordsOneOf as ConnectedDomainSetupInfoDnsRecordsOneOfOriginal,\n Registrar as RegistrarOriginal,\n NameserverRecord as NameserverRecordOriginal,\n NsRecord as NsRecordOriginal,\n PointingRecords as PointingRecordsOriginal,\n ARecord as ARecordOriginal,\n CnameRecord as CnameRecordOriginal,\n SubdomainRecords as SubdomainRecordsOriginal,\n GetConnectedDomainSetupInfoRequest as GetConnectedDomainSetupInfoRequestOriginal,\n GetConnectedDomainSetupInfoResponse as GetConnectedDomainSetupInfoResponseOriginal,\n GetSetupInfoRequest as GetSetupInfoRequestOriginal,\n ConnectionType as ConnectionTypeOriginal,\n ConnectionTypeWithLiterals as ConnectionTypeWithLiteralsOriginal,\n GetSetupInfoResponse as GetSetupInfoResponseOriginal,\n PreCreateConnectedDomainRequest as PreCreateConnectedDomainRequestOriginal,\n PreCreateConnectedDomainResponse as PreCreateConnectedDomainResponseOriginal,\n CanChangeDomainOwnerRequest as CanChangeDomainOwnerRequestOriginal,\n CanChangeDomainOwnerResponse as CanChangeDomainOwnerResponseOriginal,\n GetMxRecordsRequest as GetMxRecordsRequestOriginal,\n GetMxRecordsResponse as GetMxRecordsResponseOriginal,\n MxRecord as MxRecordOriginal,\n} from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,2EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SA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rD,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["ConnectionType","getConnectedDomainSetupInfo"]}
1
+ {"version":3,"sources":["../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.ts","../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.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 resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n {\n srcPath: '/v1/mx-records',\n destPath: '/v1/mx-records',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/v1/domain-setup-info',\n destPath: '/v1/domain-setup-info',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n {\n srcPath: '/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/connected-domains',\n destPath: '/v1/connected-domains',\n },\n {\n srcPath: '/premium/domains/v1/connected-domain-setup-info',\n destPath: '/v1/connected-domain-setup-info',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_connected-domain-setup-info';\n\n/**\n * Retrieves information for the initial setup of a connected domain.\n *\n *\n * You must pass the relevant Wix account ID in the header of the call.\n *\n * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function getConnectedDomainSetupInfo(\n payload: object\n): RequestOptionsFactory<any> {\n function __getConnectedDomainSetupInfo({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.connected_domain_setup_info',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoServiceUrl(\n {\n protoPath: '/v1/connected-domain-setup-info/{connectedDomainId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getConnectedDomainSetupInfo;\n}\n","/**\n * A `connectedDomainSetupInfo` object holds information the connected domain's\n * external registrar and some DNS records. You can use this information to guide\n * the site owner through the domain's setup process.\n */\nexport interface ConnectedDomainSetupInfo\n extends ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n /**\n * ID of the connected domain. Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId?: string;\n /**\n * Information about the external domain registrar including current name\n * servers.\n */\n registrar?: Registrar;\n}\n\n/** @oneof */\nexport interface ConnectedDomainSetupInfoDnsRecordsOneOf {\n /**\n * Information about domains connected using nameservers. Available only for\n * `{\"connectionType\": \"NAMESERVERS\"}`.\n */\n nameserverRecord?: NameserverRecord;\n /**\n * Information about domains connected by pointing. Available only for\n * `{\"connectionType\": \"POINTING\"}`.\n * @readonly\n */\n pointingRecords?: PointingRecords;\n /**\n * Information about subdomains. Available only for subdomains.\n * @readonly\n */\n subdomainRecords?: SubdomainRecords;\n}\n\nexport interface Registrar {\n /**\n * Name of the external domain registrar. For subdomains it's the registrar of the root domain.\n * @readonly\n */\n name?: string | null;\n /**\n * Values of the current name server records. In case you connect an external\n * domain using name servers, site owners must replace these current name servers\n * with the new name servers found in `connectedDomainSetupInfo.nameserverRecord.nsRecord.values`\n * during the initial domain setup.\n * The replacement can't be performed through Wix APIs, you must use the\n * infrastructure of the external domain registrar. Read more about\n * [connecting domains using nameservers](https://dev.wix.com/api/rest/account-level-apis/connected-domains/sample-flows#account-level-apis_connected-domains_sample-flows_connect-an-external-domain-using-nameservers).\n * @readonly\n */\n nameServers?: string[];\n}\n\n/** Information about domains connected by nameservers. */\nexport interface NameserverRecord {\n /**\n * Default [nameserver record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#NS).\n * @readonly\n */\n nsRecord?: NsRecord;\n}\n\nexport interface NsRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\n/** Information about domains connected by pointing. */\nexport interface PointingRecords {\n /**\n * [Address record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#A).\n * @readonly\n */\n aRecord?: ARecord;\n /**\n * [Canonical Name record](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n */\n cnameRecord?: CnameRecord;\n}\n\nexport interface ARecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /**\n * DNS record values.\n * @minSize 1\n * @maxSize 10\n */\n values?: string[];\n}\n\nexport interface CnameRecord {\n /**\n * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.\n * @format HOSTNAME\n */\n hostName?: string;\n /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */\n ttl?: number;\n /** DNS record value. */\n value?: string;\n}\n\n/** Information about subdomains. */\nexport interface SubdomainRecords {\n /**\n * [Canonical Name records](https://en.wikipedia.org/wiki/CNAME_record).\n * @readonly\n * @maxSize 2\n */\n cnameRecords?: CnameRecord[];\n}\n\nexport interface GetSetupInfoRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * How the domain should be to connected the Wix site.\n *\n * + `\"UNKNOWN_CONNECTION_TYPE\"`: supported only for subdomain.\n * + `\"POINTING\"`: Get domain or subdomain setup by pointing\n * + `\"NAMESERVERS\"`: Get domain setup by nameservers\n * + `\"HIDDEN\"`: supported only for subdomain.\n */\n connectionType?: ConnectionTypeWithLiterals;\n /** Whether to return registrar information or not. Default is false. */\n includeRegistrar?: boolean;\n}\n\nexport enum ConnectionType {\n /** The domain is connected by pointing. Wix doesn't manage DNS information. */\n POINTING = 'POINTING',\n /** The domain is connected by nameservers. Wix manages DNS information. */\n NAMESERVERS = 'NAMESERVERS',\n /** The domain isn't visible to site visitors. */\n HIDDEN = 'HIDDEN',\n}\n\n/** @enumType */\nexport type ConnectionTypeWithLiterals =\n | ConnectionType\n | 'POINTING'\n | 'NAMESERVERS'\n | 'HIDDEN';\n\nexport interface GetSetupInfoResponse {\n /** Retrieved setup information. */\n domainSetupInfo?: ConnectedDomainSetupInfo;\n}\n\nexport interface PreCreateConnectedDomainRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface PreCreateConnectedDomainResponse {}\n\nexport interface CanChangeDomainOwnerRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface CanChangeDomainOwnerResponse {\n /** Whether the domain owner can be changed. */\n canChangeOwner?: boolean;\n}\n\nexport interface GetMxRecordsRequest {\n /**\n * Domain name including TLD\n * @format HOSTNAME\n */\n domain?: string;\n}\n\nexport interface GetMxRecordsResponse {\n /**\n * MX records for the domain.\n * Domain can be either registered or connected.\n * The list will be empty if no MX records are found in the public DNS.\n */\n mxRecords?: MxRecord[];\n}\n\nexport interface MxRecord {\n /**\n * DNS record values. Wix limits DNS records to 50 values per type. External\n * providers may support a different maximum number of DNS records for a\n * specific type, Wix doesn't validate that you don't exceed these external\n * limits.\n *\n * Max: 50 records\n * @minSize 1\n * @maxSize 50\n * @maxLength 1000\n */\n values?: string[];\n}\n\nexport interface GetConnectedDomainSetupInfoRequest {\n /**\n * ID of the connected domain to retrieve setup information for.\n * Identical to the domain name including TLD.\n * @format HOSTNAME\n */\n connectedDomainId: string;\n}\n\nexport interface GetConnectedDomainSetupInfoResponse {\n /** Retrieved setup information. */\n connectedDomainSetupInfo?: ConnectedDomainSetupInfo;\n}\n","import * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js';\nimport * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoTypes from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.js';\nimport * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoUniversalTypes from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.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 getConnectedDomainSetupInfo(): __PublicMethodMetaInfo<\n 'GET',\n { connectedDomainId: string },\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoUniversalTypes.GetConnectedDomainSetupInfoRequest,\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoTypes.GetConnectedDomainSetupInfoRequest,\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoUniversalTypes.GetConnectedDomainSetupInfoResponse,\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfoTypes.GetConnectedDomainSetupInfoResponse\n> {\n const payload = { connectedDomainId: ':connectedDomainId' } as any;\n\n const getRequestOptions =\n ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo.getConnectedDomainSetupInfo(\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/connected-domain-setup-info/{connectedDomainId}',\n pathParams: { connectedDomainId: 'connectedDomainId' },\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 ConnectedDomainSetupInfo as ConnectedDomainSetupInfoOriginal,\n ConnectedDomainSetupInfoDnsRecordsOneOf as ConnectedDomainSetupInfoDnsRecordsOneOfOriginal,\n Registrar as RegistrarOriginal,\n NameserverRecord as NameserverRecordOriginal,\n NsRecord as NsRecordOriginal,\n PointingRecords as PointingRecordsOriginal,\n ARecord as ARecordOriginal,\n CnameRecord as CnameRecordOriginal,\n SubdomainRecords as SubdomainRecordsOriginal,\n GetSetupInfoRequest as GetSetupInfoRequestOriginal,\n ConnectionType as ConnectionTypeOriginal,\n ConnectionTypeWithLiterals as ConnectionTypeWithLiteralsOriginal,\n GetSetupInfoResponse as GetSetupInfoResponseOriginal,\n PreCreateConnectedDomainRequest as PreCreateConnectedDomainRequestOriginal,\n PreCreateConnectedDomainResponse as PreCreateConnectedDomainResponseOriginal,\n CanChangeDomainOwnerRequest as CanChangeDomainOwnerRequestOriginal,\n CanChangeDomainOwnerResponse as CanChangeDomainOwnerResponseOriginal,\n GetMxRecordsRequest as GetMxRecordsRequestOriginal,\n GetMxRecordsResponse as GetMxRecordsResponseOriginal,\n MxRecord as MxRecordOriginal,\n GetConnectedDomainSetupInfoRequest as GetConnectedDomainSetupInfoRequestOriginal,\n GetConnectedDomainSetupInfoResponse as GetConnectedDomainSetupInfoResponseOriginal,\n} from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,2EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;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O,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAUd,SAAS,4BACd,SAC4B;AAC5B,WAAS,8BAA8B,EAAE,KAAK,GAAQ;AACpD,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK;AAAA,QACH;AAAA,UACE,WAAW;AAAA,UACX,MAAM;AAAA,UACN;AAAA,QACF;AAAA,MACF;AAAA,MACA,QAAQ,kBAAkB,OAAO;AAAA,IACnC;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;ACuBO,IAAK,iBAAL,kBAAKA,oBAAL;AAEL,EAAAA,gBAAA,cAAW;AAEX,EAAAA,gBAAA,iBAAc;AAEd,EAAAA,gBAAA,YAAS;AANC,SAAAA;AAAA,GAAA;;;ACpJL,SAASC,+BAOd;AACA,QAAM,UAAU,EAAE,mBAAmB,qBAAqB;AAE1D,QAAM,oBACkD;AAAA,IACpD;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,mBAAmB,oBAAoB;AAAA,IACrD,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["ConnectionType","getConnectedDomainSetupInfo"]}
@@ -141,18 +141,6 @@ interface SubdomainRecords {
141
141
  */
142
142
  cnameRecords?: CnameRecord[];
143
143
  }
144
- interface GetConnectedDomainSetupInfoRequest {
145
- /**
146
- * ID of the connected domain to retrieve setup information for.
147
- * Identical to the domain name including TLD.
148
- * @format HOSTNAME
149
- */
150
- connectedDomainId: string;
151
- }
152
- interface GetConnectedDomainSetupInfoResponse {
153
- /** Retrieved setup information. */
154
- connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
155
- }
156
144
  interface GetSetupInfoRequest {
157
145
  /**
158
146
  * Domain name including TLD
@@ -234,6 +222,18 @@ interface MxRecord {
234
222
  */
235
223
  values?: string[];
236
224
  }
225
+ interface GetConnectedDomainSetupInfoRequest {
226
+ /**
227
+ * ID of the connected domain to retrieve setup information for.
228
+ * Identical to the domain name including TLD.
229
+ * @format HOSTNAME
230
+ */
231
+ connectedDomainId: string;
232
+ }
233
+ interface GetConnectedDomainSetupInfoResponse {
234
+ /** Retrieved setup information. */
235
+ connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
236
+ }
237
237
  /**
238
238
  * Retrieves information for the initial setup of a connected domain.
239
239
  *
@@ -142,18 +142,6 @@ interface SubdomainRecords {
142
142
  */
143
143
  cnameRecords?: CnameRecord[];
144
144
  }
145
- interface GetConnectedDomainSetupInfoRequest {
146
- /**
147
- * ID of the connected domain to retrieve setup information for.
148
- * Identical to the domain name including TLD.
149
- * @format HOSTNAME
150
- */
151
- connectedDomainId: string;
152
- }
153
- interface GetConnectedDomainSetupInfoResponse {
154
- /** Retrieved setup information. */
155
- connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
156
- }
157
145
  interface GetSetupInfoRequest {
158
146
  /**
159
147
  * Domain name including TLD
@@ -235,6 +223,18 @@ interface MxRecord {
235
223
  */
236
224
  values?: string[];
237
225
  }
226
+ interface GetConnectedDomainSetupInfoRequest {
227
+ /**
228
+ * ID of the connected domain to retrieve setup information for.
229
+ * Identical to the domain name including TLD.
230
+ * @format HOSTNAME
231
+ */
232
+ connectedDomainId: string;
233
+ }
234
+ interface GetConnectedDomainSetupInfoResponse {
235
+ /** Retrieved setup information. */
236
+ connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
237
+ }
238
238
 
239
239
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
240
240
  getUrl: (context: any) => string;
@@ -141,18 +141,6 @@ interface SubdomainRecords {
141
141
  */
142
142
  cnameRecords?: CnameRecord[];
143
143
  }
144
- interface GetConnectedDomainSetupInfoRequest {
145
- /**
146
- * ID of the connected domain to retrieve setup information for.
147
- * Identical to the domain name including TLD.
148
- * @format HOSTNAME
149
- */
150
- connectedDomainId: string;
151
- }
152
- interface GetConnectedDomainSetupInfoResponse {
153
- /** Retrieved setup information. */
154
- connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
155
- }
156
144
  interface GetSetupInfoRequest {
157
145
  /**
158
146
  * Domain name including TLD
@@ -234,6 +222,18 @@ interface MxRecord {
234
222
  */
235
223
  values?: string[];
236
224
  }
225
+ interface GetConnectedDomainSetupInfoRequest {
226
+ /**
227
+ * ID of the connected domain to retrieve setup information for.
228
+ * Identical to the domain name including TLD.
229
+ * @format HOSTNAME
230
+ */
231
+ connectedDomainId: string;
232
+ }
233
+ interface GetConnectedDomainSetupInfoResponse {
234
+ /** Retrieved setup information. */
235
+ connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
236
+ }
237
237
  /**
238
238
  * Retrieves information for the initial setup of a connected domain.
239
239
  *
@@ -142,18 +142,6 @@ interface SubdomainRecords {
142
142
  */
143
143
  cnameRecords?: CnameRecord[];
144
144
  }
145
- interface GetConnectedDomainSetupInfoRequest {
146
- /**
147
- * ID of the connected domain to retrieve setup information for.
148
- * Identical to the domain name including TLD.
149
- * @format HOSTNAME
150
- */
151
- connectedDomainId: string;
152
- }
153
- interface GetConnectedDomainSetupInfoResponse {
154
- /** Retrieved setup information. */
155
- connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
156
- }
157
145
  interface GetSetupInfoRequest {
158
146
  /**
159
147
  * Domain name including TLD
@@ -235,6 +223,18 @@ interface MxRecord {
235
223
  */
236
224
  values?: string[];
237
225
  }
226
+ interface GetConnectedDomainSetupInfoRequest {
227
+ /**
228
+ * ID of the connected domain to retrieve setup information for.
229
+ * Identical to the domain name including TLD.
230
+ * @format HOSTNAME
231
+ */
232
+ connectedDomainId: string;
233
+ }
234
+ interface GetConnectedDomainSetupInfoResponse {
235
+ /** Retrieved setup information. */
236
+ connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
237
+ }
238
238
 
239
239
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
240
240
  getUrl: (context: any) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_domains_connected-domain-setup-info",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.premium.domains.v1.connected_domain_setup_info"
51
51
  }
52
52
  },
53
- "falconPackageHash": "a22a24a715953c3d8e532e25ccae668db05aa67fa48f5e10a6454455"
53
+ "falconPackageHash": "0d5026b3e1a11a42c99c870b02a784642d3c3d39a1d3cc9da0bdcdc7"
54
54
  }