@timardex/cluemart-shared 1.2.12 → 1.2.14
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/graphql/index.cjs +396 -396
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.mjs +319 -319
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/index.cjs +396 -396
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +319 -319
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2166,7 +2166,7 @@ var companyContactFields = [
|
|
|
2166
2166
|
];
|
|
2167
2167
|
|
|
2168
2168
|
// src/graphql/hooks/admin/hooksMutation.ts
|
|
2169
|
-
var
|
|
2169
|
+
var import_client5 = require("@apollo/client");
|
|
2170
2170
|
|
|
2171
2171
|
// src/graphql/mutations/admin.ts
|
|
2172
2172
|
var import_client = require("@apollo/client");
|
|
@@ -2181,7 +2181,7 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client.gql`
|
|
|
2181
2181
|
`;
|
|
2182
2182
|
|
|
2183
2183
|
// src/graphql/queries/event.ts
|
|
2184
|
-
var
|
|
2184
|
+
var import_client3 = require("@apollo/client");
|
|
2185
2185
|
|
|
2186
2186
|
// src/graphql/queries/global.ts
|
|
2187
2187
|
var import_client2 = require("@apollo/client");
|
|
@@ -2294,6 +2294,22 @@ var STALL_TYPE_FIELDS_FRAGMENT = import_client2.gql`
|
|
|
2294
2294
|
}
|
|
2295
2295
|
}
|
|
2296
2296
|
`;
|
|
2297
|
+
var RELATION_DATES_FRAGMENT = import_client2.gql`
|
|
2298
|
+
fragment RelationDates on RelationDateType {
|
|
2299
|
+
lastUpdateBy {
|
|
2300
|
+
resourceId
|
|
2301
|
+
userEmail
|
|
2302
|
+
}
|
|
2303
|
+
paymentReference
|
|
2304
|
+
stallType {
|
|
2305
|
+
...StallTypeFields
|
|
2306
|
+
}
|
|
2307
|
+
startDate
|
|
2308
|
+
startTime
|
|
2309
|
+
status
|
|
2310
|
+
}
|
|
2311
|
+
${STALL_TYPE_FIELDS_FRAGMENT}
|
|
2312
|
+
`;
|
|
2297
2313
|
var CONTACT_DETAILS_FIELDS_FRAGMENT = import_client2.gql`
|
|
2298
2314
|
fragment ContactDetailsFields on ContactDetailsType {
|
|
2299
2315
|
email
|
|
@@ -2302,13 +2318,17 @@ var CONTACT_DETAILS_FIELDS_FRAGMENT = import_client2.gql`
|
|
|
2302
2318
|
}
|
|
2303
2319
|
`;
|
|
2304
2320
|
|
|
2305
|
-
// src/graphql/queries/
|
|
2306
|
-
var
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2321
|
+
// src/graphql/queries/event.ts
|
|
2322
|
+
var EVENT_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
|
|
2323
|
+
fragment EventDateTimeFields on EventDateTimeType {
|
|
2324
|
+
endDate
|
|
2325
|
+
endTime
|
|
2326
|
+
startDate
|
|
2327
|
+
startTime
|
|
2328
|
+
}
|
|
2329
|
+
`;
|
|
2330
|
+
var EVENT_LOCATION_FIELDS_FRAGMENT = import_client3.gql`
|
|
2331
|
+
fragment EventLocationFields on EventLocationType {
|
|
2312
2332
|
city
|
|
2313
2333
|
coordinates
|
|
2314
2334
|
country
|
|
@@ -2319,72 +2339,74 @@ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client3.gql`
|
|
|
2319
2339
|
type
|
|
2320
2340
|
}
|
|
2321
2341
|
`;
|
|
2322
|
-
var
|
|
2323
|
-
fragment
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2342
|
+
var EVENT_INFO = import_client3.gql`
|
|
2343
|
+
fragment EventInfoFields on EventInfoType {
|
|
2344
|
+
_id
|
|
2345
|
+
applicationDeadlineHours
|
|
2346
|
+
dateTime {
|
|
2347
|
+
endDate
|
|
2348
|
+
endTime
|
|
2349
|
+
stallTypes {
|
|
2350
|
+
...StallTypeFields
|
|
2351
|
+
}
|
|
2352
|
+
startDate
|
|
2353
|
+
startTime
|
|
2354
|
+
}
|
|
2355
|
+
eventId
|
|
2356
|
+
packInTime
|
|
2357
|
+
paymentDueHours
|
|
2358
|
+
paymentInfo {
|
|
2359
|
+
accountHolderName
|
|
2360
|
+
accountNumber
|
|
2361
|
+
link
|
|
2362
|
+
paymentMethod
|
|
2363
|
+
}
|
|
2364
|
+
requirements {
|
|
2365
|
+
category
|
|
2366
|
+
label
|
|
2367
|
+
value
|
|
2368
|
+
}
|
|
2336
2369
|
}
|
|
2370
|
+
${STALL_TYPE_FIELDS_FRAGMENT}
|
|
2337
2371
|
`;
|
|
2338
|
-
var
|
|
2339
|
-
fragment
|
|
2372
|
+
var EVENT = import_client3.gql`
|
|
2373
|
+
fragment EventFields on EventType {
|
|
2340
2374
|
_id
|
|
2341
2375
|
active
|
|
2342
2376
|
adIds
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
private
|
|
2346
|
-
school
|
|
2347
|
-
}
|
|
2348
|
-
vendorInfoId
|
|
2349
|
-
categories {
|
|
2350
|
-
...CategoryFields
|
|
2377
|
+
cover {
|
|
2378
|
+
...ResourceImageFields
|
|
2351
2379
|
}
|
|
2380
|
+
createdAt
|
|
2352
2381
|
contactDetails {
|
|
2353
2382
|
...ContactDetailsFields
|
|
2354
2383
|
}
|
|
2355
|
-
|
|
2356
|
-
...
|
|
2384
|
+
dateTime {
|
|
2385
|
+
...EventDateTimeFields
|
|
2357
2386
|
}
|
|
2358
|
-
createdAt
|
|
2359
2387
|
description
|
|
2360
2388
|
deletedAt
|
|
2361
2389
|
images {
|
|
2362
2390
|
...ResourceImageFields
|
|
2363
2391
|
}
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
}
|
|
2368
|
-
description
|
|
2369
|
-
location {
|
|
2370
|
-
...VendorLocationFields
|
|
2371
|
-
}
|
|
2392
|
+
eventType
|
|
2393
|
+
location {
|
|
2394
|
+
...EventLocationFields
|
|
2372
2395
|
}
|
|
2373
2396
|
logo {
|
|
2374
2397
|
...ResourceImageFields
|
|
2375
2398
|
}
|
|
2376
|
-
|
|
2399
|
+
eventInfoId
|
|
2377
2400
|
name
|
|
2401
|
+
nzbn
|
|
2378
2402
|
owner {
|
|
2379
2403
|
...OwnerFields
|
|
2380
2404
|
}
|
|
2381
2405
|
partners {
|
|
2382
2406
|
...PartnerFields
|
|
2383
2407
|
}
|
|
2384
|
-
products {
|
|
2385
|
-
...VendorMenuFields
|
|
2386
|
-
}
|
|
2387
2408
|
promoCodes
|
|
2409
|
+
provider
|
|
2388
2410
|
posterUsage {
|
|
2389
2411
|
...PosterUsageFields
|
|
2390
2412
|
}
|
|
@@ -2396,209 +2418,77 @@ var VENDOR = import_client3.gql`
|
|
|
2396
2418
|
socialMedia {
|
|
2397
2419
|
...SocialMediaFields
|
|
2398
2420
|
}
|
|
2421
|
+
rainOrShine
|
|
2422
|
+
tags
|
|
2399
2423
|
termsAgreement {
|
|
2400
2424
|
...TermsAgreementFields
|
|
2401
2425
|
}
|
|
2402
2426
|
updatedAt
|
|
2403
|
-
vendorType
|
|
2404
2427
|
}
|
|
2405
|
-
${
|
|
2406
|
-
${
|
|
2407
|
-
${VENDOR_LOCATION_FIELDS_FRAGMENT}
|
|
2428
|
+
${EVENT_DATETIME_FIELDS_FRAGMENT}
|
|
2429
|
+
${EVENT_LOCATION_FIELDS_FRAGMENT}
|
|
2408
2430
|
${OWNER_FIELDS_FRAGMENT}
|
|
2409
2431
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
2410
2432
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
2411
2433
|
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
2412
2434
|
${PARTNER_FIELDS_FRAGMENT}
|
|
2413
|
-
${VENDOR_MENU_FIELDS_FRAGMENT}
|
|
2414
2435
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
2415
2436
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
2416
2437
|
${RELATION_DATES_FRAGMENT}
|
|
2417
2438
|
`;
|
|
2418
|
-
var
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
}
|
|
2423
|
-
`;
|
|
2424
|
-
var VENDOR_INFO = import_client3.gql`
|
|
2425
|
-
fragment VendorInfoFields on VendorInfoType {
|
|
2426
|
-
_id
|
|
2427
|
-
compliance {
|
|
2428
|
-
foodBeverageLicense
|
|
2429
|
-
liabilityInsurance
|
|
2430
|
-
}
|
|
2431
|
-
documents {
|
|
2432
|
-
...ResourceImageFields
|
|
2433
|
-
}
|
|
2434
|
-
requirements {
|
|
2435
|
-
electricity {
|
|
2436
|
-
...VendorAttributesFields
|
|
2437
|
-
}
|
|
2438
|
-
gazebo {
|
|
2439
|
-
...VendorAttributesFields
|
|
2440
|
-
}
|
|
2441
|
-
table {
|
|
2442
|
-
...VendorAttributesFields
|
|
2443
|
-
}
|
|
2444
|
-
}
|
|
2445
|
-
product {
|
|
2446
|
-
foodFlavors
|
|
2447
|
-
packaging
|
|
2448
|
-
priceRange {
|
|
2449
|
-
max
|
|
2450
|
-
min
|
|
2451
|
-
}
|
|
2452
|
-
producedIn
|
|
2453
|
-
}
|
|
2454
|
-
stallInfo {
|
|
2455
|
-
size {
|
|
2456
|
-
depth
|
|
2457
|
-
width
|
|
2458
|
-
}
|
|
2459
|
-
}
|
|
2460
|
-
vendorId
|
|
2461
|
-
}
|
|
2462
|
-
${VENDOR_ATTRIBUTES_FRAGMENT}
|
|
2463
|
-
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
2464
|
-
`;
|
|
2465
|
-
var GET_VENDORS = import_client3.gql`
|
|
2466
|
-
query getVendors {
|
|
2467
|
-
vendors {
|
|
2468
|
-
...VendorFields
|
|
2469
|
-
}
|
|
2470
|
-
}
|
|
2471
|
-
${VENDOR}
|
|
2472
|
-
`;
|
|
2473
|
-
var GET_VENDOR = import_client3.gql`
|
|
2474
|
-
query getVendor($_id: ID!) {
|
|
2475
|
-
vendor(_id: $_id) {
|
|
2476
|
-
...VendorFields
|
|
2477
|
-
}
|
|
2478
|
-
}
|
|
2479
|
-
${VENDOR}
|
|
2480
|
-
`;
|
|
2481
|
-
var GET_VENDORS_BY_REGION = import_client3.gql`
|
|
2482
|
-
query getVendorsByRegion($region: String!) {
|
|
2483
|
-
vendorsByRegion(region: $region) {
|
|
2484
|
-
...VendorFields
|
|
2485
|
-
}
|
|
2486
|
-
}
|
|
2487
|
-
${VENDOR}
|
|
2488
|
-
`;
|
|
2489
|
-
var SEARCH_VENDORS = import_client3.gql`
|
|
2490
|
-
query searchVendors($search: String!, $region: String) {
|
|
2491
|
-
vendorSearch(search: $search, region: $region) {
|
|
2492
|
-
...VendorFields
|
|
2493
|
-
}
|
|
2494
|
-
}
|
|
2495
|
-
${VENDOR}
|
|
2496
|
-
`;
|
|
2497
|
-
var GET_VENDOR_INFO = import_client3.gql`
|
|
2498
|
-
query getVendorInfo($vendorId: ID!) {
|
|
2499
|
-
vendorInfo(vendorId: $vendorId) {
|
|
2500
|
-
...VendorInfoFields
|
|
2501
|
-
}
|
|
2502
|
-
}
|
|
2503
|
-
${VENDOR_INFO}
|
|
2504
|
-
`;
|
|
2505
|
-
|
|
2506
|
-
// src/graphql/queries/relation.ts
|
|
2507
|
-
var RELATION_DATES_FRAGMENT = import_client4.gql`
|
|
2508
|
-
fragment RelationDates on RelationDateType {
|
|
2509
|
-
lastUpdateBy {
|
|
2510
|
-
resourceId
|
|
2511
|
-
userEmail
|
|
2512
|
-
}
|
|
2513
|
-
paymentReference
|
|
2514
|
-
stallType {
|
|
2515
|
-
...StallTypeFields
|
|
2516
|
-
}
|
|
2517
|
-
startDate
|
|
2518
|
-
startTime
|
|
2519
|
-
status
|
|
2520
|
-
}
|
|
2521
|
-
${STALL_TYPE_FIELDS_FRAGMENT}
|
|
2522
|
-
`;
|
|
2523
|
-
var RELATION_FIELDS_FRAGMENT = import_client4.gql`
|
|
2524
|
-
fragment RelationFields on RelationType {
|
|
2525
|
-
_id
|
|
2526
|
-
active
|
|
2527
|
-
apiMessage
|
|
2528
|
-
chatId
|
|
2529
|
-
createdAt
|
|
2530
|
-
lastUpdateBy
|
|
2531
|
-
eventId
|
|
2532
|
-
relationDates {
|
|
2533
|
-
...RelationDates
|
|
2439
|
+
var GET_EVENTS = import_client3.gql`
|
|
2440
|
+
query getEvents {
|
|
2441
|
+
events {
|
|
2442
|
+
...EventFields
|
|
2534
2443
|
}
|
|
2535
|
-
relationType
|
|
2536
|
-
vendorId
|
|
2537
|
-
updatedAt
|
|
2538
2444
|
}
|
|
2539
|
-
${
|
|
2445
|
+
${EVENT}
|
|
2540
2446
|
`;
|
|
2541
|
-
var
|
|
2542
|
-
query
|
|
2543
|
-
|
|
2544
|
-
...
|
|
2447
|
+
var GET_EVENT = import_client3.gql`
|
|
2448
|
+
query getEvent($_id: ID!) {
|
|
2449
|
+
event(_id: $_id) {
|
|
2450
|
+
...EventFields
|
|
2545
2451
|
}
|
|
2546
2452
|
}
|
|
2547
|
-
${
|
|
2453
|
+
${EVENT}
|
|
2548
2454
|
`;
|
|
2549
|
-
var
|
|
2550
|
-
query
|
|
2551
|
-
|
|
2552
|
-
...
|
|
2455
|
+
var GET_EVENTS_BY_REGION = import_client3.gql`
|
|
2456
|
+
query getEventsByRegion($region: String!) {
|
|
2457
|
+
eventsByRegion(region: $region) {
|
|
2458
|
+
...EventFields
|
|
2553
2459
|
}
|
|
2554
2460
|
}
|
|
2555
|
-
${
|
|
2461
|
+
${EVENT}
|
|
2556
2462
|
`;
|
|
2557
|
-
var
|
|
2558
|
-
query
|
|
2559
|
-
|
|
2560
|
-
...
|
|
2463
|
+
var SEARCH_EVENTS = import_client3.gql`
|
|
2464
|
+
query searchEvents($search: String!, $region: String) {
|
|
2465
|
+
eventsSearch(search: $search, region: $region) {
|
|
2466
|
+
...EventFields
|
|
2561
2467
|
}
|
|
2562
2468
|
}
|
|
2563
|
-
${
|
|
2469
|
+
${EVENT}
|
|
2564
2470
|
`;
|
|
2565
|
-
var
|
|
2566
|
-
query
|
|
2567
|
-
|
|
2568
|
-
...
|
|
2471
|
+
var GET_EVENTS_NEAR_ME = import_client3.gql`
|
|
2472
|
+
query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
|
|
2473
|
+
eventsNearMe(latitude: $latitude, longitude: $longitude, radius: $radius) {
|
|
2474
|
+
...EventFields
|
|
2569
2475
|
}
|
|
2570
2476
|
}
|
|
2571
|
-
${
|
|
2477
|
+
${EVENT}
|
|
2572
2478
|
`;
|
|
2573
|
-
var
|
|
2574
|
-
query
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
) {
|
|
2578
|
-
resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
|
|
2579
|
-
events {
|
|
2580
|
-
...EventFields
|
|
2581
|
-
}
|
|
2582
|
-
vendors {
|
|
2583
|
-
...VendorFields
|
|
2584
|
-
}
|
|
2479
|
+
var GET_EVENT_INFO = import_client3.gql`
|
|
2480
|
+
query getEventInfo($eventId: ID!) {
|
|
2481
|
+
eventInfo(eventId: $eventId) {
|
|
2482
|
+
...EventInfoFields
|
|
2585
2483
|
}
|
|
2586
2484
|
}
|
|
2587
|
-
${
|
|
2588
|
-
${EVENT}
|
|
2485
|
+
${EVENT_INFO}
|
|
2589
2486
|
`;
|
|
2590
2487
|
|
|
2591
|
-
// src/graphql/queries/
|
|
2592
|
-
var
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
endTime
|
|
2596
|
-
startDate
|
|
2597
|
-
startTime
|
|
2598
|
-
}
|
|
2599
|
-
`;
|
|
2600
|
-
var EVENT_LOCATION_FIELDS_FRAGMENT2 = import_client5.gql`
|
|
2601
|
-
fragment EventLocationFields on EventLocationType {
|
|
2488
|
+
// src/graphql/queries/vendor.ts
|
|
2489
|
+
var import_client4 = require("@apollo/client");
|
|
2490
|
+
var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client4.gql`
|
|
2491
|
+
fragment VendorLocationFields on VendorLocationType {
|
|
2602
2492
|
city
|
|
2603
2493
|
coordinates
|
|
2604
2494
|
country
|
|
@@ -2609,74 +2499,72 @@ var EVENT_LOCATION_FIELDS_FRAGMENT2 = import_client5.gql`
|
|
|
2609
2499
|
type
|
|
2610
2500
|
}
|
|
2611
2501
|
`;
|
|
2612
|
-
var
|
|
2613
|
-
fragment
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
accountNumber
|
|
2631
|
-
link
|
|
2632
|
-
paymentMethod
|
|
2633
|
-
}
|
|
2634
|
-
requirements {
|
|
2635
|
-
category
|
|
2636
|
-
label
|
|
2637
|
-
value
|
|
2638
|
-
}
|
|
2639
|
-
}
|
|
2640
|
-
${STALL_TYPE_FIELDS_FRAGMENT}
|
|
2641
|
-
`;
|
|
2642
|
-
var EVENT = import_client5.gql`
|
|
2643
|
-
fragment EventFields on EventType {
|
|
2502
|
+
var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
|
|
2503
|
+
fragment VendorDateTimeFields on VendorDateTimeType {
|
|
2504
|
+
endDate
|
|
2505
|
+
endTime
|
|
2506
|
+
startDate
|
|
2507
|
+
startTime
|
|
2508
|
+
}
|
|
2509
|
+
`;
|
|
2510
|
+
var VENDOR_MENU_FIELDS_FRAGMENT = import_client4.gql`
|
|
2511
|
+
fragment VendorMenuFields on VendorMenuType {
|
|
2512
|
+
description
|
|
2513
|
+
name
|
|
2514
|
+
price
|
|
2515
|
+
productGroups
|
|
2516
|
+
}
|
|
2517
|
+
`;
|
|
2518
|
+
var VENDOR = import_client4.gql`
|
|
2519
|
+
fragment VendorFields on VendorType {
|
|
2644
2520
|
_id
|
|
2645
2521
|
active
|
|
2646
2522
|
adIds
|
|
2647
|
-
|
|
2648
|
-
|
|
2523
|
+
availability {
|
|
2524
|
+
corporate
|
|
2525
|
+
private
|
|
2526
|
+
school
|
|
2527
|
+
}
|
|
2528
|
+
vendorInfoId
|
|
2529
|
+
categories {
|
|
2530
|
+
...CategoryFields
|
|
2649
2531
|
}
|
|
2650
|
-
createdAt
|
|
2651
2532
|
contactDetails {
|
|
2652
2533
|
...ContactDetailsFields
|
|
2653
2534
|
}
|
|
2654
|
-
|
|
2655
|
-
...
|
|
2535
|
+
cover {
|
|
2536
|
+
...ResourceImageFields
|
|
2656
2537
|
}
|
|
2538
|
+
createdAt
|
|
2657
2539
|
description
|
|
2658
2540
|
deletedAt
|
|
2659
2541
|
images {
|
|
2660
2542
|
...ResourceImageFields
|
|
2661
2543
|
}
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2544
|
+
locations {
|
|
2545
|
+
dateTime {
|
|
2546
|
+
...VendorDateTimeFields
|
|
2547
|
+
}
|
|
2548
|
+
description
|
|
2549
|
+
location {
|
|
2550
|
+
...VendorLocationFields
|
|
2551
|
+
}
|
|
2665
2552
|
}
|
|
2666
2553
|
logo {
|
|
2667
2554
|
...ResourceImageFields
|
|
2668
2555
|
}
|
|
2669
|
-
|
|
2556
|
+
multiLocation
|
|
2670
2557
|
name
|
|
2671
|
-
nzbn
|
|
2672
2558
|
owner {
|
|
2673
2559
|
...OwnerFields
|
|
2674
2560
|
}
|
|
2675
2561
|
partners {
|
|
2676
2562
|
...PartnerFields
|
|
2677
2563
|
}
|
|
2564
|
+
products {
|
|
2565
|
+
...VendorMenuFields
|
|
2566
|
+
}
|
|
2678
2567
|
promoCodes
|
|
2679
|
-
provider
|
|
2680
2568
|
posterUsage {
|
|
2681
2569
|
...PosterUsageFields
|
|
2682
2570
|
}
|
|
@@ -2688,76 +2576,116 @@ var EVENT = import_client5.gql`
|
|
|
2688
2576
|
socialMedia {
|
|
2689
2577
|
...SocialMediaFields
|
|
2690
2578
|
}
|
|
2691
|
-
rainOrShine
|
|
2692
|
-
tags
|
|
2693
2579
|
termsAgreement {
|
|
2694
2580
|
...TermsAgreementFields
|
|
2695
2581
|
}
|
|
2696
2582
|
updatedAt
|
|
2583
|
+
vendorType
|
|
2697
2584
|
}
|
|
2698
|
-
${
|
|
2699
|
-
${
|
|
2585
|
+
${CATEGORY_FIELDS_FRAGMENT}
|
|
2586
|
+
${VENDOR_DATETIME_FIELDS_FRAGMENT}
|
|
2587
|
+
${VENDOR_LOCATION_FIELDS_FRAGMENT}
|
|
2700
2588
|
${OWNER_FIELDS_FRAGMENT}
|
|
2701
2589
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
2702
2590
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
2703
2591
|
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
2704
2592
|
${PARTNER_FIELDS_FRAGMENT}
|
|
2593
|
+
${VENDOR_MENU_FIELDS_FRAGMENT}
|
|
2705
2594
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
2706
2595
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
2707
2596
|
${RELATION_DATES_FRAGMENT}
|
|
2708
2597
|
`;
|
|
2709
|
-
var
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2598
|
+
var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
|
|
2599
|
+
fragment VendorAttributesFields on VendorAttributesType {
|
|
2600
|
+
details
|
|
2601
|
+
isRequired
|
|
2602
|
+
}
|
|
2603
|
+
`;
|
|
2604
|
+
var VENDOR_INFO = import_client4.gql`
|
|
2605
|
+
fragment VendorInfoFields on VendorInfoType {
|
|
2606
|
+
_id
|
|
2607
|
+
compliance {
|
|
2608
|
+
foodBeverageLicense
|
|
2609
|
+
liabilityInsurance
|
|
2610
|
+
}
|
|
2611
|
+
documents {
|
|
2612
|
+
...ResourceImageFields
|
|
2613
|
+
}
|
|
2614
|
+
requirements {
|
|
2615
|
+
electricity {
|
|
2616
|
+
...VendorAttributesFields
|
|
2617
|
+
}
|
|
2618
|
+
gazebo {
|
|
2619
|
+
...VendorAttributesFields
|
|
2620
|
+
}
|
|
2621
|
+
table {
|
|
2622
|
+
...VendorAttributesFields
|
|
2623
|
+
}
|
|
2624
|
+
}
|
|
2625
|
+
product {
|
|
2626
|
+
foodFlavors
|
|
2627
|
+
packaging
|
|
2628
|
+
priceRange {
|
|
2629
|
+
max
|
|
2630
|
+
min
|
|
2631
|
+
}
|
|
2632
|
+
producedIn
|
|
2633
|
+
}
|
|
2634
|
+
stallInfo {
|
|
2635
|
+
size {
|
|
2636
|
+
depth
|
|
2637
|
+
width
|
|
2638
|
+
}
|
|
2713
2639
|
}
|
|
2640
|
+
vendorId
|
|
2714
2641
|
}
|
|
2715
|
-
${
|
|
2642
|
+
${VENDOR_ATTRIBUTES_FRAGMENT}
|
|
2643
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
2716
2644
|
`;
|
|
2717
|
-
var
|
|
2718
|
-
query
|
|
2719
|
-
|
|
2720
|
-
...
|
|
2645
|
+
var GET_VENDORS = import_client4.gql`
|
|
2646
|
+
query getVendors {
|
|
2647
|
+
vendors {
|
|
2648
|
+
...VendorFields
|
|
2721
2649
|
}
|
|
2722
2650
|
}
|
|
2723
|
-
${
|
|
2651
|
+
${VENDOR}
|
|
2724
2652
|
`;
|
|
2725
|
-
var
|
|
2726
|
-
query
|
|
2727
|
-
|
|
2728
|
-
...
|
|
2653
|
+
var GET_VENDOR = import_client4.gql`
|
|
2654
|
+
query getVendor($_id: ID!) {
|
|
2655
|
+
vendor(_id: $_id) {
|
|
2656
|
+
...VendorFields
|
|
2729
2657
|
}
|
|
2730
2658
|
}
|
|
2731
|
-
${
|
|
2659
|
+
${VENDOR}
|
|
2732
2660
|
`;
|
|
2733
|
-
var
|
|
2734
|
-
query
|
|
2735
|
-
|
|
2736
|
-
...
|
|
2661
|
+
var GET_VENDORS_BY_REGION = import_client4.gql`
|
|
2662
|
+
query getVendorsByRegion($region: String!) {
|
|
2663
|
+
vendorsByRegion(region: $region) {
|
|
2664
|
+
...VendorFields
|
|
2737
2665
|
}
|
|
2738
2666
|
}
|
|
2739
|
-
${
|
|
2667
|
+
${VENDOR}
|
|
2740
2668
|
`;
|
|
2741
|
-
var
|
|
2742
|
-
query
|
|
2743
|
-
|
|
2744
|
-
...
|
|
2669
|
+
var SEARCH_VENDORS = import_client4.gql`
|
|
2670
|
+
query searchVendors($search: String!, $region: String) {
|
|
2671
|
+
vendorSearch(search: $search, region: $region) {
|
|
2672
|
+
...VendorFields
|
|
2745
2673
|
}
|
|
2746
2674
|
}
|
|
2747
|
-
${
|
|
2675
|
+
${VENDOR}
|
|
2748
2676
|
`;
|
|
2749
|
-
var
|
|
2750
|
-
query
|
|
2751
|
-
|
|
2752
|
-
...
|
|
2677
|
+
var GET_VENDOR_INFO = import_client4.gql`
|
|
2678
|
+
query getVendorInfo($vendorId: ID!) {
|
|
2679
|
+
vendorInfo(vendorId: $vendorId) {
|
|
2680
|
+
...VendorInfoFields
|
|
2753
2681
|
}
|
|
2754
2682
|
}
|
|
2755
|
-
${
|
|
2683
|
+
${VENDOR_INFO}
|
|
2756
2684
|
`;
|
|
2757
2685
|
|
|
2758
2686
|
// src/graphql/hooks/admin/hooksMutation.ts
|
|
2759
2687
|
var useAdminUpdateResourceType = () => {
|
|
2760
|
-
const [adminUpdateResourceType, { loading, error }] = (0,
|
|
2688
|
+
const [adminUpdateResourceType, { loading, error }] = (0, import_client5.useMutation)(
|
|
2761
2689
|
ADMIN_UPDATE_RESOURCE_TYPE_MUTATION,
|
|
2762
2690
|
{
|
|
2763
2691
|
awaitRefetchQueries: true,
|
|
@@ -2784,11 +2712,11 @@ var useAdminUpdateResourceType = () => {
|
|
|
2784
2712
|
};
|
|
2785
2713
|
|
|
2786
2714
|
// src/graphql/hooks/auth.ts
|
|
2787
|
-
var
|
|
2715
|
+
var import_client7 = require("@apollo/client");
|
|
2788
2716
|
|
|
2789
2717
|
// src/graphql/mutations/auth.ts
|
|
2790
|
-
var
|
|
2791
|
-
var REGISTER_MUTATION =
|
|
2718
|
+
var import_client6 = require("@apollo/client");
|
|
2719
|
+
var REGISTER_MUTATION = import_client6.gql`
|
|
2792
2720
|
mutation register($input: RegisterInputType!) {
|
|
2793
2721
|
register(input: $input) {
|
|
2794
2722
|
message
|
|
@@ -2801,7 +2729,7 @@ var REGISTER_MUTATION = import_client7.gql`
|
|
|
2801
2729
|
}
|
|
2802
2730
|
${USER_FIELDS_FRAGMENT}
|
|
2803
2731
|
`;
|
|
2804
|
-
var LOGIN_MUTATION =
|
|
2732
|
+
var LOGIN_MUTATION = import_client6.gql`
|
|
2805
2733
|
mutation login($input: LoginInputType!) {
|
|
2806
2734
|
login(input: $input) {
|
|
2807
2735
|
message
|
|
@@ -2814,14 +2742,14 @@ var LOGIN_MUTATION = import_client7.gql`
|
|
|
2814
2742
|
}
|
|
2815
2743
|
${USER_FIELDS_FRAGMENT}
|
|
2816
2744
|
`;
|
|
2817
|
-
var LOGOUT_MUTATION =
|
|
2745
|
+
var LOGOUT_MUTATION = import_client6.gql`
|
|
2818
2746
|
mutation logout {
|
|
2819
2747
|
logout {
|
|
2820
2748
|
message
|
|
2821
2749
|
}
|
|
2822
2750
|
}
|
|
2823
2751
|
`;
|
|
2824
|
-
var REFRESH_TOKEN_MUTATION =
|
|
2752
|
+
var REFRESH_TOKEN_MUTATION = import_client6.gql`
|
|
2825
2753
|
mutation refreshToken($input: RefreshTokenInputType!) {
|
|
2826
2754
|
refreshToken(input: $input) {
|
|
2827
2755
|
refreshToken
|
|
@@ -2829,21 +2757,21 @@ var REFRESH_TOKEN_MUTATION = import_client7.gql`
|
|
|
2829
2757
|
}
|
|
2830
2758
|
}
|
|
2831
2759
|
`;
|
|
2832
|
-
var RESET_PASSWORD_MUTATION =
|
|
2760
|
+
var RESET_PASSWORD_MUTATION = import_client6.gql`
|
|
2833
2761
|
mutation resetPassword($input: ResetPasswordInputType!) {
|
|
2834
2762
|
resetPassword(input: $input) {
|
|
2835
2763
|
message
|
|
2836
2764
|
}
|
|
2837
2765
|
}
|
|
2838
2766
|
`;
|
|
2839
|
-
var REQUEST_PASSWORD_RESET_MUTATION =
|
|
2767
|
+
var REQUEST_PASSWORD_RESET_MUTATION = import_client6.gql`
|
|
2840
2768
|
mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
|
|
2841
2769
|
requestPasswordReset(input: $input) {
|
|
2842
2770
|
message
|
|
2843
2771
|
}
|
|
2844
2772
|
}
|
|
2845
2773
|
`;
|
|
2846
|
-
var VALIDATE_VERIFICATION_TOKEN_MUTATION =
|
|
2774
|
+
var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
|
|
2847
2775
|
mutation validateVerificationToken(
|
|
2848
2776
|
$input: ValidateVerificationTokenInputType!
|
|
2849
2777
|
) {
|
|
@@ -2855,51 +2783,51 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client7.gql`
|
|
|
2855
2783
|
|
|
2856
2784
|
// src/graphql/hooks/auth.ts
|
|
2857
2785
|
var useRegister = () => {
|
|
2858
|
-
const [register, { loading, error }] = (0,
|
|
2786
|
+
const [register, { loading, error }] = (0, import_client7.useMutation)(REGISTER_MUTATION);
|
|
2859
2787
|
return { error, loading, register };
|
|
2860
2788
|
};
|
|
2861
2789
|
var useLogin = () => {
|
|
2862
|
-
const [login, { loading, error }] = (0,
|
|
2790
|
+
const [login, { loading, error }] = (0, import_client7.useMutation)(LOGIN_MUTATION);
|
|
2863
2791
|
return { error, loading, login };
|
|
2864
2792
|
};
|
|
2865
2793
|
var useLogout = () => {
|
|
2866
|
-
const [logout, { loading, error }] = (0,
|
|
2794
|
+
const [logout, { loading, error }] = (0, import_client7.useMutation)(LOGOUT_MUTATION);
|
|
2867
2795
|
return { error, loading, logout };
|
|
2868
2796
|
};
|
|
2869
2797
|
var useRefreshToken = () => {
|
|
2870
|
-
const [refreshToken, { loading, error }] = (0,
|
|
2798
|
+
const [refreshToken, { loading, error }] = (0, import_client7.useMutation)(
|
|
2871
2799
|
REFRESH_TOKEN_MUTATION
|
|
2872
2800
|
);
|
|
2873
2801
|
return { error, loading, refreshToken };
|
|
2874
2802
|
};
|
|
2875
2803
|
var useRequestPasswordReset = () => {
|
|
2876
|
-
const [requestPasswordReset, { loading, error }] = (0,
|
|
2804
|
+
const [requestPasswordReset, { loading, error }] = (0, import_client7.useMutation)(
|
|
2877
2805
|
REQUEST_PASSWORD_RESET_MUTATION
|
|
2878
2806
|
);
|
|
2879
2807
|
return { error, loading, requestPasswordReset };
|
|
2880
2808
|
};
|
|
2881
2809
|
var useValidateVerificationToken = () => {
|
|
2882
|
-
const [validateVerificationToken, { loading, error }] = (0,
|
|
2810
|
+
const [validateVerificationToken, { loading, error }] = (0, import_client7.useMutation)(
|
|
2883
2811
|
VALIDATE_VERIFICATION_TOKEN_MUTATION
|
|
2884
2812
|
);
|
|
2885
2813
|
return { error, loading, validateVerificationToken };
|
|
2886
2814
|
};
|
|
2887
2815
|
var useResetPassword = () => {
|
|
2888
|
-
const [resetPassword, { loading, error }] = (0,
|
|
2816
|
+
const [resetPassword, { loading, error }] = (0, import_client7.useMutation)(
|
|
2889
2817
|
RESET_PASSWORD_MUTATION
|
|
2890
2818
|
);
|
|
2891
2819
|
return { error, loading, resetPassword };
|
|
2892
2820
|
};
|
|
2893
2821
|
|
|
2894
2822
|
// src/graphql/hooks/chat/hooksMutation.ts
|
|
2895
|
-
var
|
|
2823
|
+
var import_client10 = require("@apollo/client");
|
|
2896
2824
|
|
|
2897
2825
|
// src/graphql/mutations/chat.ts
|
|
2898
|
-
var
|
|
2826
|
+
var import_client9 = require("@apollo/client");
|
|
2899
2827
|
|
|
2900
2828
|
// src/graphql/queries/chat.ts
|
|
2901
|
-
var
|
|
2902
|
-
var CHAT_MESSAGE_FIELDS_FRAGMENT =
|
|
2829
|
+
var import_client8 = require("@apollo/client");
|
|
2830
|
+
var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
|
|
2903
2831
|
fragment ChatMessageFields on ChatMessageType {
|
|
2904
2832
|
_id
|
|
2905
2833
|
content
|
|
@@ -2910,14 +2838,14 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client9.gql`
|
|
|
2910
2838
|
updatedAt
|
|
2911
2839
|
}
|
|
2912
2840
|
`;
|
|
2913
|
-
var CHAT_PARTICIPANT =
|
|
2841
|
+
var CHAT_PARTICIPANT = import_client8.gql`
|
|
2914
2842
|
fragment ChatParticipantFields on ChatParticipantType {
|
|
2915
2843
|
active
|
|
2916
2844
|
email
|
|
2917
2845
|
userId
|
|
2918
2846
|
}
|
|
2919
2847
|
`;
|
|
2920
|
-
var CHAT_FIELDS_FRAGMENT =
|
|
2848
|
+
var CHAT_FIELDS_FRAGMENT = import_client8.gql`
|
|
2921
2849
|
fragment ChatFields on ChatType {
|
|
2922
2850
|
_id
|
|
2923
2851
|
active
|
|
@@ -2940,7 +2868,7 @@ var CHAT_FIELDS_FRAGMENT = import_client9.gql`
|
|
|
2940
2868
|
${CHAT_MESSAGE_FIELDS_FRAGMENT}
|
|
2941
2869
|
${CHAT_PARTICIPANT}
|
|
2942
2870
|
`;
|
|
2943
|
-
var CHAT =
|
|
2871
|
+
var CHAT = import_client8.gql`
|
|
2944
2872
|
query chat($_id: ID!) {
|
|
2945
2873
|
chat(_id: $_id) {
|
|
2946
2874
|
...ChatFields
|
|
@@ -2948,7 +2876,7 @@ var CHAT = import_client9.gql`
|
|
|
2948
2876
|
}
|
|
2949
2877
|
${CHAT_FIELDS_FRAGMENT}
|
|
2950
2878
|
`;
|
|
2951
|
-
var USER_CHATS =
|
|
2879
|
+
var USER_CHATS = import_client8.gql`
|
|
2952
2880
|
query userChats {
|
|
2953
2881
|
userChats {
|
|
2954
2882
|
...ChatFields
|
|
@@ -2958,7 +2886,7 @@ var USER_CHATS = import_client9.gql`
|
|
|
2958
2886
|
`;
|
|
2959
2887
|
|
|
2960
2888
|
// src/graphql/mutations/chat.ts
|
|
2961
|
-
var SEND_CHAT_MESSAGE_MUTATION =
|
|
2889
|
+
var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
|
|
2962
2890
|
mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
|
|
2963
2891
|
sendChatMessage(_id: $_id, input: $input) {
|
|
2964
2892
|
...ChatFields
|
|
@@ -2966,12 +2894,12 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
|
|
|
2966
2894
|
}
|
|
2967
2895
|
${CHAT_FIELDS_FRAGMENT}
|
|
2968
2896
|
`;
|
|
2969
|
-
var DELETE_CHAT_MUTATION =
|
|
2897
|
+
var DELETE_CHAT_MUTATION = import_client9.gql`
|
|
2970
2898
|
mutation deleteChat($_id: ID!) {
|
|
2971
2899
|
deleteChat(_id: $_id)
|
|
2972
2900
|
}
|
|
2973
2901
|
`;
|
|
2974
|
-
var ADD_PARTICIPANT_TO_CHAT_MUTATION =
|
|
2902
|
+
var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
|
|
2975
2903
|
mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
|
|
2976
2904
|
addParticipantToChat(chatId: $chatId, userId: $userId) {
|
|
2977
2905
|
...ChatFields
|
|
@@ -2979,7 +2907,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client10.gql`
|
|
|
2979
2907
|
}
|
|
2980
2908
|
${CHAT_FIELDS_FRAGMENT}
|
|
2981
2909
|
`;
|
|
2982
|
-
var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION =
|
|
2910
|
+
var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
|
|
2983
2911
|
mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
|
|
2984
2912
|
removeParticipantFromChat(chatId: $chatId, userId: $userId) {
|
|
2985
2913
|
...ChatFields
|
|
@@ -2990,7 +2918,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client10.gql`
|
|
|
2990
2918
|
|
|
2991
2919
|
// src/graphql/hooks/chat/hooksMutation.ts
|
|
2992
2920
|
var useSendChatMessage = () => {
|
|
2993
|
-
const [sendChatMessage, { loading, error }] = (0,
|
|
2921
|
+
const [sendChatMessage, { loading, error }] = (0, import_client10.useMutation)(
|
|
2994
2922
|
SEND_CHAT_MESSAGE_MUTATION,
|
|
2995
2923
|
{
|
|
2996
2924
|
awaitRefetchQueries: true,
|
|
@@ -3008,14 +2936,14 @@ var useSendChatMessage = () => {
|
|
|
3008
2936
|
return { error, loading, sendChatMessage };
|
|
3009
2937
|
};
|
|
3010
2938
|
var useDeleteChat = () => {
|
|
3011
|
-
const [deleteChat, { loading, error }] = (0,
|
|
2939
|
+
const [deleteChat, { loading, error }] = (0, import_client10.useMutation)(DELETE_CHAT_MUTATION, {
|
|
3012
2940
|
awaitRefetchQueries: true,
|
|
3013
2941
|
refetchQueries: [{ query: USER_CHATS }]
|
|
3014
2942
|
});
|
|
3015
2943
|
return { deleteChat, error, loading };
|
|
3016
2944
|
};
|
|
3017
2945
|
var useAddParticipantToChat = () => {
|
|
3018
|
-
const [addParticipantToChat, { loading, error }] = (0,
|
|
2946
|
+
const [addParticipantToChat, { loading, error }] = (0, import_client10.useMutation)(
|
|
3019
2947
|
ADD_PARTICIPANT_TO_CHAT_MUTATION,
|
|
3020
2948
|
{
|
|
3021
2949
|
awaitRefetchQueries: true,
|
|
@@ -3036,7 +2964,7 @@ var useAddParticipantToChat = () => {
|
|
|
3036
2964
|
return { addParticipantToChat, error, loading };
|
|
3037
2965
|
};
|
|
3038
2966
|
var useRemoveParticipantFromChat = () => {
|
|
3039
|
-
const [removeParticipantFromChat, { loading, error }] = (0,
|
|
2967
|
+
const [removeParticipantFromChat, { loading, error }] = (0, import_client10.useMutation)(
|
|
3040
2968
|
REMOVE_PARTICIPANT_FROM_CHAT_MUTATION,
|
|
3041
2969
|
{
|
|
3042
2970
|
awaitRefetchQueries: true,
|
|
@@ -3058,11 +2986,11 @@ var useRemoveParticipantFromChat = () => {
|
|
|
3058
2986
|
};
|
|
3059
2987
|
|
|
3060
2988
|
// src/graphql/hooks/chat/hooksQuery.ts
|
|
3061
|
-
var
|
|
2989
|
+
var import_client12 = require("@apollo/client");
|
|
3062
2990
|
|
|
3063
2991
|
// src/graphql/subscriptions/chat.ts
|
|
3064
|
-
var
|
|
3065
|
-
var GET_CHAT_MESSAGE =
|
|
2992
|
+
var import_client11 = require("@apollo/client");
|
|
2993
|
+
var GET_CHAT_MESSAGE = import_client11.gql`
|
|
3066
2994
|
subscription {
|
|
3067
2995
|
getChatMessage {
|
|
3068
2996
|
...ChatFields
|
|
@@ -3073,7 +3001,7 @@ var GET_CHAT_MESSAGE = import_client12.gql`
|
|
|
3073
3001
|
|
|
3074
3002
|
// src/graphql/hooks/chat/hooksQuery.ts
|
|
3075
3003
|
var useGetChat = (_id) => {
|
|
3076
|
-
const { loading, error, data, refetch } = (0,
|
|
3004
|
+
const { loading, error, data, refetch } = (0, import_client12.useQuery)(CHAT, {
|
|
3077
3005
|
fetchPolicy: "network-only",
|
|
3078
3006
|
skip: !_id,
|
|
3079
3007
|
variables: { _id }
|
|
@@ -3082,24 +3010,24 @@ var useGetChat = (_id) => {
|
|
|
3082
3010
|
return { chat, error, loading, refetch };
|
|
3083
3011
|
};
|
|
3084
3012
|
var useGetUserChats = () => {
|
|
3085
|
-
const { loading, error, data, refetch } = (0,
|
|
3013
|
+
const { loading, error, data, refetch } = (0, import_client12.useQuery)(USER_CHATS, {
|
|
3086
3014
|
fetchPolicy: "network-only"
|
|
3087
3015
|
});
|
|
3088
3016
|
const userChats = data?.userChats;
|
|
3089
3017
|
return { error, loading, refetch, userChats };
|
|
3090
3018
|
};
|
|
3091
3019
|
var useGetChatSubscription = () => {
|
|
3092
|
-
const { data, loading, error } = (0,
|
|
3020
|
+
const { data, loading, error } = (0, import_client12.useSubscription)(GET_CHAT_MESSAGE);
|
|
3093
3021
|
const chat = data?.getChat;
|
|
3094
3022
|
return { chat, error, loading };
|
|
3095
3023
|
};
|
|
3096
3024
|
|
|
3097
3025
|
// src/graphql/hooks/contactUs.ts
|
|
3098
|
-
var
|
|
3026
|
+
var import_client14 = require("@apollo/client");
|
|
3099
3027
|
|
|
3100
3028
|
// src/graphql/mutations/contactUs.ts
|
|
3101
|
-
var
|
|
3102
|
-
var CONTACT_US_MUTATION =
|
|
3029
|
+
var import_client13 = require("@apollo/client");
|
|
3030
|
+
var CONTACT_US_MUTATION = import_client13.gql`
|
|
3103
3031
|
mutation contactUs($input: ContactUsInputType!) {
|
|
3104
3032
|
contactUs(input: $input) {
|
|
3105
3033
|
message
|
|
@@ -3109,16 +3037,16 @@ var CONTACT_US_MUTATION = import_client14.gql`
|
|
|
3109
3037
|
|
|
3110
3038
|
// src/graphql/hooks/contactUs.ts
|
|
3111
3039
|
var useContactUs = () => {
|
|
3112
|
-
const [contactUs, { loading, error }] = (0,
|
|
3040
|
+
const [contactUs, { loading, error }] = (0, import_client14.useMutation)(CONTACT_US_MUTATION);
|
|
3113
3041
|
return { contactUs, error, loading };
|
|
3114
3042
|
};
|
|
3115
3043
|
|
|
3116
3044
|
// src/graphql/hooks/event/hooksMutation.ts
|
|
3117
|
-
var
|
|
3045
|
+
var import_client17 = require("@apollo/client");
|
|
3118
3046
|
|
|
3119
3047
|
// src/graphql/mutations/event.ts
|
|
3120
|
-
var
|
|
3121
|
-
var CREATE_EVENT_MUTATION =
|
|
3048
|
+
var import_client15 = require("@apollo/client");
|
|
3049
|
+
var CREATE_EVENT_MUTATION = import_client15.gql`
|
|
3122
3050
|
mutation createEvent($input: EventInputType!) {
|
|
3123
3051
|
createEvent(input: $input) {
|
|
3124
3052
|
...EventFields
|
|
@@ -3126,7 +3054,7 @@ var CREATE_EVENT_MUTATION = import_client16.gql`
|
|
|
3126
3054
|
}
|
|
3127
3055
|
${EVENT}
|
|
3128
3056
|
`;
|
|
3129
|
-
var UPDATE_EVENT_MUTATION =
|
|
3057
|
+
var UPDATE_EVENT_MUTATION = import_client15.gql`
|
|
3130
3058
|
mutation updateEvent($_id: ID!, $input: EventInputType!) {
|
|
3131
3059
|
updateEvent(_id: $_id, input: $input) {
|
|
3132
3060
|
...EventFields
|
|
@@ -3134,12 +3062,12 @@ var UPDATE_EVENT_MUTATION = import_client16.gql`
|
|
|
3134
3062
|
}
|
|
3135
3063
|
${EVENT}
|
|
3136
3064
|
`;
|
|
3137
|
-
var DELETE_EVENT_MUTATION =
|
|
3065
|
+
var DELETE_EVENT_MUTATION = import_client15.gql`
|
|
3138
3066
|
mutation deleteEvent($_id: ID!) {
|
|
3139
3067
|
deleteEvent(_id: $_id)
|
|
3140
3068
|
}
|
|
3141
3069
|
`;
|
|
3142
|
-
var CREATE_EVENT_INFO_MUTATION =
|
|
3070
|
+
var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
|
|
3143
3071
|
mutation createEventInfo($input: EventInfoInputType!) {
|
|
3144
3072
|
createEventInfo(input: $input) {
|
|
3145
3073
|
...EventInfoFields
|
|
@@ -3147,7 +3075,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client16.gql`
|
|
|
3147
3075
|
}
|
|
3148
3076
|
${EVENT_INFO}
|
|
3149
3077
|
`;
|
|
3150
|
-
var UPDATE_EVENT_INFO_MUTATION =
|
|
3078
|
+
var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
|
|
3151
3079
|
mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
|
|
3152
3080
|
updateEventInfo(_id: $_id, input: $input) {
|
|
3153
3081
|
...EventInfoFields
|
|
@@ -3157,8 +3085,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client16.gql`
|
|
|
3157
3085
|
`;
|
|
3158
3086
|
|
|
3159
3087
|
// src/graphql/queries/user.ts
|
|
3160
|
-
var
|
|
3161
|
-
var GET_USERS =
|
|
3088
|
+
var import_client16 = require("@apollo/client");
|
|
3089
|
+
var GET_USERS = import_client16.gql`
|
|
3162
3090
|
query getUsers {
|
|
3163
3091
|
users {
|
|
3164
3092
|
...UserFields
|
|
@@ -3166,7 +3094,7 @@ var GET_USERS = import_client17.gql`
|
|
|
3166
3094
|
}
|
|
3167
3095
|
${USER_FIELDS_FRAGMENT}
|
|
3168
3096
|
`;
|
|
3169
|
-
var GET_USER =
|
|
3097
|
+
var GET_USER = import_client16.gql`
|
|
3170
3098
|
query getUser($_id: ID!) {
|
|
3171
3099
|
user(_id: $_id) {
|
|
3172
3100
|
...UserFields
|
|
@@ -3174,7 +3102,7 @@ var GET_USER = import_client17.gql`
|
|
|
3174
3102
|
}
|
|
3175
3103
|
${USER_FIELDS_FRAGMENT}
|
|
3176
3104
|
`;
|
|
3177
|
-
var GET_USER_EVENTS =
|
|
3105
|
+
var GET_USER_EVENTS = import_client16.gql`
|
|
3178
3106
|
query getUserEvents {
|
|
3179
3107
|
userEvents {
|
|
3180
3108
|
...EventFields
|
|
@@ -3182,7 +3110,7 @@ var GET_USER_EVENTS = import_client17.gql`
|
|
|
3182
3110
|
}
|
|
3183
3111
|
${EVENT}
|
|
3184
3112
|
`;
|
|
3185
|
-
var GET_USER_VENDORS =
|
|
3113
|
+
var GET_USER_VENDORS = import_client16.gql`
|
|
3186
3114
|
query getUserVendors {
|
|
3187
3115
|
userVendors {
|
|
3188
3116
|
...VendorFields
|
|
@@ -3190,7 +3118,7 @@ var GET_USER_VENDORS = import_client17.gql`
|
|
|
3190
3118
|
}
|
|
3191
3119
|
${VENDOR}
|
|
3192
3120
|
`;
|
|
3193
|
-
var GET_USER_FAVOURITES =
|
|
3121
|
+
var GET_USER_FAVOURITES = import_client16.gql`
|
|
3194
3122
|
query getUserFavourites {
|
|
3195
3123
|
userFavourites {
|
|
3196
3124
|
events {
|
|
@@ -3207,28 +3135,28 @@ var GET_USER_FAVOURITES = import_client17.gql`
|
|
|
3207
3135
|
|
|
3208
3136
|
// src/graphql/hooks/event/hooksMutation.ts
|
|
3209
3137
|
var useCreateEvent = () => {
|
|
3210
|
-
const [createEvent, { loading, error }] = (0,
|
|
3138
|
+
const [createEvent, { loading, error }] = (0, import_client17.useMutation)(CREATE_EVENT_MUTATION, {
|
|
3211
3139
|
awaitRefetchQueries: true,
|
|
3212
3140
|
refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
|
|
3213
3141
|
});
|
|
3214
3142
|
return { createEvent, error, loading };
|
|
3215
3143
|
};
|
|
3216
3144
|
var useUpdateEvent = () => {
|
|
3217
|
-
const [updateEvent, { loading, error }] = (0,
|
|
3145
|
+
const [updateEvent, { loading, error }] = (0, import_client17.useMutation)(UPDATE_EVENT_MUTATION, {
|
|
3218
3146
|
awaitRefetchQueries: true,
|
|
3219
3147
|
refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
|
|
3220
3148
|
});
|
|
3221
3149
|
return { error, loading, updateEvent };
|
|
3222
3150
|
};
|
|
3223
3151
|
var useDeleteEvent = () => {
|
|
3224
|
-
const [deleteEvent, { loading, error }] = (0,
|
|
3152
|
+
const [deleteEvent, { loading, error }] = (0, import_client17.useMutation)(DELETE_EVENT_MUTATION, {
|
|
3225
3153
|
awaitRefetchQueries: true,
|
|
3226
3154
|
refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
|
|
3227
3155
|
});
|
|
3228
3156
|
return { deleteEvent, error, loading };
|
|
3229
3157
|
};
|
|
3230
3158
|
var useCreateEventInfo = () => {
|
|
3231
|
-
const [createEventInfo, { loading, error }] = (0,
|
|
3159
|
+
const [createEventInfo, { loading, error }] = (0, import_client17.useMutation)(
|
|
3232
3160
|
CREATE_EVENT_INFO_MUTATION,
|
|
3233
3161
|
{
|
|
3234
3162
|
awaitRefetchQueries: true,
|
|
@@ -3257,7 +3185,7 @@ var useCreateEventInfo = () => {
|
|
|
3257
3185
|
return { createEventInfo, error, loading };
|
|
3258
3186
|
};
|
|
3259
3187
|
var useUpdateEventInfo = () => {
|
|
3260
|
-
const [updateEventInfo, { loading, error }] = (0,
|
|
3188
|
+
const [updateEventInfo, { loading, error }] = (0, import_client17.useMutation)(
|
|
3261
3189
|
UPDATE_EVENT_INFO_MUTATION,
|
|
3262
3190
|
{
|
|
3263
3191
|
awaitRefetchQueries: true,
|
|
@@ -3283,16 +3211,16 @@ var useUpdateEventInfo = () => {
|
|
|
3283
3211
|
};
|
|
3284
3212
|
|
|
3285
3213
|
// src/graphql/hooks/event/hooksQuery.ts
|
|
3286
|
-
var
|
|
3214
|
+
var import_client18 = require("@apollo/client");
|
|
3287
3215
|
var useGetEvents = () => {
|
|
3288
|
-
const { loading, error, data, refetch } = (0,
|
|
3216
|
+
const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS, {
|
|
3289
3217
|
fetchPolicy: "network-only"
|
|
3290
3218
|
});
|
|
3291
3219
|
const events = data?.events;
|
|
3292
3220
|
return { error, events, loading, refetch };
|
|
3293
3221
|
};
|
|
3294
3222
|
var useGetEvent = (_id) => {
|
|
3295
|
-
const { loading, error, data, refetch } = (0,
|
|
3223
|
+
const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT, {
|
|
3296
3224
|
fetchPolicy: "network-only",
|
|
3297
3225
|
skip: !_id,
|
|
3298
3226
|
variables: { _id }
|
|
@@ -3301,7 +3229,7 @@ var useGetEvent = (_id) => {
|
|
|
3301
3229
|
return { error, event, loading, refetch };
|
|
3302
3230
|
};
|
|
3303
3231
|
var useGetEventsByRegion = (region) => {
|
|
3304
|
-
const { loading, error, data, refetch } = (0,
|
|
3232
|
+
const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS_BY_REGION, {
|
|
3305
3233
|
fetchPolicy: "no-cache",
|
|
3306
3234
|
skip: !region,
|
|
3307
3235
|
variables: { region }
|
|
@@ -3310,7 +3238,7 @@ var useGetEventsByRegion = (region) => {
|
|
|
3310
3238
|
return { error, eventsByRegion, loading, refetch };
|
|
3311
3239
|
};
|
|
3312
3240
|
var useSearchEvents = (search, region) => {
|
|
3313
|
-
const { loading, error, data, refetch } = (0,
|
|
3241
|
+
const { loading, error, data, refetch } = (0, import_client18.useQuery)(SEARCH_EVENTS, {
|
|
3314
3242
|
fetchPolicy: "network-only",
|
|
3315
3243
|
skip: search.length < 3,
|
|
3316
3244
|
variables: { region, search }
|
|
@@ -3319,7 +3247,7 @@ var useSearchEvents = (search, region) => {
|
|
|
3319
3247
|
return { error, eventsSearch, loading, refetch };
|
|
3320
3248
|
};
|
|
3321
3249
|
var useGetEventsNearMe = (location) => {
|
|
3322
|
-
const { loading, error, data, refetch } = (0,
|
|
3250
|
+
const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS_NEAR_ME, {
|
|
3323
3251
|
fetchPolicy: "network-only",
|
|
3324
3252
|
skip: !location.latitude || !location.longitude,
|
|
3325
3253
|
variables: {
|
|
@@ -3333,7 +3261,7 @@ var useGetEventsNearMe = (location) => {
|
|
|
3333
3261
|
return { error, eventsNearMe, loading, refetch };
|
|
3334
3262
|
};
|
|
3335
3263
|
var useGetEventInfo = (eventId) => {
|
|
3336
|
-
const { loading, error, data, refetch } = (0,
|
|
3264
|
+
const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT_INFO, {
|
|
3337
3265
|
fetchPolicy: "network-only",
|
|
3338
3266
|
skip: !eventId,
|
|
3339
3267
|
variables: { eventId }
|
|
@@ -3343,14 +3271,14 @@ var useGetEventInfo = (eventId) => {
|
|
|
3343
3271
|
};
|
|
3344
3272
|
|
|
3345
3273
|
// src/graphql/hooks/notifications/hooksMutation.ts
|
|
3346
|
-
var
|
|
3274
|
+
var import_client21 = require("@apollo/client");
|
|
3347
3275
|
|
|
3348
3276
|
// src/graphql/mutations/notification.ts
|
|
3349
|
-
var
|
|
3277
|
+
var import_client20 = require("@apollo/client");
|
|
3350
3278
|
|
|
3351
3279
|
// src/graphql/queries/notification.ts
|
|
3352
|
-
var
|
|
3353
|
-
var NOTIFICATION_FRAGMENT =
|
|
3280
|
+
var import_client19 = require("@apollo/client");
|
|
3281
|
+
var NOTIFICATION_FRAGMENT = import_client19.gql`
|
|
3354
3282
|
fragment NotificationFields on Notification {
|
|
3355
3283
|
_id
|
|
3356
3284
|
userId
|
|
@@ -3367,7 +3295,7 @@ var NOTIFICATION_FRAGMENT = import_client20.gql`
|
|
|
3367
3295
|
updatedAt
|
|
3368
3296
|
}
|
|
3369
3297
|
`;
|
|
3370
|
-
var GET_USER_NOTIFICATIONS =
|
|
3298
|
+
var GET_USER_NOTIFICATIONS = import_client19.gql`
|
|
3371
3299
|
query getUserNotifications($limit: Int, $offset: Int) {
|
|
3372
3300
|
userNotifications(limit: $limit, offset: $offset) {
|
|
3373
3301
|
...NotificationFields
|
|
@@ -3375,7 +3303,7 @@ var GET_USER_NOTIFICATIONS = import_client20.gql`
|
|
|
3375
3303
|
}
|
|
3376
3304
|
${NOTIFICATION_FRAGMENT}
|
|
3377
3305
|
`;
|
|
3378
|
-
var GET_NOTIFICATION_COUNT =
|
|
3306
|
+
var GET_NOTIFICATION_COUNT = import_client19.gql`
|
|
3379
3307
|
query getNotificationCount {
|
|
3380
3308
|
notificationCount {
|
|
3381
3309
|
total
|
|
@@ -3385,7 +3313,7 @@ var GET_NOTIFICATION_COUNT = import_client20.gql`
|
|
|
3385
3313
|
`;
|
|
3386
3314
|
|
|
3387
3315
|
// src/graphql/mutations/notification.ts
|
|
3388
|
-
var CREATE_BULK_NOTIFICATIONS =
|
|
3316
|
+
var CREATE_BULK_NOTIFICATIONS = import_client20.gql`
|
|
3389
3317
|
mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
|
|
3390
3318
|
createBulkNotifications(input: $input) {
|
|
3391
3319
|
...NotificationFields
|
|
@@ -3393,7 +3321,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
|
|
|
3393
3321
|
}
|
|
3394
3322
|
${NOTIFICATION_FRAGMENT}
|
|
3395
3323
|
`;
|
|
3396
|
-
var MARK_NOTIFICATION_READ =
|
|
3324
|
+
var MARK_NOTIFICATION_READ = import_client20.gql`
|
|
3397
3325
|
mutation markNotificationRead($_id: ID!) {
|
|
3398
3326
|
markNotificationRead(_id: $_id) {
|
|
3399
3327
|
...NotificationFields
|
|
@@ -3401,17 +3329,17 @@ var MARK_NOTIFICATION_READ = import_client21.gql`
|
|
|
3401
3329
|
}
|
|
3402
3330
|
${NOTIFICATION_FRAGMENT}
|
|
3403
3331
|
`;
|
|
3404
|
-
var MARK_ALL_NOTIFICATIONS_READ =
|
|
3332
|
+
var MARK_ALL_NOTIFICATIONS_READ = import_client20.gql`
|
|
3405
3333
|
mutation markAllNotificationsRead {
|
|
3406
3334
|
markAllNotificationsRead
|
|
3407
3335
|
}
|
|
3408
3336
|
`;
|
|
3409
|
-
var DELETE_NOTIFICATION =
|
|
3337
|
+
var DELETE_NOTIFICATION = import_client20.gql`
|
|
3410
3338
|
mutation deleteNotification($_id: ID!) {
|
|
3411
3339
|
deleteNotification(_id: $_id)
|
|
3412
3340
|
}
|
|
3413
3341
|
`;
|
|
3414
|
-
var DELETE_ALL_NOTIFICATIONS =
|
|
3342
|
+
var DELETE_ALL_NOTIFICATIONS = import_client20.gql`
|
|
3415
3343
|
mutation deleteAllNotifications {
|
|
3416
3344
|
deleteAllNotifications
|
|
3417
3345
|
}
|
|
@@ -3419,13 +3347,13 @@ var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
|
|
|
3419
3347
|
|
|
3420
3348
|
// src/graphql/hooks/notifications/hooksMutation.ts
|
|
3421
3349
|
var useCreateBulkNotifications = () => {
|
|
3422
|
-
const [createBulkNotifications, { loading, error }] = (0,
|
|
3350
|
+
const [createBulkNotifications, { loading, error }] = (0, import_client21.useMutation)(
|
|
3423
3351
|
CREATE_BULK_NOTIFICATIONS
|
|
3424
3352
|
);
|
|
3425
3353
|
return { createBulkNotifications, error, loading };
|
|
3426
3354
|
};
|
|
3427
3355
|
var useMarkNotificationRead = () => {
|
|
3428
|
-
const [markNotificationRead, { loading, error }] = (0,
|
|
3356
|
+
const [markNotificationRead, { loading, error }] = (0, import_client21.useMutation)(
|
|
3429
3357
|
MARK_NOTIFICATION_READ,
|
|
3430
3358
|
{
|
|
3431
3359
|
fetchPolicy: "no-cache",
|
|
@@ -3442,7 +3370,7 @@ var useMarkNotificationRead = () => {
|
|
|
3442
3370
|
return { error, loading, markNotificationRead };
|
|
3443
3371
|
};
|
|
3444
3372
|
var useMarkAllNotificationsRead = () => {
|
|
3445
|
-
const [markAllNotificationsRead, { loading, error }] = (0,
|
|
3373
|
+
const [markAllNotificationsRead, { loading, error }] = (0, import_client21.useMutation)(
|
|
3446
3374
|
MARK_ALL_NOTIFICATIONS_READ,
|
|
3447
3375
|
{
|
|
3448
3376
|
fetchPolicy: "no-cache",
|
|
@@ -3459,7 +3387,7 @@ var useMarkAllNotificationsRead = () => {
|
|
|
3459
3387
|
return { error, loading, markAllNotificationsRead };
|
|
3460
3388
|
};
|
|
3461
3389
|
var useDeleteNotification = () => {
|
|
3462
|
-
const [deleteNotification, { loading, error }] = (0,
|
|
3390
|
+
const [deleteNotification, { loading, error }] = (0, import_client21.useMutation)(
|
|
3463
3391
|
DELETE_NOTIFICATION,
|
|
3464
3392
|
{
|
|
3465
3393
|
fetchPolicy: "no-cache",
|
|
@@ -3476,7 +3404,7 @@ var useDeleteNotification = () => {
|
|
|
3476
3404
|
return { deleteNotification, error, loading };
|
|
3477
3405
|
};
|
|
3478
3406
|
var useDeleteAllNotifications = () => {
|
|
3479
|
-
const [deleteAllNotifications, { loading, error }] = (0,
|
|
3407
|
+
const [deleteAllNotifications, { loading, error }] = (0, import_client21.useMutation)(
|
|
3480
3408
|
DELETE_ALL_NOTIFICATIONS,
|
|
3481
3409
|
{
|
|
3482
3410
|
fetchPolicy: "no-cache",
|
|
@@ -3494,9 +3422,9 @@ var useDeleteAllNotifications = () => {
|
|
|
3494
3422
|
};
|
|
3495
3423
|
|
|
3496
3424
|
// src/graphql/hooks/notifications/hooksQuery.ts
|
|
3497
|
-
var
|
|
3425
|
+
var import_client22 = require("@apollo/client");
|
|
3498
3426
|
var useGetUserNotifications = (limit, offset) => {
|
|
3499
|
-
const { data, loading, error, refetch } = (0,
|
|
3427
|
+
const { data, loading, error, refetch } = (0, import_client22.useQuery)(GET_USER_NOTIFICATIONS, {
|
|
3500
3428
|
fetchPolicy: "no-cache",
|
|
3501
3429
|
variables: { limit, offset }
|
|
3502
3430
|
});
|
|
@@ -3508,7 +3436,7 @@ var useGetUserNotifications = (limit, offset) => {
|
|
|
3508
3436
|
};
|
|
3509
3437
|
};
|
|
3510
3438
|
var useGetNotificationCount = () => {
|
|
3511
|
-
const { data, loading, error, refetch } = (0,
|
|
3439
|
+
const { data, loading, error, refetch } = (0, import_client22.useQuery)(GET_NOTIFICATION_COUNT, {
|
|
3512
3440
|
fetchPolicy: "no-cache"
|
|
3513
3441
|
});
|
|
3514
3442
|
return {
|
|
@@ -3520,11 +3448,11 @@ var useGetNotificationCount = () => {
|
|
|
3520
3448
|
};
|
|
3521
3449
|
|
|
3522
3450
|
// src/graphql/hooks/notifications/hooksSubscription.ts
|
|
3523
|
-
var
|
|
3451
|
+
var import_client24 = require("@apollo/client");
|
|
3524
3452
|
|
|
3525
3453
|
// src/graphql/subscriptions/notification.ts
|
|
3526
|
-
var
|
|
3527
|
-
var GET_NOTIFICATIONS_SUBSCRIPTION =
|
|
3454
|
+
var import_client23 = require("@apollo/client");
|
|
3455
|
+
var GET_NOTIFICATIONS_SUBSCRIPTION = import_client23.gql`
|
|
3528
3456
|
subscription {
|
|
3529
3457
|
getUserNotifications {
|
|
3530
3458
|
...NotificationFields
|
|
@@ -3532,7 +3460,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
|
|
|
3532
3460
|
}
|
|
3533
3461
|
${NOTIFICATION_FRAGMENT}
|
|
3534
3462
|
`;
|
|
3535
|
-
var GET_NOTIFICATION_COUNT_SUBSCRIPTION =
|
|
3463
|
+
var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client23.gql`
|
|
3536
3464
|
subscription {
|
|
3537
3465
|
getNotificationCount {
|
|
3538
3466
|
total
|
|
@@ -3543,7 +3471,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
|
|
|
3543
3471
|
|
|
3544
3472
|
// src/graphql/hooks/notifications/hooksSubscription.ts
|
|
3545
3473
|
var useGetUserNotificationsSubscription = () => {
|
|
3546
|
-
const { data, loading, error } = (0,
|
|
3474
|
+
const { data, loading, error } = (0, import_client24.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
|
|
3547
3475
|
fetchPolicy: "no-cache",
|
|
3548
3476
|
shouldResubscribe: true
|
|
3549
3477
|
});
|
|
@@ -3554,7 +3482,7 @@ var useGetUserNotificationsSubscription = () => {
|
|
|
3554
3482
|
};
|
|
3555
3483
|
};
|
|
3556
3484
|
var useGetNotificationCountSubscription = () => {
|
|
3557
|
-
const { data, loading, error } = (0,
|
|
3485
|
+
const { data, loading, error } = (0, import_client24.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
|
|
3558
3486
|
fetchPolicy: "no-cache",
|
|
3559
3487
|
shouldResubscribe: true
|
|
3560
3488
|
});
|
|
@@ -3566,11 +3494,11 @@ var useGetNotificationCountSubscription = () => {
|
|
|
3566
3494
|
};
|
|
3567
3495
|
|
|
3568
3496
|
// src/graphql/hooks/poster.ts
|
|
3569
|
-
var
|
|
3497
|
+
var import_client26 = require("@apollo/client");
|
|
3570
3498
|
|
|
3571
3499
|
// src/graphql/mutations/poster.ts
|
|
3572
|
-
var
|
|
3573
|
-
var CREATE_POSTER_MUTATION =
|
|
3500
|
+
var import_client25 = require("@apollo/client");
|
|
3501
|
+
var CREATE_POSTER_MUTATION = import_client25.gql`
|
|
3574
3502
|
mutation createPoster($input: PosterInputType!) {
|
|
3575
3503
|
createPoster(input: $input) {
|
|
3576
3504
|
message
|
|
@@ -3584,7 +3512,7 @@ var CREATE_POSTER_MUTATION = import_client26.gql`
|
|
|
3584
3512
|
|
|
3585
3513
|
// src/graphql/hooks/poster.ts
|
|
3586
3514
|
var useCreatePoster = () => {
|
|
3587
|
-
const [createPoster, { loading, error }] = (0,
|
|
3515
|
+
const [createPoster, { loading, error }] = (0, import_client26.useMutation)(
|
|
3588
3516
|
CREATE_POSTER_MUTATION,
|
|
3589
3517
|
{
|
|
3590
3518
|
fetchPolicy: "no-cache",
|
|
@@ -3595,11 +3523,11 @@ var useCreatePoster = () => {
|
|
|
3595
3523
|
};
|
|
3596
3524
|
|
|
3597
3525
|
// src/graphql/hooks/pushToken.ts
|
|
3598
|
-
var
|
|
3526
|
+
var import_client28 = require("@apollo/client");
|
|
3599
3527
|
|
|
3600
3528
|
// src/graphql/mutations/pushToken.ts
|
|
3601
|
-
var
|
|
3602
|
-
var CREATE_PUSH_TOKEN_MUTATION =
|
|
3529
|
+
var import_client27 = require("@apollo/client");
|
|
3530
|
+
var CREATE_PUSH_TOKEN_MUTATION = import_client27.gql`
|
|
3603
3531
|
mutation createPushToken($input: PushTokenInput!) {
|
|
3604
3532
|
createPushToken(input: $input) {
|
|
3605
3533
|
success
|
|
@@ -3609,7 +3537,7 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
|
|
|
3609
3537
|
|
|
3610
3538
|
// src/graphql/hooks/pushToken.ts
|
|
3611
3539
|
var useCreatePushToken = () => {
|
|
3612
|
-
const [createPushToken, { loading, error }] = (0,
|
|
3540
|
+
const [createPushToken, { loading, error }] = (0, import_client28.useMutation)(
|
|
3613
3541
|
CREATE_PUSH_TOKEN_MUTATION
|
|
3614
3542
|
);
|
|
3615
3543
|
return { createPushToken, error, loading };
|
|
@@ -3620,6 +3548,78 @@ var import_client31 = require("@apollo/client");
|
|
|
3620
3548
|
|
|
3621
3549
|
// src/graphql/mutations/relation.ts
|
|
3622
3550
|
var import_client30 = require("@apollo/client");
|
|
3551
|
+
|
|
3552
|
+
// src/graphql/queries/relation.ts
|
|
3553
|
+
var import_client29 = require("@apollo/client");
|
|
3554
|
+
var RELATION_FIELDS_FRAGMENT = import_client29.gql`
|
|
3555
|
+
fragment RelationFields on RelationType {
|
|
3556
|
+
_id
|
|
3557
|
+
active
|
|
3558
|
+
apiMessage
|
|
3559
|
+
chatId
|
|
3560
|
+
createdAt
|
|
3561
|
+
lastUpdateBy
|
|
3562
|
+
eventId
|
|
3563
|
+
relationDates {
|
|
3564
|
+
...RelationDates
|
|
3565
|
+
}
|
|
3566
|
+
relationType
|
|
3567
|
+
vendorId
|
|
3568
|
+
updatedAt
|
|
3569
|
+
}
|
|
3570
|
+
${RELATION_DATES_FRAGMENT}
|
|
3571
|
+
`;
|
|
3572
|
+
var GET_RELATION = import_client29.gql`
|
|
3573
|
+
query getRelation($_id: ID!) {
|
|
3574
|
+
relation(_id: $_id) {
|
|
3575
|
+
...RelationFields
|
|
3576
|
+
}
|
|
3577
|
+
}
|
|
3578
|
+
${RELATION_FIELDS_FRAGMENT}
|
|
3579
|
+
`;
|
|
3580
|
+
var GET_RELATION_BY_EVENT_AND_VENDOR = import_client29.gql`
|
|
3581
|
+
query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
|
|
3582
|
+
relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
|
|
3583
|
+
...RelationFields
|
|
3584
|
+
}
|
|
3585
|
+
}
|
|
3586
|
+
${RELATION_FIELDS_FRAGMENT}
|
|
3587
|
+
`;
|
|
3588
|
+
var GET_EVENT_RELATIONS = import_client29.gql`
|
|
3589
|
+
query getEventRelations($eventId: ID!) {
|
|
3590
|
+
eventRelations(eventId: $eventId) {
|
|
3591
|
+
...RelationFields
|
|
3592
|
+
}
|
|
3593
|
+
}
|
|
3594
|
+
${RELATION_FIELDS_FRAGMENT}
|
|
3595
|
+
`;
|
|
3596
|
+
var GET_VENDOR_RELATIONS = import_client29.gql`
|
|
3597
|
+
query getVendorRelations($vendorId: ID!) {
|
|
3598
|
+
vendorRelations(vendorId: $vendorId) {
|
|
3599
|
+
...RelationFields
|
|
3600
|
+
}
|
|
3601
|
+
}
|
|
3602
|
+
${RELATION_FIELDS_FRAGMENT}
|
|
3603
|
+
`;
|
|
3604
|
+
var GET_RESOURCE_CONNECTIONS = import_client29.gql`
|
|
3605
|
+
query getResourceConnections(
|
|
3606
|
+
$resourceId: ID!
|
|
3607
|
+
$resourceType: ResourceTypeEnum!
|
|
3608
|
+
) {
|
|
3609
|
+
resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
|
|
3610
|
+
events {
|
|
3611
|
+
...EventFields
|
|
3612
|
+
}
|
|
3613
|
+
vendors {
|
|
3614
|
+
...VendorFields
|
|
3615
|
+
}
|
|
3616
|
+
}
|
|
3617
|
+
}
|
|
3618
|
+
${VENDOR}
|
|
3619
|
+
${EVENT}
|
|
3620
|
+
`;
|
|
3621
|
+
|
|
3622
|
+
// src/graphql/mutations/relation.ts
|
|
3623
3623
|
var CREATE_RELATION_MUTATION = import_client30.gql`
|
|
3624
3624
|
mutation createRelation($input: RelationInputType!) {
|
|
3625
3625
|
createRelation(input: $input) {
|