@chili-publish/studio-connectors 1.43.0 → 1.44.0

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 (2) hide show
  1. package/dist/index.d.ts +10 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -110,7 +110,7 @@ export interface DataSourceVariableCapability extends ModelCapability {
110
110
  getModel(context: Dictionary): Promise<DataSourceVariableDataModel>;
111
111
  }
112
112
  export interface Dictionary {
113
- [Key: string]: string | boolean;
113
+ [Key: string]: string | boolean | number;
114
114
  }
115
115
  export interface FilePointerConstructor {
116
116
  new (id: string, url: string, name: string): FilePointer$1;
@@ -195,7 +195,7 @@ export type BidirectionalPageConfig = PageConfigBase & BidirectionalNavigation;
195
195
  export type ChiliPlatform = "web" | "server";
196
196
  export type ConnectorConfigContextType = "query" | "upload";
197
197
  export type ConnectorConfigOptions<Type, ContextType> = ConnectorConfigValue<Type, ContextType>[];
198
- export type ConnectorConfigValueType = "text" | "boolean";
198
+ export type ConnectorConfigValueType = "text" | "boolean" | "number";
199
199
  export type DataConnectorCapabilities = {
200
200
  filtering: boolean;
201
201
  sorting: boolean;
@@ -204,14 +204,14 @@ export type DataConnectorCapabilities = {
204
204
  };
205
205
  export type DataConnectorRuntimeContext = ConnectorRuntimeContext;
206
206
  export type DataItem = {
207
- [key: string]: string | number | boolean | Date | null;
207
+ [key: string]: Date | JsonValue;
208
208
  };
209
209
  export type DataModel = {
210
210
  properties: DataModelProperty[];
211
211
  };
212
212
  export type DataModelProperty = {
213
213
  name: string;
214
- type: "singleLine" | "multiLine" | "number" | "date" | "boolean";
214
+ type: "singleLine" | "multiLine" | "number" | "date" | "boolean" | "json";
215
215
  };
216
216
  export type DataPage = WithNavigation<Pick<QueryPage<DataItem>, "data">, OneDirectionalNavigation>;
217
217
  export type DataSourceVariableDataModel = DataModel & {
@@ -229,6 +229,12 @@ export type FontConnectorCapabilities = {
229
229
  };
230
230
  export type FontFamilyPage = QueryPage<FontFamily>;
231
231
  export type FontPreviewFormat = "square" | "line";
232
+ export type JsonArray = JsonValue[];
233
+ export type JsonObject = {
234
+ [key: string]: JsonValue;
235
+ };
236
+ export type JsonPrimitive = string | number | boolean | null;
237
+ export type JsonValue = JsonPrimitive | JsonObject | JsonArray;
232
238
  export type MediaConnectorCapabilities = {
233
239
  query: boolean;
234
240
  detail: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chili-publish/studio-connectors",
3
- "version": "1.43.0",
3
+ "version": "1.44.0",
4
4
  "types": "dist/index.d.ts",
5
5
  "repository": {
6
6
  "type": "git",