buymeua-api-fe 0.4.0 → 0.5.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/README.md CHANGED
@@ -562,6 +562,15 @@ const { data, fetchNextPage, hasNextPage } = useGetAdPlatformsInfiniteQuery({
562
562
  });
563
563
  ```
564
564
 
565
+ ### Store
566
+
567
+ ```typescript
568
+ // Get store information
569
+ const { data } = useGetStoreInfoQuery({
570
+ store: number;
571
+ });
572
+ ```
573
+
565
574
  ## 📋 TypeScript Types
566
575
 
567
576
  The library is fully typed with TypeScript. Main types:
@@ -1,2 +1,3 @@
1
+ export * from './api/storeApi';
1
2
  export * from './model/types';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAE/B,cAAc,eAAe,CAAC"}
@@ -1,2 +1,3 @@
1
+ export * from './api/storeApi';
1
2
  export * from './model/types';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAE/B,cAAc,eAAe,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { Media } from '../../../shared/model';
1
2
  export interface StoreTemplate {
2
3
  id: number;
3
4
  product_id: number;
@@ -15,4 +16,59 @@ export interface Store {
15
16
  full_domain: string | null;
16
17
  store_url: string | null;
17
18
  }
19
+ export interface StorePhone {
20
+ full: string;
21
+ code: string;
22
+ number: string;
23
+ }
24
+ export interface StoreUser {
25
+ customer_id: number;
26
+ is_supplier: boolean;
27
+ }
28
+ export interface StoreCategory {
29
+ id: number;
30
+ name: string;
31
+ has_child: boolean;
32
+ thumb: string;
33
+ thumb_small: string;
34
+ thumb_large: string;
35
+ banners: Media[];
36
+ }
37
+ export interface StoreDomain {
38
+ id: number;
39
+ domain: string;
40
+ is_custom: boolean;
41
+ }
42
+ export interface StoreInfo {
43
+ id: number;
44
+ store_template_id: number;
45
+ product_id: number | null;
46
+ name: string;
47
+ phone: StorePhone;
48
+ link: string;
49
+ head: unknown;
50
+ body: unknown;
51
+ description: string | null;
52
+ status: number;
53
+ banners: Media[];
54
+ user: StoreUser;
55
+ store_template: StoreTemplate;
56
+ category: StoreCategory;
57
+ domain: StoreDomain;
58
+ instagram_posts: string[];
59
+ facebook_domain_verification: string | null;
60
+ fb_pixel_id: string | null;
61
+ ga_tracking_id: string | null;
62
+ tt_pixel_id: string | null;
63
+ instagram_url: string | null;
64
+ facebook_url: string | null;
65
+ telegram_url: string | null;
66
+ viber_url: string | null;
67
+ }
68
+ export interface GetStoreInfoRequest {
69
+ store: number;
70
+ }
71
+ export interface GetStoreInfoResponse {
72
+ data: StoreInfo;
73
+ }
18
74
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/entities/store/model/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/entities/store/model/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,SAAS;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;CACtB;AAGD,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,KAAK,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,KAAK,EAAE,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,cAAc,EAAE,aAAa,CAAC;IAC9B,QAAQ,EAAE,aAAa,CAAC;IACxB,MAAM,EAAE,WAAW,CAAC;IACpB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,4BAA4B,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5C,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,SAAS,CAAC;CACjB"}
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "dist"
12
12
  ],
13
13
  "name": "buymeua-api-fe",
14
- "version": "0.4.0",
14
+ "version": "0.5.0",
15
15
  "description": "",
16
16
  "license": "ISC",
17
17
  "author": "Denys Hrychulevych",