@randock/nameshift-api-client 0.0.272 → 0.0.274
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 +5 -5
- package/dist/apis/AdminApi.js +2 -2
- 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/SendAdminLeadAiPriceNegotiatorAgentChatMessageInput.d.ts +1 -1
- package/dist/models/SendAdminLeadAiPriceNegotiatorAgentChatMessageInput.js +1 -3
- 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 +9 -6
- package/src/models/AdminCompanyStatsLedger.ts +8 -8
- package/src/models/LedgerMutationDto.ts +111 -0
- package/src/models/LedgerMutationsDto.ts +74 -0
- package/src/models/SendAdminLeadAiPriceNegotiatorAgentChatMessageInput.ts +2 -3
- 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.274
|
|
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.274 --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
|
+
03b09b2b4375dd2c580973ce8348741b59fbf58e1986b60af4ce8378f8a0b21e7d65b5f4ecdab4a0d525f4b8717e8a8a
|
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;
|
|
@@ -259,11 +259,11 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
259
259
|
/**
|
|
260
260
|
*
|
|
261
261
|
*/
|
|
262
|
-
listLedgerMutationsRaw(requestParameters: AdminApiListLedgerMutationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
262
|
+
listLedgerMutationsRaw(requestParameters: AdminApiListLedgerMutationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LedgerMutationsDto>>;
|
|
263
263
|
/**
|
|
264
264
|
*
|
|
265
265
|
*/
|
|
266
|
-
listLedgerMutations(requestParameters: AdminApiListLedgerMutationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
266
|
+
listLedgerMutations(requestParameters: AdminApiListLedgerMutationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LedgerMutationsDto>;
|
|
267
267
|
/**
|
|
268
268
|
*
|
|
269
269
|
*/
|
|
@@ -307,11 +307,11 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
307
307
|
/**
|
|
308
308
|
*
|
|
309
309
|
*/
|
|
310
|
-
postAiPriceNegotiatorAgentChatMessageRaw(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadMessageDto
|
|
310
|
+
postAiPriceNegotiatorAgentChatMessageRaw(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<LeadMessageDto>>>;
|
|
311
311
|
/**
|
|
312
312
|
*
|
|
313
313
|
*/
|
|
314
|
-
postAiPriceNegotiatorAgentChatMessage(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadMessageDto
|
|
314
|
+
postAiPriceNegotiatorAgentChatMessage(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LeadMessageDto>>;
|
|
315
315
|
/**
|
|
316
316
|
*
|
|
317
317
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -1076,7 +1076,7 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
1076
1076
|
}, initOverrides)];
|
|
1077
1077
|
case 3:
|
|
1078
1078
|
response = _a.sent();
|
|
1079
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response)];
|
|
1079
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LedgerMutationsDtoFromJSON)(jsonValue); })];
|
|
1080
1080
|
}
|
|
1081
1081
|
});
|
|
1082
1082
|
});
|
|
@@ -1397,7 +1397,7 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
1397
1397
|
}, initOverrides)];
|
|
1398
1398
|
case 3:
|
|
1399
1399
|
response = _a.sent();
|
|
1400
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (
|
|
1400
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.LeadMessageDtoFromJSON); })];
|
|
1401
1401
|
}
|
|
1402
1402
|
});
|
|
1403
1403
|
});
|
|
@@ -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
|
+
}
|
|
@@ -55,8 +55,6 @@ function instanceOfSendAdminLeadAiPriceNegotiatorAgentChatMessageInput(value) {
|
|
|
55
55
|
return false;
|
|
56
56
|
if (!('chatHistory' in value) || value['chatHistory'] === undefined)
|
|
57
57
|
return false;
|
|
58
|
-
if (!('buyerMessage' in value) || value['buyerMessage'] === undefined)
|
|
59
|
-
return false;
|
|
60
58
|
return true;
|
|
61
59
|
}
|
|
62
60
|
function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSON(json) {
|
|
@@ -78,7 +76,7 @@ function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSONTyped(json,
|
|
|
78
76
|
'sellImportanceMediumPrompt': json['sellImportanceMediumPrompt'],
|
|
79
77
|
'sellImportanceHighPrompt': json['sellImportanceHighPrompt'],
|
|
80
78
|
'chatHistory': (json['chatHistory'].map(LeadMessageDto_1.LeadMessageDtoFromJSON)),
|
|
81
|
-
'buyerMessage': json['buyerMessage'],
|
|
79
|
+
'buyerMessage': json['buyerMessage'] == null ? undefined : json['buyerMessage'],
|
|
82
80
|
};
|
|
83
81
|
}
|
|
84
82
|
function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSON(json) {
|
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,
|
|
@@ -996,7 +999,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
996
999
|
/**
|
|
997
1000
|
*
|
|
998
1001
|
*/
|
|
999
|
-
async listLedgerMutationsRaw(requestParameters: AdminApiListLedgerMutationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
1002
|
+
async listLedgerMutationsRaw(requestParameters: AdminApiListLedgerMutationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LedgerMutationsDto>> {
|
|
1000
1003
|
if (requestParameters['startDate'] == null) {
|
|
1001
1004
|
throw new runtime.RequiredError(
|
|
1002
1005
|
'startDate',
|
|
@@ -1071,13 +1074,13 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1071
1074
|
query: queryParameters,
|
|
1072
1075
|
}, initOverrides);
|
|
1073
1076
|
|
|
1074
|
-
return new runtime.JSONApiResponse
|
|
1077
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LedgerMutationsDtoFromJSON(jsonValue));
|
|
1075
1078
|
}
|
|
1076
1079
|
|
|
1077
1080
|
/**
|
|
1078
1081
|
*
|
|
1079
1082
|
*/
|
|
1080
|
-
async listLedgerMutations(requestParameters: AdminApiListLedgerMutationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
1083
|
+
async listLedgerMutations(requestParameters: AdminApiListLedgerMutationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LedgerMutationsDto> {
|
|
1081
1084
|
const response = await this.listLedgerMutationsRaw(requestParameters, initOverrides);
|
|
1082
1085
|
return await response.value();
|
|
1083
1086
|
}
|
|
@@ -1307,7 +1310,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1307
1310
|
/**
|
|
1308
1311
|
*
|
|
1309
1312
|
*/
|
|
1310
|
-
async postAiPriceNegotiatorAgentChatMessageRaw(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadMessageDto
|
|
1313
|
+
async postAiPriceNegotiatorAgentChatMessageRaw(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<LeadMessageDto>>> {
|
|
1311
1314
|
if (requestParameters['sendAdminLeadAiPriceNegotiatorAgentChatMessageInput'] == null) {
|
|
1312
1315
|
throw new runtime.RequiredError(
|
|
1313
1316
|
'sendAdminLeadAiPriceNegotiatorAgentChatMessageInput',
|
|
@@ -1337,13 +1340,13 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1337
1340
|
body: SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSON(requestParameters['sendAdminLeadAiPriceNegotiatorAgentChatMessageInput']),
|
|
1338
1341
|
}, initOverrides);
|
|
1339
1342
|
|
|
1340
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => LeadMessageDtoFromJSON
|
|
1343
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(LeadMessageDtoFromJSON));
|
|
1341
1344
|
}
|
|
1342
1345
|
|
|
1343
1346
|
/**
|
|
1344
1347
|
*
|
|
1345
1348
|
*/
|
|
1346
|
-
async postAiPriceNegotiatorAgentChatMessage(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadMessageDto
|
|
1349
|
+
async postAiPriceNegotiatorAgentChatMessage(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LeadMessageDto>> {
|
|
1347
1350
|
const response = await this.postAiPriceNegotiatorAgentChatMessageRaw(requestParameters, initOverrides);
|
|
1348
1351
|
return await response.value();
|
|
1349
1352
|
}
|
|
@@ -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
|
+
|
|
@@ -105,7 +105,7 @@ export interface SendAdminLeadAiPriceNegotiatorAgentChatMessageInput {
|
|
|
105
105
|
* @type {string}
|
|
106
106
|
* @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
|
|
107
107
|
*/
|
|
108
|
-
buyerMessage
|
|
108
|
+
buyerMessage?: string;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
|
|
@@ -135,7 +135,6 @@ export function instanceOfSendAdminLeadAiPriceNegotiatorAgentChatMessageInput(va
|
|
|
135
135
|
if (!('sellImportanceMediumPrompt' in value) || value['sellImportanceMediumPrompt'] === undefined) return false;
|
|
136
136
|
if (!('sellImportanceHighPrompt' in value) || value['sellImportanceHighPrompt'] === undefined) return false;
|
|
137
137
|
if (!('chatHistory' in value) || value['chatHistory'] === undefined) return false;
|
|
138
|
-
if (!('buyerMessage' in value) || value['buyerMessage'] === undefined) return false;
|
|
139
138
|
return true;
|
|
140
139
|
}
|
|
141
140
|
|
|
@@ -160,7 +159,7 @@ export function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSONTyped
|
|
|
160
159
|
'sellImportanceMediumPrompt': json['sellImportanceMediumPrompt'],
|
|
161
160
|
'sellImportanceHighPrompt': json['sellImportanceHighPrompt'],
|
|
162
161
|
'chatHistory': ((json['chatHistory'] as Array<any>).map(LeadMessageDtoFromJSON)),
|
|
163
|
-
'buyerMessage': json['buyerMessage'],
|
|
162
|
+
'buyerMessage': json['buyerMessage'] == null ? undefined : json['buyerMessage'],
|
|
164
163
|
};
|
|
165
164
|
}
|
|
166
165
|
|
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';
|