@cinerino/sdk 12.5.0-alpha.8 → 12.5.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 +1 -1
- 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/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/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 +44 -7
- package/lib/abstract/chevreConsole/categoryCode.js +46 -2
- 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 +901 -709
- package/package.json +2 -2
|
@@ -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:
|
|
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,21 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
|
-
import {
|
|
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
|
+
};
|
|
3
19
|
/**
|
|
4
20
|
* 区分サービス
|
|
5
21
|
*/
|
|
@@ -7,7 +23,9 @@ export declare class CategoryCodeService extends Service {
|
|
|
7
23
|
/**
|
|
8
24
|
* 作成
|
|
9
25
|
*/
|
|
10
|
-
create(params: factory.categoryCode.ICategoryCode
|
|
26
|
+
create(params: factory.categoryCode.ICategoryCode & {
|
|
27
|
+
$unset?: never;
|
|
28
|
+
}): Promise<{
|
|
11
29
|
/**
|
|
12
30
|
* 区分ID
|
|
13
31
|
*/
|
|
@@ -16,14 +34,33 @@ export declare class CategoryCodeService extends Service {
|
|
|
16
34
|
/**
|
|
17
35
|
* 検索
|
|
18
36
|
*/
|
|
19
|
-
search(params:
|
|
37
|
+
search(params: IFindParamsExceptMovieTicketType): Promise<{
|
|
20
38
|
data: factory.categoryCode.ICategoryCode[];
|
|
21
39
|
}>;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
40
|
+
/**
|
|
41
|
+
* 決済カード区分を除外して区分を検索する
|
|
42
|
+
*/
|
|
43
|
+
findCategoryCodesExceptMovieTicketTypes(params: Omit<factory.categoryCode.ISearchConditions, 'project'> & {
|
|
44
|
+
excludeMovieTicketType?: boolean;
|
|
45
|
+
}): Promise<ICategoryCodeExceptMovieTicketType[]>;
|
|
46
|
+
/**
|
|
47
|
+
* 決済カード区分検索
|
|
48
|
+
* support(2025-10-21~)
|
|
49
|
+
*/
|
|
50
|
+
findMovieTicketTypes(params: Pick<factory.categoryCode.ISearchConditions, 'additionalProperty' | 'codeValue' | 'id' | 'name' | 'paymentMethod' | 'sort'> & {
|
|
51
|
+
limit: number;
|
|
52
|
+
page: number;
|
|
53
|
+
inCodeSet: {
|
|
54
|
+
identifier: {
|
|
55
|
+
$eq: factory.categoryCode.CategorySetIdentifier.MovieTicketType;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}): Promise<factory.categoryCode.ICategoryCode[]>;
|
|
59
|
+
update(params: factory.categoryCode.ICategoryCode & {
|
|
60
|
+
$unset?: never;
|
|
61
|
+
}): Promise<void>;
|
|
26
62
|
deleteById(params: {
|
|
27
63
|
id: string;
|
|
28
64
|
}): Promise<void>;
|
|
29
65
|
}
|
|
66
|
+
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,37 @@ var CategoryCodeService = /** @class */ (function (_super) {
|
|
|
109
120
|
});
|
|
110
121
|
});
|
|
111
122
|
};
|
|
112
|
-
|
|
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:
|
|
131
|
+
uri: '/categoryCodes',
|
|
118
132
|
method: 'GET',
|
|
133
|
+
qs: __assign(__assign({}, params), { excludeMovieTicketType: true }),
|
|
134
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
135
|
+
})
|
|
136
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
137
|
+
return [2 /*return*/, response.json()];
|
|
138
|
+
}); }); })];
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* 決済カード区分検索
|
|
144
|
+
* support(2025-10-21~)
|
|
145
|
+
*/
|
|
146
|
+
CategoryCodeService.prototype.findMovieTicketTypes = function (params) {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
148
|
+
var _this = this;
|
|
149
|
+
return __generator(this, function (_a) {
|
|
150
|
+
return [2 /*return*/, this.fetch({
|
|
151
|
+
uri: '/movieTicketTypes',
|
|
152
|
+
method: 'GET',
|
|
153
|
+
qs: params,
|
|
119
154
|
expectedStatusCodes: [http_status_1.OK]
|
|
120
155
|
})
|
|
121
156
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -124,6 +159,15 @@ var CategoryCodeService = /** @class */ (function (_super) {
|
|
|
124
159
|
});
|
|
125
160
|
});
|
|
126
161
|
};
|
|
162
|
+
// discontinue(2025-10-21~)
|
|
163
|
+
// public async findById(params: { id: string }): Promise<factory.categoryCode.ICategoryCode> {
|
|
164
|
+
// return this.fetch({
|
|
165
|
+
// uri: `/categoryCodes/${encodeURIComponent(String(params.id))}`,
|
|
166
|
+
// method: 'GET',
|
|
167
|
+
// expectedStatusCodes: [OK]
|
|
168
|
+
// })
|
|
169
|
+
// .then(async (response) => response.json());
|
|
170
|
+
// }
|
|
127
171
|
CategoryCodeService.prototype.update = function (params) {
|
|
128
172
|
return __awaiter(this, void 0, void 0, function () {
|
|
129
173
|
return __generator(this, function (_a) {
|
|
@@ -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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
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
|
-
|
|
45
|
+
updateManyOfferCatalogsByIds(params: {
|
|
45
46
|
id: {
|
|
46
47
|
$in: string[];
|
|
47
48
|
};
|
|
48
49
|
$push: {
|
|
49
50
|
itemListElement: {
|
|
50
|
-
$each: factory.offerCatalog.
|
|
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.
|
|
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:
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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'> & {
|
|
@@ -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 () {
|