@nomalism-com/types 0.43.95 → 0.44.0

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
@@ -3308,12 +3308,10 @@ __export(route_schema_exports49, {
3308
3308
  });
3309
3309
  import joi50 from "joi";
3310
3310
  var createBodyKeys36 = {
3311
- account: joi50.string().allow(null).required(),
3312
3311
  password: joi50.string().required()
3313
3312
  };
3314
3313
  var createBody37 = joi50.object().keys(createBodyKeys36).messages(messages);
3315
3314
  var updateBodyKeys32 = {
3316
- account: joi50.string().optional(),
3317
3315
  old_password: joi50.string().optional(),
3318
3316
  password: joi50.string().optional()
3319
3317
  };
package/dist/index.js CHANGED
@@ -3308,12 +3308,10 @@ __export(route_schema_exports49, {
3308
3308
  });
3309
3309
  import joi50 from "joi";
3310
3310
  var createBodyKeys36 = {
3311
- account: joi50.string().allow(null).required(),
3312
3311
  password: joi50.string().required()
3313
3312
  };
3314
3313
  var createBody37 = joi50.object().keys(createBodyKeys36).messages(messages);
3315
3314
  var updateBodyKeys32 = {
3316
- account: joi50.string().optional(),
3317
3315
  old_password: joi50.string().optional(),
3318
3316
  password: joi50.string().optional()
3319
3317
  };
@@ -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,7 +6,7 @@ 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,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.0",
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",