@ailaw/venus 0.13.8 → 0.13.9
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/types/form.d.ts +4 -4
- package/dist/types/profile.d.ts +5 -0
- package/dist/venus.es.js +73 -67
- package/package.json +1 -1
package/dist/types/form.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GlueRoleType } from './profile';
|
|
2
2
|
export interface Form {
|
|
3
3
|
displayName: string;
|
|
4
4
|
roles: {
|
|
5
|
-
Petitioner?:
|
|
6
|
-
Beneficiary?:
|
|
7
|
-
Preparer?:
|
|
5
|
+
Petitioner?: GlueRoleType[];
|
|
6
|
+
Beneficiary?: GlueRoleType[];
|
|
7
|
+
Preparer?: GlueRoleType[];
|
|
8
8
|
};
|
|
9
9
|
}
|
package/dist/types/profile.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
export declare type RoleType = 'USERPROFILE' | 'CLIENTPROFILE' | 'PREPARERPROFILE';
|
|
2
|
+
export declare enum GlueRoleType {
|
|
3
|
+
USERPROFILE = 0,
|
|
4
|
+
CLIENTPROFILE = 1,
|
|
5
|
+
PREPARERPROFILE = 2
|
|
6
|
+
}
|
|
2
7
|
export interface Profile {
|
|
3
8
|
id: number;
|
|
4
9
|
profileContent: Record<string, any>;
|
package/dist/venus.es.js
CHANGED
|
@@ -837,216 +837,222 @@ async function getLanguageMessage(lang) {
|
|
|
837
837
|
return loaded.get(lang);
|
|
838
838
|
}
|
|
839
839
|
const createForm = (form) => form;
|
|
840
|
+
var GlueRoleType;
|
|
841
|
+
(function(GlueRoleType2) {
|
|
842
|
+
GlueRoleType2[GlueRoleType2["USERPROFILE"] = 0] = "USERPROFILE";
|
|
843
|
+
GlueRoleType2[GlueRoleType2["CLIENTPROFILE"] = 1] = "CLIENTPROFILE";
|
|
844
|
+
GlueRoleType2[GlueRoleType2["PREPARERPROFILE"] = 2] = "PREPARERPROFILE";
|
|
845
|
+
})(GlueRoleType || (GlueRoleType = {}));
|
|
840
846
|
var g28Company = createForm({
|
|
841
847
|
displayName: "G-28-Company",
|
|
842
848
|
roles: {
|
|
843
|
-
Petitioner:
|
|
844
|
-
Beneficiary:
|
|
845
|
-
Preparer:
|
|
849
|
+
Petitioner: [GlueRoleType.CLIENTPROFILE],
|
|
850
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
851
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
846
852
|
}
|
|
847
853
|
});
|
|
848
854
|
var g28Person = createForm({
|
|
849
855
|
displayName: "G-28-Person",
|
|
850
856
|
roles: {
|
|
851
|
-
Petitioner:
|
|
852
|
-
Beneficiary:
|
|
853
|
-
Preparer:
|
|
857
|
+
Petitioner: [GlueRoleType.USERPROFILE],
|
|
858
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
859
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
854
860
|
}
|
|
855
861
|
});
|
|
856
862
|
var g639 = createForm({
|
|
857
863
|
displayName: "G-639",
|
|
858
864
|
roles: {
|
|
859
|
-
Beneficiary:
|
|
860
|
-
Preparer:
|
|
865
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
866
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
861
867
|
}
|
|
862
868
|
});
|
|
863
869
|
var g1145 = createForm({
|
|
864
870
|
displayName: "G-1145",
|
|
865
871
|
roles: {
|
|
866
|
-
Petitioner:
|
|
867
|
-
Beneficiary:
|
|
868
|
-
Preparer:
|
|
872
|
+
Petitioner: [GlueRoleType.USERPROFILE],
|
|
873
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
874
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
869
875
|
}
|
|
870
876
|
});
|
|
871
877
|
var g1450 = createForm({
|
|
872
878
|
displayName: "G-1450",
|
|
873
879
|
roles: {
|
|
874
|
-
Beneficiary:
|
|
880
|
+
Beneficiary: [GlueRoleType.USERPROFILE]
|
|
875
881
|
}
|
|
876
882
|
});
|
|
877
883
|
var i129Attachment = createForm({
|
|
878
884
|
displayName: "I-129 Attachment",
|
|
879
885
|
roles: {
|
|
880
|
-
Beneficiary:
|
|
886
|
+
Beneficiary: [GlueRoleType.USERPROFILE]
|
|
881
887
|
}
|
|
882
888
|
});
|
|
883
889
|
var i129TAS = createForm({
|
|
884
890
|
displayName: "I-129 Trade Agreement Supplement",
|
|
885
891
|
roles: {
|
|
886
|
-
Petitioner:
|
|
887
|
-
Beneficiary:
|
|
888
|
-
Preparer:
|
|
892
|
+
Petitioner: [GlueRoleType.CLIENTPROFILE],
|
|
893
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
894
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
889
895
|
}
|
|
890
896
|
});
|
|
891
897
|
var i129HS = createForm({
|
|
892
898
|
displayName: "I-129 with H Supplement-Company Petitioner",
|
|
893
899
|
roles: {
|
|
894
|
-
Petitioner:
|
|
895
|
-
Beneficiary:
|
|
896
|
-
Preparer:
|
|
900
|
+
Petitioner: [GlueRoleType.CLIENTPROFILE],
|
|
901
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
902
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
897
903
|
}
|
|
898
904
|
});
|
|
899
905
|
var i130 = createForm({
|
|
900
906
|
displayName: "I-130",
|
|
901
907
|
roles: {
|
|
902
|
-
Petitioner:
|
|
903
|
-
Beneficiary:
|
|
904
|
-
Preparer:
|
|
908
|
+
Petitioner: [GlueRoleType.USERPROFILE],
|
|
909
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
910
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
905
911
|
}
|
|
906
912
|
});
|
|
907
913
|
var i130A = createForm({
|
|
908
914
|
displayName: "I-130A",
|
|
909
915
|
roles: {
|
|
910
|
-
Beneficiary:
|
|
911
|
-
Preparer:
|
|
916
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
917
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
912
918
|
}
|
|
913
919
|
});
|
|
914
920
|
var i131 = createForm({
|
|
915
921
|
displayName: "I-131",
|
|
916
922
|
roles: {
|
|
917
|
-
Beneficiary:
|
|
918
|
-
Preparer:
|
|
923
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
924
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
919
925
|
}
|
|
920
926
|
});
|
|
921
927
|
var i134 = createForm({
|
|
922
928
|
displayName: "I-134",
|
|
923
929
|
roles: {
|
|
924
|
-
Beneficiary:
|
|
925
|
-
Petitioner:
|
|
926
|
-
Preparer:
|
|
930
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
931
|
+
Petitioner: [GlueRoleType.USERPROFILE],
|
|
932
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
927
933
|
}
|
|
928
934
|
});
|
|
929
935
|
var i192 = createForm({
|
|
930
936
|
displayName: "I-192",
|
|
931
937
|
roles: {
|
|
932
|
-
Beneficiary:
|
|
933
|
-
Preparer:
|
|
938
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
939
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
934
940
|
}
|
|
935
941
|
});
|
|
936
942
|
var i485 = createForm({
|
|
937
943
|
displayName: "I-485",
|
|
938
944
|
roles: {
|
|
939
|
-
Beneficiary:
|
|
940
|
-
Preparer:
|
|
945
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
946
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
941
947
|
}
|
|
942
948
|
});
|
|
943
949
|
var i485A = createForm({
|
|
944
950
|
displayName: "I-485A",
|
|
945
951
|
roles: {
|
|
946
|
-
Beneficiary:
|
|
947
|
-
Preparer:
|
|
952
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
953
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
948
954
|
}
|
|
949
955
|
});
|
|
950
956
|
var i508 = createForm({
|
|
951
957
|
displayName: "I-508",
|
|
952
958
|
roles: {
|
|
953
|
-
Beneficiary:
|
|
954
|
-
Preparer:
|
|
959
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
960
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
955
961
|
}
|
|
956
962
|
});
|
|
957
963
|
var i539 = createForm({
|
|
958
964
|
displayName: "I-539",
|
|
959
965
|
roles: {
|
|
960
|
-
Beneficiary:
|
|
961
|
-
Preparer:
|
|
966
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
967
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
962
968
|
}
|
|
963
969
|
});
|
|
964
970
|
var i539A = createForm({
|
|
965
971
|
displayName: "I-539A",
|
|
966
972
|
roles: {
|
|
967
|
-
Beneficiary:
|
|
968
|
-
Preparer:
|
|
973
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
974
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
969
975
|
}
|
|
970
976
|
});
|
|
971
977
|
var i589 = createForm({
|
|
972
978
|
displayName: "I-589",
|
|
973
979
|
roles: {
|
|
974
|
-
Beneficiary:
|
|
975
|
-
Preparer:
|
|
980
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
981
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
976
982
|
}
|
|
977
983
|
});
|
|
978
984
|
var i601A = createForm({
|
|
979
985
|
displayName: "I-601A",
|
|
980
986
|
roles: {
|
|
981
|
-
Beneficiary:
|
|
982
|
-
Preparer:
|
|
987
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
988
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
983
989
|
}
|
|
984
990
|
});
|
|
985
991
|
var i765 = createForm({
|
|
986
992
|
displayName: "I-765",
|
|
987
993
|
roles: {
|
|
988
|
-
Beneficiary:
|
|
989
|
-
Preparer:
|
|
994
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
995
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
990
996
|
}
|
|
991
997
|
});
|
|
992
998
|
var i864 = createForm({
|
|
993
999
|
displayName: "I-864",
|
|
994
1000
|
roles: {
|
|
995
|
-
Petitioner:
|
|
996
|
-
Beneficiary:
|
|
997
|
-
Preparer:
|
|
1001
|
+
Petitioner: [GlueRoleType.USERPROFILE],
|
|
1002
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
1003
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
998
1004
|
}
|
|
999
1005
|
});
|
|
1000
1006
|
var i864A = createForm({
|
|
1001
1007
|
displayName: "I-864A",
|
|
1002
1008
|
roles: {
|
|
1003
|
-
Petitioner:
|
|
1004
|
-
Beneficiary:
|
|
1005
|
-
Preparer:
|
|
1009
|
+
Petitioner: [GlueRoleType.USERPROFILE],
|
|
1010
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
1011
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
1006
1012
|
}
|
|
1007
1013
|
});
|
|
1008
1014
|
var i864EZ = createForm({
|
|
1009
1015
|
displayName: "I-864EZ",
|
|
1010
1016
|
roles: {
|
|
1011
|
-
Petitioner:
|
|
1012
|
-
Beneficiary:
|
|
1013
|
-
Preparer:
|
|
1017
|
+
Petitioner: [GlueRoleType.USERPROFILE],
|
|
1018
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
1019
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
1014
1020
|
}
|
|
1015
1021
|
});
|
|
1016
1022
|
var i864W = createForm({
|
|
1017
1023
|
displayName: "I-864W",
|
|
1018
1024
|
roles: {
|
|
1019
|
-
Beneficiary:
|
|
1020
|
-
Preparer:
|
|
1025
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
1026
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
1021
1027
|
}
|
|
1022
1028
|
});
|
|
1023
1029
|
var i907 = createForm({
|
|
1024
1030
|
displayName: "I-907",
|
|
1025
1031
|
roles: {
|
|
1026
|
-
Petitioner:
|
|
1027
|
-
Beneficiary:
|
|
1028
|
-
Preparer:
|
|
1032
|
+
Petitioner: [GlueRoleType.CLIENTPROFILE],
|
|
1033
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
1034
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
1029
1035
|
}
|
|
1030
1036
|
});
|
|
1031
1037
|
var i918 = createForm({
|
|
1032
1038
|
displayName: "I-918",
|
|
1033
1039
|
roles: {
|
|
1034
|
-
Beneficiary:
|
|
1035
|
-
Preparer:
|
|
1040
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
1041
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
1036
1042
|
}
|
|
1037
1043
|
});
|
|
1038
1044
|
var i918A = createForm({
|
|
1039
1045
|
displayName: "I-918A",
|
|
1040
1046
|
roles: {
|
|
1041
|
-
Petitioner:
|
|
1042
|
-
Beneficiary:
|
|
1043
|
-
Preparer:
|
|
1047
|
+
Petitioner: [GlueRoleType.USERPROFILE],
|
|
1048
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
1049
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
1044
1050
|
}
|
|
1045
1051
|
});
|
|
1046
1052
|
var i918B = createForm({
|
|
1047
1053
|
displayName: "I-918B",
|
|
1048
1054
|
roles: {
|
|
1049
|
-
Beneficiary:
|
|
1055
|
+
Beneficiary: [GlueRoleType.USERPROFILE]
|
|
1050
1056
|
}
|
|
1051
1057
|
});
|
|
1052
1058
|
const formRecords = {
|