@gooday_corp/gooday-api-client 1.2.116-beta → 1.2.117

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 +145 -0
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -23,6 +23,25 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
25
 
26
+ /**
27
+ *
28
+ * @export
29
+ * @interface AISuggestionResponseDTO
30
+ */
31
+ export interface AISuggestionResponseDTO {
32
+ /**
33
+ * statusCode
34
+ * @type {number}
35
+ * @memberof AISuggestionResponseDTO
36
+ */
37
+ 'statusCode': number;
38
+ /**
39
+ * AI Suggestion
40
+ * @type {Array<SuggestionEntity>}
41
+ * @memberof AISuggestionResponseDTO
42
+ */
43
+ 'data': Array<SuggestionEntity>;
44
+ }
26
45
  /**
27
46
  *
28
47
  * @export
@@ -6164,6 +6183,74 @@ export interface StripeSetupPaymentIntentDTO {
6164
6183
  */
6165
6184
  'clientSecret': string;
6166
6185
  }
6186
+ /**
6187
+ *
6188
+ * @export
6189
+ * @interface SuggestionActions
6190
+ */
6191
+ export interface SuggestionActions {
6192
+ /**
6193
+ *
6194
+ * @type {string}
6195
+ * @memberof SuggestionActions
6196
+ */
6197
+ 'label': string;
6198
+ /**
6199
+ *
6200
+ * @type {string}
6201
+ * @memberof SuggestionActions
6202
+ */
6203
+ 'target': string;
6204
+ }
6205
+ /**
6206
+ *
6207
+ * @export
6208
+ * @interface SuggestionEntity
6209
+ */
6210
+ export interface SuggestionEntity {
6211
+ /**
6212
+ *
6213
+ * @type {string}
6214
+ * @memberof SuggestionEntity
6215
+ */
6216
+ '_id': string;
6217
+ /**
6218
+ *
6219
+ * @type {string}
6220
+ * @memberof SuggestionEntity
6221
+ */
6222
+ 'title': string;
6223
+ /**
6224
+ *
6225
+ * @type {string}
6226
+ * @memberof SuggestionEntity
6227
+ */
6228
+ 'description': string;
6229
+ /**
6230
+ *
6231
+ * @type {UserEntity}
6232
+ * @memberof SuggestionEntity
6233
+ */
6234
+ 'userId': UserEntity;
6235
+ /**
6236
+ *
6237
+ * @type {AssistantEntity}
6238
+ * @memberof SuggestionEntity
6239
+ */
6240
+ 'assistant': AssistantEntity;
6241
+ /**
6242
+ *
6243
+ * @type {object}
6244
+ * @memberof SuggestionEntity
6245
+ */
6246
+ 'metaData': object;
6247
+ /**
6248
+ *
6249
+ * @type {Array<SuggestionActions>}
6250
+ * @memberof SuggestionEntity
6251
+ */
6252
+ 'actions': Array<SuggestionActions>;
6253
+ }
6167
6254
  /**
6168
6255
  *
6169
6256
  * @export
@@ -8043,6 +8130,35 @@ export interface WhatsOnUnFavoriteResponse {
8043
8130
  */
8044
8131
  export const AIApiAxiosParamCreator = function (configuration?: Configuration) {
8045
8132
  return {
8133
+ /**
8134
+ *
8135
+ * @param {*} [options] Override http request option.
8136
+ * @throws {RequiredError}
8137
+ */
8138
+ aISuggestionControllerFindAiSuggestion: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8139
+ const localVarPath = `/v1/ai/suggestion/list`;
8140
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8141
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8142
+ let baseOptions;
8143
+ if (configuration) {
8144
+ baseOptions = configuration.baseOptions;
8145
+ }
8146
+
8147
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8148
+ const localVarHeaderParameter = {} as any;
8149
+ const localVarQueryParameter = {} as any;
8150
+
8151
+
8152
+
8153
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8154
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8155
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8156
+
8157
+ return {
8158
+ url: toPathString(localVarUrlObj),
8159
+ options: localVarRequestOptions,
8160
+ };
8161
+ },
8046
8162
  /**
8047
8163
  *
8048
8164
  * @param {*} [options] Override http request option.
@@ -8115,6 +8231,17 @@ export const AIApiAxiosParamCreator = function (configuration?: Configuration) {
8115
8231
  export const AIApiFp = function(configuration?: Configuration) {
8116
8232
  const localVarAxiosParamCreator = AIApiAxiosParamCreator(configuration)
8117
8233
  return {
8234
+ /**
8235
+ *
8236
+ * @param {*} [options] Override http request option.
8237
+ * @throws {RequiredError}
8238
+ */
8239
+ async aISuggestionControllerFindAiSuggestion(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AISuggestionResponseDTO>> {
8240
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aISuggestionControllerFindAiSuggestion(options);
8241
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8242
+ const localVarOperationServerBasePath = operationServerMap['AIApi.aISuggestionControllerFindAiSuggestion']?.[localVarOperationServerIndex]?.url;
8243
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8244
+ },
8118
8245
  /**
8119
8246
  *
8120
8247
  * @param {*} [options] Override http request option.
@@ -8147,6 +8274,14 @@ export const AIApiFp = function(configuration?: Configuration) {
8147
8274
  export const AIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
8148
8275
  const localVarFp = AIApiFp(configuration)
8149
8276
  return {
8277
+ /**
8278
+ *
8279
+ * @param {*} [options] Override http request option.
8280
+ * @throws {RequiredError}
8281
+ */
8282
+ aISuggestionControllerFindAiSuggestion(options?: RawAxiosRequestConfig): AxiosPromise<AISuggestionResponseDTO> {
8283
+ return localVarFp.aISuggestionControllerFindAiSuggestion(options).then((request) => request(axios, basePath));
8284
+ },
8150
8285
  /**
8151
8286
  *
8152
8287
  * @param {*} [options] Override http request option.
@@ -8173,6 +8308,16 @@ export const AIApiFactory = function (configuration?: Configuration, basePath?:
8173
8308
  * @extends {BaseAPI}
8174
8309
  */
8175
8310
  export class AIApi extends BaseAPI {
8311
+ /**
8312
+ *
8313
+ * @param {*} [options] Override http request option.
8314
+ * @throws {RequiredError}
8315
+ * @memberof AIApi
8316
+ */
8317
+ public aISuggestionControllerFindAiSuggestion(options?: RawAxiosRequestConfig) {
8318
+ return AIApiFp(this.configuration).aISuggestionControllerFindAiSuggestion(options).then((request) => request(this.axios, this.basePath));
8319
+ }
8320
+
8176
8321
  /**
8177
8322
  *
8178
8323
  * @param {*} [options] Override http request option.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.116-beta",
3
+ "version": "1.2.117",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},