@nizza/core 0.8.1-beta.0 → 0.8.1-beta.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.
Files changed (65) hide show
  1. package/dist/index.mjs +1673 -1651
  2. package/dist/index.mjs.map +1 -1
  3. package/dist/lib/add-to-cart/add-to-cart.constant.d.ts.map +1 -0
  4. package/dist/lib/add-to-cart/index.d.ts +1 -0
  5. package/dist/lib/add-to-cart/index.d.ts.map +1 -1
  6. package/dist/lib/api-client/client.d.ts +32 -25
  7. package/dist/lib/api-client/client.d.ts.map +1 -1
  8. package/dist/lib/api-client/errors.d.ts +5 -5
  9. package/dist/lib/api-client/errors.d.ts.map +1 -1
  10. package/dist/lib/api-client/types.d.ts +27 -15
  11. package/dist/lib/api-client/types.d.ts.map +1 -1
  12. package/dist/lib/constants/{event.d.ts → event.constant.d.ts} +1 -1
  13. package/dist/lib/constants/event.constant.d.ts.map +1 -0
  14. package/dist/lib/constants/index.d.ts +2 -6
  15. package/dist/lib/constants/index.d.ts.map +1 -1
  16. package/dist/lib/constants/{products.d.ts → product.constant.d.ts} +1 -1
  17. package/dist/lib/constants/product.constant.d.ts.map +1 -0
  18. package/dist/lib/{event-buses/BroadcastChannelEventBus.d.ts → event-bus/broadcast-channel-event-bus.d.ts} +1 -1
  19. package/dist/lib/event-bus/broadcast-channel-event-bus.d.ts.map +1 -0
  20. package/dist/lib/{constants/eventBus.d.ts → event-bus/event-bus.constant.d.ts} +1 -1
  21. package/dist/lib/event-bus/event-bus.constant.d.ts.map +1 -0
  22. package/dist/lib/event-bus/index.d.ts +3 -0
  23. package/dist/lib/event-bus/index.d.ts.map +1 -0
  24. package/dist/lib/i18n/{buildTranslations.d.ts → build-translations.d.ts} +1 -1
  25. package/dist/lib/i18n/build-translations.d.ts.map +1 -0
  26. package/dist/lib/{constants/i18n.d.ts → i18n/i18n.constant.d.ts} +1 -1
  27. package/dist/lib/i18n/i18n.constant.d.ts.map +1 -0
  28. package/dist/lib/i18n/index.d.ts +2 -1
  29. package/dist/lib/i18n/index.d.ts.map +1 -1
  30. package/dist/lib/index.d.ts +1 -1
  31. package/dist/lib/index.d.ts.map +1 -1
  32. package/dist/lib/logger/core/adapters/pino.adapter.d.ts +1 -1
  33. package/dist/lib/logger/core/adapters/pino.adapter.d.ts.map +1 -1
  34. package/dist/lib/logger/core/loggers/console/console.logger.d.ts.map +1 -1
  35. package/dist/lib/logger/core/services/local-storage-level.service.d.ts +1 -1
  36. package/dist/lib/logger/core/utils.d.ts +1 -1
  37. package/dist/lib/logger/helpers.d.ts +5 -0
  38. package/dist/lib/logger/helpers.d.ts.map +1 -0
  39. package/dist/lib/logger/index.d.ts +3 -5
  40. package/dist/lib/logger/index.d.ts.map +1 -1
  41. package/dist/lib/{constants → logger}/log.constant.d.ts +2 -0
  42. package/dist/lib/logger/log.constant.d.ts.map +1 -0
  43. package/dist/lib/nizza-store/hooks.d.ts +1 -1
  44. package/dist/lib/nizza-store/hooks.d.ts.map +1 -1
  45. package/dist/lib/nizza-store/index.d.ts +1 -1
  46. package/dist/lib/nizza-store/index.d.ts.map +1 -1
  47. package/dist/lib/nizza-store/{NizzaStore.d.ts → nizza-store.d.ts} +2 -2
  48. package/dist/lib/nizza-store/{NizzaStore.d.ts.map → nizza-store.d.ts.map} +1 -1
  49. package/dist/lib/types/nizza/globalStore.d.ts +1 -1
  50. package/dist/lib/types/nizza/globalStore.d.ts.map +1 -1
  51. package/dist/lib/utils/nz-api-client.d.ts.map +1 -1
  52. package/package.json +1 -1
  53. package/dist/lib/constants/add-to-cart.constant.d.ts.map +0 -1
  54. package/dist/lib/constants/event.d.ts.map +0 -1
  55. package/dist/lib/constants/eventBus.d.ts.map +0 -1
  56. package/dist/lib/constants/i18n.d.ts.map +0 -1
  57. package/dist/lib/constants/log.constant.d.ts.map +0 -1
  58. package/dist/lib/constants/products.d.ts.map +0 -1
  59. package/dist/lib/event-buses/BroadcastChannelEventBus.d.ts.map +0 -1
  60. package/dist/lib/event-buses/index.d.ts +0 -2
  61. package/dist/lib/event-buses/index.d.ts.map +0 -1
  62. package/dist/lib/i18n/buildTranslations.d.ts.map +0 -1
  63. package/dist/lib/logger/constants.d.ts +0 -3
  64. package/dist/lib/logger/constants.d.ts.map +0 -1
  65. /package/dist/lib/{constants → add-to-cart}/add-to-cart.constant.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-to-cart.constant.d.ts","sourceRoot":"","sources":["../../../src/lib/add-to-cart/add-to-cart.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,IAAI,CAAC"}
@@ -1,2 +1,3 @@
1
+ export * from './add-to-cart.constant';
1
2
  export * from './hooks';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/add-to-cart/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/add-to-cart/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,SAAS,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Variables as LibGraphQLVariables } from 'graphql-request';
2
- import { ApiClientConfig, GraphQLDocument, GraphQLRequestOptions, RawApiResponse, RestRequestConfig, StandardRestResponse } from './types';
2
+ import { ApiConfig, ApiGraphQLDocument, ApiGraphQLRequestConfig, ApiRawResponse, ApiRestRequestConfig, ApiStandardResponse } from './types';
3
3
  /**
4
4
  * ApiClient is a unified HTTP client for making REST and GraphQL requests.
5
5
  * It provides a consistent, library-agnostic interface, robust error handling,
@@ -9,13 +9,13 @@ import { ApiClientConfig, GraphQLDocument, GraphQLRequestOptions, RawApiResponse
9
9
  *
10
10
  * 1. **Prerequisites:**
11
11
  * * Ensure you have an implementation of the `Logger` interface (e.g., from `../logger`).
12
- * * Define a `GetAuthTokenFn` function if you need authenticated requests.
12
+ * * Define a `AuthTokenFn` function if you need authenticated requests.
13
13
  *
14
14
  * 2. **Import necessary items:**
15
15
  * ```typescript
16
16
  * import {
17
17
  * ApiClient,
18
- * type ApiClientConfig,
18
+ * type ApiConfig,
19
19
  * // ... other types and errors
20
20
  * } from './api-client'; // Adjust path to your api-client module
21
21
  * import type { Logger } from '../logger'; // Adjust path
@@ -25,15 +25,15 @@ import { ApiClientConfig, GraphQLDocument, GraphQLRequestOptions, RawApiResponse
25
25
  *
26
26
  * 3. **Define `getAuthToken` function (if using secure requests):**
27
27
  * ```typescript
28
- * const getMyAuthToken: GetAuthTokenFn = async () => {
28
+ * const getMyAuthToken: AuthTokenFn = async () => {
29
29
  * // Example: return (await Auth.currentSession()).getIdToken().getJwtToken();
30
30
  * return 'your-actual-jwt-token-or-null';
31
31
  * };
32
32
  * ```
33
33
  *
34
- * 4. **Create an `ApiClientConfig`:**
34
+ * 4. **Create an `ApiConfig`:**
35
35
  * ```typescript
36
- * const apiClientConfig: ApiClientConfig = {
36
+ * const apiClientConfig: ApiConfig = {
37
37
  * restApiBaseUrl: '[https://api.example.com/v1](https://api.example.com/v1)', // Required
38
38
  * graphqlApiBaseUrl: '[https://api.example.com/graphql](https://api.example.com/graphql)', // Required
39
39
  * logger: myLoggerInstance, // Required
@@ -56,8 +56,8 @@ import { ApiClientConfig, GraphQLDocument, GraphQLRequestOptions, RawApiResponse
56
56
  * See the JSDoc for the `graphql` method for detailed examples.
57
57
  *
58
58
  * ## Error Handling
59
- * The `ApiClient` throws custom error types extending `ApiError` (e.g., `RestApiError`,
60
- * `GraphQLApiError`, `TimeoutError`, `NetworkError`). Use `instanceof` for granular
59
+ * The `ApiClient` throws custom error types extending `ApiError` (e.g., `ApiRestError`,
60
+ * `ApiGraphQLError`, `ApiTimeoutError`, `ApiNetworkError`). Use `instanceof` for granular
61
61
  * error handling.
62
62
  *
63
63
  * ## `_rawData` Field in REST Responses
@@ -68,44 +68,45 @@ export declare class ApiClient {
68
68
  private readonly logger;
69
69
  private readonly defaultTimeout;
70
70
  private readonly getAuthTokenFn;
71
+ private readonly getAccountFn;
71
72
  private readonly axiosInstance;
72
73
  private readonly graphqlClient;
73
74
  readonly restBaseUrl: string;
74
75
  readonly graphqlApiBaseUrl: string;
75
76
  /**
76
77
  * Creates an instance of ApiClient.
77
- * @param {ApiClientConfig} config - Configuration for the ApiClient.
78
+ * @param {ApiConfig} config - Configuration for the ApiClient.
78
79
  * `restApiBaseUrl`, `graphqlApiBaseUrl`, and `logger` are required.
79
80
  * @throws {Error} If required configuration properties are missing.
80
81
  */
81
- constructor(config: ApiClientConfig);
82
+ constructor(config: ApiConfig);
82
83
  /**
83
84
  * Performs a REST request and returns a library-agnostic raw response.
84
85
  * Use this when you need access to status codes, headers, or non-JSON response bodies.
85
86
  *
86
87
  * @template TData The expected type of the raw response body (e.g., string, ArrayBuffer).
87
- * @param {RestRequestConfig & { raw: true }} config Configuration for the REST request, with `raw` set to true.
88
- * @returns {Promise<RawApiResponse<TData>>} A promise resolving to a `RawApiResponse` object.
89
- * @throws {RestApiError | TimeoutError | NetworkError | ApiError} Throws a custom API error on failure.
88
+ * @param {ApiRestRequestConfig & { raw: true }} config Configuration for the REST request, with `raw` set to true.
89
+ * @returns {Promise<ApiRawResponse<TData>>} A promise resolving to a `ApiRawResponse` object.
90
+ * @throws {ApiRestError | ApiTimeoutError | ApiNetworkError | ApiError} Throws a custom API error on failure.
90
91
  */
91
- rest<TData = any>(config: RestRequestConfig & {
92
+ rest<TData = any>(config: ApiRestRequestConfig & {
92
93
  raw: true;
93
- }): Promise<RawApiResponse<TData>>;
94
+ }): Promise<ApiRawResponse<TData>>;
94
95
  /**
95
96
  * Performs a REST request and returns a processed response compatible with legacy customFetch.
96
97
  * This is the default behavior.
97
98
  *
98
99
  * @template TData The expected type of the data in the JSON response body.
99
- * @param {RestRequestConfig} config Configuration for the REST request. `raw` should be falsy.
100
- * @returns {Promise<StandardRestResponse<TData>>}
100
+ * @param {ApiRestRequestConfig} config Configuration for the REST request. `raw` should be falsy.
101
+ * @returns {Promise<ApiStandardResponse<TData>>}
101
102
  * A promise resolving to an object:
102
103
  * - If TData is an object: `TData` spread with `success` and `statusCode`.
103
104
  * - If TData is not an object: `{ _rawData: TData, success: boolean, statusCode: number }`.
104
- * @throws {RestApiError | TimeoutError | NetworkError | ApiError} Throws a custom API error on failure.
105
+ * @throws {ApiRestError | ApiTimeoutError | ApiNetworkError | ApiError} Throws a custom API error on failure.
105
106
  */
106
- rest<TData = any>(config: RestRequestConfig & {
107
+ rest<TData = any>(config: ApiRestRequestConfig & {
107
108
  raw?: false | undefined;
108
- }): Promise<StandardRestResponse<TData>>;
109
+ }): Promise<ApiStandardResponse<TData>>;
109
110
  /**
110
111
  * Performs a GraphQL request with improved type inference using TypedDocumentNode.
111
112
  * If a plain string or a non-typed DocumentNode is passed, TResult (response data type)
@@ -115,13 +116,13 @@ export declare class ApiClient {
115
116
  * This is often inferred if a TypedDocumentNode is provided as the `document`.
116
117
  * @template TVars The shape of the variables object for the GraphQL query/mutation.
117
118
  * This is also often inferred if a TypedDocumentNode is provided.
118
- * @param {GraphQLDocument<TResult, TVars>} document The GraphQL query or mutation.
119
- * Your `GraphQLDocument` type should be `string | LibGraphQLRequestDocument | TypedDocumentNode<TResult, TVars>`.
119
+ * @param {ApiGraphQLDocument<TResult, TVars>} document The GraphQL query or mutation.
120
+ * Your `ApiGraphQLDocument` type should be `string | LibGraphQLRequestDocument | TypedDocumentNode<TResult, TVars>`.
120
121
  * @param {TVars} [variables] An object containing variables for the GraphQL request.
121
122
  * The type should match the variables expected by the document.
122
- * @param {GraphQLRequestOptions} [options={}] Optional configurations for this GraphQL request.
123
+ * @param {ApiGraphQLRequestConfig} [options={}] Optional configurations for this GraphQL request.
123
124
  * @returns {Promise<TResult>} A promise that resolves to the typed data from the GraphQL response.
124
- * @throws {GraphQLApiError | TimeoutError | NetworkError | ApiError} Throws a custom API error on failure.
125
+ * @throws {ApiGraphQLError | ApiTimeoutError | ApiNetworkError | ApiError} Throws a custom API error on failure.
125
126
  *
126
127
  * @example
127
128
  * // Assuming GetUserDocument is a TypedDocumentNode<UserData, UserVars>
@@ -134,7 +135,7 @@ export declare class ApiClient {
134
135
  * // );
135
136
  * // console.log(specificField);
136
137
  */
137
- graphql<TResult = any, TVars extends LibGraphQLVariables = LibGraphQLVariables>(document: GraphQLDocument<TResult, TVars>, variables?: TVars, options?: GraphQLRequestOptions): Promise<TResult>;
138
+ graphql<TResult = any, TVars extends LibGraphQLVariables = LibGraphQLVariables>(document: ApiGraphQLDocument<TResult, TVars>, variables?: TVars, options?: ApiGraphQLRequestConfig): Promise<TResult>;
138
139
  /**
139
140
  * Executes the actual REST request using the configured Axios instance.
140
141
  * @private
@@ -170,6 +171,12 @@ export declare class ApiClient {
170
171
  * @returns {Promise<string | null>} The JWT token or null if unavailable/error.
171
172
  */
172
173
  private getAuthToken;
174
+ /**
175
+ * Retrieves the account identifier using the injected `getAccountFn`.
176
+ * @private
177
+ * @returns {Promise<string | null>} The account identifier or null if unavailable/error.
178
+ */
179
+ private getAccount;
173
180
  /**
174
181
  * Prepares request headers, primarily for authentication.
175
182
  * It merges existing headers with authentication headers if `secure` is true.
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/lib/api-client/client.ts"],"names":[],"mappings":"AAOA,OAAO,EAIL,KAAK,SAAS,IAAI,mBAAmB,EACtC,MAAM,iBAAiB,CAAC;AASzB,OAAO,KAAK,EACV,eAAe,EAEf,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAGjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;IACxC,OAAO,CAAC,QAAQ,CAA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AAQ,EAAE,kBAAkB,CAAC,OAAO,EAAE,KAAK,CAAC,EAC5C,SAAS,CAAC,EAAE,KAAK,EACjB,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,OAAO,CAAC;IAiCnB;;;OAGG;YACW,kBAAkB;IAMhC;;;OAGG;IACH,OAAO,CAAC,2BAA2B;IAyBnC;;;;;OAKG;IACH,OAAO,CAAC,eAAe;IAsDvB;;;OAGG;YACW,qBAAqB;IAOnC;;;;;OAKG;IACH,OAAO,CAAC,kBAAkB;IA2C1B;;;;OAIG;YACW,YAAY;IAa1B;;;;OAIG;YACW,UAAU;IAaxB;;;;;;OAMG;YACW,kBAAkB;IAmDhC;;;;;;;;OAQG;IACH,OAAO,CAAC,iBAAiB;CAuC1B"}
@@ -12,19 +12,19 @@ export declare class ApiError extends Error {
12
12
  /** The original error object, useful for debugging underlying issues. */
13
13
  readonly originalError?: any;
14
14
  /** Discriminator property to easily identify errors from this client. */
15
- readonly isApiClientError: boolean;
15
+ readonly isApiError: boolean;
16
16
  constructor(message: string, originalError?: any);
17
17
  }
18
18
  /**
19
19
  * Represents an error due to a request timeout.
20
20
  */
21
- export declare class TimeoutError extends ApiError {
21
+ export declare class ApiTimeoutError extends ApiError {
22
22
  constructor(message?: string, originalError?: any);
23
23
  }
24
24
  /**
25
25
  * Represents an error due to network issues (e.g., connectivity problems).
26
26
  */
27
- export declare class NetworkError extends ApiError {
27
+ export declare class ApiNetworkError extends ApiError {
28
28
  constructor(message?: string, originalError?: any);
29
29
  }
30
30
  /**
@@ -39,7 +39,7 @@ export interface RestApiResponseErrorContext {
39
39
  * Represents an error specific to a REST API request,
40
40
  * often including details from the HTTP response.
41
41
  */
42
- export declare class RestApiError extends ApiError {
42
+ export declare class ApiRestError extends ApiError {
43
43
  readonly response?: RestApiResponseErrorContext;
44
44
  constructor(message: string, response?: RestApiResponseErrorContext, originalError?: any);
45
45
  }
@@ -58,7 +58,7 @@ export interface GraphQLResponseErrorContext {
58
58
  * Represents an error specific to a GraphQL API request,
59
59
  * often including GraphQL-specific error details.
60
60
  */
61
- export declare class GraphQLApiError extends ApiError {
61
+ export declare class ApiGraphQLError extends ApiError {
62
62
  readonly response?: GraphQLResponseErrorContext;
63
63
  constructor(message: string, response?: GraphQLResponseErrorContext, originalError?: any);
64
64
  }
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/lib/api-client/errors.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AAEH;;;GAGG;AACH,qBAAa,QAAS,SAAQ,KAAK;IACjC,yEAAyE;IACzE,SAAgB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpC,yEAAyE;IACzE,SAAgB,gBAAgB,EAAE,OAAO,CAAQ;gBAErC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,GAAG;CAOjD;AAED;;GAEG;AACH,qBAAa,YAAa,SAAQ,QAAQ;gBAC5B,OAAO,SAAsB,EAAE,aAAa,CAAC,EAAE,GAAG;CAG/D;AAED;;GAEG;AACH,qBAAa,YAAa,SAAQ,QAAQ;gBAC5B,OAAO,SAA6B,EAAE,aAAa,CAAC,EAAE,GAAG;CAGtE;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;IACV,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;CACxD;AAED;;;GAGG;AACH,qBAAa,YAAa,SAAQ,QAAQ;IACxC,SAAgB,QAAQ,CAAC,EAAE,2BAA2B,CAAC;gBAGrD,OAAO,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,2BAA2B,EACtC,aAAa,CAAC,EAAE,GAAG;CAKtB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,MAAM,CA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G;AACH,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC,CAAC;CACzD;AAED;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C,SAAgB,QAAQ,CAAC,EAAE,2BAA2B,CAAC;gBAGrD,OAAO,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,2BAA2B,EACtC,aAAa,CAAC,EAAE,GAAG;CAKtB"}
@@ -5,11 +5,16 @@ import { Logger } from '../logger';
5
5
  * Signature for a function that retrieves an authentication token.
6
6
  * @returns A Promise resolving to the token string or null if unavailable.
7
7
  */
8
- export type GetAuthTokenFn = () => Promise<string | null>;
8
+ export type AuthTokenFn = () => Promise<string | null>;
9
+ /**
10
+ * Signature for a function that retrieves the current account identifier.
11
+ * @returns A Promise resolving to the account string or null if unavailable.
12
+ */
13
+ export type AccountFn = () => Promise<string | null>;
9
14
  /**
10
15
  * Configuration for the ApiClient constructor.
11
16
  */
12
- export interface ApiClientConfig {
17
+ export interface ApiConfig {
13
18
  /** Base URL for REST API requests. This is a **required** field. */
14
19
  restApiBaseUrl: string;
15
20
  /** Base URL for GraphQL API requests. This is a **required** field. */
@@ -23,12 +28,19 @@ export interface ApiClientConfig {
23
28
  * Strongly recommended if you intend to make secure requests (`secure: true`).
24
29
  * If not provided, secure calls will attempt to proceed without a token unless this function is a no-op.
25
30
  */
26
- getAuthToken?: GetAuthTokenFn;
31
+ getAuthToken?: AuthTokenFn;
32
+ /**
33
+ * An optional function to retrieve the current account identifier.
34
+ * Highly recommended if you intend to make secure requests (`secure: true`) without always
35
+ * passing the `account` option manually. When both the option and this function return
36
+ * a value, the value provided explicitly in the request takes precedence.
37
+ */
38
+ getAccount?: AccountFn;
27
39
  }
28
40
  /**
29
41
  * Base options applicable to authenticated requests and timeout/cancellation.
30
42
  */
31
- interface BaseRequestOptions {
43
+ interface ApiBaseRequestOptions {
32
44
  /** If true, the request will attempt to include an Authorization token. Defaults to false. */
33
45
  secure?: boolean;
34
46
  /** Account identifier, often included in a custom header (e.g., 'ls-account') if 'secure' is true. */
@@ -41,7 +53,7 @@ interface BaseRequestOptions {
41
53
  /**
42
54
  * Configuration for a REST request made via the `apiClient.rest()` method.
43
55
  */
44
- export interface RestRequestConfig extends BaseRequestOptions {
56
+ export interface ApiRestRequestConfig extends ApiBaseRequestOptions {
45
57
  /**
46
58
  * Relative path for the REST request (e.g., 'users/1').
47
59
  * If not provided, it is assumed that path = "" but it is necessary to provide baseURL
@@ -58,7 +70,7 @@ export interface RestRequestConfig extends BaseRequestOptions {
58
70
  /** Custom headers for this specific request. */
59
71
  headers?: Record<string, string>;
60
72
  /**
61
- * If true, returns a library-agnostic `RawApiResponse` object.
73
+ * If true, returns a library-agnostic `ApiRawResponse` object.
62
74
  * If false (default), returns a `customFetch`-compatible structure (see `ApiClient.rest` method docs).
63
75
  */
64
76
  raw?: boolean;
@@ -72,10 +84,10 @@ export interface RestRequestConfig extends BaseRequestOptions {
72
84
  }
73
85
  /**
74
86
  * Defines the structure for a "raw" API response.
75
- * This is used when `raw: true` is specified in `RestRequestConfig`.
87
+ * This is used when `raw: true` is specified in `ApiRestRequestConfig`.
76
88
  * @template TData The expected type of the raw response data.
77
89
  */
78
- export interface RawApiResponse<TData = any> {
90
+ export interface ApiRawResponse<TData = any> {
79
91
  status: number;
80
92
  data: TData;
81
93
  headers: Record<string, string | string[] | undefined>;
@@ -85,19 +97,19 @@ export interface RawApiResponse<TData = any> {
85
97
  * and the response data from the API is not a plain JavaScript object (e.g., an array or primitive).
86
98
  * In such cases, `_rawData` contains the original parsed response data.
87
99
  */
88
- export type NonObjectRestResponse<TData> = {
100
+ export type ApiNonObjectResponse<TData> = {
89
101
  _rawData: TData;
90
102
  success: boolean;
91
103
  statusCode: number;
92
104
  };
93
- export type CustomFieldsRestResponse = {
105
+ export type ApiCustomFieldsResponse = {
94
106
  success: boolean;
95
107
  statusCode: number;
96
108
  };
97
109
  /**
98
110
  * A utility type that evaluates to `true` if T is a plain, "spreadable" object,
99
111
  * and `false` otherwise (e.g., for arrays, functions, dates, primitives).
100
- * This is an internal helper type for StandardRestResponse.
112
+ * This is an internal helper type for ApiStandardResponse.
101
113
  * @template T The type to check.
102
114
  */
103
115
  type IsSpreadableObject<T> = T extends any[] | Date | Function ? false : T extends object ? true : false;
@@ -110,11 +122,11 @@ type IsSpreadableObject<T> = T extends any[] | Date | Function ? false : T exten
110
122
  *
111
123
  * @template TData The expected type of the data in the response body.
112
124
  */
113
- export type StandardRestResponse<TData> = IsSpreadableObject<TData> extends true ? TData & CustomFieldsRestResponse : NonObjectRestResponse<TData>;
125
+ export type ApiStandardResponse<TData> = IsSpreadableObject<TData> extends true ? TData & ApiCustomFieldsResponse : ApiNonObjectResponse<TData>;
114
126
  /**
115
127
  * Configuration options for a GraphQL request made via `apiClient.graphql()`.
116
128
  */
117
- export interface GraphQLRequestOptions extends BaseRequestOptions {
129
+ export interface ApiGraphQLRequestConfig extends ApiBaseRequestOptions {
118
130
  /** Custom headers for this specific GraphQL request. Can be a plain object or HeadersInit. */
119
131
  headers?: Record<string, string> | HeadersInit;
120
132
  }
@@ -122,11 +134,11 @@ export interface GraphQLRequestOptions extends BaseRequestOptions {
122
134
  * Represents the GraphQL document, which can be a string or a parsed AST Node.
123
135
  * `LibGraphQLRequestDocument` is typically `graphql.DocumentNode`.
124
136
  */
125
- export type GraphQLDocument<TResult = any, TVariables = Record<string, any>> = string | LibGraphQLRequestDocument | TypedDocumentNode<TResult, TVariables>;
137
+ export type ApiGraphQLDocument<TResult = any, TVariables = Record<string, any>> = string | LibGraphQLRequestDocument | TypedDocumentNode<TResult, TVariables>;
126
138
  /**
127
139
  * Represents variables for a GraphQL request.
128
140
  * It's an object where keys are variable names and values are their corresponding values.
129
141
  */
130
- export type GraphQLVariables = Record<string, any>;
142
+ export type ApiGraphQLVariables = Record<string, any>;
131
143
  export {};
132
144
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/api-client/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,IAAI,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,oEAAoE;IACpE,cAAc,EAAE,MAAM,CAAC;IACvB,uEAAuE;IACvE,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0FAA0F;IAC1F,MAAM,EAAE,MAAM,CAAC;IACf,iFAAiF;IACjF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC;CAC/B;AAED;;GAEG;AACH,UAAU,kBAAkB;IAC1B,8FAA8F;IAC9F,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,sGAAsG;IACtG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yFAAyF;IACzF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GA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AAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;GAKG;AAEH,KAAK,kBAAkB,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,EAAE,GAAG,IAAI,GAAG,QAAQ,GAC1D,KAAK,GACL,CAAC,SAAS,MAAM,GAChB,IAAI,GACJ,KAAK,CAAC;AAEV;;;;;;;;GAQG;AACH,MAAM,MAAM,mBAAmB,CAAC,KAAK,IAAI,kBAAkB,CAAC,KAAK,CAAC,SAAS,IAAI,GAC3E,KAAK,GAAG,uBAAuB,GAC/B,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAEhC;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,qBAAqB;IACpE,8FAA8F;IAC9F,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,WAAW,CAAC;CAChD;AAED;;;GAGG;AACH,MAAM,MAAM,kBAAkB,CAAC,OAAO,GAAG,GAAG,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAC1E,MAAM,GACN,yBAAyB,GACzB,iBAAiB,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;AAE3C;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -4,4 +4,4 @@ export declare enum NizzaEventStatus {
4
4
  LIVE = "LIVE",
5
5
  FINALIZED = "FINALIZED"
6
6
  }
7
- //# sourceMappingURL=event.d.ts.map
7
+ //# sourceMappingURL=event.constant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.constant.d.ts","sourceRoot":"","sources":["../../../src/lib/constants/event.constant.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,SAAS,cAAc;CACxB"}
@@ -1,7 +1,3 @@
1
- export * from './add-to-cart.constant';
2
- export * from './event';
3
- export * from './eventBus';
4
- export * from './i18n';
5
- export * from './log.constant';
6
- export * from './products';
1
+ export * from './event.constant';
2
+ export * from './product.constant';
7
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
@@ -10,4 +10,4 @@ export declare enum NizzaProductRequestOriginTypes {
10
10
  FAST_STORE = "faststore",
11
11
  UNKNOWN = "unknown"
12
12
  }
13
- //# sourceMappingURL=products.d.ts.map
13
+ //# sourceMappingURL=product.constant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.constant.d.ts","sourceRoot":"","sources":["../../../src/lib/constants/product.constant.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,KAAK,UAAU;IACf,KAAK,WAAW;CACjB;AAED,oBAAY,8BAA8B;IACxC,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,WAAW,eAAe;IAC1B,aAAa,kBAAkB;IAC/B,UAAU,cAAc;IACxB,OAAO,YAAY;CACpB"}
@@ -88,4 +88,4 @@ export declare class BroadcastChannelEventBus implements EventBus {
88
88
  */
89
89
  private matchWildcard;
90
90
  }
91
- //# sourceMappingURL=BroadcastChannelEventBus.d.ts.map
91
+ //# sourceMappingURL=broadcast-channel-event-bus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"broadcast-channel-event-bus.d.ts","sourceRoot":"","sources":["../../../src/lib/event-bus/broadcast-channel-event-bus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EACL,UAAU,EAEV,QAAQ,EACR,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAElB;;GAEG;AACH,qBAAa,wBAAyB,YAAW,QAAQ;IACvD,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAAmB;IAClC,OAAO,CAAC,SAAS,CAAiD;IAClE,OAAO,CAAC,UAAU,CAAiD;gBAEvD,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAe/C;;;;;;;;;;;;;OAaG;IACH,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,gBAAgB,GAAG,oBAAoB;IAQrE;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,GAAE,UAAe,GAAG,IAAI;IAK5D;;;;;OAKG;IACH,OAAO,CAAC,aAAa;IAerB;;;;;;OAMG;IACH,OAAO,CAAC,gBAAgB;IAsCxB;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS;IAgCjB;;;;;;OAMG;IACH,OAAO,CAAE,oBAAoB;IAa7B;;;;;;OAMG;IACH,OAAO,CAAC,oBAAoB;IAgB5B;;;;;;;OAOG;IACH,OAAO,CAAC,aAAa;CAYtB"}
@@ -35,4 +35,4 @@ export declare const EventNames: {
35
35
  /** AddToCartHook events */
36
36
  readonly ATCH_ACTION_EXECUTED: "core:addToCartHooks:actionExecuted";
37
37
  };
38
- //# sourceMappingURL=eventBus.d.ts.map
38
+ //# sourceMappingURL=event-bus.constant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-bus.constant.d.ts","sourceRoot":"","sources":["../../../src/lib/event-bus/event-bus.constant.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;CAapB,CAAC;AAEX;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU;;IAErB,2BAA2B;;CAEnB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './broadcast-channel-event-bus';
2
+ export * from './event-bus.constant';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/event-bus/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC"}
@@ -3,4 +3,4 @@ import { TranslationFiles, Translations } from '../types';
3
3
  export declare function buildLanguageTranslations(langTranslations: Record<string, Record<string, string>>): Record<string, string>;
4
4
  export declare function buildTranslations(translationFiles: TranslationFiles): Translations;
5
5
  export declare function registerTranslationsOf(i18Instance: i18n, translationFiles: TranslationFiles): void;
6
- //# sourceMappingURL=buildTranslations.d.ts.map
6
+ //# sourceMappingURL=build-translations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-translations.d.ts","sourceRoot":"","sources":["../../../src/lib/i18n/build-translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE1D,wBAAgB,yBAAyB,CACvC,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACvD,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAGxB;AAED,wBAAgB,iBAAiB,CAC/B,gBAAgB,EAAE,gBAAgB,GACjC,YAAY,CAQd;AAED,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,IAAI,EACjB,gBAAgB,EAAE,gBAAgB,GACjC,IAAI,CAMN"}
@@ -3,4 +3,4 @@ export declare enum LanguageTypes {
3
3
  Spanish = "es",
4
4
  Portuguese = "pt"
5
5
  }
6
- //# sourceMappingURL=i18n.d.ts.map
6
+ //# sourceMappingURL=i18n.constant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.constant.d.ts","sourceRoot":"","sources":["../../../src/lib/i18n/i18n.constant.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,OAAO,OAAO;IACd,OAAO,OAAO;IACd,UAAU,OAAO;CAClB"}
@@ -1,4 +1,5 @@
1
- export * from './buildTranslations';
1
+ export * from './build-translations';
2
+ export * from './i18n.constant';
2
3
  export * from './init';
3
4
  export * from './nizza';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/i18n/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/i18n/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
@@ -6,7 +6,7 @@ export * from './constants';
6
6
  export * from './dependency-injector';
7
7
  export * from './dexie';
8
8
  export * from './errors';
9
- export * from './event-buses';
9
+ export * from './event-bus';
10
10
  export * from './i18n';
11
11
  export * from './ivs';
12
12
  export * from './lit';
@@ -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,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,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,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -1,4 +1,4 @@
1
- import { LogLevel } from '../../../constants';
1
+ import { LogLevel } from '../../log.constant';
2
2
  import { LevelService, LogEntry, LoggerAdapter, LoggerMetadata } from '../../types';
3
3
  import { ConsoleLogger } from '../loggers/console';
4
4
  import { HttpLogger } from '../loggers/http.logger';
@@ -1 +1 @@
1
- {"version":3,"file":"pino.adapter.d.ts","sourceRoot":"","sources":["../../../../../src/lib/logger/core/adapters/pino.adapter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAoB,MAAM,oBAAoB,CAAC;AAEhE,OAAO,EAEL,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,cAAc,EACf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAA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G;IACI,WAAW,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI;IAIlD;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAyBtB;;;;;OAKG;IACH,OAAO,CAAC,SAAS;IAWjB;;;;;OAKG;IACH,OAAO,CAAC,GAAG;IAQJ,KAAK,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAI5B,KAAK,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAI5B,IAAI,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAI3B,IAAI,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAI3B,KAAK,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAI5B,KAAK,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAInC,IAAI,MAAM,IAAI,MAAM,CAEnB;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"console.logger.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/logger/core/loggers/console/console.logger.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC;;GAEG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,KAAK,CAAmB;;IAOhC;;;OAGG;IACH,OAAO,CAAC,eAAe;IAQvB;;;OAGG;IACH,OAAO,CAAC,WAAW;IAMnB;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAQhC;;;OAGG;WACW,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI;IAIrD;;;;OAIG;IACH,OAAO,CAAC,WAAW;IAOnB;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAUjB;;;OAGG;IACH,OAAO,CAAC,OAAO;IAOf;;;OAGG;IACI,KAAK,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;CA4BtE"}
1
+ {"version":3,"file":"console.logger.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/logger/core/loggers/console/console.logger.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIxC;;GAEG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,KAAK,CAAmB;;IAOhC;;;OAGG;IACH,OAAO,CAAC,eAAe;IAQvB;;;OAGG;IACH,OAAO,CAAC,WAAW;IAMnB;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAQhC;;;OAGG;WACW,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI;IAIrD;;;;OAIG;IACH,OAAO,CAAC,WAAW;IAOnB;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAUjB;;;OAGG;IACH,OAAO,CAAC,OAAO;IAOf;;;OAGG;IACI,KAAK,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;CA4BtE"}
@@ -1,4 +1,4 @@
1
- import { LogLevel } from '../../../constants';
1
+ import { LogLevel } from '../../log.constant';
2
2
  import { LevelService } from '../../types';
3
3
  export declare const LOGLEVEL_PATTERNS_KEY: "loglevel-patterns";
4
4
  export declare const LOGLEVEL_PREFIX: "loglevel:";
@@ -1,4 +1,4 @@
1
- import { LogLevel } from '../../constants';
1
+ import { LogLevel } from '../log.constant';
2
2
  /**
3
3
  * Validates whether a given value is a valid LogTypes.
4
4
  * @param value - The value to validate.
@@ -0,0 +1,5 @@
1
+ import { BaseDB } from '../dexie/base-db';
2
+ import { Logger } from './logger';
3
+ export declare function createNizzaLogger(source: string): Logger;
4
+ export declare function createPinoLogger(project: string, db: BaseDB): Logger;
5
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/lib/logger/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAM1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAGxD;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CASpE"}
@@ -1,6 +1,4 @@
1
- import { BaseDB } from '../dexie/base-db';
2
- import { Logger } from './logger';
3
- export declare function createNizzaLogger(source: string): Logger;
4
- export declare function createPinoLogger(project: string, db: BaseDB): Logger;
5
- export { Logger };
1
+ export * from './helpers';
2
+ export * from './log.constant';
3
+ export * from './logger';
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/logger/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAM1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAGxD;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CASpE;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/logger/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { HttpLoggerConfig } from './types';
2
+ export declare const defaultHttpLoggerConfig: Partial<HttpLoggerConfig>;
1
3
  export declare enum LogLevel {
2
4
  TRACE = "trace",
3
5
  DEBUG = "debug",
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log.constant.d.ts","sourceRoot":"","sources":["../../../src/lib/logger/log.constant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,uBAAuB,EAAE,OAAO,CAAC,gBAAgB,CAO7D,CAAC;AAEF,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAOrD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAO1D,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { UseSelectConfig } from '../mobx';
2
- import { NizzaStore } from './NizzaStore';
2
+ import { NizzaStore } from './nizza-store';
3
3
  /**
4
4
  * Returns the NizzaStore using memoization.
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/lib/nizza-store/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,eAAe,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAY,UAAU,EAAE,MAAM,cAAc,CAAC;AAEpD;;;;GAIG;AACH,wBAAgB,KAAK,IAAI,UAAU,CAElC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,CAAC,EAClC,MAAM,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,CAAC,CAGH"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/lib/nizza-store/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,eAAe,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAY,UAAU,EAAE,MAAM,eAAe,CAAC;AAErD;;;;GAIG;AACH,wBAAgB,KAAK,IAAI,UAAU,CAElC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,CAAC,EAClC,MAAM,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,CAAC,CAGH"}
@@ -1,4 +1,4 @@
1
1
  export * from './helpers';
2
2
  export * from './hooks';
3
- export * from './NizzaStore';
3
+ export * from './nizza-store';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/nizza-store/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/nizza-store/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { NizzaAccount, PrivateNizzaAccount } from '../accounts';
2
2
  import { NizzaDB } from '../dexie/nizza-db';
3
- import { BroadcastChannelEventBus } from '../event-buses';
3
+ import { BroadcastChannelEventBus } from '../event-bus';
4
4
  import { AccountStatus, AddToCartConfig, INizzaStore, NizzaConfig, NizzaProductDataSource } from '../types';
5
5
  export declare class NizzaStore implements INizzaStore {
6
6
  static readonly version = "11";
@@ -80,4 +80,4 @@ export declare class NizzaStore implements INizzaStore {
80
80
  * @param onInit Callback after first account load
81
81
  */
82
82
  export declare const getNizza: (onInit?: (store: NizzaStore) => void) => NizzaStore;
83
- //# sourceMappingURL=NizzaStore.d.ts.map
83
+ //# sourceMappingURL=nizza-store.d.ts.map