@lokalise/content-conversion-schemas 1.0.0 → 2.0.0
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/api/contentObjects.d.ts +112 -328
- package/dist/api/contentObjects.d.ts.map +1 -1
- package/dist/api/contentObjects.js +22 -4
- package/dist/api/contentObjects.js.map +1 -1
- package/dist/api/contentObjectsNew.d.ts +252 -0
- package/dist/api/contentObjectsNew.d.ts.map +1 -0
- package/dist/api/contentObjectsNew.js +79 -0
- package/dist/api/contentObjectsNew.js.map +1 -0
- package/dist/api/enums.d.ts +27 -0
- package/dist/api/enums.d.ts.map +1 -1
- package/dist/api/enums.js +22 -0
- package/dist/api/enums.js.map +1 -1
- package/dist/api/exportObjects.d.ts +237 -1369
- package/dist/api/exportObjects.d.ts.map +1 -1
- package/dist/api/exportObjects.js +37 -38
- package/dist/api/exportObjects.js.map +1 -1
- package/dist/common.d.ts +9 -7
- package/dist/common.d.ts.map +1 -1
- package/dist/common.js +9 -10
- package/dist/common.js.map +1 -1
- package/dist/events/conversion.d.ts +488 -0
- package/dist/events/conversion.d.ts.map +1 -0
- package/dist/events/conversion.js +60 -0
- package/dist/events/conversion.js.map +1 -0
- package/dist/events/export.d.ts +51 -4182
- package/dist/events/export.d.ts.map +1 -1
- package/dist/events/export.js +12 -192
- package/dist/events/export.js.map +1 -1
- package/dist/events/upload.d.ts +119 -1063
- package/dist/events/upload.d.ts.map +1 -1
- package/dist/events/upload.js +21 -29
- package/dist/events/upload.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +12 -9
package/dist/events/upload.d.ts
CHANGED
|
@@ -1,1238 +1,294 @@
|
|
|
1
1
|
import { type ConsumerMessageSchema, type PublisherMessageSchema } from '@message-queue-toolkit/schemas';
|
|
2
|
-
import { z } from 'zod';
|
|
2
|
+
import { z } from 'zod/v4';
|
|
3
3
|
export declare const UPLOAD_CONTENT_FILE_UPLOADED_EVENT_SCHEMA: z.ZodObject<{
|
|
4
|
-
userId: z.ZodOptional<z.
|
|
5
|
-
projectId: z.
|
|
6
|
-
fileId: z.
|
|
4
|
+
userId: z.ZodOptional<z.ZodGUID>;
|
|
5
|
+
projectId: z.ZodGUID;
|
|
6
|
+
fileId: z.ZodGUID;
|
|
7
7
|
storageId: z.ZodString;
|
|
8
8
|
filePath: z.ZodString;
|
|
9
|
-
},
|
|
10
|
-
projectId: string;
|
|
11
|
-
storageId: string;
|
|
12
|
-
fileId: string;
|
|
13
|
-
filePath: string;
|
|
14
|
-
userId?: string | undefined;
|
|
15
|
-
}, {
|
|
16
|
-
projectId: string;
|
|
17
|
-
storageId: string;
|
|
18
|
-
fileId: string;
|
|
19
|
-
filePath: string;
|
|
20
|
-
userId?: string | undefined;
|
|
21
|
-
}>;
|
|
9
|
+
}, z.core.$strip>;
|
|
22
10
|
export declare const UPLOAD_CONTENT_FILE_PARSED_EVENT_SCHEMA: z.ZodObject<{
|
|
23
|
-
userId: z.ZodOptional<z.
|
|
24
|
-
projectId: z.
|
|
25
|
-
fileId: z.
|
|
26
|
-
filePath: z.ZodString
|
|
11
|
+
userId: z.ZodOptional<z.ZodGUID>;
|
|
12
|
+
projectId: z.ZodGUID;
|
|
13
|
+
fileId: z.ZodGUID;
|
|
14
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
27
15
|
filePathWithLocalePlaceholder: z.ZodNullable<z.ZodString>;
|
|
28
16
|
keyCount: z.ZodNumber;
|
|
29
17
|
wordCount: z.ZodOptional<z.ZodNumber>;
|
|
30
18
|
locale: z.ZodNullable<z.ZodString>;
|
|
31
19
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
32
20
|
parsedContentStorageId: z.ZodString;
|
|
33
|
-
},
|
|
34
|
-
locale: string | null;
|
|
35
|
-
projectId: string;
|
|
36
|
-
fileId: string;
|
|
37
|
-
filePath: string;
|
|
38
|
-
filePathWithLocalePlaceholder: string | null;
|
|
39
|
-
keyCount: number;
|
|
40
|
-
parsedContentStorageId: string;
|
|
41
|
-
userId?: string | undefined;
|
|
42
|
-
wordCount?: number | undefined;
|
|
43
|
-
contentHash?: string | undefined;
|
|
44
|
-
}, {
|
|
45
|
-
locale: string | null;
|
|
46
|
-
projectId: string;
|
|
47
|
-
fileId: string;
|
|
48
|
-
filePath: string;
|
|
49
|
-
filePathWithLocalePlaceholder: string | null;
|
|
50
|
-
keyCount: number;
|
|
51
|
-
parsedContentStorageId: string;
|
|
52
|
-
userId?: string | undefined;
|
|
53
|
-
wordCount?: number | undefined;
|
|
54
|
-
contentHash?: string | undefined;
|
|
55
|
-
}>;
|
|
21
|
+
}, z.core.$strip>;
|
|
56
22
|
export declare const UPLOAD_CONTENT_FILE_PARSE_FAILED_EVENT_SCHEMA: z.ZodObject<{
|
|
57
|
-
userId: z.ZodOptional<z.
|
|
58
|
-
projectId: z.
|
|
59
|
-
fileId: z.
|
|
60
|
-
filePath: z.ZodString
|
|
23
|
+
userId: z.ZodOptional<z.ZodGUID>;
|
|
24
|
+
projectId: z.ZodGUID;
|
|
25
|
+
fileId: z.ZodGUID;
|
|
26
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
61
27
|
reason: z.ZodString;
|
|
62
|
-
},
|
|
63
|
-
projectId: string;
|
|
64
|
-
fileId: string;
|
|
65
|
-
reason: string;
|
|
66
|
-
filePath: string;
|
|
67
|
-
userId?: string | undefined;
|
|
68
|
-
}, {
|
|
69
|
-
projectId: string;
|
|
70
|
-
fileId: string;
|
|
71
|
-
reason: string;
|
|
72
|
-
filePath: string;
|
|
73
|
-
userId?: string | undefined;
|
|
74
|
-
}>;
|
|
28
|
+
}, z.core.$strip>;
|
|
75
29
|
export declare const UPLOAD_CONTENT_ITEM_COLLECTION_UPLOADED_EVENT_SCHEMA: z.ZodObject<{
|
|
76
|
-
projectId: z.
|
|
77
|
-
locale: z.
|
|
78
|
-
contentItemCollectionId: z.
|
|
79
|
-
rawContentFileId: z.
|
|
80
|
-
},
|
|
81
|
-
locale: string;
|
|
82
|
-
projectId: string;
|
|
83
|
-
contentItemCollectionId: string;
|
|
84
|
-
rawContentFileId: string;
|
|
85
|
-
}, {
|
|
86
|
-
locale: string;
|
|
87
|
-
projectId: string;
|
|
88
|
-
contentItemCollectionId: string;
|
|
89
|
-
rawContentFileId: string;
|
|
90
|
-
}>;
|
|
30
|
+
projectId: z.ZodGUID;
|
|
31
|
+
locale: z.ZodString;
|
|
32
|
+
contentItemCollectionId: z.ZodGUID;
|
|
33
|
+
rawContentFileId: z.ZodGUID;
|
|
34
|
+
}, z.core.$strip>;
|
|
91
35
|
export declare const UPLOAD_CONTENT_ITEM_COLLECTION_PARSE_ERROR_EVENT_SCHEMA: z.ZodObject<{
|
|
92
|
-
projectId: z.
|
|
93
|
-
contentItemCollectionId: z.
|
|
36
|
+
projectId: z.ZodGUID;
|
|
37
|
+
contentItemCollectionId: z.ZodGUID;
|
|
94
38
|
reason: z.ZodString;
|
|
95
|
-
},
|
|
96
|
-
projectId: string;
|
|
97
|
-
reason: string;
|
|
98
|
-
contentItemCollectionId: string;
|
|
99
|
-
}, {
|
|
100
|
-
projectId: string;
|
|
101
|
-
reason: string;
|
|
102
|
-
contentItemCollectionId: string;
|
|
103
|
-
}>;
|
|
39
|
+
}, z.core.$strip>;
|
|
104
40
|
export declare const UPLOAD_CONTENT_ITEM_COLLECTION_PARSED_EVENT_SCHEMA: z.ZodObject<{
|
|
105
|
-
projectId: z.
|
|
106
|
-
contentItemCollectionId: z.
|
|
107
|
-
parsedContentFileId: z.
|
|
108
|
-
parsedItemIdentifiers: z.ZodArray<z.ZodString
|
|
41
|
+
projectId: z.ZodGUID;
|
|
42
|
+
contentItemCollectionId: z.ZodGUID;
|
|
43
|
+
parsedContentFileId: z.ZodGUID;
|
|
44
|
+
parsedItemIdentifiers: z.ZodArray<z.ZodString>;
|
|
109
45
|
parsingFailedItemsCount: z.ZodNumber;
|
|
110
|
-
},
|
|
111
|
-
projectId: string;
|
|
112
|
-
contentItemCollectionId: string;
|
|
113
|
-
parsedContentFileId: string;
|
|
114
|
-
parsedItemIdentifiers: string[];
|
|
115
|
-
parsingFailedItemsCount: number;
|
|
116
|
-
}, {
|
|
117
|
-
projectId: string;
|
|
118
|
-
contentItemCollectionId: string;
|
|
119
|
-
parsedContentFileId: string;
|
|
120
|
-
parsedItemIdentifiers: string[];
|
|
121
|
-
parsingFailedItemsCount: number;
|
|
122
|
-
}>;
|
|
46
|
+
}, z.core.$strip>;
|
|
123
47
|
export declare const UPLOAD_CONTENT_ITEM_COLLECTION_UPLOAD_FINISHED_EVENT_SCHEMA: z.ZodObject<{
|
|
124
48
|
contentItemCollectionId: z.ZodString;
|
|
125
|
-
result: z.ZodEnum<
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
},
|
|
130
|
-
contentItemCollectionId: string;
|
|
131
|
-
result: "SUCCESS" | "FAILURE";
|
|
132
|
-
}>;
|
|
49
|
+
result: z.ZodEnum<{
|
|
50
|
+
SUCCESS: "SUCCESS";
|
|
51
|
+
FAILURE: "FAILURE";
|
|
52
|
+
}>;
|
|
53
|
+
}, z.core.$strip>;
|
|
133
54
|
export declare const UploadEvents: {
|
|
134
55
|
'upload.content_file_uploaded': {
|
|
135
56
|
snsTopic: "autopilot-upload";
|
|
136
57
|
producedBy: string[];
|
|
137
58
|
consumerSchema: z.ZodObject<{
|
|
138
59
|
id: z.ZodString;
|
|
139
|
-
timestamp: z.
|
|
60
|
+
timestamp: z.ZodISODateTime;
|
|
140
61
|
type: z.ZodLiteral<"upload.content_file_uploaded">;
|
|
141
62
|
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
142
63
|
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
143
64
|
payload: z.ZodObject<{
|
|
144
|
-
userId: z.ZodOptional<z.
|
|
145
|
-
projectId: z.
|
|
146
|
-
fileId: z.
|
|
65
|
+
userId: z.ZodOptional<z.ZodGUID>;
|
|
66
|
+
projectId: z.ZodGUID;
|
|
67
|
+
fileId: z.ZodGUID;
|
|
147
68
|
storageId: z.ZodString;
|
|
148
69
|
filePath: z.ZodString;
|
|
149
|
-
},
|
|
150
|
-
projectId: string;
|
|
151
|
-
storageId: string;
|
|
152
|
-
fileId: string;
|
|
153
|
-
filePath: string;
|
|
154
|
-
userId?: string | undefined;
|
|
155
|
-
}, {
|
|
156
|
-
projectId: string;
|
|
157
|
-
storageId: string;
|
|
158
|
-
fileId: string;
|
|
159
|
-
filePath: string;
|
|
160
|
-
userId?: string | undefined;
|
|
161
|
-
}>;
|
|
70
|
+
}, z.core.$strip>;
|
|
162
71
|
metadata: import("@message-queue-toolkit/schemas").MetadataObject;
|
|
163
|
-
},
|
|
164
|
-
id: string;
|
|
165
|
-
type: "upload.content_file_uploaded";
|
|
166
|
-
metadata: {
|
|
167
|
-
schemaVersion: string;
|
|
168
|
-
producedBy: string;
|
|
169
|
-
originatedFrom: string;
|
|
170
|
-
correlationId: string;
|
|
171
|
-
};
|
|
172
|
-
timestamp: string;
|
|
173
|
-
payload: {
|
|
174
|
-
projectId: string;
|
|
175
|
-
storageId: string;
|
|
176
|
-
fileId: string;
|
|
177
|
-
filePath: string;
|
|
178
|
-
userId?: string | undefined;
|
|
179
|
-
};
|
|
180
|
-
deduplicationId?: string | null | undefined;
|
|
181
|
-
deduplicationOptions?: {
|
|
182
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
183
|
-
lockTimeoutSeconds?: number | undefined;
|
|
184
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
185
|
-
refreshIntervalSeconds?: number | undefined;
|
|
186
|
-
} | null | undefined;
|
|
187
|
-
}, {
|
|
188
|
-
id: string;
|
|
189
|
-
type: "upload.content_file_uploaded";
|
|
190
|
-
metadata: {
|
|
191
|
-
schemaVersion: string;
|
|
192
|
-
producedBy: string;
|
|
193
|
-
originatedFrom: string;
|
|
194
|
-
correlationId: string;
|
|
195
|
-
};
|
|
196
|
-
timestamp: string;
|
|
197
|
-
payload: {
|
|
198
|
-
projectId: string;
|
|
199
|
-
storageId: string;
|
|
200
|
-
fileId: string;
|
|
201
|
-
filePath: string;
|
|
202
|
-
userId?: string | undefined;
|
|
203
|
-
};
|
|
204
|
-
deduplicationId?: string | null | undefined;
|
|
205
|
-
deduplicationOptions?: {
|
|
206
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
207
|
-
lockTimeoutSeconds?: number | undefined;
|
|
208
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
209
|
-
refreshIntervalSeconds?: number | undefined;
|
|
210
|
-
} | null | undefined;
|
|
211
|
-
}>;
|
|
72
|
+
}, z.core.$strip>;
|
|
212
73
|
publisherSchema: z.ZodObject<{
|
|
213
74
|
id: z.ZodOptional<z.ZodString>;
|
|
214
|
-
timestamp: z.ZodOptional<z.
|
|
75
|
+
timestamp: z.ZodOptional<z.ZodISODateTime>;
|
|
215
76
|
type: z.ZodLiteral<"upload.content_file_uploaded">;
|
|
216
77
|
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
78
|
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
218
79
|
payload: z.ZodObject<{
|
|
219
|
-
userId: z.ZodOptional<z.
|
|
220
|
-
projectId: z.
|
|
221
|
-
fileId: z.
|
|
80
|
+
userId: z.ZodOptional<z.ZodGUID>;
|
|
81
|
+
projectId: z.ZodGUID;
|
|
82
|
+
fileId: z.ZodGUID;
|
|
222
83
|
storageId: z.ZodString;
|
|
223
84
|
filePath: z.ZodString;
|
|
224
|
-
},
|
|
225
|
-
projectId: string;
|
|
226
|
-
storageId: string;
|
|
227
|
-
fileId: string;
|
|
228
|
-
filePath: string;
|
|
229
|
-
userId?: string | undefined;
|
|
230
|
-
}, {
|
|
231
|
-
projectId: string;
|
|
232
|
-
storageId: string;
|
|
233
|
-
fileId: string;
|
|
234
|
-
filePath: string;
|
|
235
|
-
userId?: string | undefined;
|
|
236
|
-
}>;
|
|
85
|
+
}, z.core.$strip>;
|
|
237
86
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
238
87
|
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
239
88
|
producedBy: z.ZodOptional<z.ZodString>;
|
|
240
89
|
originatedFrom: z.ZodOptional<z.ZodString>;
|
|
241
90
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
type: "upload.content_file_uploaded";
|
|
245
|
-
payload: {
|
|
246
|
-
projectId: string;
|
|
247
|
-
storageId: string;
|
|
248
|
-
fileId: string;
|
|
249
|
-
filePath: string;
|
|
250
|
-
userId?: string | undefined;
|
|
251
|
-
};
|
|
252
|
-
id?: string | undefined;
|
|
253
|
-
metadata?: {
|
|
254
|
-
schemaVersion?: string | undefined;
|
|
255
|
-
producedBy?: string | undefined;
|
|
256
|
-
originatedFrom?: string | undefined;
|
|
257
|
-
correlationId?: string | undefined;
|
|
258
|
-
} | undefined;
|
|
259
|
-
timestamp?: string | undefined;
|
|
260
|
-
deduplicationId?: string | null | undefined;
|
|
261
|
-
deduplicationOptions?: {
|
|
262
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
263
|
-
lockTimeoutSeconds?: number | undefined;
|
|
264
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
265
|
-
refreshIntervalSeconds?: number | undefined;
|
|
266
|
-
} | null | undefined;
|
|
267
|
-
}, {
|
|
268
|
-
type: "upload.content_file_uploaded";
|
|
269
|
-
payload: {
|
|
270
|
-
projectId: string;
|
|
271
|
-
storageId: string;
|
|
272
|
-
fileId: string;
|
|
273
|
-
filePath: string;
|
|
274
|
-
userId?: string | undefined;
|
|
275
|
-
};
|
|
276
|
-
id?: string | undefined;
|
|
277
|
-
metadata?: {
|
|
278
|
-
schemaVersion?: string | undefined;
|
|
279
|
-
producedBy?: string | undefined;
|
|
280
|
-
originatedFrom?: string | undefined;
|
|
281
|
-
correlationId?: string | undefined;
|
|
282
|
-
} | undefined;
|
|
283
|
-
timestamp?: string | undefined;
|
|
284
|
-
deduplicationId?: string | null | undefined;
|
|
285
|
-
deduplicationOptions?: {
|
|
286
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
287
|
-
lockTimeoutSeconds?: number | undefined;
|
|
288
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
289
|
-
refreshIntervalSeconds?: number | undefined;
|
|
290
|
-
} | null | undefined;
|
|
291
|
-
}>;
|
|
91
|
+
}>>;
|
|
92
|
+
}, z.core.$strip>;
|
|
292
93
|
};
|
|
293
94
|
'upload.content_file_parsed': {
|
|
294
95
|
producedBy: string[];
|
|
295
96
|
snsTopic: "autopilot-upload";
|
|
296
97
|
consumerSchema: z.ZodObject<{
|
|
297
98
|
id: z.ZodString;
|
|
298
|
-
timestamp: z.
|
|
99
|
+
timestamp: z.ZodISODateTime;
|
|
299
100
|
type: z.ZodLiteral<"upload.content_file_parsed">;
|
|
300
101
|
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
102
|
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
302
103
|
payload: z.ZodObject<{
|
|
303
|
-
userId: z.ZodOptional<z.
|
|
304
|
-
projectId: z.
|
|
305
|
-
fileId: z.
|
|
306
|
-
filePath: z.ZodString
|
|
104
|
+
userId: z.ZodOptional<z.ZodGUID>;
|
|
105
|
+
projectId: z.ZodGUID;
|
|
106
|
+
fileId: z.ZodGUID;
|
|
107
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
307
108
|
filePathWithLocalePlaceholder: z.ZodNullable<z.ZodString>;
|
|
308
109
|
keyCount: z.ZodNumber;
|
|
309
110
|
wordCount: z.ZodOptional<z.ZodNumber>;
|
|
310
111
|
locale: z.ZodNullable<z.ZodString>;
|
|
311
112
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
312
113
|
parsedContentStorageId: z.ZodString;
|
|
313
|
-
},
|
|
314
|
-
locale: string | null;
|
|
315
|
-
projectId: string;
|
|
316
|
-
fileId: string;
|
|
317
|
-
filePath: string;
|
|
318
|
-
filePathWithLocalePlaceholder: string | null;
|
|
319
|
-
keyCount: number;
|
|
320
|
-
parsedContentStorageId: string;
|
|
321
|
-
userId?: string | undefined;
|
|
322
|
-
wordCount?: number | undefined;
|
|
323
|
-
contentHash?: string | undefined;
|
|
324
|
-
}, {
|
|
325
|
-
locale: string | null;
|
|
326
|
-
projectId: string;
|
|
327
|
-
fileId: string;
|
|
328
|
-
filePath: string;
|
|
329
|
-
filePathWithLocalePlaceholder: string | null;
|
|
330
|
-
keyCount: number;
|
|
331
|
-
parsedContentStorageId: string;
|
|
332
|
-
userId?: string | undefined;
|
|
333
|
-
wordCount?: number | undefined;
|
|
334
|
-
contentHash?: string | undefined;
|
|
335
|
-
}>;
|
|
114
|
+
}, z.core.$strip>;
|
|
336
115
|
metadata: import("@message-queue-toolkit/schemas").MetadataObject;
|
|
337
|
-
},
|
|
338
|
-
id: string;
|
|
339
|
-
type: "upload.content_file_parsed";
|
|
340
|
-
metadata: {
|
|
341
|
-
schemaVersion: string;
|
|
342
|
-
producedBy: string;
|
|
343
|
-
originatedFrom: string;
|
|
344
|
-
correlationId: string;
|
|
345
|
-
};
|
|
346
|
-
timestamp: string;
|
|
347
|
-
payload: {
|
|
348
|
-
locale: string | null;
|
|
349
|
-
projectId: string;
|
|
350
|
-
fileId: string;
|
|
351
|
-
filePath: string;
|
|
352
|
-
filePathWithLocalePlaceholder: string | null;
|
|
353
|
-
keyCount: number;
|
|
354
|
-
parsedContentStorageId: string;
|
|
355
|
-
userId?: string | undefined;
|
|
356
|
-
wordCount?: number | undefined;
|
|
357
|
-
contentHash?: string | undefined;
|
|
358
|
-
};
|
|
359
|
-
deduplicationId?: string | null | undefined;
|
|
360
|
-
deduplicationOptions?: {
|
|
361
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
362
|
-
lockTimeoutSeconds?: number | undefined;
|
|
363
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
364
|
-
refreshIntervalSeconds?: number | undefined;
|
|
365
|
-
} | null | undefined;
|
|
366
|
-
}, {
|
|
367
|
-
id: string;
|
|
368
|
-
type: "upload.content_file_parsed";
|
|
369
|
-
metadata: {
|
|
370
|
-
schemaVersion: string;
|
|
371
|
-
producedBy: string;
|
|
372
|
-
originatedFrom: string;
|
|
373
|
-
correlationId: string;
|
|
374
|
-
};
|
|
375
|
-
timestamp: string;
|
|
376
|
-
payload: {
|
|
377
|
-
locale: string | null;
|
|
378
|
-
projectId: string;
|
|
379
|
-
fileId: string;
|
|
380
|
-
filePath: string;
|
|
381
|
-
filePathWithLocalePlaceholder: string | null;
|
|
382
|
-
keyCount: number;
|
|
383
|
-
parsedContentStorageId: string;
|
|
384
|
-
userId?: string | undefined;
|
|
385
|
-
wordCount?: number | undefined;
|
|
386
|
-
contentHash?: string | undefined;
|
|
387
|
-
};
|
|
388
|
-
deduplicationId?: string | null | undefined;
|
|
389
|
-
deduplicationOptions?: {
|
|
390
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
391
|
-
lockTimeoutSeconds?: number | undefined;
|
|
392
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
393
|
-
refreshIntervalSeconds?: number | undefined;
|
|
394
|
-
} | null | undefined;
|
|
395
|
-
}>;
|
|
116
|
+
}, z.core.$strip>;
|
|
396
117
|
publisherSchema: z.ZodObject<{
|
|
397
118
|
id: z.ZodOptional<z.ZodString>;
|
|
398
|
-
timestamp: z.ZodOptional<z.
|
|
119
|
+
timestamp: z.ZodOptional<z.ZodISODateTime>;
|
|
399
120
|
type: z.ZodLiteral<"upload.content_file_parsed">;
|
|
400
121
|
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
401
122
|
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
402
123
|
payload: z.ZodObject<{
|
|
403
|
-
userId: z.ZodOptional<z.
|
|
404
|
-
projectId: z.
|
|
405
|
-
fileId: z.
|
|
406
|
-
filePath: z.ZodString
|
|
124
|
+
userId: z.ZodOptional<z.ZodGUID>;
|
|
125
|
+
projectId: z.ZodGUID;
|
|
126
|
+
fileId: z.ZodGUID;
|
|
127
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
407
128
|
filePathWithLocalePlaceholder: z.ZodNullable<z.ZodString>;
|
|
408
129
|
keyCount: z.ZodNumber;
|
|
409
130
|
wordCount: z.ZodOptional<z.ZodNumber>;
|
|
410
131
|
locale: z.ZodNullable<z.ZodString>;
|
|
411
132
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
412
133
|
parsedContentStorageId: z.ZodString;
|
|
413
|
-
},
|
|
414
|
-
locale: string | null;
|
|
415
|
-
projectId: string;
|
|
416
|
-
fileId: string;
|
|
417
|
-
filePath: string;
|
|
418
|
-
filePathWithLocalePlaceholder: string | null;
|
|
419
|
-
keyCount: number;
|
|
420
|
-
parsedContentStorageId: string;
|
|
421
|
-
userId?: string | undefined;
|
|
422
|
-
wordCount?: number | undefined;
|
|
423
|
-
contentHash?: string | undefined;
|
|
424
|
-
}, {
|
|
425
|
-
locale: string | null;
|
|
426
|
-
projectId: string;
|
|
427
|
-
fileId: string;
|
|
428
|
-
filePath: string;
|
|
429
|
-
filePathWithLocalePlaceholder: string | null;
|
|
430
|
-
keyCount: number;
|
|
431
|
-
parsedContentStorageId: string;
|
|
432
|
-
userId?: string | undefined;
|
|
433
|
-
wordCount?: number | undefined;
|
|
434
|
-
contentHash?: string | undefined;
|
|
435
|
-
}>;
|
|
134
|
+
}, z.core.$strip>;
|
|
436
135
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
437
136
|
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
438
137
|
producedBy: z.ZodOptional<z.ZodString>;
|
|
439
138
|
originatedFrom: z.ZodOptional<z.ZodString>;
|
|
440
139
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
441
|
-
}
|
|
442
|
-
},
|
|
443
|
-
type: "upload.content_file_parsed";
|
|
444
|
-
payload: {
|
|
445
|
-
locale: string | null;
|
|
446
|
-
projectId: string;
|
|
447
|
-
fileId: string;
|
|
448
|
-
filePath: string;
|
|
449
|
-
filePathWithLocalePlaceholder: string | null;
|
|
450
|
-
keyCount: number;
|
|
451
|
-
parsedContentStorageId: string;
|
|
452
|
-
userId?: string | undefined;
|
|
453
|
-
wordCount?: number | undefined;
|
|
454
|
-
contentHash?: string | undefined;
|
|
455
|
-
};
|
|
456
|
-
id?: string | undefined;
|
|
457
|
-
metadata?: {
|
|
458
|
-
schemaVersion?: string | undefined;
|
|
459
|
-
producedBy?: string | undefined;
|
|
460
|
-
originatedFrom?: string | undefined;
|
|
461
|
-
correlationId?: string | undefined;
|
|
462
|
-
} | undefined;
|
|
463
|
-
timestamp?: string | undefined;
|
|
464
|
-
deduplicationId?: string | null | undefined;
|
|
465
|
-
deduplicationOptions?: {
|
|
466
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
467
|
-
lockTimeoutSeconds?: number | undefined;
|
|
468
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
469
|
-
refreshIntervalSeconds?: number | undefined;
|
|
470
|
-
} | null | undefined;
|
|
471
|
-
}, {
|
|
472
|
-
type: "upload.content_file_parsed";
|
|
473
|
-
payload: {
|
|
474
|
-
locale: string | null;
|
|
475
|
-
projectId: string;
|
|
476
|
-
fileId: string;
|
|
477
|
-
filePath: string;
|
|
478
|
-
filePathWithLocalePlaceholder: string | null;
|
|
479
|
-
keyCount: number;
|
|
480
|
-
parsedContentStorageId: string;
|
|
481
|
-
userId?: string | undefined;
|
|
482
|
-
wordCount?: number | undefined;
|
|
483
|
-
contentHash?: string | undefined;
|
|
484
|
-
};
|
|
485
|
-
id?: string | undefined;
|
|
486
|
-
metadata?: {
|
|
487
|
-
schemaVersion?: string | undefined;
|
|
488
|
-
producedBy?: string | undefined;
|
|
489
|
-
originatedFrom?: string | undefined;
|
|
490
|
-
correlationId?: string | undefined;
|
|
491
|
-
} | undefined;
|
|
492
|
-
timestamp?: string | undefined;
|
|
493
|
-
deduplicationId?: string | null | undefined;
|
|
494
|
-
deduplicationOptions?: {
|
|
495
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
496
|
-
lockTimeoutSeconds?: number | undefined;
|
|
497
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
498
|
-
refreshIntervalSeconds?: number | undefined;
|
|
499
|
-
} | null | undefined;
|
|
500
|
-
}>;
|
|
140
|
+
}>>;
|
|
141
|
+
}, z.core.$strip>;
|
|
501
142
|
};
|
|
502
143
|
'upload.content_file_parse_failed': {
|
|
503
144
|
producedBy: string[];
|
|
504
145
|
snsTopic: "autopilot-upload";
|
|
505
146
|
consumerSchema: z.ZodObject<{
|
|
506
147
|
id: z.ZodString;
|
|
507
|
-
timestamp: z.
|
|
148
|
+
timestamp: z.ZodISODateTime;
|
|
508
149
|
type: z.ZodLiteral<"upload.content_file_parse_failed">;
|
|
509
150
|
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
510
151
|
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
511
152
|
payload: z.ZodObject<{
|
|
512
|
-
userId: z.ZodOptional<z.
|
|
513
|
-
projectId: z.
|
|
514
|
-
fileId: z.
|
|
515
|
-
filePath: z.ZodString
|
|
153
|
+
userId: z.ZodOptional<z.ZodGUID>;
|
|
154
|
+
projectId: z.ZodGUID;
|
|
155
|
+
fileId: z.ZodGUID;
|
|
156
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
516
157
|
reason: z.ZodString;
|
|
517
|
-
},
|
|
518
|
-
projectId: string;
|
|
519
|
-
fileId: string;
|
|
520
|
-
reason: string;
|
|
521
|
-
filePath: string;
|
|
522
|
-
userId?: string | undefined;
|
|
523
|
-
}, {
|
|
524
|
-
projectId: string;
|
|
525
|
-
fileId: string;
|
|
526
|
-
reason: string;
|
|
527
|
-
filePath: string;
|
|
528
|
-
userId?: string | undefined;
|
|
529
|
-
}>;
|
|
158
|
+
}, z.core.$strip>;
|
|
530
159
|
metadata: import("@message-queue-toolkit/schemas").MetadataObject;
|
|
531
|
-
},
|
|
532
|
-
id: string;
|
|
533
|
-
type: "upload.content_file_parse_failed";
|
|
534
|
-
metadata: {
|
|
535
|
-
schemaVersion: string;
|
|
536
|
-
producedBy: string;
|
|
537
|
-
originatedFrom: string;
|
|
538
|
-
correlationId: string;
|
|
539
|
-
};
|
|
540
|
-
timestamp: string;
|
|
541
|
-
payload: {
|
|
542
|
-
projectId: string;
|
|
543
|
-
fileId: string;
|
|
544
|
-
reason: string;
|
|
545
|
-
filePath: string;
|
|
546
|
-
userId?: string | undefined;
|
|
547
|
-
};
|
|
548
|
-
deduplicationId?: string | null | undefined;
|
|
549
|
-
deduplicationOptions?: {
|
|
550
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
551
|
-
lockTimeoutSeconds?: number | undefined;
|
|
552
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
553
|
-
refreshIntervalSeconds?: number | undefined;
|
|
554
|
-
} | null | undefined;
|
|
555
|
-
}, {
|
|
556
|
-
id: string;
|
|
557
|
-
type: "upload.content_file_parse_failed";
|
|
558
|
-
metadata: {
|
|
559
|
-
schemaVersion: string;
|
|
560
|
-
producedBy: string;
|
|
561
|
-
originatedFrom: string;
|
|
562
|
-
correlationId: string;
|
|
563
|
-
};
|
|
564
|
-
timestamp: string;
|
|
565
|
-
payload: {
|
|
566
|
-
projectId: string;
|
|
567
|
-
fileId: string;
|
|
568
|
-
reason: string;
|
|
569
|
-
filePath: string;
|
|
570
|
-
userId?: string | undefined;
|
|
571
|
-
};
|
|
572
|
-
deduplicationId?: string | null | undefined;
|
|
573
|
-
deduplicationOptions?: {
|
|
574
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
575
|
-
lockTimeoutSeconds?: number | undefined;
|
|
576
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
577
|
-
refreshIntervalSeconds?: number | undefined;
|
|
578
|
-
} | null | undefined;
|
|
579
|
-
}>;
|
|
160
|
+
}, z.core.$strip>;
|
|
580
161
|
publisherSchema: z.ZodObject<{
|
|
581
162
|
id: z.ZodOptional<z.ZodString>;
|
|
582
|
-
timestamp: z.ZodOptional<z.
|
|
163
|
+
timestamp: z.ZodOptional<z.ZodISODateTime>;
|
|
583
164
|
type: z.ZodLiteral<"upload.content_file_parse_failed">;
|
|
584
165
|
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
585
166
|
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
586
167
|
payload: z.ZodObject<{
|
|
587
|
-
userId: z.ZodOptional<z.
|
|
588
|
-
projectId: z.
|
|
589
|
-
fileId: z.
|
|
590
|
-
filePath: z.ZodString
|
|
168
|
+
userId: z.ZodOptional<z.ZodGUID>;
|
|
169
|
+
projectId: z.ZodGUID;
|
|
170
|
+
fileId: z.ZodGUID;
|
|
171
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
591
172
|
reason: z.ZodString;
|
|
592
|
-
},
|
|
593
|
-
projectId: string;
|
|
594
|
-
fileId: string;
|
|
595
|
-
reason: string;
|
|
596
|
-
filePath: string;
|
|
597
|
-
userId?: string | undefined;
|
|
598
|
-
}, {
|
|
599
|
-
projectId: string;
|
|
600
|
-
fileId: string;
|
|
601
|
-
reason: string;
|
|
602
|
-
filePath: string;
|
|
603
|
-
userId?: string | undefined;
|
|
604
|
-
}>;
|
|
173
|
+
}, z.core.$strip>;
|
|
605
174
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
606
175
|
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
607
176
|
producedBy: z.ZodOptional<z.ZodString>;
|
|
608
177
|
originatedFrom: z.ZodOptional<z.ZodString>;
|
|
609
178
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
610
|
-
}
|
|
611
|
-
},
|
|
612
|
-
type: "upload.content_file_parse_failed";
|
|
613
|
-
payload: {
|
|
614
|
-
projectId: string;
|
|
615
|
-
fileId: string;
|
|
616
|
-
reason: string;
|
|
617
|
-
filePath: string;
|
|
618
|
-
userId?: string | undefined;
|
|
619
|
-
};
|
|
620
|
-
id?: string | undefined;
|
|
621
|
-
metadata?: {
|
|
622
|
-
schemaVersion?: string | undefined;
|
|
623
|
-
producedBy?: string | undefined;
|
|
624
|
-
originatedFrom?: string | undefined;
|
|
625
|
-
correlationId?: string | undefined;
|
|
626
|
-
} | undefined;
|
|
627
|
-
timestamp?: string | undefined;
|
|
628
|
-
deduplicationId?: string | null | undefined;
|
|
629
|
-
deduplicationOptions?: {
|
|
630
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
631
|
-
lockTimeoutSeconds?: number | undefined;
|
|
632
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
633
|
-
refreshIntervalSeconds?: number | undefined;
|
|
634
|
-
} | null | undefined;
|
|
635
|
-
}, {
|
|
636
|
-
type: "upload.content_file_parse_failed";
|
|
637
|
-
payload: {
|
|
638
|
-
projectId: string;
|
|
639
|
-
fileId: string;
|
|
640
|
-
reason: string;
|
|
641
|
-
filePath: string;
|
|
642
|
-
userId?: string | undefined;
|
|
643
|
-
};
|
|
644
|
-
id?: string | undefined;
|
|
645
|
-
metadata?: {
|
|
646
|
-
schemaVersion?: string | undefined;
|
|
647
|
-
producedBy?: string | undefined;
|
|
648
|
-
originatedFrom?: string | undefined;
|
|
649
|
-
correlationId?: string | undefined;
|
|
650
|
-
} | undefined;
|
|
651
|
-
timestamp?: string | undefined;
|
|
652
|
-
deduplicationId?: string | null | undefined;
|
|
653
|
-
deduplicationOptions?: {
|
|
654
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
655
|
-
lockTimeoutSeconds?: number | undefined;
|
|
656
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
657
|
-
refreshIntervalSeconds?: number | undefined;
|
|
658
|
-
} | null | undefined;
|
|
659
|
-
}>;
|
|
179
|
+
}>>;
|
|
180
|
+
}, z.core.$strip>;
|
|
660
181
|
};
|
|
661
182
|
'upload.content_item_collection_uploaded': {
|
|
662
183
|
producedBy: string[];
|
|
663
184
|
snsTopic: "autopilot-upload";
|
|
664
185
|
consumerSchema: z.ZodObject<{
|
|
665
186
|
id: z.ZodString;
|
|
666
|
-
timestamp: z.
|
|
187
|
+
timestamp: z.ZodISODateTime;
|
|
667
188
|
type: z.ZodLiteral<"upload.content_item_collection_uploaded">;
|
|
668
189
|
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
669
190
|
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
670
191
|
payload: z.ZodObject<{
|
|
671
|
-
projectId: z.
|
|
672
|
-
locale: z.
|
|
673
|
-
contentItemCollectionId: z.
|
|
674
|
-
rawContentFileId: z.
|
|
675
|
-
},
|
|
676
|
-
locale: string;
|
|
677
|
-
projectId: string;
|
|
678
|
-
contentItemCollectionId: string;
|
|
679
|
-
rawContentFileId: string;
|
|
680
|
-
}, {
|
|
681
|
-
locale: string;
|
|
682
|
-
projectId: string;
|
|
683
|
-
contentItemCollectionId: string;
|
|
684
|
-
rawContentFileId: string;
|
|
685
|
-
}>;
|
|
192
|
+
projectId: z.ZodGUID;
|
|
193
|
+
locale: z.ZodString;
|
|
194
|
+
contentItemCollectionId: z.ZodGUID;
|
|
195
|
+
rawContentFileId: z.ZodGUID;
|
|
196
|
+
}, z.core.$strip>;
|
|
686
197
|
metadata: import("@message-queue-toolkit/schemas").MetadataObject;
|
|
687
|
-
},
|
|
688
|
-
id: string;
|
|
689
|
-
type: "upload.content_item_collection_uploaded";
|
|
690
|
-
metadata: {
|
|
691
|
-
schemaVersion: string;
|
|
692
|
-
producedBy: string;
|
|
693
|
-
originatedFrom: string;
|
|
694
|
-
correlationId: string;
|
|
695
|
-
};
|
|
696
|
-
timestamp: string;
|
|
697
|
-
payload: {
|
|
698
|
-
locale: string;
|
|
699
|
-
projectId: string;
|
|
700
|
-
contentItemCollectionId: string;
|
|
701
|
-
rawContentFileId: string;
|
|
702
|
-
};
|
|
703
|
-
deduplicationId?: string | null | undefined;
|
|
704
|
-
deduplicationOptions?: {
|
|
705
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
706
|
-
lockTimeoutSeconds?: number | undefined;
|
|
707
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
708
|
-
refreshIntervalSeconds?: number | undefined;
|
|
709
|
-
} | null | undefined;
|
|
710
|
-
}, {
|
|
711
|
-
id: string;
|
|
712
|
-
type: "upload.content_item_collection_uploaded";
|
|
713
|
-
metadata: {
|
|
714
|
-
schemaVersion: string;
|
|
715
|
-
producedBy: string;
|
|
716
|
-
originatedFrom: string;
|
|
717
|
-
correlationId: string;
|
|
718
|
-
};
|
|
719
|
-
timestamp: string;
|
|
720
|
-
payload: {
|
|
721
|
-
locale: string;
|
|
722
|
-
projectId: string;
|
|
723
|
-
contentItemCollectionId: string;
|
|
724
|
-
rawContentFileId: string;
|
|
725
|
-
};
|
|
726
|
-
deduplicationId?: string | null | undefined;
|
|
727
|
-
deduplicationOptions?: {
|
|
728
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
729
|
-
lockTimeoutSeconds?: number | undefined;
|
|
730
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
731
|
-
refreshIntervalSeconds?: number | undefined;
|
|
732
|
-
} | null | undefined;
|
|
733
|
-
}>;
|
|
198
|
+
}, z.core.$strip>;
|
|
734
199
|
publisherSchema: z.ZodObject<{
|
|
735
200
|
id: z.ZodOptional<z.ZodString>;
|
|
736
|
-
timestamp: z.ZodOptional<z.
|
|
201
|
+
timestamp: z.ZodOptional<z.ZodISODateTime>;
|
|
737
202
|
type: z.ZodLiteral<"upload.content_item_collection_uploaded">;
|
|
738
203
|
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
739
204
|
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
740
205
|
payload: z.ZodObject<{
|
|
741
|
-
projectId: z.
|
|
742
|
-
locale: z.
|
|
743
|
-
contentItemCollectionId: z.
|
|
744
|
-
rawContentFileId: z.
|
|
745
|
-
},
|
|
746
|
-
locale: string;
|
|
747
|
-
projectId: string;
|
|
748
|
-
contentItemCollectionId: string;
|
|
749
|
-
rawContentFileId: string;
|
|
750
|
-
}, {
|
|
751
|
-
locale: string;
|
|
752
|
-
projectId: string;
|
|
753
|
-
contentItemCollectionId: string;
|
|
754
|
-
rawContentFileId: string;
|
|
755
|
-
}>;
|
|
206
|
+
projectId: z.ZodGUID;
|
|
207
|
+
locale: z.ZodString;
|
|
208
|
+
contentItemCollectionId: z.ZodGUID;
|
|
209
|
+
rawContentFileId: z.ZodGUID;
|
|
210
|
+
}, z.core.$strip>;
|
|
756
211
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
757
212
|
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
758
213
|
producedBy: z.ZodOptional<z.ZodString>;
|
|
759
214
|
originatedFrom: z.ZodOptional<z.ZodString>;
|
|
760
215
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
761
|
-
}
|
|
762
|
-
},
|
|
763
|
-
type: "upload.content_item_collection_uploaded";
|
|
764
|
-
payload: {
|
|
765
|
-
locale: string;
|
|
766
|
-
projectId: string;
|
|
767
|
-
contentItemCollectionId: string;
|
|
768
|
-
rawContentFileId: string;
|
|
769
|
-
};
|
|
770
|
-
id?: string | undefined;
|
|
771
|
-
metadata?: {
|
|
772
|
-
schemaVersion?: string | undefined;
|
|
773
|
-
producedBy?: string | undefined;
|
|
774
|
-
originatedFrom?: string | undefined;
|
|
775
|
-
correlationId?: string | undefined;
|
|
776
|
-
} | undefined;
|
|
777
|
-
timestamp?: string | undefined;
|
|
778
|
-
deduplicationId?: string | null | undefined;
|
|
779
|
-
deduplicationOptions?: {
|
|
780
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
781
|
-
lockTimeoutSeconds?: number | undefined;
|
|
782
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
783
|
-
refreshIntervalSeconds?: number | undefined;
|
|
784
|
-
} | null | undefined;
|
|
785
|
-
}, {
|
|
786
|
-
type: "upload.content_item_collection_uploaded";
|
|
787
|
-
payload: {
|
|
788
|
-
locale: string;
|
|
789
|
-
projectId: string;
|
|
790
|
-
contentItemCollectionId: string;
|
|
791
|
-
rawContentFileId: string;
|
|
792
|
-
};
|
|
793
|
-
id?: string | undefined;
|
|
794
|
-
metadata?: {
|
|
795
|
-
schemaVersion?: string | undefined;
|
|
796
|
-
producedBy?: string | undefined;
|
|
797
|
-
originatedFrom?: string | undefined;
|
|
798
|
-
correlationId?: string | undefined;
|
|
799
|
-
} | undefined;
|
|
800
|
-
timestamp?: string | undefined;
|
|
801
|
-
deduplicationId?: string | null | undefined;
|
|
802
|
-
deduplicationOptions?: {
|
|
803
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
804
|
-
lockTimeoutSeconds?: number | undefined;
|
|
805
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
806
|
-
refreshIntervalSeconds?: number | undefined;
|
|
807
|
-
} | null | undefined;
|
|
808
|
-
}>;
|
|
216
|
+
}>>;
|
|
217
|
+
}, z.core.$strip>;
|
|
809
218
|
};
|
|
810
219
|
'upload.content_item_collection_parse_error': {
|
|
811
220
|
producedBy: string[];
|
|
812
221
|
snsTopic: "autopilot-upload";
|
|
813
222
|
consumerSchema: z.ZodObject<{
|
|
814
223
|
id: z.ZodString;
|
|
815
|
-
timestamp: z.
|
|
224
|
+
timestamp: z.ZodISODateTime;
|
|
816
225
|
type: z.ZodLiteral<"upload.content_item_collection_parse_error">;
|
|
817
226
|
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
818
227
|
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
819
228
|
payload: z.ZodObject<{
|
|
820
|
-
projectId: z.
|
|
821
|
-
contentItemCollectionId: z.
|
|
229
|
+
projectId: z.ZodGUID;
|
|
230
|
+
contentItemCollectionId: z.ZodGUID;
|
|
822
231
|
reason: z.ZodString;
|
|
823
|
-
},
|
|
824
|
-
projectId: string;
|
|
825
|
-
reason: string;
|
|
826
|
-
contentItemCollectionId: string;
|
|
827
|
-
}, {
|
|
828
|
-
projectId: string;
|
|
829
|
-
reason: string;
|
|
830
|
-
contentItemCollectionId: string;
|
|
831
|
-
}>;
|
|
232
|
+
}, z.core.$strip>;
|
|
832
233
|
metadata: import("@message-queue-toolkit/schemas").MetadataObject;
|
|
833
|
-
},
|
|
834
|
-
id: string;
|
|
835
|
-
type: "upload.content_item_collection_parse_error";
|
|
836
|
-
metadata: {
|
|
837
|
-
schemaVersion: string;
|
|
838
|
-
producedBy: string;
|
|
839
|
-
originatedFrom: string;
|
|
840
|
-
correlationId: string;
|
|
841
|
-
};
|
|
842
|
-
timestamp: string;
|
|
843
|
-
payload: {
|
|
844
|
-
projectId: string;
|
|
845
|
-
reason: string;
|
|
846
|
-
contentItemCollectionId: string;
|
|
847
|
-
};
|
|
848
|
-
deduplicationId?: string | null | undefined;
|
|
849
|
-
deduplicationOptions?: {
|
|
850
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
851
|
-
lockTimeoutSeconds?: number | undefined;
|
|
852
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
853
|
-
refreshIntervalSeconds?: number | undefined;
|
|
854
|
-
} | null | undefined;
|
|
855
|
-
}, {
|
|
856
|
-
id: string;
|
|
857
|
-
type: "upload.content_item_collection_parse_error";
|
|
858
|
-
metadata: {
|
|
859
|
-
schemaVersion: string;
|
|
860
|
-
producedBy: string;
|
|
861
|
-
originatedFrom: string;
|
|
862
|
-
correlationId: string;
|
|
863
|
-
};
|
|
864
|
-
timestamp: string;
|
|
865
|
-
payload: {
|
|
866
|
-
projectId: string;
|
|
867
|
-
reason: string;
|
|
868
|
-
contentItemCollectionId: string;
|
|
869
|
-
};
|
|
870
|
-
deduplicationId?: string | null | undefined;
|
|
871
|
-
deduplicationOptions?: {
|
|
872
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
873
|
-
lockTimeoutSeconds?: number | undefined;
|
|
874
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
875
|
-
refreshIntervalSeconds?: number | undefined;
|
|
876
|
-
} | null | undefined;
|
|
877
|
-
}>;
|
|
234
|
+
}, z.core.$strip>;
|
|
878
235
|
publisherSchema: z.ZodObject<{
|
|
879
236
|
id: z.ZodOptional<z.ZodString>;
|
|
880
|
-
timestamp: z.ZodOptional<z.
|
|
237
|
+
timestamp: z.ZodOptional<z.ZodISODateTime>;
|
|
881
238
|
type: z.ZodLiteral<"upload.content_item_collection_parse_error">;
|
|
882
239
|
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
883
240
|
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
884
241
|
payload: z.ZodObject<{
|
|
885
|
-
projectId: z.
|
|
886
|
-
contentItemCollectionId: z.
|
|
242
|
+
projectId: z.ZodGUID;
|
|
243
|
+
contentItemCollectionId: z.ZodGUID;
|
|
887
244
|
reason: z.ZodString;
|
|
888
|
-
},
|
|
889
|
-
projectId: string;
|
|
890
|
-
reason: string;
|
|
891
|
-
contentItemCollectionId: string;
|
|
892
|
-
}, {
|
|
893
|
-
projectId: string;
|
|
894
|
-
reason: string;
|
|
895
|
-
contentItemCollectionId: string;
|
|
896
|
-
}>;
|
|
245
|
+
}, z.core.$strip>;
|
|
897
246
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
898
247
|
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
899
248
|
producedBy: z.ZodOptional<z.ZodString>;
|
|
900
249
|
originatedFrom: z.ZodOptional<z.ZodString>;
|
|
901
250
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
902
|
-
}
|
|
903
|
-
},
|
|
904
|
-
type: "upload.content_item_collection_parse_error";
|
|
905
|
-
payload: {
|
|
906
|
-
projectId: string;
|
|
907
|
-
reason: string;
|
|
908
|
-
contentItemCollectionId: string;
|
|
909
|
-
};
|
|
910
|
-
id?: string | undefined;
|
|
911
|
-
metadata?: {
|
|
912
|
-
schemaVersion?: string | undefined;
|
|
913
|
-
producedBy?: string | undefined;
|
|
914
|
-
originatedFrom?: string | undefined;
|
|
915
|
-
correlationId?: string | undefined;
|
|
916
|
-
} | undefined;
|
|
917
|
-
timestamp?: string | undefined;
|
|
918
|
-
deduplicationId?: string | null | undefined;
|
|
919
|
-
deduplicationOptions?: {
|
|
920
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
921
|
-
lockTimeoutSeconds?: number | undefined;
|
|
922
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
923
|
-
refreshIntervalSeconds?: number | undefined;
|
|
924
|
-
} | null | undefined;
|
|
925
|
-
}, {
|
|
926
|
-
type: "upload.content_item_collection_parse_error";
|
|
927
|
-
payload: {
|
|
928
|
-
projectId: string;
|
|
929
|
-
reason: string;
|
|
930
|
-
contentItemCollectionId: string;
|
|
931
|
-
};
|
|
932
|
-
id?: string | undefined;
|
|
933
|
-
metadata?: {
|
|
934
|
-
schemaVersion?: string | undefined;
|
|
935
|
-
producedBy?: string | undefined;
|
|
936
|
-
originatedFrom?: string | undefined;
|
|
937
|
-
correlationId?: string | undefined;
|
|
938
|
-
} | undefined;
|
|
939
|
-
timestamp?: string | undefined;
|
|
940
|
-
deduplicationId?: string | null | undefined;
|
|
941
|
-
deduplicationOptions?: {
|
|
942
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
943
|
-
lockTimeoutSeconds?: number | undefined;
|
|
944
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
945
|
-
refreshIntervalSeconds?: number | undefined;
|
|
946
|
-
} | null | undefined;
|
|
947
|
-
}>;
|
|
251
|
+
}>>;
|
|
252
|
+
}, z.core.$strip>;
|
|
948
253
|
};
|
|
949
254
|
'upload.content_item_collection_parsed': {
|
|
950
255
|
producedBy: string[];
|
|
951
256
|
snsTopic: "autopilot-upload";
|
|
952
257
|
consumerSchema: z.ZodObject<{
|
|
953
258
|
id: z.ZodString;
|
|
954
|
-
timestamp: z.
|
|
259
|
+
timestamp: z.ZodISODateTime;
|
|
955
260
|
type: z.ZodLiteral<"upload.content_item_collection_parsed">;
|
|
956
261
|
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
957
262
|
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
958
263
|
payload: z.ZodObject<{
|
|
959
|
-
projectId: z.
|
|
960
|
-
contentItemCollectionId: z.
|
|
961
|
-
parsedContentFileId: z.
|
|
962
|
-
parsedItemIdentifiers: z.ZodArray<z.ZodString
|
|
264
|
+
projectId: z.ZodGUID;
|
|
265
|
+
contentItemCollectionId: z.ZodGUID;
|
|
266
|
+
parsedContentFileId: z.ZodGUID;
|
|
267
|
+
parsedItemIdentifiers: z.ZodArray<z.ZodString>;
|
|
963
268
|
parsingFailedItemsCount: z.ZodNumber;
|
|
964
|
-
},
|
|
965
|
-
projectId: string;
|
|
966
|
-
contentItemCollectionId: string;
|
|
967
|
-
parsedContentFileId: string;
|
|
968
|
-
parsedItemIdentifiers: string[];
|
|
969
|
-
parsingFailedItemsCount: number;
|
|
970
|
-
}, {
|
|
971
|
-
projectId: string;
|
|
972
|
-
contentItemCollectionId: string;
|
|
973
|
-
parsedContentFileId: string;
|
|
974
|
-
parsedItemIdentifiers: string[];
|
|
975
|
-
parsingFailedItemsCount: number;
|
|
976
|
-
}>;
|
|
269
|
+
}, z.core.$strip>;
|
|
977
270
|
metadata: import("@message-queue-toolkit/schemas").MetadataObject;
|
|
978
|
-
},
|
|
979
|
-
id: string;
|
|
980
|
-
type: "upload.content_item_collection_parsed";
|
|
981
|
-
metadata: {
|
|
982
|
-
schemaVersion: string;
|
|
983
|
-
producedBy: string;
|
|
984
|
-
originatedFrom: string;
|
|
985
|
-
correlationId: string;
|
|
986
|
-
};
|
|
987
|
-
timestamp: string;
|
|
988
|
-
payload: {
|
|
989
|
-
projectId: string;
|
|
990
|
-
contentItemCollectionId: string;
|
|
991
|
-
parsedContentFileId: string;
|
|
992
|
-
parsedItemIdentifiers: string[];
|
|
993
|
-
parsingFailedItemsCount: number;
|
|
994
|
-
};
|
|
995
|
-
deduplicationId?: string | null | undefined;
|
|
996
|
-
deduplicationOptions?: {
|
|
997
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
998
|
-
lockTimeoutSeconds?: number | undefined;
|
|
999
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
1000
|
-
refreshIntervalSeconds?: number | undefined;
|
|
1001
|
-
} | null | undefined;
|
|
1002
|
-
}, {
|
|
1003
|
-
id: string;
|
|
1004
|
-
type: "upload.content_item_collection_parsed";
|
|
1005
|
-
metadata: {
|
|
1006
|
-
schemaVersion: string;
|
|
1007
|
-
producedBy: string;
|
|
1008
|
-
originatedFrom: string;
|
|
1009
|
-
correlationId: string;
|
|
1010
|
-
};
|
|
1011
|
-
timestamp: string;
|
|
1012
|
-
payload: {
|
|
1013
|
-
projectId: string;
|
|
1014
|
-
contentItemCollectionId: string;
|
|
1015
|
-
parsedContentFileId: string;
|
|
1016
|
-
parsedItemIdentifiers: string[];
|
|
1017
|
-
parsingFailedItemsCount: number;
|
|
1018
|
-
};
|
|
1019
|
-
deduplicationId?: string | null | undefined;
|
|
1020
|
-
deduplicationOptions?: {
|
|
1021
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
1022
|
-
lockTimeoutSeconds?: number | undefined;
|
|
1023
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
1024
|
-
refreshIntervalSeconds?: number | undefined;
|
|
1025
|
-
} | null | undefined;
|
|
1026
|
-
}>;
|
|
271
|
+
}, z.core.$strip>;
|
|
1027
272
|
publisherSchema: z.ZodObject<{
|
|
1028
273
|
id: z.ZodOptional<z.ZodString>;
|
|
1029
|
-
timestamp: z.ZodOptional<z.
|
|
274
|
+
timestamp: z.ZodOptional<z.ZodISODateTime>;
|
|
1030
275
|
type: z.ZodLiteral<"upload.content_item_collection_parsed">;
|
|
1031
276
|
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1032
277
|
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
1033
278
|
payload: z.ZodObject<{
|
|
1034
|
-
projectId: z.
|
|
1035
|
-
contentItemCollectionId: z.
|
|
1036
|
-
parsedContentFileId: z.
|
|
1037
|
-
parsedItemIdentifiers: z.ZodArray<z.ZodString
|
|
279
|
+
projectId: z.ZodGUID;
|
|
280
|
+
contentItemCollectionId: z.ZodGUID;
|
|
281
|
+
parsedContentFileId: z.ZodGUID;
|
|
282
|
+
parsedItemIdentifiers: z.ZodArray<z.ZodString>;
|
|
1038
283
|
parsingFailedItemsCount: z.ZodNumber;
|
|
1039
|
-
},
|
|
1040
|
-
projectId: string;
|
|
1041
|
-
contentItemCollectionId: string;
|
|
1042
|
-
parsedContentFileId: string;
|
|
1043
|
-
parsedItemIdentifiers: string[];
|
|
1044
|
-
parsingFailedItemsCount: number;
|
|
1045
|
-
}, {
|
|
1046
|
-
projectId: string;
|
|
1047
|
-
contentItemCollectionId: string;
|
|
1048
|
-
parsedContentFileId: string;
|
|
1049
|
-
parsedItemIdentifiers: string[];
|
|
1050
|
-
parsingFailedItemsCount: number;
|
|
1051
|
-
}>;
|
|
1052
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
1053
|
-
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
1054
|
-
producedBy: z.ZodOptional<z.ZodString>;
|
|
1055
|
-
originatedFrom: z.ZodOptional<z.ZodString>;
|
|
1056
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
1057
|
-
}, "strip">>;
|
|
1058
|
-
}, "strip", z.ZodTypeAny, {
|
|
1059
|
-
type: "upload.content_item_collection_parsed";
|
|
1060
|
-
payload: {
|
|
1061
|
-
projectId: string;
|
|
1062
|
-
contentItemCollectionId: string;
|
|
1063
|
-
parsedContentFileId: string;
|
|
1064
|
-
parsedItemIdentifiers: string[];
|
|
1065
|
-
parsingFailedItemsCount: number;
|
|
1066
|
-
};
|
|
1067
|
-
id?: string | undefined;
|
|
1068
|
-
metadata?: {
|
|
1069
|
-
schemaVersion?: string | undefined;
|
|
1070
|
-
producedBy?: string | undefined;
|
|
1071
|
-
originatedFrom?: string | undefined;
|
|
1072
|
-
correlationId?: string | undefined;
|
|
1073
|
-
} | undefined;
|
|
1074
|
-
timestamp?: string | undefined;
|
|
1075
|
-
deduplicationId?: string | null | undefined;
|
|
1076
|
-
deduplicationOptions?: {
|
|
1077
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
1078
|
-
lockTimeoutSeconds?: number | undefined;
|
|
1079
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
1080
|
-
refreshIntervalSeconds?: number | undefined;
|
|
1081
|
-
} | null | undefined;
|
|
1082
|
-
}, {
|
|
1083
|
-
type: "upload.content_item_collection_parsed";
|
|
1084
|
-
payload: {
|
|
1085
|
-
projectId: string;
|
|
1086
|
-
contentItemCollectionId: string;
|
|
1087
|
-
parsedContentFileId: string;
|
|
1088
|
-
parsedItemIdentifiers: string[];
|
|
1089
|
-
parsingFailedItemsCount: number;
|
|
1090
|
-
};
|
|
1091
|
-
id?: string | undefined;
|
|
1092
|
-
metadata?: {
|
|
1093
|
-
schemaVersion?: string | undefined;
|
|
1094
|
-
producedBy?: string | undefined;
|
|
1095
|
-
originatedFrom?: string | undefined;
|
|
1096
|
-
correlationId?: string | undefined;
|
|
1097
|
-
} | undefined;
|
|
1098
|
-
timestamp?: string | undefined;
|
|
1099
|
-
deduplicationId?: string | null | undefined;
|
|
1100
|
-
deduplicationOptions?: {
|
|
1101
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
1102
|
-
lockTimeoutSeconds?: number | undefined;
|
|
1103
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
1104
|
-
refreshIntervalSeconds?: number | undefined;
|
|
1105
|
-
} | null | undefined;
|
|
1106
|
-
}>;
|
|
1107
|
-
};
|
|
1108
|
-
'upload.content_item_collection_upload_finished': {
|
|
1109
|
-
producedBy: string[];
|
|
1110
|
-
snsTopic: "autopilot-upload";
|
|
1111
|
-
consumerSchema: z.ZodObject<{
|
|
1112
|
-
id: z.ZodString;
|
|
1113
|
-
timestamp: z.ZodString;
|
|
1114
|
-
type: z.ZodLiteral<"upload.content_item_collection_upload_finished">;
|
|
1115
|
-
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1116
|
-
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
1117
|
-
payload: z.ZodObject<{
|
|
1118
|
-
contentItemCollectionId: z.ZodString;
|
|
1119
|
-
result: z.ZodEnum<["SUCCESS", "FAILURE"]>;
|
|
1120
|
-
}, "strip", z.ZodTypeAny, {
|
|
1121
|
-
contentItemCollectionId: string;
|
|
1122
|
-
result: "SUCCESS" | "FAILURE";
|
|
1123
|
-
}, {
|
|
1124
|
-
contentItemCollectionId: string;
|
|
1125
|
-
result: "SUCCESS" | "FAILURE";
|
|
1126
|
-
}>;
|
|
1127
|
-
metadata: import("@message-queue-toolkit/schemas").MetadataObject;
|
|
1128
|
-
}, "strip", z.ZodTypeAny, {
|
|
1129
|
-
id: string;
|
|
1130
|
-
type: "upload.content_item_collection_upload_finished";
|
|
1131
|
-
metadata: {
|
|
1132
|
-
schemaVersion: string;
|
|
1133
|
-
producedBy: string;
|
|
1134
|
-
originatedFrom: string;
|
|
1135
|
-
correlationId: string;
|
|
1136
|
-
};
|
|
1137
|
-
timestamp: string;
|
|
1138
|
-
payload: {
|
|
1139
|
-
contentItemCollectionId: string;
|
|
1140
|
-
result: "SUCCESS" | "FAILURE";
|
|
1141
|
-
};
|
|
1142
|
-
deduplicationId?: string | null | undefined;
|
|
1143
|
-
deduplicationOptions?: {
|
|
1144
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
1145
|
-
lockTimeoutSeconds?: number | undefined;
|
|
1146
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
1147
|
-
refreshIntervalSeconds?: number | undefined;
|
|
1148
|
-
} | null | undefined;
|
|
1149
|
-
}, {
|
|
1150
|
-
id: string;
|
|
1151
|
-
type: "upload.content_item_collection_upload_finished";
|
|
1152
|
-
metadata: {
|
|
1153
|
-
schemaVersion: string;
|
|
1154
|
-
producedBy: string;
|
|
1155
|
-
originatedFrom: string;
|
|
1156
|
-
correlationId: string;
|
|
1157
|
-
};
|
|
1158
|
-
timestamp: string;
|
|
1159
|
-
payload: {
|
|
1160
|
-
contentItemCollectionId: string;
|
|
1161
|
-
result: "SUCCESS" | "FAILURE";
|
|
1162
|
-
};
|
|
1163
|
-
deduplicationId?: string | null | undefined;
|
|
1164
|
-
deduplicationOptions?: {
|
|
1165
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
1166
|
-
lockTimeoutSeconds?: number | undefined;
|
|
1167
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
1168
|
-
refreshIntervalSeconds?: number | undefined;
|
|
1169
|
-
} | null | undefined;
|
|
1170
|
-
}>;
|
|
1171
|
-
publisherSchema: z.ZodObject<{
|
|
1172
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1173
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
1174
|
-
type: z.ZodLiteral<"upload.content_item_collection_upload_finished">;
|
|
1175
|
-
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1176
|
-
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
1177
|
-
payload: z.ZodObject<{
|
|
1178
|
-
contentItemCollectionId: z.ZodString;
|
|
1179
|
-
result: z.ZodEnum<["SUCCESS", "FAILURE"]>;
|
|
1180
|
-
}, "strip", z.ZodTypeAny, {
|
|
1181
|
-
contentItemCollectionId: string;
|
|
1182
|
-
result: "SUCCESS" | "FAILURE";
|
|
1183
|
-
}, {
|
|
1184
|
-
contentItemCollectionId: string;
|
|
1185
|
-
result: "SUCCESS" | "FAILURE";
|
|
1186
|
-
}>;
|
|
284
|
+
}, z.core.$strip>;
|
|
1187
285
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
1188
286
|
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
1189
287
|
producedBy: z.ZodOptional<z.ZodString>;
|
|
1190
288
|
originatedFrom: z.ZodOptional<z.ZodString>;
|
|
1191
289
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1192
|
-
}
|
|
1193
|
-
},
|
|
1194
|
-
type: "upload.content_item_collection_upload_finished";
|
|
1195
|
-
payload: {
|
|
1196
|
-
contentItemCollectionId: string;
|
|
1197
|
-
result: "SUCCESS" | "FAILURE";
|
|
1198
|
-
};
|
|
1199
|
-
id?: string | undefined;
|
|
1200
|
-
metadata?: {
|
|
1201
|
-
schemaVersion?: string | undefined;
|
|
1202
|
-
producedBy?: string | undefined;
|
|
1203
|
-
originatedFrom?: string | undefined;
|
|
1204
|
-
correlationId?: string | undefined;
|
|
1205
|
-
} | undefined;
|
|
1206
|
-
timestamp?: string | undefined;
|
|
1207
|
-
deduplicationId?: string | null | undefined;
|
|
1208
|
-
deduplicationOptions?: {
|
|
1209
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
1210
|
-
lockTimeoutSeconds?: number | undefined;
|
|
1211
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
1212
|
-
refreshIntervalSeconds?: number | undefined;
|
|
1213
|
-
} | null | undefined;
|
|
1214
|
-
}, {
|
|
1215
|
-
type: "upload.content_item_collection_upload_finished";
|
|
1216
|
-
payload: {
|
|
1217
|
-
contentItemCollectionId: string;
|
|
1218
|
-
result: "SUCCESS" | "FAILURE";
|
|
1219
|
-
};
|
|
1220
|
-
id?: string | undefined;
|
|
1221
|
-
metadata?: {
|
|
1222
|
-
schemaVersion?: string | undefined;
|
|
1223
|
-
producedBy?: string | undefined;
|
|
1224
|
-
originatedFrom?: string | undefined;
|
|
1225
|
-
correlationId?: string | undefined;
|
|
1226
|
-
} | undefined;
|
|
1227
|
-
timestamp?: string | undefined;
|
|
1228
|
-
deduplicationId?: string | null | undefined;
|
|
1229
|
-
deduplicationOptions?: {
|
|
1230
|
-
deduplicationWindowSeconds?: number | undefined;
|
|
1231
|
-
lockTimeoutSeconds?: number | undefined;
|
|
1232
|
-
acquireTimeoutSeconds?: number | undefined;
|
|
1233
|
-
refreshIntervalSeconds?: number | undefined;
|
|
1234
|
-
} | null | undefined;
|
|
1235
|
-
}>;
|
|
290
|
+
}>>;
|
|
291
|
+
}, z.core.$strip>;
|
|
1236
292
|
};
|
|
1237
293
|
};
|
|
1238
294
|
export type UploadContentFileUploadedEvent = PublisherMessageSchema<(typeof UploadEvents)['upload.content_file_uploaded']>;
|
|
@@ -1240,6 +296,8 @@ export type UploadContentFileUploadedConsumerEvent = ConsumerMessageSchema<(type
|
|
|
1240
296
|
export type UploadContentFileUploadedEventPayload = z.infer<typeof UPLOAD_CONTENT_FILE_UPLOADED_EVENT_SCHEMA>;
|
|
1241
297
|
export type UploadContentParsedEvent = PublisherMessageSchema<(typeof UploadEvents)['upload.content_file_parsed']>;
|
|
1242
298
|
export type UploadContentParsedConsumerEvent = ConsumerMessageSchema<(typeof UploadEvents)['upload.content_file_parsed']>;
|
|
299
|
+
export type UploadContentParseFailedEvent = PublisherMessageSchema<(typeof UploadEvents)['upload.content_file_parse_failed']>;
|
|
300
|
+
export type UploadContentParseFailedConsumerEvent = ConsumerMessageSchema<(typeof UploadEvents)['upload.content_file_parse_failed']>;
|
|
1243
301
|
export type UploadContentItemCollectionUploadedEvent = PublisherMessageSchema<(typeof UploadEvents)['upload.content_item_collection_uploaded']>;
|
|
1244
302
|
export type UploadedContentItemCollectionConsumerEvent = ConsumerMessageSchema<(typeof UploadEvents)['upload.content_item_collection_uploaded']>;
|
|
1245
303
|
export type UploadContentItemCollectionUploadedEventPayload = z.infer<typeof UPLOAD_CONTENT_ITEM_COLLECTION_UPLOADED_EVENT_SCHEMA>;
|
|
@@ -1249,7 +307,5 @@ export type UploadContentItemCollectionParseErrorEventPayload = z.infer<typeof U
|
|
|
1249
307
|
export type UploadContentItemCollectionParsedEvent = PublisherMessageSchema<(typeof UploadEvents)['upload.content_item_collection_parsed']>;
|
|
1250
308
|
export type UploadContentItemCollectionParsedConsumerEvent = ConsumerMessageSchema<(typeof UploadEvents)['upload.content_item_collection_parsed']>;
|
|
1251
309
|
export type UploadContentItemCollectionParsedEventPayload = z.infer<typeof UPLOAD_CONTENT_ITEM_COLLECTION_PARSED_EVENT_SCHEMA>;
|
|
1252
|
-
export type UploadContentItemCollectionUploadFinishedEvent = PublisherMessageSchema<(typeof UploadEvents)['upload.content_item_collection_upload_finished']>;
|
|
1253
|
-
export type UploadContentItemCollectionUploadFinishedConsumerEvent = ConsumerMessageSchema<(typeof UploadEvents)['upload.content_item_collection_upload_finished']>;
|
|
1254
310
|
export type UploadContentItemCollectionUploadFinishedEventPayload = z.infer<typeof UPLOAD_CONTENT_ITEM_COLLECTION_UPLOAD_FINISHED_EVENT_SCHEMA>;
|
|
1255
311
|
//# sourceMappingURL=upload.d.ts.map
|