colibris-types 2.2.3 → 2.2.4

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.
@@ -1,32 +1,38 @@
1
1
  import { z } from "zod";
2
2
  export declare const ImportsHistoryTypeSchema: z.ZodEnum<["import_assets", "import_telecom_lines", "import_people", "import_subsidiaries", "import_licenses_traces"]>;
3
- export declare const ImportsHistoryStatusSchema: z.ZodEnum<["success", "error", "pending"]>;
3
+ export declare const ImportsHistoryStatusSchema: z.ZodEnum<["pending-upload", "pending", "success", "error"]>;
4
4
  export declare const ImportsHistorySchema: z.ZodObject<{
5
5
  companyName: z.ZodString;
6
6
  id: z.ZodString;
7
+ dbId: z.ZodOptional<z.ZodString>;
7
8
  type: z.ZodEnum<["import_assets", "import_telecom_lines", "import_people", "import_subsidiaries", "import_licenses_traces"]>;
8
9
  params: z.ZodArray<z.ZodString, "many">;
9
- status: z.ZodEnum<["success", "error", "pending"]>;
10
+ status: z.ZodEnum<["pending-upload", "pending", "success", "error"]>;
10
11
  srcUrls: z.ZodArray<z.ZodString, "many">;
12
+ expectedFilePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11
13
  date: z.ZodString;
12
14
  error: z.ZodOptional<z.ZodString>;
13
15
  }, "strip", z.ZodTypeAny, {
14
16
  type: "import_assets" | "import_telecom_lines" | "import_people" | "import_subsidiaries" | "import_licenses_traces";
15
17
  date: string;
16
18
  params: string[];
17
- status: "success" | "error" | "pending";
19
+ status: "success" | "error" | "pending" | "pending-upload";
18
20
  id: string;
19
21
  companyName: string;
20
22
  srcUrls: string[];
21
23
  error?: string | undefined;
24
+ dbId?: string | undefined;
25
+ expectedFilePaths?: string[] | undefined;
22
26
  }, {
23
27
  type: "import_assets" | "import_telecom_lines" | "import_people" | "import_subsidiaries" | "import_licenses_traces";
24
28
  date: string;
25
29
  params: string[];
26
- status: "success" | "error" | "pending";
30
+ status: "success" | "error" | "pending" | "pending-upload";
27
31
  id: string;
28
32
  companyName: string;
29
33
  srcUrls: string[];
30
34
  error?: string | undefined;
35
+ dbId?: string | undefined;
36
+ expectedFilePaths?: string[] | undefined;
31
37
  }>;
32
38
  export type ImportsHistory = z.infer<typeof ImportsHistorySchema>;
@@ -11,12 +11,16 @@ export const ImportsHistoryTypeSchema = z
11
11
  ])
12
12
  .openapi({ description: "Type of import operation" });
13
13
  export const ImportsHistoryStatusSchema = z
14
- .enum(["success", "error", "pending"])
14
+ .enum(["pending-upload", "pending", "success", "error"])
15
15
  .openapi({ description: "Status of the import operation" });
16
16
  export const ImportsHistorySchema = z
17
17
  .object({
18
18
  companyName: z.string().openapi({ description: "Name of the company" }),
19
19
  id: z.string().openapi({ description: "Unique import identifier" }),
20
+ dbId: z
21
+ .string()
22
+ .optional()
23
+ .openapi({ description: "Target database identifier for the ETL pipeline" }),
20
24
  type: ImportsHistoryTypeSchema,
21
25
  params: z
22
26
  .array(z.string())
@@ -25,6 +29,12 @@ export const ImportsHistorySchema = z
25
29
  srcUrls: z
26
30
  .array(z.string())
27
31
  .openapi({ description: "Source file URLs" }),
32
+ expectedFilePaths: z
33
+ .array(z.string())
34
+ .optional()
35
+ .openapi({
36
+ description: "Blob paths reserved when SAS URLs were minted. The commit endpoint validates that the client uploaded only these paths.",
37
+ }),
28
38
  date: z.string().openapi({ description: "ISO 8601 timestamp of import" }),
29
39
  error: z
30
40
  .string()