@serik_lav/api-fe 0.49.0 → 0.50.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.
@@ -0,0 +1,15 @@
1
+ import { type StorefrontFetchOptions } from './storefrontFetch';
2
+ import type { GetStoreProductsRequest, GetStoreProductsResponse, StoreProduct, StorefrontConfig } from '../model/types';
3
+ type RequestExtras = Pick<StorefrontFetchOptions, 'signal' | 'cache' | 'next'>;
4
+ /**
5
+ * Retail catalog: `POST /v1/store/products`.
6
+ * Environment-agnostic — works in Next.js RSC/SSR and in React Native (client-side).
7
+ * The backend nests the payload under `data.data`; this normalizes it.
8
+ */
9
+ export declare function getStoreProducts(config: StorefrontConfig, body?: GetStoreProductsRequest, extras?: RequestExtras): Promise<GetStoreProductsResponse>;
10
+ /** Single product detail: `GET /v1/store/products/:id`. Returns `null` when absent. */
11
+ export declare function getStoreProduct(config: StorefrontConfig, productId: string | number, extras?: RequestExtras): Promise<StoreProduct | null>;
12
+ /** Catalog filter facets: `GET /v1/store/products/filters`. */
13
+ export declare function getStoreProductsFilters<T = unknown>(config: StorefrontConfig, query?: Record<string, string | number | boolean | null | undefined>, extras?: RequestExtras): Promise<T>;
14
+ export {};
15
+ //# sourceMappingURL=storefrontApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storefrontApi.d.ts","sourceRoot":"","sources":["../../../../src/entities/storefront/api/storefrontApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACjF,OAAO,KAAK,EACV,uBAAuB,EACvB,wBAAwB,EACxB,YAAY,EAEZ,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAExB,KAAK,aAAa,GAAG,IAAI,CAAC,sBAAsB,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;AAE/E;;;;GAIG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,gBAAgB,EACxB,IAAI,GAAE,uBAA4B,EAClC,MAAM,GAAE,aAAkB,GACzB,OAAO,CAAC,wBAAwB,CAAC,CAYnC;AAED,uFAAuF;AACvF,wBAAsB,eAAe,CACnC,MAAM,EAAE,gBAAgB,EACxB,SAAS,EAAE,MAAM,GAAG,MAAM,EAC1B,MAAM,GAAE,aAAkB,GACzB,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAO9B;AAED,+DAA+D;AAC/D,wBAAsB,uBAAuB,CAAC,CAAC,GAAG,OAAO,EACvD,MAAM,EAAE,gBAAgB,EACxB,KAAK,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAM,EACxE,MAAM,GAAE,aAAkB,GACzB,OAAO,CAAC,CAAC,CAAC,CAMZ"}
@@ -0,0 +1,35 @@
1
+ import { storefrontFetch } from './storefrontFetch';
2
+ /**
3
+ * Retail catalog: `POST /v1/store/products`.
4
+ * Environment-agnostic — works in Next.js RSC/SSR and in React Native (client-side).
5
+ * The backend nests the payload under `data.data`; this normalizes it.
6
+ */
7
+ export async function getStoreProducts(config, body = {}, extras = {}) {
8
+ const raw = await storefrontFetch(config, 'v1/store/products', {
9
+ method: 'POST',
10
+ body,
11
+ ...extras,
12
+ });
13
+ return {
14
+ data: raw?.data?.data ?? raw?.data ?? [],
15
+ meta: raw?.data?.meta ?? raw?.meta,
16
+ prices: raw?.data?.prices ?? raw?.prices,
17
+ };
18
+ }
19
+ /** Single product detail: `GET /v1/store/products/:id`. Returns `null` when absent. */
20
+ export async function getStoreProduct(config, productId, extras = {}) {
21
+ const raw = await storefrontFetch(config, `v1/store/products/${productId}`, {
22
+ method: 'GET',
23
+ ...extras,
24
+ });
25
+ return raw?.data ?? null;
26
+ }
27
+ /** Catalog filter facets: `GET /v1/store/products/filters`. */
28
+ export async function getStoreProductsFilters(config, query = {}, extras = {}) {
29
+ return storefrontFetch(config, 'v1/store/products/filters', {
30
+ method: 'GET',
31
+ query,
32
+ ...extras,
33
+ });
34
+ }
35
+ //# sourceMappingURL=storefrontApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storefrontApi.js","sourceRoot":"","sources":["../../../../src/entities/storefront/api/storefrontApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAA+B,MAAM,mBAAmB,CAAC;AAWjF;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAAwB,EACxB,OAAgC,EAAE,EAClC,SAAwB,EAAE;IAE1B,MAAM,GAAG,GAAG,MAAM,eAAe,CAAM,MAAM,EAAE,mBAAmB,EAAE;QAClE,MAAM,EAAE,MAAM;QACd,IAAI;QACJ,GAAG,MAAM;KACV,CAAC,CAAC;IAEH,OAAO;QACL,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,IAAI,GAAG,EAAE,IAAI,IAAI,EAAE;QACxC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,IAAI,GAAG,EAAE,IAAI;QAClC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,IAAI,GAAG,EAAE,MAAM;KACzC,CAAC;AACJ,CAAC;AAED,uFAAuF;AACvF,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,MAAwB,EACxB,SAA0B,EAC1B,SAAwB,EAAE;IAE1B,MAAM,GAAG,GAAG,MAAM,eAAe,CAAuB,MAAM,EAAE,qBAAqB,SAAS,EAAE,EAAE;QAChG,MAAM,EAAE,KAAK;QACb,GAAG,MAAM;KACV,CAAC,CAAC;IAEH,OAAO,GAAG,EAAE,IAAI,IAAI,IAAI,CAAC;AAC3B,CAAC;AAED,+DAA+D;AAC/D,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,MAAwB,EACxB,QAAsE,EAAE,EACxE,SAAwB,EAAE;IAE1B,OAAO,eAAe,CAAI,MAAM,EAAE,2BAA2B,EAAE;QAC7D,MAAM,EAAE,KAAK;QACb,KAAK;QACL,GAAG,MAAM;KACV,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { StorefrontConfig } from '../model/types';
2
+ type QueryValue = string | number | boolean | null | undefined;
3
+ export interface StorefrontFetchOptions extends Omit<RequestInit, 'body' | 'headers'> {
4
+ body?: unknown;
5
+ query?: Record<string, QueryValue>;
6
+ /** Next.js App Router caching hint; ignored by standard `fetch` (e.g. React Native). */
7
+ next?: {
8
+ revalidate?: number | false;
9
+ tags?: string[];
10
+ };
11
+ }
12
+ /**
13
+ * Typed `fetch` for retail storefront endpoints, usable in RSC / server components.
14
+ * Stateless: every call takes a {@link StorefrontConfig} (base url, store id, per-request token).
15
+ * App-level concerns (401 refresh, cookie reading) stay in the consumer.
16
+ */
17
+ export declare function storefrontFetch<T>(config: StorefrontConfig, path: string, options?: StorefrontFetchOptions): Promise<T>;
18
+ export {};
19
+ //# sourceMappingURL=storefrontFetch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storefrontFetch.d.ts","sourceRoot":"","sources":["../../../../src/entities/storefront/api/storefrontFetch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,KAAK,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;AAE/D,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACnF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACnC,wFAAwF;IACxF,IAAI,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;CACzD;AAoDD;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,CAAC,EACrC,MAAM,EAAE,gBAAgB,EACxB,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,CAAC,CAAC,CA4BZ"}
@@ -0,0 +1,66 @@
1
+ import { Session } from '../../../shared/model';
2
+ function resolveApiBaseUrl(baseUrl) {
3
+ const normalized = baseUrl.replace(/\/$/, '');
4
+ return /\/api(\/|$)/.test(normalized) ? normalized : `${normalized}/api`;
5
+ }
6
+ function buildUrl(config, path, query) {
7
+ const normalizedPath = path.replace(/^\//, '');
8
+ const url = new URL(`${resolveApiBaseUrl(config.baseUrl)}/${normalizedPath}`);
9
+ Object.entries(query || {}).forEach(([key, value]) => {
10
+ if (value === undefined || value === null || value === '') {
11
+ return;
12
+ }
13
+ url.searchParams.set(key, String(value));
14
+ });
15
+ return url.toString();
16
+ }
17
+ function buildHeaders(config) {
18
+ const headers = new Headers({
19
+ Accept: 'application/json',
20
+ 'Content-Type': 'application/json',
21
+ 'X-SESSION': config.session ?? Session.Retail,
22
+ 'X-BSTORE-ID': String(config.storeId),
23
+ });
24
+ if (config.token) {
25
+ headers.set('Authorization', `Bearer ${config.token}`);
26
+ }
27
+ return headers;
28
+ }
29
+ async function parseResponse(response) {
30
+ const text = await response.text();
31
+ if (!text) {
32
+ return null;
33
+ }
34
+ try {
35
+ return JSON.parse(text);
36
+ }
37
+ catch {
38
+ return text;
39
+ }
40
+ }
41
+ /**
42
+ * Typed `fetch` for retail storefront endpoints, usable in RSC / server components.
43
+ * Stateless: every call takes a {@link StorefrontConfig} (base url, store id, per-request token).
44
+ * App-level concerns (401 refresh, cookie reading) stay in the consumer.
45
+ */
46
+ export async function storefrontFetch(config, path, options = {}) {
47
+ const { body, query, ...init } = options;
48
+ const url = buildUrl(config, path, query);
49
+ const requestInit = {
50
+ ...init,
51
+ headers: buildHeaders(config),
52
+ };
53
+ if (body !== undefined) {
54
+ requestInit.body = JSON.stringify(body);
55
+ }
56
+ const response = await fetch(url, requestInit);
57
+ const data = await parseResponse(response);
58
+ if (!response.ok) {
59
+ const error = new Error(data?.message || data?.data?.message || `Request failed with status ${response.status}`);
60
+ error.status = response.status;
61
+ error.data = data;
62
+ throw error;
63
+ }
64
+ return data;
65
+ }
66
+ //# sourceMappingURL=storefrontFetch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storefrontFetch.js","sourceRoot":"","sources":["../../../../src/entities/storefront/api/storefrontFetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAYhD,SAAS,iBAAiB,CAAC,OAAe;IACxC,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAE9C,OAAO,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,MAAM,CAAC;AAC3E,CAAC;AAED,SAAS,QAAQ,CAAC,MAAwB,EAAE,IAAY,EAAE,KAAkC;IAC1F,MAAM,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,cAAc,EAAE,CAAC,CAAC;IAE9E,MAAM,CAAC,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACnD,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE,EAAE,CAAC;YAC1D,OAAO;QACT,CAAC;QAED,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC;AAED,SAAS,YAAY,CAAC,MAAw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,KAAK,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;IAE/C,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,QAAQ,CAAC,CAAC;IAE3C,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,MAAM,KAAK,GAA4C,IAAI,KAAK,CAC9D,IAAI,EAAE,OAAO,IAAI,IAAI,EAAE,IAAI,EAAE,OAAO,IAAI,8BAA8B,QAAQ,CAAC,MAAM,EAAE,CACxF,CAAC;QACF,KAAK,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;QAC/B,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;QAElB,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,IAAS,CAAC;AACnB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './api/storefrontFetch';
2
+ export * from './api/storefrontApi';
3
+ export * from './model/types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/storefront/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './api/storefrontFetch';
2
+ export * from './api/storefrontApi';
3
+ export * from './model/types';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/storefront/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
@@ -0,0 +1,114 @@
1
+ import { Session } from '../../../shared/model';
2
+ /**
3
+ * Per-request config for the retail storefront SSR endpoints.
4
+ * In Next.js App Router / RSC the auth token is read per-request from cookies,
5
+ * so it cannot live in module state — pass it here on every call.
6
+ */
7
+ export interface StorefrontConfig {
8
+ /** API base URL, with or without a trailing `/api` (e.g. `https://buymeua.xyz` or `https://buymeua.xyz/api`). */
9
+ baseUrl: string;
10
+ /** Retail store id — sent as the `X-BSTORE-ID` header. */
11
+ storeId: string | number;
12
+ /** Bearer token for the current request (optional). */
13
+ token?: string | null;
14
+ /** `X-SESSION` header value. Defaults to {@link Session.Retail}. */
15
+ session?: Session;
16
+ }
17
+ export interface StoreProductCategory {
18
+ category_id: number;
19
+ parent_id: number | null;
20
+ name: string;
21
+ }
22
+ export interface StoreProductImage {
23
+ media_id: number;
24
+ thumb?: string | null;
25
+ original?: string | null;
26
+ download?: string | null;
27
+ path?: string | null;
28
+ size?: number | null;
29
+ mime_type?: string | null;
30
+ video?: boolean | null;
31
+ sort_order?: number | null;
32
+ main?: boolean | null;
33
+ }
34
+ export interface StoreProductOptionValue {
35
+ product_option_id: number;
36
+ product_option_value_id: number;
37
+ warehouse_id: number;
38
+ option_value_id: number;
39
+ name: string;
40
+ quantity: number;
41
+ is_marked_out_stock: boolean;
42
+ }
43
+ export interface StoreProductWarehouse {
44
+ warehouse_id: number;
45
+ name: string;
46
+ quantity: number;
47
+ options?: StoreProductOptionValue[];
48
+ }
49
+ export interface StoreProductOption {
50
+ option_id: number;
51
+ value?: string | null;
52
+ name: string;
53
+ values?: StoreProductOptionValue[];
54
+ warehouses?: StoreProductWarehouse[];
55
+ }
56
+ export interface StoreProductSizeGroup {
57
+ optionId: number;
58
+ name: string;
59
+ values: string[];
60
+ }
61
+ export interface StoreProductPrice {
62
+ raw: number;
63
+ formatted: string;
64
+ }
65
+ export interface StoreProductPrices {
66
+ price: StoreProductPrice;
67
+ special: StoreProductPrice | null;
68
+ price_recommended: StoreProductPrice;
69
+ }
70
+ export interface StoreProduct {
71
+ product_id: number;
72
+ model?: string | null;
73
+ name: string;
74
+ description?: string | null;
75
+ product_type?: string | null;
76
+ /** true — digital good (downloadable files after purchase, no delivery). */
77
+ is_digital?: boolean | null;
78
+ price_recommended?: string | null;
79
+ price?: string | number | null;
80
+ special?: string | number | null;
81
+ has_special?: boolean | null;
82
+ prices?: StoreProductPrices | null;
83
+ in_favorite?: boolean | null;
84
+ manufacturer?: string | null;
85
+ main_category_id?: number | null;
86
+ categories?: StoreProductCategory[];
87
+ table_size?: string | null;
88
+ images?: StoreProductImage[];
89
+ options?: StoreProductOption[];
90
+ }
91
+ /** Raw single-product response: `GET /v1/store/products/:id`. */
92
+ export interface StoreProductResponse {
93
+ data: StoreProduct;
94
+ }
95
+ export interface StorefrontPaginationMeta {
96
+ current_page: number;
97
+ last_page: number;
98
+ }
99
+ /**
100
+ * Catalog request body for `POST /v1/store/products`.
101
+ * Filters are storefront-specific and open-ended, so extra keys are allowed.
102
+ */
103
+ export interface GetStoreProductsRequest {
104
+ page?: number;
105
+ per_page?: number;
106
+ [key: string]: unknown;
107
+ }
108
+ /** Normalized catalog response (the backend nests under `data.data`). */
109
+ export interface GetStoreProductsResponse {
110
+ data: StoreProduct[];
111
+ meta?: StorefrontPaginationMeta;
112
+ prices?: unknown;
113
+ }
114
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/entities/storefront/model/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,iHAAiH;IACjH,OAAO,EAAE,MAAM,CAAC;IAChB,0DAA0D;IAC1D,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,E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W,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,yEAAyE;AACzE,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
@@ -0,0 +1,2 @@
1
+ import { Session } from '../../../shared/model';
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/entities/storefront/model/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -12,6 +12,7 @@ export * from './entities/order';
12
12
  export * from './entities/product';
13
13
  export * from './entities/referral';
14
14
  export * from './entities/store';
15
+ export * from './entities/storefront';
15
16
  export * from './entities/stories';
16
17
  export * from './entities/supplier';
17
18
  export * from './entities/system';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EACL,KAAK,SAAS,EACd,mBAAmB,EACnB,SAAS,EACT,KAAK,eAAe,EACpB,iBAAiB,GAClB,MAAM,cAAc,CAAC;AAEtB,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EACL,KAAK,SAAS,EACd,mBAAmB,EACnB,SAAS,EACT,KAAK,eAAe,EACpB,iBAAiB,GAClB,MAAM,cAAc,CAAC;AAEtB,cAAc,gBAAgB,CAAC"}
package/dist/index.js CHANGED
@@ -13,6 +13,7 @@ export * from './entities/order';
13
13
  export * from './entities/product';
14
14
  export * from './entities/referral';
15
15
  export * from './entities/store';
16
+ export * from './entities/storefront';
16
17
  export * from './entities/stories';
17
18
  export * from './entities/supplier';
18
19
  export * from './entities/system';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAEhB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAEL,mBAAmB,EACnB,SAAS,EAET,iBAAiB,GAClB,MAAM,cAAc,CAAC;AAEtB,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAEhB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAEL,mBAAmB,EACnB,SAAS,EAET,iBAAiB,GAClB,MAAM,cAAc,CAAC;AAEtB,cAAc,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "CHANGELOG.md"
13
13
  ],
14
14
  "name": "@serik_lav/api-fe",
15
- "version": "0.49.0",
15
+ "version": "0.50.0",
16
16
  "description": "",
17
17
  "license": "ISC",
18
18
  "author": "BuymeUa",