Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dynatrace-sdk/automation-utils

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dynatrace-sdk/automation-utils - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

types/packages/client/automation/src/lib/models/action-execution-state.d.ts

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Automation utils

## 2.1.1
### Patch Changes
- Updated dependencies
- Updated dependencies
- @dynatrace-sdk/client-automation@3.0.0
## 2.1.0

@@ -7,0 +17,0 @@

2

cjs/index.js
/**
* @license
* Copyright 2023 Dynatrace LLC
* Copyright 2023-2024 Dynatrace LLC
* Licensed under the Apache License, Version 2.0 (the "License");

@@ -5,0 +5,0 @@ * you may not use this file except in compliance with the License.

@@ -5,3 +5,3 @@ # Automation utils

import NpmLogo from '@site/static/img/npm-logo.png';
import NpmLogo from "@site/static/img/npm-logo.png";

@@ -15,4 +15,6 @@ <div class="row margin-bottom--md">

</div>
<div class="col" style={{textAlign: 'right'}}>
<a href="https://www.npmjs.com/package/@dynatrace-sdk/automation-utils/v/2.1.0">v2.1.0</a>
<div class="col" style={{ textAlign: "right" }}>
<a href="https://www.npmjs.com/package/@dynatrace-sdk/automation-utils/v/2.1.1">
v2.1.1
</a>
</div>

@@ -42,4 +44,2 @@ </div>

<!-- no returns -->
</div>

@@ -62,4 +62,2 @@

<!-- no returns -->
</div>

@@ -69,5 +67,3 @@

<div class="padding-bottom--md">
To get execution detail
</div>
<div class="padding-bottom--md">To get execution detail</div>

@@ -80,5 +76,3 @@ ```javascript

<div class="padding-bottom--md">
To get event context from execution
</div>
<div class="padding-bottom--md">To get event context from execution</div>

@@ -92,5 +86,3 @@ ```javascript

<div class="padding-bottom--md">
To get task execution result
</div>
<div class="padding-bottom--md">To get task execution result</div>

@@ -106,5 +98,3 @@ ```javascript

<div class="padding-bottom--md">
To get action execution detail
</div>
<div class="padding-bottom--md">To get action execution detail</div>

@@ -117,5 +107,3 @@ ```javascript

<div class="padding-bottom--md">
To get loopItem from action execution
</div>
<div class="padding-bottom--md">To get loopItem from action execution</div>

@@ -122,0 +110,0 @@ ```javascript

/**
* @license
* Copyright 2023 Dynatrace LLC
* Copyright 2023-2024 Dynatrace LLC
* Licensed under the Apache License, Version 2.0 (the "License");

@@ -5,0 +5,0 @@ * you may not use this file except in compliance with the License.

{
"name": "@dynatrace-sdk/automation-utils",
"version": "2.1.0",
"version": "2.1.1",
"description": "Automation utilities.",
"license": "Apache-2.0",
"dependencies": {
"@dynatrace-sdk/client-automation": "^2.1.0",
"@dynatrace-sdk/client-automation": "^3.0.0",
"lodash-es": "^4.17.21"

@@ -9,0 +9,0 @@ },

import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
import { ActionExecution } from '../models/action-execution';
import { PaginatedActionExecutionList } from '../models/paginated-action-execution-list';
export declare class ActionExecutionsClient {

@@ -19,22 +18,2 @@ private httpClient;

* const data =
* await actionExecutionsClient.getActionExecutions();
*/
getActionExecutions(config?: {
/** Allow access to all workflows/executions - additionally requires **automation:workflows:admin** */ adminAccess?: boolean;
/** Number of results to return per page. */ limit?: number;
/** The initial index from which to return the results. */ offset?: number;
/** Which field to use when ordering the results. */ ordering?: string;
/** A search term. */ search?: string;
startedAtGte?: string;
startedAtLte?: string;
/** Multiple values may be separated by commas. */ state?: string[];
abortSignal?: AbortSignal;
}): Promise<PaginatedActionExecutionList>;
/**
* **Required scope:** automation:workflows:read
*
* @example <caption>Code example</caption>
* import { actionExecutionsClient } from "@dynatrace-sdk/client-automation";
*
* const data =
* await actionExecutionsClient.getActionExecution({

@@ -41,0 +20,0 @@ * id: "...",

import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
import { BusinessCalendar } from '../models/business-calendar';
import { BusinessCalendarRequest } from '../models/business-calendar-request';
import { ChangeHistory } from '../models/change-history';
import { DuplicationRequest } from '../models/duplication-request';
import { PaginatedBusinessCalendarList } from '../models/paginated-business-calendar-list';
import { PaginatedChangeHistory } from '../models/paginated-change-history';
import { PatchedBusinessCalendarRequest } from '../models/patched-business-calendar-request';

@@ -142,3 +142,3 @@ export declare class BusinessCalendarsClient {

abortSignal?: AbortSignal;
}): Promise<ChangeHistory>;
}): Promise<PaginatedChangeHistory>;
/**

@@ -145,0 +145,0 @@ * **Required scope:** automation:calendars:read

@@ -6,2 +6,4 @@ import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';

import { PaginatedExecutionList } from '../models/paginated-execution-list';
import { PreviewTaskInputRequest } from '../models/preview-task-input-request';
import { PreviewTaskInputResponse } from '../models/preview-task-input-response';
import { TaskExecution } from '../models/task-execution';

@@ -270,3 +272,23 @@ import { TaskExecutions } from '../models/task-executions';

}): Promise<void>;
/**
* **Required scope:** automation:workflows:read<br/><br/>Returns preview expression by given task id from the workflow definition
*
* @example <caption>Code example</caption>
* import { executionsClient } from "@dynatrace-sdk/client-automation";
*
* const data = await executionsClient.previewTaskInput({
* body: {
* task: "...",
* workflow: {
* title: "...",
* throttle: { isLimitHit: false },
* },
* },
* });
*/
previewTaskInput(config: {
body: PreviewTaskInputRequest;
abortSignal?: AbortSignal;
}): Promise<PreviewTaskInputResponse>;
}
export declare const executionsClient: ExecutionsClient;

@@ -21,3 +21,3 @@ import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';

*/
getHolidayCalendars(abortSignal?: AbortSignal): Promise<HolidayResponse[]>;
getHolidayCalendars(abortSignal?: AbortSignal): Promise<HolidayResponse>;
/**

@@ -24,0 +24,0 @@ * **Required scope:** automation:workflows:read

import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
import { ChangeHistory } from '../models/change-history';
import { DuplicationRequest } from '../models/duplication-request';
import { PaginatedChangeHistory } from '../models/paginated-change-history';
import { PaginatedRuleList } from '../models/paginated-rule-list';

@@ -137,3 +137,3 @@ import { PatchedRuleRequest } from '../models/patched-rule-request';

abortSignal?: AbortSignal;
}): Promise<ChangeHistory>;
}): Promise<PaginatedChangeHistory>;
/**

@@ -140,0 +140,0 @@ * **Required scope:** automation:rules:read

@@ -23,2 +23,11 @@ import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';

/**
* **Required scope:** automation:workflows:write
*
* @example <caption>Code example</caption>
* import { settingsClient } from "@dynatrace-sdk/client-automation";
*
* const data = await settingsClient.updateAuthorizations();
*/
updateAuthorizations(abortSignal?: AbortSignal): Promise<void>;
/**
* **Required scope:** automation:workflows:read<br/><br/>Get service users who could be used as workflow actor

@@ -25,0 +34,0 @@ *

import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
import { ChangeHistory } from '../models/change-history';
import { DuplicationRequest } from '../models/duplication-request';

@@ -7,3 +6,4 @@ import { Execution } from '../models/execution';

import { GetWorkflowsQueryOwnerType } from '../models/get-workflows-query-owner-type';
import { PaginatedWorkflowListItemList } from '../models/paginated-workflow-list-item-list';
import { PaginatedChangeHistory } from '../models/paginated-change-history';
import { PaginatedWorkflowList } from '../models/paginated-workflow-list';
import { PatchedWorkflowRequest } from '../models/patched-workflow-request';

@@ -44,2 +44,3 @@ import { Task } from '../models/task';

/** A search term. */ search?: string;
throttleIsLimitHit?: boolean;
triggerType?: string;

@@ -49,3 +50,3 @@ triggerScheduleIsFaulty?: boolean;

abortSignal?: AbortSignal;
}): Promise<PaginatedWorkflowListItemList>;
}): Promise<PaginatedWorkflowList>;
/**

@@ -58,3 +59,3 @@ * **Required scope:** automation:workflows:write<br/><br/>Creates a workflow and sets usages

* const data = await workflowsClient.createWorkflow({
* body: { title: "..." },
* body: { title: "...", throttle: { isLimitHit: false } },
* });

@@ -90,3 +91,3 @@ */

* id: "...",
* body: { title: "..." },
* body: { title: "...", throttle: { isLimitHit: false } },
* });

@@ -123,3 +124,3 @@ */

* id: "...",
* body: {},
* body: { throttle: { isLimitHit: false } },
* });

@@ -180,3 +181,3 @@ */

abortSignal?: AbortSignal;
}): Promise<ChangeHistory>;
}): Promise<PaginatedChangeHistory>;
/**

@@ -215,3 +216,3 @@ * **Required scope:** automation:workflows:read

abortSignal?: AbortSignal;
}): Promise<Workflow>;
}): Promise<void>;
/**

@@ -218,0 +219,0 @@ * **Required scope:** automation:workflows:run<br/><br/>Creates an Execution for the Workflow.

import { ActionExecutionInput } from './action-execution-input';
import { ActionExecutionLoopItem } from './action-execution-loop-item';
import { ActionExecutionResult } from './action-execution-result';
import { ActionExecutionState } from './action-execution-state';
export interface ActionExecution {

@@ -10,6 +10,6 @@ id?: string;

taskExe?: string | null;
state?: string | null;
state?: ActionExecutionState;
stateInfo?: string | null;
input?: ActionExecutionInput;
result?: ActionExecutionResult;
result?: any;
startedAt?: Date | null;

@@ -16,0 +16,0 @@ endedAt?: Date | null;

import { ActionExecution } from './action-execution';
import * as _ActionExecutionInputTransformation from './action-execution-input.transformation';
import * as _ActionExecutionLoopItemTransformation from './action-execution-loop-item.transformation';
import * as _ActionExecutionResultTransformation from './action-execution-result.transformation';
import * as _ActionExecutionStateTransformation from './action-execution-state.transformation';
export interface AsJson {
id?: string;
taskExe?: string | null;
state?: string | null;
state?: _ActionExecutionStateTransformation.AsJson;
stateInfo?: string | null;
input?: _ActionExecutionInputTransformation.AsJson;
result?: _ActionExecutionResultTransformation.AsJson;
result?: any;
startedAt?: string | null;

@@ -13,0 +13,0 @@ endedAt?: string | null;

import { Holidays } from './holidays';
import * as _ModificationInfoTransformation from './modification-info.transformation';
import { ModificationInfo } from './modification-info';
import { Weekdays } from './weekdays';

@@ -14,3 +14,3 @@ export interface BusinessCalendar {

description?: string;
modificationInfo: _ModificationInfoTransformation.AsJson;
modificationInfo: ModificationInfo;
}
export interface ChangeHistory {
id: number;
dateCreated: Date;
user: string;
dateCreated: Date;
version?: number;
version: number;
}
import { ChangeHistory } from './change-history';
export interface AsJson {
id: number;
dateCreated: string;
user: string;
dateCreated: string;
version?: number;
version: number;
}
export declare function fromJson($model: AsJson): ChangeHistory;
export declare function toJson($model: ChangeHistory): AsJson;

@@ -1,7 +0,7 @@

import { DavisEventConfigEntityTags } from './davis-event-config-entity-tags';
import { DavisEventName } from './davis-event-name';
import { EntityTags } from './entity-tags';
import { EntityTagsMatch } from './entity-tags-match';
export interface DavisEventConfig {
entityTagsMatch?: EntityTagsMatch;
entityTags?: DavisEventConfigEntityTags;
entityTags?: EntityTags;
onProblemClose?: boolean;

@@ -8,0 +8,0 @@ names?: DavisEventName[];

import { DavisEventConfig } from './davis-event-config';
import * as _DavisEventConfigEntityTagsTransformation from './davis-event-config-entity-tags.transformation';
import * as _DavisEventNameTransformation from './davis-event-name.transformation';
import * as _EntityTagsMatchTransformation from './entity-tags-match.transformation';
import * as _EntityTagsTransformation from './entity-tags.transformation';
export interface AsJson {
entityTagsMatch?: _EntityTagsMatchTransformation.AsJson;
entityTags?: _DavisEventConfigEntityTagsTransformation.AsJson;
entityTags?: _EntityTagsTransformation.AsJson;
onProblemClose?: boolean;

@@ -9,0 +9,0 @@ names?: _DavisEventNameTransformation.AsJson[];

import { DavisProblemCategories } from './davis-problem-categories';
import { DavisProblemConfigEntityTags } from './davis-problem-config-entity-tags';
import { EntityTags } from './entity-tags';
import { EntityTagsMatch } from './entity-tags-match';
export interface DavisProblemConfig {
entityTagsMatch?: EntityTagsMatch;
entityTags?: DavisProblemConfigEntityTags;
entityTags?: EntityTags;
onProblemClose?: boolean;

@@ -8,0 +8,0 @@ categories: DavisProblemCategories;

import * as _DavisProblemCategoriesTransformation from './davis-problem-categories.transformation';
import { DavisProblemConfig } from './davis-problem-config';
import * as _DavisProblemConfigEntityTagsTransformation from './davis-problem-config-entity-tags.transformation';
import * as _EntityTagsMatchTransformation from './entity-tags-match.transformation';
import * as _EntityTagsTransformation from './entity-tags.transformation';
export interface AsJson {
entityTagsMatch?: _EntityTagsMatchTransformation.AsJson;
entityTags?: _DavisProblemConfigEntityTagsTransformation.AsJson;
entityTags?: _EntityTagsTransformation.AsJson;
onProblemClose?: boolean;

@@ -9,0 +9,0 @@ categories: _DavisProblemCategoriesTransformation.AsJson;

@@ -9,3 +9,3 @@ import { EventLogState } from './event-log-state';

timestamp: Date;
context?: any;
context?: Record<string, any>;
}

@@ -10,5 +10,5 @@ import { EventLog } from './event-log';

timestamp: string;
context?: any;
context?: Record<string, any>;
}
export declare function fromJson($model: AsJson): EventLog;
export declare function toJson($model: EventLog): AsJson;

@@ -1,5 +0,5 @@

import * as _EventTypeTransformation from './event-type.transformation';
import { EventType } from './event-type';
export interface EventQuery {
query: string;
eventType?: _EventTypeTransformation.AsJson;
eventType?: EventType;
}

@@ -1,7 +0,7 @@

import * as _DavisEventTriggerConfigTransformation from './davis-event-trigger-config.transformation';
import * as _DavisProblemTriggerConfigTransformation from './davis-problem-trigger-config.transformation';
import * as _EventQueryTriggerConfigTransformation from './event-query-trigger-config.transformation';
import { DavisEventTriggerConfig } from './davis-event-trigger-config';
import { DavisProblemTriggerConfig } from './davis-problem-trigger-config';
import { EventQueryTriggerConfig } from './event-query-trigger-config';
export interface EventTriggerPreviewResponse {
triggerConfiguration: _EventQueryTriggerConfigTransformation.AsJson | _DavisProblemTriggerConfigTransformation.AsJson | _DavisEventTriggerConfigTransformation.AsJson;
triggerConfiguration: EventQueryTriggerConfig | DavisProblemTriggerConfig | DavisEventTriggerConfig;
filterQuery: string;
}

@@ -7,4 +7,4 @@ export * from './action-execution';

export * as _ActionExecutionLoopItemTransformation from './action-execution-loop-item.transformation';
export * from './action-execution-result';
export * as _ActionExecutionResultTransformation from './action-execution-result.transformation';
export * from './action-execution-state';
export * as _ActionExecutionStateTransformation from './action-execution-state.transformation';
export * from './business-calendar';

@@ -22,4 +22,2 @@ export * as _BusinessCalendarTransformation from './business-calendar.transformation';

export * as _DavisEventConfigTransformation from './davis-event-config.transformation';
export * from './davis-event-config-entity-tags';
export * as _DavisEventConfigEntityTagsTransformation from './davis-event-config-entity-tags.transformation';
export * from './davis-event-name';

@@ -37,4 +35,2 @@ export * as _DavisEventNameTransformation from './davis-event-name.transformation';

export * as _DavisProblemConfigTransformation from './davis-problem-config.transformation';
export * from './davis-problem-config-entity-tags';
export * as _DavisProblemConfigEntityTagsTransformation from './davis-problem-config-entity-tags.transformation';
export * from './davis-problem-trigger-config';

@@ -46,2 +42,4 @@ export * as _DavisProblemTriggerConfigTransformation from './davis-problem-trigger-config.transformation';

export * as _DuplicationRequestTransformation from './duplication-request.transformation';
export * from './entity-tags';
export * as _EntityTagsTransformation from './entity-tags.transformation';
export * from './entity-tags-match';

@@ -123,8 +121,10 @@ export * as _EntityTagsMatchTransformation from './entity-tags-match.transformation';

export * as _IntervalTriggerTypeTransformation from './interval-trigger-type.transformation';
export * from './maybe-string-array';
export * as _MaybeStringArrayTransformation from './maybe-string-array.transformation';
export * from './modification-info';
export * as _ModificationInfoTransformation from './modification-info.transformation';
export * from './paginated-action-execution-list';
export * as _PaginatedActionExecutionListTransformation from './paginated-action-execution-list.transformation';
export * from './paginated-business-calendar-list';
export * as _PaginatedBusinessCalendarListTransformation from './paginated-business-calendar-list.transformation';
export * from './paginated-change-history';
export * as _PaginatedChangeHistoryTransformation from './paginated-change-history.transformation';
export * from './paginated-execution-list';

@@ -134,4 +134,4 @@ export * as _PaginatedExecutionListTransformation from './paginated-execution-list.transformation';

export * as _PaginatedRuleListTransformation from './paginated-rule-list.transformation';
export * from './paginated-workflow-list-item-list';
export * as _PaginatedWorkflowListItemListTransformation from './paginated-workflow-list-item-list.transformation';
export * from './paginated-workflow-list';
export * as _PaginatedWorkflowListTransformation from './paginated-workflow-list.transformation';
export * from './patched-business-calendar-request';

@@ -149,2 +149,12 @@ export * as _PatchedBusinessCalendarRequestTransformation from './patched-business-calendar-request.transformation';

export * as _PatchedWorkflowRequestTaskDefaultsTransformation from './patched-workflow-request-task-defaults.transformation';
export * from './preview-task-input-request';
export * as _PreviewTaskInputRequestTransformation from './preview-task-input-request.transformation';
export * from './preview-task-input-request-expression';
export * as _PreviewTaskInputRequestExpressionTransformation from './preview-task-input-request-expression.transformation';
export * from './preview-task-input-response';
export * as _PreviewTaskInputResponseTransformation from './preview-task-input-response.transformation';
export * from './preview-task-input-response-error';
export * as _PreviewTaskInputResponseErrorTransformation from './preview-task-input-response-error.transformation';
export * from './preview-task-input-response-value';
export * as _PreviewTaskInputResponseValueTransformation from './preview-task-input-response-value.transformation';
export * from './r-rule';

@@ -230,4 +240,2 @@ export * as _RRuleTransformation from './r-rule.transformation';

export * as _TaskExecutionStateTransformation from './task-execution-state.transformation';
export * from './task-execution-triggered-by';
export * as _TaskExecutionTriggeredByTransformation from './task-execution-triggered-by.transformation';
export * from './task-executions';

@@ -245,2 +253,10 @@ export * as _TaskExecutionsTransformation from './task-executions.transformation';

export * as _TasksTransformation from './tasks.transformation';
export * from './throttle';
export * as _ThrottleTransformation from './throttle.transformation';
export * from './throttle-limit-event';
export * as _ThrottleLimitEventTransformation from './throttle-limit-event.transformation';
export * from './throttle-limit-events';
export * as _ThrottleLimitEventsTransformation from './throttle-limit-events.transformation';
export * from './throttle-request';
export * as _ThrottleRequestTransformation from './throttle-request.transformation';
export * from './time-trigger';

@@ -264,10 +280,2 @@ export * as _TimeTriggerTransformation from './time-trigger.transformation';

export * as _WorkflowTransformation from './workflow.transformation';
export * from './workflow-list-item';
export * as _WorkflowListItemTransformation from './workflow-list-item.transformation';
export * from './workflow-list-item-owner-type';
export * as _WorkflowListItemOwnerTypeTransformation from './workflow-list-item-owner-type.transformation';
export * from './workflow-list-item-task-defaults';
export * as _WorkflowListItemTaskDefaultsTransformation from './workflow-list-item-task-defaults.transformation';
export * from './workflow-list-item-usages';
export * as _WorkflowListItemUsagesTransformation from './workflow-list-item-usages.transformation';
export * from './workflow-owner-type';

@@ -283,3 +291,1 @@ export * as _WorkflowOwnerTypeTransformation from './workflow-owner-type.transformation';

export * as _WorkflowTaskDefaultsTransformation from './workflow-task-defaults.transformation';
export * from './workflow-usages';
export * as _WorkflowUsagesTransformation from './workflow-usages.transformation';

@@ -1,6 +0,6 @@

import * as _FixedOffsetRuleTransformation from './fixed-offset-rule.transformation';
import * as _GroupingRuleTransformation from './grouping-rule.transformation';
import { FixedOffsetRule } from './fixed-offset-rule';
import { GroupingRule } from './grouping-rule';
import { PatchedRuleRequestRuleType } from './patched-rule-request-rule-type';
import * as _RRuleTransformation from './r-rule.transformation';
import * as _RelativeOffsetRuleTransformation from './relative-offset-rule.transformation';
import { RRule } from './r-rule';
import { RelativeOffsetRule } from './relative-offset-rule';
export interface PatchedRuleRequest {

@@ -10,8 +10,8 @@ id?: string;

ruleType?: PatchedRuleRequestRuleType;
rrule?: _RRuleTransformation.AsJson | null;
groupingRule?: _GroupingRuleTransformation.AsJson | null;
fixedOffsetRule?: _FixedOffsetRuleTransformation.AsJson | null;
relativeOffsetRule?: _RelativeOffsetRuleTransformation.AsJson | null;
rrule?: RRule | null;
groupingRule?: GroupingRule | null;
fixedOffsetRule?: FixedOffsetRule | null;
relativeOffsetRule?: RelativeOffsetRule | null;
businessCalendar?: string | null;
description?: string;
}
import { PatchedWorkflowRequestOwnerType } from './patched-workflow-request-owner-type';
import { PatchedWorkflowRequestTaskDefaults } from './patched-workflow-request-task-defaults';
import { Tasks } from './tasks';
import { ThrottleRequest } from './throttle-request';
import { TriggerRequest } from './trigger-request';

@@ -16,3 +17,4 @@ export interface PatchedWorkflowRequest {

schemaVersion?: number;
throttle?: ThrottleRequest;
trigger?: TriggerRequest;
}

@@ -5,2 +5,3 @@ import { PatchedWorkflowRequest } from './patched-workflow-request';

import * as _TasksTransformation from './tasks.transformation';
import * as _ThrottleRequestTransformation from './throttle-request.transformation';
import * as _TriggerRequestTransformation from './trigger-request.transformation';

@@ -18,2 +19,3 @@ export interface AsJson {

schemaVersion?: number;
throttle?: _ThrottleRequestTransformation.AsJson;
trigger?: _TriggerRequestTransformation.AsJson;

@@ -20,0 +22,0 @@ }

@@ -1,5 +0,5 @@

import * as _FixedOffsetRuleTransformation from './fixed-offset-rule.transformation';
import * as _GroupingRuleTransformation from './grouping-rule.transformation';
import * as _RRuleTransformation from './r-rule.transformation';
import * as _RelativeOffsetRuleTransformation from './relative-offset-rule.transformation';
import { FixedOffsetRule } from './fixed-offset-rule';
import { GroupingRule } from './grouping-rule';
import { RRule } from './r-rule';
import { RelativeOffsetRule } from './relative-offset-rule';
import { RuleRequestRuleType } from './rule-request-rule-type';

@@ -10,8 +10,8 @@ export interface RuleRequest {

ruleType: RuleRequestRuleType;
rrule?: _RRuleTransformation.AsJson | null;
groupingRule?: _GroupingRuleTransformation.AsJson | null;
fixedOffsetRule?: _FixedOffsetRuleTransformation.AsJson | null;
relativeOffsetRule?: _RelativeOffsetRuleTransformation.AsJson | null;
rrule?: RRule | null;
groupingRule?: GroupingRule | null;
fixedOffsetRule?: FixedOffsetRule | null;
relativeOffsetRule?: RelativeOffsetRule | null;
businessCalendar?: string | null;
description?: string;
}

@@ -1,6 +0,6 @@

import * as _FixedOffsetRuleTransformation from './fixed-offset-rule.transformation';
import * as _GroupingRuleTransformation from './grouping-rule.transformation';
import * as _ModificationInfoTransformation from './modification-info.transformation';
import * as _RRuleTransformation from './r-rule.transformation';
import * as _RelativeOffsetRuleTransformation from './relative-offset-rule.transformation';
import { FixedOffsetRule } from './fixed-offset-rule';
import { GroupingRule } from './grouping-rule';
import { ModificationInfo } from './modification-info';
import { RRule } from './r-rule';
import { RelativeOffsetRule } from './relative-offset-rule';
import { RuleRuleType } from './rule-rule-type';

@@ -12,9 +12,9 @@ export interface Rule {

ruleType: RuleRuleType;
rrule?: _RRuleTransformation.AsJson | null;
groupingRule?: _GroupingRuleTransformation.AsJson | null;
fixedOffsetRule?: _FixedOffsetRuleTransformation.AsJson | null;
relativeOffsetRule?: _RelativeOffsetRuleTransformation.AsJson | null;
rrule?: RRule | null;
groupingRule?: GroupingRule | null;
fixedOffsetRule?: FixedOffsetRule | null;
relativeOffsetRule?: RelativeOffsetRule | null;
businessCalendar?: string | null;
description?: string;
modificationInfo: _ModificationInfoTransformation.AsJson;
modificationInfo: ModificationInfo;
}

@@ -1,8 +0,13 @@

import * as _ScheduleFilterParametersTransformation from './schedule-filter-parameters.transformation';
import { ScheduleFilterParameters } from './schedule-filter-parameters';
import { ScheduleInputs } from './schedule-inputs';
import { ScheduleRequestTimezone } from './schedule-request-timezone';
import { ScheduleTrigger } from './schedule-trigger';
export interface ScheduleRequest {
isActive?: boolean;
trigger: ScheduleTrigger;
filterParameters?: _ScheduleFilterParametersTransformation.AsJson | null;
rule?: string | null;
filterParameters?: ScheduleFilterParameters | null;
timezone?: ScheduleRequestTimezone;
inputs?: ScheduleInputs;
nextExecution?: Date | null;
}
import * as _ScheduleFilterParametersTransformation from './schedule-filter-parameters.transformation';
import * as _ScheduleInputsTransformation from './schedule-inputs.transformation';
import { ScheduleRequest } from './schedule-request';

@@ -6,7 +7,11 @@ import * as _ScheduleRequestTimezoneTransformation from './schedule-request-timezone.transformation';

export interface AsJson {
isActive?: boolean;
trigger: _ScheduleTriggerTransformation.AsJson;
rule?: string | null;
filterParameters?: _ScheduleFilterParametersTransformation.AsJson | null;
timezone?: _ScheduleRequestTimezoneTransformation.AsJson;
inputs?: _ScheduleInputsTransformation.AsJson;
nextExecution?: string | null;
}
export declare function fromJson($model: AsJson): ScheduleRequest;
export declare function toJson($model: ScheduleRequest): AsJson;

@@ -1,2 +0,2 @@

import * as _ScheduleFilterParametersTransformation from './schedule-filter-parameters.transformation';
import { ScheduleFilterParameters } from './schedule-filter-parameters';
import { ScheduleInputs } from './schedule-inputs';

@@ -10,3 +10,3 @@ import { ScheduleTimezone } from './schedule-timezone';

rule?: string | null;
filterParameters?: _ScheduleFilterParametersTransformation.AsJson | null;
filterParameters?: ScheduleFilterParameters | null;
timezone?: ScheduleTimezone;

@@ -13,0 +13,0 @@ inputs?: ScheduleInputs;

@@ -6,3 +6,3 @@ import { TaskExecutionPosition } from './task-execution-position';

}
export declare function fromJson($model: AsJson): TaskExecutionPosition;
export declare function toJson($model: TaskExecutionPosition): AsJson;
export declare function fromJson($model: AsJson | null): TaskExecutionPosition | null;
export declare function toJson($model: TaskExecutionPosition | null): AsJson | null;
/**
* * `DEACTIVATED` - DEACTIVATED
* * `WAITING` - WAITING
* * `IDLE` - IDLE
* * `RUNNING` - RUNNING
* * `PAUSED` - PAUSED
* * `SUCCESS` - SUCCESS
* * `ERROR` - ERROR
* * `CANCELLED` - CANCELLED
* * `SKIPPED` - SKIPPED
*/
export declare enum TaskExecutionState {
Deactivated = "DEACTIVATED",
Waiting = "WAITING",
Idle = "IDLE",
Running = "RUNNING",
Paused = "PAUSED",
Success = "SUCCESS",
Error = "ERROR",
Cancelled = "CANCELLED",
Skipped = "SKIPPED"
Error = "ERROR"
}

@@ -6,3 +6,2 @@ import { TaskExecutionConditionResults } from './task-execution-condition-results';

import { TaskExecutionState } from './task-execution-state';
import { TaskExecutionTriggeredBy } from './task-execution-triggered-by';
export interface TaskExecution {

@@ -25,4 +24,3 @@ id: string;

runtime: number;
triggeredBy?: TaskExecutionTriggeredBy;
position: TaskExecutionPosition;
position: TaskExecutionPosition | null;
conditions: TaskExecutionConditions;

@@ -29,0 +27,0 @@ predecessors: string[];

@@ -7,3 +7,2 @@ import { TaskExecution } from './task-execution';

import * as _TaskExecutionStateTransformation from './task-execution-state.transformation';
import * as _TaskExecutionTriggeredByTransformation from './task-execution-triggered-by.transformation';
export interface AsJson {

@@ -19,4 +18,3 @@ id: string;

runtime: number;
triggeredBy?: _TaskExecutionTriggeredByTransformation.AsJson;
position: _TaskExecutionPositionTransformation.AsJson;
position: _TaskExecutionPositionTransformation.AsJson | null;
conditions: _TaskExecutionConditionsTransformation.AsJson;

@@ -23,0 +21,0 @@ predecessors: string[];

@@ -8,3 +8,3 @@ import { TaskConditionOption } from './task-condition-option';

description?: string;
input?: any;
input?: Record<string, any>;
/**

@@ -11,0 +11,0 @@ * Specifies whether a task should be skipped as a no operation or not.

@@ -9,3 +9,3 @@ import { Task } from './task';

description?: string;
input?: any;
input?: Record<string, any>;
active?: boolean | string;

@@ -12,0 +12,0 @@ position?: _TaskPositionTransformation.AsJson;

@@ -1,6 +0,6 @@

import * as _EventTriggerRequestTransformation from './event-trigger-request.transformation';
import * as _ScheduleRequestTransformation from './schedule-request.transformation';
import { EventTriggerRequest } from './event-trigger-request';
import { ScheduleRequest } from './schedule-request';
export interface TriggerRequest {
schedule?: _ScheduleRequestTransformation.AsJson | null;
eventTrigger?: _EventTriggerRequestTransformation.AsJson | null;
schedule?: ScheduleRequest | null;
eventTrigger?: EventTriggerRequest | null;
}

@@ -1,6 +0,6 @@

import * as _EventTriggerTransformation from './event-trigger.transformation';
import * as _ScheduleTransformation from './schedule.transformation';
import { EventTrigger } from './event-trigger';
import { Schedule } from './schedule';
export interface Trigger {
schedule?: _ScheduleTransformation.AsJson | null;
eventTrigger?: _EventTriggerTransformation.AsJson | null;
schedule?: Schedule | null;
eventTrigger?: EventTrigger | null;
}
import { Tasks } from './tasks';
import { ThrottleRequest } from './throttle-request';
import { TriggerRequest } from './trigger-request';

@@ -16,3 +17,4 @@ import { WorkflowRequestOwnerType } from './workflow-request-owner-type';

schemaVersion?: number;
throttle?: ThrottleRequest;
trigger?: TriggerRequest;
}
import * as _TasksTransformation from './tasks.transformation';
import * as _ThrottleRequestTransformation from './throttle-request.transformation';
import * as _TriggerRequestTransformation from './trigger-request.transformation';

@@ -17,2 +18,3 @@ import { WorkflowRequest } from './workflow-request';

schemaVersion?: number;
throttle?: _ThrottleRequestTransformation.AsJson;
trigger?: _TriggerRequestTransformation.AsJson;

@@ -19,0 +21,0 @@ }

@@ -1,8 +0,8 @@

import * as _ExecutionTransformation from './execution.transformation';
import * as _ModificationInfoTransformation from './modification-info.transformation';
import { Execution } from './execution';
import { ModificationInfo } from './modification-info';
import { Tasks } from './tasks';
import { Throttle } from './throttle';
import { Trigger } from './trigger';
import { WorkflowOwnerType } from './workflow-owner-type';
import { WorkflowTaskDefaults } from './workflow-task-defaults';
import { WorkflowUsages } from './workflow-usages';
export interface Workflow {

@@ -13,4 +13,3 @@ id?: string;

taskDefaults?: WorkflowTaskDefaults;
usages: WorkflowUsages;
lastExecution: _ExecutionTransformation.AsJson | null;
lastExecution: Execution | null;
description?: string;

@@ -24,4 +23,5 @@ version: number;

schemaVersion?: number;
throttle?: Throttle;
trigger?: Trigger;
modificationInfo: _ModificationInfoTransformation.AsJson;
modificationInfo: ModificationInfo;
}
import * as _ExecutionTransformation from './execution.transformation';
import * as _ModificationInfoTransformation from './modification-info.transformation';
import * as _TasksTransformation from './tasks.transformation';
import * as _ThrottleTransformation from './throttle.transformation';
import * as _TriggerTransformation from './trigger.transformation';

@@ -8,3 +9,2 @@ import { Workflow } from './workflow';

import * as _WorkflowTaskDefaultsTransformation from './workflow-task-defaults.transformation';
import * as _WorkflowUsagesTransformation from './workflow-usages.transformation';
export interface AsJson {

@@ -15,3 +15,2 @@ id?: string;

taskDefaults?: _WorkflowTaskDefaultsTransformation.AsJson;
usages: _WorkflowUsagesTransformation.AsJson;
lastExecution: _ExecutionTransformation.AsJson | null;

@@ -26,2 +25,3 @@ description?: string;

schemaVersion?: number;
throttle?: _ThrottleTransformation.AsJson;
trigger?: _TriggerTransformation.AsJson;

@@ -28,0 +28,0 @@ modificationInfo: _ModificationInfoTransformation.AsJson;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc