@encorekit/web-sdk 0.1.1 → 0.1.7

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 (134) hide show
  1. package/README.md +94 -9
  2. package/dist/cjs/index.cjs +1 -1
  3. package/dist/cjs/index.cjs.map +1 -1
  4. package/dist/esm/index.js +1 -1
  5. package/dist/esm/index.js.map +1 -1
  6. package/dist/umd/encore.min.js +1 -1
  7. package/dist/umd/encore.min.js.map +1 -1
  8. package/embed/README.md +409 -0
  9. package/embed/index.html +57 -0
  10. package/embed/styles.css +154 -0
  11. package/examples/README.md +149 -0
  12. package/examples/angular/README.md +210 -0
  13. package/examples/angular/angular.json +73 -0
  14. package/examples/angular/package.json +32 -0
  15. package/examples/angular/src/app/app.component.html +56 -0
  16. package/examples/angular/src/app/app.component.ts +114 -0
  17. package/examples/angular/src/app/encore.service.ts +83 -0
  18. package/examples/angular/src/index.html +13 -0
  19. package/examples/angular/src/main.ts +7 -0
  20. package/examples/angular/src/styles.css +225 -0
  21. package/examples/angular/tsconfig.json +33 -0
  22. package/examples/ios-webview/EncoreURLBuilder.swift +87 -0
  23. package/examples/ios-webview/EncoreWebViewBridge.swift +426 -0
  24. package/examples/ios-webview/ExampleViewController.swift +233 -0
  25. package/examples/ios-webview/README.md +416 -0
  26. package/examples/ios-webview/SimpleEncoreView.swift +94 -0
  27. package/examples/ios-webview/SimpleExample.swift +131 -0
  28. package/examples/react/README.md +186 -0
  29. package/examples/react/index.html +13 -0
  30. package/examples/react/package.json +24 -0
  31. package/examples/react/src/App.tsx +173 -0
  32. package/examples/react/src/index.css +227 -0
  33. package/examples/react/src/main.tsx +11 -0
  34. package/examples/react/src/vite-env.d.ts +2 -0
  35. package/examples/react/tsconfig.json +25 -0
  36. package/examples/react/vite.config.ts +8 -0
  37. package/examples/svelte/README.md +233 -0
  38. package/examples/svelte/index.html +13 -0
  39. package/examples/svelte/package.json +25 -0
  40. package/examples/svelte/src/App.svelte +164 -0
  41. package/examples/svelte/src/app.css +224 -0
  42. package/examples/svelte/src/main.ts +9 -0
  43. package/examples/svelte/src/vite-env.d.ts +3 -0
  44. package/examples/svelte/svelte.config.js +8 -0
  45. package/examples/svelte/tsconfig.json +16 -0
  46. package/examples/svelte/tsconfig.node.json +11 -0
  47. package/examples/svelte/vite.config.ts +8 -0
  48. package/examples/vanilla-js/README.md +271 -0
  49. package/examples/vanilla-js/index.html +421 -0
  50. package/examples/vue/README.md +212 -0
  51. package/examples/vue/index.html +13 -0
  52. package/examples/vue/package.json +22 -0
  53. package/examples/vue/src/App.vue +170 -0
  54. package/examples/vue/src/main.ts +6 -0
  55. package/examples/vue/src/style.css +224 -0
  56. package/examples/vue/src/vite-env.d.ts +2 -0
  57. package/examples/vue/tsconfig.json +25 -0
  58. package/examples/vue/vite.config.ts +8 -0
  59. package/package.json +22 -3
  60. package/types/analytics/AnalyticsClient.d.ts +14 -0
  61. package/types/analytics/AnalyticsClient.d.ts.map +1 -0
  62. package/types/analytics/events.d.ts +63 -0
  63. package/types/analytics/events.d.ts.map +1 -0
  64. package/types/analytics/models.d.ts +17 -0
  65. package/types/analytics/models.d.ts.map +1 -0
  66. package/types/api/APIClient.d.ts +44 -8
  67. package/types/api/APIClient.d.ts.map +1 -1
  68. package/types/api/endpoints.d.ts +11 -7
  69. package/types/api/endpoints.d.ts.map +1 -1
  70. package/types/api/models.d.ts +134 -68
  71. package/types/api/models.d.ts.map +1 -1
  72. package/types/core/Configuration.d.ts +4 -0
  73. package/types/core/Configuration.d.ts.map +1 -1
  74. package/types/core/Encore.d.ts +16 -12
  75. package/types/core/Encore.d.ts.map +1 -1
  76. package/types/core/EntitlementManager.d.ts +9 -0
  77. package/types/core/EntitlementManager.d.ts.map +1 -1
  78. package/types/core/OfferManager.d.ts +27 -7
  79. package/types/core/OfferManager.d.ts.map +1 -1
  80. package/types/types.d.ts +1 -1
  81. package/types/types.d.ts.map +1 -1
  82. package/types/ui/OfferCard.d.ts.map +1 -1
  83. package/types/ui/OfferCarousel.d.ts.map +1 -1
  84. package/types/ui/Tooltip.d.ts +22 -0
  85. package/types/ui/Tooltip.d.ts.map +1 -0
  86. package/types/ui/styles.d.ts.map +1 -1
  87. package/dist/cjs/index.js +0 -2
  88. package/dist/cjs/index.js.map +0 -1
  89. package/types/src/api/APIClient.d.ts +0 -63
  90. package/types/src/api/APIClient.d.ts.map +0 -1
  91. package/types/src/api/endpoints.d.ts +0 -35
  92. package/types/src/api/endpoints.d.ts.map +0 -1
  93. package/types/src/api/models.d.ts +0 -156
  94. package/types/src/api/models.d.ts.map +0 -1
  95. package/types/src/core/Configuration.d.ts +0 -42
  96. package/types/src/core/Configuration.d.ts.map +0 -1
  97. package/types/src/core/Encore.d.ts +0 -81
  98. package/types/src/core/Encore.d.ts.map +0 -1
  99. package/types/src/core/EntitlementManager.d.ts +0 -65
  100. package/types/src/core/EntitlementManager.d.ts.map +0 -1
  101. package/types/src/core/OfferManager.d.ts +0 -35
  102. package/types/src/core/OfferManager.d.ts.map +0 -1
  103. package/types/src/core/PlacementBuilder.d.ts +0 -27
  104. package/types/src/core/PlacementBuilder.d.ts.map +0 -1
  105. package/types/src/core/SignalManager.d.ts +0 -51
  106. package/types/src/core/SignalManager.d.ts.map +0 -1
  107. package/types/src/core/StorageManager.d.ts +0 -34
  108. package/types/src/core/StorageManager.d.ts.map +0 -1
  109. package/types/src/core/VerificationPoller.d.ts +0 -27
  110. package/types/src/core/VerificationPoller.d.ts.map +0 -1
  111. package/types/src/index.d.ts +0 -7
  112. package/types/src/index.d.ts.map +0 -1
  113. package/types/src/types.d.ts +0 -156
  114. package/types/src/types.d.ts.map +0 -1
  115. package/types/src/ui/OfferCard.d.ts +0 -29
  116. package/types/src/ui/OfferCard.d.ts.map +0 -1
  117. package/types/src/ui/OfferCarousel.d.ts +0 -55
  118. package/types/src/ui/OfferCarousel.d.ts.map +0 -1
  119. package/types/src/ui/OfferModal.d.ts +0 -41
  120. package/types/src/ui/OfferModal.d.ts.map +0 -1
  121. package/types/src/ui/SuccessScreen.d.ts +0 -33
  122. package/types/src/ui/SuccessScreen.d.ts.map +0 -1
  123. package/types/src/ui/styles.d.ts +0 -44
  124. package/types/src/ui/styles.d.ts.map +0 -1
  125. package/types/src/utils/eventEmitter.d.ts +0 -50
  126. package/types/src/utils/eventEmitter.d.ts.map +0 -1
  127. package/types/src/utils/focusDetection.d.ts +0 -21
  128. package/types/src/utils/focusDetection.d.ts.map +0 -1
  129. package/types/src/utils/logger.d.ts +0 -21
  130. package/types/src/utils/logger.d.ts.map +0 -1
  131. package/types/src/utils/network.d.ts +0 -57
  132. package/types/src/utils/network.d.ts.map +0 -1
  133. package/types/src/utils/uuid.d.ts +0 -10
  134. package/types/src/utils/uuid.d.ts.map +0 -1
@@ -1,35 +0,0 @@
1
- /**
2
- * API Endpoints
3
- * Constants and utilities for building API URLs
4
- */
5
- export declare const ENDPOINTS: {
6
- readonly FETCH_OFFERS: "/offers/show";
7
- readonly START_TRANSACTION: "/transactions/start";
8
- readonly GRANT_SIGNAL: "/transactions/:id/grant";
9
- readonly FETCH_ENTITLEMENTS: "/entitlements";
10
- readonly VERIFICATION_STATUS: "/verification/status/:id";
11
- readonly LOG_IMPRESSION: "/impressions/log";
12
- };
13
- /**
14
- * Build full URL from baseURL and endpoint path
15
- */
16
- export declare function buildURL(baseURL: string, endpoint: string): string;
17
- /**
18
- * Replace path parameters in endpoint
19
- * Example: replacePathParams('/transactions/:id/grant', { id: '123' })
20
- * Returns: '/transactions/123/grant'
21
- */
22
- export declare function replacePathParams(endpoint: string, params: Record<string, string>): string;
23
- /**
24
- * Build URL with query parameters
25
- */
26
- export declare function buildURLWithQuery(baseURL: string, endpoint: string, queryParams?: Record<string, string | number | boolean>): string;
27
- /**
28
- * Get endpoint for grant signal with transaction ID
29
- */
30
- export declare function getGrantSignalEndpoint(transactionId: string): string;
31
- /**
32
- * Get endpoint for verification status with transaction ID
33
- */
34
- export declare function getVerificationStatusEndpoint(transactionId: string): string;
35
- //# sourceMappingURL=endpoints.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../src/api/endpoints.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,eAAO,MAAM,SAAS;;;;;;;CAOZ,CAAC;AAMX;;GAEG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMlE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAM1F;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,GACtD,MAAM,CAaR;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAEpE;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAE3E"}
@@ -1,156 +0,0 @@
1
- /**
2
- * API Request and Response Models
3
- * Types for all API requests and responses matching backend contracts
4
- */
5
- import type { EntitlementType, UserAttributes, VerificationStatus } from '../types';
6
- export interface OfferModel {
7
- id: string;
8
- title: string;
9
- description: string;
10
- imageUrl?: string;
11
- ctaText: string;
12
- advertiserUrl: string;
13
- campaignId: string;
14
- creativeId: string;
15
- entitlement: EntitlementType;
16
- merchantName?: string;
17
- logoUrl?: string;
18
- instructions?: Array<{
19
- title: string;
20
- subtitle: string;
21
- ctaButtonText?: string;
22
- }>;
23
- quickInstructions?: string;
24
- trackingParameters?: Record<string, string>;
25
- }
26
- export interface APICreativeModel {
27
- id: string;
28
- campaignId: string;
29
- name: string;
30
- title: string;
31
- subtitle?: string;
32
- description?: string;
33
- primaryImageUrl: string;
34
- logoUrl?: string;
35
- ctaText: string;
36
- destinationUrl: string;
37
- trackingParameters?: Record<string, string>;
38
- instructions?: Array<{
39
- title: string;
40
- subtitle: string;
41
- ctaButtonText?: string;
42
- }>;
43
- quickInstructions?: string;
44
- }
45
- export interface APICampaignModel {
46
- id: string;
47
- merchantId: string;
48
- merchantName: string;
49
- name: string;
50
- payoutModel: string;
51
- payoutAmount: number;
52
- creatives: APICreativeModel[];
53
- }
54
- export interface APIOfferModel {
55
- transactionId: string | null;
56
- campaignId: string;
57
- campaign: APICampaignModel;
58
- }
59
- export interface TransactionModel {
60
- id: string;
61
- offerId: string;
62
- userId: string;
63
- createdAt: string;
64
- }
65
- export interface FetchOffersRequest {
66
- userId: string;
67
- attributes: UserAttributes;
68
- }
69
- export interface StartTransactionRequest {
70
- campaignId: string;
71
- userId: string;
72
- impressionId?: string;
73
- creativeId: string;
74
- }
75
- export interface GrantSignalRequest {
76
- transactionId: string;
77
- grantType: 'provisional' | 'final';
78
- timestamp: string;
79
- }
80
- export interface LogImpressionRequest {
81
- impressionId: string;
82
- userId: string;
83
- campaignId: string;
84
- creativeId: string;
85
- appBundleId: string;
86
- }
87
- export interface FetchEntitlementsRequest {
88
- userId: string;
89
- }
90
- export interface VerificationStatusRequest {
91
- transactionId: string;
92
- }
93
- export interface FetchOffersResponse {
94
- success: boolean;
95
- offers: APIOfferModel[];
96
- uiConfiguration?: {
97
- titleText?: string;
98
- subtitleText?: string;
99
- offerDescriptionText?: string;
100
- instructionsTitleText?: string;
101
- lastStepHeaderText?: string;
102
- lastStepDescriptionText?: string;
103
- creditClaimedTitleText?: string;
104
- creditClaimedSubtitleText?: string;
105
- applyCreditsButtonText?: string;
106
- };
107
- metadata?: {
108
- total: number;
109
- limit: number;
110
- offset: number;
111
- has_more: boolean;
112
- execution_time_ms: number;
113
- request_id: string;
114
- };
115
- }
116
- export interface StartTransactionResponse {
117
- transaction: TransactionModel;
118
- transactionId: string;
119
- }
120
- export interface GrantSignalResponse {
121
- success: boolean;
122
- message?: string;
123
- }
124
- export interface EntitlementsResponse {
125
- success: boolean;
126
- provisional: Record<string, {
127
- started_at: string;
128
- expires_at: string;
129
- }>;
130
- verified: Record<string, {
131
- started_at: string;
132
- expires_at: string;
133
- }>;
134
- all: Record<string, {
135
- started_at: string;
136
- expires_at: string;
137
- }>;
138
- execution_time_ms: number;
139
- }
140
- export interface VerificationStatusResponse {
141
- transactionId: string;
142
- status: VerificationStatus;
143
- verifiedAt?: string;
144
- }
145
- export interface LogImpressionResponse {
146
- success: boolean;
147
- impressionId?: string;
148
- }
149
- export interface APIErrorResponse {
150
- error: {
151
- code?: string;
152
- message: string;
153
- details?: unknown;
154
- };
155
- }
156
- //# sourceMappingURL=models.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/api/models.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAMpF,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,eAAe,CAAC;IAE7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,KAAK,CAAC;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC,CAAC;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,k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import type { EncoreConfig } from '../types';
6
- export declare class Configuration {
7
- #private;
8
- /**
9
- * Configure the SDK
10
- * Only the first call is honored; subsequent calls log warnings
11
- */
12
- configure(config: EncoreConfig): boolean;
13
- /**
14
- * Get current configuration
15
- */
16
- getConfig(): EncoreConfig | null;
17
- /**
18
- * Check if SDK is configured
19
- */
20
- isConfigured(): boolean;
21
- /**
22
- * Get API key
23
- */
24
- getApiKey(): string | null;
25
- /**
26
- * Get base URL
27
- */
28
- getBaseURL(): string | null;
29
- /**
30
- * Get environment
31
- */
32
- getEnvironment(): string | null;
33
- /**
34
- * Get UI configuration
35
- */
36
- getUIConfiguration(): import("../types").UIConfiguration;
37
- /**
38
- * Reset configuration (primarily for testing)
39
- */
40
- reset(): void;
41
- }
42
- //# sourceMappingURL=Configuration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../../src/core/Configuration.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAO7C,qBAAa,aAAa;;IAIxB;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO;IAmExC;;OAEG;IACH,SAAS,IAAI,YAAY,GAAG,IAAI;IAIhC;;OAEG;IACH,YAAY,IAAI,OAAO;IAIvB;;OAEG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;IAI1B;;OAEG;IACH,UAAU,IAAI,MAAM,GAAG,IAAI;IAI3B;;OAEG;IACH,cAAc,IAAI,MAAM,GAAG,IAAI;IAI/B;;OAEG;IACH,kBAAkB;IAIlB;;OAEG;IACH,KAAK,IAAI,IAAI;CAKd"}
@@ -1,81 +0,0 @@
1
- /**
2
- * Main Encore SDK Class
3
- * Singleton class that serves as the public API entry point
4
- */
5
- import type { EncoreConfig, UserAttributes, EntitlementType, EntitlementScope, EventHandler, Unsubscribe, PresentationOptions, PresentationResult, VerificationStatus, PlacementBuilder as IPlacementBuilder } from '../types';
6
- import { type EntitlementChangedEvent } from './EntitlementManager';
7
- export declare class EncoreSDK {
8
- #private;
9
- constructor();
10
- /**
11
- * Configure the SDK with API key and options
12
- */
13
- configure(config: EncoreConfig): void;
14
- /**
15
- * Identify user with custom user ID and optionally set attributes
16
- */
17
- identify(userId: string, attributes?: UserAttributes): void;
18
- /**
19
- * Get current user ID
20
- */
21
- getCurrentUserId(): string | null;
22
- /**
23
- * Reset SDK state (clear user ID, attributes, entitlements, storage)
24
- */
25
- reset(): void;
26
- /**
27
- * Get SDK version
28
- */
29
- getVersion(): string;
30
- /**
31
- * Set log level
32
- */
33
- setLogLevel(level: 'none' | 'debug'): void;
34
- /**
35
- * Set user attributes (merges with existing attributes)
36
- */
37
- setUserAttributes(attributes: UserAttributes): void;
38
- /**
39
- * Get current user attributes
40
- */
41
- getUserAttributes(): UserAttributes;
42
- /**
43
- * Present offer to user
44
- * Supports both callback and promise-based API
45
- */
46
- presentOffer(options?: PresentationOptions): Promise<PresentationResult>;
47
- /**
48
- * Check if entitlement is active
49
- */
50
- isActive(entitlement: EntitlementType, scope?: EntitlementScope): boolean;
51
- /**
52
- * Refresh entitlements from server
53
- */
54
- refreshEntitlements(): Promise<void>;
55
- /**
56
- * Send grant signal (non-blocking)
57
- */
58
- didGrant(access: 'provisional' | 'final', transactionId: string): void;
59
- /**
60
- * Wait for verification with polling
61
- * Polls the verification API until verified, failed, or timeout
62
- */
63
- waitForVerification(transactionId: string, timeout?: number): Promise<VerificationStatus>;
64
- /**
65
- * Register event listener
66
- */
67
- on(event: 'entitlementChanged', handler: EventHandler<EntitlementChangedEvent>): Unsubscribe;
68
- /**
69
- * Observe specific entitlement changes
70
- * Returns an observable that can be subscribed to for reactive updates
71
- */
72
- observeEntitlement(entitlement: EntitlementType, scope?: EntitlementScope): {
73
- subscribe: (callback: (isActive: boolean) => void) => Unsubscribe;
74
- };
75
- /**
76
- * Create placement builder for fluent API
77
- */
78
- placement(): IPlacementBuilder;
79
- }
80
- export declare const Encore: EncoreSDK;
81
- //# sourceMappingURL=Encore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Encore.d.ts","sourceRoot":"","sources":["../../../src/core/Encore.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAElB,kBAAkB,EAClB,gBAAgB,IAAI,iBAAiB,EACtC,MAAM,UAAU,CAAC;AAKlB,OAAO,EAAsB,KAAK,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAkBxF,qBAAa,SAAS;;;IAsBpB;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI;IAuErC;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,cAAc,GAAG,IAAI;IAgC3D;;OAEG;IACH,gBAAgB,IAAI,MAAM,GAAG,IAAI;IAIjC;;OAEG;IACH,KAAK,IAAI,IAAI;IA2Db;;OAEG;IACH,UAAU,IAAI,MAAM;IAIpB;;OAEG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI;IAQ1C;;OAEG;IACH,iBAAiB,CAAC,UAAU,EAAE,cAAc,GAAG,IAAI;IAwBnD;;OAEG;IACH,iBAAiB,IAAI,cAAc;IAInC;;;OAGG;IACG,YAAY,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAuE9E;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,eAAe,EAAE,KAAK,CAAC,EAAE,gBAAgB,GAAG,OAAO;IAWzE;;OAEG;IACG,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAW1C;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAiBtE;;;OAGG;IACG,mBAAmB,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA0C/F;;OAEG;IACH,EAAE,CAAC,KAAK,EAAE,oBAAoB,EAAE,OAAO,EAAE,YAAY,CAAC,uBAAuB,CAAC,GAAG,WAAW;IAc5F;;;OAGG;IACH,kBAAkB,CAChB,WAAW,EAAE,eAAe,EAC5B,KAAK,CAAC,EAAE,gBAAgB,GACvB;QACD,SAAS,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,KAAK,WAAW,CAAC;KACnE;IAuCD;;OAEG;IACH,SAAS,IAAI,iBAAiB;CA4R/B;AAGD,eAAO,MAAM,MAAM,WAAkB,CAAC"}
@@ -1,65 +0,0 @@
1
- /**
2
- * Entitlement Manager
3
- * Manages entitlement storage, caching, querying, and events
4
- */
5
- import type { Entitlement, EntitlementType, EntitlementScope } from '../types';
6
- import type { StorageManager } from './StorageManager';
7
- import type { APIClient } from '../api/APIClient';
8
- import { EventEmitter } from '../utils/eventEmitter';
9
- export interface EntitlementChangedEvent {
10
- entitlementType: EntitlementType;
11
- scope: EntitlementScope;
12
- isActive: boolean;
13
- entitlement?: Entitlement;
14
- }
15
- export interface EntitlementEventMap extends Record<string, unknown> {
16
- entitlementChanged: EntitlementChangedEvent;
17
- }
18
- export declare class EntitlementManager {
19
- #private;
20
- constructor(storage: StorageManager, apiClient: APIClient, userId: string);
21
- /**
22
- * Get the event emitter for external subscriptions
23
- */
24
- getEventEmitter(): EventEmitter<EntitlementEventMap>;
25
- /**
26
- * Update user ID (called when user identity changes)
27
- */
28
- setUserId(userId: string): void;
29
- /**
30
- * Save entitlements to persistent storage and emit change events
31
- */
32
- saveEntitlements(entitlements: Entitlement[]): void;
33
- /**
34
- * Load entitlements from cache
35
- */
36
- loadEntitlements(): Entitlement[];
37
- /**
38
- * Check if cache is stale (older than 5 minutes)
39
- */
40
- isCacheStale(): boolean;
41
- /**
42
- * Get cache age in milliseconds
43
- */
44
- getCacheAge(): number | null;
45
- /**
46
- * Clear all cached entitlements
47
- */
48
- clearCache(): void;
49
- /**
50
- * Check if an entitlement is active
51
- * @param entitlement - The entitlement type to check
52
- * @param scope - Filter by access type ('verified', 'provisional', or 'all')
53
- */
54
- isActive(entitlement: EntitlementType, scope?: EntitlementScope): boolean;
55
- /**
56
- * Get all active entitlements (non-expired)
57
- * @param scope - Filter by access type ('verified', 'provisional', or 'all')
58
- */
59
- getActiveEntitlements(scope?: EntitlementScope): Entitlement[];
60
- /**
61
- * Refresh entitlements from API
62
- */
63
- refreshEntitlements(): Promise<void>;
64
- }
65
- //# sourceMappingURL=EntitlementManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EntitlementManager.d.ts","sourceRoot":"","sources":["../../../src/core/EntitlementManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAYrD,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,eAAe,CAAC;IACjC,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAoB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAClE,kBAAkB,EAAE,uBAAuB,CAAC;CAC7C;AAED,qBAAa,kBAAkB;;gBAQjB,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM;IAUzE;;OAEG;IACH,eAAe,IAAI,YAAY,CAAC,mBAAmB,CAAC;IAIpD;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAgC/B;;OAEG;IACH,gBAAgB,CAAC,YAAY,EAAE,WAAW,EAAE,GAAG,IAAI;IAiGnD;;OAEG;IACH,gBAAgB,IAAI,WAAW,EAAE;IAIjC;;OAEG;IACH,YAAY,IAAI,OAAO;IASvB;;OAEG;IACH,WAAW,IAAI,MAAM,GAAG,IAAI;IAO5B;;OAEG;IACH,UAAU,IAAI,IAAI;IAUlB;;;;OAIG;IACH,QAAQ,CAAC,WAAW,EAAE,eAAe,EAAE,KAAK,GAAE,gBAAwB,GAAG,OAAO;IAwChF;;;OAGG;IACH,qBAAqB,CAAC,KAAK,GAAE,gBAAwB,GAAG,WAAW,EAAE;IAwBrE;;OAEG;IACG,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;CA0C3C"}
@@ -1,35 +0,0 @@
1
- /**
2
- * Offer Manager
3
- * Handles offer fetching, caching, and impression logging
4
- */
5
- import type { APIClient } from '../api/APIClient';
6
- import type { OfferModel, FetchOffersResponse } from '../api/models';
7
- import type { UserAttributes } from '../types';
8
- export declare class OfferManager {
9
- #private;
10
- constructor(apiClient: APIClient, userId: string);
11
- /**
12
- * Fetch offers from API with optional caching
13
- */
14
- fetchOffers(userAttributes: UserAttributes, useCache?: boolean): Promise<{
15
- offers: OfferModel[];
16
- uiConfiguration?: FetchOffersResponse['uiConfiguration'];
17
- }>;
18
- /**
19
- * Log impression for an offer
20
- */
21
- logImpression(impressionId: string, offer: OfferModel): void;
22
- /**
23
- * Start a transaction for an offer
24
- */
25
- startTransaction(campaignId: string, creativeId: string, impressionId?: string): Promise<string>;
26
- /**
27
- * Clear the offer cache
28
- */
29
- clearCache(): void;
30
- /**
31
- * Update user ID (called when identity changes)
32
- */
33
- setUserId(userId: string): void;
34
- }
35
- //# sourceMappingURL=OfferManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OfferManager.d.ts","sourceRoot":"","sources":["../../../src/core/OfferManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,qBAAa,YAAY;;gBAOX,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM;IAKhD;;OAEG;IACG,WAAW,CACf,cAAc,EAAE,cAAc,EAC9B,QAAQ,UAAO,GACd,OAAO,CAAC;QAAE,MAAM,EAAE,UAAU,EAAE,CAAC;QAAC,eAAe,CAAC,EAAE,mBAAmB,CAAC,iBAAiB,CAAC,CAAA;KAAE,CAAC;IA2C9F;;OAEG;IACH,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI;IAsC5D;;OAEG;IACG,gBAAgB,CACpB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,CAAC;IAwBlB;;OAEG;IACH,UAAU,IAAI,IAAI;IAMlB;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAKhC"}
@@ -1,27 +0,0 @@
1
- /**
2
- * Placement Builder
3
- * Fluent API for configuring and presenting offers
4
- */
5
- import type { PlacementBuilder as IPlacementBuilder, PresentationResult, EntitlementType, NotGrantedReason } from '../types';
6
- export type PresentationExecutor = () => Promise<PresentationResult>;
7
- export declare class PlacementBuilder implements IPlacementBuilder {
8
- #private;
9
- constructor(executor: PresentationExecutor);
10
- /**
11
- * Set callback for when entitlement is granted
12
- */
13
- onGranted(callback: (entitlement: EntitlementType) => void): PlacementBuilder;
14
- /**
15
- * Set callback for when user declines or offer not granted
16
- */
17
- onNotGranted(callback: (reason: NotGrantedReason) => void): PlacementBuilder;
18
- /**
19
- * Set callback for loading state changes
20
- */
21
- onLoadingStateChange(callback: (isLoading: boolean) => void): PlacementBuilder;
22
- /**
23
- * Show the offer and execute the presentation flow
24
- */
25
- show(): Promise<PresentationResult>;
26
- }
27
- //# sourceMappingURL=PlacementBuilder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PlacementBuilder.d.ts","sourceRoot":"","sources":["../../../src/core/PlacementBuilder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACV,gBAAgB,IAAI,iBAAiB,EACrC,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAIlB,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAErE,qBAAa,gBAAiB,YAAW,iBAAiB;;gBAM5C,QAAQ,EAAE,oBAAoB;IAI1C;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,CAAC,WAAW,EAAE,eAAe,KAAK,IAAI,GAAG,gBAAgB;IAK7E;;OAEG;IACH,YAAY,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,GAAG,gBAAgB;IAK5E;;OAEG;IACH,oBAAoB,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,GAAG,gBAAgB;IAK9E;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC;CAsD1C"}
@@ -1,51 +0,0 @@
1
- /**
2
- * Signal Manager
3
- * Manages grant signal queue with persistence and retry logic
4
- */
5
- import type { StorageManager } from './StorageManager';
6
- import type { APIClient } from '../api/APIClient';
7
- interface GrantSignal {
8
- transactionId: string;
9
- grantType: 'provisional' | 'final';
10
- timestamp: string;
11
- attempts: number;
12
- lastAttemptAt?: string;
13
- }
14
- export declare class SignalManager {
15
- #private;
16
- constructor(storage: StorageManager, apiClient: APIClient, userId: string);
17
- /**
18
- * Update user ID (called when user identity changes)
19
- */
20
- setUserId(userId: string): void;
21
- /**
22
- * Add signal to queue
23
- */
24
- enqueue(transactionId: string, grantType: 'provisional' | 'final'): void;
25
- /**
26
- * Remove signal from queue
27
- */
28
- dequeue(signal: GrantSignal): void;
29
- /**
30
- * Get current queue
31
- */
32
- getQueue(): GrantSignal[];
33
- /**
34
- * Clear all signals from queue
35
- */
36
- clearQueue(): void;
37
- /**
38
- * Send a grant signal immediately (or queue if failed)
39
- */
40
- sendGrantSignal(transactionId: string, grantType: 'provisional' | 'final'): Promise<void>;
41
- /**
42
- * Process all signals in the queue with retry logic
43
- */
44
- processQueue(): Promise<void>;
45
- /**
46
- * Cleanup resources
47
- */
48
- destroy(): void;
49
- }
50
- export {};
51
- //# sourceMappingURL=SignalManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SignalManager.d.ts","sourceRoot":"","sources":["../../../src/core/SignalManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AASlD,UAAU,WAAW;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,aAAa,GAAG,OAAO,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,qBAAa,aAAa;;gBAQZ,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM;IAezE;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAuC/B;;OAEG;IACH,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,GAAG,OAAO,GAAG,IAAI;IAuBxE;;OAEG;IACH,OAAO,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAelC;;OAEG;IACH,QAAQ,IAAI,WAAW,EAAE;IAIzB;;OAEG;IACH,UAAU,IAAI,IAAI;IAMlB;;OAEG;IACG,eAAe,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,GAAG,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAiB/F;;OAEG;IACG,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAyGnC;;OAEG;IACH,OAAO,IAAI,IAAI;CAahB"}
@@ -1,34 +0,0 @@
1
- /**
2
- * Storage Manager
3
- * Provides a unified storage interface with fallback chain:
4
- * localStorage → sessionStorage → in-memory
5
- */
6
- type StorageType = 'localStorage' | 'sessionStorage' | 'memory';
7
- export declare class StorageManager {
8
- #private;
9
- constructor();
10
- /**
11
- * Set a value in storage
12
- * Automatically handles JSON serialization
13
- */
14
- set<T>(key: string, value: T): void;
15
- /**
16
- * Get a value from storage
17
- * Automatically handles JSON deserialization
18
- */
19
- get<T>(key: string): T | null;
20
- /**
21
- * Remove a value from storage
22
- */
23
- remove(key: string): void;
24
- /**
25
- * Clear all Encore-prefixed items from storage
26
- */
27
- clear(): void;
28
- /**
29
- * Get the current storage type being used
30
- */
31
- getStorageType(): StorageType;
32
- }
33
- export {};
34
- //# sourceMappingURL=StorageManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorageManager.d.ts","sourceRoot":"","sources":["../../../src/core/StorageManager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,KAAK,WAAW,GAAG,cAAc,GAAG,gBAAgB,GAAG,QAAQ,CAAC;AAIhE,qBAAa,cAAc;;;IAgEzB;;;OAGG;IACH,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAoCnC;;;OAGG;IACH,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI;IA+B7B;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAkBzB;;OAEG;IACH,KAAK,IAAI,IAAI;IA6Bb;;OAEG;IACH,cAAc,IAAI,WAAW;CAG9B"}
@@ -1,27 +0,0 @@
1
- /**
2
- * Verification Poller
3
- * Handles polling for transaction verification status with exponential backoff
4
- */
5
- import type { APIClient } from '../api/APIClient';
6
- import type { VerificationStatus } from '../types';
7
- export interface VerificationPollerOptions {
8
- transactionId: string;
9
- timeout?: number;
10
- onVerified?: () => void;
11
- onFailed?: () => void;
12
- onTimeout?: () => void;
13
- }
14
- export declare class VerificationPoller {
15
- #private;
16
- constructor(apiClient: APIClient, options: VerificationPollerOptions);
17
- /**
18
- * Start polling for verification
19
- * Returns final status when resolved
20
- */
21
- poll(): Promise<VerificationStatus>;
22
- /**
23
- * Stop polling
24
- */
25
- stop(): void;
26
- }
27
- //# sourceMappingURL=VerificationPoller.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VerificationPoller.d.ts","sourceRoot":"","sources":["../../../src/core/VerificationPoller.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGnD,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,qBAAa,kBAAkB;;gBAUjB,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,yBAAyB;IAMpE;;;OAGG;IACG,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAkBzC;;OAEG;IACH,IAAI,IAAI,IAAI;CAkFb"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Encore Web SDK
3
- *
4
- * Main entry point for the SDK.
5
- */
6
- export { Encore, Encore as default } from './core/Encore';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,eAAe,CAAC"}