@visa-check-r/integrations 0.0.114 → 0.0.115
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 +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2725,7 +2725,8 @@ type CouponService = ReturnType<typeof createCouponService>;
|
|
|
2725
2725
|
type AIServerAuthFields = (keyof AIServerAuth)[];
|
|
2726
2726
|
|
|
2727
2727
|
interface GetAIServerAuthRequest {
|
|
2728
|
-
|
|
2728
|
+
/** Optional for refusal_analysis, which can read the caller's own upload. */
|
|
2729
|
+
visaProfileId?: string;
|
|
2729
2730
|
requestType: "readiness_score" | "readiness_score_v2" | "sop_review" | "sop_answer_review" | "loe_review" | "loe_answer_review" | "refusal_analysis";
|
|
2730
2731
|
}
|
|
2731
2732
|
interface StartDraftRequest {
|
|
@@ -2759,7 +2760,7 @@ declare const createAIServerService: (client: GraphQLClient) => {
|
|
|
2759
2760
|
draftId: string;
|
|
2760
2761
|
visaProfileId: string;
|
|
2761
2762
|
}, option?: RequestOption): Promise<SOPReview | undefined>;
|
|
2762
|
-
/** Stores a
|
|
2763
|
+
/** Stores a file for the AI to read when there's no visa profile; returns its URL. */
|
|
2763
2764
|
uploadDraftFile(file: File | Blob): Promise<string | undefined>;
|
|
2764
2765
|
};
|
|
2765
2766
|
type AIServerService = ReturnType<typeof createAIServerService>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2725,7 +2725,8 @@ type CouponService = ReturnType<typeof createCouponService>;
|
|
|
2725
2725
|
type AIServerAuthFields = (keyof AIServerAuth)[];
|
|
2726
2726
|
|
|
2727
2727
|
interface GetAIServerAuthRequest {
|
|
2728
|
-
|
|
2728
|
+
/** Optional for refusal_analysis, which can read the caller's own upload. */
|
|
2729
|
+
visaProfileId?: string;
|
|
2729
2730
|
requestType: "readiness_score" | "readiness_score_v2" | "sop_review" | "sop_answer_review" | "loe_review" | "loe_answer_review" | "refusal_analysis";
|
|
2730
2731
|
}
|
|
2731
2732
|
interface StartDraftRequest {
|
|
@@ -2759,7 +2760,7 @@ declare const createAIServerService: (client: GraphQLClient) => {
|
|
|
2759
2760
|
draftId: string;
|
|
2760
2761
|
visaProfileId: string;
|
|
2761
2762
|
}, option?: RequestOption): Promise<SOPReview | undefined>;
|
|
2762
|
-
/** Stores a
|
|
2763
|
+
/** Stores a file for the AI to read when there's no visa profile; returns its URL. */
|
|
2763
2764
|
uploadDraftFile(file: File | Blob): Promise<string | undefined>;
|
|
2764
2765
|
};
|
|
2765
2766
|
type AIServerService = ReturnType<typeof createAIServerService>;
|
package/dist/index.esm.js
CHANGED
|
@@ -4289,7 +4289,7 @@ var getAIServerAuthResponseNestedFields = {
|
|
|
4289
4289
|
// src/services/ai-integration/schema/ai-server.schema.ts
|
|
4290
4290
|
var aiServerSchema = {
|
|
4291
4291
|
getAIServerAuth: (query) => `
|
|
4292
|
-
query getAIServerAuth($visaProfileId: String
|
|
4292
|
+
query getAIServerAuth($visaProfileId: String, $requestType: String!) {
|
|
4293
4293
|
getAIServerAuth(visaProfileId: $visaProfileId, requestType: $requestType) {
|
|
4294
4294
|
${query}
|
|
4295
4295
|
}
|
|
@@ -4348,7 +4348,7 @@ var createAIServerService = (client) => {
|
|
|
4348
4348
|
);
|
|
4349
4349
|
return (_b = (_a = res.data) == null ? void 0 : _a.attachDraft) == null ? void 0 : _b.draft;
|
|
4350
4350
|
},
|
|
4351
|
-
/** Stores a
|
|
4351
|
+
/** Stores a file for the AI to read when there's no visa profile; returns its URL. */
|
|
4352
4352
|
async uploadDraftFile(file) {
|
|
4353
4353
|
const formData = new FormData();
|
|
4354
4354
|
formData.append("file", file);
|