@nizza/core 0.6.0-beta.3 → 0.6.0-beta.4
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/index.cjs +20 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1888 -1881
- package/dist/index.mjs.map +1 -1
- package/dist/lib/accounts/core/domain/Account.d.ts +2 -2
- package/dist/lib/accounts/core/domain/Account.d.ts.map +1 -1
- package/dist/lib/add-to-cart/hooks.d.ts.map +1 -1
- package/dist/lib/clean-architecture/domain/AggregateRoot.d.ts.map +1 -0
- package/dist/lib/clean-architecture/domain/ValueObject.d.ts.map +1 -0
- package/dist/lib/clean-architecture/domain/index.d.ts +2 -0
- package/dist/lib/clean-architecture/domain/index.d.ts.map +1 -1
- package/dist/lib/event-buses/BroadcastChannelEventBus.d.ts +5 -5
- package/dist/lib/event-buses/BroadcastChannelEventBus.d.ts.map +1 -1
- package/dist/lib/index.d.ts +0 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/utils/customFetch.d.ts.map +1 -1
- package/dist/lib/utils/getClientTimeZone.d.ts.map +1 -1
- package/dist/lib/utils/logger.d.ts +3 -1
- package/dist/lib/utils/logger.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/lib/domain/AggregateRoot.d.ts.map +0 -1
- package/dist/lib/domain/BaseMobxStore.d.ts +0 -3
- package/dist/lib/domain/BaseMobxStore.d.ts.map +0 -1
- package/dist/lib/domain/ValueObject.d.ts.map +0 -1
- package/dist/lib/domain/index.d.ts +0 -4
- package/dist/lib/domain/index.d.ts.map +0 -1
- package/dist/lib/event-buses/EventEmitter2EventBus.d.ts +0 -9
- package/dist/lib/event-buses/EventEmitter2EventBus.d.ts.map +0 -1
- /package/dist/lib/{domain → clean-architecture/domain}/AggregateRoot.d.ts +0 -0
- /package/dist/lib/{domain → clean-architecture/domain}/ValueObject.d.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AccountCurrencyConfig, AccountGlobalPage, AccountProps, AccountStripe, ExceededFeatures, RawAccount, VariationsConfig } from './types';
|
|
2
2
|
import { AccountContractStatusTypes, AccountContractTypes, AccountPlanDescriptionTypes, AccountTypes } from './shared';
|
|
3
|
-
import { IAggregateRoot } from '../../../
|
|
3
|
+
import { IAggregateRoot } from '../../../clean-architecture';
|
|
4
4
|
|
|
5
5
|
export declare class NizzaAccount implements IAggregateRoot, AccountProps {
|
|
6
|
-
readonly root: import('../../../
|
|
6
|
+
readonly root: import('../../../clean-architecture').AggregateRoot<NizzaAccount, AccountProps>;
|
|
7
7
|
id: string;
|
|
8
8
|
account: string;
|
|
9
9
|
accountType: AccountTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../../../../src/lib/accounts/core/domain/Account.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../../../../src/lib/accounts/core/domain/Account.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAEf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,2BAA2B,EAC3B,YAAY,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAEjB,qBAAa,YAAa,YAAW,cAAc,EAAE,YAAY;IAC/D,QAAQ,CAAC,IAAI,kFAAyD;IAEtE,EAAE,EAAG,MAAM,CAAC;IACZ,OAAO,EAAG,MAAM,CAAC;IACjB,WAAW,eAAwB;IACnC,QAAQ,EAAG,MAAM,CAAC;IAClB,cAAc,EAAG,qBAAqB,CAAC;IACvC,YAAY,EAAG,oBAAoB,CAAC;IACpC,oBAAoB,EAAG,MAAM,CAAC;IAC9B,cAAc,SAAK;IACnB,gBAAgB,UAAS;IACzB,cAAc,SAAK;IACnB,cAAc,6BAAqC;IACnD,SAAS,EAAG,IAAI,CAAC;IACjB,mBAAmB,EAAG,MAAM,CAAC;IAC7B,SAAS,EAAG,MAAM,CAAC;IACnB,WAAW,UAAS;IACpB,gBAAgB,OAAQ;IACxB,gBAAgB,SAAK;IACrB,UAAU,EAAG,iBAAiB,CAAC;IAC/B,MAAM,EAAG,aAAa,CAAC;IACvB,eAAe,EAAG,2BAA2B,CAAC;IAC9C,QAAQ,EAAG,MAAM,CAAC;IAClB,eAAe,EAAG,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,IAAI,OAAQ;IACZ,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;gBAExB,KAAK,EAAE,YAAY;IAI/B,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,UAAU,GAAG,YAAY;IAY9C,YAAY;;;CAOb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/lib/add-to-cart/hooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,sBAAsB,EAKtB,eAAe,EACf,SAAS,EACV,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/lib/add-to-cart/hooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,sBAAsB,EAKtB,eAAe,EACf,SAAS,EACV,MAAM,UAAU,CAAC;AAKlB,eAAO,MAAM,iBAAiB;;;;;CAK7B,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,WAAW,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACvC,MAAM,EAAE,eAAe,CAAC,WAAW,CAAC,iBAmBrC;AA2ID;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,sBAAsB,CAsB5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AggregateRoot.d.ts","sourceRoot":"","sources":["../../../../src/lib/clean-architecture/domain/AggregateRoot.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzC;AAED,qBAAa,aAAa,CAAC,SAAS,EAAE,KAAK;IACzC,OAAO,CAAC,SAAS,CAAY;IAC7B,OAAO,CAAC,mBAAmB,CAAK;gBAEpB,SAAS,EAAE,SAAS;IAIhC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC;IAU9B,IAAI,eAAe,YAElB;CACF;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,mCAEzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValueObject.d.ts","sourceRoot":"","sources":["../../../../src/lib/clean-architecture/domain/ValueObject.ts"],"names":[],"mappings":"AAAA,8BAAsB,WAAW,CAAC,CAAC;IACjC,SAAS,CAAC,MAAM,EAAG,CAAC,CAAC;gBAET,KAAK,CAAC,EAAE,CAAC;IAMrB,IAAI,KAAK,MAER;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/clean-architecture/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/clean-architecture/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
|
|
@@ -13,7 +13,7 @@ export declare class BroadcastChannelEventBus implements EventBus {
|
|
|
13
13
|
/**
|
|
14
14
|
* Subscribe a listener function to a specific event with wildcards.
|
|
15
15
|
*
|
|
16
|
-
* @param {string}
|
|
16
|
+
* @param {string} pattern - The event name to subscribe to. You can use wildcards like 'user:*' or 'chat:**'.
|
|
17
17
|
* @param {EventBusListener} listener - The listener function to handle the event.
|
|
18
18
|
* @returns {EventBusSubscription} - A subscription object that includes the event name and the `off()` function for unsubscribing.
|
|
19
19
|
* @example
|
|
@@ -24,7 +24,7 @@ export declare class BroadcastChannelEventBus implements EventBus {
|
|
|
24
24
|
* console.log('Chat event:', event.name);
|
|
25
25
|
* });
|
|
26
26
|
*/
|
|
27
|
-
on(
|
|
27
|
+
on(pattern: string, listener: EventBusListener): EventBusSubscription;
|
|
28
28
|
/**
|
|
29
29
|
* Emit an event through the BroadcastChannel.
|
|
30
30
|
*
|
|
@@ -50,7 +50,7 @@ export declare class BroadcastChannelEventBus implements EventBus {
|
|
|
50
50
|
* Subscribe a listener function to a specific event.
|
|
51
51
|
*
|
|
52
52
|
* @private
|
|
53
|
-
* @param {string}
|
|
53
|
+
* @param {string} pattern - The pattern to subscribe to.
|
|
54
54
|
* @param {EventBusListener} listener - The listener function to handle the event.
|
|
55
55
|
*/
|
|
56
56
|
private subscribeToEvent;
|
|
@@ -83,8 +83,8 @@ export declare class BroadcastChannelEventBus implements EventBus {
|
|
|
83
83
|
* Match wildcards in event names.
|
|
84
84
|
*
|
|
85
85
|
* @private
|
|
86
|
-
* @param {string}
|
|
87
|
-
* @param {string}
|
|
86
|
+
* @param {string} wildcard - The wildcard pattern to match.
|
|
87
|
+
* @param {string} pattern - The event name to check.
|
|
88
88
|
* @returns {boolean} - `true` if the event name matches the pattern, otherwise `false`.
|
|
89
89
|
*/
|
|
90
90
|
private matchWildcard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BroadcastChannelEventBus.d.ts","sourceRoot":"","sources":["../../../src/lib/event-buses/BroadcastChannelEventBus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EACL,UA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AAC,aAAa;CAYtB"}
|
package/dist/lib/index.d.ts
CHANGED
package/dist/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customFetch.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/customFetch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"customFetch.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/customFetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG7C,wBAAsB,WAAW,CAAC,CAAC,GAAG,GAAG,EACvC,MAAM,EAAE,iBAAiB,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAA;CAAE,GAC1C,OAAO,CAAC,CAAC,CAAC,CAAC;AAEd,wBAAsB,WAAW,CAC/B,MAAM,EAAE,iBAAiB,GAAG;IAAE,GAAG,EAAE,IAAI,CAAA;CAAE,GACxC,OAAO,CAAC,QAAQ,CAAC,CAAC;AA6DrB,OAAO,WAAW,OAAO;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ;AAED,eAAO,MAAM,OAAO,oBAAqB,OAAO,eACmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getClientTimeZone.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/getClientTimeZone.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"getClientTimeZone.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/getClientTimeZone.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,IAAI,aAAa,CA4CjD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Logger as LogLevelLogger } from 'loglevel';
|
|
1
|
+
import { default as log, Logger as LogLevelLogger } from 'loglevel';
|
|
2
2
|
|
|
3
3
|
export declare class Logger {
|
|
4
4
|
private defaultLevel;
|
|
@@ -6,5 +6,7 @@ export declare class Logger {
|
|
|
6
6
|
private provider;
|
|
7
7
|
constructor(namePrefix?: string);
|
|
8
8
|
createLogger(context: string): LogLevelLogger;
|
|
9
|
+
static applyPrefixConfig(logger: LogLevelLogger, componentName?: string): log.Logger;
|
|
10
|
+
private static setLoggerLevel;
|
|
9
11
|
}
|
|
10
12
|
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/logger.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/logger.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,EAAE,EAAgB,MAAM,IAAI,cAAc,EAAU,MAAM,UAAU,CAAC;AAK/E,qBAAa,MAAM;IACjB,OAAO,CAAC,YAAY,CAAuC;IAC3D,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,QAAQ,CAAO;gBAEX,UAAU,CAAC,EAAE,MAAM;IAM/B,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc;IAO7C,MAAM,CAAC,iBAAiB,CAAC,MAAM,EAAE,cAAc,EAAE,aAAa,CAAC,EAAE,MAAM;IASvE,OAAO,CAAC,MAAM,CAAC,cAAc;CAY9B"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AggregateRoot.d.ts","sourceRoot":"","sources":["../../../src/lib/domain/AggregateRoot.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzC;AAED,qBAAa,aAAa,CAAC,SAAS,EAAE,KAAK;IACzC,OAAO,CAAC,SAAS,CAAY;IAC7B,OAAO,CAAC,mBAAmB,CAAK;gBAEpB,SAAS,EAAE,SAAS;IAIhC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC;IAU9B,IAAI,eAAe,YAElB;CACF;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,mCAEzE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseMobxStore.d.ts","sourceRoot":"","sources":["../../../src/lib/domain/BaseMobxStore.ts"],"names":[],"mappings":"AAAA,8BAAsB,aAAa;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ValueObject.d.ts","sourceRoot":"","sources":["../../../src/lib/domain/ValueObject.ts"],"names":[],"mappings":"AAAA,8BAAsB,WAAW,CAAC,CAAC;IACjC,SAAS,CAAC,MAAM,EAAG,CAAC,CAAC;gBAET,KAAK,CAAC,EAAE,CAAC;IAMrB,IAAI,KAAK,MAER;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { EventBus, EventBusListener, EventBusSubscription } from '../types';
|
|
2
|
-
|
|
3
|
-
export declare class EventEmitter2EventBus implements EventBus {
|
|
4
|
-
private emitter;
|
|
5
|
-
constructor();
|
|
6
|
-
on(event: string, listener: EventBusListener): EventBusSubscription;
|
|
7
|
-
emit(event: string, data: any): void;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=EventEmitter2EventBus.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EventEmitter2EventBus.d.ts","sourceRoot":"","sources":["../../../src/lib/event-buses/EventEmitter2EventBus.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EACR,gBAAgB,EAEhB,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAElB,qBAAa,qBAAsB,YAAW,QAAQ;IACpD,OAAO,CAAC,OAAO,CAAgB;;IAS/B,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,gBAAgB,GAAG,oBAAoB;IAgBnE,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI;CASrC"}
|
|
File without changes
|
|
File without changes
|