@chevre/domain 21.8.0-alpha.3 → 21.8.0-alpha.31

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 (86) hide show
  1. package/example/src/chevre/db/stats.ts +22 -0
  2. package/example/src/chevre/importOffersFromCOA.ts +7 -1
  3. package/example/src/chevre/migrateAggregateOffers.ts +75 -0
  4. package/example/src/chevre/migrateOrderPaymentMethodIdentifier.ts +81 -0
  5. package/example/src/chevre/migratePayTransactionPaymentMethodId.ts +72 -0
  6. package/example/src/chevre/migratePayTransactionPaymentMethodIdentifier.ts +78 -0
  7. package/example/src/chevre/processPay.ts +3 -4
  8. package/example/src/chevre/publishPermitOwnershipInfoToken.ts +56 -0
  9. package/example/src/chevre/searchOffersByCatalog.ts +1 -2
  10. package/example/src/chevre/searchOffersFromAggregateOffer.ts +152 -0
  11. package/example/src/chevre/searchTasks.ts +9 -9
  12. package/example/src/chevre/syncAggregateOffer.ts +25 -0
  13. package/lib/chevre/repo/assetTransaction.d.ts +16 -1
  14. package/lib/chevre/repo/assetTransaction.js +54 -2
  15. package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +71 -0
  16. package/lib/chevre/repo/mongoose/schemas/aggregateOffer.js +54 -0
  17. package/lib/chevre/repo/mongoose/schemas/offer.js +1 -0
  18. package/lib/chevre/repo/mongoose/schemas/order.d.ts +3 -0
  19. package/lib/chevre/repo/mongoose/schemas/order.js +1 -0
  20. package/lib/chevre/repo/mongoose/schemas/task.d.ts +3 -0
  21. package/lib/chevre/repo/mongoose/schemas/task.js +8 -0
  22. package/lib/chevre/repo/offer.d.ts +50 -9
  23. package/lib/chevre/repo/offer.js +669 -21
  24. package/lib/chevre/repo/order.d.ts +15 -0
  25. package/lib/chevre/repo/order.js +34 -1
  26. package/lib/chevre/repo/task.d.ts +7 -1
  27. package/lib/chevre/repo/task.js +111 -22
  28. package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.js +2 -2
  29. package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.js +2 -2
  30. package/lib/chevre/service/assetTransaction/pay/account/validation.js +2 -2
  31. package/lib/chevre/service/assetTransaction/pay/factory.js +26 -18
  32. package/lib/chevre/service/assetTransaction/pay/potentialActions.js +3 -3
  33. package/lib/chevre/service/assetTransaction/pay.js +65 -46
  34. package/lib/chevre/service/assetTransaction/refund/factory.js +8 -2
  35. package/lib/chevre/service/assetTransaction/reserve.js +105 -31
  36. package/lib/chevre/service/delivery.js +17 -0
  37. package/lib/chevre/service/offer/event/authorize.js +3 -0
  38. package/lib/chevre/service/offer/event/factory.js +8 -8
  39. package/lib/chevre/service/offer/event/importFromCOA.d.ts +2 -0
  40. package/lib/chevre/service/offer/event/searchEventTicketOffers.js +2 -2
  41. package/lib/chevre/service/offer/event/voidTransaction.js +7 -2
  42. package/lib/chevre/service/offer/product/searchProductOffers.js +1 -1
  43. package/lib/chevre/service/order/confirmPayTransaction.d.ts +0 -2
  44. package/lib/chevre/service/order/confirmPayTransaction.js +29 -40
  45. package/lib/chevre/service/order/onAssetTransactionStatusChanged.d.ts +27 -0
  46. package/lib/chevre/service/order/onAssetTransactionStatusChanged.js +226 -0
  47. package/lib/chevre/service/order/onOrderStatusChanged/factory.d.ts +8 -6
  48. package/lib/chevre/service/order/onOrderStatusChanged/factory.js +80 -57
  49. package/lib/chevre/service/order/onOrderStatusChanged.js +104 -81
  50. package/lib/chevre/service/order/payOrder.d.ts +2 -10
  51. package/lib/chevre/service/order/payOrder.js +4 -45
  52. package/lib/chevre/service/order/placeOrder.js +11 -13
  53. package/lib/chevre/service/order.d.ts +3 -1
  54. package/lib/chevre/service/order.js +6 -2
  55. package/lib/chevre/service/payment/any/factory.js +33 -8
  56. package/lib/chevre/service/payment/any.js +30 -21
  57. package/lib/chevre/service/payment/creditCard.js +12 -12
  58. package/lib/chevre/service/payment/movieTicket/validation.js +2 -2
  59. package/lib/chevre/service/payment/movieTicket.js +10 -11
  60. package/lib/chevre/service/payment/paymentCard.js +9 -12
  61. package/lib/chevre/service/project.js +1 -1
  62. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +3 -0
  63. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.js +1 -4
  64. package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.js +1 -5
  65. package/lib/chevre/service/reserve/potentialActions/onReservationUsed.d.ts +3 -0
  66. package/lib/chevre/service/reserve/potentialActions/onReservationUsed.js +1 -4
  67. package/lib/chevre/service/task/confirmPayTransaction.js +1 -3
  68. package/lib/chevre/service/task/importOffersFromCOA.js +3 -0
  69. package/lib/chevre/service/task/onAssetTransactionStatusChanged.d.ts +6 -0
  70. package/lib/chevre/service/task/onAssetTransactionStatusChanged.js +37 -0
  71. package/lib/chevre/service/task/onOrderPaymentCompleted.d.ts +6 -0
  72. package/lib/chevre/service/task/onOrderPaymentCompleted.js +35 -0
  73. package/lib/chevre/service/task/returnPayTransaction.js +8 -3
  74. package/lib/chevre/service/task/syncAggregateOffer.d.ts +7 -0
  75. package/lib/chevre/service/task/syncAggregateOffer.js +23 -0
  76. package/lib/chevre/service/transaction/placeOrderInProgress/result.js +32 -16
  77. package/lib/chevre/service/transaction/placeOrderInProgress/validation/validateMovieTicket.js +13 -11
  78. package/lib/chevre/service/transaction/placeOrderInProgress/validation.js +53 -17
  79. package/lib/chevre/service/transaction/placeOrderInProgress.js +4 -1
  80. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPaymentMethod.js +7 -6
  81. package/lib/chevre/service/transaction/returnOrder.js +5 -1
  82. package/lib/chevre/settings.d.ts +2 -2
  83. package/lib/chevre/settings.js +3 -5
  84. package/package.json +3 -3
  85. package/example/src/chevre/migrateAuthorizePaymentActionResult.ts +0 -83
  86. package/example/src/chevre/migrateEventOrganizer.ts +0 -154
@@ -344,14 +344,16 @@ class MongoRepository {
344
344
  * 取引を確定する
345
345
  */
346
346
  confirm(params) {
347
- var _a, _b;
347
+ var _a, _b, _c, _d;
348
348
  return __awaiter(this, void 0, void 0, function* () {
349
349
  const doc = yield this.transactionModel.findOneAndUpdate({
350
350
  _id: { $eq: params.id },
351
351
  typeOf: { $eq: params.typeOf },
352
352
  status: { $eq: factory.transactionStatusType.InProgress }
353
- }, Object.assign({ status: factory.transactionStatusType.Confirmed, endDate: new Date(), result: params.result, potentialActions: params.potentialActions }, (typeof ((_b = (_a = params.object) === null || _a === void 0 ? void 0 : _a.underName) === null || _b === void 0 ? void 0 : _b.typeOf) === 'string')
353
+ }, Object.assign(Object.assign({ status: factory.transactionStatusType.Confirmed, endDate: new Date(), result: params.result, potentialActions: params.potentialActions }, (typeof ((_b = (_a = params.object) === null || _a === void 0 ? void 0 : _a.underName) === null || _b === void 0 ? void 0 : _b.typeOf) === 'string')
354
354
  ? { 'object.underName': params.object.underName }
355
+ : undefined), (typeof ((_d = (_c = params.object) === null || _c === void 0 ? void 0 : _c.paymentMethod) === null || _d === void 0 ? void 0 : _d.identifier) === 'string')
356
+ ? { 'object.paymentMethod.identifier': params.object.paymentMethod.identifier }
355
357
  : undefined), {
356
358
  new: true,
357
359
  projection: { _id: 1 }
@@ -704,6 +706,55 @@ class MongoRepository {
704
706
  });
705
707
  });
706
708
  }
709
+ migratePaymentMethodIdentifier(params) {
710
+ return __awaiter(this, void 0, void 0, function* () {
711
+ return this.transactionModel.findOneAndUpdate({
712
+ typeOf: { $eq: factory.assetTransactionType.Pay },
713
+ transactionNumber: { $exists: true, $eq: params.transactionNumber }
714
+ }, { 'object.paymentMethod.identifier': params.object.paymentMethod.identifier }, {
715
+ new: true,
716
+ projection: { _id: 1 }
717
+ })
718
+ .exec()
719
+ .then((doc) => {
720
+ if (doc === null) {
721
+ throw new factory.errors.ArgumentNull(this.transactionModel.modelName);
722
+ }
723
+ return doc.toObject();
724
+ });
725
+ });
726
+ }
727
+ // public async migratePaymentMethodIdentifierMany() {
728
+ // // return this.transactionModel.updateMany(
729
+ // // {
730
+ // // typeOf: { $eq: factory.assetTransactionType.Pay }
731
+ // // // 'object.paymentMethod.identifier': { $exists: false }
732
+ // // },
733
+ // // { $set: { 'object.paymentMethod.identifier': '$object.paymentMethod.typeOf' } }
734
+ // // )
735
+ // // .exec();
736
+ // return this.transactionModel.aggregate([
737
+ // {
738
+ // $match: {
739
+ // typeOf: { $eq: factory.assetTransactionType.Pay }
740
+ // }
741
+ // },
742
+ // {
743
+ // $project: {
744
+ // paymentMethodIdentifier: '$object.paymentMethod.typeOf'
745
+ // }
746
+ // },
747
+ // {
748
+ // $unset: ['object.paymentMethod.identifier']
749
+ // }
750
+ // // {
751
+ // // $set: {
752
+ // // 'object.paymentMethod.identifier': '$paymentMethodIdentifier'
753
+ // // }
754
+ // // }
755
+ // ])
756
+ // .exec();
757
+ // }
707
758
  findByIdAndDelete(params) {
708
759
  return __awaiter(this, void 0, void 0, function* () {
709
760
  yield this.transactionModel.findByIdAndDelete(params.id)
@@ -713,6 +764,7 @@ class MongoRepository {
713
764
  getCursor(conditions, projection) {
714
765
  return this.transactionModel.find(conditions, projection)
715
766
  .sort({ startDate: factory.sortType.Ascending })
767
+ // .sort({ startDate: factory.sortType.Descending })
716
768
  .cursor();
717
769
  }
718
770
  aggregateAssetTransaction(params) {
@@ -0,0 +1,71 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ import { Schema } from 'mongoose';
26
+ declare const modelName = "AggregateOffer";
27
+ /**
28
+ * 集計オファースキーマ
29
+ */
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
+ collection: string;
32
+ id: true;
33
+ read: string;
34
+ writeConcern: import("mongodb").WriteConcern;
35
+ strict: true;
36
+ strictQuery: false;
37
+ timestamps: {
38
+ createdAt: string;
39
+ updatedAt: string;
40
+ };
41
+ toJSON: {
42
+ getters: false;
43
+ virtuals: false;
44
+ minimize: false;
45
+ versionKey: false;
46
+ };
47
+ toObject: {
48
+ getters: false;
49
+ virtuals: true;
50
+ minimize: false;
51
+ versionKey: false;
52
+ };
53
+ }, {
54
+ offers: any[];
55
+ _id?: string | undefined;
56
+ typeOf?: string | undefined;
57
+ project?: any;
58
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
59
+ offers: any[];
60
+ _id?: string | undefined;
61
+ typeOf?: string | undefined;
62
+ project?: any;
63
+ }>> & Omit<import("mongoose").FlatRecord<{
64
+ offers: any[];
65
+ _id?: string | undefined;
66
+ typeOf?: string | undefined;
67
+ project?: any;
68
+ }> & Required<{
69
+ _id: string;
70
+ }>, never>>;
71
+ export { modelName, schema };
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.schema = exports.modelName = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const writeConcern_1 = require("../writeConcern");
6
+ const modelName = 'AggregateOffer';
7
+ exports.modelName = modelName;
8
+ /**
9
+ * 集計オファースキーマ
10
+ */
11
+ const schema = new mongoose_1.Schema({
12
+ project: mongoose_1.SchemaTypes.Mixed,
13
+ _id: String,
14
+ typeOf: String,
15
+ offers: [mongoose_1.SchemaTypes.Mixed]
16
+ }, {
17
+ collection: 'aggregateOffers',
18
+ id: true,
19
+ read: 'primaryPreferred',
20
+ writeConcern: writeConcern_1.writeConcern,
21
+ strict: true,
22
+ strictQuery: false,
23
+ timestamps: {
24
+ createdAt: 'createdAt',
25
+ updatedAt: 'updatedAt'
26
+ },
27
+ toJSON: {
28
+ getters: false,
29
+ virtuals: false,
30
+ minimize: false,
31
+ versionKey: false
32
+ },
33
+ toObject: {
34
+ getters: false,
35
+ virtuals: true,
36
+ minimize: false,
37
+ versionKey: false
38
+ }
39
+ });
40
+ exports.schema = schema;
41
+ schema.index({ createdAt: 1 }, { name: 'searchByCreatedAt' });
42
+ schema.index({ updatedAt: 1 }, { name: 'searchByUpdatedAt' });
43
+ schema.index({ 'offers.priceSpecification.price': 1 }, { name: 'searchByOffersPriceSpecificationPrice' });
44
+ schema.index({ 'project.id': 1, 'offers.priceSpecification.price': 1 }, { name: 'searchByProjectId' });
45
+ // オファーIDはグローバルユニーク
46
+ schema.index({ 'offers.id': 1 }, {
47
+ name: 'uniqueOfferId',
48
+ unique: true
49
+ });
50
+ // オファーコードはプロジェクト内ユニーク
51
+ schema.index({ 'offers.identifier': 1, 'project.id': 1 }, {
52
+ name: 'uniqueOfferIdentifier',
53
+ unique: true
54
+ });
@@ -29,6 +29,7 @@ const schema = new mongoose_1.Schema({
29
29
  availableAtOrFrom: [mongoose_1.SchemaTypes.Mixed],
30
30
  hasMerchantReturnPolicy: mongoose_1.SchemaTypes.Mixed,
31
31
  itemOffered: mongoose_1.SchemaTypes.Mixed,
32
+ // offers: [SchemaTypes.Mixed],
32
33
  priceCurrency: String,
33
34
  priceSpecification: mongoose_1.SchemaTypes.Mixed,
34
35
  eligibleCustomerType: mongoose_1.SchemaTypes.Mixed,
@@ -72,6 +72,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
72
72
  customer?: any;
73
73
  returner?: any;
74
74
  orderStatus?: string | undefined;
75
+ previousOrderStatus?: string | undefined;
75
76
  isGift?: boolean | undefined;
76
77
  dateReturned?: Date | undefined;
77
78
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
@@ -95,6 +96,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
95
96
  customer?: any;
96
97
  returner?: any;
97
98
  orderStatus?: string | undefined;
99
+ previousOrderStatus?: string | undefined;
98
100
  isGift?: boolean | undefined;
99
101
  dateReturned?: Date | undefined;
100
102
  }>> & Omit<import("mongoose").FlatRecord<{
@@ -118,6 +120,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
118
120
  customer?: any;
119
121
  returner?: any;
120
122
  orderStatus?: string | undefined;
123
+ previousOrderStatus?: string | undefined;
121
124
  isGift?: boolean | undefined;
122
125
  dateReturned?: Date | undefined;
123
126
  }> & {
@@ -29,6 +29,7 @@ const schema = new mongoose_1.Schema({
29
29
  discounts: [mongoose_1.SchemaTypes.Mixed],
30
30
  url: String,
31
31
  orderStatus: String,
32
+ previousOrderStatus: String,
32
33
  orderDate: Date,
33
34
  isGift: Boolean,
34
35
  dateReturned: Date,
@@ -57,6 +57,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
57
57
  status?: string | undefined;
58
58
  data?: any;
59
59
  project?: any;
60
+ identifier?: string | undefined;
60
61
  runsAt?: Date | undefined;
61
62
  remainingNumberOfTries?: number | undefined;
62
63
  lastTriedAt?: Date | undefined;
@@ -69,6 +70,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
69
70
  status?: string | undefined;
70
71
  data?: any;
71
72
  project?: any;
73
+ identifier?: string | undefined;
72
74
  runsAt?: Date | undefined;
73
75
  remainingNumberOfTries?: number | undefined;
74
76
  lastTriedAt?: Date | undefined;
@@ -81,6 +83,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
81
83
  status?: string | undefined;
82
84
  data?: any;
83
85
  project?: any;
86
+ identifier?: string | undefined;
84
87
  runsAt?: Date | undefined;
85
88
  remainingNumberOfTries?: number | undefined;
86
89
  lastTriedAt?: Date | undefined;
@@ -9,6 +9,7 @@ exports.modelName = modelName;
9
9
  * タスクスキーマ
10
10
  */
11
11
  const schema = new mongoose_1.Schema({
12
+ identifier: String,
12
13
  project: mongoose_1.SchemaTypes.Mixed,
13
14
  name: String,
14
15
  status: String,
@@ -52,6 +53,13 @@ schema.index({ 'project.id': 1, runsAt: -1 }, { name: 'searchByProjectId-v202207
52
53
  schema.index({ name: 1, runsAt: -1 }, { name: 'searchByName-v2' });
53
54
  schema.index({ status: 1, runsAt: -1 }, { name: 'searchByStatus-v2' });
54
55
  schema.index({ runsAt: -1 }, { name: 'searchByRunsAt-v2' });
56
+ // identifier追加(2023-09-01~)
57
+ schema.index({ identifier: 1, runsAt: -1 }, {
58
+ name: 'searchByIdentifier',
59
+ partialFilterExpression: {
60
+ identifier: { $exists: true }
61
+ }
62
+ });
55
63
  schema.index({ dateAborted: 1, runsAt: -1 }, {
56
64
  name: 'searchByDateAborted',
57
65
  partialFilterExpression: {
@@ -22,7 +22,8 @@
22
22
  /// <reference types="mongoose/types/validation" />
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
- import { Connection } from 'mongoose';
25
+ import { BulkWriteResult as BulkWriteOpResultObject } from 'mongodb';
26
+ import { Connection, PipelineStage } from 'mongoose';
26
27
  import * as factory from '../factory';
27
28
  interface IProjection {
28
29
  [key: string]: 0 | 1;
@@ -31,10 +32,13 @@ interface IProjection {
31
32
  * オファーリポジトリ
32
33
  */
33
34
  export declare class MongoRepository {
35
+ private readonly aggregateOfferModel;
34
36
  private readonly offerModel;
35
37
  private readonly offerCatalogModel;
38
+ private readonly taskModel;
36
39
  constructor(connection: Connection);
37
40
  static CREATE_OFFER_MONGO_CONDITIONS(params: factory.unitPriceOffer.ISearchConditions): any[];
41
+ static CREATE_AGGREGATE_OFFERS_MATCH_CONDITIONS(params: factory.unitPriceOffer.ISearchConditions): PipelineStage.Match[];
38
42
  /**
39
43
  * カタログに含まれるオファーを検索する
40
44
  * カタログに登録されたオファーの順序は保証される
@@ -55,7 +59,6 @@ export declare class MongoRepository {
55
59
  onlyValid?: boolean;
56
60
  limit?: number;
57
61
  page?: number;
58
- sort: boolean;
59
62
  projection?: IProjection;
60
63
  }): Promise<{
61
64
  offers: factory.unitPriceOffer.IUnitPriceOffer[];
@@ -64,9 +67,19 @@ export declare class MongoRepository {
64
67
  findById(params: {
65
68
  id: string;
66
69
  }): Promise<factory.unitPriceOffer.IUnitPriceOffer>;
70
+ findAggregateOfferById(params: {
71
+ project: {
72
+ id: string;
73
+ };
74
+ id: string;
75
+ }): Promise<factory.aggregateOffer.IAggregateOffer>;
67
76
  count(params: factory.unitPriceOffer.ISearchConditions): Promise<number>;
68
77
  search(params: factory.unitPriceOffer.ISearchConditions, projection?: IProjection): Promise<factory.unitPriceOffer.IUnitPriceOffer[]>;
78
+ searchFromAggregateOffer(params: factory.unitPriceOffer.ISearchConditions, __?: IProjection): Promise<factory.unitPriceOffer.IUnitPriceOffer[]>;
69
79
  save(params: factory.unitPriceOffer.IUnitPriceOffer): Promise<factory.unitPriceOffer.IUnitPriceOffer>;
80
+ /**
81
+ * sskts専用オファー保管
82
+ */
70
83
  saveManyByIdentifier(params: {
71
84
  attributes: factory.unitPriceOffer.IUnitPriceOffer;
72
85
  upsert?: boolean;
@@ -87,17 +100,45 @@ export declare class MongoRepository {
87
100
  };
88
101
  }): Promise<import("mongodb").UpdateResult | undefined>;
89
102
  deleteById(params: {
90
- id: string;
91
- }): Promise<void>;
92
- deleteByProject(params: {
93
103
  project: {
94
104
  id: string;
95
105
  };
106
+ id: string;
96
107
  }): Promise<void>;
97
108
  getCursor(conditions: any, projection: any): import("mongoose").Cursor<any, import("mongoose").QueryOptions<any>>;
98
- unsetUnnecessaryFields(params: {
99
- filter: any;
100
- $unset: any;
101
- }): Promise<import("mongodb").UpdateResult>;
109
+ sync2aggregateOffer(params: {
110
+ id?: {
111
+ $in: string[];
112
+ };
113
+ identifier?: {
114
+ $in: string[];
115
+ };
116
+ project: {
117
+ id: string;
118
+ };
119
+ isDeleted: boolean;
120
+ typeOf: factory.offerType.AggregateOffer | factory.offerType.Offer;
121
+ }): Promise<BulkWriteOpResultObject | void>;
122
+ /**
123
+ * オファー同期専用のタスク保管
124
+ */
125
+ saveSyncTask(params: {
126
+ id: {
127
+ $in: string[];
128
+ };
129
+ identifier: {
130
+ $in: string[];
131
+ };
132
+ isDeleted: boolean;
133
+ project: {
134
+ id: string;
135
+ };
136
+ typeOf: factory.offerType.AggregateOffer | factory.offerType.Offer;
137
+ options: {
138
+ emitImmediately: boolean;
139
+ };
140
+ }): Promise<{
141
+ id: string;
142
+ }[]>;
102
143
  }
103
144
  export {};