@temboplus/afloat 0.1.76-beta.0 → 0.1.77-beta.10

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.
Files changed (44) hide show
  1. package/dist/index.cjs.js +1 -1
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +1 -1
  4. package/dist/index.esm.js +1 -1
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/lib/error/error.permission.d.ts +1 -1
  7. package/dist/modules/auth/auth.contract.d.ts +6 -6
  8. package/dist/modules/auth/auth.manager.d.ts +1 -1
  9. package/dist/modules/auth/company-membership.model.d.ts +171 -0
  10. package/dist/modules/auth/index.d.ts +1 -1
  11. package/dist/modules/auth/user.model.d.ts +330 -33
  12. package/dist/modules/contact/contact-info.model.d.ts +183 -533
  13. package/dist/modules/contact/contact.api-contract.d.ts +16 -16
  14. package/dist/modules/contact/contact.dtos.d.ts +4 -4
  15. package/dist/modules/contact/contact.model.d.ts +309 -32
  16. package/dist/modules/login/index.d.ts +2 -0
  17. package/dist/modules/login/login.api-contract.d.ts +34 -5
  18. package/dist/modules/login/login.dtos.d.ts +85 -0
  19. package/dist/modules/login/login.model.d.ts +168 -1
  20. package/dist/modules/{auth → login}/permission.type.d.ts +8 -8
  21. package/dist/modules/payout/payout.api-contract.d.ts +46 -46
  22. package/dist/modules/payout/payout.dtos.d.ts +30 -24
  23. package/dist/modules/payout/payout.model.d.ts +242 -2
  24. package/dist/modules/payout/payout.query.d.ts +7 -0
  25. package/dist/modules/profile/profile.model.d.ts +65 -30
  26. package/dist/modules/team-member/index.d.ts +4 -0
  27. package/dist/modules/team-member/role.model.d.ts +61 -0
  28. package/dist/modules/{user/user.contract.d.ts → team-member/team-member.contract.d.ts} +238 -127
  29. package/dist/modules/team-member/team-member.dtos.d.ts +261 -0
  30. package/dist/modules/team-member/team-member.model.d.ts +237 -0
  31. package/dist/modules/team-member/team-member.repository.d.ts +179 -0
  32. package/dist/modules/wallet/narration.model.d.ts +34 -38
  33. package/dist/modules/wallet/statement-entry.model.d.ts +172 -73
  34. package/dist/modules/wallet/wallet.contract.d.ts +4 -4
  35. package/dist/modules/wallet/wallet.dtos.d.ts +8 -8
  36. package/dist/modules/wallet/wallet.model.d.ts +56 -19
  37. package/dist/modules/wallet/wallet.query.d.ts +95 -0
  38. package/dist/modules/wallet/wallet.repository.d.ts +45 -13
  39. package/package.json +2 -2
  40. package/dist/modules/user/index.d.ts +0 -4
  41. package/dist/modules/user/role.model.d.ts +0 -13
  42. package/dist/modules/user/user.dtos.d.ts +0 -145
  43. package/dist/modules/user/user.model.d.ts +0 -108
  44. package/dist/modules/user/user.repository.d.ts +0 -179
@@ -0,0 +1,61 @@
1
+ import z from "zod";
2
+ import { RoleDTO } from "./team-member.dtos.js";
3
+ /**
4
+ * Zod schema for Role JSON serialization
5
+ */
6
+ export declare const RoleJSONSchema: z.ZodObject<{
7
+ id: z.ZodString;
8
+ name: z.ZodString;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ access: z.ZodArray<z.ZodString, "many">;
11
+ createdAt: z.ZodString;
12
+ updatedAt: z.ZodString;
13
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ name: string;
16
+ id: string;
17
+ version: string;
18
+ createdAt: string;
19
+ updatedAt: string;
20
+ access: string[];
21
+ description?: string | undefined;
22
+ }, {
23
+ name: string;
24
+ id: string;
25
+ createdAt: string;
26
+ updatedAt: string;
27
+ access: string[];
28
+ version?: string | undefined;
29
+ description?: string | undefined;
30
+ }>;
31
+ /**
32
+ * Infer the RoleJSON type from the schema
33
+ */
34
+ export type RoleJSON = z.infer<typeof RoleJSONSchema>;
35
+ export declare class Role {
36
+ readonly id: string;
37
+ readonly name: string;
38
+ readonly description?: string;
39
+ readonly permissions: ReadonlySet<string>;
40
+ readonly createdAt: Date;
41
+ readonly updatedAt: Date;
42
+ constructor(data: RoleDTO);
43
+ hasPermission(permission: string): boolean;
44
+ static from(data: RoleDTO): Role | undefined;
45
+ /**
46
+ * Serializes the Role instance to a JSON-compatible object
47
+ */
48
+ toJSON(): RoleJSON;
49
+ /**
50
+ * Serializes the Role instance to a JSON string
51
+ */
52
+ toJSONString(): string;
53
+ /**
54
+ * Creates a Role instance from a JSON-compatible object or string
55
+ */
56
+ static fromJSON(json: RoleJSON | string): Role | undefined;
57
+ /**
58
+ * Type guard using Zod schema validation
59
+ */
60
+ static isRoleJSON(obj: unknown): obj is RoleJSON;
61
+ }