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