@integry/sdk 4.0.0-beta.9 → 4.0.1-beta.2
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/LICENSE +1 -1
- package/dist/esm/index.csm.d.ts +37 -7
- package/dist/esm/index.csm.js +2 -2
- package/dist/umd/index.umd.d.ts +36 -0
- package/dist/umd/index.umd.js +2 -2
- package/package.json +5 -4
package/LICENSE
CHANGED
package/dist/esm/index.csm.d.ts
CHANGED
|
@@ -322,13 +322,7 @@ interface TemplateField {
|
|
|
322
322
|
app_user_data?: {
|
|
323
323
|
app_user: number;
|
|
324
324
|
id: number;
|
|
325
|
-
value: string
|
|
326
|
-
* Render the template form we ship
|
|
327
|
-
* @param data
|
|
328
|
-
*/ | /**
|
|
329
|
-
* Render the template form we ship
|
|
330
|
-
* @param data
|
|
331
|
-
*/ number;
|
|
325
|
+
value: string | number;
|
|
332
326
|
is_changed: boolean;
|
|
333
327
|
changed_dynamic_fields: string;
|
|
334
328
|
}[];
|
|
@@ -343,6 +337,7 @@ interface TemplateStep {
|
|
|
343
337
|
id: number;
|
|
344
338
|
weight: number;
|
|
345
339
|
title: string;
|
|
340
|
+
description?: string;
|
|
346
341
|
is_visible: boolean;
|
|
347
342
|
activity: Activity;
|
|
348
343
|
authorization_type: AuthorizationType;
|
|
@@ -415,6 +410,37 @@ interface Instance {
|
|
|
415
410
|
first_error_received_at: string;
|
|
416
411
|
usage_limit_reached_at: string;
|
|
417
412
|
}
|
|
413
|
+
interface MultipurposeFieldType {
|
|
414
|
+
activityOutputData: NestedObject;
|
|
415
|
+
activityOutputDataRaw?: NestedObject;
|
|
416
|
+
title: string;
|
|
417
|
+
description: string;
|
|
418
|
+
placeholder: string;
|
|
419
|
+
value?: string;
|
|
420
|
+
regex?: string | null;
|
|
421
|
+
regexErrorMessage?: string | null;
|
|
422
|
+
isRequired?: boolean;
|
|
423
|
+
showStepValidation?: boolean;
|
|
424
|
+
onChange?: (val: string, passesRegexTest?: boolean) => void;
|
|
425
|
+
isReadOnly?: boolean;
|
|
426
|
+
isChanged?: boolean;
|
|
427
|
+
className?: string;
|
|
428
|
+
containerClass: string;
|
|
429
|
+
type: string;
|
|
430
|
+
key: string;
|
|
431
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
432
|
+
apiHandler?: any;
|
|
433
|
+
isSearchable: boolean;
|
|
434
|
+
endpointUrl: string;
|
|
435
|
+
isDynamic: boolean;
|
|
436
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
437
|
+
endpointData?: any;
|
|
438
|
+
skipOptionFetch: boolean;
|
|
439
|
+
isMappable?: boolean;
|
|
440
|
+
accountConnected?: boolean;
|
|
441
|
+
isEditable?: boolean;
|
|
442
|
+
allowTagsInText?: boolean;
|
|
443
|
+
}
|
|
418
444
|
/**
|
|
419
445
|
*
|
|
420
446
|
* @param key Key to sign hash
|
|
@@ -523,6 +549,10 @@ declare class IntegryJS {
|
|
|
523
549
|
*/
|
|
524
550
|
renderMarketplace: (marketplaceConfig: MarketplaceConfig) => void;
|
|
525
551
|
renderAppFlows: (appFlowConfig: InitConfig) => void;
|
|
552
|
+
renderMultipurposeField: ({ containerId, multipurposeFieldProps, }: {
|
|
553
|
+
containerId: string;
|
|
554
|
+
multipurposeFieldProps: MultipurposeFieldType;
|
|
555
|
+
}) => void;
|
|
526
556
|
verifyAuthConfig: () => Promise<{
|
|
527
557
|
config_verified: boolean;
|
|
528
558
|
} | null>;
|