umwd-components 0.1.734 → 0.1.735

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.
@@ -1 +1,12 @@
1
- export declare function getPaginatedCategories(currentPage?: number, rowsPerPage?: number, order?: "asc" | "desc", orderBy?: string, is_archive?: boolean[]): Promise<any>;
1
+ /**
2
+ * Fetch paginated product categories from the Strapi API.
3
+ *
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 both archived and non-archived categories.
9
+ * @returns A promise that resolves to the fetched categories data.
10
+ */
11
+ declare function getPaginatedCategories(currentPage?: number, rowsPerPage?: number, order?: "asc" | "desc", orderBy?: string, is_archive?: boolean[]): Promise<any>;
12
+ export { getPaginatedCategories };
@@ -5,7 +5,7 @@ export declare enum ContactType {
5
5
  Other = "other"
6
6
  }
7
7
  export type ContactsProps = {
8
- id?: number;
8
+ documentId?: string;
9
9
  uuid?: number;
10
10
  first_name: string;
11
11
  last_name: string;
@@ -14,7 +14,7 @@ export type ContactsProps = {
14
14
  type: ContactType;
15
15
  };
16
16
  export interface ContactsDisplayProps extends ContactsProps {
17
- onClick?: (event: React.MouseEvent<unknown>, id: number) => void;
17
+ onClick?: (event: React.MouseEvent<unknown>, documentId: string) => void;
18
18
  }
19
19
  export type ContactsFieldsProps = {
20
20
  data?: ContactsProps;
@@ -4,7 +4,6 @@ export interface DimensionsFieldsProps {
4
4
  componentReference: string;
5
5
  }
6
6
  export interface DimensionsProps {
7
- id: string | null;
8
7
  width_mm: number;
9
8
  height_mm: number;
10
9
  depth_mm: number;
@@ -50,7 +50,7 @@ export type ProductName = {
50
50
  documentId: string;
51
51
  title: string;
52
52
  slug: string;
53
- vendorID: number;
53
+ vendorID: string | null;
54
54
  product_number: string;
55
55
  };
56
56
  export interface VendorProductName extends ProductName {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.734",
3
+ "version": "0.1.735",
4
4
  "description": "UMWD Component library",
5
5
  "main": "./dist/cjs/src/index.js",
6
6
  "module": "./dist/esm/src/index.js",