@randock/nameshift-api-client 0.0.333 → 0.0.335
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 +1 -0
- package/README.md +3 -3
- package/dist/models/AuctionBidDto.d.ts +25 -0
- package/dist/models/AuctionBidDto.js +17 -0
- package/dist/models/AuctionBidMetricsDto.d.ts +38 -0
- package/dist/models/AuctionBidMetricsDto.js +55 -0
- package/dist/models/AuctionDto.d.ts +6 -0
- package/dist/models/AuctionDto.js +4 -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/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 +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/AuctionBidDto.ts +43 -0
- package/src/models/AuctionBidMetricsDto.ts +75 -0
- package/src/models/AuctionDto.ts +9 -0
- package/src/models/BuyerNotificationDto.ts +3 -1
- package/src/models/BuyerNotificationListItemDto.ts +3 -1
- 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 +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -74,6 +74,7 @@ src/models/AirwallexDepositDtoFee.ts
|
|
|
74
74
|
src/models/AuBankAccountDetails.ts
|
|
75
75
|
src/models/AuctionBidDto.ts
|
|
76
76
|
src/models/AuctionBidInput.ts
|
|
77
|
+
src/models/AuctionBidMetricsDto.ts
|
|
77
78
|
src/models/AuctionBuyerDto.ts
|
|
78
79
|
src/models/AuctionBuyerWithTokenDto.ts
|
|
79
80
|
src/models/AuctionDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.335
|
|
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.335 --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
|
+
3fa3cbe7495d824a05a4e6e50fa11bf71aa7061af3b37951d2a084a6c68602b86d1f78b70c1fa875122de2d7dff99d93
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { MoneyDto } from './MoneyDto';
|
|
13
|
+
import type { AuctionBidMetricsDto } from './AuctionBidMetricsDto';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -40,6 +41,30 @@ export interface AuctionBidDto {
|
|
|
40
41
|
* @memberof AuctionBidDto
|
|
41
42
|
*/
|
|
42
43
|
createdAt: Date;
|
|
44
|
+
/**
|
|
45
|
+
* Auction Bid is email verified
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
* @memberof AuctionBidDto
|
|
48
|
+
*/
|
|
49
|
+
isEmailVerified: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Auction Bid is phone verified
|
|
52
|
+
* @type {boolean}
|
|
53
|
+
* @memberof AuctionBidDto
|
|
54
|
+
*/
|
|
55
|
+
isPhoneVerified: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Auction Bid is KYC completed
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
* @memberof AuctionBidDto
|
|
60
|
+
*/
|
|
61
|
+
isKycCompleted: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Auction Bidder metrics
|
|
64
|
+
* @type {AuctionBidMetricsDto}
|
|
65
|
+
* @memberof AuctionBidDto
|
|
66
|
+
*/
|
|
67
|
+
metrics: AuctionBidMetricsDto;
|
|
43
68
|
}
|
|
44
69
|
/**
|
|
45
70
|
* Check if a given object implements the AuctionBidDto interface.
|
|
@@ -19,6 +19,7 @@ exports.AuctionBidDtoFromJSONTyped = AuctionBidDtoFromJSONTyped;
|
|
|
19
19
|
exports.AuctionBidDtoToJSON = AuctionBidDtoToJSON;
|
|
20
20
|
exports.AuctionBidDtoToJSONTyped = AuctionBidDtoToJSONTyped;
|
|
21
21
|
var MoneyDto_1 = require("./MoneyDto");
|
|
22
|
+
var AuctionBidMetricsDto_1 = require("./AuctionBidMetricsDto");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the AuctionBidDto interface.
|
|
24
25
|
*/
|
|
@@ -31,6 +32,14 @@ function instanceOfAuctionBidDto(value) {
|
|
|
31
32
|
return false;
|
|
32
33
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
33
34
|
return false;
|
|
35
|
+
if (!('isEmailVerified' in value) || value['isEmailVerified'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('isPhoneVerified' in value) || value['isPhoneVerified'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('isKycCompleted' in value) || value['isKycCompleted'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('metrics' in value) || value['metrics'] === undefined)
|
|
42
|
+
return false;
|
|
34
43
|
return true;
|
|
35
44
|
}
|
|
36
45
|
function AuctionBidDtoFromJSON(json) {
|
|
@@ -45,6 +54,10 @@ function AuctionBidDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
54
|
'amount': (0, MoneyDto_1.MoneyDtoFromJSON)(json['amount']),
|
|
46
55
|
'nickname': json['nickname'],
|
|
47
56
|
'createdAt': (new Date(json['createdAt'])),
|
|
57
|
+
'isEmailVerified': json['isEmailVerified'],
|
|
58
|
+
'isPhoneVerified': json['isPhoneVerified'],
|
|
59
|
+
'isKycCompleted': json['isKycCompleted'],
|
|
60
|
+
'metrics': (0, AuctionBidMetricsDto_1.AuctionBidMetricsDtoFromJSON)(json['metrics']),
|
|
48
61
|
};
|
|
49
62
|
}
|
|
50
63
|
function AuctionBidDtoToJSON(json) {
|
|
@@ -60,5 +73,9 @@ function AuctionBidDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
60
73
|
'amount': (0, MoneyDto_1.MoneyDtoToJSON)(value['amount']),
|
|
61
74
|
'nickname': value['nickname'],
|
|
62
75
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
76
|
+
'isEmailVerified': value['isEmailVerified'],
|
|
77
|
+
'isPhoneVerified': value['isPhoneVerified'],
|
|
78
|
+
'isKycCompleted': value['isKycCompleted'],
|
|
79
|
+
'metrics': (0, AuctionBidMetricsDto_1.AuctionBidMetricsDtoToJSON)(value['metrics']),
|
|
63
80
|
};
|
|
64
81
|
}
|
|
@@ -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 AuctionBidMetricsDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AuctionBidMetricsDto {
|
|
18
|
+
/**
|
|
19
|
+
* Number of auctions the buyer has participated in
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AuctionBidMetricsDto
|
|
22
|
+
*/
|
|
23
|
+
auctionsNumber: number;
|
|
24
|
+
/**
|
|
25
|
+
* Total number of bids placed by the buyer across all auctions
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AuctionBidMetricsDto
|
|
28
|
+
*/
|
|
29
|
+
auctionsBidsNumber: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AuctionBidMetricsDto interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAuctionBidMetricsDto(value: object): value is AuctionBidMetricsDto;
|
|
35
|
+
export declare function AuctionBidMetricsDtoFromJSON(json: any): AuctionBidMetricsDto;
|
|
36
|
+
export declare function AuctionBidMetricsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionBidMetricsDto;
|
|
37
|
+
export declare function AuctionBidMetricsDtoToJSON(json: any): AuctionBidMetricsDto;
|
|
38
|
+
export declare function AuctionBidMetricsDtoToJSONTyped(value?: AuctionBidMetricsDto | 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.instanceOfAuctionBidMetricsDto = instanceOfAuctionBidMetricsDto;
|
|
17
|
+
exports.AuctionBidMetricsDtoFromJSON = AuctionBidMetricsDtoFromJSON;
|
|
18
|
+
exports.AuctionBidMetricsDtoFromJSONTyped = AuctionBidMetricsDtoFromJSONTyped;
|
|
19
|
+
exports.AuctionBidMetricsDtoToJSON = AuctionBidMetricsDtoToJSON;
|
|
20
|
+
exports.AuctionBidMetricsDtoToJSONTyped = AuctionBidMetricsDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AuctionBidMetricsDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAuctionBidMetricsDto(value) {
|
|
25
|
+
if (!('auctionsNumber' in value) || value['auctionsNumber'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('auctionsBidsNumber' in value) || value['auctionsBidsNumber'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AuctionBidMetricsDtoFromJSON(json) {
|
|
32
|
+
return AuctionBidMetricsDtoFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AuctionBidMetricsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'auctionsNumber': json['auctionsNumber'],
|
|
40
|
+
'auctionsBidsNumber': json['auctionsBidsNumber'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AuctionBidMetricsDtoToJSON(json) {
|
|
44
|
+
return AuctionBidMetricsDtoToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AuctionBidMetricsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'auctionsNumber': value['auctionsNumber'],
|
|
53
|
+
'auctionsBidsNumber': value['auctionsBidsNumber'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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'],
|
|
@@ -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.
|
|
@@ -73,6 +73,12 @@ export interface OrderListItemDto {
|
|
|
73
73
|
* @memberof OrderListItemDto
|
|
74
74
|
*/
|
|
75
75
|
leadId: object | null;
|
|
76
|
+
/**
|
|
77
|
+
* The order auction ID
|
|
78
|
+
* @type {object}
|
|
79
|
+
* @memberof OrderListItemDto
|
|
80
|
+
*/
|
|
81
|
+
auctionId: object | null;
|
|
76
82
|
/**
|
|
77
83
|
* The domain transfer
|
|
78
84
|
* @type {object}
|
|
@@ -54,6 +54,8 @@ function instanceOfOrderListItemDto(value) {
|
|
|
54
54
|
return false;
|
|
55
55
|
if (!('leadId' in value) || value['leadId'] === undefined)
|
|
56
56
|
return false;
|
|
57
|
+
if (!('auctionId' in value) || value['auctionId'] === undefined)
|
|
58
|
+
return false;
|
|
57
59
|
if (!('domainTransferId' in value) || value['domainTransferId'] === undefined)
|
|
58
60
|
return false;
|
|
59
61
|
return true;
|
|
@@ -75,6 +77,7 @@ function OrderListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
75
77
|
'buyerInformation': (0, OrderListItemDtoBuyerInformation_1.OrderListItemDtoBuyerInformationFromJSON)(json['buyerInformation']),
|
|
76
78
|
'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
|
|
77
79
|
'leadId': json['leadId'],
|
|
80
|
+
'auctionId': json['auctionId'],
|
|
78
81
|
'domainTransferId': json['domainTransferId'],
|
|
79
82
|
};
|
|
80
83
|
}
|
|
@@ -96,6 +99,7 @@ function OrderListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
96
99
|
'buyerInformation': (0, OrderListItemDtoBuyerInformation_1.OrderListItemDtoBuyerInformationToJSON)(value['buyerInformation']),
|
|
97
100
|
'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
|
|
98
101
|
'leadId': value['leadId'],
|
|
102
|
+
'auctionId': value['auctionId'],
|
|
99
103
|
'domainTransferId': value['domainTransferId'],
|
|
100
104
|
};
|
|
101
105
|
}
|
|
@@ -133,6 +133,8 @@ export declare const UserNotificationDtoTypeEnum: {
|
|
|
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 UserNotificationDtoTypeEnum = typeof UserNotificationDtoTypeEnum[keyof typeof UserNotificationDtoTypeEnum];
|
|
138
140
|
/**
|
|
@@ -93,7 +93,9 @@ exports.UserNotificationDtoTypeEnum = {
|
|
|
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 UserNotificationDto interface.
|
|
@@ -126,6 +126,8 @@ export declare const UserNotificationListItemDtoTypeEnum: {
|
|
|
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 UserNotificationListItemDtoTypeEnum = typeof UserNotificationListItemDtoTypeEnum[keyof typeof UserNotificationListItemDtoTypeEnum];
|
|
131
133
|
/**
|
|
@@ -92,7 +92,9 @@ exports.UserNotificationListItemDtoTypeEnum = {
|
|
|
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 UserNotificationListItemDto interface.
|
package/dist/models/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export * from './AirwallexDepositDtoFee';
|
|
|
41
41
|
export * from './AuBankAccountDetails';
|
|
42
42
|
export * from './AuctionBidDto';
|
|
43
43
|
export * from './AuctionBidInput';
|
|
44
|
+
export * from './AuctionBidMetricsDto';
|
|
44
45
|
export * from './AuctionBuyerDto';
|
|
45
46
|
export * from './AuctionBuyerWithTokenDto';
|
|
46
47
|
export * from './AuctionDto';
|
package/dist/models/index.js
CHANGED
|
@@ -59,6 +59,7 @@ __exportStar(require("./AirwallexDepositDtoFee"), exports);
|
|
|
59
59
|
__exportStar(require("./AuBankAccountDetails"), exports);
|
|
60
60
|
__exportStar(require("./AuctionBidDto"), exports);
|
|
61
61
|
__exportStar(require("./AuctionBidInput"), exports);
|
|
62
|
+
__exportStar(require("./AuctionBidMetricsDto"), exports);
|
|
62
63
|
__exportStar(require("./AuctionBuyerDto"), exports);
|
|
63
64
|
__exportStar(require("./AuctionBuyerWithTokenDto"), exports);
|
|
64
65
|
__exportStar(require("./AuctionDto"), exports);
|
package/package.json
CHANGED
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
MoneyDtoToJSON,
|
|
21
21
|
MoneyDtoToJSONTyped,
|
|
22
22
|
} from './MoneyDto';
|
|
23
|
+
import type { AuctionBidMetricsDto } from './AuctionBidMetricsDto';
|
|
24
|
+
import {
|
|
25
|
+
AuctionBidMetricsDtoFromJSON,
|
|
26
|
+
AuctionBidMetricsDtoFromJSONTyped,
|
|
27
|
+
AuctionBidMetricsDtoToJSON,
|
|
28
|
+
AuctionBidMetricsDtoToJSONTyped,
|
|
29
|
+
} from './AuctionBidMetricsDto';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -51,6 +58,30 @@ export interface AuctionBidDto {
|
|
|
51
58
|
* @memberof AuctionBidDto
|
|
52
59
|
*/
|
|
53
60
|
createdAt: Date;
|
|
61
|
+
/**
|
|
62
|
+
* Auction Bid is email verified
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof AuctionBidDto
|
|
65
|
+
*/
|
|
66
|
+
isEmailVerified: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Auction Bid is phone verified
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof AuctionBidDto
|
|
71
|
+
*/
|
|
72
|
+
isPhoneVerified: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Auction Bid is KYC completed
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof AuctionBidDto
|
|
77
|
+
*/
|
|
78
|
+
isKycCompleted: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Auction Bidder metrics
|
|
81
|
+
* @type {AuctionBidMetricsDto}
|
|
82
|
+
* @memberof AuctionBidDto
|
|
83
|
+
*/
|
|
84
|
+
metrics: AuctionBidMetricsDto;
|
|
54
85
|
}
|
|
55
86
|
|
|
56
87
|
/**
|
|
@@ -61,6 +92,10 @@ export function instanceOfAuctionBidDto(value: object): value is AuctionBidDto {
|
|
|
61
92
|
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
62
93
|
if (!('nickname' in value) || value['nickname'] === undefined) return false;
|
|
63
94
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
95
|
+
if (!('isEmailVerified' in value) || value['isEmailVerified'] === undefined) return false;
|
|
96
|
+
if (!('isPhoneVerified' in value) || value['isPhoneVerified'] === undefined) return false;
|
|
97
|
+
if (!('isKycCompleted' in value) || value['isKycCompleted'] === undefined) return false;
|
|
98
|
+
if (!('metrics' in value) || value['metrics'] === undefined) return false;
|
|
64
99
|
return true;
|
|
65
100
|
}
|
|
66
101
|
|
|
@@ -78,6 +113,10 @@ export function AuctionBidDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
78
113
|
'amount': MoneyDtoFromJSON(json['amount']),
|
|
79
114
|
'nickname': json['nickname'],
|
|
80
115
|
'createdAt': (new Date(json['createdAt'])),
|
|
116
|
+
'isEmailVerified': json['isEmailVerified'],
|
|
117
|
+
'isPhoneVerified': json['isPhoneVerified'],
|
|
118
|
+
'isKycCompleted': json['isKycCompleted'],
|
|
119
|
+
'metrics': AuctionBidMetricsDtoFromJSON(json['metrics']),
|
|
81
120
|
};
|
|
82
121
|
}
|
|
83
122
|
|
|
@@ -96,6 +135,10 @@ export function AuctionBidDtoToJSONTyped(value?: AuctionBidDto | null, ignoreDis
|
|
|
96
135
|
'amount': MoneyDtoToJSON(value['amount']),
|
|
97
136
|
'nickname': value['nickname'],
|
|
98
137
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
138
|
+
'isEmailVerified': value['isEmailVerified'],
|
|
139
|
+
'isPhoneVerified': value['isPhoneVerified'],
|
|
140
|
+
'isKycCompleted': value['isKycCompleted'],
|
|
141
|
+
'metrics': AuctionBidMetricsDtoToJSON(value['metrics']),
|
|
99
142
|
};
|
|
100
143
|
}
|
|
101
144
|
|
|
@@ -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 AuctionBidMetricsDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AuctionBidMetricsDto {
|
|
22
|
+
/**
|
|
23
|
+
* Number of auctions the buyer has participated in
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AuctionBidMetricsDto
|
|
26
|
+
*/
|
|
27
|
+
auctionsNumber: number;
|
|
28
|
+
/**
|
|
29
|
+
* Total number of bids placed by the buyer across all auctions
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof AuctionBidMetricsDto
|
|
32
|
+
*/
|
|
33
|
+
auctionsBidsNumber: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AuctionBidMetricsDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfAuctionBidMetricsDto(value: object): value is AuctionBidMetricsDto {
|
|
40
|
+
if (!('auctionsNumber' in value) || value['auctionsNumber'] === undefined) return false;
|
|
41
|
+
if (!('auctionsBidsNumber' in value) || value['auctionsBidsNumber'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AuctionBidMetricsDtoFromJSON(json: any): AuctionBidMetricsDto {
|
|
46
|
+
return AuctionBidMetricsDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AuctionBidMetricsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionBidMetricsDto {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'auctionsNumber': json['auctionsNumber'],
|
|
56
|
+
'auctionsBidsNumber': json['auctionsBidsNumber'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AuctionBidMetricsDtoToJSON(json: any): AuctionBidMetricsDto {
|
|
61
|
+
return AuctionBidMetricsDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function AuctionBidMetricsDtoToJSONTyped(value?: AuctionBidMetricsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'auctionsNumber': value['auctionsNumber'],
|
|
72
|
+
'auctionsBidsNumber': value['auctionsBidsNumber'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/AuctionDto.ts
CHANGED
|
@@ -70,6 +70,12 @@ export interface AuctionDto {
|
|
|
70
70
|
* @memberof AuctionDto
|
|
71
71
|
*/
|
|
72
72
|
endDate: Date;
|
|
73
|
+
/**
|
|
74
|
+
* Auction finished
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof AuctionDto
|
|
77
|
+
*/
|
|
78
|
+
finished: boolean;
|
|
73
79
|
/**
|
|
74
80
|
* Auction latestBids bids
|
|
75
81
|
* @type {Array<AuctionBidDto>}
|
|
@@ -100,6 +106,7 @@ export function instanceOfAuctionDto(value: object): value is AuctionDto {
|
|
|
100
106
|
if (!('highestBid' in value) || value['highestBid'] === undefined) return false;
|
|
101
107
|
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
102
108
|
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
109
|
+
if (!('finished' in value) || value['finished'] === undefined) return false;
|
|
103
110
|
if (!('latestBids' in value) || value['latestBids'] === undefined) return false;
|
|
104
111
|
if (!('needsPhoneVerification' in value) || value['needsPhoneVerification'] === undefined) return false;
|
|
105
112
|
if (!('needsKyc' in value) || value['needsKyc'] === undefined) return false;
|
|
@@ -122,6 +129,7 @@ export function AuctionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
122
129
|
'highestBid': MoneyDtoFromJSON(json['highestBid']),
|
|
123
130
|
'startDate': (new Date(json['startDate'])),
|
|
124
131
|
'endDate': (new Date(json['endDate'])),
|
|
132
|
+
'finished': json['finished'],
|
|
125
133
|
'latestBids': ((json['latestBids'] as Array<any>).map(AuctionBidDtoFromJSON)),
|
|
126
134
|
'needsPhoneVerification': json['needsPhoneVerification'],
|
|
127
135
|
'needsKyc': json['needsKyc'],
|
|
@@ -145,6 +153,7 @@ export function AuctionDtoToJSONTyped(value?: AuctionDto | null, ignoreDiscrimin
|
|
|
145
153
|
'highestBid': MoneyDtoToJSON(value['highestBid']),
|
|
146
154
|
'startDate': ((value['startDate']).toISOString()),
|
|
147
155
|
'endDate': ((value['endDate']).toISOString()),
|
|
156
|
+
'finished': value['finished'],
|
|
148
157
|
'latestBids': ((value['latestBids'] as Array<any>).map(AuctionBidDtoToJSON)),
|
|
149
158
|
'needsPhoneVerification': value['needsPhoneVerification'],
|
|
150
159
|
'needsKyc': value['needsKyc'],
|
|
@@ -145,7 +145,9 @@ export const BuyerNotificationDtoTypeEnum = {
|
|
|
145
145
|
LEAD_MESSAGE_MESSAGE: 'lead_message.message',
|
|
146
146
|
TASKS_REMINDER_LEAD: 'tasks.reminder.lead',
|
|
147
147
|
TASKS_REMINDER_DOMAIN_TRANSFER: 'tasks.reminder.domain_transfer',
|
|
148
|
-
TASKS_REMINDER_ORDER: 'tasks.reminder.order'
|
|
148
|
+
TASKS_REMINDER_ORDER: 'tasks.reminder.order',
|
|
149
|
+
AUCTION_BID_CREATED: 'auction.bid_created',
|
|
150
|
+
AUCTION_WINNER_CONTINUE_ORDER_EMAIL: 'auction.winner_continue_order_email'
|
|
149
151
|
} as const;
|
|
150
152
|
export type BuyerNotificationDtoTypeEnum = typeof BuyerNotificationDtoTypeEnum[keyof typeof BuyerNotificationDtoTypeEnum];
|
|
151
153
|
|
|
@@ -131,7 +131,9 @@ export const BuyerNotificationListItemDtoTypeEnum = {
|
|
|
131
131
|
LEAD_MESSAGE_MESSAGE: 'lead_message.message',
|
|
132
132
|
TASKS_REMINDER_LEAD: 'tasks.reminder.lead',
|
|
133
133
|
TASKS_REMINDER_DOMAIN_TRANSFER: 'tasks.reminder.domain_transfer',
|
|
134
|
-
TASKS_REMINDER_ORDER: 'tasks.reminder.order'
|
|
134
|
+
TASKS_REMINDER_ORDER: 'tasks.reminder.order',
|
|
135
|
+
AUCTION_BID_CREATED: 'auction.bid_created',
|
|
136
|
+
AUCTION_WINNER_CONTINUE_ORDER_EMAIL: 'auction.winner_continue_order_email'
|
|
135
137
|
} as const;
|
|
136
138
|
export type BuyerNotificationListItemDtoTypeEnum = typeof BuyerNotificationListItemDtoTypeEnum[keyof typeof BuyerNotificationListItemDtoTypeEnum];
|
|
137
139
|
|
|
@@ -102,6 +102,12 @@ export interface OrderListItemDto {
|
|
|
102
102
|
* @memberof OrderListItemDto
|
|
103
103
|
*/
|
|
104
104
|
leadId: object | null;
|
|
105
|
+
/**
|
|
106
|
+
* The order auction ID
|
|
107
|
+
* @type {object}
|
|
108
|
+
* @memberof OrderListItemDto
|
|
109
|
+
*/
|
|
110
|
+
auctionId: object | null;
|
|
105
111
|
/**
|
|
106
112
|
* The domain transfer
|
|
107
113
|
* @type {object}
|
|
@@ -136,6 +142,7 @@ export function instanceOfOrderListItemDto(value: object): value is OrderListIte
|
|
|
136
142
|
if (!('buyerInformation' in value) || value['buyerInformation'] === undefined) return false;
|
|
137
143
|
if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
|
|
138
144
|
if (!('leadId' in value) || value['leadId'] === undefined) return false;
|
|
145
|
+
if (!('auctionId' in value) || value['auctionId'] === undefined) return false;
|
|
139
146
|
if (!('domainTransferId' in value) || value['domainTransferId'] === undefined) return false;
|
|
140
147
|
return true;
|
|
141
148
|
}
|
|
@@ -159,6 +166,7 @@ export function OrderListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
159
166
|
'buyerInformation': OrderListItemDtoBuyerInformationFromJSON(json['buyerInformation']),
|
|
160
167
|
'basePrice': MoneyDtoFromJSON(json['basePrice']),
|
|
161
168
|
'leadId': json['leadId'],
|
|
169
|
+
'auctionId': json['auctionId'],
|
|
162
170
|
'domainTransferId': json['domainTransferId'],
|
|
163
171
|
};
|
|
164
172
|
}
|
|
@@ -183,6 +191,7 @@ export function OrderListItemDtoToJSONTyped(value?: OrderListItemDto | null, ign
|
|
|
183
191
|
'buyerInformation': OrderListItemDtoBuyerInformationToJSON(value['buyerInformation']),
|
|
184
192
|
'basePrice': MoneyDtoToJSON(value['basePrice']),
|
|
185
193
|
'leadId': value['leadId'],
|
|
194
|
+
'auctionId': value['auctionId'],
|
|
186
195
|
'domainTransferId': value['domainTransferId'],
|
|
187
196
|
};
|
|
188
197
|
}
|
|
@@ -145,7 +145,9 @@ export const UserNotificationDtoTypeEnum = {
|
|
|
145
145
|
LEAD_MESSAGE_MESSAGE: 'lead_message.message',
|
|
146
146
|
TASKS_REMINDER_LEAD: 'tasks.reminder.lead',
|
|
147
147
|
TASKS_REMINDER_DOMAIN_TRANSFER: 'tasks.reminder.domain_transfer',
|
|
148
|
-
TASKS_REMINDER_ORDER: 'tasks.reminder.order'
|
|
148
|
+
TASKS_REMINDER_ORDER: 'tasks.reminder.order',
|
|
149
|
+
AUCTION_BID_CREATED: 'auction.bid_created',
|
|
150
|
+
AUCTION_WINNER_CONTINUE_ORDER_EMAIL: 'auction.winner_continue_order_email'
|
|
149
151
|
} as const;
|
|
150
152
|
export type UserNotificationDtoTypeEnum = typeof UserNotificationDtoTypeEnum[keyof typeof UserNotificationDtoTypeEnum];
|
|
151
153
|
|
|
@@ -131,7 +131,9 @@ export const UserNotificationListItemDtoTypeEnum = {
|
|
|
131
131
|
LEAD_MESSAGE_MESSAGE: 'lead_message.message',
|
|
132
132
|
TASKS_REMINDER_LEAD: 'tasks.reminder.lead',
|
|
133
133
|
TASKS_REMINDER_DOMAIN_TRANSFER: 'tasks.reminder.domain_transfer',
|
|
134
|
-
TASKS_REMINDER_ORDER: 'tasks.reminder.order'
|
|
134
|
+
TASKS_REMINDER_ORDER: 'tasks.reminder.order',
|
|
135
|
+
AUCTION_BID_CREATED: 'auction.bid_created',
|
|
136
|
+
AUCTION_WINNER_CONTINUE_ORDER_EMAIL: 'auction.winner_continue_order_email'
|
|
135
137
|
} as const;
|
|
136
138
|
export type UserNotificationListItemDtoTypeEnum = typeof UserNotificationListItemDtoTypeEnum[keyof typeof UserNotificationListItemDtoTypeEnum];
|
|
137
139
|
|
package/src/models/index.ts
CHANGED
|
@@ -43,6 +43,7 @@ export * from './AirwallexDepositDtoFee';
|
|
|
43
43
|
export * from './AuBankAccountDetails';
|
|
44
44
|
export * from './AuctionBidDto';
|
|
45
45
|
export * from './AuctionBidInput';
|
|
46
|
+
export * from './AuctionBidMetricsDto';
|
|
46
47
|
export * from './AuctionBuyerDto';
|
|
47
48
|
export * from './AuctionBuyerWithTokenDto';
|
|
48
49
|
export * from './AuctionDto';
|