@flamingo-stack/openframe-frontend-core 0.0.830 → 0.0.832
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/build/export-map.json +1 -1
- package/dist/build/next-styles.cjs +93 -3
- package/dist/build/next-styles.d.ts +8 -0
- package/dist/build/route-styles-client.mjs +67 -0
- package/dist/build/route-styles-markers.cjs +18 -0
- package/dist/build/route-styles-server.mjs +102 -0
- package/dist/build/route-styles.cjs +415 -0
- package/dist/build/route-styles.d.ts +11 -0
- package/dist/build/style-sources.cjs +14 -1
- package/dist/build/style-sources.d.ts +3 -0
- package/dist/{case-study-card-QMFGPABF.cjs → case-study-card-TK7ZCNLM.cjs} +5 -5
- package/dist/{chunk-LKP5R3EQ.cjs → chunk-46LATWQR.cjs} +2 -2
- package/dist/{chunk-IBD2FPSX.cjs → chunk-4JHO2NVI.cjs} +2 -2
- package/dist/{chunk-QTLWU6FY.cjs → chunk-5L3UKDC6.cjs} +11 -11
- package/dist/{chunk-HYCMMECU.cjs → chunk-7COZUANC.cjs} +58 -67
- package/dist/{chunk-ULF4ZOUM.cjs → chunk-7WQD3R5J.cjs} +84 -84
- package/dist/{chunk-DAKGX2WF.cjs → chunk-APNONOHY.cjs} +2 -2
- package/dist/{chunk-KPGKTEEB.cjs → chunk-BUEEQD3G.cjs} +2 -2
- package/dist/{chunk-YMLRDVPO.cjs → chunk-C4OQIYGW.cjs} +11 -11
- package/dist/{chunk-WCCE4WF3.cjs → chunk-CP46CVUC.cjs} +91 -91
- package/dist/{chunk-5LED4QHZ.cjs → chunk-D6ZSRGH2.cjs} +237 -237
- package/dist/{chunk-HYGWRUEM.cjs → chunk-DAQMCWCK.cjs} +3 -3
- package/dist/{chunk-56EP4QM2.cjs → chunk-EYSIQORA.cjs} +94 -94
- package/dist/{chunk-2BGLALP5.cjs → chunk-FNNDGOR3.cjs} +19 -19
- package/dist/{chunk-OKTNRGM5.cjs → chunk-GPXKG34G.cjs} +54 -54
- package/dist/{chunk-FMSAN6SR.cjs → chunk-H3WTYAVR.cjs} +129 -129
- package/dist/{chunk-RRPID7Z7.cjs → chunk-HDLY6OMQ.cjs} +6 -6
- package/dist/{chunk-2VLPXUQK.cjs → chunk-HLJXCOMA.cjs} +4 -4
- package/dist/{chunk-PBHP3FHO.cjs → chunk-JBTH3O2C.cjs} +4 -4
- package/dist/{chunk-2HQNXX2K.cjs → chunk-JQCQCE6U.cjs} +2 -2
- package/dist/{chunk-AY6XJOIN.cjs → chunk-LWMWY3JO.cjs} +45 -45
- package/dist/{chunk-E6W4YDPS.cjs → chunk-OGPAVRNF.cjs} +17 -17
- package/dist/{chunk-D2LXFMZI.cjs → chunk-P5DWAVWK.cjs} +28 -28
- package/dist/{chunk-TUMSVFVS.cjs → chunk-QHBKZJ6A.cjs} +4 -4
- package/dist/{chunk-WZYBUJJG.cjs → chunk-R6QZHOJB.cjs} +46 -46
- package/dist/{chunk-F2J5WN6U.cjs → chunk-SOCCHWDK.cjs} +2 -2
- package/dist/{chunk-CAGQAMJ6.cjs → chunk-SRHHLDBP.cjs} +36 -36
- package/dist/{chunk-WWDNLMB7.cjs → chunk-SWMUW3RR.cjs} +11 -11
- package/dist/{chunk-6GPMVHJN.cjs → chunk-TD4CC4KV.cjs} +20 -20
- package/dist/{chunk-SAW7V7CU.cjs → chunk-UGM3YDCK.cjs} +25 -25
- package/dist/{chunk-FFFN4IY2.cjs → chunk-UQS2RI5Y.cjs} +12 -12
- package/dist/{chunk-5KSPG3TV.cjs → chunk-VBGBKRDO.cjs} +665 -642
- package/dist/{chunk-X425BGXS.cjs → chunk-VQG2A7GA.cjs} +2 -2
- package/dist/{chunk-S6UJEW4G.cjs → chunk-WCOSGDGA.cjs} +2 -2
- package/dist/{chunk-ENMPSEEQ.cjs → chunk-WVNUCKB7.cjs} +4 -4
- package/dist/{chunk-DUGOOTER.cjs → chunk-X76TZ5YR.cjs} +21 -21
- package/dist/{chunk-PUXYAHH3.cjs → chunk-X7VQM5TU.cjs} +6 -6
- package/dist/{chunk-W4VEDSAX.cjs → chunk-ZABZIM2Y.cjs} +6 -6
- package/dist/{chunk-M75723HD.cjs → chunk-ZJ5K6XHW.cjs} +21 -21
- package/dist/{cloud-tenants-4KQQPXPM.cjs → cloud-tenants-E2AC4WEJ.cjs} +19 -19
- package/dist/components/case-studies/index.cjs +35 -35
- package/dist/components/chat/index.cjs +14 -14
- package/dist/components/chat/utils/icon-registry.d.ts +2 -2
- package/dist/components/chat/utils/icon-registry.js +2 -2
- package/dist/components/contact/index.cjs +20 -20
- package/dist/components/docs/index.cjs +23 -23
- package/dist/components/embeds/index.cjs +20 -20
- package/dist/components/faq/index.cjs +21 -21
- package/dist/components/features/index.cjs +21 -19
- package/dist/components/features/notifications/index.d.ts +3 -1
- package/dist/components/features/notifications/index.d.ts.map +1 -1
- package/dist/components/features/notifications/index.js +2 -0
- package/dist/components/features/notifications/notification-category-icon.d.ts +7 -0
- package/dist/components/features/notifications/notification-category-icon.d.ts.map +1 -0
- package/dist/components/features/notifications/notification-category-icon.js +26 -0
- package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
- package/dist/components/features/notifications/types.d.ts +1 -1
- package/dist/components/features/notifications/types.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +124 -124
- package/dist/components/index.cjs +85 -81
- package/dist/components/meeting-scheduler/index.cjs +68 -68
- package/dist/components/navigation/index.cjs +22 -22
- package/dist/components/navigation/site-footer.d.ts.map +1 -1
- package/dist/components/navigation/site-footer.js +2 -12
- package/dist/components/onboarding-guides/index.cjs +22 -22
- package/dist/components/product-demo/index.cjs +30 -30
- package/dist/components/related-content/index.cjs +9 -9
- package/dist/components/social-icon-row.d.ts +6 -2
- package/dist/components/social-icon-row.d.ts.map +1 -1
- package/dist/components/social-icon-row.js +5 -6
- package/dist/components/tickets/index.cjs +26 -26
- package/dist/components/ui/index.cjs +19 -19
- package/dist/{devices-H6C4NMIY.cjs → devices-CAYUGD2N.cjs} +20 -20
- package/dist/{embeddable-chat-KUESE7P6.cjs → embeddable-chat-FYHMR66R.cjs} +91 -91
- package/dist/hooks/index.cjs +7 -7
- package/dist/index.cjs +26 -24
- package/dist/{knowledge-O6IBO5Y5.cjs → knowledge-OI4OPEVL.cjs} +20 -20
- package/dist/{logs-Y2UCF24Z.cjs → logs-B3XV2NHV.cjs} +26 -26
- package/dist/platform-domains.cjs +4 -0
- package/dist/platform-domains.d.ts +2 -0
- package/dist/platform-domains.d.ts.map +1 -1
- package/dist/platform-domains.js +4 -0
- package/dist/{policies-J6O3RLJT.cjs → policies-ZB4Z42DV.cjs} +23 -23
- package/dist/{remote-session-RVTFWSU4.cjs → remote-session-CN3G7JNR.cjs} +6 -6
- package/dist/{scripts-N67MM4T2.cjs → scripts-I4DNUOQC.cjs} +26 -26
- package/dist/{software-update-HB7F6KNG.cjs → software-update-AWH4WXOH.cjs} +23 -23
- package/dist/{tickets-board-2K3PBCNW.cjs → tickets-board-PLYD2NSY.cjs} +10 -10
- package/dist/types/marketing.d.ts +61 -216
- package/dist/types/marketing.d.ts.map +1 -1
- package/dist/utils/index.cjs +2 -2
- package/dist/utils/notifications.cjs +55 -0
- package/dist/utils/notifications.d.ts +29 -0
- package/dist/utils/notifications.d.ts.map +1 -0
- package/dist/utils/notifications.js +53 -0
- package/dist/utils/social-platforms.d.ts +9 -9
- package/dist/utils/social-platforms.d.ts.map +1 -1
- package/package.json +12 -1
- package/src/components/chat/utils/icon-registry.ts +5 -5
- package/src/components/chat/utils/index.ts +1 -1
- package/src/components/features/notifications/index.ts +2 -1
- package/src/components/features/notifications/notification-category-icon.tsx +38 -0
- package/src/components/features/notifications/notification-tile.tsx +2 -1
- package/src/components/features/notifications/types.ts +1 -2
- package/src/components/navigation/site-footer.tsx +2 -11
- package/src/components/social-icon-row.tsx +11 -10
- package/src/platform-domains.ts +5 -0
- package/src/styles/index.css +2 -0
- package/src/types/marketing.ts +90 -268
- package/src/utils/index.ts +1 -1
- package/src/utils/notifications.ts +71 -0
- package/src/utils/social-platforms.ts +9 -9
|
@@ -15,24 +15,24 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkVBGBKRDOcjs = require('./chunk-VBGBKRDO.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
22
|
-
require('./chunk-
|
|
23
|
-
require('./chunk-
|
|
21
|
+
var _chunkFNNDGOR3cjs = require('./chunk-FNNDGOR3.cjs');
|
|
22
|
+
require('./chunk-SWMUW3RR.cjs');
|
|
23
|
+
require('./chunk-VQG2A7GA.cjs');
|
|
24
24
|
require('./chunk-HQQE74RO.cjs');
|
|
25
25
|
require('./chunk-DEY6XXGO.cjs');
|
|
26
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-LWMWY3JO.cjs');
|
|
27
27
|
require('./chunk-APOMNC7H.cjs');
|
|
28
28
|
require('./chunk-24I6RFVU.cjs');
|
|
29
29
|
require('./chunk-MZ4KBSH7.cjs');
|
|
30
30
|
require('./chunk-5SZ4ILU3.cjs');
|
|
31
|
-
require('./chunk-
|
|
31
|
+
require('./chunk-EYSIQORA.cjs');
|
|
32
32
|
require('./chunk-OT6P57ZS.cjs');
|
|
33
|
-
require('./chunk-
|
|
34
|
-
require('./chunk-
|
|
35
|
-
require('./chunk-
|
|
33
|
+
require('./chunk-D6ZSRGH2.cjs');
|
|
34
|
+
require('./chunk-4JHO2NVI.cjs');
|
|
35
|
+
require('./chunk-5L3UKDC6.cjs');
|
|
36
36
|
require('./chunk-YJZ7R3W5.cjs');
|
|
37
37
|
require('./chunk-6CZVQ72C.cjs');
|
|
38
38
|
require('./chunk-46547WQW.cjs');
|
|
@@ -1824,22 +1824,22 @@ require('./chunk-LMBYZITR.cjs');
|
|
|
1824
1824
|
require('./chunk-TMVC7S2R.cjs');
|
|
1825
1825
|
require('./chunk-IYHH5EIO.cjs');
|
|
1826
1826
|
require('./chunk-XIBCMGBW.cjs');
|
|
1827
|
-
require('./chunk-
|
|
1828
|
-
require('./chunk-
|
|
1827
|
+
require('./chunk-HLJXCOMA.cjs');
|
|
1828
|
+
require('./chunk-ZABZIM2Y.cjs');
|
|
1829
1829
|
require('./chunk-7Z536SPR.cjs');
|
|
1830
|
-
require('./chunk-
|
|
1830
|
+
require('./chunk-BUEEQD3G.cjs');
|
|
1831
1831
|
require('./chunk-JKX2C3I2.cjs');
|
|
1832
1832
|
require('./chunk-WWUSFOJ7.cjs');
|
|
1833
1833
|
require('./chunk-SKI6NKOE.cjs');
|
|
1834
1834
|
require('./chunk-EWPR7662.cjs');
|
|
1835
1835
|
require('./chunk-IX2E3AN7.cjs');
|
|
1836
1836
|
require('./chunk-7DNL734S.cjs');
|
|
1837
|
-
require('./chunk-
|
|
1838
|
-
require('./chunk-
|
|
1837
|
+
require('./chunk-C4OQIYGW.cjs');
|
|
1838
|
+
require('./chunk-H3WTYAVR.cjs');
|
|
1839
1839
|
require('./chunk-5BM7X4GA.cjs');
|
|
1840
1840
|
require('./chunk-GRHF5SWL.cjs');
|
|
1841
|
-
require('./chunk-
|
|
1842
|
-
require('./chunk-
|
|
1841
|
+
require('./chunk-TD4CC4KV.cjs');
|
|
1842
|
+
require('./chunk-JBTH3O2C.cjs');
|
|
1843
1843
|
require('./chunk-USUVHAQ7.cjs');
|
|
1844
1844
|
require('./chunk-S5C3OZCO.cjs');
|
|
1845
1845
|
require('./chunk-32ASZMTV.cjs');
|
|
@@ -1852,9 +1852,9 @@ require('./chunk-BLH2SFOO.cjs');
|
|
|
1852
1852
|
require('./chunk-MG3HJIGG.cjs');
|
|
1853
1853
|
require('./chunk-LC65AC6M.cjs');
|
|
1854
1854
|
require('./chunk-YSDB6HGQ.cjs');
|
|
1855
|
-
require('./chunk-
|
|
1855
|
+
require('./chunk-APNONOHY.cjs');
|
|
1856
1856
|
require('./chunk-FX35L4Y6.cjs');
|
|
1857
|
-
require('./chunk-
|
|
1857
|
+
require('./chunk-JQCQCE6U.cjs');
|
|
1858
1858
|
require('./chunk-NTPX5GXI.cjs');
|
|
1859
1859
|
require('./chunk-GI3MMBP3.cjs');
|
|
1860
1860
|
require('./chunk-3V5JWG27.cjs');
|
|
@@ -1923,14 +1923,14 @@ var noop = () => {
|
|
|
1923
1923
|
var HIDDEN_WHEN_COMPACT = ["organization"];
|
|
1924
1924
|
function StaticPackageField({ value }) {
|
|
1925
1925
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1926
|
-
|
|
1926
|
+
_chunkFNNDGOR3cjs.Autocomplete,
|
|
1927
1927
|
{
|
|
1928
|
-
label:
|
|
1928
|
+
label: _chunkVBGBKRDOcjs.PACKAGE_SEARCH_LABEL,
|
|
1929
1929
|
labelVariant: "large",
|
|
1930
1930
|
options: value ? [{ value: value.id, label: value.name, description: _nullishCoalesce(value.description, () => ( void 0)) }] : [],
|
|
1931
1931
|
value: _nullishCoalesce(_optionalChain([value, 'optionalAccess', _ => _.id]), () => ( null)),
|
|
1932
1932
|
onChange: noop,
|
|
1933
|
-
placeholder:
|
|
1933
|
+
placeholder: _chunkVBGBKRDOcjs.PACKAGE_SEARCH_PLACEHOLDER
|
|
1934
1934
|
}
|
|
1935
1935
|
);
|
|
1936
1936
|
}
|
|
@@ -1944,7 +1944,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1944
1944
|
[fixture.devices, fixture.selectedIds]
|
|
1945
1945
|
);
|
|
1946
1946
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1947
|
-
|
|
1947
|
+
_chunkVBGBKRDOcjs.SoftwareActionForm,
|
|
1948
1948
|
{
|
|
1949
1949
|
action: fixture.action,
|
|
1950
1950
|
showHeader: false,
|
|
@@ -1956,7 +1956,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1956
1956
|
initialValues: fixture.initialValues,
|
|
1957
1957
|
renderPackageSearch,
|
|
1958
1958
|
renderDevicePicker: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1959
|
-
|
|
1959
|
+
_chunkVBGBKRDOcjs.DeviceSelector,
|
|
1960
1960
|
{
|
|
1961
1961
|
devices: selected,
|
|
1962
1962
|
loading: false,
|
|
@@ -10,9 +10,9 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkSWMUW3RRcjs = require('./chunk-SWMUW3RR.cjs');
|
|
14
14
|
require('./chunk-APOMNC7H.cjs');
|
|
15
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-5L3UKDC6.cjs');
|
|
16
16
|
require('./chunk-YJZ7R3W5.cjs');
|
|
17
17
|
require('./chunk-46547WQW.cjs');
|
|
18
18
|
require('./chunk-LNUFH4E2.cjs');
|
|
@@ -1803,11 +1803,11 @@ require('./chunk-LMBYZITR.cjs');
|
|
|
1803
1803
|
require('./chunk-TMVC7S2R.cjs');
|
|
1804
1804
|
require('./chunk-IYHH5EIO.cjs');
|
|
1805
1805
|
require('./chunk-XIBCMGBW.cjs');
|
|
1806
|
-
require('./chunk-
|
|
1806
|
+
require('./chunk-BUEEQD3G.cjs');
|
|
1807
1807
|
require('./chunk-WWUSFOJ7.cjs');
|
|
1808
1808
|
require('./chunk-SKI6NKOE.cjs');
|
|
1809
1809
|
require('./chunk-GRHF5SWL.cjs');
|
|
1810
|
-
require('./chunk-
|
|
1810
|
+
require('./chunk-JBTH3O2C.cjs');
|
|
1811
1811
|
require('./chunk-S5C3OZCO.cjs');
|
|
1812
1812
|
require('./chunk-32ASZMTV.cjs');
|
|
1813
1813
|
require('./chunk-OOYBIS7D.cjs');
|
|
@@ -1818,7 +1818,7 @@ require('./chunk-RUHKTWGB.cjs');
|
|
|
1818
1818
|
require('./chunk-LC65AC6M.cjs');
|
|
1819
1819
|
require('./chunk-YSDB6HGQ.cjs');
|
|
1820
1820
|
require('./chunk-FX35L4Y6.cjs');
|
|
1821
|
-
require('./chunk-
|
|
1821
|
+
require('./chunk-JQCQCE6U.cjs');
|
|
1822
1822
|
require('./chunk-GI3MMBP3.cjs');
|
|
1823
1823
|
require('./chunk-3V5JWG27.cjs');
|
|
1824
1824
|
require('./chunk-S3QXLD4X.cjs');
|
|
@@ -1841,7 +1841,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1841
1841
|
const dana = assignee(cast.person("dana"));
|
|
1842
1842
|
const alex = assignee(cast.person("alex"));
|
|
1843
1843
|
return [
|
|
1844
|
-
|
|
1844
|
+
_chunkSWMUW3RRcjs.columnFromTicketStatus.call(void 0, "ACTIVE", [
|
|
1845
1845
|
ticket("tk-1051", "Printer offline at the front desk", "ACTIVE", {
|
|
1846
1846
|
ticketNumber: "1051",
|
|
1847
1847
|
agent: "fae",
|
|
@@ -1859,7 +1859,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1859
1859
|
tags: ["onboarding"]
|
|
1860
1860
|
})
|
|
1861
1861
|
]),
|
|
1862
|
-
|
|
1862
|
+
_chunkSWMUW3RRcjs.columnFromTicketStatus.call(void 0, "TECH_REQUIRED", [
|
|
1863
1863
|
ticket("tk-1049", "Acrobat Pro for Maya", "TECH_REQUIRED", {
|
|
1864
1864
|
ticketNumber: "1049",
|
|
1865
1865
|
agent: "fae",
|
|
@@ -1883,7 +1883,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1883
1883
|
escalatedByUser: true
|
|
1884
1884
|
})
|
|
1885
1885
|
]),
|
|
1886
|
-
|
|
1886
|
+
_chunkSWMUW3RRcjs.columnFromTicketStatus.call(void 0, "ON_HOLD", [
|
|
1887
1887
|
ticket("tk-1046", "Replace the conference room display", "ON_HOLD", {
|
|
1888
1888
|
ticketNumber: "1046",
|
|
1889
1889
|
organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.acme.name,
|
|
@@ -1892,7 +1892,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1892
1892
|
activity: { kind: "waiting-external" }
|
|
1893
1893
|
})
|
|
1894
1894
|
]),
|
|
1895
|
-
|
|
1895
|
+
_chunkSWMUW3RRcjs.columnFromTicketStatus.call(void 0,
|
|
1896
1896
|
"RESOLVED",
|
|
1897
1897
|
[
|
|
1898
1898
|
ticket("tk-1048", "Slow laptop", "RESOLVED", {
|
|
@@ -1928,7 +1928,7 @@ function TicketsBoardScreen({ compact = false }) {
|
|
|
1928
1928
|
const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
|
|
1929
1929
|
const board = _react.useMemo.call(void 0, () => buildTicketsBoardFixture(cast), [cast]);
|
|
1930
1930
|
const columns = compact ? board.filter((column) => column.id !== "ON_HOLD") : board;
|
|
1931
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-m)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1931
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-m)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWMUW3RRcjs.Board, { columns, onChange: noop, initialCollapsed: compact ? void 0 : FOLDED }) });
|
|
1932
1932
|
}
|
|
1933
1933
|
|
|
1934
1934
|
|
|
@@ -1,51 +1,53 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Marketing Campaign Types
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* The rows of the marketing tables as the database holds them (`marketing_campaigns`, `ai_content`, `ai_media`),
|
|
5
|
+
* column for column, and the vocabularies their check constraints allow. A type here names no column the table
|
|
6
|
+
* does not have.
|
|
6
7
|
*/
|
|
8
|
+
/** `marketing_campaigns.status` (its check constraint). */
|
|
9
|
+
export type CampaignStatus = 'draft' | 'active' | 'completed';
|
|
10
|
+
/** What a campaign is about (`marketing_campaigns.content_source`). */
|
|
11
|
+
export interface CampaignContentSource {
|
|
12
|
+
type: ContentSourceType | null;
|
|
13
|
+
/** The source record; absent for a campaign written from scratch. */
|
|
14
|
+
id?: number | string | null;
|
|
15
|
+
url?: string | null;
|
|
16
|
+
/** The blog a seed-blog campaign writes its article for. */
|
|
17
|
+
blog_account_id?: number | null;
|
|
18
|
+
}
|
|
7
19
|
export interface MarketingCampaign {
|
|
8
20
|
id: number;
|
|
9
21
|
name: string;
|
|
10
22
|
description: string | null;
|
|
11
|
-
platform: string;
|
|
12
23
|
start_date: string | null;
|
|
13
|
-
end_date: string | null;
|
|
14
24
|
goals: string[] | null;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
25
|
+
status: CampaignStatus;
|
|
26
|
+
content_source: CampaignContentSource | null;
|
|
27
|
+
/** The accounts the campaign writes for, each with what to generate (the hub's own shape). */
|
|
28
|
+
selected_accounts: unknown[] | null;
|
|
29
|
+
settings: Record<string, unknown> | null;
|
|
30
|
+
strategy_settings: Record<string, unknown> | null;
|
|
31
|
+
copy_settings: Record<string, unknown> | null;
|
|
32
|
+
image_settings: Record<string, unknown> | null;
|
|
33
|
+
video_settings: Record<string, unknown> | null;
|
|
34
|
+
details_feedback: unknown;
|
|
35
|
+
copy_feedback: unknown;
|
|
36
|
+
image_feedback: unknown;
|
|
37
|
+
video_feedback: unknown;
|
|
38
|
+
designer_feedback: unknown;
|
|
39
|
+
strategy_feedback: unknown;
|
|
19
40
|
/** Editor-provided AI generation instructions (steers Generate Content / Image / Video / Workflow prompts) */
|
|
20
|
-
custom_instructions
|
|
41
|
+
custom_instructions: string | null;
|
|
42
|
+
ai_effort_score: number | null;
|
|
21
43
|
created_by: string;
|
|
22
44
|
created_at: string;
|
|
23
45
|
updated_at: string;
|
|
24
46
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
goals?: string[];
|
|
30
|
-
content_source_type?: 'product_release' | 'blog_post' | 'case_study' | 'from_scratch';
|
|
31
|
-
content_source_id?: number;
|
|
32
|
-
content_source_url?: string;
|
|
33
|
-
future_blog_social_account_id?: number;
|
|
34
|
-
custom_instructions?: string | null;
|
|
35
|
-
}
|
|
36
|
-
export interface UpdateCampaignInput {
|
|
37
|
-
name?: string;
|
|
38
|
-
description?: string;
|
|
39
|
-
start_date?: string;
|
|
40
|
-
goals?: string[];
|
|
41
|
-
content_source_type?: 'product_release' | 'blog_post' | 'case_study' | 'from_scratch' | null;
|
|
42
|
-
content_source_id?: number | null;
|
|
43
|
-
content_source_url?: string | null;
|
|
44
|
-
future_blog_social_account_id?: number | null;
|
|
45
|
-
custom_instructions?: string | null;
|
|
46
|
-
}
|
|
47
|
-
export type ContentType = 'blog_post' | 'social_post' | 'ad_copy' | 'email';
|
|
48
|
-
export type ContentStatus = 'draft' | 'pending_approval' | 'approved' | 'rejected' | 'published';
|
|
47
|
+
/** `ai_content.content_type` (its check constraint). */
|
|
48
|
+
export type ContentType = 'blog_post' | 'channel_post' | 'ad_copy' | 'email' | 'video_script';
|
|
49
|
+
/** `ai_content.status` and `ai_media.status` (their check constraints). */
|
|
50
|
+
export type ContentStatus = 'generating' | 'draft' | 'pending_review' | 'pending_approval' | 'approved' | 'rejected' | 'revision_requested' | 'published';
|
|
49
51
|
export interface AIContent {
|
|
50
52
|
id: number;
|
|
51
53
|
campaign_id: number | null;
|
|
@@ -53,41 +55,29 @@ export interface AIContent {
|
|
|
53
55
|
title: string | null;
|
|
54
56
|
content: string;
|
|
55
57
|
prompt_used: string | null;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
cost_cents: number | null;
|
|
59
|
-
confidence_score: number | null;
|
|
58
|
+
ai_provider: 'anthropic' | 'openai' | null;
|
|
59
|
+
ai_model: string | null;
|
|
60
60
|
metadata: Record<string, unknown> | null;
|
|
61
61
|
status: ContentStatus;
|
|
62
|
-
reviewed_by: string | null;
|
|
63
|
-
reviewed_at: string | null;
|
|
64
|
-
platform?: string;
|
|
65
|
-
social_account_id: number | null;
|
|
66
|
-
created_at: string;
|
|
67
|
-
updated_at: string;
|
|
68
62
|
selected_for_publish: boolean;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
63
|
+
blog_post_id: number | null;
|
|
64
|
+
workflow_id: string | null;
|
|
65
|
+
/** The distribution channel the post is written for. */
|
|
66
|
+
distribution_channel_id: number | null;
|
|
67
|
+
published_at: string | null;
|
|
68
|
+
external_post_id: string | null;
|
|
69
|
+
external_post_url: string | null;
|
|
70
|
+
url_injection_preference?: URLInjectionPreference;
|
|
71
|
+
/** The comment that carries the link, when the link went `as_comment`. */
|
|
73
72
|
external_comment_id?: string | null;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
campaign_id?: number;
|
|
77
|
-
content_type: ContentType;
|
|
78
|
-
title?: string;
|
|
79
|
-
content: string;
|
|
80
|
-
prompt_used?: string;
|
|
81
|
-
ai_model: string;
|
|
82
|
-
generation_tokens?: number;
|
|
83
|
-
cost_cents?: number;
|
|
84
|
-
confidence_score?: number;
|
|
85
|
-
metadata?: Record<string, unknown>;
|
|
73
|
+
created_at: string;
|
|
74
|
+
updated_at: string;
|
|
86
75
|
}
|
|
87
76
|
/** Row union. Compare through `utils/media-type` (`isVideoMedia` / `isImageMedia` / `MEDIA_TYPE`), never a literal. */
|
|
88
77
|
export type MediaType = 'image' | 'video' | 'figma_export';
|
|
89
|
-
|
|
90
|
-
export type
|
|
78
|
+
/** `ai_media.provider` (its check constraint). */
|
|
79
|
+
export type MediaProvider = 'dalle' | 'dalle-3' | 'sdxl' | 'replicate' | 'figma' | 'manual' | 'midjourney' | 'flux-2-pro' | 'flux-pro' | 'flux-dev' | 'flux-schnell' | 'ideogram-v2' | 'ideogram-v3-turbo' | 'recraft-v3' | 'imagen-4' | 'nano-banana-pro' | 'seedream-4.5' | 'sd-3.5-large' | 'veo-3-fast' | 'veo-3' | 'kling-v2.5' | 'luma-ray2' | 'pixverse-v5' | 'mochi-1' | 'cogvideox-t2v' | 'cogvideox-i2v' | 'hailuo' | 'wan-2.5' | 'ltx-video' | 'stable-video-diffusion';
|
|
80
|
+
export type MediaStatus = ContentStatus;
|
|
91
81
|
export interface AIMedia {
|
|
92
82
|
id: number;
|
|
93
83
|
campaign_id: number | null;
|
|
@@ -97,176 +87,31 @@ export interface AIMedia {
|
|
|
97
87
|
prompt_used: string | null;
|
|
98
88
|
provider: MediaProvider;
|
|
99
89
|
model_version: string | null;
|
|
100
|
-
cost_cents: number | null;
|
|
101
|
-
storage_path: string | null;
|
|
102
90
|
storage_url: string | null;
|
|
103
91
|
thumbnail_url: string | null;
|
|
104
92
|
dimensions: MediaDimensions | null;
|
|
105
93
|
file_size_bytes: number | null;
|
|
106
94
|
status: MediaStatus;
|
|
107
|
-
figma_file_id: string | null;
|
|
108
|
-
figma_node_id: string | null;
|
|
109
|
-
reviewed_by: string | null;
|
|
110
|
-
reviewed_at: string | null;
|
|
111
95
|
metadata: Record<string, unknown> | null;
|
|
112
|
-
|
|
113
|
-
|
|
96
|
+
workflow_id: string | null;
|
|
97
|
+
/** The distribution channel the media is made for. NOTE: there is no `selected_for_publish` on media — a media
|
|
98
|
+
* item is "selected" by being ATTACHED to a post that is selected (`ai_content_media`). */
|
|
99
|
+
distribution_channel_id: number | null;
|
|
100
|
+
published_at: string | null;
|
|
114
101
|
created_at: string;
|
|
115
102
|
updated_at: string;
|
|
116
|
-
override_url: string | null;
|
|
117
|
-
override_at: string | null;
|
|
118
|
-
override_by: string | null;
|
|
119
103
|
}
|
|
120
104
|
export interface MediaDimensions {
|
|
121
105
|
width?: number;
|
|
122
106
|
height?: number;
|
|
123
107
|
aspectRatio?: string;
|
|
124
108
|
}
|
|
125
|
-
export interface CreateAIMediaInput {
|
|
126
|
-
campaign_id?: number;
|
|
127
|
-
media_type: MediaType;
|
|
128
|
-
title?: string;
|
|
129
|
-
description?: string;
|
|
130
|
-
prompt_used?: string;
|
|
131
|
-
provider: MediaProvider;
|
|
132
|
-
model_version?: string;
|
|
133
|
-
cost_cents?: number;
|
|
134
|
-
storage_path?: string;
|
|
135
|
-
storage_url?: string;
|
|
136
|
-
thumbnail_url?: string;
|
|
137
|
-
dimensions?: MediaDimensions;
|
|
138
|
-
file_size_bytes?: number;
|
|
139
|
-
figma_file_id?: string;
|
|
140
|
-
figma_node_id?: string;
|
|
141
|
-
}
|
|
142
|
-
export type SocialChannel = 'slack' | 'linkedin' | 'facebook' | 'instagram' | 'twitter' | 'youtube';
|
|
143
|
-
export type SocialAccountType = 'personal' | 'page' | 'organization' | 'channel';
|
|
144
|
-
export interface SocialAccount {
|
|
145
|
-
id: number;
|
|
146
|
-
channel: SocialChannel;
|
|
147
|
-
account_type: SocialAccountType;
|
|
148
|
-
account_name: string;
|
|
149
|
-
account_id: string;
|
|
150
|
-
platform: string;
|
|
151
|
-
access_token_encrypted: string | null;
|
|
152
|
-
refresh_token_encrypted: string | null;
|
|
153
|
-
token_expires_at: string | null;
|
|
154
|
-
permissions: string[] | null;
|
|
155
|
-
is_active: boolean;
|
|
156
|
-
last_sync_at: string | null;
|
|
157
|
-
metadata: Record<string, unknown> | null;
|
|
158
|
-
created_at: string;
|
|
159
|
-
updated_at: string;
|
|
160
|
-
}
|
|
161
|
-
export interface CreateSocialAccountInput {
|
|
162
|
-
channel: SocialChannel;
|
|
163
|
-
account_type: SocialAccountType;
|
|
164
|
-
account_name: string;
|
|
165
|
-
account_id: string;
|
|
166
|
-
access_token?: string;
|
|
167
|
-
refresh_token?: string;
|
|
168
|
-
token_expires_at?: string;
|
|
169
|
-
permissions?: string[];
|
|
170
|
-
metadata?: Record<string, unknown>;
|
|
171
|
-
}
|
|
172
|
-
export type ScheduledPostStatus = 'scheduled' | 'publishing' | 'published' | 'failed' | 'cancelled';
|
|
173
|
-
export interface ScheduledPost {
|
|
174
|
-
id: number;
|
|
175
|
-
campaign_id: number;
|
|
176
|
-
content_id: number | null;
|
|
177
|
-
media_ids: number[];
|
|
178
|
-
social_account_id: number;
|
|
179
|
-
scheduled_at: string;
|
|
180
|
-
published_at: string | null;
|
|
181
|
-
status: ScheduledPostStatus;
|
|
182
|
-
external_post_id: string | null;
|
|
183
|
-
external_post_url: string | null;
|
|
184
|
-
error_message: string | null;
|
|
185
|
-
retry_count: number;
|
|
186
|
-
created_by: string | null;
|
|
187
|
-
platform: string;
|
|
188
|
-
created_at: string;
|
|
189
|
-
updated_at: string;
|
|
190
|
-
}
|
|
191
|
-
export interface CreateScheduledPostInput {
|
|
192
|
-
campaign_id: number;
|
|
193
|
-
content_id?: number;
|
|
194
|
-
media_ids?: number[];
|
|
195
|
-
social_account_id: number;
|
|
196
|
-
scheduled_at: string;
|
|
197
|
-
created_by?: string;
|
|
198
|
-
}
|
|
199
|
-
export type ContentApprovalType = 'ai_content' | 'ai_media' | 'campaign';
|
|
200
|
-
export type ApprovalStatus = 'pending' | 'approved' | 'rejected' | 'revision_requested';
|
|
201
|
-
export interface ContentApproval {
|
|
202
|
-
id: number;
|
|
203
|
-
content_type: ContentApprovalType;
|
|
204
|
-
content_id: number;
|
|
205
|
-
status: ApprovalStatus;
|
|
206
|
-
reviewer_id: string | null;
|
|
207
|
-
reviewer_notes: string | null;
|
|
208
|
-
revision_notes: string | null;
|
|
209
|
-
approved_at: string | null;
|
|
210
|
-
platform: string;
|
|
211
|
-
created_at: string;
|
|
212
|
-
}
|
|
213
|
-
export interface CreateContentApprovalInput {
|
|
214
|
-
content_type: ContentApprovalType;
|
|
215
|
-
content_id: number;
|
|
216
|
-
status: ApprovalStatus;
|
|
217
|
-
reviewer_id?: string;
|
|
218
|
-
reviewer_notes?: string;
|
|
219
|
-
revision_notes?: string;
|
|
220
|
-
}
|
|
221
|
-
export type AIService = 'anthropic' | 'openai' | 'replicate' | 'figma' | 'google';
|
|
222
|
-
export type AIOperation = 'text_generation' | 'image_generation' | 'video_generation' | 'figma_export';
|
|
223
|
-
export interface AIUsage {
|
|
224
|
-
id: number;
|
|
225
|
-
service: AIService;
|
|
226
|
-
operation: AIOperation;
|
|
227
|
-
model: string;
|
|
228
|
-
input_tokens: number | null;
|
|
229
|
-
output_tokens: number | null;
|
|
230
|
-
cost_cents: number | null;
|
|
231
|
-
user_id: string | null;
|
|
232
|
-
content_id: number | null;
|
|
233
|
-
media_id: number | null;
|
|
234
|
-
platform: string;
|
|
235
|
-
created_at: string;
|
|
236
|
-
}
|
|
237
|
-
export interface TrackAIUsageInput {
|
|
238
|
-
service: AIService;
|
|
239
|
-
operation: AIOperation;
|
|
240
|
-
model: string;
|
|
241
|
-
input_tokens?: number;
|
|
242
|
-
output_tokens?: number;
|
|
243
|
-
cost_cents?: number;
|
|
244
|
-
user_id?: string;
|
|
245
|
-
content_id?: number;
|
|
246
|
-
media_id?: number;
|
|
247
|
-
metadata?: Record<string, unknown>;
|
|
248
|
-
}
|
|
249
|
-
export interface CampaignStats {
|
|
250
|
-
totalCampaigns: number;
|
|
251
|
-
drafts: number;
|
|
252
|
-
active: number;
|
|
253
|
-
completed: number;
|
|
254
|
-
}
|
|
255
|
-
export interface AIUsageSummary {
|
|
256
|
-
totalCostCents: number;
|
|
257
|
-
totalTokens: number;
|
|
258
|
-
byService: Record<string, {
|
|
259
|
-
cost: number;
|
|
260
|
-
count: number;
|
|
261
|
-
}>;
|
|
262
|
-
}
|
|
263
|
-
export interface CampaignWithDetails {
|
|
264
|
-
campaign: MarketingCampaign;
|
|
265
|
-
content: AIContent[];
|
|
266
|
-
media: AIMedia[];
|
|
267
|
-
}
|
|
268
109
|
export type ContentSourceType = 'product_release' | 'blog_post_seed' | 'blog_post_existing' | 'case_study' | 'customer_interview' | 'event' | 'podcast' | 'webinar' | 'investor_update' | 'onboarding_guide' | 'walkthrough_video' | 'what_i_shipped' | 'how_i_work' | 'ai_prompt' | 'faq' | 'design_doc' | 'from_scratch';
|
|
269
|
-
|
|
110
|
+
/**
|
|
111
|
+
* Where a post's link goes: nowhere, written into the post, posted as a comment, or opened by the post itself
|
|
112
|
+
* (`as_link`: tapping the notification of an OpenFrame announcement opens it).
|
|
113
|
+
*/
|
|
114
|
+
export type URLInjectionPreference = 'none' | 'in_post' | 'as_comment' | 'as_link';
|
|
270
115
|
export interface ContentSourceOption {
|
|
271
116
|
id: number | string;
|
|
272
117
|
type: ContentSourceType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketing.d.ts","sourceRoot":"","sources":["../../src/types/marketing.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"marketing.d.ts","sourceRoot":"","sources":["../../src/types/marketing.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,2DAA2D;AAC3D,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAC;AAE9D,uEAAuE;AACvE,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC/B,qEAAqE;IACrE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,4DAA4D;IAC5D,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,cAAc,CAAC;IACvB,cAAc,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAC7C,8FAA8F;IAC9F,iBAAiB,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,C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AAS,CAAC;AAEnF,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;OAQG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC"}
|
package/dist/utils/index.cjs
CHANGED
|
@@ -81905,7 +81905,7 @@ var ICON_REGISTRY = {
|
|
|
81905
81905
|
"facebook-lucide": lucide("facebook"),
|
|
81906
81906
|
"file-text": lucide("file-text"),
|
|
81907
81907
|
// `'github-lucide'` is the lucide outline glyph (used by
|
|
81908
|
-
// `
|
|
81908
|
+
// `channel_platforms.icon_name='Github'`); `'github'` is the brand icon
|
|
81909
81909
|
// (used by `chat_admin_slash_commands.icon_name='github'`).
|
|
81910
81910
|
github: fromSet("GithubClassicIcon"),
|
|
81911
81911
|
"github-lucide": lucide("github"),
|
|
@@ -82005,7 +82005,7 @@ var PASCAL_TO_KEBAB_ALIASES = {
|
|
|
82005
82005
|
ClickUpIcon: "clickup",
|
|
82006
82006
|
HubspotIcon: "hubspot",
|
|
82007
82007
|
LinkedInIcon: "linkedin",
|
|
82008
|
-
// `
|
|
82008
|
+
// `channel_platforms.icon_name` stores the names these marks were first exported under.
|
|
82009
82009
|
FacebookIcon: "facebook",
|
|
82010
82010
|
InstagramIcon: "instagram",
|
|
82011
82011
|
FacebookClassicIcon: "facebook",
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/utils/notifications.ts
|
|
4
|
+
var NOTIFICATION_SEVERITIES = ["INFO", "SUCCESS", "WARNING", "DANGER"];
|
|
5
|
+
var NOTIFICATION_SEVERITY_LABELS = {
|
|
6
|
+
INFO: "Info",
|
|
7
|
+
SUCCESS: "Success",
|
|
8
|
+
WARNING: "Warning",
|
|
9
|
+
DANGER: "Danger"
|
|
10
|
+
};
|
|
11
|
+
var DEFAULT_NOTIFICATION_SEVERITY = "INFO";
|
|
12
|
+
var NOTIFICATION_CATEGORIES = [
|
|
13
|
+
"DASHBOARD",
|
|
14
|
+
"CUSTOMERS",
|
|
15
|
+
"DEVICES",
|
|
16
|
+
"SCRIPTS",
|
|
17
|
+
"MONITORING",
|
|
18
|
+
"SOFTWARE",
|
|
19
|
+
"LOGS",
|
|
20
|
+
"TICKETS",
|
|
21
|
+
"INSIGHTS",
|
|
22
|
+
"MINGO",
|
|
23
|
+
"INTEGRATIONS",
|
|
24
|
+
"GENERIC"
|
|
25
|
+
];
|
|
26
|
+
var NOTIFICATION_CATEGORY_LABELS = {
|
|
27
|
+
DASHBOARD: "Dashboard",
|
|
28
|
+
CUSTOMERS: "Customers",
|
|
29
|
+
DEVICES: "Devices",
|
|
30
|
+
SCRIPTS: "Scripts",
|
|
31
|
+
MONITORING: "Monitoring",
|
|
32
|
+
SOFTWARE: "Software",
|
|
33
|
+
LOGS: "Logs",
|
|
34
|
+
TICKETS: "Tickets",
|
|
35
|
+
INSIGHTS: "Insights",
|
|
36
|
+
MINGO: "Mingo",
|
|
37
|
+
INTEGRATIONS: "Integrations",
|
|
38
|
+
GENERIC: "General"
|
|
39
|
+
};
|
|
40
|
+
var DEFAULT_NOTIFICATION_CATEGORY = "GENERIC";
|
|
41
|
+
function isNotificationSeverity(value) {
|
|
42
|
+
return typeof value === "string" && NOTIFICATION_SEVERITIES.includes(value);
|
|
43
|
+
}
|
|
44
|
+
function isNotificationCategory(value) {
|
|
45
|
+
return typeof value === "string" && NOTIFICATION_CATEGORIES.includes(value);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
exports.DEFAULT_NOTIFICATION_CATEGORY = DEFAULT_NOTIFICATION_CATEGORY;
|
|
49
|
+
exports.DEFAULT_NOTIFICATION_SEVERITY = DEFAULT_NOTIFICATION_SEVERITY;
|
|
50
|
+
exports.NOTIFICATION_CATEGORIES = NOTIFICATION_CATEGORIES;
|
|
51
|
+
exports.NOTIFICATION_CATEGORY_LABELS = NOTIFICATION_CATEGORY_LABELS;
|
|
52
|
+
exports.NOTIFICATION_SEVERITIES = NOTIFICATION_SEVERITIES;
|
|
53
|
+
exports.NOTIFICATION_SEVERITY_LABELS = NOTIFICATION_SEVERITY_LABELS;
|
|
54
|
+
exports.isNotificationCategory = isNotificationCategory;
|
|
55
|
+
exports.isNotificationSeverity = isNotificationSeverity;
|