@visa-check-r/integrations 0.0.122 → 0.0.123
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/index.cjs.js +30 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.esm.js +30 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -4421,6 +4421,36 @@ var createAIServerService = (client) => {
|
|
|
4421
4421
|
);
|
|
4422
4422
|
return (_b = (_a = res.data) == null ? void 0 : _a.attachRefusalAnalysis) == null ? void 0 : _b.refusalAnalysis;
|
|
4423
4423
|
},
|
|
4424
|
+
/** Deletes an SOP or LOE draft (its owner's, or one on a profile the caller can edit); returns its id. */
|
|
4425
|
+
async deleteDraft(draftId, option) {
|
|
4426
|
+
var _a, _b;
|
|
4427
|
+
const res = await client.request(
|
|
4428
|
+
`mutation deleteDraft($draftId: String!) { deleteDraft(draftId: $draftId) { id } }`,
|
|
4429
|
+
{ draftId },
|
|
4430
|
+
option
|
|
4431
|
+
);
|
|
4432
|
+
return (_b = (_a = res.data) == null ? void 0 : _a.deleteDraft) == null ? void 0 : _b.id;
|
|
4433
|
+
},
|
|
4434
|
+
/** Deletes a refusal analysis (its owner's, or one on a profile the caller can edit); returns its id. */
|
|
4435
|
+
async deleteRefusalAnalysis(id, option) {
|
|
4436
|
+
var _a, _b;
|
|
4437
|
+
const res = await client.request(
|
|
4438
|
+
`mutation deleteRefusalAnalysis($id: String!) { deleteRefusalAnalysis(id: $id) { id } }`,
|
|
4439
|
+
{ id },
|
|
4440
|
+
option
|
|
4441
|
+
);
|
|
4442
|
+
return (_b = (_a = res.data) == null ? void 0 : _a.deleteRefusalAnalysis) == null ? void 0 : _b.id;
|
|
4443
|
+
},
|
|
4444
|
+
/** Deletes a readiness check run without a visa profile, with its documents; returns its id. */
|
|
4445
|
+
async deleteReadinessCheck(readinessProfileId, option) {
|
|
4446
|
+
var _a, _b;
|
|
4447
|
+
const res = await client.request(
|
|
4448
|
+
`mutation deleteReadinessCheck($readinessProfileId: String!) { deleteReadinessCheck(readinessProfileId: $readinessProfileId) { id } }`,
|
|
4449
|
+
{ readinessProfileId },
|
|
4450
|
+
option
|
|
4451
|
+
);
|
|
4452
|
+
return (_b = (_a = res.data) == null ? void 0 : _a.deleteReadinessCheck) == null ? void 0 : _b.id;
|
|
4453
|
+
},
|
|
4424
4454
|
/** Stores a file for the AI to read when there's no visa profile; returns its URL. */
|
|
4425
4455
|
async uploadDraftFile(file) {
|
|
4426
4456
|
const formData = new FormData();
|