@stamhoofd/backend 2.79.2 → 2.79.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stamhoofd/backend",
3
- "version": "2.79.2",
3
+ "version": "2.79.3",
4
4
  "main": "./dist/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -38,14 +38,14 @@
38
38
  "@simonbackx/simple-encoding": "2.21.0",
39
39
  "@simonbackx/simple-endpoints": "1.19.1",
40
40
  "@simonbackx/simple-logging": "^1.0.1",
41
- "@stamhoofd/backend-i18n": "2.79.2",
42
- "@stamhoofd/backend-middleware": "2.79.2",
43
- "@stamhoofd/email": "2.79.2",
44
- "@stamhoofd/models": "2.79.2",
45
- "@stamhoofd/queues": "2.79.2",
46
- "@stamhoofd/sql": "2.79.2",
47
- "@stamhoofd/structures": "2.79.2",
48
- "@stamhoofd/utility": "2.79.2",
41
+ "@stamhoofd/backend-i18n": "2.79.3",
42
+ "@stamhoofd/backend-middleware": "2.79.3",
43
+ "@stamhoofd/email": "2.79.3",
44
+ "@stamhoofd/models": "2.79.3",
45
+ "@stamhoofd/queues": "2.79.3",
46
+ "@stamhoofd/sql": "2.79.3",
47
+ "@stamhoofd/structures": "2.79.3",
48
+ "@stamhoofd/utility": "2.79.3",
49
49
  "archiver": "^7.0.1",
50
50
  "aws-sdk": "^2.885.0",
51
51
  "axios": "1.6.8",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "595b8c9ed42fb1b9de1dd3facb545ae3c7f9b1a2"
68
+ "gitHead": "3b9878a9052295f3c5f9a661fbb8219ed87b23fe"
69
69
  }
@@ -8,6 +8,9 @@ export class StringArrayDecoder<T> implements Decoder<T[]> {
8
8
  }
9
9
 
10
10
  decode(data: Data): T[] {
11
+ if (Array.isArray(data.value)) {
12
+ return data.array(this.decoder);
13
+ }
11
14
  const strValue = data.string;
12
15
 
13
16
  // Split on comma
@@ -101,7 +101,7 @@ export class CreateAdminEndpoint extends Endpoint<Params, Query, Body, ResponseB
101
101
  const platformName = ((await Platform.getSharedStruct()).config.name);
102
102
 
103
103
  const name = organization?.name ?? platformName;
104
- const what = organization ? $t('de vereniging {name} op {platform}', { name, platform: platformName }) : platformName;
104
+ const what = organization ? $t('a5c0dce2-01df-4a57-8d02-0b79cec9b89d', { name, platform: platformName }) : platformName;
105
105
 
106
106
  const emailTo = admin.getEmailTo();
107
107
  const email: string = typeof emailTo === 'string' ? emailTo : emailTo[0]?.email;
@@ -1027,11 +1027,11 @@ export class PatchOrganizationMembersEndpoint extends Endpoint<Params, Query, Bo
1027
1027
  message: 'Maximum members reached',
1028
1028
  human: responsibility.maximumMembers === 1
1029
1029
  ? (model.groupId
1030
- ? $t('Je kan maar één lid hebben met de functie {responsibility} in deze leeftijdsgroep', { responsibility: responsibility.name })
1031
- : $t('Je kan maar één lid hebben met de functie {responsibility}', { responsibility: responsibility.name }))
1030
+ ? $t('e3e4ba16-7923-42bc-ae23-cd729ce06869', { responsibility: responsibility.name })
1031
+ : $t('77e408e8-59e5-42c2-b58d-956f7c391e5c', { responsibility: responsibility.name }))
1032
1032
  : (model.groupId
1033
- ? $t('Je kan maximum {count} leden hebben met de functie {responsibility} in deze leeftijdsgroep', { count: responsibility.maximumMembers.toFixed(), responsibility: responsibility.name })
1034
- : $t('Je kan maximum {count} leden hebben met de functie {responsibility}', { count: responsibility.maximumMembers.toFixed(), responsibility: responsibility.name })),
1033
+ ? $t('10c13841-9f58-4651-a9b3-a34c8ce1a505', { count: responsibility.maximumMembers.toFixed(), responsibility: responsibility.name })
1034
+ : $t('01ef9768-89b5-48ea-955e-b896306a9a87', { count: responsibility.maximumMembers.toFixed(), responsibility: responsibility.name })),
1035
1035
  });
1036
1036
  }
1037
1037
  }
@@ -247,7 +247,7 @@ export class RegisterMembersEndpoint extends Endpoint<Params, Query, Body, Respo
247
247
  throw new SimpleError({
248
248
  code: 'forbidden',
249
249
  message: 'No permission to register in this group',
250
- human: $t('Je hebt geen toegangsrechten om een lid in te schrijven voor {group}', { group: group.settings.name }),
250
+ human: $t('36e8f895-91df-4c88-88e7-d4f0e9d1b5bf', { group: group.settings.name }),
251
251
  statusCode: 403,
252
252
  });
253
253
  }
@@ -11,8 +11,8 @@ class Query extends AutoEncoder {
11
11
  @field({ decoder: StringDecoder })
12
12
  domain: string;
13
13
 
14
- @field({ decoder: StringDecoder, nullable: true })
15
- uri: string | null;
14
+ @field({ decoder: StringDecoder, optional: true })
15
+ uri = '';
16
16
  }
17
17
 
18
18
  type Body = undefined;
@@ -92,7 +92,7 @@ export class AdminPermissionChecker {
92
92
  }
93
93
 
94
94
  memberNotFoundOrNoAccess(): SimpleError {
95
- return this.notFoundOrNoAccess($t('Je hebt geen toegang tot dit lid of het bestaat niet'));
95
+ return this.notFoundOrNoAccess($t('d24814a3-aedc-4569-9ab3-f854027c4e9f'));
96
96
  }
97
97
 
98
98
  notFoundOrNoAccess(message?: string): SimpleError {