@randock/nameshift-api-client 0.0.448 → 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 (162) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +3 -3
  3. package/dist/apis/APIKeysApi.d.ts +78 -0
  4. package/dist/apis/APIKeysApi.js +354 -0
  5. package/dist/apis/AccountsApi.d.ts +36 -36
  6. package/dist/apis/AccountsApi.js +360 -216
  7. package/dist/apis/AdminApi.d.ts +37 -1
  8. package/dist/apis/AdminApi.js +122 -1
  9. package/dist/apis/AuctionsApi.d.ts +4 -4
  10. package/dist/apis/AuctionsApi.js +40 -24
  11. package/dist/apis/BankAccountsApi.d.ts +10 -10
  12. package/dist/apis/BankAccountsApi.js +100 -60
  13. package/dist/apis/ChallengesApi.d.ts +6 -6
  14. package/dist/apis/ChallengesApi.js +60 -36
  15. package/dist/apis/DomainTransfersApi.d.ts +2 -2
  16. package/dist/apis/DomainTransfersApi.js +20 -12
  17. package/dist/apis/DomainsApi.d.ts +44 -44
  18. package/dist/apis/DomainsApi.js +440 -264
  19. package/dist/apis/EppApi.d.ts +2 -2
  20. package/dist/apis/EppApi.js +20 -12
  21. package/dist/apis/InvoicesApi.d.ts +6 -6
  22. package/dist/apis/InvoicesApi.js +60 -36
  23. package/dist/apis/LeadsApi.d.ts +38 -38
  24. package/dist/apis/LeadsApi.js +380 -228
  25. package/dist/apis/MarketplacesApi.d.ts +89 -0
  26. package/dist/apis/MarketplacesApi.js +332 -0
  27. package/dist/apis/NotificationsApi.d.ts +8 -8
  28. package/dist/apis/NotificationsApi.js +80 -48
  29. package/dist/apis/StatsApi.d.ts +14 -14
  30. package/dist/apis/StatsApi.js +140 -84
  31. package/dist/apis/SubscriptionsApi.d.ts +2 -2
  32. package/dist/apis/SubscriptionsApi.js +20 -12
  33. package/dist/apis/TasksApi.d.ts +6 -6
  34. package/dist/apis/TasksApi.js +60 -36
  35. package/dist/apis/UsersApi.d.ts +10 -10
  36. package/dist/apis/UsersApi.js +100 -60
  37. package/dist/apis/index.d.ts +2 -0
  38. package/dist/apis/index.js +2 -0
  39. package/dist/models/AccountMarketplaceDto.d.ts +56 -0
  40. package/dist/models/AccountMarketplaceDto.js +71 -0
  41. package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +1 -0
  42. package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +1 -0
  43. package/dist/models/AccountNameshiftCommissionItemDto.d.ts +1 -0
  44. package/dist/models/AccountNameshiftCommissionItemDto.js +1 -0
  45. package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +1 -0
  46. package/dist/models/AccountNameshiftCommissionReasonDto.js +1 -0
  47. package/dist/models/AccountSettingsDto.d.ts +18 -0
  48. package/dist/models/AccountSettingsDto.js +16 -0
  49. package/dist/models/AccountSettingsInput.d.ts +18 -0
  50. package/dist/models/AccountSettingsInput.js +14 -0
  51. package/dist/models/AdminDomainListItemDto.d.ts +19 -0
  52. package/dist/models/AdminDomainListItemDto.js +17 -1
  53. package/dist/models/AdminMarketplaceDto.d.ts +86 -0
  54. package/dist/models/AdminMarketplaceDto.js +91 -0
  55. package/dist/models/ApiKeyDto.d.ts +107 -0
  56. package/dist/models/ApiKeyDto.js +114 -0
  57. package/dist/models/ApiKeyScopeDto.d.ts +83 -0
  58. package/dist/models/ApiKeyScopeDto.js +98 -0
  59. package/dist/models/CommissionDto.d.ts +1 -0
  60. package/dist/models/CommissionDto.js +1 -0
  61. package/dist/models/CommissionPayloadInput.d.ts +1 -0
  62. package/dist/models/CommissionPayloadInput.js +1 -0
  63. package/dist/models/CommissionReasonDto.d.ts +1 -0
  64. package/dist/models/CommissionReasonDto.js +1 -0
  65. package/dist/models/CommissionSimulationItemInput.d.ts +1 -0
  66. package/dist/models/CommissionSimulationItemInput.js +1 -0
  67. package/dist/models/CreateApiKeyInput.d.ts +83 -0
  68. package/dist/models/CreateApiKeyInput.js +96 -0
  69. package/dist/models/CreateOrderInput.d.ts +6 -0
  70. package/dist/models/CreateOrderInput.js +2 -0
  71. package/dist/models/CreateSubscriptionInput.d.ts +6 -0
  72. package/dist/models/CreateSubscriptionInput.js +2 -0
  73. package/dist/models/CreatedApiKeyDto.d.ts +113 -0
  74. package/dist/models/CreatedApiKeyDto.js +118 -0
  75. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  76. package/dist/models/FeatureFlagListItemDto.js +2 -1
  77. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  78. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  79. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +18 -0
  80. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +16 -0
  81. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +18 -0
  82. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +16 -0
  83. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +18 -0
  84. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +16 -0
  85. package/dist/models/MarketplaceDto.d.ts +74 -0
  86. package/dist/models/MarketplaceDto.js +83 -0
  87. package/dist/models/OrderDto.d.ts +7 -1
  88. package/dist/models/OrderDto.js +4 -0
  89. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  90. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  91. package/dist/models/SetAccountMarketplaceInput.d.ts +32 -0
  92. package/dist/models/SetAccountMarketplaceInput.js +51 -0
  93. package/dist/models/SimulateCommissionInput.d.ts +1 -0
  94. package/dist/models/SimulateCommissionInput.js +1 -0
  95. package/dist/models/SubscriptionDto.d.ts +7 -1
  96. package/dist/models/SubscriptionDto.js +4 -0
  97. package/dist/models/UpdateApiKeyInput.d.ts +77 -0
  98. package/dist/models/UpdateApiKeyInput.js +90 -0
  99. package/dist/models/UpdateDomainInput.d.ts +18 -0
  100. package/dist/models/UpdateDomainInput.js +14 -0
  101. package/dist/models/UpdateMarketplaceInput.d.ts +44 -0
  102. package/dist/models/UpdateMarketplaceInput.js +53 -0
  103. package/dist/models/UpdateOrderInput.d.ts +6 -0
  104. package/dist/models/UpdateOrderInput.js +2 -0
  105. package/dist/models/UpdateSubscriptionInput.d.ts +6 -0
  106. package/dist/models/UpdateSubscriptionInput.js +2 -0
  107. package/dist/models/index.d.ts +10 -0
  108. package/dist/models/index.js +10 -0
  109. package/package.json +1 -1
  110. package/src/apis/APIKeysApi.ts +271 -0
  111. package/src/apis/AccountsApi.ts +108 -36
  112. package/src/apis/AdminApi.ts +112 -0
  113. package/src/apis/AuctionsApi.ts +12 -4
  114. package/src/apis/BankAccountsApi.ts +30 -10
  115. package/src/apis/ChallengesApi.ts +18 -6
  116. package/src/apis/DomainTransfersApi.ts +6 -2
  117. package/src/apis/DomainsApi.ts +132 -44
  118. package/src/apis/EppApi.ts +6 -2
  119. package/src/apis/InvoicesApi.ts +18 -6
  120. package/src/apis/LeadsApi.ts +114 -38
  121. package/src/apis/MarketplacesApi.ts +240 -0
  122. package/src/apis/NotificationsApi.ts +24 -8
  123. package/src/apis/StatsApi.ts +42 -14
  124. package/src/apis/SubscriptionsApi.ts +6 -2
  125. package/src/apis/TasksApi.ts +18 -6
  126. package/src/apis/UsersApi.ts +30 -10
  127. package/src/apis/index.ts +2 -0
  128. package/src/models/AccountMarketplaceDto.ts +99 -0
  129. package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +1 -0
  130. package/src/models/AccountNameshiftCommissionItemDto.ts +1 -0
  131. package/src/models/AccountNameshiftCommissionReasonDto.ts +1 -0
  132. package/src/models/AccountSettingsDto.ts +24 -0
  133. package/src/models/AccountSettingsInput.ts +23 -0
  134. package/src/models/AdminDomainListItemDto.ts +23 -0
  135. package/src/models/AdminMarketplaceDto.ts +144 -0
  136. package/src/models/ApiKeyDto.ts +162 -0
  137. package/src/models/ApiKeyScopeDto.ts +126 -0
  138. package/src/models/CommissionDto.ts +1 -0
  139. package/src/models/CommissionPayloadInput.ts +1 -0
  140. package/src/models/CommissionReasonDto.ts +1 -0
  141. package/src/models/CommissionSimulationItemInput.ts +1 -0
  142. package/src/models/CreateApiKeyInput.ts +125 -0
  143. package/src/models/CreateOrderInput.ts +8 -0
  144. package/src/models/CreateSubscriptionInput.ts +8 -0
  145. package/src/models/CreatedApiKeyDto.ts +171 -0
  146. package/src/models/FeatureFlagListItemDto.ts +2 -1
  147. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  148. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +24 -0
  149. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +24 -0
  150. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +24 -0
  151. package/src/models/MarketplaceDto.ts +126 -0
  152. package/src/models/OrderDto.ts +10 -1
  153. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  154. package/src/models/SetAccountMarketplaceInput.ts +66 -0
  155. package/src/models/SimulateCommissionInput.ts +1 -0
  156. package/src/models/SubscriptionDto.ts +10 -1
  157. package/src/models/UpdateApiKeyInput.ts +115 -0
  158. package/src/models/UpdateDomainInput.ts +23 -0
  159. package/src/models/UpdateMarketplaceInput.ts +81 -0
  160. package/src/models/UpdateOrderInput.ts +8 -0
  161. package/src/models/UpdateSubscriptionInput.ts +8 -0
  162. package/src/models/index.ts +10 -0
@@ -0,0 +1,56 @@
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 AccountMarketplaceDto
16
+ */
17
+ export interface AccountMarketplaceDto {
18
+ /**
19
+ * The marketplace this link is for.
20
+ * @type {string}
21
+ * @memberof AccountMarketplaceDto
22
+ */
23
+ code: AccountMarketplaceDtoCodeEnum;
24
+ /**
25
+ * Display name of the marketplace.
26
+ * @type {string}
27
+ * @memberof AccountMarketplaceDto
28
+ */
29
+ name: string;
30
+ /**
31
+ * The value this marketplace issued the account. Published for every domain of the account, whichever marketplace each domain is routed to, so the account stays verified everywhere.
32
+ * @type {string}
33
+ * @memberof AccountMarketplaceDto
34
+ */
35
+ verificationCode: string | null;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const AccountMarketplaceDtoCodeEnum: {
41
+ readonly NAMESHIFT: "nameshift";
42
+ readonly SEDO: "sedo";
43
+ readonly AFTERNIC: "afternic";
44
+ readonly ATOM: "atom";
45
+ readonly SPACESHIP: "spaceship";
46
+ readonly NAMECLUB: "nameclub";
47
+ };
48
+ export type AccountMarketplaceDtoCodeEnum = typeof AccountMarketplaceDtoCodeEnum[keyof typeof AccountMarketplaceDtoCodeEnum];
49
+ /**
50
+ * Check if a given object implements the AccountMarketplaceDto interface.
51
+ */
52
+ export declare function instanceOfAccountMarketplaceDto(value: object): value is AccountMarketplaceDto;
53
+ export declare function AccountMarketplaceDtoFromJSON(json: any): AccountMarketplaceDto;
54
+ export declare function AccountMarketplaceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountMarketplaceDto;
55
+ export declare function AccountMarketplaceDtoToJSON(json: any): AccountMarketplaceDto;
56
+ export declare function AccountMarketplaceDtoToJSONTyped(value?: AccountMarketplaceDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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.AccountMarketplaceDtoCodeEnum = void 0;
17
+ exports.instanceOfAccountMarketplaceDto = instanceOfAccountMarketplaceDto;
18
+ exports.AccountMarketplaceDtoFromJSON = AccountMarketplaceDtoFromJSON;
19
+ exports.AccountMarketplaceDtoFromJSONTyped = AccountMarketplaceDtoFromJSONTyped;
20
+ exports.AccountMarketplaceDtoToJSON = AccountMarketplaceDtoToJSON;
21
+ exports.AccountMarketplaceDtoToJSONTyped = AccountMarketplaceDtoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.AccountMarketplaceDtoCodeEnum = {
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 AccountMarketplaceDto interface.
35
+ */
36
+ function instanceOfAccountMarketplaceDto(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 (!('verificationCode' in value) || value['verificationCode'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function AccountMarketplaceDtoFromJSON(json) {
46
+ return AccountMarketplaceDtoFromJSONTyped(json, false);
47
+ }
48
+ function AccountMarketplaceDtoFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'code': json['code'],
54
+ 'name': json['name'],
55
+ 'verificationCode': json['verificationCode'],
56
+ };
57
+ }
58
+ function AccountMarketplaceDtoToJSON(json) {
59
+ return AccountMarketplaceDtoToJSONTyped(json, false);
60
+ }
61
+ function AccountMarketplaceDtoToJSONTyped(value, ignoreDiscriminator) {
62
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'code': value['code'],
68
+ 'name': value['name'],
69
+ 'verificationCode': value['verificationCode'],
70
+ };
71
+ }
@@ -47,6 +47,7 @@ export interface AccountNameshiftCommissionBySubtypeDto {
47
47
  export declare const AccountNameshiftCommissionBySubtypeDtoSubtypeEnum: {
48
48
  readonly POINTING: "pointing";
49
49
  readonly NOT_POINTING: "not_pointing";
50
+ readonly ROUTED: "routed";
50
51
  readonly MANUAL_LEAD: "manual_lead";
51
52
  readonly AUCTION: "auction";
52
53
  };
@@ -26,6 +26,7 @@ var CommissionReasonDto_1 = require("./CommissionReasonDto");
26
26
  exports.AccountNameshiftCommissionBySubtypeDtoSubtypeEnum = {
27
27
  POINTING: 'pointing',
28
28
  NOT_POINTING: 'not_pointing',
29
+ ROUTED: 'routed',
29
30
  MANUAL_LEAD: 'manual_lead',
30
31
  AUCTION: 'auction'
31
32
  };
@@ -71,6 +71,7 @@ export interface AccountNameshiftCommissionItemDto {
71
71
  export declare const AccountNameshiftCommissionItemDtoSubtypeEnum: {
72
72
  readonly POINTING: "pointing";
73
73
  readonly NOT_POINTING: "not_pointing";
74
+ readonly ROUTED: "routed";
74
75
  readonly MANUAL_LEAD: "manual_lead";
75
76
  readonly AUCTION: "auction";
76
77
  };
@@ -26,6 +26,7 @@ var CommissionConfigurationDto_1 = require("./CommissionConfigurationDto");
26
26
  exports.AccountNameshiftCommissionItemDtoSubtypeEnum = {
27
27
  POINTING: 'pointing',
28
28
  NOT_POINTING: 'not_pointing',
29
+ ROUTED: 'routed',
29
30
  MANUAL_LEAD: 'manual_lead',
30
31
  AUCTION: 'auction'
31
32
  };
@@ -110,6 +110,7 @@ export type AccountNameshiftCommissionReasonDtoTypeEnum = typeof AccountNameshif
110
110
  export declare const AccountNameshiftCommissionReasonDtoSubtypeEnum: {
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.AccountNameshiftCommissionReasonDtoTypeEnum = {
34
34
  exports.AccountNameshiftCommissionReasonDtoSubtypeEnum = {
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
  };
@@ -101,7 +101,25 @@ export interface AccountSettingsDto {
101
101
  * @memberof AccountSettingsDto
102
102
  */
103
103
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
104
+ /**
105
+ * Default marketplace the account's domains resolve to on our nameservers. Null serves our own landing page. Individual domains may override it.
106
+ * @type {string}
107
+ * @memberof AccountSettingsDto
108
+ */
109
+ marketplace: AccountSettingsDtoMarketplaceEnum | null;
104
110
  }
111
+ /**
112
+ * @export
113
+ */
114
+ export declare const AccountSettingsDtoMarketplaceEnum: {
115
+ readonly NAMESHIFT: "nameshift";
116
+ readonly SEDO: "sedo";
117
+ readonly AFTERNIC: "afternic";
118
+ readonly ATOM: "atom";
119
+ readonly SPACESHIP: "spaceship";
120
+ readonly NAMECLUB: "nameclub";
121
+ };
122
+ export type AccountSettingsDtoMarketplaceEnum = typeof AccountSettingsDtoMarketplaceEnum[keyof typeof AccountSettingsDtoMarketplaceEnum];
105
123
  /**
106
124
  * Check if a given object implements the AccountSettingsDto interface.
107
125
  */
@@ -13,6 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AccountSettingsDtoMarketplaceEnum = void 0;
16
17
  exports.instanceOfAccountSettingsDto = instanceOfAccountSettingsDto;
17
18
  exports.AccountSettingsDtoFromJSON = AccountSettingsDtoFromJSON;
18
19
  exports.AccountSettingsDtoFromJSONTyped = AccountSettingsDtoFromJSONTyped;
@@ -26,6 +27,17 @@ var LeadOfferExpirationConfigurationDto_1 = require("./LeadOfferExpirationConfig
26
27
  var LandingPageSettingsDto_1 = require("./LandingPageSettingsDto");
27
28
  var DomainLockConfigurationDto_1 = require("./DomainLockConfigurationDto");
28
29
  var AccountSettingsRentConfigurationDto_1 = require("./AccountSettingsRentConfigurationDto");
30
+ /**
31
+ * @export
32
+ */
33
+ exports.AccountSettingsDtoMarketplaceEnum = {
34
+ NAMESHIFT: 'nameshift',
35
+ SEDO: 'sedo',
36
+ AFTERNIC: 'afternic',
37
+ ATOM: 'atom',
38
+ SPACESHIP: 'spaceship',
39
+ NAMECLUB: 'nameclub'
40
+ };
29
41
  /**
30
42
  * Check if a given object implements the AccountSettingsDto interface.
31
43
  */
@@ -56,6 +68,8 @@ function instanceOfAccountSettingsDto(value) {
56
68
  return false;
57
69
  if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined)
58
70
  return false;
71
+ if (!('marketplace' in value) || value['marketplace'] === undefined)
72
+ return false;
59
73
  return true;
60
74
  }
61
75
  function AccountSettingsDtoFromJSON(json) {
@@ -79,6 +93,7 @@ function AccountSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
79
93
  'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'],
80
94
  'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoFromJSON)(json['domainLockConfiguration']),
81
95
  'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoFromJSON)(json['leadOfferExpirationConfiguration']),
96
+ 'marketplace': json['marketplace'],
82
97
  };
83
98
  }
84
99
  function AccountSettingsDtoToJSON(json) {
@@ -103,5 +118,6 @@ function AccountSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
103
118
  'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
104
119
  'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoToJSON)(value['domainLockConfiguration']),
105
120
  'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoToJSON)(value['leadOfferExpirationConfiguration']),
121
+ 'marketplace': value['marketplace'],
106
122
  };
107
123
  }
@@ -40,6 +40,12 @@ export interface AccountSettingsInput {
40
40
  * @memberof AccountSettingsInput
41
41
  */
42
42
  sidnIdcode?: string | null;
43
+ /**
44
+ * Default marketplace the account's domains resolve to on our nameservers. Null or "nameshift" serves our own landing page. Individual domains may override this.
45
+ * @type {string}
46
+ * @memberof AccountSettingsInput
47
+ */
48
+ marketplace?: AccountSettingsInputMarketplaceEnum | null;
43
49
  /**
44
50
  * Default landing page settings for the account
45
51
  * @type {LandingPageInput}
@@ -107,6 +113,18 @@ export interface AccountSettingsInput {
107
113
  */
108
114
  leadOfferExpirationConfiguration?: LockConfigurationInput;
109
115
  }
116
+ /**
117
+ * @export
118
+ */
119
+ export declare const AccountSettingsInputMarketplaceEnum: {
120
+ readonly NAMESHIFT: "nameshift";
121
+ readonly SEDO: "sedo";
122
+ readonly AFTERNIC: "afternic";
123
+ readonly ATOM: "atom";
124
+ readonly SPACESHIP: "spaceship";
125
+ readonly NAMECLUB: "nameclub";
126
+ };
127
+ export type AccountSettingsInputMarketplaceEnum = typeof AccountSettingsInputMarketplaceEnum[keyof typeof AccountSettingsInputMarketplaceEnum];
110
128
  /**
111
129
  * Check if a given object implements the AccountSettingsInput interface.
112
130
  */
@@ -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
+ }