@randock/nameshift-api-client 0.0.449 → 0.0.450

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 (102) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +37 -1
  4. package/dist/apis/AdminApi.js +122 -1
  5. package/dist/apis/MarketplacesApi.d.ts +89 -0
  6. package/dist/apis/MarketplacesApi.js +332 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AccountMarketplaceDto.d.ts +56 -0
  10. package/dist/models/AccountMarketplaceDto.js +71 -0
  11. package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +1 -0
  12. package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +1 -0
  13. package/dist/models/AccountNameshiftCommissionItemDto.d.ts +1 -0
  14. package/dist/models/AccountNameshiftCommissionItemDto.js +1 -0
  15. package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +1 -0
  16. package/dist/models/AccountNameshiftCommissionReasonDto.js +1 -0
  17. package/dist/models/AccountSettingsDto.d.ts +18 -0
  18. package/dist/models/AccountSettingsDto.js +16 -0
  19. package/dist/models/AccountSettingsInput.d.ts +18 -0
  20. package/dist/models/AccountSettingsInput.js +14 -0
  21. package/dist/models/AdminDomainListItemDto.d.ts +19 -0
  22. package/dist/models/AdminDomainListItemDto.js +17 -1
  23. package/dist/models/AdminMarketplaceDto.d.ts +86 -0
  24. package/dist/models/AdminMarketplaceDto.js +91 -0
  25. package/dist/models/CommissionDto.d.ts +1 -0
  26. package/dist/models/CommissionDto.js +1 -0
  27. package/dist/models/CommissionPayloadInput.d.ts +1 -0
  28. package/dist/models/CommissionPayloadInput.js +1 -0
  29. package/dist/models/CommissionReasonDto.d.ts +1 -0
  30. package/dist/models/CommissionReasonDto.js +1 -0
  31. package/dist/models/CommissionSimulationItemInput.d.ts +1 -0
  32. package/dist/models/CommissionSimulationItemInput.js +1 -0
  33. package/dist/models/CreateOrderInput.d.ts +6 -0
  34. package/dist/models/CreateOrderInput.js +2 -0
  35. package/dist/models/CreateSubscriptionInput.d.ts +6 -0
  36. package/dist/models/CreateSubscriptionInput.js +2 -0
  37. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  38. package/dist/models/FeatureFlagListItemDto.js +2 -1
  39. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  40. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  41. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +18 -0
  42. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +16 -0
  43. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +18 -0
  44. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +16 -0
  45. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +18 -0
  46. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +16 -0
  47. package/dist/models/MarketplaceDto.d.ts +74 -0
  48. package/dist/models/MarketplaceDto.js +83 -0
  49. package/dist/models/OrderDto.d.ts +7 -1
  50. package/dist/models/OrderDto.js +4 -0
  51. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  52. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  53. package/dist/models/SetAccountMarketplaceInput.d.ts +32 -0
  54. package/dist/models/SetAccountMarketplaceInput.js +51 -0
  55. package/dist/models/SimulateCommissionInput.d.ts +1 -0
  56. package/dist/models/SimulateCommissionInput.js +1 -0
  57. package/dist/models/SubscriptionDto.d.ts +7 -1
  58. package/dist/models/SubscriptionDto.js +4 -0
  59. package/dist/models/UpdateDomainInput.d.ts +18 -0
  60. package/dist/models/UpdateDomainInput.js +14 -0
  61. package/dist/models/UpdateMarketplaceInput.d.ts +44 -0
  62. package/dist/models/UpdateMarketplaceInput.js +53 -0
  63. package/dist/models/UpdateOrderInput.d.ts +6 -0
  64. package/dist/models/UpdateOrderInput.js +2 -0
  65. package/dist/models/UpdateSubscriptionInput.d.ts +6 -0
  66. package/dist/models/UpdateSubscriptionInput.js +2 -0
  67. package/dist/models/index.d.ts +5 -0
  68. package/dist/models/index.js +5 -0
  69. package/package.json +1 -1
  70. package/src/apis/AdminApi.ts +112 -0
  71. package/src/apis/MarketplacesApi.ts +240 -0
  72. package/src/apis/index.ts +1 -0
  73. package/src/models/AccountMarketplaceDto.ts +99 -0
  74. package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +1 -0
  75. package/src/models/AccountNameshiftCommissionItemDto.ts +1 -0
  76. package/src/models/AccountNameshiftCommissionReasonDto.ts +1 -0
  77. package/src/models/AccountSettingsDto.ts +24 -0
  78. package/src/models/AccountSettingsInput.ts +23 -0
  79. package/src/models/AdminDomainListItemDto.ts +23 -0
  80. package/src/models/AdminMarketplaceDto.ts +144 -0
  81. package/src/models/CommissionDto.ts +1 -0
  82. package/src/models/CommissionPayloadInput.ts +1 -0
  83. package/src/models/CommissionReasonDto.ts +1 -0
  84. package/src/models/CommissionSimulationItemInput.ts +1 -0
  85. package/src/models/CreateOrderInput.ts +8 -0
  86. package/src/models/CreateSubscriptionInput.ts +8 -0
  87. package/src/models/FeatureFlagListItemDto.ts +2 -1
  88. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  89. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +24 -0
  90. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +24 -0
  91. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +24 -0
  92. package/src/models/MarketplaceDto.ts +126 -0
  93. package/src/models/OrderDto.ts +10 -1
  94. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  95. package/src/models/SetAccountMarketplaceInput.ts +66 -0
  96. package/src/models/SimulateCommissionInput.ts +1 -0
  97. package/src/models/SubscriptionDto.ts +10 -1
  98. package/src/models/UpdateDomainInput.ts +23 -0
  99. package/src/models/UpdateMarketplaceInput.ts +81 -0
  100. package/src/models/UpdateOrderInput.ts +8 -0
  101. package/src/models/UpdateSubscriptionInput.ts +8 -0
  102. package/src/models/index.ts +5 -0
@@ -13,6 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AccountSettingsInputMarketplaceEnum = void 0;
16
17
  exports.instanceOfAccountSettingsInput = instanceOfAccountSettingsInput;
17
18
  exports.AccountSettingsInputFromJSON = AccountSettingsInputFromJSON;
18
19
  exports.AccountSettingsInputFromJSONTyped = AccountSettingsInputFromJSONTyped;
@@ -25,6 +26,17 @@ var TimeTableConfigurationInput_1 = require("./TimeTableConfigurationInput");
25
26
  var LeadPriceNegotiatorAiAgentConfigurationInput_1 = require("./LeadPriceNegotiatorAiAgentConfigurationInput");
26
27
  var LeaseToOwnConfigurationInput_1 = require("./LeaseToOwnConfigurationInput");
27
28
  var AccountAliasInput_1 = require("./AccountAliasInput");
29
+ /**
30
+ * @export
31
+ */
32
+ exports.AccountSettingsInputMarketplaceEnum = {
33
+ NAMESHIFT: 'nameshift',
34
+ SEDO: 'sedo',
35
+ AFTERNIC: 'afternic',
36
+ ATOM: 'atom',
37
+ SPACESHIP: 'spaceship',
38
+ NAMECLUB: 'nameclub'
39
+ };
28
40
  /**
29
41
  * Check if a given object implements the AccountSettingsInput interface.
30
42
  */
@@ -42,6 +54,7 @@ function AccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
42
54
  'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['defaultStartingOffer']),
43
55
  'defaultCurrencyCode': json['defaultCurrencyCode'] == null ? undefined : json['defaultCurrencyCode'],
44
56
  'sidnIdcode': json['sidnIdcode'] == null ? undefined : json['sidnIdcode'],
57
+ 'marketplace': json['marketplace'] == null ? undefined : json['marketplace'],
45
58
  'landingPage': json['landingPage'] == null ? undefined : (0, LandingPageInput_1.LandingPageInputFromJSON)(json['landingPage']),
46
59
  'leaseToOwn': json['leaseToOwn'] == null ? undefined : (0, LeaseToOwnConfigurationInput_1.LeaseToOwnConfigurationInputFromJSON)(json['leaseToOwn']),
47
60
  'description': json['description'] == null ? undefined : json['description'],
@@ -67,6 +80,7 @@ function AccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
67
80
  'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['defaultStartingOffer']),
68
81
  'defaultCurrencyCode': value['defaultCurrencyCode'],
69
82
  'sidnIdcode': value['sidnIdcode'],
83
+ 'marketplace': value['marketplace'],
70
84
  'landingPage': (0, LandingPageInput_1.LandingPageInputToJSON)(value['landingPage']),
71
85
  'leaseToOwn': (0, LeaseToOwnConfigurationInput_1.LeaseToOwnConfigurationInputToJSON)(value['leaseToOwn']),
72
86
  'description': value['description'],
@@ -202,6 +202,12 @@ export interface AdminDomainListItemDto {
202
202
  * @memberof AdminDomainListItemDto
203
203
  */
204
204
  showcased: boolean;
205
+ /**
206
+ * Marketplace this domain resolves to on our nameservers, overriding the account default. Null means the account default applies; "nameshift" means the domain opts out of it and stays on our own landing page.
207
+ * @type {string}
208
+ * @memberof AdminDomainListItemDto
209
+ */
210
+ marketplace: AdminDomainListItemDtoMarketplaceEnum | null;
205
211
  /**
206
212
  * Account that owns the domain.
207
213
  * @type {AccountDto}
@@ -215,6 +221,18 @@ export interface AdminDomainListItemDto {
215
221
  */
216
222
  pointsToOurServerReason: AdminDomainListItemDtoPointsToOurServerReasonEnum | null;
217
223
  }
224
+ /**
225
+ * @export
226
+ */
227
+ export declare const AdminDomainListItemDtoMarketplaceEnum: {
228
+ readonly NAMESHIFT: "nameshift";
229
+ readonly SEDO: "sedo";
230
+ readonly AFTERNIC: "afternic";
231
+ readonly ATOM: "atom";
232
+ readonly SPACESHIP: "spaceship";
233
+ readonly NAMECLUB: "nameclub";
234
+ };
235
+ export type AdminDomainListItemDtoMarketplaceEnum = typeof AdminDomainListItemDtoMarketplaceEnum[keyof typeof AdminDomainListItemDtoMarketplaceEnum];
218
236
  /**
219
237
  * @export
220
238
  */
@@ -223,6 +241,7 @@ export declare const AdminDomainListItemDtoPointsToOurServerReasonEnum: {
223
241
  readonly VALID_A_RECORDS: "valid_a_records";
224
242
  readonly NO_A_RECORDS: "no_a_records";
225
243
  readonly INVALID_A_RECORDS: "invalid_a_records";
244
+ readonly ROUTED_TO_MARKETPLACE: "routed_to_marketplace";
226
245
  readonly NX_DOMAIN: "nx_domain";
227
246
  readonly DNS_LOOKUP_ERROR: "dns_lookup_error";
228
247
  };
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.AdminDomainListItemDtoPointsToOurServerReasonEnum = void 0;
16
+ exports.AdminDomainListItemDtoPointsToOurServerReasonEnum = exports.AdminDomainListItemDtoMarketplaceEnum = void 0;
17
17
  exports.instanceOfAdminDomainListItemDto = instanceOfAdminDomainListItemDto;
18
18
  exports.AdminDomainListItemDtoFromJSON = AdminDomainListItemDtoFromJSON;
19
19
  exports.AdminDomainListItemDtoFromJSONTyped = AdminDomainListItemDtoFromJSONTyped;
@@ -26,6 +26,17 @@ var LeaseToOwnConfigurationDto_1 = require("./LeaseToOwnConfigurationDto");
26
26
  var LandingPageSettingsDto_1 = require("./LandingPageSettingsDto");
27
27
  var AccountDto_1 = require("./AccountDto");
28
28
  var DomainLeadPriceNegotiatorAiAgentConfigurationDto_1 = require("./DomainLeadPriceNegotiatorAiAgentConfigurationDto");
29
+ /**
30
+ * @export
31
+ */
32
+ exports.AdminDomainListItemDtoMarketplaceEnum = {
33
+ NAMESHIFT: 'nameshift',
34
+ SEDO: 'sedo',
35
+ AFTERNIC: 'afternic',
36
+ ATOM: 'atom',
37
+ SPACESHIP: 'spaceship',
38
+ NAMECLUB: 'nameclub'
39
+ };
29
40
  /**
30
41
  * @export
31
42
  */
@@ -34,6 +45,7 @@ exports.AdminDomainListItemDtoPointsToOurServerReasonEnum = {
34
45
  VALID_A_RECORDS: 'valid_a_records',
35
46
  NO_A_RECORDS: 'no_a_records',
36
47
  INVALID_A_RECORDS: 'invalid_a_records',
48
+ ROUTED_TO_MARKETPLACE: 'routed_to_marketplace',
37
49
  NX_DOMAIN: 'nx_domain',
38
50
  DNS_LOOKUP_ERROR: 'dns_lookup_error'
39
51
  };
@@ -101,6 +113,8 @@ function instanceOfAdminDomainListItemDto(value) {
101
113
  return false;
102
114
  if (!('showcased' in value) || value['showcased'] === undefined)
103
115
  return false;
116
+ if (!('marketplace' in value) || value['marketplace'] === undefined)
117
+ return false;
104
118
  if (!('account' in value) || value['account'] === undefined)
105
119
  return false;
106
120
  if (!('pointsToOurServerReason' in value) || value['pointsToOurServerReason'] === undefined)
@@ -145,6 +159,7 @@ function AdminDomainListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
145
159
  'isLocked': json['isLocked'],
146
160
  'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
147
161
  'showcased': json['showcased'],
162
+ 'marketplace': json['marketplace'],
148
163
  'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
149
164
  'pointsToOurServerReason': json['pointsToOurServerReason'],
150
165
  };
@@ -188,6 +203,7 @@ function AdminDomainListItemDtoToJSONTyped(value, ignoreDiscriminator) {
188
203
  'isLocked': value['isLocked'],
189
204
  'lockedUntil': (value['lockedUntil'] == null ? null : value['lockedUntil'].toISOString()),
190
205
  'showcased': value['showcased'],
206
+ 'marketplace': value['marketplace'],
191
207
  'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
192
208
  'pointsToOurServerReason': value['pointsToOurServerReason'],
193
209
  };
@@ -0,0 +1,86 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface AdminMarketplaceDto
16
+ */
17
+ export interface AdminMarketplaceDto {
18
+ /**
19
+ * Stable code used to select this marketplace.
20
+ * @type {string}
21
+ * @memberof AdminMarketplaceDto
22
+ */
23
+ code: AdminMarketplaceDtoCodeEnum;
24
+ /**
25
+ * Display name of the marketplace.
26
+ * @type {string}
27
+ * @memberof AdminMarketplaceDto
28
+ */
29
+ name: string;
30
+ /**
31
+ * Whether domains may currently be routed to this marketplace. A marketplace without nameservers cannot be routed to.
32
+ * @type {boolean}
33
+ * @memberof AdminMarketplaceDto
34
+ */
35
+ routable: boolean;
36
+ /**
37
+ * Record type the verification code is published as.
38
+ * @type {string}
39
+ * @memberof AdminMarketplaceDto
40
+ */
41
+ verificationRecordType: string;
42
+ /**
43
+ * Record name the verification code is published at, relative to the domain.
44
+ * @type {string}
45
+ * @memberof AdminMarketplaceDto
46
+ */
47
+ verificationRecordName: string;
48
+ /**
49
+ * An example of the value this marketplace issues, shown so a seller recognises it.
50
+ * @type {string}
51
+ * @memberof AdminMarketplaceDto
52
+ */
53
+ verificationExample: string | null;
54
+ /**
55
+ * Authoritative nameservers queried when resolving a domain routed here.
56
+ * @type {Array<string>}
57
+ * @memberof AdminMarketplaceDto
58
+ */
59
+ nameservers: Array<string>;
60
+ /**
61
+ * Whether the marketplace is enabled.
62
+ * @type {boolean}
63
+ * @memberof AdminMarketplaceDto
64
+ */
65
+ enabled: boolean;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const AdminMarketplaceDtoCodeEnum: {
71
+ readonly NAMESHIFT: "nameshift";
72
+ readonly SEDO: "sedo";
73
+ readonly AFTERNIC: "afternic";
74
+ readonly ATOM: "atom";
75
+ readonly SPACESHIP: "spaceship";
76
+ readonly NAMECLUB: "nameclub";
77
+ };
78
+ export type AdminMarketplaceDtoCodeEnum = typeof AdminMarketplaceDtoCodeEnum[keyof typeof AdminMarketplaceDtoCodeEnum];
79
+ /**
80
+ * Check if a given object implements the AdminMarketplaceDto interface.
81
+ */
82
+ export declare function instanceOfAdminMarketplaceDto(value: object): value is AdminMarketplaceDto;
83
+ export declare function AdminMarketplaceDtoFromJSON(json: any): AdminMarketplaceDto;
84
+ export declare function AdminMarketplaceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminMarketplaceDto;
85
+ export declare function AdminMarketplaceDtoToJSON(json: any): AdminMarketplaceDto;
86
+ export declare function AdminMarketplaceDtoToJSONTyped(value?: AdminMarketplaceDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AdminMarketplaceDtoCodeEnum = void 0;
17
+ exports.instanceOfAdminMarketplaceDto = instanceOfAdminMarketplaceDto;
18
+ exports.AdminMarketplaceDtoFromJSON = AdminMarketplaceDtoFromJSON;
19
+ exports.AdminMarketplaceDtoFromJSONTyped = AdminMarketplaceDtoFromJSONTyped;
20
+ exports.AdminMarketplaceDtoToJSON = AdminMarketplaceDtoToJSON;
21
+ exports.AdminMarketplaceDtoToJSONTyped = AdminMarketplaceDtoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.AdminMarketplaceDtoCodeEnum = {
26
+ NAMESHIFT: 'nameshift',
27
+ SEDO: 'sedo',
28
+ AFTERNIC: 'afternic',
29
+ ATOM: 'atom',
30
+ SPACESHIP: 'spaceship',
31
+ NAMECLUB: 'nameclub'
32
+ };
33
+ /**
34
+ * Check if a given object implements the AdminMarketplaceDto interface.
35
+ */
36
+ function instanceOfAdminMarketplaceDto(value) {
37
+ if (!('code' in value) || value['code'] === undefined)
38
+ return false;
39
+ if (!('name' in value) || value['name'] === undefined)
40
+ return false;
41
+ if (!('routable' in value) || value['routable'] === undefined)
42
+ return false;
43
+ if (!('verificationRecordType' in value) || value['verificationRecordType'] === undefined)
44
+ return false;
45
+ if (!('verificationRecordName' in value) || value['verificationRecordName'] === undefined)
46
+ return false;
47
+ if (!('verificationExample' in value) || value['verificationExample'] === undefined)
48
+ return false;
49
+ if (!('nameservers' in value) || value['nameservers'] === undefined)
50
+ return false;
51
+ if (!('enabled' in value) || value['enabled'] === undefined)
52
+ return false;
53
+ return true;
54
+ }
55
+ function AdminMarketplaceDtoFromJSON(json) {
56
+ return AdminMarketplaceDtoFromJSONTyped(json, false);
57
+ }
58
+ function AdminMarketplaceDtoFromJSONTyped(json, ignoreDiscriminator) {
59
+ if (json == null) {
60
+ return json;
61
+ }
62
+ return {
63
+ 'code': json['code'],
64
+ 'name': json['name'],
65
+ 'routable': json['routable'],
66
+ 'verificationRecordType': json['verificationRecordType'],
67
+ 'verificationRecordName': json['verificationRecordName'],
68
+ 'verificationExample': json['verificationExample'],
69
+ 'nameservers': json['nameservers'],
70
+ 'enabled': json['enabled'],
71
+ };
72
+ }
73
+ function AdminMarketplaceDtoToJSON(json) {
74
+ return AdminMarketplaceDtoToJSONTyped(json, false);
75
+ }
76
+ function AdminMarketplaceDtoToJSONTyped(value, ignoreDiscriminator) {
77
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+ return {
82
+ 'code': value['code'],
83
+ 'name': value['name'],
84
+ 'routable': value['routable'],
85
+ 'verificationRecordType': value['verificationRecordType'],
86
+ 'verificationRecordName': value['verificationRecordName'],
87
+ 'verificationExample': value['verificationExample'],
88
+ 'nameservers': value['nameservers'],
89
+ 'enabled': value['enabled'],
90
+ };
91
+ }
@@ -110,6 +110,7 @@ export type CommissionDtoTypeEnum = typeof CommissionDtoTypeEnum[keyof typeof Co
110
110
  export declare const CommissionDtoSubtypeEnum: {
111
111
  readonly POINTING: "pointing";
112
112
  readonly NOT_POINTING: "not_pointing";
113
+ readonly ROUTED: "routed";
113
114
  readonly MANUAL_LEAD: "manual_lead";
114
115
  readonly AUCTION: "auction";
115
116
  };
@@ -34,6 +34,7 @@ exports.CommissionDtoTypeEnum = {
34
34
  exports.CommissionDtoSubtypeEnum = {
35
35
  POINTING: 'pointing',
36
36
  NOT_POINTING: 'not_pointing',
37
+ ROUTED: 'routed',
37
38
  MANUAL_LEAD: 'manual_lead',
38
39
  AUCTION: 'auction'
39
40
  };
@@ -97,6 +97,7 @@ export type CommissionPayloadInputTypeEnum = typeof CommissionPayloadInputTypeEn
97
97
  export declare const CommissionPayloadInputSubtypeEnum: {
98
98
  readonly POINTING: "pointing";
99
99
  readonly NOT_POINTING: "not_pointing";
100
+ readonly ROUTED: "routed";
100
101
  readonly MANUAL_LEAD: "manual_lead";
101
102
  readonly AUCTION: "auction";
102
103
  };
@@ -33,6 +33,7 @@ exports.CommissionPayloadInputTypeEnum = {
33
33
  exports.CommissionPayloadInputSubtypeEnum = {
34
34
  POINTING: 'pointing',
35
35
  NOT_POINTING: 'not_pointing',
36
+ ROUTED: 'routed',
36
37
  MANUAL_LEAD: 'manual_lead',
37
38
  AUCTION: 'auction'
38
39
  };
@@ -128,6 +128,7 @@ export type CommissionReasonDtoTypeEnum = typeof CommissionReasonDtoTypeEnum[key
128
128
  export declare const CommissionReasonDtoSubtypeEnum: {
129
129
  readonly POINTING: "pointing";
130
130
  readonly NOT_POINTING: "not_pointing";
131
+ readonly ROUTED: "routed";
131
132
  readonly MANUAL_LEAD: "manual_lead";
132
133
  readonly AUCTION: "auction";
133
134
  };
@@ -34,6 +34,7 @@ exports.CommissionReasonDtoTypeEnum = {
34
34
  exports.CommissionReasonDtoSubtypeEnum = {
35
35
  POINTING: 'pointing',
36
36
  NOT_POINTING: 'not_pointing',
37
+ ROUTED: 'routed',
37
38
  MANUAL_LEAD: 'manual_lead',
38
39
  AUCTION: 'auction'
39
40
  };
@@ -109,6 +109,7 @@ export type CommissionSimulationItemInputTypeEnum = typeof CommissionSimulationI
109
109
  export declare const CommissionSimulationItemInputSubtypeEnum: {
110
110
  readonly POINTING: "pointing";
111
111
  readonly NOT_POINTING: "not_pointing";
112
+ readonly ROUTED: "routed";
112
113
  readonly MANUAL_LEAD: "manual_lead";
113
114
  readonly AUCTION: "auction";
114
115
  };
@@ -33,6 +33,7 @@ exports.CommissionSimulationItemInputTypeEnum = {
33
33
  exports.CommissionSimulationItemInputSubtypeEnum = {
34
34
  POINTING: 'pointing',
35
35
  NOT_POINTING: 'not_pointing',
36
+ ROUTED: 'routed',
36
37
  MANUAL_LEAD: 'manual_lead',
37
38
  AUCTION: 'auction'
38
39
  };
@@ -88,6 +88,12 @@ export interface CreateOrderInput {
88
88
  * @memberof CreateOrderInput
89
89
  */
90
90
  selfDeclaredTaxCountry?: string;
91
+ /**
92
+ * Controls payment methods cache refresh. true: force recalculation even if the fingerprint is still valid. false: never refresh payment methods on this update. omit/undefined: refresh only when the cache is missing or the fingerprint changed.
93
+ * @type {boolean}
94
+ * @memberof CreateOrderInput
95
+ */
96
+ forceUpdatePaymentMethods?: boolean;
91
97
  /**
92
98
  * Full domain name to purchase
93
99
  * @type {string}
@@ -47,6 +47,7 @@ function CreateOrderInputFromJSONTyped(json, ignoreDiscriminator) {
47
47
  'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
48
48
  'companyInfo': json['companyInfo'] == null ? undefined : (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoFromJSON)(json['companyInfo']),
49
49
  'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
50
+ 'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
50
51
  'domainName': json['domainName'],
51
52
  'leadId': json['leadId'] == null ? undefined : json['leadId'],
52
53
  'affiliateId': json['affiliateId'] == null ? undefined : json['affiliateId'],
@@ -73,6 +74,7 @@ function CreateOrderInputToJSONTyped(value, ignoreDiscriminator) {
73
74
  'addressCity': value['addressCity'],
74
75
  'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoToJSON)(value['companyInfo']),
75
76
  'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
77
+ 'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
76
78
  'domainName': value['domainName'],
77
79
  'leadId': value['leadId'],
78
80
  'affiliateId': value['affiliateId'],
@@ -101,6 +101,12 @@ export interface CreateSubscriptionInput {
101
101
  * @memberof CreateSubscriptionInput
102
102
  */
103
103
  selfDeclaredTaxCountry?: string;
104
+ /**
105
+ * Controls payment methods cache refresh. true: force recalculation even if the fingerprint is still valid. false: never refresh payment methods on this update. omit/undefined: refresh only when the cache is missing or the fingerprint changed.
106
+ * @type {boolean}
107
+ * @memberof CreateSubscriptionInput
108
+ */
109
+ forceUpdatePaymentMethods?: boolean;
104
110
  /**
105
111
  * Full domain name for the subscription
106
112
  * @type {string}
@@ -60,6 +60,7 @@ function CreateSubscriptionInputFromJSONTyped(json, ignoreDiscriminator) {
60
60
  'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
61
61
  'companyInfo': json['companyInfo'] == null ? undefined : (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoFromJSON)(json['companyInfo']),
62
62
  'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
63
+ 'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
63
64
  'domainName': json['domainName'],
64
65
  'subscriptionType': json['subscriptionType'],
65
66
  'affiliateId': json['affiliateId'] == null ? undefined : json['affiliateId'],
@@ -88,6 +89,7 @@ function CreateSubscriptionInputToJSONTyped(value, ignoreDiscriminator) {
88
89
  'addressCity': value['addressCity'],
89
90
  'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoToJSON)(value['companyInfo']),
90
91
  'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
92
+ 'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
91
93
  'domainName': value['domainName'],
92
94
  'subscriptionType': value['subscriptionType'],
93
95
  'affiliateId': value['affiliateId'],
@@ -88,6 +88,7 @@ export declare const FeatureFlagListItemDtoNameEnum: {
88
88
  readonly USE_MAILER_FALLBACK_URL: "USE_MAILER_FALLBACK_URL";
89
89
  readonly USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: "USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST";
90
90
  readonly AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: "AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD";
91
+ readonly MARKETPLACE_ROUTING: "MARKETPLACE_ROUTING";
91
92
  };
92
93
  export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
93
94
  /**
@@ -48,7 +48,8 @@ exports.FeatureFlagListItemDtoNameEnum = {
48
48
  ALLOW_FREE_SETUP_CUSTOM_INITIAL_PRICE: 'ALLOW_FREE_SETUP_CUSTOM_INITIAL_PRICE',
49
49
  USE_MAILER_FALLBACK_URL: 'USE_MAILER_FALLBACK_URL',
50
50
  USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: 'USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST',
51
- AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD'
51
+ AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
52
+ MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING'
52
53
  };
53
54
  /**
54
55
  * Check if a given object implements the FeatureFlagListItemDto interface.
@@ -131,6 +131,7 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
131
131
  readonly USE_MAILER_FALLBACK_URL: "USE_MAILER_FALLBACK_URL";
132
132
  readonly USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: "USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST";
133
133
  readonly AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: "AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD";
134
+ readonly MARKETPLACE_ROUTING: "MARKETPLACE_ROUTING";
134
135
  };
135
136
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
136
137
  /**
@@ -55,7 +55,8 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
55
55
  ALLOW_FREE_SETUP_CUSTOM_INITIAL_PRICE: 'ALLOW_FREE_SETUP_CUSTOM_INITIAL_PRICE',
56
56
  USE_MAILER_FALLBACK_URL: 'USE_MAILER_FALLBACK_URL',
57
57
  USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: 'USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST',
58
- AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD'
58
+ AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
59
+ MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING'
59
60
  };
60
61
  /**
61
62
  * Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
@@ -202,6 +202,12 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
202
202
  * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
203
203
  */
204
204
  showcased: boolean;
205
+ /**
206
+ * Marketplace this domain resolves to on our nameservers, overriding the account default. Null means the account default applies; "nameshift" means the domain opts out of it and stays on our own landing page.
207
+ * @type {string}
208
+ * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
209
+ */
210
+ marketplace: IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoMarketplaceEnum | null;
205
211
  /**
206
212
  * Account that owns the domain.
207
213
  * @type {AccountDto}
@@ -215,6 +221,18 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
215
221
  */
216
222
  hasAuction: boolean;
217
223
  }
224
+ /**
225
+ * @export
226
+ */
227
+ export declare const IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoMarketplaceEnum: {
228
+ readonly NAMESHIFT: "nameshift";
229
+ readonly SEDO: "sedo";
230
+ readonly AFTERNIC: "afternic";
231
+ readonly ATOM: "atom";
232
+ readonly SPACESHIP: "spaceship";
233
+ readonly NAMECLUB: "nameclub";
234
+ };
235
+ export type IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoMarketplaceEnum = typeof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoMarketplaceEnum[keyof typeof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoMarketplaceEnum];
218
236
  /**
219
237
  * Check if a given object implements the IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto interface.
220
238
  */
@@ -13,6 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoMarketplaceEnum = void 0;
16
17
  exports.instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto = instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto;
17
18
  exports.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON = IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON;
18
19
  exports.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped = IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped;
@@ -25,6 +26,17 @@ var LeaseToOwnConfigurationDto_1 = require("./LeaseToOwnConfigurationDto");
25
26
  var LandingPageSettingsDto_1 = require("./LandingPageSettingsDto");
26
27
  var AccountDto_1 = require("./AccountDto");
27
28
  var DomainLeadPriceNegotiatorAiAgentConfigurationDto_1 = require("./DomainLeadPriceNegotiatorAiAgentConfigurationDto");
29
+ /**
30
+ * @export
31
+ */
32
+ exports.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoMarketplaceEnum = {
33
+ NAMESHIFT: 'nameshift',
34
+ SEDO: 'sedo',
35
+ AFTERNIC: 'afternic',
36
+ ATOM: 'atom',
37
+ SPACESHIP: 'spaceship',
38
+ NAMECLUB: 'nameclub'
39
+ };
28
40
  /**
29
41
  * Check if a given object implements the IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto interface.
30
42
  */
@@ -89,6 +101,8 @@ function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(value)
89
101
  return false;
90
102
  if (!('showcased' in value) || value['showcased'] === undefined)
91
103
  return false;
104
+ if (!('marketplace' in value) || value['marketplace'] === undefined)
105
+ return false;
92
106
  if (!('account' in value) || value['account'] === undefined)
93
107
  return false;
94
108
  if (!('hasAuction' in value) || value['hasAuction'] === undefined)
@@ -133,6 +147,7 @@ function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped(json
133
147
  'isLocked': json['isLocked'],
134
148
  'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
135
149
  'showcased': json['showcased'],
150
+ 'marketplace': json['marketplace'],
136
151
  'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
137
152
  'hasAuction': json['hasAuction'],
138
153
  };
@@ -176,6 +191,7 @@ function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped(value,
176
191
  'isLocked': value['isLocked'],
177
192
  'lockedUntil': (value['lockedUntil'] == null ? null : value['lockedUntil'].toISOString()),
178
193
  'showcased': value['showcased'],
194
+ 'marketplace': value['marketplace'],
179
195
  'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
180
196
  'hasAuction': value['hasAuction'],
181
197
  };
@@ -202,6 +202,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
202
202
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
203
203
  */
204
204
  showcased: boolean;
205
+ /**
206
+ * Marketplace this domain resolves to on our nameservers, overriding the account default. Null means the account default applies; "nameshift" means the domain opts out of it and stays on our own landing page.
207
+ * @type {string}
208
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
209
+ */
210
+ marketplace: IntersectionDomainDtoWithHijackerDtoWithAccountDtoMarketplaceEnum | null;
205
211
  /**
206
212
  * Account managing the domain on behalf of the owner, when a hijacker is assigned.
207
213
  * @type {AccountDto}
@@ -215,6 +221,18 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
215
221
  */
216
222
  account: AccountDto;
217
223
  }
224
+ /**
225
+ * @export
226
+ */
227
+ export declare const IntersectionDomainDtoWithHijackerDtoWithAccountDtoMarketplaceEnum: {
228
+ readonly NAMESHIFT: "nameshift";
229
+ readonly SEDO: "sedo";
230
+ readonly AFTERNIC: "afternic";
231
+ readonly ATOM: "atom";
232
+ readonly SPACESHIP: "spaceship";
233
+ readonly NAMECLUB: "nameclub";
234
+ };
235
+ export type IntersectionDomainDtoWithHijackerDtoWithAccountDtoMarketplaceEnum = typeof IntersectionDomainDtoWithHijackerDtoWithAccountDtoMarketplaceEnum[keyof typeof IntersectionDomainDtoWithHijackerDtoWithAccountDtoMarketplaceEnum];
218
236
  /**
219
237
  * Check if a given object implements the IntersectionDomainDtoWithHijackerDtoWithAccountDto interface.
220
238
  */