@randock/nameshift-api-client 0.0.358 → 0.0.360
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.
- package/.openapi-generator/FILES +4 -1
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +23 -1
- package/dist/apis/AdminApi.js +104 -0
- package/dist/models/AdminAccountSettingsInput.d.ts +3 -3
- package/dist/models/AdminAccountSettingsInput.js +3 -3
- package/dist/models/AdminAuctionCommissionByDateRangeInput.d.ts +44 -0
- package/dist/models/AdminAuctionCommissionByDateRangeInput.js +57 -0
- package/dist/models/AdminAuctionConfigurationInput.d.ts +59 -0
- package/dist/models/AdminAuctionConfigurationInput.js +60 -0
- package/dist/models/AuctionCommissionByDateRangeDto.d.ts +44 -0
- package/dist/models/AuctionCommissionByDateRangeDto.js +59 -0
- package/dist/models/AuctionConfigurationDto.d.ts +13 -0
- package/dist/models/AuctionConfigurationDto.js +9 -0
- package/dist/models/MoneyDecimalDto.d.ts +38 -0
- package/dist/models/MoneyDecimalDto.js +55 -0
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.js +4 -1
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +92 -0
- package/src/models/AdminAccountSettingsInput.ts +10 -10
- package/src/models/AdminAuctionCommissionByDateRangeInput.ts +83 -0
- package/src/models/AdminAuctionConfigurationInput.ts +119 -0
- package/src/models/AuctionCommissionByDateRangeDto.ts +84 -0
- package/src/models/AuctionConfigurationDto.ts +25 -0
- package/src/models/MoneyDecimalDto.ts +75 -0
- package/src/models/index.ts +4 -1
- package/dist/models/UpdateAuctionConfigurationDto.d.ts +0 -46
- package/dist/models/UpdateAuctionConfigurationDto.js +0 -55
- package/src/models/UpdateAuctionConfigurationDto.ts +0 -96
package/.openapi-generator/FILES
CHANGED
|
@@ -64,6 +64,8 @@ src/models/AdminAccountSettingsAffiliateCommissionInput.ts
|
|
|
64
64
|
src/models/AdminAccountSettingsAffiliateInput.ts
|
|
65
65
|
src/models/AdminAccountSettingsAffiliateReferralDurationInput.ts
|
|
66
66
|
src/models/AdminAccountSettingsInput.ts
|
|
67
|
+
src/models/AdminAuctionCommissionByDateRangeInput.ts
|
|
68
|
+
src/models/AdminAuctionConfigurationInput.ts
|
|
67
69
|
src/models/AdminBankAccountDto.ts
|
|
68
70
|
src/models/AdminCompanyStatsDto.ts
|
|
69
71
|
src/models/AdminCompanyStatsLedger.ts
|
|
@@ -82,6 +84,7 @@ src/models/AuctionBidInput.ts
|
|
|
82
84
|
src/models/AuctionBidMetricsDto.ts
|
|
83
85
|
src/models/AuctionBuyerDto.ts
|
|
84
86
|
src/models/AuctionBuyerWithTokenDto.ts
|
|
87
|
+
src/models/AuctionCommissionByDateRangeDto.ts
|
|
85
88
|
src/models/AuctionConfigurationDto.ts
|
|
86
89
|
src/models/AuctionDto.ts
|
|
87
90
|
src/models/AuctionDurationDto.ts
|
|
@@ -259,6 +262,7 @@ src/models/MajesticMetrics.ts
|
|
|
259
262
|
src/models/MajesticTopicTrustFlow.ts
|
|
260
263
|
src/models/ManualLeadBuyerDto.ts
|
|
261
264
|
src/models/ManualLeadLeaseToOwnDto.ts
|
|
265
|
+
src/models/MoneyDecimalDto.ts
|
|
262
266
|
src/models/MoneyDto.ts
|
|
263
267
|
src/models/MoneyInput.ts
|
|
264
268
|
src/models/MozMetrics.ts
|
|
@@ -374,7 +378,6 @@ src/models/TimeTableConfigurationDto.ts
|
|
|
374
378
|
src/models/TimeTableConfigurationInput.ts
|
|
375
379
|
src/models/UkBankAccountDetails.ts
|
|
376
380
|
src/models/UpdateAccountBillingInformationInput.ts
|
|
377
|
-
src/models/UpdateAuctionConfigurationDto.ts
|
|
378
381
|
src/models/UpdateAuctionMuteStatusInput.ts
|
|
379
382
|
src/models/UpdateBuyerDomainTransferIpsTagInputDto.ts
|
|
380
383
|
src/models/UpdateBuyerNotificationSettingsInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.360
|
|
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.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.360 --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
|
-
|
|
47
|
+
7829aa320e2173d9bfedf54eaf6e68013a631f1b6c9ff94369c8e9ec72a1582d8aab46b3feae56a38c7a0e05f6a02af3
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
|
|
13
|
+
import type { AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
15
15
|
filter?: object;
|
|
16
16
|
page?: number;
|
|
@@ -34,6 +34,9 @@ export interface AdminApiDownloadInvoiceRequest {
|
|
|
34
34
|
export interface AdminApiGetAccountMeRequest {
|
|
35
35
|
accountId: string;
|
|
36
36
|
}
|
|
37
|
+
export interface AdminApiGetAccountPaymentMethodProfilesRequest {
|
|
38
|
+
accountId: string;
|
|
39
|
+
}
|
|
37
40
|
export interface AdminApiGetAccountSettingsRequest {
|
|
38
41
|
accountId: string;
|
|
39
42
|
}
|
|
@@ -124,6 +127,9 @@ export interface AdminApiPostAdminExecuteDomainTransferStepActionRequest {
|
|
|
124
127
|
export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
|
|
125
128
|
sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
|
|
126
129
|
}
|
|
130
|
+
export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
|
|
131
|
+
accountId: string;
|
|
132
|
+
}
|
|
127
133
|
export interface AdminApiUpdateAccountSettingsRequest {
|
|
128
134
|
accountId: string;
|
|
129
135
|
adminAccountSettingsInput: AdminAccountSettingsInput;
|
|
@@ -186,6 +192,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
186
192
|
*
|
|
187
193
|
*/
|
|
188
194
|
getAccountMe(requestParameters: AdminApiGetAccountMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto>;
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
*/
|
|
198
|
+
getAccountPaymentMethodProfilesRaw(requestParameters: AdminApiGetAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountPaymentMethodProfileDto>>>;
|
|
199
|
+
/**
|
|
200
|
+
*
|
|
201
|
+
*/
|
|
202
|
+
getAccountPaymentMethodProfiles(requestParameters: AdminApiGetAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountPaymentMethodProfileDto>>;
|
|
189
203
|
/**
|
|
190
204
|
*
|
|
191
205
|
*/
|
|
@@ -346,6 +360,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
346
360
|
*
|
|
347
361
|
*/
|
|
348
362
|
postAiPriceNegotiatorAgentChatMessage(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LeadMessageDto>>;
|
|
363
|
+
/**
|
|
364
|
+
*
|
|
365
|
+
*/
|
|
366
|
+
syncAllAccountPaymentMethodProfilesRaw(requestParameters: AdminApiSyncAllAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
367
|
+
/**
|
|
368
|
+
*
|
|
369
|
+
*/
|
|
370
|
+
syncAllAccountPaymentMethodProfiles(requestParameters: AdminApiSyncAllAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
349
371
|
/**
|
|
350
372
|
*
|
|
351
373
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -409,6 +409,59 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
409
409
|
});
|
|
410
410
|
});
|
|
411
411
|
};
|
|
412
|
+
/**
|
|
413
|
+
*
|
|
414
|
+
*/
|
|
415
|
+
AdminApi.prototype.getAccountPaymentMethodProfilesRaw = function (requestParameters, initOverrides) {
|
|
416
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
417
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
418
|
+
return __generator(this, function (_a) {
|
|
419
|
+
switch (_a.label) {
|
|
420
|
+
case 0:
|
|
421
|
+
if (requestParameters['accountId'] == null) {
|
|
422
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getAccountPaymentMethodProfiles().');
|
|
423
|
+
}
|
|
424
|
+
queryParameters = {};
|
|
425
|
+
headerParameters = {};
|
|
426
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
427
|
+
token = this.configuration.accessToken;
|
|
428
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
429
|
+
case 1:
|
|
430
|
+
tokenString = _a.sent();
|
|
431
|
+
if (tokenString) {
|
|
432
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
433
|
+
}
|
|
434
|
+
_a.label = 2;
|
|
435
|
+
case 2: return [4 /*yield*/, this.request({
|
|
436
|
+
path: "/admin/accounts/{accountId}/payment-method-profiles".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
437
|
+
method: 'GET',
|
|
438
|
+
headers: headerParameters,
|
|
439
|
+
query: queryParameters,
|
|
440
|
+
}, initOverrides)];
|
|
441
|
+
case 3:
|
|
442
|
+
response = _a.sent();
|
|
443
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.AccountPaymentMethodProfileDtoFromJSON); })];
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
});
|
|
447
|
+
};
|
|
448
|
+
/**
|
|
449
|
+
*
|
|
450
|
+
*/
|
|
451
|
+
AdminApi.prototype.getAccountPaymentMethodProfiles = function (requestParameters, initOverrides) {
|
|
452
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
453
|
+
var response;
|
|
454
|
+
return __generator(this, function (_a) {
|
|
455
|
+
switch (_a.label) {
|
|
456
|
+
case 0: return [4 /*yield*/, this.getAccountPaymentMethodProfilesRaw(requestParameters, initOverrides)];
|
|
457
|
+
case 1:
|
|
458
|
+
response = _a.sent();
|
|
459
|
+
return [4 /*yield*/, response.value()];
|
|
460
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
});
|
|
464
|
+
};
|
|
412
465
|
/**
|
|
413
466
|
*
|
|
414
467
|
*/
|
|
@@ -1572,6 +1625,57 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
1572
1625
|
});
|
|
1573
1626
|
});
|
|
1574
1627
|
};
|
|
1628
|
+
/**
|
|
1629
|
+
*
|
|
1630
|
+
*/
|
|
1631
|
+
AdminApi.prototype.syncAllAccountPaymentMethodProfilesRaw = function (requestParameters, initOverrides) {
|
|
1632
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1633
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1634
|
+
return __generator(this, function (_a) {
|
|
1635
|
+
switch (_a.label) {
|
|
1636
|
+
case 0:
|
|
1637
|
+
if (requestParameters['accountId'] == null) {
|
|
1638
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling syncAllAccountPaymentMethodProfiles().');
|
|
1639
|
+
}
|
|
1640
|
+
queryParameters = {};
|
|
1641
|
+
headerParameters = {};
|
|
1642
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1643
|
+
token = this.configuration.accessToken;
|
|
1644
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1645
|
+
case 1:
|
|
1646
|
+
tokenString = _a.sent();
|
|
1647
|
+
if (tokenString) {
|
|
1648
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1649
|
+
}
|
|
1650
|
+
_a.label = 2;
|
|
1651
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1652
|
+
path: "/admin/accounts/{accountId}/payment-method-profiles/sync".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
1653
|
+
method: 'POST',
|
|
1654
|
+
headers: headerParameters,
|
|
1655
|
+
query: queryParameters,
|
|
1656
|
+
}, initOverrides)];
|
|
1657
|
+
case 3:
|
|
1658
|
+
response = _a.sent();
|
|
1659
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1660
|
+
}
|
|
1661
|
+
});
|
|
1662
|
+
});
|
|
1663
|
+
};
|
|
1664
|
+
/**
|
|
1665
|
+
*
|
|
1666
|
+
*/
|
|
1667
|
+
AdminApi.prototype.syncAllAccountPaymentMethodProfiles = function (requestParameters, initOverrides) {
|
|
1668
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1669
|
+
return __generator(this, function (_a) {
|
|
1670
|
+
switch (_a.label) {
|
|
1671
|
+
case 0: return [4 /*yield*/, this.syncAllAccountPaymentMethodProfilesRaw(requestParameters, initOverrides)];
|
|
1672
|
+
case 1:
|
|
1673
|
+
_a.sent();
|
|
1674
|
+
return [2 /*return*/];
|
|
1675
|
+
}
|
|
1676
|
+
});
|
|
1677
|
+
});
|
|
1678
|
+
};
|
|
1575
1679
|
/**
|
|
1576
1680
|
*
|
|
1577
1681
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { AdminAccountSettingsAffiliateInput } from './AdminAccountSettingsAffiliateInput';
|
|
13
13
|
import type { AdminAccountCommissionByDateRangeInput } from './AdminAccountCommissionByDateRangeInput';
|
|
14
|
-
import type {
|
|
14
|
+
import type { AdminAuctionConfigurationInput } from './AdminAuctionConfigurationInput';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
@@ -56,10 +56,10 @@ export interface AdminAccountSettingsInput {
|
|
|
56
56
|
domainAffiliate?: AdminAccountSettingsAffiliateInput;
|
|
57
57
|
/**
|
|
58
58
|
*
|
|
59
|
-
* @type {
|
|
59
|
+
* @type {AdminAuctionConfigurationInput}
|
|
60
60
|
* @memberof AdminAccountSettingsInput
|
|
61
61
|
*/
|
|
62
|
-
auctionConfiguration?:
|
|
62
|
+
auctionConfiguration?: AdminAuctionConfigurationInput;
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
* Check if a given object implements the AdminAccountSettingsInput interface.
|
|
@@ -20,7 +20,7 @@ exports.AdminAccountSettingsInputToJSON = AdminAccountSettingsInputToJSON;
|
|
|
20
20
|
exports.AdminAccountSettingsInputToJSONTyped = AdminAccountSettingsInputToJSONTyped;
|
|
21
21
|
var AdminAccountSettingsAffiliateInput_1 = require("./AdminAccountSettingsAffiliateInput");
|
|
22
22
|
var AdminAccountCommissionByDateRangeInput_1 = require("./AdminAccountCommissionByDateRangeInput");
|
|
23
|
-
var
|
|
23
|
+
var AdminAuctionConfigurationInput_1 = require("./AdminAuctionConfigurationInput");
|
|
24
24
|
/**
|
|
25
25
|
* Check if a given object implements the AdminAccountSettingsInput interface.
|
|
26
26
|
*/
|
|
@@ -41,7 +41,7 @@ function AdminAccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'commissionsByDateRange': json['commissionsByDateRange'] == null ? undefined : (json['commissionsByDateRange'].map(AdminAccountCommissionByDateRangeInput_1.AdminAccountCommissionByDateRangeInputFromJSON)),
|
|
42
42
|
'affiliate': json['affiliate'] == null ? undefined : (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputFromJSON)(json['affiliate']),
|
|
43
43
|
'domainAffiliate': json['domainAffiliate'] == null ? undefined : (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputFromJSON)(json['domainAffiliate']),
|
|
44
|
-
'auctionConfiguration': json['auctionConfiguration'] == null ? undefined : (0,
|
|
44
|
+
'auctionConfiguration': json['auctionConfiguration'] == null ? undefined : (0, AdminAuctionConfigurationInput_1.AdminAuctionConfigurationInputFromJSON)(json['auctionConfiguration']),
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
function AdminAccountSettingsInputToJSON(json) {
|
|
@@ -59,6 +59,6 @@ function AdminAccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
59
59
|
'commissionsByDateRange': value['commissionsByDateRange'] == null ? undefined : (value['commissionsByDateRange'].map(AdminAccountCommissionByDateRangeInput_1.AdminAccountCommissionByDateRangeInputToJSON)),
|
|
60
60
|
'affiliate': (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputToJSON)(value['affiliate']),
|
|
61
61
|
'domainAffiliate': (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputToJSON)(value['domainAffiliate']),
|
|
62
|
-
'auctionConfiguration': (0,
|
|
62
|
+
'auctionConfiguration': (0, AdminAuctionConfigurationInput_1.AdminAuctionConfigurationInputToJSON)(value['auctionConfiguration']),
|
|
63
63
|
};
|
|
64
64
|
}
|
|
@@ -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 AdminAuctionCommissionByDateRangeInput
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminAuctionCommissionByDateRangeInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminAuctionCommissionByDateRangeInput
|
|
22
|
+
*/
|
|
23
|
+
startDate: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminAuctionCommissionByDateRangeInput
|
|
28
|
+
*/
|
|
29
|
+
endDate?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AdminAuctionCommissionByDateRangeInput
|
|
34
|
+
*/
|
|
35
|
+
commissionPercentage: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AdminAuctionCommissionByDateRangeInput interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAdminAuctionCommissionByDateRangeInput(value: object): value is AdminAuctionCommissionByDateRangeInput;
|
|
41
|
+
export declare function AdminAuctionCommissionByDateRangeInputFromJSON(json: any): AdminAuctionCommissionByDateRangeInput;
|
|
42
|
+
export declare function AdminAuctionCommissionByDateRangeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAuctionCommissionByDateRangeInput;
|
|
43
|
+
export declare function AdminAuctionCommissionByDateRangeInputToJSON(json: any): AdminAuctionCommissionByDateRangeInput;
|
|
44
|
+
export declare function AdminAuctionCommissionByDateRangeInputToJSONTyped(value?: AdminAuctionCommissionByDateRangeInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfAdminAuctionCommissionByDateRangeInput = instanceOfAdminAuctionCommissionByDateRangeInput;
|
|
17
|
+
exports.AdminAuctionCommissionByDateRangeInputFromJSON = AdminAuctionCommissionByDateRangeInputFromJSON;
|
|
18
|
+
exports.AdminAuctionCommissionByDateRangeInputFromJSONTyped = AdminAuctionCommissionByDateRangeInputFromJSONTyped;
|
|
19
|
+
exports.AdminAuctionCommissionByDateRangeInputToJSON = AdminAuctionCommissionByDateRangeInputToJSON;
|
|
20
|
+
exports.AdminAuctionCommissionByDateRangeInputToJSONTyped = AdminAuctionCommissionByDateRangeInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminAuctionCommissionByDateRangeInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminAuctionCommissionByDateRangeInput(value) {
|
|
25
|
+
if (!('startDate' in value) || value['startDate'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AdminAuctionCommissionByDateRangeInputFromJSON(json) {
|
|
32
|
+
return AdminAuctionCommissionByDateRangeInputFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AdminAuctionCommissionByDateRangeInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'startDate': json['startDate'],
|
|
40
|
+
'endDate': json['endDate'] == null ? undefined : json['endDate'],
|
|
41
|
+
'commissionPercentage': json['commissionPercentage'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function AdminAuctionCommissionByDateRangeInputToJSON(json) {
|
|
45
|
+
return AdminAuctionCommissionByDateRangeInputToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AdminAuctionCommissionByDateRangeInputToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'startDate': value['startDate'],
|
|
54
|
+
'endDate': value['endDate'],
|
|
55
|
+
'commissionPercentage': value['commissionPercentage'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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 { AuctionDurationDto } from './AuctionDurationDto';
|
|
13
|
+
import type { AdminAuctionCommissionByDateRangeInput } from './AdminAuctionCommissionByDateRangeInput';
|
|
14
|
+
import type { MoneyDecimalDto } from './MoneyDecimalDto';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface AdminAuctionConfigurationInput
|
|
19
|
+
*/
|
|
20
|
+
export interface AdminAuctionConfigurationInput {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {AuctionDurationDto}
|
|
24
|
+
* @memberof AdminAuctionConfigurationInput
|
|
25
|
+
*/
|
|
26
|
+
defaultDurationFromLead?: AuctionDurationDto;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof AdminAuctionConfigurationInput
|
|
31
|
+
*/
|
|
32
|
+
defaultInitialBidAmount?: number;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {MoneyDecimalDto}
|
|
36
|
+
* @memberof AdminAuctionConfigurationInput
|
|
37
|
+
*/
|
|
38
|
+
paidAuctionPrice?: MoneyDecimalDto;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof AdminAuctionConfigurationInput
|
|
43
|
+
*/
|
|
44
|
+
commissionPercentage?: number;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {Array<AdminAuctionCommissionByDateRangeInput>}
|
|
48
|
+
* @memberof AdminAuctionConfigurationInput
|
|
49
|
+
*/
|
|
50
|
+
commissionsByDateRange?: Array<AdminAuctionCommissionByDateRangeInput>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the AdminAuctionConfigurationInput interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfAdminAuctionConfigurationInput(value: object): value is AdminAuctionConfigurationInput;
|
|
56
|
+
export declare function AdminAuctionConfigurationInputFromJSON(json: any): AdminAuctionConfigurationInput;
|
|
57
|
+
export declare function AdminAuctionConfigurationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAuctionConfigurationInput;
|
|
58
|
+
export declare function AdminAuctionConfigurationInputToJSON(json: any): AdminAuctionConfigurationInput;
|
|
59
|
+
export declare function AdminAuctionConfigurationInputToJSONTyped(value?: AdminAuctionConfigurationInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.instanceOfAdminAuctionConfigurationInput = instanceOfAdminAuctionConfigurationInput;
|
|
17
|
+
exports.AdminAuctionConfigurationInputFromJSON = AdminAuctionConfigurationInputFromJSON;
|
|
18
|
+
exports.AdminAuctionConfigurationInputFromJSONTyped = AdminAuctionConfigurationInputFromJSONTyped;
|
|
19
|
+
exports.AdminAuctionConfigurationInputToJSON = AdminAuctionConfigurationInputToJSON;
|
|
20
|
+
exports.AdminAuctionConfigurationInputToJSONTyped = AdminAuctionConfigurationInputToJSONTyped;
|
|
21
|
+
var AuctionDurationDto_1 = require("./AuctionDurationDto");
|
|
22
|
+
var AdminAuctionCommissionByDateRangeInput_1 = require("./AdminAuctionCommissionByDateRangeInput");
|
|
23
|
+
var MoneyDecimalDto_1 = require("./MoneyDecimalDto");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the AdminAuctionConfigurationInput interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfAdminAuctionConfigurationInput(value) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AdminAuctionConfigurationInputFromJSON(json) {
|
|
31
|
+
return AdminAuctionConfigurationInputFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AdminAuctionConfigurationInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'defaultDurationFromLead': json['defaultDurationFromLead'] == null ? undefined : (0, AuctionDurationDto_1.AuctionDurationDtoFromJSON)(json['defaultDurationFromLead']),
|
|
39
|
+
'defaultInitialBidAmount': json['defaultInitialBidAmount'] == null ? undefined : json['defaultInitialBidAmount'],
|
|
40
|
+
'paidAuctionPrice': json['paidAuctionPrice'] == null ? undefined : (0, MoneyDecimalDto_1.MoneyDecimalDtoFromJSON)(json['paidAuctionPrice']),
|
|
41
|
+
'commissionPercentage': json['commissionPercentage'] == null ? undefined : json['commissionPercentage'],
|
|
42
|
+
'commissionsByDateRange': json['commissionsByDateRange'] == null ? undefined : (json['commissionsByDateRange'].map(AdminAuctionCommissionByDateRangeInput_1.AdminAuctionCommissionByDateRangeInputFromJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function AdminAuctionConfigurationInputToJSON(json) {
|
|
46
|
+
return AdminAuctionConfigurationInputToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function AdminAuctionConfigurationInputToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'defaultDurationFromLead': (0, AuctionDurationDto_1.AuctionDurationDtoToJSON)(value['defaultDurationFromLead']),
|
|
55
|
+
'defaultInitialBidAmount': value['defaultInitialBidAmount'],
|
|
56
|
+
'paidAuctionPrice': (0, MoneyDecimalDto_1.MoneyDecimalDtoToJSON)(value['paidAuctionPrice']),
|
|
57
|
+
'commissionPercentage': value['commissionPercentage'],
|
|
58
|
+
'commissionsByDateRange': value['commissionsByDateRange'] == null ? undefined : (value['commissionsByDateRange'].map(AdminAuctionCommissionByDateRangeInput_1.AdminAuctionCommissionByDateRangeInputToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -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 AuctionCommissionByDateRangeDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AuctionCommissionByDateRangeDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AuctionCommissionByDateRangeDto
|
|
22
|
+
*/
|
|
23
|
+
start: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AuctionCommissionByDateRangeDto
|
|
28
|
+
*/
|
|
29
|
+
end: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AuctionCommissionByDateRangeDto
|
|
34
|
+
*/
|
|
35
|
+
commissionPercentage: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AuctionCommissionByDateRangeDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAuctionCommissionByDateRangeDto(value: object): value is AuctionCommissionByDateRangeDto;
|
|
41
|
+
export declare function AuctionCommissionByDateRangeDtoFromJSON(json: any): AuctionCommissionByDateRangeDto;
|
|
42
|
+
export declare function AuctionCommissionByDateRangeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionCommissionByDateRangeDto;
|
|
43
|
+
export declare function AuctionCommissionByDateRangeDtoToJSON(json: any): AuctionCommissionByDateRangeDto;
|
|
44
|
+
export declare function AuctionCommissionByDateRangeDtoToJSONTyped(value?: AuctionCommissionByDateRangeDto | null, ignoreDiscriminator?: boolean): 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.instanceOfAuctionCommissionByDateRangeDto = instanceOfAuctionCommissionByDateRangeDto;
|
|
17
|
+
exports.AuctionCommissionByDateRangeDtoFromJSON = AuctionCommissionByDateRangeDtoFromJSON;
|
|
18
|
+
exports.AuctionCommissionByDateRangeDtoFromJSONTyped = AuctionCommissionByDateRangeDtoFromJSONTyped;
|
|
19
|
+
exports.AuctionCommissionByDateRangeDtoToJSON = AuctionCommissionByDateRangeDtoToJSON;
|
|
20
|
+
exports.AuctionCommissionByDateRangeDtoToJSONTyped = AuctionCommissionByDateRangeDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AuctionCommissionByDateRangeDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAuctionCommissionByDateRangeDto(value) {
|
|
25
|
+
if (!('start' in value) || value['start'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('end' in value) || value['end'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function AuctionCommissionByDateRangeDtoFromJSON(json) {
|
|
34
|
+
return AuctionCommissionByDateRangeDtoFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function AuctionCommissionByDateRangeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'start': json['start'],
|
|
42
|
+
'end': json['end'],
|
|
43
|
+
'commissionPercentage': json['commissionPercentage'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function AuctionCommissionByDateRangeDtoToJSON(json) {
|
|
47
|
+
return AuctionCommissionByDateRangeDtoToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function AuctionCommissionByDateRangeDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'start': value['start'],
|
|
56
|
+
'end': value['end'],
|
|
57
|
+
'commissionPercentage': value['commissionPercentage'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { AuctionDurationDto } from './AuctionDurationDto';
|
|
13
|
+
import type { AuctionCommissionByDateRangeDto } from './AuctionCommissionByDateRangeDto';
|
|
13
14
|
import type { MoneyDto } from './MoneyDto';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -35,6 +36,18 @@ export interface AuctionConfigurationDto {
|
|
|
35
36
|
* @memberof AuctionConfigurationDto
|
|
36
37
|
*/
|
|
37
38
|
paidAuctionPrice: MoneyDto;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof AuctionConfigurationDto
|
|
43
|
+
*/
|
|
44
|
+
commissionPercentage: number;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {Array<AuctionCommissionByDateRangeDto>}
|
|
48
|
+
* @memberof AuctionConfigurationDto
|
|
49
|
+
*/
|
|
50
|
+
commissionsByDateRange: Array<AuctionCommissionByDateRangeDto>;
|
|
38
51
|
}
|
|
39
52
|
/**
|
|
40
53
|
* Check if a given object implements the AuctionConfigurationDto interface.
|