@timardex/cluemart-shared 1.5.532 → 1.5.534
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-TXHYVMOH.mjs → chunk-N26FUCHY.mjs} +11 -2
- package/dist/chunk-N26FUCHY.mjs.map +1 -0
- package/dist/graphql/index.d.mts +2 -1
- package/dist/graphql/index.d.ts +2 -1
- package/dist/hooks/index.cjs +10 -1
- 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 +1 -1
- package/dist/images/index.cjs +10 -1
- package/dist/images/index.cjs.map +1 -1
- package/dist/images/index.d.mts +1 -1
- package/dist/images/index.d.ts +1 -1
- package/dist/images/index.mjs +1 -1
- package/dist/images/mini-market1.webp +0 -0
- package/dist/images/mini-market1.webp.d.ts +2 -0
- package/dist/images/mini-market2.webp +0 -0
- package/dist/images/mini-market2.webp.d.ts +2 -0
- package/dist/images/mini-market3.webp +0 -0
- package/dist/images/mini-market3.webp.d.ts +2 -0
- package/dist/images/mini-market4.webp +0 -0
- package/dist/images/mini-market4.webp.d.ts +2 -0
- package/dist/images/mini-market5.webp +0 -0
- package/dist/images/mini-market5.webp.d.ts +2 -0
- package/dist/index.cjs +10 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +58 -61
- package/dist/index.d.ts +58 -61
- package/dist/index.mjs +10 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{post-DZ_wwOQN.d.ts → post-CISTnZDs.d.ts} +10 -5
- package/dist/{post-BRychs8s.d.mts → post-Dpg2AwRf.d.mts} +10 -5
- package/dist/types/index.d.mts +3 -9
- package/dist/types/index.d.ts +3 -9
- package/package.json +1 -1
- package/dist/chunk-TXHYVMOH.mjs.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EnumOSPlatform, EnumUserRole, EnumSubscriptionStatus, EnumUserLicence, EnumResourceType, EnumPartnerType } from './enums/index.js';
|
|
2
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, K as ResourceContactDetailsType, T as SocialMediaType, y as OwnerType } from './global-B0WdAD-8.js';
|
|
3
|
+
import { PosterAssetId } from './images/index.js';
|
|
3
4
|
import { B as BaseGame } from './game-DhiKOr9_.js';
|
|
4
5
|
|
|
5
6
|
type UserFormData = {
|
|
@@ -139,6 +140,13 @@ type AppSettingsType = AppSettingsFormData & {
|
|
|
139
140
|
updatedAt: Date | null;
|
|
140
141
|
};
|
|
141
142
|
|
|
143
|
+
interface PosterInputType {
|
|
144
|
+
description: string;
|
|
145
|
+
posterName: PosterAssetId;
|
|
146
|
+
resourceId: string;
|
|
147
|
+
resourceType: EnumResourceType;
|
|
148
|
+
}
|
|
149
|
+
|
|
142
150
|
interface SchoolFormData {
|
|
143
151
|
_id?: string;
|
|
144
152
|
active: boolean;
|
|
@@ -168,10 +176,7 @@ type SchoolReturnType = {
|
|
|
168
176
|
school: SchoolType;
|
|
169
177
|
users: SchoolRegisteredUserType[];
|
|
170
178
|
};
|
|
171
|
-
|
|
172
|
-
posterName: string;
|
|
173
|
-
resourceId: string;
|
|
174
|
-
}
|
|
179
|
+
type MarketingMaterialRequestInputType = Pick<PosterInputType, "resourceId" | "posterName">;
|
|
175
180
|
|
|
176
181
|
declare enum EnumAdShowOn {
|
|
177
182
|
EVENTS_PAGE = "Events_page",
|
|
@@ -297,4 +302,4 @@ type PostType = Omit<PostFormData, "content" | "coverUpload"> & {
|
|
|
297
302
|
updatedAt: Date | null;
|
|
298
303
|
};
|
|
299
304
|
|
|
300
|
-
export { type AdType as A, type PostContentList as B, type CreateUserFormData as C, type PostContentTextarea as D, EnumAdStatus as E, type PostContentType as F, type PostContentVideo as G, type PostFileInput as H, type
|
|
305
|
+
export { type AdType as A, type PostContentList as B, type CreateUserFormData as C, type PostContentTextarea as D, EnumAdStatus as E, type PostContentType as F, type PostContentVideo as G, type PostFileInput as H, type PosterInputType as I, type SchoolRegisteredUserType as J, type StripeSubscription as K, type SubscriptionPlanData as L, type MarketingMaterialRequestInputType as M, type SubscriptionPricingData as N, type UserActivity as O, type PartnerType as P, type UserActivityEvent as Q, 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 SchoolReturnType as e, type SchoolType as f, type UserFormData as g, type PartnerFormData as h, type AdFormData as i, type CreateAdFormData as j, type CreatePartnerFormData as k, type PostFormData as l, type CreatePostFormData as m, type AppSettingsFormData as n, type CreateAppSettingsFormData as o, type SchoolFormData as p, type CreateSchoolFormData as q, type AdResource as r, EnumAdShowOn as s, EnumAdStyle as t, EnumAdType as u, EnumPostContentType as v, type PostContentData as w, type PostContentFormData as x, type PostContentGame as y, type PostContentImage as z };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EnumOSPlatform, EnumUserRole, EnumSubscriptionStatus, EnumUserLicence, EnumResourceType, EnumPartnerType } from './enums/index.mjs';
|
|
2
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, K as ResourceContactDetailsType, T as SocialMediaType, y as OwnerType } from './global-MMBYi34A.mjs';
|
|
3
|
+
import { PosterAssetId } from './images/index.mjs';
|
|
3
4
|
import { B as BaseGame } from './game-CC5mxG64.mjs';
|
|
4
5
|
|
|
5
6
|
type UserFormData = {
|
|
@@ -139,6 +140,13 @@ type AppSettingsType = AppSettingsFormData & {
|
|
|
139
140
|
updatedAt: Date | null;
|
|
140
141
|
};
|
|
141
142
|
|
|
143
|
+
interface PosterInputType {
|
|
144
|
+
description: string;
|
|
145
|
+
posterName: PosterAssetId;
|
|
146
|
+
resourceId: string;
|
|
147
|
+
resourceType: EnumResourceType;
|
|
148
|
+
}
|
|
149
|
+
|
|
142
150
|
interface SchoolFormData {
|
|
143
151
|
_id?: string;
|
|
144
152
|
active: boolean;
|
|
@@ -168,10 +176,7 @@ type SchoolReturnType = {
|
|
|
168
176
|
school: SchoolType;
|
|
169
177
|
users: SchoolRegisteredUserType[];
|
|
170
178
|
};
|
|
171
|
-
|
|
172
|
-
posterName: string;
|
|
173
|
-
resourceId: string;
|
|
174
|
-
}
|
|
179
|
+
type MarketingMaterialRequestInputType = Pick<PosterInputType, "resourceId" | "posterName">;
|
|
175
180
|
|
|
176
181
|
declare enum EnumAdShowOn {
|
|
177
182
|
EVENTS_PAGE = "Events_page",
|
|
@@ -297,4 +302,4 @@ type PostType = Omit<PostFormData, "content" | "coverUpload"> & {
|
|
|
297
302
|
updatedAt: Date | null;
|
|
298
303
|
};
|
|
299
304
|
|
|
300
|
-
export { type AdType as A, type PostContentList as B, type CreateUserFormData as C, type PostContentTextarea as D, EnumAdStatus as E, type PostContentType as F, type PostContentVideo as G, type PostFileInput as H, type
|
|
305
|
+
export { type AdType as A, type PostContentList as B, type CreateUserFormData as C, type PostContentTextarea as D, EnumAdStatus as E, type PostContentType as F, type PostContentVideo as G, type PostFileInput as H, type PosterInputType as I, type SchoolRegisteredUserType as J, type StripeSubscription as K, type SubscriptionPlanData as L, type MarketingMaterialRequestInputType as M, type SubscriptionPricingData as N, type UserActivity as O, type PartnerType as P, type UserActivityEvent as Q, 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 SchoolReturnType as e, type SchoolType as f, type UserFormData as g, type PartnerFormData as h, type AdFormData as i, type CreateAdFormData as j, type CreatePartnerFormData as k, type PostFormData as l, type CreatePostFormData as m, type AppSettingsFormData as n, type CreateAppSettingsFormData as o, type SchoolFormData as p, type CreateSchoolFormData as q, type AdResource as r, EnumAdShowOn as s, EnumAdStyle as t, EnumAdType as u, EnumPostContentType as v, type PostContentData as w, type PostContentFormData as x, type PostContentGame as y, type PostContentImage as z };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -3,9 +3,10 @@ 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 { i as AdFormData, r as AdResource, A as AdType, n as AppSettingsFormData, d as AppSettingsType, j as CreateAdFormData, o as CreateAppSettingsFormData, k as CreatePartnerFormData, m as CreatePostFormData, q as CreateSchoolFormData, C as CreateUserFormData, s as EnumAdShowOn, E as EnumAdStatus, t as EnumAdStyle, u as EnumAdType, v as EnumPostContentType, c as EnumPostType, M as MarketingMaterialRequestInputType, h as PartnerFormData, P as PartnerType, w as PostContentData, x as PostContentFormData, y as PostContentGame, z as PostContentImage, B as PostContentList, D as PostContentTextarea, F as PostContentType, G as PostContentVideo, H as PostFileInput, l as PostFormData, b as PostType, R as ResourceByUser, p as SchoolFormData,
|
|
6
|
+
export { i as AdFormData, r as AdResource, A as AdType, n as AppSettingsFormData, d as AppSettingsType, j as CreateAdFormData, o as CreateAppSettingsFormData, k as CreatePartnerFormData, m as CreatePostFormData, q as CreateSchoolFormData, C as CreateUserFormData, s as EnumAdShowOn, E as EnumAdStatus, t as EnumAdStyle, u as EnumAdType, v as EnumPostContentType, c as EnumPostType, M as MarketingMaterialRequestInputType, h as PartnerFormData, P as PartnerType, w as PostContentData, x as PostContentFormData, y as PostContentGame, z as PostContentImage, B as PostContentList, D as PostContentTextarea, F as PostContentType, G as PostContentVideo, H as PostFileInput, l as PostFormData, b as PostType, I as PosterInputType, R as ResourceByUser, p as SchoolFormData, J as SchoolRegisteredUserType, e as SchoolReturnType, f as SchoolType, K as StripeSubscription, L as SubscriptionPlanData, S as SubscriptionPlansResponse, N as SubscriptionPricingData, a as SubscriptionStatusData, O as UserActivity, Q as UserActivityEvent, g as UserFormData, U as UserType } from '../post-Dpg2AwRf.mjs';
|
|
7
7
|
export { B as BaseGame, D as DailyClueGameData, E as EnumGameStatus, b as EnumGameType, c as GameDate, G as GameDocType, d as GameHistory, a as GameLeaderboard, e as GamePlacement, f as GamePlacementClue, g as GameType, h as gameScreenIdentifierList, i as gameTypeToDisplayName } from '../game-CC5mxG64.mjs';
|
|
8
8
|
import 'react-hook-form';
|
|
9
|
+
import '../images/index.mjs';
|
|
9
10
|
|
|
10
11
|
interface AdminUpdateResourceType {
|
|
11
12
|
active: boolean;
|
|
@@ -13,13 +14,6 @@ interface AdminUpdateResourceType {
|
|
|
13
14
|
resourceType: EnumResourceType;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
|
-
interface PosterInputType {
|
|
17
|
-
description: string;
|
|
18
|
-
posterName: string;
|
|
19
|
-
resourceId: string;
|
|
20
|
-
resourceType: EnumResourceType;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
17
|
type GoogleAddressComponent = {
|
|
24
18
|
longName?: string;
|
|
25
19
|
shortName?: string;
|
|
@@ -39,4 +33,4 @@ interface GoogleImportedMarket extends EventListItemType {
|
|
|
39
33
|
website?: string;
|
|
40
34
|
}
|
|
41
35
|
|
|
42
|
-
export { type AdminUpdateResourceType, EventListItemType, type GoogleAddressComponent, type GoogleImportedMarket
|
|
36
|
+
export { type AdminUpdateResourceType, EventListItemType, type GoogleAddressComponent, type GoogleImportedMarket };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,9 +3,10 @@ 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 { i as AdFormData, r as AdResource, A as AdType, n as AppSettingsFormData, d as AppSettingsType, j as CreateAdFormData, o as CreateAppSettingsFormData, k as CreatePartnerFormData, m as CreatePostFormData, q as CreateSchoolFormData, C as CreateUserFormData, s as EnumAdShowOn, E as EnumAdStatus, t as EnumAdStyle, u as EnumAdType, v as EnumPostContentType, c as EnumPostType, M as MarketingMaterialRequestInputType, h as PartnerFormData, P as PartnerType, w as PostContentData, x as PostContentFormData, y as PostContentGame, z as PostContentImage, B as PostContentList, D as PostContentTextarea, F as PostContentType, G as PostContentVideo, H as PostFileInput, l as PostFormData, b as PostType, R as ResourceByUser, p as SchoolFormData,
|
|
6
|
+
export { i as AdFormData, r as AdResource, A as AdType, n as AppSettingsFormData, d as AppSettingsType, j as CreateAdFormData, o as CreateAppSettingsFormData, k as CreatePartnerFormData, m as CreatePostFormData, q as CreateSchoolFormData, C as CreateUserFormData, s as EnumAdShowOn, E as EnumAdStatus, t as EnumAdStyle, u as EnumAdType, v as EnumPostContentType, c as EnumPostType, M as MarketingMaterialRequestInputType, h as PartnerFormData, P as PartnerType, w as PostContentData, x as PostContentFormData, y as PostContentGame, z as PostContentImage, B as PostContentList, D as PostContentTextarea, F as PostContentType, G as PostContentVideo, H as PostFileInput, l as PostFormData, b as PostType, I as PosterInputType, R as ResourceByUser, p as SchoolFormData, J as SchoolRegisteredUserType, e as SchoolReturnType, f as SchoolType, K as StripeSubscription, L as SubscriptionPlanData, S as SubscriptionPlansResponse, N as SubscriptionPricingData, a as SubscriptionStatusData, O as UserActivity, Q as UserActivityEvent, g as UserFormData, U as UserType } from '../post-CISTnZDs.js';
|
|
7
7
|
export { B as BaseGame, D as DailyClueGameData, E as EnumGameStatus, b as EnumGameType, c as GameDate, G as GameDocType, d as GameHistory, a as GameLeaderboard, e as GamePlacement, f as GamePlacementClue, g as GameType, h as gameScreenIdentifierList, i as gameTypeToDisplayName } from '../game-DhiKOr9_.js';
|
|
8
8
|
import 'react-hook-form';
|
|
9
|
+
import '../images/index.js';
|
|
9
10
|
|
|
10
11
|
interface AdminUpdateResourceType {
|
|
11
12
|
active: boolean;
|
|
@@ -13,13 +14,6 @@ interface AdminUpdateResourceType {
|
|
|
13
14
|
resourceType: EnumResourceType;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
|
-
interface PosterInputType {
|
|
17
|
-
description: string;
|
|
18
|
-
posterName: string;
|
|
19
|
-
resourceId: string;
|
|
20
|
-
resourceType: EnumResourceType;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
17
|
type GoogleAddressComponent = {
|
|
24
18
|
longName?: string;
|
|
25
19
|
shortName?: string;
|
|
@@ -39,4 +33,4 @@ interface GoogleImportedMarket extends EventListItemType {
|
|
|
39
33
|
website?: string;
|
|
40
34
|
}
|
|
41
35
|
|
|
42
|
-
export { type AdminUpdateResourceType, EventListItemType, type GoogleAddressComponent, type GoogleImportedMarket
|
|
36
|
+
export { type AdminUpdateResourceType, EventListItemType, type GoogleAddressComponent, type GoogleImportedMarket };
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/images/index.ts"],"sourcesContent":["const PKG = \"@timardex/cluemart-shared\" as const;\nexport const IMAGE_EXTENSION = \".webp\" as const;\n\n/**\n * Basenames under the shared images directory — use with `getSharedImagePath` from `@timardex/cluemart-shared/images/node` (Express / Node).\n * This object is the single source of poster keys; `posters` is derived from it. Add an image with `IMAGE_EXTENSION` under `src/images/posters/` when adding an entry.\n * `images/node` reads this at runtime for `getSharedImagePath` allow-listing.\n */\nexport const posterIds = [\"poster1\", \"poster2\", \"poster3\"] as const;\n\nexport const posterFiles = Object.fromEntries(\n posterIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`]),\n) as {\n readonly [K in (typeof posterIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`;\n};\n\n/**\n * Basenames for assets under `src/images/clui/` in source; they are copied flat into `dist/images/` (same as posters).\n * `images/node` reads this at runtime for `getSharedImagePath` allow-listing.\n */\nexport const cluiIds = [\n \"cluiTui\",\n \"sima\",\n \"tablas\",\n \"telefonos\",\n \"ugralos\",\n] as const;\n\nexport const cluiFiles = Object.fromEntries(\n cluiIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`]),\n) as {\n readonly [K in (typeof cluiIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`;\n};\n\nexport const iconIds = [\n \"apple-maps-icon\",\n \"facebook\",\n \"google-maps-icon\",\n \"instagram\",\n \"meet\",\n \"poll\",\n \"tiktok\",\n \"tip\",\n \"waze-maps-icon\",\n \"website\",\n \"youtube\",\n] as const;\n\nexport const iconFiles = Object.fromEntries(\n iconIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`]),\n) as {\n readonly [K in (typeof iconIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`;\n};\n\nexport const badgeIds = [\"corporate\", \"private\", \"school\"] as const;\n\nexport const badgeFiles = Object.fromEntries(\n badgeIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`]),\n) as {\n readonly [K in (typeof badgeIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`;\n};\n\nexport const logoIds = [\n \"googleMaps-logo-dark\",\n \"googleMaps-logo-light\",\n \"logo\",\n \"logo-atr\",\n] as const;\n\nexport const logoFiles = Object.fromEntries(\n logoIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`]),\n) as {\n readonly [K in (typeof logoIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`;\n};\n\nexport const otherImagesIds = [\n \"banner-horizontal\",\n \"banner-vertical\",\n \"qr-code\",\n \"store-android\",\n \"store-ios\",\n] as const;\n\nexport const otherImagesFiles = Object.fromEntries(\n otherImagesIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`]),\n) as {\n readonly [K in (typeof otherImagesIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`;\n};\n\n/**\n * Module specifiers for each poster (not resolved file URLs). Use a static import or require with these paths\n * so your bundler resolves the file, e.g.\n * `import poster1 from \"@timardex/cluemart-shared/images/poster1.webp\"`\n * or `require(\"@timardex/cluemart-shared/images/poster1.webp\")` (React Native / Metro).\n *\n * Derived from `posterFiles` so keys and filenames stay aligned.\n */\nexport const posters = Object.fromEntries(\n (\n Object.entries(posterFiles) as [\n keyof typeof posterFiles,\n (typeof posterFiles)[keyof typeof posterFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof posterFiles]: `${typeof PKG}/images/${(typeof posterFiles)[K]}`;\n};\n\n/**\n * Module specifiers for Clui assets (same flat `@…/images/<file>.webp` pattern as posters), e.g.\n * `import clui from \"@timardex/cluemart-shared/images/cluiTui.webp\"`.\n */\nexport const cluiImages = Object.fromEntries(\n (\n Object.entries(cluiFiles) as [\n keyof typeof cluiFiles,\n (typeof cluiFiles)[keyof typeof cluiFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof cluiFiles]: `${typeof PKG}/images/${(typeof cluiFiles)[K]}`;\n};\n\nexport const icons = Object.fromEntries(\n (\n Object.entries(iconFiles) as [\n keyof typeof iconFiles,\n (typeof iconFiles)[keyof typeof iconFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof iconFiles]: `${typeof PKG}/images/${(typeof iconFiles)[K]}`;\n};\n\nexport const badges = Object.fromEntries(\n (\n Object.entries(badgeFiles) as [\n keyof typeof badgeFiles,\n (typeof badgeFiles)[keyof typeof badgeFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof badgeFiles]: `${typeof PKG}/images/${(typeof badgeFiles)[K]}`;\n};\n\nexport const logos = Object.fromEntries(\n (\n Object.entries(logoFiles) as [\n keyof typeof logoFiles,\n (typeof logoFiles)[keyof typeof logoFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof logoFiles]: `${typeof PKG}/images/${(typeof logoFiles)[K]}`;\n};\n\nexport const otherImages = Object.fromEntries(\n (\n Object.entries(otherImagesFiles) as [\n keyof typeof otherImagesFiles,\n (typeof otherImagesFiles)[keyof typeof otherImagesFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof otherImagesFiles]: `${typeof PKG}/images/${(typeof otherImagesFiles)[K]}`;\n};\n\nexport type PosterAssetId = keyof typeof posters;\n\n/** A single filename under the shared images directory (values of `posterFiles`). */\nexport type PosterImageBasename = (typeof posterFiles)[PosterAssetId];\n\nexport type CluiImageId = keyof typeof cluiImages;\n\n/** Basename under the shared images directory (values of `cluiFiles`). */\nexport type CluiImageBasename = (typeof cluiFiles)[CluiImageId];\n\nexport type IconId = keyof typeof icons;\nexport type IconBasename = (typeof iconFiles)[IconId];\n\nexport type BadgeId = keyof typeof badges;\nexport type BadgeBasename = (typeof badgeFiles)[BadgeId];\n\nexport type LogoId = keyof typeof logos;\nexport type LogoBasename = (typeof logoFiles)[LogoId];\n\nexport type OtherImagesId = keyof typeof otherImages;\nexport type OtherImagesBasename = (typeof otherImagesFiles)[OtherImagesId];\n"],"mappings":";AAAA,IAAM,MAAM;AACL,IAAM,kBAAkB;AAOxB,IAAM,YAAY,CAAC,WAAW,WAAW,SAAS;AAElD,IAAM,cAAc,OAAO;AAAA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