@appsemble/utils 0.40.9 → 0.40.10

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.40.9/config/assets/logo.svg) Appsemble Utilities
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.40.10/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.40.9/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.40.9)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.40.10/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.40.10)
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.40.9/LICENSE.md) ©
29
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.40.10/LICENSE.md) ©
30
30
  [Appsemble](https://appsemble.com)
@@ -25,6 +25,22 @@ export const Asset = {
25
25
  pattern: normalized.source,
26
26
  description: 'The given name of the asset. Assets may be referenced by their name or ID in the API.',
27
27
  },
28
+ seed: {
29
+ type: 'boolean',
30
+ readOnly: true,
31
+ description: 'Whether the asset is a seed asset.',
32
+ },
33
+ clonable: {
34
+ type: 'boolean',
35
+ readOnly: true,
36
+ description: 'Whether the asset is transferred when cloning the app.',
37
+ },
38
+ sha256: {
39
+ type: 'string',
40
+ nullable: true,
41
+ readOnly: true,
42
+ description: 'The hex encoded SHA-256 hash of the asset content.',
43
+ },
28
44
  },
29
45
  };
30
46
  //# sourceMappingURL=Asset.js.map
@@ -9,6 +9,12 @@ export const pathItems = {
9
9
  { $ref: '#/components/parameters/$skip' },
10
10
  { $ref: '#/components/parameters/$top' },
11
11
  { $ref: '#/components/parameters/seed' },
12
+ {
13
+ name: 'named',
14
+ in: 'query',
15
+ description: 'Return only the named, non-ephemeral assets, with their `id`, `name`, `seed`, `clonable` and `sha256`.',
16
+ schema: { type: 'boolean' },
17
+ },
12
18
  ],
13
19
  responses: {
14
20
  200: {
@@ -20,7 +26,7 @@ export const pathItems = {
20
26
  },
21
27
  },
22
28
  },
23
- security: [{ studio: [] }, {}],
29
+ security: [{ studio: [] }, { cli: ['assets:write'] }, {}],
24
30
  },
25
31
  post: {
26
32
  tags: ['common', 'app', 'asset'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/utils",
3
- "version": "0.40.9",
3
+ "version": "0.40.10",
4
4
  "description": "Utility functions used in Appsemble internally",
5
5
  "keywords": [
6
6
  "app",
@@ -38,8 +38,8 @@
38
38
  "test": "vitest"
39
39
  },
40
40
  "dependencies": {
41
- "@appsemble/lang-sdk": "0.40.9",
42
- "@appsemble/types": "0.40.9",
41
+ "@appsemble/lang-sdk": "0.40.10",
42
+ "@appsemble/types": "0.40.10",
43
43
  "@fortawesome/fontawesome-common-types": "^6.0.0",
44
44
  "axios": "^1.0.0",
45
45
  "langmap": "^0.0.16",