@wix/auto_sdk_domains_connected-domain-setup-info 1.0.13 → 1.0.15
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.
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +31 -2
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +0 -18
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +31 -2
- package/build/es/index.typings.mjs +0 -18
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +0 -18
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +31 -2
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +0 -18
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +31 -2
- package/build/internal/es/index.typings.mjs +0 -18
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs +0 -18
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { ConnectedDomainSetupInfo } from './index.typings.js';
|
|
3
|
-
export { ARecord, CanChangeDomainOwnerRequest, CanChangeDomainOwnerResponse, CnameRecord, ConnectedDomainSetupInfoDnsRecordsOneOf, ConnectionType, GetConnectedDomainSetupInfoRequest, GetConnectedDomainSetupInfoResponse, GetSetupInfoRequest, GetSetupInfoResponse, NameserverRecord, NsRecord, PointingRecords, PreCreateConnectedDomainRequest, PreCreateConnectedDomainResponse, Registrar, SubdomainRecords } from './index.typings.js';
|
|
3
|
+
export { ARecord, CanChangeDomainOwnerRequest, CanChangeDomainOwnerResponse, CnameRecord, ConnectedDomainSetupInfoDnsRecordsOneOf, ConnectionType, ConnectionTypeWithLiterals, GetConnectedDomainSetupInfoRequest, GetConnectedDomainSetupInfoResponse, GetMxRecordsRequest, GetMxRecordsResponse, GetSetupInfoRequest, GetSetupInfoResponse, MxRecord, NameserverRecord, NsRecord, PointingRecords, PreCreateConnectedDomainRequest, PreCreateConnectedDomainResponse, Registrar, SubdomainRecords } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function getConnectedDomainSetupInfo$1(httpClient: HttpClient): GetConnectedDomainSetupInfoSignature;
|
|
6
6
|
interface GetConnectedDomainSetupInfoSignature {
|
|
@@ -15,7 +15,7 @@ interface GetConnectedDomainSetupInfoSignature {
|
|
|
15
15
|
* Identical to the domain name including TLD.
|
|
16
16
|
* @returns Retrieved setup information.
|
|
17
17
|
*/
|
|
18
|
-
(connectedDomainId: string): Promise<NonNullablePaths<ConnectedDomainSetupInfo, `nameserverRecord.nsRecord.hostName` | `nameserverRecord.nsRecord.ttl` | `nameserverRecord.nsRecord.values` | `pointingRecords.aRecord.hostName` | `pointingRecords.aRecord.ttl` | `pointingRecords.aRecord.values` | `pointingRecords.cnameRecord.hostName` | `pointingRecords.cnameRecord.ttl` | `pointingRecords.cnameRecord.value` | `subdomainRecords.cnameRecords` | `connectedDomainId` | `registrar.nameServers
|
|
18
|
+
(connectedDomainId: string): Promise<NonNullablePaths<ConnectedDomainSetupInfo, `nameserverRecord.nsRecord.hostName` | `nameserverRecord.nsRecord.ttl` | `nameserverRecord.nsRecord.values` | `pointingRecords.aRecord.hostName` | `pointingRecords.aRecord.ttl` | `pointingRecords.aRecord.values` | `pointingRecords.cnameRecord.hostName` | `pointingRecords.cnameRecord.ttl` | `pointingRecords.cnameRecord.value` | `subdomainRecords.cnameRecords` | `connectedDomainId` | `registrar.nameServers`, 4>>;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
declare const getConnectedDomainSetupInfo: MaybeContext<BuildRESTFunction<typeof getConnectedDomainSetupInfo$1> & typeof getConnectedDomainSetupInfo$1>;
|
package/build/cjs/index.js
CHANGED
|
@@ -115,24 +115,6 @@ function resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoService
|
|
|
115
115
|
srcPath: "/domains/v1/connected-domains",
|
|
116
116
|
destPath: "/v1/connected-domains"
|
|
117
117
|
}
|
|
118
|
-
],
|
|
119
|
-
_: [
|
|
120
|
-
{
|
|
121
|
-
srcPath: "/premium/domains/v1/connected-domains",
|
|
122
|
-
destPath: "/v1/connected-domains"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
srcPath: "/domains/v1/connected-domain-setup-info",
|
|
126
|
-
destPath: "/v1/connected-domain-setup-info"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
srcPath: "/domains/v1/connected-domains",
|
|
130
|
-
destPath: "/v1/connected-domains"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
srcPath: "/premium/domains/v1/connected-domain-setup-info",
|
|
134
|
-
destPath: "/v1/connected-domain-setup-info"
|
|
135
|
-
}
|
|
136
118
|
]
|
|
137
119
|
};
|
|
138
120
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
package/build/cjs/index.js.map
CHANGED
|
@@ -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 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 /** There is no information about the connection type. */\n UNKNOWN_CONNECTION_TYPE = 'UNKNOWN_CONNECTION_TYPE',\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 | 'UNKNOWN_CONNECTION_TYPE'\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 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 >\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 '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: '/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 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 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 >\n >;\n}\n\nexport {\n ARecord,\n CanChangeDomainOwnerRequest,\n CanChangeDomainOwnerResponse,\n CnameRecord,\n ConnectedDomainSetupInfo,\n ConnectedDomainSetupInfoDnsRecordsOneOf,\n ConnectionType,\n GetConnectedDomainSetupInfoRequest,\n GetConnectedDomainSetupInfoResponse,\n GetSetupInfoRequest,\n GetSetupInfoResponse,\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 GetConnectedDomainSetupInfoRequest,\n GetConnectedDomainSetupInfoResponse,\n} 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,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ChBA,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 /** There is no information about the connection type. */\n UNKNOWN_CONNECTION_TYPE = 'UNKNOWN_CONNECTION_TYPE',\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 | 'UNKNOWN_CONNECTION_TYPE'\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 4\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 '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 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 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 4\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,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,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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I,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;;;AE9UO,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"]}
|
|
@@ -195,6 +195,35 @@ interface CanChangeDomainOwnerResponse {
|
|
|
195
195
|
/** Whether the domain owner can be changed. */
|
|
196
196
|
canChangeOwner?: boolean;
|
|
197
197
|
}
|
|
198
|
+
interface GetMxRecordsRequest {
|
|
199
|
+
/**
|
|
200
|
+
* Domain name including TLD
|
|
201
|
+
* @format HOSTNAME
|
|
202
|
+
*/
|
|
203
|
+
domain?: string;
|
|
204
|
+
}
|
|
205
|
+
interface GetMxRecordsResponse {
|
|
206
|
+
/**
|
|
207
|
+
* MX records for the domain.
|
|
208
|
+
* Domain can be either registered or connected.
|
|
209
|
+
* The list will be empty if no MX records are found in the public DNS.
|
|
210
|
+
*/
|
|
211
|
+
mxRecords?: MxRecord[];
|
|
212
|
+
}
|
|
213
|
+
interface MxRecord {
|
|
214
|
+
/**
|
|
215
|
+
* DNS record values. Wix limits DNS records to 50 values per type. External
|
|
216
|
+
* providers may support a different maximum number of DNS records for a
|
|
217
|
+
* specific type, Wix doesn't validate that you don't exceed these external
|
|
218
|
+
* limits.
|
|
219
|
+
*
|
|
220
|
+
* Max: 50 records
|
|
221
|
+
* @minSize 1
|
|
222
|
+
* @maxSize 50
|
|
223
|
+
* @maxLength 1000
|
|
224
|
+
*/
|
|
225
|
+
values?: string[];
|
|
226
|
+
}
|
|
198
227
|
interface GetConnectedDomainSetupInfoRequest {
|
|
199
228
|
/**
|
|
200
229
|
* ID of the connected domain to retrieve setup information for.
|
|
@@ -222,6 +251,6 @@ interface GetConnectedDomainSetupInfoResponse {
|
|
|
222
251
|
* @returns Retrieved setup information.
|
|
223
252
|
* @fqn com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo
|
|
224
253
|
*/
|
|
225
|
-
declare function getConnectedDomainSetupInfo(connectedDomainId: string): Promise<NonNullablePaths<ConnectedDomainSetupInfo, `nameserverRecord.nsRecord.hostName` | `nameserverRecord.nsRecord.ttl` | `nameserverRecord.nsRecord.values` | `pointingRecords.aRecord.hostName` | `pointingRecords.aRecord.ttl` | `pointingRecords.aRecord.values` | `pointingRecords.cnameRecord.hostName` | `pointingRecords.cnameRecord.ttl` | `pointingRecords.cnameRecord.value` | `subdomainRecords.cnameRecords` | `connectedDomainId` | `registrar.nameServers
|
|
254
|
+
declare function getConnectedDomainSetupInfo(connectedDomainId: string): Promise<NonNullablePaths<ConnectedDomainSetupInfo, `nameserverRecord.nsRecord.hostName` | `nameserverRecord.nsRecord.ttl` | `nameserverRecord.nsRecord.values` | `pointingRecords.aRecord.hostName` | `pointingRecords.aRecord.ttl` | `pointingRecords.aRecord.values` | `pointingRecords.cnameRecord.hostName` | `pointingRecords.cnameRecord.ttl` | `pointingRecords.cnameRecord.value` | `subdomainRecords.cnameRecords` | `connectedDomainId` | `registrar.nameServers`, 4>>;
|
|
226
255
|
|
|
227
|
-
export { type ARecord, type CanChangeDomainOwnerRequest, type CanChangeDomainOwnerResponse, type CnameRecord, type ConnectedDomainSetupInfo, type ConnectedDomainSetupInfoDnsRecordsOneOf, ConnectionType, type ConnectionTypeWithLiterals, type GetConnectedDomainSetupInfoRequest, type GetConnectedDomainSetupInfoResponse, type GetSetupInfoRequest, type GetSetupInfoResponse, type NameserverRecord, type NsRecord, type PointingRecords, type PreCreateConnectedDomainRequest, type PreCreateConnectedDomainResponse, type Registrar, type SubdomainRecords, getConnectedDomainSetupInfo };
|
|
256
|
+
export { type ARecord, type CanChangeDomainOwnerRequest, type CanChangeDomainOwnerResponse, type CnameRecord, type ConnectedDomainSetupInfo, type ConnectedDomainSetupInfoDnsRecordsOneOf, ConnectionType, type ConnectionTypeWithLiterals, type GetConnectedDomainSetupInfoRequest, type GetConnectedDomainSetupInfoResponse, type GetMxRecordsRequest, type GetMxRecordsResponse, type GetSetupInfoRequest, type GetSetupInfoResponse, type MxRecord, type NameserverRecord, type NsRecord, type PointingRecords, type PreCreateConnectedDomainRequest, type PreCreateConnectedDomainResponse, type Registrar, type SubdomainRecords, getConnectedDomainSetupInfo };
|
|
@@ -115,24 +115,6 @@ function resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoService
|
|
|
115
115
|
srcPath: "/domains/v1/connected-domains",
|
|
116
116
|
destPath: "/v1/connected-domains"
|
|
117
117
|
}
|
|
118
|
-
],
|
|
119
|
-
_: [
|
|
120
|
-
{
|
|
121
|
-
srcPath: "/premium/domains/v1/connected-domains",
|
|
122
|
-
destPath: "/v1/connected-domains"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
srcPath: "/domains/v1/connected-domain-setup-info",
|
|
126
|
-
destPath: "/v1/connected-domain-setup-info"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
srcPath: "/domains/v1/connected-domains",
|
|
130
|
-
destPath: "/v1/connected-domains"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
srcPath: "/premium/domains/v1/connected-domain-setup-info",
|
|
134
|
-
destPath: "/v1/connected-domain-setup-info"
|
|
135
|
-
}
|
|
136
118
|
]
|
|
137
119
|
};
|
|
138
120
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
@@ -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 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 /** There is no information about the connection type. */\n UNKNOWN_CONNECTION_TYPE = 'UNKNOWN_CONNECTION_TYPE',\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 | 'UNKNOWN_CONNECTION_TYPE'\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 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 >\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 '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: '/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 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 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,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,I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A,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"]}
|
|
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 /** There is no information about the connection type. */\n UNKNOWN_CONNECTION_TYPE = 'UNKNOWN_CONNECTION_TYPE',\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 | 'UNKNOWN_CONNECTION_TYPE'\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 4\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 '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 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 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;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Q,uCAAkB,OAAO;AAAA,IACnC;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;ADgDO,IAAK,iBAAL,kBAAKC,oBAAL;AAEL,EAAAA,gBAAA,6BAA0B;AAE1B,EAAAA,gBAAA,cAAW;AAEX,EAAAA,gBAAA,iBAAc;AAEd,EAAAA,gBAAA,YAAS;AARC,SAAAA;AAAA,GAAA;AA4GZ,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"]}
|
package/build/cjs/meta.js
CHANGED
|
@@ -110,24 +110,6 @@ function resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoService
|
|
|
110
110
|
srcPath: "/domains/v1/connected-domains",
|
|
111
111
|
destPath: "/v1/connected-domains"
|
|
112
112
|
}
|
|
113
|
-
],
|
|
114
|
-
_: [
|
|
115
|
-
{
|
|
116
|
-
srcPath: "/premium/domains/v1/connected-domains",
|
|
117
|
-
destPath: "/v1/connected-domains"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
srcPath: "/domains/v1/connected-domain-setup-info",
|
|
121
|
-
destPath: "/v1/connected-domain-setup-info"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
srcPath: "/domains/v1/connected-domains",
|
|
125
|
-
destPath: "/v1/connected-domains"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
srcPath: "/premium/domains/v1/connected-domain-setup-info",
|
|
129
|
-
destPath: "/v1/connected-domain-setup-info"
|
|
130
|
-
}
|
|
131
113
|
]
|
|
132
114
|
};
|
|
133
115
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -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.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 '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
|
|
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.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 '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 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 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 * 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"],"mappings":";;;;;;;;;;;;;;;;;;;;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,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,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AA,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","getConnectedDomainSetupInfo"]}
|
package/build/es/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { ConnectedDomainSetupInfo } from './index.typings.mjs';
|
|
3
|
-
export { ARecord, CanChangeDomainOwnerRequest, CanChangeDomainOwnerResponse, CnameRecord, ConnectedDomainSetupInfoDnsRecordsOneOf, ConnectionType, GetConnectedDomainSetupInfoRequest, GetConnectedDomainSetupInfoResponse, GetSetupInfoRequest, GetSetupInfoResponse, NameserverRecord, NsRecord, PointingRecords, PreCreateConnectedDomainRequest, PreCreateConnectedDomainResponse, Registrar, SubdomainRecords } from './index.typings.mjs';
|
|
3
|
+
export { ARecord, CanChangeDomainOwnerRequest, CanChangeDomainOwnerResponse, CnameRecord, ConnectedDomainSetupInfoDnsRecordsOneOf, ConnectionType, ConnectionTypeWithLiterals, GetConnectedDomainSetupInfoRequest, GetConnectedDomainSetupInfoResponse, GetMxRecordsRequest, GetMxRecordsResponse, GetSetupInfoRequest, GetSetupInfoResponse, MxRecord, NameserverRecord, NsRecord, PointingRecords, PreCreateConnectedDomainRequest, PreCreateConnectedDomainResponse, Registrar, SubdomainRecords } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function getConnectedDomainSetupInfo$1(httpClient: HttpClient): GetConnectedDomainSetupInfoSignature;
|
|
6
6
|
interface GetConnectedDomainSetupInfoSignature {
|
|
@@ -15,7 +15,7 @@ interface GetConnectedDomainSetupInfoSignature {
|
|
|
15
15
|
* Identical to the domain name including TLD.
|
|
16
16
|
* @returns Retrieved setup information.
|
|
17
17
|
*/
|
|
18
|
-
(connectedDomainId: string): Promise<NonNullablePaths<ConnectedDomainSetupInfo, `nameserverRecord.nsRecord.hostName` | `nameserverRecord.nsRecord.ttl` | `nameserverRecord.nsRecord.values` | `pointingRecords.aRecord.hostName` | `pointingRecords.aRecord.ttl` | `pointingRecords.aRecord.values` | `pointingRecords.cnameRecord.hostName` | `pointingRecords.cnameRecord.ttl` | `pointingRecords.cnameRecord.value` | `subdomainRecords.cnameRecords` | `connectedDomainId` | `registrar.nameServers
|
|
18
|
+
(connectedDomainId: string): Promise<NonNullablePaths<ConnectedDomainSetupInfo, `nameserverRecord.nsRecord.hostName` | `nameserverRecord.nsRecord.ttl` | `nameserverRecord.nsRecord.values` | `pointingRecords.aRecord.hostName` | `pointingRecords.aRecord.ttl` | `pointingRecords.aRecord.values` | `pointingRecords.cnameRecord.hostName` | `pointingRecords.cnameRecord.ttl` | `pointingRecords.cnameRecord.value` | `subdomainRecords.cnameRecords` | `connectedDomainId` | `registrar.nameServers`, 4>>;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
declare const getConnectedDomainSetupInfo: MaybeContext<BuildRESTFunction<typeof getConnectedDomainSetupInfo$1> & typeof getConnectedDomainSetupInfo$1>;
|
package/build/es/index.mjs
CHANGED
|
@@ -91,24 +91,6 @@ function resolveComWixpressPremiumDomainConnectedConnectedDomainSetupInfoService
|
|
|
91
91
|
srcPath: "/domains/v1/connected-domains",
|
|
92
92
|
destPath: "/v1/connected-domains"
|
|
93
93
|
}
|
|
94
|
-
],
|
|
95
|
-
_: [
|
|
96
|
-
{
|
|
97
|
-
srcPath: "/premium/domains/v1/connected-domains",
|
|
98
|
-
destPath: "/v1/connected-domains"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
srcPath: "/domains/v1/connected-domain-setup-info",
|
|
102
|
-
destPath: "/v1/connected-domain-setup-info"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
srcPath: "/domains/v1/connected-domains",
|
|
106
|
-
destPath: "/v1/connected-domains"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
srcPath: "/premium/domains/v1/connected-domain-setup-info",
|
|
110
|
-
destPath: "/v1/connected-domain-setup-info"
|
|
111
|
-
}
|
|
112
94
|
]
|
|
113
95
|
};
|
|
114
96
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
package/build/es/index.mjs.map
CHANGED
|
@@ -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 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 /** There is no information about the connection type. */\n UNKNOWN_CONNECTION_TYPE = 'UNKNOWN_CONNECTION_TYPE',\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 | 'UNKNOWN_CONNECTION_TYPE'\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 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 >\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 '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: '/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 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 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 >\n >;\n}\n\nexport {\n ARecord,\n CanChangeDomainOwnerRequest,\n CanChangeDomainOwnerResponse,\n CnameRecord,\n ConnectedDomainSetupInfo,\n ConnectedDomainSetupInfoDnsRecordsOneOf,\n ConnectionType,\n GetConnectedDomainSetupInfoRequest,\n GetConnectedDomainSetupInfoResponse,\n GetSetupInfoRequest,\n GetSetupInfoResponse,\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 GetConnectedDomainSetupInfoRequest,\n GetConnectedDomainSetupInfoResponse,\n} from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,y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AAO,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;;;AE7SO,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 /** There is no information about the connection type. */\n UNKNOWN_CONNECTION_TYPE = 'UNKNOWN_CONNECTION_TYPE',\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 | 'UNKNOWN_CONNECTION_TYPE'\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 4\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 '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 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 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 4\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;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,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA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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;;;AE9UO,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"]}
|
|
@@ -195,6 +195,35 @@ interface CanChangeDomainOwnerResponse {
|
|
|
195
195
|
/** Whether the domain owner can be changed. */
|
|
196
196
|
canChangeOwner?: boolean;
|
|
197
197
|
}
|
|
198
|
+
interface GetMxRecordsRequest {
|
|
199
|
+
/**
|
|
200
|
+
* Domain name including TLD
|
|
201
|
+
* @format HOSTNAME
|
|
202
|
+
*/
|
|
203
|
+
domain?: string;
|
|
204
|
+
}
|
|
205
|
+
interface GetMxRecordsResponse {
|
|
206
|
+
/**
|
|
207
|
+
* MX records for the domain.
|
|
208
|
+
* Domain can be either registered or connected.
|
|
209
|
+
* The list will be empty if no MX records are found in the public DNS.
|
|
210
|
+
*/
|
|
211
|
+
mxRecords?: MxRecord[];
|
|
212
|
+
}
|
|
213
|
+
interface MxRecord {
|
|
214
|
+
/**
|
|
215
|
+
* DNS record values. Wix limits DNS records to 50 values per type. External
|
|
216
|
+
* providers may support a different maximum number of DNS records for a
|
|
217
|
+
* specific type, Wix doesn't validate that you don't exceed these external
|
|
218
|
+
* limits.
|
|
219
|
+
*
|
|
220
|
+
* Max: 50 records
|
|
221
|
+
* @minSize 1
|
|
222
|
+
* @maxSize 50
|
|
223
|
+
* @maxLength 1000
|
|
224
|
+
*/
|
|
225
|
+
values?: string[];
|
|
226
|
+
}
|
|
198
227
|
interface GetConnectedDomainSetupInfoRequest {
|
|
199
228
|
/**
|
|
200
229
|
* ID of the connected domain to retrieve setup information for.
|
|
@@ -222,6 +251,6 @@ interface GetConnectedDomainSetupInfoResponse {
|
|
|
222
251
|
* @returns Retrieved setup information.
|
|
223
252
|
* @fqn com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo
|
|
224
253
|
*/
|
|
225
|
-
declare function getConnectedDomainSetupInfo(connectedDomainId: string): Promise<NonNullablePaths<ConnectedDomainSetupInfo, `nameserverRecord.nsRecord.hostName` | `nameserverRecord.nsRecord.ttl` | `nameserverRecord.nsRecord.values` | `pointingRecords.aRecord.hostName` | `pointingRecords.aRecord.ttl` | `pointingRecords.aRecord.values` | `pointingRecords.cnameRecord.hostName` | `pointingRecords.cnameRecord.ttl` | `pointingRecords.cnameRecord.value` | `subdomainRecords.cnameRecords` | `connectedDomainId` | `registrar.nameServers
|
|
254
|
+
declare function getConnectedDomainSetupInfo(connectedDomainId: string): Promise<NonNullablePaths<ConnectedDomainSetupInfo, `nameserverRecord.nsRecord.hostName` | `nameserverRecord.nsRecord.ttl` | `nameserverRecord.nsRecord.values` | `pointingRecords.aRecord.hostName` | `pointingRecords.aRecord.ttl` | `pointingRecords.aRecord.values` | `pointingRecords.cnameRecord.hostName` | `pointingRecords.cnameRecord.ttl` | `pointingRecords.cnameRecord.value` | `subdomainRecords.cnameRecords` | `connectedDomainId` | `registrar.nameServers`, 4>>;
|
|
226
255
|
|
|
227
|
-
export { type ARecord, type CanChangeDomainOwnerRequest, type CanChangeDomainOwnerResponse, type CnameRecord, type ConnectedDomainSetupInfo, type ConnectedDomainSetupInfoDnsRecordsOneOf, ConnectionType, type ConnectionTypeWithLiterals, type GetConnectedDomainSetupInfoRequest, type GetConnectedDomainSetupInfoResponse, type GetSetupInfoRequest, type GetSetupInfoResponse, type NameserverRecord, type NsRecord, type PointingRecords, type PreCreateConnectedDomainRequest, type PreCreateConnectedDomainResponse, type Registrar, type SubdomainRecords, getConnectedDomainSetupInfo };
|
|
256
|
+
export { type ARecord, type CanChangeDomainOwnerRequest, type CanChangeDomainOwnerResponse, type CnameRecord, type ConnectedDomainSetupInfo, type ConnectedDomainSetupInfoDnsRecordsOneOf, ConnectionType, type ConnectionTypeWithLiterals, type GetConnectedDomainSetupInfoRequest, type GetConnectedDomainSetupInfoResponse, type GetMxRecordsRequest, type GetMxRecordsResponse, type GetSetupInfoRequest, type GetSetupInfoResponse, type MxRecord, type NameserverRecord, type NsRecord, type PointingRecords, type PreCreateConnectedDomainRequest, type PreCreateConnectedDomainResponse, type Registrar, type SubdomainRecords, getConnectedDomainSetupInfo };
|