@cleartrip/ct-platform-types 3.0.0-beta.2 → 3.0.0-beta.5

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,3 +1,4 @@
1
1
  export * from './api.types';
2
+ export * from './user.types';
2
3
  export * from './login.types';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/types/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/types/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,30 @@
1
+ export interface UserInsightLoyaltyData {
2
+ program: string;
3
+ loyaltyEndDate: number;
4
+ loyaltyStartDate: number;
5
+ }
6
+ export interface UserInsightsData {
7
+ accountId: string;
8
+ bookingStatus: {
9
+ lifetimeBooking: number;
10
+ lastbookingDate: number;
11
+ firstbookingDate: number;
12
+ postmergerBooking: number;
13
+ lastOneYearBooking: number;
14
+ secondLastbookingDate: number;
15
+ };
16
+ loyaltyStatus: [
17
+ {
18
+ fk: UserInsightLoyaltyData;
19
+ },
20
+ {
21
+ myntra: UserInsightLoyaltyData;
22
+ }
23
+ ];
24
+ }
25
+ export interface UserInsights {
26
+ status: number;
27
+ message: string;
28
+ data: UserInsightsData;
29
+ }
30
+ //# sourceMappingURL=user.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.types.d.ts","sourceRoot":"","sources":["../packages/types/src/user.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,gBAAgB;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE;QACX,eAAe,EAAE,MAAM,CAAC;QACxB,eAAe,EAAE,MAAM,CAAC;QACxB,gBAAgB,EAAE,MAAM,CAAC;QACzB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,kBAAkB,EAAE,MAAM,CAAC;QAC3B,qBAAqB,EAAE,MAAM,CAAC;KACjC,CAAC;IACF,aAAa,EAAE;QACX;YACI,EAAE,EAAE,sBAAsB,CAAC;SAC9B;QACD;YACI,MAAM,EAAE,sBAAsB,CAAC;SAClC;KACJ,CAAC;CACL;AAED,MAAM,WAAW,YAAY;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,gBAAgB,CAAC;CAC1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleartrip/ct-platform-types",
3
- "version": "3.0.0-beta.2",
3
+ "version": "3.0.0-beta.5",
4
4
  "description": "Platform Types",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/ct-platform-types.cjs.js",
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "devDependencies": {},
13
13
  "dependencies": {
14
- "@cleartrip/ct-platform-constants": "3.0.0-beta.2"
14
+ "@cleartrip/ct-platform-constants": "3.0.0-beta.5"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "react": ">=16.8.0",