@quesmed/types-rn 2.6.166 → 2.6.167

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.166",
3
+ "version": "2.6.167",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -6,6 +6,14 @@ export interface ILoginAdminVar {
6
6
  days: number;
7
7
  }
8
8
  export type ILoginAdminData = RootData<string, 'loginAdmin'>;
9
+ export declare const REGISTER_ADMIN: import("@apollo/client").DocumentNode;
10
+ export interface IRegisterAdminVar {
11
+ username: string;
12
+ password: string;
13
+ firstName: string;
14
+ lastName: string;
15
+ }
16
+ export type IRegisterAdminData = RootData<boolean, 'registerAdmin'>;
9
17
  export declare const LOGIN_USER: import("@apollo/client").DocumentNode;
10
18
  export interface ILoginUserVar {
11
19
  username: string;
@@ -1,12 +1,27 @@
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.LOGIN_ADMIN = void 0;
3
+ exports.RESET_PASSWORD = exports.RESET_PASSWORD_PREP = exports.REGISTER_USER = 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!) {
7
7
  loginAdmin(username: $username, password: $password, days: $days)
8
8
  }
9
9
  `;
10
+ exports.REGISTER_ADMIN = (0, client_1.gql) `
11
+ mutation RegisterAdmin(
12
+ $username: String!
13
+ $password: String!
14
+ $firstName: String!
15
+ $lastName: String!
16
+ ) {
17
+ registerAdmin(
18
+ username: $username
19
+ password: $password
20
+ firstName: $firstName
21
+ lastName: $lastName
22
+ )
23
+ }
24
+ `;
10
25
  exports.LOGIN_USER = (0, client_1.gql) `
11
26
  mutation LoginUser($username: String!, $password: String!, $days: Int!) {
12
27
  loginUser(username: $username, password: $password, days: $days)