@cinerino/sdk 5.13.0-alpha.2 → 5.13.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/example/playground/public/lib/bundle.js +30 -30
- package/lib/bundle.js +1 -2
- package/package.json +2 -2
|
@@ -1453,7 +1453,7 @@ var ReservationService = /** @class */ (function (_super) {
|
|
|
1453
1453
|
});
|
|
1454
1454
|
};
|
|
1455
1455
|
/**
|
|
1456
|
-
*
|
|
1456
|
+
* 予約に対する使用アクション検索
|
|
1457
1457
|
*/
|
|
1458
1458
|
ReservationService.prototype.searchUseActions = function (params) {
|
|
1459
1459
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1462,21 +1462,12 @@ var ReservationService = /** @class */ (function (_super) {
|
|
|
1462
1462
|
return [2 /*return*/, this.fetch({
|
|
1463
1463
|
uri: "/reservations/" + String(params.object.id) + "/actions/use",
|
|
1464
1464
|
method: 'GET',
|
|
1465
|
-
qs: params,
|
|
1465
|
+
// qs: params,
|
|
1466
1466
|
expectedStatusCodes: [http_status_1.OK]
|
|
1467
1467
|
})
|
|
1468
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
switch (_b.label) {
|
|
1472
|
-
case 0:
|
|
1473
|
-
_a = {};
|
|
1474
|
-
return [4 /*yield*/, response.json()];
|
|
1475
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
1476
|
-
_a)];
|
|
1477
|
-
}
|
|
1478
|
-
});
|
|
1479
|
-
}); })];
|
|
1468
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1469
|
+
return [2 /*return*/, response.json()];
|
|
1470
|
+
}); }); })];
|
|
1480
1471
|
});
|
|
1481
1472
|
});
|
|
1482
1473
|
};
|
|
@@ -10663,6 +10654,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
10663
10654
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
10664
10655
|
}
|
|
10665
10656
|
};
|
|
10657
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
10658
|
+
var t = {};
|
|
10659
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
10660
|
+
t[p] = s[p];
|
|
10661
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
10662
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
10663
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
10664
|
+
t[p[i]] = s[p[i]];
|
|
10665
|
+
}
|
|
10666
|
+
return t;
|
|
10667
|
+
};
|
|
10666
10668
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10667
10669
|
exports.ReservationService = void 0;
|
|
10668
10670
|
var http_status_1 = require("http-status");
|
|
@@ -10749,29 +10751,28 @@ var ReservationService = /** @class */ (function (_super) {
|
|
|
10749
10751
|
/**
|
|
10750
10752
|
* 予約に対する使用アクション検索
|
|
10751
10753
|
*/
|
|
10752
|
-
ReservationService.prototype.searchUseActions = function (params
|
|
10754
|
+
ReservationService.prototype.searchUseActions = function (params
|
|
10755
|
+
// & {
|
|
10756
|
+
// $projection?: {
|
|
10757
|
+
// [key in keyof IUseAction]?: 0;
|
|
10758
|
+
// };
|
|
10759
|
+
// }
|
|
10760
|
+
) {
|
|
10753
10761
|
var _a;
|
|
10754
10762
|
return __awaiter(this, void 0, void 0, function () {
|
|
10763
|
+
var object, queryParams;
|
|
10755
10764
|
var _this = this;
|
|
10756
10765
|
return __generator(this, function (_b) {
|
|
10766
|
+
object = params.object, queryParams = __rest(params, ["object"]);
|
|
10757
10767
|
return [2 /*return*/, this.fetch({
|
|
10758
10768
|
uri: "/reservations/" + String((_a = params.object) === null || _a === void 0 ? void 0 : _a.id) + "/actions/use",
|
|
10759
10769
|
method: 'GET',
|
|
10760
|
-
qs:
|
|
10770
|
+
qs: queryParams,
|
|
10761
10771
|
expectedStatusCodes: [http_status_1.OK]
|
|
10762
10772
|
})
|
|
10763
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
switch (_b.label) {
|
|
10767
|
-
case 0:
|
|
10768
|
-
_a = {};
|
|
10769
|
-
return [4 /*yield*/, response.json()];
|
|
10770
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
10771
|
-
_a)];
|
|
10772
|
-
}
|
|
10773
|
-
});
|
|
10774
|
-
}); })];
|
|
10773
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
10774
|
+
return [2 /*return*/, response.json()];
|
|
10775
|
+
}); }); })];
|
|
10775
10776
|
});
|
|
10776
10777
|
});
|
|
10777
10778
|
};
|
|
@@ -21291,12 +21292,11 @@ var AssetTransactionType;
|
|
|
21291
21292
|
*/
|
|
21292
21293
|
AssetTransactionType["Reserve"] = "Reserve";
|
|
21293
21294
|
/**
|
|
21294
|
-
*
|
|
21295
|
+
* 予約取消
|
|
21295
21296
|
*/
|
|
21296
21297
|
AssetTransactionType["CancelReservation"] = "CancelReservation";
|
|
21297
21298
|
/**
|
|
21298
21299
|
* 決済
|
|
21299
|
-
* PaymentMethod: PaymentCard,CreditCard...
|
|
21300
21300
|
*/
|
|
21301
21301
|
AssetTransactionType["Pay"] = "Pay";
|
|
21302
21302
|
/**
|
package/lib/bundle.js
CHANGED
|
@@ -21304,12 +21304,11 @@ var AssetTransactionType;
|
|
|
21304
21304
|
*/
|
|
21305
21305
|
AssetTransactionType["Reserve"] = "Reserve";
|
|
21306
21306
|
/**
|
|
21307
|
-
*
|
|
21307
|
+
* 予約取消
|
|
21308
21308
|
*/
|
|
21309
21309
|
AssetTransactionType["CancelReservation"] = "CancelReservation";
|
|
21310
21310
|
/**
|
|
21311
21311
|
* 決済
|
|
21312
|
-
* PaymentMethod: PaymentCard,CreditCard...
|
|
21313
21312
|
*/
|
|
21314
21313
|
AssetTransactionType["Pay"] = "Pay";
|
|
21315
21314
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "5.13.0-alpha.
|
|
3
|
+
"version": "5.13.0-alpha.3",
|
|
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.
|
|
95
|
+
"@chevre/factory": "4.360.0-alpha.2",
|
|
96
96
|
"debug": "^3.2.6",
|
|
97
97
|
"http-status": "^1.4.2",
|
|
98
98
|
"idtoken-verifier": "^2.0.3",
|