old version placed
This commit is contained in:
9
apimaps/accesible/pageInfo.ts
Normal file
9
apimaps/accesible/pageInfo.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
const AccesibleAllEndpoints = [
|
||||
"/event/list",
|
||||
"/bind/services/occupant",
|
||||
"/bind/services/employee",
|
||||
];
|
||||
|
||||
const AccesibleSelfEndpoints = ["/event/list"];
|
||||
|
||||
export { AccesibleAllEndpoints, AccesibleSelfEndpoints };
|
||||
18
apimaps/accesible/subCategories.tsx
Normal file
18
apimaps/accesible/subCategories.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
const AccesibleCategories = [
|
||||
{
|
||||
title: {
|
||||
tr: "Yetkiler",
|
||||
en: "Permissions",
|
||||
},
|
||||
icon: "PackageCheck",
|
||||
component: null,
|
||||
selfEndpoints: [
|
||||
"/event/list",
|
||||
"/bind/services/occupant",
|
||||
"/bind/services/employee",
|
||||
],
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
];
|
||||
export { AccesibleCategories };
|
||||
0
apimaps/accounts/iconSet.tsx
Normal file
0
apimaps/accounts/iconSet.tsx
Normal file
24
apimaps/accounts/pageInfo.ts
Normal file
24
apimaps/accounts/pageInfo.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
const AccountAllEndpoints = ["/account/records/list"];
|
||||
|
||||
const AccountPageInfo = {
|
||||
tr: [
|
||||
{
|
||||
title: "Hesaplar",
|
||||
endpoint: "/account/records/list",
|
||||
description: "Hesaplarınızı listeyebilirsiniz",
|
||||
component: "Table",
|
||||
icon: null,
|
||||
},
|
||||
],
|
||||
en: [
|
||||
{
|
||||
title: "Accounts",
|
||||
endpoint: "/account/records/list",
|
||||
description: "You can list your accounts",
|
||||
component: "Table",
|
||||
icon: null,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export { AccountAllEndpoints, AccountPageInfo };
|
||||
15
apimaps/accounts/subCategories.tsx
Normal file
15
apimaps/accounts/subCategories.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
const AccountSubCategories = [
|
||||
{
|
||||
title: {
|
||||
tr: "Bakiye Sorgulama",
|
||||
en: "Balance Inquiry",
|
||||
},
|
||||
icon: "LucideLandmark",
|
||||
component: null,
|
||||
selfEndpoints: ["/account/records/list"],
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
];
|
||||
|
||||
export { AccountSubCategories };
|
||||
0
apimaps/address/iconSet.tsx
Normal file
0
apimaps/address/iconSet.tsx
Normal file
0
apimaps/building/iconSet.tsx
Normal file
0
apimaps/building/iconSet.tsx
Normal file
1
apimaps/building/page.tsx
Normal file
1
apimaps/building/page.tsx
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
71
apimaps/building/pageInfo.ts
Normal file
71
apimaps/building/pageInfo.ts
Normal file
@@ -0,0 +1,71 @@
|
||||
const BuildPageInfo = {
|
||||
tr: [
|
||||
{
|
||||
title: "Bina Listesi",
|
||||
icon: null,
|
||||
description: "Bina listeyebilirsiniz",
|
||||
endpoint: "/building/build/list",
|
||||
component: "Table",
|
||||
},
|
||||
{
|
||||
title: "Bina Ekle",
|
||||
icon: "BadgePlus",
|
||||
description: "Bina oluşturma sayfasına hoş geldiniz",
|
||||
endpoint: "/building/build/create",
|
||||
component: "AddCreate2Table",
|
||||
},
|
||||
{
|
||||
title: null,
|
||||
icon: "Pencil",
|
||||
description: "Bina güncelleme sayfasına hoş geldiniz",
|
||||
endpoint: "/building/build/update/{build_uu_id}",
|
||||
component: "AddUpdate2Table",
|
||||
},
|
||||
],
|
||||
en: [
|
||||
{
|
||||
title: "Building List",
|
||||
icon: null,
|
||||
description: "Welcome to the building update page",
|
||||
endpoint: "/building/build/list",
|
||||
component: "Table",
|
||||
},
|
||||
{
|
||||
title: "Create Building",
|
||||
icon: "BadgePlus",
|
||||
description: "Welcome to the building creation page",
|
||||
endpoint: "/building/build/create",
|
||||
component: "AddCreate2Table",
|
||||
},
|
||||
{
|
||||
title: "Update Building",
|
||||
icon: "Pencil",
|
||||
description: "Welcome to the building update page",
|
||||
endpoint: "/building/build/update/{build_uu_id}",
|
||||
component: "AddUpdate2Table",
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
const BuildAllEndpoints = [
|
||||
"/building/build/list",
|
||||
"/building/build/create",
|
||||
"/building/build/update/{build_uu_id}",
|
||||
"/building/parts/list",
|
||||
"/building/parts/create",
|
||||
"/building/parts/update/{build_uu_id}",
|
||||
"/building/area/list",
|
||||
"/building/area/create",
|
||||
"/building/area/update/{build_uu_id}",
|
||||
"/building/living_space/list",
|
||||
"/building/living_space/create",
|
||||
"/building/living_space/update/{build_uu_id}",
|
||||
];
|
||||
|
||||
const BuildSelfEndpoints = [
|
||||
"/building/build/list",
|
||||
"/building/build/create",
|
||||
"/building/build/update/{build_uu_id}",
|
||||
];
|
||||
|
||||
export { BuildPageInfo, BuildSelfEndpoints, BuildAllEndpoints };
|
||||
45
apimaps/building/subCategories.tsx
Normal file
45
apimaps/building/subCategories.tsx
Normal file
@@ -0,0 +1,45 @@
|
||||
import { LivingSpaceInfo } from "../livingSpace/pageInfo";
|
||||
import { PartsPageInfo } from "../parts/pageInfo";
|
||||
|
||||
const BuildCategories = [
|
||||
{
|
||||
title: {
|
||||
tr: "Daireler",
|
||||
en: "Flats",
|
||||
},
|
||||
icon: "DoorOpen",
|
||||
component: "PartsPage",
|
||||
pageInfo: PartsPageInfo,
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
{
|
||||
title: {
|
||||
tr: "Kullanılabilir Alanlar",
|
||||
en: "Building Areas",
|
||||
},
|
||||
icon: "TreePine",
|
||||
component: null,
|
||||
selfEndpoints: [
|
||||
"/building/area/list",
|
||||
"/building/area/create",
|
||||
"/building/area/update/{build_uu_id}",
|
||||
],
|
||||
pageInfo: null,
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
{
|
||||
title: {
|
||||
tr: "Yaşayan Kişiler",
|
||||
en: "Living People",
|
||||
},
|
||||
icon: "UsersRound",
|
||||
component: "LivingSpacePage",
|
||||
pageInfo: LivingSpaceInfo,
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
];
|
||||
|
||||
export { BuildCategories };
|
||||
0
apimaps/company/iconSet.tsx
Normal file
0
apimaps/company/iconSet.tsx
Normal file
76
apimaps/company/pageInfo.ts
Normal file
76
apimaps/company/pageInfo.ts
Normal file
@@ -0,0 +1,76 @@
|
||||
const CompanySelfEndpoints = [
|
||||
"/company/list",
|
||||
"/company/create",
|
||||
"/company/update/{company_uu_id}",
|
||||
];
|
||||
|
||||
const CompanyAllEndpoints = [
|
||||
"/company/list",
|
||||
"/company/create",
|
||||
"/company/update/{company_uu_id}",
|
||||
"/department/list",
|
||||
"/department/create",
|
||||
"/department/update/{department_uu_id}",
|
||||
"/duties/list",
|
||||
"/duties/create",
|
||||
"/duties/update",
|
||||
"/employee/list",
|
||||
"/employee/create",
|
||||
"/employee/update/{employee_uu_id}",
|
||||
"/employee/employ",
|
||||
"/employee/fire",
|
||||
"/staff/list",
|
||||
"/staff/create",
|
||||
"/staff/update/{staff_uu_id}",
|
||||
];
|
||||
|
||||
const CompanyPageInfo = {
|
||||
tr: [
|
||||
{
|
||||
title: "Şirket Listesi",
|
||||
icon: null,
|
||||
description: "Şirketleri listeyebilirsiniz",
|
||||
endpoint: "/company/list",
|
||||
component: "Table",
|
||||
},
|
||||
{
|
||||
title: "Şirket Ekle",
|
||||
icon: "BadgePlus",
|
||||
description: "Şirket oluşturma sayfasına hoş geldiniz",
|
||||
endpoint: "/company/create",
|
||||
component: "AddCreate2Table",
|
||||
},
|
||||
{
|
||||
title: null,
|
||||
icon: "Pencil",
|
||||
description: "Şirket güncelleme sayfasına hoş geldiniz",
|
||||
endpoint: "/company/update/{company_uu_id}",
|
||||
component: "AddUpdate2Table",
|
||||
},
|
||||
],
|
||||
en: [
|
||||
{
|
||||
title: "Company List",
|
||||
icon: null,
|
||||
description: "Welcome to the company update page",
|
||||
endpoint: "/company/list",
|
||||
component: "Table",
|
||||
},
|
||||
{
|
||||
title: "Create Company",
|
||||
icon: "BadgePlus",
|
||||
description: "Welcome to the company creation page",
|
||||
endpoint: "/company/create",
|
||||
component: "AddCreate2Table",
|
||||
},
|
||||
{
|
||||
title: "Update Company",
|
||||
icon: "Pencil",
|
||||
description: "Welcome to the company update page",
|
||||
endpoint: "/company/update/{company_uu_id}",
|
||||
component: "AddUpdate2Table",
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export { CompanyAllEndpoints, CompanySelfEndpoints, CompanyPageInfo };
|
||||
62
apimaps/company/subCategories.tsx
Normal file
62
apimaps/company/subCategories.tsx
Normal file
@@ -0,0 +1,62 @@
|
||||
const CompanyCategories = [
|
||||
{
|
||||
title: {
|
||||
tr: "Departmanlar",
|
||||
en: "Departments",
|
||||
},
|
||||
icon: "FolderOpenDot",
|
||||
component: null,
|
||||
selfEndpoints: [
|
||||
"/department/list",
|
||||
"/department/create",
|
||||
"/department/update/{department_uu_id}",
|
||||
],
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
{
|
||||
title: {
|
||||
tr: "Görevler",
|
||||
en: "Duties",
|
||||
},
|
||||
icon: "BriefcaseMedical",
|
||||
component: null,
|
||||
selfEndpoints: ["/duties/list", "/duties/create", "/duties/update"],
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
{
|
||||
title: {
|
||||
tr: "Çalışanlar",
|
||||
en: "Employees",
|
||||
},
|
||||
icon: "Pickaxe",
|
||||
component: null,
|
||||
selfEndpoints: [
|
||||
"/employee/list",
|
||||
"/employee/create",
|
||||
"/employee/update/{employee_uu_id}",
|
||||
"/employee/employ",
|
||||
"/employee/fire",
|
||||
],
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
{
|
||||
title: {
|
||||
tr: "Personel",
|
||||
en: "Staff",
|
||||
},
|
||||
icon: "BicepsFlexed",
|
||||
component: null,
|
||||
selfEndpoints: [
|
||||
"/staff/list",
|
||||
"/staff/create",
|
||||
"/staff/update/{staff_uu_id}",
|
||||
],
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
];
|
||||
|
||||
export { CompanyCategories };
|
||||
0
apimaps/decisionBook/iconSet.tsx
Normal file
0
apimaps/decisionBook/iconSet.tsx
Normal file
101
apimaps/decisionBook/pageInfo.ts
Normal file
101
apimaps/decisionBook/pageInfo.ts
Normal file
@@ -0,0 +1,101 @@
|
||||
const DecisionBookAllEndpoints = [
|
||||
"/build/decision_book/list",
|
||||
"/build/decision_book/create",
|
||||
"/build/decision_book/update/{decision_book_uu_id}",
|
||||
"/build/decision_book/approval",
|
||||
"/build/decision_book/items/list",
|
||||
"/build/decision_book/items/create",
|
||||
"/build/decision_book/items/update/{decision_book_item_uu_id}",
|
||||
"/build/decision_book/people/list",
|
||||
"/build/decision_book/people/add",
|
||||
"/build/decision_book/people/remove",
|
||||
"/build/decision_book/project/list",
|
||||
"/build/decision_book/project/create",
|
||||
"/build/decision_book/project/update/{project_uu_id}",
|
||||
"/build/decision_book/project/approval",
|
||||
"/build/decision_book/project/items/list",
|
||||
"/build/decision_book/project/items/create",
|
||||
"/build/decision_book/project/items/update/{project_item_uu_id}",
|
||||
"/build/decision_book/project/people/list",
|
||||
"/build/decision_book/project/people/create",
|
||||
"/build/decision_book/project/people/update/{project_people_uu_id}",
|
||||
];
|
||||
const DecisionBookSelfEndpoints = [
|
||||
"/build/decision_book/list",
|
||||
"/build/decision_book/create",
|
||||
"/build/decision_book/update/{decision_book_uu_id}",
|
||||
];
|
||||
|
||||
const DecisionBookItemAllEndpoints = [
|
||||
"/build/decision_book/items/list",
|
||||
"/build/decision_book/items/create",
|
||||
"/build/decision_book/items/update/{decision_book_item_uu_id}",
|
||||
"/build/decision_book/people/list",
|
||||
"/build/decision_book/people/add",
|
||||
"/build/decision_book/people/remove",
|
||||
];
|
||||
const ProjectBookItemsAllEndpoints = [
|
||||
"/build/decision_book/project/items/list",
|
||||
"/build/decision_book/project/items/create",
|
||||
"/build/decision_book/project/items/update/{project_item_uu_id}",
|
||||
"/build/decision_book/project/people/list",
|
||||
"/build/decision_book/project/people/create",
|
||||
"/build/decision_book/project/people/update/{project_people_uu_id}",
|
||||
];
|
||||
|
||||
const DecisionBookPageInfo = {
|
||||
tr: [
|
||||
{
|
||||
title: "Karar Defteri Listesi",
|
||||
icon: null,
|
||||
description: "Karar Defteri listeyebilirsiniz",
|
||||
endpoint: "/decision_book/list",
|
||||
component: "Table",
|
||||
},
|
||||
{
|
||||
title: "Karar Defteri Ekle",
|
||||
icon: "BadgePlus",
|
||||
description: "Karar Defteri oluşturma sayfasına hoş geldiniz",
|
||||
endpoint: "/decision_book/create",
|
||||
component: "AddCreate2Table",
|
||||
},
|
||||
{
|
||||
title: "Karar Defteri Güncelle",
|
||||
icon: "Pencil",
|
||||
description: "Karar Defteri güncelleme sayfasına hoş geldiniz",
|
||||
endpoint: "/decision_book/update/{company_uu_id}",
|
||||
component: "AddUpdate2Table",
|
||||
},
|
||||
],
|
||||
en: [
|
||||
{
|
||||
title: "Decision Book List",
|
||||
icon: null,
|
||||
description: "Welcome to the decision book update page",
|
||||
endpoint: "/decision_book/list",
|
||||
component: "Table",
|
||||
},
|
||||
{
|
||||
title: "Create Decision Book",
|
||||
icon: "BadgePlus",
|
||||
description: "Welcome to the decision book creation page",
|
||||
endpoint: "/decision_book/create",
|
||||
component: "AddCreate2Table",
|
||||
},
|
||||
{
|
||||
title: "Update Decision Book",
|
||||
icon: "Pencil",
|
||||
description: "Welcome to the decision book update page",
|
||||
endpoint: "/decision_book/update/{company_uu_id}",
|
||||
component: "AddUpdate2Table",
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export {
|
||||
DecisionBookAllEndpoints,
|
||||
DecisionBookSelfEndpoints,
|
||||
DecisionBookItemAllEndpoints,
|
||||
ProjectBookItemsAllEndpoints,
|
||||
DecisionBookPageInfo,
|
||||
};
|
||||
106
apimaps/decisionBook/subCategories.tsx
Normal file
106
apimaps/decisionBook/subCategories.tsx
Normal file
@@ -0,0 +1,106 @@
|
||||
import {
|
||||
DecisionBookAllEndpoints,
|
||||
DecisionBookItemAllEndpoints,
|
||||
ProjectBookItemsAllEndpoints,
|
||||
} from "./pageInfo";
|
||||
|
||||
const DecisionBookCategories = [
|
||||
{
|
||||
title: {
|
||||
tr: "Kararlar",
|
||||
en: "Decisions",
|
||||
},
|
||||
icon: "Stamp",
|
||||
component: null,
|
||||
selfEndpoints: [
|
||||
"/build/decision_book/items/list",
|
||||
"/build/decision_book/items/create",
|
||||
"/build/decision_book/items/update/{decision_book_item_uu_id}",
|
||||
],
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
{
|
||||
title: {
|
||||
tr: "Karar Defteri Kişiler",
|
||||
en: "Decision Book People",
|
||||
},
|
||||
icon: "FolderCheck",
|
||||
component: null,
|
||||
selfEndpoints: [
|
||||
"/build/decision_book/people/list",
|
||||
"/build/decision_book/people/add",
|
||||
"/build/decision_book/people/remove",
|
||||
],
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
];
|
||||
|
||||
const ProjectBookItemsCategories = [
|
||||
{
|
||||
title: {
|
||||
tr: "Proje Dosya İşlemleri",
|
||||
en: "Project File Operations",
|
||||
},
|
||||
icon: "FolderKey",
|
||||
component: null,
|
||||
selfEndpoints: [
|
||||
"/build/decision_book/project/items/list",
|
||||
"/build/decision_book/project/items/create",
|
||||
"/build/decision_book/project/items/update/{project_item_uu_id}",
|
||||
],
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
{
|
||||
title: {
|
||||
tr: "Proje Dosya Kişiler",
|
||||
en: "Project File People",
|
||||
},
|
||||
icon: "FolderCog",
|
||||
component: null,
|
||||
selfEndpoints: [
|
||||
"/build/decision_book/project/people/list",
|
||||
"/build/decision_book/project/people/create",
|
||||
"/build/decision_book/project/people/update/{project_people_uu_id}",
|
||||
],
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
];
|
||||
|
||||
const DecisionBookSubCategories = [
|
||||
{
|
||||
title: {
|
||||
tr: "Kararlar",
|
||||
en: "Decisions",
|
||||
},
|
||||
icon: "ScrollText",
|
||||
component: "",
|
||||
selfEndpoints: [
|
||||
"/build/decision_book/items/list",
|
||||
"/build/decision_book/items/create",
|
||||
"/build/decision_book/items/update/{decision_book_item_uu_id}",
|
||||
],
|
||||
allEndpoints: DecisionBookItemAllEndpoints,
|
||||
subCategories: DecisionBookCategories,
|
||||
},
|
||||
{
|
||||
title: {
|
||||
tr: "Proje Dosyaları",
|
||||
en: "Project Files",
|
||||
},
|
||||
icon: "Projector",
|
||||
component: "",
|
||||
selfEndpoints: [
|
||||
"/build/decision_book/project/list",
|
||||
"/build/decision_book/project/create",
|
||||
"/build/decision_book/project/update/{project_uu_id}",
|
||||
],
|
||||
allEndpoints: ProjectBookItemsAllEndpoints,
|
||||
subCategories: ProjectBookItemsCategories,
|
||||
},
|
||||
];
|
||||
|
||||
export { DecisionBookSubCategories };
|
||||
0
apimaps/identity/iconSet.tsx
Normal file
0
apimaps/identity/iconSet.tsx
Normal file
22
apimaps/identity/pageInfo.ts
Normal file
22
apimaps/identity/pageInfo.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
const IdentityAllEndpoints = [
|
||||
"/users/list",
|
||||
"/users/create",
|
||||
"/users/update/{user_uu_id}",
|
||||
"/people/list",
|
||||
"/people/create",
|
||||
"/people/update/{people_uu_id}",
|
||||
];
|
||||
|
||||
const IdentitySelfEndpoints = ["/users/list"];
|
||||
|
||||
const AddressAllEndpoints = [
|
||||
"/address/list",
|
||||
"/address/create",
|
||||
"/address/update",
|
||||
"/postcode/create",
|
||||
"/postcode/update",
|
||||
"/postcode/list",
|
||||
"/address/search",
|
||||
];
|
||||
|
||||
export { IdentityAllEndpoints, IdentitySelfEndpoints, AddressAllEndpoints };
|
||||
69
apimaps/identity/subCategories.tsx
Normal file
69
apimaps/identity/subCategories.tsx
Normal file
@@ -0,0 +1,69 @@
|
||||
import { AddressAllEndpoints } from "./pageInfo";
|
||||
import { PeoplePageInfo } from "../people/pageInfo";
|
||||
|
||||
const AddressSubCategories = [
|
||||
{
|
||||
title: {
|
||||
tr: "Posta Kodları",
|
||||
en: "Postcodes",
|
||||
},
|
||||
icon: "Container",
|
||||
component: null,
|
||||
selfEndpoints: ["/postcode/list", "/postcode/create", "/postcode/update"],
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
{
|
||||
title: {
|
||||
tr: "Adres Arama",
|
||||
en: "Address Search",
|
||||
},
|
||||
icon: "ScanSearch",
|
||||
component: null,
|
||||
selfEndpoints: ["/address/search", "/address/list"],
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
];
|
||||
|
||||
const IdentityCategories = [
|
||||
{
|
||||
title: {
|
||||
tr: "Kullanıcılar",
|
||||
en: "Users",
|
||||
},
|
||||
icon: "UserPlus",
|
||||
component: null,
|
||||
selfEndpoints: [
|
||||
"/users/list",
|
||||
"/users/create",
|
||||
"/users/update/{user_uu_id}",
|
||||
],
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
{
|
||||
title: {
|
||||
tr: "İnsanlar",
|
||||
en: "People",
|
||||
},
|
||||
icon: "PersonStanding",
|
||||
component: "PeoplePage",
|
||||
pageInfo: PeoplePageInfo,
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
{
|
||||
title: {
|
||||
tr: "Adresler",
|
||||
en: "Addresses",
|
||||
},
|
||||
icon: "MapPinned",
|
||||
component: null,
|
||||
selfEndpoints: ["/address/list", "/address/create", "/address/update"],
|
||||
allEndpoints: AddressAllEndpoints,
|
||||
subCategories: AddressSubCategories,
|
||||
},
|
||||
];
|
||||
|
||||
export { IdentityCategories };
|
||||
50
apimaps/livingSpace/pageInfo.ts
Normal file
50
apimaps/livingSpace/pageInfo.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
const LivingSpaceInfo = {
|
||||
tr: [
|
||||
{
|
||||
title: "Yaşayan Kişiler Listesi",
|
||||
icon: null,
|
||||
description: "Yaşayan Kişiler listeyebilirsiniz",
|
||||
endpoint: "/building/living_space/list",
|
||||
component: "Table",
|
||||
},
|
||||
{
|
||||
title: "Yaşayan Kişi Ekle",
|
||||
icon: "BadgePlus",
|
||||
description: "Yaşayan Kişi oluşturma sayfasına hoş geldiniz",
|
||||
endpoint: "/building/living_space/create",
|
||||
component: "AddCreate2Table",
|
||||
},
|
||||
{
|
||||
title: null,
|
||||
icon: "Pencil",
|
||||
description: "Yaşayan Kişi güncelleme sayfasına hoş geldiniz",
|
||||
endpoint: "/building/living_space/update/{build_uu_id}",
|
||||
component: "AddUpdate2Table",
|
||||
},
|
||||
],
|
||||
en: [
|
||||
{
|
||||
title: "Living People List",
|
||||
icon: null,
|
||||
description: "Welcome to the living people update page",
|
||||
endpoint: "/building/living_space/list",
|
||||
component: "Table",
|
||||
},
|
||||
{
|
||||
title: "Create Living People",
|
||||
icon: "BadgePlus",
|
||||
description: "Welcome to the living people creation page",
|
||||
endpoint: "/building/living_space/create",
|
||||
component: "AddCreate2Table",
|
||||
},
|
||||
{
|
||||
title: "Update Living People",
|
||||
icon: "Pencil",
|
||||
description: "Welcome to the living people update page",
|
||||
endpoint: "/building/living_space/update/{build_uu_id}",
|
||||
component: "AddUpdate2Table",
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export { LivingSpaceInfo };
|
||||
113
apimaps/mappingApi.ts
Normal file
113
apimaps/mappingApi.ts
Normal file
@@ -0,0 +1,113 @@
|
||||
import { BuildCategories } from "./building/subCategories";
|
||||
import { MeetingSubCategories } from "./meeting/subCategories";
|
||||
import { AccountSubCategories } from "./accounts/subCategories";
|
||||
import { DecisionBookSubCategories } from "./decisionBook/subCategories";
|
||||
import { AccesibleCategories } from "./accesible/subCategories";
|
||||
import { CompanyCategories } from "./company/subCategories";
|
||||
import { IdentityCategories } from "./identity/subCategories";
|
||||
import {
|
||||
DecisionBookAllEndpoints,
|
||||
DecisionBookPageInfo,
|
||||
} from "./decisionBook/pageInfo";
|
||||
import { IdentityAllEndpoints } from "./identity/pageInfo";
|
||||
import { AccesibleAllEndpoints } from "./accesible/pageInfo";
|
||||
import { CompanyAllEndpoints, CompanyPageInfo } from "./company/pageInfo";
|
||||
import { MeetingAllEndpoints } from "./meeting/pageInfo";
|
||||
import { AccountAllEndpoints, AccountPageInfo } from "./accounts/pageInfo";
|
||||
import { BuildPageInfo, BuildAllEndpoints } from "./building/pageInfo";
|
||||
|
||||
const PagesInfosAndEndpoints = [
|
||||
{
|
||||
title: {
|
||||
tr: "Binalar",
|
||||
en: "Buildings",
|
||||
},
|
||||
icon: "Hotel",
|
||||
// component: "/build/page",
|
||||
url: "/building?page=1",
|
||||
pageInfo: BuildPageInfo,
|
||||
allEndpoints: BuildAllEndpoints,
|
||||
subCategories: BuildCategories,
|
||||
},
|
||||
{
|
||||
title: {
|
||||
tr: "Toplantılar",
|
||||
en: "Meetings",
|
||||
},
|
||||
icon: "Logs",
|
||||
url: "/meetings?page=1",
|
||||
pageInfo: null,
|
||||
component: null,
|
||||
allEndpoints: MeetingAllEndpoints,
|
||||
subCategories: MeetingSubCategories,
|
||||
},
|
||||
{
|
||||
title: {
|
||||
tr: "Cari Hesaplar",
|
||||
en: "Accounts",
|
||||
},
|
||||
icon: "Landmark",
|
||||
component: "AccountPage",
|
||||
url: "/accounts?page=1",
|
||||
pageInfo: AccountPageInfo,
|
||||
allEndpoints: AccountAllEndpoints,
|
||||
subCategories: AccountSubCategories,
|
||||
},
|
||||
{
|
||||
title: {
|
||||
tr: "Karar Defteri",
|
||||
en: "Decision Book",
|
||||
},
|
||||
icon: "ScrollText",
|
||||
component: "DecisionBookPage",
|
||||
url: "/decisions?page=1",
|
||||
pageInfo: DecisionBookPageInfo,
|
||||
allEndpoints: DecisionBookAllEndpoints,
|
||||
subCategories: DecisionBookSubCategories,
|
||||
},
|
||||
{
|
||||
title: {
|
||||
tr: "Kimlikler",
|
||||
en: "Identities",
|
||||
},
|
||||
icon: "UserPlus",
|
||||
component: null,
|
||||
url: "/identities?page=1",
|
||||
pageInfo: null,
|
||||
allEndpoints: IdentityAllEndpoints,
|
||||
subCategories: IdentityCategories,
|
||||
},
|
||||
{
|
||||
title: {
|
||||
tr: "Erişilebilirlik",
|
||||
en: "Accessibility",
|
||||
},
|
||||
icon: "Cog",
|
||||
component: null,
|
||||
url: "/accessibilities?page=1",
|
||||
pageInfo: null,
|
||||
allEndpoints: AccesibleAllEndpoints,
|
||||
subCategories: AccesibleCategories,
|
||||
},
|
||||
{
|
||||
title: {
|
||||
tr: "Firmalar",
|
||||
en: "Companies",
|
||||
},
|
||||
icon: "Store",
|
||||
component: "CompanyPage",
|
||||
url: "/companies?page=1",
|
||||
pageInfo: CompanyPageInfo,
|
||||
allEndpoints: CompanyAllEndpoints,
|
||||
subCategories: CompanyCategories,
|
||||
},
|
||||
];
|
||||
|
||||
const AvailableLanguages = ["tr", "en"];
|
||||
interface LanguagesInterface {
|
||||
tr: string;
|
||||
en: string;
|
||||
}
|
||||
|
||||
export type { LanguagesInterface };
|
||||
export { PagesInfosAndEndpoints, AvailableLanguages };
|
||||
40
apimaps/mappingApiFunctions.ts
Normal file
40
apimaps/mappingApiFunctions.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
import { PagesInfosAndEndpoints } from "./mappingApi";
|
||||
|
||||
export function retrieveAvailableCategories(availableCategories: any) {
|
||||
const availableCategoriesList = Array.from(
|
||||
availableCategories?.availableEvents || []
|
||||
);
|
||||
let availableMenu: Array<any> = [];
|
||||
|
||||
for (let i = 0; i < PagesInfosAndEndpoints.length; i++) {
|
||||
const category = PagesInfosAndEndpoints[i];
|
||||
if (category.allEndpoints) {
|
||||
const setCategory = isCategoryAvailable(
|
||||
category,
|
||||
availableCategoriesList
|
||||
);
|
||||
if (setCategory) {
|
||||
availableMenu.push(category);
|
||||
}
|
||||
}
|
||||
}
|
||||
return availableMenu;
|
||||
}
|
||||
|
||||
function isCategoryAvailable(category: any, availableCategoriesList: any) {
|
||||
const categoryList = Array.from(category.allEndpoints);
|
||||
for (let j = 0; j < categoryList.length; j++) {
|
||||
const endpoint = categoryList[j];
|
||||
if (availableCategoriesList.includes(endpoint)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function checkEndpointAvailability(
|
||||
endpoint: string,
|
||||
availableCategories: any
|
||||
) {
|
||||
const availableCategoriesList = Array.from(availableCategories || []);
|
||||
return availableCategoriesList.includes(endpoint);
|
||||
}
|
||||
8
apimaps/meeting/pageInfo.ts
Normal file
8
apimaps/meeting/pageInfo.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
const MeetingAllEndpoints = [
|
||||
"/build/decision_book/invite/list",
|
||||
"/build/decision_book/invite/create",
|
||||
"/build/decision_book/invite/update",
|
||||
"/build/decision_book/invitations/assign",
|
||||
];
|
||||
|
||||
export { MeetingAllEndpoints };
|
||||
31
apimaps/meeting/subCategories.tsx
Normal file
31
apimaps/meeting/subCategories.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
const MeetingSubCategories = [
|
||||
{
|
||||
title: {
|
||||
tr: "Davetiyeler",
|
||||
en: "Invitations",
|
||||
},
|
||||
icon: "ClipboardCheck",
|
||||
component: null,
|
||||
selfEndpoints: [
|
||||
"/build/decision_book/invite/list",
|
||||
"/build/decision_book/invite/create",
|
||||
"/build/decision_book/invite/update",
|
||||
"/build/decision_book/invitations/assign",
|
||||
],
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
{
|
||||
title: {
|
||||
tr: "Görev Ata",
|
||||
en: "Assign Task",
|
||||
},
|
||||
icon: "ClipboardList",
|
||||
component: null,
|
||||
selfEndpoints: [],
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
];
|
||||
|
||||
export { MeetingSubCategories };
|
||||
50
apimaps/parts/pageInfo.ts
Normal file
50
apimaps/parts/pageInfo.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
const PartsPageInfo = {
|
||||
tr: [
|
||||
{
|
||||
title: "Daire Listesi",
|
||||
icon: null,
|
||||
description: "Daireleri listeyebilirsiniz",
|
||||
endpoint: "/building/parts/list",
|
||||
component: "Table",
|
||||
},
|
||||
{
|
||||
title: "Daire Oluştur",
|
||||
icon: "BadgePlus",
|
||||
description: "Daire oluşturabilirsiniz",
|
||||
endpoint: "/building/parts/create",
|
||||
component: "Form",
|
||||
},
|
||||
{
|
||||
title: "Daire Güncelle",
|
||||
icon: "Pencil",
|
||||
description: "Daire güncelleyebilirsiniz",
|
||||
endpoint: "/building/parts/update/{build_uu_id}",
|
||||
component: "Form",
|
||||
},
|
||||
],
|
||||
en: [
|
||||
{
|
||||
title: "Flat List",
|
||||
icon: null,
|
||||
description: "You can list the flats",
|
||||
endpoint: "/building/parts/list",
|
||||
component: "Table",
|
||||
},
|
||||
{
|
||||
title: "Create Flat",
|
||||
icon: "BadgePlus",
|
||||
description: "You can create a flat",
|
||||
endpoint: "/building/parts/create",
|
||||
component: "Form",
|
||||
},
|
||||
{
|
||||
title: "Update Flat",
|
||||
icon: "Pencil",
|
||||
description: "You can update a flat",
|
||||
endpoint: "/building/parts/update/{build_uu_id}",
|
||||
component: "Form",
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export { PartsPageInfo };
|
||||
50
apimaps/people/pageInfo.ts
Normal file
50
apimaps/people/pageInfo.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
const PeoplePageInfo = {
|
||||
tr: [
|
||||
{
|
||||
title: "Kişileri Listele",
|
||||
icon: null,
|
||||
description: "Kişileri listeyebilirsiniz",
|
||||
endpoint: "/people/list",
|
||||
component: "Table",
|
||||
},
|
||||
{
|
||||
title: "Kişi Oluştur",
|
||||
icon: "BadgePlus",
|
||||
description: "Kişi oluşturabilirsiniz",
|
||||
endpoint: "/people/create",
|
||||
component: "Form",
|
||||
},
|
||||
{
|
||||
title: "Kişi Güncelle",
|
||||
icon: "Pencil",
|
||||
description: "Kişi güncelleyebilirsiniz",
|
||||
endpoint: "/people/update/{build_uu_id}",
|
||||
component: "Form",
|
||||
},
|
||||
],
|
||||
en: [
|
||||
{
|
||||
title: "People List",
|
||||
icon: null,
|
||||
description: "You can list the people",
|
||||
endpoint: "/people/list",
|
||||
component: "Table",
|
||||
},
|
||||
{
|
||||
title: "Create People",
|
||||
icon: "BadgePlus",
|
||||
description: "You can create a people",
|
||||
endpoint: "/people/create",
|
||||
component: "Form",
|
||||
},
|
||||
{
|
||||
title: "Update People",
|
||||
icon: "Pencil",
|
||||
description: "You can update a people",
|
||||
endpoint: "/people/update/{build_uu_id}",
|
||||
component: "Form",
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export { PeoplePageInfo };
|
||||
Reference in New Issue
Block a user