@randock/nameshift-api-client 0.0.61 → 0.0.63
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 +5 -0
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +26 -1
- package/dist/apis/BuyersApi.js +116 -0
- package/dist/apis/BuyersPublicApi.d.ts +12 -1
- package/dist/apis/BuyersPublicApi.js +44 -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 -1
- package/dist/models/BuyerUserDto.js +4 -0
- package/dist/models/GetBuyerTransfers200Response.d.ts +46 -0
- package/dist/models/GetBuyerTransfers200Response.js +58 -0
- package/dist/models/RequestAccessTokenInput.d.ts +31 -0
- package/dist/models/RequestAccessTokenInput.js +47 -0
- package/dist/models/StoreBuyerLocaleInput.d.ts +31 -0
- package/dist/models/StoreBuyerLocaleInput.js +47 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +110 -0
- package/src/apis/BuyersPublicApi.ts +42 -0
- package/src/models/BuyerDomainTransferListItemDomainDto.ts +79 -0
- package/src/models/BuyerDomainTransferListItemDto.ts +118 -0
- package/src/models/BuyerUserDto.ts +10 -1
- package/src/models/GetBuyerTransfers200Response.ts +98 -0
- package/src/models/RequestAccessTokenInput.ts +61 -0
- package/src/models/StoreBuyerLocaleInput.ts +61 -0
- package/src/models/index.ts +5 -0
|
@@ -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,11 +20,17 @@ 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
|
+
/**
|
|
29
|
+
* Buyer Id
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BuyerUserDto
|
|
32
|
+
*/
|
|
33
|
+
buyerId: string;
|
|
28
34
|
/**
|
|
29
35
|
* Buyer user locale
|
|
30
36
|
* @type {string}
|
|
@@ -50,6 +56,7 @@ export interface BuyerUserDto {
|
|
|
50
56
|
*/
|
|
51
57
|
export function instanceOfBuyerUserDto(value: object): value is BuyerUserDto {
|
|
52
58
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('buyerId' in value) || value['buyerId'] === undefined) return false;
|
|
53
60
|
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
54
61
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
55
62
|
if (!('roles' in value) || value['roles'] === undefined) return false;
|
|
@@ -67,6 +74,7 @@ export function BuyerUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
67
74
|
return {
|
|
68
75
|
|
|
69
76
|
'id': json['id'],
|
|
77
|
+
'buyerId': json['buyerId'],
|
|
70
78
|
'locale': json['locale'],
|
|
71
79
|
'email': json['email'],
|
|
72
80
|
'roles': json['roles'],
|
|
@@ -80,6 +88,7 @@ export function BuyerUserDtoToJSON(value?: BuyerUserDto | null): any {
|
|
|
80
88
|
return {
|
|
81
89
|
|
|
82
90
|
'id': value['id'],
|
|
91
|
+
'buyerId': value['buyerId'],
|
|
83
92
|
'locale': value['locale'],
|
|
84
93
|
'email': value['email'],
|
|
85
94
|
'roles': value['roles'],
|
|
@@ -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 RequestAccessTokenInput
|
|
20
|
+
*/
|
|
21
|
+
export interface RequestAccessTokenInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RequestAccessTokenInput
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the RequestAccessTokenInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfRequestAccessTokenInput(value: object): value is RequestAccessTokenInput {
|
|
34
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function RequestAccessTokenInputFromJSON(json: any): RequestAccessTokenInput {
|
|
39
|
+
return RequestAccessTokenInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function RequestAccessTokenInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestAccessTokenInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'email': json['email'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function RequestAccessTokenInputToJSON(value?: RequestAccessTokenInput | null): any {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'email': value['email'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
@@ -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
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -8,6 +8,8 @@ export * from './AccountSettingsInput';
|
|
|
8
8
|
export * from './AdminGetAllDomainTransfers200Response';
|
|
9
9
|
export * from './BatchUpdateDomainsInput';
|
|
10
10
|
export * from './BuyDomainInput';
|
|
11
|
+
export * from './BuyerDomainTransferListItemDomainDto';
|
|
12
|
+
export * from './BuyerDomainTransferListItemDto';
|
|
11
13
|
export * from './BuyerUserDto';
|
|
12
14
|
export * from './ChangeOrderStatusInput';
|
|
13
15
|
export * from './ConflictException';
|
|
@@ -27,6 +29,7 @@ export * from './DomainTransferDtoAgent';
|
|
|
27
29
|
export * from './DomainTransferOrderDto';
|
|
28
30
|
export * from './ForgotPasswordRequestInput';
|
|
29
31
|
export * from './GetAllDomainTransfers200Response';
|
|
32
|
+
export * from './GetBuyerTransfers200Response';
|
|
30
33
|
export * from './HttpException';
|
|
31
34
|
export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
|
|
32
35
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
@@ -59,6 +62,7 @@ export * from './PublicLeadDtoLastOffer';
|
|
|
59
62
|
export * from './PutLeadInput';
|
|
60
63
|
export * from './RegisterAccountInput';
|
|
61
64
|
export * from './RelatedSellerDomain';
|
|
65
|
+
export * from './RequestAccessTokenInput';
|
|
62
66
|
export * from './SecurityUserDto';
|
|
63
67
|
export * from './SellerDomainTransferAuthCodeDto';
|
|
64
68
|
export * from './SellerDomainTransferDomainDto';
|
|
@@ -67,6 +71,7 @@ export * from './SellerDomainTransferDtoAuthCode';
|
|
|
67
71
|
export * from './SellerDomainTransferListItemDomainDto';
|
|
68
72
|
export * from './SellerDomainTransferListItemDto';
|
|
69
73
|
export * from './SetNewPasswordInput';
|
|
74
|
+
export * from './StoreBuyerLocaleInput';
|
|
70
75
|
export * from './StoreUserLocaleInput';
|
|
71
76
|
export * from './ThrottlerException';
|
|
72
77
|
export * from './UpdateDomainInput';
|