@cinerino/sdk 12.5.0-alpha.9 → 12.6.0-alpha.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.
Files changed (33) hide show
  1. package/example/src/chevre/admin/adminCreateNotesIfNotExistByIdentifier.ts +3 -3
  2. package/example/src/chevre/admin/findPaymentServices.ts +45 -0
  3. package/example/src/chevre/admin/findProductHasOfferCatalog.ts +35 -0
  4. package/example/src/chevre/admin/findProducts.ts +48 -0
  5. package/example/src/chevre/default/findCategoryCodes.ts +42 -0
  6. package/example/src/chevre/default/searchEvents.ts +12 -28
  7. package/example/src/cloud/admin/adminEventsByIdentifier.ts +145 -0
  8. package/lib/abstract/chevre/categoryCode.d.ts +12 -3
  9. package/lib/abstract/chevre/categoryCode.js +1 -1
  10. package/lib/abstract/chevreAdmin/event.d.ts +1 -1
  11. package/lib/abstract/chevreAdmin/event.js +1 -1
  12. package/lib/abstract/chevreAdmin/note.d.ts +2 -6
  13. package/lib/abstract/chevreAdmin/paymentService.d.ts +62 -0
  14. package/lib/abstract/chevreAdmin/paymentService.js +90 -0
  15. package/lib/abstract/chevreAdmin/product.d.ts +94 -2
  16. package/lib/abstract/chevreAdmin/product.js +45 -1
  17. package/lib/abstract/chevreAdmin.d.ts +9 -0
  18. package/lib/abstract/chevreAdmin.js +20 -0
  19. package/lib/abstract/chevreConsole/categoryCode.d.ts +80 -7
  20. package/lib/abstract/chevreConsole/categoryCode.js +96 -3
  21. package/lib/abstract/chevreConsole/creativeWork.d.ts +4 -6
  22. package/lib/abstract/chevreConsole/creativeWork.js +13 -25
  23. package/lib/abstract/chevreConsole/offerCatalog.d.ts +6 -3
  24. package/lib/abstract/chevreConsole/offerCatalog.js +13 -8
  25. package/lib/abstract/chevreConsole/paymentService.d.ts +0 -13
  26. package/lib/abstract/chevreConsole/paymentService.js +23 -19
  27. package/lib/abstract/chevreConsole/product.d.ts +0 -5
  28. package/lib/abstract/chevreConsole/product.js +15 -20
  29. package/lib/abstract/chevreConsole/productModel.d.ts +6 -1
  30. package/lib/abstract/cloud/admin/event.d.ts +1 -1
  31. package/lib/abstract/cloud/admin/event.js +1 -1
  32. package/lib/bundle.js +951 -710
  33. package/package.json +2 -2
@@ -1,13 +1,105 @@
1
1
  import * as factory from '../factory';
2
2
  import { Service } from '../service';
3
- export declare type IProductWithoutCredentials = Omit<factory.product.IProduct, 'availableChannel'>;
4
- export declare type ISearchProductsResult = IProductWithoutCredentials;
3
+ declare type IProductAsFindResult = Pick<factory.product.IProduct, 'description' | 'id' | 'name' | 'productID' | 'serviceOutput' | 'serviceType' | 'typeOf'> & {
4
+ /**
5
+ * プロダクトID
6
+ */
7
+ id: string;
8
+ project?: never;
9
+ hasOfferCatalog?: never;
10
+ additionalProperty?: never;
11
+ };
12
+ export interface IFindParams {
13
+ /**
14
+ * max: 20
15
+ */
16
+ limit: number;
17
+ /**
18
+ * min: 1
19
+ */
20
+ page: number;
21
+ sortByProductID?: factory.sortType;
22
+ id?: string;
23
+ ids?: string[];
24
+ typeOf?: factory.product.ProductType;
25
+ typeOfs?: factory.product.ProductType[];
26
+ /**
27
+ * カタログID
28
+ */
29
+ hasOfferCatalogId?: string;
30
+ /**
31
+ * 名称部分一致
32
+ */
33
+ nameRegex?: string;
34
+ /**
35
+ * プロダクトコード完全一致
36
+ */
37
+ productID?: string;
38
+ /**
39
+ * プロダクトコード部分一致
40
+ */
41
+ productIDRegex?: string;
42
+ /**
43
+ * 興行区分コード
44
+ */
45
+ serviceTypeCodeValue?: string;
46
+ /**
47
+ * ペイメントカードの場合、通貨区分
48
+ */
49
+ serviceOutputAmountCurrency?: string;
50
+ additionalPropertyName?: string;
51
+ }
52
+ interface IFindProductHasOfferCatalogParams {
53
+ /**
54
+ * max: 20
55
+ */
56
+ limit: number;
57
+ /**
58
+ * min: 1
59
+ */
60
+ page: number;
61
+ /**
62
+ * プロダクトIDリスト
63
+ */
64
+ itemOfferedIds?: string[];
65
+ }
66
+ interface IOfferCatalogAsFindResult {
67
+ /**
68
+ * カタログID
69
+ */
70
+ id: string;
71
+ /**
72
+ * 対象オファー
73
+ */
74
+ aggregateElement: {
75
+ itemOffered: {
76
+ /**
77
+ * プロダクトID
78
+ */
79
+ id: string;
80
+ typeOf: factory.product.ProductType;
81
+ };
82
+ };
83
+ }
5
84
  /**
6
85
  * プロダクトサービス
7
86
  */
8
87
  export declare class ProductService extends Service {
9
88
  /**
10
89
  * プロダクトコードによる冪等置換
90
+ * 在庫管理ロールが必要
11
91
  */
12
92
  upsertByProductId(params: factory.product.ICreateParams[]): Promise<void>;
93
+ /**
94
+ * プロダクト検索
95
+ * 公開属性のみ
96
+ * 管理者のプロダクト読取権限で使用可能
97
+ * 2025-10-14~
98
+ */
99
+ findProducts(params: IFindParams): Promise<IProductAsFindResult[]>;
100
+ /**
101
+ * プロダクトオファーカタログ検索
102
+ */
103
+ findProductHasOfferCatalog(params: IFindProductHasOfferCatalogParams): Promise<IOfferCatalogAsFindResult[]>;
13
104
  }
105
+ export {};
@@ -54,6 +54,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
54
54
  exports.ProductService = void 0;
55
55
  var http_status_1 = require("http-status");
56
56
  var service_1 = require("../service");
57
+ var BASE_URI = '/products';
58
+ var BASE_URI_HAS_OFFER_CATALOG = '/productHasOfferCatalog';
57
59
  /**
58
60
  * プロダクトサービス
59
61
  */
@@ -64,13 +66,14 @@ var ProductService = /** @class */ (function (_super) {
64
66
  }
65
67
  /**
66
68
  * プロダクトコードによる冪等置換
69
+ * 在庫管理ロールが必要
67
70
  */
68
71
  ProductService.prototype.upsertByProductId = function (params) {
69
72
  return __awaiter(this, void 0, void 0, function () {
70
73
  return __generator(this, function (_a) {
71
74
  switch (_a.label) {
72
75
  case 0: return [4 /*yield*/, this.fetch({
73
- uri: '/products',
76
+ uri: BASE_URI,
74
77
  method: 'PUT',
75
78
  body: params,
76
79
  expectedStatusCodes: [http_status_1.NO_CONTENT]
@@ -82,6 +85,47 @@ var ProductService = /** @class */ (function (_super) {
82
85
  });
83
86
  });
84
87
  };
88
+ /**
89
+ * プロダクト検索
90
+ * 公開属性のみ
91
+ * 管理者のプロダクト読取権限で使用可能
92
+ * 2025-10-14~
93
+ */
94
+ ProductService.prototype.findProducts = function (params) {
95
+ return __awaiter(this, void 0, void 0, function () {
96
+ var _this = this;
97
+ return __generator(this, function (_a) {
98
+ return [2 /*return*/, this.fetch({
99
+ uri: BASE_URI,
100
+ method: 'GET',
101
+ qs: params,
102
+ expectedStatusCodes: [http_status_1.OK]
103
+ })
104
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
105
+ return [2 /*return*/, response.json()];
106
+ }); }); })];
107
+ });
108
+ });
109
+ };
110
+ /**
111
+ * プロダクトオファーカタログ検索
112
+ */
113
+ ProductService.prototype.findProductHasOfferCatalog = function (params) {
114
+ return __awaiter(this, void 0, void 0, function () {
115
+ var _this = this;
116
+ return __generator(this, function (_a) {
117
+ return [2 /*return*/, this.fetch({
118
+ uri: BASE_URI_HAS_OFFER_CATALOG,
119
+ method: 'GET',
120
+ qs: params,
121
+ expectedStatusCodes: [http_status_1.OK]
122
+ })
123
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
124
+ return [2 /*return*/, response.json()];
125
+ }); }); })];
126
+ });
127
+ });
128
+ };
85
129
  return ProductService;
86
130
  }(service_1.Service));
87
131
  exports.ProductService = ProductService;
@@ -13,6 +13,7 @@ import type { OfferService } from './chevreAdmin/offer';
13
13
  import type { OfferCatalogService } from './chevreAdmin/offerCatalog';
14
14
  import type { OfferCatalogItemService } from './chevreAdmin/offerCatalogItem';
15
15
  import type { OrderService } from './chevreAdmin/order';
16
+ import type { PaymentProductService } from './chevreAdmin/paymentService';
16
17
  import type { ProductService } from './chevreAdmin/product';
17
18
  import type { ProductOfferService } from './chevreAdmin/productOffer';
18
19
  import type { ReservationService } from './chevreAdmin/reservation';
@@ -89,6 +90,13 @@ export declare namespace service {
89
90
  namespace Order {
90
91
  let svc: typeof OrderService | undefined;
91
92
  }
93
+ /**
94
+ * 決済商品サービス
95
+ */
96
+ type PaymentProduct = PaymentProductService;
97
+ namespace PaymentProduct {
98
+ let svc: typeof PaymentProductService | undefined;
99
+ }
92
100
  /**
93
101
  * プロダクトサービス
94
102
  */
@@ -164,6 +172,7 @@ export declare class ChevreAdmin {
164
172
  createNoteInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<NoteService>;
165
173
  createNoteAboutOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<NoteAboutOrderService>;
166
174
  createOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OrderService>;
175
+ createPaymentProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentProductService>;
167
176
  createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
168
177
  createProductOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductOfferService>;
169
178
  createReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ReservationService>;
@@ -80,6 +80,9 @@ var service;
80
80
  var Order;
81
81
  (function (Order) {
82
82
  })(Order = service.Order || (service.Order = {}));
83
+ var PaymentProduct;
84
+ (function (PaymentProduct) {
85
+ })(PaymentProduct = service.PaymentProduct || (service.PaymentProduct = {}));
83
86
  var Product;
84
87
  (function (Product) {
85
88
  })(Product = service.Product || (service.Product = {}));
@@ -285,6 +288,23 @@ var ChevreAdmin = /** @class */ (function () {
285
288
  });
286
289
  });
287
290
  };
291
+ ChevreAdmin.prototype.createPaymentProductInstance = function (params) {
292
+ return __awaiter(this, void 0, void 0, function () {
293
+ var _a;
294
+ return __generator(this, function (_b) {
295
+ switch (_b.label) {
296
+ case 0:
297
+ if (!(service.PaymentProduct.svc === undefined)) return [3 /*break*/, 2];
298
+ _a = service.PaymentProduct;
299
+ return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/paymentService'); })];
300
+ case 1:
301
+ _a.svc = (_b.sent()).PaymentProductService;
302
+ _b.label = 2;
303
+ case 2: return [2 /*return*/, new service.PaymentProduct.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
304
+ }
305
+ });
306
+ });
307
+ };
288
308
  ChevreAdmin.prototype.createProductInstance = function (params) {
289
309
  return __awaiter(this, void 0, void 0, function () {
290
310
  var _a;
@@ -1,5 +1,33 @@
1
1
  import * as factory from '../factory';
2
- import { IUnset, Service } from '../service';
2
+ import { Service } from '../service';
3
+ declare type CategorySetIdentifierExceptMovieTicketType = Exclude<factory.categoryCode.CategorySetIdentifier, factory.categoryCode.CategorySetIdentifier.MovieTicketType>;
4
+ declare type ICategoryCodeExceptMovieTicketType = Pick<factory.categoryCode.ICategoryCode, 'additionalProperty' | 'codeValue' | 'color' | 'id' | 'image' | 'name' | 'project' | 'typeOf'> & {
5
+ inCodeSet: {
6
+ typeOf: 'CategoryCodeSet';
7
+ identifier: CategorySetIdentifierExceptMovieTicketType;
8
+ };
9
+ };
10
+ declare type IFindParamsExceptMovieTicketType = Pick<factory.categoryCode.ISearchConditions, 'additionalProperty' | 'codeValue' | 'id' | 'limit' | 'name' | 'page' | 'sort'> & {
11
+ inCodeSet?: {
12
+ identifier?: {
13
+ $eq?: CategorySetIdentifierExceptMovieTicketType;
14
+ $in?: CategorySetIdentifierExceptMovieTicketType[];
15
+ };
16
+ };
17
+ paymentMethod?: never;
18
+ };
19
+ declare type IMovieTicketType = Pick<factory.categoryCode.ICategoryCode, 'additionalProperty' | 'codeValue' | 'color' | 'id' | 'image' | 'name' | 'project' | 'typeOf'> & {
20
+ inCodeSet: {
21
+ typeOf: 'CategoryCodeSet';
22
+ identifier: factory.categoryCode.CategorySetIdentifier.MovieTicketType;
23
+ };
24
+ paymentMethod: {
25
+ /**
26
+ * 決済カード区分の場合、対応決済方法区分
27
+ */
28
+ typeOf: string;
29
+ };
30
+ };
3
31
  /**
4
32
  * 区分サービス
5
33
  */
@@ -7,7 +35,9 @@ export declare class CategoryCodeService extends Service {
7
35
  /**
8
36
  * 作成
9
37
  */
10
- create(params: factory.categoryCode.ICategoryCode): Promise<{
38
+ create(params: Omit<ICategoryCodeExceptMovieTicketType, 'id'> & {
39
+ $unset?: never;
40
+ }): Promise<{
11
41
  /**
12
42
  * 区分ID
13
43
  */
@@ -16,14 +46,57 @@ export declare class CategoryCodeService extends Service {
16
46
  /**
17
47
  * 検索
18
48
  */
19
- search(params: Omit<factory.categoryCode.ISearchConditions, 'project'>): Promise<{
49
+ search(params: IFindParamsExceptMovieTicketType): Promise<{
20
50
  data: factory.categoryCode.ICategoryCode[];
21
51
  }>;
22
- findById(params: {
52
+ /**
53
+ * 決済カード区分を除外して区分を検索する
54
+ */
55
+ findCategoryCodesExceptMovieTicketTypes(params: Omit<factory.categoryCode.ISearchConditions, 'project'> & {
56
+ excludeMovieTicketType?: boolean;
57
+ }): Promise<ICategoryCodeExceptMovieTicketType[]>;
58
+ update(params: ICategoryCodeExceptMovieTicketType & {
59
+ id: string;
60
+ $unset?: never;
61
+ }): Promise<void>;
62
+ deleteCategoryCodeById(params: {
23
63
  id: string;
24
- }): Promise<factory.categoryCode.ICategoryCode>;
25
- update(params: factory.categoryCode.ICategoryCode & IUnset): Promise<void>;
26
- deleteById(params: {
64
+ }): Promise<void>;
65
+ /**
66
+ * 決済カード区分追加
67
+ */
68
+ createMovieTicketType(params: IMovieTicketType & {
69
+ $unset?: never;
70
+ }): Promise<{
71
+ /**
72
+ * 区分ID
73
+ */
74
+ id: string;
75
+ }>;
76
+ /**
77
+ * 決済カード区分検索
78
+ * support(2025-10-21~)
79
+ */
80
+ findMovieTicketTypes(params: Pick<factory.categoryCode.ISearchConditions, 'additionalProperty' | 'codeValue' | 'id' | 'name' | 'paymentMethod' | 'sort'> & {
81
+ limit: number;
82
+ page: number;
83
+ inCodeSet: {
84
+ identifier: {
85
+ $eq: factory.categoryCode.CategorySetIdentifier.MovieTicketType;
86
+ };
87
+ };
88
+ }): Promise<IMovieTicketType[]>;
89
+ /**
90
+ * 決済カード区分編集
91
+ */
92
+ updateMovieTicketType(params: IMovieTicketType & {
93
+ $unset?: never;
94
+ }): Promise<void>;
95
+ /**
96
+ * 決済カード区分削除
97
+ */
98
+ deleteMovieTicketTypeById(params: {
27
99
  id: string;
28
100
  }): Promise<void>;
29
101
  }
102
+ export {};
@@ -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) {
@@ -109,13 +120,17 @@ var CategoryCodeService = /** @class */ (function (_super) {
109
120
  });
110
121
  });
111
122
  };
112
- CategoryCodeService.prototype.findById = function (params) {
123
+ /**
124
+ * 決済カード区分を除外して区分を検索する
125
+ */
126
+ CategoryCodeService.prototype.findCategoryCodesExceptMovieTicketTypes = function (params) {
113
127
  return __awaiter(this, void 0, void 0, function () {
114
128
  var _this = this;
115
129
  return __generator(this, function (_a) {
116
130
  return [2 /*return*/, this.fetch({
117
- uri: "/categoryCodes/" + encodeURIComponent(String(params.id)),
131
+ uri: '/categoryCodes',
118
132
  method: 'GET',
133
+ qs: __assign(__assign({}, params), { excludeMovieTicketType: true }),
119
134
  expectedStatusCodes: [http_status_1.OK]
120
135
  })
121
136
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
@@ -141,7 +156,7 @@ var CategoryCodeService = /** @class */ (function (_super) {
141
156
  });
142
157
  });
143
158
  };
144
- CategoryCodeService.prototype.deleteById = function (params) {
159
+ CategoryCodeService.prototype.deleteCategoryCodeById = function (params) {
145
160
  return __awaiter(this, void 0, void 0, function () {
146
161
  return __generator(this, function (_a) {
147
162
  switch (_a.label) {
@@ -157,6 +172,84 @@ var CategoryCodeService = /** @class */ (function (_super) {
157
172
  });
158
173
  });
159
174
  };
175
+ /**
176
+ * 決済カード区分追加
177
+ */
178
+ CategoryCodeService.prototype.createMovieTicketType = function (params) {
179
+ return __awaiter(this, void 0, void 0, function () {
180
+ var _this = this;
181
+ return __generator(this, function (_a) {
182
+ return [2 /*return*/, this.fetch({
183
+ uri: '/movieTicketTypes',
184
+ method: 'POST',
185
+ body: params,
186
+ expectedStatusCodes: [http_status_1.CREATED]
187
+ })
188
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
189
+ return [2 /*return*/, response.json()];
190
+ }); }); })];
191
+ });
192
+ });
193
+ };
194
+ /**
195
+ * 決済カード区分検索
196
+ * support(2025-10-21~)
197
+ */
198
+ CategoryCodeService.prototype.findMovieTicketTypes = function (params) {
199
+ return __awaiter(this, void 0, void 0, function () {
200
+ var _this = this;
201
+ return __generator(this, function (_a) {
202
+ return [2 /*return*/, this.fetch({
203
+ uri: '/movieTicketTypes',
204
+ method: 'GET',
205
+ qs: params,
206
+ expectedStatusCodes: [http_status_1.OK]
207
+ })
208
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
209
+ return [2 /*return*/, response.json()];
210
+ }); }); })];
211
+ });
212
+ });
213
+ };
214
+ /**
215
+ * 決済カード区分編集
216
+ */
217
+ CategoryCodeService.prototype.updateMovieTicketType = function (params) {
218
+ return __awaiter(this, void 0, void 0, function () {
219
+ return __generator(this, function (_a) {
220
+ switch (_a.label) {
221
+ case 0: return [4 /*yield*/, this.fetch({
222
+ uri: "/movieTicketTypes/" + encodeURIComponent(String(params.id)),
223
+ method: 'PUT',
224
+ body: params,
225
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
226
+ })];
227
+ case 1:
228
+ _a.sent();
229
+ return [2 /*return*/];
230
+ }
231
+ });
232
+ });
233
+ };
234
+ /**
235
+ * 決済カード区分削除
236
+ */
237
+ CategoryCodeService.prototype.deleteMovieTicketTypeById = function (params) {
238
+ return __awaiter(this, void 0, void 0, function () {
239
+ return __generator(this, function (_a) {
240
+ switch (_a.label) {
241
+ case 0: return [4 /*yield*/, this.fetch({
242
+ uri: "/movieTicketTypes/" + encodeURIComponent(String(params.id)),
243
+ method: 'DELETE',
244
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
245
+ })];
246
+ case 1:
247
+ _a.sent();
248
+ return [2 /*return*/];
249
+ }
250
+ });
251
+ });
252
+ };
160
253
  return CategoryCodeService;
161
254
  }(service_1.Service));
162
255
  exports.CategoryCodeService = CategoryCodeService;
@@ -7,12 +7,10 @@ export declare class CreativeWorkService extends Service {
7
7
  createMovie(params: factory.creativeWork.movie.ICreateParams): Promise<{
8
8
  id: string;
9
9
  }>;
10
- searchMovies(params: Omit<factory.creativeWork.movie.ISearchConditions, 'project'>): Promise<{
11
- data: factory.creativeWork.movie.ICreativeWork[];
12
- }>;
13
- findMovieById(params: {
14
- id: string;
15
- }): Promise<factory.creativeWork.movie.ICreativeWork>;
10
+ findMovies(params: Pick<factory.creativeWork.movie.ISearchConditions, 'additionalProperty' | 'contentRating' | 'datePublishedFrom' | 'datePublishedThrough' | 'distributor' | 'id' | 'identifier' | 'name' | 'offers' | 'sort'> & {
11
+ limit: number;
12
+ page: number;
13
+ }): Promise<Pick<factory.creativeWork.movie.ICreativeWork, 'additionalProperty' | 'alternativeHeadline' | 'contentRating' | 'datePublished' | 'distributor' | 'duration' | 'headline' | 'id' | 'identifier' | 'name' | 'offers' | 'thumbnailUrl' | 'typeOf'>[]>;
16
14
  updateMovie(params: factory.creativeWork.movie.ICreateParams & {
17
15
  id: string;
18
16
  } & IUnset): Promise<void>;
@@ -78,7 +78,8 @@ var CreativeWorkService = /** @class */ (function (_super) {
78
78
  });
79
79
  });
80
80
  };
81
- CreativeWorkService.prototype.searchMovies = function (params) {
81
+ // redefine(2025-10-19~)
82
+ CreativeWorkService.prototype.findMovies = function (params) {
82
83
  return __awaiter(this, void 0, void 0, function () {
83
84
  var _this = this;
84
85
  return __generator(this, function (_a) {
@@ -87,30 +88,6 @@ var CreativeWorkService = /** @class */ (function (_super) {
87
88
  method: 'GET',
88
89
  qs: params,
89
90
  expectedStatusCodes: [http_status_1.OK]
90
- })
91
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
92
- var _a;
93
- return __generator(this, function (_b) {
94
- switch (_b.label) {
95
- case 0:
96
- _a = {};
97
- return [4 /*yield*/, response.json()];
98
- case 1: return [2 /*return*/, (_a.data = _b.sent(),
99
- _a)];
100
- }
101
- });
102
- }); })];
103
- });
104
- });
105
- };
106
- CreativeWorkService.prototype.findMovieById = function (params) {
107
- return __awaiter(this, void 0, void 0, function () {
108
- var _this = this;
109
- return __generator(this, function (_a) {
110
- return [2 /*return*/, this.fetch({
111
- uri: "/creativeWorks/movie/" + encodeURIComponent(String(params.id)),
112
- method: 'GET',
113
- expectedStatusCodes: [http_status_1.OK]
114
91
  })
115
92
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
116
93
  return [2 /*return*/, response.json()];
@@ -118,6 +95,17 @@ var CreativeWorkService = /** @class */ (function (_super) {
118
95
  });
119
96
  });
120
97
  };
98
+ // discontinue(2025-10-19~)
99
+ // public async findMovieById(params: {
100
+ // id: string;
101
+ // }): Promise<factory.creativeWork.movie.ICreativeWork> {
102
+ // return this.fetch({
103
+ // uri: `/creativeWorks/movie/${encodeURIComponent(String(params.id))}`,
104
+ // method: 'GET',
105
+ // expectedStatusCodes: [OK]
106
+ // })
107
+ // .then(async (response) => response.json());
108
+ // }
121
109
  CreativeWorkService.prototype.updateMovie = function (params) {
122
110
  return __awaiter(this, void 0, void 0, function () {
123
111
  return __generator(this, function (_a) {
@@ -39,15 +39,16 @@ export declare class OfferCatalogService extends Service {
39
39
  id: string;
40
40
  }): Promise<void>;
41
41
  /**
42
- * カタログ複数編集
42
+ * IDリストでカタログ複数編集
43
+ * 要素のpush,pullを同時指定した場合400
43
44
  */
44
- updateMany(params: {
45
+ updateManyOfferCatalogsByIds(params: {
45
46
  id: {
46
47
  $in: string[];
47
48
  };
48
49
  $push: {
49
50
  itemListElement: {
50
- $each: factory.offerCatalog.IItemListElement[];
51
+ $each: factory.offerCatalog.IItemListElementAsAggregateOffer[];
51
52
  };
52
53
  };
53
54
  $pull: {
@@ -59,6 +60,8 @@ export declare class OfferCatalogService extends Service {
59
60
  };
60
61
  };
61
62
  };
63
+ }, options: {
64
+ itemOfferedTypeOf: factory.product.ProductType;
62
65
  }): Promise<void>;
63
66
  /**
64
67
  * カタログ削除
@@ -132,18 +132,23 @@ var OfferCatalogService = /** @class */ (function (_super) {
132
132
  });
133
133
  };
134
134
  /**
135
- * カタログ複数編集
135
+ * IDリストでカタログ複数編集
136
+ * 要素のpush,pullを同時指定した場合400
136
137
  */
137
- OfferCatalogService.prototype.updateMany = function (params) {
138
+ OfferCatalogService.prototype.updateManyOfferCatalogsByIds = function (params, options) {
138
139
  return __awaiter(this, void 0, void 0, function () {
140
+ var itemOfferedTypeOf;
139
141
  return __generator(this, function (_a) {
140
142
  switch (_a.label) {
141
- case 0: return [4 /*yield*/, this.fetch({
142
- uri: "/offerCatalogs",
143
- method: 'PATCH',
144
- body: params,
145
- expectedStatusCodes: [http_status_1.NO_CONTENT]
146
- })];
143
+ case 0:
144
+ itemOfferedTypeOf = options.itemOfferedTypeOf;
145
+ return [4 /*yield*/, this.fetch({
146
+ uri: "/offerCatalogs",
147
+ method: 'PATCH',
148
+ body: params,
149
+ qs: { itemOfferedTypeOf: itemOfferedTypeOf },
150
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
151
+ })];
147
152
  case 1:
148
153
  _a.sent();
149
154
  return [2 /*return*/];
@@ -6,13 +6,6 @@ declare type ISavingAvailableChannel = Pick<factory.service.paymentService.IAvai
6
6
  declare type ISavingPaymentService = Pick<factory.service.paymentService.IService, 'additionalProperty' | 'description' | 'name' | 'productID' | 'project' | 'serviceOutput' | 'serviceType' | 'typeOf' | 'potentialAction'> & {
7
7
  availableChannel: ISavingAvailableChannel;
8
8
  };
9
- export declare type IPaymentServiceWithoutCredentials = Omit<factory.service.paymentService.IService, 'availableChannel' | 'potentialAction'> & {
10
- id: string;
11
- };
12
- declare type IKeyOfProjection = Exclude<keyof factory.service.paymentService.IService, 'id' | 'availableChannel' | 'potentialAction'>;
13
- declare type IProjection = {
14
- [key in IKeyOfProjection]?: 1;
15
- };
16
9
  /**
17
10
  * 決済商品サービス
18
11
  */
@@ -23,12 +16,6 @@ export declare class PaymentProductService extends Service {
23
16
  createPaymentService(params: ISavingPaymentService): Promise<{
24
17
  id: string;
25
18
  }>;
26
- /**
27
- * 決済サービス検索
28
- */
29
- searchPaymentServices(params: Omit<factory.service.paymentService.ISearchConditions, 'project'> & {
30
- $projection?: IProjection;
31
- }): Promise<IPaymentServiceWithoutCredentials[]>;
32
19
  findPaymentServiceById(params: {
33
20
  id: string;
34
21
  }): Promise<Omit<factory.service.paymentService.IService, 'availableChannel' | 'typeOf'> & {