@chevre/domain 24.0.0-alpha.26 → 24.0.0-alpha.28
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.
- package/lib/chevre/errorHandler.js +1 -1
- package/lib/chevre/repo/accountTitle.d.ts +7 -3
- package/lib/chevre/repo/action/acceptCOAOffer.js +0 -2
- package/lib/chevre/repo/action/acceptPay.d.ts +4 -0
- package/lib/chevre/repo/action/acceptPay.js +40 -52
- package/lib/chevre/repo/action/actionProcess.d.ts +31 -1
- package/lib/chevre/repo/action/actionProcess.js +499 -4
- package/lib/chevre/repo/action/authorizeInvoice.d.ts +14 -1
- package/lib/chevre/repo/action/authorizeInvoice.js +36 -0
- package/lib/chevre/repo/action/authorizePaymentMethod.js +9 -47
- package/lib/chevre/repo/action.d.ts +8 -8
- package/lib/chevre/repo/action.js +2 -510
- package/lib/chevre/repo/aggregateOffer.d.ts +7 -3
- package/lib/chevre/repo/assetTransaction.d.ts +48 -22
- package/lib/chevre/repo/categoryCode.d.ts +8 -3
- package/lib/chevre/repo/comment.d.ts +7 -3
- package/lib/chevre/repo/creativeWork.d.ts +8 -7
- package/lib/chevre/repo/customer.d.ts +8 -3
- package/lib/chevre/repo/event.d.ts +11 -23
- package/lib/chevre/repo/event.js +22 -23
- package/lib/chevre/repo/eventSeries.d.ts +10 -4
- package/lib/chevre/repo/identity.d.ts +12 -3
- package/lib/chevre/repo/identityProvider.d.ts +7 -18
- package/lib/chevre/repo/issuer.d.ts +8 -8
- package/lib/chevre/repo/member.d.ts +7 -3
- package/lib/chevre/repo/merchantReturnPolicy.d.ts +7 -3
- package/lib/chevre/repo/message.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/acceptedPaymentMethod.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/action.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/customer.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/customerType.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/eventOffer.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/identity.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/identityProvider.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/issuer.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/member/global.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/message.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/movieTicketTypes.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/paymentService.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/paymentServiceChannel.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/potentialAction.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +3 -1
- package/lib/chevre/repo/mongoose/schemas/product.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/productModel.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/project.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/schedule.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/seller.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/sellerReturnPolicy.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/setting.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/task.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/ticket.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +5 -2
- package/lib/chevre/repo/mongoose/schemas/webSite.d.ts +1 -1
- package/lib/chevre/repo/movieTicketType.d.ts +2 -1
- package/lib/chevre/repo/offerCatalog.d.ts +8 -4
- package/lib/chevre/repo/order.d.ts +10 -4
- package/lib/chevre/repo/ownershipInfo.d.ts +8 -7
- package/lib/chevre/repo/paymentService.d.ts +8 -8
- package/lib/chevre/repo/place/movieTheater.d.ts +7 -3
- package/lib/chevre/repo/place/screeningRoom.d.ts +7 -3
- package/lib/chevre/repo/potentialAction.d.ts +7 -26
- package/lib/chevre/repo/priceSpecification.d.ts +47 -22
- package/lib/chevre/repo/priceSpecification.js +0 -6
- package/lib/chevre/repo/product.d.ts +7 -3
- package/lib/chevre/repo/project.d.ts +8 -11
- package/lib/chevre/repo/reservation.d.ts +18 -6
- package/lib/chevre/repo/reserveInterface.js +4 -4
- package/lib/chevre/repo/role.d.ts +39 -3
- package/lib/chevre/repo/schedule.js +1 -1
- package/lib/chevre/repo/seller.d.ts +7 -50
- package/lib/chevre/repo/task.d.ts +7 -67
- package/lib/chevre/repo/transaction.d.ts +103 -13
- package/lib/chevre/service/order/sendOrder.js +0 -1
- package/lib/chevre/service/payment/creditCard/voidTransaction.d.ts +9 -8
- package/lib/chevre/service/payment/creditCard/voidTransaction.js +15 -7
- package/lib/chevre/service/task/payment/voidPaymentByTask.d.ts +2 -0
- package/lib/chevre/service/task/voidPayment.js +2 -0
- package/package.json +3 -3
|
@@ -224,49 +224,49 @@ export declare class AssetTransactionRepo {
|
|
|
224
224
|
seller?: any;
|
|
225
225
|
} & {
|
|
226
226
|
_id: import("mongoose").Types.ObjectId;
|
|
227
|
-
} &
|
|
228
|
-
|
|
229
|
-
}
|
|
227
|
+
} & {
|
|
228
|
+
__v: number;
|
|
229
|
+
}) | (import("@chevre/factory/lib/assetTransaction/moneyTransfer").IAttributes & {
|
|
230
230
|
id: string;
|
|
231
231
|
} & {
|
|
232
232
|
seller?: any;
|
|
233
233
|
} & {
|
|
234
234
|
_id: import("mongoose").Types.ObjectId;
|
|
235
|
-
} &
|
|
236
|
-
|
|
237
|
-
}
|
|
235
|
+
} & {
|
|
236
|
+
__v: number;
|
|
237
|
+
}) | (import("@chevre/factory/lib/assetTransaction/pay").IAttributes & {
|
|
238
238
|
id: string;
|
|
239
239
|
} & {
|
|
240
240
|
seller?: any;
|
|
241
241
|
} & {
|
|
242
242
|
_id: import("mongoose").Types.ObjectId;
|
|
243
|
-
} &
|
|
244
|
-
|
|
245
|
-
}
|
|
243
|
+
} & {
|
|
244
|
+
__v: number;
|
|
245
|
+
}) | (import("@chevre/factory/lib/assetTransaction/refund").IAttributes & {
|
|
246
246
|
id: string;
|
|
247
247
|
} & {
|
|
248
248
|
seller?: any;
|
|
249
249
|
} & {
|
|
250
250
|
_id: import("mongoose").Types.ObjectId;
|
|
251
|
-
} &
|
|
252
|
-
|
|
253
|
-
}
|
|
251
|
+
} & {
|
|
252
|
+
__v: number;
|
|
253
|
+
}) | (import("@chevre/factory/lib/assetTransaction/registerService").IAttributes & {
|
|
254
254
|
id: string;
|
|
255
255
|
} & {
|
|
256
256
|
seller?: any;
|
|
257
257
|
} & {
|
|
258
258
|
_id: import("mongoose").Types.ObjectId;
|
|
259
|
-
} &
|
|
260
|
-
|
|
261
|
-
}
|
|
259
|
+
} & {
|
|
260
|
+
__v: number;
|
|
261
|
+
}) | (import("@chevre/factory/lib/assetTransaction/reserve").IAttributes & {
|
|
262
262
|
id: string;
|
|
263
263
|
} & {
|
|
264
264
|
seller?: any;
|
|
265
265
|
} & {
|
|
266
266
|
_id: import("mongoose").Types.ObjectId;
|
|
267
|
-
} &
|
|
268
|
-
|
|
269
|
-
}
|
|
267
|
+
} & {
|
|
268
|
+
__v: number;
|
|
269
|
+
})>;
|
|
270
270
|
/**
|
|
271
271
|
* 互換性維持対応専用
|
|
272
272
|
*/
|
|
@@ -286,81 +286,107 @@ export declare class AssetTransactionRepo {
|
|
|
286
286
|
}): Promise<void>;
|
|
287
287
|
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, (import("@chevre/factory/lib/assetTransaction/cancelReservation").ITransaction | import("@chevre/factory/lib/assetTransaction/moneyTransfer").ITransaction | import("@chevre/factory/lib/assetTransaction/pay").ITransaction | import("@chevre/factory/lib/assetTransaction/refund").ITransaction | import("@chevre/factory/lib/assetTransaction/registerService").ITransaction | import("@chevre/factory/lib/assetTransaction/reserve").ITransaction) & {
|
|
288
288
|
seller?: any;
|
|
289
|
-
}> & ((import("@chevre/factory/lib/assetTransaction/cancelReservation").IAttributes & {
|
|
289
|
+
}, {}, {}> & ((import("@chevre/factory/lib/assetTransaction/cancelReservation").IAttributes & {
|
|
290
290
|
id: string;
|
|
291
291
|
} & {
|
|
292
292
|
seller?: any;
|
|
293
293
|
} & {
|
|
294
294
|
_id: import("mongoose").Types.ObjectId;
|
|
295
|
+
} & {
|
|
296
|
+
__v: number;
|
|
295
297
|
}) | (import("@chevre/factory/lib/assetTransaction/moneyTransfer").IAttributes & {
|
|
296
298
|
id: string;
|
|
297
299
|
} & {
|
|
298
300
|
seller?: any;
|
|
299
301
|
} & {
|
|
300
302
|
_id: import("mongoose").Types.ObjectId;
|
|
303
|
+
} & {
|
|
304
|
+
__v: number;
|
|
301
305
|
}) | (import("@chevre/factory/lib/assetTransaction/pay").IAttributes & {
|
|
302
306
|
id: string;
|
|
303
307
|
} & {
|
|
304
308
|
seller?: any;
|
|
305
309
|
} & {
|
|
306
310
|
_id: import("mongoose").Types.ObjectId;
|
|
311
|
+
} & {
|
|
312
|
+
__v: number;
|
|
307
313
|
}) | (import("@chevre/factory/lib/assetTransaction/refund").IAttributes & {
|
|
308
314
|
id: string;
|
|
309
315
|
} & {
|
|
310
316
|
seller?: any;
|
|
311
317
|
} & {
|
|
312
318
|
_id: import("mongoose").Types.ObjectId;
|
|
319
|
+
} & {
|
|
320
|
+
__v: number;
|
|
313
321
|
}) | (import("@chevre/factory/lib/assetTransaction/registerService").IAttributes & {
|
|
314
322
|
id: string;
|
|
315
323
|
} & {
|
|
316
324
|
seller?: any;
|
|
317
325
|
} & {
|
|
318
326
|
_id: import("mongoose").Types.ObjectId;
|
|
327
|
+
} & {
|
|
328
|
+
__v: number;
|
|
319
329
|
}) | (import("@chevre/factory/lib/assetTransaction/reserve").IAttributes & {
|
|
320
330
|
id: string;
|
|
321
331
|
} & {
|
|
322
332
|
seller?: any;
|
|
323
333
|
} & {
|
|
324
334
|
_id: import("mongoose").Types.ObjectId;
|
|
325
|
-
}
|
|
335
|
+
} & {
|
|
336
|
+
__v: number;
|
|
337
|
+
})), import("mongoose").QueryOptions<(import("@chevre/factory/lib/assetTransaction/cancelReservation").ITransaction | import("@chevre/factory/lib/assetTransaction/moneyTransfer").ITransaction | import("@chevre/factory/lib/assetTransaction/pay").ITransaction | import("@chevre/factory/lib/assetTransaction/refund").ITransaction | import("@chevre/factory/lib/assetTransaction/registerService").ITransaction | import("@chevre/factory/lib/assetTransaction/reserve").ITransaction) & {
|
|
326
338
|
seller?: any;
|
|
327
|
-
}
|
|
339
|
+
}>, (import("mongoose").Document<unknown, {}, (import("@chevre/factory/lib/assetTransaction/cancelReservation").ITransaction | import("@chevre/factory/lib/assetTransaction/moneyTransfer").ITransaction | import("@chevre/factory/lib/assetTransaction/pay").ITransaction | import("@chevre/factory/lib/assetTransaction/refund").ITransaction | import("@chevre/factory/lib/assetTransaction/registerService").ITransaction | import("@chevre/factory/lib/assetTransaction/reserve").ITransaction) & {
|
|
340
|
+
seller?: any;
|
|
341
|
+
}, {}, {}> & ((import("@chevre/factory/lib/assetTransaction/cancelReservation").IAttributes & {
|
|
328
342
|
id: string;
|
|
329
343
|
} & {
|
|
330
344
|
seller?: any;
|
|
331
345
|
} & {
|
|
332
346
|
_id: import("mongoose").Types.ObjectId;
|
|
347
|
+
} & {
|
|
348
|
+
__v: number;
|
|
333
349
|
}) | (import("@chevre/factory/lib/assetTransaction/moneyTransfer").IAttributes & {
|
|
334
350
|
id: string;
|
|
335
351
|
} & {
|
|
336
352
|
seller?: any;
|
|
337
353
|
} & {
|
|
338
354
|
_id: import("mongoose").Types.ObjectId;
|
|
355
|
+
} & {
|
|
356
|
+
__v: number;
|
|
339
357
|
}) | (import("@chevre/factory/lib/assetTransaction/pay").IAttributes & {
|
|
340
358
|
id: string;
|
|
341
359
|
} & {
|
|
342
360
|
seller?: any;
|
|
343
361
|
} & {
|
|
344
362
|
_id: import("mongoose").Types.ObjectId;
|
|
363
|
+
} & {
|
|
364
|
+
__v: number;
|
|
345
365
|
}) | (import("@chevre/factory/lib/assetTransaction/refund").IAttributes & {
|
|
346
366
|
id: string;
|
|
347
367
|
} & {
|
|
348
368
|
seller?: any;
|
|
349
369
|
} & {
|
|
350
370
|
_id: import("mongoose").Types.ObjectId;
|
|
371
|
+
} & {
|
|
372
|
+
__v: number;
|
|
351
373
|
}) | (import("@chevre/factory/lib/assetTransaction/registerService").IAttributes & {
|
|
352
374
|
id: string;
|
|
353
375
|
} & {
|
|
354
376
|
seller?: any;
|
|
355
377
|
} & {
|
|
356
378
|
_id: import("mongoose").Types.ObjectId;
|
|
379
|
+
} & {
|
|
380
|
+
__v: number;
|
|
357
381
|
}) | (import("@chevre/factory/lib/assetTransaction/reserve").IAttributes & {
|
|
358
382
|
id: string;
|
|
359
383
|
} & {
|
|
360
384
|
seller?: any;
|
|
361
385
|
} & {
|
|
362
386
|
_id: import("mongoose").Types.ObjectId;
|
|
363
|
-
}
|
|
387
|
+
} & {
|
|
388
|
+
__v: number;
|
|
389
|
+
}))) | null>;
|
|
364
390
|
unsetUnnecessaryFields(params: {
|
|
365
391
|
filter: any;
|
|
366
392
|
$unset: any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AnyExpression, Connection, FilterQuery, Types } from 'mongoose';
|
|
2
|
+
import { IDocType } from './mongoose/schemas/categoryCode';
|
|
2
3
|
import * as factory from '../factory';
|
|
3
4
|
type IUnset = {
|
|
4
5
|
[key in keyof Pick<factory.categoryCode.ICategoryCode, 'additionalProperty' | 'color' | 'image'>]?: 1;
|
|
@@ -66,11 +67,15 @@ export declare class CategoryCodeRepo {
|
|
|
66
67
|
id: string;
|
|
67
68
|
};
|
|
68
69
|
}): Promise<void>;
|
|
69
|
-
getCursor(conditions: FilterQuery<factory.categoryCode.ICategoryCode>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {},
|
|
70
|
+
getCursor(conditions: FilterQuery<factory.categoryCode.ICategoryCode>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
|
|
70
71
|
_id: Types.ObjectId;
|
|
71
|
-
}
|
|
72
|
+
} & {
|
|
73
|
+
__v: number;
|
|
74
|
+
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
|
|
72
75
|
_id: Types.ObjectId;
|
|
73
|
-
}
|
|
76
|
+
} & {
|
|
77
|
+
__v: number;
|
|
78
|
+
}) | null>;
|
|
74
79
|
unsetUnnecessaryFields(params: {
|
|
75
80
|
filter: FilterQuery<factory.categoryCode.ICategoryCode>;
|
|
76
81
|
$unset: any;
|
|
@@ -30,9 +30,13 @@ export declare class CommentRepo {
|
|
|
30
30
|
deleteById(params: {
|
|
31
31
|
id: string;
|
|
32
32
|
}): Promise<void>;
|
|
33
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/creativeWork/comment").IComment> & import("@chevre/factory/lib/creativeWork/comment").IComment & {
|
|
33
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/creativeWork/comment").IComment, {}, {}> & import("@chevre/factory/lib/creativeWork/comment").IComment & {
|
|
34
34
|
_id: import("mongoose").Types.ObjectId;
|
|
35
|
-
}
|
|
35
|
+
} & {
|
|
36
|
+
__v: number;
|
|
37
|
+
}, import("mongoose").QueryOptions<import("@chevre/factory/lib/creativeWork/comment").IComment>, (import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/creativeWork/comment").IComment, {}, {}> & import("@chevre/factory/lib/creativeWork/comment").IComment & {
|
|
36
38
|
_id: import("mongoose").Types.ObjectId;
|
|
37
|
-
}
|
|
39
|
+
} & {
|
|
40
|
+
__v: number;
|
|
41
|
+
}) | null>;
|
|
38
42
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { BulkWriteResult } from 'mongodb';
|
|
2
2
|
import { Connection, FilterQuery, Types } from 'mongoose';
|
|
3
3
|
import * as factory from '../factory';
|
|
4
|
+
import { IDocType } from './mongoose/schemas/creativeWork';
|
|
4
5
|
type IKeyOfProjection = keyof factory.creativeWork.movie.ICreativeWork;
|
|
5
6
|
/**
|
|
6
7
|
* コンテンツリポジトリ
|
|
@@ -48,19 +49,19 @@ export declare class CreativeWorkRepo {
|
|
|
48
49
|
id: string;
|
|
49
50
|
};
|
|
50
51
|
}): Promise<void>;
|
|
51
|
-
getCursor(conditions: FilterQuery<factory.creativeWork.movie.ICreativeWork>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/creativeWork/movie").ICreativeWork & {
|
|
52
|
-
description?: string;
|
|
53
|
-
}> & import("@chevre/factory/lib/creativeWork/movie").ICreativeWork & {
|
|
52
|
+
getCursor(conditions: FilterQuery<factory.creativeWork.movie.ICreativeWork>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/creativeWork/movie").ICreativeWork, "id"> & {
|
|
54
53
|
description?: string;
|
|
55
54
|
} & {
|
|
56
55
|
_id: Types.ObjectId;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
}> & import("@chevre/factory/lib/creativeWork/movie").ICreativeWork & {
|
|
56
|
+
} & {
|
|
57
|
+
__v: number;
|
|
58
|
+
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/creativeWork/movie").ICreativeWork, "id"> & {
|
|
60
59
|
description?: string;
|
|
61
60
|
} & {
|
|
62
61
|
_id: Types.ObjectId;
|
|
63
|
-
}
|
|
62
|
+
} & {
|
|
63
|
+
__v: number;
|
|
64
|
+
}) | null>;
|
|
64
65
|
unsetUnnecessaryFields(params: {
|
|
65
66
|
filter: FilterQuery<factory.creativeWork.movie.ICreativeWork>;
|
|
66
67
|
$unset: any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Connection, FilterQuery } from 'mongoose';
|
|
2
|
+
import { IDocType } from './mongoose/schemas/customer';
|
|
2
3
|
import * as factory from '../factory';
|
|
3
4
|
type IUnset = {
|
|
4
5
|
[key in keyof Pick<factory.customer.ICustomer, 'telephone' | 'url'>]?: 1;
|
|
@@ -27,11 +28,15 @@ export declare class CustomerRepo {
|
|
|
27
28
|
deleteById(params: {
|
|
28
29
|
id: string;
|
|
29
30
|
}): Promise<void>;
|
|
30
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {},
|
|
31
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
|
|
31
32
|
_id: import("mongoose").Types.ObjectId;
|
|
32
|
-
}
|
|
33
|
+
} & {
|
|
34
|
+
__v: number;
|
|
35
|
+
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
|
|
33
36
|
_id: import("mongoose").Types.ObjectId;
|
|
34
|
-
}
|
|
37
|
+
} & {
|
|
38
|
+
__v: number;
|
|
39
|
+
}) | null>;
|
|
35
40
|
unsetUnnecessaryFields(params: {
|
|
36
41
|
filter: any;
|
|
37
42
|
$unset: any;
|
|
@@ -124,17 +124,6 @@ export declare class EventRepo {
|
|
|
124
124
|
* イベントを検索する(inclusion projection)
|
|
125
125
|
*/
|
|
126
126
|
projectEventFields(params: ISearchConditions, inclusion: IKeyOfProjection[]): Promise<Omit<factory.event.screeningEvent.IEvent, 'aggregateOffer'>[]>;
|
|
127
|
-
findByAdditionalProperty(params: {
|
|
128
|
-
project: {
|
|
129
|
-
id: string;
|
|
130
|
-
};
|
|
131
|
-
additionalProperty: factory.propertyValue.IPropertyValue<string>;
|
|
132
|
-
}): Promise<(import("mongoose").FlattenMaps<import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
|
|
133
|
-
_id: string;
|
|
134
|
-
aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
|
|
135
|
-
}> & Required<{
|
|
136
|
-
_id: string;
|
|
137
|
-
}>)[]>;
|
|
138
127
|
/**
|
|
139
128
|
* apiで公開属性を検索する(2024-10-13~)
|
|
140
129
|
*/
|
|
@@ -302,28 +291,27 @@ export declare class EventRepo {
|
|
|
302
291
|
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
|
|
303
292
|
_id: string;
|
|
304
293
|
aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
|
|
305
|
-
}> & import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
|
|
294
|
+
}, {}, {}> & import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
|
|
306
295
|
_id: string;
|
|
307
296
|
aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
|
|
308
297
|
} & Required<{
|
|
309
298
|
_id: string;
|
|
310
|
-
}
|
|
299
|
+
}> & {
|
|
300
|
+
__v: number;
|
|
301
|
+
}, import("mongoose").QueryOptions<import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
|
|
311
302
|
_id: string;
|
|
312
303
|
aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
|
|
313
|
-
}
|
|
304
|
+
}>, (import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
|
|
305
|
+
_id: string;
|
|
306
|
+
aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
|
|
307
|
+
}, {}, {}> & import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
|
|
314
308
|
_id: string;
|
|
315
309
|
aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
|
|
316
310
|
} & Required<{
|
|
317
311
|
_id: string;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
offers: {
|
|
322
|
-
seller: {
|
|
323
|
-
makesOffer: factory.event.screeningEvent.ISellerMakesOffer;
|
|
324
|
-
};
|
|
325
|
-
};
|
|
326
|
-
}): Promise<void>;
|
|
312
|
+
}> & {
|
|
313
|
+
__v: number;
|
|
314
|
+
}) | null>;
|
|
327
315
|
unsetUnnecessaryFields(params: {
|
|
328
316
|
filter: FilterQuery<factory.event.screeningEvent.IEvent>;
|
|
329
317
|
$unset: IUnset;
|
package/lib/chevre/repo/event.js
CHANGED
|
@@ -566,20 +566,6 @@ class EventRepo {
|
|
|
566
566
|
.lean() // lean(2024-08-01~)
|
|
567
567
|
.exec();
|
|
568
568
|
}
|
|
569
|
-
async findByAdditionalProperty(params) {
|
|
570
|
-
const query = this.eventModel.find({
|
|
571
|
-
'project.id': { $eq: params.project.id },
|
|
572
|
-
additionalProperty: { $eq: params.additionalProperty }
|
|
573
|
-
}, { _id: 1 });
|
|
574
|
-
// if (typeof params.limit === 'number' && params.limit > 0) {
|
|
575
|
-
// const page: number = (typeof params.page === 'number' && params.page > 0) ? params.page : 1;
|
|
576
|
-
// query.limit(params.limit)
|
|
577
|
-
// .skip(params.limit * (page - 1));
|
|
578
|
-
// }
|
|
579
|
-
return query.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
580
|
-
.lean()
|
|
581
|
-
.exec();
|
|
582
|
-
}
|
|
583
569
|
/**
|
|
584
570
|
* apiで公開属性を検索する(2024-10-13~)
|
|
585
571
|
*/
|
|
@@ -720,7 +706,9 @@ class EventRepo {
|
|
|
720
706
|
return this.eventModel.updateOne({
|
|
721
707
|
_id: { $eq: params.id },
|
|
722
708
|
'project.id': { $eq: params.project.id }
|
|
723
|
-
}, { $set: { eventStatus: factory.eventStatusType.EventCancelled } }, {
|
|
709
|
+
}, { $set: { eventStatus: factory.eventStatusType.EventCancelled } }, {
|
|
710
|
+
// includeResultMetadata: true
|
|
711
|
+
})
|
|
724
712
|
.exec();
|
|
725
713
|
}
|
|
726
714
|
/**
|
|
@@ -829,14 +817,25 @@ class EventRepo {
|
|
|
829
817
|
.sort({ startDate: factory.sortType.Descending })
|
|
830
818
|
.cursor();
|
|
831
819
|
}
|
|
832
|
-
async addAvailableAtOrFrom(params
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
}
|
|
820
|
+
// public async addAvailableAtOrFrom(params: {
|
|
821
|
+
// id: string;
|
|
822
|
+
// offers: {
|
|
823
|
+
// seller: {
|
|
824
|
+
// makesOffer: factory.event.screeningEvent.ISellerMakesOffer;
|
|
825
|
+
// };
|
|
826
|
+
// };
|
|
827
|
+
// }): Promise<void> {
|
|
828
|
+
// await this.eventModel.updateOne(
|
|
829
|
+
// { _id: { $eq: params.id } },
|
|
830
|
+
// {
|
|
831
|
+
// $push: {
|
|
832
|
+
// 'offers.seller.makesOffer': params.offers.seller.makesOffer
|
|
833
|
+
// }
|
|
834
|
+
// },
|
|
835
|
+
// { includeResultMetadata: true }
|
|
836
|
+
// )
|
|
837
|
+
// .exec();
|
|
838
|
+
// }
|
|
840
839
|
async unsetUnnecessaryFields(params) {
|
|
841
840
|
return this.eventModel.updateMany(params.filter, { $unset: params.$unset }, { timestamps: false })
|
|
842
841
|
.exec();
|
|
@@ -88,17 +88,23 @@ export declare class EventSeriesRepo {
|
|
|
88
88
|
}>;
|
|
89
89
|
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.eventSeries.IAttributes & {
|
|
90
90
|
_id: string;
|
|
91
|
-
}> & factory.eventSeries.IAttributes & {
|
|
91
|
+
}, {}, {}> & factory.eventSeries.IAttributes & {
|
|
92
92
|
_id: string;
|
|
93
93
|
} & Required<{
|
|
94
94
|
_id: string;
|
|
95
|
-
}
|
|
95
|
+
}> & {
|
|
96
|
+
__v: number;
|
|
97
|
+
}, import("mongoose").QueryOptions<factory.eventSeries.IAttributes & {
|
|
96
98
|
_id: string;
|
|
97
|
-
}
|
|
99
|
+
}>, (import("mongoose").Document<unknown, {}, factory.eventSeries.IAttributes & {
|
|
100
|
+
_id: string;
|
|
101
|
+
}, {}, {}> & factory.eventSeries.IAttributes & {
|
|
98
102
|
_id: string;
|
|
99
103
|
} & Required<{
|
|
100
104
|
_id: string;
|
|
101
|
-
}
|
|
105
|
+
}> & {
|
|
106
|
+
__v: number;
|
|
107
|
+
}) | null>;
|
|
102
108
|
unsetUnnecessaryFields(params: {
|
|
103
109
|
filter: FilterQuery<factory.eventSeries.IEvent>;
|
|
104
110
|
$unset: IUnset;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Connection, FilterQuery, QueryOptions } from 'mongoose';
|
|
2
2
|
import * as factory from '../factory';
|
|
3
|
+
import { IDocType } from './mongoose/schemas/identity';
|
|
3
4
|
type ISavingSoftwareApplicationIdentity = Pick<factory.creativeWork.certification.softwareApplication.ICertification, 'about' | 'project' | 'typeOf'>;
|
|
4
5
|
type ISavingWebApplicationIdentity = Pick<factory.creativeWork.certification.webApplication.ICertification, 'about' | 'project' | 'typeOf'>;
|
|
5
6
|
export type ISavingIdentity = (ISavingSoftwareApplicationIdentity | ISavingWebApplicationIdentity) & {
|
|
@@ -37,15 +38,23 @@ export declare class IdentityRepo {
|
|
|
37
38
|
id: string;
|
|
38
39
|
};
|
|
39
40
|
}): Promise<void>;
|
|
40
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {},
|
|
41
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & ((Omit<import("@chevre/factory/lib/creativeWork/certification/softwareApplication").ICertification, "id"> & {
|
|
41
42
|
_id: import("mongoose").Types.ObjectId;
|
|
43
|
+
} & {
|
|
44
|
+
__v: number;
|
|
42
45
|
}) | (Omit<import("@chevre/factory/lib/creativeWork/certification/webApplication").ICertification, "id"> & {
|
|
43
46
|
_id: import("mongoose").Types.ObjectId;
|
|
44
|
-
}
|
|
47
|
+
} & {
|
|
48
|
+
__v: number;
|
|
49
|
+
})), QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & ((Omit<import("@chevre/factory/lib/creativeWork/certification/softwareApplication").ICertification, "id"> & {
|
|
45
50
|
_id: import("mongoose").Types.ObjectId;
|
|
51
|
+
} & {
|
|
52
|
+
__v: number;
|
|
46
53
|
}) | (Omit<import("@chevre/factory/lib/creativeWork/certification/webApplication").ICertification, "id"> & {
|
|
47
54
|
_id: import("mongoose").Types.ObjectId;
|
|
48
|
-
}
|
|
55
|
+
} & {
|
|
56
|
+
__v: number;
|
|
57
|
+
}))) | null>;
|
|
49
58
|
updateIssuedBy2array(params: Pick<ISavingIdentity, 'issuedBy'> & {
|
|
50
59
|
id: string;
|
|
51
60
|
}): Promise<void>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Connection, FilterQuery, QueryOptions } from 'mongoose';
|
|
2
2
|
import * as factory from '../factory';
|
|
3
|
+
import { IDocType } from './mongoose/schemas/identityProvider';
|
|
3
4
|
export type ISavingIdentityProvider = Pick<factory.identityProvider.IIdentityProvider, 'identifier' | 'project' | 'typeOf'> & {
|
|
4
5
|
id?: never;
|
|
5
6
|
};
|
|
@@ -32,27 +33,15 @@ export declare class IdentityProviderRepo {
|
|
|
32
33
|
id: string;
|
|
33
34
|
};
|
|
34
35
|
}): Promise<void>;
|
|
35
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, {
|
|
36
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
37
|
-
identifier: string;
|
|
38
|
-
typeOf: factory.organizationType.Organization;
|
|
39
|
-
}> & {
|
|
40
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
41
|
-
identifier: string;
|
|
42
|
-
typeOf: factory.organizationType.Organization;
|
|
43
|
-
} & {
|
|
36
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
|
|
44
37
|
_id: import("mongoose").Types.ObjectId;
|
|
45
|
-
}, QueryOptions<import("mongoose").Document<unknown, {}, {
|
|
46
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
47
|
-
identifier: string;
|
|
48
|
-
typeOf: factory.organizationType.Organization;
|
|
49
|
-
}> & {
|
|
50
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
51
|
-
identifier: string;
|
|
52
|
-
typeOf: factory.organizationType.Organization;
|
|
53
38
|
} & {
|
|
39
|
+
__v: number;
|
|
40
|
+
}, QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
|
|
54
41
|
_id: import("mongoose").Types.ObjectId;
|
|
55
|
-
}
|
|
42
|
+
} & {
|
|
43
|
+
__v: number;
|
|
44
|
+
}) | null>;
|
|
56
45
|
unsetUnnecessaryFields(params: {
|
|
57
46
|
filter: any;
|
|
58
47
|
$unset: any;
|
|
@@ -35,22 +35,22 @@ export declare class IssuerRepo {
|
|
|
35
35
|
id: string;
|
|
36
36
|
};
|
|
37
37
|
}): Promise<void>;
|
|
38
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType> & factory.issuer.IIssuer & {
|
|
39
|
-
hasMemberProgram?: (
|
|
40
|
-
/**
|
|
41
|
-
* 発行者リポジトリ
|
|
42
|
-
*/
|
|
43
|
-
factory.issuer.IMemberProgram & {
|
|
38
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<factory.issuer.IIssuer, "id"> & {
|
|
39
|
+
hasMemberProgram?: (factory.issuer.IMemberProgram & {
|
|
44
40
|
hasTiers?: Pick<factory.issuer.IMemberProgramTier, "identifier" | "typeOf">[];
|
|
45
41
|
})[];
|
|
46
42
|
} & {
|
|
47
43
|
_id: import("mongoose").Types.ObjectId;
|
|
48
|
-
}
|
|
44
|
+
} & {
|
|
45
|
+
__v: number;
|
|
46
|
+
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<factory.issuer.IIssuer, "id"> & {
|
|
49
47
|
hasMemberProgram?: (factory.issuer.IMemberProgram & {
|
|
50
48
|
hasTiers?: Pick<factory.issuer.IMemberProgramTier, "identifier" | "typeOf">[];
|
|
51
49
|
})[];
|
|
52
50
|
} & {
|
|
53
51
|
_id: import("mongoose").Types.ObjectId;
|
|
54
|
-
}
|
|
52
|
+
} & {
|
|
53
|
+
__v: number;
|
|
54
|
+
}) | null>;
|
|
55
55
|
}
|
|
56
56
|
export {};
|
|
@@ -174,11 +174,15 @@ export declare class MemberRepo {
|
|
|
174
174
|
id: string;
|
|
175
175
|
};
|
|
176
176
|
}): Promise<string[]>;
|
|
177
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.iam.IMember> & factory.iam.IMember & {
|
|
177
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.iam.IMember, {}, {}> & factory.iam.IMember & {
|
|
178
178
|
_id: import("mongoose").Types.ObjectId;
|
|
179
|
-
}
|
|
179
|
+
} & {
|
|
180
|
+
__v: number;
|
|
181
|
+
}, import("mongoose").QueryOptions<factory.iam.IMember>, (import("mongoose").Document<unknown, {}, factory.iam.IMember, {}, {}> & factory.iam.IMember & {
|
|
180
182
|
_id: import("mongoose").Types.ObjectId;
|
|
181
|
-
}
|
|
183
|
+
} & {
|
|
184
|
+
__v: number;
|
|
185
|
+
}) | null>;
|
|
182
186
|
unsetUnnecessaryFields(params: {
|
|
183
187
|
filter: any;
|
|
184
188
|
$unset: any;
|
|
@@ -20,7 +20,7 @@ export declare class MerchantReturnPolicyRepo {
|
|
|
20
20
|
id: string;
|
|
21
21
|
};
|
|
22
22
|
}): Promise<void>;
|
|
23
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<Document<unknown, {}, factory.unitPriceOffer.IOfferMerchantReturnPolicy> & Pick<factory.merchantReturnPolicy.IMerchantReturnPolicy, "typeOf" | "customerRemorseReturnFees" | "customerRemorseReturnFeesMovieTicket"> & {
|
|
23
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<Document<unknown, {}, factory.unitPriceOffer.IOfferMerchantReturnPolicy, {}, {}> & Pick<factory.merchantReturnPolicy.IMerchantReturnPolicy, "typeOf" | "customerRemorseReturnFees" | "customerRemorseReturnFeesMovieTicket"> & {
|
|
24
24
|
customerRemorseReturnFees: factory.merchantReturnPolicy.ICustomerRemorseReturnFees;
|
|
25
25
|
customerRemorseReturnFeesMovieTicket: factory.merchantReturnPolicy.ICustomerRemorseReturnFeesMovieTicket;
|
|
26
26
|
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
@@ -30,7 +30,9 @@ export declare class MerchantReturnPolicyRepo {
|
|
|
30
30
|
name?: import("@chevre/factory/lib/multilingualString").IMultilingualString;
|
|
31
31
|
} & {
|
|
32
32
|
_id: import("mongoose").Types.ObjectId;
|
|
33
|
-
}
|
|
33
|
+
} & {
|
|
34
|
+
__v: number;
|
|
35
|
+
}, import("mongoose").QueryOptions<factory.unitPriceOffer.IOfferMerchantReturnPolicy>, (Document<unknown, {}, factory.unitPriceOffer.IOfferMerchantReturnPolicy, {}, {}> & Pick<factory.merchantReturnPolicy.IMerchantReturnPolicy, "typeOf" | "customerRemorseReturnFees" | "customerRemorseReturnFeesMovieTicket"> & {
|
|
34
36
|
customerRemorseReturnFees: factory.merchantReturnPolicy.ICustomerRemorseReturnFees;
|
|
35
37
|
customerRemorseReturnFeesMovieTicket: factory.merchantReturnPolicy.ICustomerRemorseReturnFeesMovieTicket;
|
|
36
38
|
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
@@ -40,5 +42,7 @@ export declare class MerchantReturnPolicyRepo {
|
|
|
40
42
|
name?: import("@chevre/factory/lib/multilingualString").IMultilingualString;
|
|
41
43
|
} & {
|
|
42
44
|
_id: import("mongoose").Types.ObjectId;
|
|
43
|
-
}
|
|
45
|
+
} & {
|
|
46
|
+
__v: number;
|
|
47
|
+
}) | null>;
|
|
44
48
|
}
|
|
@@ -125,7 +125,7 @@ class MessageRepo {
|
|
|
125
125
|
// throw new factory.errors.ArgumentNull('text');
|
|
126
126
|
// }
|
|
127
127
|
// // リソースのユニークネスを保証するfilter
|
|
128
|
-
// const filter:
|
|
128
|
+
// const filter: RootFilterQuery<IEmailMessage> = {
|
|
129
129
|
// // typeOf: { $eq: factory.creativeWorkType.EmailMessage },
|
|
130
130
|
// 'project.id': { $eq: project.id },
|
|
131
131
|
// identifier: { $eq: identifier }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
|
-
type IDocType = factory.acceptedPaymentMethodOffer.IAcceptedPaymentMethodOffer
|
|
3
|
+
type IDocType = Omit<factory.acceptedPaymentMethodOffer.IAcceptedPaymentMethodOffer, 'id'>;
|
|
4
4
|
type IModel = Model<IDocType>;
|
|
5
5
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
6
|
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
@@ -9,4 +9,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
|
|
|
9
9
|
declare const modelName = "Action";
|
|
10
10
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
11
11
|
declare function createSchema(): ISchema;
|
|
12
|
-
export { createSchema, IModel, indexes, modelName };
|
|
12
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
|
-
type IDocType = factory.additionalProperty.IAdditionalProperty
|
|
3
|
+
type IDocType = Omit<factory.additionalProperty.IAdditionalProperty, 'id'>;
|
|
4
4
|
type IModel = Model<IDocType>;
|
|
5
5
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
6
|
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
7
7
|
declare const modelName = "AdditionalProperty";
|
|
8
8
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
9
|
declare function createSchema(): ISchema;
|
|
10
|
-
export { createSchema, IModel, indexes, modelName };
|
|
10
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|