@scaleway/sdk-domain 1.3.0 → 2.1.1
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/README.md +96 -0
- package/dist/v2beta1/api.gen.d.ts +18 -4
- package/dist/v2beta1/api.gen.js +83 -124
- package/dist/v2beta1/content.gen.js +14 -4
- package/dist/v2beta1/index.gen.d.ts +2 -2
- package/dist/v2beta1/index.gen.js +4 -2
- package/dist/v2beta1/marshalling.gen.d.ts +2 -1
- package/dist/v2beta1/marshalling.gen.js +102 -95
- package/dist/v2beta1/types.gen.d.ts +23 -0
- package/package.json +6 -9
- package/dist/index.gen.cjs +0 -4
- package/dist/v2beta1/api.gen.cjs +0 -1041
- package/dist/v2beta1/content.gen.cjs +0 -29
- package/dist/v2beta1/index.gen.cjs +0 -74
- package/dist/v2beta1/marshalling.gen.cjs +0 -1517
|
@@ -1,1517 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const sdkClient = require("@scaleway/sdk-client");
|
|
4
|
-
const unmarshalContactExtensionFRAssociationInfo = (data) => {
|
|
5
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
6
|
-
throw new TypeError(
|
|
7
|
-
`Unmarshalling the type 'ContactExtensionFRAssociationInfo' failed as data isn't a dictionary.`
|
|
8
|
-
);
|
|
9
|
-
}
|
|
10
|
-
return {
|
|
11
|
-
publicationJo: sdkClient.unmarshalDate(data.publication_jo),
|
|
12
|
-
publicationJoPage: data.publication_jo_page
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
const unmarshalContactExtensionFRCodeAuthAfnicInfo = (data) => {
|
|
16
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
17
|
-
throw new TypeError(
|
|
18
|
-
`Unmarshalling the type 'ContactExtensionFRCodeAuthAfnicInfo' failed as data isn't a dictionary.`
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
return {
|
|
22
|
-
codeAuthAfnic: data.code_auth_afnic
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
const unmarshalContactExtensionFRDunsInfo = (data) => {
|
|
26
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
27
|
-
throw new TypeError(
|
|
28
|
-
`Unmarshalling the type 'ContactExtensionFRDunsInfo' failed as data isn't a dictionary.`
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
dunsId: data.duns_id,
|
|
33
|
-
localId: data.local_id
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
const unmarshalContactExtensionFRIndividualInfo = (data) => {
|
|
37
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
38
|
-
throw new TypeError(
|
|
39
|
-
`Unmarshalling the type 'ContactExtensionFRIndividualInfo' failed as data isn't a dictionary.`
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
whoisOptIn: data.whois_opt_in
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
const unmarshalContactExtensionFRTrademarkInfo = (data) => {
|
|
47
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
48
|
-
throw new TypeError(
|
|
49
|
-
`Unmarshalling the type 'ContactExtensionFRTrademarkInfo' failed as data isn't a dictionary.`
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
trademarkInpi: data.trademark_inpi
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
const unmarshalContactExtensionEU = (data) => {
|
|
57
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
58
|
-
throw new TypeError(
|
|
59
|
-
`Unmarshalling the type 'ContactExtensionEU' failed as data isn't a dictionary.`
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
europeanCitizenship: data.european_citizenship
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
const unmarshalContactExtensionFR = (data) => {
|
|
67
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
68
|
-
throw new TypeError(
|
|
69
|
-
`Unmarshalling the type 'ContactExtensionFR' failed as data isn't a dictionary.`
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
return {
|
|
73
|
-
associationInfo: data.association_info ? unmarshalContactExtensionFRAssociationInfo(data.association_info) : void 0,
|
|
74
|
-
codeAuthAfnicInfo: data.code_auth_afnic_info ? unmarshalContactExtensionFRCodeAuthAfnicInfo(data.code_auth_afnic_info) : void 0,
|
|
75
|
-
dunsInfo: data.duns_info ? unmarshalContactExtensionFRDunsInfo(data.duns_info) : void 0,
|
|
76
|
-
individualInfo: data.individual_info ? unmarshalContactExtensionFRIndividualInfo(data.individual_info) : void 0,
|
|
77
|
-
mode: data.mode,
|
|
78
|
-
trademarkInfo: data.trademark_info ? unmarshalContactExtensionFRTrademarkInfo(data.trademark_info) : void 0
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
const unmarshalContactExtensionNL = (data) => {
|
|
82
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
83
|
-
throw new TypeError(
|
|
84
|
-
`Unmarshalling the type 'ContactExtensionNL' failed as data isn't a dictionary.`
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
return {
|
|
88
|
-
legalForm: data.legal_form,
|
|
89
|
-
legalFormRegistrationNumber: data.legal_form_registration_number
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
const unmarshalContactQuestion = (data) => {
|
|
93
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
94
|
-
throw new TypeError(
|
|
95
|
-
`Unmarshalling the type 'ContactQuestion' failed as data isn't a dictionary.`
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
return {
|
|
99
|
-
answer: data.answer,
|
|
100
|
-
question: data.question
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
const unmarshalContact = (data) => {
|
|
104
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
105
|
-
throw new TypeError(
|
|
106
|
-
`Unmarshalling the type 'Contact' failed as data isn't a dictionary.`
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
return {
|
|
110
|
-
addressLine1: data.address_line_1,
|
|
111
|
-
addressLine2: data.address_line_2,
|
|
112
|
-
city: data.city,
|
|
113
|
-
companyIdentificationCode: data.company_identification_code,
|
|
114
|
-
companyName: data.company_name,
|
|
115
|
-
country: data.country,
|
|
116
|
-
email: data.email,
|
|
117
|
-
emailAlt: data.email_alt,
|
|
118
|
-
emailStatus: data.email_status,
|
|
119
|
-
extensionEu: data.extension_eu ? unmarshalContactExtensionEU(data.extension_eu) : void 0,
|
|
120
|
-
extensionFr: data.extension_fr ? unmarshalContactExtensionFR(data.extension_fr) : void 0,
|
|
121
|
-
extensionNl: data.extension_nl ? unmarshalContactExtensionNL(data.extension_nl) : void 0,
|
|
122
|
-
faxNumber: data.fax_number,
|
|
123
|
-
firstname: data.firstname,
|
|
124
|
-
id: data.id,
|
|
125
|
-
lang: data.lang,
|
|
126
|
-
lastname: data.lastname,
|
|
127
|
-
legalForm: data.legal_form,
|
|
128
|
-
phoneNumber: data.phone_number,
|
|
129
|
-
questions: data.questions ? sdkClient.unmarshalArrayOfObject(data.questions, unmarshalContactQuestion) : void 0,
|
|
130
|
-
resale: data.resale,
|
|
131
|
-
state: data.state,
|
|
132
|
-
status: data.status,
|
|
133
|
-
vatIdentificationCode: data.vat_identification_code,
|
|
134
|
-
whoisOptIn: data.whois_opt_in,
|
|
135
|
-
zip: data.zip
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
const unmarshalDNSZone = (data) => {
|
|
139
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
140
|
-
throw new TypeError(
|
|
141
|
-
`Unmarshalling the type 'DNSZone' failed as data isn't a dictionary.`
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
return {
|
|
145
|
-
domain: data.domain,
|
|
146
|
-
linkedProducts: data.linked_products,
|
|
147
|
-
message: data.message,
|
|
148
|
-
ns: data.ns,
|
|
149
|
-
nsDefault: data.ns_default,
|
|
150
|
-
nsMaster: data.ns_master,
|
|
151
|
-
projectId: data.project_id,
|
|
152
|
-
status: data.status,
|
|
153
|
-
subdomain: data.subdomain,
|
|
154
|
-
updatedAt: sdkClient.unmarshalDate(data.updated_at)
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
const unmarshalHost = (data) => {
|
|
158
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
159
|
-
throw new TypeError(
|
|
160
|
-
`Unmarshalling the type 'Host' failed as data isn't a dictionary.`
|
|
161
|
-
);
|
|
162
|
-
}
|
|
163
|
-
return {
|
|
164
|
-
domain: data.domain,
|
|
165
|
-
ips: data.ips,
|
|
166
|
-
name: data.name,
|
|
167
|
-
status: data.status
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
const unmarshalSSLCertificate = (data) => {
|
|
171
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
172
|
-
throw new TypeError(
|
|
173
|
-
`Unmarshalling the type 'SSLCertificate' failed as data isn't a dictionary.`
|
|
174
|
-
);
|
|
175
|
-
}
|
|
176
|
-
return {
|
|
177
|
-
alternativeDnsZones: data.alternative_dns_zones,
|
|
178
|
-
certificateChain: data.certificate_chain,
|
|
179
|
-
createdAt: sdkClient.unmarshalDate(data.created_at),
|
|
180
|
-
dnsZone: data.dns_zone,
|
|
181
|
-
expiredAt: sdkClient.unmarshalDate(data.expired_at),
|
|
182
|
-
privateKey: data.private_key,
|
|
183
|
-
status: data.status
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
const unmarshalCheckContactsCompatibilityResponseContactCheckResult = (data) => {
|
|
187
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
188
|
-
throw new TypeError(
|
|
189
|
-
`Unmarshalling the type 'CheckContactsCompatibilityResponseContactCheckResult' failed as data isn't a dictionary.`
|
|
190
|
-
);
|
|
191
|
-
}
|
|
192
|
-
return {
|
|
193
|
-
compatible: data.compatible,
|
|
194
|
-
errorMessage: data.error_message
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
const unmarshalCheckContactsCompatibilityResponse = (data) => {
|
|
198
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
199
|
-
throw new TypeError(
|
|
200
|
-
`Unmarshalling the type 'CheckContactsCompatibilityResponse' failed as data isn't a dictionary.`
|
|
201
|
-
);
|
|
202
|
-
}
|
|
203
|
-
return {
|
|
204
|
-
administrativeCheckResult: data.administrative_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(
|
|
205
|
-
data.administrative_check_result
|
|
206
|
-
) : void 0,
|
|
207
|
-
compatible: data.compatible,
|
|
208
|
-
ownerCheckResult: data.owner_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(
|
|
209
|
-
data.owner_check_result
|
|
210
|
-
) : void 0,
|
|
211
|
-
technicalCheckResult: data.technical_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(
|
|
212
|
-
data.technical_check_result
|
|
213
|
-
) : void 0
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
const unmarshalClearDNSZoneRecordsResponse = (data) => {
|
|
217
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
218
|
-
throw new TypeError(
|
|
219
|
-
`Unmarshalling the type 'ClearDNSZoneRecordsResponse' failed as data isn't a dictionary.`
|
|
220
|
-
);
|
|
221
|
-
}
|
|
222
|
-
return {};
|
|
223
|
-
};
|
|
224
|
-
const unmarshalDeleteDNSZoneResponse = (data) => {
|
|
225
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
226
|
-
throw new TypeError(
|
|
227
|
-
`Unmarshalling the type 'DeleteDNSZoneResponse' failed as data isn't a dictionary.`
|
|
228
|
-
);
|
|
229
|
-
}
|
|
230
|
-
return {};
|
|
231
|
-
};
|
|
232
|
-
const unmarshalDeleteExternalDomainResponse = (data) => {
|
|
233
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
234
|
-
throw new TypeError(
|
|
235
|
-
`Unmarshalling the type 'DeleteExternalDomainResponse' failed as data isn't a dictionary.`
|
|
236
|
-
);
|
|
237
|
-
}
|
|
238
|
-
return {};
|
|
239
|
-
};
|
|
240
|
-
const unmarshalDeleteSSLCertificateResponse = (data) => {
|
|
241
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
242
|
-
throw new TypeError(
|
|
243
|
-
`Unmarshalling the type 'DeleteSSLCertificateResponse' failed as data isn't a dictionary.`
|
|
244
|
-
);
|
|
245
|
-
}
|
|
246
|
-
return {};
|
|
247
|
-
};
|
|
248
|
-
const unmarshalDSRecordPublicKey = (data) => {
|
|
249
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
250
|
-
throw new TypeError(
|
|
251
|
-
`Unmarshalling the type 'DSRecordPublicKey' failed as data isn't a dictionary.`
|
|
252
|
-
);
|
|
253
|
-
}
|
|
254
|
-
return {
|
|
255
|
-
key: data.key
|
|
256
|
-
};
|
|
257
|
-
};
|
|
258
|
-
const unmarshalDSRecordDigest = (data) => {
|
|
259
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
260
|
-
throw new TypeError(
|
|
261
|
-
`Unmarshalling the type 'DSRecordDigest' failed as data isn't a dictionary.`
|
|
262
|
-
);
|
|
263
|
-
}
|
|
264
|
-
return {
|
|
265
|
-
digest: data.digest,
|
|
266
|
-
publicKey: data.public_key ? unmarshalDSRecordPublicKey(data.public_key) : void 0,
|
|
267
|
-
type: data.type
|
|
268
|
-
};
|
|
269
|
-
};
|
|
270
|
-
const unmarshalDSRecord = (data) => {
|
|
271
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
272
|
-
throw new TypeError(
|
|
273
|
-
`Unmarshalling the type 'DSRecord' failed as data isn't a dictionary.`
|
|
274
|
-
);
|
|
275
|
-
}
|
|
276
|
-
return {
|
|
277
|
-
algorithm: data.algorithm,
|
|
278
|
-
digest: data.digest ? unmarshalDSRecordDigest(data.digest) : void 0,
|
|
279
|
-
keyId: data.key_id,
|
|
280
|
-
publicKey: data.public_key ? unmarshalDSRecordPublicKey(data.public_key) : void 0
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
|
-
const unmarshalTldOffer = (data) => {
|
|
284
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
285
|
-
throw new TypeError(
|
|
286
|
-
`Unmarshalling the type 'TldOffer' failed as data isn't a dictionary.`
|
|
287
|
-
);
|
|
288
|
-
}
|
|
289
|
-
return {
|
|
290
|
-
action: data.action,
|
|
291
|
-
operationPath: data.operation_path,
|
|
292
|
-
price: data.price ? sdkClient.unmarshalMoney(data.price) : void 0
|
|
293
|
-
};
|
|
294
|
-
};
|
|
295
|
-
const unmarshalDomainDNSSEC = (data) => {
|
|
296
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
297
|
-
throw new TypeError(
|
|
298
|
-
`Unmarshalling the type 'DomainDNSSEC' failed as data isn't a dictionary.`
|
|
299
|
-
);
|
|
300
|
-
}
|
|
301
|
-
return {
|
|
302
|
-
dsRecords: sdkClient.unmarshalArrayOfObject(data.ds_records, unmarshalDSRecord),
|
|
303
|
-
status: data.status
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
|
-
const unmarshalDomainRegistrationStatusExternalDomain = (data) => {
|
|
307
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
308
|
-
throw new TypeError(
|
|
309
|
-
`Unmarshalling the type 'DomainRegistrationStatusExternalDomain' failed as data isn't a dictionary.`
|
|
310
|
-
);
|
|
311
|
-
}
|
|
312
|
-
return {
|
|
313
|
-
validationToken: data.validation_token
|
|
314
|
-
};
|
|
315
|
-
};
|
|
316
|
-
const unmarshalDomainRegistrationStatusTransfer = (data) => {
|
|
317
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
318
|
-
throw new TypeError(
|
|
319
|
-
`Unmarshalling the type 'DomainRegistrationStatusTransfer' failed as data isn't a dictionary.`
|
|
320
|
-
);
|
|
321
|
-
}
|
|
322
|
-
return {
|
|
323
|
-
status: data.status,
|
|
324
|
-
voteCurrentOwner: data.vote_current_owner,
|
|
325
|
-
voteNewOwner: data.vote_new_owner
|
|
326
|
-
};
|
|
327
|
-
};
|
|
328
|
-
const unmarshalTld = (data) => {
|
|
329
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
330
|
-
throw new TypeError(
|
|
331
|
-
`Unmarshalling the type 'Tld' failed as data isn't a dictionary.`
|
|
332
|
-
);
|
|
333
|
-
}
|
|
334
|
-
return {
|
|
335
|
-
dnssecSupport: data.dnssec_support,
|
|
336
|
-
durationInYearsMax: data.duration_in_years_max,
|
|
337
|
-
durationInYearsMin: data.duration_in_years_min,
|
|
338
|
-
idnSupport: data.idn_support,
|
|
339
|
-
name: data.name,
|
|
340
|
-
offers: sdkClient.unmarshalMapOfObject(data.offers, unmarshalTldOffer),
|
|
341
|
-
specifications: data.specifications
|
|
342
|
-
};
|
|
343
|
-
};
|
|
344
|
-
const unmarshalDomain = (data) => {
|
|
345
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
346
|
-
throw new TypeError(
|
|
347
|
-
`Unmarshalling the type 'Domain' failed as data isn't a dictionary.`
|
|
348
|
-
);
|
|
349
|
-
}
|
|
350
|
-
return {
|
|
351
|
-
administrativeContact: data.administrative_contact ? unmarshalContact(data.administrative_contact) : void 0,
|
|
352
|
-
autoRenewStatus: data.auto_renew_status,
|
|
353
|
-
dnsZones: sdkClient.unmarshalArrayOfObject(data.dns_zones, unmarshalDNSZone),
|
|
354
|
-
dnssec: data.dnssec ? unmarshalDomainDNSSEC(data.dnssec) : void 0,
|
|
355
|
-
domain: data.domain,
|
|
356
|
-
eppCode: data.epp_code,
|
|
357
|
-
expiredAt: sdkClient.unmarshalDate(data.expired_at),
|
|
358
|
-
externalDomainRegistrationStatus: data.external_domain_registration_status ? unmarshalDomainRegistrationStatusExternalDomain(
|
|
359
|
-
data.external_domain_registration_status
|
|
360
|
-
) : void 0,
|
|
361
|
-
isExternal: data.is_external,
|
|
362
|
-
linkedProducts: data.linked_products,
|
|
363
|
-
organizationId: data.organization_id,
|
|
364
|
-
ownerContact: data.owner_contact ? unmarshalContact(data.owner_contact) : void 0,
|
|
365
|
-
pendingTrade: data.pending_trade,
|
|
366
|
-
projectId: data.project_id,
|
|
367
|
-
registrar: data.registrar,
|
|
368
|
-
status: data.status,
|
|
369
|
-
technicalContact: data.technical_contact ? unmarshalContact(data.technical_contact) : void 0,
|
|
370
|
-
tld: data.tld ? unmarshalTld(data.tld) : void 0,
|
|
371
|
-
transferRegistrationStatus: data.transfer_registration_status ? unmarshalDomainRegistrationStatusTransfer(
|
|
372
|
-
data.transfer_registration_status
|
|
373
|
-
) : void 0,
|
|
374
|
-
updatedAt: sdkClient.unmarshalDate(data.updated_at)
|
|
375
|
-
};
|
|
376
|
-
};
|
|
377
|
-
const unmarshalGetDNSZoneTsigKeyResponse = (data) => {
|
|
378
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
379
|
-
throw new TypeError(
|
|
380
|
-
`Unmarshalling the type 'GetDNSZoneTsigKeyResponse' failed as data isn't a dictionary.`
|
|
381
|
-
);
|
|
382
|
-
}
|
|
383
|
-
return {
|
|
384
|
-
algorithm: data.algorithm,
|
|
385
|
-
key: data.key,
|
|
386
|
-
name: data.name
|
|
387
|
-
};
|
|
388
|
-
};
|
|
389
|
-
const unmarshalDomainRecordGeoIPConfigMatch = (data) => {
|
|
390
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
391
|
-
throw new TypeError(
|
|
392
|
-
`Unmarshalling the type 'DomainRecordGeoIPConfigMatch' failed as data isn't a dictionary.`
|
|
393
|
-
);
|
|
394
|
-
}
|
|
395
|
-
return {
|
|
396
|
-
continents: data.continents,
|
|
397
|
-
countries: data.countries,
|
|
398
|
-
data: data.data
|
|
399
|
-
};
|
|
400
|
-
};
|
|
401
|
-
const unmarshalDomainRecordViewConfigView = (data) => {
|
|
402
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
403
|
-
throw new TypeError(
|
|
404
|
-
`Unmarshalling the type 'DomainRecordViewConfigView' failed as data isn't a dictionary.`
|
|
405
|
-
);
|
|
406
|
-
}
|
|
407
|
-
return {
|
|
408
|
-
data: data.data,
|
|
409
|
-
subnet: data.subnet
|
|
410
|
-
};
|
|
411
|
-
};
|
|
412
|
-
const unmarshalDomainRecordWeightedConfigWeightedIP = (data) => {
|
|
413
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
414
|
-
throw new TypeError(
|
|
415
|
-
`Unmarshalling the type 'DomainRecordWeightedConfigWeightedIP' failed as data isn't a dictionary.`
|
|
416
|
-
);
|
|
417
|
-
}
|
|
418
|
-
return {
|
|
419
|
-
ip: data.ip,
|
|
420
|
-
weight: data.weight
|
|
421
|
-
};
|
|
422
|
-
};
|
|
423
|
-
const unmarshalDomainRecordGeoIPConfig = (data) => {
|
|
424
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
425
|
-
throw new TypeError(
|
|
426
|
-
`Unmarshalling the type 'DomainRecordGeoIPConfig' failed as data isn't a dictionary.`
|
|
427
|
-
);
|
|
428
|
-
}
|
|
429
|
-
return {
|
|
430
|
-
default: data.default,
|
|
431
|
-
matches: sdkClient.unmarshalArrayOfObject(
|
|
432
|
-
data.matches,
|
|
433
|
-
unmarshalDomainRecordGeoIPConfigMatch
|
|
434
|
-
)
|
|
435
|
-
};
|
|
436
|
-
};
|
|
437
|
-
const unmarshalDomainRecordHTTPServiceConfig = (data) => {
|
|
438
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
439
|
-
throw new TypeError(
|
|
440
|
-
`Unmarshalling the type 'DomainRecordHTTPServiceConfig' failed as data isn't a dictionary.`
|
|
441
|
-
);
|
|
442
|
-
}
|
|
443
|
-
return {
|
|
444
|
-
ips: data.ips,
|
|
445
|
-
mustContain: data.must_contain,
|
|
446
|
-
strategy: data.strategy,
|
|
447
|
-
url: data.url,
|
|
448
|
-
userAgent: data.user_agent
|
|
449
|
-
};
|
|
450
|
-
};
|
|
451
|
-
const unmarshalDomainRecordViewConfig = (data) => {
|
|
452
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
453
|
-
throw new TypeError(
|
|
454
|
-
`Unmarshalling the type 'DomainRecordViewConfig' failed as data isn't a dictionary.`
|
|
455
|
-
);
|
|
456
|
-
}
|
|
457
|
-
return {
|
|
458
|
-
views: sdkClient.unmarshalArrayOfObject(
|
|
459
|
-
data.views,
|
|
460
|
-
unmarshalDomainRecordViewConfigView
|
|
461
|
-
)
|
|
462
|
-
};
|
|
463
|
-
};
|
|
464
|
-
const unmarshalDomainRecordWeightedConfig = (data) => {
|
|
465
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
466
|
-
throw new TypeError(
|
|
467
|
-
`Unmarshalling the type 'DomainRecordWeightedConfig' failed as data isn't a dictionary.`
|
|
468
|
-
);
|
|
469
|
-
}
|
|
470
|
-
return {
|
|
471
|
-
weightedIps: sdkClient.unmarshalArrayOfObject(
|
|
472
|
-
data.weighted_ips,
|
|
473
|
-
unmarshalDomainRecordWeightedConfigWeightedIP
|
|
474
|
-
)
|
|
475
|
-
};
|
|
476
|
-
};
|
|
477
|
-
const unmarshalDomainRecord = (data) => {
|
|
478
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
479
|
-
throw new TypeError(
|
|
480
|
-
`Unmarshalling the type 'DomainRecord' failed as data isn't a dictionary.`
|
|
481
|
-
);
|
|
482
|
-
}
|
|
483
|
-
return {
|
|
484
|
-
comment: data.comment,
|
|
485
|
-
data: data.data,
|
|
486
|
-
geoIpConfig: data.geo_ip_config ? unmarshalDomainRecordGeoIPConfig(data.geo_ip_config) : void 0,
|
|
487
|
-
httpServiceConfig: data.http_service_config ? unmarshalDomainRecordHTTPServiceConfig(data.http_service_config) : void 0,
|
|
488
|
-
id: data.id,
|
|
489
|
-
name: data.name,
|
|
490
|
-
priority: data.priority,
|
|
491
|
-
ttl: data.ttl,
|
|
492
|
-
type: data.type,
|
|
493
|
-
viewConfig: data.view_config ? unmarshalDomainRecordViewConfig(data.view_config) : void 0,
|
|
494
|
-
weightedConfig: data.weighted_config ? unmarshalDomainRecordWeightedConfig(data.weighted_config) : void 0
|
|
495
|
-
};
|
|
496
|
-
};
|
|
497
|
-
const unmarshalRecordIdentifier = (data) => {
|
|
498
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
499
|
-
throw new TypeError(
|
|
500
|
-
`Unmarshalling the type 'RecordIdentifier' failed as data isn't a dictionary.`
|
|
501
|
-
);
|
|
502
|
-
}
|
|
503
|
-
return {
|
|
504
|
-
data: data.data,
|
|
505
|
-
name: data.name,
|
|
506
|
-
ttl: data.ttl,
|
|
507
|
-
type: data.type
|
|
508
|
-
};
|
|
509
|
-
};
|
|
510
|
-
const unmarshalRecordChangeAdd = (data) => {
|
|
511
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
512
|
-
throw new TypeError(
|
|
513
|
-
`Unmarshalling the type 'RecordChangeAdd' failed as data isn't a dictionary.`
|
|
514
|
-
);
|
|
515
|
-
}
|
|
516
|
-
return {
|
|
517
|
-
records: sdkClient.unmarshalArrayOfObject(data.records, unmarshalDomainRecord)
|
|
518
|
-
};
|
|
519
|
-
};
|
|
520
|
-
const unmarshalRecordChangeClear = (data) => {
|
|
521
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
522
|
-
throw new TypeError(
|
|
523
|
-
`Unmarshalling the type 'RecordChangeClear' failed as data isn't a dictionary.`
|
|
524
|
-
);
|
|
525
|
-
}
|
|
526
|
-
return {};
|
|
527
|
-
};
|
|
528
|
-
const unmarshalRecordChangeDelete = (data) => {
|
|
529
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
530
|
-
throw new TypeError(
|
|
531
|
-
`Unmarshalling the type 'RecordChangeDelete' failed as data isn't a dictionary.`
|
|
532
|
-
);
|
|
533
|
-
}
|
|
534
|
-
return {
|
|
535
|
-
id: data.id,
|
|
536
|
-
idFields: data.id_fields ? unmarshalRecordIdentifier(data.id_fields) : void 0
|
|
537
|
-
};
|
|
538
|
-
};
|
|
539
|
-
const unmarshalRecordChangeSet = (data) => {
|
|
540
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
541
|
-
throw new TypeError(
|
|
542
|
-
`Unmarshalling the type 'RecordChangeSet' failed as data isn't a dictionary.`
|
|
543
|
-
);
|
|
544
|
-
}
|
|
545
|
-
return {
|
|
546
|
-
id: data.id,
|
|
547
|
-
idFields: data.id_fields ? unmarshalRecordIdentifier(data.id_fields) : void 0,
|
|
548
|
-
records: sdkClient.unmarshalArrayOfObject(data.records, unmarshalDomainRecord)
|
|
549
|
-
};
|
|
550
|
-
};
|
|
551
|
-
const unmarshalRecordChange = (data) => {
|
|
552
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
553
|
-
throw new TypeError(
|
|
554
|
-
`Unmarshalling the type 'RecordChange' failed as data isn't a dictionary.`
|
|
555
|
-
);
|
|
556
|
-
}
|
|
557
|
-
return {
|
|
558
|
-
add: data.add ? unmarshalRecordChangeAdd(data.add) : void 0,
|
|
559
|
-
clear: data.clear ? unmarshalRecordChangeClear(data.clear) : void 0,
|
|
560
|
-
delete: data.delete ? unmarshalRecordChangeDelete(data.delete) : void 0,
|
|
561
|
-
set: data.set ? unmarshalRecordChangeSet(data.set) : void 0
|
|
562
|
-
};
|
|
563
|
-
};
|
|
564
|
-
const unmarshalGetDNSZoneVersionDiffResponse = (data) => {
|
|
565
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
566
|
-
throw new TypeError(
|
|
567
|
-
`Unmarshalling the type 'GetDNSZoneVersionDiffResponse' failed as data isn't a dictionary.`
|
|
568
|
-
);
|
|
569
|
-
}
|
|
570
|
-
return {
|
|
571
|
-
changes: sdkClient.unmarshalArrayOfObject(data.changes, unmarshalRecordChange)
|
|
572
|
-
};
|
|
573
|
-
};
|
|
574
|
-
const unmarshalGetDomainAuthCodeResponse = (data) => {
|
|
575
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
576
|
-
throw new TypeError(
|
|
577
|
-
`Unmarshalling the type 'GetDomainAuthCodeResponse' failed as data isn't a dictionary.`
|
|
578
|
-
);
|
|
579
|
-
}
|
|
580
|
-
return {
|
|
581
|
-
authCode: data.auth_code
|
|
582
|
-
};
|
|
583
|
-
};
|
|
584
|
-
const unmarshalImportProviderDNSZoneResponse = (data) => {
|
|
585
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
586
|
-
throw new TypeError(
|
|
587
|
-
`Unmarshalling the type 'ImportProviderDNSZoneResponse' failed as data isn't a dictionary.`
|
|
588
|
-
);
|
|
589
|
-
}
|
|
590
|
-
return {
|
|
591
|
-
records: sdkClient.unmarshalArrayOfObject(data.records, unmarshalDomainRecord)
|
|
592
|
-
};
|
|
593
|
-
};
|
|
594
|
-
const unmarshalImportRawDNSZoneResponse = (data) => {
|
|
595
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
596
|
-
throw new TypeError(
|
|
597
|
-
`Unmarshalling the type 'ImportRawDNSZoneResponse' failed as data isn't a dictionary.`
|
|
598
|
-
);
|
|
599
|
-
}
|
|
600
|
-
return {
|
|
601
|
-
records: sdkClient.unmarshalArrayOfObject(data.records, unmarshalDomainRecord)
|
|
602
|
-
};
|
|
603
|
-
};
|
|
604
|
-
const unmarshalContactRolesRoles = (data) => {
|
|
605
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
606
|
-
throw new TypeError(
|
|
607
|
-
`Unmarshalling the type 'ContactRolesRoles' failed as data isn't a dictionary.`
|
|
608
|
-
);
|
|
609
|
-
}
|
|
610
|
-
return {
|
|
611
|
-
isAdministrative: data.is_administrative,
|
|
612
|
-
isOwner: data.is_owner,
|
|
613
|
-
isTechnical: data.is_technical
|
|
614
|
-
};
|
|
615
|
-
};
|
|
616
|
-
const unmarshalContactRoles = (data) => {
|
|
617
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
618
|
-
throw new TypeError(
|
|
619
|
-
`Unmarshalling the type 'ContactRoles' failed as data isn't a dictionary.`
|
|
620
|
-
);
|
|
621
|
-
}
|
|
622
|
-
return {
|
|
623
|
-
contact: data.contact ? unmarshalContact(data.contact) : void 0,
|
|
624
|
-
roles: sdkClient.unmarshalMapOfObject(data.roles, unmarshalContactRolesRoles)
|
|
625
|
-
};
|
|
626
|
-
};
|
|
627
|
-
const unmarshalListContactsResponse = (data) => {
|
|
628
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
629
|
-
throw new TypeError(
|
|
630
|
-
`Unmarshalling the type 'ListContactsResponse' failed as data isn't a dictionary.`
|
|
631
|
-
);
|
|
632
|
-
}
|
|
633
|
-
return {
|
|
634
|
-
contacts: sdkClient.unmarshalArrayOfObject(data.contacts, unmarshalContactRoles),
|
|
635
|
-
totalCount: data.total_count
|
|
636
|
-
};
|
|
637
|
-
};
|
|
638
|
-
const unmarshalNameserver = (data) => {
|
|
639
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
640
|
-
throw new TypeError(
|
|
641
|
-
`Unmarshalling the type 'Nameserver' failed as data isn't a dictionary.`
|
|
642
|
-
);
|
|
643
|
-
}
|
|
644
|
-
return {
|
|
645
|
-
ip: data.ip,
|
|
646
|
-
name: data.name
|
|
647
|
-
};
|
|
648
|
-
};
|
|
649
|
-
const unmarshalListDNSZoneNameserversResponse = (data) => {
|
|
650
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
651
|
-
throw new TypeError(
|
|
652
|
-
`Unmarshalling the type 'ListDNSZoneNameserversResponse' failed as data isn't a dictionary.`
|
|
653
|
-
);
|
|
654
|
-
}
|
|
655
|
-
return {
|
|
656
|
-
ns: sdkClient.unmarshalArrayOfObject(data.ns, unmarshalNameserver)
|
|
657
|
-
};
|
|
658
|
-
};
|
|
659
|
-
const unmarshalListDNSZoneRecordsResponse = (data) => {
|
|
660
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
661
|
-
throw new TypeError(
|
|
662
|
-
`Unmarshalling the type 'ListDNSZoneRecordsResponse' failed as data isn't a dictionary.`
|
|
663
|
-
);
|
|
664
|
-
}
|
|
665
|
-
return {
|
|
666
|
-
records: sdkClient.unmarshalArrayOfObject(data.records, unmarshalDomainRecord),
|
|
667
|
-
totalCount: data.total_count
|
|
668
|
-
};
|
|
669
|
-
};
|
|
670
|
-
const unmarshalListDNSZoneVersionRecordsResponse = (data) => {
|
|
671
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
672
|
-
throw new TypeError(
|
|
673
|
-
`Unmarshalling the type 'ListDNSZoneVersionRecordsResponse' failed as data isn't a dictionary.`
|
|
674
|
-
);
|
|
675
|
-
}
|
|
676
|
-
return {
|
|
677
|
-
records: sdkClient.unmarshalArrayOfObject(data.records, unmarshalDomainRecord),
|
|
678
|
-
totalCount: data.total_count
|
|
679
|
-
};
|
|
680
|
-
};
|
|
681
|
-
const unmarshalDNSZoneVersion = (data) => {
|
|
682
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
683
|
-
throw new TypeError(
|
|
684
|
-
`Unmarshalling the type 'DNSZoneVersion' failed as data isn't a dictionary.`
|
|
685
|
-
);
|
|
686
|
-
}
|
|
687
|
-
return {
|
|
688
|
-
createdAt: sdkClient.unmarshalDate(data.created_at),
|
|
689
|
-
id: data.id
|
|
690
|
-
};
|
|
691
|
-
};
|
|
692
|
-
const unmarshalListDNSZoneVersionsResponse = (data) => {
|
|
693
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
694
|
-
throw new TypeError(
|
|
695
|
-
`Unmarshalling the type 'ListDNSZoneVersionsResponse' failed as data isn't a dictionary.`
|
|
696
|
-
);
|
|
697
|
-
}
|
|
698
|
-
return {
|
|
699
|
-
totalCount: data.total_count,
|
|
700
|
-
versions: sdkClient.unmarshalArrayOfObject(data.versions, unmarshalDNSZoneVersion)
|
|
701
|
-
};
|
|
702
|
-
};
|
|
703
|
-
const unmarshalListDNSZonesResponse = (data) => {
|
|
704
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
705
|
-
throw new TypeError(
|
|
706
|
-
`Unmarshalling the type 'ListDNSZonesResponse' failed as data isn't a dictionary.`
|
|
707
|
-
);
|
|
708
|
-
}
|
|
709
|
-
return {
|
|
710
|
-
dnsZones: sdkClient.unmarshalArrayOfObject(data.dns_zones, unmarshalDNSZone),
|
|
711
|
-
totalCount: data.total_count
|
|
712
|
-
};
|
|
713
|
-
};
|
|
714
|
-
const unmarshalListDomainHostsResponse = (data) => {
|
|
715
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
716
|
-
throw new TypeError(
|
|
717
|
-
`Unmarshalling the type 'ListDomainHostsResponse' failed as data isn't a dictionary.`
|
|
718
|
-
);
|
|
719
|
-
}
|
|
720
|
-
return {
|
|
721
|
-
hosts: sdkClient.unmarshalArrayOfObject(data.hosts, unmarshalHost),
|
|
722
|
-
totalCount: data.total_count
|
|
723
|
-
};
|
|
724
|
-
};
|
|
725
|
-
const unmarshalDomainSummary = (data) => {
|
|
726
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
727
|
-
throw new TypeError(
|
|
728
|
-
`Unmarshalling the type 'DomainSummary' failed as data isn't a dictionary.`
|
|
729
|
-
);
|
|
730
|
-
}
|
|
731
|
-
return {
|
|
732
|
-
autoRenewStatus: data.auto_renew_status,
|
|
733
|
-
createdAt: sdkClient.unmarshalDate(data.created_at),
|
|
734
|
-
dnssecStatus: data.dnssec_status,
|
|
735
|
-
domain: data.domain,
|
|
736
|
-
eppCode: data.epp_code,
|
|
737
|
-
expiredAt: sdkClient.unmarshalDate(data.expired_at),
|
|
738
|
-
externalDomainRegistrationStatus: data.external_domain_registration_status ? unmarshalDomainRegistrationStatusExternalDomain(
|
|
739
|
-
data.external_domain_registration_status
|
|
740
|
-
) : void 0,
|
|
741
|
-
isExternal: data.is_external,
|
|
742
|
-
organizationId: data.organization_id,
|
|
743
|
-
pendingTrade: data.pending_trade,
|
|
744
|
-
projectId: data.project_id,
|
|
745
|
-
registrar: data.registrar,
|
|
746
|
-
status: data.status,
|
|
747
|
-
transferRegistrationStatus: data.transfer_registration_status ? unmarshalDomainRegistrationStatusTransfer(
|
|
748
|
-
data.transfer_registration_status
|
|
749
|
-
) : void 0,
|
|
750
|
-
updatedAt: sdkClient.unmarshalDate(data.updated_at)
|
|
751
|
-
};
|
|
752
|
-
};
|
|
753
|
-
const unmarshalListDomainsResponse = (data) => {
|
|
754
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
755
|
-
throw new TypeError(
|
|
756
|
-
`Unmarshalling the type 'ListDomainsResponse' failed as data isn't a dictionary.`
|
|
757
|
-
);
|
|
758
|
-
}
|
|
759
|
-
return {
|
|
760
|
-
domains: sdkClient.unmarshalArrayOfObject(data.domains, unmarshalDomainSummary),
|
|
761
|
-
totalCount: data.total_count
|
|
762
|
-
};
|
|
763
|
-
};
|
|
764
|
-
const unmarshalInboundTransfer = (data) => {
|
|
765
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
766
|
-
throw new TypeError(
|
|
767
|
-
`Unmarshalling the type 'InboundTransfer' failed as data isn't a dictionary.`
|
|
768
|
-
);
|
|
769
|
-
}
|
|
770
|
-
return {
|
|
771
|
-
createdAt: sdkClient.unmarshalDate(data.created_at),
|
|
772
|
-
domain: data.domain,
|
|
773
|
-
id: data.id,
|
|
774
|
-
lastUpdatedAt: sdkClient.unmarshalDate(data.last_updated_at),
|
|
775
|
-
message: data.message,
|
|
776
|
-
projectId: data.project_id,
|
|
777
|
-
status: data.status,
|
|
778
|
-
taskId: data.task_id
|
|
779
|
-
};
|
|
780
|
-
};
|
|
781
|
-
const unmarshalListInboundTransfersResponse = (data) => {
|
|
782
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
783
|
-
throw new TypeError(
|
|
784
|
-
`Unmarshalling the type 'ListInboundTransfersResponse' failed as data isn't a dictionary.`
|
|
785
|
-
);
|
|
786
|
-
}
|
|
787
|
-
return {
|
|
788
|
-
inboundTransfers: sdkClient.unmarshalArrayOfObject(
|
|
789
|
-
data.inbound_transfers,
|
|
790
|
-
unmarshalInboundTransfer
|
|
791
|
-
),
|
|
792
|
-
totalCount: data.total_count
|
|
793
|
-
};
|
|
794
|
-
};
|
|
795
|
-
const unmarshalRenewableDomain = (data) => {
|
|
796
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
797
|
-
throw new TypeError(
|
|
798
|
-
`Unmarshalling the type 'RenewableDomain' failed as data isn't a dictionary.`
|
|
799
|
-
);
|
|
800
|
-
}
|
|
801
|
-
return {
|
|
802
|
-
domain: data.domain,
|
|
803
|
-
estimatedDeleteAt: sdkClient.unmarshalDate(data.estimated_delete_at),
|
|
804
|
-
expiredAt: sdkClient.unmarshalDate(data.expired_at),
|
|
805
|
-
limitRedemptionAt: sdkClient.unmarshalDate(data.limit_redemption_at),
|
|
806
|
-
limitRenewAt: sdkClient.unmarshalDate(data.limit_renew_at),
|
|
807
|
-
organizationId: data.organization_id,
|
|
808
|
-
projectId: data.project_id,
|
|
809
|
-
renewableDurationInYears: data.renewable_duration_in_years,
|
|
810
|
-
status: data.status,
|
|
811
|
-
tld: data.tld ? unmarshalTld(data.tld) : void 0
|
|
812
|
-
};
|
|
813
|
-
};
|
|
814
|
-
const unmarshalListRenewableDomainsResponse = (data) => {
|
|
815
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
816
|
-
throw new TypeError(
|
|
817
|
-
`Unmarshalling the type 'ListRenewableDomainsResponse' failed as data isn't a dictionary.`
|
|
818
|
-
);
|
|
819
|
-
}
|
|
820
|
-
return {
|
|
821
|
-
domains: sdkClient.unmarshalArrayOfObject(data.domains, unmarshalRenewableDomain),
|
|
822
|
-
totalCount: data.total_count
|
|
823
|
-
};
|
|
824
|
-
};
|
|
825
|
-
const unmarshalListSSLCertificatesResponse = (data) => {
|
|
826
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
827
|
-
throw new TypeError(
|
|
828
|
-
`Unmarshalling the type 'ListSSLCertificatesResponse' failed as data isn't a dictionary.`
|
|
829
|
-
);
|
|
830
|
-
}
|
|
831
|
-
return {
|
|
832
|
-
certificates: sdkClient.unmarshalArrayOfObject(
|
|
833
|
-
data.certificates,
|
|
834
|
-
unmarshalSSLCertificate
|
|
835
|
-
),
|
|
836
|
-
totalCount: data.total_count
|
|
837
|
-
};
|
|
838
|
-
};
|
|
839
|
-
const unmarshalTask = (data) => {
|
|
840
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
841
|
-
throw new TypeError(
|
|
842
|
-
`Unmarshalling the type 'Task' failed as data isn't a dictionary.`
|
|
843
|
-
);
|
|
844
|
-
}
|
|
845
|
-
return {
|
|
846
|
-
contactIdentifier: data.contact_identifier,
|
|
847
|
-
domain: data.domain,
|
|
848
|
-
id: data.id,
|
|
849
|
-
message: data.message,
|
|
850
|
-
organizationId: data.organization_id,
|
|
851
|
-
projectId: data.project_id,
|
|
852
|
-
startedAt: sdkClient.unmarshalDate(data.started_at),
|
|
853
|
-
status: data.status,
|
|
854
|
-
type: data.type,
|
|
855
|
-
updatedAt: sdkClient.unmarshalDate(data.updated_at)
|
|
856
|
-
};
|
|
857
|
-
};
|
|
858
|
-
const unmarshalListTasksResponse = (data) => {
|
|
859
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
860
|
-
throw new TypeError(
|
|
861
|
-
`Unmarshalling the type 'ListTasksResponse' failed as data isn't a dictionary.`
|
|
862
|
-
);
|
|
863
|
-
}
|
|
864
|
-
return {
|
|
865
|
-
tasks: sdkClient.unmarshalArrayOfObject(data.tasks, unmarshalTask),
|
|
866
|
-
totalCount: data.total_count
|
|
867
|
-
};
|
|
868
|
-
};
|
|
869
|
-
const unmarshalListTldsResponse = (data) => {
|
|
870
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
871
|
-
throw new TypeError(
|
|
872
|
-
`Unmarshalling the type 'ListTldsResponse' failed as data isn't a dictionary.`
|
|
873
|
-
);
|
|
874
|
-
}
|
|
875
|
-
return {
|
|
876
|
-
tlds: sdkClient.unmarshalArrayOfObject(data.tlds, unmarshalTld),
|
|
877
|
-
totalCount: data.total_count
|
|
878
|
-
};
|
|
879
|
-
};
|
|
880
|
-
const unmarshalOrderResponse = (data) => {
|
|
881
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
882
|
-
throw new TypeError(
|
|
883
|
-
`Unmarshalling the type 'OrderResponse' failed as data isn't a dictionary.`
|
|
884
|
-
);
|
|
885
|
-
}
|
|
886
|
-
return {
|
|
887
|
-
createdAt: sdkClient.unmarshalDate(data.created_at),
|
|
888
|
-
domains: data.domains,
|
|
889
|
-
organizationId: data.organization_id,
|
|
890
|
-
projectId: data.project_id,
|
|
891
|
-
taskId: data.task_id
|
|
892
|
-
};
|
|
893
|
-
};
|
|
894
|
-
const unmarshalRefreshDNSZoneResponse = (data) => {
|
|
895
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
896
|
-
throw new TypeError(
|
|
897
|
-
`Unmarshalling the type 'RefreshDNSZoneResponse' failed as data isn't a dictionary.`
|
|
898
|
-
);
|
|
899
|
-
}
|
|
900
|
-
return {
|
|
901
|
-
dnsZones: sdkClient.unmarshalArrayOfObject(data.dns_zones, unmarshalDNSZone)
|
|
902
|
-
};
|
|
903
|
-
};
|
|
904
|
-
const unmarshalRegisterExternalDomainResponse = (data) => {
|
|
905
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
906
|
-
throw new TypeError(
|
|
907
|
-
`Unmarshalling the type 'RegisterExternalDomainResponse' failed as data isn't a dictionary.`
|
|
908
|
-
);
|
|
909
|
-
}
|
|
910
|
-
return {
|
|
911
|
-
createdAt: sdkClient.unmarshalDate(data.created_at),
|
|
912
|
-
domain: data.domain,
|
|
913
|
-
organizationId: data.organization_id,
|
|
914
|
-
projectId: data.project_id,
|
|
915
|
-
validationToken: data.validation_token
|
|
916
|
-
};
|
|
917
|
-
};
|
|
918
|
-
const unmarshalRestoreDNSZoneVersionResponse = (data) => {
|
|
919
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
920
|
-
throw new TypeError(
|
|
921
|
-
`Unmarshalling the type 'RestoreDNSZoneVersionResponse' failed as data isn't a dictionary.`
|
|
922
|
-
);
|
|
923
|
-
}
|
|
924
|
-
return {};
|
|
925
|
-
};
|
|
926
|
-
const unmarshalRetryInboundTransferResponse = (data) => {
|
|
927
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
928
|
-
throw new TypeError(
|
|
929
|
-
`Unmarshalling the type 'RetryInboundTransferResponse' failed as data isn't a dictionary.`
|
|
930
|
-
);
|
|
931
|
-
}
|
|
932
|
-
return {};
|
|
933
|
-
};
|
|
934
|
-
const unmarshalAvailableDomain = (data) => {
|
|
935
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
936
|
-
throw new TypeError(
|
|
937
|
-
`Unmarshalling the type 'AvailableDomain' failed as data isn't a dictionary.`
|
|
938
|
-
);
|
|
939
|
-
}
|
|
940
|
-
return {
|
|
941
|
-
available: data.available,
|
|
942
|
-
domain: data.domain,
|
|
943
|
-
tld: data.tld ? unmarshalTld(data.tld) : void 0
|
|
944
|
-
};
|
|
945
|
-
};
|
|
946
|
-
const unmarshalSearchAvailableDomainsResponse = (data) => {
|
|
947
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
948
|
-
throw new TypeError(
|
|
949
|
-
`Unmarshalling the type 'SearchAvailableDomainsResponse' failed as data isn't a dictionary.`
|
|
950
|
-
);
|
|
951
|
-
}
|
|
952
|
-
return {
|
|
953
|
-
availableDomains: sdkClient.unmarshalArrayOfObject(
|
|
954
|
-
data.available_domains,
|
|
955
|
-
unmarshalAvailableDomain
|
|
956
|
-
)
|
|
957
|
-
};
|
|
958
|
-
};
|
|
959
|
-
const unmarshalUpdateDNSZoneNameserversResponse = (data) => {
|
|
960
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
961
|
-
throw new TypeError(
|
|
962
|
-
`Unmarshalling the type 'UpdateDNSZoneNameserversResponse' failed as data isn't a dictionary.`
|
|
963
|
-
);
|
|
964
|
-
}
|
|
965
|
-
return {
|
|
966
|
-
ns: sdkClient.unmarshalArrayOfObject(data.ns, unmarshalNameserver)
|
|
967
|
-
};
|
|
968
|
-
};
|
|
969
|
-
const unmarshalUpdateDNSZoneRecordsResponse = (data) => {
|
|
970
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
971
|
-
throw new TypeError(
|
|
972
|
-
`Unmarshalling the type 'UpdateDNSZoneRecordsResponse' failed as data isn't a dictionary.`
|
|
973
|
-
);
|
|
974
|
-
}
|
|
975
|
-
return {
|
|
976
|
-
records: sdkClient.unmarshalArrayOfObject(data.records, unmarshalDomainRecord)
|
|
977
|
-
};
|
|
978
|
-
};
|
|
979
|
-
const marshalCloneDNSZoneRequest = (request, defaults) => ({
|
|
980
|
-
dest_dns_zone: request.destDnsZone,
|
|
981
|
-
overwrite: request.overwrite,
|
|
982
|
-
project_id: request.projectId ?? defaults.defaultProjectId
|
|
983
|
-
});
|
|
984
|
-
const marshalCreateDNSZoneRequest = (request, defaults) => ({
|
|
985
|
-
domain: request.domain,
|
|
986
|
-
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
987
|
-
subdomain: request.subdomain
|
|
988
|
-
});
|
|
989
|
-
const marshalCreateSSLCertificateRequest = (request, defaults) => ({
|
|
990
|
-
alternative_dns_zones: request.alternativeDnsZones,
|
|
991
|
-
dns_zone: request.dnsZone
|
|
992
|
-
});
|
|
993
|
-
const marshalImportProviderDNSZoneRequestOnlineV1 = (request, defaults) => ({
|
|
994
|
-
token: request.token
|
|
995
|
-
});
|
|
996
|
-
const marshalImportProviderDNSZoneRequest = (request, defaults) => ({
|
|
997
|
-
...sdkClient.resolveOneOf([
|
|
998
|
-
{
|
|
999
|
-
param: "online_v1",
|
|
1000
|
-
value: request.onlineV1 !== void 0 ? marshalImportProviderDNSZoneRequestOnlineV1(
|
|
1001
|
-
request.onlineV1
|
|
1002
|
-
) : void 0
|
|
1003
|
-
}
|
|
1004
|
-
])
|
|
1005
|
-
});
|
|
1006
|
-
const marshalImportRawDNSZoneRequestTsigKey = (request, defaults) => ({
|
|
1007
|
-
algorithm: request.algorithm,
|
|
1008
|
-
key: request.key,
|
|
1009
|
-
name: request.name
|
|
1010
|
-
});
|
|
1011
|
-
const marshalImportRawDNSZoneRequestAXFRSource = (request, defaults) => ({
|
|
1012
|
-
name_server: request.nameServer,
|
|
1013
|
-
tsig_key: request.tsigKey !== void 0 ? marshalImportRawDNSZoneRequestTsigKey(request.tsigKey) : void 0
|
|
1014
|
-
});
|
|
1015
|
-
const marshalImportRawDNSZoneRequestBindSource = (request, defaults) => ({
|
|
1016
|
-
content: request.content
|
|
1017
|
-
});
|
|
1018
|
-
const marshalImportRawDNSZoneRequest = (request, defaults) => ({
|
|
1019
|
-
content: request.content,
|
|
1020
|
-
format: request.format,
|
|
1021
|
-
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
1022
|
-
...sdkClient.resolveOneOf([
|
|
1023
|
-
{
|
|
1024
|
-
param: "bind_source",
|
|
1025
|
-
value: request.bindSource !== void 0 ? marshalImportRawDNSZoneRequestBindSource(
|
|
1026
|
-
request.bindSource
|
|
1027
|
-
) : void 0
|
|
1028
|
-
},
|
|
1029
|
-
{
|
|
1030
|
-
param: "axfr_source",
|
|
1031
|
-
value: request.axfrSource !== void 0 ? marshalImportRawDNSZoneRequestAXFRSource(
|
|
1032
|
-
request.axfrSource
|
|
1033
|
-
) : void 0
|
|
1034
|
-
}
|
|
1035
|
-
])
|
|
1036
|
-
});
|
|
1037
|
-
const marshalRefreshDNSZoneRequest = (request, defaults) => ({
|
|
1038
|
-
recreate_dns_zone: request.recreateDnsZone,
|
|
1039
|
-
recreate_sub_dns_zone: request.recreateSubDnsZone
|
|
1040
|
-
});
|
|
1041
|
-
const marshalContactExtensionFRAssociationInfo = (request, defaults) => ({
|
|
1042
|
-
publication_jo: request.publicationJo,
|
|
1043
|
-
publication_jo_page: request.publicationJoPage
|
|
1044
|
-
});
|
|
1045
|
-
const marshalContactExtensionFRCodeAuthAfnicInfo = (request, defaults) => ({
|
|
1046
|
-
code_auth_afnic: request.codeAuthAfnic
|
|
1047
|
-
});
|
|
1048
|
-
const marshalContactExtensionFRDunsInfo = (request, defaults) => ({
|
|
1049
|
-
duns_id: request.dunsId,
|
|
1050
|
-
local_id: request.localId
|
|
1051
|
-
});
|
|
1052
|
-
const marshalContactExtensionFRIndividualInfo = (request, defaults) => ({
|
|
1053
|
-
whois_opt_in: request.whoisOptIn
|
|
1054
|
-
});
|
|
1055
|
-
const marshalContactExtensionFRTrademarkInfo = (request, defaults) => ({
|
|
1056
|
-
trademark_inpi: request.trademarkInpi
|
|
1057
|
-
});
|
|
1058
|
-
const marshalContactExtensionEU = (request, defaults) => ({
|
|
1059
|
-
european_citizenship: request.europeanCitizenship
|
|
1060
|
-
});
|
|
1061
|
-
const marshalContactExtensionFR = (request, defaults) => ({
|
|
1062
|
-
mode: request.mode,
|
|
1063
|
-
...sdkClient.resolveOneOf([
|
|
1064
|
-
{
|
|
1065
|
-
param: "individual_info",
|
|
1066
|
-
value: request.individualInfo !== void 0 ? marshalContactExtensionFRIndividualInfo(
|
|
1067
|
-
request.individualInfo
|
|
1068
|
-
) : void 0
|
|
1069
|
-
},
|
|
1070
|
-
{
|
|
1071
|
-
param: "duns_info",
|
|
1072
|
-
value: request.dunsInfo !== void 0 ? marshalContactExtensionFRDunsInfo(request.dunsInfo) : void 0
|
|
1073
|
-
},
|
|
1074
|
-
{
|
|
1075
|
-
param: "association_info",
|
|
1076
|
-
value: request.associationInfo !== void 0 ? marshalContactExtensionFRAssociationInfo(
|
|
1077
|
-
request.associationInfo
|
|
1078
|
-
) : void 0
|
|
1079
|
-
},
|
|
1080
|
-
{
|
|
1081
|
-
param: "trademark_info",
|
|
1082
|
-
value: request.trademarkInfo !== void 0 ? marshalContactExtensionFRTrademarkInfo(
|
|
1083
|
-
request.trademarkInfo
|
|
1084
|
-
) : void 0
|
|
1085
|
-
},
|
|
1086
|
-
{
|
|
1087
|
-
param: "code_auth_afnic_info",
|
|
1088
|
-
value: request.codeAuthAfnicInfo !== void 0 ? marshalContactExtensionFRCodeAuthAfnicInfo(
|
|
1089
|
-
request.codeAuthAfnicInfo
|
|
1090
|
-
) : void 0
|
|
1091
|
-
}
|
|
1092
|
-
])
|
|
1093
|
-
});
|
|
1094
|
-
const marshalContactExtensionNL = (request, defaults) => ({
|
|
1095
|
-
legal_form: request.legalForm,
|
|
1096
|
-
legal_form_registration_number: request.legalFormRegistrationNumber
|
|
1097
|
-
});
|
|
1098
|
-
const marshalContactQuestion = (request, defaults) => ({
|
|
1099
|
-
answer: request.answer,
|
|
1100
|
-
question: request.question
|
|
1101
|
-
});
|
|
1102
|
-
const marshalNewContact = (request, defaults) => ({
|
|
1103
|
-
address_line_1: request.addressLine1,
|
|
1104
|
-
address_line_2: request.addressLine2,
|
|
1105
|
-
city: request.city,
|
|
1106
|
-
company_identification_code: request.companyIdentificationCode,
|
|
1107
|
-
company_name: request.companyName,
|
|
1108
|
-
country: request.country,
|
|
1109
|
-
email: request.email,
|
|
1110
|
-
email_alt: request.emailAlt,
|
|
1111
|
-
extension_eu: request.extensionEu !== void 0 ? marshalContactExtensionEU(request.extensionEu) : void 0,
|
|
1112
|
-
extension_fr: request.extensionFr !== void 0 ? marshalContactExtensionFR(request.extensionFr) : void 0,
|
|
1113
|
-
extension_nl: request.extensionNl !== void 0 ? marshalContactExtensionNL(request.extensionNl) : void 0,
|
|
1114
|
-
fax_number: request.faxNumber,
|
|
1115
|
-
firstname: request.firstname,
|
|
1116
|
-
lang: request.lang,
|
|
1117
|
-
lastname: request.lastname,
|
|
1118
|
-
legal_form: request.legalForm,
|
|
1119
|
-
phone_number: request.phoneNumber,
|
|
1120
|
-
questions: request.questions !== void 0 ? request.questions.map((elt) => marshalContactQuestion(elt)) : void 0,
|
|
1121
|
-
resale: request.resale,
|
|
1122
|
-
state: request.state,
|
|
1123
|
-
vat_identification_code: request.vatIdentificationCode,
|
|
1124
|
-
whois_opt_in: request.whoisOptIn,
|
|
1125
|
-
zip: request.zip
|
|
1126
|
-
});
|
|
1127
|
-
const marshalRegistrarApiBuyDomainsRequest = (request, defaults) => ({
|
|
1128
|
-
domains: request.domains,
|
|
1129
|
-
duration_in_years: request.durationInYears,
|
|
1130
|
-
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
1131
|
-
...sdkClient.resolveOneOf([
|
|
1132
|
-
{ param: "owner_contact_id", value: request.ownerContactId },
|
|
1133
|
-
{
|
|
1134
|
-
param: "owner_contact",
|
|
1135
|
-
value: request.ownerContact !== void 0 ? marshalNewContact(request.ownerContact) : void 0
|
|
1136
|
-
}
|
|
1137
|
-
]),
|
|
1138
|
-
...sdkClient.resolveOneOf([
|
|
1139
|
-
{
|
|
1140
|
-
param: "administrative_contact_id",
|
|
1141
|
-
value: request.administrativeContactId
|
|
1142
|
-
},
|
|
1143
|
-
{
|
|
1144
|
-
param: "administrative_contact",
|
|
1145
|
-
value: request.administrativeContact !== void 0 ? marshalNewContact(request.administrativeContact) : void 0
|
|
1146
|
-
}
|
|
1147
|
-
]),
|
|
1148
|
-
...sdkClient.resolveOneOf([
|
|
1149
|
-
{ param: "technical_contact_id", value: request.technicalContactId },
|
|
1150
|
-
{
|
|
1151
|
-
param: "technical_contact",
|
|
1152
|
-
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact) : void 0
|
|
1153
|
-
}
|
|
1154
|
-
])
|
|
1155
|
-
});
|
|
1156
|
-
const marshalRegistrarApiCheckContactsCompatibilityRequest = (request, defaults) => ({
|
|
1157
|
-
domains: request.domains,
|
|
1158
|
-
tlds: request.tlds,
|
|
1159
|
-
...sdkClient.resolveOneOf([
|
|
1160
|
-
{ param: "owner_contact_id", value: request.ownerContactId },
|
|
1161
|
-
{
|
|
1162
|
-
param: "owner_contact",
|
|
1163
|
-
value: request.ownerContact !== void 0 ? marshalNewContact(request.ownerContact) : void 0
|
|
1164
|
-
}
|
|
1165
|
-
]),
|
|
1166
|
-
...sdkClient.resolveOneOf([
|
|
1167
|
-
{
|
|
1168
|
-
param: "administrative_contact_id",
|
|
1169
|
-
value: request.administrativeContactId
|
|
1170
|
-
},
|
|
1171
|
-
{
|
|
1172
|
-
param: "administrative_contact",
|
|
1173
|
-
value: request.administrativeContact !== void 0 ? marshalNewContact(request.administrativeContact) : void 0
|
|
1174
|
-
}
|
|
1175
|
-
]),
|
|
1176
|
-
...sdkClient.resolveOneOf([
|
|
1177
|
-
{ param: "technical_contact_id", value: request.technicalContactId },
|
|
1178
|
-
{
|
|
1179
|
-
param: "technical_contact",
|
|
1180
|
-
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact) : void 0
|
|
1181
|
-
}
|
|
1182
|
-
])
|
|
1183
|
-
});
|
|
1184
|
-
const marshalRegistrarApiCreateDomainHostRequest = (request, defaults) => ({
|
|
1185
|
-
ips: request.ips,
|
|
1186
|
-
name: request.name
|
|
1187
|
-
});
|
|
1188
|
-
const marshalDSRecordPublicKey = (request, defaults) => ({
|
|
1189
|
-
key: request.key
|
|
1190
|
-
});
|
|
1191
|
-
const marshalDSRecordDigest = (request, defaults) => ({
|
|
1192
|
-
digest: request.digest,
|
|
1193
|
-
public_key: request.publicKey !== void 0 ? marshalDSRecordPublicKey(request.publicKey) : void 0,
|
|
1194
|
-
type: request.type
|
|
1195
|
-
});
|
|
1196
|
-
const marshalDSRecord = (request, defaults) => ({
|
|
1197
|
-
algorithm: request.algorithm,
|
|
1198
|
-
key_id: request.keyId,
|
|
1199
|
-
...sdkClient.resolveOneOf([
|
|
1200
|
-
{
|
|
1201
|
-
param: "digest",
|
|
1202
|
-
value: request.digest !== void 0 ? marshalDSRecordDigest(request.digest) : void 0
|
|
1203
|
-
},
|
|
1204
|
-
{
|
|
1205
|
-
param: "public_key",
|
|
1206
|
-
value: request.publicKey !== void 0 ? marshalDSRecordPublicKey(request.publicKey) : void 0
|
|
1207
|
-
}
|
|
1208
|
-
])
|
|
1209
|
-
});
|
|
1210
|
-
const marshalRegistrarApiEnableDomainDNSSECRequest = (request, defaults) => ({
|
|
1211
|
-
ds_record: request.dsRecord !== void 0 ? marshalDSRecord(request.dsRecord) : void 0
|
|
1212
|
-
});
|
|
1213
|
-
const marshalRegistrarApiRegisterExternalDomainRequest = (request, defaults) => ({
|
|
1214
|
-
domain: request.domain,
|
|
1215
|
-
project_id: request.projectId ?? defaults.defaultProjectId
|
|
1216
|
-
});
|
|
1217
|
-
const marshalRegistrarApiRenewDomainsRequest = (request, defaults) => ({
|
|
1218
|
-
domains: request.domains,
|
|
1219
|
-
duration_in_years: request.durationInYears,
|
|
1220
|
-
force_late_renewal: request.forceLateRenewal
|
|
1221
|
-
});
|
|
1222
|
-
const marshalRegistrarApiRetryInboundTransferRequest = (request, defaults) => ({
|
|
1223
|
-
auth_code: request.authCode,
|
|
1224
|
-
domain: request.domain,
|
|
1225
|
-
project_id: request.projectId ?? defaults.defaultProjectId
|
|
1226
|
-
});
|
|
1227
|
-
const marshalRegistrarApiTradeDomainRequest = (request, defaults) => ({
|
|
1228
|
-
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
1229
|
-
...sdkClient.resolveOneOf([
|
|
1230
|
-
{ param: "new_owner_contact_id", value: request.newOwnerContactId },
|
|
1231
|
-
{
|
|
1232
|
-
param: "new_owner_contact",
|
|
1233
|
-
value: request.newOwnerContact !== void 0 ? marshalNewContact(request.newOwnerContact) : void 0
|
|
1234
|
-
}
|
|
1235
|
-
])
|
|
1236
|
-
});
|
|
1237
|
-
const marshalTransferInDomainRequestTransferRequest = (request, defaults) => ({
|
|
1238
|
-
auth_code: request.authCode,
|
|
1239
|
-
domain: request.domain
|
|
1240
|
-
});
|
|
1241
|
-
const marshalRegistrarApiTransferInDomainRequest = (request, defaults) => ({
|
|
1242
|
-
domains: request.domains.map(
|
|
1243
|
-
(elt) => marshalTransferInDomainRequestTransferRequest(elt)
|
|
1244
|
-
),
|
|
1245
|
-
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
1246
|
-
...sdkClient.resolveOneOf([
|
|
1247
|
-
{ param: "owner_contact_id", value: request.ownerContactId },
|
|
1248
|
-
{
|
|
1249
|
-
param: "owner_contact",
|
|
1250
|
-
value: request.ownerContact !== void 0 ? marshalNewContact(request.ownerContact) : void 0
|
|
1251
|
-
}
|
|
1252
|
-
]),
|
|
1253
|
-
...sdkClient.resolveOneOf([
|
|
1254
|
-
{
|
|
1255
|
-
param: "administrative_contact_id",
|
|
1256
|
-
value: request.administrativeContactId
|
|
1257
|
-
},
|
|
1258
|
-
{
|
|
1259
|
-
param: "administrative_contact",
|
|
1260
|
-
value: request.administrativeContact !== void 0 ? marshalNewContact(request.administrativeContact) : void 0
|
|
1261
|
-
}
|
|
1262
|
-
]),
|
|
1263
|
-
...sdkClient.resolveOneOf([
|
|
1264
|
-
{ param: "technical_contact_id", value: request.technicalContactId },
|
|
1265
|
-
{
|
|
1266
|
-
param: "technical_contact",
|
|
1267
|
-
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact) : void 0
|
|
1268
|
-
}
|
|
1269
|
-
])
|
|
1270
|
-
});
|
|
1271
|
-
const marshalUpdateContactRequestQuestion = (request, defaults) => ({
|
|
1272
|
-
answer: request.answer,
|
|
1273
|
-
question: request.question
|
|
1274
|
-
});
|
|
1275
|
-
const marshalRegistrarApiUpdateContactRequest = (request, defaults) => ({
|
|
1276
|
-
address_line_1: request.addressLine1,
|
|
1277
|
-
address_line_2: request.addressLine2,
|
|
1278
|
-
city: request.city,
|
|
1279
|
-
company_identification_code: request.companyIdentificationCode,
|
|
1280
|
-
country: request.country,
|
|
1281
|
-
email: request.email,
|
|
1282
|
-
email_alt: request.emailAlt,
|
|
1283
|
-
extension_eu: request.extensionEu !== void 0 ? marshalContactExtensionEU(request.extensionEu) : void 0,
|
|
1284
|
-
extension_fr: request.extensionFr !== void 0 ? marshalContactExtensionFR(request.extensionFr) : void 0,
|
|
1285
|
-
extension_nl: request.extensionNl !== void 0 ? marshalContactExtensionNL(request.extensionNl) : void 0,
|
|
1286
|
-
fax_number: request.faxNumber,
|
|
1287
|
-
lang: request.lang,
|
|
1288
|
-
phone_number: request.phoneNumber,
|
|
1289
|
-
questions: request.questions !== void 0 ? request.questions.map(
|
|
1290
|
-
(elt) => marshalUpdateContactRequestQuestion(elt)
|
|
1291
|
-
) : void 0,
|
|
1292
|
-
resale: request.resale,
|
|
1293
|
-
state: request.state,
|
|
1294
|
-
vat_identification_code: request.vatIdentificationCode,
|
|
1295
|
-
whois_opt_in: request.whoisOptIn,
|
|
1296
|
-
zip: request.zip
|
|
1297
|
-
});
|
|
1298
|
-
const marshalRegistrarApiUpdateDomainHostRequest = (request, defaults) => ({
|
|
1299
|
-
ips: request.ips
|
|
1300
|
-
});
|
|
1301
|
-
const marshalRegistrarApiUpdateDomainRequest = (request, defaults) => ({
|
|
1302
|
-
...sdkClient.resolveOneOf([
|
|
1303
|
-
{ param: "technical_contact_id", value: request.technicalContactId },
|
|
1304
|
-
{
|
|
1305
|
-
param: "technical_contact",
|
|
1306
|
-
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact) : void 0
|
|
1307
|
-
}
|
|
1308
|
-
]),
|
|
1309
|
-
...sdkClient.resolveOneOf([
|
|
1310
|
-
{ param: "owner_contact_id", value: request.ownerContactId },
|
|
1311
|
-
{
|
|
1312
|
-
param: "owner_contact",
|
|
1313
|
-
value: request.ownerContact !== void 0 ? marshalNewContact(request.ownerContact) : void 0
|
|
1314
|
-
}
|
|
1315
|
-
]),
|
|
1316
|
-
...sdkClient.resolveOneOf([
|
|
1317
|
-
{
|
|
1318
|
-
param: "administrative_contact_id",
|
|
1319
|
-
value: request.administrativeContactId
|
|
1320
|
-
},
|
|
1321
|
-
{
|
|
1322
|
-
param: "administrative_contact",
|
|
1323
|
-
value: request.administrativeContact !== void 0 ? marshalNewContact(request.administrativeContact) : void 0
|
|
1324
|
-
}
|
|
1325
|
-
])
|
|
1326
|
-
});
|
|
1327
|
-
const marshalNameserver = (request, defaults) => ({
|
|
1328
|
-
ip: request.ip,
|
|
1329
|
-
name: request.name
|
|
1330
|
-
});
|
|
1331
|
-
const marshalUpdateDNSZoneNameserversRequest = (request, defaults) => ({
|
|
1332
|
-
ns: request.ns.map((elt) => marshalNameserver(elt))
|
|
1333
|
-
});
|
|
1334
|
-
const marshalDomainRecordGeoIPConfigMatch = (request, defaults) => ({
|
|
1335
|
-
continents: request.continents,
|
|
1336
|
-
countries: request.countries,
|
|
1337
|
-
data: request.data
|
|
1338
|
-
});
|
|
1339
|
-
const marshalDomainRecordViewConfigView = (request, defaults) => ({
|
|
1340
|
-
data: request.data,
|
|
1341
|
-
subnet: request.subnet
|
|
1342
|
-
});
|
|
1343
|
-
const marshalDomainRecordWeightedConfigWeightedIP = (request, defaults) => ({
|
|
1344
|
-
ip: request.ip,
|
|
1345
|
-
weight: request.weight
|
|
1346
|
-
});
|
|
1347
|
-
const marshalDomainRecordGeoIPConfig = (request, defaults) => ({
|
|
1348
|
-
default: request.default,
|
|
1349
|
-
matches: request.matches.map(
|
|
1350
|
-
(elt) => marshalDomainRecordGeoIPConfigMatch(elt)
|
|
1351
|
-
)
|
|
1352
|
-
});
|
|
1353
|
-
const marshalDomainRecordHTTPServiceConfig = (request, defaults) => ({
|
|
1354
|
-
ips: request.ips,
|
|
1355
|
-
must_contain: request.mustContain,
|
|
1356
|
-
strategy: request.strategy,
|
|
1357
|
-
url: request.url,
|
|
1358
|
-
user_agent: request.userAgent
|
|
1359
|
-
});
|
|
1360
|
-
const marshalDomainRecordViewConfig = (request, defaults) => ({
|
|
1361
|
-
views: request.views.map(
|
|
1362
|
-
(elt) => marshalDomainRecordViewConfigView(elt)
|
|
1363
|
-
)
|
|
1364
|
-
});
|
|
1365
|
-
const marshalDomainRecordWeightedConfig = (request, defaults) => ({
|
|
1366
|
-
weighted_ips: request.weightedIps.map(
|
|
1367
|
-
(elt) => marshalDomainRecordWeightedConfigWeightedIP(elt)
|
|
1368
|
-
)
|
|
1369
|
-
});
|
|
1370
|
-
const marshalDomainRecord = (request, defaults) => ({
|
|
1371
|
-
comment: request.comment,
|
|
1372
|
-
data: request.data,
|
|
1373
|
-
id: request.id,
|
|
1374
|
-
name: request.name,
|
|
1375
|
-
priority: request.priority,
|
|
1376
|
-
ttl: request.ttl,
|
|
1377
|
-
type: request.type,
|
|
1378
|
-
...sdkClient.resolveOneOf([
|
|
1379
|
-
{
|
|
1380
|
-
param: "geo_ip_config",
|
|
1381
|
-
value: request.geoIpConfig !== void 0 ? marshalDomainRecordGeoIPConfig(request.geoIpConfig) : void 0
|
|
1382
|
-
},
|
|
1383
|
-
{
|
|
1384
|
-
param: "http_service_config",
|
|
1385
|
-
value: request.httpServiceConfig !== void 0 ? marshalDomainRecordHTTPServiceConfig(
|
|
1386
|
-
request.httpServiceConfig
|
|
1387
|
-
) : void 0
|
|
1388
|
-
},
|
|
1389
|
-
{
|
|
1390
|
-
param: "weighted_config",
|
|
1391
|
-
value: request.weightedConfig !== void 0 ? marshalDomainRecordWeightedConfig(request.weightedConfig) : void 0
|
|
1392
|
-
},
|
|
1393
|
-
{
|
|
1394
|
-
param: "view_config",
|
|
1395
|
-
value: request.viewConfig !== void 0 ? marshalDomainRecordViewConfig(request.viewConfig) : void 0
|
|
1396
|
-
}
|
|
1397
|
-
])
|
|
1398
|
-
});
|
|
1399
|
-
const marshalRecordIdentifier = (request, defaults) => ({
|
|
1400
|
-
data: request.data,
|
|
1401
|
-
name: request.name,
|
|
1402
|
-
ttl: request.ttl,
|
|
1403
|
-
type: request.type
|
|
1404
|
-
});
|
|
1405
|
-
const marshalRecordChangeAdd = (request, defaults) => ({
|
|
1406
|
-
records: request.records.map((elt) => marshalDomainRecord(elt))
|
|
1407
|
-
});
|
|
1408
|
-
const marshalRecordChangeClear = (request, defaults) => ({});
|
|
1409
|
-
const marshalRecordChangeDelete = (request, defaults) => ({
|
|
1410
|
-
...sdkClient.resolveOneOf([
|
|
1411
|
-
{ param: "id", value: request.id },
|
|
1412
|
-
{
|
|
1413
|
-
param: "id_fields",
|
|
1414
|
-
value: request.idFields !== void 0 ? marshalRecordIdentifier(request.idFields) : void 0
|
|
1415
|
-
}
|
|
1416
|
-
])
|
|
1417
|
-
});
|
|
1418
|
-
const marshalRecordChangeSet = (request, defaults) => ({
|
|
1419
|
-
records: request.records.map((elt) => marshalDomainRecord(elt)),
|
|
1420
|
-
...sdkClient.resolveOneOf([
|
|
1421
|
-
{ param: "id", value: request.id },
|
|
1422
|
-
{
|
|
1423
|
-
param: "id_fields",
|
|
1424
|
-
value: request.idFields !== void 0 ? marshalRecordIdentifier(request.idFields) : void 0
|
|
1425
|
-
}
|
|
1426
|
-
])
|
|
1427
|
-
});
|
|
1428
|
-
const marshalRecordChange = (request, defaults) => ({
|
|
1429
|
-
...sdkClient.resolveOneOf([
|
|
1430
|
-
{
|
|
1431
|
-
param: "add",
|
|
1432
|
-
value: request.add !== void 0 ? marshalRecordChangeAdd(request.add) : void 0
|
|
1433
|
-
},
|
|
1434
|
-
{
|
|
1435
|
-
param: "set",
|
|
1436
|
-
value: request.set !== void 0 ? marshalRecordChangeSet(request.set) : void 0
|
|
1437
|
-
},
|
|
1438
|
-
{
|
|
1439
|
-
param: "delete",
|
|
1440
|
-
value: request.delete !== void 0 ? marshalRecordChangeDelete(request.delete) : void 0
|
|
1441
|
-
},
|
|
1442
|
-
{
|
|
1443
|
-
param: "clear",
|
|
1444
|
-
value: request.clear !== void 0 ? marshalRecordChangeClear(request.clear) : void 0
|
|
1445
|
-
}
|
|
1446
|
-
])
|
|
1447
|
-
});
|
|
1448
|
-
const marshalUpdateDNSZoneRecordsRequest = (request, defaults) => ({
|
|
1449
|
-
changes: request.changes.map((elt) => marshalRecordChange(elt)),
|
|
1450
|
-
disallow_new_zone_creation: request.disallowNewZoneCreation,
|
|
1451
|
-
return_all_records: request.returnAllRecords,
|
|
1452
|
-
serial: request.serial
|
|
1453
|
-
});
|
|
1454
|
-
const marshalUpdateDNSZoneRequest = (request, defaults) => ({
|
|
1455
|
-
new_dns_zone: request.newDnsZone,
|
|
1456
|
-
project_id: request.projectId ?? defaults.defaultProjectId
|
|
1457
|
-
});
|
|
1458
|
-
exports.marshalCloneDNSZoneRequest = marshalCloneDNSZoneRequest;
|
|
1459
|
-
exports.marshalCreateDNSZoneRequest = marshalCreateDNSZoneRequest;
|
|
1460
|
-
exports.marshalCreateSSLCertificateRequest = marshalCreateSSLCertificateRequest;
|
|
1461
|
-
exports.marshalDSRecord = marshalDSRecord;
|
|
1462
|
-
exports.marshalImportProviderDNSZoneRequest = marshalImportProviderDNSZoneRequest;
|
|
1463
|
-
exports.marshalImportRawDNSZoneRequest = marshalImportRawDNSZoneRequest;
|
|
1464
|
-
exports.marshalRefreshDNSZoneRequest = marshalRefreshDNSZoneRequest;
|
|
1465
|
-
exports.marshalRegistrarApiBuyDomainsRequest = marshalRegistrarApiBuyDomainsRequest;
|
|
1466
|
-
exports.marshalRegistrarApiCheckContactsCompatibilityRequest = marshalRegistrarApiCheckContactsCompatibilityRequest;
|
|
1467
|
-
exports.marshalRegistrarApiCreateDomainHostRequest = marshalRegistrarApiCreateDomainHostRequest;
|
|
1468
|
-
exports.marshalRegistrarApiEnableDomainDNSSECRequest = marshalRegistrarApiEnableDomainDNSSECRequest;
|
|
1469
|
-
exports.marshalRegistrarApiRegisterExternalDomainRequest = marshalRegistrarApiRegisterExternalDomainRequest;
|
|
1470
|
-
exports.marshalRegistrarApiRenewDomainsRequest = marshalRegistrarApiRenewDomainsRequest;
|
|
1471
|
-
exports.marshalRegistrarApiRetryInboundTransferRequest = marshalRegistrarApiRetryInboundTransferRequest;
|
|
1472
|
-
exports.marshalRegistrarApiTradeDomainRequest = marshalRegistrarApiTradeDomainRequest;
|
|
1473
|
-
exports.marshalRegistrarApiTransferInDomainRequest = marshalRegistrarApiTransferInDomainRequest;
|
|
1474
|
-
exports.marshalRegistrarApiUpdateContactRequest = marshalRegistrarApiUpdateContactRequest;
|
|
1475
|
-
exports.marshalRegistrarApiUpdateDomainHostRequest = marshalRegistrarApiUpdateDomainHostRequest;
|
|
1476
|
-
exports.marshalRegistrarApiUpdateDomainRequest = marshalRegistrarApiUpdateDomainRequest;
|
|
1477
|
-
exports.marshalUpdateDNSZoneNameserversRequest = marshalUpdateDNSZoneNameserversRequest;
|
|
1478
|
-
exports.marshalUpdateDNSZoneRecordsRequest = marshalUpdateDNSZoneRecordsRequest;
|
|
1479
|
-
exports.marshalUpdateDNSZoneRequest = marshalUpdateDNSZoneRequest;
|
|
1480
|
-
exports.unmarshalCheckContactsCompatibilityResponse = unmarshalCheckContactsCompatibilityResponse;
|
|
1481
|
-
exports.unmarshalClearDNSZoneRecordsResponse = unmarshalClearDNSZoneRecordsResponse;
|
|
1482
|
-
exports.unmarshalContact = unmarshalContact;
|
|
1483
|
-
exports.unmarshalDNSZone = unmarshalDNSZone;
|
|
1484
|
-
exports.unmarshalDSRecord = unmarshalDSRecord;
|
|
1485
|
-
exports.unmarshalDeleteDNSZoneResponse = unmarshalDeleteDNSZoneResponse;
|
|
1486
|
-
exports.unmarshalDeleteExternalDomainResponse = unmarshalDeleteExternalDomainResponse;
|
|
1487
|
-
exports.unmarshalDeleteSSLCertificateResponse = unmarshalDeleteSSLCertificateResponse;
|
|
1488
|
-
exports.unmarshalDomain = unmarshalDomain;
|
|
1489
|
-
exports.unmarshalGetDNSZoneTsigKeyResponse = unmarshalGetDNSZoneTsigKeyResponse;
|
|
1490
|
-
exports.unmarshalGetDNSZoneVersionDiffResponse = unmarshalGetDNSZoneVersionDiffResponse;
|
|
1491
|
-
exports.unmarshalGetDomainAuthCodeResponse = unmarshalGetDomainAuthCodeResponse;
|
|
1492
|
-
exports.unmarshalHost = unmarshalHost;
|
|
1493
|
-
exports.unmarshalImportProviderDNSZoneResponse = unmarshalImportProviderDNSZoneResponse;
|
|
1494
|
-
exports.unmarshalImportRawDNSZoneResponse = unmarshalImportRawDNSZoneResponse;
|
|
1495
|
-
exports.unmarshalListContactsResponse = unmarshalListContactsResponse;
|
|
1496
|
-
exports.unmarshalListDNSZoneNameserversResponse = unmarshalListDNSZoneNameserversResponse;
|
|
1497
|
-
exports.unmarshalListDNSZoneRecordsResponse = unmarshalListDNSZoneRecordsResponse;
|
|
1498
|
-
exports.unmarshalListDNSZoneVersionRecordsResponse = unmarshalListDNSZoneVersionRecordsResponse;
|
|
1499
|
-
exports.unmarshalListDNSZoneVersionsResponse = unmarshalListDNSZoneVersionsResponse;
|
|
1500
|
-
exports.unmarshalListDNSZonesResponse = unmarshalListDNSZonesResponse;
|
|
1501
|
-
exports.unmarshalListDomainHostsResponse = unmarshalListDomainHostsResponse;
|
|
1502
|
-
exports.unmarshalListDomainsResponse = unmarshalListDomainsResponse;
|
|
1503
|
-
exports.unmarshalListInboundTransfersResponse = unmarshalListInboundTransfersResponse;
|
|
1504
|
-
exports.unmarshalListRenewableDomainsResponse = unmarshalListRenewableDomainsResponse;
|
|
1505
|
-
exports.unmarshalListSSLCertificatesResponse = unmarshalListSSLCertificatesResponse;
|
|
1506
|
-
exports.unmarshalListTasksResponse = unmarshalListTasksResponse;
|
|
1507
|
-
exports.unmarshalListTldsResponse = unmarshalListTldsResponse;
|
|
1508
|
-
exports.unmarshalOrderResponse = unmarshalOrderResponse;
|
|
1509
|
-
exports.unmarshalRefreshDNSZoneResponse = unmarshalRefreshDNSZoneResponse;
|
|
1510
|
-
exports.unmarshalRegisterExternalDomainResponse = unmarshalRegisterExternalDomainResponse;
|
|
1511
|
-
exports.unmarshalRestoreDNSZoneVersionResponse = unmarshalRestoreDNSZoneVersionResponse;
|
|
1512
|
-
exports.unmarshalRetryInboundTransferResponse = unmarshalRetryInboundTransferResponse;
|
|
1513
|
-
exports.unmarshalSSLCertificate = unmarshalSSLCertificate;
|
|
1514
|
-
exports.unmarshalSearchAvailableDomainsResponse = unmarshalSearchAvailableDomainsResponse;
|
|
1515
|
-
exports.unmarshalTask = unmarshalTask;
|
|
1516
|
-
exports.unmarshalUpdateDNSZoneNameserversResponse = unmarshalUpdateDNSZoneNameserversResponse;
|
|
1517
|
-
exports.unmarshalUpdateDNSZoneRecordsResponse = unmarshalUpdateDNSZoneRecordsResponse;
|