@dynamatix/gb-schemas 2.3.321 → 2.3.323
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.
|
@@ -54,7 +54,19 @@ declare const ApplicationsTaskModel: mongoose.Model<{
|
|
|
54
54
|
};
|
|
55
55
|
statusDate: string;
|
|
56
56
|
statusReason: string;
|
|
57
|
-
comments:
|
|
57
|
+
comments: mongoose.Types.DocumentArray<{
|
|
58
|
+
createdAt: NativeDate;
|
|
59
|
+
message: string;
|
|
60
|
+
createdBy: mongoose.Types.ObjectId;
|
|
61
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
62
|
+
createdAt: NativeDate;
|
|
63
|
+
message: string;
|
|
64
|
+
createdBy: mongoose.Types.ObjectId;
|
|
65
|
+
}> & {
|
|
66
|
+
createdAt: NativeDate;
|
|
67
|
+
message: string;
|
|
68
|
+
createdBy: mongoose.Types.ObjectId;
|
|
69
|
+
}>;
|
|
58
70
|
status?: number | null | undefined;
|
|
59
71
|
checkflowId?: string | null | undefined;
|
|
60
72
|
instanceId?: string | null | undefined;
|
|
@@ -85,7 +97,19 @@ declare const ApplicationsTaskModel: mongoose.Model<{
|
|
|
85
97
|
};
|
|
86
98
|
statusDate: string;
|
|
87
99
|
statusReason: string;
|
|
88
|
-
comments:
|
|
100
|
+
comments: mongoose.Types.DocumentArray<{
|
|
101
|
+
createdAt: NativeDate;
|
|
102
|
+
message: string;
|
|
103
|
+
createdBy: mongoose.Types.ObjectId;
|
|
104
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
105
|
+
createdAt: NativeDate;
|
|
106
|
+
message: string;
|
|
107
|
+
createdBy: mongoose.Types.ObjectId;
|
|
108
|
+
}> & {
|
|
109
|
+
createdAt: NativeDate;
|
|
110
|
+
message: string;
|
|
111
|
+
createdBy: mongoose.Types.ObjectId;
|
|
112
|
+
}>;
|
|
89
113
|
status?: number | null | undefined;
|
|
90
114
|
checkflowId?: string | null | undefined;
|
|
91
115
|
instanceId?: string | null | undefined;
|
|
@@ -116,7 +140,19 @@ declare const ApplicationsTaskModel: mongoose.Model<{
|
|
|
116
140
|
};
|
|
117
141
|
statusDate: string;
|
|
118
142
|
statusReason: string;
|
|
119
|
-
comments:
|
|
143
|
+
comments: mongoose.Types.DocumentArray<{
|
|
144
|
+
createdAt: NativeDate;
|
|
145
|
+
message: string;
|
|
146
|
+
createdBy: mongoose.Types.ObjectId;
|
|
147
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
148
|
+
createdAt: NativeDate;
|
|
149
|
+
message: string;
|
|
150
|
+
createdBy: mongoose.Types.ObjectId;
|
|
151
|
+
}> & {
|
|
152
|
+
createdAt: NativeDate;
|
|
153
|
+
message: string;
|
|
154
|
+
createdBy: mongoose.Types.ObjectId;
|
|
155
|
+
}>;
|
|
120
156
|
status?: number | null | undefined;
|
|
121
157
|
checkflowId?: string | null | undefined;
|
|
122
158
|
instanceId?: string | null | undefined;
|
|
@@ -153,7 +189,19 @@ declare const ApplicationsTaskModel: mongoose.Model<{
|
|
|
153
189
|
};
|
|
154
190
|
statusDate: string;
|
|
155
191
|
statusReason: string;
|
|
156
|
-
comments:
|
|
192
|
+
comments: mongoose.Types.DocumentArray<{
|
|
193
|
+
createdAt: NativeDate;
|
|
194
|
+
message: string;
|
|
195
|
+
createdBy: mongoose.Types.ObjectId;
|
|
196
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
197
|
+
createdAt: NativeDate;
|
|
198
|
+
message: string;
|
|
199
|
+
createdBy: mongoose.Types.ObjectId;
|
|
200
|
+
}> & {
|
|
201
|
+
createdAt: NativeDate;
|
|
202
|
+
message: string;
|
|
203
|
+
createdBy: mongoose.Types.ObjectId;
|
|
204
|
+
}>;
|
|
157
205
|
status?: number | null | undefined;
|
|
158
206
|
checkflowId?: string | null | undefined;
|
|
159
207
|
instanceId?: string | null | undefined;
|
|
@@ -184,7 +232,19 @@ declare const ApplicationsTaskModel: mongoose.Model<{
|
|
|
184
232
|
};
|
|
185
233
|
statusDate: string;
|
|
186
234
|
statusReason: string;
|
|
187
|
-
comments:
|
|
235
|
+
comments: mongoose.Types.DocumentArray<{
|
|
236
|
+
createdAt: NativeDate;
|
|
237
|
+
message: string;
|
|
238
|
+
createdBy: mongoose.Types.ObjectId;
|
|
239
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
240
|
+
createdAt: NativeDate;
|
|
241
|
+
message: string;
|
|
242
|
+
createdBy: mongoose.Types.ObjectId;
|
|
243
|
+
}> & {
|
|
244
|
+
createdAt: NativeDate;
|
|
245
|
+
message: string;
|
|
246
|
+
createdBy: mongoose.Types.ObjectId;
|
|
247
|
+
}>;
|
|
188
248
|
status?: number | null | undefined;
|
|
189
249
|
checkflowId?: string | null | undefined;
|
|
190
250
|
instanceId?: string | null | undefined;
|
|
@@ -215,7 +275,19 @@ declare const ApplicationsTaskModel: mongoose.Model<{
|
|
|
215
275
|
};
|
|
216
276
|
statusDate: string;
|
|
217
277
|
statusReason: string;
|
|
218
|
-
comments:
|
|
278
|
+
comments: mongoose.Types.DocumentArray<{
|
|
279
|
+
createdAt: NativeDate;
|
|
280
|
+
message: string;
|
|
281
|
+
createdBy: mongoose.Types.ObjectId;
|
|
282
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
283
|
+
createdAt: NativeDate;
|
|
284
|
+
message: string;
|
|
285
|
+
createdBy: mongoose.Types.ObjectId;
|
|
286
|
+
}> & {
|
|
287
|
+
createdAt: NativeDate;
|
|
288
|
+
message: string;
|
|
289
|
+
createdBy: mongoose.Types.ObjectId;
|
|
290
|
+
}>;
|
|
219
291
|
status?: number | null | undefined;
|
|
220
292
|
checkflowId?: string | null | undefined;
|
|
221
293
|
instanceId?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applications-task.model.d.ts","sourceRoot":"","sources":["../../applications/applications-task.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"applications-task.model.d.ts","sourceRoot":"","sources":["../../applications/applications-task.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAqDhC,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6D,CAAC;AACzF,eAAe,qBAAqB,CAAC"}
|
|
@@ -33,7 +33,11 @@ const applicationsTaskSchema = new mongoose.Schema({
|
|
|
33
33
|
statusReason: { type: String, default: "" },
|
|
34
34
|
statusDate: { type: String, default: null },
|
|
35
35
|
additionalData: { type: additionalDataSchema, required: true },
|
|
36
|
-
comments: [{
|
|
36
|
+
comments: [{
|
|
37
|
+
createdBy: { type: mongoose.Schema.Types.ObjectId, ref: "User", required: true },
|
|
38
|
+
createdAt: { type: Date, default: Date.now },
|
|
39
|
+
message: { type: String, default: "", maxlength: 2000 }
|
|
40
|
+
}],
|
|
37
41
|
createdOn: { type: String, required: true, default: () => new Date().toISOString() }
|
|
38
42
|
}, { timestamps: true });
|
|
39
43
|
applyAuditMiddleware(applicationsTaskSchema, "ApplicationsTask");
|
|
@@ -66,7 +66,7 @@ export class WorkflowService {
|
|
|
66
66
|
throw new Error(`HTTP ${response.status}: ${errorDetails}`);
|
|
67
67
|
}
|
|
68
68
|
const result = await response.json();
|
|
69
|
-
console.log(
|
|
69
|
+
console.log(`✅ Workflow ${payload.workflowKey} triggered successfully:`, JSON.stringify(result, null, 2));
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
72
|
catch (error) {
|