@nomalism-com/types 1.3.62 → 1.3.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 +0 -16
- package/dist/index.js +0 -16
- package/dist/modules/integration/observation/interfaces.d.ts +2 -7
- package/dist/modules/stock/location/interface.d.ts +2 -6
- package/dist/shared/entities/integration.d.ts +0 -13
- package/dist/shared/entities/stock.d.ts +0 -14
- package/dist/shared/errors/integrationErrors.d.ts +0 -8
- package/dist/shared/errors/stockErrors.d.ts +0 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1681,14 +1681,6 @@ var integrationErrors_default = {
|
|
|
1681
1681
|
alreadyExists: "this observation already exists",
|
|
1682
1682
|
notDeleted: "observation not deleted",
|
|
1683
1683
|
notUpdated: "observation not updated"
|
|
1684
|
-
},
|
|
1685
|
-
moduleObservationType: {
|
|
1686
|
-
dontExist: "this type of observation dont exists",
|
|
1687
|
-
notFound: "type of observation not found",
|
|
1688
|
-
alreadyExists: "this type of observation already exists",
|
|
1689
|
-
childExists: "type of observation has observations",
|
|
1690
|
-
notDeleted: "type of observation not deleted",
|
|
1691
|
-
notUpdated: "type of observation not updated"
|
|
1692
1684
|
}
|
|
1693
1685
|
};
|
|
1694
1686
|
|
|
@@ -1793,14 +1785,6 @@ var stockErrors_default = {
|
|
|
1793
1785
|
notDeleted: "symbols not deleted",
|
|
1794
1786
|
notUpdated: "symbols not updated"
|
|
1795
1787
|
},
|
|
1796
|
-
TypeOfLocation: {
|
|
1797
|
-
dontExist: "this type of location dont exists",
|
|
1798
|
-
notFound: "type of location not found",
|
|
1799
|
-
alreadyExists: "this type of location already exists",
|
|
1800
|
-
childExists: "type of location has locations",
|
|
1801
|
-
notDeleted: "type of location not deleted",
|
|
1802
|
-
notUpdated: "type of location not updated"
|
|
1803
|
-
},
|
|
1804
1788
|
VatTaxes: {
|
|
1805
1789
|
dontExist: "this vat taxes dont exists",
|
|
1806
1790
|
notFound: "vat taxesn not found",
|
package/dist/index.js
CHANGED
|
@@ -1677,14 +1677,6 @@ var integrationErrors_default = {
|
|
|
1677
1677
|
alreadyExists: "this observation already exists",
|
|
1678
1678
|
notDeleted: "observation not deleted",
|
|
1679
1679
|
notUpdated: "observation not updated"
|
|
1680
|
-
},
|
|
1681
|
-
moduleObservationType: {
|
|
1682
|
-
dontExist: "this type of observation dont exists",
|
|
1683
|
-
notFound: "type of observation not found",
|
|
1684
|
-
alreadyExists: "this type of observation already exists",
|
|
1685
|
-
childExists: "type of observation has observations",
|
|
1686
|
-
notDeleted: "type of observation not deleted",
|
|
1687
|
-
notUpdated: "type of observation not updated"
|
|
1688
1680
|
}
|
|
1689
1681
|
};
|
|
1690
1682
|
|
|
@@ -1789,14 +1781,6 @@ var stockErrors_default = {
|
|
|
1789
1781
|
notDeleted: "symbols not deleted",
|
|
1790
1782
|
notUpdated: "symbols not updated"
|
|
1791
1783
|
},
|
|
1792
|
-
TypeOfLocation: {
|
|
1793
|
-
dontExist: "this type of location dont exists",
|
|
1794
|
-
notFound: "type of location not found",
|
|
1795
|
-
alreadyExists: "this type of location already exists",
|
|
1796
|
-
childExists: "type of location has locations",
|
|
1797
|
-
notDeleted: "type of location not deleted",
|
|
1798
|
-
notUpdated: "type of location not updated"
|
|
1799
|
-
},
|
|
1800
1784
|
VatTaxes: {
|
|
1801
1785
|
dontExist: "this vat taxes dont exists",
|
|
1802
1786
|
notFound: "vat taxesn not found",
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import { Observation
|
|
1
|
+
import { Observation } from "../../../shared/entities/integration";
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Observation;
|
|
4
4
|
export declare const Route = "observation";
|
|
5
5
|
export interface ICreateRequest {
|
|
6
6
|
owner_id: string;
|
|
7
|
-
observation_type_id?: string | null;
|
|
8
7
|
description: string;
|
|
9
8
|
internal: boolean;
|
|
10
9
|
}
|
|
11
10
|
export interface IUpdateRequest {
|
|
12
|
-
observation_type_id?: string | null;
|
|
13
11
|
description?: string;
|
|
14
12
|
internal?: boolean;
|
|
15
13
|
}
|
|
16
14
|
export interface IFindByQueryRequest {
|
|
17
15
|
owner_id?: string;
|
|
18
|
-
observation_type_id?: string;
|
|
19
16
|
description?: string;
|
|
20
17
|
internal?: boolean;
|
|
21
18
|
}
|
|
@@ -27,9 +24,7 @@ export interface IFindByOwnersRequest {
|
|
|
27
24
|
owner_ids: string[];
|
|
28
25
|
includeInternal?: boolean;
|
|
29
26
|
}
|
|
30
|
-
export
|
|
31
|
-
observation_type: ObservationType | null;
|
|
32
|
-
}
|
|
27
|
+
export type IFindByOwnerResponse = Entity;
|
|
33
28
|
export interface IRepository {
|
|
34
29
|
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
35
30
|
findByQuery(data: IFindByQueryRequest): Promise<Entity[]>;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { Location
|
|
1
|
+
import { Location } from "../../../shared/entities/stock";
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Location;
|
|
4
4
|
export declare const Route = "location";
|
|
5
|
-
interface IFindDetailedResponse extends Entity {
|
|
6
|
-
type_of_location: TypeOfLocation;
|
|
7
|
-
}
|
|
8
5
|
export type IFindRequest = Record<string, unknown>;
|
|
9
|
-
export type IFindResponse =
|
|
6
|
+
export type IFindResponse = Entity;
|
|
10
7
|
export interface IRepository {
|
|
11
8
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
12
9
|
}
|
|
13
10
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
14
|
-
export {};
|
|
@@ -7,7 +7,6 @@ import type { IBudgetOptionsType, IProjectInfoOriginType, IProjectInfoType } fro
|
|
|
7
7
|
export type Observation = {
|
|
8
8
|
id: string;
|
|
9
9
|
owner_id: string;
|
|
10
|
-
observation_type_id: string | null;
|
|
11
10
|
description: string;
|
|
12
11
|
internal: boolean;
|
|
13
12
|
created_by: string;
|
|
@@ -15,18 +14,6 @@ export type Observation = {
|
|
|
15
14
|
created_at: Date;
|
|
16
15
|
updated_at: Date;
|
|
17
16
|
};
|
|
18
|
-
/**
|
|
19
|
-
* Model ObservationType
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
export type ObservationType = {
|
|
23
|
-
id: string;
|
|
24
|
-
name: string;
|
|
25
|
-
created_by: string;
|
|
26
|
-
updated_by: string;
|
|
27
|
-
created_at: Date;
|
|
28
|
-
updated_at: Date;
|
|
29
|
-
};
|
|
30
17
|
/**
|
|
31
18
|
* Model GoogleFilePermission
|
|
32
19
|
*
|
|
@@ -53,7 +53,6 @@ export type Chat = {
|
|
|
53
53
|
*/
|
|
54
54
|
export type Location = {
|
|
55
55
|
id: string;
|
|
56
|
-
type_of_location_id: string;
|
|
57
56
|
country_id: string;
|
|
58
57
|
country_name: string;
|
|
59
58
|
name: string;
|
|
@@ -181,19 +180,6 @@ export type PromotionAssoc = {
|
|
|
181
180
|
created_by: string;
|
|
182
181
|
updated_by: string;
|
|
183
182
|
};
|
|
184
|
-
/**
|
|
185
|
-
* Model TypeOfLocation
|
|
186
|
-
*
|
|
187
|
-
*/
|
|
188
|
-
export type TypeOfLocation = {
|
|
189
|
-
id: string;
|
|
190
|
-
name: string;
|
|
191
|
-
origin_id: string | null;
|
|
192
|
-
created_at: Date;
|
|
193
|
-
updated_at: Date;
|
|
194
|
-
created_by: string;
|
|
195
|
-
updated_by: string;
|
|
196
|
-
};
|
|
197
183
|
/**
|
|
198
184
|
* Model VatTax
|
|
199
185
|
*
|
|
@@ -33,13 +33,5 @@ declare const _default: {
|
|
|
33
33
|
notDeleted: string;
|
|
34
34
|
notUpdated: string;
|
|
35
35
|
};
|
|
36
|
-
moduleObservationType: {
|
|
37
|
-
dontExist: string;
|
|
38
|
-
notFound: string;
|
|
39
|
-
alreadyExists: string;
|
|
40
|
-
childExists: string;
|
|
41
|
-
notDeleted: string;
|
|
42
|
-
notUpdated: string;
|
|
43
|
-
};
|
|
44
36
|
};
|
|
45
37
|
export default _default;
|
|
@@ -94,14 +94,6 @@ declare const _default: {
|
|
|
94
94
|
notDeleted: string;
|
|
95
95
|
notUpdated: string;
|
|
96
96
|
};
|
|
97
|
-
TypeOfLocation: {
|
|
98
|
-
dontExist: string;
|
|
99
|
-
notFound: string;
|
|
100
|
-
alreadyExists: string;
|
|
101
|
-
childExists: string;
|
|
102
|
-
notDeleted: string;
|
|
103
|
-
notUpdated: string;
|
|
104
|
-
};
|
|
105
97
|
VatTaxes: {
|
|
106
98
|
dontExist: string;
|
|
107
99
|
notFound: string;
|
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": "1.3.
|
|
4
|
+
"version": "1.3.63",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|