@trycourier/client-graphql
Advanced tools
Comparing version 6.0.1-internal.dfd8fb3.0 to 6.1.0
@@ -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, |
{ | ||
"name": "@trycourier/client-graphql", | ||
"version": "6.0.1-internal.dfd8fb3.0+dfd8fb3", | ||
"version": "6.1.0", | ||
"description": "", | ||
@@ -27,3 +27,3 @@ "main": "dist/index.js", | ||
], | ||
"gitHead": "dfd8fb39b79e886b207a2a1f485eb1cbb4f1a066" | ||
"gitHead": "4dcefdb0870a9915baf86eda3d729aaff242bfa5" | ||
} |
@@ -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<{ | ||
@@ -30,4 +18,5 @@ appendMessages: boolean; | ||
messages: IInboxMessagePreview[]; | ||
pinned?: IInboxMessagePreview[]; | ||
} | undefined>; | ||
export declare const getInboxMessages: (client?: Client | undefined) => GetInboxMessages; | ||
//# sourceMappingURL=messages.d.ts.map |
@@ -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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
0
76203
1156