@feedmepos/mf-connect 0.1.98-beta.21 → 0.1.98-beta.23
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-B3f8GWoR.js → App-BIYX7Etx.js} +10 -9
- package/dist/{AuditLogs-LRHzzpqj.js → AuditLogs-DE4OshWT.js} +9 -9
- package/dist/{Bin-Y761Ua4-.js → Bin-Dij5sB7P.js} +8 -8
- package/dist/{Broadcast-CdRuG42N.js → Broadcast-LrxTPewm.js} +13 -12
- package/dist/CampaignAnalytic-Cd4NmVCa.js +1656 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CsULDH9l.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-NOjmA60-.js} +6 -5
- package/dist/{Card-GZ3ZLnBl.js → Card-RUIOZRGb.js} +18 -18
- package/dist/{Collections-B59fL-oS.js → Collections-D0Dm4XVh.js} +14 -13
- package/dist/{Credit-DJxzXBam.js → Credit-04KV7cl_.js} +119 -93
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C3d8frgZ.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D0_4f-Lw.js} +34 -30
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DKUFvacX.js → EffectSheet.vue_vue_type_style_index_0_lang-GJYjey-R.js} +6 -6
- package/dist/{Experience-lzpvYFPP.js → Experience-Tnx0sYuU.js} +112 -86
- package/dist/{FileSaver.min-BXoEv5ve.js → FileSaver.min-DO-YYoNK.js} +1 -1
- package/dist/Game-BQF1HhbF.js +356 -0
- package/dist/{Grab-BQgS104D.js → Grab-CbpfBdSQ.js} +32 -31
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-Cz9iB9ox.js → ImageInput.vue_vue_type_script_setup_true_lang-Dm76lZPy.js} +1 -1
- package/dist/{Index-B5UTBbUy.js → Index-Bs2XB4kq.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CLLhy4-v.js → LocationPicker.vue_vue_type_script_setup_true_lang--zUjb2sx.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BiIqs4zW.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Dix9t18W.js} +1 -1
- package/dist/LoyaltyDashboard-D-2cCqT1.js +1339 -0
- package/dist/{MainLayout-AvQ4_-oT.js → MainLayout-BtjswcYZ.js} +1 -1
- package/dist/{Marketing-Bn1ygF8d.js → Marketing-BX2dspqc.js} +4 -4
- package/dist/{MarketingMaterialEdit-Cw-VPVqE.js → MarketingMaterialEdit-BnERWjgD.js} +6 -6
- package/dist/{Member-CpEXFHIF.js → Member-BH8ly91d.js} +11 -11
- package/dist/{MemberList-gSEw_idJ.js → MemberList-vNI7GD9Z.js} +36 -35
- package/dist/{MemberTransactions-DEMzj9-y.js → MemberTransactions-CQUJBCJK.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-B4Y5KPpw.js → MessageInput.vue_vue_type_script_setup_true_lang-BzJzMifM.js} +4400 -4431
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-B1Yj3odA.js +38 -0
- package/dist/Mission-Rzjonu46.js +360 -0
- package/dist/{Overview-CMudFYOc.js → Overview-B1b0Krzj.js} +3 -3
- package/dist/{Overview-DjNcF88f.js → Overview-BYCWa5kg.js} +18 -18
- package/dist/Point-LhcogofH.js +288 -0
- package/dist/Promotion-CyHJ_Rj7.js +423 -0
- package/dist/{Queue-BjoAJoVe.js → Queue-B3TbSBGL.js} +16 -16
- package/dist/{Record-CfZFuwy_.js → Record-CMaloGsO.js} +9 -9
- package/dist/{Review-pIAxbjVU.js → Review-Cht29ZqH.js} +2 -2
- package/dist/{ReviewFacebookCallback-BRW4T-5-.js → ReviewFacebookCallback-w9E0tBZK.js} +5 -5
- package/dist/{ReviewGoogleCallback-B-6EojXR.js → ReviewGoogleCallback-wyDB2Q4d.js} +5 -5
- package/dist/{Reward-_pdE2XZp.js → Reward-CHUkCgCF.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-S5dh0IGc.js → RewardGroup.vue_vue_type_script_setup_true_lang-Dop7KXro.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-C9B7NmF0.js → RuleGroup.vue_vue_type_script_setup_true_lang-pgKnyxcj.js} +16 -15
- package/dist/{Segment-B1EMe-LZ.js → Segment-CQM0X0t8.js} +39 -37
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DAmjk8b3.js → SelectItems.vue_vue_type_script_setup_true_lang-Dgk1XFW-.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-C7sgPf8l.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-WLoT1Yuh.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DVYTZr_E.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CiIXMw2K.js} +4 -4
- package/dist/{Setting-CQQ6zacB.js → Setting-BNb9cKHW.js} +40 -40
- package/dist/{SettingAdvertisements-9Wl9VWbM.js → SettingAdvertisements-DCfDKajW.js} +12 -12
- package/dist/{Settings-Bvj2ChDR.js → Settings-D9x31jyY.js} +5 -5
- package/dist/{Store-BdUZ22g6.js → Store-CHIRPbf9.js} +21 -21
- package/dist/{StoreRewards-DsUS_Lu1.js → StoreRewards-oDCchD1I.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Zw-lIDCN.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Bs6DBPCp.js} +21 -21
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BECp3eqQ.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dg7rFNPR.js} +2 -2
- package/dist/{Tier-2-mJ3SNK.js → Tier-BnxtqLlp.js} +36 -34
- package/dist/{Title-BjeEDjxl.js → Title-Ca909tVJ.js} +39 -37
- package/dist/{Transaction--U_kJKec.js → Transaction-CXqSR6Vb.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BkLyvjA5.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DXKIcUhs.js} +6 -6
- package/dist/{Voucher-INa3N_6V.js → Voucher-0JvEJ4Jp.js} +156 -133
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-4Quzmc7-.js → VoucherEditor.vue_vue_type_script_setup_true_lang-vBymX-zC.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CPCnBExY.js → ZodTextField.vue_vue_type_script_setup_true_lang-CaLyPkwJ.js} +2 -2
- package/dist/{app-Dlqr-LX4.js → app-bITyvnZM.js} +3155 -3011
- package/dist/app.js +1 -1
- package/dist/{business-DWrfGEe_.js → business-eD0ch267.js} +1 -1
- package/dist/campaign-BFg0mmEh.js +100 -0
- package/dist/{campaign-DtNt-BqN.js → campaign-Ba602jpT.js} +74 -96
- package/dist/{campaign.enum-B9-ZpK0C.js → campaign.enum-Dx-Zo68Q.js} +1 -1
- package/dist/{campaign.fn-COxaWmi_.js → campaign.fn-DF0snp1T.js} +62 -62
- package/dist/{collectible.enum-CF0VF-r7.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/collection.fn-CBfMIjXE.js +26 -0
- package/dist/{duplicateCampaign-8ciT68QF.js → duplicateCampaign-VP_ls1ud.js} +2 -2
- package/dist/{effect-CaSn-84h.js → effect-ddINAhuZ.js} +1 -1
- package/dist/{email-addresses-BiMQ8xIx.js → email-addresses-dgDgXrMO.js} +2 -2
- package/dist/{export-BwBNgCo5.js → export-Ds2K5BsU.js} +3 -3
- package/dist/{helper-CajV_0CM.js → helper-BuMn1yMd.js} +1 -1
- package/dist/{index-CjW6Mj-1.js → index-116bBmSO.js} +1 -1
- package/dist/{index-CQj9BQlQ.js → index-2WBZTpTO.js} +105 -123
- package/dist/{index-D1--K-QL.js → index-C7yjfEJp.js} +1 -1
- package/dist/index-C8cXXcLk.js +45 -0
- package/dist/{index-Bqcfsd4p.js → index-CDY4-3Oh.js} +8 -7
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-B6tm_U_M.js → index-CssCQw59.js} +18 -17
- package/dist/{index-DWBKko92.js → index-D-VV6TQr.js} +6 -6
- package/dist/{index-CQIciFrH.js → index-D5CuHi7m.js} +1 -1
- package/dist/{index-J8pSZ3WO.js → index-D7zaIqw5.js} +1 -1
- package/dist/{index-D1vhLY7l.js → index-DeBtRbNM.js} +1 -1
- package/dist/index-DtvL6ok7.js +146 -0
- package/dist/{index-D90p28Hr.js → index-Dvs0-jZv.js} +205 -229
- package/dist/{index-BP5rdioN.js → index-IC2b3X3d.js} +8027 -10766
- package/dist/{index-DBUTFa2h.js → index-KbYR_xHX.js} +2 -2
- package/dist/{index-B6ldAC8Y.js → index-ObbBk7ec.js} +1 -1
- package/dist/{index-B0ohh62P.js → index-uwROagPY.js} +230 -351
- package/dist/{index.esm2017-QlPanYiW.js → index.esm2017-skDxCJ1A.js} +1 -1
- package/dist/{loading-CqqkzWSm.js → loading-LvohTBxf.js} +1 -1
- package/dist/{lodash-DmbW2QhA.js → lodash-Di4dt__i.js} +1 -1
- package/dist/{membership-Dcwyu-rr.js → membership-7dDyl1PB.js} +3 -3
- package/dist/{money-DWr1gi--.js → money-DLO_8Rz5.js} +1 -1
- package/dist/{number-CHhHAd1q.js → number-DI2NyHxA.js} +1 -1
- package/dist/{objectid-BsiuHVH8.js → objectid-BR7nqOFr.js} +8 -8
- package/dist/{plugins-BxmMI8fo.js → plugins-DiV6DB6H.js} +3 -3
- package/dist/{reward-DX0FjsNT.js → reward-CEQA8YFb.js} +1 -1
- package/dist/{rule-DDLcqiHH.js → rule-CK-xQMWg.js} +3 -3
- package/dist/rule-builder-DW8QDYRH.js +126 -0
- package/dist/{template-C0lF82yv.js → template-ASiRYpll.js} +6 -6
- package/dist/timezone-Bt1TXRp3.js +20 -0
- package/dist/{trigger-CsJcg_RY.js → trigger-C1t6y-O_.js} +5 -5
- package/dist/{useMarketingMaterialActions-B0iV6YzB.js → useMarketingMaterialActions-CflpOyai.js} +3 -3
- package/dist/{usePagination-4EISkyGW.js → usePagination-BtKUQnLA.js} +1 -1
- package/dist/{user-DZuSeqRY.js → user-Dv4jKByC.js} +1 -1
- package/dist/{vue-i18n-BKcwYlp1.js → vue-i18n-xbxyJhj4.js} +436 -436
- package/dist/{xlsx-C-7dia55.js → xlsx-rKKsRfvM.js} +440 -440
- package/dist/{zod-DPxXVSRw.js → zod-DpLFpQ43.js} +1 -1
- package/package.json +1 -1
- package/dist/Game-KCxIpXEC.js +0 -330
- package/dist/LoyaltyDashboard-DPHWpaNJ.js +0 -1082
- package/dist/Mission-DMtpauNQ.js +0 -334
- package/dist/Point-CgdTrgXc.js +0 -262
- package/dist/Promotion-DDQodFDb.js +0 -397
- package/dist/campaign-un9Ji1KF.js +0 -219
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { z as w
|
|
2
|
-
import { F as xt, a as Jf } from "./collectible.enum-
|
|
3
|
-
import {
|
|
1
|
+
import { z as w } from "./index-C_H8jFYf.js";
|
|
2
|
+
import { F as xt, a as Jf } from "./collectible.enum-Liy2wH3s.js";
|
|
3
|
+
import { F as xn, m as qv } from "./index-IC2b3X3d.js";
|
|
4
|
+
import { c as Br, g as Jv } from "./app-bITyvnZM.js";
|
|
4
5
|
//! moment.js
|
|
5
6
|
//! version : 2.30.1
|
|
6
7
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
@@ -8152,7 +8153,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
8152
8153
|
}).call(Br);
|
|
8153
8154
|
})(cs, cs.exports);
|
|
8154
8155
|
var J1 = cs.exports;
|
|
8155
|
-
const
|
|
8156
|
+
const wD = /* @__PURE__ */ Jv(J1), X1 = Object.getOwnPropertyNames(hs.prototype).filter(
|
|
8156
8157
|
(t) => typeof hs.prototype[t] == "function"
|
|
8157
8158
|
);
|
|
8158
8159
|
w.enum(X1);
|
|
@@ -8627,14 +8628,14 @@ const Q1 = w.enum([
|
|
|
8627
8628
|
// triggers: ['GAME_COMPLETED'],
|
|
8628
8629
|
// },
|
|
8629
8630
|
];
|
|
8630
|
-
function
|
|
8631
|
+
function bD(t, n) {
|
|
8631
8632
|
return j1.filter(
|
|
8632
8633
|
(i) => i.triggers.findIndex(
|
|
8633
8634
|
(a) => a === t && (!n || i.property.startsWith(n))
|
|
8634
8635
|
) >= 0
|
|
8635
8636
|
).sort((i, a) => !i.premium && a.premium ? -1 : i.premium && !a.premium ? 1 : i.name.length < a.name.length ? -1 : i.name.length > a.name.length ? 1 : i.name.toLowerCase() < a.name.toLowerCase() ? -1 : i.name.toLowerCase() > a.name.toLowerCase() ? 1 : 0);
|
|
8636
8637
|
}
|
|
8637
|
-
const eD = w.enum(["timeframe"]),
|
|
8638
|
+
const eD = w.enum(["timeframe"]), ED = w.object({
|
|
8638
8639
|
type: w.literal(eD.enum.timeframe),
|
|
8639
8640
|
property: w.string().optional(),
|
|
8640
8641
|
start: w.date({ coerce: !0 }).nullish(),
|
|
@@ -8732,7 +8733,7 @@ const zo = w.enum(["FIXED", "PROPORTIONAL"]), nD = w.array(w.string()).nullish()
|
|
|
8732
8733
|
every: w.number(),
|
|
8733
8734
|
amount: w.number(),
|
|
8734
8735
|
property: nD
|
|
8735
|
-
}),
|
|
8736
|
+
}), DD = w.discriminatedUnion("type", [
|
|
8736
8737
|
rD,
|
|
8737
8738
|
iD
|
|
8738
8739
|
]).superRefine((t, n) => {
|
|
@@ -8772,7 +8773,7 @@ const zo = w.enum(["FIXED", "PROPORTIONAL"]), nD = w.array(w.string()).nullish()
|
|
|
8772
8773
|
message: 'Valid days cannot exceed 99999, toggle "expires" to off for unlimited',
|
|
8773
8774
|
path: []
|
|
8774
8775
|
});
|
|
8775
|
-
}),
|
|
8776
|
+
}), SD = ri.superRefine(
|
|
8776
8777
|
(t, n) => {
|
|
8777
8778
|
["validForDay", "validBefore"].every((a) => t[a] == null) && n.addIssue({
|
|
8778
8779
|
code: "custom",
|
|
@@ -8794,7 +8795,7 @@ const zo = w.enum(["FIXED", "PROPORTIONAL"]), nD = w.array(w.string()).nullish()
|
|
|
8794
8795
|
cooldown: w.number().min(0).nullish(),
|
|
8795
8796
|
maxUse: w.number().min(1).max(1e4).nullish(),
|
|
8796
8797
|
consumeRule: jh.nullish()
|
|
8797
|
-
}),
|
|
8798
|
+
}), TD = $o.extend({
|
|
8798
8799
|
validityOption: ri
|
|
8799
8800
|
}), sD = {
|
|
8800
8801
|
collectionName: "CollectibleConfigs",
|
|
@@ -8881,7 +8882,7 @@ const zo = w.enum(["FIXED", "PROPORTIONAL"]), nD = w.array(w.string()).nullish()
|
|
|
8881
8882
|
pD
|
|
8882
8883
|
]);
|
|
8883
8884
|
w.record(w.string(), w.record(w.string(), w.boolean())).optional();
|
|
8884
|
-
const yD = w.object({ _id: xn }).and(tc).describe(qv.describe(sD)),
|
|
8885
|
+
const yD = w.object({ _id: xn }).and(tc).describe(qv.describe(sD)), MD = w.object({ _id: xn.nullish(), business: xn.nullish() }).and(tc);
|
|
8885
8886
|
yD.and(
|
|
8886
8887
|
w.object({
|
|
8887
8888
|
updateCollection: w.boolean().optional()
|
|
@@ -8889,22 +8890,22 @@ yD.and(
|
|
|
8889
8890
|
);
|
|
8890
8891
|
export {
|
|
8891
8892
|
tD as C,
|
|
8892
|
-
|
|
8893
|
+
MD as F,
|
|
8893
8894
|
hs as R,
|
|
8894
|
-
|
|
8895
|
+
wD as _,
|
|
8895
8896
|
jh as a,
|
|
8896
8897
|
Ko as b,
|
|
8897
8898
|
$o as c,
|
|
8898
|
-
|
|
8899
|
-
|
|
8899
|
+
TD as d,
|
|
8900
|
+
DD as e,
|
|
8900
8901
|
ri as f,
|
|
8901
|
-
|
|
8902
|
+
SD as g,
|
|
8902
8903
|
yD as h,
|
|
8903
|
-
|
|
8904
|
+
ED as i,
|
|
8904
8905
|
it as j,
|
|
8905
8906
|
O as k,
|
|
8906
8907
|
J1 as l,
|
|
8907
8908
|
j1 as m,
|
|
8908
|
-
|
|
8909
|
+
bD as n,
|
|
8909
8910
|
Xh as o
|
|
8910
8911
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./index-
|
|
6
|
-
import { g as t, S as i, b as c } from "./index-
|
|
1
|
+
import { f as a } from "./index-uwROagPY.js";
|
|
2
|
+
import "./index-Dvs0-jZv.js";
|
|
3
|
+
import "./index-CssCQw59.js";
|
|
4
|
+
import "./index-IC2b3X3d.js";
|
|
5
|
+
import "./index-CDY4-3Oh.js";
|
|
6
|
+
import { g as t, S as i, b as c } from "./index-KbYR_xHX.js";
|
|
7
7
|
const o = (e = "") => {
|
|
8
8
|
const s = i.getBusinessId();
|
|
9
9
|
if (!s) throw new Error("Invalid business ID");
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { F as n } from "./index-C8cXXcLk.js";
|
|
2
|
+
import { g as e, S as o, b as c } from "./index-KbYR_xHX.js";
|
|
3
|
+
const t = () => {
|
|
4
|
+
const a = o.getBusinessId();
|
|
5
|
+
if (!a) throw new Error("Invalid business ID");
|
|
6
|
+
return c(`businesses/${a}/campaigns`, {
|
|
7
|
+
// url: 'http://localhost:3000/portal/',
|
|
8
|
+
});
|
|
9
|
+
}, p = {
|
|
10
|
+
async readBroadcastCreditSummary() {
|
|
11
|
+
return n.parse(
|
|
12
|
+
e(await t().get("broadcast/credit-summary"))
|
|
13
|
+
);
|
|
14
|
+
},
|
|
15
|
+
async readAllGrouped(a) {
|
|
16
|
+
const r = e(
|
|
17
|
+
await t().get("grouped", { params: a })
|
|
18
|
+
);
|
|
19
|
+
return {
|
|
20
|
+
meta: r.meta,
|
|
21
|
+
resources: r.resources
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
async readAll(a, r) {
|
|
25
|
+
const s = e(
|
|
26
|
+
await t().get("", {
|
|
27
|
+
params: { ...a, ...r }
|
|
28
|
+
})
|
|
29
|
+
);
|
|
30
|
+
return {
|
|
31
|
+
meta: s.meta,
|
|
32
|
+
resources: s.resources
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
async readById(a) {
|
|
36
|
+
return e(await t().get(`/${a}`));
|
|
37
|
+
},
|
|
38
|
+
async readAnalyticsOverview(a, r) {
|
|
39
|
+
return e(
|
|
40
|
+
await t().post(
|
|
41
|
+
`/${a}/analytics/overview`,
|
|
42
|
+
r
|
|
43
|
+
)
|
|
44
|
+
);
|
|
45
|
+
},
|
|
46
|
+
async readAnalyticsTrend(a, r) {
|
|
47
|
+
return e(
|
|
48
|
+
await t().post(
|
|
49
|
+
`/${a}/analytics/trend`,
|
|
50
|
+
r
|
|
51
|
+
)
|
|
52
|
+
);
|
|
53
|
+
},
|
|
54
|
+
async create(a) {
|
|
55
|
+
return e(await t().post("", a));
|
|
56
|
+
},
|
|
57
|
+
async update(a, r) {
|
|
58
|
+
return e(await t().put(a, r));
|
|
59
|
+
},
|
|
60
|
+
async delete(a) {
|
|
61
|
+
return e(await t().delete(a));
|
|
62
|
+
},
|
|
63
|
+
async readCollectionsByCampaignId(a, r) {
|
|
64
|
+
const s = e(
|
|
65
|
+
await t().get(`/${a}/collections`, {
|
|
66
|
+
params: r
|
|
67
|
+
})
|
|
68
|
+
);
|
|
69
|
+
return {
|
|
70
|
+
meta: s.meta,
|
|
71
|
+
resources: s.resources
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
async readTransactions(a) {
|
|
75
|
+
return e(
|
|
76
|
+
await t().get(
|
|
77
|
+
`/${a}/collections/transactions`
|
|
78
|
+
)
|
|
79
|
+
);
|
|
80
|
+
},
|
|
81
|
+
async createCollectionByCampaignId(a, r) {
|
|
82
|
+
return e(
|
|
83
|
+
await t().post(`/${a}/collections`, r)
|
|
84
|
+
);
|
|
85
|
+
},
|
|
86
|
+
async readGroups() {
|
|
87
|
+
return e(await t().get("/groups")) ?? [];
|
|
88
|
+
},
|
|
89
|
+
async readStats(a) {
|
|
90
|
+
return e(
|
|
91
|
+
await t().get("/stats", { params: a })
|
|
92
|
+
);
|
|
93
|
+
},
|
|
94
|
+
async createGroup(a) {
|
|
95
|
+
return e(await t().post("/groups", a));
|
|
96
|
+
},
|
|
97
|
+
async updateGroup(a, r) {
|
|
98
|
+
return e(
|
|
99
|
+
await t().put(`/groups/${a}`, r)
|
|
100
|
+
);
|
|
101
|
+
},
|
|
102
|
+
async deleteGroup(a) {
|
|
103
|
+
return e(await t().delete(`/groups/${a}`));
|
|
104
|
+
},
|
|
105
|
+
async sendCollection(a, r) {
|
|
106
|
+
return e(
|
|
107
|
+
await t().post(
|
|
108
|
+
`/${a}/collections/send`,
|
|
109
|
+
r
|
|
110
|
+
)
|
|
111
|
+
);
|
|
112
|
+
},
|
|
113
|
+
async sendStamp(a, r) {
|
|
114
|
+
return e(
|
|
115
|
+
await t().post(
|
|
116
|
+
`/${a}/collections/send-stamp`,
|
|
117
|
+
r
|
|
118
|
+
)
|
|
119
|
+
);
|
|
120
|
+
},
|
|
121
|
+
async syncAllPromotion() {
|
|
122
|
+
return e(await t().post("/promotion/sync"));
|
|
123
|
+
},
|
|
124
|
+
async readAllDeleted(a, r) {
|
|
125
|
+
const s = e(
|
|
126
|
+
await t().get("/bin", {
|
|
127
|
+
params: { ...a, ...r }
|
|
128
|
+
})
|
|
129
|
+
);
|
|
130
|
+
return {
|
|
131
|
+
meta: s.meta,
|
|
132
|
+
resources: s.resources
|
|
133
|
+
};
|
|
134
|
+
},
|
|
135
|
+
async restore(a) {
|
|
136
|
+
return e(
|
|
137
|
+
await t().post(`/${a}/restore`)
|
|
138
|
+
);
|
|
139
|
+
},
|
|
140
|
+
async getPromotionQueue() {
|
|
141
|
+
return e(await t().get("/promotion/queue"));
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
export {
|
|
145
|
+
p as c
|
|
146
|
+
};
|