@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
@@ -0,0 +1,332 @@
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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.SetAccountMarketplaceCodeEnum = exports.DeleteAccountMarketplaceCodeEnum = exports.MarketplacesApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var MarketplacesApi = /** @class */ (function (_super) {
74
+ __extends(MarketplacesApi, _super);
75
+ function MarketplacesApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Removes the link and stops publishing its code. Domains routed to this marketplace keep their setting and fall back to our own landing page until the link is restored. **API key scope required:** `ACCOUNT_WRITE`. Requests authenticated with a seller session do not need any scope.
80
+ * Remove the account marketplace link
81
+ */
82
+ MarketplacesApi.prototype.deleteAccountMarketplaceRaw = function (requestParameters, initOverrides) {
83
+ return __awaiter(this, void 0, void 0, function () {
84
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
85
+ return __generator(this, function (_c) {
86
+ switch (_c.label) {
87
+ case 0:
88
+ if (requestParameters['code'] == null) {
89
+ throw new runtime.RequiredError('code', 'Required parameter "code" was null or undefined when calling deleteAccountMarketplace().');
90
+ }
91
+ queryParameters = {};
92
+ headerParameters = {};
93
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
94
+ _a = headerParameters;
95
+ _b = "apikey";
96
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
97
+ case 1:
98
+ _a[_b] = _c.sent(); // api_key authentication
99
+ _c.label = 2;
100
+ case 2:
101
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
102
+ token = this.configuration.accessToken;
103
+ return [4 /*yield*/, token("bearer", [])];
104
+ case 3:
105
+ tokenString = _c.sent();
106
+ if (tokenString) {
107
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
108
+ }
109
+ _c.label = 4;
110
+ case 4: return [4 /*yield*/, this.request({
111
+ path: "/private/marketplaces/{code}".replace("{".concat("code", "}"), encodeURIComponent(String(requestParameters['code']))),
112
+ method: 'DELETE',
113
+ headers: headerParameters,
114
+ query: queryParameters,
115
+ }, initOverrides)];
116
+ case 5:
117
+ response = _c.sent();
118
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
119
+ }
120
+ });
121
+ });
122
+ };
123
+ /**
124
+ * Removes the link and stops publishing its code. Domains routed to this marketplace keep their setting and fall back to our own landing page until the link is restored. **API key scope required:** `ACCOUNT_WRITE`. Requests authenticated with a seller session do not need any scope.
125
+ * Remove the account marketplace link
126
+ */
127
+ MarketplacesApi.prototype.deleteAccountMarketplace = function (requestParameters, initOverrides) {
128
+ return __awaiter(this, void 0, void 0, function () {
129
+ return __generator(this, function (_a) {
130
+ switch (_a.label) {
131
+ case 0: return [4 /*yield*/, this.deleteAccountMarketplaceRaw(requestParameters, initOverrides)];
132
+ case 1:
133
+ _a.sent();
134
+ return [2 /*return*/];
135
+ }
136
+ });
137
+ });
138
+ };
139
+ /**
140
+ * Returns the marketplaces this account is linked to, together with the code published for every domain of the account. **API key scope required:** `ACCOUNT_READ`. Requests authenticated with a seller session do not need any scope.
141
+ * List the account marketplace links
142
+ */
143
+ MarketplacesApi.prototype.listAccountMarketplacesRaw = function (initOverrides) {
144
+ return __awaiter(this, void 0, void 0, function () {
145
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
146
+ return __generator(this, function (_c) {
147
+ switch (_c.label) {
148
+ case 0:
149
+ queryParameters = {};
150
+ headerParameters = {};
151
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
152
+ _a = headerParameters;
153
+ _b = "apikey";
154
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
155
+ case 1:
156
+ _a[_b] = _c.sent(); // api_key authentication
157
+ _c.label = 2;
158
+ case 2:
159
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
160
+ token = this.configuration.accessToken;
161
+ return [4 /*yield*/, token("bearer", [])];
162
+ case 3:
163
+ tokenString = _c.sent();
164
+ if (tokenString) {
165
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
166
+ }
167
+ _c.label = 4;
168
+ case 4: return [4 /*yield*/, this.request({
169
+ path: "/private/marketplaces",
170
+ method: 'GET',
171
+ headers: headerParameters,
172
+ query: queryParameters,
173
+ }, initOverrides)];
174
+ case 5:
175
+ response = _c.sent();
176
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.AccountMarketplaceDtoFromJSON); })];
177
+ }
178
+ });
179
+ });
180
+ };
181
+ /**
182
+ * Returns the marketplaces this account is linked to, together with the code published for every domain of the account. **API key scope required:** `ACCOUNT_READ`. Requests authenticated with a seller session do not need any scope.
183
+ * List the account marketplace links
184
+ */
185
+ MarketplacesApi.prototype.listAccountMarketplaces = function (initOverrides) {
186
+ return __awaiter(this, void 0, void 0, function () {
187
+ var response;
188
+ return __generator(this, function (_a) {
189
+ switch (_a.label) {
190
+ case 0: return [4 /*yield*/, this.listAccountMarketplacesRaw(initOverrides)];
191
+ case 1:
192
+ response = _a.sent();
193
+ return [4 /*yield*/, response.value()];
194
+ case 2: return [2 /*return*/, _a.sent()];
195
+ }
196
+ });
197
+ });
198
+ };
199
+ /**
200
+ * Returns the marketplaces a domain can be routed to while staying on our nameservers. Disabled marketplaces are omitted.
201
+ * List routable marketplaces
202
+ */
203
+ MarketplacesApi.prototype.listMarketplacesRaw = function (initOverrides) {
204
+ return __awaiter(this, void 0, void 0, function () {
205
+ var queryParameters, headerParameters, response;
206
+ return __generator(this, function (_a) {
207
+ switch (_a.label) {
208
+ case 0:
209
+ queryParameters = {};
210
+ headerParameters = {};
211
+ return [4 /*yield*/, this.request({
212
+ path: "/marketplaces",
213
+ method: 'GET',
214
+ headers: headerParameters,
215
+ query: queryParameters,
216
+ }, initOverrides)];
217
+ case 1:
218
+ response = _a.sent();
219
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.MarketplaceDtoFromJSON); })];
220
+ }
221
+ });
222
+ });
223
+ };
224
+ /**
225
+ * Returns the marketplaces a domain can be routed to while staying on our nameservers. Disabled marketplaces are omitted.
226
+ * List routable marketplaces
227
+ */
228
+ MarketplacesApi.prototype.listMarketplaces = function (initOverrides) {
229
+ return __awaiter(this, void 0, void 0, function () {
230
+ var response;
231
+ return __generator(this, function (_a) {
232
+ switch (_a.label) {
233
+ case 0: return [4 /*yield*/, this.listMarketplacesRaw(initOverrides)];
234
+ case 1:
235
+ response = _a.sent();
236
+ return [4 /*yield*/, response.value()];
237
+ case 2: return [2 /*return*/, _a.sent()];
238
+ }
239
+ });
240
+ });
241
+ };
242
+ /**
243
+ * Creates or replaces the link between this account and a marketplace, storing the code it must publish to stay verified there. **API key scope required:** `ACCOUNT_WRITE`. Requests authenticated with a seller session do not need any scope.
244
+ * Link the account to a marketplace
245
+ */
246
+ MarketplacesApi.prototype.setAccountMarketplaceRaw = function (requestParameters, initOverrides) {
247
+ return __awaiter(this, void 0, void 0, function () {
248
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
249
+ return __generator(this, function (_c) {
250
+ switch (_c.label) {
251
+ case 0:
252
+ if (requestParameters['code'] == null) {
253
+ throw new runtime.RequiredError('code', 'Required parameter "code" was null or undefined when calling setAccountMarketplace().');
254
+ }
255
+ if (requestParameters['setAccountMarketplaceInput'] == null) {
256
+ throw new runtime.RequiredError('setAccountMarketplaceInput', 'Required parameter "setAccountMarketplaceInput" was null or undefined when calling setAccountMarketplace().');
257
+ }
258
+ queryParameters = {};
259
+ headerParameters = {};
260
+ headerParameters['Content-Type'] = 'application/json';
261
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
262
+ _a = headerParameters;
263
+ _b = "apikey";
264
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
265
+ case 1:
266
+ _a[_b] = _c.sent(); // api_key authentication
267
+ _c.label = 2;
268
+ case 2:
269
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
270
+ token = this.configuration.accessToken;
271
+ return [4 /*yield*/, token("bearer", [])];
272
+ case 3:
273
+ tokenString = _c.sent();
274
+ if (tokenString) {
275
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
276
+ }
277
+ _c.label = 4;
278
+ case 4: return [4 /*yield*/, this.request({
279
+ path: "/private/marketplaces/{code}".replace("{".concat("code", "}"), encodeURIComponent(String(requestParameters['code']))),
280
+ method: 'PUT',
281
+ headers: headerParameters,
282
+ query: queryParameters,
283
+ body: (0, index_1.SetAccountMarketplaceInputToJSON)(requestParameters['setAccountMarketplaceInput']),
284
+ }, initOverrides)];
285
+ case 5:
286
+ response = _c.sent();
287
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
288
+ }
289
+ });
290
+ });
291
+ };
292
+ /**
293
+ * Creates or replaces the link between this account and a marketplace, storing the code it must publish to stay verified there. **API key scope required:** `ACCOUNT_WRITE`. Requests authenticated with a seller session do not need any scope.
294
+ * Link the account to a marketplace
295
+ */
296
+ MarketplacesApi.prototype.setAccountMarketplace = function (requestParameters, initOverrides) {
297
+ return __awaiter(this, void 0, void 0, function () {
298
+ return __generator(this, function (_a) {
299
+ switch (_a.label) {
300
+ case 0: return [4 /*yield*/, this.setAccountMarketplaceRaw(requestParameters, initOverrides)];
301
+ case 1:
302
+ _a.sent();
303
+ return [2 /*return*/];
304
+ }
305
+ });
306
+ });
307
+ };
308
+ return MarketplacesApi;
309
+ }(runtime.BaseAPI));
310
+ exports.MarketplacesApi = MarketplacesApi;
311
+ /**
312
+ * @export
313
+ */
314
+ exports.DeleteAccountMarketplaceCodeEnum = {
315
+ NAMESHIFT: 'nameshift',
316
+ SEDO: 'sedo',
317
+ AFTERNIC: 'afternic',
318
+ ATOM: 'atom',
319
+ SPACESHIP: 'spaceship',
320
+ NAMECLUB: 'nameclub'
321
+ };
322
+ /**
323
+ * @export
324
+ */
325
+ exports.SetAccountMarketplaceCodeEnum = {
326
+ NAMESHIFT: 'nameshift',
327
+ SEDO: 'sedo',
328
+ AFTERNIC: 'afternic',
329
+ ATOM: 'atom',
330
+ SPACESHIP: 'spaceship',
331
+ NAMECLUB: 'nameclub'
332
+ };
@@ -18,6 +18,7 @@ export * from './LeadsApi';
18
18
  export * from './LeadsPublicApi';
19
19
  export * from './MarketApi';
20
20
  export * from './MarketingApi';
21
+ export * from './MarketplacesApi';
21
22
  export * from './NotificationsApi';
22
23
  export * from './OrdersPublicApi';
23
24
  export * from './PartnerApi';
@@ -36,6 +36,7 @@ __exportStar(require("./LeadsApi"), exports);
36
36
  __exportStar(require("./LeadsPublicApi"), exports);
37
37
  __exportStar(require("./MarketApi"), exports);
38
38
  __exportStar(require("./MarketingApi"), exports);
39
+ __exportStar(require("./MarketplacesApi"), exports);
39
40
  __exportStar(require("./NotificationsApi"), exports);
40
41
  __exportStar(require("./OrdersPublicApi"), exports);
41
42
  __exportStar(require("./PartnerApi"), exports);
@@ -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
  */