@devtron-labs/devtron-fe-common-lib 0.2.2-beta-19 → 0.2.2-beta-20
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 +1 -0
- package/dist/Common/Constants.d.ts +2 -1
- package/dist/Common/RJSF/constants.d.ts +5 -0
- package/dist/Common/RJSF/index.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/basicViewSchema.json.d.ts +273 -0
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/fallbackJobsNCronJobGuiSchema.json.d.ts +157 -0
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/index.d.ts +2 -0
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/types.d.ts +22 -0
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/utils.d.ts +4 -0
- package/dist/Pages/GlobalConfigurations/index.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -3
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +1 -24
- 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 +0 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +0 -16
- package/dist/Shared/Components/SelectPicker/utils.d.ts +2 -11
- package/dist/Shared/Components/index.d.ts +0 -3
- package/dist/Shared/Helpers.d.ts +1 -2
- package/dist/Shared/Services/app.service.d.ts +1 -3
- package/dist/Shared/Services/app.types.d.ts +0 -116
- package/dist/assets/editor.worker-60ba9509.js +12 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/yaml.worker-3bbe780a.js +472 -0
- package/dist/{cssMode-6a8b9290.js → cssMode-d3d05d5b.js} +1 -1
- package/dist/{freemarker2-8e09728a.js → freemarker2-262c2aea.js} +1 -1
- package/dist/{handlebars-ef2bcd2b.js → handlebars-2b11eae6.js} +1 -1
- package/dist/{html-ac547ea8.js → html-2cf933a7.js} +1 -1
- package/dist/{htmlMode-c5c2449d.js → htmlMode-638172c8.js} +1 -1
- package/dist/{index-cf607945.js → index-e22e6c69.js} +27289 -27516
- package/dist/index.js +484 -495
- package/dist/{javascript-29e0db7f.js → javascript-cb9701ef.js} +1 -1
- package/dist/{jsonMode-e7628888.js → jsonMode-ecd62800.js} +1 -1
- package/dist/{liquid-1b0faea4.js → liquid-cd98de30.js} +1 -1
- package/dist/{mdx-98617059.js → mdx-ec7e940f.js} +1 -1
- package/dist/{python-9545a33d.js → python-6ff69425.js} +1 -1
- package/dist/{razor-1d8c016a.js → razor-b1bf32a0.js} +1 -1
- package/dist/{tsMode-d7ee203e.js → tsMode-18c2362b.js} +1 -1
- package/dist/{typescript-7771c39f.js → typescript-3d43f4d9.js} +1 -1
- package/dist/{xml-31f475ae.js → xml-d03a81f6.js} +1 -1
- package/dist/{yaml-f6000d2b.js → yaml-37bf8c0e.js} +1 -1
- package/package.json +1 -1
- package/dist/Shared/Components/Collapse/Collapse.d.ts +0 -3
- package/dist/Shared/Components/Collapse/index.d.ts +0 -2
- package/dist/Shared/Components/Collapse/types.d.ts +0 -7
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.component.d.ts +0 -3
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +0 -96
- package/dist/Shared/Components/CollapsibleList/index.d.ts +0 -2
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +0 -3
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +0 -38
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +0 -3
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +0 -3
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +0 -3
- package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +0 -3
- package/dist/Shared/Components/DeploymentConfigDiff/types.d.ts +0 -69
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { Pair } from 'yaml';
|
|
3
2
|
import { MaterialInfo, SortingOrder } from '../Common';
|
|
4
3
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
|
|
5
4
|
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
|
@@ -26,7 +25,6 @@ export declare const getGitCommitInfo: (materialInfo: MaterialInfo) => GitTrigge
|
|
|
26
25
|
export declare const stringComparatorBySortOrder: (a: string, b: string, sortOrder?: SortingOrder, isCaseSensitive?: boolean) => number;
|
|
27
26
|
export declare const numberComparatorBySortOrder: (a: number, b: number, sortOrder?: SortingOrder) => number;
|
|
28
27
|
export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
|
|
29
|
-
export declare const yamlComparatorBySortOrder: (a: Pair, b: Pair, sortOrder?: SortingOrder) => number;
|
|
30
28
|
export declare const useIntersection: (target: React.RefObject<Element> | Element | null, options?: IntersectionOptions, callback?: IntersectionChangeHandler) => boolean;
|
|
31
29
|
export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
32
30
|
export declare const handleDisableSubmitOnEnter: (event: React.KeyboardEvent<HTMLFormElement>) => void;
|
|
@@ -38,4 +36,5 @@ export declare const decode: (data: any, isEncoded?: boolean) => {};
|
|
|
38
36
|
export declare const isTimeStringAvailable: (time: string) => boolean;
|
|
39
37
|
export declare const getTimeDifference: (startTime: string, endTime: string) => string;
|
|
40
38
|
export declare const getFileNameFromHeaders: (headers: Headers) => string;
|
|
39
|
+
export declare function versionComparator(a: Record<string, any>, b: Record<string, any>, compareKey: string, orderBy: SortingOrder): any;
|
|
41
40
|
export {};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CIMaterialInfoType, GetCITriggerInfoParamsType, AppEnvDeploymentConfigDTO, AppEnvDeploymentConfigPayloadType } from './app.types';
|
|
1
|
+
import { CIMaterialInfoType, GetCITriggerInfoParamsType } from './app.types';
|
|
3
2
|
|
|
4
3
|
export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<CIMaterialInfoType>;
|
|
5
4
|
/**
|
|
6
5
|
* The only difference between this and getCITriggerInfo is it doesn't have env and trigger related meta info
|
|
7
6
|
*/
|
|
8
7
|
export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, 'ciArtifactId'>) => Promise<CIMaterialInfoType>;
|
|
9
|
-
export declare const getAppEnvDeploymentConfig: (params: AppEnvDeploymentConfigPayloadType, signal?: AbortSignal) => Promise<ResponseType<AppEnvDeploymentConfigDTO>>;
|
|
@@ -93,120 +93,4 @@ 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
|
-
}
|
|
212
96
|
export {};
|