@devtron-labs/devtron-fe-common-lib 0.0.70-beta-2 → 0.0.70-beta-3

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.
@@ -95,6 +95,50 @@ 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
+ };
98
142
  export declare enum ReactSelectInputAction {
99
143
  inputChange = "input-change",
100
144
  selectOption = "select-option",
@@ -66,7 +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
- * Sorts the relative dates based on the sorting direction
69
+ * Returns a capitalized string with first letter in uppercase and rest in lowercase
70
70
  */
71
- export declare const handleRelativeDateSorting: (dateStringA: any, dateStringB: any, sortOrder: any) => number;
71
+ export declare const capitalizeFirstLetter: (text: string) => string;
72
72
  export {};
@@ -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 { DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
4
+ import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
5
5
  /**
6
6
  * Generic response type object with support for overriding the result type
7
7
  *
@@ -246,6 +246,11 @@ 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
+ }
249
254
  export interface CDMaterialType {
250
255
  index: number;
251
256
  id: string;
@@ -282,6 +287,7 @@ export interface CDMaterialType {
282
287
  createdTime?: string;
283
288
  deployed?: boolean;
284
289
  dataSource?: MaterialDataSource;
290
+ deploymentWindowArtifactMetadata?: DeploymentWindowArtifactMetadata;
285
291
  }
286
292
  export declare enum CDMaterialServiceEnum {
287
293
  ROLLBACK = "rollback",
@@ -370,6 +376,7 @@ export interface CommonNodeAttr {
370
376
  deploymentAppCreated?: boolean;
371
377
  isLast?: boolean;
372
378
  downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
379
+ isDeploymentBlocked?: boolean;
373
380
  }
374
381
  export declare enum DeploymentAppTypes {
375
382
  HELM = "helm",
@@ -725,4 +732,13 @@ export type SortingParams<T = string> = {
725
732
  sortOrder?: never;
726
733
  sortBy?: never;
727
734
  };
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
+ }
728
744
  export {};