@appsemble/utils 0.24.12 → 0.25.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/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.25.0/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.25.0/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.25.0)
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.25.0/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: {
@@ -70,6 +72,10 @@ This must be set to \`false\` before any other changes can be made to an app.
70
72
  type: 'boolean',
71
73
  description: 'Determines whether this app should be used in demo mode.',
72
74
  },
75
+ seed: {
76
+ type: 'boolean',
77
+ description: 'Determines whether this app should be seeded in demo mode.',
78
+ },
73
79
  longDescription: {
74
80
  type: 'string',
75
81
  description: `
@@ -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
@@ -35,6 +35,9 @@ export const paths = {
35
35
  demoMode: {
36
36
  $ref: '#/components/schemas/App/properties/demoMode',
37
37
  },
38
+ seed: {
39
+ $ref: '#/components/schemas/App/properties/seed',
40
+ },
38
41
  longDescription: {
39
42
  $ref: '#/components/schemas/App/properties/longDescription',
40
43
  },
@@ -184,6 +187,9 @@ export const paths = {
184
187
  demoMode: {
185
188
  $ref: '#/components/schemas/App/properties/demoMode',
186
189
  },
190
+ seed: {
191
+ $ref: '#/components/schemas/App/properties/seed',
192
+ },
187
193
  longDescription: {
188
194
  $ref: '#/components/schemas/App/properties/longDescription',
189
195
  },
@@ -563,6 +569,29 @@ export const paths = {
563
569
  security: [{ app: ['openid'] }, {}],
564
570
  },
565
571
  },
572
+ '/api/apps/{appId}/demoMembers': {
573
+ parameters: [{ $ref: '#/components/parameters/appId' }],
574
+ get: {
575
+ tags: ['app'],
576
+ description: 'Fetch all demo members of an app.',
577
+ operationId: 'getDemoAppMembers',
578
+ responses: {
579
+ 200: {
580
+ description: 'The list of demo app members.',
581
+ content: {
582
+ 'application/json': {
583
+ schema: {
584
+ type: 'array',
585
+ items: {
586
+ $ref: '#/components/schemas/OrganizationMember',
587
+ },
588
+ },
589
+ },
590
+ },
591
+ },
592
+ },
593
+ },
594
+ },
566
595
  '/api/apps/{appId}/members': {
567
596
  parameters: [{ $ref: '#/components/parameters/appId' }],
568
597
  get: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/utils",
3
- "version": "0.24.12",
3
+ "version": "0.25.0",
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.25.0",
41
41
  "axios": "^1.0.0",
42
42
  "cron-parser": "^4.0.0",
43
43
  "date-fns": "^2.0.0",