@smvtech/x-flux 1.1.19 → 1.1.20
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -4
- package/dist/index.mjs +5 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -5512,7 +5512,7 @@ type TEDCFlowContext = {
|
|
|
5512
5512
|
acceptOrderQCTermsAndConditions: () => Promise<void>;
|
|
5513
5513
|
runAllValidations: () => Promise<void>;
|
|
5514
5514
|
runApplicantValidations: (applicationId: string) => Promise<void>;
|
|
5515
|
-
applyAutoFix: (applicationId: string, answerId: string) => Promise<void>;
|
|
5515
|
+
applyAutoFix: (applicationId: string, answerId: string, force_fix?: boolean) => Promise<void>;
|
|
5516
5516
|
};
|
|
5517
5517
|
type TEDCFlowProviderProps = {
|
|
5518
5518
|
children: ReactNode;
|
|
@@ -5594,7 +5594,7 @@ declare const EDCFlow: {
|
|
|
5594
5594
|
acceptOrderQCTermsAndConditions: () => Promise<void>;
|
|
5595
5595
|
runAllValidations: () => Promise<void>;
|
|
5596
5596
|
runApplicantValidations: (applicationId: string) => Promise<void>;
|
|
5597
|
-
applyAutoFix: (applicationId: string, answerId: string) => Promise<void>;
|
|
5597
|
+
applyAutoFix: (applicationId: string, answerId: string, force_fix?: boolean) => Promise<void>;
|
|
5598
5598
|
};
|
|
5599
5599
|
};
|
|
5600
5600
|
|
package/dist/index.d.ts
CHANGED
|
@@ -5512,7 +5512,7 @@ type TEDCFlowContext = {
|
|
|
5512
5512
|
acceptOrderQCTermsAndConditions: () => Promise<void>;
|
|
5513
5513
|
runAllValidations: () => Promise<void>;
|
|
5514
5514
|
runApplicantValidations: (applicationId: string) => Promise<void>;
|
|
5515
|
-
applyAutoFix: (applicationId: string, answerId: string) => Promise<void>;
|
|
5515
|
+
applyAutoFix: (applicationId: string, answerId: string, force_fix?: boolean) => Promise<void>;
|
|
5516
5516
|
};
|
|
5517
5517
|
type TEDCFlowProviderProps = {
|
|
5518
5518
|
children: ReactNode;
|
|
@@ -5594,7 +5594,7 @@ declare const EDCFlow: {
|
|
|
5594
5594
|
acceptOrderQCTermsAndConditions: () => Promise<void>;
|
|
5595
5595
|
runAllValidations: () => Promise<void>;
|
|
5596
5596
|
runApplicantValidations: (applicationId: string) => Promise<void>;
|
|
5597
|
-
applyAutoFix: (applicationId: string, answerId: string) => Promise<void>;
|
|
5597
|
+
applyAutoFix: (applicationId: string, answerId: string, force_fix?: boolean) => Promise<void>;
|
|
5598
5598
|
};
|
|
5599
5599
|
};
|
|
5600
5600
|
|
package/dist/index.js
CHANGED
|
@@ -901,9 +901,10 @@ var updateOrderQCTermsAndConditions = async (orderId) => {
|
|
|
901
901
|
const response = await client.patch(`/visa_orders/update-order-qc-terms-conditions/${orderId}`);
|
|
902
902
|
return { data: response.data.data };
|
|
903
903
|
};
|
|
904
|
-
var mapFixableDocument = async (answerId) => {
|
|
904
|
+
var mapFixableDocument = async (answerId, force_fix) => {
|
|
905
905
|
const client = getClient();
|
|
906
|
-
const
|
|
906
|
+
const body = force_fix !== void 0 ? { force_fix } : {};
|
|
907
|
+
const response = await client.post(`/edc/map-fixable-doc/${answerId}`, body);
|
|
907
908
|
const rawData = response.data.data;
|
|
908
909
|
const transformedAnswer = formatAnswerFromResponse(
|
|
909
910
|
rawData.answer,
|
|
@@ -1085,10 +1086,10 @@ var EDCFlowProvider = ({
|
|
|
1085
1086
|
[questionnaire, refreshApplicant, order]
|
|
1086
1087
|
);
|
|
1087
1088
|
const applyAutoFix = react.useCallback(
|
|
1088
|
-
async (applicationId, answerId) => {
|
|
1089
|
+
async (applicationId, answerId, force_fix) => {
|
|
1089
1090
|
if (!questionnaire || !order) return;
|
|
1090
1091
|
try {
|
|
1091
|
-
const { data } = await mapFixableDocument(answerId);
|
|
1092
|
+
const { data } = await mapFixableDocument(answerId, force_fix);
|
|
1092
1093
|
if (data.docId && data.signedUrl) {
|
|
1093
1094
|
setDocIdToS3Url((prev) => ({
|
|
1094
1095
|
...prev,
|
package/dist/index.mjs
CHANGED
|
@@ -875,9 +875,10 @@ var updateOrderQCTermsAndConditions = async (orderId) => {
|
|
|
875
875
|
const response = await client.patch(`/visa_orders/update-order-qc-terms-conditions/${orderId}`);
|
|
876
876
|
return { data: response.data.data };
|
|
877
877
|
};
|
|
878
|
-
var mapFixableDocument = async (answerId) => {
|
|
878
|
+
var mapFixableDocument = async (answerId, force_fix) => {
|
|
879
879
|
const client = getClient();
|
|
880
|
-
const
|
|
880
|
+
const body = force_fix !== void 0 ? { force_fix } : {};
|
|
881
|
+
const response = await client.post(`/edc/map-fixable-doc/${answerId}`, body);
|
|
881
882
|
const rawData = response.data.data;
|
|
882
883
|
const transformedAnswer = formatAnswerFromResponse(
|
|
883
884
|
rawData.answer,
|
|
@@ -1059,10 +1060,10 @@ var EDCFlowProvider = ({
|
|
|
1059
1060
|
[questionnaire, refreshApplicant, order]
|
|
1060
1061
|
);
|
|
1061
1062
|
const applyAutoFix = useCallback(
|
|
1062
|
-
async (applicationId, answerId) => {
|
|
1063
|
+
async (applicationId, answerId, force_fix) => {
|
|
1063
1064
|
if (!questionnaire || !order) return;
|
|
1064
1065
|
try {
|
|
1065
|
-
const { data } = await mapFixableDocument(answerId);
|
|
1066
|
+
const { data } = await mapFixableDocument(answerId, force_fix);
|
|
1066
1067
|
if (data.docId && data.signedUrl) {
|
|
1067
1068
|
setDocIdToS3Url((prev) => ({
|
|
1068
1069
|
...prev,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smvtech/x-flux",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.20",
|
|
4
4
|
"description": "x-flux - A powerful React package for managing effective document collection flows, visa questionnaires, travellers, and applications",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|