@trycourier/client-graphql
Advanced tools
Comparing version 1.14.3-internal.c66337d.0 to 1.15.0
@@ -48,3 +48,2 @@ "use strict"; | ||
return _context.abrupt("return", { | ||
appendMessages: Boolean(after), | ||
banners: banners, | ||
@@ -51,0 +50,0 @@ startCursor: startCursor |
{ | ||
"name": "@trycourier/client-graphql", | ||
"version": "1.14.3-internal.c66337d.0+c66337d", | ||
"version": "1.15.0", | ||
"description": "", | ||
@@ -14,3 +14,2 @@ "main": "dist/index.js", | ||
"type-check": "tsc --noEmit", | ||
"readme": "concat-md --toc --decrease-title-levels --dir-name-as-title docs > README.md", | ||
"types": "tsc --declaration --outDir typings/ --emitDeclarationOnly --declarationMap --allowJs false --checkJs false" | ||
@@ -28,3 +27,3 @@ }, | ||
], | ||
"gitHead": "c66337dc1a5adf809384b7d3cd032ed702e2ff6c" | ||
"gitHead": "8f45c99f7b74d24afa6df3895e12f4bdc1bbfe90" | ||
} |
@@ -21,3 +21,2 @@ ## Courier Client GraphQl | ||
import { createCourierClient } from "@trycourier/client-graphql"; | ||
const courierClient = createCourierClient({ | ||
@@ -28,7 +27,5 @@ clientKey: "abc123", | ||
}); | ||
const messages = Messages({ client: courierClient }) | ||
const events = Events({ events: courierClient }) | ||
const events = Brands({ events: courierClient }) | ||
``` | ||
@@ -45,3 +42,2 @@ | ||
}); | ||
const getMessageCount = async (params?: { | ||
@@ -55,3 +51,2 @@ isRead?: boolean, | ||
}; | ||
const getMessages = async ( | ||
@@ -66,3 +61,2 @@ params?: { | ||
const { startCursor, messages } = await messagesApi.getMessages(params); | ||
return { | ||
@@ -84,3 +78,2 @@ startCursor, | ||
}); | ||
const trackEvent = async (trackingId: string) => { | ||
@@ -100,3 +93,2 @@ await eventsApi.trackEvent(trackingId); | ||
}); | ||
const getBrand = async (brandId?: string) => { | ||
@@ -119,3 +111,2 @@ const myBrand = await brandsApi.getBrand(brandId); | ||
}); | ||
const getBanners = async (params?: { tags?: string[], locale?: string }) => { | ||
@@ -135,3 +126,2 @@ const myBanners = await bannerApi.getBanners(params); | ||
}); | ||
const getBanners = async (params?: { tags?: string[], locale?: string }) => { | ||
@@ -138,0 +128,0 @@ const myBanners = await bannerApi.getBanners(params); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
37243
611
123