contentlayer-source-notion
Advanced tools
Comparing version 0.0.1-alpha.9 to 0.0.1-alpha.10
@@ -12,2 +12,3 @@ import * as tracing_1 from "@effect-ts/core/Tracing"; | ||
import { fieldLastEditedBy } from './field-last-edited-by.js'; | ||
import { fieldMultiSelect } from './field-multi-select.js'; | ||
import { fieldNumber } from './field-number.js'; | ||
@@ -26,2 +27,3 @@ import { fieldPeople } from './field-people.js'; | ||
select: fieldSelect, | ||
multi_select: fieldMultiSelect, | ||
url: fieldString, | ||
@@ -43,11 +45,11 @@ number: fieldNumber, | ||
}; | ||
export const getFieldFunctions = (type) => (T.chain_(T.sync(() => FieldMapping[type]), (func) => T.cond_(!!func, () => func, () => 'fail', fileName_1 + ":101:14"), fileName_1 + ":100:12")); | ||
export const getFieldFunctions = (type) => (T.chain_(T.sync(() => FieldMapping[type]), (func) => T.cond_(!!func, () => func, () => 'fail', fileName_1 + ":103:14"), fileName_1 + ":102:12")); | ||
export const getFieldDef = (args) => (T.chain_(getFieldFunctions(args.property.type), (functions) => functions.getFieldDef({ | ||
propertyData: getDatabasePropertyData(args.property), | ||
...args, | ||
}), fileName_1 + ":114:12")); | ||
}), fileName_1 + ":116:12")); | ||
export const getFieldData = (args) => (T.chain_(getFieldFunctions(args.property.type), (functions) => functions.getFieldData({ | ||
propertyData: getPagePropertyData(args.property), | ||
...args, | ||
}), fileName_1 + ":127:12")); | ||
}), fileName_1 + ":129:12")); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "contentlayer-source-notion", | ||
"version": "0.0.1-alpha.9", | ||
"version": "0.0.1-alpha.10", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "exports": "./dist/index.js", |
@@ -26,2 +26,3 @@ import type * as core from '@contentlayer/core' | ||
import { fieldLastEditedBy } from './field-last-edited-by.js' | ||
import { fieldMultiSelect } from './field-multi-select.js' | ||
import { fieldNumber } from './field-number.js' | ||
@@ -70,3 +71,3 @@ import { fieldPeople } from './field-people.js' | ||
// TODO : Remove optional | ||
[key in DatabasePropertyTypes]?: FieldFunctions | ||
[key in DatabasePropertyTypes]: FieldFunctions | ||
} | ||
@@ -79,2 +80,3 @@ | ||
select: fieldSelect, | ||
multi_select: fieldMultiSelect, | ||
url: fieldString, | ||
@@ -81,0 +83,0 @@ number: fieldNumber, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
160286
202
2173