@gooday_corp/gooday-api-client 1.1.40 → 1.1.42

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 +125 -0
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -62,6 +62,44 @@ export interface AcceptEventInvitePayload {
62
62
  */
63
63
  'event': string;
64
64
  }
65
+ /**
66
+ *
67
+ * @export
68
+ * @interface ActivityDTO
69
+ */
70
+ export interface ActivityDTO {
71
+ /**
72
+ * statusCode
73
+ * @type {number}
74
+ * @memberof ActivityDTO
75
+ */
76
+ 'statusCode': number;
77
+ /**
78
+ * User
79
+ * @type {Array<ActivityResponse>}
80
+ * @memberof ActivityDTO
81
+ */
82
+ 'data': Array<ActivityResponse>;
83
+ }
84
+ /**
85
+ *
86
+ * @export
87
+ * @interface ActivityResponse
88
+ */
89
+ export interface ActivityResponse {
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof ActivityResponse
94
+ */
95
+ 'label': string;
96
+ /**
97
+ *
98
+ * @type {string}
99
+ * @memberof ActivityResponse
100
+ */
101
+ 'value': string;
102
+ }
65
103
  /**
66
104
  *
67
105
  * @export
@@ -3582,6 +3620,12 @@ export interface UserEntity {
3582
3620
  * @memberof UserEntity
3583
3621
  */
3584
3622
  'nickName': string;
3623
+ /**
3624
+ * Device weather
3625
+ * @type {Weather}
3626
+ * @memberof UserEntity
3627
+ */
3628
+ 'weather': Weather;
3585
3629
  /**
3586
3630
  * User\'s date of birth
3587
3631
  * @type {string}
@@ -3827,6 +3871,25 @@ export interface VerifyOTPResponseDTO {
3827
3871
  */
3828
3872
  'message': string;
3829
3873
  }
3874
+ /**
3875
+ *
3876
+ * @export
3877
+ * @interface Weather
3878
+ */
3879
+ export interface Weather {
3880
+ /**
3881
+ *
3882
+ * @type {string}
3883
+ * @memberof Weather
3884
+ */
3885
+ 'unit': string;
3886
+ /**
3887
+ *
3888
+ * @type {number}
3889
+ * @memberof Weather
3890
+ */
3891
+ 'temperature': number;
3892
+ }
3830
3893
 
3831
3894
  /**
3832
3895
  * AIApi - axios parameter creator
@@ -10687,6 +10750,39 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
10687
10750
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10688
10751
  localVarRequestOptions.data = serializeDataIfNeeded(userPermissionDTO, localVarRequestOptions, configuration)
10689
10752
 
10753
+ return {
10754
+ url: toPathString(localVarUrlObj),
10755
+ options: localVarRequestOptions,
10756
+ };
10757
+ },
10758
+ /**
10759
+ *
10760
+ * @param {*} [options] Override http request option.
10761
+ * @throws {RequiredError}
10762
+ */
10763
+ usersControllerUserActivity: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10764
+ const localVarPath = `/v1/user/analytics/activity`;
10765
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10766
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10767
+ let baseOptions;
10768
+ if (configuration) {
10769
+ baseOptions = configuration.baseOptions;
10770
+ }
10771
+
10772
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10773
+ const localVarHeaderParameter = {} as any;
10774
+ const localVarQueryParameter = {} as any;
10775
+
10776
+ // authentication bearer required
10777
+ // http bearer authentication required
10778
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
10779
+
10780
+
10781
+
10782
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10783
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10784
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10785
+
10690
10786
  return {
10691
10787
  url: toPathString(localVarUrlObj),
10692
10788
  options: localVarRequestOptions,
@@ -10772,6 +10868,17 @@ export const UsersApiFp = function(configuration?: Configuration) {
10772
10868
  const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerSyncUserPermissions']?.[localVarOperationServerIndex]?.url;
10773
10869
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10774
10870
  },
10871
+ /**
10872
+ *
10873
+ * @param {*} [options] Override http request option.
10874
+ * @throws {RequiredError}
10875
+ */
10876
+ async usersControllerUserActivity(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityDTO>> {
10877
+ const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerUserActivity(options);
10878
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10879
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerUserActivity']?.[localVarOperationServerIndex]?.url;
10880
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10881
+ },
10775
10882
  }
10776
10883
  };
10777
10884
 
@@ -10834,6 +10941,14 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
10834
10941
  usersControllerSyncUserPermissions(userPermissionDTO: UserPermissionDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
10835
10942
  return localVarFp.usersControllerSyncUserPermissions(userPermissionDTO, options).then((request) => request(axios, basePath));
10836
10943
  },
10944
+ /**
10945
+ *
10946
+ * @param {*} [options] Override http request option.
10947
+ * @throws {RequiredError}
10948
+ */
10949
+ usersControllerUserActivity(options?: RawAxiosRequestConfig): AxiosPromise<ActivityDTO> {
10950
+ return localVarFp.usersControllerUserActivity(options).then((request) => request(axios, basePath));
10951
+ },
10837
10952
  };
10838
10953
  };
10839
10954
 
@@ -10907,6 +11022,16 @@ export class UsersApi extends BaseAPI {
10907
11022
  public usersControllerSyncUserPermissions(userPermissionDTO: UserPermissionDTO, options?: RawAxiosRequestConfig) {
10908
11023
  return UsersApiFp(this.configuration).usersControllerSyncUserPermissions(userPermissionDTO, options).then((request) => request(this.axios, this.basePath));
10909
11024
  }
11025
+
11026
+ /**
11027
+ *
11028
+ * @param {*} [options] Override http request option.
11029
+ * @throws {RequiredError}
11030
+ * @memberof UsersApi
11031
+ */
11032
+ public usersControllerUserActivity(options?: RawAxiosRequestConfig) {
11033
+ return UsersApiFp(this.configuration).usersControllerUserActivity(options).then((request) => request(this.axios, this.basePath));
11034
+ }
10910
11035
  }
10911
11036
 
10912
11037
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.40",
3
+ "version": "1.1.42",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},