@nomalism-com/types 1.3.60 → 1.3.62
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 +630 -745
- package/dist/index.js +556 -661
- package/dist/main.d.ts +2 -12
- package/dist/modules/document/NRCL/interface.d.ts +0 -2
- package/dist/modules/document/materialEntrance/interfaces.d.ts +0 -6
- package/dist/modules/document/order/interfaces.d.ts +0 -14
- package/dist/modules/document/upfrontReturn/interfaces.d.ts +0 -1
- package/dist/modules/documentManagement/multimedia/interfaces.d.ts +0 -3
- package/dist/modules/integration/emailLog/interfaces.d.ts +0 -3
- package/dist/modules/integration/emailTemplateAttachment/interfaces.d.ts +0 -13
- package/dist/modules/integration/emailVerification/interfaces.d.ts +0 -2
- package/dist/modules/integration/googleFilePermission/interfaces.d.ts +0 -8
- package/dist/modules/integration/patchNotes/interfaces.d.ts +0 -4
- package/dist/modules/integration/projectInfo/interfaces.d.ts +0 -2
- package/dist/modules/integration/settings/interfaces.d.ts +0 -1
- package/dist/modules/llm/llm/interfaces.d.ts +0 -2
- package/dist/modules/print/printer/interfaces.d.ts +0 -1
- package/dist/modules/sms/smsSender/interfaces.d.ts +0 -7
- package/dist/modules/sms/smsTemplate/interfaces.d.ts +0 -9
- package/dist/modules/stock/conferirEncomenda/interface.d.ts +0 -3
- package/dist/modules/stock/displayLabel/interface.d.ts +6 -1
- package/dist/modules/stock/emailAccount/interface.d.ts +0 -1
- package/dist/modules/stock/gmails/interface.d.ts +0 -4
- package/dist/modules/stock/googleSheetPool/interface.d.ts +0 -2
- package/dist/modules/stock/location/interface.d.ts +0 -44
- package/dist/modules/stock/mobilePrint/interface.d.ts +0 -2
- package/dist/modules/stock/productGoogleSheets/interface.d.ts +0 -7
- package/dist/modules/stock/productImage/interface.d.ts +3 -1
- package/dist/modules/stock/productUpdate/interface.d.ts +214 -0
- package/dist/modules/stock/promotion/interface.d.ts +0 -2
- package/dist/modules/stock/queryList/interfaces.d.ts +0 -18
- package/dist/modules/stock/queryParameter/interfaces.d.ts +0 -34
- package/dist/modules/stock/recurrentTasks/interface.d.ts +0 -2
- package/dist/modules/stock/returnReason/interfaces.d.ts +0 -9
- package/dist/modules/stock/stockMovement/interface.d.ts +0 -3
- package/dist/modules/stock/task/interface.d.ts +0 -2
- package/dist/modules/stock/unitOfMeasure/interface.d.ts +0 -9
- package/dist/modules/stock/vatTax/interface.d.ts +0 -9
- package/dist/modules/stock/vatTaxZone/interface.d.ts +0 -9
- package/dist/modules/supply/currentAccount/interface.d.ts +9 -88
- package/dist/modules/supply/documentHeaderHistory/interfaces.d.ts +0 -1
- package/dist/modules/supply/documentHeaderSurvey/interfaces.d.ts +0 -2
- package/dist/modules/supply/documentLine/interfaces.d.ts +0 -5
- package/dist/modules/supply/documentSet/interface.d.ts +0 -7
- package/dist/modules/supply/documentType/interfaces.d.ts +0 -2
- package/dist/modules/supply/externalDocumentType/interface.d.ts +0 -7
- package/dist/modules/supply/payment/interface.d.ts +2 -5
- package/dist/modules/supply/paymentBatch/interface.d.ts +2 -2
- package/dist/modules/supply/preSale/interface.d.ts +0 -1
- package/dist/modules/supply/preSaleProduct/interface.d.ts +0 -1
- package/dist/modules/supply/schedule/interface.d.ts +0 -1
- package/dist/modules/tickets/tickets/interfaces.d.ts +1 -2
- package/dist/modules/ui/sidemenuHighlight/interface.d.ts +0 -11
- package/dist/modules/user/bankData/interface.d.ts +0 -9
- package/dist/modules/user/clientType/interface.d.ts +0 -16
- package/dist/modules/user/country/interface.d.ts +0 -12
- package/dist/modules/user/deliveryMethods/interfaces.d.ts +0 -1
- package/dist/modules/user/favorites/interfaces.d.ts +0 -3
- package/dist/modules/user/language/interface.d.ts +0 -9
- package/dist/modules/user/maturityDates/interfaces.d.ts +0 -1
- package/dist/modules/user/paymentMethods/interfaces.d.ts +0 -1
- package/dist/modules/user/providerType/interface.d.ts +0 -13
- package/dist/modules/user/purchaseConditions/interface.d.ts +0 -9
- package/dist/modules/user/reasonForExemption/interface.d.ts +0 -3
- package/dist/modules/user/segmentsArea/interface.d.ts +0 -17
- package/dist/modules/user/shippings/interface.d.ts +0 -8
- package/dist/modules/user/storeOperator/interface.d.ts +0 -2
- package/dist/modules/user/swift/interface.d.ts +0 -17
- package/dist/modules/user/systemModule/interface.d.ts +0 -11
- package/dist/modules/user/timeSheet/interfaces.d.ts +0 -3
- package/dist/modules/user/userTokens/interface.d.ts +0 -6
- package/dist/modules/user/users/interface.d.ts +1 -9
- package/dist/modules/view/adminPanel/interfaces.d.ts +0 -3
- package/dist/modules/view/errorLog/interfaces.d.ts +0 -1
- package/dist/modules/view/webSocket/interfaces.d.ts +0 -1
- package/dist/shared/entities/user.d.ts +0 -14
- package/dist/shared/interface.d.ts +0 -31
- package/package.json +5 -5
- package/dist/modules/document/adiantamento/interfaces.d.ts +0 -24
- package/dist/modules/document/faturaCredito/interfaces.d.ts +0 -26
- package/dist/modules/document/faturaRecibo/interfaces.d.ts +0 -25
- package/dist/modules/document/faturaSimplificada/interfaces.d.ts +0 -24
- package/dist/modules/document/notaCredito/interfaces.d.ts +0 -29
- package/dist/modules/document/notaCreditoAdiantamento/interfaces.d.ts +0 -25
- package/dist/modules/document/productionOrder/interfaces.d.ts +0 -10
- package/dist/modules/document/recibo/interfaces.d.ts +0 -21
- package/dist/modules/integration/observationType/interfaces.d.ts +0 -25
- package/dist/modules/stock/typeOfLocation/interface.d.ts +0 -30
- package/dist/modules/supply/batch/interface.d.ts +0 -0
- package/dist/modules/user/userPositions/interface.d.ts +0 -28
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
export declare const Route = "product_update";
|
|
3
|
+
export interface IExtractRequest {
|
|
4
|
+
multimedia_ids: string[];
|
|
5
|
+
}
|
|
6
|
+
export interface IExtractionResult {
|
|
7
|
+
source: string;
|
|
8
|
+
page_count: number;
|
|
9
|
+
tables: IExtractedTable[];
|
|
10
|
+
}
|
|
11
|
+
export interface IExtractedTable {
|
|
12
|
+
id: string;
|
|
13
|
+
pages: number[];
|
|
14
|
+
row_count: number;
|
|
15
|
+
columns: IExtractedColumn[];
|
|
16
|
+
rows: IExtractedRow[];
|
|
17
|
+
}
|
|
18
|
+
export interface IExtractedColumn {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
samples: string[];
|
|
22
|
+
suggested_field: string | null;
|
|
23
|
+
}
|
|
24
|
+
export interface IExtractedRow {
|
|
25
|
+
_page: number;
|
|
26
|
+
_section: string | null;
|
|
27
|
+
_note?: string;
|
|
28
|
+
[columnId: string]: string | number | null | undefined;
|
|
29
|
+
}
|
|
30
|
+
export declare const ExtractErrorCodeEnum: {
|
|
31
|
+
NOT_A_PDF: "NOT_A_PDF";
|
|
32
|
+
INVALID_PDF: "INVALID_PDF";
|
|
33
|
+
FILE_NOT_FOUND: "FILE_NOT_FOUND";
|
|
34
|
+
TIMEOUT: "TIMEOUT";
|
|
35
|
+
EXTRACTION_FAILED: "EXTRACTION_FAILED";
|
|
36
|
+
};
|
|
37
|
+
export type IExtractErrorCode = (typeof ExtractErrorCodeEnum)[keyof typeof ExtractErrorCodeEnum];
|
|
38
|
+
export interface IExtractError {
|
|
39
|
+
code: IExtractErrorCode;
|
|
40
|
+
message: string;
|
|
41
|
+
}
|
|
42
|
+
interface IExtractFileResultBase {
|
|
43
|
+
multimedia_id: string;
|
|
44
|
+
file_name: string;
|
|
45
|
+
}
|
|
46
|
+
export type IExtractFileResult = (IExtractFileResultBase & {
|
|
47
|
+
status: "ok";
|
|
48
|
+
data: IExtractionResult;
|
|
49
|
+
}) | (IExtractFileResultBase & {
|
|
50
|
+
status: "error";
|
|
51
|
+
error: IExtractError;
|
|
52
|
+
});
|
|
53
|
+
export interface IExtractResponse {
|
|
54
|
+
results: IExtractFileResult[];
|
|
55
|
+
}
|
|
56
|
+
export declare const ImportTabEnum: {
|
|
57
|
+
PRODUTOS: "PRODUTOS";
|
|
58
|
+
NOVA_ENCOMENDA: "NOVA_ENCOMENDA";
|
|
59
|
+
};
|
|
60
|
+
export type IImportTab = (typeof ImportTabEnum)[keyof typeof ImportTabEnum];
|
|
61
|
+
export declare const ImportTabLabels: Record<IImportTab, string>;
|
|
62
|
+
export type IColumnKind = "text" | "price" | "number" | "length" | "weight";
|
|
63
|
+
export declare const MasterColumnKinds: Record<string, IColumnKind>;
|
|
64
|
+
export interface IMasterColumn {
|
|
65
|
+
key: string;
|
|
66
|
+
letter: string;
|
|
67
|
+
kind: IColumnKind;
|
|
68
|
+
locked: string | null;
|
|
69
|
+
}
|
|
70
|
+
export interface IColumnsRequest {
|
|
71
|
+
tab: IImportTab;
|
|
72
|
+
}
|
|
73
|
+
export interface IColumnsResponse {
|
|
74
|
+
tab: IImportTab;
|
|
75
|
+
columns: IMasterColumn[];
|
|
76
|
+
suggested_match_column: string | null;
|
|
77
|
+
}
|
|
78
|
+
export declare const LengthUnitEnum: {
|
|
79
|
+
m: "m";
|
|
80
|
+
cm: "cm";
|
|
81
|
+
mm: "mm";
|
|
82
|
+
};
|
|
83
|
+
export type ILengthUnit = (typeof LengthUnitEnum)[keyof typeof LengthUnitEnum];
|
|
84
|
+
export declare const WeightUnitEnum: {
|
|
85
|
+
kg: "kg";
|
|
86
|
+
g: "g";
|
|
87
|
+
};
|
|
88
|
+
export type IWeightUnit = (typeof WeightUnitEnum)[keyof typeof WeightUnitEnum];
|
|
89
|
+
export declare const RefMatchEnum: {
|
|
90
|
+
exact: "exact";
|
|
91
|
+
contains: "contains";
|
|
92
|
+
};
|
|
93
|
+
export type IRefMatch = (typeof RefMatchEnum)[keyof typeof RefMatchEnum];
|
|
94
|
+
export declare const RefMatchLabels: Record<IRefMatch, string>;
|
|
95
|
+
export type IAnalyzeRowValues = Record<string, string>;
|
|
96
|
+
export interface IAnalyzeRowInput {
|
|
97
|
+
page: number;
|
|
98
|
+
provider_ref: string;
|
|
99
|
+
values: IAnalyzeRowValues;
|
|
100
|
+
}
|
|
101
|
+
export interface IAnalyzeRequest {
|
|
102
|
+
id_provider: number;
|
|
103
|
+
tab: IImportTab;
|
|
104
|
+
match_column: string;
|
|
105
|
+
ref_match: IRefMatch;
|
|
106
|
+
length_unit: ILengthUnit;
|
|
107
|
+
weight_unit: IWeightUnit;
|
|
108
|
+
rows: IAnalyzeRowInput[];
|
|
109
|
+
}
|
|
110
|
+
export type IMasterValue = string | number | null;
|
|
111
|
+
export type IMasterValues = Record<string, IMasterValue>;
|
|
112
|
+
export interface IMasterRow {
|
|
113
|
+
key: string;
|
|
114
|
+
row_number: number;
|
|
115
|
+
reference: string;
|
|
116
|
+
match_value: string;
|
|
117
|
+
state: string | null;
|
|
118
|
+
values: IMasterValues;
|
|
119
|
+
}
|
|
120
|
+
export interface IAnalyzeUpdate extends IMasterRow {
|
|
121
|
+
provider_ref: string;
|
|
122
|
+
page: number;
|
|
123
|
+
new: IMasterValues;
|
|
124
|
+
changes: string[];
|
|
125
|
+
reactivate: boolean;
|
|
126
|
+
warnings: string[];
|
|
127
|
+
}
|
|
128
|
+
export interface IAnalyzeCreate {
|
|
129
|
+
provider_ref: string;
|
|
130
|
+
page: number;
|
|
131
|
+
values: IMasterValues;
|
|
132
|
+
warnings: string[];
|
|
133
|
+
}
|
|
134
|
+
export type IAnalyzeDeactivate = IMasterRow;
|
|
135
|
+
export interface IAnalyzeProblem {
|
|
136
|
+
page: number;
|
|
137
|
+
provider_ref: string | null;
|
|
138
|
+
message: string;
|
|
139
|
+
}
|
|
140
|
+
export interface IAnalyzeResponse {
|
|
141
|
+
tab: IImportTab;
|
|
142
|
+
columns: IMasterColumn[];
|
|
143
|
+
to_update: IAnalyzeUpdate[];
|
|
144
|
+
to_create: IAnalyzeCreate[];
|
|
145
|
+
to_deactivate: IAnalyzeDeactivate[];
|
|
146
|
+
problems: IAnalyzeProblem[];
|
|
147
|
+
unchanged_count: number;
|
|
148
|
+
provider_row_count: number;
|
|
149
|
+
without_match_value: IMasterRow[];
|
|
150
|
+
}
|
|
151
|
+
export interface IApplyRowItem {
|
|
152
|
+
key: string;
|
|
153
|
+
current: IMasterValues;
|
|
154
|
+
}
|
|
155
|
+
export interface IApplyUpdateRequest extends IAnalyzeRequest {
|
|
156
|
+
items: IApplyRowItem[];
|
|
157
|
+
}
|
|
158
|
+
export interface IApplyCreateRequest extends IAnalyzeRequest {
|
|
159
|
+
provider_refs: string[];
|
|
160
|
+
}
|
|
161
|
+
export interface IApplyDeactivateRequest extends IAnalyzeRequest {
|
|
162
|
+
items: IApplyRowItem[];
|
|
163
|
+
}
|
|
164
|
+
export declare const ApplyStatusEnum: {
|
|
165
|
+
applied: "applied";
|
|
166
|
+
conflict: "conflict";
|
|
167
|
+
not_found: "not_found";
|
|
168
|
+
};
|
|
169
|
+
export type IApplyStatus = (typeof ApplyStatusEnum)[keyof typeof ApplyStatusEnum];
|
|
170
|
+
export interface IApplyResult {
|
|
171
|
+
key: string;
|
|
172
|
+
status: IApplyStatus;
|
|
173
|
+
message: string | null;
|
|
174
|
+
}
|
|
175
|
+
export interface IApplyResponse {
|
|
176
|
+
applied: number;
|
|
177
|
+
results: IApplyResult[];
|
|
178
|
+
}
|
|
179
|
+
export type IApplyAction = "update" | "create" | "deactivate";
|
|
180
|
+
export declare const ApplyActionLabels: Record<IApplyAction, string>;
|
|
181
|
+
export interface IHistoryItem {
|
|
182
|
+
key: string;
|
|
183
|
+
row_number: number | null;
|
|
184
|
+
before: IMasterValues;
|
|
185
|
+
after: IMasterValues;
|
|
186
|
+
}
|
|
187
|
+
export interface IHistoryRequest {
|
|
188
|
+
id_provider?: number;
|
|
189
|
+
limit?: number;
|
|
190
|
+
}
|
|
191
|
+
export interface IHistoryEntry {
|
|
192
|
+
id: string;
|
|
193
|
+
created_at: Date;
|
|
194
|
+
user_id: string;
|
|
195
|
+
user_name: string | null;
|
|
196
|
+
id_provider: number;
|
|
197
|
+
tab: IImportTab;
|
|
198
|
+
action: IApplyAction;
|
|
199
|
+
items: IHistoryItem[];
|
|
200
|
+
}
|
|
201
|
+
export interface IHistoryResponse {
|
|
202
|
+
entries: IHistoryEntry[];
|
|
203
|
+
}
|
|
204
|
+
export interface IRepository {
|
|
205
|
+
extract(data: IExtractRequest): Promise<IExtractResponse>;
|
|
206
|
+
columns(data: IColumnsRequest): Promise<IColumnsResponse>;
|
|
207
|
+
analyze(data: IAnalyzeRequest): Promise<IAnalyzeResponse>;
|
|
208
|
+
applyUpdate(data: IApplyUpdateRequest): Promise<IApplyResponse>;
|
|
209
|
+
applyCreate(data: IApplyCreateRequest): Promise<IApplyResponse>;
|
|
210
|
+
applyDeactivate(data: IApplyDeactivateRequest): Promise<IApplyResponse>;
|
|
211
|
+
history(data: IHistoryRequest): Promise<IHistoryResponse>;
|
|
212
|
+
}
|
|
213
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
214
|
+
export {};
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import { QueryList, QueryParameter } from "../../../shared/entities/stock";
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
|
-
export type Entity = QueryList;
|
|
4
3
|
export declare const Route = "query";
|
|
5
|
-
export interface ICreateRequest {
|
|
6
|
-
label: string;
|
|
7
|
-
code: string;
|
|
8
|
-
group: string | null;
|
|
9
|
-
}
|
|
10
|
-
export interface IUpdateRequest {
|
|
11
|
-
label?: string;
|
|
12
|
-
code?: string;
|
|
13
|
-
group?: string | null;
|
|
14
|
-
}
|
|
15
4
|
export interface IFindResponse extends QueryList {
|
|
16
5
|
parameters: QueryParameter[];
|
|
17
6
|
}
|
|
@@ -30,12 +19,5 @@ export interface IExecuteResponse extends IFindResponse {
|
|
|
30
19
|
}
|
|
31
20
|
export interface IRepository {
|
|
32
21
|
find(): Promise<IFindResponse[]>;
|
|
33
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindResponse | null>;
|
|
34
|
-
create(data: ICreateRequest): Promise<IFindResponse>;
|
|
35
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindResponse | null>;
|
|
36
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
37
22
|
}
|
|
38
|
-
export type IApi = Omit<IRepository, "execute"> & {
|
|
39
|
-
execute(data: IExecuteRequest): Promise<IExecuteResponse>;
|
|
40
|
-
};
|
|
41
23
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { QueryParameter } from "../../../shared/entities/stock";
|
|
2
|
-
import * as IShared from "../../../shared/interface";
|
|
3
2
|
export type Entity = QueryParameter;
|
|
4
|
-
export declare const Route = "query_parameter";
|
|
5
3
|
export declare const QueryParameterDatatypeEnum: {
|
|
6
4
|
boolean: "boolean";
|
|
7
5
|
decimal: "decimal";
|
|
@@ -15,35 +13,3 @@ export declare const QueryParameterDatatypeEnum: {
|
|
|
15
13
|
hidden: "hidden";
|
|
16
14
|
};
|
|
17
15
|
export type IQueryParameterDatatype = (typeof QueryParameterDatatypeEnum)[keyof typeof QueryParameterDatatypeEnum];
|
|
18
|
-
export declare const queryParametersDatatypes: string[];
|
|
19
|
-
export interface ICreateRequest {
|
|
20
|
-
label: string;
|
|
21
|
-
accessor: string;
|
|
22
|
-
datatype: IQueryParameterDatatype;
|
|
23
|
-
suffix: string | null;
|
|
24
|
-
preffix: string | null;
|
|
25
|
-
input: boolean;
|
|
26
|
-
width: number | null;
|
|
27
|
-
output: boolean;
|
|
28
|
-
query_id: string;
|
|
29
|
-
}
|
|
30
|
-
export interface IUpdateRequest {
|
|
31
|
-
label?: string;
|
|
32
|
-
accessor?: string;
|
|
33
|
-
width?: number;
|
|
34
|
-
datatype?: IQueryParameterDatatype;
|
|
35
|
-
suffix?: string | null;
|
|
36
|
-
preffix?: string | null;
|
|
37
|
-
input?: boolean;
|
|
38
|
-
output?: boolean;
|
|
39
|
-
}
|
|
40
|
-
export type IFindByOwnerIdResponse = Entity;
|
|
41
|
-
export interface IRepository {
|
|
42
|
-
find(): Promise<Entity[]>;
|
|
43
|
-
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
44
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
45
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
46
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
47
|
-
findByOwnerId(selector: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
48
|
-
}
|
|
49
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import * as IShared from "../../../shared/interface";
|
|
2
1
|
export declare const Route = "recurrent_tasks";
|
|
3
2
|
export interface IRepository {
|
|
4
3
|
from_master(): Promise<string>;
|
|
5
4
|
from_master_checked(): Promise<string>;
|
|
6
5
|
}
|
|
7
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -2,16 +2,7 @@ import { ReturnReason } from "../../../shared/entities/stock";
|
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = ReturnReason;
|
|
4
4
|
export declare const Route = "return_reason";
|
|
5
|
-
export interface ICreateRequest {
|
|
6
|
-
reason: string;
|
|
7
|
-
}
|
|
8
|
-
export interface IUpdateRequest {
|
|
9
|
-
reason: string;
|
|
10
|
-
}
|
|
11
5
|
export interface IRepository {
|
|
12
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
13
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
14
6
|
find(): Promise<Entity[]>;
|
|
15
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
16
7
|
}
|
|
17
8
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { StockMovement } from "../../../shared/entities/stock";
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
|
-
export type Entity = StockMovement;
|
|
4
3
|
export declare const Route = "stock_movement";
|
|
5
4
|
export interface IFindByProviderResponse extends Omit<StockMovement, "product_id" | "stock_to_date"> {
|
|
6
5
|
reference: string;
|
|
@@ -11,13 +10,11 @@ export declare const ExportFormatEnum: {
|
|
|
11
10
|
xml: "xml";
|
|
12
11
|
};
|
|
13
12
|
export type IExportFormat = (typeof ExportFormatEnum)[keyof typeof ExportFormatEnum];
|
|
14
|
-
export declare const exportFormats: string[];
|
|
15
13
|
export declare const ExportVersionEnum: {
|
|
16
14
|
v1_02: "v1_02";
|
|
17
15
|
v2_01: "v2_01";
|
|
18
16
|
};
|
|
19
17
|
export type IExportVersion = (typeof ExportVersionEnum)[keyof typeof ExportVersionEnum];
|
|
20
|
-
export declare const exportVersions: string[];
|
|
21
18
|
export interface IExportRequest {
|
|
22
19
|
date: Date;
|
|
23
20
|
format: IExportFormat;
|
|
@@ -8,7 +8,6 @@ export declare const ITaskStatusDataTypeEnum: {
|
|
|
8
8
|
Problem: "Problem";
|
|
9
9
|
};
|
|
10
10
|
export type ITaskStatusDataType = (typeof ITaskStatusDataTypeEnum)[keyof typeof ITaskStatusDataTypeEnum];
|
|
11
|
-
export declare const taskStatusDataType: string[];
|
|
12
11
|
export type ICreateRequest = {
|
|
13
12
|
task: string;
|
|
14
13
|
};
|
|
@@ -35,7 +34,6 @@ export declare const IHistoryStatusDataTypeEnum: {
|
|
|
35
34
|
deleted_message: "deleted_message";
|
|
36
35
|
};
|
|
37
36
|
export type IHistoryStatusDataType = (typeof IHistoryStatusDataTypeEnum)[keyof typeof IHistoryStatusDataTypeEnum];
|
|
38
|
-
export declare const historyStatusDataType: string[];
|
|
39
37
|
export interface ITaskHistoryData {
|
|
40
38
|
status: IHistoryStatusDataType | null;
|
|
41
39
|
data: string;
|
|
@@ -3,13 +3,8 @@ import * as IShared from "../../../shared/interface";
|
|
|
3
3
|
export type Entity = UnitOfMeasure;
|
|
4
4
|
export declare const Route = "unit_of_measure";
|
|
5
5
|
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "">;
|
|
8
6
|
export type IFindRequest = Record<string, unknown>;
|
|
9
7
|
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
10
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
11
|
-
}
|
|
12
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
13
8
|
export interface ICreateRequest {
|
|
14
9
|
name: string;
|
|
15
10
|
notation: string;
|
|
@@ -27,11 +22,7 @@ export interface IUpdateRequest {
|
|
|
27
22
|
divisible?: boolean;
|
|
28
23
|
}
|
|
29
24
|
export interface IRepository {
|
|
30
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
31
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
32
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
33
25
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
34
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
35
26
|
create(data: ICreateRequest): Promise<Entity>;
|
|
36
27
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
37
28
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
@@ -3,13 +3,8 @@ import * as IShared from "../../../shared/interface";
|
|
|
3
3
|
export type Entity = VatTax;
|
|
4
4
|
export declare const Route = "vat_tax";
|
|
5
5
|
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "">;
|
|
8
6
|
export type IFindRequest = Record<string, unknown>;
|
|
9
7
|
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
10
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
11
|
-
}
|
|
12
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
13
8
|
export interface ICreateRequest {
|
|
14
9
|
name: string;
|
|
15
10
|
saft_code: string;
|
|
@@ -19,11 +14,7 @@ export interface IUpdateRequest {
|
|
|
19
14
|
saft_code?: string;
|
|
20
15
|
}
|
|
21
16
|
export interface IRepository {
|
|
22
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
23
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
24
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
25
17
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
26
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
27
18
|
create(data: ICreateRequest): Promise<Entity>;
|
|
28
19
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
29
20
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
@@ -5,13 +5,8 @@ export declare const Route = "vat_tax_zone";
|
|
|
5
5
|
interface IFindDetailedResponse extends Entity {
|
|
6
6
|
vat_tax: VatTax;
|
|
7
7
|
}
|
|
8
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "vat_tax">;
|
|
9
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "vat_tax">;
|
|
10
8
|
export type IFindRequest = Record<string, unknown>;
|
|
11
9
|
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
12
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
13
|
-
}
|
|
14
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "vat_tax">>;
|
|
15
10
|
export interface ICreateRequest {
|
|
16
11
|
name: string;
|
|
17
12
|
value: number;
|
|
@@ -27,11 +22,7 @@ export interface IUpdateRequest {
|
|
|
27
22
|
saft_code?: string;
|
|
28
23
|
}
|
|
29
24
|
export interface IRepository {
|
|
30
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
31
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
32
|
-
findMinified(selector: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
33
25
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
34
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
35
26
|
create(data: ICreateRequest): Promise<IFindResponse>;
|
|
36
27
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindResponse | null>;
|
|
37
28
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindResponse | null>;
|
|
@@ -1,28 +1,6 @@
|
|
|
1
|
-
import { DocumentHeader, Payment } from "../../../shared/entities/stock";
|
|
2
1
|
import * as IShared from "../../../shared/interface";
|
|
3
|
-
import * as IObservation from "../../integration/observation/interfaces";
|
|
4
2
|
import { type ICreateFromHeaderRequest } from "../documentHeader/interfaces";
|
|
5
|
-
export type Entity = Payment;
|
|
6
3
|
export declare const Route = "current_account";
|
|
7
|
-
type IEntityExtended = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IEntityExtended, "">;
|
|
9
|
-
export type IFindByOwnerIdResponse = Omit<IEntityExtended, "">;
|
|
10
|
-
export type IFindRequest = Record<string, unknown>;
|
|
11
|
-
export type IFindResponse = Omit<IEntityExtended, "">;
|
|
12
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
13
|
-
}
|
|
14
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IEntityExtended, "">>;
|
|
15
|
-
export interface ICreateForThisDocumentHeaderRequest {
|
|
16
|
-
date: Date;
|
|
17
|
-
debit: number;
|
|
18
|
-
credit: number;
|
|
19
|
-
payment_method_id?: string | null;
|
|
20
|
-
payment_method?: string | null;
|
|
21
|
-
notes: string | null;
|
|
22
|
-
}
|
|
23
|
-
export interface ICreateRequest extends ICreateForThisDocumentHeaderRequest {
|
|
24
|
-
document_header_id: string;
|
|
25
|
-
}
|
|
26
4
|
export interface ICurrentAccountNotes {
|
|
27
5
|
date: string;
|
|
28
6
|
credit: number | null;
|
|
@@ -32,12 +10,20 @@ export interface ICurrentAccountNotes {
|
|
|
32
10
|
payment_method: string | null;
|
|
33
11
|
notes: string | null;
|
|
34
12
|
owner_name: string;
|
|
13
|
+
owner_id: string | null;
|
|
14
|
+
owner_href: string | null;
|
|
35
15
|
created_at: string;
|
|
36
16
|
created_by: string;
|
|
37
17
|
updated_at: string;
|
|
38
18
|
updated_by: string;
|
|
39
19
|
}
|
|
20
|
+
export interface ICurrentAccountAffected {
|
|
21
|
+
document_header_id: string;
|
|
22
|
+
document_name: string;
|
|
23
|
+
href: string | null;
|
|
24
|
+
}
|
|
40
25
|
export interface IFindCurrentAccountByOwnerIdResponse {
|
|
26
|
+
id: string;
|
|
41
27
|
payment_date: string;
|
|
42
28
|
emission_date: string;
|
|
43
29
|
document_description: string;
|
|
@@ -49,77 +35,13 @@ export interface IFindCurrentAccountByOwnerIdResponse {
|
|
|
49
35
|
balance: number;
|
|
50
36
|
saldo_a_data: number;
|
|
51
37
|
href?: string | null;
|
|
52
|
-
|
|
53
|
-
export interface IUnpaidPurchasesRequest {
|
|
54
|
-
provider_id: string;
|
|
55
|
-
client_id: string | null;
|
|
56
|
-
}
|
|
57
|
-
export interface IUnpaidByDatePurchasesRequest {
|
|
58
|
-
due_date: Date;
|
|
59
|
-
}
|
|
60
|
-
export type IPaymentOrigin = "CC Fornecedor" | "CC Cliente" | "CC Fornecedor (Descontinuado)" | "CC Cliente (Descontinuado)";
|
|
61
|
-
export interface IUnpaidPurchasesResponse extends Pick<Entity, "date" | "debit" | "credit"> {
|
|
62
|
-
document_header: Pick<DocumentHeader, "emission_date" | "pdf_link" | "id">;
|
|
63
|
-
origin: IPaymentOrigin;
|
|
64
|
-
document_type_code: string | null;
|
|
65
|
-
document_name: string;
|
|
66
|
-
user?: {
|
|
67
|
-
user_name: string;
|
|
68
|
-
provider_id: string;
|
|
69
|
-
client_id?: string | null;
|
|
70
|
-
};
|
|
71
|
-
maturity_days: number;
|
|
72
|
-
observations: IObservation.IFindByOwnerResponse[];
|
|
73
|
-
}
|
|
74
|
-
export interface IPaymentsNotExportedRequest {
|
|
75
|
-
whiteList?: string[];
|
|
76
|
-
}
|
|
77
|
-
export interface IPaymentsNotExportedResponse {
|
|
78
|
-
iban: string;
|
|
79
|
-
payment_ids: string[];
|
|
80
|
-
npf_dh: {
|
|
81
|
-
id: string;
|
|
82
|
-
name: string;
|
|
83
|
-
pdf_link: string | null;
|
|
84
|
-
total: number;
|
|
85
|
-
}[];
|
|
86
|
-
provider: string;
|
|
87
|
-
value: number;
|
|
88
|
-
}
|
|
89
|
-
export interface IExportPaymentsRequest {
|
|
90
|
-
provider: string;
|
|
91
|
-
value: number;
|
|
92
|
-
npf_ids?: string[];
|
|
93
|
-
}
|
|
94
|
-
export type IBatchType = "national" | "international" | "null";
|
|
95
|
-
export interface IPaymentsBatchNpfDh {
|
|
96
|
-
id: string;
|
|
97
|
-
name: string;
|
|
98
|
-
sent: string | null;
|
|
99
|
-
owner_id: string;
|
|
100
|
-
owner_number: number;
|
|
101
|
-
owner_name: string;
|
|
102
|
-
external_document_header_id: string | null;
|
|
103
|
-
pdf_link: string | null;
|
|
104
|
-
total: number;
|
|
105
|
-
}
|
|
106
|
-
export interface IPaymentsBatchResponse {
|
|
107
|
-
batch_id: string;
|
|
108
|
-
batch_value: number;
|
|
109
|
-
batch_type: IBatchType | null;
|
|
110
|
-
multimedia_id: string | null;
|
|
111
|
-
times_downloaded: number;
|
|
112
|
-
npf_dh: IPaymentsBatchNpfDh[];
|
|
113
|
-
updated_at: Date;
|
|
114
|
-
updated_by: string;
|
|
115
|
-
created_at: Date;
|
|
38
|
+
affected: ICurrentAccountAffected[];
|
|
116
39
|
}
|
|
117
40
|
export declare const IExportCurrentAccountOutputEnum: {
|
|
118
41
|
csv: "csv";
|
|
119
42
|
pdf: "pdf";
|
|
120
43
|
};
|
|
121
44
|
export type IExportCurrentAccountOutput = (typeof IExportCurrentAccountOutputEnum)[keyof typeof IExportCurrentAccountOutputEnum];
|
|
122
|
-
export declare const IExportCurrentAccountOutputOptions: string[];
|
|
123
45
|
export interface IExportCurrentAccountRequest {
|
|
124
46
|
token: string;
|
|
125
47
|
owner_id: string;
|
|
@@ -144,4 +66,3 @@ export interface IRepository {
|
|
|
144
66
|
findClientUnpaidDebit(params: IShared.IFindByOwnerIdRequest): Promise<IDocumentResponse[]>;
|
|
145
67
|
}
|
|
146
68
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
147
|
-
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DocumentHeaderHistory } from "../../../shared/entities/stock";
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
|
-
export type Entity = DocumentHeaderHistory;
|
|
4
3
|
export declare const Route = "document_header_history";
|
|
5
4
|
export type IFindByOwnerIdResponse = Omit<DocumentHeaderHistory, "id" | "document_header_id">;
|
|
6
5
|
export interface IRepository {
|
|
@@ -2,8 +2,6 @@ import Nomalism from "../../..";
|
|
|
2
2
|
import { DocumentHeaderSurvey } from "../../../shared/entities/stock";
|
|
3
3
|
export type IEntity = DocumentHeaderSurvey;
|
|
4
4
|
export declare const Route = "document_header_survey";
|
|
5
|
-
export type ICreateRequest = Pick<IEntity, "owner_id" | "document_header_id" | "persona_id">;
|
|
6
|
-
export type IResponse = IEntity;
|
|
7
5
|
export interface IFindRequest {
|
|
8
6
|
date_start: Date;
|
|
9
7
|
date_end: Date;
|
|
@@ -122,11 +122,6 @@ export interface IUpdateManyByDocumentHeaderRequest {
|
|
|
122
122
|
sent_to_provider?: boolean;
|
|
123
123
|
sent_to_client?: IWarningType;
|
|
124
124
|
}
|
|
125
|
-
export interface IUpdateLineStatesTriggerResponse {
|
|
126
|
-
document_header_id: string;
|
|
127
|
-
trigger_event: boolean;
|
|
128
|
-
broker_topic?: IShared.IBrokerTopic;
|
|
129
|
-
}
|
|
130
125
|
export interface IPrintLabelParamsRequest {
|
|
131
126
|
document_line_ids: string;
|
|
132
127
|
}
|
|
@@ -5,15 +5,8 @@ export declare const Route = "document_set";
|
|
|
5
5
|
export interface ICreateRequest {
|
|
6
6
|
name: string;
|
|
7
7
|
}
|
|
8
|
-
export interface IUpdateRequest {
|
|
9
|
-
name?: string;
|
|
10
|
-
}
|
|
11
8
|
export interface IRepository {
|
|
12
|
-
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
13
|
-
find(): Promise<Entity[]>;
|
|
14
9
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
15
10
|
create(data: ICreateRequest): Promise<Entity>;
|
|
16
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
17
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
18
11
|
}
|
|
19
12
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -10,7 +10,6 @@ export declare const DocumentTypeUserTypeEnum: {
|
|
|
10
10
|
self: "self";
|
|
11
11
|
};
|
|
12
12
|
export type IDocumentTypeUserType = (typeof DocumentTypeUserTypeEnum)[keyof typeof DocumentTypeUserTypeEnum];
|
|
13
|
-
export declare const documentTypeUserTypes: string[];
|
|
14
13
|
export declare const DocumentTypeCodeTypeEnum: {
|
|
15
14
|
PC: "PC";
|
|
16
15
|
FTPF: "FTPF";
|
|
@@ -84,7 +83,6 @@ export declare const DocumentTypeCodeTypeEnum: {
|
|
|
84
83
|
CAT: "CAT";
|
|
85
84
|
};
|
|
86
85
|
export type IDocumentTypeCodeType = (typeof DocumentTypeCodeTypeEnum)[keyof typeof DocumentTypeCodeTypeEnum];
|
|
87
|
-
export declare const documentTypeCodeTypes: string[];
|
|
88
86
|
export interface IEntityExtended extends DocumentType {
|
|
89
87
|
external_document_type: ExternalDocumentType | null;
|
|
90
88
|
}
|
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
import { ExternalDocumentType } from "../../../shared/entities/stock";
|
|
2
|
-
import * as IShared from "../../../shared/interface";
|
|
3
2
|
export type Entity = ExternalDocumentType;
|
|
4
|
-
export declare const Route = "external_document_type";
|
|
5
|
-
export interface IRepository {
|
|
6
|
-
find(): Promise<Entity[]>;
|
|
7
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
8
|
-
}
|
|
9
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -5,8 +5,6 @@ import * as IUser from "../../user/users/interface";
|
|
|
5
5
|
export type Entity = Payment;
|
|
6
6
|
export declare const Route = "payment";
|
|
7
7
|
export type IEntityExtended = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IEntityExtended, "">;
|
|
9
|
-
export type IFindByOwnerIdResponse = Omit<IEntityExtended, "">;
|
|
10
8
|
export type IFindRequest = Record<string, unknown>;
|
|
11
9
|
export type IFindResponse = Omit<IEntityExtended, "">;
|
|
12
10
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
@@ -26,6 +24,7 @@ export interface ICreateRequest extends ICreateForThisDocumentHeaderRequest {
|
|
|
26
24
|
export interface IUnpaidPurchasesRequest {
|
|
27
25
|
provider_id: string;
|
|
28
26
|
client_id: string | null;
|
|
27
|
+
include_internal_regularization?: boolean;
|
|
29
28
|
}
|
|
30
29
|
export interface IUnpaidByDatePurchasesRequest {
|
|
31
30
|
due_date: Date;
|
|
@@ -46,11 +45,9 @@ export interface IUnpaidPurchasesResponse extends Pick<Entity, "date" | "debit"
|
|
|
46
45
|
};
|
|
47
46
|
maturity_days: number;
|
|
48
47
|
observations: IObservation.IFindByOwnerResponse[];
|
|
48
|
+
internal_regularization?: boolean;
|
|
49
49
|
}
|
|
50
50
|
export interface IRepository {
|
|
51
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
52
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
53
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
54
51
|
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
55
52
|
findSettledMaterialEntrance(params: IUnpaidPurchasesRequest): Promise<IUnpaidPurchasesResponse[]>;
|
|
56
53
|
findSettledMaterialEntranceByDate(params: IUnpaidByDatePurchasesRequest): Promise<IUnpaidPurchasesResponse[]>;
|