@unimaze/billing 0.20.16 → 0.21.0

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 (114) hide show
  1. package/lib/common/components/CommonTranslations.d.ts +102 -2
  2. package/lib/common/components/CommonTranslations.js +10 -1
  3. package/lib/common/components/attachments/Attachment.d.ts +6 -4
  4. package/lib/common/components/attachments/Attachment.js +26 -10
  5. package/lib/common/components/attachments/AttachmentModal.d.ts +21 -0
  6. package/lib/common/components/attachments/AttachmentModal.js +195 -0
  7. package/lib/common/components/attachments/index.d.ts +13 -17
  8. package/lib/common/components/attachments/index.js +189 -23
  9. package/lib/common/components/base-information/AccountingCost.d.ts +7 -5
  10. package/lib/common/components/base-information/AccountingCost.js +32 -11
  11. package/lib/common/components/base-information/OrderReference.d.ts +6 -4
  12. package/lib/common/components/base-information/OrderReference.js +31 -14
  13. package/lib/common/components/base-information/ProjectReference.d.ts +9 -5
  14. package/lib/common/components/base-information/ProjectReference.js +8 -6
  15. package/lib/common/components/base-information/ReferenceIdentifiers.d.ts +32 -5
  16. package/lib/common/components/base-information/ReferenceIdentifiers.js +126 -83
  17. package/lib/common/components/base-information/index.d.ts +51 -5
  18. package/lib/common/components/base-information/index.js +99 -154
  19. package/lib/common/components/billing-lines/BillingCalculations.d.ts +7 -5
  20. package/lib/common/components/billing-lines/BillingCalculations.js +79 -46
  21. package/lib/common/components/billing-lines/BillingLinePreview.d.ts +21 -0
  22. package/lib/common/components/billing-lines/BillingLinePreview.js +41 -0
  23. package/lib/common/components/billing-lines/BillingTaxSummary.d.ts +6 -4
  24. package/lib/common/components/billing-lines/BillingTaxSummary.js +39 -13
  25. package/lib/common/components/billing-lines/NewBillingLines.d.ts +120 -4
  26. package/lib/common/components/billing-lines/NewBillingLines.js +396 -72
  27. package/lib/common/components/billing-lines/index.d.ts +33 -6
  28. package/lib/common/components/billing-lines/index.js +71 -244
  29. package/lib/common/components/component-container/Content.d.ts +2 -2
  30. package/lib/common/components/component-container/index.d.ts +1 -0
  31. package/lib/common/components/component-container/index.js +1 -1
  32. package/lib/common/components/customer/CostCenter.d.ts +6 -4
  33. package/lib/common/components/customer/CostCenter.js +25 -9
  34. package/lib/common/components/customer/CustomerContactName.d.ts +6 -4
  35. package/lib/common/components/customer/CustomerContactName.js +24 -8
  36. package/lib/common/components/customer/hardCoddedCustomer.js +19 -3
  37. package/lib/common/components/customer/index.d.ts +11 -5
  38. package/lib/common/components/customer/index.js +97 -42
  39. package/lib/common/components/date-picker/index.d.ts +21 -0
  40. package/lib/common/components/date-picker/index.js +23 -0
  41. package/lib/common/components/delivery-location/index.d.ts +6 -4
  42. package/lib/common/components/delivery-location/index.js +20 -4
  43. package/lib/common/components/editable-cell/index.js +2 -2
  44. package/lib/common/components/editable-row/index.d.ts +1 -1
  45. package/lib/common/components/editable-row/index.js +24 -7
  46. package/lib/common/components/form-item/index.d.ts +13 -6
  47. package/lib/common/components/form-item/index.js +16 -20
  48. package/lib/common/components/index.d.ts +10 -0
  49. package/lib/common/components/index.js +30 -8
  50. package/lib/common/components/input/index.d.ts +23 -0
  51. package/lib/common/components/input/index.js +37 -0
  52. package/lib/common/components/invoice/index.d.ts +40 -0
  53. package/lib/common/components/invoice/index.js +52 -0
  54. package/lib/common/components/invoice-preview/InvoicePreviewHeader.d.ts +12 -0
  55. package/lib/common/components/invoice-preview/InvoicePreviewHeader.js +105 -0
  56. package/lib/common/components/invoice-preview/index.d.ts +16 -0
  57. package/lib/common/components/invoice-preview/index.js +393 -0
  58. package/lib/common/components/locale-intl/index.d.ts +0 -10
  59. package/lib/common/components/locale-intl/index.js +50 -42
  60. package/lib/common/components/payment-method/index.d.ts +69 -6
  61. package/lib/common/components/payment-method/index.js +145 -57
  62. package/lib/common/components/payment-method/paymentMethodForConversion.js +3 -1
  63. package/lib/common/components/submit-confirmation/SubmitConfirmationSVG.d.ts +3 -0
  64. package/lib/common/components/submit-confirmation/SubmitConfirmationSVG.js +17 -0
  65. package/lib/common/components/submit-confirmation/index.d.ts +8 -0
  66. package/lib/common/components/submit-confirmation/index.js +34 -0
  67. package/lib/common/components/supplier/CityAutofill.d.ts +18 -0
  68. package/lib/common/components/supplier/CityAutofill.js +159 -0
  69. package/lib/common/components/supplier/index.d.ts +79 -5
  70. package/lib/common/components/supplier/index.js +195 -103
  71. package/lib/common/components/tooltip/index.d.ts +7 -0
  72. package/lib/common/components/tooltip/index.js +15 -0
  73. package/lib/common/components/welcome-modal/index.d.ts +15 -0
  74. package/lib/common/components/welcome-modal/index.js +26 -0
  75. package/lib/common/consts/formLayout.js +4 -3
  76. package/lib/common/consts/validationRules.d.ts +1 -1
  77. package/lib/common/consts/validationRules.js +6 -0
  78. package/lib/common/enums/index.js +5 -1
  79. package/lib/common/style/index.css +18 -0
  80. package/lib/common/types/BillingLineMetadataOverride.d.ts +2 -0
  81. package/lib/common/types/CommonProps.d.ts +15 -1
  82. package/lib/common/types/DiscountType.d.ts +1 -0
  83. package/lib/common/types/DiscountType.js +2 -0
  84. package/lib/common/types/ReceiverRequirements.d.ts +1 -1
  85. package/lib/common/types/ReceiverRequirements.js +1 -0
  86. package/lib/common/types/index.js +15 -0
  87. package/lib/create-invoice/IntlLoader.d.ts +0 -6
  88. package/lib/create-invoice/IntlLoader.js +78 -13
  89. package/lib/create-invoice/index.d.ts +65 -4
  90. package/lib/create-invoice/index.js +437 -181
  91. package/lib/enums.d.ts +2 -3
  92. package/lib/enums.js +1 -0
  93. package/lib/index.js +22 -6
  94. package/lib/translations/locales/en.json +181 -0
  95. package/lib/translations/locales/is.json +135 -116
  96. package/lib/translations/locales.d.ts +360 -161
  97. package/lib/translations/locales.js +3 -2
  98. package/lib/utils/ApiUtility.d.ts +4 -4
  99. package/lib/utils/ApiUtility.js +13 -10
  100. package/lib/utils/BillingLineUtility.d.ts +16 -5
  101. package/lib/utils/BillingLineUtility.js +65 -26
  102. package/lib/utils/ConversionUtility.js +15 -7
  103. package/lib/utils/FileUploadUtility.d.ts +4 -2
  104. package/lib/utils/FileUploadUtility.js +28 -9
  105. package/lib/utils/IntlUtility.d.ts +3 -2
  106. package/lib/utils/IntlUtility.js +2 -1
  107. package/lib/utils/LocationUtility.d.ts +1 -0
  108. package/lib/utils/LocationUtility.js +81 -0
  109. package/lib/utils/ReferenceIdentifierUtility.js +2 -1
  110. package/lib/utils/RequirementsUtility.d.ts +9 -7
  111. package/lib/utils/RequirementsUtility.js +46 -22
  112. package/lib/utils/index.js +4 -3
  113. package/package.json +36 -18
  114. package/lib/style/index.css +0 -51
@@ -1,166 +1,365 @@
1
1
  declare const _default: {
2
- en: {};
2
+ en: {
3
+ attachment_addAttachmentButton_title: string;
4
+ attachment_error_fileFailedToUpload: string;
5
+ attachment_error_fileTooLarge: string;
6
+ attachment_error_fileWrongType: string;
7
+ attachment_labels_Description: string;
8
+ attachment_labels_Description_requiredMessage: string;
9
+ attachment_labels_File: string;
10
+ attachment_labels_Reference: string;
11
+ attachment_labels_Reference_requiredMessage: string;
12
+ attachment_labels_descriptionErrorMsg: string;
13
+ attachment_labels_onUploadFileMsg: string;
14
+ attachment_labels_uploadFileMsg: string;
15
+ attachment_saveButton_title: string;
16
+ attachment_title: string;
17
+ attachment_tooltip_title: string;
18
+ baseInformation_accountingCostLabel: string;
19
+ baseInformation_accountingCostLabel_helpText: string;
20
+ baseInformation_buyerReferenceLabel: string;
21
+ baseInformation_buyerReferenceLabel_helpText: string;
22
+ baseInformation_costCenter: string;
23
+ baseInformation_dueDate: string;
24
+ baseInformation_dueDateErrorMsg: string;
25
+ baseInformation_dueDate_title: string;
26
+ baseInformation_invoiceNo: string;
27
+ baseInformation_issueDate: string;
28
+ baseInformation_issueDate_title: string;
29
+ baseInformation_notes: string;
30
+ baseInformation_orderReferenceLabel: string;
31
+ baseInformation_orderReferenceLabel_helpText: string;
32
+ baseInformation_projectReferenceLabel: string;
33
+ baseInformation_title: string;
34
+ billingCalculations_labels_AmountPayable: string;
35
+ billingCalculations_labels_RoundingAmount: string;
36
+ billingCalculations_labels_TaxAmountWithoutVat: string;
37
+ billingCalculations_labels_TotalAmountWithVat: string;
38
+ billingCalculations_labels_TotalVatAmount: string;
39
+ billingLines_button_addRow: string;
40
+ billingLines_currencyCode: string;
41
+ billingLines_currency_DKK: string;
42
+ billingLines_currency_DKK_short: string;
43
+ billingLines_currency_EUR: string;
44
+ billingLines_currency_EUR_short: string;
45
+ billingLines_currency_GBP: string;
46
+ billingLines_currency_GBP_short: string;
47
+ billingLines_currency_ISK: string;
48
+ billingLines_currency_ISK_short: string;
49
+ billingLines_currency_NOK: string;
50
+ billingLines_currency_NOK_short: string;
51
+ billingLines_currency_SEK: string;
52
+ billingLines_currency_SEK_short: string;
53
+ billingLines_currency_USD: string;
54
+ billingLines_currency_USD_short: string;
55
+ billingLines_discount: string;
56
+ billingLines_discount_helpText: string;
57
+ billingLines_itemNo: string;
58
+ billingLines_labels_addButton: string;
59
+ billingLines_lineAmount: string;
60
+ billingLines_name: string;
61
+ billingLines_placeholders_itemNo: string;
62
+ billingLines_placeholders_newItem: string;
63
+ billingLines_quantity: string;
64
+ billingLines_taxAmount: string;
65
+ billingLines_taxCategoryPercentage: string;
66
+ billingLines_taxCategoryType: string;
67
+ billingLines_taxCategoryType_title: string;
68
+ billingLines_title: string;
69
+ billingLines_tooltip_title: string;
70
+ billingLines_total: string;
71
+ billingLines_unitOfMeasure: string;
72
+ billingLines_unitPriceAmount: string;
73
+ billingTaxSummary_taxAmount: string;
74
+ billingTaxSummary_taxCategoryType_labels_Exempt: string;
75
+ billingTaxSummary_taxCategoryType_labels_OutsideTaxScope: string;
76
+ billingTaxSummary_taxCategoryType_labels_ReducedRated: string;
77
+ billingTaxSummary_taxCategoryType_labels_StandardRated: string;
78
+ billingTaxSummary_taxCategoryType_labels_ZeroRated: string;
79
+ billingTaxSummary_taxOverview: string;
80
+ billingTaxSummary_taxableAmount: string;
81
+ createInvoice_ErrorUploadedAttachmentMsg: string;
82
+ createInvoice_SendCopy: string;
83
+ createInvoice_SendCopyTooltip: string;
84
+ createInvoice_SendCopyTooltipDisabled: string;
85
+ createInvoice_Submit: string;
86
+ createInvoice_addDocumentLineMsg: string;
87
+ createInvoice_customerStepTitle: string;
88
+ createInvoice_invoiceStepTitle: string;
89
+ createInvoice_nextStep: string;
90
+ createInvoice_paymentStepTitle: string;
91
+ createInvoice_selectCustomerMsg: string;
92
+ createInvoice_successfullySubmittedInvoiceMsg: string;
93
+ createInvoice_successfullyUploadedAttachmentMsg: string;
94
+ createInvoice_supplierStepTitle: string;
95
+ customer_address_city: string;
96
+ customer_address_countryCode: string;
97
+ customer_address_streetNameAndNumber: string;
98
+ customer_address_zipPostalCode: string;
99
+ customer_contact_email: string;
100
+ customer_contact_name: string;
101
+ customer_identifier: string;
102
+ customer_name: string;
103
+ customer_selectTheCustomer: string;
104
+ customer_title: string;
105
+ deliveryLocation_city: string;
106
+ deliveryLocation_countryCode: string;
107
+ deliveryLocation_partyName: string;
108
+ deliveryLocation_postalZone: string;
109
+ deliveryLocation_streetNameAndNumber: string;
110
+ deliveryLocation_title: string;
111
+ formItem_required_errorMessage: string;
112
+ "invoicePreview.headerTitle": string;
113
+ invoicePreview_attachmentsTitle: string;
114
+ invoicePreview_billingLinesTitle: string;
115
+ invoicePreview_paymentInfoTitle: string;
116
+ missingRequiredData: string;
117
+ paymentMethod_label: string;
118
+ paymentMethod_labels_domesticTransfer_accountNo: string;
119
+ paymentMethod_labels_domesticTransfer_accountType: string;
120
+ paymentMethod_labels_domesticTransfer_bankNo: string;
121
+ paymentMethod_labels_domesticTransfer_paymentReference: string;
122
+ paymentMethod_labels_icelandicClaim_bankNo: string;
123
+ paymentMethod_labels_icelandicClaim_claimNo: string;
124
+ paymentMethod_labels_methods_domesticClaim: string;
125
+ paymentMethod_labels_methods_domesticTransfer: string;
126
+ paymentMethod_labels_methods_mutuallyAgreed: string;
127
+ paymentMethod_labels_methods_undefined: string;
128
+ paymentMethod_rules_Length: string;
129
+ paymentMethod_rules_number: string;
130
+ paymentMethod_title: string;
131
+ referenceIdentifiers_labels_AKG: string;
132
+ referenceIdentifiers_labels_ARR: string;
133
+ referenceIdentifiers_labels_LOC: string;
134
+ referenceIdentifiers_labels_addButton: string;
135
+ referenceIdentifiers_labels_referenceIdentifier: string;
136
+ referenceIdentifiers_labels_referenceIdentifier_title: string;
137
+ saveInformation_label: string;
138
+ submitConfirmation_footer_text: string;
139
+ submitConfirmation_text: string;
140
+ submitConfirmation_title: string;
141
+ supplier_address_city: string;
142
+ supplier_address_countryCode: string;
143
+ supplier_address_streetNameAndNumber: string;
144
+ supplier_address_zip_postalCode: string;
145
+ supplier_address_zip_postalZone: string;
146
+ supplier_contact_email: string;
147
+ supplier_contact_email_title: string;
148
+ supplier_contact_name: string;
149
+ supplier_contact_phoneNumber: string;
150
+ supplier_identifier: string;
151
+ supplier_name: string;
152
+ supplier_notValidEmail: string;
153
+ supplier_notVatRegistered: string;
154
+ supplier_title: string;
155
+ supplier_vatNumber: string;
156
+ supplier_vatNumber_mandatory: string;
157
+ taxCategoryType_labels_Exempt: string;
158
+ taxCategoryType_labels_ExemptEuropeanEconomicArea: string;
159
+ taxCategoryType_labels_FreeExportTaxNotCharged: string;
160
+ taxCategoryType_labels_OutsideTaxScope: string;
161
+ taxCategoryType_labels_ReducedRated: string;
162
+ taxCategoryType_labels_ReverseCharged: string;
163
+ taxCategoryType_labels_StandardRated: string;
164
+ taxCategoryType_labels_ZeroRated: string;
165
+ unitOfMeasure_labels_CubicMetre: string;
166
+ unitOfMeasure_labels_Day: string;
167
+ unitOfMeasure_labels_Hour: string;
168
+ unitOfMeasure_labels_KiloWattHour: string;
169
+ unitOfMeasure_labels_Kilogram: string;
170
+ unitOfMeasure_labels_Kilometre: string;
171
+ unitOfMeasure_labels_Litre: string;
172
+ unitOfMeasure_labels_Metre: string;
173
+ unitOfMeasure_labels_Month: string;
174
+ unitOfMeasure_labels_One: string;
175
+ unitOfMeasure_labels_Package: string;
176
+ unitOfMeasure_labels_Piece: string;
177
+ unitOfMeasure_labels_SquareMetre: string;
178
+ unitOfMeasure_labels_Tonne: string;
179
+ unitOfMeasure_labels_Year: string;
180
+ validationRule_kennitalaPattern: string;
181
+ welcomeModal_button_title: string;
182
+ };
3
183
  is: {
4
- "attachment_labels_Reference": string;
5
- "attachment_labels_Reference_requiredMessage": string;
6
- "attachment_labels_Description": string;
7
- "attachment_labels_Description_requiredMessage": string;
8
- "attachment_labels_File": string;
9
- "attachment_title": string;
10
- "attachment_tooltip_title": string;
11
- "attachment_error_fileTooLarge": string;
12
- "attachment_error_fileWrongType": string;
13
- "attachment_error_fileFailedToUpload": string;
14
- "baseInformation_title": string;
15
- "baseInformation_invoiceNo": string;
16
- "baseInformation_issueDate": string;
17
- "baseInformation_issueDate_title": string;
18
- "baseInformation_dueDate": string;
19
- "baseInformation_dueDate_title": string;
20
- "baseInformation_buyerReferenceLabel": string;
21
- "baseInformation_buyerReferenceLabel_helpText": string;
22
- "baseInformation_orderReferenceLabel": string;
23
- "baseInformation_orderReferenceLabel_helpText": string;
24
- "baseInformation_notes": string;
25
- "baseInformation_currencyCode": string;
26
- "baseInformation_customerContactName": string;
27
- "baseInformation_costCenter": string;
28
- "baseInformation_accountingCostLabel": string;
29
- "baseInformation_accountingCostLabel_helpText": string;
30
- "baseInformation_projectReferenceLabel": string;
31
- "billingCalculations_labels_TaxAmountWithoutVat": string;
32
- "billingCalculations_labels_TotalVatAmount": string;
33
- "billingCalculations_labels_TotalAmountWithVat": string;
34
- "billingCalculations_labels_RoundingAmount": string;
35
- "billingCalculations_labels_AmountPayable": string;
36
- "billingTaxSummary_taxOverview": string;
37
- "billingTaxSummary_taxableAmount": string;
38
- "billingTaxSummary_taxAmount": string;
39
- "billingTaxSummary_taxCategoryType_labels_StandardRated": string;
40
- "billingTaxSummary_taxCategoryType_labels_ReducedRated": string;
41
- "billingTaxSummary_taxCategoryType_labels_ZeroRated": string;
42
- "billingTaxSummary_taxCategoryType_labels_Exempt": string;
43
- "billingTaxSummary_taxCategoryType_labels_OutsideTaxScope": string;
44
- "billingLines_title": string;
45
- "billingLines_tooltip_title": string;
46
- "billingLines_itemNo": string;
47
- "billingLines_name": string;
48
- "billingLines_quantity": string;
49
- "billingLines_unitOfMeasure": string;
50
- "billingLines_unitPriceAmount": string;
51
- "billingLines_taxCategoryType": string;
52
- "billingLines_taxCategoryType_title": string;
53
- "billingLines_taxCategoryPercentage": string;
54
- "billingLines_discount": string;
55
- "billingLines_discount_helpText": string;
56
- "billingLines_lineAmount": string;
57
- "billingLines_taxAmount": string;
58
- "billingLines_button_addRow": string;
59
- "billingLines_placeholders_itemNo": string;
60
- "billingLines_placeholders_newItem": string;
61
- "deliveryLocation_title": string;
62
- "deliveryLocation_partyName": string;
63
- "deliveryLocation_streetNameAndNumber": string;
64
- "deliveryLocation_postalZone": string;
65
- "deliveryLocation_city": string;
66
- "deliveryLocation_countryCode": string;
67
- "formItem_required_errorMessage": string;
68
- "paymentMethod_title": string;
69
- "paymentMethod_label": string;
70
- "paymentMethod_labels_domesticTransfer_bankNo": string;
71
- "paymentMethod_labels_domesticTransfer_typeNo": string;
72
- "paymentMethod_labels_domesticTransfer_accountType": string;
73
- "paymentMethod_labels_domesticTransfer_accountNo": string;
74
- "paymentMethod_labels_domesticTransfer_paymentReference": string;
75
- "paymentMethod_labels_icelandicClaim_bankNo": string;
76
- "paymentMethod_labels_icelandicClaim_claimNo": string;
77
- "paymentMethod_labels_methods_undefined": string;
78
- "paymentMethod_labels_methods_mutuallyAgreed": string;
79
- "paymentMethod_labels_methods_domesticTransfer": string;
80
- "paymentMethod_labels_methods_domesticClaim": string;
81
- "paymentMethod_rules_number": string;
82
- "paymentMethod_rules_Length": string;
83
- "supplier_title": string;
84
- "supplier_name": string;
85
- "supplier_identifier": string;
86
- "supplier_vatNumber": string;
87
- "supplier_notVatRegistered": string;
88
- "supplier_vatNumber_mandatory": string;
89
- "supplier_address_streetNameAndNumber": string;
90
- "supplier_address_zip_postalCode": string;
91
- "supplier_address_city": string;
92
- "supplier_address_countryCode": string;
93
- "supplier_contact_email": string;
94
- "supplier_contact_email_title": string;
95
- "supplier_contact_name": string;
96
- "supplier_contact_phoneNumber": string;
97
- "supplier_notValidEmail": string;
98
- "validationRule_kennitalaPattern": string;
99
- "customer_title": string;
100
- "customer_selectTheCustomer": string;
101
- "customer_name": string;
102
- "customer_identifier": string;
103
- "customer_address_streetNameAndNumber": string;
104
- "customer_address_zip_postalCode": string;
105
- "customer_address_city": string;
106
- "customer_address_countryCode": string;
107
- "customer_contact_email": string;
108
- "customer_contact_name": string;
109
- "referenceIdentifiers_labels_addButton": string;
110
- "referenceIdentifiers_labels_referenceIdentifier": string;
111
- "referenceIdentifiers_labels_referenceIdentifier_title": string;
112
- "attachment_labels_uploadFileMsg": string;
113
- "attachment_labels_descriptionErrorMsg": string;
114
- "baseInformation_currency_ISK": string;
115
- "baseInformation_currency_DKK": string;
116
- "baseInformation_currency_NOK": string;
117
- "baseInformation_currency_SEK": string;
118
- "baseInformation_currency_EUR": string;
119
- "baseInformation_currency_USD": string;
120
- "baseInformation_currency_GBP": string;
121
- "baseInformation_dueDateErrorMsg": string;
122
- "taxCategoryType_labels_StandardRated": string;
123
- "taxCategoryType_labels_ReducedRated": string;
124
- "taxCategoryType_labels_ZeroRated": string;
125
- "taxCategoryType_labels_Exempt": string;
126
- "taxCategoryType_labels_OutsideTaxScope": string;
127
- "taxCategoryType_labels_ReverseCharged": string;
128
- "taxCategoryType_labels_FreeExportTaxNotCharged": string;
129
- "taxCategoryType_labels_ExemptEuropeanEconomicArea": string;
130
- "unitOfMeasure_labels_Piece": string;
131
- "unitOfMeasure_labels_Kilogram": string;
132
- "unitOfMeasure_labels_Month": string;
133
- "unitOfMeasure_labels_Package": string;
134
- "unitOfMeasure_labels_Year": string;
135
- "unitOfMeasure_labels_Day": string;
136
- "unitOfMeasure_labels_Hour": string;
137
- "unitOfMeasure_labels_Kilometre": string;
138
- "unitOfMeasure_labels_Metre": string;
139
- "unitOfMeasure_labels_Litre": string;
140
- "unitOfMeasure_labels_SquareMetre": string;
141
- "unitOfMeasure_labels_CubicMetre": string;
142
- "unitOfMeasure_labels_Tonne": string;
143
- "unitOfMeasure_labels_KiloWattHour": string;
144
- "unitOfMeasure_labels_One": string;
145
- "createInvoice_addDocumentLineMsg": string;
146
- "createInvoice_selectCustomerMsg": string;
147
- "createInvoice_successfullySubmittedInvoiceMsg": string;
148
- "createInvoice_successfullyUploadedAttachmentMsg": string;
149
- "createInvoice_ErrorUploadedAttachmentMsg": string;
150
- "createInvoice_Submit": string;
151
- "createInvoice_SendCopy": string;
152
- "createInvoice_SendCopyTooltip": string;
153
- "createInvoice_SendCopyTooltipDisabled": string;
154
- "billingLines_labels_addButton": string;
155
- "rulesMessages_name_required": string;
156
- "rulesMessages_unitOfMeasure_required": string;
157
- "rulesMessages_unitPriceAmount_required": string;
158
- "rulesMessages_unitPriceAmount_type": string;
159
- "rulesMessages_taxCategoryType_required": string;
160
- "rulesMessages_discountValue_pattern": string;
161
- "referenceIdentifiers_labels_AKY": string;
162
- "referenceIdentifiers_labels_ARR": string;
163
- "referenceIdentifiers_labels_LOC": string;
184
+ attachment_addAttachmentButton_title: string;
185
+ attachment_error_fileFailedToUpload: string;
186
+ attachment_error_fileTooLarge: string;
187
+ attachment_error_fileWrongType: string;
188
+ attachment_labels_Description: string;
189
+ attachment_labels_Description_requiredMessage: string;
190
+ attachment_labels_File: string;
191
+ attachment_labels_Reference: string;
192
+ attachment_labels_Reference_requiredMessage: string;
193
+ attachment_labels_descriptionErrorMsg: string;
194
+ attachment_labels_onUploadFileMsg: string;
195
+ attachment_labels_uploadFileMsg: string;
196
+ attachment_saveButton_title: string;
197
+ attachment_title: string;
198
+ attachment_tooltip_title: string;
199
+ baseInformation_accountingCostLabel: string;
200
+ baseInformation_accountingCostLabel_helpText: string;
201
+ baseInformation_buyerReferenceLabel: string;
202
+ baseInformation_buyerReferenceLabel_helpText: string;
203
+ baseInformation_costCenter: string;
204
+ baseInformation_dueDate: string;
205
+ baseInformation_dueDateErrorMsg: string;
206
+ baseInformation_dueDate_title: string;
207
+ baseInformation_invoiceNo: string;
208
+ baseInformation_issueDate: string;
209
+ baseInformation_issueDate_title: string;
210
+ baseInformation_notes: string;
211
+ baseInformation_orderReferenceLabel: string;
212
+ baseInformation_orderReferenceLabel_helpText: string;
213
+ baseInformation_projectReferenceLabel: string;
214
+ baseInformation_title: string;
215
+ billingCalculations_labels_AmountPayable: string;
216
+ billingCalculations_labels_RoundingAmount: string;
217
+ billingCalculations_labels_TaxAmountWithoutVat: string;
218
+ billingCalculations_labels_TotalAmountWithVat: string;
219
+ billingCalculations_labels_TotalVatAmount: string;
220
+ billingLines_button_addRow: string;
221
+ billingLines_currencyCode: string;
222
+ billingLines_currency_DKK: string;
223
+ billingLines_currency_DKK_short: string;
224
+ billingLines_currency_EUR: string;
225
+ billingLines_currency_EUR_short: string;
226
+ billingLines_currency_GBP: string;
227
+ billingLines_currency_GBP_short: string;
228
+ billingLines_currency_ISK: string;
229
+ billingLines_currency_ISK_short: string;
230
+ billingLines_currency_NOK: string;
231
+ billingLines_currency_NOK_short: string;
232
+ billingLines_currency_SEK: string;
233
+ billingLines_currency_SEK_short: string;
234
+ billingLines_currency_USD: string;
235
+ billingLines_currency_USD_short: string;
236
+ billingLines_discount: string;
237
+ billingLines_discount_helpText: string;
238
+ billingLines_itemNo: string;
239
+ billingLines_labels_addButton: string;
240
+ billingLines_lineAmount: string;
241
+ billingLines_name: string;
242
+ billingLines_placeholders_itemNo: string;
243
+ billingLines_placeholders_newItem: string;
244
+ billingLines_quantity: string;
245
+ billingLines_taxAmount: string;
246
+ billingLines_taxCategoryPercentage: string;
247
+ billingLines_taxCategoryType: string;
248
+ billingLines_taxCategoryType_title: string;
249
+ billingLines_title: string;
250
+ billingLines_tooltip_title: string;
251
+ billingLines_total: string;
252
+ billingLines_unitOfMeasure: string;
253
+ billingLines_unitPriceAmount: string;
254
+ billingTaxSummary_taxAmount: string;
255
+ billingTaxSummary_taxCategoryType_labels_Exempt: string;
256
+ billingTaxSummary_taxCategoryType_labels_OutsideTaxScope: string;
257
+ billingTaxSummary_taxCategoryType_labels_ReducedRated: string;
258
+ billingTaxSummary_taxCategoryType_labels_StandardRated: string;
259
+ billingTaxSummary_taxCategoryType_labels_ZeroRated: string;
260
+ billingTaxSummary_taxOverview: string;
261
+ billingTaxSummary_taxableAmount: string;
262
+ createInvoice_ErrorUploadedAttachmentMsg: string;
263
+ createInvoice_SendCopy: string;
264
+ createInvoice_SendCopyTooltip: string;
265
+ createInvoice_SendCopyTooltipDisabled: string;
266
+ createInvoice_Submit: string;
267
+ createInvoice_addDocumentLineMsg: string;
268
+ createInvoice_customerStepTitle: string;
269
+ createInvoice_invoiceStepTitle: string;
270
+ createInvoice_nextStep: string;
271
+ createInvoice_paymentStepTitle: string;
272
+ createInvoice_selectCustomerMsg: string;
273
+ createInvoice_successfullySubmittedInvoiceMsg: string;
274
+ createInvoice_successfullyUploadedAttachmentMsg: string;
275
+ createInvoice_supplierStepTitle: string;
276
+ customer_address_city: string;
277
+ customer_address_countryCode: string;
278
+ customer_address_streetNameAndNumber: string;
279
+ customer_address_zipPostalCode: string;
280
+ customer_contact_email: string;
281
+ customer_contact_name: string;
282
+ customer_identifier: string;
283
+ customer_name: string;
284
+ customer_selectTheCustomer: string;
285
+ customer_title: string;
286
+ deliveryLocation_city: string;
287
+ deliveryLocation_countryCode: string;
288
+ deliveryLocation_partyName: string;
289
+ deliveryLocation_postalZone: string;
290
+ deliveryLocation_streetNameAndNumber: string;
291
+ deliveryLocation_title: string;
292
+ formItem_required_errorMessage: string;
293
+ "invoicePreview.headerTitle": string;
294
+ invoicePreview_attachmentsTitle: string;
295
+ invoicePreview_billingLinesTitle: string;
296
+ invoicePreview_paymentInfoTitle: string;
297
+ missingRequiredData: string;
298
+ paymentMethod_label: string;
299
+ paymentMethod_labels_domesticTransfer_accountNo: string;
300
+ paymentMethod_labels_domesticTransfer_accountType: string;
301
+ paymentMethod_labels_domesticTransfer_bankNo: string;
302
+ paymentMethod_labels_domesticTransfer_paymentReference: string;
303
+ paymentMethod_labels_icelandicClaim_bankNo: string;
304
+ paymentMethod_labels_icelandicClaim_claimNo: string;
305
+ paymentMethod_labels_methods_domesticClaim: string;
306
+ paymentMethod_labels_methods_domesticTransfer: string;
307
+ paymentMethod_labels_methods_mutuallyAgreed: string;
308
+ paymentMethod_labels_methods_undefined: string;
309
+ paymentMethod_rules_Length: string;
310
+ paymentMethod_rules_number: string;
311
+ paymentMethod_title: string;
312
+ referenceIdentifiers_labels_AKG: string;
313
+ referenceIdentifiers_labels_ARR: string;
314
+ referenceIdentifiers_labels_LOC: string;
315
+ referenceIdentifiers_labels_addButton: string;
316
+ referenceIdentifiers_labels_referenceIdentifier: string;
317
+ referenceIdentifiers_labels_referenceIdentifier_title: string;
318
+ saveInformation_label: string;
319
+ submitConfirmation_footer_text: string;
320
+ submitConfirmation_text: string;
321
+ submitConfirmation_title: string;
322
+ supplier_address_city: string;
323
+ supplier_address_countryCode: string;
324
+ supplier_address_streetNameAndNumber: string;
325
+ supplier_address_zip_postalCode: string;
326
+ supplier_address_zip_postalZone: string;
327
+ supplier_contact_email: string;
328
+ supplier_contact_email_title: string;
329
+ supplier_contact_name: string;
330
+ supplier_contact_phoneNumber: string;
331
+ supplier_identifier: string;
332
+ supplier_name: string;
333
+ supplier_notValidEmail: string;
334
+ supplier_notVatRegistered: string;
335
+ supplier_title: string;
336
+ supplier_vatNumber: string;
337
+ supplier_vatNumber_mandatory: string;
338
+ taxCategoryType_labels_Exempt: string;
339
+ taxCategoryType_labels_ExemptEuropeanEconomicArea: string;
340
+ taxCategoryType_labels_FreeExportTaxNotCharged: string;
341
+ taxCategoryType_labels_OutsideTaxScope: string;
342
+ taxCategoryType_labels_ReducedRated: string;
343
+ taxCategoryType_labels_ReverseCharged: string;
344
+ taxCategoryType_labels_StandardRated: string;
345
+ taxCategoryType_labels_ZeroRated: string;
346
+ unitOfMeasure_labels_CubicMetre: string;
347
+ unitOfMeasure_labels_Day: string;
348
+ unitOfMeasure_labels_Hour: string;
349
+ unitOfMeasure_labels_KiloWattHour: string;
350
+ unitOfMeasure_labels_Kilogram: string;
351
+ unitOfMeasure_labels_Kilometre: string;
352
+ unitOfMeasure_labels_Litre: string;
353
+ unitOfMeasure_labels_Metre: string;
354
+ unitOfMeasure_labels_Month: string;
355
+ unitOfMeasure_labels_One: string;
356
+ unitOfMeasure_labels_Package: string;
357
+ unitOfMeasure_labels_Piece: string;
358
+ unitOfMeasure_labels_SquareMetre: string;
359
+ unitOfMeasure_labels_Tonne: string;
360
+ unitOfMeasure_labels_Year: string;
361
+ validationRule_kennitalaPattern: string;
362
+ welcomeModal_button_title: string;
164
363
  };
165
364
  };
166
365
  export default _default;
@@ -4,7 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  var is_json_1 = __importDefault(require("./locales/is.json"));
7
+ var en_json_1 = __importDefault(require("./locales/en.json"));
7
8
  // English is the default message in each of our source files, so no need for a separate en.json file
8
- var en = {};
9
+ // const en = {};
9
10
  // If we add more than just spanish, just import the files and export it below: export default { en, es, de }
10
- exports.default = { en: en, is: is_json_1.default };
11
+ exports.default = { en: en_json_1.default, is: is_json_1.default };
@@ -1,4 +1,4 @@
1
- import { mapi } from "@unimaze/api-clients";
1
+ import { MessageOutput } from "@unimaze/api-clients/lib/mapi";
2
2
  import { InvoiceMetadataInput, TransactionProcessingMode } from "@unimaze/api-clients/lib/mapi/api";
3
3
  import { AxiosPromise, CancelToken } from "axios";
4
4
  import { LanguageProp } from "../common/types/CommonProps";
@@ -16,8 +16,8 @@ interface AttachDocument {
16
16
  contentType: string;
17
17
  more: boolean;
18
18
  }
19
- declare const submitDocument: (data: any, attachDocument: AttachDocument, mapiBaseUrl: string, apiKey?: string | undefined) => AxiosPromise<mapi.MessageOutput>;
19
+ declare const submitDocument: (data: any, attachDocument: AttachDocument, mapiBaseUrl: string, apiKey?: string) => AxiosPromise<MessageOutput>;
20
20
  declare const submitDocumentFetch: (data: any, attachDocument: AttachDocument, mapiBaseUrl: string, apiKey: string) => Promise<Response>;
21
- declare const submitInvoice: (createSubmitInvoice: CreateSubmitInvoice, mapiBaseUrl: string, apiKey: string, callName?: string | undefined, language?: LanguageProp) => AxiosPromise<mapi.MessageOutput>;
22
- export declare const getCancelToken: (callName: string) => CancelToken;
21
+ declare const submitInvoice: (createSubmitInvoice: CreateSubmitInvoice, mapiBaseUrl: string, apiKey: string, callName?: string, language?: LanguageProp) => AxiosPromise<MessageOutput>;
22
+ export declare const getCancelToken: (callName: string, showMessage?: boolean) => CancelToken;
23
23
  export { submitInvoice, CreateSubmitInvoice, submitDocument, AttachDocument, submitDocumentFetch };
@@ -14,6 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.submitDocumentFetch = exports.submitDocument = exports.submitInvoice = exports.getCancelToken = void 0;
17
18
  var api_clients_1 = require("@unimaze/api-clients");
18
19
  var mapi_1 = require("@unimaze/api-clients/lib/mapi");
19
20
  var axios_1 = __importDefault(require("axios"));
@@ -33,8 +34,8 @@ var initialiseMessageApi = function (mapiBaseUrl) {
33
34
  };
34
35
  var submitDocument = function (data, attachDocument, mapiBaseUrl, apiKey) {
35
36
  var messageId = attachDocument.messageId, name = attachDocument.name, contentType = attachDocument.contentType, more = attachDocument.more;
36
- var headers = __assign({}, (apiKey && { Authorization: "Bearer " + window.btoa(apiKey) }), { "Content-Type": "application/octet-stream", "X-test": "test" });
37
- return axios_1.default.post(mapiBaseUrl + "/api/v1/messages/" + messageId + "/documents", data, {
37
+ var headers = __assign(__assign({}, (apiKey && { Authorization: "Bearer ".concat(window.btoa(apiKey)) })), { "Content-Type": "application/octet-stream", "X-test": "test" });
38
+ return axios_1.default.post("".concat(mapiBaseUrl, "/api/v1/messages/").concat(messageId, "/documents"), data, {
38
39
  params: {
39
40
  name: name,
40
41
  contentType: contentType,
@@ -60,11 +61,11 @@ exports.submitDocument = submitDocument;
60
61
  var submitDocumentFetch = function (data, attachDocument, mapiBaseUrl, apiKey) {
61
62
  var messageId = attachDocument.messageId, name = attachDocument.name, contentType = attachDocument.contentType, more = attachDocument.more;
62
63
  var headers = {
63
- Authorization: "Bearer " + window.btoa(apiKey),
64
+ Authorization: "Bearer ".concat(window.btoa(apiKey)),
64
65
  "Content-Type": "application/octet-stream",
65
66
  "X-test": "test",
66
67
  };
67
- var responsePromise = fetch(mapiBaseUrl + "/api/v1/messages/" + messageId + "/documents?Name=" + name + "&ContentType=" + contentType + "&More=" + more, {
68
+ var responsePromise = fetch("".concat(mapiBaseUrl, "/api/v1/messages/").concat(messageId, "/documents?Name=").concat(name, "&ContentType=").concat(contentType, "&More=").concat(more), {
68
69
  method: "POST",
69
70
  headers: headers,
70
71
  body: data
@@ -81,22 +82,24 @@ exports.submitInvoice = submitInvoice;
81
82
  var createOptions = function (apiKey, callName, language) {
82
83
  return __assign({ headers: {
83
84
  "Accept-Language": language ? language : "en",
84
- Authorization: "Bearer " + window.btoa(apiKey)
85
- } }, (callName && { cancelToken: exports.getCancelToken(callName) }));
85
+ Authorization: "Bearer ".concat(window.btoa(apiKey))
86
+ } }, (callName && { cancelToken: (0, exports.getCancelToken)(callName) }));
86
87
  };
87
88
  var createOptionsData = function (data, apiKey, callName, language) {
88
- var options = __assign({}, (callName && { cancelToken: exports.getCancelToken(callName) }), { data: data, headers: {
89
+ var options = __assign(__assign({}, (callName && { cancelToken: (0, exports.getCancelToken)(callName) })), { data: data, headers: {
89
90
  "Accept-Language": language ? language : "en",
90
- Authorization: "Bearer " + window.btoa(apiKey),
91
+ Authorization: "Bearer ".concat(window.btoa(apiKey)),
91
92
  "Content-Type": "application/octet-stream"
92
93
  } });
93
94
  return options;
94
95
  };
95
- exports.getCancelToken = function (callName) {
96
+ var getCancelToken = function (callName, showMessage) {
97
+ if (showMessage === void 0) { showMessage = true; }
96
98
  var cancelTokenSource = window[callName];
97
- if (cancelTokenSource) {
99
+ if (cancelTokenSource && showMessage) {
98
100
  cancelTokenSource.cancel("only one call allowed. Canceling previous call");
99
101
  }
100
102
  window[callName] = axios_1.default.CancelToken.source();
101
103
  return window[callName].token;
102
104
  };
105
+ exports.getCancelToken = getCancelToken;