umwd-components 0.1.735 → 0.1.737
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/cjs/src/components/ContactForm.js +1 -1
- package/dist/cjs/src/components/common/Contacts.js +1 -1
- package/dist/cjs/src/components/e-commerce/iro/RmaForm.js +1 -1
- package/dist/cjs/src/components/e-commerce/iro/TextualIROItemUpdater.js +1 -1
- package/dist/cjs/src/components/layout/NavbarV2.js +1 -1
- package/dist/cjs/src/components/logistics/vendor/EditVendorForm.js +1 -1
- package/dist/cjs/src/components/logistics/vendor/VendorDisplay.js +1 -1
- package/dist/cjs/src/data/actions/e-commerce/iro/requestRmaAction.js +1 -1
- package/dist/cjs/src/data/loaders/e-commerce/getAllOpos.js +1 -1
- package/dist/cjs/src/data/loaders/e-commerce/getSingleOpo.js +1 -1
- package/dist/cjs/src/data/loaders/e-commerce/iros/getSingleIro.js +1 -1
- package/dist/cjs/src/data/services/get-user-me-loader.js +1 -1
- package/dist/cjs/src/lib/parseNavigation.js +1 -1
- package/dist/cjs/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/src/components/ContactForm.js +1 -0
- package/dist/esm/src/components/common/Contacts.js +2 -2
- package/dist/esm/src/components/e-commerce/iro/RmaForm.js +7 -11
- package/dist/esm/src/components/e-commerce/iro/TextualIROItemUpdater.js +6 -5
- package/dist/esm/src/components/e-commerce/iro/TextualManageIROForm.js +4 -4
- package/dist/esm/src/components/layout/NavbarV2.js +5 -5
- package/dist/esm/src/components/logistics/vendor/EditVendorForm.js +5 -6
- package/dist/esm/src/components/logistics/vendor/VendorDisplay.js +1 -1
- package/dist/esm/src/data/actions/e-commerce/iro/requestRmaAction.js +3 -1
- package/dist/esm/src/data/loaders/e-commerce/getAllOpos.js +1 -1
- package/dist/esm/src/data/loaders/e-commerce/getSingleOpo.js +1 -3
- package/dist/esm/src/data/loaders/e-commerce/iros/getAllIros.js +8 -0
- package/dist/esm/src/data/loaders/e-commerce/iros/getSingleIro.js +5 -5
- package/dist/esm/src/data/services/get-user-me-loader.js +1 -1
- package/dist/esm/src/lib/parseNavigation.js +3 -3
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/types/components/e-commerce/iro/TextualIROItemUpdater.d.ts +2 -2
- package/dist/esm/types/components/e-commerce/iro/TextualManageIROForm.d.ts +1 -1
- package/dist/esm/types/data/loaders/e-commerce/getAllOpos.d.ts +1 -1
- package/dist/esm/types/data/loaders/e-commerce/iros/getAllIros.d.ts +8 -0
- package/dist/esm/types/data/loaders/e-commerce/iros/getSingleIro.d.ts +1 -1
- package/dist/esm/types/types/Navigation.d.ts +2 -2
- package/dist/esm/types/types/e-commerce/iro/types.d.ts +1 -1
- package/dist/esm/types/types/logistics/Vendor.d.ts +2 -6
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TextualIroItemUpdaterProps } from "../../../types/e-commerce/iro/types";
|
|
2
|
-
declare function
|
|
3
|
-
export default
|
|
2
|
+
declare function TextualIroItemUpdater({ item, index, handleAddReport, handleUpdateQuantity, image, handleRemoveReportAtIndex, showing, }: TextualIroItemUpdaterProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default TextualIroItemUpdater;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ManageIroFormProps } from "../../../types/e-commerce/iro/types";
|
|
2
2
|
import { SxProps } from "@mui/material/styles";
|
|
3
|
-
export default function
|
|
3
|
+
export default function TextualManageIroForm({ data, sx, revalidateCallback, handleClose, role, }: ManageIroFormProps & {
|
|
4
4
|
sx?: SxProps;
|
|
5
5
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @return A promise that resolves to the fetched OPO data
|
|
11
11
|
* * @throws Will throw an error if the fetch fails
|
|
12
12
|
*/
|
|
13
|
-
declare function getAllOpos(currentPage: number, rowsPerPage: number, order: "asc" | "desc", orderBy
|
|
13
|
+
declare function getAllOpos(currentPage: number, rowsPerPage: number, order: "asc" | "desc", orderBy?: string, is_archive?: boolean[], // default to only non-archived OPOs
|
|
14
14
|
filters?: {
|
|
15
15
|
[key: string]: string;
|
|
16
16
|
}): Promise<any>;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* INFO Fetch all IROs
|
|
3
3
|
* used by the IROs table in the admin panel
|
|
4
|
+
* @param currentPage - The current page number for pagination
|
|
5
|
+
* @param rowsPerPage - The number of rows per page for pagination
|
|
6
|
+
* @param order - The sort order (asc or desc)
|
|
7
|
+
* @param orderBy - The field to order by, defaults to "createdAt"
|
|
8
|
+
* @param is_archive - An array of booleans to filter by archived status, defaulting to only non-archived IROs
|
|
9
|
+
* @param filters - An object containing additional filters to apply
|
|
10
|
+
* @return A promise that resolves to the fetched IRO data
|
|
11
|
+
* * @throws Will throw an error if the fetch fails
|
|
4
12
|
*/
|
|
5
13
|
declare function getAllIros(currentPage: number, rowsPerPage: number, order: "asc" | "desc", orderBy?: string, is_archive?: boolean[], // default to only non-archived OPOs
|
|
6
14
|
filters?: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function getSingleIro(documentId: string): Promise<any>;
|
|
1
|
+
declare function getSingleIro(documentId: string, filters?: object): Promise<any>;
|
|
2
2
|
export { getSingleIro };
|
|
@@ -3,7 +3,7 @@ import { SxProps, Theme } from "@mui/material/styles";
|
|
|
3
3
|
import { MaxWidth } from "./MaxWidth";
|
|
4
4
|
import { StrapiImageProps } from "./StrapiImageProps";
|
|
5
5
|
export type navigationItem = {
|
|
6
|
-
|
|
6
|
+
documentId: string;
|
|
7
7
|
tab: number;
|
|
8
8
|
title: string;
|
|
9
9
|
path: string;
|
|
@@ -22,7 +22,7 @@ export interface NavbarProps {
|
|
|
22
22
|
slot2?: ReactNode;
|
|
23
23
|
}
|
|
24
24
|
export type NavigationPage = {
|
|
25
|
-
|
|
25
|
+
documentId: string;
|
|
26
26
|
title: string;
|
|
27
27
|
path: string;
|
|
28
28
|
slug: string;
|
|
@@ -10,13 +10,9 @@ export type Vendor = {
|
|
|
10
10
|
email: string;
|
|
11
11
|
business_credentials: BusinessCredentialsProps;
|
|
12
12
|
address: AddressProps;
|
|
13
|
-
products:
|
|
14
|
-
data: Product[];
|
|
15
|
-
};
|
|
13
|
+
products: Product[];
|
|
16
14
|
contacts: ContactsProps[];
|
|
17
|
-
notes?:
|
|
18
|
-
data: Note[];
|
|
19
|
-
};
|
|
15
|
+
notes?: Note[];
|
|
20
16
|
};
|
|
21
17
|
export type VendorName = {
|
|
22
18
|
documentId: string;
|