@cinerino/sdk 12.5.0-alpha.13 → 12.5.0-alpha.15

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.
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../factory';
2
- import { IUnset, Service } from '../service';
2
+ import { Service } from '../service';
3
3
  /**
4
4
  * 区分サービス
5
5
  */
@@ -7,7 +7,9 @@ export declare class CategoryCodeService extends Service {
7
7
  /**
8
8
  * 作成
9
9
  */
10
- create(params: factory.categoryCode.ICategoryCode): Promise<{
10
+ create(params: factory.categoryCode.ICategoryCode & {
11
+ $unset?: never;
12
+ }): Promise<{
11
13
  /**
12
14
  * 区分ID
13
15
  */
@@ -22,7 +24,9 @@ export declare class CategoryCodeService extends Service {
22
24
  findById(params: {
23
25
  id: string;
24
26
  }): Promise<factory.categoryCode.ICategoryCode>;
25
- update(params: factory.categoryCode.ICategoryCode & IUnset): Promise<void>;
27
+ update(params: factory.categoryCode.ICategoryCode & {
28
+ $unset?: never;
29
+ }): Promise<void>;
26
30
  deleteById(params: {
27
31
  id: string;
28
32
  }): Promise<void>;
@@ -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) {
package/lib/bundle.js CHANGED
@@ -9721,7 +9721,8 @@ var CreativeWorkService = /** @class */ (function (_super) {
9721
9721
  });
9722
9722
  });
9723
9723
  };
9724
- CreativeWorkService.prototype.searchMovies = function (params) {
9724
+ // redefine(2025-10-19~)
9725
+ CreativeWorkService.prototype.findMovies = function (params) {
9725
9726
  return __awaiter(this, void 0, void 0, function () {
9726
9727
  var _this = this;
9727
9728
  return __generator(this, function (_a) {
@@ -9730,30 +9731,6 @@ var CreativeWorkService = /** @class */ (function (_super) {
9730
9731
  method: 'GET',
9731
9732
  qs: params,
9732
9733
  expectedStatusCodes: [http_status_1.OK]
9733
- })
9734
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
9735
- var _a;
9736
- return __generator(this, function (_b) {
9737
- switch (_b.label) {
9738
- case 0:
9739
- _a = {};
9740
- return [4 /*yield*/, response.json()];
9741
- case 1: return [2 /*return*/, (_a.data = _b.sent(),
9742
- _a)];
9743
- }
9744
- });
9745
- }); })];
9746
- });
9747
- });
9748
- };
9749
- CreativeWorkService.prototype.findMovieById = function (params) {
9750
- return __awaiter(this, void 0, void 0, function () {
9751
- var _this = this;
9752
- return __generator(this, function (_a) {
9753
- return [2 /*return*/, this.fetch({
9754
- uri: "/creativeWorks/movie/" + encodeURIComponent(String(params.id)),
9755
- method: 'GET',
9756
- expectedStatusCodes: [http_status_1.OK]
9757
9734
  })
9758
9735
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
9759
9736
  return [2 /*return*/, response.json()];
@@ -9761,6 +9738,17 @@ var CreativeWorkService = /** @class */ (function (_super) {
9761
9738
  });
9762
9739
  });
9763
9740
  };
9741
+ // discontinue(2025-10-19~)
9742
+ // public async findMovieById(params: {
9743
+ // id: string;
9744
+ // }): Promise<factory.creativeWork.movie.ICreativeWork> {
9745
+ // return this.fetch({
9746
+ // uri: `/creativeWorks/movie/${encodeURIComponent(String(params.id))}`,
9747
+ // method: 'GET',
9748
+ // expectedStatusCodes: [OK]
9749
+ // })
9750
+ // .then(async (response) => response.json());
9751
+ // }
9764
9752
  CreativeWorkService.prototype.updateMovie = function (params) {
9765
9753
  return __awaiter(this, void 0, void 0, function () {
9766
9754
  return __generator(this, function (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "12.5.0-alpha.13",
3
+ "version": "12.5.0-alpha.15",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {