@daffodil/core 0.68.1 → 0.70.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/constructable/constructable.d.ts +1 -1
- package/esm2022/constructable/constructable.mjs +1 -1
- package/esm2022/external-script/daffodil-core-external-script.mjs +5 -0
- package/esm2022/external-script/external-script.service.mjs +90 -0
- package/esm2022/external-script/index.mjs +2 -0
- package/esm2022/external-script/interface.mjs +2 -0
- package/esm2022/external-script/public_api.mjs +2 -0
- package/esm2022/external-script/script.mjs +2 -0
- package/esm2022/external-script/testing/constants.mjs +2 -0
- package/esm2022/external-script/testing/daffodil-core-external-script-testing.mjs +5 -0
- package/esm2022/external-script/testing/external-script.service.mjs +53 -0
- package/esm2022/external-script/testing/index.mjs +2 -0
- package/esm2022/external-script/testing/public_api.mjs +2 -0
- package/esm2022/state/actions/failure.type.mjs +1 -1
- package/esm2022/state/actions/public_api.mjs +1 -1
- package/esm2022/state/operation/adapter.mjs +3 -3
- package/esm2022/state/operation/entity/adapter.mjs +69 -36
- package/esm2022/state/operation/entity/helpers/create-fake-id.mjs +10 -0
- package/esm2022/state/operation/entity/public_api.mjs +2 -2
- package/esm2022/state/operation/entity/selectors.mjs +2 -1
- package/esm2022/state/operation/selectors.mjs +4 -3
- package/esm2022/state/states/helpers.mjs +15 -0
- package/esm2022/state/states/public_api.mjs +2 -2
- package/esm2022/state/states/state.enum.mjs +1 -1
- package/esm2022/utils/identity.mjs +8 -0
- package/esm2022/utils/public_api.mjs +2 -1
- package/external-script/external-script.service.d.ts +50 -0
- package/external-script/index.d.ts +1 -0
- package/external-script/interface.d.ts +11 -0
- package/external-script/public_api.d.ts +3 -0
- package/external-script/script.d.ts +33 -0
- package/external-script/testing/constants.d.ts +4 -0
- package/external-script/testing/external-script.service.d.ts +40 -0
- package/external-script/testing/index.d.ts +1 -0
- package/external-script/testing/public_api.d.ts +2 -0
- package/fesm2022/daffodil-core-external-script-testing.mjs +60 -0
- package/fesm2022/daffodil-core-external-script-testing.mjs.map +1 -0
- package/fesm2022/daffodil-core-external-script.mjs +97 -0
- package/fesm2022/daffodil-core-external-script.mjs.map +1 -0
- package/fesm2022/daffodil-core-state.mjs +89 -49
- package/fesm2022/daffodil-core-state.mjs.map +1 -1
- package/fesm2022/daffodil-core.mjs +9 -1
- package/fesm2022/daffodil-core.mjs.map +1 -1
- package/package.json +1 -1
- package/state/actions/failure.type.d.ts +6 -4
- package/state/operation/entity/adapter.d.ts +21 -1
- package/state/operation/entity/{helpers.d.ts → helpers/create-fake-id.d.ts} +0 -5
- package/state/operation/entity/public_api.d.ts +1 -1
- package/state/operation/entity/selectors.d.ts +1 -1
- package/state/states/helpers.d.ts +9 -0
- package/state/states/public_api.d.ts +1 -0
- package/state/states/state.enum.d.ts +16 -4
- package/utils/identity.d.ts +5 -0
- package/utils/public_api.d.ts +1 -0
- package/esm2022/state/operation/entity/helpers.mjs +0 -19
|
@@ -24,18 +24,26 @@ export declare const enum DaffState {
|
|
|
24
24
|
*/
|
|
25
25
|
Added = "Added",
|
|
26
26
|
/**
|
|
27
|
-
* The '
|
|
27
|
+
* The 'Updating' state describes when an object that currently exists in state
|
|
28
28
|
* is being changed in some way.
|
|
29
29
|
*
|
|
30
30
|
* Disambiguation: This has nothing to do with immutability.
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
Updating = "Updating",
|
|
33
33
|
/**
|
|
34
34
|
* The 'Mutated' state describes when an object has recently been modified in
|
|
35
35
|
* state. This state is typically associated with a subsequent decay into a
|
|
36
36
|
* 'Stable' state.
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
Updated = "Updated",
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated in favor of {@link DaffState.Updating}
|
|
41
|
+
*/
|
|
42
|
+
Mutating = "Updating",
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated in favor of {@link DaffState.Updated}
|
|
45
|
+
*/
|
|
46
|
+
Mutated = "Updated",
|
|
39
47
|
/**
|
|
40
48
|
* The "Deleting" state occurs when an object is in the process of being
|
|
41
49
|
* removed from state.
|
|
@@ -47,5 +55,9 @@ export declare const enum DaffState {
|
|
|
47
55
|
* @deprecated
|
|
48
56
|
* Use DaffState.Stable instead.
|
|
49
57
|
*/
|
|
50
|
-
Complete = "Stable"
|
|
58
|
+
Complete = "Stable",
|
|
59
|
+
/**
|
|
60
|
+
* Indicates that the most recent operation specififc to this entity has failed.
|
|
61
|
+
*/
|
|
62
|
+
Error = "Error"
|
|
51
63
|
}
|
package/utils/public_api.d.ts
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns whether the state is one that represents an operation in progress.
|
|
3
|
-
*/
|
|
4
|
-
export function daffStateIsLoading(daffState) {
|
|
5
|
-
return daffState === "Adding" /* DaffState.Adding */
|
|
6
|
-
|| daffState === "Mutating" /* DaffState.Mutating */
|
|
7
|
-
|| daffState === "Resolving" /* DaffState.Resolving */
|
|
8
|
-
|| daffState === "Deleting" /* DaffState.Deleting */;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Generate a fake ID for use with placeholder entities.
|
|
12
|
-
*
|
|
13
|
-
* @param key An optional key that can augment the randomly generated ID.
|
|
14
|
-
* @returns A string cont
|
|
15
|
-
*/
|
|
16
|
-
export function daffOperationEntityCreateFakeId(key = '') {
|
|
17
|
-
return `ε-${Date.now()}-${key}`;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVscGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29yZS9zdGF0ZS9zcmMvb3BlcmF0aW9uL2VudGl0eS9oZWxwZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBOztHQUVHO0FBQ0gsTUFBTSxVQUFVLGtCQUFrQixDQUFDLFNBQW9C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