@appsemble/cli 0.20.42 → 0.20.44

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.
Files changed (48) hide show
  1. package/LICENSE.md +126 -0
  2. package/README.md +14 -3
  3. package/commands/app/create.d.ts +4 -4
  4. package/commands/app/extract-messages.d.ts +2 -2
  5. package/commands/app/index.d.ts +1 -1
  6. package/commands/app/update.d.ts +4 -4
  7. package/commands/asset/create.d.ts +2 -2
  8. package/commands/asset/index.d.ts +1 -1
  9. package/commands/block/build.d.ts +2 -2
  10. package/commands/block/extract-messages.d.ts +2 -2
  11. package/commands/block/index.d.ts +1 -1
  12. package/commands/block/publish.d.ts +2 -2
  13. package/commands/cleanupResources.d.ts +2 -2
  14. package/commands/config/get.d.ts +2 -2
  15. package/commands/config/index.d.ts +1 -1
  16. package/commands/config/set.d.ts +2 -2
  17. package/commands/migrate.d.ts +2 -2
  18. package/commands/organization/create.d.ts +3 -3
  19. package/commands/organization/index.d.ts +1 -1
  20. package/commands/organization/update.d.ts +3 -3
  21. package/commands/resource/create.d.ts +2 -2
  22. package/commands/resource/index.d.ts +1 -1
  23. package/commands/resource/update.d.ts +2 -2
  24. package/commands/runCronJobs.d.ts +2 -2
  25. package/commands/start.d.ts +2 -2
  26. package/commands/team/create.d.ts +2 -2
  27. package/commands/team/delete.d.ts +2 -2
  28. package/commands/team/index.d.ts +1 -1
  29. package/commands/team/member/delete.d.ts +2 -2
  30. package/commands/team/member/index.d.ts +1 -1
  31. package/commands/team/member/invite.d.ts +2 -2
  32. package/commands/team/member/update.d.ts +2 -2
  33. package/commands/team/update.d.ts +2 -2
  34. package/lib/app.d.ts +4 -4
  35. package/lib/app.js +1 -1
  36. package/lib/authentication.d.ts +2 -2
  37. package/lib/authentication.js +1 -1
  38. package/lib/block.d.ts +2 -2
  39. package/lib/coercers.d.ts +1 -1
  40. package/lib/getBlockConfigFromTypeScript.d.ts +1 -1
  41. package/lib/getBlockConfigFromTypeScript.js +2 -2
  42. package/lib/initAxios.d.ts +1 -1
  43. package/lib/loadWebpackConfig.d.ts +2 -2
  44. package/lib/organization.d.ts +1 -1
  45. package/lib/output.d.ts +1 -1
  46. package/lib/team.d.ts +1 -1
  47. package/package.json +5 -5
  48. package/types.d.ts +3 -3
package/LICENSE.md ADDED
@@ -0,0 +1,126 @@
1
+ # GNU LESSER GENERAL PUBLIC LICENSE
2
+
3
+ Version 3, 29 June 2007
4
+
5
+ Copyright © 2018 Appsemble B.V. <https://appsemble.com>
6
+
7
+ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing
8
+ it is not allowed.
9
+
10
+ This version of the GNU Lesser General Public License incorporates the terms and conditions of
11
+ version 3 of the GNU General Public License, supplemented by the additional permissions listed
12
+ below.
13
+
14
+ ## 0. Additional Definitions.
15
+
16
+ As used herein, _“this License”_ refers to version 3 of the GNU Lesser General Public License, and
17
+ the _“GNU GPL”_ refers to version 3 of the GNU General Public License.
18
+
19
+ _“The Library”_ refers to a covered work governed by this License, other than an Application or a
20
+ Combined Work as defined below.
21
+
22
+ An _“Application”_ is any work that makes use of an interface provided by the Library, but which is
23
+ not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed
24
+ a mode of using an interface provided by the Library.
25
+
26
+ A _“Combined Work”_ is a work produced by combining or linking an Application with the Library. The
27
+ particular version of the Library with which the Combined Work was made is also called the _“Linked
28
+ Version”_.
29
+
30
+ The _“Minimal Corresponding Source”_ for a Combined Work means the Corresponding Source for the
31
+ Combined Work, excluding any source code for portions of the Combined Work that, considered in
32
+ isolation, are based on the Application, and not on the Linked Version.
33
+
34
+ The _“Corresponding Application Code”_ for a Combined Work means the object code and/or source code
35
+ for the Application, including any data and utility programs needed for reproducing the Combined
36
+ Work from the Application, but excluding the System Libraries of the Combined Work.
37
+
38
+ ## 1. Exception to Section 3 of the GNU GPL.
39
+
40
+ You may convey a covered work under sections 3 and 4 of this License without being bound by section
41
+ 3 of the GNU GPL.
42
+
43
+ ## 2. Conveying Modified Versions.
44
+
45
+ If you modify a copy of the Library, and, in your modifications, a facility refers to a function or
46
+ data to be supplied by an Application that uses the facility (other than as an argument passed when
47
+ the facility is invoked), then you may convey a copy of the modified version:
48
+
49
+ - a) under this License, provided that you make a good faith effort to ensure that, in the event an
50
+ Application does not supply the function or data, the facility still operates, and performs
51
+ whatever part of its purpose remains meaningful, or
52
+ - b) under the GNU GPL, with none of the additional permissions of this License applicable to that
53
+ copy.
54
+
55
+ ## 3. Object Code Incorporating Material from Library Header Files.
56
+
57
+ The object code form of an Application may incorporate material from a header file that is part of
58
+ the Library. You may convey such object code under terms of your choice, provided that, if the
59
+ incorporated material is not limited to numerical parameters, data structure layouts and accessors,
60
+ or small macros, inline functions and templates (ten or fewer lines in length), you do both of the
61
+ following:
62
+
63
+ - a) Give prominent notice with each copy of the object code that the Library is used in it and that
64
+ the Library and its use are covered by this License.
65
+ - b) Accompany the object code with a copy of the GNU GPL and this license document.
66
+
67
+ ## 4. Combined Works.
68
+
69
+ You may convey a Combined Work under terms of your choice that, taken together, effectively do not
70
+ restrict modification of the portions of the Library contained in the Combined Work and reverse
71
+ engineering for debugging such modifications, if you also do each of the following:
72
+
73
+ - a) Give prominent notice with each copy of the Combined Work that the Library is used in it and
74
+ that the Library and its use are covered by this License.
75
+ - b) Accompany the Combined Work with a copy of the GNU GPL and this license document.
76
+ - c) For a Combined Work that displays copyright notices during execution, include the copyright
77
+ notice for the Library among these notices, as well as a reference directing the user to the
78
+ copies of the GNU GPL and this license document.
79
+ - d) Do one of the following:
80
+ 1. Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding
81
+ Application Code in a form suitable for, and under terms that permit, the user to recombine or
82
+ relink the Application with a modified version of the Linked Version to produce a modified
83
+ Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding
84
+ Source.
85
+ 2. Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is
86
+ one that (a) uses at run time a copy of the Library already present on the user’s computer
87
+ system, and (b) will operate properly with a modified version of the Library that is
88
+ interface-compatible with the Linked Version.
89
+ - e) Provide Installation Information, but only if you would otherwise be required to provide such
90
+ information under section 6 of the GNU GPL, and only to the extent that such information is
91
+ necessary to install and execute a modified version of the Combined Work produced by recombining
92
+ or relinking the Application with a modified version of the Linked Version. (If you use option
93
+ 4d0, the Installation Information must accompany the Minimal Corresponding Source and
94
+ Corresponding Application Code. If you use option 4d1, you must provide the Installation
95
+ Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding
96
+ Source.)
97
+
98
+ ## 5. Combined Libraries.
99
+
100
+ You may place library facilities that are a work based on the Library side by side in a single
101
+ library together with other library facilities that are not Applications and are not covered by this
102
+ License, and convey such a combined library under terms of your choice, if you do both of the
103
+ following:
104
+
105
+ - a) Accompany the combined library with a copy of the same work based on the Library, uncombined
106
+ with any other library facilities, conveyed under the terms of this License.
107
+ - b) Give prominent notice with the combined library that part of it is a work based on the Library,
108
+ and explaining where to find the accompanying uncombined form of the same work.
109
+
110
+ ## 6. Revised Versions of the GNU Lesser General Public License.
111
+
112
+ The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General
113
+ Public License from time to time. Such new versions will be similar in spirit to the present
114
+ version, but may differ in detail to address new problems or concerns.
115
+
116
+ Each version is given a distinguishing version number. If the Library as you received it specifies
117
+ that a certain numbered version of the GNU Lesser General Public License _“or any later version”_
118
+ applies to it, you have the option of following the terms and conditions either of that published
119
+ version or of any later version published by the Free Software Foundation. If the Library as you
120
+ received it does not specify a version number of the GNU Lesser General Public License, you may
121
+ choose any version of the GNU Lesser General Public License ever published by the Free Software
122
+ Foundation.
123
+
124
+ If the Library as you received it specifies that a proxy can decide whether future versions of the
125
+ GNU Lesser General Public License shall apply, that proxy’s public statement of acceptance of any
126
+ version is permanent authorization for you to choose that version for the Library.
package/README.md CHANGED
@@ -1,11 +1,22 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.20.42/config/assets/logo.svg) Appsemble CLI
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.20.44/config/assets/logo.svg) Appsemble CLI
2
2
 
3
3
  > Manage apps and blocks from the command line.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/cli)](https://www.npmjs.com/package/@appsemble/cli)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.20.42/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.20.42)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.20.44/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.20.44)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
8
8
 
9
+ ## Table of Contents
10
+
11
+ - [Installation](#installation)
12
+ - [Usage](#usage)
13
+ - [Authentication](#authentication)
14
+ - [Organizations](#organizations)
15
+ - [Apps](#apps)
16
+ - [Blocks](#blocks)
17
+ - [Assets](#assets)
18
+ - [License](#license)
19
+
9
20
  ## Installation
10
21
 
11
22
  ```sh
@@ -94,5 +105,5 @@ appsemble asset create --app-id 1 path/to/example-asset.png
94
105
 
95
106
  ## License
96
107
 
97
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.42/LICENSE.md) ©
108
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.44/LICENSE.md) ©
98
109
  [Appsemble](https://appsemble.com)
@@ -1,9 +1,9 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
- import { ReadStream } from 'node:fs';
4
- import { AppVisibility } from '@appsemble/types';
5
- import { Argv } from 'yargs';
6
- import { BaseArguments } from '../../types.js';
3
+ import { type ReadStream } from 'node:fs';
4
+ import { type AppVisibility } from '@appsemble/types';
5
+ import { type Argv } from 'yargs';
6
+ import { type BaseArguments } from '../../types.js';
7
7
  interface CreateAppArguments extends BaseArguments {
8
8
  context: string;
9
9
  icon: NodeJS.ReadStream | ReadStream;
@@ -1,5 +1,5 @@
1
- import { Argv } from 'yargs';
2
- import { BaseArguments } from '../../types.js';
1
+ import { type Argv } from 'yargs';
2
+ import { type BaseArguments } from '../../types.js';
3
3
  interface BuildBlockArguments extends BaseArguments {
4
4
  paths: string[];
5
5
  languages: string;
@@ -1,4 +1,4 @@
1
- import { Argv } from 'yargs';
1
+ import { type Argv } from 'yargs';
2
2
  export { noop as handler } from '@appsemble/utils';
3
3
  export declare const command = "app";
4
4
  export declare const description = "Commands related to apps.";
@@ -1,9 +1,9 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
- import { ReadStream } from 'node:fs';
4
- import { AppVisibility } from '@appsemble/types';
5
- import { Argv } from 'yargs';
6
- import { BaseArguments } from '../../types.js';
3
+ import { type ReadStream } from 'node:fs';
4
+ import { type AppVisibility } from '@appsemble/types';
5
+ import { type Argv } from 'yargs';
6
+ import { type BaseArguments } from '../../types.js';
7
7
  interface UpdateAppArguments extends BaseArguments {
8
8
  context: string;
9
9
  paths: string[];
@@ -1,5 +1,5 @@
1
- import { Argv } from 'yargs';
2
- import { BaseArguments } from '../../types.js';
1
+ import { type Argv } from 'yargs';
2
+ import { type BaseArguments } from '../../types.js';
3
3
  interface CreateAssetArguments extends BaseArguments {
4
4
  name: string;
5
5
  useFileName: boolean;
@@ -1,4 +1,4 @@
1
- import { Argv } from 'yargs';
1
+ import { type Argv } from 'yargs';
2
2
  export { noop as handler } from '@appsemble/utils';
3
3
  export declare const command = "asset";
4
4
  export declare const description = "Commands related to app assets.";
@@ -1,5 +1,5 @@
1
- import { Argv } from 'yargs';
2
- import { BaseArguments } from '../../types.js';
1
+ import { type Argv } from 'yargs';
2
+ import { type BaseArguments } from '../../types.js';
3
3
  interface BuildBlockArguments extends BaseArguments {
4
4
  paths: string[];
5
5
  }
@@ -1,5 +1,5 @@
1
- import { Argv } from 'yargs';
2
- import { BaseArguments } from '../../types.js';
1
+ import { type Argv } from 'yargs';
2
+ import { type BaseArguments } from '../../types.js';
3
3
  interface BuildBlockArguments extends BaseArguments {
4
4
  paths: string[];
5
5
  languages: string[];
@@ -1,4 +1,4 @@
1
- import { Argv } from 'yargs';
1
+ import { type Argv } from 'yargs';
2
2
  export { noop as handler } from '@appsemble/utils';
3
3
  export declare const command = "block";
4
4
  export declare const description = "Commands related to blocks.";
@@ -1,5 +1,5 @@
1
- import { Argv } from 'yargs';
2
- import { BaseArguments } from '../../types.js';
1
+ import { type Argv } from 'yargs';
2
+ import { type BaseArguments } from '../../types.js';
3
3
  interface PublishBlockArguments extends BaseArguments {
4
4
  paths: string[];
5
5
  build: boolean;
@@ -1,5 +1,5 @@
1
- import { Argv } from 'yargs';
2
- import { BaseArguments } from '../types.js';
1
+ import { type Argv } from 'yargs';
2
+ import { type BaseArguments } from '../types.js';
3
3
  export declare const command = "cleanup-resources";
4
4
  export declare const description = "Deletes all expired resources from the database.";
5
5
  export declare function builder(yargs: Argv): Argv<any>;
@@ -1,5 +1,5 @@
1
- import { Argv } from 'yargs';
2
- import { BaseArguments } from '../../types.js';
1
+ import { type Argv } from 'yargs';
2
+ import { type BaseArguments } from '../../types.js';
3
3
  interface ConfigGetArguments extends BaseArguments {
4
4
  key: string;
5
5
  }
@@ -1,4 +1,4 @@
1
- import { Argv } from 'yargs';
1
+ import { type Argv } from 'yargs';
2
2
  export { noop as handler } from '@appsemble/utils';
3
3
  export declare const command = "config";
4
4
  export declare const description = "Commands related to local configurations.";
@@ -1,5 +1,5 @@
1
- import { Argv } from 'yargs';
2
- import { BaseArguments } from '../../types.js';
1
+ import { type Argv } from 'yargs';
2
+ import { type BaseArguments } from '../../types.js';
3
3
  interface ConfigSetArguments extends BaseArguments {
4
4
  key: string;
5
5
  value: string;
@@ -1,5 +1,5 @@
1
- import { Argv } from 'yargs';
2
- import { BaseArguments } from '../types.js';
1
+ import { type Argv } from 'yargs';
2
+ import { type BaseArguments } from '../types.js';
3
3
  export declare const command = "migrate [migrate-to]";
4
4
  export declare const description = "Migrate the Appsemble database";
5
5
  export declare function builder(yargs: Argv): Argv<any>;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
- import { ReadStream } from 'node:fs';
3
- import { Argv } from 'yargs';
4
- import { BaseArguments } from '../../types.js';
2
+ import { type ReadStream } from 'node:fs';
3
+ import { type Argv } from 'yargs';
4
+ import { type BaseArguments } from '../../types.js';
5
5
  interface CreateOrganizationArguments extends BaseArguments {
6
6
  description: string;
7
7
  email: string;
@@ -1,4 +1,4 @@
1
- import { Argv } from 'yargs';
1
+ import { type Argv } from 'yargs';
2
2
  export { noop as handler } from '@appsemble/utils';
3
3
  export declare const command = "organization";
4
4
  export declare const description = "Commands related to organizations.";
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
- import { ReadStream } from 'node:fs';
3
- import { Argv } from 'yargs';
4
- import { BaseArguments } from '../../types.js';
2
+ import { type ReadStream } from 'node:fs';
3
+ import { type Argv } from 'yargs';
4
+ import { type BaseArguments } from '../../types.js';
5
5
  interface UpdateOrganizationArguments extends BaseArguments {
6
6
  description: string;
7
7
  email: string;
@@ -1,5 +1,5 @@
1
- import { Argv } from 'yargs';
2
- import { BaseArguments } from '../../types.js';
1
+ import { type Argv } from 'yargs';
2
+ import { type BaseArguments } from '../../types.js';
3
3
  interface CreateResourceArguments extends BaseArguments {
4
4
  resourceName: string;
5
5
  paths: string[];
@@ -1,4 +1,4 @@
1
- import { Argv } from 'yargs';
1
+ import { type Argv } from 'yargs';
2
2
  export { noop as handler } from '@appsemble/utils';
3
3
  export declare const command = "resource";
4
4
  export declare const description = "Commands related to resources.";
@@ -1,5 +1,5 @@
1
- import { Argv } from 'yargs';
2
- import { BaseArguments } from '../../types.js';
1
+ import { type Argv } from 'yargs';
2
+ import { type BaseArguments } from '../../types.js';
3
3
  interface CreateResourceArguments extends BaseArguments {
4
4
  resourceName: string;
5
5
  paths: string[];
@@ -1,5 +1,5 @@
1
- import { Argv } from 'yargs';
2
- import { BaseArguments } from '../types.js';
1
+ import { type Argv } from 'yargs';
2
+ import { type BaseArguments } from '../types.js';
3
3
  export declare const command = "run-cronjobs";
4
4
  export declare const description = "Runs all cronjobs associated with apps.";
5
5
  export declare function builder(yargs: Argv): Argv<any>;
@@ -1,5 +1,5 @@
1
- import { Argv } from 'yargs';
2
- import { BaseArguments } from '../types.js';
1
+ import { type Argv } from 'yargs';
2
+ import { type BaseArguments } from '../types.js';
3
3
  export declare const command = "start";
4
4
  export declare const description = "Start the Appsemble development server.";
5
5
  export declare function builder(yargs: Argv): Argv<any>;
@@ -1,5 +1,5 @@
1
- import { Argv } from 'yargs';
2
- import { BaseArguments } from '../../types.js';
1
+ import { type Argv } from 'yargs';
2
+ import { type BaseArguments } from '../../types.js';
3
3
  interface CreateTeamArguments extends BaseArguments {
4
4
  appId: number;
5
5
  name: string;
@@ -1,5 +1,5 @@
1
- import { Argv } from 'yargs';
2
- import { BaseArguments } from '../../types.js';
1
+ import { type Argv } from 'yargs';
2
+ import { type BaseArguments } from '../../types.js';
3
3
  interface DeleteTeamArguments extends BaseArguments {
4
4
  appId: number;
5
5
  id: number;
@@ -1,4 +1,4 @@
1
- import { Argv } from 'yargs';
1
+ import { type Argv } from 'yargs';
2
2
  export { noop as handler } from '@appsemble/utils';
3
3
  export declare const command = "team";
4
4
  export declare const description = "Commands related to app teams.";
@@ -1,5 +1,5 @@
1
- import { Argv } from 'yargs';
2
- import { BaseArguments } from '../../../types.js';
1
+ import { type Argv } from 'yargs';
2
+ import { type BaseArguments } from '../../../types.js';
3
3
  interface DeleteTeamArguments extends BaseArguments {
4
4
  appId: number;
5
5
  id: number;
@@ -1,4 +1,4 @@
1
- import { Argv } from 'yargs';
1
+ import { type Argv } from 'yargs';
2
2
  export { noop as handler } from '@appsemble/utils';
3
3
  export declare const command = "member";
4
4
  export declare const description = "Commands related to app team members.";
@@ -1,5 +1,5 @@
1
- import { Argv } from 'yargs';
2
- import { BaseArguments } from '../../../types.js';
1
+ import { type Argv } from 'yargs';
2
+ import { type BaseArguments } from '../../../types.js';
3
3
  interface InviteTeamArguments extends BaseArguments {
4
4
  appId: number;
5
5
  id: number;
@@ -1,6 +1,6 @@
1
1
  import { TeamRole } from '@appsemble/utils';
2
- import { Argv } from 'yargs';
3
- import { BaseArguments } from '../../../types.js';
2
+ import { type Argv } from 'yargs';
3
+ import { type BaseArguments } from '../../../types.js';
4
4
  interface InviteTeamArguments extends BaseArguments {
5
5
  appId: number;
6
6
  id: number;
@@ -1,5 +1,5 @@
1
- import { Argv } from 'yargs';
2
- import { BaseArguments } from '../../types.js';
1
+ import { type Argv } from 'yargs';
2
+ import { type BaseArguments } from '../../types.js';
3
3
  interface UpdateTeamArguments extends BaseArguments {
4
4
  appId: number;
5
5
  id: number;
package/lib/app.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
- import { ReadStream } from 'node:fs';
4
- import { AppVisibility } from '@appsemble/types';
3
+ import { type ReadStream } from 'node:fs';
4
+ import { type AppVisibility } from '@appsemble/types';
5
5
  import FormData from 'form-data';
6
- import { AppsembleContext, AppsembleRC } from '../types.js';
6
+ import { type AppsembleContext, type AppsembleRC } from '../types.js';
7
7
  interface CreateAppParams {
8
8
  /**
9
9
  * The OAuth2 client credentials to use.
@@ -150,7 +150,7 @@ export declare function uploadMessages(path: string, appId: number, remote: stri
150
150
  /**
151
151
  * @param path The path to the app directory.
152
152
  * @param languages A list of languages for which translations should be added in addition to the
153
- * existing ones.
153
+ * existing ones.
154
154
  * @param verify A list of languages to verify.
155
155
  * @param format The file format that should be used for the output.
156
156
  */
package/lib/app.js CHANGED
@@ -128,7 +128,7 @@ export async function uploadMessages(path, appId, remote, force) {
128
128
  /**
129
129
  * @param path The path to the app directory.
130
130
  * @param languages A list of languages for which translations should be added in addition to the
131
- * existing ones.
131
+ * existing ones.
132
132
  * @param verify A list of languages to verify.
133
133
  * @param format The file format that should be used for the output.
134
134
  */
@@ -1,4 +1,4 @@
1
- import { BaseArguments } from '../types.js';
1
+ import { type BaseArguments } from '../types.js';
2
2
  export declare const CREDENTIALS_ENV_VAR = "APPSEMBLE_CLIENT_CREDENTIALS";
3
3
  export declare function login({ clientCredentials, remote }: BaseArguments): Promise<void>;
4
4
  export declare function remove({ remote }: BaseArguments): Promise<void>;
@@ -7,7 +7,7 @@ export declare function remove({ remote }: BaseArguments): Promise<void>;
7
7
  *
8
8
  * @param remote Host to fetch token from.
9
9
  * @param scope The OAuth2 scope to request. This may be space separated to request
10
- * multiple scopes.
10
+ * multiple scopes.
11
11
  * @param inputCredentials Client credentials passed from the command line.
12
12
  */
13
13
  export declare function authenticate(remote: string, scope: string, inputCredentials: string): Promise<void>;
@@ -130,7 +130,7 @@ export async function remove({ remote }) {
130
130
  *
131
131
  * @param remote Host to fetch token from.
132
132
  * @param scope The OAuth2 scope to request. This may be space separated to request
133
- * multiple scopes.
133
+ * multiple scopes.
134
134
  * @param inputCredentials Client credentials passed from the command line.
135
135
  */
136
136
  export async function authenticate(remote, scope, inputCredentials) {
package/lib/block.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { BlockConfig } from '@appsemble/types';
1
+ import { type BlockConfig } from '@appsemble/types';
2
2
  import FormData from 'form-data';
3
- import { Stats } from 'webpack';
3
+ import { type Stats } from 'webpack';
4
4
  /**
5
5
  * Builds a block using Webpack.
6
6
  *
package/lib/coercers.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
- import { ReadStream } from 'node:fs';
3
+ import { type ReadStream } from 'node:fs';
4
4
  /**
5
5
  * Convert a remote to a valid URL.
6
6
  *
@@ -1,4 +1,4 @@
1
- import { BlockConfig, BlockManifest } from '@appsemble/types';
1
+ import { type BlockConfig, type BlockManifest } from '@appsemble/types';
2
2
  /**
3
3
  * Generate a block manifest from the block metadata and TypeScript project.
4
4
  *
@@ -30,8 +30,8 @@ function getNodeComments(checker, node) {
30
30
  * @param iface The TypeScript interface to check.
31
31
  * @param checker The TypeScript type checker.
32
32
  * @param convert A function for converting extracted data to a value. It will be called with the
33
- * name and JSDoc description. The name is `undefined` for index signatures. The function should
34
- * return a tuple of key and value.
33
+ * name and JSDoc description. The name is `undefined` for index signatures. The function should
34
+ * return a tuple of key and value.
35
35
  * @returns A record created from the returned key/value pairs.
36
36
  */
37
37
  function processInterface(iface, checker, convert) {
@@ -1,4 +1,4 @@
1
- import { BaseArguments } from '../types.js';
1
+ import { type BaseArguments } from '../types.js';
2
2
  /**
3
3
  * Configure the default axios URL.
4
4
  *
@@ -1,5 +1,5 @@
1
- import { BlockConfig } from '@appsemble/types';
2
- import { Configuration } from 'webpack';
1
+ import { type BlockConfig } from '@appsemble/types';
2
+ import { type Configuration } from 'webpack';
3
3
  /**
4
4
  * Load a webpack configuration file.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { ReadStream } from 'node:fs';
2
+ import { type ReadStream } from 'node:fs';
3
3
  interface CreateOrganizationArguments {
4
4
  description: string;
5
5
  email: string;
package/lib/output.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { ValidationError } from 'jsonschema';
1
+ import { type ValidationError } from 'jsonschema';
2
2
  export declare function printAxiosError(filename: string, yaml: string, errors: ValidationError[]): string;
package/lib/team.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { TeamRole } from '@appsemble/utils';
1
+ import { type TeamRole } from '@appsemble/utils';
2
2
  interface SharedTeamParams {
3
3
  /**
4
4
  * The ID of the app to create the team for.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/cli",
3
- "version": "0.20.42",
3
+ "version": "0.20.44",
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.42",
38
- "@appsemble/types": "0.20.42",
39
- "@appsemble/utils": "0.20.42",
37
+ "@appsemble/node-utils": "0.20.44",
38
+ "@appsemble/types": "0.20.44",
39
+ "@appsemble/utils": "0.20.44",
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.42",
65
+ "@appsemble/types": "0.20.44",
66
66
  "@types/concat-stream": "^2.0.0",
67
67
  "@types/inquirer": "^9.0.0",
68
68
  "@types/normalize-path": "^3.0.0",
package/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { AppVisibility } from '@appsemble/types';
2
- import { PackageJson } from 'read-pkg-up';
3
- import { JsonObject } from 'type-fest';
1
+ import { type AppVisibility } from '@appsemble/types';
2
+ import { type PackageJson } from 'read-pkg-up';
3
+ import { type JsonObject } from 'type-fest';
4
4
  /**
5
5
  * The base arguments from the command line.
6
6
  *