@lokalise/tm-events-schemas 2.1.0 → 2.1.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/dist/events/import.d.ts +27 -27
- package/dist/index.js +1 -1
- package/package.json +5 -5
package/dist/events/import.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ export declare const BASE_IMPORT_EVENT_PAYLOAD_SCHEMA: z.ZodObject<{
|
|
|
9
9
|
fileName: z.ZodString;
|
|
10
10
|
inputFileStorageId: z.ZodGUID;
|
|
11
11
|
status: z.ZodEnum<{
|
|
12
|
-
readonly IN_PROGRESS:
|
|
13
|
-
readonly COMPLETED:
|
|
14
|
-
readonly FAILED:
|
|
12
|
+
readonly IN_PROGRESS: 'IN_PROGRESS';
|
|
13
|
+
readonly COMPLETED: 'COMPLETED';
|
|
14
|
+
readonly FAILED: 'FAILED';
|
|
15
15
|
}>;
|
|
16
16
|
progress: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
17
17
|
upsertedRecordsCount: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -27,8 +27,6 @@ export type BaseImportEventPayload = z.infer<typeof BASE_IMPORT_EVENT_PAYLOAD_SC
|
|
|
27
27
|
*/
|
|
28
28
|
export declare const TmImportEvents: {
|
|
29
29
|
'import.completed': {
|
|
30
|
-
snsTopic: string;
|
|
31
|
-
producedBy: string[];
|
|
32
30
|
consumerSchema: z.ZodObject<{
|
|
33
31
|
id: z.ZodString;
|
|
34
32
|
timestamp: z.ZodISODateTime;
|
|
@@ -43,9 +41,9 @@ export declare const TmImportEvents: {
|
|
|
43
41
|
fileName: z.ZodString;
|
|
44
42
|
inputFileStorageId: z.ZodGUID;
|
|
45
43
|
status: z.ZodEnum<{
|
|
46
|
-
readonly IN_PROGRESS:
|
|
47
|
-
readonly COMPLETED:
|
|
48
|
-
readonly FAILED:
|
|
44
|
+
readonly IN_PROGRESS: 'IN_PROGRESS';
|
|
45
|
+
readonly COMPLETED: 'COMPLETED';
|
|
46
|
+
readonly FAILED: 'FAILED';
|
|
49
47
|
}>;
|
|
50
48
|
progress: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
51
49
|
upsertedRecordsCount: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -71,9 +69,9 @@ export declare const TmImportEvents: {
|
|
|
71
69
|
fileName: z.ZodString;
|
|
72
70
|
inputFileStorageId: z.ZodGUID;
|
|
73
71
|
status: z.ZodEnum<{
|
|
74
|
-
readonly IN_PROGRESS:
|
|
75
|
-
readonly COMPLETED:
|
|
76
|
-
readonly FAILED:
|
|
72
|
+
readonly IN_PROGRESS: 'IN_PROGRESS';
|
|
73
|
+
readonly COMPLETED: 'COMPLETED';
|
|
74
|
+
readonly FAILED: 'FAILED';
|
|
77
75
|
}>;
|
|
78
76
|
progress: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
79
77
|
upsertedRecordsCount: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -90,10 +88,10 @@ export declare const TmImportEvents: {
|
|
|
90
88
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
91
89
|
}>>;
|
|
92
90
|
}, z.core.$strip>;
|
|
93
|
-
};
|
|
94
|
-
'import.failed': {
|
|
95
91
|
snsTopic: string;
|
|
96
92
|
producedBy: string[];
|
|
93
|
+
};
|
|
94
|
+
'import.failed': {
|
|
97
95
|
consumerSchema: z.ZodObject<{
|
|
98
96
|
id: z.ZodString;
|
|
99
97
|
timestamp: z.ZodISODateTime;
|
|
@@ -108,9 +106,9 @@ export declare const TmImportEvents: {
|
|
|
108
106
|
fileName: z.ZodString;
|
|
109
107
|
inputFileStorageId: z.ZodGUID;
|
|
110
108
|
status: z.ZodEnum<{
|
|
111
|
-
readonly IN_PROGRESS:
|
|
112
|
-
readonly COMPLETED:
|
|
113
|
-
readonly FAILED:
|
|
109
|
+
readonly IN_PROGRESS: 'IN_PROGRESS';
|
|
110
|
+
readonly COMPLETED: 'COMPLETED';
|
|
111
|
+
readonly FAILED: 'FAILED';
|
|
114
112
|
}>;
|
|
115
113
|
progress: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
116
114
|
upsertedRecordsCount: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -136,9 +134,9 @@ export declare const TmImportEvents: {
|
|
|
136
134
|
fileName: z.ZodString;
|
|
137
135
|
inputFileStorageId: z.ZodGUID;
|
|
138
136
|
status: z.ZodEnum<{
|
|
139
|
-
readonly IN_PROGRESS:
|
|
140
|
-
readonly COMPLETED:
|
|
141
|
-
readonly FAILED:
|
|
137
|
+
readonly IN_PROGRESS: 'IN_PROGRESS';
|
|
138
|
+
readonly COMPLETED: 'COMPLETED';
|
|
139
|
+
readonly FAILED: 'FAILED';
|
|
142
140
|
}>;
|
|
143
141
|
progress: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
144
142
|
upsertedRecordsCount: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -155,10 +153,10 @@ export declare const TmImportEvents: {
|
|
|
155
153
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
156
154
|
}>>;
|
|
157
155
|
}, z.core.$strip>;
|
|
158
|
-
};
|
|
159
|
-
'import.progress_updated': {
|
|
160
156
|
snsTopic: string;
|
|
161
157
|
producedBy: string[];
|
|
158
|
+
};
|
|
159
|
+
'import.progress_updated': {
|
|
162
160
|
consumerSchema: z.ZodObject<{
|
|
163
161
|
id: z.ZodString;
|
|
164
162
|
timestamp: z.ZodISODateTime;
|
|
@@ -173,9 +171,9 @@ export declare const TmImportEvents: {
|
|
|
173
171
|
fileName: z.ZodString;
|
|
174
172
|
inputFileStorageId: z.ZodGUID;
|
|
175
173
|
status: z.ZodEnum<{
|
|
176
|
-
readonly IN_PROGRESS:
|
|
177
|
-
readonly COMPLETED:
|
|
178
|
-
readonly FAILED:
|
|
174
|
+
readonly IN_PROGRESS: 'IN_PROGRESS';
|
|
175
|
+
readonly COMPLETED: 'COMPLETED';
|
|
176
|
+
readonly FAILED: 'FAILED';
|
|
179
177
|
}>;
|
|
180
178
|
progress: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
181
179
|
upsertedRecordsCount: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -201,9 +199,9 @@ export declare const TmImportEvents: {
|
|
|
201
199
|
fileName: z.ZodString;
|
|
202
200
|
inputFileStorageId: z.ZodGUID;
|
|
203
201
|
status: z.ZodEnum<{
|
|
204
|
-
readonly IN_PROGRESS:
|
|
205
|
-
readonly COMPLETED:
|
|
206
|
-
readonly FAILED:
|
|
202
|
+
readonly IN_PROGRESS: 'IN_PROGRESS';
|
|
203
|
+
readonly COMPLETED: 'COMPLETED';
|
|
204
|
+
readonly FAILED: 'FAILED';
|
|
207
205
|
}>;
|
|
208
206
|
progress: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
209
207
|
upsertedRecordsCount: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -220,6 +218,8 @@ export declare const TmImportEvents: {
|
|
|
220
218
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
221
219
|
}>>;
|
|
222
220
|
}, z.core.$strip>;
|
|
221
|
+
snsTopic: string;
|
|
222
|
+
producedBy: string[];
|
|
223
223
|
};
|
|
224
224
|
};
|
|
225
225
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './events/import.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lokalise/tm-events-schemas",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Lokalise",
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@message-queue-toolkit/schemas": "^7.
|
|
27
|
+
"@message-queue-toolkit/schemas": "^7.2.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"zod": ">=4.1.12",
|
|
31
|
-
"@lokalise/tm-api-schemas": "6.1.
|
|
31
|
+
"@lokalise/tm-api-schemas": "6.1.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@biomejs/biome": "^2.4.15",
|
|
35
35
|
"@lokalise/biome-config": "^3.1.1",
|
|
36
|
-
"@lokalise/tsconfig": "^
|
|
36
|
+
"@lokalise/tsconfig": "^5.0.0",
|
|
37
37
|
"rimraf": "^6.1.3",
|
|
38
|
-
"typescript": "
|
|
38
|
+
"typescript": "7.0.2",
|
|
39
39
|
"zod": "^4.4.3"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|