@wix/auto_sdk_domains_registered-domains 1.0.28 → 1.0.30

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.
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
2
  import { InitiateTransferApplicationErrors, ApproveTransferApplicationErrors, UpdateRegisteredDomainOptions, UpdateRegisteredDomainResponse, UpdateRegisteredDomainApplicationErrors, RegisteredDomain, GetRegisteredDomainApplicationErrors } from './index.typings.js';
3
- export { AccountInfo, ActionEvent, ApproveTransferRequest, ApproveTransferResponse, BillingSubscriptionCancelled, CaOptions, ComAuOptions, ComBrOptions, ConnectedToSite, ConnectionLost, ConnectionVerified, Contact, ContactVerificationStatus, ContactVerificationStatusChanged, ContactVerificationStatusWithLiterals, CreateRegisteredDomainInternalRequest, CreateRegisteredDomainInternalResponse, CreateRegisteredDomainRequest, CreateRegisteredDomainResponse, Deactivated, DisconnectedFromSite, DnssecChanged, DomainChangedEvent, DomainChangedEventPayloadOneOf, DomainEvent, DomainEventBodyOneOf, DomainReleaseCouponEvent, DomainReleaseCouponEventTriggerTypeInfoOneOf, EligibilityIdType, EligibilityIdTypeEnum, EligibilityIdTypeEnumWithLiterals, EligibilityType, EligibilityTypeEnum, EligibilityTypeEnumWithLiterals, EntityCreatedEvent, EntityDeletedEvent, EntityType, EntityTypeEnum, EntityTypeEnumWithLiterals, EntityUpdatedEvent, EsOptions, ExpirationDateChanged, Expired, GetRegisteredDomainRequest, GetRegisteredDomainResponse, GraceEnded, IcannStatus, IcannStatusWithLiterals, IcannVerification, IcannVerificationInfoOneOf, IdType, IdTypeWithLiterals, IdentificationData, IdentificationDataIdOneOf, IlOptions, InitiateTransferRequest, InitiateTransferResponse, ItOptions, LegalType, LegalTypeEnum, LegalTypeEnumWithLiterals, ManagementTypeChanged, MessageEnvelope, NameServersChanged, NexusCategory, NexusCategoryWithLiterals, OwnerChanged, Pending, PolicyReason, PolicyReasonEnum, PolicyReasonEnumWithLiterals, PriceIncreaseProcessed, PrivacyChanged, PropagationStarted, RedemptionEnded, Registered, RegistrantType, RegistrantTypeWithLiterals, RegistrationCancelled, RegistrationExtended, RestoreInfo, ReviveFromChargebackInfo, ScheduleContactDetailsReminderRequest, ScheduleContactDetailsReminderResponse, ScheduleNearExpirationReminderRequest, ScheduleNearExpirationReminderResponse, ScheduleParkAfterRefundRequest, ScheduleParkAfterRefundResponse, SeOptions, TldSpecificData, TldSpecificDataRequirementsOneOf, TldType, TldTypeWithLiterals, TriggerType, TriggerTypeWithLiterals, UpdateRegisteredDomainRequest, UsAppPurpose, UsAppPurposeWithLiterals, UsOptions, VerificationStarted, Verified, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
3
+ export { AccountInfo, ActionEvent, Addons, ApproveTransferRequest, ApproveTransferResponse, BillingSubscriptionCancelled, CaOptions, ComAuOptions, ComBrOptions, ConnectedToSite, ConnectionLost, ConnectionVerified, Contact, ContactVerificationStatus, ContactVerificationStatusChanged, ContactVerificationStatusWithLiterals, CreateRegisteredDomainInternalRequest, CreateRegisteredDomainInternalResponse, CreateRegisteredDomainRequest, CreateRegisteredDomainResponse, Deactivated, DisconnectedFromSite, DnssecAddon, DnssecChanged, DomainChangedEvent, DomainChangedEventPayloadOneOf, DomainEvent, DomainEventBodyOneOf, DomainReleaseCouponEvent, DomainReleaseCouponEventTriggerTypeInfoOneOf, EligibilityIdType, EligibilityIdTypeEnum, EligibilityIdTypeEnumWithLiterals, EligibilityType, EligibilityTypeEnum, EligibilityTypeEnumWithLiterals, EntityCreatedEvent, EntityDeletedEvent, EntityType, EntityTypeEnum, EntityTypeEnumWithLiterals, EntityUpdatedEvent, EsOptions, ExpirationDateChanged, Expired, GetRegisteredDomainRequest, GetRegisteredDomainResponse, GraceEnded, IcannStatus, IcannStatusWithLiterals, IcannVerification, IcannVerificationInfoOneOf, IdType, IdTypeWithLiterals, IdentificationData, IdentificationDataIdOneOf, IlOptions, InitiateTransferRequest, InitiateTransferResponse, InsuranceAddon, ItOptions, LegalType, LegalTypeEnum, LegalTypeEnumWithLiterals, ManagementTypeChanged, MessageEnvelope, NameServersChanged, NexusCategory, NexusCategoryWithLiterals, OwnerChanged, Pending, PolicyReason, PolicyReasonEnum, PolicyReasonEnumWithLiterals, PriceIncreaseProcessed, PrivacyAddon, PrivacyChanged, PropagationStarted, RedemptionEnded, Registered, RegistrantType, RegistrantTypeWithLiterals, RegistrationCancelled, RegistrationExtended, RestoreInfo, ReviveFromChargebackInfo, ScheduleContactDetailsReminderRequest, ScheduleContactDetailsReminderResponse, ScheduleNearExpirationReminderRequest, ScheduleNearExpirationReminderResponse, ScheduleParkAfterRefundRequest, ScheduleParkAfterRefundResponse, SeOptions, SetDnssecApplicationErrors, SetDnssecRequest, SetDnssecResponse, SetInsuranceApplicationErrors, SetInsuranceRequest, SetInsuranceResponse, SetPrivacyApplicationErrors, SetPrivacyRequest, SetPrivacyResponse, TldSpecificData, TldSpecificDataRequirementsOneOf, TldType, TldTypeWithLiterals, TriggerType, TriggerTypeWithLiterals, UpdateRegisteredDomainRequest, UsAppPurpose, UsAppPurposeWithLiterals, UsOptions, VerificationStarted, Verified, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
4
4
 
5
5
  declare function initiateTransfer$1(httpClient: HttpClient): InitiateTransferSignature;
6
6
  interface InitiateTransferSignature {
@@ -51,7 +51,7 @@ interface UpdateRegisteredDomainSignature {
51
51
  * Min: 3 characters
52
52
  * Max: 63 characters
53
53
  */
54
- (domain: string, options?: UpdateRegisteredDomainOptions): Promise<NonNullablePaths<UpdateRegisteredDomainResponse, `registeredDomain._id` | `registeredDomain.domain` | `registeredDomain.registrantContact.firstName` | `registeredDomain.registrantContact.lastName` | `registeredDomain.registrantContact.email` | `registeredDomain.registrantContact.streetAddress` | `registeredDomain.registrantContact.city` | `registeredDomain.registrantContact.country` | `registeredDomain.registrantContact.phone` | `registeredDomain.tldData.caOptions.legalType.value` | `registeredDomain.tldData.itOptions.entityType.value` | `registeredDomain.tldData.comAuOptions.policyReason.value` | `registeredDomain.tldData.comAuOptions.eligibilityType.value` | `registeredDomain.tldData.comAuOptions.eligibilityIdType.value` | `registeredDomain.tldData.usOptions.nexusCategory` | `registeredDomain.tldData.usOptions.usAppPurpose` | `registeredDomain.tldData.esOptions.idType` | `registeredDomain.tldData.coIlOptions.registrantType` | `registeredDomain.tldData.tldType` | `registeredDomain.nameServers` | `registeredDomain.icannVerification.pending.pendingEmails` | `registeredDomain.icannVerification.deactivated.unverifiedEmails` | `registeredDomain.icannVerification.status`, 4> & {
54
+ (domain: string, options?: UpdateRegisteredDomainOptions): Promise<NonNullablePaths<UpdateRegisteredDomainResponse, `registeredDomain._id` | `registeredDomain.domain` | `registeredDomain.registrantContact.firstName` | `registeredDomain.registrantContact.lastName` | `registeredDomain.registrantContact.email` | `registeredDomain.registrantContact.streetAddress` | `registeredDomain.registrantContact.city` | `registeredDomain.registrantContact.country` | `registeredDomain.registrantContact.phone` | `registeredDomain.tldData.caOptions.legalType.value` | `registeredDomain.tldData.itOptions.entityType.value` | `registeredDomain.tldData.comAuOptions.policyReason.value` | `registeredDomain.tldData.comAuOptions.eligibilityType.value` | `registeredDomain.tldData.comAuOptions.eligibilityIdType.value` | `registeredDomain.tldData.usOptions.nexusCategory` | `registeredDomain.tldData.usOptions.usAppPurpose` | `registeredDomain.tldData.esOptions.idType` | `registeredDomain.tldData.coIlOptions.registrantType` | `registeredDomain.tldData.tldType` | `registeredDomain.nameServers` | `registeredDomain.icannVerification.pending.pendingEmails` | `registeredDomain.icannVerification.deactivated.unverifiedEmails` | `registeredDomain.icannVerification.status` | `registeredDomain.addons.privacy.enabled` | `registeredDomain.addons.dnssec.enabled` | `registeredDomain.addons.insurance.enabled` | `registeredDomain.addons.insurance.activated`, 4> & {
55
55
  __applicationErrorsType?: UpdateRegisteredDomainApplicationErrors;
56
56
  }>;
57
57
  }
@@ -67,7 +67,7 @@ interface GetRegisteredDomainSignature {
67
67
  * @param - ID of the registered domain to retrieve. Equals the domain name, including TLD.
68
68
  * @returns Retrieved registered domain.
69
69
  */
70
- (registeredDomainId: string): Promise<NonNullablePaths<RegisteredDomain, `_id` | `domain` | `registrantContact.firstName` | `registrantContact.lastName` | `registrantContact.email` | `registrantContact.streetAddress` | `registrantContact.city` | `registrantContact.country` | `registrantContact.phone` | `tldData.caOptions.legalType.value` | `tldData.itOptions.entityType.value` | `tldData.comAuOptions.policyReason.value` | `tldData.comAuOptions.eligibilityType.value` | `tldData.comAuOptions.eligibilityIdType.value` | `tldData.usOptions.nexusCategory` | `tldData.usOptions.usAppPurpose` | `tldData.esOptions.idType` | `tldData.coIlOptions.registrantType` | `tldData.tldType` | `nameServers` | `icannVerification.pending.pendingEmails` | `icannVerification.deactivated.unverifiedEmails` | `icannVerification.status`, 3> & {
70
+ (registeredDomainId: string): Promise<NonNullablePaths<RegisteredDomain, `_id` | `domain` | `registrantContact.firstName` | `registrantContact.lastName` | `registrantContact.email` | `registrantContact.streetAddress` | `registrantContact.city` | `registrantContact.country` | `registrantContact.phone` | `tldData.caOptions.legalType.value` | `tldData.itOptions.entityType.value` | `tldData.comAuOptions.policyReason.value` | `tldData.comAuOptions.eligibilityType.value` | `tldData.comAuOptions.eligibilityIdType.value` | `tldData.usOptions.nexusCategory` | `tldData.usOptions.usAppPurpose` | `tldData.esOptions.idType` | `tldData.coIlOptions.registrantType` | `tldData.tldType` | `nameServers` | `icannVerification.pending.pendingEmails` | `icannVerification.deactivated.unverifiedEmails` | `icannVerification.status` | `addons.privacy.enabled` | `addons.dnssec.enabled` | `addons.insurance.enabled` | `addons.insurance.activated`, 3> & {
71
71
  __applicationErrorsType?: GetRegisteredDomainApplicationErrors;
72
72
  }>;
73
73
  }
@@ -37,6 +37,9 @@ __export(index_exports, {
37
37
  approveTransfer: () => approveTransfer4,
38
38
  getRegisteredDomain: () => getRegisteredDomain4,
39
39
  initiateTransfer: () => initiateTransfer4,
40
+ setDnssec: () => setDnssec4,
41
+ setInsurance: () => setInsurance4,
42
+ setPrivacy: () => setPrivacy4,
40
43
  updateRegisteredDomain: () => updateRegisteredDomain4
41
44
  });
42
45
  module.exports = __toCommonJS(index_exports);
@@ -263,6 +266,93 @@ function getRegisteredDomain(payload) {
263
266
  }
264
267
  return __getRegisteredDomain;
265
268
  }
269
+ function setPrivacy(payload) {
270
+ function __setPrivacy({ host }) {
271
+ const metadata = {
272
+ entityFqdn: "wix.premium.domains.v1.registered_domain",
273
+ method: "POST",
274
+ methodFqn: "com.wixpress.premium.domains.registered.RegisteredDomainService.SetPrivacy",
275
+ packageName: PACKAGE_NAME,
276
+ migrationOptions: {
277
+ optInTransformResponse: true
278
+ },
279
+ url: resolveComWixpressPremiumDomainsRegisteredRegisteredDomainServiceUrl(
280
+ {
281
+ protoPath: "/v1/registered-domains/{domain}/set-privacy",
282
+ data: payload,
283
+ host
284
+ }
285
+ ),
286
+ data: payload,
287
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
288
+ {
289
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
290
+ paths: TRANSFORM_PATHS_1
291
+ }
292
+ ])
293
+ };
294
+ return metadata;
295
+ }
296
+ return __setPrivacy;
297
+ }
298
+ function setDnssec(payload) {
299
+ function __setDnssec({ host }) {
300
+ const metadata = {
301
+ entityFqdn: "wix.premium.domains.v1.registered_domain",
302
+ method: "POST",
303
+ methodFqn: "com.wixpress.premium.domains.registered.RegisteredDomainService.SetDnssec",
304
+ packageName: PACKAGE_NAME,
305
+ migrationOptions: {
306
+ optInTransformResponse: true
307
+ },
308
+ url: resolveComWixpressPremiumDomainsRegisteredRegisteredDomainServiceUrl(
309
+ {
310
+ protoPath: "/v1/registered-domains/{domain}/set-dnssec",
311
+ data: payload,
312
+ host
313
+ }
314
+ ),
315
+ data: payload,
316
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
317
+ {
318
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
319
+ paths: TRANSFORM_PATHS_1
320
+ }
321
+ ])
322
+ };
323
+ return metadata;
324
+ }
325
+ return __setDnssec;
326
+ }
327
+ function setInsurance(payload) {
328
+ function __setInsurance({ host }) {
329
+ const metadata = {
330
+ entityFqdn: "wix.premium.domains.v1.registered_domain",
331
+ method: "POST",
332
+ methodFqn: "com.wixpress.premium.domains.registered.RegisteredDomainService.SetInsurance",
333
+ packageName: PACKAGE_NAME,
334
+ migrationOptions: {
335
+ optInTransformResponse: true
336
+ },
337
+ url: resolveComWixpressPremiumDomainsRegisteredRegisteredDomainServiceUrl(
338
+ {
339
+ protoPath: "/v1/registered-domains/{domain}/set-insurance",
340
+ data: payload,
341
+ host
342
+ }
343
+ ),
344
+ data: payload,
345
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
346
+ {
347
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
348
+ paths: TRANSFORM_PATHS_1
349
+ }
350
+ ])
351
+ };
352
+ return metadata;
353
+ }
354
+ return __setInsurance;
355
+ }
266
356
 
267
357
  // src/premium-domains-v1-registered-domain-registered-domains.universal.ts
268
358
  var LegalTypeEnum = /* @__PURE__ */ ((LegalTypeEnum2) => {
@@ -494,6 +584,84 @@ async function getRegisteredDomain2(registeredDomainId) {
494
584
  throw transformedError;
495
585
  }
496
586
  }
587
+ async function setPrivacy2(domain, enabled) {
588
+ const { httpClient, sideEffects } = arguments[2];
589
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
590
+ domain,
591
+ enabled
592
+ });
593
+ const reqOpts = setPrivacy(payload);
594
+ sideEffects?.onSiteCall?.();
595
+ try {
596
+ const result = await httpClient.request(reqOpts);
597
+ sideEffects?.onSuccess?.(result);
598
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
599
+ } catch (err) {
600
+ const transformedError = (0, import_transform_error.transformError)(
601
+ err,
602
+ {
603
+ spreadPathsToArguments: {},
604
+ explicitPathsToArguments: { domain: "$[0]", enabled: "$[1]" },
605
+ singleArgumentUnchanged: false
606
+ },
607
+ ["domain", "enabled"]
608
+ );
609
+ sideEffects?.onError?.(err);
610
+ throw transformedError;
611
+ }
612
+ }
613
+ async function setDnssec2(domain, enabled) {
614
+ const { httpClient, sideEffects } = arguments[2];
615
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
616
+ domain,
617
+ enabled
618
+ });
619
+ const reqOpts = setDnssec(payload);
620
+ sideEffects?.onSiteCall?.();
621
+ try {
622
+ const result = await httpClient.request(reqOpts);
623
+ sideEffects?.onSuccess?.(result);
624
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
625
+ } catch (err) {
626
+ const transformedError = (0, import_transform_error.transformError)(
627
+ err,
628
+ {
629
+ spreadPathsToArguments: {},
630
+ explicitPathsToArguments: { domain: "$[0]", enabled: "$[1]" },
631
+ singleArgumentUnchanged: false
632
+ },
633
+ ["domain", "enabled"]
634
+ );
635
+ sideEffects?.onError?.(err);
636
+ throw transformedError;
637
+ }
638
+ }
639
+ async function setInsurance2(domain, enabled) {
640
+ const { httpClient, sideEffects } = arguments[2];
641
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
642
+ domain,
643
+ enabled
644
+ });
645
+ const reqOpts = setInsurance(payload);
646
+ sideEffects?.onSiteCall?.();
647
+ try {
648
+ const result = await httpClient.request(reqOpts);
649
+ sideEffects?.onSuccess?.(result);
650
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
651
+ } catch (err) {
652
+ const transformedError = (0, import_transform_error.transformError)(
653
+ err,
654
+ {
655
+ spreadPathsToArguments: {},
656
+ explicitPathsToArguments: { domain: "$[0]", enabled: "$[1]" },
657
+ singleArgumentUnchanged: false
658
+ },
659
+ ["domain", "enabled"]
660
+ );
661
+ sideEffects?.onError?.(err);
662
+ throw transformedError;
663
+ }
664
+ }
497
665
 
498
666
  // src/premium-domains-v1-registered-domain-registered-domains.public.ts
499
667
  function initiateTransfer3(httpClient) {
@@ -527,6 +695,30 @@ function getRegisteredDomain3(httpClient) {
527
695
  { httpClient }
528
696
  );
529
697
  }
698
+ function setPrivacy3(httpClient) {
699
+ return (domain, enabled) => setPrivacy2(
700
+ domain,
701
+ enabled,
702
+ // @ts-ignore
703
+ { httpClient }
704
+ );
705
+ }
706
+ function setDnssec3(httpClient) {
707
+ return (domain, enabled) => setDnssec2(
708
+ domain,
709
+ enabled,
710
+ // @ts-ignore
711
+ { httpClient }
712
+ );
713
+ }
714
+ function setInsurance3(httpClient) {
715
+ return (domain, enabled) => setInsurance2(
716
+ domain,
717
+ enabled,
718
+ // @ts-ignore
719
+ { httpClient }
720
+ );
721
+ }
530
722
 
531
723
  // src/premium-domains-v1-registered-domain-registered-domains.context.ts
532
724
  var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
@@ -534,6 +726,9 @@ var initiateTransfer4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModul
534
726
  var approveTransfer4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(approveTransfer3);
535
727
  var updateRegisteredDomain4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateRegisteredDomain3);
536
728
  var getRegisteredDomain4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getRegisteredDomain3);
729
+ var setPrivacy4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(setPrivacy3);
730
+ var setDnssec4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(setDnssec3);
731
+ var setInsurance4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(setInsurance3);
537
732
  // Annotate the CommonJS export names for ESM import in node:
538
733
  0 && (module.exports = {
539
734
  ContactVerificationStatus,
@@ -553,6 +748,9 @@ var getRegisteredDomain4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTMo
553
748
  approveTransfer,
554
749
  getRegisteredDomain,
555
750
  initiateTransfer,
751
+ setDnssec,
752
+ setInsurance,
753
+ setPrivacy,
556
754
  updateRegisteredDomain
557
755
  });
558
756
  //# sourceMappingURL=index.js.map