@uniformdev/webhooks 19.147.0 → 19.147.1-alpha.10
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 +327 -1
- package/dist/index.d.ts +327 -1
- package/dist/index.esm.js +80 -0
- package/dist/index.js +86 -0
- package/dist/index.mjs +80 -0
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1591,4 +1591,330 @@ declare const ArchivedReleaseLaunchStartedDefinition: Definition<zod.ZodObject<{
|
|
|
1591
1591
|
autoLaunchScheduleTimeZone?: string | undefined;
|
|
1592
1592
|
}>>;
|
|
1593
1593
|
|
|
1594
|
-
|
|
1594
|
+
declare const WorkflowReferenceSchema: z.ZodObject<{
|
|
1595
|
+
workflowId: z.ZodString;
|
|
1596
|
+
workflowName: z.ZodString;
|
|
1597
|
+
stageId: z.ZodString;
|
|
1598
|
+
stageName: z.ZodString;
|
|
1599
|
+
}, "strict", z.ZodTypeAny, {
|
|
1600
|
+
workflowId: string;
|
|
1601
|
+
workflowName: string;
|
|
1602
|
+
stageId: string;
|
|
1603
|
+
stageName: string;
|
|
1604
|
+
}, {
|
|
1605
|
+
workflowId: string;
|
|
1606
|
+
workflowName: string;
|
|
1607
|
+
stageId: string;
|
|
1608
|
+
stageName: string;
|
|
1609
|
+
}>;
|
|
1610
|
+
declare const WorkflowIdentitySchema: z.ZodObject<{
|
|
1611
|
+
id: z.ZodString;
|
|
1612
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1613
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1614
|
+
}, "strict", z.ZodTypeAny, {
|
|
1615
|
+
id: string;
|
|
1616
|
+
name?: string | undefined;
|
|
1617
|
+
email?: string | undefined;
|
|
1618
|
+
}, {
|
|
1619
|
+
id: string;
|
|
1620
|
+
name?: string | undefined;
|
|
1621
|
+
email?: string | undefined;
|
|
1622
|
+
}>;
|
|
1623
|
+
declare const WorkflowEntitySchema: z.ZodObject<{
|
|
1624
|
+
type: z.ZodEnum<["entry", "component"]>;
|
|
1625
|
+
name: z.ZodString;
|
|
1626
|
+
id: z.ZodString;
|
|
1627
|
+
releaseId: z.ZodOptional<z.ZodString>;
|
|
1628
|
+
url: z.ZodString;
|
|
1629
|
+
}, "strict", z.ZodTypeAny, {
|
|
1630
|
+
id: string;
|
|
1631
|
+
name: string;
|
|
1632
|
+
type: "entry" | "component";
|
|
1633
|
+
url: string;
|
|
1634
|
+
releaseId?: string | undefined;
|
|
1635
|
+
}, {
|
|
1636
|
+
id: string;
|
|
1637
|
+
name: string;
|
|
1638
|
+
type: "entry" | "component";
|
|
1639
|
+
url: string;
|
|
1640
|
+
releaseId?: string | undefined;
|
|
1641
|
+
}>;
|
|
1642
|
+
declare const WorkflowTransitionPayloadSchema: z.ZodObject<{
|
|
1643
|
+
entity: z.ZodObject<{
|
|
1644
|
+
type: z.ZodEnum<["entry", "component"]>;
|
|
1645
|
+
name: z.ZodString;
|
|
1646
|
+
id: z.ZodString;
|
|
1647
|
+
releaseId: z.ZodOptional<z.ZodString>;
|
|
1648
|
+
url: z.ZodString;
|
|
1649
|
+
}, "strict", z.ZodTypeAny, {
|
|
1650
|
+
id: string;
|
|
1651
|
+
name: string;
|
|
1652
|
+
type: "entry" | "component";
|
|
1653
|
+
url: string;
|
|
1654
|
+
releaseId?: string | undefined;
|
|
1655
|
+
}, {
|
|
1656
|
+
id: string;
|
|
1657
|
+
name: string;
|
|
1658
|
+
type: "entry" | "component";
|
|
1659
|
+
url: string;
|
|
1660
|
+
releaseId?: string | undefined;
|
|
1661
|
+
}>;
|
|
1662
|
+
newStage: z.ZodObject<{
|
|
1663
|
+
workflowId: z.ZodString;
|
|
1664
|
+
workflowName: z.ZodString;
|
|
1665
|
+
stageId: z.ZodString;
|
|
1666
|
+
stageName: z.ZodString;
|
|
1667
|
+
}, "strict", z.ZodTypeAny, {
|
|
1668
|
+
workflowId: string;
|
|
1669
|
+
workflowName: string;
|
|
1670
|
+
stageId: string;
|
|
1671
|
+
stageName: string;
|
|
1672
|
+
}, {
|
|
1673
|
+
workflowId: string;
|
|
1674
|
+
workflowName: string;
|
|
1675
|
+
stageId: string;
|
|
1676
|
+
stageName: string;
|
|
1677
|
+
}>;
|
|
1678
|
+
previousStage: z.ZodOptional<z.ZodObject<{
|
|
1679
|
+
workflowId: z.ZodString;
|
|
1680
|
+
workflowName: z.ZodString;
|
|
1681
|
+
stageId: z.ZodString;
|
|
1682
|
+
stageName: z.ZodString;
|
|
1683
|
+
}, "strict", z.ZodTypeAny, {
|
|
1684
|
+
workflowId: string;
|
|
1685
|
+
workflowName: string;
|
|
1686
|
+
stageId: string;
|
|
1687
|
+
stageName: string;
|
|
1688
|
+
}, {
|
|
1689
|
+
workflowId: string;
|
|
1690
|
+
workflowName: string;
|
|
1691
|
+
stageId: string;
|
|
1692
|
+
stageName: string;
|
|
1693
|
+
}>>;
|
|
1694
|
+
initiator: z.ZodObject<{
|
|
1695
|
+
id: z.ZodString;
|
|
1696
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1697
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1698
|
+
}, "strict", z.ZodTypeAny, {
|
|
1699
|
+
id: string;
|
|
1700
|
+
name?: string | undefined;
|
|
1701
|
+
email?: string | undefined;
|
|
1702
|
+
}, {
|
|
1703
|
+
id: string;
|
|
1704
|
+
name?: string | undefined;
|
|
1705
|
+
email?: string | undefined;
|
|
1706
|
+
}>;
|
|
1707
|
+
timestamp: z.ZodString;
|
|
1708
|
+
project: z.ZodObject<{
|
|
1709
|
+
id: z.ZodString;
|
|
1710
|
+
url: z.ZodString;
|
|
1711
|
+
}, "strip", z.ZodTypeAny, {
|
|
1712
|
+
id: string;
|
|
1713
|
+
url: string;
|
|
1714
|
+
}, {
|
|
1715
|
+
id: string;
|
|
1716
|
+
url: string;
|
|
1717
|
+
}>;
|
|
1718
|
+
}, "strict", z.ZodTypeAny, {
|
|
1719
|
+
project: {
|
|
1720
|
+
id: string;
|
|
1721
|
+
url: string;
|
|
1722
|
+
};
|
|
1723
|
+
timestamp: string;
|
|
1724
|
+
entity: {
|
|
1725
|
+
id: string;
|
|
1726
|
+
name: string;
|
|
1727
|
+
type: "entry" | "component";
|
|
1728
|
+
url: string;
|
|
1729
|
+
releaseId?: string | undefined;
|
|
1730
|
+
};
|
|
1731
|
+
newStage: {
|
|
1732
|
+
workflowId: string;
|
|
1733
|
+
workflowName: string;
|
|
1734
|
+
stageId: string;
|
|
1735
|
+
stageName: string;
|
|
1736
|
+
};
|
|
1737
|
+
initiator: {
|
|
1738
|
+
id: string;
|
|
1739
|
+
name?: string | undefined;
|
|
1740
|
+
email?: string | undefined;
|
|
1741
|
+
};
|
|
1742
|
+
previousStage?: {
|
|
1743
|
+
workflowId: string;
|
|
1744
|
+
workflowName: string;
|
|
1745
|
+
stageId: string;
|
|
1746
|
+
stageName: string;
|
|
1747
|
+
} | undefined;
|
|
1748
|
+
}, {
|
|
1749
|
+
project: {
|
|
1750
|
+
id: string;
|
|
1751
|
+
url: string;
|
|
1752
|
+
};
|
|
1753
|
+
timestamp: string;
|
|
1754
|
+
entity: {
|
|
1755
|
+
id: string;
|
|
1756
|
+
name: string;
|
|
1757
|
+
type: "entry" | "component";
|
|
1758
|
+
url: string;
|
|
1759
|
+
releaseId?: string | undefined;
|
|
1760
|
+
};
|
|
1761
|
+
newStage: {
|
|
1762
|
+
workflowId: string;
|
|
1763
|
+
workflowName: string;
|
|
1764
|
+
stageId: string;
|
|
1765
|
+
stageName: string;
|
|
1766
|
+
};
|
|
1767
|
+
initiator: {
|
|
1768
|
+
id: string;
|
|
1769
|
+
name?: string | undefined;
|
|
1770
|
+
email?: string | undefined;
|
|
1771
|
+
};
|
|
1772
|
+
previousStage?: {
|
|
1773
|
+
workflowId: string;
|
|
1774
|
+
workflowName: string;
|
|
1775
|
+
stageId: string;
|
|
1776
|
+
stageName: string;
|
|
1777
|
+
} | undefined;
|
|
1778
|
+
}>;
|
|
1779
|
+
|
|
1780
|
+
declare const WorkflowTransitionDefinition: Definition<z.ZodObject<{
|
|
1781
|
+
entity: z.ZodObject<{
|
|
1782
|
+
type: z.ZodEnum<["entry", "component"]>;
|
|
1783
|
+
name: z.ZodString;
|
|
1784
|
+
id: z.ZodString;
|
|
1785
|
+
releaseId: z.ZodOptional<z.ZodString>;
|
|
1786
|
+
url: z.ZodString;
|
|
1787
|
+
}, "strict", z.ZodTypeAny, {
|
|
1788
|
+
id: string;
|
|
1789
|
+
name: string;
|
|
1790
|
+
type: "entry" | "component";
|
|
1791
|
+
url: string;
|
|
1792
|
+
releaseId?: string | undefined;
|
|
1793
|
+
}, {
|
|
1794
|
+
id: string;
|
|
1795
|
+
name: string;
|
|
1796
|
+
type: "entry" | "component";
|
|
1797
|
+
url: string;
|
|
1798
|
+
releaseId?: string | undefined;
|
|
1799
|
+
}>;
|
|
1800
|
+
newStage: z.ZodObject<{
|
|
1801
|
+
workflowId: z.ZodString;
|
|
1802
|
+
workflowName: z.ZodString;
|
|
1803
|
+
stageId: z.ZodString;
|
|
1804
|
+
stageName: z.ZodString;
|
|
1805
|
+
}, "strict", z.ZodTypeAny, {
|
|
1806
|
+
workflowId: string;
|
|
1807
|
+
workflowName: string;
|
|
1808
|
+
stageId: string;
|
|
1809
|
+
stageName: string;
|
|
1810
|
+
}, {
|
|
1811
|
+
workflowId: string;
|
|
1812
|
+
workflowName: string;
|
|
1813
|
+
stageId: string;
|
|
1814
|
+
stageName: string;
|
|
1815
|
+
}>;
|
|
1816
|
+
previousStage: z.ZodOptional<z.ZodObject<{
|
|
1817
|
+
workflowId: z.ZodString;
|
|
1818
|
+
workflowName: z.ZodString;
|
|
1819
|
+
stageId: z.ZodString;
|
|
1820
|
+
stageName: z.ZodString;
|
|
1821
|
+
}, "strict", z.ZodTypeAny, {
|
|
1822
|
+
workflowId: string;
|
|
1823
|
+
workflowName: string;
|
|
1824
|
+
stageId: string;
|
|
1825
|
+
stageName: string;
|
|
1826
|
+
}, {
|
|
1827
|
+
workflowId: string;
|
|
1828
|
+
workflowName: string;
|
|
1829
|
+
stageId: string;
|
|
1830
|
+
stageName: string;
|
|
1831
|
+
}>>;
|
|
1832
|
+
initiator: z.ZodObject<{
|
|
1833
|
+
id: z.ZodString;
|
|
1834
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1835
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1836
|
+
}, "strict", z.ZodTypeAny, {
|
|
1837
|
+
id: string;
|
|
1838
|
+
name?: string | undefined;
|
|
1839
|
+
email?: string | undefined;
|
|
1840
|
+
}, {
|
|
1841
|
+
id: string;
|
|
1842
|
+
name?: string | undefined;
|
|
1843
|
+
email?: string | undefined;
|
|
1844
|
+
}>;
|
|
1845
|
+
timestamp: z.ZodString;
|
|
1846
|
+
project: z.ZodObject<{
|
|
1847
|
+
id: z.ZodString;
|
|
1848
|
+
url: z.ZodString;
|
|
1849
|
+
}, "strip", z.ZodTypeAny, {
|
|
1850
|
+
id: string;
|
|
1851
|
+
url: string;
|
|
1852
|
+
}, {
|
|
1853
|
+
id: string;
|
|
1854
|
+
url: string;
|
|
1855
|
+
}>;
|
|
1856
|
+
}, "strict", z.ZodTypeAny, {
|
|
1857
|
+
project: {
|
|
1858
|
+
id: string;
|
|
1859
|
+
url: string;
|
|
1860
|
+
};
|
|
1861
|
+
timestamp: string;
|
|
1862
|
+
entity: {
|
|
1863
|
+
id: string;
|
|
1864
|
+
name: string;
|
|
1865
|
+
type: "entry" | "component";
|
|
1866
|
+
url: string;
|
|
1867
|
+
releaseId?: string | undefined;
|
|
1868
|
+
};
|
|
1869
|
+
newStage: {
|
|
1870
|
+
workflowId: string;
|
|
1871
|
+
workflowName: string;
|
|
1872
|
+
stageId: string;
|
|
1873
|
+
stageName: string;
|
|
1874
|
+
};
|
|
1875
|
+
initiator: {
|
|
1876
|
+
id: string;
|
|
1877
|
+
name?: string | undefined;
|
|
1878
|
+
email?: string | undefined;
|
|
1879
|
+
};
|
|
1880
|
+
previousStage?: {
|
|
1881
|
+
workflowId: string;
|
|
1882
|
+
workflowName: string;
|
|
1883
|
+
stageId: string;
|
|
1884
|
+
stageName: string;
|
|
1885
|
+
} | undefined;
|
|
1886
|
+
}, {
|
|
1887
|
+
project: {
|
|
1888
|
+
id: string;
|
|
1889
|
+
url: string;
|
|
1890
|
+
};
|
|
1891
|
+
timestamp: string;
|
|
1892
|
+
entity: {
|
|
1893
|
+
id: string;
|
|
1894
|
+
name: string;
|
|
1895
|
+
type: "entry" | "component";
|
|
1896
|
+
url: string;
|
|
1897
|
+
releaseId?: string | undefined;
|
|
1898
|
+
};
|
|
1899
|
+
newStage: {
|
|
1900
|
+
workflowId: string;
|
|
1901
|
+
workflowName: string;
|
|
1902
|
+
stageId: string;
|
|
1903
|
+
stageName: string;
|
|
1904
|
+
};
|
|
1905
|
+
initiator: {
|
|
1906
|
+
id: string;
|
|
1907
|
+
name?: string | undefined;
|
|
1908
|
+
email?: string | undefined;
|
|
1909
|
+
};
|
|
1910
|
+
previousStage?: {
|
|
1911
|
+
workflowId: string;
|
|
1912
|
+
workflowName: string;
|
|
1913
|
+
stageId: string;
|
|
1914
|
+
stageName: string;
|
|
1915
|
+
} | undefined;
|
|
1916
|
+
}>>;
|
|
1917
|
+
type WorkflowTransitionPayload = z.infer<(typeof WorkflowTransitionDefinition)['schema']>;
|
|
1918
|
+
declare const WorkflowTransitionEventName: string;
|
|
1919
|
+
|
|
1920
|
+
export { ArchivedReleaseLaunchStartedDefinition, CompositionChangedDefinition, CompositionChangedEventName, type CompositionChangedPayload, CompositionDeletePayloadSchema, CompositionDeletedDefinition, CompositionDeletedEventName, type CompositionDeletedPayload, type CompositionPayload, CompositionPayloadSchema, CompositionPublishedDefinition, CompositionPublishedEventName, type CompositionPublishedPayload, CompositionReleaseChangedDefinition, CompositionReleaseChangedEventName, type CompositionReleaseChangedPayload, CompositionReleaseDeletedDefinition, CompositionReleaseDeletedEventName, type CompositionReleaseDeletedPayload, CompositionReleasePublishedDefinition, CompositionReleasePublishedEventName, type CompositionReleasePublishedPayload, CompositionTriggerPayloadSchema, type Definition, type DefinitionOptions, EntryChangedDefinition, EntryChangedEventName, type EntryChangedPayload, EntryDeletePayloadSchema, EntryDeletedDefinition, EntryDeletedEventName, type EntryDeletedPayload, type EntryPayload, EntryPayloadSchema, EntryPublishedDefinition, EntryPublishedEventName, type EntryPublishedPayload, EntryReleaseChangedDefinition, EntryReleaseChangedEventName, type EntryReleaseChangedPayload, EntryReleaseDeletedDefinition, EntryReleaseDeletedEventName, type EntryReleaseDeletedPayload, EntryReleasePublishedDefinition, EntryReleasePublishedEventName, type EntryReleasePublishedPayload, EntryTriggerPayloadSchema, ManifestPublishedDefinition, ManifestPublishedEventName, type ManifestPublishedPayload, ProjectMapDeleteDefinition, ProjectMapDeletedEventName, type ProjectMapDeletedPayload, ProjectMapNodeDeleteDefinition, ProjectMapNodeDeletedEventName, type ProjectMapNodeDeletedPayload, ProjectMapNodeInsertDefinition, ProjectMapNodeInsertedEventName, type ProjectMapNodeInsertedPayload, ProjectMapNodeUpdateDefinition, ProjectMapNodeUpdatedEventName, type ProjectMapNodeUpdatedPayload, ProjectMapUpdateDefinition, ProjectMapUpdatedEventName, type ProjectMapUpdatedPayload, RedirectDeleteDefinition, RedirectDeletedEventName, type RedirectDeletedPayload, RedirectInsertDefinition, RedirectInsertedEventName, type RedirectInsertedPayload, RedirectUpdateDefinition, RedirectUpdatedEventName, type RedirectUpdatedPayload, ReleaseChangedDefinition, ReleaseChangedEventName, type ReleaseChangedPayload, type ReleaseCompositionPayload, ReleaseCompositionPayloadSchema, ReleaseDeletedDefinition, ReleaseDeletedEventName, type ReleaseDeletedPayload, type ReleaseEntryPayload, ReleaseEntryPayloadSchema, ReleaseLaunchStartedDefinition, ReleaseLaunchStartedEventName, type ReleaseLaunchStartedPayload, ReleaseLaunchedDefinition, ReleaseLaunchedEventName, type ReleaseLaunchedPayload, type ReleasePayload, ReleasePayloadSchema, WorkflowEntitySchema, WorkflowIdentitySchema, WorkflowReferenceSchema, WorkflowTransitionDefinition, WorkflowTransitionEventName, type WorkflowTransitionPayload, WorkflowTransitionPayloadSchema, definition, isDefinition };
|
package/dist/index.d.ts
CHANGED
|
@@ -1591,4 +1591,330 @@ declare const ArchivedReleaseLaunchStartedDefinition: Definition<zod.ZodObject<{
|
|
|
1591
1591
|
autoLaunchScheduleTimeZone?: string | undefined;
|
|
1592
1592
|
}>>;
|
|
1593
1593
|
|
|
1594
|
-
|
|
1594
|
+
declare const WorkflowReferenceSchema: z.ZodObject<{
|
|
1595
|
+
workflowId: z.ZodString;
|
|
1596
|
+
workflowName: z.ZodString;
|
|
1597
|
+
stageId: z.ZodString;
|
|
1598
|
+
stageName: z.ZodString;
|
|
1599
|
+
}, "strict", z.ZodTypeAny, {
|
|
1600
|
+
workflowId: string;
|
|
1601
|
+
workflowName: string;
|
|
1602
|
+
stageId: string;
|
|
1603
|
+
stageName: string;
|
|
1604
|
+
}, {
|
|
1605
|
+
workflowId: string;
|
|
1606
|
+
workflowName: string;
|
|
1607
|
+
stageId: string;
|
|
1608
|
+
stageName: string;
|
|
1609
|
+
}>;
|
|
1610
|
+
declare const WorkflowIdentitySchema: z.ZodObject<{
|
|
1611
|
+
id: z.ZodString;
|
|
1612
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1613
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1614
|
+
}, "strict", z.ZodTypeAny, {
|
|
1615
|
+
id: string;
|
|
1616
|
+
name?: string | undefined;
|
|
1617
|
+
email?: string | undefined;
|
|
1618
|
+
}, {
|
|
1619
|
+
id: string;
|
|
1620
|
+
name?: string | undefined;
|
|
1621
|
+
email?: string | undefined;
|
|
1622
|
+
}>;
|
|
1623
|
+
declare const WorkflowEntitySchema: z.ZodObject<{
|
|
1624
|
+
type: z.ZodEnum<["entry", "component"]>;
|
|
1625
|
+
name: z.ZodString;
|
|
1626
|
+
id: z.ZodString;
|
|
1627
|
+
releaseId: z.ZodOptional<z.ZodString>;
|
|
1628
|
+
url: z.ZodString;
|
|
1629
|
+
}, "strict", z.ZodTypeAny, {
|
|
1630
|
+
id: string;
|
|
1631
|
+
name: string;
|
|
1632
|
+
type: "entry" | "component";
|
|
1633
|
+
url: string;
|
|
1634
|
+
releaseId?: string | undefined;
|
|
1635
|
+
}, {
|
|
1636
|
+
id: string;
|
|
1637
|
+
name: string;
|
|
1638
|
+
type: "entry" | "component";
|
|
1639
|
+
url: string;
|
|
1640
|
+
releaseId?: string | undefined;
|
|
1641
|
+
}>;
|
|
1642
|
+
declare const WorkflowTransitionPayloadSchema: z.ZodObject<{
|
|
1643
|
+
entity: z.ZodObject<{
|
|
1644
|
+
type: z.ZodEnum<["entry", "component"]>;
|
|
1645
|
+
name: z.ZodString;
|
|
1646
|
+
id: z.ZodString;
|
|
1647
|
+
releaseId: z.ZodOptional<z.ZodString>;
|
|
1648
|
+
url: z.ZodString;
|
|
1649
|
+
}, "strict", z.ZodTypeAny, {
|
|
1650
|
+
id: string;
|
|
1651
|
+
name: string;
|
|
1652
|
+
type: "entry" | "component";
|
|
1653
|
+
url: string;
|
|
1654
|
+
releaseId?: string | undefined;
|
|
1655
|
+
}, {
|
|
1656
|
+
id: string;
|
|
1657
|
+
name: string;
|
|
1658
|
+
type: "entry" | "component";
|
|
1659
|
+
url: string;
|
|
1660
|
+
releaseId?: string | undefined;
|
|
1661
|
+
}>;
|
|
1662
|
+
newStage: z.ZodObject<{
|
|
1663
|
+
workflowId: z.ZodString;
|
|
1664
|
+
workflowName: z.ZodString;
|
|
1665
|
+
stageId: z.ZodString;
|
|
1666
|
+
stageName: z.ZodString;
|
|
1667
|
+
}, "strict", z.ZodTypeAny, {
|
|
1668
|
+
workflowId: string;
|
|
1669
|
+
workflowName: string;
|
|
1670
|
+
stageId: string;
|
|
1671
|
+
stageName: string;
|
|
1672
|
+
}, {
|
|
1673
|
+
workflowId: string;
|
|
1674
|
+
workflowName: string;
|
|
1675
|
+
stageId: string;
|
|
1676
|
+
stageName: string;
|
|
1677
|
+
}>;
|
|
1678
|
+
previousStage: z.ZodOptional<z.ZodObject<{
|
|
1679
|
+
workflowId: z.ZodString;
|
|
1680
|
+
workflowName: z.ZodString;
|
|
1681
|
+
stageId: z.ZodString;
|
|
1682
|
+
stageName: z.ZodString;
|
|
1683
|
+
}, "strict", z.ZodTypeAny, {
|
|
1684
|
+
workflowId: string;
|
|
1685
|
+
workflowName: string;
|
|
1686
|
+
stageId: string;
|
|
1687
|
+
stageName: string;
|
|
1688
|
+
}, {
|
|
1689
|
+
workflowId: string;
|
|
1690
|
+
workflowName: string;
|
|
1691
|
+
stageId: string;
|
|
1692
|
+
stageName: string;
|
|
1693
|
+
}>>;
|
|
1694
|
+
initiator: z.ZodObject<{
|
|
1695
|
+
id: z.ZodString;
|
|
1696
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1697
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1698
|
+
}, "strict", z.ZodTypeAny, {
|
|
1699
|
+
id: string;
|
|
1700
|
+
name?: string | undefined;
|
|
1701
|
+
email?: string | undefined;
|
|
1702
|
+
}, {
|
|
1703
|
+
id: string;
|
|
1704
|
+
name?: string | undefined;
|
|
1705
|
+
email?: string | undefined;
|
|
1706
|
+
}>;
|
|
1707
|
+
timestamp: z.ZodString;
|
|
1708
|
+
project: z.ZodObject<{
|
|
1709
|
+
id: z.ZodString;
|
|
1710
|
+
url: z.ZodString;
|
|
1711
|
+
}, "strip", z.ZodTypeAny, {
|
|
1712
|
+
id: string;
|
|
1713
|
+
url: string;
|
|
1714
|
+
}, {
|
|
1715
|
+
id: string;
|
|
1716
|
+
url: string;
|
|
1717
|
+
}>;
|
|
1718
|
+
}, "strict", z.ZodTypeAny, {
|
|
1719
|
+
project: {
|
|
1720
|
+
id: string;
|
|
1721
|
+
url: string;
|
|
1722
|
+
};
|
|
1723
|
+
timestamp: string;
|
|
1724
|
+
entity: {
|
|
1725
|
+
id: string;
|
|
1726
|
+
name: string;
|
|
1727
|
+
type: "entry" | "component";
|
|
1728
|
+
url: string;
|
|
1729
|
+
releaseId?: string | undefined;
|
|
1730
|
+
};
|
|
1731
|
+
newStage: {
|
|
1732
|
+
workflowId: string;
|
|
1733
|
+
workflowName: string;
|
|
1734
|
+
stageId: string;
|
|
1735
|
+
stageName: string;
|
|
1736
|
+
};
|
|
1737
|
+
initiator: {
|
|
1738
|
+
id: string;
|
|
1739
|
+
name?: string | undefined;
|
|
1740
|
+
email?: string | undefined;
|
|
1741
|
+
};
|
|
1742
|
+
previousStage?: {
|
|
1743
|
+
workflowId: string;
|
|
1744
|
+
workflowName: string;
|
|
1745
|
+
stageId: string;
|
|
1746
|
+
stageName: string;
|
|
1747
|
+
} | undefined;
|
|
1748
|
+
}, {
|
|
1749
|
+
project: {
|
|
1750
|
+
id: string;
|
|
1751
|
+
url: string;
|
|
1752
|
+
};
|
|
1753
|
+
timestamp: string;
|
|
1754
|
+
entity: {
|
|
1755
|
+
id: string;
|
|
1756
|
+
name: string;
|
|
1757
|
+
type: "entry" | "component";
|
|
1758
|
+
url: string;
|
|
1759
|
+
releaseId?: string | undefined;
|
|
1760
|
+
};
|
|
1761
|
+
newStage: {
|
|
1762
|
+
workflowId: string;
|
|
1763
|
+
workflowName: string;
|
|
1764
|
+
stageId: string;
|
|
1765
|
+
stageName: string;
|
|
1766
|
+
};
|
|
1767
|
+
initiator: {
|
|
1768
|
+
id: string;
|
|
1769
|
+
name?: string | undefined;
|
|
1770
|
+
email?: string | undefined;
|
|
1771
|
+
};
|
|
1772
|
+
previousStage?: {
|
|
1773
|
+
workflowId: string;
|
|
1774
|
+
workflowName: string;
|
|
1775
|
+
stageId: string;
|
|
1776
|
+
stageName: string;
|
|
1777
|
+
} | undefined;
|
|
1778
|
+
}>;
|
|
1779
|
+
|
|
1780
|
+
declare const WorkflowTransitionDefinition: Definition<z.ZodObject<{
|
|
1781
|
+
entity: z.ZodObject<{
|
|
1782
|
+
type: z.ZodEnum<["entry", "component"]>;
|
|
1783
|
+
name: z.ZodString;
|
|
1784
|
+
id: z.ZodString;
|
|
1785
|
+
releaseId: z.ZodOptional<z.ZodString>;
|
|
1786
|
+
url: z.ZodString;
|
|
1787
|
+
}, "strict", z.ZodTypeAny, {
|
|
1788
|
+
id: string;
|
|
1789
|
+
name: string;
|
|
1790
|
+
type: "entry" | "component";
|
|
1791
|
+
url: string;
|
|
1792
|
+
releaseId?: string | undefined;
|
|
1793
|
+
}, {
|
|
1794
|
+
id: string;
|
|
1795
|
+
name: string;
|
|
1796
|
+
type: "entry" | "component";
|
|
1797
|
+
url: string;
|
|
1798
|
+
releaseId?: string | undefined;
|
|
1799
|
+
}>;
|
|
1800
|
+
newStage: z.ZodObject<{
|
|
1801
|
+
workflowId: z.ZodString;
|
|
1802
|
+
workflowName: z.ZodString;
|
|
1803
|
+
stageId: z.ZodString;
|
|
1804
|
+
stageName: z.ZodString;
|
|
1805
|
+
}, "strict", z.ZodTypeAny, {
|
|
1806
|
+
workflowId: string;
|
|
1807
|
+
workflowName: string;
|
|
1808
|
+
stageId: string;
|
|
1809
|
+
stageName: string;
|
|
1810
|
+
}, {
|
|
1811
|
+
workflowId: string;
|
|
1812
|
+
workflowName: string;
|
|
1813
|
+
stageId: string;
|
|
1814
|
+
stageName: string;
|
|
1815
|
+
}>;
|
|
1816
|
+
previousStage: z.ZodOptional<z.ZodObject<{
|
|
1817
|
+
workflowId: z.ZodString;
|
|
1818
|
+
workflowName: z.ZodString;
|
|
1819
|
+
stageId: z.ZodString;
|
|
1820
|
+
stageName: z.ZodString;
|
|
1821
|
+
}, "strict", z.ZodTypeAny, {
|
|
1822
|
+
workflowId: string;
|
|
1823
|
+
workflowName: string;
|
|
1824
|
+
stageId: string;
|
|
1825
|
+
stageName: string;
|
|
1826
|
+
}, {
|
|
1827
|
+
workflowId: string;
|
|
1828
|
+
workflowName: string;
|
|
1829
|
+
stageId: string;
|
|
1830
|
+
stageName: string;
|
|
1831
|
+
}>>;
|
|
1832
|
+
initiator: z.ZodObject<{
|
|
1833
|
+
id: z.ZodString;
|
|
1834
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1835
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1836
|
+
}, "strict", z.ZodTypeAny, {
|
|
1837
|
+
id: string;
|
|
1838
|
+
name?: string | undefined;
|
|
1839
|
+
email?: string | undefined;
|
|
1840
|
+
}, {
|
|
1841
|
+
id: string;
|
|
1842
|
+
name?: string | undefined;
|
|
1843
|
+
email?: string | undefined;
|
|
1844
|
+
}>;
|
|
1845
|
+
timestamp: z.ZodString;
|
|
1846
|
+
project: z.ZodObject<{
|
|
1847
|
+
id: z.ZodString;
|
|
1848
|
+
url: z.ZodString;
|
|
1849
|
+
}, "strip", z.ZodTypeAny, {
|
|
1850
|
+
id: string;
|
|
1851
|
+
url: string;
|
|
1852
|
+
}, {
|
|
1853
|
+
id: string;
|
|
1854
|
+
url: string;
|
|
1855
|
+
}>;
|
|
1856
|
+
}, "strict", z.ZodTypeAny, {
|
|
1857
|
+
project: {
|
|
1858
|
+
id: string;
|
|
1859
|
+
url: string;
|
|
1860
|
+
};
|
|
1861
|
+
timestamp: string;
|
|
1862
|
+
entity: {
|
|
1863
|
+
id: string;
|
|
1864
|
+
name: string;
|
|
1865
|
+
type: "entry" | "component";
|
|
1866
|
+
url: string;
|
|
1867
|
+
releaseId?: string | undefined;
|
|
1868
|
+
};
|
|
1869
|
+
newStage: {
|
|
1870
|
+
workflowId: string;
|
|
1871
|
+
workflowName: string;
|
|
1872
|
+
stageId: string;
|
|
1873
|
+
stageName: string;
|
|
1874
|
+
};
|
|
1875
|
+
initiator: {
|
|
1876
|
+
id: string;
|
|
1877
|
+
name?: string | undefined;
|
|
1878
|
+
email?: string | undefined;
|
|
1879
|
+
};
|
|
1880
|
+
previousStage?: {
|
|
1881
|
+
workflowId: string;
|
|
1882
|
+
workflowName: string;
|
|
1883
|
+
stageId: string;
|
|
1884
|
+
stageName: string;
|
|
1885
|
+
} | undefined;
|
|
1886
|
+
}, {
|
|
1887
|
+
project: {
|
|
1888
|
+
id: string;
|
|
1889
|
+
url: string;
|
|
1890
|
+
};
|
|
1891
|
+
timestamp: string;
|
|
1892
|
+
entity: {
|
|
1893
|
+
id: string;
|
|
1894
|
+
name: string;
|
|
1895
|
+
type: "entry" | "component";
|
|
1896
|
+
url: string;
|
|
1897
|
+
releaseId?: string | undefined;
|
|
1898
|
+
};
|
|
1899
|
+
newStage: {
|
|
1900
|
+
workflowId: string;
|
|
1901
|
+
workflowName: string;
|
|
1902
|
+
stageId: string;
|
|
1903
|
+
stageName: string;
|
|
1904
|
+
};
|
|
1905
|
+
initiator: {
|
|
1906
|
+
id: string;
|
|
1907
|
+
name?: string | undefined;
|
|
1908
|
+
email?: string | undefined;
|
|
1909
|
+
};
|
|
1910
|
+
previousStage?: {
|
|
1911
|
+
workflowId: string;
|
|
1912
|
+
workflowName: string;
|
|
1913
|
+
stageId: string;
|
|
1914
|
+
stageName: string;
|
|
1915
|
+
} | undefined;
|
|
1916
|
+
}>>;
|
|
1917
|
+
type WorkflowTransitionPayload = z.infer<(typeof WorkflowTransitionDefinition)['schema']>;
|
|
1918
|
+
declare const WorkflowTransitionEventName: string;
|
|
1919
|
+
|
|
1920
|
+
export { ArchivedReleaseLaunchStartedDefinition, CompositionChangedDefinition, CompositionChangedEventName, type CompositionChangedPayload, CompositionDeletePayloadSchema, CompositionDeletedDefinition, CompositionDeletedEventName, type CompositionDeletedPayload, type CompositionPayload, CompositionPayloadSchema, CompositionPublishedDefinition, CompositionPublishedEventName, type CompositionPublishedPayload, CompositionReleaseChangedDefinition, CompositionReleaseChangedEventName, type CompositionReleaseChangedPayload, CompositionReleaseDeletedDefinition, CompositionReleaseDeletedEventName, type CompositionReleaseDeletedPayload, CompositionReleasePublishedDefinition, CompositionReleasePublishedEventName, type CompositionReleasePublishedPayload, CompositionTriggerPayloadSchema, type Definition, type DefinitionOptions, EntryChangedDefinition, EntryChangedEventName, type EntryChangedPayload, EntryDeletePayloadSchema, EntryDeletedDefinition, EntryDeletedEventName, type EntryDeletedPayload, type EntryPayload, EntryPayloadSchema, EntryPublishedDefinition, EntryPublishedEventName, type EntryPublishedPayload, EntryReleaseChangedDefinition, EntryReleaseChangedEventName, type EntryReleaseChangedPayload, EntryReleaseDeletedDefinition, EntryReleaseDeletedEventName, type EntryReleaseDeletedPayload, EntryReleasePublishedDefinition, EntryReleasePublishedEventName, type EntryReleasePublishedPayload, EntryTriggerPayloadSchema, ManifestPublishedDefinition, ManifestPublishedEventName, type ManifestPublishedPayload, ProjectMapDeleteDefinition, ProjectMapDeletedEventName, type ProjectMapDeletedPayload, ProjectMapNodeDeleteDefinition, ProjectMapNodeDeletedEventName, type ProjectMapNodeDeletedPayload, ProjectMapNodeInsertDefinition, ProjectMapNodeInsertedEventName, type ProjectMapNodeInsertedPayload, ProjectMapNodeUpdateDefinition, ProjectMapNodeUpdatedEventName, type ProjectMapNodeUpdatedPayload, ProjectMapUpdateDefinition, ProjectMapUpdatedEventName, type ProjectMapUpdatedPayload, RedirectDeleteDefinition, RedirectDeletedEventName, type RedirectDeletedPayload, RedirectInsertDefinition, RedirectInsertedEventName, type RedirectInsertedPayload, RedirectUpdateDefinition, RedirectUpdatedEventName, type RedirectUpdatedPayload, ReleaseChangedDefinition, ReleaseChangedEventName, type ReleaseChangedPayload, type ReleaseCompositionPayload, ReleaseCompositionPayloadSchema, ReleaseDeletedDefinition, ReleaseDeletedEventName, type ReleaseDeletedPayload, type ReleaseEntryPayload, ReleaseEntryPayloadSchema, ReleaseLaunchStartedDefinition, ReleaseLaunchStartedEventName, type ReleaseLaunchStartedPayload, ReleaseLaunchedDefinition, ReleaseLaunchedEventName, type ReleaseLaunchedPayload, type ReleasePayload, ReleasePayloadSchema, WorkflowEntitySchema, WorkflowIdentitySchema, WorkflowReferenceSchema, WorkflowTransitionDefinition, WorkflowTransitionEventName, type WorkflowTransitionPayload, WorkflowTransitionPayloadSchema, definition, isDefinition };
|
package/dist/index.esm.js
CHANGED
|
@@ -774,6 +774,80 @@ var ArchivedReleaseLaunchStartedDefinition = definition(
|
|
|
774
774
|
api_url: `https://uniform.app/api/v1/releases?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&releaseIDs=0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
|
|
775
775
|
}
|
|
776
776
|
);
|
|
777
|
+
|
|
778
|
+
// src/workflow/common.ts
|
|
779
|
+
import { z as z13 } from "zod";
|
|
780
|
+
var WorkflowReferenceSchema = z13.strictObject({
|
|
781
|
+
workflowId: z13.string(),
|
|
782
|
+
workflowName: z13.string(),
|
|
783
|
+
stageId: z13.string(),
|
|
784
|
+
stageName: z13.string()
|
|
785
|
+
});
|
|
786
|
+
var WorkflowIdentitySchema = z13.strictObject({
|
|
787
|
+
id: z13.string(),
|
|
788
|
+
name: z13.string().optional(),
|
|
789
|
+
email: z13.string().optional()
|
|
790
|
+
});
|
|
791
|
+
var WorkflowEntitySchema = z13.strictObject({
|
|
792
|
+
type: z13.enum(["entry", "component"]),
|
|
793
|
+
name: z13.string(),
|
|
794
|
+
id: z13.string(),
|
|
795
|
+
releaseId: z13.string().optional(),
|
|
796
|
+
url: z13.string()
|
|
797
|
+
});
|
|
798
|
+
var WorkflowTransitionPayloadSchema = z13.strictObject({
|
|
799
|
+
entity: WorkflowEntitySchema,
|
|
800
|
+
newStage: WorkflowReferenceSchema,
|
|
801
|
+
previousStage: WorkflowReferenceSchema.optional(),
|
|
802
|
+
initiator: WorkflowIdentitySchema,
|
|
803
|
+
timestamp: z13.string(),
|
|
804
|
+
project: z13.object({
|
|
805
|
+
id: z13.string(),
|
|
806
|
+
url: z13.string()
|
|
807
|
+
})
|
|
808
|
+
});
|
|
809
|
+
|
|
810
|
+
// src/workflow/workflow.transition.ts
|
|
811
|
+
var WorkflowTransitionDefinition = definition(
|
|
812
|
+
{
|
|
813
|
+
event: "workflow.transition",
|
|
814
|
+
name: "Workflow Transition",
|
|
815
|
+
description: "Triggers when a workflow transition has occurred.",
|
|
816
|
+
schema: WorkflowTransitionPayloadSchema
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
timestamp: "2024-05-04T13:42:06Z",
|
|
820
|
+
entity: {
|
|
821
|
+
type: "component",
|
|
822
|
+
name: "About Us",
|
|
823
|
+
id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
|
|
824
|
+
releaseId: "7ae142c0-ec20-467a-9268-8fc959045679",
|
|
825
|
+
url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/entries/e5c95c60-314b-4700-9035-6f9c2a4ff800?release=7ae142c0-ec20-467a-9268-8fc959045679`
|
|
826
|
+
},
|
|
827
|
+
newStage: {
|
|
828
|
+
workflowId: "448bf252-7428-4e93-a982-5c6044a41b40",
|
|
829
|
+
workflowName: "My Workflow",
|
|
830
|
+
stageId: "571042cd-626a-4801-a9f3-9a138deb8606",
|
|
831
|
+
stageName: "Awaiting Approval"
|
|
832
|
+
},
|
|
833
|
+
previousStage: {
|
|
834
|
+
workflowId: "448bf252-7428-4e93-a982-5c6044a41b40",
|
|
835
|
+
workflowName: "My Workflow",
|
|
836
|
+
stageId: "d7e8ca59-3ce2-4052-81f8-e4731c69e914",
|
|
837
|
+
stageName: "Draft"
|
|
838
|
+
},
|
|
839
|
+
initiator: {
|
|
840
|
+
id: "user-unique-identifier",
|
|
841
|
+
name: "User Name",
|
|
842
|
+
email: "user@company.com"
|
|
843
|
+
},
|
|
844
|
+
project: {
|
|
845
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
846
|
+
url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
);
|
|
850
|
+
var WorkflowTransitionEventName = WorkflowTransitionDefinition["event"];
|
|
777
851
|
export {
|
|
778
852
|
ArchivedReleaseLaunchStartedDefinition,
|
|
779
853
|
CompositionChangedDefinition,
|
|
@@ -835,6 +909,12 @@ export {
|
|
|
835
909
|
ReleaseLaunchedDefinition,
|
|
836
910
|
ReleaseLaunchedEventName,
|
|
837
911
|
ReleasePayloadSchema,
|
|
912
|
+
WorkflowEntitySchema,
|
|
913
|
+
WorkflowIdentitySchema,
|
|
914
|
+
WorkflowReferenceSchema,
|
|
915
|
+
WorkflowTransitionDefinition,
|
|
916
|
+
WorkflowTransitionEventName,
|
|
917
|
+
WorkflowTransitionPayloadSchema,
|
|
838
918
|
definition,
|
|
839
919
|
isDefinition
|
|
840
920
|
};
|
package/dist/index.js
CHANGED
|
@@ -80,6 +80,12 @@ __export(src_exports, {
|
|
|
80
80
|
ReleaseLaunchedDefinition: () => ReleaseLaunchedDefinition,
|
|
81
81
|
ReleaseLaunchedEventName: () => ReleaseLaunchedEventName,
|
|
82
82
|
ReleasePayloadSchema: () => ReleasePayloadSchema,
|
|
83
|
+
WorkflowEntitySchema: () => WorkflowEntitySchema,
|
|
84
|
+
WorkflowIdentitySchema: () => WorkflowIdentitySchema,
|
|
85
|
+
WorkflowReferenceSchema: () => WorkflowReferenceSchema,
|
|
86
|
+
WorkflowTransitionDefinition: () => WorkflowTransitionDefinition,
|
|
87
|
+
WorkflowTransitionEventName: () => WorkflowTransitionEventName,
|
|
88
|
+
WorkflowTransitionPayloadSchema: () => WorkflowTransitionPayloadSchema,
|
|
83
89
|
definition: () => definition,
|
|
84
90
|
isDefinition: () => isDefinition
|
|
85
91
|
});
|
|
@@ -861,6 +867,80 @@ var ArchivedReleaseLaunchStartedDefinition = definition(
|
|
|
861
867
|
api_url: `https://uniform.app/api/v1/releases?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&releaseIDs=0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
|
|
862
868
|
}
|
|
863
869
|
);
|
|
870
|
+
|
|
871
|
+
// src/workflow/common.ts
|
|
872
|
+
var import_zod13 = require("zod");
|
|
873
|
+
var WorkflowReferenceSchema = import_zod13.z.strictObject({
|
|
874
|
+
workflowId: import_zod13.z.string(),
|
|
875
|
+
workflowName: import_zod13.z.string(),
|
|
876
|
+
stageId: import_zod13.z.string(),
|
|
877
|
+
stageName: import_zod13.z.string()
|
|
878
|
+
});
|
|
879
|
+
var WorkflowIdentitySchema = import_zod13.z.strictObject({
|
|
880
|
+
id: import_zod13.z.string(),
|
|
881
|
+
name: import_zod13.z.string().optional(),
|
|
882
|
+
email: import_zod13.z.string().optional()
|
|
883
|
+
});
|
|
884
|
+
var WorkflowEntitySchema = import_zod13.z.strictObject({
|
|
885
|
+
type: import_zod13.z.enum(["entry", "component"]),
|
|
886
|
+
name: import_zod13.z.string(),
|
|
887
|
+
id: import_zod13.z.string(),
|
|
888
|
+
releaseId: import_zod13.z.string().optional(),
|
|
889
|
+
url: import_zod13.z.string()
|
|
890
|
+
});
|
|
891
|
+
var WorkflowTransitionPayloadSchema = import_zod13.z.strictObject({
|
|
892
|
+
entity: WorkflowEntitySchema,
|
|
893
|
+
newStage: WorkflowReferenceSchema,
|
|
894
|
+
previousStage: WorkflowReferenceSchema.optional(),
|
|
895
|
+
initiator: WorkflowIdentitySchema,
|
|
896
|
+
timestamp: import_zod13.z.string(),
|
|
897
|
+
project: import_zod13.z.object({
|
|
898
|
+
id: import_zod13.z.string(),
|
|
899
|
+
url: import_zod13.z.string()
|
|
900
|
+
})
|
|
901
|
+
});
|
|
902
|
+
|
|
903
|
+
// src/workflow/workflow.transition.ts
|
|
904
|
+
var WorkflowTransitionDefinition = definition(
|
|
905
|
+
{
|
|
906
|
+
event: "workflow.transition",
|
|
907
|
+
name: "Workflow Transition",
|
|
908
|
+
description: "Triggers when a workflow transition has occurred.",
|
|
909
|
+
schema: WorkflowTransitionPayloadSchema
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
timestamp: "2024-05-04T13:42:06Z",
|
|
913
|
+
entity: {
|
|
914
|
+
type: "component",
|
|
915
|
+
name: "About Us",
|
|
916
|
+
id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
|
|
917
|
+
releaseId: "7ae142c0-ec20-467a-9268-8fc959045679",
|
|
918
|
+
url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/entries/e5c95c60-314b-4700-9035-6f9c2a4ff800?release=7ae142c0-ec20-467a-9268-8fc959045679`
|
|
919
|
+
},
|
|
920
|
+
newStage: {
|
|
921
|
+
workflowId: "448bf252-7428-4e93-a982-5c6044a41b40",
|
|
922
|
+
workflowName: "My Workflow",
|
|
923
|
+
stageId: "571042cd-626a-4801-a9f3-9a138deb8606",
|
|
924
|
+
stageName: "Awaiting Approval"
|
|
925
|
+
},
|
|
926
|
+
previousStage: {
|
|
927
|
+
workflowId: "448bf252-7428-4e93-a982-5c6044a41b40",
|
|
928
|
+
workflowName: "My Workflow",
|
|
929
|
+
stageId: "d7e8ca59-3ce2-4052-81f8-e4731c69e914",
|
|
930
|
+
stageName: "Draft"
|
|
931
|
+
},
|
|
932
|
+
initiator: {
|
|
933
|
+
id: "user-unique-identifier",
|
|
934
|
+
name: "User Name",
|
|
935
|
+
email: "user@company.com"
|
|
936
|
+
},
|
|
937
|
+
project: {
|
|
938
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
939
|
+
url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
);
|
|
943
|
+
var WorkflowTransitionEventName = WorkflowTransitionDefinition["event"];
|
|
864
944
|
// Annotate the CommonJS export names for ESM import in node:
|
|
865
945
|
0 && (module.exports = {
|
|
866
946
|
ArchivedReleaseLaunchStartedDefinition,
|
|
@@ -923,6 +1003,12 @@ var ArchivedReleaseLaunchStartedDefinition = definition(
|
|
|
923
1003
|
ReleaseLaunchedDefinition,
|
|
924
1004
|
ReleaseLaunchedEventName,
|
|
925
1005
|
ReleasePayloadSchema,
|
|
1006
|
+
WorkflowEntitySchema,
|
|
1007
|
+
WorkflowIdentitySchema,
|
|
1008
|
+
WorkflowReferenceSchema,
|
|
1009
|
+
WorkflowTransitionDefinition,
|
|
1010
|
+
WorkflowTransitionEventName,
|
|
1011
|
+
WorkflowTransitionPayloadSchema,
|
|
926
1012
|
definition,
|
|
927
1013
|
isDefinition
|
|
928
1014
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -774,6 +774,80 @@ var ArchivedReleaseLaunchStartedDefinition = definition(
|
|
|
774
774
|
api_url: `https://uniform.app/api/v1/releases?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&releaseIDs=0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
|
|
775
775
|
}
|
|
776
776
|
);
|
|
777
|
+
|
|
778
|
+
// src/workflow/common.ts
|
|
779
|
+
import { z as z13 } from "zod";
|
|
780
|
+
var WorkflowReferenceSchema = z13.strictObject({
|
|
781
|
+
workflowId: z13.string(),
|
|
782
|
+
workflowName: z13.string(),
|
|
783
|
+
stageId: z13.string(),
|
|
784
|
+
stageName: z13.string()
|
|
785
|
+
});
|
|
786
|
+
var WorkflowIdentitySchema = z13.strictObject({
|
|
787
|
+
id: z13.string(),
|
|
788
|
+
name: z13.string().optional(),
|
|
789
|
+
email: z13.string().optional()
|
|
790
|
+
});
|
|
791
|
+
var WorkflowEntitySchema = z13.strictObject({
|
|
792
|
+
type: z13.enum(["entry", "component"]),
|
|
793
|
+
name: z13.string(),
|
|
794
|
+
id: z13.string(),
|
|
795
|
+
releaseId: z13.string().optional(),
|
|
796
|
+
url: z13.string()
|
|
797
|
+
});
|
|
798
|
+
var WorkflowTransitionPayloadSchema = z13.strictObject({
|
|
799
|
+
entity: WorkflowEntitySchema,
|
|
800
|
+
newStage: WorkflowReferenceSchema,
|
|
801
|
+
previousStage: WorkflowReferenceSchema.optional(),
|
|
802
|
+
initiator: WorkflowIdentitySchema,
|
|
803
|
+
timestamp: z13.string(),
|
|
804
|
+
project: z13.object({
|
|
805
|
+
id: z13.string(),
|
|
806
|
+
url: z13.string()
|
|
807
|
+
})
|
|
808
|
+
});
|
|
809
|
+
|
|
810
|
+
// src/workflow/workflow.transition.ts
|
|
811
|
+
var WorkflowTransitionDefinition = definition(
|
|
812
|
+
{
|
|
813
|
+
event: "workflow.transition",
|
|
814
|
+
name: "Workflow Transition",
|
|
815
|
+
description: "Triggers when a workflow transition has occurred.",
|
|
816
|
+
schema: WorkflowTransitionPayloadSchema
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
timestamp: "2024-05-04T13:42:06Z",
|
|
820
|
+
entity: {
|
|
821
|
+
type: "component",
|
|
822
|
+
name: "About Us",
|
|
823
|
+
id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
|
|
824
|
+
releaseId: "7ae142c0-ec20-467a-9268-8fc959045679",
|
|
825
|
+
url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/entries/e5c95c60-314b-4700-9035-6f9c2a4ff800?release=7ae142c0-ec20-467a-9268-8fc959045679`
|
|
826
|
+
},
|
|
827
|
+
newStage: {
|
|
828
|
+
workflowId: "448bf252-7428-4e93-a982-5c6044a41b40",
|
|
829
|
+
workflowName: "My Workflow",
|
|
830
|
+
stageId: "571042cd-626a-4801-a9f3-9a138deb8606",
|
|
831
|
+
stageName: "Awaiting Approval"
|
|
832
|
+
},
|
|
833
|
+
previousStage: {
|
|
834
|
+
workflowId: "448bf252-7428-4e93-a982-5c6044a41b40",
|
|
835
|
+
workflowName: "My Workflow",
|
|
836
|
+
stageId: "d7e8ca59-3ce2-4052-81f8-e4731c69e914",
|
|
837
|
+
stageName: "Draft"
|
|
838
|
+
},
|
|
839
|
+
initiator: {
|
|
840
|
+
id: "user-unique-identifier",
|
|
841
|
+
name: "User Name",
|
|
842
|
+
email: "user@company.com"
|
|
843
|
+
},
|
|
844
|
+
project: {
|
|
845
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
846
|
+
url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
);
|
|
850
|
+
var WorkflowTransitionEventName = WorkflowTransitionDefinition["event"];
|
|
777
851
|
export {
|
|
778
852
|
ArchivedReleaseLaunchStartedDefinition,
|
|
779
853
|
CompositionChangedDefinition,
|
|
@@ -835,6 +909,12 @@ export {
|
|
|
835
909
|
ReleaseLaunchedDefinition,
|
|
836
910
|
ReleaseLaunchedEventName,
|
|
837
911
|
ReleasePayloadSchema,
|
|
912
|
+
WorkflowEntitySchema,
|
|
913
|
+
WorkflowIdentitySchema,
|
|
914
|
+
WorkflowReferenceSchema,
|
|
915
|
+
WorkflowTransitionDefinition,
|
|
916
|
+
WorkflowTransitionEventName,
|
|
917
|
+
WorkflowTransitionPayloadSchema,
|
|
838
918
|
definition,
|
|
839
919
|
isDefinition
|
|
840
920
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/webhooks",
|
|
3
|
-
"version": "19.147.
|
|
3
|
+
"version": "19.147.1-alpha.10+6efbd31548",
|
|
4
4
|
"description": "Uniform Webhooks",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "6efbd31548d4190f950f425f10ec9398de1aacb2"
|
|
45
45
|
}
|