@unimaze/billing 0.21.45 → 0.21.46

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 (191) hide show
  1. package/lib/common/components/billing-lines/CurrencySelector.d.ts +1 -0
  2. package/lib/common/components/billing-lines/CurrencySelector.js +1 -1
  3. package/lib/common/components/billing-lines/NewBillingLines.js +1 -1
  4. package/lib/common/components/billing-lines/SingleBillingLine.d.ts +1 -0
  5. package/lib/common/components/billing-lines/SingleBillingLine.js +15 -14
  6. package/lib/style/index.css +51 -0
  7. package/package.json +1 -1
  8. package/lib/common/components/billing-lines/NewNewBillingLines.d.ts +0 -15
  9. package/lib/common/components/billing-lines/NewNewBillingLines.js +0 -36
  10. package/lib/common/components/billing-lines/cwdwdw.d.ts +0 -1
  11. package/lib/common/components/billing-lines/cwdwdw.js +0 -14
  12. package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +0 -0
  13. package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +0 -109
  14. package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +0 -0
  15. package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +0 -110
  16. package/lib/unimaze-api-clients/src/mapi/api.d.ts +0 -6664
  17. package/lib/unimaze-api-clients/src/mapi/api.js +0 -4743
  18. package/lib/unimaze-api-clients/src/mapi/base.d.ts +0 -55
  19. package/lib/unimaze-api-clients/src/mapi/base.js +0 -84
  20. package/lib/unimaze-api-clients/src/mapi/configuration.d.ts +0 -63
  21. package/lib/unimaze-api-clients/src/mapi/configuration.js +0 -28
  22. package/lib/unimaze-api-clients/src/mapi/index.d.ts +0 -13
  23. package/lib/unimaze-api-clients/src/mapi/index.js +0 -30
  24. package/lib/unimaze-api-clients/src/rapi/api.d.ts +0 -5015
  25. package/lib/unimaze-api-clients/src/rapi/api.js +0 -5582
  26. package/lib/unimaze-api-clients/src/rapi/base.d.ts +0 -55
  27. package/lib/unimaze-api-clients/src/rapi/base.js +0 -84
  28. package/lib/unimaze-api-clients/src/rapi/configuration.d.ts +0 -63
  29. package/lib/unimaze-api-clients/src/rapi/configuration.js +0 -28
  30. package/lib/unimaze-api-clients/src/rapi/index.d.ts +0 -13
  31. package/lib/unimaze-api-clients/src/rapi/index.js +0 -30
  32. package/lib/unimaze-billing/src/common/components/CommonTranslations.d.ts +0 -74
  33. package/lib/unimaze-billing/src/common/components/CommonTranslations.js +0 -78
  34. package/lib/unimaze-billing/src/common/components/attachments/Attachment.d.ts +0 -20
  35. package/lib/unimaze-billing/src/common/components/attachments/Attachment.js +0 -164
  36. package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.d.ts +0 -21
  37. package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.js +0 -206
  38. package/lib/unimaze-billing/src/common/components/attachments/index.d.ts +0 -27
  39. package/lib/unimaze-billing/src/common/components/attachments/index.js +0 -214
  40. package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.d.ts +0 -17
  41. package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.js +0 -61
  42. package/lib/unimaze-billing/src/common/components/base-information/OrderReference.d.ts +0 -16
  43. package/lib/unimaze-billing/src/common/components/base-information/OrderReference.js +0 -58
  44. package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.d.ts +0 -14
  45. package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.js +0 -30
  46. package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.d.ts +0 -53
  47. package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.js +0 -328
  48. package/lib/unimaze-billing/src/common/components/base-information/index.d.ts +0 -77
  49. package/lib/unimaze-billing/src/common/components/base-information/index.js +0 -186
  50. package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.d.ts +0 -14
  51. package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.js +0 -151
  52. package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.d.ts +0 -24
  53. package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.js +0 -61
  54. package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.d.ts +0 -13
  55. package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.js +0 -133
  56. package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.d.ts +0 -20
  57. package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.js +0 -17
  58. package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.d.ts +0 -10
  59. package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.js +0 -16
  60. package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.d.ts +0 -134
  61. package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.js +0 -209
  62. package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.d.ts +0 -15
  63. package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.js +0 -36
  64. package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.d.ts +0 -19
  65. package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.js +0 -275
  66. package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.d.ts +0 -14
  67. package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.js +0 -15
  68. package/lib/unimaze-billing/src/common/components/billing-lines/index.d.ts +0 -49
  69. package/lib/unimaze-billing/src/common/components/billing-lines/index.js +0 -104
  70. package/lib/unimaze-billing/src/common/components/component-container/Content.d.ts +0 -7
  71. package/lib/unimaze-billing/src/common/components/component-container/Content.js +0 -13
  72. package/lib/unimaze-billing/src/common/components/component-container/Header.d.ts +0 -9
  73. package/lib/unimaze-billing/src/common/components/component-container/Header.js +0 -28
  74. package/lib/unimaze-billing/src/common/components/component-container/index.d.ts +0 -12
  75. package/lib/unimaze-billing/src/common/components/component-container/index.js +0 -22
  76. package/lib/unimaze-billing/src/common/components/customer/CostCenter.d.ts +0 -17
  77. package/lib/unimaze-billing/src/common/components/customer/CostCenter.js +0 -163
  78. package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.d.ts +0 -17
  79. package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.js +0 -53
  80. package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.d.ts +0 -7
  81. package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.js +0 -41
  82. package/lib/unimaze-billing/src/common/components/customer/index.d.ts +0 -26
  83. package/lib/unimaze-billing/src/common/components/customer/index.js +0 -166
  84. package/lib/unimaze-billing/src/common/components/date-picker/index.d.ts +0 -21
  85. package/lib/unimaze-billing/src/common/components/date-picker/index.js +0 -23
  86. package/lib/unimaze-billing/src/common/components/delivery-location/index.d.ts +0 -12
  87. package/lib/unimaze-billing/src/common/components/delivery-location/index.js +0 -89
  88. package/lib/unimaze-billing/src/common/components/editable-cell/index.d.ts +0 -0
  89. package/lib/unimaze-billing/src/common/components/editable-cell/index.js +0 -295
  90. package/lib/unimaze-billing/src/common/components/editable-row/index.d.ts +0 -5
  91. package/lib/unimaze-billing/src/common/components/editable-row/index.js +0 -59
  92. package/lib/unimaze-billing/src/common/components/form-item/index.d.ts +0 -35
  93. package/lib/unimaze-billing/src/common/components/form-item/index.js +0 -60
  94. package/lib/unimaze-billing/src/common/components/index.d.ts +0 -18
  95. package/lib/unimaze-billing/src/common/components/index.js +0 -42
  96. package/lib/unimaze-billing/src/common/components/input/index.d.ts +0 -23
  97. package/lib/unimaze-billing/src/common/components/input/index.js +0 -37
  98. package/lib/unimaze-billing/src/common/components/invoice/index.d.ts +0 -42
  99. package/lib/unimaze-billing/src/common/components/invoice/index.js +0 -59
  100. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +0 -14
  101. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +0 -75
  102. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.d.ts +0 -14
  103. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.js +0 -73
  104. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.d.ts +0 -12
  105. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.js +0 -104
  106. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.d.ts +0 -12
  107. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.js +0 -93
  108. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +0 -14
  109. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +0 -77
  110. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.d.ts +0 -14
  111. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.js +0 -58
  112. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.d.ts +0 -14
  113. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.js +0 -52
  114. package/lib/unimaze-billing/src/common/components/invoice-preview/index.d.ts +0 -102
  115. package/lib/unimaze-billing/src/common/components/invoice-preview/index.js +0 -196
  116. package/lib/unimaze-billing/src/common/components/locale-intl/index.d.ts +0 -0
  117. package/lib/unimaze-billing/src/common/components/locale-intl/index.js +0 -51
  118. package/lib/unimaze-billing/src/common/components/payment-method/index.d.ts +0 -76
  119. package/lib/unimaze-billing/src/common/components/payment-method/index.js +0 -356
  120. package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.d.ts +0 -8
  121. package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.js +0 -37
  122. package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.d.ts +0 -3
  123. package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.js +0 -17
  124. package/lib/unimaze-billing/src/common/components/submit-confirmation/index.d.ts +0 -8
  125. package/lib/unimaze-billing/src/common/components/submit-confirmation/index.js +0 -34
  126. package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.d.ts +0 -18
  127. package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.js +0 -159
  128. package/lib/unimaze-billing/src/common/components/supplier/index.d.ts +0 -94
  129. package/lib/unimaze-billing/src/common/components/supplier/index.js +0 -334
  130. package/lib/unimaze-billing/src/common/components/tooltip/index.d.ts +0 -7
  131. package/lib/unimaze-billing/src/common/components/tooltip/index.js +0 -15
  132. package/lib/unimaze-billing/src/common/components/welcome-modal/index.d.ts +0 -15
  133. package/lib/unimaze-billing/src/common/components/welcome-modal/index.js +0 -26
  134. package/lib/unimaze-billing/src/common/consts/formLayout.d.ts +0 -74
  135. package/lib/unimaze-billing/src/common/consts/formLayout.js +0 -45
  136. package/lib/unimaze-billing/src/common/consts/validationRules.d.ts +0 -6
  137. package/lib/unimaze-billing/src/common/consts/validationRules.js +0 -69
  138. package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.d.ts +0 -5
  139. package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.js +0 -8
  140. package/lib/unimaze-billing/src/common/enums/index.d.ts +0 -1
  141. package/lib/unimaze-billing/src/common/enums/index.js +0 -8
  142. package/lib/unimaze-billing/src/common/types/AppConfiguration.d.ts +0 -26
  143. package/lib/unimaze-billing/src/common/types/AppConfiguration.js +0 -2
  144. package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.d.ts +0 -10
  145. package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.js +0 -2
  146. package/lib/unimaze-billing/src/common/types/CommonProps.d.ts +0 -33
  147. package/lib/unimaze-billing/src/common/types/CommonProps.js +0 -2
  148. package/lib/unimaze-billing/src/common/types/DiscountType.d.ts +0 -1
  149. package/lib/unimaze-billing/src/common/types/DiscountType.js +0 -2
  150. package/lib/unimaze-billing/src/common/types/InvoiceFormFields.d.ts +0 -1
  151. package/lib/unimaze-billing/src/common/types/InvoiceFormFields.js +0 -2
  152. package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.d.ts +0 -27
  153. package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.js +0 -2
  154. package/lib/unimaze-billing/src/common/types/ReceiverRequirements.d.ts +0 -83
  155. package/lib/unimaze-billing/src/common/types/ReceiverRequirements.js +0 -393
  156. package/lib/unimaze-billing/src/common/types/SupplierInfo.d.ts +0 -11
  157. package/lib/unimaze-billing/src/common/types/SupplierInfo.js +0 -2
  158. package/lib/unimaze-billing/src/common/types/index.d.ts +0 -1
  159. package/lib/unimaze-billing/src/common/types/index.js +0 -17
  160. package/lib/unimaze-billing/src/create-credit-note/index.d.ts +0 -9
  161. package/lib/unimaze-billing/src/create-credit-note/index.js +0 -62
  162. package/lib/unimaze-billing/src/create-invoice/IntlLoader.d.ts +0 -11
  163. package/lib/unimaze-billing/src/create-invoice/IntlLoader.js +0 -116
  164. package/lib/unimaze-billing/src/create-invoice/index.d.ts +0 -82
  165. package/lib/unimaze-billing/src/create-invoice/index.js +0 -710
  166. package/lib/unimaze-billing/src/enums.d.ts +0 -14
  167. package/lib/unimaze-billing/src/enums.js +0 -18
  168. package/lib/unimaze-billing/src/index.d.ts +0 -4
  169. package/lib/unimaze-billing/src/index.js +0 -28
  170. package/lib/unimaze-billing/src/translations/locales/en.json +0 -183
  171. package/lib/unimaze-billing/src/translations/locales/is.json +0 -183
  172. package/lib/unimaze-billing/src/translations/locales.d.ts +0 -369
  173. package/lib/unimaze-billing/src/translations/locales.js +0 -11
  174. package/lib/unimaze-billing/src/utils/ApiUtility.d.ts +0 -29
  175. package/lib/unimaze-billing/src/utils/ApiUtility.js +0 -133
  176. package/lib/unimaze-billing/src/utils/BillingLineUtility.d.ts +0 -25
  177. package/lib/unimaze-billing/src/utils/BillingLineUtility.js +0 -190
  178. package/lib/unimaze-billing/src/utils/ConversionUtility.d.ts +0 -9
  179. package/lib/unimaze-billing/src/utils/ConversionUtility.js +0 -222
  180. package/lib/unimaze-billing/src/utils/FileUploadUtility.d.ts +0 -9
  181. package/lib/unimaze-billing/src/utils/FileUploadUtility.js +0 -45
  182. package/lib/unimaze-billing/src/utils/IntlUtility.d.ts +0 -6
  183. package/lib/unimaze-billing/src/utils/IntlUtility.js +0 -78
  184. package/lib/unimaze-billing/src/utils/LocationUtility.d.ts +0 -1
  185. package/lib/unimaze-billing/src/utils/LocationUtility.js +0 -81
  186. package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.d.ts +0 -7
  187. package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.js +0 -26
  188. package/lib/unimaze-billing/src/utils/RequirementsUtility.d.ts +0 -21
  189. package/lib/unimaze-billing/src/utils/RequirementsUtility.js +0 -237
  190. package/lib/unimaze-billing/src/utils/index.d.ts +0 -2
  191. package/lib/unimaze-billing/src/utils/index.js +0 -8
@@ -1,26 +0,0 @@
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);
@@ -1,74 +0,0 @@
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 };
@@ -1,45 +0,0 @@
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;
@@ -1,6 +0,0 @@
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;
@@ -1,69 +0,0 @@
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
- };
@@ -1,5 +0,0 @@
1
- declare enum DocumentTypeEnum {
2
- Invoice = "invoice",
3
- CreditNote = "creditNote"
4
- }
5
- export default DocumentTypeEnum;
@@ -1,8 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export { default as DocumentTypeEnum } from "./DocumentTypeEnum";
@@ -1,8 +0,0 @@
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; } });
@@ -1,26 +0,0 @@
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 };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,33 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type DiscountType = "PERCENTAGE" | "AMOUNT";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,27 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,83 +0,0 @@
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 };