@cinerino/sdk 3.157.1 → 3.159.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/account.d.ts +1 -1
- package/lib/abstract/chevre/accountTitle.d.ts +1 -1
- package/lib/abstract/chevre/accountTransaction.d.ts +1 -1
- package/lib/abstract/chevre/accountingReport.d.ts +1 -1
- package/lib/abstract/chevre/authorization.d.ts +1 -1
- package/lib/abstract/chevre/merchantReturnPolicy.d.ts +1 -1
- package/lib/abstract/chevre/offerItemCondition.d.ts +1 -1
- package/lib/abstract/chevre/ownershipInfo.d.ts +1 -1
- package/lib/abstract/chevre/permit.d.ts +1 -1
- package/lib/abstract/chevre/product.d.ts +5 -1
- package/lib/abstract/chevre/seller/factory.d.ts +1 -1
- package/lib/abstract/chevre/seller.d.ts +12 -3
- package/lib/abstract/chevre/seller.js +2 -15
- package/lib/abstract/chevre/task.d.ts +1 -1
- package/lib/abstract/chevre/transaction/moneyTransfer.d.ts +1 -1
- package/lib/abstract/chevre/transaction/placeOrder.d.ts +1 -1
- package/lib/abstract/chevre/transaction/returnOrder.d.ts +1 -1
- package/lib/abstract/pecorino/accountTransaction.d.ts +1 -1
- package/lib/bundle.js +2 -15
- package/package.json +1 -1
|
@@ -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) {
|
|
@@ -73,5 +73,5 @@ export declare class AccountService extends Service {
|
|
|
73
73
|
/**
|
|
74
74
|
* 口座を検索する
|
|
75
75
|
*/
|
|
76
|
-
search(params: factory.account.ISearchConditions): Promise<ISearchResult<factory.account.IAccount[]>>;
|
|
76
|
+
search(params: Omit<factory.account.ISearchConditions, 'project'>): Promise<ISearchResult<factory.account.IAccount[]>>;
|
|
77
77
|
}
|
|
@@ -60,7 +60,7 @@ export declare class AccountTitleService extends Service {
|
|
|
60
60
|
/**
|
|
61
61
|
* 細目検索
|
|
62
62
|
*/
|
|
63
|
-
search(params: factory.accountTitle.ISearchConditions): Promise<{
|
|
63
|
+
search(params: Omit<factory.accountTitle.ISearchConditions, 'project'>): Promise<{
|
|
64
64
|
data: factory.accountTitle.IAccountTitle[];
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -7,7 +7,7 @@ export declare class AccountTransactionService extends Service {
|
|
|
7
7
|
/**
|
|
8
8
|
* 取引検索
|
|
9
9
|
*/
|
|
10
|
-
search(params: factory.account.transaction.ISearchConditions & {
|
|
10
|
+
search(params: Omit<factory.account.transaction.ISearchConditions, 'project'> & {
|
|
11
11
|
/**
|
|
12
12
|
* 許可証発行元のプロダクト
|
|
13
13
|
*/
|
|
@@ -7,5 +7,5 @@ export declare class AccountingReportService extends Service {
|
|
|
7
7
|
/**
|
|
8
8
|
* 検索
|
|
9
9
|
*/
|
|
10
|
-
search(params: factory.report.accountingReport.ISearchConditions): Promise<ISearchResult<factory.report.accountingReport.IReport[]>>;
|
|
10
|
+
search(params: Omit<factory.report.accountingReport.ISearchConditions, 'project'>): Promise<ISearchResult<factory.report.accountingReport.IReport[]>>;
|
|
11
11
|
}
|
|
@@ -19,5 +19,5 @@ export declare class AuthorizationService extends Service {
|
|
|
19
19
|
/**
|
|
20
20
|
* 承認検索
|
|
21
21
|
*/
|
|
22
|
-
search(params: factory.authorization.ISearchConditions): Promise<ISearchResult<factory.authorization.IAuthorization[]>>;
|
|
22
|
+
search(params: Omit<factory.authorization.ISearchConditions, 'project'>): Promise<ISearchResult<factory.authorization.IAuthorization[]>>;
|
|
23
23
|
}
|
|
@@ -5,7 +5,7 @@ import { ISearchResult, IUnset, Service } from '../service';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class MerchantReturnPolicyService extends Service {
|
|
7
7
|
create(params: factory.unitPriceOffer.IOfferMerchantReturnPolicy): Promise<factory.unitPriceOffer.IOfferMerchantReturnPolicy>;
|
|
8
|
-
search(params: factory.unitPriceOffer.IOfferMerchantReturnPolicySearchConditions): Promise<ISearchResult<factory.unitPriceOffer.IOfferMerchantReturnPolicy[]>>;
|
|
8
|
+
search(params: Omit<factory.unitPriceOffer.IOfferMerchantReturnPolicySearchConditions, 'project'>): Promise<ISearchResult<factory.unitPriceOffer.IOfferMerchantReturnPolicy[]>>;
|
|
9
9
|
findById(params: {
|
|
10
10
|
id: string;
|
|
11
11
|
}): Promise<factory.unitPriceOffer.IOfferMerchantReturnPolicy>;
|
|
@@ -5,7 +5,7 @@ import { IUnset, Service } from '../service';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class OfferItemConditionService extends Service {
|
|
7
7
|
create(params: factory.offerItemCondition.IOfferItemCondition): Promise<factory.offerItemCondition.IOfferItemCondition>;
|
|
8
|
-
search(params: factory.offerItemCondition.ISearchConditions): Promise<{
|
|
8
|
+
search(params: Omit<factory.offerItemCondition.ISearchConditions, 'project'>): Promise<{
|
|
9
9
|
data: factory.offerItemCondition.IOfferItemCondition[];
|
|
10
10
|
}>;
|
|
11
11
|
findById(params: {
|
|
@@ -22,7 +22,7 @@ export declare class PermitService extends Service {
|
|
|
22
22
|
/**
|
|
23
23
|
* 検索
|
|
24
24
|
*/
|
|
25
|
-
search(params: factory.product.IServiceOutputSearchConditions): Promise<ISearchResult<factory.permit.IPermit[]>>;
|
|
25
|
+
search(params: Omit<factory.product.IServiceOutputSearchConditions, 'project'>): Promise<ISearchResult<factory.permit.IPermit[]>>;
|
|
26
26
|
/**
|
|
27
27
|
* 許可証照会
|
|
28
28
|
* 存在しない場合、ステータスコード404を返します
|
|
@@ -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: {
|
|
@@ -2,7 +2,7 @@ import * as factory from '../../factory';
|
|
|
2
2
|
export declare type IReadableProviderCredentials = Pick<factory.service.paymentService.IProviderCredentials, 'shopId' | 'tokenizationCode' | 'paymentUrl'>;
|
|
3
3
|
export declare type IPaymentServiceByProvider = Pick<factory.service.paymentService.IService, 'name' | 'description' | 'typeOf' | 'id' | 'productID' | 'serviceType' | 'additionalProperty'> & {
|
|
4
4
|
provider?: {
|
|
5
|
-
|
|
5
|
+
credentials?: IReadableProviderCredentials;
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
8
|
export declare type IProvidePaymentService = Pick<factory.service.paymentService.IService, 'id' | 'name' | 'typeOf'> & {
|
|
@@ -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) {
|
|
@@ -19,5 +19,5 @@ export declare class TaskService extends Service {
|
|
|
19
19
|
/**
|
|
20
20
|
* タスク検索
|
|
21
21
|
*/
|
|
22
|
-
search(params: factory.task.ISearchConditions & IProjectionSearchConditions): Promise<ISearchResult<factory.task.ITask<factory.taskName>[]>>;
|
|
22
|
+
search(params: Omit<factory.task.ISearchConditions, 'project'> & IProjectionSearchConditions): Promise<ISearchResult<factory.task.ITask<factory.taskName>[]>>;
|
|
23
23
|
}
|
|
@@ -36,7 +36,7 @@ export declare class MoneyTransferTransactionService extends Service implements
|
|
|
36
36
|
/**
|
|
37
37
|
* 取引検索
|
|
38
38
|
*/
|
|
39
|
-
search(params: factory.transaction.ISearchConditions<factory.transactionType.MoneyTransfer>): Promise<ISearchResult<factory.transaction.ITransaction<factory.transactionType.MoneyTransfer>[]>>;
|
|
39
|
+
search(params: Omit<factory.transaction.ISearchConditions<factory.transactionType.MoneyTransfer>, 'project'>): Promise<ISearchResult<factory.transaction.ITransaction<factory.transactionType.MoneyTransfer>[]>>;
|
|
40
40
|
/**
|
|
41
41
|
* 取引に対するアクションを検索する
|
|
42
42
|
*/
|
|
@@ -64,7 +64,7 @@ export declare class PlaceOrderTransactionService extends Service implements Tra
|
|
|
64
64
|
/**
|
|
65
65
|
* 取引検索
|
|
66
66
|
*/
|
|
67
|
-
search(params: factory.transaction.ISearchConditions<factory.transactionType.PlaceOrder>): Promise<ISearchResult<factory.transaction.ITransaction<factory.transactionType.PlaceOrder>[]>>;
|
|
67
|
+
search(params: Omit<factory.transaction.ISearchConditions<factory.transactionType.PlaceOrder>, 'project'>): Promise<ISearchResult<factory.transaction.ITransaction<factory.transactionType.PlaceOrder>[]>>;
|
|
68
68
|
/**
|
|
69
69
|
* 取引に対するアクションを検索する
|
|
70
70
|
*/
|
|
@@ -9,7 +9,7 @@ export declare class ReturnOrderTransactionService extends Service implements Tr
|
|
|
9
9
|
/**
|
|
10
10
|
* 取引検索
|
|
11
11
|
*/
|
|
12
|
-
search(params: factory.transaction.ISearchConditions<factory.transactionType.ReturnOrder>): Promise<ISearchResult<factory.transaction.ITransaction<factory.transactionType.ReturnOrder>[]>>;
|
|
12
|
+
search(params: Omit<factory.transaction.ISearchConditions<factory.transactionType.ReturnOrder>, 'project'>): Promise<ISearchResult<factory.transaction.ITransaction<factory.transactionType.ReturnOrder>[]>>;
|
|
13
13
|
/**
|
|
14
14
|
* 取引を開始する
|
|
15
15
|
*/
|
|
@@ -7,7 +7,7 @@ export declare class AccountTransactionService extends Service {
|
|
|
7
7
|
/**
|
|
8
8
|
* 取引検索
|
|
9
9
|
*/
|
|
10
|
-
search(params: factory.account.transaction.ISearchConditions): Promise<ISearchResult<Pick<factory.account.transaction.ITransaction<factory.account.transactionType>, 'id' | 'status' | 'transactionNumber' | 'agent' | 'endDate' | 'expires' | 'object' | 'project' | 'recipient' | 'startDate' | 'typeOf'>[]>>;
|
|
10
|
+
search(params: Omit<factory.account.transaction.ISearchConditions, 'project'>): Promise<ISearchResult<Pick<factory.account.transaction.ITransaction<factory.account.transactionType>, 'id' | 'status' | 'transactionNumber' | 'agent' | 'endDate' | 'expires' | 'object' | 'project' | 'recipient' | 'startDate' | 'typeOf'>[]>>;
|
|
11
11
|
/**
|
|
12
12
|
* 取引開始
|
|
13
13
|
*/
|
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) {
|