@nomalism-com/types 0.40.20 → 0.40.22
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 +4 -2
- package/dist/index.js +4 -2
- package/dist/modules/stock/prison/interface.d.ts +4 -1
- package/dist/modules/stock/productGoogleSheets/interface.d.ts +2 -1
- package/dist/modules/supply/documentLine/route.schema.d.ts +2 -2
- package/dist/shared/interface.d.ts +6 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5159,12 +5159,14 @@ var LowerName89 = UpperName89[0].toLowerCase() + UpperName89.substring(1);
|
|
|
5159
5159
|
var ProductStateEnum = {
|
|
5160
5160
|
Ativa: "Ativa",
|
|
5161
5161
|
NaoVemMais: "NaoVemMais",
|
|
5162
|
-
VemTemporariamente: "VemTemporariamente"
|
|
5162
|
+
VemTemporariamente: "VemTemporariamente",
|
|
5163
|
+
DescontinuadoFabrica: "DescontinuadoFabrica"
|
|
5163
5164
|
};
|
|
5164
5165
|
var ProductStateLabels = {
|
|
5165
5166
|
Ativa: "Ativa",
|
|
5166
5167
|
NaoVemMais: "Nao Vem Mais",
|
|
5167
|
-
VemTemporariamente: "Vem Temporariamente"
|
|
5168
|
+
VemTemporariamente: "Vem Temporariamente",
|
|
5169
|
+
DescontinuadoFabrica: "DescontinuadoFabrica"
|
|
5168
5170
|
};
|
|
5169
5171
|
var productState = Object.keys(ProductStateEnum);
|
|
5170
5172
|
var ProductTypeEnum = {
|
package/dist/index.js
CHANGED
|
@@ -5159,12 +5159,14 @@ var LowerName89 = UpperName89[0].toLowerCase() + UpperName89.substring(1);
|
|
|
5159
5159
|
var ProductStateEnum = {
|
|
5160
5160
|
Ativa: "Ativa",
|
|
5161
5161
|
NaoVemMais: "NaoVemMais",
|
|
5162
|
-
VemTemporariamente: "VemTemporariamente"
|
|
5162
|
+
VemTemporariamente: "VemTemporariamente",
|
|
5163
|
+
DescontinuadoFabrica: "DescontinuadoFabrica"
|
|
5163
5164
|
};
|
|
5164
5165
|
var ProductStateLabels = {
|
|
5165
5166
|
Ativa: "Ativa",
|
|
5166
5167
|
NaoVemMais: "Nao Vem Mais",
|
|
5167
|
-
VemTemporariamente: "Vem Temporariamente"
|
|
5168
|
+
VemTemporariamente: "Vem Temporariamente",
|
|
5169
|
+
DescontinuadoFabrica: "DescontinuadoFabrica"
|
|
5168
5170
|
};
|
|
5169
5171
|
var productState = Object.keys(ProductStateEnum);
|
|
5170
5172
|
var ProductTypeEnum = {
|
|
@@ -29,6 +29,9 @@ export interface ICheckLinesInPrisonRequest {
|
|
|
29
29
|
option: ICheckLineInPrisonOptions;
|
|
30
30
|
lines: ICheckLinesInPrisonLinesRequest[];
|
|
31
31
|
}
|
|
32
|
+
export interface ICheckLinesInPrisonResponse {
|
|
33
|
+
df_dh_id?: string;
|
|
34
|
+
}
|
|
32
35
|
export interface ICreateLinesInPrisonProduct {
|
|
33
36
|
id: string;
|
|
34
37
|
quantity: number;
|
|
@@ -43,7 +46,7 @@ export interface IRepository {
|
|
|
43
46
|
findLinesInPrisonProviders(): Promise<IShared.IFindMinifiedResponse[]>;
|
|
44
47
|
putLineInPrison(params: IShared.IFindByIdRequest): Promise<void>;
|
|
45
48
|
removeLineFromPrison(params: IShared.IFindByIdRequest): Promise<void>;
|
|
46
|
-
checkLinesInPrison(params: ICheckLinesInPrisonRequest): Promise<
|
|
49
|
+
checkLinesInPrison(params: ICheckLinesInPrisonRequest): Promise<ICheckLinesInPrisonResponse>;
|
|
47
50
|
createLinesInPrison(params: ICreateLinesInPrisonRequest): Promise<string[]>;
|
|
48
51
|
}
|
|
49
52
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -10,11 +10,12 @@ export type IProductBaseVirtuals = ProductBaseVirtuals;
|
|
|
10
10
|
export type Entity = ProductSheet;
|
|
11
11
|
export type IProductsForSheetsResponse = Record<string, any>;
|
|
12
12
|
export type IProductFromSheetsValues = Record<string, any>;
|
|
13
|
-
export type IProductSheetState = 'Ativa' | 'NaoVemMais' | 'VemTemporariamente';
|
|
13
|
+
export type IProductSheetState = 'Ativa' | 'NaoVemMais' | 'VemTemporariamente' | 'DescontinuadoFabrica';
|
|
14
14
|
export declare const ProductStateEnum: {
|
|
15
15
|
Ativa: 'Ativa';
|
|
16
16
|
NaoVemMais: 'NaoVemMais';
|
|
17
17
|
VemTemporariamente: 'VemTemporariamente';
|
|
18
|
+
DescontinuadoFabrica: 'DescontinuadoFabrica';
|
|
18
19
|
};
|
|
19
20
|
export declare const ProductStateLabels: Record<keyof typeof ProductStateEnum, string>;
|
|
20
21
|
export type IProductState = (typeof ProductStateEnum)[keyof typeof ProductStateEnum];
|
|
@@ -3,7 +3,7 @@ export declare const createBody: joi.ArraySchema<any[]>;
|
|
|
3
3
|
export declare const updateBody: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const updateDataBody: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const updateManyBody: joi.ObjectSchema<any>;
|
|
6
|
-
export declare const updateIndexesBody: joi.ArraySchema<
|
|
7
|
-
export declare const deleteBody: joi.ArraySchema<
|
|
6
|
+
export declare const updateIndexesBody: joi.ArraySchema<string[]>;
|
|
7
|
+
export declare const deleteBody: joi.ArraySchema<string[]>;
|
|
8
8
|
export declare const printLabelParams: joi.ObjectSchema<any>;
|
|
9
9
|
export declare const printLabelQuery: joi.ObjectSchema<any>;
|
|
@@ -118,7 +118,12 @@ export declare const findByOwnerIdQueryKeys: IRouteRequest<IFindByOwnerIdRequest
|
|
|
118
118
|
export declare const findByOwnerIdQuery: joi.ObjectSchema<any>;
|
|
119
119
|
export declare const idParam: joi.ObjectSchema<any>;
|
|
120
120
|
export declare const idNumberParam: joi.ObjectSchema<any>;
|
|
121
|
-
export declare const findMinifiedReponse: joi.ArraySchema<
|
|
121
|
+
export declare const findMinifiedReponse: joi.ArraySchema<{
|
|
122
|
+
name: unknown;
|
|
123
|
+
id: unknown;
|
|
124
|
+
group: unknown;
|
|
125
|
+
multimedia_id: unknown;
|
|
126
|
+
}[]>;
|
|
122
127
|
export declare const joiValidateStamps: IRouteResponseWithoutStamps<WithTimestampsOriginID>;
|
|
123
128
|
export declare const IUserSendEmailDocumentTemplateEnum: {
|
|
124
129
|
generic: 'generic';
|
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.40.
|
|
4
|
+
"version": "0.40.22",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|