Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@frontapp/ui-bridge

Package Overview
Dependencies
Maintainers
7
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frontapp/ui-bridge - npm Package Compare versions

Comparing version 2.0.0-beta1 to 2.0.0-beta2

dist/internal/linkTypesV2.d.ts

13

CHANGELOG.md

@@ -11,2 +11,15 @@ # Front UI Bridge

## 2.0.0-beta2
### Added
- `addLink` method for a context type.
- `links` field for a conversation type.
- `ApplicationLink` type.
### Deprecated
- `addTopic` method for a context type. Replaced with `addLink`.
- `topics` field for a conversation type. Replaced with `links`.
## 2.0.0

@@ -13,0 +26,0 @@

1

dist/bridgeTypesV2.d.ts

@@ -36,2 +36,3 @@ import { Observable } from 'rxjs';

export * from './internal/inboxTypesV2';
export * from './internal/linkTypesV2';
export * from './internal/messageTypesV2';

@@ -38,0 +39,0 @@ export * from './internal/paginationTypesV2';

38

dist/bridgeTypesV2.js
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getBridge = void 0;
function getBridge() {

@@ -14,6 +22,20 @@ // eslint-disable-next-line no-undef

*/
__export(require("./internal/asyncTypesV2"));
__export(require("./internal/entryPointTypesV2"));
__export(require("./internal/errorTypesV2"));
__export(require("./internal/httpTypesV2"));
__export(require("./internal/widgetTypesV2"));
__exportStar(require("./internal/asyncTypesV2"), exports);
__exportStar(require("./internal/channelTypesV2"), exports);
__exportStar(require("./internal/contactTypesV2"), exports);
__exportStar(require("./internal/contextTypesV2"), exports);
__exportStar(require("./internal/conversationTypesV2"), exports);
__exportStar(require("./internal/draftTypesV2"), exports);
__exportStar(require("./internal/entryPointTypesV2"), exports);
__exportStar(require("./internal/errorTypesV2"), exports);
__exportStar(require("./internal/httpTypesV2"), exports);
__exportStar(require("./internal/idTypesV2"), exports);
__exportStar(require("./internal/inboxTypesV2"), exports);
__exportStar(require("./internal/linkTypesV2"), exports);
__exportStar(require("./internal/messageTypesV2"), exports);
__exportStar(require("./internal/paginationTypesV2"), exports);
__exportStar(require("./internal/recipientTypesV2"), exports);
__exportStar(require("./internal/tagTypesV2"), exports);
__exportStar(require("./internal/teammateTypesV2"), exports);
__exportStar(require("./internal/topicTypesV2"), exports);
__exportStar(require("./internal/widgetTypesV2"), exports);

@@ -6,6 +6,8 @@ "use strict";

({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);

@@ -17,2 +19,3 @@ function __() { this.constructor = d; }

Object.defineProperty(exports, "__esModule", { value: true });
exports.buildApplicationCancelTokenSource = exports.ApplicationCancelError = void 0;
var errorTypesV2_1 = require("./errorTypesV2");

@@ -19,0 +22,0 @@ var ApplicationCancelError = /** @class */ (function (_super) {

@@ -1,2 +0,2 @@

import { ApplicationContactGroupId, ApplicationContactId, ApplicationCustomFieldId, ApplicationTeammateId } from './idTypesV2';
import { ApplicationContactGroupId, ApplicationContactId, ApplicationCustomFieldId, ApplicationInboxId, ApplicationTeammateId } from './idTypesV2';
export interface ApplicationContact {

@@ -29,2 +29,3 @@ /** Unique ID of the Contact. */

teammateId: ApplicationTeammateId;
inboxId: ApplicationInboxId;
unknown: string;

@@ -38,3 +39,3 @@ }

}
export declare type ApplicationCustomAttribute = ApplicationCustomAttributeBase<'string'> | ApplicationCustomAttributeBase<'datetime'> | ApplicationCustomAttributeBase<'boolean'> | ApplicationCustomAttributeBase<'number'> | ApplicationCustomAttributeBase<'teammateId'> | ApplicationCustomAttributeBase<'unknown'>;
export declare type ApplicationCustomAttribute = ApplicationCustomAttributeBase<'string'> | ApplicationCustomAttributeBase<'datetime'> | ApplicationCustomAttributeBase<'boolean'> | ApplicationCustomAttributeBase<'number'> | ApplicationCustomAttributeBase<'teammateId'> | ApplicationCustomAttributeBase<'inboxId'> | ApplicationCustomAttributeBase<'unknown'>;
export {};

@@ -9,2 +9,3 @@ import { ApplicationCancelToken } from './asyncTypesV2';

import { ApplicationInboxList } from './inboxTypesV2';
import { ApplicationLink } from './linkTypesV2';
import { ApplicationMessageList } from './messageTypesV2';

@@ -124,5 +125,14 @@ import { ApplicationPaginationToken } from './paginationTypesV2';

* @returns The added topic.
* @deprecated
*/
addTopic(externalUrl: string, name: string | undefined, cancelToken?: ApplicationCancelToken): Promise<ApplicationTopic>;
/**
* Add a link to the selected conversations.
* @param externalUrl URL of the topic.
* @param name Human readable name.
* @param cancelToken Cancel the creation of the link.
* @returns The added link.
*/
addLink(externalUrl: string, name: string | undefined, cancelToken?: ApplicationCancelToken): Promise<ApplicationLink>;
/**
* Assign or unassign the selected conversations.

@@ -129,0 +139,0 @@ * @param teammateId ID of the teammate to assign the conversations to. If null, the conversations will be unassigned.

import { ApplicationConversationId, ApplicationDraftId } from './idTypesV2';
import { ApplicationInbox } from './inboxTypesV2';
import { ApplicationLink } from './linkTypesV2';
import { ApplicationRecipient } from './recipientTypesV2';

@@ -28,4 +29,6 @@ import { ApplicationTag } from './tagTypesV2';

tags: ReadonlyArray<ApplicationTag>;
/** Topics attached to the conversation. */
/** @deprecated Topics attached to the conversation. */
topics: ReadonlyArray<ApplicationTopic>;
/** Links attached to the conversation. */
links: ReadonlyArray<ApplicationLink>;
}

@@ -32,0 +35,0 @@ export interface ApplicationSingleConversation extends ApplicationConversation {

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.EntryPointTypesEnum = void 0;
var EntryPointTypesEnum;

@@ -8,0 +9,0 @@ (function (EntryPointTypesEnum) {

@@ -6,6 +6,8 @@ "use strict";

({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);

@@ -17,2 +19,3 @@ function __() { this.constructor = d; }

Object.defineProperty(exports, "__esModule", { value: true });
exports.ApplicationDefaultError = exports.ApplicationError = void 0;
var ApplicationError = /** @class */ (function (_super) {

@@ -19,0 +22,0 @@ __extends(ApplicationError, _super);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HttpVerbsEnum = void 0;
var HttpVerbsEnum;

@@ -4,0 +5,0 @@ (function (HttpVerbsEnum) {

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.WidgetTypesEnum = void 0;
var WidgetTypesEnum;

@@ -8,0 +9,0 @@ (function (WidgetTypesEnum) {

{
"name": "@frontapp/ui-bridge",
"version": "2.0.0-beta1",
"version": "2.0.0-beta2",
"description": "Helpers and TypeScript definitions for the Front SDK bridge",

@@ -22,5 +22,8 @@ "author": {

"dependencies": {
"rxjs": "^6.5.3",
"io-ts": "^2.1.0"
"io-ts": "^2.1.0",
"rxjs": "^6.5.3"
},
"devDependencies": {
"typescript": "^4.5.4"
}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc