feeef 0.0.13 → 0.0.14

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A new project",
4
4
  "main": "src/index.ts",
5
5
  "private": false,
6
- "version": "0.0.13",
6
+ "version": "0.0.14",
7
7
  "type": "module",
8
8
  "scripts": {
9
9
  "dev": "vite --host",
@@ -1,84 +1,85 @@
1
- import { EmbaddedAddress } from '../embadded/address.js'
2
- import { EmbaddedCategory } from '../embadded/category.js'
3
- import { EmbaddedContact } from '../embadded/contact.js'
1
+ import { EmbaddedAddress } from "../embadded/address.js";
2
+ import { EmbaddedCategory } from "../embadded/category.js";
3
+ import { EmbaddedContact } from "../embadded/contact.js";
4
4
  // import { OrderEntity } from "./order.js";
5
5
  // import { ShippingMethodEntity } from "./shipping_method.js";
6
- import { UserEntity } from './user.js'
6
+ import { UserEntity } from "./user.js";
7
7
 
8
8
  export interface StoreEntity {
9
- id: string
10
- slug: string
11
- banner: StoreBanner | null
12
- action: StoreAction | null
13
- domain: StoreDomain | null
14
- decoration: StoreDecoration | null
15
- name: string
16
- logoUrl: string | null
17
- ondarkLogoUrl: string | null
18
- userId: string
19
- categories: EmbaddedCategory[]
20
- title: string | null
21
- description: string | null
22
- addresses: EmbaddedAddress[]
23
- metadata: Record<string, any>
24
- contacts: EmbaddedContact[]
25
- integrations: StoreIntegration[]
26
- verifiedAt: any | null
27
- blockedAt: any | null
28
- createdAt: any
29
- updatedAt: any
9
+ id: string;
10
+ slug: string;
11
+ banner: StoreBanner | null;
12
+ action: StoreAction | null;
13
+ domain: StoreDomain | null;
14
+ decoration: StoreDecoration | null;
15
+ name: string;
16
+ logoUrl: string | null;
17
+ ondarkLogoUrl: string | null;
18
+ userId: string;
19
+ categories: EmbaddedCategory[];
20
+ title: string | null;
21
+ description: string | null;
22
+ addresses: EmbaddedAddress[];
23
+ metadata: Record<string, any>;
24
+ contacts: EmbaddedContact[];
25
+ integrations: StoreIntegration[];
26
+ publicIntegrations: any[];
27
+ verifiedAt: any | null;
28
+ blockedAt: any | null;
29
+ createdAt: any;
30
+ updatedAt: any;
30
31
  // products: ProductEntity[];
31
- user: UserEntity
32
+ user: UserEntity;
32
33
  // orders: OrderEntity[];
33
34
  // shippingMethods: ShippingMethodEntity[];
34
- defaultShippingRates: (number | null)[][] | null
35
+ defaultShippingRates: (number | null)[][] | null;
35
36
  }
36
37
 
37
38
  export interface StoreDomain {
38
- name: string
39
- verifiedAt: any | null
40
- metadata: Record<string, any>
39
+ name: string;
40
+ verifiedAt: any | null;
41
+ metadata: Record<string, any>;
41
42
  }
42
43
  export interface StoreBanner {
43
- title: string
44
- url?: string | null
45
- enabled: boolean
46
- metadata: Record<string, any>
44
+ title: string;
45
+ url?: string | null;
46
+ enabled: boolean;
47
+ metadata: Record<string, any>;
47
48
  }
48
49
 
49
50
  export interface StoreDecoration {
50
- primary: number
51
- onPrimary?: number
52
- showStoreLogoInHeader?: boolean
53
- logoFullHeight?: boolean
54
- showStoreNameInHeader?: boolean
55
- metadata?: Record<string, any>
51
+ primary: number;
52
+ onPrimary?: number;
53
+ showStoreLogoInHeader?: boolean;
54
+ logoFullHeight?: boolean;
55
+ showStoreNameInHeader?: boolean;
56
+ metadata?: Record<string, any>;
56
57
  }
57
58
 
58
59
  export interface StoreIntegration {
59
- type: StoreIntegrations
60
+ type: StoreIntegrations;
60
61
  // any
61
- [key: string]: any
62
- metadata: Record<string, any>
62
+ [key: string]: any;
63
+ metadata: Record<string, any>;
63
64
  }
64
65
 
65
66
  export enum StoreIntegrations {
66
- telegram = 'telegram',
67
- facebookPixel = 'facebook_pixel',
68
- googleAnalytics = 'google_analytics',
69
- googleSheet = 'google_sheet',
70
- sms = 'sms',
67
+ telegram = "telegram",
68
+ facebookPixel = "facebook_pixel",
69
+ googleAnalytics = "google_analytics",
70
+ googleSheet = "google_sheet",
71
+ sms = "sms",
71
72
  }
72
73
 
73
74
  export interface StoreAction {
74
- label: string
75
- url: string
76
- type: StoreActionType
75
+ label: string;
76
+ url: string;
77
+ type: StoreActionType;
77
78
  }
78
79
 
79
80
  export enum StoreActionType {
80
- link = 'link',
81
- whatsapp = 'whatsapp',
82
- telegram = 'telegram',
83
- phone = 'phone',
81
+ link = "link",
82
+ whatsapp = "whatsapp",
83
+ telegram = "telegram",
84
+ phone = "phone",
84
85
  }