@cinerino/sdk 12.6.0-alpha.2 → 12.6.0-alpha.4
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/admin/adminCreateEventIfNotExistByIdentifier.ts +19 -16
- package/example/src/chevre/admin/adminCreateEventIfNotExistByIdentifierBySoftware.ts +2 -1
- package/example/src/chevre/admin/updateEventsSellerMakesOfferByIdentifier.ts +82 -0
- package/example/src/chevre/console/adminEventSellerMakesOffer.ts +110 -0
- package/lib/abstract/chevreAdmin/event.d.ts +25 -1
- package/lib/abstract/chevreAdmin/event.js +43 -7
- package/lib/abstract/chevreConsole/event.d.ts +16 -2
- package/lib/abstract/chevreConsole/event.js +28 -5
- package/lib/abstract/cloud/admin/event.d.ts +12 -1
- package/lib/abstract/cloud/admin/event.js +49 -2
- package/lib/bundle.js +120 -14
- package/package.json +1 -1
|
@@ -28,8 +28,9 @@ async function main() {
|
|
|
28
28
|
const today = moment()
|
|
29
29
|
.tz('Asia/Tokyo')
|
|
30
30
|
.format('YYYY-MM-DD');
|
|
31
|
-
const identifier = `fromSamples${moment()
|
|
32
|
-
|
|
31
|
+
// const identifier = `fromSamples${moment()
|
|
32
|
+
// .format('YYYYMMDDTHHmm')}`;
|
|
33
|
+
const identifier = 'fromSamples20251028T1337';
|
|
33
34
|
await eventService.createIfNotExistByIdentifier(
|
|
34
35
|
[
|
|
35
36
|
{
|
|
@@ -88,7 +89,8 @@ async function main() {
|
|
|
88
89
|
locationBranchCode: '10',
|
|
89
90
|
superEventId: '7k9ayl8hc',
|
|
90
91
|
hasTicketedSeat: true,
|
|
91
|
-
typeOf: client.factory.eventType.ScreeningEvent
|
|
92
|
+
typeOf: client.factory.eventType.ScreeningEvent,
|
|
93
|
+
disableOverwriteMakesOffer: true
|
|
92
94
|
}
|
|
93
95
|
);
|
|
94
96
|
console.log('created.');
|
|
@@ -118,25 +120,26 @@ async function main() {
|
|
|
118
120
|
},
|
|
119
121
|
seller: {
|
|
120
122
|
makesOffer: [
|
|
121
|
-
{
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
123
|
+
// {
|
|
124
|
+
// typeOf: client.factory.offerType.Offer,
|
|
125
|
+
// availableAtOrFrom: { id: AVAILABLE_AT_OR_FROM_ID }, // <-販売アプリケーションIDを指定する
|
|
126
|
+
// availabilityStarts: moment(`${today}T00:00:00+09:00`)
|
|
127
|
+
// .toDate(),
|
|
128
|
+
// availabilityEnds: moment(`${today}T14:00:00Z`)
|
|
129
|
+
// .toDate(),
|
|
130
|
+
// validFrom: moment(`${today}T00:00:00+09:00`)
|
|
131
|
+
// .toDate(),
|
|
132
|
+
// validThrough: moment(`${today}T14:00:00Z`)
|
|
133
|
+
// .toDate()
|
|
134
|
+
// }
|
|
133
135
|
]
|
|
134
136
|
}
|
|
135
137
|
}
|
|
136
138
|
}
|
|
137
139
|
],
|
|
138
140
|
{
|
|
139
|
-
typeOf: client.factory.eventType.ScreeningEvent
|
|
141
|
+
typeOf: client.factory.eventType.ScreeningEvent,
|
|
142
|
+
disableOverwriteMakesOffer: false
|
|
140
143
|
}
|
|
141
144
|
);
|
|
142
145
|
console.log('updated.');
|
|
@@ -90,7 +90,8 @@ async function main() {
|
|
|
90
90
|
locationBranchCode: LOCATION_BRANCH_CODE,
|
|
91
91
|
superEventId: SUPER_EVENT_ID,
|
|
92
92
|
hasTicketedSeat: true,
|
|
93
|
-
typeOf: client.factory.eventType.ScreeningEvent
|
|
93
|
+
typeOf: client.factory.eventType.ScreeningEvent,
|
|
94
|
+
disableOverwriteMakesOffer: false
|
|
94
95
|
}
|
|
95
96
|
);
|
|
96
97
|
console.log('created.');
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// tslint:disable:no-console
|
|
2
|
+
// tslint:disable-next-line:no-implicit-dependencies
|
|
3
|
+
import * as moment from 'moment-timezone';
|
|
4
|
+
import * as client from '../../../../lib/index';
|
|
5
|
+
import * as auth from '../../auth/authAsAdmin';
|
|
6
|
+
|
|
7
|
+
const PROJECT_ID = String(process.env.PROJECT_ID);
|
|
8
|
+
const SELLER_ID = '59d20831e53ebc2b4e774466';
|
|
9
|
+
const AVAILABLE_AT_OR_FROM_ID = '51qbjcfr72h62m06vtv5kkhgje';
|
|
10
|
+
const AVAILABLE_AT_OR_FROM_ID2 = 'ckevmf3fueqcunnideu6artt';
|
|
11
|
+
const { EVENT_IDENTIFIER } = process.env;
|
|
12
|
+
|
|
13
|
+
// tslint:disable-next-line:max-func-body-length
|
|
14
|
+
async function main() {
|
|
15
|
+
if (typeof EVENT_IDENTIFIER !== 'string') {
|
|
16
|
+
throw new Error('environment variables required');
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const authClient = await auth.login();
|
|
20
|
+
await authClient.refreshAccessToken();
|
|
21
|
+
const loginTicket = authClient.verifyIdToken({});
|
|
22
|
+
console.log('username is', loginTicket.getUsername());
|
|
23
|
+
|
|
24
|
+
const eventService = await (await client.loadChevreAdmin({
|
|
25
|
+
endpoint: <string>process.env.CHEVRE_ENDPOINT,
|
|
26
|
+
auth: authClient
|
|
27
|
+
})).createEventInstance({
|
|
28
|
+
project: { id: PROJECT_ID },
|
|
29
|
+
seller: { id: SELLER_ID }
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
const today = moment()
|
|
33
|
+
.tz('Asia/Tokyo')
|
|
34
|
+
.format('YYYY-MM-DD');
|
|
35
|
+
await eventService.updateEventsSellerMakesOfferByIdentifier(
|
|
36
|
+
[
|
|
37
|
+
{
|
|
38
|
+
identifier: EVENT_IDENTIFIER,
|
|
39
|
+
offers: {
|
|
40
|
+
seller: {
|
|
41
|
+
makesOffer: [
|
|
42
|
+
{
|
|
43
|
+
typeOf: client.factory.offerType.Offer,
|
|
44
|
+
availableAtOrFrom: { id: AVAILABLE_AT_OR_FROM_ID },
|
|
45
|
+
availabilityStarts: moment(`${today}T00:00:00+09:00`)
|
|
46
|
+
.toDate(),
|
|
47
|
+
availabilityEnds: moment(`${today}T14:00:00Z`)
|
|
48
|
+
.toDate(),
|
|
49
|
+
validFrom: moment(`${today}T00:00:00+09:00`)
|
|
50
|
+
.toDate(),
|
|
51
|
+
validThrough: moment(`${today}T14:00:00Z`)
|
|
52
|
+
.toDate(),
|
|
53
|
+
identifier: '12345678x1'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
typeOf: client.factory.offerType.Offer,
|
|
57
|
+
availableAtOrFrom: { id: AVAILABLE_AT_OR_FROM_ID2 },
|
|
58
|
+
availabilityStarts: moment(`${today}T00:00:00+09:00`)
|
|
59
|
+
.toDate(),
|
|
60
|
+
availabilityEnds: moment(`${today}T14:00:00Z`)
|
|
61
|
+
.toDate(),
|
|
62
|
+
validFrom: moment(`${today}T00:00:00+09:00`)
|
|
63
|
+
.toDate(),
|
|
64
|
+
validThrough: moment(`${today}T14:00:00Z`)
|
|
65
|
+
.toDate(),
|
|
66
|
+
identifier: '12345678x2'
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
);
|
|
74
|
+
console.log('updated.');
|
|
75
|
+
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
main()
|
|
79
|
+
.then(() => {
|
|
80
|
+
console.log('success!');
|
|
81
|
+
})
|
|
82
|
+
.catch(console.error);
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// tslint:disable:no-console
|
|
2
|
+
// tslint:disable-next-line:no-implicit-dependencies
|
|
3
|
+
import * as moment from 'moment';
|
|
4
|
+
import { factory, loadChevreConsole } from '../../../../lib/index';
|
|
5
|
+
import * as auth from '../../auth/authAsAdmin';
|
|
6
|
+
|
|
7
|
+
const project = { id: String(process.env.PROJECT_ID) };
|
|
8
|
+
|
|
9
|
+
// tslint:disable-next-line:max-func-body-length
|
|
10
|
+
async function main() {
|
|
11
|
+
const authClient = await auth.login();
|
|
12
|
+
await authClient.refreshAccessToken();
|
|
13
|
+
const loginTicket = authClient.verifyIdToken({});
|
|
14
|
+
console.log('username is', loginTicket.getUsername());
|
|
15
|
+
|
|
16
|
+
const eventService = await (await loadChevreConsole({
|
|
17
|
+
endpoint: <string>process.env.CHEVRE_ENDPOINT,
|
|
18
|
+
auth: authClient
|
|
19
|
+
})).createEventInstance({
|
|
20
|
+
project,
|
|
21
|
+
seller: { id: '' }
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const availabilityEnds = moment('2025-10-26T05:20:00.000Z')
|
|
25
|
+
.toDate();
|
|
26
|
+
const availabilityStarts = moment('2025-10-23T15:00:00.000Z')
|
|
27
|
+
.toDate();
|
|
28
|
+
const validFrom = moment('2025-10-12T15:00:00.000Z')
|
|
29
|
+
.toDate();
|
|
30
|
+
const validThrough = moment('2025-10-26T05:20:00.000Z')
|
|
31
|
+
.toDate();
|
|
32
|
+
await eventService.updateEventSellerMakesOfferById({
|
|
33
|
+
id: 'bmf595x5y',
|
|
34
|
+
attributes: {
|
|
35
|
+
offers: {
|
|
36
|
+
seller: {
|
|
37
|
+
makesOffer: [
|
|
38
|
+
{
|
|
39
|
+
typeOf: factory.offerType.Offer,
|
|
40
|
+
availableAtOrFrom: {
|
|
41
|
+
id: '3eo6okferrsdpfd9j2ce1iv9k7'
|
|
42
|
+
},
|
|
43
|
+
availabilityEnds,
|
|
44
|
+
availabilityStarts,
|
|
45
|
+
validFrom,
|
|
46
|
+
validThrough
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
typeOf: factory.offerType.Offer,
|
|
50
|
+
availableAtOrFrom: {
|
|
51
|
+
id: '51qbjcfr72h62m06vtv5kkhgje'
|
|
52
|
+
},
|
|
53
|
+
availabilityEnds,
|
|
54
|
+
availabilityStarts,
|
|
55
|
+
validFrom,
|
|
56
|
+
validThrough
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
typeOf: factory.offerType.Offer,
|
|
60
|
+
availableAtOrFrom: {
|
|
61
|
+
id: '5h3gs22mu9j3ok7o63uog9o9i3'
|
|
62
|
+
},
|
|
63
|
+
availabilityEnds,
|
|
64
|
+
availabilityStarts,
|
|
65
|
+
validFrom,
|
|
66
|
+
validThrough
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
typeOf: factory.offerType.Offer,
|
|
70
|
+
availableAtOrFrom: {
|
|
71
|
+
id: '66e7p2g713675v96nrhdm975kg'
|
|
72
|
+
},
|
|
73
|
+
availabilityEnds,
|
|
74
|
+
availabilityStarts,
|
|
75
|
+
validFrom,
|
|
76
|
+
validThrough
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
typeOf: factory.offerType.Offer,
|
|
80
|
+
availableAtOrFrom: {
|
|
81
|
+
id: '7divuoimobsfgq95tp1csorjqq'
|
|
82
|
+
},
|
|
83
|
+
availabilityEnds,
|
|
84
|
+
availabilityStarts,
|
|
85
|
+
validFrom,
|
|
86
|
+
validThrough
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
typeOf: factory.offerType.Offer,
|
|
90
|
+
availableAtOrFrom: {
|
|
91
|
+
id: 'ckevmf3fueqcunnideu6artt'
|
|
92
|
+
},
|
|
93
|
+
availabilityEnds,
|
|
94
|
+
availabilityStarts,
|
|
95
|
+
validFrom,
|
|
96
|
+
validThrough
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
console.log('updated');
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
main()
|
|
107
|
+
.then(() => {
|
|
108
|
+
console.log('success!');
|
|
109
|
+
})
|
|
110
|
+
.catch(console.error);
|
|
@@ -17,6 +17,14 @@ export declare type IUpdateParamsByIdentifier = Pick<factory.event.screeningEven
|
|
|
17
17
|
location?: never;
|
|
18
18
|
superEvent?: never;
|
|
19
19
|
};
|
|
20
|
+
export interface IUpdateEventSellerMakesOfferParamsByIdentifier {
|
|
21
|
+
identifier: string;
|
|
22
|
+
offers: {
|
|
23
|
+
seller: Pick<factory.event.screeningEvent.ISeller4create, 'makesOffer'>;
|
|
24
|
+
};
|
|
25
|
+
location?: never;
|
|
26
|
+
superEvent?: never;
|
|
27
|
+
}
|
|
20
28
|
/**
|
|
21
29
|
* イベントサービス
|
|
22
30
|
*/
|
|
@@ -39,15 +47,31 @@ export declare class EventService extends Service {
|
|
|
39
47
|
*/
|
|
40
48
|
hasTicketedSeat: boolean;
|
|
41
49
|
typeOf: factory.eventType.ScreeningEvent;
|
|
50
|
+
disableOverwriteMakesOffer: boolean;
|
|
42
51
|
}): Promise<void>;
|
|
43
52
|
/**
|
|
44
53
|
* 識別子によるイベント複数更新
|
|
45
54
|
* 識別子のイベントが存在しなければNotFound
|
|
46
55
|
* 座席有無は変更できない
|
|
47
56
|
*/
|
|
48
|
-
updateEventsByIdentifier(
|
|
57
|
+
updateEventsByIdentifier(
|
|
58
|
+
/**
|
|
59
|
+
* max: 10
|
|
60
|
+
*/
|
|
61
|
+
params: IUpdateParamsByIdentifier[], options: {
|
|
49
62
|
typeOf: factory.eventType.ScreeningEvent;
|
|
63
|
+
disableOverwriteMakesOffer: boolean;
|
|
50
64
|
}): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* イベントのアプリケーションオファー編集(識別子によるイベント複数編集)
|
|
67
|
+
* 識別子のイベントが存在しなければNotFound
|
|
68
|
+
* 2025-10-28~
|
|
69
|
+
*/
|
|
70
|
+
updateEventsSellerMakesOfferByIdentifier(
|
|
71
|
+
/**
|
|
72
|
+
* max: 10
|
|
73
|
+
*/
|
|
74
|
+
params: IUpdateEventSellerMakesOfferParamsByIdentifier[]): Promise<void>;
|
|
51
75
|
/**
|
|
52
76
|
* イベント冪等複数作成
|
|
53
77
|
* 特定の追加特性をキーにして、存在しなければ作成する
|
|
@@ -69,16 +69,20 @@ var EventService = /** @class */ (function (_super) {
|
|
|
69
69
|
*/
|
|
70
70
|
EventService.prototype.createIfNotExistByIdentifier = function (params, options) {
|
|
71
71
|
return __awaiter(this, void 0, void 0, function () {
|
|
72
|
-
var superEventId, locationBranchCode, hasTicketedSeat, typeOf;
|
|
72
|
+
var superEventId, locationBranchCode, hasTicketedSeat, typeOf, disableOverwriteMakesOffer;
|
|
73
73
|
return __generator(this, function (_a) {
|
|
74
74
|
switch (_a.label) {
|
|
75
75
|
case 0:
|
|
76
|
-
superEventId = options.superEventId, locationBranchCode = options.locationBranchCode, hasTicketedSeat = options.hasTicketedSeat, typeOf = options.typeOf;
|
|
76
|
+
superEventId = options.superEventId, locationBranchCode = options.locationBranchCode, hasTicketedSeat = options.hasTicketedSeat, typeOf = options.typeOf, disableOverwriteMakesOffer = options.disableOverwriteMakesOffer;
|
|
77
77
|
return [4 /*yield*/, this.fetch({
|
|
78
78
|
uri: '/events',
|
|
79
79
|
method: 'POST',
|
|
80
80
|
body: params,
|
|
81
|
-
qs: {
|
|
81
|
+
qs: {
|
|
82
|
+
superEventId: superEventId, locationBranchCode: locationBranchCode, hasTicketedSeat: hasTicketedSeat, typeOf: typeOf,
|
|
83
|
+
// support disableOverwriteMakesOffer(2025-10-28~)
|
|
84
|
+
disableOverwriteMakesOffer: disableOverwriteMakesOffer === true
|
|
85
|
+
},
|
|
82
86
|
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
83
87
|
})];
|
|
84
88
|
case 1:
|
|
@@ -93,20 +97,26 @@ var EventService = /** @class */ (function (_super) {
|
|
|
93
97
|
* 識別子のイベントが存在しなければNotFound
|
|
94
98
|
* 座席有無は変更できない
|
|
95
99
|
*/
|
|
96
|
-
EventService.prototype.updateEventsByIdentifier = function (
|
|
100
|
+
EventService.prototype.updateEventsByIdentifier = function (
|
|
101
|
+
/**
|
|
102
|
+
* max: 10
|
|
103
|
+
*/
|
|
104
|
+
params, options) {
|
|
97
105
|
return __awaiter(this, void 0, void 0, function () {
|
|
98
|
-
var typeOf;
|
|
106
|
+
var typeOf, disableOverwriteMakesOffer;
|
|
99
107
|
return __generator(this, function (_a) {
|
|
100
108
|
switch (_a.label) {
|
|
101
109
|
case 0:
|
|
102
|
-
typeOf = options.typeOf;
|
|
110
|
+
typeOf = options.typeOf, disableOverwriteMakesOffer = options.disableOverwriteMakesOffer;
|
|
103
111
|
return [4 /*yield*/, this.fetch({
|
|
104
112
|
uri: '/events',
|
|
105
113
|
method: 'PUT',
|
|
106
114
|
body: params,
|
|
107
115
|
qs: {
|
|
108
116
|
typeOf: typeOf,
|
|
109
|
-
updateBy: 'identifier'
|
|
117
|
+
updateBy: 'identifier',
|
|
118
|
+
// support disableOverwriteMakesOffer(2025-10-28~)
|
|
119
|
+
disableOverwriteMakesOffer: disableOverwriteMakesOffer === true
|
|
110
120
|
},
|
|
111
121
|
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
112
122
|
})];
|
|
@@ -117,6 +127,32 @@ var EventService = /** @class */ (function (_super) {
|
|
|
117
127
|
});
|
|
118
128
|
});
|
|
119
129
|
};
|
|
130
|
+
/**
|
|
131
|
+
* イベントのアプリケーションオファー編集(識別子によるイベント複数編集)
|
|
132
|
+
* 識別子のイベントが存在しなければNotFound
|
|
133
|
+
* 2025-10-28~
|
|
134
|
+
*/
|
|
135
|
+
EventService.prototype.updateEventsSellerMakesOfferByIdentifier = function (
|
|
136
|
+
/**
|
|
137
|
+
* max: 10
|
|
138
|
+
*/
|
|
139
|
+
params) {
|
|
140
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
141
|
+
return __generator(this, function (_a) {
|
|
142
|
+
switch (_a.label) {
|
|
143
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
144
|
+
uri: "/eventSellerMakesOffer",
|
|
145
|
+
method: 'PUT',
|
|
146
|
+
body: params,
|
|
147
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
148
|
+
})];
|
|
149
|
+
case 1:
|
|
150
|
+
_a.sent();
|
|
151
|
+
return [2 /*return*/];
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
};
|
|
120
156
|
/**
|
|
121
157
|
* イベント冪等複数作成
|
|
122
158
|
* 特定の追加特性をキーにして、存在しなければ作成する
|
|
@@ -35,13 +35,27 @@ export declare class EventService extends Service {
|
|
|
35
35
|
typeOf: factory.eventType.ScreeningEvent;
|
|
36
36
|
}): Promise<factory.event.screeningEvent.IEvent>;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* 興行イベント編集
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
updateEventById(params: {
|
|
41
41
|
id: string;
|
|
42
42
|
attributes: factory.event.screeningEvent.IUpdateParams & {
|
|
43
43
|
$unset?: IUnset;
|
|
44
44
|
};
|
|
45
|
+
options: {
|
|
46
|
+
disableOverwriteMakesOffer: boolean;
|
|
47
|
+
};
|
|
48
|
+
}): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* イベントのアプリケーションオファー編集
|
|
51
|
+
*/
|
|
52
|
+
updateEventSellerMakesOfferById(params: {
|
|
53
|
+
id: string;
|
|
54
|
+
attributes: {
|
|
55
|
+
offers: {
|
|
56
|
+
seller: Pick<factory.event.screeningEvent.ISeller4create, 'makesOffer'>;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
45
59
|
}): Promise<void>;
|
|
46
60
|
}
|
|
47
61
|
export {};
|
|
@@ -136,21 +136,44 @@ var EventService = /** @class */ (function (_super) {
|
|
|
136
136
|
});
|
|
137
137
|
};
|
|
138
138
|
/**
|
|
139
|
-
*
|
|
139
|
+
* 興行イベント編集
|
|
140
140
|
*/
|
|
141
|
-
EventService.prototype.
|
|
141
|
+
EventService.prototype.updateEventById = function (params) {
|
|
142
|
+
var _a;
|
|
142
143
|
return __awaiter(this, void 0, void 0, function () {
|
|
143
|
-
return __generator(this, function (
|
|
144
|
-
switch (
|
|
144
|
+
return __generator(this, function (_b) {
|
|
145
|
+
switch (_b.label) {
|
|
145
146
|
case 0: return [4 /*yield*/, this.fetch({
|
|
146
147
|
uri: "/events/" + encodeURIComponent(String(params.id)),
|
|
147
148
|
method: 'PUT',
|
|
148
149
|
body: params.attributes,
|
|
149
150
|
qs: {
|
|
150
|
-
typeOf: factory.eventType.ScreeningEvent
|
|
151
|
+
typeOf: factory.eventType.ScreeningEvent,
|
|
152
|
+
// support disableOverwriteMakesOffer(2025-10-26~)
|
|
153
|
+
disableOverwriteMakesOffer: ((_a = params.options) === null || _a === void 0 ? void 0 : _a.disableOverwriteMakesOffer) === true
|
|
151
154
|
},
|
|
152
155
|
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
153
156
|
})];
|
|
157
|
+
case 1:
|
|
158
|
+
_b.sent();
|
|
159
|
+
return [2 /*return*/];
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* イベントのアプリケーションオファー編集
|
|
166
|
+
*/
|
|
167
|
+
EventService.prototype.updateEventSellerMakesOfferById = function (params) {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
169
|
+
return __generator(this, function (_a) {
|
|
170
|
+
switch (_a.label) {
|
|
171
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
172
|
+
uri: "/events/" + encodeURIComponent(String(params.id)) + "/sellerMakesOffer",
|
|
173
|
+
method: 'PUT',
|
|
174
|
+
body: params.attributes,
|
|
175
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
176
|
+
})];
|
|
154
177
|
case 1:
|
|
155
178
|
_a.sent();
|
|
156
179
|
return [2 /*return*/];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as factory from '../../factory';
|
|
2
2
|
import { Service } from '../../service';
|
|
3
|
-
import { ICreateParamsByIdentifier, IUpdateParamsByIdentifier } from '../../chevreAdmin/event';
|
|
3
|
+
import { ICreateParamsByIdentifier, IUpdateEventSellerMakesOfferParamsByIdentifier, IUpdateParamsByIdentifier } from '../../chevreAdmin/event';
|
|
4
4
|
declare type ISendEmailMessageOnEventUpdated = Pick<factory.action.transfer.send.message.email.IAttributes, 'purpose' | 'recipient'> & {
|
|
5
5
|
object: factory.action.transfer.send.message.email.IObjectAsEmailMessage;
|
|
6
6
|
};
|
|
@@ -27,6 +27,7 @@ export declare class EventService extends Service {
|
|
|
27
27
|
/**
|
|
28
28
|
* イベント冪等複数作成
|
|
29
29
|
* イベント識別子をキーにして、存在しなければ作成する
|
|
30
|
+
* アプリケーションオファーは設定されない
|
|
30
31
|
*/
|
|
31
32
|
createIfNotExistByIdentifier(params: ICreateParamsByIdentifier[], options: {
|
|
32
33
|
/**
|
|
@@ -47,10 +48,20 @@ export declare class EventService extends Service {
|
|
|
47
48
|
* 識別子によるイベント複数更新
|
|
48
49
|
* 識別子のイベントが存在しなければNotFound
|
|
49
50
|
* 座席有無は変更できない
|
|
51
|
+
* アプリケーションオファーは変更できない
|
|
50
52
|
*/
|
|
51
53
|
updateEventsByIdentifier(params: IUpdateParamsByIdentifier[], options: {
|
|
52
54
|
typeOf: factory.eventType.ScreeningEvent;
|
|
53
55
|
}): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* イベントのアプリケーションオファー編集(識別子によるイベント複数編集)
|
|
58
|
+
* 識別子のイベントが存在しなければNotFound
|
|
59
|
+
*/
|
|
60
|
+
updateEventsSellerMakesOfferByIdentifier(
|
|
61
|
+
/**
|
|
62
|
+
* max: 10
|
|
63
|
+
*/
|
|
64
|
+
params: IUpdateEventSellerMakesOfferParamsByIdentifier[]): Promise<void>;
|
|
54
65
|
/**
|
|
55
66
|
* イベント冪等複数作成
|
|
56
67
|
* 特定の追加特性をキーにして、存在しなければ作成する
|
|
@@ -14,6 +14,17 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
14
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
|
+
var __assign = (this && this.__assign) || function () {
|
|
18
|
+
__assign = Object.assign || function(t) {
|
|
19
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
+
s = arguments[i];
|
|
21
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
+
t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return __assign.apply(this, arguments);
|
|
27
|
+
};
|
|
17
28
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
29
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
30
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -96,6 +107,7 @@ var EventService = /** @class */ (function (_super) {
|
|
|
96
107
|
/**
|
|
97
108
|
* イベント冪等複数作成
|
|
98
109
|
* イベント識別子をキーにして、存在しなければ作成する
|
|
110
|
+
* アプリケーションオファーは設定されない
|
|
99
111
|
*/
|
|
100
112
|
EventService.prototype.createIfNotExistByIdentifier = function (params, options) {
|
|
101
113
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -113,7 +125,8 @@ var EventService = /** @class */ (function (_super) {
|
|
|
113
125
|
})];
|
|
114
126
|
case 2:
|
|
115
127
|
eventService = _b.sent();
|
|
116
|
-
return [4 /*yield*/, eventService.createIfNotExistByIdentifier(params, options)
|
|
128
|
+
return [4 /*yield*/, eventService.createIfNotExistByIdentifier(params, __assign(__assign({}, options), { disableOverwriteMakesOffer: true // force disableOverwriteMakesOffer(2025-10-28~)
|
|
129
|
+
}))];
|
|
117
130
|
case 3:
|
|
118
131
|
_b.sent();
|
|
119
132
|
return [2 /*return*/];
|
|
@@ -125,6 +138,7 @@ var EventService = /** @class */ (function (_super) {
|
|
|
125
138
|
* 識別子によるイベント複数更新
|
|
126
139
|
* 識別子のイベントが存在しなければNotFound
|
|
127
140
|
* 座席有無は変更できない
|
|
141
|
+
* アプリケーションオファーは変更できない
|
|
128
142
|
*/
|
|
129
143
|
EventService.prototype.updateEventsByIdentifier = function (params, options) {
|
|
130
144
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -142,7 +156,40 @@ var EventService = /** @class */ (function (_super) {
|
|
|
142
156
|
})];
|
|
143
157
|
case 2:
|
|
144
158
|
eventService = _b.sent();
|
|
145
|
-
return [4 /*yield*/, eventService.updateEventsByIdentifier(params, options)
|
|
159
|
+
return [4 /*yield*/, eventService.updateEventsByIdentifier(params, __assign(__assign({}, options), { disableOverwriteMakesOffer: true // force disableOverwriteMakesOffer(2025-10-28~)
|
|
160
|
+
}))];
|
|
161
|
+
case 3:
|
|
162
|
+
_b.sent();
|
|
163
|
+
return [2 /*return*/];
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* イベントのアプリケーションオファー編集(識別子によるイベント複数編集)
|
|
170
|
+
* 識別子のイベントが存在しなければNotFound
|
|
171
|
+
*/
|
|
172
|
+
EventService.prototype.updateEventsSellerMakesOfferByIdentifier = function (
|
|
173
|
+
/**
|
|
174
|
+
* max: 10
|
|
175
|
+
*/
|
|
176
|
+
params) {
|
|
177
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
178
|
+
var _a, auth, endpoint, project, seller, disableAutoRetry, chevreAdmin, eventService;
|
|
179
|
+
return __generator(this, function (_b) {
|
|
180
|
+
switch (_b.label) {
|
|
181
|
+
case 0:
|
|
182
|
+
_a = this.options, auth = _a.auth, endpoint = _a.endpoint, project = _a.project, seller = _a.seller, disableAutoRetry = _a.disableAutoRetry;
|
|
183
|
+
return [4 /*yield*/, index_1.loadChevreAdmin({ auth: auth, endpoint: endpoint, disableAutoRetry: disableAutoRetry })];
|
|
184
|
+
case 1:
|
|
185
|
+
chevreAdmin = _b.sent();
|
|
186
|
+
return [4 /*yield*/, chevreAdmin.createEventInstance({
|
|
187
|
+
project: project,
|
|
188
|
+
seller: { id: (typeof (seller === null || seller === void 0 ? void 0 : seller.id) === 'string') ? seller.id : '' }
|
|
189
|
+
})];
|
|
190
|
+
case 2:
|
|
191
|
+
eventService = _b.sent();
|
|
192
|
+
return [4 /*yield*/, eventService.updateEventsSellerMakesOfferByIdentifier(params)];
|
|
146
193
|
case 3:
|
|
147
194
|
_b.sent();
|
|
148
195
|
return [2 /*return*/];
|
package/lib/bundle.js
CHANGED
|
@@ -2849,16 +2849,20 @@ var EventService = /** @class */ (function (_super) {
|
|
|
2849
2849
|
*/
|
|
2850
2850
|
EventService.prototype.createIfNotExistByIdentifier = function (params, options) {
|
|
2851
2851
|
return __awaiter(this, void 0, void 0, function () {
|
|
2852
|
-
var superEventId, locationBranchCode, hasTicketedSeat, typeOf;
|
|
2852
|
+
var superEventId, locationBranchCode, hasTicketedSeat, typeOf, disableOverwriteMakesOffer;
|
|
2853
2853
|
return __generator(this, function (_a) {
|
|
2854
2854
|
switch (_a.label) {
|
|
2855
2855
|
case 0:
|
|
2856
|
-
superEventId = options.superEventId, locationBranchCode = options.locationBranchCode, hasTicketedSeat = options.hasTicketedSeat, typeOf = options.typeOf;
|
|
2856
|
+
superEventId = options.superEventId, locationBranchCode = options.locationBranchCode, hasTicketedSeat = options.hasTicketedSeat, typeOf = options.typeOf, disableOverwriteMakesOffer = options.disableOverwriteMakesOffer;
|
|
2857
2857
|
return [4 /*yield*/, this.fetch({
|
|
2858
2858
|
uri: '/events',
|
|
2859
2859
|
method: 'POST',
|
|
2860
2860
|
body: params,
|
|
2861
|
-
qs: {
|
|
2861
|
+
qs: {
|
|
2862
|
+
superEventId: superEventId, locationBranchCode: locationBranchCode, hasTicketedSeat: hasTicketedSeat, typeOf: typeOf,
|
|
2863
|
+
// support disableOverwriteMakesOffer(2025-10-28~)
|
|
2864
|
+
disableOverwriteMakesOffer: disableOverwriteMakesOffer === true
|
|
2865
|
+
},
|
|
2862
2866
|
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
2863
2867
|
})];
|
|
2864
2868
|
case 1:
|
|
@@ -2873,20 +2877,26 @@ var EventService = /** @class */ (function (_super) {
|
|
|
2873
2877
|
* 識別子のイベントが存在しなければNotFound
|
|
2874
2878
|
* 座席有無は変更できない
|
|
2875
2879
|
*/
|
|
2876
|
-
EventService.prototype.updateEventsByIdentifier = function (
|
|
2880
|
+
EventService.prototype.updateEventsByIdentifier = function (
|
|
2881
|
+
/**
|
|
2882
|
+
* max: 10
|
|
2883
|
+
*/
|
|
2884
|
+
params, options) {
|
|
2877
2885
|
return __awaiter(this, void 0, void 0, function () {
|
|
2878
|
-
var typeOf;
|
|
2886
|
+
var typeOf, disableOverwriteMakesOffer;
|
|
2879
2887
|
return __generator(this, function (_a) {
|
|
2880
2888
|
switch (_a.label) {
|
|
2881
2889
|
case 0:
|
|
2882
|
-
typeOf = options.typeOf;
|
|
2890
|
+
typeOf = options.typeOf, disableOverwriteMakesOffer = options.disableOverwriteMakesOffer;
|
|
2883
2891
|
return [4 /*yield*/, this.fetch({
|
|
2884
2892
|
uri: '/events',
|
|
2885
2893
|
method: 'PUT',
|
|
2886
2894
|
body: params,
|
|
2887
2895
|
qs: {
|
|
2888
2896
|
typeOf: typeOf,
|
|
2889
|
-
updateBy: 'identifier'
|
|
2897
|
+
updateBy: 'identifier',
|
|
2898
|
+
// support disableOverwriteMakesOffer(2025-10-28~)
|
|
2899
|
+
disableOverwriteMakesOffer: disableOverwriteMakesOffer === true
|
|
2890
2900
|
},
|
|
2891
2901
|
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
2892
2902
|
})];
|
|
@@ -2897,6 +2907,32 @@ var EventService = /** @class */ (function (_super) {
|
|
|
2897
2907
|
});
|
|
2898
2908
|
});
|
|
2899
2909
|
};
|
|
2910
|
+
/**
|
|
2911
|
+
* イベントのアプリケーションオファー編集(識別子によるイベント複数編集)
|
|
2912
|
+
* 識別子のイベントが存在しなければNotFound
|
|
2913
|
+
* 2025-10-28~
|
|
2914
|
+
*/
|
|
2915
|
+
EventService.prototype.updateEventsSellerMakesOfferByIdentifier = function (
|
|
2916
|
+
/**
|
|
2917
|
+
* max: 10
|
|
2918
|
+
*/
|
|
2919
|
+
params) {
|
|
2920
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2921
|
+
return __generator(this, function (_a) {
|
|
2922
|
+
switch (_a.label) {
|
|
2923
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
2924
|
+
uri: "/eventSellerMakesOffer",
|
|
2925
|
+
method: 'PUT',
|
|
2926
|
+
body: params,
|
|
2927
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
2928
|
+
})];
|
|
2929
|
+
case 1:
|
|
2930
|
+
_a.sent();
|
|
2931
|
+
return [2 /*return*/];
|
|
2932
|
+
}
|
|
2933
|
+
});
|
|
2934
|
+
});
|
|
2935
|
+
};
|
|
2900
2936
|
/**
|
|
2901
2937
|
* イベント冪等複数作成
|
|
2902
2938
|
* 特定の追加特性をキーにして、存在しなければ作成する
|
|
@@ -10342,21 +10378,44 @@ var EventService = /** @class */ (function (_super) {
|
|
|
10342
10378
|
});
|
|
10343
10379
|
};
|
|
10344
10380
|
/**
|
|
10345
|
-
*
|
|
10381
|
+
* 興行イベント編集
|
|
10346
10382
|
*/
|
|
10347
|
-
EventService.prototype.
|
|
10383
|
+
EventService.prototype.updateEventById = function (params) {
|
|
10384
|
+
var _a;
|
|
10348
10385
|
return __awaiter(this, void 0, void 0, function () {
|
|
10349
|
-
return __generator(this, function (
|
|
10350
|
-
switch (
|
|
10386
|
+
return __generator(this, function (_b) {
|
|
10387
|
+
switch (_b.label) {
|
|
10351
10388
|
case 0: return [4 /*yield*/, this.fetch({
|
|
10352
10389
|
uri: "/events/" + encodeURIComponent(String(params.id)),
|
|
10353
10390
|
method: 'PUT',
|
|
10354
10391
|
body: params.attributes,
|
|
10355
10392
|
qs: {
|
|
10356
|
-
typeOf: factory.eventType.ScreeningEvent
|
|
10393
|
+
typeOf: factory.eventType.ScreeningEvent,
|
|
10394
|
+
// support disableOverwriteMakesOffer(2025-10-26~)
|
|
10395
|
+
disableOverwriteMakesOffer: ((_a = params.options) === null || _a === void 0 ? void 0 : _a.disableOverwriteMakesOffer) === true
|
|
10357
10396
|
},
|
|
10358
10397
|
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
10359
10398
|
})];
|
|
10399
|
+
case 1:
|
|
10400
|
+
_b.sent();
|
|
10401
|
+
return [2 /*return*/];
|
|
10402
|
+
}
|
|
10403
|
+
});
|
|
10404
|
+
});
|
|
10405
|
+
};
|
|
10406
|
+
/**
|
|
10407
|
+
* イベントのアプリケーションオファー編集
|
|
10408
|
+
*/
|
|
10409
|
+
EventService.prototype.updateEventSellerMakesOfferById = function (params) {
|
|
10410
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10411
|
+
return __generator(this, function (_a) {
|
|
10412
|
+
switch (_a.label) {
|
|
10413
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
10414
|
+
uri: "/events/" + encodeURIComponent(String(params.id)) + "/sellerMakesOffer",
|
|
10415
|
+
method: 'PUT',
|
|
10416
|
+
body: params.attributes,
|
|
10417
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
10418
|
+
})];
|
|
10360
10419
|
case 1:
|
|
10361
10420
|
_a.sent();
|
|
10362
10421
|
return [2 /*return*/];
|
|
@@ -21371,6 +21430,17 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
21371
21430
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
21372
21431
|
};
|
|
21373
21432
|
})();
|
|
21433
|
+
var __assign = (this && this.__assign) || function () {
|
|
21434
|
+
__assign = Object.assign || function(t) {
|
|
21435
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
21436
|
+
s = arguments[i];
|
|
21437
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21438
|
+
t[p] = s[p];
|
|
21439
|
+
}
|
|
21440
|
+
return t;
|
|
21441
|
+
};
|
|
21442
|
+
return __assign.apply(this, arguments);
|
|
21443
|
+
};
|
|
21374
21444
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
21375
21445
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21376
21446
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -21453,6 +21523,7 @@ var EventService = /** @class */ (function (_super) {
|
|
|
21453
21523
|
/**
|
|
21454
21524
|
* イベント冪等複数作成
|
|
21455
21525
|
* イベント識別子をキーにして、存在しなければ作成する
|
|
21526
|
+
* アプリケーションオファーは設定されない
|
|
21456
21527
|
*/
|
|
21457
21528
|
EventService.prototype.createIfNotExistByIdentifier = function (params, options) {
|
|
21458
21529
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -21470,7 +21541,8 @@ var EventService = /** @class */ (function (_super) {
|
|
|
21470
21541
|
})];
|
|
21471
21542
|
case 2:
|
|
21472
21543
|
eventService = _b.sent();
|
|
21473
|
-
return [4 /*yield*/, eventService.createIfNotExistByIdentifier(params, options)
|
|
21544
|
+
return [4 /*yield*/, eventService.createIfNotExistByIdentifier(params, __assign(__assign({}, options), { disableOverwriteMakesOffer: true // force disableOverwriteMakesOffer(2025-10-28~)
|
|
21545
|
+
}))];
|
|
21474
21546
|
case 3:
|
|
21475
21547
|
_b.sent();
|
|
21476
21548
|
return [2 /*return*/];
|
|
@@ -21482,6 +21554,7 @@ var EventService = /** @class */ (function (_super) {
|
|
|
21482
21554
|
* 識別子によるイベント複数更新
|
|
21483
21555
|
* 識別子のイベントが存在しなければNotFound
|
|
21484
21556
|
* 座席有無は変更できない
|
|
21557
|
+
* アプリケーションオファーは変更できない
|
|
21485
21558
|
*/
|
|
21486
21559
|
EventService.prototype.updateEventsByIdentifier = function (params, options) {
|
|
21487
21560
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -21499,7 +21572,40 @@ var EventService = /** @class */ (function (_super) {
|
|
|
21499
21572
|
})];
|
|
21500
21573
|
case 2:
|
|
21501
21574
|
eventService = _b.sent();
|
|
21502
|
-
return [4 /*yield*/, eventService.updateEventsByIdentifier(params, options)
|
|
21575
|
+
return [4 /*yield*/, eventService.updateEventsByIdentifier(params, __assign(__assign({}, options), { disableOverwriteMakesOffer: true // force disableOverwriteMakesOffer(2025-10-28~)
|
|
21576
|
+
}))];
|
|
21577
|
+
case 3:
|
|
21578
|
+
_b.sent();
|
|
21579
|
+
return [2 /*return*/];
|
|
21580
|
+
}
|
|
21581
|
+
});
|
|
21582
|
+
});
|
|
21583
|
+
};
|
|
21584
|
+
/**
|
|
21585
|
+
* イベントのアプリケーションオファー編集(識別子によるイベント複数編集)
|
|
21586
|
+
* 識別子のイベントが存在しなければNotFound
|
|
21587
|
+
*/
|
|
21588
|
+
EventService.prototype.updateEventsSellerMakesOfferByIdentifier = function (
|
|
21589
|
+
/**
|
|
21590
|
+
* max: 10
|
|
21591
|
+
*/
|
|
21592
|
+
params) {
|
|
21593
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
21594
|
+
var _a, auth, endpoint, project, seller, disableAutoRetry, chevreAdmin, eventService;
|
|
21595
|
+
return __generator(this, function (_b) {
|
|
21596
|
+
switch (_b.label) {
|
|
21597
|
+
case 0:
|
|
21598
|
+
_a = this.options, auth = _a.auth, endpoint = _a.endpoint, project = _a.project, seller = _a.seller, disableAutoRetry = _a.disableAutoRetry;
|
|
21599
|
+
return [4 /*yield*/, index_1.loadChevreAdmin({ auth: auth, endpoint: endpoint, disableAutoRetry: disableAutoRetry })];
|
|
21600
|
+
case 1:
|
|
21601
|
+
chevreAdmin = _b.sent();
|
|
21602
|
+
return [4 /*yield*/, chevreAdmin.createEventInstance({
|
|
21603
|
+
project: project,
|
|
21604
|
+
seller: { id: (typeof (seller === null || seller === void 0 ? void 0 : seller.id) === 'string') ? seller.id : '' }
|
|
21605
|
+
})];
|
|
21606
|
+
case 2:
|
|
21607
|
+
eventService = _b.sent();
|
|
21608
|
+
return [4 /*yield*/, eventService.updateEventsSellerMakesOfferByIdentifier(params)];
|
|
21503
21609
|
case 3:
|
|
21504
21610
|
_b.sent();
|
|
21505
21611
|
return [2 /*return*/];
|