@temboplus/tembo-dashboard 0.7.0 → 0.8.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/status.d.ts +2 -0
- package/dist/lib/status.d.ts.map +1 -1
- package/dist/modules/collection/collection.model.d.ts.map +1 -1
- package/dist/modules/collection/collection.types.d.ts +5 -4
- package/dist/modules/collection/collection.types.d.ts.map +1 -1
- package/dist/modules/team/index.d.ts +6 -0
- package/dist/modules/team/index.d.ts.map +1 -0
- package/dist/modules/team/team-member.model.d.ts +78 -0
- package/dist/modules/team/team-member.model.d.ts.map +1 -0
- package/dist/modules/team/team.api-contract.d.ts +261 -0
- package/dist/modules/team/team.api-contract.d.ts.map +1 -0
- package/dist/modules/team/team.query.d.ts +111 -0
- package/dist/modules/team/team.query.d.ts.map +1 -0
- package/dist/modules/team/team.repository.d.ts +73 -0
- package/dist/modules/team/team.repository.d.ts.map +1 -0
- package/dist/modules/team/team.types.d.ts +75 -0
- package/dist/modules/team/team.types.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { USER_ROLE } from "../auth/auth.dtos.js";
|
|
3
|
+
/**
|
|
4
|
+
* Max length the API accepts for a team member's name, identity and password.
|
|
5
|
+
*/
|
|
6
|
+
export declare const TEAM_MEMBER_FIELD_MAX_LENGTH = 255;
|
|
7
|
+
export declare const TeamDTOSchemas: {
|
|
8
|
+
teamMember: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
identity: z.ZodString;
|
|
12
|
+
vendorId: z.ZodString;
|
|
13
|
+
role: z.ZodEnum<typeof USER_ROLE>;
|
|
14
|
+
createdAt: z.ZodString;
|
|
15
|
+
updatedAt: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
teamMemberRole: z.ZodEnum<typeof USER_ROLE>;
|
|
18
|
+
teamMemberSortField: z.ZodEnum<{
|
|
19
|
+
createdAt: "createdAt";
|
|
20
|
+
role: "role";
|
|
21
|
+
identity: "identity";
|
|
22
|
+
name: "name";
|
|
23
|
+
updatedAt: "updatedAt";
|
|
24
|
+
}>;
|
|
25
|
+
createTeamMemberRequest: z.ZodObject<{
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
identity: z.ZodEmail;
|
|
28
|
+
password: z.ZodString;
|
|
29
|
+
role: z.ZodOptional<z.ZodEnum<typeof USER_ROLE>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
updateTeamMemberRequest: z.ZodObject<{
|
|
32
|
+
name: z.ZodOptional<z.ZodString>;
|
|
33
|
+
role: z.ZodOptional<z.ZodEnum<typeof USER_ROLE>>;
|
|
34
|
+
password: z.ZodOptional<z.ZodString>;
|
|
35
|
+
sendEmail: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
resetTeamMemberPasswordResponse: z.ZodObject<{
|
|
38
|
+
id: z.ZodString;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
teamMemberListQuery: z.ZodObject<{
|
|
41
|
+
id: z.ZodOptional<z.ZodString>;
|
|
42
|
+
name: z.ZodOptional<z.ZodString>;
|
|
43
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
44
|
+
role: z.ZodOptional<z.ZodEnum<typeof USER_ROLE>>;
|
|
45
|
+
"name:like": z.ZodOptional<z.ZodString>;
|
|
46
|
+
"identity:like": z.ZodOptional<z.ZodString>;
|
|
47
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
|
48
|
+
range: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
teamMemberFilters: z.ZodObject<{
|
|
51
|
+
id: z.ZodOptional<z.ZodString>;
|
|
52
|
+
name: z.ZodOptional<z.ZodString>;
|
|
53
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
54
|
+
role: z.ZodOptional<z.ZodEnum<typeof USER_ROLE>>;
|
|
55
|
+
nameLike: z.ZodOptional<z.ZodString>;
|
|
56
|
+
identityLike: z.ZodOptional<z.ZodString>;
|
|
57
|
+
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
createdAt: "createdAt";
|
|
59
|
+
role: "role";
|
|
60
|
+
identity: "identity";
|
|
61
|
+
name: "name";
|
|
62
|
+
updatedAt: "updatedAt";
|
|
63
|
+
}>>;
|
|
64
|
+
rangeStart: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
rangeEnd: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
};
|
|
68
|
+
export type TeamMemberDTO = z.infer<typeof TeamDTOSchemas.teamMember>;
|
|
69
|
+
export type TeamMemberSortField = z.infer<typeof TeamDTOSchemas.teamMemberSortField>;
|
|
70
|
+
export type CreateTeamMemberRequestDTO = z.infer<typeof TeamDTOSchemas.createTeamMemberRequest>;
|
|
71
|
+
export type UpdateTeamMemberRequestDTO = z.infer<typeof TeamDTOSchemas.updateTeamMemberRequest>;
|
|
72
|
+
export type ResetTeamMemberPasswordResponseDTO = z.infer<typeof TeamDTOSchemas.resetTeamMemberPasswordResponse>;
|
|
73
|
+
export type TeamMemberListQueryDTO = z.infer<typeof TeamDTOSchemas.teamMemberListQuery>;
|
|
74
|
+
export type TeamMemberFilters = z.infer<typeof TeamDTOSchemas.teamMemberFilters>;
|
|
75
|
+
//# sourceMappingURL=team.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team.types.d.ts","sourceRoot":"","sources":["../../../src/modules/team/team.types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAuGhD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS1B,CAAC;AAGF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,UAAU,CAAC,CAAC;AACtE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,mBAAmB,CAAC,CAAC;AACrF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,uBAAuB,CAAC,CAAC;AAChG,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,uBAAuB,CAAC,CAAC;AAChG,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,+BAA+B,CAAC,CAAC;AAChH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,mBAAmB,CAAC,CAAC;AACxF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,iBAAiB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temboplus/tembo-dashboard",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0-rc.1",
|
|
4
4
|
"description": "A foundational library for Temboplus-Dashboard projects providing type-safe data layer abstraction with API contracts, domain models, and repositories.",
|
|
5
5
|
"author": "Okello Gerald",
|
|
6
6
|
"license": "MIT",
|