@timardex/cluemart-shared 1.7.90 → 2.0.0
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/{ad-BX_Da-0Q.d.ts → ad-C7jlZyUd.d.ts} +2 -2
- package/dist/{ad-MA6buSLw.d.mts → ad-tNoTBv3n.d.mts} +2 -2
- package/dist/{affiliate-Cb8BLoQc.d.mts → affiliate-BL1ZN-4t.d.mts} +2 -2
- package/dist/{affiliate-DXpSgV4o.d.ts → affiliate-DStyY84o.d.ts} +2 -2
- package/dist/auth/index.cjs +18 -8
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/auth/index.mjs +1 -1
- package/dist/{billingCatalog-Bca0IZG_.d.mts → billingCatalog-DDAU9BWV.d.mts} +1 -1
- package/dist/{billingCatalog-Rh9yvue3.d.ts → billingCatalog-oWAfZX95.d.ts} +1 -1
- package/dist/chunk-7DQBUZXY.mjs +41 -0
- package/dist/chunk-7DQBUZXY.mjs.map +1 -0
- package/dist/{chunk-TD52IH52.mjs → chunk-JJQL6LZE.mjs} +1 -1
- package/dist/chunk-JJQL6LZE.mjs.map +1 -0
- package/dist/{chunk-D3U4LBOQ.mjs → chunk-L3SNS6OJ.mjs} +2 -2
- package/dist/{chunk-GA6E5NK3.mjs → chunk-OUWKLNHZ.mjs} +21 -23
- package/dist/chunk-OUWKLNHZ.mjs.map +1 -0
- package/dist/{chunk-6VTX7IPF.mjs → chunk-XPUYQ7GB.mjs} +150 -86
- package/dist/chunk-XPUYQ7GB.mjs.map +1 -0
- package/dist/{contactUs-TEAbhwp9.d.mts → contactUs-BYm-iDIH.d.mts} +1 -1
- package/dist/{contactUs-Dm-0Qua3.d.ts → contactUs-_BHRXUrv.d.ts} +1 -1
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +3 -2
- package/dist/{global-CDYmiqmd.d.mts → global-C7-KDYqg.d.mts} +6 -3
- package/dist/{global-DTXnm4Ok.d.ts → global-D_et_d2Y.d.ts} +6 -3
- package/dist/graphql/index.cjs +389 -290
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +59 -70
- package/dist/graphql/index.d.ts +59 -70
- package/dist/graphql/index.mjs +17 -14
- package/dist/hooks/index.cjs +233 -199
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +5 -5
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/index.mjs +5 -4
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +398 -290
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +93 -71
- package/dist/index.d.ts +93 -71
- package/dist/index.mjs +357 -254
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +1 -1
- package/dist/map/index.d.ts +1 -1
- package/dist/{resourceActivities-e3GkUqTN.d.mts → resourceActivities-BvejCLh9.d.mts} +2 -2
- package/dist/{resourceActivities-CAr2chXT.d.ts → resourceActivities-Smsl03Je.d.ts} +2 -2
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +8 -8
- package/dist/types/index.d.ts +8 -8
- package/dist/types/index.mjs +1 -1
- package/dist/{user-D6Mt35k0.d.ts → user-BA7TT2yB.d.mts} +20 -6
- package/dist/{user-BTzwLwJl.d.mts → user-nHjaLZoG.d.ts} +20 -6
- package/dist/utils/index.cjs +42 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +21 -5
- package/dist/utils/index.d.ts +21 -5
- package/dist/utils/index.mjs +12 -2
- package/package.json +4 -1
- package/dist/chunk-6VTX7IPF.mjs.map +0 -1
- package/dist/chunk-GA6E5NK3.mjs.map +0 -1
- package/dist/chunk-TD52IH52.mjs.map +0 -1
- /package/dist/{chunk-D3U4LBOQ.mjs.map → chunk-L3SNS6OJ.mjs.map} +0 -0
package/dist/utils/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a3 as DailyClueGameData, ah as GamePlacementClue, ag as GamePlacement, O as OptionItem, ac as EnumPostType, aP as SocialMediaType, aO as ResourceImageType, a4 as DateTimeType, L as LocationType, h as VendorType, g as UnregisteredVendorType, c as EventListItemType } from '../global-C7-KDYqg.mjs';
|
|
2
2
|
import dayjs from 'dayjs';
|
|
3
3
|
import { EnumRegions, EnumUserLicence, EnumReward, EnumInviteStatus, EnumEventDateStatus, EnumResourceType, EnumBillingPeriod } from '../enums/index.mjs';
|
|
4
|
-
import { h as EnumAffiliateRewardType, f as AffiliateRewardType } from '../affiliate-
|
|
5
|
-
import { c as BillingCatalogKey, a as BillingCatalogDefinition, b as BillingCatalogInitialEntry, B as BillingCatalogEntryType } from '../billingCatalog-
|
|
4
|
+
import { h as EnumAffiliateRewardType, f as AffiliateRewardType } from '../affiliate-BL1ZN-4t.mjs';
|
|
5
|
+
import { c as BillingCatalogKey, a as BillingCatalogDefinition, b as BillingCatalogInitialEntry, B as BillingCatalogEntryType } from '../billingCatalog-DDAU9BWV.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
|
-
import '../user-
|
|
7
|
+
import '../user-BA7TT2yB.mjs';
|
|
8
8
|
|
|
9
9
|
/** Seeded shuffle so all players see the same letter order / placements for a game. */
|
|
10
10
|
declare function seededShuffle<T>(array: readonly T[], seed: string): T[];
|
|
@@ -14,6 +14,22 @@ declare function computeDailyClueState(dailyClue: DailyClueGameData): {
|
|
|
14
14
|
todaysPlacement: GamePlacement | null;
|
|
15
15
|
} | null;
|
|
16
16
|
|
|
17
|
+
/** Default page size shared by paginated list consumers. */
|
|
18
|
+
declare const DEFAULT_PAGE_SIZE = 50;
|
|
19
|
+
/**
|
|
20
|
+
* Default identity extractor for paginated items. Assumes the item has an `_id`
|
|
21
|
+
* field; callers with a different key (e.g. `userId`) should pass `getId`.
|
|
22
|
+
*/
|
|
23
|
+
declare function defaultGetId<TItem>(item: TItem): string;
|
|
24
|
+
/**
|
|
25
|
+
* Appends `page` onto `items`, de-duplicating by `getId` (first occurrence
|
|
26
|
+
* wins) and preserving order. Returns the same reference when nothing new was
|
|
27
|
+
* added, so callers can rely on reference equality to avoid extra renders.
|
|
28
|
+
*/
|
|
29
|
+
declare function accumulateItems<TItem>(items: TItem[], page: TItem[], getId: (item: TItem) => string): TItem[];
|
|
30
|
+
/** A full page means more pages may exist (offset pagination has no total count). */
|
|
31
|
+
declare function computeHasMore(pageLength: number, pageSize: number): boolean;
|
|
32
|
+
|
|
17
33
|
declare const dateFormat = "DD-MM-YYYY";
|
|
18
34
|
declare const timeFormat = "HH:mm";
|
|
19
35
|
declare function toNZTime(date?: Date | string): dayjs.Dayjs;
|
|
@@ -272,4 +288,4 @@ declare function toUserFacingErrorMessage(error: string | null | undefined, fall
|
|
|
272
288
|
/** Extracts and sanitizes an unknown catch/Apollo error for toasts and alerts. */
|
|
273
289
|
declare function getErrorMessage(error: unknown, fallback?: string): string;
|
|
274
290
|
|
|
275
|
-
export { AFFILIATE_PARTICIPANT_TYPE_LABELS, AFFILIATE_REWARDS, ANDROID_URL, BILLING_CATALOG_CURRENCY, BILLING_CATALOG_DEFINITIONS, BILLING_CATALOG_KEYS, CLUEMART_MAIN_DOMAIN_URL, CM_AFFILIATE_PROMO_CODE, CM_SCHOOL_PROMO_CODE, type CalendarSheetContentData, DEFAULT_RESOURCES_RETURN_LIMIT, DEFAULT_RESOURCES_RETURN_OFFSET, DEFAULT_USER_FACING_ERROR, EVENT_DATE_STATUS_PERIOD_MAP, type EventScheduleStatusPresentation, type EventScheduleStatusTone, INITIAL_BILLING_CATALOG, IOS_URL, KNOWN_EVENT_SCHEDULE_STATUSES, NETWORK_USER_FACING_ERROR, PostTypeLabels, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, type StallholderFilterOption, availableRegionOptions, availableRegionTypes, billingCatalogDefinitionMatches, buildCalendarSheetContentData, capitalizeFirstLetter, cluemartSocialMedia, collectStallholderStartDates, collectVendorEventRelationDateTimes, computeDailyClueState, createAffiliateReward, dateFormat, eventHasSelectedDate, eventMatchesDateStatusPeriod, eventStartDatesSet, filterEventsByDateStatusPeriod, filterRegisteredVendorsByEventDatesOnly, filterRegisteredVendorsForEvent, filterUnregisteredVendorsByEventDatesOnly, filterUnregisteredVendorsForEvent, filterVendorEventsBySelectedDate, findEventDateTimeByIsoDate, formatDate, formatIrdNumber, formatNZBankAccount, formatTimestamp, fromCalendarIsoDate, futureTimePeriods, getAllowedEventDateStatuses, getBillingCatalogKeyForSelection, getCurrentAndFutureDates, getErrorMessage, getEventCalendarIsoDates, getEventDatesWithStallholders, getEventScheduleStatusLabel, getEventScheduleStatusPresentation, getEventScheduleStatusTone, getEventStallholderEmptyMessage, getRegisteredVendorCategoryNames, getRegisteredVendorStartDates, getStallholderCategoryNames, getStallholderCategoryOptions, getUnregisteredVendorCategoryNames, getUnregisteredVendorStartDates, getVendorEventRelationDateOptions, getVendorEventRelationStartDates, getVendorEventsEmptyMessage, hasMatchingEventDate, isFutureDatesBeforeThreshold, isInternalErrorMessage, isIsoDateString, isResourceImageActive, isTransientNetworkError, isValidIrdNumber, licenseNiceNames, mapArrayToOptions, matchesCategory, matchesSelectedDate, normalizeIrdNumber, normalizeResourceImage, normalizeUrl, nzStartOfDay, paymentMethodOptions, relationHasSelectedDate, removeTypename, resolveResourceImageActive, rewardNiceNames, seededShuffle, shouldShowEventActionsWithWeather, sortDatesChronologically, statusOptions, timeFormat, toCalendarIsoDate, toNZTime, toUserFacingErrorMessage, truncateText };
|
|
291
|
+
export { AFFILIATE_PARTICIPANT_TYPE_LABELS, AFFILIATE_REWARDS, ANDROID_URL, BILLING_CATALOG_CURRENCY, BILLING_CATALOG_DEFINITIONS, BILLING_CATALOG_KEYS, CLUEMART_MAIN_DOMAIN_URL, CM_AFFILIATE_PROMO_CODE, CM_SCHOOL_PROMO_CODE, type CalendarSheetContentData, DEFAULT_PAGE_SIZE, DEFAULT_RESOURCES_RETURN_LIMIT, DEFAULT_RESOURCES_RETURN_OFFSET, DEFAULT_USER_FACING_ERROR, EVENT_DATE_STATUS_PERIOD_MAP, type EventScheduleStatusPresentation, type EventScheduleStatusTone, INITIAL_BILLING_CATALOG, IOS_URL, KNOWN_EVENT_SCHEDULE_STATUSES, NETWORK_USER_FACING_ERROR, PostTypeLabels, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, type StallholderFilterOption, accumulateItems, availableRegionOptions, availableRegionTypes, billingCatalogDefinitionMatches, buildCalendarSheetContentData, capitalizeFirstLetter, cluemartSocialMedia, collectStallholderStartDates, collectVendorEventRelationDateTimes, computeDailyClueState, computeHasMore, createAffiliateReward, dateFormat, defaultGetId, eventHasSelectedDate, eventMatchesDateStatusPeriod, eventStartDatesSet, filterEventsByDateStatusPeriod, filterRegisteredVendorsByEventDatesOnly, filterRegisteredVendorsForEvent, filterUnregisteredVendorsByEventDatesOnly, filterUnregisteredVendorsForEvent, filterVendorEventsBySelectedDate, findEventDateTimeByIsoDate, formatDate, formatIrdNumber, formatNZBankAccount, formatTimestamp, fromCalendarIsoDate, futureTimePeriods, getAllowedEventDateStatuses, getBillingCatalogKeyForSelection, getCurrentAndFutureDates, getErrorMessage, getEventCalendarIsoDates, getEventDatesWithStallholders, getEventScheduleStatusLabel, getEventScheduleStatusPresentation, getEventScheduleStatusTone, getEventStallholderEmptyMessage, getRegisteredVendorCategoryNames, getRegisteredVendorStartDates, getStallholderCategoryNames, getStallholderCategoryOptions, getUnregisteredVendorCategoryNames, getUnregisteredVendorStartDates, getVendorEventRelationDateOptions, getVendorEventRelationStartDates, getVendorEventsEmptyMessage, hasMatchingEventDate, isFutureDatesBeforeThreshold, isInternalErrorMessage, isIsoDateString, isResourceImageActive, isTransientNetworkError, isValidIrdNumber, licenseNiceNames, mapArrayToOptions, matchesCategory, matchesSelectedDate, normalizeIrdNumber, normalizeResourceImage, normalizeUrl, nzStartOfDay, paymentMethodOptions, relationHasSelectedDate, removeTypename, resolveResourceImageActive, rewardNiceNames, seededShuffle, shouldShowEventActionsWithWeather, sortDatesChronologically, statusOptions, timeFormat, toCalendarIsoDate, toNZTime, toUserFacingErrorMessage, truncateText };
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a3 as DailyClueGameData, ah as GamePlacementClue, ag as GamePlacement, O as OptionItem, ac as EnumPostType, aP as SocialMediaType, aO as ResourceImageType, a4 as DateTimeType, L as LocationType, h as VendorType, g as UnregisteredVendorType, c as EventListItemType } from '../global-D_et_d2Y.js';
|
|
2
2
|
import dayjs from 'dayjs';
|
|
3
3
|
import { EnumRegions, EnumUserLicence, EnumReward, EnumInviteStatus, EnumEventDateStatus, EnumResourceType, EnumBillingPeriod } from '../enums/index.js';
|
|
4
|
-
import { h as EnumAffiliateRewardType, f as AffiliateRewardType } from '../affiliate-
|
|
5
|
-
import { c as BillingCatalogKey, a as BillingCatalogDefinition, b as BillingCatalogInitialEntry, B as BillingCatalogEntryType } from '../billingCatalog-
|
|
4
|
+
import { h as EnumAffiliateRewardType, f as AffiliateRewardType } from '../affiliate-DStyY84o.js';
|
|
5
|
+
import { c as BillingCatalogKey, a as BillingCatalogDefinition, b as BillingCatalogInitialEntry, B as BillingCatalogEntryType } from '../billingCatalog-oWAfZX95.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
|
-
import '../user-
|
|
7
|
+
import '../user-nHjaLZoG.js';
|
|
8
8
|
|
|
9
9
|
/** Seeded shuffle so all players see the same letter order / placements for a game. */
|
|
10
10
|
declare function seededShuffle<T>(array: readonly T[], seed: string): T[];
|
|
@@ -14,6 +14,22 @@ declare function computeDailyClueState(dailyClue: DailyClueGameData): {
|
|
|
14
14
|
todaysPlacement: GamePlacement | null;
|
|
15
15
|
} | null;
|
|
16
16
|
|
|
17
|
+
/** Default page size shared by paginated list consumers. */
|
|
18
|
+
declare const DEFAULT_PAGE_SIZE = 50;
|
|
19
|
+
/**
|
|
20
|
+
* Default identity extractor for paginated items. Assumes the item has an `_id`
|
|
21
|
+
* field; callers with a different key (e.g. `userId`) should pass `getId`.
|
|
22
|
+
*/
|
|
23
|
+
declare function defaultGetId<TItem>(item: TItem): string;
|
|
24
|
+
/**
|
|
25
|
+
* Appends `page` onto `items`, de-duplicating by `getId` (first occurrence
|
|
26
|
+
* wins) and preserving order. Returns the same reference when nothing new was
|
|
27
|
+
* added, so callers can rely on reference equality to avoid extra renders.
|
|
28
|
+
*/
|
|
29
|
+
declare function accumulateItems<TItem>(items: TItem[], page: TItem[], getId: (item: TItem) => string): TItem[];
|
|
30
|
+
/** A full page means more pages may exist (offset pagination has no total count). */
|
|
31
|
+
declare function computeHasMore(pageLength: number, pageSize: number): boolean;
|
|
32
|
+
|
|
17
33
|
declare const dateFormat = "DD-MM-YYYY";
|
|
18
34
|
declare const timeFormat = "HH:mm";
|
|
19
35
|
declare function toNZTime(date?: Date | string): dayjs.Dayjs;
|
|
@@ -272,4 +288,4 @@ declare function toUserFacingErrorMessage(error: string | null | undefined, fall
|
|
|
272
288
|
/** Extracts and sanitizes an unknown catch/Apollo error for toasts and alerts. */
|
|
273
289
|
declare function getErrorMessage(error: unknown, fallback?: string): string;
|
|
274
290
|
|
|
275
|
-
export { AFFILIATE_PARTICIPANT_TYPE_LABELS, AFFILIATE_REWARDS, ANDROID_URL, BILLING_CATALOG_CURRENCY, BILLING_CATALOG_DEFINITIONS, BILLING_CATALOG_KEYS, CLUEMART_MAIN_DOMAIN_URL, CM_AFFILIATE_PROMO_CODE, CM_SCHOOL_PROMO_CODE, type CalendarSheetContentData, DEFAULT_RESOURCES_RETURN_LIMIT, DEFAULT_RESOURCES_RETURN_OFFSET, DEFAULT_USER_FACING_ERROR, EVENT_DATE_STATUS_PERIOD_MAP, type EventScheduleStatusPresentation, type EventScheduleStatusTone, INITIAL_BILLING_CATALOG, IOS_URL, KNOWN_EVENT_SCHEDULE_STATUSES, NETWORK_USER_FACING_ERROR, PostTypeLabels, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, type StallholderFilterOption, availableRegionOptions, availableRegionTypes, billingCatalogDefinitionMatches, buildCalendarSheetContentData, capitalizeFirstLetter, cluemartSocialMedia, collectStallholderStartDates, collectVendorEventRelationDateTimes, computeDailyClueState, createAffiliateReward, dateFormat, eventHasSelectedDate, eventMatchesDateStatusPeriod, eventStartDatesSet, filterEventsByDateStatusPeriod, filterRegisteredVendorsByEventDatesOnly, filterRegisteredVendorsForEvent, filterUnregisteredVendorsByEventDatesOnly, filterUnregisteredVendorsForEvent, filterVendorEventsBySelectedDate, findEventDateTimeByIsoDate, formatDate, formatIrdNumber, formatNZBankAccount, formatTimestamp, fromCalendarIsoDate, futureTimePeriods, getAllowedEventDateStatuses, getBillingCatalogKeyForSelection, getCurrentAndFutureDates, getErrorMessage, getEventCalendarIsoDates, getEventDatesWithStallholders, getEventScheduleStatusLabel, getEventScheduleStatusPresentation, getEventScheduleStatusTone, getEventStallholderEmptyMessage, getRegisteredVendorCategoryNames, getRegisteredVendorStartDates, getStallholderCategoryNames, getStallholderCategoryOptions, getUnregisteredVendorCategoryNames, getUnregisteredVendorStartDates, getVendorEventRelationDateOptions, getVendorEventRelationStartDates, getVendorEventsEmptyMessage, hasMatchingEventDate, isFutureDatesBeforeThreshold, isInternalErrorMessage, isIsoDateString, isResourceImageActive, isTransientNetworkError, isValidIrdNumber, licenseNiceNames, mapArrayToOptions, matchesCategory, matchesSelectedDate, normalizeIrdNumber, normalizeResourceImage, normalizeUrl, nzStartOfDay, paymentMethodOptions, relationHasSelectedDate, removeTypename, resolveResourceImageActive, rewardNiceNames, seededShuffle, shouldShowEventActionsWithWeather, sortDatesChronologically, statusOptions, timeFormat, toCalendarIsoDate, toNZTime, toUserFacingErrorMessage, truncateText };
|
|
291
|
+
export { AFFILIATE_PARTICIPANT_TYPE_LABELS, AFFILIATE_REWARDS, ANDROID_URL, BILLING_CATALOG_CURRENCY, BILLING_CATALOG_DEFINITIONS, BILLING_CATALOG_KEYS, CLUEMART_MAIN_DOMAIN_URL, CM_AFFILIATE_PROMO_CODE, CM_SCHOOL_PROMO_CODE, type CalendarSheetContentData, DEFAULT_PAGE_SIZE, DEFAULT_RESOURCES_RETURN_LIMIT, DEFAULT_RESOURCES_RETURN_OFFSET, DEFAULT_USER_FACING_ERROR, EVENT_DATE_STATUS_PERIOD_MAP, type EventScheduleStatusPresentation, type EventScheduleStatusTone, INITIAL_BILLING_CATALOG, IOS_URL, KNOWN_EVENT_SCHEDULE_STATUSES, NETWORK_USER_FACING_ERROR, PostTypeLabels, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, type StallholderFilterOption, accumulateItems, availableRegionOptions, availableRegionTypes, billingCatalogDefinitionMatches, buildCalendarSheetContentData, capitalizeFirstLetter, cluemartSocialMedia, collectStallholderStartDates, collectVendorEventRelationDateTimes, computeDailyClueState, computeHasMore, createAffiliateReward, dateFormat, defaultGetId, eventHasSelectedDate, eventMatchesDateStatusPeriod, eventStartDatesSet, filterEventsByDateStatusPeriod, filterRegisteredVendorsByEventDatesOnly, filterRegisteredVendorsForEvent, filterUnregisteredVendorsByEventDatesOnly, filterUnregisteredVendorsForEvent, filterVendorEventsBySelectedDate, findEventDateTimeByIsoDate, formatDate, formatIrdNumber, formatNZBankAccount, formatTimestamp, fromCalendarIsoDate, futureTimePeriods, getAllowedEventDateStatuses, getBillingCatalogKeyForSelection, getCurrentAndFutureDates, getErrorMessage, getEventCalendarIsoDates, getEventDatesWithStallholders, getEventScheduleStatusLabel, getEventScheduleStatusPresentation, getEventScheduleStatusTone, getEventStallholderEmptyMessage, getRegisteredVendorCategoryNames, getRegisteredVendorStartDates, getStallholderCategoryNames, getStallholderCategoryOptions, getUnregisteredVendorCategoryNames, getUnregisteredVendorStartDates, getVendorEventRelationDateOptions, getVendorEventRelationStartDates, getVendorEventsEmptyMessage, hasMatchingEventDate, isFutureDatesBeforeThreshold, isInternalErrorMessage, isIsoDateString, isResourceImageActive, isTransientNetworkError, isValidIrdNumber, licenseNiceNames, mapArrayToOptions, matchesCategory, matchesSelectedDate, normalizeIrdNumber, normalizeResourceImage, normalizeUrl, nzStartOfDay, paymentMethodOptions, relationHasSelectedDate, removeTypename, resolveResourceImageActive, rewardNiceNames, seededShuffle, shouldShowEventActionsWithWeather, sortDatesChronologically, statusOptions, timeFormat, toCalendarIsoDate, toNZTime, toUserFacingErrorMessage, truncateText };
|
package/dist/utils/index.mjs
CHANGED
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
toCalendarIsoDate,
|
|
82
82
|
toUserFacingErrorMessage,
|
|
83
83
|
truncateText
|
|
84
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-L3SNS6OJ.mjs";
|
|
85
85
|
import {
|
|
86
86
|
dateFormat,
|
|
87
87
|
formatDate,
|
|
@@ -96,11 +96,17 @@ import {
|
|
|
96
96
|
timeFormat,
|
|
97
97
|
toNZTime
|
|
98
98
|
} from "../chunk-YRO6KEZG.mjs";
|
|
99
|
-
import "../chunk-
|
|
99
|
+
import "../chunk-JJQL6LZE.mjs";
|
|
100
100
|
import {
|
|
101
101
|
isTransientNetworkError
|
|
102
102
|
} from "../chunk-RAYUJODN.mjs";
|
|
103
103
|
import "../chunk-DQ7ZHIXW.mjs";
|
|
104
|
+
import {
|
|
105
|
+
DEFAULT_PAGE_SIZE,
|
|
106
|
+
accumulateItems,
|
|
107
|
+
computeHasMore,
|
|
108
|
+
defaultGetId
|
|
109
|
+
} from "../chunk-7DQBUZXY.mjs";
|
|
104
110
|
import "../chunk-P4NLBWEJ.mjs";
|
|
105
111
|
export {
|
|
106
112
|
AFFILIATE_PARTICIPANT_TYPE_LABELS,
|
|
@@ -112,6 +118,7 @@ export {
|
|
|
112
118
|
CLUEMART_MAIN_DOMAIN_URL,
|
|
113
119
|
CM_AFFILIATE_PROMO_CODE,
|
|
114
120
|
CM_SCHOOL_PROMO_CODE,
|
|
121
|
+
DEFAULT_PAGE_SIZE,
|
|
115
122
|
DEFAULT_RESOURCES_RETURN_LIMIT,
|
|
116
123
|
DEFAULT_RESOURCES_RETURN_OFFSET,
|
|
117
124
|
DEFAULT_USER_FACING_ERROR,
|
|
@@ -123,6 +130,7 @@ export {
|
|
|
123
130
|
PostTypeLabels,
|
|
124
131
|
SCHOOL_MAX_STUDENT_COUNT,
|
|
125
132
|
SCHOOL_MIN_STUDENT_COUNT,
|
|
133
|
+
accumulateItems,
|
|
126
134
|
availableRegionOptions,
|
|
127
135
|
availableRegionTypes,
|
|
128
136
|
billingCatalogDefinitionMatches,
|
|
@@ -132,8 +140,10 @@ export {
|
|
|
132
140
|
collectStallholderStartDates,
|
|
133
141
|
collectVendorEventRelationDateTimes,
|
|
134
142
|
computeDailyClueState,
|
|
143
|
+
computeHasMore,
|
|
135
144
|
createAffiliateReward,
|
|
136
145
|
dateFormat,
|
|
146
|
+
defaultGetId,
|
|
137
147
|
eventHasSelectedDate,
|
|
138
148
|
eventMatchesDateStatusPeriod,
|
|
139
149
|
eventStartDatesSet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@timardex/cluemart-shared",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -116,6 +116,7 @@
|
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
118
118
|
"@apollo/client": "^3.14.1",
|
|
119
|
+
"@testing-library/react": "^16.3.3",
|
|
119
120
|
"@types/node": "^22.13.4",
|
|
120
121
|
"@types/react": "~19.2.10",
|
|
121
122
|
"@typescript-eslint/eslint-plugin": "^8.20.0",
|
|
@@ -128,9 +129,11 @@
|
|
|
128
129
|
"eslint-plugin-prettier": "^5.2.6",
|
|
129
130
|
"graphql": "^16.12.0",
|
|
130
131
|
"graphql-ws": "^6.0.6",
|
|
132
|
+
"jsdom": "^26.1.0",
|
|
131
133
|
"prettier": "^3.4.2",
|
|
132
134
|
"prettier-eslint": "^16.4.1",
|
|
133
135
|
"react": "19.2.3",
|
|
136
|
+
"react-dom": "19.2.3",
|
|
134
137
|
"rimraf": "^6.0.1",
|
|
135
138
|
"tsup": "^8.3.6",
|
|
136
139
|
"typescript": "^5.7.3",
|