@ornncompute/cli 1.0.214 → 1.0.215
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/package.json +1 -1
- package/vendor/api-client/gateway.js +24 -6
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
// ../../packages/api-client/dist/gateway/support.js
|
|
2
|
-
function listSupportThreads(request, status) {
|
|
3
|
-
return request(`/v1/support/threads?status=${encodeURIComponent(status)}`, {
|
|
4
|
-
method: "GET"
|
|
2
|
+
function listSupportThreads(request, status, options) {
|
|
3
|
+
return request(`/v1/support/threads?status=${encodeURIComponent(status)}${options?.after ? `&after=${encodeURIComponent(options.after)}` : ""}`, {
|
|
4
|
+
method: "GET",
|
|
5
|
+
signal: options?.signal
|
|
5
6
|
});
|
|
6
7
|
}
|
|
7
|
-
function getSupportThread(request, id) {
|
|
8
|
+
function getSupportThread(request, id, signal) {
|
|
8
9
|
return request(`/v1/support/threads/${encodeURIComponent(id)}`, {
|
|
9
|
-
method: "GET"
|
|
10
|
+
method: "GET",
|
|
11
|
+
signal
|
|
10
12
|
});
|
|
11
13
|
}
|
|
12
14
|
function createSupportThread(request, body) {
|
|
@@ -45,6 +47,20 @@ function linkPylonIssue(request, id, body) {
|
|
|
45
47
|
function createPylonIssue(request, body) {
|
|
46
48
|
return request("/v1/staff/support/issues", { method: "POST", body });
|
|
47
49
|
}
|
|
50
|
+
function resolveSupportThread(request, id) {
|
|
51
|
+
return request(`/v1/support/threads/${encodeURIComponent(id)}`, {
|
|
52
|
+
method: "PATCH",
|
|
53
|
+
body: { status: "done" }
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function uploadSupportAttachment(request, file) {
|
|
57
|
+
const body = new FormData();
|
|
58
|
+
body.append("file", file);
|
|
59
|
+
return request("/v1/support/attachments", {
|
|
60
|
+
method: "POST",
|
|
61
|
+
body
|
|
62
|
+
});
|
|
63
|
+
}
|
|
48
64
|
|
|
49
65
|
// ../../packages/api-client/dist/gateway/supplier-intake.js
|
|
50
66
|
function exchangeSupplierIntakeAccess(fetcher, init = {}) {
|
|
@@ -250,11 +266,13 @@ export {
|
|
|
250
266
|
releaseSupplierIntakeEditor,
|
|
251
267
|
removeStaffReservationKey,
|
|
252
268
|
replySupportThread,
|
|
269
|
+
resolveSupportThread,
|
|
253
270
|
revokeStaffOrganizationKey,
|
|
254
271
|
searchSupportIssues,
|
|
255
272
|
submitSupplierIntake,
|
|
256
273
|
teardownReservationCluster,
|
|
257
274
|
transferStaffReservation,
|
|
258
275
|
updateSupplierIntakeDraft,
|
|
259
|
-
uploadSupplierIntakeDocument
|
|
276
|
+
uploadSupplierIntakeDocument,
|
|
277
|
+
uploadSupportAttachment
|
|
260
278
|
};
|