@tabres/react 1.0.43 → 1.0.45
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/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models/index.esm.js.map +1 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/modules/branch/constants.d.ts +1 -0
- package/dist/models/modules/branch/hooks.d.ts +1 -0
- package/dist/models/modules/branch/models.d.ts +1 -0
- package/dist/models/modules/business/constants.d.ts +0 -1
- package/dist/models/modules/business/hooks.d.ts +0 -1
- package/dist/models/modules/business/models.d.ts +0 -1
- package/dist/models/modules/category/models.d.ts +7 -6
- package/dist/modules/branch/constants.d.ts +1 -0
- package/dist/modules/branch/hooks.d.ts +1 -0
- package/dist/modules/branch/models.d.ts +1 -0
- package/dist/modules/business/constants.d.ts +0 -1
- package/dist/modules/business/hooks.d.ts +0 -1
- package/dist/modules/business/models.d.ts +0 -1
- package/dist/modules/category/models.d.ts +7 -6
- package/dist/modules/category/utils.d.ts +2 -2
- package/dist/utils/index.esm.js +1 -1
- package/dist/utils/index.esm.js.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/modules/branch/constants.d.ts +1 -0
- package/dist/utils/modules/branch/hooks.d.ts +1 -0
- package/dist/utils/modules/branch/models.d.ts +1 -0
- package/dist/utils/modules/business/constants.d.ts +0 -1
- package/dist/utils/modules/business/hooks.d.ts +0 -1
- package/dist/utils/modules/business/models.d.ts +0 -1
- package/dist/utils/modules/category/models.d.ts +7 -6
- package/dist/utils/modules/category/utils.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_CURRENCY = "EUR";
|
|
@@ -2,6 +2,7 @@ import * as viewModels from "src/modules/view/models";
|
|
|
2
2
|
import { Branch, BranchServes, BranchSettings } from "./models";
|
|
3
3
|
export declare const useHasSingleBranch: () => boolean;
|
|
4
4
|
export declare const useSelectedBranch: () => Branch;
|
|
5
|
+
export declare const useCurrency: () => string;
|
|
5
6
|
export declare const useBranchCoordinates: () => viewModels.Coordinates;
|
|
6
7
|
export declare const useBranchAddress: () => string;
|
|
7
8
|
export declare const useBranchServes: () => BranchServes;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Business, BusinessLanguage } from "./models";
|
|
2
2
|
export declare const useBusiness: () => Business;
|
|
3
|
-
export declare const useCurrency: () => string;
|
|
4
3
|
export declare const useBusinessId: () => number;
|
|
5
4
|
export declare const useBusinessUsername: () => string;
|
|
6
5
|
export declare const useLanguages: () => BusinessLanguage[];
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export interface CategoryTranslation {
|
|
2
|
-
name: string;
|
|
3
|
-
language: string;
|
|
4
|
-
categoryId: number;
|
|
5
|
-
}
|
|
6
1
|
export interface Category {
|
|
7
2
|
id: number;
|
|
8
3
|
businessId: number;
|
|
9
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Category name keyed by language code, e.g. { en: "Drinks", az: "İçkilər" }.
|
|
6
|
+
* Mirrors the `name` JSONB column returned by the API
|
|
7
|
+
*/
|
|
8
|
+
name: Record<string, string>;
|
|
9
|
+
/** Display order within the business; lower comes first. */
|
|
10
|
+
position: number;
|
|
10
11
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Category
|
|
2
|
-
export declare const
|
|
1
|
+
import { Category } from "./models";
|
|
2
|
+
export declare const getCategoryName: (category: Pick<Category, "name">, language: string) => string;
|
|
3
3
|
export declare const getCategoryNameById: (categoryId: number, categories: Category[], language: string) => string;
|