@bikdotai/bik-component-library 0.0.525 → 0.0.527-beta.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,4 @@
1
+ import { ComponentMeta, ComponentStory } from '@storybook/react';
2
+ declare const _default: ComponentMeta<any>;
3
+ export default _default;
4
+ export declare const Track: ComponentStory<any>;
@@ -0,0 +1,18 @@
1
+ import { BikStore } from '@bikdotai/bik-models/growth';
2
+ import { ManifestAmplitudeUserProperties, UserI } from './model';
3
+ export declare class RecordEventHelper {
4
+ private static instance;
5
+ private isInitialized;
6
+ private currentUser;
7
+ private userProperties;
8
+ static getInstance(): RecordEventHelper;
9
+ isHelperInitialized(): boolean;
10
+ init(store: BikStore, currentUser: UserI, key: string): void;
11
+ initAmplitude(key: string): void;
12
+ setAmplitudeUser(storeId: string): void;
13
+ trackEvent(eventKey: string, properties?: any): void;
14
+ handleUserProperties(store: BikStore): void;
15
+ addProperties(propertyMap: Map<ManifestAmplitudeUserProperties, any>): void;
16
+ setUserProperties(propertyMap: Map<ManifestAmplitudeUserProperties, any>): void;
17
+ getUserProperties(): Map<ManifestAmplitudeUserProperties, any>;
18
+ }
@@ -0,0 +1,48 @@
1
+ export interface UserI {
2
+ id: number;
3
+ name: string;
4
+ photoUrl: string;
5
+ roleId: number;
6
+ type: string;
7
+ storeId?: string;
8
+ teams: TeamI[];
9
+ isAvailable?: boolean;
10
+ email?: string;
11
+ phoneNumber?: string;
12
+ exotelNumber?: string;
13
+ storeName?: string;
14
+ isInternal?: boolean;
15
+ }
16
+ export interface TeamI {
17
+ id: number;
18
+ name: string;
19
+ members: TeamMemberI[];
20
+ description?: string;
21
+ isDefault?: boolean;
22
+ isAvailable?: boolean;
23
+ storeId: string;
24
+ labels: number[];
25
+ createdAt?: Date;
26
+ updatedAt?: Date;
27
+ workingHours: Record<string, string>;
28
+ }
29
+ export interface TeamMemberI {
30
+ id: number;
31
+ name: string;
32
+ }
33
+ export declare enum ManifestAmplitudeUserProperties {
34
+ userCreationDate = "userCreationDate",
35
+ userAge = "userAge",
36
+ storeName = "storeName",
37
+ storeUrl = "storeUrl",
38
+ phoneNumber = "phoneNumber",
39
+ email = "email",
40
+ storeCreationDate = "storeCreationDate",
41
+ bikLoginEmail = "bikLoginEmail",
42
+ usageTillNow = "usageTillNow",
43
+ countryCode = "countryCode",
44
+ freeTrialActive = "freeTrialActive",
45
+ quotaPerMonth = "quotaPerMonth",
46
+ plan = "plan",
47
+ userType = "userType"
48
+ }
@@ -36,7 +36,7 @@ export declare class MetaCustomProcessor {
36
36
  value: {
37
37
  operator: string;
38
38
  dataType: import("../types").QueryBuilderConnectorType;
39
- value?: string | number | string[] | number[] | Date | Date[] | undefined;
39
+ value?: string | number | string[] | Date | number[] | Date[] | undefined;
40
40
  };
41
41
  key: string;
42
42
  refresh?: boolean | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const Menus: ({
3
2
  displayName: string;
4
3
  key: number;
@@ -0,0 +1,4 @@
1
+ import { ComponentMeta, ComponentStory } from '@storybook/react';
2
+ declare const _default: ComponentMeta<any>;
3
+ export default _default;
4
+ export declare const Track: ComponentStory<any>;
@@ -0,0 +1,18 @@
1
+ import { BikStore } from '@bikdotai/bik-models/growth';
2
+ import { ManifestAmplitudeUserProperties, UserI } from './model';
3
+ export declare class RecordEventHelper {
4
+ private static instance;
5
+ private isInitialized;
6
+ private currentUser;
7
+ private userProperties;
8
+ static getInstance(): RecordEventHelper;
9
+ isHelperInitialized(): boolean;
10
+ init(store: BikStore, currentUser: UserI, key: string): void;
11
+ initAmplitude(key: string): void;
12
+ setAmplitudeUser(storeId: string): void;
13
+ trackEvent(eventKey: string, properties?: any): void;
14
+ handleUserProperties(store: BikStore): void;
15
+ addProperties(propertyMap: Map<ManifestAmplitudeUserProperties, any>): void;
16
+ setUserProperties(propertyMap: Map<ManifestAmplitudeUserProperties, any>): void;
17
+ getUserProperties(): Map<ManifestAmplitudeUserProperties, any>;
18
+ }
@@ -0,0 +1,48 @@
1
+ export interface UserI {
2
+ id: number;
3
+ name: string;
4
+ photoUrl: string;
5
+ roleId: number;
6
+ type: string;
7
+ storeId?: string;
8
+ teams: TeamI[];
9
+ isAvailable?: boolean;
10
+ email?: string;
11
+ phoneNumber?: string;
12
+ exotelNumber?: string;
13
+ storeName?: string;
14
+ isInternal?: boolean;
15
+ }
16
+ export interface TeamI {
17
+ id: number;
18
+ name: string;
19
+ members: TeamMemberI[];
20
+ description?: string;
21
+ isDefault?: boolean;
22
+ isAvailable?: boolean;
23
+ storeId: string;
24
+ labels: number[];
25
+ createdAt?: Date;
26
+ updatedAt?: Date;
27
+ workingHours: Record<string, string>;
28
+ }
29
+ export interface TeamMemberI {
30
+ id: number;
31
+ name: string;
32
+ }
33
+ export declare enum ManifestAmplitudeUserProperties {
34
+ userCreationDate = "userCreationDate",
35
+ userAge = "userAge",
36
+ storeName = "storeName",
37
+ storeUrl = "storeUrl",
38
+ phoneNumber = "phoneNumber",
39
+ email = "email",
40
+ storeCreationDate = "storeCreationDate",
41
+ bikLoginEmail = "bikLoginEmail",
42
+ usageTillNow = "usageTillNow",
43
+ countryCode = "countryCode",
44
+ freeTrialActive = "freeTrialActive",
45
+ quotaPerMonth = "quotaPerMonth",
46
+ plan = "plan",
47
+ userType = "userType"
48
+ }
@@ -36,7 +36,7 @@ export declare class MetaCustomProcessor {
36
36
  value: {
37
37
  operator: string;
38
38
  dataType: import("../types").QueryBuilderConnectorType;
39
- value?: string | number | string[] | number[] | Date | Date[] | undefined;
39
+ value?: string | number | string[] | Date | number[] | Date[] | undefined;
40
40
  };
41
41
  key: string;
42
42
  refresh?: boolean | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const Menus: ({
3
2
  displayName: string;
4
3
  key: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikdotai/bik-component-library",
3
- "version": "0.0.525",
3
+ "version": "0.0.527-beta.0",
4
4
  "description": "Bik Component Library",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,6 +46,7 @@
46
46
  "not op_mini all"
47
47
  ],
48
48
  "dependencies": {
49
+ "@amplitude/analytics-browser": "^2.9.3",
49
50
  "@babel/runtime": "^7.20.7",
50
51
  "@lottiefiles/react-lottie-player": "^3.5.3",
51
52
  "@mui/material": "^5.14.19",
@@ -78,6 +79,7 @@
78
79
  "@babel/plugin-transform-runtime": "^7.19.6",
79
80
  "@babel/preset-env": "^7.20.2",
80
81
  "@babel/preset-react": "^7.18.6",
82
+ "@bikdotai/bik-models": "^1.13.532",
81
83
  "@changesets/cli": "^2.26.0",
82
84
  "@commitlint/cli": "^17.4.1",
83
85
  "@commitlint/config-conventional": "^17.4.0",