@cinerino/sdk 3.157.0 → 3.158.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 +2 -15
- package/example/src/chevre/assetTransaction/processPayMGTicket.ts +1 -2
- package/example/src/chevre/assetTransaction/processPayMovieTicket.ts +1 -1
- package/example/src/chevre/assetTransaction/processPublishPaymentUrl.ts +1 -1
- package/example/src/chevre/assetTransaction/processRefundCreditCard.ts +1 -1
- package/example/src/chevre/transaction/processPlaceOrder.ts +1 -1
- package/lib/abstract/chevre/product.d.ts +5 -1
- package/lib/abstract/chevre/seller.d.ts +12 -3
- package/lib/abstract/chevre/seller.js +2 -15
- package/lib/bundle.js +2 -15
- package/package.json +2 -2
|
@@ -8442,17 +8442,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
8442
8442
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
8443
8443
|
}
|
|
8444
8444
|
};
|
|
8445
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
8446
|
-
var t = {};
|
|
8447
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
8448
|
-
t[p] = s[p];
|
|
8449
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
8450
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8451
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8452
|
-
t[p[i]] = s[p[i]];
|
|
8453
|
-
}
|
|
8454
|
-
return t;
|
|
8455
|
-
};
|
|
8456
8445
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8457
8446
|
exports.SellerService = void 0;
|
|
8458
8447
|
var http_status_1 = require("http-status");
|
|
@@ -8489,14 +8478,12 @@ var SellerService = /** @class */ (function (_super) {
|
|
|
8489
8478
|
*/
|
|
8490
8479
|
SellerService.prototype.findById = function (params) {
|
|
8491
8480
|
return __awaiter(this, void 0, void 0, function () {
|
|
8492
|
-
var id, query;
|
|
8493
8481
|
var _this = this;
|
|
8494
8482
|
return __generator(this, function (_a) {
|
|
8495
|
-
id = params.id, query = __rest(params, ["id"]);
|
|
8496
8483
|
return [2 /*return*/, this.fetch({
|
|
8497
|
-
uri: "/sellers/" + id,
|
|
8484
|
+
uri: "/sellers/" + params.id,
|
|
8498
8485
|
method: 'GET',
|
|
8499
|
-
qs:
|
|
8486
|
+
qs: params.qs,
|
|
8500
8487
|
expectedStatusCodes: [http_status_1.OK]
|
|
8501
8488
|
})
|
|
8502
8489
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -25,8 +25,7 @@ const sellerService = new client.chevre.service.Seller({
|
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
async function main() {
|
|
28
|
-
|
|
29
|
-
const searchSellersResult = await sellerService.search({ limit: 1 });
|
|
28
|
+
const searchSellersResult = await sellerService.search({ limit: 1, $projection: {} });
|
|
30
29
|
const seller = searchSellersResult.data[0];
|
|
31
30
|
|
|
32
31
|
const transactionNumber = `CIN${(new Date()).valueOf()}`;
|
|
@@ -27,7 +27,7 @@ const sellerService = new client.chevre.service.Seller({
|
|
|
27
27
|
|
|
28
28
|
async function main() {
|
|
29
29
|
|
|
30
|
-
const searchSellersResult = await sellerService.search({ limit: 1 });
|
|
30
|
+
const searchSellersResult = await sellerService.search({ limit: 1, $projection: {} });
|
|
31
31
|
const seller = searchSellersResult.data[0];
|
|
32
32
|
|
|
33
33
|
const transactionNumber = `CIN${(new Date()).valueOf()}`;
|
|
@@ -26,7 +26,7 @@ const sellerService = new client.chevre.service.Seller({
|
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
async function main() {
|
|
29
|
-
const searchSellersResult = await sellerService.search({ limit: 1 });
|
|
29
|
+
const searchSellersResult = await sellerService.search({ limit: 1, $projection: {} });
|
|
30
30
|
const seller = searchSellersResult.data[0];
|
|
31
31
|
|
|
32
32
|
const transactionNumber = `CIN${(new Date()).valueOf()}`;
|
|
@@ -27,7 +27,7 @@ const sellerService = new client.chevre.service.Seller({
|
|
|
27
27
|
|
|
28
28
|
async function main() {
|
|
29
29
|
|
|
30
|
-
const searchSellersResult = await sellerService.search({ limit: 1 });
|
|
30
|
+
const searchSellersResult = await sellerService.search({ limit: 1, $projection: {} });
|
|
31
31
|
const seller = searchSellersResult.data[0];
|
|
32
32
|
|
|
33
33
|
const transactionNumber = `CIN${(new Date()).valueOf()}`;
|
|
@@ -39,7 +39,7 @@ async function main() {
|
|
|
39
39
|
console.log('profile found');
|
|
40
40
|
|
|
41
41
|
// 販売劇場検索
|
|
42
|
-
const searchSellersResult = await sellerService.search({});
|
|
42
|
+
const searchSellersResult = await sellerService.search({ $projection: {} });
|
|
43
43
|
// tslint:disable-next-line:insecure-random
|
|
44
44
|
const seller = searchSellersResult.data[Math.floor(searchSellersResult.data.length * Math.random())];
|
|
45
45
|
if (seller === undefined) {
|
|
@@ -19,7 +19,11 @@ export declare class ProductService extends Service {
|
|
|
19
19
|
/**
|
|
20
20
|
* 検索
|
|
21
21
|
*/
|
|
22
|
-
search(params: Omit<factory.product.ISearchConditions, 'project'> &
|
|
22
|
+
search(params: Omit<factory.product.ISearchConditions, 'project'> & {
|
|
23
|
+
$projection: {
|
|
24
|
+
[key: string]: 0 | 1;
|
|
25
|
+
};
|
|
26
|
+
}): Promise<{
|
|
23
27
|
data: ISearchProductsResult[];
|
|
24
28
|
}>;
|
|
25
29
|
findById(params: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
|
-
import {
|
|
2
|
+
import { ISearchResult, IUnset, Service } from '../service';
|
|
3
3
|
import { IPaymentAccepted, IPaymentServiceByProvider, IProvidePaymentService, ISearchPaymentServiceConditions } from './seller/factory';
|
|
4
4
|
/**
|
|
5
5
|
* 販売者サービス
|
|
@@ -14,11 +14,20 @@ export declare class SellerService extends Service {
|
|
|
14
14
|
*/
|
|
15
15
|
findById(params: {
|
|
16
16
|
id: string;
|
|
17
|
-
|
|
17
|
+
qs: {
|
|
18
|
+
$projection: {
|
|
19
|
+
[key: string]: 0 | 1;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}): Promise<factory.seller.ISeller>;
|
|
18
23
|
/**
|
|
19
24
|
* 販売者検索
|
|
20
25
|
*/
|
|
21
|
-
search(params: Omit<factory.seller.ISearchConditions, 'project'> &
|
|
26
|
+
search(params: Omit<factory.seller.ISearchConditions, 'project'> & {
|
|
27
|
+
$projection: {
|
|
28
|
+
[key: string]: 0 | 1;
|
|
29
|
+
};
|
|
30
|
+
}): Promise<ISearchResult<Omit<factory.seller.ISeller, 'hasMerchantReturnPolicy' | 'makesOffer'>[]>>;
|
|
22
31
|
/**
|
|
23
32
|
* 販売者編集
|
|
24
33
|
*/
|
|
@@ -50,17 +50,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50
50
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
54
|
-
var t = {};
|
|
55
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
56
|
-
t[p] = s[p];
|
|
57
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
58
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
59
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
60
|
-
t[p[i]] = s[p[i]];
|
|
61
|
-
}
|
|
62
|
-
return t;
|
|
63
|
-
};
|
|
64
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
54
|
exports.SellerService = void 0;
|
|
66
55
|
var http_status_1 = require("http-status");
|
|
@@ -97,14 +86,12 @@ var SellerService = /** @class */ (function (_super) {
|
|
|
97
86
|
*/
|
|
98
87
|
SellerService.prototype.findById = function (params) {
|
|
99
88
|
return __awaiter(this, void 0, void 0, function () {
|
|
100
|
-
var id, query;
|
|
101
89
|
var _this = this;
|
|
102
90
|
return __generator(this, function (_a) {
|
|
103
|
-
id = params.id, query = __rest(params, ["id"]);
|
|
104
91
|
return [2 /*return*/, this.fetch({
|
|
105
|
-
uri: "/sellers/" + id,
|
|
92
|
+
uri: "/sellers/" + params.id,
|
|
106
93
|
method: 'GET',
|
|
107
|
-
qs:
|
|
94
|
+
qs: params.qs,
|
|
108
95
|
expectedStatusCodes: [http_status_1.OK]
|
|
109
96
|
})
|
|
110
97
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
package/lib/bundle.js
CHANGED
|
@@ -8442,17 +8442,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
8442
8442
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
8443
8443
|
}
|
|
8444
8444
|
};
|
|
8445
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
8446
|
-
var t = {};
|
|
8447
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
8448
|
-
t[p] = s[p];
|
|
8449
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
8450
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8451
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8452
|
-
t[p[i]] = s[p[i]];
|
|
8453
|
-
}
|
|
8454
|
-
return t;
|
|
8455
|
-
};
|
|
8456
8445
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8457
8446
|
exports.SellerService = void 0;
|
|
8458
8447
|
var http_status_1 = require("http-status");
|
|
@@ -8489,14 +8478,12 @@ var SellerService = /** @class */ (function (_super) {
|
|
|
8489
8478
|
*/
|
|
8490
8479
|
SellerService.prototype.findById = function (params) {
|
|
8491
8480
|
return __awaiter(this, void 0, void 0, function () {
|
|
8492
|
-
var id, query;
|
|
8493
8481
|
var _this = this;
|
|
8494
8482
|
return __generator(this, function (_a) {
|
|
8495
|
-
id = params.id, query = __rest(params, ["id"]);
|
|
8496
8483
|
return [2 /*return*/, this.fetch({
|
|
8497
|
-
uri: "/sellers/" + id,
|
|
8484
|
+
uri: "/sellers/" + params.id,
|
|
8498
8485
|
method: 'GET',
|
|
8499
|
-
qs:
|
|
8486
|
+
qs: params.qs,
|
|
8500
8487
|
expectedStatusCodes: [http_status_1.OK]
|
|
8501
8488
|
})
|
|
8502
8489
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.158.0",
|
|
4
4
|
"description": "Cinerino SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"browser": {
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"watchify": "^3.11.1"
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
|
-
"@chevre/factory": "4.313.0
|
|
100
|
+
"@chevre/factory": "4.313.0",
|
|
101
101
|
"debug": "^3.2.6",
|
|
102
102
|
"http-status": "^1.4.2",
|
|
103
103
|
"idtoken-verifier": "^2.0.3",
|