@scaleway/sdk-domain 2.1.1 → 2.2.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/dist/v2beta1/api.gen.js +119 -49
- package/dist/v2beta1/content.gen.js +4 -14
- package/dist/v2beta1/marshalling.gen.js +99 -71
- package/package.json +1 -1
package/dist/v2beta1/api.gen.js
CHANGED
|
@@ -18,7 +18,10 @@ class API extends API$1 {
|
|
|
18
18
|
["order_by", request.orderBy],
|
|
19
19
|
["organization_id", request.organizationId],
|
|
20
20
|
["page", request.page],
|
|
21
|
-
[
|
|
21
|
+
[
|
|
22
|
+
"page_size",
|
|
23
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
24
|
+
],
|
|
22
25
|
["project_id", request.projectId],
|
|
23
26
|
["updated_after", request.updatedAfter],
|
|
24
27
|
["updated_before", request.updatedBefore]
|
|
@@ -94,9 +97,10 @@ class API extends API$1 {
|
|
|
94
97
|
{
|
|
95
98
|
method: "DELETE",
|
|
96
99
|
path: `/domain/v2beta1/dns-zones/${validatePathParam("dnsZone", request.dnsZone)}`,
|
|
97
|
-
urlParams: urlParams(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
urlParams: urlParams([
|
|
101
|
+
"project_id",
|
|
102
|
+
request.projectId ?? this.client.settings.defaultProjectId
|
|
103
|
+
])
|
|
100
104
|
},
|
|
101
105
|
unmarshalDeleteDNSZoneResponse
|
|
102
106
|
);
|
|
@@ -109,7 +113,10 @@ class API extends API$1 {
|
|
|
109
113
|
["name", request.name],
|
|
110
114
|
["order_by", request.orderBy],
|
|
111
115
|
["page", request.page],
|
|
112
|
-
[
|
|
116
|
+
[
|
|
117
|
+
"page_size",
|
|
118
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
119
|
+
],
|
|
113
120
|
["project_id", request.projectId],
|
|
114
121
|
["type", request.type]
|
|
115
122
|
)
|
|
@@ -159,9 +166,7 @@ class API extends API$1 {
|
|
|
159
166
|
{
|
|
160
167
|
method: "GET",
|
|
161
168
|
path: `/domain/v2beta1/dns-zones/${validatePathParam("dnsZone", request.dnsZone)}/nameservers`,
|
|
162
|
-
urlParams: urlParams(
|
|
163
|
-
["project_id", request.projectId]
|
|
164
|
-
)
|
|
169
|
+
urlParams: urlParams(["project_id", request.projectId])
|
|
165
170
|
},
|
|
166
171
|
unmarshalListDNSZoneNameserversResponse
|
|
167
172
|
);
|
|
@@ -202,17 +207,12 @@ class API extends API$1 {
|
|
|
202
207
|
* @param request - The request {@link ExportRawDNSZoneRequest}
|
|
203
208
|
* @returns A Promise of Blob
|
|
204
209
|
*/
|
|
205
|
-
exportRawDNSZone = (request) => this.client.fetch(
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
["format", request.format]
|
|
212
|
-
),
|
|
213
|
-
responseType: "blob"
|
|
214
|
-
}
|
|
215
|
-
);
|
|
210
|
+
exportRawDNSZone = (request) => this.client.fetch({
|
|
211
|
+
method: "GET",
|
|
212
|
+
path: `/domain/v2beta1/dns-zones/${validatePathParam("dnsZone", request.dnsZone)}/raw`,
|
|
213
|
+
urlParams: urlParams(["dl", 1], ["format", request.format]),
|
|
214
|
+
responseType: "blob"
|
|
215
|
+
});
|
|
216
216
|
/**
|
|
217
217
|
* Import a raw DNS zone. Import and replace the format of records from a given provider, with default name servers.
|
|
218
218
|
*
|
|
@@ -271,7 +271,10 @@ class API extends API$1 {
|
|
|
271
271
|
path: `/domain/v2beta1/dns-zones/${validatePathParam("dnsZone", request.dnsZone)}/versions`,
|
|
272
272
|
urlParams: urlParams(
|
|
273
273
|
["page", request.page],
|
|
274
|
-
[
|
|
274
|
+
[
|
|
275
|
+
"page_size",
|
|
276
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
277
|
+
]
|
|
275
278
|
)
|
|
276
279
|
},
|
|
277
280
|
unmarshalListDNSZoneVersionsResponse
|
|
@@ -290,7 +293,10 @@ class API extends API$1 {
|
|
|
290
293
|
path: `/domain/v2beta1/dns-zones/version/${validatePathParam("dnsZoneVersionId", request.dnsZoneVersionId)}`,
|
|
291
294
|
urlParams: urlParams(
|
|
292
295
|
["page", request.page],
|
|
293
|
-
[
|
|
296
|
+
[
|
|
297
|
+
"page_size",
|
|
298
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
299
|
+
]
|
|
294
300
|
)
|
|
295
301
|
},
|
|
296
302
|
unmarshalListDNSZoneVersionRecordsResponse
|
|
@@ -301,7 +307,11 @@ class API extends API$1 {
|
|
|
301
307
|
* @param request - The request {@link ListDNSZoneVersionRecordsRequest}
|
|
302
308
|
* @returns A Promise of ListDNSZoneVersionRecordsResponse
|
|
303
309
|
*/
|
|
304
|
-
listDNSZoneVersionRecords = (request) => enrichForPagination(
|
|
310
|
+
listDNSZoneVersionRecords = (request) => enrichForPagination(
|
|
311
|
+
"records",
|
|
312
|
+
this.pageOfListDNSZoneVersionRecords,
|
|
313
|
+
request
|
|
314
|
+
);
|
|
305
315
|
/**
|
|
306
316
|
* Access differences from a specific DNS zone version. Access a previous DNS zone version to see the differences from another specific version.
|
|
307
317
|
*
|
|
@@ -351,7 +361,9 @@ class API extends API$1 {
|
|
|
351
361
|
* @returns A Promise of SSLCertificate
|
|
352
362
|
*/
|
|
353
363
|
waitForSSLCertificate = (request, options) => waitForResource(
|
|
354
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
364
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
365
|
+
!SSL_CERTIFICATE_TRANSIENT_STATUSES.includes(res.status)
|
|
366
|
+
)),
|
|
355
367
|
this.getSSLCertificate,
|
|
356
368
|
request,
|
|
357
369
|
options
|
|
@@ -380,7 +392,10 @@ class API extends API$1 {
|
|
|
380
392
|
urlParams: urlParams(
|
|
381
393
|
["dns_zone", request.dnsZone],
|
|
382
394
|
["page", request.page],
|
|
383
|
-
[
|
|
395
|
+
[
|
|
396
|
+
"page_size",
|
|
397
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
398
|
+
],
|
|
384
399
|
["project_id", request.projectId]
|
|
385
400
|
)
|
|
386
401
|
},
|
|
@@ -424,12 +439,10 @@ class API extends API$1 {
|
|
|
424
439
|
*
|
|
425
440
|
* @param request - The request {@link DeleteDNSZoneTsigKeyRequest}
|
|
426
441
|
*/
|
|
427
|
-
deleteDNSZoneTsigKey = (request) => this.client.fetch(
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
}
|
|
432
|
-
);
|
|
442
|
+
deleteDNSZoneTsigKey = (request) => this.client.fetch({
|
|
443
|
+
method: "DELETE",
|
|
444
|
+
path: `/domain/v2beta1/dns-zones/${validatePathParam("dnsZone", request.dnsZone)}/tsig-key`
|
|
445
|
+
});
|
|
433
446
|
}
|
|
434
447
|
class RegistrarAPI extends API$1 {
|
|
435
448
|
pageOfListTasks = (request = {}) => this.client.fetch(
|
|
@@ -441,7 +454,10 @@ class RegistrarAPI extends API$1 {
|
|
|
441
454
|
["order_by", request.orderBy],
|
|
442
455
|
["organization_id", request.organizationId],
|
|
443
456
|
["page", request.page],
|
|
444
|
-
[
|
|
457
|
+
[
|
|
458
|
+
"page_size",
|
|
459
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
460
|
+
],
|
|
445
461
|
["project_id", request.projectId],
|
|
446
462
|
["statuses", request.statuses],
|
|
447
463
|
["types", request.types]
|
|
@@ -463,10 +479,19 @@ class RegistrarAPI extends API$1 {
|
|
|
463
479
|
path: `/domain/v2beta1/inbound-transfers`,
|
|
464
480
|
urlParams: urlParams(
|
|
465
481
|
["domain", request.domain],
|
|
466
|
-
[
|
|
482
|
+
[
|
|
483
|
+
"organization_id",
|
|
484
|
+
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
485
|
+
],
|
|
467
486
|
["page", request.page],
|
|
468
|
-
[
|
|
469
|
-
|
|
487
|
+
[
|
|
488
|
+
"page_size",
|
|
489
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
490
|
+
],
|
|
491
|
+
[
|
|
492
|
+
"project_id",
|
|
493
|
+
request.projectId ?? this.client.settings.defaultProjectId
|
|
494
|
+
]
|
|
470
495
|
)
|
|
471
496
|
},
|
|
472
497
|
unmarshalListInboundTransfersResponse
|
|
@@ -478,7 +503,11 @@ class RegistrarAPI extends API$1 {
|
|
|
478
503
|
* @param request - The request {@link RegistrarApiListInboundTransfersRequest}
|
|
479
504
|
* @returns A Promise of ListInboundTransfersResponse
|
|
480
505
|
*/
|
|
481
|
-
listInboundTransfers = (request) => enrichForPagination(
|
|
506
|
+
listInboundTransfers = (request) => enrichForPagination(
|
|
507
|
+
"inboundTransfers",
|
|
508
|
+
this.pageOfListInboundTransfers,
|
|
509
|
+
request
|
|
510
|
+
);
|
|
482
511
|
/**
|
|
483
512
|
* Retry the inbound transfer of a domain. Request a retry for the transfer of a domain from another registrar to Scaleway Domains and DNS.
|
|
484
513
|
*
|
|
@@ -488,7 +517,10 @@ class RegistrarAPI extends API$1 {
|
|
|
488
517
|
retryInboundTransfer = (request) => this.client.fetch(
|
|
489
518
|
{
|
|
490
519
|
body: JSON.stringify(
|
|
491
|
-
marshalRegistrarApiRetryInboundTransferRequest(
|
|
520
|
+
marshalRegistrarApiRetryInboundTransferRequest(
|
|
521
|
+
request,
|
|
522
|
+
this.client.settings
|
|
523
|
+
)
|
|
492
524
|
),
|
|
493
525
|
headers: jsonContentHeaders,
|
|
494
526
|
method: "POST",
|
|
@@ -540,7 +572,10 @@ class RegistrarAPI extends API$1 {
|
|
|
540
572
|
transferInDomain = (request) => this.client.fetch(
|
|
541
573
|
{
|
|
542
574
|
body: JSON.stringify(
|
|
543
|
-
marshalRegistrarApiTransferInDomainRequest(
|
|
575
|
+
marshalRegistrarApiTransferInDomainRequest(
|
|
576
|
+
request,
|
|
577
|
+
this.client.settings
|
|
578
|
+
)
|
|
544
579
|
),
|
|
545
580
|
headers: jsonContentHeaders,
|
|
546
581
|
method: "POST",
|
|
@@ -577,7 +612,10 @@ class RegistrarAPI extends API$1 {
|
|
|
577
612
|
registerExternalDomain = (request) => this.client.fetch(
|
|
578
613
|
{
|
|
579
614
|
body: JSON.stringify(
|
|
580
|
-
marshalRegistrarApiRegisterExternalDomainRequest(
|
|
615
|
+
marshalRegistrarApiRegisterExternalDomainRequest(
|
|
616
|
+
request,
|
|
617
|
+
this.client.settings
|
|
618
|
+
)
|
|
581
619
|
),
|
|
582
620
|
headers: jsonContentHeaders,
|
|
583
621
|
method: "POST",
|
|
@@ -608,7 +646,10 @@ class RegistrarAPI extends API$1 {
|
|
|
608
646
|
checkContactsCompatibility = (request = {}) => this.client.fetch(
|
|
609
647
|
{
|
|
610
648
|
body: JSON.stringify(
|
|
611
|
-
marshalRegistrarApiCheckContactsCompatibilityRequest(
|
|
649
|
+
marshalRegistrarApiCheckContactsCompatibilityRequest(
|
|
650
|
+
request,
|
|
651
|
+
this.client.settings
|
|
652
|
+
)
|
|
612
653
|
),
|
|
613
654
|
headers: jsonContentHeaders,
|
|
614
655
|
method: "POST",
|
|
@@ -625,7 +666,10 @@ class RegistrarAPI extends API$1 {
|
|
|
625
666
|
["email_status", request.emailStatus],
|
|
626
667
|
["organization_id", request.organizationId],
|
|
627
668
|
["page", request.page],
|
|
628
|
-
[
|
|
669
|
+
[
|
|
670
|
+
"page_size",
|
|
671
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
672
|
+
],
|
|
629
673
|
["project_id", request.projectId],
|
|
630
674
|
["role", request.role]
|
|
631
675
|
)
|
|
@@ -662,7 +706,10 @@ class RegistrarAPI extends API$1 {
|
|
|
662
706
|
updateContact = (request) => this.client.fetch(
|
|
663
707
|
{
|
|
664
708
|
body: JSON.stringify(
|
|
665
|
-
marshalRegistrarApiUpdateContactRequest(
|
|
709
|
+
marshalRegistrarApiUpdateContactRequest(
|
|
710
|
+
request,
|
|
711
|
+
this.client.settings
|
|
712
|
+
)
|
|
666
713
|
),
|
|
667
714
|
headers: jsonContentHeaders,
|
|
668
715
|
method: "PATCH",
|
|
@@ -680,7 +727,10 @@ class RegistrarAPI extends API$1 {
|
|
|
680
727
|
["order_by", request.orderBy],
|
|
681
728
|
["organization_id", request.organizationId],
|
|
682
729
|
["page", request.page],
|
|
683
|
-
[
|
|
730
|
+
[
|
|
731
|
+
"page_size",
|
|
732
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
733
|
+
],
|
|
684
734
|
["project_id", request.projectId],
|
|
685
735
|
["registrar", request.registrar],
|
|
686
736
|
["status", request.status]
|
|
@@ -703,7 +753,10 @@ class RegistrarAPI extends API$1 {
|
|
|
703
753
|
["order_by", request.orderBy],
|
|
704
754
|
["organization_id", request.organizationId],
|
|
705
755
|
["page", request.page],
|
|
706
|
-
[
|
|
756
|
+
[
|
|
757
|
+
"page_size",
|
|
758
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
759
|
+
],
|
|
707
760
|
["project_id", request.projectId]
|
|
708
761
|
)
|
|
709
762
|
},
|
|
@@ -737,7 +790,9 @@ class RegistrarAPI extends API$1 {
|
|
|
737
790
|
* @returns A Promise of Domain
|
|
738
791
|
*/
|
|
739
792
|
waitForDomain = (request, options) => waitForResource(
|
|
740
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
793
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
794
|
+
!DOMAIN_TRANSIENT_STATUSES.includes(res.status)
|
|
795
|
+
)),
|
|
741
796
|
this.getDomain,
|
|
742
797
|
request,
|
|
743
798
|
options
|
|
@@ -843,7 +898,10 @@ class RegistrarAPI extends API$1 {
|
|
|
843
898
|
enableDomainDNSSEC = (request) => this.client.fetch(
|
|
844
899
|
{
|
|
845
900
|
body: JSON.stringify(
|
|
846
|
-
marshalRegistrarApiEnableDomainDNSSECRequest(
|
|
901
|
+
marshalRegistrarApiEnableDomainDNSSECRequest(
|
|
902
|
+
request,
|
|
903
|
+
this.client.settings
|
|
904
|
+
)
|
|
847
905
|
),
|
|
848
906
|
headers: jsonContentHeaders,
|
|
849
907
|
method: "POST",
|
|
@@ -893,7 +951,10 @@ class RegistrarAPI extends API$1 {
|
|
|
893
951
|
urlParams: urlParams(
|
|
894
952
|
["order_by", request.orderBy],
|
|
895
953
|
["page", request.page],
|
|
896
|
-
[
|
|
954
|
+
[
|
|
955
|
+
"page_size",
|
|
956
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
957
|
+
],
|
|
897
958
|
["tlds", request.tlds]
|
|
898
959
|
)
|
|
899
960
|
},
|
|
@@ -915,7 +976,10 @@ class RegistrarAPI extends API$1 {
|
|
|
915
976
|
createDomainHost = (request) => this.client.fetch(
|
|
916
977
|
{
|
|
917
978
|
body: JSON.stringify(
|
|
918
|
-
marshalRegistrarApiCreateDomainHostRequest(
|
|
979
|
+
marshalRegistrarApiCreateDomainHostRequest(
|
|
980
|
+
request,
|
|
981
|
+
this.client.settings
|
|
982
|
+
)
|
|
919
983
|
),
|
|
920
984
|
headers: jsonContentHeaders,
|
|
921
985
|
method: "POST",
|
|
@@ -929,7 +993,10 @@ class RegistrarAPI extends API$1 {
|
|
|
929
993
|
path: `/domain/v2beta1/domains/${validatePathParam("domain", request.domain)}/hosts`,
|
|
930
994
|
urlParams: urlParams(
|
|
931
995
|
["page", request.page],
|
|
932
|
-
[
|
|
996
|
+
[
|
|
997
|
+
"page_size",
|
|
998
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
999
|
+
]
|
|
933
1000
|
)
|
|
934
1001
|
},
|
|
935
1002
|
unmarshalListDomainHostsResponse
|
|
@@ -950,7 +1017,10 @@ class RegistrarAPI extends API$1 {
|
|
|
950
1017
|
updateDomainHost = (request) => this.client.fetch(
|
|
951
1018
|
{
|
|
952
1019
|
body: JSON.stringify(
|
|
953
|
-
marshalRegistrarApiUpdateDomainHostRequest(
|
|
1020
|
+
marshalRegistrarApiUpdateDomainHostRequest(
|
|
1021
|
+
request,
|
|
1022
|
+
this.client.settings
|
|
1023
|
+
)
|
|
954
1024
|
),
|
|
955
1025
|
headers: jsonContentHeaders,
|
|
956
1026
|
method: "PATCH",
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
const DNS_ZONE_TRANSIENT_STATUSES = [
|
|
2
|
-
"pending"
|
|
3
|
-
];
|
|
1
|
+
const DNS_ZONE_TRANSIENT_STATUSES = ["pending"];
|
|
4
2
|
const DOMAIN_FEATURE_TRANSIENT_STATUSES = [
|
|
5
3
|
"enabling",
|
|
6
4
|
"disabling"
|
|
7
5
|
];
|
|
8
|
-
const DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES = [
|
|
9
|
-
"pending",
|
|
10
|
-
"processing"
|
|
11
|
-
];
|
|
6
|
+
const DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES = ["pending", "processing"];
|
|
12
7
|
const DOMAIN_TRANSIENT_STATUSES = [
|
|
13
8
|
"creating",
|
|
14
9
|
"renewing",
|
|
@@ -18,16 +13,11 @@ const DOMAIN_TRANSIENT_STATUSES = [
|
|
|
18
13
|
"checking",
|
|
19
14
|
"deleting"
|
|
20
15
|
];
|
|
21
|
-
const HOST_TRANSIENT_STATUSES = [
|
|
22
|
-
"updating",
|
|
23
|
-
"deleting"
|
|
24
|
-
];
|
|
16
|
+
const HOST_TRANSIENT_STATUSES = ["updating", "deleting"];
|
|
25
17
|
const SSL_CERTIFICATE_TRANSIENT_STATUSES = [
|
|
26
18
|
"pending"
|
|
27
19
|
];
|
|
28
|
-
const TASK_TRANSIENT_STATUSES = [
|
|
29
|
-
"pending"
|
|
30
|
-
];
|
|
20
|
+
const TASK_TRANSIENT_STATUSES = ["pending"];
|
|
31
21
|
export {
|
|
32
22
|
DNS_ZONE_TRANSIENT_STATUSES,
|
|
33
23
|
DOMAIN_FEATURE_TRANSIENT_STATUSES,
|
|
@@ -212,10 +212,16 @@ const unmarshalCheckContactsCompatibilityResponse = (data) => {
|
|
|
212
212
|
);
|
|
213
213
|
}
|
|
214
214
|
return {
|
|
215
|
-
administrativeCheckResult: data.administrative_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(
|
|
215
|
+
administrativeCheckResult: data.administrative_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(
|
|
216
|
+
data.administrative_check_result
|
|
217
|
+
) : void 0,
|
|
216
218
|
compatible: data.compatible,
|
|
217
|
-
ownerCheckResult: data.owner_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(
|
|
218
|
-
|
|
219
|
+
ownerCheckResult: data.owner_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(
|
|
220
|
+
data.owner_check_result
|
|
221
|
+
) : void 0,
|
|
222
|
+
technicalCheckResult: data.technical_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(
|
|
223
|
+
data.technical_check_result
|
|
224
|
+
) : void 0
|
|
219
225
|
};
|
|
220
226
|
};
|
|
221
227
|
const unmarshalClearDNSZoneRecordsResponse = (data) => {
|
|
@@ -360,7 +366,9 @@ const unmarshalDomain = (data) => {
|
|
|
360
366
|
domain: data.domain,
|
|
361
367
|
eppCode: data.epp_code,
|
|
362
368
|
expiredAt: unmarshalDate(data.expired_at),
|
|
363
|
-
externalDomainRegistrationStatus: data.external_domain_registration_status ? unmarshalDomainRegistrationStatusExternalDomain(
|
|
369
|
+
externalDomainRegistrationStatus: data.external_domain_registration_status ? unmarshalDomainRegistrationStatusExternalDomain(
|
|
370
|
+
data.external_domain_registration_status
|
|
371
|
+
) : void 0,
|
|
364
372
|
isExternal: data.is_external,
|
|
365
373
|
linkedProducts: data.linked_products,
|
|
366
374
|
organizationId: data.organization_id,
|
|
@@ -371,7 +379,9 @@ const unmarshalDomain = (data) => {
|
|
|
371
379
|
status: data.status,
|
|
372
380
|
technicalContact: data.technical_contact ? unmarshalContact(data.technical_contact) : void 0,
|
|
373
381
|
tld: data.tld ? unmarshalTld(data.tld) : void 0,
|
|
374
|
-
transferRegistrationStatus: data.transfer_registration_status ? unmarshalDomainRegistrationStatusTransfer(
|
|
382
|
+
transferRegistrationStatus: data.transfer_registration_status ? unmarshalDomainRegistrationStatusTransfer(
|
|
383
|
+
data.transfer_registration_status
|
|
384
|
+
) : void 0,
|
|
375
385
|
updatedAt: unmarshalDate(data.updated_at)
|
|
376
386
|
};
|
|
377
387
|
};
|
|
@@ -429,7 +439,10 @@ const unmarshalDomainRecordGeoIPConfig = (data) => {
|
|
|
429
439
|
}
|
|
430
440
|
return {
|
|
431
441
|
default: data.default,
|
|
432
|
-
matches: unmarshalArrayOfObject(
|
|
442
|
+
matches: unmarshalArrayOfObject(
|
|
443
|
+
data.matches,
|
|
444
|
+
unmarshalDomainRecordGeoIPConfigMatch
|
|
445
|
+
)
|
|
433
446
|
};
|
|
434
447
|
};
|
|
435
448
|
const unmarshalDomainRecordHTTPServiceConfig = (data) => {
|
|
@@ -453,7 +466,10 @@ const unmarshalDomainRecordViewConfig = (data) => {
|
|
|
453
466
|
);
|
|
454
467
|
}
|
|
455
468
|
return {
|
|
456
|
-
views: unmarshalArrayOfObject(
|
|
469
|
+
views: unmarshalArrayOfObject(
|
|
470
|
+
data.views,
|
|
471
|
+
unmarshalDomainRecordViewConfigView
|
|
472
|
+
)
|
|
457
473
|
};
|
|
458
474
|
};
|
|
459
475
|
const unmarshalDomainRecordWeightedConfig = (data) => {
|
|
@@ -463,7 +479,10 @@ const unmarshalDomainRecordWeightedConfig = (data) => {
|
|
|
463
479
|
);
|
|
464
480
|
}
|
|
465
481
|
return {
|
|
466
|
-
weightedIps: unmarshalArrayOfObject(
|
|
482
|
+
weightedIps: unmarshalArrayOfObject(
|
|
483
|
+
data.weighted_ips,
|
|
484
|
+
unmarshalDomainRecordWeightedConfigWeightedIP
|
|
485
|
+
)
|
|
467
486
|
};
|
|
468
487
|
};
|
|
469
488
|
const unmarshalDomainRecord = (data) => {
|
|
@@ -727,14 +746,18 @@ const unmarshalDomainSummary = (data) => {
|
|
|
727
746
|
domain: data.domain,
|
|
728
747
|
eppCode: data.epp_code,
|
|
729
748
|
expiredAt: unmarshalDate(data.expired_at),
|
|
730
|
-
externalDomainRegistrationStatus: data.external_domain_registration_status ? unmarshalDomainRegistrationStatusExternalDomain(
|
|
749
|
+
externalDomainRegistrationStatus: data.external_domain_registration_status ? unmarshalDomainRegistrationStatusExternalDomain(
|
|
750
|
+
data.external_domain_registration_status
|
|
751
|
+
) : void 0,
|
|
731
752
|
isExternal: data.is_external,
|
|
732
753
|
organizationId: data.organization_id,
|
|
733
754
|
pendingTrade: data.pending_trade,
|
|
734
755
|
projectId: data.project_id,
|
|
735
756
|
registrar: data.registrar,
|
|
736
757
|
status: data.status,
|
|
737
|
-
transferRegistrationStatus: data.transfer_registration_status ? unmarshalDomainRegistrationStatusTransfer(
|
|
758
|
+
transferRegistrationStatus: data.transfer_registration_status ? unmarshalDomainRegistrationStatusTransfer(
|
|
759
|
+
data.transfer_registration_status
|
|
760
|
+
) : void 0,
|
|
738
761
|
updatedAt: unmarshalDate(data.updated_at)
|
|
739
762
|
};
|
|
740
763
|
};
|
|
@@ -773,7 +796,10 @@ const unmarshalListInboundTransfersResponse = (data) => {
|
|
|
773
796
|
);
|
|
774
797
|
}
|
|
775
798
|
return {
|
|
776
|
-
inboundTransfers: unmarshalArrayOfObject(
|
|
799
|
+
inboundTransfers: unmarshalArrayOfObject(
|
|
800
|
+
data.inbound_transfers,
|
|
801
|
+
unmarshalInboundTransfer
|
|
802
|
+
),
|
|
777
803
|
totalCount: data.total_count
|
|
778
804
|
};
|
|
779
805
|
};
|
|
@@ -814,7 +840,10 @@ const unmarshalListSSLCertificatesResponse = (data) => {
|
|
|
814
840
|
);
|
|
815
841
|
}
|
|
816
842
|
return {
|
|
817
|
-
certificates: unmarshalArrayOfObject(
|
|
843
|
+
certificates: unmarshalArrayOfObject(
|
|
844
|
+
data.certificates,
|
|
845
|
+
unmarshalSSLCertificate
|
|
846
|
+
),
|
|
818
847
|
totalCount: data.total_count
|
|
819
848
|
};
|
|
820
849
|
};
|
|
@@ -932,7 +961,10 @@ const unmarshalSearchAvailableDomainsConsoleResponse = (data) => {
|
|
|
932
961
|
);
|
|
933
962
|
}
|
|
934
963
|
return {
|
|
935
|
-
availableDomains: unmarshalArrayOfObject(
|
|
964
|
+
availableDomains: unmarshalArrayOfObject(
|
|
965
|
+
data.available_domains,
|
|
966
|
+
unmarshalAvailableDomain
|
|
967
|
+
),
|
|
936
968
|
exactMatchDomain: data.exact_match_domain ? unmarshalAvailableDomain(data.exact_match_domain) : void 0
|
|
937
969
|
};
|
|
938
970
|
};
|
|
@@ -943,7 +975,10 @@ const unmarshalSearchAvailableDomainsResponse = (data) => {
|
|
|
943
975
|
);
|
|
944
976
|
}
|
|
945
977
|
return {
|
|
946
|
-
availableDomains: unmarshalArrayOfObject(
|
|
978
|
+
availableDomains: unmarshalArrayOfObject(
|
|
979
|
+
data.available_domains,
|
|
980
|
+
unmarshalAvailableDomain
|
|
981
|
+
)
|
|
947
982
|
};
|
|
948
983
|
};
|
|
949
984
|
const unmarshalUpdateDNSZoneNameserversResponse = (data) => {
|
|
@@ -987,7 +1022,9 @@ const marshalImportProviderDNSZoneRequest = (request, defaults) => ({
|
|
|
987
1022
|
...resolveOneOf([
|
|
988
1023
|
{
|
|
989
1024
|
param: "online_v1",
|
|
990
|
-
value: request.onlineV1 !== void 0 ? marshalImportProviderDNSZoneRequestOnlineV1(
|
|
1025
|
+
value: request.onlineV1 !== void 0 ? marshalImportProviderDNSZoneRequestOnlineV1(
|
|
1026
|
+
request.onlineV1
|
|
1027
|
+
) : void 0
|
|
991
1028
|
}
|
|
992
1029
|
])
|
|
993
1030
|
});
|
|
@@ -1010,11 +1047,15 @@ const marshalImportRawDNSZoneRequest = (request, defaults) => ({
|
|
|
1010
1047
|
...resolveOneOf([
|
|
1011
1048
|
{
|
|
1012
1049
|
param: "bind_source",
|
|
1013
|
-
value: request.bindSource !== void 0 ? marshalImportRawDNSZoneRequestBindSource(
|
|
1050
|
+
value: request.bindSource !== void 0 ? marshalImportRawDNSZoneRequestBindSource(
|
|
1051
|
+
request.bindSource
|
|
1052
|
+
) : void 0
|
|
1014
1053
|
},
|
|
1015
1054
|
{
|
|
1016
1055
|
param: "axfr_source",
|
|
1017
|
-
value: request.axfrSource !== void 0 ? marshalImportRawDNSZoneRequestAXFRSource(
|
|
1056
|
+
value: request.axfrSource !== void 0 ? marshalImportRawDNSZoneRequestAXFRSource(
|
|
1057
|
+
request.axfrSource
|
|
1058
|
+
) : void 0
|
|
1018
1059
|
}
|
|
1019
1060
|
])
|
|
1020
1061
|
});
|
|
@@ -1047,7 +1088,9 @@ const marshalContactExtensionFR = (request, defaults) => ({
|
|
|
1047
1088
|
...resolveOneOf([
|
|
1048
1089
|
{
|
|
1049
1090
|
param: "individual_info",
|
|
1050
|
-
value: request.individualInfo !== void 0 ? marshalContactExtensionFRIndividualInfo(
|
|
1091
|
+
value: request.individualInfo !== void 0 ? marshalContactExtensionFRIndividualInfo(
|
|
1092
|
+
request.individualInfo
|
|
1093
|
+
) : void 0
|
|
1051
1094
|
},
|
|
1052
1095
|
{
|
|
1053
1096
|
param: "duns_info",
|
|
@@ -1055,15 +1098,21 @@ const marshalContactExtensionFR = (request, defaults) => ({
|
|
|
1055
1098
|
},
|
|
1056
1099
|
{
|
|
1057
1100
|
param: "association_info",
|
|
1058
|
-
value: request.associationInfo !== void 0 ? marshalContactExtensionFRAssociationInfo(
|
|
1101
|
+
value: request.associationInfo !== void 0 ? marshalContactExtensionFRAssociationInfo(
|
|
1102
|
+
request.associationInfo
|
|
1103
|
+
) : void 0
|
|
1059
1104
|
},
|
|
1060
1105
|
{
|
|
1061
1106
|
param: "trademark_info",
|
|
1062
|
-
value: request.trademarkInfo !== void 0 ? marshalContactExtensionFRTrademarkInfo(
|
|
1107
|
+
value: request.trademarkInfo !== void 0 ? marshalContactExtensionFRTrademarkInfo(
|
|
1108
|
+
request.trademarkInfo
|
|
1109
|
+
) : void 0
|
|
1063
1110
|
},
|
|
1064
1111
|
{
|
|
1065
1112
|
param: "code_auth_afnic_info",
|
|
1066
|
-
value: request.codeAuthAfnicInfo !== void 0 ? marshalContactExtensionFRCodeAuthAfnicInfo(
|
|
1113
|
+
value: request.codeAuthAfnicInfo !== void 0 ? marshalContactExtensionFRCodeAuthAfnicInfo(
|
|
1114
|
+
request.codeAuthAfnicInfo
|
|
1115
|
+
) : void 0
|
|
1067
1116
|
}
|
|
1068
1117
|
])
|
|
1069
1118
|
});
|
|
@@ -1111,10 +1160,7 @@ const marshalRegistrarApiBuyDomainsRequest = (request, defaults) => ({
|
|
|
1111
1160
|
duration_in_years: request.durationInYears,
|
|
1112
1161
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
1113
1162
|
...resolveOneOf([
|
|
1114
|
-
{
|
|
1115
|
-
param: "owner_contact_id",
|
|
1116
|
-
value: request.ownerContactId
|
|
1117
|
-
},
|
|
1163
|
+
{ param: "owner_contact_id", value: request.ownerContactId },
|
|
1118
1164
|
{
|
|
1119
1165
|
param: "owner_contact",
|
|
1120
1166
|
value: request.ownerContact !== void 0 ? marshalNewContact(request.ownerContact) : void 0
|
|
@@ -1131,10 +1177,7 @@ const marshalRegistrarApiBuyDomainsRequest = (request, defaults) => ({
|
|
|
1131
1177
|
}
|
|
1132
1178
|
]),
|
|
1133
1179
|
...resolveOneOf([
|
|
1134
|
-
{
|
|
1135
|
-
param: "technical_contact_id",
|
|
1136
|
-
value: request.technicalContactId
|
|
1137
|
-
},
|
|
1180
|
+
{ param: "technical_contact_id", value: request.technicalContactId },
|
|
1138
1181
|
{
|
|
1139
1182
|
param: "technical_contact",
|
|
1140
1183
|
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact) : void 0
|
|
@@ -1145,10 +1188,7 @@ const marshalRegistrarApiCheckContactsCompatibilityRequest = (request, defaults)
|
|
|
1145
1188
|
domains: request.domains,
|
|
1146
1189
|
tlds: request.tlds,
|
|
1147
1190
|
...resolveOneOf([
|
|
1148
|
-
{
|
|
1149
|
-
param: "owner_contact_id",
|
|
1150
|
-
value: request.ownerContactId
|
|
1151
|
-
},
|
|
1191
|
+
{ param: "owner_contact_id", value: request.ownerContactId },
|
|
1152
1192
|
{
|
|
1153
1193
|
param: "owner_contact",
|
|
1154
1194
|
value: request.ownerContact !== void 0 ? marshalNewContact(request.ownerContact) : void 0
|
|
@@ -1165,10 +1205,7 @@ const marshalRegistrarApiCheckContactsCompatibilityRequest = (request, defaults)
|
|
|
1165
1205
|
}
|
|
1166
1206
|
]),
|
|
1167
1207
|
...resolveOneOf([
|
|
1168
|
-
{
|
|
1169
|
-
param: "technical_contact_id",
|
|
1170
|
-
value: request.technicalContactId
|
|
1171
|
-
},
|
|
1208
|
+
{ param: "technical_contact_id", value: request.technicalContactId },
|
|
1172
1209
|
{
|
|
1173
1210
|
param: "technical_contact",
|
|
1174
1211
|
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact) : void 0
|
|
@@ -1221,10 +1258,7 @@ const marshalRegistrarApiRetryInboundTransferRequest = (request, defaults) => ({
|
|
|
1221
1258
|
const marshalRegistrarApiTradeDomainRequest = (request, defaults) => ({
|
|
1222
1259
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
1223
1260
|
...resolveOneOf([
|
|
1224
|
-
{
|
|
1225
|
-
param: "new_owner_contact_id",
|
|
1226
|
-
value: request.newOwnerContactId
|
|
1227
|
-
},
|
|
1261
|
+
{ param: "new_owner_contact_id", value: request.newOwnerContactId },
|
|
1228
1262
|
{
|
|
1229
1263
|
param: "new_owner_contact",
|
|
1230
1264
|
value: request.newOwnerContact !== void 0 ? marshalNewContact(request.newOwnerContact) : void 0
|
|
@@ -1236,13 +1270,12 @@ const marshalTransferInDomainRequestTransferRequest = (request, defaults) => ({
|
|
|
1236
1270
|
domain: request.domain
|
|
1237
1271
|
});
|
|
1238
1272
|
const marshalRegistrarApiTransferInDomainRequest = (request, defaults) => ({
|
|
1239
|
-
domains: request.domains.map(
|
|
1273
|
+
domains: request.domains.map(
|
|
1274
|
+
(elt) => marshalTransferInDomainRequestTransferRequest(elt)
|
|
1275
|
+
),
|
|
1240
1276
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
1241
1277
|
...resolveOneOf([
|
|
1242
|
-
{
|
|
1243
|
-
param: "owner_contact_id",
|
|
1244
|
-
value: request.ownerContactId
|
|
1245
|
-
},
|
|
1278
|
+
{ param: "owner_contact_id", value: request.ownerContactId },
|
|
1246
1279
|
{
|
|
1247
1280
|
param: "owner_contact",
|
|
1248
1281
|
value: request.ownerContact !== void 0 ? marshalNewContact(request.ownerContact) : void 0
|
|
@@ -1259,10 +1292,7 @@ const marshalRegistrarApiTransferInDomainRequest = (request, defaults) => ({
|
|
|
1259
1292
|
}
|
|
1260
1293
|
]),
|
|
1261
1294
|
...resolveOneOf([
|
|
1262
|
-
{
|
|
1263
|
-
param: "technical_contact_id",
|
|
1264
|
-
value: request.technicalContactId
|
|
1265
|
-
},
|
|
1295
|
+
{ param: "technical_contact_id", value: request.technicalContactId },
|
|
1266
1296
|
{
|
|
1267
1297
|
param: "technical_contact",
|
|
1268
1298
|
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact) : void 0
|
|
@@ -1288,7 +1318,9 @@ const marshalRegistrarApiUpdateContactRequest = (request, defaults) => ({
|
|
|
1288
1318
|
fax_number: request.faxNumber,
|
|
1289
1319
|
lang: request.lang,
|
|
1290
1320
|
phone_number: request.phoneNumber,
|
|
1291
|
-
questions: request.questions !== void 0 ? request.questions.map(
|
|
1321
|
+
questions: request.questions !== void 0 ? request.questions.map(
|
|
1322
|
+
(elt) => marshalUpdateContactRequestQuestion(elt)
|
|
1323
|
+
) : void 0,
|
|
1292
1324
|
resale: request.resale,
|
|
1293
1325
|
state: request.state,
|
|
1294
1326
|
vat_identification_code: request.vatIdentificationCode,
|
|
@@ -1300,20 +1332,14 @@ const marshalRegistrarApiUpdateDomainHostRequest = (request, defaults) => ({
|
|
|
1300
1332
|
});
|
|
1301
1333
|
const marshalRegistrarApiUpdateDomainRequest = (request, defaults) => ({
|
|
1302
1334
|
...resolveOneOf([
|
|
1303
|
-
{
|
|
1304
|
-
param: "technical_contact_id",
|
|
1305
|
-
value: request.technicalContactId
|
|
1306
|
-
},
|
|
1335
|
+
{ param: "technical_contact_id", value: request.technicalContactId },
|
|
1307
1336
|
{
|
|
1308
1337
|
param: "technical_contact",
|
|
1309
1338
|
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact) : void 0
|
|
1310
1339
|
}
|
|
1311
1340
|
]),
|
|
1312
1341
|
...resolveOneOf([
|
|
1313
|
-
{
|
|
1314
|
-
param: "owner_contact_id",
|
|
1315
|
-
value: request.ownerContactId
|
|
1316
|
-
},
|
|
1342
|
+
{ param: "owner_contact_id", value: request.ownerContactId },
|
|
1317
1343
|
{
|
|
1318
1344
|
param: "owner_contact",
|
|
1319
1345
|
value: request.ownerContact !== void 0 ? marshalNewContact(request.ownerContact) : void 0
|
|
@@ -1352,7 +1378,9 @@ const marshalDomainRecordWeightedConfigWeightedIP = (request, defaults) => ({
|
|
|
1352
1378
|
});
|
|
1353
1379
|
const marshalDomainRecordGeoIPConfig = (request, defaults) => ({
|
|
1354
1380
|
default: request.default,
|
|
1355
|
-
matches: request.matches.map(
|
|
1381
|
+
matches: request.matches.map(
|
|
1382
|
+
(elt) => marshalDomainRecordGeoIPConfigMatch(elt)
|
|
1383
|
+
)
|
|
1356
1384
|
});
|
|
1357
1385
|
const marshalDomainRecordHTTPServiceConfig = (request, defaults) => ({
|
|
1358
1386
|
ips: request.ips,
|
|
@@ -1362,10 +1390,14 @@ const marshalDomainRecordHTTPServiceConfig = (request, defaults) => ({
|
|
|
1362
1390
|
user_agent: request.userAgent
|
|
1363
1391
|
});
|
|
1364
1392
|
const marshalDomainRecordViewConfig = (request, defaults) => ({
|
|
1365
|
-
views: request.views.map(
|
|
1393
|
+
views: request.views.map(
|
|
1394
|
+
(elt) => marshalDomainRecordViewConfigView(elt)
|
|
1395
|
+
)
|
|
1366
1396
|
});
|
|
1367
1397
|
const marshalDomainRecordWeightedConfig = (request, defaults) => ({
|
|
1368
|
-
weighted_ips: request.weightedIps.map(
|
|
1398
|
+
weighted_ips: request.weightedIps.map(
|
|
1399
|
+
(elt) => marshalDomainRecordWeightedConfigWeightedIP(elt)
|
|
1400
|
+
)
|
|
1369
1401
|
});
|
|
1370
1402
|
const marshalDomainRecord = (request, defaults) => ({
|
|
1371
1403
|
comment: request.comment,
|
|
@@ -1382,7 +1414,9 @@ const marshalDomainRecord = (request, defaults) => ({
|
|
|
1382
1414
|
},
|
|
1383
1415
|
{
|
|
1384
1416
|
param: "http_service_config",
|
|
1385
|
-
value: request.httpServiceConfig !== void 0 ? marshalDomainRecordHTTPServiceConfig(
|
|
1417
|
+
value: request.httpServiceConfig !== void 0 ? marshalDomainRecordHTTPServiceConfig(
|
|
1418
|
+
request.httpServiceConfig
|
|
1419
|
+
) : void 0
|
|
1386
1420
|
},
|
|
1387
1421
|
{
|
|
1388
1422
|
param: "weighted_config",
|
|
@@ -1406,10 +1440,7 @@ const marshalRecordChangeAdd = (request, defaults) => ({
|
|
|
1406
1440
|
const marshalRecordChangeClear = (request, defaults) => ({});
|
|
1407
1441
|
const marshalRecordChangeDelete = (request, defaults) => ({
|
|
1408
1442
|
...resolveOneOf([
|
|
1409
|
-
{
|
|
1410
|
-
param: "id",
|
|
1411
|
-
value: request.id
|
|
1412
|
-
},
|
|
1443
|
+
{ param: "id", value: request.id },
|
|
1413
1444
|
{
|
|
1414
1445
|
param: "id_fields",
|
|
1415
1446
|
value: request.idFields !== void 0 ? marshalRecordIdentifier(request.idFields) : void 0
|
|
@@ -1419,10 +1450,7 @@ const marshalRecordChangeDelete = (request, defaults) => ({
|
|
|
1419
1450
|
const marshalRecordChangeSet = (request, defaults) => ({
|
|
1420
1451
|
records: request.records.map((elt) => marshalDomainRecord(elt)),
|
|
1421
1452
|
...resolveOneOf([
|
|
1422
|
-
{
|
|
1423
|
-
param: "id",
|
|
1424
|
-
value: request.id
|
|
1425
|
-
},
|
|
1453
|
+
{ param: "id", value: request.id },
|
|
1426
1454
|
{
|
|
1427
1455
|
param: "id_fields",
|
|
1428
1456
|
value: request.idFields !== void 0 ? marshalRecordIdentifier(request.idFields) : void 0
|