@secret-momo/notion 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/utils.d.ts +5 -0
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type NumberPropertyItemObjectResponse, type PageObjectResponse, type RichTextItemResponse } from '@notionhq/client';
|
|
2
2
|
export type { NumberPropertyItemObjectResponse, PageObjectResponse, RichTextItemResponse };
|
|
3
|
-
export { n, DEFAULT_TITLE_PROPERTY_NAME } from './utils';
|
|
3
|
+
export { n, DEFAULT_TITLE_PROPERTY_NAME, getNotionPageInfo } from './utils';
|
|
4
4
|
export { buildNotionPageWebUrl, getId } from './helpers/page';
|
|
5
5
|
export { NotionClient, type CreatePageWithTitleParameters } from './notion-client';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gCAAgC,EACrC,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EAAE,gCAAgC,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,CAAC;AAE3F,OAAO,EAAE,CAAC,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gCAAgC,EACrC,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EAAE,gCAAgC,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,CAAC;AAE3F,OAAO,EAAE,CAAC,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,KAAK,6BAA6B,EAAE,MAAM,iBAAiB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"@notionhq/client";import{DEFAULT_TITLE_PROPERTY_NAME as
|
|
1
|
+
import"@notionhq/client";import{DEFAULT_TITLE_PROPERTY_NAME as r,getNotionPageInfo as i,n}from"./utils.js";import{buildNotionPageWebUrl as g,getId as m}from"./helpers/page.js";import{NotionClient as E}from"./notion-client.js";export{r as DEFAULT_TITLE_PROPERTY_NAME,E as NotionClient,g as buildNotionPageWebUrl,m as getId,i as getNotionPageInfo,n};
|
package/lib/utils.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import type { PageObjectResponse } from '@notionhq/client';
|
|
1
2
|
export declare const DEFAULT_TITLE_PROPERTY_NAME = "\u540D\u79F0";
|
|
2
3
|
export declare function n(num?: number): number | null;
|
|
4
|
+
export declare function getNotionPageInfo(page: PageObjectResponse): {
|
|
5
|
+
notionId: number;
|
|
6
|
+
notionLink: string;
|
|
7
|
+
};
|
|
3
8
|
//# sourceMappingURL=utils.d.ts.map
|
package/lib/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,iBAAO,CAAC;AAEhD,wBAAgB,CAAC,CAAC,GAAG,CAAC,EAAE,MAAM,iBAE7B"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAI3D,eAAO,MAAM,2BAA2B,iBAAO,CAAC;AAEhD,wBAAgB,CAAC,CAAC,GAAG,CAAC,EAAE,MAAM,iBAE7B;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,kBAAkB;;;EAKzD"}
|
package/lib/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
import{buildNotionPageWebUrl as o,getId as t}from"./helpers/page.js";const i="\u540D\u79F0";function e(n){return n??null}function r(n){return{notionId:t(n),notionLink:o(n.id)}}export{i as DEFAULT_TITLE_PROPERTY_NAME,r as getNotionPageInfo,e as n};
|