@devtron-labs/devtron-fe-common-lib 0.0.71-beta-3 → 0.0.71
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 +0 -52
- package/dist/Common/Helper.d.ts +2 -3
- package/dist/Common/Types.d.ts +1 -17
- package/dist/index.js +4740 -4781
- package/package.json +2 -2
|
@@ -95,58 +95,6 @@ export declare enum SortingOrder {
|
|
|
95
95
|
* Base page size for pagination
|
|
96
96
|
*/
|
|
97
97
|
export declare const DEFAULT_BASE_PAGE_SIZE = 20;
|
|
98
|
-
/**
|
|
99
|
-
* Deployment Window
|
|
100
|
-
*/
|
|
101
|
-
export declare enum MODAL_TYPE {
|
|
102
|
-
HIBERNATE = "HIBERNATE",
|
|
103
|
-
UNHIBERNATE = "UNHIBERNATE",
|
|
104
|
-
RESTORE = "RESTORE",
|
|
105
|
-
DEPLOY = "DEPLOY",
|
|
106
|
-
RESOURCE = "RESOURCE",
|
|
107
|
-
RESTART = "RESTART",
|
|
108
|
-
PIPELINE = "PIPELINE",
|
|
109
|
-
OVERVIEW = "OVERVIEW",
|
|
110
|
-
APP_DETAILS_STATUS = "APP_DETAILS_STATUS"
|
|
111
|
-
}
|
|
112
|
-
export declare enum ACTION_STATE {
|
|
113
|
-
ALLOWED = "ALLOWED",
|
|
114
|
-
PARTIAL = "PARTIAL",
|
|
115
|
-
BLOCKED = "BLOCKED"
|
|
116
|
-
}
|
|
117
|
-
export declare enum DEPLOYMENT_WINDOW_TYPE {
|
|
118
|
-
MAINTENANCE = "MAINTENANCE",
|
|
119
|
-
BLACKOUT = "BLACKOUT"
|
|
120
|
-
}
|
|
121
|
-
export declare const arrowUnicode = "\u279D";
|
|
122
|
-
export declare enum WEEK_DAYS_ENUM {
|
|
123
|
-
SUNDAY = "SUNDAY",
|
|
124
|
-
MONDAY = "MONDAY",
|
|
125
|
-
TUESDAY = "TUESDAY",
|
|
126
|
-
WEDNESDAY = "WEDNESDAY",
|
|
127
|
-
THURSDAY = "THURSDAY",
|
|
128
|
-
FRIDAY = "FRIDAY",
|
|
129
|
-
SATURDAY = "SATURDAY"
|
|
130
|
-
}
|
|
131
|
-
export declare enum FREQUENCY_ENUM {
|
|
132
|
-
FIXED = "FIXED",
|
|
133
|
-
DAILY = "DAILY",
|
|
134
|
-
WEEKLY = "WEEKLY",
|
|
135
|
-
MONTHLY = "MONTHLY",
|
|
136
|
-
YEARLY = "YEARLY",
|
|
137
|
-
WEEKLY_RANGE = "WEEKLY_RANGE"
|
|
138
|
-
}
|
|
139
|
-
export declare const TIME_FORMAT: {
|
|
140
|
-
DD_MMM_YYYY_HH_MM: string;
|
|
141
|
-
};
|
|
142
|
-
export declare function getOrdinal(number: any): string;
|
|
143
|
-
export declare const TIME_HOUR_SUFFIX_FOR_12_HOUR_FORMAT: {
|
|
144
|
-
AM: string;
|
|
145
|
-
PM: string;
|
|
146
|
-
MIDNIGHT: string;
|
|
147
|
-
NOON: string;
|
|
148
|
-
};
|
|
149
|
-
export declare const getTimeStampAMPMSuffix: (time: string) => string;
|
|
150
98
|
export declare enum ReactSelectInputAction {
|
|
151
99
|
inputChange = "input-change",
|
|
152
100
|
selectOption = "select-option",
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ interface ConditionalWrapper<T> {
|
|
|
7
7
|
children: T;
|
|
8
8
|
}
|
|
9
9
|
export declare const ConditionalWrap: React.FC<ConditionalWrapper<any>>;
|
|
10
|
-
export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean):
|
|
10
|
+
export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 0 | 1 | -1;
|
|
11
11
|
export declare const stopPropagation: (event: any) => void;
|
|
12
12
|
export declare function useThrottledEffect(callback: any, delay: any, deps?: any[]): void;
|
|
13
13
|
export declare function getRandomColor(email: string): string;
|
|
@@ -66,8 +66,7 @@ export declare function getLockedJSON(json: any, jsonPathArray: string[]): any;
|
|
|
66
66
|
*/
|
|
67
67
|
export declare const debounce: (func: any, timeout?: number) => (this: any, ...args: any[]) => void;
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* Sorts the relative dates based on the sorting direction
|
|
70
70
|
*/
|
|
71
|
-
export declare const capitalizeFirstLetter: (text: string) => string;
|
|
72
71
|
export declare const handleRelativeDateSorting: (dateStringA: any, dateStringB: any, sortOrder: any) => number;
|
|
73
72
|
export {};
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode, CSSProperties } from 'react';
|
|
2
2
|
import { Placement } from 'tippy.js';
|
|
3
3
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
4
|
-
import {
|
|
4
|
+
import { DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
|
5
5
|
/**
|
|
6
6
|
* Generic response type object with support for overriding the result type
|
|
7
7
|
*
|
|
@@ -246,11 +246,6 @@ export declare enum FilterStates {
|
|
|
246
246
|
export declare enum MaterialDataSource {
|
|
247
247
|
EXTERNAL = "ext"
|
|
248
248
|
}
|
|
249
|
-
export interface DeploymentWindowArtifactMetadata {
|
|
250
|
-
id: number;
|
|
251
|
-
name: string;
|
|
252
|
-
type: DEPLOYMENT_WINDOW_TYPE;
|
|
253
|
-
}
|
|
254
249
|
export interface CDMaterialType {
|
|
255
250
|
index: number;
|
|
256
251
|
id: string;
|
|
@@ -287,7 +282,6 @@ export interface CDMaterialType {
|
|
|
287
282
|
createdTime?: string;
|
|
288
283
|
deployed?: boolean;
|
|
289
284
|
dataSource?: MaterialDataSource;
|
|
290
|
-
deploymentWindowArtifactMetadata?: DeploymentWindowArtifactMetadata;
|
|
291
285
|
}
|
|
292
286
|
export declare enum CDMaterialServiceEnum {
|
|
293
287
|
ROLLBACK = "rollback",
|
|
@@ -376,7 +370,6 @@ export interface CommonNodeAttr {
|
|
|
376
370
|
deploymentAppCreated?: boolean;
|
|
377
371
|
isLast?: boolean;
|
|
378
372
|
downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
|
|
379
|
-
isDeploymentBlocked?: boolean;
|
|
380
373
|
}
|
|
381
374
|
export declare enum DeploymentAppTypes {
|
|
382
375
|
HELM = "helm",
|
|
@@ -732,13 +725,4 @@ export type SortingParams<T = string> = {
|
|
|
732
725
|
sortOrder?: never;
|
|
733
726
|
sortBy?: never;
|
|
734
727
|
};
|
|
735
|
-
export interface DeploymentWindowProfileMetaData {
|
|
736
|
-
name: string;
|
|
737
|
-
userActionState: ACTION_STATE;
|
|
738
|
-
type: string | DEPLOYMENT_WINDOW_TYPE;
|
|
739
|
-
calculatedTimestamp: string;
|
|
740
|
-
isActive: boolean;
|
|
741
|
-
excludedUserEmails: string[];
|
|
742
|
-
warningMessage: string;
|
|
743
|
-
}
|
|
744
728
|
export {};
|