@appsemble/utils 0.24.12 → 0.24.13

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.24.12/config/assets/logo.svg) Appsemble Utilities
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.24.13/config/assets/logo.svg) Appsemble Utilities
2
2
 
3
3
  > Internal utility functions used across multiple Appsemble projects.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/utils)](https://www.npmjs.com/package/@appsemble/utils)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.24.12/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.24.12)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.24.13/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.24.13)
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.24.12/LICENSE.md) ©
29
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.24.13/LICENSE.md) ©
30
30
  [Appsemble](https://appsemble.com)
@@ -56,10 +56,12 @@ This doesn’t affect whether or not the app can be accessed on its own domain.
56
56
  description: 'Whether or not people who have access to the app may see the app definition.',
57
57
  },
58
58
  locked: {
59
- type: 'boolean',
59
+ enum: ['fullLock', 'studioLock', 'unlocked'],
60
+ default: 'unlocked',
60
61
  description: `Determines whether this app should be locked from being updated.
61
-
62
- This must be set to \`false\` before any other changes can be made to an app.
62
+ If this is set to \`fullLock\`, no changes can be made to the app,
63
+ if this is set to \`studioLock\`, no changes can be made from the studio but updating from the CLI is possible,
64
+ and to make any changes from the studio, this should be set to \`unlocked\`.
63
65
  `,
64
66
  },
65
67
  template: {
@@ -7,7 +7,7 @@ export const TeamInviteActionDefinition = extendJSONSchema(BaseActionDefinition,
7
7
  properties: {
8
8
  type: {
9
9
  enum: ['team.invite'],
10
- description: 'Get a list of all of the user’s teams.',
10
+ description: 'Invite a user to join a team.',
11
11
  },
12
12
  id: {
13
13
  description: 'The ID of the team to invite the user to.',
@@ -7,7 +7,7 @@ export const TeamJoinActionDefinition = extendJSONSchema(BaseActionDefinition, {
7
7
  properties: {
8
8
  type: {
9
9
  enum: ['team.join'],
10
- description: 'Get a list of all of the user’s teams.',
10
+ description: 'Allow a user to join a team.',
11
11
  },
12
12
  },
13
13
  });
package/api/paths/apps.js CHANGED
@@ -563,6 +563,29 @@ export const paths = {
563
563
  security: [{ app: ['openid'] }, {}],
564
564
  },
565
565
  },
566
+ '/api/apps/{appId}/demoMembers': {
567
+ parameters: [{ $ref: '#/components/parameters/appId' }],
568
+ get: {
569
+ tags: ['app'],
570
+ description: 'Fetch all demo members of an app.',
571
+ operationId: 'getDemoAppMembers',
572
+ responses: {
573
+ 200: {
574
+ description: 'The list of demo app members.',
575
+ content: {
576
+ 'application/json': {
577
+ schema: {
578
+ type: 'array',
579
+ items: {
580
+ $ref: '#/components/schemas/OrganizationMember',
581
+ },
582
+ },
583
+ },
584
+ },
585
+ },
586
+ },
587
+ },
588
+ },
566
589
  '/api/apps/{appId}/members': {
567
590
  parameters: [{ $ref: '#/components/parameters/appId' }],
568
591
  get: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/utils",
3
- "version": "0.24.12",
3
+ "version": "0.24.13",
4
4
  "description": "Utility functions used in Appsemble internally",
5
5
  "keywords": [
6
6
  "app",
@@ -37,7 +37,7 @@
37
37
  "test": "vitest"
38
38
  },
39
39
  "dependencies": {
40
- "@appsemble/types": "0.24.12",
40
+ "@appsemble/types": "0.24.13",
41
41
  "axios": "^1.0.0",
42
42
  "cron-parser": "^4.0.0",
43
43
  "date-fns": "^2.0.0",