@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.
- package/lib/common/components/CommonTranslations.d.ts +102 -2
- package/lib/common/components/CommonTranslations.js +10 -1
- package/lib/common/components/attachments/Attachment.d.ts +6 -4
- package/lib/common/components/attachments/Attachment.js +26 -10
- package/lib/common/components/attachments/AttachmentModal.d.ts +21 -0
- package/lib/common/components/attachments/AttachmentModal.js +195 -0
- package/lib/common/components/attachments/index.d.ts +13 -17
- package/lib/common/components/attachments/index.js +189 -23
- package/lib/common/components/base-information/AccountingCost.d.ts +7 -5
- package/lib/common/components/base-information/AccountingCost.js +32 -11
- package/lib/common/components/base-information/OrderReference.d.ts +6 -4
- package/lib/common/components/base-information/OrderReference.js +31 -14
- package/lib/common/components/base-information/ProjectReference.d.ts +9 -5
- package/lib/common/components/base-information/ProjectReference.js +8 -6
- package/lib/common/components/base-information/ReferenceIdentifiers.d.ts +32 -5
- package/lib/common/components/base-information/ReferenceIdentifiers.js +126 -83
- package/lib/common/components/base-information/index.d.ts +51 -5
- package/lib/common/components/base-information/index.js +99 -154
- package/lib/common/components/billing-lines/BillingCalculations.d.ts +7 -5
- package/lib/common/components/billing-lines/BillingCalculations.js +79 -46
- package/lib/common/components/billing-lines/BillingLinePreview.d.ts +21 -0
- package/lib/common/components/billing-lines/BillingLinePreview.js +41 -0
- package/lib/common/components/billing-lines/BillingTaxSummary.d.ts +6 -4
- package/lib/common/components/billing-lines/BillingTaxSummary.js +39 -13
- package/lib/common/components/billing-lines/NewBillingLines.d.ts +120 -4
- package/lib/common/components/billing-lines/NewBillingLines.js +396 -72
- package/lib/common/components/billing-lines/index.d.ts +33 -6
- package/lib/common/components/billing-lines/index.js +71 -244
- package/lib/common/components/component-container/Content.d.ts +2 -2
- package/lib/common/components/component-container/index.d.ts +1 -0
- package/lib/common/components/component-container/index.js +1 -1
- package/lib/common/components/customer/CostCenter.d.ts +6 -4
- package/lib/common/components/customer/CostCenter.js +25 -9
- package/lib/common/components/customer/CustomerContactName.d.ts +6 -4
- package/lib/common/components/customer/CustomerContactName.js +24 -8
- package/lib/common/components/customer/hardCoddedCustomer.js +19 -3
- package/lib/common/components/customer/index.d.ts +11 -5
- package/lib/common/components/customer/index.js +97 -42
- package/lib/common/components/date-picker/index.d.ts +21 -0
- package/lib/common/components/date-picker/index.js +23 -0
- package/lib/common/components/delivery-location/index.d.ts +6 -4
- package/lib/common/components/delivery-location/index.js +20 -4
- package/lib/common/components/editable-cell/index.js +2 -2
- package/lib/common/components/editable-row/index.d.ts +1 -1
- package/lib/common/components/editable-row/index.js +24 -7
- package/lib/common/components/form-item/index.d.ts +13 -6
- package/lib/common/components/form-item/index.js +16 -20
- package/lib/common/components/index.d.ts +10 -0
- package/lib/common/components/index.js +30 -8
- package/lib/common/components/input/index.d.ts +23 -0
- package/lib/common/components/input/index.js +37 -0
- package/lib/common/components/invoice/index.d.ts +40 -0
- package/lib/common/components/invoice/index.js +52 -0
- package/lib/common/components/invoice-preview/InvoicePreviewHeader.d.ts +12 -0
- package/lib/common/components/invoice-preview/InvoicePreviewHeader.js +105 -0
- package/lib/common/components/invoice-preview/index.d.ts +16 -0
- package/lib/common/components/invoice-preview/index.js +393 -0
- package/lib/common/components/locale-intl/index.d.ts +0 -10
- package/lib/common/components/locale-intl/index.js +50 -42
- package/lib/common/components/payment-method/index.d.ts +69 -6
- package/lib/common/components/payment-method/index.js +145 -57
- package/lib/common/components/payment-method/paymentMethodForConversion.js +3 -1
- package/lib/common/components/submit-confirmation/SubmitConfirmationSVG.d.ts +3 -0
- package/lib/common/components/submit-confirmation/SubmitConfirmationSVG.js +17 -0
- package/lib/common/components/submit-confirmation/index.d.ts +8 -0
- package/lib/common/components/submit-confirmation/index.js +34 -0
- package/lib/common/components/supplier/CityAutofill.d.ts +18 -0
- package/lib/common/components/supplier/CityAutofill.js +159 -0
- package/lib/common/components/supplier/index.d.ts +79 -5
- package/lib/common/components/supplier/index.js +195 -103
- package/lib/common/components/tooltip/index.d.ts +7 -0
- package/lib/common/components/tooltip/index.js +15 -0
- package/lib/common/components/welcome-modal/index.d.ts +15 -0
- package/lib/common/components/welcome-modal/index.js +26 -0
- package/lib/common/consts/formLayout.js +4 -3
- package/lib/common/consts/validationRules.d.ts +1 -1
- package/lib/common/consts/validationRules.js +6 -0
- package/lib/common/enums/index.js +5 -1
- package/lib/common/style/index.css +18 -0
- package/lib/common/types/BillingLineMetadataOverride.d.ts +2 -0
- package/lib/common/types/CommonProps.d.ts +15 -1
- package/lib/common/types/DiscountType.d.ts +1 -0
- package/lib/common/types/DiscountType.js +2 -0
- package/lib/common/types/ReceiverRequirements.d.ts +1 -1
- package/lib/common/types/ReceiverRequirements.js +1 -0
- package/lib/common/types/index.js +15 -0
- package/lib/create-invoice/IntlLoader.d.ts +0 -6
- package/lib/create-invoice/IntlLoader.js +78 -13
- package/lib/create-invoice/index.d.ts +65 -4
- package/lib/create-invoice/index.js +437 -181
- package/lib/enums.d.ts +2 -3
- package/lib/enums.js +1 -0
- package/lib/index.js +22 -6
- package/lib/translations/locales/en.json +181 -0
- package/lib/translations/locales/is.json +135 -116
- package/lib/translations/locales.d.ts +360 -161
- package/lib/translations/locales.js +3 -2
- package/lib/utils/ApiUtility.d.ts +4 -4
- package/lib/utils/ApiUtility.js +13 -10
- package/lib/utils/BillingLineUtility.d.ts +16 -5
- package/lib/utils/BillingLineUtility.js +65 -26
- package/lib/utils/ConversionUtility.js +15 -7
- package/lib/utils/FileUploadUtility.d.ts +4 -2
- package/lib/utils/FileUploadUtility.js +28 -9
- package/lib/utils/IntlUtility.d.ts +3 -2
- package/lib/utils/IntlUtility.js +2 -1
- package/lib/utils/LocationUtility.d.ts +1 -0
- package/lib/utils/LocationUtility.js +81 -0
- package/lib/utils/ReferenceIdentifierUtility.js +2 -1
- package/lib/utils/RequirementsUtility.d.ts +9 -7
- package/lib/utils/RequirementsUtility.js +46 -22
- package/lib/utils/index.js +4 -3
- package/package.json +36 -18
- 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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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
|
-
|
|
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:
|
|
11
|
+
exports.default = { en: en_json_1.default, is: is_json_1.default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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
|
|
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 };
|
package/lib/utils/ApiUtility.js
CHANGED
|
@@ -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 "
|
|
37
|
-
return axios_1.default.post(mapiBaseUrl
|
|
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 "
|
|
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
|
|
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 "
|
|
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 "
|
|
91
|
+
Authorization: "Bearer ".concat(window.btoa(apiKey)),
|
|
91
92
|
"Content-Type": "application/octet-stream"
|
|
92
93
|
} });
|
|
93
94
|
return options;
|
|
94
95
|
};
|
|
95
|
-
|
|
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;
|