@chevre/domain 20.4.0-alpha.24 → 20.4.0-alpha.25

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.
@@ -3,7 +3,7 @@ import * as mongoose from 'mongoose';
3
3
 
4
4
  import { chevre } from '../../../lib/index';
5
5
 
6
- // const project = { id: String(process.env.PROJECT_ID) };
6
+ const project = { id: process.env.PROJECT_ID };
7
7
 
8
8
  async function main() {
9
9
  await mongoose.connect(<string>process.env.MONGOLAB_URI);
@@ -11,7 +11,7 @@ async function main() {
11
11
  const priceSpecificationRepo = new chevre.repository.PriceSpecification(mongoose.connection);
12
12
 
13
13
  const result = await priceSpecificationRepo.deleteUnnecessaryMovieTicketTypeChargePriceSpecs({
14
- // project: { id: 'cinerino' }
14
+ project: { id: project.id }
15
15
  });
16
16
  console.log('deleted', result);
17
17
  }
@@ -11,8 +11,6 @@ const writeConcern = { j: true, w: 'majority', wtimeout: 10000 };
11
11
  const schema = new mongoose.Schema({
12
12
  project: mongoose.SchemaTypes.Mixed,
13
13
  _id: String,
14
- // Stringに変更(2022-08-08~)
15
- // identifier: mongoose.SchemaTypes.Mixed,
16
14
  identifier: String,
17
15
  typeOf: String,
18
16
  name: mongoose.SchemaTypes.Mixed,
@@ -21,16 +19,16 @@ const schema = new mongoose.Schema({
21
19
  color: mongoose.SchemaTypes.Mixed,
22
20
  additionalProperty: [mongoose.SchemaTypes.Mixed],
23
21
  alternateName: mongoose.SchemaTypes.Mixed,
24
- acceptedPaymentMethod: mongoose.SchemaTypes.Mixed,
25
- addOn: mongoose.SchemaTypes.Mixed,
26
- availableAddOn: mongoose.SchemaTypes.Mixed,
22
+ // acceptedPaymentMethod: mongoose.SchemaTypes.Mixed, // 削除(2023-02-27~)
23
+ addOn: [mongoose.SchemaTypes.Mixed],
24
+ // availableAddOn: mongoose.SchemaTypes.Mixed, // 削除(2023-02-27~)
27
25
  availability: String,
28
- availabilityEnds: Date,
29
- availabilityStarts: Date,
30
- availableAtOrFrom: mongoose.SchemaTypes.Mixed,
26
+ // availabilityEnds: Date, // 削除(2023-02-27~)
27
+ // availabilityStarts: Date, // 削除(2023-02-27~)
28
+ availableAtOrFrom: [mongoose.SchemaTypes.Mixed],
31
29
  hasMerchantReturnPolicy: mongoose.SchemaTypes.Mixed,
32
30
  itemOffered: mongoose.SchemaTypes.Mixed,
33
- price: Number,
31
+ // price: Number, // 削除(2023-02-27~)
34
32
  priceCurrency: String,
35
33
  priceSpecification: mongoose.SchemaTypes.Mixed,
36
34
  eligibleCustomerType: mongoose.SchemaTypes.Mixed,
package/package.json CHANGED
@@ -9,8 +9,8 @@
9
9
  }
10
10
  ],
11
11
  "dependencies": {
12
- "@chevre/factory": "4.290.0",
13
- "@cinerino/sdk": "3.140.0-alpha.18",
12
+ "@chevre/factory": "4.290.1",
13
+ "@cinerino/sdk": "3.140.0-alpha.19",
14
14
  "@motionpicture/coa-service": "9.2.0",
15
15
  "@motionpicture/gmo-service": "5.2.0",
16
16
  "@sendgrid/mail": "6.4.0",
@@ -120,5 +120,5 @@
120
120
  "postversion": "git push origin --tags",
121
121
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
122
122
  },
123
- "version": "20.4.0-alpha.24"
123
+ "version": "20.4.0-alpha.25"
124
124
  }