@breign/client 1.0.178 → 1.0.180
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/apis/ScheduledTasksApi.d.ts +116 -1
- package/dist/apis/ScheduledTasksApi.js +286 -0
- package/dist/models/AutomationDayCountUio.d.ts +44 -0
- package/dist/models/AutomationDayCountUio.js +58 -0
- package/dist/models/AutomationLastRunUio.d.ts +51 -0
- package/dist/models/AutomationLastRunUio.js +63 -0
- package/dist/models/AutomationListUio.d.ts +46 -0
- package/dist/models/AutomationListUio.js +60 -0
- package/dist/models/AutomationRunDeliveryUio.d.ts +60 -0
- package/dist/models/AutomationRunDeliveryUio.js +72 -0
- package/dist/models/AutomationRunListUio.d.ts +39 -0
- package/dist/models/AutomationRunListUio.js +55 -0
- package/dist/models/AutomationRunOutcomeUio.d.ts +26 -0
- package/dist/models/AutomationRunOutcomeUio.js +52 -0
- package/dist/models/AutomationRunSourceUio.d.ts +108 -0
- package/dist/models/AutomationRunSourceUio.js +82 -0
- package/dist/models/AutomationRunUio.d.ts +126 -0
- package/dist/models/AutomationRunUio.js +114 -0
- package/dist/models/AutomationStatsUio.d.ts +62 -0
- package/dist/models/AutomationStatsUio.js +70 -0
- package/dist/models/AutomationSummaryUio.d.ts +137 -0
- package/dist/models/AutomationSummaryUio.js +126 -0
- package/dist/models/AutomationTriggerKindUio.d.ts +26 -0
- package/dist/models/AutomationTriggerKindUio.js +52 -0
- package/dist/models/ScheduledTaskCreateUio.d.ts +1 -1
- package/dist/models/ScheduledTaskRunTriggerUio.d.ts +37 -12
- package/dist/models/ScheduledTaskRunTriggerUio.js +21 -34
- package/dist/models/ScheduledTaskUio.d.ts +8 -1
- package/dist/models/ScheduledTaskUio.js +3 -0
- package/dist/models/TaskTriggerUio.d.ts +8 -1
- package/dist/models/TaskTriggerUio.js +4 -1
- package/dist/models/WebhookEndpointUio.d.ts +82 -0
- package/dist/models/WebhookEndpointUio.js +84 -0
- package/dist/models/WebhookEndpointUpdateUio.d.ts +46 -0
- package/dist/models/WebhookEndpointUpdateUio.js +58 -0
- package/dist/models/WebhookEventListUio.d.ts +33 -0
- package/dist/models/WebhookEventListUio.js +51 -0
- package/dist/models/WebhookEventUio.d.ts +87 -0
- package/dist/models/WebhookEventUio.js +87 -0
- package/dist/models/WebhookTestRequestUio.d.ts +38 -0
- package/dist/models/WebhookTestRequestUio.js +50 -0
- package/dist/models/WebhookTestResponseUio.d.ts +32 -0
- package/dist/models/WebhookTestResponseUio.js +50 -0
- package/dist/models/index.d.ts +17 -0
- package/dist/models/index.js +17 -0
- package/dist/openapi.json +1121 -154
- package/package.json +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAutomationLastRunUio = instanceOfAutomationLastRunUio;
|
|
17
|
+
exports.AutomationLastRunUioFromJSON = AutomationLastRunUioFromJSON;
|
|
18
|
+
exports.AutomationLastRunUioFromJSONTyped = AutomationLastRunUioFromJSONTyped;
|
|
19
|
+
exports.AutomationLastRunUioToJSON = AutomationLastRunUioToJSON;
|
|
20
|
+
exports.AutomationLastRunUioToJSONTyped = AutomationLastRunUioToJSONTyped;
|
|
21
|
+
const AutomationRunOutcomeUio_1 = require("./AutomationRunOutcomeUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AutomationLastRunUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAutomationLastRunUio(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('triggeredAt' in value) || value['triggeredAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('finishedAt' in value) || value['finishedAt'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function AutomationLastRunUioFromJSON(json) {
|
|
37
|
+
return AutomationLastRunUioFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function AutomationLastRunUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': json['id'],
|
|
45
|
+
'status': (0, AutomationRunOutcomeUio_1.AutomationRunOutcomeUioFromJSON)(json['status']),
|
|
46
|
+
'triggeredAt': (new Date(json['triggeredAt'])),
|
|
47
|
+
'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function AutomationLastRunUioToJSON(json) {
|
|
51
|
+
return AutomationLastRunUioToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function AutomationLastRunUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value['id'],
|
|
59
|
+
'status': (0, AutomationRunOutcomeUio_1.AutomationRunOutcomeUioToJSON)(value['status']),
|
|
60
|
+
'triggeredAt': ((value['triggeredAt']).toISOString()),
|
|
61
|
+
'finishedAt': (value['finishedAt'] == null ? null : value['finishedAt'].toISOString()),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AutomationStatsUio } from './AutomationStatsUio';
|
|
13
|
+
import type { AutomationSummaryUio } from './AutomationSummaryUio';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AutomationListUio
|
|
18
|
+
*/
|
|
19
|
+
export interface AutomationListUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<AutomationSummaryUio>}
|
|
23
|
+
* @memberof AutomationListUio
|
|
24
|
+
*/
|
|
25
|
+
items: Array<AutomationSummaryUio>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof AutomationListUio
|
|
30
|
+
*/
|
|
31
|
+
total: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {AutomationStatsUio}
|
|
35
|
+
* @memberof AutomationListUio
|
|
36
|
+
*/
|
|
37
|
+
stats: AutomationStatsUio;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the AutomationListUio interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfAutomationListUio(value: object): value is AutomationListUio;
|
|
43
|
+
export declare function AutomationListUioFromJSON(json: any): AutomationListUio;
|
|
44
|
+
export declare function AutomationListUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationListUio;
|
|
45
|
+
export declare function AutomationListUioToJSON(json: any): AutomationListUio;
|
|
46
|
+
export declare function AutomationListUioToJSONTyped(value?: AutomationListUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAutomationListUio = instanceOfAutomationListUio;
|
|
17
|
+
exports.AutomationListUioFromJSON = AutomationListUioFromJSON;
|
|
18
|
+
exports.AutomationListUioFromJSONTyped = AutomationListUioFromJSONTyped;
|
|
19
|
+
exports.AutomationListUioToJSON = AutomationListUioToJSON;
|
|
20
|
+
exports.AutomationListUioToJSONTyped = AutomationListUioToJSONTyped;
|
|
21
|
+
const AutomationStatsUio_1 = require("./AutomationStatsUio");
|
|
22
|
+
const AutomationSummaryUio_1 = require("./AutomationSummaryUio");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AutomationListUio interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAutomationListUio(value) {
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('stats' in value) || value['stats'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function AutomationListUioFromJSON(json) {
|
|
36
|
+
return AutomationListUioFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function AutomationListUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'items': (json['items'].map(AutomationSummaryUio_1.AutomationSummaryUioFromJSON)),
|
|
44
|
+
'total': json['total'],
|
|
45
|
+
'stats': (0, AutomationStatsUio_1.AutomationStatsUioFromJSON)(json['stats']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function AutomationListUioToJSON(json) {
|
|
49
|
+
return AutomationListUioToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function AutomationListUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'items': (value['items'].map(AutomationSummaryUio_1.AutomationSummaryUioToJSON)),
|
|
57
|
+
'total': value['total'],
|
|
58
|
+
'stats': (0, AutomationStatsUio_1.AutomationStatsUioToJSON)(value['stats']),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ExternalEventStatusUio } from './ExternalEventStatusUio';
|
|
13
|
+
/**
|
|
14
|
+
* What became of the result — the reply in the GitLab thread, the caller's callback, or nothing.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AutomationRunDeliveryUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AutomationRunDeliveryUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AutomationRunDeliveryUio
|
|
23
|
+
*/
|
|
24
|
+
kind: AutomationRunDeliveryUioKindEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ExternalEventStatusUio}
|
|
28
|
+
* @memberof AutomationRunDeliveryUio
|
|
29
|
+
*/
|
|
30
|
+
eventStatus: ExternalEventStatusUio | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AutomationRunDeliveryUio
|
|
35
|
+
*/
|
|
36
|
+
url: string | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AutomationRunDeliveryUio
|
|
41
|
+
*/
|
|
42
|
+
error: string | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const AutomationRunDeliveryUioKindEnum: {
|
|
48
|
+
readonly GitlabReply: "gitlab_reply";
|
|
49
|
+
readonly Callback: "callback";
|
|
50
|
+
readonly None: "none";
|
|
51
|
+
};
|
|
52
|
+
export type AutomationRunDeliveryUioKindEnum = typeof AutomationRunDeliveryUioKindEnum[keyof typeof AutomationRunDeliveryUioKindEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the AutomationRunDeliveryUio interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfAutomationRunDeliveryUio(value: object): value is AutomationRunDeliveryUio;
|
|
57
|
+
export declare function AutomationRunDeliveryUioFromJSON(json: any): AutomationRunDeliveryUio;
|
|
58
|
+
export declare function AutomationRunDeliveryUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationRunDeliveryUio;
|
|
59
|
+
export declare function AutomationRunDeliveryUioToJSON(json: any): AutomationRunDeliveryUio;
|
|
60
|
+
export declare function AutomationRunDeliveryUioToJSONTyped(value?: AutomationRunDeliveryUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AutomationRunDeliveryUioKindEnum = void 0;
|
|
17
|
+
exports.instanceOfAutomationRunDeliveryUio = instanceOfAutomationRunDeliveryUio;
|
|
18
|
+
exports.AutomationRunDeliveryUioFromJSON = AutomationRunDeliveryUioFromJSON;
|
|
19
|
+
exports.AutomationRunDeliveryUioFromJSONTyped = AutomationRunDeliveryUioFromJSONTyped;
|
|
20
|
+
exports.AutomationRunDeliveryUioToJSON = AutomationRunDeliveryUioToJSON;
|
|
21
|
+
exports.AutomationRunDeliveryUioToJSONTyped = AutomationRunDeliveryUioToJSONTyped;
|
|
22
|
+
const ExternalEventStatusUio_1 = require("./ExternalEventStatusUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AutomationRunDeliveryUioKindEnum = {
|
|
27
|
+
GitlabReply: 'gitlab_reply',
|
|
28
|
+
Callback: 'callback',
|
|
29
|
+
None: 'none'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AutomationRunDeliveryUio interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfAutomationRunDeliveryUio(value) {
|
|
35
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('eventStatus' in value) || value['eventStatus'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function AutomationRunDeliveryUioFromJSON(json) {
|
|
46
|
+
return AutomationRunDeliveryUioFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function AutomationRunDeliveryUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'kind': json['kind'],
|
|
54
|
+
'eventStatus': (0, ExternalEventStatusUio_1.ExternalEventStatusUioFromJSON)(json['eventStatus']),
|
|
55
|
+
'url': json['url'],
|
|
56
|
+
'error': json['error'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function AutomationRunDeliveryUioToJSON(json) {
|
|
60
|
+
return AutomationRunDeliveryUioToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function AutomationRunDeliveryUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'kind': value['kind'],
|
|
68
|
+
'eventStatus': (0, ExternalEventStatusUio_1.ExternalEventStatusUioToJSON)(value['eventStatus']),
|
|
69
|
+
'url': value['url'],
|
|
70
|
+
'error': value['error'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AutomationRunUio } from './AutomationRunUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AutomationRunListUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AutomationRunListUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<AutomationRunUio>}
|
|
22
|
+
* @memberof AutomationRunListUio
|
|
23
|
+
*/
|
|
24
|
+
runs: Array<AutomationRunUio>;
|
|
25
|
+
/**
|
|
26
|
+
* Pass as `before` to get the next page; null on the last one.
|
|
27
|
+
* @type {Date}
|
|
28
|
+
* @memberof AutomationRunListUio
|
|
29
|
+
*/
|
|
30
|
+
nextBefore: Date | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the AutomationRunListUio interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfAutomationRunListUio(value: object): value is AutomationRunListUio;
|
|
36
|
+
export declare function AutomationRunListUioFromJSON(json: any): AutomationRunListUio;
|
|
37
|
+
export declare function AutomationRunListUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationRunListUio;
|
|
38
|
+
export declare function AutomationRunListUioToJSON(json: any): AutomationRunListUio;
|
|
39
|
+
export declare function AutomationRunListUioToJSONTyped(value?: AutomationRunListUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAutomationRunListUio = instanceOfAutomationRunListUio;
|
|
17
|
+
exports.AutomationRunListUioFromJSON = AutomationRunListUioFromJSON;
|
|
18
|
+
exports.AutomationRunListUioFromJSONTyped = AutomationRunListUioFromJSONTyped;
|
|
19
|
+
exports.AutomationRunListUioToJSON = AutomationRunListUioToJSON;
|
|
20
|
+
exports.AutomationRunListUioToJSONTyped = AutomationRunListUioToJSONTyped;
|
|
21
|
+
const AutomationRunUio_1 = require("./AutomationRunUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AutomationRunListUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAutomationRunListUio(value) {
|
|
26
|
+
if (!('runs' in value) || value['runs'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('nextBefore' in value) || value['nextBefore'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function AutomationRunListUioFromJSON(json) {
|
|
33
|
+
return AutomationRunListUioFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function AutomationRunListUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'runs': (json['runs'].map(AutomationRunUio_1.AutomationRunUioFromJSON)),
|
|
41
|
+
'nextBefore': (json['nextBefore'] == null ? null : new Date(json['nextBefore'])),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function AutomationRunListUioToJSON(json) {
|
|
45
|
+
return AutomationRunListUioToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AutomationRunListUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'runs': (value['runs'].map(AutomationRunUio_1.AutomationRunUioToJSON)),
|
|
53
|
+
'nextBefore': (value['nextBefore'] == null ? null : value['nextBefore'].toISOString()),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const AutomationRunOutcomeUio: {
|
|
17
|
+
readonly Success: "success";
|
|
18
|
+
readonly Error: "error";
|
|
19
|
+
readonly Running: "running";
|
|
20
|
+
};
|
|
21
|
+
export type AutomationRunOutcomeUio = typeof AutomationRunOutcomeUio[keyof typeof AutomationRunOutcomeUio];
|
|
22
|
+
export declare function instanceOfAutomationRunOutcomeUio(value: any): boolean;
|
|
23
|
+
export declare function AutomationRunOutcomeUioFromJSON(json: any): AutomationRunOutcomeUio;
|
|
24
|
+
export declare function AutomationRunOutcomeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationRunOutcomeUio;
|
|
25
|
+
export declare function AutomationRunOutcomeUioToJSON(value?: AutomationRunOutcomeUio | null): any;
|
|
26
|
+
export declare function AutomationRunOutcomeUioToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationRunOutcomeUio;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AutomationRunOutcomeUio = void 0;
|
|
17
|
+
exports.instanceOfAutomationRunOutcomeUio = instanceOfAutomationRunOutcomeUio;
|
|
18
|
+
exports.AutomationRunOutcomeUioFromJSON = AutomationRunOutcomeUioFromJSON;
|
|
19
|
+
exports.AutomationRunOutcomeUioFromJSONTyped = AutomationRunOutcomeUioFromJSONTyped;
|
|
20
|
+
exports.AutomationRunOutcomeUioToJSON = AutomationRunOutcomeUioToJSON;
|
|
21
|
+
exports.AutomationRunOutcomeUioToJSONTyped = AutomationRunOutcomeUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AutomationRunOutcomeUio = {
|
|
27
|
+
Success: 'success',
|
|
28
|
+
Error: 'error',
|
|
29
|
+
Running: 'running'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfAutomationRunOutcomeUio(value) {
|
|
32
|
+
for (const key in exports.AutomationRunOutcomeUio) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.AutomationRunOutcomeUio, key)) {
|
|
34
|
+
if (exports.AutomationRunOutcomeUio[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function AutomationRunOutcomeUioFromJSON(json) {
|
|
42
|
+
return AutomationRunOutcomeUioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AutomationRunOutcomeUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function AutomationRunOutcomeUioToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function AutomationRunOutcomeUioToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { TaskScheduleUio } from './TaskScheduleUio';
|
|
13
|
+
import type { AutomationTriggerKindUio } from './AutomationTriggerKindUio';
|
|
14
|
+
/**
|
|
15
|
+
* What triggered the run. `schedule`: `schedule`, `timezone`, `mode`. `gitlab`: `author`, `authorUsername`, `ref`, `title`, `url`, `text` (untrusted user content). `webhook`: `thread`, `contentType`.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AutomationRunSourceUio
|
|
18
|
+
*/
|
|
19
|
+
export interface AutomationRunSourceUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {AutomationTriggerKindUio}
|
|
23
|
+
* @memberof AutomationRunSourceUio
|
|
24
|
+
*/
|
|
25
|
+
kind: AutomationTriggerKindUio;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {TaskScheduleUio}
|
|
29
|
+
* @memberof AutomationRunSourceUio
|
|
30
|
+
*/
|
|
31
|
+
schedule?: TaskScheduleUio | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AutomationRunSourceUio
|
|
36
|
+
*/
|
|
37
|
+
timezone?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AutomationRunSourceUio
|
|
42
|
+
*/
|
|
43
|
+
mode?: AutomationRunSourceUioModeEnum;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AutomationRunSourceUio
|
|
48
|
+
*/
|
|
49
|
+
author?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof AutomationRunSourceUio
|
|
54
|
+
*/
|
|
55
|
+
authorUsername?: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof AutomationRunSourceUio
|
|
60
|
+
*/
|
|
61
|
+
ref?: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof AutomationRunSourceUio
|
|
66
|
+
*/
|
|
67
|
+
title?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof AutomationRunSourceUio
|
|
72
|
+
*/
|
|
73
|
+
url?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof AutomationRunSourceUio
|
|
78
|
+
*/
|
|
79
|
+
text?: string;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof AutomationRunSourceUio
|
|
84
|
+
*/
|
|
85
|
+
thread?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof AutomationRunSourceUio
|
|
90
|
+
*/
|
|
91
|
+
contentType?: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
export declare const AutomationRunSourceUioModeEnum: {
|
|
97
|
+
readonly Once: "once";
|
|
98
|
+
readonly Recurring: "recurring";
|
|
99
|
+
};
|
|
100
|
+
export type AutomationRunSourceUioModeEnum = typeof AutomationRunSourceUioModeEnum[keyof typeof AutomationRunSourceUioModeEnum];
|
|
101
|
+
/**
|
|
102
|
+
* Check if a given object implements the AutomationRunSourceUio interface.
|
|
103
|
+
*/
|
|
104
|
+
export declare function instanceOfAutomationRunSourceUio(value: object): value is AutomationRunSourceUio;
|
|
105
|
+
export declare function AutomationRunSourceUioFromJSON(json: any): AutomationRunSourceUio;
|
|
106
|
+
export declare function AutomationRunSourceUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationRunSourceUio;
|
|
107
|
+
export declare function AutomationRunSourceUioToJSON(json: any): AutomationRunSourceUio;
|
|
108
|
+
export declare function AutomationRunSourceUioToJSONTyped(value?: AutomationRunSourceUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AutomationRunSourceUioModeEnum = void 0;
|
|
17
|
+
exports.instanceOfAutomationRunSourceUio = instanceOfAutomationRunSourceUio;
|
|
18
|
+
exports.AutomationRunSourceUioFromJSON = AutomationRunSourceUioFromJSON;
|
|
19
|
+
exports.AutomationRunSourceUioFromJSONTyped = AutomationRunSourceUioFromJSONTyped;
|
|
20
|
+
exports.AutomationRunSourceUioToJSON = AutomationRunSourceUioToJSON;
|
|
21
|
+
exports.AutomationRunSourceUioToJSONTyped = AutomationRunSourceUioToJSONTyped;
|
|
22
|
+
const TaskScheduleUio_1 = require("./TaskScheduleUio");
|
|
23
|
+
const AutomationTriggerKindUio_1 = require("./AutomationTriggerKindUio");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.AutomationRunSourceUioModeEnum = {
|
|
28
|
+
Once: 'once',
|
|
29
|
+
Recurring: 'recurring'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AutomationRunSourceUio interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfAutomationRunSourceUio(value) {
|
|
35
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function AutomationRunSourceUioFromJSON(json) {
|
|
40
|
+
return AutomationRunSourceUioFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AutomationRunSourceUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'kind': (0, AutomationTriggerKindUio_1.AutomationTriggerKindUioFromJSON)(json['kind']),
|
|
48
|
+
'schedule': json['schedule'] == null ? undefined : (0, TaskScheduleUio_1.TaskScheduleUioFromJSON)(json['schedule']),
|
|
49
|
+
'timezone': json['timezone'] == null ? undefined : json['timezone'],
|
|
50
|
+
'mode': json['mode'] == null ? undefined : json['mode'],
|
|
51
|
+
'author': json['author'] == null ? undefined : json['author'],
|
|
52
|
+
'authorUsername': json['authorUsername'] == null ? undefined : json['authorUsername'],
|
|
53
|
+
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
54
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
55
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
56
|
+
'text': json['text'] == null ? undefined : json['text'],
|
|
57
|
+
'thread': json['thread'] == null ? undefined : json['thread'],
|
|
58
|
+
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function AutomationRunSourceUioToJSON(json) {
|
|
62
|
+
return AutomationRunSourceUioToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function AutomationRunSourceUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'kind': (0, AutomationTriggerKindUio_1.AutomationTriggerKindUioToJSON)(value['kind']),
|
|
70
|
+
'schedule': (0, TaskScheduleUio_1.TaskScheduleUioToJSON)(value['schedule']),
|
|
71
|
+
'timezone': value['timezone'],
|
|
72
|
+
'mode': value['mode'],
|
|
73
|
+
'author': value['author'],
|
|
74
|
+
'authorUsername': value['authorUsername'],
|
|
75
|
+
'ref': value['ref'],
|
|
76
|
+
'title': value['title'],
|
|
77
|
+
'url': value['url'],
|
|
78
|
+
'text': value['text'],
|
|
79
|
+
'thread': value['thread'],
|
|
80
|
+
'contentType': value['contentType'],
|
|
81
|
+
};
|
|
82
|
+
}
|