vr-commons 1.0.108 → 1.0.110

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.
@@ -18,76 +18,76 @@ export declare const listEventLogsSchema: z.ZodObject<{
18
18
  sortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
19
19
  hasDeviceSession: z.ZodEffects<z.ZodOptional<z.ZodString>, boolean, string | undefined>;
20
20
  }, "strip", z.ZodTypeAny, {
21
- page: number;
22
21
  limit: number;
23
- sortBy: "actorType" | "action" | "entity" | "createdAt";
24
- sortOrder: "ASC" | "DESC";
22
+ page: number;
23
+ sortBy: "createdAt" | "actorType" | "action" | "entity";
24
+ sortOrder: "DESC" | "ASC";
25
25
  hasDeviceSession: boolean;
26
- actorType?: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN" | undefined;
26
+ search?: string | undefined;
27
+ firstName?: string | undefined;
28
+ lastName?: string | undefined;
29
+ fromDate?: string | undefined;
30
+ toDate?: string | undefined;
31
+ actorType?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
27
32
  actorId?: string | undefined;
28
33
  action?: string | undefined;
29
34
  entity?: string | undefined;
30
35
  entityId?: string | undefined;
31
- fromDate?: string | undefined;
32
- toDate?: string | undefined;
33
- search?: string | undefined;
34
36
  actorName?: string | undefined;
37
+ }, {
38
+ search?: string | undefined;
39
+ limit?: string | undefined;
35
40
  firstName?: string | undefined;
36
41
  lastName?: string | undefined;
37
- }, {
38
42
  page?: string | undefined;
39
- limit?: string | undefined;
40
- actorType?: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN" | undefined;
43
+ sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
44
+ fromDate?: string | undefined;
45
+ toDate?: string | undefined;
46
+ sortOrder?: "DESC" | "ASC" | undefined;
47
+ actorType?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
41
48
  actorId?: string | undefined;
42
49
  action?: string | undefined;
43
50
  entity?: string | undefined;
44
51
  entityId?: string | undefined;
45
- fromDate?: string | undefined;
46
- toDate?: string | undefined;
47
- search?: string | undefined;
48
52
  actorName?: string | undefined;
49
- firstName?: string | undefined;
50
- lastName?: string | undefined;
51
- sortBy?: "actorType" | "action" | "entity" | "createdAt" | undefined;
52
- sortOrder?: "ASC" | "DESC" | undefined;
53
53
  hasDeviceSession?: string | undefined;
54
54
  }>, any, {
55
- page?: string | undefined;
55
+ search?: string | undefined;
56
56
  limit?: string | undefined;
57
- actorType?: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN" | undefined;
57
+ firstName?: string | undefined;
58
+ lastName?: string | undefined;
59
+ page?: string | undefined;
60
+ sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
61
+ fromDate?: string | undefined;
62
+ toDate?: string | undefined;
63
+ sortOrder?: "DESC" | "ASC" | undefined;
64
+ actorType?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
58
65
  actorId?: string | undefined;
59
66
  action?: string | undefined;
60
67
  entity?: string | undefined;
61
68
  entityId?: string | undefined;
62
- fromDate?: string | undefined;
63
- toDate?: string | undefined;
64
- search?: string | undefined;
65
69
  actorName?: string | undefined;
66
- firstName?: string | undefined;
67
- lastName?: string | undefined;
68
- sortBy?: "actorType" | "action" | "entity" | "createdAt" | undefined;
69
- sortOrder?: "ASC" | "DESC" | undefined;
70
70
  hasDeviceSession?: string | undefined;
71
71
  }>;
72
72
  }, "strip", z.ZodTypeAny, {
73
73
  query?: any;
74
74
  }, {
75
75
  query: {
76
- page?: string | undefined;
76
+ search?: string | undefined;
77
77
  limit?: string | undefined;
78
- actorType?: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN" | undefined;
78
+ firstName?: string | undefined;
79
+ lastName?: string | undefined;
80
+ page?: string | undefined;
81
+ sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
82
+ fromDate?: string | undefined;
83
+ toDate?: string | undefined;
84
+ sortOrder?: "DESC" | "ASC" | undefined;
85
+ actorType?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
79
86
  actorId?: string | undefined;
80
87
  action?: string | undefined;
81
88
  entity?: string | undefined;
82
89
  entityId?: string | undefined;
83
- fromDate?: string | undefined;
84
- toDate?: string | undefined;
85
- search?: string | undefined;
86
90
  actorName?: string | undefined;
87
- firstName?: string | undefined;
88
- lastName?: string | undefined;
89
- sortBy?: "actorType" | "action" | "entity" | "createdAt" | undefined;
90
- sortOrder?: "ASC" | "DESC" | undefined;
91
91
  hasDeviceSession?: string | undefined;
92
92
  };
93
93
  }>;
@@ -10,8 +10,8 @@ export declare const createProductSchema: z.ZodObject<{
10
10
  description?: string | null | undefined;
11
11
  }, {
12
12
  name: string;
13
- stock?: unknown;
14
13
  description?: string | null | undefined;
14
+ stock?: unknown;
15
15
  }>;
16
16
  }, "strip", z.ZodTypeAny, {
17
17
  body: {
@@ -22,8 +22,8 @@ export declare const createProductSchema: z.ZodObject<{
22
22
  }, {
23
23
  body: {
24
24
  name: string;
25
- stock?: unknown;
26
25
  description?: string | null | undefined;
26
+ stock?: unknown;
27
27
  };
28
28
  }>;
29
29
  export declare const updateProductSchema: z.ZodObject<{
@@ -40,35 +40,35 @@ export declare const updateProductSchema: z.ZodObject<{
40
40
  stock: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
41
41
  isActive: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
42
42
  }, "strip", z.ZodTypeAny, {
43
+ isActive?: boolean | undefined;
44
+ description?: string | null | undefined;
43
45
  name?: string | undefined;
44
46
  stock?: number | undefined;
45
- description?: string | null | undefined;
46
- isActive?: boolean | undefined;
47
47
  }, {
48
+ isActive?: unknown;
49
+ description?: unknown;
48
50
  name?: unknown;
49
51
  stock?: unknown;
50
- description?: unknown;
51
- isActive?: unknown;
52
52
  }>;
53
53
  }, "strip", z.ZodTypeAny, {
54
- params: {
55
- id: string;
56
- };
57
54
  body: {
55
+ isActive?: boolean | undefined;
56
+ description?: string | null | undefined;
58
57
  name?: string | undefined;
59
58
  stock?: number | undefined;
60
- description?: string | null | undefined;
61
- isActive?: boolean | undefined;
62
59
  };
63
- }, {
64
60
  params: {
65
61
  id: string;
66
62
  };
63
+ }, {
67
64
  body: {
65
+ isActive?: unknown;
66
+ description?: unknown;
68
67
  name?: unknown;
69
68
  stock?: unknown;
70
- description?: unknown;
71
- isActive?: unknown;
69
+ };
70
+ params: {
71
+ id: string;
72
72
  };
73
73
  }>;
74
74
  export declare const getProductSchema: z.ZodObject<{
@@ -98,41 +98,41 @@ export declare const getProductsSchema: z.ZodObject<{
98
98
  sortBy: z.ZodOptional<z.ZodEnum<["name", "stock", "createdAt", "updatedAt"]>>;
99
99
  sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
100
100
  }, "strip", z.ZodTypeAny, {
101
+ search?: string | undefined;
102
+ limit?: number | undefined;
101
103
  isActive?: "true" | "false" | undefined;
102
104
  page?: number | undefined;
103
- limit?: number | undefined;
104
- search?: string | undefined;
105
+ sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
106
+ sortOrder?: "DESC" | "ASC" | undefined;
105
107
  minStock?: number | undefined;
106
- sortBy?: "name" | "stock" | "createdAt" | "updatedAt" | undefined;
107
- sortOrder?: "ASC" | "DESC" | undefined;
108
108
  }, {
109
+ search?: string | undefined;
110
+ limit?: string | undefined;
109
111
  isActive?: "true" | "false" | undefined;
110
112
  page?: string | undefined;
111
- limit?: string | undefined;
112
- search?: string | undefined;
113
+ sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
114
+ sortOrder?: "DESC" | "ASC" | undefined;
113
115
  minStock?: string | undefined;
114
- sortBy?: "name" | "stock" | "createdAt" | "updatedAt" | undefined;
115
- sortOrder?: "ASC" | "DESC" | undefined;
116
116
  }>;
117
117
  }, "strip", z.ZodTypeAny, {
118
118
  query: {
119
+ search?: string | undefined;
120
+ limit?: number | undefined;
119
121
  isActive?: "true" | "false" | undefined;
120
122
  page?: number | undefined;
121
- limit?: number | undefined;
122
- search?: string | undefined;
123
+ sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
124
+ sortOrder?: "DESC" | "ASC" | undefined;
123
125
  minStock?: number | undefined;
124
- sortBy?: "name" | "stock" | "createdAt" | "updatedAt" | undefined;
125
- sortOrder?: "ASC" | "DESC" | undefined;
126
126
  };
127
127
  }, {
128
128
  query: {
129
+ search?: string | undefined;
130
+ limit?: string | undefined;
129
131
  isActive?: "true" | "false" | undefined;
130
132
  page?: string | undefined;
131
- limit?: string | undefined;
132
- search?: string | undefined;
133
+ sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
134
+ sortOrder?: "DESC" | "ASC" | undefined;
133
135
  minStock?: string | undefined;
134
- sortBy?: "name" | "stock" | "createdAt" | "updatedAt" | undefined;
135
- sortOrder?: "ASC" | "DESC" | undefined;
136
136
  };
137
137
  }>;
138
138
  export declare const deleteProductSchema: z.ZodObject<{
@@ -198,26 +198,26 @@ export declare const updateStockSchema: z.ZodObject<{
198
198
  operation: z.ZodEnum<["increment", "decrement", "set"]>;
199
199
  amount: z.ZodNumber;
200
200
  }, "strip", z.ZodTypeAny, {
201
- operation: "set" | "increment" | "decrement";
202
201
  amount: number;
202
+ operation: "increment" | "decrement" | "set";
203
203
  }, {
204
- operation: "set" | "increment" | "decrement";
205
204
  amount: number;
205
+ operation: "increment" | "decrement" | "set";
206
206
  }>;
207
207
  }, "strip", z.ZodTypeAny, {
208
- params: {
209
- id: string;
210
- };
211
208
  body: {
212
- operation: "set" | "increment" | "decrement";
213
209
  amount: number;
210
+ operation: "increment" | "decrement" | "set";
214
211
  };
215
- }, {
216
212
  params: {
217
213
  id: string;
218
214
  };
215
+ }, {
219
216
  body: {
220
- operation: "set" | "increment" | "decrement";
221
217
  amount: number;
218
+ operation: "increment" | "decrement" | "set";
219
+ };
220
+ params: {
221
+ id: string;
222
222
  };
223
223
  }>;