@chevre/domain 22.6.0-alpha.19 → 22.6.0-alpha.20

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.
@@ -12,6 +12,9 @@ const schemaDefinition = {
12
12
  typeOf: String,
13
13
  offers: [mongoose_1.SchemaTypes.Mixed],
14
14
  includedInDataCatalog: [mongoose_1.SchemaTypes.Mixed]
15
+ // createdAt: SchemaTypes.Mixed,
16
+ // updatedAt: SchemaTypes.Mixed,
17
+ // __v: SchemaTypes.Mixed
15
18
  };
16
19
  const schemaOptions = {
17
20
  autoIndex: settings_1.MONGO_AUTO_INDEX,
@@ -22,10 +25,8 @@ const schemaOptions = {
22
25
  writeConcern: writeConcern_1.writeConcern,
23
26
  strict: true,
24
27
  strictQuery: false,
25
- timestamps: {
26
- createdAt: 'createdAt',
27
- updatedAt: 'updatedAt'
28
- },
28
+ timestamps: false,
29
+ versionKey: false,
29
30
  toJSON: {
30
31
  getters: false,
31
32
  virtuals: false,
@@ -40,27 +41,10 @@ const schemaOptions = {
40
41
  }
41
42
  };
42
43
  const indexes = [
43
- [
44
- { createdAt: 1 },
45
- { name: 'searchByCreatedAt' }
46
- ],
47
- [
48
- { updatedAt: 1 },
49
- { name: 'searchByUpdatedAt' }
50
- ],
51
44
  [
52
45
  { 'offers.priceSpecification.price': 1 },
53
46
  { name: 'searchByOffersPriceSpecificationPrice' }
54
47
  ],
55
- // ↓サブオファー最適化につき廃止(2023-12-22~)
56
- // [
57
- // // オファーIDはグローバルユニーク
58
- // { 'offers.id': 1 },
59
- // {
60
- // name: 'uniqueOfferId',
61
- // unique: true
62
- // }
63
- // ],
64
48
  [
65
49
  // オファーコードはプロジェクト内ユニーク
66
50
  { 'offers.identifier': 1, 'project.id': 1 },
@@ -24,8 +24,9 @@ const schemaDefinition = {
24
24
  itemOffered: mongoose_1.SchemaTypes.Mixed,
25
25
  additionalProperty: [mongoose_1.SchemaTypes.Mixed],
26
26
  dateSynced: Date // 追加(2023-09-13~)
27
- // ticketTypes: SchemaTypes.Mixed,
28
- // id: SchemaTypes.Mixed
27
+ // createdAt: SchemaTypes.Mixed,
28
+ // updatedAt: SchemaTypes.Mixed,
29
+ // __v: SchemaTypes.Mixed
29
30
  };
30
31
  const schemaOptions = {
31
32
  autoIndex: settings_1.MONGO_AUTO_INDEX,
@@ -36,10 +37,8 @@ const schemaOptions = {
36
37
  writeConcern: writeConcern_1.writeConcern,
37
38
  strict: true,
38
39
  strictQuery: false,
39
- timestamps: {
40
- createdAt: 'createdAt',
41
- updatedAt: 'updatedAt'
42
- },
40
+ timestamps: false,
41
+ versionKey: false,
43
42
  toJSON: {
44
43
  getters: false,
45
44
  virtuals: false,
@@ -24,6 +24,9 @@ const schemaDefinition = {
24
24
  additionalProperty: [mongoose_1.SchemaTypes.Mixed],
25
25
  dateSynced: Date,
26
26
  relatedOffer: mongoose_1.SchemaTypes.Mixed
27
+ // createdAt: SchemaTypes.Mixed,
28
+ // updatedAt: SchemaTypes.Mixed,
29
+ // __v: SchemaTypes.Mixed
27
30
  };
28
31
  const schemaOptions = {
29
32
  autoIndex: settings_1.MONGO_AUTO_INDEX,
@@ -34,10 +37,8 @@ const schemaOptions = {
34
37
  writeConcern: writeConcern_1.writeConcern,
35
38
  strict: true,
36
39
  strictQuery: false,
37
- timestamps: {
38
- createdAt: 'createdAt',
39
- updatedAt: 'updatedAt'
40
- },
40
+ timestamps: false,
41
+ versionKey: false,
41
42
  toJSON: {
42
43
  getters: false,
43
44
  virtuals: false,
package/package.json CHANGED
@@ -108,5 +108,5 @@
108
108
  "postversion": "git push origin --tags",
109
109
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
110
110
  },
111
- "version": "22.6.0-alpha.19"
111
+ "version": "22.6.0-alpha.20"
112
112
  }