@nomalism-com/types 0.45.48 → 0.45.49
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
CHANGED
|
@@ -1905,8 +1905,8 @@ __export(route_schema_exports17, {
|
|
|
1905
1905
|
printLabelParams: () => printLabelParams,
|
|
1906
1906
|
printLabelQuery: () => printLabelQuery,
|
|
1907
1907
|
updateBody: () => updateBody9,
|
|
1908
|
-
|
|
1909
|
-
|
|
1908
|
+
updateManyBody: () => updateManyBody,
|
|
1909
|
+
updateManyByDocumentHeaderBody: () => updateManyByDocumentHeaderBody
|
|
1910
1910
|
});
|
|
1911
1911
|
import joi18 from "joi";
|
|
1912
1912
|
var createBodyKeys10 = {
|
|
@@ -1959,7 +1959,6 @@ var updateManyKeys = {
|
|
|
1959
1959
|
force_closed: joi18.boolean().optional()
|
|
1960
1960
|
};
|
|
1961
1961
|
var updateManyBody = joi18.object().keys(updateManyKeys).messages(messages);
|
|
1962
|
-
var updateIndexesBody = joi18.array().items(joi18.string().uuid().required()).required().messages(messages);
|
|
1963
1962
|
var deleteBody = joi18.array().items(joi18.string().uuid().required()).messages(messages);
|
|
1964
1963
|
var printLabelParamsKeys = {
|
|
1965
1964
|
document_line_ids: joi18.string().required()
|
|
@@ -1969,6 +1968,10 @@ var printLabelQueryKeys = {
|
|
|
1969
1968
|
token: joi18.string().required()
|
|
1970
1969
|
};
|
|
1971
1970
|
var printLabelQuery = joi18.object().keys(printLabelQueryKeys).messages(messages);
|
|
1971
|
+
var updateManyByDocumentHeaderBody = joi18.object().keys({
|
|
1972
|
+
sent_to_provider: joi18.boolean().optional(),
|
|
1973
|
+
sent_to_client: joi18.string().valid(...IWarningType).optional()
|
|
1974
|
+
});
|
|
1972
1975
|
|
|
1973
1976
|
// src/modules/supply/documentLineAssoc/interfaces.ts
|
|
1974
1977
|
var interfaces_exports16 = {};
|
package/dist/index.js
CHANGED
|
@@ -1905,8 +1905,8 @@ __export(route_schema_exports17, {
|
|
|
1905
1905
|
printLabelParams: () => printLabelParams,
|
|
1906
1906
|
printLabelQuery: () => printLabelQuery,
|
|
1907
1907
|
updateBody: () => updateBody9,
|
|
1908
|
-
|
|
1909
|
-
|
|
1908
|
+
updateManyBody: () => updateManyBody,
|
|
1909
|
+
updateManyByDocumentHeaderBody: () => updateManyByDocumentHeaderBody
|
|
1910
1910
|
});
|
|
1911
1911
|
import joi18 from "joi";
|
|
1912
1912
|
var createBodyKeys10 = {
|
|
@@ -1959,7 +1959,6 @@ var updateManyKeys = {
|
|
|
1959
1959
|
force_closed: joi18.boolean().optional()
|
|
1960
1960
|
};
|
|
1961
1961
|
var updateManyBody = joi18.object().keys(updateManyKeys).messages(messages);
|
|
1962
|
-
var updateIndexesBody = joi18.array().items(joi18.string().uuid().required()).required().messages(messages);
|
|
1963
1962
|
var deleteBody = joi18.array().items(joi18.string().uuid().required()).messages(messages);
|
|
1964
1963
|
var printLabelParamsKeys = {
|
|
1965
1964
|
document_line_ids: joi18.string().required()
|
|
@@ -1969,6 +1968,10 @@ var printLabelQueryKeys = {
|
|
|
1969
1968
|
token: joi18.string().required()
|
|
1970
1969
|
};
|
|
1971
1970
|
var printLabelQuery = joi18.object().keys(printLabelQueryKeys).messages(messages);
|
|
1971
|
+
var updateManyByDocumentHeaderBody = joi18.object().keys({
|
|
1972
|
+
sent_to_provider: joi18.boolean().optional(),
|
|
1973
|
+
sent_to_client: joi18.string().valid(...IWarningType).optional()
|
|
1974
|
+
});
|
|
1972
1975
|
|
|
1973
1976
|
// src/modules/supply/documentLineAssoc/interfaces.ts
|
|
1974
1977
|
var interfaces_exports16 = {};
|
|
@@ -5,6 +5,7 @@ import type { IDocumentTypeCodeType, IDocumentTypeUserType } from '../documentTy
|
|
|
5
5
|
import type { IProductType, IProductState } from '../../stock/productGoogleSheets/interface';
|
|
6
6
|
import type { IGetProductType, IGetProductGroup } from '../../integration/googleSheets/interfaces';
|
|
7
7
|
import type { IMotivosDeEsperaData } from '../../document/order/interfaces';
|
|
8
|
+
import type { IWarningType } from '../documentHeader/interfaces';
|
|
8
9
|
export type Entity = DocumentLine;
|
|
9
10
|
export declare const Route = "document_line";
|
|
10
11
|
export type IDocumentLineVirtuals = DocumentLineVirtuals;
|
|
@@ -114,7 +115,7 @@ export interface IUpdateManyRequest {
|
|
|
114
115
|
}
|
|
115
116
|
export interface IUpdateManyByDocumentHeaderRequest {
|
|
116
117
|
sent_to_provider?: boolean;
|
|
117
|
-
sent_to_client?:
|
|
118
|
+
sent_to_client?: IWarningType;
|
|
118
119
|
}
|
|
119
120
|
export interface IUpdateLineStatesTriggerResponse {
|
|
120
121
|
document_header_id: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import joi from 'joi';
|
|
2
|
+
import { IUpdateManyByDocumentHeaderRequest } from './interfaces';
|
|
2
3
|
export declare const createBody: joi.ArraySchema<any[]>;
|
|
3
4
|
export declare const updateBody: joi.ObjectSchema<any>;
|
|
4
5
|
export declare const updateManyBody: joi.ObjectSchema<any>;
|
|
5
|
-
export declare const updateIndexesBody: joi.ArraySchema<string[]>;
|
|
6
6
|
export declare const deleteBody: joi.ArraySchema<string[]>;
|
|
7
7
|
export declare const printLabelParams: joi.ObjectSchema<any>;
|
|
8
8
|
export declare const printLabelQuery: joi.ObjectSchema<any>;
|
|
9
|
+
export declare const updateManyByDocumentHeaderBody: joi.ObjectSchema<IUpdateManyByDocumentHeaderRequest>;
|
|
@@ -125,8 +125,8 @@ export declare const idNumberParam: joi.ObjectSchema<any>;
|
|
|
125
125
|
export declare const findMinifiedReponse: joi.ArraySchema<{
|
|
126
126
|
id: unknown;
|
|
127
127
|
name: unknown;
|
|
128
|
-
multimedia_id: unknown;
|
|
129
128
|
group: unknown;
|
|
129
|
+
multimedia_id: unknown;
|
|
130
130
|
}[]>;
|
|
131
131
|
export declare const joiValidateStamps: IRouteResponseWithoutStamps<WithTimestampsOriginID>;
|
|
132
132
|
export declare const IUserSendEmailDocumentTemplateEnum: {
|
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": "0.45.
|
|
4
|
+
"version": "0.45.49",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|