@feedmepos/mf-brand-app-builder 0.5.33-prod → 0.5.34-dev.2
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/{App-DJtSFF0b.js → App-DCqGS354.js} +7 -7
- package/dist/{AssetsSettings-F-AJxGfJ.js → AssetsSettings-DtZ6goQl.js} +22 -22
- package/dist/{BrandkitView-kCfJD399.js → BrandkitView-DjsOzNuT.js} +2087 -2054
- package/dist/{BuilderView-CwkHLsXN.js → BuilderView-4X7XucGF.js} +7 -7
- package/dist/{ImageUpload-U-gz7WBm.js → ImageUpload-1eIG90lr.js} +8 -8
- package/dist/{LinkButton-DNXBKGCn.js → LinkButton-De-YNclu.js} +1 -1
- package/dist/{ListRepeater-Cl4iMK2W.js → ListRepeater-DTAI73FN.js} +1 -1
- package/dist/{ManagementSettings-CywfdXkh.js → ManagementSettings-D0goBMzs.js} +104 -93
- package/dist/{ProjectView-DKXRpIC6.js → ProjectView-ByxaVBFb.js} +1 -1
- package/dist/{app-CgJDqvV4.js → app-COVZ5eta.js} +180 -152
- package/dist/app.js +1 -1
- package/dist/brand-core/src/entity.d.ts +3 -0
- package/dist/client/merchant/src/app.d.ts +28 -0
- package/dist/client/merchant/src/stores/business/index.d.ts +18 -0
- package/dist/{image-S7-2rbQS.js → image-D_Djf1PS.js} +7 -7
- package/dist/{index-ChqSdT0a.js → index-BA2J-Ffh.js} +1 -1
- package/dist/{index-CPs0rWCO.js → index-Bk6TOZrx.js} +15 -15
- package/dist/index-CVVQJJYY.js +134 -0
- package/dist/{index-C6_vWPi0.js → index-D0LOMBBD.js} +27 -27
- package/dist/{main-Gc3KE77V.js → main-t9gRTvwQ.js} +3 -3
- package/dist/package.json +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/index-CjXPwLCp.js +0 -130
package/dist/app.js
CHANGED
|
@@ -165,6 +165,9 @@ export type OdsDisplayConfig = {
|
|
|
165
165
|
groupBy: OrderGroupingMode;
|
|
166
166
|
statusLayout: OrderStatusBoardLayout;
|
|
167
167
|
statusSlidingPeriod: number;
|
|
168
|
+
currentOrder?: {
|
|
169
|
+
enabled?: boolean;
|
|
170
|
+
};
|
|
168
171
|
showProgressBar: boolean;
|
|
169
172
|
/** Number of order-code columns within each status section (preparing / ready). 1, 2, or 3. */
|
|
170
173
|
statusColumnCount: number;
|
|
@@ -393,6 +393,8 @@ export declare const i18nMessages: {
|
|
|
393
393
|
voucher: {
|
|
394
394
|
defaultTitle: string;
|
|
395
395
|
noDescription: string;
|
|
396
|
+
used: string;
|
|
397
|
+
remaining: string;
|
|
396
398
|
termsAndConditions: string;
|
|
397
399
|
useVoucher: string;
|
|
398
400
|
transferVoucher: string;
|
|
@@ -765,6 +767,7 @@ export declare const i18nMessages: {
|
|
|
765
767
|
showEstimatedTime: string;
|
|
766
768
|
showOrderTypeTabs: string;
|
|
767
769
|
showProgressBar: string;
|
|
770
|
+
showCurrentOrder: string;
|
|
768
771
|
colorOverride: string;
|
|
769
772
|
colorOverrideTitle: string;
|
|
770
773
|
colorOverrideDescription: string;
|
|
@@ -795,6 +798,7 @@ export declare const i18nMessages: {
|
|
|
795
798
|
showEstimatedTimeDescription: string;
|
|
796
799
|
showOrderTypeTabsDescription: string;
|
|
797
800
|
showProgressBarDescription: string;
|
|
801
|
+
showCurrentOrderDescription: string;
|
|
798
802
|
colorOverrideConfigDescription: string;
|
|
799
803
|
colorsOverridden: string;
|
|
800
804
|
configure: string;
|
|
@@ -1646,6 +1650,8 @@ export declare const i18nMessages: {
|
|
|
1646
1650
|
voucher: {
|
|
1647
1651
|
defaultTitle: string;
|
|
1648
1652
|
noDescription: string;
|
|
1653
|
+
used: string;
|
|
1654
|
+
remaining: string;
|
|
1649
1655
|
termsAndConditions: string;
|
|
1650
1656
|
useVoucher: string;
|
|
1651
1657
|
transferVoucher: string;
|
|
@@ -2048,6 +2054,7 @@ export declare const i18nMessages: {
|
|
|
2048
2054
|
showEstimatedTime: string;
|
|
2049
2055
|
showOrderTypeTabs: string;
|
|
2050
2056
|
showProgressBar: string;
|
|
2057
|
+
showCurrentOrder: string;
|
|
2051
2058
|
colorOverride: string;
|
|
2052
2059
|
colorOverrideTitle: string;
|
|
2053
2060
|
colorOverrideDescription: string;
|
|
@@ -2078,6 +2085,7 @@ export declare const i18nMessages: {
|
|
|
2078
2085
|
showEstimatedTimeDescription: string;
|
|
2079
2086
|
showOrderTypeTabsDescription: string;
|
|
2080
2087
|
showProgressBarDescription: string;
|
|
2088
|
+
showCurrentOrderDescription: string;
|
|
2081
2089
|
colorOverrideConfigDescription: string;
|
|
2082
2090
|
colorsOverridden: string;
|
|
2083
2091
|
configure: string;
|
|
@@ -2927,6 +2935,8 @@ export declare const i18nMessages: {
|
|
|
2927
2935
|
voucher: {
|
|
2928
2936
|
defaultTitle: string;
|
|
2929
2937
|
noDescription: string;
|
|
2938
|
+
used: string;
|
|
2939
|
+
remaining: string;
|
|
2930
2940
|
termsAndConditions: string;
|
|
2931
2941
|
useVoucher: string;
|
|
2932
2942
|
transferVoucher: string;
|
|
@@ -3306,6 +3316,7 @@ export declare const i18nMessages: {
|
|
|
3306
3316
|
showEstimatedTime: string;
|
|
3307
3317
|
showOrderTypeTabs: string;
|
|
3308
3318
|
showProgressBar: string;
|
|
3319
|
+
showCurrentOrder: string;
|
|
3309
3320
|
colorOverride: string;
|
|
3310
3321
|
colorOverrideTitle: string;
|
|
3311
3322
|
colorOverrideDescription: string;
|
|
@@ -3336,6 +3347,7 @@ export declare const i18nMessages: {
|
|
|
3336
3347
|
showEstimatedTimeDescription: string;
|
|
3337
3348
|
showOrderTypeTabsDescription: string;
|
|
3338
3349
|
showProgressBarDescription: string;
|
|
3350
|
+
showCurrentOrderDescription: string;
|
|
3339
3351
|
colorOverrideConfigDescription: string;
|
|
3340
3352
|
colorsOverridden: string;
|
|
3341
3353
|
configure: string;
|
|
@@ -4185,6 +4197,8 @@ export declare const i18nMessages: {
|
|
|
4185
4197
|
voucher: {
|
|
4186
4198
|
defaultTitle: string;
|
|
4187
4199
|
noDescription: string;
|
|
4200
|
+
used: string;
|
|
4201
|
+
remaining: string;
|
|
4188
4202
|
termsAndConditions: string;
|
|
4189
4203
|
useVoucher: string;
|
|
4190
4204
|
transferVoucher: string;
|
|
@@ -4564,6 +4578,7 @@ export declare const i18nMessages: {
|
|
|
4564
4578
|
showEstimatedTime: string;
|
|
4565
4579
|
showOrderTypeTabs: string;
|
|
4566
4580
|
showProgressBar: string;
|
|
4581
|
+
showCurrentOrder: string;
|
|
4567
4582
|
colorOverride: string;
|
|
4568
4583
|
colorOverrideTitle: string;
|
|
4569
4584
|
colorOverrideDescription: string;
|
|
@@ -4594,6 +4609,7 @@ export declare const i18nMessages: {
|
|
|
4594
4609
|
showEstimatedTimeDescription: string;
|
|
4595
4610
|
showOrderTypeTabsDescription: string;
|
|
4596
4611
|
showProgressBarDescription: string;
|
|
4612
|
+
showCurrentOrderDescription: string;
|
|
4597
4613
|
colorOverrideConfigDescription: string;
|
|
4598
4614
|
colorsOverridden: string;
|
|
4599
4615
|
configure: string;
|
|
@@ -5483,6 +5499,8 @@ export declare const i18nMessages: {
|
|
|
5483
5499
|
voucher: {
|
|
5484
5500
|
defaultTitle: string;
|
|
5485
5501
|
noDescription: string;
|
|
5502
|
+
used: string;
|
|
5503
|
+
remaining: string;
|
|
5486
5504
|
termsAndConditions: string;
|
|
5487
5505
|
useVoucher: string;
|
|
5488
5506
|
transferVoucher: string;
|
|
@@ -6020,6 +6038,7 @@ export declare const i18nMessages: {
|
|
|
6020
6038
|
showEstimatedTime: string;
|
|
6021
6039
|
showOrderTypeTabs: string;
|
|
6022
6040
|
showProgressBar: string;
|
|
6041
|
+
showCurrentOrder: string;
|
|
6023
6042
|
colorOverride: string;
|
|
6024
6043
|
colorOverrideTitle: string;
|
|
6025
6044
|
colorOverrideDescription: string;
|
|
@@ -6050,6 +6069,7 @@ export declare const i18nMessages: {
|
|
|
6050
6069
|
showEstimatedTimeDescription: string;
|
|
6051
6070
|
showOrderTypeTabsDescription: string;
|
|
6052
6071
|
showProgressBarDescription: string;
|
|
6072
|
+
showCurrentOrderDescription: string;
|
|
6053
6073
|
colorOverrideConfigDescription: string;
|
|
6054
6074
|
colorsOverridden: string;
|
|
6055
6075
|
configure: string;
|
|
@@ -6939,6 +6959,8 @@ export declare const i18nMessages: {
|
|
|
6939
6959
|
voucher: {
|
|
6940
6960
|
defaultTitle: string;
|
|
6941
6961
|
noDescription: string;
|
|
6962
|
+
used: string;
|
|
6963
|
+
remaining: string;
|
|
6942
6964
|
termsAndConditions: string;
|
|
6943
6965
|
useVoucher: string;
|
|
6944
6966
|
transferVoucher: string;
|
|
@@ -7476,6 +7498,7 @@ export declare const i18nMessages: {
|
|
|
7476
7498
|
showEstimatedTime: string;
|
|
7477
7499
|
showOrderTypeTabs: string;
|
|
7478
7500
|
showProgressBar: string;
|
|
7501
|
+
showCurrentOrder: string;
|
|
7479
7502
|
colorOverride: string;
|
|
7480
7503
|
colorOverrideTitle: string;
|
|
7481
7504
|
colorOverrideDescription: string;
|
|
@@ -7506,6 +7529,7 @@ export declare const i18nMessages: {
|
|
|
7506
7529
|
showEstimatedTimeDescription: string;
|
|
7507
7530
|
showOrderTypeTabsDescription: string;
|
|
7508
7531
|
showProgressBarDescription: string;
|
|
7532
|
+
showCurrentOrderDescription: string;
|
|
7509
7533
|
colorOverrideConfigDescription: string;
|
|
7510
7534
|
colorsOverridden: string;
|
|
7511
7535
|
configure: string;
|
|
@@ -8365,6 +8389,8 @@ export declare const i18nMessages: {
|
|
|
8365
8389
|
voucher: {
|
|
8366
8390
|
defaultTitle: string;
|
|
8367
8391
|
noDescription: string;
|
|
8392
|
+
used: string;
|
|
8393
|
+
remaining: string;
|
|
8368
8394
|
termsAndConditions: string;
|
|
8369
8395
|
useVoucher: string;
|
|
8370
8396
|
transferVoucher: string;
|
|
@@ -8895,6 +8921,7 @@ export declare const i18nMessages: {
|
|
|
8895
8921
|
showEstimatedTime: string;
|
|
8896
8922
|
showOrderTypeTabs: string;
|
|
8897
8923
|
showProgressBar: string;
|
|
8924
|
+
showCurrentOrder: string;
|
|
8898
8925
|
colorOverride: string;
|
|
8899
8926
|
colorOverrideTitle: string;
|
|
8900
8927
|
colorOverrideDescription: string;
|
|
@@ -8925,6 +8952,7 @@ export declare const i18nMessages: {
|
|
|
8925
8952
|
showEstimatedTimeDescription: string;
|
|
8926
8953
|
showOrderTypeTabsDescription: string;
|
|
8927
8954
|
showProgressBarDescription: string;
|
|
8955
|
+
showCurrentOrderDescription: string;
|
|
8928
8956
|
colorOverrideConfigDescription: string;
|
|
8929
8957
|
colorsOverridden: string;
|
|
8930
8958
|
configure: string;
|
|
@@ -206,6 +206,9 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
206
206
|
groupBy: import("../../../../../brand-core/src/entity").OrderGroupingMode;
|
|
207
207
|
statusLayout: import("../../../../../brand-core/src/entity").OrderStatusBoardLayout;
|
|
208
208
|
statusSlidingPeriod: number;
|
|
209
|
+
currentOrder?: {
|
|
210
|
+
enabled?: boolean | undefined;
|
|
211
|
+
} | undefined;
|
|
209
212
|
showProgressBar: boolean;
|
|
210
213
|
statusColumnCount: number;
|
|
211
214
|
showDeliveryIcons: boolean;
|
|
@@ -422,6 +425,9 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
422
425
|
groupBy: import("../../../../../brand-core/src/entity").OrderGroupingMode;
|
|
423
426
|
statusLayout: import("../../../../../brand-core/src/entity").OrderStatusBoardLayout;
|
|
424
427
|
statusSlidingPeriod: number;
|
|
428
|
+
currentOrder?: {
|
|
429
|
+
enabled?: boolean | undefined;
|
|
430
|
+
} | undefined;
|
|
425
431
|
showProgressBar: boolean;
|
|
426
432
|
statusColumnCount: number;
|
|
427
433
|
showDeliveryIcons: boolean;
|
|
@@ -643,6 +649,9 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
643
649
|
groupBy: import("../../../../../brand-core/src/entity").OrderGroupingMode;
|
|
644
650
|
statusLayout: import("../../../../../brand-core/src/entity").OrderStatusBoardLayout;
|
|
645
651
|
statusSlidingPeriod: number;
|
|
652
|
+
currentOrder?: {
|
|
653
|
+
enabled?: boolean | undefined;
|
|
654
|
+
} | undefined;
|
|
646
655
|
showProgressBar: boolean;
|
|
647
656
|
statusColumnCount: number;
|
|
648
657
|
showDeliveryIcons: boolean;
|
|
@@ -859,6 +868,9 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
859
868
|
groupBy: import("../../../../../brand-core/src/entity").OrderGroupingMode;
|
|
860
869
|
statusLayout: import("../../../../../brand-core/src/entity").OrderStatusBoardLayout;
|
|
861
870
|
statusSlidingPeriod: number;
|
|
871
|
+
currentOrder?: {
|
|
872
|
+
enabled?: boolean | undefined;
|
|
873
|
+
} | undefined;
|
|
862
874
|
showProgressBar: boolean;
|
|
863
875
|
statusColumnCount: number;
|
|
864
876
|
showDeliveryIcons: boolean;
|
|
@@ -1080,6 +1092,9 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
1080
1092
|
groupBy: import("../../../../../brand-core/src/entity").OrderGroupingMode;
|
|
1081
1093
|
statusLayout: import("../../../../../brand-core/src/entity").OrderStatusBoardLayout;
|
|
1082
1094
|
statusSlidingPeriod: number;
|
|
1095
|
+
currentOrder?: {
|
|
1096
|
+
enabled?: boolean | undefined;
|
|
1097
|
+
} | undefined;
|
|
1083
1098
|
showProgressBar: boolean;
|
|
1084
1099
|
statusColumnCount: number;
|
|
1085
1100
|
showDeliveryIcons: boolean;
|
|
@@ -1296,6 +1311,9 @@ export declare const useBusinessStore: import("pinia").StoreDefinition<"business
|
|
|
1296
1311
|
groupBy: import("../../../../../brand-core/src/entity").OrderGroupingMode;
|
|
1297
1312
|
statusLayout: import("../../../../../brand-core/src/entity").OrderStatusBoardLayout;
|
|
1298
1313
|
statusSlidingPeriod: number;
|
|
1314
|
+
currentOrder?: {
|
|
1315
|
+
enabled?: boolean | undefined;
|
|
1316
|
+
} | undefined;
|
|
1299
1317
|
showProgressBar: boolean;
|
|
1300
1318
|
statusColumnCount: number;
|
|
1301
1319
|
showDeliveryIcons: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { H as r, a as p } from "./index-
|
|
1
|
+
import { H as r, a as p } from "./index-D0LOMBBD.js";
|
|
2
2
|
const i = () => p().PWA_ICON_SERVICE_BACKEND;
|
|
3
|
-
async function
|
|
3
|
+
async function d(e, t, a) {
|
|
4
4
|
const n = new FormData();
|
|
5
5
|
return n.append("file", a), (await r.Put(
|
|
6
|
-
"https://api.
|
|
6
|
+
"https://api.feedmedev.vip",
|
|
7
7
|
`/image/${e}/${t}`,
|
|
8
8
|
{
|
|
9
9
|
headers: {
|
|
@@ -13,9 +13,9 @@ async function s(e, t, a) {
|
|
|
13
13
|
}
|
|
14
14
|
)).data;
|
|
15
15
|
}
|
|
16
|
-
async function
|
|
16
|
+
async function s(e, t) {
|
|
17
17
|
return (await r.Delete(
|
|
18
|
-
"https://api.
|
|
18
|
+
"https://api.feedmedev.vip",
|
|
19
19
|
`/image/${e}/${t}`
|
|
20
20
|
)).data;
|
|
21
21
|
}
|
|
@@ -29,8 +29,8 @@ async function o(e, t) {
|
|
|
29
29
|
})).data;
|
|
30
30
|
}
|
|
31
31
|
const f = {
|
|
32
|
-
uploadImage:
|
|
33
|
-
deleteImage:
|
|
32
|
+
uploadImage: d,
|
|
33
|
+
deleteImage: s,
|
|
34
34
|
uploadAppIcon: o
|
|
35
35
|
};
|
|
36
36
|
function u(e) {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { H as d } from "./index-
|
|
1
|
+
import { H as d } from "./index-D0LOMBBD.js";
|
|
2
2
|
import { defineStore as w } from "pinia";
|
|
3
3
|
import { ref as y } from "vue";
|
|
4
4
|
import { v as I } from "./v4-CKwdnpQf.js";
|
|
5
5
|
async function g(e) {
|
|
6
6
|
return (await d.Get(
|
|
7
|
-
"https://api.
|
|
7
|
+
"https://api.feedmedev.vip",
|
|
8
8
|
`/template/${e}`
|
|
9
9
|
)).data;
|
|
10
10
|
}
|
|
11
11
|
async function A(e, l, p) {
|
|
12
12
|
return (await d.Get(
|
|
13
|
-
"https://api.
|
|
13
|
+
"https://api.feedmedev.vip",
|
|
14
14
|
`/template/${e}/${l}/${p}`
|
|
15
15
|
)).data;
|
|
16
16
|
}
|
|
17
17
|
async function P(e, l, p, m) {
|
|
18
18
|
return (await d.Put(
|
|
19
|
-
"https://api.
|
|
19
|
+
"https://api.feedmedev.vip",
|
|
20
20
|
`/template/${e}/${l}/${p.templateId}`,
|
|
21
21
|
{
|
|
22
22
|
data: {
|
|
@@ -29,7 +29,7 @@ async function P(e, l, p, m) {
|
|
|
29
29
|
}
|
|
30
30
|
async function M(e, l, p) {
|
|
31
31
|
return (await d.Put(
|
|
32
|
-
"https://api.
|
|
32
|
+
"https://api.feedmedev.vip",
|
|
33
33
|
`/template/${e}/active${p ? `/${p}` : ""}`,
|
|
34
34
|
{
|
|
35
35
|
data: {
|
|
@@ -40,19 +40,19 @@ async function M(e, l, p) {
|
|
|
40
40
|
}
|
|
41
41
|
async function b(e, l) {
|
|
42
42
|
return (await d.Get(
|
|
43
|
-
"https://api.
|
|
43
|
+
"https://api.feedmedev.vip",
|
|
44
44
|
`/template/${e}/active${l ? `/${l}` : ""}`
|
|
45
45
|
)).data;
|
|
46
46
|
}
|
|
47
47
|
async function U(e, l, p) {
|
|
48
48
|
return await d.Head(
|
|
49
|
-
"https://api.
|
|
49
|
+
"https://api.feedmedev.vip",
|
|
50
50
|
`/template/${e}/${l}/${p}`
|
|
51
51
|
).then((c) => c.status === 200).catch(() => !1);
|
|
52
52
|
}
|
|
53
53
|
async function B(e, l, p) {
|
|
54
54
|
return (await d.Post(
|
|
55
|
-
"https://api.
|
|
55
|
+
"https://api.feedmedev.vip",
|
|
56
56
|
`/template/${e}/${l}/rename`,
|
|
57
57
|
{
|
|
58
58
|
data: {
|
|
@@ -63,7 +63,7 @@ async function B(e, l, p) {
|
|
|
63
63
|
}
|
|
64
64
|
async function x(e, l, p) {
|
|
65
65
|
return (await d.Delete(
|
|
66
|
-
"https://api.
|
|
66
|
+
"https://api.feedmedev.vip",
|
|
67
67
|
`/template/${e}/${l}/${p}`
|
|
68
68
|
)).data;
|
|
69
69
|
}
|
|
@@ -120,7 +120,7 @@ const i = {
|
|
|
120
120
|
t
|
|
121
121
|
);
|
|
122
122
|
}
|
|
123
|
-
async function
|
|
123
|
+
async function v(a, t) {
|
|
124
124
|
i.setMainPageTemplateId(
|
|
125
125
|
a,
|
|
126
126
|
e.value.selectedTemplate.templateId,
|
|
@@ -129,7 +129,7 @@ const i = {
|
|
|
129
129
|
e.value.activeTemplateId = e.value.selectedTemplate.templateId;
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function o(a = {}) {
|
|
133
133
|
let t = "Untitled", s = 2;
|
|
134
134
|
e.value.allTemplates.forEach((r) => {
|
|
135
135
|
if (!r.templateAlias.startsWith("Untitled")) return;
|
|
@@ -145,7 +145,7 @@ const i = {
|
|
|
145
145
|
};
|
|
146
146
|
e.value.allTemplates.push(n), e.value.selectedTemplate = n;
|
|
147
147
|
}
|
|
148
|
-
async function
|
|
148
|
+
async function f(a, t, s) {
|
|
149
149
|
await i.renameTemplate(a, t, s).then(() => {
|
|
150
150
|
var n;
|
|
151
151
|
e.value.allTemplates = e.value.allTemplates.map((r) => r.templateId === t ? {
|
|
@@ -185,9 +185,9 @@ const i = {
|
|
|
185
185
|
getMainTemplateId: m,
|
|
186
186
|
setSelectedTemplate: c,
|
|
187
187
|
saveTemplate: T,
|
|
188
|
-
setMainPageTemplate:
|
|
189
|
-
addNewTemplate:
|
|
190
|
-
renameTemplate:
|
|
188
|
+
setMainPageTemplate: v,
|
|
189
|
+
addNewTemplate: o,
|
|
190
|
+
renameTemplate: f,
|
|
191
191
|
deleteTemplate: h,
|
|
192
192
|
unpublishTemplate: $
|
|
193
193
|
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { H as a, a as d } from "./index-D0LOMBBD.js";
|
|
2
|
+
const o = () => d().PORTAL_V2_BACKEND, c = () => d().LICENSE_BACKEND;
|
|
3
|
+
async function p(t) {
|
|
4
|
+
return (await a.Get(
|
|
5
|
+
"https://api.feedmedev.vip",
|
|
6
|
+
`/short-url/${t}`
|
|
7
|
+
)).data;
|
|
8
|
+
}
|
|
9
|
+
async function u(t, e, s) {
|
|
10
|
+
return await a.Post(
|
|
11
|
+
"https://api.feedmedev.vip",
|
|
12
|
+
"/short-url",
|
|
13
|
+
{
|
|
14
|
+
data: {
|
|
15
|
+
slug: t,
|
|
16
|
+
oldSlug: e,
|
|
17
|
+
type: "BUSINESS",
|
|
18
|
+
businessId: s
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
).then((n) => n.data).catch((n) => {
|
|
22
|
+
var r;
|
|
23
|
+
throw (r = n.response) == null ? void 0 : r.data;
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
async function f(t) {
|
|
27
|
+
return (await a.Get(
|
|
28
|
+
"https://api.feedmedev.vip",
|
|
29
|
+
`/metadata/${t}/config`
|
|
30
|
+
)).data;
|
|
31
|
+
}
|
|
32
|
+
async function m(t, e, s) {
|
|
33
|
+
return (await a.Post(
|
|
34
|
+
"https://api.feedmedev.vip",
|
|
35
|
+
`/metadata/${t}/config`,
|
|
36
|
+
{
|
|
37
|
+
data: {
|
|
38
|
+
name: e,
|
|
39
|
+
backgroundColor: "#ffffff",
|
|
40
|
+
country: s
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
)).data;
|
|
44
|
+
}
|
|
45
|
+
async function l(t) {
|
|
46
|
+
return (await a.Get(
|
|
47
|
+
"https://api.feedmedev.vip",
|
|
48
|
+
`/metadata/${t}/brandkit`
|
|
49
|
+
)).data;
|
|
50
|
+
}
|
|
51
|
+
async function h(t, e) {
|
|
52
|
+
return (await a.Post(
|
|
53
|
+
"https://api.feedmedev.vip",
|
|
54
|
+
`/metadata/${t}/brandkit`,
|
|
55
|
+
{
|
|
56
|
+
data: e
|
|
57
|
+
}
|
|
58
|
+
)).data;
|
|
59
|
+
}
|
|
60
|
+
async function v(t, e) {
|
|
61
|
+
return (await a.Get(
|
|
62
|
+
"https://api.feedmedev.vip",
|
|
63
|
+
`/metadata/${t}/brandkit/template-history/${e}`
|
|
64
|
+
)).data;
|
|
65
|
+
}
|
|
66
|
+
async function y(t, e, s) {
|
|
67
|
+
return (await a.Post(
|
|
68
|
+
"https://api.feedmedev.vip",
|
|
69
|
+
`/metadata/${t}/brandkit/template-restore/${e}/${s}`,
|
|
70
|
+
{}
|
|
71
|
+
)).data;
|
|
72
|
+
}
|
|
73
|
+
async function $(t, e) {
|
|
74
|
+
return (await a.Delete(
|
|
75
|
+
"https://api.feedmedev.vip",
|
|
76
|
+
`/metadata/${t}/brandkit/template-history/${e}`
|
|
77
|
+
)).data;
|
|
78
|
+
}
|
|
79
|
+
async function w(t, e) {
|
|
80
|
+
const s = {
|
|
81
|
+
...e,
|
|
82
|
+
url: e.url || t
|
|
83
|
+
};
|
|
84
|
+
return await a.Put(
|
|
85
|
+
o(),
|
|
86
|
+
`businesses/${t}/profile`,
|
|
87
|
+
{
|
|
88
|
+
data: s
|
|
89
|
+
}
|
|
90
|
+
).catch((r) => {
|
|
91
|
+
var i;
|
|
92
|
+
throw (i = r.response) == null ? void 0 : i.data;
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
async function g(t) {
|
|
96
|
+
return await a.Get(
|
|
97
|
+
c(),
|
|
98
|
+
`api/business/${t}/feature/miniprogram`
|
|
99
|
+
).then((e) => e.data).catch(() => !1);
|
|
100
|
+
}
|
|
101
|
+
async function B(t) {
|
|
102
|
+
return (await a.Get(
|
|
103
|
+
"https://api.feedmedev.vip",
|
|
104
|
+
`/metadata/${t}/credentials`,
|
|
105
|
+
{}
|
|
106
|
+
)).data;
|
|
107
|
+
}
|
|
108
|
+
async function P(t, e) {
|
|
109
|
+
return (await a.Post(
|
|
110
|
+
"https://api.feedmedev.vip",
|
|
111
|
+
`/metadata/${t}/credentials`,
|
|
112
|
+
{
|
|
113
|
+
data: e
|
|
114
|
+
}
|
|
115
|
+
)).data;
|
|
116
|
+
}
|
|
117
|
+
const k = {
|
|
118
|
+
getGlobalSlug: p,
|
|
119
|
+
setShortUrl: u,
|
|
120
|
+
getBusinessMetadata: f,
|
|
121
|
+
setBusinessMetadata: m,
|
|
122
|
+
getBusinessBrandkit: l,
|
|
123
|
+
setBusinessBrandkit: h,
|
|
124
|
+
getTemplateHistory: v,
|
|
125
|
+
restoreTemplateVersion: y,
|
|
126
|
+
clearTemplateHistory: $,
|
|
127
|
+
updateBusinessProfile: w,
|
|
128
|
+
getBusinessPremiumStatus: g,
|
|
129
|
+
getCredentials: B,
|
|
130
|
+
updateCredentials: P
|
|
131
|
+
};
|
|
132
|
+
export {
|
|
133
|
+
k as B
|
|
134
|
+
};
|