@ttt-productions/ttt-core 0.7.17 → 0.7.18
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/constants/scheduled-jobs.d.ts +0 -2
- package/dist/constants/scheduled-jobs.d.ts.map +1 -1
- package/dist/constants/scheduled-jobs.js +0 -6
- package/dist/constants/scheduled-jobs.js.map +1 -1
- package/dist/media/domain-events.d.ts +84 -64
- package/dist/media/domain-events.d.ts.map +1 -1
- package/dist/media/domain-events.js +6 -4
- package/dist/media/domain-events.js.map +1 -1
- package/dist/media/pending-media.d.ts +716 -558
- package/dist/media/pending-media.d.ts.map +1 -1
- package/dist/media/start-upload.d.ts +2 -2
- package/dist/media/ttt-media-specs.d.ts.map +1 -1
- package/dist/media/ttt-media-specs.js +13 -4
- package/dist/media/ttt-media-specs.js.map +1 -1
- package/dist/paths/collection-refs.d.ts +2 -1
- package/dist/paths/collection-refs.d.ts.map +1 -1
- package/dist/paths/collection-refs.js +2 -1
- package/dist/paths/collection-refs.js.map +1 -1
- package/dist/paths/collections.d.ts +2 -3
- package/dist/paths/collections.d.ts.map +1 -1
- package/dist/paths/collections.js +2 -3
- package/dist/paths/collections.js.map +1 -1
- package/dist/paths/path-builders.d.ts +3 -2
- package/dist/paths/path-builders.d.ts.map +1 -1
- package/dist/paths/path-builders.js +5 -2
- package/dist/paths/path-builders.js.map +1 -1
- package/dist/schemas/chat.d.ts +45 -15
- package/dist/schemas/chat.d.ts.map +1 -1
- package/dist/schemas/chat.js +4 -4
- package/dist/schemas/chat.js.map +1 -1
- package/dist/schemas/notification.d.ts +23 -2
- package/dist/schemas/notification.d.ts.map +1 -1
- package/dist/schemas/notification.js +10 -0
- package/dist/schemas/notification.js.map +1 -1
- package/dist/schemas/social.d.ts +19 -10
- package/dist/schemas/social.d.ts.map +1 -1
- package/dist/schemas/social.js +9 -6
- package/dist/schemas/social.js.map +1 -1
- package/dist/schemas/utility.d.ts +18 -0
- package/dist/schemas/utility.d.ts.map +1 -1
- package/dist/schemas/utility.js +10 -0
- package/dist/schemas/utility.js.map +1 -1
- package/dist/types/audit.d.ts +1 -1
- package/dist/types/audit.d.ts.map +1 -1
- package/dist/types/social.d.ts +17 -1
- package/dist/types/social.d.ts.map +1 -1
- package/dist/types/user.d.ts +21 -1
- package/dist/types/user.d.ts.map +1 -1
- package/dist/types/work-project.d.ts +19 -1
- package/dist/types/work-project.d.ts.map +1 -1
- package/dist/types/work-project.js +10 -1
- package/dist/types/work-project.js.map +1 -1
- package/dist/upload-variables/square-streetz-post-variables.d.ts +2 -2
- package/package.json +3 -3
|
@@ -5,7 +5,6 @@ import type { GuildStandingId } from '../permissions/index.js';
|
|
|
5
5
|
export type GuildmateStatus = 'active' | 'departed';
|
|
6
6
|
export type GuildmateUser = {
|
|
7
7
|
uid: string;
|
|
8
|
-
displayName: string;
|
|
9
8
|
guildStandings: GuildStandingId[];
|
|
10
9
|
tradeProfessions: string[];
|
|
11
10
|
stakeShareCount: number;
|
|
@@ -20,6 +19,25 @@ export type GuildmateUser = {
|
|
|
20
19
|
*/
|
|
21
20
|
holderType?: 'user' | 'foundingWork';
|
|
22
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* Public projection of a guildmate, mirrored to
|
|
24
|
+
* `allWorkProjects/{workProjectId}/publicGuildmateUsers/{uid}` for signed-in
|
|
25
|
+
* read on public Work / Hall pages. Person guildmates only — founding-work
|
|
26
|
+
* holders are excluded. Display name/avatar resolve from `publicUsers/{uid}`;
|
|
27
|
+
* the steward is identified via `publicWorkProjects.ownerUid`. Never carries
|
|
28
|
+
* `stakeShareCount` or any private invite/share field.
|
|
29
|
+
*/
|
|
30
|
+
export type PublicGuildmateUser = {
|
|
31
|
+
uid: string;
|
|
32
|
+
tradeProfessions: string[];
|
|
33
|
+
joinedAt: number;
|
|
34
|
+
status: GuildmateStatus;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Single source of truth for which GuildmateUser fields the public mirror copies,
|
|
38
|
+
* so the mirror trigger can't drift from the PublicGuildmateUser shape.
|
|
39
|
+
*/
|
|
40
|
+
export declare const GUILDMATE_USER_PUBLIC_FIELDS: readonly (keyof GuildmateUser)[];
|
|
23
41
|
export type WorkAsset = {
|
|
24
42
|
id: string;
|
|
25
43
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"work-project.d.ts","sourceRoot":"","sources":["../../src/types/work-project.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEpD,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,
|
|
1
|
+
{"version":3,"file":"work-project.d.ts","sourceRoot":"","sources":["../../src/types/work-project.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEpD,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,eAAe,EAAE,CAAC;IAClC,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,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WAAW,GAAG;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;IAC5C,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAKF,YAAY,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC"}
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Single source of truth for which GuildmateUser fields the public mirror copies,
|
|
3
|
+
* so the mirror trigger can't drift from the PublicGuildmateUser shape.
|
|
4
|
+
*/
|
|
5
|
+
export const GUILDMATE_USER_PUBLIC_FIELDS = [
|
|
6
|
+
'uid',
|
|
7
|
+
'tradeProfessions',
|
|
8
|
+
'joinedAt',
|
|
9
|
+
'status',
|
|
10
|
+
];
|
|
2
11
|
//# sourceMappingURL=work-project.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"work-project.js","sourceRoot":"","sources":["../../src/types/work-project.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"work-project.js","sourceRoot":"","sources":["../../src/types/work-project.ts"],"names":[],"mappings":"AAyCA;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAqC;IAC5E,KAAK;IACL,kBAAkB;IAClB,UAAU;IACV,QAAQ;CACT,CAAC"}
|
|
@@ -23,25 +23,25 @@ export declare const SquareStreetzPostVariablesSchema: z.ZodObject<{
|
|
|
23
23
|
onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<UploadState | null, z.ZodTypeDef, UploadState | null>], z.ZodUnknown>, z.ZodVoid>>;
|
|
24
24
|
signal: z.ZodOptional<z.ZodType<AbortSignal, z.ZodTypeDef, AbortSignal>>;
|
|
25
25
|
}, "strict", z.ZodTypeAny, {
|
|
26
|
-
userId: string;
|
|
27
26
|
mentions: {
|
|
28
27
|
type: "workRealm" | "user" | "workProject" | "commission" | "audition";
|
|
29
28
|
placeholder: string;
|
|
30
29
|
id: string;
|
|
31
30
|
text: string;
|
|
32
31
|
}[];
|
|
32
|
+
userId: string;
|
|
33
33
|
content: string;
|
|
34
34
|
onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
|
|
35
35
|
signal?: AbortSignal | undefined;
|
|
36
36
|
mediaFile?: File | null | undefined;
|
|
37
37
|
}, {
|
|
38
|
-
userId: string;
|
|
39
38
|
mentions: {
|
|
40
39
|
type: "workRealm" | "user" | "workProject" | "commission" | "audition";
|
|
41
40
|
placeholder: string;
|
|
42
41
|
id: string;
|
|
43
42
|
text: string;
|
|
44
43
|
}[];
|
|
44
|
+
userId: string;
|
|
45
45
|
content: string;
|
|
46
46
|
onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
|
|
47
47
|
signal?: AbortSignal | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttt-productions/ttt-core",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.18",
|
|
4
4
|
"description": "Core types, Firestore path constants, and shared constants for TTT Productions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
96
|
"@ttt-productions/audit-core": "0.3.0",
|
|
97
|
-
"@ttt-productions/chat-schemas": "0.4.
|
|
98
|
-
"@ttt-productions/media-schemas": "0.6.
|
|
97
|
+
"@ttt-productions/chat-schemas": "0.4.1",
|
|
98
|
+
"@ttt-productions/media-schemas": "0.6.1",
|
|
99
99
|
"@ttt-productions/report-core": "0.7.2",
|
|
100
100
|
"zod": "^3.23.8"
|
|
101
101
|
},
|