@appsemble/types 0.39.2 → 0.40.0

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.39.2/config/assets/logo.svg) Appsemble Types
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.40.0/config/assets/logo.svg) Appsemble Types
2
2
 
3
3
  > Reusable TypeScript types
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/types)](https://www.npmjs.com/package/@appsemble/types)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.39.2/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.39.2)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.40.0/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.40.0)
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.39.2/LICENSE.md) ©
29
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.40.0/LICENSE.md) ©
30
30
  [Appsemble](https://appsemble.com)
package/errors.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The code identifying a failed app definition validation in an error response.
3
+ *
4
+ * Error messages are prose and may be reworded at any time, so consumers match on this code
5
+ * instead. It is sent as the `code` property of the error response data, next to the `errors`
6
+ * array describing each validation error.
7
+ */
8
+ export declare const APP_VALIDATION_FAILED = "APP_VALIDATION_FAILED";
package/errors.js ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The code identifying a failed app definition validation in an error response.
3
+ *
4
+ * Error messages are prose and may be reworded at any time, so consumers match on this code
5
+ * instead. It is sent as the `code` property of the error response data, next to the `errors`
6
+ * array describing each validation error.
7
+ */
8
+ export const APP_VALIDATION_FAILED = 'APP_VALIDATION_FAILED';
9
+ //# sourceMappingURL=errors.js.map
package/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { type ActionType, type AppDefinition, type AppMemberInfo, type AppRole, type BlockManifest, type EventType, type ProjectConfig, type ProjectImplementations, type ProjectManifest, type Remapper } from '@appsemble/lang-sdk';
2
- import { type IconName } from '@fortawesome/fontawesome-common-types';
1
+ import { type ActionType, type AppDefinition, type AppMemberInfo, type AppRole, type BlockManifest, type EventType, type IconReference, type ProjectConfig, type ProjectImplementations, type ProjectManifest, type Remapper } from '@appsemble/lang-sdk';
3
2
  import { type AppVisibility } from './app.js';
4
3
  import { type PredefinedOrganizationRole } from './roles.js';
5
4
  export * from './app.js';
@@ -10,6 +9,7 @@ export * from './bulma.js';
10
9
  export * from './appCollection.js';
11
10
  export * from './cli.js';
12
11
  export * from './e2e.js';
12
+ export * from './errors.js';
13
13
  export * from './snapshot.js';
14
14
  export * from './resource.js';
15
15
  export * from './saml.js';
@@ -93,7 +93,7 @@ export interface AppLoginRoleMapping {
93
93
  export interface SSOConfiguration {
94
94
  type: 'oauth2' | 'saml';
95
95
  url: string;
96
- icon: IconName;
96
+ icon: IconReference;
97
97
  name: string;
98
98
  }
99
99
  export interface AppAccount {
@@ -704,7 +704,7 @@ export interface OAuth2Provider {
704
704
  /**
705
705
  * A Font Awesome icon which represents the OAuth2 provider.
706
706
  */
707
- icon: IconName;
707
+ icon: IconReference;
708
708
  /**
709
709
  * A display name which represents the OAuth2 provider.
710
710
  *
@@ -781,6 +781,14 @@ export interface AppServiceSecret extends AppServiceSecretDefinition {
781
781
  * An autogenerated ID.
782
782
  */
783
783
  id: number;
784
+ /**
785
+ * The provider’s message for the most recent failed client-credentials token request.
786
+ */
787
+ lastTokenError?: string | null;
788
+ /**
789
+ * When the most recent client-credentials token request failed.
790
+ */
791
+ lastTokenErrorAt?: string | null;
784
792
  }
785
793
  export interface AppWebhookSecretDefinition {
786
794
  /**
@@ -832,7 +840,7 @@ export interface WritableAppSamlSecret {
832
840
  /**
833
841
  * The icon that will be displayed on the login button.
834
842
  */
835
- icon: IconName;
843
+ icon: IconReference;
836
844
  /**
837
845
  * The certificate of the identity provider.
838
846
  */
package/index.js CHANGED
@@ -6,6 +6,7 @@ export * from './bulma.js';
6
6
  export * from './appCollection.js';
7
7
  export * from './cli.js';
8
8
  export * from './e2e.js';
9
+ export * from './errors.js';
9
10
  export * from './snapshot.js';
10
11
  export * from './resource.js';
11
12
  export * from './saml.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/types",
3
- "version": "0.39.2",
3
+ "version": "0.40.0",
4
4
  "description": "TypeScript definitions reused within Appsemble internally",
5
5
  "keywords": [
6
6
  "app",
@@ -40,7 +40,7 @@
40
40
  "test": "vitest"
41
41
  },
42
42
  "dependencies": {
43
- "@appsemble/lang-sdk": "0.39.2",
43
+ "@appsemble/lang-sdk": "0.40.0",
44
44
  "@fortawesome/fontawesome-common-types": "^6.0.0",
45
45
  "react": "^18.0.0"
46
46
  }