@nomalism-com/types 0.11.49 → 0.12.0
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/integration/googleSheets/interfaces.d.ts +11 -1
- package/dist/modules/integration/googleSheets/route.schema.js +10 -0
- package/dist/modules/supply/propostaSheets/interface.d.ts +0 -1
- package/dist/shared/entities/index.d.ts +0 -1
- package/dist/shared/entities/stock.d.ts +0 -10
- package/dist/shared/interface.d.ts +1 -7
- package/dist/shared/interface.js +0 -1
- package/package.json +3 -3
|
@@ -9,6 +9,16 @@ export interface IGetUserData extends Pick<DocumentHeader, 'document_number' | '
|
|
|
9
9
|
export interface IUpdateRequest {
|
|
10
10
|
document_name: string;
|
|
11
11
|
client_data?: IGetUserData;
|
|
12
|
+
store_operator: {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
number: number;
|
|
16
|
+
};
|
|
17
|
+
reason_for_exemption: {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
12
22
|
}
|
|
13
23
|
export interface ICloneRequest {
|
|
14
24
|
document_name: string;
|
|
@@ -16,7 +26,7 @@ export interface ICloneRequest {
|
|
|
16
26
|
export interface ICloneResponse {
|
|
17
27
|
spreadsheetId: string;
|
|
18
28
|
}
|
|
19
|
-
export type IGetProductGroup = 'cortinado' | 'tapete' | 'estore' | 'outros';
|
|
29
|
+
export type IGetProductGroup = 'cortinado' | 'tapete' | 'estore' | 'estofo' | 'outros';
|
|
20
30
|
export type IGetProductType = 'confecção' | 'calha' | 'tecido 1' | 'tecido 2' | 'livre';
|
|
21
31
|
export type IReferenceType = 'noma' | 'sheets' | undefined;
|
|
22
32
|
export interface IGetProduct {
|
|
@@ -53,6 +53,16 @@ var userData = {
|
|
|
53
53
|
var updateQueryKeys = {
|
|
54
54
|
document_name: joi_1.default.string().required(),
|
|
55
55
|
client_data: joi_1.default.object().keys(userData).optional(),
|
|
56
|
+
reason_for_exemption: joi_1.default.object().keys({
|
|
57
|
+
id: joi_1.default.string().required(),
|
|
58
|
+
name: joi_1.default.string().required(),
|
|
59
|
+
description: joi_1.default.string().required(),
|
|
60
|
+
}),
|
|
61
|
+
store_operator: joi_1.default.object().keys({
|
|
62
|
+
id: joi_1.default.string().required(),
|
|
63
|
+
name: joi_1.default.string().required(),
|
|
64
|
+
number: joi_1.default.number().required(),
|
|
65
|
+
}),
|
|
56
66
|
};
|
|
57
67
|
exports.updateQuery = joi_1.default
|
|
58
68
|
.object()
|
|
@@ -25,7 +25,6 @@ export interface ICreateSheetFromDocumentResponse {
|
|
|
25
25
|
}
|
|
26
26
|
export interface IRepository {
|
|
27
27
|
importFromSheet(params: IShared.IFindByIdRequest): Promise<IFindByGooglesheetIdResponse>;
|
|
28
|
-
isProcessing(selector: IShared.IFindByIdRequest): Promise<boolean>;
|
|
29
28
|
conflictAccept(params: IShared.IFindByIdRequest): Promise<void>;
|
|
30
29
|
conflictDelete(params: IShared.IFindByIdRequest): Promise<void>;
|
|
31
30
|
conflictFindByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IConflictFindByOwnerIdResponse[]>;
|
|
@@ -135,4 +135,3 @@ export import EmailLog = Integration.EmailLog;
|
|
|
135
135
|
export import SavedEmPicking = Stock.SavedEmPicking;
|
|
136
136
|
export import EmailTemplate = Integration.EmailTemplate;
|
|
137
137
|
export import EmailTemplateAttachment = Integration.EmailTemplateAttachment;
|
|
138
|
-
export import GoogleSheetImports = Stock.GoogleSheetImports;
|
|
@@ -1099,13 +1099,3 @@ export type SavedEmPicking = {
|
|
|
1099
1099
|
created_by: string;
|
|
1100
1100
|
updated_by: string;
|
|
1101
1101
|
};
|
|
1102
|
-
export type GoogleSheetImports = {
|
|
1103
|
-
id: string;
|
|
1104
|
-
google_sheet_id: string;
|
|
1105
|
-
data: unknown;
|
|
1106
|
-
done: boolean;
|
|
1107
|
-
error: unknown;
|
|
1108
|
-
created_at: Date;
|
|
1109
|
-
created_by: string;
|
|
1110
|
-
updated_at: Date;
|
|
1111
|
-
};
|
|
@@ -113,8 +113,7 @@ export declare enum IBrokerTopic {
|
|
|
113
113
|
error_handler = "error_handler",
|
|
114
114
|
provider_order_schedule_email = "provider_order_schedule_email",
|
|
115
115
|
client_notice_schedule_email = "client_notice_schedule_email",
|
|
116
|
-
payment_notification_to_provider = "payment_notification_to_provider"
|
|
117
|
-
google_sheet_import = "google_sheet_import"
|
|
116
|
+
payment_notification_to_provider = "payment_notification_to_provider"
|
|
118
117
|
}
|
|
119
118
|
export type IBrokerTopicPayload = {
|
|
120
119
|
[IBrokerTopic.create]: Record<string, unknown>;
|
|
@@ -125,11 +124,6 @@ export type IBrokerTopicPayload = {
|
|
|
125
124
|
task_id: string;
|
|
126
125
|
description: string;
|
|
127
126
|
};
|
|
128
|
-
[IBrokerTopic.google_sheet_import]: {
|
|
129
|
-
google_sheet_id: string;
|
|
130
|
-
user_id: string;
|
|
131
|
-
location_id: string;
|
|
132
|
-
};
|
|
133
127
|
[IBrokerTopic.moloni_create_document]: {
|
|
134
128
|
document_header_id: string;
|
|
135
129
|
user_id: string;
|
package/dist/shared/interface.js
CHANGED
|
@@ -75,5 +75,4 @@ var IBrokerTopic;
|
|
|
75
75
|
IBrokerTopic["provider_order_schedule_email"] = "provider_order_schedule_email";
|
|
76
76
|
IBrokerTopic["client_notice_schedule_email"] = "client_notice_schedule_email";
|
|
77
77
|
IBrokerTopic["payment_notification_to_provider"] = "payment_notification_to_provider";
|
|
78
|
-
IBrokerTopic["google_sheet_import"] = "google_sheet_import";
|
|
79
78
|
})(IBrokerTopic || (exports.IBrokerTopic = IBrokerTopic = {}));
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.
|
|
12
|
+
"version": "0.12.0",
|
|
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": "^18.18.
|
|
41
|
+
"@types/node": "^18.18.11",
|
|
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.2.0",
|
|
53
53
|
"typescript": "^5.3.2"
|
|
54
54
|
}
|
|
55
55
|
}
|