@randock/nameshift-api-client 0.0.337 → 0.0.338
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/apis/BuyersApi.d.ts +9 -1
- package/dist/apis/BuyersApi.js +50 -0
- package/dist/models/AuctionBidDto.d.ts +6 -0
- package/dist/models/AuctionBidDto.js +4 -0
- package/dist/models/BuyerAccessTokenDto.d.ts +32 -0
- package/dist/models/BuyerAccessTokenDto.js +51 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +37 -0
- package/src/models/AuctionBidDto.ts +9 -0
- package/src/models/BuyerAccessTokenDto.ts +66 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -93,6 +93,7 @@ src/models/BillingInformationDto.ts
|
|
|
93
93
|
src/models/BulkMarkBuyerNotificationsAsReadInputDto.ts
|
|
94
94
|
src/models/BulkMarkNotificationsAsReadInputDto.ts
|
|
95
95
|
src/models/BulkUpdateDomainsWithFiltersInput.ts
|
|
96
|
+
src/models/BuyerAccessTokenDto.ts
|
|
96
97
|
src/models/BuyerAuctionListItemDto.ts
|
|
97
98
|
src/models/BuyerAuctionListItemDtoDomainInformation.ts
|
|
98
99
|
src/models/BuyerAuctionListItemDtoSellerAccount.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.338
|
|
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.338 --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
|
+
0c91197ff4c26c0e8020df1e51ee8d64ad8a57e0ef56041b0d10c0053f916fcafaccd10f6b4b2a72df498272a563cbfd
|
package/dist/apis/BuyersApi.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 { AuctionBidInput, AuctionBuyerDto, BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BulkMarkBuyerNotificationsAsReadInputDto, BuyerDomainTransferAuthCodeDto, BuyerNotificationDto, BuyerNotificationSettingsDto, BuyerSessionDto, BuyerTaskDetailsDto, CreateBuyerLeadMessageInput, GetBuyerAuctions200Response, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadMessageDto, ListBuyerNotifications200Response, ObjectId, PutBuyerLeadOfferInput, RegisterAuctionBuyerPhoneInput, RegisterInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateBuyerDomainTransferIpsTagInputDto, UpdateBuyerNotificationSettingsInput, UpdateLeadMuteStatusForBuyerInput, UpdateTaskMuteStatusForBuyerInput, VerifyPhoneOtpInput } from '../models/index';
|
|
13
|
+
import type { AuctionBidInput, AuctionBuyerDto, BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BulkMarkBuyerNotificationsAsReadInputDto, BuyerAccessTokenDto, BuyerDomainTransferAuthCodeDto, BuyerNotificationDto, BuyerNotificationSettingsDto, BuyerSessionDto, BuyerTaskDetailsDto, CreateBuyerLeadMessageInput, GetBuyerAuctions200Response, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadMessageDto, ListBuyerNotifications200Response, ObjectId, PutBuyerLeadOfferInput, RegisterAuctionBuyerPhoneInput, RegisterInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateBuyerDomainTransferIpsTagInputDto, UpdateBuyerNotificationSettingsInput, UpdateLeadMuteStatusForBuyerInput, UpdateTaskMuteStatusForBuyerInput, VerifyPhoneOtpInput } from '../models/index';
|
|
14
14
|
export interface BuyersApiAcceptBuyerLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
}
|
|
@@ -241,6 +241,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
241
241
|
* Download buyer notification attachment
|
|
242
242
|
*/
|
|
243
243
|
downloadBuyerNotificationAttachment(requestParameters: BuyersApiDownloadBuyerNotificationAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
*/
|
|
247
|
+
generateBuyerAccessTokenRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerAccessTokenDto>>;
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
*/
|
|
251
|
+
generateBuyerAccessToken(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerAccessTokenDto>;
|
|
244
252
|
/**
|
|
245
253
|
*
|
|
246
254
|
*/
|
package/dist/apis/BuyersApi.js
CHANGED
|
@@ -717,6 +717,56 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
717
717
|
});
|
|
718
718
|
});
|
|
719
719
|
};
|
|
720
|
+
/**
|
|
721
|
+
*
|
|
722
|
+
*/
|
|
723
|
+
BuyersApi.prototype.generateBuyerAccessTokenRaw = function (initOverrides) {
|
|
724
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
725
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
726
|
+
return __generator(this, function (_a) {
|
|
727
|
+
switch (_a.label) {
|
|
728
|
+
case 0:
|
|
729
|
+
queryParameters = {};
|
|
730
|
+
headerParameters = {};
|
|
731
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
732
|
+
token = this.configuration.accessToken;
|
|
733
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
734
|
+
case 1:
|
|
735
|
+
tokenString = _a.sent();
|
|
736
|
+
if (tokenString) {
|
|
737
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
738
|
+
}
|
|
739
|
+
_a.label = 2;
|
|
740
|
+
case 2: return [4 /*yield*/, this.request({
|
|
741
|
+
path: "/buyers/private/access-token",
|
|
742
|
+
method: 'GET',
|
|
743
|
+
headers: headerParameters,
|
|
744
|
+
query: queryParameters,
|
|
745
|
+
}, initOverrides)];
|
|
746
|
+
case 3:
|
|
747
|
+
response = _a.sent();
|
|
748
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BuyerAccessTokenDtoFromJSON)(jsonValue); })];
|
|
749
|
+
}
|
|
750
|
+
});
|
|
751
|
+
});
|
|
752
|
+
};
|
|
753
|
+
/**
|
|
754
|
+
*
|
|
755
|
+
*/
|
|
756
|
+
BuyersApi.prototype.generateBuyerAccessToken = function (initOverrides) {
|
|
757
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
758
|
+
var response;
|
|
759
|
+
return __generator(this, function (_a) {
|
|
760
|
+
switch (_a.label) {
|
|
761
|
+
case 0: return [4 /*yield*/, this.generateBuyerAccessTokenRaw(initOverrides)];
|
|
762
|
+
case 1:
|
|
763
|
+
response = _a.sent();
|
|
764
|
+
return [4 /*yield*/, response.value()];
|
|
765
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
766
|
+
}
|
|
767
|
+
});
|
|
768
|
+
});
|
|
769
|
+
};
|
|
720
770
|
/**
|
|
721
771
|
*
|
|
722
772
|
*/
|
|
@@ -65,6 +65,12 @@ export interface AuctionBidDto {
|
|
|
65
65
|
* @memberof AuctionBidDto
|
|
66
66
|
*/
|
|
67
67
|
metrics: AuctionBidMetricsDto;
|
|
68
|
+
/**
|
|
69
|
+
* Auction Bidder email
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof AuctionBidDto
|
|
72
|
+
*/
|
|
73
|
+
email: string | null;
|
|
68
74
|
}
|
|
69
75
|
/**
|
|
70
76
|
* Check if a given object implements the AuctionBidDto interface.
|
|
@@ -40,6 +40,8 @@ function instanceOfAuctionBidDto(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('metrics' in value) || value['metrics'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
44
|
+
return false;
|
|
43
45
|
return true;
|
|
44
46
|
}
|
|
45
47
|
function AuctionBidDtoFromJSON(json) {
|
|
@@ -58,6 +60,7 @@ function AuctionBidDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'isPhoneVerified': json['isPhoneVerified'],
|
|
59
61
|
'isKycCompleted': json['isKycCompleted'],
|
|
60
62
|
'metrics': (0, AuctionBidMetricsDto_1.AuctionBidMetricsDtoFromJSON)(json['metrics']),
|
|
63
|
+
'email': json['email'],
|
|
61
64
|
};
|
|
62
65
|
}
|
|
63
66
|
function AuctionBidDtoToJSON(json) {
|
|
@@ -77,5 +80,6 @@ function AuctionBidDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
77
80
|
'isPhoneVerified': value['isPhoneVerified'],
|
|
78
81
|
'isKycCompleted': value['isKycCompleted'],
|
|
79
82
|
'metrics': (0, AuctionBidMetricsDto_1.AuctionBidMetricsDtoToJSON)(value['metrics']),
|
|
83
|
+
'email': value['email'],
|
|
80
84
|
};
|
|
81
85
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 BuyerAccessTokenDto
|
|
16
|
+
*/
|
|
17
|
+
export interface BuyerAccessTokenDto {
|
|
18
|
+
/**
|
|
19
|
+
* The generated access token ID for the buyer
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BuyerAccessTokenDto
|
|
22
|
+
*/
|
|
23
|
+
token: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the BuyerAccessTokenDto interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfBuyerAccessTokenDto(value: object): value is BuyerAccessTokenDto;
|
|
29
|
+
export declare function BuyerAccessTokenDtoFromJSON(json: any): BuyerAccessTokenDto;
|
|
30
|
+
export declare function BuyerAccessTokenDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerAccessTokenDto;
|
|
31
|
+
export declare function BuyerAccessTokenDtoToJSON(json: any): BuyerAccessTokenDto;
|
|
32
|
+
export declare function BuyerAccessTokenDtoToJSONTyped(value?: BuyerAccessTokenDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfBuyerAccessTokenDto = instanceOfBuyerAccessTokenDto;
|
|
17
|
+
exports.BuyerAccessTokenDtoFromJSON = BuyerAccessTokenDtoFromJSON;
|
|
18
|
+
exports.BuyerAccessTokenDtoFromJSONTyped = BuyerAccessTokenDtoFromJSONTyped;
|
|
19
|
+
exports.BuyerAccessTokenDtoToJSON = BuyerAccessTokenDtoToJSON;
|
|
20
|
+
exports.BuyerAccessTokenDtoToJSONTyped = BuyerAccessTokenDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BuyerAccessTokenDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBuyerAccessTokenDto(value) {
|
|
25
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function BuyerAccessTokenDtoFromJSON(json) {
|
|
30
|
+
return BuyerAccessTokenDtoFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function BuyerAccessTokenDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'token': json['token'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function BuyerAccessTokenDtoToJSON(json) {
|
|
41
|
+
return BuyerAccessTokenDtoToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function BuyerAccessTokenDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'token': value['token'],
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export * from './BillingInformationDto';
|
|
|
59
59
|
export * from './BulkMarkBuyerNotificationsAsReadInputDto';
|
|
60
60
|
export * from './BulkMarkNotificationsAsReadInputDto';
|
|
61
61
|
export * from './BulkUpdateDomainsWithFiltersInput';
|
|
62
|
+
export * from './BuyerAccessTokenDto';
|
|
62
63
|
export * from './BuyerAuctionListItemDto';
|
|
63
64
|
export * from './BuyerAuctionListItemDtoDomainInformation';
|
|
64
65
|
export * from './BuyerAuctionListItemDtoSellerAccount';
|
package/dist/models/index.js
CHANGED
|
@@ -77,6 +77,7 @@ __exportStar(require("./BillingInformationDto"), exports);
|
|
|
77
77
|
__exportStar(require("./BulkMarkBuyerNotificationsAsReadInputDto"), exports);
|
|
78
78
|
__exportStar(require("./BulkMarkNotificationsAsReadInputDto"), exports);
|
|
79
79
|
__exportStar(require("./BulkUpdateDomainsWithFiltersInput"), exports);
|
|
80
|
+
__exportStar(require("./BuyerAccessTokenDto"), exports);
|
|
80
81
|
__exportStar(require("./BuyerAuctionListItemDto"), exports);
|
|
81
82
|
__exportStar(require("./BuyerAuctionListItemDtoDomainInformation"), exports);
|
|
82
83
|
__exportStar(require("./BuyerAuctionListItemDtoSellerAccount"), exports);
|
package/package.json
CHANGED
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -22,6 +22,7 @@ import type {
|
|
|
22
22
|
BatchReadBuyerLeadMessageInput,
|
|
23
23
|
BatchVerifyBuyerLeadsInput,
|
|
24
24
|
BulkMarkBuyerNotificationsAsReadInputDto,
|
|
25
|
+
BuyerAccessTokenDto,
|
|
25
26
|
BuyerDomainTransferAuthCodeDto,
|
|
26
27
|
BuyerNotificationDto,
|
|
27
28
|
BuyerNotificationSettingsDto,
|
|
@@ -66,6 +67,8 @@ import {
|
|
|
66
67
|
BatchVerifyBuyerLeadsInputToJSON,
|
|
67
68
|
BulkMarkBuyerNotificationsAsReadInputDtoFromJSON,
|
|
68
69
|
BulkMarkBuyerNotificationsAsReadInputDtoToJSON,
|
|
70
|
+
BuyerAccessTokenDtoFromJSON,
|
|
71
|
+
BuyerAccessTokenDtoToJSON,
|
|
69
72
|
BuyerDomainTransferAuthCodeDtoFromJSON,
|
|
70
73
|
BuyerDomainTransferAuthCodeDtoToJSON,
|
|
71
74
|
BuyerNotificationDtoFromJSON,
|
|
@@ -808,6 +811,40 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
808
811
|
return await response.value();
|
|
809
812
|
}
|
|
810
813
|
|
|
814
|
+
/**
|
|
815
|
+
*
|
|
816
|
+
*/
|
|
817
|
+
async generateBuyerAccessTokenRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerAccessTokenDto>> {
|
|
818
|
+
const queryParameters: any = {};
|
|
819
|
+
|
|
820
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
821
|
+
|
|
822
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
823
|
+
const token = this.configuration.accessToken;
|
|
824
|
+
const tokenString = await token("bearer", []);
|
|
825
|
+
|
|
826
|
+
if (tokenString) {
|
|
827
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
const response = await this.request({
|
|
831
|
+
path: `/buyers/private/access-token`,
|
|
832
|
+
method: 'GET',
|
|
833
|
+
headers: headerParameters,
|
|
834
|
+
query: queryParameters,
|
|
835
|
+
}, initOverrides);
|
|
836
|
+
|
|
837
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BuyerAccessTokenDtoFromJSON(jsonValue));
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
/**
|
|
841
|
+
*
|
|
842
|
+
*/
|
|
843
|
+
async generateBuyerAccessToken(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerAccessTokenDto> {
|
|
844
|
+
const response = await this.generateBuyerAccessTokenRaw(initOverrides);
|
|
845
|
+
return await response.value();
|
|
846
|
+
}
|
|
847
|
+
|
|
811
848
|
/**
|
|
812
849
|
*
|
|
813
850
|
*/
|
|
@@ -82,6 +82,12 @@ export interface AuctionBidDto {
|
|
|
82
82
|
* @memberof AuctionBidDto
|
|
83
83
|
*/
|
|
84
84
|
metrics: AuctionBidMetricsDto;
|
|
85
|
+
/**
|
|
86
|
+
* Auction Bidder email
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof AuctionBidDto
|
|
89
|
+
*/
|
|
90
|
+
email: string | null;
|
|
85
91
|
}
|
|
86
92
|
|
|
87
93
|
/**
|
|
@@ -96,6 +102,7 @@ export function instanceOfAuctionBidDto(value: object): value is AuctionBidDto {
|
|
|
96
102
|
if (!('isPhoneVerified' in value) || value['isPhoneVerified'] === undefined) return false;
|
|
97
103
|
if (!('isKycCompleted' in value) || value['isKycCompleted'] === undefined) return false;
|
|
98
104
|
if (!('metrics' in value) || value['metrics'] === undefined) return false;
|
|
105
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
99
106
|
return true;
|
|
100
107
|
}
|
|
101
108
|
|
|
@@ -117,6 +124,7 @@ export function AuctionBidDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
117
124
|
'isPhoneVerified': json['isPhoneVerified'],
|
|
118
125
|
'isKycCompleted': json['isKycCompleted'],
|
|
119
126
|
'metrics': AuctionBidMetricsDtoFromJSON(json['metrics']),
|
|
127
|
+
'email': json['email'],
|
|
120
128
|
};
|
|
121
129
|
}
|
|
122
130
|
|
|
@@ -139,6 +147,7 @@ export function AuctionBidDtoToJSONTyped(value?: AuctionBidDto | null, ignoreDis
|
|
|
139
147
|
'isPhoneVerified': value['isPhoneVerified'],
|
|
140
148
|
'isKycCompleted': value['isKycCompleted'],
|
|
141
149
|
'metrics': AuctionBidMetricsDtoToJSON(value['metrics']),
|
|
150
|
+
'email': value['email'],
|
|
142
151
|
};
|
|
143
152
|
}
|
|
144
153
|
|
|
@@ -0,0 +1,66 @@
|
|
|
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 BuyerAccessTokenDto
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerAccessTokenDto {
|
|
22
|
+
/**
|
|
23
|
+
* The generated access token ID for the buyer
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BuyerAccessTokenDto
|
|
26
|
+
*/
|
|
27
|
+
token: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the BuyerAccessTokenDto interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfBuyerAccessTokenDto(value: object): value is BuyerAccessTokenDto {
|
|
34
|
+
if (!('token' in value) || value['token'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function BuyerAccessTokenDtoFromJSON(json: any): BuyerAccessTokenDto {
|
|
39
|
+
return BuyerAccessTokenDtoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function BuyerAccessTokenDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerAccessTokenDto {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'token': json['token'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function BuyerAccessTokenDtoToJSON(json: any): BuyerAccessTokenDto {
|
|
53
|
+
return BuyerAccessTokenDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function BuyerAccessTokenDtoToJSONTyped(value?: BuyerAccessTokenDto | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'token': value['token'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -61,6 +61,7 @@ export * from './BillingInformationDto';
|
|
|
61
61
|
export * from './BulkMarkBuyerNotificationsAsReadInputDto';
|
|
62
62
|
export * from './BulkMarkNotificationsAsReadInputDto';
|
|
63
63
|
export * from './BulkUpdateDomainsWithFiltersInput';
|
|
64
|
+
export * from './BuyerAccessTokenDto';
|
|
64
65
|
export * from './BuyerAuctionListItemDto';
|
|
65
66
|
export * from './BuyerAuctionListItemDtoDomainInformation';
|
|
66
67
|
export * from './BuyerAuctionListItemDtoSellerAccount';
|