@wix/auto_sdk_domains_connected-domain-setup-info 1.0.7 → 1.0.8

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.
Files changed (123) hide show
  1. package/build/cjs/index.d.ts +23 -1
  2. package/build/cjs/index.js +196 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +228 -1
  5. package/build/cjs/index.typings.js +183 -15
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +172 -1
  8. package/build/cjs/meta.js +163 -15
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +23 -0
  11. package/build/es/index.mjs +174 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/{src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.d.ts → index.typings.d.mts} +32 -19
  14. package/build/es/index.typings.mjs +161 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/{internal/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.d.ts → es/meta.d.mts} +30 -54
  17. package/build/es/meta.mjs +139 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/internal/cjs/index.d.ts +23 -1
  20. package/build/internal/cjs/index.js +196 -15
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +228 -1
  23. package/build/internal/cjs/index.typings.js +183 -15
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +172 -1
  26. package/build/internal/cjs/meta.js +163 -15
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +23 -0
  29. package/build/internal/es/index.mjs +174 -0
  30. package/build/internal/es/index.mjs.map +1 -0
  31. package/build/internal/{cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.d.ts → es/index.typings.d.mts} +32 -19
  32. package/build/internal/es/index.typings.mjs +161 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -0
  34. package/build/{cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.d.ts → internal/es/meta.d.mts} +30 -54
  35. package/build/internal/es/meta.mjs +139 -0
  36. package/build/internal/es/meta.mjs.map +1 -0
  37. package/package.json +11 -10
  38. package/build/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.context.d.ts +0 -5
  39. package/build/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.context.js +0 -9
  40. package/build/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.context.js.map +0 -1
  41. package/build/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.d.ts +0 -10
  42. package/build/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js +0 -123
  43. package/build/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js.map +0 -1
  44. package/build/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.meta.d.ts +0 -15
  45. package/build/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.meta.js +0 -47
  46. package/build/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.meta.js.map +0 -1
  47. package/build/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.d.ts +0 -21
  48. package/build/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.js +0 -14
  49. package/build/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.js.map +0 -1
  50. package/build/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.js +0 -15
  51. package/build/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.js.map +0 -1
  52. package/build/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.d.ts +0 -215
  53. package/build/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js +0 -81
  54. package/build/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.context.d.ts +0 -5
  65. package/build/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.context.js +0 -5
  66. package/build/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.context.js.map +0 -1
  67. package/build/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.d.ts +0 -10
  68. package/build/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js +0 -119
  69. package/build/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js.map +0 -1
  70. package/build/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.meta.d.ts +0 -15
  71. package/build/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.meta.js +0 -20
  72. package/build/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.meta.js.map +0 -1
  73. package/build/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.d.ts +0 -21
  74. package/build/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.js +0 -9
  75. package/build/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.js.map +0 -1
  76. package/build/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.d.ts +0 -196
  77. package/build/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.js +0 -12
  78. package/build/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.js.map +0 -1
  79. package/build/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js +0 -54
  80. package/build/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js.map +0 -1
  81. package/build/internal/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.context.d.ts +0 -5
  82. package/build/internal/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.context.js +0 -9
  83. package/build/internal/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.context.js.map +0 -1
  84. package/build/internal/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.d.ts +0 -10
  85. package/build/internal/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js +0 -123
  86. package/build/internal/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js.map +0 -1
  87. package/build/internal/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.meta.d.ts +0 -15
  88. package/build/internal/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.meta.js +0 -47
  89. package/build/internal/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.meta.js.map +0 -1
  90. package/build/internal/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.d.ts +0 -21
  91. package/build/internal/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.js +0 -14
  92. package/build/internal/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.js.map +0 -1
  93. package/build/internal/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.js +0 -15
  94. package/build/internal/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.js.map +0 -1
  95. package/build/internal/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js +0 -81
  96. package/build/internal/cjs/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js.map +0 -1
  97. package/build/internal/es/index.d.ts +0 -1
  98. package/build/internal/es/index.js +0 -2
  99. package/build/internal/es/index.js.map +0 -1
  100. package/build/internal/es/index.typings.d.ts +0 -1
  101. package/build/internal/es/index.typings.js +0 -2
  102. package/build/internal/es/index.typings.js.map +0 -1
  103. package/build/internal/es/meta.d.ts +0 -1
  104. package/build/internal/es/meta.js +0 -2
  105. package/build/internal/es/meta.js.map +0 -1
  106. package/build/internal/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.context.d.ts +0 -5
  107. package/build/internal/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.context.js +0 -5
  108. package/build/internal/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.context.js.map +0 -1
  109. package/build/internal/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.d.ts +0 -10
  110. package/build/internal/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js +0 -119
  111. package/build/internal/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js.map +0 -1
  112. package/build/internal/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.meta.d.ts +0 -15
  113. package/build/internal/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.meta.js +0 -20
  114. package/build/internal/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.meta.js.map +0 -1
  115. package/build/internal/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.d.ts +0 -21
  116. package/build/internal/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.js +0 -9
  117. package/build/internal/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.public.js.map +0 -1
  118. package/build/internal/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.d.ts +0 -196
  119. package/build/internal/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.js +0 -12
  120. package/build/internal/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.js.map +0 -1
  121. package/build/internal/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.d.ts +0 -215
  122. package/build/internal/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js +0 -54
  123. package/build/internal/es/src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js.map +0 -1
@@ -1,196 +0,0 @@
1
- /**
2
- * A `connectedDomainSetupInfo` object holds information the connected domain's
3
- * external registrar and some DNS records. You can use this information to guide
4
- * the site owner through the domain's setup process.
5
- */
6
- export interface ConnectedDomainSetupInfo extends ConnectedDomainSetupInfoDnsRecordsOneOf {
7
- /**
8
- * Information about domains connected using nameservers. Available only for
9
- * `{"connectionType": "NAMESERVERS"}`.
10
- */
11
- nameserverRecord?: NameserverRecord;
12
- /**
13
- * Information about domains connected by pointing. Available only for
14
- * `{"connectionType": "POINTING"}`.
15
- * @readonly
16
- */
17
- pointingRecords?: PointingRecords;
18
- /**
19
- * Information about subdomains. Available only for subdomains.
20
- * @readonly
21
- */
22
- subdomainRecords?: SubdomainRecords;
23
- /**
24
- * ID of the connected domain. Identical to the domain name including TLD.
25
- * @format HOSTNAME
26
- */
27
- connectedDomainId?: string;
28
- /**
29
- * Information about the external domain registrar including current name
30
- * servers.
31
- */
32
- registrar?: Registrar;
33
- }
34
- /** @oneof */
35
- export interface ConnectedDomainSetupInfoDnsRecordsOneOf {
36
- /**
37
- * Information about domains connected using nameservers. Available only for
38
- * `{"connectionType": "NAMESERVERS"}`.
39
- */
40
- nameserverRecord?: NameserverRecord;
41
- /**
42
- * Information about domains connected by pointing. Available only for
43
- * `{"connectionType": "POINTING"}`.
44
- * @readonly
45
- */
46
- pointingRecords?: PointingRecords;
47
- /**
48
- * Information about subdomains. Available only for subdomains.
49
- * @readonly
50
- */
51
- subdomainRecords?: SubdomainRecords;
52
- }
53
- export interface Registrar {
54
- /**
55
- * Name of the external domain registrar. For subdomains it's the registrar of the root domain.
56
- * @readonly
57
- */
58
- name?: string | null;
59
- /**
60
- * Values of the current name server records. In case you connect an external
61
- * domain using name servers, site owners must replace these current name servers
62
- * with the new name servers found in `connectedDomainSetupInfo.nameserverRecord.nsRecord.values`
63
- * during the initial domain setup.
64
- * The replacement can't be performed through Wix APIs, you must use the
65
- * infrastructure of the external domain registrar. Read more about
66
- * [connecting domains using nameservers](https://dev.wix.com/api/rest/account-level-apis/connected-domains/sample-flows#account-level-apis_connected-domains_sample-flows_connect-an-external-domain-using-nameservers).
67
- * @readonly
68
- */
69
- nameServers?: string[];
70
- }
71
- /** Information about domains connected by nameservers. */
72
- export interface NameserverRecord {
73
- /**
74
- * Default [nameserver record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#NS).
75
- * @readonly
76
- */
77
- nsRecord?: NsRecord;
78
- }
79
- export interface NsRecord {
80
- /**
81
- * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.
82
- * @format HOSTNAME
83
- */
84
- hostName?: string;
85
- /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */
86
- ttl?: number;
87
- /**
88
- * DNS record values.
89
- * @minSize 1
90
- * @maxSize 10
91
- */
92
- values?: string[];
93
- }
94
- /** Information about domains connected by pointing. */
95
- export interface PointingRecords {
96
- /**
97
- * [Address record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#A).
98
- * @readonly
99
- */
100
- aRecord?: ARecord;
101
- /**
102
- * [Canonical Name record](https://en.wikipedia.org/wiki/CNAME_record).
103
- * @readonly
104
- */
105
- cnameRecord?: CnameRecord;
106
- }
107
- export interface ARecord {
108
- /**
109
- * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.
110
- * @format HOSTNAME
111
- */
112
- hostName?: string;
113
- /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */
114
- ttl?: number;
115
- /**
116
- * DNS record values.
117
- * @minSize 1
118
- * @maxSize 10
119
- */
120
- values?: string[];
121
- }
122
- export interface CnameRecord {
123
- /**
124
- * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.
125
- * @format HOSTNAME
126
- */
127
- hostName?: string;
128
- /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */
129
- ttl?: number;
130
- /** DNS record value. */
131
- value?: string;
132
- }
133
- /** Information about subdomains. */
134
- export interface SubdomainRecords {
135
- /**
136
- * [Canonical Name records](https://en.wikipedia.org/wiki/CNAME_record).
137
- * @readonly
138
- * @maxSize 2
139
- */
140
- cnameRecords?: CnameRecord[];
141
- }
142
- export interface GetSetupInfoRequest {
143
- /**
144
- * Domain name including TLD
145
- * @format HOSTNAME
146
- */
147
- domain?: string;
148
- /**
149
- * How the domain should be to connected the Wix site.
150
- *
151
- * + `"UNKNOWN_CONNECTION_TYPE"`: supported only for subdomain.
152
- * + `"POINTING"`: Get domain or subdomain setup by pointing
153
- * + `"NAMESERVERS"`: Get domain setup by nameservers
154
- * + `"HIDDEN"`: supported only for subdomain.
155
- */
156
- connectionType?: ConnectionTypeWithLiterals;
157
- /** Whether to return registrar information or not. Default is false. */
158
- includeRegistrar?: boolean;
159
- }
160
- export declare enum ConnectionType {
161
- /** There is no information about the connection type. */
162
- UNKNOWN_CONNECTION_TYPE = "UNKNOWN_CONNECTION_TYPE",
163
- /** The domain is connected by pointing. Wix doesn't manage DNS information. */
164
- POINTING = "POINTING",
165
- /** The domain is connected by nameservers. Wix manages DNS information. */
166
- NAMESERVERS = "NAMESERVERS",
167
- /** The domain isn't visible to site visitors. */
168
- HIDDEN = "HIDDEN"
169
- }
170
- /** @enumType */
171
- export type ConnectionTypeWithLiterals = ConnectionType | 'UNKNOWN_CONNECTION_TYPE' | 'POINTING' | 'NAMESERVERS' | 'HIDDEN';
172
- export interface GetSetupInfoResponse {
173
- /** Retrieved setup information. */
174
- domainSetupInfo?: ConnectedDomainSetupInfo;
175
- }
176
- export interface PreCreateConnectedDomainRequest {
177
- /**
178
- * Domain name including TLD
179
- * @format HOSTNAME
180
- */
181
- domain?: string;
182
- }
183
- export interface PreCreateConnectedDomainResponse {
184
- }
185
- export interface GetConnectedDomainSetupInfoRequest {
186
- /**
187
- * ID of the connected domain to retrieve setup information for.
188
- * Identical to the domain name including TLD.
189
- * @format HOSTNAME
190
- */
191
- connectedDomainId: string;
192
- }
193
- export interface GetConnectedDomainSetupInfoResponse {
194
- /** Retrieved setup information. */
195
- connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
196
- }
@@ -1,12 +0,0 @@
1
- export var ConnectionType;
2
- (function (ConnectionType) {
3
- /** There is no information about the connection type. */
4
- ConnectionType["UNKNOWN_CONNECTION_TYPE"] = "UNKNOWN_CONNECTION_TYPE";
5
- /** The domain is connected by pointing. Wix doesn't manage DNS information. */
6
- ConnectionType["POINTING"] = "POINTING";
7
- /** The domain is connected by nameservers. Wix manages DNS information. */
8
- ConnectionType["NAMESERVERS"] = "NAMESERVERS";
9
- /** The domain isn't visible to site visitors. */
10
- ConnectionType["HIDDEN"] = "HIDDEN";
11
- })(ConnectionType || (ConnectionType = {}));
12
- //# sourceMappingURL=premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.js","sourceRoot":"","sources":["../../../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.types.ts"],"names":[],"mappings":"AA0KA,MAAM,CAAN,IAAY,cASX;AATD,WAAY,cAAc;IACxB,yDAAyD;IACzD,qEAAmD,CAAA;IACnD,+EAA+E;IAC/E,uCAAqB,CAAA;IACrB,2EAA2E;IAC3E,6CAA2B,CAAA;IAC3B,iDAAiD;IACjD,mCAAiB,CAAA;AACnB,CAAC,EATW,cAAc,KAAd,cAAc,QASzB"}
@@ -1,215 +0,0 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
- /**
3
- * A `connectedDomainSetupInfo` object holds information the connected domain's
4
- * external registrar and some DNS records. You can use this information to guide
5
- * the site owner through the domain's setup process.
6
- */
7
- export interface ConnectedDomainSetupInfo extends ConnectedDomainSetupInfoDnsRecordsOneOf {
8
- /**
9
- * Information about domains connected using nameservers. Available only for
10
- * `{"connectionType": "NAMESERVERS"}`.
11
- */
12
- nameserverRecord?: NameserverRecord;
13
- /**
14
- * Information about domains connected by pointing. Available only for
15
- * `{"connectionType": "POINTING"}`.
16
- * @readonly
17
- */
18
- pointingRecords?: PointingRecords;
19
- /**
20
- * Information about subdomains. Available only for subdomains.
21
- * @readonly
22
- */
23
- subdomainRecords?: SubdomainRecords;
24
- /**
25
- * ID of the connected domain. Identical to the domain name including TLD.
26
- * @format HOSTNAME
27
- */
28
- connectedDomainId?: string;
29
- /**
30
- * Information about the external domain registrar including current name
31
- * servers.
32
- */
33
- registrar?: Registrar;
34
- }
35
- /** @oneof */
36
- export interface ConnectedDomainSetupInfoDnsRecordsOneOf {
37
- /**
38
- * Information about domains connected using nameservers. Available only for
39
- * `{"connectionType": "NAMESERVERS"}`.
40
- */
41
- nameserverRecord?: NameserverRecord;
42
- /**
43
- * Information about domains connected by pointing. Available only for
44
- * `{"connectionType": "POINTING"}`.
45
- * @readonly
46
- */
47
- pointingRecords?: PointingRecords;
48
- /**
49
- * Information about subdomains. Available only for subdomains.
50
- * @readonly
51
- */
52
- subdomainRecords?: SubdomainRecords;
53
- }
54
- export interface Registrar {
55
- /**
56
- * Name of the external domain registrar. For subdomains it's the registrar of the root domain.
57
- * @readonly
58
- */
59
- name?: string | null;
60
- /**
61
- * Values of the current name server records. In case you connect an external
62
- * domain using name servers, site owners must replace these current name servers
63
- * with the new name servers found in `connectedDomainSetupInfo.nameserverRecord.nsRecord.values`
64
- * during the initial domain setup.
65
- * The replacement can't be performed through Wix APIs, you must use the
66
- * infrastructure of the external domain registrar. Read more about
67
- * [connecting domains using nameservers](https://dev.wix.com/api/rest/account-level-apis/connected-domains/sample-flows#account-level-apis_connected-domains_sample-flows_connect-an-external-domain-using-nameservers).
68
- * @readonly
69
- */
70
- nameServers?: string[];
71
- }
72
- /** Information about domains connected by nameservers. */
73
- export interface NameserverRecord {
74
- /**
75
- * Default [nameserver record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#NS).
76
- * @readonly
77
- */
78
- nsRecord?: NsRecord;
79
- }
80
- export interface NsRecord {
81
- /**
82
- * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.
83
- * @format HOSTNAME
84
- */
85
- hostName?: string;
86
- /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */
87
- ttl?: number;
88
- /**
89
- * DNS record values.
90
- * @minSize 1
91
- * @maxSize 10
92
- */
93
- values?: string[];
94
- }
95
- /** Information about domains connected by pointing. */
96
- export interface PointingRecords {
97
- /**
98
- * [Address record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#A).
99
- * @readonly
100
- */
101
- aRecord?: ARecord;
102
- /**
103
- * [Canonical Name record](https://en.wikipedia.org/wiki/CNAME_record).
104
- * @readonly
105
- */
106
- cnameRecord?: CnameRecord;
107
- }
108
- export interface ARecord {
109
- /**
110
- * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.
111
- * @format HOSTNAME
112
- */
113
- hostName?: string;
114
- /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */
115
- ttl?: number;
116
- /**
117
- * DNS record values.
118
- * @minSize 1
119
- * @maxSize 10
120
- */
121
- values?: string[];
122
- }
123
- export interface CnameRecord {
124
- /**
125
- * Domain host name. For example `domain.com` or `mail.domain.com`. Can be a subdomain.
126
- * @format HOSTNAME
127
- */
128
- hostName?: string;
129
- /** [Time to live](https://en.wikipedia.org/wiki/Time_to_live) in seconds. */
130
- ttl?: number;
131
- /** DNS record value. */
132
- value?: string;
133
- }
134
- /** Information about subdomains. */
135
- export interface SubdomainRecords {
136
- /**
137
- * [Canonical Name records](https://en.wikipedia.org/wiki/CNAME_record).
138
- * @readonly
139
- * @maxSize 2
140
- */
141
- cnameRecords?: CnameRecord[];
142
- }
143
- export interface GetSetupInfoRequest {
144
- /**
145
- * Domain name including TLD
146
- * @format HOSTNAME
147
- */
148
- domain?: string;
149
- /**
150
- * How the domain should be to connected the Wix site.
151
- *
152
- * + `"UNKNOWN_CONNECTION_TYPE"`: supported only for subdomain.
153
- * + `"POINTING"`: Get domain or subdomain setup by pointing
154
- * + `"NAMESERVERS"`: Get domain setup by nameservers
155
- * + `"HIDDEN"`: supported only for subdomain.
156
- */
157
- connectionType?: ConnectionTypeWithLiterals;
158
- /** Whether to return registrar information or not. Default is false. */
159
- includeRegistrar?: boolean;
160
- }
161
- export declare enum ConnectionType {
162
- /** There is no information about the connection type. */
163
- UNKNOWN_CONNECTION_TYPE = "UNKNOWN_CONNECTION_TYPE",
164
- /** The domain is connected by pointing. Wix doesn't manage DNS information. */
165
- POINTING = "POINTING",
166
- /** The domain is connected by nameservers. Wix manages DNS information. */
167
- NAMESERVERS = "NAMESERVERS",
168
- /** The domain isn't visible to site visitors. */
169
- HIDDEN = "HIDDEN"
170
- }
171
- /** @enumType */
172
- export type ConnectionTypeWithLiterals = ConnectionType | 'UNKNOWN_CONNECTION_TYPE' | 'POINTING' | 'NAMESERVERS' | 'HIDDEN';
173
- export interface GetSetupInfoResponse {
174
- /** Retrieved setup information. */
175
- domainSetupInfo?: ConnectedDomainSetupInfo;
176
- }
177
- export interface PreCreateConnectedDomainRequest {
178
- /**
179
- * Domain name including TLD
180
- * @format HOSTNAME
181
- */
182
- domain?: string;
183
- }
184
- export interface PreCreateConnectedDomainResponse {
185
- }
186
- export interface GetConnectedDomainSetupInfoRequest {
187
- /**
188
- * ID of the connected domain to retrieve setup information for.
189
- * Identical to the domain name including TLD.
190
- * @format HOSTNAME
191
- */
192
- connectedDomainId: string;
193
- }
194
- export interface GetConnectedDomainSetupInfoResponse {
195
- /** Retrieved setup information. */
196
- connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
197
- }
198
- type ConnectedDomainSetupInfoNonNullablePaths = `nameserverRecord.nsRecord.hostName` | `nameserverRecord.nsRecord.ttl` | `nameserverRecord.nsRecord.values` | `pointingRecords.aRecord.hostName` | `pointingRecords.aRecord.ttl` | `pointingRecords.aRecord.values` | `pointingRecords.cnameRecord.hostName` | `pointingRecords.cnameRecord.ttl` | `pointingRecords.cnameRecord.value` | `subdomainRecords.cnameRecords` | `subdomainRecords.cnameRecords.${number}.hostName` | `subdomainRecords.cnameRecords.${number}.ttl` | `subdomainRecords.cnameRecords.${number}.value` | `connectedDomainId` | `registrar.nameServers`;
199
- /**
200
- * Retrieves information for the initial setup of a connected domain.
201
- *
202
- *
203
- * You must pass the relevant Wix account ID in the header of the call.
204
- *
205
- * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.
206
- * @param connectedDomainId - ID of the connected domain to retrieve setup information for.
207
- * Identical to the domain name including TLD.
208
- * @public
209
- * @requiredField connectedDomainId
210
- * @permissionId DOMAINS.READ_CONNECTED_DOMAINS
211
- * @returns Retrieved setup information.
212
- * @fqn com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo
213
- */
214
- export declare function getConnectedDomainSetupInfo(connectedDomainId: string): Promise<NonNullablePaths<ConnectedDomainSetupInfo, ConnectedDomainSetupInfoNonNullablePaths>>;
215
- export {};
@@ -1,54 +0,0 @@
1
- import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
2
- import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
3
- import * as ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo from './premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.http.js';
4
- export var ConnectionType;
5
- (function (ConnectionType) {
6
- /** There is no information about the connection type. */
7
- ConnectionType["UNKNOWN_CONNECTION_TYPE"] = "UNKNOWN_CONNECTION_TYPE";
8
- /** The domain is connected by pointing. Wix doesn't manage DNS information. */
9
- ConnectionType["POINTING"] = "POINTING";
10
- /** The domain is connected by nameservers. Wix manages DNS information. */
11
- ConnectionType["NAMESERVERS"] = "NAMESERVERS";
12
- /** The domain isn't visible to site visitors. */
13
- ConnectionType["HIDDEN"] = "HIDDEN";
14
- })(ConnectionType || (ConnectionType = {}));
15
- /**
16
- * Retrieves information for the initial setup of a connected domain.
17
- *
18
- *
19
- * You must pass the relevant Wix account ID in the header of the call.
20
- *
21
- * > __Important:__ This call requires an account level API key and cannot be authenticated with the standard authorization header.
22
- * @param connectedDomainId - ID of the connected domain to retrieve setup information for.
23
- * Identical to the domain name including TLD.
24
- * @public
25
- * @requiredField connectedDomainId
26
- * @permissionId DOMAINS.READ_CONNECTED_DOMAINS
27
- * @returns Retrieved setup information.
28
- * @fqn com.wixpress.premium.domain.connected.ConnectedDomainSetupInfoService.GetConnectedDomainSetupInfo
29
- */
30
- export async function getConnectedDomainSetupInfo(connectedDomainId) {
31
- // @ts-ignore
32
- const { httpClient, sideEffects } = arguments[1];
33
- const payload = renameKeysFromSDKRequestToRESTRequest({
34
- connectedDomainId: connectedDomainId,
35
- });
36
- const reqOpts = ambassadorWixPremiumDomainsV1ConnectedDomainSetupInfo.getConnectedDomainSetupInfo(payload);
37
- sideEffects?.onSiteCall?.();
38
- try {
39
- const result = await httpClient.request(reqOpts);
40
- sideEffects?.onSuccess?.(result);
41
- return renameKeysFromRESTResponseToSDKResponse(result.data)
42
- ?.connectedDomainSetupInfo;
43
- }
44
- catch (err) {
45
- const transformedError = sdkTransformError(err, {
46
- spreadPathsToArguments: {},
47
- explicitPathsToArguments: { connectedDomainId: '$[0]' },
48
- singleArgumentUnchanged: false,
49
- }, ['connectedDomainId']);
50
- sideEffects?.onError?.(err);
51
- throw transformedError;
52
- }
53
- }
54
- //# sourceMappingURL=premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.js","sourceRoot":"","sources":["../../../../src/premium-domains-v1-connected-domain-setup-info-connected-domain-setup-info.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,qDAAqD,MAAM,sFAAsF,CAAC;AA4K9J,MAAM,CAAN,IAAY,cASX;AATD,WAAY,cAAc;IACxB,yDAAyD;IACzD,qEAAmD,CAAA;IACnD,+EAA+E;IAC/E,uCAAqB,CAAA;IACrB,2EAA2E;IAC3E,6CAA2B,CAAA;IAC3B,iDAAiD;IACjD,mCAAiB,CAAA;AACnB,CAAC,EATW,cAAc,KAAd,cAAc,QASzB;AAwDD;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAC/C,iBAAyB;IAOzB,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC;QACpD,iBAAiB,EAAE,iBAAiB;KACrC,CAAC,CAAC;IAEH,MAAM,OAAO,GACX,qDAAqD,CAAC,2BAA2B,CAC/E,OAAO,CACR,CAAC;IAEJ,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAC;YACzD,EAAE,wBAAyB,CAAC;IAChC,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,iBAAiB,EAAE,MAAM,EAAE;YACvD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,mBAAmB,CAAC,CACtB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}