Sync的定义,index中非type类型的定义的删除
This commit is contained in:
parent
5d9b74af7a
commit
38a818eccd
|
|
@ -1,23 +1,2 @@
|
|||
export { storageSchema } from './base-app-domain';
|
||||
export type { EntityDict as BaseEntityDict } from './base-app-domain';
|
||||
export * from './store/AsyncRowStore';
|
||||
export * from './store/SyncRowStore';
|
||||
export * from './store/CascadeStore';
|
||||
export * from './store/relation';
|
||||
export * from './store/RelationAuth';
|
||||
export * from './store/TriggerExecutor';
|
||||
export * from './store/actionDef';
|
||||
export * from './store/checker';
|
||||
export * from './store/filter';
|
||||
export * from './store/modi';
|
||||
export * from './timers/oper';
|
||||
export * from './timers/vaccum';
|
||||
export * from './actions/action';
|
||||
export * from './actions/relation';
|
||||
export { SimpleConnector } from './utils/SimpleConnector';
|
||||
export { assert } from './utils/assert';
|
||||
export { composeUrl } from './utils/domain';
|
||||
export { checkAttributesNotNull, checkAttributesScope, } from './utils/validator';
|
||||
export { compareVersion } from './utils/version';
|
||||
export * from './types';
|
||||
export { generateNewIdAsync, generateNewId, shrinkUuidTo32Bytes, expandUuidTo36Bytes, } from './utils/uuid';
|
||||
|
|
|
|||
33
lib/index.js
33
lib/index.js
|
|
@ -1,37 +1,4 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.expandUuidTo36Bytes = exports.shrinkUuidTo32Bytes = exports.generateNewId = exports.generateNewIdAsync = exports.compareVersion = exports.checkAttributesScope = exports.checkAttributesNotNull = exports.composeUrl = exports.assert = exports.SimpleConnector = exports.storageSchema = void 0;
|
||||
const tslib_1 = require("tslib");
|
||||
var base_app_domain_1 = require("./base-app-domain");
|
||||
Object.defineProperty(exports, "storageSchema", { enumerable: true, get: function () { return base_app_domain_1.storageSchema; } });
|
||||
tslib_1.__exportStar(require("./store/AsyncRowStore"), exports);
|
||||
tslib_1.__exportStar(require("./store/SyncRowStore"), exports);
|
||||
tslib_1.__exportStar(require("./store/CascadeStore"), exports);
|
||||
tslib_1.__exportStar(require("./store/relation"), exports);
|
||||
tslib_1.__exportStar(require("./store/RelationAuth"), exports);
|
||||
tslib_1.__exportStar(require("./store/TriggerExecutor"), exports);
|
||||
tslib_1.__exportStar(require("./store/actionDef"), exports);
|
||||
tslib_1.__exportStar(require("./store/checker"), exports);
|
||||
tslib_1.__exportStar(require("./store/filter"), exports);
|
||||
tslib_1.__exportStar(require("./store/modi"), exports);
|
||||
tslib_1.__exportStar(require("./timers/oper"), exports);
|
||||
tslib_1.__exportStar(require("./timers/vaccum"), exports);
|
||||
tslib_1.__exportStar(require("./actions/action"), exports);
|
||||
tslib_1.__exportStar(require("./actions/relation"), exports);
|
||||
var SimpleConnector_1 = require("./utils/SimpleConnector");
|
||||
Object.defineProperty(exports, "SimpleConnector", { enumerable: true, get: function () { return SimpleConnector_1.SimpleConnector; } });
|
||||
var assert_1 = require("./utils/assert");
|
||||
Object.defineProperty(exports, "assert", { enumerable: true, get: function () { return assert_1.assert; } });
|
||||
var domain_1 = require("./utils/domain");
|
||||
Object.defineProperty(exports, "composeUrl", { enumerable: true, get: function () { return domain_1.composeUrl; } });
|
||||
var validator_1 = require("./utils/validator");
|
||||
Object.defineProperty(exports, "checkAttributesNotNull", { enumerable: true, get: function () { return validator_1.checkAttributesNotNull; } });
|
||||
Object.defineProperty(exports, "checkAttributesScope", { enumerable: true, get: function () { return validator_1.checkAttributesScope; } });
|
||||
var version_1 = require("./utils/version");
|
||||
Object.defineProperty(exports, "compareVersion", { enumerable: true, get: function () { return version_1.compareVersion; } });
|
||||
tslib_1.__exportStar(require("./types"), exports);
|
||||
var uuid_1 = require("./utils/uuid");
|
||||
Object.defineProperty(exports, "generateNewIdAsync", { enumerable: true, get: function () { return uuid_1.generateNewIdAsync; } });
|
||||
Object.defineProperty(exports, "generateNewId", { enumerable: true, get: function () { return uuid_1.generateNewId; } });
|
||||
Object.defineProperty(exports, "shrinkUuidTo32Bytes", { enumerable: true, get: function () { return uuid_1.shrinkUuidTo32Bytes; } });
|
||||
Object.defineProperty(exports, "expandUuidTo36Bytes", { enumerable: true, get: function () { return uuid_1.expandUuidTo36Bytes; } });
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ function makeIntrinsicCTWs(schema, actionDefDict) {
|
|||
action: 'create',
|
||||
type: 'data',
|
||||
entity,
|
||||
priority: 10,
|
||||
priority: 10, // 优先级要高,先于真正的data检查进行
|
||||
checker: (data) => {
|
||||
if (data instanceof Array) {
|
||||
data.forEach(ele => {
|
||||
|
|
@ -181,7 +181,7 @@ function makeIntrinsicCTWs(schema, actionDefDict) {
|
|||
entity,
|
||||
action: 'create',
|
||||
type: 'logicalData',
|
||||
priority: types_1.CHECKER_MAX_PRIORITY,
|
||||
priority: types_1.CHECKER_MAX_PRIORITY, // 优先级要放在最低,所有前置的checker/trigger将数据完整之后再在这里检测
|
||||
checker: (operation, context) => {
|
||||
const { data } = operation;
|
||||
if (data instanceof Array) {
|
||||
|
|
@ -197,9 +197,9 @@ function makeIntrinsicCTWs(schema, actionDefDict) {
|
|||
}
|
||||
}, {
|
||||
entity,
|
||||
action: 'update',
|
||||
action: 'update', // 只检查update,其它状态转换的action应该不会涉及unique约束的属性
|
||||
type: 'logicalData',
|
||||
priority: types_1.CHECKER_MAX_PRIORITY,
|
||||
priority: types_1.CHECKER_MAX_PRIORITY, // 优先级要放在最低,所有前置的checker/trigger将数据完整之后再在这里检测
|
||||
checker: (operation, context) => {
|
||||
const { data, filter: operationFilter } = operation;
|
||||
if (data) {
|
||||
|
|
|
|||
|
|
@ -28,3 +28,15 @@ export type ProjectConfiguration = {
|
|||
bridge?: string;
|
||||
};
|
||||
};
|
||||
/**
|
||||
* 编译环境配置
|
||||
*/
|
||||
export type CompilerConfiguration = {
|
||||
webpack?: {
|
||||
resolve?: {
|
||||
alias?: Record<string, string>;
|
||||
fallback?: Record<string, string | false>;
|
||||
};
|
||||
extraOakModules?: (string | RegExp)[];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
export type Algorithm = 'rsa' | 'ec' | 'ed25519';
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
|
|
@ -24,3 +24,4 @@ export * from './EntityDesc';
|
|||
export * from './Environment';
|
||||
export * from './Locale';
|
||||
export * from './Cluster';
|
||||
export * from './Sync';
|
||||
|
|
|
|||
|
|
@ -27,3 +27,4 @@ tslib_1.__exportStar(require("./EntityDesc"), exports);
|
|||
tslib_1.__exportStar(require("./Environment"), exports);
|
||||
tslib_1.__exportStar(require("./Locale"), exports);
|
||||
tslib_1.__exportStar(require("./Cluster"), exports);
|
||||
tslib_1.__exportStar(require("./Sync"), exports);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
/// <reference types="node" />
|
||||
/**
|
||||
* 防止assert打包体积过大,从这里引用
|
||||
*/
|
||||
|
|
|
|||
37
src/index.ts
37
src/index.ts
|
|
@ -1,37 +1,2 @@
|
|||
|
||||
export { storageSchema } from './base-app-domain';
|
||||
|
||||
export type { EntityDict as BaseEntityDict } from './base-app-domain';
|
||||
|
||||
export * from './store/AsyncRowStore';
|
||||
export * from './store/SyncRowStore';
|
||||
export * from './store/CascadeStore';
|
||||
export * from './store/relation';
|
||||
export * from './store/RelationAuth';
|
||||
export * from './store/TriggerExecutor'
|
||||
export * from './store/actionDef'
|
||||
export * from './store/checker';
|
||||
export * from './store/filter';
|
||||
export * from './store/modi';
|
||||
export * from './timers/oper';
|
||||
export * from './timers/vaccum';
|
||||
export * from './actions/action';
|
||||
export * from './actions/relation';
|
||||
|
||||
export { SimpleConnector } from './utils/SimpleConnector';
|
||||
export { assert } from './utils/assert';
|
||||
export { composeUrl } from './utils/domain';
|
||||
export {
|
||||
checkAttributesNotNull,
|
||||
checkAttributesScope,
|
||||
} from './utils/validator';
|
||||
export { compareVersion } from './utils/version';
|
||||
|
||||
export * from './types';
|
||||
|
||||
export {
|
||||
generateNewIdAsync,
|
||||
generateNewId,
|
||||
shrinkUuidTo32Bytes,
|
||||
expandUuidTo36Bytes,
|
||||
} from './utils/uuid';
|
||||
export * from './types';
|
||||
|
|
@ -42,3 +42,17 @@ export type ProjectConfiguration = {
|
|||
bridge?: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 编译环境配置
|
||||
*/
|
||||
export type CompilerConfiguration = {
|
||||
webpack?: {
|
||||
resolve?: {
|
||||
alias?: Record<string, string>;
|
||||
fallback?: Record<string, string | false>;
|
||||
},
|
||||
extraOakModules?: (string | RegExp)[]; // 被标记的module也会和项目一起被oak编译plugin进行处理(注入getRender,处理i18n等)
|
||||
},
|
||||
};
|
||||
|
|
@ -0,0 +1 @@
|
|||
export type Algorithm = 'rsa' | 'ec' | 'ed25519';
|
||||
|
|
@ -24,3 +24,4 @@ export * from './EntityDesc';
|
|||
export * from './Environment';
|
||||
export * from './Locale';
|
||||
export * from './Cluster';
|
||||
export * from './Sync';
|
||||
|
|
|
|||
Loading…
Reference in New Issue