@api-client/core 0.6.18 → 0.6.22
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/build/browser.d.ts +2 -0
- package/build/browser.js +2 -0
- package/build/browser.js.map +1 -1
- package/build/index.d.ts +2 -0
- package/build/index.js +2 -0
- package/build/index.js.map +1 -1
- package/build/legacy.d.ts +39 -0
- package/build/legacy.js +40 -0
- package/build/legacy.js.map +1 -0
- package/build/src/amf/Parsing.d.ts +46 -0
- package/build/src/amf/Parsing.js +2 -0
- package/build/src/amf/Parsing.js.map +1 -0
- package/build/src/events/EventTypes.d.ts +6 -0
- package/build/src/events/EventTypes.js +2 -0
- package/build/src/events/EventTypes.js.map +1 -1
- package/build/src/events/Events.d.ts +5 -3
- package/build/src/events/Events.js +2 -0
- package/build/src/events/Events.js.map +1 -1
- package/build/src/events/amf/AmfEventTypes.d.ts +6 -0
- package/build/src/events/amf/AmfEventTypes.js +7 -0
- package/build/src/events/amf/AmfEventTypes.js.map +1 -0
- package/build/src/events/amf/AmfEvents.d.ts +34 -0
- package/build/src/events/amf/AmfEvents.js +59 -0
- package/build/src/events/amf/AmfEvents.js.map +1 -0
- package/build/src/events/authorization/AuthorizationEvents.d.ts +8 -8
- package/build/src/events/authorization/AuthorizationEvents.js +8 -8
- package/build/src/events/authorization/AuthorizationEvents.js.map +1 -1
- package/build/src/events/cookies/CookieEvents.d.ts +8 -8
- package/build/src/events/cookies/CookieEvents.js +8 -8
- package/build/src/events/cookies/CookieEvents.js.map +1 -1
- package/build/src/events/encryption/EncryptionEvents.d.ts +4 -4
- package/build/src/events/encryption/EncryptionEvents.js +4 -4
- package/build/src/events/encryption/EncryptionEvents.js.map +1 -1
- package/build/src/events/environment/EnvironmentEvents.d.ts +2 -2
- package/build/src/events/environment/EnvironmentEvents.js +2 -2
- package/build/src/events/environment/EnvironmentEvents.js.map +1 -1
- package/build/src/events/models/ClientCertificateEvents.d.ts +11 -11
- package/build/src/events/models/ClientCertificateEvents.js +11 -11
- package/build/src/events/models/ClientCertificateEvents.js.map +1 -1
- package/build/src/events/process/ProcessEvents.d.ts +6 -6
- package/build/src/events/process/ProcessEvents.js +6 -6
- package/build/src/events/process/ProcessEvents.js.map +1 -1
- package/build/src/events/reporting/ReportingEvents.d.ts +2 -2
- package/build/src/events/reporting/ReportingEvents.js +2 -2
- package/build/src/events/reporting/ReportingEvents.js.map +1 -1
- package/build/src/events/telemetry/TelemetryEvents.d.ts +6 -6
- package/build/src/events/telemetry/TelemetryEvents.js +6 -6
- package/build/src/events/telemetry/TelemetryEvents.js.map +1 -1
- package/build/src/events/transport/TransportEvents.d.ts +3 -3
- package/build/src/events/transport/TransportEvents.js +3 -3
- package/build/src/events/transport/TransportEvents.js.map +1 -1
- package/build/src/mocking/lib/Url.js +1 -1
- package/build/src/models/AuthorizationData.d.ts +2 -0
- package/build/src/models/AuthorizationData.js +10 -3
- package/build/src/models/AuthorizationData.js.map +1 -1
- package/build/src/models/ClientCertificate.js +1 -1
- package/build/src/models/ClientCertificate.js.map +1 -1
- package/build/src/models/HostRule.d.ts +8 -0
- package/build/src/models/HostRule.js +10 -1
- package/build/src/models/HostRule.js.map +1 -1
- package/build/src/models/HttpProject.js +3 -0
- package/build/src/models/HttpProject.js.map +1 -1
- package/build/src/models/Url.d.ts +4 -4
- package/build/src/models/Url.js +6 -6
- package/build/src/models/Url.js.map +1 -1
- package/build/src/models/arc/ArcHttpRequest.d.ts +39 -0
- package/build/src/models/arc/ArcHttpRequest.js +106 -0
- package/build/src/models/arc/ArcHttpRequest.js.map +1 -0
- package/build/src/models/arc/ArcProject.d.ts +621 -0
- package/build/src/models/arc/ArcProject.js +1242 -0
- package/build/src/models/arc/ArcProject.js.map +1 -0
- package/build/src/runtime/actions/runnable/DeleteCookieRunnable.js +2 -2
- package/build/src/runtime/actions/runnable/DeleteCookieRunnable.js.map +1 -1
- package/build/src/runtime/actions/runnable/SetCookieRunnable.js +1 -1
- package/build/src/runtime/actions/runnable/SetCookieRunnable.js.map +1 -1
- package/build/src/runtime/actions/runnable/SetVariableRunnable.js +1 -1
- package/build/src/runtime/actions/runnable/SetVariableRunnable.js.map +1 -1
- package/build/src/runtime/modules/RequestCookies.js +2 -2
- package/build/src/runtime/modules/RequestCookies.js.map +1 -1
- package/legacy.ts +41 -0
- package/package.json +3 -3
- package/src/amf/Parsing.ts +49 -0
- package/src/events/EventTypes.ts +2 -0
- package/src/events/Events.ts +2 -0
- package/src/events/amf/AmfEventTypes.ts +6 -0
- package/src/events/amf/AmfEvents.ts +63 -0
- package/src/events/authorization/AuthorizationEvents.ts +8 -8
- package/src/events/cookies/CookieEvents.ts +8 -8
- package/src/events/encryption/EncryptionEvents.ts +4 -4
- package/src/events/environment/EnvironmentEvents.ts +2 -2
- package/src/events/models/ClientCertificateEvents.ts +11 -11
- package/src/events/process/ProcessEvents.ts +6 -6
- package/src/events/reporting/ReportingEvents.ts +2 -2
- package/src/events/telemetry/TelemetryEvents.ts +6 -6
- package/src/events/transport/TransportEvents.ts +3 -3
- package/src/mocking/lib/Url.ts +1 -1
- package/src/models/AuthorizationData.ts +10 -2
- package/src/models/ClientCertificate.ts +2 -2
- package/src/models/HostRule.ts +17 -1
- package/src/models/HttpProject.ts +3 -0
- package/src/models/Url.ts +10 -10
- package/src/models/arc/ArcHttpRequest.ts +121 -0
- package/src/models/arc/ArcProject.ts +1605 -0
- package/src/models/arc/readme.md +3 -0
- package/src/runtime/actions/runnable/DeleteCookieRunnable.ts +2 -2
- package/src/runtime/actions/runnable/SetCookieRunnable.ts +1 -1
- package/src/runtime/actions/runnable/SetVariableRunnable.ts +1 -1
- package/src/runtime/modules/RequestCookies.ts +2 -2
|
@@ -24,7 +24,7 @@ export class CookieEvents {
|
|
|
24
24
|
* @param domain The cookie domain
|
|
25
25
|
* @returns The list of project index objects.
|
|
26
26
|
*/
|
|
27
|
-
static async listDomain(
|
|
27
|
+
static async listDomain(domain, target = window) {
|
|
28
28
|
const detail = { domain };
|
|
29
29
|
const e = new ContextEvent(CookieEventTypes.listDomain, detail);
|
|
30
30
|
target.dispatchEvent(e);
|
|
@@ -35,7 +35,7 @@ export class CookieEvents {
|
|
|
35
35
|
* @param url The cookie URL
|
|
36
36
|
* @returns The list of project index objects.
|
|
37
37
|
*/
|
|
38
|
-
static async listUrl(
|
|
38
|
+
static async listUrl(url, target = window) {
|
|
39
39
|
const detail = { url };
|
|
40
40
|
const e = new ContextEvent(CookieEventTypes.listUrl, detail);
|
|
41
41
|
target.dispatchEvent(e);
|
|
@@ -47,7 +47,7 @@ export class CookieEvents {
|
|
|
47
47
|
* @param target The target on which to dispatch the event
|
|
48
48
|
* @param cookies The list of cookies to remove
|
|
49
49
|
*/
|
|
50
|
-
static async delete(
|
|
50
|
+
static async delete(cookies, target = window) {
|
|
51
51
|
const detail = { cookies };
|
|
52
52
|
const e = new ContextEvent(CookieEventTypes.delete, detail);
|
|
53
53
|
target.dispatchEvent(e);
|
|
@@ -60,7 +60,7 @@ export class CookieEvents {
|
|
|
60
60
|
* @param url The url associated with the cookie. Depending on the session mechanism the URL or the domain and the path is used.
|
|
61
61
|
* @param name The name of the cookie to remove. When not set all cookies are removed for the given URL.
|
|
62
62
|
*/
|
|
63
|
-
static async deleteUrl(
|
|
63
|
+
static async deleteUrl(url, name, target = window) {
|
|
64
64
|
const detail = { url, name };
|
|
65
65
|
const e = new ContextEvent(CookieEventTypes.deleteUrl, detail);
|
|
66
66
|
target.dispatchEvent(e);
|
|
@@ -73,7 +73,7 @@ export class CookieEvents {
|
|
|
73
73
|
* @param cookie A cookie to update
|
|
74
74
|
* @returns The change record of the updated cookie.
|
|
75
75
|
*/
|
|
76
|
-
static async update(
|
|
76
|
+
static async update(cookie, target = window) {
|
|
77
77
|
const e = new ContextUpdateEvent(CookieEventTypes.update, { item: cookie });
|
|
78
78
|
target.dispatchEvent(e);
|
|
79
79
|
return e.detail.result;
|
|
@@ -85,7 +85,7 @@ export class CookieEvents {
|
|
|
85
85
|
* @param cookies A list of cookies to update
|
|
86
86
|
* @returns The change record of the updated cookie.
|
|
87
87
|
*/
|
|
88
|
-
static async updateBulk(
|
|
88
|
+
static async updateBulk(cookies, target = window) {
|
|
89
89
|
const detail = { cookies };
|
|
90
90
|
const e = new ContextEvent(CookieEventTypes.updateBulk, detail);
|
|
91
91
|
target.dispatchEvent(e);
|
|
@@ -104,7 +104,7 @@ class StateEvents {
|
|
|
104
104
|
* @param target The target on which to dispatch the event
|
|
105
105
|
* @param cookie The schema of the removed cookie
|
|
106
106
|
*/
|
|
107
|
-
static delete(
|
|
107
|
+
static delete(cookie, target = window) {
|
|
108
108
|
const e = new CustomEvent(CookieEventTypes.State.delete, {
|
|
109
109
|
bubbles: true,
|
|
110
110
|
composed: true,
|
|
@@ -118,7 +118,7 @@ class StateEvents {
|
|
|
118
118
|
* @param target The target on which to dispatch the event
|
|
119
119
|
* @param record The change record.
|
|
120
120
|
*/
|
|
121
|
-
static update(
|
|
121
|
+
static update(record, target = window) {
|
|
122
122
|
const e = new ContextStateUpdateEvent(CookieEventTypes.State.update, record);
|
|
123
123
|
target.dispatchEvent(e);
|
|
124
124
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CookieEvents.js","sourceRoot":"","sources":["../../../../src/events/cookies/CookieEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAgC,YAAY,EAAuB,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAuBhJ,MAAM,OAAO,YAAY;IACvB;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAmB;QACtC,MAAM,MAAM,GAAgD,EAAE,CAAC;QAC/D,MAAM,CAAC,GAAG,IAAI,WAAW,CAAC,gBAAgB,CAAC,OAAO,EAAE;YAClD,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,IAAI;YAChB,MA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;IAED;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,OAAsB,EAAE,SAAsB,MAAM;QAC1E,MAAM,MAAM,GAAuB,EAAE,OAAO,EAAE,CAAC;QAC/C,MAAM,CAAC,GAAG,IAAI,YAAY,CAA2B,gBAAgB,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QAC1F,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,OAAO,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,MAAM,KAAK,KAAK;QACd,OAAO,WAAW,CAAC;IACrB,CAAC;CACF;AAED,MAAM,WAAW;IACf;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,MAAmB,EAAE,SAAsB,MAAM;QAC7D,MAAM,CAAC,GAAG,IAAI,WAAW,CAAgB,gBAAgB,CAAC,KAAK,CAAC,MAAM,EAAE;YACtE,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,EAAE,MAAM,EAAE;SACnB,CAAC,CAAC;QACH,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,MAAwC,EAAE,SAAsB,MAAM;QAClF,MAAM,CAAC,GAAG,IAAI,uBAAuB,CAAc,gBAAgB,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC1F,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;CACF"}
|
|
@@ -16,21 +16,21 @@ export declare class EncryptionEvents {
|
|
|
16
16
|
/**
|
|
17
17
|
* Dispatches an event handled by the encryption module to encrypt the data
|
|
18
18
|
*
|
|
19
|
-
* @param target A node on which to dispatch the event.
|
|
20
19
|
* @param data The data to encrypt
|
|
21
20
|
* @param passphrase The passphrase to use in 2-way data encryption
|
|
22
21
|
* @param method Encryption method to use
|
|
22
|
+
* @param target A node on which to dispatch the event.
|
|
23
23
|
* @returns Promise resolved to the encryption result
|
|
24
24
|
*/
|
|
25
|
-
static encrypt(
|
|
25
|
+
static encrypt(data: any, passphrase: string, method: string, target?: EventTarget): Promise<string | undefined>;
|
|
26
26
|
/**
|
|
27
27
|
* Dispatches an event handled by the encryption module to decrypt the data
|
|
28
28
|
*
|
|
29
|
-
* @param target A node on which to dispatch the event.
|
|
30
29
|
* @param data The data to decrypt
|
|
31
30
|
* @param passphrase The passphrase to use to decrypt the data
|
|
32
31
|
* @param method Method used to encrypt the data
|
|
32
|
+
* @param target A node on which to dispatch the event.
|
|
33
33
|
* @returns Promise resolved to the decrypted result
|
|
34
34
|
*/
|
|
35
|
-
static decrypt(
|
|
35
|
+
static decrypt(data: any, passphrase: string, method: string, target?: EventTarget): Promise<string | undefined>;
|
|
36
36
|
}
|
|
@@ -4,13 +4,13 @@ export class EncryptionEvents {
|
|
|
4
4
|
/**
|
|
5
5
|
* Dispatches an event handled by the encryption module to encrypt the data
|
|
6
6
|
*
|
|
7
|
-
* @param target A node on which to dispatch the event.
|
|
8
7
|
* @param data The data to encrypt
|
|
9
8
|
* @param passphrase The passphrase to use in 2-way data encryption
|
|
10
9
|
* @param method Encryption method to use
|
|
10
|
+
* @param target A node on which to dispatch the event.
|
|
11
11
|
* @returns Promise resolved to the encryption result
|
|
12
12
|
*/
|
|
13
|
-
static async encrypt(
|
|
13
|
+
static async encrypt(data, passphrase, method, target = window) {
|
|
14
14
|
const config = { data, passphrase, method };
|
|
15
15
|
const e = new ContextEvent(EncryptionEventTypes.encrypt, config);
|
|
16
16
|
target.dispatchEvent(e);
|
|
@@ -19,13 +19,13 @@ export class EncryptionEvents {
|
|
|
19
19
|
/**
|
|
20
20
|
* Dispatches an event handled by the encryption module to decrypt the data
|
|
21
21
|
*
|
|
22
|
-
* @param target A node on which to dispatch the event.
|
|
23
22
|
* @param data The data to decrypt
|
|
24
23
|
* @param passphrase The passphrase to use to decrypt the data
|
|
25
24
|
* @param method Method used to encrypt the data
|
|
25
|
+
* @param target A node on which to dispatch the event.
|
|
26
26
|
* @returns Promise resolved to the decrypted result
|
|
27
27
|
*/
|
|
28
|
-
static async decrypt(
|
|
28
|
+
static async decrypt(data, passphrase, method, target = window) {
|
|
29
29
|
const config = { data, passphrase, method };
|
|
30
30
|
const e = new ContextEvent(EncryptionEventTypes.decrypt, config);
|
|
31
31
|
target.dispatchEvent(e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EncryptionEvents.js","sourceRoot":"","sources":["../../../../src/events/encryption/EncryptionEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAiBhD,MAAM,OAAO,gBAAgB;IAC3B;;;;;;;;OAQG;IACH,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"EncryptionEvents.js","sourceRoot":"","sources":["../../../../src/events/encryption/EncryptionEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAiBhD,MAAM,OAAO,gBAAgB;IAC3B;;;;;;;;OAQG;IACH,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAS,EAAE,UAAkB,EAAE,MAAc,EAAE,SAAsB,MAAM;QAC9F,MAAM,MAAM,GAA2B,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;QACpE,MAAM,CAAC,GAAG,IAAI,YAAY,CAAiC,oBAAoB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACjG,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,OAAO,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAS,EAAE,UAAkB,EAAE,MAAc,EAAE,SAAsB,MAAM;QAC9F,MAAM,MAAM,GAA2B,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;QACpE,MAAM,CAAC,GAAG,IAAI,YAAY,CAAiC,oBAAoB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACjG,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,OAAO,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;CACF"}
|
|
@@ -6,10 +6,10 @@ export declare class EnvironmentEvents {
|
|
|
6
6
|
/**
|
|
7
7
|
* An event dispatched to set a variable in the current environment.
|
|
8
8
|
*
|
|
9
|
-
* @param target A node on which to dispatch the event.
|
|
10
9
|
* @param name Variable name
|
|
11
10
|
* @param value Variable value
|
|
11
|
+
* @param target A node on which to dispatch the event.
|
|
12
12
|
* @returns Nothing. The promise resolves when the variable is set.
|
|
13
13
|
*/
|
|
14
|
-
static set(
|
|
14
|
+
static set(name: string, value: string, target?: EventTarget): Promise<void>;
|
|
15
15
|
}
|
|
@@ -4,12 +4,12 @@ export class EnvironmentEvents {
|
|
|
4
4
|
/**
|
|
5
5
|
* An event dispatched to set a variable in the current environment.
|
|
6
6
|
*
|
|
7
|
-
* @param target A node on which to dispatch the event.
|
|
8
7
|
* @param name Variable name
|
|
9
8
|
* @param value Variable value
|
|
9
|
+
* @param target A node on which to dispatch the event.
|
|
10
10
|
* @returns Nothing. The promise resolves when the variable is set.
|
|
11
11
|
*/
|
|
12
|
-
static async set(
|
|
12
|
+
static async set(name, value, target = window) {
|
|
13
13
|
const detail = { name, value };
|
|
14
14
|
const e = new ContextEvent(EnvironmentEventTypes.set, detail);
|
|
15
15
|
target.dispatchEvent(e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentEvents.js","sourceRoot":"","sources":["../../../../src/events/environment/EnvironmentEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAOhD,MAAM,OAAO,iBAAiB;IAC5B;;;;;;;OAOG;IACH,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"EnvironmentEvents.js","sourceRoot":"","sources":["../../../../src/events/environment/EnvironmentEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAOhD,MAAM,OAAO,iBAAiB;IAC5B;;;;;;;OAOG;IACH,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAY,EAAE,KAAa,EAAE,SAAsB,MAAM;QACxE,MAAM,MAAM,GAAuB,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QACnD,MAAM,CAAC,GAAG,IAAI,YAAY,CAA2B,qBAAqB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QACxF,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,OAAO,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;CACF"}
|
|
@@ -4,35 +4,35 @@ export declare class ClientCertificateEvents {
|
|
|
4
4
|
/**
|
|
5
5
|
* Dispatches an event handled by the data store to read the client certificate.
|
|
6
6
|
*
|
|
7
|
-
* @param target A node on which to dispatch the event.
|
|
8
7
|
* @param id The id of the client certificate
|
|
8
|
+
* @param target A node on which to dispatch the event.
|
|
9
9
|
* @returns Promise resolved to a client certificate model.
|
|
10
10
|
*/
|
|
11
|
-
static read(
|
|
11
|
+
static read(id: string, target?: EventTarget): Promise<HttpCertificate | undefined>;
|
|
12
12
|
/**
|
|
13
13
|
* Dispatches an event to list the client certificates data.
|
|
14
14
|
*
|
|
15
|
-
* @param target A node on which to dispatch the event.
|
|
16
15
|
* @param opts Query options.
|
|
16
|
+
* @param target A node on which to dispatch the event.
|
|
17
17
|
* @returns The list result.
|
|
18
18
|
*/
|
|
19
|
-
static list(
|
|
19
|
+
static list(opts?: ContextListOptions, target?: EventTarget): Promise<ContextListResult<HttpCertificate> | undefined>;
|
|
20
20
|
/**
|
|
21
21
|
* Dispatches an event handled by the data store to delete a client certificate
|
|
22
22
|
*
|
|
23
|
-
* @param target A node on which to dispatch the event.
|
|
24
23
|
* @param id The id of the project to delete.
|
|
24
|
+
* @param target A node on which to dispatch the event.
|
|
25
25
|
* @returns Promise resolved to a new revision after delete.
|
|
26
26
|
*/
|
|
27
|
-
static delete(
|
|
27
|
+
static delete(id: string, target?: EventTarget): Promise<ContextDeleteRecord | undefined>;
|
|
28
28
|
/**
|
|
29
29
|
* Dispatches an event handled by the data store to insert a new client certificate.
|
|
30
30
|
*
|
|
31
|
-
* @param target A node on which to dispatch the event.
|
|
32
31
|
* @param item The certificate object.
|
|
32
|
+
* @param target A node on which to dispatch the event.
|
|
33
33
|
* @returns Promise resolved to the change record
|
|
34
34
|
*/
|
|
35
|
-
static insert(
|
|
35
|
+
static insert(item: ICertificateCreateOptions, target?: EventTarget): Promise<ContextChangeRecord<HttpCertificate> | undefined>;
|
|
36
36
|
static get State(): typeof StateEvents;
|
|
37
37
|
}
|
|
38
38
|
declare class StateEvents {
|
|
@@ -42,13 +42,13 @@ declare class StateEvents {
|
|
|
42
42
|
* @param target A node on which to dispatch the event.
|
|
43
43
|
* @param record Change record
|
|
44
44
|
*/
|
|
45
|
-
static update(
|
|
45
|
+
static update(record: ContextChangeRecord<HttpCertificate>, target?: EventTarget): void;
|
|
46
46
|
/**
|
|
47
47
|
* Dispatches an event after a client certificate was deleted
|
|
48
48
|
*
|
|
49
|
-
* @param target A node on which to dispatch the event.
|
|
50
49
|
* @param record The context store delete record
|
|
50
|
+
* @param target A node on which to dispatch the event.
|
|
51
51
|
*/
|
|
52
|
-
static delete(
|
|
52
|
+
static delete(record: ContextDeleteRecord, target?: EventTarget): void;
|
|
53
53
|
}
|
|
54
54
|
export {};
|
|
@@ -4,11 +4,11 @@ export class ClientCertificateEvents {
|
|
|
4
4
|
/**
|
|
5
5
|
* Dispatches an event handled by the data store to read the client certificate.
|
|
6
6
|
*
|
|
7
|
-
* @param target A node on which to dispatch the event.
|
|
8
7
|
* @param id The id of the client certificate
|
|
8
|
+
* @param target A node on which to dispatch the event.
|
|
9
9
|
* @returns Promise resolved to a client certificate model.
|
|
10
10
|
*/
|
|
11
|
-
static async read(
|
|
11
|
+
static async read(id, target = window) {
|
|
12
12
|
const e = new ContextReadEvent(ModelEventTypes.ClientCertificate.read, id);
|
|
13
13
|
target.dispatchEvent(e);
|
|
14
14
|
return e.detail.result;
|
|
@@ -16,11 +16,11 @@ export class ClientCertificateEvents {
|
|
|
16
16
|
/**
|
|
17
17
|
* Dispatches an event to list the client certificates data.
|
|
18
18
|
*
|
|
19
|
-
* @param target A node on which to dispatch the event.
|
|
20
19
|
* @param opts Query options.
|
|
20
|
+
* @param target A node on which to dispatch the event.
|
|
21
21
|
* @returns The list result.
|
|
22
22
|
*/
|
|
23
|
-
static async list(
|
|
23
|
+
static async list(opts, target = window) {
|
|
24
24
|
const e = new ContextListEvent(ModelEventTypes.ClientCertificate.list, opts);
|
|
25
25
|
target.dispatchEvent(e);
|
|
26
26
|
return e.detail.result;
|
|
@@ -28,11 +28,11 @@ export class ClientCertificateEvents {
|
|
|
28
28
|
/**
|
|
29
29
|
* Dispatches an event handled by the data store to delete a client certificate
|
|
30
30
|
*
|
|
31
|
-
* @param target A node on which to dispatch the event.
|
|
32
31
|
* @param id The id of the project to delete.
|
|
32
|
+
* @param target A node on which to dispatch the event.
|
|
33
33
|
* @returns Promise resolved to a new revision after delete.
|
|
34
34
|
*/
|
|
35
|
-
static async delete(
|
|
35
|
+
static async delete(id, target = window) {
|
|
36
36
|
const e = new ContextDeleteEvent(ModelEventTypes.ClientCertificate.delete, id, undefined);
|
|
37
37
|
target.dispatchEvent(e);
|
|
38
38
|
return e.detail.result;
|
|
@@ -40,11 +40,11 @@ export class ClientCertificateEvents {
|
|
|
40
40
|
/**
|
|
41
41
|
* Dispatches an event handled by the data store to insert a new client certificate.
|
|
42
42
|
*
|
|
43
|
-
* @param target A node on which to dispatch the event.
|
|
44
43
|
* @param item The certificate object.
|
|
44
|
+
* @param target A node on which to dispatch the event.
|
|
45
45
|
* @returns Promise resolved to the change record
|
|
46
46
|
*/
|
|
47
|
-
static async insert(
|
|
47
|
+
static async insert(item, target = window) {
|
|
48
48
|
const e = new ContextUpdateEvent(ModelEventTypes.ClientCertificate.insert, { item, });
|
|
49
49
|
target.dispatchEvent(e);
|
|
50
50
|
return e.detail.result;
|
|
@@ -60,17 +60,17 @@ class StateEvents {
|
|
|
60
60
|
* @param target A node on which to dispatch the event.
|
|
61
61
|
* @param record Change record
|
|
62
62
|
*/
|
|
63
|
-
static update(
|
|
63
|
+
static update(record, target = window) {
|
|
64
64
|
const e = new ContextStateUpdateEvent(ModelEventTypes.ClientCertificate.State.update, record);
|
|
65
65
|
target.dispatchEvent(e);
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
68
|
* Dispatches an event after a client certificate was deleted
|
|
69
69
|
*
|
|
70
|
-
* @param target A node on which to dispatch the event.
|
|
71
70
|
* @param record The context store delete record
|
|
71
|
+
* @param target A node on which to dispatch the event.
|
|
72
72
|
*/
|
|
73
|
-
static delete(
|
|
73
|
+
static delete(record, target = window) {
|
|
74
74
|
const e = new ContextStateDeleteEvent(ModelEventTypes.ClientCertificate.State.delete, record);
|
|
75
75
|
target.dispatchEvent(e);
|
|
76
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientCertificateEvents.js","sourceRoot":"","sources":["../../../../src/events/models/ClientCertificateEvents.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAyC,kBAAkB,EAAuB,kBAAkB,EAAuB,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AACjP,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,OAAO,uBAAuB;IAClC;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"ClientCertificateEvents.js","sourceRoot":"","sources":["../../../../src/events/models/ClientCertificateEvents.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAyC,kBAAkB,EAAuB,kBAAkB,EAAuB,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AACjP,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,OAAO,uBAAuB;IAClC;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,EAAU,EAAE,SAAsB,MAAM;QACxD,MAAM,CAAC,GAAG,IAAI,gBAAgB,CAAkB,eAAe,CAAC,iBAAiB,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC5F,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,OAAO,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAyB,EAAE,SAAsB,MAAM;QACvE,MAAM,CAAC,GAAG,IAAI,gBAAgB,CAAkB,eAAe,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC9F,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,OAAO,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,SAAsB,MAAM;QAC1D,MAAM,CAAC,GAAG,IAAI,kBAAkB,CAAC,eAAe,CAAC,iBAAiB,CAAC,MAAM,EAAE,EAAE,EAAE,SAAS,CAAC,CAAC;QAC1F,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,OAAO,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAA+B,EAAE,SAAsB,MAAM;QAC/E,MAAM,CAAC,GAAG,IAAI,kBAAkB,CAA6C,eAAe,CAAC,iBAAiB,CAAC,MAAM,EAAE,EAAE,IAAI,GAAG,CAAC,CAAC;QAClI,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,OAAO,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;IAED,MAAM,KAAK,KAAK;QACd,OAAO,WAAW,CAAC;IACrB,CAAC;CACF;AAED,MAAM,WAAW;IACf;;;;;OAKG;IACH,MAAM,CAAC,MAAM,CAAC,MAA4C,EAAE,SAAsB,MAAM;QACtF,MAAM,CAAC,GAAG,IAAI,uBAAuB,CAAkB,eAAe,CAAC,iBAAiB,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC/G,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,MAAM,CAAC,MAA2B,EAAE,SAAsB,MAAM;QACrE,MAAM,CAAC,GAAG,IAAI,uBAAuB,CAAC,eAAe,CAAC,iBAAiB,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC9F,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;CACF"}
|
|
@@ -16,27 +16,27 @@ export declare class ProcessEvents {
|
|
|
16
16
|
* in the background. The side effect of the event is the UI showing a process
|
|
17
17
|
* indicator.
|
|
18
18
|
*
|
|
19
|
-
* @param target A node on which to dispatch the event.
|
|
20
19
|
* @param pid The id of the process. The same id has to be passed to the stop event.
|
|
21
20
|
* @param message Optional message rendered in the UI.
|
|
21
|
+
* @param target A node on which to dispatch the event.
|
|
22
22
|
*/
|
|
23
|
-
static loadingStart(
|
|
23
|
+
static loadingStart(pid: string, message: string, target?: EventTarget): void;
|
|
24
24
|
/**
|
|
25
25
|
* An event to be dispatched when the application has finished a long running process
|
|
26
26
|
* in the background.
|
|
27
27
|
*
|
|
28
|
-
* @param target A node on which to dispatch the event.
|
|
29
28
|
* @param pid The id of the process. The same id has to be passed to the stop event.
|
|
29
|
+
* @param target A node on which to dispatch the event.
|
|
30
30
|
*/
|
|
31
|
-
static loadingStop(
|
|
31
|
+
static loadingStop(pid: string, target?: EventTarget): void;
|
|
32
32
|
/**
|
|
33
33
|
* An event to be dispatched when the application has finished a long running process
|
|
34
34
|
* in the background with an error.
|
|
35
35
|
*
|
|
36
|
-
* @param target A node on which to dispatch the event.
|
|
37
36
|
* @param pid The id of the process used to start it.
|
|
38
37
|
* @param message The message to be rendered to the user.
|
|
39
38
|
* @param error The error object caused the event. Optional.
|
|
39
|
+
* @param target A node on which to dispatch the event.
|
|
40
40
|
*/
|
|
41
|
-
static loadingError(
|
|
41
|
+
static loadingError(pid: string, message: string, error?: Error, target?: EventTarget): void;
|
|
42
42
|
}
|
|
@@ -5,11 +5,11 @@ export class ProcessEvents {
|
|
|
5
5
|
* in the background. The side effect of the event is the UI showing a process
|
|
6
6
|
* indicator.
|
|
7
7
|
*
|
|
8
|
-
* @param target A node on which to dispatch the event.
|
|
9
8
|
* @param pid The id of the process. The same id has to be passed to the stop event.
|
|
10
9
|
* @param message Optional message rendered in the UI.
|
|
10
|
+
* @param target A node on which to dispatch the event.
|
|
11
11
|
*/
|
|
12
|
-
static loadingStart(
|
|
12
|
+
static loadingStart(pid, message, target = window) {
|
|
13
13
|
const detail = { pid, message };
|
|
14
14
|
const e = new CustomEvent(ProcessEventTypes.loadingStart, {
|
|
15
15
|
cancelable: true,
|
|
@@ -23,10 +23,10 @@ export class ProcessEvents {
|
|
|
23
23
|
* An event to be dispatched when the application has finished a long running process
|
|
24
24
|
* in the background.
|
|
25
25
|
*
|
|
26
|
-
* @param target A node on which to dispatch the event.
|
|
27
26
|
* @param pid The id of the process. The same id has to be passed to the stop event.
|
|
27
|
+
* @param target A node on which to dispatch the event.
|
|
28
28
|
*/
|
|
29
|
-
static loadingStop(
|
|
29
|
+
static loadingStop(pid, target = window) {
|
|
30
30
|
const detail = { pid };
|
|
31
31
|
const e = new CustomEvent(ProcessEventTypes.loadingStop, {
|
|
32
32
|
cancelable: true,
|
|
@@ -40,12 +40,12 @@ export class ProcessEvents {
|
|
|
40
40
|
* An event to be dispatched when the application has finished a long running process
|
|
41
41
|
* in the background with an error.
|
|
42
42
|
*
|
|
43
|
-
* @param target A node on which to dispatch the event.
|
|
44
43
|
* @param pid The id of the process used to start it.
|
|
45
44
|
* @param message The message to be rendered to the user.
|
|
46
45
|
* @param error The error object caused the event. Optional.
|
|
46
|
+
* @param target A node on which to dispatch the event.
|
|
47
47
|
*/
|
|
48
|
-
static loadingError(
|
|
48
|
+
static loadingError(pid, message, error, target = window) {
|
|
49
49
|
const detail = { pid, message, error };
|
|
50
50
|
const e = new CustomEvent(ProcessEventTypes.loadingError, {
|
|
51
51
|
cancelable: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProcessEvents.js","sourceRoot":"","sources":["../../../../src/events/process/ProcessEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAiB3D,MAAM,OAAO,aAAa;IACxB;;;;;;;;OAQG;IACH,MAAM,CAAC,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"ProcessEvents.js","sourceRoot":"","sources":["../../../../src/events/process/ProcessEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAiB3D,MAAM,OAAO,aAAa;IACxB;;;;;;;;OAQG;IACH,MAAM,CAAC,YAAY,CAAC,GAAW,EAAE,OAAe,EAAE,SAAsB,MAAM;QAC5E,MAAM,MAAM,GAAwB,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC;QACrD,MAAM,CAAC,GAAG,IAAI,WAAW,CAAC,iBAAiB,CAAC,YAAY,EAAE;YACxD,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,IAAI;YACb,MAAM;SACP,CAAC,CAAC;QACH,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,WAAW,CAAC,GAAW,EAAE,SAAsB,MAAM;QAC1D,MAAM,MAAM,GAAuB,EAAE,GAAG,EAAE,CAAC;QAC3C,MAAM,CAAC,GAAG,IAAI,WAAW,CAAC,iBAAiB,CAAC,WAAW,EAAE;YACvD,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,IAAI;YACb,MAAM;SACP,CAAC,CAAC;QACH,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,YAAY,CAAC,GAAW,EAAE,OAAe,EAAE,KAAa,EAAE,SAAsB,MAAM;QAC3F,MAAM,MAAM,GAAwB,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5D,MAAM,CAAC,GAAG,IAAI,WAAW,CAAC,iBAAiB,CAAC,YAAY,EAAE;YACxD,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,IAAI;YACb,MAAM;SACP,CAAC,CAAC;QACH,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;CACF"}
|
|
@@ -7,10 +7,10 @@ export declare class ReportingEvents {
|
|
|
7
7
|
/**
|
|
8
8
|
* Dispatches the general error event for UI logging purposes.
|
|
9
9
|
*
|
|
10
|
-
* @param target A node on which to dispatch the event
|
|
11
10
|
* @param description The error description
|
|
12
11
|
* @param error Optional original error object that has caused this event
|
|
13
12
|
* @param component Optional component name.
|
|
13
|
+
* @param target A node on which to dispatch the event
|
|
14
14
|
*/
|
|
15
|
-
static error(
|
|
15
|
+
static error(description: string, error?: Error, component?: string, target?: EventTarget): void;
|
|
16
16
|
}
|
|
@@ -3,12 +3,12 @@ export class ReportingEvents {
|
|
|
3
3
|
/**
|
|
4
4
|
* Dispatches the general error event for UI logging purposes.
|
|
5
5
|
*
|
|
6
|
-
* @param target A node on which to dispatch the event
|
|
7
6
|
* @param description The error description
|
|
8
7
|
* @param error Optional original error object that has caused this event
|
|
9
8
|
* @param component Optional component name.
|
|
9
|
+
* @param target A node on which to dispatch the event
|
|
10
10
|
*/
|
|
11
|
-
static error(
|
|
11
|
+
static error(description, error, component, target = window) {
|
|
12
12
|
const detail = { error, description, component };
|
|
13
13
|
const e = new CustomEvent(ReportingEventTypes.error, {
|
|
14
14
|
bubbles: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportingEvents.js","sourceRoot":"","sources":["../../../../src/events/reporting/ReportingEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAQ/D,MAAM,OAAO,eAAe;IAC1B;;;;;;;OAOG;IACH,MAAM,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"ReportingEvents.js","sourceRoot":"","sources":["../../../../src/events/reporting/ReportingEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAQ/D,MAAM,OAAO,eAAe;IAC1B;;;;;;;OAOG;IACH,MAAM,CAAC,KAAK,CAAC,WAAmB,EAAE,KAAa,EAAE,SAAkB,EAAE,SAAsB,MAAM;QAC/F,MAAM,MAAM,GAA0B,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;QACxE,MAAM,CAAC,GAAG,IAAI,WAAW,CAAC,mBAAmB,CAAC,KAAK,EAAE;YACnD,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,IAAI;YAChB,MAAM;SACP,CAAC,CAAC;QACH,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;CACF"}
|
|
@@ -41,13 +41,13 @@ export declare class TelemetryEvents {
|
|
|
41
41
|
* @param screenName The screen name
|
|
42
42
|
* @param info Analytics base configuration
|
|
43
43
|
*/
|
|
44
|
-
static view(
|
|
44
|
+
static view(screenName: string, target?: EventTarget, info?: ITelemetryDetail): void;
|
|
45
45
|
/**
|
|
46
46
|
* Sends a Google Analytics event information
|
|
47
47
|
* @param target A node on which to dispatch the event
|
|
48
48
|
* @param detail The event configuration
|
|
49
49
|
*/
|
|
50
|
-
static event(
|
|
50
|
+
static event(detail: ITelemetryEventDetail, target?: EventTarget): void;
|
|
51
51
|
/**
|
|
52
52
|
* Sends a Google Analytics exception information
|
|
53
53
|
* @param target A node on which to dispatch the event
|
|
@@ -55,7 +55,7 @@ export declare class TelemetryEvents {
|
|
|
55
55
|
* @param fatal Whether the exception was fatal to the application
|
|
56
56
|
* @param info Analytics base configuration
|
|
57
57
|
*/
|
|
58
|
-
static exception(
|
|
58
|
+
static exception(description: string, fatal?: boolean, target?: EventTarget, info?: ITelemetryDetail): void;
|
|
59
59
|
/**
|
|
60
60
|
* Sends a Google Analytics social share information
|
|
61
61
|
* @param target A node on which to dispatch the event
|
|
@@ -64,7 +64,7 @@ export declare class TelemetryEvents {
|
|
|
64
64
|
* @param url The share url
|
|
65
65
|
* @param info Analytics base configuration
|
|
66
66
|
*/
|
|
67
|
-
static social(
|
|
67
|
+
static social(network: string, action: string, url: string, target?: EventTarget, info?: ITelemetryDetail): void;
|
|
68
68
|
/**
|
|
69
69
|
* Sends a Google Analytics application timing information
|
|
70
70
|
* @param target A node on which to dispatch the event
|
|
@@ -74,7 +74,7 @@ export declare class TelemetryEvents {
|
|
|
74
74
|
* @param label The timing label
|
|
75
75
|
* @param info Analytics base configuration
|
|
76
76
|
*/
|
|
77
|
-
static timing(
|
|
77
|
+
static timing(category: string, variable: string, value: number, label?: string, target?: EventTarget, info?: ITelemetryDetail): void;
|
|
78
78
|
static get State(): typeof StateEvents;
|
|
79
79
|
}
|
|
80
80
|
declare class StateEvents {
|
|
@@ -84,6 +84,6 @@ declare class StateEvents {
|
|
|
84
84
|
*
|
|
85
85
|
* @param target The node on which to dispatch the event.
|
|
86
86
|
*/
|
|
87
|
-
static set(target
|
|
87
|
+
static set(target?: EventTarget): void;
|
|
88
88
|
}
|
|
89
89
|
export {};
|
|
@@ -6,7 +6,7 @@ export class TelemetryEvents {
|
|
|
6
6
|
* @param screenName The screen name
|
|
7
7
|
* @param info Analytics base configuration
|
|
8
8
|
*/
|
|
9
|
-
static view(
|
|
9
|
+
static view(screenName, target = window, info = {}) {
|
|
10
10
|
const detail = {
|
|
11
11
|
...info, screenName,
|
|
12
12
|
};
|
|
@@ -23,7 +23,7 @@ export class TelemetryEvents {
|
|
|
23
23
|
* @param target A node on which to dispatch the event
|
|
24
24
|
* @param detail The event configuration
|
|
25
25
|
*/
|
|
26
|
-
static event(
|
|
26
|
+
static event(detail, target = window) {
|
|
27
27
|
const e = new CustomEvent(TelemetryEventTypes.event, {
|
|
28
28
|
bubbles: true,
|
|
29
29
|
composed: true,
|
|
@@ -39,7 +39,7 @@ export class TelemetryEvents {
|
|
|
39
39
|
* @param fatal Whether the exception was fatal to the application
|
|
40
40
|
* @param info Analytics base configuration
|
|
41
41
|
*/
|
|
42
|
-
static exception(
|
|
42
|
+
static exception(description, fatal, target = window, info = {}) {
|
|
43
43
|
const detail = { ...info, description, fatal };
|
|
44
44
|
const e = new CustomEvent(TelemetryEventTypes.exception, {
|
|
45
45
|
bubbles: true,
|
|
@@ -57,7 +57,7 @@ export class TelemetryEvents {
|
|
|
57
57
|
* @param url The share url
|
|
58
58
|
* @param info Analytics base configuration
|
|
59
59
|
*/
|
|
60
|
-
static social(
|
|
60
|
+
static social(network, action, url, target = window, info = {}) {
|
|
61
61
|
const detail = { ...info, network, action, target: url };
|
|
62
62
|
const e = new CustomEvent(TelemetryEventTypes.social, {
|
|
63
63
|
bubbles: true,
|
|
@@ -76,7 +76,7 @@ export class TelemetryEvents {
|
|
|
76
76
|
* @param label The timing label
|
|
77
77
|
* @param info Analytics base configuration
|
|
78
78
|
*/
|
|
79
|
-
static timing(
|
|
79
|
+
static timing(category, variable, value, label, target = window, info = {}) {
|
|
80
80
|
const detail = { ...info, category, variable, value, label };
|
|
81
81
|
const e = new CustomEvent(TelemetryEventTypes.timing, {
|
|
82
82
|
bubbles: true,
|
|
@@ -97,7 +97,7 @@ class StateEvents {
|
|
|
97
97
|
*
|
|
98
98
|
* @param target The node on which to dispatch the event.
|
|
99
99
|
*/
|
|
100
|
-
static set(target) {
|
|
100
|
+
static set(target = window) {
|
|
101
101
|
const e = new Event(TelemetryEventTypes.State.set, {
|
|
102
102
|
composed: true,
|
|
103
103
|
cancelable: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TelemetryEvents.js","sourceRoot":"","sources":["../../../../src/events/telemetry/TelemetryEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AA2C/D,MAAM,OAAO,eAAe;IAC1B;;;;;OAKG;IACH,MAAM,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"TelemetryEvents.js","sourceRoot":"","sources":["../../../../src/events/telemetry/TelemetryEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AA2C/D,MAAM,OAAO,eAAe;IAC1B;;;;;OAKG;IACH,MAAM,CAAC,IAAI,CAAC,UAAkB,EAAE,SAAsB,MAAM,EAAE,OAAyB,EAAE;QACvF,MAAM,MAAM,GAA+B;YACzC,GAAG,IAAI,EAAE,UAAU;SACpB,C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YACpD,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,IAAI;YAChB,MAAM;SACP,CAAC,CAAC;QACH,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,CAAC,QAAgB,EAAE,QAAgB,EAAE,KAAa,EAAE,KAAc,EAAE,SAAsB,MAAM,EAAE,OAAyB,EAAE;QACxI,MAAM,MAAM,GAA2B,EAAE,GAAG,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;QACrF,MAAM,CAAC,GAAG,IAAI,WAAW,CAAC,mBAAmB,CAAC,MAAM,EAAE;YACpD,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,IAAI;YAChB,MAAM;SACP,CAAC,CAAC;QACH,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;IAED,MAAM,KAAK,KAAK;QACd,OAAO,WAAW,CAAC;IACrB,CAAC;CACF;AAED,MAAM,WAAW;IACf;;;;;OAKG;IACH,MAAM,CAAC,GAAG,CAAC,SAAsB,MAAM;QACrC,MAAM,CAAC,GAAG,IAAI,KAAK,CAAC,mBAAmB,CAAC,KAAK,CAAC,GAAG,EAAE;YACjD,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,IAAI;YAChB,OAAO,EAAE,IAAI;SACd,CAAC,CAAC;QACH,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;CACF"}
|
|
@@ -32,7 +32,7 @@ export declare const TransportEvent: Readonly<{
|
|
|
32
32
|
* @param config Optional request configuration.
|
|
33
33
|
* @returns The execution log or `undefined` when the event was not handled.
|
|
34
34
|
*/
|
|
35
|
-
send: (
|
|
35
|
+
send: (request: IHttpRequest, authorization?: IRequestAuthorization[] | undefined, config?: IRequestBaseConfig | undefined, target?: EventTarget) => Promise<IRequestLog | undefined>;
|
|
36
36
|
}>;
|
|
37
37
|
/**
|
|
38
38
|
* Transport via the native platform's bindings.
|
|
@@ -47,7 +47,7 @@ export declare const TransportEvent: Readonly<{
|
|
|
47
47
|
* @param init Optional request init options compatible with the Fetch API.
|
|
48
48
|
* @returns Compatible with the Fetch API Response object or `undefined` when the event was not handled.
|
|
49
49
|
*/
|
|
50
|
-
send: (
|
|
50
|
+
send: (request: IHttpRequest, init?: RequestInit | undefined, target?: EventTarget) => Promise<Response | undefined>;
|
|
51
51
|
}>;
|
|
52
52
|
Project: Readonly<{
|
|
53
53
|
/**
|
|
@@ -58,7 +58,7 @@ export declare const TransportEvent: Readonly<{
|
|
|
58
58
|
* @param opts The project execution options.
|
|
59
59
|
* @returns
|
|
60
60
|
*/
|
|
61
|
-
send: (
|
|
61
|
+
send: (project: HttpProject | string, opts: IProjectRunnerOptions, target?: EventTarget) => Promise<IProjectExecutionLog | undefined>;
|
|
62
62
|
}>;
|
|
63
63
|
Ws: Readonly<{
|
|
64
64
|
/**
|