@nomalism-com/types 0.43.95 → 0.44.1

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
@@ -3092,7 +3092,6 @@ import joi45 from "joi";
3092
3092
  var createBodyKeys31 = {
3093
3093
  main_persona_name: joi45.string().required(),
3094
3094
  main_persona_email: joi45.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
3095
- user_account: joi45.string().allow(null, "").optional(),
3096
3095
  password: joi45.string().required(),
3097
3096
  superuser: joi45.boolean().required(),
3098
3097
  default_theme: joi45.boolean().required()
@@ -3101,7 +3100,6 @@ var createBody32 = joi45.object().keys(createBodyKeys31).messages(messages);
3101
3100
  var updateStoreOperatorQueryKeys = {
3102
3101
  main_persona_name: joi45.string().allow(null, "").optional(),
3103
3102
  main_persona_email: joi45.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
3104
- user_account: joi45.string().allow(null, "").optional(),
3105
3103
  password: joi45.string().allow(null, "").optional(),
3106
3104
  pin: joi45.string().optional(),
3107
3105
  inactive: joi45.boolean().optional(),
@@ -3308,12 +3306,10 @@ __export(route_schema_exports49, {
3308
3306
  });
3309
3307
  import joi50 from "joi";
3310
3308
  var createBodyKeys36 = {
3311
- account: joi50.string().allow(null).required(),
3312
3309
  password: joi50.string().required()
3313
3310
  };
3314
3311
  var createBody37 = joi50.object().keys(createBodyKeys36).messages(messages);
3315
3312
  var updateBodyKeys32 = {
3316
- account: joi50.string().optional(),
3317
3313
  old_password: joi50.string().optional(),
3318
3314
  password: joi50.string().optional()
3319
3315
  };
package/dist/index.js CHANGED
@@ -3092,7 +3092,6 @@ import joi45 from "joi";
3092
3092
  var createBodyKeys31 = {
3093
3093
  main_persona_name: joi45.string().required(),
3094
3094
  main_persona_email: joi45.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
3095
- user_account: joi45.string().allow(null, "").optional(),
3096
3095
  password: joi45.string().required(),
3097
3096
  superuser: joi45.boolean().required(),
3098
3097
  default_theme: joi45.boolean().required()
@@ -3101,7 +3100,6 @@ var createBody32 = joi45.object().keys(createBodyKeys31).messages(messages);
3101
3100
  var updateStoreOperatorQueryKeys = {
3102
3101
  main_persona_name: joi45.string().allow(null, "").optional(),
3103
3102
  main_persona_email: joi45.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
3104
- user_account: joi45.string().allow(null, "").optional(),
3105
3103
  password: joi45.string().allow(null, "").optional(),
3106
3104
  pin: joi45.string().optional(),
3107
3105
  inactive: joi45.boolean().optional(),
@@ -3308,12 +3306,10 @@ __export(route_schema_exports49, {
3308
3306
  });
3309
3307
  import joi50 from "joi";
3310
3308
  var createBodyKeys36 = {
3311
- account: joi50.string().allow(null).required(),
3312
3309
  password: joi50.string().required()
3313
3310
  };
3314
3311
  var createBody37 = joi50.object().keys(createBodyKeys36).messages(messages);
3315
3312
  var updateBodyKeys32 = {
3316
- account: joi50.string().optional(),
3317
3313
  old_password: joi50.string().optional(),
3318
3314
  password: joi50.string().optional()
3319
3315
  };
@@ -66,13 +66,6 @@ export interface IFindResponse {
66
66
  export interface IFindByIdsRequest {
67
67
  ids: string[];
68
68
  }
69
- export interface IPreviewChange {
70
- document_line_id: string;
71
- quantity: number;
72
- }
73
- export interface IPreviewResponse {
74
- changes: IPreviewChange[];
75
- }
76
69
  export interface IRepository {
77
70
  conferirEncomendaCliente(data: IConferirEncomendaClienteRequest): Promise<IConferirEncomendaClienteResponse[]>;
78
71
  setProvider(data: ISetProviderRequest): Promise<void>;
@@ -81,7 +74,5 @@ export interface IRepository {
81
74
  undoProviderOrder(data: IUndoProviderOrderRequest): Promise<void>;
82
75
  unsetCativado(data: IUnsetCativado): Promise<void>;
83
76
  find(params: IFindRequest): Promise<IFindResponse[]>;
84
- previewRegroupLinesInProviderOrder(params: IShared.IFindByIdRequest): Promise<IPreviewResponse>;
85
- regroupLinesInProviderOrder(params: IShared.IFindByIdRequest): Promise<void>;
86
77
  }
87
78
  export type IController = IShared.IEntityWithUserToken<IRepository>;
@@ -6,13 +6,12 @@ export declare const UpperName = "StoreOperator";
6
6
  export declare const LowerName: string;
7
7
  export type IFindPaginatedRequest = IShared.IPaginationRequest & Pick<Entity, 'inactive'>;
8
8
  export interface IFindResponse extends Pick<Entity, 'id' | 'number' | 'pin' | 'inactive' | 'superuser' | 'default_theme'> {
9
- user: Pick<Users, 'id' | 'account'>;
9
+ user: Pick<Users, 'id'>;
10
10
  main_persona: Pick<Persona, 'id' | 'name' | 'email'>;
11
11
  }
12
12
  export interface ICreateRequest {
13
13
  main_persona_name: string;
14
14
  main_persona_email: string | null;
15
- user_account: string | null;
16
15
  password: string;
17
16
  superuser: boolean;
18
17
  default_theme: boolean;
@@ -20,7 +19,6 @@ export interface ICreateRequest {
20
19
  export interface IUpdateRequest {
21
20
  main_persona_name?: string | null;
22
21
  main_persona_email?: string | null;
23
- user_account?: string | null;
24
22
  password?: string | null;
25
23
  pin?: string;
26
24
  inactive?: boolean;
@@ -13,7 +13,7 @@ interface IStoreOperator extends Pick<StoreOperator, 'id' | 'location_id' | 'sup
13
13
  main_persona: Pick<Persona, 'name' | 'email'>;
14
14
  theme: Pick<Theme, 'colors'> | null;
15
15
  }
16
- export interface IFindByAccountResponse extends Pick<Entity, 'id' | 'account'> {
16
+ export interface IFindByAccountResponse extends Pick<Entity, 'id'> {
17
17
  store_operator: IStoreOperator;
18
18
  }
19
19
  export interface IFindByIdResponse extends EntityWithoutPassword {
@@ -68,11 +68,9 @@ export interface IFindProvidersWithClientIdRequest {
68
68
  provider_ids: string[];
69
69
  }
70
70
  export interface ICreateRequest {
71
- account: string | null;
72
71
  password: string;
73
72
  }
74
73
  export interface IUpdateRequest {
75
- account?: string | null;
76
74
  old_password?: string;
77
75
  password?: string;
78
76
  }
@@ -5,7 +5,6 @@ import { IPaymentMethodsSaftCodeEnum } from '../../modules/user/paymentMethods/i
5
5
  */
6
6
  export type Users = {
7
7
  id: string;
8
- account: string | null;
9
8
  password: string | null;
10
9
  created_at: Date;
11
10
  updated_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.43.95",
4
+ "version": "0.44.1",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -29,8 +29,8 @@
29
29
  "joi": "^18.1.2"
30
30
  },
31
31
  "devDependencies": {
32
- "@swc/core": "^1.15.24",
33
- "@types/node": "^24.12.2",
32
+ "@swc/core": "^1.15.21",
33
+ "@types/node": "^24.12.0",
34
34
  "@typescript-eslint/eslint-plugin": "^8.58.0",
35
35
  "@typescript-eslint/parser": "^8.58.0",
36
36
  "eslint": "^9.39.4",