@devtron-labs/devtron-fe-common-lib 0.2.6 → 0.2.7
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/Common/CodeEditor/types.d.ts +2 -2
- package/dist/Common/Constants.d.ts +12 -2
- package/dist/Common/CustomTagSelector/TagDetails.d.ts +1 -1
- package/dist/Common/CustomTagSelector/TagLabelSelect.d.ts +1 -1
- package/dist/Common/CustomTagSelector/Types.d.ts +2 -0
- package/dist/Common/RJSF/constants.d.ts +0 -5
- package/dist/Common/RJSF/index.d.ts +0 -1
- package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +1 -1
- package/dist/Common/Security/types.d.ts +4 -0
- package/dist/Common/Types.d.ts +2 -2
- package/dist/Pages/GlobalConfigurations/index.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +3 -1
- package/dist/Shared/Components/Collapse/Collapse.d.ts +3 -0
- package/dist/Shared/Components/Collapse/index.d.ts +2 -0
- package/dist/Shared/Components/Collapse/types.d.ts +7 -0
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.component.d.ts +3 -0
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +96 -0
- package/dist/Shared/Components/CollapsibleList/index.d.ts +2 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +3 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +38 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +3 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +3 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +3 -0
- package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +3 -0
- package/dist/Shared/Components/DeploymentConfigDiff/types.d.ts +69 -0
- package/dist/Shared/Components/FilterButton/FilterButton.d.ts +5 -0
- package/dist/Shared/Components/FilterButton/index.d.ts +1 -0
- package/dist/Shared/Components/FilterButton/types.d.ts +12 -0
- package/dist/Shared/Components/FilterButton/utils.d.ts +15 -0
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +24 -1
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/index.d.ts +1 -0
- package/dist/Shared/Components/SelectPicker/type.d.ts +16 -0
- package/dist/Shared/Components/SelectPicker/utils.d.ts +11 -2
- package/dist/Shared/Components/Vulnerabilities/utils.d.ts +1 -0
- package/dist/Shared/Components/index.d.ts +4 -1
- package/dist/Shared/Helpers.d.ts +2 -1
- package/dist/Shared/Services/app.service.d.ts +3 -1
- package/dist/Shared/Services/app.types.d.ts +116 -0
- package/dist/Shared/types.d.ts +19 -7
- package/dist/Shared/validations.d.ts +3 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-3a640c3a.js → cssMode-48c0f680.js} +1 -1
- package/dist/{freemarker2-7fcef7e9.js → freemarker2-abeb240d.js} +1 -1
- package/dist/{handlebars-bb8d8c8f.js → handlebars-a1d03281.js} +1 -1
- package/dist/{html-d9d12fbc.js → html-b2ac7b3c.js} +1 -1
- package/dist/{htmlMode-6f5e366b.js → htmlMode-9921d4db.js} +1 -1
- package/dist/{index-50b1e60a.js → index-55f67c02.js} +30273 -29861
- package/dist/index.d.ts +2 -0
- package/dist/index.js +494 -480
- package/dist/{javascript-ee21afc6.js → javascript-459ec784.js} +1 -1
- package/dist/{jsonMode-f243ae3a.js → jsonMode-61b52ed6.js} +1 -1
- package/dist/{liquid-210197a2.js → liquid-9d8a221e.js} +1 -1
- package/dist/{mdx-47b9f654.js → mdx-dc4f9b48.js} +1 -1
- package/dist/{python-d072ae6f.js → python-6e74db51.js} +1 -1
- package/dist/{razor-bbc7aba8.js → razor-a92b516d.js} +1 -1
- package/dist/{tsMode-e3a0b064.js → tsMode-89890d25.js} +1 -1
- package/dist/{typescript-e0f3eca9.js → typescript-119d98cc.js} +1 -1
- package/dist/{xml-1408e523.js → xml-05861ac3.js} +1 -1
- package/dist/{yaml-81fab749.js → yaml-137573e5.js} +1 -1
- package/package.json +1 -1
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/basicViewSchema.json.d.ts +0 -273
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/fallbackJobsNCronJobGuiSchema.json.d.ts +0 -157
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/index.d.ts +0 -2
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/types.d.ts +0 -24
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/utils.d.ts +0 -4
- package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +0 -4
- package/dist/Shared/Components/ScannedObjectBar/index.d.ts +0 -1
- package/dist/Shared/Components/ScannedObjectBar/types.d.ts +0 -7
- package/dist/assets/editor.worker-60ba9509.js +0 -12
- package/dist/assets/yaml.worker-3bbe780a.js +0 -472
|
@@ -93,4 +93,120 @@ export interface GetCITriggerInfoParamsType {
|
|
|
93
93
|
envId: number | string;
|
|
94
94
|
ciArtifactId: number | string;
|
|
95
95
|
}
|
|
96
|
+
export declare enum AppEnvDeploymentConfigType {
|
|
97
|
+
PUBLISHED_ONLY = "PublishedOnly",
|
|
98
|
+
DRAFT_ONLY = "DraftOnly",
|
|
99
|
+
PUBLISHED_WITH_DRAFT = "PublishedWithDraft",
|
|
100
|
+
PREVIOUS_DEPLOYMENTS = "PreviousDeployments",
|
|
101
|
+
DEFAULT_VERSION = "DefaultVersion"
|
|
102
|
+
}
|
|
103
|
+
export interface DraftMetadataDTO {
|
|
104
|
+
appId: number;
|
|
105
|
+
envId: number;
|
|
106
|
+
resource: number;
|
|
107
|
+
resourceName: string;
|
|
108
|
+
action: number;
|
|
109
|
+
data: string;
|
|
110
|
+
userComment: string;
|
|
111
|
+
changeProposed: boolean;
|
|
112
|
+
protectNotificationConfig: {
|
|
113
|
+
[key: string]: null;
|
|
114
|
+
};
|
|
115
|
+
draftId: number;
|
|
116
|
+
draftVersionId: number;
|
|
117
|
+
draftState: number;
|
|
118
|
+
approvers: string[];
|
|
119
|
+
canApprove: boolean;
|
|
120
|
+
commentsCount: number;
|
|
121
|
+
dataEncrypted: boolean;
|
|
122
|
+
isAppAdmin: boolean;
|
|
123
|
+
}
|
|
124
|
+
export interface ConfigDatum {
|
|
125
|
+
name: string;
|
|
126
|
+
type: string;
|
|
127
|
+
external: boolean;
|
|
128
|
+
data: Record<string, string>;
|
|
129
|
+
defaultData: Record<string, string>;
|
|
130
|
+
global: boolean;
|
|
131
|
+
externalType: string;
|
|
132
|
+
esoSecretData: {};
|
|
133
|
+
defaultESOSecretData: {};
|
|
134
|
+
secretData: Record<string, string>;
|
|
135
|
+
defaultSecretData: Record<string, string>;
|
|
136
|
+
roleARN: string;
|
|
137
|
+
subPath: boolean;
|
|
138
|
+
filePermission: string;
|
|
139
|
+
overridden: boolean;
|
|
140
|
+
mountPath?: string;
|
|
141
|
+
defaultMountPath?: string;
|
|
142
|
+
}
|
|
143
|
+
export interface ConfigMapSecretDataConfigDatumDTO extends ConfigDatum {
|
|
144
|
+
draftMetadata: DraftMetadataDTO;
|
|
145
|
+
}
|
|
146
|
+
export interface ConfigMapSecretDataType {
|
|
147
|
+
id: number;
|
|
148
|
+
appId: number;
|
|
149
|
+
configData: ConfigMapSecretDataConfigDatumDTO[];
|
|
150
|
+
}
|
|
151
|
+
export declare enum ConfigResourceType {
|
|
152
|
+
ConfigMap = "ConfigMap",
|
|
153
|
+
Secret = "Secret",
|
|
154
|
+
DeploymentTemplate = "Deployment Template"
|
|
155
|
+
}
|
|
156
|
+
export interface DeploymentTemplateDTO {
|
|
157
|
+
resourceType: ConfigResourceType.DeploymentTemplate;
|
|
158
|
+
data: {
|
|
159
|
+
[key: string]: any;
|
|
160
|
+
};
|
|
161
|
+
deploymentDraftData: ConfigMapSecretDataType | null;
|
|
162
|
+
}
|
|
163
|
+
export interface ConfigMapSecretDataDTO {
|
|
164
|
+
resourceType: Extract<ConfigResourceType, ConfigResourceType.ConfigMap | ConfigResourceType.Secret>;
|
|
165
|
+
data: ConfigMapSecretDataType;
|
|
166
|
+
}
|
|
167
|
+
export interface AppEnvDeploymentConfigDTO {
|
|
168
|
+
deploymentTemplate: DeploymentTemplateDTO | null;
|
|
169
|
+
configMapData: ConfigMapSecretDataDTO | null;
|
|
170
|
+
secretsData: ConfigMapSecretDataDTO | null;
|
|
171
|
+
isAppAdmin: boolean;
|
|
172
|
+
}
|
|
173
|
+
export interface AppEnvDeploymentConfigPayloadType {
|
|
174
|
+
appName: string;
|
|
175
|
+
envName: string;
|
|
176
|
+
configType: AppEnvDeploymentConfigType;
|
|
177
|
+
identifierId?: number;
|
|
178
|
+
pipelineId?: number;
|
|
179
|
+
resourceType?: ConfigResourceType;
|
|
180
|
+
resourceId?: number;
|
|
181
|
+
resourceName?: string;
|
|
182
|
+
}
|
|
183
|
+
export declare enum TemplateListType {
|
|
184
|
+
DefaultVersions = 1,
|
|
185
|
+
PublishedOnEnvironments = 2,
|
|
186
|
+
DeployedOnSelfEnvironment = 3,
|
|
187
|
+
DeployedOnOtherEnvironment = 4
|
|
188
|
+
}
|
|
189
|
+
export interface TemplateListDTO {
|
|
190
|
+
chartRefId: number;
|
|
191
|
+
chartVersion?: string;
|
|
192
|
+
chartType?: string;
|
|
193
|
+
type: TemplateListType;
|
|
194
|
+
environmentId?: number;
|
|
195
|
+
environmentName?: string;
|
|
196
|
+
deploymentTemplateHistoryId?: number;
|
|
197
|
+
finishedOn?: string;
|
|
198
|
+
status?: string;
|
|
199
|
+
pipelineId?: number;
|
|
200
|
+
}
|
|
201
|
+
export declare enum DraftState {
|
|
202
|
+
Init = 1,
|
|
203
|
+
Discarded = 2,
|
|
204
|
+
Published = 3,
|
|
205
|
+
AwaitApproval = 4
|
|
206
|
+
}
|
|
207
|
+
export declare enum EnvResourceType {
|
|
208
|
+
ConfigMap = "configmap",
|
|
209
|
+
Secret = "secrets",
|
|
210
|
+
DeploymentTemplate = "deployment-template"
|
|
211
|
+
}
|
|
96
212
|
export {};
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -210,8 +210,10 @@ export declare enum DefaultUserKey {
|
|
|
210
210
|
}
|
|
211
211
|
export declare enum Severity {
|
|
212
212
|
CRITICAL = "critical",
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
HIGH = "high",
|
|
214
|
+
MEDIUM = "medium",
|
|
215
|
+
LOW = "low",
|
|
216
|
+
UNKNOWN = "unknown"
|
|
215
217
|
}
|
|
216
218
|
export declare enum ImagePromotionTabs {
|
|
217
219
|
REQUEST = "request",
|
|
@@ -380,16 +382,19 @@ export declare enum ResourceVersionType {
|
|
|
380
382
|
v1 = "v1",
|
|
381
383
|
alpha1 = "alpha1"
|
|
382
384
|
}
|
|
385
|
+
export interface SeverityCount {
|
|
386
|
+
critical: number;
|
|
387
|
+
high: number;
|
|
388
|
+
medium: number;
|
|
389
|
+
low: number;
|
|
390
|
+
unknown: number;
|
|
391
|
+
}
|
|
383
392
|
export declare enum PolicyKindType {
|
|
384
393
|
lockConfiguration = "lock-configuration"
|
|
385
394
|
}
|
|
386
395
|
export interface LastExecutionResultType {
|
|
387
396
|
lastExecution: string;
|
|
388
|
-
severityCount:
|
|
389
|
-
critical: number;
|
|
390
|
-
moderate: number;
|
|
391
|
-
low: number;
|
|
392
|
-
};
|
|
397
|
+
severityCount: SeverityCount;
|
|
393
398
|
vulnerabilities: VulnerabilityType[];
|
|
394
399
|
scanExecutionId?: number;
|
|
395
400
|
appId?: number;
|
|
@@ -536,6 +541,13 @@ export interface BatchConfigType {
|
|
|
536
541
|
export interface scrollableInterface {
|
|
537
542
|
autoBottomScroll: boolean;
|
|
538
543
|
}
|
|
544
|
+
export declare enum URLProtocolType {
|
|
545
|
+
HTTP = "http:",
|
|
546
|
+
HTTPS = "https:",
|
|
547
|
+
SSH = "ssh:",
|
|
548
|
+
SMTP = "smtp:",
|
|
549
|
+
S3 = "s3:"
|
|
550
|
+
}
|
|
539
551
|
export type BaseFilterQueryParams<T> = {
|
|
540
552
|
/**
|
|
541
553
|
* Offset for the list result
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { URLProtocolType } from './types';
|
|
2
|
+
|
|
1
3
|
export interface ValidationResponseType {
|
|
2
4
|
isValid: boolean;
|
|
3
5
|
message?: string;
|
|
@@ -20,6 +22,7 @@ export declare const validateStringLength: (value: string, maxLimit: number, min
|
|
|
20
22
|
export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
|
|
21
23
|
export declare const validateRequiredPositiveInteger: (value: string | number) => ValidationResponseType;
|
|
22
24
|
export declare const validateURL: (url: string, allowBase64Url?: boolean) => ValidationResponseType;
|
|
25
|
+
export declare const validateProtocols: (url: string, protocols: URLProtocolType[], isRequired?: boolean) => ValidationResponseType;
|
|
23
26
|
export declare const validateIfImageExist: (url: string) => Promise<ValidationResponseType>;
|
|
24
27
|
export declare const validateUniqueKeys: (keys: string[]) => {
|
|
25
28
|
isValid: boolean;
|
|
@@ -28,4 +31,3 @@ export declare const validateUniqueKeys: (keys: string[]) => {
|
|
|
28
31
|
isValid: boolean;
|
|
29
32
|
message: string;
|
|
30
33
|
};
|
|
31
|
-
export declare const validateJSON: (json: string) => ValidationResponseType;
|