squarecommonblhelper 3.0.0 → 4.0.0
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/README.md
CHANGED
package/dist/authentication.d.ts
CHANGED
package/dist/authentication.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fetchJSONData } from "squarecommons";
|
|
2
|
-
import { DeleteUserV0Z, GetUserDetailsV0ResponseZ, UpdatePasswordV0ResponseZ, UpdateUsernameV0ResponseZ
|
|
2
|
+
import { DeleteUserV0Z, GetUserDetailsV0ResponseZ, UpdatePasswordV0ResponseZ, UpdateUsernameV0ResponseZ } from "./types/AuthenticationResponses.js";
|
|
3
3
|
class AuthenticationCommonBL {
|
|
4
4
|
commonBLBaseURL;
|
|
5
5
|
constructor(commonBLBaseURL = "http://localhost:10110") {
|
|
@@ -77,15 +77,15 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
77
77
|
}, {
|
|
78
78
|
username: string;
|
|
79
79
|
}>;
|
|
80
|
-
apps: z.ZodArray<z.
|
|
80
|
+
apps: z.ZodArray<z.ZodString, "many">;
|
|
81
81
|
sessions: z.ZodArray<z.ZodObject<{
|
|
82
|
-
|
|
82
|
+
app_name: z.ZodString;
|
|
83
83
|
active_sessions: z.ZodNumber;
|
|
84
84
|
}, "strict", z.ZodTypeAny, {
|
|
85
|
-
|
|
85
|
+
app_name: string;
|
|
86
86
|
active_sessions: number;
|
|
87
87
|
}, {
|
|
88
|
-
|
|
88
|
+
app_name: string;
|
|
89
89
|
active_sessions: number;
|
|
90
90
|
}>, "many">;
|
|
91
91
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -93,9 +93,9 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
93
93
|
credentials: {
|
|
94
94
|
username: string;
|
|
95
95
|
};
|
|
96
|
-
apps:
|
|
96
|
+
apps: string[];
|
|
97
97
|
sessions: {
|
|
98
|
-
|
|
98
|
+
app_name: string;
|
|
99
99
|
active_sessions: number;
|
|
100
100
|
}[];
|
|
101
101
|
}, {
|
|
@@ -103,9 +103,9 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
103
103
|
credentials: {
|
|
104
104
|
username: string;
|
|
105
105
|
};
|
|
106
|
-
apps:
|
|
106
|
+
apps: string[];
|
|
107
107
|
sessions: {
|
|
108
|
-
|
|
108
|
+
app_name: string;
|
|
109
109
|
active_sessions: number;
|
|
110
110
|
}[];
|
|
111
111
|
}>;
|
|
@@ -115,9 +115,9 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
115
115
|
credentials: {
|
|
116
116
|
username: string;
|
|
117
117
|
};
|
|
118
|
-
apps:
|
|
118
|
+
apps: string[];
|
|
119
119
|
sessions: {
|
|
120
|
-
|
|
120
|
+
app_name: string;
|
|
121
121
|
active_sessions: number;
|
|
122
122
|
}[];
|
|
123
123
|
};
|
|
@@ -127,9 +127,9 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
127
127
|
credentials: {
|
|
128
128
|
username: string;
|
|
129
129
|
};
|
|
130
|
-
apps:
|
|
130
|
+
apps: string[];
|
|
131
131
|
sessions: {
|
|
132
|
-
|
|
132
|
+
app_name: string;
|
|
133
133
|
active_sessions: number;
|
|
134
134
|
}[];
|
|
135
135
|
};
|
|
@@ -142,9 +142,9 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
142
142
|
credentials: {
|
|
143
143
|
username: string;
|
|
144
144
|
};
|
|
145
|
-
apps:
|
|
145
|
+
apps: string[];
|
|
146
146
|
sessions: {
|
|
147
|
-
|
|
147
|
+
app_name: string;
|
|
148
148
|
active_sessions: number;
|
|
149
149
|
}[];
|
|
150
150
|
};
|
|
@@ -158,9 +158,9 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
158
158
|
credentials: {
|
|
159
159
|
username: string;
|
|
160
160
|
};
|
|
161
|
-
apps:
|
|
161
|
+
apps: string[];
|
|
162
162
|
sessions: {
|
|
163
|
-
|
|
163
|
+
app_name: string;
|
|
164
164
|
active_sessions: number;
|
|
165
165
|
}[];
|
|
166
166
|
};
|
|
@@ -18,9 +18,9 @@ const GetUserDetailsV0ResponseZ = APIOutputZ.extend({
|
|
|
18
18
|
credentials: z.strictObject({
|
|
19
19
|
username: z.string(),
|
|
20
20
|
}),
|
|
21
|
-
apps: z.array(z.
|
|
21
|
+
apps: z.array(z.string()),
|
|
22
22
|
sessions: z.array(z.strictObject({
|
|
23
|
-
|
|
23
|
+
app_name: z.string(),
|
|
24
24
|
active_sessions: z.number(),
|
|
25
25
|
})),
|
|
26
26
|
}),
|