@longvansoftware/service-js-client 1.14.4 → 1.14.5

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.
@@ -3,3 +3,4 @@ export declare const GET_TEMPLATE_BY_ARTICLE_ID: DocumentNode;
3
3
  export declare const GET_TYPE_LAB_SESSION: DocumentNode;
4
4
  export declare const GET_LAB_SESSIONS_BY_USER_ID: DocumentNode;
5
5
  export declare const GET_LAB_SESSIONS_BY_USER_ID_AND_ARTICLE_ID: DocumentNode;
6
+ export declare const GET_LAB_SESSIONS_CHILL_BY_PARENT: DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GET_LAB_SESSIONS_BY_USER_ID_AND_ARTICLE_ID = exports.GET_LAB_SESSIONS_BY_USER_ID = exports.GET_TYPE_LAB_SESSION = exports.GET_TEMPLATE_BY_ARTICLE_ID = void 0;
3
+ exports.GET_LAB_SESSIONS_CHILL_BY_PARENT = exports.GET_LAB_SESSIONS_BY_USER_ID_AND_ARTICLE_ID = exports.GET_LAB_SESSIONS_BY_USER_ID = exports.GET_TYPE_LAB_SESSION = exports.GET_TEMPLATE_BY_ARTICLE_ID = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  // Danh sách template của bài lab
6
6
  exports.GET_TEMPLATE_BY_ARTICLE_ID = (0, graphql_tag_1.gql) `
@@ -87,3 +87,35 @@ exports.GET_LAB_SESSIONS_BY_USER_ID_AND_ARTICLE_ID = (0, graphql_tag_1.gql) `
87
87
  }
88
88
  }
89
89
  `;
90
+ exports.GET_LAB_SESSIONS_CHILL_BY_PARENT = (0, graphql_tag_1.gql) `
91
+ query GetLabSessionsByUserIdAndArticleId(
92
+ $labSessionId: String!
93
+ $userId: String!
94
+ ) {
95
+ getLabSessionsChillByParent(labSessionId: $labSessionId, userId: $userId) {
96
+ labSessionId
97
+ userId
98
+ typeLabSession
99
+ statusUseName
100
+ statusUse
101
+ startTime
102
+ endTime
103
+ note
104
+ articleId
105
+ articleTitle
106
+ computingId
107
+ computingName
108
+ computingState
109
+ templateId
110
+ templateName
111
+ productId
112
+ productName
113
+ parent
114
+ labSessionIdLast
115
+ statusUseLast
116
+ startTimeLast
117
+ endTimeLast
118
+ noteLast
119
+ }
120
+ }
121
+ `;
@@ -13,4 +13,5 @@ export declare class QuicklabService extends Service {
13
13
  updateEndTimeLabSession(labSessionId: string, userId: string): Promise<any>;
14
14
  stopLabSession(labSessionId: string, userId: string, note: string): Promise<any>;
15
15
  updateTypeLabSession(labSessionId: string, typeLabSessionCode: string, userId: string): Promise<any>;
16
+ getLabSessionsChillByParent(labSessionId: string, userId: string): Promise<any>;
16
17
  }
@@ -165,5 +165,19 @@ class QuicklabService extends serviceSDK_1.Service {
165
165
  }
166
166
  });
167
167
  }
168
+ getLabSessionsChillByParent(labSessionId, userId) {
169
+ return __awaiter(this, void 0, void 0, function* () {
170
+ const query = queries_1.GET_LAB_SESSIONS_CHILL_BY_PARENT;
171
+ const variables = { labSessionId, userId };
172
+ try {
173
+ const response = yield this.graphqlQuery(query, variables);
174
+ return response.getLabSessionsChillByParent;
175
+ }
176
+ catch (error) {
177
+ console.log(`Error in getLabSessionsChillByParent : ${error}`);
178
+ throw error;
179
+ }
180
+ });
181
+ }
168
182
  }
169
183
  exports.QuicklabService = QuicklabService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "1.14.4",
3
+ "version": "1.14.5",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [