@nomalism-com/types 0.11.27 → 0.11.29

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.
@@ -46,7 +46,9 @@ export interface IEntityMinified {
46
46
  multimedia_id: string | null;
47
47
  integer_only: boolean;
48
48
  }
49
- export type IFindByIdResponse = Omit<IEntityExtended, ''>;
49
+ export interface IFindByIdResponse extends Omit<IEntityExtended, ''> {
50
+ ordered_quantity: number;
51
+ }
50
52
  export type IFindRequest = Record<string, unknown>;
51
53
  export type IFindResponse = Omit<IFindDetailedResponse, ''>;
52
54
  export interface IFindByOwnerIdResponse {
@@ -230,6 +230,7 @@ var findByIdBodyResponseKeys = {
230
230
  origin_cabide_product_id: joi_1.default.string().uuid().allow(null).required(),
231
231
  origin_cabide_product: joi_1.default.any(),
232
232
  cabide_product: joi_1.default.any(),
233
+ ordered_quantity: joi_1.default.number().required(),
233
234
  };
234
235
  exports.findByIdBodyResponse = joi_1.default
235
236
  .object()
@@ -7,10 +7,12 @@ export declare const LowerName: string;
7
7
  export interface ICreateRequest {
8
8
  label: string;
9
9
  code: string;
10
+ group: string | null;
10
11
  }
11
12
  export interface IUpdateRequest {
12
13
  label?: string;
13
14
  code?: string;
15
+ group?: string | null;
14
16
  }
15
17
  export interface IFindResponse extends QueryList {
16
18
  parameters: QueryParameter[];
@@ -11,11 +11,13 @@ var interfaces_1 = require("./interfaces");
11
11
  var createBodyKeys = {
12
12
  code: joi_1.default.string().required(),
13
13
  label: joi_1.default.string().required(),
14
+ group: joi_1.default.string().allow(null).required(),
14
15
  };
15
16
  exports.createBody = joi_1.default.object().keys(createBodyKeys).messages(messages_1.messages);
16
17
  var updateBodyKeys = {
17
18
  code: joi_1.default.string().optional(),
18
19
  label: joi_1.default.string().optional(),
20
+ group: joi_1.default.string().allow(null).optional(),
19
21
  };
20
22
  exports.updateBody = joi_1.default.object().keys(updateBodyKeys).messages(messages_1.messages);
21
23
  exports.executeBodyKeys = {
@@ -11,6 +11,8 @@ export declare const QueryParameterDatatypeEnum: {
11
11
  text: 'text';
12
12
  date: 'date';
13
13
  month: 'month';
14
+ idnr: 'idnr';
15
+ link: 'link';
14
16
  };
15
17
  export type IQueryParameterDatatype = (typeof QueryParameterDatatypeEnum)[keyof typeof QueryParameterDatatypeEnum];
16
18
  export declare const queryParametersDatatypes: string[];
@@ -11,5 +11,7 @@ exports.QueryParameterDatatypeEnum = {
11
11
  text: 'text',
12
12
  date: 'date',
13
13
  month: 'month',
14
+ idnr: 'idnr',
15
+ link: 'link',
14
16
  };
15
17
  exports.queryParametersDatatypes = Object.keys(exports.QueryParameterDatatypeEnum);
@@ -759,6 +759,7 @@ export type QueryList = {
759
759
  id: string;
760
760
  label: string;
761
761
  code: string;
762
+ group: string | null;
762
763
  created_at: Date;
763
764
  updated_at: Date;
764
765
  created_by: string;
@@ -1053,6 +1054,14 @@ export type NegativePlotView = {
1053
1054
  document_line_id: string;
1054
1055
  product_id: string;
1055
1056
  negative: number;
1057
+ id_provider: number;
1058
+ product_thumbnail: string | null;
1059
+ unit_of_measure_quantity_notation: string;
1060
+ product_designation: string;
1061
+ product_reference: string;
1062
+ quantity: number;
1063
+ updated_at: Date;
1064
+ updated_by: string;
1056
1065
  };
1057
1066
  export type ProviderProductView = {
1058
1067
  product_id: string;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.11.27",
12
+ "version": "0.11.29",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [
@@ -39,8 +39,8 @@
39
39
  "devDependencies": {
40
40
  "@types/convert-units": "^2.3.9",
41
41
  "@types/node": "^18.18.9",
42
- "@typescript-eslint/eslint-plugin": "^6.10.0",
43
- "@typescript-eslint/parser": "^6.10.0",
42
+ "@typescript-eslint/eslint-plugin": "^6.11.0",
43
+ "@typescript-eslint/parser": "^6.11.0",
44
44
  "concurrently": "^8.2.2",
45
45
  "eslint": "^8.53.0",
46
46
  "eslint-config-airbnb-base": "^15.0.0",
@@ -48,8 +48,8 @@
48
48
  "eslint-import-resolver-typescript": "^3.6.1",
49
49
  "eslint-plugin-import": "^2.29.0",
50
50
  "eslint-plugin-prettier": "^5.0.1",
51
- "prettier": "^3.0.3",
52
- "tsx": "^4.1.0",
51
+ "prettier": "^3.1.0",
52
+ "tsx": "^4.1.2",
53
53
  "typescript": "^5.2.2"
54
54
  }
55
55
  }