@olympeio/runtime-node 9.3.0 → 9.3.1
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/05_permission_schema.updateInst.json +1 -1
- package/import/olympe.dm/datamodel/06_structure.newInst.json +1 -1
- package/import/olympe.sc/datamodel/01_language.newInst.json +1 -1
- package/index.js +754 -754
- package/package.json +1 -1
- package/types/cloud.d.ts +20 -6
- package/types/runtime.d.ts +2 -3
package/package.json
CHANGED
package/types/cloud.d.ts
CHANGED
|
@@ -516,21 +516,21 @@ export class Transaction {
|
|
|
516
516
|
afterExecution(callback: (success: boolean, message?: string) => void): this;
|
|
517
517
|
|
|
518
518
|
/**
|
|
519
|
-
* Execute atomically the transaction at the
|
|
519
|
+
* Execute atomically the transaction at the data sources. Return the transaction result if succeeds.
|
|
520
520
|
*
|
|
521
|
-
* @return promise resolving if the transaction succeeds,
|
|
521
|
+
* @return promise resolving with the corresponding TransactionResult if the transaction succeeds,
|
|
522
522
|
* rejecting if the transaction fails
|
|
523
523
|
*/
|
|
524
|
-
execute(): Promise<
|
|
524
|
+
execute(): Promise<TransactionResult>;
|
|
525
525
|
|
|
526
526
|
/**
|
|
527
|
-
* Execute atomically a transaction at the source
|
|
527
|
+
* Execute atomically a transaction at the data source and returns the transaction result if succeeds.
|
|
528
528
|
* The `large` mode sends the transaction over HTTP
|
|
529
529
|
*
|
|
530
|
-
* @return promise resolving if the transaction succeeds,
|
|
530
|
+
* @return promise resolving with the corresponding TransactionResult if the transaction succeeds,
|
|
531
531
|
* rejecting if the transaction fails.
|
|
532
532
|
*/
|
|
533
|
-
executeAsLarge(): Promise<
|
|
533
|
+
executeAsLarge(): Promise<TransactionResult>;
|
|
534
534
|
|
|
535
535
|
/**
|
|
536
536
|
* Start a transaction using an existing transaction in the provided context
|
|
@@ -551,6 +551,20 @@ export class Transaction {
|
|
|
551
551
|
static process($: BrickContext, transaction: Transaction): Promise<boolean>;
|
|
552
552
|
}
|
|
553
553
|
|
|
554
|
+
/**
|
|
555
|
+
* A transaction result is the object received after a transaction has been executed successfully.
|
|
556
|
+
* It provides information about what has been done.
|
|
557
|
+
*/
|
|
558
|
+
export class TransactionResult {
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Return the ordered list of CloudObjects created in this transaction.
|
|
562
|
+
*
|
|
563
|
+
* @return the list of CloudObjects instances
|
|
564
|
+
*/
|
|
565
|
+
getCreatedObjects(): CloudObject[];
|
|
566
|
+
}
|
|
567
|
+
|
|
554
568
|
/**
|
|
555
569
|
* BurstTransactions are designed to continuously apply high rates of updates on properties (FIFO ordering).
|
|
556
570
|
* The only operation supported by BurstTransactions is to update properties of an instance.
|
package/types/runtime.d.ts
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
// **********************************
|
|
4
4
|
// @ts-ignore
|
|
5
5
|
import Observable from 'rxjs';
|
|
6
|
-
import {CloudObject, Context, Property} from "./base";
|
|
7
|
-
import {Entry} from "./legacy";
|
|
6
|
+
import {CloudObject, Context, Property, Tag} from "./base";
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* Label of global properties used by convention through bricks and applications.
|
|
@@ -15,7 +14,7 @@ import {Entry} from "./legacy";
|
|
|
15
14
|
* The brick "Begin Transaction" push a transaction inside the context so it can be reused by other bricks before the "End Transaction" brick.
|
|
16
15
|
*/
|
|
17
16
|
export enum GlobalProperties {
|
|
18
|
-
|
|
17
|
+
EDITION = '__editionMode',
|
|
19
18
|
PRODUCTION = '__production',
|
|
20
19
|
TRANSACTION = '__transaction'
|
|
21
20
|
}
|