@longvansoftware/service-js-client 1.14.5 → 1.14.6
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.
@@ -5,3 +5,4 @@ export declare const CREATE_LAB_SESSION_BY_COMPUTING_ID: DocumentNode;
|
|
5
5
|
export declare const UPDATE_END_TIME_LAB_SESSION: DocumentNode;
|
6
6
|
export declare const STOP_LAB_SESSION: DocumentNode;
|
7
7
|
export declare const UPDATE_TYPE_LAB_SESSION: DocumentNode;
|
8
|
+
export declare const STOP_LAB_SESSION_FOR_CUSTOMER: DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.UPDATE_TYPE_LAB_SESSION = exports.STOP_LAB_SESSION = exports.UPDATE_END_TIME_LAB_SESSION = exports.CREATE_LAB_SESSION_BY_COMPUTING_ID = exports.CREATE_LAB_SESSION_BY_LAB_SESSION_ID = exports.CREATE_LAB_SESSION_BY_TEMPLATE_ID = void 0;
|
3
|
+
exports.STOP_LAB_SESSION_FOR_CUSTOMER = exports.UPDATE_TYPE_LAB_SESSION = exports.STOP_LAB_SESSION = exports.UPDATE_END_TIME_LAB_SESSION = exports.CREATE_LAB_SESSION_BY_COMPUTING_ID = exports.CREATE_LAB_SESSION_BY_LAB_SESSION_ID = exports.CREATE_LAB_SESSION_BY_TEMPLATE_ID = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
// Tạo phiên thực hành từ template
|
6
6
|
exports.CREATE_LAB_SESSION_BY_TEMPLATE_ID = (0, graphql_tag_1.gql) `
|
@@ -156,3 +156,16 @@ exports.UPDATE_TYPE_LAB_SESSION = (0, graphql_tag_1.gql) `
|
|
156
156
|
}
|
157
157
|
}
|
158
158
|
`;
|
159
|
+
// Dừng thực hành
|
160
|
+
exports.STOP_LAB_SESSION_FOR_CUSTOMER = (0, graphql_tag_1.gql) `
|
161
|
+
mutation StopLabSessionForCustomer(
|
162
|
+
$labSessionId: String!
|
163
|
+
$userId: String!
|
164
|
+
$note: String
|
165
|
+
) {
|
166
|
+
stopLabSessionForCustomer(labSessionId: $labSessionId, userId: $userId, note: $note) {
|
167
|
+
status
|
168
|
+
message
|
169
|
+
}
|
170
|
+
}
|
171
|
+
`;
|
@@ -14,4 +14,5 @@ export declare class QuicklabService extends Service {
|
|
14
14
|
stopLabSession(labSessionId: string, userId: string, note: string): Promise<any>;
|
15
15
|
updateTypeLabSession(labSessionId: string, typeLabSessionCode: string, userId: string): Promise<any>;
|
16
16
|
getLabSessionsChillByParent(labSessionId: string, userId: string): Promise<any>;
|
17
|
+
stopLabSessionForCustomer(labSessionId: string, userId: string, note: string): Promise<any>;
|
17
18
|
}
|
@@ -179,5 +179,19 @@ class QuicklabService extends serviceSDK_1.Service {
|
|
179
179
|
}
|
180
180
|
});
|
181
181
|
}
|
182
|
+
stopLabSessionForCustomer(labSessionId, userId, note) {
|
183
|
+
return __awaiter(this, void 0, void 0, function* () {
|
184
|
+
const mutation = mutations_1.STOP_LAB_SESSION_FOR_CUSTOMER;
|
185
|
+
const variables = { labSessionId, userId, note };
|
186
|
+
try {
|
187
|
+
const response = yield this.graphqlMutation(mutation, variables);
|
188
|
+
return response.stopLabSessionForCustomer;
|
189
|
+
}
|
190
|
+
catch (error) {
|
191
|
+
console.log(`Error in stopLabSessionForCustomer : ${error}`);
|
192
|
+
throw error;
|
193
|
+
}
|
194
|
+
});
|
195
|
+
}
|
182
196
|
}
|
183
197
|
exports.QuicklabService = QuicklabService;
|