@nomalism-com/api 0.50.3 → 0.51.3
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 +599 -352
- package/dist/index.js +599 -352
- package/dist/main.d.ts +12 -0
- package/dist/modules/document/propostaBuilder.d.ts +15 -0
- package/dist/modules/document/propostaMigration.d.ts +9 -0
- package/dist/modules/integration/googleSheets.d.ts +1 -0
- package/dist/modules/stock/priceTable.d.ts +12 -0
- package/dist/modules/user/plugin.d.ts +14 -0
- package/package.json +4 -4
package/dist/main.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ import NPFClass from "./modules/document/NPF";
|
|
|
7
7
|
import NRCLClass from "./modules/document/NRCL";
|
|
8
8
|
import OrderClass from "./modules/document/order";
|
|
9
9
|
import ProformaClass from "./modules/document/proforma";
|
|
10
|
+
import PropostaBuilderClass from "./modules/document/propostaBuilder";
|
|
10
11
|
import PropostaFornecedorClass from "./modules/document/propostaFornecedor";
|
|
12
|
+
import PropostaMigrationClass from "./modules/document/propostaMigration";
|
|
11
13
|
import PropostaSheetsClass from "./modules/document/propostaSheets";
|
|
12
14
|
import ProviderCreditNoteFromReturnClass from "./modules/document/providerCreditNoteFromReturn";
|
|
13
15
|
import ProviderFinancialCreditNoteClass from "./modules/document/providerFinancialCreditNote";
|
|
@@ -46,6 +48,7 @@ import FileClass from "./modules/stock/file";
|
|
|
46
48
|
import GmailsClass from "./modules/stock/gmails";
|
|
47
49
|
import GoogleCalendarClass from "./modules/stock/googleCalendar";
|
|
48
50
|
import LocationClass from "./modules/stock/location";
|
|
51
|
+
import PriceTableClass from "./modules/stock/priceTable";
|
|
49
52
|
import PrisonClass from "./modules/stock/prison";
|
|
50
53
|
import ProductGoogleSheetsClass from "./modules/stock/productGoogleSheets";
|
|
51
54
|
import ProductImageClass from "./modules/stock/productImage";
|
|
@@ -109,6 +112,7 @@ import MaturityDatesClass from "./modules/user/maturityDates";
|
|
|
109
112
|
import PasswordClass from "./modules/user/password";
|
|
110
113
|
import PaymentMethodsClass from "./modules/user/paymentMethods";
|
|
111
114
|
import PersonaClass from "./modules/user/persona";
|
|
115
|
+
import PluginClass from "./modules/user/plugin";
|
|
112
116
|
import ProvidersClass from "./modules/user/provider";
|
|
113
117
|
import ProviderTypeClass from "./modules/user/providerType";
|
|
114
118
|
import PurchaseConditionsClass from "./modules/user/purchaseCondition";
|
|
@@ -134,6 +138,8 @@ export * as MaterialEntrance from "./modules/document/materialEntrance";
|
|
|
134
138
|
export * as NPF from "./modules/document/NPF";
|
|
135
139
|
export * as NRCL from "./modules/document/NRCL";
|
|
136
140
|
export * as Order from "./modules/document/order";
|
|
141
|
+
export * as PropostaBuilder from "./modules/document/propostaBuilder";
|
|
142
|
+
export * as PropostaMigration from "./modules/document/propostaMigration";
|
|
137
143
|
export * as PropostaSheets from "./modules/document/propostaSheets";
|
|
138
144
|
export * as Purchase from "./modules/document/purchase";
|
|
139
145
|
export * as Quebra from "./modules/document/quebra";
|
|
@@ -167,6 +173,7 @@ export * as File from "./modules/stock/file";
|
|
|
167
173
|
export * as Gmail from "./modules/stock/gmails";
|
|
168
174
|
export * as GoogleCalendar from "./modules/stock/googleCalendar";
|
|
169
175
|
export * as Location from "./modules/stock/location";
|
|
176
|
+
export * as PriceTable from "./modules/stock/priceTable";
|
|
170
177
|
export * as Prison from "./modules/stock/prison";
|
|
171
178
|
export * as ProductGoogleSheets from "./modules/stock/productGoogleSheets";
|
|
172
179
|
export * as ProductImage from "./modules/stock/productImage";
|
|
@@ -229,6 +236,7 @@ export * as MaturityDates from "./modules/user/maturityDates";
|
|
|
229
236
|
export * as Password from "./modules/user/password";
|
|
230
237
|
export * as PaymentMethods from "./modules/user/paymentMethods";
|
|
231
238
|
export * as Persona from "./modules/user/persona";
|
|
239
|
+
export * as Plugin from "./modules/user/plugin";
|
|
232
240
|
export * as Providers from "./modules/user/provider";
|
|
233
241
|
export * as ProviderType from "./modules/user/providerType";
|
|
234
242
|
export * as PurchaseConditions from "./modules/user/purchaseCondition";
|
|
@@ -302,6 +310,7 @@ export declare class API {
|
|
|
302
310
|
Sessions: SessionsClass;
|
|
303
311
|
Shippings: ShippingsClass;
|
|
304
312
|
StoreOperator: StoreOperatorClass;
|
|
313
|
+
Plugin: PluginClass;
|
|
305
314
|
SystemModule: SystemModuleClass;
|
|
306
315
|
Swift: SwiftClass;
|
|
307
316
|
UnitOfMeasure: UnitOfMeasureClass;
|
|
@@ -326,6 +335,9 @@ export declare class API {
|
|
|
326
335
|
SchedulePrintJob: SchedulePrintJobClass;
|
|
327
336
|
QueryList: QueryListClass;
|
|
328
337
|
ReturnReason: ReturnReasonClass;
|
|
338
|
+
PropostaBuilder: PropostaBuilderClass;
|
|
339
|
+
PriceTable: PriceTableClass;
|
|
340
|
+
PropostaMigration: PropostaMigrationClass;
|
|
329
341
|
PropostaSheets: PropostaSheetsClass;
|
|
330
342
|
Schedule: ScheduleClass;
|
|
331
343
|
GoogleFilePermission: GoogleFilePermissionClass;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as Nomalism from "@nomalism-com/types";
|
|
2
|
+
import { IModuleConstructor } from "../../main";
|
|
3
|
+
export default class Repository implements Nomalism.PropostaBuilder.IRepository {
|
|
4
|
+
route: string;
|
|
5
|
+
private api;
|
|
6
|
+
constructor({ api, route }: IModuleConstructor);
|
|
7
|
+
findSchema(params: Nomalism.PropostaBuilder.IFindSchemaRequest): Promise<Nomalism.PropostaBuilder.IGroupSchema>;
|
|
8
|
+
findLines(params: Nomalism.PropostaBuilder.IFindLinesRequest): Promise<Nomalism.PropostaBuilder.IFindLinesResponse>;
|
|
9
|
+
patchLines(params: Nomalism.PropostaBuilder.IPatchLinesRequest): Promise<void>;
|
|
10
|
+
findArticles(params: Nomalism.PropostaBuilder.IFindArticlesRequest): Promise<Nomalism.PropostaBuilder.IArticle[]>;
|
|
11
|
+
preview(params: Nomalism.PropostaBuilder.IPreviewRequest): Promise<Nomalism.PropostaBuilder.IPreviewResponse>;
|
|
12
|
+
importToDocument(params: Nomalism.PropostaBuilder.IImportRequest): Promise<Nomalism.PropostaBuilder.IImportResponse>;
|
|
13
|
+
pdf(params: Nomalism.PropostaBuilder.IPrintRequest): Promise<ArrayBuffer>;
|
|
14
|
+
exportPdf(params: Nomalism.PropostaBuilder.IPrintRequest): Promise<string>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as Nomalism from "@nomalism-com/types";
|
|
2
|
+
import { IModuleConstructor } from "../../main";
|
|
3
|
+
export default class Repository implements Nomalism.PropostaMigration.IRepository {
|
|
4
|
+
route: string;
|
|
5
|
+
private api;
|
|
6
|
+
constructor({ api, route }: IModuleConstructor);
|
|
7
|
+
preview({ id, }: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.PropostaMigration.IPreviewResponse>;
|
|
8
|
+
apply({ id, }: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.PropostaMigration.IApplyResponse>;
|
|
9
|
+
}
|
|
@@ -7,5 +7,6 @@ export default class Repository implements Nomalism.GoogleSheets.IController {
|
|
|
7
7
|
clone(selector: Nomalism.shared.IFindByIdRequest, params?: Nomalism.GoogleSheets.ICloneRequest): Promise<Nomalism.GoogleSheets.ICloneResponse>;
|
|
8
8
|
export(params: Nomalism.GoogleSheets.IExportRequest): Promise<string>;
|
|
9
9
|
getData(selector: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.GoogleSheets.IGetDataResponse>;
|
|
10
|
+
readGrid(selector: Nomalism.shared.IFindByIdRequest, data: Nomalism.GoogleSheets.IReadGridRequest): Promise<Nomalism.GoogleSheets.IReadGridResponse>;
|
|
10
11
|
update(selector: Nomalism.shared.IFindByIdRequest, data: Nomalism.GoogleSheets.IUpdateRequest): Promise<void>;
|
|
11
12
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as Nomalism from "@nomalism-com/types";
|
|
2
|
+
import { IModuleConstructor } from "../../main";
|
|
3
|
+
export default class Repository implements Nomalism.PriceTable.IRepository {
|
|
4
|
+
route: string;
|
|
5
|
+
private api;
|
|
6
|
+
constructor({ api, route }: IModuleConstructor);
|
|
7
|
+
find(): Promise<Nomalism.PriceTable.IPriceTableItem[]>;
|
|
8
|
+
findOne({ key, }: Nomalism.PriceTable.IFindOneRequest): Promise<Nomalism.PriceTable.IPriceTableDetail>;
|
|
9
|
+
save({ key, ...body }: Nomalism.PriceTable.ISaveRequest): Promise<Nomalism.PriceTable.IPriceTableDetail>;
|
|
10
|
+
reset({ key, base_version, }: Nomalism.PriceTable.IResetRequest): Promise<Nomalism.PriceTable.IPriceTableDetail>;
|
|
11
|
+
history({ key, }: Nomalism.PriceTable.IHistoryRequest): Promise<Nomalism.PriceTable.IHistoryItem[]>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as Nomalism from "@nomalism-com/types";
|
|
2
|
+
import { IModuleConstructor } from "../../main";
|
|
3
|
+
export default class Repository implements Nomalism.Plugin.IRepository {
|
|
4
|
+
route: string;
|
|
5
|
+
private api;
|
|
6
|
+
constructor({ api, route }: IModuleConstructor);
|
|
7
|
+
find(): Promise<Nomalism.Plugin.IPluginItem[]>;
|
|
8
|
+
setActive({ id, active, }: Nomalism.Plugin.ISetActiveRequest): Promise<Nomalism.Plugin.IPluginItem>;
|
|
9
|
+
updateSettings({ id, settings, }: Nomalism.Plugin.IUpdateSettingsRequest): Promise<Nomalism.Plugin.IPluginItem>;
|
|
10
|
+
hubStatus(): Promise<Nomalism.Plugin.IHubStatus>;
|
|
11
|
+
sync(): Promise<Nomalism.Plugin.IHubStatus>;
|
|
12
|
+
findContributions(): Promise<Nomalism.Plugin.IFindContributionsResponse>;
|
|
13
|
+
isActive({ id, }: Nomalism.Plugin.IIsActiveRequest): Promise<Nomalism.Plugin.IIsActiveResponse>;
|
|
14
|
+
}
|
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": "0.
|
|
4
|
+
"version": "0.51.3",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"prepare": "husky"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nomalism-com/types": "^0.
|
|
33
|
+
"@nomalism-com/types": "^0.51.3",
|
|
34
34
|
"axios": "^1.20.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"@types/node": "^26.6.5",
|
|
40
40
|
"@typescript-eslint/eslint-plugin": "^8.62.0",
|
|
41
41
|
"@typescript-eslint/parser": "^8.62.0",
|
|
42
|
-
"eslint": "^10.
|
|
42
|
+
"eslint": "^10.13.0",
|
|
43
43
|
"eslint-config-prettier": "^10.1.8",
|
|
44
44
|
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
45
45
|
"globals": "^17.13.0",
|
|
46
46
|
"husky": "^9.1.7",
|
|
47
47
|
"lint-staged": "^17.6.0",
|
|
48
48
|
"prettier": "^3.9.10",
|
|
49
|
-
"tsup": "^
|
|
49
|
+
"tsup": "^9.0.0",
|
|
50
50
|
"typescript-eslint": "^8.71.2"
|
|
51
51
|
},
|
|
52
52
|
"repository": {
|