@randock/nameshift-api-client 0.0.184 → 0.0.185
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 +6 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +27 -1
- package/dist/apis/AdminApi.js +119 -0
- package/dist/apis/DomainsApi.d.ts +3 -3
- package/dist/apis/DomainsApi.js +1 -1
- package/dist/apis/TasksApi.d.ts +3 -3
- package/dist/apis/TasksApi.js +1 -1
- package/dist/models/ChangeSubscriptionStatusInput.d.ts +42 -0
- package/dist/models/ChangeSubscriptionStatusInput.js +61 -0
- package/dist/models/GetAllSubscriptions200Response.d.ts +47 -0
- package/dist/models/GetAllSubscriptions200Response.js +62 -0
- package/dist/models/List200Response1.d.ts +3 -3
- package/dist/models/List200Response1.js +3 -3
- package/dist/models/List200Response2.d.ts +3 -3
- package/dist/models/List200Response2.js +3 -3
- package/dist/models/SubscriptionListItemDto.d.ts +102 -0
- package/dist/models/SubscriptionListItemDto.js +104 -0
- package/dist/models/SubscriptionListItemDtoBuyerInformation.d.ts +64 -0
- package/dist/models/SubscriptionListItemDtoBuyerInformation.js +73 -0
- package/dist/models/SubscriptionListItemDtoDomainInformation.d.ts +44 -0
- package/dist/models/SubscriptionListItemDtoDomainInformation.js +59 -0
- package/dist/models/SubscriptionListItemDtoSellerAccount.d.ts +50 -0
- package/dist/models/SubscriptionListItemDtoSellerAccount.js +63 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +118 -0
- package/src/apis/DomainsApi.ts +6 -6
- package/src/apis/TasksApi.ts +6 -6
- package/src/models/ChangeSubscriptionStatusInput.ts +79 -0
- package/src/models/GetAllSubscriptions200Response.ts +106 -0
- package/src/models/List200Response1.ts +10 -10
- package/src/models/List200Response2.ts +10 -10
- package/src/models/SubscriptionListItemDto.ts +189 -0
- package/src/models/SubscriptionListItemDtoBuyerInformation.ts +126 -0
- package/src/models/SubscriptionListItemDtoDomainInformation.ts +84 -0
- package/src/models/SubscriptionListItemDtoSellerAccount.ts +93 -0
- package/src/models/index.ts +6 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -50,6 +50,7 @@ src/models/BuyerLeadListItemDomainDto.ts
|
|
|
50
50
|
src/models/BuyerLeadListItemDto.ts
|
|
51
51
|
src/models/BuyerSecurityUserDto.ts
|
|
52
52
|
src/models/ChangeOrderStatusInput.ts
|
|
53
|
+
src/models/ChangeSubscriptionStatusInput.ts
|
|
53
54
|
src/models/ChartDataPoint.ts
|
|
54
55
|
src/models/CompanyInformationDto.ts
|
|
55
56
|
src/models/CompanyTaxIdDto.ts
|
|
@@ -90,6 +91,7 @@ src/models/GetAllDomainTransfers200Response.ts
|
|
|
90
91
|
src/models/GetAllInvoices200Response.ts
|
|
91
92
|
src/models/GetAllOrders200Response.ts
|
|
92
93
|
src/models/GetAllOwnedDomains200Response.ts
|
|
94
|
+
src/models/GetAllSubscriptions200Response.ts
|
|
93
95
|
src/models/GetBuyerLeads200Response.ts
|
|
94
96
|
src/models/GetBuyerTransfers200Response.ts
|
|
95
97
|
src/models/HttpException.ts
|
|
@@ -166,6 +168,10 @@ src/models/SubscriptionCompanyInfoDto.ts
|
|
|
166
168
|
src/models/SubscriptionCompanyTaxIdDto.ts
|
|
167
169
|
src/models/SubscriptionDomainDto.ts
|
|
168
170
|
src/models/SubscriptionDto.ts
|
|
171
|
+
src/models/SubscriptionListItemDto.ts
|
|
172
|
+
src/models/SubscriptionListItemDtoBuyerInformation.ts
|
|
173
|
+
src/models/SubscriptionListItemDtoDomainInformation.ts
|
|
174
|
+
src/models/SubscriptionListItemDtoSellerAccount.ts
|
|
169
175
|
src/models/TaskListDomainDto.ts
|
|
170
176
|
src/models/TaskListDomainTransferDto.ts
|
|
171
177
|
src/models/TaskListLeadDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.185
|
|
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.185 --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
|
+
49d58f68f3613dfe496592a253361942b4b63730ec97236684c936d50f1666b63a6cc77af8a0e0daa80bdcc130c58523
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountSettingsDto, AdminAccountSettingsInput, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, ListAccounts200Response, ListDomains200Response } from '../models/index';
|
|
13
|
+
import type { AccountSettingsDto, AdminAccountSettingsInput, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, ListAccounts200Response, ListDomains200Response } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
15
15
|
filter?: object;
|
|
16
16
|
page?: number;
|
|
@@ -21,6 +21,10 @@ export interface AdminApiChangeOrderStatusRequest {
|
|
|
21
21
|
orderId: string;
|
|
22
22
|
changeOrderStatusInput: ChangeOrderStatusInput;
|
|
23
23
|
}
|
|
24
|
+
export interface AdminApiChangeSubscriptionStatusRequest {
|
|
25
|
+
subscriptionId: string;
|
|
26
|
+
changeSubscriptionStatusInput: ChangeSubscriptionStatusInput;
|
|
27
|
+
}
|
|
24
28
|
export interface AdminApiDownloadInvoiceRequest {
|
|
25
29
|
invoiceId: string;
|
|
26
30
|
}
|
|
@@ -48,6 +52,12 @@ export interface AdminApiGetAllOwnedDomainsRequest {
|
|
|
48
52
|
limit?: number;
|
|
49
53
|
sortBy?: Array<string>;
|
|
50
54
|
}
|
|
55
|
+
export interface AdminApiGetAllSubscriptionsRequest {
|
|
56
|
+
filter?: object;
|
|
57
|
+
page?: number;
|
|
58
|
+
limit?: number;
|
|
59
|
+
sortBy?: Array<string>;
|
|
60
|
+
}
|
|
51
61
|
export interface AdminApiListAccountsRequest {
|
|
52
62
|
filter?: object;
|
|
53
63
|
page?: number;
|
|
@@ -99,6 +109,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
99
109
|
*
|
|
100
110
|
*/
|
|
101
111
|
changeOrderStatus(requestParameters: AdminApiChangeOrderStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
changeSubscriptionStatusRaw(requestParameters: AdminApiChangeSubscriptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
changeSubscriptionStatus(requestParameters: AdminApiChangeSubscriptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
102
120
|
/**
|
|
103
121
|
*
|
|
104
122
|
*/
|
|
@@ -147,6 +165,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
147
165
|
*
|
|
148
166
|
*/
|
|
149
167
|
getAllOwnedDomains(requestParameters?: AdminApiGetAllOwnedDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllOwnedDomains200Response>;
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
*/
|
|
171
|
+
getAllSubscriptionsRaw(requestParameters: AdminApiGetAllSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllSubscriptions200Response>>;
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
*/
|
|
175
|
+
getAllSubscriptions(requestParameters?: AdminApiGetAllSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllSubscriptions200Response>;
|
|
150
176
|
/**
|
|
151
177
|
*
|
|
152
178
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -194,6 +194,62 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
194
194
|
});
|
|
195
195
|
});
|
|
196
196
|
};
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
*/
|
|
200
|
+
AdminApi.prototype.changeSubscriptionStatusRaw = function (requestParameters, initOverrides) {
|
|
201
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
202
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
203
|
+
return __generator(this, function (_a) {
|
|
204
|
+
switch (_a.label) {
|
|
205
|
+
case 0:
|
|
206
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
207
|
+
throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling changeSubscriptionStatus().');
|
|
208
|
+
}
|
|
209
|
+
if (requestParameters['changeSubscriptionStatusInput'] == null) {
|
|
210
|
+
throw new runtime.RequiredError('changeSubscriptionStatusInput', 'Required parameter "changeSubscriptionStatusInput" was null or undefined when calling changeSubscriptionStatus().');
|
|
211
|
+
}
|
|
212
|
+
queryParameters = {};
|
|
213
|
+
headerParameters = {};
|
|
214
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
215
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
216
|
+
token = this.configuration.accessToken;
|
|
217
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
218
|
+
case 1:
|
|
219
|
+
tokenString = _a.sent();
|
|
220
|
+
if (tokenString) {
|
|
221
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
222
|
+
}
|
|
223
|
+
_a.label = 2;
|
|
224
|
+
case 2: return [4 /*yield*/, this.request({
|
|
225
|
+
path: "/admin/subscriptions/{subscriptionId}/status".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
226
|
+
method: 'PATCH',
|
|
227
|
+
headers: headerParameters,
|
|
228
|
+
query: queryParameters,
|
|
229
|
+
body: (0, index_1.ChangeSubscriptionStatusInputToJSON)(requestParameters['changeSubscriptionStatusInput']),
|
|
230
|
+
}, initOverrides)];
|
|
231
|
+
case 3:
|
|
232
|
+
response = _a.sent();
|
|
233
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
*/
|
|
241
|
+
AdminApi.prototype.changeSubscriptionStatus = function (requestParameters, initOverrides) {
|
|
242
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
243
|
+
return __generator(this, function (_a) {
|
|
244
|
+
switch (_a.label) {
|
|
245
|
+
case 0: return [4 /*yield*/, this.changeSubscriptionStatusRaw(requestParameters, initOverrides)];
|
|
246
|
+
case 1:
|
|
247
|
+
_a.sent();
|
|
248
|
+
return [2 /*return*/];
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
};
|
|
197
253
|
/**
|
|
198
254
|
*
|
|
199
255
|
*/
|
|
@@ -542,6 +598,69 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
542
598
|
});
|
|
543
599
|
});
|
|
544
600
|
};
|
|
601
|
+
/**
|
|
602
|
+
*
|
|
603
|
+
*/
|
|
604
|
+
AdminApi.prototype.getAllSubscriptionsRaw = function (requestParameters, initOverrides) {
|
|
605
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
606
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
607
|
+
return __generator(this, function (_a) {
|
|
608
|
+
switch (_a.label) {
|
|
609
|
+
case 0:
|
|
610
|
+
queryParameters = {};
|
|
611
|
+
if (requestParameters['filter'] != null) {
|
|
612
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
613
|
+
}
|
|
614
|
+
if (requestParameters['page'] != null) {
|
|
615
|
+
queryParameters['page'] = requestParameters['page'];
|
|
616
|
+
}
|
|
617
|
+
if (requestParameters['limit'] != null) {
|
|
618
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
619
|
+
}
|
|
620
|
+
if (requestParameters['sortBy'] != null) {
|
|
621
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
622
|
+
}
|
|
623
|
+
headerParameters = {};
|
|
624
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
625
|
+
token = this.configuration.accessToken;
|
|
626
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
627
|
+
case 1:
|
|
628
|
+
tokenString = _a.sent();
|
|
629
|
+
if (tokenString) {
|
|
630
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
631
|
+
}
|
|
632
|
+
_a.label = 2;
|
|
633
|
+
case 2: return [4 /*yield*/, this.request({
|
|
634
|
+
path: "/admin/subscriptions",
|
|
635
|
+
method: 'GET',
|
|
636
|
+
headers: headerParameters,
|
|
637
|
+
query: queryParameters,
|
|
638
|
+
}, initOverrides)];
|
|
639
|
+
case 3:
|
|
640
|
+
response = _a.sent();
|
|
641
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllSubscriptions200ResponseFromJSON)(jsonValue); })];
|
|
642
|
+
}
|
|
643
|
+
});
|
|
644
|
+
});
|
|
645
|
+
};
|
|
646
|
+
/**
|
|
647
|
+
*
|
|
648
|
+
*/
|
|
649
|
+
AdminApi.prototype.getAllSubscriptions = function () {
|
|
650
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
651
|
+
var response;
|
|
652
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
653
|
+
return __generator(this, function (_a) {
|
|
654
|
+
switch (_a.label) {
|
|
655
|
+
case 0: return [4 /*yield*/, this.getAllSubscriptionsRaw(requestParameters, initOverrides)];
|
|
656
|
+
case 1:
|
|
657
|
+
response = _a.sent();
|
|
658
|
+
return [4 /*yield*/, response.value()];
|
|
659
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
660
|
+
}
|
|
661
|
+
});
|
|
662
|
+
});
|
|
663
|
+
};
|
|
545
664
|
/**
|
|
546
665
|
*
|
|
547
666
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto,
|
|
13
|
+
import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput } from '../models/index';
|
|
14
14
|
export interface DomainsApiBatchImportRequest {
|
|
15
15
|
file?: Blob | null;
|
|
16
16
|
domains?: Array<string>;
|
|
@@ -143,11 +143,11 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
143
143
|
/**
|
|
144
144
|
*
|
|
145
145
|
*/
|
|
146
|
-
listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
146
|
+
listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response2>>;
|
|
147
147
|
/**
|
|
148
148
|
*
|
|
149
149
|
*/
|
|
150
|
-
list(requestParameters?: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
150
|
+
list(requestParameters?: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response2>;
|
|
151
151
|
/**
|
|
152
152
|
*
|
|
153
153
|
*/
|
package/dist/apis/DomainsApi.js
CHANGED
|
@@ -681,7 +681,7 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
681
681
|
}, initOverrides)];
|
|
682
682
|
case 3:
|
|
683
683
|
response = _a.sent();
|
|
684
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
684
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200Response2FromJSON)(jsonValue); })];
|
|
685
685
|
}
|
|
686
686
|
});
|
|
687
687
|
});
|
package/dist/apis/TasksApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
13
|
+
import type { List200Response1 } from '../models/index';
|
|
14
14
|
export interface TasksApiListRequest {
|
|
15
15
|
filter?: object;
|
|
16
16
|
page?: number;
|
|
@@ -24,9 +24,9 @@ export declare class TasksApi extends runtime.BaseAPI {
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
|
-
listRaw(requestParameters: TasksApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
27
|
+
listRaw(requestParameters: TasksApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response1>>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
list(requestParameters?: TasksApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
31
|
+
list(requestParameters?: TasksApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response1>;
|
|
32
32
|
}
|
package/dist/apis/TasksApi.js
CHANGED
|
@@ -115,7 +115,7 @@ var TasksApi = /** @class */ (function (_super) {
|
|
|
115
115
|
}, initOverrides)];
|
|
116
116
|
case 3:
|
|
117
117
|
response = _a.sent();
|
|
118
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
118
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200Response1FromJSON)(jsonValue); })];
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
});
|
|
@@ -0,0 +1,42 @@
|
|
|
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 ChangeSubscriptionStatusInput
|
|
16
|
+
*/
|
|
17
|
+
export interface ChangeSubscriptionStatusInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ChangeSubscriptionStatusInput
|
|
22
|
+
*/
|
|
23
|
+
status: ChangeSubscriptionStatusInputStatusEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const ChangeSubscriptionStatusInputStatusEnum: {
|
|
29
|
+
readonly DRAFT: "draft";
|
|
30
|
+
readonly ACTIVE: "active";
|
|
31
|
+
readonly PAUSED: "paused";
|
|
32
|
+
readonly CANCELLED: "cancelled";
|
|
33
|
+
};
|
|
34
|
+
export type ChangeSubscriptionStatusInputStatusEnum = typeof ChangeSubscriptionStatusInputStatusEnum[keyof typeof ChangeSubscriptionStatusInputStatusEnum];
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the ChangeSubscriptionStatusInput interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfChangeSubscriptionStatusInput(value: object): value is ChangeSubscriptionStatusInput;
|
|
39
|
+
export declare function ChangeSubscriptionStatusInputFromJSON(json: any): ChangeSubscriptionStatusInput;
|
|
40
|
+
export declare function ChangeSubscriptionStatusInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeSubscriptionStatusInput;
|
|
41
|
+
export declare function ChangeSubscriptionStatusInputToJSON(json: any): ChangeSubscriptionStatusInput;
|
|
42
|
+
export declare function ChangeSubscriptionStatusInputToJSONTyped(value?: ChangeSubscriptionStatusInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
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.ChangeSubscriptionStatusInputStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfChangeSubscriptionStatusInput = instanceOfChangeSubscriptionStatusInput;
|
|
18
|
+
exports.ChangeSubscriptionStatusInputFromJSON = ChangeSubscriptionStatusInputFromJSON;
|
|
19
|
+
exports.ChangeSubscriptionStatusInputFromJSONTyped = ChangeSubscriptionStatusInputFromJSONTyped;
|
|
20
|
+
exports.ChangeSubscriptionStatusInputToJSON = ChangeSubscriptionStatusInputToJSON;
|
|
21
|
+
exports.ChangeSubscriptionStatusInputToJSONTyped = ChangeSubscriptionStatusInputToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ChangeSubscriptionStatusInputStatusEnum = {
|
|
26
|
+
DRAFT: 'draft',
|
|
27
|
+
ACTIVE: 'active',
|
|
28
|
+
PAUSED: 'paused',
|
|
29
|
+
CANCELLED: 'cancelled'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ChangeSubscriptionStatusInput interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfChangeSubscriptionStatusInput(value) {
|
|
35
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function ChangeSubscriptionStatusInputFromJSON(json) {
|
|
40
|
+
return ChangeSubscriptionStatusInputFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ChangeSubscriptionStatusInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'status': json['status'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function ChangeSubscriptionStatusInputToJSON(json) {
|
|
51
|
+
return ChangeSubscriptionStatusInputToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ChangeSubscriptionStatusInputToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'status': value['status'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
+
import type { SubscriptionListItemDto } from './SubscriptionListItemDto';
|
|
14
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface GetAllSubscriptions200Response
|
|
19
|
+
*/
|
|
20
|
+
export interface GetAllSubscriptions200Response {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<SubscriptionListItemDto>}
|
|
24
|
+
* @memberof GetAllSubscriptions200Response
|
|
25
|
+
*/
|
|
26
|
+
data: Array<SubscriptionListItemDto>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {PaginateResponseMeta}
|
|
30
|
+
* @memberof GetAllSubscriptions200Response
|
|
31
|
+
*/
|
|
32
|
+
meta: PaginateResponseMeta;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {PaginateResponseLinks}
|
|
36
|
+
* @memberof GetAllSubscriptions200Response
|
|
37
|
+
*/
|
|
38
|
+
links: PaginateResponseLinks;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the GetAllSubscriptions200Response interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfGetAllSubscriptions200Response(value: object): value is GetAllSubscriptions200Response;
|
|
44
|
+
export declare function GetAllSubscriptions200ResponseFromJSON(json: any): GetAllSubscriptions200Response;
|
|
45
|
+
export declare function GetAllSubscriptions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllSubscriptions200Response;
|
|
46
|
+
export declare function GetAllSubscriptions200ResponseToJSON(json: any): GetAllSubscriptions200Response;
|
|
47
|
+
export declare function GetAllSubscriptions200ResponseToJSONTyped(value?: GetAllSubscriptions200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfGetAllSubscriptions200Response = instanceOfGetAllSubscriptions200Response;
|
|
17
|
+
exports.GetAllSubscriptions200ResponseFromJSON = GetAllSubscriptions200ResponseFromJSON;
|
|
18
|
+
exports.GetAllSubscriptions200ResponseFromJSONTyped = GetAllSubscriptions200ResponseFromJSONTyped;
|
|
19
|
+
exports.GetAllSubscriptions200ResponseToJSON = GetAllSubscriptions200ResponseToJSON;
|
|
20
|
+
exports.GetAllSubscriptions200ResponseToJSONTyped = GetAllSubscriptions200ResponseToJSONTyped;
|
|
21
|
+
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
22
|
+
var SubscriptionListItemDto_1 = require("./SubscriptionListItemDto");
|
|
23
|
+
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the GetAllSubscriptions200Response interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfGetAllSubscriptions200Response(value) {
|
|
28
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('links' in value) || value['links'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function GetAllSubscriptions200ResponseFromJSON(json) {
|
|
37
|
+
return GetAllSubscriptions200ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function GetAllSubscriptions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'data': (json['data'].map(SubscriptionListItemDto_1.SubscriptionListItemDtoFromJSON)),
|
|
45
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
46
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function GetAllSubscriptions200ResponseToJSON(json) {
|
|
50
|
+
return GetAllSubscriptions200ResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function GetAllSubscriptions200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'data': (value['data'].map(SubscriptionListItemDto_1.SubscriptionListItemDtoToJSON)),
|
|
59
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
60
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
-
import type {
|
|
13
|
+
import type { IntersectionTaskListTaskDto } from './IntersectionTaskListTaskDto';
|
|
14
14
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -20,10 +20,10 @@ import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
|
20
20
|
export interface List200Response1 {
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
|
-
* @type {Array<
|
|
23
|
+
* @type {Array<IntersectionTaskListTaskDto>}
|
|
24
24
|
* @memberof List200Response1
|
|
25
25
|
*/
|
|
26
|
-
data: Array<
|
|
26
|
+
data: Array<IntersectionTaskListTaskDto>;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
* @type {PaginateResponseMeta}
|
|
@@ -19,7 +19,7 @@ exports.List200Response1FromJSONTyped = List200Response1FromJSONTyped;
|
|
|
19
19
|
exports.List200Response1ToJSON = List200Response1ToJSON;
|
|
20
20
|
exports.List200Response1ToJSONTyped = List200Response1ToJSONTyped;
|
|
21
21
|
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
22
|
-
var
|
|
22
|
+
var IntersectionTaskListTaskDto_1 = require("./IntersectionTaskListTaskDto");
|
|
23
23
|
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
24
24
|
/**
|
|
25
25
|
* Check if a given object implements the List200Response1 interface.
|
|
@@ -41,7 +41,7 @@ function List200Response1FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
return json;
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
|
-
'data': (json['data'].map(
|
|
44
|
+
'data': (json['data'].map(IntersectionTaskListTaskDto_1.IntersectionTaskListTaskDtoFromJSON)),
|
|
45
45
|
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
46
46
|
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
47
47
|
};
|
|
@@ -55,7 +55,7 @@ function List200Response1ToJSONTyped(value, ignoreDiscriminator) {
|
|
|
55
55
|
return value;
|
|
56
56
|
}
|
|
57
57
|
return {
|
|
58
|
-
'data': (value['data'].map(
|
|
58
|
+
'data': (value['data'].map(IntersectionTaskListTaskDto_1.IntersectionTaskListTaskDtoToJSON)),
|
|
59
59
|
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
60
60
|
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
61
61
|
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
-
import type {
|
|
13
|
+
import type { DomainDto } from './DomainDto';
|
|
14
14
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -20,10 +20,10 @@ import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
|
20
20
|
export interface List200Response2 {
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
|
-
* @type {Array<
|
|
23
|
+
* @type {Array<DomainDto>}
|
|
24
24
|
* @memberof List200Response2
|
|
25
25
|
*/
|
|
26
|
-
data: Array<
|
|
26
|
+
data: Array<DomainDto>;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
* @type {PaginateResponseMeta}
|
|
@@ -19,7 +19,7 @@ exports.List200Response2FromJSONTyped = List200Response2FromJSONTyped;
|
|
|
19
19
|
exports.List200Response2ToJSON = List200Response2ToJSON;
|
|
20
20
|
exports.List200Response2ToJSONTyped = List200Response2ToJSONTyped;
|
|
21
21
|
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
22
|
-
var
|
|
22
|
+
var DomainDto_1 = require("./DomainDto");
|
|
23
23
|
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
24
24
|
/**
|
|
25
25
|
* Check if a given object implements the List200Response2 interface.
|
|
@@ -41,7 +41,7 @@ function List200Response2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
return json;
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
|
-
'data': (json['data'].map(
|
|
44
|
+
'data': (json['data'].map(DomainDto_1.DomainDtoFromJSON)),
|
|
45
45
|
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
46
46
|
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
47
47
|
};
|
|
@@ -55,7 +55,7 @@ function List200Response2ToJSONTyped(value, ignoreDiscriminator) {
|
|
|
55
55
|
return value;
|
|
56
56
|
}
|
|
57
57
|
return {
|
|
58
|
-
'data': (value['data'].map(
|
|
58
|
+
'data': (value['data'].map(DomainDto_1.DomainDtoToJSON)),
|
|
59
59
|
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
60
60
|
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
61
61
|
};
|