@cinerino/sdk 11.2.0-alpha.2 → 11.2.0-alpha.3
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/lib/abstract/chevre/product.d.ts +16 -11
- package/lib/abstract/chevre/product.js +25 -23
- package/lib/bundle.js +25 -23
- package/package.json +1 -1
|
@@ -44,19 +44,24 @@ export interface ISearchProductModelConditions {
|
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* プロダクト検索条件
|
|
48
|
+
*/
|
|
49
|
+
export interface ISearchConditions {
|
|
50
|
+
typeOf: factory.product.ProductType;
|
|
51
|
+
/**
|
|
52
|
+
* max: 100
|
|
53
|
+
*/
|
|
54
|
+
limit: number;
|
|
55
|
+
page: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* プロダクト(興行、アドオンなど)サービス
|
|
48
59
|
*/
|
|
49
60
|
export declare class ProductService extends Service {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}): Promise<IProductWithoutCredentials[]>;
|
|
55
|
-
searchPaymentServices(params: Omit<factory.product.ISearchConditions, 'project' | 'typeOf'> & {
|
|
56
|
-
typeOf: {
|
|
57
|
-
$eq: factory.service.paymentService.PaymentServiceType.CreditCard;
|
|
58
|
-
};
|
|
59
|
-
}): Promise<IPaymentServiceWithoutCredentials[]>;
|
|
61
|
+
/**
|
|
62
|
+
* プロダクトタイプ指定でプロダクトを検索する
|
|
63
|
+
*/
|
|
64
|
+
findProducts(params: ISearchConditions): Promise<IProductWithoutCredentials[]>;
|
|
60
65
|
/**
|
|
61
66
|
* オファー検索
|
|
62
67
|
*/
|
|
@@ -66,41 +66,26 @@ exports.ProductService = void 0;
|
|
|
66
66
|
var http_status_1 = require("http-status");
|
|
67
67
|
var service_1 = require("../service");
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* プロダクト(興行、アドオンなど)サービス
|
|
70
70
|
*/
|
|
71
71
|
var ProductService = /** @class */ (function (_super) {
|
|
72
72
|
__extends(ProductService, _super);
|
|
73
73
|
function ProductService() {
|
|
74
74
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
var _this = this;
|
|
81
|
-
return __generator(this, function (_a) {
|
|
82
|
-
return [2 /*return*/, this.fetch({
|
|
83
|
-
uri: '/products',
|
|
84
|
-
method: 'GET',
|
|
85
|
-
qs: params,
|
|
86
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
87
|
-
})
|
|
88
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
89
|
-
return [2 /*return*/, response.json()];
|
|
90
|
-
}); }); })];
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
ProductService.prototype.searchPaymentServices = function (params
|
|
95
|
-
// & IProjectionSearchConditions // discontinue(2024-10-21~)
|
|
96
|
-
) {
|
|
76
|
+
/**
|
|
77
|
+
* プロダクトタイプ指定でプロダクトを検索する
|
|
78
|
+
*/
|
|
79
|
+
ProductService.prototype.findProducts = function (params) {
|
|
97
80
|
return __awaiter(this, void 0, void 0, function () {
|
|
81
|
+
var typeOf, limit, page;
|
|
98
82
|
var _this = this;
|
|
99
83
|
return __generator(this, function (_a) {
|
|
84
|
+
typeOf = params.typeOf, limit = params.limit, page = params.page;
|
|
100
85
|
return [2 /*return*/, this.fetch({
|
|
101
86
|
uri: '/products',
|
|
102
87
|
method: 'GET',
|
|
103
|
-
qs:
|
|
88
|
+
qs: { typeOf: typeOf, limit: limit, page: page },
|
|
104
89
|
expectedStatusCodes: [http_status_1.OK]
|
|
105
90
|
})
|
|
106
91
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -109,6 +94,23 @@ var ProductService = /** @class */ (function (_super) {
|
|
|
109
94
|
});
|
|
110
95
|
});
|
|
111
96
|
};
|
|
97
|
+
// discontinue(2025-08-20~)
|
|
98
|
+
// public async searchPaymentServices(params: Omit<factory.product.ISearchConditions, 'project' | 'typeOf'> & {
|
|
99
|
+
// // 必須化(2023-12-18~)
|
|
100
|
+
// typeOf: {
|
|
101
|
+
// $eq: factory.service.paymentService.PaymentServiceType.CreditCard;
|
|
102
|
+
// };
|
|
103
|
+
// }
|
|
104
|
+
// // & IProjectionSearchConditions // discontinue(2024-10-21~)
|
|
105
|
+
// ): Promise<IPaymentServiceWithoutCredentials[]> {
|
|
106
|
+
// return this.fetch({
|
|
107
|
+
// uri: '/products',
|
|
108
|
+
// method: 'GET',
|
|
109
|
+
// qs: params,
|
|
110
|
+
// expectedStatusCodes: [OK]
|
|
111
|
+
// })
|
|
112
|
+
// .then(async (response) => response.json());
|
|
113
|
+
// }
|
|
112
114
|
/**
|
|
113
115
|
* オファー検索
|
|
114
116
|
*/
|
package/lib/bundle.js
CHANGED
|
@@ -1426,41 +1426,26 @@ exports.ProductService = void 0;
|
|
|
1426
1426
|
var http_status_1 = require("http-status");
|
|
1427
1427
|
var service_1 = require("../service");
|
|
1428
1428
|
/**
|
|
1429
|
-
*
|
|
1429
|
+
* プロダクト(興行、アドオンなど)サービス
|
|
1430
1430
|
*/
|
|
1431
1431
|
var ProductService = /** @class */ (function (_super) {
|
|
1432
1432
|
__extends(ProductService, _super);
|
|
1433
1433
|
function ProductService() {
|
|
1434
1434
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1435
1435
|
}
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
var _this = this;
|
|
1441
|
-
return __generator(this, function (_a) {
|
|
1442
|
-
return [2 /*return*/, this.fetch({
|
|
1443
|
-
uri: '/products',
|
|
1444
|
-
method: 'GET',
|
|
1445
|
-
qs: params,
|
|
1446
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
1447
|
-
})
|
|
1448
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1449
|
-
return [2 /*return*/, response.json()];
|
|
1450
|
-
}); }); })];
|
|
1451
|
-
});
|
|
1452
|
-
});
|
|
1453
|
-
};
|
|
1454
|
-
ProductService.prototype.searchPaymentServices = function (params
|
|
1455
|
-
// & IProjectionSearchConditions // discontinue(2024-10-21~)
|
|
1456
|
-
) {
|
|
1436
|
+
/**
|
|
1437
|
+
* プロダクトタイプ指定でプロダクトを検索する
|
|
1438
|
+
*/
|
|
1439
|
+
ProductService.prototype.findProducts = function (params) {
|
|
1457
1440
|
return __awaiter(this, void 0, void 0, function () {
|
|
1441
|
+
var typeOf, limit, page;
|
|
1458
1442
|
var _this = this;
|
|
1459
1443
|
return __generator(this, function (_a) {
|
|
1444
|
+
typeOf = params.typeOf, limit = params.limit, page = params.page;
|
|
1460
1445
|
return [2 /*return*/, this.fetch({
|
|
1461
1446
|
uri: '/products',
|
|
1462
1447
|
method: 'GET',
|
|
1463
|
-
qs:
|
|
1448
|
+
qs: { typeOf: typeOf, limit: limit, page: page },
|
|
1464
1449
|
expectedStatusCodes: [http_status_1.OK]
|
|
1465
1450
|
})
|
|
1466
1451
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -1469,6 +1454,23 @@ var ProductService = /** @class */ (function (_super) {
|
|
|
1469
1454
|
});
|
|
1470
1455
|
});
|
|
1471
1456
|
};
|
|
1457
|
+
// discontinue(2025-08-20~)
|
|
1458
|
+
// public async searchPaymentServices(params: Omit<factory.product.ISearchConditions, 'project' | 'typeOf'> & {
|
|
1459
|
+
// // 必須化(2023-12-18~)
|
|
1460
|
+
// typeOf: {
|
|
1461
|
+
// $eq: factory.service.paymentService.PaymentServiceType.CreditCard;
|
|
1462
|
+
// };
|
|
1463
|
+
// }
|
|
1464
|
+
// // & IProjectionSearchConditions // discontinue(2024-10-21~)
|
|
1465
|
+
// ): Promise<IPaymentServiceWithoutCredentials[]> {
|
|
1466
|
+
// return this.fetch({
|
|
1467
|
+
// uri: '/products',
|
|
1468
|
+
// method: 'GET',
|
|
1469
|
+
// qs: params,
|
|
1470
|
+
// expectedStatusCodes: [OK]
|
|
1471
|
+
// })
|
|
1472
|
+
// .then(async (response) => response.json());
|
|
1473
|
+
// }
|
|
1472
1474
|
/**
|
|
1473
1475
|
* オファー検索
|
|
1474
1476
|
*/
|