@appsemble/types 0.35.11-test.3 → 0.35.14

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/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.35.11-test.3/config/assets/logo.svg) Appsemble Types
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.35.14/config/assets/logo.svg) Appsemble Types
2
2
 
3
3
  > Reusable TypeScript types
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/types)](https://www.npmjs.com/package/@appsemble/types)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.35.11-test.3/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.35.11-test.3)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.35.14/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.35.14)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
8
8
 
9
9
  ## Table of Contents
@@ -26,5 +26,5 @@ not guaranteed.
26
26
 
27
27
  ## License
28
28
 
29
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.35.11-test.3/LICENSE.md) ©
29
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.35.14/LICENSE.md) ©
30
30
  [Appsemble](https://appsemble.com)
package/cli.d.ts CHANGED
@@ -166,6 +166,10 @@ export interface AppsembleContext {
166
166
  * The user of the external app database.
167
167
  */
168
168
  dbUser?: string;
169
+ /**
170
+ * Languages officially supported by the app
171
+ */
172
+ supportedLanguages?: string[];
169
173
  }
170
174
  export interface AppsembleRC {
171
175
  /**
package/index.d.ts CHANGED
@@ -368,6 +368,10 @@ export interface App {
368
368
  * The user of the app database.
369
369
  */
370
370
  dbUser: string;
371
+ /**
372
+ * The languages supported by an app.
373
+ */
374
+ supportedLanguages?: string[];
371
375
  }
372
376
  /**
373
377
  * A rating given to an app.
@@ -428,10 +432,6 @@ export interface Organization {
428
432
  * The URL at which the organization’s icon can be found.
429
433
  */
430
434
  iconUrl: string;
431
- /**
432
- * The preferred payment provider of the organization.
433
- */
434
- preferredPaymentProvider: PaymentProvider;
435
435
  /**
436
436
  * The vat id number of the organization.
437
437
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/types",
3
- "version": "0.35.11-test.3",
3
+ "version": "0.35.14",
4
4
  "description": "TypeScript definitions reused within Appsemble internally",
5
5
  "keywords": [
6
6
  "app",
@@ -40,7 +40,7 @@
40
40
  "test": "vitest"
41
41
  },
42
42
  "dependencies": {
43
- "@appsemble/lang-sdk": "0.35.11-test.3",
43
+ "@appsemble/lang-sdk": "0.35.14",
44
44
  "@fortawesome/fontawesome-common-types": "^6.0.0",
45
45
  "jsonschema": "~1.4.1",
46
46
  "openapi-types": "^12.0.0",
package/permissions.d.ts CHANGED
@@ -227,54 +227,59 @@ export declare enum OrganizationPermission {
227
227
  * The permission to create group invites.
228
228
  */
229
229
  CreateGroupInvites = 55,
230
+ /**
231
+ * The permission to add new members to a group.
232
+ *
233
+ */
234
+ CreateGroupMembers = 56,
230
235
  /**
231
236
  * The permission to query group invites.
232
237
  */
233
- QueryGroupInvites = 56,
238
+ QueryGroupInvites = 57,
234
239
  /**
235
240
  * The permission to delete group invites.
236
241
  */
237
- DeleteGroupInvites = 57,
242
+ DeleteGroupInvites = 58,
238
243
  /**
239
244
  * The permission to query group members.
240
245
  */
241
- QueryGroupMembers = 58,
246
+ QueryGroupMembers = 59,
242
247
  /**
243
248
  * The permission to remove group members.
244
249
  */
245
- RemoveGroupMembers = 59,
250
+ RemoveGroupMembers = 60,
246
251
  /**
247
252
  * The permission to update group member roles.
248
253
  */
249
- UpdateGroupMemberRoles = 60,
254
+ UpdateGroupMemberRoles = 61,
250
255
  /**
251
256
  * The permission to query app snapshots.
252
257
  */
253
- QueryAppSnapshots = 61,
258
+ QueryAppSnapshots = 62,
254
259
  /**
255
260
  * The permission to create app collections.
256
261
  */
257
- CreateAppCollections = 62,
262
+ CreateAppCollections = 63,
258
263
  /**
259
264
  * The permission to delete app collections.
260
265
  */
261
- DeleteAppCollections = 63,
266
+ DeleteAppCollections = 64,
262
267
  /**
263
268
  * The permission to update app collections.
264
269
  */
265
- UpdateAppCollections = 64,
270
+ UpdateAppCollections = 65,
266
271
  /**
267
272
  * The permission to send manual push notifications for an app.
268
273
  */
269
- PushAppNotifications = 65,
274
+ PushAppNotifications = 66,
270
275
  /**
271
276
  * The permission to manage organization subscriptions.
272
277
  */
273
- ManageOrganizationSubscriptions = 66,
278
+ ManageOrganizationSubscriptions = 67,
274
279
  /**
275
280
  * The permission to query organization subscriptions.
276
281
  */
277
- QueryOrganizationSubscriptions = 67
282
+ QueryOrganizationSubscriptions = 68
278
283
  }
279
284
  export declare const appOrganizationPermissionMapping: {
280
285
  [key in AppPermission]: OrganizationPermission;
package/permissions.js CHANGED
@@ -228,54 +228,59 @@ export var OrganizationPermission;
228
228
  * The permission to create group invites.
229
229
  */
230
230
  OrganizationPermission[OrganizationPermission["CreateGroupInvites"] = 55] = "CreateGroupInvites";
231
+ /**
232
+ * The permission to add new members to a group.
233
+ *
234
+ */
235
+ OrganizationPermission[OrganizationPermission["CreateGroupMembers"] = 56] = "CreateGroupMembers";
231
236
  /**
232
237
  * The permission to query group invites.
233
238
  */
234
- OrganizationPermission[OrganizationPermission["QueryGroupInvites"] = 56] = "QueryGroupInvites";
239
+ OrganizationPermission[OrganizationPermission["QueryGroupInvites"] = 57] = "QueryGroupInvites";
235
240
  /**
236
241
  * The permission to delete group invites.
237
242
  */
238
- OrganizationPermission[OrganizationPermission["DeleteGroupInvites"] = 57] = "DeleteGroupInvites";
243
+ OrganizationPermission[OrganizationPermission["DeleteGroupInvites"] = 58] = "DeleteGroupInvites";
239
244
  /**
240
245
  * The permission to query group members.
241
246
  */
242
- OrganizationPermission[OrganizationPermission["QueryGroupMembers"] = 58] = "QueryGroupMembers";
247
+ OrganizationPermission[OrganizationPermission["QueryGroupMembers"] = 59] = "QueryGroupMembers";
243
248
  /**
244
249
  * The permission to remove group members.
245
250
  */
246
- OrganizationPermission[OrganizationPermission["RemoveGroupMembers"] = 59] = "RemoveGroupMembers";
251
+ OrganizationPermission[OrganizationPermission["RemoveGroupMembers"] = 60] = "RemoveGroupMembers";
247
252
  /**
248
253
  * The permission to update group member roles.
249
254
  */
250
- OrganizationPermission[OrganizationPermission["UpdateGroupMemberRoles"] = 60] = "UpdateGroupMemberRoles";
255
+ OrganizationPermission[OrganizationPermission["UpdateGroupMemberRoles"] = 61] = "UpdateGroupMemberRoles";
251
256
  /**
252
257
  * The permission to query app snapshots.
253
258
  */
254
- OrganizationPermission[OrganizationPermission["QueryAppSnapshots"] = 61] = "QueryAppSnapshots";
259
+ OrganizationPermission[OrganizationPermission["QueryAppSnapshots"] = 62] = "QueryAppSnapshots";
255
260
  /**
256
261
  * The permission to create app collections.
257
262
  */
258
- OrganizationPermission[OrganizationPermission["CreateAppCollections"] = 62] = "CreateAppCollections";
263
+ OrganizationPermission[OrganizationPermission["CreateAppCollections"] = 63] = "CreateAppCollections";
259
264
  /**
260
265
  * The permission to delete app collections.
261
266
  */
262
- OrganizationPermission[OrganizationPermission["DeleteAppCollections"] = 63] = "DeleteAppCollections";
267
+ OrganizationPermission[OrganizationPermission["DeleteAppCollections"] = 64] = "DeleteAppCollections";
263
268
  /**
264
269
  * The permission to update app collections.
265
270
  */
266
- OrganizationPermission[OrganizationPermission["UpdateAppCollections"] = 64] = "UpdateAppCollections";
271
+ OrganizationPermission[OrganizationPermission["UpdateAppCollections"] = 65] = "UpdateAppCollections";
267
272
  /**
268
273
  * The permission to send manual push notifications for an app.
269
274
  */
270
- OrganizationPermission[OrganizationPermission["PushAppNotifications"] = 65] = "PushAppNotifications";
275
+ OrganizationPermission[OrganizationPermission["PushAppNotifications"] = 66] = "PushAppNotifications";
271
276
  /**
272
277
  * The permission to manage organization subscriptions.
273
278
  */
274
- OrganizationPermission[OrganizationPermission["ManageOrganizationSubscriptions"] = 66] = "ManageOrganizationSubscriptions";
279
+ OrganizationPermission[OrganizationPermission["ManageOrganizationSubscriptions"] = 67] = "ManageOrganizationSubscriptions";
275
280
  /**
276
281
  * The permission to query organization subscriptions.
277
282
  */
278
- OrganizationPermission[OrganizationPermission["QueryOrganizationSubscriptions"] = 67] = "QueryOrganizationSubscriptions";
283
+ OrganizationPermission[OrganizationPermission["QueryOrganizationSubscriptions"] = 68] = "QueryOrganizationSubscriptions";
279
284
  })(OrganizationPermission || (OrganizationPermission = {}));
280
285
  export const appOrganizationPermissionMapping = {
281
286
  [AppPermission.CreateAppInvites]: OrganizationPermission.CreateAppInvites,
@@ -288,6 +293,7 @@ export const appOrganizationPermissionMapping = {
288
293
  [AppPermission.UpdateGroups]: OrganizationPermission.UpdateGroups,
289
294
  [AppPermission.DeleteGroups]: OrganizationPermission.DeleteGroups,
290
295
  [AppPermission.CreateGroupInvites]: OrganizationPermission.CreateGroupInvites,
296
+ [AppPermission.CreateGroupMembers]: OrganizationPermission.CreateGroupMembers,
291
297
  [AppPermission.QueryGroupMembers]: OrganizationPermission.QueryGroupMembers,
292
298
  [AppPermission.RemoveGroupMembers]: OrganizationPermission.RemoveGroupMembers,
293
299
  [AppPermission.UpdateGroupMemberRoles]: OrganizationPermission.UpdateGroupMemberRoles,
package/roles.js CHANGED
@@ -43,6 +43,7 @@ const OrganizationAppGroupMembersManagerPermissions = [
43
43
  OrganizationPermission.QueryGroupMembers,
44
44
  OrganizationPermission.RemoveGroupMembers,
45
45
  OrganizationPermission.UpdateGroupMemberRoles,
46
+ OrganizationPermission.CreateGroupMembers,
46
47
  ];
47
48
  const OrganizationAppGroupManagerPermissions = [
48
49
  ...OrganizationAppGroupMembersManagerPermissions,