@openbox/shared-types 0.1.66 → 0.1.68

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.
@@ -0,0 +1,4 @@
1
+ export interface AuthUpdatePasswordRequest {
2
+ currentPassword: string;
3
+ newPassword: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../src/auth/UpdatePassword/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export interface AuthUpdatePasswordResponse {
2
+ message: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../src/auth/UpdatePassword/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface AuthUpdateWorkspaceRquest {
2
+ bid: string;
3
+ cid: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../src/auth/UpdateWorkspace/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface WorkspaceChanged {
2
+ access_token: string;
3
+ }
4
+ export interface AuthUpdateWorkspaceResponse {
5
+ data: WorkspaceChanged;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../src/auth/UpdateWorkspace/Response.ts"],"names":[],"mappings":""}
@@ -5,4 +5,8 @@ import { AuthRecoverPasswordRequest } from './RecoverPassword/Request';
5
5
  import { AuthRecoverPasswordResponse } from './RecoverPassword/Response';
6
6
  import { AuthResetPasswordRequest } from './ResetPassword/Request';
7
7
  import { AuthResetPasswordResponse } from './ResetPassword/Response';
8
- export { AuthLoginRequest, JWTResponse, AuthLoginResponse, AuthRecoverPasswordRequest, AuthRecoverPasswordResponse, AuthResetPasswordResponse, AuthResetPasswordRequest, AuthGetUserResponse, LoggedUserInfo, LoggedUserInfoProfileAccess, };
8
+ import { AuthUpdatePasswordRequest } from './UpdatePassword/Request';
9
+ import { AuthUpdatePasswordResponse } from './UpdatePassword/Response';
10
+ import { AuthUpdateWorkspaceRquest } from './UpdateWorkspace/Request';
11
+ import { AuthUpdateWorkspaceResponse, WorkspaceChanged } from './UpdateWorkspace/Response';
12
+ export { AuthLoginRequest, JWTResponse, AuthLoginResponse, AuthRecoverPasswordRequest, AuthRecoverPasswordResponse, AuthResetPasswordResponse, AuthResetPasswordRequest, AuthGetUserResponse, LoggedUserInfo, LoggedUserInfoProfileAccess, AuthUpdatePasswordRequest, AuthUpdatePasswordResponse, AuthUpdateWorkspaceRquest, AuthUpdateWorkspaceResponse, WorkspaceChanged, };
package/lib/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { AuthGetUserResponse, AuthLoginRequest, AuthLoginResponse, AuthRecoverPasswordRequest, AuthRecoverPasswordResponse, AuthResetPasswordRequest, AuthResetPasswordResponse, JWTResponse, LoggedUserInfo, LoggedUserInfoProfileAccess } from './auth';
1
+ import { AuthGetUserResponse, AuthLoginRequest, AuthLoginResponse, AuthRecoverPasswordRequest, AuthRecoverPasswordResponse, AuthResetPasswordRequest, AuthResetPasswordResponse, AuthUpdatePasswordRequest, AuthUpdatePasswordResponse, AuthUpdateWorkspaceResponse, AuthUpdateWorkspaceRquest, JWTResponse, LoggedUserInfo, LoggedUserInfoProfileAccess, WorkspaceChanged } from './auth';
2
2
  import { CreateServiceRequest, CreateServiceResponse, DeleteServiceResponse, DeleteServicesRequest, DeleteServicesResponse, GetServiceResponse, GetServicesRequest, GetServicesResponse, ManyServices, ServiceSellingType, SingleService, UpdateServiceRequest, UpdateServiceResponse, UpdateServicesStatusRequest, UpdateServicesStatusResponse, UpdateServiceStatusRequest, UpdateServiceStatusResponse } from './services';
3
- export { ManyServices, GetServicesRequest, GetServicesResponse, SingleService, ServiceSellingType, GetServiceResponse, CreateServiceRequest, CreateServiceResponse, DeleteServiceResponse, DeleteServicesRequest, DeleteServicesResponse, UpdateServicesStatusRequest, UpdateServicesStatusResponse, UpdateServiceStatusRequest, UpdateServiceStatusResponse, UpdateServiceRequest, UpdateServiceResponse, AuthLoginRequest, JWTResponse, AuthLoginResponse, AuthRecoverPasswordRequest, AuthRecoverPasswordResponse, AuthResetPasswordRequest, AuthResetPasswordResponse, AuthGetUserResponse, LoggedUserInfo, LoggedUserInfoProfileAccess, };
3
+ export { ManyServices, GetServicesRequest, GetServicesResponse, SingleService, ServiceSellingType, GetServiceResponse, CreateServiceRequest, CreateServiceResponse, DeleteServiceResponse, DeleteServicesRequest, DeleteServicesResponse, UpdateServicesStatusRequest, UpdateServicesStatusResponse, UpdateServiceStatusRequest, UpdateServiceStatusResponse, UpdateServiceRequest, UpdateServiceResponse, AuthLoginRequest, JWTResponse, AuthLoginResponse, AuthRecoverPasswordRequest, AuthRecoverPasswordResponse, AuthResetPasswordRequest, AuthResetPasswordResponse, AuthGetUserResponse, LoggedUserInfo, LoggedUserInfoProfileAccess, AuthUpdatePasswordRequest, AuthUpdatePasswordResponse, AuthUpdateWorkspaceRquest, AuthUpdateWorkspaceResponse, WorkspaceChanged, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.1.66",
3
+ "version": "0.1.68",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -0,0 +1,4 @@
1
+ export interface AuthUpdatePasswordRequest {
2
+ currentPassword: string
3
+ newPassword: string
4
+ }
@@ -0,0 +1,3 @@
1
+ export interface AuthUpdatePasswordResponse {
2
+ message: string
3
+ }
@@ -0,0 +1,4 @@
1
+ export interface AuthUpdateWorkspaceRquest {
2
+ bid: string
3
+ cid: string
4
+ }
@@ -0,0 +1,7 @@
1
+ export interface WorkspaceChanged {
2
+ access_token: string
3
+ }
4
+
5
+ export interface AuthUpdateWorkspaceResponse {
6
+ data: WorkspaceChanged
7
+ }
package/src/auth/index.ts CHANGED
@@ -9,6 +9,13 @@ import { AuthRecoverPasswordRequest } from './RecoverPassword/Request'
9
9
  import { AuthRecoverPasswordResponse } from './RecoverPassword/Response'
10
10
  import { AuthResetPasswordRequest } from './ResetPassword/Request'
11
11
  import { AuthResetPasswordResponse } from './ResetPassword/Response'
12
+ import { AuthUpdatePasswordRequest } from './UpdatePassword/Request'
13
+ import { AuthUpdatePasswordResponse } from './UpdatePassword/Response'
14
+ import { AuthUpdateWorkspaceRquest } from './UpdateWorkspace/Request'
15
+ import {
16
+ AuthUpdateWorkspaceResponse,
17
+ WorkspaceChanged,
18
+ } from './UpdateWorkspace/Response'
12
19
 
13
20
  export {
14
21
  AuthLoginRequest,
@@ -21,4 +28,9 @@ export {
21
28
  AuthGetUserResponse,
22
29
  LoggedUserInfo,
23
30
  LoggedUserInfoProfileAccess,
31
+ AuthUpdatePasswordRequest,
32
+ AuthUpdatePasswordResponse,
33
+ AuthUpdateWorkspaceRquest,
34
+ AuthUpdateWorkspaceResponse,
35
+ WorkspaceChanged,
24
36
  }
package/src/index.ts CHANGED
@@ -6,9 +6,14 @@ import {
6
6
  AuthRecoverPasswordResponse,
7
7
  AuthResetPasswordRequest,
8
8
  AuthResetPasswordResponse,
9
+ AuthUpdatePasswordRequest,
10
+ AuthUpdatePasswordResponse,
11
+ AuthUpdateWorkspaceResponse,
12
+ AuthUpdateWorkspaceRquest,
9
13
  JWTResponse,
10
14
  LoggedUserInfo,
11
15
  LoggedUserInfoProfileAccess,
16
+ WorkspaceChanged,
12
17
  } from './auth'
13
18
  import {
14
19
  CreateServiceRequest,
@@ -58,4 +63,9 @@ export {
58
63
  AuthGetUserResponse,
59
64
  LoggedUserInfo,
60
65
  LoggedUserInfoProfileAccess,
66
+ AuthUpdatePasswordRequest,
67
+ AuthUpdatePasswordResponse,
68
+ AuthUpdateWorkspaceRquest,
69
+ AuthUpdateWorkspaceResponse,
70
+ WorkspaceChanged,
61
71
  }