@equisoft/equisoft-connect-sdk-typescript 13.33.0 → 13.33.1-snapshot.20250806032759
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 +3 -0
- package/.tool-versions +1 -1
- package/dist/apis/InvestmentApi.d.ts +51 -0
- package/dist/apis/InvestmentApi.js +141 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/InvestmentApi.d.ts +51 -0
- package/dist/esm/apis/InvestmentApi.js +137 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/InvestmentsAccount.d.ts +1 -1
- package/dist/esm/models/InvestmentsAsset.d.ts +7 -0
- package/dist/esm/models/InvestmentsAsset.js +3 -0
- package/dist/esm/models/InvestmentsListAssetResponse.d.ts +39 -0
- package/dist/esm/models/InvestmentsListAssetResponse.js +46 -0
- package/dist/esm/models/InvestmentsProduct.d.ts +74 -0
- package/dist/esm/models/InvestmentsProduct.js +55 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/InvestmentsAccount.d.ts +1 -1
- package/dist/models/InvestmentsAsset.d.ts +7 -0
- package/dist/models/InvestmentsAsset.js +3 -0
- package/dist/models/InvestmentsListAssetResponse.d.ts +39 -0
- package/dist/models/InvestmentsListAssetResponse.js +53 -0
- package/dist/models/InvestmentsProduct.d.ts +74 -0
- package/dist/models/InvestmentsProduct.js +62 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/InvestmentApi.ts +177 -0
- package/src/apis/index.ts +1 -0
- package/src/models/InvestmentsAccount.ts +1 -1
- package/src/models/InvestmentsAsset.ts +16 -0
- package/src/models/InvestmentsListAssetResponse.ts +82 -0
- package/src/models/InvestmentsProduct.ts +121 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -8,6 +8,7 @@ src/apis/DocumentsApi.ts
|
|
|
8
8
|
src/apis/EventsApi.ts
|
|
9
9
|
src/apis/FieldValuesApi.ts
|
|
10
10
|
src/apis/GatewaysApi.ts
|
|
11
|
+
src/apis/InvestmentApi.ts
|
|
11
12
|
src/apis/LegacyContactApi.ts
|
|
12
13
|
src/apis/LegacyDocumentApi.ts
|
|
13
14
|
src/apis/LegacyFieldValuesApi.ts
|
|
@@ -143,6 +144,8 @@ src/models/InvestmentsAccount.ts
|
|
|
143
144
|
src/models/InvestmentsAccountUser.ts
|
|
144
145
|
src/models/InvestmentsAsset.ts
|
|
145
146
|
src/models/InvestmentsListAccountResponse.ts
|
|
147
|
+
src/models/InvestmentsListAssetResponse.ts
|
|
148
|
+
src/models/InvestmentsProduct.ts
|
|
146
149
|
src/models/KronosFieldValuesFieldValuesGet.ts
|
|
147
150
|
src/models/KronosFieldValuesValue.ts
|
|
148
151
|
src/models/KronosFinanceAssetDetail.ts
|
package/.tool-versions
CHANGED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Equisoft /connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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 { InvestmentsAccount, InvestmentsAsset, InvestmentsListAssetResponse } from '../models/index';
|
|
14
|
+
export interface GetAssetRequest {
|
|
15
|
+
id: number;
|
|
16
|
+
}
|
|
17
|
+
export interface GetInvestmentRequest {
|
|
18
|
+
id: number;
|
|
19
|
+
}
|
|
20
|
+
export interface ListInvestmentAssetsRequest {
|
|
21
|
+
id: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class InvestmentApi extends runtime.BaseAPI {
|
|
27
|
+
/**
|
|
28
|
+
* Get asset
|
|
29
|
+
*/
|
|
30
|
+
getAssetRaw(requestParameters: GetAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InvestmentsAsset>>;
|
|
31
|
+
/**
|
|
32
|
+
* Get asset
|
|
33
|
+
*/
|
|
34
|
+
getAsset(requestParameters: GetAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InvestmentsAsset>;
|
|
35
|
+
/**
|
|
36
|
+
* Get investment
|
|
37
|
+
*/
|
|
38
|
+
getInvestmentRaw(requestParameters: GetInvestmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InvestmentsAccount>>;
|
|
39
|
+
/**
|
|
40
|
+
* Get investment
|
|
41
|
+
*/
|
|
42
|
+
getInvestment(requestParameters: GetInvestmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InvestmentsAccount>;
|
|
43
|
+
/**
|
|
44
|
+
* List investment assets
|
|
45
|
+
*/
|
|
46
|
+
listInvestmentAssetsRaw(requestParameters: ListInvestmentAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InvestmentsListAssetResponse>>;
|
|
47
|
+
/**
|
|
48
|
+
* List investment assets
|
|
49
|
+
*/
|
|
50
|
+
listInvestmentAssets(requestParameters: ListInvestmentAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InvestmentsListAssetResponse>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Equisoft /connect API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: latest
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.InvestmentApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class InvestmentApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Get asset
|
|
34
|
+
*/
|
|
35
|
+
getAssetRaw(requestParameters, initOverrides) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['id'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getAsset().');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
43
|
+
// oauth required
|
|
44
|
+
const token = this.configuration.accessToken;
|
|
45
|
+
const tokenString = yield token("OAuth2", ["crm:investment:read"]);
|
|
46
|
+
if (tokenString) {
|
|
47
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
const response = yield this.request({
|
|
51
|
+
path: `/crm/api/v1/investmentAssets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
52
|
+
method: 'GET',
|
|
53
|
+
headers: headerParameters,
|
|
54
|
+
query: queryParameters,
|
|
55
|
+
}, initOverrides);
|
|
56
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.InvestmentsAssetFromJSON)(jsonValue));
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get asset
|
|
61
|
+
*/
|
|
62
|
+
getAsset(requestParameters, initOverrides) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const response = yield this.getAssetRaw(requestParameters, initOverrides);
|
|
65
|
+
return yield response.value();
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Get investment
|
|
70
|
+
*/
|
|
71
|
+
getInvestmentRaw(requestParameters, initOverrides) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
if (requestParameters['id'] == null) {
|
|
74
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getInvestment().');
|
|
75
|
+
}
|
|
76
|
+
const queryParameters = {};
|
|
77
|
+
const headerParameters = {};
|
|
78
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
79
|
+
// oauth required
|
|
80
|
+
const token = this.configuration.accessToken;
|
|
81
|
+
const tokenString = yield token("OAuth2", ["crm:investment:read"]);
|
|
82
|
+
if (tokenString) {
|
|
83
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
const response = yield this.request({
|
|
87
|
+
path: `/crm/api/v1/investmentAccounts/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
88
|
+
method: 'GET',
|
|
89
|
+
headers: headerParameters,
|
|
90
|
+
query: queryParameters,
|
|
91
|
+
}, initOverrides);
|
|
92
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.InvestmentsAccountFromJSON)(jsonValue));
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Get investment
|
|
97
|
+
*/
|
|
98
|
+
getInvestment(requestParameters, initOverrides) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const response = yield this.getInvestmentRaw(requestParameters, initOverrides);
|
|
101
|
+
return yield response.value();
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* List investment assets
|
|
106
|
+
*/
|
|
107
|
+
listInvestmentAssetsRaw(requestParameters, initOverrides) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
if (requestParameters['id'] == null) {
|
|
110
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling listInvestmentAssets().');
|
|
111
|
+
}
|
|
112
|
+
const queryParameters = {};
|
|
113
|
+
const headerParameters = {};
|
|
114
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
115
|
+
// oauth required
|
|
116
|
+
const token = this.configuration.accessToken;
|
|
117
|
+
const tokenString = yield token("OAuth2", ["crm:investment:read"]);
|
|
118
|
+
if (tokenString) {
|
|
119
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
const response = yield this.request({
|
|
123
|
+
path: `/crm/api/v1/investmentAccounts/{id}/assets`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
124
|
+
method: 'GET',
|
|
125
|
+
headers: headerParameters,
|
|
126
|
+
query: queryParameters,
|
|
127
|
+
}, initOverrides);
|
|
128
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.InvestmentsListAssetResponseFromJSON)(jsonValue));
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* List investment assets
|
|
133
|
+
*/
|
|
134
|
+
listInvestmentAssets(requestParameters, initOverrides) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
const response = yield this.listInvestmentAssetsRaw(requestParameters, initOverrides);
|
|
137
|
+
return yield response.value();
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
exports.InvestmentApi = InvestmentApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './DocumentsApi';
|
|
|
5
5
|
export * from './EventsApi';
|
|
6
6
|
export * from './FieldValuesApi';
|
|
7
7
|
export * from './GatewaysApi';
|
|
8
|
+
export * from './InvestmentApi';
|
|
8
9
|
export * from './LegacyContactApi';
|
|
9
10
|
export * from './LegacyDocumentApi';
|
|
10
11
|
export * from './LegacyFieldValuesApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./DocumentsApi"), exports);
|
|
|
23
23
|
__exportStar(require("./EventsApi"), exports);
|
|
24
24
|
__exportStar(require("./FieldValuesApi"), exports);
|
|
25
25
|
__exportStar(require("./GatewaysApi"), exports);
|
|
26
|
+
__exportStar(require("./InvestmentApi"), exports);
|
|
26
27
|
__exportStar(require("./LegacyContactApi"), exports);
|
|
27
28
|
__exportStar(require("./LegacyDocumentApi"), exports);
|
|
28
29
|
__exportStar(require("./LegacyFieldValuesApi"), exports);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Equisoft /connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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 { InvestmentsAccount, InvestmentsAsset, InvestmentsListAssetResponse } from '../models/index';
|
|
14
|
+
export interface GetAssetRequest {
|
|
15
|
+
id: number;
|
|
16
|
+
}
|
|
17
|
+
export interface GetInvestmentRequest {
|
|
18
|
+
id: number;
|
|
19
|
+
}
|
|
20
|
+
export interface ListInvestmentAssetsRequest {
|
|
21
|
+
id: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class InvestmentApi extends runtime.BaseAPI {
|
|
27
|
+
/**
|
|
28
|
+
* Get asset
|
|
29
|
+
*/
|
|
30
|
+
getAssetRaw(requestParameters: GetAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InvestmentsAsset>>;
|
|
31
|
+
/**
|
|
32
|
+
* Get asset
|
|
33
|
+
*/
|
|
34
|
+
getAsset(requestParameters: GetAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InvestmentsAsset>;
|
|
35
|
+
/**
|
|
36
|
+
* Get investment
|
|
37
|
+
*/
|
|
38
|
+
getInvestmentRaw(requestParameters: GetInvestmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InvestmentsAccount>>;
|
|
39
|
+
/**
|
|
40
|
+
* Get investment
|
|
41
|
+
*/
|
|
42
|
+
getInvestment(requestParameters: GetInvestmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InvestmentsAccount>;
|
|
43
|
+
/**
|
|
44
|
+
* List investment assets
|
|
45
|
+
*/
|
|
46
|
+
listInvestmentAssetsRaw(requestParameters: ListInvestmentAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InvestmentsListAssetResponse>>;
|
|
47
|
+
/**
|
|
48
|
+
* List investment assets
|
|
49
|
+
*/
|
|
50
|
+
listInvestmentAssets(requestParameters: ListInvestmentAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InvestmentsListAssetResponse>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Equisoft /connect API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { InvestmentsAccountFromJSON, InvestmentsAssetFromJSON, InvestmentsListAssetResponseFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class InvestmentApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Get asset
|
|
31
|
+
*/
|
|
32
|
+
getAssetRaw(requestParameters, initOverrides) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['id'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getAsset().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
40
|
+
// oauth required
|
|
41
|
+
const token = this.configuration.accessToken;
|
|
42
|
+
const tokenString = yield token("OAuth2", ["crm:investment:read"]);
|
|
43
|
+
if (tokenString) {
|
|
44
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
const response = yield this.request({
|
|
48
|
+
path: `/crm/api/v1/investmentAssets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
49
|
+
method: 'GET',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
}, initOverrides);
|
|
53
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InvestmentsAssetFromJSON(jsonValue));
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Get asset
|
|
58
|
+
*/
|
|
59
|
+
getAsset(requestParameters, initOverrides) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const response = yield this.getAssetRaw(requestParameters, initOverrides);
|
|
62
|
+
return yield response.value();
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Get investment
|
|
67
|
+
*/
|
|
68
|
+
getInvestmentRaw(requestParameters, initOverrides) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
if (requestParameters['id'] == null) {
|
|
71
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getInvestment().');
|
|
72
|
+
}
|
|
73
|
+
const queryParameters = {};
|
|
74
|
+
const headerParameters = {};
|
|
75
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
76
|
+
// oauth required
|
|
77
|
+
const token = this.configuration.accessToken;
|
|
78
|
+
const tokenString = yield token("OAuth2", ["crm:investment:read"]);
|
|
79
|
+
if (tokenString) {
|
|
80
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
const response = yield this.request({
|
|
84
|
+
path: `/crm/api/v1/investmentAccounts/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
85
|
+
method: 'GET',
|
|
86
|
+
headers: headerParameters,
|
|
87
|
+
query: queryParameters,
|
|
88
|
+
}, initOverrides);
|
|
89
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InvestmentsAccountFromJSON(jsonValue));
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Get investment
|
|
94
|
+
*/
|
|
95
|
+
getInvestment(requestParameters, initOverrides) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
const response = yield this.getInvestmentRaw(requestParameters, initOverrides);
|
|
98
|
+
return yield response.value();
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* List investment assets
|
|
103
|
+
*/
|
|
104
|
+
listInvestmentAssetsRaw(requestParameters, initOverrides) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
if (requestParameters['id'] == null) {
|
|
107
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling listInvestmentAssets().');
|
|
108
|
+
}
|
|
109
|
+
const queryParameters = {};
|
|
110
|
+
const headerParameters = {};
|
|
111
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
112
|
+
// oauth required
|
|
113
|
+
const token = this.configuration.accessToken;
|
|
114
|
+
const tokenString = yield token("OAuth2", ["crm:investment:read"]);
|
|
115
|
+
if (tokenString) {
|
|
116
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
const response = yield this.request({
|
|
120
|
+
path: `/crm/api/v1/investmentAccounts/{id}/assets`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
121
|
+
method: 'GET',
|
|
122
|
+
headers: headerParameters,
|
|
123
|
+
query: queryParameters,
|
|
124
|
+
}, initOverrides);
|
|
125
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InvestmentsListAssetResponseFromJSON(jsonValue));
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* List investment assets
|
|
130
|
+
*/
|
|
131
|
+
listInvestmentAssets(requestParameters, initOverrides) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
const response = yield this.listInvestmentAssetsRaw(requestParameters, initOverrides);
|
|
134
|
+
return yield response.value();
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './DocumentsApi';
|
|
|
5
5
|
export * from './EventsApi';
|
|
6
6
|
export * from './FieldValuesApi';
|
|
7
7
|
export * from './GatewaysApi';
|
|
8
|
+
export * from './InvestmentApi';
|
|
8
9
|
export * from './LegacyContactApi';
|
|
9
10
|
export * from './LegacyDocumentApi';
|
|
10
11
|
export * from './LegacyFieldValuesApi';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export * from './DocumentsApi';
|
|
|
7
7
|
export * from './EventsApi';
|
|
8
8
|
export * from './FieldValuesApi';
|
|
9
9
|
export * from './GatewaysApi';
|
|
10
|
+
export * from './InvestmentApi';
|
|
10
11
|
export * from './LegacyContactApi';
|
|
11
12
|
export * from './LegacyDocumentApi';
|
|
12
13
|
export * from './LegacyFieldValuesApi';
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { InvestmentsProduct } from './InvestmentsProduct';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -159,6 +160,12 @@ export interface InvestmentsAsset {
|
|
|
159
160
|
* @memberof InvestmentsAsset
|
|
160
161
|
*/
|
|
161
162
|
redeemable?: string | null;
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @type {InvestmentsProduct}
|
|
166
|
+
* @memberof InvestmentsAsset
|
|
167
|
+
*/
|
|
168
|
+
product?: InvestmentsProduct | null;
|
|
162
169
|
}
|
|
163
170
|
/**
|
|
164
171
|
* Check if a given object implements the InvestmentsAsset interface.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { InvestmentsProductFromJSON, InvestmentsProductToJSON, } from './InvestmentsProduct';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the InvestmentsAsset interface.
|
|
16
17
|
*/
|
|
@@ -49,6 +50,7 @@ export function InvestmentsAssetFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
50
|
'interestRateFixed': json['interestRateFixed'] == null ? undefined : json['interestRateFixed'],
|
|
50
51
|
'interestFrequency': json['interestFrequency'] == null ? undefined : json['interestFrequency'],
|
|
51
52
|
'redeemable': json['redeemable'] == null ? undefined : json['redeemable'],
|
|
53
|
+
'product': json['product'] == null ? undefined : InvestmentsProductFromJSON(json['product']),
|
|
52
54
|
};
|
|
53
55
|
}
|
|
54
56
|
export function InvestmentsAssetToJSON(json) {
|
|
@@ -83,5 +85,6 @@ export function InvestmentsAssetToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
83
85
|
'interestRateFixed': value['interestRateFixed'],
|
|
84
86
|
'interestFrequency': value['interestFrequency'],
|
|
85
87
|
'redeemable': value['redeemable'],
|
|
88
|
+
'product': InvestmentsProductToJSON(value['product']),
|
|
86
89
|
};
|
|
87
90
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Equisoft /connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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 { InvestmentsAsset } from './InvestmentsAsset';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface InvestmentsListAssetResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface InvestmentsListAssetResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Opaque token used to get the next page of the result. Omitted if no more results.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof InvestmentsListAssetResponse
|
|
23
|
+
*/
|
|
24
|
+
nextPageToken?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<InvestmentsAsset>}
|
|
28
|
+
* @memberof InvestmentsListAssetResponse
|
|
29
|
+
*/
|
|
30
|
+
items: Array<InvestmentsAsset>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the InvestmentsListAssetResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfInvestmentsListAssetResponse(value: object): value is InvestmentsListAssetResponse;
|
|
36
|
+
export declare function InvestmentsListAssetResponseFromJSON(json: any): InvestmentsListAssetResponse;
|
|
37
|
+
export declare function InvestmentsListAssetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvestmentsListAssetResponse;
|
|
38
|
+
export declare function InvestmentsListAssetResponseToJSON(json: any): InvestmentsListAssetResponse;
|
|
39
|
+
export declare function InvestmentsListAssetResponseToJSONTyped(value?: InvestmentsListAssetResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Equisoft /connect API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
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
|
+
import { InvestmentsAssetFromJSON, InvestmentsAssetToJSON, } from './InvestmentsAsset';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the InvestmentsListAssetResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfInvestmentsListAssetResponse(value) {
|
|
19
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function InvestmentsListAssetResponseFromJSON(json) {
|
|
24
|
+
return InvestmentsListAssetResponseFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function InvestmentsListAssetResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
32
|
+
'items': (json['items'].map(InvestmentsAssetFromJSON)),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function InvestmentsListAssetResponseToJSON(json) {
|
|
36
|
+
return InvestmentsListAssetResponseToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function InvestmentsListAssetResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'nextPageToken': value['nextPageToken'],
|
|
44
|
+
'items': (value['items'].map(InvestmentsAssetToJSON)),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Equisoft /connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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 InvestmentsProduct
|
|
16
|
+
*/
|
|
17
|
+
export interface InvestmentsProduct {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof InvestmentsProduct
|
|
22
|
+
*/
|
|
23
|
+
id?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InvestmentsProduct
|
|
28
|
+
*/
|
|
29
|
+
code?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InvestmentsProduct
|
|
34
|
+
*/
|
|
35
|
+
secondaryCode?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof InvestmentsProduct
|
|
40
|
+
*/
|
|
41
|
+
type?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof InvestmentsProduct
|
|
46
|
+
*/
|
|
47
|
+
description?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof InvestmentsProduct
|
|
52
|
+
*/
|
|
53
|
+
fundIdentifier?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof InvestmentsProduct
|
|
58
|
+
*/
|
|
59
|
+
geographicRegion?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof InvestmentsProduct
|
|
64
|
+
*/
|
|
65
|
+
marketSector?: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the InvestmentsProduct interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfInvestmentsProduct(value: object): value is InvestmentsProduct;
|
|
71
|
+
export declare function InvestmentsProductFromJSON(json: any): InvestmentsProduct;
|
|
72
|
+
export declare function InvestmentsProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvestmentsProduct;
|
|
73
|
+
export declare function InvestmentsProductToJSON(json: any): InvestmentsProduct;
|
|
74
|
+
export declare function InvestmentsProductToJSONTyped(value?: InvestmentsProduct | null, ignoreDiscriminator?: boolean): any;
|