@nomalism-com/api 0.7.54 → 0.7.56
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 +107 -107
- package/dist/index.js +242 -242
- package/dist/index.js.map +1 -1
- package/dist/modules/documentManagement/index.d.ts +2 -2
- package/dist/modules/documentManagement/index.js +7 -7
- package/dist/modules/documentManagement/multimedia.d.ts +5 -5
- package/dist/modules/documentManagement/multimedia.js +69 -69
- package/dist/modules/documentManagement/multimedia.js.map +1 -1
- package/dist/modules/integration/dynamicData.d.ts +8 -8
- package/dist/modules/integration/dynamicData.js +103 -103
- package/dist/modules/integration/dynamicData.js.map +1 -1
- package/dist/modules/integration/field.d.ts +8 -8
- package/dist/modules/integration/field.js +94 -94
- package/dist/modules/integration/field.js.map +1 -1
- package/dist/modules/integration/fieldGroup.d.ts +12 -12
- package/dist/modules/integration/fieldGroup.js +119 -119
- package/dist/modules/integration/fieldGroup.js.map +1 -1
- package/dist/modules/integration/file.d.ts +5 -5
- package/dist/modules/integration/file.js +83 -83
- package/dist/modules/integration/file.js.map +1 -1
- package/dist/modules/integration/history.d.ts +11 -11
- package/dist/modules/integration/history.js +66 -66
- package/dist/modules/integration/history.js.map +1 -1
- package/dist/modules/integration/index.d.ts +2 -2
- package/dist/modules/integration/index.js +7 -7
- package/dist/modules/integration/observation.d.ts +8 -8
- package/dist/modules/integration/observation.js +94 -94
- package/dist/modules/integration/observation.js.map +1 -1
- package/dist/modules/integration/observationType.d.ts +10 -10
- package/dist/modules/integration/observationType.js +107 -107
- package/dist/modules/integration/observationType.js.map +1 -1
- package/dist/modules/integration/task.d.ts +10 -10
- package/dist/modules/integration/task.js +113 -113
- package/dist/modules/integration/task.js.map +1 -1
- package/dist/modules/integration/taskAttachment.d.ts +7 -7
- package/dist/modules/integration/taskAttachment.js +72 -72
- package/dist/modules/integration/taskAttachment.js.map +1 -1
- package/dist/modules/integration/taskGroup.d.ts +8 -8
- package/dist/modules/integration/taskGroup.js +103 -103
- package/dist/modules/integration/taskGroup.js.map +1 -1
- package/dist/modules/integration/taskNote.d.ts +8 -8
- package/dist/modules/integration/taskNote.js +92 -92
- package/dist/modules/integration/taskNote.js.map +1 -1
- package/dist/modules/stock/attribute.d.ts +13 -13
- package/dist/modules/stock/attribute.js +140 -140
- package/dist/modules/stock/attribute.js.map +1 -1
- package/dist/modules/stock/attributeValue.d.ts +12 -12
- package/dist/modules/stock/attributeValue.js +140 -140
- package/dist/modules/stock/attributeValue.js.map +1 -1
- package/dist/modules/stock/cabide.d.ts +7 -7
- package/dist/modules/stock/cabide.js +114 -114
- package/dist/modules/stock/cabide.js.map +1 -1
- package/dist/modules/stock/cabideProduct.d.ts +5 -5
- package/dist/modules/stock/cabideProduct.js +80 -80
- package/dist/modules/stock/cabideProduct.js.map +1 -1
- package/dist/modules/stock/clientCurrentAccount.d.ts +5 -5
- package/dist/modules/stock/clientCurrentAccount.js +61 -61
- package/dist/modules/stock/clientCurrentAccount.js.map +1 -1
- package/dist/modules/stock/color.d.ts +13 -13
- package/dist/modules/stock/color.js +139 -139
- package/dist/modules/stock/color.js.map +1 -1
- package/dist/modules/stock/composition.d.ts +12 -12
- package/dist/modules/stock/composition.js +127 -127
- package/dist/modules/stock/composition.js.map +1 -1
- package/dist/modules/stock/compositionMaterial.d.ts +13 -13
- package/dist/modules/stock/compositionMaterial.js +140 -140
- package/dist/modules/stock/compositionMaterial.js.map +1 -1
- package/dist/modules/stock/documentHeader.d.ts +39 -39
- package/dist/modules/stock/documentHeader.js +321 -321
- package/dist/modules/stock/documentHeader.js.map +1 -1
- package/dist/modules/stock/documentLine.d.ts +14 -14
- package/dist/modules/stock/documentLine.js +123 -123
- package/dist/modules/stock/documentLine.js.map +1 -1
- package/dist/modules/stock/documentLineAssoc.d.ts +15 -15
- package/dist/modules/stock/documentLineAssoc.js +132 -132
- package/dist/modules/stock/documentLineAssoc.js.map +1 -1
- package/dist/modules/stock/documentLineFolder.d.ts +6 -6
- package/dist/modules/stock/documentLineFolder.js +92 -92
- package/dist/modules/stock/documentLineFolder.js.map +1 -1
- package/dist/modules/stock/documentLineState.d.ts +10 -10
- package/dist/modules/stock/documentLineState.js +114 -114
- package/dist/modules/stock/documentLineState.js.map +1 -1
- package/dist/modules/stock/documentLineStateCriteria.d.ts +20 -20
- package/dist/modules/stock/documentLineStateCriteria.js +124 -124
- package/dist/modules/stock/documentLineStateCriteria.js.map +1 -1
- package/dist/modules/stock/documentSet.d.ts +8 -8
- package/dist/modules/stock/documentSet.js +114 -114
- package/dist/modules/stock/documentSet.js.map +1 -1
- package/dist/modules/stock/documentType.d.ts +11 -11
- package/dist/modules/stock/documentType.js +114 -114
- package/dist/modules/stock/documentType.js.map +1 -1
- package/dist/modules/stock/externalDocumentHeader.d.ts +14 -14
- package/dist/modules/stock/externalDocumentHeader.js +125 -125
- package/dist/modules/stock/externalDocumentHeader.js.map +1 -1
- package/dist/modules/stock/externalDocumentType.d.ts +6 -6
- package/dist/modules/stock/externalDocumentType.js +70 -70
- package/dist/modules/stock/externalDocumentType.js.map +1 -1
- package/dist/modules/stock/index.d.ts +3 -3
- package/dist/modules/stock/index.js +8 -8
- package/dist/modules/stock/location.d.ts +12 -12
- package/dist/modules/stock/location.js +140 -140
- package/dist/modules/stock/location.js.map +1 -1
- package/dist/modules/stock/maintenance.d.ts +12 -12
- package/dist/modules/stock/maintenance.js +140 -140
- package/dist/modules/stock/maintenance.js.map +1 -1
- package/dist/modules/stock/maintenanceAssoc.d.ts +12 -12
- package/dist/modules/stock/maintenanceAssoc.js +127 -127
- package/dist/modules/stock/maintenanceAssoc.js.map +1 -1
- package/dist/modules/stock/maintenancePreset.d.ts +10 -10
- package/dist/modules/stock/maintenancePreset.js +114 -114
- package/dist/modules/stock/maintenancePreset.js.map +1 -1
- package/dist/modules/stock/maintenancePresetAssoc.d.ts +8 -8
- package/dist/modules/stock/maintenancePresetAssoc.js +91 -91
- package/dist/modules/stock/maintenancePresetAssoc.js.map +1 -1
- package/dist/modules/stock/maintenanceType.d.ts +13 -13
- package/dist/modules/stock/maintenanceType.js +140 -140
- package/dist/modules/stock/maintenanceType.js.map +1 -1
- package/dist/modules/stock/moloniRequest.d.ts +5 -5
- package/dist/modules/stock/moloniRequest.js +59 -59
- package/dist/modules/stock/moloniRequest.js.map +1 -1
- package/dist/modules/stock/payment.d.ts +19 -19
- package/dist/modules/stock/payment.js +185 -185
- package/dist/modules/stock/payment.js.map +1 -1
- package/dist/modules/stock/plot.d.ts +29 -29
- package/dist/modules/stock/plot.js +245 -245
- package/dist/modules/stock/plot.js.map +1 -1
- package/dist/modules/stock/preSale.d.ts +11 -11
- package/dist/modules/stock/preSale.js +125 -125
- package/dist/modules/stock/preSale.js.map +1 -1
- package/dist/modules/stock/primaryColor.d.ts +13 -13
- package/dist/modules/stock/primaryColor.js +140 -140
- package/dist/modules/stock/primaryColor.js.map +1 -1
- package/dist/modules/stock/product.d.ts +28 -28
- package/dist/modules/stock/product.js +217 -217
- package/dist/modules/stock/product.js.map +1 -1
- package/dist/modules/stock/productAttribute.d.ts +12 -12
- package/dist/modules/stock/productAttribute.js +127 -127
- package/dist/modules/stock/productAttribute.js.map +1 -1
- package/dist/modules/stock/productCategory.d.ts +13 -13
- package/dist/modules/stock/productCategory.js +140 -140
- package/dist/modules/stock/productCategory.js.map +1 -1
- package/dist/modules/stock/productColor.d.ts +12 -12
- package/dist/modules/stock/productColor.js +127 -127
- package/dist/modules/stock/productColor.js.map +1 -1
- package/dist/modules/stock/productImage.d.ts +14 -14
- package/dist/modules/stock/productImage.js +132 -132
- package/dist/modules/stock/productImage.js.map +1 -1
- package/dist/modules/stock/productName.d.ts +13 -13
- package/dist/modules/stock/productName.js +140 -140
- package/dist/modules/stock/productName.js.map +1 -1
- package/dist/modules/stock/productNamePreset.d.ts +13 -13
- package/dist/modules/stock/productNamePreset.js +140 -140
- package/dist/modules/stock/productNamePreset.js.map +1 -1
- package/dist/modules/stock/productPart.d.ts +14 -14
- package/dist/modules/stock/productPart.js +139 -139
- package/dist/modules/stock/productPart.js.map +1 -1
- package/dist/modules/stock/productSubCategory.d.ts +13 -13
- package/dist/modules/stock/productSubCategory.js +139 -139
- package/dist/modules/stock/productSubCategory.js.map +1 -1
- package/dist/modules/stock/productUse.d.ts +13 -13
- package/dist/modules/stock/productUse.js +140 -140
- package/dist/modules/stock/productUse.js.map +1 -1
- package/dist/modules/stock/productUseAssoc.d.ts +12 -12
- package/dist/modules/stock/productUseAssoc.js +126 -126
- package/dist/modules/stock/productUseAssoc.js.map +1 -1
- package/dist/modules/stock/promotion.d.ts +13 -13
- package/dist/modules/stock/promotion.js +140 -140
- package/dist/modules/stock/promotion.js.map +1 -1
- package/dist/modules/stock/promotionAssoc.d.ts +12 -12
- package/dist/modules/stock/promotionAssoc.js +127 -127
- package/dist/modules/stock/promotionAssoc.js.map +1 -1
- package/dist/modules/stock/providerCurrentAccount.d.ts +5 -5
- package/dist/modules/stock/providerCurrentAccount.js +61 -61
- package/dist/modules/stock/providerCurrentAccount.js.map +1 -1
- package/dist/modules/stock/similarProduct.d.ts +12 -12
- package/dist/modules/stock/similarProduct.js +127 -127
- package/dist/modules/stock/similarProduct.js.map +1 -1
- package/dist/modules/stock/stockMovement.d.ts +8 -8
- package/dist/modules/stock/stockMovement.js +75 -75
- package/dist/modules/stock/stockMovement.js.map +1 -1
- package/dist/modules/stock/topMenu.d.ts +5 -5
- package/dist/modules/stock/topMenu.js +61 -61
- package/dist/modules/stock/topMenu.js.map +1 -1
- package/dist/modules/stock/typeOfInventory.d.ts +13 -13
- package/dist/modules/stock/typeOfInventory.js +140 -140
- package/dist/modules/stock/typeOfInventory.js.map +1 -1
- package/dist/modules/stock/typeOfLocation.d.ts +13 -13
- package/dist/modules/stock/typeOfLocation.js +140 -140
- package/dist/modules/stock/typeOfLocation.js.map +1 -1
- package/dist/modules/stock/unitOfMeasure.d.ts +13 -13
- package/dist/modules/stock/unitOfMeasure.js +140 -140
- package/dist/modules/stock/unitOfMeasure.js.map +1 -1
- package/dist/modules/stock/vatTax.d.ts +13 -13
- package/dist/modules/stock/vatTax.js +140 -140
- package/dist/modules/stock/vatTax.js.map +1 -1
- package/dist/modules/stock/vatTaxZone.d.ts +14 -14
- package/dist/modules/stock/vatTaxZone.js +140 -140
- package/dist/modules/stock/vatTaxZone.js.map +1 -1
- package/dist/modules/stock/vatValidation.d.ts +4 -4
- package/dist/modules/stock/vatValidation.js +63 -63
- package/dist/modules/stock/vatValidation.js.map +1 -1
- package/dist/modules/stock/websiteRequest.d.ts +10 -10
- package/dist/modules/stock/websiteRequest.js +97 -97
- package/dist/modules/stock/websiteRequest.js.map +1 -1
- package/dist/modules/stock/workflow.d.ts +8 -8
- package/dist/modules/stock/workflow.js +103 -103
- package/dist/modules/stock/workflow.js.map +1 -1
- package/dist/modules/user/address.d.ts +12 -12
- package/dist/modules/user/address.js +127 -127
- package/dist/modules/user/address.js.map +1 -1
- package/dist/modules/user/bankData.d.ts +12 -12
- package/dist/modules/user/bankData.js +127 -127
- package/dist/modules/user/bankData.js.map +1 -1
- package/dist/modules/user/clientType.d.ts +12 -12
- package/dist/modules/user/clientType.js +127 -127
- package/dist/modules/user/clientType.js.map +1 -1
- package/dist/modules/user/clients.d.ts +15 -15
- package/dist/modules/user/clients.js +140 -140
- package/dist/modules/user/clients.js.map +1 -1
- package/dist/modules/user/commissioner.d.ts +15 -15
- package/dist/modules/user/commissioner.js +140 -140
- package/dist/modules/user/commissioner.js.map +1 -1
- package/dist/modules/user/contactTypes.d.ts +12 -12
- package/dist/modules/user/contactTypes.js +127 -127
- package/dist/modules/user/contactTypes.js.map +1 -1
- package/dist/modules/user/contacts.d.ts +14 -14
- package/dist/modules/user/contacts.js +149 -149
- package/dist/modules/user/contacts.js.map +1 -1
- package/dist/modules/user/country.d.ts +12 -12
- package/dist/modules/user/country.js +140 -140
- package/dist/modules/user/country.js.map +1 -1
- package/dist/modules/user/deliveryMethods.d.ts +8 -8
- package/dist/modules/user/deliveryMethods.js +116 -116
- package/dist/modules/user/deliveryMethods.js.map +1 -1
- package/dist/modules/user/entityList.d.ts +7 -7
- package/dist/modules/user/entityList.js +106 -106
- package/dist/modules/user/entityList.js.map +1 -1
- package/dist/modules/user/favorites.d.ts +7 -7
- package/dist/modules/user/favorites.js +92 -81
- package/dist/modules/user/favorites.js.map +1 -1
- package/dist/modules/user/groupPermission.d.ts +7 -7
- package/dist/modules/user/groupPermission.js +94 -94
- package/dist/modules/user/groupPermission.js.map +1 -1
- package/dist/modules/user/index.d.ts +3 -3
- package/dist/modules/user/index.js +8 -8
- package/dist/modules/user/language.d.ts +12 -12
- package/dist/modules/user/language.js +127 -127
- package/dist/modules/user/language.js.map +1 -1
- package/dist/modules/user/logout.d.ts +2 -2
- package/dist/modules/user/logout.js +58 -58
- package/dist/modules/user/logout.js.map +1 -1
- package/dist/modules/user/maturityDates.d.ts +8 -8
- package/dist/modules/user/maturityDates.js +116 -116
- package/dist/modules/user/maturityDates.js.map +1 -1
- package/dist/modules/user/password.d.ts +5 -5
- package/dist/modules/user/password.js +68 -68
- package/dist/modules/user/password.js.map +1 -1
- package/dist/modules/user/paymentCondition.d.ts +11 -11
- package/dist/modules/user/paymentCondition.js +127 -127
- package/dist/modules/user/paymentCondition.js.map +1 -1
- package/dist/modules/user/paymentMethods.d.ts +8 -8
- package/dist/modules/user/paymentMethods.js +116 -116
- package/dist/modules/user/paymentMethods.js.map +1 -1
- package/dist/modules/user/permission.d.ts +7 -7
- package/dist/modules/user/permission.js +94 -94
- package/dist/modules/user/permission.js.map +1 -1
- package/dist/modules/user/provider.d.ts +15 -15
- package/dist/modules/user/provider.js +140 -140
- package/dist/modules/user/provider.js.map +1 -1
- package/dist/modules/user/providerType.d.ts +12 -12
- package/dist/modules/user/providerType.js +127 -127
- package/dist/modules/user/providerType.js.map +1 -1
- package/dist/modules/user/purchaseCondition.d.ts +12 -12
- package/dist/modules/user/purchaseCondition.js +127 -127
- package/dist/modules/user/purchaseCondition.js.map +1 -1
- package/dist/modules/user/reasonForExemption.d.ts +12 -12
- package/dist/modules/user/reasonForExemption.js +127 -127
- package/dist/modules/user/reasonForExemption.js.map +1 -1
- package/dist/modules/user/refreshToken.d.ts +5 -5
- package/dist/modules/user/refreshToken.js +59 -59
- package/dist/modules/user/refreshToken.js.map +1 -1
- package/dist/modules/user/segmentsArea.d.ts +12 -12
- package/dist/modules/user/segmentsArea.js +127 -127
- package/dist/modules/user/segmentsArea.js.map +1 -1
- package/dist/modules/user/sessions.d.ts +5 -5
- package/dist/modules/user/sessions.js +59 -59
- package/dist/modules/user/sessions.js.map +1 -1
- package/dist/modules/user/shippings.d.ts +11 -11
- package/dist/modules/user/shippings.js +127 -127
- package/dist/modules/user/shippings.js.map +1 -1
- package/dist/modules/user/socialMedia.d.ts +11 -11
- package/dist/modules/user/socialMedia.js +127 -127
- package/dist/modules/user/socialMedia.js.map +1 -1
- package/dist/modules/user/storeOperator.d.ts +16 -16
- package/dist/modules/user/storeOperator.js +151 -151
- package/dist/modules/user/storeOperator.js.map +1 -1
- package/dist/modules/user/swift.d.ts +12 -12
- package/dist/modules/user/swift.js +127 -127
- package/dist/modules/user/swift.js.map +1 -1
- package/dist/modules/user/tenant.d.ts +6 -6
- package/dist/modules/user/tenant.js +92 -92
- package/dist/modules/user/tenant.js.map +1 -1
- package/dist/modules/user/user.d.ts +16 -16
- package/dist/modules/user/user.js +138 -138
- package/dist/modules/user/user.js.map +1 -1
- package/dist/modules/user/userPermission.d.ts +7 -7
- package/dist/modules/user/userPermission.js +83 -83
- package/dist/modules/user/userPermission.js.map +1 -1
- package/dist/modules/user/userPositions.d.ts +12 -12
- package/dist/modules/user/userPositions.js +127 -127
- package/dist/modules/user/userPositions.js.map +1 -1
- package/dist/modules/user/userToken.d.ts +9 -9
- package/dist/modules/user/userToken.js +116 -116
- package/dist/modules/user/userToken.js.map +1 -1
- package/dist/modules/user/vehicles.d.ts +6 -6
- package/dist/modules/user/vehicles.js +92 -92
- package/dist/modules/user/vehicles.js.map +1 -1
- package/dist/modules/user/zipCode.d.ts +6 -6
- package/dist/modules/user/zipCode.js +69 -69
- package/dist/modules/user/zipCode.js.map +1 -1
- package/dist/shared/client.d.ts +2 -2
- package/dist/shared/client.js +9 -9
- package/dist/shared/client.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +53 -53
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentHeader.js","sourceRoot":"","sources":["../../../src/modules/stock/documentHeader.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAuE;AACvE,+DAAsC;AACtC,sBAAqD;AAmCvC,QAAA,YAAY,GAAG,cAAM,CAAC,YAAY,CAAC;AAmCpC,QAAA,KAAK,GAAG,UAAG,kBAAe,SAAG,kBAAe,qBAAkB,CAAC;AAE5E,IAAM,UAAU,GAAuB;IACrC,YAAY,EAAE,UACZ,MAA6B;;;;wBAEZ,qBAAM,
|
|
1
|
+
{"version":3,"file":"documentHeader.js","sourceRoot":"","sources":["../../../src/modules/stock/documentHeader.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAuE;AACvE,+DAAsC;AACtC,sBAAqD;AAmCvC,QAAA,YAAY,GAAG,cAAM,CAAC,YAAY,CAAC;AAmCpC,QAAA,KAAK,GAAG,UAAG,kBAAe,SAAG,kBAAe,qBAAkB,CAAC;AAE5E,IAAM,UAAU,GAAuB;IACrC,YAAY,EAAE,UACZ,MAA6B;;;;wBAEZ,qBAAM,gBAAG,CAAC,GAAG,CAAC,UAAG,aAAK,aAAU,EAAE;wBACjD,MAAM,QAAA;qBACP,CAAC,EAAA;;oBAFI,QAAQ,GAAG,SAEf;oBACF,sBAAO,QAAQ,CAAC,IAAI,EAAC;;;SACtB;IAED,OAAO,EAAE,UACP,QAAiC;;;;wBAEhB,qBAAM,gBAAG,CAAC,GAAG,CAAC,UAAG,aAAK,SAA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SAAS,GAYP,UAAU,YAXZ,QAAA,UAAU,GAWR,UAAU,aAVZ,QAAA,qBAAqB,GAUnB,UAAU,wBATZ,QAAA,sBAAsB,GASpB,UAAU,yBARZ,QAAA,0BAA0B,GAQxB,UAAU,6BAPZ,QAAA,mCAAmC,GAOjC,UAAU,sCANZ,QAAA,mBAAmB,GAMjB,UAAU,sBALZ,QAAA,iCAAiC,GAK/B,UAAU,oCAJZ,QAAA,4BAA4B,GAI1B,UAAU,+BAHZ,QAAA,kBAAkB,GAGhB,UAAU,qBAFZ,QAAA,kCAAkC,GAEhC,UAAU,qCADZ,QAAA,6BAA6B,GAC3B,UAAU,+BAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
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 IDataKeys = Entity.IDataKeys;
|
|
10
|
-
export import IDataPayload = Entity.IDataPayload;
|
|
11
|
-
export import IData = Entity.IData;
|
|
12
|
-
export import IMetadata = Entity.IMetadata;
|
|
13
|
-
export declare const route: string;
|
|
14
|
-
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>;
|
|
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 IDataKeys = Entity.IDataKeys;
|
|
10
|
+
export import IDataPayload = Entity.IDataPayload;
|
|
11
|
+
export import IData = Entity.IData;
|
|
12
|
+
export import IMetadata = Entity.IMetadata;
|
|
13
|
+
export declare const route: string;
|
|
14
|
+
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>;
|
|
@@ -1,124 +1,124 @@
|
|
|
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 (_) 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
|
-
exports
|
|
42
|
-
exports.deleteMany = exports.updateMany = exports.updateIndexes = exports.update = exports.create = exports.findByOwnerId = exports.findById = 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, "document_line/");
|
|
46
|
-
var repository = {
|
|
47
|
-
findById: function (selector) { 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 /*yield*/, client_1
|
|
52
|
-
case 1:
|
|
53
|
-
response = _a.sent();
|
|
54
|
-
return [2 /*return*/, response.data];
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
}); },
|
|
58
|
-
findByOwnerId: 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 /*yield*/, client_1
|
|
63
|
-
case 1:
|
|
64
|
-
response = _a.sent();
|
|
65
|
-
return [2 /*return*/, response.data];
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
}); },
|
|
69
|
-
create: function (body) { 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 /*yield*/, client_1
|
|
74
|
-
case 1:
|
|
75
|
-
response = _a.sent();
|
|
76
|
-
return [2 /*return*/, response.data];
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
}); },
|
|
80
|
-
update: function (selector, body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
81
|
-
var response;
|
|
82
|
-
return __generator(this, function (_a) {
|
|
83
|
-
switch (_a.label) {
|
|
84
|
-
case 0: return [4 /*yield*/, client_1
|
|
85
|
-
case 1:
|
|
86
|
-
response = _a.sent();
|
|
87
|
-
return [2 /*return*/, response.data];
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
}); },
|
|
91
|
-
updateIndexes: function (document_line_ids) { return __awaiter(void 0, void 0, void 0, function () {
|
|
92
|
-
return __generator(this, function (_a) {
|
|
93
|
-
switch (_a.label) {
|
|
94
|
-
case 0: return [4 /*yield*/, client_1
|
|
95
|
-
case 1:
|
|
96
|
-
_a.sent();
|
|
97
|
-
return [2 /*return*/];
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
}); },
|
|
101
|
-
updateMany: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
102
|
-
var response;
|
|
103
|
-
return __generator(this, function (_a) {
|
|
104
|
-
switch (_a.label) {
|
|
105
|
-
case 0: return [4 /*yield*/, client_1
|
|
106
|
-
case 1:
|
|
107
|
-
response = _a.sent();
|
|
108
|
-
return [2 /*return*/, response.data];
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
}); },
|
|
112
|
-
deleteMany: function (document_line_ids) { return __awaiter(void 0, void 0, void 0, function () {
|
|
113
|
-
return __generator(this, function (_a) {
|
|
114
|
-
switch (_a.label) {
|
|
115
|
-
case 0: return [4 /*yield*/, client_1
|
|
116
|
-
case 1:
|
|
117
|
-
_a.sent();
|
|
118
|
-
return [2 /*return*/];
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
}); }
|
|
122
|
-
};
|
|
123
|
-
exports.findById = repository.findById, exports.findByOwnerId = repository.findByOwnerId, exports.create = repository.create, exports.update = repository.update, exports.updateIndexes = repository.updateIndexes, exports.updateMany = repository.updateMany, exports.deleteMany = repository.deleteMany;
|
|
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 (_) 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.deleteMany = exports.updateMany = exports.updateIndexes = exports.update = exports.create = exports.findByOwnerId = exports.findById = 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, "document_line/");
|
|
46
|
+
var repository = {
|
|
47
|
+
findById: function (selector) { 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 /*yield*/, client_1.default.get("".concat(exports.route).concat(selector.id))];
|
|
52
|
+
case 1:
|
|
53
|
+
response = _a.sent();
|
|
54
|
+
return [2 /*return*/, response.data];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}); },
|
|
58
|
+
findByOwnerId: 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 /*yield*/, client_1.default.get("".concat(exports.route, "by_owner"), { params: params })];
|
|
63
|
+
case 1:
|
|
64
|
+
response = _a.sent();
|
|
65
|
+
return [2 /*return*/, response.data];
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}); },
|
|
69
|
+
create: function (body) { 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 /*yield*/, client_1.default.post("".concat(exports.route), body)];
|
|
74
|
+
case 1:
|
|
75
|
+
response = _a.sent();
|
|
76
|
+
return [2 /*return*/, response.data];
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}); },
|
|
80
|
+
update: function (selector, body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
81
|
+
var response;
|
|
82
|
+
return __generator(this, function (_a) {
|
|
83
|
+
switch (_a.label) {
|
|
84
|
+
case 0: return [4 /*yield*/, client_1.default.put("".concat(exports.route).concat(selector.id), body)];
|
|
85
|
+
case 1:
|
|
86
|
+
response = _a.sent();
|
|
87
|
+
return [2 /*return*/, response.data];
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}); },
|
|
91
|
+
updateIndexes: function (document_line_ids) { return __awaiter(void 0, void 0, void 0, function () {
|
|
92
|
+
return __generator(this, function (_a) {
|
|
93
|
+
switch (_a.label) {
|
|
94
|
+
case 0: return [4 /*yield*/, client_1.default.put("".concat(exports.route, "update_indexes"), document_line_ids)];
|
|
95
|
+
case 1:
|
|
96
|
+
_a.sent();
|
|
97
|
+
return [2 /*return*/];
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}); },
|
|
101
|
+
updateMany: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
102
|
+
var response;
|
|
103
|
+
return __generator(this, function (_a) {
|
|
104
|
+
switch (_a.label) {
|
|
105
|
+
case 0: return [4 /*yield*/, client_1.default.post("".concat(exports.route, "update_many"), data)];
|
|
106
|
+
case 1:
|
|
107
|
+
response = _a.sent();
|
|
108
|
+
return [2 /*return*/, response.data];
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
}); },
|
|
112
|
+
deleteMany: function (document_line_ids) { return __awaiter(void 0, void 0, void 0, function () {
|
|
113
|
+
return __generator(this, function (_a) {
|
|
114
|
+
switch (_a.label) {
|
|
115
|
+
case 0: return [4 /*yield*/, client_1.default.delete("".concat(exports.route), { data: document_line_ids })];
|
|
116
|
+
case 1:
|
|
117
|
+
_a.sent();
|
|
118
|
+
return [2 /*return*/];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}); },
|
|
122
|
+
};
|
|
123
|
+
exports.findById = repository.findById, exports.findByOwnerId = repository.findByOwnerId, exports.create = repository.create, exports.update = repository.update, exports.updateIndexes = repository.updateIndexes, exports.updateMany = repository.updateMany, exports.deleteMany = repository.deleteMany;
|
|
124
124
|
//# sourceMappingURL=documentLine.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentLine.js","sourceRoot":"","sources":["../../../src/modules/stock/documentLine.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,+DAAsC;AACtC,sBAAqD;AA4BxC,QAAA,KAAK,GAAG,UAAG,kBAAe,SAAG,kBAAe,mBAAgB,CAAC;AAE1E,IAAM,UAAU,GAAuB;IACrC,QAAQ,EAAE,UACR,QAAiC;;;;wBAEhB,qBAAM,
|
|
1
|
+
{"version":3,"file":"documentLine.js","sourceRoot":"","sources":["../../../src/modules/stock/documentLine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,qBAAM,gBAAG,CAAC,IAAI,CAAC,UAAG,aAAK,gBAAa,EAAE,IAAI,CAAC,EAAA;;oBAAtD,QAAQ,GAAG,SAA2C;oBAC5D,sBAAO,QAAQ,CAAC,IAAI,EAAC;;;SACtB;IAED,UAAU,EAAE,UAAO,iBAA2B;;;wBAC5C,qBAAM,gBAAG,CAAC,MAAM,CAAC,UAAG,aAAK,CAAE,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,EAAA;;oBAAzD,SAAyD,CAAC;;;;SAC3D;CACF,CAAC;AAGA,QAAA,QAAQ,GAON,UAAU,WANZ,QAAA,aAAa,GAMX,UAAU,gBALZ,QAAA,MAAM,GAKJ,UAAU,SAJZ,QAAA,MAAM,GAIJ,UAAU,SAHZ,QAAA,aAAa,GAGX,UAAU,gBAFZ,QAAA,UAAU,GAER,UAAU,aADZ,QAAA,UAAU,GACR,UAAU,YAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { shared, DocumentLineAssoc as Entity } from '@nomalism-com/types';
|
|
2
|
-
export import IEntity = Entity.Entity;
|
|
3
|
-
export import IFindByOwnerIdRequest = shared.IFindByOwnerIdRequest;
|
|
4
|
-
export import IEntityExtended = Entity.IEntityExtended;
|
|
5
|
-
export import ICreateRequest = Entity.ICreateRequest;
|
|
6
|
-
export import IUpdateRequest = Entity.IUpdateRequest;
|
|
7
|
-
export import IValidarEntradaDeMaterialRequest = Entity.IValidarEntradaDeMaterialRequest;
|
|
8
|
-
export import IValidarEntradaDeMaterialPlotsResponse = Entity.IValidarEntradaDeMaterialPlotsResponse;
|
|
9
|
-
export import IValidarEntradaDeMaterialResponse = Entity.IValidarEntradaDeMaterialResponse;
|
|
10
|
-
export import IFinalizarEntradaDeMaterialRequest = Entity.IFinalizarEntradaDeMaterialRequest;
|
|
11
|
-
export import IConferirEncomendaClienteOptions = Entity.IConferirEncomendaClienteOptions;
|
|
12
|
-
export import IConferirEncomendaClienteRequest = Entity.IConferirEncomendaClienteRequest;
|
|
13
|
-
export import IPurchaFromProviderRequest = Entity.IPurchaseFromProviderRequest;
|
|
14
|
-
export import IDeleteInventoryLossRequest = Entity.IDeleteInventoryLossRequest;
|
|
15
|
-
export declare const findByOwnerId: (data: shared.IFindByOwnerIdRequest) => Promise<Entity.IEntityExtended[]>, create: (data: Entity.ICreateRequest[]) => Promise<Entity.IEntityExtended[]>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<Entity.IEntityExtended | null>, validarEntradaMaterial: (data: Entity.IValidarEntradaDeMaterialRequest) => Promise<Entity.IValidarEntradaDeMaterialResponse>, finalizarEntradaMaterial: (data: Entity.IFinalizarEntradaDeMaterialRequest) => Promise<void>, conferirEncomendaCliente: (data: Entity.IConferirEncomendaClienteRequest[]) => Promise<void>, purchaseFromProvider: (data: Entity.IPurchaseFromProviderRequest, user: shared.IUserToken) => Promise<void>, deleteInventoryLosses: (data: Entity.IDeleteInventoryLossRequest) => Promise<void>;
|
|
1
|
+
import { shared, DocumentLineAssoc as Entity } from '@nomalism-com/types';
|
|
2
|
+
export import IEntity = Entity.Entity;
|
|
3
|
+
export import IFindByOwnerIdRequest = shared.IFindByOwnerIdRequest;
|
|
4
|
+
export import IEntityExtended = Entity.IEntityExtended;
|
|
5
|
+
export import ICreateRequest = Entity.ICreateRequest;
|
|
6
|
+
export import IUpdateRequest = Entity.IUpdateRequest;
|
|
7
|
+
export import IValidarEntradaDeMaterialRequest = Entity.IValidarEntradaDeMaterialRequest;
|
|
8
|
+
export import IValidarEntradaDeMaterialPlotsResponse = Entity.IValidarEntradaDeMaterialPlotsResponse;
|
|
9
|
+
export import IValidarEntradaDeMaterialResponse = Entity.IValidarEntradaDeMaterialResponse;
|
|
10
|
+
export import IFinalizarEntradaDeMaterialRequest = Entity.IFinalizarEntradaDeMaterialRequest;
|
|
11
|
+
export import IConferirEncomendaClienteOptions = Entity.IConferirEncomendaClienteOptions;
|
|
12
|
+
export import IConferirEncomendaClienteRequest = Entity.IConferirEncomendaClienteRequest;
|
|
13
|
+
export import IPurchaFromProviderRequest = Entity.IPurchaseFromProviderRequest;
|
|
14
|
+
export import IDeleteInventoryLossRequest = Entity.IDeleteInventoryLossRequest;
|
|
15
|
+
export declare const findByOwnerId: (data: shared.IFindByOwnerIdRequest) => Promise<Entity.IEntityExtended[]>, create: (data: Entity.ICreateRequest[]) => Promise<Entity.IEntityExtended[]>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<Entity.IEntityExtended | null>, validarEntradaMaterial: (data: Entity.IValidarEntradaDeMaterialRequest) => Promise<Entity.IValidarEntradaDeMaterialResponse>, finalizarEntradaMaterial: (data: Entity.IFinalizarEntradaDeMaterialRequest) => Promise<void>, conferirEncomendaCliente: (data: Entity.IConferirEncomendaClienteRequest[]) => Promise<void>, purchaseFromProvider: (data: Entity.IPurchaseFromProviderRequest, user: shared.IUserToken) => Promise<void>, deleteInventoryLosses: (data: Entity.IDeleteInventoryLossRequest) => Promise<void>;
|
|
@@ -1,133 +1,133 @@
|
|
|
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 (_) 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
|
-
exports
|
|
42
|
-
exports.deleteInventoryLosses = exports.purchaseFromProvider = exports.conferirEncomendaCliente = exports.finalizarEntradaMaterial = exports.validarEntradaMaterial = exports.update = exports.create = exports.findByOwnerId = void 0;
|
|
43
|
-
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
-
var _1 = require(".");
|
|
45
|
-
var route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "document_line_assoc/");
|
|
46
|
-
var repository = {
|
|
47
|
-
findByOwnerId: 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 /*yield*/, client_1
|
|
52
|
-
case 1:
|
|
53
|
-
response = _a.sent();
|
|
54
|
-
return [2 /*return*/, response.data];
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
}); },
|
|
58
|
-
create: function (body) { 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 /*yield*/, client_1
|
|
63
|
-
case 1:
|
|
64
|
-
response = _a.sent();
|
|
65
|
-
return [2 /*return*/, response.data];
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
}); },
|
|
69
|
-
update: function (selector, body) { 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 /*yield*/, client_1
|
|
74
|
-
case 1:
|
|
75
|
-
response = _a.sent();
|
|
76
|
-
return [2 /*return*/, response.data];
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
}); },
|
|
80
|
-
validarEntradaMaterial: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
81
|
-
var response;
|
|
82
|
-
return __generator(this, function (_a) {
|
|
83
|
-
switch (_a.label) {
|
|
84
|
-
case 0: return [4 /*yield*/, client_1
|
|
85
|
-
case 1:
|
|
86
|
-
response = _a.sent();
|
|
87
|
-
return [2 /*return*/, response.data];
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
}); },
|
|
91
|
-
finalizarEntradaMaterial: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
92
|
-
return __generator(this, function (_a) {
|
|
93
|
-
switch (_a.label) {
|
|
94
|
-
case 0: return [4 /*yield*/, client_1
|
|
95
|
-
case 1:
|
|
96
|
-
_a.sent();
|
|
97
|
-
return [2 /*return*/];
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
}); },
|
|
101
|
-
conferirEncomendaCliente: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
102
|
-
return __generator(this, function (_a) {
|
|
103
|
-
switch (_a.label) {
|
|
104
|
-
case 0: return [4 /*yield*/, client_1
|
|
105
|
-
case 1:
|
|
106
|
-
_a.sent();
|
|
107
|
-
return [2 /*return*/];
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
}); },
|
|
111
|
-
purchaseFromProvider: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
112
|
-
return __generator(this, function (_a) {
|
|
113
|
-
switch (_a.label) {
|
|
114
|
-
case 0: return [4 /*yield*/, client_1
|
|
115
|
-
case 1:
|
|
116
|
-
_a.sent();
|
|
117
|
-
return [2 /*return*/];
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
}); },
|
|
121
|
-
deleteInventoryLosses: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
122
|
-
return __generator(this, function (_a) {
|
|
123
|
-
switch (_a.label) {
|
|
124
|
-
case 0: return [4 /*yield*/, client_1
|
|
125
|
-
case 1:
|
|
126
|
-
_a.sent();
|
|
127
|
-
return [2 /*return*/];
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
}); }
|
|
131
|
-
};
|
|
132
|
-
exports.findByOwnerId = repository.findByOwnerId, exports.create = repository.create, exports.update = repository.update, exports.validarEntradaMaterial = repository.validarEntradaMaterial, exports.finalizarEntradaMaterial = repository.finalizarEntradaMaterial, exports.conferirEncomendaCliente = repository.conferirEncomendaCliente, exports.purchaseFromProvider = repository.purchaseFromProvider, exports.deleteInventoryLosses = repository.deleteInventoryLosses;
|
|
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 (_) 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.deleteInventoryLosses = exports.purchaseFromProvider = exports.conferirEncomendaCliente = exports.finalizarEntradaMaterial = exports.validarEntradaMaterial = exports.update = exports.create = exports.findByOwnerId = void 0;
|
|
43
|
+
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
+
var _1 = require(".");
|
|
45
|
+
var route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "document_line_assoc/");
|
|
46
|
+
var repository = {
|
|
47
|
+
findByOwnerId: 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 /*yield*/, client_1.default.get("".concat(route, "by_owner"), { params: params })];
|
|
52
|
+
case 1:
|
|
53
|
+
response = _a.sent();
|
|
54
|
+
return [2 /*return*/, response.data];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}); },
|
|
58
|
+
create: function (body) { 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 /*yield*/, client_1.default.post("".concat(route), body)];
|
|
63
|
+
case 1:
|
|
64
|
+
response = _a.sent();
|
|
65
|
+
return [2 /*return*/, response.data];
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}); },
|
|
69
|
+
update: function (selector, body) { 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 /*yield*/, client_1.default.put("".concat(route).concat(selector.id), body)];
|
|
74
|
+
case 1:
|
|
75
|
+
response = _a.sent();
|
|
76
|
+
return [2 /*return*/, response.data];
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}); },
|
|
80
|
+
validarEntradaMaterial: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
81
|
+
var response;
|
|
82
|
+
return __generator(this, function (_a) {
|
|
83
|
+
switch (_a.label) {
|
|
84
|
+
case 0: return [4 /*yield*/, client_1.default.post("".concat(route, "validate_material_entrance"), data)];
|
|
85
|
+
case 1:
|
|
86
|
+
response = _a.sent();
|
|
87
|
+
return [2 /*return*/, response.data];
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}); },
|
|
91
|
+
finalizarEntradaMaterial: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
92
|
+
return __generator(this, function (_a) {
|
|
93
|
+
switch (_a.label) {
|
|
94
|
+
case 0: return [4 /*yield*/, client_1.default.post("".concat(route, "finalize_material_entrance"), data)];
|
|
95
|
+
case 1:
|
|
96
|
+
_a.sent();
|
|
97
|
+
return [2 /*return*/];
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}); },
|
|
101
|
+
conferirEncomendaCliente: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
102
|
+
return __generator(this, function (_a) {
|
|
103
|
+
switch (_a.label) {
|
|
104
|
+
case 0: return [4 /*yield*/, client_1.default.post("".concat(route, "check_client_order"), data)];
|
|
105
|
+
case 1:
|
|
106
|
+
_a.sent();
|
|
107
|
+
return [2 /*return*/];
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
}); },
|
|
111
|
+
purchaseFromProvider: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
switch (_a.label) {
|
|
114
|
+
case 0: return [4 /*yield*/, client_1.default.post("".concat(route, "purchase_from_provider"), data)];
|
|
115
|
+
case 1:
|
|
116
|
+
_a.sent();
|
|
117
|
+
return [2 /*return*/];
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}); },
|
|
121
|
+
deleteInventoryLosses: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
122
|
+
return __generator(this, function (_a) {
|
|
123
|
+
switch (_a.label) {
|
|
124
|
+
case 0: return [4 /*yield*/, client_1.default.delete("".concat(route, "inventory_loss"), { data: data })];
|
|
125
|
+
case 1:
|
|
126
|
+
_a.sent();
|
|
127
|
+
return [2 /*return*/];
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}); },
|
|
131
|
+
};
|
|
132
|
+
exports.findByOwnerId = repository.findByOwnerId, exports.create = repository.create, exports.update = repository.update, exports.validarEntradaMaterial = repository.validarEntradaMaterial, exports.finalizarEntradaMaterial = repository.finalizarEntradaMaterial, exports.conferirEncomendaCliente = repository.conferirEncomendaCliente, exports.purchaseFromProvider = repository.purchaseFromProvider, exports.deleteInventoryLosses = repository.deleteInventoryLosses;
|
|
133
133
|
//# sourceMappingURL=documentLineAssoc.js.map
|