@nx-ddd/notion 19.0.0-preview.9 → 19.1.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/fesm2022/nx-ddd-notion.mjs +540 -0
- package/fesm2022/nx-ddd-notion.mjs.map +1 -0
- package/index.d.ts +593 -6
- package/package.json +18 -12
- package/README.md +0 -11
- package/_testing/entity.d.ts +0 -20
- package/_testing/entity.js +0 -44
- package/_testing/entity.js.map +0 -1
- package/_testing/index.d.ts +0 -1
- package/_testing/index.js +0 -5
- package/_testing/index.js.map +0 -1
- package/converter/converter.d.ts +0 -7
- package/converter/converter.js +0 -37
- package/converter/converter.js.map +0 -1
- package/converter/index.d.ts +0 -1
- package/converter/index.js +0 -5
- package/converter/index.js.map +0 -1
- package/decorators/decorators.d.ts +0 -50
- package/decorators/decorators.js +0 -58
- package/decorators/decorators.js.map +0 -1
- package/decorators/index.d.ts +0 -1
- package/decorators/index.js +0 -5
- package/decorators/index.js.map +0 -1
- package/index.js +0 -10
- package/index.js.map +0 -1
- package/notion/index.d.ts +0 -1
- package/notion/index.js +0 -5
- package/notion/index.js.map +0 -1
- package/notion/notion.service.d.ts +0 -8
- package/notion/notion.service.impl.d.ts +0 -30
- package/notion/notion.service.impl.js +0 -142
- package/notion/notion.service.impl.js.map +0 -1
- package/notion/notion.service.js +0 -12
- package/notion/notion.service.js.map +0 -1
- package/query/index.d.ts +0 -1
- package/query/index.js +0 -5
- package/query/index.js.map +0 -1
- package/query/query.d.ts +0 -168
- package/query/query.js +0 -122
- package/query/query.js.map +0 -1
- package/query-builder/index.d.ts +0 -1
- package/query-builder/index.js +0 -5
- package/query-builder/index.js.map +0 -1
- package/query-builder/query-builder.d.ts +0 -27
- package/query-builder/query-builder.js +0 -30
- package/query-builder/query-builder.js.map +0 -1
- package/repository/index.d.ts +0 -1
- package/repository/index.js +0 -5
- package/repository/index.js.map +0 -1
- package/repository/repository.d.ts +0 -48
- package/repository/repository.js +0 -112
- package/repository/repository.js.map +0 -1
- package/utils.d.ts +0 -252
- package/utils.js +0 -184
- package/utils.js.map +0 -1
package/_testing/entity.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EntityConverter = exports.Entity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const converter_1 = require("../converter");
|
|
6
|
-
const decorators_1 = require("../decorators");
|
|
7
|
-
class Entity {
|
|
8
|
-
static from(obj) {
|
|
9
|
-
return Object.assign(new Entity(), Object.assign({}, obj));
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.Entity = Entity;
|
|
13
|
-
tslib_1.__decorate([
|
|
14
|
-
(0, decorators_1.Title)('タイトル'),
|
|
15
|
-
tslib_1.__metadata("design:type", String)
|
|
16
|
-
], Entity.prototype, "title", void 0);
|
|
17
|
-
tslib_1.__decorate([
|
|
18
|
-
(0, decorators_1.Status)('ステータス'),
|
|
19
|
-
tslib_1.__metadata("design:type", String)
|
|
20
|
-
], Entity.prototype, "status", void 0);
|
|
21
|
-
tslib_1.__decorate([
|
|
22
|
-
(0, decorators_1.Relation)('一次選考'),
|
|
23
|
-
tslib_1.__metadata("design:type", Array)
|
|
24
|
-
], Entity.prototype, "firstSelectionIds", void 0);
|
|
25
|
-
tslib_1.__decorate([
|
|
26
|
-
(0, decorators_1.Formula)('一次選考開始文(Discord)'),
|
|
27
|
-
tslib_1.__metadata("design:type", String)
|
|
28
|
-
], Entity.prototype, "discordFirstSelectionMessage", void 0);
|
|
29
|
-
tslib_1.__decorate([
|
|
30
|
-
(0, decorators_1.Formula)('二次選考開始文(Discord)'),
|
|
31
|
-
tslib_1.__metadata("design:type", String)
|
|
32
|
-
], Entity.prototype, "discordSecondSelectionMessage", void 0);
|
|
33
|
-
tslib_1.__decorate([
|
|
34
|
-
(0, decorators_1.RichText)('discordChannelId'),
|
|
35
|
-
tslib_1.__metadata("design:type", String)
|
|
36
|
-
], Entity.prototype, "discordChannelId", void 0);
|
|
37
|
-
class EntityConverter extends converter_1.NotionConverter {
|
|
38
|
-
constructor() {
|
|
39
|
-
super(...arguments);
|
|
40
|
-
this.Entity = Entity;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.EntityConverter = EntityConverter;
|
|
44
|
-
//# sourceMappingURL=entity.js.map
|
package/_testing/entity.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/notion/src/lib/_testing/entity.ts"],"names":[],"mappings":";;;;AAAA,4CAA+C;AAC/C,8CAA2E;AAE3E,MAAa,MAAM;IAmBjB,MAAM,CAAC,IAAI,CAAC,GAAoB;QAC9B,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,MAAM,EAAE,oBAAM,GAAG,EAAE,CAAC;IAC/C,CAAC;CACF;AAtBD,wBAsBC;AApBC;IADC,IAAA,kBAAK,EAAC,MAAM,CAAC;;qCACA;AAGd;IADC,IAAA,mBAAM,EAAC,OAAO,CAAC;;sCACD;AAGf;IADC,IAAA,qBAAQ,EAAC,MAAM,CAAC;;iDACW;AAG5B;IADC,IAAA,oBAAO,EAAC,kBAAkB,CAAC;;4DACS;AAGrC;IADC,IAAA,oBAAO,EAAC,kBAAkB,CAAC;;6DACU;AAGtC;IADC,IAAA,qBAAQ,EAAC,kBAAkB,CAAC;;gDACJ;AAO3B,MAAa,eAAgB,SAAQ,2BAAuB;IAA5D;;QACY,WAAM,GAAG,MAAM,CAAC;IAC5B,CAAC;CAAA;AAFD,0CAEC"}
|
package/_testing/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './entity';
|
package/_testing/index.js
DELETED
package/_testing/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/notion/src/lib/_testing/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB"}
|
package/converter/converter.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PageObjectResponse, PartialPageObjectResponse, PartialDatabaseObjectResponse, DatabaseObjectResponse } from "@notionhq/client/build/src/api-endpoints";
|
|
2
|
-
export declare abstract class NotionConverter<E> {
|
|
3
|
-
protected abstract Entity: any;
|
|
4
|
-
fromNotion(page: PageObjectResponse | PartialPageObjectResponse | PartialDatabaseObjectResponse | DatabaseObjectResponse): E;
|
|
5
|
-
toNotion(entity: Partial<E>): object;
|
|
6
|
-
}
|
|
7
|
-
export declare function createConverter<E = any>(Entity: any): NotionConverter<E>;
|
package/converter/converter.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotionConverter = void 0;
|
|
4
|
-
exports.createConverter = createConverter;
|
|
5
|
-
const utils_1 = require("../utils");
|
|
6
|
-
const decorators_1 = require("../decorators");
|
|
7
|
-
const lodash_es_1 = require("lodash-es");
|
|
8
|
-
class NotionConverter {
|
|
9
|
-
fromNotion(page) {
|
|
10
|
-
var _a;
|
|
11
|
-
const annotations = (_a = this.Entity[decorators_1.NOTION_ANNOTATIONS]) !== null && _a !== void 0 ? _a : [];
|
|
12
|
-
const obj = annotations.reduce((obj, annotation) => {
|
|
13
|
-
const value = page['properties'][annotation.fieldName]
|
|
14
|
-
? utils_1.NotionUtils.fromNotionValue(page['properties'][annotation.fieldName], annotation)
|
|
15
|
-
: undefined;
|
|
16
|
-
return Object.assign(Object.assign({}, obj), { [annotation.propName]: value });
|
|
17
|
-
}, { id: page.id });
|
|
18
|
-
return this.Entity.from(obj);
|
|
19
|
-
}
|
|
20
|
-
toNotion(entity) {
|
|
21
|
-
var _a;
|
|
22
|
-
const annotations = (_a = this.Entity[decorators_1.NOTION_ANNOTATIONS]) !== null && _a !== void 0 ? _a : [];
|
|
23
|
-
const data = annotations.reduce((obj, annotation) => (Object.assign(Object.assign({}, obj), { [annotation.fieldName]: utils_1.NotionUtils.toNotionValue(entity[annotation.propName], annotation) })), {});
|
|
24
|
-
return (0, lodash_es_1.omitBy)(data, (value) => typeof value === 'undefined');
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.NotionConverter = NotionConverter;
|
|
28
|
-
function createConverter(Entity) {
|
|
29
|
-
class Converter extends NotionConverter {
|
|
30
|
-
constructor() {
|
|
31
|
-
super(...arguments);
|
|
32
|
-
this.Entity = Entity;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return new Converter();
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=converter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/notion/src/lib/converter/converter.ts"],"names":[],"mappings":";;;AA4BA,0CAMC;AAjCD,oCAAuC;AACvC,8CAAqE;AACrE,yCAAmC;AAEnC,MAAsB,eAAe;IAGnC,UAAU,CAAC,IAA6G;;QACtH,MAAM,WAAW,GAAuB,MAAA,IAAI,CAAC,MAAM,CAAC,+BAAkB,CAAC,mCAAI,EAAE,CAAC;QAC9E,MAAM,GAAG,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,UAAU,EAAE,EAAE;YACjD,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC;gBACpD,CAAC,CAAC,mBAAW,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC;gBACnF,CAAC,CAAC,SAAS,CAAC;YACd,uCAAW,GAAG,KAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,KAAK,IAAE;QAChD,CAAC,EAAE,EAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAC,CAAC,CAAC;QAClB,OAAQ,IAAI,CAAC,MAAc,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACxC,CAAC;IAED,QAAQ,CAAC,MAAkB;;QACzB,MAAM,WAAW,GAAuB,MAAA,IAAI,CAAC,MAAM,CAAC,+BAAkB,CAAC,mCAAI,EAAE,CAAC;QAC9E,MAAM,IAAI,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,UAAU,EAAE,EAAE,CAAC,iCAChD,GAAG,KAAE,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,mBAAW,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,IAClG,EAAE,EAAE,CAAC,CAAC;QACR,OAAO,IAAA,kBAAM,EAAC,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,WAAW,CAAC,CAAC;IAC/D,CAAC;CACF;AArBD,0CAqBC;AAED,SAAgB,eAAe,CAAU,MAAW;IAClD,MAAM,SAAU,SAAQ,eAAkB;QAA1C;;YACY,WAAM,GAAG,MAAM,CAAC;QAC5B,CAAC;KAAA;IAED,OAAO,IAAI,SAAS,EAAE,CAAC;AACzB,CAAC"}
|
package/converter/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './converter';
|
package/converter/index.js
DELETED
package/converter/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/notion/src/lib/converter/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export declare const NOTION_ANNOTATIONS = "notion_annotations";
|
|
2
|
-
export type NotionFieldType = 'title' | 'url' | 'rich_text' | 'relation' | 'status' | 'formula' | 'rollup' | 'timestamp' | 'number' | 'created_time' | 'last_edited_time' | 'date' | 'select' | 'phone_number' | 'email' | 'checkbox' | 'created_by' | 'files' | 'last_edited_by' | 'multi_select' | 'people' | 'unique_id';
|
|
3
|
-
export interface NotionAnnotation<T extends object = undefined> {
|
|
4
|
-
type: NotionFieldType;
|
|
5
|
-
fieldName: string;
|
|
6
|
-
propName: string;
|
|
7
|
-
options?: T;
|
|
8
|
-
}
|
|
9
|
-
export declare const Title: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
10
|
-
export declare const Url: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
11
|
-
export declare const RichText: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
12
|
-
export declare const Relation: (name?: string, options?: Partial<{
|
|
13
|
-
multi: boolean;
|
|
14
|
-
}>) => (target: any, propName: string) => void;
|
|
15
|
-
export declare const Status: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
16
|
-
export declare const Formula: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
17
|
-
export declare const Rollup: (name?: string, options?: Partial<{
|
|
18
|
-
multi: boolean;
|
|
19
|
-
}>) => (target: any, propName: string) => void;
|
|
20
|
-
export declare const Timestamp: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
21
|
-
export declare const Number: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
22
|
-
export declare const CreatedTime: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
23
|
-
export declare const LastEditedTime: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
24
|
-
export declare const Date: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
25
|
-
export declare const Select: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
26
|
-
export declare const PhoneNumber: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
27
|
-
export declare const Email: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
28
|
-
export declare const UniqueID: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
29
|
-
export declare const Notion: {
|
|
30
|
-
Title: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
31
|
-
Url: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
32
|
-
RichText: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
33
|
-
Relation: (name?: string, options?: Partial<{
|
|
34
|
-
multi: boolean;
|
|
35
|
-
}>) => (target: any, propName: string) => void;
|
|
36
|
-
Status: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
37
|
-
Formula: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
38
|
-
Rollup: (name?: string, options?: Partial<{
|
|
39
|
-
multi: boolean;
|
|
40
|
-
}>) => (target: any, propName: string) => void;
|
|
41
|
-
Timestamp: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
42
|
-
Number: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
43
|
-
CreatedTime: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
44
|
-
LastEditedTime: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
45
|
-
Date: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
46
|
-
Select: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
47
|
-
PhoneNumber: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
48
|
-
Email: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
49
|
-
UniqueID: (name?: string, options?: undefined) => (target: any, propName: string) => void;
|
|
50
|
-
};
|
package/decorators/decorators.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Notion = exports.UniqueID = exports.Email = exports.PhoneNumber = exports.Select = exports.Date = exports.LastEditedTime = exports.CreatedTime = exports.Number = exports.Timestamp = exports.Rollup = exports.Formula = exports.Status = exports.Relation = exports.RichText = exports.Url = exports.Title = exports.NOTION_ANNOTATIONS = void 0;
|
|
4
|
-
exports.NOTION_ANNOTATIONS = 'notion_annotations';
|
|
5
|
-
function createDecorator(type, defaultOptions) {
|
|
6
|
-
return (name, options) => {
|
|
7
|
-
return (target, propName) => {
|
|
8
|
-
var _a;
|
|
9
|
-
var _b;
|
|
10
|
-
const fieldName = name || propName;
|
|
11
|
-
const ANNOTATION = { type, fieldName, propName, options: Object.assign(Object.assign({}, defaultOptions), options) };
|
|
12
|
-
(_a = (_b = target.constructor)[exports.NOTION_ANNOTATIONS]) !== null && _a !== void 0 ? _a : (_b[exports.NOTION_ANNOTATIONS] = []);
|
|
13
|
-
target.constructor[exports.NOTION_ANNOTATIONS].push(ANNOTATION);
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
exports.Title = createDecorator('title');
|
|
18
|
-
exports.Url = createDecorator('url');
|
|
19
|
-
exports.RichText = createDecorator('rich_text');
|
|
20
|
-
exports.Relation = createDecorator('relation', { multi: false });
|
|
21
|
-
exports.Status = createDecorator('status');
|
|
22
|
-
exports.Formula = createDecorator('formula');
|
|
23
|
-
exports.Rollup = createDecorator('rollup', { multi: false });
|
|
24
|
-
exports.Timestamp = createDecorator('timestamp');
|
|
25
|
-
exports.Number = createDecorator('number');
|
|
26
|
-
exports.CreatedTime = createDecorator('created_time');
|
|
27
|
-
exports.LastEditedTime = createDecorator('last_edited_time');
|
|
28
|
-
exports.Date = createDecorator('date');
|
|
29
|
-
exports.Select = createDecorator('select');
|
|
30
|
-
exports.PhoneNumber = createDecorator('phone_number');
|
|
31
|
-
exports.Email = createDecorator('email');
|
|
32
|
-
exports.UniqueID = createDecorator('unique_id');
|
|
33
|
-
// Not implemented below props!
|
|
34
|
-
// export const Checkbox = createDecorator('checkbox');
|
|
35
|
-
// export const CreatedBy = createDecorator('created_by');
|
|
36
|
-
// export const Files = createDecorator('files');
|
|
37
|
-
// export const LastEditedBy = createDecorator('last_edited_by');
|
|
38
|
-
// export const MultiSelect = createDecorator('multi_select');
|
|
39
|
-
// export const People = createDecorator('people');
|
|
40
|
-
exports.Notion = {
|
|
41
|
-
Title: exports.Title,
|
|
42
|
-
Url: exports.Url,
|
|
43
|
-
RichText: exports.RichText,
|
|
44
|
-
Relation: exports.Relation,
|
|
45
|
-
Status: exports.Status,
|
|
46
|
-
Formula: exports.Formula,
|
|
47
|
-
Rollup: exports.Rollup,
|
|
48
|
-
Timestamp: exports.Timestamp,
|
|
49
|
-
Number: exports.Number,
|
|
50
|
-
CreatedTime: exports.CreatedTime,
|
|
51
|
-
LastEditedTime: exports.LastEditedTime,
|
|
52
|
-
Date: exports.Date,
|
|
53
|
-
Select: exports.Select,
|
|
54
|
-
PhoneNumber: exports.PhoneNumber,
|
|
55
|
-
Email: exports.Email,
|
|
56
|
-
UniqueID: exports.UniqueID,
|
|
57
|
-
};
|
|
58
|
-
//# sourceMappingURL=decorators.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/notion/src/lib/decorators/decorators.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAavD,SAAS,eAAe,CAA+B,IAAqB,EAAE,cAAkB;IAC9F,OAAO,CAAC,IAAa,EAAE,OAAoB,EAAE,EAAE;QAC7C,OAAO,CAAC,MAAW,EAAE,QAAgB,EAAE,EAAE;;;YACvC,MAAM,SAAS,GAAG,IAAI,IAAI,QAAQ,CAAC;YACnC,MAAM,UAAU,GAAwB,EAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,kCAAM,cAAc,GAAK,OAAO,CAAC,EAAC,CAAC;YAC9G,YAAA,MAAM,CAAC,WAAW,EAAC,0BAAkB,wCAAlB,0BAAkB,IAAM,EAAE,EAAC;YAC9C,MAAM,CAAC,WAAW,CAAC,0BAAkB,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC1D,CAAC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAEY,QAAA,KAAK,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;AACjC,QAAA,G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M;IACN,WAAW,EAAX,mBAAW;IACX,cAAc,EAAd,sBAAc;IACd,IAAI,EAAJ,YAAI;IACJ,MAAM,EAAN,cAAM;IACN,WAAW,EAAX,mBAAW;IACX,KAAK,EAAL,aAAK;IACL,QAAQ,EAAR,gBAAQ;CACT,CAAC"}
|
package/decorators/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './decorators';
|
package/decorators/index.js
DELETED
package/decorators/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/notion/src/lib/decorators/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B"}
|
package/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./converter"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./decorators"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./query"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./query-builder"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./repository"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./utils"), exports);
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
package/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/@nx-ddd/notion/src/lib/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,uDAA6B;AAC7B,kDAAwB;AACxB,0DAAgC;AAChC,uDAA6B;AAC7B,kDAAwB"}
|
package/notion/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './notion.service';
|
package/notion/index.js
DELETED
package/notion/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/notion/src/lib/notion/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from "@angular/core";
|
|
2
|
-
import type { NotionService } from "./notion.service.impl";
|
|
3
|
-
export interface NotionConfig {
|
|
4
|
-
token: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const NOTION_SERVICE: InjectionToken<NotionService>;
|
|
7
|
-
export declare const NOTION_CONFIG: InjectionToken<NotionConfig>;
|
|
8
|
-
export declare function injectNotion(): NotionService;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, Provider } from '@angular/core';
|
|
2
|
-
import { LocalStorage } from "node-localstorage";
|
|
3
|
-
export interface NotionConfig {
|
|
4
|
-
token: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const NOTION_CONFIG: InjectionToken<NotionConfig>;
|
|
7
|
-
export declare function provideNotionService(useFactory: () => NotionConfig): Provider[];
|
|
8
|
-
export declare class CacheAdapter {
|
|
9
|
-
protected localStorage: LocalStorage;
|
|
10
|
-
get<T>(keyOrObj: string | object): Promise<T | null>;
|
|
11
|
-
set(keyOrObj: string | object, value: any): Promise<void>;
|
|
12
|
-
remove(keyOrObj: string | object): Promise<void>;
|
|
13
|
-
call<P extends (string | object), T>(props: P, callback: (props: P) => Promise<T>): Promise<T>;
|
|
14
|
-
protected makeKey(keyOrObj: string | object): string;
|
|
15
|
-
protected makeJson(valueOrObj: any): string;
|
|
16
|
-
protected parseJson(value: string): any;
|
|
17
|
-
}
|
|
18
|
-
export declare class NotionService {
|
|
19
|
-
private config;
|
|
20
|
-
private notionClient;
|
|
21
|
-
private cache;
|
|
22
|
-
retrievePage(pageId: string): Promise<import("@notionhq/client/build/src/api-endpoints").GetPageResponse>;
|
|
23
|
-
updatePage(pageId: string, properties: any): Promise<import("@notionhq/client/build/src/api-endpoints").UpdatePageResponse>;
|
|
24
|
-
deletePage(pageId: string): Promise<void>;
|
|
25
|
-
retrieveDatabase(databaseId: string): Promise<import("@notionhq/client/build/src/api-endpoints").GetDatabaseResponse>;
|
|
26
|
-
updateDatabase(databaseId: string, properties: any): Promise<import("@notionhq/client/build/src/api-endpoints").UpdateDatabaseResponse>;
|
|
27
|
-
retrieveBlock(blockId: string): Promise<import("@notionhq/client/build/src/api-endpoints").GetBlockResponse>;
|
|
28
|
-
search(params: Parameters<typeof this.notionClient.search>[0]): Promise<import("@notionhq/client/build/src/api-endpoints").SearchResponse>;
|
|
29
|
-
queryDatabase(databaseId: string, filter?: any): Promise<(import("@notionhq/client/build/src/api-endpoints").PageObjectResponse | import("@notionhq/client/build/src/api-endpoints").PartialPageObjectResponse | import("@notionhq/client/build/src/api-endpoints").PartialDatabaseObjectResponse | import("@notionhq/client/build/src/api-endpoints").DatabaseObjectResponse)[]>;
|
|
30
|
-
}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotionService = exports.CacheAdapter = exports.NOTION_CONFIG = void 0;
|
|
4
|
-
exports.provideNotionService = provideNotionService;
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
|
-
const core_1 = require("@angular/core");
|
|
7
|
-
const client_1 = require("@notionhq/client");
|
|
8
|
-
const notion_service_1 = require("./notion.service");
|
|
9
|
-
const node_localstorage_1 = require("node-localstorage");
|
|
10
|
-
const CryptoJS = tslib_1.__importStar(require("crypto-js"));
|
|
11
|
-
exports.NOTION_CONFIG = new core_1.InjectionToken('NOTION_CONFIG');
|
|
12
|
-
function provideNotionService(useFactory) {
|
|
13
|
-
return [
|
|
14
|
-
{ provide: exports.NOTION_CONFIG, useFactory },
|
|
15
|
-
{ provide: notion_service_1.NOTION_SERVICE, useClass: NotionService },
|
|
16
|
-
];
|
|
17
|
-
}
|
|
18
|
-
let CacheAdapter = class CacheAdapter {
|
|
19
|
-
constructor() {
|
|
20
|
-
this.localStorage = global.localStorage || new node_localstorage_1.LocalStorage('node_modules/.cache/@nx-ddd/notion', 5 * 1024 * 1024 * 1024);
|
|
21
|
-
}
|
|
22
|
-
get(keyOrObj) {
|
|
23
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const key = this.makeKey(keyOrObj);
|
|
25
|
-
return this.parseJson(this.localStorage.getItem(key));
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
set(keyOrObj, value) {
|
|
29
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
const key = this.makeKey(keyOrObj);
|
|
31
|
-
this.localStorage.setItem(key, this.makeJson(value));
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
remove(keyOrObj) {
|
|
35
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
const key = this.makeKey(keyOrObj);
|
|
37
|
-
this.localStorage.removeItem(key);
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
call(props, callback) {
|
|
41
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
const key = this.makeKey(props);
|
|
43
|
-
let value = yield this.get(key);
|
|
44
|
-
if (value)
|
|
45
|
-
return value;
|
|
46
|
-
value = yield callback(props);
|
|
47
|
-
yield this.set(key, value);
|
|
48
|
-
return value;
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
makeKey(keyOrObj) {
|
|
52
|
-
const value = typeof keyOrObj === 'string' ? keyOrObj : JSON.stringify(keyOrObj);
|
|
53
|
-
return CryptoJS.SHA256(value).toString();
|
|
54
|
-
}
|
|
55
|
-
makeJson(valueOrObj) {
|
|
56
|
-
return JSON.stringify(valueOrObj);
|
|
57
|
-
}
|
|
58
|
-
parseJson(value) {
|
|
59
|
-
return JSON.parse(value);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
exports.CacheAdapter = CacheAdapter;
|
|
63
|
-
exports.CacheAdapter = CacheAdapter = tslib_1.__decorate([
|
|
64
|
-
(0, core_1.Injectable)({ providedIn: 'root' })
|
|
65
|
-
], CacheAdapter);
|
|
66
|
-
let NotionService = class NotionService {
|
|
67
|
-
constructor() {
|
|
68
|
-
this.config = (0, core_1.inject)(exports.NOTION_CONFIG);
|
|
69
|
-
this.notionClient = new client_1.Client({ auth: this.config.token });
|
|
70
|
-
this.cache = (0, core_1.inject)(CacheAdapter);
|
|
71
|
-
}
|
|
72
|
-
retrievePage(pageId) {
|
|
73
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
74
|
-
return this.cache.call(pageId, () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
return this.notionClient.pages.retrieve({ page_id: pageId });
|
|
76
|
-
}));
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
updatePage(pageId, properties) {
|
|
80
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
const response = yield this.notionClient.pages.update({
|
|
82
|
-
page_id: pageId,
|
|
83
|
-
properties,
|
|
84
|
-
});
|
|
85
|
-
return response;
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
deletePage(pageId) {
|
|
89
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
90
|
-
yield this.notionClient.pages.update({
|
|
91
|
-
page_id: pageId,
|
|
92
|
-
archived: true,
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
retrieveDatabase(databaseId) {
|
|
97
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
98
|
-
// return this.cache.call(databaseId, async () => {
|
|
99
|
-
return this.notionClient.databases.retrieve({ database_id: databaseId });
|
|
100
|
-
// });
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
updateDatabase(databaseId, properties) {
|
|
104
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
105
|
-
console.debug('properties:', properties);
|
|
106
|
-
const response = yield this.notionClient.databases.update({
|
|
107
|
-
database_id: databaseId,
|
|
108
|
-
properties,
|
|
109
|
-
});
|
|
110
|
-
yield this.cache.remove(databaseId);
|
|
111
|
-
return response;
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
retrieveBlock(blockId) {
|
|
115
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
116
|
-
return this.cache.call(blockId, () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
117
|
-
return this.notionClient.blocks.retrieve({ block_id: blockId });
|
|
118
|
-
}));
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
search(params) {
|
|
122
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
123
|
-
return this.cache.call(params, () => {
|
|
124
|
-
return this.notionClient.search(params);
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
queryDatabase(databaseId, filter) {
|
|
129
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
130
|
-
const response = yield this.notionClient.databases.query({
|
|
131
|
-
database_id: databaseId,
|
|
132
|
-
filter,
|
|
133
|
-
});
|
|
134
|
-
return response.results;
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
exports.NotionService = NotionService;
|
|
139
|
-
exports.NotionService = NotionService = tslib_1.__decorate([
|
|
140
|
-
(0, core_1.Injectable)({ providedIn: 'root' })
|
|
141
|
-
], NotionService);
|
|
142
|
-
//# sourceMappingURL=notion.service.impl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notion.service.impl.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/notion/src/lib/notion/notion.service.impl.ts"],"names":[],"mappings":";;;AAYA,oDAKC;;AAjBD,wCAA6E;AAC7E,6CAA0C;AAC1C,qDAAkD;AAClD,yDAAiD;AACjD,4DAAsC;AAMzB,QAAA,aAAa,GAAG,IAAI,qBAAc,CAAe,eAAe,CAAC,CAAC;AAE/E,SAAgB,oBAAoB,CAAC,UA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Y,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAC1C,CAAC,CAAC,CAAC;QACL,CAAC;KAAA;IAEK,aAAa,CAAC,UAAkB,EAAE,MAAY;;YAClD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC;gBACvD,WAAW,EAAE,UAAU;gBACvB,MAAM;aACP,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,OAAO,CAAC;QAC1B,CAAC;KAAA;CACF,CAAA;AA7DY,sCAAa;wBAAb,aAAa;IADzB,IAAA,iBAAU,EAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;GACtB,aAAa,CA6DzB"}
|
package/notion/notion.service.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NOTION_CONFIG = exports.NOTION_SERVICE = void 0;
|
|
4
|
-
exports.injectNotion = injectNotion;
|
|
5
|
-
const core_1 = require("@angular/core");
|
|
6
|
-
exports.NOTION_SERVICE = new core_1.InjectionToken('NOTION_SERVICE');
|
|
7
|
-
exports.NOTION_CONFIG = new core_1.InjectionToken('NOTION_CONFIG');
|
|
8
|
-
function injectNotion() {
|
|
9
|
-
var _a;
|
|
10
|
-
return (_a = (0, core_1.inject)(exports.NOTION_SERVICE, { optional: true })) !== null && _a !== void 0 ? _a : null;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=notion.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notion.service.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/notion/src/lib/notion/notion.service.ts"],"names":[],"mappings":";;;AAUA,oCAEC;AAZD,wCAAuD;AAO1C,QAAA,cAAc,GAAG,IAAI,qBAAc,CAAgB,gBAAgB,CAAC,CAAC;AACrE,QAAA,aAAa,GAAG,IAAI,qBAAc,CAAe,eAAe,CAAC,CAAC;AAE/E,SAAgB,YAAY;;IAC1B,OAAO,MAAA,IAAA,aAAM,EAAC,sBAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,mCAAI,IAAI,CAAC;AAC5D,CAAC"}
|
package/query/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './query';
|
package/query/index.js
DELETED
package/query/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/notion/src/lib/query/index.ts"],"names":[],"mappings":";;;AAAA,kDAAwB"}
|