@longvansoftware/storefront-js-client 4.4.7 → 4.4.9
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/src/graphql/auth/mutations.d.ts +1 -0
- package/dist/src/graphql/auth/mutations.js +29 -1
- package/dist/src/graphql/cloudCloud/queries.d.ts +1 -0
- package/dist/src/graphql/cloudCloud/queries.js +15 -3
- package/dist/src/lib/auth/index.d.ts +1 -0
- package/dist/src/lib/auth/index.js +15 -0
- package/dist/src/lib/cloudCloud/index.d.ts +1 -0
- package/dist/src/lib/cloudCloud/index.js +15 -0
- package/package.json +1 -1
|
@@ -20,3 +20,4 @@ export declare const CREATE_RESET_KEY: import("graphql").DocumentNode;
|
|
|
20
20
|
export declare const CHECK_RESET_KEY: import("graphql").DocumentNode;
|
|
21
21
|
export declare const RESET_PASSWORD: import("graphql").DocumentNode;
|
|
22
22
|
export declare const LOGOUT: import("graphql").DocumentNode;
|
|
23
|
+
export declare const CREATE_PARTY_DETAIL: import("graphql").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LOGOUT = exports.RESET_PASSWORD = exports.CHECK_RESET_KEY = exports.CREATE_RESET_KEY = exports.VALIDATE_OTP_MUTATION = exports.SEND_OTP_MUTATION = exports.CREATE_USER_LOGIN_MUTATION = exports.ADD_ROLE_USER_MUTATION = exports.CREATE_ORG_MUTATION = exports.CREATE_USER_DETAIL_MUTATION_V3 = exports.CREATE_USER_DETAIL_MUTATION_V2 = exports.CREATE_USER_DETAIL_MUTATION = exports.LINKING_USER_LOGIN_AND_USER_DETAIL_MUTATION = exports.UPDATE_PROFILE_MUTATION = exports.CREATE_PASSWORD_MUTATION = exports.UPDATE_PASSWORD_MUTATION = exports.UPDATE_INFO_MUTATION = exports.RESET_PASSWORD_MUTATION = exports.VERIFY_CODE_MUTATION = exports.SEND_SMS_VERIFY_CODE_MUTATION = exports.REGISTER_MUTATION = exports.LOGIN_MUTATION = void 0;
|
|
3
|
+
exports.CREATE_PARTY_DETAIL = exports.LOGOUT = exports.RESET_PASSWORD = exports.CHECK_RESET_KEY = exports.CREATE_RESET_KEY = exports.VALIDATE_OTP_MUTATION = exports.SEND_OTP_MUTATION = exports.CREATE_USER_LOGIN_MUTATION = exports.ADD_ROLE_USER_MUTATION = exports.CREATE_ORG_MUTATION = exports.CREATE_USER_DETAIL_MUTATION_V3 = exports.CREATE_USER_DETAIL_MUTATION_V2 = exports.CREATE_USER_DETAIL_MUTATION = exports.LINKING_USER_LOGIN_AND_USER_DETAIL_MUTATION = exports.UPDATE_PROFILE_MUTATION = exports.CREATE_PASSWORD_MUTATION = exports.UPDATE_PASSWORD_MUTATION = exports.UPDATE_INFO_MUTATION = exports.RESET_PASSWORD_MUTATION = exports.VERIFY_CODE_MUTATION = exports.SEND_SMS_VERIFY_CODE_MUTATION = exports.REGISTER_MUTATION = exports.LOGIN_MUTATION = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
exports.LOGIN_MUTATION = (0, graphql_tag_1.gql) `
|
|
6
6
|
mutation Login($loginRequest: LoginRequest!) {
|
|
@@ -341,3 +341,31 @@ exports.LOGOUT = (0, graphql_tag_1.gql) `
|
|
|
341
341
|
logout(accessToken: $accessToken, partyId: $partyId)
|
|
342
342
|
}
|
|
343
343
|
`;
|
|
344
|
+
exports.CREATE_PARTY_DETAIL = (0, graphql_tag_1.gql) `
|
|
345
|
+
mutation CreatePartyDetail(
|
|
346
|
+
$createdBy: String!
|
|
347
|
+
$name: String
|
|
348
|
+
$phone: String
|
|
349
|
+
$email: String
|
|
350
|
+
$orgId: String
|
|
351
|
+
$isCreateUserLogin: Boolean
|
|
352
|
+
$source: String
|
|
353
|
+
$serviceOperator: String
|
|
354
|
+
) {
|
|
355
|
+
createPartyDetail(
|
|
356
|
+
createdBy: $createdBy
|
|
357
|
+
name: $name
|
|
358
|
+
phone: $phone
|
|
359
|
+
email: $email
|
|
360
|
+
orgId: $orgId
|
|
361
|
+
isCreateUserLogin: $isCreateUserLogin
|
|
362
|
+
source: $source
|
|
363
|
+
serviceOperator: $serviceOperator
|
|
364
|
+
) {
|
|
365
|
+
id
|
|
366
|
+
name
|
|
367
|
+
phone
|
|
368
|
+
email
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
`;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare const SEARCH_SERVICE: import("graphql").DocumentNode;
|
|
2
2
|
export declare const SERVICE_DETAIL: import("graphql").DocumentNode;
|
|
3
3
|
export declare const SEARCH_SERVICE_BY_PHONE: import("graphql").DocumentNode;
|
|
4
|
+
export declare const GET_LIST_LAB_SERVICE: import("graphql").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SEARCH_SERVICE_BY_PHONE = exports.SERVICE_DETAIL = exports.SEARCH_SERVICE = void 0;
|
|
3
|
+
exports.GET_LIST_LAB_SERVICE = exports.SEARCH_SERVICE_BY_PHONE = exports.SERVICE_DETAIL = exports.SEARCH_SERVICE = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
exports.SEARCH_SERVICE = (0, graphql_tag_1.gql) `
|
|
6
6
|
query SearchService($filter: CloudServiceFilterInput) {
|
|
@@ -70,8 +70,8 @@ exports.SEARCH_SERVICE = (0, graphql_tag_1.gql) `
|
|
|
70
70
|
}
|
|
71
71
|
`;
|
|
72
72
|
exports.SERVICE_DETAIL = (0, graphql_tag_1.gql) `
|
|
73
|
-
query ServiceDetail($serviceId: String) {
|
|
74
|
-
serviceDetail(serviceId: $serviceId) {
|
|
73
|
+
query ServiceDetail($serviceId: String, $ownerId: String) {
|
|
74
|
+
serviceDetail(serviceId: $serviceId, ownerId: $ownerId) {
|
|
75
75
|
service {
|
|
76
76
|
productConfiguration {
|
|
77
77
|
productId
|
|
@@ -166,3 +166,15 @@ exports.SEARCH_SERVICE_BY_PHONE = (0, graphql_tag_1.gql) `
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
`;
|
|
169
|
+
exports.GET_LIST_LAB_SERVICE = (0, graphql_tag_1.gql) `
|
|
170
|
+
query GetListLabService($productId: String!) {
|
|
171
|
+
getListLabService(productId: $productId) {
|
|
172
|
+
productId
|
|
173
|
+
productName
|
|
174
|
+
productParentId
|
|
175
|
+
image
|
|
176
|
+
groupItemId
|
|
177
|
+
groupItemName
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
`;
|
|
@@ -147,4 +147,5 @@ export declare class AuthService extends Service {
|
|
|
147
147
|
getOrganizationById(orgId: string): Promise<any>;
|
|
148
148
|
showLoginSocial(data: any): Promise<any>;
|
|
149
149
|
getPartyDetailsByPhone(phone: string, serviceOperator: string): Promise<any>;
|
|
150
|
+
createPartyDetail(dataQuery: any): Promise<any>;
|
|
150
151
|
}
|
|
@@ -747,5 +747,20 @@ class AuthService extends serviceSDK_1.Service {
|
|
|
747
747
|
}
|
|
748
748
|
});
|
|
749
749
|
}
|
|
750
|
+
createPartyDetail(dataQuery) {
|
|
751
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
752
|
+
const mutation = mutations_1.CREATE_PARTY_DETAIL;
|
|
753
|
+
const variables = {
|
|
754
|
+
dataQuery,
|
|
755
|
+
};
|
|
756
|
+
try {
|
|
757
|
+
const response = yield this.graphqlMutation(mutation, variables);
|
|
758
|
+
return response.createPartyDetail;
|
|
759
|
+
}
|
|
760
|
+
catch (error) {
|
|
761
|
+
throw error;
|
|
762
|
+
}
|
|
763
|
+
});
|
|
764
|
+
}
|
|
750
765
|
}
|
|
751
766
|
exports.AuthService = AuthService;
|
|
@@ -5,4 +5,5 @@ export declare class CloudCloudService extends Service {
|
|
|
5
5
|
serviceDetail(serviceId: string): Promise<any>;
|
|
6
6
|
updateDescription(serviceId: string, description: string, updatedBy: string): Promise<any>;
|
|
7
7
|
searchServiceByPhone(phone: string, serviceScope: string): Promise<any>;
|
|
8
|
+
getListLabService(productId: string): Promise<any>;
|
|
8
9
|
}
|
|
@@ -80,5 +80,20 @@ class CloudCloudService extends serviceSDK_1.Service {
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
+
getListLabService(productId) {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
const query = queries_1.GET_LIST_LAB_SERVICE;
|
|
86
|
+
const variables = {
|
|
87
|
+
productId,
|
|
88
|
+
};
|
|
89
|
+
try {
|
|
90
|
+
const response = yield this.graphqlQueryV4(query, variables);
|
|
91
|
+
return response.getListLabService;
|
|
92
|
+
}
|
|
93
|
+
catch (error) {
|
|
94
|
+
throw error;
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
}
|
|
83
98
|
}
|
|
84
99
|
exports.CloudCloudService = CloudCloudService;
|