digicust_types 1.7.162 → 1.7.166
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/lib/contracts/import-ocr-document-into-graph.dto.d.ts +10 -10
- package/lib/contracts/import-ocr-document-into-graph.dto.js +2 -2
- package/lib/contracts/index.d.ts +14 -14
- package/lib/contracts/index.js +26 -26
- package/lib/contracts/start-dakosy-submission.dto.d.ts +7 -7
- package/lib/contracts/start-dakosy-submission.dto.js +2 -2
- package/lib/contracts/start-data-extraction.dto.d.ts +16 -16
- package/lib/contracts/start-data-extraction.dto.js +2 -2
- package/lib/contracts/start-data-integration.dto.d.ts +7 -7
- package/lib/contracts/start-data-integration.dto.js +2 -2
- package/lib/contracts/start-data-normalization.dto.d.ts +7 -7
- package/lib/contracts/start-data-normalization.dto.js +2 -2
- package/lib/contracts/start-data-validation.dto.d.ts +7 -7
- package/lib/contracts/start-data-validation.dto.js +2 -2
- package/lib/contracts/start-document-classifier.dto.d.ts +7 -7
- package/lib/contracts/start-document-classifier.dto.js +2 -2
- package/lib/contracts/start-document-merger.dto.d.ts +12 -12
- package/lib/contracts/start-document-merger.dto.js +2 -2
- package/lib/contracts/start-document-splitting.dto.d.ts +9 -9
- package/lib/contracts/start-document-splitting.dto.js +2 -2
- package/lib/contracts/start-hs-classification-research.dto.d.ts +5 -5
- package/lib/contracts/start-hs-classification-research.dto.js +2 -2
- package/lib/contracts/start-hs-classification.dto.d.ts +3 -0
- package/lib/contracts/start-hs-classification.dto.js +2 -0
- package/lib/contracts/start-hs-classifier.dto.d.ts +8 -8
- package/lib/contracts/start-hs-classifier.dto.js +2 -2
- package/lib/contracts/start-ocr.dto.d.ts +9 -9
- package/lib/contracts/start-ocr.dto.js +2 -2
- package/lib/contracts/start-post-processing.dto.d.ts +7 -7
- package/lib/contracts/start-post-processing.dto.js +2 -2
- package/lib/contracts/trigger-event.dto.d.ts +7 -7
- package/lib/contracts/trigger-event.dto.js +2 -2
- package/lib/helpers/cleanObject.d.ts +6 -6
- package/lib/helpers/cleanObject.js +28 -28
- package/lib/index.d.ts +2 -2
- package/lib/index.js +14 -14
- package/lib/models/common/address.model.d.ts +22 -22
- package/lib/models/common/address.model.js +13 -13
- package/lib/models/common/bbox.model.d.ts +22 -22
- package/lib/models/common/bbox.model.js +2 -2
- package/lib/models/common/checkpoint.model.d.ts +21 -0
- package/lib/models/common/checkpoint.model.js +8 -0
- package/lib/models/common/classification-code.model.d.ts +5 -5
- package/lib/models/common/classification-code.model.js +2 -2
- package/lib/models/common/company.model.d.ts +22 -22
- package/lib/models/common/company.model.js +2 -2
- package/lib/models/common/country.model.d.ts +4 -0
- package/lib/models/common/country.model.js +2 -0
- package/lib/models/common/currency.enum.d.ts +181 -181
- package/lib/models/common/currency.enum.js +185 -185
- package/lib/models/common/customs-tariff-number.model.d.ts +25 -25
- package/lib/models/common/customs-tariff-number.model.js +21 -21
- package/lib/models/common/date.model.d.ts +5 -5
- package/lib/models/common/date.model.js +2 -2
- package/lib/models/common/dialog-window.model.d.ts +6 -6
- package/lib/models/common/dialog-window.model.js +2 -2
- package/lib/models/common/dimensions-unit.enum.d.ts +7 -7
- package/lib/models/common/dimensions-unit.enum.js +11 -11
- package/lib/models/common/dimensions.model.d.ts +8 -8
- package/lib/models/common/dimensions.model.js +2 -2
- package/lib/models/common/event.model.d.ts +21 -0
- package/lib/models/common/event.model.js +8 -0
- package/lib/models/common/extra-styles.model.d.ts +4 -4
- package/lib/models/common/extra-styles.model.js +2 -2
- package/lib/models/common/field-type.enum.d.ts +10 -10
- package/lib/models/common/field-type.enum.js +14 -14
- package/lib/models/common/filter.enum.d.ts +5 -5
- package/lib/models/common/filter.enum.js +9 -9
- package/lib/models/common/frontend-fields.model.d.ts +11 -11
- package/lib/models/common/frontend-fields.model.js +2 -2
- package/lib/models/common/fuzzy-input.d.ts +4 -4
- package/lib/models/common/fuzzy-input.js +2 -2
- package/lib/models/common/hs-classification-interaction.d.ts +30 -30
- package/lib/models/common/hs-classification-interaction.js +2 -2
- package/lib/models/common/hs-classification-response.d.ts +31 -31
- package/lib/models/common/hs-classification-response.js +2 -2
- package/lib/models/common/hs-code.model.d.ts +11 -11
- package/lib/models/common/hs-code.model.js +2 -2
- package/lib/models/common/index.d.ts +28 -28
- package/lib/models/common/index.js +44 -44
- package/lib/models/common/language.model.d.ts +4 -4
- package/lib/models/common/language.model.js +2 -2
- package/lib/models/common/meta.d.ts +35 -35
- package/lib/models/common/meta.js +15 -15
- package/lib/models/common/money.model.d.ts +11 -11
- package/lib/models/common/money.model.js +16 -16
- package/lib/models/common/multerfile.model.d.ts +12 -12
- package/lib/models/common/multerfile.model.js +2 -2
- package/lib/models/common/package-type.model.d.ts +10 -10
- package/lib/models/common/package-type.model.js +2 -2
- package/lib/models/common/periods.enum.d.ts +5 -5
- package/lib/models/common/periods.enum.js +9 -9
- package/lib/models/common/person.model.d.ts +12 -12
- package/lib/models/common/person.model.js +2 -2
- package/lib/models/common/prefix.enum.d.ts +5 -5
- package/lib/models/common/prefix.enum.js +10 -10
- package/lib/models/common/quantity.model.d.ts +15 -15
- package/lib/models/common/quantity.model.js +10 -10
- package/lib/models/common/section-type.enum.d.ts +12 -12
- package/lib/models/common/section-type.enum.js +16 -16
- package/lib/models/common/sort.enum.d.ts +4 -4
- package/lib/models/common/sort.enum.js +8 -8
- package/lib/models/common/subscription-price.model.d.ts +9 -9
- package/lib/models/common/subscription-price.model.js +2 -2
- package/lib/models/common/super.d.ts +7 -0
- package/lib/models/common/super.js +2 -0
- package/lib/models/common/uom.enum.d.ts +39 -39
- package/lib/models/common/uom.enum.js +44 -44
- package/lib/models/common/weight-unit.enum.d.ts +10 -10
- package/lib/models/common/weight-unit.enum.js +14 -14
- package/lib/models/common/weight.model.d.ts +7 -7
- package/lib/models/common/weight.model.js +15 -15
- package/lib/models/common/workflow.d.ts +27 -23
- package/lib/models/common/workflow.js +2 -2
- package/lib/models/digicust/AnalyzerMetadataModel.model.d.ts +13 -13
- package/lib/models/digicust/AnalyzerMetadataModel.model.js +2 -2
- package/lib/models/digicust/QueueWorkspaceModel.model.d.ts +12 -0
- package/lib/models/digicust/QueueWorkspaceModel.model.js +2 -0
- package/lib/models/digicust/activity.mode.d.ts +18 -0
- package/lib/models/digicust/activity.mode.js +2 -0
- package/lib/models/digicust/activity.model.d.ts +16 -16
- package/lib/models/digicust/activity.model.js +2 -2
- package/lib/models/digicust/adjustment.model.d.ts +7 -7
- package/lib/models/digicust/adjustment.model.js +2 -2
- package/lib/models/digicust/aggregated-case-data.model.d.ts +87 -87
- package/lib/models/digicust/aggregated-case-data.model.js +25 -25
- package/lib/models/digicust/case-status.enum.d.ts +22 -22
- package/lib/models/digicust/case-status.enum.js +26 -26
- package/lib/models/digicust/case-submission-transaction.d.ts +29 -29
- package/lib/models/digicust/case-submission-transaction.js +19 -19
- package/lib/models/digicust/case-type.enum.d.ts +7 -7
- package/lib/models/digicust/case-type.enum.js +11 -11
- package/lib/models/digicust/case.model.d.ts +47 -47
- package/lib/models/digicust/case.model.js +24 -24
- package/lib/models/digicust/company.model.d.ts +4 -0
- package/lib/models/digicust/company.model.js +2 -0
- package/lib/models/digicust/consignment-size.enum.d.ts +4 -4
- package/lib/models/digicust/consignment-size.enum.js +8 -8
- package/lib/models/digicust/container.model.d.ts +7 -7
- package/lib/models/digicust/container.model.js +2 -2
- package/lib/models/digicust/context.model.d.ts +9 -9
- package/lib/models/digicust/context.model.js +2 -2
- package/lib/models/digicust/cost-intersection.model.d.ts +20 -20
- package/lib/models/digicust/cost-intersection.model.js +16 -16
- package/lib/models/digicust/custom-document.model.d.ts +8 -0
- package/lib/models/digicust/custom-document.model.js +2 -0
- package/lib/models/digicust/customer.model.d.ts +55 -55
- package/lib/models/digicust/customer.model.js +2 -2
- package/lib/models/digicust/customsOffice.model.d.ts +15 -15
- package/lib/models/digicust/customsOffice.model.js +12 -12
- package/lib/models/digicust/declaration.model.d.ts +4 -4
- package/lib/models/digicust/declaration.model.js +2 -2
- package/lib/models/digicust/digicust-document-type.enum.d.ts +15 -0
- package/lib/models/digicust/digicust-document-type.enum.js +19 -0
- package/lib/models/digicust/digicust-document.model.d.ts +45 -0
- package/lib/models/digicust/digicust-document.model.js +38 -0
- package/lib/models/digicust/document-code.model.d.ts +12 -0
- package/lib/models/digicust/document-code.model.js +2 -0
- package/lib/models/digicust/document-status.enum.d.ts +38 -0
- package/lib/models/digicust/document-status.enum.js +45 -0
- package/lib/models/digicust/documents/custom-document.model.d.ts +8 -8
- package/lib/models/digicust/documents/custom-document.model.js +2 -2
- package/lib/models/digicust/documents/digicust-document-type.enum.d.ts +16 -16
- package/lib/models/digicust/documents/digicust-document-type.enum.js +20 -20
- package/lib/models/digicust/documents/digicust-document.model.d.ts +45 -45
- package/lib/models/digicust/documents/digicust-document.model.js +38 -38
- package/lib/models/digicust/documents/document-code.model.d.ts +12 -12
- package/lib/models/digicust/documents/document-code.model.js +2 -2
- package/lib/models/digicust/documents/document-status.enum.d.ts +38 -38
- package/lib/models/digicust/documents/document-status.enum.js +45 -45
- package/lib/models/digicust/documents/export-declaration.model.d.ts +32 -31
- package/lib/models/digicust/documents/export-declaration.model.js +2 -2
- package/lib/models/digicust/documents/index.d.ts +12 -11
- package/lib/models/digicust/documents/index.js +28 -27
- package/lib/models/digicust/documents/invoice-type.model.d.ts +9 -9
- package/lib/models/digicust/documents/invoice-type.model.js +2 -2
- package/lib/models/digicust/documents/invoice.model.d.ts +61 -62
- package/lib/models/digicust/documents/invoice.model.js +2 -2
- package/lib/models/digicust/documents/line-item-containing-document.d.ts +6 -0
- package/lib/models/digicust/documents/line-item-containing-document.js +2 -0
- package/lib/models/digicust/documents/packing-list.model.d.ts +33 -33
- package/lib/models/digicust/documents/packing-list.model.js +2 -2
- package/lib/models/digicust/documents/waybill-type.model.d.ts +15 -15
- package/lib/models/digicust/documents/waybill-type.model.js +11 -11
- package/lib/models/digicust/documents/waybill.model.d.ts +33 -33
- package/lib/models/digicust/documents/waybill.model.js +2 -2
- package/lib/models/digicust/errors.model.d.ts +8 -8
- package/lib/models/digicust/errors.model.js +2 -2
- package/lib/models/digicust/event.model.d.ts +59 -59
- package/lib/models/digicust/event.model.js +10 -10
- package/lib/models/digicust/execution-strategy.model.d.ts +96 -96
- package/lib/models/digicust/execution-strategy.model.js +15 -15
- package/lib/models/digicust/extractions/extraction-grid.model.d.ts +22 -22
- package/lib/models/digicust/extractions/extraction-grid.model.js +2 -2
- package/lib/models/digicust/extractions/extraction.model.d.ts +65 -65
- package/lib/models/digicust/extractions/extraction.model.js +2 -2
- package/lib/models/digicust/extractions/index.d.ts +2 -2
- package/lib/models/digicust/extractions/index.js +14 -14
- package/lib/models/digicust/frontend-big-section.model.d.ts +13 -13
- package/lib/models/digicust/frontend-big-section.model.js +2 -2
- package/lib/models/digicust/frontend-group.model.d.ts +6 -6
- package/lib/models/digicust/frontend-group.model.js +2 -2
- package/lib/models/digicust/frontend-mapping.model.d.ts +4 -4
- package/lib/models/digicust/frontend-mapping.model.js +2 -2
- package/lib/models/digicust/frontend-small-section.mode.d.ts +13 -13
- package/lib/models/digicust/frontend-small-section.mode.js +2 -2
- package/lib/models/digicust/hs-code-mapping.d.ts +26 -26
- package/lib/models/digicust/hs-code-mapping.js +2 -2
- package/lib/models/digicust/incoterm.enum.d.ts +17 -0
- package/lib/models/digicust/incoterm.enum.js +21 -0
- package/lib/models/digicust/incoterm.model.d.ts +25 -25
- package/lib/models/digicust/incoterm.model.js +21 -21
- package/lib/models/digicust/index.d.ts +41 -41
- package/lib/models/digicust/index.js +61 -61
- package/lib/models/digicust/invoice-type.model.d.ts +9 -0
- package/lib/models/digicust/invoice-type.model.js +2 -0
- package/lib/models/digicust/invoice.model.d.ts +62 -0
- package/lib/models/digicust/invoice.model.js +2 -0
- package/lib/models/digicust/line-item.model.d.ts +79 -79
- package/lib/models/digicust/line-item.model.js +17 -17
- package/lib/models/digicust/load-type.enum.d.ts +14 -14
- package/lib/models/digicust/load-type.enum.js +19 -19
- package/lib/models/digicust/masterdata/index.d.ts +11 -11
- package/lib/models/digicust/masterdata/index.js +23 -23
- package/lib/models/digicust/masterdata/matching-metadata.model.d.ts +8 -8
- package/lib/models/digicust/masterdata/matching-metadata.model.js +2 -2
- package/lib/models/digicust/masterdata/material-match-input.d.ts +8 -8
- package/lib/models/digicust/masterdata/material-match-input.js +2 -2
- package/lib/models/digicust/masterdata/material-match-result.d.ts +11 -11
- package/lib/models/digicust/masterdata/material-match-result.js +2 -2
- package/lib/models/digicust/masterdata/material.model.d.ts +97 -97
- package/lib/models/digicust/masterdata/material.model.js +9 -9
- package/lib/models/digicust/masterdata/scoring-algorithm-type.enum.d.ts +5 -0
- package/lib/models/digicust/masterdata/scoring-algorithm-type.enum.js +9 -0
- package/lib/models/digicust/masterdata/stakeholder-match-input.d.ts +6 -6
- package/lib/models/digicust/masterdata/stakeholder-match-input.js +2 -2
- package/lib/models/digicust/masterdata/stakeholder-match-result.d.ts +6 -6
- package/lib/models/digicust/masterdata/stakeholder-match-result.js +2 -2
- package/lib/models/digicust/masterdata/stakeholder-matching-method.enum.d.ts +7 -0
- package/lib/models/digicust/masterdata/stakeholder-matching-method.enum.js +11 -0
- package/lib/models/digicust/masterdata/stakeholder-role.enum.d.ts +12 -12
- package/lib/models/digicust/masterdata/stakeholder-role.enum.js +16 -16
- package/lib/models/digicust/masterdata/stakeholder-type.enum.d.ts +12 -0
- package/lib/models/digicust/masterdata/stakeholder-type.enum.js +16 -0
- package/lib/models/digicust/masterdata/stakeholder.model.d.ts +26 -26
- package/lib/models/digicust/masterdata/stakeholder.model.js +2 -2
- package/lib/models/digicust/masterdata/string-scoring-algorithm-type.enum.d.ts +6 -6
- package/lib/models/digicust/masterdata/string-scoring-algorithm-type.enum.js +10 -10
- package/lib/models/digicust/masterdata/string-scoring-details.d.ts +8 -8
- package/lib/models/digicust/masterdata/string-scoring-details.js +2 -2
- package/lib/models/digicust/masterdata/user-edited-properties.type.d.ts +3 -3
- package/lib/models/digicust/masterdata/user-edited-properties.type.js +2 -2
- package/lib/models/digicust/mean-of-transportation.model.d.ts +30 -30
- package/lib/models/digicust/mean-of-transportation.model.js +21 -21
- package/lib/models/digicust/membership.model.d.ts +7 -7
- package/lib/models/digicust/membership.model.js +2 -2
- package/lib/models/digicust/module.model.d.ts +49 -49
- package/lib/models/digicust/module.model.js +27 -27
- package/lib/models/digicust/notification.model.d.ts +13 -0
- package/lib/models/digicust/notification.model.js +2 -0
- package/lib/models/digicust/notifications.model.d.ts +13 -13
- package/lib/models/digicust/notifications.model.js +2 -2
- package/lib/models/digicust/operationType.enum.d.ts +15 -15
- package/lib/models/digicust/operationType.enum.js +19 -19
- package/lib/models/digicust/package.model.d.ts +21 -21
- package/lib/models/digicust/package.model.js +2 -2
- package/lib/models/digicust/packingList.model.d.ts +33 -0
- package/lib/models/digicust/packingList.model.js +2 -0
- package/lib/models/digicust/preference-state.model.d.ts +21 -21
- package/lib/models/digicust/preference-state.model.js +2 -2
- package/lib/models/digicust/procedure.model.d.ts +16 -16
- package/lib/models/digicust/procedure.model.js +9 -9
- package/lib/models/digicust/project.model.d.ts +25 -25
- package/lib/models/digicust/project.model.js +2 -2
- package/lib/models/digicust/queue-fields.model.d.ts +15 -15
- package/lib/models/digicust/queue-fields.model.js +2 -2
- package/lib/models/digicust/queue.model.d.ts +18 -18
- package/lib/models/digicust/queue.model.js +2 -2
- package/lib/models/digicust/report.model.d.ts +5 -5
- package/lib/models/digicust/report.model.js +2 -2
- package/lib/models/digicust/shipping-type.model.d.ts +25 -0
- package/lib/models/digicust/shipping-type.model.js +21 -0
- package/lib/models/digicust/special-measure.model.d.ts +4 -4
- package/lib/models/digicust/special-measure.model.js +2 -2
- package/lib/models/digicust/stats-case.model.d.ts +12 -12
- package/lib/models/digicust/stats-case.model.js +2 -2
- package/lib/models/digicust/submission-case-model.d.ts +8 -0
- package/lib/models/digicust/submission-case-model.js +2 -0
- package/lib/models/digicust/subscription-info.model.d.ts +13 -13
- package/lib/models/digicust/subscription-info.model.js +2 -2
- package/lib/models/digicust/subscription.model.d.ts +11 -11
- package/lib/models/digicust/subscription.model.js +2 -2
- package/lib/models/digicust/tax-details.model.d.ts +10 -10
- package/lib/models/digicust/tax-details.model.js +2 -2
- package/lib/models/digicust/transit-item.model.d.ts +30 -30
- package/lib/models/digicust/transit-item.model.js +67 -67
- package/lib/models/digicust/type-of-business.enum.d.ts +44 -44
- package/lib/models/digicust/type-of-business.enum.js +48 -48
- package/lib/models/digicust/type-of-business.model.d.ts +11 -11
- package/lib/models/digicust/type-of-business.model.js +2 -2
- package/lib/models/digicust/uploaded-file.model.d.ts +10 -10
- package/lib/models/digicust/uploaded-file.model.js +2 -2
- package/lib/models/digicust/user.model.d.ts +18 -18
- package/lib/models/digicust/user.model.js +2 -2
- package/lib/models/digicust/waybill-type.model.d.ts +15 -0
- package/lib/models/digicust/waybill-type.model.js +11 -0
- package/lib/models/digicust/waybill.model.d.ts +33 -0
- package/lib/models/digicust/waybill.model.js +2 -0
- package/lib/models/index.d.ts +4 -4
- package/lib/models/index.js +16 -16
- package/lib/models/ml/dexter/index.d.ts +1 -1
- package/lib/models/ml/dexter/index.js +13 -13
- package/lib/models/ml/dexter/text-detection.model.d.ts +3 -3
- package/lib/models/ml/dexter/text-detection.model.js +2 -2
- package/lib/models/ml/index.d.ts +2 -2
- package/lib/models/ml/index.js +14 -14
- package/lib/models/ml/machine-learning-model.model.d.ts +8 -8
- package/lib/models/ml/machine-learning-model.model.js +2 -2
- package/lib/models/rossum/index.d.ts +12 -12
- package/lib/models/rossum/index.js +24 -24
- package/lib/models/rossum/rossum-annotation-changed-event.dto.d.ts +8 -8
- package/lib/models/rossum/rossum-annotation-changed-event.dto.js +2 -2
- package/lib/models/rossum/rossum-annotation-data.model.d.ts +21 -21
- package/lib/models/rossum/rossum-annotation-data.model.js +2 -2
- package/lib/models/rossum/rossum-document-data.model.d.ts +12 -12
- package/lib/models/rossum/rossum-document-data.model.js +2 -2
- package/lib/models/rossum/rossum-embedded-response.model.d.ts +3 -3
- package/lib/models/rossum/rossum-embedded-response.model.js +2 -2
- package/lib/models/rossum/rossum-import-status.enum.d.ts +14 -14
- package/lib/models/rossum/rossum-import-status.enum.js +18 -18
- package/lib/models/rossum/rossum-login-response.model.d.ts +3 -3
- package/lib/models/rossum/rossum-login-response.model.js +2 -2
- package/lib/models/rossum/rossum-paginated-annotations.model.d.ts +6 -6
- package/lib/models/rossum/rossum-paginated-annotations.model.js +2 -2
- package/lib/models/rossum/rossum-paginated-documents.model.d.ts +5 -5
- package/lib/models/rossum/rossum-paginated-documents.model.js +2 -2
- package/lib/models/rossum/rossum-pagination.model.d.ts +6 -6
- package/lib/models/rossum/rossum-pagination.model.js +2 -2
- package/lib/models/rossum/rossum-result-content.dto.d.ts +6 -6
- package/lib/models/rossum/rossum-result-content.dto.js +2 -2
- package/lib/models/rossum/rossum-result-node.dto.d.ts +13 -13
- package/lib/models/rossum/rossum-result-node.dto.js +2 -2
- package/lib/models/rossum/rossum-start-analyze.dto.d.ts +5 -5
- package/lib/models/rossum/rossum-start-analyze.dto.js +2 -2
- package/package.json +37 -37
- package/readme.md +48 -48
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { AggregatedCaseDataModel, CaseStatus, DigicustDocumentModel, ExecutionStrategy, ModuleCategory, ModuleType, StatsCaseModel, UploadedFileModel } from ".";
|
|
2
|
-
import { Meta } from "..";
|
|
3
|
-
/**
|
|
4
|
-
* Model used for any kind of customs case.
|
|
5
|
-
*/
|
|
6
|
-
export interface CaseModel {
|
|
7
|
-
id?: string;
|
|
8
|
-
customerId?: string;
|
|
9
|
-
projectId?: string;
|
|
10
|
-
moduleId?: string;
|
|
11
|
-
module?: ModuleType;
|
|
12
|
-
moduleCategory?: ModuleCategory;
|
|
13
|
-
/** custom flags */
|
|
14
|
-
flags?: {
|
|
15
|
-
[key: string]: string;
|
|
16
|
-
};
|
|
17
|
-
contextId?: string;
|
|
18
|
-
status?: Meta<CaseStatus>;
|
|
19
|
-
createdAt?: Date;
|
|
20
|
-
processedAt?: string;
|
|
21
|
-
sentAt?: Date;
|
|
22
|
-
automatic?: boolean;
|
|
23
|
-
isProcessWithDextor?: boolean;
|
|
24
|
-
mrnNumber?: Meta<string>;
|
|
25
|
-
accomplishedAt?: Date;
|
|
26
|
-
reference?: string;
|
|
27
|
-
modifiedBy?: {
|
|
28
|
-
id?: string;
|
|
29
|
-
displayName?: string;
|
|
30
|
-
date?: Date;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Customs documents (e.g. invoices, waybills, ...)
|
|
34
|
-
* Each item could only exist in condensed form
|
|
35
|
-
*/
|
|
36
|
-
documents?: DigicustDocumentModel[];
|
|
37
|
-
/** Case level errors (property level errors are stored in property) */
|
|
38
|
-
errors?: Array<Error>;
|
|
39
|
-
/** Original, uploaded files */
|
|
40
|
-
uploadedFiles?: Array<UploadedFileModel>;
|
|
41
|
-
/** Aggregated case data */
|
|
42
|
-
aggregated?: AggregatedCaseDataModel;
|
|
43
|
-
stats?: StatsCaseModel;
|
|
44
|
-
/** Information on how the case needs to be processed */
|
|
45
|
-
executionStrategy?: ExecutionStrategy;
|
|
46
|
-
}
|
|
47
|
-
export declare const condenseCaseModel: (caseModel?: CaseModel | undefined) => CaseModel | null;
|
|
1
|
+
import { AggregatedCaseDataModel, CaseStatus, DigicustDocumentModel, ExecutionStrategy, ModuleCategory, ModuleType, StatsCaseModel, UploadedFileModel } from ".";
|
|
2
|
+
import { Meta } from "..";
|
|
3
|
+
/**
|
|
4
|
+
* Model used for any kind of customs case.
|
|
5
|
+
*/
|
|
6
|
+
export interface CaseModel {
|
|
7
|
+
id?: string;
|
|
8
|
+
customerId?: string;
|
|
9
|
+
projectId?: string;
|
|
10
|
+
moduleId?: string;
|
|
11
|
+
module?: ModuleType;
|
|
12
|
+
moduleCategory?: ModuleCategory;
|
|
13
|
+
/** custom flags */
|
|
14
|
+
flags?: {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
};
|
|
17
|
+
contextId?: string;
|
|
18
|
+
status?: Meta<CaseStatus>;
|
|
19
|
+
createdAt?: Date;
|
|
20
|
+
processedAt?: string;
|
|
21
|
+
sentAt?: Date;
|
|
22
|
+
automatic?: boolean;
|
|
23
|
+
isProcessWithDextor?: boolean;
|
|
24
|
+
mrnNumber?: Meta<string>;
|
|
25
|
+
accomplishedAt?: Date;
|
|
26
|
+
reference?: string;
|
|
27
|
+
modifiedBy?: {
|
|
28
|
+
id?: string;
|
|
29
|
+
displayName?: string;
|
|
30
|
+
date?: Date;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Customs documents (e.g. invoices, waybills, ...)
|
|
34
|
+
* Each item could only exist in condensed form
|
|
35
|
+
*/
|
|
36
|
+
documents?: DigicustDocumentModel[];
|
|
37
|
+
/** Case level errors (property level errors are stored in property) */
|
|
38
|
+
errors?: Array<Error>;
|
|
39
|
+
/** Original, uploaded files */
|
|
40
|
+
uploadedFiles?: Array<UploadedFileModel>;
|
|
41
|
+
/** Aggregated case data */
|
|
42
|
+
aggregated?: AggregatedCaseDataModel;
|
|
43
|
+
stats?: StatsCaseModel;
|
|
44
|
+
/** Information on how the case needs to be processed */
|
|
45
|
+
executionStrategy?: ExecutionStrategy;
|
|
46
|
+
}
|
|
47
|
+
export declare const condenseCaseModel: (caseModel?: CaseModel | undefined) => CaseModel | null;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.condenseCaseModel = void 0;
|
|
15
|
-
var _1 = require(".");
|
|
16
|
-
var condenseCaseModel = function (caseModel) {
|
|
17
|
-
var _a;
|
|
18
|
-
return caseModel
|
|
19
|
-
? __assign(__assign({}, caseModel), { documents: (_a = caseModel.documents) === null || _a === void 0 ? void 0 : _a.map(function (document) {
|
|
20
|
-
return (0, _1.condenseDocument)(document);
|
|
21
|
-
}), executionStrategy: (0, _1.condenseExecutionStrategy)(caseModel.executionStrategy), aggregated: (0, _1.condenseAggregated)(caseModel.aggregated) })
|
|
22
|
-
: null;
|
|
23
|
-
};
|
|
24
|
-
exports.condenseCaseModel = condenseCaseModel;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.condenseCaseModel = void 0;
|
|
15
|
+
var _1 = require(".");
|
|
16
|
+
var condenseCaseModel = function (caseModel) {
|
|
17
|
+
var _a;
|
|
18
|
+
return caseModel
|
|
19
|
+
? __assign(__assign({}, caseModel), { documents: (_a = caseModel.documents) === null || _a === void 0 ? void 0 : _a.map(function (document) {
|
|
20
|
+
return (0, _1.condenseDocument)(document);
|
|
21
|
+
}), executionStrategy: (0, _1.condenseExecutionStrategy)(caseModel.executionStrategy), aggregated: (0, _1.condenseAggregated)(caseModel.aggregated) })
|
|
22
|
+
: null;
|
|
23
|
+
};
|
|
24
|
+
exports.condenseCaseModel = condenseCaseModel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum ConsignmentSize {
|
|
2
|
-
smallConsignment = "small",
|
|
3
|
-
bulkConsignment = "bulk"
|
|
4
|
-
}
|
|
1
|
+
export declare enum ConsignmentSize {
|
|
2
|
+
smallConsignment = "small",
|
|
3
|
+
bulkConsignment = "bulk"
|
|
4
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConsignmentSize = void 0;
|
|
4
|
-
var ConsignmentSize;
|
|
5
|
-
(function (ConsignmentSize) {
|
|
6
|
-
ConsignmentSize["smallConsignment"] = "small";
|
|
7
|
-
ConsignmentSize["bulkConsignment"] = "bulk";
|
|
8
|
-
})(ConsignmentSize = exports.ConsignmentSize || (exports.ConsignmentSize = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConsignmentSize = void 0;
|
|
4
|
+
var ConsignmentSize;
|
|
5
|
+
(function (ConsignmentSize) {
|
|
6
|
+
ConsignmentSize["smallConsignment"] = "small";
|
|
7
|
+
ConsignmentSize["bulkConsignment"] = "bulk";
|
|
8
|
+
})(ConsignmentSize = exports.ConsignmentSize || (exports.ConsignmentSize = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Meta } from "../common";
|
|
2
|
-
export interface Container extends Meta<string> {
|
|
3
|
-
/** container number */
|
|
4
|
-
value?: string;
|
|
5
|
-
/** ISO Size Code */
|
|
6
|
-
typeCode?: string;
|
|
7
|
-
}
|
|
1
|
+
import { Meta } from "../common";
|
|
2
|
+
export interface Container extends Meta<string> {
|
|
3
|
+
/** container number */
|
|
4
|
+
value?: string;
|
|
5
|
+
/** ISO Size Code */
|
|
6
|
+
typeCode?: string;
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Identifies the context of a case.
|
|
3
|
-
*/
|
|
4
|
-
export interface ContextModel {
|
|
5
|
-
id?: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
customerId?: string;
|
|
8
|
-
projectId?: string;
|
|
9
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Identifies the context of a case.
|
|
3
|
+
*/
|
|
4
|
+
export interface ContextModel {
|
|
5
|
+
id?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
customerId?: string;
|
|
8
|
+
projectId?: string;
|
|
9
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { Meta } from "../common";
|
|
2
|
-
/**
|
|
3
|
-
* Identifies cost intersection
|
|
4
|
-
*/
|
|
5
|
-
export interface CostIntersection extends Meta<CostIntersectionTypes> {
|
|
6
|
-
NC_23000?: string;
|
|
7
|
-
DE_A1850?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare enum CostIntersectionTypes {
|
|
10
|
-
outsideZoneDutyUnpaid = "outsideZoneDutyUnpaid",
|
|
11
|
-
freeBorderDutyUnpaid = "freeBorderDutyUnpaid",
|
|
12
|
-
insideZoneDutyUnpaid = "insideZoneDutyUnpaid",
|
|
13
|
-
outsideZoneDutyPaid = "outsideZoneDutyPaid",
|
|
14
|
-
freeBorderDutyPaid = "freeBorderDutyPaid",
|
|
15
|
-
insideZoneDutyPaid = "insideZoneDutyPaid",
|
|
16
|
-
outsideZoneDutyPaidExclusiveVat = "outsideZoneDutyPaidExclusiveVat",
|
|
17
|
-
freeBorderDutyPaidExclusiveVat = "freeBorderDutyPaidExclusiveVat",
|
|
18
|
-
insideZoneDutyPaidExclusiveVat = "insideZoneDutyPaidExclusiveVat",
|
|
19
|
-
freeBorderDutyPaidValueEstimated = "freeBorderDutyPaidValueEstimated"
|
|
20
|
-
}
|
|
1
|
+
import { Meta } from "../common";
|
|
2
|
+
/**
|
|
3
|
+
* Identifies cost intersection
|
|
4
|
+
*/
|
|
5
|
+
export interface CostIntersection extends Meta<CostIntersectionTypes> {
|
|
6
|
+
NC_23000?: string;
|
|
7
|
+
DE_A1850?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare enum CostIntersectionTypes {
|
|
10
|
+
outsideZoneDutyUnpaid = "outsideZoneDutyUnpaid",
|
|
11
|
+
freeBorderDutyUnpaid = "freeBorderDutyUnpaid",
|
|
12
|
+
insideZoneDutyUnpaid = "insideZoneDutyUnpaid",
|
|
13
|
+
outsideZoneDutyPaid = "outsideZoneDutyPaid",
|
|
14
|
+
freeBorderDutyPaid = "freeBorderDutyPaid",
|
|
15
|
+
insideZoneDutyPaid = "insideZoneDutyPaid",
|
|
16
|
+
outsideZoneDutyPaidExclusiveVat = "outsideZoneDutyPaidExclusiveVat",
|
|
17
|
+
freeBorderDutyPaidExclusiveVat = "freeBorderDutyPaidExclusiveVat",
|
|
18
|
+
insideZoneDutyPaidExclusiveVat = "insideZoneDutyPaidExclusiveVat",
|
|
19
|
+
freeBorderDutyPaidValueEstimated = "freeBorderDutyPaidValueEstimated"
|
|
20
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CostIntersectionTypes = void 0;
|
|
4
|
-
var CostIntersectionTypes;
|
|
5
|
-
(function (CostIntersectionTypes) {
|
|
6
|
-
CostIntersectionTypes["outsideZoneDutyUnpaid"] = "outsideZoneDutyUnpaid";
|
|
7
|
-
CostIntersectionTypes["freeBorderDutyUnpaid"] = "freeBorderDutyUnpaid";
|
|
8
|
-
CostIntersectionTypes["insideZoneDutyUnpaid"] = "insideZoneDutyUnpaid";
|
|
9
|
-
CostIntersectionTypes["outsideZoneDutyPaid"] = "outsideZoneDutyPaid";
|
|
10
|
-
CostIntersectionTypes["freeBorderDutyPaid"] = "freeBorderDutyPaid";
|
|
11
|
-
CostIntersectionTypes["insideZoneDutyPaid"] = "insideZoneDutyPaid";
|
|
12
|
-
CostIntersectionTypes["outsideZoneDutyPaidExclusiveVat"] = "outsideZoneDutyPaidExclusiveVat";
|
|
13
|
-
CostIntersectionTypes["freeBorderDutyPaidExclusiveVat"] = "freeBorderDutyPaidExclusiveVat";
|
|
14
|
-
CostIntersectionTypes["insideZoneDutyPaidExclusiveVat"] = "insideZoneDutyPaidExclusiveVat";
|
|
15
|
-
CostIntersectionTypes["freeBorderDutyPaidValueEstimated"] = "freeBorderDutyPaidValueEstimated";
|
|
16
|
-
})(CostIntersectionTypes = exports.CostIntersectionTypes || (exports.CostIntersectionTypes = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CostIntersectionTypes = void 0;
|
|
4
|
+
var CostIntersectionTypes;
|
|
5
|
+
(function (CostIntersectionTypes) {
|
|
6
|
+
CostIntersectionTypes["outsideZoneDutyUnpaid"] = "outsideZoneDutyUnpaid";
|
|
7
|
+
CostIntersectionTypes["freeBorderDutyUnpaid"] = "freeBorderDutyUnpaid";
|
|
8
|
+
CostIntersectionTypes["insideZoneDutyUnpaid"] = "insideZoneDutyUnpaid";
|
|
9
|
+
CostIntersectionTypes["outsideZoneDutyPaid"] = "outsideZoneDutyPaid";
|
|
10
|
+
CostIntersectionTypes["freeBorderDutyPaid"] = "freeBorderDutyPaid";
|
|
11
|
+
CostIntersectionTypes["insideZoneDutyPaid"] = "insideZoneDutyPaid";
|
|
12
|
+
CostIntersectionTypes["outsideZoneDutyPaidExclusiveVat"] = "outsideZoneDutyPaidExclusiveVat";
|
|
13
|
+
CostIntersectionTypes["freeBorderDutyPaidExclusiveVat"] = "freeBorderDutyPaidExclusiveVat";
|
|
14
|
+
CostIntersectionTypes["insideZoneDutyPaidExclusiveVat"] = "insideZoneDutyPaidExclusiveVat";
|
|
15
|
+
CostIntersectionTypes["freeBorderDutyPaidValueEstimated"] = "freeBorderDutyPaidValueEstimated";
|
|
16
|
+
})(CostIntersectionTypes = exports.CostIntersectionTypes || (exports.CostIntersectionTypes = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DigicustDocumentType } from "./digicust-document-type.enum";
|
|
2
|
+
import { DigicustDocumentModel } from "./digicust-document.model";
|
|
3
|
+
/**
|
|
4
|
+
* Identifies a user-specified case document
|
|
5
|
+
*/
|
|
6
|
+
export interface CustomDocumentModel extends DigicustDocumentModel {
|
|
7
|
+
documentType: DigicustDocumentType.CustomDocument;
|
|
8
|
+
}
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { ModuleModel } from "./module.model";
|
|
2
|
-
/**
|
|
3
|
-
* Identifies a specific customer of Digicust
|
|
4
|
-
*/
|
|
5
|
-
export interface CustomerModel {
|
|
6
|
-
id?: string;
|
|
7
|
-
name?: string;
|
|
8
|
-
modules?: ModuleModel[];
|
|
9
|
-
projectId?: string;
|
|
10
|
-
renewedDateTime?: Date;
|
|
11
|
-
status?: string;
|
|
12
|
-
companyAddress?: string;
|
|
13
|
-
country?: string;
|
|
14
|
-
city?: string;
|
|
15
|
-
zipCode?: string;
|
|
16
|
-
commercialRegistryEntry?: string;
|
|
17
|
-
taxNumber?: string;
|
|
18
|
-
vatNumber?: string;
|
|
19
|
-
eoriNumber?: string;
|
|
20
|
-
contactPerson?: {
|
|
21
|
-
name?: string;
|
|
22
|
-
email?: string;
|
|
23
|
-
address?: string;
|
|
24
|
-
phone?: string;
|
|
25
|
-
};
|
|
26
|
-
inboundContactPerson?: Array<{
|
|
27
|
-
name?: string;
|
|
28
|
-
email?: string;
|
|
29
|
-
}>;
|
|
30
|
-
outboundContactPerson?: Array<{
|
|
31
|
-
name?: string;
|
|
32
|
-
email?: string;
|
|
33
|
-
}>;
|
|
34
|
-
openingHoursInboundDepartment?: Array<{
|
|
35
|
-
dayOfTheWeek?: string;
|
|
36
|
-
open?: boolean;
|
|
37
|
-
startTime?: any;
|
|
38
|
-
endtime?: any;
|
|
39
|
-
}>;
|
|
40
|
-
openingHoursOutboundDepartment?: Array<{
|
|
41
|
-
dayOfTheWeek?: string;
|
|
42
|
-
open?: boolean;
|
|
43
|
-
startTime?: any;
|
|
44
|
-
endtime?: any;
|
|
45
|
-
}>;
|
|
46
|
-
typeOfCompany?: "forwarder" | "customsBroker" | "manufacturingCompany" | "tradingCompany";
|
|
47
|
-
typeOfIndustry?: string;
|
|
48
|
-
companySize?: string;
|
|
49
|
-
numberOfCustomers?: string;
|
|
50
|
-
useOfSoftware?: string;
|
|
51
|
-
importsPerYear?: string;
|
|
52
|
-
exportsPerYear?: string;
|
|
53
|
-
specialProcedures?: Array<string>;
|
|
54
|
-
specialProceduresDeclarationPerYear?: string;
|
|
55
|
-
}
|
|
1
|
+
import { ModuleModel } from "./module.model";
|
|
2
|
+
/**
|
|
3
|
+
* Identifies a specific customer of Digicust
|
|
4
|
+
*/
|
|
5
|
+
export interface CustomerModel {
|
|
6
|
+
id?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
modules?: ModuleModel[];
|
|
9
|
+
projectId?: string;
|
|
10
|
+
renewedDateTime?: Date;
|
|
11
|
+
status?: string;
|
|
12
|
+
companyAddress?: string;
|
|
13
|
+
country?: string;
|
|
14
|
+
city?: string;
|
|
15
|
+
zipCode?: string;
|
|
16
|
+
commercialRegistryEntry?: string;
|
|
17
|
+
taxNumber?: string;
|
|
18
|
+
vatNumber?: string;
|
|
19
|
+
eoriNumber?: string;
|
|
20
|
+
contactPerson?: {
|
|
21
|
+
name?: string;
|
|
22
|
+
email?: string;
|
|
23
|
+
address?: string;
|
|
24
|
+
phone?: string;
|
|
25
|
+
};
|
|
26
|
+
inboundContactPerson?: Array<{
|
|
27
|
+
name?: string;
|
|
28
|
+
email?: string;
|
|
29
|
+
}>;
|
|
30
|
+
outboundContactPerson?: Array<{
|
|
31
|
+
name?: string;
|
|
32
|
+
email?: string;
|
|
33
|
+
}>;
|
|
34
|
+
openingHoursInboundDepartment?: Array<{
|
|
35
|
+
dayOfTheWeek?: string;
|
|
36
|
+
open?: boolean;
|
|
37
|
+
startTime?: any;
|
|
38
|
+
endtime?: any;
|
|
39
|
+
}>;
|
|
40
|
+
openingHoursOutboundDepartment?: Array<{
|
|
41
|
+
dayOfTheWeek?: string;
|
|
42
|
+
open?: boolean;
|
|
43
|
+
startTime?: any;
|
|
44
|
+
endtime?: any;
|
|
45
|
+
}>;
|
|
46
|
+
typeOfCompany?: "forwarder" | "customsBroker" | "manufacturingCompany" | "tradingCompany";
|
|
47
|
+
typeOfIndustry?: string;
|
|
48
|
+
companySize?: string;
|
|
49
|
+
numberOfCustomers?: string;
|
|
50
|
+
useOfSoftware?: string;
|
|
51
|
+
importsPerYear?: string;
|
|
52
|
+
exportsPerYear?: string;
|
|
53
|
+
specialProcedures?: Array<string>;
|
|
54
|
+
specialProceduresDeclarationPerYear?: string;
|
|
55
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { AddressModel, Meta } from "../common";
|
|
2
|
-
export interface CustomsOffice extends Meta<any> {
|
|
3
|
-
code?: Meta<string>;
|
|
4
|
-
officeType?: CustomsOfficeType;
|
|
5
|
-
address?: AddressModel;
|
|
6
|
-
name?: Meta<string>;
|
|
7
|
-
}
|
|
8
|
-
export declare enum CustomsOfficeType {
|
|
9
|
-
entry = "Entry",
|
|
10
|
-
exit = "Exit",
|
|
11
|
-
export = "Export",
|
|
12
|
-
transit = "Transit",
|
|
13
|
-
import = "Import",
|
|
14
|
-
declaration = "Declaration"
|
|
15
|
-
}
|
|
1
|
+
import { AddressModel, Meta } from "../common";
|
|
2
|
+
export interface CustomsOffice extends Meta<any> {
|
|
3
|
+
code?: Meta<string>;
|
|
4
|
+
officeType?: CustomsOfficeType;
|
|
5
|
+
address?: AddressModel;
|
|
6
|
+
name?: Meta<string>;
|
|
7
|
+
}
|
|
8
|
+
export declare enum CustomsOfficeType {
|
|
9
|
+
entry = "Entry",
|
|
10
|
+
exit = "Exit",
|
|
11
|
+
export = "Export",
|
|
12
|
+
transit = "Transit",
|
|
13
|
+
import = "Import",
|
|
14
|
+
declaration = "Declaration"
|
|
15
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomsOfficeType = void 0;
|
|
4
|
-
var CustomsOfficeType;
|
|
5
|
-
(function (CustomsOfficeType) {
|
|
6
|
-
CustomsOfficeType["entry"] = "Entry";
|
|
7
|
-
CustomsOfficeType["exit"] = "Exit";
|
|
8
|
-
CustomsOfficeType["export"] = "Export";
|
|
9
|
-
CustomsOfficeType["transit"] = "Transit";
|
|
10
|
-
CustomsOfficeType["import"] = "Import";
|
|
11
|
-
CustomsOfficeType["declaration"] = "Declaration";
|
|
12
|
-
})(CustomsOfficeType = exports.CustomsOfficeType || (exports.CustomsOfficeType = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomsOfficeType = void 0;
|
|
4
|
+
var CustomsOfficeType;
|
|
5
|
+
(function (CustomsOfficeType) {
|
|
6
|
+
CustomsOfficeType["entry"] = "Entry";
|
|
7
|
+
CustomsOfficeType["exit"] = "Exit";
|
|
8
|
+
CustomsOfficeType["export"] = "Export";
|
|
9
|
+
CustomsOfficeType["transit"] = "Transit";
|
|
10
|
+
CustomsOfficeType["import"] = "Import";
|
|
11
|
+
CustomsOfficeType["declaration"] = "Declaration";
|
|
12
|
+
})(CustomsOfficeType = exports.CustomsOfficeType || (exports.CustomsOfficeType = {}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface Declaration {
|
|
2
|
-
}
|
|
3
|
-
export interface DeclarationType1 extends Declaration {
|
|
4
|
-
}
|
|
1
|
+
export interface Declaration {
|
|
2
|
+
}
|
|
3
|
+
export interface DeclarationType1 extends Declaration {
|
|
4
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identifies different document types
|
|
3
|
+
*/
|
|
4
|
+
export declare enum DigicustDocumentType {
|
|
5
|
+
Invoice = "invoice",
|
|
6
|
+
Waybill = "waybill",
|
|
7
|
+
PackingList = "packingList",
|
|
8
|
+
TaxInvoice = "taxInvoice",
|
|
9
|
+
CustomDocument = "customDocument",
|
|
10
|
+
ItemListing = "itemListing",
|
|
11
|
+
CostOverview = "costOverview",
|
|
12
|
+
DeclarationOfOrigin = "declarationOfOrigin",
|
|
13
|
+
PreferentialProofOfOrigin = "preferentialProofOfOrigin",
|
|
14
|
+
ProofOfDirectTransport = "proofOfDirectTransport"
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DigicustDocumentType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Identifies different document types
|
|
6
|
+
*/
|
|
7
|
+
var DigicustDocumentType;
|
|
8
|
+
(function (DigicustDocumentType) {
|
|
9
|
+
DigicustDocumentType["Invoice"] = "invoice";
|
|
10
|
+
DigicustDocumentType["Waybill"] = "waybill";
|
|
11
|
+
DigicustDocumentType["PackingList"] = "packingList";
|
|
12
|
+
DigicustDocumentType["TaxInvoice"] = "taxInvoice";
|
|
13
|
+
DigicustDocumentType["CustomDocument"] = "customDocument";
|
|
14
|
+
DigicustDocumentType["ItemListing"] = "itemListing";
|
|
15
|
+
DigicustDocumentType["CostOverview"] = "costOverview";
|
|
16
|
+
DigicustDocumentType["DeclarationOfOrigin"] = "declarationOfOrigin";
|
|
17
|
+
DigicustDocumentType["PreferentialProofOfOrigin"] = "preferentialProofOfOrigin";
|
|
18
|
+
DigicustDocumentType["ProofOfDirectTransport"] = "proofOfDirectTransport";
|
|
19
|
+
})(DigicustDocumentType = exports.DigicustDocumentType || (exports.DigicustDocumentType = {}));
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ClassificationStatus, DigicustDocumentType, DocumentCode, DocumentStatus, SubDocumentStatus, UserDocumentStatus } from ".";
|
|
2
|
+
import { DateTimeModel, RossumImportStatus } from "..";
|
|
3
|
+
import { AnalyzerMetadataModel } from "./AnalyzerMetadataModel.model";
|
|
4
|
+
import { ProcessingModel } from "./extractions/extraction.model";
|
|
5
|
+
/**
|
|
6
|
+
* Base model for different types of documents (e.g. waybills, invoices, ...)
|
|
7
|
+
*/
|
|
8
|
+
export interface DigicustDocumentModel {
|
|
9
|
+
id?: string;
|
|
10
|
+
queueId?: string;
|
|
11
|
+
caseId?: string;
|
|
12
|
+
projectId?: string;
|
|
13
|
+
customerId?: string;
|
|
14
|
+
extractId?: string;
|
|
15
|
+
fileName?: string;
|
|
16
|
+
documentType?: DigicustDocumentType;
|
|
17
|
+
documentCode?: DocumentCode;
|
|
18
|
+
documentStatus?: DocumentStatus;
|
|
19
|
+
userDocumentStatus?: UserDocumentStatus;
|
|
20
|
+
subDocumentStatus?: SubDocumentStatus;
|
|
21
|
+
classificationStatus?: ClassificationStatus;
|
|
22
|
+
processing?: ProcessingModel;
|
|
23
|
+
receivedAt?: Date;
|
|
24
|
+
code?: string;
|
|
25
|
+
reference?: string;
|
|
26
|
+
issueDate?: DateTimeModel;
|
|
27
|
+
isCondensed?: boolean;
|
|
28
|
+
[customField: string]: any;
|
|
29
|
+
analyzerMetadata?: AnalyzerMetadataModel;
|
|
30
|
+
modifiedBy?: {
|
|
31
|
+
id?: String;
|
|
32
|
+
displayName?: String;
|
|
33
|
+
date?: Date;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated
|
|
37
|
+
*/
|
|
38
|
+
rossumMetadata?: {
|
|
39
|
+
importStatus?: RossumImportStatus;
|
|
40
|
+
annotationId?: string;
|
|
41
|
+
queueId?: number;
|
|
42
|
+
exportOnConfirmed?: boolean;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export declare const condenseDocument: (document?: DigicustDocumentModel | undefined) => DigicustDocumentModel | null;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.condenseDocument = void 0;
|
|
4
|
+
var _1 = require(".");
|
|
5
|
+
var condenseDocument = function (document) {
|
|
6
|
+
var doc = document
|
|
7
|
+
? {
|
|
8
|
+
id: document.id,
|
|
9
|
+
caseId: document.caseId,
|
|
10
|
+
queueId: document.queueId,
|
|
11
|
+
fileName: document.fileName,
|
|
12
|
+
documentType: document.documentType,
|
|
13
|
+
documentStatus: document.documentStatus,
|
|
14
|
+
userDocumentStatus: document.UserDocumentStatus,
|
|
15
|
+
subDocumentStatus: document.SubDocumentStatus,
|
|
16
|
+
classificationStatus: document.classificationStatus,
|
|
17
|
+
code: document.code,
|
|
18
|
+
reference: document.reference,
|
|
19
|
+
issueDate: document.issueDate,
|
|
20
|
+
analyzerMetadata: document.analyzerMetadata,
|
|
21
|
+
isCondensed: true,
|
|
22
|
+
}
|
|
23
|
+
: null;
|
|
24
|
+
if ((doc === null || doc === void 0 ? void 0 : doc.documentType) === _1.DigicustDocumentType.Invoice) {
|
|
25
|
+
var invoice = doc;
|
|
26
|
+
if (invoice.items) {
|
|
27
|
+
invoice.items = invoice.items.map(function (item) {
|
|
28
|
+
var lineItem = (0, _1.condenseLineItem)(item);
|
|
29
|
+
if (!lineItem) {
|
|
30
|
+
return {};
|
|
31
|
+
}
|
|
32
|
+
return lineItem;
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return doc;
|
|
37
|
+
};
|
|
38
|
+
exports.condenseDocument = condenseDocument;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta } from "../common";
|
|
2
|
+
import { DigicustDocumentType } from "./digicust-document-type.enum";
|
|
3
|
+
/**
|
|
4
|
+
* Coding of documents
|
|
5
|
+
*/
|
|
6
|
+
export interface DocumentCode extends Meta<DigicustDocumentType> {
|
|
7
|
+
NC_24000?: string;
|
|
8
|
+
Dokumentenarten?: string;
|
|
9
|
+
DE_I0200?: string;
|
|
10
|
+
/** Bescheinigungsbereich */
|
|
11
|
+
DE_I0200_Bereich?: string;
|
|
12
|
+
}
|