@cinerino/sdk 12.12.0-alpha.3 → 12.12.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.
@@ -152,13 +152,6 @@ async function authorizeSeatReservationByEvent(params: {
152
152
  seller: { id: '' }
153
153
  });
154
154
 
155
- const eventOfferService = await (await client.loadCloudSearch({
156
- endpoint: <string>process.env.API_ENDPOINT,
157
- auth: await auth()
158
- })).createEventOfferInstance({
159
- project,
160
- seller: { id: '' }
161
- });
162
155
  const screeningEvent = params.event;
163
156
  const transaction = params.transaction;
164
157
 
@@ -229,6 +222,13 @@ async function authorizeSeatReservationByEvent(params: {
229
222
  if (screeningEvent.offers?.typeOf === client.factory.offerType.AggregateOffer) {
230
223
  // イベントに対するイベントオファー検索
231
224
  await wait(3000);
225
+ const eventOfferService = await (await client.loadCloudSearch({
226
+ endpoint: <string>process.env.API_ENDPOINT,
227
+ auth: await auth()
228
+ })).createEventOfferInstance({
229
+ project,
230
+ seller: { id: screeningEvent.offers.seller.id }
231
+ });
232
232
  const eventOffers = await eventOfferService.findEventOffers({
233
233
  limit: 20,
234
234
  page: 1,
@@ -327,13 +327,6 @@ async function authorizeSeatReservationByEvent(params: {
327
327
  seller: { id: '' }
328
328
  });
329
329
 
330
- const eventOfferService = await (await client.loadCloudSearch({
331
- endpoint: <string>process.env.API_ENDPOINT,
332
- auth: await auth()
333
- })).createEventOfferInstance({
334
- project,
335
- seller: { id: '' }
336
- });
337
330
  const screeningEvent = params.event;
338
331
  const transaction = params.transaction;
339
332
 
@@ -404,6 +397,13 @@ async function authorizeSeatReservationByEvent(params: {
404
397
  if (screeningEvent.offers?.typeOf === client.factory.offerType.AggregateOffer) {
405
398
  // イベントに対するイベントオファー検索
406
399
  await wait(3000);
400
+ const eventOfferService = await (await client.loadCloudSearch({
401
+ endpoint: <string>process.env.API_ENDPOINT,
402
+ auth: await auth()
403
+ })).createEventOfferInstance({
404
+ project,
405
+ seller: { id: screeningEvent.offers.seller.id }
406
+ });
407
407
  const eventOffers = await eventOfferService.findEventOffers({
408
408
  limit: 20,
409
409
  page: 1,
@@ -186,7 +186,7 @@ var PlaceService = /** @class */ (function (_super) {
186
186
  return __generator(this, function (_a) {
187
187
  limit = params.limit, page = params.page, movieTheaterCode = params.movieTheaterCode, roomCode = params.roomCode;
188
188
  return [2 /*return*/, this.fetch({
189
- uri: '/roomSections',
189
+ uri: '/seatSections',
190
190
  method: 'GET',
191
191
  qs: { limit: limit, page: page, movieTheaterCode: movieTheaterCode, roomCode: roomCode },
192
192
  expectedStatusCodes: [http_status_1.OK]
@@ -72,7 +72,7 @@ var PlaceService = /** @class */ (function (_super) {
72
72
  return __generator(this, function (_a) {
73
73
  limit = params.limit, page = params.page, movieTheaterCode = params.movieTheaterCode, roomCode = params.roomCode;
74
74
  return [2 /*return*/, this.fetch({
75
- uri: '/roomSections',
75
+ uri: '/seatSections',
76
76
  method: 'GET',
77
77
  qs: { limit: limit, page: page, movieTheaterCode: movieTheaterCode, roomCode: roomCode },
78
78
  expectedStatusCodes: [http_status_1.OK]
package/lib/bundle.js CHANGED
@@ -1465,7 +1465,7 @@ var PlaceService = /** @class */ (function (_super) {
1465
1465
  return __generator(this, function (_a) {
1466
1466
  limit = params.limit, page = params.page, movieTheaterCode = params.movieTheaterCode, roomCode = params.roomCode;
1467
1467
  return [2 /*return*/, this.fetch({
1468
- uri: '/roomSections',
1468
+ uri: '/seatSections',
1469
1469
  method: 'GET',
1470
1470
  qs: { limit: limit, page: page, movieTheaterCode: movieTheaterCode, roomCode: roomCode },
1471
1471
  expectedStatusCodes: [http_status_1.OK]
@@ -25960,7 +25960,7 @@ var PlaceService = /** @class */ (function (_super) {
25960
25960
  return __generator(this, function (_a) {
25961
25961
  limit = params.limit, page = params.page, movieTheaterCode = params.movieTheaterCode, roomCode = params.roomCode;
25962
25962
  return [2 /*return*/, this.fetch({
25963
- uri: '/roomSections',
25963
+ uri: '/seatSections',
25964
25964
  method: 'GET',
25965
25965
  qs: { limit: limit, page: page, movieTheaterCode: movieTheaterCode, roomCode: roomCode },
25966
25966
  expectedStatusCodes: [http_status_1.OK]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "12.12.0-alpha.3",
3
+ "version": "12.12.0-alpha.4",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {