@nomalism-com/types 0.34.35 → 0.34.37
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 +7 -1
- package/dist/index.js +7 -1
- package/dist/modules/document/order/interfaces.d.ts +2 -0
- package/dist/shared/interface.d.ts +2 -0
- package/package.json +1 -1
- package/src/modules/document/order/interfaces.ts +2 -0
- package/src/modules/document/order/route.schema.ts +13 -0
- package/src/shared/interface.ts +2 -0
package/dist/index.cjs
CHANGED
|
@@ -4794,7 +4794,13 @@ var undoProviderOrderBodyKeys = {
|
|
|
4794
4794
|
var undoProviderOrderBody = joi87.object().keys(undoProviderOrderBodyKeys).messages(messages);
|
|
4795
4795
|
var conferirEncomendaClienteBody = joi87.object().keys({
|
|
4796
4796
|
option: joi87.string().valid(...conferirEncomendaClienteOptions).required(),
|
|
4797
|
-
document_line_ids: joi87.array().items(joi87.string().uuid().required()).required()
|
|
4797
|
+
document_line_ids: joi87.array().items(joi87.string().uuid().required()).required(),
|
|
4798
|
+
uploads: joi87.array().items(
|
|
4799
|
+
joi87.object().keys({
|
|
4800
|
+
title: joi87.string().required(),
|
|
4801
|
+
multimedia_id: joi87.string().uuid().required()
|
|
4802
|
+
}).required()
|
|
4803
|
+
).required()
|
|
4798
4804
|
}).messages(messages);
|
|
4799
4805
|
var setProviderBodyKeys = {
|
|
4800
4806
|
document_line_assoc_ids: joi87.array().items(joi87.string().uuid().required()).required(),
|
package/dist/index.js
CHANGED
|
@@ -4794,7 +4794,13 @@ var undoProviderOrderBodyKeys = {
|
|
|
4794
4794
|
var undoProviderOrderBody = joi87.object().keys(undoProviderOrderBodyKeys).messages(messages);
|
|
4795
4795
|
var conferirEncomendaClienteBody = joi87.object().keys({
|
|
4796
4796
|
option: joi87.string().valid(...conferirEncomendaClienteOptions).required(),
|
|
4797
|
-
document_line_ids: joi87.array().items(joi87.string().uuid().required()).required()
|
|
4797
|
+
document_line_ids: joi87.array().items(joi87.string().uuid().required()).required(),
|
|
4798
|
+
uploads: joi87.array().items(
|
|
4799
|
+
joi87.object().keys({
|
|
4800
|
+
title: joi87.string().required(),
|
|
4801
|
+
multimedia_id: joi87.string().uuid().required()
|
|
4802
|
+
}).required()
|
|
4803
|
+
).required()
|
|
4798
4804
|
}).messages(messages);
|
|
4799
4805
|
var setProviderBodyKeys = {
|
|
4800
4806
|
document_line_assoc_ids: joi87.array().items(joi87.string().uuid().required()).required(),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { File } from '../../../shared/entities/stock';
|
|
1
2
|
import * as IShared from '../../../shared/interface';
|
|
2
3
|
export declare const Route = "order";
|
|
3
4
|
export declare const UpperName = "Order";
|
|
@@ -46,6 +47,7 @@ export declare const conferirEncomendaClienteOptions: string[];
|
|
|
46
47
|
export interface IConferirEncomendaClienteRequest {
|
|
47
48
|
option: IConferirEncomendaClienteOptions;
|
|
48
49
|
document_line_ids: string[];
|
|
50
|
+
uploads: Pick<File, 'title' | 'multimedia_id'>[];
|
|
49
51
|
}
|
|
50
52
|
export interface IConferirEncomendaClienteResponse {
|
|
51
53
|
document_line_id: string;
|
|
@@ -8,6 +8,7 @@ import type { IWarningType } from '../modules/supply/documentHeader/interfaces';
|
|
|
8
8
|
import type { IProjectInfoType } from '../modules/integration/projectInfo/interfaces';
|
|
9
9
|
import type { IChat, IEmail, IEncomenda, IMultimedia, IMultimediaSummary, IPostgresBackup, IPrint, IProjectInfo, IProposta, IServiceLogs, IServiceStatus, IStock, ITask } from '../modules/view/adminPanel/interfaces';
|
|
10
10
|
import type * as ErrorLog from '../modules/view/errorLog/interfaces';
|
|
11
|
+
import type { File } from './entities/stock';
|
|
11
12
|
export { messages };
|
|
12
13
|
type CreatedAt = 'created_at';
|
|
13
14
|
type UpdatedAt = 'updated_at';
|
|
@@ -251,6 +252,7 @@ export type IBrokerTopicPayload = {
|
|
|
251
252
|
pf_number: string;
|
|
252
253
|
provider_name: string;
|
|
253
254
|
provider_email: string;
|
|
255
|
+
attachments: Pick<File, 'title' | 'multimedia_id'>[];
|
|
254
256
|
};
|
|
255
257
|
[IBrokerTopic.undo_provider_order_schedule_email]: {
|
|
256
258
|
provider_id: string;
|
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { File } from '../../../shared/entities/stock';
|
|
1
2
|
import * as IShared from '../../../shared/interface';
|
|
2
3
|
|
|
3
4
|
export const Route = 'order';
|
|
@@ -88,6 +89,7 @@ export const conferirEncomendaClienteOptions = Object.keys(ConferirEncomendaClie
|
|
|
88
89
|
export interface IConferirEncomendaClienteRequest {
|
|
89
90
|
option: IConferirEncomendaClienteOptions;
|
|
90
91
|
document_line_ids: string[];
|
|
92
|
+
uploads: Pick<File, 'title' | 'multimedia_id'>[];
|
|
91
93
|
}
|
|
92
94
|
|
|
93
95
|
export interface IConferirEncomendaClienteResponse {
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
IFindRequest,
|
|
11
11
|
IFindByIdsRequest,
|
|
12
12
|
} from './interfaces';
|
|
13
|
+
import { File } from '../../../shared/entities/stock';
|
|
13
14
|
|
|
14
15
|
const undoProviderOrderBodyKeys: IShared.IRouteRequest<IUndoProviderOrderRequest> = {
|
|
15
16
|
document_line_ids: joi.array().items(joi.string().uuid().required()).required(),
|
|
@@ -28,6 +29,18 @@ export const conferirEncomendaClienteBody = joi
|
|
|
28
29
|
.valid(...conferirEncomendaClienteOptions)
|
|
29
30
|
.required(),
|
|
30
31
|
document_line_ids: joi.array().items(joi.string().uuid().required()).required(),
|
|
32
|
+
uploads: joi
|
|
33
|
+
.array()
|
|
34
|
+
.items(
|
|
35
|
+
joi
|
|
36
|
+
.object<Pick<File, 'title' | 'multimedia_id'>>()
|
|
37
|
+
.keys({
|
|
38
|
+
title: joi.string().required(),
|
|
39
|
+
multimedia_id: joi.string().uuid().required(),
|
|
40
|
+
})
|
|
41
|
+
.required(),
|
|
42
|
+
)
|
|
43
|
+
.required(),
|
|
31
44
|
})
|
|
32
45
|
.messages(messages);
|
|
33
46
|
|
package/src/shared/interface.ts
CHANGED
|
@@ -25,6 +25,7 @@ import type {
|
|
|
25
25
|
ITask,
|
|
26
26
|
} from '../modules/view/adminPanel/interfaces';
|
|
27
27
|
import type * as ErrorLog from '../modules/view/errorLog/interfaces';
|
|
28
|
+
import type { File } from './entities/stock';
|
|
28
29
|
|
|
29
30
|
export { messages };
|
|
30
31
|
|
|
@@ -401,6 +402,7 @@ export type IBrokerTopicPayload = {
|
|
|
401
402
|
pf_number: string;
|
|
402
403
|
provider_name: string;
|
|
403
404
|
provider_email: string;
|
|
405
|
+
attachments: Pick<File, 'title' | 'multimedia_id'>[];
|
|
404
406
|
};
|
|
405
407
|
[IBrokerTopic.undo_provider_order_schedule_email]: {
|
|
406
408
|
provider_id: string;
|