@temboplus/afloat 0.2.1-beta.9 → 0.2.2
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/LICENSE +21 -0
- package/README.md +54 -207
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/api/base-repository.d.ts +2 -2
- package/dist/lib/api/base-repository.d.ts.map +1 -0
- package/dist/lib/api/index.d.ts +1 -0
- package/dist/lib/api/index.d.ts.map +1 -0
- package/dist/lib/error/error.api.d.ts +3 -2
- package/dist/lib/error/error.api.d.ts.map +1 -0
- package/dist/lib/error/error.permission.d.ts +2 -1
- package/dist/lib/error/error.permission.d.ts.map +1 -0
- package/dist/lib/error/error.utils.d.ts +1 -0
- package/dist/lib/error/error.utils.d.ts.map +1 -0
- package/dist/lib/error/index.d.ts +1 -0
- package/dist/lib/error/index.d.ts.map +1 -0
- package/dist/lib/query/index.d.ts +3 -2
- package/dist/lib/query/index.d.ts.map +1 -0
- package/dist/lib/query/pagination/pagination.d.ts +1 -0
- package/dist/lib/query/pagination/pagination.d.ts.map +1 -0
- package/dist/lib/query/pagination/pagination.schemas.d.ts +8 -61
- package/dist/lib/query/pagination/pagination.schemas.d.ts.map +1 -0
- package/dist/lib/query/query.builder.d.ts +10 -3
- package/dist/lib/query/query.builder.d.ts.map +1 -0
- package/dist/lib/query/query.types.d.ts +1 -0
- package/dist/lib/query/query.types.d.ts.map +1 -0
- package/dist/modules/auth/auth.contract.d.ts +10 -69
- package/dist/modules/auth/auth.contract.d.ts.map +1 -0
- package/dist/modules/auth/auth.dtos.d.ts +8 -67
- package/dist/modules/auth/auth.dtos.d.ts.map +1 -0
- package/dist/modules/auth/auth.repository.d.ts +1 -0
- package/dist/modules/auth/auth.repository.d.ts.map +1 -0
- package/dist/modules/auth/company-membership.model.d.ts +7 -86
- package/dist/modules/auth/company-membership.model.d.ts.map +1 -0
- package/dist/modules/auth/index.d.ts +3 -2
- package/dist/modules/auth/index.d.ts.map +1 -0
- package/dist/modules/auth/user.model.d.ts +26 -163
- package/dist/modules/auth/user.model.d.ts.map +1 -0
- package/dist/modules/beneficiary/beneficiary-info.model.d.ts +30 -67
- package/dist/modules/beneficiary/beneficiary-info.model.d.ts.map +1 -0
- package/dist/modules/beneficiary/beneficiary-input-handler.d.ts +3 -2
- package/dist/modules/beneficiary/beneficiary-input-handler.d.ts.map +1 -0
- package/dist/modules/beneficiary/beneficiary.api-contract.d.ts +16 -115
- package/dist/modules/beneficiary/beneficiary.api-contract.d.ts.map +1 -0
- package/dist/modules/beneficiary/beneficiary.dtos.d.ts +6 -34
- package/dist/modules/beneficiary/beneficiary.dtos.d.ts.map +1 -0
- package/dist/modules/beneficiary/beneficiary.model.d.ts +5 -27
- package/dist/modules/beneficiary/beneficiary.model.d.ts.map +1 -0
- package/dist/modules/beneficiary/beneficiary.repository.d.ts +2 -1
- package/dist/modules/beneficiary/beneficiary.repository.d.ts.map +1 -0
- package/dist/modules/beneficiary/index.d.ts +5 -4
- package/dist/modules/beneficiary/index.d.ts.map +1 -0
- package/dist/modules/login/index.d.ts +1 -0
- package/dist/modules/login/index.d.ts.map +1 -0
- package/dist/modules/login/login.api-contract.d.ts +3 -28
- package/dist/modules/login/login.api-contract.d.ts.map +1 -0
- package/dist/modules/login/login.dtos.d.ts +5 -56
- package/dist/modules/login/login.dtos.d.ts.map +1 -0
- package/dist/modules/login/login.model.d.ts +7 -34
- package/dist/modules/login/login.model.d.ts.map +1 -0
- package/dist/modules/login/login.repository.d.ts +2 -1
- package/dist/modules/login/login.repository.d.ts.map +1 -0
- package/dist/modules/login/permission.type.d.ts +1 -0
- package/dist/modules/login/permission.type.d.ts.map +1 -0
- package/dist/modules/payout/index.d.ts +3 -2
- package/dist/modules/payout/index.d.ts.map +1 -0
- package/dist/modules/payout/payout-channel-handler.d.ts +5 -4
- package/dist/modules/payout/payout-channel-handler.d.ts.map +1 -0
- package/dist/modules/payout/payout.api-contract.d.ts +78 -666
- package/dist/modules/payout/payout.api-contract.d.ts.map +1 -0
- package/dist/modules/payout/payout.dtos.d.ts +99 -506
- package/dist/modules/payout/payout.dtos.d.ts.map +1 -0
- package/dist/modules/payout/payout.model.d.ts +8 -85
- package/dist/modules/payout/payout.model.d.ts.map +1 -0
- package/dist/modules/payout/payout.query.d.ts +3 -2
- package/dist/modules/payout/payout.query.d.ts.map +1 -0
- package/dist/modules/payout/payout.repository.d.ts +7 -6
- package/dist/modules/payout/payout.repository.d.ts.map +1 -0
- package/dist/modules/profile/index.d.ts +1 -0
- package/dist/modules/profile/index.d.ts.map +1 -0
- package/dist/modules/profile/profile.api-contract.d.ts +2 -19
- package/dist/modules/profile/profile.api-contract.d.ts.map +1 -0
- package/dist/modules/profile/profile.dtos.d.ts +3 -38
- package/dist/modules/profile/profile.dtos.d.ts.map +1 -0
- package/dist/modules/profile/profile.model.d.ts +5 -42
- package/dist/modules/profile/profile.model.d.ts.map +1 -0
- package/dist/modules/profile/profile.repository.d.ts +1 -0
- package/dist/modules/profile/profile.repository.d.ts.map +1 -0
- package/dist/modules/team-member/index.d.ts +3 -2
- package/dist/modules/team-member/index.d.ts.map +1 -0
- package/dist/modules/team-member/role.model.d.ts +6 -21
- package/dist/modules/team-member/role.model.d.ts.map +1 -0
- package/dist/modules/team-member/team-member.contract.d.ts +74 -615
- package/dist/modules/team-member/team-member.contract.d.ts.map +1 -0
- package/dist/modules/team-member/team-member.dtos.d.ts +15 -162
- package/dist/modules/team-member/team-member.dtos.d.ts.map +1 -0
- package/dist/modules/team-member/team-member.model.d.ts +7 -66
- package/dist/modules/team-member/team-member.model.d.ts.map +1 -0
- package/dist/modules/team-member/team-member.repository.d.ts +3 -2
- package/dist/modules/team-member/team-member.repository.d.ts.map +1 -0
- package/dist/modules/wallet/index.d.ts +4 -2
- package/dist/modules/wallet/index.d.ts.map +1 -0
- package/dist/modules/wallet/narration.model.d.ts +3 -8
- package/dist/modules/wallet/narration.model.d.ts.map +1 -0
- package/dist/modules/wallet/statement-entry.model.d.ts +14 -131
- package/dist/modules/wallet/statement-entry.model.d.ts.map +1 -0
- package/dist/modules/wallet/wallet.contract.d.ts +17 -90
- package/dist/modules/wallet/wallet.contract.d.ts.map +1 -0
- package/dist/modules/wallet/wallet.dtos.d.ts +33 -138
- package/dist/modules/wallet/wallet.dtos.d.ts.map +1 -0
- package/dist/modules/wallet/wallet.model.d.ts +5 -26
- package/dist/modules/wallet/wallet.model.d.ts.map +1 -0
- package/dist/modules/wallet/wallet.query.d.ts +2 -1
- package/dist/modules/wallet/wallet.query.d.ts.map +1 -0
- package/dist/modules/wallet/wallet.repository.d.ts +49 -25
- package/dist/modules/wallet/wallet.repository.d.ts.map +1 -0
- package/dist/modules/wallet/wallet.timezone.d.ts +87 -0
- package/dist/modules/wallet/wallet.timezone.d.ts.map +1 -0
- package/dist/modules/wallet/wallet.utils.d.ts +3 -2
- package/dist/modules/wallet/wallet.utils.d.ts.map +1 -0
- package/package.json +40 -29
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { AppRouter } from "@ts-rest/core";
|
|
2
|
-
import { InitClientArgs } from "@ts-rest/core";
|
|
1
|
+
import { type AppRouter, type InitClientArgs } from "@ts-rest/core";
|
|
3
2
|
export type TokenGetter = () => string | undefined;
|
|
4
3
|
export declare const setGlobalTokenGetter: (getter: TokenGetter) => void;
|
|
5
4
|
/**
|
|
@@ -175,3 +174,4 @@ export declare class BaseRepository<TContract extends AppRouter> {
|
|
|
175
174
|
body: unknown;
|
|
176
175
|
}, successStatusCode: number): T;
|
|
177
176
|
}
|
|
177
|
+
//# sourceMappingURL=base-repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-repository.d.ts","sourceRoot":"","sources":["../../../src/lib/api/base-repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK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"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -57,6 +57,7 @@ export declare class APIError extends Error {
|
|
|
57
57
|
message: z.ZodString;
|
|
58
58
|
statusCode: z.ZodNumber;
|
|
59
59
|
error: z.ZodOptional<z.ZodString>;
|
|
60
|
-
details: z.ZodOptional<z.
|
|
61
|
-
}>;
|
|
60
|
+
details: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
62
|
}
|
|
63
|
+
//# sourceMappingURL=error.api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.api.d.ts","sourceRoot":"","sources":["../../../src/lib/error/error.api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,qBAAa,QAAS,SAAQ,KAAK;IACjC;;;OAGG;IACH,SAAgB,UAAU,EAAE,MAAM,CAAC;IAEnC;;;OAGG;IACH,SAAgB,KAAK,CAAC,EAAE,MAAM,CAAC;IAE/B;;;OAGG;IACH,SAAgB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAElD;;;;;;;OAOG;gBACS,IAAI,EAAE;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnC;IASD;;;;;;;;;;;;;;;;;OAiBG;WACW,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ;WAKrC,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ;IASjD,WAAkB,MAAM;;;;;sBAOvB;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Permission } from "@/modules/login/permission.type.js";
|
|
1
|
+
import { type Permission } from "@/modules/login/permission.type.js";
|
|
2
2
|
/**
|
|
3
3
|
* Custom error class representing an error caused by missing required permissions.
|
|
4
4
|
* Extends the built-in {@link Error} class to include the `requiredPermissions` property.
|
|
@@ -45,3 +45,4 @@ export declare class PermissionError extends Error {
|
|
|
45
45
|
*/
|
|
46
46
|
static is(error: unknown): error is PermissionError;
|
|
47
47
|
}
|
|
48
|
+
//# sourceMappingURL=error.permission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.permission.d.ts","sourceRoot":"","sources":["../../../src/lib/error/error.permission.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,oCAAoC,CAAC;AAElF;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,KAAK;IACxC;;;OAGG;IACH,SAAgB,mBAAmB,EAAE,UAAU,EAAE,CAAC;IAElD;;;;;OAKG;gBACS,IAAI,EAAE;QAAE,mBAAmB,EAAE,UAAU,EAAE,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;IAMzE;;;;;;;;;;;;;;;;;;;;;;;OAuBG;WACW,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe;CAkB3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.utils.d.ts","sourceRoot":"","sources":["../../../src/lib/error/error.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,KAAK,CAG9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/error/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
export * from "./pagination/pagination.js";
|
|
2
|
+
export * from "./pagination/pagination.schemas.js";
|
|
1
3
|
export * from "./query.builder.js";
|
|
2
4
|
export * from "./query.types.js";
|
|
3
|
-
|
|
4
|
-
export * from "./pagination/pagination.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/query/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../../src/lib/query/pagination/pagination.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,qBAAa,UAAU;aAOH,IAAI,EAAE,MAAM;aACZ,KAAK,EAAE,MAAM;aACb,KAAK,EAAE,MAAM;IAR/B;;;;OAIG;gBAEe,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM;IAO/B,4BAA4B;IAC5B,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED,6CAA6C;IAC7C,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,iDAAiD;IACjD,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,4CAA4C;IAC5C,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,qCAAqC;IACrC,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,oCAAoC;IACpC,IAAI,UAAU,IAAI,OAAO,CAExB;IAED;;;OAGG;IACH,QAAQ,IAAI,UAAU,GAAG,IAAI;IAI7B;;;OAGG;IACH,QAAQ,IAAI,UAAU,GAAG,IAAI;IAI7B,wDAAwD;IACxD,MAAM;;;;;;;;CAUP;AAED,2CAA2C;AAC3C,MAAM,WAAW,KAAK,CAAC,CAAC;IACtB,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,UAAU,EAAE,UAAU,CAAC;CACxB;AAED,4DAA4D;AAC5D,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI;IACpC,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,UAAU,EAAE,cAAc,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,CAK7G;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,IAAI,GAAE,MAAU,EAAE,KAAK,GAAE,MAAW,GAAG,KAAK,CAAC,CAAC,CAAC,CAKxF"}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/** Zod schema for validating pagination query parameters */
|
|
3
3
|
export declare const PaginationParamsSchema: z.ZodObject<{
|
|
4
|
-
page: z.ZodDefault<z.
|
|
5
|
-
limit: z.ZodDefault<z.
|
|
6
|
-
},
|
|
7
|
-
page: number;
|
|
8
|
-
limit: number;
|
|
9
|
-
}, {
|
|
10
|
-
page?: number | undefined;
|
|
11
|
-
limit?: number | undefined;
|
|
12
|
-
}>;
|
|
4
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
5
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
13
7
|
/** Zod schema for validating pagination metadata */
|
|
14
8
|
export declare const PaginationSchema: z.ZodObject<{
|
|
15
9
|
page: z.ZodNumber;
|
|
@@ -18,26 +12,12 @@ export declare const PaginationSchema: z.ZodObject<{
|
|
|
18
12
|
totalPages: z.ZodNumber;
|
|
19
13
|
hasNext: z.ZodBoolean;
|
|
20
14
|
hasPrev: z.ZodBoolean;
|
|
21
|
-
},
|
|
22
|
-
page: number;
|
|
23
|
-
limit: number;
|
|
24
|
-
total: number;
|
|
25
|
-
totalPages: number;
|
|
26
|
-
hasNext: boolean;
|
|
27
|
-
hasPrev: boolean;
|
|
28
|
-
}, {
|
|
29
|
-
page: number;
|
|
30
|
-
limit: number;
|
|
31
|
-
total: number;
|
|
32
|
-
totalPages: number;
|
|
33
|
-
hasNext: boolean;
|
|
34
|
-
hasPrev: boolean;
|
|
35
|
-
}>;
|
|
15
|
+
}, z.core.$strip>;
|
|
36
16
|
/**
|
|
37
17
|
* Creates a Zod schema for a paginated response with typed results.
|
|
38
18
|
*/
|
|
39
19
|
export declare function createPaginatedResponseSchema<T extends z.ZodTypeAny>(itemSchema: T): z.ZodObject<{
|
|
40
|
-
results: z.ZodArray<T
|
|
20
|
+
results: z.ZodArray<T>;
|
|
41
21
|
pagination: z.ZodObject<{
|
|
42
22
|
page: z.ZodNumber;
|
|
43
23
|
limit: z.ZodNumber;
|
|
@@ -45,39 +25,6 @@ export declare function createPaginatedResponseSchema<T extends z.ZodTypeAny>(it
|
|
|
45
25
|
totalPages: z.ZodNumber;
|
|
46
26
|
hasNext: z.ZodBoolean;
|
|
47
27
|
hasPrev: z.ZodBoolean;
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
total: number;
|
|
52
|
-
totalPages: number;
|
|
53
|
-
hasNext: boolean;
|
|
54
|
-
hasPrev: boolean;
|
|
55
|
-
}, {
|
|
56
|
-
page: number;
|
|
57
|
-
limit: number;
|
|
58
|
-
total: number;
|
|
59
|
-
totalPages: number;
|
|
60
|
-
hasNext: boolean;
|
|
61
|
-
hasPrev: boolean;
|
|
62
|
-
}>;
|
|
63
|
-
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
results: T["_output"][];
|
|
65
|
-
pagination: {
|
|
66
|
-
page: number;
|
|
67
|
-
limit: number;
|
|
68
|
-
total: number;
|
|
69
|
-
totalPages: number;
|
|
70
|
-
hasNext: boolean;
|
|
71
|
-
hasPrev: boolean;
|
|
72
|
-
};
|
|
73
|
-
}, {
|
|
74
|
-
results: T["_input"][];
|
|
75
|
-
pagination: {
|
|
76
|
-
page: number;
|
|
77
|
-
limit: number;
|
|
78
|
-
total: number;
|
|
79
|
-
totalPages: number;
|
|
80
|
-
hasNext: boolean;
|
|
81
|
-
hasPrev: boolean;
|
|
82
|
-
};
|
|
83
|
-
}>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
//# sourceMappingURL=pagination.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.schemas.d.ts","sourceRoot":"","sources":["../../../../src/lib/query/pagination/pagination.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,4DAA4D;AAC5D,eAAO,MAAM,sBAAsB;;;iBAGjC,CAAC;AAEH,oDAAoD;AACpD,eAAO,MAAM,gBAAgB;;;;;;;iBAO3B,CAAC;AAEH;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,UAAU,EAAE,CAAC;;;;;;;;;;kBAKlF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FilterCriteria, QueryOptions, SortCriteria, SortDirection } from "./query.types.js";
|
|
1
|
+
import { type FilterCriteria, type QueryOptions, type SortCriteria, SortDirection } from "./query.types.js";
|
|
2
2
|
export declare const QUERY_BUILDER_TYPE: unique symbol;
|
|
3
3
|
export declare class QueryBuilder {
|
|
4
4
|
readonly options: QueryOptions;
|
|
@@ -28,8 +28,14 @@ export declare class QueryBuilder {
|
|
|
28
28
|
whereLessThanOrEqual(field: string, value: any): this;
|
|
29
29
|
whereBetween(field: string, min: any, max: any): this;
|
|
30
30
|
/**
|
|
31
|
-
* Filter by date range with support for Date objects, strings, and null
|
|
32
|
-
* Internally converts to createdAt:gte and createdAt:lte filters
|
|
31
|
+
* Filter by date range with support for Date objects, strings, and null.
|
|
32
|
+
* Internally converts to createdAt:gte and createdAt:lte filters.
|
|
33
|
+
*
|
|
34
|
+
* Date objects are normalised to UTC-`Z` ISO format on the wire,
|
|
35
|
+
* regardless of subclass. Some host-app helpers (e.g. `@date-fns/tz`'s
|
|
36
|
+
* `TZDate`) override `.toISOString()` to emit `+HH:MM` offset form;
|
|
37
|
+
* routing through `new Date(d.getTime())` strips the zone identity and
|
|
38
|
+
* forces the canonical UTC representation.
|
|
33
39
|
*/
|
|
34
40
|
whereDateBetween(startDate?: string | Date | null, endDate?: string | Date | null): this;
|
|
35
41
|
addSort(criteria: SortCriteria): this;
|
|
@@ -78,3 +84,4 @@ export declare class QueryBuilder {
|
|
|
78
84
|
clone(): this;
|
|
79
85
|
static create<T extends QueryOptions>(options?: T): QueryBuilder;
|
|
80
86
|
}
|
|
87
|
+
//# sourceMappingURL=query.builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.builder.d.ts","sourceRoot":"","sources":["../../../src/lib/query/query.builder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAG1B,eAAO,MAAM,kBAAkB,eAA+B,CAAC;AAE/D,qBAAa,YAAY;IACvB,QAAQ,CAAC,OAAO,EAAE,YAAY,CAO5B;gBAEU,OAAO,GAAE,YAAiB;IActC;;OAEG;IACH,CAAC,kBAAkB,CAAC,SAAmB;IAEvC;;OAEG;IACH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AAkB,QAAQ;IAC1B,YAAY,OAAO;IACnB,qBAAqB,QAAQ;IAC7B,IAAI,SAAS;IACb,UAAU,cAAc;IACxB,OAAO,WAAW;IAClB,WAAW,cAAc;IACzB,EAAE,OAAO;CACV;AAED,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,cAAc,CAAC;IACzB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,aAAa,CAAC;CAC1B;AAED,MAAM,WAAW,YAAY;IAE3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAG3B,IAAI,CAAC,EAAE,YAAY,EAAE,CAAC;IAGtB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAGpB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAGhB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAGnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -8,15 +8,7 @@ export declare const authContract: {
|
|
|
8
8
|
type: import("zod").ZodDefault<import("zod").ZodString>;
|
|
9
9
|
identity: import("zod").ZodString;
|
|
10
10
|
password: import("zod").ZodString;
|
|
11
|
-
},
|
|
12
|
-
type: string;
|
|
13
|
-
identity: string;
|
|
14
|
-
password: string;
|
|
15
|
-
}, {
|
|
16
|
-
identity: string;
|
|
17
|
-
password: string;
|
|
18
|
-
type?: string | undefined;
|
|
19
|
-
}>;
|
|
11
|
+
}, import("zod/v4/core").$strip>;
|
|
20
12
|
path: "/login";
|
|
21
13
|
responses: {
|
|
22
14
|
201: import("zod").ZodObject<{
|
|
@@ -29,65 +21,19 @@ export declare const authContract: {
|
|
|
29
21
|
accountNo: import("zod").ZodString;
|
|
30
22
|
email: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
31
23
|
autoApprove: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
|
|
32
|
-
},
|
|
33
|
-
id: string;
|
|
34
|
-
displayName: string;
|
|
35
|
-
accountNo: string;
|
|
36
|
-
firstName?: string | null | undefined;
|
|
37
|
-
lastName?: string | null | undefined;
|
|
38
|
-
phone?: string | null | undefined;
|
|
39
|
-
email?: string | null | undefined;
|
|
40
|
-
autoApprove?: boolean | null | undefined;
|
|
41
|
-
}, {
|
|
42
|
-
id: string;
|
|
43
|
-
displayName: string;
|
|
44
|
-
accountNo: string;
|
|
45
|
-
firstName?: string | null | undefined;
|
|
46
|
-
lastName?: string | null | undefined;
|
|
47
|
-
phone?: string | null | undefined;
|
|
48
|
-
email?: string | null | undefined;
|
|
49
|
-
autoApprove?: boolean | null | undefined;
|
|
50
|
-
}>;
|
|
24
|
+
}, import("zod/v4/core").$strip>;
|
|
51
25
|
token: import("zod").ZodString;
|
|
52
|
-
access: import("zod").ZodArray<import("zod").ZodString
|
|
26
|
+
access: import("zod").ZodArray<import("zod").ZodString>;
|
|
53
27
|
resetPassword: import("zod").ZodBoolean;
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
resetPassword: boolean;
|
|
57
|
-
access: string[];
|
|
58
|
-
profile: {
|
|
59
|
-
id: string;
|
|
60
|
-
displayName: string;
|
|
61
|
-
accountNo: string;
|
|
62
|
-
firstName?: string | null | undefined;
|
|
63
|
-
lastName?: string | null | undefined;
|
|
64
|
-
phone?: string | null | undefined;
|
|
65
|
-
email?: string | null | undefined;
|
|
66
|
-
autoApprove?: boolean | null | undefined;
|
|
67
|
-
};
|
|
68
|
-
}, {
|
|
69
|
-
token: string;
|
|
70
|
-
resetPassword: boolean;
|
|
71
|
-
access: string[];
|
|
72
|
-
profile: {
|
|
73
|
-
id: string;
|
|
74
|
-
displayName: string;
|
|
75
|
-
accountNo: string;
|
|
76
|
-
firstName?: string | null | undefined;
|
|
77
|
-
lastName?: string | null | undefined;
|
|
78
|
-
phone?: string | null | undefined;
|
|
79
|
-
email?: string | null | undefined;
|
|
80
|
-
autoApprove?: boolean | null | undefined;
|
|
81
|
-
};
|
|
82
|
-
}>;
|
|
83
|
-
400: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
|
|
28
|
+
}, import("zod/v4/core").$strip>;
|
|
29
|
+
400: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
84
30
|
};
|
|
85
31
|
};
|
|
86
32
|
access: {
|
|
87
33
|
method: "GET";
|
|
88
34
|
path: "/access";
|
|
89
35
|
responses: {
|
|
90
|
-
200: import("zod").ZodArray<import("zod").ZodString
|
|
36
|
+
200: import("zod").ZodArray<import("zod").ZodString>;
|
|
91
37
|
};
|
|
92
38
|
};
|
|
93
39
|
resetPassword: {
|
|
@@ -95,17 +41,12 @@ export declare const authContract: {
|
|
|
95
41
|
body: import("zod").ZodObject<{
|
|
96
42
|
currentPassword: import("zod").ZodString;
|
|
97
43
|
newPassword: import("zod").ZodString;
|
|
98
|
-
},
|
|
99
|
-
newPassword: string;
|
|
100
|
-
currentPassword: string;
|
|
101
|
-
}, {
|
|
102
|
-
newPassword: string;
|
|
103
|
-
currentPassword: string;
|
|
104
|
-
}>;
|
|
44
|
+
}, import("zod/v4/core").$strip>;
|
|
105
45
|
path: "/password";
|
|
106
46
|
responses: {
|
|
107
|
-
200: import("zod").ZodObject<{},
|
|
108
|
-
400: import("zod").ZodObject<{},
|
|
47
|
+
200: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
48
|
+
400: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
109
49
|
};
|
|
110
50
|
};
|
|
111
51
|
};
|
|
52
|
+
//# sourceMappingURL=auth.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.contract.d.ts","sourceRoot":"","sources":["../../../src/modules/auth/auth.contract.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BvB,CAAC"}
|
|
@@ -8,15 +8,7 @@ export declare const AuthDTOSchemas: {
|
|
|
8
8
|
type: z.ZodDefault<z.ZodString>;
|
|
9
9
|
identity: z.ZodString;
|
|
10
10
|
password: z.ZodString;
|
|
11
|
-
},
|
|
12
|
-
type: string;
|
|
13
|
-
identity: string;
|
|
14
|
-
password: string;
|
|
15
|
-
}, {
|
|
16
|
-
identity: string;
|
|
17
|
-
password: string;
|
|
18
|
-
type?: string | undefined;
|
|
19
|
-
}>;
|
|
11
|
+
}, z.core.$strip>;
|
|
20
12
|
/** Schema for successful login responses */
|
|
21
13
|
logInResponseDTO: z.ZodObject<{
|
|
22
14
|
profile: z.ZodObject<{
|
|
@@ -28,72 +20,20 @@ export declare const AuthDTOSchemas: {
|
|
|
28
20
|
accountNo: z.ZodString;
|
|
29
21
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
22
|
autoApprove: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
31
|
-
},
|
|
32
|
-
id: string;
|
|
33
|
-
displayName: string;
|
|
34
|
-
accountNo: string;
|
|
35
|
-
firstName?: string | null | undefined;
|
|
36
|
-
lastName?: string | null | undefined;
|
|
37
|
-
phone?: string | null | undefined;
|
|
38
|
-
email?: string | null | undefined;
|
|
39
|
-
autoApprove?: boolean | null | undefined;
|
|
40
|
-
}, {
|
|
41
|
-
id: string;
|
|
42
|
-
displayName: string;
|
|
43
|
-
accountNo: string;
|
|
44
|
-
firstName?: string | null | undefined;
|
|
45
|
-
lastName?: string | null | undefined;
|
|
46
|
-
phone?: string | null | undefined;
|
|
47
|
-
email?: string | null | undefined;
|
|
48
|
-
autoApprove?: boolean | null | undefined;
|
|
49
|
-
}>;
|
|
23
|
+
}, z.core.$strip>;
|
|
50
24
|
token: z.ZodString;
|
|
51
|
-
access: z.ZodArray<z.ZodString
|
|
25
|
+
access: z.ZodArray<z.ZodString>;
|
|
52
26
|
resetPassword: z.ZodBoolean;
|
|
53
|
-
},
|
|
54
|
-
token: string;
|
|
55
|
-
resetPassword: boolean;
|
|
56
|
-
access: string[];
|
|
57
|
-
profile: {
|
|
58
|
-
id: string;
|
|
59
|
-
displayName: string;
|
|
60
|
-
accountNo: string;
|
|
61
|
-
firstName?: string | null | undefined;
|
|
62
|
-
lastName?: string | null | undefined;
|
|
63
|
-
phone?: string | null | undefined;
|
|
64
|
-
email?: string | null | undefined;
|
|
65
|
-
autoApprove?: boolean | null | undefined;
|
|
66
|
-
};
|
|
67
|
-
}, {
|
|
68
|
-
token: string;
|
|
69
|
-
resetPassword: boolean;
|
|
70
|
-
access: string[];
|
|
71
|
-
profile: {
|
|
72
|
-
id: string;
|
|
73
|
-
displayName: string;
|
|
74
|
-
accountNo: string;
|
|
75
|
-
firstName?: string | null | undefined;
|
|
76
|
-
lastName?: string | null | undefined;
|
|
77
|
-
phone?: string | null | undefined;
|
|
78
|
-
email?: string | null | undefined;
|
|
79
|
-
autoApprove?: boolean | null | undefined;
|
|
80
|
-
};
|
|
81
|
-
}>;
|
|
27
|
+
}, z.core.$strip>;
|
|
82
28
|
/** Schema for access list responses */
|
|
83
|
-
accessResponseDTO: z.ZodArray<z.ZodString
|
|
29
|
+
accessResponseDTO: z.ZodArray<z.ZodString>;
|
|
84
30
|
/** Schema for reset password request validation */
|
|
85
31
|
resetPasswordRequestDTO: z.ZodObject<{
|
|
86
32
|
currentPassword: z.ZodString;
|
|
87
33
|
newPassword: z.ZodString;
|
|
88
|
-
},
|
|
89
|
-
newPassword: string;
|
|
90
|
-
currentPassword: string;
|
|
91
|
-
}, {
|
|
92
|
-
newPassword: string;
|
|
93
|
-
currentPassword: string;
|
|
94
|
-
}>;
|
|
34
|
+
}, z.core.$strip>;
|
|
95
35
|
/** Schema for empty responses */
|
|
96
|
-
emptyResponseDTO: z.ZodObject<{},
|
|
36
|
+
emptyResponseDTO: z.ZodObject<{}, z.core.$strip>;
|
|
97
37
|
};
|
|
98
38
|
/**
|
|
99
39
|
* Type representing the login request payload.
|
|
@@ -115,3 +55,4 @@ export type AuthResetPasswordRequestDTO = z.infer<typeof AuthDTOSchemas.resetPas
|
|
|
115
55
|
* Type representing an empty auth response.
|
|
116
56
|
*/
|
|
117
57
|
export type AuthEmptyResponseDTO = z.infer<typeof AuthDTOSchemas.emptyResponseDTO>;
|
|
58
|
+
//# sourceMappingURL=auth.dtos.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.dtos.d.ts","sourceRoot":"","sources":["../../../src/modules/auth/auth.dtos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwCxB;;GAEG;AACH,eAAO,MAAM,cAAc;IACzB,0CAA0C;;;;;;IAE1C,4CAA4C;;;;;;;;;;;;;;;;IAE5C,uCAAuC;;IAEvC,mDAAmD;;;;;IAEnD,iCAAiC;;CAElC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,eAAe,CAAC,CAAC;AAEjF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAEnF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,iBAAiB,CAAC,CAAC;AAErF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,uBAAuB,CAAC,CAAC;AAEjG;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.repository.d.ts","sourceRoot":"","sources":["../../../src/modules/auth/auth.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAOpD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,qBAAa,cAAe,SAAQ,cAAc,CAAC,OAAO,YAAY,CAAC;IACrE;;;;;;OAMG;gBACS,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;IAIvD;;;;;;;;;;;;;;;;;;OAkBG;IACG,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IA8EtE;;;;;;;;;;;;;;;;;OAiBG;IACG,cAAc,CAAC,eAAe,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAoBpF;;;;;;;;;;;;;;;OAeG;IACG,aAAa,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;CASzC"}
|
|
@@ -15,98 +15,18 @@ export declare const CompanyMembershipJSONSchema: z.ZodObject<{
|
|
|
15
15
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
autoApprove: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
17
17
|
_version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
18
|
-
},
|
|
19
|
-
id: string;
|
|
20
|
-
displayName: string;
|
|
21
|
-
accountNo: string;
|
|
22
|
-
_version: string;
|
|
23
|
-
firstName?: string | null | undefined;
|
|
24
|
-
lastName?: string | null | undefined;
|
|
25
|
-
phone?: string | null | undefined;
|
|
26
|
-
email?: string | null | undefined;
|
|
27
|
-
autoApprove?: boolean | null | undefined;
|
|
28
|
-
}, {
|
|
29
|
-
id: string;
|
|
30
|
-
displayName: string;
|
|
31
|
-
accountNo: string;
|
|
32
|
-
firstName?: string | null | undefined;
|
|
33
|
-
lastName?: string | null | undefined;
|
|
34
|
-
phone?: string | null | undefined;
|
|
35
|
-
email?: string | null | undefined;
|
|
36
|
-
autoApprove?: boolean | null | undefined;
|
|
37
|
-
_version?: string | undefined;
|
|
38
|
-
}>;
|
|
18
|
+
}, z.z.core.$strip>;
|
|
39
19
|
role: z.ZodOptional<z.ZodObject<{
|
|
40
20
|
id: z.ZodString;
|
|
41
21
|
name: z.ZodString;
|
|
42
22
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
-
access: z.ZodArray<z.ZodString
|
|
23
|
+
access: z.ZodArray<z.ZodString>;
|
|
44
24
|
createdAt: z.ZodString;
|
|
45
25
|
updatedAt: z.ZodString;
|
|
46
26
|
_version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
47
|
-
},
|
|
48
|
-
name: string;
|
|
49
|
-
createdAt: string;
|
|
50
|
-
id: string;
|
|
51
|
-
_version: string;
|
|
52
|
-
updatedAt: string;
|
|
53
|
-
access: string[];
|
|
54
|
-
description?: string | null | undefined;
|
|
55
|
-
}, {
|
|
56
|
-
name: string;
|
|
57
|
-
createdAt: string;
|
|
58
|
-
id: string;
|
|
59
|
-
updatedAt: string;
|
|
60
|
-
access: string[];
|
|
61
|
-
_version?: string | undefined;
|
|
62
|
-
description?: string | null | undefined;
|
|
63
|
-
}>>;
|
|
27
|
+
}, z.z.core.$strip>>;
|
|
64
28
|
_version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
65
|
-
},
|
|
66
|
-
_version: string;
|
|
67
|
-
companyProfile: {
|
|
68
|
-
id: string;
|
|
69
|
-
displayName: string;
|
|
70
|
-
accountNo: string;
|
|
71
|
-
_version: string;
|
|
72
|
-
firstName?: string | null | undefined;
|
|
73
|
-
lastName?: string | null | undefined;
|
|
74
|
-
phone?: string | null | undefined;
|
|
75
|
-
email?: string | null | undefined;
|
|
76
|
-
autoApprove?: boolean | null | undefined;
|
|
77
|
-
};
|
|
78
|
-
role?: {
|
|
79
|
-
name: string;
|
|
80
|
-
createdAt: string;
|
|
81
|
-
id: string;
|
|
82
|
-
_version: string;
|
|
83
|
-
updatedAt: string;
|
|
84
|
-
access: string[];
|
|
85
|
-
description?: string | null | undefined;
|
|
86
|
-
} | undefined;
|
|
87
|
-
}, {
|
|
88
|
-
companyProfile: {
|
|
89
|
-
id: string;
|
|
90
|
-
displayName: string;
|
|
91
|
-
accountNo: string;
|
|
92
|
-
firstName?: string | null | undefined;
|
|
93
|
-
lastName?: string | null | undefined;
|
|
94
|
-
phone?: string | null | undefined;
|
|
95
|
-
email?: string | null | undefined;
|
|
96
|
-
autoApprove?: boolean | null | undefined;
|
|
97
|
-
_version?: string | undefined;
|
|
98
|
-
};
|
|
99
|
-
_version?: string | undefined;
|
|
100
|
-
role?: {
|
|
101
|
-
name: string;
|
|
102
|
-
createdAt: string;
|
|
103
|
-
id: string;
|
|
104
|
-
updatedAt: string;
|
|
105
|
-
access: string[];
|
|
106
|
-
_version?: string | undefined;
|
|
107
|
-
description?: string | null | undefined;
|
|
108
|
-
} | undefined;
|
|
109
|
-
}>;
|
|
29
|
+
}, z.z.core.$strip>;
|
|
110
30
|
export type CompanyMembershipJSON = z.infer<typeof CompanyMembershipJSONSchema>;
|
|
111
31
|
export type CompanyMembershipData = {
|
|
112
32
|
companyProfile: Profile;
|
|
@@ -153,8 +73,8 @@ export declare class CompanyMembership {
|
|
|
153
73
|
*/
|
|
154
74
|
get role(): Role | undefined;
|
|
155
75
|
/**
|
|
156
|
-
|
|
157
|
-
|
|
76
|
+
* Serializes the CompanyMembership instance to a JSON-compatible object
|
|
77
|
+
*/
|
|
158
78
|
toJSON(): CompanyMembershipJSON;
|
|
159
79
|
/**
|
|
160
80
|
* Serializes the CompanyMembership instance to a JSON string
|
|
@@ -169,3 +89,4 @@ export declare class CompanyMembership {
|
|
|
169
89
|
*/
|
|
170
90
|
static isCompanyMembershipJSON(obj: unknown): obj is CompanyMembershipJSON;
|
|
171
91
|
}
|
|
92
|
+
//# sourceMappingURL=company-membership.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"company-membership.model.d.ts","sourceRoot":"","sources":["../../../src/modules/auth/company-membership.model.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,OAAO,EAAqB,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,IAAI,EAAkB,MAAM,8BAA8B,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;mBAItC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,MAAM,MAAM,qBAAqB,GAAG;IAClC,cAAc,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAU;IAC1C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAO;IAE9B,OAAO;IAKP;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,qBAAqB,GAAG,iBAAiB,GAAG,SAAS;IAevE;;OAEG;IACH,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,IAAI,GAAG,SAAS,CAE3B;IAED;;OAEG;IACH,MAAM,IAAI,qBAAqB;IAQ/B;;OAEG;IACH,YAAY,IAAI,MAAM;IAItB;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,qBAAqB,GAAG,MAAM,GAAG,iBAAiB,GAAG,SAAS;IA+BpF;;OAEG;IACH,MAAM,CAAC,uBAAuB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,qBAAqB;CAG3E"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export * from "./auth.repository.js";
|
|
2
1
|
export * from "./auth.dtos.js";
|
|
3
|
-
export * from "./
|
|
2
|
+
export * from "./auth.repository.js";
|
|
4
3
|
export * from "./company-membership.model.js";
|
|
4
|
+
export * from "./user.model.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC"}
|