@cinerino/sdk 12.13.0-alpha.6 → 12.13.0-alpha.7

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.
@@ -0,0 +1,47 @@
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
+ sortByIdentifier?: factory.sortType;
10
+ additionalPropertyName?: string;
11
+ contentRatingType?: string;
12
+ distributorType?: string;
13
+ id?: string;
14
+ /**
15
+ * コード完全一意
16
+ */
17
+ identifier?: string;
18
+ /**
19
+ * コード部分一致
20
+ */
21
+ identifierContains?: string;
22
+ /**
23
+ * 名称部分一致
24
+ */
25
+ nameContains?: string;
26
+ offersAvailabilityEndsGte?: Date;
27
+ offersAvailabilityStartsLte?: Date;
28
+ datePublishedGte?: Date;
29
+ datePublishedLte?: Date;
30
+ }
31
+ export declare type IMovieAsFindResult = Pick<factory.creativeWork.movie.ICreativeWork, 'identifier' | 'name' | 'alternativeHeadline' | 'datePublished' | 'distributor' | 'headline' | 'thumbnailUrl' | 'duration' | 'contentRating' | 'offers' | 'additionalProperty'> & {
32
+ project?: never;
33
+ typeOf?: never;
34
+ };
35
+ /**
36
+ * コンテンツサービス
37
+ */
38
+ export declare class MovieService extends Service {
39
+ /**
40
+ * コンテンツ冪等置換
41
+ */
42
+ upsertMoviesByIdentifier(params: factory.creativeWork.movie.ICreateParams[]): Promise<void>;
43
+ /**
44
+ * コンテンツ検索
45
+ */
46
+ findMovies(params: IFindParams): Promise<IMovieAsFindResult[]>;
47
+ }
@@ -51,26 +51,27 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
51
51
  }
52
52
  };
53
53
  Object.defineProperty(exports, "__esModule", { value: true });
54
- exports.CreativeWorkService = void 0;
54
+ exports.MovieService = void 0;
55
55
  var http_status_1 = require("http-status");
56
56
  var service_1 = require("../service");
57
+ var BASE_URI = '/movies';
57
58
  /**
58
59
  * コンテンツサービス
59
60
  */
60
- var CreativeWorkService = /** @class */ (function (_super) {
61
- __extends(CreativeWorkService, _super);
62
- function CreativeWorkService() {
61
+ var MovieService = /** @class */ (function (_super) {
62
+ __extends(MovieService, _super);
63
+ function MovieService() {
63
64
  return _super !== null && _super.apply(this, arguments) || this;
64
65
  }
65
66
  /**
66
67
  * コンテンツ冪等置換
67
68
  */
68
- CreativeWorkService.prototype.upsertMoviesByIdentifier = function (params) {
69
+ MovieService.prototype.upsertMoviesByIdentifier = function (params) {
69
70
  return __awaiter(this, void 0, void 0, function () {
70
71
  return __generator(this, function (_a) {
71
72
  switch (_a.label) {
72
73
  case 0: return [4 /*yield*/, this.fetch({
73
- uri: '/creativeWorks/movie',
74
+ uri: BASE_URI,
74
75
  method: 'PUT',
75
76
  body: params,
76
77
  expectedStatusCodes: [http_status_1.NO_CONTENT]
@@ -82,6 +83,25 @@ var CreativeWorkService = /** @class */ (function (_super) {
82
83
  });
83
84
  });
84
85
  };
85
- return CreativeWorkService;
86
+ /**
87
+ * コンテンツ検索
88
+ */
89
+ MovieService.prototype.findMovies = function (params) {
90
+ return __awaiter(this, void 0, void 0, function () {
91
+ var _this = this;
92
+ return __generator(this, function (_a) {
93
+ return [2 /*return*/, this.fetch({
94
+ uri: BASE_URI,
95
+ method: 'GET',
96
+ qs: params,
97
+ expectedStatusCodes: [http_status_1.OK]
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
+ return MovieService;
86
106
  }(service_1.Service));
87
- exports.CreativeWorkService = CreativeWorkService;
107
+ exports.MovieService = MovieService;
@@ -2,13 +2,13 @@ import { IAdditionalOptions, IOptions, IUnset as IUnsetOnService } from './servi
2
2
  import type { AcceptedPaymentMethodService } from './chevreAdmin/acceptedPaymentMethod';
3
3
  import type { CancelReservationAssetTransactionService } from './chevreAdmin/assetTransaction/cancelReservation';
4
4
  import type { AuthorizationService } from './chevreAdmin/authorization';
5
- import type { CreativeWorkService } from './chevreAdmin/creativeWork';
6
5
  import type { CustomerService } from './chevreAdmin/customer';
7
6
  import type { EventService } from './chevreAdmin/event';
8
7
  import type { EventOfferService } from './chevreAdmin/eventOffer';
9
8
  import type { EventSeriesService } from './chevreAdmin/eventSeries';
10
9
  import type { MeService } from './chevreAdmin/me';
11
10
  import type { MemberService } from './chevreAdmin/member';
11
+ import type { MovieService } from './chevreAdmin/movie';
12
12
  import type { NoteService } from './chevreAdmin/note';
13
13
  import type { NoteAboutOrderService } from './chevreAdmin/noteAboutOrder';
14
14
  import type { OfferService } from './chevreAdmin/offer';
@@ -36,13 +36,6 @@ export declare namespace service {
36
36
  namespace Authorization {
37
37
  let svc: typeof AuthorizationService | undefined;
38
38
  }
39
- /**
40
- * コンテンツサービス
41
- */
42
- type CreativeWork = CreativeWorkService;
43
- namespace CreativeWork {
44
- let svc: typeof CreativeWorkService | undefined;
45
- }
46
39
  /**
47
40
  * 顧客サービス
48
41
  */
@@ -85,6 +78,13 @@ export declare namespace service {
85
78
  namespace Member {
86
79
  let svc: typeof MemberService | undefined;
87
80
  }
81
+ /**
82
+ * コンテンツサービス
83
+ */
84
+ type Movie = MovieService;
85
+ namespace Movie {
86
+ let svc: typeof MovieService | undefined;
87
+ }
88
88
  /**
89
89
  * メモサービス
90
90
  */
@@ -180,13 +180,13 @@ export declare class ChevreAdmin {
180
180
  constructor(options: Pick<IOptions, 'auth' | 'endpoint' | 'disableAutoRetry'>);
181
181
  createAcceptedPaymentMethodInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AcceptedPaymentMethodService>;
182
182
  createAuthorizationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AuthorizationService>;
183
- createCreativeWorkInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CreativeWorkService>;
184
183
  createCustomerInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CustomerService>;
185
184
  createEventInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventService>;
186
185
  createEventOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventOfferService>;
187
186
  createEventSeriesInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventSeriesService>;
188
187
  createMeInstance(): Promise<MeService>;
189
188
  createMemberInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<MemberService>;
189
+ createMovieInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<MovieService>;
190
190
  createNoteInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<NoteService>;
191
191
  createNoteAboutOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<NoteAboutOrderService>;
192
192
  createOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OrderService>;
@@ -56,9 +56,6 @@ var service;
56
56
  var Authorization;
57
57
  (function (Authorization) {
58
58
  })(Authorization = service.Authorization || (service.Authorization = {}));
59
- var CreativeWork;
60
- (function (CreativeWork) {
61
- })(CreativeWork = service.CreativeWork || (service.CreativeWork = {}));
62
59
  var Customer;
63
60
  (function (Customer) {
64
61
  })(Customer = service.Customer || (service.Customer = {}));
@@ -77,6 +74,9 @@ var service;
77
74
  var Member;
78
75
  (function (Member) {
79
76
  })(Member = service.Member || (service.Member = {}));
77
+ var Movie;
78
+ (function (Movie) {
79
+ })(Movie = service.Movie || (service.Movie = {}));
80
80
  var Note;
81
81
  (function (Note) {
82
82
  })(Note = service.Note || (service.Note = {}));
@@ -158,23 +158,6 @@ var ChevreAdmin = /** @class */ (function () {
158
158
  });
159
159
  });
160
160
  };
161
- ChevreAdmin.prototype.createCreativeWorkInstance = function (params) {
162
- return __awaiter(this, void 0, void 0, function () {
163
- var _a;
164
- return __generator(this, function (_b) {
165
- switch (_b.label) {
166
- case 0:
167
- if (!(service.CreativeWork.svc === undefined)) return [3 /*break*/, 2];
168
- _a = service.CreativeWork;
169
- return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/creativeWork'); })];
170
- case 1:
171
- _a.svc = (_b.sent()).CreativeWorkService;
172
- _b.label = 2;
173
- case 2: return [2 /*return*/, new service.CreativeWork.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
174
- }
175
- });
176
- });
177
- };
178
161
  ChevreAdmin.prototype.createCustomerInstance = function (params) {
179
162
  return __awaiter(this, void 0, void 0, function () {
180
163
  var _a;
@@ -277,6 +260,23 @@ var ChevreAdmin = /** @class */ (function () {
277
260
  });
278
261
  });
279
262
  };
263
+ ChevreAdmin.prototype.createMovieInstance = function (params) {
264
+ return __awaiter(this, void 0, void 0, function () {
265
+ var _a;
266
+ return __generator(this, function (_b) {
267
+ switch (_b.label) {
268
+ case 0:
269
+ if (!(service.Movie.svc === undefined)) return [3 /*break*/, 2];
270
+ _a = service.Movie;
271
+ return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/movie'); })];
272
+ case 1:
273
+ _a.svc = (_b.sent()).MovieService;
274
+ _b.label = 2;
275
+ case 2: return [2 /*return*/, new service.Movie.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
276
+ }
277
+ });
278
+ });
279
+ };
280
280
  ChevreAdmin.prototype.createNoteInstance = function (params) {
281
281
  return __awaiter(this, void 0, void 0, function () {
282
282
  var _a;
@@ -7,10 +7,13 @@ export declare class CreativeWorkService extends Service {
7
7
  createMovie(params: factory.creativeWork.movie.ICreateParams): Promise<{
8
8
  id: string;
9
9
  }>;
10
- findMovies(params: Pick<factory.creativeWork.movie.ISearchConditions, 'additionalProperty' | 'contentRating' | 'datePublishedFrom' | 'datePublishedThrough' | 'distributor' | 'id' | 'identifier' | 'name' | 'offers' | 'sort'> & {
10
+ /**
11
+ * @deprecated use chevreAdmin
12
+ */
13
+ findMoviesDeprecated(params: Pick<factory.creativeWork.movie.ISearchConditions, 'additionalProperty' | 'contentRating' | 'datePublishedFrom' | 'datePublishedThrough' | 'distributor' | 'id' | 'identifier' | 'name' | 'offers' | 'sort'> & {
11
14
  limit: number;
12
15
  page: number;
13
- }): Promise<Pick<factory.creativeWork.movie.ICreativeWork, 'additionalProperty' | 'alternativeHeadline' | 'contentRating' | 'datePublished' | 'distributor' | 'duration' | 'headline' | 'id' | 'identifier' | 'name' | 'offers' | 'thumbnailUrl' | 'typeOf'>[]>;
16
+ }): Promise<Pick<factory.creativeWork.movie.ICreativeWork, 'additionalProperty' | 'alternativeHeadline' | 'contentRating' | 'datePublished' | 'distributor' | 'duration' | 'headline' | 'id' | 'identifier' | 'name' | 'offers' | 'thumbnailUrl'>[]>;
14
17
  updateMovie(params: factory.creativeWork.movie.ICreateParams & {
15
18
  id: string;
16
19
  } & IUnset): Promise<void>;
@@ -78,8 +78,10 @@ var CreativeWorkService = /** @class */ (function (_super) {
78
78
  });
79
79
  });
80
80
  };
81
- // redefine(2025-10-19~)
82
- CreativeWorkService.prototype.findMovies = function (params) {
81
+ /**
82
+ * @deprecated use chevreAdmin
83
+ */
84
+ CreativeWorkService.prototype.findMoviesDeprecated = function (params) {
83
85
  return __awaiter(this, void 0, void 0, function () {
84
86
  var _this = this;
85
87
  return __generator(this, function (_a) {
@@ -71,7 +71,7 @@ var CreativeWorkService = /** @class */ (function (_super) {
71
71
  */
72
72
  params) {
73
73
  return __awaiter(this, void 0, void 0, function () {
74
- var _a, auth, endpoint, project, seller, chevreAdmin, creativeWorkService;
74
+ var _a, auth, endpoint, project, seller, chevreAdmin, movieService;
75
75
  return __generator(this, function (_b) {
76
76
  switch (_b.label) {
77
77
  case 0:
@@ -79,13 +79,13 @@ var CreativeWorkService = /** @class */ (function (_super) {
79
79
  return [4 /*yield*/, index_1.loadChevreAdmin({ auth: auth, endpoint: endpoint })];
80
80
  case 1:
81
81
  chevreAdmin = _b.sent();
82
- return [4 /*yield*/, chevreAdmin.createCreativeWorkInstance({
82
+ return [4 /*yield*/, chevreAdmin.createMovieInstance({
83
83
  project: project,
84
84
  seller: { id: (typeof (seller === null || seller === void 0 ? void 0 : seller.id) === 'string') ? seller.id : '' }
85
85
  })];
86
86
  case 2:
87
- creativeWorkService = _b.sent();
88
- return [4 /*yield*/, creativeWorkService.upsertMoviesByIdentifier(params)];
87
+ movieService = _b.sent();
88
+ return [4 /*yield*/, movieService.upsertMoviesByIdentifier(params)];
89
89
  case 3:
90
90
  _b.sent();
91
91
  return [2 /*return*/];
package/lib/bundle.js CHANGED
@@ -2449,9 +2449,6 @@ var service;
2449
2449
  var Authorization;
2450
2450
  (function (Authorization) {
2451
2451
  })(Authorization = service.Authorization || (service.Authorization = {}));
2452
- var CreativeWork;
2453
- (function (CreativeWork) {
2454
- })(CreativeWork = service.CreativeWork || (service.CreativeWork = {}));
2455
2452
  var Customer;
2456
2453
  (function (Customer) {
2457
2454
  })(Customer = service.Customer || (service.Customer = {}));
@@ -2470,6 +2467,9 @@ var service;
2470
2467
  var Member;
2471
2468
  (function (Member) {
2472
2469
  })(Member = service.Member || (service.Member = {}));
2470
+ var Movie;
2471
+ (function (Movie) {
2472
+ })(Movie = service.Movie || (service.Movie = {}));
2473
2473
  var Note;
2474
2474
  (function (Note) {
2475
2475
  })(Note = service.Note || (service.Note = {}));
@@ -2551,23 +2551,6 @@ var ChevreAdmin = /** @class */ (function () {
2551
2551
  });
2552
2552
  });
2553
2553
  };
2554
- ChevreAdmin.prototype.createCreativeWorkInstance = function (params) {
2555
- return __awaiter(this, void 0, void 0, function () {
2556
- var _a;
2557
- return __generator(this, function (_b) {
2558
- switch (_b.label) {
2559
- case 0:
2560
- if (!(service.CreativeWork.svc === undefined)) return [3 /*break*/, 2];
2561
- _a = service.CreativeWork;
2562
- return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/creativeWork'); })];
2563
- case 1:
2564
- _a.svc = (_b.sent()).CreativeWorkService;
2565
- _b.label = 2;
2566
- case 2: return [2 /*return*/, new service.CreativeWork.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
2567
- }
2568
- });
2569
- });
2570
- };
2571
2554
  ChevreAdmin.prototype.createCustomerInstance = function (params) {
2572
2555
  return __awaiter(this, void 0, void 0, function () {
2573
2556
  var _a;
@@ -2670,6 +2653,23 @@ var ChevreAdmin = /** @class */ (function () {
2670
2653
  });
2671
2654
  });
2672
2655
  };
2656
+ ChevreAdmin.prototype.createMovieInstance = function (params) {
2657
+ return __awaiter(this, void 0, void 0, function () {
2658
+ var _a;
2659
+ return __generator(this, function (_b) {
2660
+ switch (_b.label) {
2661
+ case 0:
2662
+ if (!(service.Movie.svc === undefined)) return [3 /*break*/, 2];
2663
+ _a = service.Movie;
2664
+ return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/movie'); })];
2665
+ case 1:
2666
+ _a.svc = (_b.sent()).MovieService;
2667
+ _b.label = 2;
2668
+ case 2: return [2 /*return*/, new service.Movie.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
2669
+ }
2670
+ });
2671
+ });
2672
+ };
2673
2673
  ChevreAdmin.prototype.createNoteInstance = function (params) {
2674
2674
  return __awaiter(this, void 0, void 0, function () {
2675
2675
  var _a;
@@ -2879,7 +2879,7 @@ var ChevreAdmin = /** @class */ (function () {
2879
2879
  }());
2880
2880
  exports.ChevreAdmin = ChevreAdmin;
2881
2881
 
2882
- },{"./chevreAdmin/acceptedPaymentMethod":22,"./chevreAdmin/assetTransaction/cancelReservation":23,"./chevreAdmin/authorization":24,"./chevreAdmin/creativeWork":25,"./chevreAdmin/customer":26,"./chevreAdmin/event":27,"./chevreAdmin/eventOffer":28,"./chevreAdmin/eventSeries":29,"./chevreAdmin/me":30,"./chevreAdmin/member":31,"./chevreAdmin/note":32,"./chevreAdmin/noteAboutOrder":33,"./chevreAdmin/offer":34,"./chevreAdmin/offerCatalog":35,"./chevreAdmin/offerCatalogItem":36,"./chevreAdmin/order":37,"./chevreAdmin/paymentMethod":38,"./chevreAdmin/product":39,"./chevreAdmin/productOffer":40,"./chevreAdmin/reservation":41,"./chevreAdmin/seller":42}],22:[function(require,module,exports){
2882
+ },{"./chevreAdmin/acceptedPaymentMethod":22,"./chevreAdmin/assetTransaction/cancelReservation":23,"./chevreAdmin/authorization":24,"./chevreAdmin/customer":25,"./chevreAdmin/event":26,"./chevreAdmin/eventOffer":27,"./chevreAdmin/eventSeries":28,"./chevreAdmin/me":29,"./chevreAdmin/member":30,"./chevreAdmin/movie":31,"./chevreAdmin/note":32,"./chevreAdmin/noteAboutOrder":33,"./chevreAdmin/offer":34,"./chevreAdmin/offerCatalog":35,"./chevreAdmin/offerCatalogItem":36,"./chevreAdmin/order":37,"./chevreAdmin/paymentMethod":38,"./chevreAdmin/product":39,"./chevreAdmin/productOffer":40,"./chevreAdmin/reservation":41,"./chevreAdmin/seller":42}],22:[function(require,module,exports){
2883
2883
  "use strict";
2884
2884
  var __extends = (this && this.__extends) || (function () {
2885
2885
  var extendStatics = function (d, b) {
@@ -3246,95 +3246,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
3246
3246
  }
3247
3247
  };
3248
3248
  Object.defineProperty(exports, "__esModule", { value: true });
3249
- exports.CreativeWorkService = void 0;
3250
- var http_status_1 = require("http-status");
3251
- var service_1 = require("../service");
3252
- /**
3253
- * コンテンツサービス
3254
- */
3255
- var CreativeWorkService = /** @class */ (function (_super) {
3256
- __extends(CreativeWorkService, _super);
3257
- function CreativeWorkService() {
3258
- return _super !== null && _super.apply(this, arguments) || this;
3259
- }
3260
- /**
3261
- * コンテンツ冪等置換
3262
- */
3263
- CreativeWorkService.prototype.upsertMoviesByIdentifier = function (params) {
3264
- return __awaiter(this, void 0, void 0, function () {
3265
- return __generator(this, function (_a) {
3266
- switch (_a.label) {
3267
- case 0: return [4 /*yield*/, this.fetch({
3268
- uri: '/creativeWorks/movie',
3269
- method: 'PUT',
3270
- body: params,
3271
- expectedStatusCodes: [http_status_1.NO_CONTENT]
3272
- })];
3273
- case 1:
3274
- _a.sent();
3275
- return [2 /*return*/];
3276
- }
3277
- });
3278
- });
3279
- };
3280
- return CreativeWorkService;
3281
- }(service_1.Service));
3282
- exports.CreativeWorkService = CreativeWorkService;
3283
-
3284
- },{"../service":181,"http-status":471}],26:[function(require,module,exports){
3285
- "use strict";
3286
- var __extends = (this && this.__extends) || (function () {
3287
- var extendStatics = function (d, b) {
3288
- extendStatics = Object.setPrototypeOf ||
3289
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3290
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
3291
- return extendStatics(d, b);
3292
- };
3293
- return function (d, b) {
3294
- if (typeof b !== "function" && b !== null)
3295
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
3296
- extendStatics(d, b);
3297
- function __() { this.constructor = d; }
3298
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3299
- };
3300
- })();
3301
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3302
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3303
- return new (P || (P = Promise))(function (resolve, reject) {
3304
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
3305
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
3306
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
3307
- step((generator = generator.apply(thisArg, _arguments || [])).next());
3308
- });
3309
- };
3310
- var __generator = (this && this.__generator) || function (thisArg, body) {
3311
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
3312
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
3313
- function verb(n) { return function (v) { return step([n, v]); }; }
3314
- function step(op) {
3315
- if (f) throw new TypeError("Generator is already executing.");
3316
- while (_) try {
3317
- 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;
3318
- if (y = 0, t) op = [op[0] & 2, t.value];
3319
- switch (op[0]) {
3320
- case 0: case 1: t = op; break;
3321
- case 4: _.label++; return { value: op[1], done: false };
3322
- case 5: _.label++; y = op[1]; op = [0]; continue;
3323
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
3324
- default:
3325
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
3326
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
3327
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
3328
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
3329
- if (t[2]) _.ops.pop();
3330
- _.trys.pop(); continue;
3331
- }
3332
- op = body.call(thisArg, _);
3333
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
3334
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
3335
- }
3336
- };
3337
- Object.defineProperty(exports, "__esModule", { value: true });
3338
3249
  exports.CustomerService = void 0;
3339
3250
  var http_status_1 = require("http-status");
3340
3251
  var service_1 = require("../service");
@@ -3369,7 +3280,7 @@ var CustomerService = /** @class */ (function (_super) {
3369
3280
  }(service_1.Service));
3370
3281
  exports.CustomerService = CustomerService;
3371
3282
 
3372
- },{"../service":181,"http-status":471}],27:[function(require,module,exports){
3283
+ },{"../service":181,"http-status":471}],26:[function(require,module,exports){
3373
3284
  "use strict";
3374
3285
  var __extends = (this && this.__extends) || (function () {
3375
3286
  var extendStatics = function (d, b) {
@@ -3569,7 +3480,7 @@ var EventService = /** @class */ (function (_super) {
3569
3480
  }(service_1.Service));
3570
3481
  exports.EventService = EventService;
3571
3482
 
3572
- },{"../service":181,"http-status":471}],28:[function(require,module,exports){
3483
+ },{"../service":181,"http-status":471}],27:[function(require,module,exports){
3573
3484
  "use strict";
3574
3485
  var __extends = (this && this.__extends) || (function () {
3575
3486
  var extendStatics = function (d, b) {
@@ -3725,7 +3636,7 @@ var EventOfferService = /** @class */ (function (_super) {
3725
3636
  }(service_1.Service));
3726
3637
  exports.EventOfferService = EventOfferService;
3727
3638
 
3728
- },{"../service":181,"http-status":471}],29:[function(require,module,exports){
3639
+ },{"../service":181,"http-status":471}],28:[function(require,module,exports){
3729
3640
  "use strict";
3730
3641
  var __extends = (this && this.__extends) || (function () {
3731
3642
  var extendStatics = function (d, b) {
@@ -3837,7 +3748,7 @@ var EventSeriesService = /** @class */ (function (_super) {
3837
3748
  }(service_1.Service));
3838
3749
  exports.EventSeriesService = EventSeriesService;
3839
3750
 
3840
- },{"../service":181,"http-status":471}],30:[function(require,module,exports){
3751
+ },{"../service":181,"http-status":471}],29:[function(require,module,exports){
3841
3752
  "use strict";
3842
3753
  var __extends = (this && this.__extends) || (function () {
3843
3754
  var extendStatics = function (d, b) {
@@ -3957,7 +3868,7 @@ var MeService = /** @class */ (function (_super) {
3957
3868
  }(service_1.Service));
3958
3869
  exports.MeService = MeService;
3959
3870
 
3960
- },{"../service":181,"http-status":471}],31:[function(require,module,exports){
3871
+ },{"../service":181,"http-status":471}],30:[function(require,module,exports){
3961
3872
  "use strict";
3962
3873
  var __extends = (this && this.__extends) || (function () {
3963
3874
  var extendStatics = function (d, b) {
@@ -4046,7 +3957,116 @@ var MemberService = /** @class */ (function (_super) {
4046
3957
  }(service_1.Service));
4047
3958
  exports.MemberService = MemberService;
4048
3959
 
4049
- },{"../factory":176,"../service":181,"http-status":471}],32:[function(require,module,exports){
3960
+ },{"../factory":176,"../service":181,"http-status":471}],31:[function(require,module,exports){
3961
+ "use strict";
3962
+ var __extends = (this && this.__extends) || (function () {
3963
+ var extendStatics = function (d, b) {
3964
+ extendStatics = Object.setPrototypeOf ||
3965
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3966
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
3967
+ return extendStatics(d, b);
3968
+ };
3969
+ return function (d, b) {
3970
+ if (typeof b !== "function" && b !== null)
3971
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
3972
+ extendStatics(d, b);
3973
+ function __() { this.constructor = d; }
3974
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3975
+ };
3976
+ })();
3977
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3978
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3979
+ return new (P || (P = Promise))(function (resolve, reject) {
3980
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
3981
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
3982
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
3983
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
3984
+ });
3985
+ };
3986
+ var __generator = (this && this.__generator) || function (thisArg, body) {
3987
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
3988
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
3989
+ function verb(n) { return function (v) { return step([n, v]); }; }
3990
+ function step(op) {
3991
+ if (f) throw new TypeError("Generator is already executing.");
3992
+ while (_) try {
3993
+ 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;
3994
+ if (y = 0, t) op = [op[0] & 2, t.value];
3995
+ switch (op[0]) {
3996
+ case 0: case 1: t = op; break;
3997
+ case 4: _.label++; return { value: op[1], done: false };
3998
+ case 5: _.label++; y = op[1]; op = [0]; continue;
3999
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
4000
+ default:
4001
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
4002
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
4003
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
4004
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
4005
+ if (t[2]) _.ops.pop();
4006
+ _.trys.pop(); continue;
4007
+ }
4008
+ op = body.call(thisArg, _);
4009
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
4010
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
4011
+ }
4012
+ };
4013
+ Object.defineProperty(exports, "__esModule", { value: true });
4014
+ exports.MovieService = void 0;
4015
+ var http_status_1 = require("http-status");
4016
+ var service_1 = require("../service");
4017
+ var BASE_URI = '/movies';
4018
+ /**
4019
+ * コンテンツサービス
4020
+ */
4021
+ var MovieService = /** @class */ (function (_super) {
4022
+ __extends(MovieService, _super);
4023
+ function MovieService() {
4024
+ return _super !== null && _super.apply(this, arguments) || this;
4025
+ }
4026
+ /**
4027
+ * コンテンツ冪等置換
4028
+ */
4029
+ MovieService.prototype.upsertMoviesByIdentifier = function (params) {
4030
+ return __awaiter(this, void 0, void 0, function () {
4031
+ return __generator(this, function (_a) {
4032
+ switch (_a.label) {
4033
+ case 0: return [4 /*yield*/, this.fetch({
4034
+ uri: BASE_URI,
4035
+ method: 'PUT',
4036
+ body: params,
4037
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
4038
+ })];
4039
+ case 1:
4040
+ _a.sent();
4041
+ return [2 /*return*/];
4042
+ }
4043
+ });
4044
+ });
4045
+ };
4046
+ /**
4047
+ * コンテンツ検索
4048
+ */
4049
+ MovieService.prototype.findMovies = function (params) {
4050
+ return __awaiter(this, void 0, void 0, function () {
4051
+ var _this = this;
4052
+ return __generator(this, function (_a) {
4053
+ return [2 /*return*/, this.fetch({
4054
+ uri: BASE_URI,
4055
+ method: 'GET',
4056
+ qs: params,
4057
+ expectedStatusCodes: [http_status_1.OK]
4058
+ })
4059
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
4060
+ return [2 /*return*/, response.json()];
4061
+ }); }); })];
4062
+ });
4063
+ });
4064
+ };
4065
+ return MovieService;
4066
+ }(service_1.Service));
4067
+ exports.MovieService = MovieService;
4068
+
4069
+ },{"../service":181,"http-status":471}],32:[function(require,module,exports){
4050
4070
  "use strict";
4051
4071
  var __extends = (this && this.__extends) || (function () {
4052
4072
  var extendStatics = function (d, b) {
@@ -10533,8 +10553,10 @@ var CreativeWorkService = /** @class */ (function (_super) {
10533
10553
  });
10534
10554
  });
10535
10555
  };
10536
- // redefine(2025-10-19~)
10537
- CreativeWorkService.prototype.findMovies = function (params) {
10556
+ /**
10557
+ * @deprecated use chevreAdmin
10558
+ */
10559
+ CreativeWorkService.prototype.findMoviesDeprecated = function (params) {
10538
10560
  return __awaiter(this, void 0, void 0, function () {
10539
10561
  var _this = this;
10540
10562
  return __generator(this, function (_a) {
@@ -22028,7 +22050,7 @@ var CreativeWorkService = /** @class */ (function (_super) {
22028
22050
  */
22029
22051
  params) {
22030
22052
  return __awaiter(this, void 0, void 0, function () {
22031
- var _a, auth, endpoint, project, seller, chevreAdmin, creativeWorkService;
22053
+ var _a, auth, endpoint, project, seller, chevreAdmin, movieService;
22032
22054
  return __generator(this, function (_b) {
22033
22055
  switch (_b.label) {
22034
22056
  case 0:
@@ -22036,13 +22058,13 @@ var CreativeWorkService = /** @class */ (function (_super) {
22036
22058
  return [4 /*yield*/, index_1.loadChevreAdmin({ auth: auth, endpoint: endpoint })];
22037
22059
  case 1:
22038
22060
  chevreAdmin = _b.sent();
22039
- return [4 /*yield*/, chevreAdmin.createCreativeWorkInstance({
22061
+ return [4 /*yield*/, chevreAdmin.createMovieInstance({
22040
22062
  project: project,
22041
22063
  seller: { id: (typeof (seller === null || seller === void 0 ? void 0 : seller.id) === 'string') ? seller.id : '' }
22042
22064
  })];
22043
22065
  case 2:
22044
- creativeWorkService = _b.sent();
22045
- return [4 /*yield*/, creativeWorkService.upsertMoviesByIdentifier(params)];
22066
+ movieService = _b.sent();
22067
+ return [4 /*yield*/, movieService.upsertMoviesByIdentifier(params)];
22046
22068
  case 3:
22047
22069
  _b.sent();
22048
22070
  return [2 /*return*/];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "12.13.0-alpha.6",
3
+ "version": "12.13.0-alpha.7",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {
@@ -1,11 +0,0 @@
1
- import * as factory from '../factory';
2
- import { Service } from '../service';
3
- /**
4
- * コンテンツサービス
5
- */
6
- export declare class CreativeWorkService extends Service {
7
- /**
8
- * コンテンツ冪等置換
9
- */
10
- upsertMoviesByIdentifier(params: factory.creativeWork.movie.ICreateParams[]): Promise<void>;
11
- }