@gooday_corp/gooday-api-client 1.2.74 → 1.2.76

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.
@@ -1 +1 @@
1
- 7.10.0
1
+ 7.11.0
package/api.ts CHANGED
@@ -2032,6 +2032,12 @@ export interface BusinessVenueDetailsEntity {
2032
2032
  * @memberof BusinessVenueDetailsEntity
2033
2033
  */
2034
2034
  'currentTime'?: BusinessTiming;
2035
+ /**
2036
+ *
2037
+ * @type {number}
2038
+ * @memberof BusinessVenueDetailsEntity
2039
+ */
2040
+ 'favoriteCount': number;
2035
2041
  }
2036
2042
  /**
2037
2043
  *
@@ -2450,6 +2456,12 @@ export interface CreateBookingPayload {
2450
2456
  * @memberof CreateBookingPayload
2451
2457
  */
2452
2458
  'venue': string;
2459
+ /**
2460
+ *
2461
+ * @type {string}
2462
+ * @memberof CreateBookingPayload
2463
+ */
2464
+ 'whatsOn'?: string;
2453
2465
  /**
2454
2466
  * The business associated with the booking
2455
2467
  * @type {string}
@@ -2528,12 +2540,6 @@ export interface CreateBookingPayload {
2528
2540
  * @memberof CreateBookingPayload
2529
2541
  */
2530
2542
  'paymentMethod': StripeSetupIntentPaymentResponse;
2531
- /**
2532
- *
2533
- * @type {Array<string>}
2534
- * @memberof CreateBookingPayload
2535
- */
2536
- 'whatsOn': Array<string>;
2537
2543
  }
2538
2544
  /**
2539
2545
  *
@@ -3413,13 +3419,13 @@ export const FindBookingPayloadViewEnum = {
3413
3419
 
3414
3420
  export type FindBookingPayloadViewEnum = typeof FindBookingPayloadViewEnum[keyof typeof FindBookingPayloadViewEnum];
3415
3421
  export const FindBookingPayloadStatusEnum = {
3416
- Booking: 'BOOKING',
3417
- Shared: 'SHARED',
3418
- Invites: 'INVITES',
3422
+ CheckedIn: 'CHECKED_IN',
3423
+ Confirmed: 'CONFIRMED',
3419
3424
  Unconfirmed: 'UNCONFIRMED',
3420
3425
  Rescheduled: 'RESCHEDULED',
3421
- Confirmed: 'CONFIRMED',
3422
- CheckIn: 'CHECK_IN'
3426
+ NoShow: 'NO_SHOW',
3427
+ Rejected: 'REJECTED',
3428
+ Cancelled: 'CANCELLED'
3423
3429
  } as const;
3424
3430
 
3425
3431
  export type FindBookingPayloadStatusEnum = typeof FindBookingPayloadStatusEnum[keyof typeof FindBookingPayloadStatusEnum];
@@ -5828,7 +5834,19 @@ export interface StripeSetupIntentPaymentPayloadDTO {
5828
5834
  * @type {Array<string>}
5829
5835
  * @memberof StripeSetupIntentPaymentPayloadDTO
5830
5836
  */
5831
- 'service': Array<string>;
5837
+ 'service'?: Array<string>;
5838
+ /**
5839
+ *
5840
+ * @type {string}
5841
+ * @memberof StripeSetupIntentPaymentPayloadDTO
5842
+ */
5843
+ 'eventId'?: string;
5844
+ /**
5845
+ *
5846
+ * @type {string}
5847
+ * @memberof StripeSetupIntentPaymentPayloadDTO
5848
+ */
5849
+ 'discountId'?: string;
5832
5850
  }
5833
5851
  /**
5834
5852
  *
@@ -7068,6 +7086,12 @@ export interface WhatsDiscountCodeResponseDTO {
7068
7086
  * @memberof WhatsDiscountCodeResponseDTO
7069
7087
  */
7070
7088
  'statusCode': number;
7089
+ /**
7090
+ *
7091
+ * @type {WhatsOnEntity}
7092
+ * @memberof WhatsDiscountCodeResponseDTO
7093
+ */
7094
+ 'data': WhatsOnEntity;
7071
7095
  }
7072
7096
  /**
7073
7097
  *
@@ -13229,10 +13253,11 @@ export const FriendsApiAxiosParamCreator = function (configuration?: Configurati
13229
13253
  * @param {number} pageSize
13230
13254
  * @param {string} [search]
13231
13255
  * @param {string} [calendar]
13256
+ * @param {string} [user]
13232
13257
  * @param {*} [options] Override http request option.
13233
13258
  * @throws {RequiredError}
13234
13259
  */
13235
- friendControllerListMyFriends: async (page: number, pageSize: number, search?: string, calendar?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13260
+ friendControllerListMyFriends: async (page: number, pageSize: number, search?: string, calendar?: string, user?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13236
13261
  // verify required parameter 'page' is not null or undefined
13237
13262
  assertParamExists('friendControllerListMyFriends', 'page', page)
13238
13263
  // verify required parameter 'pageSize' is not null or undefined
@@ -13269,6 +13294,10 @@ export const FriendsApiAxiosParamCreator = function (configuration?: Configurati
13269
13294
  localVarQueryParameter['calendar'] = calendar;
13270
13295
  }
13271
13296
 
13297
+ if (user !== undefined) {
13298
+ localVarQueryParameter['user'] = user;
13299
+ }
13300
+
13272
13301
 
13273
13302
 
13274
13303
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -13457,11 +13486,12 @@ export const FriendsApiFp = function(configuration?: Configuration) {
13457
13486
  * @param {number} pageSize
13458
13487
  * @param {string} [search]
13459
13488
  * @param {string} [calendar]
13489
+ * @param {string} [user]
13460
13490
  * @param {*} [options] Override http request option.
13461
13491
  * @throws {RequiredError}
13462
13492
  */
13463
- async friendControllerListMyFriends(page: number, pageSize: number, search?: string, calendar?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsDTO>> {
13464
- const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerListMyFriends(page, pageSize, search, calendar, options);
13493
+ async friendControllerListMyFriends(page: number, pageSize: number, search?: string, calendar?: string, user?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsDTO>> {
13494
+ const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerListMyFriends(page, pageSize, search, calendar, user, options);
13465
13495
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13466
13496
  const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerListMyFriends']?.[localVarOperationServerIndex]?.url;
13467
13497
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -13555,11 +13585,12 @@ export const FriendsApiFactory = function (configuration?: Configuration, basePa
13555
13585
  * @param {number} pageSize
13556
13586
  * @param {string} [search]
13557
13587
  * @param {string} [calendar]
13588
+ * @param {string} [user]
13558
13589
  * @param {*} [options] Override http request option.
13559
13590
  * @throws {RequiredError}
13560
13591
  */
13561
- friendControllerListMyFriends(page: number, pageSize: number, search?: string, calendar?: string, options?: RawAxiosRequestConfig): AxiosPromise<FriendsDTO> {
13562
- return localVarFp.friendControllerListMyFriends(page, pageSize, search, calendar, options).then((request) => request(axios, basePath));
13592
+ friendControllerListMyFriends(page: number, pageSize: number, search?: string, calendar?: string, user?: string, options?: RawAxiosRequestConfig): AxiosPromise<FriendsDTO> {
13593
+ return localVarFp.friendControllerListMyFriends(page, pageSize, search, calendar, user, options).then((request) => request(axios, basePath));
13563
13594
  },
13564
13595
  /**
13565
13596
  *
@@ -13649,12 +13680,13 @@ export class FriendsApi extends BaseAPI {
13649
13680
  * @param {number} pageSize
13650
13681
  * @param {string} [search]
13651
13682
  * @param {string} [calendar]
13683
+ * @param {string} [user]
13652
13684
  * @param {*} [options] Override http request option.
13653
13685
  * @throws {RequiredError}
13654
13686
  * @memberof FriendsApi
13655
13687
  */
13656
- public friendControllerListMyFriends(page: number, pageSize: number, search?: string, calendar?: string, options?: RawAxiosRequestConfig) {
13657
- return FriendsApiFp(this.configuration).friendControllerListMyFriends(page, pageSize, search, calendar, options).then((request) => request(this.axios, this.basePath));
13688
+ public friendControllerListMyFriends(page: number, pageSize: number, search?: string, calendar?: string, user?: string, options?: RawAxiosRequestConfig) {
13689
+ return FriendsApiFp(this.configuration).friendControllerListMyFriends(page, pageSize, search, calendar, user, options).then((request) => request(this.axios, this.basePath));
13658
13690
  }
13659
13691
 
13660
13692
  /**
package/configuration.ts CHANGED
@@ -89,7 +89,13 @@ export class Configuration {
89
89
  this.accessToken = param.accessToken;
90
90
  this.basePath = param.basePath;
91
91
  this.serverIndex = param.serverIndex;
92
- this.baseOptions = param.baseOptions;
92
+ this.baseOptions = {
93
+ headers: {
94
+ ...param.baseOptions?.headers,
95
+ 'User-Agent': "OpenAPI-Generator/typescript-axios"
96
+ },
97
+ ...param.baseOptions
98
+ };
93
99
  this.formDataCtor = param.formDataCtor;
94
100
  }
95
101
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.74",
3
+ "version": "1.2.76",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},