@cinerino/sdk 10.14.0-alpha.3 → 10.14.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.
@@ -4533,17 +4533,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
4533
4533
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
4534
4534
  }
4535
4535
  };
4536
- var __rest = (this && this.__rest) || function (s, e) {
4537
- var t = {};
4538
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4539
- t[p] = s[p];
4540
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
4541
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
4542
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
4543
- t[p[i]] = s[p[i]];
4544
- }
4545
- return t;
4546
- };
4547
4536
  Object.defineProperty(exports, "__esModule", { value: true });
4548
4537
  exports.CustomerService = void 0;
4549
4538
  var http_status_1 = require("http-status");
@@ -4575,27 +4564,6 @@ var CustomerService = /** @class */ (function (_super) {
4575
4564
  });
4576
4565
  });
4577
4566
  };
4578
- /**
4579
- * 顧客取得
4580
- */
4581
- CustomerService.prototype.findById = function (params) {
4582
- return __awaiter(this, void 0, void 0, function () {
4583
- var id, query;
4584
- var _this = this;
4585
- return __generator(this, function (_a) {
4586
- id = params.id, query = __rest(params, ["id"]);
4587
- return [2 /*return*/, this.fetch({
4588
- uri: "/customers/" + id,
4589
- method: 'GET',
4590
- qs: query,
4591
- expectedStatusCodes: [http_status_1.OK]
4592
- })
4593
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
4594
- return [2 /*return*/, response.json()];
4595
- }); }); })];
4596
- });
4597
- });
4598
- };
4599
4567
  /**
4600
4568
  * 顧客検索
4601
4569
  */
@@ -16227,24 +16195,18 @@ var EventService = /** @class */ (function (_super) {
16227
16195
  return __generator(this, function (_a) {
16228
16196
  // separate ScreeningEventSeries(2024-10-21~)
16229
16197
  if ((params === null || params === void 0 ? void 0 : params.typeOf) === factory.eventType.ScreeningEventSeries) {
16230
- return [2 /*return*/, this.fetch({
16231
- uri: '/eventSeries',
16232
- method: 'GET',
16233
- qs: params,
16234
- expectedStatusCodes: [http_status_1.OK]
16235
- })
16236
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
16237
- var _a;
16238
- return __generator(this, function (_b) {
16239
- switch (_b.label) {
16240
- case 0:
16241
- _a = {};
16242
- return [4 /*yield*/, response.json()];
16243
- case 1: return [2 /*return*/, (_a.data = _b.sent(),
16244
- _a)];
16245
- }
16246
- });
16247
- }); })];
16198
+ throw new factory.errors.Argument('typeOf', "typeOf must be " + factory.eventType.Event + " or " + factory.eventType.ScreeningEvent);
16199
+ // return this.fetch({
16200
+ // uri: '/eventSeries',
16201
+ // method: 'GET',
16202
+ // qs: params,
16203
+ // expectedStatusCodes: [OK]
16204
+ // })
16205
+ // .then(async (response) => {
16206
+ // return {
16207
+ // data: await response.json()
16208
+ // };
16209
+ // });
16248
16210
  }
16249
16211
  else {
16250
16212
  return [2 /*return*/, this.fetch({
@@ -16270,6 +16232,26 @@ var EventService = /** @class */ (function (_super) {
16270
16232
  });
16271
16233
  });
16272
16234
  };
16235
+ /**
16236
+ * 施設コンテンツ検索
16237
+ */
16238
+ EventService.prototype.searchEventSeries = function (params) {
16239
+ return __awaiter(this, void 0, void 0, function () {
16240
+ var _this = this;
16241
+ return __generator(this, function (_a) {
16242
+ // separate ScreeningEventSeries(2024-10-21~)
16243
+ return [2 /*return*/, this.fetch({
16244
+ uri: '/eventSeries',
16245
+ method: 'GET',
16246
+ qs: params,
16247
+ expectedStatusCodes: [http_status_1.OK]
16248
+ })
16249
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
16250
+ return [2 /*return*/, response.json()];
16251
+ }); }); })];
16252
+ });
16253
+ });
16254
+ };
16273
16255
  /**
16274
16256
  * イベント検索(最小限の属性)
16275
16257
  */
@@ -41,11 +41,11 @@ async function main() {
41
41
  console.log(result);
42
42
  console.log(result.length, 'events returned');
43
43
 
44
- const eventSeries = await eventSeriesService.findById({
45
- typeOf: client.factory.eventType.ScreeningEventSeries,
46
- id: '7iri464lpxnxvgr'
47
- });
48
- console.log(eventSeries);
44
+ // const eventSeries = await eventSeriesService.findById({
45
+ // typeOf: client.factory.eventType.ScreeningEventSeries,
46
+ // id: '7iri464lpxnxvgr'
47
+ // });
48
+ // console.log(eventSeries);
49
49
  }
50
50
 
51
51
  main()
@@ -12,7 +12,7 @@ async function main() {
12
12
  seller: { id: '' }
13
13
  });
14
14
 
15
- const { data } = await eventService.search({
15
+ const data = await eventService.searchEventSeries({
16
16
  page: 1,
17
17
  limit: 100,
18
18
  typeOf: client.factory.eventType.ScreeningEventSeries,
@@ -25,13 +25,6 @@ async function main() {
25
25
  // tslint:disable-next-line:no-null-keyword
26
26
  console.dir(data.at(0), { depth: null });
27
27
  console.log(data.length, 'events');
28
-
29
- // const eventSeries = await eventService.findById({
30
- // typeOf: client.factory.eventType.ScreeningEventSeries,
31
- // id: 'xx'
32
- // });
33
- // // tslint:disable-next-line:no-null-keyword
34
- // console.dir(eventSeries);
35
28
  }
36
29
 
37
30
  main()
@@ -1,5 +1,4 @@
1
1
  import * as factory from '../../factory';
2
- export declare type ISearchedEvent<T extends factory.eventType> = T extends factory.eventType.Event ? Omit<factory.event.IEvent<factory.eventType.Event>, 'workPerformed'> : T extends factory.eventType.ScreeningEvent ? Omit<factory.event.IEvent<factory.eventType.ScreeningEvent>, 'workPerformed'> : T extends factory.eventType.ScreeningEventSeries ? factory.event.IEvent<factory.eventType.ScreeningEventSeries> : never;
3
2
  /**
4
3
  * イベントのサブカタログ検索結果
5
4
  */
@@ -1,6 +1,6 @@
1
1
  import type { ISearchWithReservationForIdResult } from '../chevreAdmin/aggregateReservation';
2
2
  import * as factory from '../factory';
3
- import { ISearchedEvent, ISearchOfferCatalogItemAvailabilityResult, ISearchOfferCatalogItemResult, ISeatAsEventOffer, ISellerMakesOffer } from './event/factory';
3
+ import { ISearchOfferCatalogItemAvailabilityResult, ISearchOfferCatalogItemResult, ISeatAsEventOffer, ISellerMakesOffer } from './event/factory';
4
4
  import { Service } from '../service';
5
5
  declare type IKeyOfProjection<T extends factory.eventType> = keyof factory.event.IEvent<T>;
6
6
  declare type IProjection<T extends factory.eventType> = {
@@ -21,7 +21,7 @@ export declare class EventService extends Service {
21
21
  * offer.seller.makesOfferをアプリケーションIDでfilterする(max:2)
22
22
  */
23
23
  sellerMakesOfferAvailableAtIn?: string[];
24
- }): Promise<ISearchedEvent<T>[]>;
24
+ }): Promise<factory.event.IEvent<T>[]>;
25
25
  /**
26
26
  * イベント集計検索
27
27
  */
@@ -64,7 +64,7 @@ export declare class EventService extends Service {
64
64
  findById<T extends factory.eventType.Event | factory.eventType.ScreeningEvent>(params: {
65
65
  id: string;
66
66
  typeOf: T;
67
- }): Promise<ISearchedEvent<T>>;
67
+ }): Promise<factory.event.IEvent<T>>;
68
68
  /**
69
69
  * 興行オファー検索
70
70
  */
@@ -142,8 +142,7 @@ var EventService = /** @class */ (function (_super) {
142
142
  id = params.id, typeOf = params.typeOf;
143
143
  if (![
144
144
  factory.eventType.Event,
145
- factory.eventType.ScreeningEvent,
146
- factory.eventType.ScreeningEventSeries
145
+ factory.eventType.ScreeningEvent
147
146
  ].includes(typeOf)) {
148
147
  throw new factory.errors.Argument('typeOf', 'invalid event type');
149
148
  }
@@ -1,6 +1,5 @@
1
1
  import * as factory from '../factory';
2
2
  import { Service } from '../service';
3
- import { ISearchedEvent } from './event/factory';
4
3
  declare type IKeyOfProjection = keyof factory.event.IEvent<factory.eventType.ScreeningEventSeries>;
5
4
  declare type IProjection = {
6
5
  [key in IKeyOfProjection]?: 0;
@@ -12,10 +11,6 @@ export declare class EventSeriesService extends Service {
12
11
  projectFields(params: Omit<factory.event.ISearchConditions<factory.eventType.ScreeningEventSeries>, 'project' | 'organizer'> & {
13
12
  typeOf: factory.eventType.ScreeningEventSeries;
14
13
  $projection?: IProjection;
15
- }): Promise<ISearchedEvent<factory.eventType.ScreeningEventSeries>[]>;
16
- findById(params: {
17
- id: string;
18
- typeOf: factory.eventType.ScreeningEventSeries;
19
- }): Promise<ISearchedEvent<factory.eventType.ScreeningEventSeries>>;
14
+ }): Promise<factory.event.IEvent<factory.eventType.ScreeningEventSeries>[]>;
20
15
  }
21
16
  export {};
@@ -53,7 +53,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
53
53
  Object.defineProperty(exports, "__esModule", { value: true });
54
54
  exports.EventSeriesService = void 0;
55
55
  var http_status_1 = require("http-status");
56
- var factory = require("../factory");
57
56
  var service_1 = require("../service");
58
57
  /**
59
58
  * 施設コンテンツサービス
@@ -79,29 +78,6 @@ var EventSeriesService = /** @class */ (function (_super) {
79
78
  });
80
79
  });
81
80
  };
82
- EventSeriesService.prototype.findById = function (params) {
83
- return __awaiter(this, void 0, void 0, function () {
84
- var id, typeOf;
85
- var _this = this;
86
- return __generator(this, function (_a) {
87
- id = params.id, typeOf = params.typeOf;
88
- if (![
89
- factory.eventType.ScreeningEventSeries
90
- ].includes(typeOf)) {
91
- throw new factory.errors.Argument('typeOf', 'invalid event type');
92
- }
93
- return [2 /*return*/, this.fetch({
94
- uri: "/eventSeries/" + encodeURIComponent(String(id)),
95
- method: 'GET',
96
- expectedStatusCodes: [http_status_1.OK],
97
- qs: { typeOf: typeOf }
98
- })
99
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
100
- return [2 /*return*/, response.json()];
101
- }); }); })];
102
- });
103
- });
104
- };
105
81
  return EventSeriesService;
106
82
  }(service_1.Service));
107
83
  exports.EventSeriesService = EventSeriesService;
@@ -1,5 +1,10 @@
1
1
  import * as factory from '../factory';
2
- import { IProjectionSearchConditions, IUnset, Service } from '../service';
2
+ import { IUnset, Service } from '../service';
3
+ export interface IProjection {
4
+ $projection?: {
5
+ [key: string]: 1;
6
+ };
7
+ }
3
8
  /**
4
9
  * 顧客サービス
5
10
  */
@@ -10,16 +15,10 @@ export declare class CustomerService extends Service {
10
15
  create(params: factory.customer.ICustomer): Promise<{
11
16
  id: string;
12
17
  }>;
13
- /**
14
- * 顧客取得
15
- */
16
- findById(params: {
17
- id: string;
18
- } & IProjectionSearchConditions): Promise<factory.customer.ICustomer>;
19
18
  /**
20
19
  * 顧客検索
21
20
  */
22
- search(params: Omit<factory.customer.ISearchConditions, 'project'> & IProjectionSearchConditions): Promise<factory.customer.ICustomer[]>;
21
+ search(params: Omit<factory.customer.ISearchConditions, 'project'> & IProjection): Promise<factory.customer.ICustomer[]>;
23
22
  /**
24
23
  * 顧客編集
25
24
  */
@@ -50,17 +50,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
50
50
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
51
  }
52
52
  };
53
- var __rest = (this && this.__rest) || function (s, e) {
54
- var t = {};
55
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
56
- t[p] = s[p];
57
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
58
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
59
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
60
- t[p[i]] = s[p[i]];
61
- }
62
- return t;
63
- };
64
53
  Object.defineProperty(exports, "__esModule", { value: true });
65
54
  exports.CustomerService = void 0;
66
55
  var http_status_1 = require("http-status");
@@ -92,27 +81,6 @@ var CustomerService = /** @class */ (function (_super) {
92
81
  });
93
82
  });
94
83
  };
95
- /**
96
- * 顧客取得
97
- */
98
- CustomerService.prototype.findById = function (params) {
99
- return __awaiter(this, void 0, void 0, function () {
100
- var id, query;
101
- var _this = this;
102
- return __generator(this, function (_a) {
103
- id = params.id, query = __rest(params, ["id"]);
104
- return [2 /*return*/, this.fetch({
105
- uri: "/customers/" + id,
106
- method: 'GET',
107
- qs: query,
108
- expectedStatusCodes: [http_status_1.OK]
109
- })
110
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
111
- return [2 /*return*/, response.json()];
112
- }); }); })];
113
- });
114
- });
115
- };
116
84
  /**
117
85
  * 顧客検索
118
86
  */
@@ -1,5 +1,4 @@
1
1
  import * as factory from '../../factory';
2
- export declare type ISearchedEvent<T extends factory.eventType> = T extends factory.eventType.Event ? Omit<factory.event.IEvent<factory.eventType.Event>, 'workPerformed' | 'aggregateEntranceGate' | 'aggregateOffer'> : T extends factory.eventType.ScreeningEvent ? Omit<factory.event.IEvent<factory.eventType.ScreeningEvent>, 'workPerformed' | 'aggregateEntranceGate' | 'aggregateOffer'> : T extends factory.eventType.ScreeningEventSeries ? factory.event.IEvent<factory.eventType.ScreeningEventSeries> : never;
3
2
  declare type IAdminSearchEventOffers = (Pick<factory.event.screeningEvent.IOffer, 'eligibleQuantity' | 'itemOffered' | 'offeredThrough' | 'typeOf' | 'unacceptedPaymentMethod'> & {
4
3
  seller: Pick<factory.event.screeningEvent.ISeller, 'id' | 'name' | 'typeOf'>;
5
4
  }) | (Pick<factory.event.screeningEvent.IOffer4COA, 'eligibleQuantity' | 'itemOffered' | 'offeredThrough' | 'typeOf' | 'unacceptedPaymentMethod'> & {
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../factory';
2
- import { IAdminSearchedEvent, ISearchedEvent } from './event/factory';
2
+ import { IAdminSearchedEvent } from './event/factory';
3
3
  import { Service } from '../service';
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;
@@ -44,7 +44,7 @@ export declare class EventService extends Service {
44
44
  findEventById<T extends factory.eventType.Event | factory.eventType.ScreeningEvent>(params: {
45
45
  id: string;
46
46
  typeOf: T;
47
- }): Promise<ISearchedEvent<T>>;
47
+ }): Promise<factory.event.IEvent<T>>;
48
48
  /**
49
49
  * イベント更新
50
50
  */
@@ -1,4 +1,4 @@
1
- import { ISearchedEvent, ISearchOfferCatalogItemAvailabilityResult, ISearchOfferCatalogItemResult, ISeatAsEventOffer, ISellerMakesOffer } from '../../chevre/event/factory';
1
+ import { ISearchOfferCatalogItemAvailabilityResult, ISearchOfferCatalogItemResult, ISeatAsEventOffer, ISellerMakesOffer } from '../../chevre/event/factory';
2
2
  import type { ISearchWithReservationForIdResult } from '../../chevreAdmin/aggregateReservation';
3
3
  import * as factory from '../../factory';
4
4
  import { IAdditionalOptions, IOptions, ISearchResult, Service } from '../../service';
@@ -100,14 +100,21 @@ export declare class EventService extends Service {
100
100
  /**
101
101
  * イベント検索
102
102
  */
103
- search<T extends factory.eventType>(params: Omit<factory.event.ISearchConditions<T>, 'project' | 'organizer' | 'typeOfIn'> & {
103
+ search<T extends factory.eventType.Event | factory.eventType.ScreeningEvent>(params: Omit<factory.event.ISearchConditions<T>, 'project' | 'organizer' | 'typeOfIn'> & {
104
104
  typeOf: T;
105
105
  $projection?: IProjection<T>;
106
106
  /**
107
107
  * offer.seller.makesOfferをアプリケーションIDでfilterする(max:2)
108
108
  */
109
109
  sellerMakesOfferAvailableAtIn?: string[];
110
- }): Promise<ISearchResult<ISearchedEvent<T>[]>>;
110
+ }): Promise<ISearchResult<factory.event.IEvent<T>[]>>;
111
+ /**
112
+ * 施設コンテンツ検索
113
+ */
114
+ searchEventSeries(params: Omit<factory.event.ISearchConditions<factory.eventType.ScreeningEventSeries>, 'project' | 'organizer' | 'typeOfIn'> & {
115
+ typeOf: factory.eventType.ScreeningEventSeries;
116
+ $projection?: IProjection<factory.eventType.ScreeningEventSeries>;
117
+ }): Promise<factory.event.IEvent<factory.eventType.ScreeningEventSeries>[]>;
111
118
  /**
112
119
  * イベント検索(最小限の属性)
113
120
  */
@@ -161,7 +168,7 @@ export declare class EventService extends Service {
161
168
  * 興行イベント
162
169
  */
163
170
  typeOf: T;
164
- }): Promise<ISearchedEvent<T>>;
171
+ }): Promise<factory.event.IEvent<T>>;
165
172
  /**
166
173
  * イベントに対する座席検索
167
174
  */
@@ -94,24 +94,18 @@ var EventService = /** @class */ (function (_super) {
94
94
  return __generator(this, function (_a) {
95
95
  // separate ScreeningEventSeries(2024-10-21~)
96
96
  if ((params === null || params === void 0 ? void 0 : params.typeOf) === factory.eventType.ScreeningEventSeries) {
97
- return [2 /*return*/, this.fetch({
98
- uri: '/eventSeries',
99
- method: 'GET',
100
- qs: params,
101
- expectedStatusCodes: [http_status_1.OK]
102
- })
103
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
104
- var _a;
105
- return __generator(this, function (_b) {
106
- switch (_b.label) {
107
- case 0:
108
- _a = {};
109
- return [4 /*yield*/, response.json()];
110
- case 1: return [2 /*return*/, (_a.data = _b.sent(),
111
- _a)];
112
- }
113
- });
114
- }); })];
97
+ throw new factory.errors.Argument('typeOf', "typeOf must be " + factory.eventType.Event + " or " + factory.eventType.ScreeningEvent);
98
+ // return this.fetch({
99
+ // uri: '/eventSeries',
100
+ // method: 'GET',
101
+ // qs: params,
102
+ // expectedStatusCodes: [OK]
103
+ // })
104
+ // .then(async (response) => {
105
+ // return {
106
+ // data: await response.json()
107
+ // };
108
+ // });
115
109
  }
116
110
  else {
117
111
  return [2 /*return*/, this.fetch({
@@ -137,6 +131,26 @@ var EventService = /** @class */ (function (_super) {
137
131
  });
138
132
  });
139
133
  };
134
+ /**
135
+ * 施設コンテンツ検索
136
+ */
137
+ EventService.prototype.searchEventSeries = function (params) {
138
+ return __awaiter(this, void 0, void 0, function () {
139
+ var _this = this;
140
+ return __generator(this, function (_a) {
141
+ // separate ScreeningEventSeries(2024-10-21~)
142
+ return [2 /*return*/, this.fetch({
143
+ uri: '/eventSeries',
144
+ method: 'GET',
145
+ qs: params,
146
+ expectedStatusCodes: [http_status_1.OK]
147
+ })
148
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
149
+ return [2 /*return*/, response.json()];
150
+ }); }); })];
151
+ });
152
+ });
153
+ };
140
154
  /**
141
155
  * イベント検索(最小限の属性)
142
156
  */
@@ -199,7 +213,6 @@ var EventService = /** @class */ (function (_super) {
199
213
  /**
200
214
  * イベント取得
201
215
  */
202
- // public async findById<T extends factory.eventType>(params: {
203
216
  EventService.prototype.findById = function (params) {
204
217
  return __awaiter(this, void 0, void 0, function () {
205
218
  var id, typeOf;
package/lib/bundle.js CHANGED
@@ -719,8 +719,7 @@ var EventService = /** @class */ (function (_super) {
719
719
  id = params.id, typeOf = params.typeOf;
720
720
  if (![
721
721
  factory.eventType.Event,
722
- factory.eventType.ScreeningEvent,
723
- factory.eventType.ScreeningEventSeries
722
+ factory.eventType.ScreeningEvent
724
723
  ].includes(typeOf)) {
725
724
  throw new factory.errors.Argument('typeOf', 'invalid event type');
726
725
  }
@@ -923,7 +922,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
923
922
  Object.defineProperty(exports, "__esModule", { value: true });
924
923
  exports.EventSeriesService = void 0;
925
924
  var http_status_1 = require("http-status");
926
- var factory = require("../factory");
927
925
  var service_1 = require("../service");
928
926
  /**
929
927
  * 施設コンテンツサービス
@@ -949,34 +947,11 @@ var EventSeriesService = /** @class */ (function (_super) {
949
947
  });
950
948
  });
951
949
  };
952
- EventSeriesService.prototype.findById = function (params) {
953
- return __awaiter(this, void 0, void 0, function () {
954
- var id, typeOf;
955
- var _this = this;
956
- return __generator(this, function (_a) {
957
- id = params.id, typeOf = params.typeOf;
958
- if (![
959
- factory.eventType.ScreeningEventSeries
960
- ].includes(typeOf)) {
961
- throw new factory.errors.Argument('typeOf', 'invalid event type');
962
- }
963
- return [2 /*return*/, this.fetch({
964
- uri: "/eventSeries/" + encodeURIComponent(String(id)),
965
- method: 'GET',
966
- expectedStatusCodes: [http_status_1.OK],
967
- qs: { typeOf: typeOf }
968
- })
969
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
970
- return [2 /*return*/, response.json()];
971
- }); }); })];
972
- });
973
- });
974
- };
975
950
  return EventSeriesService;
976
951
  }(service_1.Service));
977
952
  exports.EventSeriesService = EventSeriesService;
978
953
 
979
- },{"../factory":133,"../service":138,"http-status":372}],9:[function(require,module,exports){
954
+ },{"../service":138,"http-status":372}],9:[function(require,module,exports){
980
955
  "use strict";
981
956
  var __extends = (this && this.__extends) || (function () {
982
957
  var extendStatics = function (d, b) {
@@ -5904,17 +5879,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
5904
5879
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
5905
5880
  }
5906
5881
  };
5907
- var __rest = (this && this.__rest) || function (s, e) {
5908
- var t = {};
5909
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5910
- t[p] = s[p];
5911
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
5912
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
5913
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
5914
- t[p[i]] = s[p[i]];
5915
- }
5916
- return t;
5917
- };
5918
5882
  Object.defineProperty(exports, "__esModule", { value: true });
5919
5883
  exports.CustomerService = void 0;
5920
5884
  var http_status_1 = require("http-status");
@@ -5946,27 +5910,6 @@ var CustomerService = /** @class */ (function (_super) {
5946
5910
  });
5947
5911
  });
5948
5912
  };
5949
- /**
5950
- * 顧客取得
5951
- */
5952
- CustomerService.prototype.findById = function (params) {
5953
- return __awaiter(this, void 0, void 0, function () {
5954
- var id, query;
5955
- var _this = this;
5956
- return __generator(this, function (_a) {
5957
- id = params.id, query = __rest(params, ["id"]);
5958
- return [2 /*return*/, this.fetch({
5959
- uri: "/customers/" + id,
5960
- method: 'GET',
5961
- qs: query,
5962
- expectedStatusCodes: [http_status_1.OK]
5963
- })
5964
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
5965
- return [2 /*return*/, response.json()];
5966
- }); }); })];
5967
- });
5968
- });
5969
- };
5970
5913
  /**
5971
5914
  * 顧客検索
5972
5915
  */
@@ -16227,24 +16170,18 @@ var EventService = /** @class */ (function (_super) {
16227
16170
  return __generator(this, function (_a) {
16228
16171
  // separate ScreeningEventSeries(2024-10-21~)
16229
16172
  if ((params === null || params === void 0 ? void 0 : params.typeOf) === factory.eventType.ScreeningEventSeries) {
16230
- return [2 /*return*/, this.fetch({
16231
- uri: '/eventSeries',
16232
- method: 'GET',
16233
- qs: params,
16234
- expectedStatusCodes: [http_status_1.OK]
16235
- })
16236
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
16237
- var _a;
16238
- return __generator(this, function (_b) {
16239
- switch (_b.label) {
16240
- case 0:
16241
- _a = {};
16242
- return [4 /*yield*/, response.json()];
16243
- case 1: return [2 /*return*/, (_a.data = _b.sent(),
16244
- _a)];
16245
- }
16246
- });
16247
- }); })];
16173
+ throw new factory.errors.Argument('typeOf', "typeOf must be " + factory.eventType.Event + " or " + factory.eventType.ScreeningEvent);
16174
+ // return this.fetch({
16175
+ // uri: '/eventSeries',
16176
+ // method: 'GET',
16177
+ // qs: params,
16178
+ // expectedStatusCodes: [OK]
16179
+ // })
16180
+ // .then(async (response) => {
16181
+ // return {
16182
+ // data: await response.json()
16183
+ // };
16184
+ // });
16248
16185
  }
16249
16186
  else {
16250
16187
  return [2 /*return*/, this.fetch({
@@ -16270,6 +16207,26 @@ var EventService = /** @class */ (function (_super) {
16270
16207
  });
16271
16208
  });
16272
16209
  };
16210
+ /**
16211
+ * 施設コンテンツ検索
16212
+ */
16213
+ EventService.prototype.searchEventSeries = function (params) {
16214
+ return __awaiter(this, void 0, void 0, function () {
16215
+ var _this = this;
16216
+ return __generator(this, function (_a) {
16217
+ // separate ScreeningEventSeries(2024-10-21~)
16218
+ return [2 /*return*/, this.fetch({
16219
+ uri: '/eventSeries',
16220
+ method: 'GET',
16221
+ qs: params,
16222
+ expectedStatusCodes: [http_status_1.OK]
16223
+ })
16224
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
16225
+ return [2 /*return*/, response.json()];
16226
+ }); }); })];
16227
+ });
16228
+ });
16229
+ };
16273
16230
  /**
16274
16231
  * イベント検索(最小限の属性)
16275
16232
  */
@@ -16332,7 +16289,6 @@ var EventService = /** @class */ (function (_super) {
16332
16289
  /**
16333
16290
  * イベント取得
16334
16291
  */
16335
- // public async findById<T extends factory.eventType>(params: {
16336
16292
  EventService.prototype.findById = function (params) {
16337
16293
  return __awaiter(this, void 0, void 0, function () {
16338
16294
  var id, typeOf;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "10.14.0-alpha.3",
3
+ "version": "10.14.0",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {
@@ -92,7 +92,7 @@
92
92
  "watchify": "^3.11.1"
93
93
  },
94
94
  "dependencies": {
95
- "@chevre/factory": "4.387.0-alpha.0",
95
+ "@chevre/factory": "4.387.0-alpha.1",
96
96
  "debug": "3.2.7",
97
97
  "http-status": "1.7.4",
98
98
  "idtoken-verifier": "2.0.3",