@chevre/domain 23.0.0-alpha.28 → 23.0.0-alpha.29

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.
@@ -13,9 +13,7 @@ type IKeyOfProjectionExceptMovieTicketType = keyof ICategoryCodeExceptMovieTicke
13
13
  export declare class CategoryCodeRepo {
14
14
  private readonly categoryCodeModel;
15
15
  constructor(connection: Connection);
16
- static CREATE_MONGO_CONDITIONS(params: factory.categoryCode.ISearchConditions, options?: {
17
- excludeMovieTicketType?: boolean;
18
- }): FilterQuery<factory.categoryCode.ICategoryCode>[];
16
+ static CREATE_MONGO_CONDITIONS(params: factory.categoryCode.ISearchConditions): FilterQuery<factory.categoryCode.ICategoryCode>[];
19
17
  static CREATE_AGGREGATE_PROJECTION(inclusion: IKeyOfProjection[]): {
20
18
  [field: string]: AnyExpression;
21
19
  };
@@ -39,9 +37,7 @@ export declare class CategoryCodeRepo {
39
37
  /**
40
38
  * 空の場合無効
41
39
  */
42
- inclusion: IKeyOfProjection[], options?: {
43
- excludeMovieTicketType?: boolean;
44
- }): Promise<(ICategoryCodeExceptMovieTicketType & {
40
+ inclusion: IKeyOfProjection[]): Promise<(ICategoryCodeExceptMovieTicketType & {
45
41
  id: string;
46
42
  })[]>;
47
43
  saveCategoryCode(params: {
@@ -36,29 +36,30 @@ class CategoryCodeRepo {
36
36
  this.categoryCodeModel = connection.model(categoryCode_1.modelName, (0, categoryCode_1.createSchema)());
37
37
  }
38
38
  // tslint:disable-next-line:cyclomatic-complexity max-func-body-length
39
- static CREATE_MONGO_CONDITIONS(params, options) {
39
+ static CREATE_MONGO_CONDITIONS(params) {
40
40
  var _a, _b, _c, _d, _e, _f, _g;
41
- const excludeMovieTicketType = (options === null || options === void 0 ? void 0 : options.excludeMovieTicketType) === true;
41
+ // const excludeMovieTicketType = true;
42
42
  const andConditions = [];
43
- if (excludeMovieTicketType) {
44
- andConditions.push({
45
- 'inCodeSet.identifier': {
46
- $in: [
47
- factory.categoryCode.CategorySetIdentifier.ContentRatingType,
48
- factory.categoryCode.CategorySetIdentifier.CurrencyType,
49
- factory.categoryCode.CategorySetIdentifier.CustomerType,
50
- factory.categoryCode.CategorySetIdentifier.DistributorType,
51
- factory.categoryCode.CategorySetIdentifier.MembershipType,
52
- factory.categoryCode.CategorySetIdentifier.OfferCategoryType,
53
- factory.categoryCode.CategorySetIdentifier.PaymentMethodType,
54
- factory.categoryCode.CategorySetIdentifier.SeatingType,
55
- factory.categoryCode.CategorySetIdentifier.ServiceType,
56
- factory.categoryCode.CategorySetIdentifier.SoundFormatType,
57
- factory.categoryCode.CategorySetIdentifier.VideoFormatType
58
- ]
59
- }
60
- });
61
- }
43
+ // 決済カード区分をmovieTicketTypesへ移行済なので、excludeMovieTicketTypeオプションは不要(2025-11-07~)
44
+ // if (excludeMovieTicketType) {
45
+ // andConditions.push({
46
+ // 'inCodeSet.identifier': {
47
+ // $in: [
48
+ // factory.categoryCode.CategorySetIdentifier.ContentRatingType,
49
+ // factory.categoryCode.CategorySetIdentifier.CurrencyType,
50
+ // factory.categoryCode.CategorySetIdentifier.CustomerType,
51
+ // factory.categoryCode.CategorySetIdentifier.DistributorType,
52
+ // factory.categoryCode.CategorySetIdentifier.MembershipType,
53
+ // factory.categoryCode.CategorySetIdentifier.OfferCategoryType,
54
+ // factory.categoryCode.CategorySetIdentifier.PaymentMethodType,
55
+ // factory.categoryCode.CategorySetIdentifier.SeatingType,
56
+ // factory.categoryCode.CategorySetIdentifier.ServiceType,
57
+ // factory.categoryCode.CategorySetIdentifier.SoundFormatType,
58
+ // factory.categoryCode.CategorySetIdentifier.VideoFormatType
59
+ // ]
60
+ // }
61
+ // });
62
+ // }
62
63
  // tslint:disable-next-line:no-single-line-block-comment
63
64
  /* istanbul ignore else */
64
65
  if (params.project !== undefined && params.project !== null) {
@@ -223,9 +224,9 @@ class CategoryCodeRepo {
223
224
  /**
224
225
  * 空の場合無効
225
226
  */
226
- inclusion, options) {
227
+ inclusion) {
227
228
  return __awaiter(this, void 0, void 0, function* () {
228
- const conditions = CategoryCodeRepo.CREATE_MONGO_CONDITIONS(params, options);
229
+ const conditions = CategoryCodeRepo.CREATE_MONGO_CONDITIONS(params);
229
230
  let positiveProjectionFields = AVAILABLE_PROJECT_FIELDS;
230
231
  if (Array.isArray(inclusion) && inclusion.length > 0) {
231
232
  positiveProjectionFields = inclusion.filter((key) => AVAILABLE_PROJECT_FIELDS.includes(key));
package/package.json CHANGED
@@ -115,5 +115,5 @@
115
115
  "postversion": "git push origin --tags",
116
116
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
117
117
  },
118
- "version": "23.0.0-alpha.28"
118
+ "version": "23.0.0-alpha.29"
119
119
  }