@randock/nameshift-api-client 0.0.60 → 0.0.62
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/BuyersApi.d.ts +26 -1
- package/dist/apis/BuyersApi.js +116 -0
- package/dist/models/BuyerDomainTransferListItemDomainDto.d.ts +43 -0
- package/dist/models/BuyerDomainTransferListItemDomainDto.js +55 -0
- package/dist/models/BuyerDomainTransferListItemDto.d.ts +67 -0
- package/dist/models/BuyerDomainTransferListItemDto.js +74 -0
- package/dist/models/BuyerUserDto.d.ts +7 -13
- package/dist/models/BuyerUserDto.js +4 -8
- package/dist/models/GetBuyerTransfers200Response.d.ts +46 -0
- package/dist/models/GetBuyerTransfers200Response.js +58 -0
- package/dist/models/StoreBuyerLocaleInput.d.ts +31 -0
- package/dist/models/StoreBuyerLocaleInput.js +47 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +110 -0
- package/src/models/BuyerDomainTransferListItemDomainDto.ts +79 -0
- package/src/models/BuyerDomainTransferListItemDto.ts +118 -0
- package/src/models/BuyerUserDto.ts +10 -19
- package/src/models/GetBuyerTransfers200Response.ts +98 -0
- package/src/models/StoreBuyerLocaleInput.ts +61 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,47 @@
|
|
|
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.StoreBuyerLocaleInputToJSON = exports.StoreBuyerLocaleInputFromJSONTyped = exports.StoreBuyerLocaleInputFromJSON = exports.instanceOfStoreBuyerLocaleInput = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the StoreBuyerLocaleInput interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfStoreBuyerLocaleInput(value) {
|
|
21
|
+
if (!('locale' in value) || value['locale'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfStoreBuyerLocaleInput = instanceOfStoreBuyerLocaleInput;
|
|
26
|
+
function StoreBuyerLocaleInputFromJSON(json) {
|
|
27
|
+
return StoreBuyerLocaleInputFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.StoreBuyerLocaleInputFromJSON = StoreBuyerLocaleInputFromJSON;
|
|
30
|
+
function StoreBuyerLocaleInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'locale': json['locale'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.StoreBuyerLocaleInputFromJSONTyped = StoreBuyerLocaleInputFromJSONTyped;
|
|
39
|
+
function StoreBuyerLocaleInputToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'locale': value['locale'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.StoreBuyerLocaleInputToJSON = StoreBuyerLocaleInputToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export * from './AccountSettingsInput';
|
|
|
6
6
|
export * from './AdminGetAllDomainTransfers200Response';
|
|
7
7
|
export * from './BatchUpdateDomainsInput';
|
|
8
8
|
export * from './BuyDomainInput';
|
|
9
|
+
export * from './BuyerDomainTransferListItemDomainDto';
|
|
10
|
+
export * from './BuyerDomainTransferListItemDto';
|
|
9
11
|
export * from './BuyerUserDto';
|
|
10
12
|
export * from './ChangeOrderStatusInput';
|
|
11
13
|
export * from './ConflictException';
|
|
@@ -25,6 +27,7 @@ export * from './DomainTransferDtoAgent';
|
|
|
25
27
|
export * from './DomainTransferOrderDto';
|
|
26
28
|
export * from './ForgotPasswordRequestInput';
|
|
27
29
|
export * from './GetAllDomainTransfers200Response';
|
|
30
|
+
export * from './GetBuyerTransfers200Response';
|
|
28
31
|
export * from './HttpException';
|
|
29
32
|
export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
|
|
30
33
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
@@ -65,6 +68,7 @@ export * from './SellerDomainTransferDtoAuthCode';
|
|
|
65
68
|
export * from './SellerDomainTransferListItemDomainDto';
|
|
66
69
|
export * from './SellerDomainTransferListItemDto';
|
|
67
70
|
export * from './SetNewPasswordInput';
|
|
71
|
+
export * from './StoreBuyerLocaleInput';
|
|
68
72
|
export * from './StoreUserLocaleInput';
|
|
69
73
|
export * from './ThrottlerException';
|
|
70
74
|
export * from './UpdateDomainInput';
|
package/dist/models/index.js
CHANGED
|
@@ -24,6 +24,8 @@ __exportStar(require("./AccountSettingsInput"), exports);
|
|
|
24
24
|
__exportStar(require("./AdminGetAllDomainTransfers200Response"), exports);
|
|
25
25
|
__exportStar(require("./BatchUpdateDomainsInput"), exports);
|
|
26
26
|
__exportStar(require("./BuyDomainInput"), exports);
|
|
27
|
+
__exportStar(require("./BuyerDomainTransferListItemDomainDto"), exports);
|
|
28
|
+
__exportStar(require("./BuyerDomainTransferListItemDto"), exports);
|
|
27
29
|
__exportStar(require("./BuyerUserDto"), exports);
|
|
28
30
|
__exportStar(require("./ChangeOrderStatusInput"), exports);
|
|
29
31
|
__exportStar(require("./ConflictException"), exports);
|
|
@@ -43,6 +45,7 @@ __exportStar(require("./DomainTransferDtoAgent"), exports);
|
|
|
43
45
|
__exportStar(require("./DomainTransferOrderDto"), exports);
|
|
44
46
|
__exportStar(require("./ForgotPasswordRequestInput"), exports);
|
|
45
47
|
__exportStar(require("./GetAllDomainTransfers200Response"), exports);
|
|
48
|
+
__exportStar(require("./GetBuyerTransfers200Response"), exports);
|
|
46
49
|
__exportStar(require("./HttpException"), exports);
|
|
47
50
|
__exportStar(require("./IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto"), exports);
|
|
48
51
|
__exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
|
|
@@ -83,6 +86,7 @@ __exportStar(require("./SellerDomainTransferDtoAuthCode"), exports);
|
|
|
83
86
|
__exportStar(require("./SellerDomainTransferListItemDomainDto"), exports);
|
|
84
87
|
__exportStar(require("./SellerDomainTransferListItemDto"), exports);
|
|
85
88
|
__exportStar(require("./SetNewPasswordInput"), exports);
|
|
89
|
+
__exportStar(require("./StoreBuyerLocaleInput"), exports);
|
|
86
90
|
__exportStar(require("./StoreUserLocaleInput"), exports);
|
|
87
91
|
__exportStar(require("./ThrottlerException"), exports);
|
|
88
92
|
__exportStar(require("./UpdateDomainInput"), exports);
|
package/package.json
CHANGED
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -16,18 +16,35 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
BuyerUserDto,
|
|
19
|
+
GetBuyerTransfers200Response,
|
|
20
|
+
StoreBuyerLocaleInput,
|
|
19
21
|
ThrottlerException,
|
|
20
22
|
ValidationException,
|
|
21
23
|
} from '../models/index';
|
|
22
24
|
import {
|
|
23
25
|
BuyerUserDtoFromJSON,
|
|
24
26
|
BuyerUserDtoToJSON,
|
|
27
|
+
GetBuyerTransfers200ResponseFromJSON,
|
|
28
|
+
GetBuyerTransfers200ResponseToJSON,
|
|
29
|
+
StoreBuyerLocaleInputFromJSON,
|
|
30
|
+
StoreBuyerLocaleInputToJSON,
|
|
25
31
|
ThrottlerExceptionFromJSON,
|
|
26
32
|
ThrottlerExceptionToJSON,
|
|
27
33
|
ValidationExceptionFromJSON,
|
|
28
34
|
ValidationExceptionToJSON,
|
|
29
35
|
} from '../models/index';
|
|
30
36
|
|
|
37
|
+
export interface BuyersApiGetBuyerTransfersRequest {
|
|
38
|
+
filter?: object;
|
|
39
|
+
page?: number;
|
|
40
|
+
limit?: number;
|
|
41
|
+
sortBy?: Array<string>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface BuyersApiSetLocaleRequest {
|
|
45
|
+
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
46
|
+
}
|
|
47
|
+
|
|
31
48
|
/**
|
|
32
49
|
*
|
|
33
50
|
*/
|
|
@@ -67,4 +84,97 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
67
84
|
return await response.value();
|
|
68
85
|
}
|
|
69
86
|
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
async getBuyerTransfersRaw(requestParameters: BuyersApiGetBuyerTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetBuyerTransfers200Response>> {
|
|
91
|
+
const queryParameters: any = {};
|
|
92
|
+
|
|
93
|
+
if (requestParameters['filter'] != null) {
|
|
94
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if (requestParameters['page'] != null) {
|
|
98
|
+
queryParameters['page'] = requestParameters['page'];
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if (requestParameters['limit'] != null) {
|
|
102
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (requestParameters['sortBy'] != null) {
|
|
106
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
110
|
+
|
|
111
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
112
|
+
const token = this.configuration.accessToken;
|
|
113
|
+
const tokenString = await token("bearer", []);
|
|
114
|
+
|
|
115
|
+
if (tokenString) {
|
|
116
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
const response = await this.request({
|
|
120
|
+
path: `/buyers/private/transfers`,
|
|
121
|
+
method: 'GET',
|
|
122
|
+
headers: headerParameters,
|
|
123
|
+
query: queryParameters,
|
|
124
|
+
}, initOverrides);
|
|
125
|
+
|
|
126
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetBuyerTransfers200ResponseFromJSON(jsonValue));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
132
|
+
async getBuyerTransfers(requestParameters: BuyersApiGetBuyerTransfersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerTransfers200Response> {
|
|
133
|
+
const response = await this.getBuyerTransfersRaw(requestParameters, initOverrides);
|
|
134
|
+
return await response.value();
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
*/
|
|
140
|
+
async setLocaleRaw(requestParameters: BuyersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
141
|
+
if (requestParameters['storeBuyerLocaleInput'] == null) {
|
|
142
|
+
throw new runtime.RequiredError(
|
|
143
|
+
'storeBuyerLocaleInput',
|
|
144
|
+
'Required parameter "storeBuyerLocaleInput" was null or undefined when calling setLocale().'
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const queryParameters: any = {};
|
|
149
|
+
|
|
150
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
151
|
+
|
|
152
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
153
|
+
|
|
154
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
155
|
+
const token = this.configuration.accessToken;
|
|
156
|
+
const tokenString = await token("bearer", []);
|
|
157
|
+
|
|
158
|
+
if (tokenString) {
|
|
159
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
const response = await this.request({
|
|
163
|
+
path: `/buyers/private/store-locale`,
|
|
164
|
+
method: 'PATCH',
|
|
165
|
+
headers: headerParameters,
|
|
166
|
+
query: queryParameters,
|
|
167
|
+
body: StoreBuyerLocaleInputToJSON(requestParameters['storeBuyerLocaleInput']),
|
|
168
|
+
}, initOverrides);
|
|
169
|
+
|
|
170
|
+
return new runtime.VoidApiResponse(response);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
*/
|
|
176
|
+
async setLocale(requestParameters: BuyersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
177
|
+
await this.setLocaleRaw(requestParameters, initOverrides);
|
|
178
|
+
}
|
|
179
|
+
|
|
70
180
|
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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 BuyerDomainTransferListItemDomainDto
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerDomainTransferListItemDomainDto {
|
|
22
|
+
/**
|
|
23
|
+
* The buyer domain ID
|
|
24
|
+
* @type {object}
|
|
25
|
+
* @memberof BuyerDomainTransferListItemDomainDto
|
|
26
|
+
*/
|
|
27
|
+
id: object;
|
|
28
|
+
/**
|
|
29
|
+
* The buyer domain name
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BuyerDomainTransferListItemDomainDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* The buyer domain TLD
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BuyerDomainTransferListItemDomainDto
|
|
38
|
+
*/
|
|
39
|
+
tld: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the BuyerDomainTransferListItemDomainDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfBuyerDomainTransferListItemDomainDto(value: object): value is BuyerDomainTransferListItemDomainDto {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function BuyerDomainTransferListItemDomainDtoFromJSON(json: any): BuyerDomainTransferListItemDomainDto {
|
|
53
|
+
return BuyerDomainTransferListItemDomainDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function BuyerDomainTransferListItemDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerDomainTransferListItemDomainDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'tld': json['tld'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function BuyerDomainTransferListItemDomainDtoToJSON(value?: BuyerDomainTransferListItemDomainDto | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'id': value['id'],
|
|
75
|
+
'name': value['name'],
|
|
76
|
+
'tld': value['tld'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { BuyerDomainTransferListItemDomainDto } from './BuyerDomainTransferListItemDomainDto';
|
|
17
|
+
import {
|
|
18
|
+
BuyerDomainTransferListItemDomainDtoFromJSON,
|
|
19
|
+
BuyerDomainTransferListItemDomainDtoFromJSONTyped,
|
|
20
|
+
BuyerDomainTransferListItemDomainDtoToJSON,
|
|
21
|
+
} from './BuyerDomainTransferListItemDomainDto';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface BuyerDomainTransferListItemDto
|
|
27
|
+
*/
|
|
28
|
+
export interface BuyerDomainTransferListItemDto {
|
|
29
|
+
/**
|
|
30
|
+
* The domain transfer requirements with its satisfied status
|
|
31
|
+
* @type {object}
|
|
32
|
+
* @memberof BuyerDomainTransferListItemDto
|
|
33
|
+
*/
|
|
34
|
+
requirements: object;
|
|
35
|
+
/**
|
|
36
|
+
* The buyer domain transfer ID
|
|
37
|
+
* @type {object}
|
|
38
|
+
* @memberof BuyerDomainTransferListItemDto
|
|
39
|
+
*/
|
|
40
|
+
id: object;
|
|
41
|
+
/**
|
|
42
|
+
* The buyer domain of transfer
|
|
43
|
+
* @type {BuyerDomainTransferListItemDomainDto}
|
|
44
|
+
* @memberof BuyerDomainTransferListItemDto
|
|
45
|
+
*/
|
|
46
|
+
domain: BuyerDomainTransferListItemDomainDto;
|
|
47
|
+
/**
|
|
48
|
+
* The buyer domain transfer status
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof BuyerDomainTransferListItemDto
|
|
51
|
+
*/
|
|
52
|
+
status: BuyerDomainTransferListItemDtoStatusEnum;
|
|
53
|
+
/**
|
|
54
|
+
* The buyer domain transfer creation date
|
|
55
|
+
* @type {Date}
|
|
56
|
+
* @memberof BuyerDomainTransferListItemDto
|
|
57
|
+
*/
|
|
58
|
+
createdAt: Date;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export const BuyerDomainTransferListItemDtoStatusEnum = {
|
|
66
|
+
CREATED: 'created',
|
|
67
|
+
STARTED: 'started',
|
|
68
|
+
PENDING_MANUAL_ACTION: 'pending_manual_action',
|
|
69
|
+
ERROR: 'error',
|
|
70
|
+
COMPLETED: 'completed'
|
|
71
|
+
} as const;
|
|
72
|
+
export type BuyerDomainTransferListItemDtoStatusEnum = typeof BuyerDomainTransferListItemDtoStatusEnum[keyof typeof BuyerDomainTransferListItemDtoStatusEnum];
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the BuyerDomainTransferListItemDto interface.
|
|
77
|
+
*/
|
|
78
|
+
export function instanceOfBuyerDomainTransferListItemDto(value: object): value is BuyerDomainTransferListItemDto {
|
|
79
|
+
if (!('requirements' in value) || value['requirements'] === undefined) return false;
|
|
80
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
81
|
+
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
82
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
83
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function BuyerDomainTransferListItemDtoFromJSON(json: any): BuyerDomainTransferListItemDto {
|
|
88
|
+
return BuyerDomainTransferListItemDtoFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function BuyerDomainTransferListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerDomainTransferListItemDto {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'requirements': json['requirements'],
|
|
98
|
+
'id': json['id'],
|
|
99
|
+
'domain': BuyerDomainTransferListItemDomainDtoFromJSON(json['domain']),
|
|
100
|
+
'status': json['status'],
|
|
101
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function BuyerDomainTransferListItemDtoToJSON(value?: BuyerDomainTransferListItemDto | null): any {
|
|
106
|
+
if (value == null) {
|
|
107
|
+
return value;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'requirements': value['requirements'],
|
|
112
|
+
'id': value['id'],
|
|
113
|
+
'domain': BuyerDomainTransferListItemDomainDtoToJSON(value['domain']),
|
|
114
|
+
'status': value['status'],
|
|
115
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
@@ -20,35 +20,29 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface BuyerUserDto {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Buyer access token id
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof BuyerUserDto
|
|
26
26
|
*/
|
|
27
27
|
id: string;
|
|
28
28
|
/**
|
|
29
|
-
* Buyer
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof BuyerUserDto
|
|
32
|
-
*/
|
|
33
|
-
locale: string;
|
|
34
|
-
/**
|
|
35
|
-
* Buyer user email address
|
|
29
|
+
* Buyer Id
|
|
36
30
|
* @type {string}
|
|
37
31
|
* @memberof BuyerUserDto
|
|
38
32
|
*/
|
|
39
|
-
|
|
33
|
+
buyerId: string;
|
|
40
34
|
/**
|
|
41
|
-
* Buyer user
|
|
35
|
+
* Buyer user locale
|
|
42
36
|
* @type {string}
|
|
43
37
|
* @memberof BuyerUserDto
|
|
44
38
|
*/
|
|
45
|
-
|
|
39
|
+
locale: string;
|
|
46
40
|
/**
|
|
47
|
-
* Buyer user
|
|
41
|
+
* Buyer user email address
|
|
48
42
|
* @type {string}
|
|
49
43
|
* @memberof BuyerUserDto
|
|
50
44
|
*/
|
|
51
|
-
|
|
45
|
+
email: string;
|
|
52
46
|
/**
|
|
53
47
|
* Buyer user roles
|
|
54
48
|
* @type {Array<string>}
|
|
@@ -62,10 +56,9 @@ export interface BuyerUserDto {
|
|
|
62
56
|
*/
|
|
63
57
|
export function instanceOfBuyerUserDto(value: object): value is BuyerUserDto {
|
|
64
58
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('buyerId' in value) || value['buyerId'] === undefined) return false;
|
|
65
60
|
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
66
61
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
67
|
-
if (!('firstname' in value) || value['firstname'] === undefined) return false;
|
|
68
|
-
if (!('lastname' in value) || value['lastname'] === undefined) return false;
|
|
69
62
|
if (!('roles' in value) || value['roles'] === undefined) return false;
|
|
70
63
|
return true;
|
|
71
64
|
}
|
|
@@ -81,10 +74,9 @@ export function BuyerUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
81
74
|
return {
|
|
82
75
|
|
|
83
76
|
'id': json['id'],
|
|
77
|
+
'buyerId': json['buyerId'],
|
|
84
78
|
'locale': json['locale'],
|
|
85
79
|
'email': json['email'],
|
|
86
|
-
'firstname': json['firstname'],
|
|
87
|
-
'lastname': json['lastname'],
|
|
88
80
|
'roles': json['roles'],
|
|
89
81
|
};
|
|
90
82
|
}
|
|
@@ -96,10 +88,9 @@ export function BuyerUserDtoToJSON(value?: BuyerUserDto | null): any {
|
|
|
96
88
|
return {
|
|
97
89
|
|
|
98
90
|
'id': value['id'],
|
|
91
|
+
'buyerId': value['buyerId'],
|
|
99
92
|
'locale': value['locale'],
|
|
100
93
|
'email': value['email'],
|
|
101
|
-
'firstname': value['firstname'],
|
|
102
|
-
'lastname': value['lastname'],
|
|
103
94
|
'roles': value['roles'],
|
|
104
95
|
};
|
|
105
96
|
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
17
|
+
import {
|
|
18
|
+
PaginateResponseLinksFromJSON,
|
|
19
|
+
PaginateResponseLinksFromJSONTyped,
|
|
20
|
+
PaginateResponseLinksToJSON,
|
|
21
|
+
} from './PaginateResponseLinks';
|
|
22
|
+
import type { BuyerDomainTransferListItemDto } from './BuyerDomainTransferListItemDto';
|
|
23
|
+
import {
|
|
24
|
+
BuyerDomainTransferListItemDtoFromJSON,
|
|
25
|
+
BuyerDomainTransferListItemDtoFromJSONTyped,
|
|
26
|
+
BuyerDomainTransferListItemDtoToJSON,
|
|
27
|
+
} from './BuyerDomainTransferListItemDto';
|
|
28
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
29
|
+
import {
|
|
30
|
+
PaginateResponseMetaFromJSON,
|
|
31
|
+
PaginateResponseMetaFromJSONTyped,
|
|
32
|
+
PaginateResponseMetaToJSON,
|
|
33
|
+
} from './PaginateResponseMeta';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface GetBuyerTransfers200Response
|
|
39
|
+
*/
|
|
40
|
+
export interface GetBuyerTransfers200Response {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<BuyerDomainTransferListItemDto>}
|
|
44
|
+
* @memberof GetBuyerTransfers200Response
|
|
45
|
+
*/
|
|
46
|
+
data: Array<BuyerDomainTransferListItemDto>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {PaginateResponseMeta}
|
|
50
|
+
* @memberof GetBuyerTransfers200Response
|
|
51
|
+
*/
|
|
52
|
+
meta: PaginateResponseMeta;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {PaginateResponseLinks}
|
|
56
|
+
* @memberof GetBuyerTransfers200Response
|
|
57
|
+
*/
|
|
58
|
+
links: PaginateResponseLinks;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the GetBuyerTransfers200Response interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfGetBuyerTransfers200Response(value: object): value is GetBuyerTransfers200Response {
|
|
65
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
66
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
67
|
+
if (!('links' in value) || value['links'] === undefined) return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function GetBuyerTransfers200ResponseFromJSON(json: any): GetBuyerTransfers200Response {
|
|
72
|
+
return GetBuyerTransfers200ResponseFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function GetBuyerTransfers200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetBuyerTransfers200Response {
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'data': ((json['data'] as Array<any>).map(BuyerDomainTransferListItemDtoFromJSON)),
|
|
82
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
83
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function GetBuyerTransfers200ResponseToJSON(value?: GetBuyerTransfers200Response | null): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'data': ((value['data'] as Array<any>).map(BuyerDomainTransferListItemDtoToJSON)),
|
|
94
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
95
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
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 StoreBuyerLocaleInput
|
|
20
|
+
*/
|
|
21
|
+
export interface StoreBuyerLocaleInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof StoreBuyerLocaleInput
|
|
26
|
+
*/
|
|
27
|
+
locale: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the StoreBuyerLocaleInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfStoreBuyerLocaleInput(value: object): value is StoreBuyerLocaleInput {
|
|
34
|
+
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function StoreBuyerLocaleInputFromJSON(json: any): StoreBuyerLocaleInput {
|
|
39
|
+
return StoreBuyerLocaleInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function StoreBuyerLocaleInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreBuyerLocaleInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'locale': json['locale'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function StoreBuyerLocaleInputToJSON(value?: StoreBuyerLocaleInput | null): any {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'locale': value['locale'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|