@gooday_corp/gooday-api-client 1.0.13 → 1.0.15-alpha

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.
Files changed (2) hide show
  1. package/api.ts +153 -110
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -89,7 +89,7 @@ export interface AssistantEntity {
89
89
  * @type {Array<string>}
90
90
  * @memberof AssistantEntity
91
91
  */
92
- 'availablity': Array<string>;
92
+ 'availability': Array<string>;
93
93
  /**
94
94
  * Configuration object for the assistant
95
95
  * @type {object}
@@ -98,10 +98,10 @@ export interface AssistantEntity {
98
98
  'configuration': object;
99
99
  /**
100
100
  * Attributes object for the assistant
101
- * @type {object}
101
+ * @type {AttributesDto}
102
102
  * @memberof AssistantEntity
103
103
  */
104
- 'attributes': object;
104
+ 'attributes': AttributesDto;
105
105
  }
106
106
  /**
107
107
  *
@@ -122,6 +122,31 @@ export interface AssistantListResponse {
122
122
  */
123
123
  'data': Array<AssistantEntity>;
124
124
  }
125
+ /**
126
+ *
127
+ * @export
128
+ * @interface AttributesDto
129
+ */
130
+ export interface AttributesDto {
131
+ /**
132
+ * List of skills with their titles and values
133
+ * @type {Array<SkillDto>}
134
+ * @memberof AttributesDto
135
+ */
136
+ 'skills': Array<SkillDto>;
137
+ /**
138
+ * List of likes of assistants
139
+ * @type {Array<string>}
140
+ * @memberof AttributesDto
141
+ */
142
+ 'likes': Array<string>;
143
+ /**
144
+ * List of disliking of assistants
145
+ * @type {Array<string>}
146
+ * @memberof AttributesDto
147
+ */
148
+ 'dislikes': Array<string>;
149
+ }
125
150
  /**
126
151
  *
127
152
  * @export
@@ -217,7 +242,7 @@ export interface ForgotPasswordPayloadDTO {
217
242
  */
218
243
  export interface ForgotPasswordResponseDTO {
219
244
  /**
220
- * statuscCode
245
+ * statusCode
221
246
  * @type {number}
222
247
  * @memberof ForgotPasswordResponseDTO
223
248
  */
@@ -767,6 +792,25 @@ export interface SignupResponseDto {
767
792
  */
768
793
  'data': SignupResponse;
769
794
  }
795
+ /**
796
+ *
797
+ * @export
798
+ * @interface SkillDto
799
+ */
800
+ export interface SkillDto {
801
+ /**
802
+ * Title of the skill
803
+ * @type {string}
804
+ * @memberof SkillDto
805
+ */
806
+ 'title': string;
807
+ /**
808
+ * Value or rating of the skill out of 1
809
+ * @type {number}
810
+ * @memberof SkillDto
811
+ */
812
+ 'weightage': number;
813
+ }
770
814
  /**
771
815
  *
772
816
  * @export
@@ -871,6 +915,44 @@ export interface UserMeDTO {
871
915
  */
872
916
  'data': UserEntity;
873
917
  }
918
+ /**
919
+ *
920
+ * @export
921
+ * @interface VerifyOTPPayloadDTO
922
+ */
923
+ export interface VerifyOTPPayloadDTO {
924
+ /**
925
+ * 6 digit otp from mail
926
+ * @type {string}
927
+ * @memberof VerifyOTPPayloadDTO
928
+ */
929
+ 'otp': string;
930
+ /**
931
+ * Email of user
932
+ * @type {string}
933
+ * @memberof VerifyOTPPayloadDTO
934
+ */
935
+ 'email': string;
936
+ }
937
+ /**
938
+ *
939
+ * @export
940
+ * @interface VerifyOTPResponseDTO
941
+ */
942
+ export interface VerifyOTPResponseDTO {
943
+ /**
944
+ * The HTTP status code
945
+ * @type {number}
946
+ * @memberof VerifyOTPResponseDTO
947
+ */
948
+ 'statusCode': number;
949
+ /**
950
+ * The
951
+ * @type {string}
952
+ * @memberof VerifyOTPResponseDTO
953
+ */
954
+ 'message': string;
955
+ }
874
956
 
875
957
  /**
876
958
  * AIApi - axios parameter creator
@@ -1250,6 +1332,41 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1250
1332
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1251
1333
  localVarRequestOptions.data = serializeDataIfNeeded(signupDto, localVarRequestOptions, configuration)
1252
1334
 
1335
+ return {
1336
+ url: toPathString(localVarUrlObj),
1337
+ options: localVarRequestOptions,
1338
+ };
1339
+ },
1340
+ /**
1341
+ *
1342
+ * @param {VerifyOTPPayloadDTO} verifyOTPPayloadDTO
1343
+ * @param {*} [options] Override http request option.
1344
+ * @throws {RequiredError}
1345
+ */
1346
+ authControllerVerifyOTP: async (verifyOTPPayloadDTO: VerifyOTPPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1347
+ // verify required parameter 'verifyOTPPayloadDTO' is not null or undefined
1348
+ assertParamExists('authControllerVerifyOTP', 'verifyOTPPayloadDTO', verifyOTPPayloadDTO)
1349
+ const localVarPath = `/v1/auth/verify-otp`;
1350
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1351
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1352
+ let baseOptions;
1353
+ if (configuration) {
1354
+ baseOptions = configuration.baseOptions;
1355
+ }
1356
+
1357
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1358
+ const localVarHeaderParameter = {} as any;
1359
+ const localVarQueryParameter = {} as any;
1360
+
1361
+
1362
+
1363
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1364
+
1365
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1366
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1367
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1368
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyOTPPayloadDTO, localVarRequestOptions, configuration)
1369
+
1253
1370
  return {
1254
1371
  url: toPathString(localVarUrlObj),
1255
1372
  options: localVarRequestOptions,
@@ -1337,6 +1454,18 @@ export const AuthApiFp = function(configuration?: Configuration) {
1337
1454
  const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerSignUp']?.[localVarOperationServerIndex]?.url;
1338
1455
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1339
1456
  },
1457
+ /**
1458
+ *
1459
+ * @param {VerifyOTPPayloadDTO} verifyOTPPayloadDTO
1460
+ * @param {*} [options] Override http request option.
1461
+ * @throws {RequiredError}
1462
+ */
1463
+ async authControllerVerifyOTP(verifyOTPPayloadDTO: VerifyOTPPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyOTPResponseDTO>> {
1464
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerVerifyOTP(verifyOTPPayloadDTO, options);
1465
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1466
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerVerifyOTP']?.[localVarOperationServerIndex]?.url;
1467
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1468
+ },
1340
1469
  }
1341
1470
  };
1342
1471
 
@@ -1401,6 +1530,15 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
1401
1530
  authControllerSignUp(signupDto: SignupDto, options?: RawAxiosRequestConfig): AxiosPromise<SignupResponseDto> {
1402
1531
  return localVarFp.authControllerSignUp(signupDto, options).then((request) => request(axios, basePath));
1403
1532
  },
1533
+ /**
1534
+ *
1535
+ * @param {VerifyOTPPayloadDTO} verifyOTPPayloadDTO
1536
+ * @param {*} [options] Override http request option.
1537
+ * @throws {RequiredError}
1538
+ */
1539
+ authControllerVerifyOTP(verifyOTPPayloadDTO: VerifyOTPPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<VerifyOTPResponseDTO> {
1540
+ return localVarFp.authControllerVerifyOTP(verifyOTPPayloadDTO, options).then((request) => request(axios, basePath));
1541
+ },
1404
1542
  };
1405
1543
  };
1406
1544
 
@@ -1476,6 +1614,17 @@ export class AuthApi extends BaseAPI {
1476
1614
  public authControllerSignUp(signupDto: SignupDto, options?: RawAxiosRequestConfig) {
1477
1615
  return AuthApiFp(this.configuration).authControllerSignUp(signupDto, options).then((request) => request(this.axios, this.basePath));
1478
1616
  }
1617
+
1618
+ /**
1619
+ *
1620
+ * @param {VerifyOTPPayloadDTO} verifyOTPPayloadDTO
1621
+ * @param {*} [options] Override http request option.
1622
+ * @throws {RequiredError}
1623
+ * @memberof AuthApi
1624
+ */
1625
+ public authControllerVerifyOTP(verifyOTPPayloadDTO: VerifyOTPPayloadDTO, options?: RawAxiosRequestConfig) {
1626
+ return AuthApiFp(this.configuration).authControllerVerifyOTP(verifyOTPPayloadDTO, options).then((request) => request(this.axios, this.basePath));
1627
+ }
1479
1628
  }
1480
1629
 
1481
1630
 
@@ -1996,112 +2145,6 @@ export class PlansApi extends BaseAPI {
1996
2145
 
1997
2146
 
1998
2147
 
1999
- /**
2000
- * PostApi - axios parameter creator
2001
- * @export
2002
- */
2003
- export const PostApiAxiosParamCreator = function (configuration?: Configuration) {
2004
- return {
2005
- /**
2006
- *
2007
- * @param {FileNameUploadDTO} fileNameUploadDTO
2008
- * @param {*} [options] Override http request option.
2009
- * @throws {RequiredError}
2010
- */
2011
- gcpControllerUploadFile: async (fileNameUploadDTO: FileNameUploadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2012
- // verify required parameter 'fileNameUploadDTO' is not null or undefined
2013
- assertParamExists('gcpControllerUploadFile', 'fileNameUploadDTO', fileNameUploadDTO)
2014
- const localVarPath = `/v1/gcs/file`;
2015
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2016
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2017
- let baseOptions;
2018
- if (configuration) {
2019
- baseOptions = configuration.baseOptions;
2020
- }
2021
-
2022
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2023
- const localVarHeaderParameter = {} as any;
2024
- const localVarQueryParameter = {} as any;
2025
-
2026
-
2027
-
2028
- localVarHeaderParameter['Content-Type'] = 'application/json';
2029
-
2030
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2031
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2032
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2033
- localVarRequestOptions.data = serializeDataIfNeeded(fileNameUploadDTO, localVarRequestOptions, configuration)
2034
-
2035
- return {
2036
- url: toPathString(localVarUrlObj),
2037
- options: localVarRequestOptions,
2038
- };
2039
- },
2040
- }
2041
- };
2042
-
2043
- /**
2044
- * PostApi - functional programming interface
2045
- * @export
2046
- */
2047
- export const PostApiFp = function(configuration?: Configuration) {
2048
- const localVarAxiosParamCreator = PostApiAxiosParamCreator(configuration)
2049
- return {
2050
- /**
2051
- *
2052
- * @param {FileNameUploadDTO} fileNameUploadDTO
2053
- * @param {*} [options] Override http request option.
2054
- * @throws {RequiredError}
2055
- */
2056
- async gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignedUrlResponseDTO>> {
2057
- const localVarAxiosArgs = await localVarAxiosParamCreator.gcpControllerUploadFile(fileNameUploadDTO, options);
2058
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2059
- const localVarOperationServerBasePath = operationServerMap['PostApi.gcpControllerUploadFile']?.[localVarOperationServerIndex]?.url;
2060
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2061
- },
2062
- }
2063
- };
2064
-
2065
- /**
2066
- * PostApi - factory interface
2067
- * @export
2068
- */
2069
- export const PostApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2070
- const localVarFp = PostApiFp(configuration)
2071
- return {
2072
- /**
2073
- *
2074
- * @param {FileNameUploadDTO} fileNameUploadDTO
2075
- * @param {*} [options] Override http request option.
2076
- * @throws {RequiredError}
2077
- */
2078
- gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig): AxiosPromise<SignedUrlResponseDTO> {
2079
- return localVarFp.gcpControllerUploadFile(fileNameUploadDTO, options).then((request) => request(axios, basePath));
2080
- },
2081
- };
2082
- };
2083
-
2084
- /**
2085
- * PostApi - object-oriented interface
2086
- * @export
2087
- * @class PostApi
2088
- * @extends {BaseAPI}
2089
- */
2090
- export class PostApi extends BaseAPI {
2091
- /**
2092
- *
2093
- * @param {FileNameUploadDTO} fileNameUploadDTO
2094
- * @param {*} [options] Override http request option.
2095
- * @throws {RequiredError}
2096
- * @memberof PostApi
2097
- */
2098
- public gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig) {
2099
- return PostApiFp(this.configuration).gcpControllerUploadFile(fileNameUploadDTO, options).then((request) => request(this.axios, this.basePath));
2100
- }
2101
- }
2102
-
2103
-
2104
-
2105
2148
  /**
2106
2149
  * UsersApi - axios parameter creator
2107
2150
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.0.13",
3
+ "version": "1.0.15alpha",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},