@visa-check-r/integrations 0.0.114 → 0.0.116
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 +3 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -473,6 +473,8 @@ interface VisaProfileChecklistItem {
|
|
|
473
473
|
checklistItemId: string;
|
|
474
474
|
value: string;
|
|
475
475
|
visaProfileChecklistItemStatus: "pending" | "approved" | "rejected";
|
|
476
|
+
/** Why the reviewer rejected this file. */
|
|
477
|
+
rejectionReason?: string;
|
|
476
478
|
createdAt: string;
|
|
477
479
|
checklistItem?: ChecklistItem;
|
|
478
480
|
fileInfo: FileInfo;
|
|
@@ -2725,7 +2727,8 @@ type CouponService = ReturnType<typeof createCouponService>;
|
|
|
2725
2727
|
type AIServerAuthFields = (keyof AIServerAuth)[];
|
|
2726
2728
|
|
|
2727
2729
|
interface GetAIServerAuthRequest {
|
|
2728
|
-
|
|
2730
|
+
/** Optional for refusal_analysis, which can read the caller's own upload. */
|
|
2731
|
+
visaProfileId?: string;
|
|
2729
2732
|
requestType: "readiness_score" | "readiness_score_v2" | "sop_review" | "sop_answer_review" | "loe_review" | "loe_answer_review" | "refusal_analysis";
|
|
2730
2733
|
}
|
|
2731
2734
|
interface StartDraftRequest {
|
|
@@ -2759,7 +2762,7 @@ declare const createAIServerService: (client: GraphQLClient) => {
|
|
|
2759
2762
|
draftId: string;
|
|
2760
2763
|
visaProfileId: string;
|
|
2761
2764
|
}, option?: RequestOption): Promise<SOPReview | undefined>;
|
|
2762
|
-
/** Stores a
|
|
2765
|
+
/** Stores a file for the AI to read when there's no visa profile; returns its URL. */
|
|
2763
2766
|
uploadDraftFile(file: File | Blob): Promise<string | undefined>;
|
|
2764
2767
|
};
|
|
2765
2768
|
type AIServerService = ReturnType<typeof createAIServerService>;
|
package/dist/index.d.ts
CHANGED
|
@@ -473,6 +473,8 @@ interface VisaProfileChecklistItem {
|
|
|
473
473
|
checklistItemId: string;
|
|
474
474
|
value: string;
|
|
475
475
|
visaProfileChecklistItemStatus: "pending" | "approved" | "rejected";
|
|
476
|
+
/** Why the reviewer rejected this file. */
|
|
477
|
+
rejectionReason?: string;
|
|
476
478
|
createdAt: string;
|
|
477
479
|
checklistItem?: ChecklistItem;
|
|
478
480
|
fileInfo: FileInfo;
|
|
@@ -2725,7 +2727,8 @@ type CouponService = ReturnType<typeof createCouponService>;
|
|
|
2725
2727
|
type AIServerAuthFields = (keyof AIServerAuth)[];
|
|
2726
2728
|
|
|
2727
2729
|
interface GetAIServerAuthRequest {
|
|
2728
|
-
|
|
2730
|
+
/** Optional for refusal_analysis, which can read the caller's own upload. */
|
|
2731
|
+
visaProfileId?: string;
|
|
2729
2732
|
requestType: "readiness_score" | "readiness_score_v2" | "sop_review" | "sop_answer_review" | "loe_review" | "loe_answer_review" | "refusal_analysis";
|
|
2730
2733
|
}
|
|
2731
2734
|
interface StartDraftRequest {
|
|
@@ -2759,7 +2762,7 @@ declare const createAIServerService: (client: GraphQLClient) => {
|
|
|
2759
2762
|
draftId: string;
|
|
2760
2763
|
visaProfileId: string;
|
|
2761
2764
|
}, option?: RequestOption): Promise<SOPReview | undefined>;
|
|
2762
|
-
/** Stores a
|
|
2765
|
+
/** Stores a file for the AI to read when there's no visa profile; returns its URL. */
|
|
2763
2766
|
uploadDraftFile(file: File | Blob): Promise<string | undefined>;
|
|
2764
2767
|
};
|
|
2765
2768
|
type AIServerService = ReturnType<typeof createAIServerService>;
|
package/dist/index.esm.js
CHANGED
|
@@ -1677,6 +1677,7 @@ var visaProfileChecklistItemQuery = [
|
|
|
1677
1677
|
"checklistItemId",
|
|
1678
1678
|
"value",
|
|
1679
1679
|
"visaProfileChecklistItemStatus",
|
|
1680
|
+
"rejectionReason",
|
|
1680
1681
|
"createdAt",
|
|
1681
1682
|
"checklistItem",
|
|
1682
1683
|
"fileInfo",
|
|
@@ -4289,7 +4290,7 @@ var getAIServerAuthResponseNestedFields = {
|
|
|
4289
4290
|
// src/services/ai-integration/schema/ai-server.schema.ts
|
|
4290
4291
|
var aiServerSchema = {
|
|
4291
4292
|
getAIServerAuth: (query) => `
|
|
4292
|
-
query getAIServerAuth($visaProfileId: String
|
|
4293
|
+
query getAIServerAuth($visaProfileId: String, $requestType: String!) {
|
|
4293
4294
|
getAIServerAuth(visaProfileId: $visaProfileId, requestType: $requestType) {
|
|
4294
4295
|
${query}
|
|
4295
4296
|
}
|
|
@@ -4348,7 +4349,7 @@ var createAIServerService = (client) => {
|
|
|
4348
4349
|
);
|
|
4349
4350
|
return (_b = (_a = res.data) == null ? void 0 : _a.attachDraft) == null ? void 0 : _b.draft;
|
|
4350
4351
|
},
|
|
4351
|
-
/** Stores a
|
|
4352
|
+
/** Stores a file for the AI to read when there's no visa profile; returns its URL. */
|
|
4352
4353
|
async uploadDraftFile(file) {
|
|
4353
4354
|
const formData = new FormData();
|
|
4354
4355
|
formData.append("file", file);
|