@inspirer-dev/crm-dashboard 1.0.91 → 1.0.93
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/server/index.js +15 -8
- package/dist/server/index.mjs +15 -8
- package/package.json +1 -1
- package/server/src/services/service.ts +15 -8
package/dist/server/index.js
CHANGED
|
@@ -2686,7 +2686,7 @@ const service = ({ strapi }) => ({
|
|
|
2686
2686
|
},
|
|
2687
2687
|
async dispatchManualPush(body) {
|
|
2688
2688
|
try {
|
|
2689
|
-
const { data } = await axios.post(`${API_URL}/crm/admin/manual-pushes/dispatch`, body, {
|
|
2689
|
+
const { data } = await axios.post(`${API_URL}/api/crm/admin/manual-pushes/dispatch`, body, {
|
|
2690
2690
|
headers: authHeaders()
|
|
2691
2691
|
});
|
|
2692
2692
|
return data;
|
|
@@ -2697,9 +2697,13 @@ const service = ({ strapi }) => ({
|
|
|
2697
2697
|
},
|
|
2698
2698
|
async dispatchTestManualPush(body) {
|
|
2699
2699
|
try {
|
|
2700
|
-
const { data } = await axios.post(
|
|
2701
|
-
|
|
2702
|
-
|
|
2700
|
+
const { data } = await axios.post(
|
|
2701
|
+
`${API_URL}/api/crm/admin/manual-pushes/dispatch-test`,
|
|
2702
|
+
body,
|
|
2703
|
+
{
|
|
2704
|
+
headers: authHeaders()
|
|
2705
|
+
}
|
|
2706
|
+
);
|
|
2703
2707
|
return data;
|
|
2704
2708
|
} catch (err) {
|
|
2705
2709
|
strapi.log.error(`Failed to dispatch test manual push: ${formatAxiosError(err)}`);
|
|
@@ -2708,7 +2712,7 @@ const service = ({ strapi }) => ({
|
|
|
2708
2712
|
},
|
|
2709
2713
|
async getManualPushHistory(query) {
|
|
2710
2714
|
try {
|
|
2711
|
-
const { data } = await axios.get(`${API_URL}/crm/admin/manual-pushes`, {
|
|
2715
|
+
const { data } = await axios.get(`${API_URL}/api/crm/admin/manual-pushes`, {
|
|
2712
2716
|
params: query,
|
|
2713
2717
|
headers: authHeaders()
|
|
2714
2718
|
});
|
|
@@ -2720,9 +2724,12 @@ const service = ({ strapi }) => ({
|
|
|
2720
2724
|
},
|
|
2721
2725
|
async getManualPushStats(manualPushId) {
|
|
2722
2726
|
try {
|
|
2723
|
-
const { data } = await axios.get(
|
|
2724
|
-
|
|
2725
|
-
|
|
2727
|
+
const { data } = await axios.get(
|
|
2728
|
+
`${API_URL}/api/crm/admin/manual-pushes/${manualPushId}/stats`,
|
|
2729
|
+
{
|
|
2730
|
+
headers: authHeaders()
|
|
2731
|
+
}
|
|
2732
|
+
);
|
|
2726
2733
|
return data;
|
|
2727
2734
|
} catch (err) {
|
|
2728
2735
|
strapi.log.error(`Failed to fetch manual push stats: ${formatAxiosError(err)}`);
|
package/dist/server/index.mjs
CHANGED
|
@@ -2685,7 +2685,7 @@ const service = ({ strapi }) => ({
|
|
|
2685
2685
|
},
|
|
2686
2686
|
async dispatchManualPush(body) {
|
|
2687
2687
|
try {
|
|
2688
|
-
const { data } = await axios.post(`${API_URL}/crm/admin/manual-pushes/dispatch`, body, {
|
|
2688
|
+
const { data } = await axios.post(`${API_URL}/api/crm/admin/manual-pushes/dispatch`, body, {
|
|
2689
2689
|
headers: authHeaders()
|
|
2690
2690
|
});
|
|
2691
2691
|
return data;
|
|
@@ -2696,9 +2696,13 @@ const service = ({ strapi }) => ({
|
|
|
2696
2696
|
},
|
|
2697
2697
|
async dispatchTestManualPush(body) {
|
|
2698
2698
|
try {
|
|
2699
|
-
const { data } = await axios.post(
|
|
2700
|
-
|
|
2701
|
-
|
|
2699
|
+
const { data } = await axios.post(
|
|
2700
|
+
`${API_URL}/api/crm/admin/manual-pushes/dispatch-test`,
|
|
2701
|
+
body,
|
|
2702
|
+
{
|
|
2703
|
+
headers: authHeaders()
|
|
2704
|
+
}
|
|
2705
|
+
);
|
|
2702
2706
|
return data;
|
|
2703
2707
|
} catch (err) {
|
|
2704
2708
|
strapi.log.error(`Failed to dispatch test manual push: ${formatAxiosError(err)}`);
|
|
@@ -2707,7 +2711,7 @@ const service = ({ strapi }) => ({
|
|
|
2707
2711
|
},
|
|
2708
2712
|
async getManualPushHistory(query) {
|
|
2709
2713
|
try {
|
|
2710
|
-
const { data } = await axios.get(`${API_URL}/crm/admin/manual-pushes`, {
|
|
2714
|
+
const { data } = await axios.get(`${API_URL}/api/crm/admin/manual-pushes`, {
|
|
2711
2715
|
params: query,
|
|
2712
2716
|
headers: authHeaders()
|
|
2713
2717
|
});
|
|
@@ -2719,9 +2723,12 @@ const service = ({ strapi }) => ({
|
|
|
2719
2723
|
},
|
|
2720
2724
|
async getManualPushStats(manualPushId) {
|
|
2721
2725
|
try {
|
|
2722
|
-
const { data } = await axios.get(
|
|
2723
|
-
|
|
2724
|
-
|
|
2726
|
+
const { data } = await axios.get(
|
|
2727
|
+
`${API_URL}/api/crm/admin/manual-pushes/${manualPushId}/stats`,
|
|
2728
|
+
{
|
|
2729
|
+
headers: authHeaders()
|
|
2730
|
+
}
|
|
2731
|
+
);
|
|
2725
2732
|
return data;
|
|
2726
2733
|
} catch (err) {
|
|
2727
2734
|
strapi.log.error(`Failed to fetch manual push stats: ${formatAxiosError(err)}`);
|
package/package.json
CHANGED
|
@@ -109,7 +109,7 @@ export default ({ strapi }: { strapi: Core.Strapi }) => ({
|
|
|
109
109
|
|
|
110
110
|
async dispatchManualPush(body: Record<string, unknown>) {
|
|
111
111
|
try {
|
|
112
|
-
const { data } = await axios.post(`${API_URL}/crm/admin/manual-pushes/dispatch`, body, {
|
|
112
|
+
const { data } = await axios.post(`${API_URL}/api/crm/admin/manual-pushes/dispatch`, body, {
|
|
113
113
|
headers: authHeaders(),
|
|
114
114
|
});
|
|
115
115
|
return data;
|
|
@@ -121,9 +121,13 @@ export default ({ strapi }: { strapi: Core.Strapi }) => ({
|
|
|
121
121
|
|
|
122
122
|
async dispatchTestManualPush(body: Record<string, unknown>) {
|
|
123
123
|
try {
|
|
124
|
-
const { data } = await axios.post(
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
const { data } = await axios.post(
|
|
125
|
+
`${API_URL}/api/crm/admin/manual-pushes/dispatch-test`,
|
|
126
|
+
body,
|
|
127
|
+
{
|
|
128
|
+
headers: authHeaders(),
|
|
129
|
+
}
|
|
130
|
+
);
|
|
127
131
|
return data;
|
|
128
132
|
} catch (err) {
|
|
129
133
|
strapi.log.error(`Failed to dispatch test manual push: ${formatAxiosError(err)}`);
|
|
@@ -133,7 +137,7 @@ export default ({ strapi }: { strapi: Core.Strapi }) => ({
|
|
|
133
137
|
|
|
134
138
|
async getManualPushHistory(query: Record<string, unknown>) {
|
|
135
139
|
try {
|
|
136
|
-
const { data } = await axios.get(`${API_URL}/crm/admin/manual-pushes`, {
|
|
140
|
+
const { data } = await axios.get(`${API_URL}/api/crm/admin/manual-pushes`, {
|
|
137
141
|
params: query,
|
|
138
142
|
headers: authHeaders(),
|
|
139
143
|
});
|
|
@@ -146,9 +150,12 @@ export default ({ strapi }: { strapi: Core.Strapi }) => ({
|
|
|
146
150
|
|
|
147
151
|
async getManualPushStats(manualPushId: string) {
|
|
148
152
|
try {
|
|
149
|
-
const { data } = await axios.get(
|
|
150
|
-
|
|
151
|
-
|
|
153
|
+
const { data } = await axios.get(
|
|
154
|
+
`${API_URL}/api/crm/admin/manual-pushes/${manualPushId}/stats`,
|
|
155
|
+
{
|
|
156
|
+
headers: authHeaders(),
|
|
157
|
+
}
|
|
158
|
+
);
|
|
152
159
|
return data;
|
|
153
160
|
} catch (err) {
|
|
154
161
|
strapi.log.error(`Failed to fetch manual push stats: ${formatAxiosError(err)}`);
|