@cinerino/sdk 10.6.0-alpha.2 → 10.7.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/playground/public/lib/bundle.js +21 -72
- package/example/src/cloud/transaction/processPlaceOrderUsingTicketIssuedThroughCreditCard.ts +1 -1
- package/example/src/searchProducts.ts +1 -2
- package/lib/abstract/chevre/product.d.ts +3 -3
- package/lib/abstract/chevre/product.js +2 -2
- package/lib/abstract/chevre/seller/factory.d.ts +1 -6
- package/lib/abstract/chevreAdmin/seller.d.ts +1 -1
- package/lib/abstract/cinerino/service/product.d.ts +2 -2
- package/lib/abstract/cinerino/service/product.js +1 -1
- package/lib/bundle.js +3 -3
- package/package.json +2 -2
|
@@ -10092,34 +10092,6 @@ var SellerService = /** @class */ (function (_super) {
|
|
|
10092
10092
|
});
|
|
10093
10093
|
});
|
|
10094
10094
|
};
|
|
10095
|
-
/**
|
|
10096
|
-
* 提供決済サービス検索(public)
|
|
10097
|
-
*/
|
|
10098
|
-
SellerService.prototype.searchPaymentServices = function (params) {
|
|
10099
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
10100
|
-
var _this = this;
|
|
10101
|
-
return __generator(this, function (_a) {
|
|
10102
|
-
return [2 /*return*/, this.fetch({
|
|
10103
|
-
uri: "/sellers/" + params.id + "/paymentServices",
|
|
10104
|
-
method: 'GET',
|
|
10105
|
-
qs: params.qs,
|
|
10106
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
10107
|
-
})
|
|
10108
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
10109
|
-
var _a;
|
|
10110
|
-
return __generator(this, function (_b) {
|
|
10111
|
-
switch (_b.label) {
|
|
10112
|
-
case 0:
|
|
10113
|
-
_a = {};
|
|
10114
|
-
return [4 /*yield*/, response.json()];
|
|
10115
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
10116
|
-
_a)];
|
|
10117
|
-
}
|
|
10118
|
-
});
|
|
10119
|
-
}); })];
|
|
10120
|
-
});
|
|
10121
|
-
});
|
|
10122
|
-
};
|
|
10123
10095
|
/**
|
|
10124
10096
|
* 対応決済方法区分検索
|
|
10125
10097
|
*/
|
|
@@ -15118,9 +15090,9 @@ var ProductService = /** @class */ (function (_super) {
|
|
|
15118
15090
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
15119
15091
|
}
|
|
15120
15092
|
/**
|
|
15121
|
-
*
|
|
15093
|
+
* プロダクトタイプ指定で検索する
|
|
15122
15094
|
*/
|
|
15123
|
-
ProductService.prototype.
|
|
15095
|
+
ProductService.prototype.searchByTypeOf = function (params) {
|
|
15124
15096
|
return __awaiter(this, void 0, void 0, function () {
|
|
15125
15097
|
var _this = this;
|
|
15126
15098
|
return __generator(this, function (_a) {
|
|
@@ -15267,46 +15239,30 @@ var SellerService = /** @class */ (function (_super) {
|
|
|
15267
15239
|
qs: params,
|
|
15268
15240
|
expectedStatusCodes: [http_status_1.OK]
|
|
15269
15241
|
})
|
|
15270
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
15271
|
-
|
|
15272
|
-
|
|
15273
|
-
switch (_b.label) {
|
|
15274
|
-
case 0:
|
|
15275
|
-
_a = {};
|
|
15276
|
-
return [4 /*yield*/, response.json()];
|
|
15277
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
15278
|
-
_a)];
|
|
15279
|
-
}
|
|
15280
|
-
});
|
|
15281
|
-
}); })];
|
|
15242
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
15243
|
+
return [2 /*return*/, response.json()];
|
|
15244
|
+
}); }); })];
|
|
15282
15245
|
});
|
|
15283
15246
|
});
|
|
15284
15247
|
};
|
|
15285
15248
|
/**
|
|
15286
15249
|
* 提供決済サービス検索(public)
|
|
15287
15250
|
*/
|
|
15288
|
-
SellerService.prototype.
|
|
15251
|
+
SellerService.prototype.searchPaymentServicesByProvider = function (params) {
|
|
15289
15252
|
return __awaiter(this, void 0, void 0, function () {
|
|
15253
|
+
var provider, qs;
|
|
15290
15254
|
var _this = this;
|
|
15291
15255
|
return __generator(this, function (_a) {
|
|
15256
|
+
provider = params.provider, qs = params.qs;
|
|
15292
15257
|
return [2 /*return*/, this.fetch({
|
|
15293
|
-
uri: "/sellers/" +
|
|
15258
|
+
uri: "/sellers/" + provider.id + "/paymentServices",
|
|
15294
15259
|
method: 'GET',
|
|
15295
|
-
qs:
|
|
15260
|
+
qs: qs,
|
|
15296
15261
|
expectedStatusCodes: [http_status_1.OK]
|
|
15297
15262
|
})
|
|
15298
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
15299
|
-
|
|
15300
|
-
|
|
15301
|
-
switch (_b.label) {
|
|
15302
|
-
case 0:
|
|
15303
|
-
_a = {};
|
|
15304
|
-
return [4 /*yield*/, response.json()];
|
|
15305
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
15306
|
-
_a)];
|
|
15307
|
-
}
|
|
15308
|
-
});
|
|
15309
|
-
}); })];
|
|
15263
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
15264
|
+
return [2 /*return*/, response.json()];
|
|
15265
|
+
}); }); })];
|
|
15310
15266
|
});
|
|
15311
15267
|
});
|
|
15312
15268
|
};
|
|
@@ -15315,26 +15271,19 @@ var SellerService = /** @class */ (function (_super) {
|
|
|
15315
15271
|
*/
|
|
15316
15272
|
SellerService.prototype.searchPaymentAccepted = function (params) {
|
|
15317
15273
|
return __awaiter(this, void 0, void 0, function () {
|
|
15274
|
+
var id, qs;
|
|
15318
15275
|
var _this = this;
|
|
15319
15276
|
return __generator(this, function (_a) {
|
|
15277
|
+
id = params.id, qs = params.qs;
|
|
15320
15278
|
return [2 /*return*/, this.fetch({
|
|
15321
|
-
uri: "/sellers/" +
|
|
15279
|
+
uri: "/sellers/" + id + "/paymentAccepted",
|
|
15322
15280
|
method: 'GET',
|
|
15323
|
-
qs:
|
|
15281
|
+
qs: qs,
|
|
15324
15282
|
expectedStatusCodes: [http_status_1.OK]
|
|
15325
15283
|
})
|
|
15326
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
15327
|
-
|
|
15328
|
-
|
|
15329
|
-
switch (_b.label) {
|
|
15330
|
-
case 0:
|
|
15331
|
-
_a = {};
|
|
15332
|
-
return [4 /*yield*/, response.json()];
|
|
15333
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
15334
|
-
_a)];
|
|
15335
|
-
}
|
|
15336
|
-
});
|
|
15337
|
-
}); })];
|
|
15284
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
15285
|
+
return [2 /*return*/, response.json()];
|
|
15286
|
+
}); }); })];
|
|
15338
15287
|
});
|
|
15339
15288
|
});
|
|
15340
15289
|
};
|
|
@@ -16570,7 +16519,7 @@ var ProductService = /** @class */ (function (_super) {
|
|
|
16570
16519
|
return _super.call(this, __assign(__assign({}, options), { retryableStatusCodes: [http_status_1.BAD_GATEWAY, http_status_1.FORBIDDEN, http_status_1.UNAUTHORIZED] })) || this;
|
|
16571
16520
|
}
|
|
16572
16521
|
/**
|
|
16573
|
-
*
|
|
16522
|
+
* プロダクトタイプ指定で検索する
|
|
16574
16523
|
*/
|
|
16575
16524
|
ProductService.prototype.search = function (params) {
|
|
16576
16525
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -15,8 +15,7 @@ async function main() {
|
|
|
15
15
|
const { data } = await productService.search({
|
|
16
16
|
limit: 10,
|
|
17
17
|
page: 1,
|
|
18
|
-
|
|
19
|
-
typeOf: { $eq: client.factory.service.paymentService.PaymentServiceType.MovieTicket }
|
|
18
|
+
typeOf: { $eq: client.factory.product.ProductType.EventService }
|
|
20
19
|
});
|
|
21
20
|
console.log(data);
|
|
22
21
|
console.log(data.length, 'data found');
|
|
@@ -15,11 +15,11 @@ interface IProjectionSearchConditions {
|
|
|
15
15
|
*/
|
|
16
16
|
export declare class ProductService extends Service {
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* プロダクトタイプ指定で検索する
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
searchByTypeOf(params: Omit<factory.product.ISearchConditions, 'project' | 'typeOf'> & {
|
|
21
21
|
typeOf: {
|
|
22
|
-
$eq:
|
|
22
|
+
$eq: factory.product.ProductType;
|
|
23
23
|
};
|
|
24
24
|
} & IProjectionSearchConditions): Promise<{
|
|
25
25
|
data: ISearchProductsResult[];
|
|
@@ -74,9 +74,9 @@ var ProductService = /** @class */ (function (_super) {
|
|
|
74
74
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* プロダクトタイプ指定で検索する
|
|
78
78
|
*/
|
|
79
|
-
ProductService.prototype.
|
|
79
|
+
ProductService.prototype.searchByTypeOf = function (params) {
|
|
80
80
|
return __awaiter(this, void 0, void 0, function () {
|
|
81
81
|
var _this = this;
|
|
82
82
|
return __generator(this, function (_a) {
|
|
@@ -8,12 +8,7 @@ export declare type IPaymentServiceByProvider = Pick<factory.service.paymentServ
|
|
|
8
8
|
/**
|
|
9
9
|
* 販売者の提供決済サービス検索条件
|
|
10
10
|
*/
|
|
11
|
-
export declare type ISearchPaymentServiceConditions = Pick<factory.
|
|
12
|
-
typeOf?: {
|
|
13
|
-
$eq?: factory.service.paymentService.PaymentServiceType;
|
|
14
|
-
$in?: factory.service.paymentService.PaymentServiceType[];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
11
|
+
export declare type ISearchPaymentServiceConditions = Pick<factory.service.paymentService.ISearchConditions, 'limit' | 'page' | 'sort' | 'typeOf'>;
|
|
17
12
|
export declare type IPaymentAccepted = Pick<factory.categoryCode.ICategoryCode, 'codeValue' | 'additionalProperty' | 'color' | 'image' | 'name'>;
|
|
18
13
|
export declare type IMakesProductOffer = Pick<factory.product.IOffer, 'availabilityEnds' | 'availabilityStarts' | 'seller' | 'validFrom' | 'validThrough'> & {
|
|
19
14
|
itemOffered: Pick<factory.product.IProduct, 'id' | 'name' | 'typeOf'>;
|
|
@@ -88,7 +88,7 @@ export declare class SellerService extends Service<IOptions> {
|
|
|
88
88
|
/**
|
|
89
89
|
* 検索条件
|
|
90
90
|
*/
|
|
91
|
-
qs: Pick<factory.
|
|
91
|
+
qs: Pick<factory.service.paymentService.ISearchConditions, 'limit' | 'page' | 'id'>;
|
|
92
92
|
}): Promise<ISearchResult<IProvidePaymentService[]>>;
|
|
93
93
|
createProvidesPaymentService(params: {
|
|
94
94
|
/**
|
|
@@ -7,14 +7,14 @@ import { IAdditionalOptions, IOptions, Service } from '../../service';
|
|
|
7
7
|
export declare class ProductService extends Service {
|
|
8
8
|
constructor(options: IAdditionalOptions & Pick<IOptions, 'auth' | 'endpoint' | 'transporter' | 'project' | 'defaultPath'>);
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* プロダクトタイプ指定で検索する
|
|
11
11
|
*/
|
|
12
12
|
search(params: Omit<factory.product.ISearchConditions, 'project' | 'typeOf'> & {
|
|
13
13
|
typeOf: {
|
|
14
14
|
/**
|
|
15
15
|
* プロダクトタイプあるいは決済サービスタイプ
|
|
16
16
|
*/
|
|
17
|
-
$eq:
|
|
17
|
+
$eq: factory.product.ProductType.EventService | factory.product.ProductType.Product | factory.service.paymentService.PaymentServiceType.CreditCard;
|
|
18
18
|
};
|
|
19
19
|
}): Promise<{
|
|
20
20
|
data: ISearchProductsResult[];
|
|
@@ -74,7 +74,7 @@ var ProductService = /** @class */ (function (_super) {
|
|
|
74
74
|
return _super.call(this, __assign(__assign({}, options), { retryableStatusCodes: [http_status_1.BAD_GATEWAY, http_status_1.FORBIDDEN, http_status_1.UNAUTHORIZED] })) || this;
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* プロダクトタイプ指定で検索する
|
|
78
78
|
*/
|
|
79
79
|
ProductService.prototype.search = function (params) {
|
|
80
80
|
return __awaiter(this, void 0, void 0, function () {
|
package/lib/bundle.js
CHANGED
|
@@ -1177,9 +1177,9 @@ var ProductService = /** @class */ (function (_super) {
|
|
|
1177
1177
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1178
1178
|
}
|
|
1179
1179
|
/**
|
|
1180
|
-
*
|
|
1180
|
+
* プロダクトタイプ指定で検索する
|
|
1181
1181
|
*/
|
|
1182
|
-
ProductService.prototype.
|
|
1182
|
+
ProductService.prototype.searchByTypeOf = function (params) {
|
|
1183
1183
|
return __awaiter(this, void 0, void 0, function () {
|
|
1184
1184
|
var _this = this;
|
|
1185
1185
|
return __generator(this, function (_a) {
|
|
@@ -16519,7 +16519,7 @@ var ProductService = /** @class */ (function (_super) {
|
|
|
16519
16519
|
return _super.call(this, __assign(__assign({}, options), { retryableStatusCodes: [http_status_1.BAD_GATEWAY, http_status_1.FORBIDDEN, http_status_1.UNAUTHORIZED] })) || this;
|
|
16520
16520
|
}
|
|
16521
16521
|
/**
|
|
16522
|
-
*
|
|
16522
|
+
* プロダクトタイプ指定で検索する
|
|
16523
16523
|
*/
|
|
16524
16524
|
ProductService.prototype.search = function (params) {
|
|
16525
16525
|
return __awaiter(this, void 0, void 0, function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.7.0-alpha.0",
|
|
4
4
|
"description": "Cinerino SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"browser": {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"watchify": "^3.11.1"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@chevre/factory": "4.381.0-alpha.
|
|
95
|
+
"@chevre/factory": "4.381.0-alpha.9",
|
|
96
96
|
"debug": "3.2.7",
|
|
97
97
|
"http-status": "1.7.4",
|
|
98
98
|
"idtoken-verifier": "2.0.3",
|