@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
@@ -65,6 +65,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
65
65
  exports.PaymentProductService = void 0;
66
66
  var http_status_1 = require("http-status");
67
67
  var service_1 = require("../service");
68
+ // type IPaymentServiceWithoutCredentials = Omit<
69
+ // factory.service.paymentService.IService,
70
+ // 'availableChannel' | 'potentialAction'
71
+ // > & { id: string };
72
+ // type IKeyOfProjection = Exclude<keyof factory.service.paymentService.IService, 'id' | 'availableChannel' | 'potentialAction'>;
73
+ // type IProjection = {
74
+ // [key in IKeyOfProjection]?: 1;
75
+ // };
68
76
  /**
69
77
  * 決済商品サービス
70
78
  */
@@ -92,25 +100,21 @@ var PaymentProductService = /** @class */ (function (_super) {
92
100
  });
93
101
  });
94
102
  };
95
- /**
96
- * 決済サービス検索
97
- */
98
- PaymentProductService.prototype.searchPaymentServices = function (params) {
99
- return __awaiter(this, void 0, void 0, function () {
100
- var _this = this;
101
- return __generator(this, function (_a) {
102
- return [2 /*return*/, this.fetch({
103
- uri: '/paymentServices',
104
- method: 'GET',
105
- qs: params,
106
- expectedStatusCodes: [http_status_1.OK]
107
- })
108
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
109
- return [2 /*return*/, response.json()];
110
- }); }); })];
111
- });
112
- });
113
- };
103
+ // migrate to admin service(2025-10-18~)
104
+ // /**
105
+ // * 決済サービス検索
106
+ // */
107
+ // public async searchPaymentServices(params: Omit<factory.service.paymentService.ISearchConditions, 'project'> & {
108
+ // $projection?: IProjection;
109
+ // }): Promise<IPaymentServiceWithoutCredentials[]> {
110
+ // return this.fetch({
111
+ // uri: '/paymentServices',
112
+ // method: 'GET',
113
+ // qs: params,
114
+ // expectedStatusCodes: [OK]
115
+ // })
116
+ // .then(async (response) => response.json());
117
+ // }
114
118
  PaymentProductService.prototype.findPaymentServiceById = function (params) {
115
119
  return __awaiter(this, void 0, void 0, function () {
116
120
  var id, query;
@@ -36,11 +36,6 @@ export declare class ProductService extends Service {
36
36
  createIfNotExist(params: factory.product.ICreateParams): Promise<{
37
37
  id: string;
38
38
  }>;
39
- /**
40
- * プロダクト検索
41
- * 公開属性のみ
42
- */
43
- findProducts(params: IFindParams): Promise<IProductAsFindResult[]>;
44
39
  findProductById(params: {
45
40
  id: string;
46
41
  } & {
@@ -113,26 +113,21 @@ var ProductService = /** @class */ (function (_super) {
113
113
  });
114
114
  });
115
115
  };
116
- /**
117
- * プロダクト検索
118
- * 公開属性のみ
119
- */
120
- ProductService.prototype.findProducts = function (params) {
121
- return __awaiter(this, void 0, void 0, function () {
122
- var _this = this;
123
- return __generator(this, function (_a) {
124
- return [2 /*return*/, this.fetch({
125
- uri: BASE_URI,
126
- method: 'GET',
127
- qs: params,
128
- expectedStatusCodes: [http_status_1.OK]
129
- })
130
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
131
- return [2 /*return*/, response.json()];
132
- }); }); })];
133
- });
134
- });
135
- };
116
+ // migrate to admin service(2025-10-18~)
117
+ // /**
118
+ // * プロダクト検索
119
+ // * 公開属性のみ
120
+ // * @deprecated use admin service
121
+ // */
122
+ // public async findProductsLegacy(params: IFindParams): Promise<IProductAsFindResult[]> {
123
+ // return this.fetch({
124
+ // uri: BASE_URI,
125
+ // method: 'GET',
126
+ // qs: params,
127
+ // expectedStatusCodes: [OK]
128
+ // })
129
+ // .then(async (response) => response.json());
130
+ // }
136
131
  ProductService.prototype.findProductById = function (params) {
137
132
  return __awaiter(this, void 0, void 0, function () {
138
133
  var id, query;
@@ -1,6 +1,11 @@
1
1
  import * as factory from '../factory';
2
2
  import { Service } from '../service';
3
- declare type ICategory = Pick<factory.categoryCode.ICategoryCode, 'codeValue' | 'inCodeSet'>;
3
+ declare type ICategory = Pick<factory.categoryCode.ICategoryCode, 'codeValue'> & {
4
+ inCodeSet: {
5
+ typeOf: 'CategoryCodeSet';
6
+ identifier: factory.categoryCode.CategorySetIdentifier.SeatingType;
7
+ };
8
+ };
4
9
  interface IProductModel {
5
10
  id?: string;
6
11
  project: {
@@ -26,7 +26,7 @@ declare type ICreateScreeningEventParams = Omit<factory.event.screeningEvent.ICr
26
26
  export declare class EventService extends Service {
27
27
  /**
28
28
  * イベント冪等複数作成
29
- * イベントコードをキーにして、存在しなければ作成する
29
+ * イベント識別子をキーにして、存在しなければ作成する
30
30
  */
31
31
  createIfNotExistByIdentifier(params: ICreateParamsByIdentifier[], options: {
32
32
  /**
@@ -95,7 +95,7 @@ var EventService = /** @class */ (function (_super) {
95
95
  }
96
96
  /**
97
97
  * イベント冪等複数作成
98
- * イベントコードをキーにして、存在しなければ作成する
98
+ * イベント識別子をキーにして、存在しなければ作成する
99
99
  */
100
100
  EventService.prototype.createIfNotExistByIdentifier = function (params, options) {
101
101
  return __awaiter(this, void 0, void 0, function () {