@randock/nameshift-api-client 0.0.271 → 0.0.273
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 +16 -1
- package/dist/apis/AdminApi.js +80 -0
- package/dist/models/AdminCompanyStatsLedger.d.ts +2 -2
- package/dist/models/AdminCompanyStatsLedger.js +6 -6
- package/dist/models/LedgerMutationDto.d.ts +62 -0
- package/dist/models/LedgerMutationDto.js +71 -0
- package/dist/models/LedgerMutationsDto.d.ts +33 -0
- package/dist/models/LedgerMutationsDto.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 +100 -0
- package/src/models/AdminCompanyStatsLedger.ts +8 -8
- package/src/models/LedgerMutationDto.ts +111 -0
- package/src/models/LedgerMutationsDto.ts +74 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -164,6 +164,8 @@ src/models/LeaseToOwnConfigurationDto.ts
|
|
|
164
164
|
src/models/LeaseToOwnConfigurationInput.ts
|
|
165
165
|
src/models/LeaseToOwnConfigurationPresetsDto.ts
|
|
166
166
|
src/models/LeaseToOwnDto.ts
|
|
167
|
+
src/models/LedgerMutationDto.ts
|
|
168
|
+
src/models/LedgerMutationsDto.ts
|
|
167
169
|
src/models/List200Response.ts
|
|
168
170
|
src/models/List200Response1.ts
|
|
169
171
|
src/models/List200Response2.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.273
|
|
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.273 --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
|
+
8af04124f75f2b1720ca5c3bee13b1b7d4a42cfbf6f03f99183fa345c32ff50b4246c7d8b6e5e2d56245565368aa7335
|
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 { AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
|
|
13
|
+
import type { AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
15
15
|
filter?: object;
|
|
16
16
|
page?: number;
|
|
@@ -86,6 +86,13 @@ export interface AdminApiListDomainsRequest {
|
|
|
86
86
|
limit?: number;
|
|
87
87
|
sortBy?: Array<string>;
|
|
88
88
|
}
|
|
89
|
+
export interface AdminApiListLedgerMutationsRequest {
|
|
90
|
+
startDate: Date;
|
|
91
|
+
endDate: Date;
|
|
92
|
+
ledgerId: string;
|
|
93
|
+
page: number;
|
|
94
|
+
limit: number;
|
|
95
|
+
}
|
|
89
96
|
export interface AdminApiLoginAsRequest {
|
|
90
97
|
accountId: string;
|
|
91
98
|
}
|
|
@@ -249,6 +256,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
249
256
|
*
|
|
250
257
|
*/
|
|
251
258
|
listDomains(requestParameters?: AdminApiListDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDomains200Response>;
|
|
259
|
+
/**
|
|
260
|
+
*
|
|
261
|
+
*/
|
|
262
|
+
listLedgerMutationsRaw(requestParameters: AdminApiListLedgerMutationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LedgerMutationsDto>>;
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
*/
|
|
266
|
+
listLedgerMutations(requestParameters: AdminApiListLedgerMutationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LedgerMutationsDto>;
|
|
252
267
|
/**
|
|
253
268
|
*
|
|
254
269
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -1018,6 +1018,86 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
1018
1018
|
});
|
|
1019
1019
|
});
|
|
1020
1020
|
};
|
|
1021
|
+
/**
|
|
1022
|
+
*
|
|
1023
|
+
*/
|
|
1024
|
+
AdminApi.prototype.listLedgerMutationsRaw = function (requestParameters, initOverrides) {
|
|
1025
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1026
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1027
|
+
return __generator(this, function (_a) {
|
|
1028
|
+
switch (_a.label) {
|
|
1029
|
+
case 0:
|
|
1030
|
+
if (requestParameters['startDate'] == null) {
|
|
1031
|
+
throw new runtime.RequiredError('startDate', 'Required parameter "startDate" was null or undefined when calling listLedgerMutations().');
|
|
1032
|
+
}
|
|
1033
|
+
if (requestParameters['endDate'] == null) {
|
|
1034
|
+
throw new runtime.RequiredError('endDate', 'Required parameter "endDate" was null or undefined when calling listLedgerMutations().');
|
|
1035
|
+
}
|
|
1036
|
+
if (requestParameters['ledgerId'] == null) {
|
|
1037
|
+
throw new runtime.RequiredError('ledgerId', 'Required parameter "ledgerId" was null or undefined when calling listLedgerMutations().');
|
|
1038
|
+
}
|
|
1039
|
+
if (requestParameters['page'] == null) {
|
|
1040
|
+
throw new runtime.RequiredError('page', 'Required parameter "page" was null or undefined when calling listLedgerMutations().');
|
|
1041
|
+
}
|
|
1042
|
+
if (requestParameters['limit'] == null) {
|
|
1043
|
+
throw new runtime.RequiredError('limit', 'Required parameter "limit" was null or undefined when calling listLedgerMutations().');
|
|
1044
|
+
}
|
|
1045
|
+
queryParameters = {};
|
|
1046
|
+
if (requestParameters['startDate'] != null) {
|
|
1047
|
+
queryParameters['startDate'] = requestParameters['startDate'].toISOString();
|
|
1048
|
+
}
|
|
1049
|
+
if (requestParameters['endDate'] != null) {
|
|
1050
|
+
queryParameters['endDate'] = requestParameters['endDate'].toISOString();
|
|
1051
|
+
}
|
|
1052
|
+
if (requestParameters['ledgerId'] != null) {
|
|
1053
|
+
queryParameters['ledgerId'] = requestParameters['ledgerId'];
|
|
1054
|
+
}
|
|
1055
|
+
if (requestParameters['page'] != null) {
|
|
1056
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1057
|
+
}
|
|
1058
|
+
if (requestParameters['limit'] != null) {
|
|
1059
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1060
|
+
}
|
|
1061
|
+
headerParameters = {};
|
|
1062
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1063
|
+
token = this.configuration.accessToken;
|
|
1064
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1065
|
+
case 1:
|
|
1066
|
+
tokenString = _a.sent();
|
|
1067
|
+
if (tokenString) {
|
|
1068
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1069
|
+
}
|
|
1070
|
+
_a.label = 2;
|
|
1071
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1072
|
+
path: "/admin/stats/ledger-mutations",
|
|
1073
|
+
method: 'GET',
|
|
1074
|
+
headers: headerParameters,
|
|
1075
|
+
query: queryParameters,
|
|
1076
|
+
}, initOverrides)];
|
|
1077
|
+
case 3:
|
|
1078
|
+
response = _a.sent();
|
|
1079
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LedgerMutationsDtoFromJSON)(jsonValue); })];
|
|
1080
|
+
}
|
|
1081
|
+
});
|
|
1082
|
+
});
|
|
1083
|
+
};
|
|
1084
|
+
/**
|
|
1085
|
+
*
|
|
1086
|
+
*/
|
|
1087
|
+
AdminApi.prototype.listLedgerMutations = function (requestParameters, initOverrides) {
|
|
1088
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1089
|
+
var response;
|
|
1090
|
+
return __generator(this, function (_a) {
|
|
1091
|
+
switch (_a.label) {
|
|
1092
|
+
case 0: return [4 /*yield*/, this.listLedgerMutationsRaw(requestParameters, initOverrides)];
|
|
1093
|
+
case 1:
|
|
1094
|
+
response = _a.sent();
|
|
1095
|
+
return [4 /*yield*/, response.value()];
|
|
1096
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1097
|
+
}
|
|
1098
|
+
});
|
|
1099
|
+
});
|
|
1100
|
+
};
|
|
1021
1101
|
/**
|
|
1022
1102
|
*
|
|
1023
1103
|
*/
|
|
@@ -38,7 +38,7 @@ export interface AdminCompanyStatsLedger {
|
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof AdminCompanyStatsLedger
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
debit: number;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {number}
|
|
@@ -50,7 +50,7 @@ export interface AdminCompanyStatsLedger {
|
|
|
50
50
|
* @type {number}
|
|
51
51
|
* @memberof AdminCompanyStatsLedger
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
balanceDebit: number;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {number}
|
|
@@ -28,11 +28,11 @@ function instanceOfAdminCompanyStatsLedger(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('number' in value) || value['number'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('
|
|
31
|
+
if (!('debit' in value) || value['debit'] === undefined)
|
|
32
32
|
return false;
|
|
33
33
|
if (!('credit' in value) || value['credit'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
-
if (!('
|
|
35
|
+
if (!('balanceDebit' in value) || value['balanceDebit'] === undefined)
|
|
36
36
|
return false;
|
|
37
37
|
if (!('balanceCredit' in value) || value['balanceCredit'] === undefined)
|
|
38
38
|
return false;
|
|
@@ -49,9 +49,9 @@ function AdminCompanyStatsLedgerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'id': json['id'],
|
|
50
50
|
'description': json['description'],
|
|
51
51
|
'number': json['number'],
|
|
52
|
-
'
|
|
52
|
+
'debit': json['debit'],
|
|
53
53
|
'credit': json['credit'],
|
|
54
|
-
'
|
|
54
|
+
'balanceDebit': json['balanceDebit'],
|
|
55
55
|
'balanceCredit': json['balanceCredit'],
|
|
56
56
|
};
|
|
57
57
|
}
|
|
@@ -67,9 +67,9 @@ function AdminCompanyStatsLedgerToJSONTyped(value, ignoreDiscriminator) {
|
|
|
67
67
|
'id': value['id'],
|
|
68
68
|
'description': value['description'],
|
|
69
69
|
'number': value['number'],
|
|
70
|
-
'
|
|
70
|
+
'debit': value['debit'],
|
|
71
71
|
'credit': value['credit'],
|
|
72
|
-
'
|
|
72
|
+
'balanceDebit': value['balanceDebit'],
|
|
73
73
|
'balanceCredit': value['balanceCredit'],
|
|
74
74
|
};
|
|
75
75
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 LedgerMutationDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LedgerMutationDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LedgerMutationDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LedgerMutationDto
|
|
28
|
+
*/
|
|
29
|
+
invoiceNumber: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof LedgerMutationDto
|
|
34
|
+
*/
|
|
35
|
+
debit: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof LedgerMutationDto
|
|
40
|
+
*/
|
|
41
|
+
credit: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof LedgerMutationDto
|
|
46
|
+
*/
|
|
47
|
+
description: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof LedgerMutationDto
|
|
52
|
+
*/
|
|
53
|
+
date: Date;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the LedgerMutationDto interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfLedgerMutationDto(value: object): value is LedgerMutationDto;
|
|
59
|
+
export declare function LedgerMutationDtoFromJSON(json: any): LedgerMutationDto;
|
|
60
|
+
export declare function LedgerMutationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LedgerMutationDto;
|
|
61
|
+
export declare function LedgerMutationDtoToJSON(json: any): LedgerMutationDto;
|
|
62
|
+
export declare function LedgerMutationDtoToJSONTyped(value?: LedgerMutationDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.instanceOfLedgerMutationDto = instanceOfLedgerMutationDto;
|
|
17
|
+
exports.LedgerMutationDtoFromJSON = LedgerMutationDtoFromJSON;
|
|
18
|
+
exports.LedgerMutationDtoFromJSONTyped = LedgerMutationDtoFromJSONTyped;
|
|
19
|
+
exports.LedgerMutationDtoToJSON = LedgerMutationDtoToJSON;
|
|
20
|
+
exports.LedgerMutationDtoToJSONTyped = LedgerMutationDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LedgerMutationDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLedgerMutationDto(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('invoiceNumber' in value) || value['invoiceNumber'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('debit' in value) || value['debit'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('credit' in value) || value['credit'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function LedgerMutationDtoFromJSON(json) {
|
|
40
|
+
return LedgerMutationDtoFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function LedgerMutationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'invoiceNumber': json['invoiceNumber'],
|
|
49
|
+
'debit': json['debit'],
|
|
50
|
+
'credit': json['credit'],
|
|
51
|
+
'description': json['description'],
|
|
52
|
+
'date': (new Date(json['date'])),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function LedgerMutationDtoToJSON(json) {
|
|
56
|
+
return LedgerMutationDtoToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function LedgerMutationDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'invoiceNumber': value['invoiceNumber'],
|
|
66
|
+
'debit': value['debit'],
|
|
67
|
+
'credit': value['credit'],
|
|
68
|
+
'description': value['description'],
|
|
69
|
+
'date': ((value['date']).toISOString()),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 type { LedgerMutationDto } from './LedgerMutationDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LedgerMutationsDto
|
|
17
|
+
*/
|
|
18
|
+
export interface LedgerMutationsDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<LedgerMutationDto>}
|
|
22
|
+
* @memberof LedgerMutationsDto
|
|
23
|
+
*/
|
|
24
|
+
mutations: Array<LedgerMutationDto>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the LedgerMutationsDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfLedgerMutationsDto(value: object): value is LedgerMutationsDto;
|
|
30
|
+
export declare function LedgerMutationsDtoFromJSON(json: any): LedgerMutationsDto;
|
|
31
|
+
export declare function LedgerMutationsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LedgerMutationsDto;
|
|
32
|
+
export declare function LedgerMutationsDtoToJSON(json: any): LedgerMutationsDto;
|
|
33
|
+
export declare function LedgerMutationsDtoToJSONTyped(value?: LedgerMutationsDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfLedgerMutationsDto = instanceOfLedgerMutationsDto;
|
|
17
|
+
exports.LedgerMutationsDtoFromJSON = LedgerMutationsDtoFromJSON;
|
|
18
|
+
exports.LedgerMutationsDtoFromJSONTyped = LedgerMutationsDtoFromJSONTyped;
|
|
19
|
+
exports.LedgerMutationsDtoToJSON = LedgerMutationsDtoToJSON;
|
|
20
|
+
exports.LedgerMutationsDtoToJSONTyped = LedgerMutationsDtoToJSONTyped;
|
|
21
|
+
var LedgerMutationDto_1 = require("./LedgerMutationDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the LedgerMutationsDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfLedgerMutationsDto(value) {
|
|
26
|
+
if (!('mutations' in value) || value['mutations'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function LedgerMutationsDtoFromJSON(json) {
|
|
31
|
+
return LedgerMutationsDtoFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function LedgerMutationsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'mutations': (json['mutations'].map(LedgerMutationDto_1.LedgerMutationDtoFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function LedgerMutationsDtoToJSON(json) {
|
|
42
|
+
return LedgerMutationsDtoToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function LedgerMutationsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'mutations': (value['mutations'].map(LedgerMutationDto_1.LedgerMutationDtoToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -137,6 +137,8 @@ export * from './LeaseToOwnConfigurationDto';
|
|
|
137
137
|
export * from './LeaseToOwnConfigurationInput';
|
|
138
138
|
export * from './LeaseToOwnConfigurationPresetsDto';
|
|
139
139
|
export * from './LeaseToOwnDto';
|
|
140
|
+
export * from './LedgerMutationDto';
|
|
141
|
+
export * from './LedgerMutationsDto';
|
|
140
142
|
export * from './List200Response';
|
|
141
143
|
export * from './List200Response1';
|
|
142
144
|
export * from './List200Response2';
|
package/dist/models/index.js
CHANGED
|
@@ -155,6 +155,8 @@ __exportStar(require("./LeaseToOwnConfigurationDto"), exports);
|
|
|
155
155
|
__exportStar(require("./LeaseToOwnConfigurationInput"), exports);
|
|
156
156
|
__exportStar(require("./LeaseToOwnConfigurationPresetsDto"), exports);
|
|
157
157
|
__exportStar(require("./LeaseToOwnDto"), exports);
|
|
158
|
+
__exportStar(require("./LedgerMutationDto"), exports);
|
|
159
|
+
__exportStar(require("./LedgerMutationsDto"), exports);
|
|
158
160
|
__exportStar(require("./List200Response"), exports);
|
|
159
161
|
__exportStar(require("./List200Response1"), exports);
|
|
160
162
|
__exportStar(require("./List200Response2"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -30,6 +30,7 @@ import type {
|
|
|
30
30
|
GetAllSubscriptions200Response,
|
|
31
31
|
IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto,
|
|
32
32
|
LeadMessageDto,
|
|
33
|
+
LedgerMutationsDto,
|
|
33
34
|
ListAccounts200Response,
|
|
34
35
|
ListBankAccounts200Response,
|
|
35
36
|
ListDomains200Response,
|
|
@@ -70,6 +71,8 @@ import {
|
|
|
70
71
|
IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSON,
|
|
71
72
|
LeadMessageDtoFromJSON,
|
|
72
73
|
LeadMessageDtoToJSON,
|
|
74
|
+
LedgerMutationsDtoFromJSON,
|
|
75
|
+
LedgerMutationsDtoToJSON,
|
|
73
76
|
ListAccounts200ResponseFromJSON,
|
|
74
77
|
ListAccounts200ResponseToJSON,
|
|
75
78
|
ListBankAccounts200ResponseFromJSON,
|
|
@@ -179,6 +182,14 @@ export interface AdminApiListDomainsRequest {
|
|
|
179
182
|
sortBy?: Array<string>;
|
|
180
183
|
}
|
|
181
184
|
|
|
185
|
+
export interface AdminApiListLedgerMutationsRequest {
|
|
186
|
+
startDate: Date;
|
|
187
|
+
endDate: Date;
|
|
188
|
+
ledgerId: string;
|
|
189
|
+
page: number;
|
|
190
|
+
limit: number;
|
|
191
|
+
}
|
|
192
|
+
|
|
182
193
|
export interface AdminApiLoginAsRequest {
|
|
183
194
|
accountId: string;
|
|
184
195
|
}
|
|
@@ -985,6 +996,95 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
985
996
|
return await response.value();
|
|
986
997
|
}
|
|
987
998
|
|
|
999
|
+
/**
|
|
1000
|
+
*
|
|
1001
|
+
*/
|
|
1002
|
+
async listLedgerMutationsRaw(requestParameters: AdminApiListLedgerMutationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LedgerMutationsDto>> {
|
|
1003
|
+
if (requestParameters['startDate'] == null) {
|
|
1004
|
+
throw new runtime.RequiredError(
|
|
1005
|
+
'startDate',
|
|
1006
|
+
'Required parameter "startDate" was null or undefined when calling listLedgerMutations().'
|
|
1007
|
+
);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
if (requestParameters['endDate'] == null) {
|
|
1011
|
+
throw new runtime.RequiredError(
|
|
1012
|
+
'endDate',
|
|
1013
|
+
'Required parameter "endDate" was null or undefined when calling listLedgerMutations().'
|
|
1014
|
+
);
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
if (requestParameters['ledgerId'] == null) {
|
|
1018
|
+
throw new runtime.RequiredError(
|
|
1019
|
+
'ledgerId',
|
|
1020
|
+
'Required parameter "ledgerId" was null or undefined when calling listLedgerMutations().'
|
|
1021
|
+
);
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
if (requestParameters['page'] == null) {
|
|
1025
|
+
throw new runtime.RequiredError(
|
|
1026
|
+
'page',
|
|
1027
|
+
'Required parameter "page" was null or undefined when calling listLedgerMutations().'
|
|
1028
|
+
);
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
if (requestParameters['limit'] == null) {
|
|
1032
|
+
throw new runtime.RequiredError(
|
|
1033
|
+
'limit',
|
|
1034
|
+
'Required parameter "limit" was null or undefined when calling listLedgerMutations().'
|
|
1035
|
+
);
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
const queryParameters: any = {};
|
|
1039
|
+
|
|
1040
|
+
if (requestParameters['startDate'] != null) {
|
|
1041
|
+
queryParameters['startDate'] = (requestParameters['startDate'] as any).toISOString();
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
if (requestParameters['endDate'] != null) {
|
|
1045
|
+
queryParameters['endDate'] = (requestParameters['endDate'] as any).toISOString();
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
if (requestParameters['ledgerId'] != null) {
|
|
1049
|
+
queryParameters['ledgerId'] = requestParameters['ledgerId'];
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
if (requestParameters['page'] != null) {
|
|
1053
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
if (requestParameters['limit'] != null) {
|
|
1057
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1061
|
+
|
|
1062
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1063
|
+
const token = this.configuration.accessToken;
|
|
1064
|
+
const tokenString = await token("bearer", []);
|
|
1065
|
+
|
|
1066
|
+
if (tokenString) {
|
|
1067
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
const response = await this.request({
|
|
1071
|
+
path: `/admin/stats/ledger-mutations`,
|
|
1072
|
+
method: 'GET',
|
|
1073
|
+
headers: headerParameters,
|
|
1074
|
+
query: queryParameters,
|
|
1075
|
+
}, initOverrides);
|
|
1076
|
+
|
|
1077
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LedgerMutationsDtoFromJSON(jsonValue));
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
*
|
|
1082
|
+
*/
|
|
1083
|
+
async listLedgerMutations(requestParameters: AdminApiListLedgerMutationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LedgerMutationsDto> {
|
|
1084
|
+
const response = await this.listLedgerMutationsRaw(requestParameters, initOverrides);
|
|
1085
|
+
return await response.value();
|
|
1086
|
+
}
|
|
1087
|
+
|
|
988
1088
|
/**
|
|
989
1089
|
*
|
|
990
1090
|
*/
|
|
@@ -42,7 +42,7 @@ export interface AdminCompanyStatsLedger {
|
|
|
42
42
|
* @type {number}
|
|
43
43
|
* @memberof AdminCompanyStatsLedger
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
debit: number;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {number}
|
|
@@ -54,7 +54,7 @@ export interface AdminCompanyStatsLedger {
|
|
|
54
54
|
* @type {number}
|
|
55
55
|
* @memberof AdminCompanyStatsLedger
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
balanceDebit: number;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {number}
|
|
@@ -70,9 +70,9 @@ export function instanceOfAdminCompanyStatsLedger(value: object): value is Admin
|
|
|
70
70
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
71
71
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
72
72
|
if (!('number' in value) || value['number'] === undefined) return false;
|
|
73
|
-
if (!('
|
|
73
|
+
if (!('debit' in value) || value['debit'] === undefined) return false;
|
|
74
74
|
if (!('credit' in value) || value['credit'] === undefined) return false;
|
|
75
|
-
if (!('
|
|
75
|
+
if (!('balanceDebit' in value) || value['balanceDebit'] === undefined) return false;
|
|
76
76
|
if (!('balanceCredit' in value) || value['balanceCredit'] === undefined) return false;
|
|
77
77
|
return true;
|
|
78
78
|
}
|
|
@@ -90,9 +90,9 @@ export function AdminCompanyStatsLedgerFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
90
90
|
'id': json['id'],
|
|
91
91
|
'description': json['description'],
|
|
92
92
|
'number': json['number'],
|
|
93
|
-
'
|
|
93
|
+
'debit': json['debit'],
|
|
94
94
|
'credit': json['credit'],
|
|
95
|
-
'
|
|
95
|
+
'balanceDebit': json['balanceDebit'],
|
|
96
96
|
'balanceCredit': json['balanceCredit'],
|
|
97
97
|
};
|
|
98
98
|
}
|
|
@@ -111,9 +111,9 @@ export function AdminCompanyStatsLedgerToJSONTyped(value?: AdminCompanyStatsLedg
|
|
|
111
111
|
'id': value['id'],
|
|
112
112
|
'description': value['description'],
|
|
113
113
|
'number': value['number'],
|
|
114
|
-
'
|
|
114
|
+
'debit': value['debit'],
|
|
115
115
|
'credit': value['credit'],
|
|
116
|
-
'
|
|
116
|
+
'balanceDebit': value['balanceDebit'],
|
|
117
117
|
'balanceCredit': value['balanceCredit'],
|
|
118
118
|
};
|
|
119
119
|
}
|
|
@@ -0,0 +1,111 @@
|
|
|
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 LedgerMutationDto
|
|
20
|
+
*/
|
|
21
|
+
export interface LedgerMutationDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LedgerMutationDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LedgerMutationDto
|
|
32
|
+
*/
|
|
33
|
+
invoiceNumber: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof LedgerMutationDto
|
|
38
|
+
*/
|
|
39
|
+
debit: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof LedgerMutationDto
|
|
44
|
+
*/
|
|
45
|
+
credit: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof LedgerMutationDto
|
|
50
|
+
*/
|
|
51
|
+
description: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof LedgerMutationDto
|
|
56
|
+
*/
|
|
57
|
+
date: Date;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the LedgerMutationDto interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfLedgerMutationDto(value: object): value is LedgerMutationDto {
|
|
64
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
+
if (!('invoiceNumber' in value) || value['invoiceNumber'] === undefined) return false;
|
|
66
|
+
if (!('debit' in value) || value['debit'] === undefined) return false;
|
|
67
|
+
if (!('credit' in value) || value['credit'] === undefined) return false;
|
|
68
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
69
|
+
if (!('date' in value) || value['date'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function LedgerMutationDtoFromJSON(json: any): LedgerMutationDto {
|
|
74
|
+
return LedgerMutationDtoFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function LedgerMutationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LedgerMutationDto {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'id': json['id'],
|
|
84
|
+
'invoiceNumber': json['invoiceNumber'],
|
|
85
|
+
'debit': json['debit'],
|
|
86
|
+
'credit': json['credit'],
|
|
87
|
+
'description': json['description'],
|
|
88
|
+
'date': (new Date(json['date'])),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function LedgerMutationDtoToJSON(json: any): LedgerMutationDto {
|
|
93
|
+
return LedgerMutationDtoToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function LedgerMutationDtoToJSONTyped(value?: LedgerMutationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': value['id'],
|
|
104
|
+
'invoiceNumber': value['invoiceNumber'],
|
|
105
|
+
'debit': value['debit'],
|
|
106
|
+
'credit': value['credit'],
|
|
107
|
+
'description': value['description'],
|
|
108
|
+
'date': ((value['date']).toISOString()),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
import type { LedgerMutationDto } from './LedgerMutationDto';
|
|
17
|
+
import {
|
|
18
|
+
LedgerMutationDtoFromJSON,
|
|
19
|
+
LedgerMutationDtoFromJSONTyped,
|
|
20
|
+
LedgerMutationDtoToJSON,
|
|
21
|
+
LedgerMutationDtoToJSONTyped,
|
|
22
|
+
} from './LedgerMutationDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LedgerMutationsDto
|
|
28
|
+
*/
|
|
29
|
+
export interface LedgerMutationsDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<LedgerMutationDto>}
|
|
33
|
+
* @memberof LedgerMutationsDto
|
|
34
|
+
*/
|
|
35
|
+
mutations: Array<LedgerMutationDto>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the LedgerMutationsDto interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfLedgerMutationsDto(value: object): value is LedgerMutationsDto {
|
|
42
|
+
if (!('mutations' in value) || value['mutations'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function LedgerMutationsDtoFromJSON(json: any): LedgerMutationsDto {
|
|
47
|
+
return LedgerMutationsDtoFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function LedgerMutationsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LedgerMutationsDto {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'mutations': ((json['mutations'] as Array<any>).map(LedgerMutationDtoFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function LedgerMutationsDtoToJSON(json: any): LedgerMutationsDto {
|
|
61
|
+
return LedgerMutationsDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function LedgerMutationsDtoToJSONTyped(value?: LedgerMutationsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'mutations': ((value['mutations'] as Array<any>).map(LedgerMutationDtoToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -139,6 +139,8 @@ export * from './LeaseToOwnConfigurationDto';
|
|
|
139
139
|
export * from './LeaseToOwnConfigurationInput';
|
|
140
140
|
export * from './LeaseToOwnConfigurationPresetsDto';
|
|
141
141
|
export * from './LeaseToOwnDto';
|
|
142
|
+
export * from './LedgerMutationDto';
|
|
143
|
+
export * from './LedgerMutationsDto';
|
|
142
144
|
export * from './List200Response';
|
|
143
145
|
export * from './List200Response1';
|
|
144
146
|
export * from './List200Response2';
|