@forteplatforms/sdk 1.0.60 → 1.0.68
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/generated/apis/ProjectsServerApi.d.ts +86 -1
- package/dist/generated/apis/ProjectsServerApi.js +400 -0
- package/dist/generated/models/BuildStepLog.d.ts +20 -0
- package/dist/generated/models/BuildStepLog.js +20 -0
- package/dist/generated/models/CreateWebAppRequest.d.ts +110 -0
- package/dist/generated/models/CreateWebAppRequest.js +85 -0
- package/dist/generated/models/DockerfileGenerationResponse.d.ts +1 -1
- package/dist/generated/models/ForteApiException.d.ts +3 -0
- package/dist/generated/models/ForteApiException.js +3 -0
- package/dist/generated/models/HealthCheckDetectionResponse.d.ts +1 -1
- package/dist/generated/models/PaginatedResponseWebAppBuildRequestObject.d.ts +45 -0
- package/dist/generated/models/PaginatedResponseWebAppBuildRequestObject.js +58 -0
- package/dist/generated/models/ProjectObject.d.ts +7 -0
- package/dist/generated/models/ProjectObject.js +5 -0
- package/dist/generated/models/ServiceBuildRequestObject.d.ts +10 -0
- package/dist/generated/models/ServiceBuildRequestObject.js +10 -0
- package/dist/generated/models/UpdateWebAppRequest.d.ts +90 -0
- package/dist/generated/models/UpdateWebAppRequest.js +67 -0
- package/dist/generated/models/UpdateWebAppResponse.d.ts +40 -0
- package/dist/generated/models/UpdateWebAppResponse.js +55 -0
- package/dist/generated/models/WebAppBuildRequestObject.d.ts +207 -0
- package/dist/generated/models/WebAppBuildRequestObject.js +145 -0
- package/dist/generated/models/WebAppDetectionError.d.ts +50 -0
- package/dist/generated/models/WebAppDetectionError.js +63 -0
- package/dist/generated/models/WebAppDetectionResponse.d.ts +89 -0
- package/dist/generated/models/WebAppDetectionResponse.js +74 -0
- package/dist/generated/models/WebAppObject.d.ts +201 -0
- package/dist/generated/models/WebAppObject.js +123 -0
- package/dist/generated/models/index.d.ts +8 -0
- package/dist/generated/models/index.js +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
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.instanceOfUpdateWebAppResponse = instanceOfUpdateWebAppResponse;
|
|
17
|
+
exports.UpdateWebAppResponseFromJSON = UpdateWebAppResponseFromJSON;
|
|
18
|
+
exports.UpdateWebAppResponseFromJSONTyped = UpdateWebAppResponseFromJSONTyped;
|
|
19
|
+
exports.UpdateWebAppResponseToJSON = UpdateWebAppResponseToJSON;
|
|
20
|
+
exports.UpdateWebAppResponseToJSONTyped = UpdateWebAppResponseToJSONTyped;
|
|
21
|
+
var WebAppObject_1 = require("./WebAppObject");
|
|
22
|
+
var WebAppBuildRequestObject_1 = require("./WebAppBuildRequestObject");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the UpdateWebAppResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfUpdateWebAppResponse(value) {
|
|
27
|
+
if (!('updatedWebApp' in value) || value['updatedWebApp'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function UpdateWebAppResponseFromJSON(json) {
|
|
32
|
+
return UpdateWebAppResponseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function UpdateWebAppResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'updatedWebApp': (0, WebAppObject_1.WebAppObjectFromJSON)(json['updatedWebApp']),
|
|
40
|
+
'build': json['build'] == null ? undefined : (0, WebAppBuildRequestObject_1.WebAppBuildRequestObjectFromJSON)(json['build']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function UpdateWebAppResponseToJSON(json) {
|
|
44
|
+
return UpdateWebAppResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function UpdateWebAppResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'updatedWebApp': (0, WebAppObject_1.WebAppObjectToJSON)(value['updatedWebApp']),
|
|
53
|
+
'build': (0, WebAppBuildRequestObject_1.WebAppBuildRequestObjectToJSON)(value['build']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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 { WebAppDetectionError } from './WebAppDetectionError';
|
|
13
|
+
import type { BuildStepLog } from './BuildStepLog';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface WebAppBuildRequestObject
|
|
18
|
+
*/
|
|
19
|
+
export interface WebAppBuildRequestObject {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof WebAppBuildRequestObject
|
|
24
|
+
*/
|
|
25
|
+
buildId?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {WebAppDetectionError}
|
|
29
|
+
* @memberof WebAppBuildRequestObject
|
|
30
|
+
*/
|
|
31
|
+
detectionError?: WebAppDetectionError;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof WebAppBuildRequestObject
|
|
36
|
+
*/
|
|
37
|
+
packageManager?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof WebAppBuildRequestObject
|
|
42
|
+
*/
|
|
43
|
+
nodeVersion?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof WebAppBuildRequestObject
|
|
48
|
+
*/
|
|
49
|
+
buildCommand?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof WebAppBuildRequestObject
|
|
54
|
+
*/
|
|
55
|
+
buildPath?: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof WebAppBuildRequestObject
|
|
60
|
+
*/
|
|
61
|
+
detectedFramework?: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof WebAppBuildRequestObject
|
|
66
|
+
*/
|
|
67
|
+
outputZipS3Key?: string;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof WebAppBuildRequestObject
|
|
72
|
+
*/
|
|
73
|
+
hostingDeploymentId?: string;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof WebAppBuildRequestObject
|
|
78
|
+
*/
|
|
79
|
+
hostingDeploymentStatus?: string;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {boolean}
|
|
83
|
+
* @memberof WebAppBuildRequestObject
|
|
84
|
+
*/
|
|
85
|
+
allBuildLogsReceived?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {Date}
|
|
89
|
+
* @memberof WebAppBuildRequestObject
|
|
90
|
+
*/
|
|
91
|
+
startTime: Date;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {Date}
|
|
95
|
+
* @memberof WebAppBuildRequestObject
|
|
96
|
+
*/
|
|
97
|
+
lastUpdatedTime?: Date;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof WebAppBuildRequestObject
|
|
102
|
+
*/
|
|
103
|
+
serviceId: string;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof WebAppBuildRequestObject
|
|
108
|
+
*/
|
|
109
|
+
commitHash?: string;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof WebAppBuildRequestObject
|
|
114
|
+
*/
|
|
115
|
+
commitMessage?: string;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof WebAppBuildRequestObject
|
|
120
|
+
*/
|
|
121
|
+
commitAuthorName?: string;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof WebAppBuildRequestObject
|
|
126
|
+
*/
|
|
127
|
+
gitRef?: string;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof WebAppBuildRequestObject
|
|
132
|
+
*/
|
|
133
|
+
releaseTagName?: string;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {Array<BuildStepLog>}
|
|
137
|
+
* @memberof WebAppBuildRequestObject
|
|
138
|
+
*/
|
|
139
|
+
buildStepLogs?: Array<BuildStepLog>;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {string}
|
|
143
|
+
* @memberof WebAppBuildRequestObject
|
|
144
|
+
*/
|
|
145
|
+
status: WebAppBuildRequestObjectStatusType;
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @type {string}
|
|
149
|
+
* @memberof WebAppBuildRequestObject
|
|
150
|
+
*/
|
|
151
|
+
origin?: WebAppBuildRequestObjectOriginType;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* @export
|
|
155
|
+
*/
|
|
156
|
+
export declare const WebAppBuildRequestObjectStatusType: {
|
|
157
|
+
readonly PENDING: "PENDING";
|
|
158
|
+
readonly CLONING_REPOSITORY: "CLONING_REPOSITORY";
|
|
159
|
+
readonly GENERATING_DOCKERFILE: "GENERATING_DOCKERFILE";
|
|
160
|
+
readonly DOCKERFILE_GENERATION_FAILURE: "DOCKERFILE_GENERATION_FAILURE";
|
|
161
|
+
readonly VALIDATING_GENERATED_DOCKERFILE: "VALIDATING_GENERATED_DOCKERFILE";
|
|
162
|
+
readonly VALIDATED_GENERATED_DOCKERFILE: "VALIDATED_GENERATED_DOCKERFILE";
|
|
163
|
+
readonly BUILDING_DOCKER_IMAGE: "BUILDING_DOCKER_IMAGE";
|
|
164
|
+
readonly DOCKER_IMAGE_BUILD_FAILURE: "DOCKER_IMAGE_BUILD_FAILURE";
|
|
165
|
+
readonly DETECTING_HEALTH_CHECK_CONFIG: "DETECTING_HEALTH_CHECK_CONFIG";
|
|
166
|
+
readonly HEALTH_CHECK_DETECTION_FAILURE: "HEALTH_CHECK_DETECTION_FAILURE";
|
|
167
|
+
readonly DEPLOYMENT_PENDING: "DEPLOYMENT_PENDING";
|
|
168
|
+
readonly DEPLOYMENT_IN_PROGRESS: "DEPLOYMENT_IN_PROGRESS";
|
|
169
|
+
readonly CONFIGURING_NETWORK: "CONFIGURING_NETWORK";
|
|
170
|
+
readonly VALIDATING_SERVICE_HEALTH: "VALIDATING_SERVICE_HEALTH";
|
|
171
|
+
readonly DEPLOYMENT_FAILURE: "DEPLOYMENT_FAILURE";
|
|
172
|
+
readonly VALIDATION_HEALTH_CHECK_FAILURE: "VALIDATION_HEALTH_CHECK_FAILURE";
|
|
173
|
+
readonly DETECTING_WEB_APP_CONFIG: "DETECTING_WEB_APP_CONFIG";
|
|
174
|
+
readonly WEB_APP_CONFIG_DETECTION_FAILURE: "WEB_APP_CONFIG_DETECTION_FAILURE";
|
|
175
|
+
readonly BUILDING_WEB_APP: "BUILDING_WEB_APP";
|
|
176
|
+
readonly WEB_APP_BUILD_FAILURE: "WEB_APP_BUILD_FAILURE";
|
|
177
|
+
readonly DEPLOYING_STATIC_SITE: "DEPLOYING_STATIC_SITE";
|
|
178
|
+
readonly STATIC_SITE_DEPLOYMENT_FAILURE: "STATIC_SITE_DEPLOYMENT_FAILURE";
|
|
179
|
+
readonly DEPLOYING_SERVER_SIDE_SITE: "DEPLOYING_SERVER_SIDE_SITE";
|
|
180
|
+
readonly SERVER_SIDE_SITE_DEPLOYMENT_FAILURE: "SERVER_SIDE_SITE_DEPLOYMENT_FAILURE";
|
|
181
|
+
readonly CONFIGURING_CUSTOM_DOMAIN: "CONFIGURING_CUSTOM_DOMAIN";
|
|
182
|
+
readonly CUSTOM_DOMAIN_CONFIGURATION_FAILURE: "CUSTOM_DOMAIN_CONFIGURATION_FAILURE";
|
|
183
|
+
readonly CANCELLED: "CANCELLED";
|
|
184
|
+
readonly FAILED: "FAILED";
|
|
185
|
+
readonly SUCCEEDED: "SUCCEEDED";
|
|
186
|
+
};
|
|
187
|
+
export type WebAppBuildRequestObjectStatusType = typeof WebAppBuildRequestObjectStatusType[keyof typeof WebAppBuildRequestObjectStatusType];
|
|
188
|
+
/**
|
|
189
|
+
* @export
|
|
190
|
+
*/
|
|
191
|
+
export declare const WebAppBuildRequestObjectOriginType: {
|
|
192
|
+
readonly INITIAL_BUILD: "INITIAL_BUILD";
|
|
193
|
+
readonly TRIGGERED_BY_PUSH: "TRIGGERED_BY_PUSH";
|
|
194
|
+
readonly TRIGGERED_BY_RELEASE: "TRIGGERED_BY_RELEASE";
|
|
195
|
+
readonly MANUAL_TRIGGER_FROM_DASHBOARD: "MANUAL_TRIGGER_FROM_DASHBOARD";
|
|
196
|
+
readonly CONFIG_CHANGE: "CONFIG_CHANGE";
|
|
197
|
+
readonly SHADOW_VALIDATION_BUILD: "SHADOW_VALIDATION_BUILD";
|
|
198
|
+
};
|
|
199
|
+
export type WebAppBuildRequestObjectOriginType = typeof WebAppBuildRequestObjectOriginType[keyof typeof WebAppBuildRequestObjectOriginType];
|
|
200
|
+
/**
|
|
201
|
+
* Check if a given object implements the WebAppBuildRequestObject interface.
|
|
202
|
+
*/
|
|
203
|
+
export declare function instanceOfWebAppBuildRequestObject(value: object): value is WebAppBuildRequestObject;
|
|
204
|
+
export declare function WebAppBuildRequestObjectFromJSON(json: any): WebAppBuildRequestObject;
|
|
205
|
+
export declare function WebAppBuildRequestObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebAppBuildRequestObject;
|
|
206
|
+
export declare function WebAppBuildRequestObjectToJSON(json: any): WebAppBuildRequestObject;
|
|
207
|
+
export declare function WebAppBuildRequestObjectToJSONTyped(value?: WebAppBuildRequestObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
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.WebAppBuildRequestObjectOriginType = exports.WebAppBuildRequestObjectStatusType = void 0;
|
|
17
|
+
exports.instanceOfWebAppBuildRequestObject = instanceOfWebAppBuildRequestObject;
|
|
18
|
+
exports.WebAppBuildRequestObjectFromJSON = WebAppBuildRequestObjectFromJSON;
|
|
19
|
+
exports.WebAppBuildRequestObjectFromJSONTyped = WebAppBuildRequestObjectFromJSONTyped;
|
|
20
|
+
exports.WebAppBuildRequestObjectToJSON = WebAppBuildRequestObjectToJSON;
|
|
21
|
+
exports.WebAppBuildRequestObjectToJSONTyped = WebAppBuildRequestObjectToJSONTyped;
|
|
22
|
+
var WebAppDetectionError_1 = require("./WebAppDetectionError");
|
|
23
|
+
var BuildStepLog_1 = require("./BuildStepLog");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.WebAppBuildRequestObjectStatusType = {
|
|
28
|
+
PENDING: 'PENDING',
|
|
29
|
+
CLONING_REPOSITORY: 'CLONING_REPOSITORY',
|
|
30
|
+
GENERATING_DOCKERFILE: 'GENERATING_DOCKERFILE',
|
|
31
|
+
DOCKERFILE_GENERATION_FAILURE: 'DOCKERFILE_GENERATION_FAILURE',
|
|
32
|
+
VALIDATING_GENERATED_DOCKERFILE: 'VALIDATING_GENERATED_DOCKERFILE',
|
|
33
|
+
VALIDATED_GENERATED_DOCKERFILE: 'VALIDATED_GENERATED_DOCKERFILE',
|
|
34
|
+
BUILDING_DOCKER_IMAGE: 'BUILDING_DOCKER_IMAGE',
|
|
35
|
+
DOCKER_IMAGE_BUILD_FAILURE: 'DOCKER_IMAGE_BUILD_FAILURE',
|
|
36
|
+
DETECTING_HEALTH_CHECK_CONFIG: 'DETECTING_HEALTH_CHECK_CONFIG',
|
|
37
|
+
HEALTH_CHECK_DETECTION_FAILURE: 'HEALTH_CHECK_DETECTION_FAILURE',
|
|
38
|
+
DEPLOYMENT_PENDING: 'DEPLOYMENT_PENDING',
|
|
39
|
+
DEPLOYMENT_IN_PROGRESS: 'DEPLOYMENT_IN_PROGRESS',
|
|
40
|
+
CONFIGURING_NETWORK: 'CONFIGURING_NETWORK',
|
|
41
|
+
VALIDATING_SERVICE_HEALTH: 'VALIDATING_SERVICE_HEALTH',
|
|
42
|
+
DEPLOYMENT_FAILURE: 'DEPLOYMENT_FAILURE',
|
|
43
|
+
VALIDATION_HEALTH_CHECK_FAILURE: 'VALIDATION_HEALTH_CHECK_FAILURE',
|
|
44
|
+
DETECTING_WEB_APP_CONFIG: 'DETECTING_WEB_APP_CONFIG',
|
|
45
|
+
WEB_APP_CONFIG_DETECTION_FAILURE: 'WEB_APP_CONFIG_DETECTION_FAILURE',
|
|
46
|
+
BUILDING_WEB_APP: 'BUILDING_WEB_APP',
|
|
47
|
+
WEB_APP_BUILD_FAILURE: 'WEB_APP_BUILD_FAILURE',
|
|
48
|
+
DEPLOYING_STATIC_SITE: 'DEPLOYING_STATIC_SITE',
|
|
49
|
+
STATIC_SITE_DEPLOYMENT_FAILURE: 'STATIC_SITE_DEPLOYMENT_FAILURE',
|
|
50
|
+
DEPLOYING_SERVER_SIDE_SITE: 'DEPLOYING_SERVER_SIDE_SITE',
|
|
51
|
+
SERVER_SIDE_SITE_DEPLOYMENT_FAILURE: 'SERVER_SIDE_SITE_DEPLOYMENT_FAILURE',
|
|
52
|
+
CONFIGURING_CUSTOM_DOMAIN: 'CONFIGURING_CUSTOM_DOMAIN',
|
|
53
|
+
CUSTOM_DOMAIN_CONFIGURATION_FAILURE: 'CUSTOM_DOMAIN_CONFIGURATION_FAILURE',
|
|
54
|
+
CANCELLED: 'CANCELLED',
|
|
55
|
+
FAILED: 'FAILED',
|
|
56
|
+
SUCCEEDED: 'SUCCEEDED'
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
exports.WebAppBuildRequestObjectOriginType = {
|
|
62
|
+
INITIAL_BUILD: 'INITIAL_BUILD',
|
|
63
|
+
TRIGGERED_BY_PUSH: 'TRIGGERED_BY_PUSH',
|
|
64
|
+
TRIGGERED_BY_RELEASE: 'TRIGGERED_BY_RELEASE',
|
|
65
|
+
MANUAL_TRIGGER_FROM_DASHBOARD: 'MANUAL_TRIGGER_FROM_DASHBOARD',
|
|
66
|
+
CONFIG_CHANGE: 'CONFIG_CHANGE',
|
|
67
|
+
SHADOW_VALIDATION_BUILD: 'SHADOW_VALIDATION_BUILD'
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the WebAppBuildRequestObject interface.
|
|
71
|
+
*/
|
|
72
|
+
function instanceOfWebAppBuildRequestObject(value) {
|
|
73
|
+
if (!('startTime' in value) || value['startTime'] === undefined)
|
|
74
|
+
return false;
|
|
75
|
+
if (!('serviceId' in value) || value['serviceId'] === undefined)
|
|
76
|
+
return false;
|
|
77
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
78
|
+
return false;
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
function WebAppBuildRequestObjectFromJSON(json) {
|
|
82
|
+
return WebAppBuildRequestObjectFromJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
function WebAppBuildRequestObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
'buildId': json['buildId'] == null ? undefined : json['buildId'],
|
|
90
|
+
'detectionError': json['detectionError'] == null ? undefined : (0, WebAppDetectionError_1.WebAppDetectionErrorFromJSON)(json['detectionError']),
|
|
91
|
+
'packageManager': json['packageManager'] == null ? undefined : json['packageManager'],
|
|
92
|
+
'nodeVersion': json['nodeVersion'] == null ? undefined : json['nodeVersion'],
|
|
93
|
+
'buildCommand': json['buildCommand'] == null ? undefined : json['buildCommand'],
|
|
94
|
+
'buildPath': json['buildPath'] == null ? undefined : json['buildPath'],
|
|
95
|
+
'detectedFramework': json['detectedFramework'] == null ? undefined : json['detectedFramework'],
|
|
96
|
+
'outputZipS3Key': json['outputZipS3Key'] == null ? undefined : json['outputZipS3Key'],
|
|
97
|
+
'hostingDeploymentId': json['hostingDeploymentId'] == null ? undefined : json['hostingDeploymentId'],
|
|
98
|
+
'hostingDeploymentStatus': json['hostingDeploymentStatus'] == null ? undefined : json['hostingDeploymentStatus'],
|
|
99
|
+
'allBuildLogsReceived': json['allBuildLogsReceived'] == null ? undefined : json['allBuildLogsReceived'],
|
|
100
|
+
'startTime': (new Date(json['startTime'])),
|
|
101
|
+
'lastUpdatedTime': json['lastUpdatedTime'] == null ? undefined : (new Date(json['lastUpdatedTime'])),
|
|
102
|
+
'serviceId': json['serviceId'],
|
|
103
|
+
'commitHash': json['commitHash'] == null ? undefined : json['commitHash'],
|
|
104
|
+
'commitMessage': json['commitMessage'] == null ? undefined : json['commitMessage'],
|
|
105
|
+
'commitAuthorName': json['commitAuthorName'] == null ? undefined : json['commitAuthorName'],
|
|
106
|
+
'gitRef': json['gitRef'] == null ? undefined : json['gitRef'],
|
|
107
|
+
'releaseTagName': json['releaseTagName'] == null ? undefined : json['releaseTagName'],
|
|
108
|
+
'buildStepLogs': json['buildStepLogs'] == null ? undefined : (json['buildStepLogs'].map(BuildStepLog_1.BuildStepLogFromJSON)),
|
|
109
|
+
'status': json['status'],
|
|
110
|
+
'origin': json['origin'] == null ? undefined : json['origin'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
function WebAppBuildRequestObjectToJSON(json) {
|
|
114
|
+
return WebAppBuildRequestObjectToJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
function WebAppBuildRequestObjectToJSONTyped(value, ignoreDiscriminator) {
|
|
117
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
118
|
+
if (value == null) {
|
|
119
|
+
return value;
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
'buildId': value['buildId'],
|
|
123
|
+
'detectionError': (0, WebAppDetectionError_1.WebAppDetectionErrorToJSON)(value['detectionError']),
|
|
124
|
+
'packageManager': value['packageManager'],
|
|
125
|
+
'nodeVersion': value['nodeVersion'],
|
|
126
|
+
'buildCommand': value['buildCommand'],
|
|
127
|
+
'buildPath': value['buildPath'],
|
|
128
|
+
'detectedFramework': value['detectedFramework'],
|
|
129
|
+
'outputZipS3Key': value['outputZipS3Key'],
|
|
130
|
+
'hostingDeploymentId': value['hostingDeploymentId'],
|
|
131
|
+
'hostingDeploymentStatus': value['hostingDeploymentStatus'],
|
|
132
|
+
'allBuildLogsReceived': value['allBuildLogsReceived'],
|
|
133
|
+
'startTime': value['startTime'].toISOString(),
|
|
134
|
+
'lastUpdatedTime': value['lastUpdatedTime'] == null ? value['lastUpdatedTime'] : value['lastUpdatedTime'].toISOString(),
|
|
135
|
+
'serviceId': value['serviceId'],
|
|
136
|
+
'commitHash': value['commitHash'],
|
|
137
|
+
'commitMessage': value['commitMessage'],
|
|
138
|
+
'commitAuthorName': value['commitAuthorName'],
|
|
139
|
+
'gitRef': value['gitRef'],
|
|
140
|
+
'releaseTagName': value['releaseTagName'],
|
|
141
|
+
'buildStepLogs': value['buildStepLogs'] == null ? undefined : (value['buildStepLogs'].map(BuildStepLog_1.BuildStepLogToJSON)),
|
|
142
|
+
'status': value['status'],
|
|
143
|
+
'origin': value['origin'],
|
|
144
|
+
};
|
|
145
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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
|
+
* Detailed error information from web app config detection failure
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WebAppDetectionError
|
|
16
|
+
*/
|
|
17
|
+
export interface WebAppDetectionError {
|
|
18
|
+
/**
|
|
19
|
+
* Type of error that occurred
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WebAppDetectionError
|
|
22
|
+
*/
|
|
23
|
+
errorType?: WebAppDetectionErrorErrorTypeType;
|
|
24
|
+
/**
|
|
25
|
+
* Detailed error message explaining what went wrong
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WebAppDetectionError
|
|
28
|
+
*/
|
|
29
|
+
message?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const WebAppDetectionErrorErrorTypeType: {
|
|
35
|
+
readonly REPOSITORY_ANALYSIS_FAILED: "REPOSITORY_ANALYSIS_FAILED";
|
|
36
|
+
readonly MISSING_PACKAGE_JSON: "MISSING_PACKAGE_JSON";
|
|
37
|
+
readonly UNSUPPORTED_FRAMEWORK: "UNSUPPORTED_FRAMEWORK";
|
|
38
|
+
readonly AMBIGUOUS_PROJECT_STRUCTURE: "AMBIGUOUS_PROJECT_STRUCTURE";
|
|
39
|
+
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
40
|
+
readonly TIMEOUT: "TIMEOUT";
|
|
41
|
+
};
|
|
42
|
+
export type WebAppDetectionErrorErrorTypeType = typeof WebAppDetectionErrorErrorTypeType[keyof typeof WebAppDetectionErrorErrorTypeType];
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the WebAppDetectionError interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfWebAppDetectionError(value: object): value is WebAppDetectionError;
|
|
47
|
+
export declare function WebAppDetectionErrorFromJSON(json: any): WebAppDetectionError;
|
|
48
|
+
export declare function WebAppDetectionErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebAppDetectionError;
|
|
49
|
+
export declare function WebAppDetectionErrorToJSON(json: any): WebAppDetectionError;
|
|
50
|
+
export declare function WebAppDetectionErrorToJSONTyped(value?: WebAppDetectionError | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
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.WebAppDetectionErrorErrorTypeType = void 0;
|
|
17
|
+
exports.instanceOfWebAppDetectionError = instanceOfWebAppDetectionError;
|
|
18
|
+
exports.WebAppDetectionErrorFromJSON = WebAppDetectionErrorFromJSON;
|
|
19
|
+
exports.WebAppDetectionErrorFromJSONTyped = WebAppDetectionErrorFromJSONTyped;
|
|
20
|
+
exports.WebAppDetectionErrorToJSON = WebAppDetectionErrorToJSON;
|
|
21
|
+
exports.WebAppDetectionErrorToJSONTyped = WebAppDetectionErrorToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.WebAppDetectionErrorErrorTypeType = {
|
|
26
|
+
REPOSITORY_ANALYSIS_FAILED: 'REPOSITORY_ANALYSIS_FAILED',
|
|
27
|
+
MISSING_PACKAGE_JSON: 'MISSING_PACKAGE_JSON',
|
|
28
|
+
UNSUPPORTED_FRAMEWORK: 'UNSUPPORTED_FRAMEWORK',
|
|
29
|
+
AMBIGUOUS_PROJECT_STRUCTURE: 'AMBIGUOUS_PROJECT_STRUCTURE',
|
|
30
|
+
INTERNAL_ERROR: 'INTERNAL_ERROR',
|
|
31
|
+
TIMEOUT: 'TIMEOUT'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the WebAppDetectionError interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfWebAppDetectionError(value) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function WebAppDetectionErrorFromJSON(json) {
|
|
40
|
+
return WebAppDetectionErrorFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function WebAppDetectionErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'errorType': json['errorType'] == null ? undefined : json['errorType'],
|
|
48
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function WebAppDetectionErrorToJSON(json) {
|
|
52
|
+
return WebAppDetectionErrorToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function WebAppDetectionErrorToJSONTyped(value, ignoreDiscriminator) {
|
|
55
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'errorType': value['errorType'],
|
|
61
|
+
'message': value['message'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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 { RepositoryAnalysis } from './RepositoryAnalysis';
|
|
13
|
+
/**
|
|
14
|
+
* Response from web app configuration detection (either success with config or error)
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WebAppDetectionResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface WebAppDetectionResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Whether the web app serves only static assets (STATIC) or includes server-side rendering (SERVER_SIDE)
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof WebAppDetectionResponse
|
|
23
|
+
*/
|
|
24
|
+
webAppType?: WebAppDetectionResponseWebAppTypeType;
|
|
25
|
+
/**
|
|
26
|
+
* Detected package manager (npm, yarn, pnpm, or bun)
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof WebAppDetectionResponse
|
|
29
|
+
*/
|
|
30
|
+
packageManager?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Detected Node.js version (e.g. "20")
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof WebAppDetectionResponse
|
|
35
|
+
*/
|
|
36
|
+
nodeVersion?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Build command to produce the output directory
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof WebAppDetectionResponse
|
|
41
|
+
*/
|
|
42
|
+
buildCommand?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Path to the build output directory
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof WebAppDetectionResponse
|
|
47
|
+
*/
|
|
48
|
+
buildPath?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Install command override, useful for monorepos
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof WebAppDetectionResponse
|
|
53
|
+
*/
|
|
54
|
+
installCommand?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Detected frontend framework (e.g. "Vite", "Next.js", "Astro")
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof WebAppDetectionResponse
|
|
59
|
+
*/
|
|
60
|
+
detectedFramework?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Monorepo subdirectory containing the web app
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof WebAppDetectionResponse
|
|
65
|
+
*/
|
|
66
|
+
subdirectory?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Analysis results from scanning the repository structure
|
|
69
|
+
* @type {RepositoryAnalysis}
|
|
70
|
+
* @memberof WebAppDetectionResponse
|
|
71
|
+
*/
|
|
72
|
+
repositoryAnalysis?: RepositoryAnalysis;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export declare const WebAppDetectionResponseWebAppTypeType: {
|
|
78
|
+
readonly STATIC: "STATIC";
|
|
79
|
+
readonly SERVER_SIDE: "SERVER_SIDE";
|
|
80
|
+
};
|
|
81
|
+
export type WebAppDetectionResponseWebAppTypeType = typeof WebAppDetectionResponseWebAppTypeType[keyof typeof WebAppDetectionResponseWebAppTypeType];
|
|
82
|
+
/**
|
|
83
|
+
* Check if a given object implements the WebAppDetectionResponse interface.
|
|
84
|
+
*/
|
|
85
|
+
export declare function instanceOfWebAppDetectionResponse(value: object): value is WebAppDetectionResponse;
|
|
86
|
+
export declare function WebAppDetectionResponseFromJSON(json: any): WebAppDetectionResponse;
|
|
87
|
+
export declare function WebAppDetectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebAppDetectionResponse;
|
|
88
|
+
export declare function WebAppDetectionResponseToJSON(json: any): WebAppDetectionResponse;
|
|
89
|
+
export declare function WebAppDetectionResponseToJSONTyped(value?: WebAppDetectionResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
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.WebAppDetectionResponseWebAppTypeType = void 0;
|
|
17
|
+
exports.instanceOfWebAppDetectionResponse = instanceOfWebAppDetectionResponse;
|
|
18
|
+
exports.WebAppDetectionResponseFromJSON = WebAppDetectionResponseFromJSON;
|
|
19
|
+
exports.WebAppDetectionResponseFromJSONTyped = WebAppDetectionResponseFromJSONTyped;
|
|
20
|
+
exports.WebAppDetectionResponseToJSON = WebAppDetectionResponseToJSON;
|
|
21
|
+
exports.WebAppDetectionResponseToJSONTyped = WebAppDetectionResponseToJSONTyped;
|
|
22
|
+
var RepositoryAnalysis_1 = require("./RepositoryAnalysis");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.WebAppDetectionResponseWebAppTypeType = {
|
|
27
|
+
STATIC: 'STATIC',
|
|
28
|
+
SERVER_SIDE: 'SERVER_SIDE'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the WebAppDetectionResponse interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfWebAppDetectionResponse(value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function WebAppDetectionResponseFromJSON(json) {
|
|
37
|
+
return WebAppDetectionResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function WebAppDetectionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'webAppType': json['webAppType'] == null ? undefined : json['webAppType'],
|
|
45
|
+
'packageManager': json['packageManager'] == null ? undefined : json['packageManager'],
|
|
46
|
+
'nodeVersion': json['nodeVersion'] == null ? undefined : json['nodeVersion'],
|
|
47
|
+
'buildCommand': json['buildCommand'] == null ? undefined : json['buildCommand'],
|
|
48
|
+
'buildPath': json['buildPath'] == null ? undefined : json['buildPath'],
|
|
49
|
+
'installCommand': json['installCommand'] == null ? undefined : json['installCommand'],
|
|
50
|
+
'detectedFramework': json['detectedFramework'] == null ? undefined : json['detectedFramework'],
|
|
51
|
+
'subdirectory': json['subdirectory'] == null ? undefined : json['subdirectory'],
|
|
52
|
+
'repositoryAnalysis': json['repositoryAnalysis'] == null ? undefined : (0, RepositoryAnalysis_1.RepositoryAnalysisFromJSON)(json['repositoryAnalysis']),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function WebAppDetectionResponseToJSON(json) {
|
|
56
|
+
return WebAppDetectionResponseToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function WebAppDetectionResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'webAppType': value['webAppType'],
|
|
65
|
+
'packageManager': value['packageManager'],
|
|
66
|
+
'nodeVersion': value['nodeVersion'],
|
|
67
|
+
'buildCommand': value['buildCommand'],
|
|
68
|
+
'buildPath': value['buildPath'],
|
|
69
|
+
'installCommand': value['installCommand'],
|
|
70
|
+
'detectedFramework': value['detectedFramework'],
|
|
71
|
+
'subdirectory': value['subdirectory'],
|
|
72
|
+
'repositoryAnalysis': (0, RepositoryAnalysis_1.RepositoryAnalysisToJSON)(value['repositoryAnalysis']),
|
|
73
|
+
};
|
|
74
|
+
}
|