@wix/auto_sdk_domains_dns-propagation 1.0.3 → 1.0.4
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.js.map +1 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +2 -2
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +2 -2
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +5 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +47 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +2 -2
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +5 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +47 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +2 -2
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +4 -4
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.universal.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.http.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.public.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.context.ts"],"sourcesContent":["export * from './src/premium-domains-v1-dns-propagation-dns-propagation.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 ambassadorWixPremiumDomainsV1DnsPropagation from './premium-domains-v1-dns-propagation-dns-propagation.http.js';\n\n/**\n * The DNS (Domain Name System) propagation object contains information for a domain.\n * Tracks whether the DNS records are correctly configured and propagated globally.\n * Learn more [about DNS propagation](https://support.wix.com/en/article/about-domain-propagation).\n */\nexport interface DnsPropagation extends DnsPropagationStatusInfoOneOf {\n /**\n * Details about DNS propagation failure, including which record types failed.\n * Only present when `status` is `FAILED`.\n * @readonly\n */\n failureInfo?: FailedStatusInfo;\n /**\n * ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain).\n * @format HOSTNAME\n * @readonly\n */\n _id?: string;\n /**\n * Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported.\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * Revision number, which increments by 1 each time the DNS propagation\n * is updated. Ignored when creating a DNS propagation.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the DNS propagation was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the DNS propagation was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Current status of the DNS propagation. Can take up to 3 days to complete.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Whether Wix name servers were detected among the domain's name servers.\n * For subdomains, this value matches the root domain's setting.\n * @readonly\n */\n dnsResolverIncludesWixNs?: boolean | null;\n}\n\n/** @oneof */\nexport interface DnsPropagationStatusInfoOneOf {\n /**\n * Details about DNS propagation failure, including which record types failed.\n * Only present when `status` is `FAILED`.\n * @readonly\n */\n failureInfo?: FailedStatusInfo;\n}\n\nexport enum Status {\n /** DNS propagation completed successfully. All required DNS records are properly configured and propagated. */\n SUCCEEDED = 'SUCCEEDED',\n /** DNS propagation failed. One or more DNS records are incorrectly configured or haven't propagated. */\n FAILED = 'FAILED',\n /** DNS propagation is in progress. Check again later for updated status. */\n IN_PROGRESS = 'IN_PROGRESS',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'SUCCEEDED'\n | 'FAILED'\n | 'IN_PROGRESS';\n\nexport interface FailedStatusInfo {\n /**\n * The DNS record types that failed propagation.\n *\n * Max: 3 invalid records\n * @readonly\n */\n invalidRecords?: InvalidRecordWithLiterals[];\n /**\n * Details about the A record for which the DNS propagation has failed.\n * Includes all expected and current values of the A record.\n * @readonly\n */\n invalidARecordInfo?: InvalidRecordInfo;\n /**\n * Details about the NS (nameserver) record for which the DNS propagation has failed.\n * Includes all expected and current values of the NS record.\n * @readonly\n */\n invalidNsRecordInfo?: InvalidRecordInfo;\n /**\n * Details about the CNAME record for which the DNS propagation has failed.\n * Includes all expected and current values of the CNAME records.\n * @readonly\n */\n invalidCnameRecordInfo?: InvalidRecordInfo;\n}\n\nexport enum InvalidRecord {\n /** The propagation of the A record has failed. */\n INVALID_A_RECORD = 'INVALID_A_RECORD',\n /** The propagation of the NS record has failed. */\n INVALID_NS_RECORD = 'INVALID_NS_RECORD',\n /** The propagation of at least one CNAME record has failed. */\n INVALID_CNAME_RECORD = 'INVALID_CNAME_RECORD',\n}\n\n/** @enumType */\nexport type InvalidRecordWithLiterals =\n | InvalidRecord\n | 'INVALID_A_RECORD'\n | 'INVALID_NS_RECORD'\n | 'INVALID_CNAME_RECORD';\n\nexport interface InvalidRecordInfo {\n /**\n * The DNS records that should be configured in the external database. Note that there can only be a single A and NS record.\n *\n * Max: 10 DNS records\n * @maxSize 10\n * @readonly\n */\n expectedDnsRecords?: DnsRecord[];\n /**\n * DNS records currently configured in the external database. Note that there can only be a single A and NS record.\n * @maxSize 10\n * @readonly\n */\n actualDnsRecords?: DnsRecord[];\n}\n\nexport interface DnsRecord {\n /**\n * Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.\n * @format HOSTNAME\n * @readonly\n */\n hostName?: string;\n /**\n * Values associated with the DNS record. For example, IP addresses for A records or server names for NS records.\n *\n * Min: 1 value\n * Max: 10 values\n * @minSize 1\n * @maxSize 10\n * @readonly\n */\n values?: string[];\n}\n\nexport interface CreateDnsPropagationRequest {\n /** DNS propagation to create. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface CreateDnsPropagationResponse {\n /** Created DNS propagation. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface GetDnsPropagationRequest {\n /**\n * ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId: string;\n}\n\nexport interface GetDnsPropagationResponse {\n /** Retrieved DNS propagation. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface CheckDnsPropagationRequest {\n /**\n * ID of the DNS propagation to check the propagation status for.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n}\n\nexport interface CheckDnsPropagationResponse {\n /** Retrieved DNS propagation with current status. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface ScheduleDnsPropagationChecksRequest {\n /**\n * ID of the DNS propagation to schedule a check for.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n}\n\nexport interface ScheduleDnsPropagationChecksResponse {}\n\nexport interface SyncDnsPropagationDomainRequest {\n /**\n * ID of the DNS propagation to synchronize.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n /**\n * Whether to perform a dry run without making actual changes.\n *\n * If true, reports sync issues without applying any fixes.\n * If false, attempts to resolve detected issues.\n *\n * Default: `false`\n */\n dryRunEnabled?: boolean | null;\n}\n\nexport interface SyncDnsPropagationDomainResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n * @param dnsPropagationId - ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @public\n * @requiredField dnsPropagationId\n * @permissionId DOMAINS.READ_DNS_PROPAGATION\n * @returns Retrieved DNS propagation.\n * @fqn com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation\n */\nexport async function getDnsPropagation(\n dnsPropagationId: string\n): Promise<\n NonNullablePaths<\n DnsPropagation,\n | `failureInfo.invalidRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords.${number}.hostName`\n | `failureInfo.invalidARecordInfo.actualDnsRecords`\n | `_id`\n | `domain`\n | `status`,\n 6\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 dnsPropagationId: dnsPropagationId,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1DnsPropagation.getDnsPropagation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.dnsPropagation!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { dnsPropagationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['dnsPropagationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_dns-propagation';\n\n/**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n */\nexport function getDnsPropagation(payload: object): RequestOptionsFactory<any> {\n function __getDnsPropagation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.dns_propagation',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(\n {\n protoPath: '/v1/dns-propagations/{dnsPropagationId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dnsPropagation.createdDate' },\n { path: 'dnsPropagation.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDnsPropagation;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n DnsPropagation,\n getDnsPropagation as universalGetDnsPropagation,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/domains' };\n\nexport function getDnsPropagation(\n httpClient: HttpClient\n): GetDnsPropagationSignature {\n return (dnsPropagationId: string) =>\n universalGetDnsPropagation(\n dnsPropagationId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetDnsPropagationSignature {\n /**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n * @param - ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @returns Retrieved DNS propagation.\n */\n (dnsPropagationId: string): Promise<\n NonNullablePaths<\n DnsPropagation,\n | `failureInfo.invalidRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords.${number}.hostName`\n | `failureInfo.invalidARecordInfo.actualDnsRecords`\n | `_id`\n | `domain`\n | `status`,\n 6\n >\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n CheckDnsPropagationRequest,\n CheckDnsPropagationResponse,\n CreateDnsPropagationRequest,\n CreateDnsPropagationResponse,\n DnsPropagation,\n DnsPropagationStatusInfoOneOf,\n DnsRecord,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n FailedStatusInfo,\n GetDnsPropagationRequest,\n GetDnsPropagationResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n InvalidRecord,\n InvalidRecordInfo,\n MessageEnvelope,\n RestoreInfo,\n ScheduleDnsPropagationChecksRequest,\n ScheduleDnsPropagationChecksResponse,\n Status,\n SyncDnsPropagationDomainRequest,\n SyncDnsPropagationDomainResponse,\n WebhookIdentityType,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\n","import { getDnsPropagation as publicGetDnsPropagation } from './premium-domains-v1-dns-propagation-dns-propagation.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getDnsPropagation: MaybeContext<\n BuildRESTFunction<typeof publicGetDnsPropagation> &\n typeof publicGetDnsPropagation\n> = /*#__PURE__*/ createRESTModule(publicGetDnsPropagation);\n\nexport {\n Status,\n InvalidRecord,\n WebhookIdentityType,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\nexport {\n DnsPropagation,\n DnsPropagationStatusInfoOneOf,\n FailedStatusInfo,\n InvalidRecordInfo,\n DnsRecord,\n CreateDnsPropagationRequest,\n CreateDnsPropagationResponse,\n GetDnsPropagationRequest,\n GetDnsPropagationResponse,\n CheckDnsPropagationRequest,\n CheckDnsPropagationResponse,\n ScheduleDnsPropagationChecksRequest,\n ScheduleDnsPropagationChecksResponse,\n SyncDnsPropagationDomainRequest,\n SyncDnsPropagationDomainResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\nexport {\n StatusWithLiterals,\n InvalidRecordWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAAA;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,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AAL;AAEL,EAAAA,eAAA,sBAAmB;AAEnB,EAAAA,eAAA,uBAAoB;AAEpB,EAAAA,eAAA,0BAAuB;AANb,SAAAA;AAAA,GAAA;AAiQL,IAAK,sBAAL,kBAAKC,yBAAL;AACL,EAAAA,qBAAA,aAAU;AACV,EAAAA,qBAAA,uBAAoB;AACpB,EAAAA,qBAAA,YAAS;AACT,EAAAA,qBAAA,cAAW;AACX,EAAAA,qBAAA,SAAM;AALI,SAAAA;AAAA,GAAA;AA+CZ,eAAsBC,mBACpB,kBAaA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,QAAM,UACwC,kBAAkB,OAAO;AAEvE,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,kBAAkB,OAAO;AAAA,QACrD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,kBAAkB;AAAA,IACrB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE3cO,SAASC,mBACd,YAC4B;AAC5B,SAAO,CAAC,qBACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AChBA,IAAAC,uBAAiC;AAG1B,IAAMC,qBAGK,2DAAiBA,kBAAuB;","names":["getDnsPropagation","import_rest_modules","payload","Status","InvalidRecord","WebhookIdentityType","getDnsPropagation","sdkTransformError","getDnsPropagation","import_rest_modules","getDnsPropagation"]}
|
|
1
|
+
{"version":3,"sources":["../../index.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.universal.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.http.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.public.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.context.ts"],"sourcesContent":["export * from './src/premium-domains-v1-dns-propagation-dns-propagation.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 ambassadorWixPremiumDomainsV1DnsPropagation from './premium-domains-v1-dns-propagation-dns-propagation.http.js';\n\n/**\n * The DNS (Domain Name System) propagation object contains information for a domain.\n * Tracks whether the DNS records are correctly configured and propagated globally.\n * Learn more [about DNS propagation](https://support.wix.com/en/article/about-domain-propagation).\n */\nexport interface DnsPropagation extends DnsPropagationStatusInfoOneOf {\n /**\n * Details about DNS propagation failure, including which record types failed.\n * Only present when `status` is `FAILED`.\n * @readonly\n */\n failureInfo?: FailedStatusInfo;\n /**\n * ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain).\n * @format HOSTNAME\n * @readonly\n */\n _id?: string;\n /**\n * Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported.\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * Revision number, which increments by 1 each time the DNS propagation\n * is updated. Ignored when creating a DNS propagation.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the DNS propagation was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the DNS propagation was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Current status of the DNS propagation. Can take up to 3 days to complete.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Whether Wix name servers were detected among the domain's name servers.\n * For subdomains, this value matches the root domain's setting.\n * @readonly\n */\n dnsResolverIncludesWixNs?: boolean | null;\n}\n\n/** @oneof */\nexport interface DnsPropagationStatusInfoOneOf {\n /**\n * Details about DNS propagation failure, including which record types failed.\n * Only present when `status` is `FAILED`.\n * @readonly\n */\n failureInfo?: FailedStatusInfo;\n}\n\nexport enum Status {\n /** DNS propagation completed successfully. All required DNS records are properly configured and propagated. */\n SUCCEEDED = 'SUCCEEDED',\n /** DNS propagation failed. One or more DNS records are incorrectly configured or haven't propagated. */\n FAILED = 'FAILED',\n /** DNS propagation is in progress. Check again later for updated status. */\n IN_PROGRESS = 'IN_PROGRESS',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'SUCCEEDED'\n | 'FAILED'\n | 'IN_PROGRESS';\n\nexport interface FailedStatusInfo {\n /**\n * The DNS record types that failed propagation.\n *\n * Max: 3 invalid records\n * @readonly\n */\n invalidRecords?: InvalidRecordWithLiterals[];\n /**\n * Details about the A record for which the DNS propagation has failed.\n * Includes all expected and current values of the A record.\n * @readonly\n */\n invalidARecordInfo?: InvalidRecordInfo;\n /**\n * Details about the NS (nameserver) record for which the DNS propagation has failed.\n * Includes all expected and current values of the NS record.\n * @readonly\n */\n invalidNsRecordInfo?: InvalidRecordInfo;\n /**\n * Details about the CNAME record for which the DNS propagation has failed.\n * Includes all expected and current values of the CNAME records.\n * @readonly\n */\n invalidCnameRecordInfo?: InvalidRecordInfo;\n}\n\nexport enum InvalidRecord {\n /** The propagation of the A record has failed. */\n INVALID_A_RECORD = 'INVALID_A_RECORD',\n /** The propagation of the NS record has failed. */\n INVALID_NS_RECORD = 'INVALID_NS_RECORD',\n /** The propagation of at least one CNAME record has failed. */\n INVALID_CNAME_RECORD = 'INVALID_CNAME_RECORD',\n}\n\n/** @enumType */\nexport type InvalidRecordWithLiterals =\n | InvalidRecord\n | 'INVALID_A_RECORD'\n | 'INVALID_NS_RECORD'\n | 'INVALID_CNAME_RECORD';\n\nexport interface InvalidRecordInfo {\n /**\n * The DNS records that should be configured in the external database. Note that there can only be a single A and NS record.\n *\n * Max: 10 DNS records\n * @maxSize 10\n * @readonly\n */\n expectedDnsRecords?: DnsRecord[];\n /**\n * DNS records currently configured in the external database. Note that there can only be a single A and NS record.\n * @maxSize 10\n * @readonly\n */\n actualDnsRecords?: DnsRecord[];\n}\n\nexport interface DnsRecord {\n /**\n * Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.\n * @format HOSTNAME\n * @readonly\n */\n hostName?: string;\n /**\n * Values associated with the DNS record. For example, IP addresses for A records or server names for NS records.\n *\n * Min: 1 value\n * Max: 10 values\n * @minSize 1\n * @maxSize 10\n * @readonly\n */\n values?: string[];\n}\n\nexport interface CreateDnsPropagationRequest {\n /** DNS propagation to create. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface CreateDnsPropagationResponse {\n /** Created DNS propagation. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface GetDnsPropagationRequest {\n /**\n * ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId: string;\n /**\n * Whether to retrieve the most up-to-date DNS propagation data.\n * @internal\n */\n consistent?: boolean;\n}\n\nexport interface GetDnsPropagationResponse {\n /** Retrieved DNS propagation. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface CheckDnsPropagationRequest {\n /**\n * ID of the DNS propagation to check the propagation status for.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n}\n\nexport interface CheckDnsPropagationResponse {\n /** Retrieved DNS propagation with current status. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface ScheduleDnsPropagationChecksRequest {\n /**\n * ID of the DNS propagation to schedule a check for.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n}\n\nexport interface ScheduleDnsPropagationChecksResponse {}\n\nexport interface SyncDnsPropagationDomainRequest {\n /**\n * ID of the DNS propagation to synchronize.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n /**\n * Whether to perform a dry run without making actual changes.\n *\n * If true, reports sync issues without applying any fixes.\n * If false, attempts to resolve detected issues.\n *\n * Default: `false`\n */\n dryRunEnabled?: boolean | null;\n}\n\nexport interface SyncDnsPropagationDomainResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n * @param dnsPropagationId - ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @public\n * @requiredField dnsPropagationId\n * @permissionId DOMAINS.READ_DNS_PROPAGATION\n * @returns Retrieved DNS propagation.\n * @fqn com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation\n */\nexport async function getDnsPropagation(\n dnsPropagationId: string\n): Promise<\n NonNullablePaths<\n DnsPropagation,\n | `failureInfo.invalidRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords.${number}.hostName`\n | `failureInfo.invalidARecordInfo.actualDnsRecords`\n | `_id`\n | `domain`\n | `status`,\n 6\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 dnsPropagationId: dnsPropagationId,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1DnsPropagation.getDnsPropagation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.dnsPropagation!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { dnsPropagationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['dnsPropagationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_dns-propagation';\n\n/**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n */\nexport function getDnsPropagation(payload: object): RequestOptionsFactory<any> {\n function __getDnsPropagation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.dns_propagation',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(\n {\n protoPath: '/v1/dns-propagations/{dnsPropagationId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dnsPropagation.createdDate' },\n { path: 'dnsPropagation.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDnsPropagation;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n DnsPropagation,\n getDnsPropagation as universalGetDnsPropagation,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/domains' };\n\nexport function getDnsPropagation(\n httpClient: HttpClient\n): GetDnsPropagationSignature {\n return (dnsPropagationId: string) =>\n universalGetDnsPropagation(\n dnsPropagationId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetDnsPropagationSignature {\n /**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n * @param - ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @returns Retrieved DNS propagation.\n */\n (dnsPropagationId: string): Promise<\n NonNullablePaths<\n DnsPropagation,\n | `failureInfo.invalidRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords.${number}.hostName`\n | `failureInfo.invalidARecordInfo.actualDnsRecords`\n | `_id`\n | `domain`\n | `status`,\n 6\n >\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n CheckDnsPropagationRequest,\n CheckDnsPropagationResponse,\n CreateDnsPropagationRequest,\n CreateDnsPropagationResponse,\n DnsPropagation,\n DnsPropagationStatusInfoOneOf,\n DnsRecord,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n FailedStatusInfo,\n GetDnsPropagationRequest,\n GetDnsPropagationResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n InvalidRecord,\n InvalidRecordInfo,\n MessageEnvelope,\n RestoreInfo,\n ScheduleDnsPropagationChecksRequest,\n ScheduleDnsPropagationChecksResponse,\n Status,\n SyncDnsPropagationDomainRequest,\n SyncDnsPropagationDomainResponse,\n WebhookIdentityType,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\n","import { getDnsPropagation as publicGetDnsPropagation } from './premium-domains-v1-dns-propagation-dns-propagation.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getDnsPropagation: MaybeContext<\n BuildRESTFunction<typeof publicGetDnsPropagation> &\n typeof publicGetDnsPropagation\n> = /*#__PURE__*/ createRESTModule(publicGetDnsPropagation);\n\nexport {\n Status,\n InvalidRecord,\n WebhookIdentityType,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\nexport {\n DnsPropagation,\n DnsPropagationStatusInfoOneOf,\n FailedStatusInfo,\n InvalidRecordInfo,\n DnsRecord,\n CreateDnsPropagationRequest,\n CreateDnsPropagationResponse,\n GetDnsPropagationRequest,\n GetDnsPropagationResponse,\n CheckDnsPropagationRequest,\n CheckDnsPropagationResponse,\n ScheduleDnsPropagationChecksRequest,\n ScheduleDnsPropagationChecksResponse,\n SyncDnsPropagationDomainRequest,\n SyncDnsPropagationDomainResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\nexport {\n StatusWithLiterals,\n InvalidRecordWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAAA;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,qEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAQd,SAAS,kBAAkB,SAA6C;AAC7E,WAAS,oBAAoB,EAAE,KAAK,GAAQ;AAC1C,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK;AAAA,QACH;AAAA,UACE,WAAW;AAAA,UACX,MAAM;AAAA,UACN;AAAA,QACF;AAAA,MACF;AAAA,MACA,YAAQ,uCAAkB,OAAO;AAAA,MACjC,mBAAmB,CAACC,iBAClB,uCAAeA,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AM;AAAA,EACR;AACF;;;AEhdO,SAASC,mBACd,YAC4B;AAC5B,SAAO,CAAC,qBACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AChBA,IAAAC,uBAAiC;AAG1B,IAAMC,qBAGK,2DAAiBA,kBAAuB;","names":["getDnsPropagation","import_rest_modules","payload","Status","InvalidRecord","WebhookIdentityType","getDnsPropagation","sdkTransformError","getDnsPropagation","import_rest_modules","getDnsPropagation"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.typings.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.universal.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.http.ts"],"sourcesContent":["export * from './src/premium-domains-v1-dns-propagation-dns-propagation.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 ambassadorWixPremiumDomainsV1DnsPropagation from './premium-domains-v1-dns-propagation-dns-propagation.http.js';\n\n/**\n * The DNS (Domain Name System) propagation object contains information for a domain.\n * Tracks whether the DNS records are correctly configured and propagated globally.\n * Learn more [about DNS propagation](https://support.wix.com/en/article/about-domain-propagation).\n */\nexport interface DnsPropagation extends DnsPropagationStatusInfoOneOf {\n /**\n * Details about DNS propagation failure, including which record types failed.\n * Only present when `status` is `FAILED`.\n * @readonly\n */\n failureInfo?: FailedStatusInfo;\n /**\n * ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain).\n * @format HOSTNAME\n * @readonly\n */\n _id?: string;\n /**\n * Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported.\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * Revision number, which increments by 1 each time the DNS propagation\n * is updated. Ignored when creating a DNS propagation.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the DNS propagation was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the DNS propagation was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Current status of the DNS propagation. Can take up to 3 days to complete.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Whether Wix name servers were detected among the domain's name servers.\n * For subdomains, this value matches the root domain's setting.\n * @readonly\n */\n dnsResolverIncludesWixNs?: boolean | null;\n}\n\n/** @oneof */\nexport interface DnsPropagationStatusInfoOneOf {\n /**\n * Details about DNS propagation failure, including which record types failed.\n * Only present when `status` is `FAILED`.\n * @readonly\n */\n failureInfo?: FailedStatusInfo;\n}\n\nexport enum Status {\n /** DNS propagation completed successfully. All required DNS records are properly configured and propagated. */\n SUCCEEDED = 'SUCCEEDED',\n /** DNS propagation failed. One or more DNS records are incorrectly configured or haven't propagated. */\n FAILED = 'FAILED',\n /** DNS propagation is in progress. Check again later for updated status. */\n IN_PROGRESS = 'IN_PROGRESS',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'SUCCEEDED'\n | 'FAILED'\n | 'IN_PROGRESS';\n\nexport interface FailedStatusInfo {\n /**\n * The DNS record types that failed propagation.\n *\n * Max: 3 invalid records\n * @readonly\n */\n invalidRecords?: InvalidRecordWithLiterals[];\n /**\n * Details about the A record for which the DNS propagation has failed.\n * Includes all expected and current values of the A record.\n * @readonly\n */\n invalidARecordInfo?: InvalidRecordInfo;\n /**\n * Details about the NS (nameserver) record for which the DNS propagation has failed.\n * Includes all expected and current values of the NS record.\n * @readonly\n */\n invalidNsRecordInfo?: InvalidRecordInfo;\n /**\n * Details about the CNAME record for which the DNS propagation has failed.\n * Includes all expected and current values of the CNAME records.\n * @readonly\n */\n invalidCnameRecordInfo?: InvalidRecordInfo;\n}\n\nexport enum InvalidRecord {\n /** The propagation of the A record has failed. */\n INVALID_A_RECORD = 'INVALID_A_RECORD',\n /** The propagation of the NS record has failed. */\n INVALID_NS_RECORD = 'INVALID_NS_RECORD',\n /** The propagation of at least one CNAME record has failed. */\n INVALID_CNAME_RECORD = 'INVALID_CNAME_RECORD',\n}\n\n/** @enumType */\nexport type InvalidRecordWithLiterals =\n | InvalidRecord\n | 'INVALID_A_RECORD'\n | 'INVALID_NS_RECORD'\n | 'INVALID_CNAME_RECORD';\n\nexport interface InvalidRecordInfo {\n /**\n * The DNS records that should be configured in the external database. Note that there can only be a single A and NS record.\n *\n * Max: 10 DNS records\n * @maxSize 10\n * @readonly\n */\n expectedDnsRecords?: DnsRecord[];\n /**\n * DNS records currently configured in the external database. Note that there can only be a single A and NS record.\n * @maxSize 10\n * @readonly\n */\n actualDnsRecords?: DnsRecord[];\n}\n\nexport interface DnsRecord {\n /**\n * Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.\n * @format HOSTNAME\n * @readonly\n */\n hostName?: string;\n /**\n * Values associated with the DNS record. For example, IP addresses for A records or server names for NS records.\n *\n * Min: 1 value\n * Max: 10 values\n * @minSize 1\n * @maxSize 10\n * @readonly\n */\n values?: string[];\n}\n\nexport interface CreateDnsPropagationRequest {\n /** DNS propagation to create. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface CreateDnsPropagationResponse {\n /** Created DNS propagation. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface GetDnsPropagationRequest {\n /**\n * ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId: string;\n}\n\nexport interface GetDnsPropagationResponse {\n /** Retrieved DNS propagation. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface CheckDnsPropagationRequest {\n /**\n * ID of the DNS propagation to check the propagation status for.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n}\n\nexport interface CheckDnsPropagationResponse {\n /** Retrieved DNS propagation with current status. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface ScheduleDnsPropagationChecksRequest {\n /**\n * ID of the DNS propagation to schedule a check for.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n}\n\nexport interface ScheduleDnsPropagationChecksResponse {}\n\nexport interface SyncDnsPropagationDomainRequest {\n /**\n * ID of the DNS propagation to synchronize.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n /**\n * Whether to perform a dry run without making actual changes.\n *\n * If true, reports sync issues without applying any fixes.\n * If false, attempts to resolve detected issues.\n *\n * Default: `false`\n */\n dryRunEnabled?: boolean | null;\n}\n\nexport interface SyncDnsPropagationDomainResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n * @param dnsPropagationId - ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @public\n * @requiredField dnsPropagationId\n * @permissionId DOMAINS.READ_DNS_PROPAGATION\n * @returns Retrieved DNS propagation.\n * @fqn com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation\n */\nexport async function getDnsPropagation(\n dnsPropagationId: string\n): Promise<\n NonNullablePaths<\n DnsPropagation,\n | `failureInfo.invalidRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords.${number}.hostName`\n | `failureInfo.invalidARecordInfo.actualDnsRecords`\n | `_id`\n | `domain`\n | `status`,\n 6\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 dnsPropagationId: dnsPropagationId,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1DnsPropagation.getDnsPropagation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.dnsPropagation!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { dnsPropagationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['dnsPropagationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_dns-propagation';\n\n/**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n */\nexport function getDnsPropagation(payload: object): RequestOptionsFactory<any> {\n function __getDnsPropagation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.dns_propagation',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(\n {\n protoPath: '/v1/dns-propagations/{dnsPropagationId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dnsPropagation.createdDate' },\n { path: 'dnsPropagation.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDnsPropagation;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAAA;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,qEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;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I,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,QAAM,UACwC,kBAAkB,OAAO;AAEvE,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,kBAAkB,OAAO;AAAA,QACrD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,kBAAkB;AAAA,IACrB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["getDnsPropagation","import_rest_modules","payload","Status","InvalidRecord","WebhookIdentityType","getDnsPropagation","sdkTransformError"]}
|
|
1
|
+
{"version":3,"sources":["../../index.typings.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.universal.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.http.ts"],"sourcesContent":["export * from './src/premium-domains-v1-dns-propagation-dns-propagation.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 ambassadorWixPremiumDomainsV1DnsPropagation from './premium-domains-v1-dns-propagation-dns-propagation.http.js';\n\n/**\n * The DNS (Domain Name System) propagation object contains information for a domain.\n * Tracks whether the DNS records are correctly configured and propagated globally.\n * Learn more [about DNS propagation](https://support.wix.com/en/article/about-domain-propagation).\n */\nexport interface DnsPropagation extends DnsPropagationStatusInfoOneOf {\n /**\n * Details about DNS propagation failure, including which record types failed.\n * Only present when `status` is `FAILED`.\n * @readonly\n */\n failureInfo?: FailedStatusInfo;\n /**\n * ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain).\n * @format HOSTNAME\n * @readonly\n */\n _id?: string;\n /**\n * Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported.\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * Revision number, which increments by 1 each time the DNS propagation\n * is updated. Ignored when creating a DNS propagation.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the DNS propagation was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the DNS propagation was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Current status of the DNS propagation. Can take up to 3 days to complete.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Whether Wix name servers were detected among the domain's name servers.\n * For subdomains, this value matches the root domain's setting.\n * @readonly\n */\n dnsResolverIncludesWixNs?: boolean | null;\n}\n\n/** @oneof */\nexport interface DnsPropagationStatusInfoOneOf {\n /**\n * Details about DNS propagation failure, including which record types failed.\n * Only present when `status` is `FAILED`.\n * @readonly\n */\n failureInfo?: FailedStatusInfo;\n}\n\nexport enum Status {\n /** DNS propagation completed successfully. All required DNS records are properly configured and propagated. */\n SUCCEEDED = 'SUCCEEDED',\n /** DNS propagation failed. One or more DNS records are incorrectly configured or haven't propagated. */\n FAILED = 'FAILED',\n /** DNS propagation is in progress. Check again later for updated status. */\n IN_PROGRESS = 'IN_PROGRESS',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'SUCCEEDED'\n | 'FAILED'\n | 'IN_PROGRESS';\n\nexport interface FailedStatusInfo {\n /**\n * The DNS record types that failed propagation.\n *\n * Max: 3 invalid records\n * @readonly\n */\n invalidRecords?: InvalidRecordWithLiterals[];\n /**\n * Details about the A record for which the DNS propagation has failed.\n * Includes all expected and current values of the A record.\n * @readonly\n */\n invalidARecordInfo?: InvalidRecordInfo;\n /**\n * Details about the NS (nameserver) record for which the DNS propagation has failed.\n * Includes all expected and current values of the NS record.\n * @readonly\n */\n invalidNsRecordInfo?: InvalidRecordInfo;\n /**\n * Details about the CNAME record for which the DNS propagation has failed.\n * Includes all expected and current values of the CNAME records.\n * @readonly\n */\n invalidCnameRecordInfo?: InvalidRecordInfo;\n}\n\nexport enum InvalidRecord {\n /** The propagation of the A record has failed. */\n INVALID_A_RECORD = 'INVALID_A_RECORD',\n /** The propagation of the NS record has failed. */\n INVALID_NS_RECORD = 'INVALID_NS_RECORD',\n /** The propagation of at least one CNAME record has failed. */\n INVALID_CNAME_RECORD = 'INVALID_CNAME_RECORD',\n}\n\n/** @enumType */\nexport type InvalidRecordWithLiterals =\n | InvalidRecord\n | 'INVALID_A_RECORD'\n | 'INVALID_NS_RECORD'\n | 'INVALID_CNAME_RECORD';\n\nexport interface InvalidRecordInfo {\n /**\n * The DNS records that should be configured in the external database. Note that there can only be a single A and NS record.\n *\n * Max: 10 DNS records\n * @maxSize 10\n * @readonly\n */\n expectedDnsRecords?: DnsRecord[];\n /**\n * DNS records currently configured in the external database. Note that there can only be a single A and NS record.\n * @maxSize 10\n * @readonly\n */\n actualDnsRecords?: DnsRecord[];\n}\n\nexport interface DnsRecord {\n /**\n * Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.\n * @format HOSTNAME\n * @readonly\n */\n hostName?: string;\n /**\n * Values associated with the DNS record. For example, IP addresses for A records or server names for NS records.\n *\n * Min: 1 value\n * Max: 10 values\n * @minSize 1\n * @maxSize 10\n * @readonly\n */\n values?: string[];\n}\n\nexport interface CreateDnsPropagationRequest {\n /** DNS propagation to create. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface CreateDnsPropagationResponse {\n /** Created DNS propagation. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface GetDnsPropagationRequest {\n /**\n * ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId: string;\n /**\n * Whether to retrieve the most up-to-date DNS propagation data.\n * @internal\n */\n consistent?: boolean;\n}\n\nexport interface GetDnsPropagationResponse {\n /** Retrieved DNS propagation. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface CheckDnsPropagationRequest {\n /**\n * ID of the DNS propagation to check the propagation status for.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n}\n\nexport interface CheckDnsPropagationResponse {\n /** Retrieved DNS propagation with current status. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface ScheduleDnsPropagationChecksRequest {\n /**\n * ID of the DNS propagation to schedule a check for.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n}\n\nexport interface ScheduleDnsPropagationChecksResponse {}\n\nexport interface SyncDnsPropagationDomainRequest {\n /**\n * ID of the DNS propagation to synchronize.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n /**\n * Whether to perform a dry run without making actual changes.\n *\n * If true, reports sync issues without applying any fixes.\n * If false, attempts to resolve detected issues.\n *\n * Default: `false`\n */\n dryRunEnabled?: boolean | null;\n}\n\nexport interface SyncDnsPropagationDomainResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n * @param dnsPropagationId - ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @public\n * @requiredField dnsPropagationId\n * @permissionId DOMAINS.READ_DNS_PROPAGATION\n * @returns Retrieved DNS propagation.\n * @fqn com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation\n */\nexport async function getDnsPropagation(\n dnsPropagationId: string\n): Promise<\n NonNullablePaths<\n DnsPropagation,\n | `failureInfo.invalidRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords.${number}.hostName`\n | `failureInfo.invalidARecordInfo.actualDnsRecords`\n | `_id`\n | `domain`\n | `status`,\n 6\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 dnsPropagationId: dnsPropagationId,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1DnsPropagation.getDnsPropagation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.dnsPropagation!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { dnsPropagationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['dnsPropagationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_dns-propagation';\n\n/**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n */\nexport function getDnsPropagation(payload: object): RequestOptionsFactory<any> {\n function __getDnsPropagation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.dns_propagation',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(\n {\n protoPath: '/v1/dns-propagations/{dnsPropagationId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dnsPropagation.createdDate' },\n { path: 'dnsPropagation.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDnsPropagation;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAAA;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+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A,uBAAoB;AAEpB,EAAAA,eAAA,0BAAuB;AANb,SAAAA;AAAA,GAAA;AAsQL,IAAK,sBAAL,kBAAKC,yBAAL;AACL,EAAAA,qBAAA,aAAU;AACV,EAAAA,qBAAA,uBAAoB;AACpB,EAAAA,qBAAA,YAAS;AACT,EAAAA,qBAAA,cAAW;AACX,EAAAA,qBAAA,SAAM;AALI,SAAAA;AAAA,GAAA;AA+CZ,eAAsBC,mBACpB,kBAaA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,QAAM,UACwC,kBAAkB,OAAO;AAEvE,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,kBAAkB,OAAO;AAAA,QACrD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,kBAAkB;AAAA,IACrB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["getDnsPropagation","import_rest_modules","payload","Status","InvalidRecord","WebhookIdentityType","getDnsPropagation","sdkTransformError"]}
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.http.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.types.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.meta.ts"],"sourcesContent":["export * from './src/premium-domains-v1-dns-propagation-dns-propagation.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_dns-propagation';\n\n/**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n */\nexport function getDnsPropagation(payload: object): RequestOptionsFactory<any> {\n function __getDnsPropagation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.dns_propagation',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(\n {\n protoPath: '/v1/dns-propagations/{dnsPropagationId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dnsPropagation.createdDate' },\n { path: 'dnsPropagation.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDnsPropagation;\n}\n","/**\n * The DNS (Domain Name System) propagation object contains information for a domain.\n * Tracks whether the DNS records are correctly configured and propagated globally.\n * Learn more [about DNS propagation](https://support.wix.com/en/article/about-domain-propagation).\n */\nexport interface DnsPropagation extends DnsPropagationStatusInfoOneOf {\n /**\n * Details about DNS propagation failure, including which record types failed.\n * Only present when `status` is `FAILED`.\n * @readonly\n */\n failureInfo?: FailedStatusInfo;\n /**\n * ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain).\n * @format HOSTNAME\n * @readonly\n */\n id?: string;\n /**\n * Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported.\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * Revision number, which increments by 1 each time the DNS propagation\n * is updated. Ignored when creating a DNS propagation.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the DNS propagation was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the DNS propagation was updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Current status of the DNS propagation. Can take up to 3 days to complete.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Whether Wix name servers were detected among the domain's name servers.\n * For subdomains, this value matches the root domain's setting.\n * @readonly\n */\n dnsResolverIncludesWixNs?: boolean | null;\n}\n\n/** @oneof */\nexport interface DnsPropagationStatusInfoOneOf {\n /**\n * Details about DNS propagation failure, including which record types failed.\n * Only present when `status` is `FAILED`.\n * @readonly\n */\n failureInfo?: FailedStatusInfo;\n}\n\nexport enum Status {\n /** DNS propagation completed successfully. All required DNS records are properly configured and propagated. */\n SUCCEEDED = 'SUCCEEDED',\n /** DNS propagation failed. One or more DNS records are incorrectly configured or haven't propagated. */\n FAILED = 'FAILED',\n /** DNS propagation is in progress. Check again later for updated status. */\n IN_PROGRESS = 'IN_PROGRESS',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'SUCCEEDED'\n | 'FAILED'\n | 'IN_PROGRESS';\n\nexport interface FailedStatusInfo {\n /**\n * The DNS record types that failed propagation.\n *\n * Max: 3 invalid records\n * @readonly\n */\n invalidRecords?: InvalidRecordWithLiterals[];\n /**\n * Details about the A record for which the DNS propagation has failed.\n * Includes all expected and current values of the A record.\n * @readonly\n */\n invalidARecordInfo?: InvalidRecordInfo;\n /**\n * Details about the NS (nameserver) record for which the DNS propagation has failed.\n * Includes all expected and current values of the NS record.\n * @readonly\n */\n invalidNsRecordInfo?: InvalidRecordInfo;\n /**\n * Details about the CNAME record for which the DNS propagation has failed.\n * Includes all expected and current values of the CNAME records.\n * @readonly\n */\n invalidCnameRecordInfo?: InvalidRecordInfo;\n}\n\nexport enum InvalidRecord {\n /** The propagation of the A record has failed. */\n INVALID_A_RECORD = 'INVALID_A_RECORD',\n /** The propagation of the NS record has failed. */\n INVALID_NS_RECORD = 'INVALID_NS_RECORD',\n /** The propagation of at least one CNAME record has failed. */\n INVALID_CNAME_RECORD = 'INVALID_CNAME_RECORD',\n}\n\n/** @enumType */\nexport type InvalidRecordWithLiterals =\n | InvalidRecord\n | 'INVALID_A_RECORD'\n | 'INVALID_NS_RECORD'\n | 'INVALID_CNAME_RECORD';\n\nexport interface InvalidRecordInfo {\n /**\n * The DNS records that should be configured in the external database. Note that there can only be a single A and NS record.\n *\n * Max: 10 DNS records\n * @maxSize 10\n * @readonly\n */\n expectedDnsRecords?: DnsRecord[];\n /**\n * DNS records currently configured in the external database. Note that there can only be a single A and NS record.\n * @maxSize 10\n * @readonly\n */\n actualDnsRecords?: DnsRecord[];\n}\n\nexport interface DnsRecord {\n /**\n * Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.\n * @format HOSTNAME\n * @readonly\n */\n hostName?: string;\n /**\n * Values associated with the DNS record. For example, IP addresses for A records or server names for NS records.\n *\n * Min: 1 value\n * Max: 10 values\n * @minSize 1\n * @maxSize 10\n * @readonly\n */\n values?: string[];\n}\n\nexport interface CreateDnsPropagationRequest {\n /** DNS propagation to create. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface CreateDnsPropagationResponse {\n /** Created DNS propagation. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface GetDnsPropagationRequest {\n /**\n * ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId: string;\n}\n\nexport interface GetDnsPropagationResponse {\n /** Retrieved DNS propagation. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface CheckDnsPropagationRequest {\n /**\n * ID of the DNS propagation to check the propagation status for.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n}\n\nexport interface CheckDnsPropagationResponse {\n /** Retrieved DNS propagation with current status. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface ScheduleDnsPropagationChecksRequest {\n /**\n * ID of the DNS propagation to schedule a check for.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n}\n\nexport interface ScheduleDnsPropagationChecksResponse {}\n\nexport interface SyncDnsPropagationDomainRequest {\n /**\n * ID of the DNS propagation to synchronize.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n /**\n * Whether to perform a dry run without making actual changes.\n *\n * If true, reports sync issues without applying any fixes.\n * If false, attempts to resolve detected issues.\n *\n * Default: `false`\n */\n dryRunEnabled?: boolean | null;\n}\n\nexport interface SyncDnsPropagationDomainResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n","import * as ambassadorWixPremiumDomainsV1DnsPropagation from './premium-domains-v1-dns-propagation-dns-propagation.http.js';\nimport * as ambassadorWixPremiumDomainsV1DnsPropagationTypes from './premium-domains-v1-dns-propagation-dns-propagation.types.js';\nimport * as ambassadorWixPremiumDomainsV1DnsPropagationUniversalTypes from './premium-domains-v1-dns-propagation-dns-propagation.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 getDnsPropagation(): __PublicMethodMetaInfo<\n 'GET',\n { dnsPropagationId: string },\n ambassadorWixPremiumDomainsV1DnsPropagationUniversalTypes.GetDnsPropagationRequest,\n ambassadorWixPremiumDomainsV1DnsPropagationTypes.GetDnsPropagationRequest,\n ambassadorWixPremiumDomainsV1DnsPropagationUniversalTypes.GetDnsPropagationResponse,\n ambassadorWixPremiumDomainsV1DnsPropagationTypes.GetDnsPropagationResponse\n> {\n const payload = { dnsPropagationId: ':dnsPropagationId' } as any;\n\n const getRequestOptions =\n ambassadorWixPremiumDomainsV1DnsPropagation.getDnsPropagation(payload);\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/dns-propagations/{dnsPropagationId}',\n pathParams: { dnsPropagationId: 'dnsPropagationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n DnsPropagation as DnsPropagationOriginal,\n DnsPropagationStatusInfoOneOf as DnsPropagationStatusInfoOneOfOriginal,\n Status as StatusOriginal,\n StatusWithLiterals as StatusWithLiteralsOriginal,\n FailedStatusInfo as FailedStatusInfoOriginal,\n InvalidRecord as InvalidRecordOriginal,\n InvalidRecordWithLiterals as InvalidRecordWithLiteralsOriginal,\n InvalidRecordInfo as InvalidRecordInfoOriginal,\n DnsRecord as DnsRecordOriginal,\n CreateDnsPropagationRequest as CreateDnsPropagationRequestOriginal,\n CreateDnsPropagationResponse as CreateDnsPropagationResponseOriginal,\n GetDnsPropagationRequest as GetDnsPropagationRequestOriginal,\n GetDnsPropagationResponse as GetDnsPropagationResponseOriginal,\n CheckDnsPropagationRequest as CheckDnsPropagationRequestOriginal,\n CheckDnsPropagationResponse as CheckDnsPropagationResponseOriginal,\n ScheduleDnsPropagationChecksRequest as ScheduleDnsPropagationChecksRequestOriginal,\n ScheduleDnsPropagationChecksResponse as ScheduleDnsPropagationChecksResponseOriginal,\n SyncDnsPropagationDomainRequest as SyncDnsPropagationDomainRequestOriginal,\n SyncDnsPropagationDomainResponse as SyncDnsPropagationDomainResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n} from './premium-domains-v1-dns-propagation-dns-propagation.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAAA;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBA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AEnB,EAAAA,eAAA,uBAAoB;AAEpB,EAAAA,eAAA,0BAAuB;AANb,SAAAA;AAAA,GAAA;AAmQL,IAAK,sBAAL,kBAAKC,yBAAL;AACL,EAAAA,qBAAA,aAAU;AACV,EAAAA,qBAAA,uBAAoB;AACpB,EAAAA,qBAAA,YAAS;AACT,EAAAA,qBAAA,cAAW;AACX,EAAAA,qBAAA,SAAM;AALI,SAAAA;AAAA,GAAA;;;ACvVL,SAASC,qBAOd;AACA,QAAM,UAAU,EAAE,kBAAkB,oBAAoB;AAExD,QAAM,oBACwC,kBAAkB,OAAO;AAEvE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,kBAAkB,mBAAmB;AAAA,IACnD,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getDnsPropagation","import_rest_modules","payload","Status","InvalidRecord","WebhookIdentityType","getDnsPropagation"]}
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.http.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.types.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.meta.ts"],"sourcesContent":["export * from './src/premium-domains-v1-dns-propagation-dns-propagation.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_dns-propagation';\n\n/**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n */\nexport function getDnsPropagation(payload: object): RequestOptionsFactory<any> {\n function __getDnsPropagation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.dns_propagation',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(\n {\n protoPath: '/v1/dns-propagations/{dnsPropagationId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dnsPropagation.createdDate' },\n { path: 'dnsPropagation.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDnsPropagation;\n}\n","/**\n * The DNS (Domain Name System) propagation object contains information for a domain.\n * Tracks whether the DNS records are correctly configured and propagated globally.\n * Learn more [about DNS propagation](https://support.wix.com/en/article/about-domain-propagation).\n */\nexport interface DnsPropagation extends DnsPropagationStatusInfoOneOf {\n /**\n * Details about DNS propagation failure, including which record types failed.\n * Only present when `status` is `FAILED`.\n * @readonly\n */\n failureInfo?: FailedStatusInfo;\n /**\n * ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain).\n * @format HOSTNAME\n * @readonly\n */\n id?: string;\n /**\n * Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported.\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * Revision number, which increments by 1 each time the DNS propagation\n * is updated. Ignored when creating a DNS propagation.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the DNS propagation was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the DNS propagation was updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Current status of the DNS propagation. Can take up to 3 days to complete.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Whether Wix name servers were detected among the domain's name servers.\n * For subdomains, this value matches the root domain's setting.\n * @readonly\n */\n dnsResolverIncludesWixNs?: boolean | null;\n}\n\n/** @oneof */\nexport interface DnsPropagationStatusInfoOneOf {\n /**\n * Details about DNS propagation failure, including which record types failed.\n * Only present when `status` is `FAILED`.\n * @readonly\n */\n failureInfo?: FailedStatusInfo;\n}\n\nexport enum Status {\n /** DNS propagation completed successfully. All required DNS records are properly configured and propagated. */\n SUCCEEDED = 'SUCCEEDED',\n /** DNS propagation failed. One or more DNS records are incorrectly configured or haven't propagated. */\n FAILED = 'FAILED',\n /** DNS propagation is in progress. Check again later for updated status. */\n IN_PROGRESS = 'IN_PROGRESS',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'SUCCEEDED'\n | 'FAILED'\n | 'IN_PROGRESS';\n\nexport interface FailedStatusInfo {\n /**\n * The DNS record types that failed propagation.\n *\n * Max: 3 invalid records\n * @readonly\n */\n invalidRecords?: InvalidRecordWithLiterals[];\n /**\n * Details about the A record for which the DNS propagation has failed.\n * Includes all expected and current values of the A record.\n * @readonly\n */\n invalidARecordInfo?: InvalidRecordInfo;\n /**\n * Details about the NS (nameserver) record for which the DNS propagation has failed.\n * Includes all expected and current values of the NS record.\n * @readonly\n */\n invalidNsRecordInfo?: InvalidRecordInfo;\n /**\n * Details about the CNAME record for which the DNS propagation has failed.\n * Includes all expected and current values of the CNAME records.\n * @readonly\n */\n invalidCnameRecordInfo?: InvalidRecordInfo;\n}\n\nexport enum InvalidRecord {\n /** The propagation of the A record has failed. */\n INVALID_A_RECORD = 'INVALID_A_RECORD',\n /** The propagation of the NS record has failed. */\n INVALID_NS_RECORD = 'INVALID_NS_RECORD',\n /** The propagation of at least one CNAME record has failed. */\n INVALID_CNAME_RECORD = 'INVALID_CNAME_RECORD',\n}\n\n/** @enumType */\nexport type InvalidRecordWithLiterals =\n | InvalidRecord\n | 'INVALID_A_RECORD'\n | 'INVALID_NS_RECORD'\n | 'INVALID_CNAME_RECORD';\n\nexport interface InvalidRecordInfo {\n /**\n * The DNS records that should be configured in the external database. Note that there can only be a single A and NS record.\n *\n * Max: 10 DNS records\n * @maxSize 10\n * @readonly\n */\n expectedDnsRecords?: DnsRecord[];\n /**\n * DNS records currently configured in the external database. Note that there can only be a single A and NS record.\n * @maxSize 10\n * @readonly\n */\n actualDnsRecords?: DnsRecord[];\n}\n\nexport interface DnsRecord {\n /**\n * Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.\n * @format HOSTNAME\n * @readonly\n */\n hostName?: string;\n /**\n * Values associated with the DNS record. For example, IP addresses for A records or server names for NS records.\n *\n * Min: 1 value\n * Max: 10 values\n * @minSize 1\n * @maxSize 10\n * @readonly\n */\n values?: string[];\n}\n\nexport interface CreateDnsPropagationRequest {\n /** DNS propagation to create. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface CreateDnsPropagationResponse {\n /** Created DNS propagation. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface GetDnsPropagationRequest {\n /**\n * ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId: string;\n /**\n * Whether to retrieve the most up-to-date DNS propagation data.\n * @internal\n */\n consistent?: boolean;\n}\n\nexport interface GetDnsPropagationResponse {\n /** Retrieved DNS propagation. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface CheckDnsPropagationRequest {\n /**\n * ID of the DNS propagation to check the propagation status for.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n}\n\nexport interface CheckDnsPropagationResponse {\n /** Retrieved DNS propagation with current status. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface ScheduleDnsPropagationChecksRequest {\n /**\n * ID of the DNS propagation to schedule a check for.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n}\n\nexport interface ScheduleDnsPropagationChecksResponse {}\n\nexport interface SyncDnsPropagationDomainRequest {\n /**\n * ID of the DNS propagation to synchronize.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n /**\n * Whether to perform a dry run without making actual changes.\n *\n * If true, reports sync issues without applying any fixes.\n * If false, attempts to resolve detected issues.\n *\n * Default: `false`\n */\n dryRunEnabled?: boolean | null;\n}\n\nexport interface SyncDnsPropagationDomainResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n","import * as ambassadorWixPremiumDomainsV1DnsPropagation from './premium-domains-v1-dns-propagation-dns-propagation.http.js';\nimport * as ambassadorWixPremiumDomainsV1DnsPropagationTypes from './premium-domains-v1-dns-propagation-dns-propagation.types.js';\nimport * as ambassadorWixPremiumDomainsV1DnsPropagationUniversalTypes from './premium-domains-v1-dns-propagation-dns-propagation.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 getDnsPropagation(): __PublicMethodMetaInfo<\n 'GET',\n { dnsPropagationId: string },\n ambassadorWixPremiumDomainsV1DnsPropagationUniversalTypes.GetDnsPropagationRequest,\n ambassadorWixPremiumDomainsV1DnsPropagationTypes.GetDnsPropagationRequest,\n ambassadorWixPremiumDomainsV1DnsPropagationUniversalTypes.GetDnsPropagationResponse,\n ambassadorWixPremiumDomainsV1DnsPropagationTypes.GetDnsPropagationResponse\n> {\n const payload = { dnsPropagationId: ':dnsPropagationId' } as any;\n\n const getRequestOptions =\n ambassadorWixPremiumDomainsV1DnsPropagation.getDnsPropagation(payload);\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/dns-propagations/{dnsPropagationId}',\n pathParams: { dnsPropagationId: 'dnsPropagationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n DnsPropagation as DnsPropagationOriginal,\n DnsPropagationStatusInfoOneOf as DnsPropagationStatusInfoOneOfOriginal,\n Status as StatusOriginal,\n StatusWithLiterals as StatusWithLiteralsOriginal,\n FailedStatusInfo as FailedStatusInfoOriginal,\n InvalidRecord as InvalidRecordOriginal,\n InvalidRecordWithLiterals as InvalidRecordWithLiteralsOriginal,\n InvalidRecordInfo as InvalidRecordInfoOriginal,\n DnsRecord as DnsRecordOriginal,\n CreateDnsPropagationRequest as CreateDnsPropagationRequestOriginal,\n CreateDnsPropagationResponse as CreateDnsPropagationResponseOriginal,\n GetDnsPropagationRequest as GetDnsPropagationRequestOriginal,\n GetDnsPropagationResponse as GetDnsPropagationResponseOriginal,\n CheckDnsPropagationRequest as CheckDnsPropagationRequestOriginal,\n CheckDnsPropagationResponse as CheckDnsPropagationResponseOriginal,\n ScheduleDnsPropagationChecksRequest as ScheduleDnsPropagationChecksRequestOriginal,\n ScheduleDnsPropagationChecksResponse as ScheduleDnsPropagationChecksResponseOriginal,\n SyncDnsPropagationDomainRequest as SyncDnsPropagationDomainRequestOriginal,\n SyncDnsPropagationDomainResponse as SyncDnsPropagationDomainResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n} from './premium-domains-v1-dns-propagation-dns-propagation.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAAA;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,qEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAQd,SAAS,kBAAkB,SAA6C;AAC7E,WAAS,oBAAoB,EAAE,KAAK,GAAQ;AAC1C,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,Q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AAAA,IACnD,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getDnsPropagation","import_rest_modules","payload","Status","InvalidRecord","WebhookIdentityType","getDnsPropagation"]}
|
package/build/cjs/schemas.js
CHANGED
|
@@ -37,12 +37,12 @@ module.exports = __toCommonJS(schemas_exports);
|
|
|
37
37
|
|
|
38
38
|
// src/premium-domains-v1-dns-propagation-dns-propagation.schemas.ts
|
|
39
39
|
var z = __toESM(require("zod"));
|
|
40
|
-
var GetDnsPropagationRequest = z.object({
|
|
40
|
+
var GetDnsPropagationRequest = /* @__PURE__ */ z.object({
|
|
41
41
|
dnsPropagationId: z.string().describe(
|
|
42
42
|
"ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology)."
|
|
43
43
|
)
|
|
44
44
|
});
|
|
45
|
-
var GetDnsPropagationResponse = z.intersection(
|
|
45
|
+
var GetDnsPropagationResponse = /* @__PURE__ */ z.intersection(
|
|
46
46
|
z.object({
|
|
47
47
|
_id: z.string().describe(
|
|
48
48
|
"ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain)."
|
package/build/cjs/schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../schemas.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.schemas.ts"],"sourcesContent":["export * from './src/premium-domains-v1-dns-propagation-dns-propagation.schemas.js';\n","import * as z from 'zod';\n\nexport const GetDnsPropagationRequest = z.object({\n dnsPropagationId: z\n .string()\n .describe(\n 'ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).'\n ),\n});\nexport const GetDnsPropagationResponse = z.intersection(\n z.object({\n _id: z\n .string()\n .describe(\n 'ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain).'\n )\n .optional(),\n domain: z\n .string()\n .describe(\n 'Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported.'\n )\n .optional(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the DNS propagation\\nis updated. Ignored when creating a DNS propagation.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the DNS propagation was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the DNS propagation was updated.')\n .optional()\n .nullable(),\n status: z\n .enum(['SUCCEEDED', 'FAILED', 'IN_PROGRESS'])\n .describe(\n 'Current status of the DNS propagation. Can take up to 3 days to complete.'\n )\n .optional(),\n dnsResolverIncludesWixNs: z\n .boolean()\n .describe(\n \"Whether Wix name servers were detected among the domain's name servers.\\nFor subdomains, this value matches the root domain's setting.\"\n )\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({ failureInfo: z.never().optional() }),\n z.object({\n failureInfo: z\n .object({\n invalidRecords: z\n .array(\n z.enum([\n 'INVALID_A_RECORD',\n 'INVALID_NS_RECORD',\n 'INVALID_CNAME_RECORD',\n ])\n )\n .optional(),\n invalidARecordInfo: z\n .object({\n expectedDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n actualDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe(\n 'Details about the A record for which the DNS propagation has failed.\\nIncludes all expected and current values of the A record.'\n )\n .optional(),\n invalidNsRecordInfo: z\n .object({\n expectedDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n actualDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe(\n 'Details about the NS (nameserver) record for which the DNS propagation has failed.\\nIncludes all expected and current values of the NS record.'\n )\n .optional(),\n invalidCnameRecordInfo: z\n .object({\n expectedDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n actualDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe(\n 'Details about the CNAME record for which the DNS propagation has failed.\\nIncludes all expected and current values of the CNAME records.'\n )\n .optional(),\n })\n .describe(\n 'Details about DNS propagation failure, including which record types failed.\\nOnly present when `status` is `FAILED`.'\n ),\n }),\n ])\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,
|
|
1
|
+
{"version":3,"sources":["../../schemas.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.schemas.ts"],"sourcesContent":["export * from './src/premium-domains-v1-dns-propagation-dns-propagation.schemas.js';\n","import * as z from 'zod';\n\nexport const GetDnsPropagationRequest = /*#__PURE__*/ z.object({\n dnsPropagationId: z\n .string()\n .describe(\n 'ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).'\n ),\n});\nexport const GetDnsPropagationResponse = /*#__PURE__*/ z.intersection(\n z.object({\n _id: z\n .string()\n .describe(\n 'ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain).'\n )\n .optional(),\n domain: z\n .string()\n .describe(\n 'Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported.'\n )\n .optional(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the DNS propagation\\nis updated. Ignored when creating a DNS propagation.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the DNS propagation was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the DNS propagation was updated.')\n .optional()\n .nullable(),\n status: z\n .enum(['SUCCEEDED', 'FAILED', 'IN_PROGRESS'])\n .describe(\n 'Current status of the DNS propagation. Can take up to 3 days to complete.'\n )\n .optional(),\n dnsResolverIncludesWixNs: z\n .boolean()\n .describe(\n \"Whether Wix name servers were detected among the domain's name servers.\\nFor subdomains, this value matches the root domain's setting.\"\n )\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({ failureInfo: z.never().optional() }),\n z.object({\n failureInfo: z\n .object({\n invalidRecords: z\n .array(\n z.enum([\n 'INVALID_A_RECORD',\n 'INVALID_NS_RECORD',\n 'INVALID_CNAME_RECORD',\n ])\n )\n .optional(),\n invalidARecordInfo: z\n .object({\n expectedDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n actualDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe(\n 'Details about the A record for which the DNS propagation has failed.\\nIncludes all expected and current values of the A record.'\n )\n .optional(),\n invalidNsRecordInfo: z\n .object({\n expectedDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n actualDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe(\n 'Details about the NS (nameserver) record for which the DNS propagation has failed.\\nIncludes all expected and current values of the NS record.'\n )\n .optional(),\n invalidCnameRecordInfo: z\n .object({\n expectedDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n actualDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe(\n 'Details about the CNAME record for which the DNS propagation has failed.\\nIncludes all expected and current values of the CNAME records.'\n )\n .optional(),\n })\n .describe(\n 'Details about DNS propagation failure, including which record types failed.\\nOnly present when `status` is `FAILED`.'\n ),\n }),\n ])\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,2BAAyC,gBAAE,SAAO;AAAA,EAC7D,kBACG,SAAO,EACP;AAAA,IACC;AAAA,EACF;AACJ,CAAC;AACM,IAAM,4BAA0C,gBAAE;AAAA,EACrD,SAAO;AAAA,IACP,KACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,QACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,UACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,gDAAgD,EACzD,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,gDAAgD,EACzD,SAAS,EACT,SAAS;AAAA,IACZ,QACG,OAAK,CAAC,aAAa,UAAU,aAAa,CAAC,EAC3C;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,0BACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC;AAAA,EACC,MAAI;AAAA,IACF,SAAO,EAAE,aAAe,QAAM,EAAE,SAAS,EAAE,CAAC;AAAA,IAC5C,SAAO;AAAA,MACP,aACG,SAAO;AAAA,QACN,gBACG;AAAA,UACG,OAAK;AAAA,YACL;AAAA,YACA;AAAA,YACA;AAAA,UACF,CAAC;AAAA,QACH,EACC,SAAS;AAAA,QACZ,oBACG,SAAO;AAAA,UACN,oBACG;AAAA,YACG,S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I,EAAE,EAAE,SAAS;AAAA,YACtD,CAAC;AAAA,UACH,EACC,IAAI,EAAE,EACN,SAAS;AAAA,UACZ,kBACG;AAAA,YACG,SAAO;AAAA,cACP,UACG,SAAO,EACP;AAAA,gBACC;AAAA,cACF,EACC,SAAS;AAAA,cACZ,QAAU,QAAQ,SAAO,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,YACtD,CAAC;AAAA,UACH,EACC,IAAI,EAAE,EACN,SAAS;AAAA,QACd,CAAC,EACA;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF;AAAA,IACJ,CAAC;AAAA,EACH,CAAC;AACH;","names":[]}
|
package/build/es/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/premium-domains-v1-dns-propagation-dns-propagation.universal.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.http.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.public.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.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 ambassadorWixPremiumDomainsV1DnsPropagation from './premium-domains-v1-dns-propagation-dns-propagation.http.js';\n\n/**\n * The DNS (Domain Name System) propagation object contains information for a domain.\n * Tracks whether the DNS records are correctly configured and propagated globally.\n * Learn more [about DNS propagation](https://support.wix.com/en/article/about-domain-propagation).\n */\nexport interface DnsPropagation extends DnsPropagationStatusInfoOneOf {\n /**\n * Details about DNS propagation failure, including which record types failed.\n * Only present when `status` is `FAILED`.\n * @readonly\n */\n failureInfo?: FailedStatusInfo;\n /**\n * ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain).\n * @format HOSTNAME\n * @readonly\n */\n _id?: string;\n /**\n * Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported.\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * Revision number, which increments by 1 each time the DNS propagation\n * is updated. Ignored when creating a DNS propagation.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the DNS propagation was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the DNS propagation was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Current status of the DNS propagation. Can take up to 3 days to complete.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Whether Wix name servers were detected among the domain's name servers.\n * For subdomains, this value matches the root domain's setting.\n * @readonly\n */\n dnsResolverIncludesWixNs?: boolean | null;\n}\n\n/** @oneof */\nexport interface DnsPropagationStatusInfoOneOf {\n /**\n * Details about DNS propagation failure, including which record types failed.\n * Only present when `status` is `FAILED`.\n * @readonly\n */\n failureInfo?: FailedStatusInfo;\n}\n\nexport enum Status {\n /** DNS propagation completed successfully. All required DNS records are properly configured and propagated. */\n SUCCEEDED = 'SUCCEEDED',\n /** DNS propagation failed. One or more DNS records are incorrectly configured or haven't propagated. */\n FAILED = 'FAILED',\n /** DNS propagation is in progress. Check again later for updated status. */\n IN_PROGRESS = 'IN_PROGRESS',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'SUCCEEDED'\n | 'FAILED'\n | 'IN_PROGRESS';\n\nexport interface FailedStatusInfo {\n /**\n * The DNS record types that failed propagation.\n *\n * Max: 3 invalid records\n * @readonly\n */\n invalidRecords?: InvalidRecordWithLiterals[];\n /**\n * Details about the A record for which the DNS propagation has failed.\n * Includes all expected and current values of the A record.\n * @readonly\n */\n invalidARecordInfo?: InvalidRecordInfo;\n /**\n * Details about the NS (nameserver) record for which the DNS propagation has failed.\n * Includes all expected and current values of the NS record.\n * @readonly\n */\n invalidNsRecordInfo?: InvalidRecordInfo;\n /**\n * Details about the CNAME record for which the DNS propagation has failed.\n * Includes all expected and current values of the CNAME records.\n * @readonly\n */\n invalidCnameRecordInfo?: InvalidRecordInfo;\n}\n\nexport enum InvalidRecord {\n /** The propagation of the A record has failed. */\n INVALID_A_RECORD = 'INVALID_A_RECORD',\n /** The propagation of the NS record has failed. */\n INVALID_NS_RECORD = 'INVALID_NS_RECORD',\n /** The propagation of at least one CNAME record has failed. */\n INVALID_CNAME_RECORD = 'INVALID_CNAME_RECORD',\n}\n\n/** @enumType */\nexport type InvalidRecordWithLiterals =\n | InvalidRecord\n | 'INVALID_A_RECORD'\n | 'INVALID_NS_RECORD'\n | 'INVALID_CNAME_RECORD';\n\nexport interface InvalidRecordInfo {\n /**\n * The DNS records that should be configured in the external database. Note that there can only be a single A and NS record.\n *\n * Max: 10 DNS records\n * @maxSize 10\n * @readonly\n */\n expectedDnsRecords?: DnsRecord[];\n /**\n * DNS records currently configured in the external database. Note that there can only be a single A and NS record.\n * @maxSize 10\n * @readonly\n */\n actualDnsRecords?: DnsRecord[];\n}\n\nexport interface DnsRecord {\n /**\n * Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.\n * @format HOSTNAME\n * @readonly\n */\n hostName?: string;\n /**\n * Values associated with the DNS record. For example, IP addresses for A records or server names for NS records.\n *\n * Min: 1 value\n * Max: 10 values\n * @minSize 1\n * @maxSize 10\n * @readonly\n */\n values?: string[];\n}\n\nexport interface CreateDnsPropagationRequest {\n /** DNS propagation to create. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface CreateDnsPropagationResponse {\n /** Created DNS propagation. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface GetDnsPropagationRequest {\n /**\n * ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId: string;\n}\n\nexport interface GetDnsPropagationResponse {\n /** Retrieved DNS propagation. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface CheckDnsPropagationRequest {\n /**\n * ID of the DNS propagation to check the propagation status for.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n}\n\nexport interface CheckDnsPropagationResponse {\n /** Retrieved DNS propagation with current status. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface ScheduleDnsPropagationChecksRequest {\n /**\n * ID of the DNS propagation to schedule a check for.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n}\n\nexport interface ScheduleDnsPropagationChecksResponse {}\n\nexport interface SyncDnsPropagationDomainRequest {\n /**\n * ID of the DNS propagation to synchronize.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n /**\n * Whether to perform a dry run without making actual changes.\n *\n * If true, reports sync issues without applying any fixes.\n * If false, attempts to resolve detected issues.\n *\n * Default: `false`\n */\n dryRunEnabled?: boolean | null;\n}\n\nexport interface SyncDnsPropagationDomainResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n * @param dnsPropagationId - ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @public\n * @requiredField dnsPropagationId\n * @permissionId DOMAINS.READ_DNS_PROPAGATION\n * @returns Retrieved DNS propagation.\n * @fqn com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation\n */\nexport async function getDnsPropagation(\n dnsPropagationId: string\n): Promise<\n NonNullablePaths<\n DnsPropagation,\n | `failureInfo.invalidRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords.${number}.hostName`\n | `failureInfo.invalidARecordInfo.actualDnsRecords`\n | `_id`\n | `domain`\n | `status`,\n 6\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 dnsPropagationId: dnsPropagationId,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1DnsPropagation.getDnsPropagation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.dnsPropagation!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { dnsPropagationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['dnsPropagationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_dns-propagation';\n\n/**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n */\nexport function getDnsPropagation(payload: object): RequestOptionsFactory<any> {\n function __getDnsPropagation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.dns_propagation',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(\n {\n protoPath: '/v1/dns-propagations/{dnsPropagationId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dnsPropagation.createdDate' },\n { path: 'dnsPropagation.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDnsPropagation;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n DnsPropagation,\n getDnsPropagation as universalGetDnsPropagation,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/domains' };\n\nexport function getDnsPropagation(\n httpClient: HttpClient\n): GetDnsPropagationSignature {\n return (dnsPropagationId: string) =>\n universalGetDnsPropagation(\n dnsPropagationId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetDnsPropagationSignature {\n /**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n * @param - ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @returns Retrieved DNS propagation.\n */\n (dnsPropagationId: string): Promise<\n NonNullablePaths<\n DnsPropagation,\n | `failureInfo.invalidRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords.${number}.hostName`\n | `failureInfo.invalidARecordInfo.actualDnsRecords`\n | `_id`\n | `domain`\n | `status`,\n 6\n >\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n CheckDnsPropagationRequest,\n CheckDnsPropagationResponse,\n CreateDnsPropagationRequest,\n CreateDnsPropagationResponse,\n DnsPropagation,\n DnsPropagationStatusInfoOneOf,\n DnsRecord,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n FailedStatusInfo,\n GetDnsPropagationRequest,\n GetDnsPropagationResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n InvalidRecord,\n InvalidRecordInfo,\n MessageEnvelope,\n RestoreInfo,\n ScheduleDnsPropagationChecksRequest,\n ScheduleDnsPropagationChecksResponse,\n Status,\n SyncDnsPropagationDomainRequest,\n SyncDnsPropagationDomainResponse,\n WebhookIdentityType,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\n","import { getDnsPropagation as publicGetDnsPropagation } from './premium-domains-v1-dns-propagation-dns-propagation.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getDnsPropagation: MaybeContext<\n BuildRESTFunction<typeof publicGetDnsPropagation> &\n typeof publicGetDnsPropagation\n> = /*#__PURE__*/ createRESTModule(publicGetDnsPropagation);\n\nexport {\n Status,\n InvalidRecord,\n WebhookIdentityType,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\nexport {\n DnsPropagation,\n DnsPropagationStatusInfoOneOf,\n FailedStatusInfo,\n InvalidRecordInfo,\n DnsRecord,\n CreateDnsPropagationRequest,\n CreateDnsPropagationResponse,\n GetDnsPropagationRequest,\n GetDnsPropagationResponse,\n CheckDnsPropagationRequest,\n CheckDnsPropagationResponse,\n ScheduleDnsPropagationChecksRequest,\n ScheduleDnsPropagationChecksResponse,\n SyncDnsPropagationDomainRequest,\n SyncDnsPropagationDomainResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\nexport {\n StatusWithLiterals,\n InvalidRecordWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,qEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,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AAA,EACF,CAAC;AAED,QAAM,UACwC,kBAAkB,OAAO;AAEvE,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,kBAAkB,OAAO;AAAA,QACrD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,kBAAkB;AAAA,IACrB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE3cO,SAASC,mBACd,YAC4B;AAC5B,SAAO,CAAC,qBACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AChBA,SAAS,wBAAwB;AAG1B,IAAMC,qBAGK,iCAAiBA,kBAAuB;","names":["payload","Status","InvalidRecord","WebhookIdentityType","getDnsPropagation","getDnsPropagation","getDnsPropagation"]}
|
|
1
|
+
{"version":3,"sources":["../../src/premium-domains-v1-dns-propagation-dns-propagation.universal.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.http.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.public.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.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 ambassadorWixPremiumDomainsV1DnsPropagation from './premium-domains-v1-dns-propagation-dns-propagation.http.js';\n\n/**\n * The DNS (Domain Name System) propagation object contains information for a domain.\n * Tracks whether the DNS records are correctly configured and propagated globally.\n * Learn more [about DNS propagation](https://support.wix.com/en/article/about-domain-propagation).\n */\nexport interface DnsPropagation extends DnsPropagationStatusInfoOneOf {\n /**\n * Details about DNS propagation failure, including which record types failed.\n * Only present when `status` is `FAILED`.\n * @readonly\n */\n failureInfo?: FailedStatusInfo;\n /**\n * ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain).\n * @format HOSTNAME\n * @readonly\n */\n _id?: string;\n /**\n * Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported.\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * Revision number, which increments by 1 each time the DNS propagation\n * is updated. Ignored when creating a DNS propagation.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the DNS propagation was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the DNS propagation was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Current status of the DNS propagation. Can take up to 3 days to complete.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Whether Wix name servers were detected among the domain's name servers.\n * For subdomains, this value matches the root domain's setting.\n * @readonly\n */\n dnsResolverIncludesWixNs?: boolean | null;\n}\n\n/** @oneof */\nexport interface DnsPropagationStatusInfoOneOf {\n /**\n * Details about DNS propagation failure, including which record types failed.\n * Only present when `status` is `FAILED`.\n * @readonly\n */\n failureInfo?: FailedStatusInfo;\n}\n\nexport enum Status {\n /** DNS propagation completed successfully. All required DNS records are properly configured and propagated. */\n SUCCEEDED = 'SUCCEEDED',\n /** DNS propagation failed. One or more DNS records are incorrectly configured or haven't propagated. */\n FAILED = 'FAILED',\n /** DNS propagation is in progress. Check again later for updated status. */\n IN_PROGRESS = 'IN_PROGRESS',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'SUCCEEDED'\n | 'FAILED'\n | 'IN_PROGRESS';\n\nexport interface FailedStatusInfo {\n /**\n * The DNS record types that failed propagation.\n *\n * Max: 3 invalid records\n * @readonly\n */\n invalidRecords?: InvalidRecordWithLiterals[];\n /**\n * Details about the A record for which the DNS propagation has failed.\n * Includes all expected and current values of the A record.\n * @readonly\n */\n invalidARecordInfo?: InvalidRecordInfo;\n /**\n * Details about the NS (nameserver) record for which the DNS propagation has failed.\n * Includes all expected and current values of the NS record.\n * @readonly\n */\n invalidNsRecordInfo?: InvalidRecordInfo;\n /**\n * Details about the CNAME record for which the DNS propagation has failed.\n * Includes all expected and current values of the CNAME records.\n * @readonly\n */\n invalidCnameRecordInfo?: InvalidRecordInfo;\n}\n\nexport enum InvalidRecord {\n /** The propagation of the A record has failed. */\n INVALID_A_RECORD = 'INVALID_A_RECORD',\n /** The propagation of the NS record has failed. */\n INVALID_NS_RECORD = 'INVALID_NS_RECORD',\n /** The propagation of at least one CNAME record has failed. */\n INVALID_CNAME_RECORD = 'INVALID_CNAME_RECORD',\n}\n\n/** @enumType */\nexport type InvalidRecordWithLiterals =\n | InvalidRecord\n | 'INVALID_A_RECORD'\n | 'INVALID_NS_RECORD'\n | 'INVALID_CNAME_RECORD';\n\nexport interface InvalidRecordInfo {\n /**\n * The DNS records that should be configured in the external database. Note that there can only be a single A and NS record.\n *\n * Max: 10 DNS records\n * @maxSize 10\n * @readonly\n */\n expectedDnsRecords?: DnsRecord[];\n /**\n * DNS records currently configured in the external database. Note that there can only be a single A and NS record.\n * @maxSize 10\n * @readonly\n */\n actualDnsRecords?: DnsRecord[];\n}\n\nexport interface DnsRecord {\n /**\n * Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.\n * @format HOSTNAME\n * @readonly\n */\n hostName?: string;\n /**\n * Values associated with the DNS record. For example, IP addresses for A records or server names for NS records.\n *\n * Min: 1 value\n * Max: 10 values\n * @minSize 1\n * @maxSize 10\n * @readonly\n */\n values?: string[];\n}\n\nexport interface CreateDnsPropagationRequest {\n /** DNS propagation to create. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface CreateDnsPropagationResponse {\n /** Created DNS propagation. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface GetDnsPropagationRequest {\n /**\n * ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId: string;\n /**\n * Whether to retrieve the most up-to-date DNS propagation data.\n * @internal\n */\n consistent?: boolean;\n}\n\nexport interface GetDnsPropagationResponse {\n /** Retrieved DNS propagation. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface CheckDnsPropagationRequest {\n /**\n * ID of the DNS propagation to check the propagation status for.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n}\n\nexport interface CheckDnsPropagationResponse {\n /** Retrieved DNS propagation with current status. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface ScheduleDnsPropagationChecksRequest {\n /**\n * ID of the DNS propagation to schedule a check for.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n}\n\nexport interface ScheduleDnsPropagationChecksResponse {}\n\nexport interface SyncDnsPropagationDomainRequest {\n /**\n * ID of the DNS propagation to synchronize.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n /**\n * Whether to perform a dry run without making actual changes.\n *\n * If true, reports sync issues without applying any fixes.\n * If false, attempts to resolve detected issues.\n *\n * Default: `false`\n */\n dryRunEnabled?: boolean | null;\n}\n\nexport interface SyncDnsPropagationDomainResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n * @param dnsPropagationId - ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @public\n * @requiredField dnsPropagationId\n * @permissionId DOMAINS.READ_DNS_PROPAGATION\n * @returns Retrieved DNS propagation.\n * @fqn com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation\n */\nexport async function getDnsPropagation(\n dnsPropagationId: string\n): Promise<\n NonNullablePaths<\n DnsPropagation,\n | `failureInfo.invalidRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords.${number}.hostName`\n | `failureInfo.invalidARecordInfo.actualDnsRecords`\n | `_id`\n | `domain`\n | `status`,\n 6\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 dnsPropagationId: dnsPropagationId,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1DnsPropagation.getDnsPropagation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.dnsPropagation!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { dnsPropagationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['dnsPropagationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_dns-propagation';\n\n/**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n */\nexport function getDnsPropagation(payload: object): RequestOptionsFactory<any> {\n function __getDnsPropagation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.dns_propagation',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(\n {\n protoPath: '/v1/dns-propagations/{dnsPropagationId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dnsPropagation.createdDate' },\n { path: 'dnsPropagation.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDnsPropagation;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n DnsPropagation,\n getDnsPropagation as universalGetDnsPropagation,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/domains' };\n\nexport function getDnsPropagation(\n httpClient: HttpClient\n): GetDnsPropagationSignature {\n return (dnsPropagationId: string) =>\n universalGetDnsPropagation(\n dnsPropagationId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetDnsPropagationSignature {\n /**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n * @param - ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @returns Retrieved DNS propagation.\n */\n (dnsPropagationId: string): Promise<\n NonNullablePaths<\n DnsPropagation,\n | `failureInfo.invalidRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords.${number}.hostName`\n | `failureInfo.invalidARecordInfo.actualDnsRecords`\n | `_id`\n | `domain`\n | `status`,\n 6\n >\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n CheckDnsPropagationRequest,\n CheckDnsPropagationResponse,\n CreateDnsPropagationRequest,\n CreateDnsPropagationResponse,\n DnsPropagation,\n DnsPropagationStatusInfoOneOf,\n DnsRecord,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n FailedStatusInfo,\n GetDnsPropagationRequest,\n GetDnsPropagationResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n InvalidRecord,\n InvalidRecordInfo,\n MessageEnvelope,\n RestoreInfo,\n ScheduleDnsPropagationChecksRequest,\n ScheduleDnsPropagationChecksResponse,\n Status,\n SyncDnsPropagationDomainRequest,\n SyncDnsPropagationDomainResponse,\n WebhookIdentityType,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\n","import { getDnsPropagation as publicGetDnsPropagation } from './premium-domains-v1-dns-propagation-dns-propagation.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getDnsPropagation: MaybeContext<\n BuildRESTFunction<typeof publicGetDnsPropagation> &\n typeof publicGetDnsPropagation\n> = /*#__PURE__*/ createRESTModule(publicGetDnsPropagation);\n\nexport {\n Status,\n InvalidRecord,\n WebhookIdentityType,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\nexport {\n DnsPropagation,\n DnsPropagationStatusInfoOneOf,\n FailedStatusInfo,\n InvalidRecordInfo,\n DnsRecord,\n CreateDnsPropagationRequest,\n CreateDnsPropagationResponse,\n GetDnsPropagationRequest,\n GetDnsPropagationResponse,\n CheckDnsPropagationRequest,\n CheckDnsPropagationResponse,\n ScheduleDnsPropagationChecksRequest,\n ScheduleDnsPropagationChecksResponse,\n SyncDnsPropagationDomainRequest,\n SyncDnsPropagationDomainResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\nexport {\n StatusWithLiterals,\n InvalidRecordWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,qEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QAC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