attlaz-client 1.18.8 → 1.18.9
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/dist/Client.d.ts +1 -1
- package/dist/Model/Adapter/Adapter.d.ts +1 -3
- package/dist/Model/Adapter/AdapterConnectionStatus.d.ts +1 -1
- package/dist/Model/Adapter/AdapterConnectionStatus.js +2 -3
- package/dist/Model/Config.d.ts +1 -3
- package/dist/Model/Config.js +1 -1
- package/dist/Model/DataValueCollection.js +1 -1
- package/dist/Model/EntityType.d.ts +1 -1
- package/dist/Model/EntityType.js +2 -3
- package/dist/Model/Flow/Flow.d.ts +1 -1
- package/dist/Model/Flow/Flow.js +2 -2
- package/dist/Model/Flow/FlowRun.d.ts +1 -1
- package/dist/Model/Flow/FlowRun.js +1 -1
- package/dist/Model/Flow/FlowRunHistory.js +1 -1
- package/dist/Model/Flow/FlowRunPriority.d.ts +1 -1
- package/dist/Model/Flow/FlowRunPriority.js +2 -3
- package/dist/Model/Flow/FlowRunStatus.d.ts +1 -1
- package/dist/Model/Flow/FlowRunStatus.js +2 -3
- package/dist/Model/Flow/FlowRunSummary.js +1 -1
- package/dist/Model/Flow/FlowSummary.js +1 -1
- package/dist/Model/HealthAlert/HealthAlert.d.ts +1 -1
- package/dist/Model/HealthAlert/HealthAlert.js +2 -2
- package/dist/Model/HealthAlert/HealthAlertStatus.d.ts +1 -1
- package/dist/Model/HealthAlert/HealthAlertStatus.js +2 -3
- package/dist/Model/HealthAlert/HealthTestType.d.ts +1 -1
- package/dist/Model/HealthAlert/HealthTestType.js +2 -3
- package/dist/Model/Log/LogLevel.d.ts +3 -3
- package/dist/Model/Log/LogLevel.js +6 -9
- package/dist/Model/Log/LogStatus.d.ts +1 -1
- package/dist/Model/Log/LogStatus.js +2 -3
- package/dist/Model/Messaging/Channel/Channel.d.ts +1 -1
- package/dist/Model/Messaging/Channel/Channel.js +1 -1
- package/dist/Model/Messaging/Channel/ChannelType.d.ts +1 -1
- package/dist/Model/Messaging/Channel/ChannelType.js +2 -3
- package/dist/Model/Messaging/Channel/SlackChannelData.d.ts +1 -1
- package/dist/Model/Messaging/Channel/SlackChannelData.js +6 -6
- package/dist/Model/Project/CodeDeploy.js +1 -1
- package/dist/Model/Project/CodeDeployStatus.d.ts +1 -1
- package/dist/Model/Project/CodeDeployStatus.js +2 -3
- package/dist/Model/Project/ProjectEnvironmentType.d.ts +1 -1
- package/dist/Model/Project/ProjectEnvironmentType.js +2 -3
- package/dist/Model/State.d.ts +1 -1
- package/dist/Model/State.js +2 -3
- package/dist/Model/Storage/StorageType.d.ts +1 -1
- package/dist/Model/Storage/StorageType.js +2 -3
- package/dist/Model/Worker/WorkerInstanceState.d.ts +1 -1
- package/dist/Model/Worker/WorkerInstanceState.js +2 -3
- package/dist/Model/Worker/WorkerState.d.ts +1 -1
- package/dist/Model/Worker/WorkerState.js +2 -3
- package/dist/Model/Workspace/WorkspaceMemberInviteState.d.ts +1 -1
- package/dist/Model/Workspace/WorkspaceMemberInviteState.js +2 -3
- package/dist/Service/AccessTokenEndpoint.d.ts +1 -1
- package/dist/Service/AccessTokenEndpoint.js +11 -11
- package/dist/Service/AdapterEndpoint.d.ts +1 -1
- package/dist/Service/AdapterEndpoint.js +5 -5
- package/dist/Service/ChannelEndpoint.d.ts +1 -1
- package/dist/Service/ChannelEndpoint.js +1 -1
- package/dist/Service/CodeDeployEndpoint.d.ts +1 -1
- package/dist/Service/CodeDeployEndpoint.js +1 -1
- package/dist/Service/CodeSourceStrategiesEndpoint.d.ts +1 -1
- package/dist/Service/CodeSourceStrategiesEndpoint.js +1 -1
- package/dist/Service/ConfigEndpoint.d.ts +1 -1
- package/dist/Service/ConfigEndpoint.js +10 -10
- package/dist/Service/Endpoint.d.ts +1 -3
- package/dist/Service/Endpoint.js +2 -6
- package/dist/Service/FirewallEndpoint.d.ts +1 -1
- package/dist/Service/FirewallEndpoint.js +1 -1
- package/dist/Service/FlowEndpoint.d.ts +1 -1
- package/dist/Service/FlowEndpoint.js +1 -1
- package/dist/Service/FlowRunEndpoint.d.ts +1 -1
- package/dist/Service/FlowRunEndpoint.js +1 -1
- package/dist/Service/FlowRunRequestEndpoint.d.ts +1 -1
- package/dist/Service/FlowRunRequestEndpoint.js +1 -1
- package/dist/Service/FlowRunStatsEndpoint.d.ts +1 -1
- package/dist/Service/FlowRunStatsEndpoint.js +1 -1
- package/dist/Service/QueueEndpoint.d.ts +1 -1
- package/dist/Service/QueueEndpoint.js +1 -1
- package/dist/Service/SearchEndpoint.d.ts +1 -1
- package/dist/Service/SearchEndpoint.js +1 -1
- package/dist/Service/SourcesAccountEndpoint.d.ts +1 -1
- package/dist/Service/SourcesAccountEndpoint.js +1 -1
- package/dist/Service/StorageEndpoint.d.ts +1 -1
- package/dist/Service/StorageEndpoint.js +1 -1
- package/dist/Service/SubscriberEndpoint.d.ts +1 -1
- package/dist/Service/SubscriberEndpoint.js +1 -1
- package/dist/Service/TriggerEndpoint.d.ts +1 -1
- package/dist/Service/TriggerEndpoint.js +1 -1
- package/dist/Service/UserActionEndpoint.d.ts +1 -1
- package/dist/Service/UserActionEndpoint.js +1 -1
- package/dist/Service/UserEndpoint.d.ts +1 -1
- package/dist/Service/UserEndpoint.js +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/package.json +1 -1
- package/dist/Model/Result/DataResult.d.ts +0 -18
- package/dist/Model/Result/DataResult.js +0 -67
package/dist/Client.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare class Client {
|
|
|
34
34
|
private readonly endpoints;
|
|
35
35
|
private httpClient;
|
|
36
36
|
private readonly Store;
|
|
37
|
-
private apiEndpoint;
|
|
37
|
+
private readonly apiEndpoint;
|
|
38
38
|
private parseConfig;
|
|
39
39
|
constructor(token?: string | null, config?: {
|
|
40
40
|
apiEndpoint: string | undefined;
|
|
@@ -7,7 +7,7 @@ export var AdapterConnectionStatus;
|
|
|
7
7
|
AdapterConnectionStatus["Critical"] = "critical";
|
|
8
8
|
})(AdapterConnectionStatus || (AdapterConnectionStatus = {}));
|
|
9
9
|
(function (AdapterConnectionStatus) {
|
|
10
|
-
|
|
10
|
+
AdapterConnectionStatus.fromString = (input) => {
|
|
11
11
|
if (input === 'pass') {
|
|
12
12
|
return AdapterConnectionStatus.Healthy;
|
|
13
13
|
}
|
|
@@ -22,6 +22,5 @@ export var AdapterConnectionStatus;
|
|
|
22
22
|
throw new Error('Unable to parse AdapterConnectionStatus from string: Unknown AdapterConnectionStatus "' + input + '"');
|
|
23
23
|
}
|
|
24
24
|
return result;
|
|
25
|
-
}
|
|
26
|
-
AdapterConnectionStatus.fromString = fromString;
|
|
25
|
+
};
|
|
27
26
|
})(AdapterConnectionStatus || (AdapterConnectionStatus = {}));
|
package/dist/Model/Config.d.ts
CHANGED
package/dist/Model/Config.js
CHANGED
package/dist/Model/EntityType.js
CHANGED
|
@@ -15,12 +15,11 @@ export var EntityType;
|
|
|
15
15
|
EntityType["ChannelSubscriber"] = "channel-subscriber";
|
|
16
16
|
})(EntityType || (EntityType = {}));
|
|
17
17
|
(function (EntityType) {
|
|
18
|
-
|
|
18
|
+
EntityType.fromString = (input) => {
|
|
19
19
|
const result = Utils.parseEnum(input, EntityType);
|
|
20
20
|
if (result === null) {
|
|
21
21
|
throw new Error('Unable to parse EntityType from string: Unknown EntityType "' + input + '"');
|
|
22
22
|
}
|
|
23
23
|
return result;
|
|
24
|
-
}
|
|
25
|
-
EntityType.fromString = fromString;
|
|
24
|
+
};
|
|
26
25
|
})(EntityType || (EntityType = {}));
|
|
@@ -12,6 +12,6 @@ export declare class Flow extends MetaDataAware implements StateAware {
|
|
|
12
12
|
/** The maximum number of flows to run at any time (0 = no limit) * */
|
|
13
13
|
parallelLimit: number;
|
|
14
14
|
codeSource: string | null;
|
|
15
|
-
|
|
15
|
+
runStrategy: string | null;
|
|
16
16
|
static parse(rawFlow: any): Flow;
|
|
17
17
|
}
|
package/dist/Model/Flow/Flow.js
CHANGED
|
@@ -13,7 +13,7 @@ export class Flow extends MetaDataAware {
|
|
|
13
13
|
/** The maximum number of flows to run at any time (0 = no limit) * */
|
|
14
14
|
parallelLimit = 0;
|
|
15
15
|
codeSource = null;
|
|
16
|
-
|
|
16
|
+
runStrategy = null;
|
|
17
17
|
static parse(rawFlow) {
|
|
18
18
|
const flow = new Flow();
|
|
19
19
|
flow.id = rawFlow.id;
|
|
@@ -25,7 +25,7 @@ export class Flow extends MetaDataAware {
|
|
|
25
25
|
flow.state = State.fromString(rawFlow.state);
|
|
26
26
|
flow.parallelLimit = Utils.parseInt(rawFlow.parallel_limit);
|
|
27
27
|
flow.codeSource = rawFlow.code_source;
|
|
28
|
-
flow.
|
|
28
|
+
flow.runStrategy = rawFlow.run_strategy;
|
|
29
29
|
if (Object.prototype.hasOwnProperty.call(rawFlow, 'metadata')) {
|
|
30
30
|
flow.metadata = DataValueCollection.fromObject(rawFlow.metadata);
|
|
31
31
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LogLevel } from '../Log/LogLevel.js';
|
|
2
|
-
import { FlowRunPriority } from './FlowRunPriority.js';
|
|
3
2
|
import { MetaDataAware } from '../../Core/MetaDataAware.js';
|
|
3
|
+
import { FlowRunPriority } from './FlowRunPriority.js';
|
|
4
4
|
export declare class FlowRun extends MetaDataAware {
|
|
5
5
|
id: string;
|
|
6
6
|
flowId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Utils } from '../../Utils.js';
|
|
2
|
-
import { FlowRunPriority } from './FlowRunPriority.js';
|
|
3
2
|
import { MetaDataAware } from '../../Core/MetaDataAware.js';
|
|
4
3
|
import { DataValueCollection } from '../DataValueCollection.js';
|
|
4
|
+
import { FlowRunPriority } from './FlowRunPriority.js';
|
|
5
5
|
export class FlowRun extends MetaDataAware {
|
|
6
6
|
id;
|
|
7
7
|
// public key: string;
|
|
@@ -7,12 +7,11 @@ export var FlowRunPriority;
|
|
|
7
7
|
FlowRunPriority[FlowRunPriority["High"] = 3] = "High";
|
|
8
8
|
})(FlowRunPriority || (FlowRunPriority = {}));
|
|
9
9
|
(function (FlowRunPriority) {
|
|
10
|
-
|
|
10
|
+
FlowRunPriority.fromString = (input) => {
|
|
11
11
|
const result = Utils.parseEnum(input, FlowRunPriority);
|
|
12
12
|
if (result === null) {
|
|
13
13
|
throw new Error('Unable to parse FlowRunPriority from string: Unknown FlowRunPriority "' + input + '"');
|
|
14
14
|
}
|
|
15
15
|
return result;
|
|
16
|
-
}
|
|
17
|
-
FlowRunPriority.fromString = fromString;
|
|
16
|
+
};
|
|
18
17
|
})(FlowRunPriority || (FlowRunPriority = {}));
|
|
@@ -10,12 +10,11 @@ export var FlowRunStatus;
|
|
|
10
10
|
FlowRunStatus[FlowRunStatus["Complete"] = 'complete'] = "Complete";
|
|
11
11
|
})(FlowRunStatus || (FlowRunStatus = {}));
|
|
12
12
|
(function (FlowRunStatus) {
|
|
13
|
-
|
|
13
|
+
FlowRunStatus.fromString = (input) => {
|
|
14
14
|
const result = Utils.parseEnum(input, FlowRunStatus);
|
|
15
15
|
if (result === null) {
|
|
16
16
|
throw new Error('Unable to parse FlowRunStatus from string: Unknown FlowRunStatus "' + input + '"');
|
|
17
17
|
}
|
|
18
18
|
return result;
|
|
19
|
-
}
|
|
20
|
-
FlowRunStatus.fromString = fromString;
|
|
19
|
+
};
|
|
21
20
|
})(FlowRunStatus || (FlowRunStatus = {}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { DataValueCollection } from '../DataValueCollection.js';
|
|
1
2
|
import { HealthTestType } from './HealthTestType.js';
|
|
2
3
|
import { HealthAlertStatus } from './HealthAlertStatus.js';
|
|
3
|
-
import { DataValueCollection } from '../DataValueCollection.js';
|
|
4
4
|
export declare class HealthAlert {
|
|
5
5
|
id: string;
|
|
6
6
|
scopeId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { HealthTestType } from './HealthTestType.js';
|
|
2
|
-
import { HealthAlertStatus } from './HealthAlertStatus.js';
|
|
3
1
|
import { Utils } from '../../Utils.js';
|
|
4
2
|
import { DataValueCollection } from '../DataValueCollection.js';
|
|
3
|
+
import { HealthTestType } from './HealthTestType.js';
|
|
4
|
+
import { HealthAlertStatus } from './HealthAlertStatus.js';
|
|
5
5
|
export class HealthAlert {
|
|
6
6
|
id;
|
|
7
7
|
scopeId;
|
|
@@ -6,12 +6,11 @@ export var HealthAlertStatus;
|
|
|
6
6
|
HealthAlertStatus["FAILED"] = "fail";
|
|
7
7
|
})(HealthAlertStatus || (HealthAlertStatus = {}));
|
|
8
8
|
(function (HealthAlertStatus) {
|
|
9
|
-
|
|
9
|
+
HealthAlertStatus.fromString = (input) => {
|
|
10
10
|
const result = Utils.parseEnum(input, HealthAlertStatus);
|
|
11
11
|
if (result === null) {
|
|
12
12
|
throw new Error('Unable to parse HealthAlertStatus from string: Unknown HealthAlertStatus "' + input + '"');
|
|
13
13
|
}
|
|
14
14
|
return result;
|
|
15
|
-
}
|
|
16
|
-
HealthAlertStatus.fromString = fromString;
|
|
15
|
+
};
|
|
17
16
|
})(HealthAlertStatus || (HealthAlertStatus = {}));
|
|
@@ -8,12 +8,11 @@ export var HealthTestType;
|
|
|
8
8
|
HealthTestType["FLOW_RUNS_ARE_SUCCESSFUL"] = "flow_runs_are_successful";
|
|
9
9
|
})(HealthTestType || (HealthTestType = {}));
|
|
10
10
|
(function (HealthTestType) {
|
|
11
|
-
|
|
11
|
+
HealthTestType.fromString = (input) => {
|
|
12
12
|
const result = Utils.parseEnum(input, HealthTestType);
|
|
13
13
|
if (result === null) {
|
|
14
14
|
throw new Error('Unable to parse HealthTestType from string: Unknown HealthTestType "' + input + '"');
|
|
15
15
|
}
|
|
16
16
|
return result;
|
|
17
|
-
}
|
|
18
|
-
HealthTestType.fromString = fromString;
|
|
17
|
+
};
|
|
19
18
|
})(HealthTestType || (HealthTestType = {}));
|
|
@@ -9,7 +9,7 @@ export declare enum LogLevel {
|
|
|
9
9
|
Emergency = "emergency"
|
|
10
10
|
}
|
|
11
11
|
export declare namespace LogLevel {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
const compare: (logLevelA: LogLevel, logLevelB: LogLevel) => number;
|
|
13
|
+
const toNumeric: (logLevel: LogLevel) => number;
|
|
14
|
+
const fromString: (input: string) => LogLevel;
|
|
15
15
|
}
|
|
@@ -11,7 +11,7 @@ export var LogLevel;
|
|
|
11
11
|
LogLevel["Emergency"] = "emergency";
|
|
12
12
|
})(LogLevel || (LogLevel = {}));
|
|
13
13
|
(function (LogLevel) {
|
|
14
|
-
|
|
14
|
+
LogLevel.compare = (logLevelA, logLevelB) => {
|
|
15
15
|
const logLevelANumeric = LogLevel.toNumeric(logLevelA);
|
|
16
16
|
const logLevelBNumeric = LogLevel.toNumeric(logLevelB);
|
|
17
17
|
if (logLevelANumeric > logLevelBNumeric) {
|
|
@@ -21,9 +21,8 @@ export var LogLevel;
|
|
|
21
21
|
return -1;
|
|
22
22
|
}
|
|
23
23
|
return 0;
|
|
24
|
-
}
|
|
25
|
-
LogLevel.
|
|
26
|
-
function toNumeric(logLevel) {
|
|
24
|
+
};
|
|
25
|
+
LogLevel.toNumeric = (logLevel) => {
|
|
27
26
|
switch (logLevel) {
|
|
28
27
|
case LogLevel.Debug:
|
|
29
28
|
return 100;
|
|
@@ -44,14 +43,12 @@ export var LogLevel;
|
|
|
44
43
|
default:
|
|
45
44
|
throw new Error('Unknown log level "' + logLevel + '"');
|
|
46
45
|
}
|
|
47
|
-
}
|
|
48
|
-
LogLevel.
|
|
49
|
-
function fromString(input) {
|
|
46
|
+
};
|
|
47
|
+
LogLevel.fromString = (input) => {
|
|
50
48
|
const result = Utils.parseEnum(input, LogLevel);
|
|
51
49
|
if (result === null) {
|
|
52
50
|
throw new Error('Unable to parse LogLevel from string: Unknown LogLevel "' + input + '"');
|
|
53
51
|
}
|
|
54
52
|
return result;
|
|
55
|
-
}
|
|
56
|
-
LogLevel.fromString = fromString;
|
|
53
|
+
};
|
|
57
54
|
})(LogLevel || (LogLevel = {}));
|
|
@@ -6,12 +6,11 @@ export var LogStatus;
|
|
|
6
6
|
LogStatus["Resolved"] = "resolved";
|
|
7
7
|
})(LogStatus || (LogStatus = {}));
|
|
8
8
|
(function (LogStatus) {
|
|
9
|
-
|
|
9
|
+
LogStatus.fromString = (input) => {
|
|
10
10
|
const result = Utils.parseEnum(input, LogStatus);
|
|
11
11
|
if (result === null) {
|
|
12
12
|
throw new Error('Unable to parse LogStatus from string: Unknown LogStatus "' + input + '"');
|
|
13
13
|
}
|
|
14
14
|
return result;
|
|
15
|
-
}
|
|
16
|
-
LogStatus.fromString = fromString;
|
|
15
|
+
};
|
|
17
16
|
})(LogStatus || (LogStatus = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ChannelType } from './ChannelType.js';
|
|
2
1
|
import { State } from '../../State.js';
|
|
3
2
|
import { StateAware } from '../../StateAware.js';
|
|
4
3
|
import { MetaDataAware } from '../../../Core/MetaDataAware.js';
|
|
4
|
+
import { ChannelType } from './ChannelType.js';
|
|
5
5
|
export declare class Channel extends MetaDataAware implements StateAware {
|
|
6
6
|
id: string;
|
|
7
7
|
ownerId: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ChannelType } from './ChannelType.js';
|
|
2
1
|
import { State } from '../../State.js';
|
|
3
2
|
import { Utils } from '../../../Utils.js';
|
|
4
3
|
import { MetaDataAware } from '../../../Core/MetaDataAware.js';
|
|
5
4
|
import { DataValueCollection } from '../../DataValueCollection.js';
|
|
5
|
+
import { ChannelType } from './ChannelType.js';
|
|
6
6
|
export class Channel extends MetaDataAware {
|
|
7
7
|
id;
|
|
8
8
|
ownerId;
|
|
@@ -8,12 +8,11 @@ export var ChannelType;
|
|
|
8
8
|
ChannelType["Webhook"] = "webhook";
|
|
9
9
|
})(ChannelType || (ChannelType = {}));
|
|
10
10
|
(function (ChannelType) {
|
|
11
|
-
|
|
11
|
+
ChannelType.fromString = (input) => {
|
|
12
12
|
const result = Utils.parseEnum(input, ChannelType);
|
|
13
13
|
if (result === null) {
|
|
14
14
|
throw new Error('Unable to parse ChannelType from string: Unknown ChannelType "' + input + '"');
|
|
15
15
|
}
|
|
16
16
|
return result;
|
|
17
|
-
}
|
|
18
|
-
ChannelType.fromString = fromString;
|
|
17
|
+
};
|
|
19
18
|
})(ChannelType || (ChannelType = {}));
|
|
@@ -6,5 +6,5 @@ export declare class SlackChannelData extends ChannelData {
|
|
|
6
6
|
channel_name: string;
|
|
7
7
|
team_id: string;
|
|
8
8
|
team_name: string;
|
|
9
|
-
constructor(
|
|
9
|
+
constructor(accessToken: string, webhook: string, channelId: string, channelName: string, teamId: string, teamName: string);
|
|
10
10
|
}
|
|
@@ -7,13 +7,13 @@ export class SlackChannelData extends ChannelData {
|
|
|
7
7
|
channel_name;
|
|
8
8
|
team_id;
|
|
9
9
|
team_name;
|
|
10
|
-
constructor(
|
|
10
|
+
constructor(accessToken, webhook, channelId, channelName, teamId, teamName) {
|
|
11
11
|
super(ChannelType.Slack);
|
|
12
|
-
this.access_token =
|
|
12
|
+
this.access_token = accessToken;
|
|
13
13
|
this.webhook = webhook;
|
|
14
|
-
this.channel_id =
|
|
15
|
-
this.channel_name =
|
|
16
|
-
this.team_id =
|
|
17
|
-
this.team_name =
|
|
14
|
+
this.channel_id = channelId;
|
|
15
|
+
this.channel_name = channelName;
|
|
16
|
+
this.team_id = teamId;
|
|
17
|
+
this.team_name = teamName;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -10,12 +10,11 @@ export var CodeDeployStatus;
|
|
|
10
10
|
CodeDeployStatus["Complete"] = "complete";
|
|
11
11
|
})(CodeDeployStatus || (CodeDeployStatus = {}));
|
|
12
12
|
(function (CodeDeployStatus) {
|
|
13
|
-
|
|
13
|
+
CodeDeployStatus.fromString = (input) => {
|
|
14
14
|
const result = Utils.parseEnum(input, CodeDeployStatus);
|
|
15
15
|
if (result === null) {
|
|
16
16
|
throw new Error('Unable to parse CodeDeployStatus from string: Unknown CodeDeployStatus "' + input + '"');
|
|
17
17
|
}
|
|
18
18
|
return result;
|
|
19
|
-
}
|
|
20
|
-
CodeDeployStatus.fromString = fromString;
|
|
19
|
+
};
|
|
21
20
|
})(CodeDeployStatus || (CodeDeployStatus = {}));
|
|
@@ -6,12 +6,11 @@ export var ProjectEnvironmentType;
|
|
|
6
6
|
ProjectEnvironmentType["Local"] = "locl";
|
|
7
7
|
})(ProjectEnvironmentType || (ProjectEnvironmentType = {}));
|
|
8
8
|
(function (ProjectEnvironmentType) {
|
|
9
|
-
|
|
9
|
+
ProjectEnvironmentType.fromString = (input) => {
|
|
10
10
|
const result = Utils.parseEnum(input, ProjectEnvironmentType);
|
|
11
11
|
if (result === null) {
|
|
12
12
|
throw new Error('Unable to parse ProjectEnvironmentType from string: Unknown ProjectEnvironmentType "' + input + '"');
|
|
13
13
|
}
|
|
14
14
|
return result;
|
|
15
|
-
}
|
|
16
|
-
ProjectEnvironmentType.fromString = fromString;
|
|
15
|
+
};
|
|
17
16
|
})(ProjectEnvironmentType || (ProjectEnvironmentType = {}));
|
package/dist/Model/State.d.ts
CHANGED
package/dist/Model/State.js
CHANGED
|
@@ -6,12 +6,11 @@ export var State;
|
|
|
6
6
|
State["Removed"] = "removed";
|
|
7
7
|
})(State || (State = {}));
|
|
8
8
|
(function (State) {
|
|
9
|
-
|
|
9
|
+
State.fromString = (input) => {
|
|
10
10
|
const result = Utils.parseEnum(input, State);
|
|
11
11
|
if (result === null) {
|
|
12
12
|
throw new Error('Unable to parse State from string: Unknown State "' + input + '"');
|
|
13
13
|
}
|
|
14
14
|
return result;
|
|
15
|
-
}
|
|
16
|
-
State.fromString = fromString;
|
|
15
|
+
};
|
|
17
16
|
})(State || (State = {}));
|
|
@@ -7,12 +7,11 @@ export var StorageType;
|
|
|
7
7
|
StorageType["Infrastructure"] = "infrastructure";
|
|
8
8
|
})(StorageType || (StorageType = {}));
|
|
9
9
|
(function (StorageType) {
|
|
10
|
-
|
|
10
|
+
StorageType.fromString = (input) => {
|
|
11
11
|
const result = Utils.parseEnum(input, StorageType);
|
|
12
12
|
if (result === null) {
|
|
13
13
|
throw new Error('Unable to parse StorageType from string: Unknown StorageType "' + input + '"');
|
|
14
14
|
}
|
|
15
15
|
return result;
|
|
16
|
-
}
|
|
17
|
-
StorageType.fromString = fromString;
|
|
16
|
+
};
|
|
18
17
|
})(StorageType || (StorageType = {}));
|
|
@@ -6,12 +6,11 @@ export var WorkerInstanceState;
|
|
|
6
6
|
WorkerInstanceState["Error"] = "Error";
|
|
7
7
|
})(WorkerInstanceState || (WorkerInstanceState = {}));
|
|
8
8
|
(function (WorkerInstanceState) {
|
|
9
|
-
|
|
9
|
+
WorkerInstanceState.fromString = (input) => {
|
|
10
10
|
const result = Utils.parseEnum(input, WorkerInstanceState);
|
|
11
11
|
if (result === null) {
|
|
12
12
|
throw new Error('Unable to parse WorkerInstanceState from string: Unknown WorkerInstanceState "' + input + '"');
|
|
13
13
|
}
|
|
14
14
|
return result;
|
|
15
|
-
}
|
|
16
|
-
WorkerInstanceState.fromString = fromString;
|
|
15
|
+
};
|
|
17
16
|
})(WorkerInstanceState || (WorkerInstanceState = {}));
|
|
@@ -8,12 +8,11 @@ export var WorkerState;
|
|
|
8
8
|
WorkerState["NonExisting"] = "NonExisting";
|
|
9
9
|
})(WorkerState || (WorkerState = {}));
|
|
10
10
|
(function (WorkerState) {
|
|
11
|
-
|
|
11
|
+
WorkerState.fromString = (input) => {
|
|
12
12
|
const result = Utils.parseEnum(input, WorkerState);
|
|
13
13
|
if (result === null) {
|
|
14
14
|
throw new Error('Unable to parse WorkerState from string: Unknown WorkerState "' + input + '"');
|
|
15
15
|
}
|
|
16
16
|
return result;
|
|
17
|
-
}
|
|
18
|
-
WorkerState.fromString = fromString;
|
|
17
|
+
};
|
|
19
18
|
})(WorkerState || (WorkerState = {}));
|
|
@@ -9,12 +9,11 @@ export var WorkspaceMemberInviteState;
|
|
|
9
9
|
WorkspaceMemberInviteState["Removed"] = "removed";
|
|
10
10
|
})(WorkspaceMemberInviteState || (WorkspaceMemberInviteState = {}));
|
|
11
11
|
(function (WorkspaceMemberInviteState) {
|
|
12
|
-
|
|
12
|
+
WorkspaceMemberInviteState.fromString = (input) => {
|
|
13
13
|
const result = Utils.parseEnum(input, WorkspaceMemberInviteState);
|
|
14
14
|
if (result === null) {
|
|
15
15
|
throw new Error('Unable to parse WorkspaceMemberInviteState from string: Unknown WorkspaceMemberInviteState "' + input + '"');
|
|
16
16
|
}
|
|
17
17
|
return result;
|
|
18
|
-
}
|
|
19
|
-
WorkspaceMemberInviteState.fromString = fromString;
|
|
18
|
+
};
|
|
20
19
|
})(WorkspaceMemberInviteState || (WorkspaceMemberInviteState = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Endpoint } from './Endpoint.js';
|
|
2
1
|
import { CollectionResult } from '../Model/Result/CollectionResult.js';
|
|
3
2
|
import { CursorPagination } from '../Model/Pagination/CursorPagination.js';
|
|
4
3
|
import { UserAccessToken } from '../Model/AccessToken/UserAccessToken.js';
|
|
4
|
+
import { Endpoint } from './Endpoint.js';
|
|
5
5
|
export declare class AccessTokenEndpoint extends Endpoint {
|
|
6
6
|
getByUser(pagination: CursorPagination): Promise<CollectionResult<UserAccessToken>>;
|
|
7
7
|
create(name: string, scopes: string[], expiresAt: Date): Promise<UserAccessToken>;
|