@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.
- package/example/src/chevre/admin/adminCreateNotesIfNotExistByIdentifier.ts +3 -3
- package/example/src/chevre/admin/findPaymentServices.ts +45 -0
- package/example/src/chevre/admin/findProductHasOfferCatalog.ts +35 -0
- package/example/src/chevre/admin/findProducts.ts +48 -0
- package/example/src/chevre/default/findCategoryCodes.ts +42 -0
- package/example/src/chevre/default/searchEvents.ts +12 -28
- package/example/src/cloud/admin/adminEventsByIdentifier.ts +145 -0
- package/lib/abstract/chevre/categoryCode.d.ts +12 -3
- package/lib/abstract/chevre/categoryCode.js +1 -1
- package/lib/abstract/chevreAdmin/event.d.ts +1 -1
- package/lib/abstract/chevreAdmin/event.js +1 -1
- package/lib/abstract/chevreAdmin/note.d.ts +2 -6
- package/lib/abstract/chevreAdmin/paymentService.d.ts +62 -0
- package/lib/abstract/chevreAdmin/paymentService.js +90 -0
- package/lib/abstract/chevreAdmin/product.d.ts +94 -2
- package/lib/abstract/chevreAdmin/product.js +45 -1
- package/lib/abstract/chevreAdmin.d.ts +9 -0
- package/lib/abstract/chevreAdmin.js +20 -0
- package/lib/abstract/chevreConsole/categoryCode.d.ts +80 -7
- package/lib/abstract/chevreConsole/categoryCode.js +96 -3
- package/lib/abstract/chevreConsole/creativeWork.d.ts +4 -6
- package/lib/abstract/chevreConsole/creativeWork.js +13 -25
- package/lib/abstract/chevreConsole/offerCatalog.d.ts +6 -3
- package/lib/abstract/chevreConsole/offerCatalog.js +13 -8
- package/lib/abstract/chevreConsole/paymentService.d.ts +0 -13
- package/lib/abstract/chevreConsole/paymentService.js +23 -19
- package/lib/abstract/chevreConsole/product.d.ts +0 -5
- package/lib/abstract/chevreConsole/product.js +15 -20
- package/lib/abstract/chevreConsole/productModel.d.ts +6 -1
- package/lib/abstract/cloud/admin/event.d.ts +1 -1
- package/lib/abstract/cloud/admin/event.js +1 -1
- package/lib/bundle.js +951 -710
- 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
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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'
|
|
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 () {
|