@gooday_corp/gooday-api-client 1.0.16-zeta → 1.0.17-beta

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 +68 -0
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -128,6 +128,12 @@ export interface BusinessEntity {
128
128
  * @memberof BusinessEntity
129
129
  */
130
130
  '_id': string;
131
+ /**
132
+ * Unique identifier for the User
133
+ * @type {string}
134
+ * @memberof BusinessEntity
135
+ */
136
+ 'user': string;
131
137
  /**
132
138
  * Business Timing
133
139
  * @type {Array<BusinessTiming>}
@@ -1571,6 +1577,39 @@ export class AuthApi extends BaseAPI {
1571
1577
  */
1572
1578
  export const BusinessApiAxiosParamCreator = function (configuration?: Configuration) {
1573
1579
  return {
1580
+ /**
1581
+ *
1582
+ * @param {*} [options] Override http request option.
1583
+ * @throws {RequiredError}
1584
+ */
1585
+ businessControllerBusinessMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1586
+ const localVarPath = `/v1/business/me`;
1587
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1588
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1589
+ let baseOptions;
1590
+ if (configuration) {
1591
+ baseOptions = configuration.baseOptions;
1592
+ }
1593
+
1594
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1595
+ const localVarHeaderParameter = {} as any;
1596
+ const localVarQueryParameter = {} as any;
1597
+
1598
+ // authentication bearer required
1599
+ // http bearer authentication required
1600
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1601
+
1602
+
1603
+
1604
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1605
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1606
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1607
+
1608
+ return {
1609
+ url: toPathString(localVarUrlObj),
1610
+ options: localVarRequestOptions,
1611
+ };
1612
+ },
1574
1613
  /**
1575
1614
  *
1576
1615
  * @param {BusinessOnBoardingDTO} businessOnBoardingDTO
@@ -1756,6 +1795,17 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
1756
1795
  export const BusinessApiFp = function(configuration?: Configuration) {
1757
1796
  const localVarAxiosParamCreator = BusinessApiAxiosParamCreator(configuration)
1758
1797
  return {
1798
+ /**
1799
+ *
1800
+ * @param {*} [options] Override http request option.
1801
+ * @throws {RequiredError}
1802
+ */
1803
+ async businessControllerBusinessMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
1804
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerBusinessMe(options);
1805
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1806
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerBusinessMe']?.[localVarOperationServerIndex]?.url;
1807
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1808
+ },
1759
1809
  /**
1760
1810
  *
1761
1811
  * @param {BusinessOnBoardingDTO} businessOnBoardingDTO
@@ -1823,6 +1873,14 @@ export const BusinessApiFp = function(configuration?: Configuration) {
1823
1873
  export const BusinessApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1824
1874
  const localVarFp = BusinessApiFp(configuration)
1825
1875
  return {
1876
+ /**
1877
+ *
1878
+ * @param {*} [options] Override http request option.
1879
+ * @throws {RequiredError}
1880
+ */
1881
+ businessControllerBusinessMe(options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
1882
+ return localVarFp.businessControllerBusinessMe(options).then((request) => request(axios, basePath));
1883
+ },
1826
1884
  /**
1827
1885
  *
1828
1886
  * @param {BusinessOnBoardingDTO} businessOnBoardingDTO
@@ -1875,6 +1933,16 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
1875
1933
  * @extends {BaseAPI}
1876
1934
  */
1877
1935
  export class BusinessApi extends BaseAPI {
1936
+ /**
1937
+ *
1938
+ * @param {*} [options] Override http request option.
1939
+ * @throws {RequiredError}
1940
+ * @memberof BusinessApi
1941
+ */
1942
+ public businessControllerBusinessMe(options?: RawAxiosRequestConfig) {
1943
+ return BusinessApiFp(this.configuration).businessControllerBusinessMe(options).then((request) => request(this.axios, this.basePath));
1944
+ }
1945
+
1878
1946
  /**
1879
1947
  *
1880
1948
  * @param {BusinessOnBoardingDTO} businessOnBoardingDTO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.0.16-zeta",
3
+ "version": "1.0.17-beta",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},