@integry/sdk 4.7.39 → 4.7.40
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/esm/index.csm.js +1 -1
- package/dist/umd/index.umd.js +1 -1
- package/package.json +6 -1
- package/.eslintignore +0 -1
- package/.vscode/launch.json +0 -17
- package/CHANGELOG_INTERNAL.md +0 -134
- package/README_INTERNAL.md +0 -176
- package/THIRD_PARTY_LICENSES +0 -525
- package/generateTests.js +0 -80
- package/jest.config.cjs +0 -10
- package/src/components/AddTagButton/index.ts +0 -23
- package/src/components/BasicSelect/index.ts +0 -123
- package/src/components/BasicSelect/styles.module.scss +0 -44
- package/src/components/Button/index.ts +0 -97
- package/src/components/Button/styles.module.scss +0 -152
- package/src/components/CheckboxGroup/Checkbox.ts +0 -104
- package/src/components/CheckboxGroup/index.ts +0 -190
- package/src/components/CheckboxGroup/styles.module.scss +0 -63
- package/src/components/CollapsedMenu/index.ts +0 -104
- package/src/components/CollapsedMenu/styles.module.scss +0 -46
- package/src/components/ConfigureFieldWrapper/index.ts +0 -85
- package/src/components/ConfigureFieldWrapper/styles.module.scss +0 -57
- package/src/components/EditableText/index.ts +0 -121
- package/src/components/EditableText/styles.module.scss +0 -38
- package/src/components/EditableTextArea/index.ts +0 -143
- package/src/components/EditableTextArea/styles.module.scss +0 -91
- package/src/components/ErrorMessage/index.ts +0 -16
- package/src/components/ErrorMessage/styles.module.scss +0 -19
- package/src/components/ErrorPage/index.ts +0 -42
- package/src/components/ErrorPage/styles.module.scss +0 -26
- package/src/components/Footer/index.ts +0 -41
- package/src/components/Footer/styles.module.scss +0 -40
- package/src/components/HTMLContent/index.tsx +0 -205
- package/src/components/HTMLContent/styles.module.scss +0 -3
- package/src/components/InfoBox/index.ts +0 -48
- package/src/components/InfoBox/styles.module.scss +0 -21
- package/src/components/Input/BaseInput/index.ts +0 -170
- package/src/components/Input/BaseInput/styles.module.scss +0 -95
- package/src/components/Input/DateInput/index.ts +0 -103
- package/src/components/Input/DateInput/styles.module.scss +0 -50
- package/src/components/Input/Input/index.ts +0 -225
- package/src/components/Input/Input/styles.module.scss +0 -16
- package/src/components/Input/PasswordInput/index.ts +0 -164
- package/src/components/Input/PasswordInput/styles.module.scss +0 -37
- package/src/components/Input/index.ts +0 -7
- package/src/components/Label/index.ts +0 -61
- package/src/components/Label/styles.module.scss +0 -41
- package/src/components/LargeLoader/index.ts +0 -25
- package/src/components/LargeLoader/styles.module.scss +0 -16
- package/src/components/Listbox/ListBoxItem.ts +0 -57
- package/src/components/Listbox/index.ts +0 -488
- package/src/components/Listbox/styles.module.scss +0 -197
- package/src/components/Loader/index.ts +0 -25
- package/src/components/Loader/styles.module.scss +0 -16
- package/src/components/MediaGallery/MediaGalleryModal.ts +0 -82
- package/src/components/MediaGallery/MediaSlider.ts +0 -76
- package/src/components/MediaGallery/index.ts +0 -92
- package/src/components/MediaGallery/styles.module.scss +0 -156
- package/src/components/MediaUpload/index.ts +0 -233
- package/src/components/MediaUpload/styles.module.scss +0 -118
- package/src/components/Modal/index.ts +0 -87
- package/src/components/Modal/styles.module.scss +0 -441
- package/src/components/MultipurposeField/Dropdown/ListBoxItem.tsx +0 -59
- package/src/components/MultipurposeField/Dropdown/index.tsx +0 -1202
- package/src/components/MultipurposeField/Dropdown/styles.module.scss +0 -215
- package/src/components/MultipurposeField/TagMenu/index.ts +0 -536
- package/src/components/MultipurposeField/TagMenu/styles.module.scss +0 -175
- package/src/components/MultipurposeField/TagOptions/index.tsx +0 -83
- package/src/components/MultipurposeField/TagOptions/styles.module.scss +0 -95
- package/src/components/MultipurposeField/index.tsx +0 -944
- package/src/components/MultipurposeField/styles.module.scss +0 -77
- package/src/components/NewModal/index.ts +0 -69
- package/src/components/NewModal/styles.module.scss +0 -70
- package/src/components/OverflowTooltip/index.tsx +0 -59
- package/src/components/PopUp/ConfirmationPopUp/index.ts +0 -58
- package/src/components/PopUp/ConfirmationPopUp/styles.module.scss +0 -49
- package/src/components/PopUp/SuccessPopUp/index.ts +0 -62
- package/src/components/PopUp/SuccessPopUp/styles.module.scss +0 -38
- package/src/components/RadioGroup/Radio.ts +0 -128
- package/src/components/RadioGroup/index.ts +0 -169
- package/src/components/RadioGroup/styles.module.scss +0 -81
- package/src/components/Search/index.ts +0 -69
- package/src/components/Search/styles.module.scss +0 -149
- package/src/components/TabBar/Tab.ts +0 -33
- package/src/components/TabBar/index.ts +0 -64
- package/src/components/TabBar/styles.module.scss +0 -43
- package/src/components/Tag/index.ts +0 -29
- package/src/components/Tag/styles.module.scss +0 -57
- package/src/components/TagsMenu/index.ts +0 -1697
- package/src/components/TagsMenu/styles.module.scss +0 -350
- package/src/components/TestComponent/index.ts +0 -71
- package/src/components/TestComponent/styles.module.scss +0 -152
- package/src/components/TextArea/index.ts +0 -172
- package/src/components/TextArea/styles.module.scss +0 -72
- package/src/components/TextContent/index.tsx +0 -128
- package/src/components/TextContent/styles.module.scss +0 -6
- package/src/components/ThreeDotLoader/index.ts +0 -39
- package/src/components/ThreeDotLoader/styles.module.scss +0 -41
- package/src/components/TimeInput/index.ts +0 -129
- package/src/components/TimeInput/styles.module.scss +0 -16
- package/src/components/Toggle/index.ts +0 -34
- package/src/components/Toggle/styles.module.scss +0 -56
- package/src/components/Toggle-v2/index.ts +0 -40
- package/src/components/Toggle-v2/styles.module.scss +0 -86
- package/src/components/Tooltip/index.ts +0 -271
- package/src/components/Tooltip/styles.module.scss +0 -105
- package/src/components/form/FunctionField/index.ts +0 -816
- package/src/components/form/FunctionField/styles.module.scss +0 -478
- package/src/components/form/ObjectField/__snapshots__/index.ts.test.tsx.snap +0 -3
- package/src/components/form/ObjectField/index.ts +0 -593
- package/src/components/form/ObjectField/index.ts.test.tsx +0 -213
- package/src/components/form/ObjectField/styles.module.scss +0 -103
- package/src/components/form/index.ts +0 -4
- package/src/contexts/AppContext.ts +0 -12
- package/src/declaration.d.ts +0 -7
- package/src/extensions/HMAC.ts +0 -25
- package/src/extensions/IntegryAPIError.ts +0 -19
- package/src/features/common/AccountDropdown/index.ts +0 -291
- package/src/features/common/AccountDropdown/styles.module.scss +0 -19
- package/src/features/common/ActionForm/index.ts +0 -2602
- package/src/features/common/ActionForm/styles.module.scss +0 -35
- package/src/features/common/AppCard/index.ts +0 -207
- package/src/features/common/AppCard/styles.module.scss +0 -117
- package/src/features/common/AppCardCompact/index.ts +0 -189
- package/src/features/common/AppCardCompact/styles.module.scss +0 -141
- package/src/features/common/AuthSelector/index.ts +0 -537
- package/src/features/common/AuthSelector/styles.module.scss +0 -161
- package/src/features/common/AuthSelectorCompact/index.ts +0 -706
- package/src/features/common/AuthSelectorCompact/styles.module.scss +0 -219
- package/src/features/common/AuthSelectorDropdown/index.ts +0 -704
- package/src/features/common/AuthSelectorDropdown/styles.module.scss +0 -361
- package/src/features/common/AuthSelectorV2/index.ts +0 -336
- package/src/features/common/AuthSelectorV2/styles.module.scss +0 -235
- package/src/features/common/DynamicField/index.ts +0 -402
- package/src/features/common/DynamicField/styles.module.scss +0 -266
- package/src/features/common/DynamicTypedField/index.ts +0 -504
- package/src/features/common/DynamicTypedField/styles.module.scss +0 -135
- package/src/features/common/FunctionForm/index.ts +0 -1095
- package/src/features/common/FunctionForm/styles.module.scss +0 -225
- package/src/features/common/MappingUI/index.ts +0 -649
- package/src/features/common/MappingUI/styles.module.scss +0 -121
- package/src/features/common/MarketplaceAppCard/index.ts +0 -279
- package/src/features/common/MarketplaceAppCard/styles.module.scss +0 -231
- package/src/features/common/MarketplaceAppCardCompact/index.ts +0 -283
- package/src/features/common/MarketplaceAppCardCompact/styles.module.scss +0 -255
- package/src/features/common/NewMappingUI/index.ts +0 -515
- package/src/features/common/NewMappingUI/styles.module.scss +0 -113
- package/src/features/common/RequestAppWidget/RequestAppModal/index.ts +0 -67
- package/src/features/common/RequestAppWidget/RequestAppModal/styles.module.scss +0 -23
- package/src/features/common/RequestAppWidget/index.ts +0 -48
- package/src/features/common/RequestAppWidget/request-app-form.ts +0 -89
- package/src/features/common/RequestAppWidget/styles.module.scss +0 -43
- package/src/features/common/SectionField/index.ts +0 -272
- package/src/features/common/SectionField/styles.module.scss +0 -67
- package/src/features/common/Step/index.ts +0 -827
- package/src/features/common/Step/styles.module.scss +0 -12
- package/src/features/common/StepNavigation/CollapsedSteps.ts +0 -131
- package/src/features/common/StepNavigation/NavItem.ts +0 -111
- package/src/features/common/StepNavigation/index.ts +0 -261
- package/src/features/common/StepNavigation/styles.module.scss +0 -117
- package/src/features/common/Steps/index.ts +0 -1140
- package/src/features/common/Steps/styles.module.scss +0 -314
- package/src/features/containers/AppFlowContainer/AppFlowListing/compactStyles.module.scss +0 -404
- package/src/features/containers/AppFlowContainer/AppFlowListing/flow-instance.tsx +0 -367
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowCard.test.tsx +0 -58
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowCard.tsx +0 -208
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowCardCompact.test.tsx +0 -49
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowCardCompact.tsx +0 -421
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowInstanceCompact.tsx +0 -577
- package/src/features/containers/AppFlowContainer/AppFlowListing/index.tsx +0 -83
- package/src/features/containers/AppFlowContainer/AppFlowListing/styles.module.scss +0 -233
- package/src/features/containers/AppFlowContainer/AppFlowWrap/app-page-loader.tsx +0 -45
- package/src/features/containers/AppFlowContainer/AppFlowWrap/index.tsx +0 -1085
- package/src/features/containers/AppFlowContainer/AppFlowWrap/styles.module.scss +0 -465
- package/src/features/containers/AppFlowContainer/Authentication/index.ts +0 -610
- package/src/features/containers/AppFlowContainer/Authentication/styles.module.scss +0 -468
- package/src/features/containers/AppFlowContainer/index.ts +0 -114
- package/src/features/containers/AppPageContainer/AppPage/index.tsx +0 -262
- package/src/features/containers/AppPageContainer/AppPage/styles.module.scss +0 -120
- package/src/features/containers/AppPageContainer/IntegrationCard/index.ts +0 -165
- package/src/features/containers/AppPageContainer/IntegrationCard/styles.module.scss +0 -81
- package/src/features/containers/AppPageContainer/index.tsx +0 -93
- package/src/features/containers/AppPageContainer/styles.module.scss +0 -0
- package/src/features/containers/AppsForFlows/index.ts +0 -161
- package/src/features/containers/AppsForFlows/styles.module.scss +0 -280
- package/src/features/containers/AppsForFlowsCompact/index.ts +0 -161
- package/src/features/containers/AppsForFlowsCompact/styles.module.scss +0 -279
- package/src/features/containers/AuthSetupContainer/AppSelection.ts +0 -73
- package/src/features/containers/AuthSetupContainer/AuthTypeSelection.ts +0 -67
- package/src/features/containers/AuthSetupContainer/Footer.ts +0 -32
- package/src/features/containers/AuthSetupContainer/Header.ts +0 -39
- package/src/features/containers/AuthSetupContainer/PostAdditionPopup.ts +0 -27
- package/src/features/containers/AuthSetupContainer/index.ts +0 -349
- package/src/features/containers/AuthSetupContainer/styles.module.scss +0 -229
- package/src/features/containers/FlowSetupContainer/index.ts +0 -391
- package/src/features/containers/FlowSetupContainer/styles.module.scss +0 -18
- package/src/features/containers/MarkeplaceApps/index.ts +0 -583
- package/src/features/containers/MarkeplaceApps/styles.module.scss +0 -558
- package/src/features/containers/MarketplaceAppsCompact/index.ts +0 -585
- package/src/features/containers/MarketplaceAppsCompact/styles.module.scss +0 -563
- package/src/features/containers/MarketplaceAppsContainer/index.ts +0 -91
- package/src/features/containers/MarketplaceContainer/AppCard/index.ts +0 -91
- package/src/features/containers/MarketplaceContainer/AppCard/styles.module.scss +0 -66
- package/src/features/containers/MarketplaceContainer/AppListing/index.ts +0 -34
- package/src/features/containers/MarketplaceContainer/AppListing/styles.module.scss +0 -10
- package/src/features/containers/MarketplaceContainer/MarketplaceContentWrap/index.ts +0 -132
- package/src/features/containers/MarketplaceContainer/MarketplaceContentWrap/styles.module.scss +0 -117
- package/src/features/containers/MarketplaceContainer/index.ts +0 -242
- package/src/features/containers/MarketplaceContainer/styles.module.scss +0 -84
- package/src/features/containers/SDKContainer/index.ts +0 -817
- package/src/features/containers/SDKContainer/styles.module.scss +0 -266
- package/src/features/containers/SDKDebugContainer/index.ts +0 -137
- package/src/features/containers/SDKDebugContainer/styles.module.scss +0 -37
- package/src/features/containers/SDKFailedContainer/index.ts +0 -117
- package/src/features/containers/SDKFailedContainer/styles.module.scss +0 -57
- package/src/features/integrations/IntegrationRow/Icons.ts +0 -77
- package/src/features/integrations/IntegrationRow/index.ts +0 -129
- package/src/features/integrations/IntegrationRow/styles.module.scss +0 -62
- package/src/features/integrations/IntegrationsHeader/index.ts +0 -34
- package/src/features/integrations/IntegrationsHeader/styles.module.scss +0 -47
- package/src/features/integrations/IntegrationsList/index.ts +0 -252
- package/src/features/integrations/IntegrationsList/styles.module.scss +0 -67
- package/src/features/templates/Template/index.ts +0 -295
- package/src/features/templates/Template/styles.module.scss +0 -226
- package/src/features/templates/TemplatesView/index.ts +0 -368
- package/src/features/templates/TemplatesView/styles.module.scss +0 -71
- package/src/features/templates/TemplatesViewCompact/index.ts +0 -364
- package/src/features/templates/TemplatesViewCompact/styles.module.scss +0 -141
- package/src/hooks/useAutosizeTextArea.ts +0 -22
- package/src/hooks/useCustomRef.ts +0 -13
- package/src/hooks/useDebounce.ts +0 -17
- package/src/hooks/useElementResize.ts +0 -40
- package/src/hooks/useEventListener.ts +0 -42
- package/src/hooks/useHover.ts +0 -40
- package/src/hooks/useOnClickOutside.ts +0 -32
- package/src/index.ts +0 -2244
- package/src/index.umd.ts +0 -13
- package/src/interfaces/index.ts +0 -938
- package/src/modules/api/index.ts +0 -1325
- package/src/modules/api/responseHandler.ts +0 -38
- package/src/modules/event-emitter/index.ts +0 -72
- package/src/modules/event-emitter/runners/abstract.ts +0 -21
- package/src/modules/event-emitter/runners/default.ts +0 -11
- package/src/modules/event-emitter/runners/ntimes.ts +0 -28
- package/src/modules/event-emitter/types.ts +0 -34
- package/src/store/actionFunctions.ts +0 -1578
- package/src/store/index.ts +0 -17
- package/src/store/initialState.ts +0 -58
- package/src/types/index.ts +0 -320
- package/src/types/preact-compat.d.ts +0 -4
- package/src/types/store.ts +0 -366
- package/src/types/utils.ts +0 -19
- package/src/utils/ActivityOutputUtils.ts +0 -176
- package/src/utils/common.ts +0 -20
- package/src/utils/copyToClipboard.ts +0 -24
- package/src/utils/datetime.ts +0 -101
- package/src/utils/getUrlParam.ts +0 -11
- package/src/utils/isAuthMessage.ts +0 -16
- package/src/utils/isBrowser.ts +0 -1
- package/src/utils/jsonEncodeDecode.ts +0 -15
- package/src/utils/objectUtils.ts +0 -117
- package/src/utils/popup.ts +0 -30
- package/src/utils/searchJson.ts +0 -51
- package/src/utils/stepUtils.ts +0 -45
- package/src/utils/truncate.ts +0 -6
- package/test/setup.ts +0 -1
- package/vitest.config.ts +0 -16
package/src/interfaces/index.ts
DELETED
|
@@ -1,938 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line import/no-cycle
|
|
2
|
-
import { FlowCardProps } from '@/features/templates/Template';
|
|
3
|
-
import {
|
|
4
|
-
Authorization,
|
|
5
|
-
AuthorizationTypes,
|
|
6
|
-
TemplateFormRenderModes,
|
|
7
|
-
MarketplaceRenderModes,
|
|
8
|
-
} from '@/types';
|
|
9
|
-
import { VNode } from 'preact';
|
|
10
|
-
import {
|
|
11
|
-
array,
|
|
12
|
-
boolean,
|
|
13
|
-
date,
|
|
14
|
-
Describe,
|
|
15
|
-
nullable,
|
|
16
|
-
number,
|
|
17
|
-
object,
|
|
18
|
-
optional,
|
|
19
|
-
size,
|
|
20
|
-
string,
|
|
21
|
-
} from 'superstruct';
|
|
22
|
-
|
|
23
|
-
export interface NestedObject {
|
|
24
|
-
[key: string]: string | number | NestedObject;
|
|
25
|
-
}
|
|
26
|
-
export interface UserConfig {
|
|
27
|
-
availableFlowsLabel?: string;
|
|
28
|
-
myFlowsLabel?: string;
|
|
29
|
-
hideWebhookUrlScreen?: boolean;
|
|
30
|
-
hideAppConnectionModal?: boolean;
|
|
31
|
-
customComponents?: {
|
|
32
|
-
flowCard?: (props: FlowCardProps) => VNode;
|
|
33
|
-
};
|
|
34
|
-
autoRedirectToMyFlows?: boolean;
|
|
35
|
-
isReadOnly?: boolean;
|
|
36
|
-
marketplaceModalTitle?: string;
|
|
37
|
-
buttonLabelToSaveIntegration?: string;
|
|
38
|
-
objects?: NestedObject;
|
|
39
|
-
tags?: string[];
|
|
40
|
-
hideExistingIntegrations?: boolean;
|
|
41
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
42
|
-
[other: string]: any;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export type SDKOptions = UserConfig; // rename user config to options for better understanding
|
|
46
|
-
export interface SDKConfig {
|
|
47
|
-
baseUrl?: string;
|
|
48
|
-
debug?: boolean;
|
|
49
|
-
integrationId?: number;
|
|
50
|
-
xIntegryConfig?: {
|
|
51
|
-
isAnonymous?: boolean;
|
|
52
|
-
appAuth?: {
|
|
53
|
-
apiKey?: string;
|
|
54
|
-
authId?: string;
|
|
55
|
-
extras?: Record<string, string | number>;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
userConfig?: UserConfig;
|
|
59
|
-
options?: SDKOptions;
|
|
60
|
-
payloads?: NestedObject;
|
|
61
|
-
user?: NestedObject;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface ConfigWithObject extends SDKConfig {
|
|
65
|
-
appKey: string;
|
|
66
|
-
hash: string;
|
|
67
|
-
userId: string;
|
|
68
|
-
deploymentId?: string;
|
|
69
|
-
marketplaceId?: string;
|
|
70
|
-
appId?: number;
|
|
71
|
-
showApps?: boolean;
|
|
72
|
-
showTemplates?: boolean;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export interface ConfigWithUrlParams extends SDKConfig {
|
|
76
|
-
useUrlParams?: boolean;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export interface APIConfig {
|
|
80
|
-
baseUrl: string;
|
|
81
|
-
baseUrlv2: string;
|
|
82
|
-
endpointsUrl: string;
|
|
83
|
-
appKey: string;
|
|
84
|
-
hash: string;
|
|
85
|
-
userId: string;
|
|
86
|
-
oauthVerifyPath: string;
|
|
87
|
-
apiKey?: string;
|
|
88
|
-
authId?: string;
|
|
89
|
-
extras?: Record<string, string | number>;
|
|
90
|
-
defaultIntegrationStatus?: boolean;
|
|
91
|
-
baseAPIUrl: string;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export interface Template {
|
|
95
|
-
id: number;
|
|
96
|
-
name: string;
|
|
97
|
-
description: string;
|
|
98
|
-
can_add_integration: boolean;
|
|
99
|
-
integration_count: number;
|
|
100
|
-
app: {
|
|
101
|
-
icon_url: string;
|
|
102
|
-
category: string[];
|
|
103
|
-
tags: string;
|
|
104
|
-
};
|
|
105
|
-
branding_app: {
|
|
106
|
-
id: string;
|
|
107
|
-
name: string;
|
|
108
|
-
icon_url: string;
|
|
109
|
-
category: string[];
|
|
110
|
-
tags: string;
|
|
111
|
-
};
|
|
112
|
-
is_manual?: boolean;
|
|
113
|
-
version_number?: number | null;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export interface Integration {
|
|
117
|
-
name: string;
|
|
118
|
-
branding_app: {
|
|
119
|
-
id: string;
|
|
120
|
-
name: string;
|
|
121
|
-
icon_url: string;
|
|
122
|
-
category: string[];
|
|
123
|
-
tags: string;
|
|
124
|
-
};
|
|
125
|
-
id: number;
|
|
126
|
-
runs_count: number;
|
|
127
|
-
bundle_instance: number;
|
|
128
|
-
created: Date;
|
|
129
|
-
delete_link: string;
|
|
130
|
-
disable_link: string;
|
|
131
|
-
edit_link: string;
|
|
132
|
-
enable_link: string;
|
|
133
|
-
icon_url: string;
|
|
134
|
-
is_visible: number;
|
|
135
|
-
last_modified: Date;
|
|
136
|
-
status: string;
|
|
137
|
-
template: number;
|
|
138
|
-
template_detail: {
|
|
139
|
-
id: number;
|
|
140
|
-
name: string;
|
|
141
|
-
description: string;
|
|
142
|
-
};
|
|
143
|
-
task_execution: {
|
|
144
|
-
integration_created_at: Date;
|
|
145
|
-
last_execution_at: {
|
|
146
|
-
date: Date;
|
|
147
|
-
timezone: string;
|
|
148
|
-
timezone_type: number;
|
|
149
|
-
} | null;
|
|
150
|
-
status: string | null;
|
|
151
|
-
};
|
|
152
|
-
loading: boolean;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export interface IntegrationSaveResponse {
|
|
156
|
-
id: number;
|
|
157
|
-
connected_account_id: number;
|
|
158
|
-
is_visible: number | boolean;
|
|
159
|
-
name: string;
|
|
160
|
-
bundle_name: string;
|
|
161
|
-
bundle_instance_id: number;
|
|
162
|
-
status: string;
|
|
163
|
-
template: number;
|
|
164
|
-
steps: {
|
|
165
|
-
id: number;
|
|
166
|
-
template_step: number;
|
|
167
|
-
returned_data: string | null;
|
|
168
|
-
activity_id: number;
|
|
169
|
-
step_name: string;
|
|
170
|
-
}[];
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export interface AppsForAuthConnection {
|
|
174
|
-
id: number;
|
|
175
|
-
name: string;
|
|
176
|
-
description: string;
|
|
177
|
-
icon_url: string;
|
|
178
|
-
color: string;
|
|
179
|
-
status: 0 | 1;
|
|
180
|
-
system_app: boolean;
|
|
181
|
-
publishing_status: string;
|
|
182
|
-
is_workspace: boolean;
|
|
183
|
-
account_id: number;
|
|
184
|
-
authorization_type: {
|
|
185
|
-
id: number;
|
|
186
|
-
type: AuthorizationTypes;
|
|
187
|
-
provider: string;
|
|
188
|
-
app_id: number;
|
|
189
|
-
}[];
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export interface AppsForAuthConnectionResponse {
|
|
193
|
-
has_next: boolean;
|
|
194
|
-
next_page_number: number;
|
|
195
|
-
apps: AppsForAuthConnection[];
|
|
196
|
-
}
|
|
197
|
-
export interface BundleResponse {
|
|
198
|
-
meta: {
|
|
199
|
-
status: number;
|
|
200
|
-
};
|
|
201
|
-
templates: Template[];
|
|
202
|
-
integrations: Integration[];
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
type SaveIntegrationRequestStep = {
|
|
206
|
-
id: number;
|
|
207
|
-
authorization: number;
|
|
208
|
-
template_step: number;
|
|
209
|
-
app_user_data: {
|
|
210
|
-
id: number;
|
|
211
|
-
value: string;
|
|
212
|
-
template_field: number;
|
|
213
|
-
}[];
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
export interface SaveOrUpdateIntegrationBody {
|
|
217
|
-
isAnonymous: boolean;
|
|
218
|
-
id?: number;
|
|
219
|
-
name: string;
|
|
220
|
-
notification_email: string;
|
|
221
|
-
template: number;
|
|
222
|
-
bundle_id: number;
|
|
223
|
-
bundle_instance_id?: number;
|
|
224
|
-
steps: SaveIntegrationRequestStep[];
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export interface GetAppsForAuthConnectionBody {
|
|
228
|
-
deploymentId?: number;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
export type App = {
|
|
232
|
-
id: number;
|
|
233
|
-
name: string;
|
|
234
|
-
description: string;
|
|
235
|
-
icon_url: string;
|
|
236
|
-
color: string;
|
|
237
|
-
publishing_status: string;
|
|
238
|
-
category: string[];
|
|
239
|
-
app_type?: string;
|
|
240
|
-
action_url?: string | null;
|
|
241
|
-
created_at?: Date;
|
|
242
|
-
tags: string;
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
type Activity = {
|
|
246
|
-
id: number;
|
|
247
|
-
name: string;
|
|
248
|
-
type: string;
|
|
249
|
-
endpoint: string;
|
|
250
|
-
auth_required: boolean;
|
|
251
|
-
total_fields: number;
|
|
252
|
-
app: App;
|
|
253
|
-
activity_output: string | null;
|
|
254
|
-
activity_output_url: string | null;
|
|
255
|
-
dynamic_field_data_endpoint: string | null;
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
export type AuthorizationType = {
|
|
259
|
-
id: number;
|
|
260
|
-
type: string;
|
|
261
|
-
authorizations: Authorization[];
|
|
262
|
-
provider: string;
|
|
263
|
-
is_sandbox_enabled: boolean;
|
|
264
|
-
is_userinfo_required?: boolean;
|
|
265
|
-
authorization_url_sandbox: string;
|
|
266
|
-
app: {
|
|
267
|
-
icon_url: string;
|
|
268
|
-
id: number;
|
|
269
|
-
name: string;
|
|
270
|
-
};
|
|
271
|
-
};
|
|
272
|
-
|
|
273
|
-
export type IntegryStep = {
|
|
274
|
-
id: number;
|
|
275
|
-
weight: number;
|
|
276
|
-
title: string;
|
|
277
|
-
is_visible: boolean;
|
|
278
|
-
activity: Activity;
|
|
279
|
-
hide_authorization: boolean;
|
|
280
|
-
source_steps: any;
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
export interface TemplateResponse {
|
|
284
|
-
id: number;
|
|
285
|
-
name: string;
|
|
286
|
-
description: string;
|
|
287
|
-
app: App;
|
|
288
|
-
branding_app: App;
|
|
289
|
-
button_text: string | null;
|
|
290
|
-
is_wizard: boolean;
|
|
291
|
-
steps: IntegryStep[];
|
|
292
|
-
publishing_status: string;
|
|
293
|
-
level?: number;
|
|
294
|
-
parent_id?: number;
|
|
295
|
-
execution_type?: 'ON_DEMAND' | 'AUTOMATIC';
|
|
296
|
-
execution_behaviour?: 'SAVE_ONLY' | 'SAVE_AND_EXECUTE';
|
|
297
|
-
parameters?: Record<string, any>;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
export interface UiFieldDataSource {
|
|
301
|
-
body: Record<string, unknown>;
|
|
302
|
-
headers: Record<string, string>;
|
|
303
|
-
method: string;
|
|
304
|
-
url: string;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
export interface UiField {
|
|
308
|
-
is_multiselect: boolean;
|
|
309
|
-
option_key_path: string;
|
|
310
|
-
type: string;
|
|
311
|
-
value_key_path: string;
|
|
312
|
-
data_source: UiFieldDataSource;
|
|
313
|
-
type_key_path?: string;
|
|
314
|
-
title_key_path?: string;
|
|
315
|
-
id_key_path?: string;
|
|
316
|
-
is_required_key_path?: string;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
export interface TemplateField {
|
|
320
|
-
id: number;
|
|
321
|
-
is_required: boolean;
|
|
322
|
-
is_hidden: boolean;
|
|
323
|
-
default_value: string | null;
|
|
324
|
-
weight: number;
|
|
325
|
-
description: string;
|
|
326
|
-
summary: string | null;
|
|
327
|
-
activity_field: {
|
|
328
|
-
is_editable?: boolean;
|
|
329
|
-
id: number;
|
|
330
|
-
machine_name: string;
|
|
331
|
-
type: string;
|
|
332
|
-
title: string;
|
|
333
|
-
description: string;
|
|
334
|
-
weight: number;
|
|
335
|
-
is_required: boolean;
|
|
336
|
-
child_fields: string | null;
|
|
337
|
-
placeholder: string | null;
|
|
338
|
-
is_dynamic: boolean;
|
|
339
|
-
data_src: string | null;
|
|
340
|
-
data_src_endpoint: number | null;
|
|
341
|
-
parent_fields: string | null;
|
|
342
|
-
dynamic_field_src: string | null;
|
|
343
|
-
default_value: string | null;
|
|
344
|
-
auto_machine_name: string;
|
|
345
|
-
dynamic_field_src_endpoint: number | null;
|
|
346
|
-
regex: string | null;
|
|
347
|
-
regex_error_message?: string | null;
|
|
348
|
-
is_searchable: boolean;
|
|
349
|
-
conditional_fields?: string | null;
|
|
350
|
-
} | null;
|
|
351
|
-
title: string | null;
|
|
352
|
-
type: string;
|
|
353
|
-
placeholder: string | null;
|
|
354
|
-
// manual_template: unknown | null;
|
|
355
|
-
child_field: string | null;
|
|
356
|
-
child_field_value: string | null;
|
|
357
|
-
// template_fields: unknown[];
|
|
358
|
-
button_text: string | null;
|
|
359
|
-
// field_actions: unknown[];
|
|
360
|
-
icon_url: string | null;
|
|
361
|
-
long_description: string | null;
|
|
362
|
-
regex: string | null;
|
|
363
|
-
regex_msg: string | null;
|
|
364
|
-
is_visible: boolean;
|
|
365
|
-
app_user_data?: {
|
|
366
|
-
app_user: number;
|
|
367
|
-
id: number;
|
|
368
|
-
value: string | number;
|
|
369
|
-
is_changed: boolean;
|
|
370
|
-
changed_dynamic_fields: string;
|
|
371
|
-
}[];
|
|
372
|
-
added_in_mapping?: boolean;
|
|
373
|
-
field_mapping_source?: string;
|
|
374
|
-
is_mappable: boolean;
|
|
375
|
-
is_editable: boolean;
|
|
376
|
-
allow_tags_in_text: boolean;
|
|
377
|
-
is_default_value_auto_mapped?: boolean;
|
|
378
|
-
source_flow_integration_invocation_url?: string;
|
|
379
|
-
is_multiselect?: boolean;
|
|
380
|
-
template_fields?: any[];
|
|
381
|
-
ui_field?: UiField;
|
|
382
|
-
is_button_enabled?: boolean;
|
|
383
|
-
on_button_click_script?: string;
|
|
384
|
-
button_script_requires_auth_token?: boolean;
|
|
385
|
-
data_type?: string;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
export interface DynamicField {
|
|
389
|
-
id: number;
|
|
390
|
-
is_required: boolean;
|
|
391
|
-
is_hidden: boolean;
|
|
392
|
-
default_value: string | null;
|
|
393
|
-
weight: number;
|
|
394
|
-
description: string;
|
|
395
|
-
summary: string | null;
|
|
396
|
-
title: string | null;
|
|
397
|
-
type: string;
|
|
398
|
-
placeholder: string | null;
|
|
399
|
-
// manual_template: unknown | null;
|
|
400
|
-
child_field: string | null;
|
|
401
|
-
child_field_value: string | null;
|
|
402
|
-
// template_fields: unknown[];
|
|
403
|
-
button_text: string | null;
|
|
404
|
-
// field_actions: unknown[];
|
|
405
|
-
icon_url: string | null;
|
|
406
|
-
long_description: string | null;
|
|
407
|
-
regex: string | null;
|
|
408
|
-
regex_msg: string | null;
|
|
409
|
-
is_visible: boolean;
|
|
410
|
-
app_user_data?: {
|
|
411
|
-
app_user: number;
|
|
412
|
-
id: number;
|
|
413
|
-
value: string | number;
|
|
414
|
-
is_changed: boolean;
|
|
415
|
-
changed_dynamic_fields: string;
|
|
416
|
-
}[];
|
|
417
|
-
added_in_mapping?: boolean;
|
|
418
|
-
field_mapping_source?: string;
|
|
419
|
-
is_mappable: boolean;
|
|
420
|
-
is_editable: boolean;
|
|
421
|
-
allow_tags_in_text: boolean;
|
|
422
|
-
is_default_value_auto_mapped?: boolean;
|
|
423
|
-
source_flow_integration_invocation_url?: string;
|
|
424
|
-
is_multiselect?: boolean;
|
|
425
|
-
template_fields?: any[];
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
export interface ConditionalFields {
|
|
429
|
-
value: string;
|
|
430
|
-
field_array: string;
|
|
431
|
-
}
|
|
432
|
-
export interface TemplateStep {
|
|
433
|
-
id: number;
|
|
434
|
-
weight: number;
|
|
435
|
-
title: string;
|
|
436
|
-
description?: string;
|
|
437
|
-
is_visible: boolean;
|
|
438
|
-
activity: Activity;
|
|
439
|
-
authorization_type: AuthorizationType;
|
|
440
|
-
template_fields: TemplateField[];
|
|
441
|
-
step_instance?: number | null;
|
|
442
|
-
allow_multiple_authorizations: boolean;
|
|
443
|
-
step_authorization: number | null;
|
|
444
|
-
button_text: string | null;
|
|
445
|
-
is_self_step: boolean;
|
|
446
|
-
summary: string | null;
|
|
447
|
-
is_workspace_app_step: boolean;
|
|
448
|
-
auth_description: string | null;
|
|
449
|
-
hide_authorization: boolean;
|
|
450
|
-
// step_condition: unknown | null;
|
|
451
|
-
machine_name: string | null;
|
|
452
|
-
is_custom_machine_name: boolean;
|
|
453
|
-
source_steps: any;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
export interface InitConfig {
|
|
457
|
-
containerId: string;
|
|
458
|
-
templateContainerId?: string;
|
|
459
|
-
renderMode: TemplateFormRenderModes;
|
|
460
|
-
renderFlowsMode?: TemplateFormRenderModes;
|
|
461
|
-
renderFlowSetupMode?: TemplateFormRenderModes;
|
|
462
|
-
renderAppsPageMode?: TemplateFormRenderModes;
|
|
463
|
-
renderAppPageMode?: TemplateFormRenderModes;
|
|
464
|
-
appId?: number;
|
|
465
|
-
showApps?: boolean;
|
|
466
|
-
showTemplates?: boolean;
|
|
467
|
-
skipOnDemand?: boolean;
|
|
468
|
-
skipAccountConnectionOnLoad?: boolean;
|
|
469
|
-
deploymentIdFromConfig?: number;
|
|
470
|
-
testMultipurpose?: boolean;
|
|
471
|
-
viewStyle?: string;
|
|
472
|
-
flowId?: number;
|
|
473
|
-
integrationId?: number;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
export interface MarketplaceConfig {
|
|
477
|
-
containerId: string;
|
|
478
|
-
renderMode: MarketplaceRenderModes;
|
|
479
|
-
apps?: any;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
export interface AppFlowConfig {
|
|
483
|
-
containerId: string;
|
|
484
|
-
renderMode: MarketplaceRenderModes;
|
|
485
|
-
appId: number;
|
|
486
|
-
}
|
|
487
|
-
export interface IntegrationResponse {
|
|
488
|
-
id: number;
|
|
489
|
-
guid: string;
|
|
490
|
-
name: string;
|
|
491
|
-
notification_email: string;
|
|
492
|
-
bundle_name: string;
|
|
493
|
-
template: number;
|
|
494
|
-
template_detail: {
|
|
495
|
-
id: number;
|
|
496
|
-
name: string;
|
|
497
|
-
description: string;
|
|
498
|
-
};
|
|
499
|
-
steps: {
|
|
500
|
-
id: number;
|
|
501
|
-
endpoint: string | null;
|
|
502
|
-
authorization: string | number | null;
|
|
503
|
-
app_user_data: {
|
|
504
|
-
id: number;
|
|
505
|
-
value: string;
|
|
506
|
-
template_field: number;
|
|
507
|
-
}[];
|
|
508
|
-
template_step: number;
|
|
509
|
-
returned_data: null | string;
|
|
510
|
-
verb?: string | null;
|
|
511
|
-
}[];
|
|
512
|
-
is_visible: number;
|
|
513
|
-
parent_integration: number | null;
|
|
514
|
-
status: string;
|
|
515
|
-
is_test_integration: boolean;
|
|
516
|
-
task_execution: {
|
|
517
|
-
last_execution_at: string | null;
|
|
518
|
-
status: string | null;
|
|
519
|
-
integration_created_at: string;
|
|
520
|
-
};
|
|
521
|
-
created: string;
|
|
522
|
-
last_modified: string;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
export interface ActivityCustomField {
|
|
526
|
-
value: string;
|
|
527
|
-
tag: string;
|
|
528
|
-
text: string;
|
|
529
|
-
sample_data: string;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
export interface TemplatePreviewData {
|
|
533
|
-
id: number;
|
|
534
|
-
name: string;
|
|
535
|
-
description: string;
|
|
536
|
-
app: App;
|
|
537
|
-
branding_app: App;
|
|
538
|
-
button_text: string | null;
|
|
539
|
-
is_wizard: boolean;
|
|
540
|
-
publishing_status: string;
|
|
541
|
-
level?: number;
|
|
542
|
-
parent_id?: number;
|
|
543
|
-
steps: TemplateStep[];
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
export const TemplatePreviewDataType: any = object({
|
|
547
|
-
id: number(),
|
|
548
|
-
name: string(),
|
|
549
|
-
description: string(),
|
|
550
|
-
app: object({
|
|
551
|
-
id: number(),
|
|
552
|
-
name: string(),
|
|
553
|
-
description: string(),
|
|
554
|
-
icon_url: string(),
|
|
555
|
-
color: string(),
|
|
556
|
-
publishing_status: string(),
|
|
557
|
-
category: array(string()),
|
|
558
|
-
app_type: optional(string()),
|
|
559
|
-
action_url: nullable(optional(string())),
|
|
560
|
-
created_at: optional(date()),
|
|
561
|
-
tags: string(),
|
|
562
|
-
}),
|
|
563
|
-
branding_app: object({
|
|
564
|
-
id: number(),
|
|
565
|
-
name: string(),
|
|
566
|
-
description: string(),
|
|
567
|
-
icon_url: string(),
|
|
568
|
-
color: string(),
|
|
569
|
-
publishing_status: string(),
|
|
570
|
-
category: array(string()),
|
|
571
|
-
app_type: optional(string()),
|
|
572
|
-
action_url: nullable(optional(string())),
|
|
573
|
-
created_at: optional(date()),
|
|
574
|
-
tags: string(),
|
|
575
|
-
}),
|
|
576
|
-
button_text: nullable(string()),
|
|
577
|
-
is_wizard: boolean(),
|
|
578
|
-
publishing_status: string(),
|
|
579
|
-
steps: size(
|
|
580
|
-
array(
|
|
581
|
-
object({
|
|
582
|
-
id: number(),
|
|
583
|
-
weight: number(),
|
|
584
|
-
title: string(),
|
|
585
|
-
is_visible: boolean(),
|
|
586
|
-
is_workspace_app_step: boolean(),
|
|
587
|
-
activity: object({
|
|
588
|
-
id: number(),
|
|
589
|
-
name: string(),
|
|
590
|
-
type: string(),
|
|
591
|
-
endpoint: string(),
|
|
592
|
-
auth_required: boolean(),
|
|
593
|
-
total_fields: number(),
|
|
594
|
-
app: object({
|
|
595
|
-
id: number(),
|
|
596
|
-
name: string(),
|
|
597
|
-
description: string(),
|
|
598
|
-
icon_url: string(),
|
|
599
|
-
color: string(),
|
|
600
|
-
publishing_status: string(),
|
|
601
|
-
category: array(string()),
|
|
602
|
-
app_type: optional(string()),
|
|
603
|
-
action_url: nullable(optional(string())),
|
|
604
|
-
created_at: optional(date()),
|
|
605
|
-
tags: string(),
|
|
606
|
-
}),
|
|
607
|
-
activity_output: nullable(string()),
|
|
608
|
-
activity_output_url: nullable(string()),
|
|
609
|
-
dynamic_field_data_endpoint: nullable(string()),
|
|
610
|
-
}),
|
|
611
|
-
authorization_type: object({
|
|
612
|
-
id: number(),
|
|
613
|
-
type: string(),
|
|
614
|
-
authorizations: array(
|
|
615
|
-
object({
|
|
616
|
-
id: number(),
|
|
617
|
-
authorization_type: string(),
|
|
618
|
-
app_user: optional(number()),
|
|
619
|
-
app_user_id: optional(number()),
|
|
620
|
-
disable_link: optional(string()),
|
|
621
|
-
integration_count: optional(number()),
|
|
622
|
-
user_identity: string(),
|
|
623
|
-
}),
|
|
624
|
-
),
|
|
625
|
-
provider: string(),
|
|
626
|
-
is_sandbox_enabled: boolean(),
|
|
627
|
-
is_userinfo_required: optional(boolean()),
|
|
628
|
-
authorization_url_sandbox: string(),
|
|
629
|
-
app: object({
|
|
630
|
-
id: number(),
|
|
631
|
-
name: string(),
|
|
632
|
-
icon_url: string(),
|
|
633
|
-
}),
|
|
634
|
-
}),
|
|
635
|
-
template_fields: array(
|
|
636
|
-
object({
|
|
637
|
-
id: number(),
|
|
638
|
-
is_required: boolean(),
|
|
639
|
-
is_hidden: boolean(),
|
|
640
|
-
default_value: nullable(string()),
|
|
641
|
-
weight: number(),
|
|
642
|
-
description: string(),
|
|
643
|
-
summary: nullable(string()),
|
|
644
|
-
placeholder: nullable(string()),
|
|
645
|
-
added_in_mapping: optional(boolean()),
|
|
646
|
-
field_mapping_source: optional(string()),
|
|
647
|
-
activity_field: nullable(
|
|
648
|
-
object({
|
|
649
|
-
id: number(),
|
|
650
|
-
machine_name: string(),
|
|
651
|
-
type: string(),
|
|
652
|
-
title: string(),
|
|
653
|
-
description: string(),
|
|
654
|
-
weight: number(),
|
|
655
|
-
placeholder: nullable(string()),
|
|
656
|
-
is_required: boolean(),
|
|
657
|
-
child_fields: nullable(string()),
|
|
658
|
-
is_dynamic: boolean(),
|
|
659
|
-
data_src: nullable(string()),
|
|
660
|
-
data_src_endpoint: nullable(number()),
|
|
661
|
-
parent_fields: nullable(string()),
|
|
662
|
-
dynamic_field_src: nullable(string()),
|
|
663
|
-
default_value: nullable(string()),
|
|
664
|
-
auto_machine_name: string(),
|
|
665
|
-
dynamic_field_src_endpoint: nullable(number()),
|
|
666
|
-
regex: nullable(string()),
|
|
667
|
-
is_searchable: boolean(),
|
|
668
|
-
conditional_fields: nullable(optional(string())),
|
|
669
|
-
}),
|
|
670
|
-
),
|
|
671
|
-
title: nullable(string()),
|
|
672
|
-
type: string(),
|
|
673
|
-
// manual_template: unknown | null;
|
|
674
|
-
child_field: nullable(string()),
|
|
675
|
-
child_field_value: nullable(string()),
|
|
676
|
-
// template_fields: unknown[];
|
|
677
|
-
button_text: nullable(string()),
|
|
678
|
-
// field_actions: unknown[];
|
|
679
|
-
icon_url: nullable(string()),
|
|
680
|
-
long_description: nullable(string()),
|
|
681
|
-
regex: nullable(string()),
|
|
682
|
-
regex_msg: nullable(string()),
|
|
683
|
-
is_visible: boolean(),
|
|
684
|
-
}),
|
|
685
|
-
),
|
|
686
|
-
// step_instance: unknown | null;
|
|
687
|
-
allow_multiple_authorizations: boolean(),
|
|
688
|
-
step_authorization: nullable(number()),
|
|
689
|
-
button_text: nullable(string()),
|
|
690
|
-
is_self_step: boolean(),
|
|
691
|
-
summary: nullable(string()),
|
|
692
|
-
auth_description: nullable(string()),
|
|
693
|
-
hide_authorization: boolean(),
|
|
694
|
-
// step_condition: unknown | null;
|
|
695
|
-
machine_name: nullable(string()),
|
|
696
|
-
step_instance: optional(nullable(number())),
|
|
697
|
-
is_custom_machine_name: boolean(),
|
|
698
|
-
}),
|
|
699
|
-
),
|
|
700
|
-
0,
|
|
701
|
-
Number.POSITIVE_INFINITY,
|
|
702
|
-
),
|
|
703
|
-
});
|
|
704
|
-
|
|
705
|
-
export interface PreviewMetadata {
|
|
706
|
-
stepId: number | null;
|
|
707
|
-
type: 'AUTH' | 'CONFIGURATION' | 'CONFIRMATION' | 'SECTION';
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
export interface PreviewPayload {
|
|
711
|
-
templateData: TemplatePreviewData;
|
|
712
|
-
metadata: PreviewMetadata;
|
|
713
|
-
previewContainerId: string;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
export enum AppConnectionStatus {
|
|
717
|
-
VERIFYING = 'VERIFYING',
|
|
718
|
-
CONNECTED = 'CONNECTED',
|
|
719
|
-
ERROR = 'ERROR',
|
|
720
|
-
NONE = '',
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
export enum IntegrationStatus {
|
|
724
|
-
PUBLISHED = 'PUBLISHED',
|
|
725
|
-
DRAFT = 'DRAFT',
|
|
726
|
-
ARCHIVED = 'ARCHIVED',
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
export enum MediaType {
|
|
730
|
-
IMAGE = 'IMAGE',
|
|
731
|
-
VIDEO = 'VIDEO',
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
export interface MarketplaceDetail {
|
|
735
|
-
accept_app_requests: boolean;
|
|
736
|
-
name: string;
|
|
737
|
-
templates?: { description: string; id: number; name: string }[];
|
|
738
|
-
}
|
|
739
|
-
export interface MarketplaceAppAuthorizationType {
|
|
740
|
-
id: number;
|
|
741
|
-
type: string;
|
|
742
|
-
default_authorization: number;
|
|
743
|
-
provider: string;
|
|
744
|
-
is_sandbox_enabled: boolean;
|
|
745
|
-
authorization_url_sandbox: string;
|
|
746
|
-
authorizations: Authorization[];
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
export interface ConnectedAccount {
|
|
750
|
-
id: string;
|
|
751
|
-
display_name: string;
|
|
752
|
-
modified_at: string;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
export interface MarketplaceApp {
|
|
756
|
-
id: number;
|
|
757
|
-
name: string;
|
|
758
|
-
title: string;
|
|
759
|
-
connected_accounts?: ConnectedAccount[];
|
|
760
|
-
description: string;
|
|
761
|
-
icon_url: string;
|
|
762
|
-
color: string;
|
|
763
|
-
publishing_status: string;
|
|
764
|
-
category: string[];
|
|
765
|
-
app_type: string;
|
|
766
|
-
authorization_type: MarketplaceAppAuthorizationType;
|
|
767
|
-
docs_url: string;
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
export interface MarketplaceAppIntegration {
|
|
771
|
-
id: number;
|
|
772
|
-
name: string;
|
|
773
|
-
description: string;
|
|
774
|
-
status: IntegrationStatus;
|
|
775
|
-
version: number;
|
|
776
|
-
meta?: {
|
|
777
|
-
created: string;
|
|
778
|
-
has_runs: boolean;
|
|
779
|
-
integration_id: number;
|
|
780
|
-
integration_name: string;
|
|
781
|
-
is_deleted: boolean;
|
|
782
|
-
last_run_end_time: string;
|
|
783
|
-
last_run_start_time: string;
|
|
784
|
-
last_run_status: string;
|
|
785
|
-
status: string;
|
|
786
|
-
};
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
export interface MediaObject {
|
|
790
|
-
id: number;
|
|
791
|
-
url: string;
|
|
792
|
-
type: MediaType;
|
|
793
|
-
index?: number;
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
export interface UploadFileObj {
|
|
797
|
-
id?: number;
|
|
798
|
-
url: string;
|
|
799
|
-
type: MediaType;
|
|
800
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
801
|
-
file?: any;
|
|
802
|
-
uploading?: boolean;
|
|
803
|
-
index?: number;
|
|
804
|
-
}
|
|
805
|
-
export interface MarketplaceAppBundle {
|
|
806
|
-
id: number;
|
|
807
|
-
created: Date;
|
|
808
|
-
modified: Date;
|
|
809
|
-
app: MarketplaceApp;
|
|
810
|
-
integrations?: MarketplaceAppIntegration[];
|
|
811
|
-
connectionStatus?: AppConnectionStatus;
|
|
812
|
-
long_description?: string;
|
|
813
|
-
media?: MediaObject[];
|
|
814
|
-
}
|
|
815
|
-
export interface AppRequestFormData {
|
|
816
|
-
app: string;
|
|
817
|
-
description: string;
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
export interface FileUploadFormData {
|
|
821
|
-
file: File;
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
// interface for app flows
|
|
825
|
-
export interface Instance {
|
|
826
|
-
status: string;
|
|
827
|
-
last_run_status: string;
|
|
828
|
-
id: number;
|
|
829
|
-
last_run_start_time: string;
|
|
830
|
-
name: string;
|
|
831
|
-
error_app_name: string;
|
|
832
|
-
error_code: number;
|
|
833
|
-
first_error_received_at: string;
|
|
834
|
-
usage_limit_reached_at: string;
|
|
835
|
-
is_test_integration: boolean;
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
export interface BrandingAppAuthorizationType {
|
|
839
|
-
id: number;
|
|
840
|
-
type: string;
|
|
841
|
-
authorizations: { id: number; user_identity: string }[];
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
export interface BrandingApp {
|
|
845
|
-
id: number;
|
|
846
|
-
name: string;
|
|
847
|
-
icon_url: string;
|
|
848
|
-
authorization_type: BrandingAppAuthorizationType;
|
|
849
|
-
default_bundle_id: number;
|
|
850
|
-
}
|
|
851
|
-
export interface Flow {
|
|
852
|
-
id: number;
|
|
853
|
-
name: string;
|
|
854
|
-
description: null;
|
|
855
|
-
execution_type: 'ON_DEMAND' | 'AUTOMATIC';
|
|
856
|
-
allow_multiple_instances: boolean;
|
|
857
|
-
instances: Instance[];
|
|
858
|
-
execution_behaviour: 'SAVE_ONLY' | 'SAVE_AND_EXECUTE';
|
|
859
|
-
button_text: string;
|
|
860
|
-
branding_app?: BrandingApp;
|
|
861
|
-
version_number?: number | null;
|
|
862
|
-
integration_creation_in_progress?: boolean;
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
export interface AppFlowsResponse {
|
|
866
|
-
count: number;
|
|
867
|
-
total_pages: number;
|
|
868
|
-
results: Flow[];
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
// Flow execution response:
|
|
872
|
-
export interface ExecuteFlowResponse {
|
|
873
|
-
status: string;
|
|
874
|
-
response: {
|
|
875
|
-
status_code: string;
|
|
876
|
-
status_code_description: string;
|
|
877
|
-
body: string;
|
|
878
|
-
headers: string;
|
|
879
|
-
};
|
|
880
|
-
request: {
|
|
881
|
-
method: string;
|
|
882
|
-
url: string;
|
|
883
|
-
body: string;
|
|
884
|
-
headers: string;
|
|
885
|
-
};
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
export interface IncomingWebhookObject {
|
|
889
|
-
payload: string;
|
|
890
|
-
name: string;
|
|
891
|
-
id: number;
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
export interface IncomingWebhookPayload {
|
|
895
|
-
[fieldId: string]: string | Record<string, string>;
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
export interface MultipurposeFieldType {
|
|
899
|
-
activityOutputData: NestedObject;
|
|
900
|
-
activityOutputDataRaw?: NestedObject;
|
|
901
|
-
title: string;
|
|
902
|
-
description: string;
|
|
903
|
-
placeholder: string;
|
|
904
|
-
value?: string;
|
|
905
|
-
regex?: string | null;
|
|
906
|
-
regexErrorMessage?: string | null;
|
|
907
|
-
isRequired?: boolean;
|
|
908
|
-
showStepValidation?: boolean;
|
|
909
|
-
onChange?: (val: string, passesRegexTest?: boolean) => void;
|
|
910
|
-
isReadOnly?: boolean;
|
|
911
|
-
isChanged?: boolean;
|
|
912
|
-
className?: string;
|
|
913
|
-
containerClass: string;
|
|
914
|
-
type: string;
|
|
915
|
-
key: string;
|
|
916
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
917
|
-
apiHandler?: any;
|
|
918
|
-
isSearchable: boolean;
|
|
919
|
-
endpointUrl: string;
|
|
920
|
-
isDynamic: boolean;
|
|
921
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
922
|
-
endpointData?: any;
|
|
923
|
-
skipOptionFetch: boolean;
|
|
924
|
-
isMappable?: boolean;
|
|
925
|
-
accountConnected?: boolean;
|
|
926
|
-
isEditable?: boolean;
|
|
927
|
-
allowTagsInText?: boolean;
|
|
928
|
-
hideTabs?: boolean;
|
|
929
|
-
fieldId?: string;
|
|
930
|
-
enableTagify?: boolean;
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
export interface FunctionFieldType {
|
|
934
|
-
onChange?: (val: any) => void;
|
|
935
|
-
isReadOnly?: boolean;
|
|
936
|
-
field: TemplateField;
|
|
937
|
-
tagsTree?: any;
|
|
938
|
-
}
|