@randock/nameshift-api-client 0.0.443 → 0.0.445
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 +2 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +15 -1
- package/dist/apis/AdminApi.js +58 -0
- package/dist/apis/MarketingApi.d.ts +14 -1
- package/dist/apis/MarketingApi.js +56 -0
- package/dist/models/ChangeInvoiceStatusInput.d.ts +42 -0
- package/dist/models/ChangeInvoiceStatusInput.js +61 -0
- package/dist/models/DomainTransferDetailSellerPayoutInvoiceDto.d.ts +19 -3
- package/dist/models/DomainTransferDetailSellerPayoutInvoiceDto.js +18 -5
- package/dist/models/MarketingDashboardStatsDto.d.ts +33 -0
- package/dist/models/MarketingDashboardStatsDto.js +52 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +60 -0
- package/src/apis/MarketingApi.ts +47 -0
- package/src/models/ChangeInvoiceStatusInput.ts +79 -0
- package/src/models/DomainTransferDetailSellerPayoutInvoiceDto.ts +26 -6
- package/src/models/MarketingDashboardStatsDto.ts +74 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -162,6 +162,7 @@ src/models/BuyerSubscriptionListItemDtoDomainInformation.ts
|
|
|
162
162
|
src/models/BuyerTaskDetailsDto.ts
|
|
163
163
|
src/models/CaBankAccountDetails.ts
|
|
164
164
|
src/models/ChallengeRewardBalanceDto.ts
|
|
165
|
+
src/models/ChangeInvoiceStatusInput.ts
|
|
165
166
|
src/models/ChangeOrderStatusInput.ts
|
|
166
167
|
src/models/ChangeSubscriptionStatusInput.ts
|
|
167
168
|
src/models/ChangeUserEmailWithOtpInput.ts
|
|
@@ -355,6 +356,7 @@ src/models/MajesticMetrics.ts
|
|
|
355
356
|
src/models/MajesticTopicTrustFlow.ts
|
|
356
357
|
src/models/ManualLeadBuyerDto.ts
|
|
357
358
|
src/models/ManualLeadLeaseToOwnDto.ts
|
|
359
|
+
src/models/MarketingDashboardStatsDto.ts
|
|
358
360
|
src/models/MarketingOrderListItemDto.ts
|
|
359
361
|
src/models/MarketingSalesFiltersDto.ts
|
|
360
362
|
src/models/MoneyDecimalDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.445
|
|
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.445 --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
|
+
b972e9daf76cceacccbb7825d774124b14483923c71389748433c63cb8a6842b4f88948562a297b3f1aff7a23bc1c021
|
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 { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
|
|
13
|
+
import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminDeleteAuctionRequest {
|
|
15
15
|
auctionId: string;
|
|
16
16
|
}
|
|
@@ -30,6 +30,10 @@ export interface AdminApiBulkCommissionActionsRequest {
|
|
|
30
30
|
export interface AdminApiCancelDomainTransferRequest {
|
|
31
31
|
transferId: string;
|
|
32
32
|
}
|
|
33
|
+
export interface AdminApiChangeInvoiceStatusRequest {
|
|
34
|
+
invoiceId: string;
|
|
35
|
+
changeInvoiceStatusInput: ChangeInvoiceStatusInput;
|
|
36
|
+
}
|
|
33
37
|
export interface AdminApiChangeOrderStatusRequest {
|
|
34
38
|
orderId: string;
|
|
35
39
|
changeOrderStatusInput: ChangeOrderStatusInput;
|
|
@@ -335,6 +339,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
335
339
|
* Cancel domain transfer
|
|
336
340
|
*/
|
|
337
341
|
cancelDomainTransfer(requestParameters: AdminApiCancelDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
342
|
+
/**
|
|
343
|
+
* Updates the status of an existing invoice.
|
|
344
|
+
* Change invoice status
|
|
345
|
+
*/
|
|
346
|
+
changeInvoiceStatusRaw(requestParameters: AdminApiChangeInvoiceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
347
|
+
/**
|
|
348
|
+
* Updates the status of an existing invoice.
|
|
349
|
+
* Change invoice status
|
|
350
|
+
*/
|
|
351
|
+
changeInvoiceStatus(requestParameters: AdminApiChangeInvoiceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
338
352
|
/**
|
|
339
353
|
* Updates the invoice status of an existing order.
|
|
340
354
|
* Change order status
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -307,6 +307,64 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
307
307
|
});
|
|
308
308
|
});
|
|
309
309
|
};
|
|
310
|
+
/**
|
|
311
|
+
* Updates the status of an existing invoice.
|
|
312
|
+
* Change invoice status
|
|
313
|
+
*/
|
|
314
|
+
AdminApi.prototype.changeInvoiceStatusRaw = function (requestParameters, initOverrides) {
|
|
315
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
316
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
317
|
+
return __generator(this, function (_a) {
|
|
318
|
+
switch (_a.label) {
|
|
319
|
+
case 0:
|
|
320
|
+
if (requestParameters['invoiceId'] == null) {
|
|
321
|
+
throw new runtime.RequiredError('invoiceId', 'Required parameter "invoiceId" was null or undefined when calling changeInvoiceStatus().');
|
|
322
|
+
}
|
|
323
|
+
if (requestParameters['changeInvoiceStatusInput'] == null) {
|
|
324
|
+
throw new runtime.RequiredError('changeInvoiceStatusInput', 'Required parameter "changeInvoiceStatusInput" was null or undefined when calling changeInvoiceStatus().');
|
|
325
|
+
}
|
|
326
|
+
queryParameters = {};
|
|
327
|
+
headerParameters = {};
|
|
328
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
329
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
330
|
+
token = this.configuration.accessToken;
|
|
331
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
332
|
+
case 1:
|
|
333
|
+
tokenString = _a.sent();
|
|
334
|
+
if (tokenString) {
|
|
335
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
336
|
+
}
|
|
337
|
+
_a.label = 2;
|
|
338
|
+
case 2: return [4 /*yield*/, this.request({
|
|
339
|
+
path: "/admin/invoices/{invoiceId}/status".replace("{".concat("invoiceId", "}"), encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
340
|
+
method: 'PATCH',
|
|
341
|
+
headers: headerParameters,
|
|
342
|
+
query: queryParameters,
|
|
343
|
+
body: (0, index_1.ChangeInvoiceStatusInputToJSON)(requestParameters['changeInvoiceStatusInput']),
|
|
344
|
+
}, initOverrides)];
|
|
345
|
+
case 3:
|
|
346
|
+
response = _a.sent();
|
|
347
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
});
|
|
351
|
+
};
|
|
352
|
+
/**
|
|
353
|
+
* Updates the status of an existing invoice.
|
|
354
|
+
* Change invoice status
|
|
355
|
+
*/
|
|
356
|
+
AdminApi.prototype.changeInvoiceStatus = function (requestParameters, initOverrides) {
|
|
357
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
358
|
+
return __generator(this, function (_a) {
|
|
359
|
+
switch (_a.label) {
|
|
360
|
+
case 0: return [4 /*yield*/, this.changeInvoiceStatusRaw(requestParameters, initOverrides)];
|
|
361
|
+
case 1:
|
|
362
|
+
_a.sent();
|
|
363
|
+
return [2 /*return*/];
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
});
|
|
367
|
+
};
|
|
310
368
|
/**
|
|
311
369
|
* Updates the invoice status of an existing order.
|
|
312
370
|
* Change order status
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GetMarketingSales200Response, MarketingSalesFiltersDto } from '../models/index';
|
|
13
|
+
import type { GetMarketingSales200Response, MarketingDashboardStatsDto, MarketingSalesFiltersDto } from '../models/index';
|
|
14
|
+
export interface MarketingApiGetMarketingDashboardStatsRequest {
|
|
15
|
+
dateRange?: any | null;
|
|
16
|
+
}
|
|
14
17
|
export interface MarketingApiGetMarketingSalesRequest {
|
|
15
18
|
filter?: {
|
|
16
19
|
[key: string]: string;
|
|
@@ -25,6 +28,16 @@ export interface MarketingApiGetMarketingSalesRequest {
|
|
|
25
28
|
*
|
|
26
29
|
*/
|
|
27
30
|
export declare class MarketingApi extends runtime.BaseAPI {
|
|
31
|
+
/**
|
|
32
|
+
* Returns payment methods statistics for the marketing dashboard, optionally filtered by date range.
|
|
33
|
+
* Get marketing dashboard stats
|
|
34
|
+
*/
|
|
35
|
+
getMarketingDashboardStatsRaw(requestParameters: MarketingApiGetMarketingDashboardStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MarketingDashboardStatsDto>>;
|
|
36
|
+
/**
|
|
37
|
+
* Returns payment methods statistics for the marketing dashboard, optionally filtered by date range.
|
|
38
|
+
* Get marketing dashboard stats
|
|
39
|
+
*/
|
|
40
|
+
getMarketingDashboardStats(requestParameters?: MarketingApiGetMarketingDashboardStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MarketingDashboardStatsDto>;
|
|
28
41
|
/**
|
|
29
42
|
* Lists completed orders for marketing and analytics.
|
|
30
43
|
* List marketing sales orders
|
|
@@ -75,6 +75,62 @@ var MarketingApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function MarketingApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Returns payment methods statistics for the marketing dashboard, optionally filtered by date range.
|
|
80
|
+
* Get marketing dashboard stats
|
|
81
|
+
*/
|
|
82
|
+
MarketingApi.prototype.getMarketingDashboardStatsRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
switch (_a.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
queryParameters = {};
|
|
89
|
+
if (requestParameters['dateRange'] != null) {
|
|
90
|
+
queryParameters['dateRange'] = requestParameters['dateRange'];
|
|
91
|
+
}
|
|
92
|
+
headerParameters = {};
|
|
93
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
94
|
+
token = this.configuration.accessToken;
|
|
95
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
96
|
+
case 1:
|
|
97
|
+
tokenString = _a.sent();
|
|
98
|
+
if (tokenString) {
|
|
99
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
100
|
+
}
|
|
101
|
+
_a.label = 2;
|
|
102
|
+
case 2: return [4 /*yield*/, this.request({
|
|
103
|
+
path: "/marketing/stats/dashboard",
|
|
104
|
+
method: 'GET',
|
|
105
|
+
headers: headerParameters,
|
|
106
|
+
query: queryParameters,
|
|
107
|
+
}, initOverrides)];
|
|
108
|
+
case 3:
|
|
109
|
+
response = _a.sent();
|
|
110
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.MarketingDashboardStatsDtoFromJSON)(jsonValue); })];
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Returns payment methods statistics for the marketing dashboard, optionally filtered by date range.
|
|
117
|
+
* Get marketing dashboard stats
|
|
118
|
+
*/
|
|
119
|
+
MarketingApi.prototype.getMarketingDashboardStats = function () {
|
|
120
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
121
|
+
var response;
|
|
122
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
123
|
+
return __generator(this, function (_a) {
|
|
124
|
+
switch (_a.label) {
|
|
125
|
+
case 0: return [4 /*yield*/, this.getMarketingDashboardStatsRaw(requestParameters, initOverrides)];
|
|
126
|
+
case 1:
|
|
127
|
+
response = _a.sent();
|
|
128
|
+
return [4 /*yield*/, response.value()];
|
|
129
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
};
|
|
78
134
|
/**
|
|
79
135
|
* Lists completed orders for marketing and analytics.
|
|
80
136
|
* List marketing sales orders
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 ChangeInvoiceStatusInput
|
|
16
|
+
*/
|
|
17
|
+
export interface ChangeInvoiceStatusInput {
|
|
18
|
+
/**
|
|
19
|
+
* New status to apply to the invoice
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ChangeInvoiceStatusInput
|
|
22
|
+
*/
|
|
23
|
+
status: ChangeInvoiceStatusInputStatusEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const ChangeInvoiceStatusInputStatusEnum: {
|
|
29
|
+
readonly DRAFT: "draft";
|
|
30
|
+
readonly PENDING_PAYMENT: "pending_payment";
|
|
31
|
+
readonly PAID: "paid";
|
|
32
|
+
readonly CANCELLED: "cancelled";
|
|
33
|
+
};
|
|
34
|
+
export type ChangeInvoiceStatusInputStatusEnum = typeof ChangeInvoiceStatusInputStatusEnum[keyof typeof ChangeInvoiceStatusInputStatusEnum];
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the ChangeInvoiceStatusInput interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfChangeInvoiceStatusInput(value: object): value is ChangeInvoiceStatusInput;
|
|
39
|
+
export declare function ChangeInvoiceStatusInputFromJSON(json: any): ChangeInvoiceStatusInput;
|
|
40
|
+
export declare function ChangeInvoiceStatusInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeInvoiceStatusInput;
|
|
41
|
+
export declare function ChangeInvoiceStatusInputToJSON(json: any): ChangeInvoiceStatusInput;
|
|
42
|
+
export declare function ChangeInvoiceStatusInputToJSONTyped(value?: ChangeInvoiceStatusInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.ChangeInvoiceStatusInputStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfChangeInvoiceStatusInput = instanceOfChangeInvoiceStatusInput;
|
|
18
|
+
exports.ChangeInvoiceStatusInputFromJSON = ChangeInvoiceStatusInputFromJSON;
|
|
19
|
+
exports.ChangeInvoiceStatusInputFromJSONTyped = ChangeInvoiceStatusInputFromJSONTyped;
|
|
20
|
+
exports.ChangeInvoiceStatusInputToJSON = ChangeInvoiceStatusInputToJSON;
|
|
21
|
+
exports.ChangeInvoiceStatusInputToJSONTyped = ChangeInvoiceStatusInputToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ChangeInvoiceStatusInputStatusEnum = {
|
|
26
|
+
DRAFT: 'draft',
|
|
27
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
28
|
+
PAID: 'paid',
|
|
29
|
+
CANCELLED: 'cancelled'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ChangeInvoiceStatusInput interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfChangeInvoiceStatusInput(value) {
|
|
35
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function ChangeInvoiceStatusInputFromJSON(json) {
|
|
40
|
+
return ChangeInvoiceStatusInputFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ChangeInvoiceStatusInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'status': json['status'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function ChangeInvoiceStatusInputToJSON(json) {
|
|
51
|
+
return ChangeInvoiceStatusInputToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ChangeInvoiceStatusInputToJSONTyped(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
|
+
}
|
|
@@ -28,17 +28,33 @@ export interface DomainTransferDetailSellerPayoutInvoiceDto {
|
|
|
28
28
|
* @memberof DomainTransferDetailSellerPayoutInvoiceDto
|
|
29
29
|
*/
|
|
30
30
|
price: MoneyDto;
|
|
31
|
+
/**
|
|
32
|
+
* The seller payout invoice status.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof DomainTransferDetailSellerPayoutInvoiceDto
|
|
35
|
+
*/
|
|
36
|
+
invoiceStatus: DomainTransferDetailSellerPayoutInvoiceDtoInvoiceStatusEnum;
|
|
31
37
|
/**
|
|
32
38
|
* The seller payout invoice transaction status.
|
|
33
39
|
* @type {string}
|
|
34
40
|
* @memberof DomainTransferDetailSellerPayoutInvoiceDto
|
|
35
41
|
*/
|
|
36
|
-
|
|
42
|
+
status: DomainTransferDetailSellerPayoutInvoiceDtoStatusEnum;
|
|
37
43
|
}
|
|
38
44
|
/**
|
|
39
45
|
* @export
|
|
40
46
|
*/
|
|
41
|
-
export declare const
|
|
47
|
+
export declare const DomainTransferDetailSellerPayoutInvoiceDtoInvoiceStatusEnum: {
|
|
48
|
+
readonly DRAFT: "draft";
|
|
49
|
+
readonly PENDING_PAYMENT: "pending_payment";
|
|
50
|
+
readonly PAID: "paid";
|
|
51
|
+
readonly CANCELLED: "cancelled";
|
|
52
|
+
};
|
|
53
|
+
export type DomainTransferDetailSellerPayoutInvoiceDtoInvoiceStatusEnum = typeof DomainTransferDetailSellerPayoutInvoiceDtoInvoiceStatusEnum[keyof typeof DomainTransferDetailSellerPayoutInvoiceDtoInvoiceStatusEnum];
|
|
54
|
+
/**
|
|
55
|
+
* @export
|
|
56
|
+
*/
|
|
57
|
+
export declare const DomainTransferDetailSellerPayoutInvoiceDtoStatusEnum: {
|
|
42
58
|
readonly OPEN: "open";
|
|
43
59
|
readonly PAID: "paid";
|
|
44
60
|
readonly PENDING: "pending";
|
|
@@ -46,7 +62,7 @@ export declare const DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatus
|
|
|
46
62
|
readonly CANCELLED: "cancelled";
|
|
47
63
|
readonly REFUNDED: "refunded";
|
|
48
64
|
};
|
|
49
|
-
export type
|
|
65
|
+
export type DomainTransferDetailSellerPayoutInvoiceDtoStatusEnum = typeof DomainTransferDetailSellerPayoutInvoiceDtoStatusEnum[keyof typeof DomainTransferDetailSellerPayoutInvoiceDtoStatusEnum];
|
|
50
66
|
/**
|
|
51
67
|
* Check if a given object implements the DomainTransferDetailSellerPayoutInvoiceDto interface.
|
|
52
68
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.DomainTransferDetailSellerPayoutInvoiceDtoStatusEnum = exports.DomainTransferDetailSellerPayoutInvoiceDtoInvoiceStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfDomainTransferDetailSellerPayoutInvoiceDto = instanceOfDomainTransferDetailSellerPayoutInvoiceDto;
|
|
18
18
|
exports.DomainTransferDetailSellerPayoutInvoiceDtoFromJSON = DomainTransferDetailSellerPayoutInvoiceDtoFromJSON;
|
|
19
19
|
exports.DomainTransferDetailSellerPayoutInvoiceDtoFromJSONTyped = DomainTransferDetailSellerPayoutInvoiceDtoFromJSONTyped;
|
|
@@ -23,7 +23,16 @@ var MoneyDto_1 = require("./MoneyDto");
|
|
|
23
23
|
/**
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
26
|
-
exports.
|
|
26
|
+
exports.DomainTransferDetailSellerPayoutInvoiceDtoInvoiceStatusEnum = {
|
|
27
|
+
DRAFT: 'draft',
|
|
28
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
29
|
+
PAID: 'paid',
|
|
30
|
+
CANCELLED: 'cancelled'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.DomainTransferDetailSellerPayoutInvoiceDtoStatusEnum = {
|
|
27
36
|
OPEN: 'open',
|
|
28
37
|
PAID: 'paid',
|
|
29
38
|
PENDING: 'pending',
|
|
@@ -39,7 +48,9 @@ function instanceOfDomainTransferDetailSellerPayoutInvoiceDto(value) {
|
|
|
39
48
|
return false;
|
|
40
49
|
if (!('price' in value) || value['price'] === undefined)
|
|
41
50
|
return false;
|
|
42
|
-
if (!('
|
|
51
|
+
if (!('invoiceStatus' in value) || value['invoiceStatus'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
43
54
|
return false;
|
|
44
55
|
return true;
|
|
45
56
|
}
|
|
@@ -53,7 +64,8 @@ function DomainTransferDetailSellerPayoutInvoiceDtoFromJSONTyped(json, ignoreDis
|
|
|
53
64
|
return {
|
|
54
65
|
'id': json['id'],
|
|
55
66
|
'price': (0, MoneyDto_1.MoneyDtoFromJSON)(json['price']),
|
|
56
|
-
'
|
|
67
|
+
'invoiceStatus': json['invoiceStatus'],
|
|
68
|
+
'status': json['status'],
|
|
57
69
|
};
|
|
58
70
|
}
|
|
59
71
|
function DomainTransferDetailSellerPayoutInvoiceDtoToJSON(json) {
|
|
@@ -67,6 +79,7 @@ function DomainTransferDetailSellerPayoutInvoiceDtoToJSONTyped(value, ignoreDisc
|
|
|
67
79
|
return {
|
|
68
80
|
'id': value['id'],
|
|
69
81
|
'price': (0, MoneyDto_1.MoneyDtoToJSON)(value['price']),
|
|
70
|
-
'
|
|
82
|
+
'invoiceStatus': value['invoiceStatus'],
|
|
83
|
+
'status': value['status'],
|
|
71
84
|
};
|
|
72
85
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 { PaymentMethodsStatsDto } from './PaymentMethodsStatsDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MarketingDashboardStatsDto
|
|
17
|
+
*/
|
|
18
|
+
export interface MarketingDashboardStatsDto {
|
|
19
|
+
/**
|
|
20
|
+
* Payment methods statistics
|
|
21
|
+
* @type {PaymentMethodsStatsDto}
|
|
22
|
+
* @memberof MarketingDashboardStatsDto
|
|
23
|
+
*/
|
|
24
|
+
paymentMethods: PaymentMethodsStatsDto;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the MarketingDashboardStatsDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfMarketingDashboardStatsDto(value: object): value is MarketingDashboardStatsDto;
|
|
30
|
+
export declare function MarketingDashboardStatsDtoFromJSON(json: any): MarketingDashboardStatsDto;
|
|
31
|
+
export declare function MarketingDashboardStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketingDashboardStatsDto;
|
|
32
|
+
export declare function MarketingDashboardStatsDtoToJSON(json: any): MarketingDashboardStatsDto;
|
|
33
|
+
export declare function MarketingDashboardStatsDtoToJSONTyped(value?: MarketingDashboardStatsDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.instanceOfMarketingDashboardStatsDto = instanceOfMarketingDashboardStatsDto;
|
|
17
|
+
exports.MarketingDashboardStatsDtoFromJSON = MarketingDashboardStatsDtoFromJSON;
|
|
18
|
+
exports.MarketingDashboardStatsDtoFromJSONTyped = MarketingDashboardStatsDtoFromJSONTyped;
|
|
19
|
+
exports.MarketingDashboardStatsDtoToJSON = MarketingDashboardStatsDtoToJSON;
|
|
20
|
+
exports.MarketingDashboardStatsDtoToJSONTyped = MarketingDashboardStatsDtoToJSONTyped;
|
|
21
|
+
var PaymentMethodsStatsDto_1 = require("./PaymentMethodsStatsDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the MarketingDashboardStatsDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfMarketingDashboardStatsDto(value) {
|
|
26
|
+
if (!('paymentMethods' in value) || value['paymentMethods'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function MarketingDashboardStatsDtoFromJSON(json) {
|
|
31
|
+
return MarketingDashboardStatsDtoFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function MarketingDashboardStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'paymentMethods': (0, PaymentMethodsStatsDto_1.PaymentMethodsStatsDtoFromJSON)(json['paymentMethods']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function MarketingDashboardStatsDtoToJSON(json) {
|
|
42
|
+
return MarketingDashboardStatsDtoToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function MarketingDashboardStatsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'paymentMethods': (0, PaymentMethodsStatsDto_1.PaymentMethodsStatsDtoToJSON)(value['paymentMethods']),
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -126,6 +126,7 @@ export * from './BuyerSubscriptionListItemDtoDomainInformation';
|
|
|
126
126
|
export * from './BuyerTaskDetailsDto';
|
|
127
127
|
export * from './CaBankAccountDetails';
|
|
128
128
|
export * from './ChallengeRewardBalanceDto';
|
|
129
|
+
export * from './ChangeInvoiceStatusInput';
|
|
129
130
|
export * from './ChangeOrderStatusInput';
|
|
130
131
|
export * from './ChangeSubscriptionStatusInput';
|
|
131
132
|
export * from './ChangeUserEmailWithOtpInput';
|
|
@@ -319,6 +320,7 @@ export * from './MajesticMetrics';
|
|
|
319
320
|
export * from './MajesticTopicTrustFlow';
|
|
320
321
|
export * from './ManualLeadBuyerDto';
|
|
321
322
|
export * from './ManualLeadLeaseToOwnDto';
|
|
323
|
+
export * from './MarketingDashboardStatsDto';
|
|
322
324
|
export * from './MarketingOrderListItemDto';
|
|
323
325
|
export * from './MarketingSalesFiltersDto';
|
|
324
326
|
export * from './MoneyDecimalDto';
|
package/dist/models/index.js
CHANGED
|
@@ -144,6 +144,7 @@ __exportStar(require("./BuyerSubscriptionListItemDtoDomainInformation"), exports
|
|
|
144
144
|
__exportStar(require("./BuyerTaskDetailsDto"), exports);
|
|
145
145
|
__exportStar(require("./CaBankAccountDetails"), exports);
|
|
146
146
|
__exportStar(require("./ChallengeRewardBalanceDto"), exports);
|
|
147
|
+
__exportStar(require("./ChangeInvoiceStatusInput"), exports);
|
|
147
148
|
__exportStar(require("./ChangeOrderStatusInput"), exports);
|
|
148
149
|
__exportStar(require("./ChangeSubscriptionStatusInput"), exports);
|
|
149
150
|
__exportStar(require("./ChangeUserEmailWithOtpInput"), exports);
|
|
@@ -337,6 +338,7 @@ __exportStar(require("./MajesticMetrics"), exports);
|
|
|
337
338
|
__exportStar(require("./MajesticTopicTrustFlow"), exports);
|
|
338
339
|
__exportStar(require("./ManualLeadBuyerDto"), exports);
|
|
339
340
|
__exportStar(require("./ManualLeadLeaseToOwnDto"), exports);
|
|
341
|
+
__exportStar(require("./MarketingDashboardStatsDto"), exports);
|
|
340
342
|
__exportStar(require("./MarketingOrderListItemDto"), exports);
|
|
341
343
|
__exportStar(require("./MarketingSalesFiltersDto"), exports);
|
|
342
344
|
__exportStar(require("./MoneyDecimalDto"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -27,6 +27,7 @@ import type {
|
|
|
27
27
|
AdminGetAllDomainTransfers200Response,
|
|
28
28
|
BadRequestException,
|
|
29
29
|
BulkCommissionActionsInput,
|
|
30
|
+
ChangeInvoiceStatusInput,
|
|
30
31
|
ChangeOrderStatusInput,
|
|
31
32
|
ChangeSubscriptionStatusInput,
|
|
32
33
|
CommissionListDto,
|
|
@@ -89,6 +90,8 @@ import {
|
|
|
89
90
|
BadRequestExceptionToJSON,
|
|
90
91
|
BulkCommissionActionsInputFromJSON,
|
|
91
92
|
BulkCommissionActionsInputToJSON,
|
|
93
|
+
ChangeInvoiceStatusInputFromJSON,
|
|
94
|
+
ChangeInvoiceStatusInputToJSON,
|
|
92
95
|
ChangeOrderStatusInputFromJSON,
|
|
93
96
|
ChangeOrderStatusInputToJSON,
|
|
94
97
|
ChangeSubscriptionStatusInputFromJSON,
|
|
@@ -184,6 +187,11 @@ export interface AdminApiCancelDomainTransferRequest {
|
|
|
184
187
|
transferId: string;
|
|
185
188
|
}
|
|
186
189
|
|
|
190
|
+
export interface AdminApiChangeInvoiceStatusRequest {
|
|
191
|
+
invoiceId: string;
|
|
192
|
+
changeInvoiceStatusInput: ChangeInvoiceStatusInput;
|
|
193
|
+
}
|
|
194
|
+
|
|
187
195
|
export interface AdminApiChangeOrderStatusRequest {
|
|
188
196
|
orderId: string;
|
|
189
197
|
changeOrderStatusInput: ChangeOrderStatusInput;
|
|
@@ -672,6 +680,58 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
672
680
|
await this.cancelDomainTransferRaw(requestParameters, initOverrides);
|
|
673
681
|
}
|
|
674
682
|
|
|
683
|
+
/**
|
|
684
|
+
* Updates the status of an existing invoice.
|
|
685
|
+
* Change invoice status
|
|
686
|
+
*/
|
|
687
|
+
async changeInvoiceStatusRaw(requestParameters: AdminApiChangeInvoiceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
688
|
+
if (requestParameters['invoiceId'] == null) {
|
|
689
|
+
throw new runtime.RequiredError(
|
|
690
|
+
'invoiceId',
|
|
691
|
+
'Required parameter "invoiceId" was null or undefined when calling changeInvoiceStatus().'
|
|
692
|
+
);
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
if (requestParameters['changeInvoiceStatusInput'] == null) {
|
|
696
|
+
throw new runtime.RequiredError(
|
|
697
|
+
'changeInvoiceStatusInput',
|
|
698
|
+
'Required parameter "changeInvoiceStatusInput" was null or undefined when calling changeInvoiceStatus().'
|
|
699
|
+
);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
const queryParameters: any = {};
|
|
703
|
+
|
|
704
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
705
|
+
|
|
706
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
707
|
+
|
|
708
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
709
|
+
const token = this.configuration.accessToken;
|
|
710
|
+
const tokenString = await token("bearer", []);
|
|
711
|
+
|
|
712
|
+
if (tokenString) {
|
|
713
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
const response = await this.request({
|
|
717
|
+
path: `/admin/invoices/{invoiceId}/status`.replace(`{${"invoiceId"}}`, encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
718
|
+
method: 'PATCH',
|
|
719
|
+
headers: headerParameters,
|
|
720
|
+
query: queryParameters,
|
|
721
|
+
body: ChangeInvoiceStatusInputToJSON(requestParameters['changeInvoiceStatusInput']),
|
|
722
|
+
}, initOverrides);
|
|
723
|
+
|
|
724
|
+
return new runtime.VoidApiResponse(response);
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Updates the status of an existing invoice.
|
|
729
|
+
* Change invoice status
|
|
730
|
+
*/
|
|
731
|
+
async changeInvoiceStatus(requestParameters: AdminApiChangeInvoiceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
732
|
+
await this.changeInvoiceStatusRaw(requestParameters, initOverrides);
|
|
733
|
+
}
|
|
734
|
+
|
|
675
735
|
/**
|
|
676
736
|
* Updates the invoice status of an existing order.
|
|
677
737
|
* Change order status
|
package/src/apis/MarketingApi.ts
CHANGED
|
@@ -16,18 +16,25 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
GetMarketingSales200Response,
|
|
19
|
+
MarketingDashboardStatsDto,
|
|
19
20
|
MarketingSalesFiltersDto,
|
|
20
21
|
ValidationException,
|
|
21
22
|
} from '../models/index';
|
|
22
23
|
import {
|
|
23
24
|
GetMarketingSales200ResponseFromJSON,
|
|
24
25
|
GetMarketingSales200ResponseToJSON,
|
|
26
|
+
MarketingDashboardStatsDtoFromJSON,
|
|
27
|
+
MarketingDashboardStatsDtoToJSON,
|
|
25
28
|
MarketingSalesFiltersDtoFromJSON,
|
|
26
29
|
MarketingSalesFiltersDtoToJSON,
|
|
27
30
|
ValidationExceptionFromJSON,
|
|
28
31
|
ValidationExceptionToJSON,
|
|
29
32
|
} from '../models/index';
|
|
30
33
|
|
|
34
|
+
export interface MarketingApiGetMarketingDashboardStatsRequest {
|
|
35
|
+
dateRange?: any | null;
|
|
36
|
+
}
|
|
37
|
+
|
|
31
38
|
export interface MarketingApiGetMarketingSalesRequest {
|
|
32
39
|
filter?: { [key: string]: string; };
|
|
33
40
|
page?: number;
|
|
@@ -42,6 +49,46 @@ export interface MarketingApiGetMarketingSalesRequest {
|
|
|
42
49
|
*/
|
|
43
50
|
export class MarketingApi extends runtime.BaseAPI {
|
|
44
51
|
|
|
52
|
+
/**
|
|
53
|
+
* Returns payment methods statistics for the marketing dashboard, optionally filtered by date range.
|
|
54
|
+
* Get marketing dashboard stats
|
|
55
|
+
*/
|
|
56
|
+
async getMarketingDashboardStatsRaw(requestParameters: MarketingApiGetMarketingDashboardStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MarketingDashboardStatsDto>> {
|
|
57
|
+
const queryParameters: any = {};
|
|
58
|
+
|
|
59
|
+
if (requestParameters['dateRange'] != null) {
|
|
60
|
+
queryParameters['dateRange'] = requestParameters['dateRange'];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
64
|
+
|
|
65
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
66
|
+
const token = this.configuration.accessToken;
|
|
67
|
+
const tokenString = await token("bearer", []);
|
|
68
|
+
|
|
69
|
+
if (tokenString) {
|
|
70
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: `/marketing/stats/dashboard`,
|
|
75
|
+
method: 'GET',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
}, initOverrides);
|
|
79
|
+
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MarketingDashboardStatsDtoFromJSON(jsonValue));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Returns payment methods statistics for the marketing dashboard, optionally filtered by date range.
|
|
85
|
+
* Get marketing dashboard stats
|
|
86
|
+
*/
|
|
87
|
+
async getMarketingDashboardStats(requestParameters: MarketingApiGetMarketingDashboardStatsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MarketingDashboardStatsDto> {
|
|
88
|
+
const response = await this.getMarketingDashboardStatsRaw(requestParameters, initOverrides);
|
|
89
|
+
return await response.value();
|
|
90
|
+
}
|
|
91
|
+
|
|
45
92
|
/**
|
|
46
93
|
* Lists completed orders for marketing and analytics.
|
|
47
94
|
* List marketing sales orders
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 ChangeInvoiceStatusInput
|
|
20
|
+
*/
|
|
21
|
+
export interface ChangeInvoiceStatusInput {
|
|
22
|
+
/**
|
|
23
|
+
* New status to apply to the invoice
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ChangeInvoiceStatusInput
|
|
26
|
+
*/
|
|
27
|
+
status: ChangeInvoiceStatusInputStatusEnum;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export const ChangeInvoiceStatusInputStatusEnum = {
|
|
35
|
+
DRAFT: 'draft',
|
|
36
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
37
|
+
PAID: 'paid',
|
|
38
|
+
CANCELLED: 'cancelled'
|
|
39
|
+
} as const;
|
|
40
|
+
export type ChangeInvoiceStatusInputStatusEnum = typeof ChangeInvoiceStatusInputStatusEnum[keyof typeof ChangeInvoiceStatusInputStatusEnum];
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ChangeInvoiceStatusInput interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfChangeInvoiceStatusInput(value: object): value is ChangeInvoiceStatusInput {
|
|
47
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ChangeInvoiceStatusInputFromJSON(json: any): ChangeInvoiceStatusInput {
|
|
52
|
+
return ChangeInvoiceStatusInputFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ChangeInvoiceStatusInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeInvoiceStatusInput {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'status': json['status'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ChangeInvoiceStatusInputToJSON(json: any): ChangeInvoiceStatusInput {
|
|
66
|
+
return ChangeInvoiceStatusInputToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ChangeInvoiceStatusInputToJSONTyped(value?: ChangeInvoiceStatusInput | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'status': value['status'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -39,19 +39,36 @@ export interface DomainTransferDetailSellerPayoutInvoiceDto {
|
|
|
39
39
|
* @memberof DomainTransferDetailSellerPayoutInvoiceDto
|
|
40
40
|
*/
|
|
41
41
|
price: MoneyDto;
|
|
42
|
+
/**
|
|
43
|
+
* The seller payout invoice status.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof DomainTransferDetailSellerPayoutInvoiceDto
|
|
46
|
+
*/
|
|
47
|
+
invoiceStatus: DomainTransferDetailSellerPayoutInvoiceDtoInvoiceStatusEnum;
|
|
42
48
|
/**
|
|
43
49
|
* The seller payout invoice transaction status.
|
|
44
50
|
* @type {string}
|
|
45
51
|
* @memberof DomainTransferDetailSellerPayoutInvoiceDto
|
|
46
52
|
*/
|
|
47
|
-
|
|
53
|
+
status: DomainTransferDetailSellerPayoutInvoiceDtoStatusEnum;
|
|
48
54
|
}
|
|
49
55
|
|
|
50
56
|
|
|
51
57
|
/**
|
|
52
58
|
* @export
|
|
53
59
|
*/
|
|
54
|
-
export const
|
|
60
|
+
export const DomainTransferDetailSellerPayoutInvoiceDtoInvoiceStatusEnum = {
|
|
61
|
+
DRAFT: 'draft',
|
|
62
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
63
|
+
PAID: 'paid',
|
|
64
|
+
CANCELLED: 'cancelled'
|
|
65
|
+
} as const;
|
|
66
|
+
export type DomainTransferDetailSellerPayoutInvoiceDtoInvoiceStatusEnum = typeof DomainTransferDetailSellerPayoutInvoiceDtoInvoiceStatusEnum[keyof typeof DomainTransferDetailSellerPayoutInvoiceDtoInvoiceStatusEnum];
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export const DomainTransferDetailSellerPayoutInvoiceDtoStatusEnum = {
|
|
55
72
|
OPEN: 'open',
|
|
56
73
|
PAID: 'paid',
|
|
57
74
|
PENDING: 'pending',
|
|
@@ -59,7 +76,7 @@ export const DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum = {
|
|
|
59
76
|
CANCELLED: 'cancelled',
|
|
60
77
|
REFUNDED: 'refunded'
|
|
61
78
|
} as const;
|
|
62
|
-
export type
|
|
79
|
+
export type DomainTransferDetailSellerPayoutInvoiceDtoStatusEnum = typeof DomainTransferDetailSellerPayoutInvoiceDtoStatusEnum[keyof typeof DomainTransferDetailSellerPayoutInvoiceDtoStatusEnum];
|
|
63
80
|
|
|
64
81
|
|
|
65
82
|
/**
|
|
@@ -68,7 +85,8 @@ export type DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum = ty
|
|
|
68
85
|
export function instanceOfDomainTransferDetailSellerPayoutInvoiceDto(value: object): value is DomainTransferDetailSellerPayoutInvoiceDto {
|
|
69
86
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
70
87
|
if (!('price' in value) || value['price'] === undefined) return false;
|
|
71
|
-
if (!('
|
|
88
|
+
if (!('invoiceStatus' in value) || value['invoiceStatus'] === undefined) return false;
|
|
89
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
72
90
|
return true;
|
|
73
91
|
}
|
|
74
92
|
|
|
@@ -84,7 +102,8 @@ export function DomainTransferDetailSellerPayoutInvoiceDtoFromJSONTyped(json: an
|
|
|
84
102
|
|
|
85
103
|
'id': json['id'],
|
|
86
104
|
'price': MoneyDtoFromJSON(json['price']),
|
|
87
|
-
'
|
|
105
|
+
'invoiceStatus': json['invoiceStatus'],
|
|
106
|
+
'status': json['status'],
|
|
88
107
|
};
|
|
89
108
|
}
|
|
90
109
|
|
|
@@ -101,7 +120,8 @@ export function DomainTransferDetailSellerPayoutInvoiceDtoToJSONTyped(value?: Do
|
|
|
101
120
|
|
|
102
121
|
'id': value['id'],
|
|
103
122
|
'price': MoneyDtoToJSON(value['price']),
|
|
104
|
-
'
|
|
123
|
+
'invoiceStatus': value['invoiceStatus'],
|
|
124
|
+
'status': value['status'],
|
|
105
125
|
};
|
|
106
126
|
}
|
|
107
127
|
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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
|
+
import type { PaymentMethodsStatsDto } from './PaymentMethodsStatsDto';
|
|
17
|
+
import {
|
|
18
|
+
PaymentMethodsStatsDtoFromJSON,
|
|
19
|
+
PaymentMethodsStatsDtoFromJSONTyped,
|
|
20
|
+
PaymentMethodsStatsDtoToJSON,
|
|
21
|
+
PaymentMethodsStatsDtoToJSONTyped,
|
|
22
|
+
} from './PaymentMethodsStatsDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface MarketingDashboardStatsDto
|
|
28
|
+
*/
|
|
29
|
+
export interface MarketingDashboardStatsDto {
|
|
30
|
+
/**
|
|
31
|
+
* Payment methods statistics
|
|
32
|
+
* @type {PaymentMethodsStatsDto}
|
|
33
|
+
* @memberof MarketingDashboardStatsDto
|
|
34
|
+
*/
|
|
35
|
+
paymentMethods: PaymentMethodsStatsDto;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the MarketingDashboardStatsDto interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfMarketingDashboardStatsDto(value: object): value is MarketingDashboardStatsDto {
|
|
42
|
+
if (!('paymentMethods' in value) || value['paymentMethods'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function MarketingDashboardStatsDtoFromJSON(json: any): MarketingDashboardStatsDto {
|
|
47
|
+
return MarketingDashboardStatsDtoFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function MarketingDashboardStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketingDashboardStatsDto {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'paymentMethods': PaymentMethodsStatsDtoFromJSON(json['paymentMethods']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function MarketingDashboardStatsDtoToJSON(json: any): MarketingDashboardStatsDto {
|
|
61
|
+
return MarketingDashboardStatsDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function MarketingDashboardStatsDtoToJSONTyped(value?: MarketingDashboardStatsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'paymentMethods': PaymentMethodsStatsDtoToJSON(value['paymentMethods']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -128,6 +128,7 @@ export * from './BuyerSubscriptionListItemDtoDomainInformation';
|
|
|
128
128
|
export * from './BuyerTaskDetailsDto';
|
|
129
129
|
export * from './CaBankAccountDetails';
|
|
130
130
|
export * from './ChallengeRewardBalanceDto';
|
|
131
|
+
export * from './ChangeInvoiceStatusInput';
|
|
131
132
|
export * from './ChangeOrderStatusInput';
|
|
132
133
|
export * from './ChangeSubscriptionStatusInput';
|
|
133
134
|
export * from './ChangeUserEmailWithOtpInput';
|
|
@@ -321,6 +322,7 @@ export * from './MajesticMetrics';
|
|
|
321
322
|
export * from './MajesticTopicTrustFlow';
|
|
322
323
|
export * from './ManualLeadBuyerDto';
|
|
323
324
|
export * from './ManualLeadLeaseToOwnDto';
|
|
325
|
+
export * from './MarketingDashboardStatsDto';
|
|
324
326
|
export * from './MarketingOrderListItemDto';
|
|
325
327
|
export * from './MarketingSalesFiltersDto';
|
|
326
328
|
export * from './MoneyDecimalDto';
|