@frontapp/ui-bridge
Advanced tools
Comparing version 2.0.0-beta13 to 2.0.0-beta14
@@ -6,3 +6,3 @@ import { ApplicationCancelToken } from './asyncTypesV2'; | ||
import { ApplicationDraft, ApplicationDraftTemplate, ApplicationDraftUpdate } from './draftTypesV2'; | ||
import { EntryPointTypesEnum } from './entryPointTypesV2'; | ||
import { EntryPoint, EntryPointTypesEnum } from './entryPointTypesV2'; | ||
import { HttpRequest, HttpResponse } from './httpTypesV2'; | ||
@@ -145,2 +145,4 @@ import { ApplicationAttachmentId, ApplicationCommentId, ApplicationConversationId, ApplicationDraftId, ApplicationInboxId, ApplicationMessageId, ApplicationTagId, ApplicationTeammateId, ApplicationTopicId } from './idTypesV2'; | ||
updateDraft(draftId: ApplicationDraftId, update: ApplicationDraftUpdate, cancelToken?: ApplicationCancelToken): Promise<void>; | ||
/** Entry point of the application. */ | ||
entryPoint: EntryPoint; | ||
} | ||
@@ -419,3 +421,3 @@ export declare enum EntryPointNotificationTypesEnum { | ||
[EntryPointTypesEnum.MESSAGE_MORE_DROPDOWN]: MessageContext; | ||
[EntryPointTypesEnum.SIDE_PANEL]: ConversationContext; | ||
[EntryPointTypesEnum.SIDE_PANEL]: ConversationContext | BackgroundContext; | ||
[EntryPointTypesEnum.COMPOSER_TOOLBAR]: MessageComposerContext; | ||
@@ -422,0 +424,0 @@ } |
@@ -11,1 +11,17 @@ export declare enum EntryPointTypesEnum { | ||
} | ||
export declare enum EntryPointDataTypesEnum { | ||
CONTACT_HANDLE = "contact_handle" | ||
} | ||
export declare enum EntryPointDataDataTypesEnum { | ||
PHONE = "phone" | ||
} | ||
export interface PhoneEntryPoint { | ||
type: EntryPointDataDataTypesEnum.PHONE; | ||
handle: string; | ||
timestamp?: number; | ||
} | ||
export interface ContactHandleEntryPoint { | ||
type: EntryPointDataTypesEnum.CONTACT_HANDLE; | ||
data: PhoneEntryPoint; | ||
} | ||
export type EntryPoint = ContactHandleEntryPoint | undefined; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EntryPointTypesEnum = void 0; | ||
exports.EntryPointDataDataTypesEnum = exports.EntryPointDataTypesEnum = exports.EntryPointTypesEnum = void 0; | ||
var EntryPointTypesEnum; | ||
@@ -15,1 +15,12 @@ (function (EntryPointTypesEnum) { | ||
})(EntryPointTypesEnum || (exports.EntryPointTypesEnum = EntryPointTypesEnum = {})); | ||
/* | ||
* Entry point data types. | ||
*/ | ||
var EntryPointDataTypesEnum; | ||
(function (EntryPointDataTypesEnum) { | ||
EntryPointDataTypesEnum["CONTACT_HANDLE"] = "contact_handle"; | ||
})(EntryPointDataTypesEnum || (exports.EntryPointDataTypesEnum = EntryPointDataTypesEnum = {})); | ||
var EntryPointDataDataTypesEnum; | ||
(function (EntryPointDataDataTypesEnum) { | ||
EntryPointDataDataTypesEnum["PHONE"] = "phone"; | ||
})(EntryPointDataDataTypesEnum || (exports.EntryPointDataDataTypesEnum = EntryPointDataDataTypesEnum = {})); |
@@ -23,5 +23,4 @@ "use strict"; | ||
var _newTarget = this.constructor; | ||
var _this = | ||
// "Error" breaks the prototype chain here. | ||
_super.call(this, message) || this; | ||
var _this = _super.call(this, message) || this; | ||
// We need to restore it. | ||
@@ -28,0 +27,0 @@ var actualPrototype = _newTarget.prototype; |
{ | ||
"name": "@frontapp/ui-bridge", | ||
"version": "2.0.0-beta13", | ||
"version": "2.0.0-beta14", | ||
"description": "Helpers and TypeScript definitions for the Front SDK bridge", | ||
@@ -5,0 +5,0 @@ "author": { |
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
54779
1214