@nomalism-com/types 0.32.7 → 0.32.9

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.
@@ -1,4 +1,3 @@
1
- import * as IShared from '../../../shared/interface';
2
1
  import * as Users from '../users/interface';
3
2
  export interface ICreateRequest {
4
3
  account: string;
@@ -15,4 +14,6 @@ export interface ICreateResponse {
15
14
  export interface IRepository {
16
15
  create(data: ICreateRequest): Promise<ICreateResponse>;
17
16
  }
18
- export type IController = IShared.IEntityWithUserToken<IRepository>;
17
+ export interface IController {
18
+ create(data: ICreateRequest, ip: string): Promise<ICreateResponse>;
19
+ }
@@ -1,9 +1,7 @@
1
1
  import * as IShared from '../../../shared/interface';
2
2
  import { Providers, Country, Language, ProviderType, ReasonForExemption, Persona, Clients, SegmentsArea, ClientType, StoreOperator, UserPositions, Commissioner, Users, PaymentMethods, MaturityDates, DeliveryMethods, Vehicles, Theme } from '../../../shared/entities';
3
3
  export type Entity = Users;
4
- export interface EntityWithoutPassword extends Omit<Users, 'password'> {
5
- password: never;
6
- }
4
+ export type EntityWithoutPassword = Omit<Users, 'password'>;
7
5
  export declare const Route = "users";
8
6
  export declare const UpperName = "Users";
9
7
  export declare const LowerName: string;
@@ -15,7 +13,7 @@ interface IStoreOperator extends Pick<StoreOperator, 'id' | 'location_id'> {
15
13
  main_persona: Pick<Persona, 'name'>;
16
14
  theme: Pick<Theme, 'colors'>;
17
15
  }
18
- export interface IFindByEmailResponse extends EntityWithoutPassword {
16
+ export interface IFindByEmailResponse extends Entity {
19
17
  store_operator: IStoreOperator;
20
18
  }
21
19
  export interface IFindByIdResponse extends EntityWithoutPassword {
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.32.7",
12
+ "version": "0.32.9",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [
@@ -39,9 +39,9 @@
39
39
  "devDependencies": {
40
40
  "@rollup/plugin-terser": "^0.4.4",
41
41
  "@rollup/plugin-typescript": "^12.1.2",
42
- "@types/node": "^22.13.8",
43
- "@typescript-eslint/eslint-plugin": "^8.25.0",
44
- "@typescript-eslint/parser": "^8.25.0",
42
+ "@types/node": "^22.13.9",
43
+ "@typescript-eslint/eslint-plugin": "^8.26.0",
44
+ "@typescript-eslint/parser": "^8.26.0",
45
45
  "eslint": "^9.21.0",
46
46
  "eslint-config-prettier": "^10.0.2",
47
47
  "eslint-import-resolver-typescript": "^3.8.3",