@randock/nameshift-api-client 0.0.111 → 0.0.112

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 (41) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.js +1 -1
  4. package/dist/apis/AdminApi.d.ts +24 -1
  5. package/dist/apis/AdminApi.js +109 -0
  6. package/dist/apis/DomainsApi.d.ts +3 -3
  7. package/dist/apis/DomainsApi.js +1 -1
  8. package/dist/apis/LeadsApi.d.ts +3 -3
  9. package/dist/apis/LeadsApi.js +1 -1
  10. package/dist/models/AccountSettingsDto.d.ts +50 -0
  11. package/dist/models/AccountSettingsDto.js +59 -0
  12. package/dist/models/AdminAccountSettingsInput.d.ts +31 -0
  13. package/dist/models/AdminAccountSettingsInput.js +44 -0
  14. package/dist/models/List200Response.d.ts +3 -3
  15. package/dist/models/List200Response.js +3 -3
  16. package/dist/models/List200Response1.d.ts +3 -3
  17. package/dist/models/List200Response1.js +3 -3
  18. package/dist/models/ThrottlerException.d.ts +43 -0
  19. package/dist/models/ThrottlerException.js +54 -0
  20. package/dist/models/index.d.ts +3 -0
  21. package/dist/models/index.js +3 -0
  22. package/package.json +1 -1
  23. package/src/apis/AccountsApi.ts +4 -1
  24. package/src/apis/AccountsPublicApi.ts +3 -0
  25. package/src/apis/AdminApi.ts +109 -0
  26. package/src/apis/BuyersApi.ts +3 -0
  27. package/src/apis/BuyersPublicApi.ts +3 -0
  28. package/src/apis/DomainsApi.ts +9 -6
  29. package/src/apis/DomainsPublicApi.ts +3 -0
  30. package/src/apis/LeadsApi.ts +9 -6
  31. package/src/apis/LeadsPublicApi.ts +3 -0
  32. package/src/apis/OrdersPublicApi.ts +3 -0
  33. package/src/apis/StripePublicApi.ts +3 -0
  34. package/src/apis/UsersApi.ts +3 -0
  35. package/src/apis/UsersPublicApi.ts +3 -0
  36. package/src/models/AccountSettingsDto.ts +95 -0
  37. package/src/models/AdminAccountSettingsInput.ts +60 -0
  38. package/src/models/List200Response.ts +9 -9
  39. package/src/models/List200Response1.ts +9 -9
  40. package/src/models/ThrottlerException.ts +79 -0
  41. package/src/models/index.ts +3 -0
@@ -21,8 +21,10 @@ src/index.ts
21
21
  src/models/AccountDto.ts
22
22
  src/models/AccountMetricsDto.ts
23
23
  src/models/AccountPaymentProviderSessionDto.ts
24
+ src/models/AccountSettingsDto.ts
24
25
  src/models/AccountSettingsInput.ts
25
26
  src/models/AddressDto.ts
27
+ src/models/AdminAccountSettingsInput.ts
26
28
  src/models/AdminGetAllDomainTransfers200Response.ts
27
29
  src/models/BadRequestException.ts
28
30
  src/models/BatchReadBuyerLeadMessageInput.ts
@@ -128,6 +130,7 @@ src/models/SetDomainTransferConfirmationInput.ts
128
130
  src/models/SetNewPasswordInput.ts
129
131
  src/models/StoreBuyerLocaleInput.ts
130
132
  src/models/StoreUserLocaleInput.ts
133
+ src/models/ThrottlerException.ts
131
134
  src/models/UpdateDomainInput.ts
132
135
  src/models/UpdateDomainTransferAuthCodeInput.ts
133
136
  src/models/UpdateLeadInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.111
1
+ ## @randock/nameshift-api-client@0.0.112
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.111 --save
39
+ npm install @randock/nameshift-api-client@0.0.112 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- cb893df80cfccbe1d8b9b5493f3356dd4a841d0e639e1c0e07862955ab32146568e4c1b904c98914cde22610fe10bbd8
47
+ 219b60cbea38bbca6b56c360767329f717b7ca240c35068735bd91f3064f830abfbce763641b1c4ef4964c39d57c40b8
@@ -263,7 +263,7 @@ var AccountsApi = /** @class */ (function (_super) {
263
263
  _a.label = 2;
264
264
  case 2: return [4 /*yield*/, this.request({
265
265
  path: "/private/accounts/{accountId}/settings".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
266
- method: 'PUT',
266
+ method: 'PATCH',
267
267
  headers: headerParameters,
268
268
  query: queryParameters,
269
269
  body: (0, index_1.AccountSettingsInputToJSON)(requestParameters['accountSettingsInput']),
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, DomainTransferDetailsDto, GetAllOrders200Response, GetAllOwnedDomains200Response, ListAccounts200Response } from '../models/index';
13
+ import type { AccountSettingsDto, AdminAccountSettingsInput, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, DomainTransferDetailsDto, GetAllOrders200Response, GetAllOwnedDomains200Response, ListAccounts200Response } from '../models/index';
14
14
  export interface AdminApiAdminGetAllDomainTransfersRequest {
15
15
  filter?: object;
16
16
  page?: number;
@@ -21,6 +21,9 @@ export interface AdminApiChangeOrderStatusRequest {
21
21
  orderId: string;
22
22
  changeOrderStatusInput: ChangeOrderStatusInput;
23
23
  }
24
+ export interface AdminApiGetAccountSettingsRequest {
25
+ accountId: string;
26
+ }
24
27
  export interface AdminApiGetAdminDomainTransferDetailsRequest {
25
28
  transferId: string;
26
29
  }
@@ -47,6 +50,10 @@ export interface AdminApiListAccountsRequest {
47
50
  limit?: number;
48
51
  sortBy?: Array<string>;
49
52
  }
53
+ export interface AdminApiUpdateAccountSettingsRequest {
54
+ accountId: string;
55
+ adminAccountSettingsInput: AdminAccountSettingsInput;
56
+ }
50
57
  /**
51
58
  *
52
59
  */
@@ -67,6 +74,14 @@ export declare class AdminApi extends runtime.BaseAPI {
67
74
  *
68
75
  */
69
76
  changeOrderStatus(requestParameters: AdminApiChangeOrderStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
77
+ /**
78
+ *
79
+ */
80
+ getAccountSettingsRaw(requestParameters: AdminApiGetAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountSettingsDto>>;
81
+ /**
82
+ *
83
+ */
84
+ getAccountSettings(requestParameters: AdminApiGetAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountSettingsDto>;
70
85
  /**
71
86
  *
72
87
  */
@@ -107,4 +122,12 @@ export declare class AdminApi extends runtime.BaseAPI {
107
122
  *
108
123
  */
109
124
  listAccounts(requestParameters?: AdminApiListAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccounts200Response>;
125
+ /**
126
+ *
127
+ */
128
+ updateAccountSettingsRaw(requestParameters: AdminApiUpdateAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
129
+ /**
130
+ *
131
+ */
132
+ updateAccountSettings(requestParameters: AdminApiUpdateAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
110
133
  }
@@ -194,6 +194,59 @@ var AdminApi = /** @class */ (function (_super) {
194
194
  });
195
195
  });
196
196
  };
197
+ /**
198
+ *
199
+ */
200
+ AdminApi.prototype.getAccountSettingsRaw = function (requestParameters, initOverrides) {
201
+ return __awaiter(this, void 0, void 0, function () {
202
+ var queryParameters, headerParameters, token, tokenString, response;
203
+ return __generator(this, function (_a) {
204
+ switch (_a.label) {
205
+ case 0:
206
+ if (requestParameters['accountId'] == null) {
207
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getAccountSettings().');
208
+ }
209
+ queryParameters = {};
210
+ headerParameters = {};
211
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
212
+ token = this.configuration.accessToken;
213
+ return [4 /*yield*/, token("bearer", [])];
214
+ case 1:
215
+ tokenString = _a.sent();
216
+ if (tokenString) {
217
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
218
+ }
219
+ _a.label = 2;
220
+ case 2: return [4 /*yield*/, this.request({
221
+ path: "/admin/accounts/{accountId}/settings".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
222
+ method: 'GET',
223
+ headers: headerParameters,
224
+ query: queryParameters,
225
+ }, initOverrides)];
226
+ case 3:
227
+ response = _a.sent();
228
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AccountSettingsDtoFromJSON)(jsonValue); })];
229
+ }
230
+ });
231
+ });
232
+ };
233
+ /**
234
+ *
235
+ */
236
+ AdminApi.prototype.getAccountSettings = function (requestParameters, initOverrides) {
237
+ return __awaiter(this, void 0, void 0, function () {
238
+ var response;
239
+ return __generator(this, function (_a) {
240
+ switch (_a.label) {
241
+ case 0: return [4 /*yield*/, this.getAccountSettingsRaw(requestParameters, initOverrides)];
242
+ case 1:
243
+ response = _a.sent();
244
+ return [4 /*yield*/, response.value()];
245
+ case 2: return [2 /*return*/, _a.sent()];
246
+ }
247
+ });
248
+ });
249
+ };
197
250
  /**
198
251
  *
199
252
  */
@@ -493,6 +546,62 @@ var AdminApi = /** @class */ (function (_super) {
493
546
  });
494
547
  });
495
548
  };
549
+ /**
550
+ *
551
+ */
552
+ AdminApi.prototype.updateAccountSettingsRaw = function (requestParameters, initOverrides) {
553
+ return __awaiter(this, void 0, void 0, function () {
554
+ var queryParameters, headerParameters, token, tokenString, response;
555
+ return __generator(this, function (_a) {
556
+ switch (_a.label) {
557
+ case 0:
558
+ if (requestParameters['accountId'] == null) {
559
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling updateAccountSettings().');
560
+ }
561
+ if (requestParameters['adminAccountSettingsInput'] == null) {
562
+ throw new runtime.RequiredError('adminAccountSettingsInput', 'Required parameter "adminAccountSettingsInput" was null or undefined when calling updateAccountSettings().');
563
+ }
564
+ queryParameters = {};
565
+ headerParameters = {};
566
+ headerParameters['Content-Type'] = 'application/json';
567
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
568
+ token = this.configuration.accessToken;
569
+ return [4 /*yield*/, token("bearer", [])];
570
+ case 1:
571
+ tokenString = _a.sent();
572
+ if (tokenString) {
573
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
574
+ }
575
+ _a.label = 2;
576
+ case 2: return [4 /*yield*/, this.request({
577
+ path: "/admin/accounts/{accountId}/settings".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
578
+ method: 'PATCH',
579
+ headers: headerParameters,
580
+ query: queryParameters,
581
+ body: (0, index_1.AdminAccountSettingsInputToJSON)(requestParameters['adminAccountSettingsInput']),
582
+ }, initOverrides)];
583
+ case 3:
584
+ response = _a.sent();
585
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
586
+ }
587
+ });
588
+ });
589
+ };
590
+ /**
591
+ *
592
+ */
593
+ AdminApi.prototype.updateAccountSettings = function (requestParameters, initOverrides) {
594
+ return __awaiter(this, void 0, void 0, function () {
595
+ return __generator(this, function (_a) {
596
+ switch (_a.label) {
597
+ case 0: return [4 /*yield*/, this.updateAccountSettingsRaw(requestParameters, initOverrides)];
598
+ case 1:
599
+ _a.sent();
600
+ return [2 /*return*/];
601
+ }
602
+ });
603
+ });
604
+ };
496
605
  return AdminApi;
497
606
  }(runtime.BaseAPI));
498
607
  exports.AdminApi = AdminApi;
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput } from '../models/index';
13
+ import type { BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response1, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput } from '../models/index';
14
14
  export interface DomainsApiBatchImportRequest {
15
15
  file?: Blob | null;
16
16
  domains?: Array<string>;
@@ -113,11 +113,11 @@ export declare class DomainsApi extends runtime.BaseAPI {
113
113
  /**
114
114
  *
115
115
  */
116
- listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response>>;
116
+ listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response1>>;
117
117
  /**
118
118
  *
119
119
  */
120
- list(requestParameters?: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response>;
120
+ list(requestParameters?: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response1>;
121
121
  /**
122
122
  *
123
123
  */
@@ -511,7 +511,7 @@ var DomainsApi = /** @class */ (function (_super) {
511
511
  }, initOverrides)];
512
512
  case 3:
513
513
  response = _a.sent();
514
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200ResponseFromJSON)(jsonValue); })];
514
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200Response1FromJSON)(jsonValue); })];
515
515
  }
516
516
  });
517
517
  });
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDto, List200Response1, ListLeadMessagesDto, ObjectId, PutLeadOfferInput } from '../models/index';
13
+ import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDto, List200Response, ListLeadMessagesDto, ObjectId, PutLeadOfferInput } from '../models/index';
14
14
  export interface LeadsApiAcceptLeadOfferRequest {
15
15
  leadId: string;
16
16
  }
@@ -85,11 +85,11 @@ export declare class LeadsApi extends runtime.BaseAPI {
85
85
  /**
86
86
  *
87
87
  */
88
- listRaw(requestParameters: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response1>>;
88
+ listRaw(requestParameters: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response>>;
89
89
  /**
90
90
  *
91
91
  */
92
- list(requestParameters?: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response1>;
92
+ list(requestParameters?: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response>;
93
93
  /**
94
94
  *
95
95
  */
@@ -386,7 +386,7 @@ var LeadsApi = /** @class */ (function (_super) {
386
386
  }, initOverrides)];
387
387
  case 3:
388
388
  response = _a.sent();
389
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200Response1FromJSON)(jsonValue); })];
389
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200ResponseFromJSON)(jsonValue); })];
390
390
  }
391
391
  });
392
392
  });
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
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
+ import type { MoneyDto } from './MoneyDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AccountSettingsDto
17
+ */
18
+ export interface AccountSettingsDto {
19
+ /**
20
+ *
21
+ * @type {MoneyDto}
22
+ * @memberof AccountSettingsDto
23
+ */
24
+ defaultStartingOffer: MoneyDto;
25
+ /**
26
+ *
27
+ * @type {MoneyDto}
28
+ * @memberof AccountSettingsDto
29
+ */
30
+ minBuyNow: MoneyDto;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof AccountSettingsDto
35
+ */
36
+ defaultCurrencyCode: string;
37
+ /**
38
+ *
39
+ * @type {boolean}
40
+ * @memberof AccountSettingsDto
41
+ */
42
+ automaticPayouts: boolean;
43
+ }
44
+ /**
45
+ * Check if a given object implements the AccountSettingsDto interface.
46
+ */
47
+ export declare function instanceOfAccountSettingsDto(value: object): value is AccountSettingsDto;
48
+ export declare function AccountSettingsDtoFromJSON(json: any): AccountSettingsDto;
49
+ export declare function AccountSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsDto;
50
+ export declare function AccountSettingsDtoToJSON(value?: AccountSettingsDto | null): any;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
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.instanceOfAccountSettingsDto = instanceOfAccountSettingsDto;
17
+ exports.AccountSettingsDtoFromJSON = AccountSettingsDtoFromJSON;
18
+ exports.AccountSettingsDtoFromJSONTyped = AccountSettingsDtoFromJSONTyped;
19
+ exports.AccountSettingsDtoToJSON = AccountSettingsDtoToJSON;
20
+ var MoneyDto_1 = require("./MoneyDto");
21
+ /**
22
+ * Check if a given object implements the AccountSettingsDto interface.
23
+ */
24
+ function instanceOfAccountSettingsDto(value) {
25
+ if (!('defaultStartingOffer' in value) || value['defaultStartingOffer'] === undefined)
26
+ return false;
27
+ if (!('minBuyNow' in value) || value['minBuyNow'] === undefined)
28
+ return false;
29
+ if (!('defaultCurrencyCode' in value) || value['defaultCurrencyCode'] === undefined)
30
+ return false;
31
+ if (!('automaticPayouts' in value) || value['automaticPayouts'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function AccountSettingsDtoFromJSON(json) {
36
+ return AccountSettingsDtoFromJSONTyped(json, false);
37
+ }
38
+ function AccountSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['defaultStartingOffer']),
44
+ 'minBuyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minBuyNow']),
45
+ 'defaultCurrencyCode': json['defaultCurrencyCode'],
46
+ 'automaticPayouts': json['automaticPayouts'],
47
+ };
48
+ }
49
+ function AccountSettingsDtoToJSON(value) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['defaultStartingOffer']),
55
+ 'minBuyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['minBuyNow']),
56
+ 'defaultCurrencyCode': value['defaultCurrencyCode'],
57
+ 'automaticPayouts': value['automaticPayouts'],
58
+ };
59
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
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 AdminAccountSettingsInput
16
+ */
17
+ export interface AdminAccountSettingsInput {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof AdminAccountSettingsInput
22
+ */
23
+ automaticPayouts?: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AdminAccountSettingsInput interface.
27
+ */
28
+ export declare function instanceOfAdminAccountSettingsInput(value: object): value is AdminAccountSettingsInput;
29
+ export declare function AdminAccountSettingsInputFromJSON(json: any): AdminAccountSettingsInput;
30
+ export declare function AdminAccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAccountSettingsInput;
31
+ export declare function AdminAccountSettingsInputToJSON(value?: AdminAccountSettingsInput | null): any;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
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.instanceOfAdminAccountSettingsInput = instanceOfAdminAccountSettingsInput;
17
+ exports.AdminAccountSettingsInputFromJSON = AdminAccountSettingsInputFromJSON;
18
+ exports.AdminAccountSettingsInputFromJSONTyped = AdminAccountSettingsInputFromJSONTyped;
19
+ exports.AdminAccountSettingsInputToJSON = AdminAccountSettingsInputToJSON;
20
+ /**
21
+ * Check if a given object implements the AdminAccountSettingsInput interface.
22
+ */
23
+ function instanceOfAdminAccountSettingsInput(value) {
24
+ return true;
25
+ }
26
+ function AdminAccountSettingsInputFromJSON(json) {
27
+ return AdminAccountSettingsInputFromJSONTyped(json, false);
28
+ }
29
+ function AdminAccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'automaticPayouts': json['automaticPayouts'] == null ? undefined : json['automaticPayouts'],
35
+ };
36
+ }
37
+ function AdminAccountSettingsInputToJSON(value) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'automaticPayouts': value['automaticPayouts'],
43
+ };
44
+ }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { PaginateResponseLinks } from './PaginateResponseLinks';
13
- import type { IntersectionDomainDtoWithDomainUrlDto } from './IntersectionDomainDtoWithDomainUrlDto';
13
+ import type { IntersectionLeadDtoWithListFieldsDto } from './IntersectionLeadDtoWithListFieldsDto';
14
14
  import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
15
  /**
16
16
  *
@@ -20,10 +20,10 @@ import type { PaginateResponseMeta } from './PaginateResponseMeta';
20
20
  export interface List200Response {
21
21
  /**
22
22
  *
23
- * @type {Array<IntersectionDomainDtoWithDomainUrlDto>}
23
+ * @type {Array<IntersectionLeadDtoWithListFieldsDto>}
24
24
  * @memberof List200Response
25
25
  */
26
- data: Array<IntersectionDomainDtoWithDomainUrlDto>;
26
+ data: Array<IntersectionLeadDtoWithListFieldsDto>;
27
27
  /**
28
28
  *
29
29
  * @type {PaginateResponseMeta}
@@ -18,7 +18,7 @@ exports.List200ResponseFromJSON = List200ResponseFromJSON;
18
18
  exports.List200ResponseFromJSONTyped = List200ResponseFromJSONTyped;
19
19
  exports.List200ResponseToJSON = List200ResponseToJSON;
20
20
  var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
21
- var IntersectionDomainDtoWithDomainUrlDto_1 = require("./IntersectionDomainDtoWithDomainUrlDto");
21
+ var IntersectionLeadDtoWithListFieldsDto_1 = require("./IntersectionLeadDtoWithListFieldsDto");
22
22
  var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
23
23
  /**
24
24
  * Check if a given object implements the List200Response interface.
@@ -40,7 +40,7 @@ function List200ResponseFromJSONTyped(json, ignoreDiscriminator) {
40
40
  return json;
41
41
  }
42
42
  return {
43
- 'data': (json['data'].map(IntersectionDomainDtoWithDomainUrlDto_1.IntersectionDomainDtoWithDomainUrlDtoFromJSON)),
43
+ 'data': (json['data'].map(IntersectionLeadDtoWithListFieldsDto_1.IntersectionLeadDtoWithListFieldsDtoFromJSON)),
44
44
  'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
45
45
  'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
46
46
  };
@@ -50,7 +50,7 @@ function List200ResponseToJSON(value) {
50
50
  return value;
51
51
  }
52
52
  return {
53
- 'data': (value['data'].map(IntersectionDomainDtoWithDomainUrlDto_1.IntersectionDomainDtoWithDomainUrlDtoToJSON)),
53
+ 'data': (value['data'].map(IntersectionLeadDtoWithListFieldsDto_1.IntersectionLeadDtoWithListFieldsDtoToJSON)),
54
54
  'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
55
55
  'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
56
56
  };
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { PaginateResponseLinks } from './PaginateResponseLinks';
13
- import type { IntersectionLeadDtoWithListFieldsDto } from './IntersectionLeadDtoWithListFieldsDto';
13
+ import type { IntersectionDomainDtoWithDomainUrlDto } from './IntersectionDomainDtoWithDomainUrlDto';
14
14
  import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
15
  /**
16
16
  *
@@ -20,10 +20,10 @@ import type { PaginateResponseMeta } from './PaginateResponseMeta';
20
20
  export interface List200Response1 {
21
21
  /**
22
22
  *
23
- * @type {Array<IntersectionLeadDtoWithListFieldsDto>}
23
+ * @type {Array<IntersectionDomainDtoWithDomainUrlDto>}
24
24
  * @memberof List200Response1
25
25
  */
26
- data: Array<IntersectionLeadDtoWithListFieldsDto>;
26
+ data: Array<IntersectionDomainDtoWithDomainUrlDto>;
27
27
  /**
28
28
  *
29
29
  * @type {PaginateResponseMeta}
@@ -18,7 +18,7 @@ exports.List200Response1FromJSON = List200Response1FromJSON;
18
18
  exports.List200Response1FromJSONTyped = List200Response1FromJSONTyped;
19
19
  exports.List200Response1ToJSON = List200Response1ToJSON;
20
20
  var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
21
- var IntersectionLeadDtoWithListFieldsDto_1 = require("./IntersectionLeadDtoWithListFieldsDto");
21
+ var IntersectionDomainDtoWithDomainUrlDto_1 = require("./IntersectionDomainDtoWithDomainUrlDto");
22
22
  var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
23
23
  /**
24
24
  * Check if a given object implements the List200Response1 interface.
@@ -40,7 +40,7 @@ function List200Response1FromJSONTyped(json, ignoreDiscriminator) {
40
40
  return json;
41
41
  }
42
42
  return {
43
- 'data': (json['data'].map(IntersectionLeadDtoWithListFieldsDto_1.IntersectionLeadDtoWithListFieldsDtoFromJSON)),
43
+ 'data': (json['data'].map(IntersectionDomainDtoWithDomainUrlDto_1.IntersectionDomainDtoWithDomainUrlDtoFromJSON)),
44
44
  'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
45
45
  'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
46
46
  };
@@ -50,7 +50,7 @@ function List200Response1ToJSON(value) {
50
50
  return value;
51
51
  }
52
52
  return {
53
- 'data': (value['data'].map(IntersectionLeadDtoWithListFieldsDto_1.IntersectionLeadDtoWithListFieldsDtoToJSON)),
53
+ 'data': (value['data'].map(IntersectionDomainDtoWithDomainUrlDto_1.IntersectionDomainDtoWithDomainUrlDtoToJSON)),
54
54
  'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
55
55
  'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
56
56
  };
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
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 ThrottlerException
16
+ */
17
+ export interface ThrottlerException {
18
+ /**
19
+ * Exception name
20
+ * @type {string}
21
+ * @memberof ThrottlerException
22
+ */
23
+ name: string;
24
+ /**
25
+ * http status code
26
+ * @type {number}
27
+ * @memberof ThrottlerException
28
+ */
29
+ statusCode: number;
30
+ /**
31
+ * error message
32
+ * @type {string}
33
+ * @memberof ThrottlerException
34
+ */
35
+ message: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ThrottlerException interface.
39
+ */
40
+ export declare function instanceOfThrottlerException(value: object): value is ThrottlerException;
41
+ export declare function ThrottlerExceptionFromJSON(json: any): ThrottlerException;
42
+ export declare function ThrottlerExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThrottlerException;
43
+ export declare function ThrottlerExceptionToJSON(value?: ThrottlerException | null): any;