@olympeio/runtime-node 9.11.11 → 9.12.0
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/import/olympe.dm/datamodel/.Primordial.newInst.json +1 -1
- package/import/olympe.dm/datamodel/05_permission_schema.updateInst.json +1 -1
- package/import/olympe.sc/datamodel/01_language.newInst.json +1 -1
- package/import/olympe.sc/datamodel/01_language.newRel.json +1 -1
- package/index.js +994 -983
- package/package.json +1 -1
- package/types/data-connector.d.ts +5 -0
- package/types/other.d.ts +17 -0
- package/types/runtime.d.ts +5 -0
package/package.json
CHANGED
|
@@ -278,6 +278,11 @@ export interface QueryPart {
|
|
|
278
278
|
*/
|
|
279
279
|
export abstract class DataSource extends CloudObject {
|
|
280
280
|
|
|
281
|
+
/**
|
|
282
|
+
* @return The name of this data source, in lower case and formatted without any special character.
|
|
283
|
+
*/
|
|
284
|
+
getLowerName(): string;
|
|
285
|
+
|
|
281
286
|
/**
|
|
282
287
|
* Returns the tag of the data source.
|
|
283
288
|
* @return tag of the data source.
|
package/types/other.d.ts
CHANGED
|
@@ -406,3 +406,20 @@ export class Process {
|
|
|
406
406
|
*/
|
|
407
407
|
static isOnline(context: Context): Observable<boolean>;
|
|
408
408
|
}
|
|
409
|
+
|
|
410
|
+
export class EventMonitor {
|
|
411
|
+
/**
|
|
412
|
+
* Checks if the Event Monitor is enabled in the config.
|
|
413
|
+
*/
|
|
414
|
+
static isEnabled(): boolean;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Track an occurrence of an event. No network call is made; an in-memory counter is incremented
|
|
418
|
+
* and later flushed in batch. If monitoring is disabled, the call is a no‑op.
|
|
419
|
+
*
|
|
420
|
+
* @param eventType The event type (remote action, datasource, etc)
|
|
421
|
+
* @param eventName Logical event name (e.g. brick name or endpoint id).
|
|
422
|
+
*/
|
|
423
|
+
static track(eventType: string, eventName: string): void;
|
|
424
|
+
}
|
|
425
|
+
|
package/types/runtime.d.ts
CHANGED
|
@@ -144,6 +144,11 @@ export class BrickContext extends Context {
|
|
|
144
144
|
* @param callback the function to execute when the specified brick context is available
|
|
145
145
|
*/
|
|
146
146
|
onContext(id: string, callback: (context: BrickContext) => void): () => void;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Return the tag of the brick linked to this context. Null if no brick has been linked to it.
|
|
150
|
+
*/
|
|
151
|
+
getBrickTag(): string | null;
|
|
147
152
|
}
|
|
148
153
|
|
|
149
154
|
export abstract class Brick extends CloudObject {
|