tenant_panam 0.7.2 → 0.7.4
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.cjs +30 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +61 -1
- package/dist/index.d.ts +61 -1
- package/dist/index.js +30 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
@@ -6,6 +6,14 @@ import React, { ReactNode } from 'react';
|
|
6
6
|
import * as yup from 'yup';
|
7
7
|
|
8
8
|
declare const urls: {
|
9
|
+
auth: {
|
10
|
+
sendOtp: {
|
11
|
+
url: string;
|
12
|
+
};
|
13
|
+
verifyOtp: {
|
14
|
+
url: string;
|
15
|
+
};
|
16
|
+
};
|
9
17
|
Person: {
|
10
18
|
create: {
|
11
19
|
url: string;
|
@@ -59,6 +67,9 @@ declare const urls: {
|
|
59
67
|
getdownloadsalary: {
|
60
68
|
url: string;
|
61
69
|
};
|
70
|
+
getSalaryWithMonthAndYear: {
|
71
|
+
url: string;
|
72
|
+
};
|
62
73
|
};
|
63
74
|
Salarytemplate: {
|
64
75
|
create: {
|
@@ -291,6 +302,10 @@ type CreateSalaryType = {
|
|
291
302
|
type getSalaryDataType = {
|
292
303
|
guid: string;
|
293
304
|
};
|
305
|
+
type getSalaryDataWithMonthAndYearType = {
|
306
|
+
year: number;
|
307
|
+
month: number;
|
308
|
+
};
|
294
309
|
|
295
310
|
declare const createSalaryData: (obj: CreateSalaryType, tenantId: string, userId: string) => Promise<AxiosResponse<CreateSalaryType, any>>;
|
296
311
|
declare const getSalaryData: (obj: getSalaryDataType, tenantId: string, userId: string) => Promise<AxiosResponse<getSalaryDataType, any>>;
|
@@ -549,6 +564,51 @@ declare const useSalary: (tenantId: string, userId: string) => {
|
|
549
564
|
salaryDataPending: boolean;
|
550
565
|
salaryDataMutate: _tanstack_react_query.UseMutateFunction<getSalaryDataType, Error, getSalaryDataType, unknown>;
|
551
566
|
};
|
567
|
+
getSalaryWithMonthAndYearData: {
|
568
|
+
salaryDataWithMonthAndYearPending: boolean;
|
569
|
+
salaryDataWithMonthAndYearMutate: _tanstack_react_query.UseMutateFunction<ApiRepsonse<{}>, Error, getSalaryDataWithMonthAndYearType, unknown>;
|
570
|
+
};
|
571
|
+
};
|
572
|
+
|
573
|
+
interface sendOtpType {
|
574
|
+
mobile: string;
|
575
|
+
}
|
576
|
+
interface verifyOtpType {
|
577
|
+
phoneNumber: string;
|
578
|
+
otp: string;
|
579
|
+
}
|
580
|
+
interface userInfo {
|
581
|
+
tenantInfo: TenantInfo;
|
582
|
+
personInfo: PersonInfo;
|
583
|
+
tokenInfo: TokenInfo;
|
584
|
+
}
|
585
|
+
interface TokenInfo {
|
586
|
+
accessToken: string;
|
587
|
+
accessTokenExpiration: string;
|
588
|
+
}
|
589
|
+
interface PersonInfo {
|
590
|
+
id: number;
|
591
|
+
isAdmin: boolean;
|
592
|
+
firstName: string;
|
593
|
+
lastName: string;
|
594
|
+
nationalId: string;
|
595
|
+
personnelId: string;
|
596
|
+
mobile: string;
|
597
|
+
}
|
598
|
+
interface TenantInfo {
|
599
|
+
id: string;
|
600
|
+
name: string;
|
601
|
+
}
|
602
|
+
|
603
|
+
declare const useLogin: () => {
|
604
|
+
sendOtp: {
|
605
|
+
sendOtpPending: boolean;
|
606
|
+
sendOtpMutate: _tanstack_react_query.UseMutateFunction<{}, Error, sendOtpType, unknown>;
|
607
|
+
};
|
608
|
+
verifyOtp: {
|
609
|
+
verifyOtpPending: boolean;
|
610
|
+
verifyOtpMutate: _tanstack_react_query.UseMutateFunction<userInfo, Error, verifyOtpType, unknown>;
|
611
|
+
};
|
552
612
|
};
|
553
613
|
|
554
614
|
interface QueryProviderProps {
|
@@ -643,4 +703,4 @@ declare const CreateRoleSchema: yup.ObjectSchema<{
|
|
643
703
|
des: undefined;
|
644
704
|
}, "">;
|
645
705
|
|
646
|
-
export { type ColMapping, type CreatePersonType, CreateRoleSchema, type CreateRoleType, CreateSalarySchema, type CreateSalaryType, type CreateTemplateSalaryType, type CreateTenantType, type CrudType, type DropdownItem, type EditPersonType, type EditRoleType, type EditTemplateSalaryType, type EditTenantType, type FixedItemMapping, type ListPersonDropDownType, type ListPersonType, type ListRoleDropDownType, type ListRoleType, type ListTemplateSalaryDropDownType, type ListTemplateSalaryType, type ListTenantDropDownType, type ListTenantType, type PersonType, QueryProvider, type RoleType, type TemplateSalaryType, type TenantType, type UploadLogoTenantType, type UploadTemplateSalaryType, createDefaultAdmin, createPerson, createPersonSchema, createPersonUploadFile, createPersonUploadSchema, createRole, createSalaryData, createTemplateSalary, createTemplateSalarySchema, createTemplateSalaryuploadSchema, createTenant, createTenantFileSchema, createTenantSchema, deleteRole, deleteTemplateSalary, deleteTenant, deleteperson, editPersonData, editRoleData, editTemplateSalaryData, editTenantData, getItemTemplateSalary, getListDropdownPersons, getListDropdownRoles, getListDropdownTemplateSalars, getListDropdownTenants, getListPersons, getListRoles, getListTemplateSalars, getListTenants, getPersonData, getRoleData, getSalaryData, getSalaryDataSchema, type getSalaryDataType, getTemplateSalaryData, getTenantData, logoUploadSchema, uploadTemplateSalary, uploadTenantLogo, urls, useDropdownSalaryTemplate, usePerson, usePersonDropdown, useUploadPerson as usePersonUpload, useSalary, useSalaryTemplate, useSalaryTemplateWithId, useTenant, useTenantDropdown, useTenantUpload, useUploadSalaryTemplate };
|
706
|
+
export { type ColMapping, type CreatePersonType, CreateRoleSchema, type CreateRoleType, CreateSalarySchema, type CreateSalaryType, type CreateTemplateSalaryType, type CreateTenantType, type CrudType, type DropdownItem, type EditPersonType, type EditRoleType, type EditTemplateSalaryType, type EditTenantType, type FixedItemMapping, type ListPersonDropDownType, type ListPersonType, type ListRoleDropDownType, type ListRoleType, type ListTemplateSalaryDropDownType, type ListTemplateSalaryType, type ListTenantDropDownType, type ListTenantType, type PersonType, QueryProvider, type RoleType, type TemplateSalaryType, type TenantType, type UploadLogoTenantType, type UploadTemplateSalaryType, createDefaultAdmin, createPerson, createPersonSchema, createPersonUploadFile, createPersonUploadSchema, createRole, createSalaryData, createTemplateSalary, createTemplateSalarySchema, createTemplateSalaryuploadSchema, createTenant, createTenantFileSchema, createTenantSchema, deleteRole, deleteTemplateSalary, deleteTenant, deleteperson, editPersonData, editRoleData, editTemplateSalaryData, editTenantData, getItemTemplateSalary, getListDropdownPersons, getListDropdownRoles, getListDropdownTemplateSalars, getListDropdownTenants, getListPersons, getListRoles, getListTemplateSalars, getListTenants, getPersonData, getRoleData, getSalaryData, getSalaryDataSchema, type getSalaryDataType, type getSalaryDataWithMonthAndYearType, getTemplateSalaryData, getTenantData, logoUploadSchema, uploadTemplateSalary, uploadTenantLogo, urls, useDropdownSalaryTemplate, useLogin, usePerson, usePersonDropdown, useUploadPerson as usePersonUpload, useSalary, useSalaryTemplate, useSalaryTemplateWithId, useTenant, useTenantDropdown, useTenantUpload, useUploadSalaryTemplate };
|
package/dist/index.d.ts
CHANGED
@@ -6,6 +6,14 @@ import React, { ReactNode } from 'react';
|
|
6
6
|
import * as yup from 'yup';
|
7
7
|
|
8
8
|
declare const urls: {
|
9
|
+
auth: {
|
10
|
+
sendOtp: {
|
11
|
+
url: string;
|
12
|
+
};
|
13
|
+
verifyOtp: {
|
14
|
+
url: string;
|
15
|
+
};
|
16
|
+
};
|
9
17
|
Person: {
|
10
18
|
create: {
|
11
19
|
url: string;
|
@@ -59,6 +67,9 @@ declare const urls: {
|
|
59
67
|
getdownloadsalary: {
|
60
68
|
url: string;
|
61
69
|
};
|
70
|
+
getSalaryWithMonthAndYear: {
|
71
|
+
url: string;
|
72
|
+
};
|
62
73
|
};
|
63
74
|
Salarytemplate: {
|
64
75
|
create: {
|
@@ -291,6 +302,10 @@ type CreateSalaryType = {
|
|
291
302
|
type getSalaryDataType = {
|
292
303
|
guid: string;
|
293
304
|
};
|
305
|
+
type getSalaryDataWithMonthAndYearType = {
|
306
|
+
year: number;
|
307
|
+
month: number;
|
308
|
+
};
|
294
309
|
|
295
310
|
declare const createSalaryData: (obj: CreateSalaryType, tenantId: string, userId: string) => Promise<AxiosResponse<CreateSalaryType, any>>;
|
296
311
|
declare const getSalaryData: (obj: getSalaryDataType, tenantId: string, userId: string) => Promise<AxiosResponse<getSalaryDataType, any>>;
|
@@ -549,6 +564,51 @@ declare const useSalary: (tenantId: string, userId: string) => {
|
|
549
564
|
salaryDataPending: boolean;
|
550
565
|
salaryDataMutate: _tanstack_react_query.UseMutateFunction<getSalaryDataType, Error, getSalaryDataType, unknown>;
|
551
566
|
};
|
567
|
+
getSalaryWithMonthAndYearData: {
|
568
|
+
salaryDataWithMonthAndYearPending: boolean;
|
569
|
+
salaryDataWithMonthAndYearMutate: _tanstack_react_query.UseMutateFunction<ApiRepsonse<{}>, Error, getSalaryDataWithMonthAndYearType, unknown>;
|
570
|
+
};
|
571
|
+
};
|
572
|
+
|
573
|
+
interface sendOtpType {
|
574
|
+
mobile: string;
|
575
|
+
}
|
576
|
+
interface verifyOtpType {
|
577
|
+
phoneNumber: string;
|
578
|
+
otp: string;
|
579
|
+
}
|
580
|
+
interface userInfo {
|
581
|
+
tenantInfo: TenantInfo;
|
582
|
+
personInfo: PersonInfo;
|
583
|
+
tokenInfo: TokenInfo;
|
584
|
+
}
|
585
|
+
interface TokenInfo {
|
586
|
+
accessToken: string;
|
587
|
+
accessTokenExpiration: string;
|
588
|
+
}
|
589
|
+
interface PersonInfo {
|
590
|
+
id: number;
|
591
|
+
isAdmin: boolean;
|
592
|
+
firstName: string;
|
593
|
+
lastName: string;
|
594
|
+
nationalId: string;
|
595
|
+
personnelId: string;
|
596
|
+
mobile: string;
|
597
|
+
}
|
598
|
+
interface TenantInfo {
|
599
|
+
id: string;
|
600
|
+
name: string;
|
601
|
+
}
|
602
|
+
|
603
|
+
declare const useLogin: () => {
|
604
|
+
sendOtp: {
|
605
|
+
sendOtpPending: boolean;
|
606
|
+
sendOtpMutate: _tanstack_react_query.UseMutateFunction<{}, Error, sendOtpType, unknown>;
|
607
|
+
};
|
608
|
+
verifyOtp: {
|
609
|
+
verifyOtpPending: boolean;
|
610
|
+
verifyOtpMutate: _tanstack_react_query.UseMutateFunction<userInfo, Error, verifyOtpType, unknown>;
|
611
|
+
};
|
552
612
|
};
|
553
613
|
|
554
614
|
interface QueryProviderProps {
|
@@ -643,4 +703,4 @@ declare const CreateRoleSchema: yup.ObjectSchema<{
|
|
643
703
|
des: undefined;
|
644
704
|
}, "">;
|
645
705
|
|
646
|
-
export { type ColMapping, type CreatePersonType, CreateRoleSchema, type CreateRoleType, CreateSalarySchema, type CreateSalaryType, type CreateTemplateSalaryType, type CreateTenantType, type CrudType, type DropdownItem, type EditPersonType, type EditRoleType, type EditTemplateSalaryType, type EditTenantType, type FixedItemMapping, type ListPersonDropDownType, type ListPersonType, type ListRoleDropDownType, type ListRoleType, type ListTemplateSalaryDropDownType, type ListTemplateSalaryType, type ListTenantDropDownType, type ListTenantType, type PersonType, QueryProvider, type RoleType, type TemplateSalaryType, type TenantType, type UploadLogoTenantType, type UploadTemplateSalaryType, createDefaultAdmin, createPerson, createPersonSchema, createPersonUploadFile, createPersonUploadSchema, createRole, createSalaryData, createTemplateSalary, createTemplateSalarySchema, createTemplateSalaryuploadSchema, createTenant, createTenantFileSchema, createTenantSchema, deleteRole, deleteTemplateSalary, deleteTenant, deleteperson, editPersonData, editRoleData, editTemplateSalaryData, editTenantData, getItemTemplateSalary, getListDropdownPersons, getListDropdownRoles, getListDropdownTemplateSalars, getListDropdownTenants, getListPersons, getListRoles, getListTemplateSalars, getListTenants, getPersonData, getRoleData, getSalaryData, getSalaryDataSchema, type getSalaryDataType, getTemplateSalaryData, getTenantData, logoUploadSchema, uploadTemplateSalary, uploadTenantLogo, urls, useDropdownSalaryTemplate, usePerson, usePersonDropdown, useUploadPerson as usePersonUpload, useSalary, useSalaryTemplate, useSalaryTemplateWithId, useTenant, useTenantDropdown, useTenantUpload, useUploadSalaryTemplate };
|
706
|
+
export { type ColMapping, type CreatePersonType, CreateRoleSchema, type CreateRoleType, CreateSalarySchema, type CreateSalaryType, type CreateTemplateSalaryType, type CreateTenantType, type CrudType, type DropdownItem, type EditPersonType, type EditRoleType, type EditTemplateSalaryType, type EditTenantType, type FixedItemMapping, type ListPersonDropDownType, type ListPersonType, type ListRoleDropDownType, type ListRoleType, type ListTemplateSalaryDropDownType, type ListTemplateSalaryType, type ListTenantDropDownType, type ListTenantType, type PersonType, QueryProvider, type RoleType, type TemplateSalaryType, type TenantType, type UploadLogoTenantType, type UploadTemplateSalaryType, createDefaultAdmin, createPerson, createPersonSchema, createPersonUploadFile, createPersonUploadSchema, createRole, createSalaryData, createTemplateSalary, createTemplateSalarySchema, createTemplateSalaryuploadSchema, createTenant, createTenantFileSchema, createTenantSchema, deleteRole, deleteTemplateSalary, deleteTenant, deleteperson, editPersonData, editRoleData, editTemplateSalaryData, editTenantData, getItemTemplateSalary, getListDropdownPersons, getListDropdownRoles, getListDropdownTemplateSalars, getListDropdownTenants, getListPersons, getListRoles, getListTemplateSalars, getListTenants, getPersonData, getRoleData, getSalaryData, getSalaryDataSchema, type getSalaryDataType, type getSalaryDataWithMonthAndYearType, getTemplateSalaryData, getTenantData, logoUploadSchema, uploadTemplateSalary, uploadTenantLogo, urls, useDropdownSalaryTemplate, useLogin, usePerson, usePersonDropdown, useUploadPerson as usePersonUpload, useSalary, useSalaryTemplate, useSalaryTemplateWithId, useTenant, useTenantDropdown, useTenantUpload, useUploadSalaryTemplate };
|