@namiml/web-sdk 3.3.9-dev.202603120528 → 3.3.9-dev.202603120541

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.
@@ -7,7 +7,14 @@ export declare function getFreeTrialPeriod(product: NamiProductDetails): string
7
7
  export declare function getFreeTrialOffer(product: NamiProductDetails): NamiProductOffer | undefined;
8
8
  export declare function extractStandardPricingPhases(product: NamiProductDetails): PricingPhase[];
9
9
  export declare function convertOfferToPricingPhase(offer: NamiProductOffer | null, subPeriod?: NamiSubscriptionPeriod): PricingPhase;
10
- export declare function convertISO8601PeriodToText(iso8601Period: string | null, singular?: boolean, justPeriod?: boolean, justNumber?: boolean): string | null;
10
+ export declare function convertISO8601PeriodToText(iso8601Period: string | null, singular?: boolean, justPeriod?: boolean, justNumber?: boolean, useAbbrev?: boolean): string | null;
11
+ /** True if the billing period is month- or year-based (e.g. P1M, P12M, P1Y). Used to return n/a for durationInMonths when period is days/weeks. */
12
+ export declare function isMonthOrYearBillingPeriod(period: string | null): boolean;
13
+ /**
14
+ * Returns the localized frequency adverb for a period (e.g. "weekly", "monthly", "bi-annually", "yearly").
15
+ * Returns null for day-based periods (n/a). Uses nami_weekly, nami_monthly, nami_biannually, nami_yearly, etc.
16
+ */
17
+ export declare function convertISO8601PeriodToPeriodly(iso8601Period: string | null): string | null;
11
18
  export declare function getCurrencyFormat(priceCurrencyCode: string): Intl.NumberFormat;
12
19
  export declare const getPriceDifference: (currentSkuPricePerMonth?: number, referencedSkuPricePerMonth?: number, currencyFormat?: Intl.NumberFormat) => string | null;
13
20
  export declare const getPercentagePriceDifference: (currentSkuPrice?: number, currentSkuDurationInMonths?: number, referencedSkuPrice?: number, referencedSkuPeriodInMonths?: number) => string | null;