@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.
@@ -87,6 +87,8 @@ src/models/CreateManualLeadInput.ts
87
87
  src/models/CreateOrderInput.ts
88
88
  src/models/CreateSubscriptionBillingPeriodicityInput.ts
89
89
  src/models/CreateSubscriptionInput.ts
90
+ src/models/CursorBasedPageInfo.ts
91
+ src/models/CursorBasedPaginationResponse.ts
90
92
  src/models/DeleteDomainsInput.ts
91
93
  src/models/DomainDto.ts
92
94
  src/models/DomainExchangeRateDto.ts
@@ -181,6 +183,8 @@ src/models/OrderListItemDtoBuyerInformation.ts
181
183
  src/models/OrderListItemDtoDomainInformation.ts
182
184
  src/models/OrderListItemDtoSellerAccount.ts
183
185
  src/models/OwnedDomainDto.ts
186
+ src/models/PageBasedPageInfo.ts
187
+ src/models/PageBasedPaginationResponse.ts
184
188
  src/models/PaginateResponse.ts
185
189
  src/models/PaginateResponseLinks.ts
186
190
  src/models/PaginateResponseMeta.ts
@@ -215,6 +219,7 @@ src/models/SepaBankAccountDetails.ts
215
219
  src/models/SetDomainTransferConfirmationInput.ts
216
220
  src/models/SetNewPasswordInput.ts
217
221
  src/models/SetPayoutProviderInput.ts
222
+ src/models/SortDto.ts
218
223
  src/models/StoreBuyerLocaleInput.ts
219
224
  src/models/StoreUserLocaleInput.ts
220
225
  src/models/SubscriptionBillingPeriodicityDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.243
1
+ ## @randock/nameshift-api-client@0.0.244
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.243 --save
39
+ npm install @randock/nameshift-api-client@0.0.244 --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
- 2ce50bd036dc3f0a36007bb402d5703aa178f02acf5e1c585645648f3671ae74da54dd2eef6d6d7a134b13b4643a3d60
47
+ bee18c04b3f63c9b8063156ec027a0a9ea6b1fd9cbe0d43b346ba9487d12c7b9cf7c52387eef9abf4cc3cc33fb3aa53a
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { DomainSalesInformationDto, List200Response3 } from '../models/index';
13
+ import type { DomainSalesInformationDto, List200Response3, SortDto } from '../models/index';
14
14
  export interface DomainsPublicApiGetDomainSalesInformationRequest {
15
15
  domainName: string;
16
16
  includeStats?: boolean;
@@ -18,10 +18,10 @@ export interface DomainsPublicApiGetDomainSalesInformationRequest {
18
18
  installments?: number;
19
19
  }
20
20
  export interface DomainsPublicApiListRequest {
21
- filter?: object;
22
- page?: number;
23
21
  limit?: number;
24
- sortBy?: Array<string>;
22
+ sort?: Array<SortDto>;
23
+ filter?: string;
24
+ cursor?: string;
25
25
  }
26
26
  /**
27
27
  *
@@ -138,17 +138,17 @@ var DomainsPublicApi = /** @class */ (function (_super) {
138
138
  switch (_a.label) {
139
139
  case 0:
140
140
  queryParameters = {};
141
- if (requestParameters['filter'] != null) {
142
- queryParameters['filter'] = requestParameters['filter'];
143
- }
144
- if (requestParameters['page'] != null) {
145
- queryParameters['page'] = requestParameters['page'];
146
- }
147
141
  if (requestParameters['limit'] != null) {
148
142
  queryParameters['limit'] = requestParameters['limit'];
149
143
  }
150
- if (requestParameters['sortBy'] != null) {
151
- queryParameters['sortBy'] = requestParameters['sortBy'];
144
+ if (requestParameters['sort'] != null) {
145
+ queryParameters['sort'] = requestParameters['sort'];
146
+ }
147
+ if (requestParameters['filter'] != null) {
148
+ queryParameters['filter'] = requestParameters['filter'];
149
+ }
150
+ if (requestParameters['cursor'] != null) {
151
+ queryParameters['cursor'] = requestParameters['cursor'];
152
152
  }
153
153
  headerParameters = {};
154
154
  return [4 /*yield*/, this.request({
@@ -0,0 +1,38 @@
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 CursorBasedPageInfo
16
+ */
17
+ export interface CursorBasedPageInfo {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CursorBasedPageInfo
22
+ */
23
+ previous: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CursorBasedPageInfo
28
+ */
29
+ next: string | null;
30
+ }
31
+ /**
32
+ * Check if a given object implements the CursorBasedPageInfo interface.
33
+ */
34
+ export declare function instanceOfCursorBasedPageInfo(value: object): value is CursorBasedPageInfo;
35
+ export declare function CursorBasedPageInfoFromJSON(json: any): CursorBasedPageInfo;
36
+ export declare function CursorBasedPageInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CursorBasedPageInfo;
37
+ export declare function CursorBasedPageInfoToJSON(json: any): CursorBasedPageInfo;
38
+ export declare function CursorBasedPageInfoToJSONTyped(value?: CursorBasedPageInfo | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfCursorBasedPageInfo = instanceOfCursorBasedPageInfo;
17
+ exports.CursorBasedPageInfoFromJSON = CursorBasedPageInfoFromJSON;
18
+ exports.CursorBasedPageInfoFromJSONTyped = CursorBasedPageInfoFromJSONTyped;
19
+ exports.CursorBasedPageInfoToJSON = CursorBasedPageInfoToJSON;
20
+ exports.CursorBasedPageInfoToJSONTyped = CursorBasedPageInfoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CursorBasedPageInfo interface.
23
+ */
24
+ function instanceOfCursorBasedPageInfo(value) {
25
+ if (!('previous' in value) || value['previous'] === undefined)
26
+ return false;
27
+ if (!('next' in value) || value['next'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function CursorBasedPageInfoFromJSON(json) {
32
+ return CursorBasedPageInfoFromJSONTyped(json, false);
33
+ }
34
+ function CursorBasedPageInfoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'previous': json['previous'],
40
+ 'next': json['next'],
41
+ };
42
+ }
43
+ function CursorBasedPageInfoToJSON(json) {
44
+ return CursorBasedPageInfoToJSONTyped(json, false);
45
+ }
46
+ function CursorBasedPageInfoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'previous': value['previous'],
53
+ 'next': value['next'],
54
+ };
55
+ }
@@ -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
+ import type { CursorBasedPageInfo } from './CursorBasedPageInfo';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CursorBasedPaginationResponse
17
+ */
18
+ export interface CursorBasedPaginationResponse {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof CursorBasedPaginationResponse
23
+ */
24
+ limit: number;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof CursorBasedPaginationResponse
29
+ */
30
+ type: CursorBasedPaginationResponseTypeEnum;
31
+ /**
32
+ *
33
+ * @type {CursorBasedPageInfo}
34
+ * @memberof CursorBasedPaginationResponse
35
+ */
36
+ pagination: CursorBasedPageInfo;
37
+ }
38
+ /**
39
+ * @export
40
+ */
41
+ export declare const CursorBasedPaginationResponseTypeEnum: {
42
+ readonly CURSOR: "cursor";
43
+ };
44
+ export type CursorBasedPaginationResponseTypeEnum = typeof CursorBasedPaginationResponseTypeEnum[keyof typeof CursorBasedPaginationResponseTypeEnum];
45
+ /**
46
+ * Check if a given object implements the CursorBasedPaginationResponse interface.
47
+ */
48
+ export declare function instanceOfCursorBasedPaginationResponse(value: object): value is CursorBasedPaginationResponse;
49
+ export declare function CursorBasedPaginationResponseFromJSON(json: any): CursorBasedPaginationResponse;
50
+ export declare function CursorBasedPaginationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CursorBasedPaginationResponse;
51
+ export declare function CursorBasedPaginationResponseToJSON(json: any): CursorBasedPaginationResponse;
52
+ export declare function CursorBasedPaginationResponseToJSONTyped(value?: CursorBasedPaginationResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.CursorBasedPaginationResponseTypeEnum = void 0;
17
+ exports.instanceOfCursorBasedPaginationResponse = instanceOfCursorBasedPaginationResponse;
18
+ exports.CursorBasedPaginationResponseFromJSON = CursorBasedPaginationResponseFromJSON;
19
+ exports.CursorBasedPaginationResponseFromJSONTyped = CursorBasedPaginationResponseFromJSONTyped;
20
+ exports.CursorBasedPaginationResponseToJSON = CursorBasedPaginationResponseToJSON;
21
+ exports.CursorBasedPaginationResponseToJSONTyped = CursorBasedPaginationResponseToJSONTyped;
22
+ var CursorBasedPageInfo_1 = require("./CursorBasedPageInfo");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.CursorBasedPaginationResponseTypeEnum = {
27
+ CURSOR: 'cursor'
28
+ };
29
+ /**
30
+ * Check if a given object implements the CursorBasedPaginationResponse interface.
31
+ */
32
+ function instanceOfCursorBasedPaginationResponse(value) {
33
+ if (!('limit' in value) || value['limit'] === undefined)
34
+ return false;
35
+ if (!('type' in value) || value['type'] === undefined)
36
+ return false;
37
+ if (!('pagination' in value) || value['pagination'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function CursorBasedPaginationResponseFromJSON(json) {
42
+ return CursorBasedPaginationResponseFromJSONTyped(json, false);
43
+ }
44
+ function CursorBasedPaginationResponseFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'limit': json['limit'],
50
+ 'type': json['type'],
51
+ 'pagination': (0, CursorBasedPageInfo_1.CursorBasedPageInfoFromJSON)(json['pagination']),
52
+ };
53
+ }
54
+ function CursorBasedPaginationResponseToJSON(json) {
55
+ return CursorBasedPaginationResponseToJSONTyped(json, false);
56
+ }
57
+ function CursorBasedPaginationResponseToJSONTyped(value, ignoreDiscriminator) {
58
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'limit': value['limit'],
64
+ 'type': value['type'],
65
+ 'pagination': (0, CursorBasedPageInfo_1.CursorBasedPageInfoToJSON)(value['pagination']),
66
+ };
67
+ }
@@ -9,9 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { PaginateResponseLinks } from './PaginateResponseLinks';
12
+ import type { CursorBasedPageInfo } from './CursorBasedPageInfo';
13
13
  import type { PublicDomainDto } from './PublicDomainDto';
14
- import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
14
  /**
16
15
  *
17
16
  * @export
@@ -20,23 +19,36 @@ import type { PaginateResponseMeta } from './PaginateResponseMeta';
20
19
  export interface List200Response3 {
21
20
  /**
22
21
  *
23
- * @type {Array<PublicDomainDto>}
22
+ * @type {number}
24
23
  * @memberof List200Response3
25
24
  */
26
- data: Array<PublicDomainDto>;
25
+ limit: number;
27
26
  /**
28
27
  *
29
- * @type {PaginateResponseMeta}
28
+ * @type {string}
30
29
  * @memberof List200Response3
31
30
  */
32
- meta: PaginateResponseMeta;
31
+ type: List200Response3TypeEnum;
33
32
  /**
34
33
  *
35
- * @type {PaginateResponseLinks}
34
+ * @type {CursorBasedPageInfo}
36
35
  * @memberof List200Response3
37
36
  */
38
- links: PaginateResponseLinks;
37
+ pagination: CursorBasedPageInfo;
38
+ /**
39
+ *
40
+ * @type {Array<PublicDomainDto>}
41
+ * @memberof List200Response3
42
+ */
43
+ data?: Array<PublicDomainDto>;
39
44
  }
45
+ /**
46
+ * @export
47
+ */
48
+ export declare const List200Response3TypeEnum: {
49
+ readonly CURSOR: "cursor";
50
+ };
51
+ export type List200Response3TypeEnum = typeof List200Response3TypeEnum[keyof typeof List200Response3TypeEnum];
40
52
  /**
41
53
  * Check if a given object implements the List200Response3 interface.
42
54
  */
@@ -13,23 +13,29 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.List200Response3TypeEnum = void 0;
16
17
  exports.instanceOfList200Response3 = instanceOfList200Response3;
17
18
  exports.List200Response3FromJSON = List200Response3FromJSON;
18
19
  exports.List200Response3FromJSONTyped = List200Response3FromJSONTyped;
19
20
  exports.List200Response3ToJSON = List200Response3ToJSON;
20
21
  exports.List200Response3ToJSONTyped = List200Response3ToJSONTyped;
21
- var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
22
+ var CursorBasedPageInfo_1 = require("./CursorBasedPageInfo");
22
23
  var PublicDomainDto_1 = require("./PublicDomainDto");
23
- var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.List200Response3TypeEnum = {
28
+ CURSOR: 'cursor'
29
+ };
24
30
  /**
25
31
  * Check if a given object implements the List200Response3 interface.
26
32
  */
27
33
  function instanceOfList200Response3(value) {
28
- if (!('data' in value) || value['data'] === undefined)
34
+ if (!('limit' in value) || value['limit'] === undefined)
29
35
  return false;
30
- if (!('meta' in value) || value['meta'] === undefined)
36
+ if (!('type' in value) || value['type'] === undefined)
31
37
  return false;
32
- if (!('links' in value) || value['links'] === undefined)
38
+ if (!('pagination' in value) || value['pagination'] === undefined)
33
39
  return false;
34
40
  return true;
35
41
  }
@@ -41,9 +47,10 @@ function List200Response3FromJSONTyped(json, ignoreDiscriminator) {
41
47
  return json;
42
48
  }
43
49
  return {
44
- 'data': (json['data'].map(PublicDomainDto_1.PublicDomainDtoFromJSON)),
45
- 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
46
- 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
50
+ 'limit': json['limit'],
51
+ 'type': json['type'],
52
+ 'pagination': (0, CursorBasedPageInfo_1.CursorBasedPageInfoFromJSON)(json['pagination']),
53
+ 'data': json['data'] == null ? undefined : (json['data'].map(PublicDomainDto_1.PublicDomainDtoFromJSON)),
47
54
  };
48
55
  }
49
56
  function List200Response3ToJSON(json) {
@@ -55,8 +62,9 @@ function List200Response3ToJSONTyped(value, ignoreDiscriminator) {
55
62
  return value;
56
63
  }
57
64
  return {
58
- 'data': (value['data'].map(PublicDomainDto_1.PublicDomainDtoToJSON)),
59
- 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
60
- 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
65
+ 'limit': value['limit'],
66
+ 'type': value['type'],
67
+ 'pagination': (0, CursorBasedPageInfo_1.CursorBasedPageInfoToJSON)(value['pagination']),
68
+ 'data': value['data'] == null ? undefined : (value['data'].map(PublicDomainDto_1.PublicDomainDtoToJSON)),
61
69
  };
62
70
  }
@@ -0,0 +1,38 @@
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 PageBasedPageInfo
16
+ */
17
+ export interface PageBasedPageInfo {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof PageBasedPageInfo
22
+ */
23
+ currentPage: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof PageBasedPageInfo
28
+ */
29
+ totalPages: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PageBasedPageInfo interface.
33
+ */
34
+ export declare function instanceOfPageBasedPageInfo(value: object): value is PageBasedPageInfo;
35
+ export declare function PageBasedPageInfoFromJSON(json: any): PageBasedPageInfo;
36
+ export declare function PageBasedPageInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageBasedPageInfo;
37
+ export declare function PageBasedPageInfoToJSON(json: any): PageBasedPageInfo;
38
+ export declare function PageBasedPageInfoToJSONTyped(value?: PageBasedPageInfo | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfPageBasedPageInfo = instanceOfPageBasedPageInfo;
17
+ exports.PageBasedPageInfoFromJSON = PageBasedPageInfoFromJSON;
18
+ exports.PageBasedPageInfoFromJSONTyped = PageBasedPageInfoFromJSONTyped;
19
+ exports.PageBasedPageInfoToJSON = PageBasedPageInfoToJSON;
20
+ exports.PageBasedPageInfoToJSONTyped = PageBasedPageInfoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PageBasedPageInfo interface.
23
+ */
24
+ function instanceOfPageBasedPageInfo(value) {
25
+ if (!('currentPage' in value) || value['currentPage'] === undefined)
26
+ return false;
27
+ if (!('totalPages' in value) || value['totalPages'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function PageBasedPageInfoFromJSON(json) {
32
+ return PageBasedPageInfoFromJSONTyped(json, false);
33
+ }
34
+ function PageBasedPageInfoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'currentPage': json['currentPage'],
40
+ 'totalPages': json['totalPages'],
41
+ };
42
+ }
43
+ function PageBasedPageInfoToJSON(json) {
44
+ return PageBasedPageInfoToJSONTyped(json, false);
45
+ }
46
+ function PageBasedPageInfoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'currentPage': value['currentPage'],
53
+ 'totalPages': value['totalPages'],
54
+ };
55
+ }
@@ -0,0 +1,64 @@
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
+ import type { PageBasedPageInfo } from './PageBasedPageInfo';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PageBasedPaginationResponse
17
+ */
18
+ export interface PageBasedPaginationResponse {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof PageBasedPaginationResponse
23
+ */
24
+ limit: number;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PageBasedPaginationResponse
29
+ */
30
+ type: PageBasedPaginationResponseTypeEnum;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof PageBasedPaginationResponse
35
+ */
36
+ total: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof PageBasedPaginationResponse
41
+ */
42
+ pages: number;
43
+ /**
44
+ *
45
+ * @type {PageBasedPageInfo}
46
+ * @memberof PageBasedPaginationResponse
47
+ */
48
+ pagination: PageBasedPageInfo;
49
+ }
50
+ /**
51
+ * @export
52
+ */
53
+ export declare const PageBasedPaginationResponseTypeEnum: {
54
+ readonly PAGE: "page";
55
+ };
56
+ export type PageBasedPaginationResponseTypeEnum = typeof PageBasedPaginationResponseTypeEnum[keyof typeof PageBasedPaginationResponseTypeEnum];
57
+ /**
58
+ * Check if a given object implements the PageBasedPaginationResponse interface.
59
+ */
60
+ export declare function instanceOfPageBasedPaginationResponse(value: object): value is PageBasedPaginationResponse;
61
+ export declare function PageBasedPaginationResponseFromJSON(json: any): PageBasedPaginationResponse;
62
+ export declare function PageBasedPaginationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageBasedPaginationResponse;
63
+ export declare function PageBasedPaginationResponseToJSON(json: any): PageBasedPaginationResponse;
64
+ export declare function PageBasedPaginationResponseToJSONTyped(value?: PageBasedPaginationResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,75 @@
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.PageBasedPaginationResponseTypeEnum = void 0;
17
+ exports.instanceOfPageBasedPaginationResponse = instanceOfPageBasedPaginationResponse;
18
+ exports.PageBasedPaginationResponseFromJSON = PageBasedPaginationResponseFromJSON;
19
+ exports.PageBasedPaginationResponseFromJSONTyped = PageBasedPaginationResponseFromJSONTyped;
20
+ exports.PageBasedPaginationResponseToJSON = PageBasedPaginationResponseToJSON;
21
+ exports.PageBasedPaginationResponseToJSONTyped = PageBasedPaginationResponseToJSONTyped;
22
+ var PageBasedPageInfo_1 = require("./PageBasedPageInfo");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.PageBasedPaginationResponseTypeEnum = {
27
+ PAGE: 'page'
28
+ };
29
+ /**
30
+ * Check if a given object implements the PageBasedPaginationResponse interface.
31
+ */
32
+ function instanceOfPageBasedPaginationResponse(value) {
33
+ if (!('limit' in value) || value['limit'] === undefined)
34
+ return false;
35
+ if (!('type' in value) || value['type'] === undefined)
36
+ return false;
37
+ if (!('total' in value) || value['total'] === undefined)
38
+ return false;
39
+ if (!('pages' in value) || value['pages'] === undefined)
40
+ return false;
41
+ if (!('pagination' in value) || value['pagination'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function PageBasedPaginationResponseFromJSON(json) {
46
+ return PageBasedPaginationResponseFromJSONTyped(json, false);
47
+ }
48
+ function PageBasedPaginationResponseFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'limit': json['limit'],
54
+ 'type': json['type'],
55
+ 'total': json['total'],
56
+ 'pages': json['pages'],
57
+ 'pagination': (0, PageBasedPageInfo_1.PageBasedPageInfoFromJSON)(json['pagination']),
58
+ };
59
+ }
60
+ function PageBasedPaginationResponseToJSON(json) {
61
+ return PageBasedPaginationResponseToJSONTyped(json, false);
62
+ }
63
+ function PageBasedPaginationResponseToJSONTyped(value, ignoreDiscriminator) {
64
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'limit': value['limit'],
70
+ 'type': value['type'],
71
+ 'total': value['total'],
72
+ 'pages': value['pages'],
73
+ 'pagination': (0, PageBasedPageInfo_1.PageBasedPageInfoToJSON)(value['pagination']),
74
+ };
75
+ }