attlaz-client 1.18.7 → 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.
Files changed (98) hide show
  1. package/dist/Client.d.ts +1 -1
  2. package/dist/Model/Adapter/Adapter.d.ts +1 -3
  3. package/dist/Model/Adapter/AdapterConnectionStatus.d.ts +1 -1
  4. package/dist/Model/Adapter/AdapterConnectionStatus.js +2 -3
  5. package/dist/Model/Config.d.ts +1 -3
  6. package/dist/Model/Config.js +1 -1
  7. package/dist/Model/DataValueCollection.js +1 -1
  8. package/dist/Model/EntityType.d.ts +1 -1
  9. package/dist/Model/EntityType.js +2 -3
  10. package/dist/Model/Flow/Flow.d.ts +1 -1
  11. package/dist/Model/Flow/Flow.js +2 -2
  12. package/dist/Model/Flow/FlowRun.d.ts +1 -1
  13. package/dist/Model/Flow/FlowRun.js +1 -1
  14. package/dist/Model/Flow/FlowRunHistory.js +1 -1
  15. package/dist/Model/Flow/FlowRunPriority.d.ts +1 -1
  16. package/dist/Model/Flow/FlowRunPriority.js +2 -3
  17. package/dist/Model/Flow/FlowRunStatus.d.ts +1 -1
  18. package/dist/Model/Flow/FlowRunStatus.js +2 -3
  19. package/dist/Model/Flow/FlowRunSummary.js +1 -1
  20. package/dist/Model/Flow/FlowSummary.js +1 -1
  21. package/dist/Model/HealthAlert/HealthAlert.d.ts +1 -1
  22. package/dist/Model/HealthAlert/HealthAlert.js +2 -2
  23. package/dist/Model/HealthAlert/HealthAlertStatus.d.ts +1 -1
  24. package/dist/Model/HealthAlert/HealthAlertStatus.js +2 -3
  25. package/dist/Model/HealthAlert/HealthTestType.d.ts +1 -1
  26. package/dist/Model/HealthAlert/HealthTestType.js +2 -3
  27. package/dist/Model/Log/LogLevel.d.ts +3 -3
  28. package/dist/Model/Log/LogLevel.js +6 -9
  29. package/dist/Model/Log/LogStatus.d.ts +1 -1
  30. package/dist/Model/Log/LogStatus.js +2 -3
  31. package/dist/Model/Messaging/Channel/Channel.d.ts +1 -1
  32. package/dist/Model/Messaging/Channel/Channel.js +1 -1
  33. package/dist/Model/Messaging/Channel/ChannelType.d.ts +1 -1
  34. package/dist/Model/Messaging/Channel/ChannelType.js +2 -3
  35. package/dist/Model/Messaging/Channel/SlackChannelData.d.ts +1 -1
  36. package/dist/Model/Messaging/Channel/SlackChannelData.js +6 -6
  37. package/dist/Model/Project/CodeDeploy.js +1 -1
  38. package/dist/Model/Project/CodeDeployStatus.d.ts +1 -1
  39. package/dist/Model/Project/CodeDeployStatus.js +2 -3
  40. package/dist/Model/Project/ProjectEnvironmentType.d.ts +1 -1
  41. package/dist/Model/Project/ProjectEnvironmentType.js +2 -3
  42. package/dist/Model/State.d.ts +1 -1
  43. package/dist/Model/State.js +2 -3
  44. package/dist/Model/Storage/StorageType.d.ts +1 -1
  45. package/dist/Model/Storage/StorageType.js +2 -3
  46. package/dist/Model/Worker/WorkerInstanceState.d.ts +1 -1
  47. package/dist/Model/Worker/WorkerInstanceState.js +2 -3
  48. package/dist/Model/Worker/WorkerState.d.ts +1 -1
  49. package/dist/Model/Worker/WorkerState.js +2 -3
  50. package/dist/Model/Workspace/WorkspaceMemberInviteState.d.ts +1 -1
  51. package/dist/Model/Workspace/WorkspaceMemberInviteState.js +2 -3
  52. package/dist/Service/AccessTokenEndpoint.d.ts +1 -1
  53. package/dist/Service/AccessTokenEndpoint.js +11 -11
  54. package/dist/Service/AdapterEndpoint.d.ts +1 -1
  55. package/dist/Service/AdapterEndpoint.js +5 -5
  56. package/dist/Service/ChannelEndpoint.d.ts +1 -1
  57. package/dist/Service/ChannelEndpoint.js +1 -1
  58. package/dist/Service/CodeDeployEndpoint.d.ts +1 -1
  59. package/dist/Service/CodeDeployEndpoint.js +1 -1
  60. package/dist/Service/CodeSourceStrategiesEndpoint.d.ts +1 -1
  61. package/dist/Service/CodeSourceStrategiesEndpoint.js +1 -1
  62. package/dist/Service/ConfigEndpoint.d.ts +1 -1
  63. package/dist/Service/ConfigEndpoint.js +10 -10
  64. package/dist/Service/Endpoint.d.ts +1 -3
  65. package/dist/Service/Endpoint.js +2 -6
  66. package/dist/Service/FirewallEndpoint.d.ts +1 -1
  67. package/dist/Service/FirewallEndpoint.js +1 -1
  68. package/dist/Service/FlowEndpoint.d.ts +1 -1
  69. package/dist/Service/FlowEndpoint.js +1 -1
  70. package/dist/Service/FlowRunEndpoint.d.ts +1 -1
  71. package/dist/Service/FlowRunEndpoint.js +1 -1
  72. package/dist/Service/FlowRunRequestEndpoint.d.ts +1 -1
  73. package/dist/Service/FlowRunRequestEndpoint.js +1 -1
  74. package/dist/Service/FlowRunStatsEndpoint.d.ts +1 -1
  75. package/dist/Service/FlowRunStatsEndpoint.js +1 -1
  76. package/dist/Service/PlatformEndpoint.d.ts +2 -2
  77. package/dist/Service/PlatformEndpoint.js +2 -2
  78. package/dist/Service/QueueEndpoint.d.ts +1 -1
  79. package/dist/Service/QueueEndpoint.js +1 -1
  80. package/dist/Service/SearchEndpoint.d.ts +1 -1
  81. package/dist/Service/SearchEndpoint.js +1 -1
  82. package/dist/Service/SourcesAccountEndpoint.d.ts +1 -1
  83. package/dist/Service/SourcesAccountEndpoint.js +1 -1
  84. package/dist/Service/StorageEndpoint.d.ts +1 -1
  85. package/dist/Service/StorageEndpoint.js +1 -1
  86. package/dist/Service/SubscriberEndpoint.d.ts +1 -1
  87. package/dist/Service/SubscriberEndpoint.js +1 -1
  88. package/dist/Service/TriggerEndpoint.d.ts +1 -1
  89. package/dist/Service/TriggerEndpoint.js +1 -1
  90. package/dist/Service/UserActionEndpoint.d.ts +1 -1
  91. package/dist/Service/UserActionEndpoint.js +1 -1
  92. package/dist/Service/UserEndpoint.d.ts +1 -1
  93. package/dist/Service/UserEndpoint.js +1 -1
  94. package/dist/index.d.ts +0 -1
  95. package/dist/index.js +0 -1
  96. package/package.json +1 -1
  97. package/dist/Model/Result/DataResult.d.ts +0 -18
  98. 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;
@@ -9,7 +9,5 @@ export declare class Adapter {
9
9
  categoryIds: string[];
10
10
  docs: string;
11
11
  website: string;
12
- static parse(rawAdapter: {
13
- [k: string]: any;
14
- }): Adapter;
12
+ static parse(rawAdapter: Record<string, any>): Adapter;
15
13
  }
@@ -5,5 +5,5 @@ export declare enum AdapterConnectionStatus {
5
5
  Critical = "critical"
6
6
  }
7
7
  export declare namespace AdapterConnectionStatus {
8
- function fromString(input: string): AdapterConnectionStatus;
8
+ const fromString: (input: string) => AdapterConnectionStatus;
9
9
  }
@@ -7,7 +7,7 @@ export var AdapterConnectionStatus;
7
7
  AdapterConnectionStatus["Critical"] = "critical";
8
8
  })(AdapterConnectionStatus || (AdapterConnectionStatus = {}));
9
9
  (function (AdapterConnectionStatus) {
10
- function fromString(input) {
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 = {}));
@@ -10,7 +10,5 @@ export declare class Config {
10
10
  inheritable: boolean;
11
11
  sensitive: boolean;
12
12
  state: State;
13
- static parse(rawConfig: {
14
- [k: string]: any;
15
- }): Config;
13
+ static parse(rawConfig: Record<string, any>): Config;
16
14
  }
@@ -1,5 +1,5 @@
1
- import { State } from './State.js';
2
1
  import { Utils } from '../Utils.js';
2
+ import { State } from './State.js';
3
3
  export class Config {
4
4
  id;
5
5
  projectId;
@@ -1,5 +1,5 @@
1
- import { DataValue } from './DataValue.js';
2
1
  import { Utils } from '../Utils.js';
2
+ import { DataValue } from './DataValue.js';
3
3
  import { JsonSerializable } from './JsonSerializable.js';
4
4
  export class DataValueCollection extends JsonSerializable {
5
5
  _values = [];
@@ -13,5 +13,5 @@ export declare enum EntityType {
13
13
  ChannelSubscriber = "channel-subscriber"
14
14
  }
15
15
  export declare namespace EntityType {
16
- function fromString(input: string): EntityType;
16
+ const fromString: (input: string) => EntityType;
17
17
  }
@@ -15,12 +15,11 @@ export var EntityType;
15
15
  EntityType["ChannelSubscriber"] = "channel-subscriber";
16
16
  })(EntityType || (EntityType = {}));
17
17
  (function (EntityType) {
18
- function fromString(input) {
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
- runCommand: string | null;
15
+ runStrategy: string | null;
16
16
  static parse(rawFlow: any): Flow;
17
17
  }
@@ -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
- runCommand = null;
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.runCommand = rawFlow.run_command;
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;
@@ -1,5 +1,5 @@
1
- import { FlowRunStatus } from './FlowRunStatus.js';
2
1
  import { Utils } from '../../Utils.js';
2
+ import { FlowRunStatus } from './FlowRunStatus.js';
3
3
  export class FlowRunHistory {
4
4
  id;
5
5
  time;
@@ -5,5 +5,5 @@ export declare enum FlowRunPriority {
5
5
  High = 3
6
6
  }
7
7
  export declare namespace FlowRunPriority {
8
- function fromString(input: string): FlowRunPriority;
8
+ const fromString: (input: string) => FlowRunPriority;
9
9
  }
@@ -7,12 +7,11 @@ export var FlowRunPriority;
7
7
  FlowRunPriority[FlowRunPriority["High"] = 3] = "High";
8
8
  })(FlowRunPriority || (FlowRunPriority = {}));
9
9
  (function (FlowRunPriority) {
10
- function fromString(input) {
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 = {}));
@@ -8,5 +8,5 @@ export declare enum FlowRunStatus {
8
8
  Complete
9
9
  }
10
10
  export declare namespace FlowRunStatus {
11
- function fromString(input: string): FlowRunStatus;
11
+ const fromString: (input: string) => FlowRunStatus;
12
12
  }
@@ -10,12 +10,11 @@ export var FlowRunStatus;
10
10
  FlowRunStatus[FlowRunStatus["Complete"] = 'complete'] = "Complete";
11
11
  })(FlowRunStatus || (FlowRunStatus = {}));
12
12
  (function (FlowRunStatus) {
13
- function fromString(input) {
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 { Utils } from '../../Utils.js';
1
2
  import { FlowRunStatus } from './FlowRunStatus.js';
2
3
  import { FlowRun } from './FlowRun.js';
3
- import { Utils } from '../../Utils.js';
4
4
  export class FlowRunSummary extends FlowRun {
5
5
  time;
6
6
  runDuration;
@@ -1,6 +1,6 @@
1
+ import { Utils } from '../../Utils.js';
1
2
  import { FlowRunStatus } from './FlowRunStatus.js';
2
3
  import { Flow } from './Flow.js';
3
- import { Utils } from '../../Utils.js';
4
4
  export class FlowSummary extends Flow {
5
5
  status = FlowRunStatus.Unknown;
6
6
  latestRun = null;
@@ -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;
@@ -4,5 +4,5 @@ export declare enum HealthAlertStatus {
4
4
  FAILED = "fail"
5
5
  }
6
6
  export declare namespace HealthAlertStatus {
7
- function fromString(input: string): HealthAlertStatus;
7
+ const fromString: (input: string) => HealthAlertStatus;
8
8
  }
@@ -6,12 +6,11 @@ export var HealthAlertStatus;
6
6
  HealthAlertStatus["FAILED"] = "fail";
7
7
  })(HealthAlertStatus || (HealthAlertStatus = {}));
8
8
  (function (HealthAlertStatus) {
9
- function fromString(input) {
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 = {}));
@@ -6,5 +6,5 @@ export declare enum HealthTestType {
6
6
  FLOW_RUNS_ARE_SUCCESSFUL = "flow_runs_are_successful"
7
7
  }
8
8
  export declare namespace HealthTestType {
9
- function fromString(input: string): HealthTestType;
9
+ const fromString: (input: string) => HealthTestType;
10
10
  }
@@ -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
- function fromString(input) {
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
- function compare(logLevelA: LogLevel, logLevelB: LogLevel): number;
13
- function toNumeric(logLevel: LogLevel): number;
14
- function fromString(input: string): LogLevel;
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
- function compare(logLevelA, logLevelB) {
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.compare = compare;
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.toNumeric = toNumeric;
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 = {}));
@@ -4,5 +4,5 @@ export declare enum LogStatus {
4
4
  Resolved = "resolved"
5
5
  }
6
6
  export declare namespace LogStatus {
7
- function fromString(input: string): LogStatus;
7
+ const fromString: (input: string) => LogStatus;
8
8
  }
@@ -6,12 +6,11 @@ export var LogStatus;
6
6
  LogStatus["Resolved"] = "resolved";
7
7
  })(LogStatus || (LogStatus = {}));
8
8
  (function (LogStatus) {
9
- function fromString(input) {
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;
@@ -6,5 +6,5 @@ export declare enum ChannelType {
6
6
  Webhook = "webhook"
7
7
  }
8
8
  export declare namespace ChannelType {
9
- function fromString(input: string): ChannelType;
9
+ const fromString: (input: string) => ChannelType;
10
10
  }
@@ -8,12 +8,11 @@ export var ChannelType;
8
8
  ChannelType["Webhook"] = "webhook";
9
9
  })(ChannelType || (ChannelType = {}));
10
10
  (function (ChannelType) {
11
- function fromString(input) {
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(access_token: string, webhook: string, channel_id: string, channel_name: string, team_id: string, team_name: string);
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(access_token, webhook, channel_id, channel_name, team_id, team_name) {
10
+ constructor(accessToken, webhook, channelId, channelName, teamId, teamName) {
11
11
  super(ChannelType.Slack);
12
- this.access_token = access_token;
12
+ this.access_token = accessToken;
13
13
  this.webhook = webhook;
14
- this.channel_id = channel_id;
15
- this.channel_name = channel_name;
16
- this.team_id = team_id;
17
- this.team_name = 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
  }
@@ -1,6 +1,6 @@
1
+ import { Utils } from '../../Utils.js';
1
2
  import { CodeDeployStatus } from './CodeDeployStatus.js';
2
3
  import { ProjectDeployCommit } from './ProjectDeployCommit.js';
3
- import { Utils } from '../../Utils.js';
4
4
  export class CodeDeploy {
5
5
  id;
6
6
  codeSourceId;
@@ -8,5 +8,5 @@ export declare enum CodeDeployStatus {
8
8
  Complete = "complete"
9
9
  }
10
10
  export declare namespace CodeDeployStatus {
11
- function fromString(input: string): CodeDeployStatus;
11
+ const fromString: (input: string) => CodeDeployStatus;
12
12
  }
@@ -10,12 +10,11 @@ export var CodeDeployStatus;
10
10
  CodeDeployStatus["Complete"] = "complete";
11
11
  })(CodeDeployStatus || (CodeDeployStatus = {}));
12
12
  (function (CodeDeployStatus) {
13
- function fromString(input) {
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 = {}));
@@ -4,5 +4,5 @@ export declare enum ProjectEnvironmentType {
4
4
  Local = "locl"
5
5
  }
6
6
  export declare namespace ProjectEnvironmentType {
7
- function fromString(input: string): ProjectEnvironmentType;
7
+ const fromString: (input: string) => ProjectEnvironmentType;
8
8
  }
@@ -6,12 +6,11 @@ export var ProjectEnvironmentType;
6
6
  ProjectEnvironmentType["Local"] = "locl";
7
7
  })(ProjectEnvironmentType || (ProjectEnvironmentType = {}));
8
8
  (function (ProjectEnvironmentType) {
9
- function fromString(input) {
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 = {}));
@@ -4,5 +4,5 @@ export declare enum State {
4
4
  Removed = "removed"
5
5
  }
6
6
  export declare namespace State {
7
- function fromString(input: string): State;
7
+ const fromString: (input: string) => State;
8
8
  }
@@ -6,12 +6,11 @@ export var State;
6
6
  State["Removed"] = "removed";
7
7
  })(State || (State = {}));
8
8
  (function (State) {
9
- function fromString(input) {
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 = {}));
@@ -5,5 +5,5 @@ export declare enum StorageType {
5
5
  Infrastructure = "infrastructure"
6
6
  }
7
7
  export declare namespace StorageType {
8
- function fromString(input: string): StorageType;
8
+ const fromString: (input: string) => StorageType;
9
9
  }
@@ -7,12 +7,11 @@ export var StorageType;
7
7
  StorageType["Infrastructure"] = "infrastructure";
8
8
  })(StorageType || (StorageType = {}));
9
9
  (function (StorageType) {
10
- function fromString(input) {
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 = {}));
@@ -4,5 +4,5 @@ export declare enum WorkerInstanceState {
4
4
  Error = "Error"
5
5
  }
6
6
  export declare namespace WorkerInstanceState {
7
- function fromString(input: string): WorkerInstanceState;
7
+ const fromString: (input: string) => WorkerInstanceState;
8
8
  }
@@ -6,12 +6,11 @@ export var WorkerInstanceState;
6
6
  WorkerInstanceState["Error"] = "Error";
7
7
  })(WorkerInstanceState || (WorkerInstanceState = {}));
8
8
  (function (WorkerInstanceState) {
9
- function fromString(input) {
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 = {}));
@@ -6,5 +6,5 @@ export declare enum WorkerState {
6
6
  NonExisting = "NonExisting"
7
7
  }
8
8
  export declare namespace WorkerState {
9
- function fromString(input: string): WorkerState;
9
+ const fromString: (input: string) => WorkerState;
10
10
  }
@@ -8,12 +8,11 @@ export var WorkerState;
8
8
  WorkerState["NonExisting"] = "NonExisting";
9
9
  })(WorkerState || (WorkerState = {}));
10
10
  (function (WorkerState) {
11
- function fromString(input) {
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 = {}));
@@ -7,5 +7,5 @@ export declare enum WorkspaceMemberInviteState {
7
7
  Removed = "removed"
8
8
  }
9
9
  export declare namespace WorkspaceMemberInviteState {
10
- function fromString(input: string): WorkspaceMemberInviteState;
10
+ const fromString: (input: string) => WorkspaceMemberInviteState;
11
11
  }
@@ -9,12 +9,11 @@ export var WorkspaceMemberInviteState;
9
9
  WorkspaceMemberInviteState["Removed"] = "removed";
10
10
  })(WorkspaceMemberInviteState || (WorkspaceMemberInviteState = {}));
11
11
  (function (WorkspaceMemberInviteState) {
12
- function fromString(input) {
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>;