@chevre/domain
Version:
Chevre Domain Library for Node.js
26 lines (25 loc) • 954 B
TypeScript
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
import * as factory from '../../../factory';
export type IEmailMessage = factory.creativeWork.message.email.ICreativeWork & {
datePublished: Date;
mainEntity: Pick<factory.order.ISimpleOrder, 'orderNumber' | 'typeOf'>;
project: {
id: string;
typeOf: factory.organizationType.Project;
};
provider: {
/**
* 販売者ID
*/
id: string;
typeOf: factory.organizationType.Corporation;
};
};
type IDocType = IEmailMessage;
type IModel = Model<IDocType>;
type ISchemaDefinition = SchemaDefinition<IDocType>;
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
declare const modelName = "Message";
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
declare function createSchema(): ISchema;
export { createSchema, IModel, indexes, modelName };