phx-react 1.3.219 → 1.3.220
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.
|
@@ -4,7 +4,7 @@ exports.getOTP = exports.insertOTP = exports.updatePassword = exports.verifyEmai
|
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var client_1 = require("@apollo/client");
|
|
6
6
|
exports.getUserInfo = (0, client_1.gql)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n query MyQuery($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password } }) {\n id\n email\n phone_number\n full_name\n school_id\n school {\n group_id\n mail\n id\n phone\n name\n }\n user_roles(where: { is_active: { _eq: true } }) {\n role_id\n role {\n role_code\n }\n }\n }\n }\n"], ["\n query MyQuery($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password } }) {\n id\n email\n phone_number\n full_name\n school_id\n school {\n group_id\n mail\n id\n phone\n name\n }\n user_roles(where: { is_active: { _eq: true } }) {\n role_id\n role {\n role_code\n }\n }\n }\n }\n"])));
|
|
7
|
-
exports.getUserInfoPn28 = (0, client_1.gql)(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n query MyQuery($email: String, $password: String) {\n users(where: {
|
|
7
|
+
exports.getUserInfoPn28 = (0, client_1.gql)(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n query MyQuery($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password }, deleted_at: { _is_null: true } }) {\n id\n email\n password\n }\n }\n"], ["\n query MyQuery($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password }, deleted_at: { _is_null: true } }) {\n id\n email\n password\n }\n }\n"])));
|
|
8
8
|
exports.verifyEmail = (0, client_1.gql)(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n query VerityEmail($email: String) {\n users(where: { email: { _eq: $email } }) {\n id\n email\n }\n }\n"], ["\n query VerityEmail($email: String) {\n users(where: { email: { _eq: $email } }) {\n id\n email\n }\n }\n"])));
|
|
9
9
|
exports.updatePassword = (0, client_1.gql)(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n mutation UpdatePassword($id: Int!, $password: String) {\n update_users_by_pk(_set: { password: $password }, pk_columns: { id: $id }) {\n id\n password\n }\n }\n"], ["\n mutation UpdatePassword($id: Int!, $password: String) {\n update_users_by_pk(_set: { password: $password }, pk_columns: { id: $id }) {\n id\n password\n }\n }\n"])));
|
|
10
10
|
exports.insertOTP = (0, client_1.gql)(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n mutation InsertOTP($users_id: Int, $otp_code: Int, $expiration_time: timestamptz) {\n insert_otp_verify(objects: { users_id: $users_id, otp_code: $otp_code, expiration_time: $expiration_time }) {\n returning {\n otp_code\n users_id\n expiration_time\n }\n }\n }\n"], ["\n mutation InsertOTP($users_id: Int, $otp_code: Int, $expiration_time: timestamptz) {\n insert_otp_verify(objects: { users_id: $users_id, otp_code: $otp_code, expiration_time: $expiration_time }) {\n returning {\n otp_code\n users_id\n expiration_time\n }\n }\n }\n"])));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryLogin.js","sourceRoot":"","sources":["../../../src/utils/queryLogin.ts"],"names":[],"mappings":";;;;AAAA,yCAAoC;AAEvB,QAAA,WAAW,OAAG,YAAG,khBAAA,scAuB7B,KAAA;AAEY,QAAA,eAAe,OAAG,YAAG,
|
|
1
|
+
{"version":3,"file":"queryLogin.js","sourceRoot":"","sources":["../../../src/utils/queryLogin.ts"],"names":[],"mappings":";;;;AAAA,yCAAoC;AAEvB,QAAA,WAAW,OAAG,YAAG,khBAAA,scAuB7B,KAAA;AAEY,QAAA,eAAe,OAAG,YAAG,uSAAA,2NAQjC,KAAA;AAEY,QAAA,WAAW,OAAG,YAAG,0MAAA,8HAO7B,KAAA;AAEY,QAAA,cAAc,OAAG,YAAG,mQAAA,uLAOhC,KAAA;AAEY,QAAA,SAAS,OAAG,YAAG,+XAAA,mTAU3B,KAAA;AAEY,QAAA,MAAM,OAAG,YAAG,gPAAA,oKAQxB,KAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __makeTemplateObject } from "tslib";
|
|
2
2
|
import { gql } from '@apollo/client';
|
|
3
3
|
export var getUserInfo = gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query MyQuery($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password } }) {\n id\n email\n phone_number\n full_name\n school_id\n school {\n group_id\n mail\n id\n phone\n name\n }\n user_roles(where: { is_active: { _eq: true } }) {\n role_id\n role {\n role_code\n }\n }\n }\n }\n"], ["\n query MyQuery($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password } }) {\n id\n email\n phone_number\n full_name\n school_id\n school {\n group_id\n mail\n id\n phone\n name\n }\n user_roles(where: { is_active: { _eq: true } }) {\n role_id\n role {\n role_code\n }\n }\n }\n }\n"])));
|
|
4
|
-
export var getUserInfoPn28 = gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query MyQuery($email: String, $password: String) {\n users(where: {
|
|
4
|
+
export var getUserInfoPn28 = gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query MyQuery($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password }, deleted_at: { _is_null: true } }) {\n id\n email\n password\n }\n }\n"], ["\n query MyQuery($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password }, deleted_at: { _is_null: true } }) {\n id\n email\n password\n }\n }\n"])));
|
|
5
5
|
export var verifyEmail = gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query VerityEmail($email: String) {\n users(where: { email: { _eq: $email } }) {\n id\n email\n }\n }\n"], ["\n query VerityEmail($email: String) {\n users(where: { email: { _eq: $email } }) {\n id\n email\n }\n }\n"])));
|
|
6
6
|
export var updatePassword = gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n mutation UpdatePassword($id: Int!, $password: String) {\n update_users_by_pk(_set: { password: $password }, pk_columns: { id: $id }) {\n id\n password\n }\n }\n"], ["\n mutation UpdatePassword($id: Int!, $password: String) {\n update_users_by_pk(_set: { password: $password }, pk_columns: { id: $id }) {\n id\n password\n }\n }\n"])));
|
|
7
7
|
export var insertOTP = gql(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n mutation InsertOTP($users_id: Int, $otp_code: Int, $expiration_time: timestamptz) {\n insert_otp_verify(objects: { users_id: $users_id, otp_code: $otp_code, expiration_time: $expiration_time }) {\n returning {\n otp_code\n users_id\n expiration_time\n }\n }\n }\n"], ["\n mutation InsertOTP($users_id: Int, $otp_code: Int, $expiration_time: timestamptz) {\n insert_otp_verify(objects: { users_id: $users_id, otp_code: $otp_code, expiration_time: $expiration_time }) {\n returning {\n otp_code\n users_id\n expiration_time\n }\n }\n }\n"])));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryLogin.js","sourceRoot":"","sources":["../../../src/utils/queryLogin.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEpC,MAAM,CAAC,IAAM,WAAW,GAAG,GAAG,ygBAAA,scAuB7B,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,eAAe,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"queryLogin.js","sourceRoot":"","sources":["../../../src/utils/queryLogin.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEpC,MAAM,CAAC,IAAM,WAAW,GAAG,GAAG,ygBAAA,scAuB7B,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,eAAe,GAAG,GAAG,8RAAA,2NAQjC,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,WAAW,GAAG,GAAG,iMAAA,8HAO7B,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,cAAc,GAAG,GAAG,0PAAA,uLAOhC,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,SAAS,GAAG,GAAG,sXAAA,mTAU3B,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,MAAM,GAAG,GAAG,uOAAA,oKAQxB,IAAA,CAAA"}
|