@cueframe/studio-convex 0.1.0 → 0.1.1
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/index.d.ts +42 -2
- package/dist/index.js +14 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -162,14 +162,14 @@ declare function useStudioPaginatedQuery<Id extends StudioPaginatedOperationId>(
|
|
|
162
162
|
|
|
163
163
|
declare const STUDIO_CONVEX_ARTIFACT: Readonly<{
|
|
164
164
|
readonly name: "@cueframe/studio-convex";
|
|
165
|
-
readonly version: "0.1.
|
|
165
|
+
readonly version: "0.1.1";
|
|
166
166
|
readonly integritySha256: "sha256:e980ed768236d9498c46d7f294537644a395e236e02269d9ef2e1d18cc97a2c7";
|
|
167
167
|
}>;
|
|
168
168
|
/** Immutable, machine-readable provider ABI used by release and private parity gates. */
|
|
169
169
|
declare const STUDIO_CONVEX_ABI: Readonly<{
|
|
170
170
|
readonly artifact: Readonly<{
|
|
171
171
|
readonly name: "@cueframe/studio-convex";
|
|
172
|
-
readonly version: "0.1.
|
|
172
|
+
readonly version: "0.1.1";
|
|
173
173
|
readonly integritySha256: "sha256:e980ed768236d9498c46d7f294537644a395e236e02269d9ef2e1d18cc97a2c7";
|
|
174
174
|
}>;
|
|
175
175
|
readonly operations: Readonly<{
|
|
@@ -215,6 +215,11 @@ declare const projectListRef: convex_server.FunctionReference<"query", "public",
|
|
|
215
215
|
createdAt: number;
|
|
216
216
|
updatedAt: number;
|
|
217
217
|
revision: number;
|
|
218
|
+
description?: string | undefined;
|
|
219
|
+
settings?: {
|
|
220
|
+
width: number;
|
|
221
|
+
height: number;
|
|
222
|
+
} | undefined;
|
|
218
223
|
}>, string | undefined>;
|
|
219
224
|
declare const projectSnapshotRef: convex_server.FunctionReference<"query", "public", {
|
|
220
225
|
projectId: string;
|
|
@@ -224,6 +229,11 @@ declare const projectSnapshotRef: convex_server.FunctionReference<"query", "publ
|
|
|
224
229
|
name: string;
|
|
225
230
|
createdAt: number;
|
|
226
231
|
updatedAt: number;
|
|
232
|
+
description?: string | undefined;
|
|
233
|
+
settings?: {
|
|
234
|
+
width: number;
|
|
235
|
+
height: number;
|
|
236
|
+
} | undefined;
|
|
227
237
|
};
|
|
228
238
|
revision: number;
|
|
229
239
|
activeComposition: {
|
|
@@ -526,6 +536,11 @@ declare const createProjectRef: convex_server.FunctionReference<"mutation", "pub
|
|
|
526
536
|
createdAt: number;
|
|
527
537
|
updatedAt: number;
|
|
528
538
|
revision: number;
|
|
539
|
+
description?: string | undefined;
|
|
540
|
+
settings?: {
|
|
541
|
+
width: number;
|
|
542
|
+
height: number;
|
|
543
|
+
} | undefined;
|
|
529
544
|
};
|
|
530
545
|
revision: number;
|
|
531
546
|
commandId: string;
|
|
@@ -547,6 +562,11 @@ declare const updateProjectRef: convex_server.FunctionReference<"mutation", "pub
|
|
|
547
562
|
createdAt: number;
|
|
548
563
|
updatedAt: number;
|
|
549
564
|
revision: number;
|
|
565
|
+
description?: string | undefined;
|
|
566
|
+
settings?: {
|
|
567
|
+
width: number;
|
|
568
|
+
height: number;
|
|
569
|
+
} | undefined;
|
|
550
570
|
};
|
|
551
571
|
revision: number;
|
|
552
572
|
commandId: string;
|
|
@@ -1561,6 +1581,11 @@ declare const parseProjectListResult: (value: unknown) => {
|
|
|
1561
1581
|
createdAt: number;
|
|
1562
1582
|
updatedAt: number;
|
|
1563
1583
|
revision: number;
|
|
1584
|
+
description?: string | undefined;
|
|
1585
|
+
settings?: {
|
|
1586
|
+
width: number;
|
|
1587
|
+
height: number;
|
|
1588
|
+
} | undefined;
|
|
1564
1589
|
}[];
|
|
1565
1590
|
nextCursor: string | null;
|
|
1566
1591
|
done: boolean;
|
|
@@ -1574,6 +1599,11 @@ declare const parseProjectSnapshotResult: (value: unknown) => {
|
|
|
1574
1599
|
name: string;
|
|
1575
1600
|
createdAt: number;
|
|
1576
1601
|
updatedAt: number;
|
|
1602
|
+
description?: string | undefined;
|
|
1603
|
+
settings?: {
|
|
1604
|
+
width: number;
|
|
1605
|
+
height: number;
|
|
1606
|
+
} | undefined;
|
|
1577
1607
|
};
|
|
1578
1608
|
revision: number;
|
|
1579
1609
|
activeComposition: {
|
|
@@ -1877,6 +1907,11 @@ declare const parseCreateProjectResult: (value: unknown) => {
|
|
|
1877
1907
|
createdAt: number;
|
|
1878
1908
|
updatedAt: number;
|
|
1879
1909
|
revision: number;
|
|
1910
|
+
description?: string | undefined;
|
|
1911
|
+
settings?: {
|
|
1912
|
+
width: number;
|
|
1913
|
+
height: number;
|
|
1914
|
+
} | undefined;
|
|
1880
1915
|
};
|
|
1881
1916
|
revision: number;
|
|
1882
1917
|
commandId: string;
|
|
@@ -1899,6 +1934,11 @@ declare const parseUpdateProjectResult: (value: unknown) => {
|
|
|
1899
1934
|
createdAt: number;
|
|
1900
1935
|
updatedAt: number;
|
|
1901
1936
|
revision: number;
|
|
1937
|
+
description?: string | undefined;
|
|
1938
|
+
settings?: {
|
|
1939
|
+
width: number;
|
|
1940
|
+
height: number;
|
|
1941
|
+
} | undefined;
|
|
1902
1942
|
};
|
|
1903
1943
|
revision: number;
|
|
1904
1944
|
commandId: string;
|
package/dist/index.js
CHANGED
|
@@ -30,7 +30,8 @@ function normalizeStudioConvexError(error) {
|
|
|
30
30
|
// src/bindings.ts
|
|
31
31
|
import { makeFunctionReference } from "convex/server";
|
|
32
32
|
import {
|
|
33
|
-
STUDIO_OPERATIONS
|
|
33
|
+
STUDIO_OPERATIONS,
|
|
34
|
+
STUDIO_PAGE_MAX
|
|
34
35
|
} from "@cueframe/studio-contracts";
|
|
35
36
|
var STUDIO_FUNCTION_PATHS = {
|
|
36
37
|
compatibility: "studio/v1/compatibility:get",
|
|
@@ -130,8 +131,17 @@ function bind(id) {
|
|
|
130
131
|
parseResult,
|
|
131
132
|
parsePageItems: (value) => {
|
|
132
133
|
if (!paginated) throw new TypeError(`${id} is not paginated`);
|
|
133
|
-
|
|
134
|
-
|
|
134
|
+
if (!Array.isArray(value)) throw new TypeError(`${id} page items are not an array`);
|
|
135
|
+
const items = [];
|
|
136
|
+
for (let offset = 0; offset < value.length; offset += STUDIO_PAGE_MAX) {
|
|
137
|
+
const parsed = definition.result.parse({
|
|
138
|
+
items: value.slice(offset, offset + STUDIO_PAGE_MAX),
|
|
139
|
+
nextCursor: null,
|
|
140
|
+
done: true
|
|
141
|
+
});
|
|
142
|
+
items.push(...parsed.items);
|
|
143
|
+
}
|
|
144
|
+
return items;
|
|
135
145
|
}
|
|
136
146
|
};
|
|
137
147
|
}
|
|
@@ -208,7 +218,7 @@ function useStudioPaginatedQuery(id, args, options) {
|
|
|
208
218
|
import { STUDIO_OPERATIONS as STUDIO_OPERATIONS2 } from "@cueframe/studio-contracts";
|
|
209
219
|
var STUDIO_CONVEX_ARTIFACT = Object.freeze({
|
|
210
220
|
name: "@cueframe/studio-convex",
|
|
211
|
-
version: "0.1.
|
|
221
|
+
version: "0.1.1",
|
|
212
222
|
integritySha256: "sha256:e980ed768236d9498c46d7f294537644a395e236e02269d9ef2e1d18cc97a2c7"
|
|
213
223
|
});
|
|
214
224
|
var STUDIO_CONVEX_ABI = Object.freeze({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cueframe/studio-convex",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Explicit Convex function references and runtime parsers for hosted CueFrame Studio.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@cueframe/studio-contracts": "
|
|
16
|
+
"@cueframe/studio-contracts": "0.1.1"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"convex": ">=1.42",
|