@depict-ai/utilishared 0.0.3 → 0.0.6

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/tsconfig.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "composite": true,
4
- "types": ["node"]
5
- },
6
- "references": [
7
- {
8
- "path": "../../"
9
- }
10
- ],
11
- "extends": "../../tsconfig_base",
12
- "exclude": ["./dist/*"]
13
- }
package/types.d.ts DELETED
@@ -1,69 +0,0 @@
1
- // Using `import "bundle-text:./foo/bar.whatever" with parcel causes the file
2
- // to be imported as plain text. This declaration adds typechecking for this.
3
- declare module "bundle-text:*" {
4
- const text: string;
5
- export = text;
6
- }
7
-
8
- // Parcel has a feature where it takes environment variables and puts them in `process.env.<envname>`
9
- // (details: https://parceljs.org/features/node-emulation/)
10
- // here are typings for the variables that you can expect find while building.
11
- declare namespace NodeJS {
12
- type ConsentFramework = "cookiebot" | "optanon";
13
- type ConsentLevel = "marketing" | "necessary" | "preferences" | "statistics";
14
-
15
- interface ProcessEnv {
16
- /** base URL of the API, defaults to `https://api.depict.ai`. Use if testing against a different api */
17
- readonly BASE_URL: string;
18
-
19
- readonly DEBUG: "true" | "false";
20
-
21
- readonly BUILD_TARGET: "ie11" | "modern" | "node" | "dev";
22
-
23
- /** whether to disable gtag view tracking at build time - functions will be removed from bundle */
24
- readonly GTAG_VIEW: "true" | "false";
25
-
26
- /** whether to disable all GTAG tracking at build time - functions will be removed from bundle */
27
- readonly GTAG: "true" | "false";
28
-
29
- /** whether to disable all GA and GTAG tracking at build time - functions will be removed from bundle */
30
- readonly GA: "true" | "false";
31
-
32
- /** whether to disable all depict tracking at build time - functions will be removed from bundle */
33
- readonly DEPICT: "true" | "false";
34
-
35
- /** sentry sample rate - a float as string, value between 0 and 1 */
36
- readonly SENTRY_SAMPLE_RATE: string;
37
-
38
- /** the folder the script's main.ts was when it was built */
39
- readonly TENANT: string;
40
-
41
- /** Which framework to read consent data from */
42
- readonly CONSENT_FRAMEWORK: ConsentFramework;
43
-
44
- /** For OneTrust Optanon integrations. Comma separated list of keys for consent levels: Necessary, Statistics, Preferences, Marketing */
45
- readonly OPTANON_KEYS: string;
46
-
47
- /** what level of consent is needed to load the gtag.js script */
48
- readonly GTAG_LOADING_CONSENT_LEVEL: ConsentLevel;
49
-
50
- /** what level of consent is required to send events to gtag */
51
- readonly GTAG_EVENT_CONSENT_LEVEL: ConsentLevel;
52
-
53
- /** what level of consent is required to send depict tracking with dsid/user_id */
54
- readonly DEPICT_TRACKING_CONSENT_LEVEL: ConsentLevel;
55
- }
56
- }
57
-
58
- // NOTE: Use `bundle-text` [details](https://parceljs.org/features/bundle-inlining/#inlining-a-bundle-as-text)
59
- // instead of `fs.readFileSync`, unless bundling svg's, or something else where you want to make sure that an
60
- // asset is bundled without ANY transformations whatsoevere.
61
- //
62
- // Parcel has a a feature where `fs.readFileSync` can be used to load file contents.
63
- // The call to `readFileSync` is inlined to the file contents at bundle-time.
64
- // Details: https://parceljs.org/features/node-emulation/#inlining-fs.readfilesync
65
- declare module "fs" {
66
- // setting encoding to "utf-8" ensures that no processing is done to the asset (we think).
67
- // Therefore we make it a type error to not do this.
68
- function readFileSync(path: string, encoding: "utf-8"): string;
69
- }