jourycms-sdk 1.1.60 → 1.1.62
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.
@@ -5,6 +5,7 @@ export default class AuthClient extends BaseClient {
|
|
5
5
|
constructor(container: SDK.IServiceContainer);
|
6
6
|
register(params: ApiAlias.Signup.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Signup.Response>>;
|
7
7
|
login(params: ApiAlias.Signin.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Signin.Response>>;
|
8
|
+
changePassword(params: ApiAlias.ChangePassword.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.ChangePassword.Response>>;
|
8
9
|
logout(): Promise<SDK.TResponseDatum<ApiAlias.Signin.Response>>;
|
9
10
|
refreshToken(params: ApiAlias.RefreshToken.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.RefreshToken.Response>>;
|
10
11
|
authenticateAsAnotherUser(user_id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Signin.Response>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth.client.d.ts","sourceRoot":"","sources":["../../../../src/containers/auth/clients/auth.client.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC;AAGhC,OAAO,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;AAG/C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,UAAU;gBAGpC,SAAS,EAAE,GAAG,CAAC,iBAAiB;IAKtC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG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AAC,CAAC;IAMnJ,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAI/D,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAK7I,yBAAyB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;CASrI"}
|
@@ -18,6 +18,11 @@ class AuthClient extends base_client_1.default {
|
|
18
18
|
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
19
19
|
});
|
20
20
|
}
|
21
|
+
async changePassword(params, config) {
|
22
|
+
return await this.container.sdk.httpClient.post(this.generatePrefix('/change-password'), params, {
|
23
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
24
|
+
});
|
25
|
+
}
|
21
26
|
async logout() {
|
22
27
|
return await this.container.sdk.httpClient.post(this.generatePrefix('/logout'));
|
23
28
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "jourycms-sdk",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.62",
|
4
4
|
"description": "Sdk for Joury CMS",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"files": [
|
@@ -39,6 +39,17 @@
|
|
39
39
|
"@types/qs": "^6.9.16",
|
40
40
|
"@typescript-eslint/eslint-plugin": "^8.13.0",
|
41
41
|
"@typescript-eslint/parser": "^8.13.0",
|
42
|
+
"eslint-config-next": "15.0.2",
|
43
|
+
"eslint-config-prettier": "^9.1.0",
|
44
|
+
"eslint-plugin-import": "^2.31.0",
|
45
|
+
"eslint-plugin-playwright": "^2.0.0",
|
46
|
+
"eslint-plugin-prettier": "^5.2.1",
|
47
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
48
|
+
"eslint-plugin-simple-import-sort": "^12.1.1",
|
49
|
+
"eslint-plugin-unicorn": "^56.0.0",
|
50
|
+
"prettier": "^3.3.3",
|
51
|
+
"prettier-eslint": "^16.3.0",
|
52
|
+
"prettier-plugin-tailwindcss": "^0.6.8",
|
42
53
|
"eslint": "^9.14.0",
|
43
54
|
"globals": "^15.12.0",
|
44
55
|
"ts-node": "^10.9.2",
|
@@ -60,6 +60,31 @@ declare module Levelup {
|
|
60
60
|
}>;
|
61
61
|
}
|
62
62
|
|
63
|
+
/**
|
64
|
+
* --------------------------------------------------------------------------
|
65
|
+
* ChangePassword
|
66
|
+
* --------------------------------------------------------------------------
|
67
|
+
* @link /change-password
|
68
|
+
* @fires AuthService.ChangePassword
|
69
|
+
* @param {Levelup.CMS.V1.Auth.Api.Auth.ChangePassword.Request} query
|
70
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Auth.ChangePassword.Response}
|
71
|
+
* @method POST
|
72
|
+
*
|
73
|
+
*/
|
74
|
+
export namespace ChangePassword {
|
75
|
+
export type Request =
|
76
|
+
Levelup.CMS.V1.Utils.Api.Request.BuildCreateRequest<{
|
77
|
+
old_password: string;
|
78
|
+
new_password: string;
|
79
|
+
}>;
|
80
|
+
export type Response =
|
81
|
+
Utils.Api.Response.BuildSingleItemResponse<{
|
82
|
+
user: Users.Entity.User;
|
83
|
+
token: string;
|
84
|
+
refresh_token: string;
|
85
|
+
}>;
|
86
|
+
}
|
87
|
+
|
63
88
|
/**
|
64
89
|
* --------------------------------------------------------------------------
|
65
90
|
* RefreshToken
|