@kk-garden/shared 1.4.8 → 1.5.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/schemas/index.d.ts +4 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +4 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/models/avatar-cleanup-job.schema.d.ts +121 -0
- package/dist/schemas/models/avatar-cleanup-job.schema.d.ts.map +1 -0
- package/dist/schemas/models/avatar-cleanup-job.schema.js +94 -0
- package/dist/schemas/models/avatar-cleanup-job.schema.js.map +1 -0
- package/dist/schemas/models/avatar-work.schema.d.ts +21 -0
- package/dist/schemas/models/avatar-work.schema.d.ts.map +1 -0
- package/dist/schemas/models/avatar-work.schema.js +34 -0
- package/dist/schemas/models/avatar-work.schema.js.map +1 -0
- package/dist/schemas/models/id.schemas.d.ts +1 -0
- package/dist/schemas/models/id.schemas.d.ts.map +1 -1
- package/dist/schemas/models/id.schemas.js +1 -0
- package/dist/schemas/models/id.schemas.js.map +1 -1
- package/dist/schemas/models/profile-avatar-upload-session.schema.d.ts +116 -0
- package/dist/schemas/models/profile-avatar-upload-session.schema.d.ts.map +1 -0
- package/dist/schemas/models/profile-avatar-upload-session.schema.js +116 -0
- package/dist/schemas/models/profile-avatar-upload-session.schema.js.map +1 -0
- package/dist/schemas/models/visualisation-pending-dto.schema.d.ts +1 -0
- package/dist/schemas/models/visualisation-pending-dto.schema.d.ts.map +1 -1
- package/dist/schemas/models/visualisation-pending-dto.schema.js +2 -0
- package/dist/schemas/models/visualisation-pending-dto.schema.js.map +1 -1
- package/dist/schemas/routes/assign/assign-root.schema.d.ts +1 -2
- package/dist/schemas/routes/assign/assign-root.schema.d.ts.map +1 -1
- package/dist/schemas/routes/assign/assign-root.schema.js +5 -4
- package/dist/schemas/routes/assign/assign-root.schema.js.map +1 -1
- package/dist/types/avatar-work.types.d.ts +11 -0
- package/dist/types/avatar-work.types.d.ts.map +1 -0
- package/dist/types/avatar-work.types.js +2 -0
- package/dist/types/avatar-work.types.js.map +1 -0
- package/dist/types/id.types.d.ts +2 -1
- package/dist/types/id.types.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { GridDrawerElementIdSchema, SignatureIdSchema, VisualisationIdSchema, VisualisationPendingIdSchema, UserIdSchema, OwnershipIdSchema, ProfileAvatarUploadIdSchema, } from './models/id.schemas.js';
|
|
1
|
+
export { GridDrawerElementIdSchema, SignatureIdSchema, VisualisationIdSchema, VisualisationPendingIdSchema, UserIdSchema, OwnershipIdSchema, ProfileAvatarUploadIdSchema, AvatarCleanupJobIdSchema, } from './models/id.schemas.js';
|
|
2
2
|
export { ErrorSchema } from './errors/error.schema.js';
|
|
3
3
|
export { AnimatedSpriteDtoSchema } from './models/animated-sprite-dto.schema.js';
|
|
4
4
|
export { CoordinatesSchema, SizeMeasuresSchema, CellSchema, addId, addMongoId, } from './models/common.schemas.js';
|
|
@@ -19,6 +19,9 @@ export { UserStatusSchema } from './models/user-status.schema.js';
|
|
|
19
19
|
export { ProfileSchema, ProfileDisplayNameSchema, ProfileBioSchema, ProfileAccentHexSchema, ProfileAvatarObjectKeySchema, } from './models/profile.schema.js';
|
|
20
20
|
export { ProfileAccentProjectionSchema } from './models/profile-accent-projection.schema.js';
|
|
21
21
|
export { ProfileAvatarDeliverySchema } from './models/profile-avatar-delivery.schema.js';
|
|
22
|
+
export { AvatarWorkTimestampSchema, AvatarStagingObjectKeySchema, AvatarFinalObjectKeySchema, AvatarWorkClaimSchema, AvatarWorkFailureSchema, } from './models/avatar-work.schema.js';
|
|
23
|
+
export { ProfileAvatarUploadResultSchema, ProfileAvatarUploadSessionSchema, } from './models/profile-avatar-upload-session.schema.js';
|
|
24
|
+
export { AvatarCleanupTargetSchema, AvatarCleanupJobSchema, } from './models/avatar-cleanup-job.schema.js';
|
|
22
25
|
export { SignatureSchema } from './models/signature.schema.js';
|
|
23
26
|
export { OwnershipSchema } from './models/ownership.schema.js';
|
|
24
27
|
export { ProfileOwnerResponseSchema } from './routes/profile/profile-get.schema.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,4BAA4B,EAC5B,YAAY,EACZ,iBAAiB,EACjB,2BAA2B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,4BAA4B,EAC5B,YAAY,EACZ,iBAAiB,EACjB,2BAA2B,EAC3B,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,KAAK,EACL,UAAU,GACX,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,GACxB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,4CAA4C,CAAC;AACzF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,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B,EAClB,iBAAiB,GAClB,MAAM,uCAAuC,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// model exports
|
|
2
|
-
export { GridDrawerElementIdSchema, SignatureIdSchema, VisualisationIdSchema, VisualisationPendingIdSchema, UserIdSchema, OwnershipIdSchema, ProfileAvatarUploadIdSchema, } from './models/id.schemas.js';
|
|
2
|
+
export { GridDrawerElementIdSchema, SignatureIdSchema, VisualisationIdSchema, VisualisationPendingIdSchema, UserIdSchema, OwnershipIdSchema, ProfileAvatarUploadIdSchema, AvatarCleanupJobIdSchema, } from './models/id.schemas.js';
|
|
3
3
|
export { ErrorSchema } from './errors/error.schema.js';
|
|
4
4
|
export { AnimatedSpriteDtoSchema } from './models/animated-sprite-dto.schema.js';
|
|
5
5
|
export { CoordinatesSchema, SizeMeasuresSchema, CellSchema, addId, addMongoId, } from './models/common.schemas.js';
|
|
@@ -20,6 +20,9 @@ export { UserStatusSchema } from './models/user-status.schema.js';
|
|
|
20
20
|
export { ProfileSchema, ProfileDisplayNameSchema, ProfileBioSchema, ProfileAccentHexSchema, ProfileAvatarObjectKeySchema, } from './models/profile.schema.js';
|
|
21
21
|
export { ProfileAccentProjectionSchema } from './models/profile-accent-projection.schema.js';
|
|
22
22
|
export { ProfileAvatarDeliverySchema } from './models/profile-avatar-delivery.schema.js';
|
|
23
|
+
export { AvatarWorkTimestampSchema, AvatarStagingObjectKeySchema, AvatarFinalObjectKeySchema, AvatarWorkClaimSchema, AvatarWorkFailureSchema, } from './models/avatar-work.schema.js';
|
|
24
|
+
export { ProfileAvatarUploadResultSchema, ProfileAvatarUploadSessionSchema, } from './models/profile-avatar-upload-session.schema.js';
|
|
25
|
+
export { AvatarCleanupTargetSchema, AvatarCleanupJobSchema, } from './models/avatar-cleanup-job.schema.js';
|
|
23
26
|
export { SignatureSchema } from './models/signature.schema.js';
|
|
24
27
|
export { OwnershipSchema } from './models/ownership.schema.js';
|
|
25
28
|
export { ProfileOwnerResponseSchema } from './routes/profile/profile-get.schema.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,4BAA4B,EAC5B,YAAY,EACZ,iBAAiB,EACjB,2BAA2B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,4BAA4B,EAC5B,YAAY,EACZ,iBAAiB,EACjB,2BAA2B,EAC3B,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,KAAK,EACL,UAAU,GACX,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,GACxB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,4CAA4C,CAAC;AACzF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE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;AACvB,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AAEnG,OAAO,EAAE,iCAAiC,EAAE,MAAM,kDAAkD,CAAC;AAGrG,gBAAgB;AAChB,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,2CAA2C,CAAC;AAMnD,OAAO,EACL,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAM/C,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,yCAAyC,CAAC;AAMjD,OAAO,EACL,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AvatarCleanupTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
kind: z.ZodLiteral<"staging">;
|
|
4
|
+
objectKey: z.ZodString;
|
|
5
|
+
uploadId: z.ZodString;
|
|
6
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7
|
+
kind: z.ZodLiteral<"candidate">;
|
|
8
|
+
objectKey: z.ZodString;
|
|
9
|
+
uploadId: z.ZodString;
|
|
10
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11
|
+
kind: z.ZodLiteral<"displaced-avatar">;
|
|
12
|
+
objectKey: z.ZodString;
|
|
13
|
+
}, z.core.$strict>], "kind">;
|
|
14
|
+
export declare const AvatarCleanupJobSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
15
|
+
state: z.ZodLiteral<"pending">;
|
|
16
|
+
attempts: z.ZodNumber;
|
|
17
|
+
nextAttemptAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
18
|
+
lastFailure: z.ZodOptional<z.ZodObject<{
|
|
19
|
+
code: z.ZodEnum<{
|
|
20
|
+
"storage-unavailable": "storage-unavailable";
|
|
21
|
+
"processing-unavailable": "processing-unavailable";
|
|
22
|
+
"source-changed": "source-changed";
|
|
23
|
+
"lease-expired": "lease-expired";
|
|
24
|
+
"database-unavailable": "database-unavailable";
|
|
25
|
+
"object-still-referenced": "object-still-referenced";
|
|
26
|
+
}>;
|
|
27
|
+
occurredAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
28
|
+
}, z.core.$strict>>;
|
|
29
|
+
_id: z.ZodString;
|
|
30
|
+
ownerId: z.ZodString;
|
|
31
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32
|
+
kind: z.ZodLiteral<"staging">;
|
|
33
|
+
objectKey: z.ZodString;
|
|
34
|
+
uploadId: z.ZodString;
|
|
35
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
36
|
+
kind: z.ZodLiteral<"candidate">;
|
|
37
|
+
objectKey: z.ZodString;
|
|
38
|
+
uploadId: z.ZodString;
|
|
39
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40
|
+
kind: z.ZodLiteral<"displaced-avatar">;
|
|
41
|
+
objectKey: z.ZodString;
|
|
42
|
+
}, z.core.$strict>], "kind">;
|
|
43
|
+
createdAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
44
|
+
updatedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
45
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
46
|
+
state: z.ZodLiteral<"processing">;
|
|
47
|
+
attempts: z.ZodNumber;
|
|
48
|
+
claim: z.ZodObject<{
|
|
49
|
+
token: z.ZodString;
|
|
50
|
+
claimedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
51
|
+
leaseExpiresAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
52
|
+
}, z.core.$strict>;
|
|
53
|
+
_id: z.ZodString;
|
|
54
|
+
ownerId: z.ZodString;
|
|
55
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
56
|
+
kind: z.ZodLiteral<"staging">;
|
|
57
|
+
objectKey: z.ZodString;
|
|
58
|
+
uploadId: z.ZodString;
|
|
59
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
60
|
+
kind: z.ZodLiteral<"candidate">;
|
|
61
|
+
objectKey: z.ZodString;
|
|
62
|
+
uploadId: z.ZodString;
|
|
63
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
64
|
+
kind: z.ZodLiteral<"displaced-avatar">;
|
|
65
|
+
objectKey: z.ZodString;
|
|
66
|
+
}, z.core.$strict>], "kind">;
|
|
67
|
+
createdAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
68
|
+
updatedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
69
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
70
|
+
state: z.ZodLiteral<"completed">;
|
|
71
|
+
attempts: z.ZodNumber;
|
|
72
|
+
completedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
73
|
+
_id: z.ZodString;
|
|
74
|
+
ownerId: z.ZodString;
|
|
75
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
76
|
+
kind: z.ZodLiteral<"staging">;
|
|
77
|
+
objectKey: z.ZodString;
|
|
78
|
+
uploadId: z.ZodString;
|
|
79
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
80
|
+
kind: z.ZodLiteral<"candidate">;
|
|
81
|
+
objectKey: z.ZodString;
|
|
82
|
+
uploadId: z.ZodString;
|
|
83
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
84
|
+
kind: z.ZodLiteral<"displaced-avatar">;
|
|
85
|
+
objectKey: z.ZodString;
|
|
86
|
+
}, z.core.$strict>], "kind">;
|
|
87
|
+
createdAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
88
|
+
updatedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
89
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
90
|
+
state: z.ZodLiteral<"failed">;
|
|
91
|
+
attempts: z.ZodNumber;
|
|
92
|
+
failedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
93
|
+
lastFailure: z.ZodObject<{
|
|
94
|
+
code: z.ZodEnum<{
|
|
95
|
+
"storage-unavailable": "storage-unavailable";
|
|
96
|
+
"processing-unavailable": "processing-unavailable";
|
|
97
|
+
"source-changed": "source-changed";
|
|
98
|
+
"lease-expired": "lease-expired";
|
|
99
|
+
"database-unavailable": "database-unavailable";
|
|
100
|
+
"object-still-referenced": "object-still-referenced";
|
|
101
|
+
}>;
|
|
102
|
+
occurredAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
103
|
+
}, z.core.$strict>;
|
|
104
|
+
_id: z.ZodString;
|
|
105
|
+
ownerId: z.ZodString;
|
|
106
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
107
|
+
kind: z.ZodLiteral<"staging">;
|
|
108
|
+
objectKey: z.ZodString;
|
|
109
|
+
uploadId: z.ZodString;
|
|
110
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
111
|
+
kind: z.ZodLiteral<"candidate">;
|
|
112
|
+
objectKey: z.ZodString;
|
|
113
|
+
uploadId: z.ZodString;
|
|
114
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
115
|
+
kind: z.ZodLiteral<"displaced-avatar">;
|
|
116
|
+
objectKey: z.ZodString;
|
|
117
|
+
}, z.core.$strict>], "kind">;
|
|
118
|
+
createdAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
119
|
+
updatedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
120
|
+
}, z.core.$strict>], "state">;
|
|
121
|
+
//# sourceMappingURL=avatar-cleanup-job.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-cleanup-job.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/avatar-cleanup-job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,yBAAyB;;;;;;;;;;;4BAqBpC,CAAC;AAUH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA6D/B,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AvatarCleanupJobIdSchema, ProfileAvatarUploadIdSchema, UserIdSchema, } from './id.schemas.js';
|
|
3
|
+
import { AvatarFinalObjectKeySchema, AvatarStagingObjectKeySchema, AvatarWorkClaimSchema, AvatarWorkFailureSchema, AvatarWorkTimestampSchema, } from './avatar-work.schema.js';
|
|
4
|
+
export const AvatarCleanupTargetSchema = z.discriminatedUnion('kind', [
|
|
5
|
+
z
|
|
6
|
+
.object({
|
|
7
|
+
kind: z.literal('staging'),
|
|
8
|
+
objectKey: AvatarStagingObjectKeySchema,
|
|
9
|
+
uploadId: ProfileAvatarUploadIdSchema.min(1),
|
|
10
|
+
})
|
|
11
|
+
.strict(),
|
|
12
|
+
z
|
|
13
|
+
.object({
|
|
14
|
+
kind: z.literal('candidate'),
|
|
15
|
+
objectKey: AvatarFinalObjectKeySchema,
|
|
16
|
+
uploadId: ProfileAvatarUploadIdSchema.min(1),
|
|
17
|
+
})
|
|
18
|
+
.strict(),
|
|
19
|
+
z
|
|
20
|
+
.object({
|
|
21
|
+
kind: z.literal('displaced-avatar'),
|
|
22
|
+
objectKey: AvatarFinalObjectKeySchema,
|
|
23
|
+
})
|
|
24
|
+
.strict(),
|
|
25
|
+
]);
|
|
26
|
+
const cleanupJobShape = {
|
|
27
|
+
_id: AvatarCleanupJobIdSchema,
|
|
28
|
+
ownerId: UserIdSchema.min(1),
|
|
29
|
+
target: AvatarCleanupTargetSchema,
|
|
30
|
+
createdAt: AvatarWorkTimestampSchema,
|
|
31
|
+
updatedAt: AvatarWorkTimestampSchema,
|
|
32
|
+
};
|
|
33
|
+
export const AvatarCleanupJobSchema = z
|
|
34
|
+
.discriminatedUnion('state', [
|
|
35
|
+
z
|
|
36
|
+
.object({
|
|
37
|
+
...cleanupJobShape,
|
|
38
|
+
state: z.literal('pending'),
|
|
39
|
+
attempts: z.number().int().nonnegative(),
|
|
40
|
+
nextAttemptAt: AvatarWorkTimestampSchema,
|
|
41
|
+
lastFailure: AvatarWorkFailureSchema.optional(),
|
|
42
|
+
})
|
|
43
|
+
.strict(),
|
|
44
|
+
z
|
|
45
|
+
.object({
|
|
46
|
+
...cleanupJobShape,
|
|
47
|
+
state: z.literal('processing'),
|
|
48
|
+
attempts: z.number().int().positive(),
|
|
49
|
+
claim: AvatarWorkClaimSchema,
|
|
50
|
+
})
|
|
51
|
+
.strict(),
|
|
52
|
+
z
|
|
53
|
+
.object({
|
|
54
|
+
...cleanupJobShape,
|
|
55
|
+
state: z.literal('completed'),
|
|
56
|
+
attempts: z.number().int().positive(),
|
|
57
|
+
completedAt: AvatarWorkTimestampSchema,
|
|
58
|
+
})
|
|
59
|
+
.strict(),
|
|
60
|
+
z
|
|
61
|
+
.object({
|
|
62
|
+
...cleanupJobShape,
|
|
63
|
+
state: z.literal('failed'),
|
|
64
|
+
attempts: z.number().int().positive(),
|
|
65
|
+
failedAt: AvatarWorkTimestampSchema,
|
|
66
|
+
lastFailure: AvatarWorkFailureSchema,
|
|
67
|
+
})
|
|
68
|
+
.strict(),
|
|
69
|
+
])
|
|
70
|
+
.superRefine((job, context) => {
|
|
71
|
+
const createdAt = new Date(job.createdAt).getTime();
|
|
72
|
+
const updatedAt = new Date(job.updatedAt).getTime();
|
|
73
|
+
if (updatedAt < createdAt) {
|
|
74
|
+
context.addIssue({
|
|
75
|
+
code: 'custom',
|
|
76
|
+
path: ['updatedAt'],
|
|
77
|
+
message: 'Cleanup cannot be updated before creation',
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
const eventAt = job.state === 'processing'
|
|
81
|
+
? new Date(job.claim.claimedAt).getTime()
|
|
82
|
+
: job.state === 'completed'
|
|
83
|
+
? new Date(job.completedAt).getTime()
|
|
84
|
+
: job.state === 'failed'
|
|
85
|
+
? new Date(job.failedAt).getTime()
|
|
86
|
+
: undefined;
|
|
87
|
+
if (eventAt !== undefined && (eventAt < createdAt || eventAt > updatedAt)) {
|
|
88
|
+
context.addIssue({
|
|
89
|
+
code: 'custom',
|
|
90
|
+
message: 'Cleanup state timestamps must be within the record lifetime',
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
//# sourceMappingURL=avatar-cleanup-job.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-cleanup-job.schema.js","sourceRoot":"","sources":["../../../src/schemas/models/avatar-cleanup-job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,YAAY,GACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,GAC1B,MAAM,yBAAyB,CAAC;AAEjC,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACpE,CAAC;SACE,MAAM,CAAC;QACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;QAC1B,SAAS,EAAE,4BAA4B;QACvC,QAAQ,EAAE,2BAA2B,CAAC,GAAG,CAAC,CAAC,CAAC;KAC7C,CAAC;SACD,MAAM,EAAE;IACX,CAAC;SACE,MAAM,CAAC;QACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;QAC5B,SAAS,EAAE,0BAA0B;QACrC,QAAQ,EAAE,2BAA2B,CAAC,GAAG,CAAC,CAAC,CAAC;K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CAAC,QAAQ,CAAC;YACf,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,6DAA6D;SACvE,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AvatarWorkTimestampSchema: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
3
|
+
export declare const AvatarStagingObjectKeySchema: z.ZodString;
|
|
4
|
+
export declare const AvatarFinalObjectKeySchema: z.ZodString;
|
|
5
|
+
export declare const AvatarWorkClaimSchema: z.ZodObject<{
|
|
6
|
+
token: z.ZodString;
|
|
7
|
+
claimedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
8
|
+
leaseExpiresAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
9
|
+
}, z.core.$strict>;
|
|
10
|
+
export declare const AvatarWorkFailureSchema: z.ZodObject<{
|
|
11
|
+
code: z.ZodEnum<{
|
|
12
|
+
"storage-unavailable": "storage-unavailable";
|
|
13
|
+
"processing-unavailable": "processing-unavailable";
|
|
14
|
+
"source-changed": "source-changed";
|
|
15
|
+
"lease-expired": "lease-expired";
|
|
16
|
+
"database-unavailable": "database-unavailable";
|
|
17
|
+
"object-still-referenced": "object-still-referenced";
|
|
18
|
+
}>;
|
|
19
|
+
occurredAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
//# sourceMappingURL=avatar-work.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-work.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/avatar-work.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB,2CAAgC,CAAC;AAEvE,eAAO,MAAM,4BAA4B,aAItC,CAAC;AAEJ,eAAO,MAAM,0BAA0B,aAIpC,CAAC;AAEJ,eAAO,MAAM,qBAAqB;;;;kBAe/B,CAAC;AAEJ,eAAO,MAAM,uBAAuB;;;;;;;;;;kBAYzB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const AvatarWorkTimestampSchema = z.iso.datetime().or(z.date());
|
|
3
|
+
export const AvatarStagingObjectKeySchema = z
|
|
4
|
+
.string()
|
|
5
|
+
.regex(/^avatars\/staging\/[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/);
|
|
6
|
+
export const AvatarFinalObjectKeySchema = z
|
|
7
|
+
.string()
|
|
8
|
+
.regex(/^avatars\/final\/[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\.webp$/);
|
|
9
|
+
export const AvatarWorkClaimSchema = z
|
|
10
|
+
.object({
|
|
11
|
+
token: z.string().min(1),
|
|
12
|
+
claimedAt: AvatarWorkTimestampSchema,
|
|
13
|
+
leaseExpiresAt: AvatarWorkTimestampSchema,
|
|
14
|
+
})
|
|
15
|
+
.strict()
|
|
16
|
+
.refine((claim) => new Date(claim.leaseExpiresAt).getTime() >
|
|
17
|
+
new Date(claim.claimedAt).getTime(), {
|
|
18
|
+
path: ['leaseExpiresAt'],
|
|
19
|
+
message: 'A work lease must expire after it was claimed',
|
|
20
|
+
});
|
|
21
|
+
export const AvatarWorkFailureSchema = z
|
|
22
|
+
.object({
|
|
23
|
+
code: z.enum([
|
|
24
|
+
'storage-unavailable',
|
|
25
|
+
'processing-unavailable',
|
|
26
|
+
'source-changed',
|
|
27
|
+
'lease-expired',
|
|
28
|
+
'database-unavailable',
|
|
29
|
+
'object-still-referenced',
|
|
30
|
+
]),
|
|
31
|
+
occurredAt: AvatarWorkTimestampSchema,
|
|
32
|
+
})
|
|
33
|
+
.strict();
|
|
34
|
+
//# sourceMappingURL=avatar-work.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-work.schema.js","sourceRoot":"","sources":["../../../src/schemas/models/avatar-work.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AAEvE,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC;KAC1C,MAAM,EAAE;KACR,KAAK,CACJ,yFAAyF,CAC1F,CAAC;AAEJ,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC;KACxC,MAAM,EAAE;KACR,KAAK,CACJ,6FAA6F,CAC9F,CAAC;AAEJ,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC;KACnC,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,SAAS,EAAE,yBAAyB;IACpC,cAAc,EAAE,yBAAyB;CAC1C,CAAC;KACD,MAAM,EAAE;KACR,MAAM,CACL,CAAC,KAAK,EAAW,EAAE,CACjB,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,OAAO,EAAE;IACxC,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,EACrC;IACE,IAAI,EAAE,CAAC,gBAAgB,CAAC;IACxB,OAAO,EAAE,+CAA+C;CACzD,CACF,CAAC;AAEJ,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;QACX,qBAAqB;QACrB,wBAAwB;QACxB,gBAAgB;QAChB,eAAe;QACf,sBAAsB;QACtB,yBAAyB;KAC1B,CAAC;IACF,UAAU,EAAE,yBAAyB;CACtC,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -4,6 +4,7 @@ export declare const SignatureIdSchema: z.ZodString;
|
|
|
4
4
|
export declare const VisualisationIdSchema: z.ZodString;
|
|
5
5
|
export declare const VisualisationPendingIdSchema: z.ZodString;
|
|
6
6
|
export declare const ProfileAvatarUploadIdSchema: z.ZodString;
|
|
7
|
+
export declare const AvatarCleanupJobIdSchema: z.ZodString;
|
|
7
8
|
export declare const UserIdSchema: z.ZodString;
|
|
8
9
|
export declare const OwnershipIdSchema: z.ZodString;
|
|
9
10
|
//# sourceMappingURL=id.schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id.schemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/id.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB,aAAa,CAAC;AAEpD,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAE5C,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAEhD,eAAO,MAAM,4BAA4B,aAAa,CAAC;AAEvD,eAAO,MAAM,2BAA2B,aAAa,CAAC;AAEtD,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,eAAO,MAAM,iBAAiB,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"id.schemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/id.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB,aAAa,CAAC;AAEpD,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAE5C,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAEhD,eAAO,MAAM,4BAA4B,aAAa,CAAC;AAEvD,eAAO,MAAM,2BAA2B,aAAa,CAAC;AAEtD,eAAO,MAAM,wBAAwB,aAAoB,CAAC;AAE1D,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,eAAO,MAAM,iBAAiB,aAAa,CAAC"}
|
|
@@ -4,6 +4,7 @@ export const SignatureIdSchema = z.string();
|
|
|
4
4
|
export const VisualisationIdSchema = z.string();
|
|
5
5
|
export const VisualisationPendingIdSchema = z.string();
|
|
6
6
|
export const ProfileAvatarUploadIdSchema = z.string();
|
|
7
|
+
export const AvatarCleanupJobIdSchema = z.string().min(1);
|
|
7
8
|
export const UserIdSchema = z.string();
|
|
8
9
|
export const OwnershipIdSchema = z.string();
|
|
9
10
|
//# sourceMappingURL=id.schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id.schemas.js","sourceRoot":"","sources":["../../../src/schemas/models/id.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAEpD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAE5C,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAEhD,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAEvD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAEtD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAEvC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"id.schemas.js","sourceRoot":"","sources":["../../../src/schemas/models/id.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAEpD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAE5C,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAEhD,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAEvD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAEtD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAE1D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAEvC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ProfileAvatarUploadResultSchema: z.ZodObject<{
|
|
3
|
+
objectKey: z.ZodString;
|
|
4
|
+
width: z.ZodNumber;
|
|
5
|
+
height: z.ZodNumber;
|
|
6
|
+
committedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
export declare const ProfileAvatarUploadSessionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9
|
+
state: z.ZodLiteral<"pending">;
|
|
10
|
+
attempts: z.ZodNumber;
|
|
11
|
+
retryAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
12
|
+
lastFailure: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
code: z.ZodEnum<{
|
|
14
|
+
"storage-unavailable": "storage-unavailable";
|
|
15
|
+
"processing-unavailable": "processing-unavailable";
|
|
16
|
+
"source-changed": "source-changed";
|
|
17
|
+
"lease-expired": "lease-expired";
|
|
18
|
+
"database-unavailable": "database-unavailable";
|
|
19
|
+
"object-still-referenced": "object-still-referenced";
|
|
20
|
+
}>;
|
|
21
|
+
occurredAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
22
|
+
}, z.core.$strict>>;
|
|
23
|
+
_id: z.ZodString;
|
|
24
|
+
ownerId: z.ZodString;
|
|
25
|
+
stagingObjectKey: z.ZodString;
|
|
26
|
+
contentType: z.ZodEnum<{
|
|
27
|
+
"image/jpeg": "image/jpeg";
|
|
28
|
+
"image/png": "image/png";
|
|
29
|
+
"image/webp": "image/webp";
|
|
30
|
+
}>;
|
|
31
|
+
byteSize: z.ZodNumber;
|
|
32
|
+
createdAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
33
|
+
updatedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
34
|
+
expiresAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
35
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
36
|
+
state: z.ZodLiteral<"processing">;
|
|
37
|
+
attempts: z.ZodNumber;
|
|
38
|
+
claim: z.ZodObject<{
|
|
39
|
+
token: z.ZodString;
|
|
40
|
+
claimedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
41
|
+
leaseExpiresAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
42
|
+
}, z.core.$strict>;
|
|
43
|
+
candidateObjectKey: z.ZodString;
|
|
44
|
+
_id: z.ZodString;
|
|
45
|
+
ownerId: z.ZodString;
|
|
46
|
+
stagingObjectKey: z.ZodString;
|
|
47
|
+
contentType: z.ZodEnum<{
|
|
48
|
+
"image/jpeg": "image/jpeg";
|
|
49
|
+
"image/png": "image/png";
|
|
50
|
+
"image/webp": "image/webp";
|
|
51
|
+
}>;
|
|
52
|
+
byteSize: z.ZodNumber;
|
|
53
|
+
createdAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
54
|
+
updatedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
55
|
+
expiresAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
56
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
57
|
+
state: z.ZodLiteral<"completed">;
|
|
58
|
+
attempts: z.ZodNumber;
|
|
59
|
+
result: z.ZodObject<{
|
|
60
|
+
objectKey: z.ZodString;
|
|
61
|
+
width: z.ZodNumber;
|
|
62
|
+
height: z.ZodNumber;
|
|
63
|
+
committedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
64
|
+
}, z.core.$strict>;
|
|
65
|
+
_id: z.ZodString;
|
|
66
|
+
ownerId: z.ZodString;
|
|
67
|
+
stagingObjectKey: z.ZodString;
|
|
68
|
+
contentType: z.ZodEnum<{
|
|
69
|
+
"image/jpeg": "image/jpeg";
|
|
70
|
+
"image/png": "image/png";
|
|
71
|
+
"image/webp": "image/webp";
|
|
72
|
+
}>;
|
|
73
|
+
byteSize: z.ZodNumber;
|
|
74
|
+
createdAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
75
|
+
updatedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
76
|
+
expiresAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
77
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
78
|
+
state: z.ZodLiteral<"rejected">;
|
|
79
|
+
attempts: z.ZodNumber;
|
|
80
|
+
reason: z.ZodEnum<{
|
|
81
|
+
"invalid-image": "invalid-image";
|
|
82
|
+
"metadata-mismatch": "metadata-mismatch";
|
|
83
|
+
"account-deleted": "account-deleted";
|
|
84
|
+
"attempts-exhausted": "attempts-exhausted";
|
|
85
|
+
}>;
|
|
86
|
+
finishedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
87
|
+
_id: z.ZodString;
|
|
88
|
+
ownerId: z.ZodString;
|
|
89
|
+
stagingObjectKey: z.ZodString;
|
|
90
|
+
contentType: z.ZodEnum<{
|
|
91
|
+
"image/jpeg": "image/jpeg";
|
|
92
|
+
"image/png": "image/png";
|
|
93
|
+
"image/webp": "image/webp";
|
|
94
|
+
}>;
|
|
95
|
+
byteSize: z.ZodNumber;
|
|
96
|
+
createdAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
97
|
+
updatedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
98
|
+
expiresAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
99
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
100
|
+
state: z.ZodLiteral<"expired">;
|
|
101
|
+
attempts: z.ZodNumber;
|
|
102
|
+
finishedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
103
|
+
_id: z.ZodString;
|
|
104
|
+
ownerId: z.ZodString;
|
|
105
|
+
stagingObjectKey: z.ZodString;
|
|
106
|
+
contentType: z.ZodEnum<{
|
|
107
|
+
"image/jpeg": "image/jpeg";
|
|
108
|
+
"image/png": "image/png";
|
|
109
|
+
"image/webp": "image/webp";
|
|
110
|
+
}>;
|
|
111
|
+
byteSize: z.ZodNumber;
|
|
112
|
+
createdAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
113
|
+
updatedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
114
|
+
expiresAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
115
|
+
}, z.core.$strict>], "state">;
|
|
116
|
+
//# sourceMappingURL=profile-avatar-upload-session.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-avatar-upload-session.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/profile-avatar-upload-session.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,+BAA+B;;;;;kBAOjC,CAAC;AAaZ,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAoGzC,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ProfileAvatarUploadIdSchema, UserIdSchema } from './id.schemas.js';
|
|
3
|
+
import { AvatarFinalObjectKeySchema, AvatarStagingObjectKeySchema, AvatarWorkClaimSchema, AvatarWorkFailureSchema, AvatarWorkTimestampSchema, } from './avatar-work.schema.js';
|
|
4
|
+
import { ProfileAvatarUploadRequestSchema } from '../routes/profile/profile-avatar-upload.schema.js';
|
|
5
|
+
export const ProfileAvatarUploadResultSchema = z
|
|
6
|
+
.object({
|
|
7
|
+
objectKey: AvatarFinalObjectKeySchema,
|
|
8
|
+
width: z.number().int().min(1).max(512),
|
|
9
|
+
height: z.number().int().min(1).max(512),
|
|
10
|
+
committedAt: AvatarWorkTimestampSchema,
|
|
11
|
+
})
|
|
12
|
+
.strict();
|
|
13
|
+
const uploadSessionShape = {
|
|
14
|
+
_id: ProfileAvatarUploadIdSchema.min(1),
|
|
15
|
+
ownerId: UserIdSchema.min(1),
|
|
16
|
+
stagingObjectKey: AvatarStagingObjectKeySchema,
|
|
17
|
+
contentType: ProfileAvatarUploadRequestSchema.shape.contentType,
|
|
18
|
+
byteSize: ProfileAvatarUploadRequestSchema.shape.byteSize,
|
|
19
|
+
createdAt: AvatarWorkTimestampSchema,
|
|
20
|
+
updatedAt: AvatarWorkTimestampSchema,
|
|
21
|
+
expiresAt: AvatarWorkTimestampSchema,
|
|
22
|
+
};
|
|
23
|
+
export const ProfileAvatarUploadSessionSchema = z
|
|
24
|
+
.discriminatedUnion('state', [
|
|
25
|
+
z
|
|
26
|
+
.object({
|
|
27
|
+
...uploadSessionShape,
|
|
28
|
+
state: z.literal('pending'),
|
|
29
|
+
attempts: z.number().int().nonnegative(),
|
|
30
|
+
retryAt: AvatarWorkTimestampSchema,
|
|
31
|
+
lastFailure: AvatarWorkFailureSchema.optional(),
|
|
32
|
+
})
|
|
33
|
+
.strict(),
|
|
34
|
+
z
|
|
35
|
+
.object({
|
|
36
|
+
...uploadSessionShape,
|
|
37
|
+
state: z.literal('processing'),
|
|
38
|
+
attempts: z.number().int().positive(),
|
|
39
|
+
claim: AvatarWorkClaimSchema,
|
|
40
|
+
candidateObjectKey: AvatarFinalObjectKeySchema,
|
|
41
|
+
})
|
|
42
|
+
.strict(),
|
|
43
|
+
z
|
|
44
|
+
.object({
|
|
45
|
+
...uploadSessionShape,
|
|
46
|
+
state: z.literal('completed'),
|
|
47
|
+
attempts: z.number().int().positive(),
|
|
48
|
+
result: ProfileAvatarUploadResultSchema,
|
|
49
|
+
})
|
|
50
|
+
.strict(),
|
|
51
|
+
z
|
|
52
|
+
.object({
|
|
53
|
+
...uploadSessionShape,
|
|
54
|
+
state: z.literal('rejected'),
|
|
55
|
+
attempts: z.number().int().nonnegative(),
|
|
56
|
+
reason: z.enum([
|
|
57
|
+
'invalid-image',
|
|
58
|
+
'metadata-mismatch',
|
|
59
|
+
'account-deleted',
|
|
60
|
+
'attempts-exhausted',
|
|
61
|
+
]),
|
|
62
|
+
finishedAt: AvatarWorkTimestampSchema,
|
|
63
|
+
})
|
|
64
|
+
.strict(),
|
|
65
|
+
z
|
|
66
|
+
.object({
|
|
67
|
+
...uploadSessionShape,
|
|
68
|
+
state: z.literal('expired'),
|
|
69
|
+
attempts: z.number().int().nonnegative(),
|
|
70
|
+
finishedAt: AvatarWorkTimestampSchema,
|
|
71
|
+
})
|
|
72
|
+
.strict(),
|
|
73
|
+
])
|
|
74
|
+
.superRefine((session, context) => {
|
|
75
|
+
const createdAt = new Date(session.createdAt).getTime();
|
|
76
|
+
const updatedAt = new Date(session.updatedAt).getTime();
|
|
77
|
+
const expiresAt = new Date(session.expiresAt).getTime();
|
|
78
|
+
if (updatedAt < createdAt || expiresAt <= createdAt) {
|
|
79
|
+
context.addIssue({
|
|
80
|
+
code: 'custom',
|
|
81
|
+
message: 'Upload timestamps are inconsistent',
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
if (session.state === 'processing' &&
|
|
85
|
+
(new Date(session.claim.claimedAt).getTime() < createdAt ||
|
|
86
|
+
new Date(session.claim.claimedAt).getTime() > updatedAt ||
|
|
87
|
+
new Date(session.claim.claimedAt).getTime() >= expiresAt)) {
|
|
88
|
+
context.addIssue({
|
|
89
|
+
code: 'custom',
|
|
90
|
+
path: ['claim'],
|
|
91
|
+
message: 'Upload claims must start before expiry within the record lifetime',
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
if (session.state === 'completed' &&
|
|
95
|
+
(new Date(session.result.committedAt).getTime() < createdAt ||
|
|
96
|
+
new Date(session.result.committedAt).getTime() > updatedAt ||
|
|
97
|
+
new Date(session.result.committedAt).getTime() >= expiresAt)) {
|
|
98
|
+
context.addIssue({
|
|
99
|
+
code: 'custom',
|
|
100
|
+
path: ['result', 'committedAt'],
|
|
101
|
+
message: 'Upload results must commit before expiry within the record lifetime',
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
if ((session.state === 'rejected' || session.state === 'expired') &&
|
|
105
|
+
(new Date(session.finishedAt).getTime() < createdAt ||
|
|
106
|
+
new Date(session.finishedAt).getTime() > updatedAt ||
|
|
107
|
+
(session.state === 'expired' &&
|
|
108
|
+
new Date(session.finishedAt).getTime() < expiresAt))) {
|
|
109
|
+
context.addIssue({
|
|
110
|
+
code: 'custom',
|
|
111
|
+
path: ['finishedAt'],
|
|
112
|
+
message: 'Upload terminal timestamps are inconsistent',
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
//# sourceMappingURL=profile-avatar-upload-session.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-avatar-upload-session.schema.js","sourceRoot":"","sources":["../../../src/schemas/models/profile-avatar-upload-session.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK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O,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,EAAE,IAAI,SAAS,CAAC,EAC9D,CAAC;QACD,OAAO,CAAC,QAAQ,CAAC;YACf,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC;YAC/B,OAAO,EACL,qEAAqE;SACxE,CAAC,CAAC;IACL,CAAC;IACD,IACE,CAAC,OAAO,CAAC,KAAK,KAAK,UAAU,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,CAAC;QAC7D,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE,GAAG,SAAS;YACjD,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE,GAAG,SAAS;YAClD,CAAC,OAAO,CAAC,KAAK,KAAK,SAAS;gBAC1B,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE,GAAG,SAAS,CAAC,CAAC,EACxD,CAAC;QACD,OAAO,CAAC,QAAQ,CAAC;YACf,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,YAAY,CAAC;YACpB,OAAO,EAAE,6CAA6C;SACvD,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visualisation-pending-dto.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/visualisation-pending-dto.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"visualisation-pending-dto.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/visualisation-pending-dto.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKH,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { UserIdSchema } from './id.schemas.js';
|
|
2
3
|
import { VisualisationDtoSchema } from './visualisation-dto.schema.js';
|
|
3
4
|
export const VisualisationPendingDtoSchema = z
|
|
4
5
|
.object({
|
|
5
6
|
pendingId: z.string(),
|
|
7
|
+
ownerId: UserIdSchema.min(1),
|
|
6
8
|
})
|
|
7
9
|
.extend(VisualisationDtoSchema.shape);
|
|
8
10
|
//# sourceMappingURL=visualisation-pending-dto.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visualisation-pending-dto.schema.js","sourceRoot":"","sources":["../../../src/schemas/models/visualisation-pending-dto.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KAC3C,MAAM,CAAC;IACN,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"visualisation-pending-dto.schema.js","sourceRoot":"","sources":["../../../src/schemas/models/visualisation-pending-dto.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KAC3C,MAAM,CAAC;IACN,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;CAC7B,CAAC;KACD,MAAM,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -5,9 +5,8 @@ export declare const AssignRootResponseSchema: z.ZodObject<{
|
|
|
5
5
|
}, z.core.$strip>;
|
|
6
6
|
export declare const AssignRootRequestSchema: z.ZodObject<{
|
|
7
7
|
visualisationId: z.ZodString;
|
|
8
|
-
userId: z.ZodString;
|
|
9
8
|
pendingId: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$strict>;
|
|
11
10
|
export type AssignRootResponse = FromZod<typeof AssignRootResponseSchema>;
|
|
12
11
|
export type AssignRootRequest = FromZod<typeof AssignRootRequestSchema>;
|
|
13
12
|
//# sourceMappingURL=assign-root.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assign-root.schema.d.ts","sourceRoot":"","sources":["../../../../src/schemas/routes/assign/assign-root.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"assign-root.schema.d.ts","sourceRoot":"","sources":["../../../../src/schemas/routes/assign/assign-root.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAM9D,eAAO,MAAM,wBAAwB;;iBAEnC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;kBAKzB,CAAC;AAEZ,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { VisualisationIdSchema, VisualisationPendingIdSchema, } from '../../models/id.schemas.js';
|
|
3
3
|
export const AssignRootResponseSchema = z.object({
|
|
4
4
|
success: z.boolean(),
|
|
5
5
|
});
|
|
6
|
-
export const AssignRootRequestSchema = z
|
|
6
|
+
export const AssignRootRequestSchema = z
|
|
7
|
+
.object({
|
|
7
8
|
visualisationId: VisualisationIdSchema,
|
|
8
|
-
userId: UserIdSchema,
|
|
9
9
|
pendingId: VisualisationPendingIdSchema.optional(),
|
|
10
|
-
})
|
|
10
|
+
})
|
|
11
|
+
.strict();
|
|
11
12
|
//# sourceMappingURL=assign-root.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assign-root.schema.js","sourceRoot":"","sources":["../../../../src/schemas/routes/assign/assign-root.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"assign-root.schema.js","sourceRoot":"","sources":["../../../../src/schemas/routes/assign/assign-root.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,4BAA4B,CAAC;AAEpC,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CACrB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,eAAe,EAAE,qBAAqB;IACtC,SAAS,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CACnD,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FromZod } from './common.types.js';
|
|
2
|
+
import type { AvatarWorkClaimSchema, AvatarWorkFailureSchema } from '../schemas/models/avatar-work.schema.js';
|
|
3
|
+
import type { ProfileAvatarUploadResultSchema, ProfileAvatarUploadSessionSchema } from '../schemas/models/profile-avatar-upload-session.schema.js';
|
|
4
|
+
import type { AvatarCleanupJobSchema, AvatarCleanupTargetSchema } from '../schemas/models/avatar-cleanup-job.schema.js';
|
|
5
|
+
export type AvatarWorkClaim = FromZod<typeof AvatarWorkClaimSchema>;
|
|
6
|
+
export type AvatarWorkFailure = FromZod<typeof AvatarWorkFailureSchema>;
|
|
7
|
+
export type ProfileAvatarUploadResult = FromZod<typeof ProfileAvatarUploadResultSchema>;
|
|
8
|
+
export type ProfileAvatarUploadSession = FromZod<typeof ProfileAvatarUploadSessionSchema>;
|
|
9
|
+
export type AvatarCleanupTarget = FromZod<typeof AvatarCleanupTargetSchema>;
|
|
10
|
+
export type AvatarCleanupJob = FromZod<typeof AvatarCleanupJobSchema>;
|
|
11
|
+
//# sourceMappingURL=avatar-work.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-work.types.d.ts","sourceRoot":"","sources":["../../src/types/avatar-work.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EACV,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EACV,+BAA+B,EAC/B,gCAAgC,EACjC,MAAM,2DAA2D,CAAC;AACnE,OAAO,KAAK,EACV,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,gDAAgD,CAAC;AAExD,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAC9C,OAAO,gCAAgC,CACxC,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-work.types.js","sourceRoot":"","sources":["../../src/types/avatar-work.types.ts"],"names":[],"mappings":""}
|
package/dist/types/id.types.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { FromZod } from './common.types.js';
|
|
2
|
-
import type { GridDrawerElementIdSchema, ProfileAvatarUploadIdSchema, SignatureIdSchema, UserIdSchema, VisualisationIdSchema, OwnershipIdSchema, VisualisationPendingIdSchema } from '../schemas/index.js';
|
|
2
|
+
import type { GridDrawerElementIdSchema, ProfileAvatarUploadIdSchema, AvatarCleanupJobIdSchema, SignatureIdSchema, UserIdSchema, VisualisationIdSchema, OwnershipIdSchema, VisualisationPendingIdSchema } from '../schemas/index.js';
|
|
3
3
|
export type GridDrawerElementId = FromZod<typeof GridDrawerElementIdSchema>;
|
|
4
4
|
export type SignatureId = FromZod<typeof SignatureIdSchema>;
|
|
5
5
|
export type VisualisationId = FromZod<typeof VisualisationIdSchema>;
|
|
6
6
|
export type VisualisationPendingId = FromZod<typeof VisualisationPendingIdSchema>;
|
|
7
7
|
export type ProfileAvatarUploadId = FromZod<typeof ProfileAvatarUploadIdSchema>;
|
|
8
|
+
export type AvatarCleanupJobId = FromZod<typeof AvatarCleanupJobIdSchema>;
|
|
8
9
|
export type UserId = FromZod<typeof UserIdSchema>;
|
|
9
10
|
export type OwnershipId = FromZod<typeof OwnershipIdSchema>;
|
|
10
11
|
//# sourceMappingURL=id.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id.types.d.ts","sourceRoot":"","sources":["../../src/types/id.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAC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OAAO,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,MAAM,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { GridDrawerElementId, SignatureId, VisualisationId, VisualisationPendingId, ProfileAvatarUploadId, UserId, OwnershipId, } from './id.types.js';
|
|
1
|
+
export type { GridDrawerElementId, SignatureId, VisualisationId, VisualisationPendingId, ProfileAvatarUploadId, AvatarCleanupJobId, UserId, OwnershipId, } from './id.types.js';
|
|
2
2
|
export type { AnimatedSpriteData, SpriteData, AnimatedSpriteSetInit, AnimatedSpriteSetObject, AnimatedSpriteDto, SpriteDataDto, } from './animated-sprite.types.js';
|
|
3
3
|
export type { Nullable, WithDensity, WithId, Coordinates, Move, Cell, SizeMeasures, Direction, FromZod, } from './common.types.js';
|
|
4
4
|
export { directions } from './common.types.js';
|
|
@@ -11,6 +11,7 @@ export type { GridConstantsDto, GardenGridConstantsDto, } from './constants.type
|
|
|
11
11
|
export { userRoles, userStatuses } from './user.types.js';
|
|
12
12
|
export type { User, UserRole, UserStatus } from './user.types.js';
|
|
13
13
|
export type { Profile } from './profile.types.js';
|
|
14
|
+
export type { AvatarWorkClaim, AvatarWorkFailure, ProfileAvatarUploadResult, ProfileAvatarUploadSession, AvatarCleanupTarget, AvatarCleanupJob, } from './avatar-work.types.js';
|
|
14
15
|
export { ownershipVerificationStatuses } from './ownership-verification.types.js';
|
|
15
16
|
export type { OwnershipVerificationStatus } from './ownership-verification.types.js';
|
|
16
17
|
export type { TransformerType, TransformerAdditionalProps, } from './transformer.types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sour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AAE,MAAM,mCAAmC,CAAC;AACrF,YAAY,EACV,eAAe,EACf,0BAA0B,GAC3B,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAChF,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,YAAY,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AAC3G,YAAY,EAAE,2BAA2B,EAAE,MAAM,2DAA2D,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,mBAAmB,EACnB,WAAW,EACX,eAAe,EACf,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EAClB,MAAM,EACN,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,kBAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,uBAAuB,EACvB,iBAAiB,EACjB,aAAa,GACd,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,QAAQ,EACR,WAAW,EACX,MAAM,EACN,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,SAAS,EACT,OAAO,GACR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,YAAY,EACV,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAChF,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,YAAY,EACV,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC1D,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClE,YAAY,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,yBAAyB,EACzB,0BAA0B,EAC1B,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAClF,YAAY,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AACrF,YAAY,EACV,eAAe,EACf,0BAA0B,GAC3B,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAChF,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,YAAY,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AAC3G,YAAY,EAAE,2BAA2B,EAAE,MAAM,2DAA2D,CAAC"}
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AA6BA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAkB/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAsB,MAAM,4BAA4B,CAAC;AAKhE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAW1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC"}
|