shred-api-client 2.2.4-rc.4 → 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 +31 -32
- package/dist/index.d.ts +31 -32
- package/dist/index.js +27 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -29
- 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
|
-
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
|
-
|
|
1754
1753
|
type index$5_Approve = Approve;
|
|
1755
1754
|
type index$5_CaptionStyle = CaptionStyle;
|
|
1756
1755
|
declare const index$5_CaptionStyle: typeof CaptionStyle;
|
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
|
-
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
|
-
|
|
1754
1753
|
type index$5_Approve = Approve;
|
|
1755
1754
|
type index$5_CaptionStyle = CaptionStyle;
|
|
1756
1755
|
declare const index$5_CaptionStyle: typeof CaptionStyle;
|
package/dist/index.js
CHANGED
|
@@ -982,35 +982,6 @@ 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
985
|
var StatusConfig = {
|
|
1015
986
|
[0 /* SUBMITTED */]: {
|
|
1016
987
|
id: 0 /* 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) {
|