@randock/nameshift-api-client 0.0.330 → 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.330
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.330 --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
- d2c9168b75090ca121bf54ba04445d451e5c0d6e9e4ffb0a2a5c30f585325a737be0226ef1b727faf92ed327fd667abe
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
+ }
@@ -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
+ }
@@ -0,0 +1,39 @@
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 UpdateRentConfigurationDto
17
+ */
18
+ export interface UpdateRentConfigurationDto {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof UpdateRentConfigurationDto
23
+ */
24
+ enabled?: boolean;
25
+ /**
26
+ *
27
+ * @type {MoneyDto}
28
+ * @memberof UpdateRentConfigurationDto
29
+ */
30
+ price?: MoneyDto;
31
+ }
32
+ /**
33
+ * Check if a given object implements the UpdateRentConfigurationDto interface.
34
+ */
35
+ export declare function instanceOfUpdateRentConfigurationDto(value: object): value is UpdateRentConfigurationDto;
36
+ export declare function UpdateRentConfigurationDtoFromJSON(json: any): UpdateRentConfigurationDto;
37
+ export declare function UpdateRentConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRentConfigurationDto;
38
+ export declare function UpdateRentConfigurationDtoToJSON(json: any): UpdateRentConfigurationDto;
39
+ export declare function UpdateRentConfigurationDtoToJSONTyped(value?: UpdateRentConfigurationDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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.instanceOfUpdateRentConfigurationDto = instanceOfUpdateRentConfigurationDto;
17
+ exports.UpdateRentConfigurationDtoFromJSON = UpdateRentConfigurationDtoFromJSON;
18
+ exports.UpdateRentConfigurationDtoFromJSONTyped = UpdateRentConfigurationDtoFromJSONTyped;
19
+ exports.UpdateRentConfigurationDtoToJSON = UpdateRentConfigurationDtoToJSON;
20
+ exports.UpdateRentConfigurationDtoToJSONTyped = UpdateRentConfigurationDtoToJSONTyped;
21
+ var MoneyDto_1 = require("./MoneyDto");
22
+ /**
23
+ * Check if a given object implements the UpdateRentConfigurationDto interface.
24
+ */
25
+ function instanceOfUpdateRentConfigurationDto(value) {
26
+ return true;
27
+ }
28
+ function UpdateRentConfigurationDtoFromJSON(json) {
29
+ return UpdateRentConfigurationDtoFromJSONTyped(json, false);
30
+ }
31
+ function UpdateRentConfigurationDtoFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
37
+ 'price': json['price'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['price']),
38
+ };
39
+ }
40
+ function UpdateRentConfigurationDtoToJSON(json) {
41
+ return UpdateRentConfigurationDtoToJSONTyped(json, false);
42
+ }
43
+ function UpdateRentConfigurationDtoToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'enabled': value['enabled'],
50
+ 'price': (0, MoneyDto_1.MoneyDtoToJSON)(value['price']),
51
+ };
52
+ }
@@ -49,6 +49,7 @@ export * from './BatchVerifyBuyerLeadsInput';
49
49
  export * from './BillingInformationDto';
50
50
  export * from './BulkMarkBuyerNotificationsAsReadInputDto';
51
51
  export * from './BulkMarkNotificationsAsReadInputDto';
52
+ export * from './BulkUpdateDomainsWithFiltersInput';
52
53
  export * from './BuyerDomainTransferAuthCodeDto';
53
54
  export * from './BuyerDomainTransferListItemDomainDto';
54
55
  export * from './BuyerDomainTransferListItemDto';
@@ -87,6 +88,7 @@ export * from './CursorBasedPageInfo';
87
88
  export * from './CursorBasedPaginationResponse';
88
89
  export * from './DeleteDomainsInput';
89
90
  export * from './DomainExchangeRateDto';
91
+ export * from './DomainFiltersDto';
90
92
  export * from './DomainLeadPriceNegotiatorAiAgentConfigurationDto';
91
93
  export * from './DomainLeadPriceNegotiatorAiAgentConfigurationInput';
92
94
  export * from './DomainPricesChangeDto';
@@ -292,7 +294,9 @@ export * from './UpdateDomainTransferIpsTagInput';
292
294
  export * from './UpdateLeadInput';
293
295
  export * from './UpdateLeadMuteStatusForBuyerInput';
294
296
  export * from './UpdateLeadMuteStatusInput';
297
+ export * from './UpdateLeaseToOwnConfigurationDto';
295
298
  export * from './UpdateOrderInput';
299
+ export * from './UpdateRentConfigurationDto';
296
300
  export * from './UpdateSubscriptionBillingPeriodicityInput';
297
301
  export * from './UpdateSubscriptionInput';
298
302
  export * from './UpdateTaskMuteStatusForBuyerInput';
@@ -67,6 +67,7 @@ __exportStar(require("./BatchVerifyBuyerLeadsInput"), exports);
67
67
  __exportStar(require("./BillingInformationDto"), exports);
68
68
  __exportStar(require("./BulkMarkBuyerNotificationsAsReadInputDto"), exports);
69
69
  __exportStar(require("./BulkMarkNotificationsAsReadInputDto"), exports);
70
+ __exportStar(require("./BulkUpdateDomainsWithFiltersInput"), exports);
70
71
  __exportStar(require("./BuyerDomainTransferAuthCodeDto"), exports);
71
72
  __exportStar(require("./BuyerDomainTransferListItemDomainDto"), exports);
72
73
  __exportStar(require("./BuyerDomainTransferListItemDto"), exports);
@@ -105,6 +106,7 @@ __exportStar(require("./CursorBasedPageInfo"), exports);
105
106
  __exportStar(require("./CursorBasedPaginationResponse"), exports);
106
107
  __exportStar(require("./DeleteDomainsInput"), exports);
107
108
  __exportStar(require("./DomainExchangeRateDto"), exports);
109
+ __exportStar(require("./DomainFiltersDto"), exports);
108
110
  __exportStar(require("./DomainLeadPriceNegotiatorAiAgentConfigurationDto"), exports);
109
111
  __exportStar(require("./DomainLeadPriceNegotiatorAiAgentConfigurationInput"), exports);
110
112
  __exportStar(require("./DomainPricesChangeDto"), exports);
@@ -310,7 +312,9 @@ __exportStar(require("./UpdateDomainTransferIpsTagInput"), exports);
310
312
  __exportStar(require("./UpdateLeadInput"), exports);
311
313
  __exportStar(require("./UpdateLeadMuteStatusForBuyerInput"), exports);
312
314
  __exportStar(require("./UpdateLeadMuteStatusInput"), exports);
315
+ __exportStar(require("./UpdateLeaseToOwnConfigurationDto"), exports);
313
316
  __exportStar(require("./UpdateOrderInput"), exports);
317
+ __exportStar(require("./UpdateRentConfigurationDto"), exports);
314
318
  __exportStar(require("./UpdateSubscriptionBillingPeriodicityInput"), exports);
315
319
  __exportStar(require("./UpdateSubscriptionInput"), exports);
316
320
  __exportStar(require("./UpdateTaskMuteStatusForBuyerInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.330",
3
+ "version": "0.0.331",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -18,8 +18,10 @@ import type {
18
18
  BadRequestException,
19
19
  BatchImportPreviewDto,
20
20
  BatchUpdateDomainsInput,
21
+ BulkUpdateDomainsWithFiltersInput,
21
22
  DeleteDomainsInput,
22
23
  DomainExchangeRateDto,
24
+ DomainFiltersDto,
23
25
  DomainUrlDto,
24
26
  GetAllDomainTransfers200Response,
25
27
  IntersectionDomainDtoWithHijackerDtoWithAccountDto,
@@ -39,10 +41,14 @@ import {
39
41
  BatchImportPreviewDtoToJSON,
40
42
  BatchUpdateDomainsInputFromJSON,
41
43
  BatchUpdateDomainsInputToJSON,
44
+ BulkUpdateDomainsWithFiltersInputFromJSON,
45
+ BulkUpdateDomainsWithFiltersInputToJSON,
42
46
  DeleteDomainsInputFromJSON,
43
47
  DeleteDomainsInputToJSON,
44
48
  DomainExchangeRateDtoFromJSON,
45
49
  DomainExchangeRateDtoToJSON,
50
+ DomainFiltersDtoFromJSON,
51
+ DomainFiltersDtoToJSON,
46
52
  DomainUrlDtoFromJSON,
47
53
  DomainUrlDtoToJSON,
48
54
  GetAllDomainTransfers200ResponseFromJSON,
@@ -80,6 +86,11 @@ export interface DomainsApiBatchUpdateRequest {
80
86
  batchUpdateDomainsInput: BatchUpdateDomainsInput;
81
87
  }
82
88
 
89
+ export interface DomainsApiBulkUpdateDomainsWithFiltersRequest {
90
+ bulkUpdateDomainsWithFiltersInput: BulkUpdateDomainsWithFiltersInput;
91
+ filter?: object;
92
+ }
93
+
83
94
  export interface DomainsApiCheckDnsRequest {
84
95
  domainId: string;
85
96
  }
@@ -107,6 +118,10 @@ export interface DomainsApiGetDomainExchangeRateRequest {
107
118
  domainId: string;
108
119
  }
109
120
 
121
+ export interface DomainsApiGetDomainFiltersCurrenciesRequest {
122
+ filter?: object;
123
+ }
124
+
110
125
  export interface DomainsApiGetDomainTransferRequest {
111
126
  transferId: string;
112
127
  }
@@ -298,6 +313,53 @@ export class DomainsApi extends runtime.BaseAPI {
298
313
  await this.batchUpdateRaw(requestParameters, initOverrides);
299
314
  }
300
315
 
316
+ /**
317
+ *
318
+ */
319
+ async bulkUpdateDomainsWithFiltersRaw(requestParameters: DomainsApiBulkUpdateDomainsWithFiltersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
320
+ if (requestParameters['bulkUpdateDomainsWithFiltersInput'] == null) {
321
+ throw new runtime.RequiredError(
322
+ 'bulkUpdateDomainsWithFiltersInput',
323
+ 'Required parameter "bulkUpdateDomainsWithFiltersInput" was null or undefined when calling bulkUpdateDomainsWithFilters().'
324
+ );
325
+ }
326
+
327
+ const queryParameters: any = {};
328
+
329
+ if (requestParameters['filter'] != null) {
330
+ queryParameters['filter'] = requestParameters['filter'];
331
+ }
332
+
333
+ const headerParameters: runtime.HTTPHeaders = {};
334
+
335
+ headerParameters['Content-Type'] = 'application/json';
336
+
337
+ if (this.configuration && this.configuration.accessToken) {
338
+ const token = this.configuration.accessToken;
339
+ const tokenString = await token("bearer", []);
340
+
341
+ if (tokenString) {
342
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
343
+ }
344
+ }
345
+ const response = await this.request({
346
+ path: `/private/domains/bulk-update`,
347
+ method: 'PATCH',
348
+ headers: headerParameters,
349
+ query: queryParameters,
350
+ body: BulkUpdateDomainsWithFiltersInputToJSON(requestParameters['bulkUpdateDomainsWithFiltersInput']),
351
+ }, initOverrides);
352
+
353
+ return new runtime.VoidApiResponse(response);
354
+ }
355
+
356
+ /**
357
+ *
358
+ */
359
+ async bulkUpdateDomainsWithFilters(requestParameters: DomainsApiBulkUpdateDomainsWithFiltersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
360
+ await this.bulkUpdateDomainsWithFiltersRaw(requestParameters, initOverrides);
361
+ }
362
+
301
363
  /**
302
364
  *
303
365
  */
@@ -591,6 +653,78 @@ export class DomainsApi extends runtime.BaseAPI {
591
653
  return await response.value();
592
654
  }
593
655
 
656
+ /**
657
+ *
658
+ */
659
+ async getDomainFiltersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainFiltersDto>> {
660
+ const queryParameters: any = {};
661
+
662
+ const headerParameters: runtime.HTTPHeaders = {};
663
+
664
+ if (this.configuration && this.configuration.accessToken) {
665
+ const token = this.configuration.accessToken;
666
+ const tokenString = await token("bearer", []);
667
+
668
+ if (tokenString) {
669
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
670
+ }
671
+ }
672
+ const response = await this.request({
673
+ path: `/private/domains/filters`,
674
+ method: 'GET',
675
+ headers: headerParameters,
676
+ query: queryParameters,
677
+ }, initOverrides);
678
+
679
+ return new runtime.JSONApiResponse(response, (jsonValue) => DomainFiltersDtoFromJSON(jsonValue));
680
+ }
681
+
682
+ /**
683
+ *
684
+ */
685
+ async getDomainFilters(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainFiltersDto> {
686
+ const response = await this.getDomainFiltersRaw(initOverrides);
687
+ return await response.value();
688
+ }
689
+
690
+ /**
691
+ *
692
+ */
693
+ async getDomainFiltersCurrenciesRaw(requestParameters: DomainsApiGetDomainFiltersCurrenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>> {
694
+ const queryParameters: any = {};
695
+
696
+ if (requestParameters['filter'] != null) {
697
+ queryParameters['filter'] = requestParameters['filter'];
698
+ }
699
+
700
+ const headerParameters: runtime.HTTPHeaders = {};
701
+
702
+ if (this.configuration && this.configuration.accessToken) {
703
+ const token = this.configuration.accessToken;
704
+ const tokenString = await token("bearer", []);
705
+
706
+ if (tokenString) {
707
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
708
+ }
709
+ }
710
+ const response = await this.request({
711
+ path: `/private/domains/filters/currencies`,
712
+ method: 'GET',
713
+ headers: headerParameters,
714
+ query: queryParameters,
715
+ }, initOverrides);
716
+
717
+ return new runtime.JSONApiResponse<any>(response);
718
+ }
719
+
720
+ /**
721
+ *
722
+ */
723
+ async getDomainFiltersCurrencies(requestParameters: DomainsApiGetDomainFiltersCurrenciesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>> {
724
+ const response = await this.getDomainFiltersCurrenciesRaw(requestParameters, initOverrides);
725
+ return await response.value();
726
+ }
727
+
594
728
  /**
595
729
  *
596
730
  */
@@ -0,0 +1,120 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { MoneyDto } from './MoneyDto';
17
+ import {
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ MoneyDtoToJSONTyped,
22
+ } from './MoneyDto';
23
+ import type { UpdateLeaseToOwnConfigurationDto } from './UpdateLeaseToOwnConfigurationDto';
24
+ import {
25
+ UpdateLeaseToOwnConfigurationDtoFromJSON,
26
+ UpdateLeaseToOwnConfigurationDtoFromJSONTyped,
27
+ UpdateLeaseToOwnConfigurationDtoToJSON,
28
+ UpdateLeaseToOwnConfigurationDtoToJSONTyped,
29
+ } from './UpdateLeaseToOwnConfigurationDto';
30
+ import type { UpdateRentConfigurationDto } from './UpdateRentConfigurationDto';
31
+ import {
32
+ UpdateRentConfigurationDtoFromJSON,
33
+ UpdateRentConfigurationDtoFromJSONTyped,
34
+ UpdateRentConfigurationDtoToJSON,
35
+ UpdateRentConfigurationDtoToJSONTyped,
36
+ } from './UpdateRentConfigurationDto';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface BulkUpdateDomainsWithFiltersInput
42
+ */
43
+ export interface BulkUpdateDomainsWithFiltersInput {
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof BulkUpdateDomainsWithFiltersInput
48
+ */
49
+ currencyCode: string;
50
+ /**
51
+ *
52
+ * @type {MoneyDto}
53
+ * @memberof BulkUpdateDomainsWithFiltersInput
54
+ */
55
+ bin?: MoneyDto | null;
56
+ /**
57
+ *
58
+ * @type {MoneyDto}
59
+ * @memberof BulkUpdateDomainsWithFiltersInput
60
+ */
61
+ minOffer?: MoneyDto | null;
62
+ /**
63
+ *
64
+ * @type {UpdateRentConfigurationDto}
65
+ * @memberof BulkUpdateDomainsWithFiltersInput
66
+ */
67
+ rent?: UpdateRentConfigurationDto | null;
68
+ /**
69
+ *
70
+ * @type {UpdateLeaseToOwnConfigurationDto}
71
+ * @memberof BulkUpdateDomainsWithFiltersInput
72
+ */
73
+ leaseToOwn?: UpdateLeaseToOwnConfigurationDto | null;
74
+ }
75
+
76
+ /**
77
+ * Check if a given object implements the BulkUpdateDomainsWithFiltersInput interface.
78
+ */
79
+ export function instanceOfBulkUpdateDomainsWithFiltersInput(value: object): value is BulkUpdateDomainsWithFiltersInput {
80
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
81
+ return true;
82
+ }
83
+
84
+ export function BulkUpdateDomainsWithFiltersInputFromJSON(json: any): BulkUpdateDomainsWithFiltersInput {
85
+ return BulkUpdateDomainsWithFiltersInputFromJSONTyped(json, false);
86
+ }
87
+
88
+ export function BulkUpdateDomainsWithFiltersInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkUpdateDomainsWithFiltersInput {
89
+ if (json == null) {
90
+ return json;
91
+ }
92
+ return {
93
+
94
+ 'currencyCode': json['currencyCode'],
95
+ 'bin': json['bin'] == null ? undefined : MoneyDtoFromJSON(json['bin']),
96
+ 'minOffer': json['minOffer'] == null ? undefined : MoneyDtoFromJSON(json['minOffer']),
97
+ 'rent': json['rent'] == null ? undefined : UpdateRentConfigurationDtoFromJSON(json['rent']),
98
+ 'leaseToOwn': json['leaseToOwn'] == null ? undefined : UpdateLeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
99
+ };
100
+ }
101
+
102
+ export function BulkUpdateDomainsWithFiltersInputToJSON(json: any): BulkUpdateDomainsWithFiltersInput {
103
+ return BulkUpdateDomainsWithFiltersInputToJSONTyped(json, false);
104
+ }
105
+
106
+ export function BulkUpdateDomainsWithFiltersInputToJSONTyped(value?: BulkUpdateDomainsWithFiltersInput | null, ignoreDiscriminator: boolean = false): any {
107
+ if (value == null) {
108
+ return value;
109
+ }
110
+
111
+ return {
112
+
113
+ 'currencyCode': value['currencyCode'],
114
+ 'bin': MoneyDtoToJSON(value['bin']),
115
+ 'minOffer': MoneyDtoToJSON(value['minOffer']),
116
+ 'rent': UpdateRentConfigurationDtoToJSON(value['rent']),
117
+ 'leaseToOwn': UpdateLeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
118
+ };
119
+ }
120
+
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface DomainFiltersDto
20
+ */
21
+ export interface DomainFiltersDto {
22
+ /**
23
+ * List of existing TLDs in the system
24
+ * @type {Array<string>}
25
+ * @memberof DomainFiltersDto
26
+ */
27
+ existingTldList: Array<string>;
28
+ /**
29
+ * List of existing currencies in the system
30
+ * @type {Array<string>}
31
+ * @memberof DomainFiltersDto
32
+ */
33
+ existingCurrencies: Array<string>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the DomainFiltersDto interface.
38
+ */
39
+ export function instanceOfDomainFiltersDto(value: object): value is DomainFiltersDto {
40
+ if (!('existingTldList' in value) || value['existingTldList'] === undefined) return false;
41
+ if (!('existingCurrencies' in value) || value['existingCurrencies'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function DomainFiltersDtoFromJSON(json: any): DomainFiltersDto {
46
+ return DomainFiltersDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function DomainFiltersDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainFiltersDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'existingTldList': json['existingTldList'],
56
+ 'existingCurrencies': json['existingCurrencies'],
57
+ };
58
+ }
59
+
60
+ export function DomainFiltersDtoToJSON(json: any): DomainFiltersDto {
61
+ return DomainFiltersDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function DomainFiltersDtoToJSONTyped(value?: DomainFiltersDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'existingTldList': value['existingTldList'],
72
+ 'existingCurrencies': value['existingCurrencies'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,81 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface UpdateLeaseToOwnConfigurationDto
20
+ */
21
+ export interface UpdateLeaseToOwnConfigurationDto {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof UpdateLeaseToOwnConfigurationDto
26
+ */
27
+ enabled?: boolean;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof UpdateLeaseToOwnConfigurationDto
32
+ */
33
+ minMonths?: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof UpdateLeaseToOwnConfigurationDto
38
+ */
39
+ maxMonths?: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the UpdateLeaseToOwnConfigurationDto interface.
44
+ */
45
+ export function instanceOfUpdateLeaseToOwnConfigurationDto(value: object): value is UpdateLeaseToOwnConfigurationDto {
46
+ return true;
47
+ }
48
+
49
+ export function UpdateLeaseToOwnConfigurationDtoFromJSON(json: any): UpdateLeaseToOwnConfigurationDto {
50
+ return UpdateLeaseToOwnConfigurationDtoFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function UpdateLeaseToOwnConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLeaseToOwnConfigurationDto {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
60
+ 'minMonths': json['minMonths'] == null ? undefined : json['minMonths'],
61
+ 'maxMonths': json['maxMonths'] == null ? undefined : json['maxMonths'],
62
+ };
63
+ }
64
+
65
+ export function UpdateLeaseToOwnConfigurationDtoToJSON(json: any): UpdateLeaseToOwnConfigurationDto {
66
+ return UpdateLeaseToOwnConfigurationDtoToJSONTyped(json, false);
67
+ }
68
+
69
+ export function UpdateLeaseToOwnConfigurationDtoToJSONTyped(value?: UpdateLeaseToOwnConfigurationDto | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'enabled': value['enabled'],
77
+ 'minMonths': value['minMonths'],
78
+ 'maxMonths': value['maxMonths'],
79
+ };
80
+ }
81
+
@@ -0,0 +1,81 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { MoneyDto } from './MoneyDto';
17
+ import {
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ MoneyDtoToJSONTyped,
22
+ } from './MoneyDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface UpdateRentConfigurationDto
28
+ */
29
+ export interface UpdateRentConfigurationDto {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof UpdateRentConfigurationDto
34
+ */
35
+ enabled?: boolean;
36
+ /**
37
+ *
38
+ * @type {MoneyDto}
39
+ * @memberof UpdateRentConfigurationDto
40
+ */
41
+ price?: MoneyDto;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the UpdateRentConfigurationDto interface.
46
+ */
47
+ export function instanceOfUpdateRentConfigurationDto(value: object): value is UpdateRentConfigurationDto {
48
+ return true;
49
+ }
50
+
51
+ export function UpdateRentConfigurationDtoFromJSON(json: any): UpdateRentConfigurationDto {
52
+ return UpdateRentConfigurationDtoFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function UpdateRentConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRentConfigurationDto {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
62
+ 'price': json['price'] == null ? undefined : MoneyDtoFromJSON(json['price']),
63
+ };
64
+ }
65
+
66
+ export function UpdateRentConfigurationDtoToJSON(json: any): UpdateRentConfigurationDto {
67
+ return UpdateRentConfigurationDtoToJSONTyped(json, false);
68
+ }
69
+
70
+ export function UpdateRentConfigurationDtoToJSONTyped(value?: UpdateRentConfigurationDto | null, ignoreDiscriminator: boolean = false): any {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+
75
+ return {
76
+
77
+ 'enabled': value['enabled'],
78
+ 'price': MoneyDtoToJSON(value['price']),
79
+ };
80
+ }
81
+
@@ -51,6 +51,7 @@ export * from './BatchVerifyBuyerLeadsInput';
51
51
  export * from './BillingInformationDto';
52
52
  export * from './BulkMarkBuyerNotificationsAsReadInputDto';
53
53
  export * from './BulkMarkNotificationsAsReadInputDto';
54
+ export * from './BulkUpdateDomainsWithFiltersInput';
54
55
  export * from './BuyerDomainTransferAuthCodeDto';
55
56
  export * from './BuyerDomainTransferListItemDomainDto';
56
57
  export * from './BuyerDomainTransferListItemDto';
@@ -89,6 +90,7 @@ export * from './CursorBasedPageInfo';
89
90
  export * from './CursorBasedPaginationResponse';
90
91
  export * from './DeleteDomainsInput';
91
92
  export * from './DomainExchangeRateDto';
93
+ export * from './DomainFiltersDto';
92
94
  export * from './DomainLeadPriceNegotiatorAiAgentConfigurationDto';
93
95
  export * from './DomainLeadPriceNegotiatorAiAgentConfigurationInput';
94
96
  export * from './DomainPricesChangeDto';
@@ -294,7 +296,9 @@ export * from './UpdateDomainTransferIpsTagInput';
294
296
  export * from './UpdateLeadInput';
295
297
  export * from './UpdateLeadMuteStatusForBuyerInput';
296
298
  export * from './UpdateLeadMuteStatusInput';
299
+ export * from './UpdateLeaseToOwnConfigurationDto';
297
300
  export * from './UpdateOrderInput';
301
+ export * from './UpdateRentConfigurationDto';
298
302
  export * from './UpdateSubscriptionBillingPeriodicityInput';
299
303
  export * from './UpdateSubscriptionInput';
300
304
  export * from './UpdateTaskMuteStatusForBuyerInput';