@cinerino/sdk 3.127.0 → 3.128.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 +61 -4
- package/lib/bundle.js +61 -4
- package/package.json +2 -2
|
@@ -12876,6 +12876,17 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
12876
12876
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12877
12877
|
};
|
|
12878
12878
|
})();
|
|
12879
|
+
var __assign = (this && this.__assign) || function () {
|
|
12880
|
+
__assign = Object.assign || function(t) {
|
|
12881
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
12882
|
+
s = arguments[i];
|
|
12883
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
12884
|
+
t[p] = s[p];
|
|
12885
|
+
}
|
|
12886
|
+
return t;
|
|
12887
|
+
};
|
|
12888
|
+
return __assign.apply(this, arguments);
|
|
12889
|
+
};
|
|
12879
12890
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12880
12891
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
12881
12892
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -12980,10 +12991,33 @@ var AccountTransactionService = /** @class */ (function (_super) {
|
|
|
12980
12991
|
switch (_a.label) {
|
|
12981
12992
|
case 0: return [4 /*yield*/, this.fetch({
|
|
12982
12993
|
uri: (typeof params.transactionNumber === 'string')
|
|
12983
|
-
? "/accountTransactions/" + params.transactionNumber + "/confirm
|
|
12994
|
+
? "/accountTransactions/" + params.transactionNumber + "/confirm"
|
|
12984
12995
|
: "/accountTransactions/" + params.id + "/confirm",
|
|
12985
12996
|
method: 'PUT',
|
|
12986
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
12997
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
12998
|
+
qs: __assign({}, (typeof params.transactionNumber === 'string') ? { transactionNumber: '1' } : undefined)
|
|
12999
|
+
})];
|
|
13000
|
+
case 1:
|
|
13001
|
+
_a.sent();
|
|
13002
|
+
return [2 /*return*/];
|
|
13003
|
+
}
|
|
13004
|
+
});
|
|
13005
|
+
});
|
|
13006
|
+
};
|
|
13007
|
+
/**
|
|
13008
|
+
* 取引確定
|
|
13009
|
+
*/
|
|
13010
|
+
AccountTransactionService.prototype.confirmSync = function (params) {
|
|
13011
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13012
|
+
return __generator(this, function (_a) {
|
|
13013
|
+
switch (_a.label) {
|
|
13014
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
13015
|
+
uri: (typeof params.transactionNumber === 'string')
|
|
13016
|
+
? "/accountTransactions/" + params.transactionNumber + "/confirm"
|
|
13017
|
+
: "/accountTransactions/" + params.id + "/confirm",
|
|
13018
|
+
method: 'PUT',
|
|
13019
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
13020
|
+
qs: __assign({ sync: '1' }, (typeof params.transactionNumber === 'string') ? { transactionNumber: '1' } : undefined)
|
|
12987
13021
|
})];
|
|
12988
13022
|
case 1:
|
|
12989
13023
|
_a.sent();
|
|
@@ -13001,10 +13035,33 @@ var AccountTransactionService = /** @class */ (function (_super) {
|
|
|
13001
13035
|
switch (_a.label) {
|
|
13002
13036
|
case 0: return [4 /*yield*/, this.fetch({
|
|
13003
13037
|
uri: (typeof params.transactionNumber === 'string')
|
|
13004
|
-
? "/accountTransactions/" + params.transactionNumber + "/cancel
|
|
13038
|
+
? "/accountTransactions/" + params.transactionNumber + "/cancel"
|
|
13005
13039
|
: "/accountTransactions/" + params.id + "/cancel",
|
|
13006
13040
|
method: 'PUT',
|
|
13007
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
13041
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
13042
|
+
qs: __assign({}, (typeof params.transactionNumber === 'string') ? { transactionNumber: '1' } : undefined)
|
|
13043
|
+
})];
|
|
13044
|
+
case 1:
|
|
13045
|
+
_a.sent();
|
|
13046
|
+
return [2 /*return*/];
|
|
13047
|
+
}
|
|
13048
|
+
});
|
|
13049
|
+
});
|
|
13050
|
+
};
|
|
13051
|
+
/**
|
|
13052
|
+
* 取引中止
|
|
13053
|
+
*/
|
|
13054
|
+
AccountTransactionService.prototype.cancelSync = function (params) {
|
|
13055
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13056
|
+
return __generator(this, function (_a) {
|
|
13057
|
+
switch (_a.label) {
|
|
13058
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
13059
|
+
uri: (typeof params.transactionNumber === 'string')
|
|
13060
|
+
? "/accountTransactions/" + params.transactionNumber + "/cancel"
|
|
13061
|
+
: "/accountTransactions/" + params.id + "/cancel",
|
|
13062
|
+
method: 'PUT',
|
|
13063
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
13064
|
+
qs: __assign({ sync: '1' }, (typeof params.transactionNumber === 'string') ? { transactionNumber: '1' } : undefined)
|
|
13008
13065
|
})];
|
|
13009
13066
|
case 1:
|
|
13010
13067
|
_a.sent();
|
package/lib/bundle.js
CHANGED
|
@@ -12876,6 +12876,17 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
12876
12876
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12877
12877
|
};
|
|
12878
12878
|
})();
|
|
12879
|
+
var __assign = (this && this.__assign) || function () {
|
|
12880
|
+
__assign = Object.assign || function(t) {
|
|
12881
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
12882
|
+
s = arguments[i];
|
|
12883
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
12884
|
+
t[p] = s[p];
|
|
12885
|
+
}
|
|
12886
|
+
return t;
|
|
12887
|
+
};
|
|
12888
|
+
return __assign.apply(this, arguments);
|
|
12889
|
+
};
|
|
12879
12890
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12880
12891
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
12881
12892
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -12980,10 +12991,33 @@ var AccountTransactionService = /** @class */ (function (_super) {
|
|
|
12980
12991
|
switch (_a.label) {
|
|
12981
12992
|
case 0: return [4 /*yield*/, this.fetch({
|
|
12982
12993
|
uri: (typeof params.transactionNumber === 'string')
|
|
12983
|
-
? "/accountTransactions/" + params.transactionNumber + "/confirm
|
|
12994
|
+
? "/accountTransactions/" + params.transactionNumber + "/confirm"
|
|
12984
12995
|
: "/accountTransactions/" + params.id + "/confirm",
|
|
12985
12996
|
method: 'PUT',
|
|
12986
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
12997
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
12998
|
+
qs: __assign({}, (typeof params.transactionNumber === 'string') ? { transactionNumber: '1' } : undefined)
|
|
12999
|
+
})];
|
|
13000
|
+
case 1:
|
|
13001
|
+
_a.sent();
|
|
13002
|
+
return [2 /*return*/];
|
|
13003
|
+
}
|
|
13004
|
+
});
|
|
13005
|
+
});
|
|
13006
|
+
};
|
|
13007
|
+
/**
|
|
13008
|
+
* 取引確定
|
|
13009
|
+
*/
|
|
13010
|
+
AccountTransactionService.prototype.confirmSync = function (params) {
|
|
13011
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13012
|
+
return __generator(this, function (_a) {
|
|
13013
|
+
switch (_a.label) {
|
|
13014
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
13015
|
+
uri: (typeof params.transactionNumber === 'string')
|
|
13016
|
+
? "/accountTransactions/" + params.transactionNumber + "/confirm"
|
|
13017
|
+
: "/accountTransactions/" + params.id + "/confirm",
|
|
13018
|
+
method: 'PUT',
|
|
13019
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
13020
|
+
qs: __assign({ sync: '1' }, (typeof params.transactionNumber === 'string') ? { transactionNumber: '1' } : undefined)
|
|
12987
13021
|
})];
|
|
12988
13022
|
case 1:
|
|
12989
13023
|
_a.sent();
|
|
@@ -13001,10 +13035,33 @@ var AccountTransactionService = /** @class */ (function (_super) {
|
|
|
13001
13035
|
switch (_a.label) {
|
|
13002
13036
|
case 0: return [4 /*yield*/, this.fetch({
|
|
13003
13037
|
uri: (typeof params.transactionNumber === 'string')
|
|
13004
|
-
? "/accountTransactions/" + params.transactionNumber + "/cancel
|
|
13038
|
+
? "/accountTransactions/" + params.transactionNumber + "/cancel"
|
|
13005
13039
|
: "/accountTransactions/" + params.id + "/cancel",
|
|
13006
13040
|
method: 'PUT',
|
|
13007
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
13041
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
13042
|
+
qs: __assign({}, (typeof params.transactionNumber === 'string') ? { transactionNumber: '1' } : undefined)
|
|
13043
|
+
})];
|
|
13044
|
+
case 1:
|
|
13045
|
+
_a.sent();
|
|
13046
|
+
return [2 /*return*/];
|
|
13047
|
+
}
|
|
13048
|
+
});
|
|
13049
|
+
});
|
|
13050
|
+
};
|
|
13051
|
+
/**
|
|
13052
|
+
* 取引中止
|
|
13053
|
+
*/
|
|
13054
|
+
AccountTransactionService.prototype.cancelSync = function (params) {
|
|
13055
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13056
|
+
return __generator(this, function (_a) {
|
|
13057
|
+
switch (_a.label) {
|
|
13058
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
13059
|
+
uri: (typeof params.transactionNumber === 'string')
|
|
13060
|
+
? "/accountTransactions/" + params.transactionNumber + "/cancel"
|
|
13061
|
+
: "/accountTransactions/" + params.id + "/cancel",
|
|
13062
|
+
method: 'PUT',
|
|
13063
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
13064
|
+
qs: __assign({ sync: '1' }, (typeof params.transactionNumber === 'string') ? { transactionNumber: '1' } : undefined)
|
|
13008
13065
|
})];
|
|
13009
13066
|
case 1:
|
|
13010
13067
|
_a.sent();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.128.0-alpha.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
|
-
"@cinerino/api-abstract-client": "3.
|
|
100
|
+
"@cinerino/api-abstract-client": "3.128.0-alpha.0",
|
|
101
101
|
"debug": "^3.2.6",
|
|
102
102
|
"http-status": "^1.4.2",
|
|
103
103
|
"idtoken-verifier": "^2.0.3",
|