@nomalism-com/types 0.17.48 → 0.17.50

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.
@@ -73,6 +73,9 @@ export interface IBasicSearchRequest extends IShared.IPaginationRequest {
73
73
  active?: boolean;
74
74
  inactive?: boolean;
75
75
  dnt_come_anymore?: boolean;
76
+ type_stock: boolean;
77
+ type_encomenda: boolean;
78
+ type_servico: boolean;
76
79
  }
77
80
  export interface IBasicSearchResponse {
78
81
  id: string;
@@ -102,6 +102,9 @@ var basicSearchQueryKeys = {
102
102
  inactive: joi_1.default.boolean().default(false).optional(),
103
103
  search_value: joi_1.default.string().allow('', null).optional(),
104
104
  dnt_come_anymore: joi_1.default.boolean().default(false).optional(),
105
+ type_stock: joi_1.default.boolean().default(false).optional(),
106
+ type_encomenda: joi_1.default.boolean().default(false).optional(),
107
+ type_servico: joi_1.default.boolean().default(false).optional(),
105
108
  };
106
109
  exports.basicSearchQuery = joi_1.default
107
110
  .object()
@@ -145,6 +145,8 @@ export interface ICreateFromHeaderRequest {
145
145
  return_reason?: string;
146
146
  provider_ref?: string;
147
147
  global_discount?: number;
148
+ who_handles?: string;
149
+ tags?: string;
148
150
  }
149
151
  export interface IUpdateRequest {
150
152
  external_data?: unknown;
@@ -163,6 +163,8 @@ var createFromHeaderBodyKeys = {
163
163
  return_reason: joi_1.default.string().optional(),
164
164
  provider_ref: joi_1.default.string().optional(),
165
165
  global_discount: joi_1.default.number().min(0).max(100).optional(),
166
+ who_handles: joi_1.default.string().optional(),
167
+ tags: joi_1.default.string().optional(),
166
168
  };
167
169
  exports.createFromHeaderBody = joi_1.default
168
170
  .object()
@@ -556,6 +556,8 @@ export type DocumentHeader = {
556
556
  is_archived: boolean;
557
557
  is_void: boolean;
558
558
  origin_id: string | null;
559
+ who_handles: string;
560
+ tags: string;
559
561
  created_at: Date;
560
562
  updated_at: Date;
561
563
  created_by: string;
@@ -785,7 +787,7 @@ export type DocumentLinePendingConflict = {
785
787
  designation: string;
786
788
  quantity: number;
787
789
  price_sale: number;
788
- updated_product_price_sale?: number | null;
790
+ updated_product_price_sale: number | null;
789
791
  discount: number;
790
792
  conflict: IConflict;
791
793
  created_at: Date;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.17.48",
12
+ "version": "0.17.50",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [