shred-api-client 2.2.4 → 2.3.1

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 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<{
@@ -1932,16 +1966,24 @@ declare const NotificationDetailSchema: z.ZodObject<Pick<{
1932
1966
  }>>;
1933
1967
  metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1934
1968
  error: z.ZodOptional<z.ZodString>;
1935
- }, "userId" | "title" | "body" | "metadata">, "strip", z.ZodTypeAny, {
1969
+ }, "userId" | "title" | "body" | "cta" | "metadata">, "strip", z.ZodTypeAny, {
1936
1970
  userId: string;
1937
1971
  title: string;
1938
1972
  body: string;
1939
1973
  metadata: Record<string, string | number>;
1974
+ cta?: {
1975
+ label: string;
1976
+ url: string;
1977
+ } | undefined;
1940
1978
  }, {
1941
1979
  userId: string;
1942
1980
  title: string;
1943
1981
  body: string;
1944
1982
  metadata: Record<string, string | number>;
1983
+ cta?: {
1984
+ label: string;
1985
+ url: string;
1986
+ } | undefined;
1945
1987
  }>;
1946
1988
  declare const CriteriaSchema: z.ZodObject<{
1947
1989
  type: z.ZodNativeEnum<typeof CriteriaType>;
@@ -2062,16 +2104,24 @@ declare const TriggerSchema: z.ZodObject<{
2062
2104
  }>>;
2063
2105
  metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
2064
2106
  error: z.ZodOptional<z.ZodString>;
2065
- }, "userId" | "title" | "body" | "metadata">, "strip", z.ZodTypeAny, {
2107
+ }, "userId" | "title" | "body" | "cta" | "metadata">, "strip", z.ZodTypeAny, {
2066
2108
  userId: string;
2067
2109
  title: string;
2068
2110
  body: string;
2069
2111
  metadata: Record<string, string | number>;
2112
+ cta?: {
2113
+ label: string;
2114
+ url: string;
2115
+ } | undefined;
2070
2116
  }, {
2071
2117
  userId: string;
2072
2118
  title: string;
2073
2119
  body: string;
2074
2120
  metadata: Record<string, string | number>;
2121
+ cta?: {
2122
+ label: string;
2123
+ url: string;
2124
+ } | undefined;
2075
2125
  }>;
2076
2126
  history: z.ZodOptional<z.ZodArray<z.ZodObject<{
2077
2127
  batchId: z.ZodString;
@@ -2184,6 +2234,10 @@ declare const TriggerSchema: z.ZodObject<{
2184
2234
  title: string;
2185
2235
  body: string;
2186
2236
  metadata: Record<string, string | number>;
2237
+ cta?: {
2238
+ label: string;
2239
+ url: string;
2240
+ } | undefined;
2187
2241
  };
2188
2242
  timeOfDay: string;
2189
2243
  criteria: {
@@ -2231,6 +2285,10 @@ declare const TriggerSchema: z.ZodObject<{
2231
2285
  title: string;
2232
2286
  body: string;
2233
2287
  metadata: Record<string, string | number>;
2288
+ cta?: {
2289
+ label: string;
2290
+ url: string;
2291
+ } | undefined;
2234
2292
  };
2235
2293
  timeOfDay: string;
2236
2294
  criteria: {
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<{
@@ -1932,16 +1966,24 @@ declare const NotificationDetailSchema: z.ZodObject<Pick<{
1932
1966
  }>>;
1933
1967
  metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1934
1968
  error: z.ZodOptional<z.ZodString>;
1935
- }, "userId" | "title" | "body" | "metadata">, "strip", z.ZodTypeAny, {
1969
+ }, "userId" | "title" | "body" | "cta" | "metadata">, "strip", z.ZodTypeAny, {
1936
1970
  userId: string;
1937
1971
  title: string;
1938
1972
  body: string;
1939
1973
  metadata: Record<string, string | number>;
1974
+ cta?: {
1975
+ label: string;
1976
+ url: string;
1977
+ } | undefined;
1940
1978
  }, {
1941
1979
  userId: string;
1942
1980
  title: string;
1943
1981
  body: string;
1944
1982
  metadata: Record<string, string | number>;
1983
+ cta?: {
1984
+ label: string;
1985
+ url: string;
1986
+ } | undefined;
1945
1987
  }>;
1946
1988
  declare const CriteriaSchema: z.ZodObject<{
1947
1989
  type: z.ZodNativeEnum<typeof CriteriaType>;
@@ -2062,16 +2104,24 @@ declare const TriggerSchema: z.ZodObject<{
2062
2104
  }>>;
2063
2105
  metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
2064
2106
  error: z.ZodOptional<z.ZodString>;
2065
- }, "userId" | "title" | "body" | "metadata">, "strip", z.ZodTypeAny, {
2107
+ }, "userId" | "title" | "body" | "cta" | "metadata">, "strip", z.ZodTypeAny, {
2066
2108
  userId: string;
2067
2109
  title: string;
2068
2110
  body: string;
2069
2111
  metadata: Record<string, string | number>;
2112
+ cta?: {
2113
+ label: string;
2114
+ url: string;
2115
+ } | undefined;
2070
2116
  }, {
2071
2117
  userId: string;
2072
2118
  title: string;
2073
2119
  body: string;
2074
2120
  metadata: Record<string, string | number>;
2121
+ cta?: {
2122
+ label: string;
2123
+ url: string;
2124
+ } | undefined;
2075
2125
  }>;
2076
2126
  history: z.ZodOptional<z.ZodArray<z.ZodObject<{
2077
2127
  batchId: z.ZodString;
@@ -2184,6 +2234,10 @@ declare const TriggerSchema: z.ZodObject<{
2184
2234
  title: string;
2185
2235
  body: string;
2186
2236
  metadata: Record<string, string | number>;
2237
+ cta?: {
2238
+ label: string;
2239
+ url: string;
2240
+ } | undefined;
2187
2241
  };
2188
2242
  timeOfDay: string;
2189
2243
  criteria: {
@@ -2231,6 +2285,10 @@ declare const TriggerSchema: z.ZodObject<{
2231
2285
  title: string;
2232
2286
  body: string;
2233
2287
  metadata: Record<string, string | number>;
2288
+ cta?: {
2289
+ label: string;
2290
+ url: string;
2291
+ } | undefined;
2234
2292
  };
2235
2293
  timeOfDay: string;
2236
2294
  criteria: {
package/dist/index.js CHANGED
@@ -186,7 +186,8 @@ var NotificationDetailSchema = NotificationItemSchema.pick({
186
186
  title: true,
187
187
  body: true,
188
188
  userId: true,
189
- metadata: true
189
+ metadata: true,
190
+ cta: true
190
191
  });
191
192
  var CriteriaSchema = import_zod.z.object({
192
193
  type: import_zod.z.nativeEnum(CriteriaType),
@@ -883,6 +884,7 @@ __export(project_exports, {
883
884
  FeedbackSchema: () => FeedbackSchema,
884
885
  ProjectSchema: () => ProjectSchema,
885
886
  Status: () => Status2,
887
+ StatusConfig: () => StatusConfig,
886
888
  Styles: () => Styles,
887
889
  TimelineItemSchema: () => TimelineItemSchema
888
890
  });
@@ -1009,6 +1011,226 @@ var Endpoints3 = {
1009
1011
  GetPoolSize: { uri: "/projects/pool/size/", method: "GET" }
1010
1012
  };
1011
1013
 
1014
+ // src/model/project/StatusConfig.ts
1015
+ var StatusConfig = {
1016
+ [0 /* SUBMITTED */]: {
1017
+ id: 0 /* SUBMITTED */,
1018
+ label: "Submitted",
1019
+ colors: {
1020
+ text: "#854D0E",
1021
+ bg: "#FEF9C3",
1022
+ border: "#FEF08A",
1023
+ dot: "#A16207"
1024
+ },
1025
+ thumbnail: {
1026
+ primary: "#FDE047",
1027
+ secondary: "#FEFCE8"
1028
+ },
1029
+ icons: {
1030
+ mobile: { primary: "#EAB308", secondary: "#FACC15" },
1031
+ web: {
1032
+ name: "Share",
1033
+ iconColor: "#713F12",
1034
+ bgColor: "#FEF08A"
1035
+ }
1036
+ },
1037
+ progress: {
1038
+ primary: "#FACC15",
1039
+ secondary: "#FEF08A",
1040
+ border: "#FEF9C3"
1041
+ }
1042
+ },
1043
+ [1 /* EDITING */]: {
1044
+ id: 1 /* EDITING */,
1045
+ label: "In Progress",
1046
+ colors: {
1047
+ text: "#7C3AED",
1048
+ bg: "#F5F3FF",
1049
+ border: "#DDD6FE",
1050
+ dot: "#7C3AED"
1051
+ },
1052
+ thumbnail: {
1053
+ primary: "#C4B5FD",
1054
+ secondary: "#F5F3FF"
1055
+ },
1056
+ icons: {
1057
+ mobile: { primary: "#A67EE7", secondary: "#C4A9EF" },
1058
+ web: {
1059
+ name: "Hourglass",
1060
+ iconColor: "#7C3AED",
1061
+ bgColor: "#DDD6FE"
1062
+ }
1063
+ },
1064
+ progress: {
1065
+ primary: "#C4B5FD",
1066
+ secondary: "#F5F3FF",
1067
+ border: "#EDE9FE"
1068
+ }
1069
+ },
1070
+ [3 /* WAITING_APPROVE */]: {
1071
+ id: 3 /* WAITING_APPROVE */,
1072
+ label: "Waiting Approval",
1073
+ colors: {
1074
+ text: "#C2410C",
1075
+ bg: "#FFEDD5",
1076
+ border: "#FED7AA",
1077
+ dot: "#EA580C"
1078
+ },
1079
+ thumbnail: {
1080
+ primary: "#C4B5FD",
1081
+ secondary: "#F5F3FF"
1082
+ },
1083
+ icons: {
1084
+ mobile: { primary: "#A67EE7", secondary: "#C4A9EF" },
1085
+ web: {
1086
+ name: "Clock",
1087
+ iconColor: "#C2410C",
1088
+ bgColor: "#FED7AA"
1089
+ }
1090
+ },
1091
+ progress: {
1092
+ primary: "#FDBA74",
1093
+ secondary: "#FFF7ED",
1094
+ border: "#FFEDD5"
1095
+ }
1096
+ },
1097
+ [4 /* DENIED */]: {
1098
+ id: 4 /* DENIED */,
1099
+ label: "Denied",
1100
+ colors: {
1101
+ text: "#EF4444",
1102
+ bg: "#FEE2E2",
1103
+ border: "#FECACA",
1104
+ dot: "#EF4444"
1105
+ },
1106
+ thumbnail: {
1107
+ primary: "#C4B5FD",
1108
+ secondary: "#F5F3FF"
1109
+ },
1110
+ icons: {
1111
+ mobile: { primary: "#A67EE7", secondary: "#C4A9EF" },
1112
+ web: {
1113
+ name: "CircleX",
1114
+ iconColor: "#EF4444",
1115
+ bgColor: "#FECACA"
1116
+ }
1117
+ },
1118
+ progress: {
1119
+ primary: "#FCA5A5",
1120
+ secondary: "#FEF2F2",
1121
+ border: "#FEE2E2"
1122
+ }
1123
+ },
1124
+ [7 /* SCHEDULED */]: {
1125
+ id: 7 /* SCHEDULED */,
1126
+ label: "Scheduled",
1127
+ colors: {
1128
+ text: "#3F6212",
1129
+ bg: "#ECFCCB",
1130
+ border: "#D9F99D",
1131
+ dot: "#4D7C0F"
1132
+ },
1133
+ thumbnail: {
1134
+ primary: "#C4B5FD",
1135
+ secondary: "#F5F3FF"
1136
+ },
1137
+ icons: {
1138
+ mobile: { primary: "#A67EE7", secondary: "#C4A9EF" },
1139
+ web: {
1140
+ name: "CalendarRange",
1141
+ iconColor: "#3F6212",
1142
+ bgColor: "#D9F99D"
1143
+ }
1144
+ },
1145
+ progress: {
1146
+ primary: "#BEF264",
1147
+ secondary: "#F7FEE7",
1148
+ border: "#ECFCCB"
1149
+ }
1150
+ },
1151
+ [2 /* COMPLETED */]: {
1152
+ id: 2 /* COMPLETED */,
1153
+ label: "Completed",
1154
+ colors: {
1155
+ text: "#16A34A",
1156
+ bg: "#F0FDF4",
1157
+ border: "#DCFCE7",
1158
+ dot: "#16A34A"
1159
+ },
1160
+ thumbnail: {
1161
+ primary: "#86EFAC",
1162
+ secondary: "#F0FDF4"
1163
+ },
1164
+ icons: {
1165
+ mobile: { primary: "#22C55E", secondary: "#BBF7D0" },
1166
+ web: {
1167
+ name: "CircleCheck",
1168
+ iconColor: "#16A34A",
1169
+ bgColor: "#DCFCE7"
1170
+ }
1171
+ },
1172
+ progress: {
1173
+ primary: "#4ADE80",
1174
+ secondary: "#DCFCE7",
1175
+ border: "#BBF7D0"
1176
+ }
1177
+ },
1178
+ [5 /* REVISIONING */]: {
1179
+ id: 5 /* REVISIONING */,
1180
+ label: "Revisioning",
1181
+ colors: {
1182
+ text: "#0369A1",
1183
+ bg: "#BAE6FD",
1184
+ border: "#7DD3FC",
1185
+ dot: "#0369A1"
1186
+ },
1187
+ thumbnail: {
1188
+ primary: "#7DD3FC",
1189
+ secondary: "#E0F2FE"
1190
+ },
1191
+ icons: {
1192
+ mobile: { primary: "#0EA5E9", secondary: "#7DD3FC" },
1193
+ web: {
1194
+ name: "FilePen",
1195
+ iconColor: "#0369A1",
1196
+ bgColor: "#7DD3FC"
1197
+ }
1198
+ },
1199
+ progress: {
1200
+ primary: "#7DD3FC",
1201
+ secondary: "#F0F9FF",
1202
+ border: "#E0F2FE"
1203
+ }
1204
+ },
1205
+ [6 /* CANCELLED */]: {
1206
+ id: 6 /* CANCELLED */,
1207
+ label: "Canceled",
1208
+ colors: {
1209
+ text: "#A3A3A3",
1210
+ bg: "#F5F5F5",
1211
+ border: "#E5E5E5",
1212
+ dot: "#A3A3A3"
1213
+ },
1214
+ thumbnail: {
1215
+ primary: "#D4D4D4",
1216
+ secondary: "#FAFAFA"
1217
+ },
1218
+ icons: {
1219
+ mobile: { primary: "#6B7280", secondary: "#D1D5DB" },
1220
+ web: {
1221
+ name: "Ban",
1222
+ iconColor: "#A3A3A3",
1223
+ bgColor: "#F5F5F5"
1224
+ }
1225
+ },
1226
+ progress: {
1227
+ primary: "#A3A3A3",
1228
+ secondary: "#FAFAFA",
1229
+ border: "#E5E5E5"
1230
+ }
1231
+ }
1232
+ };
1233
+
1012
1234
  // src/api/Project.api.ts
1013
1235
  var ProjectAPI = class {
1014
1236
  constructor(env) {