@timardex/cluemart-shared 1.3.36 → 1.3.38
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/{auth-DkJ0i7X5.d.ts → auth-CTIC98LE.d.ts} +1 -1
- package/dist/{auth-BGOx1McZ.d.mts → auth-duNF_25U.d.mts} +1 -1
- package/dist/{chunk-R3MMYKM2.mjs → chunk-BUTKJE3A.mjs} +1 -1
- package/dist/{chunk-R3MMYKM2.mjs.map → chunk-BUTKJE3A.mjs.map} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-CfCbqhR0.d.mts → global-OV8Kw7GZ.d.mts} +14 -1
- package/dist/{global-ZjNLEVhq.d.ts → global-jmCVxHjD.d.ts} +14 -1
- package/dist/graphql/index.cjs +31 -3
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/graphql/index.mjs +31 -3
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +5 -44
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +6 -45
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +36 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.mjs +36 -47
- package/dist/index.mjs.map +1 -1
- package/dist/{post-BV_BR8EZ.d.ts → post-B1pzBnlo.d.ts} +2 -1
- package/dist/{post-BOZMTfME.d.mts → post-DI7LRKGd.d.mts} +2 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/tester.ts","../src/types/ad.ts","../src/types/post.ts"],"sourcesContent":["import { EnumOSPlatform, EnumResourceType } from \"src/enums\";\n\nimport { Category, CreateFormData } from \"./global\";\n\nexport enum OrganizedMarketCount {\n ONE = \"One\",\n TWO_TO_THREE = \"Two_to_Three\",\n FOUR_TO_FIVE = \"Four_to_Five\",\n MORE_THAN_FIVE = \"More_than_Five\",\n}\n\nexport enum VendorSellingFrequency {\n TWICE_A_WEEK = \"Two_to_Three_times_a_week\",\n ONCE_A_WEEK = \"Once_a_week\",\n ONE_TO_TWO_TIMES_A_MONTH = \"One_to_Two_times_a_month\",\n LESS_OFTEN = \"Less_often\",\n}\n\nexport enum OrganizerMarketFrequency {\n WEEKLY = \"Weekly\",\n FORTNIGHTLY = \"Fortnightly\",\n MONTHLY = \"Monthly\",\n SEASONAL = \"Seasonal\",\n}\n\nexport type TesterVendor = {\n categories: Category[];\n marketsAttended: { name: string; city: string }[];\n productsOrServices: string;\n sellingFrequency: VendorSellingFrequency;\n yearlySellingApprox: number;\n questionary: {\n appearInVideoIntroduction?: boolean; // Q15 (Yes / No)\n applyToAtLeastOneMarket: boolean; // Q11\n completeFeedbackQuestionnaire: boolean; // Q13\n excitementAboutApp?: string; // Q17\n sendPhotoForSocialMedia?: boolean; // Q14 (Yes / No)\n socialMediaFeatureReason?: string; // Q16 (optional free text)\n testingPeriodConcerns?: string; // Q19 (optional)\n tryVisitorFeatures: boolean; // Q12\n uploadStallProfileFirstWeek: boolean; // Q10\n usefulnessExpectations?: string; // Q18\n };\n};\n\nexport type TesterEvent = {\n /** Organizer background */\n organizedMarketCount: OrganizedMarketCount;\n markets: {\n name: string;\n cityOrVenue: string;\n frequency: OrganizerMarketFrequency;\n averageStallCount: number;\n }[];\n questionary: {\n allowMarketingAppearance?: boolean;\n completeFinalQuestionnaire: boolean;\n interestedInCharityInitiative?: boolean;\n inviteStallholders: boolean;\n manageApplicationsAndCommunication: boolean;\n completeMarketProfileFirstWeek: boolean;\n spaceForClueMart: boolean;\n uploadStallList: boolean;\n organizerExpectations?: string;\n dailyCoordinationNeeds?: string;\n };\n};\n\nexport interface TesterFormData {\n businessName: string;\n consents: {\n privacyConsent: boolean;\n betaTestConsent: boolean;\n };\n email: string;\n event?: TesterEvent | null;\n firstName: string;\n lastName: string;\n mobilePhone: string;\n osType: EnumOSPlatform;\n region: string;\n resourceType: EnumResourceType;\n vendor?: TesterVendor | null;\n}\n\nexport type CreateTesterFormData = CreateFormData<TesterFormData>;\n\nexport interface TesterType extends TesterFormData {\n _id: string;\n active: boolean;\n approved: boolean;\n createdAt: Date;\n updatedAt: Date | null;\n}\n","import { EnumResourceType } from \"src/enums\";\n\nimport { CreateFormData, SocialMediaType } from \"./global\";\n\nexport enum EnumAdShowOn {\n EVENTS_PAGE = \"Events_page\",\n FRONT_PAGE = \"Front_page\",\n PARTNERS_PAGE = \"Partners_page\",\n VENDORS_PAGE = \"Vendors_page\",\n}\n\nexport enum EnumAdStatus {\n ACTIVE = \"Active\",\n PAUSED = \"Paused\",\n EXPIRED = \"Expired\",\n}\n\nexport enum EnumAdType {\n SPONSORED = \"Sponsored\",\n FREE = \"Free\",\n}\n\nexport enum EnumAdStyle {\n BLOOM = \"Bloom\",\n RISE = \"Rise\",\n}\n\nexport interface AdFormData {\n active: boolean;\n adStyle: EnumAdStyle;\n adType: EnumAdType;\n clui?: string | null;\n end: Date; // ISO date string\n resourceCover: string;\n resourceDescription: string;\n resourceId: string;\n resourceLogo?: string | null;\n resourceName: string;\n resourceRegion: string;\n resourceType: EnumResourceType;\n showOn: EnumAdShowOn;\n socialMedia?: SocialMediaType[] | null;\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion?: string | null;\n}\n\nexport type CreateAdFormData = CreateFormData<AdFormData>;\n\nexport interface AdType extends AdFormData {\n _id: string;\n clicks?: number; // How many times the ad was clicked\n createdAt: Date;\n impressions?: number; // How often the ad was seen\n start: Date; // ISO date string\n updatedAt: Date | null;\n}\n","import { CreateFormData, ResourceImageType } from \"./global\";\n\nexport enum EnumPostType {\n DAILY_MEETS = \"daily_meets\",\n DAILY_TIPS = \"daily_tips\",\n DAILY_POLL = \"daily_poll\",\n}\n\nexport enum EnumPostContentType {\n COVER = \"cover\",\n IMAGE = \"image\",\n LIST = \"list\",\n TEXTAREA = \"textarea\",\n VIDEO = \"video\",\n}\n\nexport type PostFileInput = {\n source: File;\n title?: string;\n};\n\nexport type PostContentCover = {\n cover: ResourceImageType;\n coverUpload?: PostFileInput | null;\n};\n\nexport type PostContentTextarea = {\n textarea: {\n title?: string;\n data: string;\n };\n};\n\nexport type PostContentImage = {\n images: ResourceImageType[] | null;\n imagesUpload?: PostFileInput[] | null;\n};\n\nexport type PostContentVideo = {\n video: {\n source: string;\n title?: string;\n };\n};\n\nexport type PostContentList = {\n list: {\n title?: string;\n items: {\n text: string;\n }[];\n };\n};\n\nexport type PostContentData =\n | PostContentCover\n | PostContentTextarea\n | PostContentImage\n | PostContentVideo\n | PostContentList;\n\nexport type PostContentFormData = {\n contentData?: PostContentData | null;\n contentOrder?: number | null;\n contentType?: EnumPostContentType | null;\n};\n\nexport interface PostFormData {\n active: boolean;\n content: PostContentFormData[];\n postType: EnumPostType;\n tags?: string[] | null;\n title: string;\n}\n\nexport type CreatePostFormData = CreateFormData<PostFormData>;\n\nexport type PostContentType = Omit<PostContentFormData, \"contentData\"> & {\n contentData: Omit<PostContentData, \"imagesUpload\" | \"coverUpload\">;\n};\n\nexport type PostType = Omit<PostFormData, \"content\"> & {\n _id: string;\n content: PostContentType[];\n createdAt: Date;\n deletedAt: Date | null;\n updatedAt: Date | null;\n};\n"],"mappings":";AAIO,IAAK,uBAAL,kBAAKA,0BAAL;AACL,EAAAA,sBAAA,SAAM;AACN,EAAAA,sBAAA,kBAAe;AACf,EAAAA,sBAAA,kBAAe;AACf,EAAAA,sBAAA,oBAAiB;AAJP,SAAAA;AAAA,GAAA;AAOL,IAAK,yBAAL,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AdStyle","EnumPostType","EnumPostContentType"]}
|
|
1
|
+
{"version":3,"sources":["../src/types/tester.ts","../src/types/ad.ts","../src/types/post.ts"],"sourcesContent":["import { EnumOSPlatform, EnumResourceType } from \"src/enums\";\n\nimport { Category, CreateFormData } from \"./global\";\n\nexport enum OrganizedMarketCount {\n ONE = \"One\",\n TWO_TO_THREE = \"Two_to_Three\",\n FOUR_TO_FIVE = \"Four_to_Five\",\n MORE_THAN_FIVE = \"More_than_Five\",\n}\n\nexport enum VendorSellingFrequency {\n TWICE_A_WEEK = \"Two_to_Three_times_a_week\",\n ONCE_A_WEEK = \"Once_a_week\",\n ONE_TO_TWO_TIMES_A_MONTH = \"One_to_Two_times_a_month\",\n LESS_OFTEN = \"Less_often\",\n}\n\nexport enum OrganizerMarketFrequency {\n WEEKLY = \"Weekly\",\n FORTNIGHTLY = \"Fortnightly\",\n MONTHLY = \"Monthly\",\n SEASONAL = \"Seasonal\",\n}\n\nexport type TesterVendor = {\n categories: Category[];\n marketsAttended: { name: string; city: string }[];\n productsOrServices: string;\n sellingFrequency: VendorSellingFrequency;\n yearlySellingApprox: number;\n questionary: {\n appearInVideoIntroduction?: boolean; // Q15 (Yes / No)\n applyToAtLeastOneMarket: boolean; // Q11\n completeFeedbackQuestionnaire: boolean; // Q13\n excitementAboutApp?: string; // Q17\n sendPhotoForSocialMedia?: boolean; // Q14 (Yes / No)\n socialMediaFeatureReason?: string; // Q16 (optional free text)\n testingPeriodConcerns?: string; // Q19 (optional)\n tryVisitorFeatures: boolean; // Q12\n uploadStallProfileFirstWeek: boolean; // Q10\n usefulnessExpectations?: string; // Q18\n };\n};\n\nexport type TesterEvent = {\n /** Organizer background */\n organizedMarketCount: OrganizedMarketCount;\n markets: {\n name: string;\n cityOrVenue: string;\n frequency: OrganizerMarketFrequency;\n averageStallCount: number;\n }[];\n questionary: {\n allowMarketingAppearance?: boolean;\n completeFinalQuestionnaire: boolean;\n interestedInCharityInitiative?: boolean;\n inviteStallholders: boolean;\n manageApplicationsAndCommunication: boolean;\n completeMarketProfileFirstWeek: boolean;\n spaceForClueMart: boolean;\n uploadStallList: boolean;\n organizerExpectations?: string;\n dailyCoordinationNeeds?: string;\n };\n};\n\nexport interface TesterFormData {\n businessName: string;\n consents: {\n privacyConsent: boolean;\n betaTestConsent: boolean;\n };\n email: string;\n event?: TesterEvent | null;\n firstName: string;\n lastName: string;\n mobilePhone: string;\n osType: EnumOSPlatform;\n region: string;\n resourceType: EnumResourceType;\n vendor?: TesterVendor | null;\n}\n\nexport type CreateTesterFormData = CreateFormData<TesterFormData>;\n\nexport interface TesterType extends TesterFormData {\n _id: string;\n active: boolean;\n approved: boolean;\n createdAt: Date;\n updatedAt: Date | null;\n}\n","import { EnumResourceType } from \"src/enums\";\n\nimport { CreateFormData, SocialMediaType } from \"./global\";\n\nexport enum EnumAdShowOn {\n EVENTS_PAGE = \"Events_page\",\n FRONT_PAGE = \"Front_page\",\n PARTNERS_PAGE = \"Partners_page\",\n VENDORS_PAGE = \"Vendors_page\",\n}\n\nexport enum EnumAdStatus {\n ACTIVE = \"Active\",\n PAUSED = \"Paused\",\n EXPIRED = \"Expired\",\n}\n\nexport enum EnumAdType {\n SPONSORED = \"Sponsored\",\n FREE = \"Free\",\n}\n\nexport enum EnumAdStyle {\n BLOOM = \"Bloom\",\n RISE = \"Rise\",\n}\n\nexport interface AdFormData {\n active: boolean;\n adStyle: EnumAdStyle;\n adType: EnumAdType;\n clui?: string | null;\n end: Date; // ISO date string\n resourceCover: string;\n resourceDescription: string;\n resourceId: string;\n resourceLogo?: string | null;\n resourceName: string;\n resourceRegion: string;\n resourceType: EnumResourceType;\n showOn: EnumAdShowOn;\n socialMedia?: SocialMediaType[] | null;\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion?: string | null;\n}\n\nexport type CreateAdFormData = CreateFormData<AdFormData>;\n\nexport interface AdType extends AdFormData {\n _id: string;\n clicks?: number; // How many times the ad was clicked\n createdAt: Date;\n impressions?: number; // How often the ad was seen\n start: Date; // ISO date string\n updatedAt: Date | null;\n}\n","import { CreateFormData, ResourceImageType } from \"./global\";\n\nexport enum EnumPostType {\n DAILY_MEETS = \"daily_meets\",\n DAILY_TIPS = \"daily_tips\",\n DAILY_POLL = \"daily_poll\",\n}\n\nexport enum EnumPostContentType {\n COVER = \"cover\",\n IMAGE = \"image\",\n LIST = \"list\",\n TEXTAREA = \"textarea\",\n VIDEO = \"video\",\n}\n\nexport type PostFileInput = {\n source: File;\n title?: string;\n};\n\nexport type PostContentCover = {\n cover: ResourceImageType;\n coverUpload?: PostFileInput | null;\n};\n\nexport type PostContentTextarea = {\n textarea: {\n title?: string;\n data: string;\n };\n};\n\nexport type PostContentImage = {\n images: ResourceImageType[] | null;\n imagesUpload?: PostFileInput[] | null;\n};\n\nexport type PostContentVideo = {\n video: {\n source: string;\n title?: string;\n };\n};\n\nexport type PostContentList = {\n list: {\n title?: string;\n items: {\n text: string;\n }[];\n };\n};\n\nexport type PostContentData =\n | PostContentCover\n | PostContentTextarea\n | PostContentImage\n | PostContentVideo\n | PostContentList;\n\nexport type PostContentFormData = {\n contentData?: PostContentData | null;\n contentOrder?: number | null;\n contentType?: EnumPostContentType | null;\n};\n\nexport interface PostFormData {\n active: boolean;\n caption: string;\n content: PostContentFormData[];\n postType: EnumPostType;\n tags?: string[] | null;\n title: string;\n}\n\nexport type CreatePostFormData = CreateFormData<PostFormData>;\n\nexport type PostContentType = Omit<PostContentFormData, \"contentData\"> & {\n contentData: Omit<PostContentData, \"imagesUpload\" | \"coverUpload\">;\n};\n\nexport type PostType = Omit<PostFormData, \"content\"> & {\n _id: string;\n content: PostContentType[];\n createdAt: Date;\n deletedAt: Date | null;\n updatedAt: Date | null;\n};\n"],"mappings":";AAIO,IAAK,uBAAL,kBAAKA,0BAAL;AACL,EAAAA,sBAAA,SAAM;AACN,EAAAA,sBAAA,kBAAe;AACf,EAAAA,sBAAA,kBAAe;AACf,EAAAA,sBAAA,oBAAiB;AAJP,SAAAA;AAAA,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n","EnumAdStatus","EnumAdType","EnumAdStyle","EnumPostType","EnumPostContentType"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-OV8Kw7GZ.mjs';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.mjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-jmCVxHjD.js';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.js';
|
|
4
4
|
|
|
@@ -88,6 +88,19 @@ interface EventType extends BaseResourceType {
|
|
|
88
88
|
type EventInfoType = Omit<EventInfoFormData, "_id"> & {
|
|
89
89
|
_id: string;
|
|
90
90
|
};
|
|
91
|
+
type UserActivityEventType = {
|
|
92
|
+
_id: string;
|
|
93
|
+
active: boolean;
|
|
94
|
+
cover: ResourceImageType;
|
|
95
|
+
dateTime: DateTimeType;
|
|
96
|
+
eventType: EnumEventType;
|
|
97
|
+
location: LocationType;
|
|
98
|
+
logo?: ResourceImageType;
|
|
99
|
+
name: string;
|
|
100
|
+
rainOrShine: boolean;
|
|
101
|
+
region: string;
|
|
102
|
+
socialMedia?: SocialMediaType[];
|
|
103
|
+
};
|
|
91
104
|
|
|
92
105
|
type VendorLocation = {
|
|
93
106
|
dateTime: Nullable<DateTimeType> | null;
|
|
@@ -340,4 +353,4 @@ interface CreateFormData<T extends FieldValues> {
|
|
|
340
353
|
watch: UseFormWatch<T>;
|
|
341
354
|
}
|
|
342
355
|
|
|
343
|
-
export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G,
|
|
356
|
+
export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, RelationDate as H, ImageObjectType as I, VendorLocation as J, VendorMenuType as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, VendorAttributes as Q, Requirement as R, StallType as S, TermsAgreement as T, UserLicenceType as U, VendorType as V, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, VendorFormData as f, CreateVendorFormData as g, VendorInfoFormData as h, CreateVendorInfoFormData as i, EventFormData as j, CreateEventFormData as k, EventInfoFormData as l, CreateEventInfoFormData as m, ResourceContactDetailsType as n, ResourceImageType as o, SocialMediaType as p, OwnerType as q, BaseResourceType as r, DateTimeType as s, Region as t, SubcategoryItems as u, Subcategory as v, CreateFormData as w, DateTimeWithPriceType as x, PaymentInfoType as y, UserActivityEventType as z };
|
|
@@ -88,6 +88,19 @@ interface EventType extends BaseResourceType {
|
|
|
88
88
|
type EventInfoType = Omit<EventInfoFormData, "_id"> & {
|
|
89
89
|
_id: string;
|
|
90
90
|
};
|
|
91
|
+
type UserActivityEventType = {
|
|
92
|
+
_id: string;
|
|
93
|
+
active: boolean;
|
|
94
|
+
cover: ResourceImageType;
|
|
95
|
+
dateTime: DateTimeType;
|
|
96
|
+
eventType: EnumEventType;
|
|
97
|
+
location: LocationType;
|
|
98
|
+
logo?: ResourceImageType;
|
|
99
|
+
name: string;
|
|
100
|
+
rainOrShine: boolean;
|
|
101
|
+
region: string;
|
|
102
|
+
socialMedia?: SocialMediaType[];
|
|
103
|
+
};
|
|
91
104
|
|
|
92
105
|
type VendorLocation = {
|
|
93
106
|
dateTime: Nullable<DateTimeType> | null;
|
|
@@ -340,4 +353,4 @@ interface CreateFormData<T extends FieldValues> {
|
|
|
340
353
|
watch: UseFormWatch<T>;
|
|
341
354
|
}
|
|
342
355
|
|
|
343
|
-
export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G,
|
|
356
|
+
export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, RelationDate as H, ImageObjectType as I, VendorLocation as J, VendorMenuType as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, VendorAttributes as Q, Requirement as R, StallType as S, TermsAgreement as T, UserLicenceType as U, VendorType as V, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, VendorFormData as f, CreateVendorFormData as g, VendorInfoFormData as h, CreateVendorInfoFormData as i, EventFormData as j, CreateEventFormData as k, EventInfoFormData as l, CreateEventInfoFormData as m, ResourceContactDetailsType as n, ResourceImageType as o, SocialMediaType as p, OwnerType as q, BaseResourceType as r, DateTimeType as s, Region as t, SubcategoryItems as u, Subcategory as v, CreateFormData as w, DateTimeWithPriceType as x, PaymentInfoType as y, UserActivityEventType as z };
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -1317,6 +1317,32 @@ var SEARCH_PARTNERS = import_client17.gql`
|
|
|
1317
1317
|
`;
|
|
1318
1318
|
|
|
1319
1319
|
// src/graphql/queries/user.ts
|
|
1320
|
+
var USER_ACTIVITY_EVENT_FRAGMENT = import_client18.gql`
|
|
1321
|
+
fragment UserActivityEventFields on UserActivityEventType {
|
|
1322
|
+
_id
|
|
1323
|
+
active
|
|
1324
|
+
cover {
|
|
1325
|
+
...ResourceImageFields
|
|
1326
|
+
}
|
|
1327
|
+
dateTime
|
|
1328
|
+
eventType
|
|
1329
|
+
location {
|
|
1330
|
+
...LocationFields
|
|
1331
|
+
}
|
|
1332
|
+
logo {
|
|
1333
|
+
...ResourceImageFields
|
|
1334
|
+
}
|
|
1335
|
+
name
|
|
1336
|
+
rainOrShine
|
|
1337
|
+
region
|
|
1338
|
+
socialMedia {
|
|
1339
|
+
...SocialMediaFields
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
1343
|
+
${LOCATION_FIELDS_FRAGMENT}
|
|
1344
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
1345
|
+
`;
|
|
1320
1346
|
var GET_USERS = import_client18.gql`
|
|
1321
1347
|
query getUsers {
|
|
1322
1348
|
users {
|
|
@@ -1370,23 +1396,24 @@ var GET_USER_ACTIVITIES = import_client18.gql`
|
|
|
1370
1396
|
}
|
|
1371
1397
|
going {
|
|
1372
1398
|
events {
|
|
1373
|
-
...
|
|
1399
|
+
...UserActivityEventFields
|
|
1374
1400
|
}
|
|
1375
1401
|
}
|
|
1376
1402
|
interested {
|
|
1377
1403
|
events {
|
|
1378
|
-
...
|
|
1404
|
+
...UserActivityEventFields
|
|
1379
1405
|
}
|
|
1380
1406
|
}
|
|
1381
1407
|
present {
|
|
1382
1408
|
events {
|
|
1383
|
-
...
|
|
1409
|
+
...UserActivityEventFields
|
|
1384
1410
|
}
|
|
1385
1411
|
}
|
|
1386
1412
|
}
|
|
1387
1413
|
}
|
|
1388
1414
|
${EVENT}
|
|
1389
1415
|
${VENDOR}
|
|
1416
|
+
${USER_ACTIVITY_EVENT_FRAGMENT}
|
|
1390
1417
|
`;
|
|
1391
1418
|
|
|
1392
1419
|
// src/graphql/hooks/event/hooksMutation.ts
|
|
@@ -3087,6 +3114,7 @@ var POST_FIELDS_FRAGMENT = import_client59.gql`
|
|
|
3087
3114
|
fragment PostFields on PostType {
|
|
3088
3115
|
_id
|
|
3089
3116
|
active
|
|
3117
|
+
caption
|
|
3090
3118
|
content {
|
|
3091
3119
|
...PostContentFields
|
|
3092
3120
|
}
|