@nomalism-com/api 1.3.57 → 1.3.61
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 +335 -254
- package/dist/index.js +335 -254
- package/dist/main.d.ts +3 -0
- package/dist/modules/document/materialEntrance.d.ts +1 -1
- package/dist/modules/documentManagement/multimedia.d.ts +1 -1
- package/dist/modules/stock/displayLabel.d.ts +1 -1
- package/dist/modules/stock/productGoogleSheets.d.ts +2 -2
- package/dist/modules/stock/productUpdate.d.ts +14 -0
- package/dist/modules/supply/documentLine.d.ts +2 -2
- package/dist/modules/supply/paymentBatch.d.ts +1 -6
- package/dist/modules/supply/saft.d.ts +2 -6
- package/package.json +5 -5
package/dist/main.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ import PrisonClass from "./modules/stock/prison";
|
|
|
53
53
|
import ProductGoogleSheetsClass from "./modules/stock/productGoogleSheets";
|
|
54
54
|
import ProductImageClass from "./modules/stock/productImage";
|
|
55
55
|
import ProductLocationClass from "./modules/stock/productLocation";
|
|
56
|
+
import ProductUpdateClass from "./modules/stock/productUpdate";
|
|
56
57
|
import PromotionClass from "./modules/stock/promotion";
|
|
57
58
|
import QueryListClass from "./modules/stock/queryList";
|
|
58
59
|
import QueryParameterClass from "./modules/stock/queryParameter";
|
|
@@ -260,6 +261,7 @@ export * as Vehicles from "./modules/user/vehicles";
|
|
|
260
261
|
export * as AdminPanel from "./modules/view/adminPanel";
|
|
261
262
|
export * as ErrorLog from "./modules/view/errorLog";
|
|
262
263
|
export type IEnvironment = "production" | "uat" | "development" | "localhost";
|
|
264
|
+
export * as ProductUpdate from "./modules/stock/productUpdate";
|
|
263
265
|
type IService = "stock" | "users" | "integration" | "documents" | "view" | "print" | "tickets" | "llm" | "sms";
|
|
264
266
|
export interface IOptions {
|
|
265
267
|
processEnvironment: IEnvironment;
|
|
@@ -411,6 +413,7 @@ export declare class API {
|
|
|
411
413
|
SmsTemplate: SmsTemplateClass;
|
|
412
414
|
AllowedDevice: AllowedDeviceClass;
|
|
413
415
|
DisplayLabels: DisplayLabelsClass;
|
|
416
|
+
ProductUpdate: ProductUpdateClass;
|
|
414
417
|
private defaultHeaders;
|
|
415
418
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer, }: IOptions);
|
|
416
419
|
}
|
|
@@ -9,6 +9,6 @@ export default class Repository implements Nomalism.MaterialEntrance.IApi {
|
|
|
9
9
|
finalizarEntradaMaterial(data: Nomalism.MaterialEntrance.IFinalizarEntradaDeMaterialRequest): Promise<Nomalism.MaterialEntrance.IFinalizarEntradaDeMaterialResponse>;
|
|
10
10
|
undoEntradaMaterial(data: Nomalism.MaterialEntrance.IUndoEntradaDeMaterialRequest): Promise<void>;
|
|
11
11
|
findDoneById({ id, }: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.MaterialEntrance.IFindDoneByIdResponse[]>;
|
|
12
|
-
printLabelToPdfUrl({ product_id }: Nomalism.MaterialEntrance.IPrintLabelParamsRequest, { quantity, ef_name, pc_document_number, prison, note, availableStock, }: Nomalism.MaterialEntrance.
|
|
12
|
+
printLabelToPdfUrl({ product_id }: Nomalism.MaterialEntrance.IPrintLabelParamsRequest, { quantity, ef_name, pc_document_number, prison, note, availableStock, token, }: Nomalism.MaterialEntrance.IPrintLabelQueryWithTokenRequest): string;
|
|
13
13
|
printBulkLabelToPdfUrl({ groupLabel, stockOrders, notOk, clientOrders, saved_em_picking_ids, token, }: Nomalism.MaterialEntrance.IPrintBulkLabelRequest): string;
|
|
14
14
|
}
|
|
@@ -5,7 +5,7 @@ export default class Repository implements Nomalism.Multimedia.IApi {
|
|
|
5
5
|
route: string;
|
|
6
6
|
private api;
|
|
7
7
|
constructor({ api, route }: IModuleConstructor);
|
|
8
|
-
getUrl(multimediaId: string, download?:
|
|
8
|
+
getUrl(multimediaId: string, { download }?: Nomalism.Multimedia.IFindByIdRequest): string;
|
|
9
9
|
create(multipartFormData: unknown, headers?: RawAxiosRequestHeaders): Promise<Nomalism.Multimedia.Entity>;
|
|
10
10
|
update(id: string, multipartFormData: unknown, headers?: RawAxiosRequestHeaders): Promise<void>;
|
|
11
11
|
}
|
|
@@ -5,6 +5,6 @@ export default class Repository implements Nomalism.DisplayLabel.IRepository {
|
|
|
5
5
|
private api;
|
|
6
6
|
constructor({ api, route }: IModuleConstructor);
|
|
7
7
|
create(data: Nomalism.DisplayLabel.ICreateRequest): Promise<void>;
|
|
8
|
-
|
|
8
|
+
findMany(): Promise<Nomalism.DisplayLabel.IFindResponse[]>;
|
|
9
9
|
deleteMany(data: Nomalism.DisplayLabel.IDeleteManyRequest): Promise<void>;
|
|
10
10
|
}
|
|
@@ -22,8 +22,8 @@ export default class Repository implements Nomalism.ProductGoogleSheets.IReposit
|
|
|
22
22
|
create(body: Nomalism.ProductGoogleSheets.ICreateRequest): Promise<string>;
|
|
23
23
|
update({ id }: Nomalism.shared.IFindByIdRequest, body: Nomalism.ProductGoogleSheets.IUpdateRequest): Promise<void>;
|
|
24
24
|
deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<void>;
|
|
25
|
-
printLabelToPdfUrl({ id }: Nomalism.shared.IFindByIdRequest, token:
|
|
26
|
-
printLabelToPdfBulk(ids
|
|
25
|
+
printLabelToPdfUrl({ id }: Nomalism.shared.IFindByIdRequest, { token }: Nomalism.ProductGoogleSheets.IPrintLabelQueryRequest): string;
|
|
26
|
+
printLabelToPdfBulk({ ids, token, }: Nomalism.ProductGoogleSheets.IPrintLabelBulkQueryRequest): string;
|
|
27
27
|
updateDbFromSheets(): Promise<void>;
|
|
28
28
|
partialLocation(body: Nomalism.ProductGoogleSheets.IProductLocation): Promise<void>;
|
|
29
29
|
fullLocation(body: Nomalism.ProductGoogleSheets.IProductLocation): Promise<void>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as Nomalism from "@nomalism-com/types";
|
|
2
|
+
import { IModuleConstructor } from "../../main";
|
|
3
|
+
export default class Repository implements Nomalism.ProductUpdate.IRepository {
|
|
4
|
+
route: string;
|
|
5
|
+
private api;
|
|
6
|
+
constructor({ api, route }: IModuleConstructor);
|
|
7
|
+
extract(data: Nomalism.ProductUpdate.IExtractRequest): Promise<Nomalism.ProductUpdate.IExtractResponse>;
|
|
8
|
+
analyze(data: Nomalism.ProductUpdate.IAnalyzeRequest): Promise<Nomalism.ProductUpdate.IAnalyzeResponse>;
|
|
9
|
+
columns(data: Nomalism.ProductUpdate.IColumnsRequest): Promise<Nomalism.ProductUpdate.IColumnsResponse>;
|
|
10
|
+
applyUpdate(data: Nomalism.ProductUpdate.IApplyUpdateRequest): Promise<Nomalism.ProductUpdate.IApplyResponse>;
|
|
11
|
+
applyCreate(data: Nomalism.ProductUpdate.IApplyCreateRequest): Promise<Nomalism.ProductUpdate.IApplyResponse>;
|
|
12
|
+
applyDeactivate(data: Nomalism.ProductUpdate.IApplyDeactivateRequest): Promise<Nomalism.ProductUpdate.IApplyResponse>;
|
|
13
|
+
history(data: Nomalism.ProductUpdate.IHistoryRequest): Promise<Nomalism.ProductUpdate.IHistoryResponse>;
|
|
14
|
+
}
|
|
@@ -10,6 +10,6 @@ export default class Repository implements Nomalism.DocumentLine.IRepository {
|
|
|
10
10
|
updateMany(data: Nomalism.DocumentLine.IUpdateManyRequest): Promise<void>;
|
|
11
11
|
updateManyByDocumentHeader(params: Nomalism.shared.IFindByIdRequest, data: Nomalism.DocumentLine.IUpdateManyByDocumentHeaderRequest): Promise<void>;
|
|
12
12
|
deleteMany(document_line_ids: string[]): Promise<void>;
|
|
13
|
-
printLabelToPdfUrl({ document_line_ids }: Nomalism.DocumentLine.IPrintLabelParamsRequest, token:
|
|
14
|
-
printGroupLabelToPdfUrl({ document_line_ids }: Nomalism.DocumentLine.IPrintLabelParamsRequest, token:
|
|
13
|
+
printLabelToPdfUrl({ document_line_ids }: Nomalism.DocumentLine.IPrintLabelParamsRequest, { token }: Nomalism.DocumentLine.IPrintLabelQueryRequest): string;
|
|
14
|
+
printGroupLabelToPdfUrl({ document_line_ids }: Nomalism.DocumentLine.IPrintLabelParamsRequest, { token }: Nomalism.DocumentLine.IPrintLabelQueryRequest): string;
|
|
15
15
|
}
|
|
@@ -9,10 +9,5 @@ export default class Repository implements Nomalism.PaymentBatch.IRepository {
|
|
|
9
9
|
findCreated(): Promise<Nomalism.PaymentBatch.IPaymentsBatchResponse[]>;
|
|
10
10
|
updateDownloadNumber({ id, }: Nomalism.shared.IFindByIdRequest): Promise<void>;
|
|
11
11
|
deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<void>;
|
|
12
|
-
getBatchPdfUrl(
|
|
13
|
-
month?: number;
|
|
14
|
-
year?: number;
|
|
15
|
-
ids?: string[];
|
|
16
|
-
token: string;
|
|
17
|
-
}): string;
|
|
12
|
+
getBatchPdfUrl({ token, ids, month, year, }: Nomalism.PaymentBatch.ICreateBulkPdfRequest): string;
|
|
18
13
|
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
+
import * as Nomalism from "@nomalism-com/types";
|
|
1
2
|
import { IModuleConstructor } from "../../main";
|
|
2
|
-
export interface IDownloadSaftRequest {
|
|
3
|
-
date_start: string;
|
|
4
|
-
date_end: string;
|
|
5
|
-
token: string;
|
|
6
|
-
}
|
|
7
3
|
export default class Repository {
|
|
8
4
|
route: string;
|
|
9
5
|
constructor({ route }: IModuleConstructor);
|
|
10
|
-
getUrl({ date_start, date_end, token }:
|
|
6
|
+
getUrl({ date_start, date_end, token, }: Nomalism.Saft.ISaftInvoiceRequest): string;
|
|
11
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/api",
|
|
3
3
|
"description": "A nomalism API package for performing HTTP requests on API endpoints",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.61",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"prepare": "husky"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nomalism-com/types": "^1.3.
|
|
33
|
+
"@nomalism-com/types": "^1.3.61",
|
|
34
34
|
"axios": "^1.20.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@eslint/js": "^10.0.1",
|
|
38
|
-
"@swc/core": "^1.16.
|
|
38
|
+
"@swc/core": "^1.16.18",
|
|
39
39
|
"@types/node": "^26.6.5",
|
|
40
40
|
"@typescript-eslint/eslint-plugin": "^8.62.0",
|
|
41
41
|
"@typescript-eslint/parser": "^8.62.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
70
|
"allowScripts": {
|
|
71
|
-
"esbuild
|
|
72
|
-
"@swc/core
|
|
71
|
+
"esbuild": true,
|
|
72
|
+
"@swc/core": true
|
|
73
73
|
}
|
|
74
74
|
}
|