@devtron-labs/devtron-fe-common-lib 0.5.3 → 0.5.4-beta-1
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/Constants.d.ts +3 -0
- package/dist/Common/Types.d.ts +2 -6
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/DTApplicationMetricsFormField.d.ts +3 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/constants.d.ts +2 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/index.d.ts +4 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/service.d.ts +4 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +171 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +2 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/constants.d.ts +5 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/index.d.ts +5 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +27 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +2 -0
- package/dist/Pages/{CDPipeline → Applications/DevtronApps/Details/CDPipeline}/types.d.ts +4 -4
- package/dist/Pages/{App → Applications/DevtronApps/Details}/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/index.d.ts +1 -0
- package/dist/Pages/Applications/index.d.ts +1 -0
- package/dist/Pages/index.d.ts +1 -2
- package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
- package/dist/Shared/Components/Button/types.d.ts +6 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +4 -2
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +1 -1
- package/dist/Shared/Components/InvalidYAMLTippy/InvalidYAMLTippyWrapper.d.ts +3 -0
- package/dist/Shared/Components/InvalidYAMLTippy/constants.d.ts +1 -0
- package/dist/Shared/Components/InvalidYAMLTippy/index.d.ts +2 -0
- package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +6 -0
- package/dist/Shared/Components/InvalidYAMLTippy/utils.d.ts +2 -0
- package/dist/Shared/Components/SelectPicker/constants.d.ts +5 -0
- package/dist/Shared/Components/SelectPicker/type.d.ts +2 -2
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +9 -1
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Hooks/useForm/useForm.d.ts +29 -26
- package/dist/Shared/Hooks/useForm/useForm.types.d.ts +15 -8
- package/dist/Shared/Hooks/useForm/useForm.utils.d.ts +1 -1
- package/dist/Shared/Services/app.types.d.ts +35 -22
- package/dist/Shared/constants.d.ts +3 -1
- package/dist/Shared/types.d.ts +12 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-9W1buTsV.js → cssMode-COfNaasW.js} +1 -1
- package/dist/{freemarker2-BWe5eRwB.js → freemarker2-D4JQzudf.js} +1 -1
- package/dist/{handlebars-CTfz5kSz.js → handlebars-DGji_OpS.js} +1 -1
- package/dist/{html-Dvb80ALs.js → html-adPIuadx.js} +1 -1
- package/dist/{htmlMode-CAsy-Umk.js → htmlMode-FhxZVJ1N.js} +1 -1
- package/dist/{index-Bb2FTEAc.js → index-C_1GsWlM.js} +23127 -22957
- package/dist/index.js +541 -521
- package/dist/{javascript-C4IBasJO.js → javascript-BNupu1_G.js} +1 -1
- package/dist/{jsonMode-CQ6vLXYS.js → jsonMode-BsIruUr1.js} +1 -1
- package/dist/{liquid-BMWGnzGZ.js → liquid-ljKMsaYG.js} +1 -1
- package/dist/{mdx-B84VbCvk.js → mdx-Bd5sySmF.js} +1 -1
- package/dist/{python-CkTKI3LV.js → python-DeguJ984.js} +1 -1
- package/dist/{razor-C1nzEZOE.js → razor-E5N2Ai3j.js} +1 -1
- package/dist/{tsMode-VncCnYcl.js → tsMode-C6PtS8O-.js} +1 -1
- package/dist/{typescript-DCrQdLtl.js → typescript-Deq8uEvD.js} +1 -1
- package/dist/{xml-C4BcGdfI.js → xml-BYmsqqWY.js} +1 -1
- package/dist/{yaml-BKASVM86.js → yaml-D7je9MqX.js} +1 -1
- package/package.json +3 -3
- package/dist/Pages/App/AppConfigurations/index.d.ts +0 -1
- package/dist/Pages/App/AppConfigurations/utils.d.ts +0 -2
- /package/dist/Pages/{CDPipeline → Applications/DevtronApps/Details/CDPipeline}/index.d.ts +0 -0
|
@@ -99,12 +99,23 @@ export declare enum AppEnvDeploymentConfigType {
|
|
|
99
99
|
PREVIOUS_DEPLOYMENTS = "PreviousDeployments",
|
|
100
100
|
DEFAULT_VERSION = "DefaultVersion"
|
|
101
101
|
}
|
|
102
|
+
export declare enum DraftState {
|
|
103
|
+
Init = 1,
|
|
104
|
+
Discarded = 2,
|
|
105
|
+
Published = 3,
|
|
106
|
+
AwaitApproval = 4
|
|
107
|
+
}
|
|
108
|
+
export declare enum DraftAction {
|
|
109
|
+
Add = 1,
|
|
110
|
+
Update = 2,
|
|
111
|
+
Delete = 3
|
|
112
|
+
}
|
|
102
113
|
export interface DraftMetadataDTO {
|
|
103
114
|
appId: number;
|
|
104
115
|
envId: number;
|
|
105
116
|
resource: number;
|
|
106
117
|
resourceName: string;
|
|
107
|
-
action:
|
|
118
|
+
action: DraftAction;
|
|
108
119
|
data: string;
|
|
109
120
|
userComment: string;
|
|
110
121
|
changeProposed: boolean;
|
|
@@ -113,7 +124,7 @@ export interface DraftMetadataDTO {
|
|
|
113
124
|
};
|
|
114
125
|
draftId: number;
|
|
115
126
|
draftVersionId: number;
|
|
116
|
-
draftState:
|
|
127
|
+
draftState: DraftState;
|
|
117
128
|
draftResolvedValue: string;
|
|
118
129
|
approvers: string[];
|
|
119
130
|
canApprove: boolean;
|
|
@@ -121,24 +132,37 @@ export interface DraftMetadataDTO {
|
|
|
121
132
|
dataEncrypted: boolean;
|
|
122
133
|
isAppAdmin: boolean;
|
|
123
134
|
}
|
|
135
|
+
export declare enum CMSecretExternalType {
|
|
136
|
+
Internal = "",
|
|
137
|
+
KubernetesConfigMap = "KubernetesConfigMap",
|
|
138
|
+
KubernetesSecret = "KubernetesSecret",
|
|
139
|
+
AWSSecretsManager = "AWSSecretsManager",
|
|
140
|
+
AWSSystemManager = "AWSSystemManager",
|
|
141
|
+
HashiCorpVault = "HashiCorpVault",
|
|
142
|
+
ESO_GoogleSecretsManager = "ESO_GoogleSecretsManager",
|
|
143
|
+
ESO_AWSSecretsManager = "ESO_AWSSecretsManager",
|
|
144
|
+
ESO_AzureSecretsManager = "ESO_AzureSecretsManager",
|
|
145
|
+
ESO_HashiCorpVault = "ESO_HashiCorpVault"
|
|
146
|
+
}
|
|
124
147
|
export interface ConfigDatum {
|
|
125
148
|
name: string;
|
|
126
149
|
type: string;
|
|
127
150
|
external: boolean;
|
|
128
|
-
data: Record<string,
|
|
129
|
-
defaultData: Record<string,
|
|
151
|
+
data: Record<string, any>;
|
|
152
|
+
defaultData: Record<string, any>;
|
|
130
153
|
global: boolean;
|
|
131
|
-
externalType:
|
|
132
|
-
esoSecretData:
|
|
133
|
-
defaultESOSecretData:
|
|
134
|
-
secretData: Record<string,
|
|
135
|
-
defaultSecretData: Record<string,
|
|
154
|
+
externalType: CMSecretExternalType;
|
|
155
|
+
esoSecretData: Record<string, any>;
|
|
156
|
+
defaultESOSecretData: Record<string, any>;
|
|
157
|
+
secretData: Record<string, any>[];
|
|
158
|
+
defaultSecretData: Record<string, any>[];
|
|
136
159
|
roleARN: string;
|
|
137
160
|
subPath: boolean;
|
|
138
161
|
filePermission: string;
|
|
139
162
|
overridden: boolean;
|
|
140
|
-
mountPath
|
|
141
|
-
defaultMountPath
|
|
163
|
+
mountPath: string;
|
|
164
|
+
defaultMountPath: string;
|
|
165
|
+
esoSubPath: string[];
|
|
142
166
|
}
|
|
143
167
|
export interface ConfigMapSecretDataConfigDatumDTO extends ConfigDatum {
|
|
144
168
|
draftMetadata: DraftMetadataDTO;
|
|
@@ -220,17 +244,6 @@ export interface TemplateListDTO {
|
|
|
220
244
|
pipelineId?: number;
|
|
221
245
|
wfrId?: number;
|
|
222
246
|
}
|
|
223
|
-
export interface ManifestTemplateDTO {
|
|
224
|
-
data: string;
|
|
225
|
-
resolvedData: string;
|
|
226
|
-
variableSnapshot: null;
|
|
227
|
-
}
|
|
228
|
-
export declare enum DraftState {
|
|
229
|
-
Init = 1,
|
|
230
|
-
Discarded = 2,
|
|
231
|
-
Published = 3,
|
|
232
|
-
AwaitApproval = 4
|
|
233
|
-
}
|
|
234
247
|
export declare enum EnvResourceType {
|
|
235
248
|
ConfigMap = "configmap",
|
|
236
249
|
Secret = "secrets",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OptionType } from '../Common/Types';
|
|
2
|
-
import { CDMaterialSidebarType } from './types';
|
|
2
|
+
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType } from './types';
|
|
3
3
|
export declare const ARTIFACT_STATUS: {
|
|
4
4
|
PROGRESSING: string;
|
|
5
5
|
DEGRADED: string;
|
|
@@ -411,3 +411,5 @@ export declare enum SelectAllGroupedResourceIdentifiers {
|
|
|
411
411
|
}
|
|
412
412
|
export declare const CD_MATERIAL_SIDEBAR_TABS: OptionType<CDMaterialSidebarType, CDMaterialSidebarType>[];
|
|
413
413
|
export declare const TRIGGER_STATUS_PROGRESSING: string[];
|
|
414
|
+
export declare const CONFIGURATION_TYPE_VALUES: ConfigurationType[];
|
|
415
|
+
export declare const DEFAULT_LOCKED_KEYS_CONFIG: Readonly<ConfigKeysWithLockType>;
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -572,6 +572,18 @@ export type BaseFilterQueryParams<T> = {
|
|
|
572
572
|
*/
|
|
573
573
|
showAll?: boolean;
|
|
574
574
|
} & SortingParams<T>;
|
|
575
|
+
export declare enum ConfigurationType {
|
|
576
|
+
GUI = "GUI",
|
|
577
|
+
YAML = "YAML"
|
|
578
|
+
}
|
|
579
|
+
export interface BaseURLParams {
|
|
580
|
+
appId: string;
|
|
581
|
+
envId: string;
|
|
582
|
+
}
|
|
583
|
+
export interface ConfigKeysWithLockType {
|
|
584
|
+
config: string[];
|
|
585
|
+
allowed: boolean;
|
|
586
|
+
}
|
|
575
587
|
export type DataAttributes = Record<`data-${string}`, unknown>;
|
|
576
588
|
export interface RuntimeParamsListItemType extends KeyValueListType {
|
|
577
589
|
id: number;
|