@timardex/cluemart-shared 2.4.0 → 2.5.1

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 (59) 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/auth/index.mjs +1 -1
  4. package/dist/{chunk-J72IMZ6E.mjs → chunk-4CQLKIQ6.mjs} +1 -1
  5. package/dist/chunk-4CQLKIQ6.mjs.map +1 -0
  6. package/dist/{chunk-XGGFB7HY.mjs → chunk-A52C6JDT.mjs} +2 -2
  7. package/dist/chunk-A52C6JDT.mjs.map +1 -0
  8. package/dist/{chunk-LHKJJ7SO.mjs → chunk-CQ26N3W6.mjs} +2 -2
  9. package/dist/{chunk-LEAXY4DI.mjs → chunk-H6HM2FOZ.mjs} +3 -3
  10. package/dist/{chunk-ZECVZFK3.mjs → chunk-NEOBS55J.mjs} +4 -3
  11. package/dist/{chunk-ZECVZFK3.mjs.map → chunk-NEOBS55J.mjs.map} +1 -1
  12. package/dist/{chunk-2RHUGVV3.mjs → chunk-WOBG6I4T.mjs} +175 -12
  13. package/dist/chunk-WOBG6I4T.mjs.map +1 -0
  14. package/dist/chunk-YCUKTVVA.mjs +69 -0
  15. package/dist/chunk-YCUKTVVA.mjs.map +1 -0
  16. package/dist/enums/index.cjs +1 -1
  17. package/dist/enums/index.cjs.map +1 -1
  18. package/dist/enums/index.d.mts +2 -2
  19. package/dist/enums/index.d.ts +2 -2
  20. package/dist/enums/index.mjs +1 -1
  21. package/dist/formFields/index.cjs +2 -1
  22. package/dist/formFields/index.cjs.map +1 -1
  23. package/dist/formFields/index.mjs +5 -5
  24. package/dist/graphql/index.cjs +193 -13
  25. package/dist/graphql/index.cjs.map +1 -1
  26. package/dist/graphql/index.d.mts +46 -3
  27. package/dist/graphql/index.d.ts +46 -3
  28. package/dist/graphql/index.mjs +9 -3
  29. package/dist/hooks/index.cjs +25 -14
  30. package/dist/hooks/index.cjs.map +1 -1
  31. package/dist/hooks/index.d.mts +1 -1
  32. package/dist/hooks/index.d.ts +1 -1
  33. package/dist/hooks/index.mjs +7 -7
  34. package/dist/index.cjs +211 -14
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.mts +69 -9
  37. package/dist/index.d.ts +69 -9
  38. package/dist/index.mjs +198 -10
  39. package/dist/index.mjs.map +1 -1
  40. package/dist/region/index.cjs.map +1 -1
  41. package/dist/region/index.mjs +1 -1
  42. package/dist/sharing/index.cjs.map +1 -1
  43. package/dist/sharing/index.mjs +3 -3
  44. package/dist/types/index.d.mts +1 -1
  45. package/dist/types/index.d.ts +1 -1
  46. package/dist/types/index.mjs +1 -1
  47. package/dist/utils/index.cjs +36 -1
  48. package/dist/utils/index.cjs.map +1 -1
  49. package/dist/utils/index.d.mts +23 -6
  50. package/dist/utils/index.d.ts +23 -6
  51. package/dist/utils/index.mjs +17 -5
  52. package/package.json +1 -1
  53. package/dist/chunk-2RHUGVV3.mjs.map +0 -1
  54. package/dist/chunk-7DQBUZXY.mjs +0 -41
  55. package/dist/chunk-7DQBUZXY.mjs.map +0 -1
  56. package/dist/chunk-J72IMZ6E.mjs.map +0 -1
  57. package/dist/chunk-XGGFB7HY.mjs.map +0 -1
  58. /package/dist/{chunk-LHKJJ7SO.mjs.map → chunk-CQ26N3W6.mjs.map} +0 -0
  59. /package/dist/{chunk-LEAXY4DI.mjs.map → chunk-H6HM2FOZ.mjs.map} +0 -0
@@ -258,10 +258,10 @@ declare const MANUAL_DATE_STATUSES: ReadonlySet<EnumEventDateStatus>;
258
258
  * the live `Event.dateTime` for visibility, but a relation date pointing at
259
259
  * them is treated as removed. Archived (ended) slots are appended separately
260
260
  * so relation dates for archived history still match instead of being wrongly
261
- * marked unavailable.
261
+ * marked canceled.
262
262
  *
263
- * Shared by the server's `processUnavailableRelations` sync and the cron
264
- * orphan-date cleanup so both use the same archive-aware schedule.
263
+ * Shared by the event-update relation sync and the cron orphan-date cleanup so
264
+ * both use the same archive-aware schedule.
265
265
  */
266
266
  declare function buildRelationEligibleEventSchedule<T extends {
267
267
  dateStatus?: EnumEventDateStatus | null;
@@ -406,6 +406,22 @@ declare function isValidIrdNumber(value: string): boolean;
406
406
  /** True for short-lived connectivity failures (e.g. resume before the stack is ready). */
407
407
  declare function isTransientNetworkError(err: unknown): boolean;
408
408
 
409
+ /** Client-side rotation window shared by web (admin) and mobile ad renderers. */
410
+ declare const AD_METRIC_ROTATION_INTERVAL_MS = 8000;
411
+ /** Delay before a single impression retry within the same rotation slot. */
412
+ declare const AD_METRIC_IMPRESSION_RETRY_DELAY_MS = 1000;
413
+ /** Rotation slot index for a timestamp, matching the server dedupe window. */
414
+ declare function getAdMetricRotationSlot(epochMilliseconds: number): number;
415
+ /** Which ad of `count` is displayed at a given timestamp. */
416
+ declare function getAdMetricRotationIndex(epochMilliseconds: number, count: number): number;
417
+ /** Stable per-slot impression key used by the client to suppress duplicates. */
418
+ declare function buildAdMetricSlotKey(adId: string, placement: string, slot: number): string;
419
+ /**
420
+ * Unique per-click id. `crypto.randomUUID` is absent or non-callable in older
421
+ * browsers, non-secure contexts, and some React Native runtimes.
422
+ */
423
+ declare function generateAdClickId(): string;
424
+
409
425
  declare const BILLING_CATALOG_KEYS: readonly ["pro_vendor_monthly", "pro_vendor_yearly", "pro_plus_vendor_monthly", "pro_plus_vendor_yearly"];
410
426
  declare const BILLING_CATALOG_CURRENCY: "nzd";
411
427
  /**
@@ -489,8 +505,9 @@ declare function getVendorEventsData({ events, selectedDate, }: GetVendorEventsD
489
505
  /**
490
506
  * Relation date statuses that must survive when their event slot is removed or
491
507
  * a relation is overwritten. ACCEPTED/COMPLETED are historical or paid
492
- * bookings; REJECTED is kept for the organizer's records. Dates with any other
493
- * status may be deleted once their slot disappears from the event schedule.
508
+ * bookings; CANCELED is kept so history can report dates the event canceled;
509
+ * REJECTED is kept for the organizer's records. Dates with any other status
510
+ * may be deleted once their slot disappears from the event schedule.
494
511
  */
495
512
  declare const PRESERVED_RELATION_DATE_STATUSES: ReadonlySet<EnumInviteStatus>;
496
513
 
@@ -505,4 +522,4 @@ declare function toUserFacingErrorMessage(error: string | null | undefined, fall
505
522
  /** Extracts and sanitizes an unknown catch/Apollo error for toasts and alerts. */
506
523
  declare function getErrorMessage(error: unknown, fallback?: string): string;
507
524
 
508
- 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 };
525
+ 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, 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, 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 };
@@ -258,10 +258,10 @@ declare const MANUAL_DATE_STATUSES: ReadonlySet<EnumEventDateStatus>;
258
258
  * the live `Event.dateTime` for visibility, but a relation date pointing at
259
259
  * them is treated as removed. Archived (ended) slots are appended separately
260
260
  * so relation dates for archived history still match instead of being wrongly
261
- * marked unavailable.
261
+ * marked canceled.
262
262
  *
263
- * Shared by the server's `processUnavailableRelations` sync and the cron
264
- * orphan-date cleanup so both use the same archive-aware schedule.
263
+ * Shared by the event-update relation sync and the cron orphan-date cleanup so
264
+ * both use the same archive-aware schedule.
265
265
  */
266
266
  declare function buildRelationEligibleEventSchedule<T extends {
267
267
  dateStatus?: EnumEventDateStatus | null;
@@ -406,6 +406,22 @@ declare function isValidIrdNumber(value: string): boolean;
406
406
  /** True for short-lived connectivity failures (e.g. resume before the stack is ready). */
407
407
  declare function isTransientNetworkError(err: unknown): boolean;
408
408
 
409
+ /** Client-side rotation window shared by web (admin) and mobile ad renderers. */
410
+ declare const AD_METRIC_ROTATION_INTERVAL_MS = 8000;
411
+ /** Delay before a single impression retry within the same rotation slot. */
412
+ declare const AD_METRIC_IMPRESSION_RETRY_DELAY_MS = 1000;
413
+ /** Rotation slot index for a timestamp, matching the server dedupe window. */
414
+ declare function getAdMetricRotationSlot(epochMilliseconds: number): number;
415
+ /** Which ad of `count` is displayed at a given timestamp. */
416
+ declare function getAdMetricRotationIndex(epochMilliseconds: number, count: number): number;
417
+ /** Stable per-slot impression key used by the client to suppress duplicates. */
418
+ declare function buildAdMetricSlotKey(adId: string, placement: string, slot: number): string;
419
+ /**
420
+ * Unique per-click id. `crypto.randomUUID` is absent or non-callable in older
421
+ * browsers, non-secure contexts, and some React Native runtimes.
422
+ */
423
+ declare function generateAdClickId(): string;
424
+
409
425
  declare const BILLING_CATALOG_KEYS: readonly ["pro_vendor_monthly", "pro_vendor_yearly", "pro_plus_vendor_monthly", "pro_plus_vendor_yearly"];
410
426
  declare const BILLING_CATALOG_CURRENCY: "nzd";
411
427
  /**
@@ -489,8 +505,9 @@ declare function getVendorEventsData({ events, selectedDate, }: GetVendorEventsD
489
505
  /**
490
506
  * Relation date statuses that must survive when their event slot is removed or
491
507
  * a relation is overwritten. ACCEPTED/COMPLETED are historical or paid
492
- * bookings; REJECTED is kept for the organizer's records. Dates with any other
493
- * status may be deleted once their slot disappears from the event schedule.
508
+ * bookings; CANCELED is kept so history can report dates the event canceled;
509
+ * REJECTED is kept for the organizer's records. Dates with any other status
510
+ * may be deleted once their slot disappears from the event schedule.
494
511
  */
495
512
  declare const PRESERVED_RELATION_DATE_STATUSES: ReadonlySet<EnumInviteStatus>;
496
513
 
@@ -505,4 +522,4 @@ declare function toUserFacingErrorMessage(error: string | null | undefined, fall
505
522
  /** Extracts and sanitizes an unknown catch/Apollo error for toasts and alerts. */
506
523
  declare function getErrorMessage(error: unknown, fallback?: string): string;
507
524
 
508
- 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 };
525
+ 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, 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, 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-ZECVZFK3.mjs";
88
+ } from "../chunk-NEOBS55J.mjs";
89
89
  import {
90
90
  formatDistance,
91
91
  getDistanceInKilometers,
@@ -121,20 +121,28 @@ import {
121
121
  timeFormat,
122
122
  toNZTime,
123
123
  updateSingleDateTimeStatus
124
- } from "../chunk-J72IMZ6E.mjs";
124
+ } from "../chunk-4CQLKIQ6.mjs";
125
125
  import "../chunk-WWAHS5R2.mjs";
126
126
  import {
127
127
  isTransientNetworkError
128
128
  } from "../chunk-RAYUJODN.mjs";
129
129
  import "../chunk-DQ7ZHIXW.mjs";
130
130
  import {
131
+ AD_METRIC_IMPRESSION_RETRY_DELAY_MS,
132
+ AD_METRIC_ROTATION_INTERVAL_MS,
131
133
  DEFAULT_PAGE_SIZE,
132
134
  accumulateItems,
135
+ buildAdMetricSlotKey,
133
136
  computeHasMore,
134
- defaultGetId
135
- } from "../chunk-7DQBUZXY.mjs";
136
- import "../chunk-XGGFB7HY.mjs";
137
+ defaultGetId,
138
+ generateAdClickId,
139
+ getAdMetricRotationIndex,
140
+ getAdMetricRotationSlot
141
+ } from "../chunk-YCUKTVVA.mjs";
142
+ import "../chunk-A52C6JDT.mjs";
137
143
  export {
144
+ AD_METRIC_IMPRESSION_RETRY_DELAY_MS,
145
+ AD_METRIC_ROTATION_INTERVAL_MS,
138
146
  AFFILIATE_PARTICIPANT_TYPE_LABELS,
139
147
  AFFILIATE_REWARDS,
140
148
  ANDROID_URL,
@@ -164,6 +172,7 @@ export {
164
172
  availableRegionOptions,
165
173
  availableRegionTypes,
166
174
  billingCatalogDefinitionMatches,
175
+ buildAdMetricSlotKey,
167
176
  buildCalendarSheetContentData,
168
177
  buildRelationEligibleEventSchedule,
169
178
  capitalizeFirstLetter,
@@ -195,6 +204,9 @@ export {
195
204
  formatTimestamp,
196
205
  fromCalendarIsoDate,
197
206
  futureTimePeriods,
207
+ generateAdClickId,
208
+ getAdMetricRotationIndex,
209
+ getAdMetricRotationSlot,
198
210
  getAllowedEventDateStatuses,
199
211
  getBillingCatalogKeyForSelection,
200
212
  getCurrentAndFutureDates,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timardex/cluemart-shared",
3
- "version": "2.4.0",
3
+ "version": "2.5.1",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",