@nomalism-com/types 0.39.62 → 0.39.63

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
@@ -2851,6 +2851,7 @@ var LowerName33 = UpperName33[0].toLowerCase() + UpperName33.substring(1);
2851
2851
  var route_schema_exports39 = {};
2852
2852
  __export(route_schema_exports39, {
2853
2853
  createBody: () => createBody29,
2854
+ findByNumberParams: () => findByNumberParams,
2854
2855
  findQuery: () => findQuery14,
2855
2856
  findWithPaginationQuery: () => findWithPaginationQuery13,
2856
2857
  updateBody: () => updateBody24
@@ -2907,6 +2908,10 @@ var findWithPaginationQueryKeys13 = {
2907
2908
  current_page: joi40.number().integer().positive().default(1).optional()
2908
2909
  };
2909
2910
  var findWithPaginationQuery13 = joi40.object().keys(findWithPaginationQueryKeys13).messages(messages);
2911
+ var findByNumberParamsKeys = {
2912
+ number: joi40.number().integer().positive().required()
2913
+ };
2914
+ var findByNumberParams = joi40.object().keys(findByNumberParamsKeys).messages(messages);
2910
2915
 
2911
2916
  // src/modules/user/providerType/interface.ts
2912
2917
  var interface_exports21 = {};
package/dist/index.js CHANGED
@@ -2851,6 +2851,7 @@ var LowerName33 = UpperName33[0].toLowerCase() + UpperName33.substring(1);
2851
2851
  var route_schema_exports39 = {};
2852
2852
  __export(route_schema_exports39, {
2853
2853
  createBody: () => createBody29,
2854
+ findByNumberParams: () => findByNumberParams,
2854
2855
  findQuery: () => findQuery14,
2855
2856
  findWithPaginationQuery: () => findWithPaginationQuery13,
2856
2857
  updateBody: () => updateBody24
@@ -2907,6 +2908,10 @@ var findWithPaginationQueryKeys13 = {
2907
2908
  current_page: joi40.number().integer().positive().default(1).optional()
2908
2909
  };
2909
2910
  var findWithPaginationQuery13 = joi40.object().keys(findWithPaginationQueryKeys13).messages(messages);
2911
+ var findByNumberParamsKeys = {
2912
+ number: joi40.number().integer().positive().required()
2913
+ };
2914
+ var findByNumberParams = joi40.object().keys(findByNumberParamsKeys).messages(messages);
2910
2915
 
2911
2916
  // src/modules/user/providerType/interface.ts
2912
2917
  var interface_exports21 = {};
@@ -66,6 +66,42 @@ export interface IUpdateRequest {
66
66
  default_delivery_method_id?: string;
67
67
  default_vehicle_id?: string | null;
68
68
  }
69
+ export interface IFindByNumberRequest {
70
+ number: number;
71
+ }
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
+ }
69
105
  export interface IRepository {
70
106
  findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
71
107
  findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
@@ -77,6 +113,7 @@ export interface IRepository {
77
113
  create(data: ICreateRequest): Promise<IFindResponse>;
78
114
  update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindResponse | null>;
79
115
  deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindResponse | null>;
116
+ findByNumber(selector: IFindByNumberRequest): Promise<IFindByNumberResponse | null>;
80
117
  }
81
118
  export type IController = IShared.IEntityWithUserToken<IRepository>;
82
119
  export {};
@@ -3,3 +3,4 @@ export declare const createBody: joi.ObjectSchema<any>;
3
3
  export declare const updateBody: joi.ObjectSchema<any>;
4
4
  export declare const findQuery: joi.ObjectSchema<any>;
5
5
  export declare const findWithPaginationQuery: joi.ObjectSchema<any>;
6
+ export declare const findByNumberParams: joi.ObjectSchema<any>;
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.62",
4
+ "version": "0.39.63",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",