bonuspluscomponents 0.0.100 → 0.0.102
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/dist/AppContext/Context/AppContext.d.ts +62 -0
- package/dist/AppContext/Context/AppContext.d.ts.map +1 -0
- package/dist/Pages/AppealsPage/AppealsPage.d.ts +2 -0
- package/dist/Pages/AppealsPage/AppealsPage.d.ts.map +1 -1
- package/dist/Pages/CustomerInfoPage/CustomerInfoPage.d.ts.map +1 -1
- package/dist/Pages/RegistrationPage/RegistrationPage.d.ts.map +1 -1
- package/dist/bonuspluscomponents.cjs.js +78 -50
- package/dist/bonuspluscomponents.es.js +28518 -7463
- package/dist/bonuspluscomponents.umd.js +78 -50
- package/dist/components/AppealsPage/UseAppeals.d.ts +1 -0
- package/dist/components/AppealsPage/UseAppeals.d.ts.map +1 -1
- package/dist/components/FormController/UseFormController.d.ts +2 -12
- package/dist/components/FormController/UseFormController.d.ts.map +1 -1
- package/dist/components/Header/Header.d.ts +6 -0
- package/dist/components/Header/Header.d.ts.map +1 -0
- package/dist/components/Router/Router.d.ts +4 -1
- package/dist/components/Router/Router.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/models/CabinetSettings.d.ts +1 -0
- package/dist/components/models/CabinetSettings.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -1
- package/dist/components/AppealsPage/AppealsPage.d.ts +0 -3
- package/dist/components/AppealsPage/AppealsPage.d.ts.map +0 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AxiosInstance } from "axios";
|
|
3
|
+
import { CabinetUISettings } from "../../components/models/CabinetSettings";
|
|
4
|
+
declare enum CabinetType {
|
|
5
|
+
CustomerCabinet = 0,
|
|
6
|
+
Telegram = 1,
|
|
7
|
+
VK = 2
|
|
8
|
+
}
|
|
9
|
+
type Customer = {
|
|
10
|
+
id: string;
|
|
11
|
+
phone: string;
|
|
12
|
+
discountCardNumber: string;
|
|
13
|
+
discountCardName: string;
|
|
14
|
+
parentphone?: string;
|
|
15
|
+
availableBonuses: number;
|
|
16
|
+
notActiveBonuses: number;
|
|
17
|
+
lastPurchaseDate?: string;
|
|
18
|
+
purchasesTotalSum: number;
|
|
19
|
+
purchasesSumToNextCard: number;
|
|
20
|
+
nextCardName: string;
|
|
21
|
+
regressEnabled: boolean;
|
|
22
|
+
bonusDebitDenided: boolean;
|
|
23
|
+
nearestBonusesExpirationAmount: number;
|
|
24
|
+
nearestBonusesExpirationDate: string;
|
|
25
|
+
purchasesCount: number;
|
|
26
|
+
confirmed: boolean;
|
|
27
|
+
inviteCode?: string;
|
|
28
|
+
multiplicityDebitBonus: number;
|
|
29
|
+
eCardStatusID: number | null;
|
|
30
|
+
};
|
|
31
|
+
interface CabinetSettings {
|
|
32
|
+
cabinetEnabled: boolean;
|
|
33
|
+
canShowBusinessInfo: boolean;
|
|
34
|
+
canShowECardLink: boolean;
|
|
35
|
+
canShowAppeals: boolean;
|
|
36
|
+
canEditPersonInfo: boolean;
|
|
37
|
+
formFilled: boolean;
|
|
38
|
+
isReg: boolean;
|
|
39
|
+
}
|
|
40
|
+
type ProviderApp = {
|
|
41
|
+
cabinetType: CabinetType | null;
|
|
42
|
+
cabinetIsLoading: boolean;
|
|
43
|
+
apiAxios: () => AxiosInstance;
|
|
44
|
+
phoneNumber: string | null;
|
|
45
|
+
setPhoneNumber: React.Dispatch<React.SetStateAction<string | null>>;
|
|
46
|
+
cabinetSettings: CabinetSettings | null;
|
|
47
|
+
cabinetUISettings: CabinetUISettings | null;
|
|
48
|
+
authToken: string | null;
|
|
49
|
+
setAuthToken: React.Dispatch<React.SetStateAction<string | null>>;
|
|
50
|
+
createAxios: (authToken: string, host: string) => void;
|
|
51
|
+
theme: any;
|
|
52
|
+
customer: Customer | null;
|
|
53
|
+
VKUserId: number | null;
|
|
54
|
+
setVKUserId: React.Dispatch<React.SetStateAction<number | null>>;
|
|
55
|
+
};
|
|
56
|
+
export declare const AppContext: React.Context<ProviderApp>;
|
|
57
|
+
export declare const AppProvider: ({ children, cabinetType }: {
|
|
58
|
+
children: JSX.Element;
|
|
59
|
+
cabinetType: CabinetType;
|
|
60
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
export {};
|
|
62
|
+
//# sourceMappingURL=AppContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppContext.d.ts","sourceRoot":"","sources":["../../../src/AppContext/Context/AppContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAC5E,OAAc,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAI3C,OAAO,EAAC,iBAAiB,EAAC,MAAM,yCAAyC,CAAC;AAK1E,aAAK,WAAW;IACZ,eAAe,IAAA;IACf,QAAQ,IAAA;IACR,EAAE,IAAA;CACL;AAED,KAAK,QAAQ,GAAG;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,8BAA8B,EAAE,MAAM,CAAC;IACvC,4BAA4B,EAAE,MAAM,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sBAAsB,EAAE,MAAM,CAAC;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W;6CAKrG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppealsPage.d.ts","sourceRoot":"","sources":["../../../src/Pages/AppealsPage/AppealsPage.tsx"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"AppealsPage.d.ts","sourceRoot":"","sources":["../../../src/Pages/AppealsPage/AppealsPage.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,WAAW,+CA0BhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomerInfoPage.d.ts","sourceRoot":"","sources":["../../../src/Pages/CustomerInfoPage/CustomerInfoPage.tsx"],"names":[],"mappings":"AASA,OAAO,yBAAyB,CAAC;AAEjC,QAAA,MAAM,gBAAgB,+
|
|
1
|
+
{"version":3,"file":"CustomerInfoPage.d.ts","sourceRoot":"","sources":["../../../src/Pages/CustomerInfoPage/CustomerInfoPage.tsx"],"names":[],"mappings":"AASA,OAAO,yBAAyB,CAAC;AAEjC,QAAA,MAAM,gBAAgB,+CAsErB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegistrationPage.d.ts","sourceRoot":"","sources":["../../../src/Pages/RegistrationPage/RegistrationPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RegistrationPage.d.ts","sourceRoot":"","sources":["../../../src/Pages/RegistrationPage/RegistrationPage.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,gBAAgB,+CA6CrB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|