attlaz-client 1.15.5 → 1.15.7

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.
@@ -1,9 +1,10 @@
1
+ import { AdapterConnectionStatus } from './AdapterConnectionStatus.js';
1
2
  export declare class AdapterConnection {
2
3
  id: string;
3
4
  key: string;
4
5
  adapter: string;
5
6
  name: string;
6
7
  projectId: string;
7
- status: string;
8
+ status: AdapterConnectionStatus;
8
9
  static parse(rawAdapterConnection: any): AdapterConnection;
9
10
  }
@@ -0,0 +1,9 @@
1
+ export declare enum AdapterConnectionStatus {
2
+ Unknown = "unknown",
3
+ Healthy = "healthy",
4
+ Warning = "warning",
5
+ Critical = "critical"
6
+ }
7
+ export declare namespace AdapterConnectionStatus {
8
+ function fromString(input: string): AdapterConnectionStatus;
9
+ }
@@ -0,0 +1,27 @@
1
+ import { Utils } from '../../Utils.js';
2
+ export var AdapterConnectionStatus;
3
+ (function (AdapterConnectionStatus) {
4
+ AdapterConnectionStatus["Unknown"] = "unknown";
5
+ AdapterConnectionStatus["Healthy"] = "healthy";
6
+ AdapterConnectionStatus["Warning"] = "warning";
7
+ AdapterConnectionStatus["Critical"] = "critical";
8
+ })(AdapterConnectionStatus || (AdapterConnectionStatus = {}));
9
+ (function (AdapterConnectionStatus) {
10
+ function fromString(input) {
11
+ if (input === 'pass') {
12
+ return AdapterConnectionStatus.Healthy;
13
+ }
14
+ if (input === 'skip') {
15
+ return AdapterConnectionStatus.Unknown;
16
+ }
17
+ if (input === 'fail') {
18
+ return AdapterConnectionStatus.Critical;
19
+ }
20
+ const result = Utils.parseEnum(input, AdapterConnectionStatus);
21
+ if (result === null) {
22
+ throw new Error('Unable to parse AdapterConnectionStatus from string: Unknown AdapterConnectionStatus "' + input + '"');
23
+ }
24
+ return result;
25
+ }
26
+ AdapterConnectionStatus.fromString = fromString;
27
+ })(AdapterConnectionStatus || (AdapterConnectionStatus = {}));
@@ -1,6 +1,6 @@
1
1
  import { FlowRunStatus } from './FlowRunStatus.js';
2
2
  export declare class FlowRunHistory {
3
- id: number;
3
+ id: string;
4
4
  time: Date;
5
5
  status: FlowRunStatus;
6
6
  static parse(rawFlowRunHistory: any): FlowRunHistory;
@@ -1,7 +1,7 @@
1
1
  export declare class ChannelHistory {
2
- id: number;
2
+ id: string;
3
3
  subscriberId: string;
4
- channelId: number;
4
+ channelId: string;
5
5
  time: Date;
6
6
  message: any;
7
7
  success: boolean;
@@ -1,7 +1,7 @@
1
1
  import { State } from '../State.js';
2
2
  import { StateAware } from '../StateAware.js';
3
3
  export declare class UserAuthProvider implements StateAware {
4
- id: number;
4
+ id: string;
5
5
  userId: string;
6
6
  provider: string;
7
7
  providerUserId: string;
@@ -4,7 +4,7 @@ import { User } from '../Model/User/User.js';
4
4
  import { CollectionResult } from '../Model/Result/CollectionResult.js';
5
5
  export declare class UserEndpoint extends Endpoint {
6
6
  getUser(): Promise<User | null>;
7
- removeAuthProvider(providerId: number): Promise<boolean>;
7
+ removeAuthProvider(providerId: string): Promise<boolean>;
8
8
  getAuthProviders(): Promise<CollectionResult<UserAuthProvider>>;
9
9
  getPermissions(): Promise<CollectionResult<{
10
10
  key: string;
package/dist/index.d.ts CHANGED
@@ -19,6 +19,7 @@ export { Adapter } from './Model/Adapter/Adapter.js';
19
19
  export { AdapterConfiguration } from './Model/Adapter/AdapterConfiguration.js';
20
20
  export { AdapterConnection } from './Model/Adapter/AdapterConnection.js';
21
21
  export { AdapterCategory } from './Model/Adapter/AdapterCategory.js';
22
+ export { AdapterConnectionStatus } from './Model/Adapter/AdapterConnectionStatus.js';
22
23
  export { AdapterConnectionConfigurationValue } from './Model/Adapter/AdapterConnectionConfigurationValue.js';
23
24
  export { EventType } from './Model/Event/EventType.js';
24
25
  export { HealthAlert } from './Model/HealthAlert/HealthAlert.js';
package/dist/index.js CHANGED
@@ -14,6 +14,7 @@ export { Adapter } from './Model/Adapter/Adapter.js';
14
14
  export { AdapterConfiguration } from './Model/Adapter/AdapterConfiguration.js';
15
15
  export { AdapterConnection } from './Model/Adapter/AdapterConnection.js';
16
16
  export { AdapterCategory } from './Model/Adapter/AdapterCategory.js';
17
+ export { AdapterConnectionStatus } from './Model/Adapter/AdapterConnectionStatus.js';
17
18
  export { AdapterConnectionConfigurationValue } from './Model/Adapter/AdapterConnectionConfigurationValue.js';
18
19
  export { EventType } from './Model/Event/EventType.js';
19
20
  export { HealthAlert } from './Model/HealthAlert/HealthAlert.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.15.5",
3
+ "version": "1.15.7",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",