@longvansoftware/storefront-js-client 4.3.3 → 4.3.4
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.
|
@@ -12,3 +12,4 @@ export declare const GET_MENUS: import("graphql").DocumentNode;
|
|
|
12
12
|
export declare const GET_WORK_SPACES: import("graphql").DocumentNode;
|
|
13
13
|
export declare const GET_ORGANIZATION_BY_ID: import("graphql").DocumentNode;
|
|
14
14
|
export declare const SHOW_LOGIN_SOCIAL: import("graphql").DocumentNode;
|
|
15
|
+
export declare const GET_PARTY_DETAILS_BY_PHONE: import("graphql").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SHOW_LOGIN_SOCIAL = exports.GET_ORGANIZATION_BY_ID = exports.GET_WORK_SPACES = exports.GET_MENUS = exports.GET_ORGANIZATIONS_BY_PARTY_ID = exports.GET_ACCESS_TOKEN_BY_OTP_QUERY = exports.CHECK_USER_LOGIN = exports.LOGIN_ZALO = exports.LOGIN_FACEBOOK = exports.LOGIN_GOOGLE = exports.CHECK_USERNAME_EXISTED = exports.GET_USER_LOGIN_BY_USER_LOGIN_ID = exports.GET_USER_LOGIN_BY_TOKEN = exports.GET_USER_DETAIL = void 0;
|
|
3
|
+
exports.GET_PARTY_DETAILS_BY_PHONE = exports.SHOW_LOGIN_SOCIAL = exports.GET_ORGANIZATION_BY_ID = exports.GET_WORK_SPACES = exports.GET_MENUS = exports.GET_ORGANIZATIONS_BY_PARTY_ID = exports.GET_ACCESS_TOKEN_BY_OTP_QUERY = exports.CHECK_USER_LOGIN = exports.LOGIN_ZALO = exports.LOGIN_FACEBOOK = exports.LOGIN_GOOGLE = exports.CHECK_USERNAME_EXISTED = exports.GET_USER_LOGIN_BY_USER_LOGIN_ID = exports.GET_USER_LOGIN_BY_TOKEN = exports.GET_USER_DETAIL = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
exports.GET_USER_DETAIL = (0, graphql_tag_1.gql) `
|
|
6
6
|
query GetUserDetail($orgId: String!, $accessToken: String!) {
|
|
@@ -225,3 +225,13 @@ exports.SHOW_LOGIN_SOCIAL = (0, graphql_tag_1.gql) `
|
|
|
225
225
|
showLoginSocial(orgId: $orgId, serviceOperator: $serviceOperator)
|
|
226
226
|
}
|
|
227
227
|
`;
|
|
228
|
+
exports.GET_PARTY_DETAILS_BY_PHONE = (0, graphql_tag_1.gql) `
|
|
229
|
+
query GetPartyDetailsByPhone($phone: String!) {
|
|
230
|
+
getPartyDetailsByPhone(phone: $phone) {
|
|
231
|
+
id
|
|
232
|
+
name
|
|
233
|
+
phone
|
|
234
|
+
email
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
`;
|
|
@@ -728,5 +728,20 @@ class AuthService extends serviceSDK_1.Service {
|
|
|
728
728
|
}
|
|
729
729
|
});
|
|
730
730
|
}
|
|
731
|
+
getPartyDetailsByPhone(phone) {
|
|
732
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
733
|
+
const query = queries_1.GET_PARTY_DETAILS_BY_PHONE;
|
|
734
|
+
const variables = {
|
|
735
|
+
phone,
|
|
736
|
+
};
|
|
737
|
+
try {
|
|
738
|
+
const response = yield this.graphqlQuery(query, variables);
|
|
739
|
+
return response.getPartyDetailsByPhone;
|
|
740
|
+
}
|
|
741
|
+
catch (error) {
|
|
742
|
+
throw error;
|
|
743
|
+
}
|
|
744
|
+
});
|
|
745
|
+
}
|
|
731
746
|
}
|
|
732
747
|
exports.AuthService = AuthService;
|