coiisy-react
Advanced tools
Comparing version 0.0.10 to 0.0.12
import React from "react"; | ||
import { IconSize } from "components/Icon/Icon.component"; | ||
export type ButtonSize = "small" | "medium" | "large"; | ||
@@ -8,12 +7,9 @@ export type ButtonVariant = "primary" | "secondary" | "tertiary" | "tertiary-link" | "custom" | "dark" | "light"; | ||
size?: ButtonSize; | ||
state?: ButtonVariant; | ||
variant?: ButtonVariant; | ||
typeOf?: ButtonTypeOf; | ||
hasDarkBg?: boolean; | ||
isFullWidth?: boolean; | ||
iconType?: string; | ||
iconSize?: IconSize; | ||
isLoading?: boolean; | ||
isDisabled?: boolean; | ||
isCompact?: boolean; | ||
classNames?: string; | ||
className?: string; | ||
@@ -20,0 +16,0 @@ } |
import { IsignUp, IcreateProfile } from "./types"; | ||
import { LoginFormInterface } from "src/components/AuthCheck/hooks/useLoginMethods.types"; | ||
import { AxiosResponse } from "axios"; | ||
import { FetchResponse } from "../axios"; | ||
declare class AuthService { | ||
@@ -9,6 +9,6 @@ version: string; | ||
constructor(baseUrl: string, version?: string); | ||
postSignUp(body: IsignUp): Promise<AxiosResponse<IsignUp, any>>; | ||
postLogin(body: LoginFormInterface): Promise<AxiosResponse<LoginFormInterface, any>>; | ||
postSetPassword(body: IcreateProfile): Promise<AxiosResponse<IcreateProfile, any>>; | ||
postSignUp(body: IsignUp): Promise<FetchResponse>; | ||
postLogin(body: LoginFormInterface): Promise<FetchResponse>; | ||
postSetPassword(body: IcreateProfile): Promise<FetchResponse>; | ||
} | ||
export { AuthService }; |
@@ -1,3 +0,17 @@ | ||
import { AxiosResponse } from "axios"; | ||
interface AxiosResponseWithPagination extends AxiosResponse { | ||
export declare const baseURL = "http://localhost:4000/api"; | ||
export declare const fetchConfig: { | ||
get: (url: any, options?: {}) => Promise<FetchResponse<unknown>>; | ||
post: (url: any, body: any, options?: {}) => Promise<FetchResponse<unknown>>; | ||
put: (url: any, body: any, options?: {}) => Promise<FetchResponse<unknown>>; | ||
delete: (url: any, options?: {}) => Promise<FetchResponse<unknown>>; | ||
patch: (url: any, body: any, options?: {}) => Promise<FetchResponse<unknown>>; | ||
}; | ||
export declare const fetchSecureConfig: { | ||
get: (url: any, options?: {}) => Promise<FetchResponse<unknown>>; | ||
post: (url: any, body: any, options?: {}) => Promise<FetchResponse<unknown>>; | ||
put: (url: any, body: any, options?: {}) => Promise<FetchResponse<unknown>>; | ||
delete: (url: any, options?: {}) => Promise<FetchResponse<unknown>>; | ||
patch: (url: any, body: any, options?: {}) => Promise<FetchResponse<unknown>>; | ||
}; | ||
export type FetchResponseWithPagination = { | ||
page: number; | ||
@@ -7,7 +21,12 @@ limit: number; | ||
totalResults: number; | ||
} | ||
export declare const baseURL = "http://localhost:4000/api"; | ||
export declare const axiosConfig: import("axios").AxiosInstance; | ||
export declare const axiosSecureConfig: import("axios").AxiosInstance; | ||
export type { AxiosResponseWithPagination }; | ||
export type { AxiosResponse }; | ||
data: any; | ||
status: number; | ||
statusText: string; | ||
headers: Headers; | ||
}; | ||
export type FetchResponse<T = any> = { | ||
data?: T; | ||
status?: number; | ||
statusText?: string; | ||
headers?: Headers; | ||
}; |
import { IdentifierType, VerifyOtpType } from "./types"; | ||
import { AxiosResponse } from "axios"; | ||
import { FetchResponse } from "src/services/axios"; | ||
declare class IdentifierService { | ||
@@ -8,5 +8,5 @@ version: string; | ||
constructor(baseUrl: string, version?: string); | ||
postSendOtp(body: IdentifierType): Promise<AxiosResponse<IdentifierType, any>>; | ||
postVerifyOtp(body: VerifyOtpType): Promise<AxiosResponse<VerifyOtpType, any>>; | ||
postSendOtp(body: IdentifierType): Promise<FetchResponse>; | ||
postVerifyOtp(body: VerifyOtpType): Promise<FetchResponse>; | ||
} | ||
export { IdentifierService }; |
@@ -1,3 +0,3 @@ | ||
import { IputJobApplication, IapplyJob, IgetUsers } from "./types"; | ||
import { AxiosResponse } from "axios"; | ||
import { IputJobApplication, IapplyJob } from "./types"; | ||
import { FetchResponse } from "src/services/axios"; | ||
declare class OrgService { | ||
@@ -8,8 +8,8 @@ version: string; | ||
constructor(baseUrl: string, version?: string); | ||
getRecord(body: any): Promise<AxiosResponse<IgetUsers, any>>; | ||
getList(params?: any): Promise<AxiosResponse<any, any>>; | ||
patchRecord(body: IputJobApplication): Promise<AxiosResponse<IapplyJob, any>>; | ||
deleteRecord(body: any): Promise<AxiosResponse<IapplyJob, any>>; | ||
postRecord(body: IapplyJob): Promise<AxiosResponse<IapplyJob, any>>; | ||
getRecord(body: any): Promise<FetchResponse>; | ||
getList(params?: any): Promise<FetchResponse>; | ||
patchRecord(body: IputJobApplication): Promise<FetchResponse>; | ||
deleteRecord(body: any): Promise<FetchResponse>; | ||
postRecord(body: IapplyJob): Promise<FetchResponse>; | ||
} | ||
export { OrgService }; |
@@ -1,3 +0,3 @@ | ||
import { Ilogin, IgetUsers, IcreateProfile } from "./types"; | ||
import { AxiosResponse } from "axios"; | ||
import { Ilogin, IcreateProfile } from "./types"; | ||
import { FetchResponse } from "src/services/axios"; | ||
declare class UsersService { | ||
@@ -8,7 +8,7 @@ version: string; | ||
constructor(baseUrl: string, version?: string); | ||
getList(): Promise<AxiosResponse<IgetUsers, any>>; | ||
postLogin(body: Ilogin): Promise<AxiosResponse<Ilogin, any>>; | ||
getUserMappedOrgList(body?: Ilogin): Promise<AxiosResponse<any, any>>; | ||
postSetPassword(body: IcreateProfile): Promise<AxiosResponse<IcreateProfile, any>>; | ||
getList(): Promise<FetchResponse>; | ||
postLogin(body: Ilogin): Promise<FetchResponse>; | ||
getUserMappedOrgList(body?: Ilogin): Promise<FetchResponse>; | ||
postSetPassword(body: IcreateProfile): Promise<FetchResponse>; | ||
} | ||
export { UsersService }; |
@@ -8,3 +8,3 @@ { | ||
"private": false, | ||
"version": "0.0.10", | ||
"version": "0.0.12", | ||
"type": "module", | ||
@@ -19,4 +19,4 @@ "files": [ | ||
"preview": "vite preview", | ||
"build:prod": "rollup -c", | ||
"prepublishOnly": "git add . && git commit --amend --no-edit && rm -rf dist && npm run build:prod", | ||
"rollup": "rollup -c", | ||
"prepublishOnly": "git add . && git commit --amend --no-edit && rm -rf dist && npm run rollup", | ||
"nuke": "rm -rf node_modules && rm -rf dist && npm install" | ||
@@ -26,3 +26,2 @@ }, | ||
"@heroicons/react": "^2.1.3", | ||
"axios": "^1.7.2", | ||
"classnames": "^2.3.1", | ||
@@ -29,0 +28,0 @@ "dayjs": "^1.11.11", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
9
57
0
2
405315
932
- Removedaxios@^1.7.2
- Removedasynckit@0.4.0(transitive)
- Removedaxios@1.7.7(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedfollow-redirects@1.15.9(transitive)
- Removedform-data@4.0.1(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedproxy-from-env@1.1.0(transitive)