@cinerino/sdk 12.6.0-alpha.3 → 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.
@@ -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
- .format('YYYYMMDDTHHmm')}`;
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
- typeOf: client.factory.offerType.Offer,
123
- availableAtOrFrom: { id: AVAILABLE_AT_OR_FROM_ID }, // <-販売アプリケーションIDを指定する
124
- availabilityStarts: moment(`${today}T00:00:00+09:00`)
125
- .toDate(),
126
- availabilityEnds: moment(`${today}T14:00:00Z`)
127
- .toDate(),
128
- validFrom: moment(`${today}T00:00:00+09:00`)
129
- .toDate(),
130
- validThrough: moment(`${today}T14:00:00Z`)
131
- .toDate()
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);
@@ -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(params: IUpdateParamsByIdentifier[], options: {
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: { superEventId: superEventId, locationBranchCode: locationBranchCode, hasTicketedSeat: hasTicketedSeat, typeOf: typeOf },
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 (params, options) {
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
  * 特定の追加特性をキーにして、存在しなければ作成する
@@ -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: { superEventId: superEventId, locationBranchCode: locationBranchCode, hasTicketedSeat: hasTicketedSeat, typeOf: typeOf },
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 (params, options) {
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
  * 特定の追加特性をキーにして、存在しなければ作成する
@@ -21394,6 +21430,17 @@ var __extends = (this && this.__extends) || (function () {
21394
21430
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
21395
21431
  };
21396
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
+ };
21397
21444
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
21398
21445
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
21399
21446
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -21476,6 +21523,7 @@ var EventService = /** @class */ (function (_super) {
21476
21523
  /**
21477
21524
  * イベント冪等複数作成
21478
21525
  * イベント識別子をキーにして、存在しなければ作成する
21526
+ * アプリケーションオファーは設定されない
21479
21527
  */
21480
21528
  EventService.prototype.createIfNotExistByIdentifier = function (params, options) {
21481
21529
  return __awaiter(this, void 0, void 0, function () {
@@ -21493,7 +21541,8 @@ var EventService = /** @class */ (function (_super) {
21493
21541
  })];
21494
21542
  case 2:
21495
21543
  eventService = _b.sent();
21496
- 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
+ }))];
21497
21546
  case 3:
21498
21547
  _b.sent();
21499
21548
  return [2 /*return*/];
@@ -21505,6 +21554,7 @@ var EventService = /** @class */ (function (_super) {
21505
21554
  * 識別子によるイベント複数更新
21506
21555
  * 識別子のイベントが存在しなければNotFound
21507
21556
  * 座席有無は変更できない
21557
+ * アプリケーションオファーは変更できない
21508
21558
  */
21509
21559
  EventService.prototype.updateEventsByIdentifier = function (params, options) {
21510
21560
  return __awaiter(this, void 0, void 0, function () {
@@ -21522,7 +21572,40 @@ var EventService = /** @class */ (function (_super) {
21522
21572
  })];
21523
21573
  case 2:
21524
21574
  eventService = _b.sent();
21525
- 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)];
21526
21609
  case 3:
21527
21610
  _b.sent();
21528
21611
  return [2 /*return*/];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "12.6.0-alpha.3",
3
+ "version": "12.6.0-alpha.4",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {