@randock/nameshift-api-client 0.0.351 → 0.0.353
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/DomainsPublicApi.d.ts +1 -0
- package/dist/apis/DomainsPublicApi.js +6 -0
- package/dist/apis/InvoicesApi.d.ts +12 -1
- package/dist/apis/InvoicesApi.js +53 -0
- package/dist/models/BulkDownloadInvoicesInput.d.ts +38 -0
- package/dist/models/BulkDownloadInvoicesInput.js +51 -0
- package/dist/models/BuyerNotificationDto.d.ts +2 -0
- package/dist/models/BuyerNotificationDto.js +2 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +2 -0
- package/dist/models/BuyerNotificationListItemDto.js +2 -0
- package/dist/models/UserNotificationDto.d.ts +2 -0
- package/dist/models/UserNotificationDto.js +2 -0
- package/dist/models/UserNotificationListItemDto.d.ts +2 -0
- package/dist/models/UserNotificationListItemDto.js +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/DomainsPublicApi.ts +12 -0
- package/src/apis/InvoicesApi.ts +50 -0
- package/src/models/BulkDownloadInvoicesInput.ts +73 -0
- package/src/models/BuyerNotificationDto.ts +2 -0
- package/src/models/BuyerNotificationListItemDto.ts +2 -0
- package/src/models/UserNotificationDto.ts +2 -0
- package/src/models/UserNotificationListItemDto.ts +2 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -93,6 +93,7 @@ src/models/BatchReadSellerLeadMessageInput.ts
|
|
|
93
93
|
src/models/BatchUpdateDomainsInput.ts
|
|
94
94
|
src/models/BatchVerifyBuyerLeadsInput.ts
|
|
95
95
|
src/models/BillingInformationDto.ts
|
|
96
|
+
src/models/BulkDownloadInvoicesInput.ts
|
|
96
97
|
src/models/BulkMarkBuyerNotificationsAsReadInputDto.ts
|
|
97
98
|
src/models/BulkMarkNotificationsAsReadInputDto.ts
|
|
98
99
|
src/models/BulkUpdateDomainsWithFiltersInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.353
|
|
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.353 --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
|
+
a6a913373a07edf62a41af09ad87e268d9eecb2b96d166b0f0d1bd4ee0c8b3e0e872ba62b72e4f5bb0001e326dc10fa5
|
|
@@ -16,6 +16,7 @@ export interface DomainsPublicApiGetAllTldsRequest {
|
|
|
16
16
|
}
|
|
17
17
|
export interface DomainsPublicApiGetDomainRelatedDomainsRequest {
|
|
18
18
|
domainName: string;
|
|
19
|
+
locale: string;
|
|
19
20
|
}
|
|
20
21
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
21
22
|
domainName: string;
|
|
@@ -132,7 +132,13 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
132
132
|
if (requestParameters['domainName'] == null) {
|
|
133
133
|
throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling getDomainRelatedDomains().');
|
|
134
134
|
}
|
|
135
|
+
if (requestParameters['locale'] == null) {
|
|
136
|
+
throw new runtime.RequiredError('locale', 'Required parameter "locale" was null or undefined when calling getDomainRelatedDomains().');
|
|
137
|
+
}
|
|
135
138
|
queryParameters = {};
|
|
139
|
+
if (requestParameters['locale'] != null) {
|
|
140
|
+
queryParameters['locale'] = requestParameters['locale'];
|
|
141
|
+
}
|
|
136
142
|
headerParameters = {};
|
|
137
143
|
return [4 /*yield*/, this.request({
|
|
138
144
|
path: "/domains/by-name/{domainName}/related-domains".replace("{".concat("domainName", "}"), encodeURIComponent(String(requestParameters['domainName']))),
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GetInvoices200Response } from '../models/index';
|
|
13
|
+
import type { BulkDownloadInvoicesInput, GetInvoices200Response } from '../models/index';
|
|
14
14
|
export interface InvoicesApiDownloadInvoiceRequest {
|
|
15
15
|
invoiceId: string;
|
|
16
16
|
}
|
|
@@ -20,6 +20,9 @@ export interface InvoicesApiGetInvoicesRequest {
|
|
|
20
20
|
limit?: number;
|
|
21
21
|
sortBy?: Array<string>;
|
|
22
22
|
}
|
|
23
|
+
export interface InvoicesApiRequestBulkDownloadInvoicesRequest {
|
|
24
|
+
bulkDownloadInvoicesInput: BulkDownloadInvoicesInput;
|
|
25
|
+
}
|
|
23
26
|
/**
|
|
24
27
|
*
|
|
25
28
|
*/
|
|
@@ -40,4 +43,12 @@ export declare class InvoicesApi extends runtime.BaseAPI {
|
|
|
40
43
|
*
|
|
41
44
|
*/
|
|
42
45
|
getInvoices(requestParameters?: InvoicesApiGetInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInvoices200Response>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
requestBulkDownloadInvoicesRaw(requestParameters: InvoicesApiRequestBulkDownloadInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
requestBulkDownloadInvoices(requestParameters: InvoicesApiRequestBulkDownloadInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
43
54
|
}
|
package/dist/apis/InvoicesApi.js
CHANGED
|
@@ -191,6 +191,59 @@ var InvoicesApi = /** @class */ (function (_super) {
|
|
|
191
191
|
});
|
|
192
192
|
});
|
|
193
193
|
};
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
*/
|
|
197
|
+
InvoicesApi.prototype.requestBulkDownloadInvoicesRaw = function (requestParameters, initOverrides) {
|
|
198
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
199
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
200
|
+
return __generator(this, function (_a) {
|
|
201
|
+
switch (_a.label) {
|
|
202
|
+
case 0:
|
|
203
|
+
if (requestParameters['bulkDownloadInvoicesInput'] == null) {
|
|
204
|
+
throw new runtime.RequiredError('bulkDownloadInvoicesInput', 'Required parameter "bulkDownloadInvoicesInput" was null or undefined when calling requestBulkDownloadInvoices().');
|
|
205
|
+
}
|
|
206
|
+
queryParameters = {};
|
|
207
|
+
headerParameters = {};
|
|
208
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
209
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
210
|
+
token = this.configuration.accessToken;
|
|
211
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
212
|
+
case 1:
|
|
213
|
+
tokenString = _a.sent();
|
|
214
|
+
if (tokenString) {
|
|
215
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
216
|
+
}
|
|
217
|
+
_a.label = 2;
|
|
218
|
+
case 2: return [4 /*yield*/, this.request({
|
|
219
|
+
path: "/private/invoices/bulk-download",
|
|
220
|
+
method: 'POST',
|
|
221
|
+
headers: headerParameters,
|
|
222
|
+
query: queryParameters,
|
|
223
|
+
body: (0, index_1.BulkDownloadInvoicesInputToJSON)(requestParameters['bulkDownloadInvoicesInput']),
|
|
224
|
+
}, initOverrides)];
|
|
225
|
+
case 3:
|
|
226
|
+
response = _a.sent();
|
|
227
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
*/
|
|
235
|
+
InvoicesApi.prototype.requestBulkDownloadInvoices = function (requestParameters, initOverrides) {
|
|
236
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
237
|
+
return __generator(this, function (_a) {
|
|
238
|
+
switch (_a.label) {
|
|
239
|
+
case 0: return [4 /*yield*/, this.requestBulkDownloadInvoicesRaw(requestParameters, initOverrides)];
|
|
240
|
+
case 1:
|
|
241
|
+
_a.sent();
|
|
242
|
+
return [2 /*return*/];
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
};
|
|
194
247
|
return InvoicesApi;
|
|
195
248
|
}(runtime.BaseAPI));
|
|
196
249
|
exports.InvoicesApi = InvoicesApi;
|
|
@@ -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 BulkDownloadInvoicesInput
|
|
16
|
+
*/
|
|
17
|
+
export interface BulkDownloadInvoicesInput {
|
|
18
|
+
/**
|
|
19
|
+
* Start date for filtering invoices
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof BulkDownloadInvoicesInput
|
|
22
|
+
*/
|
|
23
|
+
startDate?: Date;
|
|
24
|
+
/**
|
|
25
|
+
* End date for filtering invoices
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof BulkDownloadInvoicesInput
|
|
28
|
+
*/
|
|
29
|
+
endDate?: Date;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the BulkDownloadInvoicesInput interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfBulkDownloadInvoicesInput(value: object): value is BulkDownloadInvoicesInput;
|
|
35
|
+
export declare function BulkDownloadInvoicesInputFromJSON(json: any): BulkDownloadInvoicesInput;
|
|
36
|
+
export declare function BulkDownloadInvoicesInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkDownloadInvoicesInput;
|
|
37
|
+
export declare function BulkDownloadInvoicesInputToJSON(json: any): BulkDownloadInvoicesInput;
|
|
38
|
+
export declare function BulkDownloadInvoicesInputToJSONTyped(value?: BulkDownloadInvoicesInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfBulkDownloadInvoicesInput = instanceOfBulkDownloadInvoicesInput;
|
|
17
|
+
exports.BulkDownloadInvoicesInputFromJSON = BulkDownloadInvoicesInputFromJSON;
|
|
18
|
+
exports.BulkDownloadInvoicesInputFromJSONTyped = BulkDownloadInvoicesInputFromJSONTyped;
|
|
19
|
+
exports.BulkDownloadInvoicesInputToJSON = BulkDownloadInvoicesInputToJSON;
|
|
20
|
+
exports.BulkDownloadInvoicesInputToJSONTyped = BulkDownloadInvoicesInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BulkDownloadInvoicesInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBulkDownloadInvoicesInput(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function BulkDownloadInvoicesInputFromJSON(json) {
|
|
28
|
+
return BulkDownloadInvoicesInputFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function BulkDownloadInvoicesInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
|
36
|
+
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function BulkDownloadInvoicesInputToJSON(json) {
|
|
40
|
+
return BulkDownloadInvoicesInputToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function BulkDownloadInvoicesInputToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'startDate': value['startDate'] == null ? undefined : ((value['startDate']).toISOString()),
|
|
49
|
+
'endDate': value['endDate'] == null ? undefined : ((value['endDate']).toISOString()),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -108,6 +108,8 @@ export declare const BuyerNotificationDtoTypeEnum: {
|
|
|
108
108
|
readonly BUYER_INVOICE: "buyer_invoice";
|
|
109
109
|
readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
|
|
110
110
|
readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
|
|
111
|
+
readonly SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: "seller_bulk_download_invoices_completed";
|
|
112
|
+
readonly SELLER_BULK_DOWNLOAD_INVOICES_FAILED: "seller_bulk_download_invoices_failed";
|
|
111
113
|
readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
|
|
112
114
|
readonly ORDER_HAS_BEEN_PAID: "order_has_been_paid";
|
|
113
115
|
readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
|
|
@@ -69,6 +69,8 @@ exports.BuyerNotificationDtoTypeEnum = {
|
|
|
69
69
|
BUYER_INVOICE: 'buyer_invoice',
|
|
70
70
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
71
71
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
72
|
+
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
73
|
+
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
72
74
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
73
75
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
74
76
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
@@ -101,6 +101,8 @@ export declare const BuyerNotificationListItemDtoTypeEnum: {
|
|
|
101
101
|
readonly BUYER_INVOICE: "buyer_invoice";
|
|
102
102
|
readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
|
|
103
103
|
readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
|
|
104
|
+
readonly SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: "seller_bulk_download_invoices_completed";
|
|
105
|
+
readonly SELLER_BULK_DOWNLOAD_INVOICES_FAILED: "seller_bulk_download_invoices_failed";
|
|
104
106
|
readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
|
|
105
107
|
readonly ORDER_HAS_BEEN_PAID: "order_has_been_paid";
|
|
106
108
|
readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
|
|
@@ -68,6 +68,8 @@ exports.BuyerNotificationListItemDtoTypeEnum = {
|
|
|
68
68
|
BUYER_INVOICE: 'buyer_invoice',
|
|
69
69
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
70
70
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
71
|
+
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
72
|
+
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
71
73
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
72
74
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
73
75
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
@@ -108,6 +108,8 @@ export declare const UserNotificationDtoTypeEnum: {
|
|
|
108
108
|
readonly BUYER_INVOICE: "buyer_invoice";
|
|
109
109
|
readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
|
|
110
110
|
readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
|
|
111
|
+
readonly SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: "seller_bulk_download_invoices_completed";
|
|
112
|
+
readonly SELLER_BULK_DOWNLOAD_INVOICES_FAILED: "seller_bulk_download_invoices_failed";
|
|
111
113
|
readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
|
|
112
114
|
readonly ORDER_HAS_BEEN_PAID: "order_has_been_paid";
|
|
113
115
|
readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
|
|
@@ -69,6 +69,8 @@ exports.UserNotificationDtoTypeEnum = {
|
|
|
69
69
|
BUYER_INVOICE: 'buyer_invoice',
|
|
70
70
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
71
71
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
72
|
+
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
73
|
+
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
72
74
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
73
75
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
74
76
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
@@ -101,6 +101,8 @@ export declare const UserNotificationListItemDtoTypeEnum: {
|
|
|
101
101
|
readonly BUYER_INVOICE: "buyer_invoice";
|
|
102
102
|
readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
|
|
103
103
|
readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
|
|
104
|
+
readonly SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: "seller_bulk_download_invoices_completed";
|
|
105
|
+
readonly SELLER_BULK_DOWNLOAD_INVOICES_FAILED: "seller_bulk_download_invoices_failed";
|
|
104
106
|
readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
|
|
105
107
|
readonly ORDER_HAS_BEEN_PAID: "order_has_been_paid";
|
|
106
108
|
readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
|
|
@@ -68,6 +68,8 @@ exports.UserNotificationListItemDtoTypeEnum = {
|
|
|
68
68
|
BUYER_INVOICE: 'buyer_invoice',
|
|
69
69
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
70
70
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
71
|
+
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
72
|
+
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
71
73
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
72
74
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
73
75
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
package/dist/models/index.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export * from './BatchReadSellerLeadMessageInput';
|
|
|
58
58
|
export * from './BatchUpdateDomainsInput';
|
|
59
59
|
export * from './BatchVerifyBuyerLeadsInput';
|
|
60
60
|
export * from './BillingInformationDto';
|
|
61
|
+
export * from './BulkDownloadInvoicesInput';
|
|
61
62
|
export * from './BulkMarkBuyerNotificationsAsReadInputDto';
|
|
62
63
|
export * from './BulkMarkNotificationsAsReadInputDto';
|
|
63
64
|
export * from './BulkUpdateDomainsWithFiltersInput';
|
package/dist/models/index.js
CHANGED
|
@@ -76,6 +76,7 @@ __exportStar(require("./BatchReadSellerLeadMessageInput"), exports);
|
|
|
76
76
|
__exportStar(require("./BatchUpdateDomainsInput"), exports);
|
|
77
77
|
__exportStar(require("./BatchVerifyBuyerLeadsInput"), exports);
|
|
78
78
|
__exportStar(require("./BillingInformationDto"), exports);
|
|
79
|
+
__exportStar(require("./BulkDownloadInvoicesInput"), exports);
|
|
79
80
|
__exportStar(require("./BulkMarkBuyerNotificationsAsReadInputDto"), exports);
|
|
80
81
|
__exportStar(require("./BulkMarkNotificationsAsReadInputDto"), exports);
|
|
81
82
|
__exportStar(require("./BulkUpdateDomainsWithFiltersInput"), exports);
|
package/package.json
CHANGED
|
@@ -49,6 +49,7 @@ export interface DomainsPublicApiGetAllTldsRequest {
|
|
|
49
49
|
|
|
50
50
|
export interface DomainsPublicApiGetDomainRelatedDomainsRequest {
|
|
51
51
|
domainName: string;
|
|
52
|
+
locale: string;
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
@@ -116,8 +117,19 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
116
117
|
);
|
|
117
118
|
}
|
|
118
119
|
|
|
120
|
+
if (requestParameters['locale'] == null) {
|
|
121
|
+
throw new runtime.RequiredError(
|
|
122
|
+
'locale',
|
|
123
|
+
'Required parameter "locale" was null or undefined when calling getDomainRelatedDomains().'
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
119
127
|
const queryParameters: any = {};
|
|
120
128
|
|
|
129
|
+
if (requestParameters['locale'] != null) {
|
|
130
|
+
queryParameters['locale'] = requestParameters['locale'];
|
|
131
|
+
}
|
|
132
|
+
|
|
121
133
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
122
134
|
|
|
123
135
|
const response = await this.request({
|
package/src/apis/InvoicesApi.ts
CHANGED
|
@@ -15,11 +15,14 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
BulkDownloadInvoicesInput,
|
|
18
19
|
GetInvoices200Response,
|
|
19
20
|
NotFoundException,
|
|
20
21
|
ValidationException,
|
|
21
22
|
} from '../models/index';
|
|
22
23
|
import {
|
|
24
|
+
BulkDownloadInvoicesInputFromJSON,
|
|
25
|
+
BulkDownloadInvoicesInputToJSON,
|
|
23
26
|
GetInvoices200ResponseFromJSON,
|
|
24
27
|
GetInvoices200ResponseToJSON,
|
|
25
28
|
NotFoundExceptionFromJSON,
|
|
@@ -39,6 +42,10 @@ export interface InvoicesApiGetInvoicesRequest {
|
|
|
39
42
|
sortBy?: Array<string>;
|
|
40
43
|
}
|
|
41
44
|
|
|
45
|
+
export interface InvoicesApiRequestBulkDownloadInvoicesRequest {
|
|
46
|
+
bulkDownloadInvoicesInput: BulkDownloadInvoicesInput;
|
|
47
|
+
}
|
|
48
|
+
|
|
42
49
|
/**
|
|
43
50
|
*
|
|
44
51
|
*/
|
|
@@ -135,4 +142,47 @@ export class InvoicesApi extends runtime.BaseAPI {
|
|
|
135
142
|
return await response.value();
|
|
136
143
|
}
|
|
137
144
|
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
*/
|
|
148
|
+
async requestBulkDownloadInvoicesRaw(requestParameters: InvoicesApiRequestBulkDownloadInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
149
|
+
if (requestParameters['bulkDownloadInvoicesInput'] == null) {
|
|
150
|
+
throw new runtime.RequiredError(
|
|
151
|
+
'bulkDownloadInvoicesInput',
|
|
152
|
+
'Required parameter "bulkDownloadInvoicesInput" was null or undefined when calling requestBulkDownloadInvoices().'
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const queryParameters: any = {};
|
|
157
|
+
|
|
158
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
159
|
+
|
|
160
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
161
|
+
|
|
162
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
163
|
+
const token = this.configuration.accessToken;
|
|
164
|
+
const tokenString = await token("bearer", []);
|
|
165
|
+
|
|
166
|
+
if (tokenString) {
|
|
167
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
const response = await this.request({
|
|
171
|
+
path: `/private/invoices/bulk-download`,
|
|
172
|
+
method: 'POST',
|
|
173
|
+
headers: headerParameters,
|
|
174
|
+
query: queryParameters,
|
|
175
|
+
body: BulkDownloadInvoicesInputToJSON(requestParameters['bulkDownloadInvoicesInput']),
|
|
176
|
+
}, initOverrides);
|
|
177
|
+
|
|
178
|
+
return new runtime.VoidApiResponse(response);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
*/
|
|
184
|
+
async requestBulkDownloadInvoices(requestParameters: InvoicesApiRequestBulkDownloadInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
185
|
+
await this.requestBulkDownloadInvoicesRaw(requestParameters, initOverrides);
|
|
186
|
+
}
|
|
187
|
+
|
|
138
188
|
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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 BulkDownloadInvoicesInput
|
|
20
|
+
*/
|
|
21
|
+
export interface BulkDownloadInvoicesInput {
|
|
22
|
+
/**
|
|
23
|
+
* Start date for filtering invoices
|
|
24
|
+
* @type {Date}
|
|
25
|
+
* @memberof BulkDownloadInvoicesInput
|
|
26
|
+
*/
|
|
27
|
+
startDate?: Date;
|
|
28
|
+
/**
|
|
29
|
+
* End date for filtering invoices
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof BulkDownloadInvoicesInput
|
|
32
|
+
*/
|
|
33
|
+
endDate?: Date;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the BulkDownloadInvoicesInput interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfBulkDownloadInvoicesInput(value: object): value is BulkDownloadInvoicesInput {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function BulkDownloadInvoicesInputFromJSON(json: any): BulkDownloadInvoicesInput {
|
|
44
|
+
return BulkDownloadInvoicesInputFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function BulkDownloadInvoicesInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkDownloadInvoicesInput {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
|
54
|
+
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function BulkDownloadInvoicesInputToJSON(json: any): BulkDownloadInvoicesInput {
|
|
59
|
+
return BulkDownloadInvoicesInputToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function BulkDownloadInvoicesInputToJSONTyped(value?: BulkDownloadInvoicesInput | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'startDate': value['startDate'] == null ? undefined : ((value['startDate']).toISOString()),
|
|
70
|
+
'endDate': value['endDate'] == null ? undefined : ((value['endDate']).toISOString()),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -121,6 +121,8 @@ export const BuyerNotificationDtoTypeEnum = {
|
|
|
121
121
|
BUYER_INVOICE: 'buyer_invoice',
|
|
122
122
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
123
123
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
124
|
+
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
125
|
+
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
124
126
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
125
127
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
126
128
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
@@ -107,6 +107,8 @@ export const BuyerNotificationListItemDtoTypeEnum = {
|
|
|
107
107
|
BUYER_INVOICE: 'buyer_invoice',
|
|
108
108
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
109
109
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
110
|
+
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
111
|
+
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
110
112
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
111
113
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
112
114
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
@@ -121,6 +121,8 @@ export const UserNotificationDtoTypeEnum = {
|
|
|
121
121
|
BUYER_INVOICE: 'buyer_invoice',
|
|
122
122
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
123
123
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
124
|
+
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
125
|
+
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
124
126
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
125
127
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
126
128
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
@@ -107,6 +107,8 @@ export const UserNotificationListItemDtoTypeEnum = {
|
|
|
107
107
|
BUYER_INVOICE: 'buyer_invoice',
|
|
108
108
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
109
109
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
110
|
+
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
111
|
+
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
110
112
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
111
113
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
112
114
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
package/src/models/index.ts
CHANGED
|
@@ -60,6 +60,7 @@ export * from './BatchReadSellerLeadMessageInput';
|
|
|
60
60
|
export * from './BatchUpdateDomainsInput';
|
|
61
61
|
export * from './BatchVerifyBuyerLeadsInput';
|
|
62
62
|
export * from './BillingInformationDto';
|
|
63
|
+
export * from './BulkDownloadInvoicesInput';
|
|
63
64
|
export * from './BulkMarkBuyerNotificationsAsReadInputDto';
|
|
64
65
|
export * from './BulkMarkNotificationsAsReadInputDto';
|
|
65
66
|
export * from './BulkUpdateDomainsWithFiltersInput';
|