@unimaze/billing 0.21.43 → 0.21.45

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 (201) hide show
  1. package/lib/common/components/billing-lines/NewNewBillingLines.d.ts +15 -0
  2. package/lib/common/components/billing-lines/NewNewBillingLines.js +36 -0
  3. package/lib/common/components/billing-lines/cwdwdw.d.ts +1 -0
  4. package/lib/common/components/billing-lines/cwdwdw.js +14 -0
  5. package/lib/common/components/customer/index.js +5 -1
  6. package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +0 -0
  7. package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +109 -0
  8. package/lib/common/components/invoice-preview/InvoicePreviewInvoiceLines.js +3 -1
  9. package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +0 -0
  10. package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +110 -0
  11. package/lib/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.js +2 -1
  12. package/lib/common/components/invoice-preview/index.d.ts +8 -0
  13. package/lib/common/components/invoice-preview/index.js +8 -0
  14. package/lib/common/components/supplier/CityAutofill.js +5 -1
  15. package/lib/common/components/supplier/index.d.ts +4 -0
  16. package/lib/common/components/supplier/index.js +5 -1
  17. package/lib/create-invoice/index.d.ts +4 -0
  18. package/lib/create-invoice/index.js +5 -1
  19. package/lib/translations/locales/en.json +6 -0
  20. package/lib/translations/locales/is.json +28 -22
  21. package/lib/translations/locales.d.ts +12 -0
  22. package/lib/unimaze-api-clients/src/mapi/api.d.ts +6664 -0
  23. package/lib/unimaze-api-clients/src/mapi/api.js +4743 -0
  24. package/lib/unimaze-api-clients/src/mapi/base.d.ts +55 -0
  25. package/lib/unimaze-api-clients/src/mapi/base.js +84 -0
  26. package/lib/unimaze-api-clients/src/mapi/configuration.d.ts +63 -0
  27. package/lib/unimaze-api-clients/src/mapi/configuration.js +28 -0
  28. package/lib/unimaze-api-clients/src/mapi/index.d.ts +13 -0
  29. package/lib/unimaze-api-clients/src/mapi/index.js +30 -0
  30. package/lib/unimaze-api-clients/src/rapi/api.d.ts +5015 -0
  31. package/lib/unimaze-api-clients/src/rapi/api.js +5582 -0
  32. package/lib/unimaze-api-clients/src/rapi/base.d.ts +55 -0
  33. package/lib/unimaze-api-clients/src/rapi/base.js +84 -0
  34. package/lib/unimaze-api-clients/src/rapi/configuration.d.ts +63 -0
  35. package/lib/unimaze-api-clients/src/rapi/configuration.js +28 -0
  36. package/lib/unimaze-api-clients/src/rapi/index.d.ts +13 -0
  37. package/lib/unimaze-api-clients/src/rapi/index.js +30 -0
  38. package/lib/unimaze-billing/src/common/components/CommonTranslations.d.ts +74 -0
  39. package/lib/unimaze-billing/src/common/components/CommonTranslations.js +78 -0
  40. package/lib/unimaze-billing/src/common/components/attachments/Attachment.d.ts +20 -0
  41. package/lib/unimaze-billing/src/common/components/attachments/Attachment.js +164 -0
  42. package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.d.ts +21 -0
  43. package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.js +206 -0
  44. package/lib/unimaze-billing/src/common/components/attachments/index.d.ts +27 -0
  45. package/lib/unimaze-billing/src/common/components/attachments/index.js +214 -0
  46. package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.d.ts +17 -0
  47. package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.js +61 -0
  48. package/lib/unimaze-billing/src/common/components/base-information/OrderReference.d.ts +16 -0
  49. package/lib/unimaze-billing/src/common/components/base-information/OrderReference.js +58 -0
  50. package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.d.ts +14 -0
  51. package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.js +30 -0
  52. package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.d.ts +53 -0
  53. package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.js +328 -0
  54. package/lib/unimaze-billing/src/common/components/base-information/index.d.ts +77 -0
  55. package/lib/unimaze-billing/src/common/components/base-information/index.js +186 -0
  56. package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.d.ts +14 -0
  57. package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.js +151 -0
  58. package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.d.ts +24 -0
  59. package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.js +61 -0
  60. package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.d.ts +13 -0
  61. package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.js +133 -0
  62. package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.d.ts +20 -0
  63. package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.js +17 -0
  64. package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.d.ts +10 -0
  65. package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.js +16 -0
  66. package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.d.ts +134 -0
  67. package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.js +209 -0
  68. package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.d.ts +15 -0
  69. package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.js +36 -0
  70. package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.d.ts +19 -0
  71. package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.js +275 -0
  72. package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.d.ts +14 -0
  73. package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.js +15 -0
  74. package/lib/unimaze-billing/src/common/components/billing-lines/index.d.ts +49 -0
  75. package/lib/unimaze-billing/src/common/components/billing-lines/index.js +104 -0
  76. package/lib/unimaze-billing/src/common/components/component-container/Content.d.ts +7 -0
  77. package/lib/unimaze-billing/src/common/components/component-container/Content.js +13 -0
  78. package/lib/unimaze-billing/src/common/components/component-container/Header.d.ts +9 -0
  79. package/lib/unimaze-billing/src/common/components/component-container/Header.js +28 -0
  80. package/lib/unimaze-billing/src/common/components/component-container/index.d.ts +12 -0
  81. package/lib/unimaze-billing/src/common/components/component-container/index.js +22 -0
  82. package/lib/unimaze-billing/src/common/components/customer/CostCenter.d.ts +17 -0
  83. package/lib/unimaze-billing/src/common/components/customer/CostCenter.js +163 -0
  84. package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.d.ts +17 -0
  85. package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.js +53 -0
  86. package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.d.ts +7 -0
  87. package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.js +41 -0
  88. package/lib/unimaze-billing/src/common/components/customer/index.d.ts +26 -0
  89. package/lib/unimaze-billing/src/common/components/customer/index.js +166 -0
  90. package/lib/unimaze-billing/src/common/components/date-picker/index.d.ts +21 -0
  91. package/lib/unimaze-billing/src/common/components/date-picker/index.js +23 -0
  92. package/lib/unimaze-billing/src/common/components/delivery-location/index.d.ts +12 -0
  93. package/lib/unimaze-billing/src/common/components/delivery-location/index.js +89 -0
  94. package/lib/unimaze-billing/src/common/components/editable-cell/index.d.ts +0 -0
  95. package/lib/unimaze-billing/src/common/components/editable-cell/index.js +295 -0
  96. package/lib/unimaze-billing/src/common/components/editable-row/index.d.ts +5 -0
  97. package/lib/unimaze-billing/src/common/components/editable-row/index.js +59 -0
  98. package/lib/unimaze-billing/src/common/components/form-item/index.d.ts +35 -0
  99. package/lib/unimaze-billing/src/common/components/form-item/index.js +60 -0
  100. package/lib/unimaze-billing/src/common/components/index.d.ts +18 -0
  101. package/lib/unimaze-billing/src/common/components/index.js +42 -0
  102. package/lib/unimaze-billing/src/common/components/input/index.d.ts +23 -0
  103. package/lib/unimaze-billing/src/common/components/input/index.js +37 -0
  104. package/lib/unimaze-billing/src/common/components/invoice/index.d.ts +42 -0
  105. package/lib/unimaze-billing/src/common/components/invoice/index.js +59 -0
  106. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +14 -0
  107. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +75 -0
  108. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.d.ts +14 -0
  109. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.js +73 -0
  110. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.d.ts +12 -0
  111. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.js +104 -0
  112. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.d.ts +12 -0
  113. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.js +93 -0
  114. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +14 -0
  115. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +77 -0
  116. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.d.ts +14 -0
  117. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.js +58 -0
  118. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.d.ts +14 -0
  119. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.js +52 -0
  120. package/lib/unimaze-billing/src/common/components/invoice-preview/index.d.ts +102 -0
  121. package/lib/unimaze-billing/src/common/components/invoice-preview/index.js +196 -0
  122. package/lib/unimaze-billing/src/common/components/locale-intl/index.d.ts +0 -0
  123. package/lib/unimaze-billing/src/common/components/locale-intl/index.js +51 -0
  124. package/lib/unimaze-billing/src/common/components/payment-method/index.d.ts +76 -0
  125. package/lib/unimaze-billing/src/common/components/payment-method/index.js +356 -0
  126. package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.d.ts +8 -0
  127. package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.js +37 -0
  128. package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.d.ts +3 -0
  129. package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.js +17 -0
  130. package/lib/unimaze-billing/src/common/components/submit-confirmation/index.d.ts +8 -0
  131. package/lib/unimaze-billing/src/common/components/submit-confirmation/index.js +34 -0
  132. package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.d.ts +18 -0
  133. package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.js +159 -0
  134. package/lib/unimaze-billing/src/common/components/supplier/index.d.ts +94 -0
  135. package/lib/unimaze-billing/src/common/components/supplier/index.js +334 -0
  136. package/lib/unimaze-billing/src/common/components/tooltip/index.d.ts +7 -0
  137. package/lib/unimaze-billing/src/common/components/tooltip/index.js +15 -0
  138. package/lib/unimaze-billing/src/common/components/welcome-modal/index.d.ts +15 -0
  139. package/lib/unimaze-billing/src/common/components/welcome-modal/index.js +26 -0
  140. package/lib/unimaze-billing/src/common/consts/formLayout.d.ts +74 -0
  141. package/lib/unimaze-billing/src/common/consts/formLayout.js +45 -0
  142. package/lib/unimaze-billing/src/common/consts/validationRules.d.ts +6 -0
  143. package/lib/unimaze-billing/src/common/consts/validationRules.js +69 -0
  144. package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.d.ts +5 -0
  145. package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.js +8 -0
  146. package/lib/unimaze-billing/src/common/enums/index.d.ts +1 -0
  147. package/lib/unimaze-billing/src/common/enums/index.js +8 -0
  148. package/lib/unimaze-billing/src/common/types/AppConfiguration.d.ts +26 -0
  149. package/lib/unimaze-billing/src/common/types/AppConfiguration.js +2 -0
  150. package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.d.ts +10 -0
  151. package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.js +2 -0
  152. package/lib/unimaze-billing/src/common/types/CommonProps.d.ts +33 -0
  153. package/lib/unimaze-billing/src/common/types/CommonProps.js +2 -0
  154. package/lib/unimaze-billing/src/common/types/DiscountType.d.ts +1 -0
  155. package/lib/unimaze-billing/src/common/types/DiscountType.js +2 -0
  156. package/lib/unimaze-billing/src/common/types/InvoiceFormFields.d.ts +1 -0
  157. package/lib/unimaze-billing/src/common/types/InvoiceFormFields.js +2 -0
  158. package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.d.ts +27 -0
  159. package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.js +2 -0
  160. package/lib/unimaze-billing/src/common/types/ReceiverRequirements.d.ts +83 -0
  161. package/lib/unimaze-billing/src/common/types/ReceiverRequirements.js +393 -0
  162. package/lib/unimaze-billing/src/common/types/SupplierInfo.d.ts +11 -0
  163. package/lib/unimaze-billing/src/common/types/SupplierInfo.js +2 -0
  164. package/lib/unimaze-billing/src/common/types/index.d.ts +1 -0
  165. package/lib/unimaze-billing/src/common/types/index.js +17 -0
  166. package/lib/unimaze-billing/src/create-credit-note/index.d.ts +9 -0
  167. package/lib/unimaze-billing/src/create-credit-note/index.js +62 -0
  168. package/lib/unimaze-billing/src/create-invoice/IntlLoader.d.ts +11 -0
  169. package/lib/unimaze-billing/src/create-invoice/IntlLoader.js +116 -0
  170. package/lib/unimaze-billing/src/create-invoice/index.d.ts +82 -0
  171. package/lib/unimaze-billing/src/create-invoice/index.js +710 -0
  172. package/lib/unimaze-billing/src/enums.d.ts +14 -0
  173. package/lib/unimaze-billing/src/enums.js +18 -0
  174. package/lib/unimaze-billing/src/index.d.ts +4 -0
  175. package/lib/unimaze-billing/src/index.js +28 -0
  176. package/lib/unimaze-billing/src/translations/locales/en.json +183 -0
  177. package/lib/unimaze-billing/src/translations/locales/is.json +183 -0
  178. package/lib/unimaze-billing/src/translations/locales.d.ts +369 -0
  179. package/lib/unimaze-billing/src/translations/locales.js +11 -0
  180. package/lib/unimaze-billing/src/utils/ApiUtility.d.ts +29 -0
  181. package/lib/unimaze-billing/src/utils/ApiUtility.js +133 -0
  182. package/lib/unimaze-billing/src/utils/BillingLineUtility.d.ts +25 -0
  183. package/lib/unimaze-billing/src/utils/BillingLineUtility.js +190 -0
  184. package/lib/unimaze-billing/src/utils/ConversionUtility.d.ts +9 -0
  185. package/lib/unimaze-billing/src/utils/ConversionUtility.js +222 -0
  186. package/lib/unimaze-billing/src/utils/FileUploadUtility.d.ts +9 -0
  187. package/lib/unimaze-billing/src/utils/FileUploadUtility.js +45 -0
  188. package/lib/unimaze-billing/src/utils/IntlUtility.d.ts +6 -0
  189. package/lib/unimaze-billing/src/utils/IntlUtility.js +78 -0
  190. package/lib/unimaze-billing/src/utils/LocationUtility.d.ts +1 -0
  191. package/lib/unimaze-billing/src/utils/LocationUtility.js +81 -0
  192. package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.d.ts +7 -0
  193. package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.js +26 -0
  194. package/lib/unimaze-billing/src/utils/RequirementsUtility.d.ts +21 -0
  195. package/lib/unimaze-billing/src/utils/RequirementsUtility.js +237 -0
  196. package/lib/unimaze-billing/src/utils/index.d.ts +2 -0
  197. package/lib/unimaze-billing/src/utils/index.js +8 -0
  198. package/lib/utils/LocationUtility.d.ts +1 -1
  199. package/lib/utils/LocationUtility.js +2 -2
  200. package/package.json +1 -1
  201. package/lib/style/index.css +0 -51
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var antd_1 = require("antd");
7
+ var react_1 = __importDefault(require("react"));
8
+ var react_intl_1 = require("react-intl");
9
+ var icons_1 = require("@ant-design/icons");
10
+ var translationMessages = (0, react_intl_1.defineMessages)({
11
+ welcomeModal_button_title: {
12
+ id: "welcomeModal_button_title",
13
+ defaultMessage: "Continue",
14
+ },
15
+ });
16
+ var WelcomeModal = function (props) {
17
+ return (react_1.default.createElement(antd_1.Modal, { open: props.isOpen, footer: react_1.default.createElement(antd_1.Button, { type: "primary", size: 'large', onClick: props.onClose },
18
+ props.intl.formatMessage(translationMessages.welcomeModal_button_title),
19
+ react_1.default.createElement(icons_1.ArrowRightOutlined, null)), onCancel: props.onClose },
20
+ react_1.default.createElement(antd_1.Flex, { vertical: true, gap: 'middle' },
21
+ props.imageUrl && react_1.default.createElement(antd_1.Image, { style: { borderRadius: '6px' }, src: props.imageUrl, preview: false }),
22
+ react_1.default.createElement(antd_1.Flex, { vertical: true },
23
+ react_1.default.createElement(antd_1.Typography.Title, { level: 4, type: "secondary" }, props.title),
24
+ react_1.default.createElement(antd_1.Typography.Text, { type: "secondary" }, props.paragraph)))));
25
+ };
26
+ exports.default = (0, react_intl_1.injectIntl)(WelcomeModal);
@@ -0,0 +1,74 @@
1
+ declare const formItemLayout: {
2
+ labelCol: {
3
+ xs: {
4
+ span: number;
5
+ };
6
+ sm: {
7
+ span: number;
8
+ };
9
+ md: {
10
+ span: number;
11
+ };
12
+ lg: {
13
+ span: number;
14
+ };
15
+ xxl: {
16
+ span: number;
17
+ };
18
+ };
19
+ wrapperCol: {
20
+ xs: {
21
+ span: number;
22
+ };
23
+ sm: {
24
+ span: number;
25
+ };
26
+ md: {
27
+ span: number;
28
+ };
29
+ lg: {
30
+ span: number;
31
+ };
32
+ xxl: {
33
+ span: number;
34
+ };
35
+ };
36
+ };
37
+ declare const formItemVerticalLayout: {
38
+ labelCol: {
39
+ span: number;
40
+ };
41
+ wrapperCol: {
42
+ span: number;
43
+ };
44
+ };
45
+ declare const fullWidthInput: {
46
+ wrapperCol: {
47
+ span: number;
48
+ };
49
+ };
50
+ declare const formItemLayoutWithOutLabel: {
51
+ wrapperCol: {
52
+ xs: {
53
+ span: number;
54
+ offset: number;
55
+ };
56
+ sm: {
57
+ span: number;
58
+ offset: number;
59
+ };
60
+ md: {
61
+ span: number;
62
+ offset: number;
63
+ };
64
+ lg: {
65
+ span: number;
66
+ offset: number;
67
+ };
68
+ xxl: {
69
+ span: number;
70
+ offset: number;
71
+ };
72
+ };
73
+ };
74
+ export { formItemLayout, formItemVerticalLayout, fullWidthInput, formItemLayoutWithOutLabel };
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.formItemLayoutWithOutLabel = exports.fullWidthInput = exports.formItemVerticalLayout = exports.formItemLayout = void 0;
4
+ var formItemLayout = {
5
+ labelCol: {
6
+ xs: { span: 24 },
7
+ sm: { span: 8 },
8
+ md: { span: 24 },
9
+ lg: { span: 14 },
10
+ xxl: { span: 10 },
11
+ },
12
+ wrapperCol: {
13
+ xs: { span: 24 },
14
+ sm: { span: 24 },
15
+ md: { span: 24 },
16
+ lg: { span: 24 },
17
+ xxl: { span: 24 },
18
+ },
19
+ };
20
+ exports.formItemLayout = formItemLayout;
21
+ var formItemVerticalLayout = {
22
+ labelCol: {
23
+ span: 24,
24
+ },
25
+ wrapperCol: {
26
+ span: 24,
27
+ },
28
+ };
29
+ exports.formItemVerticalLayout = formItemVerticalLayout;
30
+ var fullWidthInput = {
31
+ wrapperCol: {
32
+ span: 24,
33
+ },
34
+ };
35
+ exports.fullWidthInput = fullWidthInput;
36
+ var formItemLayoutWithOutLabel = {
37
+ wrapperCol: {
38
+ xs: { span: 24, offset: 0 },
39
+ sm: { span: 16, offset: 8 },
40
+ md: { span: 24, offset: 0 },
41
+ lg: { span: 10, offset: 14 },
42
+ xxl: { span: 14, offset: 10 },
43
+ },
44
+ };
45
+ exports.formItemLayoutWithOutLabel = formItemLayoutWithOutLabel;
@@ -0,0 +1,6 @@
1
+ import { BillingLineMetadataOverride } from "../types/BillingLineMetadataOverride";
2
+ import { RuleObject } from "rc-field-form/lib/interface";
3
+ export type ValidationRulesObject = {
4
+ [key in keyof Omit<BillingLineMetadataOverride, 'key'>]: RuleObject[];
5
+ };
6
+ export declare const validationRules: ValidationRulesObject;
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validationRules = void 0;
4
+ exports.validationRules = {
5
+ itemNo: [
6
+ {
7
+ required: true,
8
+ },
9
+ ],
10
+ name: [
11
+ {
12
+ required: true,
13
+ message: "name_required",
14
+ }
15
+ ],
16
+ unitOfMeasure: [
17
+ {
18
+ required: true,
19
+ message: "unitOfMeasure_required",
20
+ },
21
+ ],
22
+ unitPriceAmount: [
23
+ {
24
+ required: true,
25
+ message: "unitPriceAmount_required",
26
+ },
27
+ {
28
+ type: "number",
29
+ message: "unitPriceAmount_type",
30
+ }
31
+ ],
32
+ taxCategoryType: [
33
+ {
34
+ required: true,
35
+ message: "taxCategoryType_required",
36
+ }
37
+ ],
38
+ discountValue: [
39
+ {
40
+ pattern: new RegExp("^[0-9]+[%]?$"),
41
+ message: "discountValue_pattern",
42
+ }
43
+ ],
44
+ discountType: [
45
+ {
46
+ required: true,
47
+ }
48
+ ],
49
+ taxableAmount: [
50
+ {
51
+ required: true,
52
+ }
53
+ ],
54
+ taxPercentage: [
55
+ {
56
+ required: true,
57
+ }
58
+ ],
59
+ quantity: [
60
+ {
61
+ required: true,
62
+ }
63
+ ],
64
+ taxAmount: [
65
+ {
66
+ required: true,
67
+ }
68
+ ],
69
+ };
@@ -0,0 +1,5 @@
1
+ declare enum DocumentTypeEnum {
2
+ Invoice = "invoice",
3
+ CreditNote = "creditNote"
4
+ }
5
+ export default DocumentTypeEnum;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var DocumentTypeEnum;
4
+ (function (DocumentTypeEnum) {
5
+ DocumentTypeEnum["Invoice"] = "invoice";
6
+ DocumentTypeEnum["CreditNote"] = "creditNote";
7
+ })(DocumentTypeEnum || (DocumentTypeEnum = {}));
8
+ exports.default = DocumentTypeEnum;
@@ -0,0 +1 @@
1
+ export { default as DocumentTypeEnum } from "./DocumentTypeEnum";
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.DocumentTypeEnum = void 0;
7
+ var DocumentTypeEnum_1 = require("./DocumentTypeEnum");
8
+ Object.defineProperty(exports, "DocumentTypeEnum", { enumerable: true, get: function () { return __importDefault(DocumentTypeEnum_1).default; } });
@@ -0,0 +1,26 @@
1
+ import { ProfileOutput } from "@unimaze/api-clients/lib/wapi2";
2
+ interface AppConfiguration {
3
+ mapiUrl: string;
4
+ rapiUrl: string;
5
+ env: HostConfiguration[];
6
+ }
7
+ interface ProfileOutputWithApiKey extends ProfileOutput {
8
+ apiKey: string;
9
+ }
10
+ interface HostConfiguration {
11
+ host: string;
12
+ legalIdentifier: string;
13
+ language: "en" | "is";
14
+ customers: ProfileOutputWithApiKey[];
15
+ }
16
+ interface EnvironmentConfiguration {
17
+ mapiUrl: string;
18
+ rapiUrl: string;
19
+ host: string;
20
+ legalIdentifier: string;
21
+ infoText?: string;
22
+ supportEmail?: string;
23
+ customers: ProfileOutputWithApiKey[];
24
+ language: "is" | "en";
25
+ }
26
+ export { AppConfiguration, HostConfiguration, ProfileOutputWithApiKey, EnvironmentConfiguration };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { BillingLineMetadata } from "@unimaze/api-clients/lib/mapi";
2
+ import { UnitOfMeasureLabelInValueEnum } from "../components/billing-lines";
3
+ import { TaxCategoryTypeEnum } from "@unimaze/api-clients/lib/mapi/api";
4
+ import { DiscountType } from "./DiscountType";
5
+ export interface BillingLineMetadataOverride extends Omit<BillingLineMetadata, 'unitOfMeasure' | 'taxCategoryType'> {
6
+ key: number;
7
+ unitOfMeasure: UnitOfMeasureLabelInValueEnum;
8
+ taxCategoryType: TaxCategoryTypeEnum;
9
+ discountType: DiscountType;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
1
+ import { NewReceiverRequirements } from "./NewReceiverRequirements";
2
+ import { PaymentMeansType } from "@unimaze/api-clients/lib/mapi";
3
+ export interface CommonProps {
4
+ language?: LanguageProp;
5
+ mapiBaseUrl: string;
6
+ rapiBaseUrl: string;
7
+ receiverRequirements: NewReceiverRequirements;
8
+ getReceiverRequirements: (rapiBaseUrl: string, participantIdentifier: string) => void;
9
+ updateReceiverRequirementsProp: (newReceiverRequirementsProp: NewReceiverRequirements) => void;
10
+ uploadSizeLimit: number;
11
+ attachmentTooltipText?: {
12
+ is: string;
13
+ en: string;
14
+ };
15
+ rapiApiKey: string;
16
+ dueDateMinimumOffset: number;
17
+ defaultPaymentType?: PaymentMeansType;
18
+ supportEmail?: string;
19
+ welcomeModalTitle?: {
20
+ is: string;
21
+ en: string;
22
+ };
23
+ welcomeModalParagraph?: {
24
+ is: string;
25
+ en: string;
26
+ };
27
+ welcomeModalImageUrl?: string;
28
+ colorPrimary?: string;
29
+ colorError?: string;
30
+ colorLink?: string;
31
+ colorInfoBg?: string;
32
+ }
33
+ export type LanguageProp = "en" | "is" | undefined;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type DiscountType = "PERCENTAGE" | "AMOUNT";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
1
+ export interface FieldValues {
2
+ key: string;
3
+ name: string;
4
+ description?: string;
5
+ }
6
+ export interface FieldProperties {
7
+ label?: string;
8
+ values?: FieldValues[];
9
+ cardinality?: string;
10
+ href?: string;
11
+ handling?: string;
12
+ }
13
+ export interface FieldDefinition {
14
+ key: string;
15
+ name?: string;
16
+ properties: FieldProperties;
17
+ }
18
+ export interface FieldGrouping {
19
+ key: string;
20
+ requireAll: boolean;
21
+ fields?: string[];
22
+ groups?: FieldGrouping[];
23
+ }
24
+ export interface NewReceiverRequirements {
25
+ fieldDefinitions: FieldDefinition[];
26
+ fieldGrouping: FieldGrouping;
27
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,83 @@
1
+ interface Values {
2
+ key?: string;
3
+ label?: string;
4
+ values?: Values[];
5
+ }
6
+ interface FieldRequirement extends Values {
7
+ isRequired: boolean;
8
+ }
9
+ type ReceiverRequirements = {
10
+ [key in AvailableFields]?: FieldRequirement;
11
+ };
12
+ export declare enum AvailableFields {
13
+ "invoiceNo" = "invoiceNo",
14
+ "issueDate" = "issueDate",
15
+ "dueDate" = "dueDate",
16
+ "graceDate" = "graceDate",
17
+ "currencyCode" = "currencyCode",
18
+ "notes" = "notes",
19
+ "accountingCost" = "accountingCost",
20
+ "buyerReference" = "buyerReference",
21
+ "documentReferences.project.documentNo" = "documentReferences.project.documentNo",
22
+ "orderReference.documentNo" = "orderReference.documentNo",
23
+ "billingReferences.invoices" = "billingReferences.invoices",
24
+ "billingReferences.documentNo" = "billingReferences.documentNo",
25
+ "billingReferences.issueDate" = "billingReferences.issueDate",
26
+ "billingReferences.creditNotes" = "billingReferences.creditNotes",
27
+ "referenceIdentifiers.type" = "referenceIdentifiers.type",
28
+ "referenceIdentifiers.code" = "referenceIdentifiers.code",
29
+ "referenceIdentifiers.value" = "referenceIdentifiers.value",
30
+ "referenceIdentifier.*" = "referenceIdentifier.*",
31
+ "singleReferenceIdentifier" = "singleReferenceIdentifier",
32
+ "referenceIdentifiers" = "referenceIdentifiers",
33
+ "supplier.vatNumber" = "supplier.vatNumber",
34
+ "supplier.address.streetNameAndNumber" = "supplier.address.streetNameAndNumber",
35
+ "supplier.address.city" = "supplier.address.city",
36
+ "supplier.address.postalZone" = "supplier.address.postalZone",
37
+ "supplier.address.countryCode" = "supplier.address.countryCode",
38
+ "supplier.contact.name" = "supplier.contact.name",
39
+ "supplier.contact.electronicMail" = "supplier.contact.electronicMail",
40
+ "supplier.contact.telephone" = "supplier.contact.telephone",
41
+ "supplier.name" = "supplier.name",
42
+ "supplier.identifier" = "supplier.identifier",
43
+ "customer.address.streetNameAndNumber" = "customer.address.streetNameAndNumber",
44
+ "customer.address.city" = "customer.address.city",
45
+ "customer.address.postalZone" = "customer.address.postalZone",
46
+ "customer.address.countryCode" = "customer.address.countryCode",
47
+ "customer.contact.name" = "customer.contact.name",
48
+ "customer.contact.electronicMail" = "customer.contact.electronicMail",
49
+ "customer.contact.telephone" = "customer.contact.telephone",
50
+ "customer.name" = "customer.name",
51
+ "customer.identifier" = "customer.identifier",
52
+ "customer.locationIdentifier" = "customer.locationIdentifier",
53
+ "payee.name" = "payee.name",
54
+ "payee.identifier" = "payee.identifier",
55
+ "payee.sepaBankIdentification" = "payee.sepaBankIdentification",
56
+ "invoiceLines.itemNo" = "invoiceLines.itemNo",
57
+ "invoiceLines.name" = "invoiceLines.name",
58
+ "invoiceLines.quantity" = "invoiceLines.quantity",
59
+ "invoiceLines.uniteOfMeasure.unit" = "invoiceLines.unitOfMeasure.unit",
60
+ "invoiceLines.uniteOfMeasure.code" = "invoiceLines.unitOfMeasure.code",
61
+ "invoiceLines.unitPriceAmount" = "invoiceLines.unitPriceAmount",
62
+ "invoiceLines.taxCategoryType" = "invoiceLines.taxCategoryType",
63
+ "invoiceLines.taxableAmount" = "invoiceLines.taxableAmount",
64
+ "invoiceLines.taxAmount" = "invoiceLines.taxAmount",
65
+ "invoiceLines.taxPercentage" = "invoiceLines.taxPercentage",
66
+ "invoiceLines.discountValue" = "invoiceLines.discountValue",
67
+ "paymentTerms.note" = "paymentTerms.note",
68
+ "paymentMeans.type" = "paymentMeans.type",
69
+ "paymentMeans.internationalTransfer" = "paymentMeans.internationalTransfer",
70
+ "paymentMeans.domesticTransfer" = "paymentMeans.domesticTransfer",
71
+ "paymentMeans.domesticClaim" = "paymentMeans.domesticClaim",
72
+ "delivery.partyName" = "delivery.partyName",
73
+ "delivery.locationIdentifier" = "delivery.locationIdentifier",
74
+ "delivery.address.streetNameAndNumber" = "delivery.address.streetNameAndNumber",
75
+ "delivery.address.city" = "delivery.address.city",
76
+ "delivery.address.postalZone" = "delivery.address.postalZone",
77
+ "delivery.address.countryCode" = "delivery.address.countryCode",
78
+ "delivery.actualDeliveryDate" = "delivery.actualDeliveryDate",
79
+ "prepaidAmount" = "prepaidAmount",
80
+ "payableAmount" = "payableAmount",
81
+ "payableRoundingAmount" = "payableRoundingAmount"
82
+ }
83
+ export { ReceiverRequirements, FieldRequirement };