@randock/nameshift-api-client 0.0.243 → 0.0.245
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 +8 -1
- package/README.md +3 -3
- package/dist/apis/DomainsPublicApi.d.ts +4 -4
- package/dist/apis/DomainsPublicApi.js +8 -8
- package/dist/apis/SalesPublicApi.d.ts +29 -0
- package/dist/apis/SalesPublicApi.js +125 -0
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- 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/PublicSaleDto.d.ts +50 -0
- package/dist/models/PublicSaleDto.js +63 -0
- package/dist/models/PublicSalesDto.d.ts +33 -0
- package/dist/models/PublicSalesDto.js +52 -0
- package/dist/models/SortDto.d.ts +52 -0
- package/dist/models/SortDto.js +65 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/apis/DomainsPublicApi.ts +14 -11
- package/src/apis/SalesPublicApi.ts +64 -0
- package/src/apis/index.ts +1 -1
- 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/PublicSaleDto.ts +93 -0
- package/src/models/PublicSalesDto.ts +74 -0
- package/src/models/SortDto.ts +94 -0
- package/src/models/index.ts +7 -0
- package/dist/apis/DefaultApi.d.ts +0 -43
- package/dist/apis/DefaultApi.js +0 -187
- package/src/apis/DefaultApi.ts +0 -143
package/.openapi-generator/FILES
CHANGED
|
@@ -10,13 +10,13 @@ src/apis/AirwallexPublicApi.ts
|
|
|
10
10
|
src/apis/BankAccountsApi.ts
|
|
11
11
|
src/apis/BuyersApi.ts
|
|
12
12
|
src/apis/BuyersPublicApi.ts
|
|
13
|
-
src/apis/DefaultApi.ts
|
|
14
13
|
src/apis/DomainsApi.ts
|
|
15
14
|
src/apis/DomainsPublicApi.ts
|
|
16
15
|
src/apis/InvoicesApi.ts
|
|
17
16
|
src/apis/LeadsApi.ts
|
|
18
17
|
src/apis/LeadsPublicApi.ts
|
|
19
18
|
src/apis/OrdersPublicApi.ts
|
|
19
|
+
src/apis/SalesPublicApi.ts
|
|
20
20
|
src/apis/StripePublicApi.ts
|
|
21
21
|
src/apis/SubscriptionsApi.ts
|
|
22
22
|
src/apis/SubscriptionsPublicApi.ts
|
|
@@ -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
|
|
@@ -191,6 +195,8 @@ src/models/PublicDomainDtoSeo.ts
|
|
|
191
195
|
src/models/PublicDomainDtoSeoMoz.ts
|
|
192
196
|
src/models/PublicLeadBuyerDto.ts
|
|
193
197
|
src/models/PublicLeadDto.ts
|
|
198
|
+
src/models/PublicSaleDto.ts
|
|
199
|
+
src/models/PublicSalesDto.ts
|
|
194
200
|
src/models/PutBuyerLeadOfferInput.ts
|
|
195
201
|
src/models/PutLeadOfferInput.ts
|
|
196
202
|
src/models/RegisterAccountInput.ts
|
|
@@ -215,6 +221,7 @@ src/models/SepaBankAccountDetails.ts
|
|
|
215
221
|
src/models/SetDomainTransferConfirmationInput.ts
|
|
216
222
|
src/models/SetNewPasswordInput.ts
|
|
217
223
|
src/models/SetPayoutProviderInput.ts
|
|
224
|
+
src/models/SortDto.ts
|
|
218
225
|
src/models/StoreBuyerLocaleInput.ts
|
|
219
226
|
src/models/StoreUserLocaleInput.ts
|
|
220
227
|
src/models/SubscriptionBillingPeriodicityDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.245
|
|
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.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.245 --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
|
-
|
|
47
|
+
23eb6372358899230dce767ee5a7b219c55a58ea5b5d73a71f61efc53fa56b9ca3ec4b19362c4eb3bdb5e4a6d3cd2f2c
|
|
@@ -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
|
-
|
|
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['
|
|
151
|
-
queryParameters['
|
|
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,29 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { PublicSalesDto } from '../models/index';
|
|
14
|
+
export interface SalesPublicApiGetSalesRequest {
|
|
15
|
+
tlds?: Array<string>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class SalesPublicApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Get latest sales
|
|
23
|
+
*/
|
|
24
|
+
getSalesRaw(requestParameters: SalesPublicApiGetSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicSalesDto>>;
|
|
25
|
+
/**
|
|
26
|
+
* Get latest sales
|
|
27
|
+
*/
|
|
28
|
+
getSales(requestParameters?: SalesPublicApiGetSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicSalesDto>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.SalesPublicApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var SalesPublicApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(SalesPublicApi, _super);
|
|
75
|
+
function SalesPublicApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Get latest sales
|
|
80
|
+
*/
|
|
81
|
+
SalesPublicApi.prototype.getSalesRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
queryParameters = {};
|
|
88
|
+
if (requestParameters['tlds'] != null) {
|
|
89
|
+
queryParameters['tlds'] = requestParameters['tlds'];
|
|
90
|
+
}
|
|
91
|
+
headerParameters = {};
|
|
92
|
+
return [4 /*yield*/, this.request({
|
|
93
|
+
path: "/sales",
|
|
94
|
+
method: 'GET',
|
|
95
|
+
headers: headerParameters,
|
|
96
|
+
query: queryParameters,
|
|
97
|
+
}, initOverrides)];
|
|
98
|
+
case 1:
|
|
99
|
+
response = _a.sent();
|
|
100
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PublicSalesDtoFromJSON)(jsonValue); })];
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Get latest sales
|
|
107
|
+
*/
|
|
108
|
+
SalesPublicApi.prototype.getSales = function () {
|
|
109
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
110
|
+
var response;
|
|
111
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
switch (_a.label) {
|
|
114
|
+
case 0: return [4 /*yield*/, this.getSalesRaw(requestParameters, initOverrides)];
|
|
115
|
+
case 1:
|
|
116
|
+
response = _a.sent();
|
|
117
|
+
return [4 /*yield*/, response.value()];
|
|
118
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
return SalesPublicApi;
|
|
124
|
+
}(runtime.BaseAPI));
|
|
125
|
+
exports.SalesPublicApi = SalesPublicApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -5,13 +5,13 @@ export * from './AirwallexPublicApi';
|
|
|
5
5
|
export * from './BankAccountsApi';
|
|
6
6
|
export * from './BuyersApi';
|
|
7
7
|
export * from './BuyersPublicApi';
|
|
8
|
-
export * from './DefaultApi';
|
|
9
8
|
export * from './DomainsApi';
|
|
10
9
|
export * from './DomainsPublicApi';
|
|
11
10
|
export * from './InvoicesApi';
|
|
12
11
|
export * from './LeadsApi';
|
|
13
12
|
export * from './LeadsPublicApi';
|
|
14
13
|
export * from './OrdersPublicApi';
|
|
14
|
+
export * from './SalesPublicApi';
|
|
15
15
|
export * from './StripePublicApi';
|
|
16
16
|
export * from './SubscriptionsApi';
|
|
17
17
|
export * from './SubscriptionsPublicApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -23,13 +23,13 @@ __exportStar(require("./AirwallexPublicApi"), exports);
|
|
|
23
23
|
__exportStar(require("./BankAccountsApi"), exports);
|
|
24
24
|
__exportStar(require("./BuyersApi"), exports);
|
|
25
25
|
__exportStar(require("./BuyersPublicApi"), exports);
|
|
26
|
-
__exportStar(require("./DefaultApi"), exports);
|
|
27
26
|
__exportStar(require("./DomainsApi"), exports);
|
|
28
27
|
__exportStar(require("./DomainsPublicApi"), exports);
|
|
29
28
|
__exportStar(require("./InvoicesApi"), exports);
|
|
30
29
|
__exportStar(require("./LeadsApi"), exports);
|
|
31
30
|
__exportStar(require("./LeadsPublicApi"), exports);
|
|
32
31
|
__exportStar(require("./OrdersPublicApi"), exports);
|
|
32
|
+
__exportStar(require("./SalesPublicApi"), exports);
|
|
33
33
|
__exportStar(require("./StripePublicApi"), exports);
|
|
34
34
|
__exportStar(require("./SubscriptionsApi"), exports);
|
|
35
35
|
__exportStar(require("./SubscriptionsPublicApi"), exports);
|
|
@@ -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 {
|
|
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 {
|
|
22
|
+
* @type {number}
|
|
24
23
|
* @memberof List200Response3
|
|
25
24
|
*/
|
|
26
|
-
|
|
25
|
+
limit: number;
|
|
27
26
|
/**
|
|
28
27
|
*
|
|
29
|
-
* @type {
|
|
28
|
+
* @type {string}
|
|
30
29
|
* @memberof List200Response3
|
|
31
30
|
*/
|
|
32
|
-
|
|
31
|
+
type: List200Response3TypeEnum;
|
|
33
32
|
/**
|
|
34
33
|
*
|
|
35
|
-
* @type {
|
|
34
|
+
* @type {CursorBasedPageInfo}
|
|
36
35
|
* @memberof List200Response3
|
|
37
36
|
*/
|
|
38
|
-
|
|
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
|
|
22
|
+
var CursorBasedPageInfo_1 = require("./CursorBasedPageInfo");
|
|
22
23
|
var PublicDomainDto_1 = require("./PublicDomainDto");
|
|
23
|
-
|
|
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 (!('
|
|
34
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
29
35
|
return false;
|
|
30
|
-
if (!('
|
|
36
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
31
37
|
return false;
|
|
32
|
-
if (!('
|
|
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
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
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
|
-
'
|
|
59
|
-
'
|
|
60
|
-
'
|
|
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
|
}
|