@openbox/shared-types 0.1.81 → 0.1.83

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,3 @@
1
+ export interface AuthRefreshTokenRequest {
2
+ refreshToken: string;
3
+ }
@@ -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/RefreshToken/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { JWTResponse } from '../Login/Response';
2
+ export interface AuthRefreshTokenResponse {
3
+ data: JWTResponse;
4
+ }
@@ -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/RefreshToken/Response.ts"],"names":[],"mappings":""}
@@ -3,10 +3,12 @@ import { AuthLoginRequest } from './Login/Request';
3
3
  import { AuthLoginResponse, JWTResponse } from './Login/Response';
4
4
  import { AuthRecoverPasswordRequest } from './RecoverPassword/Request';
5
5
  import { AuthRecoverPasswordResponse } from './RecoverPassword/Response';
6
+ import { AuthRefreshTokenRequest } from './RefreshToken/Request';
7
+ import { AuthRefreshTokenResponse } from './RefreshToken/Response';
6
8
  import { AuthResetPasswordRequest } from './ResetPassword/Request';
7
9
  import { AuthResetPasswordResponse } from './ResetPassword/Response';
8
10
  import { AuthUpdatePasswordRequest } from './UpdatePassword/Request';
9
11
  import { AuthUpdatePasswordResponse } from './UpdatePassword/Response';
10
12
  import { AuthUpdateWorkspaceRequest } from './UpdateWorkspace/Request';
11
13
  import { AuthUpdateWorkspaceResponse, WorkspaceChanged } from './UpdateWorkspace/Response';
12
- export { AuthLoginRequest, JWTResponse, AuthLoginResponse, AuthRecoverPasswordRequest, AuthRecoverPasswordResponse, AuthResetPasswordResponse, AuthResetPasswordRequest, AuthGetUserResponse, LoggedUserInfo, LoggedUserInfoProfileAccess, AuthUpdatePasswordRequest, AuthUpdatePasswordResponse, AuthUpdateWorkspaceRequest, AuthUpdateWorkspaceResponse, WorkspaceChanged, LoggedUserInfoProfileAccessBranchesModules, LoggedUserInfoProfileAccessBranches, LoggedUserInfoProfile, LoggedUserInfoWorkspaceCompany, LoggedUserInfoWorkspaceBranch, LoggedUserInfoWorkspace, };
14
+ export { AuthLoginRequest, JWTResponse, AuthLoginResponse, AuthRecoverPasswordRequest, AuthRecoverPasswordResponse, AuthResetPasswordResponse, AuthResetPasswordRequest, AuthGetUserResponse, LoggedUserInfo, LoggedUserInfoProfileAccess, AuthUpdatePasswordRequest, AuthUpdatePasswordResponse, AuthUpdateWorkspaceRequest, AuthUpdateWorkspaceResponse, WorkspaceChanged, LoggedUserInfoProfileAccessBranchesModules, LoggedUserInfoProfileAccessBranches, LoggedUserInfoProfile, LoggedUserInfoWorkspaceCompany, LoggedUserInfoWorkspaceBranch, LoggedUserInfoWorkspace, AuthRefreshTokenRequest, AuthRefreshTokenResponse, };
@@ -5,9 +5,9 @@ export interface CustomerBranchesCreateMany {
5
5
  default: boolean;
6
6
  address1: string;
7
7
  address2?: string;
8
- country: string;
9
- state: string;
10
- city: string;
8
+ country: number;
9
+ state: number;
10
+ city: number;
11
11
  }
12
12
  export interface CustomerBranchesCreateManyRequest {
13
13
  branches: CustomerBranchesCreateMany[];
package/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { AuthGetUserResponse, AuthLoginRequest, AuthLoginResponse, AuthRecoverPasswordRequest, AuthRecoverPasswordResponse, AuthResetPasswordRequest, AuthResetPasswordResponse, AuthUpdatePasswordRequest, AuthUpdatePasswordResponse, AuthUpdateWorkspaceRequest, AuthUpdateWorkspaceResponse, JWTResponse, LoggedUserInfo, LoggedUserInfoProfile, LoggedUserInfoProfileAccess, LoggedUserInfoProfileAccessBranches, LoggedUserInfoProfileAccessBranchesModules, LoggedUserInfoWorkspace, LoggedUserInfoWorkspaceBranch, LoggedUserInfoWorkspaceCompany, WorkspaceChanged } from './auth';
1
+ import { AuthGetUserResponse, AuthLoginRequest, AuthLoginResponse, AuthRecoverPasswordRequest, AuthRecoverPasswordResponse, AuthRefreshTokenRequest, AuthRefreshTokenResponse, AuthResetPasswordRequest, AuthResetPasswordResponse, AuthUpdatePasswordRequest, AuthUpdatePasswordResponse, AuthUpdateWorkspaceRequest, AuthUpdateWorkspaceResponse, JWTResponse, LoggedUserInfo, LoggedUserInfoProfile, LoggedUserInfoProfileAccess, LoggedUserInfoProfileAccessBranches, LoggedUserInfoProfileAccessBranchesModules, LoggedUserInfoWorkspace, LoggedUserInfoWorkspaceBranch, LoggedUserInfoWorkspaceCompany, WorkspaceChanged } from './auth';
2
2
  import { CustomerBranchesCreateMany, CustomerBranchesCreateManyRequest, CustomerBranchesDeleteSingleResponse, CustomerBranchesGetManyRequest, CustomerBranchesMany, CustomerBranchesManyResponse, CustomerBranchesUpdateDefaultRequest, CustomerBranchesUpdateDefaultResponse, CustomerBranchesUpdateSingle, CustomerBranchesUpdateSingleRequest, CustomerBranchesUpdateSingleResponse, CustomerGetMany, CustomerGetManyResponse, CustomersCreateSingleRequest, CustomersCreateSingleResponse, CustomersDeleteManyRequest, CustomersDeleteManyResponse, CustomersDeleteSingleResponse, CustomersGetManyRequest, CustomersGetSingle, CustomersGetSingleResponse, CustomersUpdateManyStatusesResponse, CustomersUpdateSingleRequest, CustomersUpdateSingleResponse, CustomersUpdateSingleStatusResponse, CustomerUpdateManyStatusesRequest } from './customers';
3
3
  import { ServicesCreateSingleRequest, ServicesCreateSingleResponse, ServicesDeleteManyRequest, ServicesDeleteManyResponse, ServicesDeleteSingleResponse, ServicesGetManyRequest, ServicesGetManyResponse, ServicesGetSingleResponse, ServicesMany, ServicesSellingTypeMany, ServicesSellingTypeManyResponse, ServicesSingle, ServicesUpdateManyStatusRequest, ServicesUpdateManyStatusResponse, ServicesUpdateSingleRequest, ServicesUpdateSingleResponse, ServicesUpdateSingleStatusRequest, ServicesUpdateSingleStatusResponse } from './services';
4
4
  import { SystemCityMany, SystemCityManyResponse, SystemCountryMany, SystemCountryManyResponse, SystemPersonTypeMany, SystemPersonTypeManyResponse, SystemSellingTypeMany, SystemSellingTypeManyResponse, SystemStateMany, SystemStateManyResponse, SystemTaxerTypesMany, SystemTaxerTypesManyResponse, SystemTypeNaturalMany, SystemTypeNaturalManyResponse } from './System';
5
- export { ServicesSellingTypeMany, ServicesMany, ServicesGetManyRequest, ServicesGetManyResponse, ServicesSingle, ServicesGetSingleResponse, ServicesCreateSingleRequest, ServicesCreateSingleResponse, ServicesDeleteSingleResponse, ServicesDeleteManyRequest, ServicesDeleteManyResponse, ServicesUpdateManyStatusRequest, ServicesUpdateManyStatusResponse, ServicesUpdateSingleStatusRequest, ServicesUpdateSingleStatusResponse, ServicesUpdateSingleRequest, ServicesUpdateSingleResponse, AuthLoginRequest, JWTResponse, AuthLoginResponse, AuthRecoverPasswordRequest, AuthRecoverPasswordResponse, AuthResetPasswordRequest, AuthResetPasswordResponse, AuthGetUserResponse, LoggedUserInfo, LoggedUserInfoProfileAccess, AuthUpdatePasswordRequest, AuthUpdatePasswordResponse, AuthUpdateWorkspaceRequest, AuthUpdateWorkspaceResponse, WorkspaceChanged, LoggedUserInfoProfileAccessBranchesModules, LoggedUserInfoProfileAccessBranches, LoggedUserInfoProfile, LoggedUserInfoWorkspaceCompany, LoggedUserInfoWorkspaceBranch, LoggedUserInfoWorkspace, ServicesSellingTypeManyResponse, CustomerBranchesMany, CustomerBranchesManyResponse, SystemCityMany, SystemCityManyResponse, SystemCountryMany, SystemCountryManyResponse, SystemPersonTypeMany, SystemPersonTypeManyResponse, SystemSellingTypeMany, SystemSellingTypeManyResponse, SystemStateMany, SystemStateManyResponse, SystemTaxerTypesMany, SystemTaxerTypesManyResponse, SystemTypeNaturalMany, SystemTypeNaturalManyResponse, CustomersDeleteSingleResponse, CustomersCreateSingleResponse, CustomersGetSingle, CustomersGetSingleResponse, CustomersUpdateSingleResponse, CustomersUpdateSingleStatusResponse, CustomersUpdateManyStatusesResponse, CustomersDeleteManyResponse, CustomersCreateSingleRequest, CustomersGetManyRequest, CustomerGetMany, CustomerGetManyResponse, CustomersDeleteManyRequest, CustomerUpdateManyStatusesRequest, CustomerBranchesCreateMany, CustomerBranchesCreateManyRequest, CustomerBranchesDeleteSingleResponse, CustomerBranchesGetManyRequest, CustomerBranchesUpdateSingle, CustomerBranchesUpdateSingleRequest, CustomerBranchesUpdateDefaultRequest, CustomerBranchesUpdateDefaultResponse, CustomerBranchesUpdateSingleResponse, CustomersUpdateSingleRequest, };
5
+ export { ServicesSellingTypeMany, ServicesMany, ServicesGetManyRequest, ServicesGetManyResponse, ServicesSingle, ServicesGetSingleResponse, ServicesCreateSingleRequest, ServicesCreateSingleResponse, ServicesDeleteSingleResponse, ServicesDeleteManyRequest, ServicesDeleteManyResponse, ServicesUpdateManyStatusRequest, ServicesUpdateManyStatusResponse, ServicesUpdateSingleStatusRequest, ServicesUpdateSingleStatusResponse, ServicesUpdateSingleRequest, ServicesUpdateSingleResponse, AuthLoginRequest, JWTResponse, AuthLoginResponse, AuthRecoverPasswordRequest, AuthRecoverPasswordResponse, AuthResetPasswordRequest, AuthResetPasswordResponse, AuthGetUserResponse, LoggedUserInfo, LoggedUserInfoProfileAccess, AuthUpdatePasswordRequest, AuthUpdatePasswordResponse, AuthUpdateWorkspaceRequest, AuthUpdateWorkspaceResponse, WorkspaceChanged, LoggedUserInfoProfileAccessBranchesModules, LoggedUserInfoProfileAccessBranches, LoggedUserInfoProfile, LoggedUserInfoWorkspaceCompany, LoggedUserInfoWorkspaceBranch, LoggedUserInfoWorkspace, ServicesSellingTypeManyResponse, AuthRefreshTokenRequest, AuthRefreshTokenResponse, CustomerBranchesMany, CustomerBranchesManyResponse, SystemCityMany, SystemCityManyResponse, SystemCountryMany, SystemCountryManyResponse, SystemPersonTypeMany, SystemPersonTypeManyResponse, SystemSellingTypeMany, SystemSellingTypeManyResponse, SystemStateMany, SystemStateManyResponse, SystemTaxerTypesMany, SystemTaxerTypesManyResponse, SystemTypeNaturalMany, SystemTypeNaturalManyResponse, CustomersDeleteSingleResponse, CustomersCreateSingleResponse, CustomersGetSingle, CustomersGetSingleResponse, CustomersUpdateSingleResponse, CustomersUpdateSingleStatusResponse, CustomersUpdateManyStatusesResponse, CustomersDeleteManyResponse, CustomersCreateSingleRequest, CustomersGetManyRequest, CustomerGetMany, CustomerGetManyResponse, CustomersDeleteManyRequest, CustomerUpdateManyStatusesRequest, CustomerBranchesCreateMany, CustomerBranchesCreateManyRequest, CustomerBranchesDeleteSingleResponse, CustomerBranchesGetManyRequest, CustomerBranchesUpdateSingle, CustomerBranchesUpdateSingleRequest, CustomerBranchesUpdateDefaultRequest, CustomerBranchesUpdateDefaultResponse, CustomerBranchesUpdateSingleResponse, CustomersUpdateSingleRequest, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.1.81",
3
+ "version": "0.1.83",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -0,0 +1,3 @@
1
+ export interface AuthRefreshTokenRequest {
2
+ refreshToken: string
3
+ }
@@ -0,0 +1,5 @@
1
+ import { JWTResponse } from '../Login/Response'
2
+
3
+ export interface AuthRefreshTokenResponse {
4
+ data: JWTResponse
5
+ }
package/src/auth/index.ts CHANGED
@@ -13,6 +13,8 @@ import { AuthLoginRequest } from './Login/Request'
13
13
  import { AuthLoginResponse, JWTResponse } from './Login/Response'
14
14
  import { AuthRecoverPasswordRequest } from './RecoverPassword/Request'
15
15
  import { AuthRecoverPasswordResponse } from './RecoverPassword/Response'
16
+ import { AuthRefreshTokenRequest } from './RefreshToken/Request'
17
+ import { AuthRefreshTokenResponse } from './RefreshToken/Response'
16
18
  import { AuthResetPasswordRequest } from './ResetPassword/Request'
17
19
  import { AuthResetPasswordResponse } from './ResetPassword/Response'
18
20
  import { AuthUpdatePasswordRequest } from './UpdatePassword/Request'
@@ -45,4 +47,6 @@ export {
45
47
  LoggedUserInfoWorkspaceCompany,
46
48
  LoggedUserInfoWorkspaceBranch,
47
49
  LoggedUserInfoWorkspace,
50
+ AuthRefreshTokenRequest,
51
+ AuthRefreshTokenResponse,
48
52
  }
@@ -5,9 +5,9 @@ export interface CustomerBranchesCreateMany {
5
5
  default: boolean
6
6
  address1: string
7
7
  address2?: string
8
- country: string
9
- state: string
10
- city: string
8
+ country: number
9
+ state: number
10
+ city: number
11
11
  }
12
12
 
13
13
  export interface CustomerBranchesCreateManyRequest {
package/src/index.ts CHANGED
@@ -4,6 +4,8 @@ import {
4
4
  AuthLoginResponse,
5
5
  AuthRecoverPasswordRequest,
6
6
  AuthRecoverPasswordResponse,
7
+ AuthRefreshTokenRequest,
8
+ AuthRefreshTokenResponse,
7
9
  AuthResetPasswordRequest,
8
10
  AuthResetPasswordResponse,
9
11
  AuthUpdatePasswordRequest,
@@ -19,7 +21,7 @@ import {
19
21
  LoggedUserInfoWorkspace,
20
22
  LoggedUserInfoWorkspaceBranch,
21
23
  LoggedUserInfoWorkspaceCompany,
22
- WorkspaceChanged
24
+ WorkspaceChanged,
23
25
  } from './auth'
24
26
  import {
25
27
  CustomerBranchesCreateMany,
@@ -43,9 +45,11 @@ import {
43
45
  CustomersGetManyRequest,
44
46
  CustomersGetSingle,
45
47
  CustomersGetSingleResponse,
46
- CustomersUpdateManyStatusesResponse, CustomersUpdateSingleRequest, CustomersUpdateSingleResponse,
48
+ CustomersUpdateManyStatusesResponse,
49
+ CustomersUpdateSingleRequest,
50
+ CustomersUpdateSingleResponse,
47
51
  CustomersUpdateSingleStatusResponse,
48
- CustomerUpdateManyStatusesRequest
52
+ CustomerUpdateManyStatusesRequest,
49
53
  } from './customers'
50
54
  import {
51
55
  ServicesCreateSingleRequest,
@@ -65,7 +69,7 @@ import {
65
69
  ServicesUpdateSingleRequest,
66
70
  ServicesUpdateSingleResponse,
67
71
  ServicesUpdateSingleStatusRequest,
68
- ServicesUpdateSingleStatusResponse
72
+ ServicesUpdateSingleStatusResponse,
69
73
  } from './services'
70
74
  import {
71
75
  SystemCityMany,
@@ -81,7 +85,7 @@ import {
81
85
  SystemTaxerTypesMany,
82
86
  SystemTaxerTypesManyResponse,
83
87
  SystemTypeNaturalMany,
84
- SystemTypeNaturalManyResponse
88
+ SystemTypeNaturalManyResponse,
85
89
  } from './System'
86
90
 
87
91
  export {
@@ -124,6 +128,8 @@ export {
124
128
  LoggedUserInfoWorkspaceBranch,
125
129
  LoggedUserInfoWorkspace,
126
130
  ServicesSellingTypeManyResponse,
131
+ AuthRefreshTokenRequest,
132
+ AuthRefreshTokenResponse,
127
133
  CustomerBranchesMany,
128
134
  CustomerBranchesManyResponse,
129
135
  SystemCityMany,