@davidmashadow/ss-ecommerce-types 1.0.5 → 1.0.7

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 CHANGED
@@ -1,8 +1,2 @@
1
- /**
2
- * Main entry point for shared-types package
3
- *
4
- * Usage:
5
- * import { User, EMPTY_USER, ApiResponse } from '@your-org/shared-types';
6
- */
7
1
  export * from './types';
8
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,SAAS,CAAC"}
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":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,0CAAwB"}
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,WAA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types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authentication.types.js","sourceRoot":"","sources":["../../src/types/authentication.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import type { IImage } from "./product.types";
2
+ export interface IBrand {
3
+ _id: string;
4
+ name: string;
5
+ productCount: number;
6
+ images: IImage;
7
+ createdAt: string;
8
+ updatedAt: string;
9
+ }
10
+ //# sourceMappingURL=brand.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand.types.d.ts","sourceRoot":"","sources":["../../src/types/brand.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,WAAW,MAAM;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=brand.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand.types.js","sourceRoot":"","sources":["../../src/types/brand.types.ts"],"names":[],"mappings":""}
@@ -1,4 +1,8 @@
1
- export * from './user.types';
2
1
  export * from './address.types';
3
2
  export * from './agreement.types';
3
+ export * from './authentication.types';
4
+ export * from './brand.types';
5
+ export * from './product.types';
6
+ export * from './traffic.types';
7
+ export * from './user.types';
4
8
  //# sourceMappingURL=index.d.ts.map
@@ -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,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC"}
@@ -14,7 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./user.types"), exports);
18
17
  __exportStar(require("./address.types"), exports);
19
18
  __exportStar(require("./agreement.types"), exports);
19
+ __exportStar(require("./authentication.types"), exports);
20
+ __exportStar(require("./brand.types"), exports);
21
+ __exportStar(require("./product.types"), exports);
22
+ __exportStar(require("./traffic.types"), exports);
23
+ __exportStar(require("./user.types"), exports);
20
24
  //# sourceMappingURL=index.js.map
@@ -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,kDAAgC;AAChC,oDAAkC;AAClC,yDAAuC;AACvC,gDAA8B;AAC9B,kDAAgC;AAChC,kDAAgC;AAChC,+CAA6B"}
@@ -2,4 +2,8 @@ export interface IStaticImage {
2
2
  name: string;
3
3
  image: string;
4
4
  }
5
+ export interface IImage {
6
+ staticImage: IStaticImage[];
7
+ dynamicImage: string[];
8
+ }
5
9
  //# sourceMappingURL=product.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"product.types.d.ts","sourceRoot":"","sources":["../../src/types/product.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"product.types.d.ts","sourceRoot":"","sources":["../../src/types/product.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACjB;AACD,MAAM,WAAW,MAAM;IACnB,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,YAAY,EAAE,MAAM,EAAE,CAAC;CAC1B"}
@@ -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,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,UAAU,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACrB"}
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,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,UAAU,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,UAAU;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACf"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@davidmashadow/ss-ecommerce-types",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },