@colabo-flow/sa-flowchestra 0.0.0-stage → 1.0.1
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/CHANGELOG.md +61 -0
- package/README.md +14 -2
- package/dist/esm/index.js +21425 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/types/config/_global.d.ts +3 -0
- package/dist/types/config/global.d.ts +106 -0
- package/dist/types/src/app.constants.d.ts +2 -0
- package/dist/types/src/app.controller.d.ts +174 -0
- package/dist/types/src/app.module.d.ts +2 -0
- package/dist/types/src/app.service.d.ts +95 -0
- package/dist/types/src/bootstrap.nestjs.d.ts +2 -0
- package/dist/types/src/execution/execution.controller.d.ts +6 -0
- package/dist/types/src/execution/execution.module.d.ts +2 -0
- package/dist/types/src/execution/execution.service.d.ts +3 -0
- package/dist/types/src/main.d.ts +2 -0
- package/dist/types/src/store.provider.d.ts +3 -0
- package/package.json +128 -5
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export namespace globalSet {
|
|
2
|
+
let general: {};
|
|
3
|
+
namespace paths {
|
|
4
|
+
let DATASET_FOLDER: string;
|
|
5
|
+
let FOLDER_OUT: string;
|
|
6
|
+
let FOLDER_CACHE: string;
|
|
7
|
+
}
|
|
8
|
+
namespace dbConfig {
|
|
9
|
+
let newConnect: boolean;
|
|
10
|
+
let dbName: string;
|
|
11
|
+
let domain: string;
|
|
12
|
+
let port: number;
|
|
13
|
+
let user: string;
|
|
14
|
+
let pass: string;
|
|
15
|
+
}
|
|
16
|
+
let puzzles: {
|
|
17
|
+
"@colabo-knalledge/b-core": {
|
|
18
|
+
typesThatNeedHumanId: string[];
|
|
19
|
+
registerModules: {
|
|
20
|
+
name: string;
|
|
21
|
+
description: string;
|
|
22
|
+
consumer: string;
|
|
23
|
+
entryPoints: {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
description: string;
|
|
27
|
+
triggerCondition: any;
|
|
28
|
+
excludeOriginal: boolean;
|
|
29
|
+
importInfo: {
|
|
30
|
+
moduleName: string;
|
|
31
|
+
exportName: string;
|
|
32
|
+
};
|
|
33
|
+
}[];
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
36
|
+
"@colabo-topichat/b-core": {
|
|
37
|
+
debug: boolean;
|
|
38
|
+
debug_verbose: boolean;
|
|
39
|
+
};
|
|
40
|
+
"@colabo-topichat/b-talk": {
|
|
41
|
+
debug: boolean;
|
|
42
|
+
debug_verbose: boolean;
|
|
43
|
+
saveTalkToMap: boolean;
|
|
44
|
+
emitMessages: boolean;
|
|
45
|
+
mapId: string;
|
|
46
|
+
defaultIAmId: string;
|
|
47
|
+
};
|
|
48
|
+
"@colabo-topichat/b-clients-orchestration": {
|
|
49
|
+
saveTalkToMap: boolean;
|
|
50
|
+
emitMessages: boolean;
|
|
51
|
+
emitMessagesToSender: boolean;
|
|
52
|
+
mapId: string;
|
|
53
|
+
iAmId: string;
|
|
54
|
+
nodeId: string;
|
|
55
|
+
};
|
|
56
|
+
"@colabo-flow/b-audit": {
|
|
57
|
+
limitFindNo: number;
|
|
58
|
+
};
|
|
59
|
+
"@colabo-flow/b-services": {
|
|
60
|
+
debug: boolean;
|
|
61
|
+
url: string;
|
|
62
|
+
cancelCunsumerTags: boolean;
|
|
63
|
+
queue: string;
|
|
64
|
+
shouldRequestResult: boolean;
|
|
65
|
+
noAck: boolean;
|
|
66
|
+
shouldListenOnSeparateResponseQueue: boolean;
|
|
67
|
+
separateResponseQueue: string;
|
|
68
|
+
};
|
|
69
|
+
"@colabo-flow/b-topichat": {
|
|
70
|
+
saveFlowInteractionToMap: boolean;
|
|
71
|
+
mockupQueueAccess: boolean;
|
|
72
|
+
mapId: string;
|
|
73
|
+
};
|
|
74
|
+
"@colabo-media/b-upload": {
|
|
75
|
+
tmpUpload: string;
|
|
76
|
+
mediaTypes: {
|
|
77
|
+
default: {
|
|
78
|
+
type: string;
|
|
79
|
+
destinationFolder: string;
|
|
80
|
+
webPath: string;
|
|
81
|
+
};
|
|
82
|
+
user: {
|
|
83
|
+
type: string;
|
|
84
|
+
mediaFormat: string;
|
|
85
|
+
destinationFolder: string;
|
|
86
|
+
webPath: string;
|
|
87
|
+
};
|
|
88
|
+
playsust: {
|
|
89
|
+
type: string;
|
|
90
|
+
mediaFormat: string;
|
|
91
|
+
destinationFolder: string;
|
|
92
|
+
webPath: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
"@colabo-knalledge/i-core-services": {
|
|
97
|
+
debug: boolean;
|
|
98
|
+
iAmId: string;
|
|
99
|
+
voId: string;
|
|
100
|
+
name: string;
|
|
101
|
+
type: string;
|
|
102
|
+
serverUrl: string;
|
|
103
|
+
structureType: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { AppService } from './app.service';
|
|
2
|
+
import { RIMA_AGENT_TYPE } from '@colabo-rima/i-aaa';
|
|
3
|
+
import { ServerData } from '@colabo-knalledge/i-core';
|
|
4
|
+
import { EFlowExecutionStatus, IFlowInstance } from '@colabo-flow/i-core';
|
|
5
|
+
export declare class AppController {
|
|
6
|
+
private readonly appService;
|
|
7
|
+
constructor(appService: AppService);
|
|
8
|
+
protected accessId: number;
|
|
9
|
+
protected getNextAccessId(): number;
|
|
10
|
+
getHello(): string;
|
|
11
|
+
/**
|
|
12
|
+
* Instantiates flow with provided input and flow instance details
|
|
13
|
+
* @param body Object containing flowInputSerialized and newFlowInstance
|
|
14
|
+
* @returns {string} Flow instance id
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* POST http://localhost:8008/flowchestrator/instantiateFlow
|
|
18
|
+
* Body:
|
|
19
|
+
* {
|
|
20
|
+
* "flowInputSerialized": "{\"key\":\"value\"}",
|
|
21
|
+
* "newFlowInstance": { "id": "123", "name": "Example Flow Instance" }
|
|
22
|
+
* }
|
|
23
|
+
*/
|
|
24
|
+
instantiateFlow(flowId: string, body: {
|
|
25
|
+
flowInput?: any;
|
|
26
|
+
flowInstancePartial?: Partial<IFlowInstance>;
|
|
27
|
+
}): Promise<string>;
|
|
28
|
+
deleteFlowInstance(flowInstanceId: string): Promise<ServerData>;
|
|
29
|
+
/**
|
|
30
|
+
* Sets flow instance status
|
|
31
|
+
* @param flowInstanceKnodeId Flow instance knode id
|
|
32
|
+
* @param status Flow execution status
|
|
33
|
+
* @returns Flow instance as JSON
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* http://localhost:8008/flowchestrator/flowInstances/<flowInstanceKnodeId>/status
|
|
37
|
+
* @example
|
|
38
|
+
* http://localhost:8008/flowchestrator/flowInstances/6808063fa5e47546be531761/status
|
|
39
|
+
*/
|
|
40
|
+
setFlowInstanceStatus(flowInstanceKnodeId: string, status: EFlowExecutionStatus): Promise<any>;
|
|
41
|
+
/**
|
|
42
|
+
* Retrieves flow instance from the persistent store and loads it into the flow store.
|
|
43
|
+
* @param flowInstanceKnodeId Flow instance knode id
|
|
44
|
+
* @returns Flow instance as JSON
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* http://localhost:8008/flowchestrator/DepersistFlowInstance/flowInstanceKnodeId/<flowInstanceKnodeId>
|
|
48
|
+
* @example
|
|
49
|
+
* http://localhost:8008/flowchestrator/DepersistFlowInstance/flowInstanceKnodeId/6808063fa5e47546be531761
|
|
50
|
+
*/
|
|
51
|
+
depersistFlowInstance(flowInstanceKnodeId: string): Promise<any>;
|
|
52
|
+
/**
|
|
53
|
+
* Joins flow instance by creating a new token
|
|
54
|
+
* @param flowInstanceKnodeId Flow instance id
|
|
55
|
+
* @param placeId Place id within the flow instance where the token is created
|
|
56
|
+
* @param whoAmI agent id of the agent (represented as token) who is joining the flow instance
|
|
57
|
+
* @param agentType agent type (user, group, service) of the agent (represented as token) who is joining the flow instance
|
|
58
|
+
* @returns Token kNode id
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* http://localhost:8008/flowchestrator/joinAgentToFlowInstance?flowInstanceKnodeId=<flowInstanceKnodeId>&placeId=<placeId>&whoAmI=<whoAmI>&agentType=<agentType>
|
|
62
|
+
* @example
|
|
63
|
+
* http://localhost:8008/flowchestrator/joinAgentToFlowInstance?flowInstanceKnodeId=680a493284e86a6210ddeb5e&placeId=eventStartId:e8bc6232-0cfb-11f0-a068-ab160b2f15b1&whoAmI=556760847125996dc1a4a24f&agentType=rima.user
|
|
64
|
+
*/
|
|
65
|
+
joinAgentToFlowInstance(flowInstanceKnodeId: string, placeId: string, whoAmI: string, agentType: RIMA_AGENT_TYPE): Promise<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Gets agent token for flow instance
|
|
68
|
+
* @param flowInstanceKnodeId Flow instance knode id
|
|
69
|
+
* @param whoAmI agent id of the agent (represented as token) who is joining the flow instance
|
|
70
|
+
* @returns Token as JSON or undefined if not found
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* http://localhost:8008/flowchestrator/getAgentTokenForFlowInstance?flowInstanceKnodeId=<flowInstanceKnodeId>&whoAmI=<whoAmI>
|
|
74
|
+
* @example
|
|
75
|
+
* "http://localhost:8008/flowchestrator/getAgentTokenForFlowInstance?flowInstanceKnodeId=680a493284e86a6210ddeb5e&whoAmI=619a8fe7f155f13ee58b7252"
|
|
76
|
+
*/
|
|
77
|
+
getAgentTokenForFlowInstance(flowInstanceKnodeId: string, whoAmI: string): Promise<string>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @param tokenId Token id
|
|
81
|
+
* @returns Token as JSON
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* http://localhost:8008/flowchestrator/loadToken/tokenId/<tokenId>
|
|
85
|
+
* @example
|
|
86
|
+
* http://localhost:8008/flowchestrator/loadToken/tokenId/680a845984e86a6210ddeb69
|
|
87
|
+
*
|
|
88
|
+
* NOTE: Should we return the token knode id or the token id?
|
|
89
|
+
*/
|
|
90
|
+
loadToken(tokenId: string): Promise<any>;
|
|
91
|
+
/**
|
|
92
|
+
* Gets tokens for a specific flow instance
|
|
93
|
+
* @param flowInstanceId Flow instance id which tokens we want to load
|
|
94
|
+
* @returns An array of tokens as JSON
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* http://localhost:8008/flowchestrator/flowInstances/<flowInstanceId>/tokens
|
|
98
|
+
* @example
|
|
99
|
+
* http://localhost:8008/flowchestrator/flowInstances/681d3ac3f3609852450125bd/tokens
|
|
100
|
+
*
|
|
101
|
+
*/
|
|
102
|
+
loadTokens(flowInstanceId: string): Promise<any>;
|
|
103
|
+
/**
|
|
104
|
+
* Moves token to a new place
|
|
105
|
+
* @param tokenId Token id
|
|
106
|
+
* @param movePayload
|
|
107
|
+
* @returns
|
|
108
|
+
*/
|
|
109
|
+
moveAllTokens(flowInstanceId: string, body: {
|
|
110
|
+
placeId: string;
|
|
111
|
+
}): Promise<any>;
|
|
112
|
+
/**
|
|
113
|
+
* Moves token to a new place
|
|
114
|
+
* @param tokenId Token id
|
|
115
|
+
* @param movePayload
|
|
116
|
+
* @returns
|
|
117
|
+
*/
|
|
118
|
+
moveToken(tokenId: string, body: {
|
|
119
|
+
placeId: string;
|
|
120
|
+
}): Promise<any>;
|
|
121
|
+
/**
|
|
122
|
+
* Loads Flow by ID from the persistent store into the flow store.
|
|
123
|
+
* @param flowId Flow id
|
|
124
|
+
* @returns Flow as JSON
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* http://localhost:8008/flowchestrator/loadFlow/flowId/<flowId>
|
|
128
|
+
* @example
|
|
129
|
+
* http://localhost:8008/flowchestrator/loadFlow/flowId/67e88d15a5e47546be52fefc
|
|
130
|
+
* - returns flow as JSON
|
|
131
|
+
*/
|
|
132
|
+
loadFlow(flowId: string): Promise<any>;
|
|
133
|
+
/**
|
|
134
|
+
* Gets Flow by ID
|
|
135
|
+
* @param flowId Flow id
|
|
136
|
+
* @returns Flow as JSON
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* http://localhost:8008/flowchestrator/getFlow/flowId/<flowId>
|
|
140
|
+
* @example
|
|
141
|
+
* http://localhost:8008/flowchestrator/getFlow/flowId/67e88d15a5e47546be52fefc
|
|
142
|
+
* - returns flow as JSON
|
|
143
|
+
*/
|
|
144
|
+
getFlow(flowId: string): Promise<any>;
|
|
145
|
+
/**
|
|
146
|
+
* Gets list of flows
|
|
147
|
+
* @returns List of flows as JSON
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* http://localhost:8008/flowchestrator/loadFlows
|
|
151
|
+
*/
|
|
152
|
+
loadFlows(): Promise<any>;
|
|
153
|
+
/**
|
|
154
|
+
* Gets list of flow instances
|
|
155
|
+
* @param flowId Flow id (optional)
|
|
156
|
+
* If flowId is not provided, all flow instances are loaded.
|
|
157
|
+
* @param flowInstanceId Flow instance id (optional), if provided, only the flow instance with this id is loaded, otherwise all flow instances for the flowId (if provided) are loaded.
|
|
158
|
+
* @param statuses Flow execution statuses (optional), if provided, only the flow instances with these statuses are loaded.
|
|
159
|
+
* @returns List of flow instances as JSON
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* http://localhost:8008/flowchestrator/loadFlowInstances
|
|
163
|
+
* @example
|
|
164
|
+
* http://localhost:8008/flowchestrator/loadFlowInstances?flowId=<flowId>
|
|
165
|
+
* @example
|
|
166
|
+
* http://localhost:8008/flowchestrator/loadFlowInstances
|
|
167
|
+
* @example
|
|
168
|
+
* http://localhost:8008/flowchestrator/loadFlowInstances?flowId=67e88d15a5e47546be52fefc
|
|
169
|
+
* @example
|
|
170
|
+
* http://localhost:8008/flowchestrator/loadFlowInstances?flowInstanceId=6813e78584e86a6210de0e3f
|
|
171
|
+
* - returns flow instances as JSON
|
|
172
|
+
*/
|
|
173
|
+
loadFlowInstances(flowId?: string, flowInstanceId?: string, statusesStr?: string): Promise<any>;
|
|
174
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { EFlowExecutionStatus, IFlow, IFlowInstance, IFlowToken } from '@colabo-flow/i-core';
|
|
2
|
+
import { IGlobalStore } from '@colabo-flow/s-go';
|
|
3
|
+
import { RIMA_AGENT_TYPE } from "@colabo-rima/i-aaa";
|
|
4
|
+
export declare class AppService {
|
|
5
|
+
private readonly store;
|
|
6
|
+
private readonly appTitle;
|
|
7
|
+
constructor(store: IGlobalStore, appTitle: string);
|
|
8
|
+
get appNameText(): string;
|
|
9
|
+
getHello(): string;
|
|
10
|
+
/** Instantiates flow from flow (identified by flowId) by creating a flow instance
|
|
11
|
+
* and persisting it in the flow store.
|
|
12
|
+
* @param {string} flowId Flow id
|
|
13
|
+
* @param {any} flowInput Flow input
|
|
14
|
+
* @param {Partial<IFlowInstance>} flowInstancePartial Flow instance details
|
|
15
|
+
* @returns {string} Flow instance id
|
|
16
|
+
*/
|
|
17
|
+
instantiateFlow(flowId: string, flowInput?: any, flowInstancePartial?: Partial<IFlowInstance>): Promise<IFlowInstance>;
|
|
18
|
+
/**
|
|
19
|
+
* Deletes flow instance from the persistent store
|
|
20
|
+
* @param flowInstanceId Flow instance id
|
|
21
|
+
* @returns Flow instance as JSON
|
|
22
|
+
*/
|
|
23
|
+
deleteFlowInstance(flowInstanceId: string): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Sets flow instance status
|
|
26
|
+
* @param flowInstanceKnodeId Flow instance knode id
|
|
27
|
+
* @param status Flow instance status
|
|
28
|
+
* @returns Flow instance as JSON
|
|
29
|
+
*/
|
|
30
|
+
setFlowInstanceStatus(flowInstanceKnodeId: string, status: EFlowExecutionStatus): Promise<EFlowExecutionStatus>;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves flow instance from the persistent store and loads it into the flow store.
|
|
33
|
+
* @param flowInstanceKnodeId Flow instance knode id
|
|
34
|
+
* @returns Flow instance as JSON
|
|
35
|
+
*/
|
|
36
|
+
depersistFlowInstance(flowInstanceKnodeId: string): Promise<any>;
|
|
37
|
+
/**
|
|
38
|
+
* Joins flow instance by creating a new token
|
|
39
|
+
* @param flowInstanceKnodeId Flow instance knode id
|
|
40
|
+
* @param placeId Place id within the flow instance where the token is created. If undefined, the token is created in the start place of the flow instance.
|
|
41
|
+
* @param whoAmI agent id of the agent (represented as token) who is joining the flow instance
|
|
42
|
+
* @param agentType agent type (user, group, service) of the agent (represented as token) who is joining the flow instance
|
|
43
|
+
* @returns Token id
|
|
44
|
+
* TODO: Should we return the token knode id or the token id?
|
|
45
|
+
*/
|
|
46
|
+
joinAgentToFlowInstance(flowInstanceKnodeId: string, placeId: string | undefined, whoAmI: string, agentType: RIMA_AGENT_TYPE): Promise<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Gets agent token for flow instance
|
|
49
|
+
* @param flowInstanceKnodeId Flow instance knode id
|
|
50
|
+
* @param whoAmI agent id of the agent which presence (represented as token) in the flow instance we want to get
|
|
51
|
+
* @returns Token as JSON or undefined if not found
|
|
52
|
+
*/
|
|
53
|
+
getAgentTokenForFlowInstance(flowInstanceKnodeId: string, whoAmI: string): Promise<IFlowToken | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* Loads token by ID from the persistent store into the flow store.
|
|
56
|
+
* @param tokenId Token id
|
|
57
|
+
* @returns Token as JSON
|
|
58
|
+
*/
|
|
59
|
+
loadToken(tokenId: string): Promise<IFlowToken>;
|
|
60
|
+
/**
|
|
61
|
+
* Loads tokens by flow instance knode id from the persistent store
|
|
62
|
+
* @param flowInstanceId Flow instance id
|
|
63
|
+
* @returns Array of Tokens
|
|
64
|
+
*/
|
|
65
|
+
loadTokens(flowInstanceId: string): Promise<IFlowToken[]>;
|
|
66
|
+
/** Moves token to a new place */
|
|
67
|
+
moveToken(tokenId: string, placeId: string): Promise<IFlowToken>;
|
|
68
|
+
/** Moves all the tokens from a flow instance to a new place */
|
|
69
|
+
moveAllTokens(flowInstanceId: string, placeId: string): Promise<IFlowToken[]>;
|
|
70
|
+
/**
|
|
71
|
+
* Loads Flow by ID from the persistent store into the flow store.
|
|
72
|
+
* @param flowId Flow id
|
|
73
|
+
* @returns Flow as JSON
|
|
74
|
+
*/
|
|
75
|
+
loadFlow(flowId: string): Promise<IFlow>;
|
|
76
|
+
/**
|
|
77
|
+
* Gets Flow by ID
|
|
78
|
+
* @param flowId Flow id
|
|
79
|
+
* @returns Flow as JSON
|
|
80
|
+
*/
|
|
81
|
+
getFlow(flowId: string): Promise<IFlow>;
|
|
82
|
+
/**
|
|
83
|
+
* Loads and gets List of Flows
|
|
84
|
+
* @returns List of Flows as JSON
|
|
85
|
+
*/
|
|
86
|
+
loadFlows(): Promise<IFlow[]>;
|
|
87
|
+
/**
|
|
88
|
+
* Loads and gets List of Flow Instances
|
|
89
|
+
* @param flowId Flow id which instances we want to load
|
|
90
|
+
* @param flowInstanceNodeId Flow instance node id which we want to load
|
|
91
|
+
* @param statuses Optional status filter for flow instances
|
|
92
|
+
* @returns List of Flow Instances as JSON
|
|
93
|
+
*/
|
|
94
|
+
loadFlowInstances(flowId?: string, flowInstanceNodeId?: string, statuses?: EFlowExecutionStatus[]): Promise<IFlowInstance[]>;
|
|
95
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,129 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "@colabo-flow/sa-flowchestra",
|
|
3
|
+
"description": "FlowCheсtra backend service",
|
|
4
|
+
"version": "1.0.1",
|
|
5
|
+
"private": false,
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"start": "node --inspect --trace-warnings --env-file=src/.env --experimental-specifier-resolution=node --loader $COLABO/ts-esm-loader-with-tsconfig-paths.js src/main.ts 8008",
|
|
11
|
+
"start:dist": "node --env-file=.env dist/esm/index.js 8008 ../../config/global.js",
|
|
12
|
+
"start_tsx": "tsx --tsconfig tsconfig.json --env-file=.env --inspect --trace-uncaught --trace-warnings index.ts 8008",
|
|
13
|
+
"start_ts_node": "ts-node --transpile-only --project tsconfig.json index.ts 8008",
|
|
14
|
+
"watch": "tsc --watch --noEmit -p tsconfig.watch.json",
|
|
15
|
+
"clean": "rm -rf dist",
|
|
16
|
+
"build": "yarn clean && yarn build:esbuild",
|
|
17
|
+
"build:esbuild": "node esbuild.mjs",
|
|
18
|
+
"package_build": "yarn clean && rm -rf dist && yarn build:esbuild",
|
|
19
|
+
"package_check": "tsx $COLABO_FOLDER/scripts/check-package.ts --configPath=\"$COLABO_FOLDER/scripts/config\"",
|
|
20
|
+
"package_semantic_release": "npx --no-install semantic-release --no-ci --debug -e semantic-release-monorepo",
|
|
21
|
+
"package_pre_publish": "tsx $COLABO_FOLDER/scripts/pre-publish/single.ts",
|
|
22
|
+
"package_post_publish": "tsx $COLABO_FOLDER/scripts/post-publish/single.ts",
|
|
23
|
+
"package_install": "yarn install --mutex file:/tmp/yarn-colabo.lock",
|
|
24
|
+
"package_rm_install_lock": "rm -f yarn.lock",
|
|
25
|
+
"echo_name": "echo 'Paths: '; echo \"LERNA_ROOT_PATH: $LERNA_ROOT_PATH\"; echo \"LERNA_EXEC_PATH: $LERNA_EXEC_PATH\"; echo \"LERNA_PACKAGE_NAME: $LERNA_PACKAGE_NAME\"",
|
|
26
|
+
"install_deps": "yarn install",
|
|
27
|
+
"update_ver_deps": "tsx scripts/update-dependencies-versions.ts --package $LERNA_PACKAGE_NAME",
|
|
28
|
+
"deploy": "yarn install",
|
|
29
|
+
"build:rollup": "rollup -c",
|
|
30
|
+
"package_update_dependencies_versions": "tsx $COLABO_FOLDER/scripts/update-dependencies-versions/single.ts",
|
|
31
|
+
"package_publish": "echo \"${npm_package_name}:package_publish ----- Publishing the package ----\"",
|
|
32
|
+
"generate_deployment_config": "npx tsx $COLABO_FOLDER/scripts/deployment/generate-deployment-config.ts",
|
|
33
|
+
"package_install_dev": "yarn install --mutex file:/tmp/yarn-colabo.lock",
|
|
34
|
+
"package_build_dev": "yarn clean && rm -rf dist && yarn build:esbuild"
|
|
35
|
+
},
|
|
36
|
+
"type": "module",
|
|
37
|
+
"main": "dist/cjs/index.js",
|
|
38
|
+
"module": "dist/esm/index.js",
|
|
39
|
+
"exports": {
|
|
40
|
+
".": {
|
|
41
|
+
"types": "./dist/types/index.d.ts",
|
|
42
|
+
"import": "./dist/esm/index.js",
|
|
43
|
+
"require": "./dist/cjs/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./package.json": "./package.json"
|
|
46
|
+
},
|
|
47
|
+
"types": "dist/types/index.d.ts",
|
|
48
|
+
"typings": "dist/types/index.d.ts",
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@nestjs/common": "^11.0.20",
|
|
51
|
+
"@nestjs/core": "^11.0.20",
|
|
52
|
+
"@nestjs/platform-express": "^11.0.20",
|
|
53
|
+
"@nestjs/swagger": "^11.1.4",
|
|
54
|
+
"axios": "^0.19.2",
|
|
55
|
+
"body-parser": "^1.18.3",
|
|
56
|
+
"chalk": "^2.4.1",
|
|
57
|
+
"express-resource": "^1.0.0",
|
|
58
|
+
"is-mergeable-object": "^1.1.1",
|
|
59
|
+
"morgan": "^1.9.1",
|
|
60
|
+
"reflect-metadata": "^0.2.2",
|
|
61
|
+
"rxjs": "^7.8.2",
|
|
62
|
+
"zustand": "^5.0.3",
|
|
63
|
+
"@colabo-utils/i-config": "1.6.2",
|
|
64
|
+
"@colabo-knalledge/i-core": "1.4.2",
|
|
65
|
+
"@colabo-flow/i-core": "1.1.2",
|
|
66
|
+
"@colabo-rima/i-aaa": "1.4.4",
|
|
67
|
+
"@colabo-knalledge/i-core-services": "1.8.1",
|
|
68
|
+
"@colabo-flow/s-go": "1.0.1",
|
|
69
|
+
"@colabo-utils/i-verify": "1.3.5",
|
|
70
|
+
"@colabo-headless/i-core": "npm:@colabo-headless/i-core-backend@1.4.1"
|
|
71
|
+
},
|
|
72
|
+
"build": {
|
|
73
|
+
"format": [
|
|
74
|
+
"esm"
|
|
75
|
+
],
|
|
76
|
+
"platform": "node",
|
|
77
|
+
"entryPoints": [
|
|
78
|
+
"src/main.ts"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"deployment": {
|
|
82
|
+
"apiPort": "8008",
|
|
83
|
+
"apiHostname": "0.0.0.0",
|
|
84
|
+
"dbDomain": "colabo-mongodb-app-dhnb-25-svc",
|
|
85
|
+
"dbPort": "27017",
|
|
86
|
+
"dbUser": "user",
|
|
87
|
+
"dbPass": "pass",
|
|
88
|
+
"dbName": "KnAllEdge",
|
|
89
|
+
"backendServiceUrl": "http://colabo-backend-app-dhnb-25:8080"
|
|
90
|
+
},
|
|
91
|
+
"devDependencies": {
|
|
92
|
+
"@nestjs/cli": "^11.0.6",
|
|
93
|
+
"@nestjs/schematics": "^11.0.5",
|
|
94
|
+
"@types/node": "^22.14.1",
|
|
95
|
+
"ts-node": "^10.9.2",
|
|
96
|
+
"tsconfig-paths": "^4.2.0",
|
|
97
|
+
"tslint": "^6.1.3",
|
|
98
|
+
"typescript": "^5.8.3"
|
|
99
|
+
},
|
|
100
|
+
"license": "MIT",
|
|
101
|
+
"files": [
|
|
102
|
+
"dist",
|
|
103
|
+
"README.md",
|
|
104
|
+
"LICENSE",
|
|
105
|
+
"CHANGELOG.md"
|
|
106
|
+
],
|
|
107
|
+
"nx": {
|
|
108
|
+
"implicitDependencies": [
|
|
109
|
+
"@colabo-utils/i-config",
|
|
110
|
+
"@colabo-knalledge/i-core",
|
|
111
|
+
"@colabo-flow/i-core",
|
|
112
|
+
"@colabo-rima/i-aaa",
|
|
113
|
+
"@colabo-knalledge/i-core-services",
|
|
114
|
+
"@colabo-flow/s-go",
|
|
115
|
+
"@colabo-utils/i-verify",
|
|
116
|
+
"@colabo-headless/i-core-backend"
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
"liveDependencies": {
|
|
120
|
+
"@colabo-utils/i-config": "1.6.2",
|
|
121
|
+
"@colabo-knalledge/i-core": "1.4.2",
|
|
122
|
+
"@colabo-flow/i-core": "1.1.2",
|
|
123
|
+
"@colabo-rima/i-aaa": "1.4.4",
|
|
124
|
+
"@colabo-knalledge/i-core-services": "1.8.1",
|
|
125
|
+
"@colabo-flow/s-go": "1.0.1",
|
|
126
|
+
"@colabo-utils/i-verify": "1.3.5",
|
|
127
|
+
"@colabo-headless/i-core": "npm:@colabo-headless/i-core-backend@1.4.1"
|
|
128
|
+
}
|
|
129
|
+
}
|