@appsemble/utils 0.36.10-test.2 → 0.36.10-test.4

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.36.10-test.2/config/assets/logo.svg) Appsemble Utilities
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.36.10-test.4/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.36.10-test.2/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.36.10-test.2)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.36.10-test.4/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.36.10-test.4)
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.36.10-test.2/LICENSE.md) ©
29
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.36.10-test.4/LICENSE.md) ©
30
30
  [Appsemble](https://appsemble.com)
@@ -8,9 +8,12 @@ export const AppMember = {
8
8
  readOnly: true,
9
9
  description: 'The id of the app member.',
10
10
  },
11
- role: {
12
- type: 'string',
13
- description: 'The role of the app member within the app.',
11
+ roles: {
12
+ type: 'array',
13
+ items: {
14
+ type: 'string',
15
+ },
16
+ description: 'The direct roles of the app member within the app.',
14
17
  },
15
18
  name: {
16
19
  type: 'string',
@@ -36,7 +36,14 @@ export const AppMemberInfo = {
36
36
  },
37
37
  role: {
38
38
  type: 'string',
39
- description: 'The role of the app member within the app',
39
+ description: 'The role of the app member within the app. Deprecated: use roles instead.',
40
+ },
41
+ roles: {
42
+ type: 'array',
43
+ items: {
44
+ type: 'string',
45
+ },
46
+ description: 'The direct roles of the app member within the app.',
40
47
  },
41
48
  properties: {
42
49
  type: 'object',
@@ -38,13 +38,16 @@ export const pathItems = {
38
38
  additionalProperties: false,
39
39
  items: {
40
40
  type: 'object',
41
- required: ['name', 'role'],
41
+ required: ['name', 'roles'],
42
42
  properties: {
43
43
  name: {
44
44
  type: 'string',
45
45
  },
46
- role: {
47
- type: 'string',
46
+ roles: {
47
+ type: 'array',
48
+ items: {
49
+ type: 'string',
50
+ },
48
51
  },
49
52
  properties: {
50
53
  type: 'object',
@@ -18,8 +18,11 @@ export const pathItems = {
18
18
  type: 'string',
19
19
  format: 'email',
20
20
  },
21
- role: {
22
- type: 'string',
21
+ roles: {
22
+ type: 'array',
23
+ items: {
24
+ type: 'string',
25
+ },
23
26
  },
24
27
  },
25
28
  },
@@ -44,16 +47,19 @@ export const pathItems = {
44
47
  type: 'array',
45
48
  items: {
46
49
  type: 'object',
47
- required: ['email', 'role'],
50
+ required: ['email', 'roles'],
48
51
  properties: {
49
52
  email: {
50
53
  type: 'string',
51
54
  format: 'email',
52
55
  description: 'The email address of the user to invite.',
53
56
  },
54
- role: {
55
- type: 'string',
56
- description: 'The role to invite the user as.',
57
+ roles: {
58
+ type: 'array',
59
+ description: 'The direct roles to invite the user as.',
60
+ items: {
61
+ type: 'string',
62
+ },
57
63
  },
58
64
  },
59
65
  },
@@ -67,7 +73,22 @@ export const pathItems = {
67
73
  content: {
68
74
  'application/json': {
69
75
  schema: {
70
- $ref: '#/components/schemas/AppMember',
76
+ type: 'array',
77
+ items: {
78
+ type: 'object',
79
+ properties: {
80
+ email: {
81
+ type: 'string',
82
+ format: 'email',
83
+ },
84
+ roles: {
85
+ type: 'array',
86
+ items: {
87
+ type: 'string',
88
+ },
89
+ },
90
+ },
91
+ },
71
92
  },
72
93
  },
73
94
  },
@@ -20,9 +20,13 @@ export const pathItems = {
20
20
  schema: {
21
21
  type: 'object',
22
22
  additionalProperties: false,
23
+ required: ['roles'],
23
24
  properties: {
24
- role: {
25
- type: 'string',
25
+ roles: {
26
+ type: 'array',
27
+ items: {
28
+ type: 'string',
29
+ },
26
30
  },
27
31
  },
28
32
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/utils",
3
- "version": "0.36.10-test.2",
3
+ "version": "0.36.10-test.4",
4
4
  "description": "Utility functions used in Appsemble internally",
5
5
  "keywords": [
6
6
  "app",
@@ -39,8 +39,8 @@
39
39
  "test": "vitest"
40
40
  },
41
41
  "dependencies": {
42
- "@appsemble/lang-sdk": "0.36.10-test.2",
43
- "@appsemble/types": "0.36.10-test.2",
42
+ "@appsemble/lang-sdk": "0.36.10-test.4",
43
+ "@appsemble/types": "0.36.10-test.4",
44
44
  "@fortawesome/fontawesome-common-types": "^6.0.0",
45
45
  "axios": "^1.0.0",
46
46
  "langmap": "^0.0.16",