@timardex/cluemart-shared 1.5.493 → 1.5.495
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-USQKKCIA.mjs → chunk-534WN2SR.mjs} +7 -3
- package/dist/chunk-534WN2SR.mjs.map +1 -0
- package/dist/{chunk-KYDS4REE.mjs → chunk-F4IWHY4O.mjs} +98 -18
- package/dist/chunk-F4IWHY4O.mjs.map +1 -0
- package/dist/{chunk-GSNFQJBZ.mjs → chunk-KPO6ZYQ4.mjs} +2 -95
- package/dist/chunk-KPO6ZYQ4.mjs.map +1 -0
- package/dist/chunk-QG5DPPZI.mjs +96 -0
- package/dist/chunk-QG5DPPZI.mjs.map +1 -0
- package/dist/{chunk-4LT5GOOP.mjs → chunk-SKWWATIR.mjs} +3 -3
- package/dist/enums/index.cjs +6 -2
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +7 -3
- package/dist/enums/index.d.ts +7 -3
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs +11 -6
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +4 -3
- package/dist/game-DTrJRy_s.d.mts +120 -0
- package/dist/game-lvz2AUuu.d.ts +120 -0
- package/dist/graphql/index.d.mts +2 -1
- package/dist/graphql/index.d.ts +2 -1
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +24 -19
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +2 -1
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.mjs +5 -4
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +205 -120
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +17 -4
- package/dist/index.d.ts +17 -4
- package/dist/index.mjs +203 -120
- package/dist/index.mjs.map +1 -1
- package/dist/{post-C67Q-sXR.d.ts → post-DXOToXeT.d.ts} +3 -119
- package/dist/{post-C9rtHepe.d.mts → post-wptsHKVN.d.mts} +3 -119
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.mjs +6 -4
- package/dist/utils/index.cjs +174 -15
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +11 -1
- package/dist/utils/index.d.ts +11 -1
- package/dist/utils/index.mjs +7 -2
- package/package.json +1 -1
- package/dist/chunk-GSNFQJBZ.mjs.map +0 -1
- package/dist/chunk-KYDS4REE.mjs.map +0 -1
- package/dist/chunk-USQKKCIA.mjs.map +0 -1
- /package/dist/{chunk-4LT5GOOP.mjs.map → chunk-SKWWATIR.mjs.map} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EnumUserLicence, EnumSubscriptionStatus, EnumOSPlatform, EnumUserRole, EnumResourceType, EnumPartnerType } from './enums/index.js';
|
|
2
|
-
import { A as AssociateType, Q as ResourceImageType, h as UserLicenceType, Y as TermsAgreement, D as DateTimeType, s as CreateFormData, r as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData
|
|
2
|
+
import { A as AssociateType, Q as ResourceImageType, h as UserLicenceType, Y as TermsAgreement, D as DateTimeType, s as CreateFormData, r as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData } from './global-B0WdAD-8.js';
|
|
3
|
+
import { B as BaseGame } from './game-lvz2AUuu.js';
|
|
3
4
|
|
|
4
5
|
type UserFormData = {
|
|
5
6
|
_id?: string;
|
|
@@ -137,123 +138,6 @@ type AppSettingsType = AppSettingsFormData & {
|
|
|
137
138
|
updatedAt: Date | null;
|
|
138
139
|
};
|
|
139
140
|
|
|
140
|
-
declare const gameScreenIdentifierList: readonly [{
|
|
141
|
-
readonly clue: "Where your actions turn into a timeline.";
|
|
142
|
-
readonly id: "activities";
|
|
143
|
-
}, {
|
|
144
|
-
readonly clue: "Where conversations happen without speaking.";
|
|
145
|
-
readonly id: "chat";
|
|
146
|
-
}, {
|
|
147
|
-
readonly clue: "The place to redefine who you are.";
|
|
148
|
-
readonly id: "edit-profile";
|
|
149
|
-
}, {
|
|
150
|
-
readonly clue: "A single moment worth showing up for.";
|
|
151
|
-
readonly id: "event";
|
|
152
|
-
}, {
|
|
153
|
-
readonly clue: "What’s happening around you, right now.";
|
|
154
|
-
readonly id: "events-near-me";
|
|
155
|
-
}, {
|
|
156
|
-
readonly clue: "A collection of things worth attending.";
|
|
157
|
-
readonly id: "events";
|
|
158
|
-
}, {
|
|
159
|
-
readonly clue: "What’s happening in a wider area—not just nearby.";
|
|
160
|
-
readonly id: "events/region";
|
|
161
|
-
}, {
|
|
162
|
-
readonly clue: "Where fun becomes a challenge.";
|
|
163
|
-
readonly id: "games";
|
|
164
|
-
}, {
|
|
165
|
-
readonly clue: "Your starting point for everything.";
|
|
166
|
-
readonly id: "home";
|
|
167
|
-
}, {
|
|
168
|
-
readonly clue: "Where the app taps you on the shoulder.";
|
|
169
|
-
readonly id: "notifications";
|
|
170
|
-
}, {
|
|
171
|
-
readonly clue: "Where you fine-tune your experience.";
|
|
172
|
-
readonly id: "options";
|
|
173
|
-
}, {
|
|
174
|
-
readonly clue: "A single collaborator in the ecosystem.";
|
|
175
|
-
readonly id: "partner";
|
|
176
|
-
}, {
|
|
177
|
-
readonly clue: "The network behind the scenes.";
|
|
178
|
-
readonly id: "partners";
|
|
179
|
-
}, {
|
|
180
|
-
readonly clue: "Where you share something with everyone.";
|
|
181
|
-
readonly id: "post";
|
|
182
|
-
}, {
|
|
183
|
-
readonly clue: "Your identity, on display.";
|
|
184
|
-
readonly id: "profile";
|
|
185
|
-
}, {
|
|
186
|
-
readonly clue: "One provider offering something valuable.";
|
|
187
|
-
readonly id: "vendor";
|
|
188
|
-
}, {
|
|
189
|
-
readonly clue: "A marketplace of providers.";
|
|
190
|
-
readonly id: "vendors";
|
|
191
|
-
}, {
|
|
192
|
-
readonly clue: "People who stopped by to see you.";
|
|
193
|
-
readonly id: "visitors";
|
|
194
|
-
}];
|
|
195
|
-
type GamePlacement = (typeof gameScreenIdentifierList)[number]["id"];
|
|
196
|
-
type GamePlacementClue = (typeof gameScreenIdentifierList)[number]["clue"];
|
|
197
|
-
declare enum EnumGameType {
|
|
198
|
-
DAILY_CLUE = "dailyClue"
|
|
199
|
-
}
|
|
200
|
-
declare const gameTypeToDisplayName: Record<EnumGameType, string>;
|
|
201
|
-
type GameDate = {
|
|
202
|
-
startDate: Date;
|
|
203
|
-
endDate: Date;
|
|
204
|
-
};
|
|
205
|
-
type BaseGame = {
|
|
206
|
-
gameDate: GameDate;
|
|
207
|
-
gameSolution: string;
|
|
208
|
-
gameType: EnumGameType;
|
|
209
|
-
};
|
|
210
|
-
type DailyClueGameData = {
|
|
211
|
-
gameFields: BaseGame;
|
|
212
|
-
lastFoundDate: Date | null;
|
|
213
|
-
points: number;
|
|
214
|
-
letterInfo: {
|
|
215
|
-
collected: string[] | null;
|
|
216
|
-
shuffled: string[];
|
|
217
|
-
todaysLetter: string | null;
|
|
218
|
-
todaysClue: GamePlacementClue | null;
|
|
219
|
-
todaysPlacement: GamePlacement | null;
|
|
220
|
-
};
|
|
221
|
-
streak: number;
|
|
222
|
-
};
|
|
223
|
-
type GameDataMap = {
|
|
224
|
-
[EnumGameType.DAILY_CLUE]: DailyClueGameData;
|
|
225
|
-
};
|
|
226
|
-
type GameData = {
|
|
227
|
-
[K in keyof GameDataMap]?: GameDataMap[K] | null;
|
|
228
|
-
};
|
|
229
|
-
declare enum EnumGameStatus {
|
|
230
|
-
GAME_COMPLETED = "GAME_COMPLETED",
|
|
231
|
-
GAME_LEFT = "GAME_LEFT",
|
|
232
|
-
GAME_IN_PROGRESS = "GAME_IN_PROGRESS"
|
|
233
|
-
}
|
|
234
|
-
type GameHistory = {
|
|
235
|
-
gameDate: GameDate;
|
|
236
|
-
gameStatus: EnumGameStatus;
|
|
237
|
-
gameType: EnumGameType;
|
|
238
|
-
pointsEarned: number;
|
|
239
|
-
};
|
|
240
|
-
type GameType = {
|
|
241
|
-
_id: string;
|
|
242
|
-
active: boolean;
|
|
243
|
-
createdAt: Date;
|
|
244
|
-
deletedAt: Date | null;
|
|
245
|
-
gameData: GameData | null;
|
|
246
|
-
gameHistory: GameHistory[] | null;
|
|
247
|
-
owner: OwnerType;
|
|
248
|
-
points: number;
|
|
249
|
-
updatedAt: Date | null;
|
|
250
|
-
};
|
|
251
|
-
type GameLeaderboard = {
|
|
252
|
-
gameHistory: GameHistory[] | null;
|
|
253
|
-
overallPoints: number;
|
|
254
|
-
owner: OwnerType;
|
|
255
|
-
};
|
|
256
|
-
|
|
257
141
|
declare enum EnumAdShowOn {
|
|
258
142
|
EVENTS_PAGE = "Events_page",
|
|
259
143
|
FRONT_PAGE = "Front_page",
|
|
@@ -378,4 +262,4 @@ type PostType = Omit<PostFormData, "content" | "coverUpload"> & {
|
|
|
378
262
|
updatedAt: Date | null;
|
|
379
263
|
};
|
|
380
264
|
|
|
381
|
-
export { type AdType as A, type
|
|
265
|
+
export { type AdType as A, type PostFileInput as B, type CreateUserFormData as C, type StripeSubscription as D, EnumAdStatus as E, type SubscriptionPlanData as F, type SubscriptionPricingData as G, type UserActivity as H, type UserActivityEvent as I, type PartnerType as P, type ResourceByUser as R, type SubscriptionPlansResponse as S, type UserType as U, type SubscriptionStatusData as a, type PostType as b, EnumPostType as c, type AppSettingsType as d, type UserFormData as e, type PartnerFormData as f, type AdFormData as g, type CreateAdFormData as h, type CreatePartnerFormData as i, type PostFormData as j, type CreatePostFormData as k, type AppSettingsFormData as l, type CreateAppSettingsFormData as m, type AdResource as n, EnumAdShowOn as o, EnumAdStyle as p, EnumAdType as q, EnumPostContentType as r, type PostContentData as s, type PostContentFormData as t, type PostContentGame as u, type PostContentImage as v, type PostContentList as w, type PostContentTextarea as x, type PostContentType as y, type PostContentVideo as z };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EnumUserLicence, EnumSubscriptionStatus, EnumOSPlatform, EnumUserRole, EnumResourceType, EnumPartnerType } from './enums/index.mjs';
|
|
2
|
-
import { A as AssociateType, Q as ResourceImageType, h as UserLicenceType, Y as TermsAgreement, D as DateTimeType, s as CreateFormData, r as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData
|
|
2
|
+
import { A as AssociateType, Q as ResourceImageType, h as UserLicenceType, Y as TermsAgreement, D as DateTimeType, s as CreateFormData, r as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData } from './global-MMBYi34A.mjs';
|
|
3
|
+
import { B as BaseGame } from './game-DTrJRy_s.mjs';
|
|
3
4
|
|
|
4
5
|
type UserFormData = {
|
|
5
6
|
_id?: string;
|
|
@@ -137,123 +138,6 @@ type AppSettingsType = AppSettingsFormData & {
|
|
|
137
138
|
updatedAt: Date | null;
|
|
138
139
|
};
|
|
139
140
|
|
|
140
|
-
declare const gameScreenIdentifierList: readonly [{
|
|
141
|
-
readonly clue: "Where your actions turn into a timeline.";
|
|
142
|
-
readonly id: "activities";
|
|
143
|
-
}, {
|
|
144
|
-
readonly clue: "Where conversations happen without speaking.";
|
|
145
|
-
readonly id: "chat";
|
|
146
|
-
}, {
|
|
147
|
-
readonly clue: "The place to redefine who you are.";
|
|
148
|
-
readonly id: "edit-profile";
|
|
149
|
-
}, {
|
|
150
|
-
readonly clue: "A single moment worth showing up for.";
|
|
151
|
-
readonly id: "event";
|
|
152
|
-
}, {
|
|
153
|
-
readonly clue: "What’s happening around you, right now.";
|
|
154
|
-
readonly id: "events-near-me";
|
|
155
|
-
}, {
|
|
156
|
-
readonly clue: "A collection of things worth attending.";
|
|
157
|
-
readonly id: "events";
|
|
158
|
-
}, {
|
|
159
|
-
readonly clue: "What’s happening in a wider area—not just nearby.";
|
|
160
|
-
readonly id: "events/region";
|
|
161
|
-
}, {
|
|
162
|
-
readonly clue: "Where fun becomes a challenge.";
|
|
163
|
-
readonly id: "games";
|
|
164
|
-
}, {
|
|
165
|
-
readonly clue: "Your starting point for everything.";
|
|
166
|
-
readonly id: "home";
|
|
167
|
-
}, {
|
|
168
|
-
readonly clue: "Where the app taps you on the shoulder.";
|
|
169
|
-
readonly id: "notifications";
|
|
170
|
-
}, {
|
|
171
|
-
readonly clue: "Where you fine-tune your experience.";
|
|
172
|
-
readonly id: "options";
|
|
173
|
-
}, {
|
|
174
|
-
readonly clue: "A single collaborator in the ecosystem.";
|
|
175
|
-
readonly id: "partner";
|
|
176
|
-
}, {
|
|
177
|
-
readonly clue: "The network behind the scenes.";
|
|
178
|
-
readonly id: "partners";
|
|
179
|
-
}, {
|
|
180
|
-
readonly clue: "Where you share something with everyone.";
|
|
181
|
-
readonly id: "post";
|
|
182
|
-
}, {
|
|
183
|
-
readonly clue: "Your identity, on display.";
|
|
184
|
-
readonly id: "profile";
|
|
185
|
-
}, {
|
|
186
|
-
readonly clue: "One provider offering something valuable.";
|
|
187
|
-
readonly id: "vendor";
|
|
188
|
-
}, {
|
|
189
|
-
readonly clue: "A marketplace of providers.";
|
|
190
|
-
readonly id: "vendors";
|
|
191
|
-
}, {
|
|
192
|
-
readonly clue: "People who stopped by to see you.";
|
|
193
|
-
readonly id: "visitors";
|
|
194
|
-
}];
|
|
195
|
-
type GamePlacement = (typeof gameScreenIdentifierList)[number]["id"];
|
|
196
|
-
type GamePlacementClue = (typeof gameScreenIdentifierList)[number]["clue"];
|
|
197
|
-
declare enum EnumGameType {
|
|
198
|
-
DAILY_CLUE = "dailyClue"
|
|
199
|
-
}
|
|
200
|
-
declare const gameTypeToDisplayName: Record<EnumGameType, string>;
|
|
201
|
-
type GameDate = {
|
|
202
|
-
startDate: Date;
|
|
203
|
-
endDate: Date;
|
|
204
|
-
};
|
|
205
|
-
type BaseGame = {
|
|
206
|
-
gameDate: GameDate;
|
|
207
|
-
gameSolution: string;
|
|
208
|
-
gameType: EnumGameType;
|
|
209
|
-
};
|
|
210
|
-
type DailyClueGameData = {
|
|
211
|
-
gameFields: BaseGame;
|
|
212
|
-
lastFoundDate: Date | null;
|
|
213
|
-
points: number;
|
|
214
|
-
letterInfo: {
|
|
215
|
-
collected: string[] | null;
|
|
216
|
-
shuffled: string[];
|
|
217
|
-
todaysLetter: string | null;
|
|
218
|
-
todaysClue: GamePlacementClue | null;
|
|
219
|
-
todaysPlacement: GamePlacement | null;
|
|
220
|
-
};
|
|
221
|
-
streak: number;
|
|
222
|
-
};
|
|
223
|
-
type GameDataMap = {
|
|
224
|
-
[EnumGameType.DAILY_CLUE]: DailyClueGameData;
|
|
225
|
-
};
|
|
226
|
-
type GameData = {
|
|
227
|
-
[K in keyof GameDataMap]?: GameDataMap[K] | null;
|
|
228
|
-
};
|
|
229
|
-
declare enum EnumGameStatus {
|
|
230
|
-
GAME_COMPLETED = "GAME_COMPLETED",
|
|
231
|
-
GAME_LEFT = "GAME_LEFT",
|
|
232
|
-
GAME_IN_PROGRESS = "GAME_IN_PROGRESS"
|
|
233
|
-
}
|
|
234
|
-
type GameHistory = {
|
|
235
|
-
gameDate: GameDate;
|
|
236
|
-
gameStatus: EnumGameStatus;
|
|
237
|
-
gameType: EnumGameType;
|
|
238
|
-
pointsEarned: number;
|
|
239
|
-
};
|
|
240
|
-
type GameType = {
|
|
241
|
-
_id: string;
|
|
242
|
-
active: boolean;
|
|
243
|
-
createdAt: Date;
|
|
244
|
-
deletedAt: Date | null;
|
|
245
|
-
gameData: GameData | null;
|
|
246
|
-
gameHistory: GameHistory[] | null;
|
|
247
|
-
owner: OwnerType;
|
|
248
|
-
points: number;
|
|
249
|
-
updatedAt: Date | null;
|
|
250
|
-
};
|
|
251
|
-
type GameLeaderboard = {
|
|
252
|
-
gameHistory: GameHistory[] | null;
|
|
253
|
-
overallPoints: number;
|
|
254
|
-
owner: OwnerType;
|
|
255
|
-
};
|
|
256
|
-
|
|
257
141
|
declare enum EnumAdShowOn {
|
|
258
142
|
EVENTS_PAGE = "Events_page",
|
|
259
143
|
FRONT_PAGE = "Front_page",
|
|
@@ -378,4 +262,4 @@ type PostType = Omit<PostFormData, "content" | "coverUpload"> & {
|
|
|
378
262
|
updatedAt: Date | null;
|
|
379
263
|
};
|
|
380
264
|
|
|
381
|
-
export { type AdType as A, type
|
|
265
|
+
export { type AdType as A, type PostFileInput as B, type CreateUserFormData as C, type StripeSubscription as D, EnumAdStatus as E, type SubscriptionPlanData as F, type SubscriptionPricingData as G, type UserActivity as H, type UserActivityEvent as I, type PartnerType as P, type ResourceByUser as R, type SubscriptionPlansResponse as S, type UserType as U, type SubscriptionStatusData as a, type PostType as b, EnumPostType as c, type AppSettingsType as d, type UserFormData as e, type PartnerFormData as f, type AdFormData as g, type CreateAdFormData as h, type CreatePartnerFormData as i, type PostFormData as j, type CreatePostFormData as k, type AppSettingsFormData as l, type CreateAppSettingsFormData as m, type AdResource as n, EnumAdShowOn as o, EnumAdStyle as p, EnumAdType as q, EnumPostContentType as r, type PostContentData as s, type PostContentFormData as t, type PostContentGame as u, type PostContentImage as v, type PostContentList as w, type PostContentTextarea as x, type PostContentType as y, type PostContentVideo as z };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -3,7 +3,8 @@ export { e as ContactUsFormData, f as CreateContactUsFormData, C as CreateLoginF
|
|
|
3
3
|
export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-CqrscA5x.mjs';
|
|
4
4
|
import { c as EventListItemType } from '../global-MMBYi34A.mjs';
|
|
5
5
|
export { A as AssociateType, r as BaseResourceType, B as BaseResourceTypeFormData, C as Category, n as CreateEventFormData, p as CreateEventInfoFormData, s as CreateFormData, t as CreateUnregisteredVendorFormData, j as CreateVendorFormData, l as CreateVendorInfoFormData, D as DateTimeType, u as DateTimeWithPriceType, v as DeviceInfo, m as EventFormData, o as EventInfoFormData, d as EventInfoType, w as EventStatusType, E as EventType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, x as LocationGeoType, L as LocationType, N as Nullable, O as OptionItem, y as OwnerType, P as PaymentInfoType, z as PosterUsageType, R as RefundPolicy, H as Region, J as RelationDate, e as RelationType, b as Requirement, f as ResourceConnectionsType, K as ResourceContactDetailsType, M as ResourceDetails, Q as ResourceImageType, T as SocialMediaType, S as StallType, W as Subcategory, X as SubcategoryItems, Y as TermsAgreement, q as UnregisteredVendorFormData, Z as UnregisteredVendorInvitationType, U as UnregisteredVendorType, h as UserLicenceType, _ as VendorAttributes, $ as VendorCalendarData, i as VendorFormData, k as VendorInfoFormData, g as VendorInfoType, a0 as VendorProductList, V as VendorType } from '../global-MMBYi34A.mjs';
|
|
6
|
-
export {
|
|
6
|
+
export { g as AdFormData, n as AdResource, A as AdType, l as AppSettingsFormData, d as AppSettingsType, h as CreateAdFormData, m as CreateAppSettingsFormData, i as CreatePartnerFormData, k as CreatePostFormData, C as CreateUserFormData, o as EnumAdShowOn, E as EnumAdStatus, p as EnumAdStyle, q as EnumAdType, r as EnumPostContentType, c as EnumPostType, f as PartnerFormData, P as PartnerType, s as PostContentData, t as PostContentFormData, u as PostContentGame, v as PostContentImage, w as PostContentList, x as PostContentTextarea, y as PostContentType, z as PostContentVideo, B as PostFileInput, j as PostFormData, b as PostType, R as ResourceByUser, D as StripeSubscription, F as SubscriptionPlanData, S as SubscriptionPlansResponse, G as SubscriptionPricingData, a as SubscriptionStatusData, H as UserActivity, I as UserActivityEvent, e as UserFormData, U as UserType } from '../post-wptsHKVN.mjs';
|
|
7
|
+
export { B as BaseGame, D as DailyClueGameData, E as EnumGameStatus, b as EnumGameType, c as GameData, d as GameDate, e as GameHistory, a as GameLeaderboard, f as GamePlacement, g as GamePlacementClue, G as GameType, h as gameScreenIdentifierList, i as gameTypeToDisplayName } from '../game-DTrJRy_s.mjs';
|
|
7
8
|
import 'react-hook-form';
|
|
8
9
|
|
|
9
10
|
interface AdminUpdateResourceType {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ export { e as ContactUsFormData, f as CreateContactUsFormData, C as CreateLoginF
|
|
|
3
3
|
export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-2FaGRW-i.js';
|
|
4
4
|
import { c as EventListItemType } from '../global-B0WdAD-8.js';
|
|
5
5
|
export { A as AssociateType, r as BaseResourceType, B as BaseResourceTypeFormData, C as Category, n as CreateEventFormData, p as CreateEventInfoFormData, s as CreateFormData, t as CreateUnregisteredVendorFormData, j as CreateVendorFormData, l as CreateVendorInfoFormData, D as DateTimeType, u as DateTimeWithPriceType, v as DeviceInfo, m as EventFormData, o as EventInfoFormData, d as EventInfoType, w as EventStatusType, E as EventType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, x as LocationGeoType, L as LocationType, N as Nullable, O as OptionItem, y as OwnerType, P as PaymentInfoType, z as PosterUsageType, R as RefundPolicy, H as Region, J as RelationDate, e as RelationType, b as Requirement, f as ResourceConnectionsType, K as ResourceContactDetailsType, M as ResourceDetails, Q as ResourceImageType, T as SocialMediaType, S as StallType, W as Subcategory, X as SubcategoryItems, Y as TermsAgreement, q as UnregisteredVendorFormData, Z as UnregisteredVendorInvitationType, U as UnregisteredVendorType, h as UserLicenceType, _ as VendorAttributes, $ as VendorCalendarData, i as VendorFormData, k as VendorInfoFormData, g as VendorInfoType, a0 as VendorProductList, V as VendorType } from '../global-B0WdAD-8.js';
|
|
6
|
-
export {
|
|
6
|
+
export { g as AdFormData, n as AdResource, A as AdType, l as AppSettingsFormData, d as AppSettingsType, h as CreateAdFormData, m as CreateAppSettingsFormData, i as CreatePartnerFormData, k as CreatePostFormData, C as CreateUserFormData, o as EnumAdShowOn, E as EnumAdStatus, p as EnumAdStyle, q as EnumAdType, r as EnumPostContentType, c as EnumPostType, f as PartnerFormData, P as PartnerType, s as PostContentData, t as PostContentFormData, u as PostContentGame, v as PostContentImage, w as PostContentList, x as PostContentTextarea, y as PostContentType, z as PostContentVideo, B as PostFileInput, j as PostFormData, b as PostType, R as ResourceByUser, D as StripeSubscription, F as SubscriptionPlanData, S as SubscriptionPlansResponse, G as SubscriptionPricingData, a as SubscriptionStatusData, H as UserActivity, I as UserActivityEvent, e as UserFormData, U as UserType } from '../post-DXOToXeT.js';
|
|
7
|
+
export { B as BaseGame, D as DailyClueGameData, E as EnumGameStatus, b as EnumGameType, c as GameData, d as GameDate, e as GameHistory, a as GameLeaderboard, f as GamePlacement, g as GamePlacementClue, G as GameType, h as gameScreenIdentifierList, i as gameTypeToDisplayName } from '../game-lvz2AUuu.js';
|
|
7
8
|
import 'react-hook-form';
|
|
8
9
|
|
|
9
10
|
interface AdminUpdateResourceType {
|
package/dist/types/index.mjs
CHANGED
|
@@ -4,14 +4,16 @@ import {
|
|
|
4
4
|
EnumAdStatus,
|
|
5
5
|
EnumAdStyle,
|
|
6
6
|
EnumAdType,
|
|
7
|
-
EnumGameStatus,
|
|
8
|
-
EnumGameType,
|
|
9
7
|
EnumPostContentType,
|
|
10
8
|
EnumPostType,
|
|
11
|
-
EnumVerificationType
|
|
9
|
+
EnumVerificationType
|
|
10
|
+
} from "../chunk-KPO6ZYQ4.mjs";
|
|
11
|
+
import {
|
|
12
|
+
EnumGameStatus,
|
|
13
|
+
EnumGameType,
|
|
12
14
|
gameScreenIdentifierList,
|
|
13
15
|
gameTypeToDisplayName
|
|
14
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-QG5DPPZI.mjs";
|
|
15
17
|
export {
|
|
16
18
|
EnumActivity,
|
|
17
19
|
EnumAdShowOn,
|
package/dist/utils/index.cjs
CHANGED
|
@@ -36,6 +36,7 @@ __export(utils_exports, {
|
|
|
36
36
|
availableRegionTypes: () => availableRegionTypes,
|
|
37
37
|
capitalizeFirstLetter: () => capitalizeFirstLetter,
|
|
38
38
|
cluemartSocialMedia: () => cluemartSocialMedia,
|
|
39
|
+
computeDailyClueState: () => computeDailyClueState,
|
|
39
40
|
dateFormat: () => dateFormat,
|
|
40
41
|
formatDate: () => formatDate,
|
|
41
42
|
formatTimestamp: () => formatTimestamp,
|
|
@@ -46,6 +47,7 @@ __export(utils_exports, {
|
|
|
46
47
|
normalizeUrl: () => normalizeUrl,
|
|
47
48
|
paymentMethodOptions: () => paymentMethodOptions,
|
|
48
49
|
removeTypename: () => removeTypename,
|
|
50
|
+
seededShuffle: () => seededShuffle,
|
|
49
51
|
sortDatesChronologically: () => sortDatesChronologically,
|
|
50
52
|
statusOptions: () => statusOptions,
|
|
51
53
|
timeFormat: () => timeFormat,
|
|
@@ -53,11 +55,167 @@ __export(utils_exports, {
|
|
|
53
55
|
truncateText: () => truncateText
|
|
54
56
|
});
|
|
55
57
|
module.exports = __toCommonJS(utils_exports);
|
|
58
|
+
|
|
59
|
+
// src/utils/dailyClueGame.ts
|
|
56
60
|
var import_dayjs = __toESM(require("dayjs"));
|
|
61
|
+
var import_utc = __toESM(require("dayjs/plugin/utc"));
|
|
62
|
+
|
|
63
|
+
// src/types/game.ts
|
|
64
|
+
var gameScreenIdentifierList = [
|
|
65
|
+
{
|
|
66
|
+
clue: "Where your actions turn into a timeline.",
|
|
67
|
+
id: "activities"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
clue: "Where conversations happen without speaking.",
|
|
71
|
+
id: "chat"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
clue: "The place to redefine who you are.",
|
|
75
|
+
id: "edit-profile"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
clue: "A single moment worth showing up for.",
|
|
79
|
+
id: "event"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
clue: "What\u2019s happening around you, right now.",
|
|
83
|
+
id: "events-near-me"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
clue: "A collection of things worth attending.",
|
|
87
|
+
id: "events"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
clue: "What\u2019s happening in a wider area\u2014not just nearby.",
|
|
91
|
+
id: "events/region"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
clue: "Where fun becomes a challenge.",
|
|
95
|
+
id: "games"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
clue: "Your starting point for everything.",
|
|
99
|
+
id: "home"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
clue: "Where the app taps you on the shoulder.",
|
|
103
|
+
id: "notifications"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
clue: "Where you fine-tune your experience.",
|
|
107
|
+
id: "options"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
clue: "A single collaborator in the ecosystem.",
|
|
111
|
+
id: "partner"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
clue: "The network behind the scenes.",
|
|
115
|
+
id: "partners"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
clue: "Where you share something with everyone.",
|
|
119
|
+
id: "post"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
clue: "Your identity, on display.",
|
|
123
|
+
id: "profile"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
clue: "One provider offering something valuable.",
|
|
127
|
+
id: "vendor"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
clue: "A marketplace of providers.",
|
|
131
|
+
id: "vendors"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
clue: "People who stopped by to see you.",
|
|
135
|
+
id: "visitors"
|
|
136
|
+
}
|
|
137
|
+
];
|
|
138
|
+
|
|
139
|
+
// src/utils/dailyClueGame.ts
|
|
140
|
+
import_dayjs.default.extend(import_utc.default);
|
|
141
|
+
function createSeededRng(seed) {
|
|
142
|
+
let t = seed >>> 0;
|
|
143
|
+
return function random() {
|
|
144
|
+
t += 1831565813;
|
|
145
|
+
let x = t;
|
|
146
|
+
x = Math.imul(x ^ x >>> 15, x | 1);
|
|
147
|
+
x ^= x + Math.imul(x ^ x >>> 7, x | 61);
|
|
148
|
+
return ((x ^ x >>> 14) >>> 0) / 4294967296;
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
function hashStringToNumber(seed) {
|
|
152
|
+
let hash = 2166136261;
|
|
153
|
+
for (let i = 0; i < seed.length; i++) {
|
|
154
|
+
hash ^= seed.codePointAt(i) ?? 0;
|
|
155
|
+
hash = Math.imul(hash, 16777619);
|
|
156
|
+
}
|
|
157
|
+
return hash >>> 0;
|
|
158
|
+
}
|
|
159
|
+
function seededShuffle(array, seed) {
|
|
160
|
+
const rng = createSeededRng(hashStringToNumber(seed));
|
|
161
|
+
const result = [...array];
|
|
162
|
+
for (let i = result.length - 1; i > 0; i--) {
|
|
163
|
+
const j = Math.floor(rng() * (i + 1));
|
|
164
|
+
[result[i], result[j]] = [result[j], result[i]];
|
|
165
|
+
}
|
|
166
|
+
return result;
|
|
167
|
+
}
|
|
168
|
+
function getDayIndex(startDate) {
|
|
169
|
+
return (0, import_dayjs.default)().utc().startOf("day").diff((0, import_dayjs.default)(startDate).utc().startOf("day"), "day");
|
|
170
|
+
}
|
|
171
|
+
function computeDailyClueState(dailyClue) {
|
|
172
|
+
const { startDate, endDate } = dailyClue.gameFields.gameDate;
|
|
173
|
+
const { shuffled, collected } = dailyClue.letterInfo;
|
|
174
|
+
const shuffledPlacements = seededShuffle(
|
|
175
|
+
gameScreenIdentifierList,
|
|
176
|
+
startDate.toISOString()
|
|
177
|
+
);
|
|
178
|
+
const today = (0, import_dayjs.default)().utc().startOf("day");
|
|
179
|
+
const start = (0, import_dayjs.default)(startDate).utc().startOf("day");
|
|
180
|
+
const end = (0, import_dayjs.default)(endDate).utc().startOf("day");
|
|
181
|
+
if (today.isBefore(start)) {
|
|
182
|
+
return null;
|
|
183
|
+
}
|
|
184
|
+
if (today.isAfter(end)) {
|
|
185
|
+
return null;
|
|
186
|
+
}
|
|
187
|
+
const index = getDayIndex(startDate);
|
|
188
|
+
if (index < 0 || index >= shuffled.length) return null;
|
|
189
|
+
if (collected?.includes(shuffled[index])) {
|
|
190
|
+
return null;
|
|
191
|
+
}
|
|
192
|
+
if (today.isAfter(end)) {
|
|
193
|
+
return {
|
|
194
|
+
gameHistory: {
|
|
195
|
+
gameDate: dailyClue.gameFields.gameDate,
|
|
196
|
+
gameStatus: "GAME_COMPLETED" /* GAME_COMPLETED */,
|
|
197
|
+
gameType: dailyClue.gameFields.gameType,
|
|
198
|
+
pointsEarned: dailyClue.points
|
|
199
|
+
},
|
|
200
|
+
todaysClue: null,
|
|
201
|
+
todaysLetter: null,
|
|
202
|
+
todaysPlacement: null
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
return {
|
|
206
|
+
gameHistory: null,
|
|
207
|
+
todaysClue: shuffledPlacements[index].clue,
|
|
208
|
+
todaysLetter: shuffled[index],
|
|
209
|
+
todaysPlacement: shuffledPlacements[index].id
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// src/utils/index.ts
|
|
214
|
+
var import_dayjs2 = __toESM(require("dayjs"));
|
|
57
215
|
var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat.js"));
|
|
58
216
|
var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
|
|
59
217
|
var import_timezone = __toESM(require("dayjs/plugin/timezone.js"));
|
|
60
|
-
var
|
|
218
|
+
var import_utc2 = __toESM(require("dayjs/plugin/utc.js"));
|
|
61
219
|
|
|
62
220
|
// src/enums/index.ts
|
|
63
221
|
var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus2) => {
|
|
@@ -98,17 +256,17 @@ var EnumRegions = /* @__PURE__ */ ((EnumRegions2) => {
|
|
|
98
256
|
// src/utils/index.ts
|
|
99
257
|
var dateFormat = "DD-MM-YYYY";
|
|
100
258
|
var timeFormat = "HH:mm";
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
259
|
+
import_dayjs2.default.extend(import_customParseFormat.default);
|
|
260
|
+
import_dayjs2.default.extend(import_utc2.default);
|
|
261
|
+
import_dayjs2.default.extend(import_timezone.default);
|
|
262
|
+
import_dayjs2.default.extend(import_isSameOrAfter.default);
|
|
105
263
|
var NZ_TZ = "Pacific/Auckland";
|
|
106
264
|
function toNZTime(date) {
|
|
107
|
-
return (0,
|
|
265
|
+
return (0, import_dayjs2.default)(date).tz(NZ_TZ).format();
|
|
108
266
|
}
|
|
109
267
|
var formatDate = (dateStr, display = "datetime", timeStr) => {
|
|
110
268
|
const dateTimeStr = timeStr ? `${dateStr} ${timeStr}` : dateStr;
|
|
111
|
-
const dateTime = timeStr ? (0,
|
|
269
|
+
const dateTime = timeStr ? (0, import_dayjs2.default)(dateTimeStr, `${dateFormat} ${timeFormat}`) : (0, import_dayjs2.default)(dateStr, dateFormat);
|
|
112
270
|
const formattedDate = dateTime.format("dddd, D MMMM, YYYY");
|
|
113
271
|
const formattedTime = dateTime.format("h:mm a");
|
|
114
272
|
switch (display) {
|
|
@@ -123,9 +281,9 @@ var formatDate = (dateStr, display = "datetime", timeStr) => {
|
|
|
123
281
|
}
|
|
124
282
|
};
|
|
125
283
|
var getCurrentAndFutureDates = (dates) => {
|
|
126
|
-
const now = (0,
|
|
284
|
+
const now = (0, import_dayjs2.default)();
|
|
127
285
|
return dates.filter((dateObj) => {
|
|
128
|
-
const dateTime = (0,
|
|
286
|
+
const dateTime = (0, import_dayjs2.default)(
|
|
129
287
|
`${dateObj.startDate} ${dateObj.startTime}`,
|
|
130
288
|
`${dateFormat} ${timeFormat}`
|
|
131
289
|
);
|
|
@@ -133,16 +291,15 @@ var getCurrentAndFutureDates = (dates) => {
|
|
|
133
291
|
});
|
|
134
292
|
};
|
|
135
293
|
var isFutureDatesBeforeThreshold = (date, minHoursFromNow) => {
|
|
136
|
-
const threshold = minHoursFromNow ? (0,
|
|
137
|
-
const dateTime = (0,
|
|
294
|
+
const threshold = minHoursFromNow ? (0, import_dayjs2.default)().add(minHoursFromNow, "hour") : (0, import_dayjs2.default)().startOf("day");
|
|
295
|
+
const dateTime = (0, import_dayjs2.default)(
|
|
138
296
|
`${date.startDate} ${date.startTime}`,
|
|
139
297
|
`${dateFormat} ${timeFormat}`
|
|
140
298
|
);
|
|
141
299
|
return dateTime.isSameOrAfter(threshold);
|
|
142
300
|
};
|
|
143
301
|
var formatTimestamp = (timestamp) => {
|
|
144
|
-
const formattedDate = (0,
|
|
145
|
-
const formattedTime = (0, import_dayjs.default)(timestamp).tz("Pacific/Auckland").format(timeFormat);
|
|
302
|
+
const formattedDate = (0, import_dayjs2.default)(timestamp).tz("Pacific/Auckland").format(dateFormat);
|
|
146
303
|
return formatDate(formattedDate, "date");
|
|
147
304
|
};
|
|
148
305
|
var isIsoDateString = (value) => {
|
|
@@ -193,8 +350,8 @@ function sortDatesChronologically(dates) {
|
|
|
193
350
|
}
|
|
194
351
|
return [...dates].sort((a, b) => {
|
|
195
352
|
const dateTimeFormat = `${dateFormat} ${timeFormat}`;
|
|
196
|
-
const dateA = (0,
|
|
197
|
-
const dateB = (0,
|
|
353
|
+
const dateA = (0, import_dayjs2.default)(`${a.startDate} ${a.startTime}`, dateTimeFormat);
|
|
354
|
+
const dateB = (0, import_dayjs2.default)(`${b.startDate} ${b.startTime}`, dateTimeFormat);
|
|
198
355
|
return dateA.valueOf() - dateB.valueOf();
|
|
199
356
|
});
|
|
200
357
|
}
|
|
@@ -246,6 +403,7 @@ var ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cl
|
|
|
246
403
|
availableRegionTypes,
|
|
247
404
|
capitalizeFirstLetter,
|
|
248
405
|
cluemartSocialMedia,
|
|
406
|
+
computeDailyClueState,
|
|
249
407
|
dateFormat,
|
|
250
408
|
formatDate,
|
|
251
409
|
formatTimestamp,
|
|
@@ -256,6 +414,7 @@ var ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cl
|
|
|
256
414
|
normalizeUrl,
|
|
257
415
|
paymentMethodOptions,
|
|
258
416
|
removeTypename,
|
|
417
|
+
seededShuffle,
|
|
259
418
|
sortDatesChronologically,
|
|
260
419
|
statusOptions,
|
|
261
420
|
timeFormat,
|