@transcend-io/airgap.js-types 14.1.1 → 14.2.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/constants.d.mts +20 -0
- package/dist/constants.d.mts.map +1 -0
- package/dist/constants.mjs +46 -0
- package/dist/constants.mjs.map +1 -0
- package/dist/core.d.mts +976 -0
- package/dist/core.d.mts.map +1 -0
- package/dist/core.mjs +115 -0
- package/dist/core.mjs.map +1 -0
- package/dist/enums/browserLanguage.d.mts +314 -0
- package/dist/enums/browserLanguage.d.mts.map +1 -0
- package/dist/enums/browserLanguage.mjs +314 -0
- package/dist/enums/browserLanguage.mjs.map +1 -0
- package/dist/enums/consentExpiry.d.mts +14 -0
- package/dist/enums/consentExpiry.d.mts.map +1 -0
- package/dist/enums/consentExpiry.mjs +14 -0
- package/dist/enums/consentExpiry.mjs.map +1 -0
- package/dist/enums/experience.d.mts +13 -0
- package/dist/enums/experience.d.mts.map +1 -0
- package/dist/enums/experience.mjs +13 -0
- package/dist/enums/experience.mjs.map +1 -0
- package/dist/enums/privacyRegime.d.mts +28 -0
- package/dist/enums/privacyRegime.d.mts.map +1 -0
- package/dist/enums/privacyRegime.mjs +30 -0
- package/dist/enums/privacyRegime.mjs.map +1 -0
- package/dist/enums/purpose.d.mts +71 -0
- package/dist/enums/purpose.d.mts.map +1 -0
- package/dist/enums/purpose.mjs +48 -0
- package/dist/enums/purpose.mjs.map +1 -0
- package/dist/enums/viewState.d.mts +139 -0
- package/dist/enums/viewState.d.mts.map +1 -0
- package/dist/enums/viewState.mjs +66 -0
- package/dist/enums/viewState.mjs.map +1 -0
- package/dist/experience.d.mts +68 -0
- package/dist/experience.d.mts.map +1 -0
- package/dist/experience.mjs +180 -0
- package/dist/experience.mjs.map +1 -0
- package/dist/iab.d.mts +323 -0
- package/dist/iab.d.mts.map +1 -0
- package/dist/iab.mjs +139 -0
- package/dist/iab.mjs.map +1 -0
- package/dist/index.d.mts +13 -2522
- package/dist/index.mjs +12 -1013
- package/dist/mobile.d.mts +42 -0
- package/dist/mobile.d.mts.map +1 -0
- package/dist/mobile.mjs +15 -0
- package/dist/mobile.mjs.map +1 -0
- package/dist/ui.d.mts +566 -0
- package/dist/ui.d.mts.map +1 -0
- package/dist/ui.mjs +87 -0
- package/dist/ui.mjs.map +1 -0
- package/package.json +5 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
package/dist/iab.d.mts
ADDED
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
|
|
3
|
+
//#region src/iab.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* TCF purpose configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const TcfPurpose: t.TypeC<{
|
|
8
|
+
id: t.NumberC;
|
|
9
|
+
name: t.StringC;
|
|
10
|
+
description: t.StringC;
|
|
11
|
+
descriptionLegal: t.StringC;
|
|
12
|
+
}>;
|
|
13
|
+
/**
|
|
14
|
+
* Type override
|
|
15
|
+
*/
|
|
16
|
+
type TcfPurpose = t.TypeOf<typeof TcfPurpose>;
|
|
17
|
+
/**
|
|
18
|
+
* TCF stack configuration
|
|
19
|
+
*/
|
|
20
|
+
declare const TcfStack: t.TypeC<{
|
|
21
|
+
id: t.NumberC;
|
|
22
|
+
purposes: t.ArrayC<t.NumberC>;
|
|
23
|
+
specialFeatures: t.ArrayC<t.NumberC>;
|
|
24
|
+
name: t.StringC;
|
|
25
|
+
description: t.StringC;
|
|
26
|
+
}>;
|
|
27
|
+
/**
|
|
28
|
+
* Type override
|
|
29
|
+
*/
|
|
30
|
+
type TcfStack = t.TypeOf<typeof TcfStack>;
|
|
31
|
+
/**
|
|
32
|
+
* TCF stack configuration
|
|
33
|
+
*/
|
|
34
|
+
declare const TcfVendor: t.IntersectionC<[t.TypeC<{
|
|
35
|
+
id: t.NumberC;
|
|
36
|
+
name: t.StringC;
|
|
37
|
+
purposes: t.ArrayC<t.NumberC>;
|
|
38
|
+
legIntPurposes: t.ArrayC<t.NumberC>;
|
|
39
|
+
flexiblePurposes: t.ArrayC<t.NumberC>;
|
|
40
|
+
specialPurposes: t.ArrayC<t.NumberC>;
|
|
41
|
+
features: t.ArrayC<t.NumberC>;
|
|
42
|
+
specialFeatures: t.ArrayC<t.NumberC>;
|
|
43
|
+
policyUrl: t.StringC;
|
|
44
|
+
cookieMaxAgeSeconds: t.UnionC<[t.NumberC, t.NullC]>;
|
|
45
|
+
usesCookies: t.BooleanC;
|
|
46
|
+
}>, t.PartialC<{
|
|
47
|
+
deletedDate: t.StringC;
|
|
48
|
+
overflow: t.TypeC<{
|
|
49
|
+
httpGetLimit: t.NumberC;
|
|
50
|
+
}>;
|
|
51
|
+
cookieRefresh: t.BooleanC;
|
|
52
|
+
usesNonCookieAccess: t.BooleanC;
|
|
53
|
+
deviceStorageDisclosureUrl: t.StringC;
|
|
54
|
+
}>]>;
|
|
55
|
+
/**
|
|
56
|
+
* Type override
|
|
57
|
+
*/
|
|
58
|
+
type TcfVendor = t.TypeOf<typeof TcfVendor>;
|
|
59
|
+
declare const TcfVendorListVersion: t.TypeC<{
|
|
60
|
+
gvlSpecificationVersion: t.NumberC;
|
|
61
|
+
vendorListVersion: t.NumberC;
|
|
62
|
+
tcfPolicyVersion: t.NumberC;
|
|
63
|
+
lastUpdated: t.StringC;
|
|
64
|
+
}>;
|
|
65
|
+
/**
|
|
66
|
+
* Type override
|
|
67
|
+
*/
|
|
68
|
+
type TcfVendorListVersion = t.TypeOf<typeof TcfVendorListVersion>;
|
|
69
|
+
/**
|
|
70
|
+
* TCF global vendor list version 2
|
|
71
|
+
*/
|
|
72
|
+
declare const TcfV2VendorList: t.IntersectionC<[t.TypeC<{
|
|
73
|
+
gvlSpecificationVersion: t.NumberC;
|
|
74
|
+
vendorListVersion: t.NumberC;
|
|
75
|
+
tcfPolicyVersion: t.NumberC;
|
|
76
|
+
lastUpdated: t.StringC;
|
|
77
|
+
}>, t.TypeC<{
|
|
78
|
+
purposes: t.RecordC<t.StringC, t.TypeC<{
|
|
79
|
+
id: t.NumberC;
|
|
80
|
+
name: t.StringC;
|
|
81
|
+
description: t.StringC;
|
|
82
|
+
descriptionLegal: t.StringC;
|
|
83
|
+
}>>;
|
|
84
|
+
specialPurposes: t.RecordC<t.StringC, t.TypeC<{
|
|
85
|
+
id: t.NumberC;
|
|
86
|
+
name: t.StringC;
|
|
87
|
+
description: t.StringC;
|
|
88
|
+
descriptionLegal: t.StringC;
|
|
89
|
+
}>>;
|
|
90
|
+
features: t.RecordC<t.StringC, t.TypeC<{
|
|
91
|
+
id: t.NumberC;
|
|
92
|
+
name: t.StringC;
|
|
93
|
+
description: t.StringC;
|
|
94
|
+
descriptionLegal: t.StringC;
|
|
95
|
+
}>>;
|
|
96
|
+
specialFeatures: t.RecordC<t.StringC, t.TypeC<{
|
|
97
|
+
id: t.NumberC;
|
|
98
|
+
name: t.StringC;
|
|
99
|
+
description: t.StringC;
|
|
100
|
+
descriptionLegal: t.StringC;
|
|
101
|
+
}>>;
|
|
102
|
+
stacks: t.RecordC<t.StringC, t.TypeC<{
|
|
103
|
+
id: t.NumberC;
|
|
104
|
+
purposes: t.ArrayC<t.NumberC>;
|
|
105
|
+
specialFeatures: t.ArrayC<t.NumberC>;
|
|
106
|
+
name: t.StringC;
|
|
107
|
+
description: t.StringC;
|
|
108
|
+
}>>;
|
|
109
|
+
vendors: t.RecordC<t.StringC, t.IntersectionC<[t.TypeC<{
|
|
110
|
+
id: t.NumberC;
|
|
111
|
+
name: t.StringC;
|
|
112
|
+
purposes: t.ArrayC<t.NumberC>;
|
|
113
|
+
legIntPurposes: t.ArrayC<t.NumberC>;
|
|
114
|
+
flexiblePurposes: t.ArrayC<t.NumberC>;
|
|
115
|
+
specialPurposes: t.ArrayC<t.NumberC>;
|
|
116
|
+
features: t.ArrayC<t.NumberC>;
|
|
117
|
+
specialFeatures: t.ArrayC<t.NumberC>;
|
|
118
|
+
policyUrl: t.StringC;
|
|
119
|
+
cookieMaxAgeSeconds: t.UnionC<[t.NumberC, t.NullC]>;
|
|
120
|
+
usesCookies: t.BooleanC;
|
|
121
|
+
}>, t.PartialC<{
|
|
122
|
+
deletedDate: t.StringC;
|
|
123
|
+
overflow: t.TypeC<{
|
|
124
|
+
httpGetLimit: t.NumberC;
|
|
125
|
+
}>;
|
|
126
|
+
cookieRefresh: t.BooleanC;
|
|
127
|
+
usesNonCookieAccess: t.BooleanC;
|
|
128
|
+
deviceStorageDisclosureUrl: t.StringC;
|
|
129
|
+
}>]>>;
|
|
130
|
+
}>]>;
|
|
131
|
+
/**
|
|
132
|
+
* Overload TcfV2VendorList as a type
|
|
133
|
+
*/
|
|
134
|
+
type TcfV2VendorList = t.TypeOf<typeof TcfV2VendorList>;
|
|
135
|
+
/**
|
|
136
|
+
* TCF GVL v3 purpose configuration (TCF features share the same type)
|
|
137
|
+
*/
|
|
138
|
+
declare const TcfGvlV3Purpose: t.TypeC<{
|
|
139
|
+
id: t.NumberC;
|
|
140
|
+
name: t.StringC;
|
|
141
|
+
description: t.StringC;
|
|
142
|
+
illustrations: t.ArrayC<t.StringC>;
|
|
143
|
+
}>;
|
|
144
|
+
/**
|
|
145
|
+
* Type override
|
|
146
|
+
*/
|
|
147
|
+
type TcfGvlV3Purpose = t.TypeOf<typeof TcfGvlV3Purpose>;
|
|
148
|
+
/**
|
|
149
|
+
* TCF GVL v3 data categories configuration
|
|
150
|
+
*/
|
|
151
|
+
declare const TcfGvlV3DataCategory: t.TypeC<{
|
|
152
|
+
id: t.NumberC;
|
|
153
|
+
name: t.StringC;
|
|
154
|
+
description: t.StringC;
|
|
155
|
+
}>;
|
|
156
|
+
/**
|
|
157
|
+
* Type override
|
|
158
|
+
*/
|
|
159
|
+
type TcfGvlV3DataCategory = t.TypeOf<typeof TcfGvlV3DataCategory>;
|
|
160
|
+
/**
|
|
161
|
+
* TCF GVL v3 URL configuration
|
|
162
|
+
*/
|
|
163
|
+
declare const TcfGvlV3Url: t.IntersectionC<[t.TypeC<{
|
|
164
|
+
langId: t.StringC;
|
|
165
|
+
privacy: t.StringC;
|
|
166
|
+
}>, t.PartialC<{
|
|
167
|
+
legIntClaim: t.StringC;
|
|
168
|
+
}>]>;
|
|
169
|
+
/**
|
|
170
|
+
* Type override
|
|
171
|
+
*/
|
|
172
|
+
type TcfGvlV3Url = t.TypeOf<typeof TcfGvlV3Url>;
|
|
173
|
+
/**
|
|
174
|
+
* TCF GVL v3 data retention configuration
|
|
175
|
+
*/
|
|
176
|
+
declare const TcfGvlV3DataRetention: t.IntersectionC<[t.TypeC<{
|
|
177
|
+
purposes: t.RecordC<t.StringC, t.NumberC>;
|
|
178
|
+
specialPurposes: t.RecordC<t.StringC, t.NumberC>;
|
|
179
|
+
}>, t.PartialC<{
|
|
180
|
+
stdRetention: t.UnionC<[t.NumberC, t.NullC]>;
|
|
181
|
+
}>]>;
|
|
182
|
+
/**
|
|
183
|
+
* Type override
|
|
184
|
+
*/
|
|
185
|
+
type TcfGvlV3DataRetention = t.TypeOf<typeof TcfGvlV3DataRetention>;
|
|
186
|
+
/**
|
|
187
|
+
* TCF GVL v3 vendor configuration
|
|
188
|
+
*/
|
|
189
|
+
declare const TcfGvlV3Vendor: t.IntersectionC<[t.TypeC<{
|
|
190
|
+
id: t.NumberC;
|
|
191
|
+
name: t.StringC;
|
|
192
|
+
purposes: t.ArrayC<t.NumberC>;
|
|
193
|
+
legIntPurposes: t.ArrayC<t.NumberC>;
|
|
194
|
+
flexiblePurposes: t.ArrayC<t.NumberC>;
|
|
195
|
+
specialPurposes: t.ArrayC<t.NumberC>;
|
|
196
|
+
features: t.ArrayC<t.NumberC>;
|
|
197
|
+
specialFeatures: t.ArrayC<t.NumberC>;
|
|
198
|
+
cookieMaxAgeSeconds: t.UnionC<[t.NumberC, t.NullC]>;
|
|
199
|
+
usesCookies: t.BooleanC;
|
|
200
|
+
cookieRefresh: t.BooleanC;
|
|
201
|
+
usesNonCookieAccess: t.BooleanC;
|
|
202
|
+
dataRetention: t.IntersectionC<[t.TypeC<{
|
|
203
|
+
purposes: t.RecordC<t.StringC, t.NumberC>;
|
|
204
|
+
specialPurposes: t.RecordC<t.StringC, t.NumberC>;
|
|
205
|
+
}>, t.PartialC<{
|
|
206
|
+
stdRetention: t.UnionC<[t.NumberC, t.NullC]>;
|
|
207
|
+
}>]>;
|
|
208
|
+
urls: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
209
|
+
langId: t.StringC;
|
|
210
|
+
privacy: t.StringC;
|
|
211
|
+
}>, t.PartialC<{
|
|
212
|
+
legIntClaim: t.StringC;
|
|
213
|
+
}>]>>;
|
|
214
|
+
deviceStorageDisclosureUrl: t.StringC;
|
|
215
|
+
}>, t.PartialC<{
|
|
216
|
+
deletedDate: t.StringC;
|
|
217
|
+
overflow: t.TypeC<{
|
|
218
|
+
httpGetLimit: t.NumberC;
|
|
219
|
+
}>;
|
|
220
|
+
dataDeclaration: t.ArrayC<t.NumberC>;
|
|
221
|
+
}>]>;
|
|
222
|
+
/**
|
|
223
|
+
* Type override
|
|
224
|
+
*/
|
|
225
|
+
type TcfGvlV3Vendor = t.TypeOf<typeof TcfGvlV3Vendor>;
|
|
226
|
+
/**
|
|
227
|
+
* TCF global vendor list version 3
|
|
228
|
+
*/
|
|
229
|
+
declare const TcfV3VendorList: t.IntersectionC<[t.TypeC<{
|
|
230
|
+
gvlSpecificationVersion: t.NumberC;
|
|
231
|
+
vendorListVersion: t.NumberC;
|
|
232
|
+
tcfPolicyVersion: t.NumberC;
|
|
233
|
+
lastUpdated: t.StringC;
|
|
234
|
+
}>, t.TypeC<{
|
|
235
|
+
purposes: t.RecordC<t.StringC, t.TypeC<{
|
|
236
|
+
id: t.NumberC;
|
|
237
|
+
name: t.StringC;
|
|
238
|
+
description: t.StringC;
|
|
239
|
+
illustrations: t.ArrayC<t.StringC>;
|
|
240
|
+
}>>;
|
|
241
|
+
specialPurposes: t.RecordC<t.StringC, t.TypeC<{
|
|
242
|
+
id: t.NumberC;
|
|
243
|
+
name: t.StringC;
|
|
244
|
+
description: t.StringC;
|
|
245
|
+
illustrations: t.ArrayC<t.StringC>;
|
|
246
|
+
}>>;
|
|
247
|
+
features: t.RecordC<t.StringC, t.TypeC<{
|
|
248
|
+
id: t.NumberC;
|
|
249
|
+
name: t.StringC;
|
|
250
|
+
description: t.StringC;
|
|
251
|
+
illustrations: t.ArrayC<t.StringC>;
|
|
252
|
+
}>>;
|
|
253
|
+
specialFeatures: t.RecordC<t.StringC, t.TypeC<{
|
|
254
|
+
id: t.NumberC;
|
|
255
|
+
name: t.StringC;
|
|
256
|
+
description: t.StringC;
|
|
257
|
+
illustrations: t.ArrayC<t.StringC>;
|
|
258
|
+
}>>;
|
|
259
|
+
stacks: t.RecordC<t.StringC, t.TypeC<{
|
|
260
|
+
id: t.NumberC;
|
|
261
|
+
purposes: t.ArrayC<t.NumberC>;
|
|
262
|
+
specialFeatures: t.ArrayC<t.NumberC>;
|
|
263
|
+
name: t.StringC;
|
|
264
|
+
description: t.StringC;
|
|
265
|
+
}>>;
|
|
266
|
+
dataCategories: t.RecordC<t.StringC, t.TypeC<{
|
|
267
|
+
id: t.NumberC;
|
|
268
|
+
name: t.StringC;
|
|
269
|
+
description: t.StringC;
|
|
270
|
+
}>>;
|
|
271
|
+
vendors: t.RecordC<t.StringC, t.IntersectionC<[t.TypeC<{
|
|
272
|
+
id: t.NumberC;
|
|
273
|
+
name: t.StringC;
|
|
274
|
+
purposes: t.ArrayC<t.NumberC>;
|
|
275
|
+
legIntPurposes: t.ArrayC<t.NumberC>;
|
|
276
|
+
flexiblePurposes: t.ArrayC<t.NumberC>;
|
|
277
|
+
specialPurposes: t.ArrayC<t.NumberC>;
|
|
278
|
+
features: t.ArrayC<t.NumberC>;
|
|
279
|
+
specialFeatures: t.ArrayC<t.NumberC>;
|
|
280
|
+
cookieMaxAgeSeconds: t.UnionC<[t.NumberC, t.NullC]>;
|
|
281
|
+
usesCookies: t.BooleanC;
|
|
282
|
+
cookieRefresh: t.BooleanC;
|
|
283
|
+
usesNonCookieAccess: t.BooleanC;
|
|
284
|
+
dataRetention: t.IntersectionC<[t.TypeC<{
|
|
285
|
+
purposes: t.RecordC<t.StringC, t.NumberC>;
|
|
286
|
+
specialPurposes: t.RecordC<t.StringC, t.NumberC>;
|
|
287
|
+
}>, t.PartialC<{
|
|
288
|
+
stdRetention: t.UnionC<[t.NumberC, t.NullC]>;
|
|
289
|
+
}>]>;
|
|
290
|
+
urls: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
291
|
+
langId: t.StringC;
|
|
292
|
+
privacy: t.StringC;
|
|
293
|
+
}>, t.PartialC<{
|
|
294
|
+
legIntClaim: t.StringC;
|
|
295
|
+
}>]>>;
|
|
296
|
+
deviceStorageDisclosureUrl: t.StringC;
|
|
297
|
+
}>, t.PartialC<{
|
|
298
|
+
deletedDate: t.StringC;
|
|
299
|
+
overflow: t.TypeC<{
|
|
300
|
+
httpGetLimit: t.NumberC;
|
|
301
|
+
}>;
|
|
302
|
+
dataDeclaration: t.ArrayC<t.NumberC>;
|
|
303
|
+
}>]>>;
|
|
304
|
+
}>]>;
|
|
305
|
+
/**
|
|
306
|
+
* Type override
|
|
307
|
+
*/
|
|
308
|
+
type TcfV3VendorList = t.TypeOf<typeof TcfV3VendorList>;
|
|
309
|
+
declare const NonTcfVendor: t.IntersectionC<[t.TypeC<{
|
|
310
|
+
/** The vendor name */name: t.StringC; /** The transcend purposes associated with each vendor */
|
|
311
|
+
purposes: t.ArrayC<t.StringC>;
|
|
312
|
+
}>, t.PartialC<{
|
|
313
|
+
/** The vendor description */description: t.StringC; /** The privacy policy URL */
|
|
314
|
+
privacyPolicyUrl: t.StringC; /** The additional consent provider ID - used for Google Additional Consent string */
|
|
315
|
+
additionalConsentProviderId: t.StringC;
|
|
316
|
+
}>]>;
|
|
317
|
+
/**
|
|
318
|
+
* Type override
|
|
319
|
+
*/
|
|
320
|
+
type NonTcfVendor = t.TypeOf<typeof NonTcfVendor>;
|
|
321
|
+
//#endregion
|
|
322
|
+
export { NonTcfVendor, TcfGvlV3DataCategory, TcfGvlV3DataRetention, TcfGvlV3Purpose, TcfGvlV3Url, TcfGvlV3Vendor, TcfPurpose, TcfStack, TcfV2VendorList, TcfV3VendorList, TcfVendor, TcfVendorListVersion };
|
|
323
|
+
//# sourceMappingURL=iab.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iab.d.mts","names":[],"sources":["../src/iab.ts"],"mappings":";;;;;AAKA;cAAa,UAAA,EAAU,CAAA,CAAA,KAAA;;;;;;;;;KAUX,UAAA,GAAa,CAAA,CAAE,MAAA,QAAc,UAAA;;;;cAK5B,QAAA,EAAQ,CAAA,CAAA,KAAA;;;;;;;;;;KAWT,QAAA,GAAW,CAAA,CAAE,MAAA,QAAc,QAAA;;AAhBvC;;cAqBa,SAAA,EAAS,CAAA,CAAA,aAAA,EAAA,CAAA,CAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;KA4BV,SAAA,GAAY,CAAA,CAAE,MAAA,QAAc,SAAA;AAAA,cAE3B,oBAAA,EAAoB,CAAA,CAAA,KAAA;;;;;;;;;KASrB,oBAAA,GAAuB,CAAA,CAAE,MAAA,QAAc,oBAAA;;;;cAKtC,eAAA,EAAe,CAAA,CAAA,aAAA,EAAA,CAAA,CAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAehB,eAAA,GAAkB,CAAA,CAAE,MAAA,QAAc,eAAA;;;;cAKjC,eAAA,EAAe,CAAA,CAAA,KAAA;;;;;;;;;KAUhB,eAAA,GAAkB,CAAA,CAAE,MAAA,QAAc,eAAA;;;;cAKjC,oBAAA,EAAoB,CAAA,CAAA,KAAA;;;;;;;;KASrB,oBAAA,GAAuB,CAAA,CAAE,MAAA,QAAc,oBAAA;;;;cAKtC,WAAA,EAAW,CAAA,CAAA,aAAA,EAAA,CAAA,CAAA,KAAA;;;;;;;;;KAUZ,WAAA,GAAc,CAAA,CAAE,MAAA,QAAc,WAAA;;;;cAK7B,qBAAA,EAAqB,CAAA,CAAA,aAAA,EAAA,CAAA,CAAA,KAAA;;;;;;;;;KAatB,qBAAA,GAAwB,CAAA,CAAE,MAAA,QAAc,qBAAA;;;;cAKvC,cAAA,EAAc,CAAA,CAAA,aAAA,EAAA,CAAA,CAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8Bf,cAAA,GAAiB,CAAA,CAAE,MAAA,QAAc,cAAA;;;;cAKhC,eAAA,EAAe,CAAA,CAAA,aAAA,EAAA,CAAA,CAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgBhB,eAAA,GAAkB,CAAA,CAAE,MAAA,QAAc,eAAA;AAAA,cAEjC,YAAA,EAAY,CAAA,CAAA,aAAA,EAAA,CAAA,CAAA,KAAA;;;;EAvIG,qDAAA;+BAAA;;;;;;KA2JhB,YAAA,GAAe,CAAA,CAAE,MAAA,QAAc,YAAA"}
|
package/dist/iab.mjs
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
//#region src/iab.ts
|
|
3
|
+
/**
|
|
4
|
+
* TCF purpose configuration
|
|
5
|
+
*/
|
|
6
|
+
const TcfPurpose = t.type({
|
|
7
|
+
id: t.number,
|
|
8
|
+
name: t.string,
|
|
9
|
+
description: t.string,
|
|
10
|
+
descriptionLegal: t.string
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* TCF stack configuration
|
|
14
|
+
*/
|
|
15
|
+
const TcfStack = t.type({
|
|
16
|
+
id: t.number,
|
|
17
|
+
purposes: t.array(t.number),
|
|
18
|
+
specialFeatures: t.array(t.number),
|
|
19
|
+
name: t.string,
|
|
20
|
+
description: t.string
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* TCF stack configuration
|
|
24
|
+
*/
|
|
25
|
+
const TcfVendor = t.intersection([t.type({
|
|
26
|
+
id: t.number,
|
|
27
|
+
name: t.string,
|
|
28
|
+
purposes: t.array(t.number),
|
|
29
|
+
legIntPurposes: t.array(t.number),
|
|
30
|
+
flexiblePurposes: t.array(t.number),
|
|
31
|
+
specialPurposes: t.array(t.number),
|
|
32
|
+
features: t.array(t.number),
|
|
33
|
+
specialFeatures: t.array(t.number),
|
|
34
|
+
policyUrl: t.string,
|
|
35
|
+
cookieMaxAgeSeconds: t.union([t.number, t.null]),
|
|
36
|
+
usesCookies: t.boolean
|
|
37
|
+
}), t.partial({
|
|
38
|
+
deletedDate: t.string,
|
|
39
|
+
overflow: t.type({ httpGetLimit: t.number }),
|
|
40
|
+
cookieRefresh: t.boolean,
|
|
41
|
+
usesNonCookieAccess: t.boolean,
|
|
42
|
+
deviceStorageDisclosureUrl: t.string
|
|
43
|
+
})]);
|
|
44
|
+
const TcfVendorListVersion = t.type({
|
|
45
|
+
gvlSpecificationVersion: t.number,
|
|
46
|
+
vendorListVersion: t.number,
|
|
47
|
+
tcfPolicyVersion: t.number,
|
|
48
|
+
lastUpdated: t.string
|
|
49
|
+
});
|
|
50
|
+
/**
|
|
51
|
+
* TCF global vendor list version 2
|
|
52
|
+
*/
|
|
53
|
+
const TcfV2VendorList = t.intersection([TcfVendorListVersion, t.type({
|
|
54
|
+
purposes: t.record(t.string, TcfPurpose),
|
|
55
|
+
specialPurposes: t.record(t.string, TcfPurpose),
|
|
56
|
+
features: t.record(t.string, TcfPurpose),
|
|
57
|
+
specialFeatures: t.record(t.string, TcfPurpose),
|
|
58
|
+
stacks: t.record(t.string, TcfStack),
|
|
59
|
+
vendors: t.record(t.string, TcfVendor)
|
|
60
|
+
})]);
|
|
61
|
+
/**
|
|
62
|
+
* TCF GVL v3 purpose configuration (TCF features share the same type)
|
|
63
|
+
*/
|
|
64
|
+
const TcfGvlV3Purpose = t.type({
|
|
65
|
+
id: t.number,
|
|
66
|
+
name: t.string,
|
|
67
|
+
description: t.string,
|
|
68
|
+
illustrations: t.array(t.string)
|
|
69
|
+
});
|
|
70
|
+
/**
|
|
71
|
+
* TCF GVL v3 data categories configuration
|
|
72
|
+
*/
|
|
73
|
+
const TcfGvlV3DataCategory = t.type({
|
|
74
|
+
id: t.number,
|
|
75
|
+
name: t.string,
|
|
76
|
+
description: t.string
|
|
77
|
+
});
|
|
78
|
+
/**
|
|
79
|
+
* TCF GVL v3 URL configuration
|
|
80
|
+
*/
|
|
81
|
+
const TcfGvlV3Url = t.intersection([t.type({
|
|
82
|
+
langId: t.string,
|
|
83
|
+
privacy: t.string
|
|
84
|
+
}), t.partial({ legIntClaim: t.string })]);
|
|
85
|
+
/**
|
|
86
|
+
* TCF GVL v3 data retention configuration
|
|
87
|
+
*/
|
|
88
|
+
const TcfGvlV3DataRetention = t.intersection([t.type({
|
|
89
|
+
purposes: t.record(t.string, t.number),
|
|
90
|
+
specialPurposes: t.record(t.string, t.number)
|
|
91
|
+
}), t.partial({ stdRetention: t.union([t.number, t.null]) })]);
|
|
92
|
+
/**
|
|
93
|
+
* TCF GVL v3 vendor configuration
|
|
94
|
+
*/
|
|
95
|
+
const TcfGvlV3Vendor = t.intersection([t.type({
|
|
96
|
+
id: t.number,
|
|
97
|
+
name: t.string,
|
|
98
|
+
purposes: t.array(t.number),
|
|
99
|
+
legIntPurposes: t.array(t.number),
|
|
100
|
+
flexiblePurposes: t.array(t.number),
|
|
101
|
+
specialPurposes: t.array(t.number),
|
|
102
|
+
features: t.array(t.number),
|
|
103
|
+
specialFeatures: t.array(t.number),
|
|
104
|
+
cookieMaxAgeSeconds: t.union([t.number, t.null]),
|
|
105
|
+
usesCookies: t.boolean,
|
|
106
|
+
cookieRefresh: t.boolean,
|
|
107
|
+
usesNonCookieAccess: t.boolean,
|
|
108
|
+
dataRetention: TcfGvlV3DataRetention,
|
|
109
|
+
urls: t.array(TcfGvlV3Url),
|
|
110
|
+
deviceStorageDisclosureUrl: t.string
|
|
111
|
+
}), t.partial({
|
|
112
|
+
deletedDate: t.string,
|
|
113
|
+
overflow: t.type({ httpGetLimit: t.number }),
|
|
114
|
+
dataDeclaration: t.array(t.number)
|
|
115
|
+
})]);
|
|
116
|
+
/**
|
|
117
|
+
* TCF global vendor list version 3
|
|
118
|
+
*/
|
|
119
|
+
const TcfV3VendorList = t.intersection([TcfVendorListVersion, t.type({
|
|
120
|
+
purposes: t.record(t.string, TcfGvlV3Purpose),
|
|
121
|
+
specialPurposes: t.record(t.string, TcfGvlV3Purpose),
|
|
122
|
+
features: t.record(t.string, TcfGvlV3Purpose),
|
|
123
|
+
specialFeatures: t.record(t.string, TcfGvlV3Purpose),
|
|
124
|
+
stacks: t.record(t.string, TcfStack),
|
|
125
|
+
dataCategories: t.record(t.string, TcfGvlV3DataCategory),
|
|
126
|
+
vendors: t.record(t.string, TcfGvlV3Vendor)
|
|
127
|
+
})]);
|
|
128
|
+
const NonTcfVendor = t.intersection([t.type({
|
|
129
|
+
name: t.string,
|
|
130
|
+
purposes: t.array(t.string)
|
|
131
|
+
}), t.partial({
|
|
132
|
+
description: t.string,
|
|
133
|
+
privacyPolicyUrl: t.string,
|
|
134
|
+
additionalConsentProviderId: t.string
|
|
135
|
+
})]);
|
|
136
|
+
//#endregion
|
|
137
|
+
export { NonTcfVendor, TcfGvlV3DataCategory, TcfGvlV3DataRetention, TcfGvlV3Purpose, TcfGvlV3Url, TcfGvlV3Vendor, TcfPurpose, TcfStack, TcfV2VendorList, TcfV3VendorList, TcfVendor, TcfVendorListVersion };
|
|
138
|
+
|
|
139
|
+
//# sourceMappingURL=iab.mjs.map
|
package/dist/iab.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iab.mjs","names":[],"sources":["../src/iab.ts"],"sourcesContent":["import * as t from 'io-ts';\n\n/**\n * TCF purpose configuration\n */\nexport const TcfPurpose = t.type({\n id: t.number,\n name: t.string,\n description: t.string,\n descriptionLegal: t.string,\n});\n\n/**\n * Type override\n */\nexport type TcfPurpose = t.TypeOf<typeof TcfPurpose>;\n\n/**\n * TCF stack configuration\n */\nexport const TcfStack = t.type({\n id: t.number,\n purposes: t.array(t.number),\n specialFeatures: t.array(t.number),\n name: t.string,\n description: t.string,\n});\n\n/**\n * Type override\n */\nexport type TcfStack = t.TypeOf<typeof TcfStack>;\n\n/**\n * TCF stack configuration\n */\nexport const TcfVendor = t.intersection([\n t.type({\n id: t.number,\n name: t.string,\n purposes: t.array(t.number),\n legIntPurposes: t.array(t.number),\n flexiblePurposes: t.array(t.number),\n specialPurposes: t.array(t.number),\n features: t.array(t.number),\n specialFeatures: t.array(t.number),\n policyUrl: t.string,\n cookieMaxAgeSeconds: t.union([t.number, t.null]),\n usesCookies: t.boolean,\n }),\n t.partial({\n deletedDate: t.string,\n overflow: t.type({\n httpGetLimit: t.number,\n }),\n cookieRefresh: t.boolean,\n usesNonCookieAccess: t.boolean,\n deviceStorageDisclosureUrl: t.string,\n }),\n]);\n\n/**\n * Type override\n */\nexport type TcfVendor = t.TypeOf<typeof TcfVendor>;\n\nexport const TcfVendorListVersion = t.type({\n gvlSpecificationVersion: t.number,\n vendorListVersion: t.number, // incremented with each published file change\n tcfPolicyVersion: t.number,\n lastUpdated: t.string,\n});\n/**\n * Type override\n */\nexport type TcfVendorListVersion = t.TypeOf<typeof TcfVendorListVersion>;\n\n/**\n * TCF global vendor list version 2\n */\nexport const TcfV2VendorList = t.intersection([\n TcfVendorListVersion,\n t.type({\n purposes: t.record(t.string, TcfPurpose),\n specialPurposes: t.record(t.string, TcfPurpose),\n features: t.record(t.string, TcfPurpose),\n specialFeatures: t.record(t.string, TcfPurpose),\n stacks: t.record(t.string, TcfStack),\n vendors: t.record(t.string, TcfVendor),\n }),\n]);\n\n/**\n * Overload TcfV2VendorList as a type\n */\nexport type TcfV2VendorList = t.TypeOf<typeof TcfV2VendorList>;\n\n/**\n * TCF GVL v3 purpose configuration (TCF features share the same type)\n */\nexport const TcfGvlV3Purpose = t.type({\n id: t.number,\n name: t.string,\n description: t.string,\n illustrations: t.array(t.string),\n});\n\n/**\n * Type override\n */\nexport type TcfGvlV3Purpose = t.TypeOf<typeof TcfGvlV3Purpose>;\n\n/**\n * TCF GVL v3 data categories configuration\n */\nexport const TcfGvlV3DataCategory = t.type({\n id: t.number,\n name: t.string,\n description: t.string,\n});\n\n/**\n * Type override\n */\nexport type TcfGvlV3DataCategory = t.TypeOf<typeof TcfGvlV3DataCategory>;\n\n/**\n * TCF GVL v3 URL configuration\n */\nexport const TcfGvlV3Url = t.intersection([\n t.type({ langId: t.string, privacy: t.string }),\n t.partial({\n legIntClaim: t.string,\n }),\n]);\n\n/**\n * Type override\n */\nexport type TcfGvlV3Url = t.TypeOf<typeof TcfGvlV3Url>;\n\n/**\n * TCF GVL v3 data retention configuration\n */\nexport const TcfGvlV3DataRetention = t.intersection([\n t.type({\n purposes: t.record(t.string, t.number),\n specialPurposes: t.record(t.string, t.number),\n }),\n t.partial({\n stdRetention: t.union([t.number, t.null]),\n }),\n]);\n\n/**\n * Type override\n */\nexport type TcfGvlV3DataRetention = t.TypeOf<typeof TcfGvlV3DataRetention>;\n\n/**\n * TCF GVL v3 vendor configuration\n */\nexport const TcfGvlV3Vendor = t.intersection([\n t.type({\n id: t.number,\n name: t.string,\n purposes: t.array(t.number),\n legIntPurposes: t.array(t.number),\n flexiblePurposes: t.array(t.number),\n specialPurposes: t.array(t.number),\n features: t.array(t.number),\n specialFeatures: t.array(t.number),\n cookieMaxAgeSeconds: t.union([t.number, t.null]),\n usesCookies: t.boolean,\n cookieRefresh: t.boolean,\n usesNonCookieAccess: t.boolean,\n dataRetention: TcfGvlV3DataRetention,\n urls: t.array(TcfGvlV3Url),\n deviceStorageDisclosureUrl: t.string,\n }),\n t.partial({\n deletedDate: t.string,\n overflow: t.type({\n httpGetLimit: t.number,\n }),\n dataDeclaration: t.array(t.number),\n }),\n]);\n\n/**\n * Type override\n */\nexport type TcfGvlV3Vendor = t.TypeOf<typeof TcfGvlV3Vendor>;\n\n/**\n * TCF global vendor list version 3\n */\nexport const TcfV3VendorList = t.intersection([\n TcfVendorListVersion,\n t.type({\n purposes: t.record(t.string, TcfGvlV3Purpose),\n specialPurposes: t.record(t.string, TcfGvlV3Purpose),\n features: t.record(t.string, TcfGvlV3Purpose),\n specialFeatures: t.record(t.string, TcfGvlV3Purpose),\n stacks: t.record(t.string, TcfStack),\n dataCategories: t.record(t.string, TcfGvlV3DataCategory),\n vendors: t.record(t.string, TcfGvlV3Vendor),\n }),\n]);\n\n/**\n * Type override\n */\nexport type TcfV3VendorList = t.TypeOf<typeof TcfV3VendorList>;\n\nexport const NonTcfVendor = t.intersection([\n t.type({\n /** The vendor name */\n name: t.string,\n /** The transcend purposes associated with each vendor */\n purposes: t.array(t.string),\n }),\n t.partial({\n /** The vendor description */\n description: t.string,\n /** The privacy policy URL */\n privacyPolicyUrl: t.string,\n /** The additional consent provider ID - used for Google Additional Consent string */\n additionalConsentProviderId: t.string,\n }),\n]);\n\n/**\n * Type override\n */\nexport type NonTcfVendor = t.TypeOf<typeof NonTcfVendor>;\n"],"mappings":";;;;;AAKA,MAAa,aAAa,EAAE,KAAK;CAC/B,IAAI,EAAE;CACN,MAAM,EAAE;CACR,aAAa,EAAE;CACf,kBAAkB,EAAE;CACrB,CAAC;;;;AAUF,MAAa,WAAW,EAAE,KAAK;CAC7B,IAAI,EAAE;CACN,UAAU,EAAE,MAAM,EAAE,OAAO;CAC3B,iBAAiB,EAAE,MAAM,EAAE,OAAO;CAClC,MAAM,EAAE;CACR,aAAa,EAAE;CAChB,CAAC;;;;AAUF,MAAa,YAAY,EAAE,aAAa,CACtC,EAAE,KAAK;CACL,IAAI,EAAE;CACN,MAAM,EAAE;CACR,UAAU,EAAE,MAAM,EAAE,OAAO;CAC3B,gBAAgB,EAAE,MAAM,EAAE,OAAO;CACjC,kBAAkB,EAAE,MAAM,EAAE,OAAO;CACnC,iBAAiB,EAAE,MAAM,EAAE,OAAO;CAClC,UAA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