graphdb-workbench 3.3.2-RC1 → 3.3.2-TR1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/dist/13231.9b625e487e6385faa36f.bundle.js +2 -0
  2. package/dist/13231.9b625e487e6385faa36f.bundle.js.map +1 -0
  3. package/dist/21015.68c7c667ef64ad8e8e0d.bundle.js +2 -0
  4. package/dist/21015.68c7c667ef64ad8e8e0d.bundle.js.map +1 -0
  5. package/dist/{38644.b26373c67b397f88f3b4.bundle.js → 38644.37a8cd71112da94401d9.bundle.js} +2 -2
  6. package/dist/{38644.b26373c67b397f88f3b4.bundle.js.map → 38644.37a8cd71112da94401d9.bundle.js.map} +1 -1
  7. package/dist/{39518.e7e7353947905592bfea.bundle.js → 39518.2871b32c37b20075dba3.bundle.js} +2 -2
  8. package/dist/{39518.e7e7353947905592bfea.bundle.js.map → 39518.2871b32c37b20075dba3.bundle.js.map} +1 -1
  9. package/dist/39874.47a6948df3520a7bf37a.bundle.js +2 -0
  10. package/dist/39874.47a6948df3520a7bf37a.bundle.js.map +1 -0
  11. package/dist/60560.275a89ab1375e91de0aa.bundle.js +2 -0
  12. package/dist/60560.275a89ab1375e91de0aa.bundle.js.map +1 -0
  13. package/dist/{67888.367b7acbeaf58426d4f1.bundle.js → 67888.b75d9678cf65cd82f065.bundle.js} +2 -2
  14. package/dist/{67888.367b7acbeaf58426d4f1.bundle.js.map → 67888.b75d9678cf65cd82f065.bundle.js.map} +1 -1
  15. package/dist/7815.f09f8d6953d2c964e04d.bundle.js +2 -0
  16. package/dist/7815.f09f8d6953d2c964e04d.bundle.js.map +1 -0
  17. package/dist/78681.0cfa1e86d4dac1b7e7e8.bundle.js +2 -0
  18. package/dist/78681.0cfa1e86d4dac1b7e7e8.bundle.js.map +1 -0
  19. package/dist/{82926.4736d2184864699ddcdb.bundle.js → 82926.99231caacc379c66487a.bundle.js} +2 -2
  20. package/dist/{82926.4736d2184864699ddcdb.bundle.js.map → 82926.99231caacc379c66487a.bundle.js.map} +1 -1
  21. package/dist/94229.47dbdba202106c61dff1.bundle.js.map +1 -1
  22. package/dist/{99448.810956b817f8cf062851.bundle.js → 99448.272a4ba1ce8032167bea.bundle.js} +2 -2
  23. package/dist/{99448.810956b817f8cf062851.bundle.js.map → 99448.272a4ba1ce8032167bea.bundle.js.map} +1 -1
  24. package/dist/api/models/cookie/cookie-consent.d.ts +14 -0
  25. package/dist/api/models/cookie/index.d.ts +1 -1
  26. package/dist/api/models/security/authenticated-user.d.ts +0 -2
  27. package/dist/api/models/users/app-settings.d.ts +2 -2
  28. package/dist/api/ontotext-workbench-api.d.ts +1 -3
  29. package/dist/api/ontotext-workbench-api.js +1 -1
  30. package/dist/api/ontotext-workbench-api.js.map +1 -1
  31. package/dist/api/services/cookie/cookie.service.d.ts +7 -34
  32. package/dist/api/services/cookie/index.d.ts +0 -3
  33. package/dist/api/services/security/auth-strategies/tests/provider-response-mocks.d.ts +2 -2
  34. package/dist/api/services/security/security-context.service.d.ts +0 -6
  35. package/dist/api/services/users/response/user-response.d.ts +1 -1
  36. package/dist/api/services/utils/index.d.ts +0 -1
  37. package/dist/api/services/window/window.service.d.ts +0 -6
  38. package/dist/index.html +9 -9
  39. package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +1 -1
  40. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  41. package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.html +1 -1
  42. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  43. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  44. package/dist/js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
  45. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +2 -2
  46. package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
  47. package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
  48. package/dist/js/angular/core/templates/editable-content/editable-content.html +1 -1
  49. package/dist/js/angular/core/templates/markdown-content/markdown-content.html +1 -1
  50. package/dist/js/angular/core/templates/search-resource-input.html +1 -1
  51. package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
  52. package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
  53. package/dist/js/angular/graphql/templates/graphql-playground.html +2 -2
  54. package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +1 -1
  55. package/dist/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html +1 -1
  56. package/dist/js/angular/graphql/templates/modal/import-endpoint-definition-modal.html +1 -1
  57. package/dist/js/angular/security/templates/user.html +2 -5
  58. package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
  59. package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
  60. package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
  61. package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
  62. package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
  63. package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
  64. package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +3 -3
  65. package/dist/js/angular/ttyg/templates/modal/external-integration-configuration-modal.html +1 -1
  66. package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
  67. package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
  68. package/dist/{legacyWorkbench.0128b90d53e9f14490a3.js → legacyWorkbench.88e1d4d209e51c6f9b65.js} +3 -3
  69. package/dist/{legacyWorkbench.0128b90d53e9f14490a3.js.map → legacyWorkbench.88e1d4d209e51c6f9b65.js.map} +1 -1
  70. package/dist/{main.44e04f2cf0ab7d48b25b.js → main.1be0fc11ab24b99f8800.js} +3 -3
  71. package/dist/main.1be0fc11ab24b99f8800.js.map +1 -0
  72. package/dist/pages/aclmanagement.html +1 -1
  73. package/dist/pages/autocomplete.html +1 -1
  74. package/dist/pages/choose-repository-type.html +1 -1
  75. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  76. package/dist/pages/create-index.html +1 -1
  77. package/dist/pages/dependencies.html +1 -1
  78. package/dist/pages/domainRangeInfo.html +2 -2
  79. package/dist/pages/edit.html +1 -1
  80. package/dist/pages/explore.html +1 -1
  81. package/dist/pages/export.html +1 -1
  82. package/dist/pages/find.html +1 -1
  83. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  84. package/dist/pages/graphs-visualizations.html +7 -7
  85. package/dist/pages/guides.html +1 -1
  86. package/dist/pages/home.html +1 -1
  87. package/dist/pages/import.html +2 -2
  88. package/dist/pages/jdbc-create.html +1 -1
  89. package/dist/pages/jdbc.html +1 -1
  90. package/dist/pages/monitor/backup-and-restore.html +1 -1
  91. package/dist/pages/monitor/queries.html +1 -1
  92. package/dist/pages/monitor/resources.html +1 -1
  93. package/dist/pages/namespaces.html +2 -2
  94. package/dist/pages/plugins.html +1 -1
  95. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  96. package/dist/pages/rdfrank.html +2 -2
  97. package/dist/pages/repositories.html +1 -1
  98. package/dist/pages/repository.html +1 -1
  99. package/dist/pages/similarity-indexes.html +1 -1
  100. package/dist/pages/sparql-editor.html +1 -1
  101. package/dist/pages/sparql-template-create.html +1 -1
  102. package/dist/pages/sparql-templates.html +1 -1
  103. package/dist/pages/ux-test1.html +2 -2
  104. package/dist/pages/webapi.html +2 -2
  105. package/dist/res/swagger5/index.html +11 -11
  106. package/dist/shared-components/cjs/loader.cjs.js +1 -1
  107. package/dist/shared-components/cjs/onto-cookie-consent_2.cjs.entry.js +1 -1
  108. package/dist/shared-components/cjs/onto-dialog_2.cjs.entry.js +1 -1
  109. package/dist/shared-components/cjs/onto-footer_5.cjs.entry.js +1 -1
  110. package/dist/shared-components/cjs/onto-layout.cjs.entry.js +1 -1
  111. package/dist/shared-components/cjs/shared-components.cjs.js +1 -1
  112. package/dist/shared-components/collection/components/dialogs/onto-cookie-policy-dialog/onto-cookie-policy-dialog.js +1 -1
  113. package/dist/shared-components/collection/components/dialogs/onto-dialog.js +1 -1
  114. package/dist/shared-components/collection/components/onto-cookie-consent/onto-cookie-consent.css +1 -1
  115. package/dist/shared-components/collection/components/onto-cookie-consent/onto-cookie-consent.js +1 -1
  116. package/dist/shared-components/collection/components/onto-footer/onto-footer.js +1 -1
  117. package/dist/shared-components/collection/models/dialog/onto-dialog.js +1 -0
  118. package/dist/shared-components/esm/loader.js +1 -1
  119. package/dist/shared-components/esm/onto-cookie-consent_2.entry.js +1 -1
  120. package/dist/shared-components/esm/onto-dialog_2.entry.js +1 -1
  121. package/dist/shared-components/esm/onto-footer_5.entry.js +1 -1
  122. package/dist/shared-components/esm/onto-layout.entry.js +1 -1
  123. package/dist/shared-components/esm/shared-components.js +1 -1
  124. package/dist/shared-components/shared-components/p-2075209c.entry.js +1 -0
  125. package/dist/shared-components/shared-components/p-30e4880f.entry.js +1 -0
  126. package/dist/shared-components/shared-components/p-413b3789.entry.js +1 -0
  127. package/dist/shared-components/shared-components/p-67199a46.entry.js +1 -0
  128. package/dist/shared-components/shared-components/shared-components.esm.js +1 -1
  129. package/dist/shared-components/types/components/dialogs/onto-cookie-policy-dialog/onto-cookie-policy-dialog.d.ts +7 -31
  130. package/dist/shared-components/types/components/onto-cookie-consent/onto-cookie-consent.d.ts +2 -2
  131. package/dist/shared-components/types/components/onto-footer/onto-footer.d.ts +2 -9
  132. package/dist/shared-components/types/components.d.ts +8 -17
  133. package/dist/shared-components/types/models/dialog/dialog-handler.d.ts +0 -4
  134. package/dist/shared-components/types/models/dialog/onto-dialog.d.ts +4 -0
  135. package/package.json +1 -1
  136. package/dist/13231.d7107e7549453805e13a.bundle.js +0 -2
  137. package/dist/13231.d7107e7549453805e13a.bundle.js.map +0 -1
  138. package/dist/21015.ea34b563b4149ad0975e.bundle.js +0 -2
  139. package/dist/21015.ea34b563b4149ad0975e.bundle.js.map +0 -1
  140. package/dist/39874.710e94f211579215f997.bundle.js +0 -2
  141. package/dist/39874.710e94f211579215f997.bundle.js.map +0 -1
  142. package/dist/60560.6ba1b091a34af6c00770.bundle.js +0 -2
  143. package/dist/60560.6ba1b091a34af6c00770.bundle.js.map +0 -1
  144. package/dist/7815.2aec5ebbcd434f5582ff.bundle.js +0 -2
  145. package/dist/7815.2aec5ebbcd434f5582ff.bundle.js.map +0 -1
  146. package/dist/78681.9e1d4e064e9e1fb5fb21.bundle.js +0 -2
  147. package/dist/78681.9e1d4e064e9e1fb5fb21.bundle.js.map +0 -1
  148. package/dist/api/models/cookie/cookie-options.d.ts +0 -17
  149. package/dist/api/models/tracking/cookie-consent.d.ts +0 -39
  150. package/dist/api/models/tracking/index.d.ts +0 -1
  151. package/dist/api/services/cookie/browser-cookie-store.d.ts +0 -19
  152. package/dist/api/services/cookie/cookie-builder.d.ts +0 -77
  153. package/dist/api/services/cookie/cookie-store.d.ts +0 -16
  154. package/dist/api/services/cookie/error/invalid-cookie-expiration.d.ts +0 -8
  155. package/dist/api/services/cookie/test/cookie-builder.spec.d.ts +0 -1
  156. package/dist/api/services/cookie/test/in-memory-cookie-store.d.ts +0 -11
  157. package/dist/api/services/tracking/google-analytics-cookie.service.d.ts +0 -50
  158. package/dist/api/services/tracking/index.d.ts +0 -4
  159. package/dist/api/services/tracking/installation-cookie.service.d.ts +0 -37
  160. package/dist/api/services/tracking/test/tracking-storage.service.spec.d.ts +0 -1
  161. package/dist/api/services/tracking/test/tracking.service.spec.d.ts +0 -1
  162. package/dist/api/services/tracking/tracking-storage.service.d.ts +0 -27
  163. package/dist/api/services/tracking/tracking.service.d.ts +0 -56
  164. package/dist/api/services/utils/date-util.d.ts +0 -11
  165. package/dist/main.44e04f2cf0ab7d48b25b.js.map +0 -1
  166. package/dist/shared-components/cjs/function-utils-WB47AWpR.js +0 -1
  167. package/dist/shared-components/esm/function-utils-D1ZpXQQS.js +0 -1
  168. package/dist/shared-components/shared-components/p-598d33d7.entry.js +0 -1
  169. package/dist/shared-components/shared-components/p-6d34b2cb.entry.js +0 -1
  170. package/dist/shared-components/shared-components/p-74888633.entry.js +0 -1
  171. package/dist/shared-components/shared-components/p-D1ZpXQQS.js +0 -1
  172. package/dist/shared-components/shared-components/p-b5d4081d.entry.js +0 -1
  173. /package/dist/{legacyWorkbench.0128b90d53e9f14490a3.js.LICENSE.txt → legacyWorkbench.88e1d4d209e51c6f9b65.js.LICENSE.txt} +0 -0
  174. /package/dist/{main.44e04f2cf0ab7d48b25b.js.LICENSE.txt → main.1be0fc11ab24b99f8800.js.LICENSE.txt} +0 -0
@@ -1,39 +0,0 @@
1
- /**
2
- * Represents the user's consent for various types of cookies.
3
- */
4
- export declare class CookieConsent {
5
- /** Indicates whether the cookie policy has been accepted. */
6
- policyAccepted?: boolean;
7
- /** Indicates consent for statistical cookies. */
8
- statistic?: boolean;
9
- /** Indicates consent for third-party cookies. */
10
- thirdParty?: boolean;
11
- /** Epoch timestamp of last update in seconds. */
12
- updatedAt?: number;
13
- constructor(data?: Partial<CookieConsent>);
14
- /**
15
- * Checks if the cookie consent status has been explicitly set by the user.
16
- * @return true if the policyAccepted property is defined, false otherwise.
17
- */
18
- hasChanged(): boolean;
19
- /**
20
- * Predefined default: policy not accepted, but statistic and third-party cookies are allowed.
21
- * Equivalent to: new CookieConsent(undefined, true, true)
22
- * @return A new CookieConsent instance with policyAccepted undefined, statistic true, and thirdParty true.
23
- */
24
- static NOT_ACCEPTED_WITH_TRACKING(): CookieConsent;
25
- /**
26
- * Predefined default: policy accepted, no statistic or third-party cookies allowed.
27
- * Equivalent to: new CookieConsent(true, false, false)
28
- * @return A new CookieConsent instance with policyAccepted true, statistic false, and thirdParty false.
29
- */
30
- static ACCEPTED_NO_TRACKING(): CookieConsent;
31
- /**
32
- * Creates a CookieConsent instance from a JSON object.
33
- * If values are missing in the JSON object, they will remain undefined.
34
- *
35
- * @param json - The JSON object to initialize the CookieConsent instance.
36
- * @return A new CookieConsent instance with values set from the JSON object.
37
- */
38
- static fromJSON(json: Partial<CookieConsent>): CookieConsent;
39
- }
@@ -1 +0,0 @@
1
- export { CookieConsent } from './cookie-consent';
@@ -1,19 +0,0 @@
1
- import { CookieStore } from './cookie-store';
2
- /**
3
- * Implementation of {@link CookieStore} that interacts with the browser's `document.cookie` API.
4
- */
5
- export declare class BrowserCookieStore implements CookieStore {
6
- /**
7
- * Reads the current cookies from the browser's `document.cookie` and returns them as a string.
8
- * @return A string containing all cookies in the format "key=value; key2=value2; ...".
9
- */
10
- read(): string;
11
- /**
12
- * Writes a cookie string to the browser's `document.cookie`, which will set or update the cookie in the browser.
13
- * @param cookie - A string representing the cookie to be set, in the format "key=value; attribute1; attribute2; ...".
14
- * For example: "sessionId=abc123; Path=/; Expires=Wed, 21 Oct 2025 07:28:00 GMT".
15
- * The cookie string can include optional attributes such as Path, Expires, Domain, Secure, HttpOnly, and SameSite.
16
- * The `CookieBuilder` class can be used to construct properly formatted cookie strings with these attributes.
17
- */
18
- write(cookie: string): void;
19
- }
@@ -1,77 +0,0 @@
1
- import { CookieOptions } from '../../models/cookie';
2
- /**
3
- * CookieBuilder class for constructing cookies with optional attributes (expiration, path, domain, etc.).
4
- */
5
- export declare class CookieBuilder {
6
- private static readonly DEFAULT_PATH;
7
- private static readonly MILLISECONDS_PER_DAY;
8
- key: string;
9
- value: string;
10
- expires?: string;
11
- path: string;
12
- domain?: string;
13
- secure?: boolean;
14
- httpOnly?: boolean;
15
- sameSite?: string;
16
- /**
17
- * Constructs a CookieBuilder instance with the given key, value, and options.
18
- *
19
- * @param key - The name of the cookie to set.
20
- * @param value - The value of the cookie to set.
21
- * @param [options={}] - Optional parameters for cookie settings (expiration, path, domain, etc.).
22
- */
23
- constructor(key: string, value: string, options?: CookieOptions);
24
- /**
25
- * Sets the options for the cookie.
26
- *
27
- * @param options - Object containing optional cookie settings.
28
- * @return Returns the current instance for method chaining.
29
- */
30
- setOptions(options: CookieOptions): this;
31
- /**
32
- * Sets the expiration date for the cookie in days.
33
- *
34
- * @param expiration - Number of days until the cookie expires.
35
- * @return Returns the current instance for method chaining.
36
- */
37
- setExpiration(expiration: number): this;
38
- /**
39
- * Sets the path where the cookie is available.
40
- *
41
- * @param path - The URL path for the cookie.
42
- * @return Returns the current instance for method chaining.
43
- */
44
- setPath(path?: string): this;
45
- /**
46
- * Sets the domain where the cookie is available.
47
- *
48
- * @param domain - The domain for the cookie.
49
- * @return Returns the current instance for method chaining.
50
- */
51
- setDomain(domain: string): this;
52
- /**
53
- * Marks the cookie as secure (sent over HTTPS only).
54
- *
55
- * @return Returns the current instance for method chaining.
56
- */
57
- setSecure(): this;
58
- /**
59
- * Marks the cookie as HttpOnly (inaccessible via JavaScript).
60
- *
61
- * @return Returns the current instance for method chaining.
62
- */
63
- setHttpOnly(): this;
64
- /**
65
- * Sets the SameSite attribute for the cookie.
66
- *
67
- * @param sameSite - SameSite attribute ('Strict', 'Lax', 'None').
68
- * @return Returns the current instance for method chaining.
69
- */
70
- setSameSite(sameSite: string): this;
71
- /**
72
- * Builds the final cookie string with all set attributes.
73
- *
74
- * @return - The complete cookie string.
75
- */
76
- build(): string;
77
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * Interface for cookie store implementations.
3
- * Defines methods for reading and writing cookies, abstracting away the underlying storage mechanism.
4
- */
5
- export interface CookieStore {
6
- /**
7
- * Reads the current cookies from the store and returns them as a string.
8
- * @return A string containing all cookies in the format "key=value; key2=value2; ...".
9
- */
10
- read(): string;
11
- /**
12
- * Writes a cookie string to the store, which will set or update the cookie in the underlying storage mechanism.
13
- * @param cookie - A string representing the cookie to be set, in the format "key=value; attribute1; attribute2; ...".
14
- */
15
- write(cookie: string): void;
16
- }
@@ -1,8 +0,0 @@
1
- import { ErrorBase } from '../../../error';
2
- /**
3
- * Custom error class for handling invalid cookie expiration values.
4
- * This error is thrown when an invalid expiration value (e.g., Infinity, NaN) is provided for a cookie.
5
- */
6
- export declare class InvalidCookieExpiration extends ErrorBase {
7
- constructor(message: string);
8
- }
@@ -1,11 +0,0 @@
1
- import { CookieStore } from '../cookie-store';
2
- /**
3
- * In-memory implementation of {@link CookieStore} that simulates browser cookie semantics.
4
- * Intended for use in tests and server-side / non-browser environments.
5
- */
6
- export declare class InMemoryCookieStore implements CookieStore {
7
- private readonly cookies;
8
- read(): string;
9
- write(cookie: string): void;
10
- clear(): void;
11
- }
@@ -1,50 +0,0 @@
1
- import { Service } from '../../providers/service/service';
2
- declare global {
3
- interface Window {
4
- dataLayer?: Record<string, unknown>[];
5
- google_tag_manager?: Record<string, unknown>;
6
- google_tag_data?: Record<string, unknown>;
7
- }
8
- }
9
- export declare class GoogleAnalyticsCookieService implements Service {
10
- private readonly cookieService;
11
- private isSettingUp;
12
- /**
13
- * Adds the Google Tag Manager (GTM) script to the document's head if it is not already present.
14
- * This function creates a new script element for GTM and appends it to the document's head.
15
- */
16
- setIfAbsent(): void;
17
- /**
18
- * Removes all Google Analytics-related scripts and cookies from the document.
19
- */
20
- remove(): void;
21
- /**
22
- * Retrieves all cookies with a specified prefix and removes each of them.
23
- */
24
- removeGoogleAnalyticsCookies(): void;
25
- /**
26
- * Disables the Google Tag Manager (GTM) by preventing any further events from being pushed to the `dataLayer`.
27
- * This function also removes all existing GTM script elements from the document's head and body.
28
- *
29
- * Since this is a Single Page Application (SPA), removing and re-adding scripts must happen dynamically without
30
- * reloading the window. This method is used to remove GTM scripts when tracking is disallowed, rather than
31
- * performing a page reload, which is generally avoided
32
- *
33
- * 1. Disables the `dataLayer.push` method to prevent further GTM events from being tracked.
34
- * 2. Searches for and removes any `<script>` elements that include 'googletagmanager' in their `src` or script content.
35
- */
36
- private removeGoogleAnalyticsScripts;
37
- /**
38
- * Checks if a Google Tag Manager (GTM) script is already present in the document.
39
- *
40
- * When the GTM script is injected, it dynamically adds additional scripts depending on how many tags
41
- * are configured within your GTM container. These scripts are usually inserted into the `<head>` section,
42
- * but it’s better to search through the entire document to ensure all related GTM scripts are found.
43
- *
44
- * This function searches through all `<script>` elements in the document and returns `true` if any script
45
- * has a `src` attribute that contains 'googletagmanager'. It returns `false` otherwise.
46
- *
47
- * @return Returns `true` if a GTM script is found, otherwise `false`.
48
- */
49
- private gtmScriptExists;
50
- }
@@ -1,4 +0,0 @@
1
- export { TrackingService } from './tracking.service';
2
- export { TrackingStorageService } from './tracking-storage.service';
3
- export { InstallationCookieService } from './installation-cookie.service';
4
- export { GoogleAnalyticsCookieService } from './google-analytics-cookie.service';
@@ -1,37 +0,0 @@
1
- import { Service } from '../../providers/service/service';
2
- /**
3
- * Service to manage installation-specific cookies for the application.
4
- * It checks if a specific installation cookie exists, sets it if necessary,
5
- * retrieves it, or deletes it when required.
6
- *
7
- * @param {Object} CookieService - AngularJS service to manage cookies.
8
- * @return {Object} - Returns an object with methods to get, set, setIfAbsent, and remove installation cookies.
9
- */
10
- export declare class InstallationCookieService implements Service {
11
- private readonly cookieService;
12
- private readonly timeProvider;
13
- /**
14
- * Checks if the installation cookie exists and retrieves its value.
15
- *
16
- * @return The installation cookie value if it exists, otherwise undefined.
17
- */
18
- get(): string | undefined;
19
- /**
20
- * Creates and sets an installation cookie with a specific installation ID and the current timestamp.
21
- * The cookie value is constructed as `version.installationId.timestamp`, and it is set to expire
22
- * in 400 days (based on the `INSTALLATION_COOKIE_EXPIRATION_IN_DAYS` constant).
23
- *
24
- * @param installationId - The unique installation ID to be stored in the cookie.
25
- */
26
- set(installationId: string): void;
27
- /**
28
- * Sets the installation cookie if it does not already exist.
29
- *
30
- * @param installationId - The unique installation ID to be stored in the cookie.
31
- */
32
- setIfAbsent(installationId: string): void;
33
- /**
34
- * Deletes the installation cookie by removing it from the browser.
35
- */
36
- remove(): void;
37
- }
@@ -1,27 +0,0 @@
1
- import { LocalStorageService } from '../storage';
2
- import { CookieConsent } from '../../models/tracking';
3
- export declare class TrackingStorageService extends LocalStorageService {
4
- readonly NAMESPACE = "tracking";
5
- readonly COOKIE_CONSENT = "cookieConsent";
6
- readonly LEGACY_COOKIE_CONSENT = "cookie-consent";
7
- private readonly logger;
8
- /**
9
- * Stores a value in the local storage under a key that is prefixed with the service's namespace to avoid collisions.
10
- * @param key The key under which to store the value (without namespace prefix).
11
- * @param value The value to store as a string.
12
- */
13
- set(key: string, value: string): void;
14
- /**
15
- * Saves the user's cookie consent preferences to local storage. The preferences are serialized as a JSON string.
16
- * @param cookieConsent The cookie consent preferences to save, provided as a partial object. Only the specified
17
- * properties will be updated in storage.
18
- */
19
- setCookieConsent(cookieConsent: Partial<CookieConsent>): void;
20
- /**
21
- * Retrieves the user's cookie consent preferences from local storage. If legacy data is found under the old key, it
22
- * will be migrated to the new key and returned. If no data is found, null is returned.
23
- * @return The user's cookie consent preferences, or null if no preferences are stored.
24
- */
25
- getCookieConsent(): CookieConsent | null;
26
- private migrateLegacyCookieConsent;
27
- }
@@ -1,56 +0,0 @@
1
- import { Service } from '../../providers/service/service';
2
- import { CookieConsent } from '../../models/tracking';
3
- export declare const COOKIE_CONSENT_CHANGED_EVENT = "cookie-consent-changed-event";
4
- /**
5
- * Service for managing user tracking based on their cookie consent preferences.
6
- */
7
- export declare class TrackingService implements Service {
8
- private readonly securityService;
9
- private readonly securityContextService;
10
- private readonly authenticationService;
11
- private readonly authorizationService;
12
- private readonly trackingStorageService;
13
- private readonly licenseService;
14
- private readonly licenseContextService;
15
- private readonly installationCookieService;
16
- private readonly googleAnalyticsCookieService;
17
- private readonly eventEmitter;
18
- /**
19
- * Determines whether tracking is allowed based on the current license and development mode.
20
- *
21
- * @return Returns `true` if tracking is allowed, otherwise returns `false`.
22
- */
23
- isTrackingAllowed(): boolean;
24
- /**
25
- * Accepts the cookie policy for the authenticated user.
26
- * Consent is persisted either on server or in local storage depending on the user's authentication status and free
27
- * access settings.
28
- * If the user is authenticated or security is OFF, the consent is stored in the backend.
29
- * If the user is not authenticated and security is ON, regardless the free access status, the consent is stored in
30
- * local storage.
31
- *
32
- * @returns A promise that resolves when the request to the backend has passed.
33
- */
34
- acceptCookiePolicy(): Promise<void>;
35
- /**
36
- * Retrieves the current cookie consent preferences for the user
37
- * - If principal has no username => read local storage.
38
- * - If none in local storage => return defaults.
39
- * - If principal has a username => read from principal.appSettings.
40
- * @return The current cookie consent preferences for the user.
41
- */
42
- getCookieConsent(): CookieConsent;
43
- /**
44
- * Checks if tracking is allowed and, if so, fetches the current user consent,
45
- * then sets or removes tracking cookies accordingly.
46
- * @returns A promise that resolves when the tracking consent has been applied.
47
- */
48
- applyTrackingConsent(): Promise<void> | undefined;
49
- /**
50
- * Removes all tracking-related cookies and scripts.
51
- * This function is called when tracking is not allowed by the license
52
- * or when the user has opted out of all tracking options.
53
- */
54
- cleanUpTracking(): void;
55
- private updateUserCookieConsent;
56
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Utility class for date-related operations.
3
- */
4
- export declare class DateUtil {
5
- /**
6
- * Returns the current timestamp in milliseconds since the Unix epoch.
7
- *
8
- * @return The current timestamp in milliseconds.
9
- */
10
- static now(): number;
11
- }