@randock/nameshift-api-client 0.0.329 → 0.0.331

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.
@@ -81,6 +81,7 @@ src/models/BatchVerifyBuyerLeadsInput.ts
81
81
  src/models/BillingInformationDto.ts
82
82
  src/models/BulkMarkBuyerNotificationsAsReadInputDto.ts
83
83
  src/models/BulkMarkNotificationsAsReadInputDto.ts
84
+ src/models/BulkUpdateDomainsWithFiltersInput.ts
84
85
  src/models/BuyerDomainTransferAuthCodeDto.ts
85
86
  src/models/BuyerDomainTransferListItemDomainDto.ts
86
87
  src/models/BuyerDomainTransferListItemDto.ts
@@ -119,6 +120,7 @@ src/models/CursorBasedPageInfo.ts
119
120
  src/models/CursorBasedPaginationResponse.ts
120
121
  src/models/DeleteDomainsInput.ts
121
122
  src/models/DomainExchangeRateDto.ts
123
+ src/models/DomainFiltersDto.ts
122
124
  src/models/DomainLeadPriceNegotiatorAiAgentConfigurationDto.ts
123
125
  src/models/DomainLeadPriceNegotiatorAiAgentConfigurationInput.ts
124
126
  src/models/DomainPricesChangeDto.ts
@@ -324,7 +326,9 @@ src/models/UpdateDomainTransferIpsTagInput.ts
324
326
  src/models/UpdateLeadInput.ts
325
327
  src/models/UpdateLeadMuteStatusForBuyerInput.ts
326
328
  src/models/UpdateLeadMuteStatusInput.ts
329
+ src/models/UpdateLeaseToOwnConfigurationDto.ts
327
330
  src/models/UpdateOrderInput.ts
331
+ src/models/UpdateRentConfigurationDto.ts
328
332
  src/models/UpdateSubscriptionBillingPeriodicityInput.ts
329
333
  src/models/UpdateSubscriptionInput.ts
330
334
  src/models/UpdateTaskMuteStatusForBuyerInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.329
1
+ ## @randock/nameshift-api-client@0.0.331
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.329 --save
39
+ npm install @randock/nameshift-api-client@0.0.331 --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
- 4b9d5e79cdf27366875b388d24be3d50cbc2c91dc540904398d152cbd80d954053e65c144e765c91ca871b003270e0c5
47
+ 0a75c6704af1ab7098fcb5c50eefa2d509543b5cb2983cf3ee61c1c98097d20935875a8d1026da6a596437ea39cae633
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainExchangeRateDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainAffiliateCommissionDto, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput, UpdateDomainTransferIpsTagInput } from '../models/index';
13
+ import type { BatchImportPreviewDto, BatchUpdateDomainsInput, BulkUpdateDomainsWithFiltersInput, DeleteDomainsInput, DomainExchangeRateDto, DomainFiltersDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainAffiliateCommissionDto, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput, UpdateDomainTransferIpsTagInput } from '../models/index';
14
14
  export interface DomainsApiBatchImportRequest {
15
15
  file?: Blob | null;
16
16
  domains?: Array<string>;
@@ -21,6 +21,10 @@ export interface DomainsApiBatchImportPreviewRequest {
21
21
  export interface DomainsApiBatchUpdateRequest {
22
22
  batchUpdateDomainsInput: BatchUpdateDomainsInput;
23
23
  }
24
+ export interface DomainsApiBulkUpdateDomainsWithFiltersRequest {
25
+ bulkUpdateDomainsWithFiltersInput: BulkUpdateDomainsWithFiltersInput;
26
+ filter?: object;
27
+ }
24
28
  export interface DomainsApiCheckDnsRequest {
25
29
  domainId: string;
26
30
  }
@@ -42,6 +46,9 @@ export interface DomainsApiGetDomainRequest {
42
46
  export interface DomainsApiGetDomainExchangeRateRequest {
43
47
  domainId: string;
44
48
  }
49
+ export interface DomainsApiGetDomainFiltersCurrenciesRequest {
50
+ filter?: object;
51
+ }
45
52
  export interface DomainsApiGetDomainTransferRequest {
46
53
  transferId: string;
47
54
  }
@@ -94,6 +101,14 @@ export declare class DomainsApi extends runtime.BaseAPI {
94
101
  *
95
102
  */
96
103
  batchUpdate(requestParameters: DomainsApiBatchUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
104
+ /**
105
+ *
106
+ */
107
+ bulkUpdateDomainsWithFiltersRaw(requestParameters: DomainsApiBulkUpdateDomainsWithFiltersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
108
+ /**
109
+ *
110
+ */
111
+ bulkUpdateDomainsWithFilters(requestParameters: DomainsApiBulkUpdateDomainsWithFiltersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
97
112
  /**
98
113
  *
99
114
  */
@@ -150,6 +165,22 @@ export declare class DomainsApi extends runtime.BaseAPI {
150
165
  *
151
166
  */
152
167
  getDomainExchangeRate(requestParameters: DomainsApiGetDomainExchangeRateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainExchangeRateDto>;
168
+ /**
169
+ *
170
+ */
171
+ getDomainFiltersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainFiltersDto>>;
172
+ /**
173
+ *
174
+ */
175
+ getDomainFilters(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainFiltersDto>;
176
+ /**
177
+ *
178
+ */
179
+ getDomainFiltersCurrenciesRaw(requestParameters: DomainsApiGetDomainFiltersCurrenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>>;
180
+ /**
181
+ *
182
+ */
183
+ getDomainFiltersCurrencies(requestParameters?: DomainsApiGetDomainFiltersCurrenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
153
184
  /**
154
185
  *
155
186
  */
@@ -267,6 +267,62 @@ var DomainsApi = /** @class */ (function (_super) {
267
267
  });
268
268
  });
269
269
  };
270
+ /**
271
+ *
272
+ */
273
+ DomainsApi.prototype.bulkUpdateDomainsWithFiltersRaw = function (requestParameters, initOverrides) {
274
+ return __awaiter(this, void 0, void 0, function () {
275
+ var queryParameters, headerParameters, token, tokenString, response;
276
+ return __generator(this, function (_a) {
277
+ switch (_a.label) {
278
+ case 0:
279
+ if (requestParameters['bulkUpdateDomainsWithFiltersInput'] == null) {
280
+ throw new runtime.RequiredError('bulkUpdateDomainsWithFiltersInput', 'Required parameter "bulkUpdateDomainsWithFiltersInput" was null or undefined when calling bulkUpdateDomainsWithFilters().');
281
+ }
282
+ queryParameters = {};
283
+ if (requestParameters['filter'] != null) {
284
+ queryParameters['filter'] = requestParameters['filter'];
285
+ }
286
+ headerParameters = {};
287
+ headerParameters['Content-Type'] = 'application/json';
288
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
289
+ token = this.configuration.accessToken;
290
+ return [4 /*yield*/, token("bearer", [])];
291
+ case 1:
292
+ tokenString = _a.sent();
293
+ if (tokenString) {
294
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
295
+ }
296
+ _a.label = 2;
297
+ case 2: return [4 /*yield*/, this.request({
298
+ path: "/private/domains/bulk-update",
299
+ method: 'PATCH',
300
+ headers: headerParameters,
301
+ query: queryParameters,
302
+ body: (0, index_1.BulkUpdateDomainsWithFiltersInputToJSON)(requestParameters['bulkUpdateDomainsWithFiltersInput']),
303
+ }, initOverrides)];
304
+ case 3:
305
+ response = _a.sent();
306
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
307
+ }
308
+ });
309
+ });
310
+ };
311
+ /**
312
+ *
313
+ */
314
+ DomainsApi.prototype.bulkUpdateDomainsWithFilters = function (requestParameters, initOverrides) {
315
+ return __awaiter(this, void 0, void 0, function () {
316
+ return __generator(this, function (_a) {
317
+ switch (_a.label) {
318
+ case 0: return [4 /*yield*/, this.bulkUpdateDomainsWithFiltersRaw(requestParameters, initOverrides)];
319
+ case 1:
320
+ _a.sent();
321
+ return [2 /*return*/];
322
+ }
323
+ });
324
+ });
325
+ };
270
326
  /**
271
327
  *
272
328
  */
@@ -644,6 +700,110 @@ var DomainsApi = /** @class */ (function (_super) {
644
700
  });
645
701
  });
646
702
  };
703
+ /**
704
+ *
705
+ */
706
+ DomainsApi.prototype.getDomainFiltersRaw = function (initOverrides) {
707
+ return __awaiter(this, void 0, void 0, function () {
708
+ var queryParameters, headerParameters, token, tokenString, response;
709
+ return __generator(this, function (_a) {
710
+ switch (_a.label) {
711
+ case 0:
712
+ queryParameters = {};
713
+ headerParameters = {};
714
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
715
+ token = this.configuration.accessToken;
716
+ return [4 /*yield*/, token("bearer", [])];
717
+ case 1:
718
+ tokenString = _a.sent();
719
+ if (tokenString) {
720
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
721
+ }
722
+ _a.label = 2;
723
+ case 2: return [4 /*yield*/, this.request({
724
+ path: "/private/domains/filters",
725
+ method: 'GET',
726
+ headers: headerParameters,
727
+ query: queryParameters,
728
+ }, initOverrides)];
729
+ case 3:
730
+ response = _a.sent();
731
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainFiltersDtoFromJSON)(jsonValue); })];
732
+ }
733
+ });
734
+ });
735
+ };
736
+ /**
737
+ *
738
+ */
739
+ DomainsApi.prototype.getDomainFilters = function (initOverrides) {
740
+ return __awaiter(this, void 0, void 0, function () {
741
+ var response;
742
+ return __generator(this, function (_a) {
743
+ switch (_a.label) {
744
+ case 0: return [4 /*yield*/, this.getDomainFiltersRaw(initOverrides)];
745
+ case 1:
746
+ response = _a.sent();
747
+ return [4 /*yield*/, response.value()];
748
+ case 2: return [2 /*return*/, _a.sent()];
749
+ }
750
+ });
751
+ });
752
+ };
753
+ /**
754
+ *
755
+ */
756
+ DomainsApi.prototype.getDomainFiltersCurrenciesRaw = function (requestParameters, initOverrides) {
757
+ return __awaiter(this, void 0, void 0, function () {
758
+ var queryParameters, headerParameters, token, tokenString, response;
759
+ return __generator(this, function (_a) {
760
+ switch (_a.label) {
761
+ case 0:
762
+ queryParameters = {};
763
+ if (requestParameters['filter'] != null) {
764
+ queryParameters['filter'] = requestParameters['filter'];
765
+ }
766
+ headerParameters = {};
767
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
768
+ token = this.configuration.accessToken;
769
+ return [4 /*yield*/, token("bearer", [])];
770
+ case 1:
771
+ tokenString = _a.sent();
772
+ if (tokenString) {
773
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
774
+ }
775
+ _a.label = 2;
776
+ case 2: return [4 /*yield*/, this.request({
777
+ path: "/private/domains/filters/currencies",
778
+ method: 'GET',
779
+ headers: headerParameters,
780
+ query: queryParameters,
781
+ }, initOverrides)];
782
+ case 3:
783
+ response = _a.sent();
784
+ return [2 /*return*/, new runtime.JSONApiResponse(response)];
785
+ }
786
+ });
787
+ });
788
+ };
789
+ /**
790
+ *
791
+ */
792
+ DomainsApi.prototype.getDomainFiltersCurrencies = function () {
793
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
794
+ var response;
795
+ if (requestParameters === void 0) { requestParameters = {}; }
796
+ return __generator(this, function (_a) {
797
+ switch (_a.label) {
798
+ case 0: return [4 /*yield*/, this.getDomainFiltersCurrenciesRaw(requestParameters, initOverrides)];
799
+ case 1:
800
+ response = _a.sent();
801
+ return [4 /*yield*/, response.value()];
802
+ case 2: return [2 /*return*/, _a.sent()];
803
+ }
804
+ });
805
+ });
806
+ };
647
807
  /**
648
808
  *
649
809
  */
@@ -0,0 +1,59 @@
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
+ import type { UpdateLeaseToOwnConfigurationDto } from './UpdateLeaseToOwnConfigurationDto';
14
+ import type { UpdateRentConfigurationDto } from './UpdateRentConfigurationDto';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface BulkUpdateDomainsWithFiltersInput
19
+ */
20
+ export interface BulkUpdateDomainsWithFiltersInput {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof BulkUpdateDomainsWithFiltersInput
25
+ */
26
+ currencyCode: string;
27
+ /**
28
+ *
29
+ * @type {MoneyDto}
30
+ * @memberof BulkUpdateDomainsWithFiltersInput
31
+ */
32
+ bin?: MoneyDto | null;
33
+ /**
34
+ *
35
+ * @type {MoneyDto}
36
+ * @memberof BulkUpdateDomainsWithFiltersInput
37
+ */
38
+ minOffer?: MoneyDto | null;
39
+ /**
40
+ *
41
+ * @type {UpdateRentConfigurationDto}
42
+ * @memberof BulkUpdateDomainsWithFiltersInput
43
+ */
44
+ rent?: UpdateRentConfigurationDto | null;
45
+ /**
46
+ *
47
+ * @type {UpdateLeaseToOwnConfigurationDto}
48
+ * @memberof BulkUpdateDomainsWithFiltersInput
49
+ */
50
+ leaseToOwn?: UpdateLeaseToOwnConfigurationDto | null;
51
+ }
52
+ /**
53
+ * Check if a given object implements the BulkUpdateDomainsWithFiltersInput interface.
54
+ */
55
+ export declare function instanceOfBulkUpdateDomainsWithFiltersInput(value: object): value is BulkUpdateDomainsWithFiltersInput;
56
+ export declare function BulkUpdateDomainsWithFiltersInputFromJSON(json: any): BulkUpdateDomainsWithFiltersInput;
57
+ export declare function BulkUpdateDomainsWithFiltersInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkUpdateDomainsWithFiltersInput;
58
+ export declare function BulkUpdateDomainsWithFiltersInputToJSON(json: any): BulkUpdateDomainsWithFiltersInput;
59
+ export declare function BulkUpdateDomainsWithFiltersInputToJSONTyped(value?: BulkUpdateDomainsWithFiltersInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.instanceOfBulkUpdateDomainsWithFiltersInput = instanceOfBulkUpdateDomainsWithFiltersInput;
17
+ exports.BulkUpdateDomainsWithFiltersInputFromJSON = BulkUpdateDomainsWithFiltersInputFromJSON;
18
+ exports.BulkUpdateDomainsWithFiltersInputFromJSONTyped = BulkUpdateDomainsWithFiltersInputFromJSONTyped;
19
+ exports.BulkUpdateDomainsWithFiltersInputToJSON = BulkUpdateDomainsWithFiltersInputToJSON;
20
+ exports.BulkUpdateDomainsWithFiltersInputToJSONTyped = BulkUpdateDomainsWithFiltersInputToJSONTyped;
21
+ var MoneyDto_1 = require("./MoneyDto");
22
+ var UpdateLeaseToOwnConfigurationDto_1 = require("./UpdateLeaseToOwnConfigurationDto");
23
+ var UpdateRentConfigurationDto_1 = require("./UpdateRentConfigurationDto");
24
+ /**
25
+ * Check if a given object implements the BulkUpdateDomainsWithFiltersInput interface.
26
+ */
27
+ function instanceOfBulkUpdateDomainsWithFiltersInput(value) {
28
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function BulkUpdateDomainsWithFiltersInputFromJSON(json) {
33
+ return BulkUpdateDomainsWithFiltersInputFromJSONTyped(json, false);
34
+ }
35
+ function BulkUpdateDomainsWithFiltersInputFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'currencyCode': json['currencyCode'],
41
+ 'bin': json['bin'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['bin']),
42
+ 'minOffer': json['minOffer'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
43
+ 'rent': json['rent'] == null ? undefined : (0, UpdateRentConfigurationDto_1.UpdateRentConfigurationDtoFromJSON)(json['rent']),
44
+ 'leaseToOwn': json['leaseToOwn'] == null ? undefined : (0, UpdateLeaseToOwnConfigurationDto_1.UpdateLeaseToOwnConfigurationDtoFromJSON)(json['leaseToOwn']),
45
+ };
46
+ }
47
+ function BulkUpdateDomainsWithFiltersInputToJSON(json) {
48
+ return BulkUpdateDomainsWithFiltersInputToJSONTyped(json, false);
49
+ }
50
+ function BulkUpdateDomainsWithFiltersInputToJSONTyped(value, ignoreDiscriminator) {
51
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'currencyCode': value['currencyCode'],
57
+ 'bin': (0, MoneyDto_1.MoneyDtoToJSON)(value['bin']),
58
+ 'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
59
+ 'rent': (0, UpdateRentConfigurationDto_1.UpdateRentConfigurationDtoToJSON)(value['rent']),
60
+ 'leaseToOwn': (0, UpdateLeaseToOwnConfigurationDto_1.UpdateLeaseToOwnConfigurationDtoToJSON)(value['leaseToOwn']),
61
+ };
62
+ }
@@ -0,0 +1,38 @@
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 DomainFiltersDto
16
+ */
17
+ export interface DomainFiltersDto {
18
+ /**
19
+ * List of existing TLDs in the system
20
+ * @type {Array<string>}
21
+ * @memberof DomainFiltersDto
22
+ */
23
+ existingTldList: Array<string>;
24
+ /**
25
+ * List of existing currencies in the system
26
+ * @type {Array<string>}
27
+ * @memberof DomainFiltersDto
28
+ */
29
+ existingCurrencies: Array<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the DomainFiltersDto interface.
33
+ */
34
+ export declare function instanceOfDomainFiltersDto(value: object): value is DomainFiltersDto;
35
+ export declare function DomainFiltersDtoFromJSON(json: any): DomainFiltersDto;
36
+ export declare function DomainFiltersDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainFiltersDto;
37
+ export declare function DomainFiltersDtoToJSON(json: any): DomainFiltersDto;
38
+ export declare function DomainFiltersDtoToJSONTyped(value?: DomainFiltersDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfDomainFiltersDto = instanceOfDomainFiltersDto;
17
+ exports.DomainFiltersDtoFromJSON = DomainFiltersDtoFromJSON;
18
+ exports.DomainFiltersDtoFromJSONTyped = DomainFiltersDtoFromJSONTyped;
19
+ exports.DomainFiltersDtoToJSON = DomainFiltersDtoToJSON;
20
+ exports.DomainFiltersDtoToJSONTyped = DomainFiltersDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DomainFiltersDto interface.
23
+ */
24
+ function instanceOfDomainFiltersDto(value) {
25
+ if (!('existingTldList' in value) || value['existingTldList'] === undefined)
26
+ return false;
27
+ if (!('existingCurrencies' in value) || value['existingCurrencies'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function DomainFiltersDtoFromJSON(json) {
32
+ return DomainFiltersDtoFromJSONTyped(json, false);
33
+ }
34
+ function DomainFiltersDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'existingTldList': json['existingTldList'],
40
+ 'existingCurrencies': json['existingCurrencies'],
41
+ };
42
+ }
43
+ function DomainFiltersDtoToJSON(json) {
44
+ return DomainFiltersDtoToJSONTyped(json, false);
45
+ }
46
+ function DomainFiltersDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'existingTldList': value['existingTldList'],
53
+ 'existingCurrencies': value['existingCurrencies'],
54
+ };
55
+ }
@@ -57,6 +57,12 @@ export interface ListAccountMetricsDto {
57
57
  * @memberof ListAccountMetricsDto
58
58
  */
59
59
  referralsNumber: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof ListAccountMetricsDto
64
+ */
65
+ pointingDomainsNumber: number;
60
66
  }
61
67
  /**
62
68
  * Check if a given object implements the ListAccountMetricsDto interface.
@@ -36,6 +36,8 @@ function instanceOfListAccountMetricsDto(value) {
36
36
  return false;
37
37
  if (!('referralsNumber' in value) || value['referralsNumber'] === undefined)
38
38
  return false;
39
+ if (!('pointingDomainsNumber' in value) || value['pointingDomainsNumber'] === undefined)
40
+ return false;
39
41
  return true;
40
42
  }
41
43
  function ListAccountMetricsDtoFromJSON(json) {
@@ -53,6 +55,7 @@ function ListAccountMetricsDtoFromJSONTyped(json, ignoreDiscriminator) {
53
55
  'tasksNumber': json['tasksNumber'],
54
56
  'soldDomainsNumber': json['soldDomainsNumber'],
55
57
  'referralsNumber': json['referralsNumber'],
58
+ 'pointingDomainsNumber': json['pointingDomainsNumber'],
56
59
  };
57
60
  }
58
61
  function ListAccountMetricsDtoToJSON(json) {
@@ -71,5 +74,6 @@ function ListAccountMetricsDtoToJSONTyped(value, ignoreDiscriminator) {
71
74
  'tasksNumber': value['tasksNumber'],
72
75
  'soldDomainsNumber': value['soldDomainsNumber'],
73
76
  'referralsNumber': value['referralsNumber'],
77
+ 'pointingDomainsNumber': value['pointingDomainsNumber'],
74
78
  };
75
79
  }
@@ -0,0 +1,44 @@
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 UpdateLeaseToOwnConfigurationDto
16
+ */
17
+ export interface UpdateLeaseToOwnConfigurationDto {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof UpdateLeaseToOwnConfigurationDto
22
+ */
23
+ enabled?: boolean;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof UpdateLeaseToOwnConfigurationDto
28
+ */
29
+ minMonths?: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof UpdateLeaseToOwnConfigurationDto
34
+ */
35
+ maxMonths?: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the UpdateLeaseToOwnConfigurationDto interface.
39
+ */
40
+ export declare function instanceOfUpdateLeaseToOwnConfigurationDto(value: object): value is UpdateLeaseToOwnConfigurationDto;
41
+ export declare function UpdateLeaseToOwnConfigurationDtoFromJSON(json: any): UpdateLeaseToOwnConfigurationDto;
42
+ export declare function UpdateLeaseToOwnConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLeaseToOwnConfigurationDto;
43
+ export declare function UpdateLeaseToOwnConfigurationDtoToJSON(json: any): UpdateLeaseToOwnConfigurationDto;
44
+ export declare function UpdateLeaseToOwnConfigurationDtoToJSONTyped(value?: UpdateLeaseToOwnConfigurationDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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.instanceOfUpdateLeaseToOwnConfigurationDto = instanceOfUpdateLeaseToOwnConfigurationDto;
17
+ exports.UpdateLeaseToOwnConfigurationDtoFromJSON = UpdateLeaseToOwnConfigurationDtoFromJSON;
18
+ exports.UpdateLeaseToOwnConfigurationDtoFromJSONTyped = UpdateLeaseToOwnConfigurationDtoFromJSONTyped;
19
+ exports.UpdateLeaseToOwnConfigurationDtoToJSON = UpdateLeaseToOwnConfigurationDtoToJSON;
20
+ exports.UpdateLeaseToOwnConfigurationDtoToJSONTyped = UpdateLeaseToOwnConfigurationDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdateLeaseToOwnConfigurationDto interface.
23
+ */
24
+ function instanceOfUpdateLeaseToOwnConfigurationDto(value) {
25
+ return true;
26
+ }
27
+ function UpdateLeaseToOwnConfigurationDtoFromJSON(json) {
28
+ return UpdateLeaseToOwnConfigurationDtoFromJSONTyped(json, false);
29
+ }
30
+ function UpdateLeaseToOwnConfigurationDtoFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
36
+ 'minMonths': json['minMonths'] == null ? undefined : json['minMonths'],
37
+ 'maxMonths': json['maxMonths'] == null ? undefined : json['maxMonths'],
38
+ };
39
+ }
40
+ function UpdateLeaseToOwnConfigurationDtoToJSON(json) {
41
+ return UpdateLeaseToOwnConfigurationDtoToJSONTyped(json, false);
42
+ }
43
+ function UpdateLeaseToOwnConfigurationDtoToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'enabled': value['enabled'],
50
+ 'minMonths': value['minMonths'],
51
+ 'maxMonths': value['maxMonths'],
52
+ };
53
+ }