@timardex/cluemart-shared 1.6.130 → 1.7.1
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/ad-BUYzE6zx.d.ts +181 -0
- package/dist/ad-BhLoEul3.d.mts +181 -0
- package/dist/affiliate-BbtjeUP4.d.mts +73 -0
- package/dist/affiliate-C51nzKsw.d.ts +73 -0
- package/dist/apollo/index.d.mts +3 -3
- package/dist/apollo/index.d.ts +3 -3
- package/dist/auth/index.cjs +951 -2546
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +30 -28
- package/dist/auth/index.d.ts +30 -28
- package/dist/auth/index.mjs +25 -24
- package/dist/auth/index.mjs.map +1 -1
- package/dist/chunk-32MKHJTX.mjs +1207 -0
- package/dist/chunk-32MKHJTX.mjs.map +1 -0
- package/dist/chunk-AYO3E4DM.mjs +224 -0
- package/dist/chunk-AYO3E4DM.mjs.map +1 -0
- package/dist/chunk-BIJ5NDXW.mjs +962 -0
- package/dist/chunk-BIJ5NDXW.mjs.map +1 -0
- package/dist/chunk-DQ7ZHIXW.mjs +26 -0
- package/dist/chunk-DQ7ZHIXW.mjs.map +1 -0
- package/dist/chunk-ILILH7E2.mjs +219 -0
- package/dist/chunk-ILILH7E2.mjs.map +1 -0
- package/dist/{chunk-OHHJ3KJJ.mjs → chunk-LBEJECG3.mjs} +64 -71
- package/dist/chunk-LBEJECG3.mjs.map +1 -0
- package/dist/chunk-NPFJ2CN2.mjs +109 -0
- package/dist/chunk-NPFJ2CN2.mjs.map +1 -0
- package/dist/chunk-R6PCFOYO.mjs +3650 -0
- package/dist/chunk-R6PCFOYO.mjs.map +1 -0
- package/dist/{chunk-NWWKI4PJ.mjs → chunk-SD42WIMV.mjs} +5 -5
- package/dist/chunk-SD42WIMV.mjs.map +1 -0
- package/dist/chunk-VA5YN2K3.mjs +48 -0
- package/dist/chunk-VA5YN2K3.mjs.map +1 -0
- package/dist/{chunk-DATBGC2K.mjs → chunk-VPANTTZI.mjs} +23 -108
- package/dist/chunk-VPANTTZI.mjs.map +1 -0
- package/dist/chunk-X3OLM35T.mjs +278 -0
- package/dist/chunk-X3OLM35T.mjs.map +1 -0
- package/dist/contactUs--NoohZBu.d.ts +11 -0
- package/dist/contactUs-CBWzefUS.d.mts +11 -0
- package/dist/enums/index.cjs +229 -2
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +170 -5
- package/dist/enums/index.d.ts +170 -5
- package/dist/enums/index.mjs +41 -1
- package/dist/formFields/index.cjs +112 -284
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +2 -4
- package/dist/formFields/index.d.ts +2 -4
- package/dist/formFields/index.mjs +50 -919
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/global-CUYYxpy2.d.ts +699 -0
- package/dist/global-DePDtOFt.d.mts +699 -0
- package/dist/graphql/index.cjs +2304 -2872
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +469 -422
- package/dist/graphql/index.d.ts +469 -422
- package/dist/graphql/index.mjs +160 -2547
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +3869 -534
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +9 -10
- package/dist/hooks/index.d.ts +9 -10
- package/dist/hooks/index.mjs +72 -54
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/images/index.mjs +21 -86
- package/dist/images/index.mjs.map +1 -1
- package/dist/index.cjs +4477 -5723
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1679 -2539
- package/dist/index.d.ts +1679 -2539
- package/dist/index.mjs +4453 -5682
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +2 -3
- package/dist/map/index.d.ts +2 -3
- package/dist/resourceActivities-CMUcn2P7.d.ts +130 -0
- package/dist/resourceActivities-CwbJFGIp.d.mts +130 -0
- package/dist/sharing/index.cjs +19 -23
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +3 -16
- package/dist/sharing/index.d.ts +3 -16
- package/dist/sharing/index.mjs +29 -183
- package/dist/sharing/index.mjs.map +1 -1
- package/dist/subscription-BU8GvH2K.d.ts +12 -0
- package/dist/subscription-bmAdrnfi.d.mts +12 -0
- package/dist/theme/index.mjs +5 -41
- package/dist/theme/index.mjs.map +1 -1
- package/dist/types/index.cjs +123 -868
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +15 -234
- package/dist/types/index.d.ts +15 -234
- package/dist/types/index.mjs +31 -61
- package/dist/user-D47MLFyH.d.ts +134 -0
- package/dist/user-DE8edl3u.d.mts +134 -0
- package/dist/utils/index.cjs +117 -292
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +23 -25
- package/dist/utils/index.d.ts +23 -25
- package/dist/utils/index.mjs +5 -6
- package/package.json +3 -10
- package/dist/affiliate-Bqqlffw8.d.mts +0 -36
- package/dist/affiliate-Btlp5XUp.d.ts +0 -36
- package/dist/affiliateAdapters-BW3BY7c5.d.mts +0 -118
- package/dist/affiliateAdapters-C51ISmuA.d.ts +0 -118
- package/dist/auth-BOmAO53v.d.ts +0 -169
- package/dist/auth-CsITA95p.d.mts +0 -169
- package/dist/chunk-DATBGC2K.mjs.map +0 -1
- package/dist/chunk-DDHECBJR.mjs +0 -726
- package/dist/chunk-DDHECBJR.mjs.map +0 -1
- package/dist/chunk-INQCDU24.mjs +0 -139
- package/dist/chunk-INQCDU24.mjs.map +0 -1
- package/dist/chunk-NWWKI4PJ.mjs.map +0 -1
- package/dist/chunk-OHHJ3KJJ.mjs.map +0 -1
- package/dist/chunk-TOEFAEF2.mjs +0 -69
- package/dist/chunk-TOEFAEF2.mjs.map +0 -1
- package/dist/chunk-UKW7NZEQ.mjs +0 -2813
- package/dist/chunk-UKW7NZEQ.mjs.map +0 -1
- package/dist/dailyClue-C6WXY73z.d.mts +0 -105
- package/dist/dailyClue-C6WXY73z.d.ts +0 -105
- package/dist/event-C9K7CSg4.d.ts +0 -53
- package/dist/event-W0NhL5Cd.d.mts +0 -53
- package/dist/global-BbSFfYdd.d.ts +0 -181
- package/dist/global-C6v9tRji.d.mts +0 -181
- package/dist/graphql-CDOfA79A.d.ts +0 -1253
- package/dist/graphql-CcvzTs9k.d.mts +0 -1253
- package/dist/resourceActivities-CS8YRIIL.d.mts +0 -89
- package/dist/resourceActivities-DOdNPkhW.d.ts +0 -89
- package/dist/subscription-Cj_qBA7u.d.mts +0 -20
- package/dist/subscription-OiJ50uJb.d.ts +0 -20
- package/dist/vendor-DmMi2qmx.d.mts +0 -73
- package/dist/vendor-M9hVZlni.d.ts +0 -73
package/dist/auth/index.cjs
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
"use client";
|
|
3
|
-
var __create = Object.create;
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
5
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
7
|
var __export = (target, all) => {
|
|
10
8
|
for (var name in all)
|
|
@@ -18,14 +16,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
16
|
}
|
|
19
17
|
return to;
|
|
20
18
|
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
20
|
|
|
31
21
|
// src/auth/index.ts
|
|
@@ -98,23 +88,23 @@ function createAuthManager() {
|
|
|
98
88
|
// src/types/subscription.ts
|
|
99
89
|
var TIERS_BY_PRIORITY = ["pro_plus", "pro", "standard"];
|
|
100
90
|
var TIER_FROM_LICENCE = {
|
|
101
|
-
["pro_event" /*
|
|
102
|
-
["pro_plus_event" /*
|
|
103
|
-
["pro_plus_vendor" /*
|
|
104
|
-
["pro_vendor" /*
|
|
105
|
-
["standard_event" /*
|
|
106
|
-
["standard_partner" /*
|
|
107
|
-
["standard_vendor" /*
|
|
108
|
-
["standard_affiliate" /*
|
|
109
|
-
["standard_school" /*
|
|
91
|
+
["pro_event" /* PRO_EVENT */]: "pro",
|
|
92
|
+
["pro_plus_event" /* PRO_PLUS_EVENT */]: "pro_plus",
|
|
93
|
+
["pro_plus_vendor" /* PRO_PLUS_VENDOR */]: "pro_plus",
|
|
94
|
+
["pro_vendor" /* PRO_VENDOR */]: "pro",
|
|
95
|
+
["standard_event" /* STANDARD_EVENT */]: "standard",
|
|
96
|
+
["standard_partner" /* STANDARD_PARTNER */]: "standard",
|
|
97
|
+
["standard_vendor" /* STANDARD_VENDOR */]: "standard",
|
|
98
|
+
["standard_affiliate" /* STANDARD_AFFILIATE */]: "standard",
|
|
99
|
+
["standard_school" /* STANDARD_SCHOOL */]: "standard"
|
|
110
100
|
};
|
|
111
101
|
|
|
112
102
|
// src/auth/licenceUtils.ts
|
|
113
103
|
function isLicencedResourceType(resourceType) {
|
|
114
|
-
return resourceType !== "affiliate" /*
|
|
104
|
+
return resourceType !== "affiliate" /* AFFILIATE */ && resourceType !== "school" /* SCHOOL */;
|
|
115
105
|
}
|
|
116
106
|
function isProfileBadgeLicence(licenceType) {
|
|
117
|
-
return licenceType !== "standard_affiliate" /*
|
|
107
|
+
return licenceType !== "standard_affiliate" /* STANDARD_AFFILIATE */ && licenceType !== "standard_school" /* STANDARD_SCHOOL */;
|
|
118
108
|
}
|
|
119
109
|
var hasUserLicenceType = (authUser, licenceType) => authUser?.licences?.some((licence) => licence.licenceType === licenceType) ?? false;
|
|
120
110
|
var hasLicence = (authUser, licenceType) => {
|
|
@@ -177,9 +167,9 @@ function getLicenceFlagsByRole(licences) {
|
|
|
177
167
|
return result;
|
|
178
168
|
}
|
|
179
169
|
return {
|
|
180
|
-
event: resolve("event" /*
|
|
181
|
-
partner: resolve("partner" /*
|
|
182
|
-
vendor: resolve("vendor" /*
|
|
170
|
+
event: resolve("event" /* EVENT */),
|
|
171
|
+
partner: resolve("partner" /* PARTNER */),
|
|
172
|
+
vendor: resolve("vendor" /* VENDOR */)
|
|
183
173
|
};
|
|
184
174
|
}
|
|
185
175
|
|
|
@@ -276,17 +266,14 @@ var ADMIN_PERMISSIONS = [
|
|
|
276
266
|
"posts.delete"
|
|
277
267
|
];
|
|
278
268
|
var ROLE_PERMISSIONS = {
|
|
279
|
-
["super_admin" /*
|
|
280
|
-
["admin" /*
|
|
281
|
-
["customer" /*
|
|
282
|
-
["event" /*
|
|
283
|
-
["vendor" /*
|
|
284
|
-
["partner" /*
|
|
285
|
-
["school" /*
|
|
286
|
-
["affiliate" /*
|
|
287
|
-
"dashboard.affiliate",
|
|
288
|
-
"affiliates.manage_own"
|
|
289
|
-
]
|
|
269
|
+
["super_admin" /* SUPER_ADMIN */]: ["*"],
|
|
270
|
+
["admin" /* ADMIN */]: ADMIN_PERMISSIONS,
|
|
271
|
+
["customer" /* CUSTOMER */]: ["dashboard.customer"],
|
|
272
|
+
["event" /* EVENT */]: ["dashboard.event", "events.manage_own"],
|
|
273
|
+
["vendor" /* VENDOR */]: ["dashboard.vendor", "vendors.manage_own"],
|
|
274
|
+
["partner" /* PARTNER */]: ["dashboard.partner", "partners.manage_own"],
|
|
275
|
+
["school" /* SCHOOL */]: ["dashboard.school", "schools.manage_own"],
|
|
276
|
+
["affiliate" /* AFFILIATE */]: ["dashboard.affiliate", "affiliates.manage_own"]
|
|
290
277
|
};
|
|
291
278
|
|
|
292
279
|
// src/auth/permissions/helpers.ts
|
|
@@ -338,13 +325,13 @@ function hasAnyRole(roles, checkRoles) {
|
|
|
338
325
|
|
|
339
326
|
// src/auth/permissions/adminAppAccess.ts
|
|
340
327
|
var ADMIN_APP_ROLES = [
|
|
341
|
-
"super_admin" /*
|
|
342
|
-
"admin" /*
|
|
343
|
-
"event" /*
|
|
344
|
-
"vendor" /*
|
|
345
|
-
"partner" /*
|
|
346
|
-
"school" /*
|
|
347
|
-
"affiliate" /*
|
|
328
|
+
"super_admin" /* SUPER_ADMIN */,
|
|
329
|
+
"admin" /* ADMIN */,
|
|
330
|
+
"event" /* EVENT */,
|
|
331
|
+
"vendor" /* VENDOR */,
|
|
332
|
+
"partner" /* PARTNER */,
|
|
333
|
+
"school" /* SCHOOL */,
|
|
334
|
+
"affiliate" /* AFFILIATE */
|
|
348
335
|
];
|
|
349
336
|
var ADMIN_DASHBOARD_CONTEXTS = [
|
|
350
337
|
{
|
|
@@ -352,42 +339,42 @@ var ADMIN_DASHBOARD_CONTEXTS = [
|
|
|
352
339
|
home: "/dashboard",
|
|
353
340
|
label: "Staff",
|
|
354
341
|
pathPrefixes: ["/dashboard"],
|
|
355
|
-
roles: ["super_admin" /*
|
|
342
|
+
roles: ["super_admin" /* SUPER_ADMIN */, "admin" /* ADMIN */]
|
|
356
343
|
},
|
|
357
344
|
{
|
|
358
345
|
context: "event",
|
|
359
346
|
home: "/event/dashboard",
|
|
360
347
|
label: "Events",
|
|
361
348
|
pathPrefixes: ["/event"],
|
|
362
|
-
roles: ["event" /*
|
|
349
|
+
roles: ["event" /* EVENT */]
|
|
363
350
|
},
|
|
364
351
|
{
|
|
365
352
|
context: "vendor",
|
|
366
353
|
home: "/vendor/dashboard",
|
|
367
354
|
label: "Stallholders",
|
|
368
355
|
pathPrefixes: ["/vendor"],
|
|
369
|
-
roles: ["vendor" /*
|
|
356
|
+
roles: ["vendor" /* VENDOR */]
|
|
370
357
|
},
|
|
371
358
|
{
|
|
372
359
|
context: "partner",
|
|
373
360
|
home: "/partner/dashboard",
|
|
374
361
|
label: "Partners",
|
|
375
362
|
pathPrefixes: ["/partner"],
|
|
376
|
-
roles: ["partner" /*
|
|
363
|
+
roles: ["partner" /* PARTNER */]
|
|
377
364
|
},
|
|
378
365
|
{
|
|
379
366
|
context: "school",
|
|
380
367
|
home: "/school/dashboard",
|
|
381
368
|
label: "Schools",
|
|
382
369
|
pathPrefixes: ["/school"],
|
|
383
|
-
roles: ["school" /*
|
|
370
|
+
roles: ["school" /* SCHOOL */]
|
|
384
371
|
},
|
|
385
372
|
{
|
|
386
373
|
context: "affiliate",
|
|
387
374
|
home: "/affiliate/dashboard",
|
|
388
375
|
label: "Affiliate",
|
|
389
376
|
pathPrefixes: ["/affiliate"],
|
|
390
|
-
roles: ["affiliate" /*
|
|
377
|
+
roles: ["affiliate" /* AFFILIATE */]
|
|
391
378
|
}
|
|
392
379
|
];
|
|
393
380
|
function canAccessAdminApp(roles) {
|
|
@@ -437,2538 +424,303 @@ var import_client3 = require("@apollo/client");
|
|
|
437
424
|
// src/graphql/mutations/auth.ts
|
|
438
425
|
var import_client2 = require("@apollo/client");
|
|
439
426
|
|
|
440
|
-
// src/
|
|
427
|
+
// src/graphql/queries/global.ts
|
|
441
428
|
var import_client = require("@apollo/client");
|
|
442
|
-
var
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
active
|
|
447
|
-
clicks
|
|
448
|
-
createdAt
|
|
449
|
-
end
|
|
450
|
-
impressions
|
|
451
|
-
resource {
|
|
452
|
-
adDescription
|
|
453
|
-
adImage
|
|
454
|
-
adStyle
|
|
455
|
-
adTitle
|
|
456
|
-
adType
|
|
457
|
-
resourceId
|
|
458
|
-
resourceSlug
|
|
459
|
-
resourceName
|
|
460
|
-
resourceRegion
|
|
461
|
-
resourceType
|
|
462
|
-
}
|
|
463
|
-
showOn
|
|
464
|
-
start
|
|
465
|
-
status
|
|
466
|
-
targetRegion
|
|
467
|
-
updatedAt
|
|
468
|
-
}
|
|
469
|
-
`;
|
|
470
|
-
var AppSettingsFieldsFragmentDoc = import_client.gql`
|
|
471
|
-
fragment AppSettingsFields on AppSettingsType {
|
|
472
|
-
_id
|
|
473
|
-
appVersion
|
|
474
|
-
createdAt
|
|
475
|
-
isOfflineMode
|
|
476
|
-
key
|
|
477
|
-
minimumRedeemableAffiliatePoints
|
|
478
|
-
updatedAt
|
|
479
|
-
}
|
|
480
|
-
`;
|
|
481
|
-
var ChatReportFieldsFragmentDoc = import_client.gql`
|
|
482
|
-
fragment ChatReportFields on ReportChatUserType {
|
|
483
|
-
_id
|
|
484
|
-
chatId
|
|
485
|
-
createdAt
|
|
486
|
-
reason {
|
|
487
|
-
reasonType
|
|
488
|
-
details
|
|
489
|
-
}
|
|
490
|
-
reportedUserId
|
|
491
|
-
reporterUserId
|
|
492
|
-
resolved
|
|
493
|
-
updatedAt
|
|
494
|
-
}
|
|
495
|
-
`;
|
|
496
|
-
var NotificationFieldsFragmentDoc = import_client.gql`
|
|
497
|
-
fragment NotificationFields on Notification {
|
|
498
|
-
_id
|
|
499
|
-
userId
|
|
500
|
-
title
|
|
501
|
-
message
|
|
502
|
-
type
|
|
503
|
-
isRead
|
|
504
|
-
data {
|
|
505
|
-
resourceId
|
|
506
|
-
resourceName
|
|
507
|
-
resourceType
|
|
508
|
-
}
|
|
509
|
-
createdAt
|
|
510
|
-
updatedAt
|
|
511
|
-
}
|
|
512
|
-
`;
|
|
513
|
-
var ChatMessageFieldsFragmentDoc = import_client.gql`
|
|
514
|
-
fragment ChatMessageFields on ChatMessageType {
|
|
515
|
-
_id
|
|
516
|
-
content
|
|
517
|
-
createdAt
|
|
518
|
-
replyToMessageId
|
|
519
|
-
replyPreview {
|
|
520
|
-
senderId
|
|
521
|
-
senderName
|
|
522
|
-
contentPreview
|
|
523
|
-
}
|
|
524
|
-
likedBy {
|
|
525
|
-
userId
|
|
526
|
-
createdAt
|
|
527
|
-
}
|
|
528
|
-
senderId
|
|
529
|
-
seenBy {
|
|
530
|
-
userId
|
|
531
|
-
seenAt
|
|
532
|
-
}
|
|
533
|
-
updatedAt
|
|
534
|
-
}
|
|
535
|
-
`;
|
|
536
|
-
var ChatParticipantFieldsFragmentDoc = import_client.gql`
|
|
537
|
-
fragment ChatParticipantFields on ChatParticipantType {
|
|
538
|
-
active
|
|
539
|
-
userAvatar
|
|
540
|
-
userEmail
|
|
541
|
-
userId
|
|
542
|
-
userName
|
|
543
|
-
}
|
|
544
|
-
`;
|
|
545
|
-
var ChatFieldsFragmentDoc = import_client.gql`
|
|
546
|
-
fragment ChatFields on ChatType {
|
|
547
|
-
_id
|
|
548
|
-
active
|
|
549
|
-
chatDescription
|
|
550
|
-
chatName
|
|
551
|
-
chatType
|
|
552
|
-
createdAt
|
|
553
|
-
deletedAt
|
|
554
|
-
messages {
|
|
555
|
-
...ChatMessageFields
|
|
556
|
-
}
|
|
557
|
-
participants {
|
|
558
|
-
...ChatParticipantFields
|
|
559
|
-
}
|
|
560
|
-
region
|
|
561
|
-
updatedAt
|
|
562
|
-
}
|
|
563
|
-
${ChatMessageFieldsFragmentDoc}
|
|
564
|
-
${ChatParticipantFieldsFragmentDoc}`;
|
|
565
|
-
var StallTypeFieldsFragmentDoc = import_client.gql`
|
|
566
|
-
fragment StallTypeFields on StallTypeType {
|
|
567
|
-
label
|
|
568
|
-
price
|
|
569
|
-
stallCapacity
|
|
570
|
-
}
|
|
571
|
-
`;
|
|
572
|
-
var EventInfoFieldsFragmentDoc = import_client.gql`
|
|
573
|
-
fragment EventInfoFields on EventInfoType {
|
|
574
|
-
_id
|
|
575
|
-
applicationDeadlineHours
|
|
576
|
-
dateTime {
|
|
577
|
-
dateStatus
|
|
578
|
-
endDate
|
|
579
|
-
endTime
|
|
580
|
-
stallTypes {
|
|
581
|
-
...StallTypeFields
|
|
582
|
-
}
|
|
583
|
-
startDate
|
|
584
|
-
startTime
|
|
429
|
+
var POSTER_USAGE_FIELDS_FRAGMENT = import_client.gql`
|
|
430
|
+
fragment PosterUsageFields on PosterUsageType {
|
|
431
|
+
month
|
|
432
|
+
count
|
|
585
433
|
}
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
accountHolderName
|
|
591
|
-
accountNumber
|
|
434
|
+
`;
|
|
435
|
+
var SOCIAL_MEDIA_FIELDS_FRAGMENT = import_client.gql`
|
|
436
|
+
fragment SocialMediaFields on SocialMediaType {
|
|
437
|
+
name
|
|
592
438
|
link
|
|
593
|
-
paymentMethod
|
|
594
|
-
}
|
|
595
|
-
refundPolicy {
|
|
596
|
-
category
|
|
597
|
-
label
|
|
598
|
-
value
|
|
599
439
|
}
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
440
|
+
`;
|
|
441
|
+
var RESOURCE_IMAGE_FIELDS_FRAGMENT = import_client.gql`
|
|
442
|
+
fragment ResourceImageFields on ResourceImageType {
|
|
443
|
+
active
|
|
444
|
+
source
|
|
445
|
+
title
|
|
604
446
|
}
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
coordinates
|
|
610
|
-
type
|
|
611
|
-
}
|
|
612
|
-
`;
|
|
613
|
-
var ResourceActivityFieldsFragmentDoc = import_client.gql`
|
|
614
|
-
fragment ResourceActivityFields on ResourceActivityType {
|
|
615
|
-
resourceId
|
|
616
|
-
resourceType
|
|
617
|
-
activity {
|
|
618
|
-
activityType
|
|
619
|
-
location {
|
|
620
|
-
...LocationGeoFields
|
|
621
|
-
}
|
|
622
|
-
dateStatus
|
|
623
|
-
startDate
|
|
624
|
-
startTime
|
|
625
|
-
timestamp
|
|
626
|
-
userAgent
|
|
447
|
+
`;
|
|
448
|
+
var OWNER_FIELDS_FRAGMENT = import_client.gql`
|
|
449
|
+
fragment OwnerFields on OwnerType {
|
|
450
|
+
email
|
|
627
451
|
userId
|
|
628
452
|
}
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
active
|
|
642
|
-
avatar {
|
|
643
|
-
...ResourceImageFields
|
|
644
|
-
}
|
|
645
|
-
email
|
|
646
|
-
firstName
|
|
647
|
-
lastName
|
|
648
|
-
}
|
|
649
|
-
${ResourceImageFieldsFragmentDoc}`;
|
|
650
|
-
var VendorAttributesFieldsFragmentDoc = import_client.gql`
|
|
651
|
-
fragment VendorAttributesFields on VendorAttributesType {
|
|
652
|
-
details
|
|
653
|
-
isRequired
|
|
654
|
-
}
|
|
655
|
-
`;
|
|
656
|
-
var VendorInfoFieldsFragmentDoc = import_client.gql`
|
|
657
|
-
fragment VendorInfoFields on VendorInfoType {
|
|
658
|
-
_id
|
|
659
|
-
compliance {
|
|
660
|
-
foodBeverageLicense
|
|
661
|
-
liabilityInsurance
|
|
662
|
-
}
|
|
663
|
-
documents {
|
|
664
|
-
...ResourceImageFields
|
|
665
|
-
}
|
|
666
|
-
requirements {
|
|
667
|
-
electricity {
|
|
668
|
-
...VendorAttributesFields
|
|
669
|
-
}
|
|
670
|
-
gazebo {
|
|
671
|
-
...VendorAttributesFields
|
|
672
|
-
}
|
|
673
|
-
table {
|
|
674
|
-
...VendorAttributesFields
|
|
453
|
+
`;
|
|
454
|
+
var CATEGORY_FIELDS_FRAGMENT = import_client.gql`
|
|
455
|
+
fragment CategoryFields on CategoryType {
|
|
456
|
+
id
|
|
457
|
+
name
|
|
458
|
+
subcategories {
|
|
459
|
+
id
|
|
460
|
+
items {
|
|
461
|
+
id
|
|
462
|
+
name
|
|
463
|
+
}
|
|
464
|
+
name
|
|
675
465
|
}
|
|
676
466
|
}
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
producedIn
|
|
467
|
+
`;
|
|
468
|
+
var LICENCE_FIELDS_FRAGMENT = import_client.gql`
|
|
469
|
+
fragment LicenceFields on UserLicenceType {
|
|
470
|
+
expiryDate
|
|
471
|
+
issuedDate
|
|
472
|
+
licenceType
|
|
473
|
+
prevLicenceType
|
|
685
474
|
}
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
475
|
+
`;
|
|
476
|
+
var TERMS_AGREEMENT_FIELDS_FRAGMENT = import_client.gql`
|
|
477
|
+
fragment TermsAgreementFields on TermsAgreementType {
|
|
478
|
+
appBuildNumber
|
|
479
|
+
appId
|
|
480
|
+
appVersion
|
|
481
|
+
brand
|
|
482
|
+
deviceName
|
|
483
|
+
installationId
|
|
484
|
+
manufacturer
|
|
485
|
+
modelName
|
|
486
|
+
osName
|
|
487
|
+
osVersion
|
|
488
|
+
termVersion
|
|
489
|
+
timestamp
|
|
691
490
|
}
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
${VendorAttributesFieldsFragmentDoc}`;
|
|
696
|
-
var ContactDetailsFieldsFragmentDoc = import_client.gql`
|
|
697
|
-
fragment ContactDetailsFields on ContactDetailsType {
|
|
698
|
-
email
|
|
699
|
-
landlinePhone
|
|
700
|
-
mobilePhone
|
|
701
|
-
}
|
|
702
|
-
`;
|
|
703
|
-
var DateTimeFieldsFragmentDoc = import_client.gql`
|
|
704
|
-
fragment DateTimeFields on DateTimeType {
|
|
705
|
-
dateStatus
|
|
706
|
-
endDate
|
|
707
|
-
endTime
|
|
708
|
-
startDate
|
|
709
|
-
startTime
|
|
710
|
-
}
|
|
711
|
-
`;
|
|
712
|
-
var LocationFieldsFragmentDoc = import_client.gql`
|
|
713
|
-
fragment LocationFields on LocationType {
|
|
714
|
-
city
|
|
715
|
-
country
|
|
716
|
-
fullAddress
|
|
717
|
-
geo {
|
|
718
|
-
...LocationGeoFields
|
|
719
|
-
}
|
|
720
|
-
latitude
|
|
721
|
-
longitude
|
|
722
|
-
region
|
|
723
|
-
}
|
|
724
|
-
${LocationGeoFieldsFragmentDoc}`;
|
|
725
|
-
var OwnerFieldsFragmentDoc = import_client.gql`
|
|
726
|
-
fragment OwnerFields on OwnerType {
|
|
727
|
-
email
|
|
728
|
-
userId
|
|
729
|
-
}
|
|
730
|
-
`;
|
|
731
|
-
var PosterUsageFieldsFragmentDoc = import_client.gql`
|
|
732
|
-
fragment PosterUsageFields on PosterUsageType {
|
|
733
|
-
month
|
|
734
|
-
count
|
|
735
|
-
}
|
|
736
|
-
`;
|
|
737
|
-
var RelationDatesFragmentDoc = import_client.gql`
|
|
738
|
-
fragment RelationDates on RelationDateType {
|
|
739
|
-
dateTime {
|
|
491
|
+
`;
|
|
492
|
+
var DATETIME_FIELDS_FRAGMENT = import_client.gql`
|
|
493
|
+
fragment DateTimeFields on DateTimeType {
|
|
740
494
|
dateStatus
|
|
741
495
|
endDate
|
|
742
496
|
endTime
|
|
743
497
|
startDate
|
|
744
498
|
startTime
|
|
745
|
-
stallType {
|
|
746
|
-
...StallTypeFields
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
lastUpdateBy {
|
|
750
|
-
resourceId
|
|
751
|
-
userEmail
|
|
752
|
-
}
|
|
753
|
-
paymentReference
|
|
754
|
-
status
|
|
755
|
-
}
|
|
756
|
-
${StallTypeFieldsFragmentDoc}`;
|
|
757
|
-
var RelatedPostFieldsFragmentDoc = import_client.gql`
|
|
758
|
-
fragment RelatedPostFields on RelatedPostType {
|
|
759
|
-
postActive
|
|
760
|
-
postId
|
|
761
|
-
postSlug
|
|
762
|
-
postType
|
|
763
|
-
}
|
|
764
|
-
`;
|
|
765
|
-
var SocialMediaFieldsFragmentDoc = import_client.gql`
|
|
766
|
-
fragment SocialMediaFields on SocialMediaType {
|
|
767
|
-
name
|
|
768
|
-
link
|
|
769
|
-
}
|
|
770
|
-
`;
|
|
771
|
-
var SocialShareResourceFieldsFragmentDoc = import_client.gql`
|
|
772
|
-
fragment SocialShareResourceFields on SocialShareResourceType {
|
|
773
|
-
qrCode {
|
|
774
|
-
...ResourceImageFields
|
|
775
499
|
}
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
var TermsAgreementFieldsFragmentDoc = import_client.gql`
|
|
782
|
-
fragment TermsAgreementFields on TermsAgreementType {
|
|
783
|
-
appBuildNumber
|
|
784
|
-
appId
|
|
785
|
-
appVersion
|
|
786
|
-
brand
|
|
787
|
-
deviceName
|
|
788
|
-
installationId
|
|
789
|
-
manufacturer
|
|
790
|
-
modelName
|
|
791
|
-
osName
|
|
792
|
-
osVersion
|
|
793
|
-
termVersion
|
|
794
|
-
timestamp
|
|
795
|
-
}
|
|
796
|
-
`;
|
|
797
|
-
var EventFieldsFragmentDoc = import_client.gql`
|
|
798
|
-
fragment EventFields on EventType {
|
|
799
|
-
_id
|
|
800
|
-
active
|
|
801
|
-
adIds
|
|
802
|
-
approvedAt
|
|
803
|
-
cover {
|
|
804
|
-
...ResourceImageFields
|
|
805
|
-
}
|
|
806
|
-
claimed
|
|
807
|
-
createdAt
|
|
808
|
-
contactDetails {
|
|
809
|
-
...ContactDetailsFields
|
|
810
|
-
}
|
|
811
|
-
dateTime {
|
|
812
|
-
...DateTimeFields
|
|
813
|
-
}
|
|
814
|
-
description
|
|
815
|
-
deletedAt
|
|
816
|
-
googlePlaceId
|
|
817
|
-
images {
|
|
818
|
-
...ResourceImageFields
|
|
819
|
-
}
|
|
820
|
-
eventType
|
|
821
|
-
location {
|
|
822
|
-
...LocationFields
|
|
823
|
-
}
|
|
824
|
-
logo {
|
|
825
|
-
...ResourceImageFields
|
|
826
|
-
}
|
|
827
|
-
eventInfoId
|
|
828
|
-
name
|
|
829
|
-
nzbn
|
|
830
|
-
owner {
|
|
831
|
-
...OwnerFields
|
|
832
|
-
}
|
|
833
|
-
promoCodes
|
|
834
|
-
provider
|
|
835
|
-
posterUsage {
|
|
836
|
-
...PosterUsageFields
|
|
837
|
-
}
|
|
838
|
-
region
|
|
839
|
-
relations {
|
|
840
|
-
relationId
|
|
841
|
-
relationDates {
|
|
842
|
-
...RelationDates
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
rating
|
|
846
|
-
reviewCount
|
|
847
|
-
rainOrShine
|
|
848
|
-
relatedPost {
|
|
849
|
-
...RelatedPostFields
|
|
850
|
-
}
|
|
851
|
-
socialMedia {
|
|
852
|
-
...SocialMediaFields
|
|
853
|
-
}
|
|
854
|
-
sharePublic {
|
|
855
|
-
...SocialShareResourceFields
|
|
856
|
-
}
|
|
857
|
-
shareRelation {
|
|
858
|
-
...SocialShareResourceFields
|
|
859
|
-
}
|
|
860
|
-
slug
|
|
861
|
-
tags
|
|
862
|
-
termsAgreement {
|
|
863
|
-
...TermsAgreementFields
|
|
864
|
-
}
|
|
865
|
-
updatedAt
|
|
866
|
-
}
|
|
867
|
-
${ResourceImageFieldsFragmentDoc}
|
|
868
|
-
${ContactDetailsFieldsFragmentDoc}
|
|
869
|
-
${DateTimeFieldsFragmentDoc}
|
|
870
|
-
${LocationFieldsFragmentDoc}
|
|
871
|
-
${OwnerFieldsFragmentDoc}
|
|
872
|
-
${PosterUsageFieldsFragmentDoc}
|
|
873
|
-
${RelationDatesFragmentDoc}
|
|
874
|
-
${RelatedPostFieldsFragmentDoc}
|
|
875
|
-
${SocialMediaFieldsFragmentDoc}
|
|
876
|
-
${SocialShareResourceFieldsFragmentDoc}
|
|
877
|
-
${TermsAgreementFieldsFragmentDoc}`;
|
|
878
|
-
var EventListItemFieldsFragmentDoc = import_client.gql`
|
|
879
|
-
fragment EventListItemFields on EventListItemType {
|
|
880
|
-
_id
|
|
881
|
-
active
|
|
882
|
-
approvedAt
|
|
883
|
-
claimed
|
|
884
|
-
cover {
|
|
885
|
-
...ResourceImageFields
|
|
886
|
-
}
|
|
887
|
-
createdAt
|
|
888
|
-
dateTime {
|
|
889
|
-
...DateTimeFields
|
|
890
|
-
}
|
|
891
|
-
deletedAt
|
|
892
|
-
description
|
|
893
|
-
eventType
|
|
894
|
-
googlePlaceId
|
|
895
|
-
images {
|
|
896
|
-
...ResourceImageFields
|
|
897
|
-
}
|
|
898
|
-
location {
|
|
899
|
-
...LocationFields
|
|
900
|
-
}
|
|
901
|
-
logo {
|
|
902
|
-
...ResourceImageFields
|
|
903
|
-
}
|
|
904
|
-
name
|
|
905
|
-
rainOrShine
|
|
906
|
-
rating
|
|
907
|
-
region
|
|
908
|
-
relations {
|
|
909
|
-
relationId
|
|
910
|
-
relationDates {
|
|
911
|
-
...RelationDates
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
reviewCount
|
|
915
|
-
slug
|
|
916
|
-
updatedAt
|
|
917
|
-
}
|
|
918
|
-
${ResourceImageFieldsFragmentDoc}
|
|
919
|
-
${DateTimeFieldsFragmentDoc}
|
|
920
|
-
${LocationFieldsFragmentDoc}
|
|
921
|
-
${RelationDatesFragmentDoc}`;
|
|
922
|
-
var PartnerFieldsFragmentDoc = import_client.gql`
|
|
923
|
-
fragment PartnerFields on PartnerType {
|
|
924
|
-
_id
|
|
925
|
-
active
|
|
926
|
-
adIds
|
|
927
|
-
approvedAt
|
|
928
|
-
cover {
|
|
929
|
-
...ResourceImageFields
|
|
930
|
-
}
|
|
931
|
-
createdAt
|
|
932
|
-
contactDetails {
|
|
933
|
-
...ContactDetailsFields
|
|
934
|
-
}
|
|
935
|
-
description
|
|
936
|
-
deletedAt
|
|
937
|
-
images {
|
|
938
|
-
...ResourceImageFields
|
|
939
|
-
}
|
|
940
|
-
location {
|
|
941
|
-
...LocationFields
|
|
942
|
-
}
|
|
943
|
-
logo {
|
|
944
|
-
...ResourceImageFields
|
|
945
|
-
}
|
|
946
|
-
name
|
|
947
|
-
nzbn
|
|
948
|
-
owner {
|
|
949
|
-
...OwnerFields
|
|
950
|
-
}
|
|
951
|
-
partnerType
|
|
952
|
-
posterUsage {
|
|
953
|
-
...PosterUsageFields
|
|
954
|
-
}
|
|
955
|
-
rating
|
|
956
|
-
region
|
|
957
|
-
reviewCount
|
|
958
|
-
relatedPost {
|
|
959
|
-
...RelatedPostFields
|
|
960
|
-
}
|
|
961
|
-
socialMedia {
|
|
962
|
-
...SocialMediaFields
|
|
963
|
-
}
|
|
964
|
-
slug
|
|
965
|
-
sharePublic {
|
|
966
|
-
...SocialShareResourceFields
|
|
967
|
-
}
|
|
968
|
-
termsAgreement {
|
|
969
|
-
...TermsAgreementFields
|
|
970
|
-
}
|
|
971
|
-
updatedAt
|
|
972
|
-
}
|
|
973
|
-
${ResourceImageFieldsFragmentDoc}
|
|
974
|
-
${ContactDetailsFieldsFragmentDoc}
|
|
975
|
-
${LocationFieldsFragmentDoc}
|
|
976
|
-
${OwnerFieldsFragmentDoc}
|
|
977
|
-
${PosterUsageFieldsFragmentDoc}
|
|
978
|
-
${RelatedPostFieldsFragmentDoc}
|
|
979
|
-
${SocialMediaFieldsFragmentDoc}
|
|
980
|
-
${SocialShareResourceFieldsFragmentDoc}
|
|
981
|
-
${TermsAgreementFieldsFragmentDoc}`;
|
|
982
|
-
var RelationFieldsFragmentDoc = import_client.gql`
|
|
983
|
-
fragment RelationFields on RelationType {
|
|
984
|
-
_id
|
|
985
|
-
active
|
|
986
|
-
chatId
|
|
987
|
-
createdAt
|
|
988
|
-
lastUpdateBy
|
|
989
|
-
eventId
|
|
990
|
-
relationDates {
|
|
991
|
-
...RelationDates
|
|
992
|
-
}
|
|
993
|
-
relationType
|
|
994
|
-
vendorId
|
|
995
|
-
updatedAt
|
|
996
|
-
}
|
|
997
|
-
${RelationDatesFragmentDoc}`;
|
|
998
|
-
var SchoolCampaignFieldsFragmentDoc = import_client.gql`
|
|
999
|
-
fragment SchoolCampaignFields on SchoolCampaignType {
|
|
1000
|
-
endDate
|
|
1001
|
-
name
|
|
1002
|
-
startDate
|
|
1003
|
-
}
|
|
1004
|
-
`;
|
|
1005
|
-
var SchoolFieldsFragmentDoc = import_client.gql`
|
|
1006
|
-
fragment SchoolFields on SchoolType {
|
|
1007
|
-
_id
|
|
1008
|
-
active
|
|
1009
|
-
approvedAt
|
|
1010
|
-
campaigns {
|
|
1011
|
-
...SchoolCampaignFields
|
|
1012
|
-
}
|
|
1013
|
-
contactDetails {
|
|
1014
|
-
...ContactDetailsFields
|
|
1015
|
-
}
|
|
1016
|
-
location {
|
|
1017
|
-
...LocationFields
|
|
1018
|
-
}
|
|
1019
|
-
createdAt
|
|
1020
|
-
deletedAt
|
|
1021
|
-
logo {
|
|
1022
|
-
...ResourceImageFields
|
|
1023
|
-
}
|
|
1024
|
-
name
|
|
1025
|
-
owner {
|
|
1026
|
-
...OwnerFields
|
|
1027
|
-
}
|
|
1028
|
-
overallPoints
|
|
1029
|
-
ranking
|
|
1030
|
-
region
|
|
1031
|
-
studentCount
|
|
1032
|
-
schoolCode
|
|
1033
|
-
socialMedia {
|
|
1034
|
-
...SocialMediaFields
|
|
1035
|
-
}
|
|
1036
|
-
termsAgreement {
|
|
1037
|
-
...TermsAgreementFields
|
|
1038
|
-
}
|
|
1039
|
-
updatedAt
|
|
1040
|
-
}
|
|
1041
|
-
${SchoolCampaignFieldsFragmentDoc}
|
|
1042
|
-
${ContactDetailsFieldsFragmentDoc}
|
|
1043
|
-
${LocationFieldsFragmentDoc}
|
|
1044
|
-
${ResourceImageFieldsFragmentDoc}
|
|
1045
|
-
${OwnerFieldsFragmentDoc}
|
|
1046
|
-
${SocialMediaFieldsFragmentDoc}
|
|
1047
|
-
${TermsAgreementFieldsFragmentDoc}`;
|
|
1048
|
-
var UnregisteredVendorInvitationFieldsFragmentDoc = import_client.gql`
|
|
1049
|
-
fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
|
|
1050
|
-
dateTime {
|
|
1051
|
-
...DateTimeFields
|
|
1052
|
-
}
|
|
1053
|
-
inviterId
|
|
1054
|
-
}
|
|
1055
|
-
${DateTimeFieldsFragmentDoc}`;
|
|
1056
|
-
var UnregisteredVendorFieldsFragmentDoc = import_client.gql`
|
|
1057
|
-
fragment UnregisteredVendorFields on UnregisteredVendorType {
|
|
1058
|
-
_id
|
|
1059
|
-
active
|
|
1060
|
-
categoryIds
|
|
1061
|
-
claimed
|
|
1062
|
-
createdAt
|
|
1063
|
-
deletedAt
|
|
1064
|
-
email
|
|
1065
|
-
invitations {
|
|
1066
|
-
...UnregisteredVendorInvitationFields
|
|
1067
|
-
}
|
|
1068
|
-
name
|
|
1069
|
-
region
|
|
1070
|
-
updatedAt
|
|
1071
|
-
}
|
|
1072
|
-
${UnregisteredVendorInvitationFieldsFragmentDoc}`;
|
|
1073
|
-
var LicenceFieldsFragmentDoc = import_client.gql`
|
|
1074
|
-
fragment LicenceFields on UserLicenceType {
|
|
1075
|
-
expiryDate
|
|
1076
|
-
issuedDate
|
|
1077
|
-
licenceType
|
|
1078
|
-
prevLicenceType
|
|
1079
|
-
}
|
|
1080
|
-
`;
|
|
1081
|
-
var RedeemedRewardFieldsFragmentDoc = import_client.gql`
|
|
1082
|
-
fragment RedeemedRewardFields on RedeemedRewardType {
|
|
1083
|
-
name
|
|
1084
|
-
pointsUsed
|
|
1085
|
-
redeemedAt
|
|
1086
|
-
}
|
|
1087
|
-
`;
|
|
1088
|
-
var StripeSubscriptionFieldsFragmentDoc = import_client.gql`
|
|
1089
|
-
fragment StripeSubscriptionFields on StripeSubscriptionType {
|
|
1090
|
-
customerId
|
|
1091
|
-
subscriptionId
|
|
1092
|
-
status
|
|
1093
|
-
currentPlan
|
|
1094
|
-
startDate
|
|
1095
|
-
endDate
|
|
1096
|
-
}
|
|
1097
|
-
`;
|
|
1098
|
-
var UserActivityFieldsFragmentDoc = import_client.gql`
|
|
1099
|
-
fragment UserActivityFields on UserActivityType {
|
|
1100
|
-
favourites {
|
|
1101
|
-
events
|
|
1102
|
-
partners
|
|
1103
|
-
vendors
|
|
500
|
+
`;
|
|
501
|
+
var LOCATION_GEO_FIELDS_FRAGMENT = import_client.gql`
|
|
502
|
+
fragment LocationGeoFields on LocationGeoType {
|
|
503
|
+
coordinates
|
|
504
|
+
type
|
|
1104
505
|
}
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
506
|
+
`;
|
|
507
|
+
var LOCATION_FIELDS_FRAGMENT = import_client.gql`
|
|
508
|
+
fragment LocationFields on LocationType {
|
|
509
|
+
city
|
|
510
|
+
country
|
|
511
|
+
fullAddress
|
|
512
|
+
geo {
|
|
513
|
+
...LocationGeoFields
|
|
1111
514
|
}
|
|
515
|
+
latitude
|
|
516
|
+
longitude
|
|
517
|
+
region
|
|
1112
518
|
}
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
519
|
+
${LOCATION_GEO_FIELDS_FRAGMENT}
|
|
520
|
+
`;
|
|
521
|
+
var USER_ACTIVITY_FIELDS_FRAGMENT = import_client.gql`
|
|
522
|
+
fragment UserActivityFields on UserActivityType {
|
|
523
|
+
favourites {
|
|
524
|
+
events
|
|
525
|
+
partners
|
|
526
|
+
vendors
|
|
1119
527
|
}
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
528
|
+
going {
|
|
529
|
+
events {
|
|
530
|
+
resourceId
|
|
531
|
+
dateTime {
|
|
532
|
+
...DateTimeFields
|
|
533
|
+
}
|
|
1126
534
|
}
|
|
1127
535
|
}
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
active
|
|
1135
|
-
affiliate
|
|
1136
|
-
avatar {
|
|
1137
|
-
...ResourceImageFields
|
|
1138
|
-
}
|
|
1139
|
-
createdAt
|
|
1140
|
-
deletedAt
|
|
1141
|
-
email
|
|
1142
|
-
events
|
|
1143
|
-
firstName
|
|
1144
|
-
game
|
|
1145
|
-
isTester
|
|
1146
|
-
lastName
|
|
1147
|
-
licences {
|
|
1148
|
-
...LicenceFields
|
|
1149
|
-
}
|
|
1150
|
-
location {
|
|
1151
|
-
...LocationFields
|
|
1152
|
-
}
|
|
1153
|
-
partner
|
|
1154
|
-
overallPoints
|
|
1155
|
-
platform
|
|
1156
|
-
preferredRegion
|
|
1157
|
-
permissions
|
|
1158
|
-
promoCodes
|
|
1159
|
-
roles
|
|
1160
|
-
redeemedRewards {
|
|
1161
|
-
...RedeemedRewardFields
|
|
1162
|
-
}
|
|
1163
|
-
school
|
|
1164
|
-
stripe {
|
|
1165
|
-
...StripeSubscriptionFields
|
|
1166
|
-
}
|
|
1167
|
-
termsAgreement {
|
|
1168
|
-
...TermsAgreementFields
|
|
1169
|
-
}
|
|
1170
|
-
userActivity {
|
|
1171
|
-
...UserActivityFields
|
|
1172
|
-
}
|
|
1173
|
-
vendor
|
|
1174
|
-
updatedAt
|
|
1175
|
-
}
|
|
1176
|
-
${ResourceImageFieldsFragmentDoc}
|
|
1177
|
-
${LicenceFieldsFragmentDoc}
|
|
1178
|
-
${LocationFieldsFragmentDoc}
|
|
1179
|
-
${RedeemedRewardFieldsFragmentDoc}
|
|
1180
|
-
${StripeSubscriptionFieldsFragmentDoc}
|
|
1181
|
-
${TermsAgreementFieldsFragmentDoc}
|
|
1182
|
-
${UserActivityFieldsFragmentDoc}`;
|
|
1183
|
-
var CategoryFieldsFragmentDoc = import_client.gql`
|
|
1184
|
-
fragment CategoryFields on CategoryType {
|
|
1185
|
-
id
|
|
1186
|
-
name
|
|
1187
|
-
subcategories {
|
|
1188
|
-
id
|
|
1189
|
-
items {
|
|
1190
|
-
id
|
|
1191
|
-
name
|
|
1192
|
-
}
|
|
1193
|
-
name
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
`;
|
|
1197
|
-
var VendorDateTimeFieldsFragmentDoc = import_client.gql`
|
|
1198
|
-
fragment VendorDateTimeFields on VendorDateTimeType {
|
|
1199
|
-
dateStatus
|
|
1200
|
-
endDate
|
|
1201
|
-
endTime
|
|
1202
|
-
startDate
|
|
1203
|
-
startTime
|
|
1204
|
-
}
|
|
1205
|
-
`;
|
|
1206
|
-
var VendorProductListFieldsFragmentDoc = import_client.gql`
|
|
1207
|
-
fragment VendorProductListFields on VendorProductListType {
|
|
1208
|
-
description
|
|
1209
|
-
name
|
|
1210
|
-
price
|
|
1211
|
-
priceUnit
|
|
1212
|
-
productGroups
|
|
1213
|
-
}
|
|
1214
|
-
`;
|
|
1215
|
-
var VendorFieldsFragmentDoc = import_client.gql`
|
|
1216
|
-
fragment VendorFields on VendorType {
|
|
1217
|
-
_id
|
|
1218
|
-
active
|
|
1219
|
-
adIds
|
|
1220
|
-
approvedAt
|
|
1221
|
-
availability {
|
|
1222
|
-
corporate
|
|
1223
|
-
private
|
|
1224
|
-
school
|
|
1225
|
-
}
|
|
1226
|
-
vendorInfoId
|
|
1227
|
-
categories {
|
|
1228
|
-
...CategoryFields
|
|
1229
|
-
}
|
|
1230
|
-
calendar {
|
|
1231
|
-
active
|
|
1232
|
-
calendarData {
|
|
1233
|
-
dateTime {
|
|
1234
|
-
...VendorDateTimeFields
|
|
1235
|
-
}
|
|
1236
|
-
description
|
|
1237
|
-
location {
|
|
1238
|
-
...LocationFields
|
|
536
|
+
interested {
|
|
537
|
+
events {
|
|
538
|
+
resourceId
|
|
539
|
+
dateTime {
|
|
540
|
+
...DateTimeFields
|
|
541
|
+
}
|
|
1239
542
|
}
|
|
1240
543
|
}
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
createdAt
|
|
1249
|
-
claimed
|
|
1250
|
-
description
|
|
1251
|
-
deletedAt
|
|
1252
|
-
foodTruck
|
|
1253
|
-
images {
|
|
1254
|
-
...ResourceImageFields
|
|
1255
|
-
}
|
|
1256
|
-
logo {
|
|
1257
|
-
...ResourceImageFields
|
|
1258
|
-
}
|
|
1259
|
-
name
|
|
1260
|
-
owner {
|
|
1261
|
-
...OwnerFields
|
|
1262
|
-
}
|
|
1263
|
-
products {
|
|
1264
|
-
active
|
|
1265
|
-
productsList {
|
|
1266
|
-
...VendorProductListFields
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
promoCodes
|
|
1270
|
-
posterUsage {
|
|
1271
|
-
...PosterUsageFields
|
|
1272
|
-
}
|
|
1273
|
-
rating
|
|
1274
|
-
region
|
|
1275
|
-
reviewCount
|
|
1276
|
-
relatedPost {
|
|
1277
|
-
...RelatedPostFields
|
|
1278
|
-
}
|
|
1279
|
-
relations {
|
|
1280
|
-
relationId
|
|
1281
|
-
relationDates {
|
|
1282
|
-
...RelationDates
|
|
544
|
+
present {
|
|
545
|
+
events {
|
|
546
|
+
resourceId
|
|
547
|
+
dateTime {
|
|
548
|
+
...DateTimeFields
|
|
549
|
+
}
|
|
550
|
+
}
|
|
1283
551
|
}
|
|
1284
552
|
}
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
}
|
|
1292
|
-
shareRelation {
|
|
1293
|
-
...SocialShareResourceFields
|
|
1294
|
-
}
|
|
1295
|
-
termsAgreement {
|
|
1296
|
-
...TermsAgreementFields
|
|
1297
|
-
}
|
|
1298
|
-
updatedAt
|
|
1299
|
-
vendorType
|
|
1300
|
-
unregisteredVendorId
|
|
1301
|
-
}
|
|
1302
|
-
${CategoryFieldsFragmentDoc}
|
|
1303
|
-
${VendorDateTimeFieldsFragmentDoc}
|
|
1304
|
-
${LocationFieldsFragmentDoc}
|
|
1305
|
-
${ContactDetailsFieldsFragmentDoc}
|
|
1306
|
-
${ResourceImageFieldsFragmentDoc}
|
|
1307
|
-
${OwnerFieldsFragmentDoc}
|
|
1308
|
-
${VendorProductListFieldsFragmentDoc}
|
|
1309
|
-
${PosterUsageFieldsFragmentDoc}
|
|
1310
|
-
${RelatedPostFieldsFragmentDoc}
|
|
1311
|
-
${RelationDatesFragmentDoc}
|
|
1312
|
-
${SocialMediaFieldsFragmentDoc}
|
|
1313
|
-
${SocialShareResourceFieldsFragmentDoc}
|
|
1314
|
-
${TermsAgreementFieldsFragmentDoc}`;
|
|
1315
|
-
var AffiliateRewardFieldsFragmentDoc = import_client.gql`
|
|
1316
|
-
fragment AffiliateRewardFields on AffiliateRewardType {
|
|
1317
|
-
createdAt
|
|
1318
|
-
redeemedAt
|
|
1319
|
-
rewardDescription
|
|
1320
|
-
rewardType
|
|
1321
|
-
rewardValue
|
|
1322
|
-
}
|
|
1323
|
-
`;
|
|
1324
|
-
var AffiliateBankAccountDetailsFieldsFragmentDoc = import_client.gql`
|
|
1325
|
-
fragment AffiliateBankAccountDetailsFields on AffiliateBankAccountDetailsType {
|
|
1326
|
-
accountHolderName
|
|
1327
|
-
accountNumber
|
|
1328
|
-
}
|
|
1329
|
-
`;
|
|
1330
|
-
var AffiliateDetailsFieldsFragmentDoc = import_client.gql`
|
|
1331
|
-
fragment AffiliateDetailsFields on AffiliateDetailsType {
|
|
1332
|
-
bankAccountDetails {
|
|
1333
|
-
...AffiliateBankAccountDetailsFields
|
|
1334
|
-
}
|
|
1335
|
-
contactDetails {
|
|
1336
|
-
mobilePhone
|
|
1337
|
-
}
|
|
1338
|
-
irdNumber
|
|
1339
|
-
participantType
|
|
1340
|
-
email
|
|
1341
|
-
firstName
|
|
1342
|
-
lastName
|
|
1343
|
-
location {
|
|
1344
|
-
...LocationFields
|
|
1345
|
-
}
|
|
1346
|
-
socialMedia {
|
|
1347
|
-
...SocialMediaFields
|
|
1348
|
-
}
|
|
1349
|
-
termsAgreement {
|
|
1350
|
-
...TermsAgreementFields
|
|
1351
|
-
}
|
|
1352
|
-
}
|
|
1353
|
-
${AffiliateBankAccountDetailsFieldsFragmentDoc}
|
|
1354
|
-
${LocationFieldsFragmentDoc}
|
|
1355
|
-
${SocialMediaFieldsFragmentDoc}
|
|
1356
|
-
${TermsAgreementFieldsFragmentDoc}`;
|
|
1357
|
-
var AffiliateResourceFieldsFragmentDoc = import_client.gql`
|
|
1358
|
-
fragment AffiliateResourceFields on AffiliateResourceType {
|
|
1359
|
-
resourceActive
|
|
1360
|
-
resourceDeletedAt
|
|
1361
|
-
resourceId
|
|
1362
|
-
resourceName
|
|
1363
|
-
resourceOwner {
|
|
1364
|
-
...OwnerFields
|
|
1365
|
-
}
|
|
1366
|
-
resourceType
|
|
1367
|
-
rewards {
|
|
1368
|
-
...AffiliateRewardFields
|
|
1369
|
-
}
|
|
1370
|
-
}
|
|
1371
|
-
${OwnerFieldsFragmentDoc}
|
|
1372
|
-
${AffiliateRewardFieldsFragmentDoc}`;
|
|
1373
|
-
var AffiliateFieldsFragmentDoc = import_client.gql`
|
|
1374
|
-
fragment AffiliateFields on AffiliateType {
|
|
1375
|
-
_id
|
|
1376
|
-
active
|
|
1377
|
-
affiliateBonusRewards {
|
|
1378
|
-
...AffiliateRewardFields
|
|
1379
|
-
}
|
|
1380
|
-
affiliateCode
|
|
1381
|
-
affiliateDetails {
|
|
1382
|
-
...AffiliateDetailsFields
|
|
1383
|
-
}
|
|
1384
|
-
affiliateResources {
|
|
1385
|
-
...AffiliateResourceFields
|
|
1386
|
-
}
|
|
1387
|
-
approvedAt
|
|
1388
|
-
createdAt
|
|
1389
|
-
deletedAt
|
|
1390
|
-
redeemHistory {
|
|
1391
|
-
paidAt
|
|
553
|
+
${DATETIME_FIELDS_FRAGMENT}
|
|
554
|
+
`;
|
|
555
|
+
var REDEEMED_REWARD_FIELDS_FRAGMENT = import_client.gql`
|
|
556
|
+
fragment RedeemedRewardFields on RedeemedRewardType {
|
|
557
|
+
name
|
|
558
|
+
pointsUsed
|
|
1392
559
|
redeemedAt
|
|
1393
|
-
rewardValue
|
|
1394
|
-
}
|
|
1395
|
-
overallPoints
|
|
1396
|
-
owner {
|
|
1397
|
-
...OwnerFields
|
|
1398
|
-
}
|
|
1399
|
-
updatedAt
|
|
1400
|
-
}
|
|
1401
|
-
${AffiliateRewardFieldsFragmentDoc}
|
|
1402
|
-
${AffiliateDetailsFieldsFragmentDoc}
|
|
1403
|
-
${AffiliateResourceFieldsFragmentDoc}
|
|
1404
|
-
${OwnerFieldsFragmentDoc}`;
|
|
1405
|
-
var GameDateFieldsFragmentDoc = import_client.gql`
|
|
1406
|
-
fragment GameDateFields on GameDateType {
|
|
1407
|
-
startDate
|
|
1408
|
-
endDate
|
|
1409
|
-
}
|
|
1410
|
-
`;
|
|
1411
|
-
var DailyClueBaseGameFieldsFragmentDoc = import_client.gql`
|
|
1412
|
-
fragment DailyClueBaseGameFields on DailyClueBaseGameType {
|
|
1413
|
-
gameDate {
|
|
1414
|
-
...GameDateFields
|
|
1415
|
-
}
|
|
1416
|
-
gameSolution
|
|
1417
|
-
}
|
|
1418
|
-
${GameDateFieldsFragmentDoc}`;
|
|
1419
|
-
var DailyClueGameDataFieldsFragmentDoc = import_client.gql`
|
|
1420
|
-
fragment DailyClueGameDataFields on DailyClueGameDataType {
|
|
1421
|
-
gameFields {
|
|
1422
|
-
...DailyClueBaseGameFields
|
|
1423
|
-
}
|
|
1424
|
-
lastFoundDate
|
|
1425
|
-
points
|
|
1426
|
-
letterInfo {
|
|
1427
|
-
collected
|
|
1428
|
-
solutionShuffled
|
|
1429
|
-
todaysClue
|
|
1430
|
-
todaysLetter
|
|
1431
|
-
todaysPlacement
|
|
1432
|
-
}
|
|
1433
|
-
streak
|
|
1434
|
-
}
|
|
1435
|
-
${DailyClueBaseGameFieldsFragmentDoc}`;
|
|
1436
|
-
var PuzzleAnswerFieldsFragmentDoc = import_client.gql`
|
|
1437
|
-
fragment PuzzleAnswerFields on PuzzleAnswerType {
|
|
1438
|
-
answer
|
|
1439
|
-
answerId
|
|
1440
|
-
correct
|
|
1441
|
-
}
|
|
1442
|
-
`;
|
|
1443
|
-
var PuzzleQuestionFieldsFragmentDoc = import_client.gql`
|
|
1444
|
-
fragment PuzzleQuestionFields on PuzzleQuestionType {
|
|
1445
|
-
answers {
|
|
1446
|
-
...PuzzleAnswerFields
|
|
1447
|
-
}
|
|
1448
|
-
question
|
|
1449
|
-
questionId
|
|
1450
|
-
}
|
|
1451
|
-
${PuzzleAnswerFieldsFragmentDoc}`;
|
|
1452
|
-
var PuzzleBaseGameFieldsFragmentDoc = import_client.gql`
|
|
1453
|
-
fragment PuzzleBaseGameFields on PuzzleBaseGameType {
|
|
1454
|
-
questions {
|
|
1455
|
-
...PuzzleQuestionFields
|
|
1456
|
-
}
|
|
1457
|
-
}
|
|
1458
|
-
${PuzzleQuestionFieldsFragmentDoc}`;
|
|
1459
|
-
var PuzzleAnsweredQuestionFieldsFragmentDoc = import_client.gql`
|
|
1460
|
-
fragment PuzzleAnsweredQuestionFields on PuzzleAnsweredQuestionType {
|
|
1461
|
-
questionId
|
|
1462
|
-
selectedAnswerId
|
|
1463
|
-
}
|
|
1464
|
-
`;
|
|
1465
|
-
var PuzzleGameDataFieldsFragmentDoc = import_client.gql`
|
|
1466
|
-
fragment PuzzleGameDataFields on PuzzleGameDataType {
|
|
1467
|
-
gameFields {
|
|
1468
|
-
...PuzzleBaseGameFields
|
|
1469
|
-
}
|
|
1470
|
-
answeredQuestions {
|
|
1471
|
-
...PuzzleAnsweredQuestionFields
|
|
1472
|
-
}
|
|
1473
|
-
points
|
|
1474
|
-
streak
|
|
1475
|
-
}
|
|
1476
|
-
${PuzzleBaseGameFieldsFragmentDoc}
|
|
1477
|
-
${PuzzleAnsweredQuestionFieldsFragmentDoc}`;
|
|
1478
|
-
var GameDataFieldsFragmentDoc = import_client.gql`
|
|
1479
|
-
fragment GameDataFields on GameDataType {
|
|
1480
|
-
dailyClue {
|
|
1481
|
-
...DailyClueGameDataFields
|
|
1482
|
-
}
|
|
1483
|
-
miniQuiz {
|
|
1484
|
-
...PuzzleGameDataFields
|
|
1485
|
-
}
|
|
1486
|
-
oddOneOut {
|
|
1487
|
-
...PuzzleGameDataFields
|
|
1488
|
-
}
|
|
1489
|
-
}
|
|
1490
|
-
${DailyClueGameDataFieldsFragmentDoc}
|
|
1491
|
-
${PuzzleGameDataFieldsFragmentDoc}`;
|
|
1492
|
-
var GameHistoryFieldsFragmentDoc = import_client.gql`
|
|
1493
|
-
fragment GameHistoryFields on GameHistoryType {
|
|
1494
|
-
createdAt
|
|
1495
|
-
gameDate {
|
|
1496
|
-
...GameDateFields
|
|
1497
|
-
}
|
|
1498
|
-
gameStatus
|
|
1499
|
-
gameTitle
|
|
1500
|
-
gameType
|
|
1501
|
-
gameTypeId
|
|
1502
|
-
overallGamePoints
|
|
1503
|
-
pointsEarned
|
|
1504
|
-
}
|
|
1505
|
-
${GameDateFieldsFragmentDoc}`;
|
|
1506
|
-
var GameFieldsFragmentDoc = import_client.gql`
|
|
1507
|
-
fragment GameFields on GameType {
|
|
1508
|
-
_id
|
|
1509
|
-
active
|
|
1510
|
-
createdAt
|
|
1511
|
-
gameData {
|
|
1512
|
-
...GameDataFields
|
|
1513
|
-
}
|
|
1514
|
-
gameHistory {
|
|
1515
|
-
...GameHistoryFields
|
|
1516
|
-
}
|
|
1517
|
-
gameType
|
|
1518
|
-
gameTypeId
|
|
1519
|
-
gameTitle
|
|
1520
|
-
updatedAt
|
|
1521
|
-
}
|
|
1522
|
-
${GameDataFieldsFragmentDoc}
|
|
1523
|
-
${GameHistoryFieldsFragmentDoc}`;
|
|
1524
|
-
var GameDocFieldsFragmentDoc = import_client.gql`
|
|
1525
|
-
fragment GameDocFields on GameDocType {
|
|
1526
|
-
_id
|
|
1527
|
-
active
|
|
1528
|
-
createdAt
|
|
1529
|
-
deletedAt
|
|
1530
|
-
games {
|
|
1531
|
-
...GameFields
|
|
1532
|
-
}
|
|
1533
|
-
owner {
|
|
1534
|
-
...OwnerFields
|
|
1535
|
-
}
|
|
1536
|
-
points
|
|
1537
|
-
updatedAt
|
|
1538
|
-
}
|
|
1539
|
-
${GameFieldsFragmentDoc}
|
|
1540
|
-
${OwnerFieldsFragmentDoc}`;
|
|
1541
|
-
var BaseGameFieldsFragmentDoc = import_client.gql`
|
|
1542
|
-
fragment BaseGameFields on BaseGameType {
|
|
1543
|
-
gameTypeId
|
|
1544
|
-
gameTitle
|
|
1545
|
-
gameType
|
|
1546
|
-
dailyClue {
|
|
1547
|
-
...DailyClueBaseGameFields
|
|
1548
|
-
}
|
|
1549
|
-
miniQuiz {
|
|
1550
|
-
...PuzzleBaseGameFields
|
|
1551
|
-
}
|
|
1552
|
-
oddOneOut {
|
|
1553
|
-
...PuzzleBaseGameFields
|
|
1554
560
|
}
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
title
|
|
1565
|
-
data
|
|
1566
|
-
}
|
|
1567
|
-
images {
|
|
1568
|
-
...ResourceImageFields
|
|
1569
|
-
}
|
|
1570
|
-
video {
|
|
1571
|
-
source
|
|
1572
|
-
title
|
|
561
|
+
`;
|
|
562
|
+
var STRIPE_FIELDS_FRAGMENT = import_client.gql`
|
|
563
|
+
fragment StripeSubscriptionFields on StripeSubscriptionType {
|
|
564
|
+
customerId
|
|
565
|
+
subscriptionId
|
|
566
|
+
status
|
|
567
|
+
currentPlan
|
|
568
|
+
startDate
|
|
569
|
+
endDate
|
|
1573
570
|
}
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
571
|
+
`;
|
|
572
|
+
var USER_FIELDS_FRAGMENT = import_client.gql`
|
|
573
|
+
fragment UserFields on UserType {
|
|
574
|
+
_id
|
|
575
|
+
active
|
|
576
|
+
affiliate
|
|
577
|
+
avatar {
|
|
578
|
+
...ResourceImageFields
|
|
1578
579
|
}
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
contentType
|
|
1590
|
-
}
|
|
1591
|
-
${PostContentDataFieldsFragmentDoc}`;
|
|
1592
|
-
var PostResourceFieldsFragmentDoc = import_client.gql`
|
|
1593
|
-
fragment PostResourceFields on PostResourceType {
|
|
1594
|
-
resourceId
|
|
1595
|
-
resourceSlug
|
|
1596
|
-
resourceRegion
|
|
1597
|
-
resourceType
|
|
1598
|
-
}
|
|
1599
|
-
`;
|
|
1600
|
-
var PostFieldsFragmentDoc = import_client.gql`
|
|
1601
|
-
fragment PostFields on PostType {
|
|
1602
|
-
_id
|
|
1603
|
-
active
|
|
1604
|
-
approvedAt
|
|
1605
|
-
caption
|
|
1606
|
-
content {
|
|
1607
|
-
...PostContentFields
|
|
1608
|
-
}
|
|
1609
|
-
cover {
|
|
1610
|
-
...ResourceImageFields
|
|
1611
|
-
}
|
|
1612
|
-
createdAt
|
|
1613
|
-
deletedAt
|
|
1614
|
-
postType
|
|
1615
|
-
resource {
|
|
1616
|
-
...PostResourceFields
|
|
1617
|
-
}
|
|
1618
|
-
tags
|
|
1619
|
-
title
|
|
1620
|
-
slug
|
|
1621
|
-
sharePublic {
|
|
1622
|
-
...SocialShareResourceFields
|
|
1623
|
-
}
|
|
1624
|
-
updatedAt
|
|
1625
|
-
}
|
|
1626
|
-
${PostContentFieldsFragmentDoc}
|
|
1627
|
-
${ResourceImageFieldsFragmentDoc}
|
|
1628
|
-
${PostResourceFieldsFragmentDoc}
|
|
1629
|
-
${SocialShareResourceFieldsFragmentDoc}`;
|
|
1630
|
-
var CreateAdDocument = import_client.gql`
|
|
1631
|
-
mutation createAd($input: AdInputType!) {
|
|
1632
|
-
createAd(input: $input) {
|
|
1633
|
-
data {
|
|
1634
|
-
...AdFields
|
|
1635
|
-
}
|
|
1636
|
-
message
|
|
1637
|
-
}
|
|
1638
|
-
}
|
|
1639
|
-
${AdFieldsFragmentDoc}`;
|
|
1640
|
-
var UpdateAdDocument = import_client.gql`
|
|
1641
|
-
mutation updateAd($_id: ID!, $input: AdInputType!) {
|
|
1642
|
-
updateAd(_id: $_id, input: $input) {
|
|
1643
|
-
data {
|
|
1644
|
-
...AdFields
|
|
580
|
+
createdAt
|
|
581
|
+
deletedAt
|
|
582
|
+
email
|
|
583
|
+
events
|
|
584
|
+
firstName
|
|
585
|
+
game
|
|
586
|
+
isTester
|
|
587
|
+
lastName
|
|
588
|
+
licences {
|
|
589
|
+
...LicenceFields
|
|
1645
590
|
}
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
}
|
|
1649
|
-
${AdFieldsFragmentDoc}`;
|
|
1650
|
-
var DeleteAdDocument = import_client.gql`
|
|
1651
|
-
mutation deleteAd($_id: ID!) {
|
|
1652
|
-
deleteAd(_id: $_id) {
|
|
1653
|
-
data
|
|
1654
|
-
message
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
`;
|
|
1658
|
-
var AdminUpdateResourceTypeDocument = import_client.gql`
|
|
1659
|
-
mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
|
|
1660
|
-
adminUpdateResourceType(input: $input) {
|
|
1661
|
-
data {
|
|
1662
|
-
active
|
|
1663
|
-
resourceId
|
|
1664
|
-
resourceType
|
|
591
|
+
location {
|
|
592
|
+
...LocationFields
|
|
1665
593
|
}
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
}
|
|
1676
|
-
}
|
|
1677
|
-
`;
|
|
1678
|
-
var AdminPermanentlyDeleteResourceDocument = import_client.gql`
|
|
1679
|
-
mutation adminPermanentlyDeleteResource($resourceId: ID!, $resourceType: ResourceTypeEnum!) {
|
|
1680
|
-
adminPermanentlyDeleteResource(
|
|
1681
|
-
resourceId: $resourceId
|
|
1682
|
-
resourceType: $resourceType
|
|
1683
|
-
) {
|
|
1684
|
-
data
|
|
1685
|
-
message
|
|
1686
|
-
}
|
|
1687
|
-
}
|
|
1688
|
-
`;
|
|
1689
|
-
var UpdateAffiliateDetailsDocument = import_client.gql`
|
|
1690
|
-
mutation updateAffiliateDetails($input: AffiliateDetailsInputType!, $affiliateId: ID!) {
|
|
1691
|
-
updateAffiliateDetails(input: $input, affiliateId: $affiliateId) {
|
|
1692
|
-
data {
|
|
1693
|
-
...AffiliateFields
|
|
594
|
+
partner
|
|
595
|
+
overallPoints
|
|
596
|
+
platform
|
|
597
|
+
preferredRegion
|
|
598
|
+
permissions
|
|
599
|
+
promoCodes
|
|
600
|
+
roles
|
|
601
|
+
redeemedRewards {
|
|
602
|
+
...RedeemedRewardFields
|
|
1694
603
|
}
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
${AffiliateFieldsFragmentDoc}`;
|
|
1699
|
-
var DeleteAffiliateDocument = import_client.gql`
|
|
1700
|
-
mutation deleteAffiliate($_id: ID!) {
|
|
1701
|
-
deleteAffiliate(_id: $_id) {
|
|
1702
|
-
data
|
|
1703
|
-
message
|
|
1704
|
-
}
|
|
1705
|
-
}
|
|
1706
|
-
`;
|
|
1707
|
-
var RedeemAffiliateRewardDocument = import_client.gql`
|
|
1708
|
-
mutation redeemAffiliateReward($affiliateId: ID!) {
|
|
1709
|
-
redeemAffiliateReward(affiliateId: $affiliateId) {
|
|
1710
|
-
data {
|
|
1711
|
-
...AffiliateFields
|
|
604
|
+
school
|
|
605
|
+
stripe {
|
|
606
|
+
...StripeSubscriptionFields
|
|
1712
607
|
}
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
}
|
|
1716
|
-
${AffiliateFieldsFragmentDoc}`;
|
|
1717
|
-
var AssignAffiliateResourceRewardDocument = import_client.gql`
|
|
1718
|
-
mutation assignAffiliateResourceReward($affiliateId: ID!, $resourceId: ID!, $resourceType: ResourceTypeEnum!, $rewardType: AffiliateRewardEnumType!) {
|
|
1719
|
-
assignAffiliateResourceReward(
|
|
1720
|
-
affiliateId: $affiliateId
|
|
1721
|
-
resourceId: $resourceId
|
|
1722
|
-
resourceType: $resourceType
|
|
1723
|
-
rewardType: $rewardType
|
|
1724
|
-
) {
|
|
1725
|
-
data {
|
|
1726
|
-
...AffiliateFields
|
|
608
|
+
termsAgreement {
|
|
609
|
+
...TermsAgreementFields
|
|
1727
610
|
}
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
}
|
|
1731
|
-
${AffiliateFieldsFragmentDoc}`;
|
|
1732
|
-
var AssignAffiliateBonusRewardDocument = import_client.gql`
|
|
1733
|
-
mutation assignAffiliateBonusReward($affiliateId: ID!, $rewardType: AffiliateRewardEnumType!) {
|
|
1734
|
-
assignAffiliateBonusReward(affiliateId: $affiliateId, rewardType: $rewardType) {
|
|
1735
|
-
data {
|
|
1736
|
-
...AffiliateFields
|
|
611
|
+
userActivity {
|
|
612
|
+
...UserActivityFields
|
|
1737
613
|
}
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
}
|
|
1741
|
-
${AffiliateFieldsFragmentDoc}`;
|
|
1742
|
-
var UpdateAppSettingsDocument = import_client.gql`
|
|
1743
|
-
mutation updateAppSettings($input: AppSettingsInputType!) {
|
|
1744
|
-
updateAppSettings(input: $input) {
|
|
1745
|
-
data
|
|
1746
|
-
message
|
|
1747
|
-
}
|
|
1748
|
-
}
|
|
1749
|
-
`;
|
|
1750
|
-
var CrawlGoogleMarketsDocument = import_client.gql`
|
|
1751
|
-
mutation crawlGoogleMarkets {
|
|
1752
|
-
crawlGoogleMarkets {
|
|
1753
|
-
data
|
|
1754
|
-
message
|
|
614
|
+
vendor
|
|
615
|
+
updatedAt
|
|
1755
616
|
}
|
|
1756
|
-
}
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
617
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
618
|
+
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
619
|
+
${USER_ACTIVITY_FIELDS_FRAGMENT}
|
|
620
|
+
${LICENCE_FIELDS_FRAGMENT}
|
|
621
|
+
${LOCATION_FIELDS_FRAGMENT}
|
|
622
|
+
${REDEEMED_REWARD_FIELDS_FRAGMENT}
|
|
623
|
+
${STRIPE_FIELDS_FRAGMENT}
|
|
624
|
+
`;
|
|
625
|
+
var STALL_TYPE_FIELDS_FRAGMENT = import_client.gql`
|
|
626
|
+
fragment StallTypeFields on StallTypeType {
|
|
627
|
+
label
|
|
628
|
+
price
|
|
629
|
+
stallCapacity
|
|
1763
630
|
}
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
631
|
+
`;
|
|
632
|
+
var RELATION_DATES_FRAGMENT = import_client.gql`
|
|
633
|
+
fragment RelationDates on RelationDateType {
|
|
634
|
+
dateTime {
|
|
635
|
+
dateStatus
|
|
636
|
+
endDate
|
|
637
|
+
endTime
|
|
638
|
+
startDate
|
|
639
|
+
startTime
|
|
640
|
+
stallType {
|
|
641
|
+
...StallTypeFields
|
|
1774
642
|
}
|
|
1775
643
|
}
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
${UserFieldsFragmentDoc}`;
|
|
1780
|
-
var LoginDocument = import_client.gql`
|
|
1781
|
-
mutation login($input: LoginInputType!) {
|
|
1782
|
-
login(input: $input) {
|
|
1783
|
-
data {
|
|
1784
|
-
refreshToken
|
|
1785
|
-
token
|
|
1786
|
-
user {
|
|
1787
|
-
...UserFields
|
|
1788
|
-
}
|
|
644
|
+
lastUpdateBy {
|
|
645
|
+
resourceId
|
|
646
|
+
userEmail
|
|
1789
647
|
}
|
|
1790
|
-
|
|
648
|
+
paymentReference
|
|
649
|
+
status
|
|
1791
650
|
}
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
|
-
var
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
651
|
+
${STALL_TYPE_FIELDS_FRAGMENT}
|
|
652
|
+
`;
|
|
653
|
+
var CONTACT_DETAILS_FIELDS_FRAGMENT = import_client.gql`
|
|
654
|
+
fragment ContactDetailsFields on ContactDetailsType {
|
|
655
|
+
email
|
|
656
|
+
landlinePhone
|
|
657
|
+
mobilePhone
|
|
1799
658
|
}
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
659
|
+
`;
|
|
660
|
+
var EVENT_LIST_ITEM = import_client.gql`
|
|
661
|
+
fragment EventListItemFields on EventListItemType {
|
|
662
|
+
_id
|
|
663
|
+
active
|
|
664
|
+
approvedAt
|
|
665
|
+
claimed
|
|
666
|
+
cover {
|
|
667
|
+
...ResourceImageFields
|
|
1808
668
|
}
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
`;
|
|
1813
|
-
var ResetPasswordDocument = import_client.gql`
|
|
1814
|
-
mutation resetPassword($input: ResetPasswordInputType!) {
|
|
1815
|
-
resetPassword(input: $input) {
|
|
1816
|
-
data
|
|
1817
|
-
message
|
|
1818
|
-
}
|
|
1819
|
-
}
|
|
1820
|
-
`;
|
|
1821
|
-
var RequestPasswordResetDocument = import_client.gql`
|
|
1822
|
-
mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
|
|
1823
|
-
requestPasswordReset(input: $input) {
|
|
1824
|
-
data
|
|
1825
|
-
message
|
|
1826
|
-
}
|
|
1827
|
-
}
|
|
1828
|
-
`;
|
|
1829
|
-
var ValidateVerificationTokenDocument = import_client.gql`
|
|
1830
|
-
mutation validateVerificationToken($input: ValidateVerificationTokenInputType!) {
|
|
1831
|
-
validateVerificationToken(input: $input) {
|
|
1832
|
-
data
|
|
1833
|
-
message
|
|
1834
|
-
}
|
|
1835
|
-
}
|
|
1836
|
-
`;
|
|
1837
|
-
var CreatePrivateChatDocument = import_client.gql`
|
|
1838
|
-
mutation createPrivateChat($userId: ID!) {
|
|
1839
|
-
createPrivateChat(userId: $userId) {
|
|
1840
|
-
data {
|
|
1841
|
-
...ChatFields
|
|
1842
|
-
}
|
|
1843
|
-
message
|
|
1844
|
-
}
|
|
1845
|
-
}
|
|
1846
|
-
${ChatFieldsFragmentDoc}`;
|
|
1847
|
-
var SendChatMessageDocument = import_client.gql`
|
|
1848
|
-
mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
|
|
1849
|
-
sendChatMessage(_id: $_id, input: $input) {
|
|
1850
|
-
data {
|
|
1851
|
-
...ChatFields
|
|
1852
|
-
}
|
|
1853
|
-
message
|
|
1854
|
-
}
|
|
1855
|
-
}
|
|
1856
|
-
${ChatFieldsFragmentDoc}`;
|
|
1857
|
-
var DeleteChatDocument = import_client.gql`
|
|
1858
|
-
mutation deleteChat($_id: ID!) {
|
|
1859
|
-
deleteChat(_id: $_id) {
|
|
1860
|
-
data
|
|
1861
|
-
message
|
|
1862
|
-
}
|
|
1863
|
-
}
|
|
1864
|
-
`;
|
|
1865
|
-
var AddParticipantToChatDocument = import_client.gql`
|
|
1866
|
-
mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
|
|
1867
|
-
addParticipantToChat(chatId: $chatId, userId: $userId) {
|
|
1868
|
-
data {
|
|
1869
|
-
...ChatFields
|
|
1870
|
-
}
|
|
1871
|
-
message
|
|
1872
|
-
}
|
|
1873
|
-
}
|
|
1874
|
-
${ChatFieldsFragmentDoc}`;
|
|
1875
|
-
var RemoveParticipantFromChatDocument = import_client.gql`
|
|
1876
|
-
mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
|
|
1877
|
-
removeParticipantFromChat(chatId: $chatId, userId: $userId) {
|
|
1878
|
-
data {
|
|
1879
|
-
success
|
|
1880
|
-
region
|
|
1881
|
-
}
|
|
1882
|
-
message
|
|
1883
|
-
}
|
|
1884
|
-
}
|
|
1885
|
-
`;
|
|
1886
|
-
var ToggleChatMessageLikeDocument = import_client.gql`
|
|
1887
|
-
mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
|
|
1888
|
-
toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
|
|
1889
|
-
data {
|
|
1890
|
-
...ChatFields
|
|
1891
|
-
}
|
|
1892
|
-
message
|
|
1893
|
-
}
|
|
1894
|
-
}
|
|
1895
|
-
${ChatFieldsFragmentDoc}`;
|
|
1896
|
-
var MarkChatMessagesSeenDocument = import_client.gql`
|
|
1897
|
-
mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
|
|
1898
|
-
markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
|
|
1899
|
-
data {
|
|
1900
|
-
...ChatFields
|
|
1901
|
-
}
|
|
1902
|
-
message
|
|
1903
|
-
}
|
|
1904
|
-
}
|
|
1905
|
-
${ChatFieldsFragmentDoc}`;
|
|
1906
|
-
var ReportChatUserDocument = import_client.gql`
|
|
1907
|
-
mutation reportChatUser($input: ReportChatUserInputType!) {
|
|
1908
|
-
reportChatUser(input: $input) {
|
|
1909
|
-
data {
|
|
1910
|
-
...ChatReportFields
|
|
1911
|
-
}
|
|
1912
|
-
message
|
|
1913
|
-
}
|
|
1914
|
-
}
|
|
1915
|
-
${ChatReportFieldsFragmentDoc}`;
|
|
1916
|
-
var ContactUsDocument = import_client.gql`
|
|
1917
|
-
mutation contactUs($input: ContactUsInputType!) {
|
|
1918
|
-
contactUs(input: $input) {
|
|
1919
|
-
data
|
|
1920
|
-
message
|
|
1921
|
-
}
|
|
1922
|
-
}
|
|
1923
|
-
`;
|
|
1924
|
-
var CreateEventDocument = import_client.gql`
|
|
1925
|
-
mutation createEvent($input: EventInputType!) {
|
|
1926
|
-
createEvent(input: $input) {
|
|
1927
|
-
data {
|
|
1928
|
-
...EventFields
|
|
1929
|
-
}
|
|
1930
|
-
message
|
|
1931
|
-
}
|
|
1932
|
-
}
|
|
1933
|
-
${EventFieldsFragmentDoc}`;
|
|
1934
|
-
var UpdateEventDocument = import_client.gql`
|
|
1935
|
-
mutation updateEvent($_id: ID!, $input: EventInputType!) {
|
|
1936
|
-
updateEvent(_id: $_id, input: $input) {
|
|
1937
|
-
data {
|
|
1938
|
-
...EventFields
|
|
1939
|
-
}
|
|
1940
|
-
message
|
|
1941
|
-
}
|
|
1942
|
-
}
|
|
1943
|
-
${EventFieldsFragmentDoc}`;
|
|
1944
|
-
var DeleteEventDocument = import_client.gql`
|
|
1945
|
-
mutation deleteEvent($_id: ID!) {
|
|
1946
|
-
deleteEvent(_id: $_id) {
|
|
1947
|
-
data
|
|
1948
|
-
message
|
|
1949
|
-
}
|
|
1950
|
-
}
|
|
1951
|
-
`;
|
|
1952
|
-
var CreateEventInfoDocument = import_client.gql`
|
|
1953
|
-
mutation createEventInfo($input: EventInfoInputType!) {
|
|
1954
|
-
createEventInfo(input: $input) {
|
|
1955
|
-
data {
|
|
1956
|
-
...EventInfoFields
|
|
1957
|
-
}
|
|
1958
|
-
message
|
|
1959
|
-
}
|
|
1960
|
-
}
|
|
1961
|
-
${EventInfoFieldsFragmentDoc}`;
|
|
1962
|
-
var UpdateEventInfoDocument = import_client.gql`
|
|
1963
|
-
mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
|
|
1964
|
-
updateEventInfo(_id: $_id, input: $input) {
|
|
1965
|
-
data {
|
|
1966
|
-
...EventInfoFields
|
|
1967
|
-
}
|
|
1968
|
-
message
|
|
1969
|
-
}
|
|
1970
|
-
}
|
|
1971
|
-
${EventInfoFieldsFragmentDoc}`;
|
|
1972
|
-
var StartGameDocument = import_client.gql`
|
|
1973
|
-
mutation startGame($input: BaseGameInputType!) {
|
|
1974
|
-
startGame(input: $input) {
|
|
1975
|
-
data {
|
|
1976
|
-
...GameDocFields
|
|
1977
|
-
}
|
|
1978
|
-
message
|
|
1979
|
-
}
|
|
1980
|
-
}
|
|
1981
|
-
${GameDocFieldsFragmentDoc}`;
|
|
1982
|
-
var LeaveGameDocument = import_client.gql`
|
|
1983
|
-
mutation leaveGame($_id: ID!, $gameType: GameTypeEnumType!, $gameTypeId: String!) {
|
|
1984
|
-
leaveGame(_id: $_id, gameType: $gameType, gameTypeId: $gameTypeId) {
|
|
1985
|
-
data
|
|
1986
|
-
message
|
|
1987
|
-
}
|
|
1988
|
-
}
|
|
1989
|
-
`;
|
|
1990
|
-
var UpdateDailyClueGameDocument = import_client.gql`
|
|
1991
|
-
mutation updateDailyClueGame($_id: ID!, $foundLetter: String!, $gameType: GameTypeEnumType!, $gameTypeId: String!) {
|
|
1992
|
-
updateDailyClueGame(
|
|
1993
|
-
_id: $_id
|
|
1994
|
-
foundLetter: $foundLetter
|
|
1995
|
-
gameType: $gameType
|
|
1996
|
-
gameTypeId: $gameTypeId
|
|
1997
|
-
) {
|
|
1998
|
-
data {
|
|
1999
|
-
...GameDocFields
|
|
2000
|
-
}
|
|
2001
|
-
message
|
|
2002
|
-
}
|
|
2003
|
-
}
|
|
2004
|
-
${GameDocFieldsFragmentDoc}`;
|
|
2005
|
-
var UpdatePuzzleGameDocument = import_client.gql`
|
|
2006
|
-
mutation updatePuzzleGame($_id: ID!, $answeredQuestions: [PuzzleAnsweredQuestionInputType!]!, $gameType: GameTypeEnumType!, $gameTypeId: String!) {
|
|
2007
|
-
updatePuzzleGame(
|
|
2008
|
-
_id: $_id
|
|
2009
|
-
answeredQuestions: $answeredQuestions
|
|
2010
|
-
gameType: $gameType
|
|
2011
|
-
gameTypeId: $gameTypeId
|
|
2012
|
-
) {
|
|
2013
|
-
data {
|
|
2014
|
-
...GameDocFields
|
|
2015
|
-
}
|
|
2016
|
-
message
|
|
2017
|
-
}
|
|
2018
|
-
}
|
|
2019
|
-
${GameDocFieldsFragmentDoc}`;
|
|
2020
|
-
var CreateBulkNotificationsDocument = import_client.gql`
|
|
2021
|
-
mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
|
|
2022
|
-
createBulkNotifications(input: $input) {
|
|
2023
|
-
data
|
|
2024
|
-
message
|
|
2025
|
-
}
|
|
2026
|
-
}
|
|
2027
|
-
`;
|
|
2028
|
-
var MarkNotificationReadDocument = import_client.gql`
|
|
2029
|
-
mutation markNotificationRead($_id: ID!) {
|
|
2030
|
-
markNotificationRead(_id: $_id) {
|
|
2031
|
-
data {
|
|
2032
|
-
...NotificationFields
|
|
2033
|
-
}
|
|
2034
|
-
message
|
|
2035
|
-
}
|
|
2036
|
-
}
|
|
2037
|
-
${NotificationFieldsFragmentDoc}`;
|
|
2038
|
-
var MarkAllNotificationsReadDocument = import_client.gql`
|
|
2039
|
-
mutation markAllNotificationsRead {
|
|
2040
|
-
markAllNotificationsRead {
|
|
2041
|
-
data
|
|
2042
|
-
message
|
|
2043
|
-
}
|
|
2044
|
-
}
|
|
2045
|
-
`;
|
|
2046
|
-
var DeleteNotificationDocument = import_client.gql`
|
|
2047
|
-
mutation deleteNotification($_id: ID!) {
|
|
2048
|
-
deleteNotification(_id: $_id) {
|
|
2049
|
-
data
|
|
2050
|
-
message
|
|
2051
|
-
}
|
|
2052
|
-
}
|
|
2053
|
-
`;
|
|
2054
|
-
var DeleteAllNotificationsDocument = import_client.gql`
|
|
2055
|
-
mutation deleteAllNotifications {
|
|
2056
|
-
deleteAllNotifications {
|
|
2057
|
-
data
|
|
2058
|
-
message
|
|
2059
|
-
}
|
|
2060
|
-
}
|
|
2061
|
-
`;
|
|
2062
|
-
var CreatePartnerDocument = import_client.gql`
|
|
2063
|
-
mutation createPartner($input: PartnerInputType!) {
|
|
2064
|
-
createPartner(input: $input) {
|
|
2065
|
-
data {
|
|
2066
|
-
...PartnerFields
|
|
2067
|
-
}
|
|
2068
|
-
message
|
|
2069
|
-
}
|
|
2070
|
-
}
|
|
2071
|
-
${PartnerFieldsFragmentDoc}`;
|
|
2072
|
-
var UpdatePartnerDocument = import_client.gql`
|
|
2073
|
-
mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
|
|
2074
|
-
updatePartner(_id: $_id, input: $input) {
|
|
2075
|
-
data {
|
|
2076
|
-
...PartnerFields
|
|
2077
|
-
}
|
|
2078
|
-
message
|
|
2079
|
-
}
|
|
2080
|
-
}
|
|
2081
|
-
${PartnerFieldsFragmentDoc}`;
|
|
2082
|
-
var DeletePartnerDocument = import_client.gql`
|
|
2083
|
-
mutation deletePartner($_id: ID!) {
|
|
2084
|
-
deletePartner(_id: $_id) {
|
|
2085
|
-
data
|
|
2086
|
-
message
|
|
2087
|
-
}
|
|
2088
|
-
}
|
|
2089
|
-
`;
|
|
2090
|
-
var CreatePostDocument = import_client.gql`
|
|
2091
|
-
mutation createPost($input: PostInputType!) {
|
|
2092
|
-
createPost(input: $input) {
|
|
2093
|
-
data {
|
|
2094
|
-
...PostFields
|
|
2095
|
-
}
|
|
2096
|
-
message
|
|
2097
|
-
}
|
|
2098
|
-
}
|
|
2099
|
-
${PostFieldsFragmentDoc}`;
|
|
2100
|
-
var UpdatePostDocument = import_client.gql`
|
|
2101
|
-
mutation updatePost($_id: ID!, $input: PostInputType!) {
|
|
2102
|
-
updatePost(_id: $_id, input: $input) {
|
|
2103
|
-
data {
|
|
2104
|
-
...PostFields
|
|
2105
|
-
}
|
|
2106
|
-
message
|
|
2107
|
-
}
|
|
2108
|
-
}
|
|
2109
|
-
${PostFieldsFragmentDoc}`;
|
|
2110
|
-
var DeletePostDocument = import_client.gql`
|
|
2111
|
-
mutation deletePost($_id: ID!) {
|
|
2112
|
-
deletePost(_id: $_id) {
|
|
2113
|
-
data
|
|
2114
|
-
message
|
|
2115
|
-
}
|
|
2116
|
-
}
|
|
2117
|
-
`;
|
|
2118
|
-
var CreatePosterDocument = import_client.gql`
|
|
2119
|
-
mutation createPoster($input: PosterInputType!) {
|
|
2120
|
-
createPoster(input: $input) {
|
|
2121
|
-
data {
|
|
2122
|
-
posterUsage {
|
|
2123
|
-
...PosterUsageFields
|
|
2124
|
-
}
|
|
2125
|
-
}
|
|
2126
|
-
message
|
|
2127
|
-
}
|
|
2128
|
-
}
|
|
2129
|
-
${PosterUsageFieldsFragmentDoc}`;
|
|
2130
|
-
var CreatePushTokenDocument = import_client.gql`
|
|
2131
|
-
mutation createPushToken($input: PushTokenInput!) {
|
|
2132
|
-
createPushToken(input: $input) {
|
|
2133
|
-
data {
|
|
2134
|
-
success
|
|
2135
|
-
}
|
|
2136
|
-
message
|
|
2137
|
-
}
|
|
2138
|
-
}
|
|
2139
|
-
`;
|
|
2140
|
-
var GetAdsDocument = import_client.gql`
|
|
2141
|
-
query getAds {
|
|
2142
|
-
ads {
|
|
2143
|
-
...AdFields
|
|
2144
|
-
}
|
|
2145
|
-
}
|
|
2146
|
-
${AdFieldsFragmentDoc}`;
|
|
2147
|
-
var GetAdDocument = import_client.gql`
|
|
2148
|
-
query getAd($_id: ID!) {
|
|
2149
|
-
ad(_id: $_id) {
|
|
2150
|
-
...AdFields
|
|
2151
|
-
}
|
|
2152
|
-
}
|
|
2153
|
-
${AdFieldsFragmentDoc}`;
|
|
2154
|
-
var GetAdsByRegionDocument = import_client.gql`
|
|
2155
|
-
query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
|
|
2156
|
-
adsByRegion(region: $region, status: $status) {
|
|
2157
|
-
...AdFields
|
|
2158
|
-
}
|
|
2159
|
-
}
|
|
2160
|
-
${AdFieldsFragmentDoc}`;
|
|
2161
|
-
var GetAffiliateDocument = import_client.gql`
|
|
2162
|
-
query getAffiliate($_id: ID!) {
|
|
2163
|
-
affiliate(_id: $_id) {
|
|
2164
|
-
...AffiliateFields
|
|
2165
|
-
}
|
|
2166
|
-
}
|
|
2167
|
-
${AffiliateFieldsFragmentDoc}`;
|
|
2168
|
-
var GetAffiliatesDocument = import_client.gql`
|
|
2169
|
-
query getAffiliates {
|
|
2170
|
-
affiliates {
|
|
2171
|
-
...AffiliateFields
|
|
2172
|
-
}
|
|
2173
|
-
}
|
|
2174
|
-
${AffiliateFieldsFragmentDoc}`;
|
|
2175
|
-
var GetAppSettingsDocument = import_client.gql`
|
|
2176
|
-
query getAppSettings {
|
|
2177
|
-
appSettings {
|
|
2178
|
-
...AppSettingsFields
|
|
2179
|
-
}
|
|
2180
|
-
}
|
|
2181
|
-
${AppSettingsFieldsFragmentDoc}`;
|
|
2182
|
-
var ChatDocument = import_client.gql`
|
|
2183
|
-
query chat($_id: ID!) {
|
|
2184
|
-
chat(_id: $_id) {
|
|
2185
|
-
...ChatFields
|
|
2186
|
-
}
|
|
2187
|
-
}
|
|
2188
|
-
${ChatFieldsFragmentDoc}`;
|
|
2189
|
-
var UserChatsDocument = import_client.gql`
|
|
2190
|
-
query userChats {
|
|
2191
|
-
userChats {
|
|
2192
|
-
...ChatFields
|
|
2193
|
-
}
|
|
2194
|
-
}
|
|
2195
|
-
${ChatFieldsFragmentDoc}`;
|
|
2196
|
-
var GetChatsByRegionDocument = import_client.gql`
|
|
2197
|
-
query getChatsByRegion($region: String!) {
|
|
2198
|
-
chatsByRegion(region: $region) {
|
|
2199
|
-
...ChatFields
|
|
2200
|
-
}
|
|
2201
|
-
}
|
|
2202
|
-
${ChatFieldsFragmentDoc}`;
|
|
2203
|
-
var GetEventsDocument = import_client.gql`
|
|
2204
|
-
query getEvents($dateStatus: EventDateStatusEnumType) {
|
|
2205
|
-
events(dateStatus: $dateStatus) {
|
|
2206
|
-
...EventListItemFields
|
|
2207
|
-
}
|
|
2208
|
-
}
|
|
2209
|
-
${EventListItemFieldsFragmentDoc}`;
|
|
2210
|
-
var GetEventDocument = import_client.gql`
|
|
2211
|
-
query getEvent($_id: ID!) {
|
|
2212
|
-
event(_id: $_id) {
|
|
2213
|
-
...EventFields
|
|
2214
|
-
}
|
|
2215
|
-
}
|
|
2216
|
-
${EventFieldsFragmentDoc}`;
|
|
2217
|
-
var GetEventByPlaceIdDocument = import_client.gql`
|
|
2218
|
-
query getEventByPlaceId($googlePlaceId: String!) {
|
|
2219
|
-
eventByPlaceId(googlePlaceId: $googlePlaceId) {
|
|
2220
|
-
...EventListItemFields
|
|
2221
|
-
}
|
|
2222
|
-
}
|
|
2223
|
-
${EventListItemFieldsFragmentDoc}`;
|
|
2224
|
-
var GetEventsByRegionDocument = import_client.gql`
|
|
2225
|
-
query getEventsByRegion($region: String!, $options: ResourcesByRegionOptions, $dateStatus: EventDateStatusEnumType) {
|
|
2226
|
-
eventsByRegion(region: $region, options: $options, dateStatus: $dateStatus) {
|
|
2227
|
-
...EventListItemFields
|
|
2228
|
-
}
|
|
2229
|
-
}
|
|
2230
|
-
${EventListItemFieldsFragmentDoc}`;
|
|
2231
|
-
var SearchEventsDocument = import_client.gql`
|
|
2232
|
-
query searchEvents($region: String!, $search: String, $tags: [String], $dateStatus: EventDateStatusEnumType) {
|
|
2233
|
-
eventsSearch(
|
|
2234
|
-
region: $region
|
|
2235
|
-
search: $search
|
|
2236
|
-
tags: $tags
|
|
2237
|
-
dateStatus: $dateStatus
|
|
2238
|
-
) {
|
|
2239
|
-
...EventListItemFields
|
|
2240
|
-
}
|
|
2241
|
-
}
|
|
2242
|
-
${EventListItemFieldsFragmentDoc}`;
|
|
2243
|
-
var GetEventsNearMeDocument = import_client.gql`
|
|
2244
|
-
query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int, $dateStatus: EventDateStatusEnumType) {
|
|
2245
|
-
eventsNearMe(
|
|
2246
|
-
latitude: $latitude
|
|
2247
|
-
longitude: $longitude
|
|
2248
|
-
radius: $radius
|
|
2249
|
-
dateStatus: $dateStatus
|
|
2250
|
-
) {
|
|
2251
|
-
...EventListItemFields
|
|
2252
|
-
}
|
|
2253
|
-
}
|
|
2254
|
-
${EventListItemFieldsFragmentDoc}`;
|
|
2255
|
-
var GetEventInfoDocument = import_client.gql`
|
|
2256
|
-
query getEventInfo($eventId: ID!) {
|
|
2257
|
-
eventInfo(eventId: $eventId) {
|
|
2258
|
-
...EventInfoFields
|
|
2259
|
-
}
|
|
2260
|
-
}
|
|
2261
|
-
${EventInfoFieldsFragmentDoc}`;
|
|
2262
|
-
var GetGamesDocument = import_client.gql`
|
|
2263
|
-
query getGames {
|
|
2264
|
-
games {
|
|
2265
|
-
...GameDocFields
|
|
2266
|
-
}
|
|
2267
|
-
}
|
|
2268
|
-
${GameDocFieldsFragmentDoc}`;
|
|
2269
|
-
var GetGameDocument = import_client.gql`
|
|
2270
|
-
query getGame($_id: ID) {
|
|
2271
|
-
game(_id: $_id) {
|
|
2272
|
-
...GameDocFields
|
|
2273
|
-
}
|
|
2274
|
-
}
|
|
2275
|
-
${GameDocFieldsFragmentDoc}`;
|
|
2276
|
-
var GetGameLeaderboardDocument = import_client.gql`
|
|
2277
|
-
query getGameLeaderboard {
|
|
2278
|
-
gameLeaderboard {
|
|
2279
|
-
gameHistory {
|
|
2280
|
-
...GameHistoryFields
|
|
2281
|
-
}
|
|
2282
|
-
overallPoints
|
|
2283
|
-
owner {
|
|
2284
|
-
...OwnerFields
|
|
2285
|
-
}
|
|
2286
|
-
}
|
|
2287
|
-
}
|
|
2288
|
-
${GameHistoryFieldsFragmentDoc}
|
|
2289
|
-
${OwnerFieldsFragmentDoc}`;
|
|
2290
|
-
var GetUserNotificationsDocument = import_client.gql`
|
|
2291
|
-
query getUserNotifications($limit: Int, $offset: Int) {
|
|
2292
|
-
userNotifications(limit: $limit, offset: $offset) {
|
|
2293
|
-
...NotificationFields
|
|
2294
|
-
}
|
|
2295
|
-
}
|
|
2296
|
-
${NotificationFieldsFragmentDoc}`;
|
|
2297
|
-
var GetNotificationCountDocument = import_client.gql`
|
|
2298
|
-
query getNotificationCount {
|
|
2299
|
-
notificationCount {
|
|
2300
|
-
total
|
|
2301
|
-
unread
|
|
2302
|
-
}
|
|
2303
|
-
}
|
|
2304
|
-
`;
|
|
2305
|
-
var GetPartnersDocument = import_client.gql`
|
|
2306
|
-
query getPartners {
|
|
2307
|
-
partners {
|
|
2308
|
-
...PartnerFields
|
|
2309
|
-
}
|
|
2310
|
-
}
|
|
2311
|
-
${PartnerFieldsFragmentDoc}`;
|
|
2312
|
-
var GetPartnerDocument = import_client.gql`
|
|
2313
|
-
query getPartner($_id: ID!) {
|
|
2314
|
-
partner(_id: $_id) {
|
|
2315
|
-
...PartnerFields
|
|
2316
|
-
}
|
|
2317
|
-
}
|
|
2318
|
-
${PartnerFieldsFragmentDoc}`;
|
|
2319
|
-
var GetPartnersByRegionDocument = import_client.gql`
|
|
2320
|
-
query getPartnersByRegion($region: String!, $options: ResourcesByRegionOptions) {
|
|
2321
|
-
partnersByRegion(region: $region, options: $options) {
|
|
2322
|
-
...PartnerFields
|
|
2323
|
-
}
|
|
2324
|
-
}
|
|
2325
|
-
${PartnerFieldsFragmentDoc}`;
|
|
2326
|
-
var SearchPartnersDocument = import_client.gql`
|
|
2327
|
-
query searchPartners($search: String!, $region: String!) {
|
|
2328
|
-
partnersSearch(search: $search, region: $region) {
|
|
2329
|
-
...PartnerFields
|
|
2330
|
-
}
|
|
2331
|
-
}
|
|
2332
|
-
${PartnerFieldsFragmentDoc}`;
|
|
2333
|
-
var GetPostsDocument = import_client.gql`
|
|
2334
|
-
query getPosts {
|
|
2335
|
-
posts {
|
|
2336
|
-
...PostFields
|
|
2337
|
-
}
|
|
2338
|
-
}
|
|
2339
|
-
${PostFieldsFragmentDoc}`;
|
|
2340
|
-
var GetPostDocument = import_client.gql`
|
|
2341
|
-
query getPost($_id: ID!) {
|
|
2342
|
-
post(_id: $_id) {
|
|
2343
|
-
...PostFields
|
|
2344
|
-
}
|
|
2345
|
-
}
|
|
2346
|
-
${PostFieldsFragmentDoc}`;
|
|
2347
|
-
var GetPostsByTypeDocument = import_client.gql`
|
|
2348
|
-
query getPostsByType($postType: PostTypeEnum!) {
|
|
2349
|
-
postsByType(postType: $postType) {
|
|
2350
|
-
...PostFields
|
|
2351
|
-
}
|
|
2352
|
-
}
|
|
2353
|
-
${PostFieldsFragmentDoc}`;
|
|
2354
|
-
var GetRelationDocument = import_client.gql`
|
|
2355
|
-
query getRelation($_id: ID!) {
|
|
2356
|
-
relation(_id: $_id) {
|
|
2357
|
-
...RelationFields
|
|
2358
|
-
}
|
|
2359
|
-
}
|
|
2360
|
-
${RelationFieldsFragmentDoc}`;
|
|
2361
|
-
var GetRelationByEventAndVendorDocument = import_client.gql`
|
|
2362
|
-
query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
|
|
2363
|
-
relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
|
|
2364
|
-
...RelationFields
|
|
2365
|
-
}
|
|
2366
|
-
}
|
|
2367
|
-
${RelationFieldsFragmentDoc}`;
|
|
2368
|
-
var GetEventRelationsDocument = import_client.gql`
|
|
2369
|
-
query getEventRelations($eventId: ID!) {
|
|
2370
|
-
eventRelations(eventId: $eventId) {
|
|
2371
|
-
...RelationFields
|
|
2372
|
-
}
|
|
2373
|
-
}
|
|
2374
|
-
${RelationFieldsFragmentDoc}`;
|
|
2375
|
-
var GetVendorRelationsDocument = import_client.gql`
|
|
2376
|
-
query getVendorRelations($vendorId: ID!) {
|
|
2377
|
-
vendorRelations(vendorId: $vendorId) {
|
|
2378
|
-
...RelationFields
|
|
2379
|
-
}
|
|
2380
|
-
}
|
|
2381
|
-
${RelationFieldsFragmentDoc}`;
|
|
2382
|
-
var GetResourceConnectionsDocument = import_client.gql`
|
|
2383
|
-
query getResourceConnections($resourceId: ID!, $resourceType: ResourceTypeEnum!) {
|
|
2384
|
-
resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
|
|
2385
|
-
events {
|
|
2386
|
-
...EventListItemFields
|
|
2387
|
-
}
|
|
2388
|
-
vendors {
|
|
2389
|
-
...VendorFields
|
|
2390
|
-
}
|
|
2391
|
-
}
|
|
2392
|
-
}
|
|
2393
|
-
${EventListItemFieldsFragmentDoc}
|
|
2394
|
-
${VendorFieldsFragmentDoc}`;
|
|
2395
|
-
var GetResourceActivityDocument = import_client.gql`
|
|
2396
|
-
query getResourceActivity($resourceType: ResourceTypeEnum!, $resourceId: ID!) {
|
|
2397
|
-
resourceActivity(resourceType: $resourceType, resourceId: $resourceId) {
|
|
2398
|
-
...ResourceActivityFields
|
|
2399
|
-
}
|
|
2400
|
-
}
|
|
2401
|
-
${ResourceActivityFieldsFragmentDoc}`;
|
|
2402
|
-
var GetSchoolDocument = import_client.gql`
|
|
2403
|
-
query getSchool($_id: ID!) {
|
|
2404
|
-
school(_id: $_id) {
|
|
2405
|
-
school {
|
|
2406
|
-
...SchoolFields
|
|
2407
|
-
}
|
|
2408
|
-
users {
|
|
2409
|
-
...SchoolRegisteredUsersFields
|
|
2410
|
-
}
|
|
2411
|
-
}
|
|
2412
|
-
}
|
|
2413
|
-
${SchoolFieldsFragmentDoc}
|
|
2414
|
-
${SchoolRegisteredUsersFieldsFragmentDoc}`;
|
|
2415
|
-
var GetSchoolsDocument = import_client.gql`
|
|
2416
|
-
query getSchools {
|
|
2417
|
-
schools {
|
|
2418
|
-
...SchoolFields
|
|
2419
|
-
}
|
|
2420
|
-
}
|
|
2421
|
-
${SchoolFieldsFragmentDoc}`;
|
|
2422
|
-
var GetEventBySlugDocument = import_client.gql`
|
|
2423
|
-
query getEventBySlug($slug: String!) {
|
|
2424
|
-
eventBySlug(slug: $slug) {
|
|
2425
|
-
_id
|
|
2426
|
-
}
|
|
2427
|
-
}
|
|
2428
|
-
`;
|
|
2429
|
-
var GetVendorBySlugDocument = import_client.gql`
|
|
2430
|
-
query getVendorBySlug($slug: String!) {
|
|
2431
|
-
vendorBySlug(slug: $slug) {
|
|
2432
|
-
_id
|
|
2433
|
-
}
|
|
2434
|
-
}
|
|
2435
|
-
`;
|
|
2436
|
-
var GetPartnerBySlugDocument = import_client.gql`
|
|
2437
|
-
query getPartnerBySlug($slug: String!) {
|
|
2438
|
-
partnerBySlug(slug: $slug) {
|
|
2439
|
-
_id
|
|
2440
|
-
}
|
|
2441
|
-
}
|
|
2442
|
-
`;
|
|
2443
|
-
var GetPostBySlugDocument = import_client.gql`
|
|
2444
|
-
query getPostBySlug($slug: String!, $postType: PostTypeEnum!) {
|
|
2445
|
-
postBySlug(slug: $slug, postType: $postType) {
|
|
2446
|
-
_id
|
|
2447
|
-
}
|
|
2448
|
-
}
|
|
2449
|
-
`;
|
|
2450
|
-
var GetSubscriptionStatusDocument = import_client.gql`
|
|
2451
|
-
query getSubscriptionStatus {
|
|
2452
|
-
getSubscriptionStatus {
|
|
2453
|
-
subscriptionId
|
|
2454
|
-
status
|
|
2455
|
-
priceId
|
|
2456
|
-
currentPlan
|
|
2457
|
-
}
|
|
2458
|
-
}
|
|
2459
|
-
`;
|
|
2460
|
-
var GetSubscriptionPlansDocument = import_client.gql`
|
|
2461
|
-
query getSubscriptionPlans {
|
|
2462
|
-
getSubscriptionPlans {
|
|
2463
|
-
plans {
|
|
2464
|
-
name
|
|
2465
|
-
description
|
|
2466
|
-
licenceType
|
|
2467
|
-
billingPeriod
|
|
2468
|
-
stripeProductId
|
|
2469
|
-
stripePriceId
|
|
2470
|
-
isEligibleForDiscount
|
|
2471
|
-
pricing {
|
|
2472
|
-
basePrice
|
|
2473
|
-
discountedPrice
|
|
2474
|
-
hasDiscount
|
|
2475
|
-
discountPercent
|
|
2476
|
-
discountAmount
|
|
2477
|
-
currency
|
|
2478
|
-
formattedBasePrice
|
|
2479
|
-
formattedDiscountedPrice
|
|
2480
|
-
}
|
|
2481
|
-
}
|
|
2482
|
-
isNewUser
|
|
2483
|
-
isTester
|
|
2484
|
-
appliedDiscountType
|
|
2485
|
-
}
|
|
2486
|
-
}
|
|
2487
|
-
`;
|
|
2488
|
-
var GetUsersDocument = import_client.gql`
|
|
2489
|
-
query getUsers {
|
|
2490
|
-
users {
|
|
2491
|
-
...UserFields
|
|
2492
|
-
}
|
|
2493
|
-
}
|
|
2494
|
-
${UserFieldsFragmentDoc}`;
|
|
2495
|
-
var GetUserDocument = import_client.gql`
|
|
2496
|
-
query getUser($_id: ID!) {
|
|
2497
|
-
user(_id: $_id) {
|
|
2498
|
-
...UserFields
|
|
2499
|
-
}
|
|
2500
|
-
}
|
|
2501
|
-
${UserFieldsFragmentDoc}`;
|
|
2502
|
-
var GetUserEventsDocument = import_client.gql`
|
|
2503
|
-
query getUserEvents {
|
|
2504
|
-
userEvents {
|
|
2505
|
-
...EventFields
|
|
2506
|
-
}
|
|
2507
|
-
}
|
|
2508
|
-
${EventFieldsFragmentDoc}`;
|
|
2509
|
-
var GetUserVendorsDocument = import_client.gql`
|
|
2510
|
-
query getUserVendors {
|
|
2511
|
-
userVendors {
|
|
2512
|
-
...VendorFields
|
|
2513
|
-
}
|
|
2514
|
-
}
|
|
2515
|
-
${VendorFieldsFragmentDoc}`;
|
|
2516
|
-
var GetUserPartnersDocument = import_client.gql`
|
|
2517
|
-
query getUserPartners {
|
|
2518
|
-
userPartners {
|
|
2519
|
-
...PartnerFields
|
|
2520
|
-
}
|
|
2521
|
-
}
|
|
2522
|
-
${PartnerFieldsFragmentDoc}`;
|
|
2523
|
-
var GetUserActivitiesDocument = import_client.gql`
|
|
2524
|
-
query getUserActivities {
|
|
2525
|
-
userActivities {
|
|
2526
|
-
favourites {
|
|
2527
|
-
events {
|
|
2528
|
-
...EventListItemFields
|
|
2529
|
-
}
|
|
2530
|
-
partners {
|
|
2531
|
-
...PartnerFields
|
|
2532
|
-
}
|
|
2533
|
-
vendors {
|
|
2534
|
-
...VendorFields
|
|
2535
|
-
}
|
|
2536
|
-
}
|
|
2537
|
-
going {
|
|
2538
|
-
events {
|
|
2539
|
-
...EventListItemFields
|
|
2540
|
-
}
|
|
2541
|
-
}
|
|
2542
|
-
interested {
|
|
2543
|
-
events {
|
|
2544
|
-
...EventListItemFields
|
|
2545
|
-
}
|
|
2546
|
-
}
|
|
2547
|
-
present {
|
|
2548
|
-
events {
|
|
2549
|
-
...EventListItemFields
|
|
2550
|
-
}
|
|
2551
|
-
}
|
|
2552
|
-
}
|
|
2553
|
-
}
|
|
2554
|
-
${EventListItemFieldsFragmentDoc}
|
|
2555
|
-
${PartnerFieldsFragmentDoc}
|
|
2556
|
-
${VendorFieldsFragmentDoc}`;
|
|
2557
|
-
var GetUserResourcesDocument = import_client.gql`
|
|
2558
|
-
query getUserResources($userId: ID!) {
|
|
2559
|
-
userResources(userId: $userId) {
|
|
2560
|
-
resources {
|
|
2561
|
-
_id
|
|
2562
|
-
active
|
|
2563
|
-
logo
|
|
2564
|
-
name
|
|
2565
|
-
resourceType
|
|
2566
|
-
}
|
|
2567
|
-
}
|
|
2568
|
-
}
|
|
2569
|
-
`;
|
|
2570
|
-
var GetVendorsDocument = import_client.gql`
|
|
2571
|
-
query getVendors {
|
|
2572
|
-
vendors {
|
|
2573
|
-
...VendorFields
|
|
2574
|
-
}
|
|
2575
|
-
}
|
|
2576
|
-
${VendorFieldsFragmentDoc}`;
|
|
2577
|
-
var GetVendorDocument = import_client.gql`
|
|
2578
|
-
query getVendor($_id: ID!) {
|
|
2579
|
-
vendor(_id: $_id) {
|
|
2580
|
-
...VendorFields
|
|
2581
|
-
}
|
|
2582
|
-
}
|
|
2583
|
-
${VendorFieldsFragmentDoc}`;
|
|
2584
|
-
var GetVendorsByRegionDocument = import_client.gql`
|
|
2585
|
-
query getVendorsByRegion($region: String!, $options: ResourcesByRegionOptions) {
|
|
2586
|
-
vendorsByRegion(region: $region, options: $options) {
|
|
2587
|
-
...VendorFields
|
|
2588
|
-
}
|
|
2589
|
-
}
|
|
2590
|
-
${VendorFieldsFragmentDoc}`;
|
|
2591
|
-
var SearchVendorsDocument = import_client.gql`
|
|
2592
|
-
query searchVendors($search: String!, $region: String!) {
|
|
2593
|
-
vendorSearch(search: $search, region: $region) {
|
|
2594
|
-
...VendorFields
|
|
2595
|
-
}
|
|
2596
|
-
}
|
|
2597
|
-
${VendorFieldsFragmentDoc}`;
|
|
2598
|
-
var GetVendorInfoDocument = import_client.gql`
|
|
2599
|
-
query getVendorInfo($vendorId: ID!) {
|
|
2600
|
-
vendorInfo(vendorId: $vendorId) {
|
|
2601
|
-
...VendorInfoFields
|
|
2602
|
-
}
|
|
2603
|
-
}
|
|
2604
|
-
${VendorInfoFieldsFragmentDoc}`;
|
|
2605
|
-
var GetUnregisteredVendorsDocument = import_client.gql`
|
|
2606
|
-
query getUnregisteredVendors {
|
|
2607
|
-
unregisteredVendors {
|
|
2608
|
-
...UnregisteredVendorFields
|
|
2609
|
-
}
|
|
2610
|
-
}
|
|
2611
|
-
${UnregisteredVendorFieldsFragmentDoc}`;
|
|
2612
|
-
var GetUnregisteredVendorsByInviterIdDocument = import_client.gql`
|
|
2613
|
-
query getUnregisteredVendorsByInviterId($inviterId: ID!) {
|
|
2614
|
-
unregisteredVendorsByInviterId(inviterId: $inviterId) {
|
|
2615
|
-
...UnregisteredVendorFields
|
|
2616
|
-
}
|
|
2617
|
-
}
|
|
2618
|
-
${UnregisteredVendorFieldsFragmentDoc}`;
|
|
2619
|
-
var GetUnregisteredVendorDocument = import_client.gql`
|
|
2620
|
-
query getUnregisteredVendor($_id: ID!) {
|
|
2621
|
-
unregisteredVendor(_id: $_id) {
|
|
2622
|
-
...UnregisteredVendorFields
|
|
2623
|
-
}
|
|
2624
|
-
}
|
|
2625
|
-
${UnregisteredVendorFieldsFragmentDoc}`;
|
|
2626
|
-
var CreateRelationDocument = import_client.gql`
|
|
2627
|
-
mutation createRelation($input: RelationInputType!) {
|
|
2628
|
-
createRelation(input: $input) {
|
|
2629
|
-
data {
|
|
2630
|
-
...RelationFields
|
|
2631
|
-
}
|
|
2632
|
-
message
|
|
2633
|
-
}
|
|
2634
|
-
}
|
|
2635
|
-
${RelationFieldsFragmentDoc}`;
|
|
2636
|
-
var UpdateRelationDocument = import_client.gql`
|
|
2637
|
-
mutation updateRelation($_id: ID!, $input: RelationInputType!) {
|
|
2638
|
-
updateRelation(_id: $_id, input: $input) {
|
|
2639
|
-
data {
|
|
2640
|
-
...RelationFields
|
|
2641
|
-
}
|
|
2642
|
-
message
|
|
2643
|
-
}
|
|
2644
|
-
}
|
|
2645
|
-
${RelationFieldsFragmentDoc}`;
|
|
2646
|
-
var DeleteRelationDocument = import_client.gql`
|
|
2647
|
-
mutation deleteRelation($_id: ID!) {
|
|
2648
|
-
deleteRelation(_id: $_id) {
|
|
2649
|
-
data {
|
|
2650
|
-
...RelationFields
|
|
2651
|
-
}
|
|
2652
|
-
message
|
|
2653
|
-
}
|
|
2654
|
-
}
|
|
2655
|
-
${RelationFieldsFragmentDoc}`;
|
|
2656
|
-
var CreateResourceActivityDocument = import_client.gql`
|
|
2657
|
-
mutation createResourceActivity($input: ResourceActivityInputType!) {
|
|
2658
|
-
createResourceActivity(input: $input) {
|
|
2659
|
-
data
|
|
2660
|
-
message
|
|
2661
|
-
}
|
|
2662
|
-
}
|
|
2663
|
-
`;
|
|
2664
|
-
var CreateSchoolDocument = import_client.gql`
|
|
2665
|
-
mutation createSchool($input: SchoolInputType!) {
|
|
2666
|
-
createSchool(input: $input) {
|
|
2667
|
-
data {
|
|
2668
|
-
...SchoolFields
|
|
2669
|
-
}
|
|
2670
|
-
message
|
|
2671
|
-
}
|
|
2672
|
-
}
|
|
2673
|
-
${SchoolFieldsFragmentDoc}`;
|
|
2674
|
-
var UpdateSchoolDocument = import_client.gql`
|
|
2675
|
-
mutation updateSchool($_id: ID!, $input: SchoolInputType!) {
|
|
2676
|
-
updateSchool(_id: $_id, input: $input) {
|
|
2677
|
-
data {
|
|
2678
|
-
...SchoolFields
|
|
2679
|
-
}
|
|
2680
|
-
message
|
|
2681
|
-
}
|
|
2682
|
-
}
|
|
2683
|
-
${SchoolFieldsFragmentDoc}`;
|
|
2684
|
-
var DeleteSchoolDocument = import_client.gql`
|
|
2685
|
-
mutation deleteSchool($_id: ID!) {
|
|
2686
|
-
deleteSchool(_id: $_id) {
|
|
2687
|
-
data
|
|
2688
|
-
message
|
|
2689
|
-
}
|
|
2690
|
-
}
|
|
2691
|
-
`;
|
|
2692
|
-
var RequestMarketingMaterialDocument = import_client.gql`
|
|
2693
|
-
mutation requestMarketingMaterial($input: MarketingMaterialRequestInputType!) {
|
|
2694
|
-
requestMarketingMaterial(input: $input) {
|
|
2695
|
-
data
|
|
2696
|
-
message
|
|
2697
|
-
}
|
|
2698
|
-
}
|
|
2699
|
-
`;
|
|
2700
|
-
var CreateCheckoutSessionDocument = import_client.gql`
|
|
2701
|
-
mutation createCheckoutSession($planId: LicencesEnumType!, $billingPeriod: BillingPeriodEnumType) {
|
|
2702
|
-
createCheckoutSession(planId: $planId, billingPeriod: $billingPeriod) {
|
|
2703
|
-
data {
|
|
2704
|
-
sessionId
|
|
2705
|
-
checkoutUrl
|
|
2706
|
-
}
|
|
2707
|
-
message
|
|
2708
|
-
}
|
|
2709
|
-
}
|
|
2710
|
-
`;
|
|
2711
|
-
var CancelSubscriptionDocument = import_client.gql`
|
|
2712
|
-
mutation cancelSubscription {
|
|
2713
|
-
cancelSubscription {
|
|
2714
|
-
data
|
|
2715
|
-
message
|
|
2716
|
-
}
|
|
2717
|
-
}
|
|
2718
|
-
`;
|
|
2719
|
-
var UpdateSubscriptionPlanDocument = import_client.gql`
|
|
2720
|
-
mutation updateSubscriptionPlan($newPlanId: LicencesEnumType!, $billingPeriod: BillingPeriodEnumType) {
|
|
2721
|
-
updateSubscriptionPlan(newPlanId: $newPlanId, billingPeriod: $billingPeriod) {
|
|
2722
|
-
data {
|
|
2723
|
-
subscriptionId
|
|
2724
|
-
status
|
|
2725
|
-
priceId
|
|
2726
|
-
currentPlan
|
|
2727
|
-
}
|
|
2728
|
-
message
|
|
2729
|
-
}
|
|
2730
|
-
}
|
|
2731
|
-
`;
|
|
2732
|
-
var CreateCustomerPortalDocument = import_client.gql`
|
|
2733
|
-
mutation createCustomerPortal($returnUrl: String) {
|
|
2734
|
-
createCustomerPortal(returnUrl: $returnUrl) {
|
|
2735
|
-
data {
|
|
2736
|
-
portalUrl
|
|
2737
|
-
}
|
|
2738
|
-
message
|
|
2739
|
-
}
|
|
2740
|
-
}
|
|
2741
|
-
`;
|
|
2742
|
-
var UpdateUserDocument = import_client.gql`
|
|
2743
|
-
mutation updateUser($_id: ID!, $input: UserInputType!) {
|
|
2744
|
-
updateUser(_id: $_id, input: $input) {
|
|
2745
|
-
data {
|
|
2746
|
-
...UserFields
|
|
2747
|
-
}
|
|
2748
|
-
message
|
|
2749
|
-
}
|
|
2750
|
-
}
|
|
2751
|
-
${UserFieldsFragmentDoc}`;
|
|
2752
|
-
var DeleteUserDocument = import_client.gql`
|
|
2753
|
-
mutation deleteUser($email: String!) {
|
|
2754
|
-
deleteUser(email: $email) {
|
|
2755
|
-
data
|
|
2756
|
-
message
|
|
2757
|
-
}
|
|
2758
|
-
}
|
|
2759
|
-
`;
|
|
2760
|
-
var RedeemRewardDocument = import_client.gql`
|
|
2761
|
-
mutation redeemReward($input: RedeemRewardInputType!) {
|
|
2762
|
-
redeemReward(input: $input) {
|
|
2763
|
-
data {
|
|
2764
|
-
userId
|
|
2765
|
-
}
|
|
2766
|
-
message
|
|
2767
|
-
}
|
|
2768
|
-
}
|
|
2769
|
-
`;
|
|
2770
|
-
var AddUserFavouriteResourceDocument = import_client.gql`
|
|
2771
|
-
mutation addUserFavouriteResource($resourceId: ID!, $resourceType: ResourceTypeEnum!) {
|
|
2772
|
-
addUserFavouriteResource(resourceId: $resourceId, resourceType: $resourceType) {
|
|
2773
|
-
data {
|
|
2774
|
-
...UserFields
|
|
2775
|
-
}
|
|
2776
|
-
message
|
|
2777
|
-
}
|
|
2778
|
-
}
|
|
2779
|
-
${UserFieldsFragmentDoc}`;
|
|
2780
|
-
var RemoveUserFavouriteResourceDocument = import_client.gql`
|
|
2781
|
-
mutation removeUserFavouriteResource($resourceId: ID!, $resourceType: ResourceTypeEnum!) {
|
|
2782
|
-
removeUserFavouriteResource(
|
|
2783
|
-
resourceId: $resourceId
|
|
2784
|
-
resourceType: $resourceType
|
|
2785
|
-
) {
|
|
2786
|
-
data {
|
|
2787
|
-
...UserFields
|
|
2788
|
-
}
|
|
2789
|
-
message
|
|
2790
|
-
}
|
|
2791
|
-
}
|
|
2792
|
-
${UserFieldsFragmentDoc}`;
|
|
2793
|
-
var AddUserInterestResourceDocument = import_client.gql`
|
|
2794
|
-
mutation addUserInterestResource($input: UserActivityInputType!) {
|
|
2795
|
-
addUserInterestResource(input: $input) {
|
|
2796
|
-
data {
|
|
2797
|
-
...UserFields
|
|
2798
|
-
}
|
|
2799
|
-
message
|
|
2800
|
-
}
|
|
2801
|
-
}
|
|
2802
|
-
${UserFieldsFragmentDoc}`;
|
|
2803
|
-
var RemoveUserInterestResourceDocument = import_client.gql`
|
|
2804
|
-
mutation removeUserInterestResource($input: UserActivityInputType!) {
|
|
2805
|
-
removeUserInterestResource(input: $input) {
|
|
2806
|
-
data {
|
|
2807
|
-
...UserFields
|
|
2808
|
-
}
|
|
2809
|
-
message
|
|
2810
|
-
}
|
|
2811
|
-
}
|
|
2812
|
-
${UserFieldsFragmentDoc}`;
|
|
2813
|
-
var AddUserGoingResourceDocument = import_client.gql`
|
|
2814
|
-
mutation addUserGoingResource($input: UserActivityInputType!) {
|
|
2815
|
-
addUserGoingResource(input: $input) {
|
|
2816
|
-
data {
|
|
2817
|
-
...UserFields
|
|
2818
|
-
}
|
|
2819
|
-
message
|
|
2820
|
-
}
|
|
2821
|
-
}
|
|
2822
|
-
${UserFieldsFragmentDoc}`;
|
|
2823
|
-
var RemoveUserGoingResourceDocument = import_client.gql`
|
|
2824
|
-
mutation removeUserGoingResource($input: UserActivityInputType!) {
|
|
2825
|
-
removeUserGoingResource(input: $input) {
|
|
2826
|
-
data {
|
|
2827
|
-
...UserFields
|
|
2828
|
-
}
|
|
2829
|
-
message
|
|
2830
|
-
}
|
|
2831
|
-
}
|
|
2832
|
-
${UserFieldsFragmentDoc}`;
|
|
2833
|
-
var AddUserPresentResourceDocument = import_client.gql`
|
|
2834
|
-
mutation addUserPresentResource($input: UserActivityInputType!) {
|
|
2835
|
-
addUserPresentResource(input: $input) {
|
|
2836
|
-
data {
|
|
2837
|
-
...UserFields
|
|
2838
|
-
}
|
|
2839
|
-
message
|
|
2840
|
-
}
|
|
2841
|
-
}
|
|
2842
|
-
${UserFieldsFragmentDoc}`;
|
|
2843
|
-
var RemoveUserPresentResourceDocument = import_client.gql`
|
|
2844
|
-
mutation removeUserPresentResource($input: UserActivityInputType!) {
|
|
2845
|
-
removeUserPresentResource(input: $input) {
|
|
2846
|
-
data {
|
|
2847
|
-
...UserFields
|
|
2848
|
-
}
|
|
2849
|
-
message
|
|
2850
|
-
}
|
|
2851
|
-
}
|
|
2852
|
-
${UserFieldsFragmentDoc}`;
|
|
2853
|
-
var SelectStandardPackageDocument = import_client.gql`
|
|
2854
|
-
mutation selectStandardPackage($selectedLicence: LicencesEnumType!) {
|
|
2855
|
-
selectStandardPackage(selectedLicence: $selectedLicence) {
|
|
2856
|
-
data {
|
|
2857
|
-
licences {
|
|
2858
|
-
...LicenceFields
|
|
2859
|
-
}
|
|
2860
|
-
userId
|
|
2861
|
-
}
|
|
2862
|
-
message
|
|
2863
|
-
}
|
|
2864
|
-
}
|
|
2865
|
-
${LicenceFieldsFragmentDoc}`;
|
|
2866
|
-
var CreateVendorDocument = import_client.gql`
|
|
2867
|
-
mutation createVendor($input: VendorInputType!) {
|
|
2868
|
-
createVendor(input: $input) {
|
|
2869
|
-
data {
|
|
2870
|
-
...VendorFields
|
|
2871
|
-
}
|
|
2872
|
-
message
|
|
2873
|
-
}
|
|
2874
|
-
}
|
|
2875
|
-
${VendorFieldsFragmentDoc}`;
|
|
2876
|
-
var UpdateVendorDocument = import_client.gql`
|
|
2877
|
-
mutation updateVendor($_id: ID!, $input: VendorInputType!) {
|
|
2878
|
-
updateVendor(_id: $_id, input: $input) {
|
|
2879
|
-
data {
|
|
2880
|
-
...VendorFields
|
|
669
|
+
createdAt
|
|
670
|
+
dateTime {
|
|
671
|
+
...DateTimeFields
|
|
2881
672
|
}
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
deleteVendor(_id: $_id) {
|
|
2889
|
-
data
|
|
2890
|
-
message
|
|
2891
|
-
}
|
|
2892
|
-
}
|
|
2893
|
-
`;
|
|
2894
|
-
var CreateVendorInfoDocument = import_client.gql`
|
|
2895
|
-
mutation createVendorInfo($input: VendorInfoInputType!) {
|
|
2896
|
-
createVendorInfo(input: $input) {
|
|
2897
|
-
data {
|
|
2898
|
-
...VendorInfoFields
|
|
673
|
+
deletedAt
|
|
674
|
+
description
|
|
675
|
+
eventType
|
|
676
|
+
googlePlaceId
|
|
677
|
+
images {
|
|
678
|
+
...ResourceImageFields
|
|
2899
679
|
}
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
}
|
|
2903
|
-
${VendorInfoFieldsFragmentDoc}`;
|
|
2904
|
-
var UpdateVendorInfoDocument = import_client.gql`
|
|
2905
|
-
mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
|
|
2906
|
-
updateVendorInfo(_id: $_id, input: $input) {
|
|
2907
|
-
data {
|
|
2908
|
-
...VendorInfoFields
|
|
680
|
+
location {
|
|
681
|
+
...LocationFields
|
|
2909
682
|
}
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
}
|
|
2913
|
-
${VendorInfoFieldsFragmentDoc}`;
|
|
2914
|
-
var CreateUnregisteredVendorDocument = import_client.gql`
|
|
2915
|
-
mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
|
|
2916
|
-
createUnregisteredVendor(input: $input) {
|
|
2917
|
-
data {
|
|
2918
|
-
...UnregisteredVendorFields
|
|
683
|
+
logo {
|
|
684
|
+
...ResourceImageFields
|
|
2919
685
|
}
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
686
|
+
name
|
|
687
|
+
rainOrShine
|
|
688
|
+
rating
|
|
689
|
+
region
|
|
690
|
+
relations {
|
|
691
|
+
relationId
|
|
692
|
+
relationDates {
|
|
693
|
+
...RelationDates
|
|
694
|
+
}
|
|
2929
695
|
}
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
${UnregisteredVendorFieldsFragmentDoc}`;
|
|
2934
|
-
var DeleteUnregisteredVendorDocument = import_client.gql`
|
|
2935
|
-
mutation deleteUnregisteredVendor($_id: ID!) {
|
|
2936
|
-
deleteUnregisteredVendor(_id: $_id) {
|
|
2937
|
-
data
|
|
2938
|
-
message
|
|
2939
|
-
}
|
|
2940
|
-
}
|
|
2941
|
-
`;
|
|
2942
|
-
var UnlinkUnregisteredVendorByInviterIdDocument = import_client.gql`
|
|
2943
|
-
mutation unlinkUnregisteredVendorByInviterId($_id: ID!, $inviterId: ID!) {
|
|
2944
|
-
unlinkUnregisteredVendorByInviterId(_id: $_id, inviterId: $inviterId) {
|
|
2945
|
-
data
|
|
2946
|
-
message
|
|
2947
|
-
}
|
|
2948
|
-
}
|
|
2949
|
-
`;
|
|
2950
|
-
var GetChatMessageDocument = import_client.gql`
|
|
2951
|
-
subscription GetChatMessage {
|
|
2952
|
-
getChatMessage {
|
|
2953
|
-
...ChatFields
|
|
696
|
+
reviewCount
|
|
697
|
+
slug
|
|
698
|
+
updatedAt
|
|
2954
699
|
}
|
|
2955
|
-
}
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
700
|
+
${DATETIME_FIELDS_FRAGMENT}
|
|
701
|
+
${LOCATION_FIELDS_FRAGMENT}
|
|
702
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
703
|
+
${RELATION_DATES_FRAGMENT}
|
|
704
|
+
`;
|
|
705
|
+
var RELATED_POST_FIELDS_FRAGMENT = import_client.gql`
|
|
706
|
+
fragment RelatedPostFields on RelatedPostType {
|
|
707
|
+
postActive
|
|
708
|
+
postId
|
|
709
|
+
postSlug
|
|
710
|
+
postType
|
|
2961
711
|
}
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
712
|
+
`;
|
|
713
|
+
var SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT = import_client.gql`
|
|
714
|
+
fragment SocialShareResourceFields on SocialShareResourceType {
|
|
715
|
+
qrCode {
|
|
716
|
+
...ResourceImageFields
|
|
717
|
+
}
|
|
718
|
+
socialImage {
|
|
719
|
+
...ResourceImageFields
|
|
720
|
+
}
|
|
2969
721
|
}
|
|
2970
|
-
}
|
|
2971
|
-
|
|
722
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
723
|
+
`;
|
|
2972
724
|
|
|
2973
725
|
// src/graphql/mutations/auth.ts
|
|
2974
726
|
var REGISTER_MUTATION = import_client2.gql`
|
|
@@ -2984,7 +736,7 @@ var REGISTER_MUTATION = import_client2.gql`
|
|
|
2984
736
|
message
|
|
2985
737
|
}
|
|
2986
738
|
}
|
|
2987
|
-
${
|
|
739
|
+
${USER_FIELDS_FRAGMENT}
|
|
2988
740
|
`;
|
|
2989
741
|
var LOGIN_MUTATION = import_client2.gql`
|
|
2990
742
|
mutation login($input: LoginInputType!) {
|
|
@@ -2999,7 +751,7 @@ var LOGIN_MUTATION = import_client2.gql`
|
|
|
2999
751
|
message
|
|
3000
752
|
}
|
|
3001
753
|
}
|
|
3002
|
-
${
|
|
754
|
+
${USER_FIELDS_FRAGMENT}
|
|
3003
755
|
`;
|
|
3004
756
|
var LOGOUT_MUTATION = import_client2.gql`
|
|
3005
757
|
mutation logout {
|
|
@@ -3054,10 +806,671 @@ var useLogout = () => {
|
|
|
3054
806
|
};
|
|
3055
807
|
|
|
3056
808
|
// src/graphql/hooks/user/hooksQuery.ts
|
|
809
|
+
var import_client8 = require("@apollo/client");
|
|
810
|
+
|
|
811
|
+
// src/graphql/queries/user.ts
|
|
812
|
+
var import_client7 = require("@apollo/client");
|
|
813
|
+
|
|
814
|
+
// src/graphql/queries/event.ts
|
|
3057
815
|
var import_client4 = require("@apollo/client");
|
|
816
|
+
var EVENT_INFO = import_client4.gql`
|
|
817
|
+
fragment EventInfoFields on EventInfoType {
|
|
818
|
+
_id
|
|
819
|
+
applicationDeadlineHours
|
|
820
|
+
dateTime {
|
|
821
|
+
dateStatus
|
|
822
|
+
endDate
|
|
823
|
+
endTime
|
|
824
|
+
stallTypes {
|
|
825
|
+
...StallTypeFields
|
|
826
|
+
}
|
|
827
|
+
startDate
|
|
828
|
+
startTime
|
|
829
|
+
}
|
|
830
|
+
eventId
|
|
831
|
+
packInTime
|
|
832
|
+
paymentDueHours
|
|
833
|
+
paymentInfo {
|
|
834
|
+
accountHolderName
|
|
835
|
+
accountNumber
|
|
836
|
+
link
|
|
837
|
+
paymentMethod
|
|
838
|
+
}
|
|
839
|
+
refundPolicy {
|
|
840
|
+
category
|
|
841
|
+
label
|
|
842
|
+
value
|
|
843
|
+
}
|
|
844
|
+
requirements {
|
|
845
|
+
category
|
|
846
|
+
label
|
|
847
|
+
value
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
${STALL_TYPE_FIELDS_FRAGMENT}
|
|
851
|
+
`;
|
|
852
|
+
var EVENT = import_client4.gql`
|
|
853
|
+
fragment EventFields on EventType {
|
|
854
|
+
_id
|
|
855
|
+
active
|
|
856
|
+
adIds
|
|
857
|
+
approvedAt
|
|
858
|
+
cover {
|
|
859
|
+
...ResourceImageFields
|
|
860
|
+
}
|
|
861
|
+
claimed
|
|
862
|
+
createdAt
|
|
863
|
+
contactDetails {
|
|
864
|
+
...ContactDetailsFields
|
|
865
|
+
}
|
|
866
|
+
dateTime {
|
|
867
|
+
...DateTimeFields
|
|
868
|
+
}
|
|
869
|
+
description
|
|
870
|
+
deletedAt
|
|
871
|
+
googlePlaceId
|
|
872
|
+
images {
|
|
873
|
+
...ResourceImageFields
|
|
874
|
+
}
|
|
875
|
+
eventType
|
|
876
|
+
location {
|
|
877
|
+
...LocationFields
|
|
878
|
+
}
|
|
879
|
+
logo {
|
|
880
|
+
...ResourceImageFields
|
|
881
|
+
}
|
|
882
|
+
eventInfoId
|
|
883
|
+
name
|
|
884
|
+
nzbn
|
|
885
|
+
owner {
|
|
886
|
+
...OwnerFields
|
|
887
|
+
}
|
|
888
|
+
promoCodes
|
|
889
|
+
provider
|
|
890
|
+
posterUsage {
|
|
891
|
+
...PosterUsageFields
|
|
892
|
+
}
|
|
893
|
+
region
|
|
894
|
+
relations {
|
|
895
|
+
relationId
|
|
896
|
+
relationDates {
|
|
897
|
+
...RelationDates
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
rating
|
|
901
|
+
reviewCount
|
|
902
|
+
rainOrShine
|
|
903
|
+
relatedPost {
|
|
904
|
+
...RelatedPostFields
|
|
905
|
+
}
|
|
906
|
+
socialMedia {
|
|
907
|
+
...SocialMediaFields
|
|
908
|
+
}
|
|
909
|
+
sharePublic {
|
|
910
|
+
...SocialShareResourceFields
|
|
911
|
+
}
|
|
912
|
+
shareRelation {
|
|
913
|
+
...SocialShareResourceFields
|
|
914
|
+
}
|
|
915
|
+
slug
|
|
916
|
+
tags
|
|
917
|
+
termsAgreement {
|
|
918
|
+
...TermsAgreementFields
|
|
919
|
+
}
|
|
920
|
+
updatedAt
|
|
921
|
+
}
|
|
922
|
+
${DATETIME_FIELDS_FRAGMENT}
|
|
923
|
+
${LOCATION_FIELDS_FRAGMENT}
|
|
924
|
+
${OWNER_FIELDS_FRAGMENT}
|
|
925
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
926
|
+
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
927
|
+
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
928
|
+
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
929
|
+
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
930
|
+
${RELATION_DATES_FRAGMENT}
|
|
931
|
+
${RELATED_POST_FIELDS_FRAGMENT}
|
|
932
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
933
|
+
`;
|
|
934
|
+
var GET_EVENTS = import_client4.gql`
|
|
935
|
+
query getEvents($dateStatus: EventDateStatusEnumType) {
|
|
936
|
+
events(dateStatus: $dateStatus) {
|
|
937
|
+
...EventListItemFields
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
${EVENT_LIST_ITEM}
|
|
941
|
+
`;
|
|
942
|
+
var GET_EVENT = import_client4.gql`
|
|
943
|
+
query getEvent($_id: ID!) {
|
|
944
|
+
event(_id: $_id) {
|
|
945
|
+
...EventFields
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
${EVENT}
|
|
949
|
+
`;
|
|
950
|
+
var GET_EVENT_BY_PLACE_ID = import_client4.gql`
|
|
951
|
+
query getEventByPlaceId($googlePlaceId: String!) {
|
|
952
|
+
eventByPlaceId(googlePlaceId: $googlePlaceId) {
|
|
953
|
+
...EventListItemFields
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
${EVENT_LIST_ITEM}
|
|
957
|
+
`;
|
|
958
|
+
var GET_EVENTS_BY_REGION = import_client4.gql`
|
|
959
|
+
query getEventsByRegion(
|
|
960
|
+
$region: String!
|
|
961
|
+
$options: ResourcesByRegionOptions
|
|
962
|
+
$dateStatus: EventDateStatusEnumType
|
|
963
|
+
) {
|
|
964
|
+
eventsByRegion(
|
|
965
|
+
region: $region
|
|
966
|
+
options: $options
|
|
967
|
+
dateStatus: $dateStatus
|
|
968
|
+
) {
|
|
969
|
+
...EventListItemFields
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
${EVENT_LIST_ITEM}
|
|
973
|
+
`;
|
|
974
|
+
var SEARCH_EVENTS = import_client4.gql`
|
|
975
|
+
query searchEvents(
|
|
976
|
+
$region: String!
|
|
977
|
+
$search: String
|
|
978
|
+
$tags: [String]
|
|
979
|
+
$dateStatus: EventDateStatusEnumType
|
|
980
|
+
) {
|
|
981
|
+
eventsSearch(
|
|
982
|
+
region: $region
|
|
983
|
+
search: $search
|
|
984
|
+
tags: $tags
|
|
985
|
+
dateStatus: $dateStatus
|
|
986
|
+
) {
|
|
987
|
+
...EventListItemFields
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
${EVENT_LIST_ITEM}
|
|
991
|
+
`;
|
|
992
|
+
var GET_EVENTS_NEAR_ME = import_client4.gql`
|
|
993
|
+
query getEventsNearMe(
|
|
994
|
+
$latitude: Float!
|
|
995
|
+
$longitude: Float!
|
|
996
|
+
$radius: Int
|
|
997
|
+
$dateStatus: EventDateStatusEnumType
|
|
998
|
+
) {
|
|
999
|
+
eventsNearMe(
|
|
1000
|
+
latitude: $latitude
|
|
1001
|
+
longitude: $longitude
|
|
1002
|
+
radius: $radius
|
|
1003
|
+
dateStatus: $dateStatus
|
|
1004
|
+
) {
|
|
1005
|
+
...EventListItemFields
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
${EVENT_LIST_ITEM}
|
|
1009
|
+
`;
|
|
1010
|
+
var GET_EVENT_INFO = import_client4.gql`
|
|
1011
|
+
query getEventInfo($eventId: ID!) {
|
|
1012
|
+
eventInfo(eventId: $eventId) {
|
|
1013
|
+
...EventInfoFields
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
${EVENT_INFO}
|
|
1017
|
+
`;
|
|
1018
|
+
|
|
1019
|
+
// src/graphql/queries/partner.ts
|
|
1020
|
+
var import_client5 = require("@apollo/client");
|
|
1021
|
+
var PARTNER = import_client5.gql`
|
|
1022
|
+
fragment PartnerFields on PartnerType {
|
|
1023
|
+
_id
|
|
1024
|
+
active
|
|
1025
|
+
adIds
|
|
1026
|
+
approvedAt
|
|
1027
|
+
cover {
|
|
1028
|
+
...ResourceImageFields
|
|
1029
|
+
}
|
|
1030
|
+
createdAt
|
|
1031
|
+
contactDetails {
|
|
1032
|
+
...ContactDetailsFields
|
|
1033
|
+
}
|
|
1034
|
+
description
|
|
1035
|
+
deletedAt
|
|
1036
|
+
images {
|
|
1037
|
+
...ResourceImageFields
|
|
1038
|
+
}
|
|
1039
|
+
location {
|
|
1040
|
+
...LocationFields
|
|
1041
|
+
}
|
|
1042
|
+
logo {
|
|
1043
|
+
...ResourceImageFields
|
|
1044
|
+
}
|
|
1045
|
+
name
|
|
1046
|
+
nzbn
|
|
1047
|
+
owner {
|
|
1048
|
+
...OwnerFields
|
|
1049
|
+
}
|
|
1050
|
+
partnerType
|
|
1051
|
+
posterUsage {
|
|
1052
|
+
...PosterUsageFields
|
|
1053
|
+
}
|
|
1054
|
+
rating
|
|
1055
|
+
region
|
|
1056
|
+
reviewCount
|
|
1057
|
+
relatedPost {
|
|
1058
|
+
...RelatedPostFields
|
|
1059
|
+
}
|
|
1060
|
+
socialMedia {
|
|
1061
|
+
...SocialMediaFields
|
|
1062
|
+
}
|
|
1063
|
+
slug
|
|
1064
|
+
sharePublic {
|
|
1065
|
+
...SocialShareResourceFields
|
|
1066
|
+
}
|
|
1067
|
+
termsAgreement {
|
|
1068
|
+
...TermsAgreementFields
|
|
1069
|
+
}
|
|
1070
|
+
updatedAt
|
|
1071
|
+
}
|
|
1072
|
+
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
1073
|
+
${LOCATION_FIELDS_FRAGMENT}
|
|
1074
|
+
${OWNER_FIELDS_FRAGMENT}
|
|
1075
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
1076
|
+
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
1077
|
+
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
1078
|
+
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
1079
|
+
${RELATED_POST_FIELDS_FRAGMENT}
|
|
1080
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
1081
|
+
`;
|
|
1082
|
+
var GET_PARTNERS = import_client5.gql`
|
|
1083
|
+
query getPartners {
|
|
1084
|
+
partners {
|
|
1085
|
+
...PartnerFields
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
${PARTNER}
|
|
1089
|
+
`;
|
|
1090
|
+
var GET_PARTNER = import_client5.gql`
|
|
1091
|
+
query getPartner($_id: ID!) {
|
|
1092
|
+
partner(_id: $_id) {
|
|
1093
|
+
...PartnerFields
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
${PARTNER}
|
|
1097
|
+
`;
|
|
1098
|
+
var GET_PARTNERS_BY_REGION = import_client5.gql`
|
|
1099
|
+
query getPartnersByRegion(
|
|
1100
|
+
$region: String!
|
|
1101
|
+
$options: ResourcesByRegionOptions
|
|
1102
|
+
) {
|
|
1103
|
+
partnersByRegion(region: $region, options: $options) {
|
|
1104
|
+
...PartnerFields
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
${PARTNER}
|
|
1108
|
+
`;
|
|
1109
|
+
var SEARCH_PARTNERS = import_client5.gql`
|
|
1110
|
+
query searchPartners($search: String!, $region: String!) {
|
|
1111
|
+
partnersSearch(search: $search, region: $region) {
|
|
1112
|
+
...PartnerFields
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
${PARTNER}
|
|
1116
|
+
`;
|
|
1117
|
+
|
|
1118
|
+
// src/graphql/queries/vendor.ts
|
|
1119
|
+
var import_client6 = require("@apollo/client");
|
|
1120
|
+
var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client6.gql`
|
|
1121
|
+
fragment VendorDateTimeFields on VendorDateTimeType {
|
|
1122
|
+
dateStatus
|
|
1123
|
+
endDate
|
|
1124
|
+
endTime
|
|
1125
|
+
startDate
|
|
1126
|
+
startTime
|
|
1127
|
+
}
|
|
1128
|
+
`;
|
|
1129
|
+
var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client6.gql`
|
|
1130
|
+
fragment VendorProductListFields on VendorProductListType {
|
|
1131
|
+
description
|
|
1132
|
+
name
|
|
1133
|
+
price
|
|
1134
|
+
priceUnit
|
|
1135
|
+
productGroups
|
|
1136
|
+
}
|
|
1137
|
+
`;
|
|
1138
|
+
var VENDOR = import_client6.gql`
|
|
1139
|
+
fragment VendorFields on VendorType {
|
|
1140
|
+
_id
|
|
1141
|
+
active
|
|
1142
|
+
adIds
|
|
1143
|
+
approvedAt
|
|
1144
|
+
availability {
|
|
1145
|
+
corporate
|
|
1146
|
+
private
|
|
1147
|
+
school
|
|
1148
|
+
}
|
|
1149
|
+
vendorInfoId
|
|
1150
|
+
categories {
|
|
1151
|
+
...CategoryFields
|
|
1152
|
+
}
|
|
1153
|
+
calendar {
|
|
1154
|
+
active
|
|
1155
|
+
calendarData {
|
|
1156
|
+
dateTime {
|
|
1157
|
+
...VendorDateTimeFields
|
|
1158
|
+
}
|
|
1159
|
+
description
|
|
1160
|
+
location {
|
|
1161
|
+
...LocationFields
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
contactDetails {
|
|
1166
|
+
...ContactDetailsFields
|
|
1167
|
+
}
|
|
1168
|
+
cover {
|
|
1169
|
+
...ResourceImageFields
|
|
1170
|
+
}
|
|
1171
|
+
createdAt
|
|
1172
|
+
claimed
|
|
1173
|
+
description
|
|
1174
|
+
deletedAt
|
|
1175
|
+
foodTruck
|
|
1176
|
+
images {
|
|
1177
|
+
...ResourceImageFields
|
|
1178
|
+
}
|
|
1179
|
+
logo {
|
|
1180
|
+
...ResourceImageFields
|
|
1181
|
+
}
|
|
1182
|
+
name
|
|
1183
|
+
owner {
|
|
1184
|
+
...OwnerFields
|
|
1185
|
+
}
|
|
1186
|
+
products {
|
|
1187
|
+
active
|
|
1188
|
+
productsList {
|
|
1189
|
+
...VendorProductListFields
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
promoCodes
|
|
1193
|
+
posterUsage {
|
|
1194
|
+
...PosterUsageFields
|
|
1195
|
+
}
|
|
1196
|
+
rating
|
|
1197
|
+
region
|
|
1198
|
+
reviewCount
|
|
1199
|
+
relatedPost {
|
|
1200
|
+
...RelatedPostFields
|
|
1201
|
+
}
|
|
1202
|
+
relations {
|
|
1203
|
+
relationId
|
|
1204
|
+
relationDates {
|
|
1205
|
+
...RelationDates
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
slug
|
|
1209
|
+
socialMedia {
|
|
1210
|
+
...SocialMediaFields
|
|
1211
|
+
}
|
|
1212
|
+
sharePublic {
|
|
1213
|
+
...SocialShareResourceFields
|
|
1214
|
+
}
|
|
1215
|
+
shareRelation {
|
|
1216
|
+
...SocialShareResourceFields
|
|
1217
|
+
}
|
|
1218
|
+
termsAgreement {
|
|
1219
|
+
...TermsAgreementFields
|
|
1220
|
+
}
|
|
1221
|
+
updatedAt
|
|
1222
|
+
vendorType
|
|
1223
|
+
unregisteredVendorId
|
|
1224
|
+
}
|
|
1225
|
+
${CATEGORY_FIELDS_FRAGMENT}
|
|
1226
|
+
${VENDOR_DATETIME_FIELDS_FRAGMENT}
|
|
1227
|
+
${LOCATION_FIELDS_FRAGMENT}
|
|
1228
|
+
${OWNER_FIELDS_FRAGMENT}
|
|
1229
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
1230
|
+
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
1231
|
+
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
1232
|
+
${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
|
|
1233
|
+
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
1234
|
+
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
1235
|
+
${RELATION_DATES_FRAGMENT}
|
|
1236
|
+
${RELATED_POST_FIELDS_FRAGMENT}
|
|
1237
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
1238
|
+
`;
|
|
1239
|
+
var VENDOR_ATTRIBUTES_FRAGMENT = import_client6.gql`
|
|
1240
|
+
fragment VendorAttributesFields on VendorAttributesType {
|
|
1241
|
+
details
|
|
1242
|
+
isRequired
|
|
1243
|
+
}
|
|
1244
|
+
`;
|
|
1245
|
+
var VENDOR_INFO = import_client6.gql`
|
|
1246
|
+
fragment VendorInfoFields on VendorInfoType {
|
|
1247
|
+
_id
|
|
1248
|
+
compliance {
|
|
1249
|
+
foodBeverageLicense
|
|
1250
|
+
liabilityInsurance
|
|
1251
|
+
}
|
|
1252
|
+
documents {
|
|
1253
|
+
...ResourceImageFields
|
|
1254
|
+
}
|
|
1255
|
+
requirements {
|
|
1256
|
+
electricity {
|
|
1257
|
+
...VendorAttributesFields
|
|
1258
|
+
}
|
|
1259
|
+
gazebo {
|
|
1260
|
+
...VendorAttributesFields
|
|
1261
|
+
}
|
|
1262
|
+
table {
|
|
1263
|
+
...VendorAttributesFields
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
product {
|
|
1267
|
+
foodFlavors
|
|
1268
|
+
packaging
|
|
1269
|
+
priceRange {
|
|
1270
|
+
max
|
|
1271
|
+
min
|
|
1272
|
+
}
|
|
1273
|
+
producedIn
|
|
1274
|
+
}
|
|
1275
|
+
stallInfo {
|
|
1276
|
+
size {
|
|
1277
|
+
depth
|
|
1278
|
+
width
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
vendorId
|
|
1282
|
+
}
|
|
1283
|
+
${VENDOR_ATTRIBUTES_FRAGMENT}
|
|
1284
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
1285
|
+
`;
|
|
1286
|
+
var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client6.gql`
|
|
1287
|
+
fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
|
|
1288
|
+
dateTime {
|
|
1289
|
+
...DateTimeFields
|
|
1290
|
+
}
|
|
1291
|
+
inviterId
|
|
1292
|
+
}
|
|
1293
|
+
${DATETIME_FIELDS_FRAGMENT}
|
|
1294
|
+
`;
|
|
1295
|
+
var UNREGISTERED_VENDOR = import_client6.gql`
|
|
1296
|
+
fragment UnregisteredVendorFields on UnregisteredVendorType {
|
|
1297
|
+
_id
|
|
1298
|
+
active
|
|
1299
|
+
categoryIds
|
|
1300
|
+
claimed
|
|
1301
|
+
createdAt
|
|
1302
|
+
deletedAt
|
|
1303
|
+
email
|
|
1304
|
+
invitations {
|
|
1305
|
+
...UnregisteredVendorInvitationFields
|
|
1306
|
+
}
|
|
1307
|
+
name
|
|
1308
|
+
region
|
|
1309
|
+
updatedAt
|
|
1310
|
+
}
|
|
1311
|
+
${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
|
|
1312
|
+
`;
|
|
1313
|
+
var GET_VENDORS = import_client6.gql`
|
|
1314
|
+
query getVendors {
|
|
1315
|
+
vendors {
|
|
1316
|
+
...VendorFields
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
${VENDOR}
|
|
1320
|
+
`;
|
|
1321
|
+
var GET_VENDOR = import_client6.gql`
|
|
1322
|
+
query getVendor($_id: ID!) {
|
|
1323
|
+
vendor(_id: $_id) {
|
|
1324
|
+
...VendorFields
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
${VENDOR}
|
|
1328
|
+
`;
|
|
1329
|
+
var GET_VENDORS_BY_REGION = import_client6.gql`
|
|
1330
|
+
query getVendorsByRegion(
|
|
1331
|
+
$region: String!
|
|
1332
|
+
$options: ResourcesByRegionOptions
|
|
1333
|
+
) {
|
|
1334
|
+
vendorsByRegion(region: $region, options: $options) {
|
|
1335
|
+
...VendorFields
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
${VENDOR}
|
|
1339
|
+
`;
|
|
1340
|
+
var SEARCH_VENDORS = import_client6.gql`
|
|
1341
|
+
query searchVendors($search: String!, $region: String!) {
|
|
1342
|
+
vendorSearch(search: $search, region: $region) {
|
|
1343
|
+
...VendorFields
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
${VENDOR}
|
|
1347
|
+
`;
|
|
1348
|
+
var GET_VENDOR_INFO = import_client6.gql`
|
|
1349
|
+
query getVendorInfo($vendorId: ID!) {
|
|
1350
|
+
vendorInfo(vendorId: $vendorId) {
|
|
1351
|
+
...VendorInfoFields
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
${VENDOR_INFO}
|
|
1355
|
+
`;
|
|
1356
|
+
var GET_UNREGISTERED_VENDORS = import_client6.gql`
|
|
1357
|
+
query getUnregisteredVendors {
|
|
1358
|
+
unregisteredVendors {
|
|
1359
|
+
...UnregisteredVendorFields
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
${UNREGISTERED_VENDOR}
|
|
1363
|
+
`;
|
|
1364
|
+
var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client6.gql`
|
|
1365
|
+
query getUnregisteredVendorsByInviterId($inviterId: ID!) {
|
|
1366
|
+
unregisteredVendorsByInviterId(inviterId: $inviterId) {
|
|
1367
|
+
...UnregisteredVendorFields
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
${UNREGISTERED_VENDOR}
|
|
1371
|
+
`;
|
|
1372
|
+
var GET_UNREGISTERED_VENDOR = import_client6.gql`
|
|
1373
|
+
query getUnregisteredVendor($_id: ID!) {
|
|
1374
|
+
unregisteredVendor(_id: $_id) {
|
|
1375
|
+
...UnregisteredVendorFields
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
${UNREGISTERED_VENDOR}
|
|
1379
|
+
`;
|
|
1380
|
+
|
|
1381
|
+
// src/graphql/queries/user.ts
|
|
1382
|
+
var GET_USERS = import_client7.gql`
|
|
1383
|
+
query getUsers {
|
|
1384
|
+
users {
|
|
1385
|
+
...UserFields
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
${USER_FIELDS_FRAGMENT}
|
|
1389
|
+
`;
|
|
1390
|
+
var GET_USER = import_client7.gql`
|
|
1391
|
+
query getUser($_id: ID!) {
|
|
1392
|
+
user(_id: $_id) {
|
|
1393
|
+
...UserFields
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
${USER_FIELDS_FRAGMENT}
|
|
1397
|
+
`;
|
|
1398
|
+
var GET_USER_EVENTS = import_client7.gql`
|
|
1399
|
+
query getUserEvents {
|
|
1400
|
+
userEvents {
|
|
1401
|
+
...EventFields
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
${EVENT}
|
|
1405
|
+
`;
|
|
1406
|
+
var GET_USER_VENDORS = import_client7.gql`
|
|
1407
|
+
query getUserVendors {
|
|
1408
|
+
userVendors {
|
|
1409
|
+
...VendorFields
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
${VENDOR}
|
|
1413
|
+
`;
|
|
1414
|
+
var GET_USER_PARTNERS = import_client7.gql`
|
|
1415
|
+
query getUserPartners {
|
|
1416
|
+
userPartners {
|
|
1417
|
+
...PartnerFields
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
${PARTNER}
|
|
1421
|
+
`;
|
|
1422
|
+
var GET_USER_ACTIVITIES = import_client7.gql`
|
|
1423
|
+
query getUserActivities {
|
|
1424
|
+
userActivities {
|
|
1425
|
+
favourites {
|
|
1426
|
+
events {
|
|
1427
|
+
...EventListItemFields
|
|
1428
|
+
}
|
|
1429
|
+
partners {
|
|
1430
|
+
...PartnerFields
|
|
1431
|
+
}
|
|
1432
|
+
vendors {
|
|
1433
|
+
...VendorFields
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
going {
|
|
1437
|
+
events {
|
|
1438
|
+
...EventListItemFields
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
interested {
|
|
1442
|
+
events {
|
|
1443
|
+
...EventListItemFields
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
present {
|
|
1447
|
+
events {
|
|
1448
|
+
...EventListItemFields
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
${EVENT_LIST_ITEM}
|
|
1454
|
+
${VENDOR}
|
|
1455
|
+
${PARTNER}
|
|
1456
|
+
`;
|
|
1457
|
+
var GET_USER_RESOURCES = import_client7.gql`
|
|
1458
|
+
query getUserResources($userId: ID!) {
|
|
1459
|
+
userResources(userId: $userId) {
|
|
1460
|
+
resources {
|
|
1461
|
+
_id
|
|
1462
|
+
logo
|
|
1463
|
+
name
|
|
1464
|
+
resourceType
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
`;
|
|
1469
|
+
|
|
1470
|
+
// src/graphql/hooks/user/hooksQuery.ts
|
|
3058
1471
|
var useGetUser = (_id) => {
|
|
3059
|
-
const { loading, error, data, refetch } = (0,
|
|
3060
|
-
|
|
1472
|
+
const { loading, error, data, refetch } = (0, import_client8.useQuery)(
|
|
1473
|
+
GET_USER,
|
|
3061
1474
|
{
|
|
3062
1475
|
fetchPolicy: "network-only",
|
|
3063
1476
|
skip: !_id || _id === "",
|
|
@@ -3071,14 +1484,6 @@ var useGetUser = (_id) => {
|
|
|
3071
1484
|
// src/storage/index.ts
|
|
3072
1485
|
var USER_STORAGE_KEY = "authUser";
|
|
3073
1486
|
|
|
3074
|
-
// src/types/userAdapters.ts
|
|
3075
|
-
var PERMISSION_SET = new Set(PERMISSIONS);
|
|
3076
|
-
function toUserPermissions(permissions) {
|
|
3077
|
-
return permissions.filter(
|
|
3078
|
-
(permission) => PERMISSION_SET.has(permission)
|
|
3079
|
-
);
|
|
3080
|
-
}
|
|
3081
|
-
|
|
3082
1487
|
// src/auth/useAuthCore.ts
|
|
3083
1488
|
function useAuthCore(adapters) {
|
|
3084
1489
|
const {
|
|
@@ -3123,12 +1528,12 @@ function useAuthCore(adapters) {
|
|
|
3123
1528
|
}, [authUser, handleSetAuthUser, onError, refetch]);
|
|
3124
1529
|
const licences = (0, import_react.useCallback)(
|
|
3125
1530
|
(resourceId) => {
|
|
3126
|
-
const myLicences = authUser?.licences?.map((licence) => licence.licenceType)
|
|
1531
|
+
const myLicences = authUser?.licences?.map((licence) => licence.licenceType) ?? [];
|
|
3127
1532
|
const myResourceIds = [
|
|
3128
1533
|
authUser?.vendor ?? null,
|
|
3129
1534
|
authUser?.partner ?? null,
|
|
3130
1535
|
...authUser?.events ?? []
|
|
3131
|
-
].filter((id) => id
|
|
1536
|
+
].filter((id) => id !== null);
|
|
3132
1537
|
return myResourceIds.includes(resourceId) ? getLicenceFlagsByRole(myLicences) : NO_LICENCE_FLAGS;
|
|
3133
1538
|
},
|
|
3134
1539
|
[authUser]
|
|
@@ -3167,7 +1572,7 @@ function useAuthCore(adapters) {
|
|
|
3167
1572
|
);
|
|
3168
1573
|
const permissions = (0, import_react.useMemo)(() => {
|
|
3169
1574
|
if (authUser?.permissions != null) {
|
|
3170
|
-
return
|
|
1575
|
+
return authUser.permissions;
|
|
3171
1576
|
}
|
|
3172
1577
|
return getPermissionsForRoles(authUser?.roles);
|
|
3173
1578
|
}, [authUser?.permissions, authUser?.roles]);
|
|
@@ -3180,19 +1585,19 @@ function useAuthCore(adapters) {
|
|
|
3180
1585
|
[authUser?.roles]
|
|
3181
1586
|
);
|
|
3182
1587
|
const isAdmin = (0, import_react.useMemo)(
|
|
3183
|
-
() => hasRole(authUser?.roles, "admin" /*
|
|
1588
|
+
() => hasRole(authUser?.roles, "admin" /* ADMIN */) || permissionListIncludes(permissions, "dashboard.admin") || permissionListIncludes(permissions, "*"),
|
|
3184
1589
|
[authUser?.roles, permissions]
|
|
3185
1590
|
);
|
|
3186
1591
|
const isSuperAdmin = (0, import_react.useMemo)(
|
|
3187
|
-
() => hasRole(authUser?.roles, "super_admin" /*
|
|
1592
|
+
() => hasRole(authUser?.roles, "super_admin" /* SUPER_ADMIN */),
|
|
3188
1593
|
[authUser?.roles]
|
|
3189
1594
|
);
|
|
3190
1595
|
const isAffiliate = (0, import_react.useMemo)(
|
|
3191
|
-
() => hasRole(authUser?.roles, "affiliate" /*
|
|
1596
|
+
() => hasRole(authUser?.roles, "affiliate" /* AFFILIATE */) && authUser?.affiliate !== null && authUser?.affiliate !== void 0,
|
|
3192
1597
|
[authUser?.roles, authUser?.affiliate]
|
|
3193
1598
|
);
|
|
3194
1599
|
const isSchool = (0, import_react.useMemo)(
|
|
3195
|
-
() => hasRole(authUser?.roles, "school" /*
|
|
1600
|
+
() => hasRole(authUser?.roles, "school" /* SCHOOL */) && authUser?.school !== null && authUser?.school !== void 0,
|
|
3196
1601
|
[authUser?.roles, authUser?.school]
|
|
3197
1602
|
);
|
|
3198
1603
|
(0, import_react.useEffect)(() => {
|