@venturialstd/workflow 0.1.102 → 0.1.104
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/modules/circle/actions/index.d.ts +1 -0
- package/dist/modules/circle/actions/index.d.ts.map +1 -1
- package/dist/modules/circle/actions/index.js +1 -0
- package/dist/modules/circle/actions/index.js.map +1 -1
- package/dist/modules/circle/actions/update-transaction.action.d.ts +3 -0
- package/dist/modules/circle/actions/update-transaction.action.d.ts.map +1 -0
- package/dist/modules/circle/actions/update-transaction.action.js +164 -0
- package/dist/modules/circle/actions/update-transaction.action.js.map +1 -0
- package/dist/modules/circle/circle-nest.module.d.ts.map +1 -1
- package/dist/modules/circle/circle-nest.module.js +2 -0
- package/dist/modules/circle/circle-nest.module.js.map +1 -1
- package/dist/modules/circle/circle.module.d.ts.map +1 -1
- package/dist/modules/circle/circle.module.js +1 -0
- package/dist/modules/circle/circle.module.js.map +1 -1
- package/dist/modules/circle/services/index.d.ts +1 -0
- package/dist/modules/circle/services/index.d.ts.map +1 -1
- package/dist/modules/circle/services/index.js +1 -0
- package/dist/modules/circle/services/index.js.map +1 -1
- package/dist/modules/circle/services/update-transaction.service.d.ts +8 -0
- package/dist/modules/circle/services/update-transaction.service.d.ts.map +1 -0
- package/dist/modules/circle/services/update-transaction.service.js +72 -0
- package/dist/modules/circle/services/update-transaction.service.js.map +1 -0
- package/package.json +2 -2
|
@@ -11,4 +11,5 @@ export * from './list-challenges.action';
|
|
|
11
11
|
export * from './list-transactions.action';
|
|
12
12
|
export * from './list-wallets.action';
|
|
13
13
|
export * from './sync-wallet-transactions.action';
|
|
14
|
+
export * from './update-transaction.action';
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/circle/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/circle/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC"}
|
|
@@ -27,4 +27,5 @@ __exportStar(require("./list-challenges.action"), exports);
|
|
|
27
27
|
__exportStar(require("./list-transactions.action"), exports);
|
|
28
28
|
__exportStar(require("./list-wallets.action"), exports);
|
|
29
29
|
__exportStar(require("./sync-wallet-transactions.action"), exports);
|
|
30
|
+
__exportStar(require("./update-transaction.action"), exports);
|
|
30
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/circle/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,6DAA2C;AAC3C,0DAAwC;AACxC,qDAAmC;AACnC,2DAAyC;AACzC,sDAAoC;AACpC,kEAAgD;AAChD,0DAAwC;AACxC,oEAAkD;AAClD,2DAAyC;AACzC,6DAA2C;AAC3C,wDAAsC;AACtC,oEAAkD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/circle/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,6DAA2C;AAC3C,0DAAwC;AACxC,qDAAmC;AACnC,2DAAyC;AACzC,sDAAoC;AACpC,kEAAgD;AAChD,0DAAwC;AACxC,oEAAkD;AAClD,2DAAyC;AACzC,6DAA2C;AAC3C,wDAAsC;AACtC,oEAAkD;AAClD,8DAA4C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-transaction.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/circle/actions/update-transaction.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAIrB,eAAO,MAAM,uBAAuB,EAAE,qBA4JrC,CAAC"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateTransactionAction = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
const update_transaction_service_1 = require("../services/update-transaction.service");
|
|
6
|
+
const circle_1 = require("@venturialstd/circle");
|
|
7
|
+
exports.updateTransactionAction = {
|
|
8
|
+
key: 'update-transaction',
|
|
9
|
+
name: 'Update Transaction',
|
|
10
|
+
description: 'Update a Circle transaction by circleTransactionId',
|
|
11
|
+
category: types_1.NODE_CATEGORY.ACTION,
|
|
12
|
+
icon: '✏️',
|
|
13
|
+
serviceClass: update_transaction_service_1.UpdateTransactionService,
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
id: 'circleTransactionId',
|
|
17
|
+
name: 'Circle Transaction ID',
|
|
18
|
+
description: 'The Circle transaction ID to update',
|
|
19
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
20
|
+
validation: {
|
|
21
|
+
required: true,
|
|
22
|
+
minLength: 1,
|
|
23
|
+
},
|
|
24
|
+
placeholder: 'e.g., 123e4567-e89b-12d3-a456-426614174000',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'refId',
|
|
28
|
+
name: 'Reference ID',
|
|
29
|
+
description: 'Optional reference ID to associate with the transaction',
|
|
30
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
31
|
+
validation: {
|
|
32
|
+
required: false,
|
|
33
|
+
},
|
|
34
|
+
placeholder: 'reference-id',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: 'txHash',
|
|
38
|
+
name: 'Transaction Hash',
|
|
39
|
+
description: 'Optional transaction hash from the blockchain',
|
|
40
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
41
|
+
validation: {
|
|
42
|
+
required: false,
|
|
43
|
+
},
|
|
44
|
+
placeholder: '0x...',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: 'state',
|
|
48
|
+
name: 'State',
|
|
49
|
+
description: 'Optional transaction state',
|
|
50
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
51
|
+
validation: {
|
|
52
|
+
required: false,
|
|
53
|
+
enum: Object.values(circle_1.CircleTransactionState),
|
|
54
|
+
},
|
|
55
|
+
options: Object.values(circle_1.CircleTransactionState).map((state) => ({
|
|
56
|
+
label: state,
|
|
57
|
+
value: state,
|
|
58
|
+
})),
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: 'errorReason',
|
|
62
|
+
name: 'Error Reason',
|
|
63
|
+
description: 'Optional error reason if the transaction failed',
|
|
64
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
65
|
+
validation: {
|
|
66
|
+
required: false,
|
|
67
|
+
},
|
|
68
|
+
placeholder: 'Error message',
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
outputs: [
|
|
72
|
+
{
|
|
73
|
+
id: 'id',
|
|
74
|
+
name: 'ID',
|
|
75
|
+
description: 'Database ID of the transaction',
|
|
76
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: 'circleTransactionId',
|
|
80
|
+
name: 'Circle Transaction ID',
|
|
81
|
+
description: 'Circle transaction ID',
|
|
82
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: 'circleWalletId',
|
|
86
|
+
name: 'Circle Wallet ID',
|
|
87
|
+
description: 'Circle wallet ID',
|
|
88
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
id: 'circleTokenId',
|
|
92
|
+
name: 'Circle Token ID',
|
|
93
|
+
description: 'Circle token ID',
|
|
94
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: 'blockchainIdentifier',
|
|
98
|
+
name: 'Blockchain Identifier',
|
|
99
|
+
description: 'Blockchain network identifier',
|
|
100
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: 'amount',
|
|
104
|
+
name: 'Amount',
|
|
105
|
+
description: 'Transaction amount',
|
|
106
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
id: 'state',
|
|
110
|
+
name: 'State',
|
|
111
|
+
description: 'Transaction state',
|
|
112
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
id: 'transactionType',
|
|
116
|
+
name: 'Transaction Type',
|
|
117
|
+
description: 'Type of transaction',
|
|
118
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
id: 'sourceAddress',
|
|
122
|
+
name: 'Source Address',
|
|
123
|
+
description: 'Source wallet address',
|
|
124
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
id: 'destinationAddress',
|
|
128
|
+
name: 'Destination Address',
|
|
129
|
+
description: 'Destination wallet address',
|
|
130
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
id: 'txHash',
|
|
134
|
+
name: 'Transaction Hash',
|
|
135
|
+
description: 'Blockchain transaction hash',
|
|
136
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: 'errorReason',
|
|
140
|
+
name: 'Error Reason',
|
|
141
|
+
description: 'Error reason if transaction failed',
|
|
142
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
id: 'refId',
|
|
146
|
+
name: 'Reference ID',
|
|
147
|
+
description: 'Reference ID associated with the transaction',
|
|
148
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
id: 'createdAt',
|
|
152
|
+
name: 'Created At',
|
|
153
|
+
description: 'Creation timestamp',
|
|
154
|
+
type: types_1.FIELD_TYPE.DATE,
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
id: 'updatedAt',
|
|
158
|
+
name: 'Updated At',
|
|
159
|
+
description: 'Last update timestamp',
|
|
160
|
+
type: types_1.FIELD_TYPE.DATE,
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
};
|
|
164
|
+
//# sourceMappingURL=update-transaction.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-transaction.action.js","sourceRoot":"","sources":["../../../../src/modules/circle/actions/update-transaction.action.ts"],"names":[],"mappings":";;;AAAA,uCAKqB;AACrB,uFAAkF;AAClF,iDAA8D;AAEjD,QAAA,uBAAuB,GAA0B;IAC5D,GAAG,EAAE,oBAAoB;IACzB,IAAI,EAAE,oBAAoB;IAC1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AAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,oBAAoB;YACxB,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,kBAAkB;YACxB,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,kBAAU,CAAC,IAAI;SACtB;QACD;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,kBAAU,CAAC,IAAI;SACtB;KACF;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"circle-nest.module.d.ts","sourceRoot":"","sources":["../../../src/modules/circle/circle-nest.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"circle-nest.module.d.ts","sourceRoot":"","sources":["../../../src/modules/circle/circle-nest.module.ts"],"names":[],"mappings":"AAqBA,qBAqCa,gBAAgB;CAAG"}
|
|
@@ -26,6 +26,7 @@ exports.CircleNestModule = CircleNestModule = __decorate([
|
|
|
26
26
|
services_1.CreateTransactionService,
|
|
27
27
|
services_1.ListTransactionsService,
|
|
28
28
|
services_1.GetTransactionService,
|
|
29
|
+
services_1.UpdateTransactionService,
|
|
29
30
|
services_1.GetTokenService,
|
|
30
31
|
services_1.GetWalletTokenBalanceService,
|
|
31
32
|
services_1.GetWalletNFTBalanceService,
|
|
@@ -42,6 +43,7 @@ exports.CircleNestModule = CircleNestModule = __decorate([
|
|
|
42
43
|
services_1.CreateTransactionService,
|
|
43
44
|
services_1.ListTransactionsService,
|
|
44
45
|
services_1.GetTransactionService,
|
|
46
|
+
services_1.UpdateTransactionService,
|
|
45
47
|
services_1.GetTokenService,
|
|
46
48
|
services_1.GetWalletTokenBalanceService,
|
|
47
49
|
services_1.GetWalletNFTBalanceService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"circle-nest.module.js","sourceRoot":"","sources":["../../../src/modules/circle/circle-nest.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,iDAAoD;AAEpD,iCAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"circle-nest.module.js","sourceRoot":"","sources":["../../../src/modules/circle/circle-nest.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,iDAAoD;AAEpD,iCAA2C;AAC3C,yCAeoB;AAuCb,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAAG,CAAA;AAAnB,4CAAgB;2BAAhB,gBAAgB;IArC5B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,qBAAY,CAAC;QACvB,SAAS,EAAE;YACT,+BAAoB;YACpB,6BAAkB;YAClB,2BAAgB;YAChB,iCAAsB;YACtB,8BAAmB;YACnB,mCAAwB;YACxB,kCAAuB;YACvB,gCAAqB;YACrB,mCAAwB;YACxB,0BAAe;YACf,uCAA4B;YAC5B,qCAA0B;YAC1B,gCAAqB;YACrB,wCAA6B;YAC7B,wBAAiB;SAClB;QACD,OAAO,EAAE;YACP,+BAAoB;YACpB,6BAAkB;YAClB,2BAAgB;YAChB,iCAAsB;YACtB,8BAAmB;YACnB,mCAAwB;YACxB,kCAAuB;YACvB,gCAAqB;YACrB,mCAAwB;YACxB,0BAAe;YACf,uCAA4B;YAC5B,qCAA0B;YAC1B,gCAAqB;YACrB,wCAA6B;YAC7B,wBAAiB;SAClB;KACF,CAAC;GACW,gBAAgB,CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"circle.module.d.ts","sourceRoot":"","sources":["../../../src/modules/circle/circle.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,wBAAwB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"circle.module.d.ts","sourceRoot":"","sources":["../../../src/modules/circle/circle.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAoBpF,eAAO,MAAM,YAAY,EAAE,wBAyB1B,CAAC"}
|
|
@@ -21,6 +21,7 @@ exports.circleModule = {
|
|
|
21
21
|
actions_1.createTransactionAction,
|
|
22
22
|
actions_1.listTransactionsAction,
|
|
23
23
|
actions_1.getTransactionAction,
|
|
24
|
+
actions_1.updateTransactionAction,
|
|
24
25
|
actions_1.syncWalletTransactionsAction,
|
|
25
26
|
actions_1.getTokenAction,
|
|
26
27
|
actions_1.getWalletTokenBalanceAction,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"circle.module.js","sourceRoot":"","sources":["../../../src/modules/circle/circle.module.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"circle.module.js","sourceRoot":"","sources":["../../../src/modules/circle/circle.module.ts"],"names":[],"mappings":";;;AACA,uCAemB;AACnB,oEAA+D;AAC/D,+CAAkD;AAErC,QAAA,YAAY,GAA6B;IACpD,GAAG,EAAE,QAAQ;IACb,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,2DAA2D;IACxE,IAAI,EAAE,GAAG;IACT,OAAO,EAAE,OAAO;IAChB,gBAAgB,EAAE,+BAAiB;IACnC,gBAAgB,EAAE,uCAA+E;IACjG,OAAO,EAAE;QACP,6BAAmB;QACnB,2BAAiB;QACjB,yBAAe;QACf,+BAAqB;QACrB,4BAAkB;QAClB,iCAAuB;QACvB,gCAAsB;QACtB,8BAAoB;QACpB,iCAAuB;QACvB,sCAA4B;QAC5B,wBAAc;QACd,qCAA2B;QAC3B,mCAAyB;QACzB,8BAAoB;KACrB;IACD,QAAQ,EAAE,EAAE;CACb,CAAC"}
|
|
@@ -11,4 +11,5 @@ export * from './list-challenges.service';
|
|
|
11
11
|
export * from './list-transactions.service';
|
|
12
12
|
export * from './list-wallets.service';
|
|
13
13
|
export * from './sync-wallet-transactions.service';
|
|
14
|
+
export * from './update-transaction.service';
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/circle/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/circle/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC"}
|
|
@@ -27,4 +27,5 @@ __exportStar(require("./list-challenges.service"), exports);
|
|
|
27
27
|
__exportStar(require("./list-transactions.service"), exports);
|
|
28
28
|
__exportStar(require("./list-wallets.service"), exports);
|
|
29
29
|
__exportStar(require("./sync-wallet-transactions.service"), exports);
|
|
30
|
+
__exportStar(require("./update-transaction.service"), exports);
|
|
30
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/circle/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,8DAA4C;AAC5C,2DAAyC;AACzC,sDAAoC;AACpC,4DAA0C;AAC1C,uDAAqC;AACrC,mEAAiD;AACjD,2DAAyC;AACzC,qEAAmD;AACnD,4DAA0C;AAC1C,8DAA4C;AAC5C,yDAAuC;AACvC,qEAAmD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/circle/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,8DAA4C;AAC5C,2DAAyC;AACzC,sDAAoC;AACpC,4DAA0C;AAC1C,uDAAqC;AACrC,mEAAiD;AACjD,2DAAyC;AACzC,qEAAmD;AACnD,4DAA0C;AAC1C,8DAA4C;AAC5C,yDAAuC;AACvC,qEAAmD;AACnD,+DAA6C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CircleTransactionService } from '@venturialstd/circle';
|
|
2
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
3
|
+
export declare class UpdateTransactionService implements IWorkflowActionService {
|
|
4
|
+
private readonly circleTransactionService;
|
|
5
|
+
constructor(circleTransactionService: CircleTransactionService);
|
|
6
|
+
perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=update-transaction.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-transaction.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/circle/services/update-transaction.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAA0B,MAAM,sBAAsB,CAAC;AAExF,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,wBAAyB,YAAW,sBAAsB;IACzD,OAAO,CAAC,QAAQ,CAAC,wBAAwB;gBAAxB,wBAAwB,EAAE,wBAAwB;IAEzE,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAwDpC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
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.UpdateTransactionService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const circle_1 = require("@venturialstd/circle");
|
|
15
|
+
let UpdateTransactionService = class UpdateTransactionService {
|
|
16
|
+
circleTransactionService;
|
|
17
|
+
constructor(circleTransactionService) {
|
|
18
|
+
this.circleTransactionService = circleTransactionService;
|
|
19
|
+
}
|
|
20
|
+
async perform(inputs, _context) {
|
|
21
|
+
const circleTransactionId = inputs.circleTransactionId;
|
|
22
|
+
const refId = inputs.refId;
|
|
23
|
+
const txHash = inputs.txHash;
|
|
24
|
+
const state = inputs.state;
|
|
25
|
+
const errorReason = inputs.errorReason;
|
|
26
|
+
if (!circleTransactionId) {
|
|
27
|
+
throw new Error('Circle Transaction ID is required');
|
|
28
|
+
}
|
|
29
|
+
const transaction = await this.circleTransactionService.repo.findOne({
|
|
30
|
+
where: { circleTransactionId },
|
|
31
|
+
});
|
|
32
|
+
if (!transaction) {
|
|
33
|
+
throw new common_1.NotFoundException(`Transaction with circleTransactionId ${circleTransactionId} not found`);
|
|
34
|
+
}
|
|
35
|
+
if (refId !== undefined) {
|
|
36
|
+
transaction.refId = refId;
|
|
37
|
+
}
|
|
38
|
+
if (txHash !== undefined) {
|
|
39
|
+
transaction.txHash = txHash;
|
|
40
|
+
}
|
|
41
|
+
if (state !== undefined) {
|
|
42
|
+
transaction.state = state;
|
|
43
|
+
}
|
|
44
|
+
if (errorReason !== undefined) {
|
|
45
|
+
transaction.errorReason = errorReason;
|
|
46
|
+
}
|
|
47
|
+
const updatedTransaction = await this.circleTransactionService.repo.save(transaction);
|
|
48
|
+
return {
|
|
49
|
+
id: updatedTransaction.id,
|
|
50
|
+
circleTransactionId: updatedTransaction.circleTransactionId,
|
|
51
|
+
circleWalletId: updatedTransaction.circleWalletId,
|
|
52
|
+
circleTokenId: updatedTransaction.circleTokenId,
|
|
53
|
+
blockchainIdentifier: updatedTransaction.blockchainIdentifier,
|
|
54
|
+
amount: updatedTransaction.amount,
|
|
55
|
+
state: updatedTransaction.state,
|
|
56
|
+
transactionType: updatedTransaction.transactionType,
|
|
57
|
+
sourceAddress: updatedTransaction.sourceAddress,
|
|
58
|
+
destinationAddress: updatedTransaction.destinationAddress,
|
|
59
|
+
txHash: updatedTransaction.txHash,
|
|
60
|
+
errorReason: updatedTransaction.errorReason,
|
|
61
|
+
refId: updatedTransaction.refId,
|
|
62
|
+
createdAt: updatedTransaction.createdAt?.toISOString(),
|
|
63
|
+
updatedAt: updatedTransaction.updatedAt?.toISOString(),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
exports.UpdateTransactionService = UpdateTransactionService;
|
|
68
|
+
exports.UpdateTransactionService = UpdateTransactionService = __decorate([
|
|
69
|
+
(0, common_1.Injectable)(),
|
|
70
|
+
__metadata("design:paramtypes", [circle_1.CircleTransactionService])
|
|
71
|
+
], UpdateTransactionService);
|
|
72
|
+
//# sourceMappingURL=update-transaction.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-transaction.service.js","sourceRoot":"","sources":["../../../../src/modules/circle/services/update-transaction.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA+D;AAC/D,iDAAwF;AAKjF,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACN;IAA7B,YAA6B,wBAAkD;QAAlD,6BAAwB,GAAxB,wBAAwB,CAA0B;IAAG,CAAC;IAEnF,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,QAA+B;QAG/B,MAAM,mBAAmB,GAAG,MAAM,CAAC,mBAA6B,CAAC;QACjE,MAAM,KAAK,GAAG,MAAM,CAAC,KAA2B,CAAC;QACjD,MAAM,MAAM,GAAG,MAAM,CAAC,MAA4B,CAAC;QACnD,MAAM,KAAK,GAAG,MAAM,CAAC,KAA2C,CAAC;QACjE,MAAM,WAAW,GAAG,MAAM,CAAC,WAAiC,CAAC;QAE7D,IAAI,CAAC,mBAAmB,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;QACvD,CA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,WAAW;YAC3C,KAAK,EAAE,kBAAkB,CAAC,KAAK;YAC/B,SAAS,EAAE,kBAAkB,CAAC,SAAS,EAAE,WAAW,EAAE;YACtD,SAAS,EAAE,kBAAkB,CAAC,SAAS,EAAE,WAAW,EAAE;SACvD,CAAC;IACJ,CAAC;CACF,CAAA;AA9DY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAU,GAAE;qCAE4C,iCAAwB;GADpE,wBAAwB,CA8DpC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venturialstd/workflow",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.104",
|
|
4
4
|
"description": "Workflow Module for Venturial",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@nestjs/passport": "^11.0.5",
|
|
75
75
|
"@nestjs/swagger": "^11.0.3",
|
|
76
76
|
"@nestjs/typeorm": "^11.0.0",
|
|
77
|
-
"@venturialstd/circle": "^0.0.
|
|
77
|
+
"@venturialstd/circle": "^0.0.7",
|
|
78
78
|
"@venturialstd/core": "^1.0.16",
|
|
79
79
|
"@venturialstd/fintech": "^0.0.16",
|
|
80
80
|
"@venturialstd/inbestgo": "^0.0.1",
|