shred-api-client 2.2.4-rc.3 → 2.2.4-rc.5
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 +34 -34
- package/dist/index.d.ts +34 -34
- package/dist/index.js +30 -32
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -32
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1627,6 +1627,37 @@ type Approve = {
|
|
|
1627
1627
|
type Project = z.infer<typeof ProjectSchema>;
|
|
1628
1628
|
type TimelineItem = z.infer<typeof TimelineItemSchema>;
|
|
1629
1629
|
type Feedback = z.infer<typeof FeedbackSchema>;
|
|
1630
|
+
type StatusConfigType = {
|
|
1631
|
+
id: Status$1;
|
|
1632
|
+
label: string;
|
|
1633
|
+
colors: {
|
|
1634
|
+
text: string;
|
|
1635
|
+
bg: string;
|
|
1636
|
+
border: string;
|
|
1637
|
+
dot: string;
|
|
1638
|
+
};
|
|
1639
|
+
thumbnail: {
|
|
1640
|
+
primary: string;
|
|
1641
|
+
secondary: string;
|
|
1642
|
+
};
|
|
1643
|
+
icons: {
|
|
1644
|
+
mobile: {
|
|
1645
|
+
primary: string;
|
|
1646
|
+
secondary: string;
|
|
1647
|
+
};
|
|
1648
|
+
web: {
|
|
1649
|
+
name: string;
|
|
1650
|
+
iconColor: string;
|
|
1651
|
+
bgColor: string;
|
|
1652
|
+
};
|
|
1653
|
+
};
|
|
1654
|
+
progress: {
|
|
1655
|
+
primary: string;
|
|
1656
|
+
secondary: string;
|
|
1657
|
+
border: string;
|
|
1658
|
+
};
|
|
1659
|
+
};
|
|
1660
|
+
declare const StatusConfig: Record<Status$1, StatusConfigType>;
|
|
1630
1661
|
|
|
1631
1662
|
interface IAPI$4 {
|
|
1632
1663
|
reorder: (context: Context, projectId: string, position: number) => Promise<boolean>;
|
|
@@ -1719,38 +1750,6 @@ declare const Endpoints$3: {
|
|
|
1719
1750
|
};
|
|
1720
1751
|
};
|
|
1721
1752
|
|
|
1722
|
-
interface StatusConfig {
|
|
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, StatusConfig>;
|
|
1753
|
-
|
|
1754
1753
|
type index$5_Approve = Approve;
|
|
1755
1754
|
type index$5_CaptionStyle = CaptionStyle;
|
|
1756
1755
|
declare const index$5_CaptionStyle: typeof CaptionStyle;
|
|
@@ -1759,13 +1758,14 @@ declare const index$5_FeedbackSchema: typeof FeedbackSchema;
|
|
|
1759
1758
|
type index$5_ProjectCreation = ProjectCreation;
|
|
1760
1759
|
declare const index$5_ProjectSchema: typeof ProjectSchema;
|
|
1761
1760
|
type index$5_SendToApproval = SendToApproval;
|
|
1761
|
+
declare const index$5_StatusConfig: typeof StatusConfig;
|
|
1762
|
+
type index$5_StatusConfigType = StatusConfigType;
|
|
1762
1763
|
type index$5_Style = Style;
|
|
1763
1764
|
declare const index$5_Styles: typeof Styles;
|
|
1764
1765
|
type index$5_TimelineItem = TimelineItem;
|
|
1765
1766
|
declare const index$5_TimelineItemSchema: typeof TimelineItemSchema;
|
|
1766
|
-
declare const index$5_statusConfig: typeof statusConfig;
|
|
1767
1767
|
declare namespace index$5 {
|
|
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, 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_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 };
|
|
1769
1769
|
}
|
|
1770
1770
|
|
|
1771
1771
|
declare const DailyMilestoneSchema: z.ZodObject<{
|
package/dist/index.d.ts
CHANGED
|
@@ -1627,6 +1627,37 @@ type Approve = {
|
|
|
1627
1627
|
type Project = z.infer<typeof ProjectSchema>;
|
|
1628
1628
|
type TimelineItem = z.infer<typeof TimelineItemSchema>;
|
|
1629
1629
|
type Feedback = z.infer<typeof FeedbackSchema>;
|
|
1630
|
+
type StatusConfigType = {
|
|
1631
|
+
id: Status$1;
|
|
1632
|
+
label: string;
|
|
1633
|
+
colors: {
|
|
1634
|
+
text: string;
|
|
1635
|
+
bg: string;
|
|
1636
|
+
border: string;
|
|
1637
|
+
dot: string;
|
|
1638
|
+
};
|
|
1639
|
+
thumbnail: {
|
|
1640
|
+
primary: string;
|
|
1641
|
+
secondary: string;
|
|
1642
|
+
};
|
|
1643
|
+
icons: {
|
|
1644
|
+
mobile: {
|
|
1645
|
+
primary: string;
|
|
1646
|
+
secondary: string;
|
|
1647
|
+
};
|
|
1648
|
+
web: {
|
|
1649
|
+
name: string;
|
|
1650
|
+
iconColor: string;
|
|
1651
|
+
bgColor: string;
|
|
1652
|
+
};
|
|
1653
|
+
};
|
|
1654
|
+
progress: {
|
|
1655
|
+
primary: string;
|
|
1656
|
+
secondary: string;
|
|
1657
|
+
border: string;
|
|
1658
|
+
};
|
|
1659
|
+
};
|
|
1660
|
+
declare const StatusConfig: Record<Status$1, StatusConfigType>;
|
|
1630
1661
|
|
|
1631
1662
|
interface IAPI$4 {
|
|
1632
1663
|
reorder: (context: Context, projectId: string, position: number) => Promise<boolean>;
|
|
@@ -1719,38 +1750,6 @@ declare const Endpoints$3: {
|
|
|
1719
1750
|
};
|
|
1720
1751
|
};
|
|
1721
1752
|
|
|
1722
|
-
interface StatusConfig {
|
|
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, StatusConfig>;
|
|
1753
|
-
|
|
1754
1753
|
type index$5_Approve = Approve;
|
|
1755
1754
|
type index$5_CaptionStyle = CaptionStyle;
|
|
1756
1755
|
declare const index$5_CaptionStyle: typeof CaptionStyle;
|
|
@@ -1759,13 +1758,14 @@ declare const index$5_FeedbackSchema: typeof FeedbackSchema;
|
|
|
1759
1758
|
type index$5_ProjectCreation = ProjectCreation;
|
|
1760
1759
|
declare const index$5_ProjectSchema: typeof ProjectSchema;
|
|
1761
1760
|
type index$5_SendToApproval = SendToApproval;
|
|
1761
|
+
declare const index$5_StatusConfig: typeof StatusConfig;
|
|
1762
|
+
type index$5_StatusConfigType = StatusConfigType;
|
|
1762
1763
|
type index$5_Style = Style;
|
|
1763
1764
|
declare const index$5_Styles: typeof Styles;
|
|
1764
1765
|
type index$5_TimelineItem = TimelineItem;
|
|
1765
1766
|
declare const index$5_TimelineItemSchema: typeof TimelineItemSchema;
|
|
1766
|
-
declare const index$5_statusConfig: typeof statusConfig;
|
|
1767
1767
|
declare namespace index$5 {
|
|
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, 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_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 };
|
|
1769
1769
|
}
|
|
1770
1770
|
|
|
1771
1771
|
declare const DailyMilestoneSchema: z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -883,9 +883,9 @@ __export(project_exports, {
|
|
|
883
883
|
FeedbackSchema: () => FeedbackSchema,
|
|
884
884
|
ProjectSchema: () => ProjectSchema,
|
|
885
885
|
Status: () => Status2,
|
|
886
|
+
StatusConfig: () => StatusConfig,
|
|
886
887
|
Styles: () => Styles,
|
|
887
|
-
TimelineItemSchema: () => TimelineItemSchema
|
|
888
|
-
statusConfig: () => statusConfig
|
|
888
|
+
TimelineItemSchema: () => TimelineItemSchema
|
|
889
889
|
});
|
|
890
890
|
|
|
891
891
|
// src/model/project/Project.schema.ts
|
|
@@ -982,36 +982,7 @@ var ProjectSchema = import_zod4.z.object({
|
|
|
982
982
|
tenantId: import_zod4.z.string().optional(),
|
|
983
983
|
status: import_zod4.z.nativeEnum(Status2)
|
|
984
984
|
});
|
|
985
|
-
|
|
986
|
-
// src/model/project/Project.api.ts
|
|
987
|
-
var Endpoints3 = {
|
|
988
|
-
Reorder: { uri: "/projects/reorder/", method: "POST" },
|
|
989
|
-
List: { uri: "/projects/list", method: "GET" },
|
|
990
|
-
GetNext: { uri: "/projects/:userId/next", method: "GET" },
|
|
991
|
-
CreateProject: { uri: "/projects/create", method: "POST" },
|
|
992
|
-
FindOne: { uri: `/projects/:projectId/`, method: "GET" },
|
|
993
|
-
GetGoals: { uri: `/projects/goals/list/`, method: "GET" },
|
|
994
|
-
Review: { uri: "/projects/:projectId/review/", method: "POST" },
|
|
995
|
-
Cancel: { uri: "/projects/:projectId/cancel/", method: "DELETE" },
|
|
996
|
-
StartEdition: { uri: "/projects/edition/start/", method: "PUT" },
|
|
997
|
-
SendToApproval: {
|
|
998
|
-
uri: "/projects/:projectId/sendToApproval/",
|
|
999
|
-
method: "PUT"
|
|
1000
|
-
},
|
|
1001
|
-
IsEligibleForFreeProject: {
|
|
1002
|
-
uri: "/projects/free/allowed/",
|
|
1003
|
-
method: "GET"
|
|
1004
|
-
},
|
|
1005
|
-
Approve: { uri: "/projects/:projectId/approve/", method: "POST" },
|
|
1006
|
-
Unschedule: { uri: "/projects/:projectId/unschedule/", method: "POST" },
|
|
1007
|
-
Rollback: { uri: "/projects/:projectId/rollback/", method: "POST" },
|
|
1008
|
-
Deny: { uri: "/projects/:projectId/deny/", method: "POST" },
|
|
1009
|
-
GetUserHistory: { uri: "/projects/user/:userId/history/", method: "GET" },
|
|
1010
|
-
GetPoolSize: { uri: "/projects/pool/size/", method: "GET" }
|
|
1011
|
-
};
|
|
1012
|
-
|
|
1013
|
-
// src/model/project/StatusConfig.ts
|
|
1014
|
-
var statusConfig = {
|
|
985
|
+
var StatusConfig = {
|
|
1015
986
|
[0 /* SUBMITTED */]: {
|
|
1016
987
|
id: 0 /* SUBMITTED */,
|
|
1017
988
|
label: "Submitted",
|
|
@@ -1230,6 +1201,33 @@ var statusConfig = {
|
|
|
1230
1201
|
}
|
|
1231
1202
|
};
|
|
1232
1203
|
|
|
1204
|
+
// src/model/project/Project.api.ts
|
|
1205
|
+
var Endpoints3 = {
|
|
1206
|
+
Reorder: { uri: "/projects/reorder/", method: "POST" },
|
|
1207
|
+
List: { uri: "/projects/list", method: "GET" },
|
|
1208
|
+
GetNext: { uri: "/projects/:userId/next", method: "GET" },
|
|
1209
|
+
CreateProject: { uri: "/projects/create", method: "POST" },
|
|
1210
|
+
FindOne: { uri: `/projects/:projectId/`, method: "GET" },
|
|
1211
|
+
GetGoals: { uri: `/projects/goals/list/`, method: "GET" },
|
|
1212
|
+
Review: { uri: "/projects/:projectId/review/", method: "POST" },
|
|
1213
|
+
Cancel: { uri: "/projects/:projectId/cancel/", method: "DELETE" },
|
|
1214
|
+
StartEdition: { uri: "/projects/edition/start/", method: "PUT" },
|
|
1215
|
+
SendToApproval: {
|
|
1216
|
+
uri: "/projects/:projectId/sendToApproval/",
|
|
1217
|
+
method: "PUT"
|
|
1218
|
+
},
|
|
1219
|
+
IsEligibleForFreeProject: {
|
|
1220
|
+
uri: "/projects/free/allowed/",
|
|
1221
|
+
method: "GET"
|
|
1222
|
+
},
|
|
1223
|
+
Approve: { uri: "/projects/:projectId/approve/", method: "POST" },
|
|
1224
|
+
Unschedule: { uri: "/projects/:projectId/unschedule/", method: "POST" },
|
|
1225
|
+
Rollback: { uri: "/projects/:projectId/rollback/", method: "POST" },
|
|
1226
|
+
Deny: { uri: "/projects/:projectId/deny/", method: "POST" },
|
|
1227
|
+
GetUserHistory: { uri: "/projects/user/:userId/history/", method: "GET" },
|
|
1228
|
+
GetPoolSize: { uri: "/projects/pool/size/", method: "GET" }
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1233
1231
|
// src/api/Project.api.ts
|
|
1234
1232
|
var ProjectAPI = class {
|
|
1235
1233
|
constructor(env) {
|