@sqrzro/addon-admins 4.0.0-alpha.10 → 4.0.0-alpha.12
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.
|
@@ -23,7 +23,7 @@ declare const _default: {
|
|
|
23
23
|
deletedAt: Date | null;
|
|
24
24
|
}>>);
|
|
25
25
|
delete: ((id: `adm_${string}`) => Promise<void>) & ((id: string) => Promise<void>);
|
|
26
|
-
ensureByID: (id: `adm_${string}
|
|
26
|
+
ensureByID: (id: `adm_${string}`, fnConfig?: import("@sqrzro/server/database").SelectFunctionConfig<never, never> | undefined) => Promise<{
|
|
27
27
|
id: `adm_${string}`;
|
|
28
28
|
name: string;
|
|
29
29
|
email: string;
|
|
@@ -37,7 +37,14 @@ declare const _default: {
|
|
|
37
37
|
createdAt: Date;
|
|
38
38
|
deletedAt: Date | null;
|
|
39
39
|
}>;
|
|
40
|
-
ensureFromParams: (params?: Promise<Record<string, string>> | Record<string, string> | null) => Promise<{
|
|
40
|
+
ensureFromParams: (params?: Promise<Record<string, string>> | Record<string, string> | null, fnConfig?: import("@sqrzro/server/database").SelectFunctionConfig<never, never> | undefined) => Promise<{
|
|
41
|
+
id: `adm_${string}`;
|
|
42
|
+
name: string;
|
|
43
|
+
email: string;
|
|
44
|
+
createdAt: Date;
|
|
45
|
+
deletedAt: Date | null;
|
|
46
|
+
}>;
|
|
47
|
+
ensureFromSearchParams: (searchParams?: Promise<Record<string, string>> | Record<string, string> | null, fnConfig?: import("@sqrzro/server/database").SelectFunctionConfig<never, never> | undefined, key?: string) => Promise<{
|
|
41
48
|
id: `adm_${string}`;
|
|
42
49
|
name: string;
|
|
43
50
|
email: string;
|
|
@@ -46,6 +53,7 @@ declare const _default: {
|
|
|
46
53
|
}>;
|
|
47
54
|
ensureID: (id: string | null | undefined) => `adm_${string}`;
|
|
48
55
|
ensureIDFromParams: (params?: Promise<Record<string, string>> | Record<string, string> | null) => Promise<`adm_${string}`>;
|
|
56
|
+
ensureIDFromSearchParams: (searchParams?: Promise<Record<string, string>> | Record<string, string> | null, key?: string) => Promise<`adm_${string}`>;
|
|
49
57
|
getAll: (fnConfig?: import("@sqrzro/server/database").SelectFunctionConfig<never, never> | undefined) => Promise<{
|
|
50
58
|
id: `adm_${string}`;
|
|
51
59
|
name: string;
|
|
@@ -53,7 +61,15 @@ declare const _default: {
|
|
|
53
61
|
createdAt: Date;
|
|
54
62
|
deletedAt: Date | null;
|
|
55
63
|
}[]>;
|
|
56
|
-
|
|
64
|
+
getAutocomplete: {
|
|
65
|
+
({ id, }: {
|
|
66
|
+
id?: `adm_${string}` | undefined;
|
|
67
|
+
}, fnConfig?: import("@sqrzro/server/database").SelectFunctionConfig<never, never> | undefined): Promise<null>;
|
|
68
|
+
({ search, }: {
|
|
69
|
+
search?: string;
|
|
70
|
+
}, fnConfig?: import("@sqrzro/server/database").SelectFunctionConfig<never, never> | undefined): Promise<never[]>;
|
|
71
|
+
};
|
|
72
|
+
getByID: (id: `adm_${string}`, fnConfig?: import("@sqrzro/server/database").SelectFunctionConfig<never, never> | undefined) => Promise<{
|
|
57
73
|
id: `adm_${string}`;
|
|
58
74
|
name: string;
|
|
59
75
|
email: string;
|
|
@@ -67,7 +83,15 @@ declare const _default: {
|
|
|
67
83
|
createdAt: Date;
|
|
68
84
|
deletedAt: Date | null;
|
|
69
85
|
} | null>;
|
|
70
|
-
|
|
86
|
+
getDropdown: (fnConfig?: import("@sqrzro/server/database").SelectFunctionConfig<never, never> | undefined) => Promise<never[]>;
|
|
87
|
+
getFromParams: (params?: Promise<Record<string, string>> | Record<string, string> | null, fnConfig?: import("@sqrzro/server/database").SelectFunctionConfig<never, never> | undefined) => Promise<{
|
|
88
|
+
id: `adm_${string}`;
|
|
89
|
+
name: string;
|
|
90
|
+
email: string;
|
|
91
|
+
createdAt: Date;
|
|
92
|
+
deletedAt: Date | null;
|
|
93
|
+
} | null>;
|
|
94
|
+
getFromSearchParams: (searchParams?: Promise<Record<string, string>> | Record<string, string> | null, fnConfig?: import("@sqrzro/server/database").SelectFunctionConfig<never, never> | undefined, key?: string) => Promise<{
|
|
71
95
|
id: `adm_${string}`;
|
|
72
96
|
name: string;
|
|
73
97
|
email: string;
|
|
@@ -75,6 +99,14 @@ declare const _default: {
|
|
|
75
99
|
deletedAt: Date | null;
|
|
76
100
|
} | null>;
|
|
77
101
|
getIDFromParams: (params?: Promise<Record<string, string>> | Record<string, string> | null) => Promise<`adm_${string}` | null>;
|
|
102
|
+
getIDFromSearchParams: (searchParams?: Promise<Record<string, string>> | Record<string, string> | null, key?: string) => Promise<`adm_${string}` | null>;
|
|
103
|
+
getIDRule: (idKey: string) => import("@sqrzro/server/forms").ValidationRule<import("zod").ZodTemplateLiteral<`adm_${string}`>, <T>(data: T) => Promise<T & Record<string, {
|
|
104
|
+
id: `adm_${string}`;
|
|
105
|
+
name: string;
|
|
106
|
+
email: string;
|
|
107
|
+
createdAt: Date;
|
|
108
|
+
deletedAt: Date | null;
|
|
109
|
+
}>>, undefined>;
|
|
78
110
|
getPaginated: (fnConfig?: import("@sqrzro/server/database").PaginatedFunctionConfig<never, never> | undefined) => Promise<import("@sqrzro/server/utility").Paginated<{
|
|
79
111
|
id: `adm_${string}`;
|
|
80
112
|
name: string;
|
|
@@ -105,10 +137,7 @@ declare const _default: {
|
|
|
105
137
|
deletedAt: Date | null;
|
|
106
138
|
}>>);
|
|
107
139
|
ensureFromSession: () => Promise<any>;
|
|
108
|
-
sendInvite: (user:
|
|
109
|
-
id: string;
|
|
110
|
-
email: string;
|
|
111
|
-
}) => Promise<void>;
|
|
140
|
+
sendInvite: (user: import("@sqrzro/addon-onboarding").OnboardingUser) => Promise<void>;
|
|
112
141
|
};
|
|
113
142
|
export default _default;
|
|
114
143
|
//# sourceMappingURL=AdminRepository.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdminRepository.d.ts","sourceRoot":"","sources":["../../src/repositories/AdminRepository.ts"],"names":[],"mappings":"AAUA,OAAO,EAAgB,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAS,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAI9D,eAAO,MAAM,UAAU,MAAM,CAAC;;
|
|
1
|
+
{"version":3,"file":"AdminRepository.d.ts","sourceRoot":"","sources":["../../src/repositories/AdminRepository.ts"],"names":[],"mappings":"AAUA,OAAO,EAAgB,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAS,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAI9D,eAAO,MAAM,UAAU,MAAM,CAAC;;wBAuEA,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAE40D,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA9BnzD,OAAO;;;;;;;;YAAP,OAAO;;;;;;;;;;;AA0BrE,wBAGE"}
|
|
@@ -53,9 +53,11 @@ const BaseAdminRepository = createRepository({
|
|
|
53
53
|
prefix: ADMIN_PREFIX,
|
|
54
54
|
});
|
|
55
55
|
const AdminRepository = extendRepository(BaseAdminRepository, withAuth({ role: ADMIN_ROLE }), withOnboarding({
|
|
56
|
-
baseURL: process.env.APP_URL,
|
|
57
56
|
role: ADMIN_ROLE,
|
|
58
|
-
|
|
57
|
+
site: {
|
|
58
|
+
name: process.env.APP_NAME,
|
|
59
|
+
url: process.env.APP_URL,
|
|
60
|
+
},
|
|
59
61
|
}));
|
|
60
62
|
export default {
|
|
61
63
|
...AdminRepository,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqrzro/addon-admins",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-alpha.
|
|
4
|
+
"version": "4.0.0-alpha.12",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "ISC",
|
|
@@ -19,20 +19,20 @@
|
|
|
19
19
|
"dist/**/*"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"drizzle-orm": "^0.45.
|
|
23
|
-
"zod": "^4.3
|
|
24
|
-
"@sqrzro/addon-auth": "^4.0.0-alpha.
|
|
25
|
-
"@sqrzro/
|
|
26
|
-
"@sqrzro/
|
|
27
|
-
"@sqrzro/
|
|
28
|
-
"@sqrzro/
|
|
29
|
-
"@sqrzro/
|
|
30
|
-
"@sqrzro/utility": "^4.0.0-alpha.
|
|
22
|
+
"drizzle-orm": "^0.45.2",
|
|
23
|
+
"zod": "^4.4.3",
|
|
24
|
+
"@sqrzro/addon-auth": "^4.0.0-alpha.15",
|
|
25
|
+
"@sqrzro/addons": "^4.0.0-alpha.13",
|
|
26
|
+
"@sqrzro/admin": "^4.0.0-alpha.28",
|
|
27
|
+
"@sqrzro/ui": "^4.0.0-alpha.69",
|
|
28
|
+
"@sqrzro/server": "^4.0.0-alpha.53",
|
|
29
|
+
"@sqrzro/addon-onboarding": "^4.0.0-alpha.19",
|
|
30
|
+
"@sqrzro/utility": "^4.0.0-alpha.20"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/react": "^19.2.
|
|
33
|
+
"@types/react": "^19.2.17",
|
|
34
34
|
"typescript": "^5.9.3",
|
|
35
|
-
"szx": "^4.0.0-alpha.
|
|
35
|
+
"szx": "^4.0.0-alpha.16"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"next": "^16.1.6",
|