@randock/nameshift-api-client 0.0.243 → 0.0.244
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/DomainsPublicApi.d.ts +4 -4
- package/dist/apis/DomainsPublicApi.js +8 -8
- package/dist/models/CursorBasedPageInfo.d.ts +38 -0
- package/dist/models/CursorBasedPageInfo.js +55 -0
- package/dist/models/CursorBasedPaginationResponse.d.ts +52 -0
- package/dist/models/CursorBasedPaginationResponse.js +67 -0
- package/dist/models/List200Response3.d.ts +20 -8
- package/dist/models/List200Response3.js +19 -11
- package/dist/models/PageBasedPageInfo.d.ts +38 -0
- package/dist/models/PageBasedPageInfo.js +55 -0
- package/dist/models/PageBasedPaginationResponse.d.ts +64 -0
- package/dist/models/PageBasedPaginationResponse.js +75 -0
- package/dist/models/SortDto.d.ts +52 -0
- package/dist/models/SortDto.js +65 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/DomainsPublicApi.ts +14 -11
- package/src/models/CursorBasedPageInfo.ts +75 -0
- package/src/models/CursorBasedPaginationResponse.ts +102 -0
- package/src/models/List200Response3.ts +39 -28
- package/src/models/PageBasedPageInfo.ts +75 -0
- package/src/models/PageBasedPaginationResponse.ts +120 -0
- package/src/models/SortDto.ts +94 -0
- package/src/models/index.ts +5 -0
|
@@ -0,0 +1,52 @@
|
|
|
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 SortDto
|
|
16
|
+
*/
|
|
17
|
+
export interface SortDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SortDto
|
|
22
|
+
*/
|
|
23
|
+
field: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SortDto
|
|
28
|
+
*/
|
|
29
|
+
direction: SortDtoDirectionEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof SortDto
|
|
34
|
+
*/
|
|
35
|
+
nullsFirst?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const SortDtoDirectionEnum: {
|
|
41
|
+
readonly ASC: "asc";
|
|
42
|
+
readonly DESC: "desc";
|
|
43
|
+
};
|
|
44
|
+
export type SortDtoDirectionEnum = typeof SortDtoDirectionEnum[keyof typeof SortDtoDirectionEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the SortDto interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfSortDto(value: object): value is SortDto;
|
|
49
|
+
export declare function SortDtoFromJSON(json: any): SortDto;
|
|
50
|
+
export declare function SortDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SortDto;
|
|
51
|
+
export declare function SortDtoToJSON(json: any): SortDto;
|
|
52
|
+
export declare function SortDtoToJSONTyped(value?: SortDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
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.SortDtoDirectionEnum = void 0;
|
|
17
|
+
exports.instanceOfSortDto = instanceOfSortDto;
|
|
18
|
+
exports.SortDtoFromJSON = SortDtoFromJSON;
|
|
19
|
+
exports.SortDtoFromJSONTyped = SortDtoFromJSONTyped;
|
|
20
|
+
exports.SortDtoToJSON = SortDtoToJSON;
|
|
21
|
+
exports.SortDtoToJSONTyped = SortDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.SortDtoDirectionEnum = {
|
|
26
|
+
ASC: 'asc',
|
|
27
|
+
DESC: 'desc'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the SortDto interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfSortDto(value) {
|
|
33
|
+
if (!('field' in value) || value['field'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('direction' in value) || value['direction'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function SortDtoFromJSON(json) {
|
|
40
|
+
return SortDtoFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function SortDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'field': json['field'],
|
|
48
|
+
'direction': json['direction'],
|
|
49
|
+
'nullsFirst': json['nullsFirst'] == null ? undefined : json['nullsFirst'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function SortDtoToJSON(json) {
|
|
53
|
+
return SortDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function SortDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'field': value['field'],
|
|
62
|
+
'direction': value['direction'],
|
|
63
|
+
'nullsFirst': value['nullsFirst'],
|
|
64
|
+
};
|
|
65
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -59,6 +59,8 @@ export * from './CreateManualLeadInput';
|
|
|
59
59
|
export * from './CreateOrderInput';
|
|
60
60
|
export * from './CreateSubscriptionBillingPeriodicityInput';
|
|
61
61
|
export * from './CreateSubscriptionInput';
|
|
62
|
+
export * from './CursorBasedPageInfo';
|
|
63
|
+
export * from './CursorBasedPaginationResponse';
|
|
62
64
|
export * from './DeleteDomainsInput';
|
|
63
65
|
export * from './DomainDto';
|
|
64
66
|
export * from './DomainExchangeRateDto';
|
|
@@ -153,6 +155,8 @@ export * from './OrderListItemDtoBuyerInformation';
|
|
|
153
155
|
export * from './OrderListItemDtoDomainInformation';
|
|
154
156
|
export * from './OrderListItemDtoSellerAccount';
|
|
155
157
|
export * from './OwnedDomainDto';
|
|
158
|
+
export * from './PageBasedPageInfo';
|
|
159
|
+
export * from './PageBasedPaginationResponse';
|
|
156
160
|
export * from './PaginateResponse';
|
|
157
161
|
export * from './PaginateResponseLinks';
|
|
158
162
|
export * from './PaginateResponseMeta';
|
|
@@ -187,6 +191,7 @@ export * from './SepaBankAccountDetails';
|
|
|
187
191
|
export * from './SetDomainTransferConfirmationInput';
|
|
188
192
|
export * from './SetNewPasswordInput';
|
|
189
193
|
export * from './SetPayoutProviderInput';
|
|
194
|
+
export * from './SortDto';
|
|
190
195
|
export * from './StoreBuyerLocaleInput';
|
|
191
196
|
export * from './StoreUserLocaleInput';
|
|
192
197
|
export * from './SubscriptionBillingPeriodicityDto';
|
package/dist/models/index.js
CHANGED
|
@@ -77,6 +77,8 @@ __exportStar(require("./CreateManualLeadInput"), exports);
|
|
|
77
77
|
__exportStar(require("./CreateOrderInput"), exports);
|
|
78
78
|
__exportStar(require("./CreateSubscriptionBillingPeriodicityInput"), exports);
|
|
79
79
|
__exportStar(require("./CreateSubscriptionInput"), exports);
|
|
80
|
+
__exportStar(require("./CursorBasedPageInfo"), exports);
|
|
81
|
+
__exportStar(require("./CursorBasedPaginationResponse"), exports);
|
|
80
82
|
__exportStar(require("./DeleteDomainsInput"), exports);
|
|
81
83
|
__exportStar(require("./DomainDto"), exports);
|
|
82
84
|
__exportStar(require("./DomainExchangeRateDto"), exports);
|
|
@@ -171,6 +173,8 @@ __exportStar(require("./OrderListItemDtoBuyerInformation"), exports);
|
|
|
171
173
|
__exportStar(require("./OrderListItemDtoDomainInformation"), exports);
|
|
172
174
|
__exportStar(require("./OrderListItemDtoSellerAccount"), exports);
|
|
173
175
|
__exportStar(require("./OwnedDomainDto"), exports);
|
|
176
|
+
__exportStar(require("./PageBasedPageInfo"), exports);
|
|
177
|
+
__exportStar(require("./PageBasedPaginationResponse"), exports);
|
|
174
178
|
__exportStar(require("./PaginateResponse"), exports);
|
|
175
179
|
__exportStar(require("./PaginateResponseLinks"), exports);
|
|
176
180
|
__exportStar(require("./PaginateResponseMeta"), exports);
|
|
@@ -205,6 +209,7 @@ __exportStar(require("./SepaBankAccountDetails"), exports);
|
|
|
205
209
|
__exportStar(require("./SetDomainTransferConfirmationInput"), exports);
|
|
206
210
|
__exportStar(require("./SetNewPasswordInput"), exports);
|
|
207
211
|
__exportStar(require("./SetPayoutProviderInput"), exports);
|
|
212
|
+
__exportStar(require("./SortDto"), exports);
|
|
208
213
|
__exportStar(require("./StoreBuyerLocaleInput"), exports);
|
|
209
214
|
__exportStar(require("./StoreUserLocaleInput"), exports);
|
|
210
215
|
__exportStar(require("./SubscriptionBillingPeriodicityDto"), exports);
|
package/package.json
CHANGED
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
DomainSalesInformationDto,
|
|
19
19
|
List200Response3,
|
|
20
20
|
NotFoundException,
|
|
21
|
+
SortDto,
|
|
21
22
|
ThrottlerException,
|
|
22
23
|
ValidationException,
|
|
23
24
|
} from '../models/index';
|
|
@@ -28,6 +29,8 @@ import {
|
|
|
28
29
|
List200Response3ToJSON,
|
|
29
30
|
NotFoundExceptionFromJSON,
|
|
30
31
|
NotFoundExceptionToJSON,
|
|
32
|
+
SortDtoFromJSON,
|
|
33
|
+
SortDtoToJSON,
|
|
31
34
|
ThrottlerExceptionFromJSON,
|
|
32
35
|
ThrottlerExceptionToJSON,
|
|
33
36
|
ValidationExceptionFromJSON,
|
|
@@ -42,10 +45,10 @@ export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
export interface DomainsPublicApiListRequest {
|
|
45
|
-
filter?: object;
|
|
46
|
-
page?: number;
|
|
47
48
|
limit?: number;
|
|
48
|
-
|
|
49
|
+
sort?: Array<SortDto>;
|
|
50
|
+
filter?: string;
|
|
51
|
+
cursor?: string;
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
/**
|
|
@@ -104,20 +107,20 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
104
107
|
async listRaw(requestParameters: DomainsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response3>> {
|
|
105
108
|
const queryParameters: any = {};
|
|
106
109
|
|
|
107
|
-
if (requestParameters['
|
|
108
|
-
queryParameters['
|
|
110
|
+
if (requestParameters['limit'] != null) {
|
|
111
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
109
112
|
}
|
|
110
113
|
|
|
111
|
-
if (requestParameters['
|
|
112
|
-
queryParameters['
|
|
114
|
+
if (requestParameters['sort'] != null) {
|
|
115
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
113
116
|
}
|
|
114
117
|
|
|
115
|
-
if (requestParameters['
|
|
116
|
-
queryParameters['
|
|
118
|
+
if (requestParameters['filter'] != null) {
|
|
119
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
117
120
|
}
|
|
118
121
|
|
|
119
|
-
if (requestParameters['
|
|
120
|
-
queryParameters['
|
|
122
|
+
if (requestParameters['cursor'] != null) {
|
|
123
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
121
124
|
}
|
|
122
125
|
|
|
123
126
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -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 CursorBasedPageInfo
|
|
20
|
+
*/
|
|
21
|
+
export interface CursorBasedPageInfo {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CursorBasedPageInfo
|
|
26
|
+
*/
|
|
27
|
+
previous: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CursorBasedPageInfo
|
|
32
|
+
*/
|
|
33
|
+
next: string | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the CursorBasedPageInfo interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfCursorBasedPageInfo(value: object): value is CursorBasedPageInfo {
|
|
40
|
+
if (!('previous' in value) || value['previous'] === undefined) return false;
|
|
41
|
+
if (!('next' in value) || value['next'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function CursorBasedPageInfoFromJSON(json: any): CursorBasedPageInfo {
|
|
46
|
+
return CursorBasedPageInfoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function CursorBasedPageInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CursorBasedPageInfo {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'previous': json['previous'],
|
|
56
|
+
'next': json['next'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CursorBasedPageInfoToJSON(json: any): CursorBasedPageInfo {
|
|
61
|
+
return CursorBasedPageInfoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CursorBasedPageInfoToJSONTyped(value?: CursorBasedPageInfo | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'previous': value['previous'],
|
|
72
|
+
'next': value['next'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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 { CursorBasedPageInfo } from './CursorBasedPageInfo';
|
|
17
|
+
import {
|
|
18
|
+
CursorBasedPageInfoFromJSON,
|
|
19
|
+
CursorBasedPageInfoFromJSONTyped,
|
|
20
|
+
CursorBasedPageInfoToJSON,
|
|
21
|
+
CursorBasedPageInfoToJSONTyped,
|
|
22
|
+
} from './CursorBasedPageInfo';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CursorBasedPaginationResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface CursorBasedPaginationResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CursorBasedPaginationResponse
|
|
34
|
+
*/
|
|
35
|
+
limit: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CursorBasedPaginationResponse
|
|
40
|
+
*/
|
|
41
|
+
type: CursorBasedPaginationResponseTypeEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {CursorBasedPageInfo}
|
|
45
|
+
* @memberof CursorBasedPaginationResponse
|
|
46
|
+
*/
|
|
47
|
+
pagination: CursorBasedPageInfo;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export const CursorBasedPaginationResponseTypeEnum = {
|
|
55
|
+
CURSOR: 'cursor'
|
|
56
|
+
} as const;
|
|
57
|
+
export type CursorBasedPaginationResponseTypeEnum = typeof CursorBasedPaginationResponseTypeEnum[keyof typeof CursorBasedPaginationResponseTypeEnum];
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the CursorBasedPaginationResponse interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfCursorBasedPaginationResponse(value: object): value is CursorBasedPaginationResponse {
|
|
64
|
+
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
65
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
66
|
+
if (!('pagination' in value) || value['pagination'] === undefined) return false;
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function CursorBasedPaginationResponseFromJSON(json: any): CursorBasedPaginationResponse {
|
|
71
|
+
return CursorBasedPaginationResponseFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function CursorBasedPaginationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CursorBasedPaginationResponse {
|
|
75
|
+
if (json == null) {
|
|
76
|
+
return json;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'limit': json['limit'],
|
|
81
|
+
'type': json['type'],
|
|
82
|
+
'pagination': CursorBasedPageInfoFromJSON(json['pagination']),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function CursorBasedPaginationResponseToJSON(json: any): CursorBasedPaginationResponse {
|
|
87
|
+
return CursorBasedPaginationResponseToJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function CursorBasedPaginationResponseToJSONTyped(value?: CursorBasedPaginationResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
91
|
+
if (value == null) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'limit': value['limit'],
|
|
98
|
+
'type': value['type'],
|
|
99
|
+
'pagination': CursorBasedPageInfoToJSON(value['pagination']),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { CursorBasedPageInfo } from './CursorBasedPageInfo';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
CursorBasedPageInfoFromJSON,
|
|
19
|
+
CursorBasedPageInfoFromJSONTyped,
|
|
20
|
+
CursorBasedPageInfoToJSON,
|
|
21
|
+
CursorBasedPageInfoToJSONTyped,
|
|
22
|
+
} from './CursorBasedPageInfo';
|
|
23
23
|
import type { PublicDomainDto } from './PublicDomainDto';
|
|
24
24
|
import {
|
|
25
25
|
PublicDomainDtoFromJSON,
|
|
@@ -27,13 +27,6 @@ import {
|
|
|
27
27
|
PublicDomainDtoToJSON,
|
|
28
28
|
PublicDomainDtoToJSONTyped,
|
|
29
29
|
} from './PublicDomainDto';
|
|
30
|
-
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
31
|
-
import {
|
|
32
|
-
PaginateResponseMetaFromJSON,
|
|
33
|
-
PaginateResponseMetaFromJSONTyped,
|
|
34
|
-
PaginateResponseMetaToJSON,
|
|
35
|
-
PaginateResponseMetaToJSONTyped,
|
|
36
|
-
} from './PaginateResponseMeta';
|
|
37
30
|
|
|
38
31
|
/**
|
|
39
32
|
*
|
|
@@ -43,31 +36,47 @@ import {
|
|
|
43
36
|
export interface List200Response3 {
|
|
44
37
|
/**
|
|
45
38
|
*
|
|
46
|
-
* @type {
|
|
39
|
+
* @type {number}
|
|
47
40
|
* @memberof List200Response3
|
|
48
41
|
*/
|
|
49
|
-
|
|
42
|
+
limit: number;
|
|
50
43
|
/**
|
|
51
44
|
*
|
|
52
|
-
* @type {
|
|
45
|
+
* @type {string}
|
|
53
46
|
* @memberof List200Response3
|
|
54
47
|
*/
|
|
55
|
-
|
|
48
|
+
type: List200Response3TypeEnum;
|
|
56
49
|
/**
|
|
57
50
|
*
|
|
58
|
-
* @type {
|
|
51
|
+
* @type {CursorBasedPageInfo}
|
|
52
|
+
* @memberof List200Response3
|
|
53
|
+
*/
|
|
54
|
+
pagination: CursorBasedPageInfo;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<PublicDomainDto>}
|
|
59
58
|
* @memberof List200Response3
|
|
60
59
|
*/
|
|
61
|
-
|
|
60
|
+
data?: Array<PublicDomainDto>;
|
|
62
61
|
}
|
|
63
62
|
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @export
|
|
66
|
+
*/
|
|
67
|
+
export const List200Response3TypeEnum = {
|
|
68
|
+
CURSOR: 'cursor'
|
|
69
|
+
} as const;
|
|
70
|
+
export type List200Response3TypeEnum = typeof List200Response3TypeEnum[keyof typeof List200Response3TypeEnum];
|
|
71
|
+
|
|
72
|
+
|
|
64
73
|
/**
|
|
65
74
|
* Check if a given object implements the List200Response3 interface.
|
|
66
75
|
*/
|
|
67
76
|
export function instanceOfList200Response3(value: object): value is List200Response3 {
|
|
68
|
-
if (!('
|
|
69
|
-
if (!('
|
|
70
|
-
if (!('
|
|
77
|
+
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
78
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
79
|
+
if (!('pagination' in value) || value['pagination'] === undefined) return false;
|
|
71
80
|
return true;
|
|
72
81
|
}
|
|
73
82
|
|
|
@@ -81,9 +90,10 @@ export function List200Response3FromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
81
90
|
}
|
|
82
91
|
return {
|
|
83
92
|
|
|
84
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'
|
|
93
|
+
'limit': json['limit'],
|
|
94
|
+
'type': json['type'],
|
|
95
|
+
'pagination': CursorBasedPageInfoFromJSON(json['pagination']),
|
|
96
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(PublicDomainDtoFromJSON)),
|
|
87
97
|
};
|
|
88
98
|
}
|
|
89
99
|
|
|
@@ -98,9 +108,10 @@ export function List200Response3ToJSONTyped(value?: List200Response3 | null, ign
|
|
|
98
108
|
|
|
99
109
|
return {
|
|
100
110
|
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'
|
|
111
|
+
'limit': value['limit'],
|
|
112
|
+
'type': value['type'],
|
|
113
|
+
'pagination': CursorBasedPageInfoToJSON(value['pagination']),
|
|
114
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(PublicDomainDtoToJSON)),
|
|
104
115
|
};
|
|
105
116
|
}
|
|
106
117
|
|
|
@@ -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 PageBasedPageInfo
|
|
20
|
+
*/
|
|
21
|
+
export interface PageBasedPageInfo {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PageBasedPageInfo
|
|
26
|
+
*/
|
|
27
|
+
currentPage: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PageBasedPageInfo
|
|
32
|
+
*/
|
|
33
|
+
totalPages: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PageBasedPageInfo interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPageBasedPageInfo(value: object): value is PageBasedPageInfo {
|
|
40
|
+
if (!('currentPage' in value) || value['currentPage'] === undefined) return false;
|
|
41
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PageBasedPageInfoFromJSON(json: any): PageBasedPageInfo {
|
|
46
|
+
return PageBasedPageInfoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PageBasedPageInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageBasedPageInfo {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'currentPage': json['currentPage'],
|
|
56
|
+
'totalPages': json['totalPages'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PageBasedPageInfoToJSON(json: any): PageBasedPageInfo {
|
|
61
|
+
return PageBasedPageInfoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PageBasedPageInfoToJSONTyped(value?: PageBasedPageInfo | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'currentPage': value['currentPage'],
|
|
72
|
+
'totalPages': value['totalPages'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|