@ahomevilla-hotel/node-sdk 1.3.0 → 1.3.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.
Files changed (2) hide show
  1. package/api.ts +57 -13
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -2087,6 +2087,52 @@ export const FilterUserDtoRolesEnum = {
2087
2087
 
2088
2088
  export type FilterUserDtoRolesEnum = typeof FilterUserDtoRolesEnum[keyof typeof FilterUserDtoRolesEnum];
2089
2089
 
2090
+ /**
2091
+ *
2092
+ * @export
2093
+ * @interface GetAnalyticsQueryDto
2094
+ */
2095
+ export interface GetAnalyticsQueryDto {
2096
+ /**
2097
+ * Branch ID to get analytics for
2098
+ * @type {string}
2099
+ * @memberof GetAnalyticsQueryDto
2100
+ */
2101
+ 'branchId'?: string;
2102
+ /**
2103
+ * Start date for analytics (YYYY-MM-DD)
2104
+ * @type {string}
2105
+ * @memberof GetAnalyticsQueryDto
2106
+ */
2107
+ 'startDate'?: string;
2108
+ /**
2109
+ * End date for analytics (YYYY-MM-DD)
2110
+ * @type {string}
2111
+ * @memberof GetAnalyticsQueryDto
2112
+ */
2113
+ 'endDate'?: string;
2114
+ /**
2115
+ * Period type for analytics
2116
+ * @type {string}
2117
+ * @memberof GetAnalyticsQueryDto
2118
+ */
2119
+ 'periodType'?: GetAnalyticsQueryDtoPeriodTypeEnum;
2120
+ /**
2121
+ * Number of months to analyze
2122
+ * @type {number}
2123
+ * @memberof GetAnalyticsQueryDto
2124
+ */
2125
+ 'months'?: number;
2126
+ }
2127
+
2128
+ export const GetAnalyticsQueryDtoPeriodTypeEnum = {
2129
+ Daily: 'DAILY',
2130
+ Monthly: 'MONTHLY',
2131
+ Yearly: 'YEARLY'
2132
+ } as const;
2133
+
2134
+ export type GetAnalyticsQueryDtoPeriodTypeEnum = typeof GetAnalyticsQueryDtoPeriodTypeEnum[keyof typeof GetAnalyticsQueryDtoPeriodTypeEnum];
2135
+
2090
2136
  /**
2091
2137
  *
2092
2138
  * @export
@@ -2688,10 +2734,10 @@ export interface QueryMyBookingsDto {
2688
2734
  'pageSize'?: number;
2689
2735
  /**
2690
2736
  * Filter my bookings
2691
- * @type {FilterMyBookingsDto}
2737
+ * @type {string}
2692
2738
  * @memberof QueryMyBookingsDto
2693
2739
  */
2694
- 'filters'?: FilterMyBookingsDto;
2740
+ 'filters'?: string;
2695
2741
  }
2696
2742
  /**
2697
2743
  *
@@ -6869,11 +6915,11 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
6869
6915
  * @summary Get all my bookings with pagination and filters
6870
6916
  * @param {number} [page]
6871
6917
  * @param {number} [pageSize]
6872
- * @param {FilterMyBookingsDto} [filters] Filter my bookings
6918
+ * @param {string} [filters] Filter my bookings
6873
6919
  * @param {*} [options] Override http request option.
6874
6920
  * @throws {RequiredError}
6875
6921
  */
6876
- bookingControllerGetMyBookings: async (page?: number, pageSize?: number, filters?: FilterMyBookingsDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6922
+ bookingControllerGetMyBookings: async (page?: number, pageSize?: number, filters?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6877
6923
  const localVarPath = `/api/booking/my-bookings`;
6878
6924
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6879
6925
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6895,9 +6941,7 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
6895
6941
  }
6896
6942
 
6897
6943
  if (filters !== undefined) {
6898
- for (const [key, value] of Object.entries(filters)) {
6899
- localVarQueryParameter[key] = value;
6900
- }
6944
+ localVarQueryParameter['filters'] = filters;
6901
6945
  }
6902
6946
 
6903
6947
 
@@ -7065,11 +7109,11 @@ export const BookingApiFp = function(configuration?: Configuration) {
7065
7109
  * @summary Get all my bookings with pagination and filters
7066
7110
  * @param {number} [page]
7067
7111
  * @param {number} [pageSize]
7068
- * @param {FilterMyBookingsDto} [filters] Filter my bookings
7112
+ * @param {string} [filters] Filter my bookings
7069
7113
  * @param {*} [options] Override http request option.
7070
7114
  * @throws {RequiredError}
7071
7115
  */
7072
- async bookingControllerGetMyBookings(page?: number, pageSize?: number, filters?: FilterMyBookingsDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsPaginationResultDto>> {
7116
+ async bookingControllerGetMyBookings(page?: number, pageSize?: number, filters?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsPaginationResultDto>> {
7073
7117
  const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerGetMyBookings(page, pageSize, filters, options);
7074
7118
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7075
7119
  const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerGetMyBookings']?.[localVarOperationServerIndex]?.url;
@@ -7170,11 +7214,11 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
7170
7214
  * @summary Get all my bookings with pagination and filters
7171
7215
  * @param {number} [page]
7172
7216
  * @param {number} [pageSize]
7173
- * @param {FilterMyBookingsDto} [filters] Filter my bookings
7217
+ * @param {string} [filters] Filter my bookings
7174
7218
  * @param {*} [options] Override http request option.
7175
7219
  * @throws {RequiredError}
7176
7220
  */
7177
- bookingControllerGetMyBookings(page?: number, pageSize?: number, filters?: FilterMyBookingsDto, options?: RawAxiosRequestConfig): AxiosPromise<BookingsPaginationResultDto> {
7221
+ bookingControllerGetMyBookings(page?: number, pageSize?: number, filters?: string, options?: RawAxiosRequestConfig): AxiosPromise<BookingsPaginationResultDto> {
7178
7222
  return localVarFp.bookingControllerGetMyBookings(page, pageSize, filters, options).then((request) => request(axios, basePath));
7179
7223
  },
7180
7224
  /**
@@ -7276,12 +7320,12 @@ export class BookingApi extends BaseAPI {
7276
7320
  * @summary Get all my bookings with pagination and filters
7277
7321
  * @param {number} [page]
7278
7322
  * @param {number} [pageSize]
7279
- * @param {FilterMyBookingsDto} [filters] Filter my bookings
7323
+ * @param {string} [filters] Filter my bookings
7280
7324
  * @param {*} [options] Override http request option.
7281
7325
  * @throws {RequiredError}
7282
7326
  * @memberof BookingApi
7283
7327
  */
7284
- public bookingControllerGetMyBookings(page?: number, pageSize?: number, filters?: FilterMyBookingsDto, options?: RawAxiosRequestConfig) {
7328
+ public bookingControllerGetMyBookings(page?: number, pageSize?: number, filters?: string, options?: RawAxiosRequestConfig) {
7285
7329
  return BookingApiFp(this.configuration).bookingControllerGetMyBookings(page, pageSize, filters, options).then((request) => request(this.axios, this.basePath));
7286
7330
  }
7287
7331
 
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "openapi-client",
11
11
  "openapi-generator"
12
12
  ],
13
- "version": "1.3.0",
13
+ "version": "1.3.2",
14
14
  "main": "index.js",
15
15
  "scripts": {
16
16
  "test": "echo \"Error: no test specified\" && exit 1"