zitejs 0.9.117 → 0.9.118
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/bundle/index.js +6 -0
- package/dist/cjs/meta/index.d.ts +14 -0
- package/dist/cjs/meta/index.js +12 -0
- package/dist/cjs/notifications/index.d.ts +25 -0
- package/dist/cjs/notifications/index.js +12 -0
- package/dist/esm/bundle/index.js +6 -0
- package/dist/esm/meta/index.d.ts +14 -0
- package/dist/esm/meta/index.js +8 -0
- package/dist/esm/notifications/index.d.ts +25 -0
- package/dist/esm/notifications/index.js +8 -0
- package/package.json +2 -2
package/dist/cjs/bundle/index.js
CHANGED
|
@@ -96,6 +96,12 @@ const PREBUNDLED_LIBS = {
|
|
|
96
96
|
'@elevenlabs/elevenlabs-js': '__elevenlabs__.js',
|
|
97
97
|
'resend': '__resend__.js',
|
|
98
98
|
'@clickhouse/client-web': '__clickhouse__.js',
|
|
99
|
+
// Three packages, one module: the presigners take an S3Client instance, so a
|
|
100
|
+
// separate bundle each would hand them a structurally identical but distinct
|
|
101
|
+
// class. The worker bundles all three together for that reason.
|
|
102
|
+
'@aws-sdk/client-s3': '__aws-s3__.js',
|
|
103
|
+
'@aws-sdk/s3-request-presigner': '__aws-s3__.js',
|
|
104
|
+
'@aws-sdk/s3-presigned-post': '__aws-s3__.js',
|
|
99
105
|
};
|
|
100
106
|
exports.BASE_BUILD_OPTIONS = {
|
|
101
107
|
bundle: true,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type ZiteProjectUser = {
|
|
2
|
+
uuid: string;
|
|
3
|
+
firstName: string | null;
|
|
4
|
+
lastName: string | null;
|
|
5
|
+
email: string;
|
|
6
|
+
profilePictureUrl: string | null;
|
|
7
|
+
};
|
|
8
|
+
export type MetaListUsersResult = {
|
|
9
|
+
users: ZiteProjectUser[];
|
|
10
|
+
};
|
|
11
|
+
export declare class ZiteMeta {
|
|
12
|
+
static listUsers(): Promise<MetaListUsersResult>;
|
|
13
|
+
}
|
|
14
|
+
export declare const Meta: typeof ZiteMeta;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Meta = exports.ZiteMeta = void 0;
|
|
4
|
+
const sdkCall_js_1 = require("../internal/sdkCall.js");
|
|
5
|
+
const META_SDK_INTEGRATION_ID = '__meta__';
|
|
6
|
+
class ZiteMeta {
|
|
7
|
+
static listUsers() {
|
|
8
|
+
return (0, sdkCall_js_1.getSdkCall)()(META_SDK_INTEGRATION_ID, 'ZiteMeta', 'listUsers', {});
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ZiteMeta = ZiteMeta;
|
|
12
|
+
exports.Meta = ZiteMeta;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface NotificationLink {
|
|
2
|
+
path?: string;
|
|
3
|
+
params?: Record<string, string>;
|
|
4
|
+
}
|
|
5
|
+
export type NotificationsCreateParams = {
|
|
6
|
+
recipients: string[];
|
|
7
|
+
title: string;
|
|
8
|
+
body?: string;
|
|
9
|
+
link?: NotificationLink;
|
|
10
|
+
path?: string;
|
|
11
|
+
params?: Record<string, string>;
|
|
12
|
+
payload?: Record<string, unknown>;
|
|
13
|
+
idempotencyKey?: string;
|
|
14
|
+
};
|
|
15
|
+
export type NotificationsCreateResult = {
|
|
16
|
+
created: number;
|
|
17
|
+
} | {
|
|
18
|
+
created: 0;
|
|
19
|
+
preview: true;
|
|
20
|
+
wouldCreate: number;
|
|
21
|
+
};
|
|
22
|
+
export declare class ZiteNotifications {
|
|
23
|
+
static create(params: NotificationsCreateParams): Promise<NotificationsCreateResult>;
|
|
24
|
+
}
|
|
25
|
+
export declare const Notifications: typeof ZiteNotifications;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Notifications = exports.ZiteNotifications = void 0;
|
|
4
|
+
const sdkCall_js_1 = require("../internal/sdkCall.js");
|
|
5
|
+
const NOTIFICATIONS_SDK_INTEGRATION_ID = '__notifications__';
|
|
6
|
+
class ZiteNotifications {
|
|
7
|
+
static create(params) {
|
|
8
|
+
return (0, sdkCall_js_1.getSdkCall)()(NOTIFICATIONS_SDK_INTEGRATION_ID, 'ZiteNotifications', 'create', params);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ZiteNotifications = ZiteNotifications;
|
|
12
|
+
exports.Notifications = ZiteNotifications;
|
package/dist/esm/bundle/index.js
CHANGED
|
@@ -59,6 +59,12 @@ const PREBUNDLED_LIBS = {
|
|
|
59
59
|
'@elevenlabs/elevenlabs-js': '__elevenlabs__.js',
|
|
60
60
|
'resend': '__resend__.js',
|
|
61
61
|
'@clickhouse/client-web': '__clickhouse__.js',
|
|
62
|
+
// Three packages, one module: the presigners take an S3Client instance, so a
|
|
63
|
+
// separate bundle each would hand them a structurally identical but distinct
|
|
64
|
+
// class. The worker bundles all three together for that reason.
|
|
65
|
+
'@aws-sdk/client-s3': '__aws-s3__.js',
|
|
66
|
+
'@aws-sdk/s3-request-presigner': '__aws-s3__.js',
|
|
67
|
+
'@aws-sdk/s3-presigned-post': '__aws-s3__.js',
|
|
62
68
|
};
|
|
63
69
|
export const BASE_BUILD_OPTIONS = {
|
|
64
70
|
bundle: true,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type ZiteProjectUser = {
|
|
2
|
+
uuid: string;
|
|
3
|
+
firstName: string | null;
|
|
4
|
+
lastName: string | null;
|
|
5
|
+
email: string;
|
|
6
|
+
profilePictureUrl: string | null;
|
|
7
|
+
};
|
|
8
|
+
export type MetaListUsersResult = {
|
|
9
|
+
users: ZiteProjectUser[];
|
|
10
|
+
};
|
|
11
|
+
export declare class ZiteMeta {
|
|
12
|
+
static listUsers(): Promise<MetaListUsersResult>;
|
|
13
|
+
}
|
|
14
|
+
export declare const Meta: typeof ZiteMeta;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface NotificationLink {
|
|
2
|
+
path?: string;
|
|
3
|
+
params?: Record<string, string>;
|
|
4
|
+
}
|
|
5
|
+
export type NotificationsCreateParams = {
|
|
6
|
+
recipients: string[];
|
|
7
|
+
title: string;
|
|
8
|
+
body?: string;
|
|
9
|
+
link?: NotificationLink;
|
|
10
|
+
path?: string;
|
|
11
|
+
params?: Record<string, string>;
|
|
12
|
+
payload?: Record<string, unknown>;
|
|
13
|
+
idempotencyKey?: string;
|
|
14
|
+
};
|
|
15
|
+
export type NotificationsCreateResult = {
|
|
16
|
+
created: number;
|
|
17
|
+
} | {
|
|
18
|
+
created: 0;
|
|
19
|
+
preview: true;
|
|
20
|
+
wouldCreate: number;
|
|
21
|
+
};
|
|
22
|
+
export declare class ZiteNotifications {
|
|
23
|
+
static create(params: NotificationsCreateParams): Promise<NotificationsCreateResult>;
|
|
24
|
+
}
|
|
25
|
+
export declare const Notifications: typeof ZiteNotifications;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { getSdkCall } from '../internal/sdkCall.js';
|
|
2
|
+
const NOTIFICATIONS_SDK_INTEGRATION_ID = '__notifications__';
|
|
3
|
+
export class ZiteNotifications {
|
|
4
|
+
static create(params) {
|
|
5
|
+
return getSdkCall()(NOTIFICATIONS_SDK_INTEGRATION_ID, 'ZiteNotifications', 'create', params);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export const Notifications = ZiteNotifications;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zitejs",
|
|
3
|
-
"version": "0.9.
|
|
4
|
-
"description": "The Zite framework
|
|
3
|
+
"version": "0.9.118",
|
|
4
|
+
"description": "The Zite framework — build apps on Zite Database",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
7
7
|
"module": "./dist/esm/index.js",
|