@bluemarble/bm-components 2.0.0 → 2.0.2
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.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +645 -764
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +643 -762
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -1
package/dist/index.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import * as _mui_material_OverridableComponent from '@mui/material/OverridableCo
|
|
|
6
6
|
import { FactoryOpts } from 'imask';
|
|
7
7
|
import { IconType } from 'react-icons';
|
|
8
8
|
import { NextApiRequest, NextApiResponse, GetServerSidePropsContext } from 'next';
|
|
9
|
-
import {
|
|
9
|
+
import { ZodSchema } from 'zod';
|
|
10
10
|
import { AxiosInstance } from 'axios';
|
|
11
11
|
|
|
12
12
|
interface ColumnTitleProps {
|
|
@@ -448,8 +448,8 @@ declare class ApiHelper<T> {
|
|
|
448
448
|
constructor(props?: ConstructorProps$1<T>);
|
|
449
449
|
setMiddlewares(middlewares: any[]): this;
|
|
450
450
|
createMethods(methods: MethodProps<T>): (req: NextApiRequest, res: NextApiResponse) => Promise<void | NextApiResponse<any>>;
|
|
451
|
-
static
|
|
452
|
-
static
|
|
451
|
+
static parse: typeof ApiHelper.parserErrorWrapper;
|
|
452
|
+
static parserErrorWrapper<Output, Def>(body: Record<string, any>, parser: ZodSchema<Output, Def>): Output;
|
|
453
453
|
static create({ onFinally }: {
|
|
454
454
|
onFinally: any;
|
|
455
455
|
}): ApiHelper<unknown>;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as _mui_material_OverridableComponent from '@mui/material/OverridableCo
|
|
|
6
6
|
import { FactoryOpts } from 'imask';
|
|
7
7
|
import { IconType } from 'react-icons';
|
|
8
8
|
import { NextApiRequest, NextApiResponse, GetServerSidePropsContext } from 'next';
|
|
9
|
-
import {
|
|
9
|
+
import { ZodSchema } from 'zod';
|
|
10
10
|
import { AxiosInstance } from 'axios';
|
|
11
11
|
|
|
12
12
|
interface ColumnTitleProps {
|
|
@@ -448,8 +448,8 @@ declare class ApiHelper<T> {
|
|
|
448
448
|
constructor(props?: ConstructorProps$1<T>);
|
|
449
449
|
setMiddlewares(middlewares: any[]): this;
|
|
450
450
|
createMethods(methods: MethodProps<T>): (req: NextApiRequest, res: NextApiResponse) => Promise<void | NextApiResponse<any>>;
|
|
451
|
-
static
|
|
452
|
-
static
|
|
451
|
+
static parse: typeof ApiHelper.parserErrorWrapper;
|
|
452
|
+
static parserErrorWrapper<Output, Def>(body: Record<string, any>, parser: ZodSchema<Output, Def>): Output;
|
|
453
453
|
static create({ onFinally }: {
|
|
454
454
|
onFinally: any;
|
|
455
455
|
}): ApiHelper<unknown>;
|