zitejs 0.9.50 → 0.9.51

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.
@@ -106,9 +106,7 @@ function fieldJsdoc(schemaField, table) {
106
106
  }
107
107
  if (def.type === "datetime") {
108
108
  const tpl = def.template;
109
- const timeParts = [
110
- "Date+time field (ISO 8601 timestamp)",
111
- ];
109
+ const timeParts = ["Date+time field (ISO 8601 timestamp)"];
112
110
  if (tpl.dateFormat)
113
111
  timeParts.push(`date: ${tpl.dateFormat}`);
114
112
  if (tpl.timeFormat)
@@ -156,7 +154,8 @@ function fieldJsdoc(schemaField, table) {
156
154
  }
157
155
  if ((def.type === "single_select" || def.type === "multiple_select") &&
158
156
  def.template?.options) {
159
- const count = (def.template.options ?? []).length;
157
+ const count = (def.template.options ?? [])
158
+ .length;
160
159
  if (count > MAX_SELECT_OPTIONS) {
161
160
  parts.push(`${count - MAX_SELECT_OPTIONS} more options omitted`);
162
161
  }
@@ -417,6 +416,15 @@ function generateAirtableTs(lock) {
417
416
  "// Auto-generated by zitejs generate from zite.lock. Do not edit manually.",
418
417
  "// Airtable SDK — uses createAirtableClient from zitejs/runtime.",
419
418
  "// The airtable package is externalized (not bundled per-endpoint).",
419
+ "//",
420
+ "// Each exported table client has these methods:",
421
+ "// findAll(options?: { offset?: string; limit?: number; filters?: unknown })",
422
+ "// => Promise<{ records: T[]; offset: string | undefined; hasMore: boolean }>",
423
+ "// findOne(params: { id?: string; filters?: unknown }) => Promise<T | undefined>",
424
+ "// create(data: { record: Partial<T> }) => Promise<T>",
425
+ "// bulkCreate(records: Partial<T>[]) => Promise<T[]>",
426
+ "// update(id: string, data: { record: Partial<T> }) => Promise<T>",
427
+ "// delete(id: string) => Promise<{ deleted: true }>",
420
428
  "",
421
429
  "import { createAirtableClient } from 'zitejs/runtime';",
422
430
  "",
@@ -95,9 +95,7 @@ function fieldJsdoc(schemaField, table) {
95
95
  }
96
96
  if (def.type === "datetime") {
97
97
  const tpl = def.template;
98
- const timeParts = [
99
- "Date+time field (ISO 8601 timestamp)",
100
- ];
98
+ const timeParts = ["Date+time field (ISO 8601 timestamp)"];
101
99
  if (tpl.dateFormat)
102
100
  timeParts.push(`date: ${tpl.dateFormat}`);
103
101
  if (tpl.timeFormat)
@@ -145,7 +143,8 @@ function fieldJsdoc(schemaField, table) {
145
143
  }
146
144
  if ((def.type === "single_select" || def.type === "multiple_select") &&
147
145
  def.template?.options) {
148
- const count = (def.template.options ?? []).length;
146
+ const count = (def.template.options ?? [])
147
+ .length;
149
148
  if (count > MAX_SELECT_OPTIONS) {
150
149
  parts.push(`${count - MAX_SELECT_OPTIONS} more options omitted`);
151
150
  }
@@ -406,6 +405,15 @@ export function generateAirtableTs(lock) {
406
405
  "// Auto-generated by zitejs generate from zite.lock. Do not edit manually.",
407
406
  "// Airtable SDK — uses createAirtableClient from zitejs/runtime.",
408
407
  "// The airtable package is externalized (not bundled per-endpoint).",
408
+ "//",
409
+ "// Each exported table client has these methods:",
410
+ "// findAll(options?: { offset?: string; limit?: number; filters?: unknown })",
411
+ "// => Promise<{ records: T[]; offset: string | undefined; hasMore: boolean }>",
412
+ "// findOne(params: { id?: string; filters?: unknown }) => Promise<T | undefined>",
413
+ "// create(data: { record: Partial<T> }) => Promise<T>",
414
+ "// bulkCreate(records: Partial<T>[]) => Promise<T[]>",
415
+ "// update(id: string, data: { record: Partial<T> }) => Promise<T>",
416
+ "// delete(id: string) => Promise<{ deleted: true }>",
409
417
  "",
410
418
  "import { createAirtableClient } from 'zitejs/runtime';",
411
419
  "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zitejs",
3
- "version": "0.9.50",
3
+ "version": "0.9.51",
4
4
  "description": "The Zite framework — build apps on Zite Database",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",