@randock/nameshift-api-client 0.0.334 → 0.0.336
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 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +15 -1
- package/dist/apis/AdminApi.js +63 -0
- package/dist/models/AuctionDto.d.ts +6 -0
- package/dist/models/AuctionDto.js +4 -0
- package/dist/models/AuctionListItemDto.d.ts +111 -0
- package/dist/models/AuctionListItemDto.js +108 -0
- package/dist/models/AuctionListItemDtoDomainInformation.d.ts +44 -0
- package/dist/models/AuctionListItemDtoDomainInformation.js +59 -0
- package/dist/models/AuctionListItemDtoSellerAccount.d.ts +50 -0
- package/dist/models/AuctionListItemDtoSellerAccount.js +63 -0
- package/dist/models/BuyerNotificationDto.d.ts +2 -0
- package/dist/models/BuyerNotificationDto.js +3 -1
- package/dist/models/BuyerNotificationListItemDto.d.ts +2 -0
- package/dist/models/BuyerNotificationListItemDto.js +3 -1
- package/dist/models/GetAllAuctions200Response.d.ts +47 -0
- package/dist/models/GetAllAuctions200Response.js +62 -0
- package/dist/models/OrderListItemDto.d.ts +6 -0
- package/dist/models/OrderListItemDto.js +4 -0
- package/dist/models/UserNotificationDto.d.ts +2 -0
- package/dist/models/UserNotificationDto.js +3 -1
- package/dist/models/UserNotificationListItemDto.d.ts +2 -0
- package/dist/models/UserNotificationListItemDto.js +3 -1
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +60 -0
- package/src/models/AuctionDto.ts +9 -0
- package/src/models/AuctionListItemDto.ts +200 -0
- package/src/models/AuctionListItemDtoDomainInformation.ts +84 -0
- package/src/models/AuctionListItemDtoSellerAccount.ts +93 -0
- package/src/models/BuyerNotificationDto.ts +3 -1
- package/src/models/BuyerNotificationListItemDto.ts +3 -1
- package/src/models/GetAllAuctions200Response.ts +106 -0
- package/src/models/OrderListItemDto.ts +9 -0
- package/src/models/UserNotificationDto.ts +3 -1
- package/src/models/UserNotificationListItemDto.ts +3 -1
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -78,6 +78,9 @@ src/models/AuctionBidMetricsDto.ts
|
|
|
78
78
|
src/models/AuctionBuyerDto.ts
|
|
79
79
|
src/models/AuctionBuyerWithTokenDto.ts
|
|
80
80
|
src/models/AuctionDto.ts
|
|
81
|
+
src/models/AuctionListItemDto.ts
|
|
82
|
+
src/models/AuctionListItemDtoDomainInformation.ts
|
|
83
|
+
src/models/AuctionListItemDtoSellerAccount.ts
|
|
81
84
|
src/models/BadRequestException.ts
|
|
82
85
|
src/models/BatchDeleteBuyerLeadsInput.ts
|
|
83
86
|
src/models/BatchImportPreviewDto.ts
|
|
@@ -164,6 +167,7 @@ src/models/DomainUrlDto.ts
|
|
|
164
167
|
src/models/EppBatchUpdateInput.ts
|
|
165
168
|
src/models/ForgotPasswordRequestInput.ts
|
|
166
169
|
src/models/GetAllAffiliateCommissions200Response.ts
|
|
170
|
+
src/models/GetAllAuctions200Response.ts
|
|
167
171
|
src/models/GetAllDomainTransfers200Response.ts
|
|
168
172
|
src/models/GetAllInvoices200Response.ts
|
|
169
173
|
src/models/GetAllOrders200Response.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.336
|
|
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.336 --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
|
+
5f3fa2441320299d8b72dd725d1fd5d46e2bb12b2d919a2e2e87b38c31d14256cf96f687632b8b1b4906c8f7e08e5fa3
|
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, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
|
|
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';
|
|
14
14
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
15
15
|
filter?: object;
|
|
16
16
|
page?: number;
|
|
@@ -43,6 +43,12 @@ export interface AdminApiGetAdminDomainTransferDetailsRequest {
|
|
|
43
43
|
export interface AdminApiGetAllAccountsSalesCountRequest {
|
|
44
44
|
dateRange?: any | null;
|
|
45
45
|
}
|
|
46
|
+
export interface AdminApiGetAllAuctionsRequest {
|
|
47
|
+
filter?: object;
|
|
48
|
+
page?: number;
|
|
49
|
+
limit?: number;
|
|
50
|
+
sortBy?: Array<string>;
|
|
51
|
+
}
|
|
46
52
|
export interface AdminApiGetAllInvoicesRequest {
|
|
47
53
|
filter?: object;
|
|
48
54
|
page?: number;
|
|
@@ -204,6 +210,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
204
210
|
*
|
|
205
211
|
*/
|
|
206
212
|
getAllAccountsSalesCount(requestParameters?: AdminApiGetAllAccountsSalesCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesCountStatsItemDto>>;
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
*/
|
|
216
|
+
getAllAuctionsRaw(requestParameters: AdminApiGetAllAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllAuctions200Response>>;
|
|
217
|
+
/**
|
|
218
|
+
*
|
|
219
|
+
*/
|
|
220
|
+
getAllAuctions(requestParameters?: AdminApiGetAllAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllAuctions200Response>;
|
|
207
221
|
/**
|
|
208
222
|
*
|
|
209
223
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -569,6 +569,69 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
569
569
|
});
|
|
570
570
|
});
|
|
571
571
|
};
|
|
572
|
+
/**
|
|
573
|
+
*
|
|
574
|
+
*/
|
|
575
|
+
AdminApi.prototype.getAllAuctionsRaw = function (requestParameters, initOverrides) {
|
|
576
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
577
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
578
|
+
return __generator(this, function (_a) {
|
|
579
|
+
switch (_a.label) {
|
|
580
|
+
case 0:
|
|
581
|
+
queryParameters = {};
|
|
582
|
+
if (requestParameters['filter'] != null) {
|
|
583
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
584
|
+
}
|
|
585
|
+
if (requestParameters['page'] != null) {
|
|
586
|
+
queryParameters['page'] = requestParameters['page'];
|
|
587
|
+
}
|
|
588
|
+
if (requestParameters['limit'] != null) {
|
|
589
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
590
|
+
}
|
|
591
|
+
if (requestParameters['sortBy'] != null) {
|
|
592
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
593
|
+
}
|
|
594
|
+
headerParameters = {};
|
|
595
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
596
|
+
token = this.configuration.accessToken;
|
|
597
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
598
|
+
case 1:
|
|
599
|
+
tokenString = _a.sent();
|
|
600
|
+
if (tokenString) {
|
|
601
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
602
|
+
}
|
|
603
|
+
_a.label = 2;
|
|
604
|
+
case 2: return [4 /*yield*/, this.request({
|
|
605
|
+
path: "/admin/auctions",
|
|
606
|
+
method: 'GET',
|
|
607
|
+
headers: headerParameters,
|
|
608
|
+
query: queryParameters,
|
|
609
|
+
}, initOverrides)];
|
|
610
|
+
case 3:
|
|
611
|
+
response = _a.sent();
|
|
612
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllAuctions200ResponseFromJSON)(jsonValue); })];
|
|
613
|
+
}
|
|
614
|
+
});
|
|
615
|
+
});
|
|
616
|
+
};
|
|
617
|
+
/**
|
|
618
|
+
*
|
|
619
|
+
*/
|
|
620
|
+
AdminApi.prototype.getAllAuctions = function () {
|
|
621
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
622
|
+
var response;
|
|
623
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
624
|
+
return __generator(this, function (_a) {
|
|
625
|
+
switch (_a.label) {
|
|
626
|
+
case 0: return [4 /*yield*/, this.getAllAuctionsRaw(requestParameters, initOverrides)];
|
|
627
|
+
case 1:
|
|
628
|
+
response = _a.sent();
|
|
629
|
+
return [4 /*yield*/, response.value()];
|
|
630
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
631
|
+
}
|
|
632
|
+
});
|
|
633
|
+
});
|
|
634
|
+
};
|
|
572
635
|
/**
|
|
573
636
|
*
|
|
574
637
|
*/
|
|
@@ -53,6 +53,12 @@ export interface AuctionDto {
|
|
|
53
53
|
* @memberof AuctionDto
|
|
54
54
|
*/
|
|
55
55
|
endDate: Date;
|
|
56
|
+
/**
|
|
57
|
+
* Auction finished
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
* @memberof AuctionDto
|
|
60
|
+
*/
|
|
61
|
+
finished: boolean;
|
|
56
62
|
/**
|
|
57
63
|
* Auction latestBids bids
|
|
58
64
|
* @type {Array<AuctionBidDto>}
|
|
@@ -36,6 +36,8 @@ function instanceOfAuctionDto(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('endDate' in value) || value['endDate'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
+
if (!('finished' in value) || value['finished'] === undefined)
|
|
40
|
+
return false;
|
|
39
41
|
if (!('latestBids' in value) || value['latestBids'] === undefined)
|
|
40
42
|
return false;
|
|
41
43
|
if (!('needsPhoneVerification' in value) || value['needsPhoneVerification'] === undefined)
|
|
@@ -58,6 +60,7 @@ function AuctionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'highestBid': (0, MoneyDto_1.MoneyDtoFromJSON)(json['highestBid']),
|
|
59
61
|
'startDate': (new Date(json['startDate'])),
|
|
60
62
|
'endDate': (new Date(json['endDate'])),
|
|
63
|
+
'finished': json['finished'],
|
|
61
64
|
'latestBids': (json['latestBids'].map(AuctionBidDto_1.AuctionBidDtoFromJSON)),
|
|
62
65
|
'needsPhoneVerification': json['needsPhoneVerification'],
|
|
63
66
|
'needsKyc': json['needsKyc'],
|
|
@@ -78,6 +81,7 @@ function AuctionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
78
81
|
'highestBid': (0, MoneyDto_1.MoneyDtoToJSON)(value['highestBid']),
|
|
79
82
|
'startDate': ((value['startDate']).toISOString()),
|
|
80
83
|
'endDate': ((value['endDate']).toISOString()),
|
|
84
|
+
'finished': value['finished'],
|
|
81
85
|
'latestBids': (value['latestBids'].map(AuctionBidDto_1.AuctionBidDtoToJSON)),
|
|
82
86
|
'needsPhoneVerification': value['needsPhoneVerification'],
|
|
83
87
|
'needsKyc': value['needsKyc'],
|
|
@@ -0,0 +1,111 @@
|
|
|
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 { AuctionListItemDtoDomainInformation } from './AuctionListItemDtoDomainInformation';
|
|
13
|
+
import type { MoneyDto } from './MoneyDto';
|
|
14
|
+
import type { AuctionListItemDtoSellerAccount } from './AuctionListItemDtoSellerAccount';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface AuctionListItemDto
|
|
19
|
+
*/
|
|
20
|
+
export interface AuctionListItemDto {
|
|
21
|
+
/**
|
|
22
|
+
* Auction Id
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof AuctionListItemDto
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* Auction status
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof AuctionListItemDto
|
|
31
|
+
*/
|
|
32
|
+
status: AuctionListItemDtoStatusEnum;
|
|
33
|
+
/**
|
|
34
|
+
* Auction minimum bid
|
|
35
|
+
* @type {MoneyDto}
|
|
36
|
+
* @memberof AuctionListItemDto
|
|
37
|
+
*/
|
|
38
|
+
minimumBid: MoneyDto;
|
|
39
|
+
/**
|
|
40
|
+
* Auction reserve price
|
|
41
|
+
* @type {MoneyDto}
|
|
42
|
+
* @memberof AuctionListItemDto
|
|
43
|
+
*/
|
|
44
|
+
reservePrice: MoneyDto | null;
|
|
45
|
+
/**
|
|
46
|
+
* Auction highest bid
|
|
47
|
+
* @type {MoneyDto}
|
|
48
|
+
* @memberof AuctionListItemDto
|
|
49
|
+
*/
|
|
50
|
+
highestBid: MoneyDto | null;
|
|
51
|
+
/**
|
|
52
|
+
* Auction start date
|
|
53
|
+
* @type {Date}
|
|
54
|
+
* @memberof AuctionListItemDto
|
|
55
|
+
*/
|
|
56
|
+
startDate: Date;
|
|
57
|
+
/**
|
|
58
|
+
* Auction end date
|
|
59
|
+
* @type {Date}
|
|
60
|
+
* @memberof AuctionListItemDto
|
|
61
|
+
*/
|
|
62
|
+
endDate: Date;
|
|
63
|
+
/**
|
|
64
|
+
* Auction finished at
|
|
65
|
+
* @type {Date}
|
|
66
|
+
* @memberof AuctionListItemDto
|
|
67
|
+
*/
|
|
68
|
+
finishedAt: Date | null;
|
|
69
|
+
/**
|
|
70
|
+
* Auction creation date
|
|
71
|
+
* @type {Date}
|
|
72
|
+
* @memberof AuctionListItemDto
|
|
73
|
+
*/
|
|
74
|
+
createdAt: Date;
|
|
75
|
+
/**
|
|
76
|
+
* Auction domain information
|
|
77
|
+
* @type {AuctionListItemDtoDomainInformation}
|
|
78
|
+
* @memberof AuctionListItemDto
|
|
79
|
+
*/
|
|
80
|
+
domain: AuctionListItemDtoDomainInformation;
|
|
81
|
+
/**
|
|
82
|
+
* Auction seller account information
|
|
83
|
+
* @type {AuctionListItemDtoSellerAccount}
|
|
84
|
+
* @memberof AuctionListItemDto
|
|
85
|
+
*/
|
|
86
|
+
sellerAccount: AuctionListItemDtoSellerAccount;
|
|
87
|
+
/**
|
|
88
|
+
* Auction number of bids
|
|
89
|
+
* @type {number}
|
|
90
|
+
* @memberof AuctionListItemDto
|
|
91
|
+
*/
|
|
92
|
+
numberOfBids: number;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @export
|
|
96
|
+
*/
|
|
97
|
+
export declare const AuctionListItemDtoStatusEnum: {
|
|
98
|
+
readonly SCHEDULED: "scheduled";
|
|
99
|
+
readonly ACTIVE: "active";
|
|
100
|
+
readonly ENDED: "ended";
|
|
101
|
+
readonly FINISHED: "finished";
|
|
102
|
+
};
|
|
103
|
+
export type AuctionListItemDtoStatusEnum = typeof AuctionListItemDtoStatusEnum[keyof typeof AuctionListItemDtoStatusEnum];
|
|
104
|
+
/**
|
|
105
|
+
* Check if a given object implements the AuctionListItemDto interface.
|
|
106
|
+
*/
|
|
107
|
+
export declare function instanceOfAuctionListItemDto(value: object): value is AuctionListItemDto;
|
|
108
|
+
export declare function AuctionListItemDtoFromJSON(json: any): AuctionListItemDto;
|
|
109
|
+
export declare function AuctionListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionListItemDto;
|
|
110
|
+
export declare function AuctionListItemDtoToJSON(json: any): AuctionListItemDto;
|
|
111
|
+
export declare function AuctionListItemDtoToJSONTyped(value?: AuctionListItemDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,108 @@
|
|
|
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.AuctionListItemDtoStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfAuctionListItemDto = instanceOfAuctionListItemDto;
|
|
18
|
+
exports.AuctionListItemDtoFromJSON = AuctionListItemDtoFromJSON;
|
|
19
|
+
exports.AuctionListItemDtoFromJSONTyped = AuctionListItemDtoFromJSONTyped;
|
|
20
|
+
exports.AuctionListItemDtoToJSON = AuctionListItemDtoToJSON;
|
|
21
|
+
exports.AuctionListItemDtoToJSONTyped = AuctionListItemDtoToJSONTyped;
|
|
22
|
+
var AuctionListItemDtoDomainInformation_1 = require("./AuctionListItemDtoDomainInformation");
|
|
23
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
24
|
+
var AuctionListItemDtoSellerAccount_1 = require("./AuctionListItemDtoSellerAccount");
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.AuctionListItemDtoStatusEnum = {
|
|
29
|
+
SCHEDULED: 'scheduled',
|
|
30
|
+
ACTIVE: 'active',
|
|
31
|
+
ENDED: 'ended',
|
|
32
|
+
FINISHED: 'finished'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the AuctionListItemDto interface.
|
|
36
|
+
*/
|
|
37
|
+
function instanceOfAuctionListItemDto(value) {
|
|
38
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('minimumBid' in value) || value['minimumBid'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('reservePrice' in value) || value['reservePrice'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('highestBid' in value) || value['highestBid'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('startDate' in value) || value['startDate'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('endDate' in value) || value['endDate'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('finishedAt' in value) || value['finishedAt'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('domain' in value) || value['domain'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('sellerAccount' in value) || value['sellerAccount'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('numberOfBids' in value) || value['numberOfBids'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
function AuctionListItemDtoFromJSON(json) {
|
|
65
|
+
return AuctionListItemDtoFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
function AuctionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'id': json['id'],
|
|
73
|
+
'status': json['status'],
|
|
74
|
+
'minimumBid': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minimumBid']),
|
|
75
|
+
'reservePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['reservePrice']),
|
|
76
|
+
'highestBid': (0, MoneyDto_1.MoneyDtoFromJSON)(json['highestBid']),
|
|
77
|
+
'startDate': (new Date(json['startDate'])),
|
|
78
|
+
'endDate': (new Date(json['endDate'])),
|
|
79
|
+
'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
|
|
80
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
81
|
+
'domain': (0, AuctionListItemDtoDomainInformation_1.AuctionListItemDtoDomainInformationFromJSON)(json['domain']),
|
|
82
|
+
'sellerAccount': (0, AuctionListItemDtoSellerAccount_1.AuctionListItemDtoSellerAccountFromJSON)(json['sellerAccount']),
|
|
83
|
+
'numberOfBids': json['numberOfBids'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function AuctionListItemDtoToJSON(json) {
|
|
87
|
+
return AuctionListItemDtoToJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
function AuctionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
90
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
91
|
+
if (value == null) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'status': value['status'],
|
|
97
|
+
'minimumBid': (0, MoneyDto_1.MoneyDtoToJSON)(value['minimumBid']),
|
|
98
|
+
'reservePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['reservePrice']),
|
|
99
|
+
'highestBid': (0, MoneyDto_1.MoneyDtoToJSON)(value['highestBid']),
|
|
100
|
+
'startDate': ((value['startDate']).toISOString()),
|
|
101
|
+
'endDate': ((value['endDate']).toISOString()),
|
|
102
|
+
'finishedAt': (value['finishedAt'] == null ? null : value['finishedAt'].toISOString()),
|
|
103
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
104
|
+
'domain': (0, AuctionListItemDtoDomainInformation_1.AuctionListItemDtoDomainInformationToJSON)(value['domain']),
|
|
105
|
+
'sellerAccount': (0, AuctionListItemDtoSellerAccount_1.AuctionListItemDtoSellerAccountToJSON)(value['sellerAccount']),
|
|
106
|
+
'numberOfBids': value['numberOfBids'],
|
|
107
|
+
};
|
|
108
|
+
}
|
|
@@ -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 AuctionListItemDtoDomainInformation
|
|
16
|
+
*/
|
|
17
|
+
export interface AuctionListItemDtoDomainInformation {
|
|
18
|
+
/**
|
|
19
|
+
* Domain TLD
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AuctionListItemDtoDomainInformation
|
|
22
|
+
*/
|
|
23
|
+
tld: string;
|
|
24
|
+
/**
|
|
25
|
+
* Domain name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AuctionListItemDtoDomainInformation
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Domain display name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AuctionListItemDtoDomainInformation
|
|
34
|
+
*/
|
|
35
|
+
displayName: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AuctionListItemDtoDomainInformation interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAuctionListItemDtoDomainInformation(value: object): value is AuctionListItemDtoDomainInformation;
|
|
41
|
+
export declare function AuctionListItemDtoDomainInformationFromJSON(json: any): AuctionListItemDtoDomainInformation;
|
|
42
|
+
export declare function AuctionListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionListItemDtoDomainInformation;
|
|
43
|
+
export declare function AuctionListItemDtoDomainInformationToJSON(json: any): AuctionListItemDtoDomainInformation;
|
|
44
|
+
export declare function AuctionListItemDtoDomainInformationToJSONTyped(value?: AuctionListItemDtoDomainInformation | 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.instanceOfAuctionListItemDtoDomainInformation = instanceOfAuctionListItemDtoDomainInformation;
|
|
17
|
+
exports.AuctionListItemDtoDomainInformationFromJSON = AuctionListItemDtoDomainInformationFromJSON;
|
|
18
|
+
exports.AuctionListItemDtoDomainInformationFromJSONTyped = AuctionListItemDtoDomainInformationFromJSONTyped;
|
|
19
|
+
exports.AuctionListItemDtoDomainInformationToJSON = AuctionListItemDtoDomainInformationToJSON;
|
|
20
|
+
exports.AuctionListItemDtoDomainInformationToJSONTyped = AuctionListItemDtoDomainInformationToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AuctionListItemDtoDomainInformation interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAuctionListItemDtoDomainInformation(value) {
|
|
25
|
+
if (!('tld' in value) || value['tld'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function AuctionListItemDtoDomainInformationFromJSON(json) {
|
|
34
|
+
return AuctionListItemDtoDomainInformationFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function AuctionListItemDtoDomainInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'tld': json['tld'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'displayName': json['displayName'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function AuctionListItemDtoDomainInformationToJSON(json) {
|
|
47
|
+
return AuctionListItemDtoDomainInformationToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function AuctionListItemDtoDomainInformationToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'tld': value['tld'],
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'displayName': value['displayName'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AuctionListItemDtoSellerAccount
|
|
16
|
+
*/
|
|
17
|
+
export interface AuctionListItemDtoSellerAccount {
|
|
18
|
+
/**
|
|
19
|
+
* Account ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AuctionListItemDtoSellerAccount
|
|
22
|
+
*/
|
|
23
|
+
accountId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Account identifier
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AuctionListItemDtoSellerAccount
|
|
28
|
+
*/
|
|
29
|
+
identifier: string;
|
|
30
|
+
/**
|
|
31
|
+
* Account name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AuctionListItemDtoSellerAccount
|
|
34
|
+
*/
|
|
35
|
+
name: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates if account is a business or not
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof AuctionListItemDtoSellerAccount
|
|
40
|
+
*/
|
|
41
|
+
isBusiness: boolean | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AuctionListItemDtoSellerAccount interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAuctionListItemDtoSellerAccount(value: object): value is AuctionListItemDtoSellerAccount;
|
|
47
|
+
export declare function AuctionListItemDtoSellerAccountFromJSON(json: any): AuctionListItemDtoSellerAccount;
|
|
48
|
+
export declare function AuctionListItemDtoSellerAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionListItemDtoSellerAccount;
|
|
49
|
+
export declare function AuctionListItemDtoSellerAccountToJSON(json: any): AuctionListItemDtoSellerAccount;
|
|
50
|
+
export declare function AuctionListItemDtoSellerAccountToJSONTyped(value?: AuctionListItemDtoSellerAccount | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfAuctionListItemDtoSellerAccount = instanceOfAuctionListItemDtoSellerAccount;
|
|
17
|
+
exports.AuctionListItemDtoSellerAccountFromJSON = AuctionListItemDtoSellerAccountFromJSON;
|
|
18
|
+
exports.AuctionListItemDtoSellerAccountFromJSONTyped = AuctionListItemDtoSellerAccountFromJSONTyped;
|
|
19
|
+
exports.AuctionListItemDtoSellerAccountToJSON = AuctionListItemDtoSellerAccountToJSON;
|
|
20
|
+
exports.AuctionListItemDtoSellerAccountToJSONTyped = AuctionListItemDtoSellerAccountToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AuctionListItemDtoSellerAccount interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAuctionListItemDtoSellerAccount(value) {
|
|
25
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('isBusiness' in value) || value['isBusiness'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function AuctionListItemDtoSellerAccountFromJSON(json) {
|
|
36
|
+
return AuctionListItemDtoSellerAccountFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function AuctionListItemDtoSellerAccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'accountId': json['accountId'],
|
|
44
|
+
'identifier': json['identifier'],
|
|
45
|
+
'name': json['name'],
|
|
46
|
+
'isBusiness': json['isBusiness'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function AuctionListItemDtoSellerAccountToJSON(json) {
|
|
50
|
+
return AuctionListItemDtoSellerAccountToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function AuctionListItemDtoSellerAccountToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'accountId': value['accountId'],
|
|
59
|
+
'identifier': value['identifier'],
|
|
60
|
+
'name': value['name'],
|
|
61
|
+
'isBusiness': value['isBusiness'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -133,6 +133,8 @@ export declare const BuyerNotificationDtoTypeEnum: {
|
|
|
133
133
|
readonly TASKS_REMINDER_LEAD: "tasks.reminder.lead";
|
|
134
134
|
readonly TASKS_REMINDER_DOMAIN_TRANSFER: "tasks.reminder.domain_transfer";
|
|
135
135
|
readonly TASKS_REMINDER_ORDER: "tasks.reminder.order";
|
|
136
|
+
readonly AUCTION_BID_CREATED: "auction.bid_created";
|
|
137
|
+
readonly AUCTION_WINNER_CONTINUE_ORDER_EMAIL: "auction.winner_continue_order_email";
|
|
136
138
|
};
|
|
137
139
|
export type BuyerNotificationDtoTypeEnum = typeof BuyerNotificationDtoTypeEnum[keyof typeof BuyerNotificationDtoTypeEnum];
|
|
138
140
|
/**
|
|
@@ -93,7 +93,9 @@ exports.BuyerNotificationDtoTypeEnum = {
|
|
|
93
93
|
LEAD_MESSAGE_MESSAGE: 'lead_message.message',
|
|
94
94
|
TASKS_REMINDER_LEAD: 'tasks.reminder.lead',
|
|
95
95
|
TASKS_REMINDER_DOMAIN_TRANSFER: 'tasks.reminder.domain_transfer',
|
|
96
|
-
TASKS_REMINDER_ORDER: 'tasks.reminder.order'
|
|
96
|
+
TASKS_REMINDER_ORDER: 'tasks.reminder.order',
|
|
97
|
+
AUCTION_BID_CREATED: 'auction.bid_created',
|
|
98
|
+
AUCTION_WINNER_CONTINUE_ORDER_EMAIL: 'auction.winner_continue_order_email'
|
|
97
99
|
};
|
|
98
100
|
/**
|
|
99
101
|
* Check if a given object implements the BuyerNotificationDto interface.
|
|
@@ -126,6 +126,8 @@ export declare const BuyerNotificationListItemDtoTypeEnum: {
|
|
|
126
126
|
readonly TASKS_REMINDER_LEAD: "tasks.reminder.lead";
|
|
127
127
|
readonly TASKS_REMINDER_DOMAIN_TRANSFER: "tasks.reminder.domain_transfer";
|
|
128
128
|
readonly TASKS_REMINDER_ORDER: "tasks.reminder.order";
|
|
129
|
+
readonly AUCTION_BID_CREATED: "auction.bid_created";
|
|
130
|
+
readonly AUCTION_WINNER_CONTINUE_ORDER_EMAIL: "auction.winner_continue_order_email";
|
|
129
131
|
};
|
|
130
132
|
export type BuyerNotificationListItemDtoTypeEnum = typeof BuyerNotificationListItemDtoTypeEnum[keyof typeof BuyerNotificationListItemDtoTypeEnum];
|
|
131
133
|
/**
|
|
@@ -92,7 +92,9 @@ exports.BuyerNotificationListItemDtoTypeEnum = {
|
|
|
92
92
|
LEAD_MESSAGE_MESSAGE: 'lead_message.message',
|
|
93
93
|
TASKS_REMINDER_LEAD: 'tasks.reminder.lead',
|
|
94
94
|
TASKS_REMINDER_DOMAIN_TRANSFER: 'tasks.reminder.domain_transfer',
|
|
95
|
-
TASKS_REMINDER_ORDER: 'tasks.reminder.order'
|
|
95
|
+
TASKS_REMINDER_ORDER: 'tasks.reminder.order',
|
|
96
|
+
AUCTION_BID_CREATED: 'auction.bid_created',
|
|
97
|
+
AUCTION_WINNER_CONTINUE_ORDER_EMAIL: 'auction.winner_continue_order_email'
|
|
96
98
|
};
|
|
97
99
|
/**
|
|
98
100
|
* Check if a given object implements the BuyerNotificationListItemDto interface.
|