@signskart/shared 1.3.2 → 1.3.4

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,4 +1,5 @@
1
1
  import { IStore } from './store';
2
+ export type CustomerPhotoStatus = 'pending' | 'approved' | 'rejected';
2
3
  export interface ICustomerPhotos {
3
4
  _id?: string;
4
5
  store: IStore;
@@ -7,7 +8,15 @@ export interface ICustomerPhotos {
7
8
  email?: string;
8
9
  };
9
10
  photos: string[];
10
- status: 'pending' | 'approved' | 'rejected';
11
+ status: CustomerPhotoStatus;
11
12
  createdAt: Date;
12
13
  updatedAt: Date;
13
14
  }
15
+ export interface CustomerPhotosQueryParams {
16
+ page?: number;
17
+ limit?: number;
18
+ name?: string;
19
+ email?: string;
20
+ status?: CustomerPhotoStatus;
21
+ store?: string;
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signskart/shared",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -1,14 +1,25 @@
1
1
  import { IStore } from './store';
2
2
 
3
+ export type CustomerPhotoStatus = 'pending' | 'approved' | 'rejected';
4
+
3
5
  export interface ICustomerPhotos {
4
- _id?: string; // MongoDB document ID
5
- store: IStore; // Store reference
6
+ _id?: string;
7
+ store: IStore;
6
8
  customer: {
7
- name?: string; // Customer name
8
- email?: string; // Optional email
9
+ name?: string;
10
+ email?: string;
9
11
  };
10
- photos: string[]; // Array of photo URLs
11
- status: 'pending' | 'approved' | 'rejected'; // moderation status
12
+ photos: string[];
13
+ status: CustomerPhotoStatus; // use the reusable type
12
14
  createdAt: Date;
13
15
  updatedAt: Date;
16
+ }
17
+
18
+ export interface CustomerPhotosQueryParams {
19
+ page?: number;
20
+ limit?: number;
21
+ name?: string;
22
+ email?: string;
23
+ status?: CustomerPhotoStatus;
24
+ store?: string;
14
25
  }