@nomalism-com/types 0.34.18 → 0.34.20
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
|
};
|
|
@@ -5,7 +5,7 @@ export declare const Route = "store_operator";
|
|
|
5
5
|
export declare const UpperName = "StoreOperator";
|
|
6
6
|
export declare const LowerName: string;
|
|
7
7
|
export type IFindPaginatedRequest = IShared.IPaginationRequest & Pick<Entity, 'inactive'>;
|
|
8
|
-
export interface IFindResponse extends Pick<Entity, 'id'> {
|
|
8
|
+
export interface IFindResponse extends Pick<Entity, 'id' | 'inactive'> {
|
|
9
9
|
user: Pick<Users, 'id' | 'account'>;
|
|
10
10
|
main_persona: Pick<Persona, 'id' | 'name' | 'email'>;
|
|
11
11
|
}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ export const LowerName = UpperName[0].toLowerCase() + UpperName.substring(1);
|
|
|
8
8
|
|
|
9
9
|
export type IFindPaginatedRequest = IShared.IPaginationRequest & Pick<Entity, 'inactive'>;
|
|
10
10
|
|
|
11
|
-
export interface IFindResponse extends Pick<Entity, 'id'> {
|
|
11
|
+
export interface IFindResponse extends Pick<Entity, 'id' | 'inactive'> {
|
|
12
12
|
user: Pick<Users, 'id' | 'account'>;
|
|
13
13
|
main_persona: Pick<Persona, 'id' | 'name' | 'email'>;
|
|
14
14
|
}
|
|
@@ -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 {
|
|
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<
|
|
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
|
};
|