digicust_types 1.7.0 → 1.7.5

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.
Files changed (261) hide show
  1. package/lib/contracts/index.d.ts +13 -13
  2. package/lib/contracts/index.js +25 -25
  3. package/lib/contracts/start-dakosy-submission.dto.d.ts +7 -7
  4. package/lib/contracts/start-dakosy-submission.dto.js +2 -2
  5. package/lib/contracts/start-data-extraction.dto.d.ts +16 -16
  6. package/lib/contracts/start-data-extraction.dto.js +2 -2
  7. package/lib/contracts/start-data-integration.dto.d.ts +7 -7
  8. package/lib/contracts/start-data-integration.dto.js +2 -2
  9. package/lib/contracts/start-data-normalization.dto.d.ts +7 -7
  10. package/lib/contracts/start-data-normalization.dto.js +2 -2
  11. package/lib/contracts/start-data-validation.dto.d.ts +7 -7
  12. package/lib/contracts/start-data-validation.dto.js +2 -2
  13. package/lib/contracts/start-document-classifier.dto.d.ts +7 -7
  14. package/lib/contracts/start-document-classifier.dto.js +2 -2
  15. package/lib/contracts/start-document-merger.dto.d.ts +12 -12
  16. package/lib/contracts/start-document-merger.dto.js +2 -2
  17. package/lib/contracts/start-document-splitting.dto.d.ts +9 -9
  18. package/lib/contracts/start-document-splitting.dto.js +2 -2
  19. package/lib/contracts/start-hs-classification-research.dto.d.ts +5 -5
  20. package/lib/contracts/start-hs-classification-research.dto.js +2 -2
  21. package/lib/contracts/start-hs-classifier.dto.d.ts +8 -8
  22. package/lib/contracts/start-hs-classifier.dto.js +2 -2
  23. package/lib/contracts/start-ocr.dto.d.ts +9 -9
  24. package/lib/contracts/start-ocr.dto.js +2 -2
  25. package/lib/contracts/start-post-processing.dto.d.ts +7 -7
  26. package/lib/contracts/start-post-processing.dto.js +2 -2
  27. package/lib/contracts/trigger-event.dto.d.ts +7 -7
  28. package/lib/contracts/trigger-event.dto.js +2 -2
  29. package/lib/helpers/cleanObject.d.ts +6 -6
  30. package/lib/helpers/cleanObject.js +28 -28
  31. package/lib/index.d.ts +2 -2
  32. package/lib/index.js +14 -14
  33. package/lib/models/common/address.model.d.ts +21 -21
  34. package/lib/models/common/address.model.js +13 -13
  35. package/lib/models/common/bbox.model.d.ts +22 -22
  36. package/lib/models/common/bbox.model.js +2 -2
  37. package/lib/models/common/classification-code.model.d.ts +5 -5
  38. package/lib/models/common/classification-code.model.js +2 -2
  39. package/lib/models/common/company.model.d.ts +18 -16
  40. package/lib/models/common/company.model.js +2 -2
  41. package/lib/models/common/currency.enum.d.ts +181 -181
  42. package/lib/models/common/currency.enum.js +185 -185
  43. package/lib/models/common/customs-tariff-number.model.d.ts +22 -22
  44. package/lib/models/common/customs-tariff-number.model.js +21 -21
  45. package/lib/models/common/date.model.d.ts +5 -5
  46. package/lib/models/common/date.model.js +2 -2
  47. package/lib/models/common/dialog-window.model.d.ts +6 -6
  48. package/lib/models/common/dialog-window.model.js +2 -2
  49. package/lib/models/common/extra-styles.model.d.ts +4 -4
  50. package/lib/models/common/extra-styles.model.js +2 -2
  51. package/lib/models/common/field-type.enum.d.ts +10 -10
  52. package/lib/models/common/field-type.enum.js +14 -14
  53. package/lib/models/common/filter.enum.d.ts +5 -5
  54. package/lib/models/common/filter.enum.js +9 -9
  55. package/lib/models/common/frontend-fields.model.d.ts +11 -11
  56. package/lib/models/common/frontend-fields.model.js +2 -2
  57. package/lib/models/common/fuzzy-input.d.ts +4 -4
  58. package/lib/models/common/fuzzy-input.js +2 -2
  59. package/lib/models/common/hs-classification-interaction.d.ts +30 -30
  60. package/lib/models/common/hs-classification-interaction.js +2 -2
  61. package/lib/models/common/hs-classification-response.d.ts +31 -31
  62. package/lib/models/common/hs-classification-response.js +2 -2
  63. package/lib/models/common/hs-code.model.d.ts +11 -11
  64. package/lib/models/common/hs-code.model.js +2 -2
  65. package/lib/models/common/index.d.ts +25 -25
  66. package/lib/models/common/index.js +41 -41
  67. package/lib/models/common/language.model.d.ts +4 -4
  68. package/lib/models/common/language.model.js +2 -2
  69. package/lib/models/common/meta.d.ts +42 -42
  70. package/lib/models/common/meta.js +9 -9
  71. package/lib/models/common/money.model.d.ts +11 -11
  72. package/lib/models/common/money.model.js +16 -16
  73. package/lib/models/common/multerfile.model.d.ts +12 -12
  74. package/lib/models/common/multerfile.model.js +2 -2
  75. package/lib/models/common/package-type.model.d.ts +10 -10
  76. package/lib/models/common/package-type.model.js +2 -2
  77. package/lib/models/common/periods.enum.d.ts +5 -5
  78. package/lib/models/common/periods.enum.js +9 -9
  79. package/lib/models/common/person.model.d.ts +12 -12
  80. package/lib/models/common/person.model.js +2 -2
  81. package/lib/models/common/prefix.enum.d.ts +5 -5
  82. package/lib/models/common/prefix.enum.js +10 -10
  83. package/lib/models/common/quantity.model.d.ts +15 -15
  84. package/lib/models/common/quantity.model.js +10 -10
  85. package/lib/models/common/section-type.enum.d.ts +12 -10
  86. package/lib/models/common/section-type.enum.js +16 -14
  87. package/lib/models/common/sort.enum.d.ts +4 -4
  88. package/lib/models/common/sort.enum.js +8 -8
  89. package/lib/models/common/subscription-price.model.d.ts +9 -9
  90. package/lib/models/common/subscription-price.model.js +2 -2
  91. package/lib/models/common/uom.enum.d.ts +39 -39
  92. package/lib/models/common/uom.enum.js +44 -44
  93. package/lib/models/common/weight-unit.enum.d.ts +9 -9
  94. package/lib/models/common/weight-unit.enum.js +13 -13
  95. package/lib/models/common/weight.model.d.ts +7 -7
  96. package/lib/models/common/weight.model.js +15 -15
  97. package/lib/models/digicust/AnalyzerMetadataModel.model.d.ts +12 -12
  98. package/lib/models/digicust/AnalyzerMetadataModel.model.js +2 -2
  99. package/lib/models/digicust/activity.model.d.ts +16 -16
  100. package/lib/models/digicust/activity.model.js +2 -2
  101. package/lib/models/digicust/adjustment.model.d.ts +7 -7
  102. package/lib/models/digicust/adjustment.model.js +2 -2
  103. package/lib/models/digicust/aggregated-case-data.model.d.ts +64 -59
  104. package/lib/models/digicust/aggregated-case-data.model.js +22 -22
  105. package/lib/models/digicust/case-status.enum.d.ts +22 -22
  106. package/lib/models/digicust/case-status.enum.js +26 -26
  107. package/lib/models/digicust/case-submission-transaction.d.ts +29 -29
  108. package/lib/models/digicust/case-submission-transaction.js +19 -19
  109. package/lib/models/digicust/case-type.enum.d.ts +7 -7
  110. package/lib/models/digicust/case-type.enum.js +11 -11
  111. package/lib/models/digicust/case.model.d.ts +48 -49
  112. package/lib/models/digicust/case.model.js +26 -26
  113. package/lib/models/digicust/consignment-size.enum.d.ts +4 -4
  114. package/lib/models/digicust/consignment-size.enum.js +8 -8
  115. package/lib/models/digicust/container.model.d.ts +7 -7
  116. package/lib/models/digicust/container.model.js +2 -2
  117. package/lib/models/digicust/context.model.d.ts +9 -9
  118. package/lib/models/digicust/context.model.js +2 -2
  119. package/lib/models/digicust/custom-document.model.d.ts +8 -8
  120. package/lib/models/digicust/custom-document.model.js +2 -2
  121. package/lib/models/digicust/customer.model.d.ts +53 -53
  122. package/lib/models/digicust/customer.model.js +2 -2
  123. package/lib/models/digicust/customsOffice.model.d.ts +13 -13
  124. package/lib/models/digicust/customsOffice.model.js +12 -12
  125. package/lib/models/digicust/declaration.model.d.ts +4 -4
  126. package/lib/models/digicust/declaration.model.js +2 -2
  127. package/lib/models/digicust/digicust-document-type.enum.d.ts +10 -10
  128. package/lib/models/digicust/digicust-document-type.enum.js +14 -14
  129. package/lib/models/digicust/digicust-document.model.d.ts +42 -42
  130. package/lib/models/digicust/digicust-document.model.js +35 -35
  131. package/lib/models/digicust/document-status.enum.d.ts +29 -29
  132. package/lib/models/digicust/document-status.enum.js +35 -35
  133. package/lib/models/digicust/event.model.d.ts +42 -42
  134. package/lib/models/digicust/event.model.js +8 -8
  135. package/lib/models/digicust/execution-strategy.model.d.ts +53 -53
  136. package/lib/models/digicust/execution-strategy.model.js +15 -15
  137. package/lib/models/digicust/extractions/extraction-grid.model.d.ts +22 -22
  138. package/lib/models/digicust/extractions/extraction-grid.model.js +2 -2
  139. package/lib/models/digicust/extractions/extraction.model.d.ts +35 -35
  140. package/lib/models/digicust/extractions/extraction.model.js +2 -2
  141. package/lib/models/digicust/extractions/index.d.ts +2 -2
  142. package/lib/models/digicust/extractions/index.js +14 -14
  143. package/lib/models/digicust/frontend-big-section.model.d.ts +13 -13
  144. package/lib/models/digicust/frontend-big-section.model.js +2 -2
  145. package/lib/models/digicust/frontend-group.model.d.ts +6 -6
  146. package/lib/models/digicust/frontend-group.model.js +2 -2
  147. package/lib/models/digicust/frontend-mapping.model.d.ts +4 -4
  148. package/lib/models/digicust/frontend-mapping.model.js +2 -2
  149. package/lib/models/digicust/frontend-small-section.mode.d.ts +13 -13
  150. package/lib/models/digicust/frontend-small-section.mode.js +2 -2
  151. package/lib/models/digicust/hs-code-mapping.d.ts +26 -26
  152. package/lib/models/digicust/hs-code-mapping.js +2 -2
  153. package/lib/models/digicust/incoterm.enum.d.ts +17 -17
  154. package/lib/models/digicust/incoterm.enum.js +21 -21
  155. package/lib/models/digicust/index.d.ts +43 -43
  156. package/lib/models/digicust/index.js +63 -63
  157. package/lib/models/digicust/invoice.model.d.ts +74 -74
  158. package/lib/models/digicust/invoice.model.js +2 -2
  159. package/lib/models/digicust/line-item.model.d.ts +80 -80
  160. package/lib/models/digicust/line-item.model.js +130 -128
  161. package/lib/models/digicust/load-type.enum.d.ts +14 -14
  162. package/lib/models/digicust/load-type.enum.js +19 -19
  163. package/lib/models/digicust/masterdata/index.d.ts +3 -3
  164. package/lib/models/digicust/masterdata/index.js +15 -15
  165. package/lib/models/digicust/masterdata/material.model.d.ts +106 -106
  166. package/lib/models/digicust/masterdata/material.model.js +2 -2
  167. package/lib/models/digicust/masterdata/stakeholder-type.enum.d.ts +12 -12
  168. package/lib/models/digicust/masterdata/stakeholder-type.enum.js +16 -16
  169. package/lib/models/digicust/masterdata/stakeholder.model.d.ts +16 -16
  170. package/lib/models/digicust/masterdata/stakeholder.model.js +2 -2
  171. package/lib/models/digicust/mean-of-transportation.model.d.ts +27 -27
  172. package/lib/models/digicust/mean-of-transportation.model.js +21 -21
  173. package/lib/models/digicust/membership.model.d.ts +7 -7
  174. package/lib/models/digicust/membership.model.js +2 -2
  175. package/lib/models/digicust/module.model.d.ts +62 -62
  176. package/lib/models/digicust/module.model.js +17 -17
  177. package/lib/models/digicust/notification.model.d.ts +13 -0
  178. package/lib/models/digicust/{company.model.js → notification.model.js} +2 -2
  179. package/lib/models/digicust/notifications.model.d.ts +13 -13
  180. package/lib/models/digicust/notifications.model.js +2 -2
  181. package/lib/models/digicust/operationType.enum.d.ts +15 -15
  182. package/lib/models/digicust/operationType.enum.js +19 -19
  183. package/lib/models/digicust/package.model.d.ts +12 -12
  184. package/lib/models/digicust/package.model.js +2 -2
  185. package/lib/models/digicust/packingList.model.d.ts +33 -33
  186. package/lib/models/digicust/packingList.model.js +2 -2
  187. package/lib/models/digicust/procedure.model.d.ts +6 -6
  188. package/lib/models/digicust/procedure.model.js +2 -2
  189. package/lib/models/digicust/project.model.d.ts +25 -25
  190. package/lib/models/digicust/project.model.js +2 -2
  191. package/lib/models/digicust/queue-fields.model.d.ts +14 -14
  192. package/lib/models/digicust/queue-fields.model.js +2 -2
  193. package/lib/models/digicust/queue.model.d.ts +17 -17
  194. package/lib/models/digicust/queue.model.js +2 -2
  195. package/lib/models/digicust/report.model.d.ts +5 -5
  196. package/lib/models/digicust/report.model.js +2 -2
  197. package/lib/models/digicust/special-measure.model.d.ts +4 -4
  198. package/lib/models/digicust/special-measure.model.js +2 -2
  199. package/lib/models/digicust/stats-case.model.d.ts +12 -12
  200. package/lib/models/digicust/stats-case.model.js +2 -2
  201. package/lib/models/digicust/subscription-info.model.d.ts +13 -13
  202. package/lib/models/digicust/subscription-info.model.js +2 -2
  203. package/lib/models/digicust/subscription.model.d.ts +12 -12
  204. package/lib/models/digicust/subscription.model.js +2 -2
  205. package/lib/models/digicust/tax-details.model.d.ts +10 -10
  206. package/lib/models/digicust/tax-details.model.js +2 -2
  207. package/lib/models/digicust/type-of-business.enum.d.ts +44 -44
  208. package/lib/models/digicust/type-of-business.enum.js +48 -48
  209. package/lib/models/digicust/type-of-business.model.d.ts +9 -9
  210. package/lib/models/digicust/type-of-business.model.js +2 -2
  211. package/lib/models/digicust/uploaded-file.model.d.ts +10 -10
  212. package/lib/models/digicust/uploaded-file.model.js +2 -2
  213. package/lib/models/digicust/user.model.d.ts +18 -20
  214. package/lib/models/digicust/user.model.js +2 -20
  215. package/lib/models/digicust/waybill.model.d.ts +39 -39
  216. package/lib/models/digicust/waybill.model.js +11 -11
  217. package/lib/models/index.d.ts +4 -4
  218. package/lib/models/index.js +16 -16
  219. package/lib/models/ml/dexter/index.d.ts +1 -1
  220. package/lib/models/ml/dexter/index.js +13 -13
  221. package/lib/models/ml/dexter/text-detection.model.d.ts +3 -3
  222. package/lib/models/ml/dexter/text-detection.model.js +2 -2
  223. package/lib/models/ml/index.d.ts +2 -2
  224. package/lib/models/ml/index.js +14 -14
  225. package/lib/models/ml/machine-learning-model.model.d.ts +8 -8
  226. package/lib/models/ml/machine-learning-model.model.js +2 -2
  227. package/lib/models/rossum/index.d.ts +12 -12
  228. package/lib/models/rossum/index.js +24 -24
  229. package/lib/models/rossum/rossum-annotation-changed-event.dto.d.ts +8 -8
  230. package/lib/models/rossum/rossum-annotation-changed-event.dto.js +2 -2
  231. package/lib/models/rossum/rossum-annotation-data.model.d.ts +21 -21
  232. package/lib/models/rossum/rossum-annotation-data.model.js +2 -2
  233. package/lib/models/rossum/rossum-document-data.model.d.ts +12 -12
  234. package/lib/models/rossum/rossum-document-data.model.js +2 -2
  235. package/lib/models/rossum/rossum-embedded-response.model.d.ts +3 -3
  236. package/lib/models/rossum/rossum-embedded-response.model.js +2 -2
  237. package/lib/models/rossum/rossum-import-status.enum.d.ts +14 -14
  238. package/lib/models/rossum/rossum-import-status.enum.js +18 -18
  239. package/lib/models/rossum/rossum-login-response.model.d.ts +3 -3
  240. package/lib/models/rossum/rossum-login-response.model.js +2 -2
  241. package/lib/models/rossum/rossum-paginated-annotations.model.d.ts +6 -6
  242. package/lib/models/rossum/rossum-paginated-annotations.model.js +2 -2
  243. package/lib/models/rossum/rossum-paginated-documents.model.d.ts +5 -5
  244. package/lib/models/rossum/rossum-paginated-documents.model.js +2 -2
  245. package/lib/models/rossum/rossum-pagination.model.d.ts +6 -6
  246. package/lib/models/rossum/rossum-pagination.model.js +2 -2
  247. package/lib/models/rossum/rossum-result-content.dto.d.ts +6 -6
  248. package/lib/models/rossum/rossum-result-content.dto.js +2 -2
  249. package/lib/models/rossum/rossum-result-node.dto.d.ts +13 -13
  250. package/lib/models/rossum/rossum-result-node.dto.js +2 -2
  251. package/lib/models/rossum/rossum-start-analyze.dto.d.ts +5 -5
  252. package/lib/models/rossum/rossum-start-analyze.dto.js +2 -2
  253. package/package.json +35 -35
  254. package/readme.md +48 -48
  255. package/lib/models/digicust/activity.mode.d.ts +0 -18
  256. package/lib/models/digicust/activity.mode.js +0 -2
  257. package/lib/models/digicust/classification.model.d.ts +0 -14
  258. package/lib/models/digicust/classification.model.js +0 -10
  259. package/lib/models/digicust/company.model.d.ts +0 -4
  260. package/lib/models/digicust/submission-case-model.d.ts +0 -22
  261. package/lib/models/digicust/submission-case-model.js +0 -12
@@ -1,15 +1,15 @@
1
- import { Meta } from "./meta";
2
- /**
3
- * Identifies a quantity of something (e.g. 5 kg)
4
- */
5
- export interface Quantity extends Meta<any> {
6
- amount?: number;
7
- /** Unit of measurement */
8
- uom?: string;
9
- }
10
- export declare const condenseQuantity: (meta: Quantity) => {
11
- amount: number | undefined;
12
- uom: string | undefined;
13
- confidence: number | undefined;
14
- reviewNeeded: boolean | undefined;
15
- };
1
+ import { Meta } from "./meta";
2
+ /**
3
+ * Identifies a quantity of something (e.g. 5 kg)
4
+ */
5
+ export interface Quantity extends Meta<any> {
6
+ amount?: number;
7
+ /** Unit of measurement */
8
+ uom?: string;
9
+ }
10
+ export declare const condenseQuantity: (meta: Quantity) => {
11
+ amount: number | undefined;
12
+ uom: string | undefined;
13
+ confidence: number | undefined;
14
+ reviewNeeded: boolean | undefined;
15
+ };
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.condenseQuantity = void 0;
4
- var condenseQuantity = function (meta) { return ({
5
- amount: meta.amount,
6
- uom: meta.uom,
7
- confidence: meta.confidence,
8
- reviewNeeded: meta.reviewNeeded
9
- }); };
10
- exports.condenseQuantity = condenseQuantity;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.condenseQuantity = void 0;
4
+ var condenseQuantity = function (meta) { return ({
5
+ amount: meta.amount,
6
+ uom: meta.uom,
7
+ confidence: meta.confidence,
8
+ reviewNeeded: meta.reviewNeeded
9
+ }); };
10
+ exports.condenseQuantity = condenseQuantity;
@@ -1,10 +1,12 @@
1
- export declare enum SectionType {
2
- type1 = "type1",
3
- type2 = "type2",
4
- type3 = "type3",
5
- type4 = "type4",
6
- type5 = "type5",
7
- type6 = "type6",
8
- type7 = "type7",
9
- type8 = "type8"
10
- }
1
+ export declare enum SectionType {
2
+ type1 = "type1",
3
+ type2 = "type2",
4
+ type3 = "type3",
5
+ type4 = "type4",
6
+ type5 = "type5",
7
+ type6 = "type6",
8
+ type7 = "type7",
9
+ type8 = "type8",
10
+ type9 = "type9",
11
+ type10 = "type10"
12
+ }
@@ -1,14 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SectionType = void 0;
4
- var SectionType;
5
- (function (SectionType) {
6
- SectionType["type1"] = "type1";
7
- SectionType["type2"] = "type2";
8
- SectionType["type3"] = "type3";
9
- SectionType["type4"] = "type4";
10
- SectionType["type5"] = "type5";
11
- SectionType["type6"] = "type6";
12
- SectionType["type7"] = "type7";
13
- SectionType["type8"] = "type8";
14
- })(SectionType = exports.SectionType || (exports.SectionType = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SectionType = void 0;
4
+ var SectionType;
5
+ (function (SectionType) {
6
+ SectionType["type1"] = "type1";
7
+ SectionType["type2"] = "type2";
8
+ SectionType["type3"] = "type3";
9
+ SectionType["type4"] = "type4";
10
+ SectionType["type5"] = "type5";
11
+ SectionType["type6"] = "type6";
12
+ SectionType["type7"] = "type7";
13
+ SectionType["type8"] = "type8";
14
+ SectionType["type9"] = "type9";
15
+ SectionType["type10"] = "type10";
16
+ })(SectionType = exports.SectionType || (exports.SectionType = {}));
@@ -1,4 +1,4 @@
1
- export declare enum SortOrder {
2
- ASC = "ASC",
3
- DESC = "DESC"
4
- }
1
+ export declare enum SortOrder {
2
+ ASC = "ASC",
3
+ DESC = "DESC"
4
+ }
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SortOrder = void 0;
4
- var SortOrder;
5
- (function (SortOrder) {
6
- SortOrder["ASC"] = "ASC";
7
- SortOrder["DESC"] = "DESC";
8
- })(SortOrder = exports.SortOrder || (exports.SortOrder = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SortOrder = void 0;
4
+ var SortOrder;
5
+ (function (SortOrder) {
6
+ SortOrder["ASC"] = "ASC";
7
+ SortOrder["DESC"] = "DESC";
8
+ })(SortOrder = exports.SortOrder || (exports.SortOrder = {}));
@@ -1,9 +1,9 @@
1
- export interface SubscriptionPrice {
2
- hsClassification: number;
3
- dataExtraction: number;
4
- dataNormalization: number;
5
- dakosy: number;
6
- upload: number;
7
- ocr: number;
8
- documentSplitting: number;
9
- }
1
+ export interface SubscriptionPrice {
2
+ hsClassification: number;
3
+ dataExtraction: number;
4
+ dataNormalization: number;
5
+ dakosy: number;
6
+ upload: number;
7
+ ocr: number;
8
+ documentSplitting: number;
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,39 +1,39 @@
1
- export declare enum UOM {
2
- BG = "BG",
3
- BA = "BA",
4
- BT = "BT",
5
- BOX = "BOX",
6
- BH = "BH",
7
- BE = "BE",
8
- BU = "BU",
9
- CI = "CI",
10
- CT = "CT",
11
- CS = "CS",
12
- CM = "CM",
13
- CON = "CON",
14
- CR = "CR",
15
- CY = "CY",
16
- EA = "EA",
17
- NMB = "NMB",
18
- EN = "EN",
19
- FT = "FT",
20
- KG = "KG",
21
- KGS = "KGS",
22
- L = "L",
23
- M = "M",
24
- PK = "PK",
25
- PA = "PA",
26
- PAR = "PAR",
27
- PRS = "PRS",
28
- PAL = "PAL",
29
- PC = "PC",
30
- PCS = "PCS",
31
- LB = "LB",
32
- PF = "PF",
33
- ROL = "ROL",
34
- SET = "SET",
35
- SME = "SME",
36
- SYD = "SYD",
37
- TU = "TU",
38
- YD = "YD"
39
- }
1
+ export declare enum UOM {
2
+ BG = "BG",
3
+ BA = "BA",
4
+ BT = "BT",
5
+ BOX = "BOX",
6
+ BH = "BH",
7
+ BE = "BE",
8
+ BU = "BU",
9
+ CI = "CI",
10
+ CT = "CT",
11
+ CS = "CS",
12
+ CM = "CM",
13
+ CON = "CON",
14
+ CR = "CR",
15
+ CY = "CY",
16
+ EA = "EA",
17
+ NMB = "NMB",
18
+ EN = "EN",
19
+ FT = "FT",
20
+ KG = "KG",
21
+ KGS = "KGS",
22
+ L = "L",
23
+ M = "M",
24
+ PK = "PK",
25
+ PA = "PA",
26
+ PAR = "PAR",
27
+ PRS = "PRS",
28
+ PAL = "PAL",
29
+ PC = "PC",
30
+ PCS = "PCS",
31
+ LB = "LB",
32
+ PF = "PF",
33
+ ROL = "ROL",
34
+ SET = "SET",
35
+ SME = "SME",
36
+ SYD = "SYD",
37
+ TU = "TU",
38
+ YD = "YD"
39
+ }
@@ -1,44 +1,44 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UOM = void 0;
4
- // UOM = Unit of Measurement Enum type
5
- var UOM;
6
- (function (UOM) {
7
- UOM["BG"] = "BG";
8
- UOM["BA"] = "BA";
9
- UOM["BT"] = "BT";
10
- UOM["BOX"] = "BOX";
11
- UOM["BH"] = "BH";
12
- UOM["BE"] = "BE";
13
- UOM["BU"] = "BU";
14
- UOM["CI"] = "CI";
15
- UOM["CT"] = "CT";
16
- UOM["CS"] = "CS";
17
- UOM["CM"] = "CM";
18
- UOM["CON"] = "CON";
19
- UOM["CR"] = "CR";
20
- UOM["CY"] = "CY";
21
- UOM["EA"] = "EA";
22
- UOM["NMB"] = "NMB";
23
- UOM["EN"] = "EN";
24
- UOM["FT"] = "FT";
25
- UOM["KG"] = "KG";
26
- UOM["KGS"] = "KGS";
27
- UOM["L"] = "L";
28
- UOM["M"] = "M";
29
- UOM["PK"] = "PK";
30
- UOM["PA"] = "PA";
31
- UOM["PAR"] = "PAR";
32
- UOM["PRS"] = "PRS";
33
- UOM["PAL"] = "PAL";
34
- UOM["PC"] = "PC";
35
- UOM["PCS"] = "PCS";
36
- UOM["LB"] = "LB";
37
- UOM["PF"] = "PF";
38
- UOM["ROL"] = "ROL";
39
- UOM["SET"] = "SET";
40
- UOM["SME"] = "SME";
41
- UOM["SYD"] = "SYD";
42
- UOM["TU"] = "TU";
43
- UOM["YD"] = "YD";
44
- })(UOM = exports.UOM || (exports.UOM = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UOM = void 0;
4
+ // UOM = Unit of Measurement Enum type
5
+ var UOM;
6
+ (function (UOM) {
7
+ UOM["BG"] = "BG";
8
+ UOM["BA"] = "BA";
9
+ UOM["BT"] = "BT";
10
+ UOM["BOX"] = "BOX";
11
+ UOM["BH"] = "BH";
12
+ UOM["BE"] = "BE";
13
+ UOM["BU"] = "BU";
14
+ UOM["CI"] = "CI";
15
+ UOM["CT"] = "CT";
16
+ UOM["CS"] = "CS";
17
+ UOM["CM"] = "CM";
18
+ UOM["CON"] = "CON";
19
+ UOM["CR"] = "CR";
20
+ UOM["CY"] = "CY";
21
+ UOM["EA"] = "EA";
22
+ UOM["NMB"] = "NMB";
23
+ UOM["EN"] = "EN";
24
+ UOM["FT"] = "FT";
25
+ UOM["KG"] = "KG";
26
+ UOM["KGS"] = "KGS";
27
+ UOM["L"] = "L";
28
+ UOM["M"] = "M";
29
+ UOM["PK"] = "PK";
30
+ UOM["PA"] = "PA";
31
+ UOM["PAR"] = "PAR";
32
+ UOM["PRS"] = "PRS";
33
+ UOM["PAL"] = "PAL";
34
+ UOM["PC"] = "PC";
35
+ UOM["PCS"] = "PCS";
36
+ UOM["LB"] = "LB";
37
+ UOM["PF"] = "PF";
38
+ UOM["ROL"] = "ROL";
39
+ UOM["SET"] = "SET";
40
+ UOM["SME"] = "SME";
41
+ UOM["SYD"] = "SYD";
42
+ UOM["TU"] = "TU";
43
+ UOM["YD"] = "YD";
44
+ })(UOM = exports.UOM || (exports.UOM = {}));
@@ -1,9 +1,9 @@
1
- export declare enum WeightUnit {
2
- kilogram = "kg",
3
- pound = "lb",
4
- ounce = "ounce",
5
- milligram = "mg",
6
- gram = "g",
7
- decagram = "dag",
8
- ton = "t"
9
- }
1
+ export declare enum WeightUnit {
2
+ kilogram = "kg",
3
+ pound = "lb",
4
+ ounce = "ounce",
5
+ milligram = "mg",
6
+ gram = "g",
7
+ decagram = "dag",
8
+ ton = "t"
9
+ }
@@ -1,13 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WeightUnit = void 0;
4
- var WeightUnit;
5
- (function (WeightUnit) {
6
- WeightUnit["kilogram"] = "kg";
7
- WeightUnit["pound"] = "lb";
8
- WeightUnit["ounce"] = "ounce";
9
- WeightUnit["milligram"] = "mg";
10
- WeightUnit["gram"] = "g";
11
- WeightUnit["decagram"] = "dag";
12
- WeightUnit["ton"] = "t";
13
- })(WeightUnit = exports.WeightUnit || (exports.WeightUnit = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WeightUnit = void 0;
4
+ var WeightUnit;
5
+ (function (WeightUnit) {
6
+ WeightUnit["kilogram"] = "kg";
7
+ WeightUnit["pound"] = "lb";
8
+ WeightUnit["ounce"] = "ounce";
9
+ WeightUnit["milligram"] = "mg";
10
+ WeightUnit["gram"] = "g";
11
+ WeightUnit["decagram"] = "dag";
12
+ WeightUnit["ton"] = "t";
13
+ })(WeightUnit = exports.WeightUnit || (exports.WeightUnit = {}));
@@ -1,7 +1,7 @@
1
- import { WeightUnit } from "./weight-unit.enum";
2
- import { Meta } from "./meta";
3
- export interface Weight extends Meta<number> {
4
- unit?: WeightUnit;
5
- kgEquivalent?: number;
6
- }
7
- export declare const condenseWeight: (weight: Weight) => Weight;
1
+ import { WeightUnit } from "./weight-unit.enum";
2
+ import { Meta } from "./meta";
3
+ export interface Weight extends Meta<number> {
4
+ unit?: WeightUnit;
5
+ kgEquivalent?: number;
6
+ }
7
+ export declare const condenseWeight: (weight: Weight) => Weight;
@@ -1,15 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.condenseWeight = void 0;
4
- var condenseWeight = function (weight) {
5
- var condensed = {
6
- value: weight.value,
7
- unit: weight.unit,
8
- kgEquivalent: weight.kgEquivalent,
9
- confidence: weight.confidence,
10
- reviewNeeded: weight.reviewNeeded,
11
- };
12
- condensed = JSON.parse(JSON.stringify(condensed)); // remove undefined properties
13
- return condensed;
14
- };
15
- exports.condenseWeight = condenseWeight;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.condenseWeight = void 0;
4
+ var condenseWeight = function (weight) {
5
+ var condensed = {
6
+ value: weight.value,
7
+ unit: weight.unit,
8
+ kgEquivalent: weight.kgEquivalent,
9
+ confidence: weight.confidence,
10
+ reviewNeeded: weight.reviewNeeded,
11
+ };
12
+ condensed = JSON.parse(JSON.stringify(condensed)); // remove undefined properties
13
+ return condensed;
14
+ };
15
+ exports.condenseWeight = condenseWeight;
@@ -1,12 +1,12 @@
1
- import { RossumImportStatus } from "../rossum";
2
- /**
3
- * Base Model for Analyser Metadata (used in case document)
4
- */
5
- export interface AnalyzerMetadataModel {
6
- importStatus?: RossumImportStatus;
7
- annotationId?: string;
8
- queueId?: number;
9
- exportOnConfirmed?: boolean;
10
- splitAnnotationIds?: string[];
11
- parentAnnotationId?: string;
12
- }
1
+ import { RossumImportStatus } from "../rossum";
2
+ /**
3
+ * Base Model for Analyser Metadata (used in case document)
4
+ */
5
+ export interface AnalyzerMetadataModel {
6
+ importStatus?: RossumImportStatus;
7
+ annotationId?: string;
8
+ queueId?: number;
9
+ exportOnConfirmed?: boolean;
10
+ splitAnnotationIds?: string[];
11
+ parentAnnotationId?: string;
12
+ }
@@ -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,16 +1,16 @@
1
- /**
2
- * Used to document usage of the service. Every activity can be tracked using this interface
3
- */
4
- export interface Activity {
5
- id?: string;
6
- customerId?: string;
7
- projectId?: string;
8
- userId?: string;
9
- /** An identifier of this type of activity */
10
- activityName?: string;
11
- description?: string;
12
- timestamp?: Date;
13
- caseId?: string;
14
- subscriptionId?: string;
15
- paid?: boolean;
16
- }
1
+ /**
2
+ * Used to document usage of the service. Every activity can be tracked using this interface
3
+ */
4
+ export interface Activity {
5
+ id?: string;
6
+ customerId?: string;
7
+ projectId?: string;
8
+ userId?: string;
9
+ /** An identifier of this type of activity */
10
+ activityName?: string;
11
+ description?: string;
12
+ timestamp?: Date;
13
+ caseId?: string;
14
+ subscriptionId?: string;
15
+ paid?: boolean;
16
+ }
@@ -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,7 +1,7 @@
1
- import { Meta, Money } from "../common";
2
- /** adjustments to statistical/duty/VAT value */
3
- export interface Adjustment extends Meta<any> {
4
- amountOfMoney?: Money;
5
- valueType?: "Duty" | "Statistical" | "VAT";
6
- type?: "Addition_Insurance" | "Addition_Transport" | "Addition_Further" | "Deduction_Insurance" | "Deduction_Transport" | "Deduction_Further";
7
- }
1
+ import { Meta, Money } from "../common";
2
+ /** adjustments to statistical/duty/VAT value */
3
+ export interface Adjustment extends Meta<any> {
4
+ amountOfMoney?: Money;
5
+ valueType?: "Duty" | "Statistical" | "VAT";
6
+ type?: "Addition_Insurance" | "Addition_Transport" | "Addition_Further" | "Deduction_Insurance" | "Deduction_Transport" | "Deduction_Further";
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,59 +1,64 @@
1
- import { Meta } from "../common/meta";
2
- import { AddressModel, CompanyModel, Currency, DateTimeModel, Money, Weight } from "../common";
3
- import { Incoterm } from "./incoterm.enum";
4
- import { LineItemModel } from "./line-item.model";
5
- import { WaybillType } from "./waybill.model";
6
- import { CaseType } from "./case-type.enum";
7
- import { LoadType } from "./load-type.enum";
8
- import { Adjustment } from "./adjustment.model";
9
- import { Container } from "./container.model";
10
- import { Package } from "./package.model";
11
- import { Procedure } from "./procedure.model";
12
- import { MeanOfTransportation } from "./mean-of-transportation.model";
13
- import { CustomsOffice } from "./customsOffice.model";
14
- import { TypeOfBusiness } from "./";
15
- /**
16
- * Used to store aggregated information of a case
17
- */
18
- export interface AggregatedCaseDataModel {
19
- procedure?: Procedure;
20
- /** commercial reference number, usually assigned by the trader */
21
- referenceNumber?: Meta<string>;
22
- /** Load Type, e.g. full container load */
23
- loadType?: Meta<LoadType>;
24
- countryOfOrigin?: AddressModel;
25
- fromAddress?: AddressModel;
26
- toAddress?: AddressModel;
27
- arrivalDate?: DateTimeModel;
28
- departureDate?: DateTimeModel;
29
- consignee?: CompanyModel;
30
- shipper?: CompanyModel;
31
- exporter?: CompanyModel;
32
- importer?: CompanyModel;
33
- declarant?: CompanyModel;
34
- agent?: CompanyModel;
35
- broker?: CompanyModel;
36
- buyer?: CompanyModel;
37
- carrier?: CompanyModel;
38
- warehouse?: CompanyModel;
39
- /** adjustments to statistical/duty/VAT value */
40
- adjustments?: Adjustment[];
41
- containers?: Container[];
42
- currency?: Meta<Currency>;
43
- waybillType?: Meta<WaybillType>;
44
- waybillNumber?: Meta<string>;
45
- weight?: Weight;
46
- netWeight?: Weight;
47
- totalValue?: Money;
48
- incoterm?: Meta<Incoterm>;
49
- placeIncoterm?: AddressModel;
50
- customsOffices?: CustomsOffice[];
51
- meansOfTransportation?: MeanOfTransportation[];
52
- typeofBusiness?: TypeOfBusiness;
53
- /** case flow (import, export, ...) */
54
- caseType?: Meta<CaseType>;
55
- items?: LineItemModel[];
56
- numberOfShipments?: Meta<number>;
57
- packages?: Package[];
58
- }
59
- export declare const condenseAggregated: (aggregated?: AggregatedCaseDataModel | undefined) => AggregatedCaseDataModel | null;
1
+ import { Meta } from "../common/meta";
2
+ import { AddressModel, CompanyModel, Currency, DateTimeModel, Money, Weight } from "../common";
3
+ import { Incoterm } from "./incoterm.enum";
4
+ import { LineItemModel } from "./line-item.model";
5
+ import { WaybillType } from "./waybill.model";
6
+ import { CaseType } from "./case-type.enum";
7
+ import { LoadType } from "./load-type.enum";
8
+ import { Adjustment } from "./adjustment.model";
9
+ import { Container } from "./container.model";
10
+ import { Package } from "./package.model";
11
+ import { Procedure } from "./procedure.model";
12
+ import { MeanOfTransportation } from "./mean-of-transportation.model";
13
+ import { CustomsOffice } from "./customsOffice.model";
14
+ import { TypeOfBusiness } from "./";
15
+ /**
16
+ * Used to store aggregated information of a case
17
+ */
18
+ export interface AggregatedCaseDataModel {
19
+ procedure?: Procedure;
20
+ /** commercial reference number, usually assigned by the trader */
21
+ referenceNumber?: Meta<string>;
22
+ /** Load Type, e.g. full container load */
23
+ loadType?: Meta<LoadType>;
24
+ countryOfOrigin?: AddressModel;
25
+ fromAddress?: AddressModel;
26
+ toAddress?: AddressModel;
27
+ arrivalDate?: DateTimeModel;
28
+ departureDate?: DateTimeModel;
29
+ issueDate?: DateTimeModel;
30
+ transferDate?: DateTimeModel;
31
+ registrationDate?: DateTimeModel;
32
+ duration?: Meta<number>;
33
+ consignee?: CompanyModel;
34
+ shipper?: CompanyModel;
35
+ exporter?: CompanyModel;
36
+ importer?: CompanyModel;
37
+ declarant?: CompanyModel;
38
+ agent?: CompanyModel;
39
+ broker?: CompanyModel;
40
+ buyer?: CompanyModel;
41
+ carrier?: CompanyModel;
42
+ warehouse?: CompanyModel;
43
+ obligater?: CompanyModel;
44
+ /** adjustments to statistical/duty/VAT value */
45
+ adjustments?: Adjustment[];
46
+ containers?: Container[];
47
+ currency?: Meta<Currency>;
48
+ waybillType?: Meta<WaybillType>;
49
+ waybillNumber?: Meta<string>;
50
+ weight?: Weight;
51
+ netWeight?: Weight;
52
+ totalValue?: Money;
53
+ incoterm?: Meta<Incoterm>;
54
+ placeIncoterm?: AddressModel;
55
+ customsOffices?: CustomsOffice[];
56
+ meansOfTransportation?: MeanOfTransportation[];
57
+ typeofBusiness?: TypeOfBusiness;
58
+ /** case flow (import, export, ...) */
59
+ caseType?: Meta<CaseType>;
60
+ items?: LineItemModel[];
61
+ numberOfShipments?: Meta<number>;
62
+ packages?: Package[];
63
+ }
64
+ export declare const condenseAggregated: (aggregated?: AggregatedCaseDataModel | undefined) => AggregatedCaseDataModel | null;