@gooday_corp/gooday-api-client 1.1.39 → 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 +112 -2
  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}
@@ -9563,6 +9607,10 @@ export const TodoApiAxiosParamCreator = function (configuration?: Configuration)
9563
9607
  const localVarHeaderParameter = {} as any;
9564
9608
  const localVarQueryParameter = {} as any;
9565
9609
 
9610
+ // authentication bearer required
9611
+ // http bearer authentication required
9612
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9613
+
9566
9614
 
9567
9615
 
9568
9616
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -10031,7 +10079,7 @@ export const TodoApiFp = function(configuration?: Configuration) {
10031
10079
  * @param {*} [options] Override http request option.
10032
10080
  * @throws {RequiredError}
10033
10081
  */
10034
- async todoControllerAssignTask(id: string, assignTaskPayload: AssignTaskPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
10082
+ async todoControllerAssignTask(id: string, assignTaskPayload: AssignTaskPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskDetailResponseDTO>> {
10035
10083
  const localVarAxiosArgs = await localVarAxiosParamCreator.todoControllerAssignTask(id, assignTaskPayload, options);
10036
10084
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10037
10085
  const localVarOperationServerBasePath = operationServerMap['TodoApi.todoControllerAssignTask']?.[localVarOperationServerIndex]?.url;
@@ -10197,7 +10245,7 @@ export const TodoApiFactory = function (configuration?: Configuration, basePath?
10197
10245
  * @param {*} [options] Override http request option.
10198
10246
  * @throws {RequiredError}
10199
10247
  */
10200
- todoControllerAssignTask(id: string, assignTaskPayload: AssignTaskPayload, options?: RawAxiosRequestConfig): AxiosPromise<void> {
10248
+ todoControllerAssignTask(id: string, assignTaskPayload: AssignTaskPayload, options?: RawAxiosRequestConfig): AxiosPromise<TaskDetailResponseDTO> {
10201
10249
  return localVarFp.todoControllerAssignTask(id, assignTaskPayload, options).then((request) => request(axios, basePath));
10202
10250
  },
10203
10251
  /**
@@ -10683,6 +10731,39 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
10683
10731
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10684
10732
  localVarRequestOptions.data = serializeDataIfNeeded(userPermissionDTO, localVarRequestOptions, configuration)
10685
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
+
10686
10767
  return {
10687
10768
  url: toPathString(localVarUrlObj),
10688
10769
  options: localVarRequestOptions,
@@ -10768,6 +10849,17 @@ export const UsersApiFp = function(configuration?: Configuration) {
10768
10849
  const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerSyncUserPermissions']?.[localVarOperationServerIndex]?.url;
10769
10850
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10770
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
+ },
10771
10863
  }
10772
10864
  };
10773
10865
 
@@ -10830,6 +10922,14 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
10830
10922
  usersControllerSyncUserPermissions(userPermissionDTO: UserPermissionDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
10831
10923
  return localVarFp.usersControllerSyncUserPermissions(userPermissionDTO, options).then((request) => request(axios, basePath));
10832
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
+ },
10833
10933
  };
10834
10934
  };
10835
10935
 
@@ -10903,6 +11003,16 @@ export class UsersApi extends BaseAPI {
10903
11003
  public usersControllerSyncUserPermissions(userPermissionDTO: UserPermissionDTO, options?: RawAxiosRequestConfig) {
10904
11004
  return UsersApiFp(this.configuration).usersControllerSyncUserPermissions(userPermissionDTO, options).then((request) => request(this.axios, this.basePath));
10905
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
+ }
10906
11016
  }
10907
11017
 
10908
11018
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.39",
3
+ "version": "1.1.41",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},