@feelflow/ffid-sdk 8.0.0 → 9.0.0
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/{FFIDCookieLink-Bwr0FBrV.d.cts → FFIDCookieLink-yt5SUr-W.d.cts} +47 -3
- package/dist/{FFIDCookieLink-Bwr0FBrV.d.ts → FFIDCookieLink-yt5SUr-W.d.ts} +47 -3
- package/dist/{chunk-RNCK5E3Y.cjs → chunk-Q2ZQJS36.cjs} +5 -7
- package/dist/{chunk-XELXXL2F.cjs → chunk-RZCQ22GH.cjs} +29 -9
- package/dist/{chunk-RHBZHSRD.js → chunk-S2AEBJRX.js} +29 -9
- package/dist/{chunk-YKBAFPX5.js → chunk-TUXIJEEZ.js} +5 -7
- package/dist/components/index.cjs +8 -8
- package/dist/components/index.js +1 -1
- package/dist/consent/index.cjs +63 -63
- package/dist/consent/index.d.cts +2 -2
- package/dist/consent/index.d.ts +2 -2
- package/dist/consent/index.js +1 -1
- package/dist/{ffid-client-BaEmw7jP.d.cts → ffid-client-6aLs9Fqc.d.cts} +9 -4
- package/dist/{ffid-client-5GAPcRIG.d.ts → ffid-client-B0cORHac.d.ts} +9 -4
- package/dist/index.cjs +95 -95
- package/dist/index.d.cts +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js +3 -3
- package/dist/server/index.cjs +5 -7
- package/dist/server/index.d.cts +2 -2
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +5 -7
- package/dist/server/test/index.d.cts +1 -1
- package/dist/server/test/index.d.ts +1 -1
- package/dist/webhooks/index.d.cts +109 -6
- package/dist/webhooks/index.d.ts +109 -6
- package/package.json +1 -1
package/dist/consent/index.cjs
CHANGED
|
@@ -1,254 +1,254 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRZCQ22GH_cjs = require('../chunk-RZCQ22GH.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "ALL_DENIED_EXCEPT_NECESSARY", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkRZCQ22GH_cjs.ALL_DENIED_EXCEPT_NECESSARY; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "CONSENT_COOKIE_MAX_AGE_SEC", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkRZCQ22GH_cjs.CONSENT_COOKIE_MAX_AGE_SEC; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "CONSENT_COOKIE_NAME", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkRZCQ22GH_cjs.CONSENT_COOKIE_NAME; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "CONSENT_DISMISSAL_TIMESTAMP_KEY", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkRZCQ22GH_cjs.CONSENT_DISMISSAL_TIMESTAMP_KEY; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "CONSENT_SESSION_STORAGE_KEY", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkRZCQ22GH_cjs.CONSENT_SESSION_STORAGE_KEY; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "COOKIE_VERSION", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkRZCQ22GH_cjs.COOKIE_VERSION; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "DEFAULT_CONSENT_ERROR_MESSAGES", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkRZCQ22GH_cjs.DEFAULT_CONSENT_ERROR_MESSAGES; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "DEVICE_ID_LOCAL_STORAGE_KEY", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkRZCQ22GH_cjs.DEVICE_ID_LOCAL_STORAGE_KEY; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "DEVICE_ID_SESSION_STORAGE_KEY", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkRZCQ22GH_cjs.DEVICE_ID_SESSION_STORAGE_KEY; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "DeviceIdSchema", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkRZCQ22GH_cjs.DeviceIdSchema; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "FFIDAnalyticsProvider", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDAnalyticsProvider; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "FFIDConsentCategoriesSchema", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDConsentCategoriesSchema; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "FFIDConsentCategoryCodeSchema", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDConsentCategoryCodeSchema; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "FFIDConsentCategoryMetadataSchema", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDConsentCategoryMetadataSchema; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "FFIDConsentContext", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDConsentContext; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "FFIDConsentError", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDConsentError; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "FFIDConsentMergeStrategySchema", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDConsentMergeStrategySchema; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "FFIDConsentMergeWarningSchema", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDConsentMergeWarningSchema; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "FFIDConsentSourceSchema", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDConsentSourceSchema; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "FFIDConsentStateSchema", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDConsentStateSchema; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "FFIDConsentUpdateSchema", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDConsentUpdateSchema; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "FFIDCookieBanner", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDCookieBanner; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "FFIDCookieLink", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDCookieLink; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "FFIDCookiePolicySchema", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDCookiePolicySchema; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "FFIDCookieSettings", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDCookieSettings; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "FFIDInternalConsentSourceSchema", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDInternalConsentSourceSchema; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "FFIDPublicConsentSourceSchema", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDPublicConsentSourceSchema; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "FFID_CONSENT_ERROR_CODES", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkRZCQ22GH_cjs.FFID_CONSENT_ERROR_CODES; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "FFID_CONSENT_NOT_DECIDED_STATE", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkRZCQ22GH_cjs.FFID_CONSENT_NOT_DECIDED_STATE; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "GetCategoriesWireSchema", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkRZCQ22GH_cjs.GetCategoriesWireSchema; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "GetConsentMeWireSchema", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkRZCQ22GH_cjs.GetConsentMeWireSchema; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "GetDocumentWireSchema", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkRZCQ22GH_cjs.GetDocumentWireSchema; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "PostConsentRequestSchema", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkRZCQ22GH_cjs.PostConsentRequestSchema; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "PostConsentWireSchema", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkRZCQ22GH_cjs.PostConsentWireSchema; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "PostSyncRequestSchema", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkRZCQ22GH_cjs.PostSyncRequestSchema; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "PostSyncWireSchema", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkRZCQ22GH_cjs.PostSyncWireSchema; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "PostWithdrawWireSchema", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkRZCQ22GH_cjs.PostWithdrawWireSchema; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "clearConsentDismissalTimestamp", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkRZCQ22GH_cjs.clearConsentDismissalTimestamp; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "clearConsentSessionMirror", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkRZCQ22GH_cjs.clearConsentSessionMirror; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "clearDeviceId", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkRZCQ22GH_cjs.clearDeviceId; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "createConsentClient", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkRZCQ22GH_cjs.createConsentClient; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "createGtagBridge", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkRZCQ22GH_cjs.createGtagBridge; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "decodeConsentCookie", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkRZCQ22GH_cjs.decodeConsentCookie; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "deleteConsentCookie", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkRZCQ22GH_cjs.deleteConsentCookie; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "encodeConsentCookie", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkRZCQ22GH_cjs.encodeConsentCookie; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "generateDeviceId", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkRZCQ22GH_cjs.generateDeviceId; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "getOrCreateDeviceId", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkRZCQ22GH_cjs.getOrCreateDeviceId; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "isUuidV7", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkRZCQ22GH_cjs.isUuidV7; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "isValidDeviceId", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkRZCQ22GH_cjs.isValidDeviceId; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "mapCategoriesToGtagParams", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkRZCQ22GH_cjs.mapCategoriesToGtagParams; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "mapConsentWireToState", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkRZCQ22GH_cjs.mapConsentWireToState; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "mapMeWireToState", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkRZCQ22GH_cjs.mapMeWireToState; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "mapSyncWireToResult", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkRZCQ22GH_cjs.mapSyncWireToResult; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "mapWithdrawWireToState", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkRZCQ22GH_cjs.mapWithdrawWireToState; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "readConsentCookie", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkRZCQ22GH_cjs.readConsentCookie; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "readConsentDismissalTimestamp", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkRZCQ22GH_cjs.readConsentDismissalTimestamp; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "readConsentSessionMirror", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkRZCQ22GH_cjs.readConsentSessionMirror; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "useFFIDConsent", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkRZCQ22GH_cjs.useFFIDConsent; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "useFFIDConsentPreferences", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkRZCQ22GH_cjs.useFFIDConsentPreferences; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "writeConsentCookie", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkRZCQ22GH_cjs.writeConsentCookie; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "writeConsentDismissalTimestamp", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkRZCQ22GH_cjs.writeConsentDismissalTimestamp; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "writeConsentSessionMirror", {
|
|
252
252
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkRZCQ22GH_cjs.writeConsentSessionMirror; }
|
|
254
254
|
});
|
package/dist/consent/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDConsentResult, a as FFIDConsentState, b as FFIDConsentUpdate, c as FFIDConsentCategories, d as FFIDConsentSyncResult, e as FFIDConsentCategoryMetadata, f as FFIDCookiePolicy, P as PostConsentWire, G as GetConsentMeWire, g as PostSyncWire, h as PostWithdrawWire } from '../FFIDCookieLink-
|
|
2
|
-
export { A as ALL_DENIED_EXCEPT_NECESSARY, C as CONSENT_COOKIE_MAX_AGE_SEC, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, k as CONSENT_SESSION_STORAGE_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, m as DeviceIdSchema, n as FFIDAnalyticsProvider, o as FFIDAnalyticsProviderProps, p as FFIDConsentCategoriesSchema, q as FFIDConsentCategoryCode, r as FFIDConsentCategoryCodeSchema, s as FFIDConsentCategoryMetadataSchema, t as FFIDConsentContext, u as FFIDConsentContextValue, v as FFIDConsentError, w as FFIDConsentErrorCode, x as FFIDConsentMergeStrategy, y as FFIDConsentMergeStrategySchema, z as FFIDConsentMergeWarning, B as FFIDConsentMergeWarningEvent, E as FFIDConsentMergeWarningSchema, H as FFIDConsentSource, I as FFIDConsentSourceSchema, J as FFIDConsentStateSchema, K as FFIDConsentUpdateSchema, L as FFIDCookieBanner, M as FFIDCookieBannerClassNames, N as FFIDCookieBannerProps, O as FFIDCookieLink, Q as FFIDCookieLinkProps, R as FFIDCookiePolicySchema, S as FFIDCookieSettings, T as FFIDCookieSettingsClassNames, U as FFIDCookieSettingsProps, V as FFIDInternalConsentSource, W as FFIDInternalConsentSourceSchema, X as FFIDPublicConsentSource, Y as FFIDPublicConsentSourceSchema, Z as FFID_CONSENT_ERROR_CODES, _ as FFID_CONSENT_NOT_DECIDED_STATE, $ as GetCategoriesWire, a0 as GetCategoriesWireSchema, a1 as GetConsentMeWireSchema, a2 as GetDocumentWire, a3 as GetDocumentWireSchema, a4 as GtagBridge, a5 as GtagBridgeOptions, a6 as PostConsentRequest, a7 as PostConsentRequestSchema, a8 as PostConsentWireSchema, a9 as PostSyncRequest, aa as PostSyncRequestSchema, ab as PostSyncWireSchema, ac as PostWithdrawWireSchema, ad as UseFFIDConsentPreferencesReturn, ae as UseFFIDConsentReturn, af as clearConsentDismissalTimestamp, ag as clearConsentSessionMirror, ah as createGtagBridge, ai as decodeConsentCookie, aj as deleteConsentCookie, ak as encodeConsentCookie, al as mapCategoriesToGtagParams, am as readConsentCookie, an as readConsentDismissalTimestamp, ao as readConsentSessionMirror, ap as useFFIDConsent, aq as useFFIDConsentPreferences, ar as writeConsentCookie, as as writeConsentDismissalTimestamp, at as writeConsentSessionMirror } from '../FFIDCookieLink-
|
|
1
|
+
import { F as FFIDConsentResult, a as FFIDConsentState, b as FFIDConsentUpdate, c as FFIDConsentCategories, d as FFIDConsentSyncResult, e as FFIDConsentCategoryMetadata, f as FFIDCookiePolicy, P as PostConsentWire, G as GetConsentMeWire, g as PostSyncWire, h as PostWithdrawWire } from '../FFIDCookieLink-yt5SUr-W.cjs';
|
|
2
|
+
export { A as ALL_DENIED_EXCEPT_NECESSARY, C as CONSENT_COOKIE_MAX_AGE_SEC, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, k as CONSENT_SESSION_STORAGE_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, m as DeviceIdSchema, n as FFIDAnalyticsProvider, o as FFIDAnalyticsProviderProps, p as FFIDConsentCategoriesSchema, q as FFIDConsentCategoryCode, r as FFIDConsentCategoryCodeSchema, s as FFIDConsentCategoryMetadataSchema, t as FFIDConsentContext, u as FFIDConsentContextValue, v as FFIDConsentError, w as FFIDConsentErrorCode, x as FFIDConsentMergeStrategy, y as FFIDConsentMergeStrategySchema, z as FFIDConsentMergeWarning, B as FFIDConsentMergeWarningEvent, E as FFIDConsentMergeWarningSchema, H as FFIDConsentSource, I as FFIDConsentSourceSchema, J as FFIDConsentStateSchema, K as FFIDConsentUpdateSchema, L as FFIDCookieBanner, M as FFIDCookieBannerClassNames, N as FFIDCookieBannerProps, O as FFIDCookieLink, Q as FFIDCookieLinkProps, R as FFIDCookiePolicySchema, S as FFIDCookieSettings, T as FFIDCookieSettingsClassNames, U as FFIDCookieSettingsProps, V as FFIDInternalConsentSource, W as FFIDInternalConsentSourceSchema, X as FFIDPublicConsentSource, Y as FFIDPublicConsentSourceSchema, Z as FFID_CONSENT_ERROR_CODES, _ as FFID_CONSENT_NOT_DECIDED_STATE, $ as GetCategoriesWire, a0 as GetCategoriesWireSchema, a1 as GetConsentMeWireSchema, a2 as GetDocumentWire, a3 as GetDocumentWireSchema, a4 as GtagBridge, a5 as GtagBridgeOptions, a6 as PostConsentRequest, a7 as PostConsentRequestSchema, a8 as PostConsentWireSchema, a9 as PostSyncRequest, aa as PostSyncRequestSchema, ab as PostSyncWireSchema, ac as PostWithdrawWireSchema, ad as UseFFIDConsentPreferencesReturn, ae as UseFFIDConsentReturn, af as clearConsentDismissalTimestamp, ag as clearConsentSessionMirror, ah as createGtagBridge, ai as decodeConsentCookie, aj as deleteConsentCookie, ak as encodeConsentCookie, al as mapCategoriesToGtagParams, am as readConsentCookie, an as readConsentDismissalTimestamp, ao as readConsentSessionMirror, ap as useFFIDConsent, aq as useFFIDConsentPreferences, ar as writeConsentCookie, as as writeConsentDismissalTimestamp, at as writeConsentSessionMirror } from '../FFIDCookieLink-yt5SUr-W.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
package/dist/consent/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDConsentResult, a as FFIDConsentState, b as FFIDConsentUpdate, c as FFIDConsentCategories, d as FFIDConsentSyncResult, e as FFIDConsentCategoryMetadata, f as FFIDCookiePolicy, P as PostConsentWire, G as GetConsentMeWire, g as PostSyncWire, h as PostWithdrawWire } from '../FFIDCookieLink-
|
|
2
|
-
export { A as ALL_DENIED_EXCEPT_NECESSARY, C as CONSENT_COOKIE_MAX_AGE_SEC, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, k as CONSENT_SESSION_STORAGE_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, m as DeviceIdSchema, n as FFIDAnalyticsProvider, o as FFIDAnalyticsProviderProps, p as FFIDConsentCategoriesSchema, q as FFIDConsentCategoryCode, r as FFIDConsentCategoryCodeSchema, s as FFIDConsentCategoryMetadataSchema, t as FFIDConsentContext, u as FFIDConsentContextValue, v as FFIDConsentError, w as FFIDConsentErrorCode, x as FFIDConsentMergeStrategy, y as FFIDConsentMergeStrategySchema, z as FFIDConsentMergeWarning, B as FFIDConsentMergeWarningEvent, E as FFIDConsentMergeWarningSchema, H as FFIDConsentSource, I as FFIDConsentSourceSchema, J as FFIDConsentStateSchema, K as FFIDConsentUpdateSchema, L as FFIDCookieBanner, M as FFIDCookieBannerClassNames, N as FFIDCookieBannerProps, O as FFIDCookieLink, Q as FFIDCookieLinkProps, R as FFIDCookiePolicySchema, S as FFIDCookieSettings, T as FFIDCookieSettingsClassNames, U as FFIDCookieSettingsProps, V as FFIDInternalConsentSource, W as FFIDInternalConsentSourceSchema, X as FFIDPublicConsentSource, Y as FFIDPublicConsentSourceSchema, Z as FFID_CONSENT_ERROR_CODES, _ as FFID_CONSENT_NOT_DECIDED_STATE, $ as GetCategoriesWire, a0 as GetCategoriesWireSchema, a1 as GetConsentMeWireSchema, a2 as GetDocumentWire, a3 as GetDocumentWireSchema, a4 as GtagBridge, a5 as GtagBridgeOptions, a6 as PostConsentRequest, a7 as PostConsentRequestSchema, a8 as PostConsentWireSchema, a9 as PostSyncRequest, aa as PostSyncRequestSchema, ab as PostSyncWireSchema, ac as PostWithdrawWireSchema, ad as UseFFIDConsentPreferencesReturn, ae as UseFFIDConsentReturn, af as clearConsentDismissalTimestamp, ag as clearConsentSessionMirror, ah as createGtagBridge, ai as decodeConsentCookie, aj as deleteConsentCookie, ak as encodeConsentCookie, al as mapCategoriesToGtagParams, am as readConsentCookie, an as readConsentDismissalTimestamp, ao as readConsentSessionMirror, ap as useFFIDConsent, aq as useFFIDConsentPreferences, ar as writeConsentCookie, as as writeConsentDismissalTimestamp, at as writeConsentSessionMirror } from '../FFIDCookieLink-
|
|
1
|
+
import { F as FFIDConsentResult, a as FFIDConsentState, b as FFIDConsentUpdate, c as FFIDConsentCategories, d as FFIDConsentSyncResult, e as FFIDConsentCategoryMetadata, f as FFIDCookiePolicy, P as PostConsentWire, G as GetConsentMeWire, g as PostSyncWire, h as PostWithdrawWire } from '../FFIDCookieLink-yt5SUr-W.js';
|
|
2
|
+
export { A as ALL_DENIED_EXCEPT_NECESSARY, C as CONSENT_COOKIE_MAX_AGE_SEC, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, k as CONSENT_SESSION_STORAGE_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, m as DeviceIdSchema, n as FFIDAnalyticsProvider, o as FFIDAnalyticsProviderProps, p as FFIDConsentCategoriesSchema, q as FFIDConsentCategoryCode, r as FFIDConsentCategoryCodeSchema, s as FFIDConsentCategoryMetadataSchema, t as FFIDConsentContext, u as FFIDConsentContextValue, v as FFIDConsentError, w as FFIDConsentErrorCode, x as FFIDConsentMergeStrategy, y as FFIDConsentMergeStrategySchema, z as FFIDConsentMergeWarning, B as FFIDConsentMergeWarningEvent, E as FFIDConsentMergeWarningSchema, H as FFIDConsentSource, I as FFIDConsentSourceSchema, J as FFIDConsentStateSchema, K as FFIDConsentUpdateSchema, L as FFIDCookieBanner, M as FFIDCookieBannerClassNames, N as FFIDCookieBannerProps, O as FFIDCookieLink, Q as FFIDCookieLinkProps, R as FFIDCookiePolicySchema, S as FFIDCookieSettings, T as FFIDCookieSettingsClassNames, U as FFIDCookieSettingsProps, V as FFIDInternalConsentSource, W as FFIDInternalConsentSourceSchema, X as FFIDPublicConsentSource, Y as FFIDPublicConsentSourceSchema, Z as FFID_CONSENT_ERROR_CODES, _ as FFID_CONSENT_NOT_DECIDED_STATE, $ as GetCategoriesWire, a0 as GetCategoriesWireSchema, a1 as GetConsentMeWireSchema, a2 as GetDocumentWire, a3 as GetDocumentWireSchema, a4 as GtagBridge, a5 as GtagBridgeOptions, a6 as PostConsentRequest, a7 as PostConsentRequestSchema, a8 as PostConsentWireSchema, a9 as PostSyncRequest, aa as PostSyncRequestSchema, ab as PostSyncWireSchema, ac as PostWithdrawWireSchema, ad as UseFFIDConsentPreferencesReturn, ae as UseFFIDConsentReturn, af as clearConsentDismissalTimestamp, ag as clearConsentSessionMirror, ah as createGtagBridge, ai as decodeConsentCookie, aj as deleteConsentCookie, ak as encodeConsentCookie, al as mapCategoriesToGtagParams, am as readConsentCookie, an as readConsentDismissalTimestamp, ao as readConsentSessionMirror, ap as useFFIDConsent, aq as useFFIDConsentPreferences, ar as writeConsentCookie, as as writeConsentDismissalTimestamp, at as writeConsentSessionMirror } from '../FFIDCookieLink-yt5SUr-W.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
package/dist/consent/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ALL_DENIED_EXCEPT_NECESSARY, CONSENT_COOKIE_MAX_AGE_SEC, CONSENT_COOKIE_NAME, CONSENT_DISMISSAL_TIMESTAMP_KEY, CONSENT_SESSION_STORAGE_KEY, COOKIE_VERSION, DEFAULT_CONSENT_ERROR_MESSAGES, DEVICE_ID_LOCAL_STORAGE_KEY, DEVICE_ID_SESSION_STORAGE_KEY, DeviceIdSchema, FFIDAnalyticsProvider, FFIDConsentCategoriesSchema, FFIDConsentCategoryCodeSchema, FFIDConsentCategoryMetadataSchema, FFIDConsentContext, FFIDConsentError, FFIDConsentMergeStrategySchema, FFIDConsentMergeWarningSchema, FFIDConsentSourceSchema, FFIDConsentStateSchema, FFIDConsentUpdateSchema, FFIDCookieBanner, FFIDCookieLink, FFIDCookiePolicySchema, FFIDCookieSettings, FFIDInternalConsentSourceSchema, FFIDPublicConsentSourceSchema, FFID_CONSENT_ERROR_CODES, FFID_CONSENT_NOT_DECIDED_STATE, GetCategoriesWireSchema, GetConsentMeWireSchema, GetDocumentWireSchema, PostConsentRequestSchema, PostConsentWireSchema, PostSyncRequestSchema, PostSyncWireSchema, PostWithdrawWireSchema, clearConsentDismissalTimestamp, clearConsentSessionMirror, clearDeviceId, createConsentClient, createGtagBridge, decodeConsentCookie, deleteConsentCookie, encodeConsentCookie, generateDeviceId, getOrCreateDeviceId, isUuidV7, isValidDeviceId, mapCategoriesToGtagParams, mapConsentWireToState, mapMeWireToState, mapSyncWireToResult, mapWithdrawWireToState, readConsentCookie, readConsentDismissalTimestamp, readConsentSessionMirror, useFFIDConsent, useFFIDConsentPreferences, writeConsentCookie, writeConsentDismissalTimestamp, writeConsentSessionMirror } from '../chunk-
|
|
1
|
+
export { ALL_DENIED_EXCEPT_NECESSARY, CONSENT_COOKIE_MAX_AGE_SEC, CONSENT_COOKIE_NAME, CONSENT_DISMISSAL_TIMESTAMP_KEY, CONSENT_SESSION_STORAGE_KEY, COOKIE_VERSION, DEFAULT_CONSENT_ERROR_MESSAGES, DEVICE_ID_LOCAL_STORAGE_KEY, DEVICE_ID_SESSION_STORAGE_KEY, DeviceIdSchema, FFIDAnalyticsProvider, FFIDConsentCategoriesSchema, FFIDConsentCategoryCodeSchema, FFIDConsentCategoryMetadataSchema, FFIDConsentContext, FFIDConsentError, FFIDConsentMergeStrategySchema, FFIDConsentMergeWarningSchema, FFIDConsentSourceSchema, FFIDConsentStateSchema, FFIDConsentUpdateSchema, FFIDCookieBanner, FFIDCookieLink, FFIDCookiePolicySchema, FFIDCookieSettings, FFIDInternalConsentSourceSchema, FFIDPublicConsentSourceSchema, FFID_CONSENT_ERROR_CODES, FFID_CONSENT_NOT_DECIDED_STATE, GetCategoriesWireSchema, GetConsentMeWireSchema, GetDocumentWireSchema, PostConsentRequestSchema, PostConsentWireSchema, PostSyncRequestSchema, PostSyncWireSchema, PostWithdrawWireSchema, clearConsentDismissalTimestamp, clearConsentSessionMirror, clearDeviceId, createConsentClient, createGtagBridge, decodeConsentCookie, deleteConsentCookie, encodeConsentCookie, generateDeviceId, getOrCreateDeviceId, isUuidV7, isValidDeviceId, mapCategoriesToGtagParams, mapConsentWireToState, mapMeWireToState, mapSyncWireToResult, mapWithdrawWireToState, readConsentCookie, readConsentDismissalTimestamp, readConsentSessionMirror, useFFIDConsent, useFFIDConsentPreferences, writeConsentCookie, writeConsentDismissalTimestamp, writeConsentSessionMirror } from '../chunk-S2AEBJRX.js';
|
|
@@ -411,6 +411,8 @@ interface FFIDPlanInfo {
|
|
|
411
411
|
maxSeats: number | null;
|
|
412
412
|
seatSelectionEnabled: boolean;
|
|
413
413
|
trialDays: number;
|
|
414
|
+
/** flat: period fee; per_seat: multiply by selected quantity. Older servers omit this. */
|
|
415
|
+
pricingModel?: 'per_seat' | 'flat';
|
|
414
416
|
/**
|
|
415
417
|
* Monthly price in the smallest currency unit.
|
|
416
418
|
*
|
|
@@ -646,12 +648,12 @@ interface FFIDPlanChangeLineItem {
|
|
|
646
648
|
interface FFIDPlanChangePreviewBase {
|
|
647
649
|
/** Discriminant for preview response variants (reserved for future unions with e.g. seat-change previews) */
|
|
648
650
|
type: 'plan-change';
|
|
649
|
-
/** Current plan display info. `price` is the total
|
|
651
|
+
/** Current plan display info. `price` is the period total: flat fee, or per-seat price times quantity. */
|
|
650
652
|
currentPlan: {
|
|
651
653
|
name: string;
|
|
652
654
|
price: number;
|
|
653
655
|
};
|
|
654
|
-
/** New plan display info. `price` is the total
|
|
656
|
+
/** New plan display info. `price` is the period total: flat fee, or per-seat price times quantity. */
|
|
655
657
|
newPlan: {
|
|
656
658
|
name: string;
|
|
657
659
|
price: number;
|
|
@@ -725,7 +727,8 @@ interface FFIDSeatChangeLineItem {
|
|
|
725
727
|
* `proratedAmount` is computed locally. `isEstimate=false`: it reflects Stripe's live
|
|
726
728
|
* proration calculation.
|
|
727
729
|
*
|
|
728
|
-
* `nextInvoiceAmount` is
|
|
730
|
+
* `nextInvoiceAmount` is a local estimate: flat period fee, or `unitPrice * newQuantity`.
|
|
731
|
+
* Flat capacity changes have zero prorated cost.
|
|
729
732
|
*
|
|
730
733
|
* `pricingUnavailable=true` means custom pricing or an unverified contracted Stripe
|
|
731
734
|
* Price. Hide amounts; zero is not a quote. `custom_pricing` permits the existing
|
|
@@ -738,6 +741,8 @@ interface FFIDSeatChangeLineItem {
|
|
|
738
741
|
* external consumers should guide users to the FFID portal for seat changes.
|
|
739
742
|
*/
|
|
740
743
|
interface FFIDSeatChangePreview {
|
|
744
|
+
/** flat: unitPrice is the whole period fee; per_seat: multiply by capacity. */
|
|
745
|
+
pricingModel?: 'per_seat' | 'flat';
|
|
741
746
|
/** Discriminant for preview response variants (pairs with `FFIDPlanChangePreview.type`) */
|
|
742
747
|
type: 'seat-change';
|
|
743
748
|
currentQuantity: number;
|
|
@@ -751,7 +756,7 @@ interface FFIDSeatChangePreview {
|
|
|
751
756
|
* be reserved. Also `0` when `pricingUnavailable === true`; hide it instead of quoting zero.
|
|
752
757
|
*/
|
|
753
758
|
proratedAmount: number;
|
|
754
|
-
/** Next invoice full amount —
|
|
759
|
+
/** Next invoice full amount — flat period fee or per-seat price times newQuantity */
|
|
755
760
|
nextInvoiceAmount: number;
|
|
756
761
|
nextInvoiceDate: string | null;
|
|
757
762
|
currency: FFIDSupportedCurrency;
|
|
@@ -411,6 +411,8 @@ interface FFIDPlanInfo {
|
|
|
411
411
|
maxSeats: number | null;
|
|
412
412
|
seatSelectionEnabled: boolean;
|
|
413
413
|
trialDays: number;
|
|
414
|
+
/** flat: period fee; per_seat: multiply by selected quantity. Older servers omit this. */
|
|
415
|
+
pricingModel?: 'per_seat' | 'flat';
|
|
414
416
|
/**
|
|
415
417
|
* Monthly price in the smallest currency unit.
|
|
416
418
|
*
|
|
@@ -646,12 +648,12 @@ interface FFIDPlanChangeLineItem {
|
|
|
646
648
|
interface FFIDPlanChangePreviewBase {
|
|
647
649
|
/** Discriminant for preview response variants (reserved for future unions with e.g. seat-change previews) */
|
|
648
650
|
type: 'plan-change';
|
|
649
|
-
/** Current plan display info. `price` is the total
|
|
651
|
+
/** Current plan display info. `price` is the period total: flat fee, or per-seat price times quantity. */
|
|
650
652
|
currentPlan: {
|
|
651
653
|
name: string;
|
|
652
654
|
price: number;
|
|
653
655
|
};
|
|
654
|
-
/** New plan display info. `price` is the total
|
|
656
|
+
/** New plan display info. `price` is the period total: flat fee, or per-seat price times quantity. */
|
|
655
657
|
newPlan: {
|
|
656
658
|
name: string;
|
|
657
659
|
price: number;
|
|
@@ -725,7 +727,8 @@ interface FFIDSeatChangeLineItem {
|
|
|
725
727
|
* `proratedAmount` is computed locally. `isEstimate=false`: it reflects Stripe's live
|
|
726
728
|
* proration calculation.
|
|
727
729
|
*
|
|
728
|
-
* `nextInvoiceAmount` is
|
|
730
|
+
* `nextInvoiceAmount` is a local estimate: flat period fee, or `unitPrice * newQuantity`.
|
|
731
|
+
* Flat capacity changes have zero prorated cost.
|
|
729
732
|
*
|
|
730
733
|
* `pricingUnavailable=true` means custom pricing or an unverified contracted Stripe
|
|
731
734
|
* Price. Hide amounts; zero is not a quote. `custom_pricing` permits the existing
|
|
@@ -738,6 +741,8 @@ interface FFIDSeatChangeLineItem {
|
|
|
738
741
|
* external consumers should guide users to the FFID portal for seat changes.
|
|
739
742
|
*/
|
|
740
743
|
interface FFIDSeatChangePreview {
|
|
744
|
+
/** flat: unitPrice is the whole period fee; per_seat: multiply by capacity. */
|
|
745
|
+
pricingModel?: 'per_seat' | 'flat';
|
|
741
746
|
/** Discriminant for preview response variants (pairs with `FFIDPlanChangePreview.type`) */
|
|
742
747
|
type: 'seat-change';
|
|
743
748
|
currentQuantity: number;
|
|
@@ -751,7 +756,7 @@ interface FFIDSeatChangePreview {
|
|
|
751
756
|
* be reserved. Also `0` when `pricingUnavailable === true`; hide it instead of quoting zero.
|
|
752
757
|
*/
|
|
753
758
|
proratedAmount: number;
|
|
754
|
-
/** Next invoice full amount —
|
|
759
|
+
/** Next invoice full amount — flat period fee or per-seat price times newQuantity */
|
|
755
760
|
nextInvoiceAmount: number;
|
|
756
761
|
nextInvoiceDate: string | null;
|
|
757
762
|
currency: FFIDSupportedCurrency;
|