@stackbit/dev 0.0.48-alpha.1 → 0.0.48-alpha.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.
|
@@ -206,8 +206,8 @@ export declare type UpdateOperationReorder = Simplify<UpdateOperationBase & {
|
|
|
206
206
|
opType: 'reorder';
|
|
207
207
|
order: number[];
|
|
208
208
|
}>;
|
|
209
|
-
export declare type UpdateOperationField = UpdateOperationValueField | UpdateOperationObjectField | UpdateOperationModelField | UpdateOperationReferenceField;
|
|
210
|
-
export declare type UpdateOperationValueFieldType = Exclude<FieldType, 'object' | 'model' | 'reference'>;
|
|
209
|
+
export declare type UpdateOperationField = UpdateOperationValueField | UpdateOperationObjectField | UpdateOperationModelField | UpdateOperationReferenceField | UpdateOperationListField;
|
|
210
|
+
export declare type UpdateOperationValueFieldType = Exclude<FieldType, 'object' | 'model' | 'reference' | 'list'>;
|
|
211
211
|
export declare type UpdateOperationValueField = {
|
|
212
212
|
type: UpdateOperationValueFieldType;
|
|
213
213
|
value: any;
|
|
@@ -226,6 +226,10 @@ export declare type UpdateOperationReferenceField = {
|
|
|
226
226
|
refType: 'document' | 'asset';
|
|
227
227
|
refId: string;
|
|
228
228
|
};
|
|
229
|
+
export declare type UpdateOperationListField = {
|
|
230
|
+
type: 'list';
|
|
231
|
+
items: any[];
|
|
232
|
+
};
|
|
229
233
|
export declare type FieldType = 'string' | 'url' | 'slug' | 'text' | 'markdown' | 'html' | 'number' | 'boolean' | 'enum' | 'date' | 'datetime' | 'color' | 'image' | 'file' | 'json' | 'richText' | 'object' | 'model' | 'reference' | 'style' | 'list';
|
|
230
234
|
export declare type Simplify<T> = {
|
|
231
235
|
[K in keyof T]: T[K];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackbit/dev",
|
|
3
|
-
"version": "0.0.48-alpha.
|
|
3
|
+
"version": "0.0.48-alpha.2",
|
|
4
4
|
"description": "stackbit-dev",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"author": "Stackbit Inc.",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@stackbit/cms-core": "^0.0.19-alpha.
|
|
26
|
-
"@stackbit/dev-common": "^0.0.44-alpha.
|
|
25
|
+
"@stackbit/cms-core": "^0.0.19-alpha.1",
|
|
26
|
+
"@stackbit/dev-common": "^0.0.44-alpha.2",
|
|
27
27
|
"@stackbit/sdk": "^0.2.36-alpha.0",
|
|
28
28
|
"axios": "^0.25.0",
|
|
29
29
|
"chalk": "^4.1.0",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"ts-jest": "^27.1.5",
|
|
59
59
|
"typescript": "^4.5.4"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "320bb64ea35d20b488c1ed75f673d58b010519a4"
|
|
62
62
|
}
|
package/src/types/api-methods.ts
CHANGED
|
@@ -157,8 +157,8 @@ export type APIMethodCreatePreset = {
|
|
|
157
157
|
thumbnail?: string;
|
|
158
158
|
data: any;
|
|
159
159
|
label: string;
|
|
160
|
-
metadata: any
|
|
161
|
-
}
|
|
160
|
+
metadata: any;
|
|
161
|
+
};
|
|
162
162
|
};
|
|
163
163
|
};
|
|
164
164
|
|
|
@@ -229,9 +229,14 @@ export type UpdateOperationReorder = Simplify<
|
|
|
229
229
|
}
|
|
230
230
|
>;
|
|
231
231
|
|
|
232
|
-
export type UpdateOperationField =
|
|
232
|
+
export type UpdateOperationField =
|
|
233
|
+
| UpdateOperationValueField
|
|
234
|
+
| UpdateOperationObjectField
|
|
235
|
+
| UpdateOperationModelField
|
|
236
|
+
| UpdateOperationReferenceField
|
|
237
|
+
| UpdateOperationListField;
|
|
233
238
|
|
|
234
|
-
export type UpdateOperationValueFieldType = Exclude<FieldType, 'object' | 'model' | 'reference'>;
|
|
239
|
+
export type UpdateOperationValueFieldType = Exclude<FieldType, 'object' | 'model' | 'reference' | 'list'>;
|
|
235
240
|
export type UpdateOperationValueField = {
|
|
236
241
|
type: UpdateOperationValueFieldType;
|
|
237
242
|
value: any;
|
|
@@ -254,6 +259,11 @@ export type UpdateOperationReferenceField = {
|
|
|
254
259
|
refId: string;
|
|
255
260
|
};
|
|
256
261
|
|
|
262
|
+
export type UpdateOperationListField = {
|
|
263
|
+
type: 'list';
|
|
264
|
+
items: any[];
|
|
265
|
+
};
|
|
266
|
+
|
|
257
267
|
export type FieldType =
|
|
258
268
|
| 'string'
|
|
259
269
|
| 'url'
|