@appsemble/cli 0.20.37 → 0.20.39
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 +4 -4
- package/lib/team.d.ts +2 -2
- package/lib/team.js +2 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
#  Appsemble CLI
|
|
2
2
|
|
|
3
3
|
> Manage apps and blocks from the command line.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/cli)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.20.39)
|
|
7
|
+
[](https://codecov.io/gl/appsemble/appsemble)
|
|
8
8
|
[](https://prettier.io)
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
@@ -95,5 +95,5 @@ appsemble asset create --app-id 1 path/to/example-asset.png
|
|
|
95
95
|
|
|
96
96
|
## License
|
|
97
97
|
|
|
98
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.
|
|
98
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.39/LICENSE.md) ©
|
|
99
99
|
[Appsemble](https://appsemble.com)
|
package/lib/team.d.ts
CHANGED
|
@@ -48,9 +48,9 @@ interface CreateTeamParams extends SharedTeamParams {
|
|
|
48
48
|
annotations?: string[];
|
|
49
49
|
}
|
|
50
50
|
export declare function resolveAnnotations(annotations: string[]): Record<string, string>;
|
|
51
|
-
export declare function createTeam({ appId, name, remote,
|
|
51
|
+
export declare function createTeam({ annotations, appId, name, remote, }: CreateTeamParams): Promise<void>;
|
|
52
52
|
export declare function deleteTeam({ appId, id, remote }: SharedExistingTeamParams): Promise<void>;
|
|
53
|
-
export declare function updateTeam({ appId, id, name, remote,
|
|
53
|
+
export declare function updateTeam({ annotations, appId, id, name, remote, }: UpdateTeamParams): Promise<void>;
|
|
54
54
|
export declare function inviteMember({ appId, id, remote, user, }: SharedTeamMemberParams): Promise<void>;
|
|
55
55
|
export declare function updateMember({ appId, id, remote, role, user, }: UpdateTeamMemberParams): Promise<void>;
|
|
56
56
|
export declare function deleteMember({ appId, id, user }: SharedTeamMemberParams): Promise<void>;
|
package/lib/team.js
CHANGED
|
@@ -12,7 +12,7 @@ export function resolveAnnotations(annotations) {
|
|
|
12
12
|
}))
|
|
13
13
|
: undefined;
|
|
14
14
|
}
|
|
15
|
-
export async function createTeam({ appId, name, remote,
|
|
15
|
+
export async function createTeam({ annotations = [], appId, name, remote, }) {
|
|
16
16
|
logger.info(`Creating team ${name}`);
|
|
17
17
|
const { data: { id }, } = await axios.post(`/api/apps/${appId}/teams`, {
|
|
18
18
|
name,
|
|
@@ -25,7 +25,7 @@ export async function deleteTeam({ appId, id, remote }) {
|
|
|
25
25
|
await axios.delete(`/api/apps/${appId}/teams/${id}`, { baseURL: remote });
|
|
26
26
|
logger.info(`Successfully deleted team ${id}`);
|
|
27
27
|
}
|
|
28
|
-
export async function updateTeam({ appId, id, name, remote,
|
|
28
|
+
export async function updateTeam({ annotations = [], appId, id, name, remote, }) {
|
|
29
29
|
logger.info(`Updating team ${id}`);
|
|
30
30
|
await axios.put(`/api/apps/${appId}/teams/${id}`, {
|
|
31
31
|
name,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/cli",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.39",
|
|
4
4
|
"description": "The CLI for developing with Appsemble apps and blocks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@appsemble/node-utils": "0.20.
|
|
38
|
-
"@appsemble/types": "0.20.
|
|
39
|
-
"@appsemble/utils": "0.20.
|
|
37
|
+
"@appsemble/node-utils": "0.20.39",
|
|
38
|
+
"@appsemble/types": "0.20.39",
|
|
39
|
+
"@appsemble/utils": "0.20.39",
|
|
40
40
|
"@fortawesome/fontawesome-common-types": "^6.0.0",
|
|
41
41
|
"axios": "^1.0.0",
|
|
42
42
|
"chalk": "^4.0.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"yargs": "^17.0.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@appsemble/types": "0.20.
|
|
65
|
+
"@appsemble/types": "0.20.39",
|
|
66
66
|
"@types/concat-stream": "^2.0.0",
|
|
67
67
|
"@types/inquirer": "^9.0.0",
|
|
68
68
|
"@types/normalize-path": "^3.0.0",
|