@ailaw/venus 0.13.6 → 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.
@@ -0,0 +1,2 @@
1
+ declare const _default: import("../types/form").Form;
2
+ export default _default;
@@ -14,6 +14,7 @@ export declare const formRecords: {
14
14
  i192: import("../types/form").Form;
15
15
  i485: import("../types/form").Form;
16
16
  i485A: import("../types/form").Form;
17
+ i508: import("../types/form").Form;
17
18
  i539: import("../types/form").Form;
18
19
  i539A: import("../types/form").Form;
19
20
  i589: import("../types/form").Form;
@@ -1,9 +1,9 @@
1
- import { RoleType } from './profile';
1
+ import { GlueRoleType } from './profile';
2
2
  export interface Form {
3
3
  displayName: string;
4
4
  roles: {
5
- Petitioner?: RoleType;
6
- Beneficiary?: RoleType;
7
- Preparer?: RoleType;
5
+ Petitioner?: GlueRoleType[];
6
+ Beneficiary?: GlueRoleType[];
7
+ Preparer?: GlueRoleType[];
8
8
  };
9
9
  }
@@ -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,209 +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: "CLIENTPROFILE",
844
- Beneficiary: "USERPROFILE",
845
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
852
- Beneficiary: "USERPROFILE",
853
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
860
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
867
- Beneficiary: "USERPROFILE",
868
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE"
880
+ Beneficiary: [GlueRoleType.USERPROFILE]
875
881
  }
876
882
  });
877
883
  var i129Attachment = createForm({
878
884
  displayName: "I-129 Attachment",
879
885
  roles: {
880
- Beneficiary: "USERPROFILE"
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: "CLIENTPROFILE",
887
- Beneficiary: "USERPROFILE",
888
- Preparer: "PREPARERPROFILE"
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: "CLIENTPROFILE",
895
- Beneficiary: "USERPROFILE",
896
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
903
- Beneficiary: "USERPROFILE",
904
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
911
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
918
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
925
- Petitioner: "USERPROFILE",
926
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
933
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
940
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
947
- Preparer: "PREPARERPROFILE"
952
+ Beneficiary: [GlueRoleType.USERPROFILE],
953
+ Preparer: [GlueRoleType.PREPARERPROFILE]
954
+ }
955
+ });
956
+ var i508 = createForm({
957
+ displayName: "I-508",
958
+ roles: {
959
+ Beneficiary: [GlueRoleType.USERPROFILE],
960
+ Preparer: [GlueRoleType.PREPARERPROFILE]
948
961
  }
949
962
  });
950
963
  var i539 = createForm({
951
964
  displayName: "I-539",
952
965
  roles: {
953
- Beneficiary: "USERPROFILE",
954
- Preparer: "PREPARERPROFILE"
966
+ Beneficiary: [GlueRoleType.USERPROFILE],
967
+ Preparer: [GlueRoleType.PREPARERPROFILE]
955
968
  }
956
969
  });
957
970
  var i539A = createForm({
958
971
  displayName: "I-539A",
959
972
  roles: {
960
- Beneficiary: "USERPROFILE",
961
- Preparer: "PREPARERPROFILE"
973
+ Beneficiary: [GlueRoleType.USERPROFILE],
974
+ Preparer: [GlueRoleType.PREPARERPROFILE]
962
975
  }
963
976
  });
964
977
  var i589 = createForm({
965
978
  displayName: "I-589",
966
979
  roles: {
967
- Beneficiary: "USERPROFILE",
968
- Preparer: "PREPARERPROFILE"
980
+ Beneficiary: [GlueRoleType.USERPROFILE],
981
+ Preparer: [GlueRoleType.PREPARERPROFILE]
969
982
  }
970
983
  });
971
984
  var i601A = createForm({
972
985
  displayName: "I-601A",
973
986
  roles: {
974
- Beneficiary: "USERPROFILE",
975
- Preparer: "PREPARERPROFILE"
987
+ Beneficiary: [GlueRoleType.USERPROFILE],
988
+ Preparer: [GlueRoleType.PREPARERPROFILE]
976
989
  }
977
990
  });
978
991
  var i765 = createForm({
979
992
  displayName: "I-765",
980
993
  roles: {
981
- Beneficiary: "USERPROFILE",
982
- Preparer: "PREPARERPROFILE"
994
+ Beneficiary: [GlueRoleType.USERPROFILE],
995
+ Preparer: [GlueRoleType.PREPARERPROFILE]
983
996
  }
984
997
  });
985
998
  var i864 = createForm({
986
999
  displayName: "I-864",
987
1000
  roles: {
988
- Petitioner: "USERPROFILE",
989
- Beneficiary: "USERPROFILE",
990
- Preparer: "PREPARERPROFILE"
1001
+ Petitioner: [GlueRoleType.USERPROFILE],
1002
+ Beneficiary: [GlueRoleType.USERPROFILE],
1003
+ Preparer: [GlueRoleType.PREPARERPROFILE]
991
1004
  }
992
1005
  });
993
1006
  var i864A = createForm({
994
1007
  displayName: "I-864A",
995
1008
  roles: {
996
- Petitioner: "USERPROFILE",
997
- Beneficiary: "USERPROFILE",
998
- Preparer: "PREPARERPROFILE"
1009
+ Petitioner: [GlueRoleType.USERPROFILE],
1010
+ Beneficiary: [GlueRoleType.USERPROFILE],
1011
+ Preparer: [GlueRoleType.PREPARERPROFILE]
999
1012
  }
1000
1013
  });
1001
1014
  var i864EZ = createForm({
1002
1015
  displayName: "I-864EZ",
1003
1016
  roles: {
1004
- Petitioner: "USERPROFILE",
1005
- Beneficiary: "USERPROFILE",
1006
- Preparer: "PREPARERPROFILE"
1017
+ Petitioner: [GlueRoleType.USERPROFILE],
1018
+ Beneficiary: [GlueRoleType.USERPROFILE],
1019
+ Preparer: [GlueRoleType.PREPARERPROFILE]
1007
1020
  }
1008
1021
  });
1009
1022
  var i864W = createForm({
1010
1023
  displayName: "I-864W",
1011
1024
  roles: {
1012
- Beneficiary: "USERPROFILE",
1013
- Preparer: "PREPARERPROFILE"
1025
+ Beneficiary: [GlueRoleType.USERPROFILE],
1026
+ Preparer: [GlueRoleType.PREPARERPROFILE]
1014
1027
  }
1015
1028
  });
1016
1029
  var i907 = createForm({
1017
1030
  displayName: "I-907",
1018
1031
  roles: {
1019
- Petitioner: "CLIENTPROFILE",
1020
- Beneficiary: "USERPROFILE",
1021
- Preparer: "PREPARERPROFILE"
1032
+ Petitioner: [GlueRoleType.CLIENTPROFILE],
1033
+ Beneficiary: [GlueRoleType.USERPROFILE],
1034
+ Preparer: [GlueRoleType.PREPARERPROFILE]
1022
1035
  }
1023
1036
  });
1024
1037
  var i918 = createForm({
1025
1038
  displayName: "I-918",
1026
1039
  roles: {
1027
- Beneficiary: "USERPROFILE",
1028
- Preparer: "PREPARERPROFILE"
1040
+ Beneficiary: [GlueRoleType.USERPROFILE],
1041
+ Preparer: [GlueRoleType.PREPARERPROFILE]
1029
1042
  }
1030
1043
  });
1031
1044
  var i918A = createForm({
1032
1045
  displayName: "I-918A",
1033
1046
  roles: {
1034
- Petitioner: "USERPROFILE",
1035
- Beneficiary: "USERPROFILE",
1036
- Preparer: "PREPARERPROFILE"
1047
+ Petitioner: [GlueRoleType.USERPROFILE],
1048
+ Beneficiary: [GlueRoleType.USERPROFILE],
1049
+ Preparer: [GlueRoleType.PREPARERPROFILE]
1037
1050
  }
1038
1051
  });
1039
1052
  var i918B = createForm({
1040
1053
  displayName: "I-918B",
1041
1054
  roles: {
1042
- Beneficiary: "USERPROFILE"
1055
+ Beneficiary: [GlueRoleType.USERPROFILE]
1043
1056
  }
1044
1057
  });
1045
1058
  const formRecords = {
@@ -1058,6 +1071,7 @@ const formRecords = {
1058
1071
  i192,
1059
1072
  i485,
1060
1073
  i485A,
1074
+ i508,
1061
1075
  i539,
1062
1076
  i539A,
1063
1077
  i589,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ailaw/venus",
3
- "version": "0.13.6",
3
+ "version": "0.13.9",
4
4
  "files": [
5
5
  "dist"
6
6
  ],