@api-client/core 0.5.23 → 0.5.24
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.
|
@@ -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,CAAC;AAc3C;;GAEG;AACH,MAAM,OAAO,YAAkC,SAAQ,WAA4C;IACjG;;;OAGG;IACH,YAAY,IAAY,EAAE,MAAS;QACjC,KAAK,CA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E,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9B,CAAC;CACF;AAkBD;;;;;GAKG;AACH,MAAM,OAAO,uBAAwB,SAAQ,WAAgC;IAC3E;;;OAGG;IACH,YAAY,IAAY,EAAE,MAA2B;QACnD,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;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"}
|
package/package.json
CHANGED
package/src/events/BaseEvents.ts
CHANGED
|
@@ -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
|
|