@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.d.mts CHANGED
@@ -2827,6 +2827,12 @@ declare const createAIServerService: (client: GraphQLClient) => {
2827
2827
  id: string;
2828
2828
  visaProfileId: string;
2829
2829
  }, option?: RequestOption): Promise<RefusalAnalysis | undefined>;
2830
+ /** Deletes an SOP or LOE draft (its owner's, or one on a profile the caller can edit); returns its id. */
2831
+ deleteDraft(draftId: string, option?: RequestOption): Promise<string | undefined>;
2832
+ /** Deletes a refusal analysis (its owner's, or one on a profile the caller can edit); returns its id. */
2833
+ deleteRefusalAnalysis(id: string, option?: RequestOption): Promise<string | undefined>;
2834
+ /** Deletes a readiness check run without a visa profile, with its documents; returns its id. */
2835
+ deleteReadinessCheck(readinessProfileId: string, option?: RequestOption): Promise<string | undefined>;
2830
2836
  /** Stores a file for the AI to read when there's no visa profile; returns its URL. */
2831
2837
  uploadDraftFile(file: File | Blob): Promise<string | undefined>;
2832
2838
  };
package/dist/index.d.ts CHANGED
@@ -2827,6 +2827,12 @@ declare const createAIServerService: (client: GraphQLClient) => {
2827
2827
  id: string;
2828
2828
  visaProfileId: string;
2829
2829
  }, option?: RequestOption): Promise<RefusalAnalysis | undefined>;
2830
+ /** Deletes an SOP or LOE draft (its owner's, or one on a profile the caller can edit); returns its id. */
2831
+ deleteDraft(draftId: string, option?: RequestOption): Promise<string | undefined>;
2832
+ /** Deletes a refusal analysis (its owner's, or one on a profile the caller can edit); returns its id. */
2833
+ deleteRefusalAnalysis(id: string, option?: RequestOption): Promise<string | undefined>;
2834
+ /** Deletes a readiness check run without a visa profile, with its documents; returns its id. */
2835
+ deleteReadinessCheck(readinessProfileId: string, option?: RequestOption): Promise<string | undefined>;
2830
2836
  /** Stores a file for the AI to read when there's no visa profile; returns its URL. */
2831
2837
  uploadDraftFile(file: File | Blob): Promise<string | undefined>;
2832
2838
  };
package/dist/index.esm.js CHANGED
@@ -4419,6 +4419,36 @@ var createAIServerService = (client) => {
4419
4419
  );
4420
4420
  return (_b = (_a = res.data) == null ? void 0 : _a.attachRefusalAnalysis) == null ? void 0 : _b.refusalAnalysis;
4421
4421
  },
4422
+ /** Deletes an SOP or LOE draft (its owner's, or one on a profile the caller can edit); returns its id. */
4423
+ async deleteDraft(draftId, option) {
4424
+ var _a, _b;
4425
+ const res = await client.request(
4426
+ `mutation deleteDraft($draftId: String!) { deleteDraft(draftId: $draftId) { id } }`,
4427
+ { draftId },
4428
+ option
4429
+ );
4430
+ return (_b = (_a = res.data) == null ? void 0 : _a.deleteDraft) == null ? void 0 : _b.id;
4431
+ },
4432
+ /** Deletes a refusal analysis (its owner's, or one on a profile the caller can edit); returns its id. */
4433
+ async deleteRefusalAnalysis(id, option) {
4434
+ var _a, _b;
4435
+ const res = await client.request(
4436
+ `mutation deleteRefusalAnalysis($id: String!) { deleteRefusalAnalysis(id: $id) { id } }`,
4437
+ { id },
4438
+ option
4439
+ );
4440
+ return (_b = (_a = res.data) == null ? void 0 : _a.deleteRefusalAnalysis) == null ? void 0 : _b.id;
4441
+ },
4442
+ /** Deletes a readiness check run without a visa profile, with its documents; returns its id. */
4443
+ async deleteReadinessCheck(readinessProfileId, option) {
4444
+ var _a, _b;
4445
+ const res = await client.request(
4446
+ `mutation deleteReadinessCheck($readinessProfileId: String!) { deleteReadinessCheck(readinessProfileId: $readinessProfileId) { id } }`,
4447
+ { readinessProfileId },
4448
+ option
4449
+ );
4450
+ return (_b = (_a = res.data) == null ? void 0 : _a.deleteReadinessCheck) == null ? void 0 : _b.id;
4451
+ },
4422
4452
  /** Stores a file for the AI to read when there's no visa profile; returns its URL. */
4423
4453
  async uploadDraftFile(file) {
4424
4454
  const formData = new FormData();