@revolugo/common 7.2.2-alpha.15 → 7.2.2-alpha.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revolugo/common",
3
- "version": "7.2.2-alpha.15",
3
+ "version": "7.2.2-alpha.17",
4
4
  "private": false,
5
5
  "description": "Revolugo common",
6
6
  "author": "Revolugo",
@@ -127,18 +127,16 @@ export interface HotelRoomOfferRequestResponse {
127
127
  sourceMarket: SourceMarket
128
128
  }
129
129
 
130
- // eslint-disable-next-line no-restricted-syntax
131
- export type HotelRoomOfferRequestCreate = Pick<
132
- HotelRoomOfferRequest,
133
- | 'adultCount'
134
- | 'checkInDate'
135
- | 'checkOutDate'
136
- | 'children'
137
- | 'eventMetadata'
138
- | 'hotelId'
139
- | 'roomCount'
140
- | 'sourceMarket'
141
- >
130
+ export interface HotelRoomOfferRequestCreate {
131
+ adultCount: HotelRoomOfferRequest['adultCount']
132
+ checkInDate: HotelRoomOfferRequest['checkInDate']
133
+ checkOutDate: HotelRoomOfferRequest['checkOutDate']
134
+ children?: HotelRoomOfferRequest['children']
135
+ eventMetadata?: HotelRoomOfferRequest['eventMetadata']
136
+ hotelId: HotelRoomOfferRequest['hotelId']
137
+ roomCount: HotelRoomOfferRequest['roomCount']
138
+ sourceMarket: HotelRoomOfferRequest['sourceMarket']
139
+ }
142
140
  export interface HotelRoomOfferRequestsCreatePayload {
143
141
  hotelRoomOfferRequestCreateApi?: HotelRoomOfferRequestCreate
144
142
  }
package/src/utils/omit.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  * Accepts a single key or an array of keys. Symbol keys are supported.
4
4
  * If `object` is nullish, returns an empty object.
5
5
  */
6
+ // eslint-disable-next-line no-restricted-syntax
6
7
  export function omit<T extends object, K extends keyof T>(
7
8
  object: T | null | undefined,
8
9
  keys: readonly K[] | K,
package/src/utils/pick.ts CHANGED
@@ -1,3 +1,4 @@
1
+ // eslint-disable-next-line no-restricted-syntax
1
2
  export function pick<T extends object, K extends keyof T>(
2
3
  obj: T,
3
4
  keys: readonly K[],
@@ -3,6 +3,7 @@
3
3
  * object. Optional second argument shakes out values
4
4
  * by custom evaluation.
5
5
  */
6
+ // eslint-disable-next-line no-restricted-syntax
6
7
  export function shake<RemovedKeys extends string, T>(
7
8
  obj: T,
8
9
  // eslint-disable-next-line @typescript-eslint/no-explicit-any