@chevre/domain 23.2.0-alpha.25 → 23.2.0-alpha.26
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.
|
@@ -50,6 +50,11 @@ export declare function searchEventSeatOffersWithPaging(params: {
|
|
|
50
50
|
};
|
|
51
51
|
$projection?: factory.place.seat.IProjection;
|
|
52
52
|
options: {
|
|
53
|
+
/**
|
|
54
|
+
* レスポンスにセクションコードを含める要素をひとつめのみにするかどうか
|
|
55
|
+
* 2026-01-14~
|
|
56
|
+
*/
|
|
57
|
+
includeSectionCodeOnlyFirstElement: boolean;
|
|
53
58
|
/**
|
|
54
59
|
* 自動的にひとつめのセクションに絞るかどうか
|
|
55
60
|
*/
|
|
@@ -61,7 +61,7 @@ function searchEventSeatOffersWithPaging(params) {
|
|
|
61
61
|
// tslint:disable-next-line:max-func-body-length
|
|
62
62
|
return (repos) => __awaiter(this, void 0, void 0, function* () {
|
|
63
63
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
64
|
-
const { useDefaultSection } = params.options;
|
|
64
|
+
const { includeSectionCodeOnlyFirstElement, useDefaultSection } = params.options;
|
|
65
65
|
let offers = [];
|
|
66
66
|
// optimize(2024-07-18~)
|
|
67
67
|
const event = yield repos.event.projectEventFieldsById({ id: params.event.id }, ['project', 'startDate', 'offers.itemOffered', 'organizer']);
|
|
@@ -117,9 +117,21 @@ function searchEventSeatOffersWithPaging(params) {
|
|
|
117
117
|
})
|
|
118
118
|
});
|
|
119
119
|
offers = seats.map(({ branchCode, name, containedInPlace, seatingType }, index) => {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
let includeSectionCode = false;
|
|
121
|
+
if (includeSectionCodeOnlyFirstElement) {
|
|
122
|
+
if (useDefaultSection) {
|
|
123
|
+
// デフォルトセクション指定の場合、first elementのみセクションコードを含める
|
|
124
|
+
if (index === 0) {
|
|
125
|
+
includeSectionCode = true;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
includeSectionCode = true;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
includeSectionCode = true;
|
|
134
|
+
}
|
|
123
135
|
return Object.assign({ branchCode,
|
|
124
136
|
name,
|
|
125
137
|
seatingType,
|
package/package.json
CHANGED