@simplr-ai/angular 1.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/LICENSE +21 -0
- package/README.md +257 -0
- package/dist/index.cjs +867 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +371 -0
- package/dist/index.d.ts +371 -0
- package/dist/index.js +820 -0
- package/dist/index.js.map +1 -0
- package/package.json +60 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,867 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var core = require('@angular/core');
|
|
4
|
+
var rxjs = require('rxjs');
|
|
5
|
+
var js = require('@simplr-ai/js');
|
|
6
|
+
var operators = require('rxjs/operators');
|
|
7
|
+
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
10
|
+
var SIMPLR_CONFIG = new core.InjectionToken("SIMPLR_CONFIG");
|
|
11
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
12
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
13
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
15
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16
|
+
}
|
|
17
|
+
__name(_ts_decorate, "_ts_decorate");
|
|
18
|
+
function _ts_metadata(k, v) {
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
20
|
+
}
|
|
21
|
+
__name(_ts_metadata, "_ts_metadata");
|
|
22
|
+
function _ts_param(paramIndex, decorator) {
|
|
23
|
+
return function(target, key) {
|
|
24
|
+
decorator(target, key, paramIndex);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
__name(_ts_param, "_ts_param");
|
|
28
|
+
exports.SimplrService = class SimplrService {
|
|
29
|
+
static {
|
|
30
|
+
__name(this, "SimplrService");
|
|
31
|
+
}
|
|
32
|
+
/** The underlying core SDK instance. Exposed for advanced/escape-hatch use. */
|
|
33
|
+
core;
|
|
34
|
+
config;
|
|
35
|
+
constructor(config) {
|
|
36
|
+
this.config = config;
|
|
37
|
+
this.core = new js.SimplrFraud({
|
|
38
|
+
apiKey: config?.apiKey,
|
|
39
|
+
...config?.fraud
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/** Whether the SDK has been initialized and is ready to collect. */
|
|
43
|
+
get isReady() {
|
|
44
|
+
return this.core.isReady;
|
|
45
|
+
}
|
|
46
|
+
/** Initialize the SDK and start biometric tracking (no-op if auto-started). */
|
|
47
|
+
initialize() {
|
|
48
|
+
this.core.initialize();
|
|
49
|
+
}
|
|
50
|
+
/** Start behavioral biometric tracking. */
|
|
51
|
+
startTracking() {
|
|
52
|
+
this.core.startTracking();
|
|
53
|
+
}
|
|
54
|
+
/** Stop behavioral biometric tracking. */
|
|
55
|
+
stopTracking() {
|
|
56
|
+
this.core.stopTracking();
|
|
57
|
+
}
|
|
58
|
+
/** Reset all collected behavioral data. */
|
|
59
|
+
reset() {
|
|
60
|
+
this.core.reset();
|
|
61
|
+
}
|
|
62
|
+
/** Event handlers + `data-simplr-field` attr to wire up an input for keystroke biometrics. */
|
|
63
|
+
trackInput(fieldName) {
|
|
64
|
+
return this.core.trackInput(fieldName);
|
|
65
|
+
}
|
|
66
|
+
/** Collect the full device fingerprint only (Promise). */
|
|
67
|
+
getDeviceSignals() {
|
|
68
|
+
return this.core.collectDeviceSignals();
|
|
69
|
+
}
|
|
70
|
+
/** Collect the full device fingerprint only (Observable). */
|
|
71
|
+
getDeviceSignals$() {
|
|
72
|
+
return rxjs.from(this.core.collectDeviceSignals());
|
|
73
|
+
}
|
|
74
|
+
/** Collect behavioral signals synchronously. */
|
|
75
|
+
getBehaviorSignals() {
|
|
76
|
+
return this.core.collectBehaviorSignals();
|
|
77
|
+
}
|
|
78
|
+
/** Collect device + behavior signals (Promise). */
|
|
79
|
+
collect() {
|
|
80
|
+
return this.core.collect();
|
|
81
|
+
}
|
|
82
|
+
/** Collect device + behavior signals (Observable). */
|
|
83
|
+
collect$() {
|
|
84
|
+
return rxjs.from(this.core.collect());
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Convenience: run a fraud/identity check against `/v1/check`. Collects fresh
|
|
88
|
+
* device + behavior signals and posts them with the configured public key.
|
|
89
|
+
* Returns the unwrapped `content` from the response envelope.
|
|
90
|
+
*/
|
|
91
|
+
async check(input = {}) {
|
|
92
|
+
const config = this.config;
|
|
93
|
+
const signals = await this.core.collect();
|
|
94
|
+
const baseUrl = (config?.baseUrl || "https://api.simplr.sh").replace(/\/+$/, "");
|
|
95
|
+
const res = await fetch(`${baseUrl}/v1/check`, {
|
|
96
|
+
method: "POST",
|
|
97
|
+
headers: {
|
|
98
|
+
"Content-Type": "application/json",
|
|
99
|
+
"X-API-Key": config?.apiKey ?? ""
|
|
100
|
+
},
|
|
101
|
+
body: JSON.stringify({
|
|
102
|
+
...input,
|
|
103
|
+
device: signals.device,
|
|
104
|
+
behavior: signals.behavior
|
|
105
|
+
})
|
|
106
|
+
});
|
|
107
|
+
const body = await res.json().catch(() => null);
|
|
108
|
+
if (!res.ok) {
|
|
109
|
+
throw new Error(body?.message || body?.error || `Simplr API error ${res.status}`);
|
|
110
|
+
}
|
|
111
|
+
return body && "content" in body ? body.content : body;
|
|
112
|
+
}
|
|
113
|
+
/** Observable variant of {@link check}. */
|
|
114
|
+
check$(input = {}) {
|
|
115
|
+
return rxjs.from(this.check(input));
|
|
116
|
+
}
|
|
117
|
+
ngOnDestroy() {
|
|
118
|
+
this.core.stopTracking();
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
exports.SimplrService = _ts_decorate([
|
|
122
|
+
core.Injectable({
|
|
123
|
+
providedIn: "root"
|
|
124
|
+
}),
|
|
125
|
+
_ts_param(0, core.Optional()),
|
|
126
|
+
_ts_param(0, core.Inject(SIMPLR_CONFIG)),
|
|
127
|
+
_ts_metadata("design:type", Function),
|
|
128
|
+
_ts_metadata("design:paramtypes", [
|
|
129
|
+
typeof SimplrConfig === "undefined" ? Object : SimplrConfig
|
|
130
|
+
])
|
|
131
|
+
], exports.SimplrService);
|
|
132
|
+
function _ts_decorate2(decorators, target, key, desc) {
|
|
133
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
134
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
135
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
136
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
137
|
+
}
|
|
138
|
+
__name(_ts_decorate2, "_ts_decorate");
|
|
139
|
+
function _ts_metadata2(k, v) {
|
|
140
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
141
|
+
}
|
|
142
|
+
__name(_ts_metadata2, "_ts_metadata");
|
|
143
|
+
function _ts_param2(paramIndex, decorator) {
|
|
144
|
+
return function(target, key) {
|
|
145
|
+
decorator(target, key, paramIndex);
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
__name(_ts_param2, "_ts_param");
|
|
149
|
+
exports.SimplrFlagsService = class SimplrFlagsService {
|
|
150
|
+
static {
|
|
151
|
+
__name(this, "SimplrFlagsService");
|
|
152
|
+
}
|
|
153
|
+
/** The underlying core SDK instance. */
|
|
154
|
+
core = new js.SimplrFlags();
|
|
155
|
+
/** Emits the full `{ key -> FlagDefinition }` map on every refresh. */
|
|
156
|
+
flags$ = new rxjs.BehaviorSubject({});
|
|
157
|
+
config;
|
|
158
|
+
refreshTimer = null;
|
|
159
|
+
autoInitDone = false;
|
|
160
|
+
constructor(config) {
|
|
161
|
+
this.config = config;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Initialize the flag engine. Loads flags from `/v1/flags`, seeds `flags$`,
|
|
165
|
+
* and starts an internal refresh loop that re-emits `flags$` on each cycle.
|
|
166
|
+
*/
|
|
167
|
+
async initialize(overrides) {
|
|
168
|
+
const refreshIntervalMs = overrides?.refreshIntervalMs ?? this.config?.flags?.refreshIntervalMs ?? 6e4;
|
|
169
|
+
const cfg = {
|
|
170
|
+
apiKey: this.config?.apiKey ?? "",
|
|
171
|
+
baseUrl: this.config?.baseUrl,
|
|
172
|
+
...this.config?.flags,
|
|
173
|
+
...overrides,
|
|
174
|
+
// We drive refresh emissions ourselves so flags$ stays in sync; disable
|
|
175
|
+
// the core's internal timer to avoid a second uncontrolled loop.
|
|
176
|
+
refreshIntervalMs: 0
|
|
177
|
+
};
|
|
178
|
+
await this.core.initialize(cfg);
|
|
179
|
+
this.emit();
|
|
180
|
+
if (refreshIntervalMs > 0 && typeof setInterval !== "undefined") {
|
|
181
|
+
this.refreshTimer = setInterval(() => this.refresh(), refreshIntervalMs);
|
|
182
|
+
}
|
|
183
|
+
this.autoInitDone = true;
|
|
184
|
+
}
|
|
185
|
+
/** Set the default user id used for flag evaluation/bucketing. */
|
|
186
|
+
setUser(userId) {
|
|
187
|
+
this.core.setUser(userId);
|
|
188
|
+
}
|
|
189
|
+
/** Manually refresh flags from the server and re-emit `flags$`. */
|
|
190
|
+
async refresh() {
|
|
191
|
+
await this.core.refresh();
|
|
192
|
+
this.emit();
|
|
193
|
+
}
|
|
194
|
+
/** Manually refresh flags as an Observable. */
|
|
195
|
+
refresh$() {
|
|
196
|
+
return rxjs.from(this.refresh());
|
|
197
|
+
}
|
|
198
|
+
/** Evaluate a flag synchronously (local eval, murmurhash bucketing). */
|
|
199
|
+
isEnabled(key, ctx) {
|
|
200
|
+
return this.core.isEnabled(key, ctx);
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Observe a single flag as a boolean stream. Re-evaluates and emits whenever
|
|
204
|
+
* `flags$` changes (i.e. on every refresh), deduping consecutive equal values.
|
|
205
|
+
*/
|
|
206
|
+
observeFlag(key, ctx) {
|
|
207
|
+
return this.flags$.pipe(operators.map(() => this.core.isEnabled(key, ctx)), operators.distinctUntilChanged());
|
|
208
|
+
}
|
|
209
|
+
/** Whether the engine has loaded its initial flag set. */
|
|
210
|
+
isReady() {
|
|
211
|
+
return this.core.isReady();
|
|
212
|
+
}
|
|
213
|
+
/** Snapshot of all currently-known flag definitions. */
|
|
214
|
+
getAll() {
|
|
215
|
+
return this.core.getAll();
|
|
216
|
+
}
|
|
217
|
+
emit() {
|
|
218
|
+
this.flags$.next(this.core.getAll());
|
|
219
|
+
}
|
|
220
|
+
ngOnDestroy() {
|
|
221
|
+
if (this.refreshTimer) clearInterval(this.refreshTimer);
|
|
222
|
+
this.refreshTimer = null;
|
|
223
|
+
this.core.dispose();
|
|
224
|
+
this.flags$.complete();
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
exports.SimplrFlagsService = _ts_decorate2([
|
|
228
|
+
core.Injectable({
|
|
229
|
+
providedIn: "root"
|
|
230
|
+
}),
|
|
231
|
+
_ts_param2(0, core.Optional()),
|
|
232
|
+
_ts_param2(0, core.Inject(SIMPLR_CONFIG)),
|
|
233
|
+
_ts_metadata2("design:type", Function),
|
|
234
|
+
_ts_metadata2("design:paramtypes", [
|
|
235
|
+
typeof SimplrConfig === "undefined" ? Object : SimplrConfig
|
|
236
|
+
])
|
|
237
|
+
], exports.SimplrFlagsService);
|
|
238
|
+
function _ts_decorate3(decorators, target, key, desc) {
|
|
239
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
240
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
241
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
242
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
243
|
+
}
|
|
244
|
+
__name(_ts_decorate3, "_ts_decorate");
|
|
245
|
+
function _ts_metadata3(k, v) {
|
|
246
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
247
|
+
}
|
|
248
|
+
__name(_ts_metadata3, "_ts_metadata");
|
|
249
|
+
function _ts_param3(paramIndex, decorator) {
|
|
250
|
+
return function(target, key) {
|
|
251
|
+
decorator(target, key, paramIndex);
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
__name(_ts_param3, "_ts_param");
|
|
255
|
+
exports.SimplrProfilesService = class SimplrProfilesService {
|
|
256
|
+
static {
|
|
257
|
+
__name(this, "SimplrProfilesService");
|
|
258
|
+
}
|
|
259
|
+
/** The underlying core SDK instance. */
|
|
260
|
+
core;
|
|
261
|
+
constructor(config) {
|
|
262
|
+
this.core = new js.SimplrProfiles({
|
|
263
|
+
apiKey: config?.apiKey ?? "",
|
|
264
|
+
baseUrl: config?.baseUrl,
|
|
265
|
+
...config?.profiles
|
|
266
|
+
});
|
|
267
|
+
const fraud = new js.SimplrFraud({
|
|
268
|
+
apiKey: config?.apiKey,
|
|
269
|
+
collectBiometrics: false,
|
|
270
|
+
autoStart: false
|
|
271
|
+
});
|
|
272
|
+
this.core.setDeviceSignalCollector(() => fraud.collectDeviceSignals());
|
|
273
|
+
}
|
|
274
|
+
/** Identify a user — creates/updates an anonymous profile, links the device. */
|
|
275
|
+
identify(externalId, options) {
|
|
276
|
+
return this.core.identify(externalId, options);
|
|
277
|
+
}
|
|
278
|
+
/** Observable variant of {@link identify}. */
|
|
279
|
+
identify$(externalId, options) {
|
|
280
|
+
return rxjs.from(this.core.identify(externalId, options));
|
|
281
|
+
}
|
|
282
|
+
/** Submit an order for real-time fraud scoring (`/v1/orders`). */
|
|
283
|
+
submitOrder(order) {
|
|
284
|
+
return this.core.submitOrder(order);
|
|
285
|
+
}
|
|
286
|
+
/** Observable variant of {@link submitOrder}. */
|
|
287
|
+
submitOrder$(order) {
|
|
288
|
+
return rxjs.from(this.core.submitOrder(order));
|
|
289
|
+
}
|
|
290
|
+
/** Get the risk profile for a user (`GET /v1/profiles/{externalId}`). */
|
|
291
|
+
getProfileRisk(externalId) {
|
|
292
|
+
return this.core.getProfileRisk(externalId);
|
|
293
|
+
}
|
|
294
|
+
/** Observable variant of {@link getProfileRisk}. */
|
|
295
|
+
getProfileRisk$(externalId) {
|
|
296
|
+
return rxjs.from(this.core.getProfileRisk(externalId));
|
|
297
|
+
}
|
|
298
|
+
/** Report a profile outcome as `fraud` or `legitimate`. */
|
|
299
|
+
reportOutcome(externalId, outcome) {
|
|
300
|
+
return this.core.reportOutcome(externalId, outcome);
|
|
301
|
+
}
|
|
302
|
+
/** Observable variant of {@link reportOutcome}. */
|
|
303
|
+
reportOutcome$(externalId, outcome) {
|
|
304
|
+
return rxjs.from(this.core.reportOutcome(externalId, outcome));
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
exports.SimplrProfilesService = _ts_decorate3([
|
|
308
|
+
core.Injectable({
|
|
309
|
+
providedIn: "root"
|
|
310
|
+
}),
|
|
311
|
+
_ts_param3(0, core.Optional()),
|
|
312
|
+
_ts_param3(0, core.Inject(SIMPLR_CONFIG)),
|
|
313
|
+
_ts_metadata3("design:type", Function),
|
|
314
|
+
_ts_metadata3("design:paramtypes", [
|
|
315
|
+
typeof SimplrConfig === "undefined" ? Object : SimplrConfig
|
|
316
|
+
])
|
|
317
|
+
], exports.SimplrProfilesService);
|
|
318
|
+
function _ts_decorate4(decorators, target, key, desc) {
|
|
319
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
320
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
321
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
322
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
323
|
+
}
|
|
324
|
+
__name(_ts_decorate4, "_ts_decorate");
|
|
325
|
+
function _ts_metadata4(k, v) {
|
|
326
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
327
|
+
}
|
|
328
|
+
__name(_ts_metadata4, "_ts_metadata");
|
|
329
|
+
function _ts_param4(paramIndex, decorator) {
|
|
330
|
+
return function(target, key) {
|
|
331
|
+
decorator(target, key, paramIndex);
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
__name(_ts_param4, "_ts_param");
|
|
335
|
+
exports.SimplrRumService = class SimplrRumService {
|
|
336
|
+
static {
|
|
337
|
+
__name(this, "SimplrRumService");
|
|
338
|
+
}
|
|
339
|
+
/** The underlying core RUM singleton. */
|
|
340
|
+
core = js.SimplrRUM.getInstance();
|
|
341
|
+
config;
|
|
342
|
+
constructor(config) {
|
|
343
|
+
this.config = config;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Initialize RUM. `applicationId` is required by the core. Pulls apiKey/baseUrl
|
|
347
|
+
* from the unified config when not supplied in overrides.
|
|
348
|
+
*/
|
|
349
|
+
initialize(overrides) {
|
|
350
|
+
const merged = {
|
|
351
|
+
apiKey: this.config?.apiKey,
|
|
352
|
+
...this.config?.rum,
|
|
353
|
+
...overrides
|
|
354
|
+
};
|
|
355
|
+
this.core.initialize(merged);
|
|
356
|
+
}
|
|
357
|
+
/** Whether RUM has been initialized. */
|
|
358
|
+
isInitialized() {
|
|
359
|
+
return this.core.isInitialized();
|
|
360
|
+
}
|
|
361
|
+
/** Associate the current session with a user. */
|
|
362
|
+
setUser(userId, attributes) {
|
|
363
|
+
this.core.setUser(userId, attributes);
|
|
364
|
+
}
|
|
365
|
+
/** Clear the current session's user. */
|
|
366
|
+
clearUser() {
|
|
367
|
+
this.core.clearUser();
|
|
368
|
+
}
|
|
369
|
+
/** Add a global attribute attached to every event. */
|
|
370
|
+
addAttribute(key, value) {
|
|
371
|
+
this.core.addAttribute(key, value);
|
|
372
|
+
}
|
|
373
|
+
/** Remove a previously added global attribute. */
|
|
374
|
+
removeAttribute(key) {
|
|
375
|
+
this.core.removeAttribute(key);
|
|
376
|
+
}
|
|
377
|
+
/** Track a page/screen view. */
|
|
378
|
+
trackView(name, attributes) {
|
|
379
|
+
this.core.trackView(name, attributes);
|
|
380
|
+
}
|
|
381
|
+
/** Track a user action. */
|
|
382
|
+
trackAction(name, type, options) {
|
|
383
|
+
this.core.trackAction(name, type, options);
|
|
384
|
+
}
|
|
385
|
+
/** Track an error. */
|
|
386
|
+
trackError(error, context) {
|
|
387
|
+
this.core.trackError(error, context);
|
|
388
|
+
}
|
|
389
|
+
/** Emit a structured log message. */
|
|
390
|
+
log(level, message, context) {
|
|
391
|
+
this.core.log(level, message, context);
|
|
392
|
+
}
|
|
393
|
+
/** End the current RUM session and flush. */
|
|
394
|
+
stopSession() {
|
|
395
|
+
this.core.stopSession();
|
|
396
|
+
}
|
|
397
|
+
/** Force-flush the event batch. */
|
|
398
|
+
flush() {
|
|
399
|
+
return this.core.flush();
|
|
400
|
+
}
|
|
401
|
+
/** Current session id (or null). */
|
|
402
|
+
getSessionId() {
|
|
403
|
+
return this.core.getSessionId();
|
|
404
|
+
}
|
|
405
|
+
/** Current view id (or null). */
|
|
406
|
+
getViewId() {
|
|
407
|
+
return this.core.getViewId();
|
|
408
|
+
}
|
|
409
|
+
ngOnDestroy() {
|
|
410
|
+
if (this.core.isInitialized()) {
|
|
411
|
+
this.core.flush();
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
exports.SimplrRumService = _ts_decorate4([
|
|
416
|
+
core.Injectable({
|
|
417
|
+
providedIn: "root"
|
|
418
|
+
}),
|
|
419
|
+
_ts_param4(0, core.Optional()),
|
|
420
|
+
_ts_param4(0, core.Inject(SIMPLR_CONFIG)),
|
|
421
|
+
_ts_metadata4("design:type", Function),
|
|
422
|
+
_ts_metadata4("design:paramtypes", [
|
|
423
|
+
typeof SimplrConfig === "undefined" ? Object : SimplrConfig
|
|
424
|
+
])
|
|
425
|
+
], exports.SimplrRumService);
|
|
426
|
+
function _ts_decorate5(decorators, target, key, desc) {
|
|
427
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
428
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
429
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
430
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
431
|
+
}
|
|
432
|
+
__name(_ts_decorate5, "_ts_decorate");
|
|
433
|
+
function _ts_metadata5(k, v) {
|
|
434
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
435
|
+
}
|
|
436
|
+
__name(_ts_metadata5, "_ts_metadata");
|
|
437
|
+
function _ts_param5(paramIndex, decorator) {
|
|
438
|
+
return function(target, key) {
|
|
439
|
+
decorator(target, key, paramIndex);
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
__name(_ts_param5, "_ts_param");
|
|
443
|
+
exports.SimplrAIService = class SimplrAIService {
|
|
444
|
+
static {
|
|
445
|
+
__name(this, "SimplrAIService");
|
|
446
|
+
}
|
|
447
|
+
/** The underlying core SDK instance. */
|
|
448
|
+
core;
|
|
449
|
+
constructor(config) {
|
|
450
|
+
this.core = new js.SimplrAI({
|
|
451
|
+
apiKey: config?.apiKey ?? "",
|
|
452
|
+
endpoint: config?.baseUrl,
|
|
453
|
+
...config?.ai
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
/** Open the AI Connect gateway (popup/redirect) for users to connect their AI. */
|
|
457
|
+
connect(options) {
|
|
458
|
+
return this.core.connect(options);
|
|
459
|
+
}
|
|
460
|
+
/** Observable variant of {@link connect}. */
|
|
461
|
+
connect$(options) {
|
|
462
|
+
return rxjs.from(this.core.connect(options));
|
|
463
|
+
}
|
|
464
|
+
/** Create a new AI delegation token for a user. */
|
|
465
|
+
createDelegation(options) {
|
|
466
|
+
return this.core.createDelegation(options);
|
|
467
|
+
}
|
|
468
|
+
/** Observable variant of {@link createDelegation}. */
|
|
469
|
+
createDelegation$(options) {
|
|
470
|
+
return rxjs.from(this.core.createDelegation(options));
|
|
471
|
+
}
|
|
472
|
+
/** Validate a delegation token. */
|
|
473
|
+
validate(token, options) {
|
|
474
|
+
return this.core.validate(token, options);
|
|
475
|
+
}
|
|
476
|
+
/** Observable variant of {@link validate}. */
|
|
477
|
+
validate$(token, options) {
|
|
478
|
+
return rxjs.from(this.core.validate(token, options));
|
|
479
|
+
}
|
|
480
|
+
/** Revoke a single delegation. */
|
|
481
|
+
revoke(delegationId, reason) {
|
|
482
|
+
return this.core.revoke(delegationId, reason);
|
|
483
|
+
}
|
|
484
|
+
/** Observable variant of {@link revoke}. */
|
|
485
|
+
revoke$(delegationId, reason) {
|
|
486
|
+
return rxjs.from(this.core.revoke(delegationId, reason));
|
|
487
|
+
}
|
|
488
|
+
/** List delegations (optionally filtered by user). */
|
|
489
|
+
list(userId) {
|
|
490
|
+
return this.core.list(userId);
|
|
491
|
+
}
|
|
492
|
+
/** Observable variant of {@link list}. */
|
|
493
|
+
list$(userId) {
|
|
494
|
+
return rxjs.from(this.core.list(userId));
|
|
495
|
+
}
|
|
496
|
+
/** Get a single delegation. */
|
|
497
|
+
get(delegationId) {
|
|
498
|
+
return this.core.get(delegationId);
|
|
499
|
+
}
|
|
500
|
+
/** Observable variant of {@link get}. */
|
|
501
|
+
get$(delegationId) {
|
|
502
|
+
return rxjs.from(this.core.get(delegationId));
|
|
503
|
+
}
|
|
504
|
+
/** Get aggregate delegation statistics. */
|
|
505
|
+
stats() {
|
|
506
|
+
return this.core.stats();
|
|
507
|
+
}
|
|
508
|
+
/** Observable variant of {@link stats}. */
|
|
509
|
+
stats$() {
|
|
510
|
+
return rxjs.from(this.core.stats());
|
|
511
|
+
}
|
|
512
|
+
/** Revoke all delegations for a user (useful on logout). Returns the count revoked. */
|
|
513
|
+
revokeAllForUser(userId, reason) {
|
|
514
|
+
return this.core.revokeAllForUser(userId, reason);
|
|
515
|
+
}
|
|
516
|
+
/** Observable variant of {@link revokeAllForUser}. */
|
|
517
|
+
revokeAllForUser$(userId, reason) {
|
|
518
|
+
return rxjs.from(this.core.revokeAllForUser(userId, reason));
|
|
519
|
+
}
|
|
520
|
+
};
|
|
521
|
+
exports.SimplrAIService = _ts_decorate5([
|
|
522
|
+
core.Injectable({
|
|
523
|
+
providedIn: "root"
|
|
524
|
+
}),
|
|
525
|
+
_ts_param5(0, core.Optional()),
|
|
526
|
+
_ts_param5(0, core.Inject(SIMPLR_CONFIG)),
|
|
527
|
+
_ts_metadata5("design:type", Function),
|
|
528
|
+
_ts_metadata5("design:paramtypes", [
|
|
529
|
+
typeof SimplrConfig === "undefined" ? Object : SimplrConfig
|
|
530
|
+
])
|
|
531
|
+
], exports.SimplrAIService);
|
|
532
|
+
function _ts_decorate6(decorators, target, key, desc) {
|
|
533
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
534
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
535
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
536
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
537
|
+
}
|
|
538
|
+
__name(_ts_decorate6, "_ts_decorate");
|
|
539
|
+
function _ts_metadata6(k, v) {
|
|
540
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
541
|
+
}
|
|
542
|
+
__name(_ts_metadata6, "_ts_metadata");
|
|
543
|
+
function _ts_param6(paramIndex, decorator) {
|
|
544
|
+
return function(target, key) {
|
|
545
|
+
decorator(target, key, paramIndex);
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
__name(_ts_param6, "_ts_param");
|
|
549
|
+
exports.SimplrErrorHandler = class SimplrErrorHandler {
|
|
550
|
+
static {
|
|
551
|
+
__name(this, "SimplrErrorHandler");
|
|
552
|
+
}
|
|
553
|
+
rum;
|
|
554
|
+
constructor(rum) {
|
|
555
|
+
this.rum = rum;
|
|
556
|
+
}
|
|
557
|
+
handleError(error) {
|
|
558
|
+
try {
|
|
559
|
+
if (this.rum?.isInitialized()) {
|
|
560
|
+
const err = error instanceof Error ? error : new Error(typeof error === "string" ? error : JSON.stringify(error));
|
|
561
|
+
this.rum.trackError(err, {
|
|
562
|
+
source: "angular_error_handler"
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
} catch {
|
|
566
|
+
}
|
|
567
|
+
console.error(error);
|
|
568
|
+
}
|
|
569
|
+
};
|
|
570
|
+
exports.SimplrErrorHandler = _ts_decorate6([
|
|
571
|
+
core.Injectable(),
|
|
572
|
+
_ts_param6(0, core.Optional()),
|
|
573
|
+
_ts_metadata6("design:type", Function),
|
|
574
|
+
_ts_metadata6("design:paramtypes", [
|
|
575
|
+
typeof exports.SimplrRumService === "undefined" ? Object : exports.SimplrRumService
|
|
576
|
+
])
|
|
577
|
+
], exports.SimplrErrorHandler);
|
|
578
|
+
function _ts_decorate7(decorators, target, key, desc) {
|
|
579
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
580
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
581
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
582
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
583
|
+
}
|
|
584
|
+
__name(_ts_decorate7, "_ts_decorate");
|
|
585
|
+
function _ts_metadata7(k, v) {
|
|
586
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
587
|
+
}
|
|
588
|
+
__name(_ts_metadata7, "_ts_metadata");
|
|
589
|
+
exports.SimplrProtectDirective = class SimplrProtectDirective {
|
|
590
|
+
static {
|
|
591
|
+
__name(this, "SimplrProtectDirective");
|
|
592
|
+
}
|
|
593
|
+
simplr;
|
|
594
|
+
/** Prevent the native form submit while signals are collected (default true). */
|
|
595
|
+
simplrPreventDefault = true;
|
|
596
|
+
/** Emits the collected device + behavior signals on submit. */
|
|
597
|
+
simplrSignals = new core.EventEmitter();
|
|
598
|
+
/** Emits if signal collection fails. */
|
|
599
|
+
simplrError = new core.EventEmitter();
|
|
600
|
+
constructor(simplr) {
|
|
601
|
+
this.simplr = simplr;
|
|
602
|
+
}
|
|
603
|
+
async onSubmit(event) {
|
|
604
|
+
if (this.simplrPreventDefault) {
|
|
605
|
+
event.preventDefault();
|
|
606
|
+
}
|
|
607
|
+
try {
|
|
608
|
+
const signals = await this.simplr.collect();
|
|
609
|
+
this.simplrSignals.emit(signals);
|
|
610
|
+
} catch (err) {
|
|
611
|
+
this.simplrError.emit(err);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
};
|
|
615
|
+
_ts_decorate7([
|
|
616
|
+
core.Input()
|
|
617
|
+
], exports.SimplrProtectDirective.prototype, "simplrPreventDefault", void 0);
|
|
618
|
+
_ts_decorate7([
|
|
619
|
+
core.Output()
|
|
620
|
+
], exports.SimplrProtectDirective.prototype, "simplrSignals", void 0);
|
|
621
|
+
_ts_decorate7([
|
|
622
|
+
core.Output()
|
|
623
|
+
], exports.SimplrProtectDirective.prototype, "simplrError", void 0);
|
|
624
|
+
_ts_decorate7([
|
|
625
|
+
core.HostListener("submit", [
|
|
626
|
+
"$event"
|
|
627
|
+
]),
|
|
628
|
+
_ts_metadata7("design:type", Function),
|
|
629
|
+
_ts_metadata7("design:paramtypes", [
|
|
630
|
+
typeof Event === "undefined" ? Object : Event
|
|
631
|
+
]),
|
|
632
|
+
_ts_metadata7("design:returntype", Promise)
|
|
633
|
+
], exports.SimplrProtectDirective.prototype, "onSubmit", null);
|
|
634
|
+
exports.SimplrProtectDirective = _ts_decorate7([
|
|
635
|
+
core.Directive({
|
|
636
|
+
selector: "[simplrProtect]",
|
|
637
|
+
standalone: true
|
|
638
|
+
}),
|
|
639
|
+
_ts_metadata7("design:type", Function),
|
|
640
|
+
_ts_metadata7("design:paramtypes", [
|
|
641
|
+
typeof exports.SimplrService === "undefined" ? Object : exports.SimplrService
|
|
642
|
+
])
|
|
643
|
+
], exports.SimplrProtectDirective);
|
|
644
|
+
function _ts_decorate8(decorators, target, key, desc) {
|
|
645
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
646
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
647
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
648
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
649
|
+
}
|
|
650
|
+
__name(_ts_decorate8, "_ts_decorate");
|
|
651
|
+
function _ts_metadata8(k, v) {
|
|
652
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
653
|
+
}
|
|
654
|
+
__name(_ts_metadata8, "_ts_metadata");
|
|
655
|
+
exports.SimplrRumViewDirective = class SimplrRumViewDirective {
|
|
656
|
+
static {
|
|
657
|
+
__name(this, "SimplrRumViewDirective");
|
|
658
|
+
}
|
|
659
|
+
rum;
|
|
660
|
+
/** The view name to report. */
|
|
661
|
+
viewName = "";
|
|
662
|
+
/** Optional attributes attached to the view event. */
|
|
663
|
+
simplrRumViewAttributes;
|
|
664
|
+
constructor(rum) {
|
|
665
|
+
this.rum = rum;
|
|
666
|
+
}
|
|
667
|
+
ngOnInit() {
|
|
668
|
+
if (this.viewName) {
|
|
669
|
+
this.rum.trackView(this.viewName, this.simplrRumViewAttributes);
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
};
|
|
673
|
+
_ts_decorate8([
|
|
674
|
+
core.Input("simplrRumView")
|
|
675
|
+
], exports.SimplrRumViewDirective.prototype, "viewName", void 0);
|
|
676
|
+
_ts_decorate8([
|
|
677
|
+
core.Input(),
|
|
678
|
+
_ts_metadata8("design:type", typeof Record === "undefined" ? Object : Record)
|
|
679
|
+
], exports.SimplrRumViewDirective.prototype, "simplrRumViewAttributes", void 0);
|
|
680
|
+
exports.SimplrRumViewDirective = _ts_decorate8([
|
|
681
|
+
core.Directive({
|
|
682
|
+
selector: "[simplrRumView]",
|
|
683
|
+
standalone: true
|
|
684
|
+
}),
|
|
685
|
+
_ts_metadata8("design:type", Function),
|
|
686
|
+
_ts_metadata8("design:paramtypes", [
|
|
687
|
+
typeof exports.SimplrRumService === "undefined" ? Object : exports.SimplrRumService
|
|
688
|
+
])
|
|
689
|
+
], exports.SimplrRumViewDirective);
|
|
690
|
+
function _ts_decorate9(decorators, target, key, desc) {
|
|
691
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
692
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
693
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
694
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
695
|
+
}
|
|
696
|
+
__name(_ts_decorate9, "_ts_decorate");
|
|
697
|
+
function _ts_metadata9(k, v) {
|
|
698
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
699
|
+
}
|
|
700
|
+
__name(_ts_metadata9, "_ts_metadata");
|
|
701
|
+
exports.SimplrProtectedFormComponent = class SimplrProtectedFormComponent {
|
|
702
|
+
static {
|
|
703
|
+
__name(this, "SimplrProtectedFormComponent");
|
|
704
|
+
}
|
|
705
|
+
simplr;
|
|
706
|
+
/** Prevent native submit while signals are collected (default true). */
|
|
707
|
+
preventDefault = true;
|
|
708
|
+
/** Emits the collected device + behavior signals together with the event. */
|
|
709
|
+
submitWithSignals = new core.EventEmitter();
|
|
710
|
+
/** Emits if signal collection fails. */
|
|
711
|
+
collectError = new core.EventEmitter();
|
|
712
|
+
constructor(simplr) {
|
|
713
|
+
this.simplr = simplr;
|
|
714
|
+
}
|
|
715
|
+
async onSubmit(event) {
|
|
716
|
+
if (this.preventDefault) {
|
|
717
|
+
event.preventDefault();
|
|
718
|
+
}
|
|
719
|
+
try {
|
|
720
|
+
const signals = await this.simplr.collect();
|
|
721
|
+
this.submitWithSignals.emit({
|
|
722
|
+
signals,
|
|
723
|
+
event
|
|
724
|
+
});
|
|
725
|
+
} catch (err) {
|
|
726
|
+
this.collectError.emit(err);
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
};
|
|
730
|
+
_ts_decorate9([
|
|
731
|
+
core.Input()
|
|
732
|
+
], exports.SimplrProtectedFormComponent.prototype, "preventDefault", void 0);
|
|
733
|
+
_ts_decorate9([
|
|
734
|
+
core.Output()
|
|
735
|
+
], exports.SimplrProtectedFormComponent.prototype, "submitWithSignals", void 0);
|
|
736
|
+
_ts_decorate9([
|
|
737
|
+
core.Output()
|
|
738
|
+
], exports.SimplrProtectedFormComponent.prototype, "collectError", void 0);
|
|
739
|
+
exports.SimplrProtectedFormComponent = _ts_decorate9([
|
|
740
|
+
core.Component({
|
|
741
|
+
selector: "simplr-protected-form",
|
|
742
|
+
standalone: true,
|
|
743
|
+
template: `
|
|
744
|
+
<form (submit)="onSubmit($event)">
|
|
745
|
+
<ng-content></ng-content>
|
|
746
|
+
</form>
|
|
747
|
+
`
|
|
748
|
+
}),
|
|
749
|
+
_ts_metadata9("design:type", Function),
|
|
750
|
+
_ts_metadata9("design:paramtypes", [
|
|
751
|
+
typeof exports.SimplrService === "undefined" ? Object : exports.SimplrService
|
|
752
|
+
])
|
|
753
|
+
], exports.SimplrProtectedFormComponent);
|
|
754
|
+
|
|
755
|
+
// src/provider.ts
|
|
756
|
+
function _ts_decorate10(decorators, target, key, desc) {
|
|
757
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
758
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
759
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
760
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
761
|
+
}
|
|
762
|
+
__name(_ts_decorate10, "_ts_decorate");
|
|
763
|
+
function buildProviders(config, options) {
|
|
764
|
+
const providers = [
|
|
765
|
+
{
|
|
766
|
+
provide: SIMPLR_CONFIG,
|
|
767
|
+
useValue: config
|
|
768
|
+
},
|
|
769
|
+
exports.SimplrService,
|
|
770
|
+
exports.SimplrFlagsService,
|
|
771
|
+
exports.SimplrProfilesService,
|
|
772
|
+
exports.SimplrRumService,
|
|
773
|
+
exports.SimplrAIService
|
|
774
|
+
];
|
|
775
|
+
if (options?.errorHandler) {
|
|
776
|
+
providers.push({
|
|
777
|
+
provide: core.ErrorHandler,
|
|
778
|
+
useClass: exports.SimplrErrorHandler
|
|
779
|
+
});
|
|
780
|
+
}
|
|
781
|
+
return providers;
|
|
782
|
+
}
|
|
783
|
+
__name(buildProviders, "buildProviders");
|
|
784
|
+
function provideSimplr(config, options) {
|
|
785
|
+
return core.makeEnvironmentProviders(buildProviders(config, options));
|
|
786
|
+
}
|
|
787
|
+
__name(provideSimplr, "provideSimplr");
|
|
788
|
+
var SIMPLR_DIRECTIVES = [
|
|
789
|
+
exports.SimplrProtectDirective,
|
|
790
|
+
exports.SimplrRumViewDirective,
|
|
791
|
+
exports.SimplrProtectedFormComponent
|
|
792
|
+
];
|
|
793
|
+
exports.SimplrModule = class _SimplrModule {
|
|
794
|
+
static {
|
|
795
|
+
__name(this, "SimplrModule");
|
|
796
|
+
}
|
|
797
|
+
static forRoot(config, options) {
|
|
798
|
+
return {
|
|
799
|
+
ngModule: _SimplrModule,
|
|
800
|
+
providers: buildProviders(config, options)
|
|
801
|
+
};
|
|
802
|
+
}
|
|
803
|
+
};
|
|
804
|
+
exports.SimplrModule = _ts_decorate10([
|
|
805
|
+
core.NgModule({
|
|
806
|
+
imports: [
|
|
807
|
+
exports.SimplrProtectDirective,
|
|
808
|
+
exports.SimplrRumViewDirective,
|
|
809
|
+
exports.SimplrProtectedFormComponent
|
|
810
|
+
],
|
|
811
|
+
exports: [
|
|
812
|
+
exports.SimplrProtectDirective,
|
|
813
|
+
exports.SimplrRumViewDirective,
|
|
814
|
+
exports.SimplrProtectedFormComponent
|
|
815
|
+
]
|
|
816
|
+
})
|
|
817
|
+
], exports.SimplrModule);
|
|
818
|
+
|
|
819
|
+
Object.defineProperty(exports, "SimplrAI", {
|
|
820
|
+
enumerable: true,
|
|
821
|
+
get: function () { return js.SimplrAI; }
|
|
822
|
+
});
|
|
823
|
+
Object.defineProperty(exports, "SimplrFlags", {
|
|
824
|
+
enumerable: true,
|
|
825
|
+
get: function () { return js.SimplrFlags; }
|
|
826
|
+
});
|
|
827
|
+
Object.defineProperty(exports, "SimplrFraud", {
|
|
828
|
+
enumerable: true,
|
|
829
|
+
get: function () { return js.SimplrFraud; }
|
|
830
|
+
});
|
|
831
|
+
Object.defineProperty(exports, "SimplrProfiles", {
|
|
832
|
+
enumerable: true,
|
|
833
|
+
get: function () { return js.SimplrProfiles; }
|
|
834
|
+
});
|
|
835
|
+
Object.defineProperty(exports, "SimplrRUM", {
|
|
836
|
+
enumerable: true,
|
|
837
|
+
get: function () { return js.SimplrRUM; }
|
|
838
|
+
});
|
|
839
|
+
Object.defineProperty(exports, "clearDeviceId", {
|
|
840
|
+
enumerable: true,
|
|
841
|
+
get: function () { return js.clearDeviceId; }
|
|
842
|
+
});
|
|
843
|
+
Object.defineProperty(exports, "createSimplrAI", {
|
|
844
|
+
enumerable: true,
|
|
845
|
+
get: function () { return js.createSimplrAI; }
|
|
846
|
+
});
|
|
847
|
+
Object.defineProperty(exports, "createSimplrProfiles", {
|
|
848
|
+
enumerable: true,
|
|
849
|
+
get: function () { return js.createSimplrProfiles; }
|
|
850
|
+
});
|
|
851
|
+
Object.defineProperty(exports, "getDeviceId", {
|
|
852
|
+
enumerable: true,
|
|
853
|
+
get: function () { return js.getDeviceId; }
|
|
854
|
+
});
|
|
855
|
+
Object.defineProperty(exports, "murmurHash3", {
|
|
856
|
+
enumerable: true,
|
|
857
|
+
get: function () { return js.murmurHash3; }
|
|
858
|
+
});
|
|
859
|
+
Object.defineProperty(exports, "sha256", {
|
|
860
|
+
enumerable: true,
|
|
861
|
+
get: function () { return js.sha256; }
|
|
862
|
+
});
|
|
863
|
+
exports.SIMPLR_CONFIG = SIMPLR_CONFIG;
|
|
864
|
+
exports.SIMPLR_DIRECTIVES = SIMPLR_DIRECTIVES;
|
|
865
|
+
exports.provideSimplr = provideSimplr;
|
|
866
|
+
//# sourceMappingURL=index.cjs.map
|
|
867
|
+
//# sourceMappingURL=index.cjs.map
|