@gooday_corp/gooday-api-client 1.1.12-delta-9 → 1.1.12-delta-10

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 +204 -0
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -1018,6 +1018,38 @@ export interface GetBusinessVenueDto {
1018
1018
  */
1019
1019
  'limit'?: number;
1020
1020
  }
1021
+ /**
1022
+ *
1023
+ * @export
1024
+ * @interface GetNotificationDTO
1025
+ */
1026
+ export interface GetNotificationDTO {
1027
+ /**
1028
+ * statuscCode
1029
+ * @type {number}
1030
+ * @memberof GetNotificationDTO
1031
+ */
1032
+ 'statusCode': number;
1033
+ /**
1034
+ * Notifications
1035
+ * @type {object}
1036
+ * @memberof GetNotificationDTO
1037
+ */
1038
+ 'data': object;
1039
+ }
1040
+ /**
1041
+ *
1042
+ * @export
1043
+ * @interface GetUserDTO
1044
+ */
1045
+ export interface GetUserDTO {
1046
+ /**
1047
+ * 66f135c95a81ce68c9015414
1048
+ * @type {string}
1049
+ * @memberof GetUserDTO
1050
+ */
1051
+ 'id': string;
1052
+ }
1021
1053
  /**
1022
1054
  *
1023
1055
  * @export
@@ -5008,6 +5040,107 @@ export class LocationApi extends BaseAPI {
5008
5040
 
5009
5041
 
5010
5042
 
5043
+ /**
5044
+ * NotificationApi - axios parameter creator
5045
+ * @export
5046
+ */
5047
+ export const NotificationApiAxiosParamCreator = function (configuration?: Configuration) {
5048
+ return {
5049
+ /**
5050
+ *
5051
+ * @param {*} [options] Override http request option.
5052
+ * @throws {RequiredError}
5053
+ */
5054
+ notificationControllerGetNotification: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5055
+ const localVarPath = `/v1/notification`;
5056
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5057
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5058
+ let baseOptions;
5059
+ if (configuration) {
5060
+ baseOptions = configuration.baseOptions;
5061
+ }
5062
+
5063
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5064
+ const localVarHeaderParameter = {} as any;
5065
+ const localVarQueryParameter = {} as any;
5066
+
5067
+ // authentication bearer required
5068
+ // http bearer authentication required
5069
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5070
+
5071
+
5072
+
5073
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5074
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5075
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5076
+
5077
+ return {
5078
+ url: toPathString(localVarUrlObj),
5079
+ options: localVarRequestOptions,
5080
+ };
5081
+ },
5082
+ }
5083
+ };
5084
+
5085
+ /**
5086
+ * NotificationApi - functional programming interface
5087
+ * @export
5088
+ */
5089
+ export const NotificationApiFp = function(configuration?: Configuration) {
5090
+ const localVarAxiosParamCreator = NotificationApiAxiosParamCreator(configuration)
5091
+ return {
5092
+ /**
5093
+ *
5094
+ * @param {*} [options] Override http request option.
5095
+ * @throws {RequiredError}
5096
+ */
5097
+ async notificationControllerGetNotification(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetNotificationDTO>> {
5098
+ const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerGetNotification(options);
5099
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5100
+ const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerGetNotification']?.[localVarOperationServerIndex]?.url;
5101
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5102
+ },
5103
+ }
5104
+ };
5105
+
5106
+ /**
5107
+ * NotificationApi - factory interface
5108
+ * @export
5109
+ */
5110
+ export const NotificationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
5111
+ const localVarFp = NotificationApiFp(configuration)
5112
+ return {
5113
+ /**
5114
+ *
5115
+ * @param {*} [options] Override http request option.
5116
+ * @throws {RequiredError}
5117
+ */
5118
+ notificationControllerGetNotification(options?: RawAxiosRequestConfig): AxiosPromise<GetNotificationDTO> {
5119
+ return localVarFp.notificationControllerGetNotification(options).then((request) => request(axios, basePath));
5120
+ },
5121
+ };
5122
+ };
5123
+
5124
+ /**
5125
+ * NotificationApi - object-oriented interface
5126
+ * @export
5127
+ * @class NotificationApi
5128
+ * @extends {BaseAPI}
5129
+ */
5130
+ export class NotificationApi extends BaseAPI {
5131
+ /**
5132
+ *
5133
+ * @param {*} [options] Override http request option.
5134
+ * @throws {RequiredError}
5135
+ * @memberof NotificationApi
5136
+ */
5137
+ public notificationControllerGetNotification(options?: RawAxiosRequestConfig) {
5138
+ return NotificationApiFp(this.configuration).notificationControllerGetNotification(options).then((request) => request(this.axios, this.basePath));
5139
+ }
5140
+ }
5141
+
5142
+
5143
+
5011
5144
  /**
5012
5145
  * OAuthApi - axios parameter creator
5013
5146
  * @export
@@ -5524,6 +5657,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
5524
5657
  options: localVarRequestOptions,
5525
5658
  };
5526
5659
  },
5660
+ /**
5661
+ *
5662
+ * @param {GetUserDTO} getUserDTO
5663
+ * @param {*} [options] Override http request option.
5664
+ * @throws {RequiredError}
5665
+ */
5666
+ usersControllerGetUser: async (getUserDTO: GetUserDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5667
+ // verify required parameter 'getUserDTO' is not null or undefined
5668
+ assertParamExists('usersControllerGetUser', 'getUserDTO', getUserDTO)
5669
+ const localVarPath = `/v1/user/get-user`;
5670
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5671
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5672
+ let baseOptions;
5673
+ if (configuration) {
5674
+ baseOptions = configuration.baseOptions;
5675
+ }
5676
+
5677
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5678
+ const localVarHeaderParameter = {} as any;
5679
+ const localVarQueryParameter = {} as any;
5680
+
5681
+ // authentication bearer required
5682
+ // http bearer authentication required
5683
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5684
+
5685
+
5686
+
5687
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5688
+
5689
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5690
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5691
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5692
+ localVarRequestOptions.data = serializeDataIfNeeded(getUserDTO, localVarRequestOptions, configuration)
5693
+
5694
+ return {
5695
+ url: toPathString(localVarUrlObj),
5696
+ options: localVarRequestOptions,
5697
+ };
5698
+ },
5527
5699
  /**
5528
5700
  *
5529
5701
  * @param {OnBoardingDTO} onBoardingDTO
@@ -5623,6 +5795,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
5623
5795
  const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerGetMe']?.[localVarOperationServerIndex]?.url;
5624
5796
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5625
5797
  },
5798
+ /**
5799
+ *
5800
+ * @param {GetUserDTO} getUserDTO
5801
+ * @param {*} [options] Override http request option.
5802
+ * @throws {RequiredError}
5803
+ */
5804
+ async usersControllerGetUser(getUserDTO: GetUserDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnBoardingResponseDTO>> {
5805
+ const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerGetUser(getUserDTO, options);
5806
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5807
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerGetUser']?.[localVarOperationServerIndex]?.url;
5808
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5809
+ },
5626
5810
  /**
5627
5811
  *
5628
5812
  * @param {OnBoardingDTO} onBoardingDTO
@@ -5665,6 +5849,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
5665
5849
  usersControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<UserMeDTO> {
5666
5850
  return localVarFp.usersControllerGetMe(options).then((request) => request(axios, basePath));
5667
5851
  },
5852
+ /**
5853
+ *
5854
+ * @param {GetUserDTO} getUserDTO
5855
+ * @param {*} [options] Override http request option.
5856
+ * @throws {RequiredError}
5857
+ */
5858
+ usersControllerGetUser(getUserDTO: GetUserDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
5859
+ return localVarFp.usersControllerGetUser(getUserDTO, options).then((request) => request(axios, basePath));
5860
+ },
5668
5861
  /**
5669
5862
  *
5670
5863
  * @param {OnBoardingDTO} onBoardingDTO
@@ -5703,6 +5896,17 @@ export class UsersApi extends BaseAPI {
5703
5896
  return UsersApiFp(this.configuration).usersControllerGetMe(options).then((request) => request(this.axios, this.basePath));
5704
5897
  }
5705
5898
 
5899
+ /**
5900
+ *
5901
+ * @param {GetUserDTO} getUserDTO
5902
+ * @param {*} [options] Override http request option.
5903
+ * @throws {RequiredError}
5904
+ * @memberof UsersApi
5905
+ */
5906
+ public usersControllerGetUser(getUserDTO: GetUserDTO, options?: RawAxiosRequestConfig) {
5907
+ return UsersApiFp(this.configuration).usersControllerGetUser(getUserDTO, options).then((request) => request(this.axios, this.basePath));
5908
+ }
5909
+
5706
5910
  /**
5707
5911
  *
5708
5912
  * @param {OnBoardingDTO} onBoardingDTO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.12-delta-9",
3
+ "version": "1.1.12-delta-10",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},