@randock/nameshift-api-client 0.0.242 → 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@1.0
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@1.0 --save
39
+ npm install @randock/nameshift-api-client@0.0.244 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,3 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
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,19 +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>;
25
- }
26
- export interface DomainsPublicApiPublicDomainControllerGetCaddyRequest {
27
- domain: string;
28
- }
29
- export interface DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest {
30
- domainName: string;
31
- }
32
- export interface DomainsPublicApiPublicDomainControllerGetSidnRequest {
33
- domain: string;
22
+ sort?: Array<SortDto>;
23
+ filter?: string;
24
+ cursor?: string;
34
25
  }
35
26
  /**
36
27
  *
@@ -52,22 +43,4 @@ export declare class DomainsPublicApi extends runtime.BaseAPI {
52
43
  *
53
44
  */
54
45
  list(requestParameters?: DomainsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response3>;
55
- /**
56
- */
57
- publicDomainControllerGetCaddyRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetCaddyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
58
- /**
59
- */
60
- publicDomainControllerGetCaddy(requestParameters: DomainsPublicApiPublicDomainControllerGetCaddyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
61
- /**
62
- */
63
- publicDomainControllerGetDomainIdentifierRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
64
- /**
65
- */
66
- publicDomainControllerGetDomainIdentifier(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
67
- /**
68
- */
69
- publicDomainControllerGetSidnRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetSidnRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
70
- /**
71
- */
72
- publicDomainControllerGetSidn(requestParameters: DomainsPublicApiPublicDomainControllerGetSidnRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
73
46
  }
@@ -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({
@@ -182,134 +182,6 @@ var DomainsPublicApi = /** @class */ (function (_super) {
182
182
  });
183
183
  });
184
184
  };
185
- /**
186
- */
187
- DomainsPublicApi.prototype.publicDomainControllerGetCaddyRaw = function (requestParameters, initOverrides) {
188
- return __awaiter(this, void 0, void 0, function () {
189
- var queryParameters, headerParameters, response;
190
- return __generator(this, function (_a) {
191
- switch (_a.label) {
192
- case 0:
193
- if (requestParameters['domain'] == null) {
194
- throw new runtime.RequiredError('domain', 'Required parameter "domain" was null or undefined when calling publicDomainControllerGetCaddy().');
195
- }
196
- queryParameters = {};
197
- if (requestParameters['domain'] != null) {
198
- queryParameters['domain'] = requestParameters['domain'];
199
- }
200
- headerParameters = {};
201
- return [4 /*yield*/, this.request({
202
- path: "/caddy",
203
- method: 'GET',
204
- headers: headerParameters,
205
- query: queryParameters,
206
- }, initOverrides)];
207
- case 1:
208
- response = _a.sent();
209
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
210
- }
211
- });
212
- });
213
- };
214
- /**
215
- */
216
- DomainsPublicApi.prototype.publicDomainControllerGetCaddy = function (requestParameters, initOverrides) {
217
- return __awaiter(this, void 0, void 0, function () {
218
- return __generator(this, function (_a) {
219
- switch (_a.label) {
220
- case 0: return [4 /*yield*/, this.publicDomainControllerGetCaddyRaw(requestParameters, initOverrides)];
221
- case 1:
222
- _a.sent();
223
- return [2 /*return*/];
224
- }
225
- });
226
- });
227
- };
228
- /**
229
- */
230
- DomainsPublicApi.prototype.publicDomainControllerGetDomainIdentifierRaw = function (requestParameters, initOverrides) {
231
- return __awaiter(this, void 0, void 0, function () {
232
- var queryParameters, headerParameters, response;
233
- return __generator(this, function (_a) {
234
- switch (_a.label) {
235
- case 0:
236
- if (requestParameters['domainName'] == null) {
237
- throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling publicDomainControllerGetDomainIdentifier().');
238
- }
239
- queryParameters = {};
240
- headerParameters = {};
241
- return [4 /*yield*/, this.request({
242
- path: "/domains/by-name/{domainName}/identifier".replace("{".concat("domainName", "}"), encodeURIComponent(String(requestParameters['domainName']))),
243
- method: 'GET',
244
- headers: headerParameters,
245
- query: queryParameters,
246
- }, initOverrides)];
247
- case 1:
248
- response = _a.sent();
249
- return [2 /*return*/, new runtime.JSONApiResponse(response)];
250
- }
251
- });
252
- });
253
- };
254
- /**
255
- */
256
- DomainsPublicApi.prototype.publicDomainControllerGetDomainIdentifier = function (requestParameters, initOverrides) {
257
- return __awaiter(this, void 0, void 0, function () {
258
- var response;
259
- return __generator(this, function (_a) {
260
- switch (_a.label) {
261
- case 0: return [4 /*yield*/, this.publicDomainControllerGetDomainIdentifierRaw(requestParameters, initOverrides)];
262
- case 1:
263
- response = _a.sent();
264
- return [4 /*yield*/, response.value()];
265
- case 2: return [2 /*return*/, _a.sent()];
266
- }
267
- });
268
- });
269
- };
270
- /**
271
- */
272
- DomainsPublicApi.prototype.publicDomainControllerGetSidnRaw = function (requestParameters, initOverrides) {
273
- return __awaiter(this, void 0, void 0, function () {
274
- var queryParameters, headerParameters, response;
275
- return __generator(this, function (_a) {
276
- switch (_a.label) {
277
- case 0:
278
- if (requestParameters['domain'] == null) {
279
- throw new runtime.RequiredError('domain', 'Required parameter "domain" was null or undefined when calling publicDomainControllerGetSidn().');
280
- }
281
- queryParameters = {};
282
- if (requestParameters['domain'] != null) {
283
- queryParameters['domain'] = requestParameters['domain'];
284
- }
285
- headerParameters = {};
286
- return [4 /*yield*/, this.request({
287
- path: "/sidn",
288
- method: 'GET',
289
- headers: headerParameters,
290
- query: queryParameters,
291
- }, initOverrides)];
292
- case 1:
293
- response = _a.sent();
294
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
295
- }
296
- });
297
- });
298
- };
299
- /**
300
- */
301
- DomainsPublicApi.prototype.publicDomainControllerGetSidn = function (requestParameters, initOverrides) {
302
- return __awaiter(this, void 0, void 0, function () {
303
- return __generator(this, function (_a) {
304
- switch (_a.label) {
305
- case 0: return [4 /*yield*/, this.publicDomainControllerGetSidnRaw(requestParameters, initOverrides)];
306
- case 1:
307
- _a.sent();
308
- return [2 /*return*/];
309
- }
310
- });
311
- });
312
- };
313
185
  return DomainsPublicApi;
314
186
  }(runtime.BaseAPI));
315
187
  exports.DomainsPublicApi = DomainsPublicApi;
@@ -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;