@xfloor/floor-memory-sdk-ts 1.0.2 → 1.0.4

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @xfloor/floor-memory-sdk-ts@1.0.2
1
+ # @xfloor/floor-memory-sdk-ts@1.0.4
2
2
 
3
3
  A TypeScript SDK client for the appfloor.in API.
4
4
 
@@ -105,6 +105,7 @@ All URIs are relative to *https://appfloor.in*
105
105
  - [SendValidationCode200Response](docs/SendValidationCode200Response.md)
106
106
  - [SendValidationCodeRequest](docs/SendValidationCodeRequest.md)
107
107
  - [SignInWithEmail200Response](docs/SignInWithEmail200Response.md)
108
+ - [SignInWithEmail200ResponsePodInfo](docs/SignInWithEmail200ResponsePodInfo.md)
108
109
  - [SignInWithEmail200ResponseProfile](docs/SignInWithEmail200ResponseProfile.md)
109
110
  - [SignInWithEmail200ResponseProfileAvatar](docs/SignInWithEmail200ResponseProfileAvatar.md)
110
111
  - [SignUp200Response](docs/SignUp200Response.md)
@@ -132,7 +133,7 @@ and is automatically generated by the
132
133
  [OpenAPI Generator](https://openapi-generator.tech) project:
133
134
 
134
135
  - API version: `1.0.0`
135
- - Package version: `1.0.2`
136
+ - Package version: `1.0.4`
136
137
  - Generator version: `7.18.0`
137
138
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
138
139
 
@@ -158,12 +158,12 @@ export declare class DefaultApi extends runtime.BaseAPI {
158
158
  */
159
159
  resetPassword(requestParameters: ResetPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResetPassword200Response>;
160
160
  /**
161
- * Generates and sends a one-time validation code to the user for verification of sensitive or critical account operations. This API is used across multiple authentication and account-management flows. The validation code is delivered to the user via the appropriate channel (**email or mobile number**), based on the requested operation mode and the input provided. The generated code is **time-bound**, **single-use**, and must be validated using the corresponding verification APIs to complete the requested action. --- ### **Usage Scenarios (Mode Definition)** | Mode | Purpose | | ---- | ----------------------------- | | `0` | Email or mobile number change | | `1` | Password change | | `2` | Delete account | | `3` | Clear account | | `4` | Signup Verification | **Mode `5` – Signup Verification** For login verification, the validation code is sent to **either the email ID or the mobile number provided in the request**. At least **one of email or mobile number must be supplied** for this mode. --- ### **Behavior** * Generates a secure, one-time validation code * Sends the code to the appropriate channel: * Email or mobile number, depending on the operation mode and input * Associates the code with: * User identity (or login identifier) * Requested operation (`mode`) * Application context (if applicable) * Validation codes are valid for a limited duration and **cannot be reused** --- ### **Authentication** This endpoint requires **Bearer Token authentication**, **except** where explicitly allowed (for example, login-related flows). ``` Authorization: Bearer <access_token> ``` --- ### **Successful Response** On success, the API confirms that the validation code has been generated and successfully dispatched to the user. --- ### **Error Response** The API returns an error response if: * The user does not exist or is not eligible for the requested operation * The requested mode is invalid or unsupported * Required identifiers (email or mobile number for login verification) are missing * Rate limits are exceeded * Authorization fails (where applicable) --- ### **Security Notes (Recommended)** * Validation codes are single-use and time-bound * Rate limiting is enforced to prevent abuse * Repeated failures may trigger temporary blocking or additional verification --- ### **One-Line Summary** > Sends a one-time validation code for secure account and authentication operations, including login via email or mobile number.
161
+ * Generates and sends a one-time validation code to the user for verification of sensitive or critical account operations. This API is used across multiple authentication and account-management flows. The validation code is delivered to the user via the appropriate channel (**email or mobile number**), based on the requested operation mode and the input provided. The generated code is **time-bound**, **single-use**, and must be validated using the corresponding verification APIs to complete the requested action. --- ### **Usage Scenarios (Mode Definition)** | Mode | Purpose | | ---- | ----------------------------- | | `0` | Email or mobile number change | | `1` | Password change | | `2` | Delete account | | `3` | Clear account | | `4` | Signup Verification | | `5` | Using OTP for Login | | `6` | OTP for forgot password | **Mode `4` – Signup Verification** For login verification, the validation code is sent to **either the email ID or the mobile number provided in the request**. At least **one of email or mobile number must be supplied** for this mode. --- ### **Behavior** * Generates a secure, one-time validation code * Sends the code to the appropriate channel: * Email or mobile number, depending on the operation mode and input * Associates the code with: * User identity (or login identifier) * Requested operation (`mode`) * Application context (if applicable) * Validation codes are valid for a limited duration and **cannot be reused** --- ### **Authentication** This endpoint requires **Bearer Token authentication**, **except** where explicitly allowed (for example, login-related flows). ``` Authorization: Bearer <access_token> ``` --- ### **Successful Response** On success, the API confirms that the validation code has been generated and successfully dispatched to the user. --- ### **Error Response** The API returns an error response if: * The user does not exist or is not eligible for the requested operation * The requested mode is invalid or unsupported * Required identifiers (email or mobile number for login verification) are missing * Rate limits are exceeded * Authorization fails (where applicable) --- ### **Security Notes (Recommended)** * Validation codes are single-use and time-bound * Rate limiting is enforced to prevent abuse * Repeated failures may trigger temporary blocking or additional verification --- ### **One-Line Summary** > Sends a one-time validation code for secure account and authentication operations, including login via email or mobile number.
162
162
  * Send Validation code
163
163
  */
164
164
  sendValidationCodeRaw(requestParameters: SendValidationCodeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SendValidationCode200Response>>;
165
165
  /**
166
- * Generates and sends a one-time validation code to the user for verification of sensitive or critical account operations. This API is used across multiple authentication and account-management flows. The validation code is delivered to the user via the appropriate channel (**email or mobile number**), based on the requested operation mode and the input provided. The generated code is **time-bound**, **single-use**, and must be validated using the corresponding verification APIs to complete the requested action. --- ### **Usage Scenarios (Mode Definition)** | Mode | Purpose | | ---- | ----------------------------- | | `0` | Email or mobile number change | | `1` | Password change | | `2` | Delete account | | `3` | Clear account | | `4` | Signup Verification | **Mode `5` – Signup Verification** For login verification, the validation code is sent to **either the email ID or the mobile number provided in the request**. At least **one of email or mobile number must be supplied** for this mode. --- ### **Behavior** * Generates a secure, one-time validation code * Sends the code to the appropriate channel: * Email or mobile number, depending on the operation mode and input * Associates the code with: * User identity (or login identifier) * Requested operation (`mode`) * Application context (if applicable) * Validation codes are valid for a limited duration and **cannot be reused** --- ### **Authentication** This endpoint requires **Bearer Token authentication**, **except** where explicitly allowed (for example, login-related flows). ``` Authorization: Bearer <access_token> ``` --- ### **Successful Response** On success, the API confirms that the validation code has been generated and successfully dispatched to the user. --- ### **Error Response** The API returns an error response if: * The user does not exist or is not eligible for the requested operation * The requested mode is invalid or unsupported * Required identifiers (email or mobile number for login verification) are missing * Rate limits are exceeded * Authorization fails (where applicable) --- ### **Security Notes (Recommended)** * Validation codes are single-use and time-bound * Rate limiting is enforced to prevent abuse * Repeated failures may trigger temporary blocking or additional verification --- ### **One-Line Summary** > Sends a one-time validation code for secure account and authentication operations, including login via email or mobile number.
166
+ * Generates and sends a one-time validation code to the user for verification of sensitive or critical account operations. This API is used across multiple authentication and account-management flows. The validation code is delivered to the user via the appropriate channel (**email or mobile number**), based on the requested operation mode and the input provided. The generated code is **time-bound**, **single-use**, and must be validated using the corresponding verification APIs to complete the requested action. --- ### **Usage Scenarios (Mode Definition)** | Mode | Purpose | | ---- | ----------------------------- | | `0` | Email or mobile number change | | `1` | Password change | | `2` | Delete account | | `3` | Clear account | | `4` | Signup Verification | | `5` | Using OTP for Login | | `6` | OTP for forgot password | **Mode `4` – Signup Verification** For login verification, the validation code is sent to **either the email ID or the mobile number provided in the request**. At least **one of email or mobile number must be supplied** for this mode. --- ### **Behavior** * Generates a secure, one-time validation code * Sends the code to the appropriate channel: * Email or mobile number, depending on the operation mode and input * Associates the code with: * User identity (or login identifier) * Requested operation (`mode`) * Application context (if applicable) * Validation codes are valid for a limited duration and **cannot be reused** --- ### **Authentication** This endpoint requires **Bearer Token authentication**, **except** where explicitly allowed (for example, login-related flows). ``` Authorization: Bearer <access_token> ``` --- ### **Successful Response** On success, the API confirms that the validation code has been generated and successfully dispatched to the user. --- ### **Error Response** The API returns an error response if: * The user does not exist or is not eligible for the requested operation * The requested mode is invalid or unsupported * Required identifiers (email or mobile number for login verification) are missing * Rate limits are exceeded * Authorization fails (where applicable) --- ### **Security Notes (Recommended)** * Validation codes are single-use and time-bound * Rate limiting is enforced to prevent abuse * Repeated failures may trigger temporary blocking or additional verification --- ### **One-Line Summary** > Sends a one-time validation code for secure account and authentication operations, including login via email or mobile number.
167
167
  * Send Validation code
168
168
  */
169
169
  sendValidationCode(requestParameters: SendValidationCodeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SendValidationCode200Response>;
@@ -617,7 +617,7 @@ var DefaultApi = /** @class */ (function (_super) {
617
617
  });
618
618
  };
619
619
  /**
620
- * Generates and sends a one-time validation code to the user for verification of sensitive or critical account operations. This API is used across multiple authentication and account-management flows. The validation code is delivered to the user via the appropriate channel (**email or mobile number**), based on the requested operation mode and the input provided. The generated code is **time-bound**, **single-use**, and must be validated using the corresponding verification APIs to complete the requested action. --- ### **Usage Scenarios (Mode Definition)** | Mode | Purpose | | ---- | ----------------------------- | | `0` | Email or mobile number change | | `1` | Password change | | `2` | Delete account | | `3` | Clear account | | `4` | Signup Verification | **Mode `5` – Signup Verification** For login verification, the validation code is sent to **either the email ID or the mobile number provided in the request**. At least **one of email or mobile number must be supplied** for this mode. --- ### **Behavior** * Generates a secure, one-time validation code * Sends the code to the appropriate channel: * Email or mobile number, depending on the operation mode and input * Associates the code with: * User identity (or login identifier) * Requested operation (`mode`) * Application context (if applicable) * Validation codes are valid for a limited duration and **cannot be reused** --- ### **Authentication** This endpoint requires **Bearer Token authentication**, **except** where explicitly allowed (for example, login-related flows). ``` Authorization: Bearer <access_token> ``` --- ### **Successful Response** On success, the API confirms that the validation code has been generated and successfully dispatched to the user. --- ### **Error Response** The API returns an error response if: * The user does not exist or is not eligible for the requested operation * The requested mode is invalid or unsupported * Required identifiers (email or mobile number for login verification) are missing * Rate limits are exceeded * Authorization fails (where applicable) --- ### **Security Notes (Recommended)** * Validation codes are single-use and time-bound * Rate limiting is enforced to prevent abuse * Repeated failures may trigger temporary blocking or additional verification --- ### **One-Line Summary** > Sends a one-time validation code for secure account and authentication operations, including login via email or mobile number.
620
+ * Generates and sends a one-time validation code to the user for verification of sensitive or critical account operations. This API is used across multiple authentication and account-management flows. The validation code is delivered to the user via the appropriate channel (**email or mobile number**), based on the requested operation mode and the input provided. The generated code is **time-bound**, **single-use**, and must be validated using the corresponding verification APIs to complete the requested action. --- ### **Usage Scenarios (Mode Definition)** | Mode | Purpose | | ---- | ----------------------------- | | `0` | Email or mobile number change | | `1` | Password change | | `2` | Delete account | | `3` | Clear account | | `4` | Signup Verification | | `5` | Using OTP for Login | | `6` | OTP for forgot password | **Mode `4` – Signup Verification** For login verification, the validation code is sent to **either the email ID or the mobile number provided in the request**. At least **one of email or mobile number must be supplied** for this mode. --- ### **Behavior** * Generates a secure, one-time validation code * Sends the code to the appropriate channel: * Email or mobile number, depending on the operation mode and input * Associates the code with: * User identity (or login identifier) * Requested operation (`mode`) * Application context (if applicable) * Validation codes are valid for a limited duration and **cannot be reused** --- ### **Authentication** This endpoint requires **Bearer Token authentication**, **except** where explicitly allowed (for example, login-related flows). ``` Authorization: Bearer <access_token> ``` --- ### **Successful Response** On success, the API confirms that the validation code has been generated and successfully dispatched to the user. --- ### **Error Response** The API returns an error response if: * The user does not exist or is not eligible for the requested operation * The requested mode is invalid or unsupported * Required identifiers (email or mobile number for login verification) are missing * Rate limits are exceeded * Authorization fails (where applicable) --- ### **Security Notes (Recommended)** * Validation codes are single-use and time-bound * Rate limiting is enforced to prevent abuse * Repeated failures may trigger temporary blocking or additional verification --- ### **One-Line Summary** > Sends a one-time validation code for secure account and authentication operations, including login via email or mobile number.
621
621
  * Send Validation code
622
622
  */
623
623
  DefaultApi.prototype.sendValidationCodeRaw = function (requestParameters, initOverrides) {
@@ -658,7 +658,7 @@ var DefaultApi = /** @class */ (function (_super) {
658
658
  });
659
659
  };
660
660
  /**
661
- * Generates and sends a one-time validation code to the user for verification of sensitive or critical account operations. This API is used across multiple authentication and account-management flows. The validation code is delivered to the user via the appropriate channel (**email or mobile number**), based on the requested operation mode and the input provided. The generated code is **time-bound**, **single-use**, and must be validated using the corresponding verification APIs to complete the requested action. --- ### **Usage Scenarios (Mode Definition)** | Mode | Purpose | | ---- | ----------------------------- | | `0` | Email or mobile number change | | `1` | Password change | | `2` | Delete account | | `3` | Clear account | | `4` | Signup Verification | **Mode `5` – Signup Verification** For login verification, the validation code is sent to **either the email ID or the mobile number provided in the request**. At least **one of email or mobile number must be supplied** for this mode. --- ### **Behavior** * Generates a secure, one-time validation code * Sends the code to the appropriate channel: * Email or mobile number, depending on the operation mode and input * Associates the code with: * User identity (or login identifier) * Requested operation (`mode`) * Application context (if applicable) * Validation codes are valid for a limited duration and **cannot be reused** --- ### **Authentication** This endpoint requires **Bearer Token authentication**, **except** where explicitly allowed (for example, login-related flows). ``` Authorization: Bearer <access_token> ``` --- ### **Successful Response** On success, the API confirms that the validation code has been generated and successfully dispatched to the user. --- ### **Error Response** The API returns an error response if: * The user does not exist or is not eligible for the requested operation * The requested mode is invalid or unsupported * Required identifiers (email or mobile number for login verification) are missing * Rate limits are exceeded * Authorization fails (where applicable) --- ### **Security Notes (Recommended)** * Validation codes are single-use and time-bound * Rate limiting is enforced to prevent abuse * Repeated failures may trigger temporary blocking or additional verification --- ### **One-Line Summary** > Sends a one-time validation code for secure account and authentication operations, including login via email or mobile number.
661
+ * Generates and sends a one-time validation code to the user for verification of sensitive or critical account operations. This API is used across multiple authentication and account-management flows. The validation code is delivered to the user via the appropriate channel (**email or mobile number**), based on the requested operation mode and the input provided. The generated code is **time-bound**, **single-use**, and must be validated using the corresponding verification APIs to complete the requested action. --- ### **Usage Scenarios (Mode Definition)** | Mode | Purpose | | ---- | ----------------------------- | | `0` | Email or mobile number change | | `1` | Password change | | `2` | Delete account | | `3` | Clear account | | `4` | Signup Verification | | `5` | Using OTP for Login | | `6` | OTP for forgot password | **Mode `4` – Signup Verification** For login verification, the validation code is sent to **either the email ID or the mobile number provided in the request**. At least **one of email or mobile number must be supplied** for this mode. --- ### **Behavior** * Generates a secure, one-time validation code * Sends the code to the appropriate channel: * Email or mobile number, depending on the operation mode and input * Associates the code with: * User identity (or login identifier) * Requested operation (`mode`) * Application context (if applicable) * Validation codes are valid for a limited duration and **cannot be reused** --- ### **Authentication** This endpoint requires **Bearer Token authentication**, **except** where explicitly allowed (for example, login-related flows). ``` Authorization: Bearer <access_token> ``` --- ### **Successful Response** On success, the API confirms that the validation code has been generated and successfully dispatched to the user. --- ### **Error Response** The API returns an error response if: * The user does not exist or is not eligible for the requested operation * The requested mode is invalid or unsupported * Required identifiers (email or mobile number for login verification) are missing * Rate limits are exceeded * Authorization fails (where applicable) --- ### **Security Notes (Recommended)** * Validation codes are single-use and time-bound * Rate limiting is enforced to prevent abuse * Repeated failures may trigger temporary blocking or additional verification --- ### **One-Line Summary** > Sends a one-time validation code for secure account and authentication operations, including login via email or mobile number.
662
662
  * Send Validation code
663
663
  */
664
664
  DefaultApi.prototype.sendValidationCode = function (requestParameters, initOverrides) {
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { FloorInfo } from './FloorInfo';
12
+ import type { SignInWithEmail200ResponsePodInfo } from './SignInWithEmail200ResponsePodInfo';
13
13
  import type { SignInWithEmail200ResponseProfile } from './SignInWithEmail200ResponseProfile';
14
14
  /**
15
15
  *
@@ -19,22 +19,22 @@ import type { SignInWithEmail200ResponseProfile } from './SignInWithEmail200Resp
19
19
  export interface SignInWithEmail200Response {
20
20
  /**
21
21
  *
22
- * @type {FloorInfo}
22
+ * @type {SignInWithEmail200ResponseProfile}
23
23
  * @memberof SignInWithEmail200Response
24
24
  */
25
- podInfo: FloorInfo;
25
+ profile: SignInWithEmail200ResponseProfile;
26
26
  /**
27
27
  *
28
- * @type {SignInWithEmail200ResponseProfile}
28
+ * @type {SignInWithEmail200ResponsePodInfo}
29
29
  * @memberof SignInWithEmail200Response
30
30
  */
31
- profile: SignInWithEmail200ResponseProfile;
31
+ podInfo: SignInWithEmail200ResponsePodInfo;
32
32
  /**
33
33
  * App ID
34
34
  * @type {string}
35
35
  * @memberof SignInWithEmail200Response
36
36
  */
37
- appId: string;
37
+ appId?: string;
38
38
  }
39
39
  /**
40
40
  * Check if a given object implements the SignInWithEmail200Response interface.
@@ -18,17 +18,15 @@ exports.SignInWithEmail200ResponseFromJSON = SignInWithEmail200ResponseFromJSON;
18
18
  exports.SignInWithEmail200ResponseFromJSONTyped = SignInWithEmail200ResponseFromJSONTyped;
19
19
  exports.SignInWithEmail200ResponseToJSON = SignInWithEmail200ResponseToJSON;
20
20
  exports.SignInWithEmail200ResponseToJSONTyped = SignInWithEmail200ResponseToJSONTyped;
21
- var FloorInfo_1 = require("./FloorInfo");
21
+ var SignInWithEmail200ResponsePodInfo_1 = require("./SignInWithEmail200ResponsePodInfo");
22
22
  var SignInWithEmail200ResponseProfile_1 = require("./SignInWithEmail200ResponseProfile");
23
23
  /**
24
24
  * Check if a given object implements the SignInWithEmail200Response interface.
25
25
  */
26
26
  function instanceOfSignInWithEmail200Response(value) {
27
- if (!('podInfo' in value) || value['podInfo'] === undefined)
28
- return false;
29
27
  if (!('profile' in value) || value['profile'] === undefined)
30
28
  return false;
31
- if (!('appId' in value) || value['appId'] === undefined)
29
+ if (!('podInfo' in value) || value['podInfo'] === undefined)
32
30
  return false;
33
31
  return true;
34
32
  }
@@ -40,9 +38,9 @@ function SignInWithEmail200ResponseFromJSONTyped(json, ignoreDiscriminator) {
40
38
  return json;
41
39
  }
42
40
  return {
43
- 'podInfo': (0, FloorInfo_1.FloorInfoFromJSON)(json['pod_info']),
44
41
  'profile': (0, SignInWithEmail200ResponseProfile_1.SignInWithEmail200ResponseProfileFromJSON)(json['profile']),
45
- 'appId': json['app_id'],
42
+ 'podInfo': (0, SignInWithEmail200ResponsePodInfo_1.SignInWithEmail200ResponsePodInfoFromJSON)(json['pod_info']),
43
+ 'appId': json['app_id'] == null ? undefined : json['app_id'],
46
44
  };
47
45
  }
48
46
  function SignInWithEmail200ResponseToJSON(json) {
@@ -54,8 +52,8 @@ function SignInWithEmail200ResponseToJSONTyped(value, ignoreDiscriminator) {
54
52
  return value;
55
53
  }
56
54
  return {
57
- 'pod_info': (0, FloorInfo_1.FloorInfoToJSON)(value['podInfo']),
58
55
  'profile': (0, SignInWithEmail200ResponseProfile_1.SignInWithEmail200ResponseProfileToJSON)(value['profile']),
56
+ 'pod_info': (0, SignInWithEmail200ResponsePodInfo_1.SignInWithEmail200ResponsePodInfoToJSON)(value['podInfo']),
59
57
  'app_id': value['appId'],
60
58
  };
61
59
  }
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Floor Memory
3
+ * The set APIs are used to develop Floor pds which can be used as their personal assistants. This set of APIs are divided into two parts. - Memory and - Registration. The developer has two ways of using the APIs for the app development. Developer can choose to the Registration APIs for using the existing xfloor infracture or can implement custom Registration process. In the case of custom registration process, the developer is bound to provide proper authentication mechanisms and then send the user information to xlfoor.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: contact@ipomo.in
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { BlockDetails } from './BlockDetails';
13
+ import type { Media } from './Media';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface SignInWithEmail200ResponsePodInfo
18
+ */
19
+ export interface SignInWithEmail200ResponsePodInfo {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof SignInWithEmail200ResponsePodInfo
24
+ */
25
+ floorId: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof SignInWithEmail200ResponsePodInfo
30
+ */
31
+ title: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof SignInWithEmail200ResponsePodInfo
36
+ */
37
+ details?: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof SignInWithEmail200ResponsePodInfo
42
+ */
43
+ fid: string;
44
+ /**
45
+ *
46
+ * @type {Array<BlockDetails>}
47
+ * @memberof SignInWithEmail200ResponsePodInfo
48
+ */
49
+ blocks: Array<BlockDetails>;
50
+ /**
51
+ *
52
+ * @type {Media}
53
+ * @memberof SignInWithEmail200ResponsePodInfo
54
+ */
55
+ avatar?: Media;
56
+ }
57
+ /**
58
+ * Check if a given object implements the SignInWithEmail200ResponsePodInfo interface.
59
+ */
60
+ export declare function instanceOfSignInWithEmail200ResponsePodInfo(value: object): value is SignInWithEmail200ResponsePodInfo;
61
+ export declare function SignInWithEmail200ResponsePodInfoFromJSON(json: any): SignInWithEmail200ResponsePodInfo;
62
+ export declare function SignInWithEmail200ResponsePodInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignInWithEmail200ResponsePodInfo;
63
+ export declare function SignInWithEmail200ResponsePodInfoToJSON(json: any): SignInWithEmail200ResponsePodInfo;
64
+ export declare function SignInWithEmail200ResponsePodInfoToJSONTyped(value?: SignInWithEmail200ResponsePodInfo | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Floor Memory
6
+ * The set APIs are used to develop Floor pds which can be used as their personal assistants. This set of APIs are divided into two parts. - Memory and - Registration. The developer has two ways of using the APIs for the app development. Developer can choose to the Registration APIs for using the existing xfloor infracture or can implement custom Registration process. In the case of custom registration process, the developer is bound to provide proper authentication mechanisms and then send the user information to xlfoor.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: contact@ipomo.in
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSignInWithEmail200ResponsePodInfo = instanceOfSignInWithEmail200ResponsePodInfo;
17
+ exports.SignInWithEmail200ResponsePodInfoFromJSON = SignInWithEmail200ResponsePodInfoFromJSON;
18
+ exports.SignInWithEmail200ResponsePodInfoFromJSONTyped = SignInWithEmail200ResponsePodInfoFromJSONTyped;
19
+ exports.SignInWithEmail200ResponsePodInfoToJSON = SignInWithEmail200ResponsePodInfoToJSON;
20
+ exports.SignInWithEmail200ResponsePodInfoToJSONTyped = SignInWithEmail200ResponsePodInfoToJSONTyped;
21
+ var BlockDetails_1 = require("./BlockDetails");
22
+ var Media_1 = require("./Media");
23
+ /**
24
+ * Check if a given object implements the SignInWithEmail200ResponsePodInfo interface.
25
+ */
26
+ function instanceOfSignInWithEmail200ResponsePodInfo(value) {
27
+ if (!('floorId' in value) || value['floorId'] === undefined)
28
+ return false;
29
+ if (!('title' in value) || value['title'] === undefined)
30
+ return false;
31
+ if (!('fid' in value) || value['fid'] === undefined)
32
+ return false;
33
+ if (!('blocks' in value) || value['blocks'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function SignInWithEmail200ResponsePodInfoFromJSON(json) {
38
+ return SignInWithEmail200ResponsePodInfoFromJSONTyped(json, false);
39
+ }
40
+ function SignInWithEmail200ResponsePodInfoFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'floorId': json['floor_id'],
46
+ 'title': json['title'],
47
+ 'details': json['details'] == null ? undefined : json['details'],
48
+ 'fid': json['fid'],
49
+ 'blocks': (json['blocks'].map(BlockDetails_1.BlockDetailsFromJSON)),
50
+ 'avatar': json['avatar'] == null ? undefined : (0, Media_1.MediaFromJSON)(json['avatar']),
51
+ };
52
+ }
53
+ function SignInWithEmail200ResponsePodInfoToJSON(json) {
54
+ return SignInWithEmail200ResponsePodInfoToJSONTyped(json, false);
55
+ }
56
+ function SignInWithEmail200ResponsePodInfoToJSONTyped(value, ignoreDiscriminator) {
57
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'floor_id': value['floorId'],
63
+ 'title': value['title'],
64
+ 'details': value['details'],
65
+ 'fid': value['fid'],
66
+ 'blocks': (value['blocks'].map(BlockDetails_1.BlockDetailsToJSON)),
67
+ 'avatar': (0, Media_1.MediaToJSON)(value['avatar']),
68
+ };
69
+ }
@@ -34,7 +34,7 @@ export interface SignInWithEmail200ResponseProfile {
34
34
  * @type {Array<BlockDetails>}
35
35
  * @memberof SignInWithEmail200ResponseProfile
36
36
  */
37
- blocks: Array<BlockDetails>;
37
+ blocks?: Array<BlockDetails>;
38
38
  /**
39
39
  * User Name
40
40
  * @type {string}
@@ -28,8 +28,6 @@ function instanceOfSignInWithEmail200ResponseProfile(value) {
28
28
  return false;
29
29
  if (!('fid' in value) || value['fid'] === undefined)
30
30
  return false;
31
- if (!('blocks' in value) || value['blocks'] === undefined)
32
- return false;
33
31
  if (!('userId' in value) || value['userId'] === undefined)
34
32
  return false;
35
33
  return true;
@@ -44,7 +42,7 @@ function SignInWithEmail200ResponseProfileFromJSONTyped(json, ignoreDiscriminato
44
42
  return {
45
43
  'floorId': json['floor_id'],
46
44
  'fid': json['fid'],
47
- 'blocks': (json['blocks'].map(BlockDetails_1.BlockDetailsFromJSON)),
45
+ 'blocks': json['blocks'] == null ? undefined : (json['blocks'].map(BlockDetails_1.BlockDetailsFromJSON)),
48
46
  'name': json['name'] == null ? undefined : json['name'],
49
47
  'email': json['email'] == null ? undefined : json['email'],
50
48
  'mobileNumber': json['mobile_number'] == null ? undefined : json['mobile_number'],
@@ -63,7 +61,7 @@ function SignInWithEmail200ResponseProfileToJSONTyped(value, ignoreDiscriminator
63
61
  return {
64
62
  'floor_id': value['floorId'],
65
63
  'fid': value['fid'],
66
- 'blocks': (value['blocks'].map(BlockDetails_1.BlockDetailsToJSON)),
64
+ 'blocks': value['blocks'] == null ? undefined : (value['blocks'].map(BlockDetails_1.BlockDetailsToJSON)),
67
65
  'name': value['name'],
68
66
  'email': value['email'],
69
67
  'mobile_number': value['mobileNumber'],
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { FloorInfo } from './FloorInfo';
12
+ import type { SignInWithEmail200ResponsePodInfo } from './SignInWithEmail200ResponsePodInfo';
13
13
  import type { SignInWithEmail200ResponseProfile } from './SignInWithEmail200ResponseProfile';
14
14
  /**
15
15
  *
@@ -19,22 +19,22 @@ import type { SignInWithEmail200ResponseProfile } from './SignInWithEmail200Resp
19
19
  export interface UserDetails {
20
20
  /**
21
21
  *
22
- * @type {FloorInfo}
22
+ * @type {SignInWithEmail200ResponseProfile}
23
23
  * @memberof UserDetails
24
24
  */
25
- podInfo: FloorInfo;
25
+ profile: SignInWithEmail200ResponseProfile;
26
26
  /**
27
27
  *
28
- * @type {SignInWithEmail200ResponseProfile}
28
+ * @type {SignInWithEmail200ResponsePodInfo}
29
29
  * @memberof UserDetails
30
30
  */
31
- profile: SignInWithEmail200ResponseProfile;
31
+ podInfo: SignInWithEmail200ResponsePodInfo;
32
32
  /**
33
33
  * App ID
34
34
  * @type {string}
35
35
  * @memberof UserDetails
36
36
  */
37
- appId: string;
37
+ appId?: string;
38
38
  }
39
39
  /**
40
40
  * Check if a given object implements the UserDetails interface.
@@ -18,17 +18,15 @@ exports.UserDetailsFromJSON = UserDetailsFromJSON;
18
18
  exports.UserDetailsFromJSONTyped = UserDetailsFromJSONTyped;
19
19
  exports.UserDetailsToJSON = UserDetailsToJSON;
20
20
  exports.UserDetailsToJSONTyped = UserDetailsToJSONTyped;
21
- var FloorInfo_1 = require("./FloorInfo");
21
+ var SignInWithEmail200ResponsePodInfo_1 = require("./SignInWithEmail200ResponsePodInfo");
22
22
  var SignInWithEmail200ResponseProfile_1 = require("./SignInWithEmail200ResponseProfile");
23
23
  /**
24
24
  * Check if a given object implements the UserDetails interface.
25
25
  */
26
26
  function instanceOfUserDetails(value) {
27
- if (!('podInfo' in value) || value['podInfo'] === undefined)
28
- return false;
29
27
  if (!('profile' in value) || value['profile'] === undefined)
30
28
  return false;
31
- if (!('appId' in value) || value['appId'] === undefined)
29
+ if (!('podInfo' in value) || value['podInfo'] === undefined)
32
30
  return false;
33
31
  return true;
34
32
  }
@@ -40,9 +38,9 @@ function UserDetailsFromJSONTyped(json, ignoreDiscriminator) {
40
38
  return json;
41
39
  }
42
40
  return {
43
- 'podInfo': (0, FloorInfo_1.FloorInfoFromJSON)(json['pod_info']),
44
41
  'profile': (0, SignInWithEmail200ResponseProfile_1.SignInWithEmail200ResponseProfileFromJSON)(json['profile']),
45
- 'appId': json['app_id'],
42
+ 'podInfo': (0, SignInWithEmail200ResponsePodInfo_1.SignInWithEmail200ResponsePodInfoFromJSON)(json['pod_info']),
43
+ 'appId': json['app_id'] == null ? undefined : json['app_id'],
46
44
  };
47
45
  }
48
46
  function UserDetailsToJSON(json) {
@@ -54,8 +52,8 @@ function UserDetailsToJSONTyped(value, ignoreDiscriminator) {
54
52
  return value;
55
53
  }
56
54
  return {
57
- 'pod_info': (0, FloorInfo_1.FloorInfoToJSON)(value['podInfo']),
58
55
  'profile': (0, SignInWithEmail200ResponseProfile_1.SignInWithEmail200ResponseProfileToJSON)(value['profile']),
56
+ 'pod_info': (0, SignInWithEmail200ResponsePodInfo_1.SignInWithEmail200ResponsePodInfoToJSON)(value['podInfo']),
59
57
  'app_id': value['appId'],
60
58
  };
61
59
  }
@@ -25,6 +25,7 @@ export * from './ResetPassword400Response';
25
25
  export * from './SendValidationCode200Response';
26
26
  export * from './SendValidationCodeRequest';
27
27
  export * from './SignInWithEmail200Response';
28
+ export * from './SignInWithEmail200ResponsePodInfo';
28
29
  export * from './SignInWithEmail200ResponseProfile';
29
30
  export * from './SignInWithEmail200ResponseProfileAvatar';
30
31
  export * from './SignUp200Response';
@@ -43,6 +43,7 @@ __exportStar(require("./ResetPassword400Response"), exports);
43
43
  __exportStar(require("./SendValidationCode200Response"), exports);
44
44
  __exportStar(require("./SendValidationCodeRequest"), exports);
45
45
  __exportStar(require("./SignInWithEmail200Response"), exports);
46
+ __exportStar(require("./SignInWithEmail200ResponsePodInfo"), exports);
46
47
  __exportStar(require("./SignInWithEmail200ResponseProfile"), exports);
47
48
  __exportStar(require("./SignInWithEmail200ResponseProfileAvatar"), exports);
48
49
  __exportStar(require("./SignUp200Response"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfloor/floor-memory-sdk-ts",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "TypeScript SDK for xFloor Memory APIs (Memory + Registration).",
5
5
  "author": "xFloor",
6
6
  "repository": {