@timardex/cluemart-server-shared 1.1.28 → 1.1.30
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/{chunk-SKEMDS6Z.mjs → chunk-5A746NK4.mjs} +57 -20
- package/dist/chunk-5A746NK4.mjs.map +1 -0
- package/dist/index.cjs +86 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +86 -39
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +56 -19
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +86 -39
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +31 -21
- package/dist/service/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-SKEMDS6Z.mjs.map +0 -1
package/dist/service/index.mjs
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
VendorModel,
|
|
24
24
|
dateFormat,
|
|
25
25
|
timeFormat
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-5A746NK4.mjs";
|
|
27
27
|
import "../chunk-6PNG5BI5.mjs";
|
|
28
28
|
|
|
29
29
|
// src/service/promoCode/constants.ts
|
|
@@ -41,7 +41,7 @@ async function activeAffiliateCodeExists(affiliateCode) {
|
|
|
41
41
|
return existing !== null;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
44
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-HAPY4NHC.mjs
|
|
45
45
|
import dayjs from "dayjs";
|
|
46
46
|
import customParseFormat from "dayjs/plugin/customParseFormat.js";
|
|
47
47
|
import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js";
|
|
@@ -96,25 +96,20 @@ var SHARE_RESOURCE_LABEL = {
|
|
|
96
96
|
school: "School"
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
99
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-CAI7BTMN.mjs
|
|
100
100
|
var PROMO_CODE_PREFIX = "CM-";
|
|
101
101
|
var OBJECT_ID_PATH_SEGMENT = "[a-f0-9]{24}";
|
|
102
102
|
var OBJECT_ID_PATH_SEGMENT_END = `${OBJECT_ID_PATH_SEGMENT}$`;
|
|
103
103
|
var gameScreenIdentifierList = [
|
|
104
|
-
{
|
|
105
|
-
clue: "Where your actions turn into a timeline.",
|
|
106
|
-
id: "activities",
|
|
107
|
-
match: "/profile/account/favourites"
|
|
108
|
-
},
|
|
109
104
|
{
|
|
110
105
|
clue: "Where conversations happen without speaking.",
|
|
111
106
|
id: "chat",
|
|
112
107
|
match: "/chat"
|
|
113
108
|
},
|
|
114
109
|
{
|
|
115
|
-
clue: "
|
|
116
|
-
id: "
|
|
117
|
-
match: "/
|
|
110
|
+
clue: "Where you can find your loyalties.",
|
|
111
|
+
id: "coupons",
|
|
112
|
+
match: "/coupons"
|
|
118
113
|
},
|
|
119
114
|
{
|
|
120
115
|
clue: "A single moment worth showing up for.",
|
|
@@ -149,18 +144,13 @@ var gameScreenIdentifierList = [
|
|
|
149
144
|
{
|
|
150
145
|
clue: "Your starting point for everything.",
|
|
151
146
|
id: "home",
|
|
152
|
-
match: "/"
|
|
147
|
+
match: "/home"
|
|
153
148
|
},
|
|
154
149
|
{
|
|
155
150
|
clue: "Where the app whispers what you shouldn\u2019t miss.",
|
|
156
151
|
id: "notifications",
|
|
157
152
|
match: "/notifications"
|
|
158
153
|
},
|
|
159
|
-
{
|
|
160
|
-
clue: "Where you fine-tune your experience.",
|
|
161
|
-
id: "options",
|
|
162
|
-
match: "/options"
|
|
163
|
-
},
|
|
164
154
|
{
|
|
165
155
|
clue: "An organisation or creator supporting the community.",
|
|
166
156
|
id: "single-partner",
|
|
@@ -172,15 +162,30 @@ var gameScreenIdentifierList = [
|
|
|
172
162
|
match: "/partners"
|
|
173
163
|
},
|
|
174
164
|
{
|
|
175
|
-
clue: "
|
|
176
|
-
id: "
|
|
177
|
-
match:
|
|
165
|
+
clue: "Where your actions turn into a timeline.",
|
|
166
|
+
id: "activities",
|
|
167
|
+
match: "/profile/account/favourites"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
clue: "The place to redefine who you are.",
|
|
171
|
+
id: "edit-profile",
|
|
172
|
+
match: "/profile/account"
|
|
178
173
|
},
|
|
179
174
|
{
|
|
180
175
|
clue: "Your identity, on display.",
|
|
181
176
|
id: "profile",
|
|
182
177
|
match: "/profile"
|
|
183
178
|
},
|
|
179
|
+
{
|
|
180
|
+
clue: "Where you can redeem your rewards.",
|
|
181
|
+
id: "rewards",
|
|
182
|
+
match: "/profile/account/rewards"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
clue: "A single published post in full view.",
|
|
186
|
+
id: "single-visitor-post",
|
|
187
|
+
match: new RegExp(`^/visitors/post/${OBJECT_ID_PATH_SEGMENT_END}`)
|
|
188
|
+
},
|
|
184
189
|
{
|
|
185
190
|
clue: "One stallholder offering something valuable.",
|
|
186
191
|
id: "single-vendor",
|
|
@@ -195,10 +200,15 @@ var gameScreenIdentifierList = [
|
|
|
195
200
|
clue: "Where you browse articles and posts from around the platform.",
|
|
196
201
|
id: "visitors",
|
|
197
202
|
match: "/visitors"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
clue: "Where you fine-tune your experience.",
|
|
206
|
+
id: "options",
|
|
207
|
+
match: "/options"
|
|
198
208
|
}
|
|
199
209
|
];
|
|
200
210
|
|
|
201
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
211
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-LYL3X7HT.mjs
|
|
202
212
|
import dayjs2 from "dayjs";
|
|
203
213
|
var statusOptions = [
|
|
204
214
|
...Object.values(EnumInviteStatus2).map((status) => ({
|