shred-api-client 2.2.4-rc.0 → 2.2.4-rc.2

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
@@ -617,15 +617,15 @@ declare const PreferencesSchema$1: z.ZodObject<{
617
617
  primaryColor: z.ZodOptional<z.ZodString>;
618
618
  secondaryColor: z.ZodOptional<z.ZodString>;
619
619
  facebookLink: z.ZodOptional<z.ZodString>;
620
- isFeedbackEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
620
+ isFeedbackEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
621
621
  instagramLink: z.ZodOptional<z.ZodString>;
622
622
  bRoll: z.ZodOptional<z.ZodBoolean>;
623
623
  logo: z.ZodOptional<z.ZodString>;
624
624
  }, "strip", z.ZodTypeAny, {
625
+ isFeedbackEnabled: boolean;
625
626
  primaryColor?: string | undefined;
626
627
  secondaryColor?: string | undefined;
627
628
  facebookLink?: string | undefined;
628
- isFeedbackEnabled?: boolean | undefined;
629
629
  instagramLink?: string | undefined;
630
630
  bRoll?: boolean | undefined;
631
631
  logo?: string | undefined;
@@ -649,15 +649,15 @@ declare const UserSchema: z.ZodObject<{
649
649
  primaryColor: z.ZodOptional<z.ZodString>;
650
650
  secondaryColor: z.ZodOptional<z.ZodString>;
651
651
  facebookLink: z.ZodOptional<z.ZodString>;
652
- isFeedbackEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
652
+ isFeedbackEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
653
653
  instagramLink: z.ZodOptional<z.ZodString>;
654
654
  bRoll: z.ZodOptional<z.ZodBoolean>;
655
655
  logo: z.ZodOptional<z.ZodString>;
656
656
  }, "strip", z.ZodTypeAny, {
657
+ isFeedbackEnabled: boolean;
657
658
  primaryColor?: string | undefined;
658
659
  secondaryColor?: string | undefined;
659
660
  facebookLink?: string | undefined;
660
- isFeedbackEnabled?: boolean | undefined;
661
661
  instagramLink?: string | undefined;
662
662
  bRoll?: boolean | undefined;
663
663
  logo?: string | undefined;
@@ -685,10 +685,10 @@ declare const UserSchema: z.ZodObject<{
685
685
  timezone?: string | undefined;
686
686
  tenantId?: string | undefined;
687
687
  preferences?: {
688
+ isFeedbackEnabled: boolean;
688
689
  primaryColor?: string | undefined;
689
690
  secondaryColor?: string | undefined;
690
691
  facebookLink?: string | undefined;
691
- isFeedbackEnabled?: boolean | undefined;
692
692
  instagramLink?: string | undefined;
693
693
  bRoll?: boolean | undefined;
694
694
  logo?: string | undefined;
@@ -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,13 @@ 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;
1730
1763
  type index$5_Style = Style;
1731
1764
  declare const index$5_Styles: typeof Styles;
1732
1765
  type index$5_TimelineItem = TimelineItem;
1733
1766
  declare const index$5_TimelineItemSchema: typeof TimelineItemSchema;
1734
1767
  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 };
1768
+ 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_Style as Style, index$5_Styles as Styles, type index$5_TimelineItem as TimelineItem, index$5_TimelineItemSchema as TimelineItemSchema };
1736
1769
  }
1737
1770
 
1738
1771
  declare const DailyMilestoneSchema: z.ZodObject<{
package/dist/index.d.ts CHANGED
@@ -617,15 +617,15 @@ declare const PreferencesSchema$1: z.ZodObject<{
617
617
  primaryColor: z.ZodOptional<z.ZodString>;
618
618
  secondaryColor: z.ZodOptional<z.ZodString>;
619
619
  facebookLink: z.ZodOptional<z.ZodString>;
620
- isFeedbackEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
620
+ isFeedbackEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
621
621
  instagramLink: z.ZodOptional<z.ZodString>;
622
622
  bRoll: z.ZodOptional<z.ZodBoolean>;
623
623
  logo: z.ZodOptional<z.ZodString>;
624
624
  }, "strip", z.ZodTypeAny, {
625
+ isFeedbackEnabled: boolean;
625
626
  primaryColor?: string | undefined;
626
627
  secondaryColor?: string | undefined;
627
628
  facebookLink?: string | undefined;
628
- isFeedbackEnabled?: boolean | undefined;
629
629
  instagramLink?: string | undefined;
630
630
  bRoll?: boolean | undefined;
631
631
  logo?: string | undefined;
@@ -649,15 +649,15 @@ declare const UserSchema: z.ZodObject<{
649
649
  primaryColor: z.ZodOptional<z.ZodString>;
650
650
  secondaryColor: z.ZodOptional<z.ZodString>;
651
651
  facebookLink: z.ZodOptional<z.ZodString>;
652
- isFeedbackEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
652
+ isFeedbackEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
653
653
  instagramLink: z.ZodOptional<z.ZodString>;
654
654
  bRoll: z.ZodOptional<z.ZodBoolean>;
655
655
  logo: z.ZodOptional<z.ZodString>;
656
656
  }, "strip", z.ZodTypeAny, {
657
+ isFeedbackEnabled: boolean;
657
658
  primaryColor?: string | undefined;
658
659
  secondaryColor?: string | undefined;
659
660
  facebookLink?: string | undefined;
660
- isFeedbackEnabled?: boolean | undefined;
661
661
  instagramLink?: string | undefined;
662
662
  bRoll?: boolean | undefined;
663
663
  logo?: string | undefined;
@@ -685,10 +685,10 @@ declare const UserSchema: z.ZodObject<{
685
685
  timezone?: string | undefined;
686
686
  tenantId?: string | undefined;
687
687
  preferences?: {
688
+ isFeedbackEnabled: boolean;
688
689
  primaryColor?: string | undefined;
689
690
  secondaryColor?: string | undefined;
690
691
  facebookLink?: string | undefined;
691
- isFeedbackEnabled?: boolean | undefined;
692
692
  instagramLink?: string | undefined;
693
693
  bRoll?: boolean | undefined;
694
694
  logo?: string | undefined;
@@ -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,13 @@ 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;
1730
1763
  type index$5_Style = Style;
1731
1764
  declare const index$5_Styles: typeof Styles;
1732
1765
  type index$5_TimelineItem = TimelineItem;
1733
1766
  declare const index$5_TimelineItemSchema: typeof TimelineItemSchema;
1734
1767
  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 };
1768
+ 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_Style as Style, index$5_Styles as Styles, type index$5_TimelineItem as TimelineItem, index$5_TimelineItemSchema as TimelineItemSchema };
1736
1769
  }
1737
1770
 
1738
1771
  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: "text-yellow-800",
1020
+ bg: "bg-yellow-100",
1021
+ border: "border-yellow-200",
1022
+ dot: "bg-yellow-700"
1023
+ },
1024
+ thumbnail: {
1025
+ primary: "bg-yellow-300",
1026
+ secondary: "bg-yellow-50"
1027
+ },
1028
+ icons: {
1029
+ mobile: { primary: "#FACC15", secondary: "#FEF9C3" },
1030
+ web: {
1031
+ name: "Share",
1032
+ iconColor: "text-yellow-900",
1033
+ bgColor: "bg-yellow-200"
1034
+ }
1035
+ },
1036
+ progress: {
1037
+ primary: "bg-yellow-400",
1038
+ secondary: "bg-yellow-50",
1039
+ border: "border-yellow-100"
1040
+ }
1041
+ },
1042
+ [1 /* EDITING */]: {
1043
+ id: 1 /* EDITING */,
1044
+ label: "In Progress",
1045
+ colors: {
1046
+ text: "text-violet-600",
1047
+ bg: "bg-violet-50",
1048
+ border: "border-violet-200",
1049
+ dot: "bg-violet-600"
1050
+ },
1051
+ thumbnail: {
1052
+ primary: "bg-violet-300",
1053
+ secondary: "bg-violet-50"
1054
+ },
1055
+ icons: {
1056
+ mobile: { primary: "#A67EE7", secondary: "#C4A9EF" },
1057
+ web: {
1058
+ name: "Hourglass",
1059
+ iconColor: "text-violet-600",
1060
+ bgColor: "bg-violet-200"
1061
+ }
1062
+ },
1063
+ progress: {
1064
+ primary: "bg-violet-300",
1065
+ secondary: "bg-violet-50",
1066
+ border: "border-violet-100"
1067
+ }
1068
+ },
1069
+ [3 /* WAITING_APPROVE */]: {
1070
+ id: 3 /* WAITING_APPROVE */,
1071
+ label: "Waiting Approval",
1072
+ colors: {
1073
+ text: "text-orange-700",
1074
+ bg: "bg-orange-100",
1075
+ border: "border-orange-200",
1076
+ dot: "bg-orange-600"
1077
+ },
1078
+ thumbnail: {
1079
+ primary: "bg-violet-300",
1080
+ secondary: "bg-violet-50"
1081
+ },
1082
+ icons: {
1083
+ mobile: { primary: "#A67EE7", secondary: "#C4A9EF" },
1084
+ web: {
1085
+ name: "Clock",
1086
+ iconColor: "text-orange-700",
1087
+ bgColor: "bg-orange-200"
1088
+ }
1089
+ },
1090
+ progress: {
1091
+ primary: "bg-orange-300",
1092
+ secondary: "bg-orange-50",
1093
+ border: "border-orange-100"
1094
+ }
1095
+ },
1096
+ [4 /* DENIED */]: {
1097
+ id: 4 /* DENIED */,
1098
+ label: "Denied",
1099
+ colors: {
1100
+ text: "text-red-500",
1101
+ bg: "bg-red-100",
1102
+ border: "border-red-200",
1103
+ dot: "bg-red-500"
1104
+ },
1105
+ thumbnail: {
1106
+ primary: "bg-violet-300",
1107
+ secondary: "bg-violet-50"
1108
+ },
1109
+ icons: {
1110
+ mobile: { primary: "#A67EE7", secondary: "#C4A9EF" },
1111
+ web: {
1112
+ name: "CircleX",
1113
+ iconColor: "text-red-500",
1114
+ bgColor: "bg-red-200"
1115
+ }
1116
+ },
1117
+ progress: {
1118
+ primary: "bg-red-300",
1119
+ secondary: "bg-red-50",
1120
+ border: "border-red-100"
1121
+ }
1122
+ },
1123
+ [7 /* SCHEDULED */]: {
1124
+ id: 7 /* SCHEDULED */,
1125
+ label: "Scheduled",
1126
+ colors: {
1127
+ text: "text-lime-800",
1128
+ bg: "bg-lime-100",
1129
+ border: "border-lime-200",
1130
+ dot: "bg-lime-700"
1131
+ },
1132
+ thumbnail: {
1133
+ primary: "bg-violet-300",
1134
+ secondary: "bg-violet-50"
1135
+ },
1136
+ icons: {
1137
+ mobile: { primary: "#A67EE7", secondary: "#C4A9EF" },
1138
+ web: {
1139
+ name: "CalendarRange",
1140
+ iconColor: "text-lime-800",
1141
+ bgColor: "bg-lime-200"
1142
+ }
1143
+ },
1144
+ progress: {
1145
+ primary: "bg-lime-300",
1146
+ secondary: "bg-lime-50",
1147
+ border: "border-lime-100"
1148
+ }
1149
+ },
1150
+ [2 /* COMPLETED */]: {
1151
+ id: 2 /* COMPLETED */,
1152
+ label: "Completed",
1153
+ colors: {
1154
+ text: "text-green-600",
1155
+ bg: "bg-green-50",
1156
+ border: "border-green-100",
1157
+ dot: "bg-green-600"
1158
+ },
1159
+ thumbnail: {
1160
+ primary: "bg-green-300",
1161
+ secondary: "bg-green-50"
1162
+ },
1163
+ icons: {
1164
+ mobile: { primary: "#22C55E", secondary: "#BBF7D0" },
1165
+ web: {
1166
+ name: "CircleCheck",
1167
+ iconColor: "text-green-600",
1168
+ bgColor: "bg-green-100"
1169
+ }
1170
+ },
1171
+ progress: {
1172
+ primary: "bg-green-400",
1173
+ secondary: "bg-green-100",
1174
+ border: "border-green-200"
1175
+ }
1176
+ },
1177
+ [5 /* REVISIONING */]: {
1178
+ id: 5 /* REVISIONING */,
1179
+ label: "Revisioning",
1180
+ colors: {
1181
+ text: "text-sky-700",
1182
+ bg: "bg-sky-200",
1183
+ border: "border-sky-300",
1184
+ dot: "bg-sky-700"
1185
+ },
1186
+ thumbnail: {
1187
+ primary: "bg-sky-300",
1188
+ secondary: "bg-sky-100"
1189
+ },
1190
+ icons: {
1191
+ mobile: { primary: "#0EA5E9", secondary: "#7DD3FC" },
1192
+ web: {
1193
+ name: "FilePen",
1194
+ iconColor: "text-sky-700",
1195
+ bgColor: "bg-sky-300"
1196
+ }
1197
+ },
1198
+ progress: {
1199
+ primary: "bg-sky-300",
1200
+ secondary: "bg-sky-50",
1201
+ border: "border-sky-100"
1202
+ }
1203
+ },
1204
+ [6 /* CANCELLED */]: {
1205
+ id: 6 /* CANCELLED */,
1206
+ label: "Canceled",
1207
+ colors: {
1208
+ text: "text-neutral-400",
1209
+ bg: "bg-neutral-100",
1210
+ border: "border-neutral-200",
1211
+ dot: "bg-neutral-400"
1212
+ },
1213
+ thumbnail: {
1214
+ primary: "bg-gray-300",
1215
+ secondary: "bg-gray-50"
1216
+ },
1217
+ icons: {
1218
+ mobile: { primary: "#6B7280", secondary: "#D1D5DB" },
1219
+ web: {
1220
+ name: "Ban",
1221
+ iconColor: "text-neutral-400",
1222
+ bgColor: "bg-neutral-100"
1223
+ }
1224
+ },
1225
+ progress: {
1226
+ primary: "bg-gray-400",
1227
+ secondary: "bg-gray-50",
1228
+ border: "border-gray-200"
1229
+ }
1230
+ }
1231
+ };
1232
+
1012
1233
  // src/api/Project.api.ts
1013
1234
  var ProjectAPI = class {
1014
1235
  constructor(env) {
@@ -1683,7 +1904,7 @@ var PreferencesSchema2 = import_zod10.z.object({
1683
1904
  primaryColor: import_zod10.z.string().optional(),
1684
1905
  secondaryColor: import_zod10.z.string().optional(),
1685
1906
  facebookLink: import_zod10.z.string().optional(),
1686
- isFeedbackEnabled: import_zod10.z.boolean().default(true).optional(),
1907
+ isFeedbackEnabled: import_zod10.z.boolean().optional().default(true),
1687
1908
  instagramLink: import_zod10.z.string().optional(),
1688
1909
  bRoll: import_zod10.z.boolean().optional(),
1689
1910
  logo: import_zod10.z.string().optional()