@nomalism-com/api 1.3.45 → 1.3.46
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 +6495 -0
- package/dist/index.js +861 -447
- package/dist/lib/apiError.d.ts +10 -0
- package/dist/main.d.ts +8 -6
- package/dist/modules/document/CAT.d.ts +1 -1
- package/dist/modules/document/NPF.d.ts +1 -1
- package/dist/modules/document/NRCL.d.ts +1 -1
- package/dist/modules/document/billOfLading.d.ts +1 -1
- package/dist/modules/document/inventario.d.ts +1 -1
- package/dist/modules/document/materialEntrance.d.ts +1 -1
- package/dist/modules/document/order.d.ts +1 -1
- package/dist/modules/document/productionOrder.d.ts +1 -1
- package/dist/modules/document/proforma.d.ts +1 -1
- package/dist/modules/document/propostaFornecedor.d.ts +1 -1
- package/dist/modules/document/propostaSheets.d.ts +1 -1
- package/dist/modules/document/providerCreditNoteFromReturn.d.ts +1 -1
- package/dist/modules/document/providerFinancialCreditNote.d.ts +1 -1
- package/dist/modules/document/providerServiceInvoice.d.ts +1 -1
- package/dist/modules/document/purchase.d.ts +1 -1
- package/dist/modules/document/quebra.d.ts +1 -1
- package/dist/modules/document/returnToProvider.d.ts +1 -1
- package/dist/modules/document/transformado.d.ts +1 -1
- package/dist/modules/document/upfrontReturn.d.ts +1 -1
- package/dist/modules/documentManagement/multimedia.d.ts +3 -3
- package/dist/modules/integration/emailLog.d.ts +1 -1
- package/dist/modules/integration/emailTemplate.d.ts +1 -1
- package/dist/modules/integration/emailTemplateAttachment.d.ts +1 -1
- package/dist/modules/integration/emailVerification.d.ts +1 -1
- package/dist/modules/integration/euPago.d.ts +9 -0
- package/dist/modules/integration/googleFilePermission.d.ts +1 -1
- package/dist/modules/integration/googleSheets.d.ts +1 -1
- package/dist/modules/integration/observation.d.ts +1 -1
- package/dist/modules/integration/observationType.d.ts +1 -1
- package/dist/modules/integration/patchNotes.d.ts +1 -1
- package/dist/modules/integration/personaMerge.d.ts +8 -0
- package/dist/modules/integration/projectInfo.d.ts +1 -1
- package/dist/modules/integration/settings.d.ts +1 -1
- package/dist/modules/llm/llm.d.ts +1 -1
- package/dist/modules/print/npc.d.ts +1 -1
- package/dist/modules/print/printer.d.ts +1 -1
- package/dist/modules/print/schedulePrintJob.d.ts +1 -1
- package/dist/modules/sms/allowedDevice.d.ts +1 -1
- package/dist/modules/sms/smsSender.d.ts +1 -1
- package/dist/modules/sms/smsTemplate.d.ts +1 -1
- package/dist/modules/stock/accountCode.d.ts +1 -1
- package/dist/modules/stock/chat.d.ts +1 -1
- package/dist/modules/stock/chatRapidMessage.d.ts +1 -1
- package/dist/modules/stock/dashboard.d.ts +1 -1
- package/dist/modules/stock/displayLabel.d.ts +10 -0
- package/dist/modules/stock/emailAccount.d.ts +1 -1
- package/dist/modules/stock/file.d.ts +1 -1
- package/dist/modules/stock/gmails.d.ts +1 -1
- package/dist/modules/stock/googleCalendar.d.ts +1 -1
- package/dist/modules/stock/location.d.ts +1 -1
- package/dist/modules/stock/mobilePrint.d.ts +1 -1
- package/dist/modules/stock/prison.d.ts +1 -1
- package/dist/modules/stock/productGoogleSheets.d.ts +1 -1
- package/dist/modules/stock/productImage.d.ts +1 -1
- package/dist/modules/stock/productLocation.d.ts +1 -1
- package/dist/modules/stock/promotion.d.ts +1 -1
- package/dist/modules/stock/queryList.d.ts +1 -1
- package/dist/modules/stock/queryParameter.d.ts +1 -1
- package/dist/modules/stock/recurrentTasks.d.ts +1 -1
- package/dist/modules/stock/returnReason.d.ts +1 -1
- package/dist/modules/stock/savedEmPicking.d.ts +1 -1
- package/dist/modules/stock/savedProviderProposal.d.ts +1 -1
- package/dist/modules/stock/schedule.d.ts +1 -1
- package/dist/modules/stock/stockMovement.d.ts +1 -1
- package/dist/modules/stock/tag.d.ts +1 -1
- package/dist/modules/stock/task.d.ts +1 -1
- package/dist/modules/stock/taskMessage.d.ts +1 -1
- package/dist/modules/stock/taskRead.d.ts +1 -1
- package/dist/modules/stock/typeOfLocation.d.ts +1 -1
- package/dist/modules/stock/unitOfMeasure.d.ts +1 -1
- package/dist/modules/stock/vatTax.d.ts +1 -1
- package/dist/modules/stock/vatTaxZone.d.ts +1 -1
- package/dist/modules/supply/currentAccount.d.ts +1 -1
- package/dist/modules/supply/documentHeader.d.ts +3 -1
- package/dist/modules/supply/documentHeaderHistory.d.ts +1 -1
- package/dist/modules/supply/documentHeaderSubscriber.d.ts +1 -1
- package/dist/modules/supply/documentHeaderSurvey.d.ts +1 -1
- package/dist/modules/supply/documentLine.d.ts +1 -1
- package/dist/modules/supply/documentLineAssoc.d.ts +1 -1
- package/dist/modules/supply/documentLineMt.d.ts +1 -1
- package/dist/modules/supply/documentLineNote.d.ts +1 -1
- package/dist/modules/supply/documentLineRm.d.ts +1 -1
- package/dist/modules/supply/documentSet.d.ts +1 -1
- package/dist/modules/supply/documentType.d.ts +1 -4
- package/dist/modules/supply/externalDocumentHeader.d.ts +1 -1
- package/dist/modules/supply/externalDocumentType.d.ts +1 -1
- package/dist/modules/supply/googleSheetPool.d.ts +1 -1
- package/dist/modules/supply/orderManagement.d.ts +1 -1
- package/dist/modules/supply/payment.d.ts +1 -1
- package/dist/modules/supply/paymentBatch.d.ts +1 -1
- package/dist/modules/supply/preSale.d.ts +1 -1
- package/dist/modules/supply/preSaleProduct.d.ts +1 -1
- package/dist/modules/supply/startDocumentHeaderLastUpdate.d.ts +1 -1
- package/dist/modules/supply/vatValidation.d.ts +1 -1
- package/dist/modules/tickets/channel.d.ts +1 -1
- package/dist/modules/tickets/clt.d.ts +1 -1
- package/dist/modules/tickets/language.d.ts +1 -1
- package/dist/modules/tickets/tickets.d.ts +1 -1
- package/dist/modules/ui/portal.d.ts +1 -1
- package/dist/modules/ui/sideMenu.d.ts +1 -1
- package/dist/modules/ui/sidemenuHighlight.d.ts +1 -1
- package/dist/modules/user/bankData.d.ts +1 -1
- package/dist/modules/user/chatSubscriber.d.ts +1 -1
- package/dist/modules/user/clientType.d.ts +1 -1
- package/dist/modules/user/clients.d.ts +1 -1
- package/dist/modules/user/commissioner.d.ts +1 -1
- package/dist/modules/user/country.d.ts +1 -1
- package/dist/modules/user/deliveryMethods.d.ts +1 -1
- package/dist/modules/user/favorites.d.ts +1 -1
- package/dist/modules/user/language.d.ts +1 -1
- package/dist/modules/user/maturityDates.d.ts +1 -1
- package/dist/modules/user/password.d.ts +1 -1
- package/dist/modules/user/paymentMethods.d.ts +1 -1
- package/dist/modules/user/persona.d.ts +5 -1
- package/dist/modules/user/provider.d.ts +1 -1
- package/dist/modules/user/providerType.d.ts +1 -1
- package/dist/modules/user/purchaseCondition.d.ts +1 -1
- package/dist/modules/user/reasonForExemption.d.ts +1 -1
- package/dist/modules/user/refreshToken.d.ts +1 -1
- package/dist/modules/user/segmentsArea.d.ts +1 -1
- package/dist/modules/user/sessions.d.ts +1 -1
- package/dist/modules/user/shippings.d.ts +1 -1
- package/dist/modules/user/storeOperator.d.ts +1 -1
- package/dist/modules/user/swift.d.ts +1 -1
- package/dist/modules/user/systemModule.d.ts +1 -1
- package/dist/modules/user/tenant.d.ts +1 -1
- package/dist/modules/user/theme.d.ts +1 -1
- package/dist/modules/user/timeSheet.d.ts +1 -1
- package/dist/modules/user/user.d.ts +1 -1
- package/dist/modules/user/userPositions.d.ts +1 -1
- package/dist/modules/user/vehicles.d.ts +1 -1
- package/dist/modules/view/adminPanel.d.ts +1 -1
- package/dist/modules/view/errorLog.d.ts +2 -2
- package/dist/modules/view/webSocket.d.ts +1 -1
- package/package.json +22 -12
- package/dist/modules/stock/promotionAssoc.d.ts +0 -14
- package/dist/modules/supply/workflow.d.ts +0 -12
package/dist/lib/apiError.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Private slot for the original error. A Symbol is used (instead of `cause`)
|
|
3
|
+
* specifically because Node's `util.inspect` — i.e. `console.log` — special-cases
|
|
4
|
+
* the `cause` property of an Error and prints it even when non-enumerable. A
|
|
5
|
+
* non-enumerable Symbol property is never surfaced by the logger, so the raw
|
|
6
|
+
* axios object stays available for debugging without bloating logs.
|
|
7
|
+
*/
|
|
8
|
+
declare const RAW_ERROR: unique symbol;
|
|
1
9
|
/**
|
|
2
10
|
* Where the failure happened in the axios lifecycle.
|
|
3
11
|
*
|
|
@@ -25,6 +33,7 @@ export interface IApiErrorFields {
|
|
|
25
33
|
* debugging, but never dumped when the error is logged.
|
|
26
34
|
*/
|
|
27
35
|
export declare class ApiError extends Error {
|
|
36
|
+
readonly [RAW_ERROR]?: unknown;
|
|
28
37
|
readonly kind: ApiErrorKind;
|
|
29
38
|
/** HTTP status code, when the server responded. */
|
|
30
39
|
readonly status?: number;
|
|
@@ -55,3 +64,4 @@ export declare function isApiError(error: unknown): error is ApiError;
|
|
|
55
64
|
* themselves.
|
|
56
65
|
*/
|
|
57
66
|
export declare function parseApiError(error: unknown): ApiError;
|
|
67
|
+
export {};
|
package/dist/main.d.ts
CHANGED
|
@@ -23,11 +23,13 @@ import EmailLogClass from "./modules/integration/emailLog";
|
|
|
23
23
|
import EmailTemplateClass from "./modules/integration/emailTemplate";
|
|
24
24
|
import EmailTemplateAttachmentClass from "./modules/integration/emailTemplateAttachment";
|
|
25
25
|
import EmailVerificationClass from "./modules/integration/emailVerification";
|
|
26
|
+
import EuPagoClass from "./modules/integration/euPago";
|
|
26
27
|
import GoogleFilePermissionClass from "./modules/integration/googleFilePermission";
|
|
27
28
|
import GoogleSheetsClass from "./modules/integration/googleSheets";
|
|
28
29
|
import ObservationClass from "./modules/integration/observation";
|
|
29
30
|
import ObservationTypeClass from "./modules/integration/observationType";
|
|
30
31
|
import PatchNotesClass from "./modules/integration/patchNotes";
|
|
32
|
+
import PersonaMergeClass from "./modules/integration/personaMerge";
|
|
31
33
|
import ProjectInfoClass from "./modules/integration/projectInfo";
|
|
32
34
|
import SettingsClass from "./modules/integration/settings";
|
|
33
35
|
import LLMClass from "./modules/llm/llm";
|
|
@@ -41,6 +43,7 @@ import AccountCodeClass from "./modules/stock/accountCode";
|
|
|
41
43
|
import ChatClass from "./modules/stock/chat";
|
|
42
44
|
import ChatRapidMessageClass from "./modules/stock/chatRapidMessage";
|
|
43
45
|
import DashboardClass from "./modules/stock/dashboard";
|
|
46
|
+
import DisplayLabelsClass from "./modules/stock/displayLabel";
|
|
44
47
|
import EmailAccountClass from "./modules/stock/emailAccount";
|
|
45
48
|
import FileClass from "./modules/stock/file";
|
|
46
49
|
import GmailsClass from "./modules/stock/gmails";
|
|
@@ -51,7 +54,6 @@ import ProductGoogleSheetsClass from "./modules/stock/productGoogleSheets";
|
|
|
51
54
|
import ProductImageClass from "./modules/stock/productImage";
|
|
52
55
|
import ProductLocationClass from "./modules/stock/productLocation";
|
|
53
56
|
import PromotionClass from "./modules/stock/promotion";
|
|
54
|
-
import PromotionAssocClass from "./modules/stock/promotionAssoc";
|
|
55
57
|
import QueryListClass from "./modules/stock/queryList";
|
|
56
58
|
import QueryParameterClass from "./modules/stock/queryParameter";
|
|
57
59
|
import RecurrentTasksClass from "./modules/stock/recurrentTasks";
|
|
@@ -91,7 +93,6 @@ import PreSaleProductClass from "./modules/supply/preSaleProduct";
|
|
|
91
93
|
import SaftClass from "./modules/supply/saft";
|
|
92
94
|
import StartDocumentHeaderLastUpdateClass from "./modules/supply/startDocumentHeaderLastUpdate";
|
|
93
95
|
import VatValidationClass from "./modules/supply/vatValidation";
|
|
94
|
-
import WorkflowClass from "./modules/supply/workflow";
|
|
95
96
|
import ChannelClass from "./modules/tickets/channel";
|
|
96
97
|
import CltClass from "./modules/tickets/clt";
|
|
97
98
|
import TicketsLanguageClass from "./modules/tickets/language";
|
|
@@ -149,6 +150,7 @@ export * as EmailLog from "./modules/integration/emailLog";
|
|
|
149
150
|
export * as EmailTemplate from "./modules/integration/emailTemplate";
|
|
150
151
|
export * as EmailTemplateAttachment from "./modules/integration/emailTemplateAttachment";
|
|
151
152
|
export * as EmailVerification from "./modules/integration/emailVerification";
|
|
153
|
+
export * as EuPago from "./modules/integration/euPago";
|
|
152
154
|
export * as GoogleFilePermission from "./modules/integration/googleFilePermission";
|
|
153
155
|
export * as GoogleSheets from "./modules/integration/googleSheets";
|
|
154
156
|
export * as Observation from "./modules/integration/observation";
|
|
@@ -166,6 +168,7 @@ export * as SmsTemplate from "./modules/sms/smsTemplate";
|
|
|
166
168
|
export * as AccountCode from "./modules/stock/accountCode";
|
|
167
169
|
export * as ChatRapidMessage from "./modules/stock/chatRapidMessage";
|
|
168
170
|
export * as Dashboard from "./modules/stock/dashboard";
|
|
171
|
+
export * as DisplayLabels from "./modules/stock/displayLabel";
|
|
169
172
|
export * as EmailAccount from "./modules/stock/emailAccount";
|
|
170
173
|
export * as File from "./modules/stock/file";
|
|
171
174
|
export * as Gmail from "./modules/stock/gmails";
|
|
@@ -176,7 +179,6 @@ export * as ProductGoogleSheets from "./modules/stock/productGoogleSheets";
|
|
|
176
179
|
export * as ProductImage from "./modules/stock/productImage";
|
|
177
180
|
export * as ProductLocation from "./modules/stock/productLocation";
|
|
178
181
|
export * as Promotion from "./modules/stock/promotion";
|
|
179
|
-
export * as PromotionAssoc from "./modules/stock/promotionAssoc";
|
|
180
182
|
export * as QueryList from "./modules/stock/queryList";
|
|
181
183
|
export * as QueryParameter from "./modules/stock/queryParameter";
|
|
182
184
|
export * as RecurrentTasks from "./modules/stock/recurrentTasks";
|
|
@@ -216,7 +218,6 @@ export * as PreSaleProduct from "./modules/supply/preSaleProduct";
|
|
|
216
218
|
export * as Saft from "./modules/supply/saft";
|
|
217
219
|
export * as StartDocumentHeaderLastUpdate from "./modules/supply/startDocumentHeaderLastUpdate";
|
|
218
220
|
export * as VatValidation from "./modules/supply/vatValidation";
|
|
219
|
-
export * as Workflow from "./modules/supply/workflow";
|
|
220
221
|
export * as Channel from "./modules/tickets/channel";
|
|
221
222
|
export * as Clt from "./modules/tickets/clt";
|
|
222
223
|
export * as TicketsLanguage from "./modules/tickets/language";
|
|
@@ -303,7 +304,6 @@ export declare class API {
|
|
|
303
304
|
Password: PasswordClass;
|
|
304
305
|
ProductImage: ProductImageClass;
|
|
305
306
|
Promotion: PromotionClass;
|
|
306
|
-
PromotionAssoc: PromotionAssocClass;
|
|
307
307
|
Providers: ProvidersClass;
|
|
308
308
|
ProviderType: ProviderTypeClass;
|
|
309
309
|
PurchaseConditions: PurchaseConditionsClass;
|
|
@@ -321,7 +321,6 @@ export declare class API {
|
|
|
321
321
|
Users: UsersClass;
|
|
322
322
|
VatTax: VatTaxClass;
|
|
323
323
|
VatTaxZone: VatTaxZoneClass;
|
|
324
|
-
Workflow: WorkflowClass;
|
|
325
324
|
DeliveryMethods: DeliveryMethodsClass;
|
|
326
325
|
MaturityDates: MaturityDatesClass;
|
|
327
326
|
PaymentMethods: PaymentMethodsClass;
|
|
@@ -352,6 +351,7 @@ export declare class API {
|
|
|
352
351
|
Clt: CltClass;
|
|
353
352
|
StartDocumentHeaderLastUpdate: StartDocumentHeaderLastUpdateClass;
|
|
354
353
|
Persona: PersonaClass;
|
|
354
|
+
PersonaMerge: PersonaMergeClass;
|
|
355
355
|
ProjectInfo: ProjectInfoClass;
|
|
356
356
|
Order: OrderClass;
|
|
357
357
|
Purchase: PurchaseClass;
|
|
@@ -367,6 +367,7 @@ export declare class API {
|
|
|
367
367
|
ReturnToProvider: ReturnToProviderClass;
|
|
368
368
|
EmailVerification: EmailVerificationClass;
|
|
369
369
|
EmailLog: EmailLogClass;
|
|
370
|
+
EuPago: EuPagoClass;
|
|
370
371
|
DocumentLineNote: DocumentLineNoteClass;
|
|
371
372
|
SavedProviderProposal: SavedProviderProposalClass;
|
|
372
373
|
ProductGoogleSheets: ProductGoogleSheetsClass;
|
|
@@ -406,6 +407,7 @@ export declare class API {
|
|
|
406
407
|
SmsSender: SmsSenderClass;
|
|
407
408
|
SmsTemplate: SmsTemplateClass;
|
|
408
409
|
AllowedDevice: AllowedDeviceClass;
|
|
410
|
+
DisplayLabels: DisplayLabelsClass;
|
|
409
411
|
private defaultHeaders;
|
|
410
412
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer, }: IOptions);
|
|
411
413
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Nomalism from "@nomalism-com/types";
|
|
1
|
+
import * as Nomalism from "@nomalism-com/types";
|
|
2
2
|
import { type RawAxiosRequestHeaders } from "axios";
|
|
3
3
|
import { IModuleConstructor } from "../../main";
|
|
4
4
|
export default class Repository implements Nomalism.Multimedia.IApi {
|
|
@@ -6,6 +6,6 @@ export default class Repository implements Nomalism.Multimedia.IApi {
|
|
|
6
6
|
private api;
|
|
7
7
|
constructor({ api, route }: IModuleConstructor);
|
|
8
8
|
getUrl(multimediaId: string, download?: boolean): string;
|
|
9
|
-
create(multipartFormData:
|
|
10
|
-
update(id: string, multipartFormData:
|
|
9
|
+
create(multipartFormData: unknown, headers?: RawAxiosRequestHeaders): Promise<Nomalism.Multimedia.Entity>;
|
|
10
|
+
update(id: string, multipartFormData: unknown, headers?: RawAxiosRequestHeaders): Promise<void>;
|
|
11
11
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Nomalism from "@nomalism-com/types";
|
|
2
|
+
import { IModuleConstructor } from "../../main";
|
|
3
|
+
export default class Repository implements Nomalism.EuPago.IApi {
|
|
4
|
+
route: string;
|
|
5
|
+
private api;
|
|
6
|
+
constructor({ api, route }: IModuleConstructor);
|
|
7
|
+
generate(data: Nomalism.EuPago.ICreatePendingPaymentRequest): Promise<Nomalism.EuPago.Entity>;
|
|
8
|
+
find(): Promise<Nomalism.EuPago.IFindResponse[]>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import Nomalism from "@nomalism-com/types";
|
|
2
|
+
import { IModuleConstructor } from "../../main";
|
|
3
|
+
export default class Repository implements Nomalism.PersonaMerge.IApi {
|
|
4
|
+
route: string;
|
|
5
|
+
private api;
|
|
6
|
+
constructor({ api, route }: IModuleConstructor);
|
|
7
|
+
execute(body: Nomalism.PersonaMerge.IMergeOwnerRequest): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as Nomalism from "@nomalism-com/types";
|
|
2
|
+
import { IModuleConstructor } from "../../main";
|
|
3
|
+
export default class Repository implements Nomalism.DisplayLabel.IRepository {
|
|
4
|
+
route: string;
|
|
5
|
+
private api;
|
|
6
|
+
constructor({ api, route }: IModuleConstructor);
|
|
7
|
+
create(data: Nomalism.DisplayLabel.ICreateRequest): Promise<void>;
|
|
8
|
+
find(): Promise<Nomalism.DisplayLabel.Entity[]>;
|
|
9
|
+
deleteMany(data: Nomalism.DisplayLabel.IDeleteManyRequest): Promise<void>;
|
|
10
|
+
}
|