@bzr/bazaar
Advanced tools
Comparing version 1.4.1 to 1.5.0
@@ -1,2 +0,2 @@ | ||
import type { APIOptions, Permission, NewPermission, SubscribeListener, BazaarMessage, Contact, User, GrantedPermission, PermissionTemplate, Doc, BasicLink, ContextOptions, CollectionGetAllOptions, CollectionQueryOptions, SharingNotification, Notification, CreateNotification, Org, Team, PermissionGroup, LinksQuery, PermissionsQuery, GrantedPermissionsQuery, NewPermissionGroup } from "../types"; | ||
import type { APIOptions, Permission, NewPermission, SubscribeListener, BazaarMessage, Contact, User, GrantedPermission, PermissionTemplate, Doc, BasicLink, ContextOptions, CollectionGetAllOptions, CollectionQueryOptions, SharingNotification, Notification, CreateNotification, Org, Team, PermissionGroup, LinksQuery, PermissionsQuery, GrantedPermissionsQuery, NewPermissionGroup, EmailMessage, CalendarInvite } from "../types"; | ||
/** | ||
@@ -376,2 +376,16 @@ * The class that encapsulates the low level data API | ||
}>; | ||
/** | ||
* Send email message | ||
* @returns | ||
*/ | ||
emailSendMessage(emailMessage: EmailMessage): Promise<{ | ||
message: string; | ||
}>; | ||
/** | ||
* Send email event | ||
* @returns | ||
*/ | ||
emailSendCalendarInvite(calendarInvite: CalendarInvite): Promise<{ | ||
message: string; | ||
}>; | ||
private onModalMessage; | ||
@@ -378,0 +392,0 @@ private onModalClose; |
@@ -20,3 +20,3 @@ import { CollectionAPI } from "./api/collection"; | ||
export { OrderByType, PermissionType, LoginType, SendNotification, GranteeType } from "./types"; | ||
export type { User, Contact, Team, Org, AnyPermission, UserPermission, GroupPermission, OrgPermission, Permission, NewPermission, PermissionTemplate, GrantedPermission, PermissionGroup, SharingNotification, FilterObject, FilterComparison, OrderBy, BazaarMessage, Link, Doc, AnyDoc, DeepPartial, SubscribeListener, BazaarOptions, CollectionOptions, ContextOptions, PermissionsQuery, LinksQuery, GrantedPermissionsQuery, } from "./types"; | ||
export type { User, Contact, Team, Org, AnyPermission, UserPermission, GroupPermission, OrgPermission, Permission, NewPermission, PermissionTemplate, GrantedPermission, PermissionGroup, SharingNotification, FilterObject, FilterComparison, OrderBy, BazaarMessage, Link, Doc, AnyDoc, DeepPartial, SubscribeListener, BazaarOptions, CollectionOptions, ContextOptions, PermissionsQuery, LinksQuery, GrantedPermissionsQuery, CalendarInvite, EmailMessage, } from "./types"; | ||
/** | ||
@@ -56,2 +56,7 @@ * The primary class of the Bazaar JS SDK to help you more easily build web apps with Bazaar. | ||
private orgs; | ||
/** | ||
* Access to the email API | ||
* @alpha | ||
*/ | ||
private email; | ||
private bazaarUri; | ||
@@ -58,0 +63,0 @@ constructor(options: BazaarOptions); |
@@ -380,2 +380,26 @@ import { BazaarApp } from ".."; | ||
}; | ||
export type EmailAttachement = { | ||
filename: string; | ||
content: string; | ||
}; | ||
export type IcalEvent = { | ||
method: "publish" | "request" | "reply" | "cancel"; | ||
content: string; | ||
}; | ||
export type EmailMessage = { | ||
toUserIds: string[]; | ||
subject: string; | ||
text?: string; | ||
html?: string; | ||
attachements?: EmailAttachement[]; | ||
icalEvent?: IcalEvent; | ||
}; | ||
export type CalendarInvite = { | ||
userIds: string[]; | ||
eventName: string; | ||
message: string; | ||
startTs: Date; | ||
endTs: Date; | ||
location?: string; | ||
}; | ||
type Prettify<T> = { | ||
@@ -382,0 +406,0 @@ [K in keyof T]: T[K]; |
{ | ||
"name": "@bzr/bazaar", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"description": "The Bazaar SDK. Conveniently use Bazaar with your app in the browser.", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
200403
19
3595