@randock/nameshift-api-client 0.0.97 → 0.0.99

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.
Files changed (51) hide show
  1. package/.openapi-generator/FILES +4 -3
  2. package/README.md +3 -3
  3. package/dist/apis/OrdersPublicApi.d.ts +1 -12
  4. package/dist/apis/OrdersPublicApi.js +1 -45
  5. package/dist/apis/index.d.ts +0 -1
  6. package/dist/apis/index.js +0 -1
  7. package/dist/models/AccountDto.d.ts +3 -8
  8. package/dist/models/AccountDto.js +4 -7
  9. package/dist/models/AccountMetricsDto.d.ts +49 -0
  10. package/dist/models/AccountMetricsDto.js +58 -0
  11. package/dist/models/CreateOrderInput.d.ts +34 -3
  12. package/dist/models/CreateOrderInput.js +16 -11
  13. package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +3 -8
  14. package/dist/models/IntersectionAccountDtoWithSettingsDto.js +4 -7
  15. package/dist/models/OrderCompanyInfoDto.d.ts +38 -0
  16. package/dist/models/OrderCompanyInfoDto.js +51 -0
  17. package/dist/models/OrderCompanyTaxIdDto.d.ts +43 -0
  18. package/dist/models/OrderCompanyTaxIdDto.js +54 -0
  19. package/dist/models/OrderDto.d.ts +6 -4
  20. package/dist/models/OrderDto.js +8 -6
  21. package/dist/models/OrderListItemDtoBuyerInformation.d.ts +4 -9
  22. package/dist/models/OrderListItemDtoBuyerInformation.js +4 -7
  23. package/dist/models/OrderTransactionDto.d.ts +50 -0
  24. package/dist/models/OrderTransactionDto.js +61 -0
  25. package/dist/models/UpdateOrderInput.d.ts +34 -3
  26. package/dist/models/UpdateOrderInput.js +16 -11
  27. package/dist/models/index.d.ts +4 -2
  28. package/dist/models/index.js +4 -2
  29. package/package.json +1 -1
  30. package/src/apis/OrdersPublicApi.ts +1 -41
  31. package/src/apis/index.ts +0 -1
  32. package/src/models/AccountDto.ts +11 -14
  33. package/src/models/AccountMetricsDto.ts +88 -0
  34. package/src/models/CreateOrderInput.ts +55 -11
  35. package/src/models/IntersectionAccountDtoWithSettingsDto.ts +11 -14
  36. package/src/models/OrderCompanyInfoDto.ts +77 -0
  37. package/src/models/OrderCompanyTaxIdDto.ts +79 -0
  38. package/src/models/OrderDto.ts +22 -10
  39. package/src/models/OrderListItemDtoBuyerInformation.ts +12 -15
  40. package/src/models/OrderTransactionDto.ts +89 -0
  41. package/src/models/UpdateOrderInput.ts +55 -11
  42. package/src/models/index.ts +4 -2
  43. package/dist/apis/DashboardApi.d.ts +0 -26
  44. package/dist/apis/DashboardApi.js +0 -130
  45. package/dist/models/DashboardStatsDto.d.ts +0 -43
  46. package/dist/models/DashboardStatsDto.js +0 -54
  47. package/dist/models/OrderCheckoutSessionDto.d.ts +0 -31
  48. package/dist/models/OrderCheckoutSessionDto.js +0 -46
  49. package/src/apis/DashboardApi.ts +0 -67
  50. package/src/models/DashboardStatsDto.ts +0 -79
  51. package/src/models/OrderCheckoutSessionDto.ts +0 -61
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { OrderCompanyInfoDto } from './OrderCompanyInfoDto';
17
+ import {
18
+ OrderCompanyInfoDtoFromJSON,
19
+ OrderCompanyInfoDtoFromJSONTyped,
20
+ OrderCompanyInfoDtoToJSON,
21
+ } from './OrderCompanyInfoDto';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -24,28 +31,55 @@ export interface UpdateOrderInput {
24
31
  * @type {string}
25
32
  * @memberof UpdateOrderInput
26
33
  */
27
- firstname: string;
34
+ email?: string;
28
35
  /**
29
36
  *
30
37
  * @type {string}
31
38
  * @memberof UpdateOrderInput
32
39
  */
33
- lastname: string;
40
+ addressCountryCode?: string;
34
41
  /**
35
42
  *
36
43
  * @type {string}
37
44
  * @memberof UpdateOrderInput
38
45
  */
39
- email: string;
46
+ addressStateCode?: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof UpdateOrderInput
51
+ */
52
+ addressLine1?: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof UpdateOrderInput
57
+ */
58
+ addressLine2?: string;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof UpdateOrderInput
63
+ */
64
+ addressPostalCode?: string;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof UpdateOrderInput
69
+ */
70
+ addressCity?: string;
71
+ /**
72
+ *
73
+ * @type {OrderCompanyInfoDto}
74
+ * @memberof UpdateOrderInput
75
+ */
76
+ companyInfo?: OrderCompanyInfoDto | null;
40
77
  }
41
78
 
42
79
  /**
43
80
  * Check if a given object implements the UpdateOrderInput interface.
44
81
  */
45
82
  export function instanceOfUpdateOrderInput(value: object): value is UpdateOrderInput {
46
- if (!('firstname' in value) || value['firstname'] === undefined) return false;
47
- if (!('lastname' in value) || value['lastname'] === undefined) return false;
48
- if (!('email' in value) || value['email'] === undefined) return false;
49
83
  return true;
50
84
  }
51
85
 
@@ -59,9 +93,14 @@ export function UpdateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: bo
59
93
  }
60
94
  return {
61
95
 
62
- 'firstname': json['firstname'],
63
- 'lastname': json['lastname'],
64
- 'email': json['email'],
96
+ 'email': json['email'] == null ? undefined : json['email'],
97
+ 'addressCountryCode': json['addressCountryCode'] == null ? undefined : json['addressCountryCode'],
98
+ 'addressStateCode': json['addressStateCode'] == null ? undefined : json['addressStateCode'],
99
+ 'addressLine1': json['addressLine1'] == null ? undefined : json['addressLine1'],
100
+ 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
101
+ 'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
102
+ 'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
103
+ 'companyInfo': json['companyInfo'] == null ? undefined : OrderCompanyInfoDtoFromJSON(json['companyInfo']),
65
104
  };
66
105
  }
67
106
 
@@ -71,9 +110,14 @@ export function UpdateOrderInputToJSON(value?: UpdateOrderInput | null): any {
71
110
  }
72
111
  return {
73
112
 
74
- 'firstname': value['firstname'],
75
- 'lastname': value['lastname'],
76
113
  'email': value['email'],
114
+ 'addressCountryCode': value['addressCountryCode'],
115
+ 'addressStateCode': value['addressStateCode'],
116
+ 'addressLine1': value['addressLine1'],
117
+ 'addressLine2': value['addressLine2'],
118
+ 'addressPostalCode': value['addressPostalCode'],
119
+ 'addressCity': value['addressCity'],
120
+ 'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
77
121
  };
78
122
  }
79
123
 
@@ -1,6 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AccountDto';
4
+ export * from './AccountMetricsDto';
4
5
  export * from './AccountPaymentProviderSessionDto';
5
6
  export * from './AccountSettingsInput';
6
7
  export * from './AddressDto';
@@ -23,7 +24,6 @@ export * from './CreateBuyerLeadMessageInput';
23
24
  export * from './CreateLeadInput';
24
25
  export * from './CreateLeadMessageInput';
25
26
  export * from './CreateOrderInput';
26
- export * from './DashboardStatsDto';
27
27
  export * from './DeleteDomainsInput';
28
28
  export * from './DomainDto';
29
29
  export * from './DomainSellerDto';
@@ -70,13 +70,15 @@ export * from './LoginInput';
70
70
  export * from './MoneyDto';
71
71
  export * from './NotFoundException';
72
72
  export * from './ObjectId';
73
- export * from './OrderCheckoutSessionDto';
73
+ export * from './OrderCompanyInfoDto';
74
+ export * from './OrderCompanyTaxIdDto';
74
75
  export * from './OrderDto';
75
76
  export * from './OrderListItemDto';
76
77
  export * from './OrderListItemDtoBuyerInformation';
77
78
  export * from './OrderListItemDtoDomainInformation';
78
79
  export * from './OrderListItemDtoSellerAccount';
79
80
  export * from './OrderTaxDto';
81
+ export * from './OrderTransactionDto';
80
82
  export * from './PaginateResponse';
81
83
  export * from './PaginateResponseLinks';
82
84
  export * from './PaginateResponseMeta';
@@ -1,26 +0,0 @@
1
- /**
2
- * Nameshift
3
- * Nameshift API
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import * as runtime from '../runtime';
13
- import type { DashboardStatsDto } from '../models/index';
14
- /**
15
- *
16
- */
17
- export declare class DashboardApi extends runtime.BaseAPI {
18
- /**
19
- *
20
- */
21
- statsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DashboardStatsDto>>;
22
- /**
23
- *
24
- */
25
- stats(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DashboardStatsDto>;
26
- }
@@ -1,130 +0,0 @@
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
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
- return new (P || (P = Promise))(function (resolve, reject) {
33
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
- step((generator = generator.apply(thisArg, _arguments || [])).next());
37
- });
38
- };
39
- var __generator = (this && this.__generator) || function (thisArg, body) {
40
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
- function verb(n) { return function (v) { return step([n, v]); }; }
43
- function step(op) {
44
- if (f) throw new TypeError("Generator is already executing.");
45
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
- if (y = 0, t) op = [op[0] & 2, t.value];
48
- switch (op[0]) {
49
- case 0: case 1: t = op; break;
50
- case 4: _.label++; return { value: op[1], done: false };
51
- case 5: _.label++; y = op[1]; op = [0]; continue;
52
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
- default:
54
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
- if (t[2]) _.ops.pop();
59
- _.trys.pop(); continue;
60
- }
61
- op = body.call(thisArg, _);
62
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
- }
65
- };
66
- Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.DashboardApi = void 0;
68
- var runtime = require("../runtime");
69
- var index_1 = require("../models/index");
70
- /**
71
- *
72
- */
73
- var DashboardApi = /** @class */ (function (_super) {
74
- __extends(DashboardApi, _super);
75
- function DashboardApi() {
76
- return _super !== null && _super.apply(this, arguments) || this;
77
- }
78
- /**
79
- *
80
- */
81
- DashboardApi.prototype.statsRaw = function (initOverrides) {
82
- return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, token, tokenString, response;
84
- return __generator(this, function (_a) {
85
- switch (_a.label) {
86
- case 0:
87
- queryParameters = {};
88
- headerParameters = {};
89
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
90
- token = this.configuration.accessToken;
91
- return [4 /*yield*/, token("bearer", [])];
92
- case 1:
93
- tokenString = _a.sent();
94
- if (tokenString) {
95
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
96
- }
97
- _a.label = 2;
98
- case 2: return [4 /*yield*/, this.request({
99
- path: "/private/dashboard/stats",
100
- method: 'GET',
101
- headers: headerParameters,
102
- query: queryParameters,
103
- }, initOverrides)];
104
- case 3:
105
- response = _a.sent();
106
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DashboardStatsDtoFromJSON)(jsonValue); })];
107
- }
108
- });
109
- });
110
- };
111
- /**
112
- *
113
- */
114
- DashboardApi.prototype.stats = function (initOverrides) {
115
- return __awaiter(this, void 0, void 0, function () {
116
- var response;
117
- return __generator(this, function (_a) {
118
- switch (_a.label) {
119
- case 0: return [4 /*yield*/, this.statsRaw(initOverrides)];
120
- case 1:
121
- response = _a.sent();
122
- return [4 /*yield*/, response.value()];
123
- case 2: return [2 /*return*/, _a.sent()];
124
- }
125
- });
126
- });
127
- };
128
- return DashboardApi;
129
- }(runtime.BaseAPI));
130
- exports.DashboardApi = DashboardApi;
@@ -1,43 +0,0 @@
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 DashboardStatsDto
16
- */
17
- export interface DashboardStatsDto {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof DashboardStatsDto
22
- */
23
- domains: number;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof DashboardStatsDto
28
- */
29
- leads: number;
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof DashboardStatsDto
34
- */
35
- transactions: number;
36
- }
37
- /**
38
- * Check if a given object implements the DashboardStatsDto interface.
39
- */
40
- export declare function instanceOfDashboardStatsDto(value: object): value is DashboardStatsDto;
41
- export declare function DashboardStatsDtoFromJSON(json: any): DashboardStatsDto;
42
- export declare function DashboardStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DashboardStatsDto;
43
- export declare function DashboardStatsDtoToJSON(value?: DashboardStatsDto | null): any;
@@ -1,54 +0,0 @@
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.instanceOfDashboardStatsDto = instanceOfDashboardStatsDto;
17
- exports.DashboardStatsDtoFromJSON = DashboardStatsDtoFromJSON;
18
- exports.DashboardStatsDtoFromJSONTyped = DashboardStatsDtoFromJSONTyped;
19
- exports.DashboardStatsDtoToJSON = DashboardStatsDtoToJSON;
20
- /**
21
- * Check if a given object implements the DashboardStatsDto interface.
22
- */
23
- function instanceOfDashboardStatsDto(value) {
24
- if (!('domains' in value) || value['domains'] === undefined)
25
- return false;
26
- if (!('leads' in value) || value['leads'] === undefined)
27
- return false;
28
- if (!('transactions' in value) || value['transactions'] === undefined)
29
- return false;
30
- return true;
31
- }
32
- function DashboardStatsDtoFromJSON(json) {
33
- return DashboardStatsDtoFromJSONTyped(json, false);
34
- }
35
- function DashboardStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
36
- if (json == null) {
37
- return json;
38
- }
39
- return {
40
- 'domains': json['domains'],
41
- 'leads': json['leads'],
42
- 'transactions': json['transactions'],
43
- };
44
- }
45
- function DashboardStatsDtoToJSON(value) {
46
- if (value == null) {
47
- return value;
48
- }
49
- return {
50
- 'domains': value['domains'],
51
- 'leads': value['leads'],
52
- 'transactions': value['transactions'],
53
- };
54
- }
@@ -1,31 +0,0 @@
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 OrderCheckoutSessionDto
16
- */
17
- export interface OrderCheckoutSessionDto {
18
- /**
19
- * Order payment provider checkout session token
20
- * @type {string}
21
- * @memberof OrderCheckoutSessionDto
22
- */
23
- accessToken: string;
24
- }
25
- /**
26
- * Check if a given object implements the OrderCheckoutSessionDto interface.
27
- */
28
- export declare function instanceOfOrderCheckoutSessionDto(value: object): value is OrderCheckoutSessionDto;
29
- export declare function OrderCheckoutSessionDtoFromJSON(json: any): OrderCheckoutSessionDto;
30
- export declare function OrderCheckoutSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCheckoutSessionDto;
31
- export declare function OrderCheckoutSessionDtoToJSON(value?: OrderCheckoutSessionDto | null): any;
@@ -1,46 +0,0 @@
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.instanceOfOrderCheckoutSessionDto = instanceOfOrderCheckoutSessionDto;
17
- exports.OrderCheckoutSessionDtoFromJSON = OrderCheckoutSessionDtoFromJSON;
18
- exports.OrderCheckoutSessionDtoFromJSONTyped = OrderCheckoutSessionDtoFromJSONTyped;
19
- exports.OrderCheckoutSessionDtoToJSON = OrderCheckoutSessionDtoToJSON;
20
- /**
21
- * Check if a given object implements the OrderCheckoutSessionDto interface.
22
- */
23
- function instanceOfOrderCheckoutSessionDto(value) {
24
- if (!('accessToken' in value) || value['accessToken'] === undefined)
25
- return false;
26
- return true;
27
- }
28
- function OrderCheckoutSessionDtoFromJSON(json) {
29
- return OrderCheckoutSessionDtoFromJSONTyped(json, false);
30
- }
31
- function OrderCheckoutSessionDtoFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'accessToken': json['accessToken'],
37
- };
38
- }
39
- function OrderCheckoutSessionDtoToJSON(value) {
40
- if (value == null) {
41
- return value;
42
- }
43
- return {
44
- 'accessToken': value['accessToken'],
45
- };
46
- }
@@ -1,67 +0,0 @@
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
-
16
- import * as runtime from '../runtime';
17
- import type {
18
- DashboardStatsDto,
19
- ValidationException,
20
- } from '../models/index';
21
- import {
22
- DashboardStatsDtoFromJSON,
23
- DashboardStatsDtoToJSON,
24
- ValidationExceptionFromJSON,
25
- ValidationExceptionToJSON,
26
- } from '../models/index';
27
-
28
- /**
29
- *
30
- */
31
- export class DashboardApi extends runtime.BaseAPI {
32
-
33
- /**
34
- *
35
- */
36
- async statsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DashboardStatsDto>> {
37
- const queryParameters: any = {};
38
-
39
- const headerParameters: runtime.HTTPHeaders = {};
40
-
41
- if (this.configuration && this.configuration.accessToken) {
42
- const token = this.configuration.accessToken;
43
- const tokenString = await token("bearer", []);
44
-
45
- if (tokenString) {
46
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
47
- }
48
- }
49
- const response = await this.request({
50
- path: `/private/dashboard/stats`,
51
- method: 'GET',
52
- headers: headerParameters,
53
- query: queryParameters,
54
- }, initOverrides);
55
-
56
- return new runtime.JSONApiResponse(response, (jsonValue) => DashboardStatsDtoFromJSON(jsonValue));
57
- }
58
-
59
- /**
60
- *
61
- */
62
- async stats(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DashboardStatsDto> {
63
- const response = await this.statsRaw(initOverrides);
64
- return await response.value();
65
- }
66
-
67
- }
@@ -1,79 +0,0 @@
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 DashboardStatsDto
20
- */
21
- export interface DashboardStatsDto {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof DashboardStatsDto
26
- */
27
- domains: number;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof DashboardStatsDto
32
- */
33
- leads: number;
34
- /**
35
- *
36
- * @type {number}
37
- * @memberof DashboardStatsDto
38
- */
39
- transactions: number;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the DashboardStatsDto interface.
44
- */
45
- export function instanceOfDashboardStatsDto(value: object): value is DashboardStatsDto {
46
- if (!('domains' in value) || value['domains'] === undefined) return false;
47
- if (!('leads' in value) || value['leads'] === undefined) return false;
48
- if (!('transactions' in value) || value['transactions'] === undefined) return false;
49
- return true;
50
- }
51
-
52
- export function DashboardStatsDtoFromJSON(json: any): DashboardStatsDto {
53
- return DashboardStatsDtoFromJSONTyped(json, false);
54
- }
55
-
56
- export function DashboardStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DashboardStatsDto {
57
- if (json == null) {
58
- return json;
59
- }
60
- return {
61
-
62
- 'domains': json['domains'],
63
- 'leads': json['leads'],
64
- 'transactions': json['transactions'],
65
- };
66
- }
67
-
68
- export function DashboardStatsDtoToJSON(value?: DashboardStatsDto | null): any {
69
- if (value == null) {
70
- return value;
71
- }
72
- return {
73
-
74
- 'domains': value['domains'],
75
- 'leads': value['leads'],
76
- 'transactions': value['transactions'],
77
- };
78
- }
79
-
@@ -1,61 +0,0 @@
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 OrderCheckoutSessionDto
20
- */
21
- export interface OrderCheckoutSessionDto {
22
- /**
23
- * Order payment provider checkout session token
24
- * @type {string}
25
- * @memberof OrderCheckoutSessionDto
26
- */
27
- accessToken: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the OrderCheckoutSessionDto interface.
32
- */
33
- export function instanceOfOrderCheckoutSessionDto(value: object): value is OrderCheckoutSessionDto {
34
- if (!('accessToken' in value) || value['accessToken'] === undefined) return false;
35
- return true;
36
- }
37
-
38
- export function OrderCheckoutSessionDtoFromJSON(json: any): OrderCheckoutSessionDto {
39
- return OrderCheckoutSessionDtoFromJSONTyped(json, false);
40
- }
41
-
42
- export function OrderCheckoutSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCheckoutSessionDto {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
-
48
- 'accessToken': json['accessToken'],
49
- };
50
- }
51
-
52
- export function OrderCheckoutSessionDtoToJSON(value?: OrderCheckoutSessionDto | null): any {
53
- if (value == null) {
54
- return value;
55
- }
56
- return {
57
-
58
- 'accessToken': value['accessToken'],
59
- };
60
- }
61
-