@chevre/domain 28.0.0-alpha.8 → 28.0.0

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.
Files changed (155) hide show
  1. package/lib/chevre/emailMessageBuilder.d.ts +9 -5
  2. package/lib/chevre/emailMessageBuilder.js +12 -11
  3. package/lib/chevre/factory/event.d.ts +1 -1
  4. package/lib/chevre/factory/event.js +1 -5
  5. package/lib/chevre/repo/acceptedOffer.d.ts +6 -5
  6. package/lib/chevre/repo/acceptedOffer.js +14 -9
  7. package/lib/chevre/repo/acceptedOfferInReserve.d.ts +6 -8
  8. package/lib/chevre/repo/acceptedOfferInReserve.js +13 -7
  9. package/lib/chevre/repo/action/unknown2actionError.d.ts +1 -0
  10. package/lib/chevre/repo/action/unknown2actionError.js +29 -1
  11. package/lib/chevre/repo/adminAcceptedOffer.d.ts +36 -12
  12. package/lib/chevre/repo/adminAcceptedOffer.js +40 -10
  13. package/lib/chevre/repo/adminAccountTitle.d.ts +49 -0
  14. package/lib/chevre/repo/adminAccountTitle.js +212 -0
  15. package/lib/chevre/repo/adminAccountTitleCategory.d.ts +37 -0
  16. package/lib/chevre/repo/adminAccountTitleCategory.js +127 -0
  17. package/lib/chevre/repo/adminAccountTitleSet.d.ts +42 -0
  18. package/lib/chevre/repo/adminAccountTitleSet.js +149 -0
  19. package/lib/chevre/repo/adminEvent.d.ts +1 -1
  20. package/lib/chevre/repo/adminEventSeries.d.ts +0 -22
  21. package/lib/chevre/repo/adminEventSeries.js +35 -31
  22. package/lib/chevre/repo/{paymentServiceChannel.d.ts → adminPaymentServiceChannel.d.ts} +13 -11
  23. package/lib/chevre/repo/{paymentServiceChannel.js → adminPaymentServiceChannel.js} +20 -19
  24. package/lib/chevre/repo/adminTask.d.ts +2 -2
  25. package/lib/chevre/repo/adminTransaction.d.ts +15 -15
  26. package/lib/chevre/repo/categoryCode.js +0 -21
  27. package/lib/chevre/repo/emailMessage.d.ts +3 -1
  28. package/lib/chevre/repo/emailMessage.js +20 -13
  29. package/lib/chevre/repo/eventSeries.d.ts +2 -2
  30. package/lib/chevre/repo/eventSeries.js +19 -12
  31. package/lib/chevre/repo/factory/acceptedOffer/reserveTransaction2itemOffered.d.ts +1 -1
  32. package/lib/chevre/repo/issuer.d.ts +2 -6
  33. package/lib/chevre/repo/memberProgram.d.ts +1 -38
  34. package/lib/chevre/repo/memberProgram.js +1 -62
  35. package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +1 -1
  36. package/lib/chevre/repo/mongoose/schemas/accountTitle.js +22 -26
  37. package/lib/chevre/repo/mongoose/schemas/civicStructure.d.ts +1 -0
  38. package/lib/chevre/repo/mongoose/schemas/event.js +0 -13
  39. package/lib/chevre/repo/mongoose/schemas/eventSeries.js +1 -18
  40. package/lib/chevre/repo/mongoose/schemas/issuer.d.ts +1 -3
  41. package/lib/chevre/repo/mongoose/schemas/issuer.js +0 -10
  42. package/lib/chevre/repo/mongoose/schemas/message.d.ts +5 -1
  43. package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +0 -1
  44. package/lib/chevre/repo/mongoose/schemas/offerCatalog.js +3 -12
  45. package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +1 -2
  46. package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.js +6 -15
  47. package/lib/chevre/repo/mongoose/schemas/order.d.ts +22 -1
  48. package/lib/chevre/repo/mongoose/schemas/paymentServiceChannel.d.ts +1 -1
  49. package/lib/chevre/repo/mongoose/schemas/place.js +0 -9
  50. package/lib/chevre/repo/mongoose/schemas/project.d.ts +1 -2
  51. package/lib/chevre/repo/mongoose/schemas/project.js +1 -1
  52. package/lib/chevre/repo/mongoose/schemas/seller.d.ts +3 -1
  53. package/lib/chevre/repo/mongoose/schemas/seller.js +0 -2
  54. package/lib/chevre/repo/offerCatalog.d.ts +0 -2
  55. package/lib/chevre/repo/offerCatalogItem.d.ts +13 -20
  56. package/lib/chevre/repo/offerCatalogItem.js +8 -86
  57. package/lib/chevre/repo/order.d.ts +2 -2
  58. package/lib/chevre/repo/order.js +0 -31
  59. package/lib/chevre/repo/orderInTransaction.d.ts +5 -25
  60. package/lib/chevre/repo/place/movieTheater.d.ts +3 -1
  61. package/lib/chevre/repo/place/movieTheater.js +3 -1
  62. package/lib/chevre/repo/place/{hasPOS.d.ts → pos.d.ts} +13 -20
  63. package/lib/chevre/repo/place/{hasPOS.js → pos.js} +66 -29
  64. package/lib/chevre/repo/place/screeningRoom.d.ts +7 -2
  65. package/lib/chevre/repo/place/screeningRoom.js +12 -7
  66. package/lib/chevre/repo/priceSpecification.d.ts +8 -8
  67. package/lib/chevre/repo/project.d.ts +14 -20
  68. package/lib/chevre/repo/project.js +28 -44
  69. package/lib/chevre/repo/projectMakesOffer.js +2 -2
  70. package/lib/chevre/repo/role.d.ts +1 -1
  71. package/lib/chevre/repo/role.js +1 -30
  72. package/lib/chevre/repo/seller.d.ts +11 -4
  73. package/lib/chevre/repo/seller.js +31 -58
  74. package/lib/chevre/repo/sellerPaymentAccepted.d.ts +14 -21
  75. package/lib/chevre/repo/sellerPaymentAccepted.js +65 -38
  76. package/lib/chevre/repo/task.d.ts +3 -3
  77. package/lib/chevre/repository.d.ts +25 -15
  78. package/lib/chevre/repository.js +52 -30
  79. package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.js +2 -1
  80. package/lib/chevre/service/aggregation.d.ts +0 -2
  81. package/lib/chevre/service/aggregation.js +1 -3
  82. package/lib/chevre/service/assetTransaction/pay/start/preStart/fixPaymentService.d.ts +1 -1
  83. package/lib/chevre/service/assetTransaction/pay/start/preStart/fixPaymentService.js +1 -15
  84. package/lib/chevre/service/assetTransaction/pay/start/preStart/validateSeller.d.ts +1 -1
  85. package/lib/chevre/service/assetTransaction/pay/start/preStart/validateSeller.js +9 -3
  86. package/lib/chevre/service/assetTransaction/pay/start.js +3 -3
  87. package/lib/chevre/service/assetTransaction/reserve/start.js +2 -1
  88. package/lib/chevre/service/delivery/reservation/factory.d.ts +1 -1
  89. package/lib/chevre/service/event/saveScreeningEventSeries.js +1 -2
  90. package/lib/chevre/service/event/saveScreeningEvents.js +4 -4
  91. package/lib/chevre/service/notification/sendEmailMessage.d.ts +2 -0
  92. package/lib/chevre/service/notification/sendEmailMessage.js +23 -6
  93. package/lib/chevre/service/offer/any.d.ts +1 -1
  94. package/lib/chevre/service/offer/event/authorize/factory.d.ts +3 -3
  95. package/lib/chevre/service/offer/event/authorize/factory.js +1 -8
  96. package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre.d.ts +1 -1
  97. package/lib/chevre/service/offer/event/issueEventOfferTicket.js +0 -11
  98. package/lib/chevre/service/offer/event/searchEventTicketOffers.d.ts +1 -4
  99. package/lib/chevre/service/offer/event/searchEventTicketOffers.js +9 -13
  100. package/lib/chevre/service/offer/event/searchOfferAppliesToMovieTicket.js +2 -8
  101. package/lib/chevre/service/offer/event/searchOfferCatalogItems.js +2 -2
  102. package/lib/chevre/service/offer/event/searchOffersByIds.js +3 -9
  103. package/lib/chevre/service/offer/eventServiceByCOA/authorize/factory.d.ts +1 -1
  104. package/lib/chevre/service/offer/eventServiceByCOA/authorize/factory.js +0 -7
  105. package/lib/chevre/service/offer/onEventChanged.js +9 -18
  106. package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially/factory.d.ts +4 -6
  107. package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially/factory.js +23 -4
  108. package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/createSendEmailMessageTaskIfNotExist.d.ts +1 -1
  109. package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/processOrder.d.ts +1 -1
  110. package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing.d.ts +1 -1
  111. package/lib/chevre/service/order/placeOrder/factory/orderedItem.d.ts +1 -1
  112. package/lib/chevre/service/order/placeOrder/factory.d.ts +1 -1
  113. package/lib/chevre/service/order/sendOrder.js +2 -14
  114. package/lib/chevre/service/payment/creditCard/getGMOInfoFromSeller.js +1 -1
  115. package/lib/chevre/service/payment/factory/createPayObjectServiceOutput.d.ts +3 -3
  116. package/lib/chevre/service/payment/movieTicket/checkMovieTicket.js +1 -1
  117. package/lib/chevre/service/payment/movieTicket/payMovieTicket/payActionParams2seatInfoSyncIn.js +1 -1
  118. package/lib/chevre/service/payment/movieTicket/validation.js +1 -1
  119. package/lib/chevre/service/project.d.ts +3 -3
  120. package/lib/chevre/service/project.js +1 -1
  121. package/lib/chevre/service/task/onResourceDeleted.js +8 -8
  122. package/lib/chevre/service/task/onResourceUpdated/onAggregateOfferUpdated.js +8 -8
  123. package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.d.ts +7 -3
  124. package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.js +51 -50
  125. package/lib/chevre/service/task/onResourceUpdated/onOfferCatalogUpdated.js +1 -1
  126. package/lib/chevre/service/task/onResourceUpdated/syncOfferCatalog.js +1 -1
  127. package/lib/chevre/service/task/onResourceUpdated.js +10 -47
  128. package/lib/chevre/service/task/sendEmailMessage.js +3 -1
  129. package/lib/chevre/service/task/syncResourcesFromCOA.js +2 -2
  130. package/lib/chevre/service/transaction/placeOrder/confirm/potentialActions/sendEmailMessage.d.ts +6 -3
  131. package/lib/chevre/service/transaction/placeOrder/confirm/potentialActions/sendEmailMessage.js +2 -15
  132. package/lib/chevre/service/transaction/placeOrder/confirm/potentialActions.d.ts +6 -4
  133. package/lib/chevre/service/transaction/placeOrder/confirm/potentialActions.js +3 -7
  134. package/lib/chevre/service/transaction/placeOrder/confirm/prepareUnitPriceOfferConditions.d.ts +1 -1
  135. package/lib/chevre/service/transaction/placeOrder/confirm/validation/validateInvoiceReferencesOrder.d.ts +1 -1
  136. package/lib/chevre/service/transaction/placeOrder/confirm/validation/validateMovieTicket.d.ts +1 -1
  137. package/lib/chevre/service/transaction/placeOrder/confirm/validation.d.ts +2 -2
  138. package/lib/chevre/service/transaction/placeOrder/confirm.d.ts +0 -2
  139. package/lib/chevre/service/transaction/placeOrder/confirm.js +6 -11
  140. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPaymentMethod.d.ts +6 -3
  141. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPaymentMethod.js +8 -9
  142. package/lib/chevre/service/transaction/returnOrder/potentialActions/sendEmailMessage.d.ts +6 -3
  143. package/lib/chevre/service/transaction/returnOrder/potentialActions/sendEmailMessage.js +2 -7
  144. package/lib/chevre/service/transaction/returnOrder/potentialActions.d.ts +6 -3
  145. package/lib/chevre/service/transaction/returnOrder/potentialActions.js +4 -3
  146. package/lib/chevre/service/transaction/returnOrder/preStart/factory.d.ts +1 -1
  147. package/lib/chevre/service/transaction/returnOrder.d.ts +0 -2
  148. package/lib/chevre/service/transaction/returnOrder.js +6 -6
  149. package/package.json +2 -2
  150. package/lib/chevre/repo/accountTitle.d.ts +0 -28
  151. package/lib/chevre/repo/accountTitle.js +0 -30
  152. package/lib/chevre/service/aggregation/project.d.ts +0 -17
  153. package/lib/chevre/service/aggregation/project.js +0 -98
  154. package/lib/chevre/service/delivery/factory.d.ts +0 -16
  155. package/lib/chevre/service/delivery/factory.js +0 -124
@@ -130,37 +130,41 @@ class AdminEventSeriesRepo {
130
130
  }, { projection: { _id: 1 } })
131
131
  .exec();
132
132
  }
133
- /**
134
- * 既存施設コンテンツの最大バージョンを集計する
135
- */
136
- async aggregateMaxVersion(params) {
137
- const aggregations = await this.eventSeriesModel.aggregate([
138
- {
139
- $match: {
140
- 'project.id': { $eq: params.project.id.$eq },
141
- 'workPerformed.identifier': { $exists: true, $eq: params.workPerformed.identifier.$eq },
142
- 'workPerformed.version': { $exists: true },
143
- 'location.branchCode': { $exists: true, $in: params.location.branchCode.$in }
144
- }
145
- },
146
- {
147
- $project: {
148
- // workPerformed: '$workPerformed',
149
- version: { $toLong: '$workPerformed.version' } // support YYYYMMDDHHmmss
150
- }
151
- },
152
- {
153
- $group: {
154
- _id: null,
155
- maxVersion: { $max: '$version' }
156
- }
157
- }
158
- ])
159
- .exec();
160
- const firstMaxVersion = aggregations.at(0)?.maxVersion;
161
- const maxVersion = (typeof firstMaxVersion === 'number') ? String(firstMaxVersion) : '0';
162
- return { maxVersion };
163
- }
133
+ // /**
134
+ // * 既存施設コンテンツの最大バージョンを集計する
135
+ // */
136
+ // public async aggregateMaxVersion(params: {
137
+ // project: { id: { $eq: string } };
138
+ // workPerformed: { identifier: { $eq: string } };
139
+ // location: { branchCode: { $in: string[] } };
140
+ // }): Promise<{ maxVersion: string }> {
141
+ // const aggregations = await this.eventSeriesModel.aggregate<{ maxVersion: number }>([
142
+ // {
143
+ // $match: {
144
+ // 'project.id': { $eq: params.project.id.$eq },
145
+ // 'workPerformed.identifier': { $exists: true, $eq: params.workPerformed.identifier.$eq },
146
+ // 'workPerformed.version': { $exists: true },
147
+ // 'location.branchCode': { $exists: true, $in: params.location.branchCode.$in }
148
+ // }
149
+ // },
150
+ // {
151
+ // $project: {
152
+ // // workPerformed: '$workPerformed',
153
+ // version: { $toLong: '$workPerformed.version' } // support YYYYMMDDHHmmss
154
+ // }
155
+ // },
156
+ // {
157
+ // $group: {
158
+ // _id: null,
159
+ // maxVersion: { $max: '$version' }
160
+ // }
161
+ // }
162
+ // ])
163
+ // .exec();
164
+ // const firstMaxVersion = aggregations.at(0)?.maxVersion;
165
+ // const maxVersion: string = (typeof firstMaxVersion === 'number') ? String(firstMaxVersion) : '0';
166
+ // return { maxVersion };
167
+ // }
164
168
  getCursor(conditions, projection) {
165
169
  return this.eventSeriesModel.find(conditions, projection)
166
170
  .sort({ startDate: factory_1.factory.sortType.Descending })
@@ -1,30 +1,32 @@
1
1
  import type { Connection, FilterQuery } from 'mongoose';
2
2
  import { factory } from '../factory';
3
+ import { IDocType } from './mongoose/schemas/paymentServiceChannel';
3
4
  export type ISavingChannel = Pick<factory.serviceChannel.IServiceChannel, 'credentials' | 'project' | 'providesService' | 'serviceUrl' | 'typeOf'> & {
4
5
  id?: never;
5
6
  };
6
- interface IUnset {
7
- $unset?: Record<string, 1>;
8
- }
9
7
  type IServiceChannelWithId = factory.serviceChannel.IServiceChannel & {
10
8
  id: string;
11
9
  };
12
- type IKeyOfProjection = keyof factory.serviceChannel.IServiceChannel;
10
+ type IKeyOfProjection = keyof IDocType;
13
11
  /**
14
- * 決済サービスチャネルリポジトリ
12
+ * 決済サービスチャネル管理リポジトリ
15
13
  */
16
- export declare class PaymentServiceChannelRepo {
14
+ export declare class AdminPaymentServiceChannelRepo {
17
15
  private readonly paymentServiceChannelModel;
18
16
  constructor(connection: Connection);
19
- static CREATE_MONGO_CONDITIONS(params: factory.serviceChannel.ISearchConditions): FilterQuery<factory.serviceChannel.IServiceChannel>[];
20
- save(params: {
17
+ static CREATE_MONGO_CONDITIONS(params: factory.serviceChannel.ISearchConditions): FilterQuery<IDocType>[];
18
+ /**
19
+ * 決済サービスチャネル保管
20
+ * 編集の場合、credentialsのみ変更可能
21
+ */
22
+ savePaymentServiceChannel(params: {
21
23
  id?: string;
22
- attributes: ISavingChannel & IUnset;
24
+ attributes: ISavingChannel;
23
25
  }): Promise<{
24
26
  id: string;
25
27
  }>;
26
- projectFields(conditions: factory.serviceChannel.ISearchConditions, inclusion: IKeyOfProjection[]): Promise<IServiceChannelWithId[]>;
27
- deleteById(params: {
28
+ findPaymentServiceChannels(conditions: factory.serviceChannel.ISearchConditions, inclusion: IKeyOfProjection[]): Promise<IServiceChannelWithId[]>;
29
+ deletePaymentServiceChannelById(params: {
28
30
  id: string;
29
31
  project: {
30
32
  id: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentServiceChannelRepo = void 0;
3
+ exports.AdminPaymentServiceChannelRepo = void 0;
4
4
  const factory_1 = require("../factory");
5
5
  const settings_1 = require("../settings");
6
6
  const paymentServiceChannel_1 = require("./mongoose/schemas/paymentServiceChannel");
@@ -10,12 +10,11 @@ const AVAILABLE_PROJECT_FIELDS = [
10
10
  'credentials',
11
11
  'providesService',
12
12
  'serviceUrl',
13
- 'typeOf'
14
13
  ];
15
14
  /**
16
- * 決済サービスチャネルリポジトリ
15
+ * 決済サービスチャネル管理リポジトリ
17
16
  */
18
- class PaymentServiceChannelRepo {
17
+ class AdminPaymentServiceChannelRepo {
19
18
  paymentServiceChannelModel;
20
19
  constructor(connection) {
21
20
  this.paymentServiceChannelModel = connection.model(paymentServiceChannel_1.modelName, (0, paymentServiceChannel_1.createSchema)());
@@ -44,29 +43,31 @@ class PaymentServiceChannelRepo {
44
43
  }
45
44
  return andConditions;
46
45
  }
47
- async save(params) {
48
- let doc;
46
+ /**
47
+ * 決済サービスチャネル保管
48
+ * 編集の場合、credentialsのみ変更可能
49
+ */
50
+ async savePaymentServiceChannel(params) {
49
51
  let savedId;
50
52
  const savingId = params.id;
51
53
  if (typeof savingId === 'string') {
52
54
  if (savingId === '') {
53
55
  throw new factory_1.factory.errors.ArgumentNull('id');
54
56
  }
55
- const { id, serviceUrl, providesService, project, typeOf, $unset, ...updateFields } = params.attributes; // eslint-disable-line @typescript-eslint/no-unused-vars
57
+ const { credentials, project } = params.attributes;
56
58
  const filter = {
57
59
  _id: { $eq: savingId },
58
60
  'project.id': { $eq: project.id }
59
61
  };
60
62
  const update = {
61
- $set: updateFields,
62
- ...($unset !== undefined && $unset !== null) ? { $unset } : undefined
63
+ $set: { credentials },
63
64
  };
64
65
  const options = {
65
66
  upsert: false,
66
67
  new: true,
67
- projection: { _id: 1, id: { $toString: '$_id' } }
68
+ projection: { _id: 0, id: { $toString: '$_id' } }
68
69
  };
69
- doc = await this.paymentServiceChannelModel.findOneAndUpdate(filter, update, options)
70
+ const doc = await this.paymentServiceChannelModel.findOneAndUpdate(filter, update, options)
70
71
  .lean()
71
72
  .exec();
72
73
  if (doc === null) {
@@ -75,8 +76,8 @@ class PaymentServiceChannelRepo {
75
76
  savedId = savingId;
76
77
  }
77
78
  else {
78
- const { $unset, id, ...createParams } = params.attributes; // eslint-disable-line @typescript-eslint/no-unused-vars
79
- const result = await this.paymentServiceChannelModel.insertMany(createParams, { rawResult: true });
79
+ const { credentials, project, providesService, serviceUrl, typeOf } = params.attributes;
80
+ const result = await this.paymentServiceChannelModel.insertMany({ credentials, project, providesService, serviceUrl, typeOf }, { rawResult: true });
80
81
  const insertedId = result.insertedIds?.[0]?.toHexString();
81
82
  if (typeof insertedId !== 'string') {
82
83
  throw new factory_1.factory.errors.Internal(`not saved unexpectedly. result:${JSON.stringify(result)}`);
@@ -85,8 +86,8 @@ class PaymentServiceChannelRepo {
85
86
  }
86
87
  return { id: savedId };
87
88
  }
88
- async projectFields(conditions, inclusion) {
89
- const andConditions = PaymentServiceChannelRepo.CREATE_MONGO_CONDITIONS(conditions);
89
+ async findPaymentServiceChannels(conditions, inclusion) {
90
+ const andConditions = AdminPaymentServiceChannelRepo.CREATE_MONGO_CONDITIONS(conditions);
90
91
  let positiveProjectionFields = AVAILABLE_PROJECT_FIELDS;
91
92
  if (Array.isArray(inclusion) && inclusion.length > 0) {
92
93
  positiveProjectionFields = inclusion.filter((key) => AVAILABLE_PROJECT_FIELDS.includes(key));
@@ -109,11 +110,11 @@ class PaymentServiceChannelRepo {
109
110
  .lean()
110
111
  .exec();
111
112
  }
112
- async deleteById(params) {
113
- await this.paymentServiceChannelModel.findOneAndDelete({
113
+ async deletePaymentServiceChannelById(params) {
114
+ await this.paymentServiceChannelModel.deleteOne({
114
115
  _id: { $eq: params.id },
115
116
  'project.id': { $eq: params.project.id }
116
- }, { projection: { _id: 1 } })
117
+ })
117
118
  .exec();
118
119
  }
119
120
  async unsetUnnecessaryFields(params) {
@@ -121,4 +122,4 @@ class PaymentServiceChannelRepo {
121
122
  .exec();
122
123
  }
123
124
  }
124
- exports.PaymentServiceChannelRepo = PaymentServiceChannelRepo;
125
+ exports.AdminPaymentServiceChannelRepo = AdminPaymentServiceChannelRepo;
@@ -33,13 +33,13 @@ export declare class AdminTaskRepo {
33
33
  }): Promise<{
34
34
  count: number;
35
35
  }>;
36
- getCursor(conditions: FilterQuery<factory.task.ITask<factory.taskName>>, projection: ProjectionType<factory.task.ITask<factory.taskName>>): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Pick<import("@chevre/factory/lib/chevre/task").ITask | import("@chevre/factory/lib/chevre/task/confirmPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/confirmReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/createAccountingReport").ITask | import("@chevre/factory/lib/chevre/task/onAssetTransactionStatusChanged").ITask | import("@chevre/factory/lib/chevre/task/onAuthorizationCreated").ITask | import("@chevre/factory/lib/chevre/task/onEventChanged").ITask | import("@chevre/factory/lib/chevre/task/onResourceDeleted").ITask | import("@chevre/factory/lib/chevre/task/onResourceUpdated").ITask | import("@chevre/factory/lib/chevre/task/onOrderPaymentCompleted").ITask | import("@chevre/factory/lib/chevre/task/placeOrder").ITask | import("@chevre/factory/lib/chevre/task/returnOrder").ITask | import("@chevre/factory/lib/chevre/task/returnPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/returnReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/sendEmailMessage").ITask | import("@chevre/factory/lib/chevre/task/sendOrder").ITask | import("@chevre/factory/lib/chevre/task/triggerWebhook").ITask | import("@chevre/factory/lib/chevre/task/useReservation").ITask | import("@chevre/factory/lib/chevre/task/voidPayTransaction").ITask, "project" | "name" | "identifier" | "description" | "data" | "status" | "runsAt" | "dateAborted" | "executionResults" | "executor" | "lastTriedAt" | "remainingNumberOfTries" | "numberOfTried"> & {
36
+ getCursor(conditions: FilterQuery<factory.task.ITask<factory.taskName>>, projection: ProjectionType<factory.task.ITask<factory.taskName>>): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Pick<import("@chevre/factory/lib/chevre/task").ITask | import("@chevre/factory/lib/chevre/task/confirmPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/confirmReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/createAccountingReport").ITask | import("@chevre/factory/lib/chevre/task/onAssetTransactionStatusChanged").ITask | import("@chevre/factory/lib/chevre/task/onAuthorizationCreated").ITask | import("@chevre/factory/lib/chevre/task/onEventChanged").ITask | import("@chevre/factory/lib/chevre/task/onResourceDeleted").ITask | import("@chevre/factory/lib/chevre/task/onResourceUpdated").ITask | import("@chevre/factory/lib/chevre/task/onOrderPaymentCompleted").ITask | import("@chevre/factory/lib/chevre/task/placeOrder").ITask | import("@chevre/factory/lib/chevre/task/returnOrder").ITask | import("@chevre/factory/lib/chevre/task/returnPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/returnReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/sendEmailMessage").ITask | import("@chevre/factory/lib/chevre/task/sendOrder").ITask | import("@chevre/factory/lib/chevre/task/triggerWebhook").ITask | import("@chevre/factory/lib/chevre/task/useReservation").ITask | import("@chevre/factory/lib/chevre/task/voidPayTransaction").ITask, "identifier" | "name" | "description" | "project" | "data" | "status" | "runsAt" | "dateAborted" | "executionResults" | "executor" | "lastTriedAt" | "remainingNumberOfTries" | "numberOfTried"> & {
37
37
  expires?: never;
38
38
  } & {
39
39
  _id: import("mongoose").Types.ObjectId;
40
40
  } & {
41
41
  __v: number;
42
- }, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Pick<import("@chevre/factory/lib/chevre/task").ITask | import("@chevre/factory/lib/chevre/task/confirmPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/confirmReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/createAccountingReport").ITask | import("@chevre/factory/lib/chevre/task/onAssetTransactionStatusChanged").ITask | import("@chevre/factory/lib/chevre/task/onAuthorizationCreated").ITask | import("@chevre/factory/lib/chevre/task/onEventChanged").ITask | import("@chevre/factory/lib/chevre/task/onResourceDeleted").ITask | import("@chevre/factory/lib/chevre/task/onResourceUpdated").ITask | import("@chevre/factory/lib/chevre/task/onOrderPaymentCompleted").ITask | import("@chevre/factory/lib/chevre/task/placeOrder").ITask | import("@chevre/factory/lib/chevre/task/returnOrder").ITask | import("@chevre/factory/lib/chevre/task/returnPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/returnReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/sendEmailMessage").ITask | import("@chevre/factory/lib/chevre/task/sendOrder").ITask | import("@chevre/factory/lib/chevre/task/triggerWebhook").ITask | import("@chevre/factory/lib/chevre/task/useReservation").ITask | import("@chevre/factory/lib/chevre/task/voidPayTransaction").ITask, "project" | "name" | "identifier" | "description" | "data" | "status" | "runsAt" | "dateAborted" | "executionResults" | "executor" | "lastTriedAt" | "remainingNumberOfTries" | "numberOfTried"> & {
42
+ }, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Pick<import("@chevre/factory/lib/chevre/task").ITask | import("@chevre/factory/lib/chevre/task/confirmPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/confirmReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/createAccountingReport").ITask | import("@chevre/factory/lib/chevre/task/onAssetTransactionStatusChanged").ITask | import("@chevre/factory/lib/chevre/task/onAuthorizationCreated").ITask | import("@chevre/factory/lib/chevre/task/onEventChanged").ITask | import("@chevre/factory/lib/chevre/task/onResourceDeleted").ITask | import("@chevre/factory/lib/chevre/task/onResourceUpdated").ITask | import("@chevre/factory/lib/chevre/task/onOrderPaymentCompleted").ITask | import("@chevre/factory/lib/chevre/task/placeOrder").ITask | import("@chevre/factory/lib/chevre/task/returnOrder").ITask | import("@chevre/factory/lib/chevre/task/returnPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/returnReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/sendEmailMessage").ITask | import("@chevre/factory/lib/chevre/task/sendOrder").ITask | import("@chevre/factory/lib/chevre/task/triggerWebhook").ITask | import("@chevre/factory/lib/chevre/task/useReservation").ITask | import("@chevre/factory/lib/chevre/task/voidPayTransaction").ITask, "identifier" | "name" | "description" | "project" | "data" | "status" | "runsAt" | "dateAborted" | "executionResults" | "executor" | "lastTriedAt" | "remainingNumberOfTries" | "numberOfTried"> & {
43
43
  expires?: never;
44
44
  } & {
45
45
  _id: import("mongoose").Types.ObjectId;
@@ -52,26 +52,26 @@ export declare class AdminTransactionRepo {
52
52
  }): Promise<import("mongoose").UpdateWriteOpResult>;
53
53
  getCursor(conditions: any, projection: any, sort?: factory.sortType): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, {
54
54
  object: import("@chevre/factory/lib/chevre/transaction/placeOrder").IObject;
55
+ endDate?: Date | undefined;
56
+ startDate: Date;
57
+ typeOf: factory.transactionType.PlaceOrder;
55
58
  project: import("@chevre/factory/lib/chevre/transaction").IProject;
56
59
  seller: import("@chevre/factory/lib/chevre/transaction/placeOrder").ISeller;
57
- typeOf: factory.transactionType.PlaceOrder;
58
60
  expires: Date;
59
61
  result?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IResult | undefined;
60
- startDate: Date;
61
- endDate?: Date | undefined;
62
62
  instrument?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IInstrument | undefined;
63
63
  agent: import("@chevre/factory/lib/chevre/transaction/placeOrder").IAgent;
64
64
  status: factory.transactionStatusType;
65
65
  tasksExportAction?: import("@chevre/factory/lib/chevre/transaction/placeOrder").ITasksExportAction | undefined;
66
66
  }, import("./mongoose/virtuals").IVirtuals, {}> & {
67
67
  object: import("@chevre/factory/lib/chevre/transaction/placeOrder").IObject;
68
+ endDate?: Date | undefined;
69
+ startDate: Date;
70
+ typeOf: factory.transactionType.PlaceOrder;
68
71
  project: import("@chevre/factory/lib/chevre/transaction").IProject;
69
72
  seller: import("@chevre/factory/lib/chevre/transaction/placeOrder").ISeller;
70
- typeOf: factory.transactionType.PlaceOrder;
71
73
  expires: Date;
72
74
  result?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IResult | undefined;
73
- startDate: Date;
74
- endDate?: Date | undefined;
75
75
  instrument?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IInstrument | undefined;
76
76
  agent: import("@chevre/factory/lib/chevre/transaction/placeOrder").IAgent;
77
77
  status: factory.transactionStatusType;
@@ -82,39 +82,39 @@ export declare class AdminTransactionRepo {
82
82
  __v: number;
83
83
  }, import("mongoose").QueryOptions<{
84
84
  object: import("@chevre/factory/lib/chevre/transaction/placeOrder").IObject;
85
+ endDate?: Date | undefined;
86
+ startDate: Date;
87
+ typeOf: factory.transactionType.PlaceOrder;
85
88
  project: import("@chevre/factory/lib/chevre/transaction").IProject;
86
89
  seller: import("@chevre/factory/lib/chevre/transaction/placeOrder").ISeller;
87
- typeOf: factory.transactionType.PlaceOrder;
88
90
  expires: Date;
89
91
  result?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IResult | undefined;
90
- startDate: Date;
91
- endDate?: Date | undefined;
92
92
  instrument?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IInstrument | undefined;
93
93
  agent: import("@chevre/factory/lib/chevre/transaction/placeOrder").IAgent;
94
94
  status: factory.transactionStatusType;
95
95
  tasksExportAction?: import("@chevre/factory/lib/chevre/transaction/placeOrder").ITasksExportAction | undefined;
96
96
  }>, (import("mongoose").Document<unknown, Record<string, never>, {
97
97
  object: import("@chevre/factory/lib/chevre/transaction/placeOrder").IObject;
98
+ endDate?: Date | undefined;
99
+ startDate: Date;
100
+ typeOf: factory.transactionType.PlaceOrder;
98
101
  project: import("@chevre/factory/lib/chevre/transaction").IProject;
99
102
  seller: import("@chevre/factory/lib/chevre/transaction/placeOrder").ISeller;
100
- typeOf: factory.transactionType.PlaceOrder;
101
103
  expires: Date;
102
104
  result?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IResult | undefined;
103
- startDate: Date;
104
- endDate?: Date | undefined;
105
105
  instrument?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IInstrument | undefined;
106
106
  agent: import("@chevre/factory/lib/chevre/transaction/placeOrder").IAgent;
107
107
  status: factory.transactionStatusType;
108
108
  tasksExportAction?: import("@chevre/factory/lib/chevre/transaction/placeOrder").ITasksExportAction | undefined;
109
109
  }, import("./mongoose/virtuals").IVirtuals, {}> & {
110
110
  object: import("@chevre/factory/lib/chevre/transaction/placeOrder").IObject;
111
+ endDate?: Date | undefined;
112
+ startDate: Date;
113
+ typeOf: factory.transactionType.PlaceOrder;
111
114
  project: import("@chevre/factory/lib/chevre/transaction").IProject;
112
115
  seller: import("@chevre/factory/lib/chevre/transaction/placeOrder").ISeller;
113
- typeOf: factory.transactionType.PlaceOrder;
114
116
  expires: Date;
115
117
  result?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IResult | undefined;
116
- startDate: Date;
117
- endDate?: Date | undefined;
118
118
  instrument?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IInstrument | undefined;
119
119
  agent: import("@chevre/factory/lib/chevre/transaction/placeOrder").IAgent;
120
120
  status: factory.transactionStatusType;
@@ -17,28 +17,7 @@ class CategoryCodeRepo {
17
17
  this.categoryCodeModel = connection.model(categoryCode_1.modelName, (0, categoryCode_1.createSchema)());
18
18
  }
19
19
  static CREATE_MONGO_CONDITIONS(params) {
20
- // const excludeMovieTicketType = true;
21
20
  const andConditions = [];
22
- // 決済カード区分をmovieTicketTypesへ移行済なので、excludeMovieTicketTypeオプションは不要(2025-11-07~)
23
- // if (excludeMovieTicketType) {
24
- // andConditions.push({
25
- // 'inCodeSet.identifier': {
26
- // $in: [
27
- // factory.categoryCode.CategorySetIdentifier.ContentRatingType,
28
- // factory.categoryCode.CategorySetIdentifier.CurrencyType,
29
- // factory.categoryCode.CategorySetIdentifier.CustomerType,
30
- // factory.categoryCode.CategorySetIdentifier.DistributorType,
31
- // factory.categoryCode.CategorySetIdentifier.MembershipType,
32
- // factory.categoryCode.CategorySetIdentifier.OfferCategoryType,
33
- // factory.categoryCode.CategorySetIdentifier.PaymentMethodType,
34
- // factory.categoryCode.CategorySetIdentifier.SeatingType,
35
- // factory.categoryCode.CategorySetIdentifier.ServiceType,
36
- // factory.categoryCode.CategorySetIdentifier.SoundFormatType,
37
- // factory.categoryCode.CategorySetIdentifier.VideoFormatType
38
- // ]
39
- // }
40
- // });
41
- // }
42
21
  /* istanbul ignore else */
43
22
  if (params.project !== undefined && params.project !== null) {
44
23
  if (params.project.id !== undefined && params.project.id !== null) {
@@ -31,6 +31,7 @@ export interface ISearchConditions {
31
31
  };
32
32
  };
33
33
  }
34
+ type IKeyOfProjection = keyof IDocType;
34
35
  /**
35
36
  * Eメールメッセージリポジトリ
36
37
  */
@@ -39,8 +40,9 @@ export declare class EmailMessageRepo {
39
40
  constructor(connection: Connection);
40
41
  static CREATE_MONGO_CONDITIONS(params: ISearchConditions): FilterQuery<IDocType>[];
41
42
  save(params: IEmailMessage): Promise<any>;
42
- findEmailMessages(params: ISearchConditions): Promise<IEmailMessage[]>;
43
+ findEmailMessages(params: ISearchConditions, inclusion: IKeyOfProjection[]): Promise<IEmailMessage[]>;
43
44
  deleteById(params: {
44
45
  id: string;
45
46
  }): Promise<void>;
46
47
  }
48
+ export {};
@@ -4,17 +4,15 @@ exports.EmailMessageRepo = void 0;
4
4
  const emailMessages_1 = require("./mongoose/schemas/emailMessages");
5
5
  const factory_1 = require("../factory");
6
6
  const settings_1 = require("../settings");
7
- const DEFAULT_PROJECTION = {
8
- _id: 0,
9
- id: { $toString: '$_id' },
10
- project: 1,
11
- typeOf: 1,
12
- identifier: 1,
13
- name: 1,
14
- about: 1,
15
- sender: 1,
16
- text: 1,
17
- };
7
+ const AVAILABLE_PROJECT_FIELDS = [
8
+ 'project',
9
+ 'typeOf',
10
+ 'identifier',
11
+ 'name',
12
+ 'about',
13
+ 'sender',
14
+ 'text',
15
+ ];
18
16
  /**
19
17
  * Eメールメッセージリポジトリ
20
18
  */
@@ -61,9 +59,18 @@ class EmailMessageRepo {
61
59
  }
62
60
  return doc.toObject();
63
61
  }
64
- async findEmailMessages(params) {
62
+ async findEmailMessages(params, inclusion) {
65
63
  const conditions = EmailMessageRepo.CREATE_MONGO_CONDITIONS(params);
66
- const query = this.emailMessageModel.find({ $and: conditions }, DEFAULT_PROJECTION);
64
+ let positiveProjectionFields = AVAILABLE_PROJECT_FIELDS;
65
+ if (Array.isArray(inclusion)) {
66
+ positiveProjectionFields = inclusion.filter((key) => AVAILABLE_PROJECT_FIELDS.includes(key));
67
+ }
68
+ const projection = {
69
+ _id: 0,
70
+ id: { $toString: '$_id' },
71
+ ...Object.fromEntries(positiveProjectionFields.map((key) => ([key, 1])))
72
+ };
73
+ const query = this.emailMessageModel.find((conditions.length > 0) ? { $and: conditions } : {}, projection);
67
74
  if (typeof params.limit === 'number' && params.limit > 0) {
68
75
  const page = (typeof params.page === 'number' && params.page > 0) ? params.page : 1;
69
76
  query.limit(params.limit)
@@ -1,6 +1,6 @@
1
1
  import type { Connection, FilterQuery } from 'mongoose';
2
2
  import { factory } from '../factory';
3
- type ISearchConditions = factory.eventSeries.ISearchConditions;
3
+ type ISearchConditions = Pick<factory.eventSeries.ISearchConditions, 'limit' | 'page' | 'sort' | 'additionalProperty' | 'endFrom' | 'endThrough' | 'id' | 'inSessionFrom' | 'inSessionThrough' | 'location' | 'name' | 'organizer' | 'project' | 'startFrom' | 'startThrough' | 'videoFormat' | 'workPerformed' | 'movieIdentifier' | 'movieVersion'>;
4
4
  type IKeyOfProjection = Exclude<keyof factory.eventSeries.IEvent, 'id' | 'videoFormat'>;
5
5
  /**
6
6
  * 施設コンテンツリポジトリ
@@ -12,7 +12,7 @@ export declare class EventSeriesRepo {
12
12
  /**
13
13
  * イベントを検索する(inclusion projection)
14
14
  */
15
- projectEventSeriesFields(params: ISearchConditions, inclusion: IKeyOfProjection[]): Promise<factory.eventSeries.IEvent[]>;
15
+ findEventSeries(params: ISearchConditions, inclusion: IKeyOfProjection[]): Promise<factory.eventSeries.IEvent[]>;
16
16
  deleteManyByOrganizerId(params: {
17
17
  project: {
18
18
  id: string;
@@ -127,18 +127,25 @@ class EventSeriesRepo {
127
127
  });
128
128
  }
129
129
  }
130
- const workPerformedIdentifierIn = conditions.workPerformed?.identifiers;
131
- /* istanbul ignore else */
132
- if (Array.isArray(workPerformedIdentifierIn)) {
133
- andConditions.push({
134
- 'workPerformed.identifier': { $exists: true, $in: workPerformedIdentifierIn }
135
- });
136
- }
137
- const workPerformedVersionEq = conditions.workPerformed?.version?.$eq;
130
+ // const workPerformedIdentifierIn = conditions.workPerformed?.identifiers;
131
+ // if (Array.isArray(workPerformedIdentifierIn)) {
132
+ // andConditions.push({
133
+ // 'workPerformed.identifier': { $exists: true, $in: workPerformedIdentifierIn }
134
+ // });
135
+ // }
136
+ // const workPerformedVersionEq = conditions.workPerformed?.version?.$eq;
137
+ // if (typeof workPerformedVersionEq === 'string') {
138
+ // andConditions.push({
139
+ // 'workPerformed.version': { $exists: true, $eq: workPerformedVersionEq }
140
+ // });
141
+ // }
142
+ const workPerformedIdentifierEq = conditions.movieIdentifier;
143
+ if (typeof workPerformedIdentifierEq === 'string') {
144
+ andConditions.push({ 'workPerformed.identifier': { $exists: true, $eq: workPerformedIdentifierEq } });
145
+ }
146
+ const workPerformedVersionEq = conditions.movieVersion;
138
147
  if (typeof workPerformedVersionEq === 'string') {
139
- andConditions.push({
140
- 'workPerformed.version': { $exists: true, $eq: workPerformedVersionEq }
141
- });
148
+ andConditions.push({ 'workPerformed.version': { $exists: true, $eq: workPerformedVersionEq } });
142
149
  }
143
150
  const videoFormatTypeOfEq = conditions.videoFormat?.typeOf?.$eq;
144
151
  if (typeof videoFormatTypeOfEq === 'string') {
@@ -153,7 +160,7 @@ class EventSeriesRepo {
153
160
  /**
154
161
  * イベントを検索する(inclusion projection)
155
162
  */
156
- async projectEventSeriesFields(params, inclusion) {
163
+ async findEventSeries(params, inclusion) {
157
164
  const conditions = EventSeriesRepo.CREATE_MONGO_CONDITIONS(params);
158
165
  let projection;
159
166
  const positiveProjectionFields = (Array.isArray(inclusion))
@@ -1,5 +1,5 @@
1
1
  import { factory } from '../../../factory';
2
- type IAcceptedOfferByReserveTransaction = Pick<factory.order.IOptimizedAcceptedOffer, 'itemOffered' | 'priceSpecification' | 'name'>;
2
+ type IAcceptedOfferByReserveTransaction = Pick<factory.acceptedOffer.IOptimizedAcceptedOffer, 'itemOffered' | 'priceSpecification' | 'name'>;
3
3
  /**
4
4
  * 予約取引を注文のitemOfferedへ変換する
5
5
  */
@@ -36,17 +36,13 @@ export declare class IssuerRepo {
36
36
  };
37
37
  }): Promise<void>;
38
38
  getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<factory.issuer.IIssuer, "id"> & {
39
- hasMemberProgram?: (factory.issuer.IMemberProgram & {
40
- hasTiers?: Pick<factory.issuer.IMemberProgramTier, "identifier" | "typeOf">[];
41
- })[];
39
+ hasMemberProgram?: factory.issuer.IMemberProgram[];
42
40
  } & {
43
41
  _id: import("mongoose").Types.ObjectId;
44
42
  } & {
45
43
  __v: number;
46
44
  }, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<factory.issuer.IIssuer, "id"> & {
47
- hasMemberProgram?: (factory.issuer.IMemberProgram & {
48
- hasTiers?: Pick<factory.issuer.IMemberProgramTier, "identifier" | "typeOf">[];
49
- })[];
45
+ hasMemberProgram?: factory.issuer.IMemberProgram[];
50
46
  } & {
51
47
  _id: import("mongoose").Types.ObjectId;
52
48
  } & {
@@ -1,22 +1,11 @@
1
1
  import { Connection } from 'mongoose';
2
2
  import { factory } from '../factory';
3
- type IMemberProgramTier = Pick<factory.issuer.IMemberProgramTier, 'identifier' | 'typeOf'>;
4
- type IMemberProgram = factory.issuer.IMemberProgram & {
5
- hasTiers?: IMemberProgramTier[];
6
- };
3
+ type IMemberProgram = factory.issuer.IMemberProgram;
7
4
  type IMemberProgramAsSearchResult = IMemberProgram & {
8
5
  hostingOrganization: {
9
6
  identifier: string;
10
7
  };
11
8
  };
12
- type IMemberProgramTierAsSearchResult = IMemberProgramTier & {
13
- isTierOf: {
14
- identifier: string;
15
- hostingOrganization: {
16
- identifier: string;
17
- };
18
- };
19
- };
20
9
  /**
21
10
  * メンバープログラムリポジトリ
22
11
  */
@@ -44,31 +33,6 @@ export declare class MemberProgramRepo {
44
33
  $in?: string[];
45
34
  };
46
35
  }): Promise<IMemberProgramAsSearchResult[]>;
47
- /**
48
- * tierを検索する
49
- */
50
- projectMemberProgramTiers(params: {
51
- limit?: number;
52
- page?: number;
53
- project?: {
54
- id?: {
55
- $eq?: string;
56
- };
57
- };
58
- isTierOf?: {
59
- hostingOrganization?: {
60
- id?: {
61
- $eq?: string;
62
- };
63
- };
64
- identifier?: {
65
- $eq?: string;
66
- };
67
- };
68
- identifier?: {
69
- $eq?: string;
70
- };
71
- }): Promise<IMemberProgramTierAsSearchResult[]>;
72
36
  create(params: {
73
37
  project: {
74
38
  id: string;
@@ -83,7 +47,6 @@ export declare class MemberProgramRepo {
83
47
  id: string;
84
48
  };
85
49
  identifier: string;
86
- hasTiers?: Pick<factory.issuer.IMemberProgramTier, 'identifier'>[];
87
50
  hostingOrganization: {
88
51
  id: string;
89
52
  };