@nomalism-com/types 0.45.23 → 0.45.25
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
|
@@ -2859,8 +2859,7 @@ __export(route_schema_exports40, {
|
|
|
2859
2859
|
});
|
|
2860
2860
|
import joi41 from "joi";
|
|
2861
2861
|
var refreshTokenBodyKeys = {
|
|
2862
|
-
token: joi41.string()
|
|
2863
|
-
ip: joi41.string()
|
|
2862
|
+
token: joi41.string()
|
|
2864
2863
|
};
|
|
2865
2864
|
var refreshTokenBody = joi41.object().keys(refreshTokenBodyKeys).messages(messages);
|
|
2866
2865
|
|
|
@@ -4884,6 +4883,7 @@ __export(route_schema_exports92, {
|
|
|
4884
4883
|
findByRef: () => findByRef,
|
|
4885
4884
|
findForMobileQuery: () => findForMobileQuery,
|
|
4886
4885
|
findProductSheetByReferenceQuery: () => findProductSheetByReferenceQuery,
|
|
4886
|
+
printLabelBulkQuery: () => printLabelBulkQuery,
|
|
4887
4887
|
printLabelQuery: () => printLabelQuery3,
|
|
4888
4888
|
productLocationBody: () => productLocationBody,
|
|
4889
4889
|
updateBody: () => updateBody50,
|
|
@@ -4894,6 +4894,10 @@ var printLabelQueryKeys3 = {
|
|
|
4894
4894
|
token: joi93.string().required()
|
|
4895
4895
|
};
|
|
4896
4896
|
var printLabelQuery3 = joi93.object().keys(printLabelQueryKeys3).messages(messages);
|
|
4897
|
+
var printLabelBulkQuery = joi93.object().keys({
|
|
4898
|
+
ids: joi93.string().required(),
|
|
4899
|
+
token: joi93.string().required()
|
|
4900
|
+
}).required();
|
|
4897
4901
|
var checkStockByIdsBody = joi93.object().keys({ ids: joi93.array().items(joi93.string().uuid().required()).required() }).messages(messages);
|
|
4898
4902
|
var basicSearchQueryKeys2 = {
|
|
4899
4903
|
per_page: joi93.number().integer().positive().default(10).optional(),
|
package/dist/index.js
CHANGED
|
@@ -2859,8 +2859,7 @@ __export(route_schema_exports40, {
|
|
|
2859
2859
|
});
|
|
2860
2860
|
import joi41 from "joi";
|
|
2861
2861
|
var refreshTokenBodyKeys = {
|
|
2862
|
-
token: joi41.string()
|
|
2863
|
-
ip: joi41.string()
|
|
2862
|
+
token: joi41.string()
|
|
2864
2863
|
};
|
|
2865
2864
|
var refreshTokenBody = joi41.object().keys(refreshTokenBodyKeys).messages(messages);
|
|
2866
2865
|
|
|
@@ -4884,6 +4883,7 @@ __export(route_schema_exports92, {
|
|
|
4884
4883
|
findByRef: () => findByRef,
|
|
4885
4884
|
findForMobileQuery: () => findForMobileQuery,
|
|
4886
4885
|
findProductSheetByReferenceQuery: () => findProductSheetByReferenceQuery,
|
|
4886
|
+
printLabelBulkQuery: () => printLabelBulkQuery,
|
|
4887
4887
|
printLabelQuery: () => printLabelQuery3,
|
|
4888
4888
|
productLocationBody: () => productLocationBody,
|
|
4889
4889
|
updateBody: () => updateBody50,
|
|
@@ -4894,6 +4894,10 @@ var printLabelQueryKeys3 = {
|
|
|
4894
4894
|
token: joi93.string().required()
|
|
4895
4895
|
};
|
|
4896
4896
|
var printLabelQuery3 = joi93.object().keys(printLabelQueryKeys3).messages(messages);
|
|
4897
|
+
var printLabelBulkQuery = joi93.object().keys({
|
|
4898
|
+
ids: joi93.string().required(),
|
|
4899
|
+
token: joi93.string().required()
|
|
4900
|
+
}).required();
|
|
4897
4901
|
var checkStockByIdsBody = joi93.object().keys({ ids: joi93.array().items(joi93.string().uuid().required()).required() }).messages(messages);
|
|
4898
4902
|
var basicSearchQueryKeys2 = {
|
|
4899
4903
|
per_page: joi93.number().integer().positive().default(10).optional(),
|
|
@@ -146,6 +146,10 @@ export interface IEntityMinified {
|
|
|
146
146
|
export interface IPrintLabelQueryRequest {
|
|
147
147
|
token: string;
|
|
148
148
|
}
|
|
149
|
+
export interface IPrintLabelBulkQueryRequest {
|
|
150
|
+
token: string;
|
|
151
|
+
ids: string;
|
|
152
|
+
}
|
|
149
153
|
export interface IFindByReferenceRequest {
|
|
150
154
|
reference: string;
|
|
151
155
|
allowProviderWildcard?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import joi from 'joi';
|
|
2
|
-
import { IFindForMobileRequest, ICheckStockByIdsRequest, IFindProductSheetByReference, IProductLocation } from './interface';
|
|
2
|
+
import { IFindForMobileRequest, ICheckStockByIdsRequest, IFindProductSheetByReference, IProductLocation, type IPrintLabelBulkQueryRequest } from './interface';
|
|
3
3
|
export declare const printLabelQuery: joi.ObjectSchema<any>;
|
|
4
|
+
export declare const printLabelBulkQuery: joi.ObjectSchema<IPrintLabelBulkQueryRequest>;
|
|
4
5
|
export declare const checkStockByIdsBody: joi.ObjectSchema<ICheckStockByIdsRequest>;
|
|
5
6
|
export declare const basicSearchQuery: joi.ObjectSchema<any>;
|
|
6
7
|
export declare const findByRef: joi.ObjectSchema<any>;
|
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.25",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@swc/core": "^1.15.40",
|
|
33
33
|
"@types/node": "^24.12.4",
|
|
34
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
35
|
-
"@typescript-eslint/parser": "^8.
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^8.60.0",
|
|
35
|
+
"@typescript-eslint/parser": "^8.60.0",
|
|
36
36
|
"eslint": "^9.39.4",
|
|
37
37
|
"eslint-config-prettier": "^10.1.8",
|
|
38
38
|
"eslint-import-resolver-typescript": "^4.4.4",
|