@stamhoofd/backend 2.118.0 → 2.119.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/package.json +10 -10
- package/src/audit-logs/OrderLogger.ts +1 -1
- package/src/email-replacements/getEmailReplacementsForPayment.ts +6 -6
- package/src/endpoints/admin/members/ChargeMembersEndpoint.ts +4 -4
- package/src/endpoints/admin/memberships/ChargeMembershipsEndpoint.ts +1 -1
- package/src/endpoints/admin/organizations/ChargeOrganizationsEndpoint.ts +1 -1
- package/src/endpoints/admin/organizations/GetOrganizationsEndpoint.ts +1 -1
- package/src/endpoints/admin/organizations/PatchOrganizationsEndpoint.ts +8 -8
- package/src/endpoints/admin/registrations/ChargeRegistrationsEndpoint.ts +1 -1
- package/src/endpoints/auth/CreateAdminEndpoint.ts +3 -3
- package/src/endpoints/auth/CreateTokenEndpoint.ts +10 -10
- package/src/endpoints/auth/ForgotPasswordEndpoint.ts +2 -2
- package/src/endpoints/auth/PatchUserEndpoint.ts +9 -9
- package/src/endpoints/auth/SignupEndpoint.ts +2 -2
- package/src/endpoints/auth/VerifyEmailEndpoint.ts +3 -3
- package/src/endpoints/global/audit-logs/GetAuditLogsEndpoint.ts +1 -1
- package/src/endpoints/global/billing/ActivatePackagesEndpoint.ts +3 -3
- package/src/endpoints/global/billing/DeactivatePackageEndpoint.ts +2 -2
- package/src/endpoints/global/email/CreateEmailEndpoint.ts +4 -4
- package/src/endpoints/global/email/GetEmailAddressEndpoint.ts +2 -2
- package/src/endpoints/global/email/GetEmailEndpoint.ts +1 -1
- package/src/endpoints/global/email/GetUserEmailsEndpoint.test.ts +1 -1
- package/src/endpoints/global/email/ManageEmailAddressEndpoint.ts +3 -3
- package/src/endpoints/global/email/PatchEmailEndpoint.test.ts +1 -1
- package/src/endpoints/global/email/PatchEmailEndpoint.ts +8 -8
- package/src/endpoints/global/email-recipients/GetEmailRecipientsEndpoint.ts +1 -1
- package/src/endpoints/global/email-recipients/RetryEmailRecipientEndpoint.ts +3 -3
- package/src/endpoints/global/email-recipients/helpers/validateEmailRecipientFilter.ts +2 -2
- package/src/endpoints/global/events/GetEventNotificationsEndpoint.ts +1 -1
- package/src/endpoints/global/events/PatchEventNotificationsEndpoint.ts +13 -13
- package/src/endpoints/global/events/PatchEventsEndpoint.ts +24 -24
- package/src/endpoints/global/files/ExportToExcelEndpoint.ts +1 -1
- package/src/endpoints/global/files/UploadFile.ts +1 -1
- package/src/endpoints/global/groups/GetGroupsEndpoint.ts +1 -1
- package/src/endpoints/global/members/GetMemberFamilyEndpoint.ts +2 -2
- package/src/endpoints/global/members/GetMembersEndpoint.ts +2 -2
- package/src/endpoints/global/members/PatchOrganizationMembersEndpoint.ts +52 -52
- package/src/endpoints/global/members/helpers/validateGroupFilter.ts +2 -2
- package/src/endpoints/global/organizations/CheckRegisterCodeEndpoint.ts +1 -1
- package/src/endpoints/global/organizations/CreateOrganizationEndpoint.ts +5 -5
- package/src/endpoints/global/platform/PatchPlatformEnpoint.ts +1 -1
- package/src/endpoints/global/registration/GetRegistrationsEndpoint.ts +2 -2
- package/src/endpoints/global/registration/PatchUserMembersEndpoint.ts +4 -4
- package/src/endpoints/global/registration/RegisterMembersEndpoint.ts +18 -18
- package/src/endpoints/global/registration-periods/GetRegistrationPeriodsEndpoint.ts +1 -1
- package/src/endpoints/global/registration-periods/PatchRegistrationPeriodsEndpoint.ts +5 -5
- package/src/endpoints/organization/dashboard/balance-items/GetBalanceItemEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/balance-items/GetBalanceItemsEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/balance-items/PatchBalanceItemsEndpoint.ts +11 -11
- package/src/endpoints/organization/dashboard/documents/GetDocumentTemplateXML.ts +1 -1
- package/src/endpoints/organization/dashboard/documents/PatchDocumentEndpoint.ts +5 -5
- package/src/endpoints/organization/dashboard/documents/PatchDocumentTemplatesEndpoint.ts +3 -3
- package/src/endpoints/organization/dashboard/email/CheckEmailBouncesEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/email-templates/PatchEmailTemplatesEndpoint.ts +3 -3
- package/src/endpoints/organization/dashboard/invoices/GetInvoicesEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/organization/PatchOrganizationEndpoint.ts +16 -16
- package/src/endpoints/organization/dashboard/organization/SetOrganizationDomainEndpoint.ts +3 -3
- package/src/endpoints/organization/dashboard/organization/SetUitpasClientCredentialsEndpoint.ts +5 -5
- package/src/endpoints/organization/dashboard/payments/GetPaymentsEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/payments/PatchPaymentsEndpoint.ts +13 -13
- package/src/endpoints/organization/dashboard/registration-periods/GetOrganizationRegistrationPeriodsEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/registration-periods/PatchOrganizationRegistrationPeriodsEndpoint.ts +26 -26
- package/src/endpoints/organization/dashboard/stripe/DeleteStripeAccountEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/stripe/GetStripeAccountLinkEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/stripe/GetStripeLoginLinkEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/stripe/UpdateStripeAccountEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/users/CreateApiUserEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/users/DeleteUserEndpoint.ts +2 -2
- package/src/endpoints/organization/dashboard/users/PatchApiUserEndpoint.ts +2 -2
- package/src/endpoints/organization/dashboard/webshops/CreateWebshopEndpoint.ts +4 -4
- package/src/endpoints/organization/dashboard/webshops/DeleteWebshopEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/webshops/PatchDiscountCodesEndpoint.ts +2 -2
- package/src/endpoints/organization/dashboard/webshops/PatchWebshopEndpoint.ts +9 -9
- package/src/endpoints/organization/dashboard/webshops/PatchWebshopTicketsEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/webshops/SearchUitpasEventsEndpoint.ts +1 -1
- package/src/endpoints/organization/shared/ExchangePaymentEndpoint.ts +1 -1
- package/src/endpoints/organization/shared/GetDocumentHtml.ts +2 -2
- package/src/endpoints/organization/shared/GetPaymentEndpoint.ts +1 -1
- package/src/endpoints/organization/webshops/CheckWebshopDiscountCodesEndpoint.ts +1 -1
- package/src/endpoints/organization/webshops/GetOrderByPaymentEndpoint.ts +2 -2
- package/src/endpoints/organization/webshops/GetOrderEndpoint.ts +1 -1
- package/src/endpoints/organization/webshops/GetTicketsEndpoint.ts +3 -3
- package/src/endpoints/organization/webshops/GetWebshopEndpoint.ts +1 -1
- package/src/endpoints/organization/webshops/PlaceOrderEndpoint.ts +8 -8
- package/src/endpoints/organization/webshops/RetrieveUitpasSocialTariffPriceEndpoint.ts +2 -2
- package/src/excel-loaders/balance-items.ts +15 -15
- package/src/excel-loaders/event-notifications.ts +11 -11
- package/src/excel-loaders/members.ts +41 -41
- package/src/excel-loaders/organizations.ts +23 -23
- package/src/excel-loaders/payments.ts +40 -40
- package/src/excel-loaders/receivable-balances.ts +21 -21
- package/src/excel-loaders/registrations.ts +26 -26
- package/src/helpers/AddressValidator.ts +6 -6
- package/src/helpers/AdminPermissionChecker.ts +4 -4
- package/src/helpers/AuthenticatedStructures.ts +9 -9
- package/src/helpers/BuckarooHelper.ts +1 -1
- package/src/helpers/Context.ts +4 -4
- package/src/helpers/FileCache.ts +7 -7
- package/src/helpers/ForwardHandler.ts +1 -1
- package/src/helpers/MembershipCharger.ts +2 -2
- package/src/helpers/SetupStepUpdater.ts +1 -1
- package/src/helpers/StripeHelper.ts +6 -6
- package/src/helpers/UitpasTokenRepository.ts +7 -7
- package/src/helpers/ViesHelper.ts +1 -1
- package/src/helpers/XlsxTransformerColumnHelper.ts +17 -17
- package/src/helpers/email-html-helpers.ts +10 -10
- package/src/helpers/updateMemberDetailsUitpasNumber.ts +1 -1
- package/src/seeds/1752848561-groups-registration-periods.ts +1 -1
- package/src/seeds/1755790070-fill-email-recipient-errors.ts +6 -6
- package/src/services/EventNotificationService.ts +3 -3
- package/src/services/FileSignService.ts +1 -1
- package/src/services/InvoiceService.ts +3 -3
- package/src/services/MemberNumberService.ts +3 -3
- package/src/services/PaymentService.ts +23 -23
- package/src/services/SSOService.ts +5 -5
- package/src/services/STPackageService.ts +2 -2
- package/src/services/uitpas/PassholderEndpoints.ts +2 -2
- package/src/services/uitpas/UitpasService.ts +5 -5
- package/src/services/uitpas/cancelTicketSales.ts +1 -1
- package/src/services/uitpas/checkPermissionsFor.ts +9 -9
- package/src/services/uitpas/getSocialTariffForEvent.ts +4 -4
- package/src/services/uitpas/getSocialTariffForUitpasNumbers.ts +5 -5
- package/src/services/uitpas/handleUitpasResponse.ts +1 -1
- package/src/services/uitpas/registerTicketSales.ts +4 -4
- package/src/services/uitpas/searchUitpasEvents.ts +3 -3
- package/src/services/uitpas/searchUitpasOrganizers.ts +3 -3
- package/src/sql-filters/base-registration-filter-compilers.ts +2 -2
- package/src/sql-filters/members.ts +6 -6
- package/src/sql-filters/orders.ts +1 -1
|
@@ -41,7 +41,7 @@ export class SearchUitpasEventsEndpoint extends Endpoint<Params, Query, Body, Re
|
|
|
41
41
|
throw new SimpleError({
|
|
42
42
|
code: 'no_uitpas_organizer_id',
|
|
43
43
|
message: `No UiTPAS organizer ID set for organization`,
|
|
44
|
-
human: $t(`
|
|
44
|
+
human: $t(`%1BH`),
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
const uitpasOrganizersResponse = await UitpasService.searchUitpasEvents(organization.id, organization.meta.uitpasOrganizerId, request.query.text);
|
|
@@ -31,7 +31,7 @@ export class GetDocumentHtml extends Endpoint<Params, Query, Body, ResponseBody>
|
|
|
31
31
|
if (!document || !(await Context.auth.canAccessDocument(document))) {
|
|
32
32
|
throw new SimpleError({
|
|
33
33
|
code: 'not_found',
|
|
34
|
-
message: $t('
|
|
34
|
+
message: $t('%EK'),
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -48,7 +48,7 @@ export class GetDocumentHtml extends Endpoint<Params, Query, Body, ResponseBody>
|
|
|
48
48
|
if (!html) {
|
|
49
49
|
throw new SimpleError({
|
|
50
50
|
code: 'failed_generating',
|
|
51
|
-
message: $t('
|
|
51
|
+
message: $t('%FV'),
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -33,7 +33,7 @@ export class GetOrderByPaymentEndpoint extends Endpoint<Params, Query, Body, Res
|
|
|
33
33
|
throw new SimpleError({
|
|
34
34
|
code: 'not_found',
|
|
35
35
|
message: 'Order not found',
|
|
36
|
-
human: $t(`
|
|
36
|
+
human: $t(`%FY`),
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
const [order] = await Order.where({ paymentId: payment.id }, { limit: 1 });
|
|
@@ -41,7 +41,7 @@ export class GetOrderByPaymentEndpoint extends Endpoint<Params, Query, Body, Res
|
|
|
41
41
|
throw new SimpleError({
|
|
42
42
|
code: 'not_found',
|
|
43
43
|
message: 'Order not found',
|
|
44
|
-
human: $t(`
|
|
44
|
+
human: $t(`%FY`),
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -55,7 +55,7 @@ export class GetTicketsEndpoint extends Endpoint<Params, Query, Body, ResponseBo
|
|
|
55
55
|
throw new SimpleError({
|
|
56
56
|
code: 'not_found',
|
|
57
57
|
message: 'Ticket not found',
|
|
58
|
-
human: $t(`
|
|
58
|
+
human: $t(`%FZ`),
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -67,7 +67,7 @@ export class GetTicketsEndpoint extends Endpoint<Params, Query, Body, ResponseBo
|
|
|
67
67
|
throw new SimpleError({
|
|
68
68
|
code: 'not_found',
|
|
69
69
|
message: 'Ticket not found',
|
|
70
|
-
human: $t(`
|
|
70
|
+
human: $t(`%FZ`),
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -79,7 +79,7 @@ export class GetTicketsEndpoint extends Endpoint<Params, Query, Body, ResponseBo
|
|
|
79
79
|
throw new SimpleError({
|
|
80
80
|
code: 'not_found',
|
|
81
81
|
message: 'Ticket not found',
|
|
82
|
-
human: $t(`
|
|
82
|
+
human: $t(`%FZ`),
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -66,7 +66,7 @@ export class PlaceOrderEndpoint extends Endpoint<Params, Query, Body, ResponseBo
|
|
|
66
66
|
throw new SimpleError({
|
|
67
67
|
code: 'not_found',
|
|
68
68
|
message: 'Webshop not found',
|
|
69
|
-
human: $t(`
|
|
69
|
+
human: $t(`%FX`),
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -77,7 +77,7 @@ export class PlaceOrderEndpoint extends Endpoint<Params, Query, Body, ResponseBo
|
|
|
77
77
|
throw new SimpleError({
|
|
78
78
|
code: 'not_authenticated',
|
|
79
79
|
message: 'Not authenticated',
|
|
80
|
-
human: $t(`
|
|
80
|
+
human: $t(`%w5`),
|
|
81
81
|
statusCode: 401,
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -98,7 +98,7 @@ export class PlaceOrderEndpoint extends Endpoint<Params, Query, Body, ResponseBo
|
|
|
98
98
|
throw new SimpleError({
|
|
99
99
|
code: 'too_many_emails_period',
|
|
100
100
|
message: 'Too many e-mails limited',
|
|
101
|
-
human: $t(`
|
|
101
|
+
human: $t(`%w6`),
|
|
102
102
|
field: 'recipients',
|
|
103
103
|
});
|
|
104
104
|
}
|
|
@@ -113,7 +113,7 @@ export class PlaceOrderEndpoint extends Endpoint<Params, Query, Body, ResponseBo
|
|
|
113
113
|
throw new SimpleError({
|
|
114
114
|
code: 'duplicate_codes',
|
|
115
115
|
message: 'Duplicate usage of discount codes',
|
|
116
|
-
human: $t(`
|
|
116
|
+
human: $t(`%w7`),
|
|
117
117
|
field: 'cart.discountCodes',
|
|
118
118
|
});
|
|
119
119
|
}
|
|
@@ -125,7 +125,7 @@ export class PlaceOrderEndpoint extends Endpoint<Params, Query, Body, ResponseBo
|
|
|
125
125
|
throw new SimpleError({
|
|
126
126
|
code: 'invalid_code',
|
|
127
127
|
message: 'Invalid discount code',
|
|
128
|
-
human: $t(`
|
|
128
|
+
human: $t(`%w8`),
|
|
129
129
|
field: 'cart.discountCodes',
|
|
130
130
|
});
|
|
131
131
|
}
|
|
@@ -301,14 +301,14 @@ export class PlaceOrderEndpoint extends Endpoint<Params, Query, Body, ResponseBo
|
|
|
301
301
|
if (!token) {
|
|
302
302
|
throw new SimpleError({
|
|
303
303
|
code: '',
|
|
304
|
-
message: $t(
|
|
304
|
+
message: $t(`%w3`, { method: PaymentMethodHelper.getName(payment.method) }),
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
307
|
const profileId = organization.privateMeta.mollieProfile?.id ?? await token.getProfileId(webshop.getHost());
|
|
308
308
|
if (!profileId) {
|
|
309
309
|
throw new SimpleError({
|
|
310
310
|
code: '',
|
|
311
|
-
message: $t(
|
|
311
|
+
message: $t(`%w4`, { method: PaymentMethodHelper.getName(payment.method) }),
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
314
|
const mollieClient = createMollieClient({ accessToken: await token.getAccessToken() });
|
|
@@ -356,7 +356,7 @@ export class PlaceOrderEndpoint extends Endpoint<Params, Query, Body, ResponseBo
|
|
|
356
356
|
if ((payment.status as any) === PaymentStatus.Failed) {
|
|
357
357
|
throw new SimpleError({
|
|
358
358
|
code: 'payment_failed',
|
|
359
|
-
message: $t(
|
|
359
|
+
message: $t(`%w3`, {
|
|
360
360
|
method: PaymentMethodHelper.getName(payment.method),
|
|
361
361
|
}),
|
|
362
362
|
});
|
|
@@ -65,7 +65,7 @@ export class RetrieveUitpasSocialTariffPricesEndpoint extends Endpoint<Params, Q
|
|
|
65
65
|
throw new SimpleError({
|
|
66
66
|
code: 'missing_reduced_price',
|
|
67
67
|
message: 'Reduced price must be provided for non-official flow.',
|
|
68
|
-
human: $t('
|
|
68
|
+
human: $t('%188'),
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
const reducedPrice = request.body.reducedPrice;
|
|
@@ -73,7 +73,7 @@ export class RetrieveUitpasSocialTariffPricesEndpoint extends Endpoint<Params, Q
|
|
|
73
73
|
throw new SimpleError({
|
|
74
74
|
code: 'missing_uitpas_numbers',
|
|
75
75
|
message: 'Uitpas numbers must be provided for non-official flow.',
|
|
76
|
-
human: $t('
|
|
76
|
+
human: $t('%189'),
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
await UitpasService.checkUitpasNumbers(request.body.uitpasNumbers); // Throws if invalid
|
|
@@ -17,7 +17,7 @@ ExportToExcelEndpoint.loaders.set(ExcelExportType.BalanceItems, {
|
|
|
17
17
|
sheets: [
|
|
18
18
|
{
|
|
19
19
|
id: 'balanceItems',
|
|
20
|
-
name: $t(`
|
|
20
|
+
name: $t(`%1LA`),
|
|
21
21
|
columns: [
|
|
22
22
|
...getBalanceItemColumns(),
|
|
23
23
|
],
|
|
@@ -29,7 +29,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<BalanceItemWithPayments>
|
|
|
29
29
|
return [
|
|
30
30
|
{
|
|
31
31
|
id: 'id',
|
|
32
|
-
name: $t(`
|
|
32
|
+
name: $t(`%d`),
|
|
33
33
|
width: 40,
|
|
34
34
|
getValue: (object: BalanceItemWithPayments) => ({
|
|
35
35
|
value: object.id,
|
|
@@ -42,7 +42,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<BalanceItemWithPayments>
|
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
id: 'type',
|
|
45
|
-
name: $t(`
|
|
45
|
+
name: $t(`%1B`),
|
|
46
46
|
width: 30,
|
|
47
47
|
getValue: (object: BalanceItemWithPayments) => ({
|
|
48
48
|
value: getBalanceItemTypeName(object.type),
|
|
@@ -50,7 +50,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<BalanceItemWithPayments>
|
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
id: 'category',
|
|
53
|
-
name: $t(`
|
|
53
|
+
name: $t(`%M2`),
|
|
54
54
|
width: 30,
|
|
55
55
|
getValue: (object: BalanceItemWithPayments) => {
|
|
56
56
|
return {
|
|
@@ -60,7 +60,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<BalanceItemWithPayments>
|
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
id: 'description',
|
|
63
|
-
name: $t(`
|
|
63
|
+
name: $t(`%6o`),
|
|
64
64
|
width: 40,
|
|
65
65
|
getValue: (object: BalanceItemWithPayments) => ({
|
|
66
66
|
value: object.description,
|
|
@@ -68,7 +68,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<BalanceItemWithPayments>
|
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
id: 'createdAt',
|
|
71
|
-
name: $t(`
|
|
71
|
+
name: $t(`%wV`),
|
|
72
72
|
width: 16,
|
|
73
73
|
getValue: (object: BalanceItemWithPayments) => ({
|
|
74
74
|
value: object.createdAt,
|
|
@@ -81,7 +81,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<BalanceItemWithPayments>
|
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
id: 'dueAt',
|
|
84
|
-
name: $t(`
|
|
84
|
+
name: $t(`%wW`),
|
|
85
85
|
width: 16,
|
|
86
86
|
getValue: (object: BalanceItemWithPayments) => ({
|
|
87
87
|
value: object.dueAt,
|
|
@@ -113,7 +113,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<BalanceItemWithPayments>
|
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
id: 'quantity',
|
|
116
|
-
name: $t(`
|
|
116
|
+
name: $t(`%M4`),
|
|
117
117
|
width: 20,
|
|
118
118
|
getValue: (object: BalanceItemWithPayments) => ({
|
|
119
119
|
value: object.quantity,
|
|
@@ -126,7 +126,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<BalanceItemWithPayments>
|
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
id: 'unitPrice',
|
|
129
|
-
name: $t(`
|
|
129
|
+
name: $t(`%6q`),
|
|
130
130
|
width: 20,
|
|
131
131
|
getValue: (object: BalanceItemWithPayments) => ({
|
|
132
132
|
value: object.unitPrice / 1_0000,
|
|
@@ -139,7 +139,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<BalanceItemWithPayments>
|
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
id: 'payablePriceWithVAT',
|
|
142
|
-
name: $t(`
|
|
142
|
+
name: $t(`%1IP`),
|
|
143
143
|
width: 20,
|
|
144
144
|
getValue: (object: BalanceItemWithPayments) => ({
|
|
145
145
|
value: object.payablePriceWithVAT / 1_0000,
|
|
@@ -153,7 +153,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<BalanceItemWithPayments>
|
|
|
153
153
|
|
|
154
154
|
{
|
|
155
155
|
id: 'priceOpen',
|
|
156
|
-
name: $t(`
|
|
156
|
+
name: $t(`%1LB`),
|
|
157
157
|
width: 40,
|
|
158
158
|
getValue: (object: BalanceItemWithPayments) => ({
|
|
159
159
|
value: object.priceOpen / 1_0000,
|
|
@@ -167,7 +167,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<BalanceItemWithPayments>
|
|
|
167
167
|
|
|
168
168
|
{
|
|
169
169
|
id: 'pricePaid',
|
|
170
|
-
name: $t(`
|
|
170
|
+
name: $t(`%1LC`),
|
|
171
171
|
width: 40,
|
|
172
172
|
getValue: (object: BalanceItemWithPayments) => ({
|
|
173
173
|
value: object.pricePaid / 1_0000,
|
|
@@ -181,7 +181,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<BalanceItemWithPayments>
|
|
|
181
181
|
|
|
182
182
|
{
|
|
183
183
|
id: 'pricePending',
|
|
184
|
-
name: $t(`
|
|
184
|
+
name: $t(`%1LD`),
|
|
185
185
|
width: 40,
|
|
186
186
|
getValue: (object: BalanceItemWithPayments) => ({
|
|
187
187
|
value: object.pricePending / 1_0000,
|
|
@@ -203,7 +203,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<BalanceItemWithPayments>
|
|
|
203
203
|
return [
|
|
204
204
|
{
|
|
205
205
|
id: `paidIn[${year}]`,
|
|
206
|
-
name: $t('
|
|
206
|
+
name: $t('%1L8', { year: year.toFixed(0) }),
|
|
207
207
|
width: 35,
|
|
208
208
|
getValue: (object: BalanceItemWithPayments) => {
|
|
209
209
|
let value = 0;
|
|
@@ -241,7 +241,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<BalanceItemWithPayments>
|
|
|
241
241
|
return [
|
|
242
242
|
{
|
|
243
243
|
id: `chargedIn[${year}]`,
|
|
244
|
-
name: $t('
|
|
244
|
+
name: $t('%1L9', { year: year.toFixed(0) }),
|
|
245
245
|
width: 35,
|
|
246
246
|
getValue: (object: BalanceItemWithPayments) => {
|
|
247
247
|
let value = 0;
|
|
@@ -8,11 +8,11 @@ import { XlsxTransformerColumnHelper } from '../helpers/XlsxTransformerColumnHel
|
|
|
8
8
|
// Assign to a typed variable to assure we have correct type checking in place
|
|
9
9
|
const sheet: XlsxTransformerSheet<EventNotification, EventNotification> = {
|
|
10
10
|
id: 'event-notifications',
|
|
11
|
-
name: $t(`
|
|
11
|
+
name: $t(`%1FR`),
|
|
12
12
|
columns: [
|
|
13
13
|
{
|
|
14
14
|
id: 'id',
|
|
15
|
-
name: $t(`
|
|
15
|
+
name: $t(`%d`),
|
|
16
16
|
width: 40,
|
|
17
17
|
getValue: (notification: EventNotification) => ({
|
|
18
18
|
value: notification.id,
|
|
@@ -20,7 +20,7 @@ const sheet: XlsxTransformerSheet<EventNotification, EventNotification> = {
|
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
id: 'name',
|
|
23
|
-
name: $t(`
|
|
23
|
+
name: $t(`%w9`),
|
|
24
24
|
width: 40,
|
|
25
25
|
getValue: (notification: EventNotification) => ({
|
|
26
26
|
value: notification.events.map(e => e.name).join(', '),
|
|
@@ -28,7 +28,7 @@ const sheet: XlsxTransformerSheet<EventNotification, EventNotification> = {
|
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
id: 'organization.name',
|
|
31
|
-
name: $t(`
|
|
31
|
+
name: $t(`%wA`),
|
|
32
32
|
width: 40,
|
|
33
33
|
getValue: (notification: EventNotification) => ({
|
|
34
34
|
value: notification.organization.name,
|
|
@@ -36,7 +36,7 @@ const sheet: XlsxTransformerSheet<EventNotification, EventNotification> = {
|
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
id: 'organization.uri',
|
|
39
|
-
name: $t(`
|
|
39
|
+
name: $t(`%7C`),
|
|
40
40
|
width: 30,
|
|
41
41
|
getValue: (notification: EventNotification) => ({
|
|
42
42
|
value: notification.organization.uri,
|
|
@@ -44,7 +44,7 @@ const sheet: XlsxTransformerSheet<EventNotification, EventNotification> = {
|
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
id: 'status',
|
|
47
|
-
name: $t(`
|
|
47
|
+
name: $t(`%1A`),
|
|
48
48
|
width: 30,
|
|
49
49
|
getValue: (notification: EventNotification) => ({
|
|
50
50
|
value: Formatter.capitalizeFirstLetter(EventNotificationStatusHelper.getName(notification.status)),
|
|
@@ -52,7 +52,7 @@ const sheet: XlsxTransformerSheet<EventNotification, EventNotification> = {
|
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
id: 'feedbackText',
|
|
55
|
-
name: $t(`
|
|
55
|
+
name: $t(`%YT`),
|
|
56
56
|
width: 80,
|
|
57
57
|
getValue: (notification: EventNotification) => ({
|
|
58
58
|
value: notification.status !== EventNotificationStatus.Accepted ? notification.feedbackText : null,
|
|
@@ -65,7 +65,7 @@ const sheet: XlsxTransformerSheet<EventNotification, EventNotification> = {
|
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
id: 'startDate',
|
|
68
|
-
name: $t(`
|
|
68
|
+
name: $t(`%7e`),
|
|
69
69
|
width: 20,
|
|
70
70
|
getValue: (notification: EventNotification) => ({
|
|
71
71
|
value: notification.startDate,
|
|
@@ -78,7 +78,7 @@ const sheet: XlsxTransformerSheet<EventNotification, EventNotification> = {
|
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
id: 'endDate',
|
|
81
|
-
name: $t(`
|
|
81
|
+
name: $t(`%wB`),
|
|
82
82
|
width: 20,
|
|
83
83
|
getValue: (notification: EventNotification) => ({
|
|
84
84
|
value: notification.endDate,
|
|
@@ -91,7 +91,7 @@ const sheet: XlsxTransformerSheet<EventNotification, EventNotification> = {
|
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
id: 'submittedAt',
|
|
94
|
-
name: $t(`
|
|
94
|
+
name: $t(`%Aw`),
|
|
95
95
|
width: 20,
|
|
96
96
|
getValue: (notification: EventNotification) => ({
|
|
97
97
|
value: notification.submittedAt,
|
|
@@ -104,7 +104,7 @@ const sheet: XlsxTransformerSheet<EventNotification, EventNotification> = {
|
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
id: 'submittedBy',
|
|
107
|
-
name: $t(`
|
|
107
|
+
name: $t(`%wC`),
|
|
108
108
|
width: 40,
|
|
109
109
|
getValue: (notification: EventNotification) => ({
|
|
110
110
|
value: notification.submittedBy?.name ?? '',
|