@gooday_corp/gooday-api-client 1.0.7 → 1.0.8
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.
- package/api.ts +255 -9
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -23,6 +23,62 @@ 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 AssistantEntity
|
|
30
|
+
*/
|
|
31
|
+
export interface AssistantEntity {
|
|
32
|
+
/**
|
|
33
|
+
* Unique identifier for the assistant
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AssistantEntity
|
|
36
|
+
*/
|
|
37
|
+
'id': string;
|
|
38
|
+
/**
|
|
39
|
+
* Name of the assistant
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AssistantEntity
|
|
42
|
+
*/
|
|
43
|
+
'name': string;
|
|
44
|
+
/**
|
|
45
|
+
* Thumbnail URL or path
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AssistantEntity
|
|
48
|
+
*/
|
|
49
|
+
'thumbnail': string;
|
|
50
|
+
/**
|
|
51
|
+
* Array of availability times for the assistant
|
|
52
|
+
* @type {Array<string>}
|
|
53
|
+
* @memberof AssistantEntity
|
|
54
|
+
*/
|
|
55
|
+
'availablity': Array<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Configuration object for the assistant
|
|
58
|
+
* @type {object}
|
|
59
|
+
* @memberof AssistantEntity
|
|
60
|
+
*/
|
|
61
|
+
'configuration': object;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @export
|
|
66
|
+
* @interface AssistantListResponse
|
|
67
|
+
*/
|
|
68
|
+
export interface AssistantListResponse {
|
|
69
|
+
/**
|
|
70
|
+
* statuscCode
|
|
71
|
+
* @type {number}
|
|
72
|
+
* @memberof AssistantListResponse
|
|
73
|
+
*/
|
|
74
|
+
'statusCode': number;
|
|
75
|
+
/**
|
|
76
|
+
* Assistant
|
|
77
|
+
* @type {Array<AssistantEntity>}
|
|
78
|
+
* @memberof AssistantListResponse
|
|
79
|
+
*/
|
|
80
|
+
'data': Array<AssistantEntity>;
|
|
81
|
+
}
|
|
26
82
|
/**
|
|
27
83
|
*
|
|
28
84
|
* @export
|
|
@@ -61,6 +117,25 @@ export interface GoalListResponse {
|
|
|
61
117
|
*/
|
|
62
118
|
'data': Array<GoalEntity>;
|
|
63
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @export
|
|
123
|
+
* @interface MyAssistantResponse
|
|
124
|
+
*/
|
|
125
|
+
export interface MyAssistantResponse {
|
|
126
|
+
/**
|
|
127
|
+
* statuscCode
|
|
128
|
+
* @type {number}
|
|
129
|
+
* @memberof MyAssistantResponse
|
|
130
|
+
*/
|
|
131
|
+
'statusCode': number;
|
|
132
|
+
/**
|
|
133
|
+
* Assistant
|
|
134
|
+
* @type {AssistantEntity}
|
|
135
|
+
* @memberof MyAssistantResponse
|
|
136
|
+
*/
|
|
137
|
+
'data': AssistantEntity;
|
|
138
|
+
}
|
|
64
139
|
/**
|
|
65
140
|
*
|
|
66
141
|
* @export
|
|
@@ -74,11 +149,11 @@ export interface OnBoardingDTO {
|
|
|
74
149
|
*/
|
|
75
150
|
'nickname'?: string;
|
|
76
151
|
/**
|
|
77
|
-
*
|
|
152
|
+
* Assistant
|
|
78
153
|
* @type {string}
|
|
79
154
|
* @memberof OnBoardingDTO
|
|
80
155
|
*/
|
|
81
|
-
'
|
|
156
|
+
'assistant'?: string;
|
|
82
157
|
/**
|
|
83
158
|
* Plan
|
|
84
159
|
* @type {string}
|
|
@@ -309,11 +384,17 @@ export interface SignInResponseDto {
|
|
|
309
384
|
*/
|
|
310
385
|
export interface SignupDto {
|
|
311
386
|
/**
|
|
312
|
-
* The name of the user
|
|
387
|
+
* The first name of the user
|
|
313
388
|
* @type {string}
|
|
314
389
|
* @memberof SignupDto
|
|
315
390
|
*/
|
|
316
|
-
'
|
|
391
|
+
'firstName': string;
|
|
392
|
+
/**
|
|
393
|
+
* The last name of the user
|
|
394
|
+
* @type {string}
|
|
395
|
+
* @memberof SignupDto
|
|
396
|
+
*/
|
|
397
|
+
'lastName': string;
|
|
317
398
|
/**
|
|
318
399
|
* The email of the user
|
|
319
400
|
* @type {string}
|
|
@@ -384,11 +465,17 @@ export interface UserEntity {
|
|
|
384
465
|
*/
|
|
385
466
|
'_id': string;
|
|
386
467
|
/**
|
|
387
|
-
*
|
|
468
|
+
* First name of the user
|
|
388
469
|
* @type {string}
|
|
389
470
|
* @memberof UserEntity
|
|
390
471
|
*/
|
|
391
|
-
'
|
|
472
|
+
'firstName': string;
|
|
473
|
+
/**
|
|
474
|
+
* Last name of the user
|
|
475
|
+
* @type {string}
|
|
476
|
+
* @memberof UserEntity
|
|
477
|
+
*/
|
|
478
|
+
'lastName': string;
|
|
392
479
|
/**
|
|
393
480
|
* Email address of the user
|
|
394
481
|
* @type {string}
|
|
@@ -408,11 +495,11 @@ export interface UserEntity {
|
|
|
408
495
|
*/
|
|
409
496
|
'dob': string;
|
|
410
497
|
/**
|
|
411
|
-
*
|
|
498
|
+
* Assistant ID
|
|
412
499
|
* @type {string}
|
|
413
500
|
* @memberof UserEntity
|
|
414
501
|
*/
|
|
415
|
-
'
|
|
502
|
+
'assistant': string;
|
|
416
503
|
/**
|
|
417
504
|
* Indicates whether the user\'s email has been verified
|
|
418
505
|
* @type {boolean}
|
|
@@ -449,7 +536,7 @@ export const UserEntityNextStepEnum = {
|
|
|
449
536
|
BasicInfo: 'basic_info',
|
|
450
537
|
NickName: 'nick_name',
|
|
451
538
|
Dob: 'dob',
|
|
452
|
-
|
|
539
|
+
Assistant: 'assistant',
|
|
453
540
|
Goals: 'goals',
|
|
454
541
|
Plan: 'plan'
|
|
455
542
|
} as const;
|
|
@@ -476,6 +563,165 @@ export interface UserMeDTO {
|
|
|
476
563
|
'data': UserEntity;
|
|
477
564
|
}
|
|
478
565
|
|
|
566
|
+
/**
|
|
567
|
+
* AIApi - axios parameter creator
|
|
568
|
+
* @export
|
|
569
|
+
*/
|
|
570
|
+
export const AIApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
571
|
+
return {
|
|
572
|
+
/**
|
|
573
|
+
*
|
|
574
|
+
* @param {*} [options] Override http request option.
|
|
575
|
+
* @throws {RequiredError}
|
|
576
|
+
*/
|
|
577
|
+
assistantControllerListAssistants: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
578
|
+
const localVarPath = `/v1/assistant/list`;
|
|
579
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
580
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
581
|
+
let baseOptions;
|
|
582
|
+
if (configuration) {
|
|
583
|
+
baseOptions = configuration.baseOptions;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
587
|
+
const localVarHeaderParameter = {} as any;
|
|
588
|
+
const localVarQueryParameter = {} as any;
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
593
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
594
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
595
|
+
|
|
596
|
+
return {
|
|
597
|
+
url: toPathString(localVarUrlObj),
|
|
598
|
+
options: localVarRequestOptions,
|
|
599
|
+
};
|
|
600
|
+
},
|
|
601
|
+
/**
|
|
602
|
+
*
|
|
603
|
+
* @param {*} [options] Override http request option.
|
|
604
|
+
* @throws {RequiredError}
|
|
605
|
+
*/
|
|
606
|
+
assistantControllerMyAssistant: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
607
|
+
const localVarPath = `/v1/assistant/me`;
|
|
608
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
609
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
610
|
+
let baseOptions;
|
|
611
|
+
if (configuration) {
|
|
612
|
+
baseOptions = configuration.baseOptions;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
616
|
+
const localVarHeaderParameter = {} as any;
|
|
617
|
+
const localVarQueryParameter = {} as any;
|
|
618
|
+
|
|
619
|
+
// authentication bearer required
|
|
620
|
+
// http bearer authentication required
|
|
621
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
626
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
627
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
628
|
+
|
|
629
|
+
return {
|
|
630
|
+
url: toPathString(localVarUrlObj),
|
|
631
|
+
options: localVarRequestOptions,
|
|
632
|
+
};
|
|
633
|
+
},
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* AIApi - functional programming interface
|
|
639
|
+
* @export
|
|
640
|
+
*/
|
|
641
|
+
export const AIApiFp = function(configuration?: Configuration) {
|
|
642
|
+
const localVarAxiosParamCreator = AIApiAxiosParamCreator(configuration)
|
|
643
|
+
return {
|
|
644
|
+
/**
|
|
645
|
+
*
|
|
646
|
+
* @param {*} [options] Override http request option.
|
|
647
|
+
* @throws {RequiredError}
|
|
648
|
+
*/
|
|
649
|
+
async assistantControllerListAssistants(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssistantListResponse>> {
|
|
650
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.assistantControllerListAssistants(options);
|
|
651
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
652
|
+
const localVarOperationServerBasePath = operationServerMap['AIApi.assistantControllerListAssistants']?.[localVarOperationServerIndex]?.url;
|
|
653
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
654
|
+
},
|
|
655
|
+
/**
|
|
656
|
+
*
|
|
657
|
+
* @param {*} [options] Override http request option.
|
|
658
|
+
* @throws {RequiredError}
|
|
659
|
+
*/
|
|
660
|
+
async assistantControllerMyAssistant(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MyAssistantResponse>> {
|
|
661
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.assistantControllerMyAssistant(options);
|
|
662
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
663
|
+
const localVarOperationServerBasePath = operationServerMap['AIApi.assistantControllerMyAssistant']?.[localVarOperationServerIndex]?.url;
|
|
664
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
665
|
+
},
|
|
666
|
+
}
|
|
667
|
+
};
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* AIApi - factory interface
|
|
671
|
+
* @export
|
|
672
|
+
*/
|
|
673
|
+
export const AIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
674
|
+
const localVarFp = AIApiFp(configuration)
|
|
675
|
+
return {
|
|
676
|
+
/**
|
|
677
|
+
*
|
|
678
|
+
* @param {*} [options] Override http request option.
|
|
679
|
+
* @throws {RequiredError}
|
|
680
|
+
*/
|
|
681
|
+
assistantControllerListAssistants(options?: RawAxiosRequestConfig): AxiosPromise<AssistantListResponse> {
|
|
682
|
+
return localVarFp.assistantControllerListAssistants(options).then((request) => request(axios, basePath));
|
|
683
|
+
},
|
|
684
|
+
/**
|
|
685
|
+
*
|
|
686
|
+
* @param {*} [options] Override http request option.
|
|
687
|
+
* @throws {RequiredError}
|
|
688
|
+
*/
|
|
689
|
+
assistantControllerMyAssistant(options?: RawAxiosRequestConfig): AxiosPromise<MyAssistantResponse> {
|
|
690
|
+
return localVarFp.assistantControllerMyAssistant(options).then((request) => request(axios, basePath));
|
|
691
|
+
},
|
|
692
|
+
};
|
|
693
|
+
};
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* AIApi - object-oriented interface
|
|
697
|
+
* @export
|
|
698
|
+
* @class AIApi
|
|
699
|
+
* @extends {BaseAPI}
|
|
700
|
+
*/
|
|
701
|
+
export class AIApi extends BaseAPI {
|
|
702
|
+
/**
|
|
703
|
+
*
|
|
704
|
+
* @param {*} [options] Override http request option.
|
|
705
|
+
* @throws {RequiredError}
|
|
706
|
+
* @memberof AIApi
|
|
707
|
+
*/
|
|
708
|
+
public assistantControllerListAssistants(options?: RawAxiosRequestConfig) {
|
|
709
|
+
return AIApiFp(this.configuration).assistantControllerListAssistants(options).then((request) => request(this.axios, this.basePath));
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
*
|
|
714
|
+
* @param {*} [options] Override http request option.
|
|
715
|
+
* @throws {RequiredError}
|
|
716
|
+
* @memberof AIApi
|
|
717
|
+
*/
|
|
718
|
+
public assistantControllerMyAssistant(options?: RawAxiosRequestConfig) {
|
|
719
|
+
return AIApiFp(this.configuration).assistantControllerMyAssistant(options).then((request) => request(this.axios, this.basePath));
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
|
|
479
725
|
/**
|
|
480
726
|
* AuthApi - axios parameter creator
|
|
481
727
|
* @export
|