@notionhq/client
Advanced tools
Comparing version 2.2.7 to 2.2.8
{ | ||
"name": "@notionhq/client", | ||
"version": "2.2.7", | ||
"version": "2.2.8", | ||
"description": "A simple and easy to use client for the Notion API", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -5,3 +5,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.listComments = exports.createComment = exports.search = exports.createDatabase = exports.listDatabases = exports.queryDatabase = exports.updateDatabase = exports.getDatabase = exports.appendBlockChildren = exports.listBlockChildren = exports.deleteBlock = exports.updateBlock = exports.getBlock = exports.getPageProperty = exports.updatePage = exports.getPage = exports.createPage = exports.listUsers = exports.getUser = exports.getSelf = void 0; | ||
exports.oauthToken = exports.listComments = exports.createComment = exports.search = exports.createDatabase = exports.listDatabases = exports.queryDatabase = exports.updateDatabase = exports.getDatabase = exports.appendBlockChildren = exports.listBlockChildren = exports.deleteBlock = exports.updateBlock = exports.getBlock = exports.getPageProperty = exports.updatePage = exports.getPage = exports.createPage = exports.listUsers = exports.getUser = exports.getSelf = void 0; | ||
exports.getSelf = { | ||
@@ -193,2 +193,9 @@ method: "get", | ||
}; | ||
exports.oauthToken = { | ||
method: "post", | ||
pathParams: [], | ||
queryParams: [], | ||
bodyParams: ["grant_type", "code", "redirect_uri", "external_account"], | ||
path: () => `oauth/token`, | ||
}; | ||
//# sourceMappingURL=api-endpoints.js.map |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import type { Agent } from "http"; | ||
@@ -3,0 +4,0 @@ import { Logger, LogLevel } from "./logging"; |
@@ -1,17 +0,17 @@ | ||
/// <reference lib="dom" /> | ||
import type { RequestInit as NodeRequestInit, Response as NodeResponse } from "node-fetch"; | ||
type FetchFn = typeof fetch; | ||
type FetchResponse = Awaited<ReturnType<FetchFn>>; | ||
type RequestInit = NonNullable<Parameters<FetchFn>[1]>; | ||
/// <reference types="node" /> | ||
import type { Agent } from "http"; | ||
export type SupportedRequestInfo = string; | ||
export type SupportedRequestInit = { | ||
agent?: NodeRequestInit["agent"]; | ||
body?: NonNullable<RequestInit["body"]> & NonNullable<NodeRequestInit["body"]>; | ||
headers?: NonNullable<RequestInit["headers"]> & NonNullable<NodeRequestInit["headers"]>; | ||
method?: RequestInit["method"]; | ||
redirect?: RequestInit["redirect"]; | ||
agent?: Agent; | ||
body?: string; | ||
headers?: Record<string, string>; | ||
method?: string; | ||
}; | ||
export type SupportedResponse = FetchResponse | NodeResponse; | ||
export type SupportedResponse = { | ||
ok: boolean; | ||
text: () => Promise<string>; | ||
headers: unknown; | ||
status: number; | ||
}; | ||
export type SupportedFetch = (url: SupportedRequestInfo, init?: SupportedRequestInit) => Promise<SupportedResponse>; | ||
export {}; | ||
//# sourceMappingURL=fetch-types.d.ts.map |
{ | ||
"name": "@notionhq/client", | ||
"version": "2.2.7", | ||
"version": "2.2.8", | ||
"description": "A simple and easy to use client for the Notion API", | ||
@@ -5,0 +5,0 @@ "engines": { |
Sorry, the diff of this file is too big to display
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
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
893555
8572
1