lucid-extension-sdk 0.0.424 → 0.0.425
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/commandtypes.d.ts
CHANGED
|
@@ -1019,6 +1019,8 @@ export type AddSpreadsheetIntegrationQuery = {
|
|
|
1019
1019
|
'gu'?: string;
|
|
1020
1020
|
/** If specified, add-card settings */
|
|
1021
1021
|
'ac'?: AddCardsActions | undefined;
|
|
1022
|
+
/** fieldConfiguration */
|
|
1023
|
+
'fc'?: Partial<SerializedFieldConfiguration>;
|
|
1022
1024
|
};
|
|
1023
1025
|
/** @ignore until spreadsheet integration is ready for launch (CHART-51946) */
|
|
1024
1026
|
export type AddSpreadsheetIntegrationResult = undefined;
|
|
@@ -3,7 +3,7 @@ import { SerializedUpstreamConfig } from '../data/datasource/serializedupstreamc
|
|
|
3
3
|
import { SerializedFieldType } from '../data/serializedfield/serializedfields';
|
|
4
4
|
import { SerializedSchema } from '../data/serializedfield/serializedschema';
|
|
5
5
|
import { UnsafeJsonSerializableOrUndefined } from '../jsonserializable';
|
|
6
|
-
import { ExtensionCardFieldDefinition } from '../sharedcardintegration/cardintegrationdefinitions';
|
|
6
|
+
import { ExtensionCardFieldDefinition, ExtensionFieldConfiguration } from '../sharedcardintegration/cardintegrationdefinitions';
|
|
7
7
|
/** @ignore until spreadsheet integration is ready for launch (CHART-51946) */
|
|
8
8
|
export declare enum LucidSpreadsheetIntegrationFailureType {
|
|
9
9
|
AuthorizationFailure = "AuthorizationFailure",
|
|
@@ -98,4 +98,5 @@ export declare abstract class LucidSpreadsheetIntegration {
|
|
|
98
98
|
primaryKey: string;
|
|
99
99
|
}>;
|
|
100
100
|
};
|
|
101
|
+
fieldConfiguration?: Partial<ExtensionFieldConfiguration>;
|
|
101
102
|
}
|
|
@@ -13,6 +13,7 @@ class LucidSpreadsheetIntegrationRegistry {
|
|
|
13
13
|
* Register a spreadsheet integration.
|
|
14
14
|
*/
|
|
15
15
|
static addSpreadsheetIntegration(client, spreadsheetIntegration) {
|
|
16
|
+
var _a, _b, _c, _d, _e, _f;
|
|
16
17
|
let configChooserActions;
|
|
17
18
|
const configChooser = spreadsheetIntegration.configChooser;
|
|
18
19
|
if (configChooser instanceof lucidspreadsheetintegration_1.CustomDetailsChooser) {
|
|
@@ -66,6 +67,13 @@ class LucidSpreadsheetIntegrationRegistry {
|
|
|
66
67
|
'c': spreadsheetIntegration.addCardsIntegration,
|
|
67
68
|
'gs': configChooserActions,
|
|
68
69
|
'gm': getMultipleSheetsForSpreadsheetDetailsActionName,
|
|
70
|
+
'fc': {
|
|
71
|
+
'cfds': {
|
|
72
|
+
'd': (_b = (_a = spreadsheetIntegration.fieldConfiguration) === null || _a === void 0 ? void 0 : _a.customFieldDisplaySettings) === null || _b === void 0 ? void 0 : _b.defaultToMultilineText,
|
|
73
|
+
'uri': (_d = (_c = spreadsheetIntegration.fieldConfiguration) === null || _c === void 0 ? void 0 : _c.customFieldDisplaySettings) === null || _d === void 0 ? void 0 : _d.useRoundIcons,
|
|
74
|
+
'dadr': (_f = (_e = spreadsheetIntegration.fieldConfiguration) === null || _e === void 0 ? void 0 : _e.customFieldDisplaySettings) === null || _f === void 0 ? void 0 : _f.displayMappedDatesAsDateRange,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
69
77
|
};
|
|
70
78
|
if (spreadsheetIntegration.iconConfiguration) {
|
|
71
79
|
serialized['icu'] = {
|