@daiso-tech/core 0.32.0 → 0.33.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/dist/async/async.errors.d.ts +14 -0
- package/dist/async/async.errors.js +14 -0
- package/dist/async/async.errors.js.map +1 -1
- package/dist/async/async.events.d.ts +23 -0
- package/dist/async/async.events.js +23 -0
- package/dist/async/async.events.js.map +1 -1
- package/dist/async/backof-policies/_shared.d.ts +1 -1
- package/dist/async/backof-policies/constant-backoff-policy/constant-backoff-policy.d.ts +2 -2
- package/dist/async/backof-policies/constant-backoff-policy/constant-backoff-policy.js +1 -1
- package/dist/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.d.ts +2 -2
- package/dist/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js +1 -1
- package/dist/async/backof-policies/linear-backoff-policy/linear-backoff-policy.d.ts +2 -2
- package/dist/async/backof-policies/linear-backoff-policy/linear-backoff-policy.js +1 -1
- package/dist/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.d.ts +2 -2
- package/dist/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.js +1 -1
- package/dist/async/utilities/lazy-promise/lazy-promise.d.ts +7 -41
- package/dist/async/utilities/lazy-promise/lazy-promise.js +7 -8
- package/dist/async/utilities/lazy-promise/lazy-promise.js.map +1 -1
- package/dist/cache/contracts/cache-factory.contract.d.ts +3 -3
- package/dist/cache/contracts/cache.contract.d.ts +0 -22
- package/dist/cache/contracts/cache.errors.d.ts +14 -1
- package/dist/cache/contracts/cache.errors.js +14 -1
- package/dist/cache/contracts/cache.errors.js.map +1 -1
- package/dist/cache/contracts/cache.events.d.ts +28 -14
- package/dist/cache/contracts/cache.events.js +28 -3
- package/dist/cache/contracts/cache.events.js.map +1 -1
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter-serde.js +3 -3
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter-serde.js.map +1 -1
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.js +0 -1
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.js.map +1 -1
- package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-serde.js +3 -3
- package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-serde.js.map +1 -1
- package/dist/cache/implementations/derivables/cache/cache.d.ts +9 -139
- package/dist/cache/implementations/derivables/cache/cache.js +38 -229
- package/dist/cache/implementations/derivables/cache/cache.js.map +1 -1
- package/dist/cache/implementations/derivables/cache-factory/cache-factory.d.ts +6 -6
- package/dist/cache/implementations/derivables/cache-factory/cache-factory.js.map +1 -1
- package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.d.ts +2 -2
- package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.js +1 -1
- package/dist/cache/implementations/test-utilities/cache.test-suite.d.ts +4 -4
- package/dist/cache/implementations/test-utilities/cache.test-suite.js +239 -433
- package/dist/cache/implementations/test-utilities/cache.test-suite.js.map +1 -1
- package/dist/cache/implementations/test-utilities/database-cache-dapter.test-suite.d.ts +2 -2
- package/dist/cache/implementations/test-utilities/database-cache-dapter.test-suite.js +1 -1
- package/dist/collection/contracts/collection.errors.d.ts +17 -0
- package/dist/collection/contracts/collection.errors.js +17 -0
- package/dist/collection/contracts/collection.errors.js.map +1 -1
- package/dist/event-bus/contracts/event-bus-factory.contract.d.ts +3 -3
- package/dist/event-bus/contracts/event-bus.contract.d.ts +2 -44
- package/dist/event-bus/contracts/event-bus.contract.js.map +1 -1
- package/dist/event-bus/contracts/event-bus.errors.d.ts +16 -1
- package/dist/event-bus/contracts/event-bus.errors.js +16 -1
- package/dist/event-bus/contracts/event-bus.errors.js.map +1 -1
- package/dist/event-bus/implementations/derivables/event-bus/event-bus.d.ts +6 -77
- package/dist/event-bus/implementations/derivables/event-bus/event-bus.js +11 -131
- package/dist/event-bus/implementations/derivables/event-bus/event-bus.js.map +1 -1
- package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.d.ts +4 -4
- package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.js.map +1 -1
- package/dist/event-bus/implementations/test-utilities/event-bus-adapter.test-suite.d.ts +2 -2
- package/dist/event-bus/implementations/test-utilities/event-bus-adapter.test-suite.js +1 -1
- package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.d.ts +4 -4
- package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js +691 -1432
- package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js.map +1 -1
- package/dist/lock/contracts/lock-provider-factory.contract.d.ts +3 -3
- package/dist/lock/contracts/lock-provider.contract.d.ts +10 -20
- package/dist/lock/contracts/lock.contract.d.ts +1 -10
- package/dist/lock/contracts/lock.errors.d.ts +18 -0
- package/dist/lock/contracts/lock.errors.js +18 -0
- package/dist/lock/contracts/lock.errors.js.map +1 -1
- package/dist/lock/contracts/lock.events.d.ts +22 -0
- package/dist/lock/contracts/lock.events.js +22 -0
- package/dist/lock/contracts/lock.events.js.map +1 -1
- package/dist/lock/implementations/derivables/lock-provider/lock-provider.d.ts +12 -155
- package/dist/lock/implementations/derivables/lock-provider/lock-provider.js +31 -228
- package/dist/lock/implementations/derivables/lock-provider/lock-provider.js.map +1 -1
- package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.d.ts +5 -5
- package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.js +7 -30
- package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.js.map +1 -1
- package/dist/lock/implementations/derivables/lock-provider/lock.d.ts +8 -58
- package/dist/lock/implementations/derivables/lock-provider/lock.js +33 -105
- package/dist/lock/implementations/derivables/lock-provider/lock.js.map +1 -1
- package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.d.ts +9 -8
- package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.js.map +1 -1
- package/dist/lock/implementations/test-utilities/lock-provider.test-suite.d.ts +2 -2
- package/dist/lock/implementations/test-utilities/lock-provider.test-suite.js +178 -659
- package/dist/lock/implementations/test-utilities/lock-provider.test-suite.js.map +1 -1
- package/dist/serde/contracts/deserializer.contract.d.ts +1 -1
- package/dist/serde/contracts/deserializer.contract.js +1 -1
- package/dist/serde/contracts/deserializer.contract.js.map +1 -1
- package/dist/serde/contracts/serde.errors.d.ts +14 -2
- package/dist/serde/contracts/serde.errors.js +16 -4
- package/dist/serde/contracts/serde.errors.js.map +1 -1
- package/dist/serde/contracts/serializer.contract.d.ts +1 -1
- package/dist/serde/contracts/serializer.contract.js +1 -1
- package/dist/serde/contracts/serializer.contract.js.map +1 -1
- package/dist/serde/implementations/adapters/mongodb-serde/mongodb-serde.js +3 -3
- package/dist/serde/implementations/adapters/mongodb-serde/mongodb-serde.js.map +1 -1
- package/dist/serde/implementations/adapters/redis-serde/redis-serde.js +3 -3
- package/dist/serde/implementations/adapters/redis-serde/redis-serde.js.map +1 -1
- package/dist/serde/implementations/adapters/sql-serde/sql-serde.js +3 -3
- package/dist/serde/implementations/adapters/sql-serde/sql-serde.js.map +1 -1
- package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.js +3 -3
- package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.js.map +1 -1
- package/dist/serde/implementations/test-utilities/flexible-serde-adapter.test-suite.d.ts +2 -2
- package/dist/serde/implementations/test-utilities/flexible-serde-adapter.test-suite.js +1 -1
- package/dist/serde/implementations/test-utilities/flexible-serde.test-suite.d.ts +2 -2
- package/dist/serde/implementations/test-utilities/flexible-serde.test-suite.js +1 -1
- package/dist/utilities/classes/key-prefixer/_module.d.ts +0 -1
- package/dist/utilities/classes/key-prefixer/_module.js +0 -1
- package/dist/utilities/classes/key-prefixer/_module.js.map +1 -1
- package/dist/utilities/classes/key-prefixer/key-prefixer.d.ts +2 -11
- package/dist/utilities/classes/key-prefixer/key-prefixer.js +4 -46
- package/dist/utilities/classes/key-prefixer/key-prefixer.js.map +1 -1
- package/dist/utilities/errors.d.ts +2 -0
- package/dist/utilities/errors.js +2 -0
- package/dist/utilities/errors.js.map +1 -1
- package/package.json +3 -4
- package/dist/async/utilities/lazy-promise/lazy-promise-event-bus.d.ts +0 -15
- package/dist/async/utilities/lazy-promise/lazy-promise-event-bus.js +0 -50
- package/dist/async/utilities/lazy-promise/lazy-promise-event-bus.js.map +0 -1
- package/dist/async/utilities/lazy-promise/lazy-promise-listener.contract.d.ts +0 -23
- package/dist/async/utilities/lazy-promise/lazy-promise-listener.contract.js +0 -44
- package/dist/async/utilities/lazy-promise/lazy-promise-listener.contract.js.map +0 -1
- package/dist/utilities/classes/key-prefixer/key-prefixer.contract.d.ts +0 -28
- package/dist/utilities/classes/key-prefixer/key-prefixer.contract.js +0 -5
- package/dist/utilities/classes/key-prefixer/key-prefixer.contract.js.map +0 -1
|
@@ -10,6 +10,7 @@ export declare class AsyncError extends Error {
|
|
|
10
10
|
constructor(message: string, cause?: unknown);
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
+
* This error is thrown when the <i>LazyPromise</i> is aborted.
|
|
13
14
|
*
|
|
14
15
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
15
16
|
* @group Errors
|
|
@@ -18,6 +19,7 @@ export declare class AbortAsyncError extends AsyncError {
|
|
|
18
19
|
constructor(message: string, cause?: unknown);
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
22
|
+
* This error is thrown when the <i>LazyPromise</i> has exceeded the given time limit.
|
|
21
23
|
*
|
|
22
24
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
23
25
|
* @group Errors
|
|
@@ -35,6 +37,7 @@ export type RetryAsyncErrorData = {
|
|
|
35
37
|
maxAttempts: number;
|
|
36
38
|
};
|
|
37
39
|
/**
|
|
40
|
+
* This error is thrown when the <i>LazyPromise</i> has failed all retry attempts.
|
|
38
41
|
*
|
|
39
42
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
40
43
|
* @group Errors
|
|
@@ -43,3 +46,14 @@ export declare class RetryAsyncError extends AsyncError {
|
|
|
43
46
|
readonly maxAttempts: number;
|
|
44
47
|
constructor(message: string, { cause, maxAttempts }: RetryAsyncErrorData);
|
|
45
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
52
|
+
* @group Errors
|
|
53
|
+
*/
|
|
54
|
+
export declare const ASYNC_ERRORS: {
|
|
55
|
+
readonly Base: typeof AsyncError;
|
|
56
|
+
readonly Abort: typeof AbortAsyncError;
|
|
57
|
+
readonly Timeout: typeof TimeoutAsyncError;
|
|
58
|
+
readonly Retry: typeof RetryAsyncError;
|
|
59
|
+
};
|
|
@@ -13,6 +13,7 @@ export class AsyncError extends Error {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
+
* This error is thrown when the <i>LazyPromise</i> is aborted.
|
|
16
17
|
*
|
|
17
18
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
18
19
|
* @group Errors
|
|
@@ -24,6 +25,7 @@ export class AbortAsyncError extends AsyncError {
|
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
/**
|
|
28
|
+
* This error is thrown when the <i>LazyPromise</i> has exceeded the given time limit.
|
|
27
29
|
*
|
|
28
30
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
29
31
|
* @group Errors
|
|
@@ -35,6 +37,7 @@ export class TimeoutAsyncError extends AsyncError {
|
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
/**
|
|
40
|
+
* This error is thrown when the <i>LazyPromise</i> has failed all retry attempts.
|
|
38
41
|
*
|
|
39
42
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
40
43
|
* @group Errors
|
|
@@ -47,4 +50,15 @@ export class RetryAsyncError extends AsyncError {
|
|
|
47
50
|
this.maxAttempts = maxAttempts;
|
|
48
51
|
}
|
|
49
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
56
|
+
* @group Errors
|
|
57
|
+
*/
|
|
58
|
+
export const ASYNC_ERRORS = {
|
|
59
|
+
Base: AsyncError,
|
|
60
|
+
Abort: AbortAsyncError,
|
|
61
|
+
Timeout: TimeoutAsyncError,
|
|
62
|
+
Retry: RetryAsyncError,
|
|
63
|
+
};
|
|
50
64
|
//# sourceMappingURL=async.errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async.errors.js","sourceRoot":"","sources":["../../src/async/async.errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,MAAM,OAAO,UAAW,SAAQ,KAAK;IACjC,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;IAChC,CAAC;CACJ;AAED
|
|
1
|
+
{"version":3,"file":"async.errors.js","sourceRoot":"","sources":["../../src/async/async.errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,MAAM,OAAO,UAAW,SAAQ,KAAK;IACjC,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;IAChC,CAAC;CACJ;AAED;;;;;GAKG;AACH,MAAM,OAAO,eAAgB,SAAQ,UAAU;IAC3C,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACtB,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC;IACrC,CAAC;CACJ;AAED;;;;;GAKG;AACH,MAAM,OAAO,iBAAkB,SAAQ,UAAU;IAC7C,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACtB,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC,IAAI,CAAC;IACvC,CAAC;CACJ;AAYD;;;;;GAKG;AACH,MAAM,OAAO,eAAgB,SAAQ,UAAU;IAC3B,WAAW,CAAS;IAEpC,YAAY,OAAe,EAAE,EAAE,KAAK,EAAE,WAAW,EAAuB;QACpE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACtB,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC;QACjC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,CAAC;CACJ;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,eAAe;IACtB,OAAO,EAAE,iBAAiB;IAC1B,KAAK,EAAE,eAAe;CAChB,CAAC"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import type { AbortAsyncError, RetryAsyncError, TimeoutAsyncError } from "../async/async.errors.js";
|
|
5
5
|
import { BaseEvent } from "../event-bus/contracts/_shared.js";
|
|
6
6
|
/**
|
|
7
|
+
* This event is dispatched when the <i>LazyPromise</i> has been rejected.
|
|
7
8
|
*
|
|
8
9
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
9
10
|
* @group Events
|
|
@@ -13,6 +14,7 @@ export declare class FailureAsyncEvent extends BaseEvent<{
|
|
|
13
14
|
}> {
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
17
|
+
* This event is dispatched when the <i>LazyPromise</i> has been fulfilled.
|
|
16
18
|
*
|
|
17
19
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
18
20
|
* @group Events
|
|
@@ -22,6 +24,7 @@ export declare class SuccessAsyncEvent<TValue> extends BaseEvent<{
|
|
|
22
24
|
}> {
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
27
|
+
* This event is dispatched when the <i>LazyPromise</i> has been fulfilled or rejected.
|
|
25
28
|
*
|
|
26
29
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
27
30
|
* @group Events
|
|
@@ -29,6 +32,7 @@ export declare class SuccessAsyncEvent<TValue> extends BaseEvent<{
|
|
|
29
32
|
export declare class FinallyAsyncEvent extends BaseEvent<{}> {
|
|
30
33
|
}
|
|
31
34
|
/**
|
|
35
|
+
* This event is dispatched on every retry attempt of the <i>LazyPromise</i>.
|
|
32
36
|
*
|
|
33
37
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
34
38
|
* @group Events
|
|
@@ -39,6 +43,7 @@ export declare class RetryAttemptAsyncEvent extends BaseEvent<{
|
|
|
39
43
|
}> {
|
|
40
44
|
}
|
|
41
45
|
/**
|
|
46
|
+
* This event is dispatched when the rety attempt of the <i>LazyPromise</i> has exceeded the given time limit.
|
|
42
47
|
*
|
|
43
48
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
44
49
|
* @group Events
|
|
@@ -48,6 +53,7 @@ export declare class RetryTimeoutAsyncEvent extends BaseEvent<{
|
|
|
48
53
|
}> {
|
|
49
54
|
}
|
|
50
55
|
/**
|
|
56
|
+
* This event is dispatched when the <i>LazyPromise</i> has failed all retry attempts.
|
|
51
57
|
*
|
|
52
58
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
53
59
|
* @group Events
|
|
@@ -57,6 +63,7 @@ export declare class RetryFailureAsyncEvent extends BaseEvent<{
|
|
|
57
63
|
}> {
|
|
58
64
|
}
|
|
59
65
|
/**
|
|
66
|
+
* This event is dispatched when <i>LazyPromise</i> has exceeded the given total time limit.
|
|
60
67
|
*
|
|
61
68
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
62
69
|
* @group Events
|
|
@@ -66,6 +73,7 @@ export declare class TotalTimeoutFailureAsyncEvent extends BaseEvent<{
|
|
|
66
73
|
}> {
|
|
67
74
|
}
|
|
68
75
|
/**
|
|
76
|
+
* This event is dispatched when <i>LazyPromise</i> is aborted.
|
|
69
77
|
*
|
|
70
78
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
71
79
|
* @group Events
|
|
@@ -74,6 +82,21 @@ export declare class AbortAsyncEvent extends BaseEvent<{
|
|
|
74
82
|
error: AbortAsyncError;
|
|
75
83
|
}> {
|
|
76
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
88
|
+
* @group Events
|
|
89
|
+
*/
|
|
90
|
+
export declare const ASYNC_EVENTS: {
|
|
91
|
+
readonly Failure: typeof FailureAsyncEvent;
|
|
92
|
+
readonly Success: typeof SuccessAsyncEvent;
|
|
93
|
+
readonly Finally: typeof FinallyAsyncEvent;
|
|
94
|
+
readonly RetryAttempt: typeof RetryAttemptAsyncEvent;
|
|
95
|
+
readonly RetryTimeout: typeof RetryTimeoutAsyncEvent;
|
|
96
|
+
readonly RetryFailure: typeof RetryFailureAsyncEvent;
|
|
97
|
+
readonly TotalTimeoutFailure: typeof TotalTimeoutFailureAsyncEvent;
|
|
98
|
+
readonly Abort: typeof AbortAsyncEvent;
|
|
99
|
+
};
|
|
77
100
|
/**
|
|
78
101
|
*
|
|
79
102
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseEvent } from "../event-bus/contracts/_shared.js";
|
|
2
2
|
/**
|
|
3
|
+
* This event is dispatched when the <i>LazyPromise</i> has been rejected.
|
|
3
4
|
*
|
|
4
5
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
5
6
|
* @group Events
|
|
@@ -7,6 +8,7 @@ import { BaseEvent } from "../event-bus/contracts/_shared.js";
|
|
|
7
8
|
export class FailureAsyncEvent extends BaseEvent {
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
11
|
+
* This event is dispatched when the <i>LazyPromise</i> has been fulfilled.
|
|
10
12
|
*
|
|
11
13
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
12
14
|
* @group Events
|
|
@@ -14,6 +16,7 @@ export class FailureAsyncEvent extends BaseEvent {
|
|
|
14
16
|
export class SuccessAsyncEvent extends BaseEvent {
|
|
15
17
|
}
|
|
16
18
|
/**
|
|
19
|
+
* This event is dispatched when the <i>LazyPromise</i> has been fulfilled or rejected.
|
|
17
20
|
*
|
|
18
21
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
19
22
|
* @group Events
|
|
@@ -22,6 +25,7 @@ export class SuccessAsyncEvent extends BaseEvent {
|
|
|
22
25
|
export class FinallyAsyncEvent extends BaseEvent {
|
|
23
26
|
}
|
|
24
27
|
/**
|
|
28
|
+
* This event is dispatched on every retry attempt of the <i>LazyPromise</i>.
|
|
25
29
|
*
|
|
26
30
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
27
31
|
* @group Events
|
|
@@ -29,6 +33,7 @@ export class FinallyAsyncEvent extends BaseEvent {
|
|
|
29
33
|
export class RetryAttemptAsyncEvent extends BaseEvent {
|
|
30
34
|
}
|
|
31
35
|
/**
|
|
36
|
+
* This event is dispatched when the rety attempt of the <i>LazyPromise</i> has exceeded the given time limit.
|
|
32
37
|
*
|
|
33
38
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
34
39
|
* @group Events
|
|
@@ -36,6 +41,7 @@ export class RetryAttemptAsyncEvent extends BaseEvent {
|
|
|
36
41
|
export class RetryTimeoutAsyncEvent extends BaseEvent {
|
|
37
42
|
}
|
|
38
43
|
/**
|
|
44
|
+
* This event is dispatched when the <i>LazyPromise</i> has failed all retry attempts.
|
|
39
45
|
*
|
|
40
46
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
41
47
|
* @group Events
|
|
@@ -43,6 +49,7 @@ export class RetryTimeoutAsyncEvent extends BaseEvent {
|
|
|
43
49
|
export class RetryFailureAsyncEvent extends BaseEvent {
|
|
44
50
|
}
|
|
45
51
|
/**
|
|
52
|
+
* This event is dispatched when <i>LazyPromise</i> has exceeded the given total time limit.
|
|
46
53
|
*
|
|
47
54
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
48
55
|
* @group Events
|
|
@@ -50,10 +57,26 @@ export class RetryFailureAsyncEvent extends BaseEvent {
|
|
|
50
57
|
export class TotalTimeoutFailureAsyncEvent extends BaseEvent {
|
|
51
58
|
}
|
|
52
59
|
/**
|
|
60
|
+
* This event is dispatched when <i>LazyPromise</i> is aborted.
|
|
53
61
|
*
|
|
54
62
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
55
63
|
* @group Events
|
|
56
64
|
*/
|
|
57
65
|
export class AbortAsyncEvent extends BaseEvent {
|
|
58
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
70
|
+
* @group Events
|
|
71
|
+
*/
|
|
72
|
+
export const ASYNC_EVENTS = {
|
|
73
|
+
Failure: FailureAsyncEvent,
|
|
74
|
+
Success: SuccessAsyncEvent,
|
|
75
|
+
Finally: FinallyAsyncEvent,
|
|
76
|
+
RetryAttempt: RetryAttemptAsyncEvent,
|
|
77
|
+
RetryTimeout: RetryTimeoutAsyncEvent,
|
|
78
|
+
RetryFailure: RetryFailureAsyncEvent,
|
|
79
|
+
TotalTimeoutFailure: TotalTimeoutFailureAsyncEvent,
|
|
80
|
+
Abort: AbortAsyncEvent,
|
|
81
|
+
};
|
|
59
82
|
//# sourceMappingURL=async.events.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async.events.js","sourceRoot":"","sources":["../../src/async/async.events.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D
|
|
1
|
+
{"version":3,"file":"async.events.js","sourceRoot":"","sources":["../../src/async/async.events.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D;;;;;GAKG;AACH,MAAM,OAAO,iBAAkB,SAAQ,SAErC;CAAG;AAEL;;;;;GAKG;AACH,MAAM,OAAO,iBAA0B,SAAQ,SAE7C;CAAG;AAEL;;;;;GAKG;AACH,mEAAmE;AACnE,MAAM,OAAO,iBAAkB,SAAQ,SAAa;CAAG;AAEvD;;;;;GAKG;AACH,MAAM,OAAO,sBAAuB,SAAQ,SAG1C;CAAG;AAEL;;;;;GAKG;AACH,MAAM,OAAO,sBAAuB,SAAQ,SAE1C;CAAG;AAEL;;;;;GAKG;AACH,MAAM,OAAO,sBAAuB,SAAQ,SAE1C;CAAG;AAEL;;;;;GAKG;AACH,MAAM,OAAO,6BAA8B,SAAQ,SAEjD;CAAG;AAEL;;;;;GAKG;AACH,MAAM,OAAO,eAAgB,SAAQ,SAEnC;CAAG;AAEL;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,iBAAiB;IAC1B,YAAY,EAAE,sBAAsB;IACpC,YAAY,EAAE,sBAAsB;IACpC,YAAY,EAAE,sBAAsB;IACpC,mBAAmB,EAAE,6BAA6B;IAClD,KAAK,EAAE,eAAe;CAChB,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { type BackoffPolicy } from "../../../async/backof-policies/_shared.js";
|
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
8
8
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
9
|
-
* @group
|
|
9
|
+
* @group BackoffPolicies
|
|
10
10
|
*/
|
|
11
11
|
export type ConstantBackoffPolicySettings = {
|
|
12
12
|
/**
|
|
@@ -27,6 +27,6 @@ export type ConstantBackoffPolicySettings = {
|
|
|
27
27
|
* Constant backoff policy with jitter
|
|
28
28
|
*
|
|
29
29
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
30
|
-
* @group
|
|
30
|
+
* @group BackoffPolicies
|
|
31
31
|
*/
|
|
32
32
|
export declare function constantBackoffPolicy(settings?: ConstantBackoffPolicySettings | ((error: unknown) => ConstantBackoffPolicySettings)): BackoffPolicy;
|
|
@@ -7,7 +7,7 @@ import { withJitter, } from "../../../async/backof-policies/_shared.js";
|
|
|
7
7
|
* Constant backoff policy with jitter
|
|
8
8
|
*
|
|
9
9
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
10
|
-
* @group
|
|
10
|
+
* @group BackoffPolicies
|
|
11
11
|
*/
|
|
12
12
|
export function constantBackoffPolicy(settings = {}) {
|
|
13
13
|
return (_attempt, error) => {
|
package/dist/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { BackoffPolicy } from "../../../async/backof-policies/_shared.js";
|
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
8
8
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
9
|
-
* @group
|
|
9
|
+
* @group BackoffPolicies
|
|
10
10
|
*/
|
|
11
11
|
export type ExponentialBackoffPolicySettings = {
|
|
12
12
|
/**
|
|
@@ -35,6 +35,6 @@ export type ExponentialBackoffPolicySettings = {
|
|
|
35
35
|
* Exponential backoff policy with jitter
|
|
36
36
|
*
|
|
37
37
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
38
|
-
* @group
|
|
38
|
+
* @group BackoffPolicies
|
|
39
39
|
*/
|
|
40
40
|
export declare function exponentialBackoffPolicy(settings?: ExponentialBackoffPolicySettings | ((error: unknown) => ExponentialBackoffPolicySettings)): BackoffPolicy;
|
|
@@ -7,7 +7,7 @@ import { withJitter } from "../../../async/backof-policies/_shared.js";
|
|
|
7
7
|
* Exponential backoff policy with jitter
|
|
8
8
|
*
|
|
9
9
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
10
|
-
* @group
|
|
10
|
+
* @group BackoffPolicies
|
|
11
11
|
*/
|
|
12
12
|
export function exponentialBackoffPolicy(settings = {}) {
|
|
13
13
|
return (attempt, error) => {
|
|
@@ -6,7 +6,7 @@ import type { BackoffPolicy } from "../../../async/backof-policies/_shared.js";
|
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
8
8
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
9
|
-
* @group
|
|
9
|
+
* @group BackoffPolicies
|
|
10
10
|
*/
|
|
11
11
|
export type LinearBackoffPolicySettings = {
|
|
12
12
|
/**
|
|
@@ -31,6 +31,6 @@ export type LinearBackoffPolicySettings = {
|
|
|
31
31
|
* Linear backoff policy with jitter
|
|
32
32
|
*
|
|
33
33
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
34
|
-
* @group
|
|
34
|
+
* @group BackoffPolicies
|
|
35
35
|
*/
|
|
36
36
|
export declare function linearBackoffPolicy(settings?: LinearBackoffPolicySettings | ((error: unknown) => LinearBackoffPolicySettings)): BackoffPolicy;
|
|
@@ -7,7 +7,7 @@ import { withJitter } from "../../../async/backof-policies/_shared.js";
|
|
|
7
7
|
* Linear backoff policy with jitter
|
|
8
8
|
*
|
|
9
9
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
10
|
-
* @group
|
|
10
|
+
* @group BackoffPolicies
|
|
11
11
|
*/
|
|
12
12
|
export function linearBackoffPolicy(settings = {}) {
|
|
13
13
|
return (attempt, error) => {
|
|
@@ -6,7 +6,7 @@ import type { BackoffPolicy } from "../../../async/backof-policies/_shared.js";
|
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
8
8
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
9
|
-
* @group
|
|
9
|
+
* @group BackoffPolicies
|
|
10
10
|
*/
|
|
11
11
|
export type PolynomialBackoffPolicySettings = {
|
|
12
12
|
/**
|
|
@@ -35,6 +35,6 @@ export type PolynomialBackoffPolicySettings = {
|
|
|
35
35
|
* Polynomial backoff policy with jitter
|
|
36
36
|
*
|
|
37
37
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
38
|
-
* @group
|
|
38
|
+
* @group BackoffPolicies
|
|
39
39
|
*/
|
|
40
40
|
export declare function polynomialBackoffPolicy(settings?: PolynomialBackoffPolicySettings | ((error: unknown) => PolynomialBackoffPolicySettings)): BackoffPolicy;
|
|
@@ -7,7 +7,7 @@ import { withJitter } from "../../../async/backof-policies/_shared.js";
|
|
|
7
7
|
* Polynomial backoff policy with jitter
|
|
8
8
|
*
|
|
9
9
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
10
|
-
* @group
|
|
10
|
+
* @group BackoffPolicies
|
|
11
11
|
*/
|
|
12
12
|
export function polynomialBackoffPolicy(settings = {}) {
|
|
13
13
|
return (attempt, error) => {
|
|
@@ -4,41 +4,8 @@
|
|
|
4
4
|
import type { BackoffPolicy } from "../../../async/backof-policies/_module.js";
|
|
5
5
|
import type { AsyncLazy, Invokable, InvokableFn, ISyncEventListenable, Promisable, TimeSpan } from "../../../utilities/_module-exports.js";
|
|
6
6
|
import type { RetryPolicy } from "../../../async/utilities/retry/_module.js";
|
|
7
|
-
import { TimeoutAsyncError } from "../../../async/async.errors.js";
|
|
8
|
-
import { RetryAsyncError } from "../../../async/async.errors.js";
|
|
9
|
-
import { AbortAsyncError } from "../../../async/async.errors.js";
|
|
10
7
|
import { type AsyncEvents } from "../../../async/async.events.js";
|
|
11
8
|
import type { EventClass, EventListener, EventInstance } from "../../../event-bus/contracts/event-bus.contract.js";
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
15
|
-
* @group Utilities
|
|
16
|
-
*/
|
|
17
|
-
export type AsyncEventMap<TValue = unknown> = {
|
|
18
|
-
failure: {
|
|
19
|
-
error: unknown;
|
|
20
|
-
};
|
|
21
|
-
success: {
|
|
22
|
-
value: TValue;
|
|
23
|
-
};
|
|
24
|
-
finally: undefined;
|
|
25
|
-
retryAttempt: {
|
|
26
|
-
attempt: number;
|
|
27
|
-
error: unknown;
|
|
28
|
-
};
|
|
29
|
-
retryTimeoutFailure: {
|
|
30
|
-
error: TimeoutAsyncError;
|
|
31
|
-
};
|
|
32
|
-
retryFailure: {
|
|
33
|
-
error: RetryAsyncError;
|
|
34
|
-
};
|
|
35
|
-
totalTimeoutFailure: {
|
|
36
|
-
error: TimeoutAsyncError;
|
|
37
|
-
};
|
|
38
|
-
abortFailure: {
|
|
39
|
-
error: AbortAsyncError;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
9
|
/**
|
|
43
10
|
*
|
|
44
11
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
@@ -79,21 +46,20 @@ export type LazyPromiseCallback<TValue> = InvokableFn<[
|
|
|
79
46
|
* The <i>LazyPromise</i> class is used for creating lazy <i>{@link PromiseLike}<i> object that will only execute when awaited or when then method is called.
|
|
80
47
|
* The class includes helpful methods
|
|
81
48
|
* - <i>defer</i>
|
|
82
|
-
* - <i>setRetryAttempts</i>
|
|
83
49
|
* - <i>setRetryTimeout</i>
|
|
84
50
|
* - <i>setRetryPolicy</i>
|
|
85
51
|
* - <i>setBackoffPolicy</i>
|
|
52
|
+
* - <i>setRetryAttempts</i>
|
|
86
53
|
* - <i>setTotalTimeout</i>
|
|
87
54
|
* - <i>setAbortSignal</i>
|
|
88
55
|
*
|
|
89
|
-
* The order in which these methods are called does not
|
|
56
|
+
* The order in which these methods are called does not have any affect. Internally, the following execution order is applied:
|
|
90
57
|
* 1. <i>setRetryTimeout</i>
|
|
91
|
-
* 2. <i>
|
|
92
|
-
* 3. <i>
|
|
93
|
-
* 4. <i>
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* while the <i>abort</i> method takes priority to cancel all operations if activated.
|
|
58
|
+
* 2. <i>setRetryPolicy</i>
|
|
59
|
+
* 3. <i>setBackoffPolicy</i>
|
|
60
|
+
* 4. <i>setRetryAttempts</i>
|
|
61
|
+
* 5. <i>setTotalTimeout</i>
|
|
62
|
+
* 6. <i>setAbortSignal</i>
|
|
97
63
|
*
|
|
98
64
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
99
65
|
* @group Utilities
|
|
@@ -17,21 +17,20 @@ import { AbortAsyncEvent, FailureAsyncEvent, FinallyAsyncEvent, RetryAttemptAsyn
|
|
|
17
17
|
* The <i>LazyPromise</i> class is used for creating lazy <i>{@link PromiseLike}<i> object that will only execute when awaited or when then method is called.
|
|
18
18
|
* The class includes helpful methods
|
|
19
19
|
* - <i>defer</i>
|
|
20
|
-
* - <i>setRetryAttempts</i>
|
|
21
20
|
* - <i>setRetryTimeout</i>
|
|
22
21
|
* - <i>setRetryPolicy</i>
|
|
23
22
|
* - <i>setBackoffPolicy</i>
|
|
23
|
+
* - <i>setRetryAttempts</i>
|
|
24
24
|
* - <i>setTotalTimeout</i>
|
|
25
25
|
* - <i>setAbortSignal</i>
|
|
26
26
|
*
|
|
27
|
-
* The order in which these methods are called does not
|
|
27
|
+
* The order in which these methods are called does not have any affect. Internally, the following execution order is applied:
|
|
28
28
|
* 1. <i>setRetryTimeout</i>
|
|
29
|
-
* 2. <i>
|
|
30
|
-
* 3. <i>
|
|
31
|
-
* 4. <i>
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* while the <i>abort</i> method takes priority to cancel all operations if activated.
|
|
29
|
+
* 2. <i>setRetryPolicy</i>
|
|
30
|
+
* 3. <i>setBackoffPolicy</i>
|
|
31
|
+
* 4. <i>setRetryAttempts</i>
|
|
32
|
+
* 5. <i>setTotalTimeout</i>
|
|
33
|
+
* 6. <i>setAbortSignal</i>
|
|
35
34
|
*
|
|
36
35
|
* IMPORT_PATH: ```"@daiso-tech/core/async"```
|
|
37
36
|
* @group Utilities
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy-promise.js","sourceRoot":"","sources":["../../../../src/async/utilities/lazy-promise/lazy-promise.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO;AACH,6DAA6D;AAC7D,iBAAiB,GACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO;AACH,6DAA6D;AAC7D,eAAe,GAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO;AACH,6DAA6D;AAC7D,eAAe,GAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,GACf,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EACH,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,6BAA6B,GAEhC,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"lazy-promise.js","sourceRoot":"","sources":["../../../../src/async/utilities/lazy-promise/lazy-promise.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO;AACH,6DAA6D;AAC7D,iBAAiB,GACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO;AACH,6DAA6D;AAC7D,eAAe,GAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO;AACH,6DAA6D;AAC7D,eAAe,GAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,GACf,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EACH,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EAC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CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QAClC,CAAC;QACD,qFAAqF;QACrF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IACtD,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,KAAK;QACD,MAAM,SAAS,GAAG,GAAG,EAAE;YACnB,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC;YAClD,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;QAC1B,CAAC,CAAC;QACF,MAAM,SAAS,GAAG,CAAC,KAAa,EAAU,EAAE;YACxC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,iBAAiB,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;YACzD,SAAS,EAAE,CAAC;YACZ,OAAO,KAAK,CAAC;QACjB,CAAC,CAAC;QACF,MAAM,SAAS,GAAG,CAAC,KAAc,EAAW,EAAE;YAC1C,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,iBAAiB,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;YACzD,SAAS,EAAE,CAAC;YACZ,OAAO,KAAK,CAAC;QACjB,CAAC,CAAC;QACF,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACpC,CAAC;CACJ"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module Cache
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { ICache } from "../../cache/contracts/cache.contract.js";
|
|
5
5
|
/**
|
|
6
|
-
* The <i>ICacheFactory</i> contract makes it easy to configure and switch between different <i>{@link
|
|
6
|
+
* The <i>ICacheFactory</i> contract makes it easy to configure and switch between different <i>{@link ICache}</i> dynamically.
|
|
7
7
|
*
|
|
8
8
|
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
9
9
|
* @group Contracts
|
|
@@ -15,5 +15,5 @@ export type ICacheFactory<TAdapters extends string = string> = {
|
|
|
15
15
|
* @throws {UnregisteredAdapterError} {@link UnregisteredAdapterError}
|
|
16
16
|
* @throws {DefaultAdapterNotDefinedError} {@link DefaultAdapterNotDefinedError}
|
|
17
17
|
*/
|
|
18
|
-
use<TType = unknown>(adapterName?: TAdapters):
|
|
18
|
+
use<TType = unknown>(adapterName?: TAdapters): ICache<TType>;
|
|
19
19
|
};
|
|
@@ -172,10 +172,6 @@ export type ICacheBase<TType = unknown> = {
|
|
|
172
172
|
* The <i>clear</i> method removes all the keys in the cache. If a cache is in a group then only the keys part of the group will be removed.
|
|
173
173
|
*/
|
|
174
174
|
clear(): LazyPromise<void>;
|
|
175
|
-
/**
|
|
176
|
-
* The <i>getGroup</i> method returns the group name of the cache. If the cache is not part of a group then null is returned.
|
|
177
|
-
*/
|
|
178
|
-
getGroup(): string | null;
|
|
179
175
|
};
|
|
180
176
|
/**
|
|
181
177
|
* The <i>ICache</i> contract defines a way for as key-value pairs independent of data storage and listening to operation events.
|
|
@@ -184,21 +180,3 @@ export type ICacheBase<TType = unknown> = {
|
|
|
184
180
|
* @group Contracts
|
|
185
181
|
*/
|
|
186
182
|
export type ICache<TType = unknown> = ICacheListenable<TType> & ICacheBase<TType>;
|
|
187
|
-
/**
|
|
188
|
-
* The <i>IGroupableCache</i> contract defines a way for storing and grouping data as key-value pairs independent of data storage.
|
|
189
|
-
*
|
|
190
|
-
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
191
|
-
* @group Contracts
|
|
192
|
-
*/
|
|
193
|
-
export type IGroupableCache<TType = unknown> = ICache<TType> & {
|
|
194
|
-
/**
|
|
195
|
-
* The <i>withGroup</i> method returns a new <i>{@link ICache}</i> instance that groups keys together.
|
|
196
|
-
* Only keys in the same group will be updated, removed, or retrieved, leaving keys outside the group unaffected.
|
|
197
|
-
* This useful for multitennat applications.
|
|
198
|
-
*
|
|
199
|
-
* @param group - can be a string or an <i>Iterable</i> of strings.
|
|
200
|
-
* If it's an <i>Iterable</i>, it will be joined into a single string.
|
|
201
|
-
* Think of an <i>Iterable</i> as representing a path.
|
|
202
|
-
*/
|
|
203
|
-
withGroup(group: OneOrMore<string>): ICache<TType>;
|
|
204
|
-
};
|
|
@@ -23,6 +23,7 @@ export declare class UnexpectedCacheError extends CacheError implements ISeriali
|
|
|
23
23
|
constructor(message: string, cause?: unknown);
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
+
* The error is thrown when attempting to increment or decrement a key that is not of number type.
|
|
26
27
|
*
|
|
27
28
|
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
28
29
|
* @group Errors
|
|
@@ -32,6 +33,7 @@ export declare class TypeCacheError extends CacheError implements ISerializable<
|
|
|
32
33
|
constructor(message: string, cause?: unknown);
|
|
33
34
|
}
|
|
34
35
|
/**
|
|
36
|
+
* The error is thrown when a key is not found
|
|
35
37
|
*
|
|
36
38
|
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
37
39
|
* @group Errors
|
|
@@ -41,7 +43,18 @@ export declare class KeyNotFoundCacheError extends CacheError implements ISerial
|
|
|
41
43
|
constructor(message: string, cause?: unknown);
|
|
42
44
|
}
|
|
43
45
|
/**
|
|
44
|
-
*
|
|
46
|
+
*
|
|
47
|
+
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
48
|
+
* @group Errors
|
|
49
|
+
*/
|
|
50
|
+
export declare const CACHE_ERRORS: {
|
|
51
|
+
readonly Base: typeof CacheError;
|
|
52
|
+
readonly Unexpected: typeof UnexpectedCacheError;
|
|
53
|
+
readonly Type: typeof TypeCacheError;
|
|
54
|
+
readonly KeyNotFound: typeof KeyNotFoundCacheError;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* The <i>registerCacheErrorsToSerde</i> function registers all <i>{@link ICache}</i> related errors with <i>IFlexibleSerde</i>, ensuring they will properly be serialized and deserialized.
|
|
45
58
|
*
|
|
46
59
|
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
47
60
|
* @group Errors
|
|
@@ -38,6 +38,7 @@ export class UnexpectedCacheError extends CacheError {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
+
* The error is thrown when attempting to increment or decrement a key that is not of number type.
|
|
41
42
|
*
|
|
42
43
|
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
43
44
|
* @group Errors
|
|
@@ -52,6 +53,7 @@ export class TypeCacheError extends CacheError {
|
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
/**
|
|
56
|
+
* The error is thrown when a key is not found
|
|
55
57
|
*
|
|
56
58
|
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
57
59
|
* @group Errors
|
|
@@ -66,7 +68,18 @@ export class KeyNotFoundCacheError extends CacheError {
|
|
|
66
68
|
}
|
|
67
69
|
}
|
|
68
70
|
/**
|
|
69
|
-
*
|
|
71
|
+
*
|
|
72
|
+
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
73
|
+
* @group Errors
|
|
74
|
+
*/
|
|
75
|
+
export const CACHE_ERRORS = {
|
|
76
|
+
Base: CacheError,
|
|
77
|
+
Unexpected: UnexpectedCacheError,
|
|
78
|
+
Type: TypeCacheError,
|
|
79
|
+
KeyNotFound: KeyNotFoundCacheError,
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* The <i>registerCacheErrorsToSerde</i> function registers all <i>{@link ICache}</i> related errors with <i>IFlexibleSerde</i>, ensuring they will properly be serialized and deserialized.
|
|
70
83
|
*
|
|
71
84
|
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
72
85
|
* @group Errors
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.errors.js","sourceRoot":"","sources":["../../../src/cache/contracts/cache.errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,OAAO,EACH,IAAI,EACJ,gBAAgB,GAGnB,MAAM,gCAAgC,CAAC;AAExC;;;;GAIG;AACH,MAAM,OAAO,UACT,SAAQ,KAAK;IAGb,MAAM,CAAC,WAAW,CAAC,iBAAmC;QAClD,OAAO,IAAI,UAAU,CACjB,iBAAiB,CAAC,OAAO,EACzB,iBAAiB,CAAC,KAAK,CAC1B,CAAC;IACN,CAAC;IAED,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;IAChC,CAAC;IAED,SAAS;QACL,OAAO;YACH,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;SACpB,CAAC;IACN,CAAC;CACJ;AAED;;;;GAIG;AACH,MAAM,OAAO,oBACT,SAAQ,UAAU;IAGlB,MAAM,CAAU,WAAW,CACvB,iBAAmC;QAEnC,OAAO,IAAI,oBAAoB,CAC3B,iBAAiB,CAAC,OAAO,EACzB,iBAAiB,CAAC,KAAK,CAC1B,CAAC;IACN,CAAC;IAED,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC,IAAI,CAAC;IAC1C,CAAC;CACJ;AAED
|
|
1
|
+
{"version":3,"file":"cache.errors.js","sourceRoot":"","sources":["../../../src/cache/contracts/cache.errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,OAAO,EACH,IAAI,EACJ,gBAAgB,GAGnB,MAAM,gCAAgC,CAAC;AAExC;;;;GAIG;AACH,MAAM,OAAO,UACT,SAAQ,KAAK;IAGb,MAAM,CAAC,WAAW,CAAC,iBAAmC;Q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