@randock/nameshift-api-client 0.0.443 → 0.0.444
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/MarketingApi.d.ts +14 -1
- package/dist/apis/MarketingApi.js +56 -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 +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/MarketingApi.ts +47 -0
- package/src/models/DomainTransferDetailSellerPayoutInvoiceDto.ts +26 -6
- package/src/models/MarketingDashboardStatsDto.ts +74 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -355,6 +355,7 @@ src/models/MajesticMetrics.ts
|
|
|
355
355
|
src/models/MajesticTopicTrustFlow.ts
|
|
356
356
|
src/models/ManualLeadBuyerDto.ts
|
|
357
357
|
src/models/ManualLeadLeaseToOwnDto.ts
|
|
358
|
+
src/models/MarketingDashboardStatsDto.ts
|
|
358
359
|
src/models/MarketingOrderListItemDto.ts
|
|
359
360
|
src/models/MarketingSalesFiltersDto.ts
|
|
360
361
|
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.444
|
|
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.444 --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
|
+
2485d8baba22b7c4d6edcde6e2b95213018c708030ec9572a6b36b77f757e5c92425f23520ae0041ee7d0e83e7d9a3be
|
|
@@ -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
|
|
@@ -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
|
@@ -319,6 +319,7 @@ export * from './MajesticMetrics';
|
|
|
319
319
|
export * from './MajesticTopicTrustFlow';
|
|
320
320
|
export * from './ManualLeadBuyerDto';
|
|
321
321
|
export * from './ManualLeadLeaseToOwnDto';
|
|
322
|
+
export * from './MarketingDashboardStatsDto';
|
|
322
323
|
export * from './MarketingOrderListItemDto';
|
|
323
324
|
export * from './MarketingSalesFiltersDto';
|
|
324
325
|
export * from './MoneyDecimalDto';
|
package/dist/models/index.js
CHANGED
|
@@ -337,6 +337,7 @@ __exportStar(require("./MajesticMetrics"), exports);
|
|
|
337
337
|
__exportStar(require("./MajesticTopicTrustFlow"), exports);
|
|
338
338
|
__exportStar(require("./ManualLeadBuyerDto"), exports);
|
|
339
339
|
__exportStar(require("./ManualLeadLeaseToOwnDto"), exports);
|
|
340
|
+
__exportStar(require("./MarketingDashboardStatsDto"), exports);
|
|
340
341
|
__exportStar(require("./MarketingOrderListItemDto"), exports);
|
|
341
342
|
__exportStar(require("./MarketingSalesFiltersDto"), exports);
|
|
342
343
|
__exportStar(require("./MoneyDecimalDto"), exports);
|
package/package.json
CHANGED
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
|
|
@@ -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
|
@@ -321,6 +321,7 @@ export * from './MajesticMetrics';
|
|
|
321
321
|
export * from './MajesticTopicTrustFlow';
|
|
322
322
|
export * from './ManualLeadBuyerDto';
|
|
323
323
|
export * from './ManualLeadLeaseToOwnDto';
|
|
324
|
+
export * from './MarketingDashboardStatsDto';
|
|
324
325
|
export * from './MarketingOrderListItemDto';
|
|
325
326
|
export * from './MarketingSalesFiltersDto';
|
|
326
327
|
export * from './MoneyDecimalDto';
|