@smvtech/x-flux 1.0.4 → 1.0.5
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 +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +22 -0
- package/dist/index.mjs +20 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -28,6 +28,23 @@ declare enum APPLICATION_TAGS {
|
|
|
28
28
|
DRAFTED_APPLICATION = "DRAFTED_APPLICATION",
|
|
29
29
|
DUPLICATE_TRAVELLER = "DUPLICATE_TRAVELLER"
|
|
30
30
|
}
|
|
31
|
+
declare enum DOC_TYPES {
|
|
32
|
+
UNCLASSIFIED = "UNCLASSIFIED",
|
|
33
|
+
PASSPORT_FRONT = "PASSPORT_FRONT",
|
|
34
|
+
PHOTO = "PHOTO",
|
|
35
|
+
PASSPORT_BACK = "PASSPORT_BACK",
|
|
36
|
+
PAN_CARD = "PAN_CARD",
|
|
37
|
+
ARRIVAL_FLIGHT_TICKET = "ARRIVAL_FLIGHT_TICKET",
|
|
38
|
+
DEPARTURE_FLIGHT_TICKET = "DEPARTURE_FLIGHT_TICKET",
|
|
39
|
+
BANK_STATEMENT = "BANK_STATEMENT",
|
|
40
|
+
HOTEL_TICKET = "HOTEL_TICKET",
|
|
41
|
+
COVER_LETTER = "COVER_LETTER",
|
|
42
|
+
ITR = "ITR",
|
|
43
|
+
BUSINESS_ITR = "BUSINESS_ITR",
|
|
44
|
+
BIRTH_CERTIFICATE = "BIRTH_CERTIFICATE",
|
|
45
|
+
UNWANTED = "UNWANTED",
|
|
46
|
+
BULK_ZIP = "BULK_ZIP"
|
|
47
|
+
}
|
|
31
48
|
declare enum ANSWER_SOURCE {
|
|
32
49
|
USER_INPUT = "USER_INPUT",
|
|
33
50
|
DOCUMENT = "DOCUMENT",
|
|
@@ -73,6 +90,7 @@ declare const QuestionnaireSchema: z.ZodObject<{
|
|
|
73
90
|
is_required: z.ZodBoolean;
|
|
74
91
|
is_root: z.ZodBoolean;
|
|
75
92
|
type: z.ZodNativeEnum<typeof QUESTION_TYPE>;
|
|
93
|
+
doc_type: z.ZodOptional<z.ZodNativeEnum<typeof DOC_TYPES>>;
|
|
76
94
|
renders: z.ZodArray<z.ZodObject<{
|
|
77
95
|
operation: z.ZodString;
|
|
78
96
|
value: z.ZodString;
|
|
@@ -101,6 +119,7 @@ declare const QuestionnaireSchema: z.ZodObject<{
|
|
|
101
119
|
operation: string;
|
|
102
120
|
question_ids: string[];
|
|
103
121
|
}[];
|
|
122
|
+
doc_type?: DOC_TYPES | undefined;
|
|
104
123
|
}, {
|
|
105
124
|
options: string[];
|
|
106
125
|
type: QUESTION_TYPE;
|
|
@@ -116,6 +135,7 @@ declare const QuestionnaireSchema: z.ZodObject<{
|
|
|
116
135
|
operation: string;
|
|
117
136
|
question_ids: string[];
|
|
118
137
|
}[];
|
|
138
|
+
doc_type?: DOC_TYPES | undefined;
|
|
119
139
|
}>>;
|
|
120
140
|
}, "strip", z.ZodTypeAny, {
|
|
121
141
|
questionsWithRank: {
|
|
@@ -137,6 +157,7 @@ declare const QuestionnaireSchema: z.ZodObject<{
|
|
|
137
157
|
operation: string;
|
|
138
158
|
question_ids: string[];
|
|
139
159
|
}[];
|
|
160
|
+
doc_type?: DOC_TYPES | undefined;
|
|
140
161
|
}>;
|
|
141
162
|
}, {
|
|
142
163
|
questionsWithRank: {
|
|
@@ -158,6 +179,7 @@ declare const QuestionnaireSchema: z.ZodObject<{
|
|
|
158
179
|
operation: string;
|
|
159
180
|
question_ids: string[];
|
|
160
181
|
}[];
|
|
182
|
+
doc_type?: DOC_TYPES | undefined;
|
|
161
183
|
}>;
|
|
162
184
|
}>;
|
|
163
185
|
declare const ApplicationSchema: z.ZodObject<{
|
|
@@ -5293,4 +5315,4 @@ declare const EDCFlow: {
|
|
|
5293
5315
|
};
|
|
5294
5316
|
};
|
|
5295
5317
|
|
|
5296
|
-
export { APPLICATION_STATUS, APPLICATION_TAGS, AnswerSchema, type ApiResponse, ApplicationSchema, type EDCConfig, EDCFlowProvider, INTERNAL_ORDER_TAGS, PROCESSING_BLOCKED_ON_PAYMENT_STATUS, QuestionnaireSchema, TA_QC_EXTRACTION_STATUS, type TAddTravellerPayload, type TAnswer, type TEDCApplicant, TIMELINE_STEP, type TQuestionWithAnswer, type TQuestionnaire, type TRenderRule, type TTraveller, type TUpdateAnswerPayload, type TUpdateTravellerPayload, type TUploadProgressEvent, type TVisaOrder, TimelinePaymentStatus, TravellerSchema, type UploadProgressEvent, VISA_TYPE_INTERNAL_TAGS, createAllQuestionsWithAnswers, createApplicantData, EDCFlow as default, filterConditionalQuestions, formatAnswerFromResponse, formatTravellerFromResponse, getSignedUrlFromAsset, getVisibleQuestions, initializeEDCFlow, updateApplicantWithAnswer, useEDCFlow };
|
|
5318
|
+
export { ANSWER_SOURCE, APPLICATION_STATUS, APPLICATION_TAGS, AnswerSchema, type ApiResponse, ApplicationSchema, DOC_TYPES, type EDCConfig, EDCFlowProvider, INTERNAL_ORDER_TAGS, PROCESSING_BLOCKED_ON_PAYMENT_STATUS, QUESTION_TYPE, QuestionnaireSchema, TA_QC_EXTRACTION_STATUS, type TAddTravellerPayload, type TAnswer, type TEDCApplicant, TIMELINE_STEP, type TQuestionWithAnswer, type TQuestionnaire, type TRenderRule, type TTraveller, type TUpdateAnswerPayload, type TUpdateTravellerPayload, type TUploadProgressEvent, type TVisaOrder, TimelinePaymentStatus, TravellerSchema, type UploadProgressEvent, VISA_TYPE_INTERNAL_TAGS, createAllQuestionsWithAnswers, createApplicantData, EDCFlow as default, filterConditionalQuestions, formatAnswerFromResponse, formatTravellerFromResponse, getSignedUrlFromAsset, getVisibleQuestions, initializeEDCFlow, updateApplicantWithAnswer, useEDCFlow };
|
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,23 @@ declare enum APPLICATION_TAGS {
|
|
|
28
28
|
DRAFTED_APPLICATION = "DRAFTED_APPLICATION",
|
|
29
29
|
DUPLICATE_TRAVELLER = "DUPLICATE_TRAVELLER"
|
|
30
30
|
}
|
|
31
|
+
declare enum DOC_TYPES {
|
|
32
|
+
UNCLASSIFIED = "UNCLASSIFIED",
|
|
33
|
+
PASSPORT_FRONT = "PASSPORT_FRONT",
|
|
34
|
+
PHOTO = "PHOTO",
|
|
35
|
+
PASSPORT_BACK = "PASSPORT_BACK",
|
|
36
|
+
PAN_CARD = "PAN_CARD",
|
|
37
|
+
ARRIVAL_FLIGHT_TICKET = "ARRIVAL_FLIGHT_TICKET",
|
|
38
|
+
DEPARTURE_FLIGHT_TICKET = "DEPARTURE_FLIGHT_TICKET",
|
|
39
|
+
BANK_STATEMENT = "BANK_STATEMENT",
|
|
40
|
+
HOTEL_TICKET = "HOTEL_TICKET",
|
|
41
|
+
COVER_LETTER = "COVER_LETTER",
|
|
42
|
+
ITR = "ITR",
|
|
43
|
+
BUSINESS_ITR = "BUSINESS_ITR",
|
|
44
|
+
BIRTH_CERTIFICATE = "BIRTH_CERTIFICATE",
|
|
45
|
+
UNWANTED = "UNWANTED",
|
|
46
|
+
BULK_ZIP = "BULK_ZIP"
|
|
47
|
+
}
|
|
31
48
|
declare enum ANSWER_SOURCE {
|
|
32
49
|
USER_INPUT = "USER_INPUT",
|
|
33
50
|
DOCUMENT = "DOCUMENT",
|
|
@@ -73,6 +90,7 @@ declare const QuestionnaireSchema: z.ZodObject<{
|
|
|
73
90
|
is_required: z.ZodBoolean;
|
|
74
91
|
is_root: z.ZodBoolean;
|
|
75
92
|
type: z.ZodNativeEnum<typeof QUESTION_TYPE>;
|
|
93
|
+
doc_type: z.ZodOptional<z.ZodNativeEnum<typeof DOC_TYPES>>;
|
|
76
94
|
renders: z.ZodArray<z.ZodObject<{
|
|
77
95
|
operation: z.ZodString;
|
|
78
96
|
value: z.ZodString;
|
|
@@ -101,6 +119,7 @@ declare const QuestionnaireSchema: z.ZodObject<{
|
|
|
101
119
|
operation: string;
|
|
102
120
|
question_ids: string[];
|
|
103
121
|
}[];
|
|
122
|
+
doc_type?: DOC_TYPES | undefined;
|
|
104
123
|
}, {
|
|
105
124
|
options: string[];
|
|
106
125
|
type: QUESTION_TYPE;
|
|
@@ -116,6 +135,7 @@ declare const QuestionnaireSchema: z.ZodObject<{
|
|
|
116
135
|
operation: string;
|
|
117
136
|
question_ids: string[];
|
|
118
137
|
}[];
|
|
138
|
+
doc_type?: DOC_TYPES | undefined;
|
|
119
139
|
}>>;
|
|
120
140
|
}, "strip", z.ZodTypeAny, {
|
|
121
141
|
questionsWithRank: {
|
|
@@ -137,6 +157,7 @@ declare const QuestionnaireSchema: z.ZodObject<{
|
|
|
137
157
|
operation: string;
|
|
138
158
|
question_ids: string[];
|
|
139
159
|
}[];
|
|
160
|
+
doc_type?: DOC_TYPES | undefined;
|
|
140
161
|
}>;
|
|
141
162
|
}, {
|
|
142
163
|
questionsWithRank: {
|
|
@@ -158,6 +179,7 @@ declare const QuestionnaireSchema: z.ZodObject<{
|
|
|
158
179
|
operation: string;
|
|
159
180
|
question_ids: string[];
|
|
160
181
|
}[];
|
|
182
|
+
doc_type?: DOC_TYPES | undefined;
|
|
161
183
|
}>;
|
|
162
184
|
}>;
|
|
163
185
|
declare const ApplicationSchema: z.ZodObject<{
|
|
@@ -5293,4 +5315,4 @@ declare const EDCFlow: {
|
|
|
5293
5315
|
};
|
|
5294
5316
|
};
|
|
5295
5317
|
|
|
5296
|
-
export { APPLICATION_STATUS, APPLICATION_TAGS, AnswerSchema, type ApiResponse, ApplicationSchema, type EDCConfig, EDCFlowProvider, INTERNAL_ORDER_TAGS, PROCESSING_BLOCKED_ON_PAYMENT_STATUS, QuestionnaireSchema, TA_QC_EXTRACTION_STATUS, type TAddTravellerPayload, type TAnswer, type TEDCApplicant, TIMELINE_STEP, type TQuestionWithAnswer, type TQuestionnaire, type TRenderRule, type TTraveller, type TUpdateAnswerPayload, type TUpdateTravellerPayload, type TUploadProgressEvent, type TVisaOrder, TimelinePaymentStatus, TravellerSchema, type UploadProgressEvent, VISA_TYPE_INTERNAL_TAGS, createAllQuestionsWithAnswers, createApplicantData, EDCFlow as default, filterConditionalQuestions, formatAnswerFromResponse, formatTravellerFromResponse, getSignedUrlFromAsset, getVisibleQuestions, initializeEDCFlow, updateApplicantWithAnswer, useEDCFlow };
|
|
5318
|
+
export { ANSWER_SOURCE, APPLICATION_STATUS, APPLICATION_TAGS, AnswerSchema, type ApiResponse, ApplicationSchema, DOC_TYPES, type EDCConfig, EDCFlowProvider, INTERNAL_ORDER_TAGS, PROCESSING_BLOCKED_ON_PAYMENT_STATUS, QUESTION_TYPE, QuestionnaireSchema, TA_QC_EXTRACTION_STATUS, type TAddTravellerPayload, type TAnswer, type TEDCApplicant, TIMELINE_STEP, type TQuestionWithAnswer, type TQuestionnaire, type TRenderRule, type TTraveller, type TUpdateAnswerPayload, type TUpdateTravellerPayload, type TUploadProgressEvent, type TVisaOrder, TimelinePaymentStatus, TravellerSchema, type UploadProgressEvent, VISA_TYPE_INTERNAL_TAGS, createAllQuestionsWithAnswers, createApplicantData, EDCFlow as default, filterConditionalQuestions, formatAnswerFromResponse, formatTravellerFromResponse, getSignedUrlFromAsset, getVisibleQuestions, initializeEDCFlow, updateApplicantWithAnswer, useEDCFlow };
|
package/dist/index.js
CHANGED
|
@@ -78,6 +78,24 @@ var APPLICATION_TAGS = /* @__PURE__ */ ((APPLICATION_TAGS2) => {
|
|
|
78
78
|
APPLICATION_TAGS2["DUPLICATE_TRAVELLER"] = "DUPLICATE_TRAVELLER";
|
|
79
79
|
return APPLICATION_TAGS2;
|
|
80
80
|
})(APPLICATION_TAGS || {});
|
|
81
|
+
var DOC_TYPES = /* @__PURE__ */ ((DOC_TYPES2) => {
|
|
82
|
+
DOC_TYPES2["UNCLASSIFIED"] = "UNCLASSIFIED";
|
|
83
|
+
DOC_TYPES2["PASSPORT_FRONT"] = "PASSPORT_FRONT";
|
|
84
|
+
DOC_TYPES2["PHOTO"] = "PHOTO";
|
|
85
|
+
DOC_TYPES2["PASSPORT_BACK"] = "PASSPORT_BACK";
|
|
86
|
+
DOC_TYPES2["PAN_CARD"] = "PAN_CARD";
|
|
87
|
+
DOC_TYPES2["ARRIVAL_FLIGHT_TICKET"] = "ARRIVAL_FLIGHT_TICKET";
|
|
88
|
+
DOC_TYPES2["DEPARTURE_FLIGHT_TICKET"] = "DEPARTURE_FLIGHT_TICKET";
|
|
89
|
+
DOC_TYPES2["BANK_STATEMENT"] = "BANK_STATEMENT";
|
|
90
|
+
DOC_TYPES2["HOTEL_TICKET"] = "HOTEL_TICKET";
|
|
91
|
+
DOC_TYPES2["COVER_LETTER"] = "COVER_LETTER";
|
|
92
|
+
DOC_TYPES2["ITR"] = "ITR";
|
|
93
|
+
DOC_TYPES2["BUSINESS_ITR"] = "BUSINESS_ITR";
|
|
94
|
+
DOC_TYPES2["BIRTH_CERTIFICATE"] = "BIRTH_CERTIFICATE";
|
|
95
|
+
DOC_TYPES2["UNWANTED"] = "UNWANTED";
|
|
96
|
+
DOC_TYPES2["BULK_ZIP"] = "BULK_ZIP";
|
|
97
|
+
return DOC_TYPES2;
|
|
98
|
+
})(DOC_TYPES || {});
|
|
81
99
|
var ANSWER_SOURCE = /* @__PURE__ */ ((ANSWER_SOURCE2) => {
|
|
82
100
|
ANSWER_SOURCE2["USER_INPUT"] = "USER_INPUT";
|
|
83
101
|
ANSWER_SOURCE2["DOCUMENT"] = "DOCUMENT";
|
|
@@ -118,6 +136,7 @@ var QuestionnaireSchema = z2__namespace.object({
|
|
|
118
136
|
is_required: z2__namespace.boolean(),
|
|
119
137
|
is_root: z2__namespace.boolean(),
|
|
120
138
|
type: z2__namespace.nativeEnum(QUESTION_TYPE),
|
|
139
|
+
doc_type: z2__namespace.nativeEnum(DOC_TYPES).optional(),
|
|
121
140
|
renders: z2__namespace.array(
|
|
122
141
|
z2__namespace.object({
|
|
123
142
|
operation: z2__namespace.string(),
|
|
@@ -1389,13 +1408,16 @@ var EDCFlow = {
|
|
|
1389
1408
|
};
|
|
1390
1409
|
var index_default = EDCFlow;
|
|
1391
1410
|
|
|
1411
|
+
exports.ANSWER_SOURCE = ANSWER_SOURCE;
|
|
1392
1412
|
exports.APPLICATION_STATUS = APPLICATION_STATUS;
|
|
1393
1413
|
exports.APPLICATION_TAGS = APPLICATION_TAGS;
|
|
1394
1414
|
exports.AnswerSchema = AnswerSchema;
|
|
1395
1415
|
exports.ApplicationSchema = ApplicationSchema;
|
|
1416
|
+
exports.DOC_TYPES = DOC_TYPES;
|
|
1396
1417
|
exports.EDCFlowProvider = EDCFlowProvider;
|
|
1397
1418
|
exports.INTERNAL_ORDER_TAGS = INTERNAL_ORDER_TAGS;
|
|
1398
1419
|
exports.PROCESSING_BLOCKED_ON_PAYMENT_STATUS = PROCESSING_BLOCKED_ON_PAYMENT_STATUS;
|
|
1420
|
+
exports.QUESTION_TYPE = QUESTION_TYPE;
|
|
1399
1421
|
exports.QuestionnaireSchema = QuestionnaireSchema;
|
|
1400
1422
|
exports.TA_QC_EXTRACTION_STATUS = TA_QC_EXTRACTION_STATUS;
|
|
1401
1423
|
exports.TIMELINE_STEP = TIMELINE_STEP;
|
package/dist/index.mjs
CHANGED
|
@@ -52,6 +52,24 @@ var APPLICATION_TAGS = /* @__PURE__ */ ((APPLICATION_TAGS2) => {
|
|
|
52
52
|
APPLICATION_TAGS2["DUPLICATE_TRAVELLER"] = "DUPLICATE_TRAVELLER";
|
|
53
53
|
return APPLICATION_TAGS2;
|
|
54
54
|
})(APPLICATION_TAGS || {});
|
|
55
|
+
var DOC_TYPES = /* @__PURE__ */ ((DOC_TYPES2) => {
|
|
56
|
+
DOC_TYPES2["UNCLASSIFIED"] = "UNCLASSIFIED";
|
|
57
|
+
DOC_TYPES2["PASSPORT_FRONT"] = "PASSPORT_FRONT";
|
|
58
|
+
DOC_TYPES2["PHOTO"] = "PHOTO";
|
|
59
|
+
DOC_TYPES2["PASSPORT_BACK"] = "PASSPORT_BACK";
|
|
60
|
+
DOC_TYPES2["PAN_CARD"] = "PAN_CARD";
|
|
61
|
+
DOC_TYPES2["ARRIVAL_FLIGHT_TICKET"] = "ARRIVAL_FLIGHT_TICKET";
|
|
62
|
+
DOC_TYPES2["DEPARTURE_FLIGHT_TICKET"] = "DEPARTURE_FLIGHT_TICKET";
|
|
63
|
+
DOC_TYPES2["BANK_STATEMENT"] = "BANK_STATEMENT";
|
|
64
|
+
DOC_TYPES2["HOTEL_TICKET"] = "HOTEL_TICKET";
|
|
65
|
+
DOC_TYPES2["COVER_LETTER"] = "COVER_LETTER";
|
|
66
|
+
DOC_TYPES2["ITR"] = "ITR";
|
|
67
|
+
DOC_TYPES2["BUSINESS_ITR"] = "BUSINESS_ITR";
|
|
68
|
+
DOC_TYPES2["BIRTH_CERTIFICATE"] = "BIRTH_CERTIFICATE";
|
|
69
|
+
DOC_TYPES2["UNWANTED"] = "UNWANTED";
|
|
70
|
+
DOC_TYPES2["BULK_ZIP"] = "BULK_ZIP";
|
|
71
|
+
return DOC_TYPES2;
|
|
72
|
+
})(DOC_TYPES || {});
|
|
55
73
|
var ANSWER_SOURCE = /* @__PURE__ */ ((ANSWER_SOURCE2) => {
|
|
56
74
|
ANSWER_SOURCE2["USER_INPUT"] = "USER_INPUT";
|
|
57
75
|
ANSWER_SOURCE2["DOCUMENT"] = "DOCUMENT";
|
|
@@ -92,6 +110,7 @@ var QuestionnaireSchema = z2.object({
|
|
|
92
110
|
is_required: z2.boolean(),
|
|
93
111
|
is_root: z2.boolean(),
|
|
94
112
|
type: z2.nativeEnum(QUESTION_TYPE),
|
|
113
|
+
doc_type: z2.nativeEnum(DOC_TYPES).optional(),
|
|
95
114
|
renders: z2.array(
|
|
96
115
|
z2.object({
|
|
97
116
|
operation: z2.string(),
|
|
@@ -1363,4 +1382,4 @@ var EDCFlow = {
|
|
|
1363
1382
|
};
|
|
1364
1383
|
var index_default = EDCFlow;
|
|
1365
1384
|
|
|
1366
|
-
export { APPLICATION_STATUS, APPLICATION_TAGS, AnswerSchema, ApplicationSchema, EDCFlowProvider, INTERNAL_ORDER_TAGS, PROCESSING_BLOCKED_ON_PAYMENT_STATUS, QuestionnaireSchema, TA_QC_EXTRACTION_STATUS, TIMELINE_STEP, TimelinePaymentStatus, TravellerSchema, VISA_TYPE_INTERNAL_TAGS, createAllQuestionsWithAnswers, createApplicantData, index_default as default, filterConditionalQuestions, formatAnswerFromResponse, formatTravellerFromResponse, getSignedUrlFromAsset, getVisibleQuestions, initializeEDCFlow, updateApplicantWithAnswer, useEDCFlow };
|
|
1385
|
+
export { ANSWER_SOURCE, APPLICATION_STATUS, APPLICATION_TAGS, AnswerSchema, ApplicationSchema, DOC_TYPES, EDCFlowProvider, INTERNAL_ORDER_TAGS, PROCESSING_BLOCKED_ON_PAYMENT_STATUS, QUESTION_TYPE, QuestionnaireSchema, TA_QC_EXTRACTION_STATUS, TIMELINE_STEP, TimelinePaymentStatus, TravellerSchema, VISA_TYPE_INTERNAL_TAGS, createAllQuestionsWithAnswers, createApplicantData, index_default as default, filterConditionalQuestions, formatAnswerFromResponse, formatTravellerFromResponse, getSignedUrlFromAsset, getVisibleQuestions, initializeEDCFlow, updateApplicantWithAnswer, useEDCFlow };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smvtech/x-flux",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
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",
|