shred-api-client 2.2.4 → 2.3.0
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 +35 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.js +221 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +221 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1719,6 +1719,38 @@ declare const Endpoints$3: {
|
|
|
1719
1719
|
};
|
|
1720
1720
|
};
|
|
1721
1721
|
|
|
1722
|
+
type StatusConfigType = {
|
|
1723
|
+
id: Status$1;
|
|
1724
|
+
label: string;
|
|
1725
|
+
colors: {
|
|
1726
|
+
text: string;
|
|
1727
|
+
bg: string;
|
|
1728
|
+
border: string;
|
|
1729
|
+
dot: string;
|
|
1730
|
+
};
|
|
1731
|
+
thumbnail: {
|
|
1732
|
+
primary: string;
|
|
1733
|
+
secondary: string;
|
|
1734
|
+
};
|
|
1735
|
+
icons: {
|
|
1736
|
+
mobile: {
|
|
1737
|
+
primary: string;
|
|
1738
|
+
secondary: string;
|
|
1739
|
+
};
|
|
1740
|
+
web: {
|
|
1741
|
+
name: string;
|
|
1742
|
+
iconColor: string;
|
|
1743
|
+
bgColor: string;
|
|
1744
|
+
};
|
|
1745
|
+
};
|
|
1746
|
+
progress: {
|
|
1747
|
+
primary: string;
|
|
1748
|
+
secondary: string;
|
|
1749
|
+
border: string;
|
|
1750
|
+
};
|
|
1751
|
+
};
|
|
1752
|
+
declare const StatusConfig: Record<Status$1, StatusConfigType>;
|
|
1753
|
+
|
|
1722
1754
|
type index$5_Approve = Approve;
|
|
1723
1755
|
type index$5_CaptionStyle = CaptionStyle;
|
|
1724
1756
|
declare const index$5_CaptionStyle: typeof CaptionStyle;
|
|
@@ -1727,12 +1759,14 @@ declare const index$5_FeedbackSchema: typeof FeedbackSchema;
|
|
|
1727
1759
|
type index$5_ProjectCreation = ProjectCreation;
|
|
1728
1760
|
declare const index$5_ProjectSchema: typeof ProjectSchema;
|
|
1729
1761
|
type index$5_SendToApproval = SendToApproval;
|
|
1762
|
+
declare const index$5_StatusConfig: typeof StatusConfig;
|
|
1763
|
+
type index$5_StatusConfigType = StatusConfigType;
|
|
1730
1764
|
type index$5_Style = Style;
|
|
1731
1765
|
declare const index$5_Styles: typeof Styles;
|
|
1732
1766
|
type index$5_TimelineItem = TimelineItem;
|
|
1733
1767
|
declare const index$5_TimelineItemSchema: typeof TimelineItemSchema;
|
|
1734
1768
|
declare namespace index$5 {
|
|
1735
|
-
export { type index$5_Approve as Approve, index$5_CaptionStyle as CaptionStyle, Endpoints$3 as Endpoints, type Project as Entity, type index$5_Feedback as Feedback, index$5_FeedbackSchema as FeedbackSchema, type IAPI$4 as IAPI, type index$5_ProjectCreation as ProjectCreation, index$5_ProjectSchema as ProjectSchema, type index$5_SendToApproval as SendToApproval, Status$1 as Status, type index$5_Style as Style, index$5_Styles as Styles, type index$5_TimelineItem as TimelineItem, index$5_TimelineItemSchema as TimelineItemSchema };
|
|
1769
|
+
export { type index$5_Approve as Approve, index$5_CaptionStyle as CaptionStyle, Endpoints$3 as Endpoints, type Project as Entity, type index$5_Feedback as Feedback, index$5_FeedbackSchema as FeedbackSchema, type IAPI$4 as IAPI, type index$5_ProjectCreation as ProjectCreation, index$5_ProjectSchema as ProjectSchema, type index$5_SendToApproval as SendToApproval, Status$1 as Status, index$5_StatusConfig as StatusConfig, type index$5_StatusConfigType as StatusConfigType, type index$5_Style as Style, index$5_Styles as Styles, type index$5_TimelineItem as TimelineItem, index$5_TimelineItemSchema as TimelineItemSchema };
|
|
1736
1770
|
}
|
|
1737
1771
|
|
|
1738
1772
|
declare const DailyMilestoneSchema: z.ZodObject<{
|
package/dist/index.d.ts
CHANGED
|
@@ -1719,6 +1719,38 @@ declare const Endpoints$3: {
|
|
|
1719
1719
|
};
|
|
1720
1720
|
};
|
|
1721
1721
|
|
|
1722
|
+
type StatusConfigType = {
|
|
1723
|
+
id: Status$1;
|
|
1724
|
+
label: string;
|
|
1725
|
+
colors: {
|
|
1726
|
+
text: string;
|
|
1727
|
+
bg: string;
|
|
1728
|
+
border: string;
|
|
1729
|
+
dot: string;
|
|
1730
|
+
};
|
|
1731
|
+
thumbnail: {
|
|
1732
|
+
primary: string;
|
|
1733
|
+
secondary: string;
|
|
1734
|
+
};
|
|
1735
|
+
icons: {
|
|
1736
|
+
mobile: {
|
|
1737
|
+
primary: string;
|
|
1738
|
+
secondary: string;
|
|
1739
|
+
};
|
|
1740
|
+
web: {
|
|
1741
|
+
name: string;
|
|
1742
|
+
iconColor: string;
|
|
1743
|
+
bgColor: string;
|
|
1744
|
+
};
|
|
1745
|
+
};
|
|
1746
|
+
progress: {
|
|
1747
|
+
primary: string;
|
|
1748
|
+
secondary: string;
|
|
1749
|
+
border: string;
|
|
1750
|
+
};
|
|
1751
|
+
};
|
|
1752
|
+
declare const StatusConfig: Record<Status$1, StatusConfigType>;
|
|
1753
|
+
|
|
1722
1754
|
type index$5_Approve = Approve;
|
|
1723
1755
|
type index$5_CaptionStyle = CaptionStyle;
|
|
1724
1756
|
declare const index$5_CaptionStyle: typeof CaptionStyle;
|
|
@@ -1727,12 +1759,14 @@ declare const index$5_FeedbackSchema: typeof FeedbackSchema;
|
|
|
1727
1759
|
type index$5_ProjectCreation = ProjectCreation;
|
|
1728
1760
|
declare const index$5_ProjectSchema: typeof ProjectSchema;
|
|
1729
1761
|
type index$5_SendToApproval = SendToApproval;
|
|
1762
|
+
declare const index$5_StatusConfig: typeof StatusConfig;
|
|
1763
|
+
type index$5_StatusConfigType = StatusConfigType;
|
|
1730
1764
|
type index$5_Style = Style;
|
|
1731
1765
|
declare const index$5_Styles: typeof Styles;
|
|
1732
1766
|
type index$5_TimelineItem = TimelineItem;
|
|
1733
1767
|
declare const index$5_TimelineItemSchema: typeof TimelineItemSchema;
|
|
1734
1768
|
declare namespace index$5 {
|
|
1735
|
-
export { type index$5_Approve as Approve, index$5_CaptionStyle as CaptionStyle, Endpoints$3 as Endpoints, type Project as Entity, type index$5_Feedback as Feedback, index$5_FeedbackSchema as FeedbackSchema, type IAPI$4 as IAPI, type index$5_ProjectCreation as ProjectCreation, index$5_ProjectSchema as ProjectSchema, type index$5_SendToApproval as SendToApproval, Status$1 as Status, type index$5_Style as Style, index$5_Styles as Styles, type index$5_TimelineItem as TimelineItem, index$5_TimelineItemSchema as TimelineItemSchema };
|
|
1769
|
+
export { type index$5_Approve as Approve, index$5_CaptionStyle as CaptionStyle, Endpoints$3 as Endpoints, type Project as Entity, type index$5_Feedback as Feedback, index$5_FeedbackSchema as FeedbackSchema, type IAPI$4 as IAPI, type index$5_ProjectCreation as ProjectCreation, index$5_ProjectSchema as ProjectSchema, type index$5_SendToApproval as SendToApproval, Status$1 as Status, index$5_StatusConfig as StatusConfig, type index$5_StatusConfigType as StatusConfigType, type index$5_Style as Style, index$5_Styles as Styles, type index$5_TimelineItem as TimelineItem, index$5_TimelineItemSchema as TimelineItemSchema };
|
|
1736
1770
|
}
|
|
1737
1771
|
|
|
1738
1772
|
declare const DailyMilestoneSchema: z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -883,6 +883,7 @@ __export(project_exports, {
|
|
|
883
883
|
FeedbackSchema: () => FeedbackSchema,
|
|
884
884
|
ProjectSchema: () => ProjectSchema,
|
|
885
885
|
Status: () => Status2,
|
|
886
|
+
StatusConfig: () => StatusConfig,
|
|
886
887
|
Styles: () => Styles,
|
|
887
888
|
TimelineItemSchema: () => TimelineItemSchema
|
|
888
889
|
});
|
|
@@ -1009,6 +1010,226 @@ var Endpoints3 = {
|
|
|
1009
1010
|
GetPoolSize: { uri: "/projects/pool/size/", method: "GET" }
|
|
1010
1011
|
};
|
|
1011
1012
|
|
|
1013
|
+
// src/model/project/StatusConfig.ts
|
|
1014
|
+
var StatusConfig = {
|
|
1015
|
+
[0 /* SUBMITTED */]: {
|
|
1016
|
+
id: 0 /* SUBMITTED */,
|
|
1017
|
+
label: "Submitted",
|
|
1018
|
+
colors: {
|
|
1019
|
+
text: "#854D0E",
|
|
1020
|
+
bg: "#FEF9C3",
|
|
1021
|
+
border: "#FEF08A",
|
|
1022
|
+
dot: "#A16207"
|
|
1023
|
+
},
|
|
1024
|
+
thumbnail: {
|
|
1025
|
+
primary: "#FDE047",
|
|
1026
|
+
secondary: "#FEFCE8"
|
|
1027
|
+
},
|
|
1028
|
+
icons: {
|
|
1029
|
+
mobile: { primary: "#EAB308", secondary: "#FACC15" },
|
|
1030
|
+
web: {
|
|
1031
|
+
name: "Share",
|
|
1032
|
+
iconColor: "#713F12",
|
|
1033
|
+
bgColor: "#FEF08A"
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
1036
|
+
progress: {
|
|
1037
|
+
primary: "#FACC15",
|
|
1038
|
+
secondary: "#FEF08A",
|
|
1039
|
+
border: "#FEF9C3"
|
|
1040
|
+
}
|
|
1041
|
+
},
|
|
1042
|
+
[1 /* EDITING */]: {
|
|
1043
|
+
id: 1 /* EDITING */,
|
|
1044
|
+
label: "In Progress",
|
|
1045
|
+
colors: {
|
|
1046
|
+
text: "#7C3AED",
|
|
1047
|
+
bg: "#F5F3FF",
|
|
1048
|
+
border: "#DDD6FE",
|
|
1049
|
+
dot: "#7C3AED"
|
|
1050
|
+
},
|
|
1051
|
+
thumbnail: {
|
|
1052
|
+
primary: "#C4B5FD",
|
|
1053
|
+
secondary: "#F5F3FF"
|
|
1054
|
+
},
|
|
1055
|
+
icons: {
|
|
1056
|
+
mobile: { primary: "#A67EE7", secondary: "#C4A9EF" },
|
|
1057
|
+
web: {
|
|
1058
|
+
name: "Hourglass",
|
|
1059
|
+
iconColor: "#7C3AED",
|
|
1060
|
+
bgColor: "#DDD6FE"
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
progress: {
|
|
1064
|
+
primary: "#C4B5FD",
|
|
1065
|
+
secondary: "#F5F3FF",
|
|
1066
|
+
border: "#EDE9FE"
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1069
|
+
[3 /* WAITING_APPROVE */]: {
|
|
1070
|
+
id: 3 /* WAITING_APPROVE */,
|
|
1071
|
+
label: "Waiting Approval",
|
|
1072
|
+
colors: {
|
|
1073
|
+
text: "#C2410C",
|
|
1074
|
+
bg: "#FFEDD5",
|
|
1075
|
+
border: "#FED7AA",
|
|
1076
|
+
dot: "#EA580C"
|
|
1077
|
+
},
|
|
1078
|
+
thumbnail: {
|
|
1079
|
+
primary: "#C4B5FD",
|
|
1080
|
+
secondary: "#F5F3FF"
|
|
1081
|
+
},
|
|
1082
|
+
icons: {
|
|
1083
|
+
mobile: { primary: "#A67EE7", secondary: "#C4A9EF" },
|
|
1084
|
+
web: {
|
|
1085
|
+
name: "Clock",
|
|
1086
|
+
iconColor: "#C2410C",
|
|
1087
|
+
bgColor: "#FED7AA"
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
progress: {
|
|
1091
|
+
primary: "#FDBA74",
|
|
1092
|
+
secondary: "#FFF7ED",
|
|
1093
|
+
border: "#FFEDD5"
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
[4 /* DENIED */]: {
|
|
1097
|
+
id: 4 /* DENIED */,
|
|
1098
|
+
label: "Denied",
|
|
1099
|
+
colors: {
|
|
1100
|
+
text: "#EF4444",
|
|
1101
|
+
bg: "#FEE2E2",
|
|
1102
|
+
border: "#FECACA",
|
|
1103
|
+
dot: "#EF4444"
|
|
1104
|
+
},
|
|
1105
|
+
thumbnail: {
|
|
1106
|
+
primary: "#C4B5FD",
|
|
1107
|
+
secondary: "#F5F3FF"
|
|
1108
|
+
},
|
|
1109
|
+
icons: {
|
|
1110
|
+
mobile: { primary: "#A67EE7", secondary: "#C4A9EF" },
|
|
1111
|
+
web: {
|
|
1112
|
+
name: "CircleX",
|
|
1113
|
+
iconColor: "#EF4444",
|
|
1114
|
+
bgColor: "#FECACA"
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
progress: {
|
|
1118
|
+
primary: "#FCA5A5",
|
|
1119
|
+
secondary: "#FEF2F2",
|
|
1120
|
+
border: "#FEE2E2"
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
[7 /* SCHEDULED */]: {
|
|
1124
|
+
id: 7 /* SCHEDULED */,
|
|
1125
|
+
label: "Scheduled",
|
|
1126
|
+
colors: {
|
|
1127
|
+
text: "#3F6212",
|
|
1128
|
+
bg: "#ECFCCB",
|
|
1129
|
+
border: "#D9F99D",
|
|
1130
|
+
dot: "#4D7C0F"
|
|
1131
|
+
},
|
|
1132
|
+
thumbnail: {
|
|
1133
|
+
primary: "#C4B5FD",
|
|
1134
|
+
secondary: "#F5F3FF"
|
|
1135
|
+
},
|
|
1136
|
+
icons: {
|
|
1137
|
+
mobile: { primary: "#A67EE7", secondary: "#C4A9EF" },
|
|
1138
|
+
web: {
|
|
1139
|
+
name: "CalendarRange",
|
|
1140
|
+
iconColor: "#3F6212",
|
|
1141
|
+
bgColor: "#D9F99D"
|
|
1142
|
+
}
|
|
1143
|
+
},
|
|
1144
|
+
progress: {
|
|
1145
|
+
primary: "#BEF264",
|
|
1146
|
+
secondary: "#F7FEE7",
|
|
1147
|
+
border: "#ECFCCB"
|
|
1148
|
+
}
|
|
1149
|
+
},
|
|
1150
|
+
[2 /* COMPLETED */]: {
|
|
1151
|
+
id: 2 /* COMPLETED */,
|
|
1152
|
+
label: "Completed",
|
|
1153
|
+
colors: {
|
|
1154
|
+
text: "#16A34A",
|
|
1155
|
+
bg: "#F0FDF4",
|
|
1156
|
+
border: "#DCFCE7",
|
|
1157
|
+
dot: "#16A34A"
|
|
1158
|
+
},
|
|
1159
|
+
thumbnail: {
|
|
1160
|
+
primary: "#86EFAC",
|
|
1161
|
+
secondary: "#F0FDF4"
|
|
1162
|
+
},
|
|
1163
|
+
icons: {
|
|
1164
|
+
mobile: { primary: "#22C55E", secondary: "#BBF7D0" },
|
|
1165
|
+
web: {
|
|
1166
|
+
name: "CircleCheck",
|
|
1167
|
+
iconColor: "#16A34A",
|
|
1168
|
+
bgColor: "#DCFCE7"
|
|
1169
|
+
}
|
|
1170
|
+
},
|
|
1171
|
+
progress: {
|
|
1172
|
+
primary: "#4ADE80",
|
|
1173
|
+
secondary: "#DCFCE7",
|
|
1174
|
+
border: "#BBF7D0"
|
|
1175
|
+
}
|
|
1176
|
+
},
|
|
1177
|
+
[5 /* REVISIONING */]: {
|
|
1178
|
+
id: 5 /* REVISIONING */,
|
|
1179
|
+
label: "Revisioning",
|
|
1180
|
+
colors: {
|
|
1181
|
+
text: "#0369A1",
|
|
1182
|
+
bg: "#BAE6FD",
|
|
1183
|
+
border: "#7DD3FC",
|
|
1184
|
+
dot: "#0369A1"
|
|
1185
|
+
},
|
|
1186
|
+
thumbnail: {
|
|
1187
|
+
primary: "#7DD3FC",
|
|
1188
|
+
secondary: "#E0F2FE"
|
|
1189
|
+
},
|
|
1190
|
+
icons: {
|
|
1191
|
+
mobile: { primary: "#0EA5E9", secondary: "#7DD3FC" },
|
|
1192
|
+
web: {
|
|
1193
|
+
name: "FilePen",
|
|
1194
|
+
iconColor: "#0369A1",
|
|
1195
|
+
bgColor: "#7DD3FC"
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
progress: {
|
|
1199
|
+
primary: "#7DD3FC",
|
|
1200
|
+
secondary: "#F0F9FF",
|
|
1201
|
+
border: "#E0F2FE"
|
|
1202
|
+
}
|
|
1203
|
+
},
|
|
1204
|
+
[6 /* CANCELLED */]: {
|
|
1205
|
+
id: 6 /* CANCELLED */,
|
|
1206
|
+
label: "Canceled",
|
|
1207
|
+
colors: {
|
|
1208
|
+
text: "#A3A3A3",
|
|
1209
|
+
bg: "#F5F5F5",
|
|
1210
|
+
border: "#E5E5E5",
|
|
1211
|
+
dot: "#A3A3A3"
|
|
1212
|
+
},
|
|
1213
|
+
thumbnail: {
|
|
1214
|
+
primary: "#D4D4D4",
|
|
1215
|
+
secondary: "#FAFAFA"
|
|
1216
|
+
},
|
|
1217
|
+
icons: {
|
|
1218
|
+
mobile: { primary: "#6B7280", secondary: "#D1D5DB" },
|
|
1219
|
+
web: {
|
|
1220
|
+
name: "Ban",
|
|
1221
|
+
iconColor: "#A3A3A3",
|
|
1222
|
+
bgColor: "#F5F5F5"
|
|
1223
|
+
}
|
|
1224
|
+
},
|
|
1225
|
+
progress: {
|
|
1226
|
+
primary: "#A3A3A3",
|
|
1227
|
+
secondary: "#FAFAFA",
|
|
1228
|
+
border: "#E5E5E5"
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
};
|
|
1232
|
+
|
|
1012
1233
|
// src/api/Project.api.ts
|
|
1013
1234
|
var ProjectAPI = class {
|
|
1014
1235
|
constructor(env) {
|