@timardex/cluemart-shared 2.5.0 → 2.5.2

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.
Files changed (47) hide show
  1. package/dist/{ad-DRI2CIzV.d.ts → ad-C7GbDyUi.d.ts} +1 -1
  2. package/dist/{ad-BSyVGv8q.d.mts → ad-DB9gvcJW.d.mts} +1 -1
  3. package/dist/{chunk-DEK7NF3O.mjs → chunk-T736WX7J.mjs} +5 -5
  4. package/dist/{chunk-DEK7NF3O.mjs.map → chunk-T736WX7J.mjs.map} +1 -1
  5. package/dist/{chunk-4CQLKIQ6.mjs → chunk-TGEYOSSX.mjs} +24 -2
  6. package/dist/chunk-TGEYOSSX.mjs.map +1 -0
  7. package/dist/{chunk-2RHUGVV3.mjs → chunk-WOBG6I4T.mjs} +175 -12
  8. package/dist/chunk-WOBG6I4T.mjs.map +1 -0
  9. package/dist/{chunk-L4NHGGT7.mjs → chunk-WRYRBSRZ.mjs} +2 -2
  10. package/dist/chunk-YCUKTVVA.mjs +69 -0
  11. package/dist/chunk-YCUKTVVA.mjs.map +1 -0
  12. package/dist/{chunk-CQ26N3W6.mjs → chunk-YJJUTHBX.mjs} +2 -2
  13. package/dist/formFields/index.cjs.map +1 -1
  14. package/dist/formFields/index.mjs +4 -4
  15. package/dist/graphql/index.cjs +193 -13
  16. package/dist/graphql/index.cjs.map +1 -1
  17. package/dist/graphql/index.d.mts +46 -3
  18. package/dist/graphql/index.d.ts +46 -3
  19. package/dist/graphql/index.mjs +8 -2
  20. package/dist/hooks/index.cjs +23 -13
  21. package/dist/hooks/index.cjs.map +1 -1
  22. package/dist/hooks/index.d.mts +1 -1
  23. package/dist/hooks/index.d.ts +1 -1
  24. package/dist/hooks/index.mjs +6 -6
  25. package/dist/index.cjs +236 -16
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.mts +77 -2
  28. package/dist/index.d.ts +77 -2
  29. package/dist/index.mjs +221 -12
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/sharing/index.cjs +2 -1
  32. package/dist/sharing/index.cjs.map +1 -1
  33. package/dist/sharing/index.mjs +2 -2
  34. package/dist/types/index.d.mts +1 -1
  35. package/dist/types/index.d.ts +1 -1
  36. package/dist/utils/index.cjs +61 -3
  37. package/dist/utils/index.cjs.map +1 -1
  38. package/dist/utils/index.d.mts +33 -1
  39. package/dist/utils/index.d.ts +33 -1
  40. package/dist/utils/index.mjs +20 -4
  41. package/package.json +1 -1
  42. package/dist/chunk-2RHUGVV3.mjs.map +0 -1
  43. package/dist/chunk-4CQLKIQ6.mjs.map +0 -1
  44. package/dist/chunk-7DQBUZXY.mjs +0 -41
  45. package/dist/chunk-7DQBUZXY.mjs.map +0 -1
  46. /package/dist/{chunk-L4NHGGT7.mjs.map → chunk-WRYRBSRZ.mjs.map} +0 -0
  47. /package/dist/{chunk-CQ26N3W6.mjs.map → chunk-YJJUTHBX.mjs.map} +0 -0
@@ -95,6 +95,22 @@ type DateFormat = "date" | "time" | "datetime";
95
95
  * @returns formatted string based on display option
96
96
  */
97
97
  declare const formatDate: (dateStr: string, display?: DateFormat, timeStr?: string) => string;
98
+ /**
99
+ * True when a `dd-mm-yyyy` date falls before today's calendar day in
100
+ * `Pacific/Auckland`. The current day counts as not past, and values that do not
101
+ * parse as a date are never treated as past.
102
+ */
103
+ declare function isPastDate(dateStr: string): boolean;
104
+ /**
105
+ * Date-option label: the long-form date text, marked `(Past)` when the slot has
106
+ * already happened. Used for the event/vendor date filter pills, which also list
107
+ * historical relation dates.
108
+ *
109
+ * The label and the marker come from the same strict parse, so an impossible or
110
+ * malformed date is returned verbatim rather than being rolled over into a real
111
+ * date that would then contradict the `(Past)` decision.
112
+ */
113
+ declare function formatDateOptionLabel(dateStr: string): string;
98
114
  declare const getCurrentAndFutureDates: <T extends {
99
115
  startDate?: string;
100
116
  startTime?: string;
@@ -406,6 +422,22 @@ declare function isValidIrdNumber(value: string): boolean;
406
422
  /** True for short-lived connectivity failures (e.g. resume before the stack is ready). */
407
423
  declare function isTransientNetworkError(err: unknown): boolean;
408
424
 
425
+ /** Client-side rotation window shared by web (admin) and mobile ad renderers. */
426
+ declare const AD_METRIC_ROTATION_INTERVAL_MS = 8000;
427
+ /** Delay before a single impression retry within the same rotation slot. */
428
+ declare const AD_METRIC_IMPRESSION_RETRY_DELAY_MS = 1000;
429
+ /** Rotation slot index for a timestamp, matching the server dedupe window. */
430
+ declare function getAdMetricRotationSlot(epochMilliseconds: number): number;
431
+ /** Which ad of `count` is displayed at a given timestamp. */
432
+ declare function getAdMetricRotationIndex(epochMilliseconds: number, count: number): number;
433
+ /** Stable per-slot impression key used by the client to suppress duplicates. */
434
+ declare function buildAdMetricSlotKey(adId: string, placement: string, slot: number): string;
435
+ /**
436
+ * Unique per-click id. `crypto.randomUUID` is absent or non-callable in older
437
+ * browsers, non-secure contexts, and some React Native runtimes.
438
+ */
439
+ declare function generateAdClickId(): string;
440
+
409
441
  declare const BILLING_CATALOG_KEYS: readonly ["pro_vendor_monthly", "pro_vendor_yearly", "pro_plus_vendor_monthly", "pro_plus_vendor_yearly"];
410
442
  declare const BILLING_CATALOG_CURRENCY: "nzd";
411
443
  /**
@@ -506,4 +538,4 @@ declare function toUserFacingErrorMessage(error: string | null | undefined, fall
506
538
  /** Extracts and sanitizes an unknown catch/Apollo error for toasts and alerts. */
507
539
  declare function getErrorMessage(error: unknown, fallback?: string): string;
508
540
 
509
- 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_LABELS, EVENT_DATE_STATUS_PERIOD_MAP, type EventScheduleStatusPresentation, type EventScheduleStatusTone, type EventStallholderDateOption, type EventStallholdersData, FUTURE_EVENT_DATE_STATUSES, type GetEventStallholdersDataInput, type GetVendorEventsDataInput, INITIAL_BILLING_CATALOG, IOS_URL, MANUAL_DATE_STATUSES, NETWORK_USER_FACING_ERROR, NZ_TZ, PRESERVED_RELATION_DATE_STATUSES, PostTypeLabels, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, type StallholderFilterOption, type VendorEventDateOption, type VendorEventsData, accumulateItems, availableRegionOptions, availableRegionTypes, billingCatalogDefinitionMatches, buildCalendarSheetContentData, buildRelationEligibleEventSchedule, capitalizeFirstLetter, cluemartSocialMedia, collectStallholderDateTimes, collectVendorEventRelationDateTimes, computeDailyClueState, computeHasMore, countLetterOccurrences, countLetterOccurrencesUpTo, createAffiliateReward, dateFormat, defaultGetId, eventHasSelectedDate, eventMatchesDateStatusPeriod, eventStartDatesSet, filterDatesByFutureStatus, filterEventsByDateStatusPeriod, filterRegisteredVendorsByEventDatesOnly, filterRegisteredVendorsForEvent, filterUnregisteredVendorsByEventDatesOnly, filterUnregisteredVendorsForEvent, filterVendorEventsBySelectedDate, findEventDateTimeByIsoDate, formatDate, formatDistance, formatIrdNumber, formatNZBankAccount, formatTimestamp, fromCalendarIsoDate, futureTimePeriods, getAllowedEventDateStatuses, getBillingCatalogKeyForSelection, getCurrentAndFutureDates, getDailyClueDayIndex, getDistanceInKilometers, getDistanceInMeters, getErrorMessage, getEventCalendarIsoDates, getEventScheduleStatusLabel, getEventScheduleStatusPresentation, getEventScheduleStatusTone, getEventStallholderEmptyMessage, getEventStallholdersData, getFutureEventStatus, getRegisteredVendorCategoryNames, getRegisteredVendorStartDates, getStallholderCategoryNames, getStallholderCategoryOptions, getUniqueStallholderStartDates, getUniqueStartDates, getUnregisteredVendorCategoryNames, getUnregisteredVendorStartDates, getVendorEventRelationDateOptions, getVendorEventRelationStartDates, getVendorEventsData, getVendorEventsEmptyMessage, hasMatchingEventDate, isFutureDatesBeforeThreshold, isFutureEventDateStatus, isFutureStartDate, isInternalErrorMessage, isIsoDateString, isResourceImageActive, isTransientNetworkError, isUtcMidnight, isValidIrdNumber, isoDateFormat, licenseNiceNames, mapArrayToOptions, matchesCategory, matchesSelectedDate, normalizeIrdNumber, normalizeResourceImage, normalizeUrl, nzDayKey, nzStartOfDay, paymentMethodOptions, relationHasSelectedDate, removeTypename, resolveResourceImageActive, rewardNiceNames, seededShuffle, shouldShowEventActionsWithWeather, sortDatesChronologically, statusOptions, sumUserOverallPoints, timeFormat, toCalendarIsoDate, toNZTime, toUserFacingErrorMessage, truncateText, updateSingleDateTimeStatus, vendorLicences };
541
+ export { AD_METRIC_IMPRESSION_RETRY_DELAY_MS, AD_METRIC_ROTATION_INTERVAL_MS, 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_LABELS, EVENT_DATE_STATUS_PERIOD_MAP, type EventScheduleStatusPresentation, type EventScheduleStatusTone, type EventStallholderDateOption, type EventStallholdersData, FUTURE_EVENT_DATE_STATUSES, type GetEventStallholdersDataInput, type GetVendorEventsDataInput, INITIAL_BILLING_CATALOG, IOS_URL, MANUAL_DATE_STATUSES, NETWORK_USER_FACING_ERROR, NZ_TZ, PRESERVED_RELATION_DATE_STATUSES, PostTypeLabels, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, type StallholderFilterOption, type VendorEventDateOption, type VendorEventsData, accumulateItems, availableRegionOptions, availableRegionTypes, billingCatalogDefinitionMatches, buildAdMetricSlotKey, buildCalendarSheetContentData, buildRelationEligibleEventSchedule, capitalizeFirstLetter, cluemartSocialMedia, collectStallholderDateTimes, collectVendorEventRelationDateTimes, computeDailyClueState, computeHasMore, countLetterOccurrences, countLetterOccurrencesUpTo, createAffiliateReward, dateFormat, defaultGetId, eventHasSelectedDate, eventMatchesDateStatusPeriod, eventStartDatesSet, filterDatesByFutureStatus, filterEventsByDateStatusPeriod, filterRegisteredVendorsByEventDatesOnly, filterRegisteredVendorsForEvent, filterUnregisteredVendorsByEventDatesOnly, filterUnregisteredVendorsForEvent, filterVendorEventsBySelectedDate, findEventDateTimeByIsoDate, formatDate, formatDateOptionLabel, formatDistance, formatIrdNumber, formatNZBankAccount, formatTimestamp, fromCalendarIsoDate, futureTimePeriods, generateAdClickId, getAdMetricRotationIndex, getAdMetricRotationSlot, getAllowedEventDateStatuses, getBillingCatalogKeyForSelection, getCurrentAndFutureDates, getDailyClueDayIndex, getDistanceInKilometers, getDistanceInMeters, getErrorMessage, getEventCalendarIsoDates, getEventScheduleStatusLabel, getEventScheduleStatusPresentation, getEventScheduleStatusTone, getEventStallholderEmptyMessage, getEventStallholdersData, getFutureEventStatus, getRegisteredVendorCategoryNames, getRegisteredVendorStartDates, getStallholderCategoryNames, getStallholderCategoryOptions, getUniqueStallholderStartDates, getUniqueStartDates, getUnregisteredVendorCategoryNames, getUnregisteredVendorStartDates, getVendorEventRelationDateOptions, getVendorEventRelationStartDates, getVendorEventsData, getVendorEventsEmptyMessage, hasMatchingEventDate, isFutureDatesBeforeThreshold, isFutureEventDateStatus, isFutureStartDate, isInternalErrorMessage, isIsoDateString, isPastDate, isResourceImageActive, isTransientNetworkError, isUtcMidnight, isValidIrdNumber, isoDateFormat, licenseNiceNames, mapArrayToOptions, matchesCategory, matchesSelectedDate, normalizeIrdNumber, normalizeResourceImage, normalizeUrl, nzDayKey, nzStartOfDay, paymentMethodOptions, relationHasSelectedDate, removeTypename, resolveResourceImageActive, rewardNiceNames, seededShuffle, shouldShowEventActionsWithWeather, sortDatesChronologically, statusOptions, sumUserOverallPoints, timeFormat, toCalendarIsoDate, toNZTime, toUserFacingErrorMessage, truncateText, updateSingleDateTimeStatus, vendorLicences };
@@ -95,6 +95,22 @@ type DateFormat = "date" | "time" | "datetime";
95
95
  * @returns formatted string based on display option
96
96
  */
97
97
  declare const formatDate: (dateStr: string, display?: DateFormat, timeStr?: string) => string;
98
+ /**
99
+ * True when a `dd-mm-yyyy` date falls before today's calendar day in
100
+ * `Pacific/Auckland`. The current day counts as not past, and values that do not
101
+ * parse as a date are never treated as past.
102
+ */
103
+ declare function isPastDate(dateStr: string): boolean;
104
+ /**
105
+ * Date-option label: the long-form date text, marked `(Past)` when the slot has
106
+ * already happened. Used for the event/vendor date filter pills, which also list
107
+ * historical relation dates.
108
+ *
109
+ * The label and the marker come from the same strict parse, so an impossible or
110
+ * malformed date is returned verbatim rather than being rolled over into a real
111
+ * date that would then contradict the `(Past)` decision.
112
+ */
113
+ declare function formatDateOptionLabel(dateStr: string): string;
98
114
  declare const getCurrentAndFutureDates: <T extends {
99
115
  startDate?: string;
100
116
  startTime?: string;
@@ -406,6 +422,22 @@ declare function isValidIrdNumber(value: string): boolean;
406
422
  /** True for short-lived connectivity failures (e.g. resume before the stack is ready). */
407
423
  declare function isTransientNetworkError(err: unknown): boolean;
408
424
 
425
+ /** Client-side rotation window shared by web (admin) and mobile ad renderers. */
426
+ declare const AD_METRIC_ROTATION_INTERVAL_MS = 8000;
427
+ /** Delay before a single impression retry within the same rotation slot. */
428
+ declare const AD_METRIC_IMPRESSION_RETRY_DELAY_MS = 1000;
429
+ /** Rotation slot index for a timestamp, matching the server dedupe window. */
430
+ declare function getAdMetricRotationSlot(epochMilliseconds: number): number;
431
+ /** Which ad of `count` is displayed at a given timestamp. */
432
+ declare function getAdMetricRotationIndex(epochMilliseconds: number, count: number): number;
433
+ /** Stable per-slot impression key used by the client to suppress duplicates. */
434
+ declare function buildAdMetricSlotKey(adId: string, placement: string, slot: number): string;
435
+ /**
436
+ * Unique per-click id. `crypto.randomUUID` is absent or non-callable in older
437
+ * browsers, non-secure contexts, and some React Native runtimes.
438
+ */
439
+ declare function generateAdClickId(): string;
440
+
409
441
  declare const BILLING_CATALOG_KEYS: readonly ["pro_vendor_monthly", "pro_vendor_yearly", "pro_plus_vendor_monthly", "pro_plus_vendor_yearly"];
410
442
  declare const BILLING_CATALOG_CURRENCY: "nzd";
411
443
  /**
@@ -506,4 +538,4 @@ declare function toUserFacingErrorMessage(error: string | null | undefined, fall
506
538
  /** Extracts and sanitizes an unknown catch/Apollo error for toasts and alerts. */
507
539
  declare function getErrorMessage(error: unknown, fallback?: string): string;
508
540
 
509
- 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_LABELS, EVENT_DATE_STATUS_PERIOD_MAP, type EventScheduleStatusPresentation, type EventScheduleStatusTone, type EventStallholderDateOption, type EventStallholdersData, FUTURE_EVENT_DATE_STATUSES, type GetEventStallholdersDataInput, type GetVendorEventsDataInput, INITIAL_BILLING_CATALOG, IOS_URL, MANUAL_DATE_STATUSES, NETWORK_USER_FACING_ERROR, NZ_TZ, PRESERVED_RELATION_DATE_STATUSES, PostTypeLabels, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, type StallholderFilterOption, type VendorEventDateOption, type VendorEventsData, accumulateItems, availableRegionOptions, availableRegionTypes, billingCatalogDefinitionMatches, buildCalendarSheetContentData, buildRelationEligibleEventSchedule, capitalizeFirstLetter, cluemartSocialMedia, collectStallholderDateTimes, collectVendorEventRelationDateTimes, computeDailyClueState, computeHasMore, countLetterOccurrences, countLetterOccurrencesUpTo, createAffiliateReward, dateFormat, defaultGetId, eventHasSelectedDate, eventMatchesDateStatusPeriod, eventStartDatesSet, filterDatesByFutureStatus, filterEventsByDateStatusPeriod, filterRegisteredVendorsByEventDatesOnly, filterRegisteredVendorsForEvent, filterUnregisteredVendorsByEventDatesOnly, filterUnregisteredVendorsForEvent, filterVendorEventsBySelectedDate, findEventDateTimeByIsoDate, formatDate, formatDistance, formatIrdNumber, formatNZBankAccount, formatTimestamp, fromCalendarIsoDate, futureTimePeriods, getAllowedEventDateStatuses, getBillingCatalogKeyForSelection, getCurrentAndFutureDates, getDailyClueDayIndex, getDistanceInKilometers, getDistanceInMeters, getErrorMessage, getEventCalendarIsoDates, getEventScheduleStatusLabel, getEventScheduleStatusPresentation, getEventScheduleStatusTone, getEventStallholderEmptyMessage, getEventStallholdersData, getFutureEventStatus, getRegisteredVendorCategoryNames, getRegisteredVendorStartDates, getStallholderCategoryNames, getStallholderCategoryOptions, getUniqueStallholderStartDates, getUniqueStartDates, getUnregisteredVendorCategoryNames, getUnregisteredVendorStartDates, getVendorEventRelationDateOptions, getVendorEventRelationStartDates, getVendorEventsData, getVendorEventsEmptyMessage, hasMatchingEventDate, isFutureDatesBeforeThreshold, isFutureEventDateStatus, isFutureStartDate, isInternalErrorMessage, isIsoDateString, isResourceImageActive, isTransientNetworkError, isUtcMidnight, isValidIrdNumber, isoDateFormat, licenseNiceNames, mapArrayToOptions, matchesCategory, matchesSelectedDate, normalizeIrdNumber, normalizeResourceImage, normalizeUrl, nzDayKey, nzStartOfDay, paymentMethodOptions, relationHasSelectedDate, removeTypename, resolveResourceImageActive, rewardNiceNames, seededShuffle, shouldShowEventActionsWithWeather, sortDatesChronologically, statusOptions, sumUserOverallPoints, timeFormat, toCalendarIsoDate, toNZTime, toUserFacingErrorMessage, truncateText, updateSingleDateTimeStatus, vendorLicences };
541
+ export { AD_METRIC_IMPRESSION_RETRY_DELAY_MS, AD_METRIC_ROTATION_INTERVAL_MS, 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_LABELS, EVENT_DATE_STATUS_PERIOD_MAP, type EventScheduleStatusPresentation, type EventScheduleStatusTone, type EventStallholderDateOption, type EventStallholdersData, FUTURE_EVENT_DATE_STATUSES, type GetEventStallholdersDataInput, type GetVendorEventsDataInput, INITIAL_BILLING_CATALOG, IOS_URL, MANUAL_DATE_STATUSES, NETWORK_USER_FACING_ERROR, NZ_TZ, PRESERVED_RELATION_DATE_STATUSES, PostTypeLabels, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, type StallholderFilterOption, type VendorEventDateOption, type VendorEventsData, accumulateItems, availableRegionOptions, availableRegionTypes, billingCatalogDefinitionMatches, buildAdMetricSlotKey, buildCalendarSheetContentData, buildRelationEligibleEventSchedule, capitalizeFirstLetter, cluemartSocialMedia, collectStallholderDateTimes, collectVendorEventRelationDateTimes, computeDailyClueState, computeHasMore, countLetterOccurrences, countLetterOccurrencesUpTo, createAffiliateReward, dateFormat, defaultGetId, eventHasSelectedDate, eventMatchesDateStatusPeriod, eventStartDatesSet, filterDatesByFutureStatus, filterEventsByDateStatusPeriod, filterRegisteredVendorsByEventDatesOnly, filterRegisteredVendorsForEvent, filterUnregisteredVendorsByEventDatesOnly, filterUnregisteredVendorsForEvent, filterVendorEventsBySelectedDate, findEventDateTimeByIsoDate, formatDate, formatDateOptionLabel, formatDistance, formatIrdNumber, formatNZBankAccount, formatTimestamp, fromCalendarIsoDate, futureTimePeriods, generateAdClickId, getAdMetricRotationIndex, getAdMetricRotationSlot, getAllowedEventDateStatuses, getBillingCatalogKeyForSelection, getCurrentAndFutureDates, getDailyClueDayIndex, getDistanceInKilometers, getDistanceInMeters, getErrorMessage, getEventCalendarIsoDates, getEventScheduleStatusLabel, getEventScheduleStatusPresentation, getEventScheduleStatusTone, getEventStallholderEmptyMessage, getEventStallholdersData, getFutureEventStatus, getRegisteredVendorCategoryNames, getRegisteredVendorStartDates, getStallholderCategoryNames, getStallholderCategoryOptions, getUniqueStallholderStartDates, getUniqueStartDates, getUnregisteredVendorCategoryNames, getUnregisteredVendorStartDates, getVendorEventRelationDateOptions, getVendorEventRelationStartDates, getVendorEventsData, getVendorEventsEmptyMessage, hasMatchingEventDate, isFutureDatesBeforeThreshold, isFutureEventDateStatus, isFutureStartDate, isInternalErrorMessage, isIsoDateString, isPastDate, isResourceImageActive, isTransientNetworkError, isUtcMidnight, isValidIrdNumber, isoDateFormat, licenseNiceNames, mapArrayToOptions, matchesCategory, matchesSelectedDate, normalizeIrdNumber, normalizeResourceImage, normalizeUrl, nzDayKey, nzStartOfDay, paymentMethodOptions, relationHasSelectedDate, removeTypename, resolveResourceImageActive, rewardNiceNames, seededShuffle, shouldShowEventActionsWithWeather, sortDatesChronologically, statusOptions, sumUserOverallPoints, timeFormat, toCalendarIsoDate, toNZTime, toUserFacingErrorMessage, truncateText, updateSingleDateTimeStatus, vendorLicences };
@@ -85,7 +85,7 @@ import {
85
85
  toUserFacingErrorMessage,
86
86
  truncateText,
87
87
  vendorLicences
88
- } from "../chunk-DEK7NF3O.mjs";
88
+ } from "../chunk-T736WX7J.mjs";
89
89
  import {
90
90
  formatDistance,
91
91
  getDistanceInKilometers,
@@ -103,6 +103,7 @@ import {
103
103
  filterDatesByFutureStatus,
104
104
  filterEventsByDateStatusPeriod,
105
105
  formatDate,
106
+ formatDateOptionLabel,
106
107
  formatTimestamp,
107
108
  futureTimePeriods,
108
109
  getAllowedEventDateStatuses,
@@ -113,6 +114,7 @@ import {
113
114
  isFutureEventDateStatus,
114
115
  isFutureStartDate,
115
116
  isIsoDateString,
117
+ isPastDate,
116
118
  isUtcMidnight,
117
119
  isoDateFormat,
118
120
  nzDayKey,
@@ -121,20 +123,28 @@ import {
121
123
  timeFormat,
122
124
  toNZTime,
123
125
  updateSingleDateTimeStatus
124
- } from "../chunk-4CQLKIQ6.mjs";
126
+ } from "../chunk-TGEYOSSX.mjs";
125
127
  import "../chunk-WWAHS5R2.mjs";
126
128
  import {
127
129
  isTransientNetworkError
128
130
  } from "../chunk-RAYUJODN.mjs";
129
131
  import "../chunk-DQ7ZHIXW.mjs";
130
132
  import {
133
+ AD_METRIC_IMPRESSION_RETRY_DELAY_MS,
134
+ AD_METRIC_ROTATION_INTERVAL_MS,
131
135
  DEFAULT_PAGE_SIZE,
132
136
  accumulateItems,
137
+ buildAdMetricSlotKey,
133
138
  computeHasMore,
134
- defaultGetId
135
- } from "../chunk-7DQBUZXY.mjs";
139
+ defaultGetId,
140
+ generateAdClickId,
141
+ getAdMetricRotationIndex,
142
+ getAdMetricRotationSlot
143
+ } from "../chunk-YCUKTVVA.mjs";
136
144
  import "../chunk-A52C6JDT.mjs";
137
145
  export {
146
+ AD_METRIC_IMPRESSION_RETRY_DELAY_MS,
147
+ AD_METRIC_ROTATION_INTERVAL_MS,
138
148
  AFFILIATE_PARTICIPANT_TYPE_LABELS,
139
149
  AFFILIATE_REWARDS,
140
150
  ANDROID_URL,
@@ -164,6 +174,7 @@ export {
164
174
  availableRegionOptions,
165
175
  availableRegionTypes,
166
176
  billingCatalogDefinitionMatches,
177
+ buildAdMetricSlotKey,
167
178
  buildCalendarSheetContentData,
168
179
  buildRelationEligibleEventSchedule,
169
180
  capitalizeFirstLetter,
@@ -189,12 +200,16 @@ export {
189
200
  filterVendorEventsBySelectedDate,
190
201
  findEventDateTimeByIsoDate,
191
202
  formatDate,
203
+ formatDateOptionLabel,
192
204
  formatDistance,
193
205
  formatIrdNumber,
194
206
  formatNZBankAccount,
195
207
  formatTimestamp,
196
208
  fromCalendarIsoDate,
197
209
  futureTimePeriods,
210
+ generateAdClickId,
211
+ getAdMetricRotationIndex,
212
+ getAdMetricRotationSlot,
198
213
  getAllowedEventDateStatuses,
199
214
  getBillingCatalogKeyForSelection,
200
215
  getCurrentAndFutureDates,
@@ -227,6 +242,7 @@ export {
227
242
  isFutureStartDate,
228
243
  isInternalErrorMessage,
229
244
  isIsoDateString,
245
+ isPastDate,
230
246
  isResourceImageActive,
231
247
  isTransientNetworkError,
232
248
  isUtcMidnight,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timardex/cluemart-shared",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",