@natrave/shared-entities 1.6.14 → 1.6.15
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.
|
@@ -3,7 +3,7 @@ export declare class RegulationExtraction {
|
|
|
3
3
|
id: string;
|
|
4
4
|
regulationUploadId: string;
|
|
5
5
|
tournamentId: number;
|
|
6
|
-
status: 'queued' | 'running' | 'completed' | 'failed';
|
|
6
|
+
status: 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
7
7
|
currentStep: string | null;
|
|
8
8
|
progressPercent: number;
|
|
9
9
|
tournamentContextSnapshot: Record<string, unknown> | null;
|
|
@@ -26,6 +26,7 @@ export declare class RegulationExtraction {
|
|
|
26
26
|
startedAt: Date | null;
|
|
27
27
|
completedAt: Date | null;
|
|
28
28
|
reviewedAt: Date | null;
|
|
29
|
+
cancelledAt: Date | null;
|
|
29
30
|
createdAt: Date;
|
|
30
31
|
updatedAt: Date;
|
|
31
32
|
tournament: Tournament;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regulation-extraction.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/regulation-extractions/regulation-extraction.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAgB5C,qBAUa,oBAAoB;IAM/B,EAAE,EAAE,MAAM,CAAC;IAQX,kBAAkB,EAAE,MAAM,CAAC;IAO3B,YAAY,EAAE,MAAM,CAAC;IAQrB,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"regulation-extraction.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/regulation-extractions/regulation-extraction.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAgB5C,qBAUa,oBAAoB;IAM/B,EAAE,EAAE,MAAM,CAAC;IAQX,kBAAkB,EA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CAAC;CACxB"}
|
|
@@ -48,7 +48,7 @@ __decorateClass([
|
|
|
48
48
|
type: "varchar",
|
|
49
49
|
length: 20,
|
|
50
50
|
default: "queued",
|
|
51
|
-
comment: "Estado do processamento (queued, running, completed, failed)."
|
|
51
|
+
comment: "Estado do processamento (queued, running, completed, failed, cancelled)."
|
|
52
52
|
})
|
|
53
53
|
], RegulationExtraction.prototype, "status", 2);
|
|
54
54
|
__decorateClass([
|
|
@@ -233,6 +233,14 @@ __decorateClass([
|
|
|
233
233
|
comment: 'Quando o usu\xE1rio confirmou a review da extra\xE7\xE3o (clicou "Continuar" na Tela A). One-way: setada uma vez, n\xE3o reseta. NULL = ainda n\xE3o revisada.'
|
|
234
234
|
})
|
|
235
235
|
], RegulationExtraction.prototype, "reviewedAt", 2);
|
|
236
|
+
__decorateClass([
|
|
237
|
+
Column({
|
|
238
|
+
name: "cancelled_at",
|
|
239
|
+
type: "timestamptz",
|
|
240
|
+
nullable: true,
|
|
241
|
+
comment: 'Quando o usu\xE1rio cancelou a extra\xE7\xE3o (ex.: clicou "Preencher manualmente" durante o processamento). NULL = n\xE3o cancelada.'
|
|
242
|
+
})
|
|
243
|
+
], RegulationExtraction.prototype, "cancelledAt", 2);
|
|
236
244
|
__decorateClass([
|
|
237
245
|
CreateDateColumn({
|
|
238
246
|
name: "created_at",
|
|
@@ -255,7 +263,7 @@ RegulationExtraction = __decorateClass([
|
|
|
255
263
|
Entity("regulation_extractions"),
|
|
256
264
|
Check(
|
|
257
265
|
"regulation_extractions_status_check",
|
|
258
|
-
"status IN ('queued', 'running', 'completed', 'failed')"
|
|
266
|
+
"status IN ('queued', 'running', 'completed', 'failed', 'cancelled')"
|
|
259
267
|
),
|
|
260
268
|
Check("regulation_extractions_progress_check", "progress_percent BETWEEN 0 AND 100"),
|
|
261
269
|
Check(
|