@nomalism-com/api 0.51.1 → 0.51.5
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 +548 -352
- package/dist/index.js +548 -352
- package/dist/main.d.ts +9 -0
- package/dist/modules/document/propostaBuilder.d.ts +4 -1
- 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 +3 -3
package/dist/main.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import OrderClass from "./modules/document/order";
|
|
|
9
9
|
import ProformaClass from "./modules/document/proforma";
|
|
10
10
|
import PropostaBuilderClass from "./modules/document/propostaBuilder";
|
|
11
11
|
import PropostaFornecedorClass from "./modules/document/propostaFornecedor";
|
|
12
|
+
import PropostaMigrationClass from "./modules/document/propostaMigration";
|
|
12
13
|
import PropostaSheetsClass from "./modules/document/propostaSheets";
|
|
13
14
|
import ProviderCreditNoteFromReturnClass from "./modules/document/providerCreditNoteFromReturn";
|
|
14
15
|
import ProviderFinancialCreditNoteClass from "./modules/document/providerFinancialCreditNote";
|
|
@@ -47,6 +48,7 @@ import FileClass from "./modules/stock/file";
|
|
|
47
48
|
import GmailsClass from "./modules/stock/gmails";
|
|
48
49
|
import GoogleCalendarClass from "./modules/stock/googleCalendar";
|
|
49
50
|
import LocationClass from "./modules/stock/location";
|
|
51
|
+
import PriceTableClass from "./modules/stock/priceTable";
|
|
50
52
|
import PrisonClass from "./modules/stock/prison";
|
|
51
53
|
import ProductGoogleSheetsClass from "./modules/stock/productGoogleSheets";
|
|
52
54
|
import ProductImageClass from "./modules/stock/productImage";
|
|
@@ -110,6 +112,7 @@ import MaturityDatesClass from "./modules/user/maturityDates";
|
|
|
110
112
|
import PasswordClass from "./modules/user/password";
|
|
111
113
|
import PaymentMethodsClass from "./modules/user/paymentMethods";
|
|
112
114
|
import PersonaClass from "./modules/user/persona";
|
|
115
|
+
import PluginClass from "./modules/user/plugin";
|
|
113
116
|
import ProvidersClass from "./modules/user/provider";
|
|
114
117
|
import ProviderTypeClass from "./modules/user/providerType";
|
|
115
118
|
import PurchaseConditionsClass from "./modules/user/purchaseCondition";
|
|
@@ -136,6 +139,7 @@ export * as NPF from "./modules/document/NPF";
|
|
|
136
139
|
export * as NRCL from "./modules/document/NRCL";
|
|
137
140
|
export * as Order from "./modules/document/order";
|
|
138
141
|
export * as PropostaBuilder from "./modules/document/propostaBuilder";
|
|
142
|
+
export * as PropostaMigration from "./modules/document/propostaMigration";
|
|
139
143
|
export * as PropostaSheets from "./modules/document/propostaSheets";
|
|
140
144
|
export * as Purchase from "./modules/document/purchase";
|
|
141
145
|
export * as Quebra from "./modules/document/quebra";
|
|
@@ -169,6 +173,7 @@ export * as File from "./modules/stock/file";
|
|
|
169
173
|
export * as Gmail from "./modules/stock/gmails";
|
|
170
174
|
export * as GoogleCalendar from "./modules/stock/googleCalendar";
|
|
171
175
|
export * as Location from "./modules/stock/location";
|
|
176
|
+
export * as PriceTable from "./modules/stock/priceTable";
|
|
172
177
|
export * as Prison from "./modules/stock/prison";
|
|
173
178
|
export * as ProductGoogleSheets from "./modules/stock/productGoogleSheets";
|
|
174
179
|
export * as ProductImage from "./modules/stock/productImage";
|
|
@@ -231,6 +236,7 @@ export * as MaturityDates from "./modules/user/maturityDates";
|
|
|
231
236
|
export * as Password from "./modules/user/password";
|
|
232
237
|
export * as PaymentMethods from "./modules/user/paymentMethods";
|
|
233
238
|
export * as Persona from "./modules/user/persona";
|
|
239
|
+
export * as Plugin from "./modules/user/plugin";
|
|
234
240
|
export * as Providers from "./modules/user/provider";
|
|
235
241
|
export * as ProviderType from "./modules/user/providerType";
|
|
236
242
|
export * as PurchaseConditions from "./modules/user/purchaseCondition";
|
|
@@ -304,6 +310,7 @@ export declare class API {
|
|
|
304
310
|
Sessions: SessionsClass;
|
|
305
311
|
Shippings: ShippingsClass;
|
|
306
312
|
StoreOperator: StoreOperatorClass;
|
|
313
|
+
Plugin: PluginClass;
|
|
307
314
|
SystemModule: SystemModuleClass;
|
|
308
315
|
Swift: SwiftClass;
|
|
309
316
|
UnitOfMeasure: UnitOfMeasureClass;
|
|
@@ -329,6 +336,8 @@ export declare class API {
|
|
|
329
336
|
QueryList: QueryListClass;
|
|
330
337
|
ReturnReason: ReturnReasonClass;
|
|
331
338
|
PropostaBuilder: PropostaBuilderClass;
|
|
339
|
+
PriceTable: PriceTableClass;
|
|
340
|
+
PropostaMigration: PropostaMigrationClass;
|
|
332
341
|
PropostaSheets: PropostaSheetsClass;
|
|
333
342
|
Schedule: ScheduleClass;
|
|
334
343
|
GoogleFilePermission: GoogleFilePermissionClass;
|
|
@@ -6,7 +6,10 @@ export default class Repository implements Nomalism.PropostaBuilder.IRepository
|
|
|
6
6
|
constructor({ api, route }: IModuleConstructor);
|
|
7
7
|
findSchema(params: Nomalism.PropostaBuilder.IFindSchemaRequest): Promise<Nomalism.PropostaBuilder.IGroupSchema>;
|
|
8
8
|
findLines(params: Nomalism.PropostaBuilder.IFindLinesRequest): Promise<Nomalism.PropostaBuilder.IFindLinesResponse>;
|
|
9
|
-
|
|
9
|
+
patchLines(params: Nomalism.PropostaBuilder.IPatchLinesRequest): Promise<void>;
|
|
10
|
+
findArticles(params: Nomalism.PropostaBuilder.IFindArticlesRequest): Promise<Nomalism.PropostaBuilder.IArticle[]>;
|
|
10
11
|
preview(params: Nomalism.PropostaBuilder.IPreviewRequest): Promise<Nomalism.PropostaBuilder.IPreviewResponse>;
|
|
11
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>;
|
|
12
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.51.
|
|
4
|
+
"version": "0.51.5",
|
|
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.51.
|
|
33
|
+
"@nomalism-com/types": "^0.51.5",
|
|
34
34
|
"axios": "^1.20.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"lint-staged": "^17.6.0",
|
|
48
48
|
"prettier": "^3.9.10",
|
|
49
49
|
"tsup": "^9.0.0",
|
|
50
|
-
"typescript-eslint": "^8.
|
|
50
|
+
"typescript-eslint": "^8.72.0"
|
|
51
51
|
},
|
|
52
52
|
"repository": {
|
|
53
53
|
"type": "git",
|