ggez-banking-sdk 0.0.16 → 0.0.17
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.
|
@@ -22,7 +22,6 @@ declare const Helper: (userInfo: any) => {
|
|
|
22
22
|
dataSignInUrlEncodedWithGoogle: (values: LoginWithGoogleInterface, programId: string) => string;
|
|
23
23
|
dataTokenUrlEncoded: (values: LimitedTokenInterface) => {
|
|
24
24
|
installation_id: string;
|
|
25
|
-
generate_jwt: boolean;
|
|
26
25
|
};
|
|
27
26
|
};
|
|
28
27
|
};
|
|
@@ -244,8 +244,8 @@ const Helper = (userInfo) => {
|
|
|
244
244
|
const dataTokenUrlEncoded = (values) => {
|
|
245
245
|
const data = {
|
|
246
246
|
installation_id: values.installationId,
|
|
247
|
-
generate_jwt: true,
|
|
248
247
|
};
|
|
248
|
+
console.log("🚀 ~ dataTokenUrlEncoded ~ data:", data);
|
|
249
249
|
return data;
|
|
250
250
|
};
|
|
251
251
|
return {
|
|
@@ -31,7 +31,9 @@ const useToken = (userInfo, nodeUrl, programId, lang, geoCoordinates) => {
|
|
|
31
31
|
};
|
|
32
32
|
const CreateLimitedToken = (values) => __awaiter(void 0, void 0, void 0, function* () {
|
|
33
33
|
var _a, _b, _c, _d;
|
|
34
|
+
console.log("🚀 ~ CreateLimitedToken ~ values:", values);
|
|
34
35
|
let data = dataTokenUrlEncoded(Object.assign(Object.assign({}, values), { geoCoordinates: geoCoordinates }));
|
|
36
|
+
console.log("🚀 ~ CreateLimitedToken ~ data:", data);
|
|
35
37
|
try {
|
|
36
38
|
const response = yield restApi_1.default.restApi(nodeUrl, "POST", "v1/limited-token", headerConfigToken(), data);
|
|
37
39
|
if ((_a = response.data) === null || _a === void 0 ? void 0 : _a.access_token) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ggez-banking-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|