@nomalism-com/types 0.37.14 → 0.37.15

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
@@ -3159,7 +3159,8 @@ var createBodyKeys34 = {
3159
3159
  main_persona_name: joi48.string().required(),
3160
3160
  main_persona_email: joi48.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
3161
3161
  user_account: joi48.string().allow(null, "").optional(),
3162
- password: joi48.string().required()
3162
+ password: joi48.string().required(),
3163
+ superuser: joi48.boolean().required()
3163
3164
  };
3164
3165
  var createBody35 = joi48.object().keys(createBodyKeys34).messages(messages);
3165
3166
  var updateStoreOperatorQueryKeys = {
@@ -3167,7 +3168,8 @@ var updateStoreOperatorQueryKeys = {
3167
3168
  main_persona_email: joi48.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
3168
3169
  user_account: joi48.string().allow(null, "").optional(),
3169
3170
  password: joi48.string().allow(null, "").optional(),
3170
- inactive: joi48.boolean().optional()
3171
+ inactive: joi48.boolean().optional(),
3172
+ superuser: joi48.boolean().optional()
3171
3173
  };
3172
3174
  var updateStoreOperatorQuery = joi48.object().keys(updateStoreOperatorQueryKeys).messages(messages);
3173
3175
  var findWithPaginationQueryKeys19 = {
package/dist/index.js CHANGED
@@ -3159,7 +3159,8 @@ var createBodyKeys34 = {
3159
3159
  main_persona_name: joi48.string().required(),
3160
3160
  main_persona_email: joi48.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
3161
3161
  user_account: joi48.string().allow(null, "").optional(),
3162
- password: joi48.string().required()
3162
+ password: joi48.string().required(),
3163
+ superuser: joi48.boolean().required()
3163
3164
  };
3164
3165
  var createBody35 = joi48.object().keys(createBodyKeys34).messages(messages);
3165
3166
  var updateStoreOperatorQueryKeys = {
@@ -3167,7 +3168,8 @@ var updateStoreOperatorQueryKeys = {
3167
3168
  main_persona_email: joi48.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
3168
3169
  user_account: joi48.string().allow(null, "").optional(),
3169
3170
  password: joi48.string().allow(null, "").optional(),
3170
- inactive: joi48.boolean().optional()
3171
+ inactive: joi48.boolean().optional(),
3172
+ superuser: joi48.boolean().optional()
3171
3173
  };
3172
3174
  var updateStoreOperatorQuery = joi48.object().keys(updateStoreOperatorQueryKeys).messages(messages);
3173
3175
  var findWithPaginationQueryKeys19 = {
@@ -14,13 +14,15 @@ export interface ICreateRequest {
14
14
  main_persona_email: string | null;
15
15
  user_account: string | null;
16
16
  password: string;
17
+ superuser: boolean;
17
18
  }
18
19
  export interface IUpdateRequest {
19
- main_persona_name: string | null;
20
- main_persona_email: string | null;
21
- user_account: string | null;
22
- password: string | null;
23
- inactive: boolean;
20
+ main_persona_name?: string | null;
21
+ main_persona_email?: string | null;
22
+ user_account?: string | null;
23
+ password?: string | null;
24
+ inactive?: boolean;
25
+ superuser?: boolean;
24
26
  }
25
27
  export interface IRepository {
26
28
  findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
@@ -333,6 +333,7 @@ export type StoreOperator = {
333
333
  main_persona_id: string;
334
334
  contact_persona_id: string;
335
335
  pin: string;
336
+ superuser: boolean;
336
337
  location_id: string;
337
338
  inactive: boolean;
338
339
  created_at: Date;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nomalism-com/types",
3
3
  "description": "A nomalism package with all necessary types and validations for developing APIs",
4
- "version": "0.37.14",
4
+ "version": "0.37.15",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",