@gooday_corp/gooday-api-client 1.0.0 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Goodday
4
+ * Gooday
5
5
  * Gooday API Documentation
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
@@ -104,19 +104,6 @@ export interface ResetPasswordDTO {
104
104
  */
105
105
  'newPassword': string;
106
106
  }
107
- /**
108
- *
109
- * @export
110
- * @interface SaveRecommendationDto
111
- */
112
- export interface SaveRecommendationDto {
113
- /**
114
- * An array of recommendation.
115
- * @type {Array<string>}
116
- * @memberof SaveRecommendationDto
117
- */
118
- 'recommendation': Array<string>;
119
- }
120
107
  /**
121
108
  *
122
109
  * @export
@@ -223,6 +210,10 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
223
210
  const localVarHeaderParameter = {} as any;
224
211
  const localVarQueryParameter = {} as any;
225
212
 
213
+ // authentication bearer required
214
+ // http bearer authentication required
215
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
216
+
226
217
 
227
218
 
228
219
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -502,18 +493,18 @@ export class AuthApi extends BaseAPI {
502
493
 
503
494
 
504
495
  /**
505
- * PlansApi - axios parameter creator
496
+ * GoalsApi - axios parameter creator
506
497
  * @export
507
498
  */
508
- export const PlansApiAxiosParamCreator = function (configuration?: Configuration) {
499
+ export const GoalsApiAxiosParamCreator = function (configuration?: Configuration) {
509
500
  return {
510
501
  /**
511
502
  *
512
503
  * @param {*} [options] Override http request option.
513
504
  * @throws {RequiredError}
514
505
  */
515
- plansControllerGetMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
516
- const localVarPath = `/plans`;
506
+ goalControllerGetMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
507
+ const localVarPath = `/goals`;
517
508
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
518
509
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
519
510
  let baseOptions;
@@ -525,15 +516,50 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
525
516
  const localVarHeaderParameter = {} as any;
526
517
  const localVarQueryParameter = {} as any;
527
518
 
519
+
520
+
521
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
522
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
523
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
524
+
525
+ return {
526
+ url: toPathString(localVarUrlObj),
527
+ options: localVarRequestOptions,
528
+ };
529
+ },
530
+ /**
531
+ *
532
+ * @param {Array<string>} requestBody
533
+ * @param {*} [options] Override http request option.
534
+ * @throws {RequiredError}
535
+ */
536
+ goalControllerOnBoarded: async (requestBody: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
537
+ // verify required parameter 'requestBody' is not null or undefined
538
+ assertParamExists('goalControllerOnBoarded', 'requestBody', requestBody)
539
+ const localVarPath = `/goals`;
540
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
541
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
542
+ let baseOptions;
543
+ if (configuration) {
544
+ baseOptions = configuration.baseOptions;
545
+ }
546
+
547
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
548
+ const localVarHeaderParameter = {} as any;
549
+ const localVarQueryParameter = {} as any;
550
+
528
551
  // authentication bearer required
529
552
  // http bearer authentication required
530
553
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
531
554
 
532
555
 
533
556
 
557
+ localVarHeaderParameter['Content-Type'] = 'application/json';
558
+
534
559
  setSearchParams(localVarUrlObj, localVarQueryParameter);
535
560
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
536
561
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
562
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
537
563
 
538
564
  return {
539
565
  url: toPathString(localVarUrlObj),
@@ -544,77 +570,109 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
544
570
  };
545
571
 
546
572
  /**
547
- * PlansApi - functional programming interface
573
+ * GoalsApi - functional programming interface
548
574
  * @export
549
575
  */
550
- export const PlansApiFp = function(configuration?: Configuration) {
551
- const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration)
576
+ export const GoalsApiFp = function(configuration?: Configuration) {
577
+ const localVarAxiosParamCreator = GoalsApiAxiosParamCreator(configuration)
552
578
  return {
553
579
  /**
554
580
  *
555
581
  * @param {*} [options] Override http request option.
556
582
  * @throws {RequiredError}
557
583
  */
558
- async plansControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
559
- const localVarAxiosArgs = await localVarAxiosParamCreator.plansControllerGetMe(options);
584
+ async goalControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
585
+ const localVarAxiosArgs = await localVarAxiosParamCreator.goalControllerGetMe(options);
560
586
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
561
- const localVarOperationServerBasePath = operationServerMap['PlansApi.plansControllerGetMe']?.[localVarOperationServerIndex]?.url;
587
+ const localVarOperationServerBasePath = operationServerMap['GoalsApi.goalControllerGetMe']?.[localVarOperationServerIndex]?.url;
588
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
589
+ },
590
+ /**
591
+ *
592
+ * @param {Array<string>} requestBody
593
+ * @param {*} [options] Override http request option.
594
+ * @throws {RequiredError}
595
+ */
596
+ async goalControllerOnBoarded(requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
597
+ const localVarAxiosArgs = await localVarAxiosParamCreator.goalControllerOnBoarded(requestBody, options);
598
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
599
+ const localVarOperationServerBasePath = operationServerMap['GoalsApi.goalControllerOnBoarded']?.[localVarOperationServerIndex]?.url;
562
600
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
563
601
  },
564
602
  }
565
603
  };
566
604
 
567
605
  /**
568
- * PlansApi - factory interface
606
+ * GoalsApi - factory interface
569
607
  * @export
570
608
  */
571
- export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
572
- const localVarFp = PlansApiFp(configuration)
609
+ export const GoalsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
610
+ const localVarFp = GoalsApiFp(configuration)
573
611
  return {
574
612
  /**
575
613
  *
576
614
  * @param {*} [options] Override http request option.
577
615
  * @throws {RequiredError}
578
616
  */
579
- plansControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<void> {
580
- return localVarFp.plansControllerGetMe(options).then((request) => request(axios, basePath));
617
+ goalControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<void> {
618
+ return localVarFp.goalControllerGetMe(options).then((request) => request(axios, basePath));
619
+ },
620
+ /**
621
+ *
622
+ * @param {Array<string>} requestBody
623
+ * @param {*} [options] Override http request option.
624
+ * @throws {RequiredError}
625
+ */
626
+ goalControllerOnBoarded(requestBody: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<void> {
627
+ return localVarFp.goalControllerOnBoarded(requestBody, options).then((request) => request(axios, basePath));
581
628
  },
582
629
  };
583
630
  };
584
631
 
585
632
  /**
586
- * PlansApi - object-oriented interface
633
+ * GoalsApi - object-oriented interface
587
634
  * @export
588
- * @class PlansApi
635
+ * @class GoalsApi
589
636
  * @extends {BaseAPI}
590
637
  */
591
- export class PlansApi extends BaseAPI {
638
+ export class GoalsApi extends BaseAPI {
592
639
  /**
593
640
  *
594
641
  * @param {*} [options] Override http request option.
595
642
  * @throws {RequiredError}
596
- * @memberof PlansApi
643
+ * @memberof GoalsApi
644
+ */
645
+ public goalControllerGetMe(options?: RawAxiosRequestConfig) {
646
+ return GoalsApiFp(this.configuration).goalControllerGetMe(options).then((request) => request(this.axios, this.basePath));
647
+ }
648
+
649
+ /**
650
+ *
651
+ * @param {Array<string>} requestBody
652
+ * @param {*} [options] Override http request option.
653
+ * @throws {RequiredError}
654
+ * @memberof GoalsApi
597
655
  */
598
- public plansControllerGetMe(options?: RawAxiosRequestConfig) {
599
- return PlansApiFp(this.configuration).plansControllerGetMe(options).then((request) => request(this.axios, this.basePath));
656
+ public goalControllerOnBoarded(requestBody: Array<string>, options?: RawAxiosRequestConfig) {
657
+ return GoalsApiFp(this.configuration).goalControllerOnBoarded(requestBody, options).then((request) => request(this.axios, this.basePath));
600
658
  }
601
659
  }
602
660
 
603
661
 
604
662
 
605
663
  /**
606
- * RecommendationApi - axios parameter creator
664
+ * PlansApi - axios parameter creator
607
665
  * @export
608
666
  */
609
- export const RecommendationApiAxiosParamCreator = function (configuration?: Configuration) {
667
+ export const PlansApiAxiosParamCreator = function (configuration?: Configuration) {
610
668
  return {
611
669
  /**
612
670
  *
613
671
  * @param {*} [options] Override http request option.
614
672
  * @throws {RequiredError}
615
673
  */
616
- recommendationControllerGetrecommendation: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
617
- const localVarPath = `/recommendation`;
674
+ paymentControllerGetPlans: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
675
+ const localVarPath = `/plans`;
618
676
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
619
677
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
620
678
  let baseOptions;
@@ -636,45 +694,6 @@ export const RecommendationApiAxiosParamCreator = function (configuration?: Conf
636
694
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
637
695
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
638
696
 
639
- return {
640
- url: toPathString(localVarUrlObj),
641
- options: localVarRequestOptions,
642
- };
643
- },
644
- /**
645
- *
646
- * @param {SaveRecommendationDto} saveRecommendationDto
647
- * @param {*} [options] Override http request option.
648
- * @throws {RequiredError}
649
- */
650
- recommendationControllerSaveRecommendation: async (saveRecommendationDto: SaveRecommendationDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
651
- // verify required parameter 'saveRecommendationDto' is not null or undefined
652
- assertParamExists('recommendationControllerSaveRecommendation', 'saveRecommendationDto', saveRecommendationDto)
653
- const localVarPath = `/recommendation`;
654
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
655
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
656
- let baseOptions;
657
- if (configuration) {
658
- baseOptions = configuration.baseOptions;
659
- }
660
-
661
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
662
- const localVarHeaderParameter = {} as any;
663
- const localVarQueryParameter = {} as any;
664
-
665
- // authentication bearer required
666
- // http bearer authentication required
667
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
668
-
669
-
670
-
671
- localVarHeaderParameter['Content-Type'] = 'application/json';
672
-
673
- setSearchParams(localVarUrlObj, localVarQueryParameter);
674
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
675
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
676
- localVarRequestOptions.data = serializeDataIfNeeded(saveRecommendationDto, localVarRequestOptions, configuration)
677
-
678
697
  return {
679
698
  url: toPathString(localVarUrlObj),
680
699
  options: localVarRequestOptions,
@@ -684,91 +703,59 @@ export const RecommendationApiAxiosParamCreator = function (configuration?: Conf
684
703
  };
685
704
 
686
705
  /**
687
- * RecommendationApi - functional programming interface
706
+ * PlansApi - functional programming interface
688
707
  * @export
689
708
  */
690
- export const RecommendationApiFp = function(configuration?: Configuration) {
691
- const localVarAxiosParamCreator = RecommendationApiAxiosParamCreator(configuration)
709
+ export const PlansApiFp = function(configuration?: Configuration) {
710
+ const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration)
692
711
  return {
693
712
  /**
694
713
  *
695
714
  * @param {*} [options] Override http request option.
696
715
  * @throws {RequiredError}
697
716
  */
698
- async recommendationControllerGetrecommendation(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
699
- const localVarAxiosArgs = await localVarAxiosParamCreator.recommendationControllerGetrecommendation(options);
700
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
701
- const localVarOperationServerBasePath = operationServerMap['RecommendationApi.recommendationControllerGetrecommendation']?.[localVarOperationServerIndex]?.url;
702
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
703
- },
704
- /**
705
- *
706
- * @param {SaveRecommendationDto} saveRecommendationDto
707
- * @param {*} [options] Override http request option.
708
- * @throws {RequiredError}
709
- */
710
- async recommendationControllerSaveRecommendation(saveRecommendationDto: SaveRecommendationDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
711
- const localVarAxiosArgs = await localVarAxiosParamCreator.recommendationControllerSaveRecommendation(saveRecommendationDto, options);
717
+ async paymentControllerGetPlans(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
718
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerGetPlans(options);
712
719
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
713
- const localVarOperationServerBasePath = operationServerMap['RecommendationApi.recommendationControllerSaveRecommendation']?.[localVarOperationServerIndex]?.url;
720
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerGetPlans']?.[localVarOperationServerIndex]?.url;
714
721
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
715
722
  },
716
723
  }
717
724
  };
718
725
 
719
726
  /**
720
- * RecommendationApi - factory interface
727
+ * PlansApi - factory interface
721
728
  * @export
722
729
  */
723
- export const RecommendationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
724
- const localVarFp = RecommendationApiFp(configuration)
730
+ export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
731
+ const localVarFp = PlansApiFp(configuration)
725
732
  return {
726
733
  /**
727
734
  *
728
735
  * @param {*} [options] Override http request option.
729
736
  * @throws {RequiredError}
730
737
  */
731
- recommendationControllerGetrecommendation(options?: RawAxiosRequestConfig): AxiosPromise<void> {
732
- return localVarFp.recommendationControllerGetrecommendation(options).then((request) => request(axios, basePath));
733
- },
734
- /**
735
- *
736
- * @param {SaveRecommendationDto} saveRecommendationDto
737
- * @param {*} [options] Override http request option.
738
- * @throws {RequiredError}
739
- */
740
- recommendationControllerSaveRecommendation(saveRecommendationDto: SaveRecommendationDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
741
- return localVarFp.recommendationControllerSaveRecommendation(saveRecommendationDto, options).then((request) => request(axios, basePath));
738
+ paymentControllerGetPlans(options?: RawAxiosRequestConfig): AxiosPromise<void> {
739
+ return localVarFp.paymentControllerGetPlans(options).then((request) => request(axios, basePath));
742
740
  },
743
741
  };
744
742
  };
745
743
 
746
744
  /**
747
- * RecommendationApi - object-oriented interface
745
+ * PlansApi - object-oriented interface
748
746
  * @export
749
- * @class RecommendationApi
747
+ * @class PlansApi
750
748
  * @extends {BaseAPI}
751
749
  */
752
- export class RecommendationApi extends BaseAPI {
753
- /**
754
- *
755
- * @param {*} [options] Override http request option.
756
- * @throws {RequiredError}
757
- * @memberof RecommendationApi
758
- */
759
- public recommendationControllerGetrecommendation(options?: RawAxiosRequestConfig) {
760
- return RecommendationApiFp(this.configuration).recommendationControllerGetrecommendation(options).then((request) => request(this.axios, this.basePath));
761
- }
762
-
750
+ export class PlansApi extends BaseAPI {
763
751
  /**
764
752
  *
765
- * @param {SaveRecommendationDto} saveRecommendationDto
766
753
  * @param {*} [options] Override http request option.
767
754
  * @throws {RequiredError}
768
- * @memberof RecommendationApi
755
+ * @memberof PlansApi
769
756
  */
770
- public recommendationControllerSaveRecommendation(saveRecommendationDto: SaveRecommendationDto, options?: RawAxiosRequestConfig) {
771
- return RecommendationApiFp(this.configuration).recommendationControllerSaveRecommendation(saveRecommendationDto, options).then((request) => request(this.axios, this.basePath));
757
+ public paymentControllerGetPlans(options?: RawAxiosRequestConfig) {
758
+ return PlansApiFp(this.configuration).paymentControllerGetPlans(options).then((request) => request(this.axios, this.basePath));
772
759
  }
773
760
  }
774
761
 
package/base.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Goodday
4
+ * Gooday
5
5
  * Gooday API Documentation
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
@@ -19,7 +19,7 @@ import type { Configuration } from './configuration';
19
19
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
20
20
  import globalAxios from 'axios';
21
21
 
22
- export const BASE_PATH = "https://localhost:3000".replace(/\/+$/, "");
22
+ export const BASE_PATH = "https://localhost:8080".replace(/\/+$/, "");
23
23
 
24
24
  /**
25
25
  *
package/common.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Goodday
4
+ * Gooday
5
5
  * Gooday API Documentation
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
package/configuration.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Goodday
4
+ * Gooday
5
5
  * Gooday API Documentation
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
package/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Goodday
4
+ * Gooday
5
5
  * Gooday API Documentation
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
package/package.json CHANGED
@@ -1,12 +1,9 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "API client for Gooday",
5
- "main": "index.js",
6
- "scripts": {
7
- "build": "tsc",
8
- "test": "jest"
9
- },
5
+ "main": "index.ts",
6
+ "scripts": {},
10
7
  "repository": {
11
8
  "type": "git",
12
9
  "url": "git+https://github.com/DevForge-Technology/gooday-backend.git"