rlz-engine 1.0.13 → 1.0.14
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/client/api/api.d.ts
CHANGED
|
@@ -6,4 +6,4 @@ export interface AuthParam {
|
|
|
6
6
|
userId: string;
|
|
7
7
|
tempPassword: string;
|
|
8
8
|
}
|
|
9
|
-
export declare function apiCall<T extends ZodType>(method:
|
|
9
|
+
export declare function apiCall<T extends ZodType>(method: 'GET' | 'POST', version: string, path: string, auth: AuthParam | null, queryString: Record<string, string> | null, request: object | null, validator: T): Promise<z.infer<T>>;
|
package/dist/client/api/auth.js
CHANGED
|
@@ -7,15 +7,15 @@ export async function apiSignup(name, email, password) {
|
|
|
7
7
|
email,
|
|
8
8
|
password
|
|
9
9
|
};
|
|
10
|
-
return apiCall('
|
|
10
|
+
return apiCall('POST', 'v0', 'signup', null, null, req, API_AUTH_RESPONSE_SCHEMA_V0);
|
|
11
11
|
}
|
|
12
12
|
export async function apiSignin(name, password) {
|
|
13
13
|
const req = {
|
|
14
14
|
name,
|
|
15
15
|
password
|
|
16
16
|
};
|
|
17
|
-
return apiCall('
|
|
17
|
+
return apiCall('POST', 'v0', 'signin', null, null, req, API_AUTH_RESPONSE_SCHEMA_V0);
|
|
18
18
|
}
|
|
19
19
|
export async function apiLogout(auth) {
|
|
20
|
-
await apiCall('
|
|
20
|
+
await apiCall('POST', 'v0', 'logout', auth, null, null, z.undefined());
|
|
21
21
|
}
|