@davidmashadow/ss-ecommerce-types 1.0.5 → 1.0.6
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/index.d.ts +0 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -6
- package/dist/index.js.map +1 -1
- package/dist/types/authentication.types.d.ts +64 -0
- package/dist/types/authentication.types.d.ts.map +1 -0
- package/dist/types/authentication.types.js +3 -0
- package/dist/types/authentication.types.js.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/user.types.d.ts +12 -0
- package/dist/types/user.types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Main entry point for shared-types package
|
|
4
|
-
*
|
|
5
|
-
* Usage:
|
|
6
|
-
* import { User, EMPTY_USER, ApiResponse } from '@your-org/shared-types';
|
|
7
|
-
*/
|
|
8
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
3
|
if (k2 === undefined) k2 = k;
|
|
10
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { IStaticImage } from "./product.types";
|
|
2
|
+
export interface IUserRegister {
|
|
3
|
+
name: string;
|
|
4
|
+
surname?: string;
|
|
5
|
+
email: string;
|
|
6
|
+
phoneNumber: string;
|
|
7
|
+
profileImage: IStaticImage[];
|
|
8
|
+
isActivated: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface ICommonMail {
|
|
11
|
+
userName: string;
|
|
12
|
+
mainUrl: string;
|
|
13
|
+
mainBrand: string;
|
|
14
|
+
contactMail: string;
|
|
15
|
+
mainAddress: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IRegisterMail extends ICommonMail {
|
|
18
|
+
activationCode: string;
|
|
19
|
+
}
|
|
20
|
+
export interface IPassResetMail extends ICommonMail {
|
|
21
|
+
forgetPassLink: string;
|
|
22
|
+
}
|
|
23
|
+
export interface IUserGoogle {
|
|
24
|
+
id: string;
|
|
25
|
+
displayName: string;
|
|
26
|
+
name: {
|
|
27
|
+
familyName: string;
|
|
28
|
+
givenName: string;
|
|
29
|
+
};
|
|
30
|
+
emails: {
|
|
31
|
+
value: string;
|
|
32
|
+
verified: boolean;
|
|
33
|
+
}[];
|
|
34
|
+
photos: {
|
|
35
|
+
value: string;
|
|
36
|
+
}[];
|
|
37
|
+
provider: string;
|
|
38
|
+
_raw: string;
|
|
39
|
+
_json: {
|
|
40
|
+
sub: string;
|
|
41
|
+
name: string;
|
|
42
|
+
given_name: string;
|
|
43
|
+
family_name: string;
|
|
44
|
+
picture: string;
|
|
45
|
+
email: string;
|
|
46
|
+
email_verified: boolean;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export interface IUserFacebook {
|
|
50
|
+
id: string;
|
|
51
|
+
displayName: string;
|
|
52
|
+
name: {
|
|
53
|
+
[key: string]: string;
|
|
54
|
+
};
|
|
55
|
+
email: string;
|
|
56
|
+
provider: string;
|
|
57
|
+
isActivated: boolean;
|
|
58
|
+
_raw: string;
|
|
59
|
+
_json: {
|
|
60
|
+
name: string;
|
|
61
|
+
id: string;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=authentication.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authentication.types.d.ts","sourceRoot":"","sources":["../../src/types/authentication.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,WAAW,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,WAAW;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,aAAc,SAAQ,WAAW;IAC9C,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,cAAe,SAAQ,WAAW;IAC/C,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE;QACF,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,MAAM,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,OAAO,CAAC;KACrB,EAAE,CAAC;IACJ,MAAM,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;KACjB,EAAE,CAAC;IACJ,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE;QACH,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,cAAc,EAAE,OAAO,CAAC;KAC3B,CAAC;CACL;AAED,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE;QACH,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;KACd,CAAC;CACL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authentication.types.js","sourceRoot":"","sources":["../../src/types/authentication.types.ts"],"names":[],"mappings":""}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC"}
|
package/dist/types/index.js
CHANGED
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./user.types"), exports);
|
|
18
18
|
__exportStar(require("./address.types"), exports);
|
|
19
19
|
__exportStar(require("./agreement.types"), exports);
|
|
20
|
+
__exportStar(require("./authentication.types"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,kDAAgC;AAChC,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,kDAAgC;AAChC,oDAAkC;AAClC,yDAAuC"}
|
|
@@ -17,4 +17,16 @@ export interface IUser {
|
|
|
17
17
|
createdAt: string;
|
|
18
18
|
updatedAt: string;
|
|
19
19
|
}
|
|
20
|
+
export interface IUserToken {
|
|
21
|
+
_id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
surname: string;
|
|
24
|
+
email: string;
|
|
25
|
+
phoneNumber: string;
|
|
26
|
+
role: string[];
|
|
27
|
+
isActivated: boolean;
|
|
28
|
+
activationCode: string;
|
|
29
|
+
iat: number;
|
|
30
|
+
exp: number;
|
|
31
|
+
}
|
|
20
32
|
//# sourceMappingURL=user.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.types.d.ts","sourceRoot":"","sources":["../../src/types/user.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,KAAK;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAA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