@chevre/domain 28.0.0-alpha.32 → 28.0.0-alpha.33

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.
@@ -1,6 +1,5 @@
1
1
  import type { Connection } from 'mongoose';
2
- import { factory } from '../factory';
3
- import { IModel } from './mongoose/schemas/accountTitle';
2
+ import { IDocType, IModel } from './mongoose/schemas/accountTitle';
4
3
  /**
5
4
  * 科目リポジトリ
6
5
  */
@@ -12,11 +11,11 @@ export declare class AccountTitleRepo {
12
11
  id: string;
13
12
  };
14
13
  }): Promise<void>;
15
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, factory.accountTitle.IAccountTitle, import("./mongoose/virtuals").IVirtuals, {}> & factory.accountTitle.IAccountTitle & {
14
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & IDocType & {
16
15
  _id: import("mongoose").Types.ObjectId;
17
16
  } & {
18
17
  __v: number;
19
- }, import("mongoose").QueryOptions<factory.accountTitle.IAccountTitle>, (import("mongoose").Document<unknown, Record<string, never>, factory.accountTitle.IAccountTitle, import("./mongoose/virtuals").IVirtuals, {}> & factory.accountTitle.IAccountTitle & {
18
+ }, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & IDocType & {
20
19
  _id: import("mongoose").Types.ObjectId;
21
20
  } & {
22
21
  __v: number;
@@ -1,7 +1,7 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
2
  import { IVirtuals } from '../virtuals';
3
3
  import { factory } from '../../../factory';
4
- type IDocType = factory.accountTitle.IAccountTitle;
4
+ type IDocType = Pick<factory.accountTitle.IAccountTitle, 'additionalProperty' | 'codeValue' | 'hasCategoryCode' | 'name' | 'project' | 'typeOf'>;
5
5
  type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
6
6
  type ISchemaDefinition = SchemaDefinition<IDocType>;
7
7
  type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
@@ -8,18 +8,15 @@ const settings_1 = require("../../../settings");
8
8
  const modelName = 'AccountTitle';
9
9
  exports.modelName = modelName;
10
10
  const schemaDefinition = {
11
- project: mongoose_1.SchemaTypes.Mixed,
12
- typeOf: {
13
- type: String,
14
- required: true
15
- },
16
- codeValue: String,
11
+ project: { type: mongoose_1.SchemaTypes.Mixed, required: true },
12
+ typeOf: { type: String, required: true },
13
+ codeValue: { type: String, required: true },
17
14
  name: String,
18
- inCodeSet: mongoose_1.SchemaTypes.Mixed,
19
15
  hasCategoryCode: mongoose_1.SchemaTypes.Mixed,
20
- inDefinedTermSet: mongoose_1.SchemaTypes.Mixed,
21
- hasDefinedTerm: mongoose_1.SchemaTypes.Mixed,
22
16
  additionalProperty: mongoose_1.SchemaTypes.Mixed
17
+ // inCodeSet: SchemaTypes.Mixed, // discontinue(2026-10-16~)
18
+ // inDefinedTermSet: SchemaTypes.Mixed, // discontinue(2026-10-16~)
19
+ // hasDefinedTerm: SchemaTypes.Mixed, // discontinue(2026-10-16~)
23
20
  };
24
21
  const schemaOptions = {
25
22
  autoIndex: settings_1.MONGO_AUTO_INDEX,
package/package.json CHANGED
@@ -88,5 +88,5 @@
88
88
  "postversion": "git push origin --tags",
89
89
  "prepublishOnly": "npm run clean && npm run build"
90
90
  },
91
- "version": "28.0.0-alpha.32"
91
+ "version": "28.0.0-alpha.33"
92
92
  }