@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.
@@ -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,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: "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]
948
954
  }
949
955
  });
950
956
  var i508 = createForm({
951
957
  displayName: "I-508",
952
958
  roles: {
953
- Beneficiary: "USERPROFILE",
954
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
961
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
968
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
975
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
982
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
989
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
996
- Beneficiary: "USERPROFILE",
997
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
1004
- Beneficiary: "USERPROFILE",
1005
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
1012
- Beneficiary: "USERPROFILE",
1013
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
1020
- Preparer: "PREPARERPROFILE"
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: "CLIENTPROFILE",
1027
- Beneficiary: "USERPROFILE",
1028
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
1035
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE",
1042
- Beneficiary: "USERPROFILE",
1043
- Preparer: "PREPARERPROFILE"
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: "USERPROFILE"
1055
+ Beneficiary: [GlueRoleType.USERPROFILE]
1050
1056
  }
1051
1057
  });
1052
1058
  const formRecords = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ailaw/venus",
3
- "version": "0.13.8",
3
+ "version": "0.13.9",
4
4
  "files": [
5
5
  "dist"
6
6
  ],