@cleartrip/ct-platform-types 0.1.42-b5

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,36 @@
1
+ import { RequestMethods } from '@cleartrip/ct-platform-constants';
2
+ export interface RequestOptions {
3
+ method: RequestMethods;
4
+ headers: {
5
+ 'Content-Type': string;
6
+ };
7
+ body?: string;
8
+ }
9
+ export interface RequestParams {
10
+ pathParams?: Record<string, string>;
11
+ queryParams?: Record<string, string>;
12
+ }
13
+ export interface AdditionalHeaders {
14
+ Accept?: string;
15
+ Caller?: string;
16
+ Origin?: string;
17
+ Referer?: string;
18
+ Expires?: string;
19
+ Authority?: string;
20
+ 'app-agent'?: string;
21
+ 'Content-Type'?: string;
22
+ x_ct_sourcetype?: string;
23
+ 'Cache-Control'?: string;
24
+ [key: string]: unknown;
25
+ }
26
+ export interface ApiRes {
27
+ data: unknown;
28
+ status: number;
29
+ }
30
+ export interface APIError {
31
+ name: string;
32
+ status: number;
33
+ message?: string;
34
+ statusText: string;
35
+ }
36
+ //# sourceMappingURL=api.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.types.d.ts","sourceRoot":"","sources":["../packages/types/src/api.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,EAAE;QACL,cAAc,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,iBAAiB;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,MAAM;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,QAAQ;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ exports.ValidateOTPAction = void 0;
4
+ (function (ValidateOTPAction) {
5
+ ValidateOTPAction["SIGNIN"] = "SIGNIN";
6
+ ValidateOTPAction["SIGNUP"] = "SIGNUP";
7
+ })(exports.ValidateOTPAction || (exports.ValidateOTPAction = {}));
8
+ //# sourceMappingURL=ct-platform-types.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ct-platform-types.cjs.js","sources":["../packages/types/src/login.types.ts"],"sourcesContent":[null],"names":["ValidateOTPAction"],"mappings":";;AAmBYA,mCAGX;AAHD,CAAA,UAAY,iBAAiB,EAAA;AACzB,IAAA,iBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,iBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACrB,CAAC,EAHWA,yBAAiB,KAAjBA,yBAAiB,GAG5B,EAAA,CAAA,CAAA;;"}
@@ -0,0 +1,8 @@
1
+ var ValidateOTPAction;
2
+ (function (ValidateOTPAction) {
3
+ ValidateOTPAction["SIGNIN"] = "SIGNIN";
4
+ ValidateOTPAction["SIGNUP"] = "SIGNUP";
5
+ })(ValidateOTPAction || (ValidateOTPAction = {}));
6
+
7
+ export { ValidateOTPAction };
8
+ //# sourceMappingURL=ct-platform-types.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ct-platform-types.esm.js","sources":["../packages/types/src/login.types.ts"],"sourcesContent":[null],"names":[],"mappings":"IAmBY,kBAGX;AAHD,CAAA,UAAY,iBAAiB,EAAA;AACzB,IAAA,iBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,iBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACrB,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,GAG5B,EAAA,CAAA,CAAA;;;;"}
@@ -0,0 +1,3 @@
1
+ export * from './api.types';
2
+ export * from './login.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,31 @@
1
+ export interface SendOtpRes {
2
+ commId: string;
3
+ status: string;
4
+ action: string;
5
+ }
6
+ export interface ValidateOtpResData {
7
+ commId: string;
8
+ status: string;
9
+ action: string;
10
+ }
11
+ export interface ValidateOtpRes {
12
+ status: number;
13
+ action: string;
14
+ signup: boolean;
15
+ data: ValidateOtpResData;
16
+ }
17
+ export declare enum ValidateOTPAction {
18
+ SIGNIN = "SIGNIN",
19
+ SIGNUP = "SIGNUP"
20
+ }
21
+ export interface FKRedirectionRes {
22
+ method: string;
23
+ status: string;
24
+ redirectUri: string;
25
+ params: {
26
+ state: string;
27
+ clientName: string;
28
+ redirectURI: string;
29
+ };
30
+ }
31
+ //# sourceMappingURL=login.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login.types.d.ts","sourceRoot":"","sources":["../packages/types/src/login.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,kBAAkB,CAAC;CAC5B;AAED,oBAAY,iBAAiB;IACzB,MAAM,WAAW;IACjB,MAAM,WAAW;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACvB,CAAC;CACL"}
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@cleartrip/ct-platform-types",
3
+ "version": "0.1.42-b5",
4
+ "description": "Platform Types",
5
+ "types": "dist/index.d.ts",
6
+ "main": "dist/ct-platform-types.cjs.js",
7
+ "module": "dist/ct-platform-types.esm.js",
8
+ "sideEffects": false,
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "devDependencies": {},
13
+ "dependencies": {
14
+ "@cleartrip/ct-platform-constants": "0.1.42-b5"
15
+ },
16
+ "peerDependencies": {
17
+ "react": ">=16.8.0",
18
+ "react-dom": ">=16.8.0"
19
+ },
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "author": "Cleartrip",
24
+ "license": "ISC",
25
+ "scripts": {
26
+ "test": "echo \"Error: no test specified\" && exit 1",
27
+ "watch-package": "rollup -c -w",
28
+ "build-package": "rollup -c",
29
+ "build-package:clean": "rm -rf dist && rollup -c"
30
+ }
31
+ }