@gooday_corp/gooday-api-client 1.1.40 → 1.1.41

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 +106 -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 {string}
3626
+ * @memberof UserEntity
3627
+ */
3628
+ 'weather': string;
3585
3629
  /**
3586
3630
  * User\'s date of birth
3587
3631
  * @type {string}
@@ -10687,6 +10731,39 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
10687
10731
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10688
10732
  localVarRequestOptions.data = serializeDataIfNeeded(userPermissionDTO, localVarRequestOptions, configuration)
10689
10733
 
10734
+ return {
10735
+ url: toPathString(localVarUrlObj),
10736
+ options: localVarRequestOptions,
10737
+ };
10738
+ },
10739
+ /**
10740
+ *
10741
+ * @param {*} [options] Override http request option.
10742
+ * @throws {RequiredError}
10743
+ */
10744
+ usersControllerUserActivity: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10745
+ const localVarPath = `/v1/user/analytics/activity`;
10746
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10747
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10748
+ let baseOptions;
10749
+ if (configuration) {
10750
+ baseOptions = configuration.baseOptions;
10751
+ }
10752
+
10753
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10754
+ const localVarHeaderParameter = {} as any;
10755
+ const localVarQueryParameter = {} as any;
10756
+
10757
+ // authentication bearer required
10758
+ // http bearer authentication required
10759
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
10760
+
10761
+
10762
+
10763
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10764
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10765
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10766
+
10690
10767
  return {
10691
10768
  url: toPathString(localVarUrlObj),
10692
10769
  options: localVarRequestOptions,
@@ -10772,6 +10849,17 @@ export const UsersApiFp = function(configuration?: Configuration) {
10772
10849
  const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerSyncUserPermissions']?.[localVarOperationServerIndex]?.url;
10773
10850
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10774
10851
  },
10852
+ /**
10853
+ *
10854
+ * @param {*} [options] Override http request option.
10855
+ * @throws {RequiredError}
10856
+ */
10857
+ async usersControllerUserActivity(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityDTO>> {
10858
+ const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerUserActivity(options);
10859
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10860
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerUserActivity']?.[localVarOperationServerIndex]?.url;
10861
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10862
+ },
10775
10863
  }
10776
10864
  };
10777
10865
 
@@ -10834,6 +10922,14 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
10834
10922
  usersControllerSyncUserPermissions(userPermissionDTO: UserPermissionDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
10835
10923
  return localVarFp.usersControllerSyncUserPermissions(userPermissionDTO, options).then((request) => request(axios, basePath));
10836
10924
  },
10925
+ /**
10926
+ *
10927
+ * @param {*} [options] Override http request option.
10928
+ * @throws {RequiredError}
10929
+ */
10930
+ usersControllerUserActivity(options?: RawAxiosRequestConfig): AxiosPromise<ActivityDTO> {
10931
+ return localVarFp.usersControllerUserActivity(options).then((request) => request(axios, basePath));
10932
+ },
10837
10933
  };
10838
10934
  };
10839
10935
 
@@ -10907,6 +11003,16 @@ export class UsersApi extends BaseAPI {
10907
11003
  public usersControllerSyncUserPermissions(userPermissionDTO: UserPermissionDTO, options?: RawAxiosRequestConfig) {
10908
11004
  return UsersApiFp(this.configuration).usersControllerSyncUserPermissions(userPermissionDTO, options).then((request) => request(this.axios, this.basePath));
10909
11005
  }
11006
+
11007
+ /**
11008
+ *
11009
+ * @param {*} [options] Override http request option.
11010
+ * @throws {RequiredError}
11011
+ * @memberof UsersApi
11012
+ */
11013
+ public usersControllerUserActivity(options?: RawAxiosRequestConfig) {
11014
+ return UsersApiFp(this.configuration).usersControllerUserActivity(options).then((request) => request(this.axios, this.basePath));
11015
+ }
10910
11016
  }
10911
11017
 
10912
11018
 
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.41",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},