@breign/client 1.0.176 → 1.0.177
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/IntegrationsApi.d.ts +174 -0
- package/dist/apis/IntegrationsApi.js +445 -0
- package/dist/apis/ScheduledTasksApi.d.ts +14 -1
- package/dist/apis/ScheduledTasksApi.js +33 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ExternalEventRoutingUio.d.ts +53 -0
- package/dist/models/ExternalEventRoutingUio.js +67 -0
- package/dist/models/ExternalEventStatusUio.d.ts +33 -0
- package/dist/models/ExternalEventStatusUio.js +59 -0
- package/dist/models/ExternalEventUio.d.ts +135 -0
- package/dist/models/ExternalEventUio.js +123 -0
- package/dist/models/GitlabAccessLevelUio.d.ts +28 -0
- package/dist/models/GitlabAccessLevelUio.js +54 -0
- package/dist/models/GitlabBotAccountCreateUio.d.ts +50 -0
- package/dist/models/GitlabBotAccountCreateUio.js +58 -0
- package/dist/models/GitlabBotAccountSummaryUio.d.ts +77 -0
- package/dist/models/GitlabBotAccountSummaryUio.js +83 -0
- package/dist/models/GitlabBotAccountUio.d.ts +125 -0
- package/dist/models/GitlabBotAccountUio.js +115 -0
- package/dist/models/GitlabBotAccountUpdateUio.d.ts +64 -0
- package/dist/models/GitlabBotAccountUpdateUio.js +64 -0
- package/dist/models/GitlabConnectionTestResultUio.d.ts +50 -0
- package/dist/models/GitlabConnectionTestResultUio.js +62 -0
- package/dist/models/GitlabIntegrationCreateUio.d.ts +45 -0
- package/dist/models/GitlabIntegrationCreateUio.js +57 -0
- package/dist/models/GitlabIntegrationDetailUio.d.ts +120 -0
- package/dist/models/GitlabIntegrationDetailUio.js +112 -0
- package/dist/models/GitlabIntegrationUio.d.ts +107 -0
- package/dist/models/GitlabIntegrationUio.js +103 -0
- package/dist/models/GitlabIntegrationUpdateUio.d.ts +65 -0
- package/dist/models/GitlabIntegrationUpdateUio.js +65 -0
- package/dist/models/GitlabRoutingTestResultAgentUio.d.ts +38 -0
- package/dist/models/GitlabRoutingTestResultAgentUio.js +54 -0
- package/dist/models/GitlabRoutingTestResultAutomationsInnerUio.d.ts +38 -0
- package/dist/models/GitlabRoutingTestResultAutomationsInnerUio.js +54 -0
- package/dist/models/GitlabRoutingTestResultBotAccountUio.d.ts +38 -0
- package/dist/models/GitlabRoutingTestResultBotAccountUio.js +54 -0
- package/dist/models/GitlabRoutingTestResultRunAsUserUio.d.ts +38 -0
- package/dist/models/GitlabRoutingTestResultRunAsUserUio.js +54 -0
- package/dist/models/GitlabRoutingTestResultUio.d.ts +77 -0
- package/dist/models/GitlabRoutingTestResultUio.js +85 -0
- package/dist/models/GitlabRoutingTestUio.d.ts +32 -0
- package/dist/models/GitlabRoutingTestUio.js +50 -0
- package/dist/models/ScheduledTaskCreateUio.d.ts +9 -2
- package/dist/models/ScheduledTaskCreateUio.js +4 -3
- package/dist/models/ScheduledTaskRunTriggerAuthorUio.d.ts +38 -0
- package/dist/models/ScheduledTaskRunTriggerAuthorUio.js +54 -0
- package/dist/models/ScheduledTaskRunTriggerUio.d.ts +142 -0
- package/dist/models/ScheduledTaskRunTriggerUio.js +129 -0
- package/dist/models/ScheduledTaskRunUio.d.ts +20 -0
- package/dist/models/ScheduledTaskRunUio.js +12 -1
- package/dist/models/ScheduledTaskUio.d.ts +9 -2
- package/dist/models/ScheduledTaskUio.js +3 -0
- package/dist/models/TaskTriggerReplyUio.d.ts +38 -0
- package/dist/models/TaskTriggerReplyUio.js +54 -0
- package/dist/models/TaskTriggerUio.d.ts +88 -0
- package/dist/models/TaskTriggerUio.js +84 -0
- package/dist/models/index.d.ts +23 -0
- package/dist/models/index.js +23 -0
- package/dist/openapi.json +1272 -34
- package/package.json +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfGitlabConnectionTestResultUio = instanceOfGitlabConnectionTestResultUio;
|
|
17
|
+
exports.GitlabConnectionTestResultUioFromJSON = GitlabConnectionTestResultUioFromJSON;
|
|
18
|
+
exports.GitlabConnectionTestResultUioFromJSONTyped = GitlabConnectionTestResultUioFromJSONTyped;
|
|
19
|
+
exports.GitlabConnectionTestResultUioToJSON = GitlabConnectionTestResultUioToJSON;
|
|
20
|
+
exports.GitlabConnectionTestResultUioToJSONTyped = GitlabConnectionTestResultUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GitlabConnectionTestResultUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGitlabConnectionTestResultUio(value) {
|
|
25
|
+
if (!('botAccountId' in value) || value['botAccountId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('username' in value) || value['username'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function GitlabConnectionTestResultUioFromJSON(json) {
|
|
36
|
+
return GitlabConnectionTestResultUioFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function GitlabConnectionTestResultUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'botAccountId': json['botAccountId'],
|
|
44
|
+
'username': json['username'],
|
|
45
|
+
'ok': json['ok'],
|
|
46
|
+
'error': json['error'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function GitlabConnectionTestResultUioToJSON(json) {
|
|
50
|
+
return GitlabConnectionTestResultUioToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function GitlabConnectionTestResultUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'botAccountId': value['botAccountId'],
|
|
58
|
+
'username': value['username'],
|
|
59
|
+
'ok': value['ok'],
|
|
60
|
+
'error': value['error'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { GitlabAccessLevelUio } from './GitlabAccessLevelUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GitlabIntegrationCreateUio
|
|
17
|
+
*/
|
|
18
|
+
export interface GitlabIntegrationCreateUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GitlabIntegrationCreateUio
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GitlabIntegrationCreateUio
|
|
29
|
+
*/
|
|
30
|
+
baseUrl: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {GitlabAccessLevelUio}
|
|
34
|
+
* @memberof GitlabIntegrationCreateUio
|
|
35
|
+
*/
|
|
36
|
+
minAccessLevel?: GitlabAccessLevelUio;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the GitlabIntegrationCreateUio interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfGitlabIntegrationCreateUio(value: object): value is GitlabIntegrationCreateUio;
|
|
42
|
+
export declare function GitlabIntegrationCreateUioFromJSON(json: any): GitlabIntegrationCreateUio;
|
|
43
|
+
export declare function GitlabIntegrationCreateUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitlabIntegrationCreateUio;
|
|
44
|
+
export declare function GitlabIntegrationCreateUioToJSON(json: any): GitlabIntegrationCreateUio;
|
|
45
|
+
export declare function GitlabIntegrationCreateUioToJSONTyped(value?: GitlabIntegrationCreateUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfGitlabIntegrationCreateUio = instanceOfGitlabIntegrationCreateUio;
|
|
17
|
+
exports.GitlabIntegrationCreateUioFromJSON = GitlabIntegrationCreateUioFromJSON;
|
|
18
|
+
exports.GitlabIntegrationCreateUioFromJSONTyped = GitlabIntegrationCreateUioFromJSONTyped;
|
|
19
|
+
exports.GitlabIntegrationCreateUioToJSON = GitlabIntegrationCreateUioToJSON;
|
|
20
|
+
exports.GitlabIntegrationCreateUioToJSONTyped = GitlabIntegrationCreateUioToJSONTyped;
|
|
21
|
+
const GitlabAccessLevelUio_1 = require("./GitlabAccessLevelUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GitlabIntegrationCreateUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGitlabIntegrationCreateUio(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('baseUrl' in value) || value['baseUrl'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function GitlabIntegrationCreateUioFromJSON(json) {
|
|
33
|
+
return GitlabIntegrationCreateUioFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function GitlabIntegrationCreateUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'baseUrl': json['baseUrl'],
|
|
42
|
+
'minAccessLevel': json['minAccessLevel'] == null ? undefined : (0, GitlabAccessLevelUio_1.GitlabAccessLevelUioFromJSON)(json['minAccessLevel']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function GitlabIntegrationCreateUioToJSON(json) {
|
|
46
|
+
return GitlabIntegrationCreateUioToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function GitlabIntegrationCreateUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'name': value['name'],
|
|
54
|
+
'baseUrl': value['baseUrl'],
|
|
55
|
+
'minAccessLevel': (0, GitlabAccessLevelUio_1.GitlabAccessLevelUioToJSON)(value['minAccessLevel']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
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 { GitlabBotAccountUio } from './GitlabBotAccountUio';
|
|
13
|
+
import type { GitlabAccessLevelUio } from './GitlabAccessLevelUio';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GitlabIntegrationDetailUio
|
|
18
|
+
*/
|
|
19
|
+
export interface GitlabIntegrationDetailUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GitlabIntegrationDetailUio
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof GitlabIntegrationDetailUio
|
|
30
|
+
*/
|
|
31
|
+
organizationId: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof GitlabIntegrationDetailUio
|
|
36
|
+
*/
|
|
37
|
+
name: string;
|
|
38
|
+
/**
|
|
39
|
+
* The instance URL, without a trailing slash.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof GitlabIntegrationDetailUio
|
|
42
|
+
*/
|
|
43
|
+
baseUrl: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {GitlabAccessLevelUio}
|
|
47
|
+
* @memberof GitlabIntegrationDetailUio
|
|
48
|
+
*/
|
|
49
|
+
minAccessLevel: GitlabAccessLevelUio;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof GitlabIntegrationDetailUio
|
|
54
|
+
*/
|
|
55
|
+
status: GitlabIntegrationDetailUioStatusEnum;
|
|
56
|
+
/**
|
|
57
|
+
* The URL to declare in GitLab, Settings › Webhooks.
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof GitlabIntegrationDetailUio
|
|
60
|
+
*/
|
|
61
|
+
webhookUrl: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Date}
|
|
65
|
+
* @memberof GitlabIntegrationDetailUio
|
|
66
|
+
*/
|
|
67
|
+
lastEventAt: Date | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof GitlabIntegrationDetailUio
|
|
72
|
+
*/
|
|
73
|
+
botAccountCount: number;
|
|
74
|
+
/**
|
|
75
|
+
* Mentions answered over the last 7 days.
|
|
76
|
+
* @type {number}
|
|
77
|
+
* @memberof GitlabIntegrationDetailUio
|
|
78
|
+
*/
|
|
79
|
+
handledLast7Days: number;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {Date}
|
|
83
|
+
* @memberof GitlabIntegrationDetailUio
|
|
84
|
+
*/
|
|
85
|
+
createdAt: Date;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {Date}
|
|
89
|
+
* @memberof GitlabIntegrationDetailUio
|
|
90
|
+
*/
|
|
91
|
+
updatedAt: Date;
|
|
92
|
+
/**
|
|
93
|
+
* The webhook "Secret token" to copy into GitLab. Only organization admins read it.
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof GitlabIntegrationDetailUio
|
|
96
|
+
*/
|
|
97
|
+
webhookSecret: string;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {Array<GitlabBotAccountUio>}
|
|
101
|
+
* @memberof GitlabIntegrationDetailUio
|
|
102
|
+
*/
|
|
103
|
+
botAccounts: Array<GitlabBotAccountUio>;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* @export
|
|
107
|
+
*/
|
|
108
|
+
export declare const GitlabIntegrationDetailUioStatusEnum: {
|
|
109
|
+
readonly Active: "active";
|
|
110
|
+
readonly Disabled: "disabled";
|
|
111
|
+
};
|
|
112
|
+
export type GitlabIntegrationDetailUioStatusEnum = typeof GitlabIntegrationDetailUioStatusEnum[keyof typeof GitlabIntegrationDetailUioStatusEnum];
|
|
113
|
+
/**
|
|
114
|
+
* Check if a given object implements the GitlabIntegrationDetailUio interface.
|
|
115
|
+
*/
|
|
116
|
+
export declare function instanceOfGitlabIntegrationDetailUio(value: object): value is GitlabIntegrationDetailUio;
|
|
117
|
+
export declare function GitlabIntegrationDetailUioFromJSON(json: any): GitlabIntegrationDetailUio;
|
|
118
|
+
export declare function GitlabIntegrationDetailUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitlabIntegrationDetailUio;
|
|
119
|
+
export declare function GitlabIntegrationDetailUioToJSON(json: any): GitlabIntegrationDetailUio;
|
|
120
|
+
export declare function GitlabIntegrationDetailUioToJSONTyped(value?: GitlabIntegrationDetailUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,112 @@
|
|
|
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.GitlabIntegrationDetailUioStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfGitlabIntegrationDetailUio = instanceOfGitlabIntegrationDetailUio;
|
|
18
|
+
exports.GitlabIntegrationDetailUioFromJSON = GitlabIntegrationDetailUioFromJSON;
|
|
19
|
+
exports.GitlabIntegrationDetailUioFromJSONTyped = GitlabIntegrationDetailUioFromJSONTyped;
|
|
20
|
+
exports.GitlabIntegrationDetailUioToJSON = GitlabIntegrationDetailUioToJSON;
|
|
21
|
+
exports.GitlabIntegrationDetailUioToJSONTyped = GitlabIntegrationDetailUioToJSONTyped;
|
|
22
|
+
const GitlabBotAccountUio_1 = require("./GitlabBotAccountUio");
|
|
23
|
+
const GitlabAccessLevelUio_1 = require("./GitlabAccessLevelUio");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.GitlabIntegrationDetailUioStatusEnum = {
|
|
28
|
+
Active: 'active',
|
|
29
|
+
Disabled: 'disabled'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the GitlabIntegrationDetailUio interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfGitlabIntegrationDetailUio(value) {
|
|
35
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('organizationId' in value) || value['organizationId'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('baseUrl' in value) || value['baseUrl'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('minAccessLevel' in value) || value['minAccessLevel'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('webhookUrl' in value) || value['webhookUrl'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('lastEventAt' in value) || value['lastEventAt'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('botAccountCount' in value) || value['botAccountCount'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('handledLast7Days' in value) || value['handledLast7Days'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('webhookSecret' in value) || value['webhookSecret'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('botAccounts' in value) || value['botAccounts'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
function GitlabIntegrationDetailUioFromJSON(json) {
|
|
66
|
+
return GitlabIntegrationDetailUioFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function GitlabIntegrationDetailUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
69
|
+
if (json == null) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'id': json['id'],
|
|
74
|
+
'organizationId': json['organizationId'],
|
|
75
|
+
'name': json['name'],
|
|
76
|
+
'baseUrl': json['baseUrl'],
|
|
77
|
+
'minAccessLevel': (0, GitlabAccessLevelUio_1.GitlabAccessLevelUioFromJSON)(json['minAccessLevel']),
|
|
78
|
+
'status': json['status'],
|
|
79
|
+
'webhookUrl': json['webhookUrl'],
|
|
80
|
+
'lastEventAt': (json['lastEventAt'] == null ? null : new Date(json['lastEventAt'])),
|
|
81
|
+
'botAccountCount': json['botAccountCount'],
|
|
82
|
+
'handledLast7Days': json['handledLast7Days'],
|
|
83
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
84
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
85
|
+
'webhookSecret': json['webhookSecret'],
|
|
86
|
+
'botAccounts': (json['botAccounts'].map(GitlabBotAccountUio_1.GitlabBotAccountUioFromJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function GitlabIntegrationDetailUioToJSON(json) {
|
|
90
|
+
return GitlabIntegrationDetailUioToJSONTyped(json, false);
|
|
91
|
+
}
|
|
92
|
+
function GitlabIntegrationDetailUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
'id': value['id'],
|
|
98
|
+
'organizationId': value['organizationId'],
|
|
99
|
+
'name': value['name'],
|
|
100
|
+
'baseUrl': value['baseUrl'],
|
|
101
|
+
'minAccessLevel': (0, GitlabAccessLevelUio_1.GitlabAccessLevelUioToJSON)(value['minAccessLevel']),
|
|
102
|
+
'status': value['status'],
|
|
103
|
+
'webhookUrl': value['webhookUrl'],
|
|
104
|
+
'lastEventAt': (value['lastEventAt'] == null ? null : value['lastEventAt'].toISOString()),
|
|
105
|
+
'botAccountCount': value['botAccountCount'],
|
|
106
|
+
'handledLast7Days': value['handledLast7Days'],
|
|
107
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
108
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
109
|
+
'webhookSecret': value['webhookSecret'],
|
|
110
|
+
'botAccounts': (value['botAccounts'].map(GitlabBotAccountUio_1.GitlabBotAccountUioToJSON)),
|
|
111
|
+
};
|
|
112
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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 { GitlabAccessLevelUio } from './GitlabAccessLevelUio';
|
|
13
|
+
/**
|
|
14
|
+
* A GitLab instance linked to an organization. Its projects send webhooks to `webhookUrl`.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GitlabIntegrationUio
|
|
17
|
+
*/
|
|
18
|
+
export interface GitlabIntegrationUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GitlabIntegrationUio
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GitlabIntegrationUio
|
|
29
|
+
*/
|
|
30
|
+
organizationId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GitlabIntegrationUio
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* The instance URL, without a trailing slash.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GitlabIntegrationUio
|
|
41
|
+
*/
|
|
42
|
+
baseUrl: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {GitlabAccessLevelUio}
|
|
46
|
+
* @memberof GitlabIntegrationUio
|
|
47
|
+
*/
|
|
48
|
+
minAccessLevel: GitlabAccessLevelUio;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof GitlabIntegrationUio
|
|
53
|
+
*/
|
|
54
|
+
status: GitlabIntegrationUioStatusEnum;
|
|
55
|
+
/**
|
|
56
|
+
* The URL to declare in GitLab, Settings › Webhooks.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof GitlabIntegrationUio
|
|
59
|
+
*/
|
|
60
|
+
webhookUrl: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof GitlabIntegrationUio
|
|
65
|
+
*/
|
|
66
|
+
lastEventAt: Date | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof GitlabIntegrationUio
|
|
71
|
+
*/
|
|
72
|
+
botAccountCount: number;
|
|
73
|
+
/**
|
|
74
|
+
* Mentions answered over the last 7 days.
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof GitlabIntegrationUio
|
|
77
|
+
*/
|
|
78
|
+
handledLast7Days: number;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Date}
|
|
82
|
+
* @memberof GitlabIntegrationUio
|
|
83
|
+
*/
|
|
84
|
+
createdAt: Date;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {Date}
|
|
88
|
+
* @memberof GitlabIntegrationUio
|
|
89
|
+
*/
|
|
90
|
+
updatedAt: Date;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @export
|
|
94
|
+
*/
|
|
95
|
+
export declare const GitlabIntegrationUioStatusEnum: {
|
|
96
|
+
readonly Active: "active";
|
|
97
|
+
readonly Disabled: "disabled";
|
|
98
|
+
};
|
|
99
|
+
export type GitlabIntegrationUioStatusEnum = typeof GitlabIntegrationUioStatusEnum[keyof typeof GitlabIntegrationUioStatusEnum];
|
|
100
|
+
/**
|
|
101
|
+
* Check if a given object implements the GitlabIntegrationUio interface.
|
|
102
|
+
*/
|
|
103
|
+
export declare function instanceOfGitlabIntegrationUio(value: object): value is GitlabIntegrationUio;
|
|
104
|
+
export declare function GitlabIntegrationUioFromJSON(json: any): GitlabIntegrationUio;
|
|
105
|
+
export declare function GitlabIntegrationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitlabIntegrationUio;
|
|
106
|
+
export declare function GitlabIntegrationUioToJSON(json: any): GitlabIntegrationUio;
|
|
107
|
+
export declare function GitlabIntegrationUioToJSONTyped(value?: GitlabIntegrationUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,103 @@
|
|
|
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.GitlabIntegrationUioStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfGitlabIntegrationUio = instanceOfGitlabIntegrationUio;
|
|
18
|
+
exports.GitlabIntegrationUioFromJSON = GitlabIntegrationUioFromJSON;
|
|
19
|
+
exports.GitlabIntegrationUioFromJSONTyped = GitlabIntegrationUioFromJSONTyped;
|
|
20
|
+
exports.GitlabIntegrationUioToJSON = GitlabIntegrationUioToJSON;
|
|
21
|
+
exports.GitlabIntegrationUioToJSONTyped = GitlabIntegrationUioToJSONTyped;
|
|
22
|
+
const GitlabAccessLevelUio_1 = require("./GitlabAccessLevelUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.GitlabIntegrationUioStatusEnum = {
|
|
27
|
+
Active: 'active',
|
|
28
|
+
Disabled: 'disabled'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the GitlabIntegrationUio interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfGitlabIntegrationUio(value) {
|
|
34
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('organizationId' in value) || value['organizationId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('baseUrl' in value) || value['baseUrl'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('minAccessLevel' in value) || value['minAccessLevel'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('webhookUrl' in value) || value['webhookUrl'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('lastEventAt' in value) || value['lastEventAt'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('botAccountCount' in value) || value['botAccountCount'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('handledLast7Days' in value) || value['handledLast7Days'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
function GitlabIntegrationUioFromJSON(json) {
|
|
61
|
+
return GitlabIntegrationUioFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function GitlabIntegrationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'id': json['id'],
|
|
69
|
+
'organizationId': json['organizationId'],
|
|
70
|
+
'name': json['name'],
|
|
71
|
+
'baseUrl': json['baseUrl'],
|
|
72
|
+
'minAccessLevel': (0, GitlabAccessLevelUio_1.GitlabAccessLevelUioFromJSON)(json['minAccessLevel']),
|
|
73
|
+
'status': json['status'],
|
|
74
|
+
'webhookUrl': json['webhookUrl'],
|
|
75
|
+
'lastEventAt': (json['lastEventAt'] == null ? null : new Date(json['lastEventAt'])),
|
|
76
|
+
'botAccountCount': json['botAccountCount'],
|
|
77
|
+
'handledLast7Days': json['handledLast7Days'],
|
|
78
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
79
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function GitlabIntegrationUioToJSON(json) {
|
|
83
|
+
return GitlabIntegrationUioToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
function GitlabIntegrationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
'id': value['id'],
|
|
91
|
+
'organizationId': value['organizationId'],
|
|
92
|
+
'name': value['name'],
|
|
93
|
+
'baseUrl': value['baseUrl'],
|
|
94
|
+
'minAccessLevel': (0, GitlabAccessLevelUio_1.GitlabAccessLevelUioToJSON)(value['minAccessLevel']),
|
|
95
|
+
'status': value['status'],
|
|
96
|
+
'webhookUrl': value['webhookUrl'],
|
|
97
|
+
'lastEventAt': (value['lastEventAt'] == null ? null : value['lastEventAt'].toISOString()),
|
|
98
|
+
'botAccountCount': value['botAccountCount'],
|
|
99
|
+
'handledLast7Days': value['handledLast7Days'],
|
|
100
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
101
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { GitlabAccessLevelUio } from './GitlabAccessLevelUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GitlabIntegrationUpdateUio
|
|
17
|
+
*/
|
|
18
|
+
export interface GitlabIntegrationUpdateUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GitlabIntegrationUpdateUio
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GitlabIntegrationUpdateUio
|
|
29
|
+
*/
|
|
30
|
+
baseUrl?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {GitlabAccessLevelUio}
|
|
34
|
+
* @memberof GitlabIntegrationUpdateUio
|
|
35
|
+
*/
|
|
36
|
+
minAccessLevel?: GitlabAccessLevelUio;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GitlabIntegrationUpdateUio
|
|
41
|
+
*/
|
|
42
|
+
status?: GitlabIntegrationUpdateUioStatusEnum;
|
|
43
|
+
/**
|
|
44
|
+
* Generate a new webhook secret; GitLab must then be given the new one.
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof GitlabIntegrationUpdateUio
|
|
47
|
+
*/
|
|
48
|
+
regenerateSecret?: boolean;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const GitlabIntegrationUpdateUioStatusEnum: {
|
|
54
|
+
readonly Active: "active";
|
|
55
|
+
readonly Disabled: "disabled";
|
|
56
|
+
};
|
|
57
|
+
export type GitlabIntegrationUpdateUioStatusEnum = typeof GitlabIntegrationUpdateUioStatusEnum[keyof typeof GitlabIntegrationUpdateUioStatusEnum];
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the GitlabIntegrationUpdateUio interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfGitlabIntegrationUpdateUio(value: object): value is GitlabIntegrationUpdateUio;
|
|
62
|
+
export declare function GitlabIntegrationUpdateUioFromJSON(json: any): GitlabIntegrationUpdateUio;
|
|
63
|
+
export declare function GitlabIntegrationUpdateUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitlabIntegrationUpdateUio;
|
|
64
|
+
export declare function GitlabIntegrationUpdateUioToJSON(json: any): GitlabIntegrationUpdateUio;
|
|
65
|
+
export declare function GitlabIntegrationUpdateUioToJSONTyped(value?: GitlabIntegrationUpdateUio | null, ignoreDiscriminator?: boolean): any;
|