ob-bms-sdk 0.0.31 → 0.0.34
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/api/api.ts +37 -20
- package/dist/api/api.d.ts +37 -17
- package/dist/api/api.js +1 -4
- package/package.json +1 -1
- package/test.ts +15 -0
package/api/api.ts
CHANGED
|
@@ -47,6 +47,18 @@ export interface CommandData {
|
|
|
47
47
|
* @memberof CommandData
|
|
48
48
|
*/
|
|
49
49
|
'data'?: PrismaJsonValue | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof CommandData
|
|
54
|
+
*/
|
|
55
|
+
'status'?: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PrismaJsonValue}
|
|
59
|
+
* @memberof CommandData
|
|
60
|
+
*/
|
|
61
|
+
'result'?: PrismaJsonValue | null;
|
|
50
62
|
/**
|
|
51
63
|
*
|
|
52
64
|
* @type {string}
|
|
@@ -77,7 +89,7 @@ export interface CommandsCreateBody {
|
|
|
77
89
|
* @type {string}
|
|
78
90
|
* @memberof CommandsCreateBody
|
|
79
91
|
*/
|
|
80
|
-
'name':
|
|
92
|
+
'name': string;
|
|
81
93
|
/**
|
|
82
94
|
*
|
|
83
95
|
* @type {LiftCallCommandData}
|
|
@@ -85,13 +97,6 @@ export interface CommandsCreateBody {
|
|
|
85
97
|
*/
|
|
86
98
|
'data': LiftCallCommandData;
|
|
87
99
|
}
|
|
88
|
-
|
|
89
|
-
export const CommandsCreateBodyNameEnum = {
|
|
90
|
-
LiftCall: 'lift.call'
|
|
91
|
-
} as const;
|
|
92
|
-
|
|
93
|
-
export type CommandsCreateBodyNameEnum = typeof CommandsCreateBodyNameEnum[keyof typeof CommandsCreateBodyNameEnum];
|
|
94
|
-
|
|
95
100
|
/**
|
|
96
101
|
*
|
|
97
102
|
* @export
|
|
@@ -771,6 +776,12 @@ export interface PassConsentResponse {
|
|
|
771
776
|
* @memberof PassConsentResponse
|
|
772
777
|
*/
|
|
773
778
|
'id': string;
|
|
779
|
+
/**
|
|
780
|
+
*
|
|
781
|
+
* @type {string}
|
|
782
|
+
* @memberof PassConsentResponse
|
|
783
|
+
*/
|
|
784
|
+
'status': PassConsentResponseStatusEnum;
|
|
774
785
|
/**
|
|
775
786
|
*
|
|
776
787
|
* @type {string}
|
|
@@ -813,12 +824,6 @@ export interface PassConsentResponse {
|
|
|
813
824
|
* @memberof PassConsentResponse
|
|
814
825
|
*/
|
|
815
826
|
'issuer_id': string;
|
|
816
|
-
/**
|
|
817
|
-
*
|
|
818
|
-
* @type {string}
|
|
819
|
-
* @memberof PassConsentResponse
|
|
820
|
-
*/
|
|
821
|
-
'status': PassConsentResponseStatusEnum;
|
|
822
827
|
/**
|
|
823
828
|
*
|
|
824
829
|
* @type {string}
|
|
@@ -1661,6 +1666,18 @@ export interface WrappedResponseCommandsCreateResponseData {
|
|
|
1661
1666
|
* @memberof WrappedResponseCommandsCreateResponseData
|
|
1662
1667
|
*/
|
|
1663
1668
|
'data'?: PrismaJsonValue | null;
|
|
1669
|
+
/**
|
|
1670
|
+
*
|
|
1671
|
+
* @type {string}
|
|
1672
|
+
* @memberof WrappedResponseCommandsCreateResponseData
|
|
1673
|
+
*/
|
|
1674
|
+
'status'?: string;
|
|
1675
|
+
/**
|
|
1676
|
+
*
|
|
1677
|
+
* @type {PrismaJsonValue}
|
|
1678
|
+
* @memberof WrappedResponseCommandsCreateResponseData
|
|
1679
|
+
*/
|
|
1680
|
+
'result'?: PrismaJsonValue | null;
|
|
1664
1681
|
/**
|
|
1665
1682
|
*
|
|
1666
1683
|
* @type {string}
|
|
@@ -1947,6 +1964,12 @@ export interface WrappedResponsePassConsentResponseData {
|
|
|
1947
1964
|
* @memberof WrappedResponsePassConsentResponseData
|
|
1948
1965
|
*/
|
|
1949
1966
|
'id': string;
|
|
1967
|
+
/**
|
|
1968
|
+
*
|
|
1969
|
+
* @type {string}
|
|
1970
|
+
* @memberof WrappedResponsePassConsentResponseData
|
|
1971
|
+
*/
|
|
1972
|
+
'status': WrappedResponsePassConsentResponseDataStatusEnum;
|
|
1950
1973
|
/**
|
|
1951
1974
|
*
|
|
1952
1975
|
* @type {string}
|
|
@@ -1989,12 +2012,6 @@ export interface WrappedResponsePassConsentResponseData {
|
|
|
1989
2012
|
* @memberof WrappedResponsePassConsentResponseData
|
|
1990
2013
|
*/
|
|
1991
2014
|
'issuer_id': string;
|
|
1992
|
-
/**
|
|
1993
|
-
*
|
|
1994
|
-
* @type {string}
|
|
1995
|
-
* @memberof WrappedResponsePassConsentResponseData
|
|
1996
|
-
*/
|
|
1997
|
-
'status': WrappedResponsePassConsentResponseDataStatusEnum;
|
|
1998
2015
|
/**
|
|
1999
2016
|
*
|
|
2000
2017
|
* @type {string}
|
package/dist/api/api.d.ts
CHANGED
|
@@ -37,6 +37,18 @@ export interface CommandData {
|
|
|
37
37
|
* @memberof CommandData
|
|
38
38
|
*/
|
|
39
39
|
'data'?: PrismaJsonValue | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CommandData
|
|
44
|
+
*/
|
|
45
|
+
'status'?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {PrismaJsonValue}
|
|
49
|
+
* @memberof CommandData
|
|
50
|
+
*/
|
|
51
|
+
'result'?: PrismaJsonValue | null;
|
|
40
52
|
/**
|
|
41
53
|
*
|
|
42
54
|
* @type {string}
|
|
@@ -67,7 +79,7 @@ export interface CommandsCreateBody {
|
|
|
67
79
|
* @type {string}
|
|
68
80
|
* @memberof CommandsCreateBody
|
|
69
81
|
*/
|
|
70
|
-
'name':
|
|
82
|
+
'name': string;
|
|
71
83
|
/**
|
|
72
84
|
*
|
|
73
85
|
* @type {LiftCallCommandData}
|
|
@@ -75,10 +87,6 @@ export interface CommandsCreateBody {
|
|
|
75
87
|
*/
|
|
76
88
|
'data': LiftCallCommandData;
|
|
77
89
|
}
|
|
78
|
-
export declare const CommandsCreateBodyNameEnum: {
|
|
79
|
-
readonly LiftCall: "lift.call";
|
|
80
|
-
};
|
|
81
|
-
export type CommandsCreateBodyNameEnum = typeof CommandsCreateBodyNameEnum[keyof typeof CommandsCreateBodyNameEnum];
|
|
82
90
|
/**
|
|
83
91
|
*
|
|
84
92
|
* @export
|
|
@@ -766,6 +774,12 @@ export interface PassConsentResponse {
|
|
|
766
774
|
* @memberof PassConsentResponse
|
|
767
775
|
*/
|
|
768
776
|
'id': string;
|
|
777
|
+
/**
|
|
778
|
+
*
|
|
779
|
+
* @type {string}
|
|
780
|
+
* @memberof PassConsentResponse
|
|
781
|
+
*/
|
|
782
|
+
'status': PassConsentResponseStatusEnum;
|
|
769
783
|
/**
|
|
770
784
|
*
|
|
771
785
|
* @type {string}
|
|
@@ -808,12 +822,6 @@ export interface PassConsentResponse {
|
|
|
808
822
|
* @memberof PassConsentResponse
|
|
809
823
|
*/
|
|
810
824
|
'issuer_id': string;
|
|
811
|
-
/**
|
|
812
|
-
*
|
|
813
|
-
* @type {string}
|
|
814
|
-
* @memberof PassConsentResponse
|
|
815
|
-
*/
|
|
816
|
-
'status': PassConsentResponseStatusEnum;
|
|
817
825
|
/**
|
|
818
826
|
*
|
|
819
827
|
* @type {string}
|
|
@@ -1647,6 +1655,18 @@ export interface WrappedResponseCommandsCreateResponseData {
|
|
|
1647
1655
|
* @memberof WrappedResponseCommandsCreateResponseData
|
|
1648
1656
|
*/
|
|
1649
1657
|
'data'?: PrismaJsonValue | null;
|
|
1658
|
+
/**
|
|
1659
|
+
*
|
|
1660
|
+
* @type {string}
|
|
1661
|
+
* @memberof WrappedResponseCommandsCreateResponseData
|
|
1662
|
+
*/
|
|
1663
|
+
'status'?: string;
|
|
1664
|
+
/**
|
|
1665
|
+
*
|
|
1666
|
+
* @type {PrismaJsonValue}
|
|
1667
|
+
* @memberof WrappedResponseCommandsCreateResponseData
|
|
1668
|
+
*/
|
|
1669
|
+
'result'?: PrismaJsonValue | null;
|
|
1650
1670
|
/**
|
|
1651
1671
|
*
|
|
1652
1672
|
* @type {string}
|
|
@@ -1930,6 +1950,12 @@ export interface WrappedResponsePassConsentResponseData {
|
|
|
1930
1950
|
* @memberof WrappedResponsePassConsentResponseData
|
|
1931
1951
|
*/
|
|
1932
1952
|
'id': string;
|
|
1953
|
+
/**
|
|
1954
|
+
*
|
|
1955
|
+
* @type {string}
|
|
1956
|
+
* @memberof WrappedResponsePassConsentResponseData
|
|
1957
|
+
*/
|
|
1958
|
+
'status': WrappedResponsePassConsentResponseDataStatusEnum;
|
|
1933
1959
|
/**
|
|
1934
1960
|
*
|
|
1935
1961
|
* @type {string}
|
|
@@ -1972,12 +1998,6 @@ export interface WrappedResponsePassConsentResponseData {
|
|
|
1972
1998
|
* @memberof WrappedResponsePassConsentResponseData
|
|
1973
1999
|
*/
|
|
1974
2000
|
'issuer_id': string;
|
|
1975
|
-
/**
|
|
1976
|
-
*
|
|
1977
|
-
* @type {string}
|
|
1978
|
-
* @memberof WrappedResponsePassConsentResponseData
|
|
1979
|
-
*/
|
|
1980
|
-
'status': WrappedResponsePassConsentResponseDataStatusEnum;
|
|
1981
2001
|
/**
|
|
1982
2002
|
*
|
|
1983
2003
|
* @type {string}
|
package/dist/api/api.js
CHANGED
|
@@ -25,16 +25,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WrappedResponsePassConsentResponseDataStatusEnum = exports.WrappedResponseNullDataEnum = exports.ShowPassResponseStatusEnum = exports.PassDataStatusEnum = exports.PassConsentResponseStatusEnum =
|
|
28
|
+
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WrappedResponsePassConsentResponseDataStatusEnum = exports.WrappedResponseNullDataEnum = exports.ShowPassResponseStatusEnum = exports.PassDataStatusEnum = exports.PassConsentResponseStatusEnum = void 0;
|
|
29
29
|
const axios_1 = __importDefault(require("axios"));
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
const common_1 = require("./common");
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
const base_1 = require("./base");
|
|
35
|
-
exports.CommandsCreateBodyNameEnum = {
|
|
36
|
-
LiftCall: 'lift.call'
|
|
37
|
-
};
|
|
38
35
|
exports.PassConsentResponseStatusEnum = {
|
|
39
36
|
Pending: 'pending',
|
|
40
37
|
Confirmed: 'confirmed'
|
package/package.json
CHANGED
package/test.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as OB_BMS_SDK from './dist';
|
|
2
|
+
|
|
3
|
+
// OB_BMS_SDK.setAcessToken('789');
|
|
4
|
+
OB_BMS_SDK.setBaseUrl('http://dev.glorymtel.xyz/ob-bms');
|
|
5
|
+
OB_BMS_SDK.setAcessToken(
|
|
6
|
+
'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJpYXQiOjE2OTg5MzU2ODcsImV4cCI6MTcwMTUyNzY4NywicGVybWlzc2lvbiI6W3siaWQiOiJmY2Q1NDZmYy1lNThmLTQ2MjctOTU5Yy1jNWFlYTljMGQ0ODMiLCJwZXJtaXR0ZWVfdHlwZSI6ImFjY291bnQiLCJ2YWx1ZSI6eyJuYW1lIjoib2ItaWFtOmFjY291bnQiLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJyZWFkIiwidXBkYXRlIiwiZGVsZXRlIl0sInJlc291cmNlX3R5cGUiOiJhY2NvdW50IiwicmVzb3VyY2UiOnsiaWQiOiJzZWxmIn19L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cxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfV19.tfqYJop4iJNlIbBVztf7DFfVhaYAFnUGDhLjik2OGA4',
|
|
7
|
+
);
|
|
8
|
+
(async () => {
|
|
9
|
+
try {
|
|
10
|
+
const res = await OB_BMS_SDK.client.membersIndex('t.shin@pjoe.com', {});
|
|
11
|
+
console.dir(res.data, { depth: null });
|
|
12
|
+
} catch (err) {
|
|
13
|
+
console.log(err);
|
|
14
|
+
}
|
|
15
|
+
})();
|