@namiml/web-sdk 3.3.9-dev.202603120556 → 3.3.9-dev.202603122330
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/nami-web.cjs +1 -1
- package/dist/nami-web.mjs +1 -1
- package/dist/nami-web.umd.js +1 -1
- package/dist/repositories/device.repository.d.ts +1 -1
- package/dist/services/storage.service.d.ts +5 -0
- package/dist/types/config.d.ts +1 -0
- package/dist/utils/config.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ export declare class DeviceRepository {
|
|
|
4
4
|
static instance: DeviceRepository;
|
|
5
5
|
createOrUpdateDevice(deviceData: DevicePayload, splitPositionUUID?: string, namiRefs?: INamiRefsInstance): {
|
|
6
6
|
id: string;
|
|
7
|
-
device: Promise<Device | null
|
|
7
|
+
device: Promise<Device | null> | null;
|
|
8
8
|
};
|
|
9
9
|
createDevice(deviceData: DevicePayload, namiRefs?: INamiRefsInstance): Promise<Device | null>;
|
|
10
10
|
updateDevice(currentDeviceId: string, deviceData: DevicePayload): Promise<Device | null>;
|
|
@@ -60,6 +60,11 @@ export declare class StorageService {
|
|
|
60
60
|
getAnonymousUUID(): string | null;
|
|
61
61
|
setAnonymousUUID(uuid: string): void;
|
|
62
62
|
clearAnonymousUUID(): void;
|
|
63
|
+
private isTtlCacheKey;
|
|
64
|
+
private getCampaignCacheTtl;
|
|
65
|
+
private setWithTtl;
|
|
66
|
+
private isTimestampedCache;
|
|
67
|
+
private getWithTtl;
|
|
63
68
|
/**
|
|
64
69
|
* Set an item in localStorage.
|
|
65
70
|
* @param {string} key - The key under which to store the data.
|
package/dist/types/config.d.ts
CHANGED
package/dist/utils/config.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ExtendedPlatformInfo, InitialConfig, InitialConfigCompressed } from "..
|
|
|
2
2
|
export declare const getBaseUrl: (namiCommands?: string[]) => string;
|
|
3
3
|
export declare const getExtendedClientInfo: (namiCommands: string[]) => ExtendedPlatformInfo;
|
|
4
4
|
export declare const hasCapability: (capability: string) => boolean;
|
|
5
|
+
export declare const getCampaignCacheTtl: () => number | null;
|
|
5
6
|
export declare const hasPurchaseManagement: (messagePrefix?: string) => boolean;
|
|
6
7
|
export declare const shouldValidateProductGroups: () => boolean;
|
|
7
8
|
export declare function tryParseJson(str: string): InitialConfig | InitialConfigCompressed | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@namiml/web-sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.3.9-dev.
|
|
4
|
+
"version": "3.3.9-dev.202603122330",
|
|
5
5
|
"source": "src/nami-web.ts",
|
|
6
6
|
"description": "Subscription monetization infrastructure — drop-in SDK with no-code paywalls, onboarding flows, A/B testing for web",
|
|
7
7
|
"scripts": {
|