zitejs 0.9.46 → 0.9.49
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/cjs/client/index.d.ts +6 -6
- package/dist/cjs/types/fields.d.ts +4 -4
- package/dist/cjs/types/fields.js +1 -3
- package/dist/cjs/types/tables.d.ts +8 -8
- package/dist/esm/client/index.d.ts +6 -6
- package/dist/esm/types/fields.d.ts +4 -4
- package/dist/esm/types/fields.js +1 -3
- package/dist/esm/types/tables.d.ts +8 -8
- package/package.json +36 -4
- package/sync.d.ts +0 -1
- package/sync.js +0 -1
|
@@ -260,7 +260,7 @@ export declare class Zite {
|
|
|
260
260
|
type: "formula";
|
|
261
261
|
template: {
|
|
262
262
|
expression: string;
|
|
263
|
-
resultType
|
|
263
|
+
resultType: "number" | "boolean" | "date" | "array" | "text";
|
|
264
264
|
formatting?: {
|
|
265
265
|
numberDisplayType?: "number" | "currency" | "duration" | "percent" | undefined;
|
|
266
266
|
currencyCode?: string | undefined;
|
|
@@ -439,7 +439,7 @@ export declare class Zite {
|
|
|
439
439
|
type: "formula";
|
|
440
440
|
template: {
|
|
441
441
|
expression: string;
|
|
442
|
-
resultType
|
|
442
|
+
resultType: "number" | "boolean" | "date" | "array" | "text";
|
|
443
443
|
formatting?: {
|
|
444
444
|
numberDisplayType?: "number" | "currency" | "duration" | "percent" | undefined;
|
|
445
445
|
currencyCode?: string | undefined;
|
|
@@ -628,7 +628,7 @@ export declare class Zite {
|
|
|
628
628
|
type: "formula";
|
|
629
629
|
template: {
|
|
630
630
|
expression: string;
|
|
631
|
-
resultType
|
|
631
|
+
resultType: "number" | "boolean" | "date" | "array" | "text";
|
|
632
632
|
formatting?: {
|
|
633
633
|
numberDisplayType?: "number" | "currency" | "duration" | "percent" | undefined;
|
|
634
634
|
currencyCode?: string | undefined;
|
|
@@ -820,7 +820,7 @@ export declare class Zite {
|
|
|
820
820
|
type: "formula";
|
|
821
821
|
template: {
|
|
822
822
|
expression: string;
|
|
823
|
-
resultType
|
|
823
|
+
resultType: "number" | "boolean" | "date" | "array" | "text";
|
|
824
824
|
formatting?: {
|
|
825
825
|
numberDisplayType?: "number" | "currency" | "duration" | "percent" | undefined;
|
|
826
826
|
currencyCode?: string | undefined;
|
|
@@ -1020,7 +1020,7 @@ export declare class Zite {
|
|
|
1020
1020
|
type: "formula";
|
|
1021
1021
|
template: {
|
|
1022
1022
|
expression: string;
|
|
1023
|
-
resultType
|
|
1023
|
+
resultType: "number" | "boolean" | "date" | "array" | "text";
|
|
1024
1024
|
formatting?: {
|
|
1025
1025
|
numberDisplayType?: "number" | "currency" | "duration" | "percent" | undefined;
|
|
1026
1026
|
currencyCode?: string | undefined;
|
|
@@ -1221,7 +1221,7 @@ export declare class Zite {
|
|
|
1221
1221
|
type: "formula";
|
|
1222
1222
|
template: {
|
|
1223
1223
|
expression: string;
|
|
1224
|
-
resultType
|
|
1224
|
+
resultType: "number" | "boolean" | "date" | "array" | "text";
|
|
1225
1225
|
formatting?: {
|
|
1226
1226
|
numberDisplayType?: "number" | "currency" | "duration" | "percent" | undefined;
|
|
1227
1227
|
currencyCode?: string | undefined;
|
|
@@ -192,13 +192,13 @@ export declare const lookupTemplateSchema: z.ZodObject<{
|
|
|
192
192
|
export declare const sourceTemplateSchema: z.ZodObject<{}, z.core.$strip>;
|
|
193
193
|
export declare const formulaTemplateSchema: z.ZodObject<{
|
|
194
194
|
expression: z.ZodString;
|
|
195
|
-
resultType: z.
|
|
195
|
+
resultType: z.ZodEnum<{
|
|
196
196
|
number: "number";
|
|
197
197
|
boolean: "boolean";
|
|
198
198
|
date: "date";
|
|
199
199
|
array: "array";
|
|
200
200
|
text: "text";
|
|
201
|
-
}
|
|
201
|
+
}>;
|
|
202
202
|
formatting: z.ZodOptional<z.ZodObject<{
|
|
203
203
|
numberDisplayType: z.ZodOptional<z.ZodEnum<{
|
|
204
204
|
number: "number";
|
|
@@ -457,13 +457,13 @@ export declare const publicFieldDefinitionSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
457
457
|
type: z.ZodLiteral<"formula">;
|
|
458
458
|
template: z.ZodObject<{
|
|
459
459
|
expression: z.ZodString;
|
|
460
|
-
resultType: z.
|
|
460
|
+
resultType: z.ZodEnum<{
|
|
461
461
|
number: "number";
|
|
462
462
|
boolean: "boolean";
|
|
463
463
|
date: "date";
|
|
464
464
|
array: "array";
|
|
465
465
|
text: "text";
|
|
466
|
-
}
|
|
466
|
+
}>;
|
|
467
467
|
formatting: z.ZodOptional<z.ZodObject<{
|
|
468
468
|
numberDisplayType: z.ZodOptional<z.ZodEnum<{
|
|
469
469
|
number: "number";
|
package/dist/cjs/types/fields.js
CHANGED
|
@@ -167,9 +167,7 @@ const formulaFormattingSchema = zod_1.z
|
|
|
167
167
|
.optional();
|
|
168
168
|
exports.formulaTemplateSchema = zod_1.z.object({
|
|
169
169
|
expression: zod_1.z.string().min(1),
|
|
170
|
-
resultType: zod_1.z
|
|
171
|
-
.enum(["text", "number", "date", "boolean", "array"])
|
|
172
|
-
.optional(),
|
|
170
|
+
resultType: zod_1.z.enum(["text", "number", "date", "boolean", "array"]),
|
|
173
171
|
formatting: formulaFormattingSchema,
|
|
174
172
|
});
|
|
175
173
|
exports.autonumberTemplateSchema = zod_1.z.object({});
|
|
@@ -211,13 +211,13 @@ export declare const fieldSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
211
211
|
type: z.ZodLiteral<"formula">;
|
|
212
212
|
template: z.ZodObject<{
|
|
213
213
|
expression: z.ZodString;
|
|
214
|
-
resultType: z.
|
|
214
|
+
resultType: z.ZodEnum<{
|
|
215
215
|
number: "number";
|
|
216
216
|
boolean: "boolean";
|
|
217
217
|
date: "date";
|
|
218
218
|
array: "array";
|
|
219
219
|
text: "text";
|
|
220
|
-
}
|
|
220
|
+
}>;
|
|
221
221
|
formatting: z.ZodOptional<z.ZodObject<{
|
|
222
222
|
numberDisplayType: z.ZodOptional<z.ZodEnum<{
|
|
223
223
|
number: "number";
|
|
@@ -502,13 +502,13 @@ export declare const tableSchema: z.ZodObject<{
|
|
|
502
502
|
type: z.ZodLiteral<"formula">;
|
|
503
503
|
template: z.ZodObject<{
|
|
504
504
|
expression: z.ZodString;
|
|
505
|
-
resultType: z.
|
|
505
|
+
resultType: z.ZodEnum<{
|
|
506
506
|
number: "number";
|
|
507
507
|
boolean: "boolean";
|
|
508
508
|
date: "date";
|
|
509
509
|
array: "array";
|
|
510
510
|
text: "text";
|
|
511
|
-
}
|
|
511
|
+
}>;
|
|
512
512
|
formatting: z.ZodOptional<z.ZodObject<{
|
|
513
513
|
numberDisplayType: z.ZodOptional<z.ZodEnum<{
|
|
514
514
|
number: "number";
|
|
@@ -788,13 +788,13 @@ export declare const publicTableDefinitionSchema: z.ZodObject<{
|
|
|
788
788
|
type: z.ZodLiteral<"formula">;
|
|
789
789
|
template: z.ZodObject<{
|
|
790
790
|
expression: z.ZodString;
|
|
791
|
-
resultType: z.
|
|
791
|
+
resultType: z.ZodEnum<{
|
|
792
792
|
number: "number";
|
|
793
793
|
boolean: "boolean";
|
|
794
794
|
date: "date";
|
|
795
795
|
array: "array";
|
|
796
796
|
text: "text";
|
|
797
|
-
}
|
|
797
|
+
}>;
|
|
798
798
|
formatting: z.ZodOptional<z.ZodObject<{
|
|
799
799
|
numberDisplayType: z.ZodOptional<z.ZodEnum<{
|
|
800
800
|
number: "number";
|
|
@@ -1076,13 +1076,13 @@ export declare const databaseSchema: z.ZodObject<{
|
|
|
1076
1076
|
type: z.ZodLiteral<"formula">;
|
|
1077
1077
|
template: z.ZodObject<{
|
|
1078
1078
|
expression: z.ZodString;
|
|
1079
|
-
resultType: z.
|
|
1079
|
+
resultType: z.ZodEnum<{
|
|
1080
1080
|
number: "number";
|
|
1081
1081
|
boolean: "boolean";
|
|
1082
1082
|
date: "date";
|
|
1083
1083
|
array: "array";
|
|
1084
1084
|
text: "text";
|
|
1085
|
-
}
|
|
1085
|
+
}>;
|
|
1086
1086
|
formatting: z.ZodOptional<z.ZodObject<{
|
|
1087
1087
|
numberDisplayType: z.ZodOptional<z.ZodEnum<{
|
|
1088
1088
|
number: "number";
|
|
@@ -260,7 +260,7 @@ export declare class Zite {
|
|
|
260
260
|
type: "formula";
|
|
261
261
|
template: {
|
|
262
262
|
expression: string;
|
|
263
|
-
resultType
|
|
263
|
+
resultType: "number" | "boolean" | "date" | "array" | "text";
|
|
264
264
|
formatting?: {
|
|
265
265
|
numberDisplayType?: "number" | "currency" | "duration" | "percent" | undefined;
|
|
266
266
|
currencyCode?: string | undefined;
|
|
@@ -439,7 +439,7 @@ export declare class Zite {
|
|
|
439
439
|
type: "formula";
|
|
440
440
|
template: {
|
|
441
441
|
expression: string;
|
|
442
|
-
resultType
|
|
442
|
+
resultType: "number" | "boolean" | "date" | "array" | "text";
|
|
443
443
|
formatting?: {
|
|
444
444
|
numberDisplayType?: "number" | "currency" | "duration" | "percent" | undefined;
|
|
445
445
|
currencyCode?: string | undefined;
|
|
@@ -628,7 +628,7 @@ export declare class Zite {
|
|
|
628
628
|
type: "formula";
|
|
629
629
|
template: {
|
|
630
630
|
expression: string;
|
|
631
|
-
resultType
|
|
631
|
+
resultType: "number" | "boolean" | "date" | "array" | "text";
|
|
632
632
|
formatting?: {
|
|
633
633
|
numberDisplayType?: "number" | "currency" | "duration" | "percent" | undefined;
|
|
634
634
|
currencyCode?: string | undefined;
|
|
@@ -820,7 +820,7 @@ export declare class Zite {
|
|
|
820
820
|
type: "formula";
|
|
821
821
|
template: {
|
|
822
822
|
expression: string;
|
|
823
|
-
resultType
|
|
823
|
+
resultType: "number" | "boolean" | "date" | "array" | "text";
|
|
824
824
|
formatting?: {
|
|
825
825
|
numberDisplayType?: "number" | "currency" | "duration" | "percent" | undefined;
|
|
826
826
|
currencyCode?: string | undefined;
|
|
@@ -1020,7 +1020,7 @@ export declare class Zite {
|
|
|
1020
1020
|
type: "formula";
|
|
1021
1021
|
template: {
|
|
1022
1022
|
expression: string;
|
|
1023
|
-
resultType
|
|
1023
|
+
resultType: "number" | "boolean" | "date" | "array" | "text";
|
|
1024
1024
|
formatting?: {
|
|
1025
1025
|
numberDisplayType?: "number" | "currency" | "duration" | "percent" | undefined;
|
|
1026
1026
|
currencyCode?: string | undefined;
|
|
@@ -1221,7 +1221,7 @@ export declare class Zite {
|
|
|
1221
1221
|
type: "formula";
|
|
1222
1222
|
template: {
|
|
1223
1223
|
expression: string;
|
|
1224
|
-
resultType
|
|
1224
|
+
resultType: "number" | "boolean" | "date" | "array" | "text";
|
|
1225
1225
|
formatting?: {
|
|
1226
1226
|
numberDisplayType?: "number" | "currency" | "duration" | "percent" | undefined;
|
|
1227
1227
|
currencyCode?: string | undefined;
|
|
@@ -192,13 +192,13 @@ export declare const lookupTemplateSchema: z.ZodObject<{
|
|
|
192
192
|
export declare const sourceTemplateSchema: z.ZodObject<{}, z.core.$strip>;
|
|
193
193
|
export declare const formulaTemplateSchema: z.ZodObject<{
|
|
194
194
|
expression: z.ZodString;
|
|
195
|
-
resultType: z.
|
|
195
|
+
resultType: z.ZodEnum<{
|
|
196
196
|
number: "number";
|
|
197
197
|
boolean: "boolean";
|
|
198
198
|
date: "date";
|
|
199
199
|
array: "array";
|
|
200
200
|
text: "text";
|
|
201
|
-
}
|
|
201
|
+
}>;
|
|
202
202
|
formatting: z.ZodOptional<z.ZodObject<{
|
|
203
203
|
numberDisplayType: z.ZodOptional<z.ZodEnum<{
|
|
204
204
|
number: "number";
|
|
@@ -457,13 +457,13 @@ export declare const publicFieldDefinitionSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
457
457
|
type: z.ZodLiteral<"formula">;
|
|
458
458
|
template: z.ZodObject<{
|
|
459
459
|
expression: z.ZodString;
|
|
460
|
-
resultType: z.
|
|
460
|
+
resultType: z.ZodEnum<{
|
|
461
461
|
number: "number";
|
|
462
462
|
boolean: "boolean";
|
|
463
463
|
date: "date";
|
|
464
464
|
array: "array";
|
|
465
465
|
text: "text";
|
|
466
|
-
}
|
|
466
|
+
}>;
|
|
467
467
|
formatting: z.ZodOptional<z.ZodObject<{
|
|
468
468
|
numberDisplayType: z.ZodOptional<z.ZodEnum<{
|
|
469
469
|
number: "number";
|
package/dist/esm/types/fields.js
CHANGED
|
@@ -164,9 +164,7 @@ const formulaFormattingSchema = z
|
|
|
164
164
|
.optional();
|
|
165
165
|
export const formulaTemplateSchema = z.object({
|
|
166
166
|
expression: z.string().min(1),
|
|
167
|
-
resultType: z
|
|
168
|
-
.enum(["text", "number", "date", "boolean", "array"])
|
|
169
|
-
.optional(),
|
|
167
|
+
resultType: z.enum(["text", "number", "date", "boolean", "array"]),
|
|
170
168
|
formatting: formulaFormattingSchema,
|
|
171
169
|
});
|
|
172
170
|
export const autonumberTemplateSchema = z.object({});
|
|
@@ -211,13 +211,13 @@ export declare const fieldSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
211
211
|
type: z.ZodLiteral<"formula">;
|
|
212
212
|
template: z.ZodObject<{
|
|
213
213
|
expression: z.ZodString;
|
|
214
|
-
resultType: z.
|
|
214
|
+
resultType: z.ZodEnum<{
|
|
215
215
|
number: "number";
|
|
216
216
|
boolean: "boolean";
|
|
217
217
|
date: "date";
|
|
218
218
|
array: "array";
|
|
219
219
|
text: "text";
|
|
220
|
-
}
|
|
220
|
+
}>;
|
|
221
221
|
formatting: z.ZodOptional<z.ZodObject<{
|
|
222
222
|
numberDisplayType: z.ZodOptional<z.ZodEnum<{
|
|
223
223
|
number: "number";
|
|
@@ -502,13 +502,13 @@ export declare const tableSchema: z.ZodObject<{
|
|
|
502
502
|
type: z.ZodLiteral<"formula">;
|
|
503
503
|
template: z.ZodObject<{
|
|
504
504
|
expression: z.ZodString;
|
|
505
|
-
resultType: z.
|
|
505
|
+
resultType: z.ZodEnum<{
|
|
506
506
|
number: "number";
|
|
507
507
|
boolean: "boolean";
|
|
508
508
|
date: "date";
|
|
509
509
|
array: "array";
|
|
510
510
|
text: "text";
|
|
511
|
-
}
|
|
511
|
+
}>;
|
|
512
512
|
formatting: z.ZodOptional<z.ZodObject<{
|
|
513
513
|
numberDisplayType: z.ZodOptional<z.ZodEnum<{
|
|
514
514
|
number: "number";
|
|
@@ -788,13 +788,13 @@ export declare const publicTableDefinitionSchema: z.ZodObject<{
|
|
|
788
788
|
type: z.ZodLiteral<"formula">;
|
|
789
789
|
template: z.ZodObject<{
|
|
790
790
|
expression: z.ZodString;
|
|
791
|
-
resultType: z.
|
|
791
|
+
resultType: z.ZodEnum<{
|
|
792
792
|
number: "number";
|
|
793
793
|
boolean: "boolean";
|
|
794
794
|
date: "date";
|
|
795
795
|
array: "array";
|
|
796
796
|
text: "text";
|
|
797
|
-
}
|
|
797
|
+
}>;
|
|
798
798
|
formatting: z.ZodOptional<z.ZodObject<{
|
|
799
799
|
numberDisplayType: z.ZodOptional<z.ZodEnum<{
|
|
800
800
|
number: "number";
|
|
@@ -1076,13 +1076,13 @@ export declare const databaseSchema: z.ZodObject<{
|
|
|
1076
1076
|
type: z.ZodLiteral<"formula">;
|
|
1077
1077
|
template: z.ZodObject<{
|
|
1078
1078
|
expression: z.ZodString;
|
|
1079
|
-
resultType: z.
|
|
1079
|
+
resultType: z.ZodEnum<{
|
|
1080
1080
|
number: "number";
|
|
1081
1081
|
boolean: "boolean";
|
|
1082
1082
|
date: "date";
|
|
1083
1083
|
array: "array";
|
|
1084
1084
|
text: "text";
|
|
1085
|
-
}
|
|
1085
|
+
}>;
|
|
1086
1086
|
formatting: z.ZodOptional<z.ZodObject<{
|
|
1087
1087
|
numberDisplayType: z.ZodOptional<z.ZodEnum<{
|
|
1088
1088
|
number: "number";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zitejs",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.49",
|
|
4
4
|
"description": "The Zite framework — build apps on Zite Database",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -76,10 +76,42 @@
|
|
|
76
76
|
"prepublishOnly": "npm run build"
|
|
77
77
|
},
|
|
78
78
|
"files": [
|
|
79
|
-
"dist"
|
|
80
|
-
"sync.js",
|
|
81
|
-
"sync.d.ts"
|
|
79
|
+
"dist"
|
|
82
80
|
],
|
|
81
|
+
"typesVersions": {
|
|
82
|
+
"*": {
|
|
83
|
+
"sync": [
|
|
84
|
+
"dist/esm/sync/index.d.ts"
|
|
85
|
+
],
|
|
86
|
+
"runtime": [
|
|
87
|
+
"dist/esm/runtime/index.d.ts"
|
|
88
|
+
],
|
|
89
|
+
"caller": [
|
|
90
|
+
"dist/esm/caller/index.d.ts"
|
|
91
|
+
],
|
|
92
|
+
"backend": [
|
|
93
|
+
"dist/esm/backend/index.d.ts"
|
|
94
|
+
],
|
|
95
|
+
"backend/base": [
|
|
96
|
+
"dist/esm/backend/index.d.ts"
|
|
97
|
+
],
|
|
98
|
+
"auth": [
|
|
99
|
+
"dist/esm/auth/index.d.ts"
|
|
100
|
+
],
|
|
101
|
+
"auth/base": [
|
|
102
|
+
"dist/esm/auth/index.d.ts"
|
|
103
|
+
],
|
|
104
|
+
"upload": [
|
|
105
|
+
"dist/esm/upload/index.d.ts"
|
|
106
|
+
],
|
|
107
|
+
"pdf": [
|
|
108
|
+
"dist/esm/pdf/index.d.ts"
|
|
109
|
+
],
|
|
110
|
+
"schedules": [
|
|
111
|
+
"dist/esm/schedules/index.d.ts"
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
},
|
|
83
115
|
"peerDependencies": {
|
|
84
116
|
"@tanstack/react-query": ">=5",
|
|
85
117
|
"react": ">=18"
|
package/sync.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./dist/cjs/sync/index";
|
package/sync.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./dist/cjs/sync/index.js");
|