@cinerino/sdk 12.7.0-alpha.3 → 12.7.0

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.
@@ -90,7 +90,8 @@ async function main() {
90
90
  superEventId: '7k9ayl8hc',
91
91
  hasTicketedSeat: true,
92
92
  typeOf: client.factory.eventType.ScreeningEvent,
93
- disableOverwriteMakesOffer: true
93
+ disableOverwriteMakesOffer: true,
94
+ useExtensibleOffer: false
94
95
  }
95
96
  );
96
97
  console.log('created.');
@@ -91,7 +91,8 @@ async function main() {
91
91
  superEventId: SUPER_EVENT_ID,
92
92
  hasTicketedSeat: true,
93
93
  typeOf: client.factory.eventType.ScreeningEvent,
94
- disableOverwriteMakesOffer: false
94
+ disableOverwriteMakesOffer: false,
95
+ useExtensibleOffer: false
95
96
  }
96
97
  );
97
98
  console.log('created.');
@@ -0,0 +1,84 @@
1
+ // tslint:disable:no-console
2
+ // tslint:disable-next-line:no-implicit-dependencies
3
+ import * as client from '../../../../lib/index';
4
+ import * as auth from '../../auth/authAsAdmin';
5
+
6
+ const PROJECT_ID = String(process.env.PROJECT_ID);
7
+ const SELLER_ID = '59d20831e53ebc2b4e774466';
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 eventOfferService = await (await client.loadChevreAdmin({
17
+ endpoint: <string>process.env.CHEVRE_ENDPOINT,
18
+ auth: authClient
19
+ })).createEventOfferInstance({
20
+ project: { id: PROJECT_ID },
21
+ seller: { id: SELLER_ID }
22
+ });
23
+
24
+ // const now = new Date();
25
+ // await productOfferService.createValidForMemberTierByIdentifier(
26
+ // [
27
+ // {
28
+ // identifier: OFFER_IDENTIFIER,
29
+ // validForMemberTier: { identifier: MEMBER_TIER_IDENTIFIER },
30
+ // validFrom: now,
31
+ // validThrough: now
32
+ // },
33
+ // {
34
+ // identifier: OFFER_IDENTIFIER2,
35
+ // validForMemberTier: { identifier: MEMBER_TIER_IDENTIFIER },
36
+ // validFrom: now,
37
+ // validThrough: now
38
+ // }
39
+ // ],
40
+ // {
41
+ // itemOfferedIdentifier,
42
+ // offeredById: SELLER_ID
43
+ // }
44
+ // );
45
+ // console.log('created.');
46
+
47
+ // await productOfferService.updateValidForMemberTierByIdentifier(
48
+ // [
49
+ // {
50
+ // identifier: OFFER_IDENTIFIER,
51
+ // validForMemberTier: { identifier: MEMBER_TIER_IDENTIFIER },
52
+ // validFrom: now,
53
+ // validThrough: now
54
+ // },
55
+ // {
56
+ // identifier: OFFER_IDENTIFIER2,
57
+ // validForMemberTier: { identifier: MEMBER_TIER_IDENTIFIER },
58
+ // validFrom: now,
59
+ // validThrough: now
60
+ // }
61
+ // ],
62
+ // {
63
+ // itemOfferedIdentifier,
64
+ // offeredById: SELLER_ID
65
+ // }
66
+ // );
67
+ // console.log('updated.');
68
+
69
+ const offers = await eventOfferService.findEventOffers({
70
+ limit: 10,
71
+ page: 1,
72
+ // itemOfferedId: '691511df7d9f0e2df3d6dcf7'
73
+ itemOfferedId: '69151228ad580da66c8b5068'
74
+ });
75
+ // tslint:disable-next-line:no-null-keyword
76
+ console.dir(offers, { depth: null });
77
+ console.log(offers.length, 'offers found');
78
+ }
79
+
80
+ main()
81
+ .then(() => {
82
+ console.log('success!');
83
+ })
84
+ .catch(console.error);
@@ -49,8 +49,8 @@ async function main() {
49
49
  validFrom: moment(`${today}T00:00:00+09:00`)
50
50
  .toDate(),
51
51
  validThrough: moment(`${today}T14:00:00Z`)
52
- .toDate(),
53
- identifier: '12345678x1'
52
+ .toDate()
53
+ // identifier: '12345678x1'
54
54
  },
55
55
  {
56
56
  typeOf: client.factory.offerType.Offer,
@@ -62,8 +62,8 @@ async function main() {
62
62
  validFrom: moment(`${today}T00:00:00+09:00`)
63
63
  .toDate(),
64
64
  validThrough: moment(`${today}T14:00:00Z`)
65
- .toDate(),
66
- identifier: '12345678x2'
65
+ .toDate()
66
+ // identifier: '12345678x2'
67
67
  }
68
68
  ]
69
69
  }
@@ -34,7 +34,7 @@ async function main() {
34
34
  const today = moment()
35
35
  .tz('Asia/Tokyo')
36
36
  .format('YYYY-MM-DD');
37
- const startDate = moment(`${today}T13:00:00Z`)
37
+ const startDate = moment(`${today}T14:00:00Z`)
38
38
  .toDate();
39
39
  const endDate = moment(startDate)
40
40
  .add(1, 'hour')
@@ -93,37 +93,38 @@ async function main() {
93
93
  locationBranchCode: LOCATION_BRANCH_CODE,
94
94
  superEventId: SUPER_EVENT_ID,
95
95
  hasTicketedSeat: true,
96
- typeOf: client.factory.eventType.ScreeningEvent
96
+ typeOf: client.factory.eventType.ScreeningEvent,
97
+ useExtensibleOffer: true
97
98
  }
98
99
  );
99
100
  console.log('created.');
100
101
 
101
- await adminEventService.updateEventsByIdentifier(
102
- [
103
- {
104
- identifier,
105
- doorTime: startDate,
106
- startDate,
107
- endDate,
108
- eventStatus: client.factory.eventStatusType.EventCancelled,
109
- additionalProperty: [
110
- {
111
- name: ADDITIONAL_PROPERTY_NAME,
112
- value: `update fromSamples:${moment()
113
- .format('YYYY-MM-DD HH:mm')}`
114
- }
115
- ],
116
- offers: {
117
- eligibleQuantity: { maxValue: 6 },
118
- itemOffered: { id: EVENT_SERVICE_ID }
119
- }
120
- }
121
- ],
122
- {
123
- typeOf: client.factory.eventType.ScreeningEvent
124
- }
125
- );
126
- console.log('updated.');
102
+ // await adminEventService.updateEventsByIdentifier(
103
+ // [
104
+ // {
105
+ // identifier,
106
+ // doorTime: startDate,
107
+ // startDate,
108
+ // endDate,
109
+ // eventStatus: client.factory.eventStatusType.EventCancelled,
110
+ // additionalProperty: [
111
+ // {
112
+ // name: ADDITIONAL_PROPERTY_NAME,
113
+ // value: `update fromSamples:${moment()
114
+ // .format('YYYY-MM-DD HH:mm')}`
115
+ // }
116
+ // ],
117
+ // offers: {
118
+ // eligibleQuantity: { maxValue: 6 },
119
+ // itemOffered: { id: EVENT_SERVICE_ID }
120
+ // }
121
+ // }
122
+ // ],
123
+ // {
124
+ // typeOf: client.factory.eventType.ScreeningEvent
125
+ // }
126
+ // );
127
+ // console.log('updated.');
127
128
  }
128
129
 
129
130
  main()
@@ -5,6 +5,7 @@ import * as client from '../../../../lib/index';
5
5
  import { auth } from '../../auth/clientCredentials';
6
6
 
7
7
  const project = { id: String(process.env.PROJECT_ID) };
8
+ const { EVENT_ID } = process.env;
8
9
  const profile: client.factory.person.IProfile = {
9
10
  email: <string>process.env.TEST_PROFILE_EMAIL,
10
11
  givenName: 'Taro ##\n##\r##\n\n\n##\r\r\r##\r\n\r\n\r\n##',
@@ -77,7 +78,8 @@ async function main() {
77
78
  inSessionThrough: moment()
78
79
  .add(1, 'week')
79
80
  .toDate(),
80
- eventStatuses: [client.factory.eventStatusType.EventScheduled]
81
+ eventStatuses: [client.factory.eventStatusType.EventScheduled],
82
+ ...(typeof EVENT_ID === 'string') ? { id: { $eq: EVENT_ID } } : undefined
81
83
  });
82
84
  console.log(searchScreeningEventsResult.data.length, 'events found');
83
85
 
@@ -367,7 +369,10 @@ async function authorizeSeatReservationByEvent(params: {
367
369
  const seatReservationAuth = <IAuthorizeReservationAction>await offerService.authorizeEventService({
368
370
  object: {
369
371
  reservationFor: {
370
- id: screeningEvent.id
372
+ id: screeningEvent.id,
373
+ offers: {
374
+ identifier: '20251113eventOffer' // 拡張オファー使用の場合、オファーコードを指定する
375
+ }
371
376
  },
372
377
  acceptedOffer: selectedSeatOffers.map((o) => {
373
378
  return {
@@ -4,15 +4,19 @@ import { auth } from '../../auth/clientCredentials';
4
4
  import { authorizeCreditCardAsyncForcibly } from './authorizeCreditCardAsyncForcibly';
5
5
 
6
6
  const project = { id: String(process.env.PROJECT_ID) };
7
+ const {
8
+ /**
9
+ * 予約対象イベントID
10
+ */
11
+ EVENT_ID
12
+ } = process.env;
7
13
 
8
14
  /**
9
15
  * 出力メンバーシップを持つ決済サービスID
10
16
  */
11
17
  const PAYMENT_SERVICE_ID = '64f193ad5e79fe8a06ca3156';
12
- /**
13
- * 予約対象イベントID
14
- */
15
- const EVENT_ID = 'blxd1gryp';
18
+ // const PAYMENT_SERVICE_ID = '5f9a4fed4f3709000abe6415';
19
+
16
20
  const profile = {
17
21
  email: <string>process.env.TEST_PROFILE_EMAIL,
18
22
  givenName: 'Taro',
@@ -47,6 +51,10 @@ const creditCard = {
47
51
  */
48
52
  // tslint:disable-next-line:max-func-body-length
49
53
  async function main() {
54
+ if (typeof EVENT_ID !== 'string') {
55
+ throw new Error('environment variables required');
56
+ }
57
+
50
58
  const authClient = await auth();
51
59
 
52
60
  const sellerService = new (await client.loadService()).Seller({
@@ -151,6 +159,11 @@ async function main() {
151
159
  ticketedPermit: { issuedThrough: { id: PAYMENT_SERVICE_ID } },
152
160
  purpose: { id: transaction.id, typeOf: client.factory.transactionType.PlaceOrder }
153
161
  });
162
+ // ↓決済方法チケットでも承認可能か?
163
+ // const { ticketToken } = await paymentService.issueTicketThroughCreditCard({
164
+ // ticketedInvoice: { issuedThrough: { id: PAYMENT_SERVICE_ID } },
165
+ // purpose: { id: transaction.id, typeOf: client.factory.transactionType.PlaceOrder }
166
+ // });
154
167
  console.log('ticket issued. ticketToken:', ticketToken);
155
168
 
156
169
  await wait(3000);
@@ -3,6 +3,12 @@ import * as client from '../../../../lib/index';
3
3
  import * as auth from '../../auth/authAsAdmin';
4
4
 
5
5
  const project = { id: String(process.env.PROJECT_ID) };
6
+ const {
7
+ /**
8
+ * 予約対象イベントID
9
+ */
10
+ EVENT_ID
11
+ } = process.env;
6
12
 
7
13
  const profile = {
8
14
  email: <string>process.env.TEST_PROFILE_EMAIL,
@@ -31,6 +37,10 @@ const profile = {
31
37
  */
32
38
  // tslint:disable-next-line:max-func-body-length
33
39
  async function main() {
40
+ if (typeof EVENT_ID !== 'string') {
41
+ throw new Error('environment variables required');
42
+ }
43
+
34
44
  const authClient = await auth.login();
35
45
  await authClient.refreshAccessToken();
36
46
  const loginTicket = authClient.verifyIdToken({});
@@ -97,7 +107,7 @@ async function main() {
97
107
  await offerService.authorizeEventService({
98
108
  object: {
99
109
  reservationFor: {
100
- id: 'blxd1gryb'
110
+ id: EVENT_ID
101
111
  },
102
112
  acceptedOffer: [{
103
113
  id: 'bkpnwjw1w', // メンバーシップ適用オファーを指定
@@ -22,14 +22,7 @@ export interface IUpdateEventSellerMakesOfferParamsByIdentifier {
22
22
  identifier: string;
23
23
  offers: {
24
24
  seller: {
25
- makesOffer: (factory.event.screeningEvent.ISellerMakesOffer4create & {
26
- /**
27
- * アプリケーションオファーコード
28
- * イベント内でユニーク必須
29
- * 8-32文字の^[0-9a-zA-Z]+$
30
- */
31
- identifier: string;
32
- })[];
25
+ makesOffer: (factory.event.screeningEvent.ISellerMakesOffer4create & {})[];
33
26
  };
34
27
  };
35
28
  location?: never;
@@ -58,6 +51,10 @@ export declare class EventService extends Service {
58
51
  hasTicketedSeat: boolean;
59
52
  typeOf: factory.eventType.ScreeningEvent;
60
53
  disableOverwriteMakesOffer: boolean;
54
+ /**
55
+ * 拡張オファーを使用する
56
+ */
57
+ useExtensibleOffer: boolean;
61
58
  }): Promise<void>;
62
59
  /**
63
60
  * 識別子によるイベント複数更新
@@ -68,11 +68,11 @@ var EventService = /** @class */ (function (_super) {
68
68
  */
69
69
  EventService.prototype.createIfNotExistByIdentifier = function (params, options) {
70
70
  return __awaiter(this, void 0, void 0, function () {
71
- var superEventId, locationBranchCode, hasTicketedSeat, typeOf, disableOverwriteMakesOffer;
71
+ var superEventId, locationBranchCode, hasTicketedSeat, typeOf, disableOverwriteMakesOffer, useExtensibleOffer;
72
72
  return __generator(this, function (_a) {
73
73
  switch (_a.label) {
74
74
  case 0:
75
- superEventId = options.superEventId, locationBranchCode = options.locationBranchCode, hasTicketedSeat = options.hasTicketedSeat, typeOf = options.typeOf, disableOverwriteMakesOffer = options.disableOverwriteMakesOffer;
75
+ superEventId = options.superEventId, locationBranchCode = options.locationBranchCode, hasTicketedSeat = options.hasTicketedSeat, typeOf = options.typeOf, disableOverwriteMakesOffer = options.disableOverwriteMakesOffer, useExtensibleOffer = options.useExtensibleOffer;
76
76
  return [4 /*yield*/, this.fetch({
77
77
  uri: '/events',
78
78
  method: 'POST',
@@ -80,7 +80,9 @@ var EventService = /** @class */ (function (_super) {
80
80
  qs: {
81
81
  superEventId: superEventId, locationBranchCode: locationBranchCode, hasTicketedSeat: hasTicketedSeat, typeOf: typeOf,
82
82
  // support disableOverwriteMakesOffer(2025-10-28~)
83
- disableOverwriteMakesOffer: disableOverwriteMakesOffer === true
83
+ disableOverwriteMakesOffer: disableOverwriteMakesOffer === true,
84
+ // support useExtensibleOffer(2025-11-12~)
85
+ useExtensibleOffer: useExtensibleOffer === true
84
86
  },
85
87
  expectedStatusCodes: [http_status_1.NO_CONTENT]
86
88
  })];
@@ -0,0 +1,42 @@
1
+ import * as factory from '../factory';
2
+ import { Service } from '../service';
3
+ export interface IFindParams {
4
+ /**
5
+ * max: 20
6
+ */
7
+ limit: number;
8
+ page: number;
9
+ /**
10
+ * イベントID
11
+ */
12
+ itemOfferedId?: string;
13
+ /**
14
+ * イベントIDリスト
15
+ * max length: 10
16
+ */
17
+ itemOfferedIds?: string[];
18
+ /**
19
+ * イベントオファーコードリスト
20
+ * max length: 10
21
+ */
22
+ identifiers?: string[];
23
+ id?: string;
24
+ }
25
+ /**
26
+ * 拡張イベントオファーサービス
27
+ */
28
+ export declare class EventOfferService extends Service {
29
+ createEventOfferByIdentifier(
30
+ /**
31
+ * max: 20
32
+ */
33
+ params: factory.eventOffer.IEventOffer[], options: {}): Promise<void>;
34
+ updateEventOfferByIdentifier(
35
+ /**
36
+ * max: 20
37
+ */
38
+ params: factory.eventOffer.IEventOffer[], options: {}): Promise<void>;
39
+ findEventOffers(params: IFindParams): Promise<(Omit<factory.eventOffer.IEventOffer, 'project'> & {
40
+ id: string;
41
+ })[]>;
42
+ }
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
+ return new (P || (P = Promise))(function (resolve, reject) {
20
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
24
+ });
25
+ };
26
+ var __generator = (this && this.__generator) || function (thisArg, body) {
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
+ function verb(n) { return function (v) { return step([n, v]); }; }
30
+ function step(op) {
31
+ if (f) throw new TypeError("Generator is already executing.");
32
+ while (_) try {
33
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
+ if (y = 0, t) op = [op[0] & 2, t.value];
35
+ switch (op[0]) {
36
+ case 0: case 1: t = op; break;
37
+ case 4: _.label++; return { value: op[1], done: false };
38
+ case 5: _.label++; y = op[1]; op = [0]; continue;
39
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
+ default:
41
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
+ if (t[2]) _.ops.pop();
46
+ _.trys.pop(); continue;
47
+ }
48
+ op = body.call(thisArg, _);
49
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
+ }
52
+ };
53
+ Object.defineProperty(exports, "__esModule", { value: true });
54
+ exports.EventOfferService = void 0;
55
+ var http_status_1 = require("http-status");
56
+ var service_1 = require("../service");
57
+ var BASE_URI = '/eventOffers';
58
+ /**
59
+ * 拡張イベントオファーサービス
60
+ */
61
+ var EventOfferService = /** @class */ (function (_super) {
62
+ __extends(EventOfferService, _super);
63
+ function EventOfferService() {
64
+ return _super !== null && _super.apply(this, arguments) || this;
65
+ }
66
+ EventOfferService.prototype.createEventOfferByIdentifier = function (
67
+ /**
68
+ * max: 20
69
+ */
70
+ params, options) {
71
+ return __awaiter(this, void 0, void 0, function () {
72
+ var _a;
73
+ return __generator(this, function (_b) {
74
+ switch (_b.label) {
75
+ case 0:
76
+ _a = options;
77
+ return [4 /*yield*/, this.fetch({
78
+ uri: BASE_URI,
79
+ method: 'POST',
80
+ body: params,
81
+ qs: {},
82
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
83
+ })];
84
+ case 1:
85
+ _b.sent();
86
+ return [2 /*return*/];
87
+ }
88
+ });
89
+ });
90
+ };
91
+ EventOfferService.prototype.updateEventOfferByIdentifier = function (
92
+ /**
93
+ * max: 20
94
+ */
95
+ params, options) {
96
+ return __awaiter(this, void 0, void 0, function () {
97
+ var _a;
98
+ return __generator(this, function (_b) {
99
+ switch (_b.label) {
100
+ case 0:
101
+ _a = options;
102
+ return [4 /*yield*/, this.fetch({
103
+ uri: BASE_URI,
104
+ method: 'PUT',
105
+ body: params,
106
+ qs: {},
107
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
108
+ })];
109
+ case 1:
110
+ _b.sent();
111
+ return [2 /*return*/];
112
+ }
113
+ });
114
+ });
115
+ };
116
+ EventOfferService.prototype.findEventOffers = function (params) {
117
+ return __awaiter(this, void 0, void 0, function () {
118
+ var _this = this;
119
+ return __generator(this, function (_a) {
120
+ return [2 /*return*/, this.fetch({
121
+ uri: BASE_URI,
122
+ method: 'GET',
123
+ qs: params,
124
+ expectedStatusCodes: [http_status_1.OK]
125
+ })
126
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
127
+ return [2 /*return*/, response.json()];
128
+ }); }); })];
129
+ });
130
+ });
131
+ };
132
+ return EventOfferService;
133
+ }(service_1.Service));
134
+ exports.EventOfferService = EventOfferService;
@@ -4,6 +4,7 @@ import type { AuthorizationService } from './chevreAdmin/authorization';
4
4
  import type { CreativeWorkService } from './chevreAdmin/creativeWork';
5
5
  import type { CustomerService } from './chevreAdmin/customer';
6
6
  import type { EventService } from './chevreAdmin/event';
7
+ import type { EventOfferService } from './chevreAdmin/eventOffer';
7
8
  import type { EventSeriesService } from './chevreAdmin/eventSeries';
8
9
  import type { MeService } from './chevreAdmin/me';
9
10
  import type { MemberService } from './chevreAdmin/member';
@@ -48,6 +49,13 @@ export declare namespace service {
48
49
  namespace Event {
49
50
  let svc: typeof EventService | undefined;
50
51
  }
52
+ /**
53
+ * イベントオファーサービス
54
+ */
55
+ type EventOffer = EventOfferService;
56
+ namespace EventOffer {
57
+ let svc: typeof EventOfferService | undefined;
58
+ }
51
59
  /**
52
60
  * 施設コンテンツサービス
53
61
  */
@@ -166,6 +174,7 @@ export declare class ChevreAdmin {
166
174
  createCreativeWorkInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CreativeWorkService>;
167
175
  createCustomerInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CustomerService>;
168
176
  createEventInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventService>;
177
+ createEventOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventOfferService>;
169
178
  createEventSeriesInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventSeriesService>;
170
179
  createMeInstance(): Promise<MeService>;
171
180
  createMemberInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<MemberService>;
@@ -62,6 +62,9 @@ var service;
62
62
  var Event;
63
63
  (function (Event) {
64
64
  })(Event = service.Event || (service.Event = {}));
65
+ var EventOffer;
66
+ (function (EventOffer) {
67
+ })(EventOffer = service.EventOffer || (service.EventOffer = {}));
65
68
  var EventSeries;
66
69
  (function (EventSeries) {
67
70
  })(EventSeries = service.EventSeries || (service.EventSeries = {}));
@@ -186,6 +189,23 @@ var ChevreAdmin = /** @class */ (function () {
186
189
  });
187
190
  });
188
191
  };
192
+ ChevreAdmin.prototype.createEventOfferInstance = function (params) {
193
+ return __awaiter(this, void 0, void 0, function () {
194
+ var _a;
195
+ return __generator(this, function (_b) {
196
+ switch (_b.label) {
197
+ case 0:
198
+ if (!(service.EventOffer.svc === undefined)) return [3 /*break*/, 2];
199
+ _a = service.EventOffer;
200
+ return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/eventOffer'); })];
201
+ case 1:
202
+ _a.svc = (_b.sent()).EventOfferService;
203
+ _b.label = 2;
204
+ case 2: return [2 /*return*/, new service.EventOffer.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
205
+ }
206
+ });
207
+ });
208
+ };
189
209
  ChevreAdmin.prototype.createEventSeriesInstance = function (params) {
190
210
  return __awaiter(this, void 0, void 0, function () {
191
211
  var _a;
@@ -11,7 +11,6 @@ export declare class EventService extends Service {
11
11
  /**
12
12
  * イベント冪等複数作成
13
13
  * イベント識別子をキーにして、存在しなければ作成する
14
- * アプリケーションオファーは設定されない
15
14
  */
16
15
  createIfNotExistByIdentifier(params: ICreateParamsByIdentifier[], options: {
17
16
  /**
@@ -27,12 +26,15 @@ export declare class EventService extends Service {
27
26
  */
28
27
  hasTicketedSeat: boolean;
29
28
  typeOf: factory.eventType.ScreeningEvent;
29
+ /**
30
+ * 拡張オファーを使用する
31
+ */
32
+ useExtensibleOffer?: boolean;
30
33
  }): Promise<void>;
31
34
  /**
32
35
  * 識別子によるイベント複数更新
33
36
  * 識別子のイベントが存在しなければNotFound
34
37
  * 座席有無は変更できない
35
- * アプリケーションオファーは変更できない
36
38
  */
37
39
  updateEventsByIdentifier(params: IUpdateParamsByIdentifier[], options: {
38
40
  typeOf: factory.eventType.ScreeningEvent;