@unimaze/billing 0.21.46 → 0.21.47

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 (192) hide show
  1. package/lib/common/components/billing-lines/CurrencySelector.d.ts +1 -3
  2. package/lib/common/components/billing-lines/CurrencySelector.js +45 -8
  3. package/lib/common/components/billing-lines/NewBillingLines.js +0 -8
  4. package/lib/common/components/billing-lines/NewNewBillingLines.d.ts +15 -0
  5. package/lib/common/components/billing-lines/NewNewBillingLines.js +36 -0
  6. package/lib/common/components/billing-lines/SingleBillingLine.js +9 -5
  7. package/lib/common/components/billing-lines/cwdwdw.d.ts +1 -0
  8. package/lib/common/components/billing-lines/cwdwdw.js +14 -0
  9. package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +0 -0
  10. package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +109 -0
  11. package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +0 -0
  12. package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +110 -0
  13. package/lib/unimaze-api-clients/src/mapi/api.d.ts +6664 -0
  14. package/lib/unimaze-api-clients/src/mapi/api.js +4743 -0
  15. package/lib/unimaze-api-clients/src/mapi/base.d.ts +55 -0
  16. package/lib/unimaze-api-clients/src/mapi/base.js +84 -0
  17. package/lib/unimaze-api-clients/src/mapi/configuration.d.ts +63 -0
  18. package/lib/unimaze-api-clients/src/mapi/configuration.js +28 -0
  19. package/lib/unimaze-api-clients/src/mapi/index.d.ts +13 -0
  20. package/lib/unimaze-api-clients/src/mapi/index.js +30 -0
  21. package/lib/unimaze-api-clients/src/rapi/api.d.ts +5015 -0
  22. package/lib/unimaze-api-clients/src/rapi/api.js +5582 -0
  23. package/lib/unimaze-api-clients/src/rapi/base.d.ts +55 -0
  24. package/lib/unimaze-api-clients/src/rapi/base.js +84 -0
  25. package/lib/unimaze-api-clients/src/rapi/configuration.d.ts +63 -0
  26. package/lib/unimaze-api-clients/src/rapi/configuration.js +28 -0
  27. package/lib/unimaze-api-clients/src/rapi/index.d.ts +13 -0
  28. package/lib/unimaze-api-clients/src/rapi/index.js +30 -0
  29. package/lib/unimaze-billing/src/common/components/CommonTranslations.d.ts +74 -0
  30. package/lib/unimaze-billing/src/common/components/CommonTranslations.js +78 -0
  31. package/lib/unimaze-billing/src/common/components/attachments/Attachment.d.ts +20 -0
  32. package/lib/unimaze-billing/src/common/components/attachments/Attachment.js +164 -0
  33. package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.d.ts +21 -0
  34. package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.js +206 -0
  35. package/lib/unimaze-billing/src/common/components/attachments/index.d.ts +27 -0
  36. package/lib/unimaze-billing/src/common/components/attachments/index.js +214 -0
  37. package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.d.ts +17 -0
  38. package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.js +61 -0
  39. package/lib/unimaze-billing/src/common/components/base-information/OrderReference.d.ts +16 -0
  40. package/lib/unimaze-billing/src/common/components/base-information/OrderReference.js +58 -0
  41. package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.d.ts +14 -0
  42. package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.js +30 -0
  43. package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.d.ts +53 -0
  44. package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.js +328 -0
  45. package/lib/unimaze-billing/src/common/components/base-information/index.d.ts +77 -0
  46. package/lib/unimaze-billing/src/common/components/base-information/index.js +186 -0
  47. package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.d.ts +14 -0
  48. package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.js +151 -0
  49. package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.d.ts +24 -0
  50. package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.js +61 -0
  51. package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.d.ts +13 -0
  52. package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.js +133 -0
  53. package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.d.ts +20 -0
  54. package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.js +17 -0
  55. package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.d.ts +10 -0
  56. package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.js +16 -0
  57. package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.d.ts +134 -0
  58. package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.js +209 -0
  59. package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.d.ts +15 -0
  60. package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.js +36 -0
  61. package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.d.ts +19 -0
  62. package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.js +275 -0
  63. package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.d.ts +14 -0
  64. package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.js +15 -0
  65. package/lib/unimaze-billing/src/common/components/billing-lines/index.d.ts +49 -0
  66. package/lib/unimaze-billing/src/common/components/billing-lines/index.js +104 -0
  67. package/lib/unimaze-billing/src/common/components/component-container/Content.d.ts +7 -0
  68. package/lib/unimaze-billing/src/common/components/component-container/Content.js +13 -0
  69. package/lib/unimaze-billing/src/common/components/component-container/Header.d.ts +9 -0
  70. package/lib/unimaze-billing/src/common/components/component-container/Header.js +28 -0
  71. package/lib/unimaze-billing/src/common/components/component-container/index.d.ts +12 -0
  72. package/lib/unimaze-billing/src/common/components/component-container/index.js +22 -0
  73. package/lib/unimaze-billing/src/common/components/customer/CostCenter.d.ts +17 -0
  74. package/lib/unimaze-billing/src/common/components/customer/CostCenter.js +163 -0
  75. package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.d.ts +17 -0
  76. package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.js +53 -0
  77. package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.d.ts +7 -0
  78. package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.js +41 -0
  79. package/lib/unimaze-billing/src/common/components/customer/index.d.ts +26 -0
  80. package/lib/unimaze-billing/src/common/components/customer/index.js +166 -0
  81. package/lib/unimaze-billing/src/common/components/date-picker/index.d.ts +21 -0
  82. package/lib/unimaze-billing/src/common/components/date-picker/index.js +23 -0
  83. package/lib/unimaze-billing/src/common/components/delivery-location/index.d.ts +12 -0
  84. package/lib/unimaze-billing/src/common/components/delivery-location/index.js +89 -0
  85. package/lib/unimaze-billing/src/common/components/editable-cell/index.d.ts +0 -0
  86. package/lib/unimaze-billing/src/common/components/editable-cell/index.js +295 -0
  87. package/lib/unimaze-billing/src/common/components/editable-row/index.d.ts +5 -0
  88. package/lib/unimaze-billing/src/common/components/editable-row/index.js +59 -0
  89. package/lib/unimaze-billing/src/common/components/form-item/index.d.ts +35 -0
  90. package/lib/unimaze-billing/src/common/components/form-item/index.js +60 -0
  91. package/lib/unimaze-billing/src/common/components/index.d.ts +18 -0
  92. package/lib/unimaze-billing/src/common/components/index.js +42 -0
  93. package/lib/unimaze-billing/src/common/components/input/index.d.ts +23 -0
  94. package/lib/unimaze-billing/src/common/components/input/index.js +37 -0
  95. package/lib/unimaze-billing/src/common/components/invoice/index.d.ts +42 -0
  96. package/lib/unimaze-billing/src/common/components/invoice/index.js +59 -0
  97. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +14 -0
  98. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +75 -0
  99. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.d.ts +14 -0
  100. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.js +73 -0
  101. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.d.ts +12 -0
  102. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.js +104 -0
  103. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.d.ts +12 -0
  104. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.js +93 -0
  105. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +14 -0
  106. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +77 -0
  107. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.d.ts +14 -0
  108. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.js +58 -0
  109. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.d.ts +14 -0
  110. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.js +52 -0
  111. package/lib/unimaze-billing/src/common/components/invoice-preview/index.d.ts +102 -0
  112. package/lib/unimaze-billing/src/common/components/invoice-preview/index.js +196 -0
  113. package/lib/unimaze-billing/src/common/components/locale-intl/index.d.ts +0 -0
  114. package/lib/unimaze-billing/src/common/components/locale-intl/index.js +51 -0
  115. package/lib/unimaze-billing/src/common/components/payment-method/index.d.ts +76 -0
  116. package/lib/unimaze-billing/src/common/components/payment-method/index.js +356 -0
  117. package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.d.ts +8 -0
  118. package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.js +37 -0
  119. package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.d.ts +3 -0
  120. package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.js +17 -0
  121. package/lib/unimaze-billing/src/common/components/submit-confirmation/index.d.ts +8 -0
  122. package/lib/unimaze-billing/src/common/components/submit-confirmation/index.js +34 -0
  123. package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.d.ts +18 -0
  124. package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.js +159 -0
  125. package/lib/unimaze-billing/src/common/components/supplier/index.d.ts +94 -0
  126. package/lib/unimaze-billing/src/common/components/supplier/index.js +334 -0
  127. package/lib/unimaze-billing/src/common/components/tooltip/index.d.ts +7 -0
  128. package/lib/unimaze-billing/src/common/components/tooltip/index.js +15 -0
  129. package/lib/unimaze-billing/src/common/components/welcome-modal/index.d.ts +15 -0
  130. package/lib/unimaze-billing/src/common/components/welcome-modal/index.js +26 -0
  131. package/lib/unimaze-billing/src/common/consts/formLayout.d.ts +74 -0
  132. package/lib/unimaze-billing/src/common/consts/formLayout.js +45 -0
  133. package/lib/unimaze-billing/src/common/consts/validationRules.d.ts +6 -0
  134. package/lib/unimaze-billing/src/common/consts/validationRules.js +69 -0
  135. package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.d.ts +5 -0
  136. package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.js +8 -0
  137. package/lib/unimaze-billing/src/common/enums/index.d.ts +1 -0
  138. package/lib/unimaze-billing/src/common/enums/index.js +8 -0
  139. package/lib/unimaze-billing/src/common/types/AppConfiguration.d.ts +26 -0
  140. package/lib/unimaze-billing/src/common/types/AppConfiguration.js +2 -0
  141. package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.d.ts +10 -0
  142. package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.js +2 -0
  143. package/lib/unimaze-billing/src/common/types/CommonProps.d.ts +33 -0
  144. package/lib/unimaze-billing/src/common/types/CommonProps.js +2 -0
  145. package/lib/unimaze-billing/src/common/types/DiscountType.d.ts +1 -0
  146. package/lib/unimaze-billing/src/common/types/DiscountType.js +2 -0
  147. package/lib/unimaze-billing/src/common/types/InvoiceFormFields.d.ts +1 -0
  148. package/lib/unimaze-billing/src/common/types/InvoiceFormFields.js +2 -0
  149. package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.d.ts +27 -0
  150. package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.js +2 -0
  151. package/lib/unimaze-billing/src/common/types/ReceiverRequirements.d.ts +83 -0
  152. package/lib/unimaze-billing/src/common/types/ReceiverRequirements.js +393 -0
  153. package/lib/unimaze-billing/src/common/types/SupplierInfo.d.ts +11 -0
  154. package/lib/unimaze-billing/src/common/types/SupplierInfo.js +2 -0
  155. package/lib/unimaze-billing/src/common/types/index.d.ts +1 -0
  156. package/lib/unimaze-billing/src/common/types/index.js +17 -0
  157. package/lib/unimaze-billing/src/create-credit-note/index.d.ts +9 -0
  158. package/lib/unimaze-billing/src/create-credit-note/index.js +62 -0
  159. package/lib/unimaze-billing/src/create-invoice/IntlLoader.d.ts +11 -0
  160. package/lib/unimaze-billing/src/create-invoice/IntlLoader.js +116 -0
  161. package/lib/unimaze-billing/src/create-invoice/index.d.ts +82 -0
  162. package/lib/unimaze-billing/src/create-invoice/index.js +710 -0
  163. package/lib/unimaze-billing/src/enums.d.ts +14 -0
  164. package/lib/unimaze-billing/src/enums.js +18 -0
  165. package/lib/unimaze-billing/src/index.d.ts +4 -0
  166. package/lib/unimaze-billing/src/index.js +28 -0
  167. package/lib/unimaze-billing/src/translations/locales/en.json +183 -0
  168. package/lib/unimaze-billing/src/translations/locales/is.json +183 -0
  169. package/lib/unimaze-billing/src/translations/locales.d.ts +369 -0
  170. package/lib/unimaze-billing/src/translations/locales.js +11 -0
  171. package/lib/unimaze-billing/src/utils/ApiUtility.d.ts +29 -0
  172. package/lib/unimaze-billing/src/utils/ApiUtility.js +133 -0
  173. package/lib/unimaze-billing/src/utils/BillingLineUtility.d.ts +25 -0
  174. package/lib/unimaze-billing/src/utils/BillingLineUtility.js +190 -0
  175. package/lib/unimaze-billing/src/utils/ConversionUtility.d.ts +9 -0
  176. package/lib/unimaze-billing/src/utils/ConversionUtility.js +222 -0
  177. package/lib/unimaze-billing/src/utils/FileUploadUtility.d.ts +9 -0
  178. package/lib/unimaze-billing/src/utils/FileUploadUtility.js +45 -0
  179. package/lib/unimaze-billing/src/utils/IntlUtility.d.ts +6 -0
  180. package/lib/unimaze-billing/src/utils/IntlUtility.js +78 -0
  181. package/lib/unimaze-billing/src/utils/LocationUtility.d.ts +1 -0
  182. package/lib/unimaze-billing/src/utils/LocationUtility.js +81 -0
  183. package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.d.ts +7 -0
  184. package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.js +26 -0
  185. package/lib/unimaze-billing/src/utils/RequirementsUtility.d.ts +21 -0
  186. package/lib/unimaze-billing/src/utils/RequirementsUtility.js +237 -0
  187. package/lib/unimaze-billing/src/utils/index.d.ts +2 -0
  188. package/lib/unimaze-billing/src/utils/index.js +8 -0
  189. package/lib/utils/RequirementsUtility.d.ts +3 -2
  190. package/lib/utils/RequirementsUtility.js +12 -2
  191. package/package.json +1 -1
  192. package/lib/style/index.css +0 -51
@@ -0,0 +1,393 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AvailableFields = void 0;
4
+ var AvailableFields;
5
+ (function (AvailableFields) {
6
+ AvailableFields["invoiceNo"] = "invoiceNo";
7
+ AvailableFields["issueDate"] = "issueDate";
8
+ AvailableFields["dueDate"] = "dueDate";
9
+ AvailableFields["graceDate"] = "graceDate";
10
+ AvailableFields["currencyCode"] = "currencyCode";
11
+ AvailableFields["notes"] = "notes";
12
+ AvailableFields["accountingCost"] = "accountingCost";
13
+ AvailableFields["buyerReference"] = "buyerReference";
14
+ AvailableFields["documentReferences.project.documentNo"] = "documentReferences.project.documentNo";
15
+ AvailableFields["orderReference.documentNo"] = "orderReference.documentNo";
16
+ AvailableFields["billingReferences.invoices"] = "billingReferences.invoices";
17
+ AvailableFields["billingReferences.documentNo"] = "billingReferences.documentNo";
18
+ AvailableFields["billingReferences.issueDate"] = "billingReferences.issueDate";
19
+ AvailableFields["billingReferences.creditNotes"] = "billingReferences.creditNotes";
20
+ AvailableFields["referenceIdentifiers.type"] = "referenceIdentifiers.type";
21
+ AvailableFields["referenceIdentifiers.code"] = "referenceIdentifiers.code";
22
+ AvailableFields["referenceIdentifiers.value"] = "referenceIdentifiers.value";
23
+ AvailableFields["referenceIdentifier.*"] = "referenceIdentifier.*";
24
+ AvailableFields["singleReferenceIdentifier"] = "singleReferenceIdentifier";
25
+ AvailableFields["referenceIdentifiers"] = "referenceIdentifiers";
26
+ AvailableFields["supplier.vatNumber"] = "supplier.vatNumber";
27
+ AvailableFields["supplier.address.streetNameAndNumber"] = "supplier.address.streetNameAndNumber";
28
+ AvailableFields["supplier.address.city"] = "supplier.address.city";
29
+ AvailableFields["supplier.address.postalZone"] = "supplier.address.postalZone";
30
+ AvailableFields["supplier.address.countryCode"] = "supplier.address.countryCode";
31
+ AvailableFields["supplier.contact.name"] = "supplier.contact.name";
32
+ AvailableFields["supplier.contact.electronicMail"] = "supplier.contact.electronicMail";
33
+ AvailableFields["supplier.contact.telephone"] = "supplier.contact.telephone";
34
+ AvailableFields["supplier.name"] = "supplier.name";
35
+ AvailableFields["supplier.identifier"] = "supplier.identifier";
36
+ AvailableFields["customer.address.streetNameAndNumber"] = "customer.address.streetNameAndNumber";
37
+ AvailableFields["customer.address.city"] = "customer.address.city";
38
+ AvailableFields["customer.address.postalZone"] = "customer.address.postalZone";
39
+ AvailableFields["customer.address.countryCode"] = "customer.address.countryCode";
40
+ AvailableFields["customer.contact.name"] = "customer.contact.name";
41
+ AvailableFields["customer.contact.electronicMail"] = "customer.contact.electronicMail";
42
+ AvailableFields["customer.contact.telephone"] = "customer.contact.telephone";
43
+ AvailableFields["customer.name"] = "customer.name";
44
+ AvailableFields["customer.identifier"] = "customer.identifier";
45
+ AvailableFields["customer.locationIdentifier"] = "customer.locationIdentifier";
46
+ AvailableFields["payee.name"] = "payee.name";
47
+ AvailableFields["payee.identifier"] = "payee.identifier";
48
+ AvailableFields["payee.sepaBankIdentification"] = "payee.sepaBankIdentification";
49
+ AvailableFields["invoiceLines.itemNo"] = "invoiceLines.itemNo";
50
+ AvailableFields["invoiceLines.name"] = "invoiceLines.name";
51
+ AvailableFields["invoiceLines.quantity"] = "invoiceLines.quantity";
52
+ AvailableFields["invoiceLines.uniteOfMeasure.unit"] = "invoiceLines.unitOfMeasure.unit";
53
+ AvailableFields["invoiceLines.uniteOfMeasure.code"] = "invoiceLines.unitOfMeasure.code";
54
+ AvailableFields["invoiceLines.unitPriceAmount"] = "invoiceLines.unitPriceAmount";
55
+ AvailableFields["invoiceLines.taxCategoryType"] = "invoiceLines.taxCategoryType";
56
+ AvailableFields["invoiceLines.taxableAmount"] = "invoiceLines.taxableAmount";
57
+ AvailableFields["invoiceLines.taxAmount"] = "invoiceLines.taxAmount";
58
+ AvailableFields["invoiceLines.taxPercentage"] = "invoiceLines.taxPercentage";
59
+ AvailableFields["invoiceLines.discountValue"] = "invoiceLines.discountValue";
60
+ AvailableFields["paymentTerms.note"] = "paymentTerms.note";
61
+ AvailableFields["paymentMeans.type"] = "paymentMeans.type";
62
+ AvailableFields["paymentMeans.internationalTransfer"] = "paymentMeans.internationalTransfer";
63
+ AvailableFields["paymentMeans.domesticTransfer"] = "paymentMeans.domesticTransfer";
64
+ AvailableFields["paymentMeans.domesticClaim"] = "paymentMeans.domesticClaim";
65
+ AvailableFields["delivery.partyName"] = "delivery.partyName";
66
+ AvailableFields["delivery.locationIdentifier"] = "delivery.locationIdentifier";
67
+ AvailableFields["delivery.address.streetNameAndNumber"] = "delivery.address.streetNameAndNumber";
68
+ AvailableFields["delivery.address.city"] = "delivery.address.city";
69
+ AvailableFields["delivery.address.postalZone"] = "delivery.address.postalZone";
70
+ AvailableFields["delivery.address.countryCode"] = "delivery.address.countryCode";
71
+ AvailableFields["delivery.actualDeliveryDate"] = "delivery.actualDeliveryDate";
72
+ AvailableFields["prepaidAmount"] = "prepaidAmount";
73
+ AvailableFields["payableAmount"] = "payableAmount";
74
+ AvailableFields["payableRoundingAmount"] = "payableRoundingAmount";
75
+ })(AvailableFields = exports.AvailableFields || (exports.AvailableFields = {}));
76
+ // export const receiverRequirementsObject: ReceiverRequirements = {
77
+ // invoiceNo: {
78
+ // isRequired: true,
79
+ // key: "",
80
+ // },
81
+ // issueDate: {
82
+ // isRequired: true,
83
+ // key: "",
84
+ // },
85
+ // dueDate: {
86
+ // isRequired: true,
87
+ // key: "",
88
+ // },
89
+ // graceDate: {
90
+ // isRequired: false,
91
+ // key: "",
92
+ // },
93
+ // currencyCode: {
94
+ // isRequired: true,
95
+ // key: "",
96
+ // values: [{
97
+ // key: "ISK",
98
+ // // label: "Icelandic krona (ISK)"
99
+ // label: "Íslensk króna (ISK)"
100
+ // }]
101
+ // },
102
+ // notes: {
103
+ // isRequired: false,
104
+ // key: "",
105
+ // },
106
+ // accountingCost: {
107
+ // isRequired: false,
108
+ // key: "",
109
+ // },
110
+ // buyerReference: {
111
+ // isRequired: true,
112
+ // key: "",
113
+ // label: "Tjónsnúmer / Tilvísun kaupanda" // Claim number / Buyer reference
114
+ // },
115
+ // "orderReference.documentNo": {
116
+ // isRequired: true,
117
+ // key: "",
118
+ // },
119
+ // "billingReferences.invoices": {
120
+ // isRequired: false,
121
+ // key: "",
122
+ // },
123
+ // "billingReferences.documentNo": {
124
+ // isRequired: true,
125
+ // key: "",
126
+ // },
127
+ // "billingReferences.issueDate": {
128
+ // isRequired: false,
129
+ // key: "",
130
+ // },
131
+ // "billingReferences.creditNotes": {
132
+ // isRequired: false,
133
+ // key: "",
134
+ // },
135
+ // // "referenceIdentifiers.type": {
136
+ // // isRequired: false,
137
+ // // key: "",
138
+ // // label: "Reference identifier type"
139
+ // // },
140
+ // // "referenceIdentifiers.code": {
141
+ // // isRequired: false,
142
+ // // key: "",
143
+ // // label: "Reference identifier code"
144
+ // // },
145
+ // // "referenceIdentifiers.value": {
146
+ // // isRequired: true,
147
+ // // key: "",
148
+ // // label: "Reference identifier value"
149
+ // // },
150
+ // "referenceIdentifiers": {
151
+ // "isRequired": true,
152
+ // "key": "",
153
+ // "values": [
154
+ // {
155
+ // "key": "AKY",
156
+ // "label": "Bílnúmer",
157
+ // "values": [
158
+ // {
159
+ // "key": "NY753",
160
+ // "label": "NY753"
161
+ // }, // displaed as "NY753"
162
+ // {
163
+ // "key": "IS123"
164
+ // }, // display key
165
+ // {
166
+ // "key": "RR888"
167
+ // }, // display key
168
+ // ]
169
+ // },
170
+ // {
171
+ // "key": "ARR", // WAS SSN!!!!
172
+ // "label": "Kennitala" // "Social security number"
173
+ // },
174
+ // {
175
+ // "key": "LOC",
176
+ // "label": "Fasteignanúmer", // Place or location identifier
177
+ // "values": [{
178
+ // "key": "30909",
179
+ // "label": "Mýrargata 26 (30909)"
180
+ // }, // displayed as "Mýrargata 26 (30909)"
181
+ // {
182
+ // "key": "34344",
183
+ // "label": "Aragata 1 (34344)"
184
+ // }, // displayed as "Aragata (34344)"
185
+ // ]
186
+ // }
187
+ // ]
188
+ // },
189
+ //
190
+ // "supplier.vatNumber": {
191
+ // isRequired: false, // NBNB: this is by request from Sjova, but as the VAT number is required in model validation, we are inserting N/A if this field is empty
192
+ // key: "",
193
+ // },
194
+ // "supplier.address.streetNameAndNumber": {
195
+ // isRequired: true,
196
+ // key: "",
197
+ // },
198
+ // "supplier.address.city": {
199
+ // isRequired: false,
200
+ // key: "",
201
+ // },
202
+ // "supplier.address.postalZone": {
203
+ // isRequired: false,
204
+ // key: "",
205
+ // },
206
+ // "supplier.address.countryCode": {
207
+ // isRequired: true,
208
+ // key: "",
209
+ // },
210
+ // "supplier.contact.name": {
211
+ // isRequired: false,
212
+ // key: "",
213
+ // },
214
+ // "supplier.contact.electronicMail": {
215
+ // isRequired: false,
216
+ // key: "",
217
+ // },
218
+ // "supplier.contact.telephone": {
219
+ // isRequired: false,
220
+ // key: "",
221
+ // },
222
+ // "supplier.name": {
223
+ // isRequired: true,
224
+ // key: "",
225
+ // },
226
+ // "supplier.identifier": {
227
+ // isRequired: true,
228
+ // key: "",
229
+ // },
230
+ //
231
+ // "customer.address.streetNameAndNumber": {
232
+ // isRequired: true,
233
+ // key: "",
234
+ // },
235
+ // "customer.address.city": {
236
+ // isRequired: false,
237
+ // key: "",
238
+ // },
239
+ // "customer.address.postalZone": {
240
+ // isRequired: false,
241
+ // key: "",
242
+ // },
243
+ // "customer.address.countryCode": {
244
+ // isRequired: true,
245
+ // key: "",
246
+ // },
247
+ // "customer.contact.name": {
248
+ // isRequired: false,
249
+ // key: "",
250
+ // },
251
+ // "customer.contact.electronicMail": {
252
+ // isRequired: false,
253
+ // key: "",
254
+ // },
255
+ // "customer.contact.telephone": {
256
+ // isRequired: false,
257
+ // key: "",
258
+ // },
259
+ // "customer.name": {
260
+ // isRequired: true,
261
+ // key: "",
262
+ // },
263
+ // "customer.identifier": {
264
+ // isRequired: true,
265
+ // key: "",
266
+ // },
267
+ // "customer.locationIdentifier": {
268
+ // isRequired: false,
269
+ // key: "",
270
+ // },
271
+ //
272
+ // "payee.name": {
273
+ // isRequired: true,
274
+ // key: "",
275
+ // },
276
+ // "payee.identifier": {
277
+ // isRequired: true,
278
+ // key: "",
279
+ // },
280
+ // "payee.sepaBankIdentification": {
281
+ // isRequired: false,
282
+ // key: "",
283
+ // },
284
+ //
285
+ // "invoiceLines.itemNo": {
286
+ // isRequired: true,
287
+ // key: "",
288
+ // },
289
+ // "invoiceLines.name": {
290
+ // isRequired: true,
291
+ // key: "",
292
+ // },
293
+ // "invoiceLines.quantity": {
294
+ // isRequired: true,
295
+ // key: "",
296
+ // },
297
+ // "invoiceLines.unitOfMeasure.unit": {
298
+ // isRequired: true,
299
+ // key: "",
300
+ // },
301
+ // "invoiceLines.unitOfMeasure.code": {
302
+ // isRequired: true,
303
+ // key: "",
304
+ // },
305
+ // "invoiceLines.unitPriceAmount": {
306
+ // isRequired: true,
307
+ // key: "",
308
+ // },
309
+ // "invoiceLines.taxCategoryType": {
310
+ // isRequired: true,
311
+ // key: "",
312
+ // },
313
+ // "invoiceLines.taxAmount": {
314
+ // isRequired: true,
315
+ // key: "",
316
+ // },
317
+ // "invoiceLines.taxableAmount": {
318
+ // isRequired: true,
319
+ // key: "",
320
+ // },
321
+ // "invoiceLines.taxPercentage": {
322
+ // isRequired: true,
323
+ // key: "",
324
+ // },
325
+ // "invoiceLines.discountValue": {
326
+ // isRequired: true,
327
+ // key: "",
328
+ // },
329
+ //
330
+ // "paymentTerms.note": {
331
+ // isRequired: false,
332
+ // key: "",
333
+ // },
334
+ // "paymentMeans.type": {
335
+ // isRequired: true,
336
+ // key: "",
337
+ // },
338
+ //
339
+ // "paymentMeans.internationalTransfer": {
340
+ // isRequired: false,
341
+ // key: "",
342
+ // },
343
+ // "paymentMeans.domesticTransfer": {
344
+ // isRequired: false,
345
+ // key: "",
346
+ // },
347
+ // "paymentMeans.domesticClaim": {
348
+ // isRequired: false,
349
+ // key: "",
350
+ // },
351
+ //
352
+ // "delivery.partyName": {
353
+ // isRequired: false,
354
+ // key: "",
355
+ // },
356
+ // "delivery.locationIdentifier": {
357
+ // isRequired: false,
358
+ // key: "",
359
+ // },
360
+ // "delivery.address.streetNameAndNumber": {
361
+ // isRequired: false, // ??
362
+ // key: "",
363
+ // },
364
+ // "delivery.address.city": {
365
+ // isRequired: false,
366
+ // key: "",
367
+ // },
368
+ // "delivery.address.postalZone": {
369
+ // isRequired: false,
370
+ // key: "",
371
+ // },
372
+ // "delivery.address.countryCode": {
373
+ // isRequired: false, // ??
374
+ // key: "",
375
+ // },
376
+ // "delivery.actualDeliveryDate": {
377
+ // isRequired: false,
378
+ // key: "",
379
+ // },
380
+ //
381
+ // prepaidAmount: {
382
+ // isRequired: false,
383
+ // key: "",
384
+ // },
385
+ // payableAmount: {
386
+ // isRequired: false,
387
+ // key: "",
388
+ // },
389
+ // payableRoundingAmount: {
390
+ // isRequired: false,
391
+ // key: "",
392
+ // }
393
+ // };
@@ -0,0 +1,11 @@
1
+ export interface SuplierOutput {
2
+ city: string;
3
+ country: string;
4
+ id: number;
5
+ legalIsoIdentifier: string;
6
+ legalName: string;
7
+ postalCode: string;
8
+ refreshTimestamp: Date;
9
+ status: string;
10
+ streetAndNumber: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./"), exports);
@@ -0,0 +1,9 @@
1
+ import "../style/index.css";
2
+ import React from "react";
3
+ import { CommonProps } from "../common/types/CommonProps";
4
+ import { ProfileOutputWithApiKey } from "../common/types/AppConfiguration";
5
+ interface Props extends CommonProps {
6
+ customer: ProfileOutputWithApiKey;
7
+ }
8
+ declare const CreateInvoice: React.FC<Props>;
9
+ export default CreateInvoice;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ require("../style/index.css");
18
+ var react_1 = __importDefault(require("react"));
19
+ var antd_1 = require("antd");
20
+ // const [createCorrectWithCreditRequest, setCreateCorrectWithCreditRequest] = useState<CreateCorrectWithCreditRequest>(
21
+ // {
22
+ // conversationIdentifier: "test",
23
+ // creditNoteMetadataInput: {} as CreditNoteMetadataInput,
24
+ // messageId: "test_mid",
25
+ // more: false,
26
+ // services: [],
27
+ // }
28
+ // );
29
+ var form = antd_1.Form.useForm()[0];
30
+ var _a = react_1.default.useState(""), referenceIdentifierValidateStatus = _a[0], setReferenceIdentifierValidateStatus = _a[1];
31
+ var handleSetBillingLineMetadata = function (formInstance, billingLineMetadata) {
32
+ formInstance.setFieldsValue({
33
+ "billingLineMetadata": billingLineMetadata,
34
+ });
35
+ };
36
+ var handleSubmit = function (values) {
37
+ // console.log('Received values of form: ', values);
38
+ };
39
+ var CreateInvoice = function (props) {
40
+ // props.form.getFieldDecorator('billingLineMetadata', {initialValue: []});
41
+ var formItemLayout = {
42
+ labelCol: {
43
+ xs: { span: 24 },
44
+ sm: { span: 8 },
45
+ },
46
+ wrapperCol: {
47
+ xs: { span: 24 },
48
+ sm: { span: 16 },
49
+ },
50
+ };
51
+ return (react_1.default.createElement(antd_1.Form, __assign({}, formItemLayout, { onFinish: handleSubmit }),
52
+ react_1.default.createElement("h1", null, "Credit note"),
53
+ react_1.default.createElement(antd_1.Row, { gutter: [16, 16] },
54
+ react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 12 }, xl: { span: 12 } }),
55
+ react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 12 }, xl: { span: 12 } }),
56
+ react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 12 }, xl: { span: 8 } }),
57
+ react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 24 }, xl: { span: 16 } }),
58
+ react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 24 }, xl: { span: 24 } }),
59
+ react_1.default.createElement(antd_1.Col, { span: 24 },
60
+ react_1.default.createElement(antd_1.Button, { type: "primary", htmlType: "submit" }, "Senda")))));
61
+ };
62
+ exports.default = CreateInvoice;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { CommonProps } from "../common/types/CommonProps";
3
+ import { ProfileOutputWithApiKey } from "../common/types/AppConfiguration";
4
+ import "moment/locale/is";
5
+ interface Props extends CommonProps {
6
+ customers: ProfileOutputWithApiKey[];
7
+ referenceIdentifiersHelpText?: string;
8
+ referenceIdentifiersLabelText?: string;
9
+ }
10
+ declare const CreateInvoice: React.FC<Props>;
11
+ export default CreateInvoice;
@@ -0,0 +1,116 @@
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 react_1 = __importDefault(require("react"));
7
+ var antd_1 = require("antd");
8
+ var is_IS_1 = __importDefault(require("antd/es/locale/is_IS"));
9
+ var en_US_1 = __importDefault(require("antd/es/locale/en_US"));
10
+ var locales_1 = __importDefault(require("../translations/locales"));
11
+ var dayjs_1 = __importDefault(require("dayjs"));
12
+ var index_1 = __importDefault(require("./index"));
13
+ require("moment/locale/is");
14
+ var react_intl_1 = require("react-intl");
15
+ var colors_1 = require("@ant-design/colors");
16
+ /**
17
+ * Component for creating a form for creating an invoice and submitting it to the MAPI transaction services
18
+ *
19
+ * @component
20
+ */
21
+ function useWindowSize() {
22
+ var _a = react_1.default.useState([0, 0]), size = _a[0], setSize = _a[1];
23
+ react_1.default.useEffect(function () {
24
+ function updateSize() {
25
+ setSize([window.innerWidth, window.innerHeight]);
26
+ }
27
+ window.addEventListener("resize", updateSize);
28
+ updateSize();
29
+ return function () { return window.removeEventListener("resize", updateSize); };
30
+ }, []);
31
+ return size;
32
+ }
33
+ var CreateInvoice = function (props) {
34
+ var _a, _b, _c, _d;
35
+ var _e = react_1.default.useState(false), isMobile = _e[0], setIsMobile = _e[1];
36
+ var width = useWindowSize()[0];
37
+ react_1.default.useEffect(function () {
38
+ if (width < 768) {
39
+ setIsMobile(true);
40
+ }
41
+ else {
42
+ setIsMobile(false);
43
+ }
44
+ }, [width]);
45
+ var antLocale = is_IS_1.default;
46
+ var languageString = "is";
47
+ switch (props.language) {
48
+ case "is":
49
+ antLocale = is_IS_1.default;
50
+ dayjs_1.default.locale("is");
51
+ languageString = "is";
52
+ break;
53
+ case "en":
54
+ antLocale = en_US_1.default;
55
+ dayjs_1.default.locale("en");
56
+ languageString = "en";
57
+ break;
58
+ default:
59
+ antLocale = is_IS_1.default;
60
+ dayjs_1.default.locale("is");
61
+ languageString = "is";
62
+ break;
63
+ }
64
+ localStorage.setItem("languageString", languageString);
65
+ return (react_1.default.createElement(antd_1.ConfigProvider, { locale: antLocale, theme: {
66
+ token: {
67
+ colorPrimary: (_a = props.colorPrimary) !== null && _a !== void 0 ? _a : colors_1.blue.primary,
68
+ colorError: (_b = props.colorError) !== null && _b !== void 0 ? _b : colors_1.red[4],
69
+ colorLink: (_c = props.colorLink) !== null && _c !== void 0 ? _c : colors_1.blue.primary,
70
+ colorInfoBg: (_d = props.colorInfoBg) !== null && _d !== void 0 ? _d : colors_1.blue[0],
71
+ colorText: "rgba(0, 0, 0, 0.88)",
72
+ colorTextDescription: "rgba(0, 0, 0, 0.60)",
73
+ fontFamily: "Outfit",
74
+ fontSizeHeading5: isMobile ? 16 : 24,
75
+ fontSizeHeading4: isMobile ? 18 : 20,
76
+ fontSizeLG: isMobile ? 16 : 20,
77
+ fontSizeXL: 30,
78
+ fontSizeSM: 12,
79
+ fontSizeIcon: 20,
80
+ controlHeightLG: isMobile ? 51 : 60,
81
+ controlInteractiveSize: isMobile ? 16 : 26,
82
+ },
83
+ components: {
84
+ Steps: {
85
+ navArrowColor: "rgba(0, 0, 0, 0)",
86
+ navContentMaxWidth: "calc(100vw / 4)",
87
+ iconSize: isMobile ? 10 : 32,
88
+ iconFontSize: isMobile ? 12 : 14,
89
+ },
90
+ Input: {
91
+ inputFontSizeLG: isMobile ? 16 : 20,
92
+ paddingBlockLG: 13,
93
+ },
94
+ Button: {
95
+ contentFontSizeLG: isMobile ? 16 : 20,
96
+ },
97
+ DatePicker: {
98
+ paddingBlockLG: 13,
99
+ },
100
+ Form: {
101
+ itemMarginBottom: isMobile ? 24 : 32,
102
+ },
103
+ Layout: {
104
+ footerBg: "none",
105
+ },
106
+ Card: {
107
+ headerBg: "rgb(255,255,255)"
108
+ },
109
+ },
110
+ } },
111
+ react_1.default.createElement(react_intl_1.IntlProvider, { locale: languageString, defaultLocale: "is", key: languageString, messages: locales_1.default[languageString] },
112
+ react_1.default.createElement(index_1.default, { customers: props.customers, language: languageString, mapiBaseUrl: props.mapiBaseUrl, rapiBaseUrl: props.rapiBaseUrl, rapiApiKey: props.rapiApiKey, receiverRequirements: props.receiverRequirements, getReceiverRequirements: props.getReceiverRequirements, updateReceiverRequirementsProp: props.updateReceiverRequirementsProp,
113
+ // legalIdentifier={props.legalIdentifier}
114
+ uploadSizeLimit: props.uploadSizeLimit, attachmentTooltipText: props.attachmentTooltipText, referenceIdentifiersHelpText: props.referenceIdentifiersHelpText, referenceIdentifiersLabelText: props.referenceIdentifiersLabelText, dueDateMinimumOffset: props.dueDateMinimumOffset, defaultPaymentType: props.defaultPaymentType, supportEmail: props.supportEmail, welcomeModalTitle: props.welcomeModalTitle, welcomeModalParagraph: props.welcomeModalParagraph, welcomeModalImageUrl: props.welcomeModalImageUrl }))));
115
+ };
116
+ exports.default = CreateInvoice;