@bcrumbs.net/bc-shared 0.0.8 → 0.0.9
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/index.esm.d.ts +1 -1
- package/index.esm.js +19 -0
- package/package.json +1 -1
- package/src/lib/config/routes.d.ts +14 -0
package/index.esm.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./src
|
|
1
|
+
export * from "./src/index";
|
package/index.esm.js
CHANGED
|
@@ -15,6 +15,9 @@ const BroadcastRoot = '/broadcast';
|
|
|
15
15
|
const ResourcesRoot = '/resources';
|
|
16
16
|
const ManagemnetRoot = '/management';
|
|
17
17
|
const ContactRoot = '/contact';
|
|
18
|
+
const BillingRoot = '/billing';
|
|
19
|
+
/** Base path for analytics / operational reports (not broadcast CRUD). */
|
|
20
|
+
const ReportsRoot = '/reports';
|
|
18
21
|
const AiRoot = '/ai';
|
|
19
22
|
const BCRoutes = {
|
|
20
23
|
AccountDashboard: AccountPortalRoot,
|
|
@@ -66,13 +69,17 @@ const BCRoutes = {
|
|
|
66
69
|
AiPreferencesPrompts: `${AiRoot}/preferences/prompts`,
|
|
67
70
|
AiPreferencesTestNumber: `${AiRoot}/preferences/test-number`,
|
|
68
71
|
AiPreferencesSuggestedQs: `${AiRoot}/preferences/suggested-qs`,
|
|
72
|
+
AiPreferencesCrumbySettings: `${AiRoot}/preferences/crumby-settings`,
|
|
69
73
|
Inbox: `${InboxPortalRoot}`,
|
|
74
|
+
AiChat: `${InboxPortalRoot}/ai`,
|
|
70
75
|
EmbeddedInbox: `${InboxPortalRoot}/embedded`,
|
|
71
76
|
Broadcast: `${BroadcastRoot}`,
|
|
72
77
|
BroadcastAnalysis: `${BroadcastRoot}/analysis/:id`,
|
|
73
78
|
BroadcastEdit: `${BroadcastRoot}/edit/:id`,
|
|
74
79
|
BroadcastCreate: `${BroadcastRoot}/create`,
|
|
75
80
|
BroadcastHistory: `${BroadcastRoot}/history`,
|
|
81
|
+
/** Recipients / message-status report for a date range under {@link ReportsRoot}. */
|
|
82
|
+
DeliveryReport: `${ReportsRoot}/delivery`,
|
|
76
83
|
ConvsSearch: `${SearchPortalRoot}`,
|
|
77
84
|
Dashboard: `${Dashboard}`,
|
|
78
85
|
Managemnet: `${ManagemnetRoot}`,
|
|
@@ -80,12 +87,22 @@ const BCRoutes = {
|
|
|
80
87
|
AiManagemnet: `${ManagemnetRoot}/ai`,
|
|
81
88
|
ApikeyManagemnet: `${ManagemnetRoot}/apikey`,
|
|
82
89
|
WebhookManagemnet: `${ManagemnetRoot}/webhook`,
|
|
90
|
+
CrmIntegrationManagemnet: `${ManagemnetRoot}/crm-integrations`,
|
|
83
91
|
ConvstageManagemnet: `${ManagemnetRoot}/convstage`,
|
|
84
92
|
IntegrationManagemnet: `${ManagemnetRoot}/integration`,
|
|
93
|
+
InstagramOAuthCallback: `${ManagemnetRoot}/instagram-oauth-callback`,
|
|
94
|
+
GeneralSettings: `${ManagemnetRoot}/general-settings`,
|
|
85
95
|
Contact: `${ContactRoot}`,
|
|
86
96
|
ContactLifeCycle: `${ContactRoot}/contact-life-cycle`,
|
|
87
97
|
AiAutomation: `${ManagemnetRoot}/ai-automation`,
|
|
88
98
|
ConversationManagement: `${ManagemnetRoot}/conversation-management`,
|
|
99
|
+
BillingInvoices: `${BillingRoot}/invoices`,
|
|
100
|
+
BillingPendingPayment: `${BillingRoot}/pending-payment`,
|
|
101
|
+
BillingPayment: `${BillingRoot}/payment`,
|
|
102
|
+
BillingPaymentMethod: `${BillingRoot}/payment-method`,
|
|
103
|
+
BillingCheckout: `${BillingRoot}/checkout`,
|
|
104
|
+
BillingRenew: `${BillingRoot}/renew`,
|
|
105
|
+
BillingDone: `${BillingRoot}/done`,
|
|
89
106
|
Root: '/'
|
|
90
107
|
};
|
|
91
108
|
|
|
@@ -8212,6 +8229,7 @@ const init = ({
|
|
|
8212
8229
|
customPath
|
|
8213
8230
|
}) => {
|
|
8214
8231
|
const currentLng = localStorage.getItem(LOCAL_STORAGE_I18N_STRING) || systemDefaultLang;
|
|
8232
|
+
document.documentElement.setAttribute('lang', currentLng);
|
|
8215
8233
|
i18n.use(Backend) // load translation using http
|
|
8216
8234
|
// .use(LanguageDetector) // detect user language
|
|
8217
8235
|
.use(initReactI18next) // passes i18n down to react-i18next
|
|
@@ -8232,6 +8250,7 @@ const init = ({
|
|
|
8232
8250
|
};
|
|
8233
8251
|
const changeLang = lang => {
|
|
8234
8252
|
localStorage.setItem(LOCAL_STORAGE_I18N_STRING, lang);
|
|
8253
|
+
document.documentElement.setAttribute('lang', lang);
|
|
8235
8254
|
i18n.changeLanguage(lang);
|
|
8236
8255
|
};
|
|
8237
8256
|
const getLang = () => {
|
package/package.json
CHANGED
|
@@ -45,13 +45,17 @@ export declare const BCRoutes: {
|
|
|
45
45
|
AiPreferencesPrompts: string;
|
|
46
46
|
AiPreferencesTestNumber: string;
|
|
47
47
|
AiPreferencesSuggestedQs: string;
|
|
48
|
+
AiPreferencesCrumbySettings: string;
|
|
48
49
|
Inbox: string;
|
|
50
|
+
AiChat: string;
|
|
49
51
|
EmbeddedInbox: string;
|
|
50
52
|
Broadcast: string;
|
|
51
53
|
BroadcastAnalysis: string;
|
|
52
54
|
BroadcastEdit: string;
|
|
53
55
|
BroadcastCreate: string;
|
|
54
56
|
BroadcastHistory: string;
|
|
57
|
+
/** Recipients / message-status report for a date range under {@link ReportsRoot}. */
|
|
58
|
+
DeliveryReport: string;
|
|
55
59
|
ConvsSearch: string;
|
|
56
60
|
Dashboard: string;
|
|
57
61
|
Managemnet: string;
|
|
@@ -59,11 +63,21 @@ export declare const BCRoutes: {
|
|
|
59
63
|
AiManagemnet: string;
|
|
60
64
|
ApikeyManagemnet: string;
|
|
61
65
|
WebhookManagemnet: string;
|
|
66
|
+
CrmIntegrationManagemnet: string;
|
|
62
67
|
ConvstageManagemnet: string;
|
|
63
68
|
IntegrationManagemnet: string;
|
|
69
|
+
InstagramOAuthCallback: string;
|
|
70
|
+
GeneralSettings: string;
|
|
64
71
|
Contact: string;
|
|
65
72
|
ContactLifeCycle: string;
|
|
66
73
|
AiAutomation: string;
|
|
67
74
|
ConversationManagement: string;
|
|
75
|
+
BillingInvoices: string;
|
|
76
|
+
BillingPendingPayment: string;
|
|
77
|
+
BillingPayment: string;
|
|
78
|
+
BillingPaymentMethod: string;
|
|
79
|
+
BillingCheckout: string;
|
|
80
|
+
BillingRenew: string;
|
|
81
|
+
BillingDone: string;
|
|
68
82
|
Root: string;
|
|
69
83
|
};
|