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

@trycourier/client-graphql

Package Overview
Dependencies
Maintainers
3
Versions
501
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trycourier/client-graphql - npm Package Compare versions

Comparing version 5.1.3-internal.e22afd0.0 to 6.0.1-internal.00141d1.0

12

dist/inbox/index.js

@@ -8,14 +8,2 @@ "use strict";

});
Object.defineProperty(exports, "IInboxMessage", {
enumerable: true,
get: function get() {
return message.IInboxMessage;
}
});
Object.defineProperty(exports, "IInboxMessagePreview", {
enumerable: true,
get: function get() {
return messages.IInboxMessagePreview;
}
});
Object.defineProperty(exports, "IGetInboxMessagesParams", {

@@ -22,0 +10,0 @@ enumerable: true,

@@ -40,14 +40,2 @@ "use strict";

});
Object.defineProperty(exports, "IInboxMessagePreview", {
enumerable: true,
get: function get() {
return _inbox.IInboxMessagePreview;
}
});
Object.defineProperty(exports, "IInboxMessage", {
enumerable: true,
get: function get() {
return _inbox.IInboxMessage;
}
});
Object.defineProperty(exports, "IGetInboxMessagesParams", {

@@ -54,0 +42,0 @@ enumerable: true,

4

package.json
{
"name": "@trycourier/client-graphql",
"version": "5.1.3-internal.e22afd0.0+e22afd0",
"version": "6.0.1-internal.00141d1.0+00141d1",
"description": "",

@@ -27,3 +27,3 @@ "main": "dist/index.js",

],
"gitHead": "e22afd02bea2ff4c008be9a11e4be7f75fd76f0a"
"gitHead": "00141d141f9340b87df46100da169d0c17a79b34"
}

@@ -9,4 +9,3 @@ import { Client } from "urql";

import { TrackEvent } from "./track-event";
export { IInboxMessage } from "./message";
export { IInboxMessagePreview, IGetInboxMessagesParams } from "./messages";
export { IGetInboxMessagesParams } from "./messages";
declare const _default: (params: ICourierClientBasicParams | ICourierClientJWTParams | {

@@ -13,0 +12,0 @@ client?: Client;

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

import { IGetInboxMessagesParams, IInboxMessagePreview } from "./messages";
import { IInboxMessagePreview } from "@trycourier/core";
import { IGetInboxMessagesParams } from "./messages";
import { Client } from "urql";

@@ -3,0 +4,0 @@ export declare type GetInboxMessageLists = (lists?: {

@@ -0,23 +1,4 @@

import { IInboxMessage } from "@trycourier/core";
import { Client } from "urql";
export declare const GET_INBOX_MESSAGE = "\n query GetInboxMessage($messageId: String!){\n message(messageId: $messageId) {\n created\n messageId\n read\n content {\n html\n actions {\n background_color\n content\n href\n style\n }\n elemental {\n ... on TextElement {\n type\n content\n }\n ... on ActionElement {\n type\n content\n href\n }\n }\n }\n }\n }\n";
export interface ITextElemental {
type: "text";
content: string;
}
export interface IActionElemental {
background_color?: string;
content: string;
data?: Record<string, any>;
href: string;
type: "text";
}
export interface IInboxMessage {
messageId: string;
read?: string;
created?: string;
content: {
html?: string;
elemental?: Array<ITextElemental | IActionElemental>;
};
}
export declare type GetInboxMessage = (messageId: string) => Promise<{

@@ -24,0 +5,0 @@ message: IInboxMessage;

import { Client } from "urql";
import { IActionElemental } from "./message";
import { IInboxMessagePreview } from "@trycourier/core";
export interface IGetInboxMessagesParams {

@@ -13,14 +13,2 @@ tenantId?: string;

export declare const createGetInboxMessagesQuery: (includePinned?: boolean | undefined) => string;
export interface IInboxMessagePreview {
actions?: IActionElemental[];
archived?: string;
created: string;
data?: Record<string, any>;
messageId: string;
opened?: string;
preview?: string;
read?: string;
tags?: string[];
title?: string;
}
export declare type GetInboxMessages = (params?: IGetInboxMessagesParams, after?: string) => Promise<{

@@ -27,0 +15,0 @@ appendMessages: boolean;

@@ -5,4 +5,4 @@ export { createCourierClient } from "./client";

export { default as Events } from "./events";
export { default as Inbox, IInboxMessagePreview, IInboxMessage, IGetInboxMessagesParams, } from "./inbox";
export { default as Inbox, IGetInboxMessagesParams } from "./inbox";
export { default as Preferences, UpdateRecipientPreferencesPayload, } from "./preferences";
//# sourceMappingURL=index.d.ts.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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