@api-client/core 0.5.22 → 0.5.25
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/src/authorization/OAuth2Authorization.d.ts +1 -1
- package/build/src/events/BaseEvents.d.ts +6 -19
- package/build/src/events/BaseEvents.js +5 -5
- package/build/src/events/BaseEvents.js.map +1 -1
- package/build/src/lib/transformers/PayloadSerializer.d.ts +11 -5
- package/build/src/lib/transformers/PayloadSerializer.js +36 -10
- package/build/src/lib/transformers/PayloadSerializer.js.map +1 -1
- package/build/src/models/SerializablePayload.js +1 -6
- package/build/src/models/SerializablePayload.js.map +1 -1
- package/build/src/runtime/actions/runnable/DeleteCookieRunnable.d.ts +1 -1
- package/build/src/runtime/actions/runnable/SetCookieRunnable.d.ts +1 -1
- package/build/src/runtime/actions/runnable/SetVariableRunnable.d.ts +1 -1
- package/package.json +1 -1
- package/src/authorization/OAuth2Authorization.ts +1 -1
- package/src/events/BaseEvents.ts +8 -21
- package/src/lib/transformers/PayloadSerializer.ts +38 -11
- package/src/models/SerializablePayload.ts +1 -5
- package/src/runtime/actions/runnable/DeleteCookieRunnable.ts +1 -1
- package/src/runtime/actions/runnable/SetCookieRunnable.ts +2 -2
- package/src/runtime/actions/runnable/SetVariableRunnable.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IframeAuthorization } from './lib/IframeAuthorization.js';
|
|
2
2
|
import { PopupAuthorization } from './lib/PopupAuthorization.js';
|
|
3
|
-
import { IOAuth2Authorization, ITokenInfo } from '
|
|
3
|
+
import { IOAuth2Authorization, ITokenInfo } from '../models/Authorization.js';
|
|
4
4
|
import { OauthProcessingOptions } from './types.js';
|
|
5
5
|
export declare const resolveFunction: unique symbol;
|
|
6
6
|
export declare const rejectFunction: unique symbol;
|
|
@@ -13,7 +13,7 @@ export interface ContextEventDetailWithResult<T> {
|
|
|
13
13
|
/**
|
|
14
14
|
* A base class to use with context providers.
|
|
15
15
|
*/
|
|
16
|
-
export declare class ContextEvent<S extends object, R> extends CustomEvent<ContextEventDetailWithResult<R>> {
|
|
16
|
+
export declare class ContextEvent<S extends object, R> extends CustomEvent<S & ContextEventDetailWithResult<R>> {
|
|
17
17
|
/**
|
|
18
18
|
* @param type The event type
|
|
19
19
|
* @param detail The optional detail object. It adds object's properties to the `detail` with the `result` property.
|
|
@@ -26,9 +26,9 @@ export interface ContextReadEventDetail {
|
|
|
26
26
|
*/
|
|
27
27
|
id: string;
|
|
28
28
|
/**
|
|
29
|
-
* Optional
|
|
29
|
+
* Optional parent, when needed.
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
parent?: string;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* An event to be used to read a state from a context provider.
|
|
@@ -37,9 +37,9 @@ export declare class ContextReadEvent<T> extends ContextEvent<ContextReadEventDe
|
|
|
37
37
|
/**
|
|
38
38
|
* @param type The type of the event
|
|
39
39
|
* @param id The domain id of the object to read
|
|
40
|
-
* @param
|
|
40
|
+
* @param parent Optional parent, when needed.
|
|
41
41
|
*/
|
|
42
|
-
constructor(type: string, id: string,
|
|
42
|
+
constructor(type: string, id: string, parent?: string);
|
|
43
43
|
}
|
|
44
44
|
export interface ContextReadBulkEventDetail {
|
|
45
45
|
/**
|
|
@@ -71,15 +71,6 @@ export interface ContextChangeRecord<T> {
|
|
|
71
71
|
* The ID of the changed context state object.
|
|
72
72
|
*/
|
|
73
73
|
key: string;
|
|
74
|
-
/**
|
|
75
|
-
* The revision of the updated context state object.
|
|
76
|
-
* It is not set when old revision is unavailable (new entity is created) or when the context provider does not support this value.
|
|
77
|
-
*/
|
|
78
|
-
oldRev?: string;
|
|
79
|
-
/**
|
|
80
|
-
* New revision of updated state object. May not be set when the context provider does not support this value.
|
|
81
|
-
*/
|
|
82
|
-
rev?: string;
|
|
83
74
|
/**
|
|
84
75
|
* The updated context state object.
|
|
85
76
|
*/
|
|
@@ -98,10 +89,6 @@ export interface ContextDeleteEventDetail {
|
|
|
98
89
|
* The id of the parent object, if applicable.
|
|
99
90
|
*/
|
|
100
91
|
parent?: string;
|
|
101
|
-
/**
|
|
102
|
-
* The revision to delete, when applicable.
|
|
103
|
-
*/
|
|
104
|
-
rev?: string;
|
|
105
92
|
}
|
|
106
93
|
/**
|
|
107
94
|
* An event to be used to delete a state in the context provider.
|
|
@@ -112,7 +99,7 @@ export declare class ContextDeleteEvent extends ContextEvent<ContextDeleteEventD
|
|
|
112
99
|
* @param id The id of the object to delete
|
|
113
100
|
* @param parent The id of the parent object, if applicable.
|
|
114
101
|
*/
|
|
115
|
-
constructor(type: string, id: string, parent?: string
|
|
102
|
+
constructor(type: string, id: string, parent?: string);
|
|
116
103
|
}
|
|
117
104
|
export interface ContextDeleteRecord {
|
|
118
105
|
/**
|
|
@@ -26,10 +26,10 @@ export class ContextReadEvent extends ContextEvent {
|
|
|
26
26
|
/**
|
|
27
27
|
* @param type The type of the event
|
|
28
28
|
* @param id The domain id of the object to read
|
|
29
|
-
* @param
|
|
29
|
+
* @param parent Optional parent, when needed.
|
|
30
30
|
*/
|
|
31
|
-
constructor(type, id,
|
|
32
|
-
super(type, { id,
|
|
31
|
+
constructor(type, id, parent) {
|
|
32
|
+
super(type, { id, parent });
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
@@ -53,8 +53,8 @@ export class ContextDeleteEvent extends ContextEvent {
|
|
|
53
53
|
* @param id The id of the object to delete
|
|
54
54
|
* @param parent The id of the parent object, if applicable.
|
|
55
55
|
*/
|
|
56
|
-
constructor(type, id, parent
|
|
57
|
-
super(type, { id, parent
|
|
56
|
+
constructor(type, id, parent) {
|
|
57
|
+
super(type, { id, parent });
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseEvents.js","sourceRoot":"","sources":["../../../src/events/BaseEvents.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,kBAAkB,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AAU,EAAE,KAAK;YACjB,MAAM,EAAE,MAAM;SACf,CAAC,CAAC;IACL,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,uBAA2B,SAAQ,WAAmC;IACjF;;;OAGG;IACH,YAAY,IAAY,EAAE,MAA8B;QACtD,KAAK,CAAC,IAAI,EAAE;YACV,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,MAAM;SACf,CAAC,CAAC;IACL,CAAC;CACF;AAaD;;;;;GAKG;AACH,MAAM,OAAO,kBAA4C,SAAQ,YAAiE;IAChI,YAAY,IAAY,EAAE,UAAuC;QAC/D,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAC1B,CAAC;CACF;AAgCD,MAAM,OAAO,gBAAoB,SAAQ,YAAsD;IAC7F;;;OAGG;IACH,YAAY,IAAY,EAAE,OAA2B,EAAE;QACrD,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACpB,CAAC;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
export declare type PayloadTypes = 'string' | 'file' | 'blob' | 'buffer' | 'arraybuffer' | 'formdata' | 'x-www-form-urlencoded';
|
|
3
3
|
export declare type DeserializedPayload = string | Blob | File | FormData | Buffer | ArrayBuffer | undefined;
|
|
4
|
+
export declare const SupportedPayloadTypes: PayloadTypes[];
|
|
4
5
|
export interface IMultipartBody {
|
|
5
6
|
/**
|
|
6
7
|
* When true a this entry represent a file part
|
|
@@ -58,6 +59,11 @@ export declare const hasFormData: boolean;
|
|
|
58
59
|
export declare const hasBlob: boolean;
|
|
59
60
|
export declare const hasBuffer: boolean;
|
|
60
61
|
export declare class PayloadSerializer {
|
|
62
|
+
/**
|
|
63
|
+
* Checked whether the passed payload can be safely stored in the data store.
|
|
64
|
+
* @param payload The value to test.
|
|
65
|
+
*/
|
|
66
|
+
static isSafePayload(payload: any): boolean;
|
|
61
67
|
/**
|
|
62
68
|
* Transforms the payload into a data store safe object.
|
|
63
69
|
*/
|
|
@@ -79,8 +85,8 @@ export declare class PayloadSerializer {
|
|
|
79
85
|
/**
|
|
80
86
|
* When the passed argument is an ArrayBuffer it creates an object describing the object in a safe to store object.
|
|
81
87
|
*
|
|
82
|
-
* @param
|
|
83
|
-
* @returns
|
|
88
|
+
* @param payload
|
|
89
|
+
* @returns The buffer metadata or undefined if the passed argument is not an ArrayBuffer.
|
|
84
90
|
*/
|
|
85
91
|
static stringifyArrayBuffer(payload: ArrayBuffer): ISafePayload | undefined;
|
|
86
92
|
/**
|
|
@@ -93,9 +99,9 @@ export declare class PayloadSerializer {
|
|
|
93
99
|
/**
|
|
94
100
|
* Transforms a FormData entry into a safe-to-store text entry
|
|
95
101
|
*
|
|
96
|
-
* @param
|
|
97
|
-
* @param
|
|
98
|
-
* @
|
|
102
|
+
* @param name The part name
|
|
103
|
+
* @param file The part value
|
|
104
|
+
* @returns Transformed FormData part to a datastore safe entry.
|
|
99
105
|
*/
|
|
100
106
|
static serializeFormDataEntry(name: string, file: string | File): Promise<IMultipartBody>;
|
|
101
107
|
/**
|
|
@@ -1,18 +1,44 @@
|
|
|
1
1
|
import { blobToDataUrl } from './Utils.js';
|
|
2
|
+
export const SupportedPayloadTypes = ['string', 'file', 'blob', 'buffer', 'arraybuffer', 'formdata', 'x-www-form-urlencoded'];
|
|
2
3
|
export const hasFormData = typeof FormData === 'function';
|
|
3
4
|
export const hasBlob = typeof Blob === 'function';
|
|
4
5
|
export const hasBuffer = typeof Buffer === 'function';
|
|
5
6
|
export class PayloadSerializer {
|
|
6
7
|
/**
|
|
7
|
-
*
|
|
8
|
+
* Checked whether the passed payload can be safely stored in the data store.
|
|
9
|
+
* @param payload The value to test.
|
|
8
10
|
*/
|
|
9
|
-
static
|
|
10
|
-
if (
|
|
11
|
-
|
|
11
|
+
static isSafePayload(payload) {
|
|
12
|
+
if (payload === undefined || payload === null) {
|
|
13
|
+
// both values should be stored correctly
|
|
14
|
+
return true;
|
|
12
15
|
}
|
|
13
16
|
if (typeof payload === 'string') {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
// checks whether the payload is already serialized./
|
|
20
|
+
const typed = payload;
|
|
21
|
+
if (typed.type && SupportedPayloadTypes.includes(typed.type)) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Transforms the payload into a data store safe object.
|
|
28
|
+
*/
|
|
29
|
+
static async serialize(payload) {
|
|
30
|
+
if (PayloadSerializer.isSafePayload(payload)) {
|
|
31
|
+
if (payload === null) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
14
34
|
return payload;
|
|
15
35
|
}
|
|
36
|
+
// if (payload === undefined || payload === null) {
|
|
37
|
+
// return undefined;
|
|
38
|
+
// }
|
|
39
|
+
// if (typeof payload === 'string') {
|
|
40
|
+
// return payload;
|
|
41
|
+
// }
|
|
16
42
|
if (hasBlob && payload instanceof Blob) {
|
|
17
43
|
return PayloadSerializer.stringifyBlob(payload);
|
|
18
44
|
}
|
|
@@ -67,8 +93,8 @@ export class PayloadSerializer {
|
|
|
67
93
|
/**
|
|
68
94
|
* When the passed argument is an ArrayBuffer it creates an object describing the object in a safe to store object.
|
|
69
95
|
*
|
|
70
|
-
* @param
|
|
71
|
-
* @returns
|
|
96
|
+
* @param payload
|
|
97
|
+
* @returns The buffer metadata or undefined if the passed argument is not an ArrayBuffer.
|
|
72
98
|
*/
|
|
73
99
|
static stringifyArrayBuffer(payload) {
|
|
74
100
|
if (payload.byteLength) {
|
|
@@ -100,9 +126,9 @@ export class PayloadSerializer {
|
|
|
100
126
|
/**
|
|
101
127
|
* Transforms a FormData entry into a safe-to-store text entry
|
|
102
128
|
*
|
|
103
|
-
* @param
|
|
104
|
-
* @param
|
|
105
|
-
* @
|
|
129
|
+
* @param name The part name
|
|
130
|
+
* @param file The part value
|
|
131
|
+
* @returns Transformed FormData part to a datastore safe entry.
|
|
106
132
|
*/
|
|
107
133
|
static async serializeFormDataEntry(name, file) {
|
|
108
134
|
if (typeof file === 'string') {
|
|
@@ -137,7 +163,7 @@ export class PayloadSerializer {
|
|
|
137
163
|
* Restores the payload into its original format.
|
|
138
164
|
*/
|
|
139
165
|
static async deserialize(payload) {
|
|
140
|
-
if (
|
|
166
|
+
if (payload === undefined || payload === null) {
|
|
141
167
|
return undefined;
|
|
142
168
|
}
|
|
143
169
|
if (typeof payload === 'string') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PayloadSerializer.js","sourceRoot":"","sources":["../../../../src/lib/transformers/PayloadSerializer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"PayloadSerializer.js","sourceRoot":"","sources":["../../../../src/lib/transformers/PayloadSerializer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,MAAM,CAAC,MAAM,qBAAqB,GAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,uBAAuB,CAAC,CAAC;AAyD9I,MAAM,CAAC,MAAM,WAAW,GAAY,OAAO,QAAQ,KAAK,UAAU,CAAC;AACnE,MAAM,CAAC,MAAM,OAAO,GAAY,OAAO,IAAI,KAAK,UAAU,CAAC;AAC3D,MAAM,CAAC,MAAM,SAAS,GAAY,OAAO,MAAM,KAAK,UAAU,CAAC;AAE/D,MAAM,OAAO,iBAAiB;IAC5B;;;OAGG;IACH,MAAM,CAAC,aAAa,CAAC,OAAY;QAC/B,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,IAAI,EAAE;YAC7C,yCAAyC;YACzC,OAAO,IAAI,CAAC;SACb;QACD,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;YAC/B,OAAO,IAAI,CAAC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M,EAAE;YAC1C,OAAO,EAAE,CAAC;SACX;QACD,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YACrB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;YAC9D,IAAI,OAAO,KAAK,KAAK,EAAE;gBACrB,OAAO;aACR;YACD,IAAI,IAAI,CAAC;YACT,IAAI,MAAM,EAAE;gBACV,IAAI,GAAG,iBAAiB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;gBAChD,IAAI,IAAI,EAAE;oBACR,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;iBACjC;aACF;iBAAM,IAAI,IAAI,EAAE;gBACf,IAAI,GAAG,iBAAiB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;gBAChD,IAAI,IAAI,EAAE;oBACR,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;iBAC/B;aACF;iBAAM;gBACL,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;aACxB;QACH,CAAC,CAAC,CAAC;QACH,OAAO,EAAE,CAAC;IACZ,CAAC;CACF"}
|
|
@@ -15,12 +15,7 @@ export class SerializablePayload {
|
|
|
15
15
|
*/
|
|
16
16
|
async writePayload(message) {
|
|
17
17
|
this._sourcePayload = message;
|
|
18
|
-
|
|
19
|
-
this.payload = message;
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
this.payload = await PayloadSerializer.serialize(message);
|
|
23
|
-
}
|
|
18
|
+
this.payload = await PayloadSerializer.serialize(message);
|
|
24
19
|
}
|
|
25
20
|
/**
|
|
26
21
|
* Reads the payload as its original format.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SerializablePayload.js","sourceRoot":"","sources":["../../../src/models/SerializablePayload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgC,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAEtH,MAAM,OAAO,mBAAmB;IAC9B;;OAEG;IACH,OAAO,CAAW;IAClB;;;OAGG;IACO,cAAc,CAAU;IAElC;;;OAGG;IACH,KAAK,CAAC,YAAY,CAAC,OAAgB;QACjC,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC;QAC9B,IAAI,
|
|
1
|
+
{"version":3,"file":"SerializablePayload.js","sourceRoot":"","sources":["../../../src/models/SerializablePayload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgC,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAEtH,MAAM,OAAO,mBAAmB;IAC9B;;OAEG;IACH,OAAO,CAAW;IAClB;;;OAGG;IACO,cAAc,CAAU;IAElC;;;OAGG;IACH,KAAK,CAAC,YAAY,CAAC,OAAgB;QACjC,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,MAAM,iBAAiB,CAAC,SAAS,CAAC,OAA8B,CAAC,CAAC;IACnF,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,WAAW;QACf,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;YACxB,IAAI,CAAC,cAAc,GAAG,MAAM,iBAAiB,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SACzE;QACD,OAAO,IAAI,CAAC,cAAqC,CAAC;IACpD,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,mBAAmB;QACvB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QACzB,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,SAAS,CAAC;SAClB;QACD,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;YAC/B,OAAO,OAAO,CAAC;SAChB;QACD,IAAI,OAAO,CAAC,IAAI,KAAK,QAAQ,EAAE;YAC7B,OAAO,OAAO,CAAC,IAAc,CAAC;SAC/B;QACD,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACvD,6CAA6C;YAC7C,OAAO,SAAS,CAAC;SAClB;QACD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;QACtC,IAAI,SAAS,IAAI,IAAI,YAAY,MAAM,EAAE;YACvC,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;SACxB;QACD,MAAM,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAmB,CAAC,CAAC;QACnD,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;QAClC,OAAO,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IHttpRequest } from '
|
|
1
|
+
import { IHttpRequest } from '../../../models/HttpRequest.js';
|
|
2
2
|
import { ActionRunnable } from './ActionRunnable.js';
|
|
3
3
|
import { IRequestLog } from '../../../models/RequestLog.js';
|
|
4
4
|
export declare class DeleteCookieRunnable extends ActionRunnable {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IHttpRequest } from '
|
|
1
|
+
import { IHttpRequest } from '../../../models/HttpRequest.js';
|
|
2
2
|
import { ActionRunnable } from './ActionRunnable.js';
|
|
3
3
|
import { ISetCookieAction } from '../../../models/actions/runnable/SetCookieAction.js';
|
|
4
4
|
import { IRequestLog } from '../../../models/RequestLog.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IHttpRequest } from '
|
|
1
|
+
import { IHttpRequest } from '../../../models/HttpRequest.js';
|
|
2
2
|
import { ActionRunnable } from './ActionRunnable.js';
|
|
3
3
|
import { ISetVariableAction } from '../../../models/actions/runnable/SetVariableAction.js';
|
|
4
4
|
import { IRequestLog } from '../../../models/RequestLog.js';
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ import { AuthorizationError, CodeError } from './AuthorizationError.js';
|
|
|
7
7
|
import { IframeAuthorization } from './lib/IframeAuthorization.js';
|
|
8
8
|
import { PopupAuthorization } from './lib/PopupAuthorization.js';
|
|
9
9
|
import * as KnownGrants from './lib/KnownGrants.js';
|
|
10
|
-
import { IOAuth2Authorization, ITokenInfo } from '
|
|
10
|
+
import { IOAuth2Authorization, ITokenInfo } from '../models/Authorization.js';
|
|
11
11
|
import { OauthProcessingOptions } from './types.js';
|
|
12
12
|
|
|
13
13
|
export const resolveFunction = Symbol('resolveFunction');
|
package/src/events/BaseEvents.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface ContextEventDetailWithResult<T> {
|
|
|
15
15
|
/**
|
|
16
16
|
* A base class to use with context providers.
|
|
17
17
|
*/
|
|
18
|
-
export class ContextEvent<S extends object, R> extends CustomEvent<ContextEventDetailWithResult<R>> {
|
|
18
|
+
export class ContextEvent<S extends object, R> extends CustomEvent<S & ContextEventDetailWithResult<R>> {
|
|
19
19
|
/**
|
|
20
20
|
* @param type The event type
|
|
21
21
|
* @param detail The optional detail object. It adds object's properties to the `detail` with the `result` property.
|
|
@@ -39,9 +39,9 @@ export interface ContextReadEventDetail {
|
|
|
39
39
|
*/
|
|
40
40
|
id: string;
|
|
41
41
|
/**
|
|
42
|
-
* Optional
|
|
42
|
+
* Optional parent, when needed.
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
parent?: string;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
@@ -51,10 +51,10 @@ export class ContextReadEvent<T> extends ContextEvent<ContextReadEventDetail, T>
|
|
|
51
51
|
/**
|
|
52
52
|
* @param type The type of the event
|
|
53
53
|
* @param id The domain id of the object to read
|
|
54
|
-
* @param
|
|
54
|
+
* @param parent Optional parent, when needed.
|
|
55
55
|
*/
|
|
56
|
-
constructor(type: string, id: string,
|
|
57
|
-
super(type, { id,
|
|
56
|
+
constructor(type: string, id: string, parent?: string) {
|
|
57
|
+
super(type, { id, parent });
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -92,15 +92,6 @@ export interface ContextChangeRecord<T> {
|
|
|
92
92
|
* The ID of the changed context state object.
|
|
93
93
|
*/
|
|
94
94
|
key: string;
|
|
95
|
-
/**
|
|
96
|
-
* The revision of the updated context state object.
|
|
97
|
-
* It is not set when old revision is unavailable (new entity is created) or when the context provider does not support this value.
|
|
98
|
-
*/
|
|
99
|
-
oldRev?: string;
|
|
100
|
-
/**
|
|
101
|
-
* New revision of updated state object. May not be set when the context provider does not support this value.
|
|
102
|
-
*/
|
|
103
|
-
rev?: string;
|
|
104
95
|
/**
|
|
105
96
|
* The updated context state object.
|
|
106
97
|
*/
|
|
@@ -120,10 +111,6 @@ export interface ContextDeleteEventDetail {
|
|
|
120
111
|
* The id of the parent object, if applicable.
|
|
121
112
|
*/
|
|
122
113
|
parent?: string;
|
|
123
|
-
/**
|
|
124
|
-
* The revision to delete, when applicable.
|
|
125
|
-
*/
|
|
126
|
-
rev?: string;
|
|
127
114
|
}
|
|
128
115
|
|
|
129
116
|
/**
|
|
@@ -135,8 +122,8 @@ export class ContextDeleteEvent extends ContextEvent<ContextDeleteEventDetail, C
|
|
|
135
122
|
* @param id The id of the object to delete
|
|
136
123
|
* @param parent The id of the parent object, if applicable.
|
|
137
124
|
*/
|
|
138
|
-
constructor(type: string, id: string, parent?: string
|
|
139
|
-
super(type, { id, parent
|
|
125
|
+
constructor(type: string, id: string, parent?: string) {
|
|
126
|
+
super(type, { id, parent });
|
|
140
127
|
}
|
|
141
128
|
}
|
|
142
129
|
|
|
@@ -2,6 +2,7 @@ import { blobToDataUrl } from './Utils.js';
|
|
|
2
2
|
|
|
3
3
|
export type PayloadTypes = 'string' | 'file' | 'blob' | 'buffer' | 'arraybuffer' | 'formdata' | 'x-www-form-urlencoded';
|
|
4
4
|
export type DeserializedPayload = string | Blob | File | FormData | Buffer | ArrayBuffer | undefined;
|
|
5
|
+
export const SupportedPayloadTypes: PayloadTypes[] = ['string', 'file', 'blob', 'buffer', 'arraybuffer', 'formdata', 'x-www-form-urlencoded'];
|
|
5
6
|
|
|
6
7
|
export interface IMultipartBody {
|
|
7
8
|
/**
|
|
@@ -64,15 +65,41 @@ export const hasBuffer: boolean = typeof Buffer === 'function';
|
|
|
64
65
|
|
|
65
66
|
export class PayloadSerializer {
|
|
66
67
|
/**
|
|
67
|
-
*
|
|
68
|
+
* Checked whether the passed payload can be safely stored in the data store.
|
|
69
|
+
* @param payload The value to test.
|
|
68
70
|
*/
|
|
69
|
-
static
|
|
70
|
-
if (
|
|
71
|
-
|
|
71
|
+
static isSafePayload(payload: any): boolean {
|
|
72
|
+
if (payload === undefined || payload === null) {
|
|
73
|
+
// both values should be stored correctly
|
|
74
|
+
return true;
|
|
72
75
|
}
|
|
73
76
|
if (typeof payload === 'string') {
|
|
74
|
-
return
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
// checks whether the payload is already serialized./
|
|
80
|
+
const typed = payload as ISafePayload;
|
|
81
|
+
if (typed.type && SupportedPayloadTypes.includes(typed.type)) {
|
|
82
|
+
return true
|
|
83
|
+
}
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Transforms the payload into a data store safe object.
|
|
89
|
+
*/
|
|
90
|
+
static async serialize(payload: DeserializedPayload): Promise<ISafePayload | string | undefined> {
|
|
91
|
+
if (PayloadSerializer.isSafePayload(payload)) {
|
|
92
|
+
if (payload === null) {
|
|
93
|
+
return undefined;
|
|
94
|
+
}
|
|
95
|
+
return (payload as unknown) as ISafePayload | string | undefined;
|
|
75
96
|
}
|
|
97
|
+
// if (payload === undefined || payload === null) {
|
|
98
|
+
// return undefined;
|
|
99
|
+
// }
|
|
100
|
+
// if (typeof payload === 'string') {
|
|
101
|
+
// return payload;
|
|
102
|
+
// }
|
|
76
103
|
if (hasBlob && payload instanceof Blob) {
|
|
77
104
|
return PayloadSerializer.stringifyBlob(payload);
|
|
78
105
|
}
|
|
@@ -129,8 +156,8 @@ export class PayloadSerializer {
|
|
|
129
156
|
/**
|
|
130
157
|
* When the passed argument is an ArrayBuffer it creates an object describing the object in a safe to store object.
|
|
131
158
|
*
|
|
132
|
-
* @param
|
|
133
|
-
* @returns
|
|
159
|
+
* @param payload
|
|
160
|
+
* @returns The buffer metadata or undefined if the passed argument is not an ArrayBuffer.
|
|
134
161
|
*/
|
|
135
162
|
static stringifyArrayBuffer(payload: ArrayBuffer): ISafePayload | undefined {
|
|
136
163
|
if (payload.byteLength) {
|
|
@@ -164,9 +191,9 @@ export class PayloadSerializer {
|
|
|
164
191
|
/**
|
|
165
192
|
* Transforms a FormData entry into a safe-to-store text entry
|
|
166
193
|
*
|
|
167
|
-
* @param
|
|
168
|
-
* @param
|
|
169
|
-
* @
|
|
194
|
+
* @param name The part name
|
|
195
|
+
* @param file The part value
|
|
196
|
+
* @returns Transformed FormData part to a datastore safe entry.
|
|
170
197
|
*/
|
|
171
198
|
static async serializeFormDataEntry(name: string, file: string | File): Promise<IMultipartBody> {
|
|
172
199
|
if (typeof file === 'string') {
|
|
@@ -202,7 +229,7 @@ export class PayloadSerializer {
|
|
|
202
229
|
* Restores the payload into its original format.
|
|
203
230
|
*/
|
|
204
231
|
static async deserialize(payload: ISafePayload | string | undefined): Promise<DeserializedPayload> {
|
|
205
|
-
if (
|
|
232
|
+
if (payload === undefined || payload === null) {
|
|
206
233
|
return undefined;
|
|
207
234
|
}
|
|
208
235
|
if (typeof payload === 'string') {
|
|
@@ -17,11 +17,7 @@ export class SerializablePayload {
|
|
|
17
17
|
*/
|
|
18
18
|
async writePayload(message: unknown): Promise<void> {
|
|
19
19
|
this._sourcePayload = message;
|
|
20
|
-
|
|
21
|
-
this.payload = message;
|
|
22
|
-
} else {
|
|
23
|
-
this.payload = await PayloadSerializer.serialize(message as DeserializedPayload);
|
|
24
|
-
}
|
|
20
|
+
this.payload = await PayloadSerializer.serialize(message as DeserializedPayload);
|
|
25
21
|
}
|
|
26
22
|
|
|
27
23
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IHttpRequest } from '
|
|
1
|
+
import { IHttpRequest } from '../../../models/HttpRequest.js';
|
|
2
2
|
import { ActionRunnable } from './ActionRunnable.js';
|
|
3
3
|
import { IDeleteCookieAction } from '../../../models/actions/runnable/DeleteCookieAction.js';
|
|
4
4
|
import { Events } from '../../../events/Events.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IHttpRequest } from '
|
|
2
|
-
import { IHttpCookie } from '
|
|
1
|
+
import { IHttpRequest } from '../../../models/HttpRequest.js';
|
|
2
|
+
import { IHttpCookie } from '../../../models/HttpCookie.js';
|
|
3
3
|
import { ActionRunnable } from './ActionRunnable.js';
|
|
4
4
|
import { ISetCookieAction } from '../../../models/actions/runnable/SetCookieAction.js';
|
|
5
5
|
import { Events } from '../../../events/Events.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IHttpRequest } from '
|
|
1
|
+
import { IHttpRequest } from '../../../models/HttpRequest.js';
|
|
2
2
|
import { ActionRunnable } from './ActionRunnable.js';
|
|
3
3
|
import { ISetVariableAction } from '../../../models/actions/runnable/SetVariableAction.js';
|
|
4
4
|
import { Events } from '../../../events/Events.js';
|