@devtron-labs/devtron-fe-common-lib 0.0.90 → 0.0.91-beta-4

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 (62) hide show
  1. package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +2 -0
  2. package/dist/Common/BreadCrumb/Types.d.ts +4 -0
  3. package/dist/Common/Constants.d.ts +57 -0
  4. package/dist/Common/Dialogs/Types.d.ts +17 -2
  5. package/dist/Common/EmptyState/GenericFilterEmptyState.d.ts +5 -2
  6. package/dist/Common/EmptyState/types.d.ts +13 -0
  7. package/dist/Common/Hooks/useStateFilters/types.d.ts +4 -1
  8. package/dist/Common/Modals/Modal.d.ts +3 -0
  9. package/dist/Common/Modals/VisibleModal.d.ts +2 -1
  10. package/dist/Common/Modals/VisibleModal2.d.ts +2 -1
  11. package/dist/Common/MultiSelectCustomization.d.ts +8 -0
  12. package/dist/Common/PopupMenu.d.ts +1 -1
  13. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  14. package/dist/Common/SearchBar/types.d.ts +4 -0
  15. package/dist/Common/ShowMoreText.d.ts +5 -0
  16. package/dist/Common/Types.d.ts +3 -1
  17. package/dist/Common/index.d.ts +1 -1
  18. package/dist/Shared/Components/CICDHistory/GitCommitInfoGeneric.d.ts +12 -0
  19. package/dist/Shared/Components/CICDHistory/GitMaterialInfoHeader.d.ts +9 -0
  20. package/dist/Shared/Components/CICDHistory/constants.d.ts +222 -0
  21. package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +3 -0
  22. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +4 -0
  23. package/dist/Shared/Components/FeatureDescription/constant.d.ts +8 -0
  24. package/dist/Shared/Components/FeatureDescription/index.d.ts +2 -0
  25. package/dist/Shared/Components/FeatureDescription/types.d.ts +19 -0
  26. package/dist/Shared/Components/FeatureDescription/utils.d.ts +6 -0
  27. package/dist/Shared/Components/ImageWithFallback/ImageWithFallback.component.d.ts +4 -0
  28. package/dist/Shared/Components/ImageWithFallback/index.d.ts +2 -0
  29. package/dist/Shared/Components/ImageWithFallback/types.d.ts +12 -0
  30. package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +4 -0
  31. package/dist/Shared/Components/ModalSidebarPanel/index.d.ts +2 -0
  32. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +9 -0
  33. package/dist/Shared/Components/ReactSelect/constants.d.ts +14 -0
  34. package/dist/Shared/Components/ReactSelect/index.d.ts +1 -0
  35. package/dist/Shared/Components/index.d.ts +3 -0
  36. package/dist/Shared/Helpers.d.ts +2 -0
  37. package/dist/Shared/Services/common.service.d.ts +3 -0
  38. package/dist/Shared/Services/index.d.ts +2 -0
  39. package/dist/Shared/Services/types.d.ts +17 -0
  40. package/dist/Shared/constants.d.ts +4 -0
  41. package/dist/Shared/index.d.ts +1 -0
  42. package/dist/Shared/types.d.ts +44 -1
  43. package/dist/Shared/validations.d.ts +4 -0
  44. package/dist/assets/index.css +1 -1
  45. package/dist/{cssMode-aa62bff3.js → cssMode-39dd24c4.js} +1 -1
  46. package/dist/{freemarker2-1dd9590a.js → freemarker2-130f95da.js} +1 -1
  47. package/dist/{handlebars-ef0c3ce9.js → handlebars-3d2f4836.js} +1 -1
  48. package/dist/{html-f1585fe3.js → html-a26c047b.js} +1 -1
  49. package/dist/{htmlMode-3278d449.js → htmlMode-82212456.js} +1 -1
  50. package/dist/{index-14c83797.js → index-be4ca45f.js} +20204 -19826
  51. package/dist/index.js +370 -361
  52. package/dist/{javascript-8861f6d7.js → javascript-449f746c.js} +1 -1
  53. package/dist/{jsonMode-e05f5492.js → jsonMode-64ba3175.js} +1 -1
  54. package/dist/{liquid-3f20896b.js → liquid-46eaee9f.js} +1 -1
  55. package/dist/{mdx-31c3574f.js → mdx-fb0bd00e.js} +1 -1
  56. package/dist/{python-234e60cc.js → python-035e242f.js} +1 -1
  57. package/dist/{razor-4c7aca07.js → razor-eac3e65c.js} +1 -1
  58. package/dist/{tsMode-2539edcb.js → tsMode-9b2b5d11.js} +1 -1
  59. package/dist/{typescript-22db8544.js → typescript-72f39f87.js} +1 -1
  60. package/dist/{xml-5a0853b6.js → xml-5ce95842.js} +1 -1
  61. package/dist/{yaml-e3263600.js → yaml-f7a5b102.js} +1 -1
  62. package/package.json +5 -5
@@ -1,6 +1,7 @@
1
1
  import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
2
2
  import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
3
3
  import { MaterialInfo, SortingOrder } from '../Common';
4
+ import { ReactElement } from 'react';
4
5
 
5
6
  interface HighlightSearchTextProps {
6
7
  /**
@@ -26,6 +27,7 @@ export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => J
26
27
  export declare const useIntersection: (target: React.RefObject<Element> | Element | null, options?: IntersectionOptions, callback?: IntersectionChangeHandler) => boolean;
27
28
  export declare const isNullOrUndefined: (value: unknown) => boolean;
28
29
  export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
30
+ export declare const renderValidInputButtonTippy: (children: ReactElement) => JSX.Element;
29
31
  export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
30
32
  export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
31
33
  export declare const decode: (data: any, isEncoded?: boolean) => {};
@@ -0,0 +1,3 @@
1
+ import { GetResourceApiUrlProps } from './types';
2
+
3
+ export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, queryParams }: GetResourceApiUrlProps<T>) => string;
@@ -0,0 +1,2 @@
1
+ export * from './types';
2
+ export * from './common.service';
@@ -0,0 +1,17 @@
1
+ import { ResourceKindType, ResourceVersionType } from '../types';
2
+ import { getUrlWithSearchParams } from '../../Common';
3
+
4
+ export interface ClusterType {
5
+ id: number;
6
+ name: string;
7
+ /**
8
+ * If true, denotes virtual cluster
9
+ */
10
+ isVirtual: boolean;
11
+ }
12
+ export interface GetResourceApiUrlProps<T> {
13
+ baseUrl: string;
14
+ kind: ResourceKindType;
15
+ version: ResourceVersionType;
16
+ queryParams?: T extends Parameters<typeof getUrlWithSearchParams>[1] ? T : never;
17
+ }
@@ -43,6 +43,10 @@ export declare enum DeploymentWithConfigType {
43
43
  LATEST_TRIGGER_CONFIG = "LATEST_TRIGGER_CONFIG",
44
44
  SPECIFIC_TRIGGER_CONFIG = "SPECIFIC_TRIGGER_CONFIG"
45
45
  }
46
+ export declare enum EnvironmentTypeEnum {
47
+ production = "Production",
48
+ nonProduction = "Non-Production"
49
+ }
46
50
  export declare enum TIMELINE_STATUS {
47
51
  DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED",
48
52
  GIT_COMMIT = "GIT_COMMIT",
@@ -4,5 +4,6 @@ export * from './Helpers';
4
4
  export * from './types';
5
5
  export * from './Providers';
6
6
  export * from './constants';
7
+ export * from './Services';
7
8
  export * from './Store';
8
9
  export * from './Hooks';
@@ -1,4 +1,4 @@
1
- import { PatchOperationType } from './constants';
1
+ import { EnvironmentTypeEnum, PatchOperationType } from './constants';
2
2
  import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes } from '../Common';
3
3
 
4
4
  export declare enum EnvType {
@@ -351,6 +351,9 @@ export declare enum ResourceKindType {
351
351
  cluster = "cluster",
352
352
  release = "release",
353
353
  releaseTrack = "release-track",
354
+ tenant = "tenant",
355
+ installation = "installation",
356
+ environment = "environment",
354
357
  cdPipeline = "cd-pipeline"
355
358
  }
356
359
  /**
@@ -399,6 +402,10 @@ export type IntersectionOptions = {
399
402
  defaultIntersecting?: boolean;
400
403
  };
401
404
  export type IntersectionChangeHandler = (entry: IntersectionObserverEntry) => void;
405
+ export interface InputFieldState<T = string> {
406
+ value: T;
407
+ error: string;
408
+ }
402
409
  export declare enum AggregationKeys {
403
410
  Workloads = "Workloads",
404
411
  Networking = "Networking",
@@ -411,6 +418,42 @@ export declare enum AggregationKeys {
411
418
  Namespaces = "Namespaces"
412
419
  }
413
420
  export type AggregationKeysType = keyof typeof AggregationKeys;
421
+ export interface EnvironmentType {
422
+ /**
423
+ * Unique identifier for the environment
424
+ */
425
+ id: number;
426
+ /**
427
+ * Name of the environment
428
+ */
429
+ name: string;
430
+ /**
431
+ * Associated namespace for the environment
432
+ */
433
+ namespace: string;
434
+ /**
435
+ * Type of the environment
436
+ */
437
+ environmentType: EnvironmentTypeEnum;
438
+ /**
439
+ * Associated cluster for the environment
440
+ */
441
+ cluster: string;
442
+ /**
443
+ * If true, denotes virtual environment
444
+ */
445
+ isVirtual: boolean;
446
+ }
447
+ export interface CreatedByDTO {
448
+ icon: boolean;
449
+ id: number;
450
+ name: string;
451
+ }
452
+ export declare enum DependencyType {
453
+ UPSTREAM = "upstream",
454
+ DOWNSTREAM = "downstream",
455
+ LEVEL = "level"
456
+ }
414
457
  export interface scrollableInterface {
415
458
  autoBottomScroll: boolean;
416
459
  }
@@ -8,6 +8,7 @@ export declare const MESSAGES: {
8
8
  CAN_NOT_START_END_WITH_SEPARATORS: string;
9
9
  getMinMaxCharMessage: (min: number, max: number) => string;
10
10
  getMaxCharMessage: (max: number) => string;
11
+ getMinCharMessage: (min: number) => string;
11
12
  VALID_POSITIVE_NUMBER: string;
12
13
  VALID_POSITIVE_INTEGER: string;
13
14
  MAX_SAFE_INTEGER: string;
@@ -15,5 +16,8 @@ export declare const MESSAGES: {
15
16
  export declare const requiredField: (value: string) => ValidationResponseType;
16
17
  export declare const validateName: (name: string) => ValidationResponseType;
17
18
  export declare const validateDescription: (description: string) => ValidationResponseType;
19
+ export declare const validateStringLength: (value: string, maxLimit: number, minLimit: number) => ValidationResponseType;
18
20
  export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
19
21
  export declare const validateRequiredPositiveInteger: (value: string | number) => ValidationResponseType;
22
+ export declare const validateURL: (url: string, allowBase64Url?: boolean) => ValidationResponseType;
23
+ export declare const validateIfImageExist: (url: string) => Promise<ValidationResponseType>;