@nomalism-com/types 0.34.18 → 0.34.19

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.cjs CHANGED
@@ -3212,6 +3212,7 @@ var updateStoreOperatorQueryKeys = {
3212
3212
  };
3213
3213
  var updateStoreOperatorQuery = joi49.object().keys(updateStoreOperatorQueryKeys).messages(messages);
3214
3214
  var findWithPaginationQueryKeys19 = {
3215
+ inactive: joi49.bool().optional(),
3215
3216
  per_page: joi49.number().integer().positive().default(10).optional(),
3216
3217
  current_page: joi49.number().integer().positive().default(1).optional()
3217
3218
  };
package/dist/index.js CHANGED
@@ -3212,6 +3212,7 @@ var updateStoreOperatorQueryKeys = {
3212
3212
  };
3213
3213
  var updateStoreOperatorQuery = joi49.object().keys(updateStoreOperatorQueryKeys).messages(messages);
3214
3214
  var findWithPaginationQueryKeys19 = {
3215
+ inactive: joi49.bool().optional(),
3215
3216
  per_page: joi49.number().integer().positive().default(10).optional(),
3216
3217
  current_page: joi49.number().integer().positive().default(1).optional()
3217
3218
  };
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.34.18",
12
+ "version": "0.34.19",
13
13
  "type": "module",
14
14
  "module": "./dist/index.js",
15
15
  "main": "./dist/index.cjs",
@@ -1,7 +1,12 @@
1
1
  import joi from 'joi';
2
2
  import { messages } from '../../../shared/messages';
3
3
  import type * as IShared from '../../../shared/interface';
4
- import type { ICreateRequest, ICreateMainPersona, IUpdateRequest } from './interface';
4
+ import type {
5
+ ICreateRequest,
6
+ ICreateMainPersona,
7
+ IUpdateRequest,
8
+ IFindPaginatedRequest,
9
+ } from './interface';
5
10
 
6
11
  const createMainPersonaKeys: IShared.IRouteRequest<ICreateMainPersona> = {
7
12
  name: joi.string().optional(),
@@ -39,7 +44,8 @@ export const updateStoreOperatorQuery = joi
39
44
  .messages(messages);
40
45
 
41
46
  // find with pagination query validation
42
- const findWithPaginationQueryKeys: IShared.IRouteRequest<IShared.IPaginationRequest> = {
47
+ const findWithPaginationQueryKeys: IShared.IRouteRequest<IFindPaginatedRequest> = {
48
+ inactive: joi.bool().optional(),
43
49
  per_page: joi.number().integer().positive().default(10).optional(),
44
50
  current_page: joi.number().integer().positive().default(1).optional(),
45
51
  };