@nomalism-com/types 0.39.63 → 0.39.64

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,7 @@
1
1
  import * as IShared from '../../../shared/interface';
2
2
  import { Providers, Users, Country, ReasonForExemption, Language, ProviderType, PaymentMethods, MaturityDates, DeliveryMethods, Vehicles, Persona } from '../../../shared/entities/user';
3
3
  import type { IChatType } from '../../stock/chat/interfaces';
4
+ import type { DocumentHeader } from '../../../shared/entities/stock';
4
5
  export type Entity = Providers;
5
6
  export declare const Route = "provider";
6
7
  export declare const UpperName = "Providers";
@@ -69,39 +70,7 @@ export interface IUpdateRequest {
69
70
  export interface IFindByNumberRequest {
70
71
  number: number;
71
72
  }
72
- export interface IFindByNumberResponse {
73
- owner_number: number;
74
- owner_name: string;
75
- billing_persona_id: string;
76
- billing_persona_name: string;
77
- billing_persona_nif: string;
78
- billing_persona_email: string;
79
- billing_persona_telephone: string;
80
- billing_persona_address_street: string;
81
- billing_persona_address_postal_code: string;
82
- billing_persona_address_locality: string;
83
- billing_persona_address_country_id: string;
84
- billing_persona_address_country_name: string;
85
- reason_for_exemption_id: string;
86
- reason_for_exemption: string;
87
- delivery_persona_id: string;
88
- delivery_persona_name: string;
89
- delivery_persona_email: string;
90
- delivery_persona_telephone: string;
91
- delivery_persona_address_street: string;
92
- delivery_persona_address_postal_code: string;
93
- delivery_persona_address_locality: string;
94
- delivery_persona_address_country_id: string;
95
- delivery_persona_address_country_name: string;
96
- delivery_method_id: string;
97
- delivery_method: string;
98
- vehicle_id: string;
99
- vehicle: string;
100
- payment_method_id: string;
101
- payment_method: string;
102
- maturity_date_id: string;
103
- maturity_date: string;
104
- }
73
+ export type IFindByNumberResponse = Pick<DocumentHeader, 'owner_number' | 'owner_name' | 'billing_persona_id' | 'billing_persona_name' | 'billing_persona_nif' | 'billing_persona_email' | 'billing_persona_telephone' | 'billing_persona_address_street' | 'billing_persona_address_postal_code' | 'billing_persona_address_locality' | 'billing_persona_address_country_id' | 'billing_persona_address_country_name' | 'reason_for_exemption_id' | 'reason_for_exemption' | 'delivery_persona_id' | 'delivery_persona_name' | 'delivery_persona_email' | 'delivery_persona_telephone' | 'delivery_persona_address_street' | 'delivery_persona_address_postal_code' | 'delivery_persona_address_locality' | 'delivery_persona_address_country_id' | 'delivery_persona_address_country_name' | 'delivery_method_id' | 'delivery_method' | 'vehicle_id' | 'vehicle' | 'payment_method_id' | 'payment_method' | 'maturity_date_id' | 'maturity_date'>;
105
74
  export interface IRepository {
106
75
  findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
107
76
  findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
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.39.63",
4
+ "version": "0.39.64",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",