@quesmed/types-rn 2.6.305 → 2.6.306
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/package.json
CHANGED
|
@@ -21,6 +21,23 @@ export interface ILoginUserVar {
|
|
|
21
21
|
days: number;
|
|
22
22
|
}
|
|
23
23
|
export type ILoginUserData = RootData<string, 'loginUser'>;
|
|
24
|
+
export declare const LOGIN_WITH_SSO: import("@apollo/client").DocumentNode;
|
|
25
|
+
export interface ILoginWithSsoVar {
|
|
26
|
+
code: string;
|
|
27
|
+
days: number;
|
|
28
|
+
codeVerifier?: string;
|
|
29
|
+
}
|
|
30
|
+
export type ILoginWithSsoData = RootData<string, 'loginWithSso'>;
|
|
31
|
+
export type ISsoCheckResponse = {
|
|
32
|
+
enabled: false;
|
|
33
|
+
} | {
|
|
34
|
+
enabled: true;
|
|
35
|
+
required: boolean;
|
|
36
|
+
name: string;
|
|
37
|
+
slug: string;
|
|
38
|
+
};
|
|
39
|
+
export type SsoCallbackError = 'no_connection' | 'no_account' | 'invalid_state' | 'idp_error' | 'invalid_request';
|
|
40
|
+
export declare const SSO_REQUIRED_MESSAGE = "Your university requires sign-in with university SSO.";
|
|
24
41
|
export declare const REGISTER_USER: import("@apollo/client").DocumentNode;
|
|
25
42
|
export interface RegisterUserInput {
|
|
26
43
|
displayName?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RESET_PASSWORD = exports.RESET_PASSWORD_PREP = exports.REGISTER_USER = exports.LOGIN_USER = exports.REGISTER_ADMIN = exports.LOGIN_ADMIN = void 0;
|
|
3
|
+
exports.RESET_PASSWORD = exports.RESET_PASSWORD_PREP = exports.REGISTER_USER = exports.SSO_REQUIRED_MESSAGE = exports.LOGIN_WITH_SSO = exports.LOGIN_USER = exports.REGISTER_ADMIN = exports.LOGIN_ADMIN = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.LOGIN_ADMIN = (0, client_1.gql) `
|
|
6
6
|
mutation LoginAdmin($username: String!, $password: String!, $days: Int!) {
|
|
@@ -27,6 +27,13 @@ exports.LOGIN_USER = (0, client_1.gql) `
|
|
|
27
27
|
loginUser(username: $username, password: $password, days: $days)
|
|
28
28
|
}
|
|
29
29
|
`;
|
|
30
|
+
exports.LOGIN_WITH_SSO = (0, client_1.gql) `
|
|
31
|
+
mutation LoginWithSso($code: String!, $days: Int!, $codeVerifier: String) {
|
|
32
|
+
loginWithSso(code: $code, days: $days, codeVerifier: $codeVerifier)
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
// loginUser / resetPasswordPrep / resetPassword error when ssoRequired is on
|
|
36
|
+
exports.SSO_REQUIRED_MESSAGE = 'Your university requires sign-in with university SSO.';
|
|
30
37
|
exports.REGISTER_USER = (0, client_1.gql) `
|
|
31
38
|
mutation RegisterUser($userData: RegisterUser!) {
|
|
32
39
|
registerUser(userData: $userData)
|