@randock/nameshift-api-client 0.0.394 → 0.0.396
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 +1 -0
- package/README.md +3 -3
- package/dist/apis/OrdersPublicApi.d.ts +11 -0
- package/dist/apis/OrdersPublicApi.js +44 -0
- package/dist/apis/SubscriptionsPublicApi.d.ts +14 -0
- package/dist/apis/SubscriptionsPublicApi.js +49 -0
- package/dist/models/DomainCategoryItemDto.d.ts +50 -0
- package/dist/models/DomainCategoryItemDto.js +63 -0
- package/dist/models/DomainPricesChangeDto.d.ts +7 -0
- package/dist/models/DomainPricesChangeDto.js +5 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/OrdersPublicApi.ts +37 -0
- package/src/apis/SubscriptionsPublicApi.ts +47 -0
- package/src/models/DomainCategoryItemDto.ts +93 -0
- package/src/models/DomainPricesChangeDto.ts +16 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -195,6 +195,7 @@ src/models/CursorBasedPageInfo.ts
|
|
|
195
195
|
src/models/CursorBasedPaginationResponse.ts
|
|
196
196
|
src/models/DeleteDomainsInput.ts
|
|
197
197
|
src/models/DomainAuctionDto.ts
|
|
198
|
+
src/models/DomainCategoryItemDto.ts
|
|
198
199
|
src/models/DomainExchangeRateDto.ts
|
|
199
200
|
src/models/DomainFiltersDto.ts
|
|
200
201
|
src/models/DomainLeadPriceNegotiatorAiAgentConfigurationDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.396
|
|
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.396 --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
|
+
180d2bdc7565cd5cadb1e2655181eb91493a18b893d66da6890e51415260c8e6b2b7cdb76f0837597de674fc14f108c5
|
|
@@ -18,6 +18,9 @@ export interface OrdersPublicApiCreateOrderManualTransactionRequest {
|
|
|
18
18
|
orderId: string;
|
|
19
19
|
createManualTransactionInput: CreateManualTransactionInput;
|
|
20
20
|
}
|
|
21
|
+
export interface OrdersPublicApiDownloadOrderProformaInvoiceRequest {
|
|
22
|
+
orderId: string;
|
|
23
|
+
}
|
|
21
24
|
export interface OrdersPublicApiGetOrderRequest {
|
|
22
25
|
orderId: string;
|
|
23
26
|
}
|
|
@@ -47,6 +50,14 @@ export declare class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
47
50
|
* Create a new manual transaction for order invoice
|
|
48
51
|
*/
|
|
49
52
|
createOrderManualTransaction(requestParameters: OrdersPublicApiCreateOrderManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
downloadOrderProformaInvoiceRaw(requestParameters: OrdersPublicApiDownloadOrderProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
downloadOrderProformaInvoice(requestParameters: OrdersPublicApiDownloadOrderProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
50
61
|
/**
|
|
51
62
|
*
|
|
52
63
|
*/
|
|
@@ -170,6 +170,50 @@ var OrdersPublicApi = /** @class */ (function (_super) {
|
|
|
170
170
|
});
|
|
171
171
|
});
|
|
172
172
|
};
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
*/
|
|
176
|
+
OrdersPublicApi.prototype.downloadOrderProformaInvoiceRaw = function (requestParameters, initOverrides) {
|
|
177
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
178
|
+
var queryParameters, headerParameters, response;
|
|
179
|
+
return __generator(this, function (_a) {
|
|
180
|
+
switch (_a.label) {
|
|
181
|
+
case 0:
|
|
182
|
+
if (requestParameters['orderId'] == null) {
|
|
183
|
+
throw new runtime.RequiredError('orderId', 'Required parameter "orderId" was null or undefined when calling downloadOrderProformaInvoice().');
|
|
184
|
+
}
|
|
185
|
+
queryParameters = {};
|
|
186
|
+
headerParameters = {};
|
|
187
|
+
return [4 /*yield*/, this.request({
|
|
188
|
+
path: "/orders/{orderId}/proforma/download".replace("{".concat("orderId", "}"), encodeURIComponent(String(requestParameters['orderId']))),
|
|
189
|
+
method: 'GET',
|
|
190
|
+
headers: headerParameters,
|
|
191
|
+
query: queryParameters,
|
|
192
|
+
}, initOverrides)];
|
|
193
|
+
case 1:
|
|
194
|
+
response = _a.sent();
|
|
195
|
+
return [2 /*return*/, new runtime.BlobApiResponse(response)];
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
*/
|
|
203
|
+
OrdersPublicApi.prototype.downloadOrderProformaInvoice = function (requestParameters, initOverrides) {
|
|
204
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
205
|
+
var response;
|
|
206
|
+
return __generator(this, function (_a) {
|
|
207
|
+
switch (_a.label) {
|
|
208
|
+
case 0: return [4 /*yield*/, this.downloadOrderProformaInvoiceRaw(requestParameters, initOverrides)];
|
|
209
|
+
case 1:
|
|
210
|
+
response = _a.sent();
|
|
211
|
+
return [4 /*yield*/, response.value()];
|
|
212
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
});
|
|
216
|
+
};
|
|
173
217
|
/**
|
|
174
218
|
*
|
|
175
219
|
*/
|
|
@@ -18,6 +18,10 @@ export interface SubscriptionsPublicApiCreateSubscriptionManualTransactionReques
|
|
|
18
18
|
subscriptionId: string;
|
|
19
19
|
createSubscriptionManualTransactionInput: CreateSubscriptionManualTransactionInput;
|
|
20
20
|
}
|
|
21
|
+
export interface SubscriptionsPublicApiDownloadSubscriptionProformaInvoiceRequest {
|
|
22
|
+
subscriptionId: string;
|
|
23
|
+
invoiceId: string;
|
|
24
|
+
}
|
|
21
25
|
export interface SubscriptionsPublicApiGetSubscriptionRequest {
|
|
22
26
|
subscriptionId: string;
|
|
23
27
|
}
|
|
@@ -51,6 +55,16 @@ export declare class SubscriptionsPublicApi extends runtime.BaseAPI {
|
|
|
51
55
|
* Create a new manual transaction for subscription invoice
|
|
52
56
|
*/
|
|
53
57
|
createSubscriptionManualTransaction(requestParameters: SubscriptionsPublicApiCreateSubscriptionManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Downloads a pro-forma invoice for a specific subscription
|
|
60
|
+
* Download subscription pro-forma invoice
|
|
61
|
+
*/
|
|
62
|
+
downloadSubscriptionProformaInvoiceRaw(requestParameters: SubscriptionsPublicApiDownloadSubscriptionProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
63
|
+
/**
|
|
64
|
+
* Downloads a pro-forma invoice for a specific subscription
|
|
65
|
+
* Download subscription pro-forma invoice
|
|
66
|
+
*/
|
|
67
|
+
downloadSubscriptionProformaInvoice(requestParameters: SubscriptionsPublicApiDownloadSubscriptionProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
54
68
|
/**
|
|
55
69
|
*
|
|
56
70
|
*/
|
|
@@ -170,6 +170,55 @@ var SubscriptionsPublicApi = /** @class */ (function (_super) {
|
|
|
170
170
|
});
|
|
171
171
|
});
|
|
172
172
|
};
|
|
173
|
+
/**
|
|
174
|
+
* Downloads a pro-forma invoice for a specific subscription
|
|
175
|
+
* Download subscription pro-forma invoice
|
|
176
|
+
*/
|
|
177
|
+
SubscriptionsPublicApi.prototype.downloadSubscriptionProformaInvoiceRaw = function (requestParameters, initOverrides) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
179
|
+
var queryParameters, headerParameters, response;
|
|
180
|
+
return __generator(this, function (_a) {
|
|
181
|
+
switch (_a.label) {
|
|
182
|
+
case 0:
|
|
183
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
184
|
+
throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling downloadSubscriptionProformaInvoice().');
|
|
185
|
+
}
|
|
186
|
+
if (requestParameters['invoiceId'] == null) {
|
|
187
|
+
throw new runtime.RequiredError('invoiceId', 'Required parameter "invoiceId" was null or undefined when calling downloadSubscriptionProformaInvoice().');
|
|
188
|
+
}
|
|
189
|
+
queryParameters = {};
|
|
190
|
+
headerParameters = {};
|
|
191
|
+
return [4 /*yield*/, this.request({
|
|
192
|
+
path: "/subscriptions/{subscriptionId}/invoices/{invoiceId}/proforma/download".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))).replace("{".concat("invoiceId", "}"), encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
193
|
+
method: 'GET',
|
|
194
|
+
headers: headerParameters,
|
|
195
|
+
query: queryParameters,
|
|
196
|
+
}, initOverrides)];
|
|
197
|
+
case 1:
|
|
198
|
+
response = _a.sent();
|
|
199
|
+
return [2 /*return*/, new runtime.BlobApiResponse(response)];
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
});
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* Downloads a pro-forma invoice for a specific subscription
|
|
206
|
+
* Download subscription pro-forma invoice
|
|
207
|
+
*/
|
|
208
|
+
SubscriptionsPublicApi.prototype.downloadSubscriptionProformaInvoice = function (requestParameters, initOverrides) {
|
|
209
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
210
|
+
var response;
|
|
211
|
+
return __generator(this, function (_a) {
|
|
212
|
+
switch (_a.label) {
|
|
213
|
+
case 0: return [4 /*yield*/, this.downloadSubscriptionProformaInvoiceRaw(requestParameters, initOverrides)];
|
|
214
|
+
case 1:
|
|
215
|
+
response = _a.sent();
|
|
216
|
+
return [4 /*yield*/, response.value()];
|
|
217
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
});
|
|
221
|
+
};
|
|
173
222
|
/**
|
|
174
223
|
*
|
|
175
224
|
*/
|
|
@@ -0,0 +1,50 @@
|
|
|
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 DomainCategoryItemDto
|
|
16
|
+
*/
|
|
17
|
+
export interface DomainCategoryItemDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DomainCategoryItemDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DomainCategoryItemDto
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DomainCategoryItemDto
|
|
34
|
+
*/
|
|
35
|
+
subId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof DomainCategoryItemDto
|
|
40
|
+
*/
|
|
41
|
+
subName: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the DomainCategoryItemDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfDomainCategoryItemDto(value: object): value is DomainCategoryItemDto;
|
|
47
|
+
export declare function DomainCategoryItemDtoFromJSON(json: any): DomainCategoryItemDto;
|
|
48
|
+
export declare function DomainCategoryItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainCategoryItemDto;
|
|
49
|
+
export declare function DomainCategoryItemDtoToJSON(json: any): DomainCategoryItemDto;
|
|
50
|
+
export declare function DomainCategoryItemDtoToJSONTyped(value?: DomainCategoryItemDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfDomainCategoryItemDto = instanceOfDomainCategoryItemDto;
|
|
17
|
+
exports.DomainCategoryItemDtoFromJSON = DomainCategoryItemDtoFromJSON;
|
|
18
|
+
exports.DomainCategoryItemDtoFromJSONTyped = DomainCategoryItemDtoFromJSONTyped;
|
|
19
|
+
exports.DomainCategoryItemDtoToJSON = DomainCategoryItemDtoToJSON;
|
|
20
|
+
exports.DomainCategoryItemDtoToJSONTyped = DomainCategoryItemDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DomainCategoryItemDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDomainCategoryItemDto(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('subId' in value) || value['subId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('subName' in value) || value['subName'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function DomainCategoryItemDtoFromJSON(json) {
|
|
36
|
+
return DomainCategoryItemDtoFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function DomainCategoryItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'subId': json['sub_id'],
|
|
46
|
+
'subName': json['sub_name'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function DomainCategoryItemDtoToJSON(json) {
|
|
50
|
+
return DomainCategoryItemDtoToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function DomainCategoryItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value['id'],
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'sub_id': value['subId'],
|
|
61
|
+
'sub_name': value['subName'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { MoneyDto } from './MoneyDto';
|
|
13
|
+
import type { DomainCategoryItemDto } from './DomainCategoryItemDto';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -22,6 +23,12 @@ export interface DomainPricesChangeDto {
|
|
|
22
23
|
* @memberof DomainPricesChangeDto
|
|
23
24
|
*/
|
|
24
25
|
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* Categories of the domain (parent + subcategory)
|
|
28
|
+
* @type {Array<DomainCategoryItemDto>}
|
|
29
|
+
* @memberof DomainPricesChangeDto
|
|
30
|
+
*/
|
|
31
|
+
categories: Array<DomainCategoryItemDto>;
|
|
25
32
|
/**
|
|
26
33
|
* The ASCII domain name (example.com, xn--maana-pta.com)
|
|
27
34
|
* @type {string}
|
|
@@ -19,12 +19,15 @@ exports.DomainPricesChangeDtoFromJSONTyped = DomainPricesChangeDtoFromJSONTyped;
|
|
|
19
19
|
exports.DomainPricesChangeDtoToJSON = DomainPricesChangeDtoToJSON;
|
|
20
20
|
exports.DomainPricesChangeDtoToJSONTyped = DomainPricesChangeDtoToJSONTyped;
|
|
21
21
|
var MoneyDto_1 = require("./MoneyDto");
|
|
22
|
+
var DomainCategoryItemDto_1 = require("./DomainCategoryItemDto");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the DomainPricesChangeDto interface.
|
|
24
25
|
*/
|
|
25
26
|
function instanceOfDomainPricesChangeDto(value) {
|
|
26
27
|
if (!('id' in value) || value['id'] === undefined)
|
|
27
28
|
return false;
|
|
29
|
+
if (!('categories' in value) || value['categories'] === undefined)
|
|
30
|
+
return false;
|
|
28
31
|
if (!('name' in value) || value['name'] === undefined)
|
|
29
32
|
return false;
|
|
30
33
|
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
@@ -48,6 +51,7 @@ function DomainPricesChangeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
51
|
}
|
|
49
52
|
return {
|
|
50
53
|
'id': json['id'],
|
|
54
|
+
'categories': (json['categories'].map(DomainCategoryItemDto_1.DomainCategoryItemDtoFromJSON)),
|
|
51
55
|
'name': json['name'],
|
|
52
56
|
'displayName': json['displayName'],
|
|
53
57
|
'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
|
|
@@ -66,6 +70,7 @@ function DomainPricesChangeDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
66
70
|
}
|
|
67
71
|
return {
|
|
68
72
|
'id': value['id'],
|
|
73
|
+
'categories': (value['categories'].map(DomainCategoryItemDto_1.DomainCategoryItemDtoToJSON)),
|
|
69
74
|
'name': value['name'],
|
|
70
75
|
'displayName': value['displayName'],
|
|
71
76
|
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -159,6 +159,7 @@ export * from './CursorBasedPageInfo';
|
|
|
159
159
|
export * from './CursorBasedPaginationResponse';
|
|
160
160
|
export * from './DeleteDomainsInput';
|
|
161
161
|
export * from './DomainAuctionDto';
|
|
162
|
+
export * from './DomainCategoryItemDto';
|
|
162
163
|
export * from './DomainExchangeRateDto';
|
|
163
164
|
export * from './DomainFiltersDto';
|
|
164
165
|
export * from './DomainLeadPriceNegotiatorAiAgentConfigurationDto';
|
package/dist/models/index.js
CHANGED
|
@@ -177,6 +177,7 @@ __exportStar(require("./CursorBasedPageInfo"), exports);
|
|
|
177
177
|
__exportStar(require("./CursorBasedPaginationResponse"), exports);
|
|
178
178
|
__exportStar(require("./DeleteDomainsInput"), exports);
|
|
179
179
|
__exportStar(require("./DomainAuctionDto"), exports);
|
|
180
|
+
__exportStar(require("./DomainCategoryItemDto"), exports);
|
|
180
181
|
__exportStar(require("./DomainExchangeRateDto"), exports);
|
|
181
182
|
__exportStar(require("./DomainFiltersDto"), exports);
|
|
182
183
|
__exportStar(require("./DomainLeadPriceNegotiatorAiAgentConfigurationDto"), exports);
|
package/package.json
CHANGED
|
@@ -52,6 +52,10 @@ export interface OrdersPublicApiCreateOrderManualTransactionRequest {
|
|
|
52
52
|
createManualTransactionInput: CreateManualTransactionInput;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
export interface OrdersPublicApiDownloadOrderProformaInvoiceRequest {
|
|
56
|
+
orderId: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
55
59
|
export interface OrdersPublicApiGetOrderRequest {
|
|
56
60
|
orderId: string;
|
|
57
61
|
}
|
|
@@ -146,6 +150,39 @@ export class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
146
150
|
await this.createOrderManualTransactionRaw(requestParameters, initOverrides);
|
|
147
151
|
}
|
|
148
152
|
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
156
|
+
async downloadOrderProformaInvoiceRaw(requestParameters: OrdersPublicApiDownloadOrderProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
157
|
+
if (requestParameters['orderId'] == null) {
|
|
158
|
+
throw new runtime.RequiredError(
|
|
159
|
+
'orderId',
|
|
160
|
+
'Required parameter "orderId" was null or undefined when calling downloadOrderProformaInvoice().'
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
const queryParameters: any = {};
|
|
165
|
+
|
|
166
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
167
|
+
|
|
168
|
+
const response = await this.request({
|
|
169
|
+
path: `/orders/{orderId}/proforma/download`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))),
|
|
170
|
+
method: 'GET',
|
|
171
|
+
headers: headerParameters,
|
|
172
|
+
query: queryParameters,
|
|
173
|
+
}, initOverrides);
|
|
174
|
+
|
|
175
|
+
return new runtime.BlobApiResponse(response);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
*/
|
|
181
|
+
async downloadOrderProformaInvoice(requestParameters: OrdersPublicApiDownloadOrderProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
182
|
+
const response = await this.downloadOrderProformaInvoiceRaw(requestParameters, initOverrides);
|
|
183
|
+
return await response.value();
|
|
184
|
+
}
|
|
185
|
+
|
|
149
186
|
/**
|
|
150
187
|
*
|
|
151
188
|
*/
|
|
@@ -52,6 +52,11 @@ export interface SubscriptionsPublicApiCreateSubscriptionManualTransactionReques
|
|
|
52
52
|
createSubscriptionManualTransactionInput: CreateSubscriptionManualTransactionInput;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
export interface SubscriptionsPublicApiDownloadSubscriptionProformaInvoiceRequest {
|
|
56
|
+
subscriptionId: string;
|
|
57
|
+
invoiceId: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
55
60
|
export interface SubscriptionsPublicApiGetSubscriptionRequest {
|
|
56
61
|
subscriptionId: string;
|
|
57
62
|
}
|
|
@@ -151,6 +156,48 @@ export class SubscriptionsPublicApi extends runtime.BaseAPI {
|
|
|
151
156
|
await this.createSubscriptionManualTransactionRaw(requestParameters, initOverrides);
|
|
152
157
|
}
|
|
153
158
|
|
|
159
|
+
/**
|
|
160
|
+
* Downloads a pro-forma invoice for a specific subscription
|
|
161
|
+
* Download subscription pro-forma invoice
|
|
162
|
+
*/
|
|
163
|
+
async downloadSubscriptionProformaInvoiceRaw(requestParameters: SubscriptionsPublicApiDownloadSubscriptionProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
164
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
165
|
+
throw new runtime.RequiredError(
|
|
166
|
+
'subscriptionId',
|
|
167
|
+
'Required parameter "subscriptionId" was null or undefined when calling downloadSubscriptionProformaInvoice().'
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (requestParameters['invoiceId'] == null) {
|
|
172
|
+
throw new runtime.RequiredError(
|
|
173
|
+
'invoiceId',
|
|
174
|
+
'Required parameter "invoiceId" was null or undefined when calling downloadSubscriptionProformaInvoice().'
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
const queryParameters: any = {};
|
|
179
|
+
|
|
180
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
181
|
+
|
|
182
|
+
const response = await this.request({
|
|
183
|
+
path: `/subscriptions/{subscriptionId}/invoices/{invoiceId}/proforma/download`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))).replace(`{${"invoiceId"}}`, encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
184
|
+
method: 'GET',
|
|
185
|
+
headers: headerParameters,
|
|
186
|
+
query: queryParameters,
|
|
187
|
+
}, initOverrides);
|
|
188
|
+
|
|
189
|
+
return new runtime.BlobApiResponse(response);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Downloads a pro-forma invoice for a specific subscription
|
|
194
|
+
* Download subscription pro-forma invoice
|
|
195
|
+
*/
|
|
196
|
+
async downloadSubscriptionProformaInvoice(requestParameters: SubscriptionsPublicApiDownloadSubscriptionProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
197
|
+
const response = await this.downloadSubscriptionProformaInvoiceRaw(requestParameters, initOverrides);
|
|
198
|
+
return await response.value();
|
|
199
|
+
}
|
|
200
|
+
|
|
154
201
|
/**
|
|
155
202
|
*
|
|
156
203
|
*/
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DomainCategoryItemDto
|
|
20
|
+
*/
|
|
21
|
+
export interface DomainCategoryItemDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DomainCategoryItemDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DomainCategoryItemDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof DomainCategoryItemDto
|
|
38
|
+
*/
|
|
39
|
+
subId: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof DomainCategoryItemDto
|
|
44
|
+
*/
|
|
45
|
+
subName: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the DomainCategoryItemDto interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfDomainCategoryItemDto(value: object): value is DomainCategoryItemDto {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
54
|
+
if (!('subId' in value) || value['subId'] === undefined) return false;
|
|
55
|
+
if (!('subName' in value) || value['subName'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function DomainCategoryItemDtoFromJSON(json: any): DomainCategoryItemDto {
|
|
60
|
+
return DomainCategoryItemDtoFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function DomainCategoryItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainCategoryItemDto {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'name': json['name'],
|
|
71
|
+
'subId': json['sub_id'],
|
|
72
|
+
'subName': json['sub_name'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function DomainCategoryItemDtoToJSON(json: any): DomainCategoryItemDto {
|
|
77
|
+
return DomainCategoryItemDtoToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function DomainCategoryItemDtoToJSONTyped(value?: DomainCategoryItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'name': value['name'],
|
|
89
|
+
'sub_id': value['subId'],
|
|
90
|
+
'sub_name': value['subName'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
MoneyDtoToJSON,
|
|
21
21
|
MoneyDtoToJSONTyped,
|
|
22
22
|
} from './MoneyDto';
|
|
23
|
+
import type { DomainCategoryItemDto } from './DomainCategoryItemDto';
|
|
24
|
+
import {
|
|
25
|
+
DomainCategoryItemDtoFromJSON,
|
|
26
|
+
DomainCategoryItemDtoFromJSONTyped,
|
|
27
|
+
DomainCategoryItemDtoToJSON,
|
|
28
|
+
DomainCategoryItemDtoToJSONTyped,
|
|
29
|
+
} from './DomainCategoryItemDto';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -33,6 +40,12 @@ export interface DomainPricesChangeDto {
|
|
|
33
40
|
* @memberof DomainPricesChangeDto
|
|
34
41
|
*/
|
|
35
42
|
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Categories of the domain (parent + subcategory)
|
|
45
|
+
* @type {Array<DomainCategoryItemDto>}
|
|
46
|
+
* @memberof DomainPricesChangeDto
|
|
47
|
+
*/
|
|
48
|
+
categories: Array<DomainCategoryItemDto>;
|
|
36
49
|
/**
|
|
37
50
|
* The ASCII domain name (example.com, xn--maana-pta.com)
|
|
38
51
|
* @type {string}
|
|
@@ -76,6 +89,7 @@ export interface DomainPricesChangeDto {
|
|
|
76
89
|
*/
|
|
77
90
|
export function instanceOfDomainPricesChangeDto(value: object): value is DomainPricesChangeDto {
|
|
78
91
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
92
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
79
93
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
80
94
|
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
81
95
|
if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
|
|
@@ -96,6 +110,7 @@ export function DomainPricesChangeDtoFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
96
110
|
return {
|
|
97
111
|
|
|
98
112
|
'id': json['id'],
|
|
113
|
+
'categories': ((json['categories'] as Array<any>).map(DomainCategoryItemDtoFromJSON)),
|
|
99
114
|
'name': json['name'],
|
|
100
115
|
'displayName': json['displayName'],
|
|
101
116
|
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
@@ -117,6 +132,7 @@ export function DomainPricesChangeDtoToJSONTyped(value?: DomainPricesChangeDto |
|
|
|
117
132
|
return {
|
|
118
133
|
|
|
119
134
|
'id': value['id'],
|
|
135
|
+
'categories': ((value['categories'] as Array<any>).map(DomainCategoryItemDtoToJSON)),
|
|
120
136
|
'name': value['name'],
|
|
121
137
|
'displayName': value['displayName'],
|
|
122
138
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
package/src/models/index.ts
CHANGED
|
@@ -161,6 +161,7 @@ export * from './CursorBasedPageInfo';
|
|
|
161
161
|
export * from './CursorBasedPaginationResponse';
|
|
162
162
|
export * from './DeleteDomainsInput';
|
|
163
163
|
export * from './DomainAuctionDto';
|
|
164
|
+
export * from './DomainCategoryItemDto';
|
|
164
165
|
export * from './DomainExchangeRateDto';
|
|
165
166
|
export * from './DomainFiltersDto';
|
|
166
167
|
export * from './DomainLeadPriceNegotiatorAiAgentConfigurationDto';
|