@gooday_corp/gooday-api-client 1.1.26 → 1.1.27

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 +163 -19
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -1893,6 +1893,12 @@ export interface UserEntity {
1893
1893
  * @memberof UserEntity
1894
1894
  */
1895
1895
  'business'?: BusinessEntity;
1896
+ /**
1897
+ * User permissions
1898
+ * @type {UserPermissionDTO}
1899
+ * @memberof UserEntity
1900
+ */
1901
+ 'permissions': UserPermissionDTO;
1896
1902
  /**
1897
1903
  * Action user has to perform
1898
1904
  * @type {Array<string>}
@@ -1927,6 +1933,67 @@ export interface UserMeDTO {
1927
1933
  */
1928
1934
  'data': UserEntity;
1929
1935
  }
1936
+ /**
1937
+ *
1938
+ * @export
1939
+ * @interface UserPermissionDTO
1940
+ */
1941
+ export interface UserPermissionDTO {
1942
+ /**
1943
+ * Specifies if the user has granted location access permission.
1944
+ * @type {boolean}
1945
+ * @memberof UserPermissionDTO
1946
+ */
1947
+ 'locationAccessPermission'?: boolean;
1948
+ /**
1949
+ * Specifies if the user has granted access to the device timezone.
1950
+ * @type {boolean}
1951
+ * @memberof UserPermissionDTO
1952
+ */
1953
+ 'deviceTimezone'?: boolean;
1954
+ /**
1955
+ * Specifies if the user has granted permission for timezone settings.
1956
+ * @type {boolean}
1957
+ * @memberof UserPermissionDTO
1958
+ */
1959
+ 'timezone'?: boolean;
1960
+ /**
1961
+ * Specifies if the user has granted calendar access permission.
1962
+ * @type {boolean}
1963
+ * @memberof UserPermissionDTO
1964
+ */
1965
+ 'calendar'?: boolean;
1966
+ /**
1967
+ * Specifies if the user has granted access to tasks.
1968
+ * @type {boolean}
1969
+ * @memberof UserPermissionDTO
1970
+ */
1971
+ 'tasks'?: boolean;
1972
+ /**
1973
+ * Specifies if the user has granted access to reminders.
1974
+ * @type {boolean}
1975
+ * @memberof UserPermissionDTO
1976
+ */
1977
+ 'reminders'?: boolean;
1978
+ /**
1979
+ * Specifies if the user has granted access to the waitlist feature.
1980
+ * @type {boolean}
1981
+ * @memberof UserPermissionDTO
1982
+ */
1983
+ 'waitlist'?: boolean;
1984
+ /**
1985
+ * Specifies if the user has granted access to the booking feature.
1986
+ * @type {boolean}
1987
+ * @memberof UserPermissionDTO
1988
+ */
1989
+ 'booking'?: boolean;
1990
+ /**
1991
+ * Specifies if the user has granted access to the invites feature.
1992
+ * @type {boolean}
1993
+ * @memberof UserPermissionDTO
1994
+ */
1995
+ 'invites'?: boolean;
1996
+ }
1930
1997
  /**
1931
1998
  *
1932
1999
  * @export
@@ -1957,15 +2024,21 @@ export type UserPlanDTONameEnum = typeof UserPlanDTONameEnum[keyof typeof UserPl
1957
2024
  /**
1958
2025
  *
1959
2026
  * @export
1960
- * @interface UserSyncLocationDTO
2027
+ * @interface UserSyncDTO
1961
2028
  */
1962
- export interface UserSyncLocationDTO {
2029
+ export interface UserSyncDTO {
1963
2030
  /**
1964
2031
  * User location
1965
2032
  * @type {Array<number>}
1966
- * @memberof UserSyncLocationDTO
2033
+ * @memberof UserSyncDTO
1967
2034
  */
1968
2035
  'location': Array<number>;
2036
+ /**
2037
+ * Timezone
2038
+ * @type {string}
2039
+ * @memberof UserSyncDTO
2040
+ */
2041
+ 'timezone'?: string;
1969
2042
  }
1970
2043
  /**
1971
2044
  *
@@ -4892,14 +4965,14 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
4892
4965
  },
4893
4966
  /**
4894
4967
  *
4895
- * @param {UserSyncLocationDTO} userSyncLocationDTO
4968
+ * @param {UserSyncDTO} userSyncDTO
4896
4969
  * @param {*} [options] Override http request option.
4897
4970
  * @throws {RequiredError}
4898
4971
  */
4899
- usersControllerSyncUserLocation: async (userSyncLocationDTO: UserSyncLocationDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4900
- // verify required parameter 'userSyncLocationDTO' is not null or undefined
4901
- assertParamExists('usersControllerSyncUserLocation', 'userSyncLocationDTO', userSyncLocationDTO)
4902
- const localVarPath = `/v1/user/sync/user/location`;
4972
+ usersControllerSyncUserInfo: async (userSyncDTO: UserSyncDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4973
+ // verify required parameter 'userSyncDTO' is not null or undefined
4974
+ assertParamExists('usersControllerSyncUserInfo', 'userSyncDTO', userSyncDTO)
4975
+ const localVarPath = `/v1/user/sync-info`;
4903
4976
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4904
4977
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4905
4978
  let baseOptions;
@@ -4922,7 +4995,46 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
4922
4995
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4923
4996
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4924
4997
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4925
- localVarRequestOptions.data = serializeDataIfNeeded(userSyncLocationDTO, localVarRequestOptions, configuration)
4998
+ localVarRequestOptions.data = serializeDataIfNeeded(userSyncDTO, localVarRequestOptions, configuration)
4999
+
5000
+ return {
5001
+ url: toPathString(localVarUrlObj),
5002
+ options: localVarRequestOptions,
5003
+ };
5004
+ },
5005
+ /**
5006
+ *
5007
+ * @param {UserPermissionDTO} userPermissionDTO
5008
+ * @param {*} [options] Override http request option.
5009
+ * @throws {RequiredError}
5010
+ */
5011
+ usersControllerSyncUserPermissions: async (userPermissionDTO: UserPermissionDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5012
+ // verify required parameter 'userPermissionDTO' is not null or undefined
5013
+ assertParamExists('usersControllerSyncUserPermissions', 'userPermissionDTO', userPermissionDTO)
5014
+ const localVarPath = `/v1/user/permissions`;
5015
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5016
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5017
+ let baseOptions;
5018
+ if (configuration) {
5019
+ baseOptions = configuration.baseOptions;
5020
+ }
5021
+
5022
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
5023
+ const localVarHeaderParameter = {} as any;
5024
+ const localVarQueryParameter = {} as any;
5025
+
5026
+ // authentication bearer required
5027
+ // http bearer authentication required
5028
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5029
+
5030
+
5031
+
5032
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5033
+
5034
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5035
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5036
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5037
+ localVarRequestOptions.data = serializeDataIfNeeded(userPermissionDTO, localVarRequestOptions, configuration)
4926
5038
 
4927
5039
  return {
4928
5040
  url: toPathString(localVarUrlObj),
@@ -4964,14 +5076,26 @@ export const UsersApiFp = function(configuration?: Configuration) {
4964
5076
  },
4965
5077
  /**
4966
5078
  *
4967
- * @param {UserSyncLocationDTO} userSyncLocationDTO
5079
+ * @param {UserSyncDTO} userSyncDTO
5080
+ * @param {*} [options] Override http request option.
5081
+ * @throws {RequiredError}
5082
+ */
5083
+ async usersControllerSyncUserInfo(userSyncDTO: UserSyncDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnBoardingResponseDTO>> {
5084
+ const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerSyncUserInfo(userSyncDTO, options);
5085
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5086
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerSyncUserInfo']?.[localVarOperationServerIndex]?.url;
5087
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5088
+ },
5089
+ /**
5090
+ *
5091
+ * @param {UserPermissionDTO} userPermissionDTO
4968
5092
  * @param {*} [options] Override http request option.
4969
5093
  * @throws {RequiredError}
4970
5094
  */
4971
- async usersControllerSyncUserLocation(userSyncLocationDTO: UserSyncLocationDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnBoardingResponseDTO>> {
4972
- const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerSyncUserLocation(userSyncLocationDTO, options);
5095
+ async usersControllerSyncUserPermissions(userPermissionDTO: UserPermissionDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnBoardingResponseDTO>> {
5096
+ const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerSyncUserPermissions(userPermissionDTO, options);
4973
5097
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4974
- const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerSyncUserLocation']?.[localVarOperationServerIndex]?.url;
5098
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerSyncUserPermissions']?.[localVarOperationServerIndex]?.url;
4975
5099
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4976
5100
  },
4977
5101
  }
@@ -5003,12 +5127,21 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
5003
5127
  },
5004
5128
  /**
5005
5129
  *
5006
- * @param {UserSyncLocationDTO} userSyncLocationDTO
5130
+ * @param {UserSyncDTO} userSyncDTO
5007
5131
  * @param {*} [options] Override http request option.
5008
5132
  * @throws {RequiredError}
5009
5133
  */
5010
- usersControllerSyncUserLocation(userSyncLocationDTO: UserSyncLocationDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
5011
- return localVarFp.usersControllerSyncUserLocation(userSyncLocationDTO, options).then((request) => request(axios, basePath));
5134
+ usersControllerSyncUserInfo(userSyncDTO: UserSyncDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
5135
+ return localVarFp.usersControllerSyncUserInfo(userSyncDTO, options).then((request) => request(axios, basePath));
5136
+ },
5137
+ /**
5138
+ *
5139
+ * @param {UserPermissionDTO} userPermissionDTO
5140
+ * @param {*} [options] Override http request option.
5141
+ * @throws {RequiredError}
5142
+ */
5143
+ usersControllerSyncUserPermissions(userPermissionDTO: UserPermissionDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
5144
+ return localVarFp.usersControllerSyncUserPermissions(userPermissionDTO, options).then((request) => request(axios, basePath));
5012
5145
  },
5013
5146
  };
5014
5147
  };
@@ -5043,13 +5176,24 @@ export class UsersApi extends BaseAPI {
5043
5176
 
5044
5177
  /**
5045
5178
  *
5046
- * @param {UserSyncLocationDTO} userSyncLocationDTO
5179
+ * @param {UserSyncDTO} userSyncDTO
5180
+ * @param {*} [options] Override http request option.
5181
+ * @throws {RequiredError}
5182
+ * @memberof UsersApi
5183
+ */
5184
+ public usersControllerSyncUserInfo(userSyncDTO: UserSyncDTO, options?: RawAxiosRequestConfig) {
5185
+ return UsersApiFp(this.configuration).usersControllerSyncUserInfo(userSyncDTO, options).then((request) => request(this.axios, this.basePath));
5186
+ }
5187
+
5188
+ /**
5189
+ *
5190
+ * @param {UserPermissionDTO} userPermissionDTO
5047
5191
  * @param {*} [options] Override http request option.
5048
5192
  * @throws {RequiredError}
5049
5193
  * @memberof UsersApi
5050
5194
  */
5051
- public usersControllerSyncUserLocation(userSyncLocationDTO: UserSyncLocationDTO, options?: RawAxiosRequestConfig) {
5052
- return UsersApiFp(this.configuration).usersControllerSyncUserLocation(userSyncLocationDTO, options).then((request) => request(this.axios, this.basePath));
5195
+ public usersControllerSyncUserPermissions(userPermissionDTO: UserPermissionDTO, options?: RawAxiosRequestConfig) {
5196
+ return UsersApiFp(this.configuration).usersControllerSyncUserPermissions(userPermissionDTO, options).then((request) => request(this.axios, this.basePath));
5053
5197
  }
5054
5198
  }
5055
5199
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.26",
3
+ "version": "1.1.27",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},