@nomalism-com/types 0.32.5 → 0.32.7

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,6 +1,9 @@
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
7
  export declare const Route = "users";
5
8
  export declare const UpperName = "Users";
6
9
  export declare const LowerName: string;
@@ -12,10 +15,10 @@ interface IStoreOperator extends Pick<StoreOperator, 'id' | 'location_id'> {
12
15
  main_persona: Pick<Persona, 'name'>;
13
16
  theme: Pick<Theme, 'colors'>;
14
17
  }
15
- export interface IFindByEmailResponse extends Entity {
18
+ export interface IFindByEmailResponse extends EntityWithoutPassword {
16
19
  store_operator: IStoreOperator;
17
20
  }
18
- export interface IFindByIdResponse extends Entity {
21
+ export interface IFindByIdResponse extends EntityWithoutPassword {
19
22
  provider: (Providers & {
20
23
  country: Country | null;
21
24
  language: Language | null;
@@ -54,10 +57,10 @@ export interface IFindByIdResponse extends Entity {
54
57
  }) | null;
55
58
  }
56
59
  export type IFindRequest = Record<string, unknown>;
57
- export type IFindResponse = Omit<Entity, ''>;
60
+ export type IFindResponse = EntityWithoutPassword;
58
61
  export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
59
62
  }
60
- export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<Entity, ''>>;
63
+ export type IFindWithPaginationResponse = IShared.IPaginationResponse<EntityWithoutPassword>;
61
64
  export interface IFindProvidersWithClientIdResponse {
62
65
  name: string;
63
66
  provider_id: string;
@@ -288,7 +288,7 @@ export type IBrokerTopicPayload = {
288
288
  };
289
289
  [IBrokerTopic.push_notification]: {
290
290
  counts: Record<string, number>;
291
- timesamp: string;
291
+ timestamp: string;
292
292
  };
293
293
  [IBrokerTopic.import_master_artigos]: {};
294
294
  [IBrokerTopic.kafka_log]: {
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.32.5",
12
+ "version": "0.32.7",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [