@randock/nameshift-api-client 0.0.111 → 0.0.112
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 +3 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.js +1 -1
- package/dist/apis/AdminApi.d.ts +24 -1
- package/dist/apis/AdminApi.js +109 -0
- package/dist/apis/DomainsApi.d.ts +3 -3
- package/dist/apis/DomainsApi.js +1 -1
- package/dist/apis/LeadsApi.d.ts +3 -3
- package/dist/apis/LeadsApi.js +1 -1
- package/dist/models/AccountSettingsDto.d.ts +50 -0
- package/dist/models/AccountSettingsDto.js +59 -0
- package/dist/models/AdminAccountSettingsInput.d.ts +31 -0
- package/dist/models/AdminAccountSettingsInput.js +44 -0
- package/dist/models/List200Response.d.ts +3 -3
- package/dist/models/List200Response.js +3 -3
- package/dist/models/List200Response1.d.ts +3 -3
- package/dist/models/List200Response1.js +3 -3
- package/dist/models/ThrottlerException.d.ts +43 -0
- package/dist/models/ThrottlerException.js +54 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +4 -1
- package/src/apis/AccountsPublicApi.ts +3 -0
- package/src/apis/AdminApi.ts +109 -0
- package/src/apis/BuyersApi.ts +3 -0
- package/src/apis/BuyersPublicApi.ts +3 -0
- package/src/apis/DomainsApi.ts +9 -6
- package/src/apis/DomainsPublicApi.ts +3 -0
- package/src/apis/LeadsApi.ts +9 -6
- package/src/apis/LeadsPublicApi.ts +3 -0
- package/src/apis/OrdersPublicApi.ts +3 -0
- package/src/apis/StripePublicApi.ts +3 -0
- package/src/apis/UsersApi.ts +3 -0
- package/src/apis/UsersPublicApi.ts +3 -0
- package/src/models/AccountSettingsDto.ts +95 -0
- package/src/models/AdminAccountSettingsInput.ts +60 -0
- package/src/models/List200Response.ts +9 -9
- package/src/models/List200Response1.ts +9 -9
- package/src/models/ThrottlerException.ts +79 -0
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,60 @@
|
|
|
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 AdminAccountSettingsInput
|
|
20
|
+
*/
|
|
21
|
+
export interface AdminAccountSettingsInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof AdminAccountSettingsInput
|
|
26
|
+
*/
|
|
27
|
+
automaticPayouts?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AdminAccountSettingsInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAdminAccountSettingsInput(value: object): value is AdminAccountSettingsInput {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function AdminAccountSettingsInputFromJSON(json: any): AdminAccountSettingsInput {
|
|
38
|
+
return AdminAccountSettingsInputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function AdminAccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAccountSettingsInput {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'automaticPayouts': json['automaticPayouts'] == null ? undefined : json['automaticPayouts'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function AdminAccountSettingsInputToJSON(value?: AdminAccountSettingsInput | null): any {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'automaticPayouts': value['automaticPayouts'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
PaginateResponseLinksFromJSONTyped,
|
|
20
20
|
PaginateResponseLinksToJSON,
|
|
21
21
|
} from './PaginateResponseLinks';
|
|
22
|
-
import type {
|
|
22
|
+
import type { IntersectionLeadDtoWithListFieldsDto } from './IntersectionLeadDtoWithListFieldsDto';
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from './
|
|
24
|
+
IntersectionLeadDtoWithListFieldsDtoFromJSON,
|
|
25
|
+
IntersectionLeadDtoWithListFieldsDtoFromJSONTyped,
|
|
26
|
+
IntersectionLeadDtoWithListFieldsDtoToJSON,
|
|
27
|
+
} from './IntersectionLeadDtoWithListFieldsDto';
|
|
28
28
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
29
29
|
import {
|
|
30
30
|
PaginateResponseMetaFromJSON,
|
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
export interface List200Response {
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {Array<
|
|
43
|
+
* @type {Array<IntersectionLeadDtoWithListFieldsDto>}
|
|
44
44
|
* @memberof List200Response
|
|
45
45
|
*/
|
|
46
|
-
data: Array<
|
|
46
|
+
data: Array<IntersectionLeadDtoWithListFieldsDto>;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {PaginateResponseMeta}
|
|
@@ -78,7 +78,7 @@ export function List200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
78
78
|
}
|
|
79
79
|
return {
|
|
80
80
|
|
|
81
|
-
'data': ((json['data'] as Array<any>).map(
|
|
81
|
+
'data': ((json['data'] as Array<any>).map(IntersectionLeadDtoWithListFieldsDtoFromJSON)),
|
|
82
82
|
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
83
83
|
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
84
84
|
};
|
|
@@ -90,7 +90,7 @@ export function List200ResponseToJSON(value?: List200Response | null): any {
|
|
|
90
90
|
}
|
|
91
91
|
return {
|
|
92
92
|
|
|
93
|
-
'data': ((value['data'] as Array<any>).map(
|
|
93
|
+
'data': ((value['data'] as Array<any>).map(IntersectionLeadDtoWithListFieldsDtoToJSON)),
|
|
94
94
|
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
95
95
|
'links': PaginateResponseLinksToJSON(value['links']),
|
|
96
96
|
};
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
PaginateResponseLinksFromJSONTyped,
|
|
20
20
|
PaginateResponseLinksToJSON,
|
|
21
21
|
} from './PaginateResponseLinks';
|
|
22
|
-
import type {
|
|
22
|
+
import type { IntersectionDomainDtoWithDomainUrlDto } from './IntersectionDomainDtoWithDomainUrlDto';
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from './
|
|
24
|
+
IntersectionDomainDtoWithDomainUrlDtoFromJSON,
|
|
25
|
+
IntersectionDomainDtoWithDomainUrlDtoFromJSONTyped,
|
|
26
|
+
IntersectionDomainDtoWithDomainUrlDtoToJSON,
|
|
27
|
+
} from './IntersectionDomainDtoWithDomainUrlDto';
|
|
28
28
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
29
29
|
import {
|
|
30
30
|
PaginateResponseMetaFromJSON,
|
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
export interface List200Response1 {
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {Array<
|
|
43
|
+
* @type {Array<IntersectionDomainDtoWithDomainUrlDto>}
|
|
44
44
|
* @memberof List200Response1
|
|
45
45
|
*/
|
|
46
|
-
data: Array<
|
|
46
|
+
data: Array<IntersectionDomainDtoWithDomainUrlDto>;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {PaginateResponseMeta}
|
|
@@ -78,7 +78,7 @@ export function List200Response1FromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
78
78
|
}
|
|
79
79
|
return {
|
|
80
80
|
|
|
81
|
-
'data': ((json['data'] as Array<any>).map(
|
|
81
|
+
'data': ((json['data'] as Array<any>).map(IntersectionDomainDtoWithDomainUrlDtoFromJSON)),
|
|
82
82
|
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
83
83
|
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
84
84
|
};
|
|
@@ -90,7 +90,7 @@ export function List200Response1ToJSON(value?: List200Response1 | null): any {
|
|
|
90
90
|
}
|
|
91
91
|
return {
|
|
92
92
|
|
|
93
|
-
'data': ((value['data'] as Array<any>).map(
|
|
93
|
+
'data': ((value['data'] as Array<any>).map(IntersectionDomainDtoWithDomainUrlDtoToJSON)),
|
|
94
94
|
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
95
95
|
'links': PaginateResponseLinksToJSON(value['links']),
|
|
96
96
|
};
|
|
@@ -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 ThrottlerException
|
|
20
|
+
*/
|
|
21
|
+
export interface ThrottlerException {
|
|
22
|
+
/**
|
|
23
|
+
* Exception name
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ThrottlerException
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* http status code
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ThrottlerException
|
|
32
|
+
*/
|
|
33
|
+
statusCode: number;
|
|
34
|
+
/**
|
|
35
|
+
* error message
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ThrottlerException
|
|
38
|
+
*/
|
|
39
|
+
message: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ThrottlerException interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfThrottlerException(value: object): value is ThrottlerException {
|
|
46
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
48
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ThrottlerExceptionFromJSON(json: any): ThrottlerException {
|
|
53
|
+
return ThrottlerExceptionFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ThrottlerExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThrottlerException {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'name': json['name'],
|
|
63
|
+
'statusCode': json['statusCode'],
|
|
64
|
+
'message': json['message'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ThrottlerExceptionToJSON(value?: ThrottlerException | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'name': value['name'],
|
|
75
|
+
'statusCode': value['statusCode'],
|
|
76
|
+
'message': value['message'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
export * from './AccountDto';
|
|
4
4
|
export * from './AccountMetricsDto';
|
|
5
5
|
export * from './AccountPaymentProviderSessionDto';
|
|
6
|
+
export * from './AccountSettingsDto';
|
|
6
7
|
export * from './AccountSettingsInput';
|
|
7
8
|
export * from './AddressDto';
|
|
9
|
+
export * from './AdminAccountSettingsInput';
|
|
8
10
|
export * from './AdminGetAllDomainTransfers200Response';
|
|
9
11
|
export * from './BadRequestException';
|
|
10
12
|
export * from './BatchReadBuyerLeadMessageInput';
|
|
@@ -110,6 +112,7 @@ export * from './SetDomainTransferConfirmationInput';
|
|
|
110
112
|
export * from './SetNewPasswordInput';
|
|
111
113
|
export * from './StoreBuyerLocaleInput';
|
|
112
114
|
export * from './StoreUserLocaleInput';
|
|
115
|
+
export * from './ThrottlerException';
|
|
113
116
|
export * from './UpdateDomainInput';
|
|
114
117
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
115
118
|
export * from './UpdateLeadInput';
|