@timardex/cluemart-shared 1.6.112 → 1.6.130
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/affiliate-Bqqlffw8.d.mts +36 -0
- package/dist/affiliate-Btlp5XUp.d.ts +36 -0
- package/dist/affiliateAdapters-BW3BY7c5.d.mts +118 -0
- package/dist/affiliateAdapters-C51ISmuA.d.ts +118 -0
- package/dist/apollo/index.d.mts +3 -3
- package/dist/apollo/index.d.ts +3 -3
- package/dist/auth/index.cjs +2546 -951
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +28 -30
- package/dist/auth/index.d.ts +28 -30
- package/dist/auth/index.mjs +24 -25
- package/dist/auth/index.mjs.map +1 -1
- package/dist/auth-BOmAO53v.d.ts +169 -0
- package/dist/auth-CsITA95p.d.mts +169 -0
- package/dist/{chunk-VPANTTZI.mjs → chunk-DATBGC2K.mjs} +108 -23
- package/dist/chunk-DATBGC2K.mjs.map +1 -0
- package/dist/chunk-DDHECBJR.mjs +726 -0
- package/dist/chunk-DDHECBJR.mjs.map +1 -0
- package/dist/chunk-INQCDU24.mjs +139 -0
- package/dist/chunk-INQCDU24.mjs.map +1 -0
- package/dist/{chunk-SD42WIMV.mjs → chunk-NWWKI4PJ.mjs} +5 -5
- package/dist/chunk-NWWKI4PJ.mjs.map +1 -0
- package/dist/{chunk-LBEJECG3.mjs → chunk-OHHJ3KJJ.mjs} +71 -64
- package/dist/chunk-OHHJ3KJJ.mjs.map +1 -0
- package/dist/chunk-TOEFAEF2.mjs +69 -0
- package/dist/chunk-TOEFAEF2.mjs.map +1 -0
- package/dist/chunk-UKW7NZEQ.mjs +2813 -0
- package/dist/chunk-UKW7NZEQ.mjs.map +1 -0
- package/dist/dailyClue-C6WXY73z.d.mts +105 -0
- package/dist/dailyClue-C6WXY73z.d.ts +105 -0
- package/dist/enums/index.cjs +2 -229
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +5 -170
- package/dist/enums/index.d.ts +5 -170
- package/dist/enums/index.mjs +1 -41
- package/dist/event-C9K7CSg4.d.ts +53 -0
- package/dist/event-W0NhL5Cd.d.mts +53 -0
- package/dist/formFields/index.cjs +284 -112
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +4 -2
- package/dist/formFields/index.d.ts +4 -2
- package/dist/formFields/index.mjs +919 -50
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/global-BbSFfYdd.d.ts +181 -0
- package/dist/global-C6v9tRji.d.mts +181 -0
- package/dist/graphql/index.cjs +2860 -2292
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +422 -469
- package/dist/graphql/index.d.ts +422 -469
- package/dist/graphql/index.mjs +2547 -160
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/graphql-CDOfA79A.d.ts +1253 -0
- package/dist/graphql-CcvzTs9k.d.mts +1253 -0
- package/dist/hooks/index.cjs +511 -3846
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +10 -9
- package/dist/hooks/index.d.ts +10 -9
- package/dist/hooks/index.mjs +54 -72
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/images/index.mjs +86 -21
- package/dist/images/index.mjs.map +1 -1
- package/dist/index.cjs +4414 -3168
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2439 -1579
- package/dist/index.d.ts +2439 -1579
- package/dist/index.mjs +4350 -3121
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +3 -2
- package/dist/map/index.d.ts +3 -2
- package/dist/resourceActivities-CS8YRIIL.d.mts +89 -0
- package/dist/resourceActivities-DOdNPkhW.d.ts +89 -0
- package/dist/sharing/index.cjs +23 -19
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +16 -3
- package/dist/sharing/index.d.ts +16 -3
- package/dist/sharing/index.mjs +183 -29
- package/dist/sharing/index.mjs.map +1 -1
- package/dist/subscription-Cj_qBA7u.d.mts +20 -0
- package/dist/subscription-OiJ50uJb.d.ts +20 -0
- package/dist/theme/index.mjs +41 -5
- package/dist/theme/index.mjs.map +1 -1
- package/dist/types/index.cjs +868 -123
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +234 -15
- package/dist/types/index.d.ts +234 -15
- package/dist/types/index.mjs +61 -31
- package/dist/utils/index.cjs +292 -117
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +25 -23
- package/dist/utils/index.d.ts +25 -23
- package/dist/utils/index.mjs +6 -5
- package/dist/vendor-DmMi2qmx.d.mts +73 -0
- package/dist/vendor-M9hVZlni.d.ts +73 -0
- package/package.json +10 -3
- package/dist/ad-BUYzE6zx.d.ts +0 -181
- package/dist/ad-BhLoEul3.d.mts +0 -181
- package/dist/affiliate-BbtjeUP4.d.mts +0 -73
- package/dist/affiliate-C51nzKsw.d.ts +0 -73
- package/dist/chunk-32MKHJTX.mjs +0 -1207
- package/dist/chunk-32MKHJTX.mjs.map +0 -1
- package/dist/chunk-AYO3E4DM.mjs +0 -224
- package/dist/chunk-AYO3E4DM.mjs.map +0 -1
- package/dist/chunk-BIJ5NDXW.mjs +0 -962
- package/dist/chunk-BIJ5NDXW.mjs.map +0 -1
- package/dist/chunk-DQ7ZHIXW.mjs +0 -26
- package/dist/chunk-DQ7ZHIXW.mjs.map +0 -1
- package/dist/chunk-ILILH7E2.mjs +0 -219
- package/dist/chunk-ILILH7E2.mjs.map +0 -1
- package/dist/chunk-LBEJECG3.mjs.map +0 -1
- package/dist/chunk-NPFJ2CN2.mjs +0 -109
- package/dist/chunk-NPFJ2CN2.mjs.map +0 -1
- package/dist/chunk-R6PCFOYO.mjs +0 -3650
- package/dist/chunk-R6PCFOYO.mjs.map +0 -1
- package/dist/chunk-SD42WIMV.mjs.map +0 -1
- package/dist/chunk-VA5YN2K3.mjs +0 -48
- package/dist/chunk-VA5YN2K3.mjs.map +0 -1
- package/dist/chunk-VPANTTZI.mjs.map +0 -1
- package/dist/chunk-X3OLM35T.mjs +0 -278
- package/dist/chunk-X3OLM35T.mjs.map +0 -1
- package/dist/contactUs--NoohZBu.d.ts +0 -11
- package/dist/contactUs-CBWzefUS.d.mts +0 -11
- package/dist/global-CUYYxpy2.d.ts +0 -699
- package/dist/global-DePDtOFt.d.mts +0 -699
- package/dist/resourceActivities-CMUcn2P7.d.ts +0 -130
- package/dist/resourceActivities-CwbJFGIp.d.mts +0 -130
- package/dist/subscription-BU8GvH2K.d.ts +0 -12
- package/dist/subscription-bmAdrnfi.d.mts +0 -12
- package/dist/user-D47MLFyH.d.ts +0 -134
- package/dist/user-DE8edl3u.d.mts +0 -134
package/dist/hooks/index.cjs
CHANGED
|
@@ -39,7 +39,7 @@ __export(hooks_exports, {
|
|
|
39
39
|
defaultVendorFormValues: () => defaultVendorFormValues,
|
|
40
40
|
defaultVendorInfoFormValues: () => defaultVendorInfoFormValues,
|
|
41
41
|
globalDefaultValues: () => globalDefaultValues,
|
|
42
|
-
mapAffiliateToFormData: () =>
|
|
42
|
+
mapAffiliateToFormData: () => affiliateToFormData,
|
|
43
43
|
mapBaseResourceTypeToFormData: () => mapBaseResourceTypeToFormData,
|
|
44
44
|
useAdForm: () => useAdForm,
|
|
45
45
|
useAffiliateForm: () => useAffiliateForm,
|
|
@@ -174,98 +174,125 @@ var import_customParseFormat2 = __toESM(require("dayjs/plugin/customParseFormat.
|
|
|
174
174
|
var import_isSameOrAfter2 = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
|
|
175
175
|
var yup = __toESM(require("yup"));
|
|
176
176
|
|
|
177
|
-
// src/
|
|
178
|
-
var
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
return
|
|
195
|
-
})(
|
|
196
|
-
var
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
return
|
|
245
|
-
})(
|
|
246
|
-
var
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
177
|
+
// src/generated/graphql.ts
|
|
178
|
+
var AdShowOnEnum = /* @__PURE__ */ ((AdShowOnEnum2) => {
|
|
179
|
+
AdShowOnEnum2["EventsPage"] = "Events_page";
|
|
180
|
+
AdShowOnEnum2["FrontPage"] = "Front_page";
|
|
181
|
+
AdShowOnEnum2["PartnersPage"] = "Partners_page";
|
|
182
|
+
AdShowOnEnum2["VendorsPage"] = "Vendors_page";
|
|
183
|
+
return AdShowOnEnum2;
|
|
184
|
+
})(AdShowOnEnum || {});
|
|
185
|
+
var AdStatusTypeEnum = /* @__PURE__ */ ((AdStatusTypeEnum2) => {
|
|
186
|
+
AdStatusTypeEnum2["Active"] = "Active";
|
|
187
|
+
AdStatusTypeEnum2["Expired"] = "Expired";
|
|
188
|
+
AdStatusTypeEnum2["Paused"] = "Paused";
|
|
189
|
+
return AdStatusTypeEnum2;
|
|
190
|
+
})(AdStatusTypeEnum || {});
|
|
191
|
+
var AdStyleEnum = /* @__PURE__ */ ((AdStyleEnum3) => {
|
|
192
|
+
AdStyleEnum3["Bloom"] = "Bloom";
|
|
193
|
+
AdStyleEnum3["Rise"] = "Rise";
|
|
194
|
+
return AdStyleEnum3;
|
|
195
|
+
})(AdStyleEnum || {});
|
|
196
|
+
var AdTypeEnum = /* @__PURE__ */ ((AdTypeEnum3) => {
|
|
197
|
+
AdTypeEnum3["Free"] = "Free";
|
|
198
|
+
AdTypeEnum3["Sponsored"] = "Sponsored";
|
|
199
|
+
return AdTypeEnum3;
|
|
200
|
+
})(AdTypeEnum || {});
|
|
201
|
+
var AffiliateParticipantTypeEnum = /* @__PURE__ */ ((AffiliateParticipantTypeEnum3) => {
|
|
202
|
+
AffiliateParticipantTypeEnum3["Company"] = "COMPANY";
|
|
203
|
+
AffiliateParticipantTypeEnum3["Individual"] = "INDIVIDUAL";
|
|
204
|
+
AffiliateParticipantTypeEnum3["SoleTrader"] = "SOLE_TRADER";
|
|
205
|
+
return AffiliateParticipantTypeEnum3;
|
|
206
|
+
})(AffiliateParticipantTypeEnum || {});
|
|
207
|
+
var EventDateStatusEnumType = /* @__PURE__ */ ((EventDateStatusEnumType2) => {
|
|
208
|
+
EventDateStatusEnumType2["Canceled"] = "Canceled";
|
|
209
|
+
EventDateStatusEnumType2["Ended"] = "Ended";
|
|
210
|
+
EventDateStatusEnumType2["Invalid"] = "Invalid";
|
|
211
|
+
EventDateStatusEnumType2["NextWeek"] = "Next_Week";
|
|
212
|
+
EventDateStatusEnumType2["Rescheduled"] = "Rescheduled";
|
|
213
|
+
EventDateStatusEnumType2["Started"] = "Started";
|
|
214
|
+
EventDateStatusEnumType2["StartingSoon"] = "Starting_Soon";
|
|
215
|
+
EventDateStatusEnumType2["ThisWeek"] = "This_Week";
|
|
216
|
+
EventDateStatusEnumType2["Today"] = "Today";
|
|
217
|
+
EventDateStatusEnumType2["Tomorrow"] = "Tomorrow";
|
|
218
|
+
EventDateStatusEnumType2["Upcoming"] = "Upcoming";
|
|
219
|
+
return EventDateStatusEnumType2;
|
|
220
|
+
})(EventDateStatusEnumType || {});
|
|
221
|
+
var EventEnumType = /* @__PURE__ */ ((EventEnumType3) => {
|
|
222
|
+
EventEnumType3["Expo"] = "Expo";
|
|
223
|
+
EventEnumType3["Fair"] = "Fair";
|
|
224
|
+
EventEnumType3["Festival"] = "Festival";
|
|
225
|
+
EventEnumType3["Market"] = "Market";
|
|
226
|
+
return EventEnumType3;
|
|
227
|
+
})(EventEnumType || {});
|
|
228
|
+
var FoodFlavorEnumType = /* @__PURE__ */ ((FoodFlavorEnumType3) => {
|
|
229
|
+
FoodFlavorEnumType3["NotApplicable"] = "Not_Applicable";
|
|
230
|
+
FoodFlavorEnumType3["Salty"] = "Salty";
|
|
231
|
+
FoodFlavorEnumType3["Savoury"] = "Savoury";
|
|
232
|
+
FoodFlavorEnumType3["Spicy"] = "Spicy";
|
|
233
|
+
FoodFlavorEnumType3["Sweet"] = "Sweet";
|
|
234
|
+
return FoodFlavorEnumType3;
|
|
235
|
+
})(FoodFlavorEnumType || {});
|
|
236
|
+
var InviteEnumType = /* @__PURE__ */ ((InviteEnumType2) => {
|
|
237
|
+
InviteEnumType2["Accepted"] = "Accepted";
|
|
238
|
+
InviteEnumType2["Completed"] = "Completed";
|
|
239
|
+
InviteEnumType2["Expired"] = "Expired";
|
|
240
|
+
InviteEnumType2["NoStatus"] = "No_Status";
|
|
241
|
+
InviteEnumType2["Pending"] = "Pending";
|
|
242
|
+
InviteEnumType2["Rejected"] = "Rejected";
|
|
243
|
+
InviteEnumType2["Unavailable"] = "Unavailable";
|
|
244
|
+
return InviteEnumType2;
|
|
245
|
+
})(InviteEnumType || {});
|
|
246
|
+
var PartnerEnumType = /* @__PURE__ */ ((PartnerEnumType3) => {
|
|
247
|
+
PartnerEnumType3["CharityPartner"] = "Charity_Partner";
|
|
248
|
+
PartnerEnumType3["MediaPartner"] = "Media_Partner";
|
|
249
|
+
PartnerEnumType3["SupportingPartner"] = "Supporting_Partner";
|
|
250
|
+
return PartnerEnumType3;
|
|
251
|
+
})(PartnerEnumType || {});
|
|
252
|
+
var PaymentMethodEnumType = /* @__PURE__ */ ((PaymentMethodEnumType2) => {
|
|
253
|
+
PaymentMethodEnumType2["BankTransfer"] = "bank_transfer";
|
|
254
|
+
PaymentMethodEnumType2["Cash"] = "cash";
|
|
255
|
+
PaymentMethodEnumType2["Eftpos"] = "eftpos";
|
|
256
|
+
PaymentMethodEnumType2["Paypal"] = "paypal";
|
|
257
|
+
PaymentMethodEnumType2["Stripe"] = "stripe";
|
|
258
|
+
return PaymentMethodEnumType2;
|
|
259
|
+
})(PaymentMethodEnumType || {});
|
|
260
|
+
var PostContentEnum = /* @__PURE__ */ ((PostContentEnum2) => {
|
|
261
|
+
PostContentEnum2["Game"] = "game";
|
|
262
|
+
PostContentEnum2["Image"] = "image";
|
|
263
|
+
PostContentEnum2["List"] = "list";
|
|
264
|
+
PostContentEnum2["Textarea"] = "textarea";
|
|
265
|
+
PostContentEnum2["Video"] = "video";
|
|
266
|
+
return PostContentEnum2;
|
|
267
|
+
})(PostContentEnum || {});
|
|
268
|
+
var PostTypeEnum = /* @__PURE__ */ ((PostTypeEnum2) => {
|
|
269
|
+
PostTypeEnum2["ClueBites"] = "clue_bites";
|
|
270
|
+
PostTypeEnum2["MarketFaces"] = "market_faces";
|
|
271
|
+
PostTypeEnum2["PlayAndWin"] = "play_and_win";
|
|
272
|
+
return PostTypeEnum2;
|
|
273
|
+
})(PostTypeEnum || {});
|
|
274
|
+
var ResourceTypeEnum = /* @__PURE__ */ ((ResourceTypeEnum4) => {
|
|
275
|
+
ResourceTypeEnum4["Affiliate"] = "affiliate";
|
|
276
|
+
ResourceTypeEnum4["Event"] = "event";
|
|
277
|
+
ResourceTypeEnum4["Partner"] = "partner";
|
|
278
|
+
ResourceTypeEnum4["School"] = "school";
|
|
279
|
+
ResourceTypeEnum4["Vendor"] = "vendor";
|
|
280
|
+
return ResourceTypeEnum4;
|
|
281
|
+
})(ResourceTypeEnum || {});
|
|
282
|
+
var SocialMediaEnumType = /* @__PURE__ */ ((SocialMediaEnumType2) => {
|
|
283
|
+
SocialMediaEnumType2["Facebook"] = "facebook";
|
|
284
|
+
SocialMediaEnumType2["Instagram"] = "instagram";
|
|
285
|
+
SocialMediaEnumType2["Tiktok"] = "tiktok";
|
|
286
|
+
SocialMediaEnumType2["Twitter"] = "twitter";
|
|
287
|
+
SocialMediaEnumType2["Website"] = "website";
|
|
288
|
+
SocialMediaEnumType2["Youtube"] = "youtube";
|
|
289
|
+
return SocialMediaEnumType2;
|
|
290
|
+
})(SocialMediaEnumType || {});
|
|
291
|
+
var VendorEnumType = /* @__PURE__ */ ((VendorEnumType2) => {
|
|
292
|
+
VendorEnumType2["Shop"] = "Shop";
|
|
293
|
+
VendorEnumType2["Stallholder"] = "Stallholder";
|
|
294
|
+
return VendorEnumType2;
|
|
295
|
+
})(VendorEnumType || {});
|
|
269
296
|
|
|
270
297
|
// src/types/game/dailyClue.ts
|
|
271
298
|
var OBJECT_ID_PATH_SEGMENT = "[a-f0-9]{24}";
|
|
@@ -389,9 +416,9 @@ import_dayjs.default.extend(import_utc.default);
|
|
|
389
416
|
import_dayjs.default.extend(import_timezone.default);
|
|
390
417
|
import_dayjs.default.extend(import_isSameOrAfter.default);
|
|
391
418
|
var futureTimePeriods = mapArrayToOptions(
|
|
392
|
-
Object.values(
|
|
419
|
+
Object.values(EventDateStatusEnumType)
|
|
393
420
|
).filter(
|
|
394
|
-
(period) => period.value !== "Starting_Soon" /*
|
|
421
|
+
(period) => period.value !== "Starting_Soon" /* StartingSoon */ && period.value !== "Canceled" /* Canceled */ && period.value !== "Rescheduled" /* Rescheduled */ && period.value !== "Started" /* Started */ && period.value !== "Ended" /* Ended */ && period.value !== "Invalid" /* Invalid */
|
|
395
422
|
).map((period) => ({
|
|
396
423
|
label: period.value.replaceAll("_", " "),
|
|
397
424
|
value: period.value
|
|
@@ -419,18 +446,6 @@ var SHARE_PRICE_RANGE_PREFIX = `${SHARE_DOLLAR_ICON} Price range:`;
|
|
|
419
446
|
var SHARE_CLOCK_ICON = "\u23F0";
|
|
420
447
|
var SHARE_APPLICATION_DEADLINE_PREFIX = `${SHARE_CLOCK_ICON} Application deadline:`;
|
|
421
448
|
var DEFAULT_SHARE_OG_IMAGE = `${SHARE_SITE_URL}/assets/logo.webp`;
|
|
422
|
-
var RESOURCE_SHARE_TYPES = [
|
|
423
|
-
"market",
|
|
424
|
-
"stallholder",
|
|
425
|
-
"partner",
|
|
426
|
-
"affiliate",
|
|
427
|
-
"school"
|
|
428
|
-
];
|
|
429
|
-
var POST_SHARE_RESOURCE_TYPES = [
|
|
430
|
-
"market_faces",
|
|
431
|
-
"clue_bites",
|
|
432
|
-
"play_and_win"
|
|
433
|
-
];
|
|
434
449
|
var SHARE_RESOURCE_LABEL = {
|
|
435
450
|
[RELATION_SHARE_APPLICATION]: "Application",
|
|
436
451
|
[RELATION_SHARE_INVITATION]: "Invitation",
|
|
@@ -447,71 +462,268 @@ var SHARE_RESOURCE_LABEL = {
|
|
|
447
462
|
// src/types/global.ts
|
|
448
463
|
var PROMO_CODE_PREFIX = "CM-";
|
|
449
464
|
|
|
450
|
-
// src/types/
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
465
|
+
// src/types/eventAdapters.ts
|
|
466
|
+
function isSocialMediaName(value) {
|
|
467
|
+
return Object.values(SocialMediaEnumType).includes(value);
|
|
468
|
+
}
|
|
469
|
+
function toFormSocialMedia(socialMedia) {
|
|
470
|
+
if (socialMedia == null) {
|
|
471
|
+
return null;
|
|
472
|
+
}
|
|
473
|
+
return socialMedia.map((item) => ({
|
|
474
|
+
link: item.link,
|
|
475
|
+
name: isSocialMediaName(item.name) ? item.name : void 0
|
|
476
|
+
}));
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
// src/auth/permissions/permissions.ts
|
|
480
|
+
var PERMISSIONS = [
|
|
481
|
+
"*",
|
|
482
|
+
// Dashboards
|
|
483
|
+
"dashboard.admin",
|
|
484
|
+
"dashboard.affiliate",
|
|
485
|
+
"dashboard.customer",
|
|
486
|
+
"dashboard.event",
|
|
487
|
+
"dashboard.partner",
|
|
488
|
+
"dashboard.school",
|
|
489
|
+
"dashboard.vendor",
|
|
490
|
+
// Admin: users
|
|
491
|
+
"users.delete",
|
|
492
|
+
"users.read",
|
|
493
|
+
"users.update",
|
|
494
|
+
// Admin: events
|
|
495
|
+
"events.create",
|
|
496
|
+
"events.delete",
|
|
497
|
+
"events.read",
|
|
498
|
+
"events.update",
|
|
499
|
+
// Admin: vendors
|
|
500
|
+
"vendors.create",
|
|
501
|
+
"vendors.delete",
|
|
502
|
+
"vendors.read",
|
|
503
|
+
"vendors.update",
|
|
504
|
+
// Admin: partners
|
|
505
|
+
"partners.create",
|
|
506
|
+
"partners.delete",
|
|
507
|
+
"partners.read",
|
|
508
|
+
"partners.update",
|
|
509
|
+
// Admin: schools
|
|
510
|
+
"schools.create",
|
|
511
|
+
"schools.delete",
|
|
512
|
+
"schools.read",
|
|
513
|
+
"schools.update",
|
|
514
|
+
// Admin: affiliates
|
|
515
|
+
"affiliates.create",
|
|
516
|
+
"affiliates.delete",
|
|
517
|
+
"affiliates.read",
|
|
518
|
+
"affiliates.update",
|
|
519
|
+
// Admin: ads / posts / settings
|
|
520
|
+
"ads.create",
|
|
521
|
+
"ads.delete",
|
|
522
|
+
"ads.read",
|
|
523
|
+
"ads.update",
|
|
524
|
+
"posts.create",
|
|
525
|
+
"posts.delete",
|
|
526
|
+
"posts.read",
|
|
527
|
+
"posts.update",
|
|
528
|
+
"settings.read",
|
|
529
|
+
"settings.update",
|
|
530
|
+
// Product: own-resource management
|
|
531
|
+
"affiliates.manage_own",
|
|
532
|
+
"events.manage_own",
|
|
533
|
+
"partners.manage_own",
|
|
534
|
+
"schools.manage_own",
|
|
535
|
+
"vendors.manage_own"
|
|
536
|
+
];
|
|
537
|
+
|
|
538
|
+
// src/auth/permissions/rolePermissions.ts
|
|
539
|
+
var ADMIN_PERMISSIONS = [
|
|
540
|
+
"dashboard.admin",
|
|
541
|
+
"events.read",
|
|
542
|
+
"events.create",
|
|
543
|
+
"events.update",
|
|
544
|
+
"events.delete",
|
|
545
|
+
"vendors.read",
|
|
546
|
+
"vendors.create",
|
|
547
|
+
"vendors.update",
|
|
548
|
+
"vendors.delete",
|
|
549
|
+
"partners.read",
|
|
550
|
+
"partners.create",
|
|
551
|
+
"partners.update",
|
|
552
|
+
"partners.delete",
|
|
553
|
+
"schools.read",
|
|
554
|
+
"schools.create",
|
|
555
|
+
"schools.update",
|
|
556
|
+
"schools.delete",
|
|
557
|
+
"affiliates.read",
|
|
558
|
+
"affiliates.create",
|
|
559
|
+
"affiliates.update",
|
|
560
|
+
"affiliates.delete",
|
|
561
|
+
"ads.read",
|
|
562
|
+
"ads.create",
|
|
563
|
+
"ads.update",
|
|
564
|
+
"ads.delete",
|
|
565
|
+
"posts.read",
|
|
566
|
+
"posts.create",
|
|
567
|
+
"posts.update",
|
|
568
|
+
"posts.delete"
|
|
569
|
+
];
|
|
570
|
+
var ROLE_PERMISSIONS = {
|
|
571
|
+
["super_admin" /* SuperAdmin */]: ["*"],
|
|
572
|
+
["admin" /* Admin */]: ADMIN_PERMISSIONS,
|
|
573
|
+
["customer" /* Customer */]: ["dashboard.customer"],
|
|
574
|
+
["event" /* Event */]: ["dashboard.event", "events.manage_own"],
|
|
575
|
+
["vendor" /* Vendor */]: ["dashboard.vendor", "vendors.manage_own"],
|
|
576
|
+
["partner" /* Partner */]: ["dashboard.partner", "partners.manage_own"],
|
|
577
|
+
["school" /* School */]: ["dashboard.school", "schools.manage_own"],
|
|
578
|
+
["affiliate" /* Affiliate */]: [
|
|
579
|
+
"dashboard.affiliate",
|
|
580
|
+
"affiliates.manage_own"
|
|
581
|
+
]
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
// src/auth/permissions/adminAppAccess.ts
|
|
585
|
+
var ADMIN_APP_ROLES = [
|
|
586
|
+
"super_admin" /* SuperAdmin */,
|
|
587
|
+
"admin" /* Admin */,
|
|
588
|
+
"event" /* Event */,
|
|
589
|
+
"vendor" /* Vendor */,
|
|
590
|
+
"partner" /* Partner */,
|
|
591
|
+
"school" /* School */,
|
|
592
|
+
"affiliate" /* Affiliate */
|
|
593
|
+
];
|
|
594
|
+
var ADMIN_DASHBOARD_CONTEXTS = [
|
|
595
|
+
{
|
|
596
|
+
context: "staff",
|
|
597
|
+
home: "/dashboard",
|
|
598
|
+
label: "Staff",
|
|
599
|
+
pathPrefixes: ["/dashboard"],
|
|
600
|
+
roles: ["super_admin" /* SuperAdmin */, "admin" /* Admin */]
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
context: "event",
|
|
604
|
+
home: "/event/dashboard",
|
|
605
|
+
label: "Events",
|
|
606
|
+
pathPrefixes: ["/event"],
|
|
607
|
+
roles: ["event" /* Event */]
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
context: "vendor",
|
|
611
|
+
home: "/vendor/dashboard",
|
|
612
|
+
label: "Stallholders",
|
|
613
|
+
pathPrefixes: ["/vendor"],
|
|
614
|
+
roles: ["vendor" /* Vendor */]
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
context: "partner",
|
|
618
|
+
home: "/partner/dashboard",
|
|
619
|
+
label: "Partners",
|
|
620
|
+
pathPrefixes: ["/partner"],
|
|
621
|
+
roles: ["partner" /* Partner */]
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
context: "school",
|
|
625
|
+
home: "/school/dashboard",
|
|
626
|
+
label: "Schools",
|
|
627
|
+
pathPrefixes: ["/school"],
|
|
628
|
+
roles: ["school" /* School */]
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
context: "affiliate",
|
|
632
|
+
home: "/affiliate/dashboard",
|
|
633
|
+
label: "Affiliate",
|
|
634
|
+
pathPrefixes: ["/affiliate"],
|
|
635
|
+
roles: ["affiliate" /* Affiliate */]
|
|
636
|
+
}
|
|
637
|
+
];
|
|
638
|
+
|
|
639
|
+
// src/types/userAdapters.ts
|
|
640
|
+
var PERMISSION_SET = new Set(PERMISSIONS);
|
|
474
641
|
|
|
475
|
-
// src/types/
|
|
476
|
-
var
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
})(EnumPostType || {});
|
|
482
|
-
var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
|
|
483
|
-
EnumPostContentType2["GAME"] = "game";
|
|
484
|
-
EnumPostContentType2["IMAGE"] = "image";
|
|
485
|
-
EnumPostContentType2["LIST"] = "list";
|
|
486
|
-
EnumPostContentType2["TEXTAREA"] = "textarea";
|
|
487
|
-
EnumPostContentType2["VIDEO"] = "video";
|
|
488
|
-
return EnumPostContentType2;
|
|
489
|
-
})(EnumPostContentType || {});
|
|
642
|
+
// src/types/game/global.ts
|
|
643
|
+
var gameTypeToDisplayName = {
|
|
644
|
+
["dailyClue" /* DailyClue */]: "Daily Clue",
|
|
645
|
+
["miniQuiz" /* MiniQuiz */]: "Mini Quiz",
|
|
646
|
+
["oddOneOut" /* OddOneOut */]: "Odd One Out"
|
|
647
|
+
};
|
|
490
648
|
|
|
491
649
|
// src/types/subscription.ts
|
|
492
650
|
var TIER_FROM_LICENCE = {
|
|
493
|
-
["pro_event" /*
|
|
494
|
-
["pro_plus_event" /*
|
|
495
|
-
["pro_plus_vendor" /*
|
|
496
|
-
["pro_vendor" /*
|
|
497
|
-
["standard_event" /*
|
|
498
|
-
["standard_partner" /*
|
|
499
|
-
["standard_vendor" /*
|
|
500
|
-
["standard_affiliate" /*
|
|
501
|
-
["standard_school" /*
|
|
651
|
+
["pro_event" /* ProEvent */]: "pro",
|
|
652
|
+
["pro_plus_event" /* ProPlusEvent */]: "pro_plus",
|
|
653
|
+
["pro_plus_vendor" /* ProPlusVendor */]: "pro_plus",
|
|
654
|
+
["pro_vendor" /* ProVendor */]: "pro",
|
|
655
|
+
["standard_event" /* StandardEvent */]: "standard",
|
|
656
|
+
["standard_partner" /* StandardPartner */]: "standard",
|
|
657
|
+
["standard_vendor" /* StandardVendor */]: "standard",
|
|
658
|
+
["standard_affiliate" /* StandardAffiliate */]: "standard",
|
|
659
|
+
["standard_school" /* StandardSchool */]: "standard"
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
// src/types/affiliateAdapters.ts
|
|
663
|
+
var emptyLocation = {
|
|
664
|
+
city: "",
|
|
665
|
+
country: "",
|
|
666
|
+
fullAddress: "",
|
|
667
|
+
geo: {
|
|
668
|
+
coordinates: [0, 0],
|
|
669
|
+
type: "Point"
|
|
670
|
+
},
|
|
671
|
+
latitude: 0,
|
|
672
|
+
longitude: 0,
|
|
673
|
+
region: ""
|
|
502
674
|
};
|
|
675
|
+
function affiliateToFormData(affiliate) {
|
|
676
|
+
const details = affiliate.affiliateDetails;
|
|
677
|
+
return {
|
|
678
|
+
bankAccountDetails: details?.bankAccountDetails ?? {
|
|
679
|
+
accountHolderName: "",
|
|
680
|
+
accountNumber: ""
|
|
681
|
+
},
|
|
682
|
+
contactDetails: details?.contactDetails ?? {
|
|
683
|
+
mobilePhone: ""
|
|
684
|
+
},
|
|
685
|
+
irdNumber: details?.irdNumber ?? "",
|
|
686
|
+
location: details?.location ?? emptyLocation,
|
|
687
|
+
participantType: details?.participantType ?? "",
|
|
688
|
+
socialMedia: toFormSocialMedia(details?.socialMedia),
|
|
689
|
+
termsAgreement: details?.termsAgreement ? {
|
|
690
|
+
appBuildNumber: details.termsAgreement.appBuildNumber,
|
|
691
|
+
appId: details.termsAgreement.appId,
|
|
692
|
+
appVersion: details.termsAgreement.appVersion,
|
|
693
|
+
brand: details.termsAgreement.brand,
|
|
694
|
+
deviceName: details.termsAgreement.deviceName,
|
|
695
|
+
installationId: details.termsAgreement.installationId,
|
|
696
|
+
manufacturer: details.termsAgreement.manufacturer,
|
|
697
|
+
modelName: details.termsAgreement.modelName,
|
|
698
|
+
osName: details.termsAgreement.osName,
|
|
699
|
+
osVersion: details.termsAgreement.osVersion,
|
|
700
|
+
termVersion: details.termsAgreement.termVersion,
|
|
701
|
+
timestamp: details.termsAgreement.timestamp
|
|
702
|
+
} : null
|
|
703
|
+
};
|
|
704
|
+
}
|
|
503
705
|
|
|
504
|
-
// src/
|
|
505
|
-
var
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
706
|
+
// src/enums/clientEnums.ts
|
|
707
|
+
var EnumRegions = /* @__PURE__ */ ((EnumRegions2) => {
|
|
708
|
+
EnumRegions2["All"] = "All Regions";
|
|
709
|
+
EnumRegions2["Auckland"] = "Auckland";
|
|
710
|
+
EnumRegions2["BayOfPlentyGisborne"] = "Bay of Plenty & Gisborne";
|
|
711
|
+
EnumRegions2["CanterburyWestCoast"] = "Canterbury & West Coast";
|
|
712
|
+
EnumRegions2["HawkesBay"] = "Hawke's Bay";
|
|
713
|
+
EnumRegions2["ManawatuWanganui"] = "Manawatu-Wanganui";
|
|
714
|
+
EnumRegions2["MarlboroughNelsonTasman"] = "Marlborough & Nelson & Tasman";
|
|
715
|
+
EnumRegions2["Northland"] = "Northland";
|
|
716
|
+
EnumRegions2["Otago"] = "Otago";
|
|
717
|
+
EnumRegions2["Southland"] = "Southland";
|
|
718
|
+
EnumRegions2["Taranaki"] = "Taranaki";
|
|
719
|
+
EnumRegions2["Waikato"] = "Waikato";
|
|
720
|
+
EnumRegions2["Wellington"] = "Wellington";
|
|
721
|
+
return EnumRegions2;
|
|
722
|
+
})(EnumRegions || {});
|
|
511
723
|
|
|
512
724
|
// src/utils/utils.ts
|
|
513
725
|
var statusOptions = [
|
|
514
|
-
...Object.values(
|
|
726
|
+
...Object.values(InviteEnumType).map((status) => ({
|
|
515
727
|
label: status,
|
|
516
728
|
value: status
|
|
517
729
|
})).sort((a, b) => a.label.localeCompare(b.label))
|
|
@@ -520,59 +732,59 @@ var statusOptions = [
|
|
|
520
732
|
var availableRegionTypes = Object.values(EnumRegions);
|
|
521
733
|
var availableRegionOptions = mapArrayToOptions(availableRegionTypes);
|
|
522
734
|
var paymentMethodOptions = mapArrayToOptions(
|
|
523
|
-
Object.values(
|
|
735
|
+
Object.values(PaymentMethodEnumType)
|
|
524
736
|
);
|
|
525
737
|
function normalizeUrl(url) {
|
|
526
738
|
const withProtocol = !url.startsWith("http://") && !url.startsWith("https://") ? `https://${url}` : url;
|
|
527
739
|
return withProtocol.replace(/\/+$/, "");
|
|
528
740
|
}
|
|
529
741
|
var licenseNiceNames = {
|
|
530
|
-
["pro_event" /*
|
|
531
|
-
["pro_vendor" /*
|
|
532
|
-
["standard_event" /*
|
|
533
|
-
["standard_vendor" /*
|
|
534
|
-
["pro_plus_event" /*
|
|
535
|
-
["pro_plus_vendor" /*
|
|
536
|
-
["standard_partner" /*
|
|
537
|
-
["standard_affiliate" /*
|
|
538
|
-
["standard_school" /*
|
|
742
|
+
["pro_event" /* ProEvent */]: "Pro Event",
|
|
743
|
+
["pro_vendor" /* ProVendor */]: "Pro Stallholder",
|
|
744
|
+
["standard_event" /* StandardEvent */]: "Standard Event",
|
|
745
|
+
["standard_vendor" /* StandardVendor */]: "Standard Stallholder",
|
|
746
|
+
["pro_plus_event" /* ProPlusEvent */]: "Pro+Ads Event",
|
|
747
|
+
["pro_plus_vendor" /* ProPlusVendor */]: "Pro+Ads Stallholder",
|
|
748
|
+
["standard_partner" /* StandardPartner */]: "Partner",
|
|
749
|
+
["standard_affiliate" /* StandardAffiliate */]: "Affiliate",
|
|
750
|
+
["standard_school" /* StandardSchool */]: "School"
|
|
539
751
|
};
|
|
540
752
|
var cluemartSocialMedia = [
|
|
541
753
|
{
|
|
542
754
|
link: "https://www.facebook.com/ClueMartApp",
|
|
543
|
-
name: "facebook" /*
|
|
755
|
+
name: "facebook" /* Facebook */
|
|
544
756
|
},
|
|
545
757
|
{
|
|
546
758
|
link: "https://www.instagram.com/cluemart_app",
|
|
547
|
-
name: "instagram" /*
|
|
759
|
+
name: "instagram" /* Instagram */
|
|
548
760
|
},
|
|
549
761
|
{
|
|
550
762
|
link: "https://www.tiktok.com/@cluemart",
|
|
551
|
-
name: "tiktok" /*
|
|
763
|
+
name: "tiktok" /* Tiktok */
|
|
552
764
|
},
|
|
553
765
|
{
|
|
554
766
|
link: "https://www.youtube.com/@ClueMart-App-NZ",
|
|
555
|
-
name: "youtube" /*
|
|
767
|
+
name: "youtube" /* Youtube */
|
|
556
768
|
}
|
|
557
769
|
];
|
|
558
770
|
var rewardNiceNames = {
|
|
559
|
-
["mystery_joy_box" /*
|
|
771
|
+
["mystery_joy_box" /* MysteryJoyBox */]: {
|
|
560
772
|
name: "Mystery Joy Box",
|
|
561
773
|
points: 250
|
|
562
774
|
},
|
|
563
|
-
["mystery_squeeze_box" /*
|
|
775
|
+
["mystery_squeeze_box" /* MysterySqueezeBox */]: {
|
|
564
776
|
name: "Mystery Squeeze Box",
|
|
565
777
|
points: 350
|
|
566
778
|
},
|
|
567
|
-
["mystery_deluxe_box" /*
|
|
779
|
+
["mystery_deluxe_box" /* MysteryDeluxeBox */]: {
|
|
568
780
|
name: "Mystery Deluxe Box",
|
|
569
781
|
points: 500
|
|
570
782
|
}
|
|
571
783
|
};
|
|
572
784
|
var PostTypeLabels = {
|
|
573
|
-
["market_faces" /*
|
|
574
|
-
["clue_bites" /*
|
|
575
|
-
["play_and_win" /*
|
|
785
|
+
["market_faces" /* MarketFaces */]: "Market Faces",
|
|
786
|
+
["clue_bites" /* ClueBites */]: "Clue Bites",
|
|
787
|
+
["play_and_win" /* PlayAndWin */]: "Play & Win"
|
|
576
788
|
};
|
|
577
789
|
var CM_SCHOOL_PROMO_CODE = `${PROMO_CODE_PREFIX}SCHOOL`;
|
|
578
790
|
var CM_AFFILIATE_PROMO_CODE = `${PROMO_CODE_PREFIX}AFFILIATE`;
|
|
@@ -582,26 +794,26 @@ var SCHOOL_MIN_STUDENT_COUNT = 300;
|
|
|
582
794
|
|
|
583
795
|
// src/utils/eventDateStatus.ts
|
|
584
796
|
var EVENT_DATE_STATUS_PERIOD_MAP = {
|
|
585
|
-
["Today" /*
|
|
586
|
-
"Started" /*
|
|
587
|
-
"Starting_Soon" /*
|
|
588
|
-
"Today" /*
|
|
797
|
+
["Today" /* Today */]: [
|
|
798
|
+
"Started" /* Started */,
|
|
799
|
+
"Starting_Soon" /* StartingSoon */,
|
|
800
|
+
"Today" /* Today */
|
|
589
801
|
],
|
|
590
|
-
["This_Week" /*
|
|
591
|
-
"Started" /*
|
|
592
|
-
"Starting_Soon" /*
|
|
593
|
-
"This_Week" /*
|
|
594
|
-
"Today" /*
|
|
595
|
-
"Tomorrow" /*
|
|
802
|
+
["This_Week" /* ThisWeek */]: [
|
|
803
|
+
"Started" /* Started */,
|
|
804
|
+
"Starting_Soon" /* StartingSoon */,
|
|
805
|
+
"This_Week" /* ThisWeek */,
|
|
806
|
+
"Today" /* Today */,
|
|
807
|
+
"Tomorrow" /* Tomorrow */
|
|
596
808
|
]
|
|
597
809
|
};
|
|
598
810
|
|
|
599
811
|
// src/calendar/eventCalendar.ts
|
|
600
812
|
var import_dayjs2 = __toESM(require("dayjs"));
|
|
601
813
|
var KNOWN_EVENT_SCHEDULE_STATUSES = /* @__PURE__ */ new Set([
|
|
602
|
-
"Started" /*
|
|
603
|
-
"Starting_Soon" /*
|
|
604
|
-
"Ended" /*
|
|
814
|
+
"Started" /* Started */,
|
|
815
|
+
"Starting_Soon" /* StartingSoon */,
|
|
816
|
+
"Ended" /* Ended */
|
|
605
817
|
]);
|
|
606
818
|
|
|
607
819
|
// src/formFields/categories/clothingAndFashion.ts
|
|
@@ -1601,32 +1813,32 @@ var availableCategories = assignColorToCategories([
|
|
|
1601
1813
|
|
|
1602
1814
|
// src/utils/affiliate.ts
|
|
1603
1815
|
var AFFILIATE_PARTICIPANT_TYPE_LABELS = {
|
|
1604
|
-
["INDIVIDUAL" /*
|
|
1605
|
-
["SOLE_TRADER" /*
|
|
1606
|
-
["COMPANY" /*
|
|
1816
|
+
["INDIVIDUAL" /* Individual */]: "Individual",
|
|
1817
|
+
["SOLE_TRADER" /* SoleTrader */]: "Sole Trader",
|
|
1818
|
+
["COMPANY" /* Company */]: "Company"
|
|
1607
1819
|
};
|
|
1608
1820
|
var AFFILIATE_REWARDS = {
|
|
1609
|
-
["NEW_EVENT_REGISTRATION" /*
|
|
1821
|
+
["NEW_EVENT_REGISTRATION" /* NewEventRegistration */]: {
|
|
1610
1822
|
description: "10 points for new event registration (one-time reward)",
|
|
1611
1823
|
value: 10
|
|
1612
1824
|
},
|
|
1613
|
-
["NEW_VENDOR_REGISTRATION" /*
|
|
1825
|
+
["NEW_VENDOR_REGISTRATION" /* NewVendorRegistration */]: {
|
|
1614
1826
|
description: "5 points for new vendor registration (one-time reward)",
|
|
1615
1827
|
value: 5
|
|
1616
1828
|
},
|
|
1617
|
-
["ACTIVE_VENDOR_PRO_SUBSCRIPTION" /*
|
|
1829
|
+
["ACTIVE_VENDOR_PRO_SUBSCRIPTION" /* ActiveVendorProSubscription */]: {
|
|
1618
1830
|
description: "3 points for active vendor pro subscription (monthly reward)",
|
|
1619
1831
|
value: 3
|
|
1620
1832
|
},
|
|
1621
|
-
["ACTIVE_VENDOR_STANDARD_SUBSCRIPTION" /*
|
|
1833
|
+
["ACTIVE_VENDOR_STANDARD_SUBSCRIPTION" /* ActiveVendorStandardSubscription */]: {
|
|
1622
1834
|
description: "1 point for active vendor standard subscription (monthly reward)",
|
|
1623
1835
|
value: 1
|
|
1624
1836
|
},
|
|
1625
|
-
["ACTIVE_VENDOR_BONUS_REWARD" /*
|
|
1837
|
+
["ACTIVE_VENDOR_BONUS_REWARD" /* ActiveVendorBonusReward */]: {
|
|
1626
1838
|
description: "5 bonus points for every 10th active vendor (one-time reward)",
|
|
1627
1839
|
value: 5
|
|
1628
1840
|
},
|
|
1629
|
-
["ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS" /*
|
|
1841
|
+
["ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS" /* ActiveEventWithVendorRegistrations */]: {
|
|
1630
1842
|
description: "40 points for active event with vendor registrations (one-time reward)",
|
|
1631
1843
|
value: 40
|
|
1632
1844
|
}
|
|
@@ -1795,7 +2007,7 @@ var startTimeCannotBeInPastTest = yup.string().test(
|
|
|
1795
2007
|
}
|
|
1796
2008
|
);
|
|
1797
2009
|
var dateTimeSchema = yup.object().shape({
|
|
1798
|
-
dateStatus: yup.mixed().oneOf(Object.values(
|
|
2010
|
+
dateStatus: yup.mixed().oneOf(Object.values(EventDateStatusEnumType)).required("Date status is required"),
|
|
1799
2011
|
endDate: yup.string().label("End Date").concat(endDateNotInPastTest).concat(endDateAfterStartDateTest).required("End date is required"),
|
|
1800
2012
|
endTime: yup.string().label("End Time").concat(endTimeMustBeAfterStartTimeTest).required("End time is required"),
|
|
1801
2013
|
startDate: yup.string().label("Start Date").concat(startDateNotInPastTest).required("Start date is required"),
|
|
@@ -1822,7 +2034,11 @@ var locationSchema = yup.object().shape({
|
|
|
1822
2034
|
2,
|
|
1823
2035
|
"Coordinates must contain exactly two numbers (longitude, latitude)"
|
|
1824
2036
|
).required("Coordinates are required"),
|
|
1825
|
-
type: yup.string().
|
|
2037
|
+
type: yup.string().test(
|
|
2038
|
+
"is-point",
|
|
2039
|
+
"Type must be 'Point'",
|
|
2040
|
+
(value) => value == null || value === "Point"
|
|
2041
|
+
).default("Point").required("Type is required")
|
|
1826
2042
|
}),
|
|
1827
2043
|
latitude: yup.number().label("Latitude").required("Latitude is required"),
|
|
1828
2044
|
longitude: yup.number().label("Longitude").required("Longitude is required"),
|
|
@@ -1830,7 +2046,7 @@ var locationSchema = yup.object().shape({
|
|
|
1830
2046
|
});
|
|
1831
2047
|
var passwordSchema = yup.string().trim().label("Password").min(8, "Password must be at least 8 characters long").required("Password is required");
|
|
1832
2048
|
var socialMediaSchema = yup.object({
|
|
1833
|
-
name: yup.mixed().oneOf(Object.values(
|
|
2049
|
+
name: yup.mixed().oneOf(Object.values(SocialMediaEnumType)).label("Social Media Name").optional(),
|
|
1834
2050
|
link: yup.string().when("name", {
|
|
1835
2051
|
is: (name) => !!name,
|
|
1836
2052
|
// If name has a value
|
|
@@ -1890,7 +2106,7 @@ var eventSchema = globalResourceSchema.shape({
|
|
|
1890
2106
|
return true;
|
|
1891
2107
|
}
|
|
1892
2108
|
),
|
|
1893
|
-
eventType: yup2.mixed().oneOf(Object.values(
|
|
2109
|
+
eventType: yup2.mixed().oneOf(Object.values(EventEnumType), "Please select a valid Event type").required("Please select an Event type"),
|
|
1894
2110
|
location: locationSchema,
|
|
1895
2111
|
nzbn: yup2.string().required("NZBN is required").matches(nzbnRegex, "NZBN must be 13 digits and start with 94"),
|
|
1896
2112
|
rainOrShine: yup2.boolean().label("Rain or Shine").required("Please specify if the event is rain or shine"),
|
|
@@ -1898,16 +2114,16 @@ var eventSchema = globalResourceSchema.shape({
|
|
|
1898
2114
|
});
|
|
1899
2115
|
var paymentInfoSchema = yup2.object({
|
|
1900
2116
|
paymentMethod: yup2.mixed().oneOf(
|
|
1901
|
-
Object.values(
|
|
2117
|
+
Object.values(PaymentMethodEnumType),
|
|
1902
2118
|
"Please select a valid Payment method"
|
|
1903
2119
|
).required("Please select a Payment method"),
|
|
1904
2120
|
accountHolderName: yup2.string().when("paymentMethod", {
|
|
1905
|
-
is: "bank_transfer" /*
|
|
2121
|
+
is: "bank_transfer" /* BankTransfer */,
|
|
1906
2122
|
then: (schema) => schema.required("Account holder name is required for bank transfer").trim(),
|
|
1907
2123
|
otherwise: (schema) => schema.notRequired()
|
|
1908
2124
|
}),
|
|
1909
2125
|
accountNumber: yup2.string().when("paymentMethod", {
|
|
1910
|
-
is: "bank_transfer" /*
|
|
2126
|
+
is: "bank_transfer" /* BankTransfer */,
|
|
1911
2127
|
then: (schema) => schema.required("Account number is required for bank transfer").matches(
|
|
1912
2128
|
nzBankAccountRegex,
|
|
1913
2129
|
"Account number must be in format: XX-XXXX-XXXXXXX-XX"
|
|
@@ -1915,7 +2131,7 @@ var paymentInfoSchema = yup2.object({
|
|
|
1915
2131
|
otherwise: (schema) => schema.notRequired()
|
|
1916
2132
|
}),
|
|
1917
2133
|
link: yup2.string().when("paymentMethod", {
|
|
1918
|
-
is: (val) => val === "paypal" /*
|
|
2134
|
+
is: (val) => val === "paypal" /* Paypal */ || val === "stripe" /* Stripe */,
|
|
1919
2135
|
then: () => normalizedUrlTransform().url("Link must be a valid URL").required("Link is required for PayPal/Stripe"),
|
|
1920
2136
|
otherwise: (schema) => schema.notRequired()
|
|
1921
2137
|
})
|
|
@@ -1965,7 +2181,7 @@ var vendorSchema = globalResourceSchema.shape({
|
|
|
1965
2181
|
active: yup3.boolean().nullable().optional(),
|
|
1966
2182
|
productsList: yup3.array().of(vendorMenuSchema).nullable().optional()
|
|
1967
2183
|
}).nullable().optional(),
|
|
1968
|
-
vendorType: yup3.mixed().oneOf(Object.values(
|
|
2184
|
+
vendorType: yup3.mixed().oneOf(Object.values(VendorEnumType)).required("Please select a Vendor type")
|
|
1969
2185
|
});
|
|
1970
2186
|
var unregisteredVendorSchema = yup3.object().shape({
|
|
1971
2187
|
categoryIds: yup3.array().of(yup3.string().defined()).min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
@@ -1978,7 +2194,7 @@ var unregisteredVendorSchema = yup3.object().shape({
|
|
|
1978
2194
|
var vendorInfoSchema = yup3.object().shape({
|
|
1979
2195
|
product: yup3.object().shape({
|
|
1980
2196
|
foodFlavors: yup3.array().of(
|
|
1981
|
-
yup3.mixed().oneOf(Object.values(
|
|
2197
|
+
yup3.mixed().oneOf(Object.values(FoodFlavorEnumType), "Invalid flavor selected").required("Flavor is required")
|
|
1982
2198
|
).min(1, "Food flavors list must contain at least one item").required("Food flavors are required"),
|
|
1983
2199
|
packaging: yup3.array().of(yup3.string().defined()).min(1, "Packaging list must contain at least one item").required("Packaging is required"),
|
|
1984
2200
|
priceRange: yup3.object().shape({
|
|
@@ -2113,13 +2329,13 @@ var yup6 = __toESM(require("yup"));
|
|
|
2113
2329
|
var adResourceSchema = yup6.object({
|
|
2114
2330
|
adDescription: yup6.string().trim().required("Ad description is required").max(150, "Ad description must be at most 150 characters"),
|
|
2115
2331
|
adImage: yup6.string().required("Ad image is required"),
|
|
2116
|
-
adStyle: yup6.mixed().oneOf(Object.values(
|
|
2332
|
+
adStyle: yup6.mixed().oneOf(Object.values(AdStyleEnum), "Please select a valid ad style").required("Ad style is required"),
|
|
2117
2333
|
adTitle: yup6.string().trim().required("Ad title is required").max(30, "Ad title must be at most 30 characters"),
|
|
2118
|
-
adType: yup6.mixed().oneOf(Object.values(
|
|
2334
|
+
adType: yup6.mixed().oneOf(Object.values(AdTypeEnum), "Please select a valid ad type").required("Ad type is required"),
|
|
2119
2335
|
resourceId: yup6.string().required("Resource ID is required"),
|
|
2120
2336
|
resourceName: yup6.string().required("Resource name is required"),
|
|
2121
2337
|
resourceRegion: yup6.string().required("Resource region is required"),
|
|
2122
|
-
resourceType: yup6.mixed().oneOf(Object.values(
|
|
2338
|
+
resourceType: yup6.mixed().oneOf(Object.values(ResourceTypeEnum), "Please select Event or Vendor").required("Resource type is required"),
|
|
2123
2339
|
resourceSlug: yup6.string().required("Resource slug is required")
|
|
2124
2340
|
});
|
|
2125
2341
|
var adSchema = yup6.object().shape({
|
|
@@ -2142,10 +2358,10 @@ var adSchema = yup6.object().shape({
|
|
|
2142
2358
|
)
|
|
2143
2359
|
}),
|
|
2144
2360
|
resource: adResourceSchema.required("Resource information is required"),
|
|
2145
|
-
showOn: yup6.array().of(yup6.mixed().oneOf(Object.values(
|
|
2146
|
-
status: yup6.mixed().oneOf(Object.values(
|
|
2361
|
+
showOn: yup6.array().of(yup6.mixed().oneOf(Object.values(AdShowOnEnum)).required()).min(1, "At least one display location is required").required("Display location is required"),
|
|
2362
|
+
status: yup6.mixed().oneOf(Object.values(AdStatusTypeEnum)).required("Ad status is required"),
|
|
2147
2363
|
start: yup6.date().when("status", {
|
|
2148
|
-
is: (status) => status !== "Active" /*
|
|
2364
|
+
is: (status) => status !== "Active" /* Active */,
|
|
2149
2365
|
then: () => yup6.date().required("Start date is required").test("is-future-date", "Start date must be in the future", (value) => {
|
|
2150
2366
|
if (!value) return false;
|
|
2151
2367
|
return value > /* @__PURE__ */ new Date();
|
|
@@ -2161,3607 +2377,72 @@ var yup7 = __toESM(require("yup"));
|
|
|
2161
2377
|
var partnerSchema = globalResourceSchema.shape({
|
|
2162
2378
|
location: locationSchema,
|
|
2163
2379
|
nzbn: yup7.string().required("NZBN is required").matches(nzbnRegex, "NZBN must be 13 digits and start with 94"),
|
|
2164
|
-
partnerType: yup7.mixed().oneOf(Object.values(
|
|
2380
|
+
partnerType: yup7.mixed().oneOf(Object.values(PartnerEnumType), "Please select a valid Partner type").required("Please select a Partner type")
|
|
2165
2381
|
});
|
|
2166
2382
|
|
|
2167
2383
|
// src/yupSchema/post.ts
|
|
2168
2384
|
var yup8 = __toESM(require("yup"));
|
|
2385
|
+
var postContentSchema = yup8.object().shape({
|
|
2386
|
+
contentData: yup8.mixed().optional().nullable(),
|
|
2387
|
+
contentOrder: yup8.number().nullable(),
|
|
2388
|
+
contentType: yup8.mixed().oneOf(Object.values(PostContentEnum)).nullable()
|
|
2389
|
+
});
|
|
2390
|
+
var postSchema = yup8.object().shape({
|
|
2391
|
+
active: yup8.boolean().required(),
|
|
2392
|
+
caption: yup8.string().required(),
|
|
2393
|
+
content: yup8.array().of(postContentSchema).required(),
|
|
2394
|
+
postType: yup8.mixed().oneOf(Object.values(PostTypeEnum)).required(),
|
|
2395
|
+
resource: yup8.object({
|
|
2396
|
+
resourceId: yup8.string().required(),
|
|
2397
|
+
resourceRegion: yup8.string().required(),
|
|
2398
|
+
resourceSlug: yup8.string().required(),
|
|
2399
|
+
resourceType: yup8.mixed().oneOf(Object.values(ResourceTypeEnum)).required()
|
|
2400
|
+
}).nullable().optional(),
|
|
2401
|
+
tags: yup8.array().of(yup8.string().required()).nullable().optional(),
|
|
2402
|
+
title: yup8.string().required()
|
|
2403
|
+
});
|
|
2169
2404
|
|
|
2170
|
-
// src/
|
|
2171
|
-
var
|
|
2172
|
-
|
|
2173
|
-
"
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
"
|
|
2177
|
-
"
|
|
2178
|
-
"
|
|
2179
|
-
|
|
2180
|
-
"Reusable",
|
|
2181
|
-
"Single-use",
|
|
2182
|
-
"Wood"
|
|
2183
|
-
];
|
|
2184
|
-
var producedIngTypes = [
|
|
2185
|
-
"Commercial Kitchen",
|
|
2186
|
-
"Home Premises",
|
|
2187
|
-
"Factory",
|
|
2188
|
-
"Farm",
|
|
2189
|
-
"Other"
|
|
2190
|
-
];
|
|
2191
|
-
var packagingOptions = mapArrayToOptions(packagingTypes);
|
|
2192
|
-
var producedIngOptions = mapArrayToOptions(producedIngTypes);
|
|
2193
|
-
var foodFlavourOptions = Object.values(
|
|
2194
|
-
EnumFoodFlavor
|
|
2195
|
-
).map((flavour) => ({
|
|
2196
|
-
label: flavour.replaceAll("_", " "),
|
|
2197
|
-
value: flavour
|
|
2198
|
-
}));
|
|
2199
|
-
|
|
2200
|
-
// src/formFields/event/event.ts
|
|
2201
|
-
var availableTagTypes = [
|
|
2202
|
-
{ icon: "human-male-female-child", label: "All Ages" },
|
|
2203
|
-
{ icon: "weather-sunny", label: "Day Market" },
|
|
2204
|
-
{ icon: "account-child", label: "Family Friendly" },
|
|
2205
|
-
{ icon: "ticket-percent", label: "Free Entry" },
|
|
2206
|
-
{ icon: "home-city", label: "Indoor Market" },
|
|
2207
|
-
{ icon: "music", label: "Live Music" },
|
|
2208
|
-
{ icon: "bus", label: "Near Bustop" },
|
|
2209
|
-
{ icon: "slide", label: "Near Playground" },
|
|
2210
|
-
{ icon: "train", label: "Near Train Station" },
|
|
2211
|
-
{ icon: "weather-night", label: "Night Market" },
|
|
2212
|
-
{ icon: "tree", label: "Outdoor Market" },
|
|
2213
|
-
{ icon: "car", label: "Parking Available" },
|
|
2214
|
-
{ icon: "dog", label: "Pet Friendly" },
|
|
2215
|
-
{ icon: "ship-wheel", label: "Port Nearby" },
|
|
2216
|
-
{ icon: "toilet", label: "Toilet Available" },
|
|
2217
|
-
{ icon: "wheelchair-accessibility", label: "Wheelchair Accessible" }
|
|
2218
|
-
];
|
|
2219
|
-
var tagOptions = availableTagTypes.map((tag) => ({
|
|
2220
|
-
label: tag.label,
|
|
2221
|
-
value: tag.label
|
|
2222
|
-
}));
|
|
2223
|
-
|
|
2224
|
-
// src/formFields/global.ts
|
|
2225
|
-
var emailField = {
|
|
2226
|
-
helperText: "Enter email address",
|
|
2227
|
-
keyboardType: "email-address",
|
|
2228
|
-
name: "email",
|
|
2229
|
-
placeholder: "Email"
|
|
2230
|
-
};
|
|
2231
|
-
var companyContactFields = [
|
|
2232
|
-
{
|
|
2233
|
-
...emailField,
|
|
2234
|
-
name: "contactDetails.email"
|
|
2235
|
-
},
|
|
2236
|
-
{
|
|
2237
|
-
helperText: "Enter your mobile phone number",
|
|
2238
|
-
keyboardType: "phone-pad",
|
|
2239
|
-
name: "contactDetails.mobilePhone",
|
|
2240
|
-
placeholder: "Mobile Phone Number"
|
|
2241
|
-
},
|
|
2242
|
-
{
|
|
2243
|
-
helperText: "Enter your landline phone number",
|
|
2244
|
-
keyboardType: "phone-pad",
|
|
2245
|
-
name: "contactDetails.landlinePhone",
|
|
2246
|
-
placeholder: "Landline Phone Number"
|
|
2247
|
-
}
|
|
2248
|
-
];
|
|
2249
|
-
var bankAccountDetailsFields = [
|
|
2250
|
-
{
|
|
2251
|
-
helperText: "Account holder name *",
|
|
2252
|
-
name: "accountHolderName",
|
|
2253
|
-
placeholder: "Account holder name"
|
|
2254
|
-
},
|
|
2255
|
-
{
|
|
2256
|
-
helperText: "Account number *",
|
|
2257
|
-
keyboardType: "number-pad",
|
|
2258
|
-
name: "accountNumber",
|
|
2259
|
-
placeholder: "Account number"
|
|
2260
|
-
}
|
|
2261
|
-
];
|
|
2262
|
-
|
|
2263
|
-
// src/formFields/event/eventInfo.ts
|
|
2264
|
-
var eventInfoPaymentInfo = [
|
|
2265
|
-
...bankAccountDetailsFields,
|
|
2266
|
-
{
|
|
2267
|
-
helperText: "Payment link, where applicants can pay *",
|
|
2268
|
-
keyboardType: "url",
|
|
2269
|
-
name: "link",
|
|
2270
|
-
placeholder: "Payment link"
|
|
2271
|
-
}
|
|
2272
|
-
];
|
|
2273
|
-
var stallTypes = [
|
|
2274
|
-
"1.8m table only",
|
|
2275
|
-
"2x2m mini stall",
|
|
2276
|
-
"3x3m tent site",
|
|
2277
|
-
"Corner stall",
|
|
2278
|
-
"Craft stall with power",
|
|
2279
|
-
"Craft stall without power",
|
|
2280
|
-
"Double stall (6x3m)",
|
|
2281
|
-
"Food truck site",
|
|
2282
|
-
"Food vendor with power",
|
|
2283
|
-
"Food vendor without power",
|
|
2284
|
-
"Inside hall stall",
|
|
2285
|
-
"Non-profit/community stall",
|
|
2286
|
-
"Outdoor open area",
|
|
2287
|
-
"Shared table space",
|
|
2288
|
-
"Wall-based vendor",
|
|
2289
|
-
"Workshop/seating area"
|
|
2290
|
-
];
|
|
2291
|
-
var stallTypeOptions = stallTypes.map((type) => ({
|
|
2292
|
-
label: type,
|
|
2293
|
-
price: 0,
|
|
2294
|
-
stallCapacity: 0
|
|
2295
|
-
}));
|
|
2405
|
+
// src/yupSchema/appSettings.ts
|
|
2406
|
+
var yup9 = __toESM(require("yup"));
|
|
2407
|
+
var appSettingsSchema = yup9.object({
|
|
2408
|
+
appVersion: yup9.string().trim().label("App Version").matches(
|
|
2409
|
+
/^\d+\.\d+\.\d+$/,
|
|
2410
|
+
"App Version must be in the format X.Y.Z (e.g. 1.12.50)"
|
|
2411
|
+
).required("App Version is required"),
|
|
2412
|
+
isOfflineMode: yup9.boolean().label("Is Offline Mode").required("Is Offline Mode is required"),
|
|
2413
|
+
minimumRedeemableAffiliatePoints: yup9.number().label("Minimum Redeemable Affiliate Points").min(0, "Minimum Redeemable Affiliate Points must be greater than 0").required("Minimum Redeemable Affiliate Points is required")
|
|
2414
|
+
});
|
|
2296
2415
|
|
|
2297
|
-
// src/
|
|
2298
|
-
var
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
name: "password",
|
|
2307
|
-
placeholder: "Password",
|
|
2308
|
-
required: true,
|
|
2309
|
-
secureTextEntry: true
|
|
2310
|
-
}
|
|
2311
|
-
];
|
|
2312
|
-
var registerFields = [
|
|
2313
|
-
{
|
|
2314
|
-
helperText: "Enter first name",
|
|
2315
|
-
keyboardType: "default",
|
|
2316
|
-
name: "firstName",
|
|
2317
|
-
placeholder: "First Name",
|
|
2318
|
-
required: true
|
|
2416
|
+
// src/hooks/utils.ts
|
|
2417
|
+
var defaultLocation = {
|
|
2418
|
+
city: "",
|
|
2419
|
+
country: "",
|
|
2420
|
+
fullAddress: "",
|
|
2421
|
+
geo: {
|
|
2422
|
+
coordinates: [0, 0],
|
|
2423
|
+
// [longitude, latitude]
|
|
2424
|
+
type: "Point"
|
|
2319
2425
|
},
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2426
|
+
latitude: 0,
|
|
2427
|
+
longitude: 0,
|
|
2428
|
+
region: ""
|
|
2429
|
+
};
|
|
2430
|
+
var globalDefaultValues = {
|
|
2431
|
+
active: false,
|
|
2432
|
+
contactDetails: {
|
|
2433
|
+
email: null,
|
|
2434
|
+
landlinePhone: null,
|
|
2435
|
+
mobilePhone: null
|
|
2326
2436
|
},
|
|
2327
|
-
{
|
|
2328
|
-
|
|
2329
|
-
|
|
2437
|
+
cover: {
|
|
2438
|
+
active: true,
|
|
2439
|
+
source: "",
|
|
2440
|
+
title: ""
|
|
2330
2441
|
},
|
|
2331
|
-
{
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
placeholder: "Password",
|
|
2336
|
-
required: true,
|
|
2337
|
-
secureTextEntry: true
|
|
2338
|
-
},
|
|
2339
|
-
{
|
|
2340
|
-
helperText: "Promotional code (optional)",
|
|
2341
|
-
keyboardType: "default",
|
|
2342
|
-
name: "promoCode",
|
|
2343
|
-
placeholder: "Promotional Code",
|
|
2344
|
-
required: false
|
|
2345
|
-
}
|
|
2346
|
-
];
|
|
2347
|
-
var requestPasswordResetFields = [
|
|
2348
|
-
{
|
|
2349
|
-
...emailField,
|
|
2350
|
-
helperText: "Enter email address to reset your password",
|
|
2351
|
-
required: true
|
|
2352
|
-
}
|
|
2353
|
-
];
|
|
2354
|
-
var validateVerificationTokenFields = [
|
|
2355
|
-
{
|
|
2356
|
-
...emailField,
|
|
2357
|
-
disabled: true,
|
|
2358
|
-
helperText: "Your email address"
|
|
2359
|
-
},
|
|
2360
|
-
{
|
|
2361
|
-
helperText: "Enter the Verification code sent to you by email",
|
|
2362
|
-
keyboardType: "number-pad",
|
|
2363
|
-
name: "verificationToken",
|
|
2364
|
-
placeholder: "Verification code",
|
|
2365
|
-
required: true
|
|
2366
|
-
}
|
|
2367
|
-
];
|
|
2368
|
-
|
|
2369
|
-
// src/formFields/user.ts
|
|
2370
|
-
var profileFields = [
|
|
2371
|
-
{
|
|
2372
|
-
...emailField,
|
|
2373
|
-
disabled: true,
|
|
2374
|
-
helperText: "Email cannot be changed"
|
|
2375
|
-
},
|
|
2376
|
-
{
|
|
2377
|
-
helperText: "Enter first name",
|
|
2378
|
-
keyboardType: "default",
|
|
2379
|
-
name: "firstName",
|
|
2380
|
-
placeholder: "First Name"
|
|
2381
|
-
},
|
|
2382
|
-
{
|
|
2383
|
-
helperText: "Enter last name",
|
|
2384
|
-
keyboardType: "default",
|
|
2385
|
-
name: "lastName",
|
|
2386
|
-
placeholder: "Last Name"
|
|
2387
|
-
},
|
|
2388
|
-
{
|
|
2389
|
-
helperText: "Enter your new password",
|
|
2390
|
-
keyboardType: "default",
|
|
2391
|
-
name: "password",
|
|
2392
|
-
placeholder: "Password",
|
|
2393
|
-
secureTextEntry: true
|
|
2394
|
-
},
|
|
2395
|
-
{
|
|
2396
|
-
helperText: "Confirm your new password",
|
|
2397
|
-
keyboardType: "default",
|
|
2398
|
-
name: "confirmPassword",
|
|
2399
|
-
placeholder: "Confirm Password",
|
|
2400
|
-
secureTextEntry: true
|
|
2401
|
-
}
|
|
2402
|
-
];
|
|
2403
|
-
|
|
2404
|
-
// src/formFields/socialMedia.ts
|
|
2405
|
-
var socialMedia = [
|
|
2406
|
-
{
|
|
2407
|
-
key: "facebook",
|
|
2408
|
-
name: "Facebook",
|
|
2409
|
-
placeholder: "https://www.facebook.com/your-page"
|
|
2410
|
-
},
|
|
2411
|
-
{
|
|
2412
|
-
key: "instagram",
|
|
2413
|
-
name: "Instagram",
|
|
2414
|
-
placeholder: "https://www.instagram.com/your-profile"
|
|
2415
|
-
},
|
|
2416
|
-
{
|
|
2417
|
-
key: "tiktok",
|
|
2418
|
-
name: "TikTok",
|
|
2419
|
-
placeholder: "https://www.tiktok.com/@your-profile"
|
|
2420
|
-
},
|
|
2421
|
-
{
|
|
2422
|
-
key: "twitter",
|
|
2423
|
-
name: "Twitter",
|
|
2424
|
-
placeholder: "https://twitter.com/your-profile"
|
|
2425
|
-
},
|
|
2426
|
-
{
|
|
2427
|
-
key: "website",
|
|
2428
|
-
name: "Website",
|
|
2429
|
-
placeholder: "https://www.yourwebsite.com"
|
|
2430
|
-
},
|
|
2431
|
-
{
|
|
2432
|
-
key: "youtube",
|
|
2433
|
-
name: "YouTube",
|
|
2434
|
-
placeholder: "https://www.youtube.com/channel/your-channel"
|
|
2435
|
-
}
|
|
2436
|
-
];
|
|
2437
|
-
var socialMediaFields = socialMedia.map((link) => ({
|
|
2438
|
-
helperText: link.name,
|
|
2439
|
-
keyboardType: "url",
|
|
2440
|
-
name: link.key,
|
|
2441
|
-
placeholder: link.placeholder
|
|
2442
|
-
}));
|
|
2443
|
-
|
|
2444
|
-
// src/formFields/contactUs.ts
|
|
2445
|
-
var contactUsFields = [
|
|
2446
|
-
{
|
|
2447
|
-
helperText: "Enter first name *",
|
|
2448
|
-
keyboardType: "default",
|
|
2449
|
-
name: "firstName",
|
|
2450
|
-
placeholder: "First Name"
|
|
2451
|
-
},
|
|
2452
|
-
{
|
|
2453
|
-
helperText: "Enter last name *",
|
|
2454
|
-
keyboardType: "default",
|
|
2455
|
-
name: "lastName",
|
|
2456
|
-
placeholder: "Last Name"
|
|
2457
|
-
},
|
|
2458
|
-
{
|
|
2459
|
-
...emailField,
|
|
2460
|
-
helperText: "Enter email address *"
|
|
2461
|
-
},
|
|
2462
|
-
{
|
|
2463
|
-
helperText: "Enter your message *",
|
|
2464
|
-
isTextArea: true,
|
|
2465
|
-
keyboardType: "default",
|
|
2466
|
-
name: "message",
|
|
2467
|
-
placeholder: "Message"
|
|
2468
|
-
}
|
|
2469
|
-
];
|
|
2470
|
-
|
|
2471
|
-
// src/graphql/queries/event.ts
|
|
2472
|
-
var import_client2 = require("@apollo/client");
|
|
2473
|
-
|
|
2474
|
-
// src/graphql/queries/global.ts
|
|
2475
|
-
var import_client = require("@apollo/client");
|
|
2476
|
-
var POSTER_USAGE_FIELDS_FRAGMENT = import_client.gql`
|
|
2477
|
-
fragment PosterUsageFields on PosterUsageType {
|
|
2478
|
-
month
|
|
2479
|
-
count
|
|
2480
|
-
}
|
|
2481
|
-
`;
|
|
2482
|
-
var SOCIAL_MEDIA_FIELDS_FRAGMENT = import_client.gql`
|
|
2483
|
-
fragment SocialMediaFields on SocialMediaType {
|
|
2484
|
-
name
|
|
2485
|
-
link
|
|
2486
|
-
}
|
|
2487
|
-
`;
|
|
2488
|
-
var RESOURCE_IMAGE_FIELDS_FRAGMENT = import_client.gql`
|
|
2489
|
-
fragment ResourceImageFields on ResourceImageType {
|
|
2490
|
-
active
|
|
2491
|
-
source
|
|
2492
|
-
title
|
|
2493
|
-
}
|
|
2494
|
-
`;
|
|
2495
|
-
var OWNER_FIELDS_FRAGMENT = import_client.gql`
|
|
2496
|
-
fragment OwnerFields on OwnerType {
|
|
2497
|
-
email
|
|
2498
|
-
userId
|
|
2499
|
-
}
|
|
2500
|
-
`;
|
|
2501
|
-
var CATEGORY_FIELDS_FRAGMENT = import_client.gql`
|
|
2502
|
-
fragment CategoryFields on CategoryType {
|
|
2503
|
-
id
|
|
2504
|
-
name
|
|
2505
|
-
subcategories {
|
|
2506
|
-
id
|
|
2507
|
-
items {
|
|
2508
|
-
id
|
|
2509
|
-
name
|
|
2510
|
-
}
|
|
2511
|
-
name
|
|
2512
|
-
}
|
|
2513
|
-
}
|
|
2514
|
-
`;
|
|
2515
|
-
var LICENCE_FIELDS_FRAGMENT = import_client.gql`
|
|
2516
|
-
fragment LicenceFields on UserLicenceType {
|
|
2517
|
-
expiryDate
|
|
2518
|
-
issuedDate
|
|
2519
|
-
licenceType
|
|
2520
|
-
prevLicenceType
|
|
2521
|
-
}
|
|
2522
|
-
`;
|
|
2523
|
-
var TERMS_AGREEMENT_FIELDS_FRAGMENT = import_client.gql`
|
|
2524
|
-
fragment TermsAgreementFields on TermsAgreementType {
|
|
2525
|
-
appBuildNumber
|
|
2526
|
-
appId
|
|
2527
|
-
appVersion
|
|
2528
|
-
brand
|
|
2529
|
-
deviceName
|
|
2530
|
-
installationId
|
|
2531
|
-
manufacturer
|
|
2532
|
-
modelName
|
|
2533
|
-
osName
|
|
2534
|
-
osVersion
|
|
2535
|
-
termVersion
|
|
2536
|
-
timestamp
|
|
2537
|
-
}
|
|
2538
|
-
`;
|
|
2539
|
-
var DATETIME_FIELDS_FRAGMENT = import_client.gql`
|
|
2540
|
-
fragment DateTimeFields on DateTimeType {
|
|
2541
|
-
dateStatus
|
|
2542
|
-
endDate
|
|
2543
|
-
endTime
|
|
2544
|
-
startDate
|
|
2545
|
-
startTime
|
|
2546
|
-
}
|
|
2547
|
-
`;
|
|
2548
|
-
var LOCATION_GEO_FIELDS_FRAGMENT = import_client.gql`
|
|
2549
|
-
fragment LocationGeoFields on LocationGeoType {
|
|
2550
|
-
coordinates
|
|
2551
|
-
type
|
|
2552
|
-
}
|
|
2553
|
-
`;
|
|
2554
|
-
var LOCATION_FIELDS_FRAGMENT = import_client.gql`
|
|
2555
|
-
fragment LocationFields on LocationType {
|
|
2556
|
-
city
|
|
2557
|
-
country
|
|
2558
|
-
fullAddress
|
|
2559
|
-
geo {
|
|
2560
|
-
...LocationGeoFields
|
|
2561
|
-
}
|
|
2562
|
-
latitude
|
|
2563
|
-
longitude
|
|
2564
|
-
region
|
|
2565
|
-
}
|
|
2566
|
-
${LOCATION_GEO_FIELDS_FRAGMENT}
|
|
2567
|
-
`;
|
|
2568
|
-
var USER_ACTIVITY_FIELDS_FRAGMENT = import_client.gql`
|
|
2569
|
-
fragment UserActivityFields on UserActivityType {
|
|
2570
|
-
favourites {
|
|
2571
|
-
events
|
|
2572
|
-
partners
|
|
2573
|
-
vendors
|
|
2574
|
-
}
|
|
2575
|
-
going {
|
|
2576
|
-
events {
|
|
2577
|
-
resourceId
|
|
2578
|
-
dateTime {
|
|
2579
|
-
...DateTimeFields
|
|
2580
|
-
}
|
|
2581
|
-
}
|
|
2582
|
-
}
|
|
2583
|
-
interested {
|
|
2584
|
-
events {
|
|
2585
|
-
resourceId
|
|
2586
|
-
dateTime {
|
|
2587
|
-
...DateTimeFields
|
|
2588
|
-
}
|
|
2589
|
-
}
|
|
2590
|
-
}
|
|
2591
|
-
present {
|
|
2592
|
-
events {
|
|
2593
|
-
resourceId
|
|
2594
|
-
dateTime {
|
|
2595
|
-
...DateTimeFields
|
|
2596
|
-
}
|
|
2597
|
-
}
|
|
2598
|
-
}
|
|
2599
|
-
}
|
|
2600
|
-
${DATETIME_FIELDS_FRAGMENT}
|
|
2601
|
-
`;
|
|
2602
|
-
var REDEEMED_REWARD_FIELDS_FRAGMENT = import_client.gql`
|
|
2603
|
-
fragment RedeemedRewardFields on RedeemedRewardType {
|
|
2604
|
-
name
|
|
2605
|
-
pointsUsed
|
|
2606
|
-
redeemedAt
|
|
2607
|
-
}
|
|
2608
|
-
`;
|
|
2609
|
-
var STRIPE_FIELDS_FRAGMENT = import_client.gql`
|
|
2610
|
-
fragment StripeSubscriptionFields on StripeSubscriptionType {
|
|
2611
|
-
customerId
|
|
2612
|
-
subscriptionId
|
|
2613
|
-
status
|
|
2614
|
-
currentPlan
|
|
2615
|
-
startDate
|
|
2616
|
-
endDate
|
|
2617
|
-
}
|
|
2618
|
-
`;
|
|
2619
|
-
var USER_FIELDS_FRAGMENT = import_client.gql`
|
|
2620
|
-
fragment UserFields on UserType {
|
|
2621
|
-
_id
|
|
2622
|
-
active
|
|
2623
|
-
affiliate
|
|
2624
|
-
avatar {
|
|
2625
|
-
...ResourceImageFields
|
|
2626
|
-
}
|
|
2627
|
-
createdAt
|
|
2628
|
-
deletedAt
|
|
2629
|
-
email
|
|
2630
|
-
events
|
|
2631
|
-
firstName
|
|
2632
|
-
game
|
|
2633
|
-
isTester
|
|
2634
|
-
lastName
|
|
2635
|
-
licences {
|
|
2636
|
-
...LicenceFields
|
|
2637
|
-
}
|
|
2638
|
-
location {
|
|
2639
|
-
...LocationFields
|
|
2640
|
-
}
|
|
2641
|
-
partner
|
|
2642
|
-
overallPoints
|
|
2643
|
-
platform
|
|
2644
|
-
preferredRegion
|
|
2645
|
-
permissions
|
|
2646
|
-
promoCodes
|
|
2647
|
-
roles
|
|
2648
|
-
redeemedRewards {
|
|
2649
|
-
...RedeemedRewardFields
|
|
2650
|
-
}
|
|
2651
|
-
school
|
|
2652
|
-
stripe {
|
|
2653
|
-
...StripeSubscriptionFields
|
|
2654
|
-
}
|
|
2655
|
-
termsAgreement {
|
|
2656
|
-
...TermsAgreementFields
|
|
2657
|
-
}
|
|
2658
|
-
userActivity {
|
|
2659
|
-
...UserActivityFields
|
|
2660
|
-
}
|
|
2661
|
-
vendor
|
|
2662
|
-
updatedAt
|
|
2663
|
-
}
|
|
2664
|
-
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
2665
|
-
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
2666
|
-
${USER_ACTIVITY_FIELDS_FRAGMENT}
|
|
2667
|
-
${LICENCE_FIELDS_FRAGMENT}
|
|
2668
|
-
${LOCATION_FIELDS_FRAGMENT}
|
|
2669
|
-
${REDEEMED_REWARD_FIELDS_FRAGMENT}
|
|
2670
|
-
${STRIPE_FIELDS_FRAGMENT}
|
|
2671
|
-
`;
|
|
2672
|
-
var STALL_TYPE_FIELDS_FRAGMENT = import_client.gql`
|
|
2673
|
-
fragment StallTypeFields on StallTypeType {
|
|
2674
|
-
label
|
|
2675
|
-
price
|
|
2676
|
-
stallCapacity
|
|
2677
|
-
}
|
|
2678
|
-
`;
|
|
2679
|
-
var RELATION_DATES_FRAGMENT = import_client.gql`
|
|
2680
|
-
fragment RelationDates on RelationDateType {
|
|
2681
|
-
dateTime {
|
|
2682
|
-
dateStatus
|
|
2683
|
-
endDate
|
|
2684
|
-
endTime
|
|
2685
|
-
startDate
|
|
2686
|
-
startTime
|
|
2687
|
-
stallType {
|
|
2688
|
-
...StallTypeFields
|
|
2689
|
-
}
|
|
2690
|
-
}
|
|
2691
|
-
lastUpdateBy {
|
|
2692
|
-
resourceId
|
|
2693
|
-
userEmail
|
|
2694
|
-
}
|
|
2695
|
-
paymentReference
|
|
2696
|
-
status
|
|
2697
|
-
}
|
|
2698
|
-
${STALL_TYPE_FIELDS_FRAGMENT}
|
|
2699
|
-
`;
|
|
2700
|
-
var CONTACT_DETAILS_FIELDS_FRAGMENT = import_client.gql`
|
|
2701
|
-
fragment ContactDetailsFields on ContactDetailsType {
|
|
2702
|
-
email
|
|
2703
|
-
landlinePhone
|
|
2704
|
-
mobilePhone
|
|
2705
|
-
}
|
|
2706
|
-
`;
|
|
2707
|
-
var EVENT_LIST_ITEM = import_client.gql`
|
|
2708
|
-
fragment EventListItemFields on EventListItemType {
|
|
2709
|
-
_id
|
|
2710
|
-
active
|
|
2711
|
-
approvedAt
|
|
2712
|
-
claimed
|
|
2713
|
-
cover {
|
|
2714
|
-
...ResourceImageFields
|
|
2715
|
-
}
|
|
2716
|
-
createdAt
|
|
2717
|
-
dateTime {
|
|
2718
|
-
...DateTimeFields
|
|
2719
|
-
}
|
|
2720
|
-
deletedAt
|
|
2721
|
-
description
|
|
2722
|
-
eventType
|
|
2723
|
-
googlePlaceId
|
|
2724
|
-
images {
|
|
2725
|
-
...ResourceImageFields
|
|
2726
|
-
}
|
|
2727
|
-
location {
|
|
2728
|
-
...LocationFields
|
|
2729
|
-
}
|
|
2730
|
-
logo {
|
|
2731
|
-
...ResourceImageFields
|
|
2732
|
-
}
|
|
2733
|
-
name
|
|
2734
|
-
rainOrShine
|
|
2735
|
-
rating
|
|
2736
|
-
region
|
|
2737
|
-
relations {
|
|
2738
|
-
relationId
|
|
2739
|
-
relationDates {
|
|
2740
|
-
...RelationDates
|
|
2741
|
-
}
|
|
2742
|
-
}
|
|
2743
|
-
reviewCount
|
|
2744
|
-
slug
|
|
2745
|
-
updatedAt
|
|
2746
|
-
}
|
|
2747
|
-
${DATETIME_FIELDS_FRAGMENT}
|
|
2748
|
-
${LOCATION_FIELDS_FRAGMENT}
|
|
2749
|
-
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
2750
|
-
${RELATION_DATES_FRAGMENT}
|
|
2751
|
-
`;
|
|
2752
|
-
var RELATED_POST_FIELDS_FRAGMENT = import_client.gql`
|
|
2753
|
-
fragment RelatedPostFields on RelatedPostType {
|
|
2754
|
-
postActive
|
|
2755
|
-
postId
|
|
2756
|
-
postSlug
|
|
2757
|
-
postType
|
|
2758
|
-
}
|
|
2759
|
-
`;
|
|
2760
|
-
var SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT = import_client.gql`
|
|
2761
|
-
fragment SocialShareResourceFields on SocialShareResourceType {
|
|
2762
|
-
qrCode {
|
|
2763
|
-
...ResourceImageFields
|
|
2764
|
-
}
|
|
2765
|
-
socialImage {
|
|
2766
|
-
...ResourceImageFields
|
|
2767
|
-
}
|
|
2768
|
-
}
|
|
2769
|
-
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
2770
|
-
`;
|
|
2771
|
-
|
|
2772
|
-
// src/graphql/queries/event.ts
|
|
2773
|
-
var EVENT_INFO = import_client2.gql`
|
|
2774
|
-
fragment EventInfoFields on EventInfoType {
|
|
2775
|
-
_id
|
|
2776
|
-
applicationDeadlineHours
|
|
2777
|
-
dateTime {
|
|
2778
|
-
dateStatus
|
|
2779
|
-
endDate
|
|
2780
|
-
endTime
|
|
2781
|
-
stallTypes {
|
|
2782
|
-
...StallTypeFields
|
|
2783
|
-
}
|
|
2784
|
-
startDate
|
|
2785
|
-
startTime
|
|
2786
|
-
}
|
|
2787
|
-
eventId
|
|
2788
|
-
packInTime
|
|
2789
|
-
paymentDueHours
|
|
2790
|
-
paymentInfo {
|
|
2791
|
-
accountHolderName
|
|
2792
|
-
accountNumber
|
|
2793
|
-
link
|
|
2794
|
-
paymentMethod
|
|
2795
|
-
}
|
|
2796
|
-
refundPolicy {
|
|
2797
|
-
category
|
|
2798
|
-
label
|
|
2799
|
-
value
|
|
2800
|
-
}
|
|
2801
|
-
requirements {
|
|
2802
|
-
category
|
|
2803
|
-
label
|
|
2804
|
-
value
|
|
2805
|
-
}
|
|
2806
|
-
}
|
|
2807
|
-
${STALL_TYPE_FIELDS_FRAGMENT}
|
|
2808
|
-
`;
|
|
2809
|
-
var EVENT = import_client2.gql`
|
|
2810
|
-
fragment EventFields on EventType {
|
|
2811
|
-
_id
|
|
2812
|
-
active
|
|
2813
|
-
adIds
|
|
2814
|
-
approvedAt
|
|
2815
|
-
cover {
|
|
2816
|
-
...ResourceImageFields
|
|
2817
|
-
}
|
|
2818
|
-
claimed
|
|
2819
|
-
createdAt
|
|
2820
|
-
contactDetails {
|
|
2821
|
-
...ContactDetailsFields
|
|
2822
|
-
}
|
|
2823
|
-
dateTime {
|
|
2824
|
-
...DateTimeFields
|
|
2825
|
-
}
|
|
2826
|
-
description
|
|
2827
|
-
deletedAt
|
|
2828
|
-
googlePlaceId
|
|
2829
|
-
images {
|
|
2830
|
-
...ResourceImageFields
|
|
2831
|
-
}
|
|
2832
|
-
eventType
|
|
2833
|
-
location {
|
|
2834
|
-
...LocationFields
|
|
2835
|
-
}
|
|
2836
|
-
logo {
|
|
2837
|
-
...ResourceImageFields
|
|
2838
|
-
}
|
|
2839
|
-
eventInfoId
|
|
2840
|
-
name
|
|
2841
|
-
nzbn
|
|
2842
|
-
owner {
|
|
2843
|
-
...OwnerFields
|
|
2844
|
-
}
|
|
2845
|
-
promoCodes
|
|
2846
|
-
provider
|
|
2847
|
-
posterUsage {
|
|
2848
|
-
...PosterUsageFields
|
|
2849
|
-
}
|
|
2850
|
-
region
|
|
2851
|
-
relations {
|
|
2852
|
-
relationId
|
|
2853
|
-
relationDates {
|
|
2854
|
-
...RelationDates
|
|
2855
|
-
}
|
|
2856
|
-
}
|
|
2857
|
-
rating
|
|
2858
|
-
reviewCount
|
|
2859
|
-
rainOrShine
|
|
2860
|
-
relatedPost {
|
|
2861
|
-
...RelatedPostFields
|
|
2862
|
-
}
|
|
2863
|
-
socialMedia {
|
|
2864
|
-
...SocialMediaFields
|
|
2865
|
-
}
|
|
2866
|
-
sharePublic {
|
|
2867
|
-
...SocialShareResourceFields
|
|
2868
|
-
}
|
|
2869
|
-
shareRelation {
|
|
2870
|
-
...SocialShareResourceFields
|
|
2871
|
-
}
|
|
2872
|
-
slug
|
|
2873
|
-
tags
|
|
2874
|
-
termsAgreement {
|
|
2875
|
-
...TermsAgreementFields
|
|
2876
|
-
}
|
|
2877
|
-
updatedAt
|
|
2878
|
-
}
|
|
2879
|
-
${DATETIME_FIELDS_FRAGMENT}
|
|
2880
|
-
${LOCATION_FIELDS_FRAGMENT}
|
|
2881
|
-
${OWNER_FIELDS_FRAGMENT}
|
|
2882
|
-
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
2883
|
-
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
2884
|
-
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
2885
|
-
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
2886
|
-
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
2887
|
-
${RELATION_DATES_FRAGMENT}
|
|
2888
|
-
${RELATED_POST_FIELDS_FRAGMENT}
|
|
2889
|
-
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
2890
|
-
`;
|
|
2891
|
-
var GET_EVENTS = import_client2.gql`
|
|
2892
|
-
query getEvents($dateStatus: EventDateStatusEnumType) {
|
|
2893
|
-
events(dateStatus: $dateStatus) {
|
|
2894
|
-
...EventListItemFields
|
|
2895
|
-
}
|
|
2896
|
-
}
|
|
2897
|
-
${EVENT_LIST_ITEM}
|
|
2898
|
-
`;
|
|
2899
|
-
var GET_EVENT = import_client2.gql`
|
|
2900
|
-
query getEvent($_id: ID!) {
|
|
2901
|
-
event(_id: $_id) {
|
|
2902
|
-
...EventFields
|
|
2903
|
-
}
|
|
2904
|
-
}
|
|
2905
|
-
${EVENT}
|
|
2906
|
-
`;
|
|
2907
|
-
var GET_EVENT_BY_PLACE_ID = import_client2.gql`
|
|
2908
|
-
query getEventByPlaceId($googlePlaceId: String!) {
|
|
2909
|
-
eventByPlaceId(googlePlaceId: $googlePlaceId) {
|
|
2910
|
-
...EventListItemFields
|
|
2911
|
-
}
|
|
2912
|
-
}
|
|
2913
|
-
${EVENT_LIST_ITEM}
|
|
2914
|
-
`;
|
|
2915
|
-
var GET_EVENTS_BY_REGION = import_client2.gql`
|
|
2916
|
-
query getEventsByRegion(
|
|
2917
|
-
$region: String!
|
|
2918
|
-
$options: ResourcesByRegionOptions
|
|
2919
|
-
$dateStatus: EventDateStatusEnumType
|
|
2920
|
-
) {
|
|
2921
|
-
eventsByRegion(
|
|
2922
|
-
region: $region
|
|
2923
|
-
options: $options
|
|
2924
|
-
dateStatus: $dateStatus
|
|
2925
|
-
) {
|
|
2926
|
-
...EventListItemFields
|
|
2927
|
-
}
|
|
2928
|
-
}
|
|
2929
|
-
${EVENT_LIST_ITEM}
|
|
2930
|
-
`;
|
|
2931
|
-
var SEARCH_EVENTS = import_client2.gql`
|
|
2932
|
-
query searchEvents(
|
|
2933
|
-
$region: String!
|
|
2934
|
-
$search: String
|
|
2935
|
-
$tags: [String]
|
|
2936
|
-
$dateStatus: EventDateStatusEnumType
|
|
2937
|
-
) {
|
|
2938
|
-
eventsSearch(
|
|
2939
|
-
region: $region
|
|
2940
|
-
search: $search
|
|
2941
|
-
tags: $tags
|
|
2942
|
-
dateStatus: $dateStatus
|
|
2943
|
-
) {
|
|
2944
|
-
...EventListItemFields
|
|
2945
|
-
}
|
|
2946
|
-
}
|
|
2947
|
-
${EVENT_LIST_ITEM}
|
|
2948
|
-
`;
|
|
2949
|
-
var GET_EVENTS_NEAR_ME = import_client2.gql`
|
|
2950
|
-
query getEventsNearMe(
|
|
2951
|
-
$latitude: Float!
|
|
2952
|
-
$longitude: Float!
|
|
2953
|
-
$radius: Int
|
|
2954
|
-
$dateStatus: EventDateStatusEnumType
|
|
2955
|
-
) {
|
|
2956
|
-
eventsNearMe(
|
|
2957
|
-
latitude: $latitude
|
|
2958
|
-
longitude: $longitude
|
|
2959
|
-
radius: $radius
|
|
2960
|
-
dateStatus: $dateStatus
|
|
2961
|
-
) {
|
|
2962
|
-
...EventListItemFields
|
|
2963
|
-
}
|
|
2964
|
-
}
|
|
2965
|
-
${EVENT_LIST_ITEM}
|
|
2966
|
-
`;
|
|
2967
|
-
var GET_EVENT_INFO = import_client2.gql`
|
|
2968
|
-
query getEventInfo($eventId: ID!) {
|
|
2969
|
-
eventInfo(eventId: $eventId) {
|
|
2970
|
-
...EventInfoFields
|
|
2971
|
-
}
|
|
2972
|
-
}
|
|
2973
|
-
${EVENT_INFO}
|
|
2974
|
-
`;
|
|
2975
|
-
|
|
2976
|
-
// src/graphql/queries/vendor.ts
|
|
2977
|
-
var import_client3 = require("@apollo/client");
|
|
2978
|
-
var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
|
|
2979
|
-
fragment VendorDateTimeFields on VendorDateTimeType {
|
|
2980
|
-
dateStatus
|
|
2981
|
-
endDate
|
|
2982
|
-
endTime
|
|
2983
|
-
startDate
|
|
2984
|
-
startTime
|
|
2985
|
-
}
|
|
2986
|
-
`;
|
|
2987
|
-
var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client3.gql`
|
|
2988
|
-
fragment VendorProductListFields on VendorProductListType {
|
|
2989
|
-
description
|
|
2990
|
-
name
|
|
2991
|
-
price
|
|
2992
|
-
priceUnit
|
|
2993
|
-
productGroups
|
|
2994
|
-
}
|
|
2995
|
-
`;
|
|
2996
|
-
var VENDOR = import_client3.gql`
|
|
2997
|
-
fragment VendorFields on VendorType {
|
|
2998
|
-
_id
|
|
2999
|
-
active
|
|
3000
|
-
adIds
|
|
3001
|
-
approvedAt
|
|
3002
|
-
availability {
|
|
3003
|
-
corporate
|
|
3004
|
-
private
|
|
3005
|
-
school
|
|
3006
|
-
}
|
|
3007
|
-
vendorInfoId
|
|
3008
|
-
categories {
|
|
3009
|
-
...CategoryFields
|
|
3010
|
-
}
|
|
3011
|
-
calendar {
|
|
3012
|
-
active
|
|
3013
|
-
calendarData {
|
|
3014
|
-
dateTime {
|
|
3015
|
-
...VendorDateTimeFields
|
|
3016
|
-
}
|
|
3017
|
-
description
|
|
3018
|
-
location {
|
|
3019
|
-
...LocationFields
|
|
3020
|
-
}
|
|
3021
|
-
}
|
|
3022
|
-
}
|
|
3023
|
-
contactDetails {
|
|
3024
|
-
...ContactDetailsFields
|
|
3025
|
-
}
|
|
3026
|
-
cover {
|
|
3027
|
-
...ResourceImageFields
|
|
3028
|
-
}
|
|
3029
|
-
createdAt
|
|
3030
|
-
claimed
|
|
3031
|
-
description
|
|
3032
|
-
deletedAt
|
|
3033
|
-
foodTruck
|
|
3034
|
-
images {
|
|
3035
|
-
...ResourceImageFields
|
|
3036
|
-
}
|
|
3037
|
-
logo {
|
|
3038
|
-
...ResourceImageFields
|
|
3039
|
-
}
|
|
3040
|
-
name
|
|
3041
|
-
owner {
|
|
3042
|
-
...OwnerFields
|
|
3043
|
-
}
|
|
3044
|
-
products {
|
|
3045
|
-
active
|
|
3046
|
-
productsList {
|
|
3047
|
-
...VendorProductListFields
|
|
3048
|
-
}
|
|
3049
|
-
}
|
|
3050
|
-
promoCodes
|
|
3051
|
-
posterUsage {
|
|
3052
|
-
...PosterUsageFields
|
|
3053
|
-
}
|
|
3054
|
-
rating
|
|
3055
|
-
region
|
|
3056
|
-
reviewCount
|
|
3057
|
-
relatedPost {
|
|
3058
|
-
...RelatedPostFields
|
|
3059
|
-
}
|
|
3060
|
-
relations {
|
|
3061
|
-
relationId
|
|
3062
|
-
relationDates {
|
|
3063
|
-
...RelationDates
|
|
3064
|
-
}
|
|
3065
|
-
}
|
|
3066
|
-
slug
|
|
3067
|
-
socialMedia {
|
|
3068
|
-
...SocialMediaFields
|
|
3069
|
-
}
|
|
3070
|
-
sharePublic {
|
|
3071
|
-
...SocialShareResourceFields
|
|
3072
|
-
}
|
|
3073
|
-
shareRelation {
|
|
3074
|
-
...SocialShareResourceFields
|
|
3075
|
-
}
|
|
3076
|
-
termsAgreement {
|
|
3077
|
-
...TermsAgreementFields
|
|
3078
|
-
}
|
|
3079
|
-
updatedAt
|
|
3080
|
-
vendorType
|
|
3081
|
-
unregisteredVendorId
|
|
3082
|
-
}
|
|
3083
|
-
${CATEGORY_FIELDS_FRAGMENT}
|
|
3084
|
-
${VENDOR_DATETIME_FIELDS_FRAGMENT}
|
|
3085
|
-
${LOCATION_FIELDS_FRAGMENT}
|
|
3086
|
-
${OWNER_FIELDS_FRAGMENT}
|
|
3087
|
-
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
3088
|
-
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
3089
|
-
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
3090
|
-
${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
|
|
3091
|
-
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
3092
|
-
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
3093
|
-
${RELATION_DATES_FRAGMENT}
|
|
3094
|
-
${RELATED_POST_FIELDS_FRAGMENT}
|
|
3095
|
-
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
3096
|
-
`;
|
|
3097
|
-
var VENDOR_ATTRIBUTES_FRAGMENT = import_client3.gql`
|
|
3098
|
-
fragment VendorAttributesFields on VendorAttributesType {
|
|
3099
|
-
details
|
|
3100
|
-
isRequired
|
|
3101
|
-
}
|
|
3102
|
-
`;
|
|
3103
|
-
var VENDOR_INFO = import_client3.gql`
|
|
3104
|
-
fragment VendorInfoFields on VendorInfoType {
|
|
3105
|
-
_id
|
|
3106
|
-
compliance {
|
|
3107
|
-
foodBeverageLicense
|
|
3108
|
-
liabilityInsurance
|
|
3109
|
-
}
|
|
3110
|
-
documents {
|
|
3111
|
-
...ResourceImageFields
|
|
3112
|
-
}
|
|
3113
|
-
requirements {
|
|
3114
|
-
electricity {
|
|
3115
|
-
...VendorAttributesFields
|
|
3116
|
-
}
|
|
3117
|
-
gazebo {
|
|
3118
|
-
...VendorAttributesFields
|
|
3119
|
-
}
|
|
3120
|
-
table {
|
|
3121
|
-
...VendorAttributesFields
|
|
3122
|
-
}
|
|
3123
|
-
}
|
|
3124
|
-
product {
|
|
3125
|
-
foodFlavors
|
|
3126
|
-
packaging
|
|
3127
|
-
priceRange {
|
|
3128
|
-
max
|
|
3129
|
-
min
|
|
3130
|
-
}
|
|
3131
|
-
producedIn
|
|
3132
|
-
}
|
|
3133
|
-
stallInfo {
|
|
3134
|
-
size {
|
|
3135
|
-
depth
|
|
3136
|
-
width
|
|
3137
|
-
}
|
|
3138
|
-
}
|
|
3139
|
-
vendorId
|
|
3140
|
-
}
|
|
3141
|
-
${VENDOR_ATTRIBUTES_FRAGMENT}
|
|
3142
|
-
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
3143
|
-
`;
|
|
3144
|
-
var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client3.gql`
|
|
3145
|
-
fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
|
|
3146
|
-
dateTime {
|
|
3147
|
-
...DateTimeFields
|
|
3148
|
-
}
|
|
3149
|
-
inviterId
|
|
3150
|
-
}
|
|
3151
|
-
${DATETIME_FIELDS_FRAGMENT}
|
|
3152
|
-
`;
|
|
3153
|
-
var UNREGISTERED_VENDOR = import_client3.gql`
|
|
3154
|
-
fragment UnregisteredVendorFields on UnregisteredVendorType {
|
|
3155
|
-
_id
|
|
3156
|
-
active
|
|
3157
|
-
categoryIds
|
|
3158
|
-
claimed
|
|
3159
|
-
createdAt
|
|
3160
|
-
deletedAt
|
|
3161
|
-
email
|
|
3162
|
-
invitations {
|
|
3163
|
-
...UnregisteredVendorInvitationFields
|
|
3164
|
-
}
|
|
3165
|
-
name
|
|
3166
|
-
region
|
|
3167
|
-
updatedAt
|
|
3168
|
-
}
|
|
3169
|
-
${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
|
|
3170
|
-
`;
|
|
3171
|
-
var GET_VENDORS = import_client3.gql`
|
|
3172
|
-
query getVendors {
|
|
3173
|
-
vendors {
|
|
3174
|
-
...VendorFields
|
|
3175
|
-
}
|
|
3176
|
-
}
|
|
3177
|
-
${VENDOR}
|
|
3178
|
-
`;
|
|
3179
|
-
var GET_VENDOR = import_client3.gql`
|
|
3180
|
-
query getVendor($_id: ID!) {
|
|
3181
|
-
vendor(_id: $_id) {
|
|
3182
|
-
...VendorFields
|
|
3183
|
-
}
|
|
3184
|
-
}
|
|
3185
|
-
${VENDOR}
|
|
3186
|
-
`;
|
|
3187
|
-
var GET_VENDORS_BY_REGION = import_client3.gql`
|
|
3188
|
-
query getVendorsByRegion(
|
|
3189
|
-
$region: String!
|
|
3190
|
-
$options: ResourcesByRegionOptions
|
|
3191
|
-
) {
|
|
3192
|
-
vendorsByRegion(region: $region, options: $options) {
|
|
3193
|
-
...VendorFields
|
|
3194
|
-
}
|
|
3195
|
-
}
|
|
3196
|
-
${VENDOR}
|
|
3197
|
-
`;
|
|
3198
|
-
var SEARCH_VENDORS = import_client3.gql`
|
|
3199
|
-
query searchVendors($search: String!, $region: String!) {
|
|
3200
|
-
vendorSearch(search: $search, region: $region) {
|
|
3201
|
-
...VendorFields
|
|
3202
|
-
}
|
|
3203
|
-
}
|
|
3204
|
-
${VENDOR}
|
|
3205
|
-
`;
|
|
3206
|
-
var GET_VENDOR_INFO = import_client3.gql`
|
|
3207
|
-
query getVendorInfo($vendorId: ID!) {
|
|
3208
|
-
vendorInfo(vendorId: $vendorId) {
|
|
3209
|
-
...VendorInfoFields
|
|
3210
|
-
}
|
|
3211
|
-
}
|
|
3212
|
-
${VENDOR_INFO}
|
|
3213
|
-
`;
|
|
3214
|
-
var GET_UNREGISTERED_VENDORS = import_client3.gql`
|
|
3215
|
-
query getUnregisteredVendors {
|
|
3216
|
-
unregisteredVendors {
|
|
3217
|
-
...UnregisteredVendorFields
|
|
3218
|
-
}
|
|
3219
|
-
}
|
|
3220
|
-
${UNREGISTERED_VENDOR}
|
|
3221
|
-
`;
|
|
3222
|
-
var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client3.gql`
|
|
3223
|
-
query getUnregisteredVendorsByInviterId($inviterId: ID!) {
|
|
3224
|
-
unregisteredVendorsByInviterId(inviterId: $inviterId) {
|
|
3225
|
-
...UnregisteredVendorFields
|
|
3226
|
-
}
|
|
3227
|
-
}
|
|
3228
|
-
${UNREGISTERED_VENDOR}
|
|
3229
|
-
`;
|
|
3230
|
-
var GET_UNREGISTERED_VENDOR = import_client3.gql`
|
|
3231
|
-
query getUnregisteredVendor($_id: ID!) {
|
|
3232
|
-
unregisteredVendor(_id: $_id) {
|
|
3233
|
-
...UnregisteredVendorFields
|
|
3234
|
-
}
|
|
3235
|
-
}
|
|
3236
|
-
${UNREGISTERED_VENDOR}
|
|
3237
|
-
`;
|
|
3238
|
-
|
|
3239
|
-
// src/graphql/queries/partner.ts
|
|
3240
|
-
var import_client4 = require("@apollo/client");
|
|
3241
|
-
var PARTNER = import_client4.gql`
|
|
3242
|
-
fragment PartnerFields on PartnerType {
|
|
3243
|
-
_id
|
|
3244
|
-
active
|
|
3245
|
-
adIds
|
|
3246
|
-
approvedAt
|
|
3247
|
-
cover {
|
|
3248
|
-
...ResourceImageFields
|
|
3249
|
-
}
|
|
3250
|
-
createdAt
|
|
3251
|
-
contactDetails {
|
|
3252
|
-
...ContactDetailsFields
|
|
3253
|
-
}
|
|
3254
|
-
description
|
|
3255
|
-
deletedAt
|
|
3256
|
-
images {
|
|
3257
|
-
...ResourceImageFields
|
|
3258
|
-
}
|
|
3259
|
-
location {
|
|
3260
|
-
...LocationFields
|
|
3261
|
-
}
|
|
3262
|
-
logo {
|
|
3263
|
-
...ResourceImageFields
|
|
3264
|
-
}
|
|
3265
|
-
name
|
|
3266
|
-
nzbn
|
|
3267
|
-
owner {
|
|
3268
|
-
...OwnerFields
|
|
3269
|
-
}
|
|
3270
|
-
partnerType
|
|
3271
|
-
posterUsage {
|
|
3272
|
-
...PosterUsageFields
|
|
3273
|
-
}
|
|
3274
|
-
rating
|
|
3275
|
-
region
|
|
3276
|
-
reviewCount
|
|
3277
|
-
relatedPost {
|
|
3278
|
-
...RelatedPostFields
|
|
3279
|
-
}
|
|
3280
|
-
socialMedia {
|
|
3281
|
-
...SocialMediaFields
|
|
3282
|
-
}
|
|
3283
|
-
slug
|
|
3284
|
-
sharePublic {
|
|
3285
|
-
...SocialShareResourceFields
|
|
3286
|
-
}
|
|
3287
|
-
termsAgreement {
|
|
3288
|
-
...TermsAgreementFields
|
|
3289
|
-
}
|
|
3290
|
-
updatedAt
|
|
3291
|
-
}
|
|
3292
|
-
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
3293
|
-
${LOCATION_FIELDS_FRAGMENT}
|
|
3294
|
-
${OWNER_FIELDS_FRAGMENT}
|
|
3295
|
-
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
3296
|
-
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
3297
|
-
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
3298
|
-
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
3299
|
-
${RELATED_POST_FIELDS_FRAGMENT}
|
|
3300
|
-
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
3301
|
-
`;
|
|
3302
|
-
var GET_PARTNERS = import_client4.gql`
|
|
3303
|
-
query getPartners {
|
|
3304
|
-
partners {
|
|
3305
|
-
...PartnerFields
|
|
3306
|
-
}
|
|
3307
|
-
}
|
|
3308
|
-
${PARTNER}
|
|
3309
|
-
`;
|
|
3310
|
-
var GET_PARTNER = import_client4.gql`
|
|
3311
|
-
query getPartner($_id: ID!) {
|
|
3312
|
-
partner(_id: $_id) {
|
|
3313
|
-
...PartnerFields
|
|
3314
|
-
}
|
|
3315
|
-
}
|
|
3316
|
-
${PARTNER}
|
|
3317
|
-
`;
|
|
3318
|
-
var GET_PARTNERS_BY_REGION = import_client4.gql`
|
|
3319
|
-
query getPartnersByRegion(
|
|
3320
|
-
$region: String!
|
|
3321
|
-
$options: ResourcesByRegionOptions
|
|
3322
|
-
) {
|
|
3323
|
-
partnersByRegion(region: $region, options: $options) {
|
|
3324
|
-
...PartnerFields
|
|
3325
|
-
}
|
|
3326
|
-
}
|
|
3327
|
-
${PARTNER}
|
|
3328
|
-
`;
|
|
3329
|
-
var SEARCH_PARTNERS = import_client4.gql`
|
|
3330
|
-
query searchPartners($search: String!, $region: String!) {
|
|
3331
|
-
partnersSearch(search: $search, region: $region) {
|
|
3332
|
-
...PartnerFields
|
|
3333
|
-
}
|
|
3334
|
-
}
|
|
3335
|
-
${PARTNER}
|
|
3336
|
-
`;
|
|
3337
|
-
|
|
3338
|
-
// src/graphql/queries/post.ts
|
|
3339
|
-
var import_client7 = require("@apollo/client");
|
|
3340
|
-
|
|
3341
|
-
// src/graphql/queries/game/dailyClue.ts
|
|
3342
|
-
var import_client5 = require("@apollo/client");
|
|
3343
|
-
var GAME_DATE_FIELDS_FRAGMENT = import_client5.gql`
|
|
3344
|
-
fragment GameDateFields on GameDateType {
|
|
3345
|
-
startDate
|
|
3346
|
-
endDate
|
|
3347
|
-
}
|
|
3348
|
-
`;
|
|
3349
|
-
var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client5.gql`
|
|
3350
|
-
fragment DailyClueBaseGameFields on DailyClueBaseGameType {
|
|
3351
|
-
gameDate {
|
|
3352
|
-
...GameDateFields
|
|
3353
|
-
}
|
|
3354
|
-
gameSolution
|
|
3355
|
-
}
|
|
3356
|
-
${GAME_DATE_FIELDS_FRAGMENT}
|
|
3357
|
-
`;
|
|
3358
|
-
var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client5.gql`
|
|
3359
|
-
fragment DailyClueGameDataFields on DailyClueGameDataType {
|
|
3360
|
-
gameFields {
|
|
3361
|
-
...DailyClueBaseGameFields
|
|
3362
|
-
}
|
|
3363
|
-
lastFoundDate
|
|
3364
|
-
points
|
|
3365
|
-
letterInfo {
|
|
3366
|
-
collected
|
|
3367
|
-
solutionShuffled
|
|
3368
|
-
todaysClue
|
|
3369
|
-
todaysLetter
|
|
3370
|
-
todaysPlacement
|
|
3371
|
-
}
|
|
3372
|
-
streak
|
|
3373
|
-
}
|
|
3374
|
-
${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
|
|
3375
|
-
`;
|
|
3376
|
-
|
|
3377
|
-
// src/graphql/queries/game/puzzleGame.ts
|
|
3378
|
-
var import_client6 = require("@apollo/client");
|
|
3379
|
-
var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client6.gql`
|
|
3380
|
-
fragment PuzzleAnswerFields on PuzzleAnswerType {
|
|
3381
|
-
answer
|
|
3382
|
-
answerId
|
|
3383
|
-
correct
|
|
3384
|
-
}
|
|
3385
|
-
`;
|
|
3386
|
-
var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client6.gql`
|
|
3387
|
-
fragment PuzzleQuestionFields on PuzzleQuestionType {
|
|
3388
|
-
answers {
|
|
3389
|
-
...PuzzleAnswerFields
|
|
3390
|
-
}
|
|
3391
|
-
question
|
|
3392
|
-
questionId
|
|
3393
|
-
}
|
|
3394
|
-
${PUZZLE_ANSWER_FIELDS_FRAGMENT}
|
|
3395
|
-
`;
|
|
3396
|
-
var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client6.gql`
|
|
3397
|
-
fragment PuzzleAnsweredQuestionFields on PuzzleAnsweredQuestionType {
|
|
3398
|
-
questionId
|
|
3399
|
-
selectedAnswerId
|
|
3400
|
-
}
|
|
3401
|
-
`;
|
|
3402
|
-
var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
|
|
3403
|
-
fragment PuzzleBaseGameFields on PuzzleBaseGameType {
|
|
3404
|
-
questions {
|
|
3405
|
-
...PuzzleQuestionFields
|
|
3406
|
-
}
|
|
3407
|
-
}
|
|
3408
|
-
${PUZZLE_QUESTION_FIELDS_FRAGMENT}
|
|
3409
|
-
`;
|
|
3410
|
-
var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
|
|
3411
|
-
fragment PuzzleGameDataFields on PuzzleGameDataType {
|
|
3412
|
-
gameFields {
|
|
3413
|
-
...PuzzleBaseGameFields
|
|
3414
|
-
}
|
|
3415
|
-
answeredQuestions {
|
|
3416
|
-
...PuzzleAnsweredQuestionFields
|
|
3417
|
-
}
|
|
3418
|
-
points
|
|
3419
|
-
streak
|
|
3420
|
-
}
|
|
3421
|
-
${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}
|
|
3422
|
-
${PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT}
|
|
3423
|
-
`;
|
|
3424
|
-
|
|
3425
|
-
// src/graphql/queries/post.ts
|
|
3426
|
-
var BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
|
|
3427
|
-
fragment BaseGameFields on BaseGameType {
|
|
3428
|
-
gameTypeId
|
|
3429
|
-
gameTitle
|
|
3430
|
-
gameType
|
|
3431
|
-
dailyClue {
|
|
3432
|
-
...DailyClueBaseGameFields
|
|
3433
|
-
}
|
|
3434
|
-
miniQuiz {
|
|
3435
|
-
...PuzzleBaseGameFields
|
|
3436
|
-
}
|
|
3437
|
-
oddOneOut {
|
|
3438
|
-
...PuzzleBaseGameFields
|
|
3439
|
-
}
|
|
3440
|
-
}
|
|
3441
|
-
${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
|
|
3442
|
-
${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}
|
|
3443
|
-
`;
|
|
3444
|
-
var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client7.gql`
|
|
3445
|
-
fragment PostContentDataFields on PostContentData {
|
|
3446
|
-
game {
|
|
3447
|
-
...BaseGameFields
|
|
3448
|
-
}
|
|
3449
|
-
textarea {
|
|
3450
|
-
title
|
|
3451
|
-
data
|
|
3452
|
-
}
|
|
3453
|
-
images {
|
|
3454
|
-
...ResourceImageFields
|
|
3455
|
-
}
|
|
3456
|
-
video {
|
|
3457
|
-
source
|
|
3458
|
-
title
|
|
3459
|
-
}
|
|
3460
|
-
list {
|
|
3461
|
-
title
|
|
3462
|
-
items {
|
|
3463
|
-
text
|
|
3464
|
-
}
|
|
3465
|
-
}
|
|
3466
|
-
}
|
|
3467
|
-
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
3468
|
-
${BASE_GAME_FIELDS_FRAGMENT}
|
|
3469
|
-
`;
|
|
3470
|
-
var POST_CONTENT_FIELDS_FRAGMENT = import_client7.gql`
|
|
3471
|
-
fragment PostContentFields on PostContentType {
|
|
3472
|
-
contentData {
|
|
3473
|
-
...PostContentDataFields
|
|
3474
|
-
}
|
|
3475
|
-
contentOrder
|
|
3476
|
-
contentType
|
|
3477
|
-
}
|
|
3478
|
-
${POST_CONTENT_DATA_FIELDS_FRAGMENT}
|
|
3479
|
-
`;
|
|
3480
|
-
var POST_RESOURCE_FIELDS_FRAGMENT = import_client7.gql`
|
|
3481
|
-
fragment PostResourceFields on PostResourceType {
|
|
3482
|
-
resourceId
|
|
3483
|
-
resourceSlug
|
|
3484
|
-
resourceRegion
|
|
3485
|
-
resourceType
|
|
3486
|
-
}
|
|
3487
|
-
`;
|
|
3488
|
-
var POST_FIELDS_FRAGMENT = import_client7.gql`
|
|
3489
|
-
fragment PostFields on PostType {
|
|
3490
|
-
_id
|
|
3491
|
-
active
|
|
3492
|
-
approvedAt
|
|
3493
|
-
caption
|
|
3494
|
-
content {
|
|
3495
|
-
...PostContentFields
|
|
3496
|
-
}
|
|
3497
|
-
cover {
|
|
3498
|
-
...ResourceImageFields
|
|
3499
|
-
}
|
|
3500
|
-
createdAt
|
|
3501
|
-
deletedAt
|
|
3502
|
-
postType
|
|
3503
|
-
resource {
|
|
3504
|
-
...PostResourceFields
|
|
3505
|
-
}
|
|
3506
|
-
tags
|
|
3507
|
-
title
|
|
3508
|
-
slug
|
|
3509
|
-
sharePublic {
|
|
3510
|
-
...SocialShareResourceFields
|
|
3511
|
-
}
|
|
3512
|
-
updatedAt
|
|
3513
|
-
}
|
|
3514
|
-
${POST_CONTENT_FIELDS_FRAGMENT}
|
|
3515
|
-
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
3516
|
-
${POST_RESOURCE_FIELDS_FRAGMENT}
|
|
3517
|
-
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
3518
|
-
`;
|
|
3519
|
-
var GET_POSTS = import_client7.gql`
|
|
3520
|
-
query getPosts {
|
|
3521
|
-
posts {
|
|
3522
|
-
...PostFields
|
|
3523
|
-
}
|
|
3524
|
-
}
|
|
3525
|
-
${POST_FIELDS_FRAGMENT}
|
|
3526
|
-
`;
|
|
3527
|
-
var GET_POST = import_client7.gql`
|
|
3528
|
-
query getPost($_id: ID!) {
|
|
3529
|
-
post(_id: $_id) {
|
|
3530
|
-
...PostFields
|
|
3531
|
-
}
|
|
3532
|
-
}
|
|
3533
|
-
${POST_FIELDS_FRAGMENT}
|
|
3534
|
-
`;
|
|
3535
|
-
var GET_POSTS_BY_TYPE = import_client7.gql`
|
|
3536
|
-
query getPostsByType($postType: PostTypeEnum!) {
|
|
3537
|
-
postsByType(postType: $postType) {
|
|
3538
|
-
...PostFields
|
|
3539
|
-
}
|
|
3540
|
-
}
|
|
3541
|
-
${POST_FIELDS_FRAGMENT}
|
|
3542
|
-
`;
|
|
3543
|
-
|
|
3544
|
-
// src/graphql/queries/shareSlug.ts
|
|
3545
|
-
var import_client8 = require("@apollo/client");
|
|
3546
|
-
var GET_EVENT_BY_SLUG = import_client8.gql`
|
|
3547
|
-
query getEventBySlug($slug: String!) {
|
|
3548
|
-
eventBySlug(slug: $slug) {
|
|
3549
|
-
_id
|
|
3550
|
-
}
|
|
3551
|
-
}
|
|
3552
|
-
`;
|
|
3553
|
-
var GET_VENDOR_BY_SLUG = import_client8.gql`
|
|
3554
|
-
query getVendorBySlug($slug: String!) {
|
|
3555
|
-
vendorBySlug(slug: $slug) {
|
|
3556
|
-
_id
|
|
3557
|
-
}
|
|
3558
|
-
}
|
|
3559
|
-
`;
|
|
3560
|
-
var GET_PARTNER_BY_SLUG = import_client8.gql`
|
|
3561
|
-
query getPartnerBySlug($slug: String!) {
|
|
3562
|
-
partnerBySlug(slug: $slug) {
|
|
3563
|
-
_id
|
|
3564
|
-
}
|
|
3565
|
-
}
|
|
3566
|
-
`;
|
|
3567
|
-
var GET_POST_BY_SLUG = import_client8.gql`
|
|
3568
|
-
query getPostBySlug($slug: String!, $postType: PostTypeEnum!) {
|
|
3569
|
-
postBySlug(slug: $slug, postType: $postType) {
|
|
3570
|
-
_id
|
|
3571
|
-
}
|
|
3572
|
-
}
|
|
3573
|
-
`;
|
|
3574
|
-
|
|
3575
|
-
// src/graphql/queries/relation.ts
|
|
3576
|
-
var import_client9 = require("@apollo/client");
|
|
3577
|
-
var RELATION_FIELDS_FRAGMENT = import_client9.gql`
|
|
3578
|
-
fragment RelationFields on RelationType {
|
|
3579
|
-
_id
|
|
3580
|
-
active
|
|
3581
|
-
chatId
|
|
3582
|
-
createdAt
|
|
3583
|
-
lastUpdateBy
|
|
3584
|
-
eventId
|
|
3585
|
-
relationDates {
|
|
3586
|
-
...RelationDates
|
|
3587
|
-
}
|
|
3588
|
-
relationType
|
|
3589
|
-
vendorId
|
|
3590
|
-
updatedAt
|
|
3591
|
-
}
|
|
3592
|
-
${RELATION_DATES_FRAGMENT}
|
|
3593
|
-
`;
|
|
3594
|
-
var GET_RELATION = import_client9.gql`
|
|
3595
|
-
query getRelation($_id: ID!) {
|
|
3596
|
-
relation(_id: $_id) {
|
|
3597
|
-
...RelationFields
|
|
3598
|
-
}
|
|
3599
|
-
}
|
|
3600
|
-
${RELATION_FIELDS_FRAGMENT}
|
|
3601
|
-
`;
|
|
3602
|
-
var GET_RELATION_BY_EVENT_AND_VENDOR = import_client9.gql`
|
|
3603
|
-
query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
|
|
3604
|
-
relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
|
|
3605
|
-
...RelationFields
|
|
3606
|
-
}
|
|
3607
|
-
}
|
|
3608
|
-
${RELATION_FIELDS_FRAGMENT}
|
|
3609
|
-
`;
|
|
3610
|
-
var GET_EVENT_RELATIONS = import_client9.gql`
|
|
3611
|
-
query getEventRelations($eventId: ID!) {
|
|
3612
|
-
eventRelations(eventId: $eventId) {
|
|
3613
|
-
...RelationFields
|
|
3614
|
-
}
|
|
3615
|
-
}
|
|
3616
|
-
${RELATION_FIELDS_FRAGMENT}
|
|
3617
|
-
`;
|
|
3618
|
-
var GET_VENDOR_RELATIONS = import_client9.gql`
|
|
3619
|
-
query getVendorRelations($vendorId: ID!) {
|
|
3620
|
-
vendorRelations(vendorId: $vendorId) {
|
|
3621
|
-
...RelationFields
|
|
3622
|
-
}
|
|
3623
|
-
}
|
|
3624
|
-
${RELATION_FIELDS_FRAGMENT}
|
|
3625
|
-
`;
|
|
3626
|
-
var GET_RESOURCE_CONNECTIONS = import_client9.gql`
|
|
3627
|
-
query getResourceConnections(
|
|
3628
|
-
$resourceId: ID!
|
|
3629
|
-
$resourceType: ResourceTypeEnum!
|
|
3630
|
-
) {
|
|
3631
|
-
resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
|
|
3632
|
-
events {
|
|
3633
|
-
...EventListItemFields
|
|
3634
|
-
}
|
|
3635
|
-
vendors {
|
|
3636
|
-
...VendorFields
|
|
3637
|
-
}
|
|
3638
|
-
}
|
|
3639
|
-
}
|
|
3640
|
-
${VENDOR}
|
|
3641
|
-
${EVENT_LIST_ITEM}
|
|
3642
|
-
`;
|
|
3643
|
-
|
|
3644
|
-
// src/graphql/toGraphqlQueryString.ts
|
|
3645
|
-
var import_graphql = require("graphql");
|
|
3646
|
-
|
|
3647
|
-
// src/graphql/hooks/admin/hooksMutation.ts
|
|
3648
|
-
var import_client11 = require("@apollo/client");
|
|
3649
|
-
|
|
3650
|
-
// src/graphql/mutations/admin.ts
|
|
3651
|
-
var import_client10 = require("@apollo/client");
|
|
3652
|
-
var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client10.gql`
|
|
3653
|
-
mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
|
|
3654
|
-
adminUpdateResourceType(input: $input) {
|
|
3655
|
-
data {
|
|
3656
|
-
active
|
|
3657
|
-
resourceId
|
|
3658
|
-
resourceType
|
|
3659
|
-
}
|
|
3660
|
-
message
|
|
3661
|
-
}
|
|
3662
|
-
}
|
|
3663
|
-
`;
|
|
3664
|
-
var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client10.gql`
|
|
3665
|
-
mutation adminResendUserVerificationEmail($userId: ID!) {
|
|
3666
|
-
adminResendUserVerificationEmail(userId: $userId) {
|
|
3667
|
-
data
|
|
3668
|
-
message
|
|
3669
|
-
}
|
|
3670
|
-
}
|
|
3671
|
-
`;
|
|
3672
|
-
var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client10.gql`
|
|
3673
|
-
mutation adminPermanentlyDeleteResource(
|
|
3674
|
-
$resourceId: ID!
|
|
3675
|
-
$resourceType: ResourceTypeEnum!
|
|
3676
|
-
) {
|
|
3677
|
-
adminPermanentlyDeleteResource(
|
|
3678
|
-
resourceId: $resourceId
|
|
3679
|
-
resourceType: $resourceType
|
|
3680
|
-
) {
|
|
3681
|
-
data
|
|
3682
|
-
message
|
|
3683
|
-
}
|
|
3684
|
-
}
|
|
3685
|
-
`;
|
|
3686
|
-
|
|
3687
|
-
// src/graphql/hooks/auth.ts
|
|
3688
|
-
var import_client13 = require("@apollo/client");
|
|
3689
|
-
|
|
3690
|
-
// src/graphql/mutations/auth.ts
|
|
3691
|
-
var import_client12 = require("@apollo/client");
|
|
3692
|
-
var REGISTER_MUTATION = import_client12.gql`
|
|
3693
|
-
mutation register($input: RegisterInputType!) {
|
|
3694
|
-
register(input: $input) {
|
|
3695
|
-
data {
|
|
3696
|
-
refreshToken
|
|
3697
|
-
token
|
|
3698
|
-
user {
|
|
3699
|
-
...UserFields
|
|
3700
|
-
}
|
|
3701
|
-
}
|
|
3702
|
-
message
|
|
3703
|
-
}
|
|
3704
|
-
}
|
|
3705
|
-
${USER_FIELDS_FRAGMENT}
|
|
3706
|
-
`;
|
|
3707
|
-
var LOGIN_MUTATION = import_client12.gql`
|
|
3708
|
-
mutation login($input: LoginInputType!) {
|
|
3709
|
-
login(input: $input) {
|
|
3710
|
-
data {
|
|
3711
|
-
refreshToken
|
|
3712
|
-
token
|
|
3713
|
-
user {
|
|
3714
|
-
...UserFields
|
|
3715
|
-
}
|
|
3716
|
-
}
|
|
3717
|
-
message
|
|
3718
|
-
}
|
|
3719
|
-
}
|
|
3720
|
-
${USER_FIELDS_FRAGMENT}
|
|
3721
|
-
`;
|
|
3722
|
-
var LOGOUT_MUTATION = import_client12.gql`
|
|
3723
|
-
mutation logout {
|
|
3724
|
-
logout {
|
|
3725
|
-
data
|
|
3726
|
-
message
|
|
3727
|
-
}
|
|
3728
|
-
}
|
|
3729
|
-
`;
|
|
3730
|
-
var REFRESH_TOKEN_MUTATION = import_client12.gql`
|
|
3731
|
-
mutation refreshToken($input: RefreshTokenInputType!) {
|
|
3732
|
-
refreshToken(input: $input) {
|
|
3733
|
-
data {
|
|
3734
|
-
refreshToken
|
|
3735
|
-
token
|
|
3736
|
-
}
|
|
3737
|
-
message
|
|
3738
|
-
}
|
|
3739
|
-
}
|
|
3740
|
-
`;
|
|
3741
|
-
var RESET_PASSWORD_MUTATION = import_client12.gql`
|
|
3742
|
-
mutation resetPassword($input: ResetPasswordInputType!) {
|
|
3743
|
-
resetPassword(input: $input) {
|
|
3744
|
-
data
|
|
3745
|
-
message
|
|
3746
|
-
}
|
|
3747
|
-
}
|
|
3748
|
-
`;
|
|
3749
|
-
var REQUEST_PASSWORD_RESET_MUTATION = import_client12.gql`
|
|
3750
|
-
mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
|
|
3751
|
-
requestPasswordReset(input: $input) {
|
|
3752
|
-
data
|
|
3753
|
-
message
|
|
3754
|
-
}
|
|
3755
|
-
}
|
|
3756
|
-
`;
|
|
3757
|
-
var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client12.gql`
|
|
3758
|
-
mutation validateVerificationToken(
|
|
3759
|
-
$input: ValidateVerificationTokenInputType!
|
|
3760
|
-
) {
|
|
3761
|
-
validateVerificationToken(input: $input) {
|
|
3762
|
-
data
|
|
3763
|
-
message
|
|
3764
|
-
}
|
|
3765
|
-
}
|
|
3766
|
-
`;
|
|
3767
|
-
|
|
3768
|
-
// src/graphql/hooks/chat/hooksMutation.ts
|
|
3769
|
-
var import_client16 = require("@apollo/client");
|
|
3770
|
-
|
|
3771
|
-
// src/graphql/mutations/chat.ts
|
|
3772
|
-
var import_client15 = require("@apollo/client");
|
|
3773
|
-
|
|
3774
|
-
// src/graphql/queries/chat.ts
|
|
3775
|
-
var import_client14 = require("@apollo/client");
|
|
3776
|
-
var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client14.gql`
|
|
3777
|
-
fragment ChatMessageFields on ChatMessageType {
|
|
3778
|
-
_id
|
|
3779
|
-
content
|
|
3780
|
-
createdAt
|
|
3781
|
-
replyToMessageId
|
|
3782
|
-
replyPreview {
|
|
3783
|
-
senderId
|
|
3784
|
-
senderName
|
|
3785
|
-
contentPreview
|
|
3786
|
-
}
|
|
3787
|
-
likedBy {
|
|
3788
|
-
userId
|
|
3789
|
-
createdAt
|
|
3790
|
-
}
|
|
3791
|
-
senderId
|
|
3792
|
-
seenBy {
|
|
3793
|
-
userId
|
|
3794
|
-
seenAt
|
|
3795
|
-
}
|
|
3796
|
-
updatedAt
|
|
3797
|
-
}
|
|
3798
|
-
`;
|
|
3799
|
-
var CHAT_PARTICIPANT = import_client14.gql`
|
|
3800
|
-
fragment ChatParticipantFields on ChatParticipantType {
|
|
3801
|
-
active
|
|
3802
|
-
userAvatar
|
|
3803
|
-
userEmail
|
|
3804
|
-
userId
|
|
3805
|
-
userName
|
|
3806
|
-
}
|
|
3807
|
-
`;
|
|
3808
|
-
var CHAT_FIELDS_FRAGMENT = import_client14.gql`
|
|
3809
|
-
fragment ChatFields on ChatType {
|
|
3810
|
-
_id
|
|
3811
|
-
active
|
|
3812
|
-
chatDescription
|
|
3813
|
-
chatName
|
|
3814
|
-
chatType
|
|
3815
|
-
createdAt
|
|
3816
|
-
deletedAt
|
|
3817
|
-
messages {
|
|
3818
|
-
...ChatMessageFields
|
|
3819
|
-
}
|
|
3820
|
-
participants {
|
|
3821
|
-
...ChatParticipantFields
|
|
3822
|
-
}
|
|
3823
|
-
region
|
|
3824
|
-
updatedAt
|
|
3825
|
-
}
|
|
3826
|
-
${CHAT_MESSAGE_FIELDS_FRAGMENT}
|
|
3827
|
-
${CHAT_PARTICIPANT}
|
|
3828
|
-
`;
|
|
3829
|
-
var CHAT = import_client14.gql`
|
|
3830
|
-
query chat($_id: ID!) {
|
|
3831
|
-
chat(_id: $_id) {
|
|
3832
|
-
...ChatFields
|
|
3833
|
-
}
|
|
3834
|
-
}
|
|
3835
|
-
${CHAT_FIELDS_FRAGMENT}
|
|
3836
|
-
`;
|
|
3837
|
-
var USER_CHATS = import_client14.gql`
|
|
3838
|
-
query userChats {
|
|
3839
|
-
userChats {
|
|
3840
|
-
...ChatFields
|
|
3841
|
-
}
|
|
3842
|
-
}
|
|
3843
|
-
${CHAT_FIELDS_FRAGMENT}
|
|
3844
|
-
`;
|
|
3845
|
-
var GET_CHATS_BY_REGION = import_client14.gql`
|
|
3846
|
-
query getChatsByRegion($region: String!) {
|
|
3847
|
-
chatsByRegion(region: $region) {
|
|
3848
|
-
...ChatFields
|
|
3849
|
-
}
|
|
3850
|
-
}
|
|
3851
|
-
${CHAT_FIELDS_FRAGMENT}
|
|
3852
|
-
`;
|
|
3853
|
-
var CHAT_REPORT_FIELDS_FRAGMENT = import_client14.gql`
|
|
3854
|
-
fragment ChatReportFields on ReportChatUserType {
|
|
3855
|
-
_id
|
|
3856
|
-
chatId
|
|
3857
|
-
createdAt
|
|
3858
|
-
reason {
|
|
3859
|
-
reasonType
|
|
3860
|
-
details
|
|
3861
|
-
}
|
|
3862
|
-
reportedUserId
|
|
3863
|
-
reporterUserId
|
|
3864
|
-
resolved
|
|
3865
|
-
updatedAt
|
|
3866
|
-
}
|
|
3867
|
-
`;
|
|
3868
|
-
var GET_REPORTED_CHAT_USERS = import_client14.gql`
|
|
3869
|
-
query getReportedChatUsers {
|
|
3870
|
-
reportedChatUsers {
|
|
3871
|
-
...ChatReportFields
|
|
3872
|
-
}
|
|
3873
|
-
}
|
|
3874
|
-
${CHAT_REPORT_FIELDS_FRAGMENT}
|
|
3875
|
-
`;
|
|
3876
|
-
|
|
3877
|
-
// src/graphql/mutations/chat.ts
|
|
3878
|
-
var CREATE_PRIVATE_CHAT_MUTATION = import_client15.gql`
|
|
3879
|
-
mutation createPrivateChat($userId: ID!) {
|
|
3880
|
-
createPrivateChat(userId: $userId) {
|
|
3881
|
-
data {
|
|
3882
|
-
...ChatFields
|
|
3883
|
-
}
|
|
3884
|
-
message
|
|
3885
|
-
}
|
|
3886
|
-
}
|
|
3887
|
-
${CHAT_FIELDS_FRAGMENT}
|
|
3888
|
-
`;
|
|
3889
|
-
var SEND_CHAT_MESSAGE_MUTATION = import_client15.gql`
|
|
3890
|
-
mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
|
|
3891
|
-
sendChatMessage(_id: $_id, input: $input) {
|
|
3892
|
-
data {
|
|
3893
|
-
...ChatFields
|
|
3894
|
-
}
|
|
3895
|
-
message
|
|
3896
|
-
}
|
|
3897
|
-
}
|
|
3898
|
-
${CHAT_FIELDS_FRAGMENT}
|
|
3899
|
-
`;
|
|
3900
|
-
var DELETE_CHAT_MUTATION = import_client15.gql`
|
|
3901
|
-
mutation deleteChat($_id: ID!) {
|
|
3902
|
-
deleteChat(_id: $_id) {
|
|
3903
|
-
data
|
|
3904
|
-
message
|
|
3905
|
-
}
|
|
3906
|
-
}
|
|
3907
|
-
`;
|
|
3908
|
-
var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client15.gql`
|
|
3909
|
-
mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
|
|
3910
|
-
addParticipantToChat(chatId: $chatId, userId: $userId) {
|
|
3911
|
-
data {
|
|
3912
|
-
...ChatFields
|
|
3913
|
-
}
|
|
3914
|
-
message
|
|
3915
|
-
}
|
|
3916
|
-
}
|
|
3917
|
-
${CHAT_FIELDS_FRAGMENT}
|
|
3918
|
-
`;
|
|
3919
|
-
var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client15.gql`
|
|
3920
|
-
mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
|
|
3921
|
-
removeParticipantFromChat(chatId: $chatId, userId: $userId) {
|
|
3922
|
-
data {
|
|
3923
|
-
success
|
|
3924
|
-
region
|
|
3925
|
-
}
|
|
3926
|
-
message
|
|
3927
|
-
}
|
|
3928
|
-
}
|
|
3929
|
-
`;
|
|
3930
|
-
var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client15.gql`
|
|
3931
|
-
mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
|
|
3932
|
-
toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
|
|
3933
|
-
data {
|
|
3934
|
-
...ChatFields
|
|
3935
|
-
}
|
|
3936
|
-
message
|
|
3937
|
-
}
|
|
3938
|
-
}
|
|
3939
|
-
${CHAT_FIELDS_FRAGMENT}
|
|
3940
|
-
`;
|
|
3941
|
-
var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client15.gql`
|
|
3942
|
-
mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
|
|
3943
|
-
markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
|
|
3944
|
-
data {
|
|
3945
|
-
...ChatFields
|
|
3946
|
-
}
|
|
3947
|
-
message
|
|
3948
|
-
}
|
|
3949
|
-
}
|
|
3950
|
-
${CHAT_FIELDS_FRAGMENT}
|
|
3951
|
-
`;
|
|
3952
|
-
var REPORT_CHAT_USER_MUTATION = import_client15.gql`
|
|
3953
|
-
mutation reportChatUser($input: ReportChatUserInputType!) {
|
|
3954
|
-
reportChatUser(input: $input) {
|
|
3955
|
-
data {
|
|
3956
|
-
...ChatReportFields
|
|
3957
|
-
}
|
|
3958
|
-
message
|
|
3959
|
-
}
|
|
3960
|
-
}
|
|
3961
|
-
${CHAT_REPORT_FIELDS_FRAGMENT}
|
|
3962
|
-
`;
|
|
3963
|
-
|
|
3964
|
-
// src/graphql/hooks/chat/hooksQuery.ts
|
|
3965
|
-
var import_client18 = require("@apollo/client");
|
|
3966
|
-
|
|
3967
|
-
// src/graphql/subscriptions/chat.ts
|
|
3968
|
-
var import_client17 = require("@apollo/client");
|
|
3969
|
-
var GET_CHAT_MESSAGE = import_client17.gql`
|
|
3970
|
-
subscription {
|
|
3971
|
-
getChatMessage {
|
|
3972
|
-
...ChatFields
|
|
3973
|
-
}
|
|
3974
|
-
}
|
|
3975
|
-
${CHAT_FIELDS_FRAGMENT}
|
|
3976
|
-
`;
|
|
3977
|
-
|
|
3978
|
-
// src/graphql/hooks/contactUs.ts
|
|
3979
|
-
var import_client20 = require("@apollo/client");
|
|
3980
|
-
|
|
3981
|
-
// src/graphql/mutations/contactUs.ts
|
|
3982
|
-
var import_client19 = require("@apollo/client");
|
|
3983
|
-
var CONTACT_US_MUTATION = import_client19.gql`
|
|
3984
|
-
mutation contactUs($input: ContactUsInputType!) {
|
|
3985
|
-
contactUs(input: $input) {
|
|
3986
|
-
data
|
|
3987
|
-
message
|
|
3988
|
-
}
|
|
3989
|
-
}
|
|
3990
|
-
`;
|
|
3991
|
-
|
|
3992
|
-
// src/graphql/hooks/event/hooksMutation.ts
|
|
3993
|
-
var import_client23 = require("@apollo/client");
|
|
3994
|
-
|
|
3995
|
-
// src/graphql/mutations/event.ts
|
|
3996
|
-
var import_client21 = require("@apollo/client");
|
|
3997
|
-
var CREATE_EVENT_MUTATION = import_client21.gql`
|
|
3998
|
-
mutation createEvent($input: EventInputType!) {
|
|
3999
|
-
createEvent(input: $input) {
|
|
4000
|
-
data {
|
|
4001
|
-
...EventFields
|
|
4002
|
-
}
|
|
4003
|
-
message
|
|
4004
|
-
}
|
|
4005
|
-
}
|
|
4006
|
-
${EVENT}
|
|
4007
|
-
`;
|
|
4008
|
-
var UPDATE_EVENT_MUTATION = import_client21.gql`
|
|
4009
|
-
mutation updateEvent($_id: ID!, $input: EventInputType!) {
|
|
4010
|
-
updateEvent(_id: $_id, input: $input) {
|
|
4011
|
-
data {
|
|
4012
|
-
...EventFields
|
|
4013
|
-
}
|
|
4014
|
-
message
|
|
4015
|
-
}
|
|
4016
|
-
}
|
|
4017
|
-
${EVENT}
|
|
4018
|
-
`;
|
|
4019
|
-
var DELETE_EVENT_MUTATION = import_client21.gql`
|
|
4020
|
-
mutation deleteEvent($_id: ID!) {
|
|
4021
|
-
deleteEvent(_id: $_id) {
|
|
4022
|
-
data
|
|
4023
|
-
message
|
|
4024
|
-
}
|
|
4025
|
-
}
|
|
4026
|
-
`;
|
|
4027
|
-
var CREATE_EVENT_INFO_MUTATION = import_client21.gql`
|
|
4028
|
-
mutation createEventInfo($input: EventInfoInputType!) {
|
|
4029
|
-
createEventInfo(input: $input) {
|
|
4030
|
-
data {
|
|
4031
|
-
...EventInfoFields
|
|
4032
|
-
}
|
|
4033
|
-
message
|
|
4034
|
-
}
|
|
4035
|
-
}
|
|
4036
|
-
${EVENT_INFO}
|
|
4037
|
-
`;
|
|
4038
|
-
var UPDATE_EVENT_INFO_MUTATION = import_client21.gql`
|
|
4039
|
-
mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
|
|
4040
|
-
updateEventInfo(_id: $_id, input: $input) {
|
|
4041
|
-
data {
|
|
4042
|
-
...EventInfoFields
|
|
4043
|
-
}
|
|
4044
|
-
message
|
|
4045
|
-
}
|
|
4046
|
-
}
|
|
4047
|
-
${EVENT_INFO}
|
|
4048
|
-
`;
|
|
4049
|
-
|
|
4050
|
-
// src/graphql/queries/user.ts
|
|
4051
|
-
var import_client22 = require("@apollo/client");
|
|
4052
|
-
var GET_USERS = import_client22.gql`
|
|
4053
|
-
query getUsers {
|
|
4054
|
-
users {
|
|
4055
|
-
...UserFields
|
|
4056
|
-
}
|
|
4057
|
-
}
|
|
4058
|
-
${USER_FIELDS_FRAGMENT}
|
|
4059
|
-
`;
|
|
4060
|
-
var GET_USER = import_client22.gql`
|
|
4061
|
-
query getUser($_id: ID!) {
|
|
4062
|
-
user(_id: $_id) {
|
|
4063
|
-
...UserFields
|
|
4064
|
-
}
|
|
4065
|
-
}
|
|
4066
|
-
${USER_FIELDS_FRAGMENT}
|
|
4067
|
-
`;
|
|
4068
|
-
var GET_USER_EVENTS = import_client22.gql`
|
|
4069
|
-
query getUserEvents {
|
|
4070
|
-
userEvents {
|
|
4071
|
-
...EventFields
|
|
4072
|
-
}
|
|
4073
|
-
}
|
|
4074
|
-
${EVENT}
|
|
4075
|
-
`;
|
|
4076
|
-
var GET_USER_VENDORS = import_client22.gql`
|
|
4077
|
-
query getUserVendors {
|
|
4078
|
-
userVendors {
|
|
4079
|
-
...VendorFields
|
|
4080
|
-
}
|
|
4081
|
-
}
|
|
4082
|
-
${VENDOR}
|
|
4083
|
-
`;
|
|
4084
|
-
var GET_USER_PARTNERS = import_client22.gql`
|
|
4085
|
-
query getUserPartners {
|
|
4086
|
-
userPartners {
|
|
4087
|
-
...PartnerFields
|
|
4088
|
-
}
|
|
4089
|
-
}
|
|
4090
|
-
${PARTNER}
|
|
4091
|
-
`;
|
|
4092
|
-
var GET_USER_ACTIVITIES = import_client22.gql`
|
|
4093
|
-
query getUserActivities {
|
|
4094
|
-
userActivities {
|
|
4095
|
-
favourites {
|
|
4096
|
-
events {
|
|
4097
|
-
...EventListItemFields
|
|
4098
|
-
}
|
|
4099
|
-
partners {
|
|
4100
|
-
...PartnerFields
|
|
4101
|
-
}
|
|
4102
|
-
vendors {
|
|
4103
|
-
...VendorFields
|
|
4104
|
-
}
|
|
4105
|
-
}
|
|
4106
|
-
going {
|
|
4107
|
-
events {
|
|
4108
|
-
...EventListItemFields
|
|
4109
|
-
}
|
|
4110
|
-
}
|
|
4111
|
-
interested {
|
|
4112
|
-
events {
|
|
4113
|
-
...EventListItemFields
|
|
4114
|
-
}
|
|
4115
|
-
}
|
|
4116
|
-
present {
|
|
4117
|
-
events {
|
|
4118
|
-
...EventListItemFields
|
|
4119
|
-
}
|
|
4120
|
-
}
|
|
4121
|
-
}
|
|
4122
|
-
}
|
|
4123
|
-
${EVENT_LIST_ITEM}
|
|
4124
|
-
${VENDOR}
|
|
4125
|
-
${PARTNER}
|
|
4126
|
-
`;
|
|
4127
|
-
var GET_USER_RESOURCES = import_client22.gql`
|
|
4128
|
-
query getUserResources($userId: ID!) {
|
|
4129
|
-
userResources(userId: $userId) {
|
|
4130
|
-
resources {
|
|
4131
|
-
_id
|
|
4132
|
-
logo
|
|
4133
|
-
name
|
|
4134
|
-
resourceType
|
|
4135
|
-
}
|
|
4136
|
-
}
|
|
4137
|
-
}
|
|
4138
|
-
`;
|
|
4139
|
-
|
|
4140
|
-
// src/graphql/hooks/event/hooksQuery.ts
|
|
4141
|
-
var import_client24 = require("@apollo/client");
|
|
4142
|
-
|
|
4143
|
-
// src/graphql/hooks/notifications/hooksMutation.ts
|
|
4144
|
-
var import_client27 = require("@apollo/client");
|
|
4145
|
-
|
|
4146
|
-
// src/graphql/mutations/notification.ts
|
|
4147
|
-
var import_client26 = require("@apollo/client");
|
|
4148
|
-
|
|
4149
|
-
// src/graphql/queries/notification.ts
|
|
4150
|
-
var import_client25 = require("@apollo/client");
|
|
4151
|
-
var NOTIFICATION_FRAGMENT = import_client25.gql`
|
|
4152
|
-
fragment NotificationFields on Notification {
|
|
4153
|
-
_id
|
|
4154
|
-
userId
|
|
4155
|
-
title
|
|
4156
|
-
message
|
|
4157
|
-
type
|
|
4158
|
-
isRead
|
|
4159
|
-
data {
|
|
4160
|
-
resourceId
|
|
4161
|
-
resourceName
|
|
4162
|
-
resourceType
|
|
4163
|
-
}
|
|
4164
|
-
createdAt
|
|
4165
|
-
updatedAt
|
|
4166
|
-
}
|
|
4167
|
-
`;
|
|
4168
|
-
var GET_USER_NOTIFICATIONS = import_client25.gql`
|
|
4169
|
-
query getUserNotifications($limit: Int, $offset: Int) {
|
|
4170
|
-
userNotifications(limit: $limit, offset: $offset) {
|
|
4171
|
-
...NotificationFields
|
|
4172
|
-
}
|
|
4173
|
-
}
|
|
4174
|
-
${NOTIFICATION_FRAGMENT}
|
|
4175
|
-
`;
|
|
4176
|
-
var GET_NOTIFICATION_COUNT = import_client25.gql`
|
|
4177
|
-
query getNotificationCount {
|
|
4178
|
-
notificationCount {
|
|
4179
|
-
total
|
|
4180
|
-
unread
|
|
4181
|
-
}
|
|
4182
|
-
}
|
|
4183
|
-
`;
|
|
4184
|
-
|
|
4185
|
-
// src/graphql/mutations/notification.ts
|
|
4186
|
-
var CREATE_BULK_NOTIFICATIONS = import_client26.gql`
|
|
4187
|
-
mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
|
|
4188
|
-
createBulkNotifications(input: $input) {
|
|
4189
|
-
data
|
|
4190
|
-
message
|
|
4191
|
-
}
|
|
4192
|
-
}
|
|
4193
|
-
`;
|
|
4194
|
-
var MARK_NOTIFICATION_READ = import_client26.gql`
|
|
4195
|
-
mutation markNotificationRead($_id: ID!) {
|
|
4196
|
-
markNotificationRead(_id: $_id) {
|
|
4197
|
-
data {
|
|
4198
|
-
...NotificationFields
|
|
4199
|
-
}
|
|
4200
|
-
message
|
|
4201
|
-
}
|
|
4202
|
-
}
|
|
4203
|
-
${NOTIFICATION_FRAGMENT}
|
|
4204
|
-
`;
|
|
4205
|
-
var MARK_ALL_NOTIFICATIONS_READ = import_client26.gql`
|
|
4206
|
-
mutation markAllNotificationsRead {
|
|
4207
|
-
markAllNotificationsRead {
|
|
4208
|
-
data
|
|
4209
|
-
message
|
|
4210
|
-
}
|
|
4211
|
-
}
|
|
4212
|
-
`;
|
|
4213
|
-
var DELETE_NOTIFICATION = import_client26.gql`
|
|
4214
|
-
mutation deleteNotification($_id: ID!) {
|
|
4215
|
-
deleteNotification(_id: $_id) {
|
|
4216
|
-
data
|
|
4217
|
-
message
|
|
4218
|
-
}
|
|
4219
|
-
}
|
|
4220
|
-
`;
|
|
4221
|
-
var DELETE_ALL_NOTIFICATIONS = import_client26.gql`
|
|
4222
|
-
mutation deleteAllNotifications {
|
|
4223
|
-
deleteAllNotifications {
|
|
4224
|
-
data
|
|
4225
|
-
message
|
|
4226
|
-
}
|
|
4227
|
-
}
|
|
4228
|
-
`;
|
|
4229
|
-
|
|
4230
|
-
// src/graphql/hooks/notifications/hooksQuery.ts
|
|
4231
|
-
var import_client28 = require("@apollo/client");
|
|
4232
|
-
|
|
4233
|
-
// src/graphql/hooks/notifications/hooksSubscription.ts
|
|
4234
|
-
var import_client30 = require("@apollo/client");
|
|
4235
|
-
|
|
4236
|
-
// src/graphql/subscriptions/notification.ts
|
|
4237
|
-
var import_client29 = require("@apollo/client");
|
|
4238
|
-
var GET_NOTIFICATIONS_SUBSCRIPTION = import_client29.gql`
|
|
4239
|
-
subscription {
|
|
4240
|
-
getUserNotifications {
|
|
4241
|
-
...NotificationFields
|
|
4242
|
-
}
|
|
4243
|
-
}
|
|
4244
|
-
${NOTIFICATION_FRAGMENT}
|
|
4245
|
-
`;
|
|
4246
|
-
var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client29.gql`
|
|
4247
|
-
subscription {
|
|
4248
|
-
getNotificationCount {
|
|
4249
|
-
total
|
|
4250
|
-
unread
|
|
4251
|
-
}
|
|
4252
|
-
}
|
|
4253
|
-
`;
|
|
4254
|
-
|
|
4255
|
-
// src/graphql/hooks/poster.ts
|
|
4256
|
-
var import_client32 = require("@apollo/client");
|
|
4257
|
-
|
|
4258
|
-
// src/graphql/mutations/poster.ts
|
|
4259
|
-
var import_client31 = require("@apollo/client");
|
|
4260
|
-
var CREATE_POSTER_MUTATION = import_client31.gql`
|
|
4261
|
-
mutation createPoster($input: PosterInputType!) {
|
|
4262
|
-
createPoster(input: $input) {
|
|
4263
|
-
data {
|
|
4264
|
-
posterUsage {
|
|
4265
|
-
...PosterUsageFields
|
|
4266
|
-
}
|
|
4267
|
-
}
|
|
4268
|
-
message
|
|
4269
|
-
}
|
|
4270
|
-
}
|
|
4271
|
-
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
4272
|
-
`;
|
|
4273
|
-
|
|
4274
|
-
// src/graphql/hooks/pushToken.ts
|
|
4275
|
-
var import_client34 = require("@apollo/client");
|
|
4276
|
-
|
|
4277
|
-
// src/graphql/mutations/pushToken.ts
|
|
4278
|
-
var import_client33 = require("@apollo/client");
|
|
4279
|
-
var CREATE_PUSH_TOKEN_MUTATION = import_client33.gql`
|
|
4280
|
-
mutation createPushToken($input: PushTokenInput!) {
|
|
4281
|
-
createPushToken(input: $input) {
|
|
4282
|
-
data {
|
|
4283
|
-
success
|
|
4284
|
-
}
|
|
4285
|
-
message
|
|
4286
|
-
}
|
|
4287
|
-
}
|
|
4288
|
-
`;
|
|
4289
|
-
|
|
4290
|
-
// src/graphql/hooks/relation/hooksMutation.ts
|
|
4291
|
-
var import_client36 = require("@apollo/client");
|
|
4292
|
-
|
|
4293
|
-
// src/graphql/mutations/relation.ts
|
|
4294
|
-
var import_client35 = require("@apollo/client");
|
|
4295
|
-
var CREATE_RELATION_MUTATION = import_client35.gql`
|
|
4296
|
-
mutation createRelation($input: RelationInputType!) {
|
|
4297
|
-
createRelation(input: $input) {
|
|
4298
|
-
data {
|
|
4299
|
-
...RelationFields
|
|
4300
|
-
}
|
|
4301
|
-
message
|
|
4302
|
-
}
|
|
4303
|
-
}
|
|
4304
|
-
${RELATION_FIELDS_FRAGMENT}
|
|
4305
|
-
`;
|
|
4306
|
-
var UPDATE_RELATION_MUTATION = import_client35.gql`
|
|
4307
|
-
mutation updateRelation($_id: ID!, $input: RelationInputType!) {
|
|
4308
|
-
updateRelation(_id: $_id, input: $input) {
|
|
4309
|
-
data {
|
|
4310
|
-
...RelationFields
|
|
4311
|
-
}
|
|
4312
|
-
message
|
|
4313
|
-
}
|
|
4314
|
-
}
|
|
4315
|
-
${RELATION_FIELDS_FRAGMENT}
|
|
4316
|
-
`;
|
|
4317
|
-
var DELETE_RELATION_MUTATION = import_client35.gql`
|
|
4318
|
-
mutation deleteRelation($_id: ID!) {
|
|
4319
|
-
deleteRelation(_id: $_id) {
|
|
4320
|
-
data {
|
|
4321
|
-
...RelationFields
|
|
4322
|
-
}
|
|
4323
|
-
message
|
|
4324
|
-
}
|
|
4325
|
-
}
|
|
4326
|
-
${RELATION_FIELDS_FRAGMENT}
|
|
4327
|
-
`;
|
|
4328
|
-
|
|
4329
|
-
// src/graphql/hooks/relation/hooksQuery.ts
|
|
4330
|
-
var import_client37 = require("@apollo/client");
|
|
4331
|
-
|
|
4332
|
-
// src/graphql/hooks/vendor/hooksMutation.ts
|
|
4333
|
-
var import_client39 = require("@apollo/client");
|
|
4334
|
-
|
|
4335
|
-
// src/graphql/mutations/vendor.ts
|
|
4336
|
-
var import_client38 = require("@apollo/client");
|
|
4337
|
-
var CREATE_VENDOR_MUTATION = import_client38.gql`
|
|
4338
|
-
mutation createVendor($input: VendorInputType!) {
|
|
4339
|
-
createVendor(input: $input) {
|
|
4340
|
-
data {
|
|
4341
|
-
...VendorFields
|
|
4342
|
-
}
|
|
4343
|
-
message
|
|
4344
|
-
}
|
|
4345
|
-
}
|
|
4346
|
-
${VENDOR}
|
|
4347
|
-
`;
|
|
4348
|
-
var UPDATE_VENDOR_MUTATION = import_client38.gql`
|
|
4349
|
-
mutation updateVendor($_id: ID!, $input: VendorInputType!) {
|
|
4350
|
-
updateVendor(_id: $_id, input: $input) {
|
|
4351
|
-
data {
|
|
4352
|
-
...VendorFields
|
|
4353
|
-
}
|
|
4354
|
-
message
|
|
4355
|
-
}
|
|
4356
|
-
}
|
|
4357
|
-
${VENDOR}
|
|
4358
|
-
`;
|
|
4359
|
-
var DELETE_VENDOR_MUTATION = import_client38.gql`
|
|
4360
|
-
mutation deleteVendor($_id: ID!) {
|
|
4361
|
-
deleteVendor(_id: $_id) {
|
|
4362
|
-
data
|
|
4363
|
-
message
|
|
4364
|
-
}
|
|
4365
|
-
}
|
|
4366
|
-
`;
|
|
4367
|
-
var CREATE_VENDOR_INFO_MUTATION = import_client38.gql`
|
|
4368
|
-
mutation createVendorInfo($input: VendorInfoInputType!) {
|
|
4369
|
-
createVendorInfo(input: $input) {
|
|
4370
|
-
data {
|
|
4371
|
-
...VendorInfoFields
|
|
4372
|
-
}
|
|
4373
|
-
message
|
|
4374
|
-
}
|
|
4375
|
-
}
|
|
4376
|
-
${VENDOR_INFO}
|
|
4377
|
-
`;
|
|
4378
|
-
var UPDATE_VENDOR_INFO_MUTATION = import_client38.gql`
|
|
4379
|
-
mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
|
|
4380
|
-
updateVendorInfo(_id: $_id, input: $input) {
|
|
4381
|
-
data {
|
|
4382
|
-
...VendorInfoFields
|
|
4383
|
-
}
|
|
4384
|
-
message
|
|
4385
|
-
}
|
|
4386
|
-
}
|
|
4387
|
-
${VENDOR_INFO}
|
|
4388
|
-
`;
|
|
4389
|
-
var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client38.gql`
|
|
4390
|
-
mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
|
|
4391
|
-
createUnregisteredVendor(input: $input) {
|
|
4392
|
-
data {
|
|
4393
|
-
...UnregisteredVendorFields
|
|
4394
|
-
}
|
|
4395
|
-
message
|
|
4396
|
-
}
|
|
4397
|
-
}
|
|
4398
|
-
${UNREGISTERED_VENDOR}
|
|
4399
|
-
`;
|
|
4400
|
-
var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client38.gql`
|
|
4401
|
-
mutation updateUnregisteredVendor(
|
|
4402
|
-
$_id: ID!
|
|
4403
|
-
$input: UnregisteredVendorInputType!
|
|
4404
|
-
) {
|
|
4405
|
-
updateUnregisteredVendor(_id: $_id, input: $input) {
|
|
4406
|
-
data {
|
|
4407
|
-
...UnregisteredVendorFields
|
|
4408
|
-
}
|
|
4409
|
-
message
|
|
4410
|
-
}
|
|
4411
|
-
}
|
|
4412
|
-
${UNREGISTERED_VENDOR}
|
|
4413
|
-
`;
|
|
4414
|
-
var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client38.gql`
|
|
4415
|
-
mutation deleteUnregisteredVendor($_id: ID!) {
|
|
4416
|
-
deleteUnregisteredVendor(_id: $_id) {
|
|
4417
|
-
data
|
|
4418
|
-
message
|
|
4419
|
-
}
|
|
4420
|
-
}
|
|
4421
|
-
`;
|
|
4422
|
-
var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client38.gql`
|
|
4423
|
-
mutation unlinkUnregisteredVendorByInviterId($_id: ID!, $inviterId: ID!) {
|
|
4424
|
-
unlinkUnregisteredVendorByInviterId(_id: $_id, inviterId: $inviterId) {
|
|
4425
|
-
data
|
|
4426
|
-
message
|
|
4427
|
-
}
|
|
4428
|
-
}
|
|
4429
|
-
`;
|
|
4430
|
-
|
|
4431
|
-
// src/graphql/hooks/vendor/hooksQuery.ts
|
|
4432
|
-
var import_client40 = require("@apollo/client");
|
|
4433
|
-
|
|
4434
|
-
// src/graphql/hooks/user/hooksMutation.ts
|
|
4435
|
-
var import_client42 = require("@apollo/client");
|
|
4436
|
-
|
|
4437
|
-
// src/graphql/mutations/user.ts
|
|
4438
|
-
var import_client41 = require("@apollo/client");
|
|
4439
|
-
var CREATE_USER_MUTATION = import_client41.gql`
|
|
4440
|
-
mutation createUser($input: UserInputType!) {
|
|
4441
|
-
createUser(input: $input) {
|
|
4442
|
-
data {
|
|
4443
|
-
...UserFields
|
|
4444
|
-
}
|
|
4445
|
-
message
|
|
4446
|
-
}
|
|
4447
|
-
}
|
|
4448
|
-
${USER_FIELDS_FRAGMENT}
|
|
4449
|
-
`;
|
|
4450
|
-
var UPDATE_USER_MUTATION = import_client41.gql`
|
|
4451
|
-
mutation updateUser($_id: ID!, $input: UserInputType!) {
|
|
4452
|
-
updateUser(_id: $_id, input: $input) {
|
|
4453
|
-
data {
|
|
4454
|
-
...UserFields
|
|
4455
|
-
}
|
|
4456
|
-
message
|
|
4457
|
-
}
|
|
4458
|
-
}
|
|
4459
|
-
${USER_FIELDS_FRAGMENT}
|
|
4460
|
-
`;
|
|
4461
|
-
var DELETE_USER_MUTATION = import_client41.gql`
|
|
4462
|
-
mutation deleteUser($email: String!) {
|
|
4463
|
-
deleteUser(email: $email) {
|
|
4464
|
-
data
|
|
4465
|
-
message
|
|
4466
|
-
}
|
|
4467
|
-
}
|
|
4468
|
-
`;
|
|
4469
|
-
var REDEEM_REWARD_MUTATION = import_client41.gql`
|
|
4470
|
-
mutation redeemReward($input: RedeemRewardInputType!) {
|
|
4471
|
-
redeemReward(input: $input) {
|
|
4472
|
-
data {
|
|
4473
|
-
userId
|
|
4474
|
-
}
|
|
4475
|
-
message
|
|
4476
|
-
}
|
|
4477
|
-
}
|
|
4478
|
-
`;
|
|
4479
|
-
var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
|
|
4480
|
-
mutation addUserFavouriteResource(
|
|
4481
|
-
$resourceId: ID!
|
|
4482
|
-
$resourceType: ResourceTypeEnum!
|
|
4483
|
-
) {
|
|
4484
|
-
addUserFavouriteResource(
|
|
4485
|
-
resourceId: $resourceId
|
|
4486
|
-
resourceType: $resourceType
|
|
4487
|
-
) {
|
|
4488
|
-
data {
|
|
4489
|
-
...UserFields
|
|
4490
|
-
}
|
|
4491
|
-
message
|
|
4492
|
-
}
|
|
4493
|
-
}
|
|
4494
|
-
${USER_FIELDS_FRAGMENT}
|
|
4495
|
-
`;
|
|
4496
|
-
var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
|
|
4497
|
-
mutation removeUserFavouriteResource(
|
|
4498
|
-
$resourceId: ID!
|
|
4499
|
-
$resourceType: ResourceTypeEnum!
|
|
4500
|
-
) {
|
|
4501
|
-
removeUserFavouriteResource(
|
|
4502
|
-
resourceId: $resourceId
|
|
4503
|
-
resourceType: $resourceType
|
|
4504
|
-
) {
|
|
4505
|
-
data {
|
|
4506
|
-
...UserFields
|
|
4507
|
-
}
|
|
4508
|
-
message
|
|
4509
|
-
}
|
|
4510
|
-
}
|
|
4511
|
-
${USER_FIELDS_FRAGMENT}
|
|
4512
|
-
`;
|
|
4513
|
-
var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
|
|
4514
|
-
mutation addUserInterestResource($input: UserActivityInputType!) {
|
|
4515
|
-
addUserInterestResource(input: $input) {
|
|
4516
|
-
data {
|
|
4517
|
-
...UserFields
|
|
4518
|
-
}
|
|
4519
|
-
message
|
|
4520
|
-
}
|
|
4521
|
-
}
|
|
4522
|
-
${USER_FIELDS_FRAGMENT}
|
|
4523
|
-
`;
|
|
4524
|
-
var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
|
|
4525
|
-
mutation removeUserInterestResource($input: UserActivityInputType!) {
|
|
4526
|
-
removeUserInterestResource(input: $input) {
|
|
4527
|
-
data {
|
|
4528
|
-
...UserFields
|
|
4529
|
-
}
|
|
4530
|
-
message
|
|
4531
|
-
}
|
|
4532
|
-
}
|
|
4533
|
-
${USER_FIELDS_FRAGMENT}
|
|
4534
|
-
`;
|
|
4535
|
-
var ADD_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
|
|
4536
|
-
mutation addUserGoingResource($input: UserActivityInputType!) {
|
|
4537
|
-
addUserGoingResource(input: $input) {
|
|
4538
|
-
data {
|
|
4539
|
-
...UserFields
|
|
4540
|
-
}
|
|
4541
|
-
message
|
|
4542
|
-
}
|
|
4543
|
-
}
|
|
4544
|
-
${USER_FIELDS_FRAGMENT}
|
|
4545
|
-
`;
|
|
4546
|
-
var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
|
|
4547
|
-
mutation removeUserGoingResource($input: UserActivityInputType!) {
|
|
4548
|
-
removeUserGoingResource(input: $input) {
|
|
4549
|
-
data {
|
|
4550
|
-
...UserFields
|
|
4551
|
-
}
|
|
4552
|
-
message
|
|
4553
|
-
}
|
|
4554
|
-
}
|
|
4555
|
-
${USER_FIELDS_FRAGMENT}
|
|
4556
|
-
`;
|
|
4557
|
-
var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
|
|
4558
|
-
mutation addUserPresentResource($input: UserActivityInputType!) {
|
|
4559
|
-
addUserPresentResource(input: $input) {
|
|
4560
|
-
data {
|
|
4561
|
-
...UserFields
|
|
4562
|
-
}
|
|
4563
|
-
message
|
|
4564
|
-
}
|
|
4565
|
-
}
|
|
4566
|
-
${USER_FIELDS_FRAGMENT}
|
|
4567
|
-
`;
|
|
4568
|
-
var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
|
|
4569
|
-
mutation removeUserPresentResource($input: UserActivityInputType!) {
|
|
4570
|
-
removeUserPresentResource(input: $input) {
|
|
4571
|
-
data {
|
|
4572
|
-
...UserFields
|
|
4573
|
-
}
|
|
4574
|
-
message
|
|
4575
|
-
}
|
|
4576
|
-
}
|
|
4577
|
-
${USER_FIELDS_FRAGMENT}
|
|
4578
|
-
`;
|
|
4579
|
-
var SELECT_STANDARD_PACKAGE_MUTATION = import_client41.gql`
|
|
4580
|
-
mutation selectStandardPackage($selectedLicence: LicencesEnumType!) {
|
|
4581
|
-
selectStandardPackage(selectedLicence: $selectedLicence) {
|
|
4582
|
-
data {
|
|
4583
|
-
licences {
|
|
4584
|
-
...LicenceFields
|
|
4585
|
-
}
|
|
4586
|
-
userId
|
|
4587
|
-
}
|
|
4588
|
-
message
|
|
4589
|
-
}
|
|
4590
|
-
}
|
|
4591
|
-
${LICENCE_FIELDS_FRAGMENT}
|
|
4592
|
-
`;
|
|
4593
|
-
|
|
4594
|
-
// src/graphql/hooks/user/hooksQuery.ts
|
|
4595
|
-
var import_client43 = require("@apollo/client");
|
|
4596
|
-
|
|
4597
|
-
// src/graphql/hooks/ad/hooksMutation.ts
|
|
4598
|
-
var import_client46 = require("@apollo/client");
|
|
4599
|
-
|
|
4600
|
-
// src/graphql/mutations/ad.ts
|
|
4601
|
-
var import_client45 = require("@apollo/client");
|
|
4602
|
-
|
|
4603
|
-
// src/graphql/queries/ad.ts
|
|
4604
|
-
var import_client44 = require("@apollo/client");
|
|
4605
|
-
var AD_FIELDS_FRAGMENT = import_client44.gql`
|
|
4606
|
-
fragment AdFields on AdType {
|
|
4607
|
-
_id
|
|
4608
|
-
active
|
|
4609
|
-
clicks
|
|
4610
|
-
createdAt
|
|
4611
|
-
end
|
|
4612
|
-
impressions
|
|
4613
|
-
resource {
|
|
4614
|
-
adDescription
|
|
4615
|
-
adImage
|
|
4616
|
-
adStyle
|
|
4617
|
-
adTitle
|
|
4618
|
-
adType
|
|
4619
|
-
resourceId
|
|
4620
|
-
resourceSlug
|
|
4621
|
-
resourceName
|
|
4622
|
-
resourceRegion
|
|
4623
|
-
resourceType
|
|
4624
|
-
}
|
|
4625
|
-
showOn
|
|
4626
|
-
start
|
|
4627
|
-
status
|
|
4628
|
-
targetRegion
|
|
4629
|
-
updatedAt
|
|
4630
|
-
}
|
|
4631
|
-
`;
|
|
4632
|
-
var GET_ADS = import_client44.gql`
|
|
4633
|
-
query getAds {
|
|
4634
|
-
ads {
|
|
4635
|
-
...AdFields
|
|
4636
|
-
}
|
|
4637
|
-
}
|
|
4638
|
-
${AD_FIELDS_FRAGMENT}
|
|
4639
|
-
`;
|
|
4640
|
-
var GET_AD = import_client44.gql`
|
|
4641
|
-
query getAd($_id: ID!) {
|
|
4642
|
-
ad(_id: $_id) {
|
|
4643
|
-
...AdFields
|
|
4644
|
-
}
|
|
4645
|
-
}
|
|
4646
|
-
${AD_FIELDS_FRAGMENT}
|
|
4647
|
-
`;
|
|
4648
|
-
var GET_ADS_BY_REGION = import_client44.gql`
|
|
4649
|
-
query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
|
|
4650
|
-
adsByRegion(region: $region, status: $status) {
|
|
4651
|
-
...AdFields
|
|
4652
|
-
}
|
|
4653
|
-
}
|
|
4654
|
-
${AD_FIELDS_FRAGMENT}
|
|
4655
|
-
`;
|
|
4656
|
-
|
|
4657
|
-
// src/graphql/mutations/ad.ts
|
|
4658
|
-
var CREATE_AD_MUTATION = import_client45.gql`
|
|
4659
|
-
mutation createAd($input: AdInputType!) {
|
|
4660
|
-
createAd(input: $input) {
|
|
4661
|
-
data {
|
|
4662
|
-
...AdFields
|
|
4663
|
-
}
|
|
4664
|
-
message
|
|
4665
|
-
}
|
|
4666
|
-
}
|
|
4667
|
-
${AD_FIELDS_FRAGMENT}
|
|
4668
|
-
`;
|
|
4669
|
-
var UPDATE_AD_MUTATION = import_client45.gql`
|
|
4670
|
-
mutation updateAd($_id: ID!, $input: AdInputType!) {
|
|
4671
|
-
updateAd(_id: $_id, input: $input) {
|
|
4672
|
-
data {
|
|
4673
|
-
...AdFields
|
|
4674
|
-
}
|
|
4675
|
-
message
|
|
4676
|
-
}
|
|
4677
|
-
}
|
|
4678
|
-
${AD_FIELDS_FRAGMENT}
|
|
4679
|
-
`;
|
|
4680
|
-
var DELETE_AD_MUTATION = import_client45.gql`
|
|
4681
|
-
mutation deleteAd($_id: ID!) {
|
|
4682
|
-
deleteAd(_id: $_id) {
|
|
4683
|
-
data
|
|
4684
|
-
message
|
|
4685
|
-
}
|
|
4686
|
-
}
|
|
4687
|
-
`;
|
|
4688
|
-
|
|
4689
|
-
// src/graphql/hooks/ad/hooksQuery.ts
|
|
4690
|
-
var import_client47 = require("@apollo/client");
|
|
4691
|
-
|
|
4692
|
-
// src/graphql/hooks/resourceActivities/hooksMutation.ts
|
|
4693
|
-
var import_client49 = require("@apollo/client");
|
|
4694
|
-
|
|
4695
|
-
// src/graphql/mutations/resourceActivities.ts
|
|
4696
|
-
var import_client48 = require("@apollo/client");
|
|
4697
|
-
var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
|
|
4698
|
-
mutation createResourceActivity($input: ResourceActivityInputType!) {
|
|
4699
|
-
createResourceActivity(input: $input) {
|
|
4700
|
-
data
|
|
4701
|
-
message
|
|
4702
|
-
}
|
|
4703
|
-
}
|
|
4704
|
-
`;
|
|
4705
|
-
|
|
4706
|
-
// src/graphql/hooks/resourceActivities/hooksQuery.ts
|
|
4707
|
-
var import_client51 = require("@apollo/client");
|
|
4708
|
-
|
|
4709
|
-
// src/graphql/queries/resourceActivities.ts
|
|
4710
|
-
var import_client50 = require("@apollo/client");
|
|
4711
|
-
var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
|
|
4712
|
-
fragment ResourceActivityFields on ResourceActivityType {
|
|
4713
|
-
resourceId
|
|
4714
|
-
resourceType
|
|
4715
|
-
activity {
|
|
4716
|
-
activityType
|
|
4717
|
-
location {
|
|
4718
|
-
...LocationGeoFields
|
|
4719
|
-
}
|
|
4720
|
-
dateStatus
|
|
4721
|
-
startDate
|
|
4722
|
-
startTime
|
|
4723
|
-
timestamp
|
|
4724
|
-
userAgent
|
|
4725
|
-
userId
|
|
4726
|
-
}
|
|
4727
|
-
}
|
|
4728
|
-
${LOCATION_GEO_FIELDS_FRAGMENT}
|
|
4729
|
-
`;
|
|
4730
|
-
var GET_RESOURCE_ACTIVITY = import_client50.gql`
|
|
4731
|
-
query getResourceActivity(
|
|
4732
|
-
$resourceType: ResourceTypeEnum!
|
|
4733
|
-
$resourceId: ID!
|
|
4734
|
-
) {
|
|
4735
|
-
resourceActivity(resourceType: $resourceType, resourceId: $resourceId) {
|
|
4736
|
-
...ResourceActivityFields
|
|
4737
|
-
}
|
|
4738
|
-
}
|
|
4739
|
-
${RESOURCE_ACTIVITY_FIELDS_FRAGMENT}
|
|
4740
|
-
`;
|
|
4741
|
-
|
|
4742
|
-
// src/graphql/hooks/stripe/hooksMutation.ts
|
|
4743
|
-
var import_client53 = require("@apollo/client");
|
|
4744
|
-
|
|
4745
|
-
// src/graphql/mutations/stripe.ts
|
|
4746
|
-
var import_client52 = require("@apollo/client");
|
|
4747
|
-
var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
|
|
4748
|
-
mutation createCheckoutSession(
|
|
4749
|
-
$planId: LicencesEnumType!
|
|
4750
|
-
$billingPeriod: BillingPeriodEnumType
|
|
4751
|
-
) {
|
|
4752
|
-
createCheckoutSession(planId: $planId, billingPeriod: $billingPeriod) {
|
|
4753
|
-
data {
|
|
4754
|
-
sessionId
|
|
4755
|
-
checkoutUrl
|
|
4756
|
-
}
|
|
4757
|
-
message
|
|
4758
|
-
}
|
|
4759
|
-
}
|
|
4760
|
-
`;
|
|
4761
|
-
var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
|
|
4762
|
-
mutation cancelSubscription {
|
|
4763
|
-
cancelSubscription {
|
|
4764
|
-
data
|
|
4765
|
-
message
|
|
4766
|
-
}
|
|
4767
|
-
}
|
|
4768
|
-
`;
|
|
4769
|
-
var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
|
|
4770
|
-
mutation updateSubscriptionPlan(
|
|
4771
|
-
$newPlanId: LicencesEnumType!
|
|
4772
|
-
$billingPeriod: BillingPeriodEnumType
|
|
4773
|
-
) {
|
|
4774
|
-
updateSubscriptionPlan(
|
|
4775
|
-
newPlanId: $newPlanId
|
|
4776
|
-
billingPeriod: $billingPeriod
|
|
4777
|
-
) {
|
|
4778
|
-
data {
|
|
4779
|
-
subscriptionId
|
|
4780
|
-
status
|
|
4781
|
-
priceId
|
|
4782
|
-
currentPlan
|
|
4783
|
-
}
|
|
4784
|
-
message
|
|
4785
|
-
}
|
|
4786
|
-
}
|
|
4787
|
-
`;
|
|
4788
|
-
var CREATE_CUSTOMER_PORTAL = import_client52.gql`
|
|
4789
|
-
mutation createCustomerPortal($returnUrl: String) {
|
|
4790
|
-
createCustomerPortal(returnUrl: $returnUrl) {
|
|
4791
|
-
data {
|
|
4792
|
-
portalUrl
|
|
4793
|
-
}
|
|
4794
|
-
message
|
|
4795
|
-
}
|
|
4796
|
-
}
|
|
4797
|
-
`;
|
|
4798
|
-
var SELECT_PACKAGE_MUTATION = import_client52.gql`
|
|
4799
|
-
mutation selectPackage(
|
|
4800
|
-
$billingPeriod: BillingPeriodEnumType
|
|
4801
|
-
$selectedLicence: LicencesEnumType!
|
|
4802
|
-
$useStripe: Boolean
|
|
4803
|
-
) {
|
|
4804
|
-
selectPackage(
|
|
4805
|
-
billingPeriod: $billingPeriod
|
|
4806
|
-
selectedLicence: $selectedLicence
|
|
4807
|
-
useStripe: $useStripe
|
|
4808
|
-
) {
|
|
4809
|
-
data {
|
|
4810
|
-
checkoutUrl
|
|
4811
|
-
licences {
|
|
4812
|
-
...LicenceFields
|
|
4813
|
-
}
|
|
4814
|
-
userId
|
|
4815
|
-
}
|
|
4816
|
-
message
|
|
4817
|
-
}
|
|
4818
|
-
}
|
|
4819
|
-
${LICENCE_FIELDS_FRAGMENT}
|
|
4820
|
-
`;
|
|
4821
|
-
|
|
4822
|
-
// src/graphql/hooks/stripe/hooksQuery.ts
|
|
4823
|
-
var import_client55 = require("@apollo/client");
|
|
4824
|
-
|
|
4825
|
-
// src/graphql/queries/stripe.ts
|
|
4826
|
-
var import_client54 = require("@apollo/client");
|
|
4827
|
-
var GET_SUBSCRIPTION_STATUS = import_client54.gql`
|
|
4828
|
-
query getSubscriptionStatus {
|
|
4829
|
-
getSubscriptionStatus {
|
|
4830
|
-
subscriptionId
|
|
4831
|
-
status
|
|
4832
|
-
priceId
|
|
4833
|
-
currentPlan
|
|
4834
|
-
}
|
|
4835
|
-
}
|
|
4836
|
-
`;
|
|
4837
|
-
var GET_SUBSCRIPTION_PLANS = import_client54.gql`
|
|
4838
|
-
query getSubscriptionPlans {
|
|
4839
|
-
getSubscriptionPlans {
|
|
4840
|
-
plans {
|
|
4841
|
-
name
|
|
4842
|
-
description
|
|
4843
|
-
licenceType
|
|
4844
|
-
billingPeriod
|
|
4845
|
-
stripeProductId
|
|
4846
|
-
stripePriceId
|
|
4847
|
-
isEligibleForDiscount
|
|
4848
|
-
pricing {
|
|
4849
|
-
basePrice
|
|
4850
|
-
discountedPrice
|
|
4851
|
-
hasDiscount
|
|
4852
|
-
discountPercent
|
|
4853
|
-
discountAmount
|
|
4854
|
-
currency
|
|
4855
|
-
formattedBasePrice
|
|
4856
|
-
formattedDiscountedPrice
|
|
4857
|
-
}
|
|
4858
|
-
}
|
|
4859
|
-
isNewUser
|
|
4860
|
-
isTester
|
|
4861
|
-
appliedDiscountType
|
|
4862
|
-
}
|
|
4863
|
-
}
|
|
4864
|
-
`;
|
|
4865
|
-
|
|
4866
|
-
// src/graphql/hooks/partner/hooksMutation.ts
|
|
4867
|
-
var import_client57 = require("@apollo/client");
|
|
4868
|
-
|
|
4869
|
-
// src/graphql/mutations/partner.ts
|
|
4870
|
-
var import_client56 = require("@apollo/client");
|
|
4871
|
-
var CREATE_PARTNER_MUTATION = import_client56.gql`
|
|
4872
|
-
mutation createPartner($input: PartnerInputType!) {
|
|
4873
|
-
createPartner(input: $input) {
|
|
4874
|
-
data {
|
|
4875
|
-
...PartnerFields
|
|
4876
|
-
}
|
|
4877
|
-
message
|
|
4878
|
-
}
|
|
4879
|
-
}
|
|
4880
|
-
${PARTNER}
|
|
4881
|
-
`;
|
|
4882
|
-
var UPDATE_PARTNER_MUTATION = import_client56.gql`
|
|
4883
|
-
mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
|
|
4884
|
-
updatePartner(_id: $_id, input: $input) {
|
|
4885
|
-
data {
|
|
4886
|
-
...PartnerFields
|
|
4887
|
-
}
|
|
4888
|
-
message
|
|
4889
|
-
}
|
|
4890
|
-
}
|
|
4891
|
-
${PARTNER}
|
|
4892
|
-
`;
|
|
4893
|
-
var DELETE_PARTNER_MUTATION = import_client56.gql`
|
|
4894
|
-
mutation deletePartner($_id: ID!) {
|
|
4895
|
-
deletePartner(_id: $_id) {
|
|
4896
|
-
data
|
|
4897
|
-
message
|
|
4898
|
-
}
|
|
4899
|
-
}
|
|
4900
|
-
`;
|
|
4901
|
-
|
|
4902
|
-
// src/graphql/hooks/partner/hooksQuery.ts
|
|
4903
|
-
var import_client58 = require("@apollo/client");
|
|
4904
|
-
|
|
4905
|
-
// src/graphql/hooks/post/hooksMutation.ts
|
|
4906
|
-
var import_client60 = require("@apollo/client");
|
|
4907
|
-
|
|
4908
|
-
// src/graphql/mutations/post.ts
|
|
4909
|
-
var import_client59 = require("@apollo/client");
|
|
4910
|
-
var CREATE_POST_MUTATION = import_client59.gql`
|
|
4911
|
-
mutation createPost($input: PostInputType!) {
|
|
4912
|
-
createPost(input: $input) {
|
|
4913
|
-
data {
|
|
4914
|
-
...PostFields
|
|
4915
|
-
}
|
|
4916
|
-
message
|
|
4917
|
-
}
|
|
4918
|
-
}
|
|
4919
|
-
${POST_FIELDS_FRAGMENT}
|
|
4920
|
-
`;
|
|
4921
|
-
var UPDATE_POST_MUTATION = import_client59.gql`
|
|
4922
|
-
mutation updatePost($_id: ID!, $input: PostInputType!) {
|
|
4923
|
-
updatePost(_id: $_id, input: $input) {
|
|
4924
|
-
data {
|
|
4925
|
-
...PostFields
|
|
4926
|
-
}
|
|
4927
|
-
message
|
|
4928
|
-
}
|
|
4929
|
-
}
|
|
4930
|
-
${POST_FIELDS_FRAGMENT}
|
|
4931
|
-
`;
|
|
4932
|
-
var DELETE_POST_MUTATION = import_client59.gql`
|
|
4933
|
-
mutation deletePost($_id: ID!) {
|
|
4934
|
-
deletePost(_id: $_id) {
|
|
4935
|
-
data
|
|
4936
|
-
message
|
|
4937
|
-
}
|
|
4938
|
-
}
|
|
4939
|
-
`;
|
|
4940
|
-
|
|
4941
|
-
// src/graphql/hooks/post/hooksQuery.ts
|
|
4942
|
-
var import_client61 = require("@apollo/client");
|
|
4943
|
-
|
|
4944
|
-
// src/graphql/hooks/appSettings/hooksMutation.ts
|
|
4945
|
-
var import_client64 = require("@apollo/client");
|
|
4946
|
-
|
|
4947
|
-
// src/graphql/mutations/appSettings.ts
|
|
4948
|
-
var import_client62 = require("@apollo/client");
|
|
4949
|
-
var UPDATE_APP_SETTINGS_MUTATION = import_client62.gql`
|
|
4950
|
-
mutation updateAppSettings($input: AppSettingsInputType!) {
|
|
4951
|
-
updateAppSettings(input: $input) {
|
|
4952
|
-
data
|
|
4953
|
-
message
|
|
4954
|
-
}
|
|
4955
|
-
}
|
|
4956
|
-
`;
|
|
4957
|
-
var CRAWL_GOOGLE_MARKETS_MUTATION = import_client62.gql`
|
|
4958
|
-
mutation crawlGoogleMarkets {
|
|
4959
|
-
crawlGoogleMarkets {
|
|
4960
|
-
data
|
|
4961
|
-
message
|
|
4962
|
-
}
|
|
4963
|
-
}
|
|
4964
|
-
`;
|
|
4965
|
-
var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client62.gql`
|
|
4966
|
-
mutation updateGoogleImportedMarkets {
|
|
4967
|
-
updateGoogleImportedMarkets {
|
|
4968
|
-
data
|
|
4969
|
-
message
|
|
4970
|
-
}
|
|
4971
|
-
}
|
|
4972
|
-
`;
|
|
4973
|
-
|
|
4974
|
-
// src/graphql/queries/appSettings.ts
|
|
4975
|
-
var import_client63 = require("@apollo/client");
|
|
4976
|
-
var APP_SETTINGS_FIELDS_FRAGMENT = import_client63.gql`
|
|
4977
|
-
fragment AppSettingsFields on AppSettingsType {
|
|
4978
|
-
_id
|
|
4979
|
-
appVersion
|
|
4980
|
-
createdAt
|
|
4981
|
-
isOfflineMode
|
|
4982
|
-
key
|
|
4983
|
-
minimumRedeemableAffiliatePoints
|
|
4984
|
-
updatedAt
|
|
4985
|
-
}
|
|
4986
|
-
`;
|
|
4987
|
-
var GET_APP_SETTINGS = import_client63.gql`
|
|
4988
|
-
query getAppSettings {
|
|
4989
|
-
appSettings {
|
|
4990
|
-
...AppSettingsFields
|
|
4991
|
-
}
|
|
4992
|
-
}
|
|
4993
|
-
${APP_SETTINGS_FIELDS_FRAGMENT}
|
|
4994
|
-
`;
|
|
4995
|
-
|
|
4996
|
-
// src/graphql/hooks/appSettings/hooksQuery.ts
|
|
4997
|
-
var import_client65 = require("@apollo/client");
|
|
4998
|
-
|
|
4999
|
-
// src/graphql/hooks/game/hooksMutation.ts
|
|
5000
|
-
var import_client68 = require("@apollo/client");
|
|
5001
|
-
|
|
5002
|
-
// src/graphql/mutations/game.ts
|
|
5003
|
-
var import_client67 = require("@apollo/client");
|
|
5004
|
-
|
|
5005
|
-
// src/graphql/queries/game/game.ts
|
|
5006
|
-
var import_client66 = require("@apollo/client");
|
|
5007
|
-
var GAME_HISTORY_FIELDS_FRAGMENT = import_client66.gql`
|
|
5008
|
-
fragment GameHistoryFields on GameHistoryType {
|
|
5009
|
-
createdAt
|
|
5010
|
-
gameDate {
|
|
5011
|
-
...GameDateFields
|
|
5012
|
-
}
|
|
5013
|
-
gameStatus
|
|
5014
|
-
gameTitle
|
|
5015
|
-
gameType
|
|
5016
|
-
gameTypeId
|
|
5017
|
-
overallGamePoints
|
|
5018
|
-
pointsEarned
|
|
5019
|
-
}
|
|
5020
|
-
${GAME_DATE_FIELDS_FRAGMENT}
|
|
5021
|
-
`;
|
|
5022
|
-
var GAME_DATA_FIELDS_FRAGMENT = import_client66.gql`
|
|
5023
|
-
fragment GameDataFields on GameDataType {
|
|
5024
|
-
dailyClue {
|
|
5025
|
-
...DailyClueGameDataFields
|
|
5026
|
-
}
|
|
5027
|
-
miniQuiz {
|
|
5028
|
-
...PuzzleGameDataFields
|
|
5029
|
-
}
|
|
5030
|
-
oddOneOut {
|
|
5031
|
-
...PuzzleGameDataFields
|
|
5032
|
-
}
|
|
5033
|
-
}
|
|
5034
|
-
${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
|
|
5035
|
-
${PUZZLE_GAME_DATA_FIELDS_FRAGMENT}
|
|
5036
|
-
`;
|
|
5037
|
-
var GAME_FIELDS_FRAGMENT = import_client66.gql`
|
|
5038
|
-
fragment GameFields on GameType {
|
|
5039
|
-
_id
|
|
5040
|
-
active
|
|
5041
|
-
createdAt
|
|
5042
|
-
gameData {
|
|
5043
|
-
...GameDataFields
|
|
5044
|
-
}
|
|
5045
|
-
gameHistory {
|
|
5046
|
-
...GameHistoryFields
|
|
5047
|
-
}
|
|
5048
|
-
gameType
|
|
5049
|
-
gameTypeId
|
|
5050
|
-
gameTitle
|
|
5051
|
-
updatedAt
|
|
5052
|
-
}
|
|
5053
|
-
${GAME_DATA_FIELDS_FRAGMENT}
|
|
5054
|
-
${GAME_HISTORY_FIELDS_FRAGMENT}
|
|
5055
|
-
`;
|
|
5056
|
-
var GAME_DOC_FIELDS_FRAGMENT = import_client66.gql`
|
|
5057
|
-
fragment GameDocFields on GameDocType {
|
|
5058
|
-
_id
|
|
5059
|
-
active
|
|
5060
|
-
createdAt
|
|
5061
|
-
deletedAt
|
|
5062
|
-
games {
|
|
5063
|
-
...GameFields
|
|
5064
|
-
}
|
|
5065
|
-
owner {
|
|
5066
|
-
...OwnerFields
|
|
5067
|
-
}
|
|
5068
|
-
points
|
|
5069
|
-
updatedAt
|
|
5070
|
-
}
|
|
5071
|
-
${OWNER_FIELDS_FRAGMENT}
|
|
5072
|
-
${GAME_FIELDS_FRAGMENT}
|
|
5073
|
-
`;
|
|
5074
|
-
var GET_GAMES = import_client66.gql`
|
|
5075
|
-
query getGames {
|
|
5076
|
-
games {
|
|
5077
|
-
...GameDocFields
|
|
5078
|
-
}
|
|
5079
|
-
}
|
|
5080
|
-
${GAME_DOC_FIELDS_FRAGMENT}
|
|
5081
|
-
`;
|
|
5082
|
-
var GET_GAME = import_client66.gql`
|
|
5083
|
-
query getGame($_id: ID) {
|
|
5084
|
-
game(_id: $_id) {
|
|
5085
|
-
...GameDocFields
|
|
5086
|
-
}
|
|
5087
|
-
}
|
|
5088
|
-
${GAME_DOC_FIELDS_FRAGMENT}
|
|
5089
|
-
`;
|
|
5090
|
-
var GET_GAME_LEADERBOARD = import_client66.gql`
|
|
5091
|
-
query getGameLeaderboard {
|
|
5092
|
-
gameLeaderboard {
|
|
5093
|
-
gameHistory {
|
|
5094
|
-
...GameHistoryFields
|
|
5095
|
-
}
|
|
5096
|
-
overallPoints
|
|
5097
|
-
owner {
|
|
5098
|
-
...OwnerFields
|
|
5099
|
-
}
|
|
5100
|
-
}
|
|
5101
|
-
}
|
|
5102
|
-
${OWNER_FIELDS_FRAGMENT}
|
|
5103
|
-
${GAME_HISTORY_FIELDS_FRAGMENT}
|
|
5104
|
-
`;
|
|
5105
|
-
|
|
5106
|
-
// src/graphql/mutations/game.ts
|
|
5107
|
-
var START_GAME_MUTATION = import_client67.gql`
|
|
5108
|
-
mutation startGame($input: BaseGameInputType!) {
|
|
5109
|
-
startGame(input: $input) {
|
|
5110
|
-
data {
|
|
5111
|
-
...GameDocFields
|
|
5112
|
-
}
|
|
5113
|
-
message
|
|
5114
|
-
}
|
|
5115
|
-
}
|
|
5116
|
-
${GAME_DOC_FIELDS_FRAGMENT}
|
|
5117
|
-
`;
|
|
5118
|
-
var LEAVE_GAME_MUTATION = import_client67.gql`
|
|
5119
|
-
mutation leaveGame(
|
|
5120
|
-
$_id: ID!
|
|
5121
|
-
$gameType: GameTypeEnumType!
|
|
5122
|
-
$gameTypeId: String!
|
|
5123
|
-
) {
|
|
5124
|
-
leaveGame(_id: $_id, gameType: $gameType, gameTypeId: $gameTypeId) {
|
|
5125
|
-
data
|
|
5126
|
-
message
|
|
5127
|
-
}
|
|
5128
|
-
}
|
|
5129
|
-
`;
|
|
5130
|
-
var UPDATE_DAILY_CLUE_MUTATION = import_client67.gql`
|
|
5131
|
-
mutation updateDailyClueGame(
|
|
5132
|
-
$_id: ID!
|
|
5133
|
-
$foundLetter: String!
|
|
5134
|
-
$gameType: GameTypeEnumType!
|
|
5135
|
-
$gameTypeId: String!
|
|
5136
|
-
) {
|
|
5137
|
-
updateDailyClueGame(
|
|
5138
|
-
_id: $_id
|
|
5139
|
-
foundLetter: $foundLetter
|
|
5140
|
-
gameType: $gameType
|
|
5141
|
-
gameTypeId: $gameTypeId
|
|
5142
|
-
) {
|
|
5143
|
-
data {
|
|
5144
|
-
...GameDocFields
|
|
5145
|
-
}
|
|
5146
|
-
message
|
|
5147
|
-
}
|
|
5148
|
-
}
|
|
5149
|
-
${GAME_DOC_FIELDS_FRAGMENT}
|
|
5150
|
-
`;
|
|
5151
|
-
var UPDATE_PUZZLE_GAME_MUTATION = import_client67.gql`
|
|
5152
|
-
mutation updatePuzzleGame(
|
|
5153
|
-
$_id: ID!
|
|
5154
|
-
$answeredQuestions: [PuzzleAnsweredQuestionInputType!]!
|
|
5155
|
-
$gameType: GameTypeEnumType!
|
|
5156
|
-
$gameTypeId: String!
|
|
5157
|
-
) {
|
|
5158
|
-
updatePuzzleGame(
|
|
5159
|
-
_id: $_id
|
|
5160
|
-
answeredQuestions: $answeredQuestions
|
|
5161
|
-
gameType: $gameType
|
|
5162
|
-
gameTypeId: $gameTypeId
|
|
5163
|
-
) {
|
|
5164
|
-
data {
|
|
5165
|
-
...GameDocFields
|
|
5166
|
-
}
|
|
5167
|
-
message
|
|
5168
|
-
}
|
|
5169
|
-
}
|
|
5170
|
-
${GAME_DOC_FIELDS_FRAGMENT}
|
|
5171
|
-
`;
|
|
5172
|
-
|
|
5173
|
-
// src/graphql/hooks/game/hooksQuery.ts
|
|
5174
|
-
var import_client69 = require("@apollo/client");
|
|
5175
|
-
|
|
5176
|
-
// src/graphql/hooks/school/hooksMutation.ts
|
|
5177
|
-
var import_client72 = require("@apollo/client");
|
|
5178
|
-
|
|
5179
|
-
// src/graphql/mutations/school.ts
|
|
5180
|
-
var import_client71 = require("@apollo/client");
|
|
5181
|
-
|
|
5182
|
-
// src/graphql/queries/school.ts
|
|
5183
|
-
var import_client70 = require("@apollo/client");
|
|
5184
|
-
var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client70.gql`
|
|
5185
|
-
fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
|
|
5186
|
-
_id
|
|
5187
|
-
active
|
|
5188
|
-
avatar {
|
|
5189
|
-
...ResourceImageFields
|
|
5190
|
-
}
|
|
5191
|
-
email
|
|
5192
|
-
firstName
|
|
5193
|
-
lastName
|
|
5194
|
-
}
|
|
5195
|
-
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
5196
|
-
`;
|
|
5197
|
-
var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client70.gql`
|
|
5198
|
-
fragment SchoolCampaignFields on SchoolCampaignType {
|
|
5199
|
-
endDate
|
|
5200
|
-
name
|
|
5201
|
-
startDate
|
|
5202
|
-
}
|
|
5203
|
-
`;
|
|
5204
|
-
var SCHOOL = import_client70.gql`
|
|
5205
|
-
fragment SchoolFields on SchoolType {
|
|
5206
|
-
_id
|
|
5207
|
-
active
|
|
5208
|
-
approvedAt
|
|
5209
|
-
campaigns {
|
|
5210
|
-
...SchoolCampaignFields
|
|
5211
|
-
}
|
|
5212
|
-
contactDetails {
|
|
5213
|
-
...ContactDetailsFields
|
|
5214
|
-
}
|
|
5215
|
-
location {
|
|
5216
|
-
...LocationFields
|
|
5217
|
-
}
|
|
5218
|
-
createdAt
|
|
5219
|
-
deletedAt
|
|
5220
|
-
logo {
|
|
5221
|
-
...ResourceImageFields
|
|
5222
|
-
}
|
|
5223
|
-
name
|
|
5224
|
-
owner {
|
|
5225
|
-
...OwnerFields
|
|
5226
|
-
}
|
|
5227
|
-
overallPoints
|
|
5228
|
-
ranking
|
|
5229
|
-
region
|
|
5230
|
-
studentCount
|
|
5231
|
-
schoolCode
|
|
5232
|
-
socialMedia {
|
|
5233
|
-
...SocialMediaFields
|
|
5234
|
-
}
|
|
5235
|
-
termsAgreement {
|
|
5236
|
-
...TermsAgreementFields
|
|
5237
|
-
}
|
|
5238
|
-
updatedAt
|
|
5239
|
-
}
|
|
5240
|
-
${OWNER_FIELDS_FRAGMENT}
|
|
5241
|
-
${LOCATION_FIELDS_FRAGMENT}
|
|
5242
|
-
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
5243
|
-
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
5244
|
-
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
5245
|
-
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
5246
|
-
${SCHOOL_CAMPAIGN_FIELDS_FRAGMENT}
|
|
5247
|
-
`;
|
|
5248
|
-
var GET_SCHOOL = import_client70.gql`
|
|
5249
|
-
query getSchool($_id: ID!) {
|
|
5250
|
-
school(_id: $_id) {
|
|
5251
|
-
school {
|
|
5252
|
-
...SchoolFields
|
|
5253
|
-
}
|
|
5254
|
-
users {
|
|
5255
|
-
...SchoolRegisteredUsersFields
|
|
5256
|
-
}
|
|
5257
|
-
}
|
|
5258
|
-
}
|
|
5259
|
-
${SCHOOL}
|
|
5260
|
-
${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}
|
|
5261
|
-
`;
|
|
5262
|
-
var GET_SCHOOLS = import_client70.gql`
|
|
5263
|
-
query getSchools {
|
|
5264
|
-
schools {
|
|
5265
|
-
...SchoolFields
|
|
5266
|
-
}
|
|
5267
|
-
}
|
|
5268
|
-
${SCHOOL}
|
|
5269
|
-
`;
|
|
5270
|
-
|
|
5271
|
-
// src/graphql/mutations/school.ts
|
|
5272
|
-
var CREATE_SCHOOL_MUTATION = import_client71.gql`
|
|
5273
|
-
mutation createSchool($input: SchoolInputType!) {
|
|
5274
|
-
createSchool(input: $input) {
|
|
5275
|
-
data {
|
|
5276
|
-
...SchoolFields
|
|
5277
|
-
}
|
|
5278
|
-
message
|
|
5279
|
-
}
|
|
5280
|
-
}
|
|
5281
|
-
${SCHOOL}
|
|
5282
|
-
`;
|
|
5283
|
-
var UPDATE_SCHOOL_MUTATION = import_client71.gql`
|
|
5284
|
-
mutation updateSchool($_id: ID!, $input: SchoolInputType!) {
|
|
5285
|
-
updateSchool(_id: $_id, input: $input) {
|
|
5286
|
-
data {
|
|
5287
|
-
...SchoolFields
|
|
5288
|
-
}
|
|
5289
|
-
message
|
|
5290
|
-
}
|
|
5291
|
-
}
|
|
5292
|
-
${SCHOOL}
|
|
5293
|
-
`;
|
|
5294
|
-
var DELETE_SCHOOL_MUTATION = import_client71.gql`
|
|
5295
|
-
mutation deleteSchool($_id: ID!) {
|
|
5296
|
-
deleteSchool(_id: $_id) {
|
|
5297
|
-
data
|
|
5298
|
-
message
|
|
5299
|
-
}
|
|
5300
|
-
}
|
|
5301
|
-
`;
|
|
5302
|
-
var REQUEST_MARKETING_MATERIAL_MUTATION = import_client71.gql`
|
|
5303
|
-
mutation requestMarketingMaterial(
|
|
5304
|
-
$input: MarketingMaterialRequestInputType!
|
|
5305
|
-
) {
|
|
5306
|
-
requestMarketingMaterial(input: $input) {
|
|
5307
|
-
data
|
|
5308
|
-
message
|
|
5309
|
-
}
|
|
5310
|
-
}
|
|
5311
|
-
`;
|
|
5312
|
-
|
|
5313
|
-
// src/graphql/hooks/school/hooksQuery.ts
|
|
5314
|
-
var import_client73 = require("@apollo/client");
|
|
5315
|
-
|
|
5316
|
-
// src/graphql/hooks/affiliate/hooksQuery.ts
|
|
5317
|
-
var import_client75 = require("@apollo/client");
|
|
5318
|
-
|
|
5319
|
-
// src/graphql/queries/affiliate.ts
|
|
5320
|
-
var import_client74 = require("@apollo/client");
|
|
5321
|
-
var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
|
|
5322
|
-
fragment AffiliateRewardFields on AffiliateRewardType {
|
|
5323
|
-
createdAt
|
|
5324
|
-
redeemedAt
|
|
5325
|
-
rewardDescription
|
|
5326
|
-
rewardType
|
|
5327
|
-
rewardValue
|
|
5328
|
-
}
|
|
5329
|
-
`;
|
|
5330
|
-
var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
|
|
5331
|
-
fragment AffiliateResourceFields on AffiliateResourceType {
|
|
5332
|
-
resourceActive
|
|
5333
|
-
resourceDeletedAt
|
|
5334
|
-
resourceId
|
|
5335
|
-
resourceName
|
|
5336
|
-
resourceOwner {
|
|
5337
|
-
...OwnerFields
|
|
5338
|
-
}
|
|
5339
|
-
resourceType
|
|
5340
|
-
rewards {
|
|
5341
|
-
...AffiliateRewardFields
|
|
5342
|
-
}
|
|
5343
|
-
}
|
|
5344
|
-
${AFFILIATE_REWARD_FIELDS_FRAGMENT}
|
|
5345
|
-
${OWNER_FIELDS_FRAGMENT}
|
|
5346
|
-
`;
|
|
5347
|
-
var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
|
|
5348
|
-
fragment AffiliateBankAccountDetailsFields on AffiliateBankAccountDetailsType {
|
|
5349
|
-
accountHolderName
|
|
5350
|
-
accountNumber
|
|
5351
|
-
}
|
|
5352
|
-
`;
|
|
5353
|
-
var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
|
|
5354
|
-
fragment AffiliateDetailsFields on AffiliateDetailsType {
|
|
5355
|
-
bankAccountDetails {
|
|
5356
|
-
...AffiliateBankAccountDetailsFields
|
|
5357
|
-
}
|
|
5358
|
-
contactDetails {
|
|
5359
|
-
mobilePhone
|
|
5360
|
-
}
|
|
5361
|
-
irdNumber
|
|
5362
|
-
participantType
|
|
5363
|
-
email
|
|
5364
|
-
firstName
|
|
5365
|
-
lastName
|
|
5366
|
-
location {
|
|
5367
|
-
...LocationFields
|
|
5368
|
-
}
|
|
5369
|
-
socialMedia {
|
|
5370
|
-
...SocialMediaFields
|
|
5371
|
-
}
|
|
5372
|
-
termsAgreement {
|
|
5373
|
-
...TermsAgreementFields
|
|
5374
|
-
}
|
|
5375
|
-
}
|
|
5376
|
-
${AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT}
|
|
5377
|
-
${LOCATION_FIELDS_FRAGMENT}
|
|
5378
|
-
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
5379
|
-
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
5380
|
-
`;
|
|
5381
|
-
var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
|
|
5382
|
-
fragment AffiliateFields on AffiliateType {
|
|
5383
|
-
_id
|
|
5384
|
-
active
|
|
5385
|
-
affiliateBonusRewards {
|
|
5386
|
-
...AffiliateRewardFields
|
|
5387
|
-
}
|
|
5388
|
-
affiliateCode
|
|
5389
|
-
affiliateDetails {
|
|
5390
|
-
...AffiliateDetailsFields
|
|
5391
|
-
}
|
|
5392
|
-
affiliateResources {
|
|
5393
|
-
...AffiliateResourceFields
|
|
5394
|
-
}
|
|
5395
|
-
approvedAt
|
|
5396
|
-
createdAt
|
|
5397
|
-
deletedAt
|
|
5398
|
-
redeemHistory {
|
|
5399
|
-
paidAt
|
|
5400
|
-
redeemedAt
|
|
5401
|
-
rewardValue
|
|
5402
|
-
}
|
|
5403
|
-
overallPoints
|
|
5404
|
-
owner {
|
|
5405
|
-
...OwnerFields
|
|
5406
|
-
}
|
|
5407
|
-
updatedAt
|
|
5408
|
-
}
|
|
5409
|
-
${AFFILIATE_DETAILS_FIELDS_FRAGMENT}
|
|
5410
|
-
${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
|
|
5411
|
-
${OWNER_FIELDS_FRAGMENT}
|
|
5412
|
-
`;
|
|
5413
|
-
var GET_AFFILIATE = import_client74.gql`
|
|
5414
|
-
query getAffiliate($_id: ID!) {
|
|
5415
|
-
affiliate(_id: $_id) {
|
|
5416
|
-
...AffiliateFields
|
|
5417
|
-
}
|
|
5418
|
-
}
|
|
5419
|
-
${AFFILIATE_FIELDS_FRAGMENT}
|
|
5420
|
-
`;
|
|
5421
|
-
var GET_AFFILIATES = import_client74.gql`
|
|
5422
|
-
query getAffiliates {
|
|
5423
|
-
affiliates {
|
|
5424
|
-
...AffiliateFields
|
|
5425
|
-
}
|
|
5426
|
-
}
|
|
5427
|
-
${AFFILIATE_FIELDS_FRAGMENT}
|
|
5428
|
-
`;
|
|
5429
|
-
|
|
5430
|
-
// src/graphql/hooks/affiliate/hooksMutation.ts
|
|
5431
|
-
var import_client77 = require("@apollo/client");
|
|
5432
|
-
|
|
5433
|
-
// src/graphql/mutations/affiliate.ts
|
|
5434
|
-
var import_client76 = require("@apollo/client");
|
|
5435
|
-
var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client76.gql`
|
|
5436
|
-
mutation updateAffiliateDetails(
|
|
5437
|
-
$input: AffiliateDetailsInputType!
|
|
5438
|
-
$affiliateId: ID!
|
|
5439
|
-
) {
|
|
5440
|
-
updateAffiliateDetails(input: $input, affiliateId: $affiliateId) {
|
|
5441
|
-
data {
|
|
5442
|
-
...AffiliateFields
|
|
5443
|
-
}
|
|
5444
|
-
message
|
|
5445
|
-
}
|
|
5446
|
-
}
|
|
5447
|
-
${AFFILIATE_FIELDS_FRAGMENT}
|
|
5448
|
-
`;
|
|
5449
|
-
var DELETE_AFFILIATE_MUTATION = import_client76.gql`
|
|
5450
|
-
mutation deleteAffiliate($_id: ID!) {
|
|
5451
|
-
deleteAffiliate(_id: $_id) {
|
|
5452
|
-
data
|
|
5453
|
-
message
|
|
5454
|
-
}
|
|
5455
|
-
}
|
|
5456
|
-
`;
|
|
5457
|
-
var REDEEM_AFFILIATE_REWARD_MUTATION = import_client76.gql`
|
|
5458
|
-
mutation redeemAffiliateReward($affiliateId: ID!) {
|
|
5459
|
-
redeemAffiliateReward(affiliateId: $affiliateId) {
|
|
5460
|
-
data {
|
|
5461
|
-
...AffiliateFields
|
|
5462
|
-
}
|
|
5463
|
-
message
|
|
5464
|
-
}
|
|
5465
|
-
}
|
|
5466
|
-
${AFFILIATE_FIELDS_FRAGMENT}
|
|
5467
|
-
`;
|
|
5468
|
-
var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client76.gql`
|
|
5469
|
-
mutation assignAffiliateResourceReward(
|
|
5470
|
-
$affiliateId: ID!
|
|
5471
|
-
$resourceId: ID!
|
|
5472
|
-
$resourceType: ResourceTypeEnum!
|
|
5473
|
-
$rewardType: AffiliateRewardEnumType!
|
|
5474
|
-
) {
|
|
5475
|
-
assignAffiliateResourceReward(
|
|
5476
|
-
affiliateId: $affiliateId
|
|
5477
|
-
resourceId: $resourceId
|
|
5478
|
-
resourceType: $resourceType
|
|
5479
|
-
rewardType: $rewardType
|
|
5480
|
-
) {
|
|
5481
|
-
data {
|
|
5482
|
-
...AffiliateFields
|
|
5483
|
-
}
|
|
5484
|
-
message
|
|
5485
|
-
}
|
|
5486
|
-
}
|
|
5487
|
-
${AFFILIATE_FIELDS_FRAGMENT}
|
|
5488
|
-
`;
|
|
5489
|
-
var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client76.gql`
|
|
5490
|
-
mutation assignAffiliateBonusReward(
|
|
5491
|
-
$affiliateId: ID!
|
|
5492
|
-
$rewardType: AffiliateRewardEnumType!
|
|
5493
|
-
) {
|
|
5494
|
-
assignAffiliateBonusReward(
|
|
5495
|
-
affiliateId: $affiliateId
|
|
5496
|
-
rewardType: $rewardType
|
|
5497
|
-
) {
|
|
5498
|
-
data {
|
|
5499
|
-
...AffiliateFields
|
|
5500
|
-
}
|
|
5501
|
-
message
|
|
5502
|
-
}
|
|
5503
|
-
}
|
|
5504
|
-
${AFFILIATE_FIELDS_FRAGMENT}
|
|
5505
|
-
`;
|
|
5506
|
-
|
|
5507
|
-
// src/images/index.ts
|
|
5508
|
-
var PKG = "@timardex/cluemart-shared";
|
|
5509
|
-
var IMAGE_EXTENSION = ".webp";
|
|
5510
|
-
var posterIds = [
|
|
5511
|
-
"mini-market1",
|
|
5512
|
-
"mini-market2",
|
|
5513
|
-
"mini-market3",
|
|
5514
|
-
"mini-market4",
|
|
5515
|
-
"mini-market5",
|
|
5516
|
-
"poster1",
|
|
5517
|
-
"poster2",
|
|
5518
|
-
"poster3",
|
|
5519
|
-
"poster4"
|
|
5520
|
-
];
|
|
5521
|
-
var posterFiles = Object.fromEntries(
|
|
5522
|
-
posterIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
5523
|
-
);
|
|
5524
|
-
var cluiIds = [
|
|
5525
|
-
"cluiTui",
|
|
5526
|
-
"sima",
|
|
5527
|
-
"tablas",
|
|
5528
|
-
"telefonos",
|
|
5529
|
-
"ugralos"
|
|
5530
|
-
];
|
|
5531
|
-
var cluiFiles = Object.fromEntries(
|
|
5532
|
-
cluiIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
5533
|
-
);
|
|
5534
|
-
var iconIds = [
|
|
5535
|
-
"apple-maps-icon",
|
|
5536
|
-
"facebook",
|
|
5537
|
-
"google-maps-icon",
|
|
5538
|
-
"instagram",
|
|
5539
|
-
"meet",
|
|
5540
|
-
"poll",
|
|
5541
|
-
"tiktok",
|
|
5542
|
-
"tip",
|
|
5543
|
-
"waze-maps-icon",
|
|
5544
|
-
"website",
|
|
5545
|
-
"youtube"
|
|
5546
|
-
];
|
|
5547
|
-
var iconFiles = Object.fromEntries(
|
|
5548
|
-
iconIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
5549
|
-
);
|
|
5550
|
-
var badgeIds = ["corporate", "private", "school"];
|
|
5551
|
-
var badgeFiles = Object.fromEntries(
|
|
5552
|
-
badgeIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
5553
|
-
);
|
|
5554
|
-
var logoIds = [
|
|
5555
|
-
"googleMaps-logo-dark",
|
|
5556
|
-
"googleMaps-logo-light",
|
|
5557
|
-
"logo-atr",
|
|
5558
|
-
"logo-dark",
|
|
5559
|
-
"logo"
|
|
5560
|
-
];
|
|
5561
|
-
var logoFiles = Object.fromEntries(
|
|
5562
|
-
logoIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
5563
|
-
);
|
|
5564
|
-
var otherImagesIds = [
|
|
5565
|
-
"banner-horizontal",
|
|
5566
|
-
"banner-vertical",
|
|
5567
|
-
"gazebo-top",
|
|
5568
|
-
"qr-code",
|
|
5569
|
-
"store-android",
|
|
5570
|
-
"store-ios"
|
|
5571
|
-
];
|
|
5572
|
-
var otherImagesFiles = Object.fromEntries(
|
|
5573
|
-
otherImagesIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
5574
|
-
);
|
|
5575
|
-
var posters = Object.fromEntries(
|
|
5576
|
-
Object.entries(posterFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
5577
|
-
);
|
|
5578
|
-
var cluiImages = Object.fromEntries(
|
|
5579
|
-
Object.entries(cluiFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
5580
|
-
);
|
|
5581
|
-
var icons = Object.fromEntries(
|
|
5582
|
-
Object.entries(iconFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
5583
|
-
);
|
|
5584
|
-
var badges = Object.fromEntries(
|
|
5585
|
-
Object.entries(badgeFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
5586
|
-
);
|
|
5587
|
-
var logos = Object.fromEntries(
|
|
5588
|
-
Object.entries(logoFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
5589
|
-
);
|
|
5590
|
-
var otherImages = Object.fromEntries(
|
|
5591
|
-
Object.entries(otherImagesFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
5592
|
-
);
|
|
5593
|
-
|
|
5594
|
-
// src/sharing/buildShareUrl.ts
|
|
5595
|
-
var PUBLIC_SHARE_PATH_TYPES = [
|
|
5596
|
-
...RESOURCE_SHARE_TYPES,
|
|
5597
|
-
...POST_SHARE_RESOURCE_TYPES
|
|
5598
|
-
];
|
|
5599
|
-
var SHARE_TYPE_PATH_REGEX = [
|
|
5600
|
-
...PUBLIC_SHARE_PATH_TYPES,
|
|
5601
|
-
RELATION_SHARE_APPLICATION,
|
|
5602
|
-
RELATION_SHARE_INVITATION
|
|
5603
|
-
].join("|");
|
|
5604
|
-
|
|
5605
|
-
// src/auth/permissions/rolePermissions.ts
|
|
5606
|
-
var ADMIN_PERMISSIONS = [
|
|
5607
|
-
"dashboard.admin",
|
|
5608
|
-
"events.read",
|
|
5609
|
-
"events.create",
|
|
5610
|
-
"events.update",
|
|
5611
|
-
"events.delete",
|
|
5612
|
-
"vendors.read",
|
|
5613
|
-
"vendors.create",
|
|
5614
|
-
"vendors.update",
|
|
5615
|
-
"vendors.delete",
|
|
5616
|
-
"partners.read",
|
|
5617
|
-
"partners.create",
|
|
5618
|
-
"partners.update",
|
|
5619
|
-
"partners.delete",
|
|
5620
|
-
"schools.read",
|
|
5621
|
-
"schools.create",
|
|
5622
|
-
"schools.update",
|
|
5623
|
-
"schools.delete",
|
|
5624
|
-
"affiliates.read",
|
|
5625
|
-
"affiliates.create",
|
|
5626
|
-
"affiliates.update",
|
|
5627
|
-
"affiliates.delete",
|
|
5628
|
-
"ads.read",
|
|
5629
|
-
"ads.create",
|
|
5630
|
-
"ads.update",
|
|
5631
|
-
"ads.delete",
|
|
5632
|
-
"posts.read",
|
|
5633
|
-
"posts.create",
|
|
5634
|
-
"posts.update",
|
|
5635
|
-
"posts.delete"
|
|
5636
|
-
];
|
|
5637
|
-
var ROLE_PERMISSIONS = {
|
|
5638
|
-
["super_admin" /* SUPER_ADMIN */]: ["*"],
|
|
5639
|
-
["admin" /* ADMIN */]: ADMIN_PERMISSIONS,
|
|
5640
|
-
["customer" /* CUSTOMER */]: ["dashboard.customer"],
|
|
5641
|
-
["event" /* EVENT */]: ["dashboard.event", "events.manage_own"],
|
|
5642
|
-
["vendor" /* VENDOR */]: ["dashboard.vendor", "vendors.manage_own"],
|
|
5643
|
-
["partner" /* PARTNER */]: ["dashboard.partner", "partners.manage_own"],
|
|
5644
|
-
["school" /* SCHOOL */]: ["dashboard.school", "schools.manage_own"],
|
|
5645
|
-
["affiliate" /* AFFILIATE */]: ["dashboard.affiliate", "affiliates.manage_own"]
|
|
5646
|
-
};
|
|
5647
|
-
|
|
5648
|
-
// src/auth/permissions/adminAppAccess.ts
|
|
5649
|
-
var ADMIN_APP_ROLES = [
|
|
5650
|
-
"super_admin" /* SUPER_ADMIN */,
|
|
5651
|
-
"admin" /* ADMIN */,
|
|
5652
|
-
"event" /* EVENT */,
|
|
5653
|
-
"vendor" /* VENDOR */,
|
|
5654
|
-
"partner" /* PARTNER */,
|
|
5655
|
-
"school" /* SCHOOL */,
|
|
5656
|
-
"affiliate" /* AFFILIATE */
|
|
5657
|
-
];
|
|
5658
|
-
var ADMIN_DASHBOARD_CONTEXTS = [
|
|
5659
|
-
{
|
|
5660
|
-
context: "staff",
|
|
5661
|
-
home: "/dashboard",
|
|
5662
|
-
label: "Staff",
|
|
5663
|
-
pathPrefixes: ["/dashboard"],
|
|
5664
|
-
roles: ["super_admin" /* SUPER_ADMIN */, "admin" /* ADMIN */]
|
|
5665
|
-
},
|
|
5666
|
-
{
|
|
5667
|
-
context: "event",
|
|
5668
|
-
home: "/event/dashboard",
|
|
5669
|
-
label: "Events",
|
|
5670
|
-
pathPrefixes: ["/event"],
|
|
5671
|
-
roles: ["event" /* EVENT */]
|
|
5672
|
-
},
|
|
5673
|
-
{
|
|
5674
|
-
context: "vendor",
|
|
5675
|
-
home: "/vendor/dashboard",
|
|
5676
|
-
label: "Stallholders",
|
|
5677
|
-
pathPrefixes: ["/vendor"],
|
|
5678
|
-
roles: ["vendor" /* VENDOR */]
|
|
5679
|
-
},
|
|
5680
|
-
{
|
|
5681
|
-
context: "partner",
|
|
5682
|
-
home: "/partner/dashboard",
|
|
5683
|
-
label: "Partners",
|
|
5684
|
-
pathPrefixes: ["/partner"],
|
|
5685
|
-
roles: ["partner" /* PARTNER */]
|
|
5686
|
-
},
|
|
5687
|
-
{
|
|
5688
|
-
context: "school",
|
|
5689
|
-
home: "/school/dashboard",
|
|
5690
|
-
label: "Schools",
|
|
5691
|
-
pathPrefixes: ["/school"],
|
|
5692
|
-
roles: ["school" /* SCHOOL */]
|
|
5693
|
-
},
|
|
5694
|
-
{
|
|
5695
|
-
context: "affiliate",
|
|
5696
|
-
home: "/affiliate/dashboard",
|
|
5697
|
-
label: "Affiliate",
|
|
5698
|
-
pathPrefixes: ["/affiliate"],
|
|
5699
|
-
roles: ["affiliate" /* AFFILIATE */]
|
|
5700
|
-
}
|
|
5701
|
-
];
|
|
5702
|
-
|
|
5703
|
-
// src/yupSchema/post.ts
|
|
5704
|
-
var postContentSchema = yup8.object().shape({
|
|
5705
|
-
contentData: yup8.mixed().optional().nullable(),
|
|
5706
|
-
contentOrder: yup8.number().nullable(),
|
|
5707
|
-
contentType: yup8.mixed().oneOf(Object.values(EnumPostContentType)).nullable()
|
|
5708
|
-
});
|
|
5709
|
-
var postSchema = yup8.object().shape({
|
|
5710
|
-
active: yup8.boolean().required(),
|
|
5711
|
-
caption: yup8.string().required(),
|
|
5712
|
-
content: yup8.array().of(postContentSchema).required(),
|
|
5713
|
-
postType: yup8.mixed().oneOf(Object.values(EnumPostType)).required(),
|
|
5714
|
-
resource: yup8.object({
|
|
5715
|
-
resourceId: yup8.string().required(),
|
|
5716
|
-
resourceRegion: yup8.string().required(),
|
|
5717
|
-
resourceSlug: yup8.string().required(),
|
|
5718
|
-
resourceType: yup8.mixed().oneOf(Object.values(EnumResourceType)).required()
|
|
5719
|
-
}).nullable().optional(),
|
|
5720
|
-
tags: yup8.array().of(yup8.string().required()).nullable().optional(),
|
|
5721
|
-
title: yup8.string().required()
|
|
5722
|
-
});
|
|
5723
|
-
|
|
5724
|
-
// src/yupSchema/appSettings.ts
|
|
5725
|
-
var yup9 = __toESM(require("yup"));
|
|
5726
|
-
var appSettingsSchema = yup9.object({
|
|
5727
|
-
appVersion: yup9.string().trim().label("App Version").matches(
|
|
5728
|
-
/^\d+\.\d+\.\d+$/,
|
|
5729
|
-
"App Version must be in the format X.Y.Z (e.g. 1.12.50)"
|
|
5730
|
-
).required("App Version is required"),
|
|
5731
|
-
isOfflineMode: yup9.boolean().label("Is Offline Mode").required("Is Offline Mode is required"),
|
|
5732
|
-
minimumRedeemableAffiliatePoints: yup9.number().label("Minimum Redeemable Affiliate Points").min(0, "Minimum Redeemable Affiliate Points must be greater than 0").required("Minimum Redeemable Affiliate Points is required")
|
|
5733
|
-
});
|
|
5734
|
-
|
|
5735
|
-
// src/hooks/utils.ts
|
|
5736
|
-
var defaultLocation = {
|
|
5737
|
-
city: "",
|
|
5738
|
-
country: "",
|
|
5739
|
-
fullAddress: "",
|
|
5740
|
-
geo: {
|
|
5741
|
-
coordinates: [0, 0],
|
|
5742
|
-
// [longitude, latitude]
|
|
5743
|
-
type: "Point"
|
|
5744
|
-
},
|
|
5745
|
-
latitude: 0,
|
|
5746
|
-
longitude: 0,
|
|
5747
|
-
region: ""
|
|
5748
|
-
};
|
|
5749
|
-
var globalDefaultValues = {
|
|
5750
|
-
active: false,
|
|
5751
|
-
contactDetails: {
|
|
5752
|
-
email: null,
|
|
5753
|
-
landlinePhone: null,
|
|
5754
|
-
mobilePhone: null
|
|
5755
|
-
},
|
|
5756
|
-
cover: {
|
|
5757
|
-
active: true,
|
|
5758
|
-
source: "",
|
|
5759
|
-
title: ""
|
|
5760
|
-
},
|
|
5761
|
-
coverUpload: {
|
|
5762
|
-
active: true,
|
|
5763
|
-
source: "",
|
|
5764
|
-
title: ""
|
|
2442
|
+
coverUpload: {
|
|
2443
|
+
active: true,
|
|
2444
|
+
source: "",
|
|
2445
|
+
title: ""
|
|
5765
2446
|
},
|
|
5766
2447
|
description: "",
|
|
5767
2448
|
images: null,
|
|
@@ -5814,7 +2495,7 @@ var defaultVendorFormValues = {
|
|
|
5814
2495
|
foodTruck: false,
|
|
5815
2496
|
products: null,
|
|
5816
2497
|
unregisteredVendorId: null,
|
|
5817
|
-
vendorType: "Stallholder" /*
|
|
2498
|
+
vendorType: "Stallholder" /* Stallholder */
|
|
5818
2499
|
};
|
|
5819
2500
|
var defaultUnregisteredVendorFormValues = {
|
|
5820
2501
|
categoryIds: [],
|
|
@@ -5858,22 +2539,6 @@ var defaultAffiliateFormValues = {
|
|
|
5858
2539
|
socialMedia: null,
|
|
5859
2540
|
termsAgreement: null
|
|
5860
2541
|
};
|
|
5861
|
-
function mapAffiliateToFormData(affiliate) {
|
|
5862
|
-
return {
|
|
5863
|
-
bankAccountDetails: affiliate.affiliateDetails?.bankAccountDetails ?? {
|
|
5864
|
-
accountHolderName: "",
|
|
5865
|
-
accountNumber: ""
|
|
5866
|
-
},
|
|
5867
|
-
contactDetails: affiliate.affiliateDetails?.contactDetails ?? {
|
|
5868
|
-
mobilePhone: ""
|
|
5869
|
-
},
|
|
5870
|
-
irdNumber: affiliate.affiliateDetails?.irdNumber ?? "",
|
|
5871
|
-
location: affiliate.affiliateDetails?.location ?? defaultLocation,
|
|
5872
|
-
participantType: affiliate.affiliateDetails?.participantType ?? "",
|
|
5873
|
-
socialMedia: affiliate.affiliateDetails?.socialMedia ?? null,
|
|
5874
|
-
termsAgreement: affiliate.affiliateDetails?.termsAgreement ?? null
|
|
5875
|
-
};
|
|
5876
|
-
}
|
|
5877
2542
|
function mapBaseResourceTypeToFormData(data) {
|
|
5878
2543
|
return {
|
|
5879
2544
|
_id: data._id,
|
|
@@ -5945,7 +2610,7 @@ function useVendorForm(data) {
|
|
|
5945
2610
|
products,
|
|
5946
2611
|
promoCodes,
|
|
5947
2612
|
region,
|
|
5948
|
-
socialMedia
|
|
2613
|
+
socialMedia,
|
|
5949
2614
|
termsAgreement,
|
|
5950
2615
|
unregisteredVendorId,
|
|
5951
2616
|
vendorType
|
|
@@ -5972,7 +2637,7 @@ function useVendorForm(data) {
|
|
|
5972
2637
|
products,
|
|
5973
2638
|
promoCodes,
|
|
5974
2639
|
region,
|
|
5975
|
-
socialMedia
|
|
2640
|
+
socialMedia,
|
|
5976
2641
|
termsAgreement,
|
|
5977
2642
|
unregisteredVendorId,
|
|
5978
2643
|
vendorType
|
|
@@ -6158,7 +2823,7 @@ function useEventForm(data) {
|
|
|
6158
2823
|
provider,
|
|
6159
2824
|
rainOrShine,
|
|
6160
2825
|
region,
|
|
6161
|
-
socialMedia
|
|
2826
|
+
socialMedia,
|
|
6162
2827
|
tags,
|
|
6163
2828
|
termsAgreement
|
|
6164
2829
|
} = getValues();
|
|
@@ -6186,7 +2851,7 @@ function useEventForm(data) {
|
|
|
6186
2851
|
provider,
|
|
6187
2852
|
rainOrShine,
|
|
6188
2853
|
region,
|
|
6189
|
-
socialMedia
|
|
2854
|
+
socialMedia,
|
|
6190
2855
|
tags,
|
|
6191
2856
|
termsAgreement
|
|
6192
2857
|
},
|
|
@@ -6628,19 +3293,19 @@ var defaultValues8 = {
|
|
|
6628
3293
|
resource: {
|
|
6629
3294
|
adDescription: "",
|
|
6630
3295
|
adImage: "",
|
|
6631
|
-
adStyle: "
|
|
3296
|
+
adStyle: "",
|
|
6632
3297
|
adTitle: "",
|
|
6633
|
-
adType: "
|
|
3298
|
+
adType: "",
|
|
6634
3299
|
resourceId: "",
|
|
6635
3300
|
resourceName: "",
|
|
6636
3301
|
resourceRegion: "",
|
|
6637
3302
|
resourceSlug: "",
|
|
6638
|
-
resourceType: "
|
|
3303
|
+
resourceType: ""
|
|
6639
3304
|
},
|
|
6640
|
-
showOn: ["Front_page" /*
|
|
3305
|
+
showOn: ["Front_page" /* FrontPage */],
|
|
6641
3306
|
// `start` is only required (and must be future) when status !== ACTIVE.
|
|
6642
3307
|
start: void 0,
|
|
6643
|
-
status: "Active" /*
|
|
3308
|
+
status: "Active" /* Active */,
|
|
6644
3309
|
targetRegion: []
|
|
6645
3310
|
};
|
|
6646
3311
|
function useAdForm(data) {
|
|
@@ -6738,7 +3403,7 @@ function usePartnerForm(data) {
|
|
|
6738
3403
|
partnerType,
|
|
6739
3404
|
promoCodes,
|
|
6740
3405
|
region,
|
|
6741
|
-
socialMedia
|
|
3406
|
+
socialMedia,
|
|
6742
3407
|
termsAgreement
|
|
6743
3408
|
} = getValues();
|
|
6744
3409
|
return {
|
|
@@ -6760,7 +3425,7 @@ function usePartnerForm(data) {
|
|
|
6760
3425
|
partnerType,
|
|
6761
3426
|
promoCodes,
|
|
6762
3427
|
region,
|
|
6763
|
-
socialMedia
|
|
3428
|
+
socialMedia,
|
|
6764
3429
|
termsAgreement
|
|
6765
3430
|
},
|
|
6766
3431
|
formState,
|
|
@@ -6968,7 +3633,7 @@ function useSchoolForm(data) {
|
|
|
6968
3633
|
}, [data]);
|
|
6969
3634
|
const {
|
|
6970
3635
|
_id,
|
|
6971
|
-
socialMedia
|
|
3636
|
+
socialMedia,
|
|
6972
3637
|
active,
|
|
6973
3638
|
contactDetails,
|
|
6974
3639
|
location,
|
|
@@ -6990,7 +3655,7 @@ function useSchoolForm(data) {
|
|
|
6990
3655
|
logoUpload,
|
|
6991
3656
|
name,
|
|
6992
3657
|
region,
|
|
6993
|
-
socialMedia
|
|
3658
|
+
socialMedia,
|
|
6994
3659
|
studentCount,
|
|
6995
3660
|
termsAgreement
|
|
6996
3661
|
},
|
|
@@ -7041,7 +3706,7 @@ var affiliateSchema = yup12.object().shape({
|
|
|
7041
3706
|
),
|
|
7042
3707
|
location: locationSchema.required("Location is required"),
|
|
7043
3708
|
participantType: yup12.mixed().oneOf(
|
|
7044
|
-
Object.values(
|
|
3709
|
+
Object.values(AffiliateParticipantTypeEnum),
|
|
7045
3710
|
"Please select a valid participant type"
|
|
7046
3711
|
).required("Participant type is required"),
|
|
7047
3712
|
socialMedia: yup12.array().of(socialMediaSchema).nullable().default(null)
|
|
@@ -7082,7 +3747,7 @@ function useAffiliateForm(data) {
|
|
|
7082
3747
|
irdNumber,
|
|
7083
3748
|
location,
|
|
7084
3749
|
participantType,
|
|
7085
|
-
socialMedia
|
|
3750
|
+
socialMedia,
|
|
7086
3751
|
termsAgreement
|
|
7087
3752
|
} = getValues();
|
|
7088
3753
|
return {
|
|
@@ -7093,7 +3758,7 @@ function useAffiliateForm(data) {
|
|
|
7093
3758
|
irdNumber,
|
|
7094
3759
|
location,
|
|
7095
3760
|
participantType,
|
|
7096
|
-
socialMedia
|
|
3761
|
+
socialMedia,
|
|
7097
3762
|
termsAgreement
|
|
7098
3763
|
},
|
|
7099
3764
|
formState,
|