@nomalism-com/types 0.12.8 → 0.13.2
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/modules/documentManagement/multimedia/interfaces.d.ts +1 -0
- package/dist/modules/integration/fieldGroup/interfaces.d.ts +1 -0
- package/dist/modules/integration/googleSheets/interfaces.d.ts +2 -6
- package/dist/modules/integration/googleSheets/route.schema.js +1 -4
- package/dist/modules/integration/taskAttachment/interfaces.d.ts +1 -0
- package/dist/modules/stock/workflow/interfaces.d.ts +1 -1
- package/dist/modules/supply/cabide/interface.d.ts +1 -3
- package/dist/modules/supply/documentLineAssoc/interfaces.d.ts +1 -1
- package/dist/modules/supply/transformado/interfaces.d.ts +1 -1
- package/dist/modules/user/vehicles/interfaces.d.ts +1 -0
- package/package.json +3 -3
|
@@ -4,10 +4,7 @@ export declare const Route = "google";
|
|
|
4
4
|
export declare const UpperName = "Google";
|
|
5
5
|
export declare const LowerName: string;
|
|
6
6
|
export interface IGetUserData extends Pick<DocumentHeader, 'document_number' | 'emission_date' | 'owner_number' | 'contact_persona_name' | 'contact_persona_email' | 'contact_persona_telephone' | 'billing_persona_nif' | 'billing_persona_name' | 'billing_persona_email' | 'billing_persona_telephone' | 'billing_persona_address_street' | 'billing_persona_address_locality' | 'billing_persona_address_postal_code' | 'billing_persona_address_country_name' | 'delivery_persona_name' | 'delivery_persona_email' | 'delivery_persona_telephone' | 'delivery_persona_address_street' | 'delivery_persona_address_locality' | 'delivery_persona_address_postal_code' | 'delivery_persona_address_country_name'> {
|
|
7
|
-
|
|
8
|
-
store_operator_name: string | null;
|
|
9
|
-
store_operator_number: number | null;
|
|
10
|
-
reason_for_exemption_name: string | null;
|
|
7
|
+
created_by: string;
|
|
11
8
|
}
|
|
12
9
|
export interface IUpdateRequest {
|
|
13
10
|
document_name: string;
|
|
@@ -19,7 +16,7 @@ export interface ICloneRequest {
|
|
|
19
16
|
export interface ICloneResponse {
|
|
20
17
|
spreadsheetId: string;
|
|
21
18
|
}
|
|
22
|
-
export type IGetProductGroup = 'cortinado' | 'tapete' | 'estore' | '
|
|
19
|
+
export type IGetProductGroup = 'cortinado' | 'tapete' | 'estore' | 'outros';
|
|
23
20
|
export type IGetProductType = 'confecção' | 'calha' | 'tecido 1' | 'tecido 2' | 'livre';
|
|
24
21
|
export type IReferenceType = 'noma' | 'sheets' | undefined;
|
|
25
22
|
export interface IGetProduct {
|
|
@@ -32,7 +29,6 @@ export interface IGetProduct {
|
|
|
32
29
|
designation: string;
|
|
33
30
|
discount: number;
|
|
34
31
|
price_sale: number;
|
|
35
|
-
price_cost: number;
|
|
36
32
|
reference_type?: IReferenceType;
|
|
37
33
|
}
|
|
38
34
|
export interface IGetDataResponse {
|
|
@@ -19,6 +19,7 @@ exports.exportQuery = joi_1.default
|
|
|
19
19
|
.keys(exportQueryKeys)
|
|
20
20
|
.messages(messages_1.messages);
|
|
21
21
|
var userData = {
|
|
22
|
+
created_by: joi_1.default.string().optional(),
|
|
22
23
|
document_number: joi_1.default.number().optional(),
|
|
23
24
|
emission_date: joi_1.default.date().optional(),
|
|
24
25
|
owner_number: joi_1.default.number().optional(),
|
|
@@ -48,10 +49,6 @@ var userData = {
|
|
|
48
49
|
.lowercase()
|
|
49
50
|
.optional(),
|
|
50
51
|
delivery_persona_address_country_name: joi_1.default.string().optional(),
|
|
51
|
-
reason_for_exemption_name: joi_1.default.string().required().allow(null),
|
|
52
|
-
store_operator_id: joi_1.default.string().required().allow(null),
|
|
53
|
-
store_operator_name: joi_1.default.string().required().allow(null),
|
|
54
|
-
store_operator_number: joi_1.default.number().required().allow(null),
|
|
55
52
|
};
|
|
56
53
|
var updateQueryKeys = {
|
|
57
54
|
document_name: joi_1.default.string().required(),
|
|
@@ -42,4 +42,4 @@ export interface IRepository {
|
|
|
42
42
|
deleteOne(selector: IShared.IFindByIdNumberRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
43
43
|
}
|
|
44
44
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
45
|
-
export type IApi = Omit<IRepository, 'findById'>;
|
|
45
|
+
export type IApi = Omit<IRepository, 'findById' | 'findByQuery'>;
|
|
@@ -81,7 +81,5 @@ export interface IRepository {
|
|
|
81
81
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
82
82
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
83
83
|
}
|
|
84
|
-
export type IApi = Omit<IRepository, 'printLabelToPdf'
|
|
85
|
-
printLabelToPdf(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
86
|
-
};
|
|
84
|
+
export type IApi = Omit<IRepository, 'printLabelToPdf'>;
|
|
87
85
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -34,5 +34,5 @@ export interface IRepository {
|
|
|
34
34
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IEntityWithDocumentLine>;
|
|
35
35
|
deleteInventoryLosses(data: IDeleteInventoryLossRequest): Promise<void>;
|
|
36
36
|
}
|
|
37
|
-
export type IApi = IRepository
|
|
37
|
+
export type IApi = Omit<IRepository, 'findById'>;
|
|
38
38
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -14,6 +14,6 @@ export interface ICreateTransformado {
|
|
|
14
14
|
products: IProductsCreateTransformado[];
|
|
15
15
|
}
|
|
16
16
|
export interface IRepository {
|
|
17
|
-
create(data: ICreateTransformado
|
|
17
|
+
create(data: ICreateTransformado): Promise<void>;
|
|
18
18
|
}
|
|
19
19
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.
|
|
12
|
+
"version": "0.13.2",
|
|
13
13
|
"main": "./dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/convert-units": "^2.3.9",
|
|
41
|
-
"@types/node": "^
|
|
41
|
+
"@types/node": "^20.9.4",
|
|
42
42
|
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
43
43
|
"@typescript-eslint/parser": "^6.12.0",
|
|
44
44
|
"concurrently": "^8.2.2",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"eslint-plugin-import": "^2.29.0",
|
|
50
50
|
"eslint-plugin-prettier": "^5.0.1",
|
|
51
51
|
"prettier": "^3.1.0",
|
|
52
|
-
"tsx": "^4.
|
|
52
|
+
"tsx": "^4.4.0",
|
|
53
53
|
"typescript": "^5.3.2"
|
|
54
54
|
}
|
|
55
55
|
}
|