@nomalism-com/api 0.13.4 → 0.13.6
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.d.ts +4 -5
- package/dist/index.js +134 -135
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -257,7 +257,7 @@ export * as SavedEmPicking from './modules/stock/savedEmPicking';
|
|
|
257
257
|
export * as EmailTemplate from './modules/integration/emailTemplate';
|
|
258
258
|
export * as EmailTemplateAttachment from './modules/integration/emailTemplateAttachment';
|
|
259
259
|
export { shared };
|
|
260
|
-
type IEnvironment = 'production' | 'uat' | 'development' | 'localhost';
|
|
260
|
+
export type IEnvironment = 'production' | 'uat' | 'development' | 'localhost';
|
|
261
261
|
declare const serviceEnum: readonly ["stock", "user", "integration", "documentmanagement", "view", "print", "ticket", "pdf"];
|
|
262
262
|
type IService = (typeof serviceEnum)[number];
|
|
263
263
|
export interface IServiceExternalPath {
|
|
@@ -276,13 +276,11 @@ export interface IModuleConstructor {
|
|
|
276
276
|
defaultHeaders?: AxiosRequestHeaders;
|
|
277
277
|
}
|
|
278
278
|
export declare class API {
|
|
279
|
-
|
|
280
|
-
|
|
279
|
+
processEnvironment: IEnvironment;
|
|
280
|
+
gatewayUrl: string;
|
|
281
281
|
private defaultHeaders;
|
|
282
282
|
client: AxiosInstance;
|
|
283
283
|
services: Record<IService, IServiceExternalPath>;
|
|
284
|
-
constructor({ processEnvironment, gatewayUrl, apikey }: IOptions);
|
|
285
|
-
private getModuleParams;
|
|
286
284
|
Address: AddressClass;
|
|
287
285
|
Attribute: AttributeClass;
|
|
288
286
|
AttributeValue: AttributeValueClass;
|
|
@@ -411,4 +409,5 @@ export declare class API {
|
|
|
411
409
|
SavedEmPicking: SavedEmPickingClass;
|
|
412
410
|
EmailTemplate: EmailTemplateClass;
|
|
413
411
|
EmailTemplateAttachment: EmailTemplateAttachmentClass;
|
|
412
|
+
constructor({ processEnvironment, gatewayUrl, apikey }: IOptions);
|
|
414
413
|
}
|
package/dist/index.js
CHANGED
|
@@ -301,134 +301,7 @@ var serviceEnum = [
|
|
|
301
301
|
var API = (function () {
|
|
302
302
|
function API(_a) {
|
|
303
303
|
var processEnvironment = _a.processEnvironment, gatewayUrl = _a.gatewayUrl, apikey = _a.apikey;
|
|
304
|
-
|
|
305
|
-
this.Attribute = new attribute_1.default(this.getModuleParams('stock', 'attribute'));
|
|
306
|
-
this.AttributeValue = new attributeValue_1.default(this.getModuleParams('stock', 'attribute_value'));
|
|
307
|
-
this.BankData = new bankData_1.default(this.getModuleParams('stock', 'bank_data'));
|
|
308
|
-
this.Client = new clients_1.default(this.getModuleParams('stock', 'client'));
|
|
309
|
-
this.ClientType = new clientType_1.default(this.getModuleParams('stock', 'ClientType'));
|
|
310
|
-
this.Color = new color_1.default(this.getModuleParams('stock', 'color'));
|
|
311
|
-
this.Commissioner = new commissioner_1.default(this.getModuleParams('stock', 'commissioner'));
|
|
312
|
-
this.Composition = new composition_1.default(this.getModuleParams('stock', 'composition'));
|
|
313
|
-
this.CompositionMaterial = new compositionMaterial_1.default(this.getModuleParams('stock', 'composition_material'));
|
|
314
|
-
this.Contacts = new contacts_1.default(this.getModuleParams('stock', 'contacts'));
|
|
315
|
-
this.ContactType = new contactTypes_1.default(this.getModuleParams('stock', 'contact_type'));
|
|
316
|
-
this.Country = new country_1.default(this.getModuleParams('stock', 'country'));
|
|
317
|
-
this.DocumentHeader = new documentHeader_1.default(this.getModuleParams('stock', 'document_header'));
|
|
318
|
-
this.DocumentLine = new documentLine_1.default(this.getModuleParams('stock', 'document_line'));
|
|
319
|
-
this.DocumentLineAssoc = new documentLineAssoc_1.default(this.getModuleParams('stock', 'document_line_assoc'));
|
|
320
|
-
this.DocumentLineFolder = new documentLineFolder_1.default(this.getModuleParams('stock', 'document_line_folder'));
|
|
321
|
-
this.DocumentType = new documentType_1.default(this.getModuleParams('stock', 'document_type'));
|
|
322
|
-
this.EntityList = new entityList_1.default(this.getModuleParams('stock', 'entity_list'));
|
|
323
|
-
this.Favorites = new favorites_1.default(this.getModuleParams('stock', 'favorites'));
|
|
324
|
-
this.Field = new field_1.default(this.getModuleParams('stock', 'Field'));
|
|
325
|
-
this.FieldGroup = new fieldGroup_1.default(this.getModuleParams('stock', 'field_group'));
|
|
326
|
-
this.File = new file_1.default(this.getModuleParams('stock', 'file'));
|
|
327
|
-
this.GoogleSheets = new googleSheets_1.default(this.getModuleParams('stock', 'google_sheets'));
|
|
328
|
-
this.GroupPermissions = new groupPermission_1.default(this.getModuleParams('stock', 'group_permissions'));
|
|
329
|
-
this.History = new history_1.default(this.getModuleParams('stock', 'history'));
|
|
330
|
-
this.Language = new language_1.default(this.getModuleParams('stock', 'language'));
|
|
331
|
-
this.Location = new location_1.default(this.getModuleParams('stock', 'location'));
|
|
332
|
-
this.Logout = new logout_1.default(this.getModuleParams('stock', 'logout'));
|
|
333
|
-
this.Maintenance = new maintenance_1.default(this.getModuleParams('stock', 'maintenance'));
|
|
334
|
-
this.MaintenanceAssoc = new maintenanceAssoc_1.default(this.getModuleParams('stock', 'maintenance_assoc'));
|
|
335
|
-
this.MaintenanceType = new maintenanceType_1.default(this.getModuleParams('stock', 'maintenance_type'));
|
|
336
|
-
this.MaintenancePreset = new maintenancePreset_1.default(this.getModuleParams('stock', 'maintenance_preset'));
|
|
337
|
-
this.MaintenancePresetAssoc = new maintenancePresetAssoc_1.default(this.getModuleParams('stock', 'maintenance_preset_assoc'));
|
|
338
|
-
this.Multimedia = new multimedia_1.default(this.getModuleParams('stock', 'multimedia'));
|
|
339
|
-
this.Observation = new observation_1.default(this.getModuleParams('stock', 'observation'));
|
|
340
|
-
this.ObservationType = new observationType_1.default(this.getModuleParams('stock', 'observation_type'));
|
|
341
|
-
this.PaymentConditions = new paymentCondition_1.default(this.getModuleParams('stock', 'payment_conditions'));
|
|
342
|
-
this.Password = new password_1.default(this.getModuleParams('stock', 'password'));
|
|
343
|
-
this.Permissions = new permission_1.default(this.getModuleParams('stock', 'permissions'));
|
|
344
|
-
this.Plot = new plot_1.default(this.getModuleParams('stock', 'plot'));
|
|
345
|
-
this.PrimaryColor = new primaryColor_1.default(this.getModuleParams('stock', 'primary_color'));
|
|
346
|
-
this.Product = new product_1.default(this.getModuleParams('stock', 'product'));
|
|
347
|
-
this.ProductAttribute = new productAttribute_1.default(this.getModuleParams('stock', 'product_attribute'));
|
|
348
|
-
this.ProductCategory = new productCategory_1.default(this.getModuleParams('stock', 'product_category'));
|
|
349
|
-
this.ProductColor = new productColor_1.default(this.getModuleParams('stock', 'product_color'));
|
|
350
|
-
this.ProductImage = new productImage_1.default(this.getModuleParams('stock', 'product_image'));
|
|
351
|
-
this.ProductPart = new productPart_1.default(this.getModuleParams('stock', 'product_part'));
|
|
352
|
-
this.ProductSubCategory = new productSubCategory_1.default(this.getModuleParams('stock', 'product_sub_category'));
|
|
353
|
-
this.ProductUse = new productUse_1.default(this.getModuleParams('stock', 'product_use'));
|
|
354
|
-
this.ProductUseAssoc = new productUseAssoc_1.default(this.getModuleParams('stock', 'product_use_assoc'));
|
|
355
|
-
this.ProductName = new productName_1.default(this.getModuleParams('stock', 'product_name'));
|
|
356
|
-
this.Promotion = new promotion_1.default(this.getModuleParams('stock', 'promotion'));
|
|
357
|
-
this.PromotionAssoc = new promotionAssoc_1.default(this.getModuleParams('stock', 'promotion_assoc'));
|
|
358
|
-
this.Providers = new provider_1.default(this.getModuleParams('stock', 'providers'));
|
|
359
|
-
this.ProviderType = new providerType_1.default(this.getModuleParams('stock', 'provider_type'));
|
|
360
|
-
this.PurchaseConditions = new purchaseCondition_1.default(this.getModuleParams('stock', 'purchase_conditions'));
|
|
361
|
-
this.ReasonForExemption = new reasonForExemption_1.default(this.getModuleParams('stock', 'reason_for_exemption'));
|
|
362
|
-
this.RefreshToken = new refreshToken_1.default(this.getModuleParams('stock', 'refresh_token'));
|
|
363
|
-
this.SegmentsArea = new segmentsArea_1.default(this.getModuleParams('stock', 'segments_area'));
|
|
364
|
-
this.Sessions = new sessions_1.default(this.getModuleParams('stock', 'sessions'));
|
|
365
|
-
this.Shippings = new shippings_1.default(this.getModuleParams('stock', 'shippings'));
|
|
366
|
-
this.SimilarProduct = new similarProduct_1.default(this.getModuleParams('stock', 'similar_product'));
|
|
367
|
-
this.SocialMedia = new socialMedia_1.default(this.getModuleParams('stock', 'social_media'));
|
|
368
|
-
this.StoreOperator = new storeOperator_1.default(this.getModuleParams('stock', 'store_operator'));
|
|
369
|
-
this.Swift = new swift_1.default(this.getModuleParams('stock', 'swift'));
|
|
370
|
-
this.TaskAttachment = new taskAttachment_1.default(this.getModuleParams('stock', 'task_attachment'));
|
|
371
|
-
this.TaskNote = new taskNote_1.default(this.getModuleParams('stock', 'task_note'));
|
|
372
|
-
this.Tasks = new task_1.default(this.getModuleParams('stock', 'tasks'));
|
|
373
|
-
this.TasksGroup = new taskGroup_1.default(this.getModuleParams('stock', 'tasks_group'));
|
|
374
|
-
this.TypeOfInventory = new typeOfInventory_1.default(this.getModuleParams('stock', 'type_of_inventory'));
|
|
375
|
-
this.TypeOfLocation = new typeOfLocation_1.default(this.getModuleParams('stock', 'type_of_location'));
|
|
376
|
-
this.UnitOfMeasure = new unitOfMeasure_1.default(this.getModuleParams('stock', 'unit_of_measure'));
|
|
377
|
-
this.UserPermissions = new userPermission_1.default(this.getModuleParams('stock', 'UserPermissions'));
|
|
378
|
-
this.UserPositions = new userPositions_1.default(this.getModuleParams('stock', 'user_positions'));
|
|
379
|
-
this.Users = new user_1.default(this.getModuleParams('stock', 'users'));
|
|
380
|
-
this.UserTokens = new userToken_1.default(this.getModuleParams('stock', 'user_tokens'));
|
|
381
|
-
this.VatTax = new vatTax_1.default(this.getModuleParams('stock', 'vat_tax'));
|
|
382
|
-
this.VatTaxZone = new vatTaxZone_1.default(this.getModuleParams('stock', 'vat_tax_zone'));
|
|
383
|
-
this.Workflow = new workflow_1.default(this.getModuleParams('stock', 'workflow'));
|
|
384
|
-
this.DynamicData = new dynamicData_1.default(this.getModuleParams('stock', 'dynamic_data'));
|
|
385
|
-
this.DeliveryMethods = new deliveryMethods_1.default(this.getModuleParams('stock', 'delivery_methods'));
|
|
386
|
-
this.MaturityDates = new maturityDates_1.default(this.getModuleParams('stock', 'maturity_dates'));
|
|
387
|
-
this.PaymentMethods = new paymentMethods_1.default(this.getModuleParams('stock', 'payment_methods'));
|
|
388
|
-
this.Vehicles = new vehicles_1.default(this.getModuleParams('stock', 'vehicles'));
|
|
389
|
-
this.ExternalDocumentType = new externalDocumentType_1.default(this.getModuleParams('stock', 'external_document_type'));
|
|
390
|
-
this.DocumentSet = new documentSet_1.default(this.getModuleParams('stock', 'document_set'));
|
|
391
|
-
this.Payment = new payment_1.default(this.getModuleParams('stock', 'payment'));
|
|
392
|
-
this.ExternalDocumentHeader = new externalDocumentHeader_1.default(this.getModuleParams('stock', 'external_document_header'));
|
|
393
|
-
this.ClientCurrentAccount = new clientCurrentAccount_1.default(this.getModuleParams('stock', 'client_current_account'));
|
|
394
|
-
this.ProviderCurrentAccount = new providerCurrentAccount_1.default(this.getModuleParams('stock', 'provider_current_account'));
|
|
395
|
-
this.MoloniRequest = new moloniRequest_1.default(this.getModuleParams('stock', 'moloni_request'));
|
|
396
|
-
this.VatValidation = new vatValidation_1.default(this.getModuleParams('stock', 'vat_validation'));
|
|
397
|
-
this.ProductNamePreset = new productNamePreset_1.default(this.getModuleParams('stock', 'product_name_preset'));
|
|
398
|
-
this.StockMovement = new stockMovement_1.default(this.getModuleParams('stock', 'stock_movement'));
|
|
399
|
-
this.ZipCode = new zipCode_1.default(this.getModuleParams('stock', 'zip_code'));
|
|
400
|
-
this.Tenant = new tenant_1.default(this.getModuleParams('stock', 'tenant'));
|
|
401
|
-
this.PreSale = new preSale_1.default(this.getModuleParams('stock', 'pre_sale'));
|
|
402
|
-
this.PreSaleProduct = new preSaleProduct_1.default(this.getModuleParams('stock', 'pre_sale_product'));
|
|
403
|
-
this.Cabide = new cabide_1.default(this.getModuleParams('stock', 'cabide'));
|
|
404
|
-
this.CabideProduct = new cabideProduct_1.default(this.getModuleParams('stock', 'cabide_product'));
|
|
405
|
-
this.OrderManagement = new orderManagement_1.default(this.getModuleParams('stock', 'order_management'));
|
|
406
|
-
this.Npc = new npc_1.default(this.getModuleParams('stock', 'npc'));
|
|
407
|
-
this.Printer = new printer_1.default(this.getModuleParams('stock', 'printer'));
|
|
408
|
-
this.SchedulePrintJob = new schedulePrintJob_1.default(this.getModuleParams('stock', 'schedule_print_job'));
|
|
409
|
-
this.QueryList = new queryList_1.default(this.getModuleParams('stock', 'query_list'));
|
|
410
|
-
this.QueryParameter = new queryParameter_1.default(this.getModuleParams('stock', 'query_parameter'));
|
|
411
|
-
this.ReturnReason = new returnReason_1.default(this.getModuleParams('stock', 'return_reason'));
|
|
412
|
-
this.PropostaSheets = new propostaSheets_1.default(this.getModuleParams('stock', 'proposta_sheets'));
|
|
413
|
-
this.Schedule = new schedule_1.default(this.getModuleParams('stock', 'schedule'));
|
|
414
|
-
this.GoogleFilePermission = new googleFilePermission_1.default(this.getModuleParams('stock', 'google_file_permission'));
|
|
415
|
-
this.Settings = new settings_1.default(this.getModuleParams('stock', 'settings'));
|
|
416
|
-
this.Tickets = new tickets_1.default(this.getModuleParams('stock', 'tickets'));
|
|
417
|
-
this.Channel = new channel_1.default(this.getModuleParams('stock', 'channel'));
|
|
418
|
-
this.TicketsLanguage = new language_2.default(this.getModuleParams('stock', 'tickets_language'));
|
|
419
|
-
this.Clt = new clt_1.default(this.getModuleParams('stock', 'clt'));
|
|
420
|
-
this.StartDocumentHeaderLastUpdate = new startDocumentHeaderLastUpdate_1.default(this.getModuleParams('stock', 'start_document_header_last_update'));
|
|
421
|
-
this.ErrorHandler = new errorHandler_1.default(this.getModuleParams('stock', 'error_handler'));
|
|
422
|
-
this.Persona = new persona_1.default(this.getModuleParams('stock', 'persona'));
|
|
423
|
-
this.ProjectInfo = new projectInfo_1.default(this.getModuleParams('stock', 'project_info'));
|
|
424
|
-
this.Order = new order_1.default(this.getModuleParams('stock', 'order'));
|
|
425
|
-
this.Purchase = new purchase_1.default(this.getModuleParams('stock', 'purchase'));
|
|
426
|
-
this.MaterialEntrance = new materialEntrance_1.default(this.getModuleParams('stock', 'material_entrance'));
|
|
427
|
-
this.Transformado = new transformado_1.default(this.getModuleParams('stock', 'transformado'));
|
|
428
|
-
this.UpfrontReturn = new upfrontReturn_1.default(this.getModuleParams('stock', 'upfront_return'));
|
|
429
|
-
this.SavedEmPicking = new savedEmPicking_1.default(this.getModuleParams('stock', 'saved_em_picking'));
|
|
430
|
-
this.EmailTemplate = new emailTemplate_1.default(this.getModuleParams('stock', 'email_template'));
|
|
431
|
-
this.EmailTemplateAttachment = new emailTemplateAttachment_1.default(this.getModuleParams('stock', 'email_template_attachment'));
|
|
304
|
+
var _this = this;
|
|
432
305
|
this.processEnvironment = processEnvironment || 'localhost';
|
|
433
306
|
this.gatewayUrl = gatewayUrl || 'localhost';
|
|
434
307
|
this.defaultHeaders = apikey
|
|
@@ -489,14 +362,140 @@ var API = (function () {
|
|
|
489
362
|
publicPath: pdf.publicPath,
|
|
490
363
|
},
|
|
491
364
|
};
|
|
365
|
+
var getModuleParams = function (service, module) { return ({
|
|
366
|
+
api: _this.client,
|
|
367
|
+
route: "".concat(_this.services[service].authPath).concat(module),
|
|
368
|
+
publicRoute: "".concat(_this.services[service].publicPath).concat(module),
|
|
369
|
+
}); };
|
|
370
|
+
this.Address = new address_1.default(getModuleParams('stock', 'address'));
|
|
371
|
+
this.Attribute = new attribute_1.default(getModuleParams('stock', 'attribute'));
|
|
372
|
+
this.AttributeValue = new attributeValue_1.default(getModuleParams('stock', 'attribute_value'));
|
|
373
|
+
this.BankData = new bankData_1.default(getModuleParams('stock', 'bank_data'));
|
|
374
|
+
this.Client = new clients_1.default(getModuleParams('stock', 'client'));
|
|
375
|
+
this.ClientType = new clientType_1.default(getModuleParams('stock', 'ClientType'));
|
|
376
|
+
this.Color = new color_1.default(getModuleParams('stock', 'color'));
|
|
377
|
+
this.Commissioner = new commissioner_1.default(getModuleParams('stock', 'commissioner'));
|
|
378
|
+
this.Composition = new composition_1.default(getModuleParams('stock', 'composition'));
|
|
379
|
+
this.CompositionMaterial = new compositionMaterial_1.default(getModuleParams('stock', 'composition_material'));
|
|
380
|
+
this.Contacts = new contacts_1.default(getModuleParams('stock', 'contacts'));
|
|
381
|
+
this.ContactType = new contactTypes_1.default(getModuleParams('stock', 'contact_type'));
|
|
382
|
+
this.Country = new country_1.default(getModuleParams('stock', 'country'));
|
|
383
|
+
this.DocumentHeader = new documentHeader_1.default(getModuleParams('stock', 'document_header'));
|
|
384
|
+
this.DocumentLine = new documentLine_1.default(getModuleParams('stock', 'document_line'));
|
|
385
|
+
this.DocumentLineAssoc = new documentLineAssoc_1.default(getModuleParams('stock', 'document_line_assoc'));
|
|
386
|
+
this.DocumentLineFolder = new documentLineFolder_1.default(getModuleParams('stock', 'document_line_folder'));
|
|
387
|
+
this.DocumentType = new documentType_1.default(getModuleParams('stock', 'document_type'));
|
|
388
|
+
this.EntityList = new entityList_1.default(getModuleParams('stock', 'entity_list'));
|
|
389
|
+
this.Favorites = new favorites_1.default(getModuleParams('stock', 'favorites'));
|
|
390
|
+
this.Field = new field_1.default(getModuleParams('stock', 'Field'));
|
|
391
|
+
this.FieldGroup = new fieldGroup_1.default(getModuleParams('stock', 'field_group'));
|
|
392
|
+
this.File = new file_1.default(getModuleParams('stock', 'file'));
|
|
393
|
+
this.GoogleSheets = new googleSheets_1.default(getModuleParams('stock', 'google_sheets'));
|
|
394
|
+
this.GroupPermissions = new groupPermission_1.default(getModuleParams('stock', 'group_permissions'));
|
|
395
|
+
this.History = new history_1.default(getModuleParams('stock', 'history'));
|
|
396
|
+
this.Language = new language_1.default(getModuleParams('stock', 'language'));
|
|
397
|
+
this.Location = new location_1.default(getModuleParams('stock', 'location'));
|
|
398
|
+
this.Logout = new logout_1.default(getModuleParams('stock', 'logout'));
|
|
399
|
+
this.Maintenance = new maintenance_1.default(getModuleParams('stock', 'maintenance'));
|
|
400
|
+
this.MaintenanceAssoc = new maintenanceAssoc_1.default(getModuleParams('stock', 'maintenance_assoc'));
|
|
401
|
+
this.MaintenanceType = new maintenanceType_1.default(getModuleParams('stock', 'maintenance_type'));
|
|
402
|
+
this.MaintenancePreset = new maintenancePreset_1.default(getModuleParams('stock', 'maintenance_preset'));
|
|
403
|
+
this.MaintenancePresetAssoc = new maintenancePresetAssoc_1.default(getModuleParams('stock', 'maintenance_preset_assoc'));
|
|
404
|
+
this.Multimedia = new multimedia_1.default(getModuleParams('stock', 'multimedia'));
|
|
405
|
+
this.Observation = new observation_1.default(getModuleParams('stock', 'observation'));
|
|
406
|
+
this.ObservationType = new observationType_1.default(getModuleParams('stock', 'observation_type'));
|
|
407
|
+
this.PaymentConditions = new paymentCondition_1.default(getModuleParams('stock', 'payment_conditions'));
|
|
408
|
+
this.Password = new password_1.default(getModuleParams('stock', 'password'));
|
|
409
|
+
this.Permissions = new permission_1.default(getModuleParams('stock', 'permissions'));
|
|
410
|
+
this.Plot = new plot_1.default(getModuleParams('stock', 'plot'));
|
|
411
|
+
this.PrimaryColor = new primaryColor_1.default(getModuleParams('stock', 'primary_color'));
|
|
412
|
+
this.Product = new product_1.default(getModuleParams('stock', 'product'));
|
|
413
|
+
this.ProductAttribute = new productAttribute_1.default(getModuleParams('stock', 'product_attribute'));
|
|
414
|
+
this.ProductCategory = new productCategory_1.default(getModuleParams('stock', 'product_category'));
|
|
415
|
+
this.ProductColor = new productColor_1.default(getModuleParams('stock', 'product_color'));
|
|
416
|
+
this.ProductImage = new productImage_1.default(getModuleParams('stock', 'product_image'));
|
|
417
|
+
this.ProductPart = new productPart_1.default(getModuleParams('stock', 'product_part'));
|
|
418
|
+
this.ProductSubCategory = new productSubCategory_1.default(getModuleParams('stock', 'product_sub_category'));
|
|
419
|
+
this.ProductUse = new productUse_1.default(getModuleParams('stock', 'product_use'));
|
|
420
|
+
this.ProductUseAssoc = new productUseAssoc_1.default(getModuleParams('stock', 'product_use_assoc'));
|
|
421
|
+
this.ProductName = new productName_1.default(getModuleParams('stock', 'product_name'));
|
|
422
|
+
this.Promotion = new promotion_1.default(getModuleParams('stock', 'promotion'));
|
|
423
|
+
this.PromotionAssoc = new promotionAssoc_1.default(getModuleParams('stock', 'promotion_assoc'));
|
|
424
|
+
this.Providers = new provider_1.default(getModuleParams('stock', 'providers'));
|
|
425
|
+
this.ProviderType = new providerType_1.default(getModuleParams('stock', 'provider_type'));
|
|
426
|
+
this.PurchaseConditions = new purchaseCondition_1.default(getModuleParams('stock', 'purchase_conditions'));
|
|
427
|
+
this.ReasonForExemption = new reasonForExemption_1.default(getModuleParams('stock', 'reason_for_exemption'));
|
|
428
|
+
this.RefreshToken = new refreshToken_1.default(getModuleParams('stock', 'refresh_token'));
|
|
429
|
+
this.SegmentsArea = new segmentsArea_1.default(getModuleParams('stock', 'segments_area'));
|
|
430
|
+
this.Sessions = new sessions_1.default(getModuleParams('stock', 'sessions'));
|
|
431
|
+
this.Shippings = new shippings_1.default(getModuleParams('stock', 'shippings'));
|
|
432
|
+
this.SimilarProduct = new similarProduct_1.default(getModuleParams('stock', 'similar_product'));
|
|
433
|
+
this.SocialMedia = new socialMedia_1.default(getModuleParams('stock', 'social_media'));
|
|
434
|
+
this.StoreOperator = new storeOperator_1.default(getModuleParams('stock', 'store_operator'));
|
|
435
|
+
this.Swift = new swift_1.default(getModuleParams('stock', 'swift'));
|
|
436
|
+
this.TaskAttachment = new taskAttachment_1.default(getModuleParams('stock', 'task_attachment'));
|
|
437
|
+
this.TaskNote = new taskNote_1.default(getModuleParams('stock', 'task_note'));
|
|
438
|
+
this.Tasks = new task_1.default(getModuleParams('stock', 'tasks'));
|
|
439
|
+
this.TasksGroup = new taskGroup_1.default(getModuleParams('stock', 'tasks_group'));
|
|
440
|
+
this.TypeOfInventory = new typeOfInventory_1.default(getModuleParams('stock', 'type_of_inventory'));
|
|
441
|
+
this.TypeOfLocation = new typeOfLocation_1.default(getModuleParams('stock', 'type_of_location'));
|
|
442
|
+
this.UnitOfMeasure = new unitOfMeasure_1.default(getModuleParams('stock', 'unit_of_measure'));
|
|
443
|
+
this.UserPermissions = new userPermission_1.default(getModuleParams('stock', 'UserPermissions'));
|
|
444
|
+
this.UserPositions = new userPositions_1.default(getModuleParams('stock', 'user_positions'));
|
|
445
|
+
this.Users = new user_1.default(getModuleParams('stock', 'users'));
|
|
446
|
+
this.UserTokens = new userToken_1.default(getModuleParams('stock', 'user_tokens'));
|
|
447
|
+
this.VatTax = new vatTax_1.default(getModuleParams('stock', 'vat_tax'));
|
|
448
|
+
this.VatTaxZone = new vatTaxZone_1.default(getModuleParams('stock', 'vat_tax_zone'));
|
|
449
|
+
this.Workflow = new workflow_1.default(getModuleParams('stock', 'workflow'));
|
|
450
|
+
this.DynamicData = new dynamicData_1.default(getModuleParams('stock', 'dynamic_data'));
|
|
451
|
+
this.DeliveryMethods = new deliveryMethods_1.default(getModuleParams('stock', 'delivery_methods'));
|
|
452
|
+
this.MaturityDates = new maturityDates_1.default(getModuleParams('stock', 'maturity_dates'));
|
|
453
|
+
this.PaymentMethods = new paymentMethods_1.default(getModuleParams('stock', 'payment_methods'));
|
|
454
|
+
this.Vehicles = new vehicles_1.default(getModuleParams('stock', 'vehicles'));
|
|
455
|
+
this.ExternalDocumentType = new externalDocumentType_1.default(getModuleParams('stock', 'external_document_type'));
|
|
456
|
+
this.DocumentSet = new documentSet_1.default(getModuleParams('stock', 'document_set'));
|
|
457
|
+
this.Payment = new payment_1.default(getModuleParams('stock', 'payment'));
|
|
458
|
+
this.ExternalDocumentHeader = new externalDocumentHeader_1.default(getModuleParams('stock', 'external_document_header'));
|
|
459
|
+
this.ClientCurrentAccount = new clientCurrentAccount_1.default(getModuleParams('stock', 'client_current_account'));
|
|
460
|
+
this.ProviderCurrentAccount = new providerCurrentAccount_1.default(getModuleParams('stock', 'provider_current_account'));
|
|
461
|
+
this.MoloniRequest = new moloniRequest_1.default(getModuleParams('stock', 'moloni_request'));
|
|
462
|
+
this.VatValidation = new vatValidation_1.default(getModuleParams('stock', 'vat_validation'));
|
|
463
|
+
this.ProductNamePreset = new productNamePreset_1.default(getModuleParams('stock', 'product_name_preset'));
|
|
464
|
+
this.StockMovement = new stockMovement_1.default(getModuleParams('stock', 'stock_movement'));
|
|
465
|
+
this.ZipCode = new zipCode_1.default(getModuleParams('stock', 'zip_code'));
|
|
466
|
+
this.Tenant = new tenant_1.default(getModuleParams('stock', 'tenant'));
|
|
467
|
+
this.PreSale = new preSale_1.default(getModuleParams('stock', 'pre_sale'));
|
|
468
|
+
this.PreSaleProduct = new preSaleProduct_1.default(getModuleParams('stock', 'pre_sale_product'));
|
|
469
|
+
this.Cabide = new cabide_1.default(getModuleParams('stock', 'cabide'));
|
|
470
|
+
this.CabideProduct = new cabideProduct_1.default(getModuleParams('stock', 'cabide_product'));
|
|
471
|
+
this.OrderManagement = new orderManagement_1.default(getModuleParams('stock', 'order_management'));
|
|
472
|
+
this.Npc = new npc_1.default(getModuleParams('stock', 'npc'));
|
|
473
|
+
this.Printer = new printer_1.default(getModuleParams('stock', 'printer'));
|
|
474
|
+
this.SchedulePrintJob = new schedulePrintJob_1.default(getModuleParams('stock', 'schedule_print_job'));
|
|
475
|
+
this.QueryList = new queryList_1.default(getModuleParams('stock', 'query_list'));
|
|
476
|
+
this.QueryParameter = new queryParameter_1.default(getModuleParams('stock', 'query_parameter'));
|
|
477
|
+
this.ReturnReason = new returnReason_1.default(getModuleParams('stock', 'return_reason'));
|
|
478
|
+
this.PropostaSheets = new propostaSheets_1.default(getModuleParams('stock', 'proposta_sheets'));
|
|
479
|
+
this.Schedule = new schedule_1.default(getModuleParams('stock', 'schedule'));
|
|
480
|
+
this.GoogleFilePermission = new googleFilePermission_1.default(getModuleParams('stock', 'google_file_permission'));
|
|
481
|
+
this.Settings = new settings_1.default(getModuleParams('stock', 'settings'));
|
|
482
|
+
this.Tickets = new tickets_1.default(getModuleParams('stock', 'tickets'));
|
|
483
|
+
this.Channel = new channel_1.default(getModuleParams('stock', 'channel'));
|
|
484
|
+
this.TicketsLanguage = new language_2.default(getModuleParams('stock', 'tickets_language'));
|
|
485
|
+
this.Clt = new clt_1.default(getModuleParams('stock', 'clt'));
|
|
486
|
+
this.StartDocumentHeaderLastUpdate = new startDocumentHeaderLastUpdate_1.default(getModuleParams('stock', 'start_document_header_last_update'));
|
|
487
|
+
this.ErrorHandler = new errorHandler_1.default(getModuleParams('stock', 'error_handler'));
|
|
488
|
+
this.Persona = new persona_1.default(getModuleParams('stock', 'persona'));
|
|
489
|
+
this.ProjectInfo = new projectInfo_1.default(getModuleParams('stock', 'project_info'));
|
|
490
|
+
this.Order = new order_1.default(getModuleParams('stock', 'order'));
|
|
491
|
+
this.Purchase = new purchase_1.default(getModuleParams('stock', 'purchase'));
|
|
492
|
+
this.MaterialEntrance = new materialEntrance_1.default(getModuleParams('stock', 'material_entrance'));
|
|
493
|
+
this.Transformado = new transformado_1.default(getModuleParams('stock', 'transformado'));
|
|
494
|
+
this.UpfrontReturn = new upfrontReturn_1.default(getModuleParams('stock', 'upfront_return'));
|
|
495
|
+
this.SavedEmPicking = new savedEmPicking_1.default(getModuleParams('stock', 'saved_em_picking'));
|
|
496
|
+
this.EmailTemplate = new emailTemplate_1.default(getModuleParams('stock', 'email_template'));
|
|
497
|
+
this.EmailTemplateAttachment = new emailTemplateAttachment_1.default(getModuleParams('stock', 'email_template_attachment'));
|
|
492
498
|
}
|
|
493
|
-
API.prototype.getModuleParams = function (service, module) {
|
|
494
|
-
return {
|
|
495
|
-
api: this.client,
|
|
496
|
-
route: "".concat(this.services[service].authPath).concat(module),
|
|
497
|
-
publicRoute: "".concat(this.services[service].publicPath).concat(module),
|
|
498
|
-
};
|
|
499
|
-
};
|
|
500
499
|
return API;
|
|
501
500
|
}());
|
|
502
501
|
exports.API = API;
|