@devtron-labs/devtron-fe-common-lib 0.5.0 → 0.5.1-beta-2

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.
Files changed (61) hide show
  1. package/dist/Common/Constants.d.ts +3 -0
  2. package/dist/Common/Types.d.ts +2 -6
  3. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/DTApplicationMetricsFormField.d.ts +3 -0
  4. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/constants.d.ts +2 -0
  5. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/index.d.ts +4 -0
  6. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/service.d.ts +4 -0
  7. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +171 -0
  8. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +2 -0
  9. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/constants.d.ts +5 -0
  10. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/index.d.ts +5 -0
  11. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +27 -0
  12. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +2 -0
  13. package/dist/Pages/{CDPipeline → Applications/DevtronApps/Details/CDPipeline}/types.d.ts +4 -4
  14. package/dist/Pages/{App → Applications/DevtronApps/Details}/index.d.ts +1 -0
  15. package/dist/Pages/Applications/DevtronApps/index.d.ts +1 -0
  16. package/dist/Pages/Applications/index.d.ts +1 -0
  17. package/dist/Pages/index.d.ts +1 -2
  18. package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
  19. package/dist/Shared/Components/Button/types.d.ts +6 -0
  20. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +1 -1
  21. package/dist/Shared/Components/CICDHistory/types.d.ts +4 -1
  22. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +1 -1
  23. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +4 -2
  24. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +1 -1
  25. package/dist/Shared/Components/InvalidYAMLTippy/InvalidYAMLTippyWrapper.d.ts +3 -0
  26. package/dist/Shared/Components/InvalidYAMLTippy/constants.d.ts +1 -0
  27. package/dist/Shared/Components/InvalidYAMLTippy/index.d.ts +2 -0
  28. package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +6 -0
  29. package/dist/Shared/Components/InvalidYAMLTippy/utils.d.ts +2 -0
  30. package/dist/Shared/Components/SelectPicker/constants.d.ts +5 -0
  31. package/dist/Shared/Components/SelectPicker/type.d.ts +2 -2
  32. package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +9 -1
  33. package/dist/Shared/Components/index.d.ts +1 -0
  34. package/dist/Shared/Hooks/useForm/useForm.d.ts +29 -26
  35. package/dist/Shared/Hooks/useForm/useForm.types.d.ts +15 -8
  36. package/dist/Shared/Hooks/useForm/useForm.utils.d.ts +1 -1
  37. package/dist/Shared/Services/app.types.d.ts +35 -22
  38. package/dist/Shared/constants.d.ts +3 -1
  39. package/dist/Shared/types.d.ts +45 -0
  40. package/dist/assets/index.css +1 -1
  41. package/dist/{cssMode-C10rk8Cn.js → cssMode-BqR6v0o8.js} +1 -1
  42. package/dist/{freemarker2-D67_7glc.js → freemarker2-DYWfv8gN.js} +1 -1
  43. package/dist/{handlebars-BjuzR1TI.js → handlebars-6KNd_Je9.js} +1 -1
  44. package/dist/{html-CD4rBQ1p.js → html-CqjYZdxh.js} +1 -1
  45. package/dist/{htmlMode-ChcH2Ueg.js → htmlMode-DRyo9_8x.js} +1 -1
  46. package/dist/{index-Czrg-A8a.js → index-8Yo61zsh.js} +23532 -23356
  47. package/dist/index.js +575 -553
  48. package/dist/{javascript-B-PbsBVX.js → javascript-CtcTdTtt.js} +1 -1
  49. package/dist/{jsonMode-Bif4lid2.js → jsonMode-Cdfccbgv.js} +1 -1
  50. package/dist/{liquid-ByZWrLBg.js → liquid-DN3O5mMC.js} +1 -1
  51. package/dist/{mdx-BW4oCjP0.js → mdx-DBs7Pljs.js} +1 -1
  52. package/dist/{python-BeFHqQHi.js → python-BzN8Ala5.js} +1 -1
  53. package/dist/{razor-BHD5-V8u.js → razor-C7L_MpUQ.js} +1 -1
  54. package/dist/{tsMode-NN8FSA45.js → tsMode-CMVpC480.js} +1 -1
  55. package/dist/{typescript-C0Qqxjrj.js → typescript-DLQwIb2p.js} +1 -1
  56. package/dist/{xml-B2M3oT9b.js → xml-XzjtqiNv.js} +1 -1
  57. package/dist/{yaml-azYGD9Hn.js → yaml-Cn5iucCx.js} +1 -1
  58. package/package.json +1 -1
  59. package/dist/Pages/App/AppConfigurations/index.d.ts +0 -1
  60. package/dist/Pages/App/AppConfigurations/utils.d.ts +0 -2
  61. /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: number;
118
+ action: DraftAction;
108
119
  data: string;
109
120
  userComment: string;
110
121
  changeProposed: boolean;
@@ -113,31 +124,44 @@ export interface DraftMetadataDTO {
113
124
  };
114
125
  draftId: number;
115
126
  draftVersionId: number;
116
- draftState: number;
127
+ draftState: DraftState;
117
128
  approvers: string[];
118
129
  canApprove: boolean;
119
130
  commentsCount: number;
120
131
  dataEncrypted: boolean;
121
132
  isAppAdmin: boolean;
122
133
  }
134
+ export declare enum CMSecretExternalType {
135
+ Internal = "",
136
+ KubernetesConfigMap = "KubernetesConfigMap",
137
+ KubernetesSecret = "KubernetesSecret",
138
+ AWSSecretsManager = "AWSSecretsManager",
139
+ AWSSystemManager = "AWSSystemManager",
140
+ HashiCorpVault = "HashiCorpVault",
141
+ ESO_GoogleSecretsManager = "ESO_GoogleSecretsManager",
142
+ ESO_AWSSecretsManager = "ESO_AWSSecretsManager",
143
+ ESO_AzureSecretsManager = "ESO_AzureSecretsManager",
144
+ ESO_HashiCorpVault = "ESO_HashiCorpVault"
145
+ }
123
146
  export interface ConfigDatum {
124
147
  name: string;
125
148
  type: string;
126
149
  external: boolean;
127
- data: Record<string, string>;
128
- defaultData: Record<string, string>;
150
+ data: Record<string, any>;
151
+ defaultData: Record<string, any>;
129
152
  global: boolean;
130
- externalType: string;
131
- esoSecretData: {};
132
- defaultESOSecretData: {};
133
- secretData: Record<string, string>;
134
- defaultSecretData: Record<string, string>;
153
+ externalType: CMSecretExternalType;
154
+ esoSecretData: Record<string, any>;
155
+ defaultESOSecretData: Record<string, any>;
156
+ secretData: Record<string, any>[];
157
+ defaultSecretData: Record<string, any>[];
135
158
  roleARN: string;
136
159
  subPath: boolean;
137
160
  filePermission: string;
138
161
  overridden: boolean;
139
- mountPath?: string;
140
- defaultMountPath?: string;
162
+ mountPath: string;
163
+ defaultMountPath: string;
164
+ esoSubPath: string[];
141
165
  }
142
166
  export interface ConfigMapSecretDataConfigDatumDTO extends ConfigDatum {
143
167
  draftMetadata: DraftMetadataDTO;
@@ -197,17 +221,6 @@ export interface TemplateListDTO {
197
221
  status?: string;
198
222
  pipelineId?: number;
199
223
  }
200
- export interface ManifestTemplateDTO {
201
- data: string;
202
- resolvedData: string;
203
- variableSnapshot: null;
204
- }
205
- export declare enum DraftState {
206
- Init = 1,
207
- Discarded = 2,
208
- Published = 3,
209
- AwaitApproval = 4
210
- }
211
224
  export declare enum EnvResourceType {
212
225
  ConfigMap = "configmap",
213
226
  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>;
@@ -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;
@@ -580,4 +592,37 @@ export declare enum RuntimeParamsHeadingType {
580
592
  KEY = "key",
581
593
  VALUE = "value"
582
594
  }
595
+ export declare enum ACCESS_TYPE_MAP {
596
+ DEVTRON_APPS = "devtron-app",// devtron app work flow
597
+ HELM_APPS = "helm-app",// helm app work flow
598
+ JOBS = ""
599
+ }
600
+ export declare enum EntityTypes {
601
+ CHART_GROUP = "chart-group",
602
+ DIRECT = "apps",
603
+ JOB = "jobs",
604
+ DOCKER = "docker",
605
+ GIT = "git",
606
+ CLUSTER = "cluster",
607
+ NOTIFICATION = "notification"
608
+ }
609
+ export interface CustomRoles {
610
+ id: number;
611
+ roleName: string;
612
+ roleDisplayName: string;
613
+ roleDescription: string;
614
+ entity: EntityTypes;
615
+ accessType: ACCESS_TYPE_MAP.DEVTRON_APPS | ACCESS_TYPE_MAP.HELM_APPS;
616
+ }
617
+ export type MetaPossibleRoles = Record<CustomRoles['roleName'], {
618
+ value: CustomRoles['roleDisplayName'];
619
+ description: CustomRoles['roleDescription'];
620
+ }>;
621
+ export interface CustomRoleAndMeta {
622
+ customRoles: CustomRoles[];
623
+ possibleRolesMeta: MetaPossibleRoles;
624
+ possibleRolesMetaForHelm: MetaPossibleRoles;
625
+ possibleRolesMetaForCluster: MetaPossibleRoles;
626
+ possibleRolesMetaForJob: MetaPossibleRoles;
627
+ }
583
628
  export {};