g-ten-security-sdk 1.0.0
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/dist/auth/authenticate.d.ts +30 -0
- package/dist/auth/authenticate.js +52 -0
- package/dist/auth/interceptor.d.ts +13 -0
- package/dist/auth/interceptor.js +74 -0
- package/dist/auth/tokenStore.d.ts +17 -0
- package/dist/auth/tokenStore.js +36 -0
- package/dist/client.d.ts +109 -0
- package/dist/client.js +157 -0
- package/dist/generated/src/apis/AuthApi.d.ts +139 -0
- package/dist/generated/src/apis/AuthApi.js +429 -0
- package/dist/generated/src/apis/BranchesApi.d.ts +77 -0
- package/dist/generated/src/apis/BranchesApi.js +228 -0
- package/dist/generated/src/apis/ChatApi.d.ts +34 -0
- package/dist/generated/src/apis/ChatApi.js +92 -0
- package/dist/generated/src/apis/DataApi.d.ts +112 -0
- package/dist/generated/src/apis/DataApi.js +297 -0
- package/dist/generated/src/apis/DefaultApi.d.ts +109 -0
- package/dist/generated/src/apis/DefaultApi.js +306 -0
- package/dist/generated/src/apis/DemoApi.d.ts +46 -0
- package/dist/generated/src/apis/DemoApi.js +129 -0
- package/dist/generated/src/apis/FraudApi.d.ts +311 -0
- package/dist/generated/src/apis/FraudApi.js +809 -0
- package/dist/generated/src/apis/HealthApi.d.ts +31 -0
- package/dist/generated/src/apis/HealthApi.js +92 -0
- package/dist/generated/src/apis/SchemaApi.d.ts +31 -0
- package/dist/generated/src/apis/SchemaApi.js +92 -0
- package/dist/generated/src/apis/WorkflowApi.d.ts +94 -0
- package/dist/generated/src/apis/WorkflowApi.js +269 -0
- package/dist/generated/src/apis/index.d.ts +10 -0
- package/dist/generated/src/apis/index.js +28 -0
- package/dist/generated/src/index.d.ts +3 -0
- package/dist/generated/src/index.js +21 -0
- package/dist/generated/src/models/Account.d.ts +122 -0
- package/dist/generated/src/models/Account.js +92 -0
- package/dist/generated/src/models/AlertStatusUpdate.d.ts +32 -0
- package/dist/generated/src/models/AlertStatusUpdate.js +50 -0
- package/dist/generated/src/models/AssignRequest.d.ts +32 -0
- package/dist/generated/src/models/AssignRequest.js +48 -0
- package/dist/generated/src/models/BranchCreate.d.ts +44 -0
- package/dist/generated/src/models/BranchCreate.js +56 -0
- package/dist/generated/src/models/BranchUpdate.d.ts +38 -0
- package/dist/generated/src/models/BranchUpdate.js +50 -0
- package/dist/generated/src/models/ChatRequest.d.ts +39 -0
- package/dist/generated/src/models/ChatRequest.js +53 -0
- package/dist/generated/src/models/ChatResponse.d.ts +32 -0
- package/dist/generated/src/models/ChatResponse.js +50 -0
- package/dist/generated/src/models/HTTPValidationError.d.ts +33 -0
- package/dist/generated/src/models/HTTPValidationError.js +49 -0
- package/dist/generated/src/models/HistoryTurn.d.ts +38 -0
- package/dist/generated/src/models/HistoryTurn.js +54 -0
- package/dist/generated/src/models/InjectPatternRequest.d.ts +32 -0
- package/dist/generated/src/models/InjectPatternRequest.js +50 -0
- package/dist/generated/src/models/LocationInner.d.ts +26 -0
- package/dist/generated/src/models/LocationInner.js +38 -0
- package/dist/generated/src/models/NarrativeRequest.d.ts +44 -0
- package/dist/generated/src/models/NarrativeRequest.js +52 -0
- package/dist/generated/src/models/NoteCreate.d.ts +38 -0
- package/dist/generated/src/models/NoteCreate.js +52 -0
- package/dist/generated/src/models/PasswordUpdate.d.ts +32 -0
- package/dist/generated/src/models/PasswordUpdate.js +50 -0
- package/dist/generated/src/models/StreamConfigRequest.d.ts +32 -0
- package/dist/generated/src/models/StreamConfigRequest.js +50 -0
- package/dist/generated/src/models/Token.d.ts +46 -0
- package/dist/generated/src/models/Token.js +58 -0
- package/dist/generated/src/models/Transaction.d.ts +74 -0
- package/dist/generated/src/models/Transaction.js +78 -0
- package/dist/generated/src/models/UserCreate.d.ts +56 -0
- package/dist/generated/src/models/UserCreate.js +62 -0
- package/dist/generated/src/models/UserOut.d.ts +62 -0
- package/dist/generated/src/models/UserOut.js +66 -0
- package/dist/generated/src/models/ValidationError.d.ts +57 -0
- package/dist/generated/src/models/ValidationError.js +63 -0
- package/dist/generated/src/models/index.d.ts +20 -0
- package/dist/generated/src/models/index.js +38 -0
- package/dist/generated/src/runtime.d.ts +184 -0
- package/dist/generated/src/runtime.js +353 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +40 -0
- package/dist/types/index.d.ts +85 -0
- package/dist/types/index.js +5 -0
- package/dist/utils/errors.d.ts +33 -0
- package/dist/utils/errors.js +52 -0
- package/dist/utils/validators.d.ts +10 -0
- package/dist/utils/validators.js +26 -0
- package/dist/wrappers/alerts.d.ts +29 -0
- package/dist/wrappers/alerts.js +52 -0
- package/dist/wrappers/analytics.d.ts +8 -0
- package/dist/wrappers/analytics.js +15 -0
- package/dist/wrappers/copilot.d.ts +8 -0
- package/dist/wrappers/copilot.js +20 -0
- package/dist/wrappers/data.d.ts +55 -0
- package/dist/wrappers/data.js +127 -0
- package/dist/wrappers/fraud.d.ts +46 -0
- package/dist/wrappers/fraud.js +84 -0
- package/dist/wrappers/investigation.d.ts +31 -0
- package/dist/wrappers/investigation.js +77 -0
- package/package.json +18 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* G-TEN
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.BranchesApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const BranchCreate_1 = require("../models/BranchCreate");
|
|
52
|
+
const BranchUpdate_1 = require("../models/BranchUpdate");
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
class BranchesApi extends runtime.BaseAPI {
|
|
57
|
+
/**
|
|
58
|
+
* Creates request options for createBranchApiV1BranchesPost without sending the request
|
|
59
|
+
*/
|
|
60
|
+
async createBranchApiV1BranchesPostRequestOpts(requestParameters) {
|
|
61
|
+
if (requestParameters['branchCreate'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('branchCreate', 'Required parameter "branchCreate" was null or undefined when calling createBranchApiV1BranchesPost().');
|
|
63
|
+
}
|
|
64
|
+
const queryParameters = {};
|
|
65
|
+
const headerParameters = {};
|
|
66
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
67
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
68
|
+
// oauth required
|
|
69
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2PasswordBearer", []);
|
|
70
|
+
}
|
|
71
|
+
let urlPath = `/api/v1/branches`;
|
|
72
|
+
return {
|
|
73
|
+
path: urlPath,
|
|
74
|
+
method: 'POST',
|
|
75
|
+
headers: headerParameters,
|
|
76
|
+
query: queryParameters,
|
|
77
|
+
body: (0, BranchCreate_1.BranchCreateToJSON)(requestParameters['branchCreate']),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Create Branch
|
|
82
|
+
*/
|
|
83
|
+
async createBranchApiV1BranchesPostRaw(requestParameters, initOverrides) {
|
|
84
|
+
const requestOptions = await this.createBranchApiV1BranchesPostRequestOpts(requestParameters);
|
|
85
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
86
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
87
|
+
return new runtime.JSONApiResponse(response);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
return new runtime.TextApiResponse(response);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Create Branch
|
|
95
|
+
*/
|
|
96
|
+
async createBranchApiV1BranchesPost(requestParameters, initOverrides) {
|
|
97
|
+
const response = await this.createBranchApiV1BranchesPostRaw(requestParameters, initOverrides);
|
|
98
|
+
return await response.value();
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Creates request options for deleteBranchApiV1BranchesBranchIdDelete without sending the request
|
|
102
|
+
*/
|
|
103
|
+
async deleteBranchApiV1BranchesBranchIdDeleteRequestOpts(requestParameters) {
|
|
104
|
+
if (requestParameters['branchId'] == null) {
|
|
105
|
+
throw new runtime.RequiredError('branchId', 'Required parameter "branchId" was null or undefined when calling deleteBranchApiV1BranchesBranchIdDelete().');
|
|
106
|
+
}
|
|
107
|
+
const queryParameters = {};
|
|
108
|
+
const headerParameters = {};
|
|
109
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
110
|
+
// oauth required
|
|
111
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2PasswordBearer", []);
|
|
112
|
+
}
|
|
113
|
+
let urlPath = `/api/v1/branches/{branch_id}`;
|
|
114
|
+
urlPath = urlPath.replace('{branch_id}', encodeURIComponent(String(requestParameters['branchId'])));
|
|
115
|
+
return {
|
|
116
|
+
path: urlPath,
|
|
117
|
+
method: 'DELETE',
|
|
118
|
+
headers: headerParameters,
|
|
119
|
+
query: queryParameters,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Delete Branch
|
|
124
|
+
*/
|
|
125
|
+
async deleteBranchApiV1BranchesBranchIdDeleteRaw(requestParameters, initOverrides) {
|
|
126
|
+
const requestOptions = await this.deleteBranchApiV1BranchesBranchIdDeleteRequestOpts(requestParameters);
|
|
127
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
128
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
129
|
+
return new runtime.JSONApiResponse(response);
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
return new runtime.TextApiResponse(response);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Delete Branch
|
|
137
|
+
*/
|
|
138
|
+
async deleteBranchApiV1BranchesBranchIdDelete(requestParameters, initOverrides) {
|
|
139
|
+
const response = await this.deleteBranchApiV1BranchesBranchIdDeleteRaw(requestParameters, initOverrides);
|
|
140
|
+
return await response.value();
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Creates request options for getBranchesApiV1BranchesGet without sending the request
|
|
144
|
+
*/
|
|
145
|
+
async getBranchesApiV1BranchesGetRequestOpts() {
|
|
146
|
+
const queryParameters = {};
|
|
147
|
+
const headerParameters = {};
|
|
148
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
149
|
+
// oauth required
|
|
150
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2PasswordBearer", []);
|
|
151
|
+
}
|
|
152
|
+
let urlPath = `/api/v1/branches`;
|
|
153
|
+
return {
|
|
154
|
+
path: urlPath,
|
|
155
|
+
method: 'GET',
|
|
156
|
+
headers: headerParameters,
|
|
157
|
+
query: queryParameters,
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Get Branches
|
|
162
|
+
*/
|
|
163
|
+
async getBranchesApiV1BranchesGetRaw(initOverrides) {
|
|
164
|
+
const requestOptions = await this.getBranchesApiV1BranchesGetRequestOpts();
|
|
165
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
166
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
167
|
+
return new runtime.JSONApiResponse(response);
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
return new runtime.TextApiResponse(response);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Get Branches
|
|
175
|
+
*/
|
|
176
|
+
async getBranchesApiV1BranchesGet(initOverrides) {
|
|
177
|
+
const response = await this.getBranchesApiV1BranchesGetRaw(initOverrides);
|
|
178
|
+
return await response.value();
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Creates request options for updateBranchApiV1BranchesBranchIdPatch without sending the request
|
|
182
|
+
*/
|
|
183
|
+
async updateBranchApiV1BranchesBranchIdPatchRequestOpts(requestParameters) {
|
|
184
|
+
if (requestParameters['branchId'] == null) {
|
|
185
|
+
throw new runtime.RequiredError('branchId', 'Required parameter "branchId" was null or undefined when calling updateBranchApiV1BranchesBranchIdPatch().');
|
|
186
|
+
}
|
|
187
|
+
if (requestParameters['branchUpdate'] == null) {
|
|
188
|
+
throw new runtime.RequiredError('branchUpdate', 'Required parameter "branchUpdate" was null or undefined when calling updateBranchApiV1BranchesBranchIdPatch().');
|
|
189
|
+
}
|
|
190
|
+
const queryParameters = {};
|
|
191
|
+
const headerParameters = {};
|
|
192
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
193
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
194
|
+
// oauth required
|
|
195
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2PasswordBearer", []);
|
|
196
|
+
}
|
|
197
|
+
let urlPath = `/api/v1/branches/{branch_id}`;
|
|
198
|
+
urlPath = urlPath.replace('{branch_id}', encodeURIComponent(String(requestParameters['branchId'])));
|
|
199
|
+
return {
|
|
200
|
+
path: urlPath,
|
|
201
|
+
method: 'PATCH',
|
|
202
|
+
headers: headerParameters,
|
|
203
|
+
query: queryParameters,
|
|
204
|
+
body: (0, BranchUpdate_1.BranchUpdateToJSON)(requestParameters['branchUpdate']),
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Update Branch
|
|
209
|
+
*/
|
|
210
|
+
async updateBranchApiV1BranchesBranchIdPatchRaw(requestParameters, initOverrides) {
|
|
211
|
+
const requestOptions = await this.updateBranchApiV1BranchesBranchIdPatchRequestOpts(requestParameters);
|
|
212
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
213
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
214
|
+
return new runtime.JSONApiResponse(response);
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
return new runtime.TextApiResponse(response);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Update Branch
|
|
222
|
+
*/
|
|
223
|
+
async updateBranchApiV1BranchesBranchIdPatch(requestParameters, initOverrides) {
|
|
224
|
+
const response = await this.updateBranchApiV1BranchesBranchIdPatchRaw(requestParameters, initOverrides);
|
|
225
|
+
return await response.value();
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
exports.BranchesApi = BranchesApi;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* G-TEN
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import { type ChatRequest } from '../models/ChatRequest';
|
|
14
|
+
import { type ChatResponse } from '../models/ChatResponse';
|
|
15
|
+
export interface HandleChatApiV1ChatPostRequest {
|
|
16
|
+
chatRequest: ChatRequest;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export declare class ChatApi extends runtime.BaseAPI {
|
|
22
|
+
/**
|
|
23
|
+
* Creates request options for handleChatApiV1ChatPost without sending the request
|
|
24
|
+
*/
|
|
25
|
+
handleChatApiV1ChatPostRequestOpts(requestParameters: HandleChatApiV1ChatPostRequest): Promise<runtime.RequestOpts>;
|
|
26
|
+
/**
|
|
27
|
+
* Handle Chat
|
|
28
|
+
*/
|
|
29
|
+
handleChatApiV1ChatPostRaw(requestParameters: HandleChatApiV1ChatPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChatResponse>>;
|
|
30
|
+
/**
|
|
31
|
+
* Handle Chat
|
|
32
|
+
*/
|
|
33
|
+
handleChatApiV1ChatPost(requestParameters: HandleChatApiV1ChatPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChatResponse>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* G-TEN
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.ChatApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const ChatRequest_1 = require("../models/ChatRequest");
|
|
52
|
+
const ChatResponse_1 = require("../models/ChatResponse");
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
class ChatApi extends runtime.BaseAPI {
|
|
57
|
+
/**
|
|
58
|
+
* Creates request options for handleChatApiV1ChatPost without sending the request
|
|
59
|
+
*/
|
|
60
|
+
async handleChatApiV1ChatPostRequestOpts(requestParameters) {
|
|
61
|
+
if (requestParameters['chatRequest'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('chatRequest', 'Required parameter "chatRequest" was null or undefined when calling handleChatApiV1ChatPost().');
|
|
63
|
+
}
|
|
64
|
+
const queryParameters = {};
|
|
65
|
+
const headerParameters = {};
|
|
66
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
67
|
+
let urlPath = `/api/v1/chat/`;
|
|
68
|
+
return {
|
|
69
|
+
path: urlPath,
|
|
70
|
+
method: 'POST',
|
|
71
|
+
headers: headerParameters,
|
|
72
|
+
query: queryParameters,
|
|
73
|
+
body: (0, ChatRequest_1.ChatRequestToJSON)(requestParameters['chatRequest']),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Handle Chat
|
|
78
|
+
*/
|
|
79
|
+
async handleChatApiV1ChatPostRaw(requestParameters, initOverrides) {
|
|
80
|
+
const requestOptions = await this.handleChatApiV1ChatPostRequestOpts(requestParameters);
|
|
81
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
82
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ChatResponse_1.ChatResponseFromJSON)(jsonValue));
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Handle Chat
|
|
86
|
+
*/
|
|
87
|
+
async handleChatApiV1ChatPost(requestParameters, initOverrides) {
|
|
88
|
+
const response = await this.handleChatApiV1ChatPostRaw(requestParameters, initOverrides);
|
|
89
|
+
return await response.value();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.ChatApi = ChatApi;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* G-TEN
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import { type NoteCreate } from '../models/NoteCreate';
|
|
14
|
+
export interface AddAccountNoteApiV1AccountsAccountIdNotesPostRequest {
|
|
15
|
+
accountId: string;
|
|
16
|
+
noteCreate: NoteCreate;
|
|
17
|
+
}
|
|
18
|
+
export interface GetAccountApiV1AccountsAccountIdGetRequest {
|
|
19
|
+
accountId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GetAccountNotesApiV1AccountsAccountIdNotesGetRequest {
|
|
22
|
+
accountId: string;
|
|
23
|
+
}
|
|
24
|
+
export interface GetAllAccountsApiV1AccountsGetRequest {
|
|
25
|
+
skip?: number;
|
|
26
|
+
limit?: number;
|
|
27
|
+
branchCode?: string | null;
|
|
28
|
+
}
|
|
29
|
+
export interface GetAllTransactionsApiV1TransactionsGetRequest {
|
|
30
|
+
skip?: number;
|
|
31
|
+
limit?: number;
|
|
32
|
+
}
|
|
33
|
+
export interface GetTransactionApiV1TransactionsTxnIdGetRequest {
|
|
34
|
+
txnId: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
export declare class DataApi extends runtime.BaseAPI {
|
|
40
|
+
/**
|
|
41
|
+
* Creates request options for addAccountNoteApiV1AccountsAccountIdNotesPost without sending the request
|
|
42
|
+
*/
|
|
43
|
+
addAccountNoteApiV1AccountsAccountIdNotesPostRequestOpts(requestParameters: AddAccountNoteApiV1AccountsAccountIdNotesPostRequest): Promise<runtime.RequestOpts>;
|
|
44
|
+
/**
|
|
45
|
+
* Add Account Note
|
|
46
|
+
*/
|
|
47
|
+
addAccountNoteApiV1AccountsAccountIdNotesPostRaw(requestParameters: AddAccountNoteApiV1AccountsAccountIdNotesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
|
|
48
|
+
/**
|
|
49
|
+
* Add Account Note
|
|
50
|
+
*/
|
|
51
|
+
addAccountNoteApiV1AccountsAccountIdNotesPost(requestParameters: AddAccountNoteApiV1AccountsAccountIdNotesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
52
|
+
/**
|
|
53
|
+
* Creates request options for getAccountApiV1AccountsAccountIdGet without sending the request
|
|
54
|
+
*/
|
|
55
|
+
getAccountApiV1AccountsAccountIdGetRequestOpts(requestParameters: GetAccountApiV1AccountsAccountIdGetRequest): Promise<runtime.RequestOpts>;
|
|
56
|
+
/**
|
|
57
|
+
* Get Account
|
|
58
|
+
*/
|
|
59
|
+
getAccountApiV1AccountsAccountIdGetRaw(requestParameters: GetAccountApiV1AccountsAccountIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
|
|
60
|
+
/**
|
|
61
|
+
* Get Account
|
|
62
|
+
*/
|
|
63
|
+
getAccountApiV1AccountsAccountIdGet(requestParameters: GetAccountApiV1AccountsAccountIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
64
|
+
/**
|
|
65
|
+
* Creates request options for getAccountNotesApiV1AccountsAccountIdNotesGet without sending the request
|
|
66
|
+
*/
|
|
67
|
+
getAccountNotesApiV1AccountsAccountIdNotesGetRequestOpts(requestParameters: GetAccountNotesApiV1AccountsAccountIdNotesGetRequest): Promise<runtime.RequestOpts>;
|
|
68
|
+
/**
|
|
69
|
+
* Get Account Notes
|
|
70
|
+
*/
|
|
71
|
+
getAccountNotesApiV1AccountsAccountIdNotesGetRaw(requestParameters: GetAccountNotesApiV1AccountsAccountIdNotesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
|
|
72
|
+
/**
|
|
73
|
+
* Get Account Notes
|
|
74
|
+
*/
|
|
75
|
+
getAccountNotesApiV1AccountsAccountIdNotesGet(requestParameters: GetAccountNotesApiV1AccountsAccountIdNotesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
76
|
+
/**
|
|
77
|
+
* Creates request options for getAllAccountsApiV1AccountsGet without sending the request
|
|
78
|
+
*/
|
|
79
|
+
getAllAccountsApiV1AccountsGetRequestOpts(requestParameters: GetAllAccountsApiV1AccountsGetRequest): Promise<runtime.RequestOpts>;
|
|
80
|
+
/**
|
|
81
|
+
* Get All Accounts
|
|
82
|
+
*/
|
|
83
|
+
getAllAccountsApiV1AccountsGetRaw(requestParameters: GetAllAccountsApiV1AccountsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
|
|
84
|
+
/**
|
|
85
|
+
* Get All Accounts
|
|
86
|
+
*/
|
|
87
|
+
getAllAccountsApiV1AccountsGet(requestParameters?: GetAllAccountsApiV1AccountsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
88
|
+
/**
|
|
89
|
+
* Creates request options for getAllTransactionsApiV1TransactionsGet without sending the request
|
|
90
|
+
*/
|
|
91
|
+
getAllTransactionsApiV1TransactionsGetRequestOpts(requestParameters: GetAllTransactionsApiV1TransactionsGetRequest): Promise<runtime.RequestOpts>;
|
|
92
|
+
/**
|
|
93
|
+
* Get All Transactions
|
|
94
|
+
*/
|
|
95
|
+
getAllTransactionsApiV1TransactionsGetRaw(requestParameters: GetAllTransactionsApiV1TransactionsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
|
|
96
|
+
/**
|
|
97
|
+
* Get All Transactions
|
|
98
|
+
*/
|
|
99
|
+
getAllTransactionsApiV1TransactionsGet(requestParameters?: GetAllTransactionsApiV1TransactionsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
100
|
+
/**
|
|
101
|
+
* Creates request options for getTransactionApiV1TransactionsTxnIdGet without sending the request
|
|
102
|
+
*/
|
|
103
|
+
getTransactionApiV1TransactionsTxnIdGetRequestOpts(requestParameters: GetTransactionApiV1TransactionsTxnIdGetRequest): Promise<runtime.RequestOpts>;
|
|
104
|
+
/**
|
|
105
|
+
* Get Transaction
|
|
106
|
+
*/
|
|
107
|
+
getTransactionApiV1TransactionsTxnIdGetRaw(requestParameters: GetTransactionApiV1TransactionsTxnIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
|
|
108
|
+
/**
|
|
109
|
+
* Get Transaction
|
|
110
|
+
*/
|
|
111
|
+
getTransactionApiV1TransactionsTxnIdGet(requestParameters: GetTransactionApiV1TransactionsTxnIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
112
|
+
}
|