@snapshot-labs/snapshot.js 0.12.18 → 0.12.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.
@@ -80,6 +80,7 @@ const proposalTypes = {
80
80
  { name: 'body', type: 'string' },
81
81
  { name: 'discussion', type: 'string' },
82
82
  { name: 'choices', type: 'string[]' },
83
+ { name: 'labels', type: 'string[]' },
83
84
  { name: 'start', type: 'uint64' },
84
85
  { name: 'end', type: 'uint64' },
85
86
  { name: 'snapshot', type: 'uint64' },
@@ -98,6 +99,7 @@ const updateProposalTypes = {
98
99
  { name: 'body', type: 'string' },
99
100
  { name: 'discussion', type: 'string' },
100
101
  { name: 'choices', type: 'string[]' },
102
+ { name: 'labels', type: 'string[]' },
101
103
  { name: 'plugins', type: 'string' }
102
104
  ]
103
105
  };
@@ -890,7 +892,6 @@ var definitions = {
890
892
  description: {
891
893
  type: "string",
892
894
  title: "Description",
893
- minLength: 1,
894
895
  maxLength: 100
895
896
  },
896
897
  color: {
@@ -902,7 +903,6 @@ var definitions = {
902
903
  required: [
903
904
  "id",
904
905
  "name",
905
- "description",
906
906
  "color"
907
907
  ],
908
908
  additionalProperties: false
@@ -990,6 +990,18 @@ var definitions$1 = {
990
990
  turbo: 1000
991
991
  }
992
992
  },
993
+ labels: {
994
+ type: "array",
995
+ title: "labels",
996
+ maxItems: 10,
997
+ uniqueItems: true,
998
+ items: {
999
+ type: "string",
1000
+ minLength: 1,
1001
+ maxLength: 8,
1002
+ pattern: "^[a-zA-Z0-9]+$"
1003
+ }
1004
+ },
993
1005
  type: {
994
1006
  type: "string",
995
1007
  "enum": [
@@ -1086,6 +1098,18 @@ var definitions$2 = {
1086
1098
  turbo: 1000
1087
1099
  }
1088
1100
  },
1101
+ labels: {
1102
+ type: "array",
1103
+ title: "labels",
1104
+ maxItems: 10,
1105
+ uniqueItems: true,
1106
+ items: {
1107
+ type: "string",
1108
+ minLength: 1,
1109
+ maxLength: 8,
1110
+ pattern: "^[a-zA-Z0-9]+$"
1111
+ }
1112
+ },
1089
1113
  type: {
1090
1114
  "enum": [
1091
1115
  "single-choice",
@@ -70,6 +70,7 @@ const proposalTypes = {
70
70
  { name: 'body', type: 'string' },
71
71
  { name: 'discussion', type: 'string' },
72
72
  { name: 'choices', type: 'string[]' },
73
+ { name: 'labels', type: 'string[]' },
73
74
  { name: 'start', type: 'uint64' },
74
75
  { name: 'end', type: 'uint64' },
75
76
  { name: 'snapshot', type: 'uint64' },
@@ -88,6 +89,7 @@ const updateProposalTypes = {
88
89
  { name: 'body', type: 'string' },
89
90
  { name: 'discussion', type: 'string' },
90
91
  { name: 'choices', type: 'string[]' },
92
+ { name: 'labels', type: 'string[]' },
91
93
  { name: 'plugins', type: 'string' }
92
94
  ]
93
95
  };
@@ -880,7 +882,6 @@ var definitions = {
880
882
  description: {
881
883
  type: "string",
882
884
  title: "Description",
883
- minLength: 1,
884
885
  maxLength: 100
885
886
  },
886
887
  color: {
@@ -892,7 +893,6 @@ var definitions = {
892
893
  required: [
893
894
  "id",
894
895
  "name",
895
- "description",
896
896
  "color"
897
897
  ],
898
898
  additionalProperties: false
@@ -980,6 +980,18 @@ var definitions$1 = {
980
980
  turbo: 1000
981
981
  }
982
982
  },
983
+ labels: {
984
+ type: "array",
985
+ title: "labels",
986
+ maxItems: 10,
987
+ uniqueItems: true,
988
+ items: {
989
+ type: "string",
990
+ minLength: 1,
991
+ maxLength: 8,
992
+ pattern: "^[a-zA-Z0-9]+$"
993
+ }
994
+ },
983
995
  type: {
984
996
  type: "string",
985
997
  "enum": [
@@ -1076,6 +1088,18 @@ var definitions$2 = {
1076
1088
  turbo: 1000
1077
1089
  }
1078
1090
  },
1091
+ labels: {
1092
+ type: "array",
1093
+ title: "labels",
1094
+ maxItems: 10,
1095
+ uniqueItems: true,
1096
+ items: {
1097
+ type: "string",
1098
+ minLength: 1,
1099
+ maxLength: 8,
1100
+ pattern: "^[a-zA-Z0-9]+$"
1101
+ }
1102
+ },
1079
1103
  type: {
1080
1104
  "enum": [
1081
1105
  "single-choice",