@cinerino/sdk 11.0.0-alpha.7 → 11.0.0-alpha.8
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 +430 -910
- package/example/src/st/admin/getToken.ts +1 -1
- package/lib/abstract/index.d.ts +1 -3
- package/lib/abstract/index.js +1 -24
- package/lib/bundle.js +428 -915
- package/lib/index.d.ts +2 -2
- package/lib/index.js +1 -2
- package/package.json +2 -2
- package/example/src/chevre/auth/getToken.ts +0 -29
- package/lib/abstract/chevreAuth/identity.d.ts +0 -25
- package/lib/abstract/chevreAuth/identity.js +0 -152
- package/lib/abstract/chevreAuth/ticket.d.ts +0 -16
- package/lib/abstract/chevreAuth/ticket.js +0 -86
- package/lib/abstract/chevreAuth/token.d.ts +0 -20
- package/lib/abstract/chevreAuth/token.js +0 -95
- package/lib/abstract/chevreAuth.d.ts +0 -38
- package/lib/abstract/chevreAuth.js +0 -123
|
@@ -23,7 +23,7 @@ export async function getToken() {
|
|
|
23
23
|
state: '',
|
|
24
24
|
grant_type: 'client_credentials',
|
|
25
25
|
// aws_client_metadata
|
|
26
|
-
aws_client_metadata: JSON.stringify({ projectId: 'cinerino', applicationType: 'SoftwareApplication' })
|
|
26
|
+
// aws_client_metadata: JSON.stringify({ projectId: 'cinerino', applicationType: 'SoftwareApplication' })
|
|
27
27
|
};
|
|
28
28
|
const secret = Buffer.from(`${config.clientId}:${config.clientSecret}`, 'utf8')
|
|
29
29
|
.toString('base64');
|
package/lib/abstract/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type * as Chevre from './chevre';
|
|
2
2
|
import type * as ChevreAdmin from './chevreAdmin';
|
|
3
3
|
import type * as ChevreAsset from './chevreAsset';
|
|
4
|
-
import type * as ChevreAuth from './chevreAuth';
|
|
5
4
|
import type * as ChevreConsole from './chevreConsole';
|
|
6
5
|
import type * as ChevrePay from './chevrePay';
|
|
7
6
|
import type * as ChevreTxc from './chevreTxc';
|
|
@@ -20,7 +19,6 @@ export declare function loadChevre(...params: ConstructorParameters<typeof Chevr
|
|
|
20
19
|
export declare function loadChevreAsset(...params: ConstructorParameters<typeof ChevreAsset.ChevreAsset>): Promise<ChevreAsset.ChevreAsset>;
|
|
21
20
|
export declare function loadChevreAdmin(...params: ConstructorParameters<typeof ChevreAdmin.ChevreAdmin>): Promise<ChevreAdmin.ChevreAdmin>;
|
|
22
21
|
export declare function loadChevreConsole(...params: ConstructorParameters<typeof ChevreConsole.ChevreConsole>): Promise<ChevreConsole.ChevreConsole>;
|
|
23
|
-
export declare function loadChevreAuth(...params: ConstructorParameters<typeof ChevreAuth.ChevreAuth>): Promise<ChevreAuth.ChevreAuth>;
|
|
24
22
|
export declare function loadChevrePay(...params: ConstructorParameters<typeof ChevrePay.ChevrePay>): Promise<ChevrePay.ChevrePay>;
|
|
25
23
|
export declare function loadChevreTxn(...params: ConstructorParameters<typeof ChevreTxn.ChevreTxn>): Promise<ChevreTxn.ChevreTxn>;
|
|
26
24
|
export declare function loadChevreTxc(...params: ConstructorParameters<typeof ChevreTxc.ChevreTxc>): Promise<ChevreTxc.ChevreTxc>;
|
|
@@ -47,5 +45,5 @@ export declare function loadCloudTxc(...params: ConstructorParameters<typeof Clo
|
|
|
47
45
|
*/
|
|
48
46
|
export declare function loadCloudTxn(...params: ConstructorParameters<typeof CloudTxn.CloudTxn>): Promise<CloudTxn.CloudTxn>;
|
|
49
47
|
export declare function loadWaiterAdmin(...params: ConstructorParameters<typeof ChevreAdmin.ChevreAdmin>): Promise<WaiterAdmin.WaiterAdmin>;
|
|
50
|
-
export { factory, Chevre as chevre, ChevreAdmin as chevreAdmin, ChevreAsset as chevreAsset,
|
|
48
|
+
export { factory, Chevre as chevre, ChevreAdmin as chevreAdmin, ChevreAsset as chevreAsset, ChevreConsole as chevreConsole, ChevrePay as chevrePay, ChevreTxc as chevreTxc, ChevreTxn as chevreTxn, CloudAdmin as cloudAdmin, CloudAsset as cloudAsset, CloudPay as cloudPay, CloudTxc as cloudTxc, CloudTxn as cloudTxn, Pecorino as pecorino, Service as service, WaiterAdmin as waiterAdmin };
|
|
51
49
|
export { transporters };
|
package/lib/abstract/index.js
CHANGED
|
@@ -41,7 +41,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
|
41
41
|
return to;
|
|
42
42
|
};
|
|
43
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
-
exports.transporters = exports.factory = exports.loadWaiterAdmin = exports.loadCloudTxn = exports.loadCloudTxc = exports.loadCloudPay = exports.loadCloudAsset = exports.loadCloudAdmin = exports.loadService = exports.loadPecorino = exports.loadChevreTxc = exports.loadChevreTxn = exports.loadChevrePay = exports.
|
|
44
|
+
exports.transporters = exports.factory = exports.loadWaiterAdmin = exports.loadCloudTxn = exports.loadCloudTxc = exports.loadCloudPay = exports.loadCloudAsset = exports.loadCloudAdmin = exports.loadService = exports.loadPecorino = exports.loadChevreTxc = exports.loadChevreTxn = exports.loadChevrePay = exports.loadChevreConsole = exports.loadChevreAdmin = exports.loadChevreAsset = exports.loadChevre = void 0;
|
|
45
45
|
var factory = require("./factory");
|
|
46
46
|
exports.factory = factory;
|
|
47
47
|
var transporters = require("./transporters");
|
|
@@ -138,29 +138,6 @@ function loadChevreConsole() {
|
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
exports.loadChevreConsole = loadChevreConsole;
|
|
141
|
-
var chevreAuth;
|
|
142
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
143
|
-
/* istanbul ignore next */
|
|
144
|
-
function loadChevreAuth() {
|
|
145
|
-
var params = [];
|
|
146
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
147
|
-
params[_i] = arguments[_i];
|
|
148
|
-
}
|
|
149
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
150
|
-
return __generator(this, function (_a) {
|
|
151
|
-
switch (_a.label) {
|
|
152
|
-
case 0:
|
|
153
|
-
if (!(chevreAuth === undefined)) return [3 /*break*/, 2];
|
|
154
|
-
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAuth'); })];
|
|
155
|
-
case 1:
|
|
156
|
-
chevreAuth = (_a.sent()).ChevreAuth;
|
|
157
|
-
_a.label = 2;
|
|
158
|
-
case 2: return [2 /*return*/, new (chevreAuth.bind.apply(chevreAuth, __spreadArray([void 0], params)))()];
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
exports.loadChevreAuth = loadChevreAuth;
|
|
164
141
|
var chevrePay;
|
|
165
142
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
166
143
|
/* istanbul ignore next */
|