@appsemble/utils 0.23.3 → 0.23.5

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.3/config/assets/logo.svg) Appsemble Utilities
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.23.5/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.3/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.23.3)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.23.5/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.23.5)
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.3/LICENSE.md) ©
29
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.23.5/LICENSE.md) ©
30
30
  [Appsemble](https://appsemble.com)
@@ -24,6 +24,10 @@ export const User = {
24
24
  enum: Intl.supportedValuesOf('timeZone'),
25
25
  description: 'The time zone of the user.',
26
26
  },
27
+ subscribed: {
28
+ type: 'boolean',
29
+ description: 'If the user is subscribed to the newsletter.',
30
+ },
27
31
  },
28
32
  };
29
33
  //# sourceMappingURL=User.js.map
@@ -9,6 +9,7 @@ export const cli = {
9
9
  clientCredentials: {
10
10
  tokenUrl: '/oauth2/token',
11
11
  scopes: {
12
+ 'apps:export': 'Export apps as zip files',
12
13
  'apps:write': 'Create and update apps',
13
14
  'apps:delete': 'Delete apps',
14
15
  'blocks:write': 'Register and update blocks, and publish new block versions.',
package/api/paths/apps.js CHANGED
@@ -303,7 +303,7 @@ export const paths = {
303
303
  $ref: '#/components/responses/app',
304
304
  },
305
305
  },
306
- security: [{ studio: [] }],
306
+ security: [{ studio: [] }, { cli: ['apps:write'] }],
307
307
  },
308
308
  },
309
309
  '/api/apps/{appId}/export': {
@@ -325,7 +325,7 @@ export const paths = {
325
325
  description: 'App exported successfully.',
326
326
  },
327
327
  },
328
- security: [{ studio: [] }],
328
+ security: [{ studio: [] }, { cli: ['apps:export'] }],
329
329
  },
330
330
  },
331
331
  '/api/apps/{appId}/lock': {
@@ -86,6 +86,32 @@ export const paths = {
86
86
  },
87
87
  },
88
88
  },
89
+ '/api/blocks/@{organizationId}/{blockId}/versions/list': {
90
+ parameters: [
91
+ { $ref: '#/components/parameters/organizationId' },
92
+ { $ref: '#/components/parameters/blockId' },
93
+ ],
94
+ get: {
95
+ tags: ['block', 'versions'],
96
+ description: 'Retrieve a string list of all versions of a block.',
97
+ operationId: 'getVersionsList',
98
+ responses: {
99
+ 200: {
100
+ description: 'String list of all versions of a block.',
101
+ content: {
102
+ 'application/json': {
103
+ schema: {
104
+ type: 'array',
105
+ items: {
106
+ $ref: 'string',
107
+ },
108
+ },
109
+ },
110
+ },
111
+ },
112
+ },
113
+ },
114
+ },
89
115
  '/api/blocks/@{organizationId}/{blockId}/versions/{blockVersion}': {
90
116
  parameters: [
91
117
  { $ref: '#/components/parameters/organizationId' },
@@ -27,6 +27,10 @@ export const paths = {
27
27
  timezone: {
28
28
  enum: Intl.supportedValuesOf('timeZone'),
29
29
  },
30
+ subscribed: {
31
+ type: 'boolean',
32
+ default: false,
33
+ },
30
34
  },
31
35
  },
32
36
  },
@@ -39,6 +39,10 @@ export const paths = {
39
39
  type: 'boolean',
40
40
  description: 'True if the end-user’s email address has been verified, else false.',
41
41
  },
42
+ subscribed: {
43
+ type: 'boolean',
44
+ description: 'If the user is subscribed to the newsletter.',
45
+ },
42
46
  },
43
47
  },
44
48
  },
@@ -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", "apps:delete", "blocks:write", "blocks:delete", "organizations:write", "resources:read", "resources:write", "assets:write", "teams:read", "teams:write"];
4
+ export declare const scopes: readonly ["apps:export", "apps:write", "apps:delete", "blocks:write", "blocks:delete", "organizations:write", "resources:read", "resources:write", "assets:write", "teams:read", "teams:write"];
@@ -2,6 +2,7 @@
2
2
  * All known OAuth2 scopes for client credentials.
3
3
  */
4
4
  export const scopes = [
5
+ 'apps:export',
5
6
  'apps:write',
6
7
  'apps:delete',
7
8
  'blocks:write',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/utils",
3
- "version": "0.23.3",
3
+ "version": "0.23.5",
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.3",
40
+ "@appsemble/types": "0.23.5",
41
41
  "axios": "^1.0.0",
42
42
  "cron-parser": "^4.0.0",
43
43
  "date-fns": "^2.0.0",
@@ -54,9 +54,9 @@
54
54
  "type-fest": "^4.0.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@types/langmap": "^0.0.1",
57
+ "@types/langmap": "^0.0.3",
58
58
  "@types/language-tags": "^1.0.0",
59
- "@types/lcm": "^0.0.0",
59
+ "@types/lcm": "^0.0.2",
60
60
  "bulma": "0.9.3",
61
61
  "koas-core": "^0.7.0",
62
62
  "vitest": "^0.34.0",