@mivis/petmart-api 1.2.6 → 1.2.8

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/type.d.ts +19 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -21,18 +21,30 @@ declare namespace Components {
21
21
 
22
22
  export type ISignUpResponse = ITokensResponse;
23
23
 
24
- export interface IRefreshRequest {
25
- refreshToken: string;
24
+ export interface IRecoveryRequest {
25
+ email: string;
26
+ password: string;
26
27
  }
27
28
 
28
- export type IRefreshResponse = ITokensResponse;
29
+ export interface IRecoveryResponse {
30
+ message: string;
31
+ }
29
32
 
30
- export interface ITokenPayload {
33
+ export interface IActivationRequest {
31
34
  email: string;
32
- role: ERoles;
33
- _id: string;
35
+ activation_code: number;
36
+ }
37
+
38
+ export interface IActivationResponse {
39
+ message: string;
40
+ }
41
+
42
+ export interface IRefreshRequest {
43
+ refreshToken: string;
34
44
  }
35
45
 
46
+ export type IRefreshResponse = ITokensResponse;
47
+
36
48
  export enum ELoginTypes {
37
49
  SELLER = 'SELLER',
38
50
  USER = 'USER',
@@ -40,16 +52,10 @@ declare namespace Components {
40
52
 
41
53
  export interface ISendEmailRequest {
42
54
  email: string;
43
- type: ESendEmailTypes;
44
55
  }
45
56
 
46
57
  export interface ISendEmailResponse {
47
- activation_code: number;
48
- }
49
-
50
- export enum ESendEmailTypes {
51
- RECOVERY = 'RECOVERY',
52
- ACTIVATE = 'ACTIVATE',
58
+ message: string;
53
59
  }
54
60
 
55
61
  export enum ERoles {