tenant_panam 0.7.5 → 0.7.7
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 +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +33 -32
- package/dist/index.d.ts +33 -32
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
@@ -309,6 +309,7 @@ type getSalaryDataWithMonthAndYearType = {
|
|
309
309
|
|
310
310
|
declare const createSalaryData: (obj: CreateSalaryType, tenantId: string, userId: string) => Promise<AxiosResponse<CreateSalaryType, any>>;
|
311
311
|
declare const getSalaryData: (obj: getSalaryDataType, tenantId: string, userId: string) => Promise<AxiosResponse<getSalaryDataType, any>>;
|
312
|
+
declare const getSalaryWithMonthAndYear: (obj: getSalaryDataWithMonthAndYearType, tenantId: string, userId: string) => Promise<AxiosResponse<ApiRepsonse<{}>, any>>;
|
312
313
|
|
313
314
|
type CreateTemplateSalaryType = {
|
314
315
|
templateName: string;
|
@@ -368,6 +369,36 @@ declare const getTemplateSalaryData: (obj: CrudType, tenantId: string, userId: s
|
|
368
369
|
declare const editTemplateSalaryData: (obj: EditTemplateSalaryType, tenantId: string, userId: string) => Promise<AxiosResponse<CrudType, any>>;
|
369
370
|
declare const deleteTemplateSalary: (obj: CrudType, tenantId: string, userId: string) => Promise<AxiosResponse<CrudType, any>>;
|
370
371
|
|
372
|
+
interface sendOtpType {
|
373
|
+
mobile: string;
|
374
|
+
}
|
375
|
+
interface verifyOtpType {
|
376
|
+
phoneNumber: string;
|
377
|
+
otp: string;
|
378
|
+
}
|
379
|
+
interface userInfoType {
|
380
|
+
tenantInfo: TenantInfoType;
|
381
|
+
personInfo: PersonInfoType;
|
382
|
+
tokenInfo: TokenInfoType;
|
383
|
+
}
|
384
|
+
interface TokenInfoType {
|
385
|
+
accessToken: string;
|
386
|
+
accessTokenExpiration: string;
|
387
|
+
}
|
388
|
+
interface PersonInfoType {
|
389
|
+
id: number;
|
390
|
+
isAdmin: boolean;
|
391
|
+
firstName: string;
|
392
|
+
lastName: string;
|
393
|
+
nationalId: string;
|
394
|
+
personnelId: string;
|
395
|
+
mobile: string;
|
396
|
+
}
|
397
|
+
interface TenantInfoType {
|
398
|
+
id: string;
|
399
|
+
name: string;
|
400
|
+
}
|
401
|
+
|
371
402
|
declare const useTenant: (params: listType) => {
|
372
403
|
tenantsList: {
|
373
404
|
data: ListApiRepsonse<TenantType> | undefined;
|
@@ -570,36 +601,6 @@ declare const useSalary: (tenantId: string, userId: string) => {
|
|
570
601
|
};
|
571
602
|
};
|
572
603
|
|
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
604
|
declare const useLogin: () => {
|
604
605
|
sendOtp: {
|
605
606
|
sendOtpPending: boolean;
|
@@ -607,7 +608,7 @@ declare const useLogin: () => {
|
|
607
608
|
};
|
608
609
|
verifyOtp: {
|
609
610
|
verifyOtpPending: boolean;
|
610
|
-
verifyOtpMutate: _tanstack_react_query.UseMutateFunction<
|
611
|
+
verifyOtpMutate: _tanstack_react_query.UseMutateFunction<userInfoType, Error, verifyOtpType, unknown>;
|
611
612
|
};
|
612
613
|
};
|
613
614
|
|
@@ -703,4 +704,4 @@ declare const CreateRoleSchema: yup.ObjectSchema<{
|
|
703
704
|
des: undefined;
|
704
705
|
}, "">;
|
705
706
|
|
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 };
|
707
|
+
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 PersonInfoType, type PersonType, QueryProvider, type RoleType, type TemplateSalaryType, type TenantInfoType, type TenantType, type TokenInfoType, 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, getSalaryWithMonthAndYear, getTemplateSalaryData, getTenantData, logoUploadSchema, type sendOtpType, uploadTemplateSalary, uploadTenantLogo, urls, useDropdownSalaryTemplate, useLogin, usePerson, usePersonDropdown, useUploadPerson as usePersonUpload, useSalary, useSalaryTemplate, useSalaryTemplateWithId, useTenant, useTenantDropdown, useTenantUpload, useUploadSalaryTemplate, type userInfoType, type verifyOtpType };
|
package/dist/index.d.ts
CHANGED
@@ -309,6 +309,7 @@ type getSalaryDataWithMonthAndYearType = {
|
|
309
309
|
|
310
310
|
declare const createSalaryData: (obj: CreateSalaryType, tenantId: string, userId: string) => Promise<AxiosResponse<CreateSalaryType, any>>;
|
311
311
|
declare const getSalaryData: (obj: getSalaryDataType, tenantId: string, userId: string) => Promise<AxiosResponse<getSalaryDataType, any>>;
|
312
|
+
declare const getSalaryWithMonthAndYear: (obj: getSalaryDataWithMonthAndYearType, tenantId: string, userId: string) => Promise<AxiosResponse<ApiRepsonse<{}>, any>>;
|
312
313
|
|
313
314
|
type CreateTemplateSalaryType = {
|
314
315
|
templateName: string;
|
@@ -368,6 +369,36 @@ declare const getTemplateSalaryData: (obj: CrudType, tenantId: string, userId: s
|
|
368
369
|
declare const editTemplateSalaryData: (obj: EditTemplateSalaryType, tenantId: string, userId: string) => Promise<AxiosResponse<CrudType, any>>;
|
369
370
|
declare const deleteTemplateSalary: (obj: CrudType, tenantId: string, userId: string) => Promise<AxiosResponse<CrudType, any>>;
|
370
371
|
|
372
|
+
interface sendOtpType {
|
373
|
+
mobile: string;
|
374
|
+
}
|
375
|
+
interface verifyOtpType {
|
376
|
+
phoneNumber: string;
|
377
|
+
otp: string;
|
378
|
+
}
|
379
|
+
interface userInfoType {
|
380
|
+
tenantInfo: TenantInfoType;
|
381
|
+
personInfo: PersonInfoType;
|
382
|
+
tokenInfo: TokenInfoType;
|
383
|
+
}
|
384
|
+
interface TokenInfoType {
|
385
|
+
accessToken: string;
|
386
|
+
accessTokenExpiration: string;
|
387
|
+
}
|
388
|
+
interface PersonInfoType {
|
389
|
+
id: number;
|
390
|
+
isAdmin: boolean;
|
391
|
+
firstName: string;
|
392
|
+
lastName: string;
|
393
|
+
nationalId: string;
|
394
|
+
personnelId: string;
|
395
|
+
mobile: string;
|
396
|
+
}
|
397
|
+
interface TenantInfoType {
|
398
|
+
id: string;
|
399
|
+
name: string;
|
400
|
+
}
|
401
|
+
|
371
402
|
declare const useTenant: (params: listType) => {
|
372
403
|
tenantsList: {
|
373
404
|
data: ListApiRepsonse<TenantType> | undefined;
|
@@ -570,36 +601,6 @@ declare const useSalary: (tenantId: string, userId: string) => {
|
|
570
601
|
};
|
571
602
|
};
|
572
603
|
|
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
604
|
declare const useLogin: () => {
|
604
605
|
sendOtp: {
|
605
606
|
sendOtpPending: boolean;
|
@@ -607,7 +608,7 @@ declare const useLogin: () => {
|
|
607
608
|
};
|
608
609
|
verifyOtp: {
|
609
610
|
verifyOtpPending: boolean;
|
610
|
-
verifyOtpMutate: _tanstack_react_query.UseMutateFunction<
|
611
|
+
verifyOtpMutate: _tanstack_react_query.UseMutateFunction<userInfoType, Error, verifyOtpType, unknown>;
|
611
612
|
};
|
612
613
|
};
|
613
614
|
|
@@ -703,4 +704,4 @@ declare const CreateRoleSchema: yup.ObjectSchema<{
|
|
703
704
|
des: undefined;
|
704
705
|
}, "">;
|
705
706
|
|
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 };
|
707
|
+
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 PersonInfoType, type PersonType, QueryProvider, type RoleType, type TemplateSalaryType, type TenantInfoType, type TenantType, type TokenInfoType, 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, getSalaryWithMonthAndYear, getTemplateSalaryData, getTenantData, logoUploadSchema, type sendOtpType, uploadTemplateSalary, uploadTenantLogo, urls, useDropdownSalaryTemplate, useLogin, usePerson, usePersonDropdown, useUploadPerson as usePersonUpload, useSalary, useSalaryTemplate, useSalaryTemplateWithId, useTenant, useTenantDropdown, useTenantUpload, useUploadSalaryTemplate, type userInfoType, type verifyOtpType };
|