gap-nodejs-sdk 1.0.111 → 1.0.112
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/dist/gap-sdk.js +1 -1
- package/dist/user_api/1.0.0/api/auth.d.ts +1 -0
- package/dist/user_api/1.0.0/api/auth.d.ts.map +1 -1
- package/dist/user_api/1.0.0/api/auth.js +11 -1
- package/dist/user_api/1.0.0/endpoints/auth.d.ts +1 -0
- package/dist/user_api/1.0.0/endpoints/auth.d.ts.map +1 -1
- package/dist/user_api/1.0.0/endpoints/auth.js +1 -0
- package/dist/user_api/1.0.0/models/auth.d.ts +10 -0
- package/dist/user_api/1.0.0/models/auth.d.ts.map +1 -1
- package/dist/user_api/1.0.0/models/auth.js +13 -0
- package/dist/user_api/1.0.0/types/request/auth.d.ts +1 -0
- package/dist/user_api/1.0.0/types/request/auth.d.ts.map +1 -1
- package/dist/user_api/1.0.0/types/response/auth.d.ts +10 -0
- package/dist/user_api/1.0.0/types/response/auth.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ export default class Auth extends Base implements AuthAbstractClass {
|
|
|
7
7
|
static API_VERSION: GapApiVersion;
|
|
8
8
|
static login(data: Request.LoginRequest): Promise<Response.LoginResponse>;
|
|
9
9
|
static forgetPassword(data: Request.ForgetPasswordRequest): Promise<Response.ForgetPasswordResponse>;
|
|
10
|
+
static getUserInfo(data: Request.GetUserInfoRequest): Promise<Response.GetUserInfoResponse>;
|
|
10
11
|
static getDnsInfo(data: Request.GetDnsInfoRequest): Promise<Response.GetDnsInfoResponse>;
|
|
11
12
|
}
|
|
12
13
|
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/user_api/1.0.0/api/auth.ts"],"names":[],"mappings":"AACA,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,IAAI,MAAM,oBAAoB,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UpF,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC;CASxG"}
|
|
@@ -22,10 +22,20 @@ export default class Auth extends Base {
|
|
|
22
22
|
return null;
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
+
static getUserInfo(data) {
|
|
26
|
+
var _a;
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
const response = yield this.client.get({
|
|
29
|
+
path: endpoints.auth.FORGET_PASSWORD,
|
|
30
|
+
query: data
|
|
31
|
+
});
|
|
32
|
+
return Model.UserInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
25
35
|
static getDnsInfo(data) {
|
|
26
36
|
var _a;
|
|
27
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
const response = yield this.client.
|
|
38
|
+
const response = yield this.client.post({
|
|
29
39
|
path: endpoints.auth.GET_DNS_INFO,
|
|
30
40
|
data: data
|
|
31
41
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/user_api/1.0.0/endpoints/auth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/user_api/1.0.0/endpoints/auth.ts"],"names":[],"mappings":";;;;;;AAAA,wBAKC"}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
export declare function UserInfoModel(data: any): {
|
|
2
|
+
id: any;
|
|
3
|
+
username: any;
|
|
4
|
+
email: any;
|
|
5
|
+
status: any;
|
|
6
|
+
created_at: any;
|
|
7
|
+
updated_at: any;
|
|
8
|
+
logged_at: any;
|
|
9
|
+
first_sign_in: any;
|
|
10
|
+
};
|
|
1
11
|
export declare function DnsInfoModel(data: any): {
|
|
2
12
|
id: any;
|
|
3
13
|
external_id: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/user_api/1.0.0/models/auth.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCrC"}
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/user_api/1.0.0/models/auth.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG;;;;;;;;;EAWtC;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCrC"}
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
export function UserInfoModel(data) {
|
|
2
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3
|
+
return {
|
|
4
|
+
id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
|
|
5
|
+
username: (_b = data === null || data === void 0 ? void 0 : data.username) !== null && _b !== void 0 ? _b : null,
|
|
6
|
+
email: (_c = data === null || data === void 0 ? void 0 : data.email) !== null && _c !== void 0 ? _c : null,
|
|
7
|
+
status: (_d = data === null || data === void 0 ? void 0 : data.status) !== null && _d !== void 0 ? _d : null,
|
|
8
|
+
created_at: (_e = data === null || data === void 0 ? void 0 : data.created_at) !== null && _e !== void 0 ? _e : null,
|
|
9
|
+
updated_at: (_f = data === null || data === void 0 ? void 0 : data.updated_at) !== null && _f !== void 0 ? _f : null,
|
|
10
|
+
logged_at: (_g = data === null || data === void 0 ? void 0 : data.logged_at) !== null && _g !== void 0 ? _g : null,
|
|
11
|
+
first_sign_in: (_h = data === null || data === void 0 ? void 0 : data.first_sign_in) !== null && _h !== void 0 ? _h : null,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
1
14
|
export function DnsInfoModel(data) {
|
|
2
15
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19;
|
|
3
16
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/user_api/1.0.0/types/request/auth.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAA;CACnB,CAAA;
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/user_api/1.0.0/types/request/auth.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,oBAAY,qBAAqB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,oBAAY,kBAAkB,GAAG,EAAE,CAAA;AAEnC,oBAAY,iBAAiB,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAA;CACf,CAAA"}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { Nullable } from "../../../../base_type";
|
|
2
2
|
export declare type LoginResponse = null;
|
|
3
3
|
export declare type ForgetPasswordResponse = null;
|
|
4
|
+
export declare type GetUserInfoResponse = Nullable<{
|
|
5
|
+
id: number;
|
|
6
|
+
username: string;
|
|
7
|
+
email: string;
|
|
8
|
+
status: number;
|
|
9
|
+
created_at: number;
|
|
10
|
+
updated_at: number;
|
|
11
|
+
logged_at: number;
|
|
12
|
+
first_sign_in: number;
|
|
13
|
+
}>;
|
|
4
14
|
declare type AppVersion = Nullable<{
|
|
5
15
|
id: number;
|
|
6
16
|
type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"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