shred-api-client 2.2.4-rc.5 → 2.2.4-rc.7
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 +32 -31
- package/dist/index.d.ts +32 -31
- package/dist/index.js +117 -115
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +117 -115
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -939,252 +939,254 @@ var ProjectSchema = z4.object({
|
|
|
939
939
|
tenantId: z4.string().optional(),
|
|
940
940
|
status: z4.nativeEnum(Status2)
|
|
941
941
|
});
|
|
942
|
+
|
|
943
|
+
// src/model/project/Project.api.ts
|
|
944
|
+
var Endpoints3 = {
|
|
945
|
+
Reorder: { uri: "/projects/reorder/", method: "POST" },
|
|
946
|
+
List: { uri: "/projects/list", method: "GET" },
|
|
947
|
+
GetNext: { uri: "/projects/:userId/next", method: "GET" },
|
|
948
|
+
CreateProject: { uri: "/projects/create", method: "POST" },
|
|
949
|
+
FindOne: { uri: `/projects/:projectId/`, method: "GET" },
|
|
950
|
+
GetGoals: { uri: `/projects/goals/list/`, method: "GET" },
|
|
951
|
+
Review: { uri: "/projects/:projectId/review/", method: "POST" },
|
|
952
|
+
Cancel: { uri: "/projects/:projectId/cancel/", method: "DELETE" },
|
|
953
|
+
StartEdition: { uri: "/projects/edition/start/", method: "PUT" },
|
|
954
|
+
SendToApproval: {
|
|
955
|
+
uri: "/projects/:projectId/sendToApproval/",
|
|
956
|
+
method: "PUT"
|
|
957
|
+
},
|
|
958
|
+
IsEligibleForFreeProject: {
|
|
959
|
+
uri: "/projects/free/allowed/",
|
|
960
|
+
method: "GET"
|
|
961
|
+
},
|
|
962
|
+
Approve: { uri: "/projects/:projectId/approve/", method: "POST" },
|
|
963
|
+
Unschedule: { uri: "/projects/:projectId/unschedule/", method: "POST" },
|
|
964
|
+
Rollback: { uri: "/projects/:projectId/rollback/", method: "POST" },
|
|
965
|
+
Deny: { uri: "/projects/:projectId/deny/", method: "POST" },
|
|
966
|
+
GetUserHistory: { uri: "/projects/user/:userId/history/", method: "GET" },
|
|
967
|
+
GetPoolSize: { uri: "/projects/pool/size/", method: "GET" }
|
|
968
|
+
};
|
|
969
|
+
|
|
970
|
+
// src/model/project/StatusConfig.ts
|
|
942
971
|
var StatusConfig = {
|
|
943
972
|
[0 /* SUBMITTED */]: {
|
|
944
973
|
id: 0 /* SUBMITTED */,
|
|
945
974
|
label: "Submitted",
|
|
946
975
|
colors: {
|
|
947
|
-
text: "text-
|
|
948
|
-
bg: "bg-
|
|
949
|
-
border: "border-
|
|
950
|
-
dot: "bg-
|
|
976
|
+
text: "text-[#854D0E]",
|
|
977
|
+
bg: "bg-[#FEF9C3]",
|
|
978
|
+
border: "border-[#FEF08A]",
|
|
979
|
+
dot: "bg-[#A16207]"
|
|
951
980
|
},
|
|
952
981
|
thumbnail: {
|
|
953
|
-
primary: "bg-
|
|
954
|
-
secondary: "bg-
|
|
982
|
+
primary: "bg-[#FDE047]",
|
|
983
|
+
secondary: "bg-[#FEFCE8]"
|
|
955
984
|
},
|
|
956
985
|
icons: {
|
|
957
986
|
mobile: { primary: "#FACC15", secondary: "#FEF9C3" },
|
|
958
987
|
web: {
|
|
959
988
|
name: "Share",
|
|
960
|
-
iconColor: "text-
|
|
961
|
-
bgColor: "bg-
|
|
989
|
+
iconColor: "text-[#713F12]",
|
|
990
|
+
bgColor: "bg-[#FEF08A]"
|
|
962
991
|
}
|
|
963
992
|
},
|
|
964
993
|
progress: {
|
|
965
|
-
primary: "bg-
|
|
966
|
-
secondary: "bg-
|
|
967
|
-
border: "border-
|
|
994
|
+
primary: "bg-[#FACC15]",
|
|
995
|
+
secondary: "bg-[#FEFCE8]",
|
|
996
|
+
border: "border-[#FEF9C3]"
|
|
968
997
|
}
|
|
969
998
|
},
|
|
970
999
|
[1 /* EDITING */]: {
|
|
971
1000
|
id: 1 /* EDITING */,
|
|
972
1001
|
label: "In Progress",
|
|
973
1002
|
colors: {
|
|
974
|
-
text: "text-
|
|
975
|
-
bg: "bg-
|
|
976
|
-
border: "border-
|
|
977
|
-
dot: "bg-
|
|
1003
|
+
text: "text-[#7C3AED]",
|
|
1004
|
+
bg: "bg-[#F5F3FF]",
|
|
1005
|
+
border: "border-[#DDD6FE]",
|
|
1006
|
+
dot: "bg-[#7C3AED]"
|
|
978
1007
|
},
|
|
979
1008
|
thumbnail: {
|
|
980
|
-
primary: "bg-
|
|
981
|
-
secondary: "bg-
|
|
1009
|
+
primary: "bg-[#C4B5FD]",
|
|
1010
|
+
secondary: "bg-[#F5F3FF]"
|
|
982
1011
|
},
|
|
983
1012
|
icons: {
|
|
984
1013
|
mobile: { primary: "#A67EE7", secondary: "#C4A9EF" },
|
|
985
1014
|
web: {
|
|
986
1015
|
name: "Hourglass",
|
|
987
|
-
iconColor: "text-
|
|
988
|
-
bgColor: "bg-
|
|
1016
|
+
iconColor: "text-[#7C3AED]",
|
|
1017
|
+
bgColor: "bg-[#DDD6FE]"
|
|
989
1018
|
}
|
|
990
1019
|
},
|
|
991
1020
|
progress: {
|
|
992
|
-
primary: "bg-
|
|
993
|
-
secondary: "bg-
|
|
994
|
-
border: "border-
|
|
1021
|
+
primary: "bg-[#C4B5FD]",
|
|
1022
|
+
secondary: "bg-[#F5F3FF]",
|
|
1023
|
+
border: "border-[#EDE9FE]"
|
|
995
1024
|
}
|
|
996
1025
|
},
|
|
997
1026
|
[3 /* WAITING_APPROVE */]: {
|
|
998
1027
|
id: 3 /* WAITING_APPROVE */,
|
|
999
1028
|
label: "Waiting Approval",
|
|
1000
1029
|
colors: {
|
|
1001
|
-
text: "text-
|
|
1002
|
-
bg: "bg-
|
|
1003
|
-
border: "border-
|
|
1004
|
-
dot: "bg-
|
|
1030
|
+
text: "text-[#C2410C]",
|
|
1031
|
+
bg: "bg-[#FFEDD5]",
|
|
1032
|
+
border: "border-[#FED7AA]",
|
|
1033
|
+
dot: "bg-[#EA580C]"
|
|
1005
1034
|
},
|
|
1006
1035
|
thumbnail: {
|
|
1007
|
-
primary: "bg-
|
|
1008
|
-
secondary: "bg-
|
|
1036
|
+
primary: "bg-[#C4B5FD]",
|
|
1037
|
+
secondary: "bg-[#F5F3FF]"
|
|
1009
1038
|
},
|
|
1010
1039
|
icons: {
|
|
1011
1040
|
mobile: { primary: "#A67EE7", secondary: "#C4A9EF" },
|
|
1012
1041
|
web: {
|
|
1013
1042
|
name: "Clock",
|
|
1014
|
-
iconColor: "text-
|
|
1015
|
-
bgColor: "bg-
|
|
1043
|
+
iconColor: "text-[#C2410C]",
|
|
1044
|
+
bgColor: "bg-[#FED7AA]"
|
|
1016
1045
|
}
|
|
1017
1046
|
},
|
|
1018
1047
|
progress: {
|
|
1019
|
-
primary: "bg-
|
|
1020
|
-
secondary: "bg-
|
|
1021
|
-
border: "border-
|
|
1048
|
+
primary: "bg-[#FDBA74]",
|
|
1049
|
+
secondary: "bg-[#FFF7ED]",
|
|
1050
|
+
border: "border-[#FFEDD5]"
|
|
1022
1051
|
}
|
|
1023
1052
|
},
|
|
1024
1053
|
[4 /* DENIED */]: {
|
|
1025
1054
|
id: 4 /* DENIED */,
|
|
1026
1055
|
label: "Denied",
|
|
1027
1056
|
colors: {
|
|
1028
|
-
text: "text-
|
|
1029
|
-
bg: "bg-
|
|
1030
|
-
border: "border-
|
|
1031
|
-
dot: "bg-
|
|
1057
|
+
text: "text-[#EF4444]",
|
|
1058
|
+
bg: "bg-[#FEE2E2]",
|
|
1059
|
+
border: "border-[#FECACA]",
|
|
1060
|
+
dot: "bg-[#EF4444]"
|
|
1032
1061
|
},
|
|
1033
1062
|
thumbnail: {
|
|
1034
|
-
primary: "bg-
|
|
1035
|
-
secondary: "bg-
|
|
1063
|
+
primary: "bg-[#C4B5FD]",
|
|
1064
|
+
secondary: "bg-[#F5F3FF]"
|
|
1036
1065
|
},
|
|
1037
1066
|
icons: {
|
|
1038
1067
|
mobile: { primary: "#A67EE7", secondary: "#C4A9EF" },
|
|
1039
1068
|
web: {
|
|
1040
1069
|
name: "CircleX",
|
|
1041
|
-
iconColor: "text-
|
|
1042
|
-
bgColor: "bg-
|
|
1070
|
+
iconColor: "text-[#EF4444]",
|
|
1071
|
+
bgColor: "bg-[#FECACA]"
|
|
1043
1072
|
}
|
|
1044
1073
|
},
|
|
1045
1074
|
progress: {
|
|
1046
|
-
primary: "bg-
|
|
1047
|
-
secondary: "bg-
|
|
1048
|
-
border: "border-
|
|
1075
|
+
primary: "bg-[#FCA5A5]",
|
|
1076
|
+
secondary: "bg-[#FEF2F2]",
|
|
1077
|
+
border: "border-[#FEE2E2]"
|
|
1049
1078
|
}
|
|
1050
1079
|
},
|
|
1051
1080
|
[7 /* SCHEDULED */]: {
|
|
1052
1081
|
id: 7 /* SCHEDULED */,
|
|
1053
1082
|
label: "Scheduled",
|
|
1054
1083
|
colors: {
|
|
1055
|
-
text: "text-
|
|
1056
|
-
bg: "bg-
|
|
1057
|
-
border: "border-
|
|
1058
|
-
dot: "bg-
|
|
1084
|
+
text: "text-[#3F6212]",
|
|
1085
|
+
bg: "bg-[#ECFCCB]",
|
|
1086
|
+
border: "border-[#D9F99D]",
|
|
1087
|
+
dot: "bg-[#4D7C0F]"
|
|
1059
1088
|
},
|
|
1060
1089
|
thumbnail: {
|
|
1061
|
-
primary: "bg-
|
|
1062
|
-
secondary: "bg-
|
|
1090
|
+
primary: "bg-[#C4B5FD]",
|
|
1091
|
+
secondary: "bg-[#F5F3FF]"
|
|
1063
1092
|
},
|
|
1064
1093
|
icons: {
|
|
1065
1094
|
mobile: { primary: "#A67EE7", secondary: "#C4A9EF" },
|
|
1066
1095
|
web: {
|
|
1067
1096
|
name: "CalendarRange",
|
|
1068
|
-
iconColor: "text-
|
|
1069
|
-
bgColor: "bg-
|
|
1097
|
+
iconColor: "text-[#3F6212]",
|
|
1098
|
+
bgColor: "bg-[#D9F99D]"
|
|
1070
1099
|
}
|
|
1071
1100
|
},
|
|
1072
1101
|
progress: {
|
|
1073
|
-
primary: "bg-
|
|
1074
|
-
secondary: "bg-
|
|
1075
|
-
border: "border-
|
|
1102
|
+
primary: "bg-[#BEF264]",
|
|
1103
|
+
secondary: "bg-[#F7FEE7]",
|
|
1104
|
+
border: "border-[#ECFCCB]"
|
|
1076
1105
|
}
|
|
1077
1106
|
},
|
|
1078
1107
|
[2 /* COMPLETED */]: {
|
|
1079
1108
|
id: 2 /* COMPLETED */,
|
|
1080
1109
|
label: "Completed",
|
|
1081
1110
|
colors: {
|
|
1082
|
-
text: "text-
|
|
1083
|
-
bg: "bg-
|
|
1084
|
-
border: "border-
|
|
1085
|
-
dot: "bg-
|
|
1111
|
+
text: "text-[#16A34A]",
|
|
1112
|
+
bg: "bg-[#F0FDF4]",
|
|
1113
|
+
border: "border-[#DCFCE7]",
|
|
1114
|
+
dot: "bg-[#16A34A]"
|
|
1086
1115
|
},
|
|
1087
1116
|
thumbnail: {
|
|
1088
|
-
primary: "bg-
|
|
1089
|
-
secondary: "bg-
|
|
1117
|
+
primary: "bg-[#86EFAC]",
|
|
1118
|
+
secondary: "bg-[#F0FDF4]"
|
|
1090
1119
|
},
|
|
1091
1120
|
icons: {
|
|
1092
1121
|
mobile: { primary: "#22C55E", secondary: "#BBF7D0" },
|
|
1093
1122
|
web: {
|
|
1094
1123
|
name: "CircleCheck",
|
|
1095
|
-
iconColor: "text-
|
|
1096
|
-
bgColor: "bg-
|
|
1124
|
+
iconColor: "text-[#16A34A]",
|
|
1125
|
+
bgColor: "bg-[#DCFCE7]"
|
|
1097
1126
|
}
|
|
1098
1127
|
},
|
|
1099
1128
|
progress: {
|
|
1100
|
-
primary: "bg-
|
|
1101
|
-
secondary: "bg-
|
|
1102
|
-
border: "border-
|
|
1129
|
+
primary: "bg-[#4ADE80]",
|
|
1130
|
+
secondary: "bg-[#DCFCE7]",
|
|
1131
|
+
border: "border-[#BBF7D0]"
|
|
1103
1132
|
}
|
|
1104
1133
|
},
|
|
1105
1134
|
[5 /* REVISIONING */]: {
|
|
1106
1135
|
id: 5 /* REVISIONING */,
|
|
1107
1136
|
label: "Revisioning",
|
|
1108
1137
|
colors: {
|
|
1109
|
-
text: "text-
|
|
1110
|
-
bg: "bg-
|
|
1111
|
-
border: "border-
|
|
1112
|
-
dot: "bg-
|
|
1138
|
+
text: "text-[#0369A1]",
|
|
1139
|
+
bg: "bg-[#BAE6FD]",
|
|
1140
|
+
border: "border-[#7DD3FC]",
|
|
1141
|
+
dot: "bg-[#0369A1]"
|
|
1113
1142
|
},
|
|
1114
1143
|
thumbnail: {
|
|
1115
|
-
primary: "bg-
|
|
1116
|
-
secondary: "bg-
|
|
1144
|
+
primary: "bg-[#7DD3FC]",
|
|
1145
|
+
secondary: "bg-[#E0F2FE]"
|
|
1117
1146
|
},
|
|
1118
1147
|
icons: {
|
|
1119
1148
|
mobile: { primary: "#0EA5E9", secondary: "#7DD3FC" },
|
|
1120
1149
|
web: {
|
|
1121
1150
|
name: "FilePen",
|
|
1122
|
-
iconColor: "text-
|
|
1123
|
-
bgColor: "bg-
|
|
1151
|
+
iconColor: "text-[#0369A1]",
|
|
1152
|
+
bgColor: "bg-[#7DD3FC]"
|
|
1124
1153
|
}
|
|
1125
1154
|
},
|
|
1126
1155
|
progress: {
|
|
1127
|
-
primary: "bg-
|
|
1128
|
-
secondary: "bg-
|
|
1129
|
-
border: "border-
|
|
1156
|
+
primary: "bg-[#7DD3FC]",
|
|
1157
|
+
secondary: "bg-[#F0F9FF]",
|
|
1158
|
+
border: "border-[#E0F2FE]"
|
|
1130
1159
|
}
|
|
1131
1160
|
},
|
|
1132
1161
|
[6 /* CANCELLED */]: {
|
|
1133
1162
|
id: 6 /* CANCELLED */,
|
|
1134
1163
|
label: "Canceled",
|
|
1135
1164
|
colors: {
|
|
1136
|
-
text: "text-
|
|
1137
|
-
bg: "bg-
|
|
1138
|
-
border: "border-
|
|
1139
|
-
dot: "bg-
|
|
1165
|
+
text: "text-[#A3A3A3]",
|
|
1166
|
+
bg: "bg-[#F5F5F5]",
|
|
1167
|
+
border: "border-[#E5E5E5]",
|
|
1168
|
+
dot: "bg-[#A3A3A3]"
|
|
1140
1169
|
},
|
|
1141
1170
|
thumbnail: {
|
|
1142
|
-
primary: "bg-
|
|
1143
|
-
secondary: "bg-
|
|
1171
|
+
primary: "bg-[#D4D4D4]",
|
|
1172
|
+
secondary: "bg-[#FAFAFA]"
|
|
1144
1173
|
},
|
|
1145
1174
|
icons: {
|
|
1146
1175
|
mobile: { primary: "#6B7280", secondary: "#D1D5DB" },
|
|
1147
1176
|
web: {
|
|
1148
1177
|
name: "Ban",
|
|
1149
|
-
iconColor: "text-
|
|
1150
|
-
bgColor: "bg-
|
|
1178
|
+
iconColor: "text-[#A3A3A3]",
|
|
1179
|
+
bgColor: "bg-[#F5F5F5]"
|
|
1151
1180
|
}
|
|
1152
1181
|
},
|
|
1153
1182
|
progress: {
|
|
1154
|
-
primary: "bg-
|
|
1155
|
-
secondary: "bg-
|
|
1156
|
-
border: "border-
|
|
1183
|
+
primary: "bg-[#A3A3A3]",
|
|
1184
|
+
secondary: "bg-[#FAFAFA]",
|
|
1185
|
+
border: "border-[#E5E5E5]"
|
|
1157
1186
|
}
|
|
1158
1187
|
}
|
|
1159
1188
|
};
|
|
1160
1189
|
|
|
1161
|
-
// src/model/project/Project.api.ts
|
|
1162
|
-
var Endpoints3 = {
|
|
1163
|
-
Reorder: { uri: "/projects/reorder/", method: "POST" },
|
|
1164
|
-
List: { uri: "/projects/list", method: "GET" },
|
|
1165
|
-
GetNext: { uri: "/projects/:userId/next", method: "GET" },
|
|
1166
|
-
CreateProject: { uri: "/projects/create", method: "POST" },
|
|
1167
|
-
FindOne: { uri: `/projects/:projectId/`, method: "GET" },
|
|
1168
|
-
GetGoals: { uri: `/projects/goals/list/`, method: "GET" },
|
|
1169
|
-
Review: { uri: "/projects/:projectId/review/", method: "POST" },
|
|
1170
|
-
Cancel: { uri: "/projects/:projectId/cancel/", method: "DELETE" },
|
|
1171
|
-
StartEdition: { uri: "/projects/edition/start/", method: "PUT" },
|
|
1172
|
-
SendToApproval: {
|
|
1173
|
-
uri: "/projects/:projectId/sendToApproval/",
|
|
1174
|
-
method: "PUT"
|
|
1175
|
-
},
|
|
1176
|
-
IsEligibleForFreeProject: {
|
|
1177
|
-
uri: "/projects/free/allowed/",
|
|
1178
|
-
method: "GET"
|
|
1179
|
-
},
|
|
1180
|
-
Approve: { uri: "/projects/:projectId/approve/", method: "POST" },
|
|
1181
|
-
Unschedule: { uri: "/projects/:projectId/unschedule/", method: "POST" },
|
|
1182
|
-
Rollback: { uri: "/projects/:projectId/rollback/", method: "POST" },
|
|
1183
|
-
Deny: { uri: "/projects/:projectId/deny/", method: "POST" },
|
|
1184
|
-
GetUserHistory: { uri: "/projects/user/:userId/history/", method: "GET" },
|
|
1185
|
-
GetPoolSize: { uri: "/projects/pool/size/", method: "GET" }
|
|
1186
|
-
};
|
|
1187
|
-
|
|
1188
1190
|
// src/api/Project.api.ts
|
|
1189
1191
|
var ProjectAPI = class {
|
|
1190
1192
|
constructor(env) {
|