@timardex/cluemart-shared 1.5.530 → 1.5.532
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-534WN2SR.mjs → chunk-73ULMQM6.mjs} +2 -2
- package/dist/chunk-73ULMQM6.mjs.map +1 -0
- package/dist/{chunk-XEIQR6NA.mjs → chunk-QZE7FORG.mjs} +3 -3
- package/dist/{chunk-LZ2KFVBV.mjs → chunk-RRNJ54MF.mjs} +2 -2
- package/dist/chunk-TXHYVMOH.mjs +97 -0
- package/dist/chunk-TXHYVMOH.mjs.map +1 -0
- package/dist/enums/index.cjs +1 -1
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +1 -1
- package/dist/enums/index.d.ts +1 -1
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +67 -9
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +4 -4
- package/dist/images/apple-maps-icon.webp +0 -0
- package/dist/images/banner-horizontal.webp +0 -0
- package/dist/images/banner-vertical.webp +0 -0
- package/dist/images/cluiTui.webp +0 -0
- package/dist/images/corporate.webp +0 -0
- package/dist/images/corporate.webp.d.ts +2 -0
- package/dist/images/facebook.webp +0 -0
- package/dist/images/facebook.webp.d.ts +2 -0
- package/dist/images/google-maps-icon.webp +0 -0
- package/dist/images/google-maps-icon.webp.d.ts +2 -0
- package/dist/images/googleMaps-logo-dark.webp +0 -0
- package/dist/images/googleMaps-logo-dark.webp.d.ts +2 -0
- package/dist/images/googleMaps-logo-light.webp +0 -0
- package/dist/images/googleMaps-logo-light.webp.d.ts +2 -0
- package/dist/images/index.cjs +99 -11
- package/dist/images/index.cjs.map +1 -1
- package/dist/images/index.d.mts +36 -19
- package/dist/images/index.d.ts +36 -19
- package/dist/images/index.mjs +33 -3
- package/dist/images/instagram.webp +0 -0
- package/dist/images/instagram.webp.d.ts +2 -0
- package/dist/images/logo-atr.webp +0 -0
- package/dist/images/logo-atr.webp.d.ts +2 -0
- package/dist/images/logo.webp +0 -0
- package/dist/images/logo.webp.d.ts +2 -0
- package/dist/images/meet.webp +0 -0
- package/dist/images/meet.webp.d.ts +2 -0
- package/dist/images/node.cjs +32 -9
- package/dist/images/node.d.ts +35 -7
- package/dist/images/node.mjs +39 -9
- package/dist/images/poll.webp +0 -0
- package/dist/images/poll.webp.d.ts +2 -0
- package/dist/images/poster1.webp +0 -0
- package/dist/images/poster1.webp.d.ts +2 -0
- package/dist/images/poster2.webp +0 -0
- package/dist/images/poster2.webp.d.ts +2 -0
- package/dist/images/poster3.webp +0 -0
- package/dist/images/poster3.webp.d.ts +2 -0
- package/dist/images/private.webp +0 -0
- package/dist/images/private.webp.d.ts +2 -0
- package/dist/images/qr-code.webp +0 -0
- package/dist/images/qr-code.webp.d.ts +2 -0
- package/dist/images/school.webp +0 -0
- package/dist/images/school.webp.d.ts +2 -0
- package/dist/images/sima.webp +0 -0
- package/dist/images/sima.webp.d.ts +2 -0
- package/dist/images/store-android.webp +0 -0
- package/dist/images/store-android.webp.d.ts +2 -0
- package/dist/images/store-ios.webp +0 -0
- package/dist/images/store-ios.webp.d.ts +2 -0
- package/dist/images/tablas.webp +0 -0
- package/dist/images/tablas.webp.d.ts +2 -0
- package/dist/images/telefonos.webp +0 -0
- package/dist/images/telefonos.webp.d.ts +2 -0
- package/dist/images/tiktok.webp +0 -0
- package/dist/images/tiktok.webp.d.ts +2 -0
- package/dist/images/tip.webp +0 -0
- package/dist/images/tip.webp.d.ts +2 -0
- package/dist/images/ugralos.webp +0 -0
- package/dist/images/ugralos.webp.d.ts +2 -0
- package/dist/images/waze-maps-icon.webp +0 -0
- package/dist/images/waze-maps-icon.webp.d.ts +2 -0
- package/dist/images/website.webp +0 -0
- package/dist/images/website.webp.d.ts +2 -0
- package/dist/images/youtube.webp +0 -0
- package/dist/images/youtube.webp.d.ts +2 -0
- package/dist/index.cjs +100 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +37 -20
- package/dist/index.d.ts +37 -20
- package/dist/index.mjs +84 -11
- package/dist/index.mjs.map +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-4PJQMQVX.mjs +0 -24
- package/dist/chunk-4PJQMQVX.mjs.map +0 -1
- package/dist/chunk-534WN2SR.mjs.map +0 -1
- package/dist/images/cluiTui.png +0 -0
- package/dist/images/poster1.png +0 -0
- package/dist/images/poster2.png +0 -0
- package/dist/images/poster3.png +0 -0
- /package/dist/{chunk-XEIQR6NA.mjs.map → chunk-QZE7FORG.mjs.map} +0 -0
- /package/dist/{chunk-LZ2KFVBV.mjs.map → chunk-RRNJ54MF.mjs.map} +0 -0
- /package/dist/images/{cluiTui.png.d.ts → apple-maps-icon.webp.d.ts} +0 -0
- /package/dist/images/{poster1.png.d.ts → banner-horizontal.webp.d.ts} +0 -0
- /package/dist/images/{poster2.png.d.ts → banner-vertical.webp.d.ts} +0 -0
- /package/dist/images/{poster3.png.d.ts → cluiTui.webp.d.ts} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -123,7 +123,7 @@ declare enum EnumNotificationResourceType {
|
|
|
123
123
|
DECLINED_EVENT = "declined_event",
|
|
124
124
|
DECLINED_PARTNER = "declined_partner",
|
|
125
125
|
DECLINED_VENDOR = "declined_vendor",
|
|
126
|
-
|
|
126
|
+
DAILY_CLUE_GAME = "daily_clue_game",
|
|
127
127
|
EVENT_INVITE_VENDOR = "event_invite_vendor",
|
|
128
128
|
EVENT_STARTING_SOON = "event_starting_soon",
|
|
129
129
|
EXPIRATION_REMINDER_EVENT = "expiration_reminder_event",
|
|
@@ -2478,43 +2478,60 @@ declare function useAppSettingsForm(data?: AppSettingsFormData): CreateAppSettin
|
|
|
2478
2478
|
declare function useSchoolForm(data?: SchoolFormData): CreateSchoolFormData;
|
|
2479
2479
|
|
|
2480
2480
|
declare const PKG: "@timardex/cluemart-shared";
|
|
2481
|
+
declare const IMAGE_EXTENSION: ".webp";
|
|
2481
2482
|
/**
|
|
2482
2483
|
* Basenames under the shared images directory — use with `getSharedImagePath` from `@timardex/cluemart-shared/images/node` (Express / Node).
|
|
2483
|
-
* This object is the single source of poster keys; `posters` is derived from it. Add
|
|
2484
|
+
* 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.
|
|
2484
2485
|
* `images/node` reads this at runtime for `getSharedImagePath` allow-listing.
|
|
2485
2486
|
*/
|
|
2486
|
-
declare const
|
|
2487
|
-
|
|
2488
|
-
readonly poster2: "poster2.png";
|
|
2489
|
-
readonly poster3: "poster3.png";
|
|
2490
|
-
};
|
|
2487
|
+
declare const posterIds: readonly ["poster1", "poster2", "poster3"];
|
|
2488
|
+
declare const posterFiles: { readonly [K in (typeof posterIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
|
|
2491
2489
|
/**
|
|
2492
|
-
* Basenames for assets
|
|
2490
|
+
* Basenames for assets under `src/images/clui/` in source; they are copied flat into `dist/images/` (same as posters).
|
|
2493
2491
|
* `images/node` reads this at runtime for `getSharedImagePath` allow-listing.
|
|
2494
2492
|
*/
|
|
2495
|
-
declare const
|
|
2496
|
-
|
|
2497
|
-
|
|
2493
|
+
declare const cluiIds: readonly ["cluiTui", "sima", "tablas", "telefonos", "ugralos"];
|
|
2494
|
+
declare const cluiFiles: { readonly [K in (typeof cluiIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
|
|
2495
|
+
declare const iconIds: readonly ["apple-maps-icon", "facebook", "google-maps-icon", "instagram", "meet", "poll", "tiktok", "tip", "waze-maps-icon", "website", "youtube"];
|
|
2496
|
+
declare const iconFiles: { readonly [K in (typeof iconIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
|
|
2497
|
+
declare const badgeIds: readonly ["corporate", "private", "school"];
|
|
2498
|
+
declare const badgeFiles: { readonly [K in (typeof badgeIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
|
|
2499
|
+
declare const logoIds: readonly ["googleMaps-logo-dark", "googleMaps-logo-light", "logo", "logo-atr"];
|
|
2500
|
+
declare const logoFiles: { readonly [K in (typeof logoIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
|
|
2501
|
+
declare const otherImagesIds: readonly ["banner-horizontal", "banner-vertical", "qr-code", "store-android", "store-ios"];
|
|
2502
|
+
declare const otherImagesFiles: { readonly [K in (typeof otherImagesIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
|
|
2498
2503
|
/**
|
|
2499
2504
|
* Module specifiers for each poster (not resolved file URLs). Use a static import or require with these paths
|
|
2500
2505
|
* so your bundler resolves the file, e.g.
|
|
2501
|
-
* `import poster1 from "@timardex/cluemart-shared/images/poster1.
|
|
2502
|
-
* or `require("@timardex/cluemart-shared/images/poster1.
|
|
2506
|
+
* `import poster1 from "@timardex/cluemart-shared/images/poster1.webp"`
|
|
2507
|
+
* or `require("@timardex/cluemart-shared/images/poster1.webp")` (React Native / Metro).
|
|
2503
2508
|
*
|
|
2504
2509
|
* Derived from `posterFiles` so keys and filenames stay aligned.
|
|
2505
2510
|
*/
|
|
2506
2511
|
declare const posters: { readonly [K in keyof typeof posterFiles]: `${typeof PKG}/images/${(typeof posterFiles)[K]}`; };
|
|
2507
2512
|
/**
|
|
2508
|
-
* Module specifiers for
|
|
2509
|
-
* `import clui from "@timardex/cluemart-shared/images/cluiTui.
|
|
2513
|
+
* Module specifiers for Clui assets (same flat `@…/images/<file>.webp` pattern as posters), e.g.
|
|
2514
|
+
* `import clui from "@timardex/cluemart-shared/images/cluiTui.webp"`.
|
|
2510
2515
|
*/
|
|
2511
|
-
declare const
|
|
2516
|
+
declare const cluiImages: { readonly [K in keyof typeof cluiFiles]: `${typeof PKG}/images/${(typeof cluiFiles)[K]}`; };
|
|
2517
|
+
declare const icons: { readonly [K in keyof typeof iconFiles]: `${typeof PKG}/images/${(typeof iconFiles)[K]}`; };
|
|
2518
|
+
declare const badges: { readonly [K in keyof typeof badgeFiles]: `${typeof PKG}/images/${(typeof badgeFiles)[K]}`; };
|
|
2519
|
+
declare const logos: { readonly [K in keyof typeof logoFiles]: `${typeof PKG}/images/${(typeof logoFiles)[K]}`; };
|
|
2520
|
+
declare const otherImages: { readonly [K in keyof typeof otherImagesFiles]: `${typeof PKG}/images/${(typeof otherImagesFiles)[K]}`; };
|
|
2512
2521
|
type PosterAssetId = keyof typeof posters;
|
|
2513
2522
|
/** A single filename under the shared images directory (values of `posterFiles`). */
|
|
2514
2523
|
type PosterImageBasename = (typeof posterFiles)[PosterAssetId];
|
|
2515
|
-
type
|
|
2516
|
-
/** Basename under the shared images directory (values of `
|
|
2517
|
-
type
|
|
2524
|
+
type CluiImageId = keyof typeof cluiImages;
|
|
2525
|
+
/** Basename under the shared images directory (values of `cluiFiles`). */
|
|
2526
|
+
type CluiImageBasename = (typeof cluiFiles)[CluiImageId];
|
|
2527
|
+
type IconId = keyof typeof icons;
|
|
2528
|
+
type IconBasename = (typeof iconFiles)[IconId];
|
|
2529
|
+
type BadgeId = keyof typeof badges;
|
|
2530
|
+
type BadgeBasename = (typeof badgeFiles)[BadgeId];
|
|
2531
|
+
type LogoId = keyof typeof logos;
|
|
2532
|
+
type LogoBasename = (typeof logoFiles)[LogoId];
|
|
2533
|
+
type OtherImagesId = keyof typeof otherImages;
|
|
2534
|
+
type OtherImagesBasename = (typeof otherImagesFiles)[OtherImagesId];
|
|
2518
2535
|
|
|
2519
2536
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
2520
2537
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
|
@@ -2629,4 +2646,4 @@ declare const cluemartSocialMedia: SocialMediaType[];
|
|
|
2629
2646
|
declare const IOS_URL = "https://apps.apple.com/nz/app/cluemart/id6747251008";
|
|
2630
2647
|
declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cluemart";
|
|
2631
2648
|
|
|
2632
|
-
export { ANDROID_URL, type AdFormData, type AdResource, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseGame, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateSchoolFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameStatus, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GameDate, type GameDocType, type GameHistory, type GameLeaderboard, type GamePlacement, type GamePlacementClue, type GameType, type GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, IOS_URL, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type MarketingMaterialRequestInputType, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type
|
|
2649
|
+
export { ANDROID_URL, type AdFormData, type AdResource, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BadgeBasename, type BadgeId, type BaseGame, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type CluiImageBasename, type CluiImageId, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateSchoolFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameStatus, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GameDate, type GameDocType, type GameHistory, type GameLeaderboard, type GamePlacement, type GamePlacementClue, type GameType, type GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, type MarketingMaterialRequestInputType, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OtherImagesBasename, type OtherImagesId, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterAssetId, type PosterImageBasename, type PosterInputType, type PosterUsageType, type RefundPolicy, type Region, type RegisterFormData, type RelationDate, type RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SchoolFormData, type SchoolRegisteredUserType, type SchoolReturnType, type SchoolType, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UseGetEventsByRegionOptions, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorCalendarData, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorProductList, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, badgeFiles, badgeIds, badges, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, companyContactFields, computeDailyClueState, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultLocation, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, gameScreenIdentifierList, gameTypeToDisplayName, getCurrentAndFutureDates, globalDefaultValues, iconFiles, iconIds, icons, isFutureDatesBeforeThreshold, isIsoDateString, licenseNiceNames, lightColors, loginFields, logoFiles, logoIds, logos, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, nzStartOfDay, otherImages, otherImagesFiles, otherImagesIds, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, posterFiles, posterIds, posters, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, seededShuffle, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSchoolForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
package/dist/index.d.ts
CHANGED
|
@@ -123,7 +123,7 @@ declare enum EnumNotificationResourceType {
|
|
|
123
123
|
DECLINED_EVENT = "declined_event",
|
|
124
124
|
DECLINED_PARTNER = "declined_partner",
|
|
125
125
|
DECLINED_VENDOR = "declined_vendor",
|
|
126
|
-
|
|
126
|
+
DAILY_CLUE_GAME = "daily_clue_game",
|
|
127
127
|
EVENT_INVITE_VENDOR = "event_invite_vendor",
|
|
128
128
|
EVENT_STARTING_SOON = "event_starting_soon",
|
|
129
129
|
EXPIRATION_REMINDER_EVENT = "expiration_reminder_event",
|
|
@@ -2478,43 +2478,60 @@ declare function useAppSettingsForm(data?: AppSettingsFormData): CreateAppSettin
|
|
|
2478
2478
|
declare function useSchoolForm(data?: SchoolFormData): CreateSchoolFormData;
|
|
2479
2479
|
|
|
2480
2480
|
declare const PKG: "@timardex/cluemart-shared";
|
|
2481
|
+
declare const IMAGE_EXTENSION: ".webp";
|
|
2481
2482
|
/**
|
|
2482
2483
|
* Basenames under the shared images directory — use with `getSharedImagePath` from `@timardex/cluemart-shared/images/node` (Express / Node).
|
|
2483
|
-
* This object is the single source of poster keys; `posters` is derived from it. Add
|
|
2484
|
+
* 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.
|
|
2484
2485
|
* `images/node` reads this at runtime for `getSharedImagePath` allow-listing.
|
|
2485
2486
|
*/
|
|
2486
|
-
declare const
|
|
2487
|
-
|
|
2488
|
-
readonly poster2: "poster2.png";
|
|
2489
|
-
readonly poster3: "poster3.png";
|
|
2490
|
-
};
|
|
2487
|
+
declare const posterIds: readonly ["poster1", "poster2", "poster3"];
|
|
2488
|
+
declare const posterFiles: { readonly [K in (typeof posterIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
|
|
2491
2489
|
/**
|
|
2492
|
-
* Basenames for assets
|
|
2490
|
+
* Basenames for assets under `src/images/clui/` in source; they are copied flat into `dist/images/` (same as posters).
|
|
2493
2491
|
* `images/node` reads this at runtime for `getSharedImagePath` allow-listing.
|
|
2494
2492
|
*/
|
|
2495
|
-
declare const
|
|
2496
|
-
|
|
2497
|
-
|
|
2493
|
+
declare const cluiIds: readonly ["cluiTui", "sima", "tablas", "telefonos", "ugralos"];
|
|
2494
|
+
declare const cluiFiles: { readonly [K in (typeof cluiIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
|
|
2495
|
+
declare const iconIds: readonly ["apple-maps-icon", "facebook", "google-maps-icon", "instagram", "meet", "poll", "tiktok", "tip", "waze-maps-icon", "website", "youtube"];
|
|
2496
|
+
declare const iconFiles: { readonly [K in (typeof iconIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
|
|
2497
|
+
declare const badgeIds: readonly ["corporate", "private", "school"];
|
|
2498
|
+
declare const badgeFiles: { readonly [K in (typeof badgeIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
|
|
2499
|
+
declare const logoIds: readonly ["googleMaps-logo-dark", "googleMaps-logo-light", "logo", "logo-atr"];
|
|
2500
|
+
declare const logoFiles: { readonly [K in (typeof logoIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
|
|
2501
|
+
declare const otherImagesIds: readonly ["banner-horizontal", "banner-vertical", "qr-code", "store-android", "store-ios"];
|
|
2502
|
+
declare const otherImagesFiles: { readonly [K in (typeof otherImagesIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
|
|
2498
2503
|
/**
|
|
2499
2504
|
* Module specifiers for each poster (not resolved file URLs). Use a static import or require with these paths
|
|
2500
2505
|
* so your bundler resolves the file, e.g.
|
|
2501
|
-
* `import poster1 from "@timardex/cluemart-shared/images/poster1.
|
|
2502
|
-
* or `require("@timardex/cluemart-shared/images/poster1.
|
|
2506
|
+
* `import poster1 from "@timardex/cluemart-shared/images/poster1.webp"`
|
|
2507
|
+
* or `require("@timardex/cluemart-shared/images/poster1.webp")` (React Native / Metro).
|
|
2503
2508
|
*
|
|
2504
2509
|
* Derived from `posterFiles` so keys and filenames stay aligned.
|
|
2505
2510
|
*/
|
|
2506
2511
|
declare const posters: { readonly [K in keyof typeof posterFiles]: `${typeof PKG}/images/${(typeof posterFiles)[K]}`; };
|
|
2507
2512
|
/**
|
|
2508
|
-
* Module specifiers for
|
|
2509
|
-
* `import clui from "@timardex/cluemart-shared/images/cluiTui.
|
|
2513
|
+
* Module specifiers for Clui assets (same flat `@…/images/<file>.webp` pattern as posters), e.g.
|
|
2514
|
+
* `import clui from "@timardex/cluemart-shared/images/cluiTui.webp"`.
|
|
2510
2515
|
*/
|
|
2511
|
-
declare const
|
|
2516
|
+
declare const cluiImages: { readonly [K in keyof typeof cluiFiles]: `${typeof PKG}/images/${(typeof cluiFiles)[K]}`; };
|
|
2517
|
+
declare const icons: { readonly [K in keyof typeof iconFiles]: `${typeof PKG}/images/${(typeof iconFiles)[K]}`; };
|
|
2518
|
+
declare const badges: { readonly [K in keyof typeof badgeFiles]: `${typeof PKG}/images/${(typeof badgeFiles)[K]}`; };
|
|
2519
|
+
declare const logos: { readonly [K in keyof typeof logoFiles]: `${typeof PKG}/images/${(typeof logoFiles)[K]}`; };
|
|
2520
|
+
declare const otherImages: { readonly [K in keyof typeof otherImagesFiles]: `${typeof PKG}/images/${(typeof otherImagesFiles)[K]}`; };
|
|
2512
2521
|
type PosterAssetId = keyof typeof posters;
|
|
2513
2522
|
/** A single filename under the shared images directory (values of `posterFiles`). */
|
|
2514
2523
|
type PosterImageBasename = (typeof posterFiles)[PosterAssetId];
|
|
2515
|
-
type
|
|
2516
|
-
/** Basename under the shared images directory (values of `
|
|
2517
|
-
type
|
|
2524
|
+
type CluiImageId = keyof typeof cluiImages;
|
|
2525
|
+
/** Basename under the shared images directory (values of `cluiFiles`). */
|
|
2526
|
+
type CluiImageBasename = (typeof cluiFiles)[CluiImageId];
|
|
2527
|
+
type IconId = keyof typeof icons;
|
|
2528
|
+
type IconBasename = (typeof iconFiles)[IconId];
|
|
2529
|
+
type BadgeId = keyof typeof badges;
|
|
2530
|
+
type BadgeBasename = (typeof badgeFiles)[BadgeId];
|
|
2531
|
+
type LogoId = keyof typeof logos;
|
|
2532
|
+
type LogoBasename = (typeof logoFiles)[LogoId];
|
|
2533
|
+
type OtherImagesId = keyof typeof otherImages;
|
|
2534
|
+
type OtherImagesBasename = (typeof otherImagesFiles)[OtherImagesId];
|
|
2518
2535
|
|
|
2519
2536
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
2520
2537
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
|
@@ -2629,4 +2646,4 @@ declare const cluemartSocialMedia: SocialMediaType[];
|
|
|
2629
2646
|
declare const IOS_URL = "https://apps.apple.com/nz/app/cluemart/id6747251008";
|
|
2630
2647
|
declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cluemart";
|
|
2631
2648
|
|
|
2632
|
-
export { ANDROID_URL, type AdFormData, type AdResource, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseGame, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateSchoolFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameStatus, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GameDate, type GameDocType, type GameHistory, type GameLeaderboard, type GamePlacement, type GamePlacementClue, type GameType, type GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, IOS_URL, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type MarketingMaterialRequestInputType, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type
|
|
2649
|
+
export { ANDROID_URL, type AdFormData, type AdResource, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BadgeBasename, type BadgeId, type BaseGame, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type CluiImageBasename, type CluiImageId, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateSchoolFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameStatus, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GameDate, type GameDocType, type GameHistory, type GameLeaderboard, type GamePlacement, type GamePlacementClue, type GameType, type GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, type MarketingMaterialRequestInputType, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OtherImagesBasename, type OtherImagesId, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterAssetId, type PosterImageBasename, type PosterInputType, type PosterUsageType, type RefundPolicy, type Region, type RegisterFormData, type RelationDate, type RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SchoolFormData, type SchoolRegisteredUserType, type SchoolReturnType, type SchoolType, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UseGetEventsByRegionOptions, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorCalendarData, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorProductList, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, badgeFiles, badgeIds, badges, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, companyContactFields, computeDailyClueState, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultLocation, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, gameScreenIdentifierList, gameTypeToDisplayName, getCurrentAndFutureDates, globalDefaultValues, iconFiles, iconIds, icons, isFutureDatesBeforeThreshold, isIsoDateString, licenseNiceNames, lightColors, loginFields, logoFiles, logoIds, logos, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, nzStartOfDay, otherImages, otherImagesFiles, otherImagesIds, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, posterFiles, posterIds, posters, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, seededShuffle, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSchoolForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
package/dist/index.mjs
CHANGED
|
@@ -132,7 +132,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
|
|
|
132
132
|
EnumNotificationResourceType2["DECLINED_EVENT"] = "declined_event";
|
|
133
133
|
EnumNotificationResourceType2["DECLINED_PARTNER"] = "declined_partner";
|
|
134
134
|
EnumNotificationResourceType2["DECLINED_VENDOR"] = "declined_vendor";
|
|
135
|
-
EnumNotificationResourceType2["
|
|
135
|
+
EnumNotificationResourceType2["DAILY_CLUE_GAME"] = "daily_clue_game";
|
|
136
136
|
EnumNotificationResourceType2["EVENT_INVITE_VENDOR"] = "event_invite_vendor" /* EVENT_INVITE_VENDOR */;
|
|
137
137
|
EnumNotificationResourceType2["EVENT_STARTING_SOON"] = "event_starting_soon";
|
|
138
138
|
EnumNotificationResourceType2["EXPIRATION_REMINDER_EVENT"] = "expiration_reminder_event";
|
|
@@ -8176,19 +8176,77 @@ function useSchoolForm(data) {
|
|
|
8176
8176
|
|
|
8177
8177
|
// src/images/index.ts
|
|
8178
8178
|
var PKG = "@timardex/cluemart-shared";
|
|
8179
|
-
var
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
var
|
|
8185
|
-
|
|
8186
|
-
|
|
8179
|
+
var IMAGE_EXTENSION = ".webp";
|
|
8180
|
+
var posterIds = ["poster1", "poster2", "poster3"];
|
|
8181
|
+
var posterFiles = Object.fromEntries(
|
|
8182
|
+
posterIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
8183
|
+
);
|
|
8184
|
+
var cluiIds = [
|
|
8185
|
+
"cluiTui",
|
|
8186
|
+
"sima",
|
|
8187
|
+
"tablas",
|
|
8188
|
+
"telefonos",
|
|
8189
|
+
"ugralos"
|
|
8190
|
+
];
|
|
8191
|
+
var cluiFiles = Object.fromEntries(
|
|
8192
|
+
cluiIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
8193
|
+
);
|
|
8194
|
+
var iconIds = [
|
|
8195
|
+
"apple-maps-icon",
|
|
8196
|
+
"facebook",
|
|
8197
|
+
"google-maps-icon",
|
|
8198
|
+
"instagram",
|
|
8199
|
+
"meet",
|
|
8200
|
+
"poll",
|
|
8201
|
+
"tiktok",
|
|
8202
|
+
"tip",
|
|
8203
|
+
"waze-maps-icon",
|
|
8204
|
+
"website",
|
|
8205
|
+
"youtube"
|
|
8206
|
+
];
|
|
8207
|
+
var iconFiles = Object.fromEntries(
|
|
8208
|
+
iconIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
8209
|
+
);
|
|
8210
|
+
var badgeIds = ["corporate", "private", "school"];
|
|
8211
|
+
var badgeFiles = Object.fromEntries(
|
|
8212
|
+
badgeIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
8213
|
+
);
|
|
8214
|
+
var logoIds = [
|
|
8215
|
+
"googleMaps-logo-dark",
|
|
8216
|
+
"googleMaps-logo-light",
|
|
8217
|
+
"logo",
|
|
8218
|
+
"logo-atr"
|
|
8219
|
+
];
|
|
8220
|
+
var logoFiles = Object.fromEntries(
|
|
8221
|
+
logoIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
8222
|
+
);
|
|
8223
|
+
var otherImagesIds = [
|
|
8224
|
+
"banner-horizontal",
|
|
8225
|
+
"banner-vertical",
|
|
8226
|
+
"qr-code",
|
|
8227
|
+
"store-android",
|
|
8228
|
+
"store-ios"
|
|
8229
|
+
];
|
|
8230
|
+
var otherImagesFiles = Object.fromEntries(
|
|
8231
|
+
otherImagesIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
8232
|
+
);
|
|
8187
8233
|
var posters = Object.fromEntries(
|
|
8188
8234
|
Object.entries(posterFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
8189
8235
|
);
|
|
8236
|
+
var cluiImages = Object.fromEntries(
|
|
8237
|
+
Object.entries(cluiFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
8238
|
+
);
|
|
8239
|
+
var icons = Object.fromEntries(
|
|
8240
|
+
Object.entries(iconFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
8241
|
+
);
|
|
8242
|
+
var badges = Object.fromEntries(
|
|
8243
|
+
Object.entries(badgeFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
8244
|
+
);
|
|
8245
|
+
var logos = Object.fromEntries(
|
|
8246
|
+
Object.entries(logoFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
8247
|
+
);
|
|
8190
8248
|
var otherImages = Object.fromEntries(
|
|
8191
|
-
Object.entries(
|
|
8249
|
+
Object.entries(otherImagesFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
8192
8250
|
);
|
|
8193
8251
|
|
|
8194
8252
|
// src/storage/index.ts
|
|
@@ -8285,6 +8343,7 @@ export {
|
|
|
8285
8343
|
EnumUserRole,
|
|
8286
8344
|
EnumVendorType,
|
|
8287
8345
|
EnumVerificationType,
|
|
8346
|
+
IMAGE_EXTENSION,
|
|
8288
8347
|
IOS_URL,
|
|
8289
8348
|
ImageTypeEnum,
|
|
8290
8349
|
SAVED_EMAIL_KEY,
|
|
@@ -8296,9 +8355,15 @@ export {
|
|
|
8296
8355
|
availableRegionOptions,
|
|
8297
8356
|
availableRegionTypes,
|
|
8298
8357
|
availableTagTypes,
|
|
8358
|
+
badgeFiles,
|
|
8359
|
+
badgeIds,
|
|
8360
|
+
badges,
|
|
8299
8361
|
capitalizeFirstLetter,
|
|
8300
8362
|
categoryColors,
|
|
8301
8363
|
cluemartSocialMedia,
|
|
8364
|
+
cluiFiles,
|
|
8365
|
+
cluiIds,
|
|
8366
|
+
cluiImages,
|
|
8302
8367
|
companyContactFields,
|
|
8303
8368
|
computeDailyClueState,
|
|
8304
8369
|
contactUsFields,
|
|
@@ -8325,21 +8390,29 @@ export {
|
|
|
8325
8390
|
gameTypeToDisplayName,
|
|
8326
8391
|
getCurrentAndFutureDates,
|
|
8327
8392
|
globalDefaultValues,
|
|
8393
|
+
iconFiles,
|
|
8394
|
+
iconIds,
|
|
8395
|
+
icons,
|
|
8328
8396
|
isFutureDatesBeforeThreshold,
|
|
8329
8397
|
isIsoDateString,
|
|
8330
8398
|
licenseNiceNames,
|
|
8331
8399
|
lightColors,
|
|
8332
8400
|
loginFields,
|
|
8401
|
+
logoFiles,
|
|
8402
|
+
logoIds,
|
|
8403
|
+
logos,
|
|
8333
8404
|
mapArrayToOptions,
|
|
8334
8405
|
mapBaseResourceTypeToFormData,
|
|
8335
8406
|
normalizeUrl,
|
|
8336
8407
|
nzStartOfDay,
|
|
8337
|
-
otherFiles,
|
|
8338
8408
|
otherImages,
|
|
8409
|
+
otherImagesFiles,
|
|
8410
|
+
otherImagesIds,
|
|
8339
8411
|
packagingOptions,
|
|
8340
8412
|
partnerBasicInfoFields,
|
|
8341
8413
|
paymentMethodOptions,
|
|
8342
8414
|
posterFiles,
|
|
8415
|
+
posterIds,
|
|
8343
8416
|
posters,
|
|
8344
8417
|
priceUnits,
|
|
8345
8418
|
producedIngOptions,
|