@appsemble/utils 0.34.15-test.1 → 0.34.16
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 +3 -3
- package/api/paths/apps/appId/demo-members.js +63 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#  Appsemble Utilities
|
|
2
2
|
|
|
3
3
|
> Internal utility functions used across multiple Appsemble projects.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/utils)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.34.16)
|
|
7
7
|
[](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.34.
|
|
29
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.34.16/LICENSE.md) ©
|
|
30
30
|
[Appsemble](https://appsemble.com)
|
|
@@ -24,5 +24,68 @@ export const pathItems = {
|
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
26
|
},
|
|
27
|
+
post: {
|
|
28
|
+
tags: ['main', 'seed-app-members', 'demo-member', 'app'],
|
|
29
|
+
description: 'Seed demo app members from the cli.',
|
|
30
|
+
operationId: 'seedDemoAppMembers',
|
|
31
|
+
requestBody: {
|
|
32
|
+
required: true,
|
|
33
|
+
content: {
|
|
34
|
+
'application/json': {
|
|
35
|
+
schema: {
|
|
36
|
+
type: 'array',
|
|
37
|
+
additionalProperties: false,
|
|
38
|
+
items: {
|
|
39
|
+
type: 'object',
|
|
40
|
+
required: ['name', 'role'],
|
|
41
|
+
properties: {
|
|
42
|
+
name: {
|
|
43
|
+
type: 'string',
|
|
44
|
+
},
|
|
45
|
+
role: {
|
|
46
|
+
type: 'string',
|
|
47
|
+
},
|
|
48
|
+
properties: {
|
|
49
|
+
type: 'object',
|
|
50
|
+
additionalProperties: { type: 'string' },
|
|
51
|
+
description: 'The member’s custom properties.',
|
|
52
|
+
},
|
|
53
|
+
timezone: {
|
|
54
|
+
enum: Intl.supportedValuesOf('timeZone'),
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
responses: {
|
|
63
|
+
200: {
|
|
64
|
+
description: 'The list of created app members',
|
|
65
|
+
content: {
|
|
66
|
+
'application/json': {
|
|
67
|
+
schema: {
|
|
68
|
+
type: 'array',
|
|
69
|
+
items: {
|
|
70
|
+
$ref: '#/components/schemas/AppMemberInfo',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
security: [{ cli: ['apps:write'] }],
|
|
78
|
+
},
|
|
79
|
+
delete: {
|
|
80
|
+
description: 'Delete all seed app members for an app',
|
|
81
|
+
tags: ['main', 'app', 'demo-member', 'delete'],
|
|
82
|
+
operationId: 'deleteSeedAppMembers',
|
|
83
|
+
responses: {
|
|
84
|
+
204: {
|
|
85
|
+
description: 'The seed app members have been deleted successfully',
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
security: [{ cli: ['apps:write'] }],
|
|
89
|
+
},
|
|
27
90
|
};
|
|
28
91
|
//# sourceMappingURL=demo-members.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/utils",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.16",
|
|
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/types": "0.34.
|
|
43
|
-
"@appsemble/lang-sdk": "0.34.
|
|
42
|
+
"@appsemble/types": "0.34.16",
|
|
43
|
+
"@appsemble/lang-sdk": "0.34.16",
|
|
44
44
|
"@odata/parser": "^0.2.14",
|
|
45
45
|
"axios": "^1.0.0",
|
|
46
46
|
"cron-parser": "^4.0.0",
|