@nomalism-com/api 0.8.19 → 0.8.21
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/{src/index.ts → dist/index.d.ts} +115 -231
- package/dist/index.js +257 -0
- package/dist/modules/documentManagement/index.d.ts +2 -0
- package/dist/modules/documentManagement/index.js +7 -0
- package/dist/modules/documentManagement/multimedia.d.ts +5 -0
- package/dist/modules/documentManagement/multimedia.js +69 -0
- package/dist/modules/integration/dynamicData.d.ts +8 -0
- package/dist/modules/integration/dynamicData.js +103 -0
- package/dist/modules/integration/field.d.ts +26 -0
- package/dist/modules/integration/field.js +93 -0
- package/dist/modules/integration/fieldGroup.d.ts +12 -0
- package/dist/modules/integration/fieldGroup.js +118 -0
- package/dist/modules/integration/file.d.ts +5 -0
- package/dist/modules/integration/file.js +83 -0
- package/dist/modules/integration/history.d.ts +11 -0
- package/dist/modules/integration/history.js +63 -0
- package/dist/modules/integration/index.d.ts +2 -0
- package/dist/modules/integration/index.js +7 -0
- package/dist/modules/integration/observation.d.ts +8 -0
- package/dist/modules/integration/observation.js +94 -0
- package/dist/modules/integration/observationType.d.ts +10 -0
- package/dist/modules/integration/observationType.js +107 -0
- package/dist/modules/integration/task.d.ts +10 -0
- package/dist/modules/integration/task.js +113 -0
- package/dist/modules/integration/taskAttachment.d.ts +7 -0
- package/dist/modules/integration/taskAttachment.js +72 -0
- package/dist/modules/integration/taskGroup.d.ts +8 -0
- package/dist/modules/integration/taskGroup.js +103 -0
- package/dist/modules/integration/taskNote.d.ts +8 -0
- package/dist/modules/integration/taskNote.js +92 -0
- package/dist/modules/print/index.d.ts +4 -0
- package/dist/modules/print/index.js +9 -0
- package/dist/modules/print/npc.d.ts +5 -0
- package/dist/modules/print/npc.js +70 -0
- package/dist/modules/print/printer.d.ts +6 -0
- package/dist/modules/print/printer.js +70 -0
- package/dist/modules/print/schedulePrintJob.d.ts +8 -0
- package/dist/modules/print/schedulePrintJob.js +139 -0
- package/dist/modules/stock/attribute.d.ts +16 -0
- package/dist/modules/stock/attribute.js +143 -0
- package/dist/modules/stock/attributeValue.d.ts +12 -0
- package/dist/modules/stock/attributeValue.js +140 -0
- package/dist/modules/stock/cabide.d.ts +15 -0
- package/dist/modules/stock/cabide.js +151 -0
- package/dist/modules/stock/cabideProduct.d.ts +10 -0
- package/dist/modules/stock/cabideProduct.js +127 -0
- package/dist/modules/stock/clientCurrentAccount.d.ts +5 -0
- package/dist/modules/stock/clientCurrentAccount.js +61 -0
- package/dist/modules/stock/color.d.ts +13 -0
- package/dist/modules/stock/color.js +139 -0
- package/dist/modules/stock/composition.d.ts +12 -0
- package/dist/modules/stock/composition.js +127 -0
- package/dist/modules/stock/compositionMaterial.d.ts +13 -0
- package/dist/modules/stock/compositionMaterial.js +140 -0
- package/dist/modules/stock/documentHeader.d.ts +45 -0
- package/dist/modules/stock/documentHeader.js +361 -0
- package/dist/modules/stock/documentLine.d.ts +24 -0
- package/dist/modules/stock/documentLine.js +125 -0
- package/dist/modules/stock/documentLineAssoc.d.ts +20 -0
- package/dist/modules/stock/documentLineAssoc.js +154 -0
- package/dist/modules/stock/documentLineFolder.d.ts +6 -0
- package/dist/modules/stock/documentLineFolder.js +92 -0
- package/dist/modules/stock/documentLineState.d.ts +10 -0
- package/dist/modules/stock/documentLineState.js +114 -0
- package/dist/modules/stock/documentLineStateCriteria.d.ts +20 -0
- package/dist/modules/stock/documentLineStateCriteria.js +121 -0
- package/dist/modules/stock/documentSet.d.ts +8 -0
- package/dist/modules/stock/documentSet.js +114 -0
- package/dist/modules/stock/documentType.d.ts +14 -0
- package/dist/modules/stock/documentType.js +117 -0
- package/dist/modules/stock/externalDocumentHeader.d.ts +15 -0
- package/dist/modules/stock/externalDocumentHeader.js +135 -0
- package/dist/modules/stock/externalDocumentType.d.ts +6 -0
- package/dist/modules/stock/externalDocumentType.js +70 -0
- package/dist/modules/stock/index.d.ts +3 -0
- package/dist/modules/stock/index.js +8 -0
- package/dist/modules/stock/location.d.ts +12 -0
- package/dist/modules/stock/location.js +140 -0
- package/dist/modules/stock/maintenance.d.ts +12 -0
- package/dist/modules/stock/maintenance.js +140 -0
- package/dist/modules/stock/maintenanceAssoc.d.ts +12 -0
- package/dist/modules/stock/maintenanceAssoc.js +127 -0
- package/dist/modules/stock/maintenancePreset.d.ts +10 -0
- package/dist/modules/stock/maintenancePreset.js +114 -0
- package/dist/modules/stock/maintenancePresetAssoc.d.ts +8 -0
- package/dist/modules/stock/maintenancePresetAssoc.js +91 -0
- package/dist/modules/stock/maintenanceType.d.ts +13 -0
- package/dist/modules/stock/maintenanceType.js +140 -0
- package/dist/modules/stock/moloniRequest.d.ts +5 -0
- package/dist/modules/stock/moloniRequest.js +59 -0
- package/dist/modules/stock/orderManagement.d.ts +11 -0
- package/dist/modules/stock/orderManagement.js +88 -0
- package/dist/modules/stock/payment.d.ts +22 -0
- package/dist/modules/stock/payment.js +210 -0
- package/dist/modules/stock/plot.d.ts +32 -0
- package/dist/modules/stock/plot.js +238 -0
- package/dist/modules/stock/preSale.d.ts +11 -0
- package/dist/modules/stock/preSale.js +125 -0
- package/dist/modules/stock/preSaleProduct.d.ts +4 -0
- package/dist/modules/stock/preSaleProduct.js +70 -0
- package/dist/modules/stock/primaryColor.d.ts +13 -0
- package/dist/modules/stock/primaryColor.js +140 -0
- package/dist/modules/stock/product.d.ts +31 -0
- package/dist/modules/stock/product.js +239 -0
- package/dist/modules/stock/productAttribute.d.ts +12 -0
- package/dist/modules/stock/productAttribute.js +127 -0
- package/dist/modules/stock/productCategory.d.ts +13 -0
- package/dist/modules/stock/productCategory.js +140 -0
- package/dist/modules/stock/productColor.d.ts +12 -0
- package/dist/modules/stock/productColor.js +127 -0
- package/dist/modules/stock/productImage.d.ts +14 -0
- package/dist/modules/stock/productImage.js +130 -0
- package/dist/modules/stock/productName.d.ts +13 -0
- package/dist/modules/stock/productName.js +140 -0
- package/dist/modules/stock/productNamePreset.d.ts +13 -0
- package/dist/modules/stock/productNamePreset.js +140 -0
- package/dist/modules/stock/productPart.d.ts +14 -0
- package/dist/modules/stock/productPart.js +139 -0
- package/dist/modules/stock/productSubCategory.d.ts +13 -0
- package/dist/modules/stock/productSubCategory.js +139 -0
- package/dist/modules/stock/productUse.d.ts +13 -0
- package/dist/modules/stock/productUse.js +140 -0
- package/dist/modules/stock/productUseAssoc.d.ts +12 -0
- package/dist/modules/stock/productUseAssoc.js +126 -0
- package/dist/modules/stock/promotion.d.ts +13 -0
- package/dist/modules/stock/promotion.js +140 -0
- package/dist/modules/stock/promotionAssoc.d.ts +12 -0
- package/dist/modules/stock/promotionAssoc.js +127 -0
- package/dist/modules/stock/providerCurrentAccount.d.ts +5 -0
- package/dist/modules/stock/providerCurrentAccount.js +61 -0
- package/dist/modules/stock/queryList.d.ts +11 -0
- package/dist/modules/stock/queryList.js +116 -0
- package/dist/modules/stock/queryParameter.d.ts +8 -0
- package/dist/modules/stock/queryParameter.js +105 -0
- package/dist/modules/stock/returnReason.d.ts +6 -0
- package/dist/modules/stock/returnReason.js +92 -0
- package/dist/modules/stock/similarProduct.d.ts +12 -0
- package/dist/modules/stock/similarProduct.js +127 -0
- package/dist/modules/stock/stockMovement.d.ts +8 -0
- package/dist/modules/stock/stockMovement.js +75 -0
- package/dist/modules/stock/topMenu.d.ts +5 -0
- package/dist/modules/stock/topMenu.js +61 -0
- package/dist/modules/stock/typeOfInventory.d.ts +13 -0
- package/dist/modules/stock/typeOfInventory.js +140 -0
- package/dist/modules/stock/typeOfLocation.d.ts +13 -0
- package/dist/modules/stock/typeOfLocation.js +140 -0
- package/dist/modules/stock/unitOfMeasure.d.ts +13 -0
- package/dist/modules/stock/unitOfMeasure.js +140 -0
- package/dist/modules/stock/vatTax.d.ts +13 -0
- package/dist/modules/stock/vatTax.js +140 -0
- package/dist/modules/stock/vatTaxZone.d.ts +14 -0
- package/dist/modules/stock/vatTaxZone.js +140 -0
- package/dist/modules/stock/vatValidation.d.ts +4 -0
- package/dist/modules/stock/vatValidation.js +63 -0
- package/dist/modules/stock/websiteRequest.d.ts +10 -0
- package/dist/modules/stock/websiteRequest.js +96 -0
- package/dist/modules/stock/workflow.d.ts +8 -0
- package/dist/modules/stock/workflow.js +103 -0
- package/dist/modules/user/address.d.ts +12 -0
- package/dist/modules/user/address.js +127 -0
- package/dist/modules/user/bankData.d.ts +12 -0
- package/dist/modules/user/bankData.js +127 -0
- package/dist/modules/user/clientType.d.ts +12 -0
- package/dist/modules/user/clientType.js +127 -0
- package/dist/modules/user/clients.d.ts +17 -0
- package/dist/modules/user/clients.js +140 -0
- package/dist/modules/user/commissioner.d.ts +15 -0
- package/dist/modules/user/commissioner.js +140 -0
- package/dist/modules/user/contactTypes.d.ts +12 -0
- package/dist/modules/user/contactTypes.js +127 -0
- package/dist/modules/user/contacts.d.ts +14 -0
- package/dist/modules/user/contacts.js +149 -0
- package/dist/modules/user/country.d.ts +12 -0
- package/dist/modules/user/country.js +140 -0
- package/dist/modules/user/deliveryMethods.d.ts +8 -0
- package/dist/modules/user/deliveryMethods.js +116 -0
- package/dist/modules/user/entityList.d.ts +7 -0
- package/dist/modules/user/entityList.js +105 -0
- package/dist/modules/user/favorites.d.ts +7 -0
- package/dist/modules/user/favorites.js +92 -0
- package/dist/modules/user/groupPermission.d.ts +7 -0
- package/dist/modules/user/groupPermission.js +94 -0
- package/dist/modules/user/index.d.ts +3 -0
- package/dist/modules/user/index.js +8 -0
- package/dist/modules/user/language.d.ts +12 -0
- package/dist/modules/user/language.js +127 -0
- package/dist/modules/user/logout.d.ts +2 -0
- package/dist/modules/user/logout.js +58 -0
- package/dist/modules/user/maturityDates.d.ts +8 -0
- package/dist/modules/user/maturityDates.js +116 -0
- package/dist/modules/user/password.d.ts +5 -0
- package/dist/modules/user/password.js +68 -0
- package/dist/modules/user/paymentCondition.d.ts +11 -0
- package/dist/modules/user/paymentCondition.js +127 -0
- package/dist/modules/user/paymentMethods.d.ts +8 -0
- package/dist/modules/user/paymentMethods.js +116 -0
- package/dist/modules/user/permission.d.ts +7 -0
- package/dist/modules/user/permission.js +94 -0
- package/dist/modules/user/provider.d.ts +15 -0
- package/dist/modules/user/provider.js +153 -0
- package/dist/modules/user/providerType.d.ts +12 -0
- package/dist/modules/user/providerType.js +127 -0
- package/dist/modules/user/purchaseCondition.d.ts +12 -0
- package/dist/modules/user/purchaseCondition.js +127 -0
- package/dist/modules/user/reasonForExemption.d.ts +12 -0
- package/dist/modules/user/reasonForExemption.js +127 -0
- package/dist/modules/user/refreshToken.d.ts +5 -0
- package/dist/modules/user/refreshToken.js +59 -0
- package/dist/modules/user/segmentsArea.d.ts +12 -0
- package/dist/modules/user/segmentsArea.js +127 -0
- package/dist/modules/user/sessions.d.ts +5 -0
- package/dist/modules/user/sessions.js +59 -0
- package/dist/modules/user/shippings.d.ts +11 -0
- package/dist/modules/user/shippings.js +127 -0
- package/dist/modules/user/socialMedia.d.ts +11 -0
- package/dist/modules/user/socialMedia.js +127 -0
- package/dist/modules/user/storeOperator.d.ts +16 -0
- package/dist/modules/user/storeOperator.js +151 -0
- package/dist/modules/user/swift.d.ts +12 -0
- package/dist/modules/user/swift.js +127 -0
- package/dist/modules/user/tenant.d.ts +6 -0
- package/dist/modules/user/tenant.js +92 -0
- package/dist/modules/user/user.d.ts +18 -0
- package/dist/modules/user/user.js +151 -0
- package/dist/modules/user/userPermission.d.ts +7 -0
- package/dist/modules/user/userPermission.js +83 -0
- package/dist/modules/user/userPositions.d.ts +12 -0
- package/dist/modules/user/userPositions.js +127 -0
- package/dist/modules/user/userToken.d.ts +9 -0
- package/dist/modules/user/userToken.js +116 -0
- package/dist/modules/user/vehicles.d.ts +6 -0
- package/dist/modules/user/vehicles.js +92 -0
- package/dist/modules/user/zipCode.d.ts +6 -0
- package/dist/modules/user/zipCode.js +69 -0
- package/dist/shared/client.d.ts +2 -0
- package/dist/shared/client.js +9 -0
- package/package.json +53 -48
- package/.editorconfig +0 -9
- package/.eslintignore +0 -3
- package/.eslintrc.json +0 -51
- package/.nvmrc +0 -1
- package/package-lock.json +0 -6181
- package/prettier.config.js +0 -5
- package/src/modules/documentManagement/index.ts +0 -6
- package/src/modules/documentManagement/multimedia.ts +0 -33
- package/src/modules/integration/dynamicData.ts +0 -45
- package/src/modules/integration/field.ts +0 -38
- package/src/modules/integration/fieldGroup.ts +0 -68
- package/src/modules/integration/file.ts +0 -30
- package/src/modules/integration/history.ts +0 -30
- package/src/modules/integration/index.ts +0 -6
- package/src/modules/integration/observation.ts +0 -43
- package/src/modules/integration/observationType.ts +0 -55
- package/src/modules/integration/task.ts +0 -66
- package/src/modules/integration/taskAttachment.ts +0 -26
- package/src/modules/integration/taskGroup.ts +0 -45
- package/src/modules/integration/taskNote.ts +0 -39
- package/src/modules/print/index.ts +0 -10
- package/src/modules/print/npc.ts +0 -24
- package/src/modules/print/printer.ts +0 -26
- package/src/modules/print/schedulePrintJob.ts +0 -75
- package/src/modules/stock/attribute.ts +0 -101
- package/src/modules/stock/attributeValue.ts +0 -91
- package/src/modules/stock/cabide.ts +0 -105
- package/src/modules/stock/cabideProduct.ts +0 -67
- package/src/modules/stock/clientCurrentAccount.ts +0 -22
- package/src/modules/stock/color.ts +0 -90
- package/src/modules/stock/composition.ts +0 -81
- package/src/modules/stock/compositionMaterial.ts +0 -92
- package/src/modules/stock/documentHeader.ts +0 -324
- package/src/modules/stock/documentLine.ts +0 -89
- package/src/modules/stock/documentLineAssoc.ts +0 -117
- package/src/modules/stock/documentLineFolder.ts +0 -43
- package/src/modules/stock/documentLineState.ts +0 -66
- package/src/modules/stock/documentLineStateCriteria.ts +0 -90
- package/src/modules/stock/documentSet.ts +0 -53
- package/src/modules/stock/documentType.ts +0 -68
- package/src/modules/stock/externalDocumentHeader.ts +0 -85
- package/src/modules/stock/externalDocumentType.ts +0 -26
- package/src/modules/stock/index.ts +0 -8
- package/src/modules/stock/location.ts +0 -91
- package/src/modules/stock/maintenance.ts +0 -91
- package/src/modules/stock/maintenanceAssoc.ts +0 -81
- package/src/modules/stock/maintenancePreset.ts +0 -55
- package/src/modules/stock/maintenancePresetAssoc.ts +0 -42
- package/src/modules/stock/maintenanceType.ts +0 -92
- package/src/modules/stock/moloniRequest.ts +0 -18
- package/src/modules/stock/orderManagement.ts +0 -41
- package/src/modules/stock/payment.ts +0 -161
- package/src/modules/stock/plot.ts +0 -196
- package/src/modules/stock/preSale.ts +0 -76
- package/src/modules/stock/preSaleProduct.ts +0 -23
- package/src/modules/stock/primaryColor.ts +0 -92
- package/src/modules/stock/product.ts +0 -197
- package/src/modules/stock/productAttribute.ts +0 -81
- package/src/modules/stock/productCategory.ts +0 -92
- package/src/modules/stock/productColor.ts +0 -81
- package/src/modules/stock/productImage.ts +0 -86
- package/src/modules/stock/productName.ts +0 -92
- package/src/modules/stock/productNamePreset.ts +0 -92
- package/src/modules/stock/productPart.ts +0 -91
- package/src/modules/stock/productSubCategory.ts +0 -90
- package/src/modules/stock/productUse.ts +0 -92
- package/src/modules/stock/productUseAssoc.ts +0 -78
- package/src/modules/stock/promotion.ts +0 -93
- package/src/modules/stock/promotionAssoc.ts +0 -81
- package/src/modules/stock/providerCurrentAccount.ts +0 -22
- package/src/modules/stock/queryList.ts +0 -61
- package/src/modules/stock/queryParameter.ts +0 -50
- package/src/modules/stock/returnReason.ts +0 -40
- package/src/modules/stock/similarProduct.ts +0 -81
- package/src/modules/stock/stockMovement.ts +0 -32
- package/src/modules/stock/topMenu.ts +0 -22
- package/src/modules/stock/typeOfInventory.ts +0 -92
- package/src/modules/stock/typeOfLocation.ts +0 -92
- package/src/modules/stock/unitOfMeasure.ts +0 -92
- package/src/modules/stock/vatTax.ts +0 -92
- package/src/modules/stock/vatTaxZone.ts +0 -94
- package/src/modules/stock/vatValidation.ts +0 -20
- package/src/modules/stock/websiteRequest.ts +0 -51
- package/src/modules/stock/workflow.ts +0 -50
- package/src/modules/user/address.ts +0 -81
- package/src/modules/user/bankData.ts +0 -81
- package/src/modules/user/clientType.ts +0 -80
- package/src/modules/user/clients.ts +0 -100
- package/src/modules/user/commissioner.ts +0 -96
- package/src/modules/user/contactTypes.ts +0 -80
- package/src/modules/user/contacts.ts +0 -100
- package/src/modules/user/country.ts +0 -90
- package/src/modules/user/deliveryMethods.ts +0 -60
- package/src/modules/user/entityList.ts +0 -42
- package/src/modules/user/favorites.ts +0 -36
- package/src/modules/user/groupPermission.ts +0 -44
- package/src/modules/user/index.ts +0 -8
- package/src/modules/user/language.ts +0 -80
- package/src/modules/user/logout.ts +0 -12
- package/src/modules/user/maturityDates.ts +0 -60
- package/src/modules/user/password.ts +0 -21
- package/src/modules/user/paymentCondition.ts +0 -79
- package/src/modules/user/paymentMethods.ts +0 -60
- package/src/modules/user/permission.ts +0 -44
- package/src/modules/user/provider.ts +0 -106
- package/src/modules/user/providerType.ts +0 -80
- package/src/modules/user/purchaseCondition.ts +0 -82
- package/src/modules/user/reasonForExemption.ts +0 -80
- package/src/modules/user/refreshToken.ts +0 -18
- package/src/modules/user/segmentsArea.ts +0 -80
- package/src/modules/user/sessions.ts +0 -18
- package/src/modules/user/shippings.ts +0 -79
- package/src/modules/user/socialMedia.ts +0 -79
- package/src/modules/user/storeOperator.ts +0 -104
- package/src/modules/user/swift.ts +0 -80
- package/src/modules/user/tenant.ts +0 -36
- package/src/modules/user/user.ts +0 -111
- package/src/modules/user/userPermission.ts +0 -37
- package/src/modules/user/userPositions.ts +0 -80
- package/src/modules/user/userToken.ts +0 -69
- package/src/modules/user/vehicles.ts +0 -40
- package/src/modules/user/zipCode.ts +0 -23
- package/src/shared/client.ts +0 -5
- package/tsconfig.json +0 -19
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { shared, CompositionMaterial as Entity } from '@nomalism-com/types';
|
|
2
|
+
export import IFindRequest = Entity.IFindRequest;
|
|
3
|
+
export import IFindResponse = Entity.IFindResponse;
|
|
4
|
+
export import IFindPaginatedRequest = Entity.IFindPaginatedRequest;
|
|
5
|
+
export import IFindMinifiedRequest = shared.IFindMinifiedRequest;
|
|
6
|
+
export import IFindMinifiedResponse = shared.IFindMinifiedResponse;
|
|
7
|
+
export import IFindByOwnerIdRequest = shared.IFindByOwnerIdRequest;
|
|
8
|
+
export import ICreateRequest = Entity.ICreateRequest;
|
|
9
|
+
export import IEntity = Entity.Entity;
|
|
10
|
+
export import IUpdateRequest = Entity.IUpdateRequest;
|
|
11
|
+
export type IPaginationResponse = shared.IPaginationResponse<Entity.IFindResponse>;
|
|
12
|
+
export declare const route: string;
|
|
13
|
+
export declare const find: (selector: Entity.IFindRequest) => Promise<Entity.IFindResponse[]>, findPaginated: (selector: Entity.IFindPaginatedRequest) => Promise<Entity.IFindWithPaginationResponse>, findMinified: (params?: shared.IFindMinifiedRequest | undefined) => Promise<shared.IFindMinifiedResponse[]>, findByOwnerId: (params: shared.IFindByOwnerIdRequest) => Promise<Entity.IFindByOwnerIdResponse[]>, findById: (selector: shared.IFindByIdRequest) => Promise<Entity.IFindByIdResponse | null>, create: (data: Entity.ICreateRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").CompositionMaterial>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").CompositionMaterial | null>, deleteOne: (selector: shared.IFindByIdRequest, data?: shared.WithUpdatedBy | undefined) => Promise<import("@nomalism-com/types/dist/shared/entities").CompositionMaterial | null>;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.deleteOne = exports.update = exports.create = exports.findById = exports.findByOwnerId = exports.findMinified = exports.findPaginated = exports.find = exports.route = void 0;
|
|
43
|
+
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
+
var _1 = require(".");
|
|
45
|
+
exports.route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "composition_material/");
|
|
46
|
+
var repository = {
|
|
47
|
+
find: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
|
+
var response;
|
|
49
|
+
return __generator(this, function (_a) {
|
|
50
|
+
switch (_a.label) {
|
|
51
|
+
case 0: return [4, client_1.default.get("".concat(exports.route), { params: params })];
|
|
52
|
+
case 1:
|
|
53
|
+
response = _a.sent();
|
|
54
|
+
return [2, response.data];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}); },
|
|
58
|
+
findPaginated: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
59
|
+
var response;
|
|
60
|
+
return __generator(this, function (_a) {
|
|
61
|
+
switch (_a.label) {
|
|
62
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "paginated"), { params: params })];
|
|
63
|
+
case 1:
|
|
64
|
+
response = _a.sent();
|
|
65
|
+
return [2, response.data];
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}); },
|
|
69
|
+
findMinified: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
70
|
+
var response;
|
|
71
|
+
return __generator(this, function (_a) {
|
|
72
|
+
switch (_a.label) {
|
|
73
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "minified"), {
|
|
74
|
+
params: params,
|
|
75
|
+
})];
|
|
76
|
+
case 1:
|
|
77
|
+
response = _a.sent();
|
|
78
|
+
return [2, response.data];
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}); },
|
|
82
|
+
findByOwnerId: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
83
|
+
var response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "by_owner"), {
|
|
87
|
+
params: params,
|
|
88
|
+
})];
|
|
89
|
+
case 1:
|
|
90
|
+
response = _a.sent();
|
|
91
|
+
return [2, response.data];
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}); },
|
|
95
|
+
findById: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
|
|
96
|
+
var response;
|
|
97
|
+
return __generator(this, function (_a) {
|
|
98
|
+
switch (_a.label) {
|
|
99
|
+
case 0: return [4, client_1.default.get("".concat(exports.route).concat(selector.id))];
|
|
100
|
+
case 1:
|
|
101
|
+
response = _a.sent();
|
|
102
|
+
return [2, response.data];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}); },
|
|
106
|
+
create: function (body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
107
|
+
var response;
|
|
108
|
+
return __generator(this, function (_a) {
|
|
109
|
+
switch (_a.label) {
|
|
110
|
+
case 0: return [4, client_1.default.post("".concat(exports.route), body)];
|
|
111
|
+
case 1:
|
|
112
|
+
response = _a.sent();
|
|
113
|
+
return [2, response.data];
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}); },
|
|
117
|
+
update: function (selector, body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
118
|
+
var response;
|
|
119
|
+
return __generator(this, function (_a) {
|
|
120
|
+
switch (_a.label) {
|
|
121
|
+
case 0: return [4, client_1.default.put("".concat(exports.route).concat(selector.id), body)];
|
|
122
|
+
case 1:
|
|
123
|
+
response = _a.sent();
|
|
124
|
+
return [2, response.data];
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}); },
|
|
128
|
+
deleteOne: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
|
|
129
|
+
var response;
|
|
130
|
+
return __generator(this, function (_a) {
|
|
131
|
+
switch (_a.label) {
|
|
132
|
+
case 0: return [4, client_1.default.delete("".concat(exports.route).concat(selector.id))];
|
|
133
|
+
case 1:
|
|
134
|
+
response = _a.sent();
|
|
135
|
+
return [2, response.data];
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
}); },
|
|
139
|
+
};
|
|
140
|
+
exports.find = repository.find, exports.findPaginated = repository.findPaginated, exports.findMinified = repository.findMinified, exports.findByOwnerId = repository.findByOwnerId, exports.findById = repository.findById, exports.create = repository.create, exports.update = repository.update, exports.deleteOne = repository.deleteOne;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { shared, DocumentHeader as Entity } from '@nomalism-com/types';
|
|
2
|
+
export import IFindByDocumentLineStateRequest = Entity.IFindByDocumentLineStateRequest;
|
|
3
|
+
export import IFindByDocumentLineStateResponse = Entity.IFindByDocumentLineStateResponse;
|
|
4
|
+
export import IFindOneResponse = Entity.IFindOneResponse;
|
|
5
|
+
export import IFindRequest = Entity.IFindRequest;
|
|
6
|
+
export import IFindByCommissionerIdRequest = Entity.IFindByCommissionerIdRequest;
|
|
7
|
+
export import IFindByCommissionerIdResponse = Entity.IFindByCommissionerIdResponse;
|
|
8
|
+
export import IFindMinifiedRequest = shared.IFindMinifiedRequest;
|
|
9
|
+
export import IFindMinifiedResponse = shared.IFindMinifiedResponse;
|
|
10
|
+
export import IBasicSearchRequest = Entity.IBasicSearchRequest;
|
|
11
|
+
export import IBasicSearchResponse = Entity.IBasicSearchResponse;
|
|
12
|
+
export import ICreateRequest = Entity.ICreateRequest;
|
|
13
|
+
export import IUpdateRequest = Entity.IUpdateRequest;
|
|
14
|
+
export import IEntity = Entity.Entity;
|
|
15
|
+
export import IStartDocumentHeaderVirtuals = Entity.IStartDocumentHeaderVirtuals;
|
|
16
|
+
export import IDocumentHeaderVirtuals = Entity.IDocumentHeaderVirtuals;
|
|
17
|
+
export import ICreateFromHeaderMaturityDate = Entity.ICreateFromHeaderMaturityDate;
|
|
18
|
+
export import ICreateFromHeaderRequest = Entity.ICreateFromHeaderRequest;
|
|
19
|
+
export import IGetActionsResponse = Entity.IGetActionsResponse;
|
|
20
|
+
export import IBrokerMessage = shared.IBrokerMessage;
|
|
21
|
+
export import IBrokerTopic = shared.IBrokerTopic;
|
|
22
|
+
export import IUnpaidDocumentResponse = Entity.IUnpaidDocumentResponse;
|
|
23
|
+
export import IUnfinishedPickingsResponse = Entity.IUnfinishedPickingsResponse;
|
|
24
|
+
export import IUnpaidMaterialEntranceLineType = Entity.IUnpaidMaterialEntranceLineType;
|
|
25
|
+
export import IUnpaidMaterialEntranceLineResponse = Entity.IUnpaidMaterialEntranceLineResponse;
|
|
26
|
+
export import IUnpaidMaterialEntranceItemResponse = Entity.IUnpaidMaterialEntranceItemResponse;
|
|
27
|
+
export import IUnpaidMaterialEntranceResponse = Entity.IUnpaidMaterialEntranceResponse;
|
|
28
|
+
export import ICreateFromPlotsRequest = Entity.ICreateFromPlotsRequest;
|
|
29
|
+
export import IValueByVatTax = Entity.IValueByVatTax;
|
|
30
|
+
export import IFindProviderInvoiceRequest = Entity.IFindProviderInvoiceRequest;
|
|
31
|
+
export import IFindProviderInvoiceResponse = Entity.IFindProviderInvoiceResponse;
|
|
32
|
+
export import ICreateProviderFinancialCreditNoteRequest = Entity.ICreateProviderFinancialCreditNoteRequest;
|
|
33
|
+
export import ICreateProviderServiceInvoiceRequest = Entity.ICreateProviderServiceInvoiceRequest;
|
|
34
|
+
export import IFindProviderReturnRequest = Entity.IFindProviderReturnRequest;
|
|
35
|
+
export import IFindProviderReturnOptionValue = Entity.IFindProviderReturnOptionValue;
|
|
36
|
+
export import IFindProviderReturnResponse = Entity.IFindProviderReturnResponse;
|
|
37
|
+
export import ICreateProviderCreditNoteFromReturnDocumentHeaders = Entity.ICreateProviderCreditNoteFromReturnDocumentHeaders;
|
|
38
|
+
export import ICreateProviderCreditNoteFromReturnRequest = Entity.ICreateProviderCreditNoteFromReturnRequest;
|
|
39
|
+
export import ICreateProductionOrderRequest = Entity.ICreateProductionOrderRequest;
|
|
40
|
+
export import ITransferOwnershipRequest = Entity.ITransferOwnershipRequest;
|
|
41
|
+
export import IUpdateManyWithContact = Entity.IUpdateManyWithContact;
|
|
42
|
+
export import IUpdateManyWithAddress = Entity.IUpdateManyWithAddress;
|
|
43
|
+
export import IFindResponse = Entity.IFindResponse;
|
|
44
|
+
export declare const route: string;
|
|
45
|
+
export declare const findMinified: (params?: shared.IFindMinifiedRequest | undefined) => Promise<shared.IFindMinifiedResponse[]>, findOne: (selector: shared.IFindByIdRequest) => Promise<Entity.IFindOneResponse | null>, findByDocumentLineState: (data: Entity.IFindByDocumentLineStateRequest) => Promise<Entity.IFindByDocumentLineStateResponse[]>, findByBasicSearch: (data: Entity.IBasicSearchRequest) => Promise<shared.IPaginationResponse<Entity.IBasicSearchResponse>>, findByCommissionerId: (params: Entity.IFindByCommissionerIdRequest) => Promise<Entity.IFindByCommissionerIdResponse[]>, findClientUnpaidCredit: (params: shared.IFindByOwnerIdRequest) => Promise<Entity.IUnpaidDocumentResponse[]>, findClientUnpaidDebit: (params: shared.IFindByOwnerIdRequest) => Promise<Entity.IUnpaidDocumentResponse[]>, find: (params: Entity.IFindRequest) => Promise<Entity.IFindResponse[]>, create: (data: Entity.ICreateRequest) => Promise<Entity.IFindOneResponse>, createFromHeader: (data: Entity.ICreateFromHeaderRequest) => Promise<shared.IBrokerMessage<shared.IBrokerTopic.document_header_create_start>[]>, createFromPlots: (data: Entity.ICreateFromPlotsRequest) => Promise<shared.IBrokerMessage<shared.IBrokerTopic>[]>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<Entity.IFindOneResponse | null>, deleteOne: (selector: shared.IFindByIdRequest) => Promise<void>, getActions: (selector: shared.IFindByIdRequest) => Promise<Entity.IGetActionsResponse[]>, findUnpaidCommissions: (params: shared.IFindByOwnerIdRequest) => Promise<Entity.IUnpaidDocumentResponse[]>, findUnfinishedPickings: (selector: shared.IFindByIdRequest) => Promise<Entity.IUnfinishedPickingsResponse[]>, findUnpaidMaterialEntrance: (selector: shared.IFindByIdRequest) => Promise<Entity.IUnpaidMaterialEntranceResponse>, findUnpaidMaterialEntranceProviders: () => Promise<shared.IFindMinifiedResponse[]>, findProviderInvoice: (params: Entity.IFindProviderInvoiceRequest) => Promise<Entity.IFindProviderInvoiceResponse[]>, createProviderFinancialCreditNote: (params: Entity.ICreateProviderFinancialCreditNoteRequest) => Promise<void>, createProviderServiceInvoice: (params: Entity.ICreateProviderServiceInvoiceRequest) => Promise<void>, findProviderReturn: (params: Entity.IFindProviderReturnRequest) => Promise<Entity.IFindProviderReturnResponse[]>, createProviderCreditNoteFromReturn: (params: Entity.ICreateProviderCreditNoteFromReturnRequest) => Promise<void>, findMaterialEntranceProviders: () => Promise<shared.IFindMinifiedResponse[]>, transferClientOwnership: (params: Entity.ITransferOwnershipRequest) => Promise<void>, updateManyWithContact: (params: Entity.IUpdateManyWithContact) => Promise<void>, updateManyWithAddress: (params: Entity.IUpdateManyWithAddress) => Promise<void>;
|
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.updateManyWithAddress = exports.updateManyWithContact = exports.transferClientOwnership = exports.findMaterialEntranceProviders = exports.createProviderCreditNoteFromReturn = exports.findProviderReturn = exports.createProviderServiceInvoice = exports.createProviderFinancialCreditNote = exports.findProviderInvoice = exports.findUnpaidMaterialEntranceProviders = exports.findUnpaidMaterialEntrance = exports.findUnfinishedPickings = exports.findUnpaidCommissions = exports.getActions = exports.deleteOne = exports.update = exports.createFromPlots = exports.createFromHeader = exports.create = exports.find = exports.findClientUnpaidDebit = exports.findClientUnpaidCredit = exports.findByCommissionerId = exports.findByBasicSearch = exports.findByDocumentLineState = exports.findOne = exports.findMinified = exports.route = exports.IBrokerTopic = void 0;
|
|
43
|
+
var types_1 = require("@nomalism-com/types");
|
|
44
|
+
var client_1 = __importDefault(require("../../shared/client"));
|
|
45
|
+
var _1 = require(".");
|
|
46
|
+
exports.IBrokerTopic = types_1.shared.IBrokerTopic;
|
|
47
|
+
exports.route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "document_header/");
|
|
48
|
+
var repository = {
|
|
49
|
+
findMinified: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
50
|
+
var response;
|
|
51
|
+
return __generator(this, function (_a) {
|
|
52
|
+
switch (_a.label) {
|
|
53
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "minified"), {
|
|
54
|
+
params: params,
|
|
55
|
+
})];
|
|
56
|
+
case 1:
|
|
57
|
+
response = _a.sent();
|
|
58
|
+
return [2, response.data];
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}); },
|
|
62
|
+
findOne: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
|
|
63
|
+
var response;
|
|
64
|
+
return __generator(this, function (_a) {
|
|
65
|
+
switch (_a.label) {
|
|
66
|
+
case 0: return [4, client_1.default.get("".concat(exports.route).concat(selector.id))];
|
|
67
|
+
case 1:
|
|
68
|
+
response = _a.sent();
|
|
69
|
+
return [2, response.data];
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}); },
|
|
73
|
+
findByDocumentLineState: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
74
|
+
var response;
|
|
75
|
+
return __generator(this, function (_a) {
|
|
76
|
+
switch (_a.label) {
|
|
77
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "by_document_line_state"), {
|
|
78
|
+
params: params,
|
|
79
|
+
})];
|
|
80
|
+
case 1:
|
|
81
|
+
response = _a.sent();
|
|
82
|
+
return [2, response.data];
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}); },
|
|
86
|
+
findByBasicSearch: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
87
|
+
var response;
|
|
88
|
+
return __generator(this, function (_a) {
|
|
89
|
+
switch (_a.label) {
|
|
90
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "basic_search"), {
|
|
91
|
+
params: params,
|
|
92
|
+
})];
|
|
93
|
+
case 1:
|
|
94
|
+
response = _a.sent();
|
|
95
|
+
return [2, response.data];
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}); },
|
|
99
|
+
find: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
100
|
+
var response;
|
|
101
|
+
return __generator(this, function (_a) {
|
|
102
|
+
switch (_a.label) {
|
|
103
|
+
case 0: return [4, client_1.default.get("".concat(exports.route), { params: params })];
|
|
104
|
+
case 1:
|
|
105
|
+
response = _a.sent();
|
|
106
|
+
return [2, response.data];
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}); },
|
|
110
|
+
findByCommissionerId: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
111
|
+
var response;
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
switch (_a.label) {
|
|
114
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "by_commissioner"), { params: params })];
|
|
115
|
+
case 1:
|
|
116
|
+
response = _a.sent();
|
|
117
|
+
return [2, response.data];
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}); },
|
|
121
|
+
findClientUnpaidCredit: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
122
|
+
var response;
|
|
123
|
+
return __generator(this, function (_a) {
|
|
124
|
+
switch (_a.label) {
|
|
125
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "unpaid_credit"), { params: params })];
|
|
126
|
+
case 1:
|
|
127
|
+
response = _a.sent();
|
|
128
|
+
return [2, response.data];
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}); },
|
|
132
|
+
findClientUnpaidDebit: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
133
|
+
var response;
|
|
134
|
+
return __generator(this, function (_a) {
|
|
135
|
+
switch (_a.label) {
|
|
136
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "unpaid_debit"), { params: params })];
|
|
137
|
+
case 1:
|
|
138
|
+
response = _a.sent();
|
|
139
|
+
return [2, response.data];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}); },
|
|
143
|
+
findUnpaidCommissions: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
144
|
+
var response;
|
|
145
|
+
return __generator(this, function (_a) {
|
|
146
|
+
switch (_a.label) {
|
|
147
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "unpaid_commissions"), { params: params })];
|
|
148
|
+
case 1:
|
|
149
|
+
response = _a.sent();
|
|
150
|
+
return [2, response.data];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
}); },
|
|
154
|
+
create: function (body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
155
|
+
var response;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
158
|
+
case 0: return [4, client_1.default.post("".concat(exports.route), body)];
|
|
159
|
+
case 1:
|
|
160
|
+
response = _a.sent();
|
|
161
|
+
return [2, response.data];
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
}); },
|
|
165
|
+
createFromHeader: function (body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
166
|
+
var response;
|
|
167
|
+
return __generator(this, function (_a) {
|
|
168
|
+
switch (_a.label) {
|
|
169
|
+
case 0: return [4, client_1.default.post("".concat(exports.route, "from_header"), body)];
|
|
170
|
+
case 1:
|
|
171
|
+
response = _a.sent();
|
|
172
|
+
return [2, response.data];
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
}); },
|
|
176
|
+
createProductionOrder: function (body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
177
|
+
return __generator(this, function (_a) {
|
|
178
|
+
switch (_a.label) {
|
|
179
|
+
case 0: return [4, client_1.default.post("".concat(exports.route, "production_order"), body)];
|
|
180
|
+
case 1:
|
|
181
|
+
_a.sent();
|
|
182
|
+
return [2];
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
}); },
|
|
186
|
+
createFromPlots: function (body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
187
|
+
var response;
|
|
188
|
+
return __generator(this, function (_a) {
|
|
189
|
+
switch (_a.label) {
|
|
190
|
+
case 0: return [4, client_1.default.post("".concat(exports.route, "from_plots"), body)];
|
|
191
|
+
case 1:
|
|
192
|
+
response = _a.sent();
|
|
193
|
+
return [2, response.data];
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
}); },
|
|
197
|
+
update: function (selector, body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
198
|
+
var response;
|
|
199
|
+
return __generator(this, function (_a) {
|
|
200
|
+
switch (_a.label) {
|
|
201
|
+
case 0: return [4, client_1.default.put("".concat(exports.route).concat(selector.id), body)];
|
|
202
|
+
case 1:
|
|
203
|
+
response = _a.sent();
|
|
204
|
+
return [2, response.data];
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
}); },
|
|
208
|
+
deleteOne: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
|
|
209
|
+
return __generator(this, function (_a) {
|
|
210
|
+
switch (_a.label) {
|
|
211
|
+
case 0: return [4, client_1.default.delete("".concat(exports.route).concat(selector.id))];
|
|
212
|
+
case 1:
|
|
213
|
+
_a.sent();
|
|
214
|
+
return [2];
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
}); },
|
|
218
|
+
getActions: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
|
|
219
|
+
var response;
|
|
220
|
+
return __generator(this, function (_a) {
|
|
221
|
+
switch (_a.label) {
|
|
222
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "get_actions/").concat(selector.id))];
|
|
223
|
+
case 1:
|
|
224
|
+
response = _a.sent();
|
|
225
|
+
return [2, response.data];
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
}); },
|
|
229
|
+
findUnfinishedPickings: function (_a) {
|
|
230
|
+
var id = _a.id;
|
|
231
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
232
|
+
var response;
|
|
233
|
+
return __generator(this, function (_b) {
|
|
234
|
+
switch (_b.label) {
|
|
235
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "unfinished_pickings/").concat(id))];
|
|
236
|
+
case 1:
|
|
237
|
+
response = _b.sent();
|
|
238
|
+
return [2, response.data];
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
});
|
|
242
|
+
},
|
|
243
|
+
findUnpaidMaterialEntrance: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
244
|
+
var response;
|
|
245
|
+
return __generator(this, function (_a) {
|
|
246
|
+
switch (_a.label) {
|
|
247
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "unpaid_material_entrance"), {
|
|
248
|
+
params: params,
|
|
249
|
+
})];
|
|
250
|
+
case 1:
|
|
251
|
+
response = _a.sent();
|
|
252
|
+
return [2, response.data];
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
}); },
|
|
256
|
+
findUnpaidMaterialEntranceProviders: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
257
|
+
var response;
|
|
258
|
+
return __generator(this, function (_a) {
|
|
259
|
+
switch (_a.label) {
|
|
260
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "unpaid_material_entrance_providers"))];
|
|
261
|
+
case 1:
|
|
262
|
+
response = _a.sent();
|
|
263
|
+
return [2, response.data];
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
}); },
|
|
267
|
+
findMaterialEntranceProviders: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
268
|
+
var response;
|
|
269
|
+
return __generator(this, function (_a) {
|
|
270
|
+
switch (_a.label) {
|
|
271
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "material_entrance_providers"))];
|
|
272
|
+
case 1:
|
|
273
|
+
response = _a.sent();
|
|
274
|
+
return [2, response.data];
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
}); },
|
|
278
|
+
findProviderInvoice: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
279
|
+
var response;
|
|
280
|
+
return __generator(this, function (_a) {
|
|
281
|
+
switch (_a.label) {
|
|
282
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "provider_invoice"), { params: params })];
|
|
283
|
+
case 1:
|
|
284
|
+
response = _a.sent();
|
|
285
|
+
return [2, response.data];
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
}); },
|
|
289
|
+
createProviderFinancialCreditNote: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
290
|
+
return __generator(this, function (_a) {
|
|
291
|
+
switch (_a.label) {
|
|
292
|
+
case 0: return [4, client_1.default.post("".concat(exports.route, "provider_financial_credit_note"), data)];
|
|
293
|
+
case 1:
|
|
294
|
+
_a.sent();
|
|
295
|
+
return [2];
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
}); },
|
|
299
|
+
createProviderServiceInvoice: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
300
|
+
return __generator(this, function (_a) {
|
|
301
|
+
switch (_a.label) {
|
|
302
|
+
case 0: return [4, client_1.default.post("".concat(exports.route, "provider_service_invoice"), data)];
|
|
303
|
+
case 1:
|
|
304
|
+
_a.sent();
|
|
305
|
+
return [2];
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
}); },
|
|
309
|
+
findProviderReturn: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
310
|
+
var response;
|
|
311
|
+
return __generator(this, function (_a) {
|
|
312
|
+
switch (_a.label) {
|
|
313
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "provider_return"), { params: params })];
|
|
314
|
+
case 1:
|
|
315
|
+
response = _a.sent();
|
|
316
|
+
return [2, response.data];
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
}); },
|
|
320
|
+
createProviderCreditNoteFromReturn: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
321
|
+
return __generator(this, function (_a) {
|
|
322
|
+
switch (_a.label) {
|
|
323
|
+
case 0: return [4, client_1.default.post("".concat(exports.route, "provider_credit_note_from_return"), data)];
|
|
324
|
+
case 1:
|
|
325
|
+
_a.sent();
|
|
326
|
+
return [2];
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
}); },
|
|
330
|
+
transferClientOwnership: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
331
|
+
return __generator(this, function (_a) {
|
|
332
|
+
switch (_a.label) {
|
|
333
|
+
case 0: return [4, client_1.default.put("".concat(exports.route, "transfer_client_ownership"), data)];
|
|
334
|
+
case 1:
|
|
335
|
+
_a.sent();
|
|
336
|
+
return [2];
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
}); },
|
|
340
|
+
updateManyWithContact: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
341
|
+
return __generator(this, function (_a) {
|
|
342
|
+
switch (_a.label) {
|
|
343
|
+
case 0: return [4, client_1.default.put("".concat(exports.route, "update_many_with_contact"), data)];
|
|
344
|
+
case 1:
|
|
345
|
+
_a.sent();
|
|
346
|
+
return [2];
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
}); },
|
|
350
|
+
updateManyWithAddress: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
351
|
+
return __generator(this, function (_a) {
|
|
352
|
+
switch (_a.label) {
|
|
353
|
+
case 0: return [4, client_1.default.put("".concat(exports.route, "update_many_with_address"), data)];
|
|
354
|
+
case 1:
|
|
355
|
+
_a.sent();
|
|
356
|
+
return [2];
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
}); },
|
|
360
|
+
};
|
|
361
|
+
exports.findMinified = repository.findMinified, exports.findOne = repository.findOne, exports.findByDocumentLineState = repository.findByDocumentLineState, exports.findByBasicSearch = repository.findByBasicSearch, exports.findByCommissionerId = repository.findByCommissionerId, exports.findClientUnpaidCredit = repository.findClientUnpaidCredit, exports.findClientUnpaidDebit = repository.findClientUnpaidDebit, exports.find = repository.find, exports.create = repository.create, exports.createFromHeader = repository.createFromHeader, exports.createFromPlots = repository.createFromPlots, exports.update = repository.update, exports.deleteOne = repository.deleteOne, exports.getActions = repository.getActions, exports.findUnpaidCommissions = repository.findUnpaidCommissions, exports.findUnfinishedPickings = repository.findUnfinishedPickings, exports.findUnpaidMaterialEntrance = repository.findUnpaidMaterialEntrance, exports.findUnpaidMaterialEntranceProviders = repository.findUnpaidMaterialEntranceProviders, exports.findProviderInvoice = repository.findProviderInvoice, exports.createProviderFinancialCreditNote = repository.createProviderFinancialCreditNote, exports.createProviderServiceInvoice = repository.createProviderServiceInvoice, exports.findProviderReturn = repository.findProviderReturn, exports.createProviderCreditNoteFromReturn = repository.createProviderCreditNoteFromReturn, exports.findMaterialEntranceProviders = repository.findMaterialEntranceProviders, exports.transferClientOwnership = repository.transferClientOwnership, exports.updateManyWithContact = repository.updateManyWithContact, exports.updateManyWithAddress = repository.updateManyWithAddress;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { shared, DocumentLine as Entity, DocumentLineAssoc } from '@nomalism-com/types';
|
|
2
|
+
export import IDocumentLineVirtuals = Entity.IDocumentLineVirtuals;
|
|
3
|
+
export import IFindByOwnerIdRequest = shared.IFindByOwnerIdRequest;
|
|
4
|
+
export import ICreateRequest = Entity.ICreateRequest;
|
|
5
|
+
export import IUpdateRequest = Entity.IUpdateRequest;
|
|
6
|
+
export import IUpdateManyRequest = Entity.IUpdateManyRequest;
|
|
7
|
+
export import IEntity = Entity.Entity;
|
|
8
|
+
export import IEntityExtended = Entity.IEntityExtended;
|
|
9
|
+
export import IDocumentLineState = Entity.IDocumentLineState;
|
|
10
|
+
export import IDataKeys = Entity.IDataKeys;
|
|
11
|
+
export import IDataPayload = Entity.IDataPayload;
|
|
12
|
+
export import IData = Entity.IData;
|
|
13
|
+
export import IMetadata = Entity.IMetadata;
|
|
14
|
+
export declare const LineStateEnum: {
|
|
15
|
+
Cancelado: "Cancelado";
|
|
16
|
+
Fechado: "Fechado";
|
|
17
|
+
EsperaConfirmacao: "EsperaConfirmacao";
|
|
18
|
+
AguardaRM: "AguardaRM";
|
|
19
|
+
DefinirDetalhesComVendedor: "DefinirDetalhesComVendedor";
|
|
20
|
+
EsperaChegada: "EsperaChegada";
|
|
21
|
+
EsperaLevantamento: "EsperaLevantamento";
|
|
22
|
+
}, IMetadataPlugins: typeof Entity.IMetadataPlugins;
|
|
23
|
+
export declare const route: string;
|
|
24
|
+
export declare const findById: (selector: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").DocumentLine | null>, findByOwnerId: (params: shared.IFindByOwnerIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").DocumentLine[]>, create: (data: Entity.ICreateRequest[]) => Promise<DocumentLineAssoc.IEntityExtended[]>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<DocumentLineAssoc.IEntityExtended | null>, updateIndexes: (document_line_ids: string[]) => Promise<void>, updateMany: (data: Entity.IUpdateManyRequestWithoutStamps) => Promise<DocumentLineAssoc.IEntityExtended[]>, deleteMany: (document_line_ids: string[]) => Promise<void>;
|