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,122 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Account
|
|
16
|
+
*/
|
|
17
|
+
export interface Account {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Account
|
|
22
|
+
*/
|
|
23
|
+
accountId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Account
|
|
28
|
+
*/
|
|
29
|
+
entityId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Account
|
|
34
|
+
*/
|
|
35
|
+
accountType: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof Account
|
|
40
|
+
*/
|
|
41
|
+
kycTier: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Account
|
|
46
|
+
*/
|
|
47
|
+
status: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof Account
|
|
52
|
+
*/
|
|
53
|
+
openedOn: Date;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof Account
|
|
58
|
+
*/
|
|
59
|
+
riskCategory: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof Account
|
|
64
|
+
*/
|
|
65
|
+
declaredAnnualIncome?: number | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof Account
|
|
70
|
+
*/
|
|
71
|
+
txnCount7d?: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof Account
|
|
76
|
+
*/
|
|
77
|
+
txnCount30d?: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof Account
|
|
82
|
+
*/
|
|
83
|
+
volume7d?: number;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof Account
|
|
88
|
+
*/
|
|
89
|
+
volume30d?: number;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof Account
|
|
94
|
+
*/
|
|
95
|
+
avgMonthlyVolume?: number;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof Account
|
|
100
|
+
*/
|
|
101
|
+
avgMonthlyCount?: number;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof Account
|
|
106
|
+
*/
|
|
107
|
+
uniqueCounterparties30d?: number;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {Date}
|
|
111
|
+
* @memberof Account
|
|
112
|
+
*/
|
|
113
|
+
lastActiveTs?: Date | null;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Check if a given object implements the Account interface.
|
|
117
|
+
*/
|
|
118
|
+
export declare function instanceOfAccount(value: object): value is Account;
|
|
119
|
+
export declare function AccountFromJSON(json: any): Account;
|
|
120
|
+
export declare function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account;
|
|
121
|
+
export declare function AccountToJSON(json: any): Account;
|
|
122
|
+
export declare function AccountToJSONTyped(value?: Account | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAccount = instanceOfAccount;
|
|
17
|
+
exports.AccountFromJSON = AccountFromJSON;
|
|
18
|
+
exports.AccountFromJSONTyped = AccountFromJSONTyped;
|
|
19
|
+
exports.AccountToJSON = AccountToJSON;
|
|
20
|
+
exports.AccountToJSONTyped = AccountToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Account interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAccount(value) {
|
|
25
|
+
if ((!('accountId' in value) && !('account_id' in value)) || (value['accountId'] === undefined && value['account_id'] === undefined))
|
|
26
|
+
return false;
|
|
27
|
+
if ((!('entityId' in value) && !('entity_id' in value)) || (value['entityId'] === undefined && value['entity_id'] === undefined))
|
|
28
|
+
return false;
|
|
29
|
+
if ((!('accountType' in value) && !('account_type' in value)) || (value['accountType'] === undefined && value['account_type'] === undefined))
|
|
30
|
+
return false;
|
|
31
|
+
if ((!('kycTier' in value) && !('kyc_tier' in value)) || (value['kycTier'] === undefined && value['kyc_tier'] === undefined))
|
|
32
|
+
return false;
|
|
33
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if ((!('openedOn' in value) && !('opened_on' in value)) || (value['openedOn'] === undefined && value['opened_on'] === undefined))
|
|
36
|
+
return false;
|
|
37
|
+
if ((!('riskCategory' in value) && !('risk_category' in value)) || (value['riskCategory'] === undefined && value['risk_category'] === undefined))
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function AccountFromJSON(json) {
|
|
42
|
+
return AccountFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'accountId': json['account_id'],
|
|
50
|
+
'entityId': json['entity_id'],
|
|
51
|
+
'accountType': json['account_type'],
|
|
52
|
+
'kycTier': json['kyc_tier'],
|
|
53
|
+
'status': json['status'],
|
|
54
|
+
'openedOn': (new Date(json['opened_on'])),
|
|
55
|
+
'riskCategory': json['risk_category'],
|
|
56
|
+
'declaredAnnualIncome': json['declared_annual_income'] == null ? undefined : json['declared_annual_income'],
|
|
57
|
+
'txnCount7d': json['txn_count_7d'] == null ? undefined : json['txn_count_7d'],
|
|
58
|
+
'txnCount30d': json['txn_count_30d'] == null ? undefined : json['txn_count_30d'],
|
|
59
|
+
'volume7d': json['volume_7d'] == null ? undefined : json['volume_7d'],
|
|
60
|
+
'volume30d': json['volume_30d'] == null ? undefined : json['volume_30d'],
|
|
61
|
+
'avgMonthlyVolume': json['avg_monthly_volume'] == null ? undefined : json['avg_monthly_volume'],
|
|
62
|
+
'avgMonthlyCount': json['avg_monthly_count'] == null ? undefined : json['avg_monthly_count'],
|
|
63
|
+
'uniqueCounterparties30d': json['unique_counterparties_30d'] == null ? undefined : json['unique_counterparties_30d'],
|
|
64
|
+
'lastActiveTs': json['last_active_ts'] == null ? undefined : (new Date(json['last_active_ts'])),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function AccountToJSON(json) {
|
|
68
|
+
return AccountToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function AccountToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'account_id': value['accountId'],
|
|
76
|
+
'entity_id': value['entityId'],
|
|
77
|
+
'account_type': value['accountType'],
|
|
78
|
+
'kyc_tier': value['kycTier'],
|
|
79
|
+
'status': value['status'],
|
|
80
|
+
'opened_on': value['openedOn'].toISOString().substring(0, 10),
|
|
81
|
+
'risk_category': value['riskCategory'],
|
|
82
|
+
'declared_annual_income': value['declaredAnnualIncome'],
|
|
83
|
+
'txn_count_7d': value['txnCount7d'],
|
|
84
|
+
'txn_count_30d': value['txnCount30d'],
|
|
85
|
+
'volume_7d': value['volume7d'],
|
|
86
|
+
'volume_30d': value['volume30d'],
|
|
87
|
+
'avg_monthly_volume': value['avgMonthlyVolume'],
|
|
88
|
+
'avg_monthly_count': value['avgMonthlyCount'],
|
|
89
|
+
'unique_counterparties_30d': value['uniqueCounterparties30d'],
|
|
90
|
+
'last_active_ts': value['lastActiveTs'] == null ? value['lastActiveTs'] : value['lastActiveTs'].toISOString(),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AlertStatusUpdate
|
|
16
|
+
*/
|
|
17
|
+
export interface AlertStatusUpdate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AlertStatusUpdate
|
|
22
|
+
*/
|
|
23
|
+
status: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AlertStatusUpdate interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAlertStatusUpdate(value: object): value is AlertStatusUpdate;
|
|
29
|
+
export declare function AlertStatusUpdateFromJSON(json: any): AlertStatusUpdate;
|
|
30
|
+
export declare function AlertStatusUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): AlertStatusUpdate;
|
|
31
|
+
export declare function AlertStatusUpdateToJSON(json: any): AlertStatusUpdate;
|
|
32
|
+
export declare function AlertStatusUpdateToJSONTyped(value?: AlertStatusUpdate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAlertStatusUpdate = instanceOfAlertStatusUpdate;
|
|
17
|
+
exports.AlertStatusUpdateFromJSON = AlertStatusUpdateFromJSON;
|
|
18
|
+
exports.AlertStatusUpdateFromJSONTyped = AlertStatusUpdateFromJSONTyped;
|
|
19
|
+
exports.AlertStatusUpdateToJSON = AlertStatusUpdateToJSON;
|
|
20
|
+
exports.AlertStatusUpdateToJSONTyped = AlertStatusUpdateToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AlertStatusUpdate interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAlertStatusUpdate(value) {
|
|
25
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AlertStatusUpdateFromJSON(json) {
|
|
30
|
+
return AlertStatusUpdateFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AlertStatusUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'status': json['status'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AlertStatusUpdateToJSON(json) {
|
|
41
|
+
return AlertStatusUpdateToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AlertStatusUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'status': value['status'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AssignRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AssignRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AssignRequest
|
|
22
|
+
*/
|
|
23
|
+
assigneeId?: string | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AssignRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAssignRequest(value: object): value is AssignRequest;
|
|
29
|
+
export declare function AssignRequestFromJSON(json: any): AssignRequest;
|
|
30
|
+
export declare function AssignRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssignRequest;
|
|
31
|
+
export declare function AssignRequestToJSON(json: any): AssignRequest;
|
|
32
|
+
export declare function AssignRequestToJSONTyped(value?: AssignRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAssignRequest = instanceOfAssignRequest;
|
|
17
|
+
exports.AssignRequestFromJSON = AssignRequestFromJSON;
|
|
18
|
+
exports.AssignRequestFromJSONTyped = AssignRequestFromJSONTyped;
|
|
19
|
+
exports.AssignRequestToJSON = AssignRequestToJSON;
|
|
20
|
+
exports.AssignRequestToJSONTyped = AssignRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AssignRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAssignRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AssignRequestFromJSON(json) {
|
|
28
|
+
return AssignRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AssignRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'assigneeId': json['assignee_id'] == null ? undefined : json['assignee_id'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function AssignRequestToJSON(json) {
|
|
39
|
+
return AssignRequestToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function AssignRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'assignee_id': value['assigneeId'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BranchCreate
|
|
16
|
+
*/
|
|
17
|
+
export interface BranchCreate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BranchCreate
|
|
22
|
+
*/
|
|
23
|
+
branchCode: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BranchCreate
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BranchCreate
|
|
34
|
+
*/
|
|
35
|
+
city?: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the BranchCreate interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfBranchCreate(value: object): value is BranchCreate;
|
|
41
|
+
export declare function BranchCreateFromJSON(json: any): BranchCreate;
|
|
42
|
+
export declare function BranchCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): BranchCreate;
|
|
43
|
+
export declare function BranchCreateToJSON(json: any): BranchCreate;
|
|
44
|
+
export declare function BranchCreateToJSONTyped(value?: BranchCreate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfBranchCreate = instanceOfBranchCreate;
|
|
17
|
+
exports.BranchCreateFromJSON = BranchCreateFromJSON;
|
|
18
|
+
exports.BranchCreateFromJSONTyped = BranchCreateFromJSONTyped;
|
|
19
|
+
exports.BranchCreateToJSON = BranchCreateToJSON;
|
|
20
|
+
exports.BranchCreateToJSONTyped = BranchCreateToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BranchCreate interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBranchCreate(value) {
|
|
25
|
+
if ((!('branchCode' in value) && !('branch_code' in value)) || (value['branchCode'] === undefined && value['branch_code'] === undefined))
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function BranchCreateFromJSON(json) {
|
|
32
|
+
return BranchCreateFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function BranchCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'branchCode': json['branch_code'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'city': json['city'] == null ? undefined : json['city'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function BranchCreateToJSON(json) {
|
|
45
|
+
return BranchCreateToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function BranchCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'branch_code': value['branchCode'],
|
|
53
|
+
'name': value['name'],
|
|
54
|
+
'city': value['city'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BranchUpdate
|
|
16
|
+
*/
|
|
17
|
+
export interface BranchUpdate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BranchUpdate
|
|
22
|
+
*/
|
|
23
|
+
name?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BranchUpdate
|
|
28
|
+
*/
|
|
29
|
+
city?: string | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the BranchUpdate interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfBranchUpdate(value: object): value is BranchUpdate;
|
|
35
|
+
export declare function BranchUpdateFromJSON(json: any): BranchUpdate;
|
|
36
|
+
export declare function BranchUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): BranchUpdate;
|
|
37
|
+
export declare function BranchUpdateToJSON(json: any): BranchUpdate;
|
|
38
|
+
export declare function BranchUpdateToJSONTyped(value?: BranchUpdate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfBranchUpdate = instanceOfBranchUpdate;
|
|
17
|
+
exports.BranchUpdateFromJSON = BranchUpdateFromJSON;
|
|
18
|
+
exports.BranchUpdateFromJSONTyped = BranchUpdateFromJSONTyped;
|
|
19
|
+
exports.BranchUpdateToJSON = BranchUpdateToJSON;
|
|
20
|
+
exports.BranchUpdateToJSONTyped = BranchUpdateToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BranchUpdate interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBranchUpdate(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function BranchUpdateFromJSON(json) {
|
|
28
|
+
return BranchUpdateFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function BranchUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
36
|
+
'city': json['city'] == null ? undefined : json['city'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function BranchUpdateToJSON(json) {
|
|
40
|
+
return BranchUpdateToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function BranchUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'name': value['name'],
|
|
48
|
+
'city': value['city'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 type { HistoryTurn } from './HistoryTurn';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ChatRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface ChatRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ChatRequest
|
|
23
|
+
*/
|
|
24
|
+
message: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<HistoryTurn>}
|
|
28
|
+
* @memberof ChatRequest
|
|
29
|
+
*/
|
|
30
|
+
history?: Array<HistoryTurn> | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ChatRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfChatRequest(value: object): value is ChatRequest;
|
|
36
|
+
export declare function ChatRequestFromJSON(json: any): ChatRequest;
|
|
37
|
+
export declare function ChatRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatRequest;
|
|
38
|
+
export declare function ChatRequestToJSON(json: any): ChatRequest;
|
|
39
|
+
export declare function ChatRequestToJSONTyped(value?: ChatRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfChatRequest = instanceOfChatRequest;
|
|
17
|
+
exports.ChatRequestFromJSON = ChatRequestFromJSON;
|
|
18
|
+
exports.ChatRequestFromJSONTyped = ChatRequestFromJSONTyped;
|
|
19
|
+
exports.ChatRequestToJSON = ChatRequestToJSON;
|
|
20
|
+
exports.ChatRequestToJSONTyped = ChatRequestToJSONTyped;
|
|
21
|
+
const HistoryTurn_1 = require("./HistoryTurn");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ChatRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfChatRequest(value) {
|
|
26
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ChatRequestFromJSON(json) {
|
|
31
|
+
return ChatRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ChatRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'message': json['message'],
|
|
39
|
+
'history': json['history'] == null ? undefined : (json['history'].map(HistoryTurn_1.HistoryTurnFromJSON)),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function ChatRequestToJSON(json) {
|
|
43
|
+
return ChatRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ChatRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'history': value['history'] == null ? undefined : (value['history'].map(HistoryTurn_1.HistoryTurnToJSON)),
|
|
52
|
+
};
|
|
53
|
+
}
|