@longvansoftware/storefront-js-client 4.4.6 → 4.4.8

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.
@@ -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,2 +1,4 @@
1
1
  export declare const SEARCH_SERVICE: import("graphql").DocumentNode;
2
2
  export declare const SERVICE_DETAIL: import("graphql").DocumentNode;
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.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) {
@@ -125,3 +125,56 @@ exports.SERVICE_DETAIL = (0, graphql_tag_1.gql) `
125
125
  }
126
126
  }
127
127
  `;
128
+ exports.SEARCH_SERVICE_BY_PHONE = (0, graphql_tag_1.gql) `
129
+ query SearchServiceByPhone($phone: String, $serviceScope: String) {
130
+ searchServiceByPhone(phone: $phone, serviceScope: $serviceScope) {
131
+ total
132
+ offset
133
+ maxResult
134
+ resultList {
135
+ supplierId
136
+ serviceId
137
+ partnerId
138
+ serviceName
139
+ serviceGroup
140
+ type
141
+ typeName
142
+ status
143
+ statusFulfillment
144
+ ownerId
145
+ startDate
146
+ endDate
147
+ serviceType
148
+ urlPrivate
149
+ urlPublic
150
+ username
151
+ password
152
+ attrs
153
+ description
154
+ ips
155
+ productGroupId
156
+ orderId
157
+ sponsorId
158
+ sponsorName
159
+ providedFromId
160
+ providedFromName
161
+ productConfiguration {
162
+ productId
163
+ productTitle
164
+ }
165
+ }
166
+ }
167
+ }
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;
@@ -4,4 +4,6 @@ export declare class CloudCloudService extends Service {
4
4
  searchService(data: any): Promise<any>;
5
5
  serviceDetail(serviceId: string): Promise<any>;
6
6
  updateDescription(serviceId: string, description: string, updatedBy: string): Promise<any>;
7
+ searchServiceByPhone(phone: string, serviceScope: string): Promise<any>;
8
+ getListLabService(productId: string): Promise<any>;
7
9
  }
@@ -53,7 +53,7 @@ class CloudCloudService extends serviceSDK_1.Service {
53
53
  const variables = {
54
54
  serviceId,
55
55
  description,
56
- updatedBy
56
+ updatedBy,
57
57
  };
58
58
  try {
59
59
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -64,5 +64,36 @@ class CloudCloudService extends serviceSDK_1.Service {
64
64
  }
65
65
  });
66
66
  }
67
+ searchServiceByPhone(phone, serviceScope) {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ const query = queries_1.SEARCH_SERVICE_BY_PHONE;
70
+ const variables = {
71
+ phone,
72
+ serviceScope,
73
+ };
74
+ try {
75
+ const response = yield this.graphqlQueryV4(query, variables);
76
+ return response.searchServiceByPhone;
77
+ }
78
+ catch (error) {
79
+ throw error;
80
+ }
81
+ });
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
+ }
67
98
  }
68
99
  exports.CloudCloudService = CloudCloudService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "4.4.6",
3
+ "version": "4.4.8",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [