@objectstack/spec 0.8.0 → 0.8.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/dist/api/index.d.ts +0 -2
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +0 -2
- package/dist/api/protocol.zod.d.ts +2 -1143
- package/dist/api/protocol.zod.d.ts.map +1 -1
- package/dist/api/protocol.zod.js +2 -49
- package/package.json +1 -1
- package/dist/api/view-storage.zod.d.ts +0 -2054
- package/dist/api/view-storage.zod.d.ts.map +0 -1
- package/dist/api/view-storage.zod.js +0 -243
- package/json-schema/api/CreateViewRequest.json +0 -7
- package/json-schema/api/DeleteViewRequest.json +0 -7
- package/json-schema/api/DeleteViewResponse.json +0 -7
- package/json-schema/api/GetViewRequest.json +0 -7
- package/json-schema/api/GetViewResponse.json +0 -7
- package/json-schema/api/ListViewsRequest.json +0 -7
- package/json-schema/api/ListViewsResponse.json +0 -7
- package/json-schema/api/SavedView.json +0 -7
- package/json-schema/api/UpdateViewRequest.json +0 -7
- package/json-schema/api/ViewColumn.json +0 -7
- package/json-schema/api/ViewLayout.json +0 -7
- package/json-schema/api/ViewResponse.json +0 -7
- package/json-schema/api/ViewType.json +0 -7
- package/json-schema/api/ViewVisibility.json +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.zod.d.ts","sourceRoot":"","sources":["../../src/api/protocol.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"protocol.zod.d.ts","sourceRoot":"","sources":["../../src/api/protocol.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;;;;;;;;;;;GAgBG;AAMH;;;GAGG;AACH,eAAO,MAAM,yBAAyB,gCAAe,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;iBAKrC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
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ObjectStackProtocolSchema = exports.
|
|
3
|
+
exports.ObjectStackProtocolSchema = exports.DeleteManyDataResponseSchema = exports.DeleteManyDataRequestSchema = exports.UpdateManyDataResponseSchema = exports.UpdateManyDataRequestSchema = exports.CreateManyDataResponseSchema = exports.CreateManyDataRequestSchema = exports.BatchDataResponseSchema = exports.BatchDataRequestSchema = exports.DeleteDataResponseSchema = exports.DeleteDataRequestSchema = exports.UpdateDataResponseSchema = exports.UpdateDataRequestSchema = exports.CreateDataResponseSchema = exports.CreateDataRequestSchema = exports.GetDataResponseSchema = exports.GetDataRequestSchema = exports.FindDataResponseSchema = exports.FindDataRequestSchema = exports.GetUiViewResponseSchema = exports.GetUiViewRequestSchema = exports.GetMetaItemCachedResponseSchema = exports.GetMetaItemCachedRequestSchema = exports.GetMetaItemResponseSchema = exports.GetMetaItemRequestSchema = exports.GetMetaItemsResponseSchema = exports.GetMetaItemsRequestSchema = exports.GetMetaTypesResponseSchema = exports.GetMetaTypesRequestSchema = exports.GetDiscoveryResponseSchema = exports.GetDiscoveryRequestSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const batch_zod_1 = require("./batch.zod");
|
|
6
6
|
const http_cache_zod_1 = require("./http-cache.zod");
|
|
7
|
-
const view_storage_zod_1 = require("./view-storage.zod");
|
|
8
7
|
const query_zod_1 = require("../data/query.zod");
|
|
9
8
|
/**
|
|
10
9
|
* ObjectStack Protocol - Zod Schema Definitions
|
|
@@ -106,11 +105,7 @@ exports.GetUiViewRequestSchema = zod_1.z.object({
|
|
|
106
105
|
/**
|
|
107
106
|
* Get UI View Response
|
|
108
107
|
*/
|
|
109
|
-
exports.GetUiViewResponseSchema = zod_1.z.
|
|
110
|
-
object: zod_1.z.string().describe('Object name'),
|
|
111
|
-
type: zod_1.z.enum(['list', 'form']).describe('View type'),
|
|
112
|
-
view: zod_1.z.any().describe('View definition'),
|
|
113
|
-
});
|
|
108
|
+
exports.GetUiViewResponseSchema = zod_1.z.any();
|
|
114
109
|
// ==========================================
|
|
115
110
|
// Data Operations
|
|
116
111
|
// ==========================================
|
|
@@ -252,27 +247,6 @@ exports.DeleteManyDataRequestSchema = zod_1.z.object({
|
|
|
252
247
|
*/
|
|
253
248
|
exports.DeleteManyDataResponseSchema = batch_zod_1.BatchUpdateResponseSchema;
|
|
254
249
|
// ==========================================
|
|
255
|
-
// View Storage Operations
|
|
256
|
-
// ==========================================
|
|
257
|
-
/**
|
|
258
|
-
* All View Storage schemas are imported from view-storage.zod.ts
|
|
259
|
-
* - CreateViewRequest/Response
|
|
260
|
-
* - GetViewRequest/Response
|
|
261
|
-
* - ListViewsRequest/Response
|
|
262
|
-
* - UpdateViewRequest/Response
|
|
263
|
-
* - DeleteViewRequest/Response
|
|
264
|
-
*/
|
|
265
|
-
exports.GetViewRequestSchema = zod_1.z.object({
|
|
266
|
-
id: zod_1.z.string().describe('View ID'),
|
|
267
|
-
});
|
|
268
|
-
exports.GetViewResponseSchema = view_storage_zod_1.ViewResponseSchema;
|
|
269
|
-
exports.DeleteViewRequestSchema = zod_1.z.object({
|
|
270
|
-
id: zod_1.z.string().describe('View ID to delete'),
|
|
271
|
-
});
|
|
272
|
-
exports.DeleteViewResponseSchema = zod_1.z.object({
|
|
273
|
-
success: zod_1.z.boolean().describe('Whether deletion succeeded'),
|
|
274
|
-
});
|
|
275
|
-
// ==========================================
|
|
276
250
|
// Protocol Interface Schema
|
|
277
251
|
// ==========================================
|
|
278
252
|
/**
|
|
@@ -352,25 +326,4 @@ exports.ObjectStackProtocolSchema = zod_1.z.object({
|
|
|
352
326
|
input: zod_1.z.tuple([exports.DeleteManyDataRequestSchema]),
|
|
353
327
|
output: zod_1.z.promise(exports.DeleteManyDataResponseSchema)
|
|
354
328
|
}).describe('Delete multiple records'),
|
|
355
|
-
// View Storage
|
|
356
|
-
createView: zod_1.z.function({
|
|
357
|
-
input: zod_1.z.tuple([view_storage_zod_1.CreateViewRequestSchema]),
|
|
358
|
-
output: zod_1.z.promise(view_storage_zod_1.ViewResponseSchema)
|
|
359
|
-
}).describe('Create a saved view'),
|
|
360
|
-
getView: zod_1.z.function({
|
|
361
|
-
input: zod_1.z.tuple([exports.GetViewRequestSchema]),
|
|
362
|
-
output: zod_1.z.promise(view_storage_zod_1.ViewResponseSchema)
|
|
363
|
-
}).describe('Get a saved view'),
|
|
364
|
-
listViews: zod_1.z.function({
|
|
365
|
-
input: zod_1.z.tuple([view_storage_zod_1.ListViewsRequestSchema]),
|
|
366
|
-
output: zod_1.z.promise(view_storage_zod_1.ListViewsResponseSchema)
|
|
367
|
-
}).describe('List saved views'),
|
|
368
|
-
updateView: zod_1.z.function({
|
|
369
|
-
input: zod_1.z.tuple([view_storage_zod_1.UpdateViewRequestSchema]),
|
|
370
|
-
output: zod_1.z.promise(view_storage_zod_1.ViewResponseSchema)
|
|
371
|
-
}).describe('Update a saved view'),
|
|
372
|
-
deleteView: zod_1.z.function({
|
|
373
|
-
input: zod_1.z.tuple([exports.DeleteViewRequestSchema]),
|
|
374
|
-
output: zod_1.z.promise(exports.DeleteViewResponseSchema)
|
|
375
|
-
}).describe('Delete a saved view'),
|
|
376
329
|
});
|
package/package.json
CHANGED