@devtron-labs/devtron-fe-common-lib 0.2.2-beta-9 → 0.2.2-beta-11
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/Api.d.ts +5 -5
- package/dist/Common/CIPipeline.Types.d.ts +1 -4
- package/dist/Common/Constants.d.ts +0 -2
- package/dist/Common/CustomInput/Types.d.ts +2 -2
- package/dist/Common/Modals/VisibleModal.d.ts +1 -1
- package/dist/Common/Modals/VisibleModal2.d.ts +1 -1
- package/dist/Common/MultiSelectCustomization.d.ts +1 -1
- package/dist/Common/Types.d.ts +2 -2
- package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/LogsRenderer.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +18 -17
- package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -0
- package/dist/Shared/Components/CommitChipCell/types.d.ts +1 -1
- package/dist/Shared/Components/DetectBottom/DetectBottom.component.d.ts +1 -2
- package/dist/Shared/Components/Header/types.d.ts +12 -1
- package/dist/Shared/Components/ImageChipCell/ImageChipCell.component.d.ts +1 -1
- package/dist/Shared/Components/ImageChipCell/types.d.ts +13 -5
- package/dist/Shared/Components/Plugin/service.d.ts +2 -4
- package/dist/Shared/Components/Plugin/types.d.ts +3 -11
- package/dist/Shared/Components/Plugin/utils.d.ts +0 -3
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -10
- package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +3 -2
- package/dist/Shared/Components/ShowMoreText/index.d.ts +1 -0
- package/dist/Shared/Components/index.d.ts +1 -1
- package/dist/Shared/Helpers.d.ts +5 -0
- package/dist/Shared/constants.d.ts +6 -1
- package/dist/Shared/validations.d.ts +0 -11
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-b7a40cfa.js → cssMode-0028fa14.js} +1 -1
- package/dist/{freemarker2-ff0a7c06.js → freemarker2-2c7ec1fb.js} +1 -1
- package/dist/{handlebars-0b7a7efd.js → handlebars-d486aa29.js} +1 -1
- package/dist/{html-feeb68bd.js → html-eb782e29.js} +1 -1
- package/dist/{htmlMode-bcac9443.js → htmlMode-e1cadb6f.js} +1 -1
- package/dist/{index-79eaedd6.js → index-57f3da81.js} +22695 -22839
- package/dist/index.js +368 -371
- package/dist/{javascript-d16fe14e.js → javascript-dbde4507.js} +1 -1
- package/dist/{jsonMode-74be8d73.js → jsonMode-4bee3605.js} +1 -1
- package/dist/{liquid-78dc826f.js → liquid-a4890a90.js} +1 -1
- package/dist/{mdx-927038f2.js → mdx-dfe0010d.js} +1 -1
- package/dist/{python-1d5b3ab0.js → python-c71cb2c5.js} +1 -1
- package/dist/{razor-9f3bc729.js → razor-d235fdb9.js} +1 -1
- package/dist/{tsMode-3f0ed0a8.js → tsMode-2016574b.js} +1 -1
- package/dist/{typescript-b8689929.js → typescript-2b0c093b.js} +1 -1
- package/dist/{xml-26b71a9d.js → xml-fb0eedd2.js} +1 -1
- package/dist/{yaml-acff597f.js → yaml-22a81b1c.js} +1 -1
- package/package.json +1 -1
- package/dist/Shared/Components/EditImageFormField/EditImageFormField.d.ts +0 -19
- package/dist/Shared/Components/EditImageFormField/constants.d.ts +0 -7
- package/dist/Shared/Components/EditImageFormField/index.d.ts +0 -2
- package/dist/Shared/Components/EditImageFormField/types.d.ts +0 -41
package/dist/Common/Api.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
2
|
import { ResponseType, APIOptions } from './Types';
|
|
3
3
|
|
|
4
|
-
export declare const post:
|
|
5
|
-
export declare const put:
|
|
6
|
-
export declare const patch:
|
|
7
|
-
export declare const get:
|
|
8
|
-
export declare const trash:
|
|
4
|
+
export declare const post: (url: string, data: object, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType>;
|
|
5
|
+
export declare const put: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
|
|
6
|
+
export declare const patch: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
|
|
7
|
+
export declare const get: (url: string, options?: APIOptions) => Promise<ResponseType>;
|
|
8
|
+
export declare const trash: (url: string, data?: object, options?: APIOptions) => Promise<ResponseType>;
|
|
9
9
|
/**
|
|
10
10
|
* Aborts the previous request before triggering next request
|
|
11
11
|
*/
|
|
@@ -77,7 +77,6 @@ export interface VariableType {
|
|
|
77
77
|
format: string;
|
|
78
78
|
description: string;
|
|
79
79
|
defaultValue: string;
|
|
80
|
-
allowEmptyValue: boolean;
|
|
81
80
|
variableType: RefVariableType;
|
|
82
81
|
refVariableStepIndex: number;
|
|
83
82
|
refVariableName: string;
|
|
@@ -99,7 +98,7 @@ interface ConditionDetails {
|
|
|
99
98
|
conditionType: ConditionType;
|
|
100
99
|
conditionalValue: string;
|
|
101
100
|
}
|
|
102
|
-
|
|
101
|
+
interface InlineStepDetailType {
|
|
103
102
|
scriptType: ScriptType;
|
|
104
103
|
isMountCustomScript?: boolean;
|
|
105
104
|
script?: string;
|
|
@@ -118,8 +117,6 @@ export interface InlineStepDetailType {
|
|
|
118
117
|
inputVariables?: VariableType[];
|
|
119
118
|
outputVariables?: VariableType[];
|
|
120
119
|
conditionDetails: ConditionDetails[];
|
|
121
|
-
storeScriptAt?: string;
|
|
122
|
-
mountCodeToContainerPath?: string;
|
|
123
120
|
}
|
|
124
121
|
interface PluginRefStepDetailType {
|
|
125
122
|
id: number;
|
|
@@ -81,7 +81,6 @@ export declare const ROUTES: {
|
|
|
81
81
|
PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
|
|
82
82
|
PLUGIN_GLOBAL_LIST_V2: string;
|
|
83
83
|
PLUGIN_GLOBAL_LIST_TAGS: string;
|
|
84
|
-
PLUGIN_LIST_MIN: string;
|
|
85
84
|
};
|
|
86
85
|
export declare enum KEY_VALUE {
|
|
87
86
|
KEY = "key",
|
|
@@ -271,4 +270,3 @@ export declare const DATE_TIME_FORMATS: {
|
|
|
271
270
|
DD_MMM_YYYY_HH_MM: string;
|
|
272
271
|
DD_MMM_YYYY: string;
|
|
273
272
|
};
|
|
274
|
-
export declare const SEMANTIC_VERSION_DOCUMENTATION_LINK = "https://semver.org/";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React, HTMLInputTypeAttribute, InputHTMLAttributes
|
|
1
|
+
import { default as React, HTMLInputTypeAttribute, InputHTMLAttributes } from 'react';
|
|
2
2
|
|
|
3
3
|
export interface CustomInputProps {
|
|
4
4
|
name: string;
|
|
@@ -17,7 +17,7 @@ export interface CustomInputProps {
|
|
|
17
17
|
autoFocus?: boolean;
|
|
18
18
|
rootClassName?: string;
|
|
19
19
|
error?: string[] | string;
|
|
20
|
-
helperText?:
|
|
20
|
+
helperText?: string;
|
|
21
21
|
handleOnBlur?: (e: any) => void;
|
|
22
22
|
readOnly?: boolean;
|
|
23
23
|
noTrim?: boolean;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -177,10 +177,10 @@ export interface RadioGroupItemProps {
|
|
|
177
177
|
export interface RadioGroupInterface {
|
|
178
178
|
name: string;
|
|
179
179
|
onChange: any;
|
|
180
|
+
className?: string;
|
|
180
181
|
initialTab: string;
|
|
182
|
+
disabled: boolean;
|
|
181
183
|
children: ReactNode;
|
|
182
|
-
disabled?: boolean;
|
|
183
|
-
className?: string;
|
|
184
184
|
}
|
|
185
185
|
export interface RadioInterface {
|
|
186
186
|
children: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ArtifactType, CIListItemType } from './types';
|
|
2
2
|
|
|
3
3
|
export declare const CIListItem: ({ type, userApprovalMetadata, triggeredBy, children, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, isSuperAdmin, promotionApprovalMetadata, appliedFiltersTimestamp, selectedEnvironmentName, renderCIListHeader, }: CIListItemType) => JSX.Element;
|
|
4
|
-
declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded, downloadArtifactUrl, ciPipelineId, artifactId, isJobView, isJobCI, imageComment, imageReleaseTags, type, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete,
|
|
4
|
+
declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded, downloadArtifactUrl, ciPipelineId, artifactId, isJobView, isJobCI, imageComment, imageReleaseTags, type, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, rootClassName, renderCIListHeader, }: ArtifactType) => JSX.Element;
|
|
5
5
|
export default Artifacts;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LogStageAccordionProps } from './types';
|
|
2
2
|
|
|
3
|
-
declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, }: LogStageAccordionProps) => JSX.Element;
|
|
3
|
+
declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, fullScreenView, }: LogStageAccordionProps) => JSX.Element;
|
|
4
4
|
export default LogStageAccordion;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LogsRendererType } from './types';
|
|
2
2
|
|
|
3
|
-
export declare const LogsRenderer: ({ triggerDetails, isBlobStorageConfigured, parentType, }: LogsRendererType) => JSX.Element;
|
|
3
|
+
export declare const LogsRenderer: ({ triggerDetails, isBlobStorageConfigured, parentType, fullScreenView, }: LogsRendererType) => JSX.Element;
|
|
4
4
|
export default LogsRenderer;
|
|
@@ -2,5 +2,5 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { TriggerDetailsType, TriggerOutputProps } from './types';
|
|
3
3
|
|
|
4
4
|
export declare const TriggerDetails: React.MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, }: TriggerDetailsType) => JSX.Element>;
|
|
5
|
-
declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, setDeploymentHistoryList, deploymentHistoryList, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, }: TriggerOutputProps) => JSX.Element;
|
|
5
|
+
declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, setDeploymentHistoryList, deploymentHistoryList, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, scrollToTop, scrollToBottom, }: TriggerOutputProps) => JSX.Element;
|
|
6
6
|
export default TriggerOutput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps } from '../../../Common';
|
|
2
|
+
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable } from '../../../Common';
|
|
3
3
|
import { DeploymentStageType } from '../../constants';
|
|
4
4
|
import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
|
|
5
5
|
|
|
@@ -143,12 +143,8 @@ export interface CurrentStatusType {
|
|
|
143
143
|
status: string;
|
|
144
144
|
finishedOn: string;
|
|
145
145
|
artifact: string;
|
|
146
|
-
message: string;
|
|
147
|
-
podStatus: string;
|
|
148
146
|
stage: DeploymentStageType;
|
|
149
147
|
type: HistoryComponentType;
|
|
150
|
-
isJobView?: boolean;
|
|
151
|
-
workerPodName?: string;
|
|
152
148
|
}
|
|
153
149
|
export interface StartDetailsType {
|
|
154
150
|
startedOn: string;
|
|
@@ -184,12 +180,8 @@ export interface TriggerDetailsType {
|
|
|
184
180
|
}
|
|
185
181
|
export interface ProgressingStatusType {
|
|
186
182
|
status: string;
|
|
187
|
-
message: string;
|
|
188
|
-
podStatus: string;
|
|
189
183
|
stage: DeploymentStageType;
|
|
190
184
|
type: HistoryComponentType;
|
|
191
|
-
finishedOn?: string;
|
|
192
|
-
workerPodName?: string;
|
|
193
185
|
}
|
|
194
186
|
export interface WorkerStatusType {
|
|
195
187
|
message: string;
|
|
@@ -206,12 +198,6 @@ export interface FinishedType {
|
|
|
206
198
|
}
|
|
207
199
|
export interface TriggerDetailsStatusIconType {
|
|
208
200
|
status: string;
|
|
209
|
-
isDeploymentWindowInfo?: boolean;
|
|
210
|
-
}
|
|
211
|
-
export interface LogsRendererType {
|
|
212
|
-
triggerDetails: History;
|
|
213
|
-
isBlobStorageConfigured: boolean;
|
|
214
|
-
parentType: HistoryComponentType;
|
|
215
201
|
}
|
|
216
202
|
export interface SyncStageResourceDetail {
|
|
217
203
|
id: number;
|
|
@@ -330,6 +316,21 @@ export interface TriggerOutputProps extends RenderRunSourceType {
|
|
|
330
316
|
deploymentHistoryResult: Pick<DeploymentHistoryResult, 'result'>;
|
|
331
317
|
setFetchTriggerIdData: React.Dispatch<React.SetStateAction<FetchIdDataStatus>>;
|
|
332
318
|
setTriggerHistory: React.Dispatch<React.SetStateAction<Map<Number, History>>>;
|
|
319
|
+
scrollToTop: ReturnType<typeof useScrollable>[1];
|
|
320
|
+
scrollToBottom: ReturnType<typeof useScrollable>[2];
|
|
321
|
+
}
|
|
322
|
+
export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentHistoryList' | 'setDeploymentHistoryList' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts' | 'fullScreenView'> {
|
|
323
|
+
triggerDetails: History;
|
|
324
|
+
loading: boolean;
|
|
325
|
+
userApprovalMetadata: UserApprovalMetadataType;
|
|
326
|
+
triggeredByEmail: string;
|
|
327
|
+
artifactId: number;
|
|
328
|
+
ciPipelineId: number;
|
|
329
|
+
resourceId?: number;
|
|
330
|
+
renderRunSource: (runSource: RunSourceType, isDeployedInThisResource: boolean) => JSX.Element;
|
|
331
|
+
}
|
|
332
|
+
export interface LogsRendererType extends Pick<HistoryLogsProps, 'fullScreenView' | 'triggerDetails' | 'isBlobStorageConfigured'> {
|
|
333
|
+
parentType: HistoryComponentType;
|
|
333
334
|
}
|
|
334
335
|
export interface DeploymentStatusDetailBreakdownType {
|
|
335
336
|
deploymentStatusDetailsBreakdownData: DeploymentStatusDetailsBreakdownDataType;
|
|
@@ -480,7 +481,7 @@ export interface ArtifactType {
|
|
|
480
481
|
appReleaseTagNames?: string[];
|
|
481
482
|
tagsEditable?: boolean;
|
|
482
483
|
hideImageTaggingHardDelete?: boolean;
|
|
483
|
-
|
|
484
|
+
rootClassName?: string;
|
|
484
485
|
renderCIListHeader: (renderCIListHeaderProps: RenderCIListHeaderProps) => JSX.Element;
|
|
485
486
|
}
|
|
486
487
|
export interface CIListItemType extends Pick<GitChangesType, 'promotionApprovalMetadata' | 'selectedEnvironmentName'> {
|
|
@@ -602,7 +603,7 @@ export interface StageDetailType extends Pick<StageInfoDTO, 'stage' | 'startTime
|
|
|
602
603
|
logs: string[];
|
|
603
604
|
isOpen: boolean;
|
|
604
605
|
}
|
|
605
|
-
export interface LogStageAccordionProps extends StageDetailType {
|
|
606
|
+
export interface LogStageAccordionProps extends StageDetailType, Pick<LogsRendererType, 'fullScreenView'> {
|
|
606
607
|
handleStageClose: (index: number) => void;
|
|
607
608
|
handleStageOpen: (index: number) => void;
|
|
608
609
|
stageIndex: number;
|
|
@@ -5,3 +5,4 @@ export declare const getParsedTriggerHistory: (result: any) => DeploymentHistory
|
|
|
5
5
|
export declare const buildHoverHtmlForWebhook: (eventName: any, condition: any, selectors: any) => JSX.Element;
|
|
6
6
|
export declare const renderIcon: (iconState: string) => JSX.Element;
|
|
7
7
|
export declare const getStageStatusIcon: (status: StageStatusType) => JSX.Element;
|
|
8
|
+
export declare const getTriggerStatusIcon: (triggerDetailStatus: string) => JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
interface DetectBottomProps {
|
|
2
2
|
callback: () => void;
|
|
3
|
-
hasError?: boolean;
|
|
4
3
|
}
|
|
5
|
-
declare const DetectBottom: ({ callback
|
|
4
|
+
declare const DetectBottom: ({ callback }: DetectBottomProps) => JSX.Element;
|
|
6
5
|
export default DetectBottom;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ModuleStatus } from '../../types';
|
|
2
1
|
import { ResponseType, TippyCustomizedProps } from '../../../Common';
|
|
3
2
|
|
|
4
3
|
export declare enum InstallationType {
|
|
@@ -6,6 +5,18 @@ export declare enum InstallationType {
|
|
|
6
5
|
OSS_HELM = "oss_helm",
|
|
7
6
|
ENTERPRISE = "enterprise"
|
|
8
7
|
}
|
|
8
|
+
export declare enum ModuleStatus {
|
|
9
|
+
HEALTHY = "healthy",
|
|
10
|
+
NONE = "none",
|
|
11
|
+
UNKNOWN = "unknown",
|
|
12
|
+
UPGRADING = "upgrading",
|
|
13
|
+
UPGRADE_FAILED = "upgradeFailed",
|
|
14
|
+
INSTALLED = "installed",
|
|
15
|
+
INSTALLING = "installing",
|
|
16
|
+
INSTALL_FAILED = "installFailed",
|
|
17
|
+
NOT_INSTALLED = "notInstalled",
|
|
18
|
+
TIMEOUT = "timeout"
|
|
19
|
+
}
|
|
9
20
|
export interface PageHeaderType {
|
|
10
21
|
headerName?: string;
|
|
11
22
|
showTabs?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ImageChipCellProps } from './types';
|
|
2
2
|
|
|
3
|
-
declare const ImageChipCell: ({
|
|
3
|
+
declare const ImageChipCell: ({ imagePath, registryType, handleClick, isExpanded: isExpandedProp, placement, }: ImageChipCellProps) => JSX.Element;
|
|
4
4
|
export default ImageChipCell;
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { default as Tippy } from '@tippyjs/react';
|
|
2
|
+
import { ComponentProps, SyntheticEvent } from 'react';
|
|
2
3
|
import { RegistryType } from '../../types';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
type ImageChipCellButtonActionProps = {
|
|
5
6
|
handleClick: (e: SyntheticEvent) => void;
|
|
6
|
-
imagePath: string;
|
|
7
7
|
isExpanded: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
} | {
|
|
9
|
+
handleClick?: never;
|
|
10
|
+
isExpanded?: never;
|
|
11
|
+
};
|
|
12
|
+
export type ImageChipCellProps = {
|
|
13
|
+
imagePath: string;
|
|
14
|
+
registryType?: RegistryType;
|
|
15
|
+
placement?: ComponentProps<typeof Tippy>['placement'];
|
|
16
|
+
} & ImageChipCellButtonActionProps;
|
|
17
|
+
export {};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GetPluginStoreDataReturnType, GetPluginStoreDataServiceParamsType, MinParentPluginDTO, PluginDetailServiceParamsType } from './types';
|
|
1
|
+
import { GetPluginStoreDataReturnType, GetPluginStoreDataServiceParamsType, PluginDetailServiceParamsType } from './types';
|
|
3
2
|
|
|
4
|
-
export declare const getPluginsDetail: ({ appId, parentPluginIds, pluginIds,
|
|
3
|
+
export declare const getPluginsDetail: ({ appId, parentPluginIds, pluginIds, shouldShowError, }: PluginDetailServiceParamsType) => Promise<Pick<GetPluginStoreDataReturnType, 'pluginStore'>>;
|
|
5
4
|
export declare const getPluginStoreData: ({ searchKey, selectedTags, appId, offset, signal, }: GetPluginStoreDataServiceParamsType) => Promise<GetPluginStoreDataReturnType>;
|
|
6
5
|
export declare const getAvailablePluginTags: (appId: number) => Promise<string[]>;
|
|
7
|
-
export declare const getParentPluginList: (appId?: number) => Promise<ResponseType<MinParentPluginDTO[]>>;
|
|
@@ -8,13 +8,9 @@ export declare enum PluginCreationType {
|
|
|
8
8
|
SHARED = "SHARED",
|
|
9
9
|
PRESET = "PRESET"
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
11
|
+
export interface GetPluginTagsPayloadType {
|
|
12
12
|
appId: number;
|
|
13
13
|
}
|
|
14
|
-
export interface GetPluginTagsPayloadType extends PluginAPIBaseQueryParamsType {
|
|
15
|
-
}
|
|
16
|
-
export interface GetParentPluginListPayloadType extends PluginAPIBaseQueryParamsType {
|
|
17
|
-
}
|
|
18
14
|
export interface PluginTagNamesDTO {
|
|
19
15
|
tagNames: string[];
|
|
20
16
|
}
|
|
@@ -49,9 +45,6 @@ export interface ParentPluginDTO {
|
|
|
49
45
|
type: PluginCreationType;
|
|
50
46
|
icon: string;
|
|
51
47
|
pluginVersions: PluginVersionsDTO;
|
|
52
|
-
pluginIdentifier: string;
|
|
53
|
-
}
|
|
54
|
-
export interface MinParentPluginDTO extends Pick<ParentPluginDTO, 'id' | 'name' | 'icon'> {
|
|
55
48
|
}
|
|
56
49
|
export interface PluginDetailDTO {
|
|
57
50
|
parentPlugins: ParentPluginDTO[];
|
|
@@ -65,7 +58,6 @@ export interface PluginDetailServiceParamsType {
|
|
|
65
58
|
* @default true
|
|
66
59
|
*/
|
|
67
60
|
shouldShowError?: boolean;
|
|
68
|
-
signal?: AbortSignal;
|
|
69
61
|
}
|
|
70
62
|
export interface PluginDetailPayloadType extends Pick<PluginDetailServiceParamsType, 'appId'> {
|
|
71
63
|
pluginId?: PluginDetailServiceParamsType['pluginIds'];
|
|
@@ -74,11 +66,11 @@ export interface PluginDetailPayloadType extends Pick<PluginDetailServiceParamsT
|
|
|
74
66
|
export interface PluginListFiltersType extends Pick<BaseFilterQueryParams<unknown>, 'searchKey'> {
|
|
75
67
|
selectedTags: string[];
|
|
76
68
|
}
|
|
77
|
-
interface ParentPluginType extends Pick<ParentPluginDTO, 'id' | 'name' | 'description' | 'type' | 'icon'
|
|
69
|
+
interface ParentPluginType extends Pick<ParentPluginDTO, 'id' | 'name' | 'description' | 'type' | 'icon'> {
|
|
78
70
|
latestVersionId: MinimalPluginVersionDataDTO['id'];
|
|
79
71
|
pluginVersions: MinimalPluginVersionDataDTO[];
|
|
80
72
|
}
|
|
81
|
-
interface DetailedPluginVersionType extends Pick<MinimalPluginVersionDataDTO, 'id' | 'description' | 'name' | 'pluginVersion'>, Pick<DetailedPluginVersionDTO, 'tags' | 'isLatest' | 'inputVariables' | 'outputVariables' | 'updatedBy' | 'docLink'>, Pick<ParentPluginType, 'icon' | 'type'
|
|
73
|
+
interface DetailedPluginVersionType extends Pick<MinimalPluginVersionDataDTO, 'id' | 'description' | 'name' | 'pluginVersion'>, Pick<DetailedPluginVersionDTO, 'tags' | 'isLatest' | 'inputVariables' | 'outputVariables' | 'updatedBy' | 'docLink'>, Pick<ParentPluginType, 'icon' | 'type'> {
|
|
82
74
|
parentPluginId: ParentPluginType['id'];
|
|
83
75
|
}
|
|
84
76
|
export interface PluginDataStoreType {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { OptionProps } from 'react-select';
|
|
2
|
-
import { OptionType } from '../../../Common/Types';
|
|
3
1
|
import { ParentPluginDTO, PluginDataStoreType } from './types';
|
|
4
2
|
|
|
5
3
|
export declare const parsePluginDetailsDTOIntoPluginStore: (pluginData: ParentPluginDTO[]) => PluginDataStoreType;
|
|
@@ -16,7 +14,6 @@ export declare const pluginTagSelectStyles: {
|
|
|
16
14
|
group: (base: any) => any;
|
|
17
15
|
groupHeading: (base: any) => any;
|
|
18
16
|
};
|
|
19
|
-
export declare const PluginTagOption: (props: OptionProps<OptionType, true>) => JSX.Element;
|
|
20
17
|
/**
|
|
21
18
|
* @description This method takes the initial plugin data store and updates the keys with the target parent plugin store and plugin version store
|
|
22
19
|
*/
|
|
@@ -81,5 +81,5 @@ import { SelectPickerProps } from './type';
|
|
|
81
81
|
* <SelectPicker ... showSelectedOptionsCount />
|
|
82
82
|
* ```
|
|
83
83
|
*/
|
|
84
|
-
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize,
|
|
84
|
+
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, ...props }: SelectPickerProps) => JSX.Element;
|
|
85
85
|
export default SelectPicker;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ServerErrors } from '../../../Common/ServerError';
|
|
2
1
|
import { OptionType } from '../../../Common/Types';
|
|
3
2
|
import { ComponentSizeType } from '../../constants';
|
|
4
3
|
import { ReactElement, ReactNode } from 'react';
|
|
@@ -19,7 +18,7 @@ export interface SelectPickerOptionType extends OptionType<number | string, Reac
|
|
|
19
18
|
endIcon?: ReactElement;
|
|
20
19
|
}
|
|
21
20
|
type SelectProps = ReactSelectProps<SelectPickerOptionType>;
|
|
22
|
-
export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'isLoading' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder'
|
|
21
|
+
export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'isLoading' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder'>, Required<Pick<SelectProps, 'classNamePrefix' | 'inputId' | 'name'>> {
|
|
23
22
|
/**
|
|
24
23
|
* Icon to be rendered in the control
|
|
25
24
|
*/
|
|
@@ -71,13 +70,5 @@ export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value'
|
|
|
71
70
|
* @default 'ComponentSizeType.small'
|
|
72
71
|
*/
|
|
73
72
|
menuSize?: ComponentSizeType;
|
|
74
|
-
/**
|
|
75
|
-
* If truthy, would show generic section error state as no options message
|
|
76
|
-
*/
|
|
77
|
-
optionListError?: ServerErrors;
|
|
78
|
-
/**
|
|
79
|
-
* Would reload the option list when called in case optionListError is present
|
|
80
|
-
*/
|
|
81
|
-
reloadOptionList?: () => void;
|
|
82
73
|
}
|
|
83
74
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
interface ShowMoreTextProps {
|
|
2
2
|
text: string;
|
|
3
|
+
textClass?: string;
|
|
3
4
|
}
|
|
4
|
-
|
|
5
|
-
export
|
|
5
|
+
declare const ShowMoreText: ({ text, textClass }: ShowMoreTextProps) => JSX.Element;
|
|
6
|
+
export default ShowMoreText;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ShowMoreText } from './ShowMoreText';
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -36,4 +36,9 @@ export declare const decode: (data: any, isEncoded?: boolean) => {};
|
|
|
36
36
|
export declare const isTimeStringAvailable: (time: string) => boolean;
|
|
37
37
|
export declare const getTimeDifference: (startTime: string, endTime: string) => string;
|
|
38
38
|
export declare const getFileNameFromHeaders: (headers: Headers) => string;
|
|
39
|
+
/**
|
|
40
|
+
* @description - Function to open a new tab with the given url
|
|
41
|
+
* @param url - url to be opened in new tab
|
|
42
|
+
*/
|
|
43
|
+
export declare const getHandleOpenURL: (url: string) => () => void;
|
|
39
44
|
export {};
|
|
@@ -347,6 +347,12 @@ export declare const statusColor: {
|
|
|
347
347
|
unabletofetch: string;
|
|
348
348
|
hibernating: string;
|
|
349
349
|
};
|
|
350
|
+
export declare const PULSATING_STATUS_MAP: {
|
|
351
|
+
progressing: boolean;
|
|
352
|
+
initiating: boolean;
|
|
353
|
+
starting: boolean;
|
|
354
|
+
running: boolean;
|
|
355
|
+
};
|
|
350
356
|
export declare const APP_STATUS_HEADERS: string[];
|
|
351
357
|
export declare const MATERIAL_EXCLUDE_TIPPY_TEXT = "Not available for build as this commit contains changes in excluded files or folders";
|
|
352
358
|
export declare const AppListConstants: {
|
|
@@ -388,7 +394,6 @@ export declare enum ComponentSizeType {
|
|
|
388
394
|
medium = "medium",
|
|
389
395
|
large = "large"
|
|
390
396
|
}
|
|
391
|
-
export declare const POP_UP_MENU_MODAL_ID = "popup";
|
|
392
397
|
/**
|
|
393
398
|
* Identifiers for grouped / all resources
|
|
394
399
|
*/
|
|
@@ -12,7 +12,6 @@ export declare const MESSAGES: {
|
|
|
12
12
|
VALID_POSITIVE_NUMBER: string;
|
|
13
13
|
VALID_POSITIVE_INTEGER: string;
|
|
14
14
|
MAX_SAFE_INTEGER: string;
|
|
15
|
-
INVALID_SEMANTIC_VERSION: string;
|
|
16
15
|
};
|
|
17
16
|
export declare const requiredField: (value: string) => ValidationResponseType;
|
|
18
17
|
export declare const validateName: (name: string) => ValidationResponseType;
|
|
@@ -29,13 +28,3 @@ export declare const validateUniqueKeys: (keys: string[]) => {
|
|
|
29
28
|
isValid: boolean;
|
|
30
29
|
message: string;
|
|
31
30
|
};
|
|
32
|
-
/**
|
|
33
|
-
* Rules for valid semantic version:
|
|
34
|
-
* 1. version.length < 128 and not empty
|
|
35
|
-
* 2. version should follow semantic versioning regex from https://semver.org/
|
|
36
|
-
*/
|
|
37
|
-
export declare const validateSemanticVersioning: (version: string) => ValidationResponseType;
|
|
38
|
-
/**
|
|
39
|
-
* A valid display name should be between 3 and 50 characters
|
|
40
|
-
*/
|
|
41
|
-
export declare const validateDisplayName: (name: string) => ValidationResponseType;
|