@chevre/domain 21.2.0-alpha.37 → 21.2.0-alpha.39
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/example/src/chevre/saveTasks.ts +13 -10
- package/lib/chevre/eventEmitter/assetTransaction.js +1 -4
- package/lib/chevre/eventEmitter/task.js +1 -4
- package/lib/chevre/eventEmitter/transaction.js +1 -4
- package/lib/chevre/repo/assetTransaction.d.ts +1 -1
- package/lib/chevre/repo/comment.d.ts +4 -1
- package/lib/chevre/repo/comment.js +20 -5
- package/lib/chevre/repo/mongoose/schemas/action.d.ts +3 -3
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +3 -3
- package/lib/chevre/repo/mongoose/schemas/comments.d.ts +3 -3
- package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +3 -3
- package/lib/chevre/repo/mongoose/schemas/event.d.ts +3 -3
- package/lib/chevre/repo/mongoose/schemas/offer.d.ts +6 -6
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +3 -3
- package/lib/chevre/repo/mongoose/schemas/project.d.ts +3 -3
- package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +3 -3
- package/lib/chevre/repo/task.d.ts +1 -1
- package/lib/chevre/repo/transaction.d.ts +1 -1
- package/lib/chevre/settings.d.ts +0 -1
- package/lib/chevre/settings.js +1 -2
- package/package.json +1 -1
|
@@ -10,16 +10,19 @@ async function main() {
|
|
|
10
10
|
|
|
11
11
|
const taskRepo = new chevre.repository.Task(mongoose.connection);
|
|
12
12
|
|
|
13
|
-
const result = await taskRepo.saveMany(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
const result = await taskRepo.saveMany(
|
|
14
|
+
[{
|
|
15
|
+
name: chevre.factory.taskName.TriggerWebhook,
|
|
16
|
+
runsAt: new Date(),
|
|
17
|
+
data: {},
|
|
18
|
+
executionResults: [],
|
|
19
|
+
project: { id: project.id, typeOf: chevre.factory.organizationType.Project },
|
|
20
|
+
numberOfTried: 0,
|
|
21
|
+
remainingNumberOfTries: 1,
|
|
22
|
+
status: chevre.factory.taskStatus.Ready
|
|
23
|
+
}],
|
|
24
|
+
{ emitImmediately: false }
|
|
25
|
+
);
|
|
23
26
|
|
|
24
27
|
console.log(result, 'tasks saved');
|
|
25
28
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.assetTransactionEventEmitter = void 0;
|
|
4
4
|
const events_1 = require("events");
|
|
5
|
-
const settings_1 = require("../settings");
|
|
6
5
|
var EventName;
|
|
7
6
|
(function (EventName) {
|
|
8
7
|
EventName["OnAssetTransactionStatusChanged"] = "OnAssetTransactionStatusChanged";
|
|
@@ -15,9 +14,7 @@ class AssetTransactionEventEmitter extends events_1.EventEmitter {
|
|
|
15
14
|
this.on(EventName.OnAssetTransactionStatusChanged, listner);
|
|
16
15
|
}
|
|
17
16
|
emitAssetTransactionStatusChanged(args) {
|
|
18
|
-
|
|
19
|
-
this.emit(EventName.OnAssetTransactionStatusChanged, args);
|
|
20
|
-
}
|
|
17
|
+
this.emit(EventName.OnAssetTransactionStatusChanged, args);
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
20
|
const assetTransactionEventEmitter = new AssetTransactionEventEmitter();
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.taskEventEmitter = void 0;
|
|
4
4
|
const events_1 = require("events");
|
|
5
|
-
const settings_1 = require("../settings");
|
|
6
5
|
var EventName;
|
|
7
6
|
(function (EventName) {
|
|
8
7
|
EventName["OnTaskStatusChanged"] = "OnTaskStatusChanged";
|
|
@@ -15,9 +14,7 @@ class TaskEventEmitter extends events_1.EventEmitter {
|
|
|
15
14
|
this.on(EventName.OnTaskStatusChanged, listner);
|
|
16
15
|
}
|
|
17
16
|
emitTaskStatusChanged(args) {
|
|
18
|
-
|
|
19
|
-
this.emit(EventName.OnTaskStatusChanged, args);
|
|
20
|
-
}
|
|
17
|
+
this.emit(EventName.OnTaskStatusChanged, args);
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
20
|
const taskEventEmitter = new TaskEventEmitter();
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.transactionEventEmitter = void 0;
|
|
4
4
|
const events_1 = require("events");
|
|
5
|
-
const settings_1 = require("../settings");
|
|
6
5
|
var EventName;
|
|
7
6
|
(function (EventName) {
|
|
8
7
|
EventName["OnTransactionStatusChanged"] = "OnTransactionStatusChanged";
|
|
@@ -15,9 +14,7 @@ class TransactionEventEmitter extends events_1.EventEmitter {
|
|
|
15
14
|
this.on(EventName.OnTransactionStatusChanged, listner);
|
|
16
15
|
}
|
|
17
16
|
emitTransactionStatusChanged(args) {
|
|
18
|
-
|
|
19
|
-
this.emit(EventName.OnTransactionStatusChanged, args);
|
|
20
|
-
}
|
|
17
|
+
this.emit(EventName.OnTransactionStatusChanged, args);
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
20
|
const transactionEventEmitter = new TransactionEventEmitter();
|
|
@@ -117,7 +117,7 @@ export declare class MongoRepository {
|
|
|
117
117
|
exportTasks(params: {
|
|
118
118
|
now: Date;
|
|
119
119
|
delayInSeconds: number;
|
|
120
|
-
}): Promise<Pick<import("@chevre/factory/lib/assetTransaction/cancelReservation").ITransaction | import("@chevre/factory/lib/assetTransaction/moneyTransfer").ITransaction | import("@chevre/factory/lib/assetTransaction/reserve").ITransaction | import("@chevre/factory/lib/assetTransaction/pay").ITransaction | import("@chevre/factory/lib/assetTransaction/refund").ITransaction | import("@chevre/factory/lib/assetTransaction/registerService").ITransaction, "
|
|
120
|
+
}): Promise<Pick<import("@chevre/factory/lib/assetTransaction/cancelReservation").ITransaction | import("@chevre/factory/lib/assetTransaction/moneyTransfer").ITransaction | import("@chevre/factory/lib/assetTransaction/reserve").ITransaction | import("@chevre/factory/lib/assetTransaction/pay").ITransaction | import("@chevre/factory/lib/assetTransaction/refund").ITransaction | import("@chevre/factory/lib/assetTransaction/registerService").ITransaction, "id" | "typeOf" | "status">[]>;
|
|
121
121
|
/**
|
|
122
122
|
* set task status exported by transaction id
|
|
123
123
|
* IDでタスクをエクスポート済に変更する
|
|
@@ -34,7 +34,10 @@ export declare class MongoRepository {
|
|
|
34
34
|
/**
|
|
35
35
|
* 検索
|
|
36
36
|
*/
|
|
37
|
-
search(params: factory.creativeWork.comment.ISearchConditions
|
|
37
|
+
search(params: factory.creativeWork.comment.ISearchConditions & {
|
|
38
|
+
inclusion: string[];
|
|
39
|
+
exclusion: string[];
|
|
40
|
+
}): Promise<factory.creativeWork.comment.IComment[]>;
|
|
38
41
|
findById(params: {
|
|
39
42
|
id: string;
|
|
40
43
|
}): Promise<factory.creativeWork.comment.IComment>;
|
|
@@ -42,12 +42,27 @@ class MongoRepository {
|
|
|
42
42
|
search(params) {
|
|
43
43
|
var _a;
|
|
44
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
let projection = {};
|
|
46
|
+
if (Array.isArray(params.inclusion) && params.inclusion.length > 0) {
|
|
47
|
+
params.inclusion.forEach((field) => {
|
|
48
|
+
projection[field] = 1;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
projection = {
|
|
53
|
+
__v: 0,
|
|
54
|
+
createdAt: 0,
|
|
55
|
+
updatedAt: 0
|
|
56
|
+
};
|
|
57
|
+
if (Array.isArray(params.exclusion) && params.exclusion.length > 0) {
|
|
58
|
+
params.exclusion.forEach((field) => {
|
|
59
|
+
projection[field] = 0;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
45
63
|
const conditions = MongoRepository.CREATE_MONGO_CONDITIONS(params);
|
|
46
|
-
const query = this.commentModel.find((conditions.length > 0) ? { $and: conditions } : {}
|
|
47
|
-
|
|
48
|
-
createdAt: 0,
|
|
49
|
-
updatedAt: 0
|
|
50
|
-
});
|
|
64
|
+
const query = this.commentModel.find((conditions.length > 0) ? { $and: conditions } : {})
|
|
65
|
+
.select(projection);
|
|
51
66
|
if (typeof params.limit === 'number' && params.limit > 0) {
|
|
52
67
|
const page = (typeof params.page === 'number' && params.page > 0) ? params.page : 1;
|
|
53
68
|
query.limit(params.limit)
|
|
@@ -53,8 +53,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
53
53
|
};
|
|
54
54
|
}, {
|
|
55
55
|
object?: any;
|
|
56
|
-
typeOf?: string | undefined;
|
|
57
56
|
error?: any;
|
|
57
|
+
typeOf?: string | undefined;
|
|
58
58
|
result?: any;
|
|
59
59
|
project?: any;
|
|
60
60
|
description?: string | undefined;
|
|
@@ -72,8 +72,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
72
72
|
location?: any;
|
|
73
73
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
74
74
|
object?: any;
|
|
75
|
-
typeOf?: string | undefined;
|
|
76
75
|
error?: any;
|
|
76
|
+
typeOf?: string | undefined;
|
|
77
77
|
result?: any;
|
|
78
78
|
project?: any;
|
|
79
79
|
description?: string | undefined;
|
|
@@ -91,8 +91,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
91
91
|
location?: any;
|
|
92
92
|
}>> & Omit<import("mongoose").FlatRecord<{
|
|
93
93
|
object?: any;
|
|
94
|
-
typeOf?: string | undefined;
|
|
95
94
|
error?: any;
|
|
95
|
+
typeOf?: string | undefined;
|
|
96
96
|
result?: any;
|
|
97
97
|
project?: any;
|
|
98
98
|
description?: string | undefined;
|
|
@@ -53,8 +53,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
53
53
|
};
|
|
54
54
|
}, {
|
|
55
55
|
object?: any;
|
|
56
|
-
typeOf?: string | undefined;
|
|
57
56
|
error?: any;
|
|
57
|
+
typeOf?: string | undefined;
|
|
58
58
|
status?: string | undefined;
|
|
59
59
|
result?: any;
|
|
60
60
|
expires?: Date | undefined;
|
|
@@ -72,8 +72,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
72
72
|
tasksExportAction?: any;
|
|
73
73
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
74
74
|
object?: any;
|
|
75
|
-
typeOf?: string | undefined;
|
|
76
75
|
error?: any;
|
|
76
|
+
typeOf?: string | undefined;
|
|
77
77
|
status?: string | undefined;
|
|
78
78
|
result?: any;
|
|
79
79
|
expires?: Date | undefined;
|
|
@@ -91,8 +91,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
91
91
|
tasksExportAction?: any;
|
|
92
92
|
}>> & Omit<import("mongoose").FlatRecord<{
|
|
93
93
|
object?: any;
|
|
94
|
-
typeOf?: string | undefined;
|
|
95
94
|
error?: any;
|
|
95
|
+
typeOf?: string | undefined;
|
|
96
96
|
status?: string | undefined;
|
|
97
97
|
result?: any;
|
|
98
98
|
expires?: Date | undefined;
|
|
@@ -52,8 +52,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
52
52
|
versionKey: false;
|
|
53
53
|
};
|
|
54
54
|
}, {
|
|
55
|
-
typeOf: string;
|
|
56
55
|
text: string;
|
|
56
|
+
typeOf: string;
|
|
57
57
|
additionalProperty: any[];
|
|
58
58
|
commentCount: number;
|
|
59
59
|
mentions: any[];
|
|
@@ -63,8 +63,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
63
63
|
dateCreated?: Date | undefined;
|
|
64
64
|
dateModified?: Date | undefined;
|
|
65
65
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
66
|
-
typeOf: string;
|
|
67
66
|
text: string;
|
|
67
|
+
typeOf: string;
|
|
68
68
|
additionalProperty: any[];
|
|
69
69
|
commentCount: number;
|
|
70
70
|
mentions: any[];
|
|
@@ -74,8 +74,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
74
74
|
dateCreated?: Date | undefined;
|
|
75
75
|
dateModified?: Date | undefined;
|
|
76
76
|
}>> & Omit<import("mongoose").FlatRecord<{
|
|
77
|
-
typeOf: string;
|
|
78
77
|
text: string;
|
|
78
|
+
typeOf: string;
|
|
79
79
|
additionalProperty: any[];
|
|
80
80
|
commentCount: number;
|
|
81
81
|
mentions: any[];
|
|
@@ -53,24 +53,24 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
53
53
|
};
|
|
54
54
|
}, {
|
|
55
55
|
typeOf: string;
|
|
56
|
-
name?: any;
|
|
57
56
|
text?: string | undefined;
|
|
57
|
+
name?: any;
|
|
58
58
|
project?: any;
|
|
59
59
|
identifier?: string | undefined;
|
|
60
60
|
about?: any;
|
|
61
61
|
sender?: any;
|
|
62
62
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
63
63
|
typeOf: string;
|
|
64
|
-
name?: any;
|
|
65
64
|
text?: string | undefined;
|
|
65
|
+
name?: any;
|
|
66
66
|
project?: any;
|
|
67
67
|
identifier?: string | undefined;
|
|
68
68
|
about?: any;
|
|
69
69
|
sender?: any;
|
|
70
70
|
}>> & Omit<import("mongoose").FlatRecord<{
|
|
71
71
|
typeOf: string;
|
|
72
|
-
name?: any;
|
|
73
72
|
text?: string | undefined;
|
|
73
|
+
name?: any;
|
|
74
74
|
project?: any;
|
|
75
75
|
identifier?: string | undefined;
|
|
76
76
|
about?: any;
|
|
@@ -55,8 +55,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
55
55
|
typeOf: string;
|
|
56
56
|
checkInCount: number;
|
|
57
57
|
attendeeCount: number;
|
|
58
|
-
name?: any;
|
|
59
58
|
_id?: string | undefined;
|
|
59
|
+
name?: any;
|
|
60
60
|
project?: any;
|
|
61
61
|
alternateName?: any;
|
|
62
62
|
description?: any;
|
|
@@ -88,8 +88,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
88
88
|
typeOf: string;
|
|
89
89
|
checkInCount: number;
|
|
90
90
|
attendeeCount: number;
|
|
91
|
-
name?: any;
|
|
92
91
|
_id?: string | undefined;
|
|
92
|
+
name?: any;
|
|
93
93
|
project?: any;
|
|
94
94
|
alternateName?: any;
|
|
95
95
|
description?: any;
|
|
@@ -121,8 +121,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
121
121
|
typeOf: string;
|
|
122
122
|
checkInCount: number;
|
|
123
123
|
attendeeCount: number;
|
|
124
|
-
name?: any;
|
|
125
124
|
_id?: string | undefined;
|
|
125
|
+
name?: any;
|
|
126
126
|
project?: any;
|
|
127
127
|
alternateName?: any;
|
|
128
128
|
description?: any;
|
|
@@ -54,9 +54,9 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
54
54
|
additionalProperty: any[];
|
|
55
55
|
addOn: any[];
|
|
56
56
|
availableAtOrFrom: any[];
|
|
57
|
-
typeOf?: string | undefined;
|
|
58
|
-
name?: any;
|
|
59
57
|
_id?: string | undefined;
|
|
58
|
+
name?: any;
|
|
59
|
+
typeOf?: string | undefined;
|
|
60
60
|
project?: any;
|
|
61
61
|
alternateName?: any;
|
|
62
62
|
description?: any;
|
|
@@ -84,9 +84,9 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
84
84
|
additionalProperty: any[];
|
|
85
85
|
addOn: any[];
|
|
86
86
|
availableAtOrFrom: any[];
|
|
87
|
-
typeOf?: string | undefined;
|
|
88
|
-
name?: any;
|
|
89
87
|
_id?: string | undefined;
|
|
88
|
+
name?: any;
|
|
89
|
+
typeOf?: string | undefined;
|
|
90
90
|
project?: any;
|
|
91
91
|
alternateName?: any;
|
|
92
92
|
description?: any;
|
|
@@ -114,9 +114,9 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
114
114
|
additionalProperty: any[];
|
|
115
115
|
addOn: any[];
|
|
116
116
|
availableAtOrFrom: any[];
|
|
117
|
-
typeOf?: string | undefined;
|
|
118
|
-
name?: any;
|
|
119
117
|
_id?: string | undefined;
|
|
118
|
+
name?: any;
|
|
119
|
+
typeOf?: string | undefined;
|
|
120
120
|
project?: any;
|
|
121
121
|
alternateName?: any;
|
|
122
122
|
description?: any;
|
|
@@ -55,8 +55,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
55
55
|
additionalProperty: any[];
|
|
56
56
|
identifier: string;
|
|
57
57
|
itemListElement: any[];
|
|
58
|
-
name?: any;
|
|
59
58
|
_id?: string | undefined;
|
|
59
|
+
name?: any;
|
|
60
60
|
project?: any;
|
|
61
61
|
alternateName?: any;
|
|
62
62
|
description?: any;
|
|
@@ -66,8 +66,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
66
66
|
additionalProperty: any[];
|
|
67
67
|
identifier: string;
|
|
68
68
|
itemListElement: any[];
|
|
69
|
-
name?: any;
|
|
70
69
|
_id?: string | undefined;
|
|
70
|
+
name?: any;
|
|
71
71
|
project?: any;
|
|
72
72
|
alternateName?: any;
|
|
73
73
|
description?: any;
|
|
@@ -77,8 +77,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
77
77
|
additionalProperty: any[];
|
|
78
78
|
identifier: string;
|
|
79
79
|
itemListElement: any[];
|
|
80
|
-
name?: any;
|
|
81
80
|
_id?: string | undefined;
|
|
81
|
+
name?: any;
|
|
82
82
|
project?: any;
|
|
83
83
|
alternateName?: any;
|
|
84
84
|
description?: any;
|
|
@@ -53,8 +53,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
53
53
|
};
|
|
54
54
|
}, {
|
|
55
55
|
typeOf: string;
|
|
56
|
-
name?: string | undefined;
|
|
57
56
|
_id?: string | undefined;
|
|
57
|
+
name?: string | undefined;
|
|
58
58
|
alternateName?: string | undefined;
|
|
59
59
|
logo?: string | undefined;
|
|
60
60
|
aggregateReservation?: any;
|
|
@@ -62,8 +62,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
62
62
|
subscription?: any;
|
|
63
63
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
64
64
|
typeOf: string;
|
|
65
|
-
name?: string | undefined;
|
|
66
65
|
_id?: string | undefined;
|
|
66
|
+
name?: string | undefined;
|
|
67
67
|
alternateName?: string | undefined;
|
|
68
68
|
logo?: string | undefined;
|
|
69
69
|
aggregateReservation?: any;
|
|
@@ -71,8 +71,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
71
71
|
subscription?: any;
|
|
72
72
|
}>> & Omit<import("mongoose").FlatRecord<{
|
|
73
73
|
typeOf: string;
|
|
74
|
-
name?: string | undefined;
|
|
75
74
|
_id?: string | undefined;
|
|
75
|
+
name?: string | undefined;
|
|
76
76
|
alternateName?: string | undefined;
|
|
77
77
|
logo?: string | undefined;
|
|
78
78
|
aggregateReservation?: any;
|
|
@@ -53,8 +53,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
53
53
|
};
|
|
54
54
|
}, {
|
|
55
55
|
object?: any;
|
|
56
|
-
typeOf?: string | undefined;
|
|
57
56
|
error?: any;
|
|
57
|
+
typeOf?: string | undefined;
|
|
58
58
|
status?: string | undefined;
|
|
59
59
|
result?: any;
|
|
60
60
|
expires?: Date | undefined;
|
|
@@ -70,8 +70,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
70
70
|
tasksExportAction?: any;
|
|
71
71
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
72
72
|
object?: any;
|
|
73
|
-
typeOf?: string | undefined;
|
|
74
73
|
error?: any;
|
|
74
|
+
typeOf?: string | undefined;
|
|
75
75
|
status?: string | undefined;
|
|
76
76
|
result?: any;
|
|
77
77
|
expires?: Date | undefined;
|
|
@@ -87,8 +87,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
87
87
|
tasksExportAction?: any;
|
|
88
88
|
}>> & Omit<import("mongoose").FlatRecord<{
|
|
89
89
|
object?: any;
|
|
90
|
-
typeOf?: string | undefined;
|
|
91
90
|
error?: any;
|
|
91
|
+
typeOf?: string | undefined;
|
|
92
92
|
status?: string | undefined;
|
|
93
93
|
result?: any;
|
|
94
94
|
expires?: Date | undefined;
|
|
@@ -53,7 +53,7 @@ export declare class MongoRepository {
|
|
|
53
53
|
name: {
|
|
54
54
|
$nin?: factory.taskName[];
|
|
55
55
|
};
|
|
56
|
-
}): Promise<Pick<import("@chevre/factory/lib/task").ITask | import("@chevre/factory/lib/task/deleteAssetTransaction").ITask | import("@chevre/factory/lib/task/deleteOrder").ITask | import("@chevre/factory/lib/task/deleteTransaction").ITask | import("@chevre/factory/lib/task/sendEmailMessage").ITask | import("@chevre/factory/lib/task/triggerWebhook").ITask | import("@chevre/factory/lib/task/confirmMoneyTransfer").ITask | import("@chevre/factory/lib/task/confirmRegisterService").ITask | import("@chevre/factory/lib/task/confirmPayTransaction").ITask | import("@chevre/factory/lib/task/confirmRegisterServiceTransaction").ITask | import("@chevre/factory/lib/task/confirmReserveTransaction").ITask | import("@chevre/factory/lib/task/deleteMember").ITask | import("@chevre/factory/lib/task/givePointAward").ITask | import("@chevre/factory/lib/task/orderProgramMembership").ITask | import("@chevre/factory/lib/task/placeOrder").ITask | import("@chevre/factory/lib/task/returnOrder").ITask | import("@chevre/factory/lib/task/returnMoneyTransfer").ITask | import("@chevre/factory/lib/task/returnPayTransaction").ITask | import("@chevre/factory/lib/task/returnPointAward").ITask | import("@chevre/factory/lib/task/returnReserveTransaction").ITask | import("@chevre/factory/lib/task/sendOrder").ITask | import("@chevre/factory/lib/task/voidMoneyTransferTransaction").ITask | import("@chevre/factory/lib/task/voidPayTransaction").ITask | import("@chevre/factory/lib/task/voidRegisterServiceTransaction").ITask | import("@chevre/factory/lib/task/voidReserveTransaction").ITask, "
|
|
56
|
+
}): Promise<Pick<import("@chevre/factory/lib/task").ITask | import("@chevre/factory/lib/task/deleteAssetTransaction").ITask | import("@chevre/factory/lib/task/deleteOrder").ITask | import("@chevre/factory/lib/task/deleteTransaction").ITask | import("@chevre/factory/lib/task/sendEmailMessage").ITask | import("@chevre/factory/lib/task/triggerWebhook").ITask | import("@chevre/factory/lib/task/confirmMoneyTransfer").ITask | import("@chevre/factory/lib/task/confirmRegisterService").ITask | import("@chevre/factory/lib/task/confirmPayTransaction").ITask | import("@chevre/factory/lib/task/confirmRegisterServiceTransaction").ITask | import("@chevre/factory/lib/task/confirmReserveTransaction").ITask | import("@chevre/factory/lib/task/deleteMember").ITask | import("@chevre/factory/lib/task/givePointAward").ITask | import("@chevre/factory/lib/task/orderProgramMembership").ITask | import("@chevre/factory/lib/task/placeOrder").ITask | import("@chevre/factory/lib/task/returnOrder").ITask | import("@chevre/factory/lib/task/returnMoneyTransfer").ITask | import("@chevre/factory/lib/task/returnPayTransaction").ITask | import("@chevre/factory/lib/task/returnPointAward").ITask | import("@chevre/factory/lib/task/returnReserveTransaction").ITask | import("@chevre/factory/lib/task/sendOrder").ITask | import("@chevre/factory/lib/task/voidMoneyTransferTransaction").ITask | import("@chevre/factory/lib/task/voidPayTransaction").ITask | import("@chevre/factory/lib/task/voidRegisterServiceTransaction").ITask | import("@chevre/factory/lib/task/voidReserveTransaction").ITask, "id" | "name" | "status">[]>;
|
|
57
57
|
retry(params: {
|
|
58
58
|
intervalInMinutes: number;
|
|
59
59
|
}): Promise<void>;
|
|
@@ -133,7 +133,7 @@ export declare class MongoRepository {
|
|
|
133
133
|
exportTasks(params: {
|
|
134
134
|
now: Date;
|
|
135
135
|
delayInSeconds: number;
|
|
136
|
-
}): Promise<Pick<import("@chevre/factory/lib/transaction/moneyTransfer").ITransaction | import("@chevre/factory/lib/transaction/placeOrder").ITransaction | import("@chevre/factory/lib/transaction/returnOrder").ITransaction, "
|
|
136
|
+
}): Promise<Pick<import("@chevre/factory/lib/transaction/moneyTransfer").ITransaction | import("@chevre/factory/lib/transaction/placeOrder").ITransaction | import("@chevre/factory/lib/transaction/returnOrder").ITransaction, "id" | "typeOf" | "status">[]>;
|
|
137
137
|
/**
|
|
138
138
|
* set task status exported by transaction id
|
|
139
139
|
* IDでタスクをエクスポート済に変更する
|
package/lib/chevre/settings.d.ts
CHANGED
|
@@ -31,7 +31,6 @@ export declare const DEFAULT_TASKS_EXPORT_AGENT_NAME: string;
|
|
|
31
31
|
export declare const USE_ASSET_TRANSACTION_SYNC_PROCESSING: boolean;
|
|
32
32
|
export declare const USE_PAY_ASSET_TRANSACTION_SYNC_PROCESSING: boolean;
|
|
33
33
|
export declare const USE_NEW_EVENT_AVAILABILITY_KEY_FROM: moment.Moment;
|
|
34
|
-
export declare const USE_EVENT_EMITTERS: boolean;
|
|
35
34
|
/**
|
|
36
35
|
* グローバル設定
|
|
37
36
|
*/
|
package/lib/chevre/settings.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.settings = exports.
|
|
3
|
+
exports.settings = exports.USE_NEW_EVENT_AVAILABILITY_KEY_FROM = exports.USE_PAY_ASSET_TRANSACTION_SYNC_PROCESSING = exports.USE_ASSET_TRANSACTION_SYNC_PROCESSING = exports.DEFAULT_TASKS_EXPORT_AGENT_NAME = exports.DEFAULT_PAYMENT_METHOD_TYPE_FOR_CREDIT_CARD = exports.DEFAULT_SENDER_EMAIL = exports.TRANSACTION_CANCELED_STORAGE_PERIOD_IN_DAYS = exports.TRANSACTION_CONFIRMED_STORAGE_PERIOD_IN_DAYS = exports.ASSET_TRANSACTION_STORAGE_PERIOD_IN_DAYS = exports.ABORTED_TASKS_WITHOUT_REPORT = void 0;
|
|
4
4
|
const moment = require("moment");
|
|
5
5
|
const factory = require("./factory");
|
|
6
6
|
const transactionWebhookUrls = (typeof process.env.INFORM_TRANSACTION_URL === 'string')
|
|
@@ -50,7 +50,6 @@ exports.USE_PAY_ASSET_TRANSACTION_SYNC_PROCESSING = process.env.USE_PAY_ASSET_TR
|
|
|
50
50
|
exports.USE_NEW_EVENT_AVAILABILITY_KEY_FROM = (typeof process.env.USE_NEW_EVENT_AVAILABILITY_KEY_FROM === 'string')
|
|
51
51
|
? moment(process.env.USE_NEW_EVENT_AVAILABILITY_KEY_FROM)
|
|
52
52
|
: moment('2023-08-31T15:00:00Z');
|
|
53
|
-
exports.USE_EVENT_EMITTERS = process.env.USE_EVENT_EMITTERS === '1';
|
|
54
53
|
/**
|
|
55
54
|
* グローバル設定
|
|
56
55
|
*/
|
package/package.json
CHANGED