@wix/auto_sdk_domains_dns-propagation 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +20 -0
- package/build/cjs/index.js +162 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +372 -0
- package/build/cjs/index.typings.js +149 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +375 -0
- package/build/cjs/meta.js +140 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +20 -0
- package/build/es/index.mjs +135 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +372 -0
- package/build/es/index.typings.mjs +122 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +375 -0
- package/build/es/meta.mjs +110 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +20 -0
- package/build/internal/cjs/index.js +162 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +372 -0
- package/build/internal/cjs/index.typings.js +149 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +375 -0
- package/build/internal/cjs/meta.js +140 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/es/index.d.mts +20 -0
- package/build/internal/es/index.mjs +135 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +372 -0
- package/build/internal/es/index.typings.mjs +122 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +375 -0
- package/build/internal/es/meta.mjs +110 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The DNS (Domain Name System) propagation object contains information for a domain.
|
|
5
|
+
* Tracks whether the DNS records are correctly configured and propagated globally.
|
|
6
|
+
* Learn more [about DNS propagation](https://support.wix.com/en/article/about-domain-propagation).
|
|
7
|
+
*/
|
|
8
|
+
interface DnsPropagation extends DnsPropagationStatusInfoOneOf {
|
|
9
|
+
/**
|
|
10
|
+
* Details about DNS propagation failure, including which record types failed.
|
|
11
|
+
* Only present when `status` is `FAILED`.
|
|
12
|
+
* @readonly
|
|
13
|
+
*/
|
|
14
|
+
failureInfo?: FailedStatusInfo;
|
|
15
|
+
/**
|
|
16
|
+
* 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).
|
|
17
|
+
* @format HOSTNAME
|
|
18
|
+
* @readonly
|
|
19
|
+
*/
|
|
20
|
+
_id?: string;
|
|
21
|
+
/**
|
|
22
|
+
* 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.
|
|
23
|
+
* @format HOSTNAME
|
|
24
|
+
*/
|
|
25
|
+
domain?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Revision number, which increments by 1 each time the DNS propagation
|
|
28
|
+
* is updated. Ignored when creating a DNS propagation.
|
|
29
|
+
* @readonly
|
|
30
|
+
*/
|
|
31
|
+
revision?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* Date and time the DNS propagation was created.
|
|
34
|
+
* @readonly
|
|
35
|
+
*/
|
|
36
|
+
_createdDate?: Date | null;
|
|
37
|
+
/**
|
|
38
|
+
* Date and time the DNS propagation was updated.
|
|
39
|
+
* @readonly
|
|
40
|
+
*/
|
|
41
|
+
_updatedDate?: Date | null;
|
|
42
|
+
/**
|
|
43
|
+
* Current status of the DNS propagation. Can take up to 3 days to complete.
|
|
44
|
+
* @readonly
|
|
45
|
+
*/
|
|
46
|
+
status?: StatusWithLiterals;
|
|
47
|
+
/**
|
|
48
|
+
* Whether Wix name servers were detected among the domain's name servers.
|
|
49
|
+
* For subdomains, this value matches the root domain's setting.
|
|
50
|
+
* @readonly
|
|
51
|
+
*/
|
|
52
|
+
dnsResolverIncludesWixNs?: boolean | null;
|
|
53
|
+
}
|
|
54
|
+
/** @oneof */
|
|
55
|
+
interface DnsPropagationStatusInfoOneOf {
|
|
56
|
+
/**
|
|
57
|
+
* Details about DNS propagation failure, including which record types failed.
|
|
58
|
+
* Only present when `status` is `FAILED`.
|
|
59
|
+
* @readonly
|
|
60
|
+
*/
|
|
61
|
+
failureInfo?: FailedStatusInfo;
|
|
62
|
+
}
|
|
63
|
+
declare enum Status {
|
|
64
|
+
/** DNS propagation completed successfully. All required DNS records are properly configured and propagated. */
|
|
65
|
+
SUCCEEDED = "SUCCEEDED",
|
|
66
|
+
/** DNS propagation failed. One or more DNS records are incorrectly configured or haven't propagated. */
|
|
67
|
+
FAILED = "FAILED",
|
|
68
|
+
/** DNS propagation is in progress. Check again later for updated status. */
|
|
69
|
+
IN_PROGRESS = "IN_PROGRESS"
|
|
70
|
+
}
|
|
71
|
+
/** @enumType */
|
|
72
|
+
type StatusWithLiterals = Status | 'SUCCEEDED' | 'FAILED' | 'IN_PROGRESS';
|
|
73
|
+
interface FailedStatusInfo {
|
|
74
|
+
/**
|
|
75
|
+
* The DNS record types that failed propagation.
|
|
76
|
+
*
|
|
77
|
+
* Max: 3 invalid records
|
|
78
|
+
* @readonly
|
|
79
|
+
*/
|
|
80
|
+
invalidRecords?: InvalidRecordWithLiterals[];
|
|
81
|
+
/**
|
|
82
|
+
* Details about the A record for which the DNS propagation has failed.
|
|
83
|
+
* Includes all expected and current values of the A record.
|
|
84
|
+
* @readonly
|
|
85
|
+
*/
|
|
86
|
+
invalidARecordInfo?: InvalidRecordInfo;
|
|
87
|
+
/**
|
|
88
|
+
* Details about the NS (nameserver) record for which the DNS propagation has failed.
|
|
89
|
+
* Includes all expected and current values of the NS record.
|
|
90
|
+
* @readonly
|
|
91
|
+
*/
|
|
92
|
+
invalidNsRecordInfo?: InvalidRecordInfo;
|
|
93
|
+
/**
|
|
94
|
+
* Details about the CNAME record for which the DNS propagation has failed.
|
|
95
|
+
* Includes all expected and current values of the CNAME records.
|
|
96
|
+
* @readonly
|
|
97
|
+
*/
|
|
98
|
+
invalidCnameRecordInfo?: InvalidRecordInfo;
|
|
99
|
+
}
|
|
100
|
+
declare enum InvalidRecord {
|
|
101
|
+
/** The propagation of the A record has failed. */
|
|
102
|
+
INVALID_A_RECORD = "INVALID_A_RECORD",
|
|
103
|
+
/** The propagation of the NS record has failed. */
|
|
104
|
+
INVALID_NS_RECORD = "INVALID_NS_RECORD",
|
|
105
|
+
/** The propagation of at least one CNAME record has failed. */
|
|
106
|
+
INVALID_CNAME_RECORD = "INVALID_CNAME_RECORD"
|
|
107
|
+
}
|
|
108
|
+
/** @enumType */
|
|
109
|
+
type InvalidRecordWithLiterals = InvalidRecord | 'INVALID_A_RECORD' | 'INVALID_NS_RECORD' | 'INVALID_CNAME_RECORD';
|
|
110
|
+
interface InvalidRecordInfo {
|
|
111
|
+
/**
|
|
112
|
+
* The DNS records that should be configured in the external database. Note that there can only be a single A and NS record.
|
|
113
|
+
*
|
|
114
|
+
* Max: 10 DNS records
|
|
115
|
+
* @maxSize 10
|
|
116
|
+
* @readonly
|
|
117
|
+
*/
|
|
118
|
+
expectedDnsRecords?: DnsRecord[];
|
|
119
|
+
/**
|
|
120
|
+
* DNS records currently configured in the external database. Note that there can only be a single A and NS record.
|
|
121
|
+
* @maxSize 10
|
|
122
|
+
* @readonly
|
|
123
|
+
*/
|
|
124
|
+
actualDnsRecords?: DnsRecord[];
|
|
125
|
+
}
|
|
126
|
+
interface DnsRecord {
|
|
127
|
+
/**
|
|
128
|
+
* Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.
|
|
129
|
+
* @format HOSTNAME
|
|
130
|
+
* @readonly
|
|
131
|
+
*/
|
|
132
|
+
hostName?: string;
|
|
133
|
+
/**
|
|
134
|
+
* Values associated with the DNS record. For example, IP addresses for A records or server names for NS records.
|
|
135
|
+
*
|
|
136
|
+
* Min: 1 value
|
|
137
|
+
* Max: 10 values
|
|
138
|
+
* @minSize 1
|
|
139
|
+
* @maxSize 10
|
|
140
|
+
* @readonly
|
|
141
|
+
*/
|
|
142
|
+
values?: string[];
|
|
143
|
+
}
|
|
144
|
+
interface CreateDnsPropagationRequest {
|
|
145
|
+
/** DNS propagation to create. */
|
|
146
|
+
dnsPropagation?: DnsPropagation;
|
|
147
|
+
}
|
|
148
|
+
interface CreateDnsPropagationResponse {
|
|
149
|
+
/** Created DNS propagation. */
|
|
150
|
+
dnsPropagation?: DnsPropagation;
|
|
151
|
+
}
|
|
152
|
+
interface GetDnsPropagationRequest {
|
|
153
|
+
/**
|
|
154
|
+
* 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).
|
|
155
|
+
* @format HOSTNAME
|
|
156
|
+
*/
|
|
157
|
+
dnsPropagationId: string;
|
|
158
|
+
}
|
|
159
|
+
interface GetDnsPropagationResponse {
|
|
160
|
+
/** Retrieved DNS propagation. */
|
|
161
|
+
dnsPropagation?: DnsPropagation;
|
|
162
|
+
}
|
|
163
|
+
interface CheckDnsPropagationRequest {
|
|
164
|
+
/**
|
|
165
|
+
* ID of the DNS propagation to check the propagation status for.
|
|
166
|
+
* Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).
|
|
167
|
+
* @format HOSTNAME
|
|
168
|
+
*/
|
|
169
|
+
dnsPropagationId?: string;
|
|
170
|
+
}
|
|
171
|
+
interface CheckDnsPropagationResponse {
|
|
172
|
+
/** Retrieved DNS propagation with current status. */
|
|
173
|
+
dnsPropagation?: DnsPropagation;
|
|
174
|
+
}
|
|
175
|
+
interface ScheduleDnsPropagationChecksRequest {
|
|
176
|
+
/**
|
|
177
|
+
* ID of the DNS propagation to schedule a check for.
|
|
178
|
+
* Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).
|
|
179
|
+
* @format HOSTNAME
|
|
180
|
+
*/
|
|
181
|
+
dnsPropagationId?: string;
|
|
182
|
+
}
|
|
183
|
+
interface ScheduleDnsPropagationChecksResponse {
|
|
184
|
+
}
|
|
185
|
+
interface SyncDnsPropagationDomainRequest {
|
|
186
|
+
/**
|
|
187
|
+
* ID of the DNS propagation to synchronize.
|
|
188
|
+
* Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).
|
|
189
|
+
* @format HOSTNAME
|
|
190
|
+
*/
|
|
191
|
+
dnsPropagationId?: string;
|
|
192
|
+
/**
|
|
193
|
+
* Whether to perform a dry run without making actual changes.
|
|
194
|
+
*
|
|
195
|
+
* If true, reports sync issues without applying any fixes.
|
|
196
|
+
* If false, attempts to resolve detected issues.
|
|
197
|
+
*
|
|
198
|
+
* Default: `false`
|
|
199
|
+
*/
|
|
200
|
+
dryRunEnabled?: boolean | null;
|
|
201
|
+
}
|
|
202
|
+
interface SyncDnsPropagationDomainResponse {
|
|
203
|
+
}
|
|
204
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
205
|
+
createdEvent?: EntityCreatedEvent;
|
|
206
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
207
|
+
deletedEvent?: EntityDeletedEvent;
|
|
208
|
+
actionEvent?: ActionEvent;
|
|
209
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
210
|
+
_id?: string;
|
|
211
|
+
/**
|
|
212
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
213
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
214
|
+
*/
|
|
215
|
+
entityFqdn?: string;
|
|
216
|
+
/**
|
|
217
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
218
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
219
|
+
*/
|
|
220
|
+
slug?: string;
|
|
221
|
+
/** ID of the entity associated with the event. */
|
|
222
|
+
entityId?: string;
|
|
223
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
224
|
+
eventTime?: Date | null;
|
|
225
|
+
/**
|
|
226
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
227
|
+
* (for example, GDPR).
|
|
228
|
+
*/
|
|
229
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
230
|
+
/** If present, indicates the action that triggered the event. */
|
|
231
|
+
originatedFrom?: string | null;
|
|
232
|
+
/**
|
|
233
|
+
* 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.
|
|
234
|
+
* 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.
|
|
235
|
+
*/
|
|
236
|
+
entityEventSequence?: string | null;
|
|
237
|
+
}
|
|
238
|
+
/** @oneof */
|
|
239
|
+
interface DomainEventBodyOneOf {
|
|
240
|
+
createdEvent?: EntityCreatedEvent;
|
|
241
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
242
|
+
deletedEvent?: EntityDeletedEvent;
|
|
243
|
+
actionEvent?: ActionEvent;
|
|
244
|
+
}
|
|
245
|
+
interface EntityCreatedEvent {
|
|
246
|
+
entity?: string;
|
|
247
|
+
}
|
|
248
|
+
interface RestoreInfo {
|
|
249
|
+
deletedDate?: Date | null;
|
|
250
|
+
}
|
|
251
|
+
interface EntityUpdatedEvent {
|
|
252
|
+
/**
|
|
253
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
254
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
255
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
256
|
+
*/
|
|
257
|
+
currentEntity?: string;
|
|
258
|
+
}
|
|
259
|
+
interface EntityDeletedEvent {
|
|
260
|
+
/** Entity that was deleted. */
|
|
261
|
+
deletedEntity?: string | null;
|
|
262
|
+
}
|
|
263
|
+
interface ActionEvent {
|
|
264
|
+
body?: string;
|
|
265
|
+
}
|
|
266
|
+
interface MessageEnvelope {
|
|
267
|
+
/**
|
|
268
|
+
* App instance ID.
|
|
269
|
+
* @format GUID
|
|
270
|
+
*/
|
|
271
|
+
instanceId?: string | null;
|
|
272
|
+
/**
|
|
273
|
+
* Event type.
|
|
274
|
+
* @maxLength 150
|
|
275
|
+
*/
|
|
276
|
+
eventType?: string;
|
|
277
|
+
/** The identification type and identity data. */
|
|
278
|
+
identity?: IdentificationData;
|
|
279
|
+
/** Stringify payload. */
|
|
280
|
+
data?: string;
|
|
281
|
+
/** Details related to the account */
|
|
282
|
+
accountInfo?: AccountInfo;
|
|
283
|
+
}
|
|
284
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
285
|
+
/**
|
|
286
|
+
* ID of a site visitor that has not logged in to the site.
|
|
287
|
+
* @format GUID
|
|
288
|
+
*/
|
|
289
|
+
anonymousVisitorId?: string;
|
|
290
|
+
/**
|
|
291
|
+
* ID of a site visitor that has logged in to the site.
|
|
292
|
+
* @format GUID
|
|
293
|
+
*/
|
|
294
|
+
memberId?: string;
|
|
295
|
+
/**
|
|
296
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
297
|
+
* @format GUID
|
|
298
|
+
*/
|
|
299
|
+
wixUserId?: string;
|
|
300
|
+
/**
|
|
301
|
+
* ID of an app.
|
|
302
|
+
* @format GUID
|
|
303
|
+
*/
|
|
304
|
+
appId?: string;
|
|
305
|
+
/** @readonly */
|
|
306
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
307
|
+
}
|
|
308
|
+
/** @oneof */
|
|
309
|
+
interface IdentificationDataIdOneOf {
|
|
310
|
+
/**
|
|
311
|
+
* ID of a site visitor that has not logged in to the site.
|
|
312
|
+
* @format GUID
|
|
313
|
+
*/
|
|
314
|
+
anonymousVisitorId?: string;
|
|
315
|
+
/**
|
|
316
|
+
* ID of a site visitor that has logged in to the site.
|
|
317
|
+
* @format GUID
|
|
318
|
+
*/
|
|
319
|
+
memberId?: string;
|
|
320
|
+
/**
|
|
321
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
322
|
+
* @format GUID
|
|
323
|
+
*/
|
|
324
|
+
wixUserId?: string;
|
|
325
|
+
/**
|
|
326
|
+
* ID of an app.
|
|
327
|
+
* @format GUID
|
|
328
|
+
*/
|
|
329
|
+
appId?: string;
|
|
330
|
+
}
|
|
331
|
+
declare enum WebhookIdentityType {
|
|
332
|
+
UNKNOWN = "UNKNOWN",
|
|
333
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
334
|
+
MEMBER = "MEMBER",
|
|
335
|
+
WIX_USER = "WIX_USER",
|
|
336
|
+
APP = "APP"
|
|
337
|
+
}
|
|
338
|
+
/** @enumType */
|
|
339
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
340
|
+
interface AccountInfo {
|
|
341
|
+
/**
|
|
342
|
+
* ID of the Wix account associated with the event.
|
|
343
|
+
* @format GUID
|
|
344
|
+
*/
|
|
345
|
+
accountId?: string | null;
|
|
346
|
+
/**
|
|
347
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
348
|
+
* @format GUID
|
|
349
|
+
*/
|
|
350
|
+
parentAccountId?: string | null;
|
|
351
|
+
/**
|
|
352
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
353
|
+
* @format GUID
|
|
354
|
+
*/
|
|
355
|
+
siteId?: string | null;
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Retrieves DNS propagation status for a domain.
|
|
359
|
+
*
|
|
360
|
+
* Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,
|
|
361
|
+
* during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.
|
|
362
|
+
* @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).
|
|
363
|
+
* @public
|
|
364
|
+
* @documentationMaturity preview
|
|
365
|
+
* @requiredField dnsPropagationId
|
|
366
|
+
* @permissionId DOMAINS.READ_DNS_PROPAGATION
|
|
367
|
+
* @returns Retrieved DNS propagation.
|
|
368
|
+
* @fqn com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation
|
|
369
|
+
*/
|
|
370
|
+
declare function getDnsPropagation(dnsPropagationId: string): Promise<NonNullablePaths<DnsPropagation, `failureInfo.invalidRecords` | `failureInfo.invalidARecordInfo.expectedDnsRecords` | `failureInfo.invalidARecordInfo.expectedDnsRecords.${number}.hostName` | `failureInfo.invalidARecordInfo.actualDnsRecords` | `_id` | `domain` | `status`, 6>>;
|
|
371
|
+
|
|
372
|
+
export { type AccountInfo, type ActionEvent, type CheckDnsPropagationRequest, type CheckDnsPropagationResponse, type CreateDnsPropagationRequest, type CreateDnsPropagationResponse, type DnsPropagation, type DnsPropagationStatusInfoOneOf, type DnsRecord, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FailedStatusInfo, type GetDnsPropagationRequest, type GetDnsPropagationResponse, type IdentificationData, type IdentificationDataIdOneOf, InvalidRecord, type InvalidRecordInfo, type InvalidRecordWithLiterals, type MessageEnvelope, type RestoreInfo, type ScheduleDnsPropagationChecksRequest, type ScheduleDnsPropagationChecksResponse, Status, type StatusWithLiterals, type SyncDnsPropagationDomainRequest, type SyncDnsPropagationDomainResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, getDnsPropagation };
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
// src/premium-domains-v1-dns-propagation-dns-propagation.universal.ts
|
|
2
|
+
import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
|
|
3
|
+
import {
|
|
4
|
+
renameKeysFromSDKRequestToRESTRequest,
|
|
5
|
+
renameKeysFromRESTResponseToSDKResponse
|
|
6
|
+
} from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
7
|
+
|
|
8
|
+
// src/premium-domains-v1-dns-propagation-dns-propagation.http.ts
|
|
9
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
10
|
+
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
11
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
12
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
13
|
+
function resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(opts) {
|
|
14
|
+
const domainToMappings = {
|
|
15
|
+
"www.wixapis.com": [
|
|
16
|
+
{
|
|
17
|
+
srcPath: "/premium/domains/v1/dns-propagations",
|
|
18
|
+
destPath: "/v1/dns-propagations"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"*.dev.wix-code.com": [
|
|
22
|
+
{
|
|
23
|
+
srcPath: "/premium/domains/v1/dns-propagations",
|
|
24
|
+
destPath: "/v1/dns-propagations"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
_: [
|
|
28
|
+
{
|
|
29
|
+
srcPath: "/premium/domains/v1/dns-propagations",
|
|
30
|
+
destPath: "/v1/dns-propagations"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
};
|
|
34
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
35
|
+
}
|
|
36
|
+
var PACKAGE_NAME = "@wix/auto_sdk_domains_dns-propagation";
|
|
37
|
+
function getDnsPropagation(payload) {
|
|
38
|
+
function __getDnsPropagation({ host }) {
|
|
39
|
+
const metadata = {
|
|
40
|
+
entityFqdn: "wix.premium.domains.v1.dns_propagation",
|
|
41
|
+
method: "GET",
|
|
42
|
+
methodFqn: "com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation",
|
|
43
|
+
packageName: PACKAGE_NAME,
|
|
44
|
+
migrationOptions: {
|
|
45
|
+
optInTransformResponse: true
|
|
46
|
+
},
|
|
47
|
+
url: resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(
|
|
48
|
+
{
|
|
49
|
+
protoPath: "/v1/dns-propagations/{dnsPropagationId}",
|
|
50
|
+
data: payload,
|
|
51
|
+
host
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
params: toURLSearchParams(payload),
|
|
55
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
56
|
+
{
|
|
57
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
58
|
+
paths: [
|
|
59
|
+
{ path: "dnsPropagation.createdDate" },
|
|
60
|
+
{ path: "dnsPropagation.updatedDate" }
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
])
|
|
64
|
+
};
|
|
65
|
+
return metadata;
|
|
66
|
+
}
|
|
67
|
+
return __getDnsPropagation;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// src/premium-domains-v1-dns-propagation-dns-propagation.universal.ts
|
|
71
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
72
|
+
Status2["SUCCEEDED"] = "SUCCEEDED";
|
|
73
|
+
Status2["FAILED"] = "FAILED";
|
|
74
|
+
Status2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
75
|
+
return Status2;
|
|
76
|
+
})(Status || {});
|
|
77
|
+
var InvalidRecord = /* @__PURE__ */ ((InvalidRecord2) => {
|
|
78
|
+
InvalidRecord2["INVALID_A_RECORD"] = "INVALID_A_RECORD";
|
|
79
|
+
InvalidRecord2["INVALID_NS_RECORD"] = "INVALID_NS_RECORD";
|
|
80
|
+
InvalidRecord2["INVALID_CNAME_RECORD"] = "INVALID_CNAME_RECORD";
|
|
81
|
+
return InvalidRecord2;
|
|
82
|
+
})(InvalidRecord || {});
|
|
83
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
84
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
85
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
86
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
87
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
88
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
89
|
+
return WebhookIdentityType2;
|
|
90
|
+
})(WebhookIdentityType || {});
|
|
91
|
+
async function getDnsPropagation2(dnsPropagationId) {
|
|
92
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
93
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
94
|
+
dnsPropagationId
|
|
95
|
+
});
|
|
96
|
+
const reqOpts = getDnsPropagation(payload);
|
|
97
|
+
sideEffects?.onSiteCall?.();
|
|
98
|
+
try {
|
|
99
|
+
const result = await httpClient.request(reqOpts);
|
|
100
|
+
sideEffects?.onSuccess?.(result);
|
|
101
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.dnsPropagation;
|
|
102
|
+
} catch (err) {
|
|
103
|
+
const transformedError = sdkTransformError(
|
|
104
|
+
err,
|
|
105
|
+
{
|
|
106
|
+
spreadPathsToArguments: {},
|
|
107
|
+
explicitPathsToArguments: { dnsPropagationId: "$[0]" },
|
|
108
|
+
singleArgumentUnchanged: false
|
|
109
|
+
},
|
|
110
|
+
["dnsPropagationId"]
|
|
111
|
+
);
|
|
112
|
+
sideEffects?.onError?.(err);
|
|
113
|
+
throw transformedError;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
export {
|
|
117
|
+
InvalidRecord,
|
|
118
|
+
Status,
|
|
119
|
+
WebhookIdentityType,
|
|
120
|
+
getDnsPropagation2 as getDnsPropagation
|
|
121
|
+
};
|
|
122
|
+
//# sourceMappingURL=index.typings.mjs.map
|
|
@@ -0,0 +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"],"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 * @documentationMaturity preview\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,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,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,QAAQ,kBAAkB,OAAO;AAAA,MACjC,mBAAmB,CAACA,aAClB,eAAeA,UAAS;AAAA,QACtB;AAAA,UACE,aAAa;AAAA,UACb,OAAO;AAAA,YACL,EAAE,MAAM,6BAA6B;AAAA,YACrC,EAAE,MAAM,6BAA6B;AAAA,UACvC;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACL;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;ADPO,IAAK,SAAL,kBAAKC,YAAL;AAEL,EAAAA,QAAA,eAAY;AAEZ,EAAAA,QAAA,YAAS;AAET,EAAAA,QAAA,iBAAc;AANJ,SAAAA;AAAA,GAAA;AA4CL,IAAK,gBAAL,kBAAKC,mBAAL;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;AAgDZ,eAAsBC,mBACpB,kBAaA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC;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,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;","names":["payload","Status","InvalidRecord","WebhookIdentityType","getDnsPropagation"]}
|