zitejs 0.9.61 → 0.9.63

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.
@@ -1,20 +1,7 @@
1
- export type NotificationLink = {
2
- type: 'record';
3
- basePublicId: string;
4
- tableId: string;
5
- recordId: string;
6
- } | {
7
- type: 'app';
8
- appId: string;
1
+ export interface NotificationLink {
9
2
  path?: string;
10
3
  params?: Record<string, string>;
11
- } | {
12
- type: 'route';
13
- path: string;
14
- } | {
15
- type: 'external';
16
- url: string;
17
- };
4
+ }
18
5
  export type NotificationsCreateParams = {
19
6
  recipients: string[];
20
7
  title: string;
@@ -206,11 +206,10 @@ function generateSchema(database, existingSchema) {
206
206
  }
207
207
  function generateSentinelSdkTypes() {
208
208
  return [
209
- "export type NotificationLink =",
210
- " | { type: 'record'; basePublicId: string; tableId: string; recordId: string }",
211
- " | { type: 'app'; appId: string; path?: string; params?: Record<string, string> }",
212
- " | { type: 'route'; path: string }",
213
- " | { type: 'external'; url: string };",
209
+ "export interface NotificationLink {",
210
+ " path?: string;",
211
+ " params?: Record<string, string>;",
212
+ "}",
214
213
  "",
215
214
  "export interface NotificationsCreateParams {",
216
215
  " recipients: string[];",
package/dist/esm/cli.js CHANGED
File without changes
@@ -1,20 +1,7 @@
1
- export type NotificationLink = {
2
- type: 'record';
3
- basePublicId: string;
4
- tableId: string;
5
- recordId: string;
6
- } | {
7
- type: 'app';
8
- appId: string;
1
+ export interface NotificationLink {
9
2
  path?: string;
10
3
  params?: Record<string, string>;
11
- } | {
12
- type: 'route';
13
- path: string;
14
- } | {
15
- type: 'external';
16
- url: string;
17
- };
4
+ }
18
5
  export type NotificationsCreateParams = {
19
6
  recipients: string[];
20
7
  title: string;
@@ -195,11 +195,10 @@ export function generateSchema(database, existingSchema) {
195
195
  }
196
196
  function generateSentinelSdkTypes() {
197
197
  return [
198
- "export type NotificationLink =",
199
- " | { type: 'record'; basePublicId: string; tableId: string; recordId: string }",
200
- " | { type: 'app'; appId: string; path?: string; params?: Record<string, string> }",
201
- " | { type: 'route'; path: string }",
202
- " | { type: 'external'; url: string };",
198
+ "export interface NotificationLink {",
199
+ " path?: string;",
200
+ " params?: Record<string, string>;",
201
+ "}",
203
202
  "",
204
203
  "export interface NotificationsCreateParams {",
205
204
  " recipients: string[];",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zitejs",
3
- "version": "0.9.61",
3
+ "version": "0.9.63",
4
4
  "description": "The Zite framework — build apps on Zite Database",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createCaller = void 0;
4
- var index_js_1 = require("../caller/index.js");
5
- Object.defineProperty(exports, "createCaller", { enumerable: true, get: function () { return index_js_1.createCaller; } });
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createTableClient = void 0;
4
- var index_js_1 = require("../runtime/index.js");
5
- Object.defineProperty(exports, "createTableClient", { enumerable: true, get: function () { return index_js_1.createTableClient; } });
@@ -1,2 +0,0 @@
1
- export { createCaller } from '../caller/index.js';
2
- export type { EndpointConfig } from '../caller/index.js';
@@ -1 +0,0 @@
1
- export { createCaller } from '../caller/index.js';
@@ -1,2 +0,0 @@
1
- export { createTableClient } from '../runtime/index.js';
2
- export type { TableClient } from '../runtime/index.js';
@@ -1 +0,0 @@
1
- export { createTableClient } from '../runtime/index.js';