@venturialstd/workflow 0.1.87 → 0.1.89
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/controllers/workflow-sse.controller.d.ts +8 -0
- package/dist/controllers/workflow-sse.controller.d.ts.map +1 -0
- package/dist/controllers/workflow-sse.controller.js +40 -0
- package/dist/controllers/workflow-sse.controller.js.map +1 -0
- package/dist/modules/inbestgo/actions/create-transaction.action.d.ts +3 -0
- package/dist/modules/inbestgo/actions/create-transaction.action.d.ts.map +1 -0
- package/dist/modules/inbestgo/actions/create-transaction.action.js +132 -0
- package/dist/modules/inbestgo/actions/create-transaction.action.js.map +1 -0
- package/dist/modules/inbestgo/actions/index.d.ts +3 -0
- package/dist/modules/inbestgo/actions/index.d.ts.map +1 -0
- package/dist/modules/inbestgo/actions/index.js +19 -0
- package/dist/modules/inbestgo/actions/index.js.map +1 -0
- package/dist/modules/inbestgo/actions/lookup-user-by-phone.action.d.ts +3 -0
- package/dist/modules/inbestgo/actions/lookup-user-by-phone.action.d.ts.map +1 -0
- package/dist/modules/inbestgo/actions/lookup-user-by-phone.action.js +76 -0
- package/dist/modules/inbestgo/actions/lookup-user-by-phone.action.js.map +1 -0
- package/dist/modules/inbestgo/auth/inbestgo-auth.service.d.ts +8 -0
- package/dist/modules/inbestgo/auth/inbestgo-auth.service.d.ts.map +1 -0
- package/dist/modules/inbestgo/auth/inbestgo-auth.service.js +75 -0
- package/dist/modules/inbestgo/auth/inbestgo-auth.service.js.map +1 -0
- package/dist/modules/inbestgo/auth/index.d.ts +2 -0
- package/dist/modules/inbestgo/auth/index.d.ts.map +1 -0
- package/dist/modules/inbestgo/auth/index.js +18 -0
- package/dist/modules/inbestgo/auth/index.js.map +1 -0
- package/dist/modules/inbestgo/credentials.d.ts +3 -0
- package/dist/modules/inbestgo/credentials.d.ts.map +1 -0
- package/dist/modules/inbestgo/credentials.js +32 -0
- package/dist/modules/inbestgo/credentials.js.map +1 -0
- package/dist/modules/inbestgo/inbestgo-nest.module.d.ts +3 -0
- package/dist/modules/inbestgo/inbestgo-nest.module.d.ts.map +1 -0
- package/dist/modules/inbestgo/inbestgo-nest.module.js +29 -0
- package/dist/modules/inbestgo/inbestgo-nest.module.js.map +1 -0
- package/dist/modules/inbestgo/inbestgo.module.d.ts +3 -0
- package/dist/modules/inbestgo/inbestgo.module.d.ts.map +1 -0
- package/dist/modules/inbestgo/inbestgo.module.js +21 -0
- package/dist/modules/inbestgo/inbestgo.module.js.map +1 -0
- package/dist/modules/inbestgo/services/create-transaction.service.d.ts +8 -0
- package/dist/modules/inbestgo/services/create-transaction.service.d.ts.map +1 -0
- package/dist/modules/inbestgo/services/create-transaction.service.js +78 -0
- package/dist/modules/inbestgo/services/create-transaction.service.js.map +1 -0
- package/dist/modules/inbestgo/services/index.d.ts +3 -0
- package/dist/modules/inbestgo/services/index.d.ts.map +1 -0
- package/dist/modules/inbestgo/services/index.js +19 -0
- package/dist/modules/inbestgo/services/index.js.map +1 -0
- package/dist/modules/inbestgo/services/lookup-user-by-phone.service.d.ts +8 -0
- package/dist/modules/inbestgo/services/lookup-user-by-phone.service.d.ts.map +1 -0
- package/dist/modules/inbestgo/services/lookup-user-by-phone.service.js +54 -0
- package/dist/modules/inbestgo/services/lookup-user-by-phone.service.js.map +1 -0
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +5 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/user/actions/get-or-create-user.action.d.ts.map +1 -1
- package/dist/modules/user/actions/get-or-create-user.action.js +12 -2
- package/dist/modules/user/actions/get-or-create-user.action.js.map +1 -1
- package/dist/modules/user/services/get-or-create-user.service.d.ts.map +1 -1
- package/dist/modules/user/services/get-or-create-user.service.js +39 -3
- package/dist/modules/user/services/get-or-create-user.service.js.map +1 -1
- package/dist/services/workflow-sse.service.d.ts +29 -0
- package/dist/services/workflow-sse.service.d.ts.map +1 -0
- package/dist/services/workflow-sse.service.js +155 -0
- package/dist/services/workflow-sse.service.js.map +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Response } from 'express';
|
|
2
|
+
import { WorkflowSSEService } from '../services/workflow-sse.service';
|
|
3
|
+
export declare class WorkflowSSEController {
|
|
4
|
+
private readonly sseService;
|
|
5
|
+
constructor(sseService: WorkflowSSEService);
|
|
6
|
+
streamWorkflowEvents(workflowId: string, res: Response): void;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=workflow-sse.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-sse.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/workflow-sse.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,qBACa,qBAAqB;IACpB,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,kBAAkB;IAO3D,oBAAoB,CACG,UAAU,EAAE,MAAM,EAChC,GAAG,EAAE,QAAQ;CAIvB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.WorkflowSSEController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const workflow_sse_service_1 = require("../services/workflow-sse.service");
|
|
18
|
+
let WorkflowSSEController = class WorkflowSSEController {
|
|
19
|
+
sseService;
|
|
20
|
+
constructor(sseService) {
|
|
21
|
+
this.sseService = sseService;
|
|
22
|
+
}
|
|
23
|
+
streamWorkflowEvents(workflowId, res) {
|
|
24
|
+
this.sseService.createEventStream(res, workflowId);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.WorkflowSSEController = WorkflowSSEController;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, common_1.Get)(':workflowId'),
|
|
30
|
+
__param(0, (0, common_1.Param)('workflowId')),
|
|
31
|
+
__param(1, (0, common_1.Res)()),
|
|
32
|
+
__metadata("design:type", Function),
|
|
33
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
34
|
+
__metadata("design:returntype", void 0)
|
|
35
|
+
], WorkflowSSEController.prototype, "streamWorkflowEvents", null);
|
|
36
|
+
exports.WorkflowSSEController = WorkflowSSEController = __decorate([
|
|
37
|
+
(0, common_1.Controller)('workflow/sse'),
|
|
38
|
+
__metadata("design:paramtypes", [workflow_sse_service_1.WorkflowSSEService])
|
|
39
|
+
], WorkflowSSEController);
|
|
40
|
+
//# sourceMappingURL=workflow-sse.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-sse.controller.js","sourceRoot":"","sources":["../../src/controllers/workflow-sse.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwE;AAExE,2EAAsE;AAG/D,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IACH;IAA7B,YAA6B,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAO/D,oBAAoB,CACG,UAAkB,EAChC,GAAa;QAEpB,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;IACrD,CAAC;CACF,CAAA;AAdY,sDAAqB;AAQhC;IADC,IAAA,YAAG,EAAC,aAAa,CAAC;IAEhB,WAAA,IAAA,cAAK,EAAC,YAAY,CAAC,CAAA;IACnB,WAAA,IAAA,YAAG,GAAE,CAAA;;;;iEAGP;gCAbU,qBAAqB;IADjC,IAAA,mBAAU,EAAC,cAAc,CAAC;qCAEgB,yCAAkB;GADhD,qBAAqB,CAcjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-transaction.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/inbestgo/actions/create-transaction.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,uBAAuB,EAAE,qBA+HrC,CAAC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createTransactionAction = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
const create_transaction_service_1 = require("../services/create-transaction.service");
|
|
6
|
+
exports.createTransactionAction = {
|
|
7
|
+
key: 'create-transaction',
|
|
8
|
+
name: 'Create Transaction',
|
|
9
|
+
description: 'Create a transaction in Inbestgo',
|
|
10
|
+
category: types_1.NODE_CATEGORY.ACTION,
|
|
11
|
+
icon: '💸',
|
|
12
|
+
serviceClass: create_transaction_service_1.CreateTransactionService,
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
id: 'phoneNumber',
|
|
16
|
+
name: 'Phone Number',
|
|
17
|
+
description: 'The user phone number',
|
|
18
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
19
|
+
validation: {
|
|
20
|
+
required: true,
|
|
21
|
+
},
|
|
22
|
+
placeholder: '+1234567890',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: 'transactionId',
|
|
26
|
+
name: 'Transaction ID',
|
|
27
|
+
description: 'The unique transaction identifier',
|
|
28
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
29
|
+
validation: {
|
|
30
|
+
required: true,
|
|
31
|
+
},
|
|
32
|
+
placeholder: 'tx-123',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: 'txHash',
|
|
36
|
+
name: 'Transaction Hash',
|
|
37
|
+
description: 'The blockchain transaction hash',
|
|
38
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
39
|
+
validation: {
|
|
40
|
+
required: true,
|
|
41
|
+
},
|
|
42
|
+
placeholder: '0x...',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: 'blockchain',
|
|
46
|
+
name: 'Blockchain',
|
|
47
|
+
description: 'The blockchain network',
|
|
48
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
49
|
+
validation: {
|
|
50
|
+
required: true,
|
|
51
|
+
},
|
|
52
|
+
placeholder: 'ethereum',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: 'token',
|
|
56
|
+
name: 'Token',
|
|
57
|
+
description: 'The token symbol',
|
|
58
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
59
|
+
validation: {
|
|
60
|
+
required: true,
|
|
61
|
+
},
|
|
62
|
+
placeholder: 'USDC',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: 'amount',
|
|
66
|
+
name: 'Amount',
|
|
67
|
+
description: 'The transaction amount',
|
|
68
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
69
|
+
validation: {
|
|
70
|
+
required: true,
|
|
71
|
+
},
|
|
72
|
+
placeholder: '100.00',
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
outputs: [
|
|
76
|
+
{
|
|
77
|
+
id: 'id',
|
|
78
|
+
name: 'Database ID',
|
|
79
|
+
description: 'The internal database ID',
|
|
80
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 'success',
|
|
84
|
+
name: 'Success',
|
|
85
|
+
description: 'Whether the transaction was created successfully',
|
|
86
|
+
type: types_1.FIELD_TYPE.BOOLEAN,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
id: 'status',
|
|
90
|
+
name: 'Status',
|
|
91
|
+
description: 'The transaction status (INITIATED, SUCCEEDED, FAILED)',
|
|
92
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
id: 'message',
|
|
96
|
+
name: 'Message',
|
|
97
|
+
description: 'Response message from Inbestgo',
|
|
98
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: 'transactionId',
|
|
102
|
+
name: 'Transaction ID',
|
|
103
|
+
description: 'The transaction ID',
|
|
104
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
id: 'txHash',
|
|
108
|
+
name: 'Transaction Hash',
|
|
109
|
+
description: 'The blockchain transaction hash',
|
|
110
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
id: 'blockchain',
|
|
114
|
+
name: 'Blockchain',
|
|
115
|
+
description: 'The blockchain network',
|
|
116
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: 'token',
|
|
120
|
+
name: 'Token',
|
|
121
|
+
description: 'The token symbol',
|
|
122
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
id: 'amount',
|
|
126
|
+
name: 'Amount',
|
|
127
|
+
description: 'The transaction amount',
|
|
128
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
};
|
|
132
|
+
//# sourceMappingURL=create-transaction.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-transaction.action.js","sourceRoot":"","sources":["../../../../src/modules/inbestgo/actions/create-transaction.action.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/inbestgo/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./lookup-user-by-phone.action"), exports);
|
|
18
|
+
__exportStar(require("./create-transaction.action"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/inbestgo/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,8DAA4C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookup-user-by-phone.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/inbestgo/actions/lookup-user-by-phone.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,uBAAuB,EAAE,qBAuErC,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.lookupUserByPhoneAction = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
const lookup_user_by_phone_service_1 = require("../services/lookup-user-by-phone.service");
|
|
6
|
+
exports.lookupUserByPhoneAction = {
|
|
7
|
+
key: 'lookup-user-by-phone',
|
|
8
|
+
name: 'Lookup User by Phone',
|
|
9
|
+
description: 'Lookup an Inbestgo user by phone number',
|
|
10
|
+
category: types_1.NODE_CATEGORY.ACTION,
|
|
11
|
+
icon: '🔍',
|
|
12
|
+
serviceClass: lookup_user_by_phone_service_1.LookupUserByPhoneService,
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
id: 'phoneNumber',
|
|
16
|
+
name: 'Phone Number',
|
|
17
|
+
description: 'The phone number to lookup (with country code)',
|
|
18
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
19
|
+
validation: {
|
|
20
|
+
required: true,
|
|
21
|
+
},
|
|
22
|
+
placeholder: '+1234567890',
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
outputs: [
|
|
26
|
+
{
|
|
27
|
+
id: 'id',
|
|
28
|
+
name: 'Database ID',
|
|
29
|
+
description: 'The internal database ID',
|
|
30
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: 'userId',
|
|
34
|
+
name: 'Inbestgo User ID',
|
|
35
|
+
description: 'The Inbestgo user ID',
|
|
36
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
id: 'phoneNumber',
|
|
40
|
+
name: 'Phone Number',
|
|
41
|
+
description: 'The user phone number',
|
|
42
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: 'email',
|
|
46
|
+
name: 'Email',
|
|
47
|
+
description: 'The user email address',
|
|
48
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 'firstName',
|
|
52
|
+
name: 'First Name',
|
|
53
|
+
description: 'The user first name',
|
|
54
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: 'lastName',
|
|
58
|
+
name: 'Last Name',
|
|
59
|
+
description: 'The user last name',
|
|
60
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: 'status',
|
|
64
|
+
name: 'Status',
|
|
65
|
+
description: 'The user status (NOT_REGISTERED, CREATED, KYC_INITIATED, KYC_COMPLETED)',
|
|
66
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: 'found',
|
|
70
|
+
name: 'Found',
|
|
71
|
+
description: 'Whether the user was found in Inbestgo',
|
|
72
|
+
type: types_1.FIELD_TYPE.BOOLEAN,
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=lookup-user-by-phone.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookup-user-by-phone.action.js","sourceRoot":"","sources":["../../../../src/modules/inbestgo/actions/lookup-user-by-phone.action.ts"],"names":[],"mappings":";;;AAAA,uCAKqB;AACrB,2FAAoF;AAEvE,QAAA,uBAAuB,GAA0B;IAC5D,GAAG,EAAE,sBAAsB;IAC3B,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,uDAEa;IAC3B,MAAM,EAAE;QACN;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,gDAAgD;YAC7D,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;aACf;YACD,WAAW,EAAE,aAAa;SAC3B;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,kBAAkB;YACxB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yEAAyE;YACtF,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,kBAAU,CAAC,OAAO;SACzB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HttpService } from '@nestjs/axios';
|
|
2
|
+
import { CredentialAuthResult, IWorkflowCredentialAuthService } from '../../types';
|
|
3
|
+
export declare class InbestgoAuthService implements IWorkflowCredentialAuthService {
|
|
4
|
+
private readonly httpService;
|
|
5
|
+
constructor(httpService: HttpService);
|
|
6
|
+
authenticate(credentials: Record<string, unknown>): Promise<CredentialAuthResult>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=inbestgo-auth.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbestgo-auth.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/inbestgo/auth/inbestgo-auth.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAYnF,qBACa,mBAAoB,YAAW,8BAA8B;IAC5D,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,WAAW;IAE/C,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAsDxF"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.InbestgoAuthService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const axios_1 = require("@nestjs/axios");
|
|
15
|
+
var INBESTGO_ENVIRONMENTS;
|
|
16
|
+
(function (INBESTGO_ENVIRONMENTS) {
|
|
17
|
+
INBESTGO_ENVIRONMENTS["SANDBOX"] = "SANDBOX";
|
|
18
|
+
INBESTGO_ENVIRONMENTS["PRODUCTION"] = "PRODUCTION";
|
|
19
|
+
})(INBESTGO_ENVIRONMENTS || (INBESTGO_ENVIRONMENTS = {}));
|
|
20
|
+
const INBESTGO_BASE_URL = {
|
|
21
|
+
[INBESTGO_ENVIRONMENTS.SANDBOX]: 'https://api.integrations.inbestgoapp.com',
|
|
22
|
+
[INBESTGO_ENVIRONMENTS.PRODUCTION]: 'https://api.integrations.inbestgoapp.com',
|
|
23
|
+
};
|
|
24
|
+
let InbestgoAuthService = class InbestgoAuthService {
|
|
25
|
+
httpService;
|
|
26
|
+
constructor(httpService) {
|
|
27
|
+
this.httpService = httpService;
|
|
28
|
+
}
|
|
29
|
+
async authenticate(credentials) {
|
|
30
|
+
const apiKey = credentials.apiKey;
|
|
31
|
+
const environment = credentials.environment || 'SANDBOX';
|
|
32
|
+
if (!apiKey) {
|
|
33
|
+
return {
|
|
34
|
+
success: false,
|
|
35
|
+
message: 'API Key is required',
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
try {
|
|
39
|
+
const baseUrl = INBESTGO_BASE_URL[environment];
|
|
40
|
+
const response = await this.httpService.axiosRef.get(`${baseUrl}/ommacash/user?phoneNumber=+1234567890`, {
|
|
41
|
+
headers: {
|
|
42
|
+
'x-api-key': apiKey,
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
return {
|
|
46
|
+
success: true,
|
|
47
|
+
message: 'Inbestgo credentials validated successfully',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
catch (error) {
|
|
51
|
+
if (error.response?.status === 401 || error.response?.status === 403) {
|
|
52
|
+
return {
|
|
53
|
+
success: false,
|
|
54
|
+
message: 'Invalid API Key',
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
if (error.response?.status === 404) {
|
|
58
|
+
return {
|
|
59
|
+
success: true,
|
|
60
|
+
message: 'Inbestgo credentials validated successfully',
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
success: false,
|
|
65
|
+
message: `Failed to validate credentials: ${error.message}`,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
exports.InbestgoAuthService = InbestgoAuthService;
|
|
71
|
+
exports.InbestgoAuthService = InbestgoAuthService = __decorate([
|
|
72
|
+
(0, common_1.Injectable)(),
|
|
73
|
+
__metadata("design:paramtypes", [axios_1.HttpService])
|
|
74
|
+
], InbestgoAuthService);
|
|
75
|
+
//# sourceMappingURL=inbestgo-auth.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbestgo-auth.service.js","sourceRoot":"","sources":["../../../../src/modules/inbestgo/auth/inbestgo-auth.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yCAA4C;AAI5C,IAAK,qBAGJ;AAHD,WAAK,qBAAqB;IACxB,4CAAmB,CAAA;IACnB,kDAAyB,CAAA;AAC3B,CAAC,EAHI,qBAAqB,KAArB,qBAAqB,QAGzB;AAED,MAAM,iBAAiB,GAA0C;IAC/D,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,0CAA0C;IAC3E,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,0CAA0C;CAC/E,CAAC;AAGK,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IACD;IAA7B,YAA6B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;IAEzD,KAAK,CAAC,YAAY,CAAC,WAAoC;QACrD,MAAM,MAAM,GAAG,WAAW,CAAC,MAAgB,CAAC;QAC5C,MAAM,WAAW,GAAI,WAAW,CAAC,WAAsB,IAAI,SAAS,CAAC;QAErE,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,qBAAqB;aAC/B,CAAC;QACJ,CAAC;QAED,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,iBAAiB,CAAC,WAAoC,CAAC,CAAC;YAIxE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAClD,GAAG,OAAO,wCAAwC,EAClD;gBACE,OAAO,EAAE;oBACP,WAAW,EAAE,MAAM;iBACpB;aACF,CACF,CAAC;YAGF,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,OAAO,EAAE,6CAA6C;aACvD,CAAC;QACJ,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YAEpB,IAAI,KAAK,CAAC,QAAQ,EAAE,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,QAAQ,EAAE,MAAM,KAAK,GAAG,EAAE,CAAC;gBACrE,OAAO;oBACL,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,iBAAiB;iBAC3B,CAAC;YACJ,CAAC;YAID,IAAI,KAAK,CAAC,QAAQ,EAAE,MAAM,KAAK,GAAG,EAAE,CAAC;gBACnC,OAAO;oBACL,OAAO,EAAE,IAAI;oBACb,OAAO,EAAE,6CAA6C;iBACvD,CAAC;YACJ,CAAC;YAED,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,mCAAmC,KAAK,CAAC,OAAO,EAAE;aAC5D,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AAzDY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;qCAE+B,mBAAW;GAD1C,mBAAmB,CAyD/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/inbestgo/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./inbestgo-auth.service"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/inbestgo/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../src/modules/inbestgo/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAc,MAAM,UAAU,CAAC;AAEjE,eAAO,MAAM,mBAAmB,EAAE,yBAAyB,EA0B1D,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.inbestgoCredentials = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.inbestgoCredentials = [
|
|
6
|
+
{
|
|
7
|
+
id: 'apiKey',
|
|
8
|
+
name: 'API Key',
|
|
9
|
+
description: 'Inbestgo API Key for authentication',
|
|
10
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
11
|
+
validation: {
|
|
12
|
+
required: true,
|
|
13
|
+
minLength: 1,
|
|
14
|
+
},
|
|
15
|
+
placeholder: 'Enter your Inbestgo API key',
|
|
16
|
+
sensitive: true,
|
|
17
|
+
required: true,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: 'environment',
|
|
21
|
+
name: 'Environment',
|
|
22
|
+
description: 'Inbestgo environment (SANDBOX or PRODUCTION)',
|
|
23
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
24
|
+
validation: {
|
|
25
|
+
required: true,
|
|
26
|
+
},
|
|
27
|
+
placeholder: 'SANDBOX',
|
|
28
|
+
sensitive: false,
|
|
29
|
+
required: true,
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
//# sourceMappingURL=credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../src/modules/inbestgo/credentials.ts"],"names":[],"mappings":";;;AAAA,oCAAiE;AAEpD,QAAA,mBAAmB,GAAgC;IAC9D;QACE,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,qCAAqC;QAClD,IAAI,EAAE,kBAAU,CAAC,MAAM;QACvB,UAAU,EAAE;YACV,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,CAAC;SACb;QACD,WAAW,EAAE,6BAA6B;QAC1C,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,IAAI;KACf;IACD;QACE,EAAE,EAAE,aAAa;QACjB,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,8CAA8C;QAC3D,IAAI,EAAE,kBAAU,CAAC,MAAM;QACvB,UAAU,EAAE;YACV,QAAQ,EAAE,IAAI;SACf;QACD,WAAW,EAAE,SAAS;QACtB,SAAS,EAAE,KAAK;QAChB,QAAQ,EAAE,IAAI;KACf;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbestgo-nest.module.d.ts","sourceRoot":"","sources":["../../../src/modules/inbestgo/inbestgo-nest.module.ts"],"names":[],"mappings":"AAOA,qBASa,kBAAkB;CAAG"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.InbestgoNestModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const inbestgo_1 = require("@venturialstd/inbestgo");
|
|
12
|
+
const axios_1 = require("@nestjs/axios");
|
|
13
|
+
const auth_1 = require("./auth");
|
|
14
|
+
const services_1 = require("./services");
|
|
15
|
+
let InbestgoNestModule = class InbestgoNestModule {
|
|
16
|
+
};
|
|
17
|
+
exports.InbestgoNestModule = InbestgoNestModule;
|
|
18
|
+
exports.InbestgoNestModule = InbestgoNestModule = __decorate([
|
|
19
|
+
(0, common_1.Module)({
|
|
20
|
+
imports: [inbestgo_1.InbestgoModule, axios_1.HttpModule],
|
|
21
|
+
providers: [
|
|
22
|
+
services_1.LookupUserByPhoneService,
|
|
23
|
+
services_1.CreateTransactionService,
|
|
24
|
+
auth_1.InbestgoAuthService,
|
|
25
|
+
],
|
|
26
|
+
exports: [services_1.LookupUserByPhoneService, services_1.CreateTransactionService, auth_1.InbestgoAuthService],
|
|
27
|
+
})
|
|
28
|
+
], InbestgoNestModule);
|
|
29
|
+
//# sourceMappingURL=inbestgo-nest.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbestgo-nest.module.js","sourceRoot":"","sources":["../../../src/modules/inbestgo/inbestgo-nest.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,qDAAwD;AACxD,yCAA2C;AAE3C,iCAA6C;AAC7C,yCAAgF;AAWzE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,gDAAkB;6BAAlB,kBAAkB;IAT9B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,yBAAc,EAAE,kBAAU,CAAC;QACrC,SAAS,EAAE;YACT,mCAAwB;YACxB,mCAAwB;YACxB,0BAAmB;SACpB;QACD,OAAO,EAAE,CAAC,mCAAwB,EAAE,mCAAwB,EAAE,0BAAmB,CAAC;KACnF,CAAC;GACW,kBAAkB,CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbestgo.module.d.ts","sourceRoot":"","sources":["../../../src/modules/inbestgo/inbestgo.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAKpF,eAAO,MAAM,cAAc,EAAE,wBAkB5B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.inbestgoModule = void 0;
|
|
4
|
+
const actions_1 = require("./actions");
|
|
5
|
+
const inbestgo_auth_service_1 = require("./auth/inbestgo-auth.service");
|
|
6
|
+
const credentials_1 = require("./credentials");
|
|
7
|
+
exports.inbestgoModule = {
|
|
8
|
+
key: 'inbestgo',
|
|
9
|
+
name: 'Inbestgo',
|
|
10
|
+
description: 'Integration with Inbestgo investment platform for user management and transaction tracking',
|
|
11
|
+
icon: '📈',
|
|
12
|
+
version: '1.0.0',
|
|
13
|
+
credentialFields: credentials_1.inbestgoCredentials,
|
|
14
|
+
authServiceClass: inbestgo_auth_service_1.InbestgoAuthService,
|
|
15
|
+
actions: [
|
|
16
|
+
actions_1.lookupUserByPhoneAction,
|
|
17
|
+
actions_1.createTransactionAction,
|
|
18
|
+
],
|
|
19
|
+
triggers: [],
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=inbestgo.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbestgo.module.js","sourceRoot":"","sources":["../../../src/modules/inbestgo/inbestgo.module.ts"],"names":[],"mappings":";;;AACA,uCAA6E;AAC7E,wEAAmE;AACnE,+CAAoD;AAEvC,QAAA,cAAc,GAA6B;IACtD,GAAG,EAAE,UAAU;IACf,IAAI,EAAE,UAAU;IAChB,WAAW,EACT,4FAA4F;IAC9F,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,OAAO;IAChB,gBAAgB,EAAE,iCAAmB;IACrC,gBAAgB,EAAE,2CAEiB;IACnC,OAAO,EAAE;QAEP,iCAAuB;QAEvB,iCAAuB;KACxB;IACD,QAAQ,EAAE,EAAE;CACb,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InbestgoTransactionService } from '@venturialstd/inbestgo';
|
|
2
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
3
|
+
export declare class CreateTransactionService implements IWorkflowActionService {
|
|
4
|
+
private readonly inbestgoTransactionService;
|
|
5
|
+
constructor(inbestgoTransactionService: InbestgoTransactionService);
|
|
6
|
+
perform(inputs: Record<string, unknown>, context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=create-transaction.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-transaction.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/inbestgo/services/create-transaction.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAyB,MAAM,wBAAwB,CAAC;AAE3F,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,wBAAyB,YAAW,sBAAsB;IACzD,OAAO,CAAC,QAAQ,CAAC,0BAA0B;gBAA1B,0BAA0B,EAAE,0BAA0B;IAE7E,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAwEpC"}
|