@timardex/cluemart-shared 1.4.81 → 1.4.83
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/{chunk-EFEWSHPB.mjs → chunk-KPO6ZYQ4.mjs} +1 -1
- package/dist/{chunk-EFEWSHPB.mjs.map → chunk-KPO6ZYQ4.mjs.map} +1 -1
- package/dist/{chunk-T6D7HTHH.mjs → chunk-WAU7QQ5O.mjs} +98 -87
- package/dist/chunk-WAU7QQ5O.mjs.map +1 -0
- package/dist/graphql/index.cjs +111 -100
- 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 +1 -1
- package/dist/hooks/index.cjs +101 -90
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.cjs +111 -100
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +32 -28
- package/dist/index.d.ts +32 -28
- package/dist/index.mjs +97 -86
- package/dist/index.mjs.map +1 -1
- package/dist/{post-CxYFK6Pe.d.ts → post-hCEgX4ed.d.ts} +33 -10
- package/dist/{post-0gja2O2q.d.mts → post-q-vlx4aC.d.mts} +33 -10
- package/dist/{resourceActivities-BqRajS8s.d.ts → resourceActivities-2FaGRW-i.d.ts} +2 -21
- package/dist/{resourceActivities-Bvu7XDKv.d.mts → resourceActivities-CqrscA5x.d.mts} +2 -21
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-T6D7HTHH.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/auth.ts","../src/types/ad.ts","../src/types/resourceActivities.ts","../src/types/post.ts"],"sourcesContent":["import { CreateFormData, EnumOSPlatform, TermsAgreement } from \"src\";\n\nexport enum EnumVerificationType {\n REGISTER = \"register\",\n RESET_PASSWORD = \"resetPassword\",\n}\n\nexport type LoginFormData = {\n email: string;\n isAdminPage?: boolean;\n password: string;\n platform?: EnumOSPlatform;\n};\n\nexport type CreateLoginFormData = CreateFormData<LoginFormData>;\n\nexport type RegisterFormData = {\n email: string;\n firstName: string;\n lastName: string;\n password: string;\n platform?: EnumOSPlatform;\n preferredRegion: string;\n promoCode?: string | null;\n termsAgreement?: TermsAgreement | null;\n};\n\nexport type CreateRegisterFormData = CreateFormData<RegisterFormData>;\n\nexport type RequestPasswordResetFormData = {\n email: string;\n};\n\nexport type CreateRequestPasswordResetFormData =\n CreateFormData<RequestPasswordResetFormData>;\n\nexport type ResetPasswordFormData = {\n confirmPassword: string;\n email: string;\n password: string;\n};\n\nexport type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;\n\nexport type ValidateVerificationTokenFormData = {\n email: string;\n verificationToken: string;\n verificationType?: EnumVerificationType;\n};\n\nexport type CreateValidateVerificationTokenFormData =\n CreateFormData<ValidateVerificationTokenFormData>;\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 type AdResource = {\n adDescription: string | null;\n adImage: string | null;\n adStyle: EnumAdStyle | null;\n adTitle: string | null;\n adType: EnumAdType | null;\n resourceId: string | null;\n resourceName: string | null;\n resourceRegion: string | null;\n resourceType: EnumResourceType | null;\n};\n\nexport interface AdFormData {\n active: boolean;\n end: Date; // ISO date string\n resource: AdResource;\n showOn: EnumAdShowOn[];\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion: string[];\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 {\n EnumEventDateStatus,\n EnumOSPlatform,\n EnumResourceType,\n} from \"src/enums\";\n\nimport { LocationGeoType } from \"./global\";\n\nexport enum EnumActivity {\n FAVORITE = \"FAVORITE\",\n GOING = \"GOING\",\n INTERESTED = \"INTERESTED\",\n PRESENT = \"PRESENT\",\n VIEW = \"VIEW\",\n}\n\nexport type ResourceActivityEntry = {\n activityType: EnumActivity;\n location: LocationGeoType | null;\n dateStatus?: EnumEventDateStatus | null;\n startDate?: string | null;\n startTime?: string | null;\n timestamp: Date;\n userAgent: EnumOSPlatform;\n userId?: string | null;\n};\n\nexport type ResourceActivityType = {\n _id: string;\n resourceType: EnumResourceType;\n resourceId: string;\n activity: ResourceActivityEntry[];\n};\n\nexport type ResourceActivityInputType = {\n resourceId: string;\n resourceType: EnumResourceType;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n","import {
|
|
1
|
+
{"version":3,"sources":["../src/types/auth.ts","../src/types/ad.ts","../src/types/resourceActivities.ts","../src/types/post.ts"],"sourcesContent":["import { CreateFormData, EnumOSPlatform, TermsAgreement } from \"src\";\n\nexport enum EnumVerificationType {\n REGISTER = \"register\",\n RESET_PASSWORD = \"resetPassword\",\n}\n\nexport type LoginFormData = {\n email: string;\n isAdminPage?: boolean;\n password: string;\n platform?: EnumOSPlatform;\n};\n\nexport type CreateLoginFormData = CreateFormData<LoginFormData>;\n\nexport type RegisterFormData = {\n email: string;\n firstName: string;\n lastName: string;\n password: string;\n platform?: EnumOSPlatform;\n preferredRegion: string;\n promoCode?: string | null;\n termsAgreement?: TermsAgreement | null;\n};\n\nexport type CreateRegisterFormData = CreateFormData<RegisterFormData>;\n\nexport type RequestPasswordResetFormData = {\n email: string;\n};\n\nexport type CreateRequestPasswordResetFormData =\n CreateFormData<RequestPasswordResetFormData>;\n\nexport type ResetPasswordFormData = {\n confirmPassword: string;\n email: string;\n password: string;\n};\n\nexport type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;\n\nexport type ValidateVerificationTokenFormData = {\n email: string;\n verificationToken: string;\n verificationType?: EnumVerificationType;\n};\n\nexport type CreateValidateVerificationTokenFormData =\n CreateFormData<ValidateVerificationTokenFormData>;\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 type AdResource = {\n adDescription: string | null;\n adImage: string | null;\n adStyle: EnumAdStyle | null;\n adTitle: string | null;\n adType: EnumAdType | null;\n resourceId: string | null;\n resourceName: string | null;\n resourceRegion: string | null;\n resourceType: EnumResourceType | null;\n};\n\nexport interface AdFormData {\n active: boolean;\n end: Date; // ISO date string\n resource: AdResource;\n showOn: EnumAdShowOn[];\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion: string[];\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 {\n EnumEventDateStatus,\n EnumOSPlatform,\n EnumResourceType,\n} from \"src/enums\";\n\nimport { LocationGeoType } from \"./global\";\n\nexport enum EnumActivity {\n FAVORITE = \"FAVORITE\",\n GOING = \"GOING\",\n INTERESTED = \"INTERESTED\",\n PRESENT = \"PRESENT\",\n VIEW = \"VIEW\",\n}\n\nexport type ResourceActivityEntry = {\n activityType: EnumActivity;\n location: LocationGeoType | null;\n dateStatus?: EnumEventDateStatus | null;\n startDate?: string | null;\n startTime?: string | null;\n timestamp: Date;\n userAgent: EnumOSPlatform;\n userId?: string | null;\n};\n\nexport type ResourceActivityType = {\n _id: string;\n resourceType: EnumResourceType;\n resourceId: string;\n activity: ResourceActivityEntry[];\n};\n\nexport type ResourceActivityInputType = {\n resourceId: string;\n resourceType: EnumResourceType;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n","import { EnumResourceType } from \"src/enums\";\n\nimport { BaseGame } from \"./game\";\nimport { CreateFormData, ResourceImageType } from \"./global\";\n\nexport enum EnumPostType {\n DAILY_MEETS = \"daily_meets\",\n DAILY_TIPS = \"daily_tips\",\n DAILY_GAMES = \"daily_games\",\n}\n\nexport enum EnumPostContentType {\n GAME = \"game\",\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 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 PostContentGame = {\n game: BaseGame;\n};\n\nexport type PostContentData =\n | PostContentGame\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 cover?: ResourceImageType | null;\n coverUpload?: PostFileInput | null;\n postType: EnumPostType;\n resource?: {\n resourceId: string;\n resourceType: EnumResourceType;\n } | null;\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\">;\n};\n\nexport type PostType = Omit<PostFormData, \"content\" | \"coverUpload\"> & {\n _id: string;\n content: PostContentType[];\n createdAt: Date;\n deletedAt: Date | null;\n updatedAt: Date | null;\n};\n"],"mappings":";AAEO,IAAK,uBAAL,kBAAKA,0BAAL;AACL,EAAAA,sBAAA,cAAW;AACX,EAAAA,sBAAA,oBAAiB;AAFP,SAAAA;AAAA,GAAA;;;ACEL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,iBAAc;AACd,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,mBAAgB;AAChB,EAAAA,cAAA,kBAAe;AAJL,SAAAA;AAAA,GAAA;AAOL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,aAAU;AAHA,SAAAA;AAAA,GAAA;AAML,IAAK,aAAL,kBAAKC,gBAAL;AACL,EAAAA,YAAA,eAAY;AACZ,EAAAA,YAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;AAKL,IAAK,cAAL,kBAAKC,iBAAL;AACL,EAAAA,aAAA,WAAQ;AACR,EAAAA,aAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;;;ACdL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,cAAW;AACX,EAAAA,cAAA,WAAQ;AACR,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,aAAU;AACV,EAAAA,cAAA,UAAO;AALG,SAAAA;AAAA,GAAA;;;ACHL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,iBAAc;AACd,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,iBAAc;AAHJ,SAAAA;AAAA,GAAA;AAML,IAAK,sBAAL,kBAAKC,yBAAL;AACL,EAAAA,qBAAA,UAAO;AACP,EAAAA,qBAAA,WAAQ;AACR,EAAAA,qBAAA,UAAO;AACP,EAAAA,qBAAA,cAAW;AACX,EAAAA,qBAAA,WAAQ;AALE,SAAAA;AAAA,GAAA;","names":["EnumVerificationType","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumActivity","EnumPostType","EnumPostContentType"]}
|
|
@@ -108,8 +108,8 @@ var TERMS_AGREEMENT_FIELDS_FRAGMENT = gql2`
|
|
|
108
108
|
timestamp
|
|
109
109
|
}
|
|
110
110
|
`;
|
|
111
|
-
var
|
|
112
|
-
fragment
|
|
111
|
+
var DATETIME_FIELDS_FRAGMENT = gql2`
|
|
112
|
+
fragment DateTimeFields on DateTimeType {
|
|
113
113
|
dateStatus
|
|
114
114
|
endDate
|
|
115
115
|
endTime
|
|
@@ -128,7 +128,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
|
|
|
128
128
|
events {
|
|
129
129
|
resourceId
|
|
130
130
|
dateTime {
|
|
131
|
-
...
|
|
131
|
+
...DateTimeFields
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
}
|
|
@@ -136,7 +136,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
|
|
|
136
136
|
events {
|
|
137
137
|
resourceId
|
|
138
138
|
dateTime {
|
|
139
|
-
...
|
|
139
|
+
...DateTimeFields
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -144,12 +144,12 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
|
|
|
144
144
|
events {
|
|
145
145
|
resourceId
|
|
146
146
|
dateTime {
|
|
147
|
-
...
|
|
147
|
+
...DateTimeFields
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
${
|
|
152
|
+
${DATETIME_FIELDS_FRAGMENT}
|
|
153
153
|
`;
|
|
154
154
|
var USER_FIELDS_FRAGMENT = gql2`
|
|
155
155
|
fragment UserFields on UserType {
|
|
@@ -259,7 +259,7 @@ var EVENT_LIST_ITEM = gql2`
|
|
|
259
259
|
}
|
|
260
260
|
createdAt
|
|
261
261
|
dateTime {
|
|
262
|
-
...
|
|
262
|
+
...DateTimeFields
|
|
263
263
|
}
|
|
264
264
|
deletedAt
|
|
265
265
|
description
|
|
@@ -287,7 +287,7 @@ var EVENT_LIST_ITEM = gql2`
|
|
|
287
287
|
reviewCount
|
|
288
288
|
updatedAt
|
|
289
289
|
}
|
|
290
|
-
${
|
|
290
|
+
${DATETIME_FIELDS_FRAGMENT}
|
|
291
291
|
${LOCATION_FIELDS_FRAGMENT}
|
|
292
292
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
293
293
|
${RELATION_DATES_FRAGMENT}
|
|
@@ -347,7 +347,7 @@ var EVENT = gql3`
|
|
|
347
347
|
...ContactDetailsFields
|
|
348
348
|
}
|
|
349
349
|
dateTime {
|
|
350
|
-
...
|
|
350
|
+
...DateTimeFields
|
|
351
351
|
}
|
|
352
352
|
description
|
|
353
353
|
deletedAt
|
|
@@ -392,7 +392,7 @@ var EVENT = gql3`
|
|
|
392
392
|
}
|
|
393
393
|
updatedAt
|
|
394
394
|
}
|
|
395
|
-
${
|
|
395
|
+
${DATETIME_FIELDS_FRAGMENT}
|
|
396
396
|
${LOCATION_FIELDS_FRAGMENT}
|
|
397
397
|
${OWNER_FIELDS_FRAGMENT}
|
|
398
398
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
@@ -620,14 +620,14 @@ var VENDOR_INFO = gql4`
|
|
|
620
620
|
var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = gql4`
|
|
621
621
|
fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
|
|
622
622
|
dateTime {
|
|
623
|
-
...
|
|
623
|
+
...DateTimeFields
|
|
624
624
|
}
|
|
625
625
|
eventId
|
|
626
626
|
location {
|
|
627
627
|
...LocationFields
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
${
|
|
630
|
+
${DATETIME_FIELDS_FRAGMENT}
|
|
631
631
|
${LOCATION_FIELDS_FRAGMENT}
|
|
632
632
|
`;
|
|
633
633
|
var UNREGISTERED_VENDOR = gql4`
|
|
@@ -3183,19 +3183,79 @@ var useSearchPartners = (search, region) => {
|
|
|
3183
3183
|
import { useMutation as useMutation16 } from "@apollo/client";
|
|
3184
3184
|
|
|
3185
3185
|
// src/graphql/mutations/post.ts
|
|
3186
|
-
import { gql as
|
|
3186
|
+
import { gql as gql31 } from "@apollo/client";
|
|
3187
3187
|
|
|
3188
3188
|
// src/graphql/queries/post.ts
|
|
3189
|
+
import { gql as gql30 } from "@apollo/client";
|
|
3190
|
+
|
|
3191
|
+
// src/graphql/queries/game.ts
|
|
3189
3192
|
import { gql as gql29 } from "@apollo/client";
|
|
3190
|
-
var
|
|
3193
|
+
var BASE_GAME_FIELDS_FRAGMENT = gql29`
|
|
3194
|
+
fragment BaseGameFields on BaseGameType {
|
|
3195
|
+
title
|
|
3196
|
+
gameType
|
|
3197
|
+
gameInfo {
|
|
3198
|
+
dailyClue {
|
|
3199
|
+
solution
|
|
3200
|
+
}
|
|
3201
|
+
}
|
|
3202
|
+
gameDate {
|
|
3203
|
+
...DateTimeFields
|
|
3204
|
+
}
|
|
3205
|
+
}
|
|
3206
|
+
${DATETIME_FIELDS_FRAGMENT}
|
|
3207
|
+
`;
|
|
3208
|
+
var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql29`
|
|
3209
|
+
fragment DailyClueGameDataFields on DailyClueGameDataType {
|
|
3210
|
+
...BaseGameFields
|
|
3211
|
+
collectedLetters
|
|
3212
|
+
lastFoundDate
|
|
3213
|
+
points
|
|
3214
|
+
streak
|
|
3215
|
+
}
|
|
3216
|
+
${BASE_GAME_FIELDS_FRAGMENT}
|
|
3217
|
+
`;
|
|
3218
|
+
var GAME_FIELDS_FRAGMENT = gql29`
|
|
3219
|
+
fragment GameFields on GameType {
|
|
3220
|
+
_id
|
|
3221
|
+
active
|
|
3222
|
+
createdAt
|
|
3223
|
+
deletedAt
|
|
3224
|
+
gameData {
|
|
3225
|
+
dailyClue {
|
|
3226
|
+
...DailyClueGameDataFields
|
|
3227
|
+
}
|
|
3228
|
+
}
|
|
3229
|
+
updatedAt
|
|
3230
|
+
owner {
|
|
3231
|
+
...OwnerFields
|
|
3232
|
+
}
|
|
3233
|
+
}
|
|
3234
|
+
${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
|
|
3235
|
+
${OWNER_FIELDS_FRAGMENT}
|
|
3236
|
+
`;
|
|
3237
|
+
var GET_GAMES = gql29`
|
|
3238
|
+
query getGames($userId: ID) {
|
|
3239
|
+
games(userId: $userId) {
|
|
3240
|
+
...GameFields
|
|
3241
|
+
}
|
|
3242
|
+
}
|
|
3243
|
+
${GAME_FIELDS_FRAGMENT}
|
|
3244
|
+
`;
|
|
3245
|
+
var GET_GAME = gql29`
|
|
3246
|
+
query getGame($_id: ID!) {
|
|
3247
|
+
game(_id: $_id) {
|
|
3248
|
+
...GameFields
|
|
3249
|
+
}
|
|
3250
|
+
}
|
|
3251
|
+
${GAME_FIELDS_FRAGMENT}
|
|
3252
|
+
`;
|
|
3253
|
+
|
|
3254
|
+
// src/graphql/queries/post.ts
|
|
3255
|
+
var POST_CONTENT_DATA_FIELDS_FRAGMENT = gql30`
|
|
3191
3256
|
fragment PostContentDataFields on PostContentData {
|
|
3192
3257
|
game {
|
|
3193
|
-
|
|
3194
|
-
gameType
|
|
3195
|
-
gameInfo {
|
|
3196
|
-
dailyClue
|
|
3197
|
-
}
|
|
3198
|
-
gameEndDate
|
|
3258
|
+
...BaseGameFields
|
|
3199
3259
|
}
|
|
3200
3260
|
textarea {
|
|
3201
3261
|
title
|
|
@@ -3216,8 +3276,9 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = gql29`
|
|
|
3216
3276
|
}
|
|
3217
3277
|
}
|
|
3218
3278
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
3279
|
+
${BASE_GAME_FIELDS_FRAGMENT}
|
|
3219
3280
|
`;
|
|
3220
|
-
var POST_CONTENT_FIELDS_FRAGMENT =
|
|
3281
|
+
var POST_CONTENT_FIELDS_FRAGMENT = gql30`
|
|
3221
3282
|
fragment PostContentFields on PostContentType {
|
|
3222
3283
|
contentData {
|
|
3223
3284
|
...PostContentDataFields
|
|
@@ -3227,7 +3288,7 @@ var POST_CONTENT_FIELDS_FRAGMENT = gql29`
|
|
|
3227
3288
|
}
|
|
3228
3289
|
${POST_CONTENT_DATA_FIELDS_FRAGMENT}
|
|
3229
3290
|
`;
|
|
3230
|
-
var POST_FIELDS_FRAGMENT =
|
|
3291
|
+
var POST_FIELDS_FRAGMENT = gql30`
|
|
3231
3292
|
fragment PostFields on PostType {
|
|
3232
3293
|
_id
|
|
3233
3294
|
active
|
|
@@ -3252,7 +3313,7 @@ var POST_FIELDS_FRAGMENT = gql29`
|
|
|
3252
3313
|
${POST_CONTENT_FIELDS_FRAGMENT}
|
|
3253
3314
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
3254
3315
|
`;
|
|
3255
|
-
var GET_POSTS =
|
|
3316
|
+
var GET_POSTS = gql30`
|
|
3256
3317
|
query getPosts {
|
|
3257
3318
|
posts {
|
|
3258
3319
|
...PostFields
|
|
@@ -3260,7 +3321,7 @@ var GET_POSTS = gql29`
|
|
|
3260
3321
|
}
|
|
3261
3322
|
${POST_FIELDS_FRAGMENT}
|
|
3262
3323
|
`;
|
|
3263
|
-
var GET_POST =
|
|
3324
|
+
var GET_POST = gql30`
|
|
3264
3325
|
query getPost($_id: ID!) {
|
|
3265
3326
|
post(_id: $_id) {
|
|
3266
3327
|
...PostFields
|
|
@@ -3268,7 +3329,7 @@ var GET_POST = gql29`
|
|
|
3268
3329
|
}
|
|
3269
3330
|
${POST_FIELDS_FRAGMENT}
|
|
3270
3331
|
`;
|
|
3271
|
-
var GET_POSTS_BY_TYPE =
|
|
3332
|
+
var GET_POSTS_BY_TYPE = gql30`
|
|
3272
3333
|
query getPostsByType($postType: PostTypeEnum!) {
|
|
3273
3334
|
postsByType(postType: $postType) {
|
|
3274
3335
|
...PostFields
|
|
@@ -3278,7 +3339,7 @@ var GET_POSTS_BY_TYPE = gql29`
|
|
|
3278
3339
|
`;
|
|
3279
3340
|
|
|
3280
3341
|
// src/graphql/mutations/post.ts
|
|
3281
|
-
var CREATE_POST_MUTATION =
|
|
3342
|
+
var CREATE_POST_MUTATION = gql31`
|
|
3282
3343
|
mutation createPost($input: PostInputType!) {
|
|
3283
3344
|
createPost(input: $input) {
|
|
3284
3345
|
...PostFields
|
|
@@ -3286,7 +3347,7 @@ var CREATE_POST_MUTATION = gql30`
|
|
|
3286
3347
|
}
|
|
3287
3348
|
${POST_FIELDS_FRAGMENT}
|
|
3288
3349
|
`;
|
|
3289
|
-
var UPDATE_POST_MUTATION =
|
|
3350
|
+
var UPDATE_POST_MUTATION = gql31`
|
|
3290
3351
|
mutation updatePost($_id: ID!, $input: PostInputType!) {
|
|
3291
3352
|
updatePost(_id: $_id, input: $input) {
|
|
3292
3353
|
...PostFields
|
|
@@ -3294,7 +3355,7 @@ var UPDATE_POST_MUTATION = gql30`
|
|
|
3294
3355
|
}
|
|
3295
3356
|
${POST_FIELDS_FRAGMENT}
|
|
3296
3357
|
`;
|
|
3297
|
-
var DELETE_POST_MUTATION =
|
|
3358
|
+
var DELETE_POST_MUTATION = gql31`
|
|
3298
3359
|
mutation deletePost($_id: ID!) {
|
|
3299
3360
|
deletePost(_id: $_id)
|
|
3300
3361
|
}
|
|
@@ -3352,20 +3413,20 @@ var useGetPostsByType = (postType) => {
|
|
|
3352
3413
|
import { useMutation as useMutation17 } from "@apollo/client";
|
|
3353
3414
|
|
|
3354
3415
|
// src/graphql/mutations/appSettings.ts
|
|
3355
|
-
import { gql as
|
|
3356
|
-
var UPDATE_APP_SETTINGS_MUTATION =
|
|
3416
|
+
import { gql as gql32 } from "@apollo/client";
|
|
3417
|
+
var UPDATE_APP_SETTINGS_MUTATION = gql32`
|
|
3357
3418
|
mutation updateAppSettings($input: AppSettingsInputType!) {
|
|
3358
3419
|
updateAppSettings(input: $input)
|
|
3359
3420
|
}
|
|
3360
3421
|
`;
|
|
3361
|
-
var CRAWL_GOOGLE_MARKETS_MUTATION =
|
|
3422
|
+
var CRAWL_GOOGLE_MARKETS_MUTATION = gql32`
|
|
3362
3423
|
mutation crawlGoogleMarkets {
|
|
3363
3424
|
crawlGoogleMarkets {
|
|
3364
3425
|
message
|
|
3365
3426
|
}
|
|
3366
3427
|
}
|
|
3367
3428
|
`;
|
|
3368
|
-
var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION =
|
|
3429
|
+
var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = gql32`
|
|
3369
3430
|
mutation updateGoogleImportedMarkets {
|
|
3370
3431
|
updateGoogleImportedMarkets {
|
|
3371
3432
|
message
|
|
@@ -3374,8 +3435,8 @@ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = gql31`
|
|
|
3374
3435
|
`;
|
|
3375
3436
|
|
|
3376
3437
|
// src/graphql/queries/appSettings.ts
|
|
3377
|
-
import { gql as
|
|
3378
|
-
var APP_SETTINGS_FIELDS_FRAGMENT =
|
|
3438
|
+
import { gql as gql33 } from "@apollo/client";
|
|
3439
|
+
var APP_SETTINGS_FIELDS_FRAGMENT = gql33`
|
|
3379
3440
|
fragment AppSettingsFields on AppSettingsType {
|
|
3380
3441
|
_id
|
|
3381
3442
|
appVersion
|
|
@@ -3385,7 +3446,7 @@ var APP_SETTINGS_FIELDS_FRAGMENT = gql32`
|
|
|
3385
3446
|
updatedAt
|
|
3386
3447
|
}
|
|
3387
3448
|
`;
|
|
3388
|
-
var GET_APP_SETTINGS =
|
|
3449
|
+
var GET_APP_SETTINGS = gql33`
|
|
3389
3450
|
query getAppSettings {
|
|
3390
3451
|
appSettings {
|
|
3391
3452
|
...AppSettingsFields
|
|
@@ -3429,55 +3490,6 @@ import { useMutation as useMutation18 } from "@apollo/client";
|
|
|
3429
3490
|
|
|
3430
3491
|
// src/graphql/mutations/game.ts
|
|
3431
3492
|
import { gql as gql34 } from "@apollo/client";
|
|
3432
|
-
|
|
3433
|
-
// src/graphql/queries/game.ts
|
|
3434
|
-
import { gql as gql33 } from "@apollo/client";
|
|
3435
|
-
var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql33`
|
|
3436
|
-
fragment DailyClueGameDataFields on DailyClueGameDataType {
|
|
3437
|
-
lastFoundDate
|
|
3438
|
-
streak
|
|
3439
|
-
points
|
|
3440
|
-
collectedLetters
|
|
3441
|
-
gameEndDate
|
|
3442
|
-
}
|
|
3443
|
-
`;
|
|
3444
|
-
var GAME_FIELDS_FRAGMENT = gql33`
|
|
3445
|
-
fragment GameFields on GameType {
|
|
3446
|
-
_id
|
|
3447
|
-
active
|
|
3448
|
-
createdAt
|
|
3449
|
-
deletedAt
|
|
3450
|
-
gameData {
|
|
3451
|
-
dailyClue {
|
|
3452
|
-
...DailyClueGameDataFields
|
|
3453
|
-
}
|
|
3454
|
-
}
|
|
3455
|
-
updatedAt
|
|
3456
|
-
owner {
|
|
3457
|
-
...OwnerFields
|
|
3458
|
-
}
|
|
3459
|
-
}
|
|
3460
|
-
${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
|
|
3461
|
-
${OWNER_FIELDS_FRAGMENT}
|
|
3462
|
-
`;
|
|
3463
|
-
var GET_GAMES = gql33`
|
|
3464
|
-
query getGames($userId: ID) {
|
|
3465
|
-
games(userId: $userId) {
|
|
3466
|
-
...GameFields
|
|
3467
|
-
}
|
|
3468
|
-
}
|
|
3469
|
-
${GAME_FIELDS_FRAGMENT}
|
|
3470
|
-
`;
|
|
3471
|
-
var GET_GAME = gql33`
|
|
3472
|
-
query getGame($_id: ID!) {
|
|
3473
|
-
game(_id: $_id) {
|
|
3474
|
-
...GameFields
|
|
3475
|
-
}
|
|
3476
|
-
}
|
|
3477
|
-
${GAME_FIELDS_FRAGMENT}
|
|
3478
|
-
`;
|
|
3479
|
-
|
|
3480
|
-
// src/graphql/mutations/game.ts
|
|
3481
3493
|
var START_GAME_MUTATION = gql34`
|
|
3482
3494
|
mutation startGame($input: GameInputType!) {
|
|
3483
3495
|
startGame(input: $input) {
|
|
@@ -3489,10 +3501,9 @@ var START_GAME_MUTATION = gql34`
|
|
|
3489
3501
|
var LEAVE_GAME_MUTATION = gql34`
|
|
3490
3502
|
mutation leaveGame($_id: ID!) {
|
|
3491
3503
|
leaveGame(_id: $_id) {
|
|
3492
|
-
|
|
3504
|
+
userId
|
|
3493
3505
|
}
|
|
3494
3506
|
}
|
|
3495
|
-
${GAME_FIELDS_FRAGMENT}
|
|
3496
3507
|
`;
|
|
3497
3508
|
|
|
3498
3509
|
// src/graphql/hooks/game/hooksMutation.ts
|
|
@@ -3678,4 +3689,4 @@ export {
|
|
|
3678
3689
|
useGetGames,
|
|
3679
3690
|
useGetGame
|
|
3680
3691
|
};
|
|
3681
|
-
//# sourceMappingURL=chunk-
|
|
3692
|
+
//# sourceMappingURL=chunk-WAU7QQ5O.mjs.map
|