@appsemble/utils 0.23.0 → 0.23.1

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.23.0/config/assets/logo.svg) Appsemble Utilities
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.23.1/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.23.0/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.23.0)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.23.1/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.23.1)
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.23.0/LICENSE.md) ©
29
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.23.1/LICENSE.md) ©
30
30
  [Appsemble](https://appsemble.com)
@@ -66,6 +66,10 @@ This must be set to \`false\` before any other changes can be made to an app.
66
66
  type: 'boolean',
67
67
  description: 'Determines whether this app should be included when fetching for templates.',
68
68
  },
69
+ demoMode: {
70
+ type: 'boolean',
71
+ description: 'Determines whether this app should be used in demo mode.',
72
+ },
69
73
  longDescription: {
70
74
  type: 'string',
71
75
  description: `
@@ -10,6 +10,7 @@ export const cli = {
10
10
  tokenUrl: '/oauth2/token',
11
11
  scopes: {
12
12
  'apps:write': 'Create and update apps',
13
+ 'apps:delete': 'Delete apps',
13
14
  'blocks:write': 'Register and update blocks, and publish new block versions.',
14
15
  'blocks:delete': 'Delete specific block versions.',
15
16
  'organizations:write': 'Create and manage organizations.',
package/api/paths/apps.js CHANGED
@@ -32,6 +32,9 @@ export const paths = {
32
32
  template: {
33
33
  $ref: '#/components/schemas/App/properties/template',
34
34
  },
35
+ demoMode: {
36
+ $ref: '#/components/schemas/App/properties/demoMode',
37
+ },
35
38
  longDescription: {
36
39
  $ref: '#/components/schemas/App/properties/longDescription',
37
40
  },
@@ -170,6 +173,9 @@ export const paths = {
170
173
  template: {
171
174
  $ref: '#/components/schemas/App/properties/template',
172
175
  },
176
+ demoMode: {
177
+ $ref: '#/components/schemas/App/properties/demoMode',
178
+ },
173
179
  longDescription: {
174
180
  $ref: '#/components/schemas/App/properties/longDescription',
175
181
  },
@@ -272,7 +278,7 @@ export const paths = {
272
278
  description: 'The app was successfully deleted.',
273
279
  },
274
280
  },
275
- security: [{ studio: [] }],
281
+ security: [{ studio: [] }, { cli: ['apps:delete'] }],
276
282
  },
277
283
  },
278
284
  '/api/apps/import/organization/{organizationId}': {
@@ -1322,7 +1328,7 @@ This will return a 404 if the user has not uploaded one.`,
1322
1328
  },
1323
1329
  },
1324
1330
  },
1325
- security: [{ studio: [] }, { cli: ['teams:write'] }],
1331
+ security: [{ studio: [] }, { app: [] }, { cli: ['teams:write'] }],
1326
1332
  },
1327
1333
  delete: {
1328
1334
  tags: ['app'],
@@ -1333,7 +1339,7 @@ This will return a 404 if the user has not uploaded one.`,
1333
1339
  description: 'The team member has been removed successfully.',
1334
1340
  },
1335
1341
  },
1336
- security: [{ studio: [] }, { cli: ['teams:write'] }],
1342
+ security: [{ studio: [] }, { app: [] }, { cli: ['teams:write'] }],
1337
1343
  },
1338
1344
  },
1339
1345
  '/api/apps/{appId}/teams/{teamId}/invite': {
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * All known OAuth2 scopes for client credentials.
3
3
  */
4
- export declare const scopes: readonly ["apps:write", "blocks:write", "blocks:delete", "organizations:write", "resources:read", "resources:write", "assets:write", "teams:read", "teams:write"];
4
+ export declare const scopes: readonly ["apps:write", "apps:delete", "blocks:write", "blocks:delete", "organizations:write", "resources:read", "resources:write", "assets:write", "teams:read", "teams:write"];
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export const scopes = [
5
5
  'apps:write',
6
+ 'apps:delete',
6
7
  'blocks:write',
7
8
  'blocks:delete',
8
9
  'organizations:write',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/utils",
3
- "version": "0.23.0",
3
+ "version": "0.23.1",
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.23.0",
40
+ "@appsemble/types": "0.23.1",
41
41
  "axios": "^1.0.0",
42
42
  "cron-parser": "^4.0.0",
43
43
  "date-fns": "^2.0.0",