@unified-api/typescript-sdk 2.83.25 → 2.83.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.
- package/README.md +14 -0
- package/dist/commonjs/funcs/commerceCreateCommerceReservation.d.ts +15 -0
- package/dist/commonjs/funcs/commerceCreateCommerceReservation.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerceCreateCommerceReservation.js +124 -0
- package/dist/commonjs/funcs/commerceCreateCommerceReservation.js.map +1 -0
- package/dist/commonjs/funcs/commerceGetCommerceReservation.d.ts +15 -0
- package/dist/commonjs/funcs/commerceGetCommerceReservation.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerceGetCommerceReservation.js +125 -0
- package/dist/commonjs/funcs/commerceGetCommerceReservation.js.map +1 -0
- package/dist/commonjs/funcs/commerceListCommerceAvailabilities.d.ts +15 -0
- package/dist/commonjs/funcs/commerceListCommerceAvailabilities.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerceListCommerceAvailabilities.js +134 -0
- package/dist/commonjs/funcs/commerceListCommerceAvailabilities.js.map +1 -0
- package/dist/commonjs/funcs/commerceListCommerceReservations.d.ts +15 -0
- package/dist/commonjs/funcs/commerceListCommerceReservations.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerceListCommerceReservations.js +133 -0
- package/dist/commonjs/funcs/commerceListCommerceReservations.js.map +1 -0
- package/dist/commonjs/funcs/commerceListCommerceReviews.js +1 -0
- package/dist/commonjs/funcs/commerceListCommerceReviews.js.map +1 -1
- package/dist/commonjs/funcs/commercePatchCommerceReservation.d.ts +15 -0
- package/dist/commonjs/funcs/commercePatchCommerceReservation.d.ts.map +1 -0
- package/dist/commonjs/funcs/commercePatchCommerceReservation.js +128 -0
- package/dist/commonjs/funcs/commercePatchCommerceReservation.js.map +1 -0
- package/dist/commonjs/funcs/commerceRemoveCommerceReservation.d.ts +14 -0
- package/dist/commonjs/funcs/commerceRemoveCommerceReservation.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerceRemoveCommerceReservation.js +122 -0
- package/dist/commonjs/funcs/commerceRemoveCommerceReservation.js.map +1 -0
- package/dist/commonjs/funcs/commerceUpdateCommerceReservation.d.ts +15 -0
- package/dist/commonjs/funcs/commerceUpdateCommerceReservation.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerceUpdateCommerceReservation.js +128 -0
- package/dist/commonjs/funcs/commerceUpdateCommerceReservation.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +20 -5
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/sdk/availability.d.ts +10 -0
- package/dist/commonjs/sdk/availability.d.ts.map +1 -0
- package/dist/commonjs/sdk/availability.js +19 -0
- package/dist/commonjs/sdk/availability.js.map +1 -0
- package/dist/commonjs/sdk/commerce.d.ts +28 -0
- package/dist/commonjs/sdk/commerce.d.ts.map +1 -1
- package/dist/commonjs/sdk/commerce.js +49 -0
- package/dist/commonjs/sdk/commerce.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/createcommerceitem.d.ts +10 -8
- package/dist/commonjs/sdk/models/operations/createcommerceitem.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/createcommerceitem.js +10 -8
- package/dist/commonjs/sdk/models/operations/createcommerceitem.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/createcommercelocation.d.ts +11 -0
- package/dist/commonjs/sdk/models/operations/createcommercelocation.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/createcommercelocation.js +11 -0
- package/dist/commonjs/sdk/models/operations/createcommercelocation.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/createcommercereservation.d.ts +52 -0
- package/dist/commonjs/sdk/models/operations/createcommercereservation.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/createcommercereservation.js +83 -0
- package/dist/commonjs/sdk/models/operations/createcommercereservation.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/createcommercereview.d.ts +2 -0
- package/dist/commonjs/sdk/models/operations/createcommercereview.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/createcommercereview.js +2 -0
- package/dist/commonjs/sdk/models/operations/createcommercereview.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/createucrecording.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/createucrecording.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/createucrecording.js +2 -1
- package/dist/commonjs/sdk/models/operations/createucrecording.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getcommerceitem.d.ts +10 -8
- package/dist/commonjs/sdk/models/operations/getcommerceitem.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getcommerceitem.js +10 -8
- package/dist/commonjs/sdk/models/operations/getcommerceitem.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getcommercelocation.d.ts +11 -0
- package/dist/commonjs/sdk/models/operations/getcommercelocation.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getcommercelocation.js +11 -0
- package/dist/commonjs/sdk/models/operations/getcommercelocation.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getcommercereservation.d.ts +54 -0
- package/dist/commonjs/sdk/models/operations/getcommercereservation.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getcommercereservation.js +80 -0
- package/dist/commonjs/sdk/models/operations/getcommercereservation.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getcommercereview.d.ts +2 -0
- package/dist/commonjs/sdk/models/operations/getcommercereview.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getcommercereview.js +2 -0
- package/dist/commonjs/sdk/models/operations/getcommercereview.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getuccall.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/getuccall.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getuccall.js +2 -1
- package/dist/commonjs/sdk/models/operations/getuccall.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getucrecording.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/getucrecording.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getucrecording.js +2 -1
- package/dist/commonjs/sdk/models/operations/getucrecording.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/index.d.ts +7 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/index.js +7 -0
- package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listcommerceavailabilities.d.ts +86 -0
- package/dist/commonjs/sdk/models/operations/listcommerceavailabilities.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/listcommerceavailabilities.js +87 -0
- package/dist/commonjs/sdk/models/operations/listcommerceavailabilities.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/listcommerceitems.d.ts +10 -8
- package/dist/commonjs/sdk/models/operations/listcommerceitems.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listcommerceitems.js +10 -8
- package/dist/commonjs/sdk/models/operations/listcommerceitems.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listcommercelocations.d.ts +11 -0
- package/dist/commonjs/sdk/models/operations/listcommercelocations.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listcommercelocations.js +11 -0
- package/dist/commonjs/sdk/models/operations/listcommercelocations.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listcommercereservations.d.ts +92 -0
- package/dist/commonjs/sdk/models/operations/listcommercereservations.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/listcommercereservations.js +97 -0
- package/dist/commonjs/sdk/models/operations/listcommercereservations.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/listcommercereviews.d.ts +7 -0
- package/dist/commonjs/sdk/models/operations/listcommercereviews.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listcommercereviews.js +4 -0
- package/dist/commonjs/sdk/models/operations/listcommercereviews.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listuccalls.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/listuccalls.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listuccalls.js +2 -1
- package/dist/commonjs/sdk/models/operations/listuccalls.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listucrecordings.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/listucrecordings.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listucrecordings.js +2 -1
- package/dist/commonjs/sdk/models/operations/listucrecordings.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchcommerceitem.d.ts +10 -8
- package/dist/commonjs/sdk/models/operations/patchcommerceitem.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchcommerceitem.js +10 -8
- package/dist/commonjs/sdk/models/operations/patchcommerceitem.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchcommercelocation.d.ts +11 -0
- package/dist/commonjs/sdk/models/operations/patchcommercelocation.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchcommercelocation.js +11 -0
- package/dist/commonjs/sdk/models/operations/patchcommercelocation.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchcommercereservation.d.ts +57 -0
- package/dist/commonjs/sdk/models/operations/patchcommercereservation.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/patchcommercereservation.js +84 -0
- package/dist/commonjs/sdk/models/operations/patchcommercereservation.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/patchcommercereview.d.ts +2 -0
- package/dist/commonjs/sdk/models/operations/patchcommercereview.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchcommercereview.js +2 -0
- package/dist/commonjs/sdk/models/operations/patchcommercereview.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchucrecording.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/patchucrecording.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchucrecording.js +2 -1
- package/dist/commonjs/sdk/models/operations/patchucrecording.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/removecommercereservation.d.ts +30 -0
- package/dist/commonjs/sdk/models/operations/removecommercereservation.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/removecommercereservation.js +68 -0
- package/dist/commonjs/sdk/models/operations/removecommercereservation.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/updatecommerceitem.d.ts +10 -8
- package/dist/commonjs/sdk/models/operations/updatecommerceitem.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/updatecommerceitem.js +10 -8
- package/dist/commonjs/sdk/models/operations/updatecommerceitem.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/updatecommercelocation.d.ts +11 -0
- package/dist/commonjs/sdk/models/operations/updatecommercelocation.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/updatecommercelocation.js +11 -0
- package/dist/commonjs/sdk/models/operations/updatecommercelocation.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/updatecommercereservation.d.ts +57 -0
- package/dist/commonjs/sdk/models/operations/updatecommercereservation.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/updatecommercereservation.js +84 -0
- package/dist/commonjs/sdk/models/operations/updatecommercereservation.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/updatecommercereview.d.ts +2 -0
- package/dist/commonjs/sdk/models/operations/updatecommercereview.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/updatecommercereview.js +2 -0
- package/dist/commonjs/sdk/models/operations/updatecommercereview.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/updateucrecording.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/updateucrecording.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/updateucrecording.js +2 -1
- package/dist/commonjs/sdk/models/operations/updateucrecording.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/commerceavailability.d.ts +18 -0
- package/dist/commonjs/sdk/models/shared/commerceavailability.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/commerceavailability.js +67 -0
- package/dist/commonjs/sdk/models/shared/commerceavailability.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/commerceitem.d.ts +4 -0
- package/dist/commonjs/sdk/models/shared/commerceitem.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/commerceitem.js +6 -0
- package/dist/commonjs/sdk/models/shared/commerceitem.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/commercelocation.d.ts +37 -0
- package/dist/commonjs/sdk/models/shared/commercelocation.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/commercelocation.js +47 -1
- package/dist/commonjs/sdk/models/shared/commercelocation.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/commercereservation.d.ts +68 -0
- package/dist/commonjs/sdk/models/shared/commercereservation.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/commercereservation.js +139 -0
- package/dist/commonjs/sdk/models/shared/commercereservation.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/commercereview.d.ts +4 -0
- package/dist/commonjs/sdk/models/shared/commercereview.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/commercereview.js +6 -0
- package/dist/commonjs/sdk/models/shared/commercereview.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/commercetelephone.d.ts +32 -0
- package/dist/commonjs/sdk/models/shared/commercetelephone.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/commercetelephone.js +72 -0
- package/dist/commonjs/sdk/models/shared/commercetelephone.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts +3 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +3 -0
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/integrationsupport.d.ts +18 -0
- package/dist/commonjs/sdk/models/shared/integrationsupport.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/integrationsupport.js +24 -6
- package/dist/commonjs/sdk/models/shared/integrationsupport.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.d.ts +4 -0
- package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.js +4 -0
- package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/uccall.d.ts +9 -0
- package/dist/commonjs/sdk/models/shared/uccall.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/uccall.js +9 -1
- package/dist/commonjs/sdk/models/shared/uccall.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/ucrecording.d.ts +12 -0
- package/dist/commonjs/sdk/models/shared/ucrecording.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/ucrecording.js +12 -1
- package/dist/commonjs/sdk/models/shared/ucrecording.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/webhook.d.ts +2 -0
- package/dist/commonjs/sdk/models/shared/webhook.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/webhook.js +2 -0
- package/dist/commonjs/sdk/models/shared/webhook.js.map +1 -1
- package/dist/commonjs/sdk/reservation.d.ts +30 -0
- package/dist/commonjs/sdk/reservation.d.ts.map +1 -0
- package/dist/commonjs/sdk/reservation.js +54 -0
- package/dist/commonjs/sdk/reservation.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +6 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +8 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/commerceCreateCommerceReservation.d.ts +15 -0
- package/dist/esm/funcs/commerceCreateCommerceReservation.d.ts.map +1 -0
- package/dist/esm/funcs/commerceCreateCommerceReservation.js +88 -0
- package/dist/esm/funcs/commerceCreateCommerceReservation.js.map +1 -0
- package/dist/esm/funcs/commerceGetCommerceReservation.d.ts +15 -0
- package/dist/esm/funcs/commerceGetCommerceReservation.d.ts.map +1 -0
- package/dist/esm/funcs/commerceGetCommerceReservation.js +89 -0
- package/dist/esm/funcs/commerceGetCommerceReservation.js.map +1 -0
- package/dist/esm/funcs/commerceListCommerceAvailabilities.d.ts +15 -0
- package/dist/esm/funcs/commerceListCommerceAvailabilities.d.ts.map +1 -0
- package/dist/esm/funcs/commerceListCommerceAvailabilities.js +98 -0
- package/dist/esm/funcs/commerceListCommerceAvailabilities.js.map +1 -0
- package/dist/esm/funcs/commerceListCommerceReservations.d.ts +15 -0
- package/dist/esm/funcs/commerceListCommerceReservations.d.ts.map +1 -0
- package/dist/esm/funcs/commerceListCommerceReservations.js +97 -0
- package/dist/esm/funcs/commerceListCommerceReservations.js.map +1 -0
- package/dist/esm/funcs/commerceListCommerceReviews.js +1 -0
- package/dist/esm/funcs/commerceListCommerceReviews.js.map +1 -1
- package/dist/esm/funcs/commercePatchCommerceReservation.d.ts +15 -0
- package/dist/esm/funcs/commercePatchCommerceReservation.d.ts.map +1 -0
- package/dist/esm/funcs/commercePatchCommerceReservation.js +92 -0
- package/dist/esm/funcs/commercePatchCommerceReservation.js.map +1 -0
- package/dist/esm/funcs/commerceRemoveCommerceReservation.d.ts +14 -0
- package/dist/esm/funcs/commerceRemoveCommerceReservation.d.ts.map +1 -0
- package/dist/esm/funcs/commerceRemoveCommerceReservation.js +86 -0
- package/dist/esm/funcs/commerceRemoveCommerceReservation.js.map +1 -0
- package/dist/esm/funcs/commerceUpdateCommerceReservation.d.ts +15 -0
- package/dist/esm/funcs/commerceUpdateCommerceReservation.d.ts.map +1 -0
- package/dist/esm/funcs/commerceUpdateCommerceReservation.js +92 -0
- package/dist/esm/funcs/commerceUpdateCommerceReservation.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +20 -5
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/sdk/availability.d.ts +10 -0
- package/dist/esm/sdk/availability.d.ts.map +1 -0
- package/dist/esm/sdk/availability.js +15 -0
- package/dist/esm/sdk/availability.js.map +1 -0
- package/dist/esm/sdk/commerce.d.ts +28 -0
- package/dist/esm/sdk/commerce.d.ts.map +1 -1
- package/dist/esm/sdk/commerce.js +49 -0
- package/dist/esm/sdk/commerce.js.map +1 -1
- package/dist/esm/sdk/models/operations/createcommerceitem.d.ts +10 -8
- package/dist/esm/sdk/models/operations/createcommerceitem.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/createcommerceitem.js +10 -8
- package/dist/esm/sdk/models/operations/createcommerceitem.js.map +1 -1
- package/dist/esm/sdk/models/operations/createcommercelocation.d.ts +11 -0
- package/dist/esm/sdk/models/operations/createcommercelocation.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/createcommercelocation.js +11 -0
- package/dist/esm/sdk/models/operations/createcommercelocation.js.map +1 -1
- package/dist/esm/sdk/models/operations/createcommercereservation.d.ts +52 -0
- package/dist/esm/sdk/models/operations/createcommercereservation.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/createcommercereservation.js +46 -0
- package/dist/esm/sdk/models/operations/createcommercereservation.js.map +1 -0
- package/dist/esm/sdk/models/operations/createcommercereview.d.ts +2 -0
- package/dist/esm/sdk/models/operations/createcommercereview.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/createcommercereview.js +2 -0
- package/dist/esm/sdk/models/operations/createcommercereview.js.map +1 -1
- package/dist/esm/sdk/models/operations/createucrecording.d.ts +2 -1
- package/dist/esm/sdk/models/operations/createucrecording.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/createucrecording.js +2 -1
- package/dist/esm/sdk/models/operations/createucrecording.js.map +1 -1
- package/dist/esm/sdk/models/operations/getcommerceitem.d.ts +10 -8
- package/dist/esm/sdk/models/operations/getcommerceitem.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getcommerceitem.js +10 -8
- package/dist/esm/sdk/models/operations/getcommerceitem.js.map +1 -1
- package/dist/esm/sdk/models/operations/getcommercelocation.d.ts +11 -0
- package/dist/esm/sdk/models/operations/getcommercelocation.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getcommercelocation.js +11 -0
- package/dist/esm/sdk/models/operations/getcommercelocation.js.map +1 -1
- package/dist/esm/sdk/models/operations/getcommercereservation.d.ts +54 -0
- package/dist/esm/sdk/models/operations/getcommercereservation.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getcommercereservation.js +43 -0
- package/dist/esm/sdk/models/operations/getcommercereservation.js.map +1 -0
- package/dist/esm/sdk/models/operations/getcommercereview.d.ts +2 -0
- package/dist/esm/sdk/models/operations/getcommercereview.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getcommercereview.js +2 -0
- package/dist/esm/sdk/models/operations/getcommercereview.js.map +1 -1
- package/dist/esm/sdk/models/operations/getuccall.d.ts +2 -1
- package/dist/esm/sdk/models/operations/getuccall.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getuccall.js +2 -1
- package/dist/esm/sdk/models/operations/getuccall.js.map +1 -1
- package/dist/esm/sdk/models/operations/getucrecording.d.ts +2 -1
- package/dist/esm/sdk/models/operations/getucrecording.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getucrecording.js +2 -1
- package/dist/esm/sdk/models/operations/getucrecording.js.map +1 -1
- package/dist/esm/sdk/models/operations/index.d.ts +7 -0
- package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/index.js +7 -0
- package/dist/esm/sdk/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/models/operations/listcommerceavailabilities.d.ts +86 -0
- package/dist/esm/sdk/models/operations/listcommerceavailabilities.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/listcommerceavailabilities.js +50 -0
- package/dist/esm/sdk/models/operations/listcommerceavailabilities.js.map +1 -0
- package/dist/esm/sdk/models/operations/listcommerceitems.d.ts +10 -8
- package/dist/esm/sdk/models/operations/listcommerceitems.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listcommerceitems.js +10 -8
- package/dist/esm/sdk/models/operations/listcommerceitems.js.map +1 -1
- package/dist/esm/sdk/models/operations/listcommercelocations.d.ts +11 -0
- package/dist/esm/sdk/models/operations/listcommercelocations.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listcommercelocations.js +11 -0
- package/dist/esm/sdk/models/operations/listcommercelocations.js.map +1 -1
- package/dist/esm/sdk/models/operations/listcommercereservations.d.ts +92 -0
- package/dist/esm/sdk/models/operations/listcommercereservations.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/listcommercereservations.js +60 -0
- package/dist/esm/sdk/models/operations/listcommercereservations.js.map +1 -0
- package/dist/esm/sdk/models/operations/listcommercereviews.d.ts +7 -0
- package/dist/esm/sdk/models/operations/listcommercereviews.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listcommercereviews.js +4 -0
- package/dist/esm/sdk/models/operations/listcommercereviews.js.map +1 -1
- package/dist/esm/sdk/models/operations/listuccalls.d.ts +2 -1
- package/dist/esm/sdk/models/operations/listuccalls.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listuccalls.js +2 -1
- package/dist/esm/sdk/models/operations/listuccalls.js.map +1 -1
- package/dist/esm/sdk/models/operations/listucrecordings.d.ts +2 -1
- package/dist/esm/sdk/models/operations/listucrecordings.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listucrecordings.js +2 -1
- package/dist/esm/sdk/models/operations/listucrecordings.js.map +1 -1
- package/dist/esm/sdk/models/operations/patchcommerceitem.d.ts +10 -8
- package/dist/esm/sdk/models/operations/patchcommerceitem.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/patchcommerceitem.js +10 -8
- package/dist/esm/sdk/models/operations/patchcommerceitem.js.map +1 -1
- package/dist/esm/sdk/models/operations/patchcommercelocation.d.ts +11 -0
- package/dist/esm/sdk/models/operations/patchcommercelocation.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/patchcommercelocation.js +11 -0
- package/dist/esm/sdk/models/operations/patchcommercelocation.js.map +1 -1
- package/dist/esm/sdk/models/operations/patchcommercereservation.d.ts +57 -0
- package/dist/esm/sdk/models/operations/patchcommercereservation.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/patchcommercereservation.js +47 -0
- package/dist/esm/sdk/models/operations/patchcommercereservation.js.map +1 -0
- package/dist/esm/sdk/models/operations/patchcommercereview.d.ts +2 -0
- package/dist/esm/sdk/models/operations/patchcommercereview.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/patchcommercereview.js +2 -0
- package/dist/esm/sdk/models/operations/patchcommercereview.js.map +1 -1
- package/dist/esm/sdk/models/operations/patchucrecording.d.ts +2 -1
- package/dist/esm/sdk/models/operations/patchucrecording.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/patchucrecording.js +2 -1
- package/dist/esm/sdk/models/operations/patchucrecording.js.map +1 -1
- package/dist/esm/sdk/models/operations/removecommercereservation.d.ts +30 -0
- package/dist/esm/sdk/models/operations/removecommercereservation.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/removecommercereservation.js +30 -0
- package/dist/esm/sdk/models/operations/removecommercereservation.js.map +1 -0
- package/dist/esm/sdk/models/operations/updatecommerceitem.d.ts +10 -8
- package/dist/esm/sdk/models/operations/updatecommerceitem.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/updatecommerceitem.js +10 -8
- package/dist/esm/sdk/models/operations/updatecommerceitem.js.map +1 -1
- package/dist/esm/sdk/models/operations/updatecommercelocation.d.ts +11 -0
- package/dist/esm/sdk/models/operations/updatecommercelocation.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/updatecommercelocation.js +11 -0
- package/dist/esm/sdk/models/operations/updatecommercelocation.js.map +1 -1
- package/dist/esm/sdk/models/operations/updatecommercereservation.d.ts +57 -0
- package/dist/esm/sdk/models/operations/updatecommercereservation.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/updatecommercereservation.js +47 -0
- package/dist/esm/sdk/models/operations/updatecommercereservation.js.map +1 -0
- package/dist/esm/sdk/models/operations/updatecommercereview.d.ts +2 -0
- package/dist/esm/sdk/models/operations/updatecommercereview.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/updatecommercereview.js +2 -0
- package/dist/esm/sdk/models/operations/updatecommercereview.js.map +1 -1
- package/dist/esm/sdk/models/operations/updateucrecording.d.ts +2 -1
- package/dist/esm/sdk/models/operations/updateucrecording.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/updateucrecording.js +2 -1
- package/dist/esm/sdk/models/operations/updateucrecording.js.map +1 -1
- package/dist/esm/sdk/models/shared/commerceavailability.d.ts +18 -0
- package/dist/esm/sdk/models/shared/commerceavailability.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/commerceavailability.js +30 -0
- package/dist/esm/sdk/models/shared/commerceavailability.js.map +1 -0
- package/dist/esm/sdk/models/shared/commerceitem.d.ts +4 -0
- package/dist/esm/sdk/models/shared/commerceitem.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/commerceitem.js +6 -0
- package/dist/esm/sdk/models/shared/commerceitem.js.map +1 -1
- package/dist/esm/sdk/models/shared/commercelocation.d.ts +37 -0
- package/dist/esm/sdk/models/shared/commercelocation.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/commercelocation.js +46 -0
- package/dist/esm/sdk/models/shared/commercelocation.js.map +1 -1
- package/dist/esm/sdk/models/shared/commercereservation.d.ts +68 -0
- package/dist/esm/sdk/models/shared/commercereservation.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/commercereservation.js +101 -0
- package/dist/esm/sdk/models/shared/commercereservation.js.map +1 -0
- package/dist/esm/sdk/models/shared/commercereview.d.ts +4 -0
- package/dist/esm/sdk/models/shared/commercereview.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/commercereview.js +6 -0
- package/dist/esm/sdk/models/shared/commercereview.js.map +1 -1
- package/dist/esm/sdk/models/shared/commercetelephone.d.ts +32 -0
- package/dist/esm/sdk/models/shared/commercetelephone.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/commercetelephone.js +34 -0
- package/dist/esm/sdk/models/shared/commercetelephone.js.map +1 -0
- package/dist/esm/sdk/models/shared/index.d.ts +3 -0
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +3 -0
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/integrationsupport.d.ts +18 -0
- package/dist/esm/sdk/models/shared/integrationsupport.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/integrationsupport.js +18 -0
- package/dist/esm/sdk/models/shared/integrationsupport.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyconnectionpermissions.d.ts +4 -0
- package/dist/esm/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyconnectionpermissions.js +4 -0
- package/dist/esm/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/dist/esm/sdk/models/shared/uccall.d.ts +9 -0
- package/dist/esm/sdk/models/shared/uccall.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/uccall.js +8 -0
- package/dist/esm/sdk/models/shared/uccall.js.map +1 -1
- package/dist/esm/sdk/models/shared/ucrecording.d.ts +12 -0
- package/dist/esm/sdk/models/shared/ucrecording.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/ucrecording.js +11 -0
- package/dist/esm/sdk/models/shared/ucrecording.js.map +1 -1
- package/dist/esm/sdk/models/shared/webhook.d.ts +2 -0
- package/dist/esm/sdk/models/shared/webhook.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/webhook.js +2 -0
- package/dist/esm/sdk/models/shared/webhook.js.map +1 -1
- package/dist/esm/sdk/reservation.d.ts +30 -0
- package/dist/esm/sdk/reservation.d.ts.map +1 -0
- package/dist/esm/sdk/reservation.js +50 -0
- package/dist/esm/sdk/reservation.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +6 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +8 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/commerceCreateCommerceReservation.ts +172 -0
- package/src/funcs/commerceGetCommerceReservation.ts +175 -0
- package/src/funcs/commerceListCommerceAvailabilities.ts +182 -0
- package/src/funcs/commerceListCommerceReservations.ts +181 -0
- package/src/funcs/commerceListCommerceReviews.ts +1 -0
- package/src/funcs/commercePatchCommerceReservation.ts +178 -0
- package/src/funcs/commerceRemoveCommerceReservation.ts +180 -0
- package/src/funcs/commerceUpdateCommerceReservation.ts +178 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +23 -4
- package/src/sdk/availability.ts +25 -0
- package/src/sdk/commerce.ts +105 -0
- package/src/sdk/models/operations/createcommerceitem.ts +10 -8
- package/src/sdk/models/operations/createcommercelocation.ts +11 -0
- package/src/sdk/models/operations/createcommercereservation.ts +89 -0
- package/src/sdk/models/operations/createcommercereview.ts +2 -0
- package/src/sdk/models/operations/createucrecording.ts +2 -1
- package/src/sdk/models/operations/getcommerceitem.ts +10 -8
- package/src/sdk/models/operations/getcommercelocation.ts +11 -0
- package/src/sdk/models/operations/getcommercereservation.ts +91 -0
- package/src/sdk/models/operations/getcommercereview.ts +2 -0
- package/src/sdk/models/operations/getuccall.ts +2 -1
- package/src/sdk/models/operations/getucrecording.ts +2 -1
- package/src/sdk/models/operations/index.ts +7 -0
- package/src/sdk/models/operations/listcommerceavailabilities.ts +139 -0
- package/src/sdk/models/operations/listcommerceitems.ts +10 -8
- package/src/sdk/models/operations/listcommercelocations.ts +11 -0
- package/src/sdk/models/operations/listcommercereservations.ts +144 -0
- package/src/sdk/models/operations/listcommercereviews.ts +9 -0
- package/src/sdk/models/operations/listuccalls.ts +2 -1
- package/src/sdk/models/operations/listucrecordings.ts +2 -1
- package/src/sdk/models/operations/patchcommerceitem.ts +10 -8
- package/src/sdk/models/operations/patchcommercelocation.ts +11 -0
- package/src/sdk/models/operations/patchcommercereservation.ts +95 -0
- package/src/sdk/models/operations/patchcommercereview.ts +2 -0
- package/src/sdk/models/operations/patchucrecording.ts +2 -1
- package/src/sdk/models/operations/removecommercereservation.ts +77 -0
- package/src/sdk/models/operations/updatecommerceitem.ts +10 -8
- package/src/sdk/models/operations/updatecommercelocation.ts +11 -0
- package/src/sdk/models/operations/updatecommercereservation.ts +95 -0
- package/src/sdk/models/operations/updatecommercereview.ts +2 -0
- package/src/sdk/models/operations/updateucrecording.ts +2 -1
- package/src/sdk/models/shared/commerceavailability.ts +54 -0
- package/src/sdk/models/shared/commerceitem.ts +10 -0
- package/src/sdk/models/shared/commercelocation.ts +90 -0
- package/src/sdk/models/shared/commercereservation.ts +180 -0
- package/src/sdk/models/shared/commercereview.ts +10 -0
- package/src/sdk/models/shared/commercetelephone.ts +79 -0
- package/src/sdk/models/shared/index.ts +3 -0
- package/src/sdk/models/shared/integrationsupport.ts +34 -0
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +4 -0
- package/src/sdk/models/shared/uccall.ts +17 -0
- package/src/sdk/models/shared/ucrecording.ts +25 -0
- package/src/sdk/models/shared/webhook.ts +2 -0
- package/src/sdk/reservation.ts +100 -0
- package/src/sdk/sdk.ts +12 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const ListCommerceAvailabilitiesQueryParamFields = {
|
|
10
|
+
LocationId: "location_id",
|
|
11
|
+
StartAt: "start_at",
|
|
12
|
+
EndAt: "end_at",
|
|
13
|
+
Size: "size",
|
|
14
|
+
ItemId: "item_id",
|
|
15
|
+
StaffUserId: "staff_user_id",
|
|
16
|
+
Raw: "raw",
|
|
17
|
+
} as const;
|
|
18
|
+
export type ListCommerceAvailabilitiesQueryParamFields = ClosedEnum<
|
|
19
|
+
typeof ListCommerceAvailabilitiesQueryParamFields
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
export type ListCommerceAvailabilitiesRequest = {
|
|
23
|
+
/**
|
|
24
|
+
* ID of the connection
|
|
25
|
+
*/
|
|
26
|
+
connectionId: string;
|
|
27
|
+
/**
|
|
28
|
+
* The end date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
|
|
29
|
+
*/
|
|
30
|
+
endLt?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Fields to return
|
|
33
|
+
*/
|
|
34
|
+
fields?: Array<ListCommerceAvailabilitiesQueryParamFields> | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The item ID to filter by (reference to CommerceItem)
|
|
37
|
+
*/
|
|
38
|
+
itemId?: string | undefined;
|
|
39
|
+
limit?: number | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The location ID to filter by (reference to CommerceLocation)
|
|
42
|
+
*/
|
|
43
|
+
locationId?: string | undefined;
|
|
44
|
+
offset?: number | undefined;
|
|
45
|
+
order?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Query string to search. eg. email address or name
|
|
48
|
+
*/
|
|
49
|
+
query?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
52
|
+
*/
|
|
53
|
+
raw?: string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Filter by party size (dining)
|
|
56
|
+
*/
|
|
57
|
+
size?: string | undefined;
|
|
58
|
+
sort?: string | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* The start date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
|
|
61
|
+
*/
|
|
62
|
+
startGte?: string | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
|
|
65
|
+
*/
|
|
66
|
+
updatedGte?: string | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* The user/employee ID to filter by (reference to HrisEmployee)
|
|
69
|
+
*/
|
|
70
|
+
userId?: string | undefined;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const ListCommerceAvailabilitiesQueryParamFields$outboundSchema:
|
|
75
|
+
z.ZodNativeEnum<typeof ListCommerceAvailabilitiesQueryParamFields> = z
|
|
76
|
+
.nativeEnum(ListCommerceAvailabilitiesQueryParamFields);
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export type ListCommerceAvailabilitiesRequest$Outbound = {
|
|
80
|
+
connection_id: string;
|
|
81
|
+
end_lt?: string | undefined;
|
|
82
|
+
fields?: Array<string> | undefined;
|
|
83
|
+
item_id?: string | undefined;
|
|
84
|
+
limit?: number | undefined;
|
|
85
|
+
location_id?: string | undefined;
|
|
86
|
+
offset?: number | undefined;
|
|
87
|
+
order?: string | undefined;
|
|
88
|
+
query?: string | undefined;
|
|
89
|
+
raw?: string | undefined;
|
|
90
|
+
size?: string | undefined;
|
|
91
|
+
sort?: string | undefined;
|
|
92
|
+
start_gte?: string | undefined;
|
|
93
|
+
updated_gte?: string | undefined;
|
|
94
|
+
user_id?: string | undefined;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const ListCommerceAvailabilitiesRequest$outboundSchema: z.ZodType<
|
|
99
|
+
ListCommerceAvailabilitiesRequest$Outbound,
|
|
100
|
+
z.ZodTypeDef,
|
|
101
|
+
ListCommerceAvailabilitiesRequest
|
|
102
|
+
> = z.object({
|
|
103
|
+
connectionId: z.string(),
|
|
104
|
+
endLt: z.string().optional(),
|
|
105
|
+
fields: z.array(ListCommerceAvailabilitiesQueryParamFields$outboundSchema)
|
|
106
|
+
.optional(),
|
|
107
|
+
itemId: z.string().optional(),
|
|
108
|
+
limit: z.number().optional(),
|
|
109
|
+
locationId: z.string().optional(),
|
|
110
|
+
offset: z.number().optional(),
|
|
111
|
+
order: z.string().optional(),
|
|
112
|
+
query: z.string().optional(),
|
|
113
|
+
raw: z.string().optional(),
|
|
114
|
+
size: z.string().optional(),
|
|
115
|
+
sort: z.string().optional(),
|
|
116
|
+
startGte: z.string().optional(),
|
|
117
|
+
updatedGte: z.string().optional(),
|
|
118
|
+
userId: z.string().optional(),
|
|
119
|
+
}).transform((v) => {
|
|
120
|
+
return remap$(v, {
|
|
121
|
+
connectionId: "connection_id",
|
|
122
|
+
endLt: "end_lt",
|
|
123
|
+
itemId: "item_id",
|
|
124
|
+
locationId: "location_id",
|
|
125
|
+
startGte: "start_gte",
|
|
126
|
+
updatedGte: "updated_gte",
|
|
127
|
+
userId: "user_id",
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
export function listCommerceAvailabilitiesRequestToJSON(
|
|
132
|
+
listCommerceAvailabilitiesRequest: ListCommerceAvailabilitiesRequest,
|
|
133
|
+
): string {
|
|
134
|
+
return JSON.stringify(
|
|
135
|
+
ListCommerceAvailabilitiesRequest$outboundSchema.parse(
|
|
136
|
+
listCommerceAvailabilitiesRequest,
|
|
137
|
+
),
|
|
138
|
+
);
|
|
139
|
+
}
|
|
@@ -20,6 +20,14 @@ export const ListCommerceItemsQueryParamFields = {
|
|
|
20
20
|
IsTaxable: "is_taxable",
|
|
21
21
|
VendorName: "vendor_name",
|
|
22
22
|
Type: "type",
|
|
23
|
+
IsVisible: "is_visible",
|
|
24
|
+
IsFeatured: "is_featured",
|
|
25
|
+
Weight: "weight",
|
|
26
|
+
WeightUnit: "weight_unit",
|
|
27
|
+
RequiresShipping: "requires_shipping",
|
|
28
|
+
Prices: "prices",
|
|
29
|
+
InventoryId: "inventory_id",
|
|
30
|
+
TotalStock: "total_stock",
|
|
23
31
|
Variants: "variants",
|
|
24
32
|
Tags: "tags",
|
|
25
33
|
Media: "media",
|
|
@@ -28,15 +36,9 @@ export const ListCommerceItemsQueryParamFields = {
|
|
|
28
36
|
Metadata: "metadata",
|
|
29
37
|
Collections: "collections",
|
|
30
38
|
TaxrateId: "taxrate_id",
|
|
39
|
+
LocationId: "location_id",
|
|
40
|
+
Duration: "duration",
|
|
31
41
|
Raw: "raw",
|
|
32
|
-
IsVisible: "is_visible",
|
|
33
|
-
IsFeatured: "is_featured",
|
|
34
|
-
Weight: "weight",
|
|
35
|
-
WeightUnit: "weight_unit",
|
|
36
|
-
RequiresShipping: "requires_shipping",
|
|
37
|
-
Prices: "prices",
|
|
38
|
-
InventoryId: "inventory_id",
|
|
39
|
-
TotalStock: "total_stock",
|
|
40
42
|
} as const;
|
|
41
43
|
export type ListCommerceItemsQueryParamFields = ClosedEnum<
|
|
42
44
|
typeof ListCommerceItemsQueryParamFields
|
|
@@ -17,7 +17,18 @@ export const ListCommerceLocationsQueryParamFields = {
|
|
|
17
17
|
LanguageLocale: "language_locale",
|
|
18
18
|
ParentId: "parent_id",
|
|
19
19
|
Currency: "currency",
|
|
20
|
+
LocationType: "location_type",
|
|
21
|
+
Telephones: "telephones",
|
|
22
|
+
Rating: "rating",
|
|
23
|
+
ReviewCount: "review_count",
|
|
24
|
+
PriceLevel: "price_level",
|
|
25
|
+
Latitude: "latitude",
|
|
26
|
+
Longitude: "longitude",
|
|
27
|
+
ImageUrl: "image_url",
|
|
28
|
+
WebUrl: "web_url",
|
|
29
|
+
Media: "media",
|
|
20
30
|
Raw: "raw",
|
|
31
|
+
Categories: "categories",
|
|
21
32
|
} as const;
|
|
22
33
|
export type ListCommerceLocationsQueryParamFields = ClosedEnum<
|
|
23
34
|
typeof ListCommerceLocationsQueryParamFields
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const ListCommerceReservationsQueryParamFields = {
|
|
10
|
+
Id: "id",
|
|
11
|
+
LocationId: "location_id",
|
|
12
|
+
StartAt: "start_at",
|
|
13
|
+
EndAt: "end_at",
|
|
14
|
+
Size: "size",
|
|
15
|
+
Status: "status",
|
|
16
|
+
GuestName: "guest_name",
|
|
17
|
+
GuestPhone: "guest_phone",
|
|
18
|
+
GuestEmail: "guest_email",
|
|
19
|
+
Notes: "notes",
|
|
20
|
+
ItemId: "item_id",
|
|
21
|
+
ItemName: "item_name",
|
|
22
|
+
StaffUserId: "staff_user_id",
|
|
23
|
+
StaffName: "staff_name",
|
|
24
|
+
CreatedAt: "created_at",
|
|
25
|
+
UpdatedAt: "updated_at",
|
|
26
|
+
Url: "url",
|
|
27
|
+
Raw: "raw",
|
|
28
|
+
} as const;
|
|
29
|
+
export type ListCommerceReservationsQueryParamFields = ClosedEnum<
|
|
30
|
+
typeof ListCommerceReservationsQueryParamFields
|
|
31
|
+
>;
|
|
32
|
+
|
|
33
|
+
export type ListCommerceReservationsRequest = {
|
|
34
|
+
/**
|
|
35
|
+
* ID of the connection
|
|
36
|
+
*/
|
|
37
|
+
connectionId: string;
|
|
38
|
+
/**
|
|
39
|
+
* The end date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
|
|
40
|
+
*/
|
|
41
|
+
endLt?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Fields to return
|
|
44
|
+
*/
|
|
45
|
+
fields?: Array<ListCommerceReservationsQueryParamFields> | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The item ID to filter by (reference to CommerceItem)
|
|
48
|
+
*/
|
|
49
|
+
itemId?: string | undefined;
|
|
50
|
+
limit?: number | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* The location ID to filter by (reference to CommerceLocation)
|
|
53
|
+
*/
|
|
54
|
+
locationId?: string | undefined;
|
|
55
|
+
offset?: number | undefined;
|
|
56
|
+
order?: string | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Query string to search. eg. email address or name
|
|
59
|
+
*/
|
|
60
|
+
query?: string | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
63
|
+
*/
|
|
64
|
+
raw?: string | undefined;
|
|
65
|
+
sort?: string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* The start date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
|
|
68
|
+
*/
|
|
69
|
+
startGte?: string | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
|
|
72
|
+
*/
|
|
73
|
+
updatedGte?: string | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* The user/employee ID to filter by (reference to HrisEmployee)
|
|
76
|
+
*/
|
|
77
|
+
userId?: string | undefined;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const ListCommerceReservationsQueryParamFields$outboundSchema:
|
|
82
|
+
z.ZodNativeEnum<typeof ListCommerceReservationsQueryParamFields> = z
|
|
83
|
+
.nativeEnum(ListCommerceReservationsQueryParamFields);
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export type ListCommerceReservationsRequest$Outbound = {
|
|
87
|
+
connection_id: string;
|
|
88
|
+
end_lt?: string | undefined;
|
|
89
|
+
fields?: Array<string> | undefined;
|
|
90
|
+
item_id?: string | undefined;
|
|
91
|
+
limit?: number | undefined;
|
|
92
|
+
location_id?: string | undefined;
|
|
93
|
+
offset?: number | undefined;
|
|
94
|
+
order?: string | undefined;
|
|
95
|
+
query?: string | undefined;
|
|
96
|
+
raw?: string | undefined;
|
|
97
|
+
sort?: string | undefined;
|
|
98
|
+
start_gte?: string | undefined;
|
|
99
|
+
updated_gte?: string | undefined;
|
|
100
|
+
user_id?: string | undefined;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/** @internal */
|
|
104
|
+
export const ListCommerceReservationsRequest$outboundSchema: z.ZodType<
|
|
105
|
+
ListCommerceReservationsRequest$Outbound,
|
|
106
|
+
z.ZodTypeDef,
|
|
107
|
+
ListCommerceReservationsRequest
|
|
108
|
+
> = z.object({
|
|
109
|
+
connectionId: z.string(),
|
|
110
|
+
endLt: z.string().optional(),
|
|
111
|
+
fields: z.array(ListCommerceReservationsQueryParamFields$outboundSchema)
|
|
112
|
+
.optional(),
|
|
113
|
+
itemId: z.string().optional(),
|
|
114
|
+
limit: z.number().optional(),
|
|
115
|
+
locationId: z.string().optional(),
|
|
116
|
+
offset: z.number().optional(),
|
|
117
|
+
order: z.string().optional(),
|
|
118
|
+
query: z.string().optional(),
|
|
119
|
+
raw: z.string().optional(),
|
|
120
|
+
sort: z.string().optional(),
|
|
121
|
+
startGte: z.string().optional(),
|
|
122
|
+
updatedGte: z.string().optional(),
|
|
123
|
+
userId: z.string().optional(),
|
|
124
|
+
}).transform((v) => {
|
|
125
|
+
return remap$(v, {
|
|
126
|
+
connectionId: "connection_id",
|
|
127
|
+
endLt: "end_lt",
|
|
128
|
+
itemId: "item_id",
|
|
129
|
+
locationId: "location_id",
|
|
130
|
+
startGte: "start_gte",
|
|
131
|
+
updatedGte: "updated_gte",
|
|
132
|
+
userId: "user_id",
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
export function listCommerceReservationsRequestToJSON(
|
|
137
|
+
listCommerceReservationsRequest: ListCommerceReservationsRequest,
|
|
138
|
+
): string {
|
|
139
|
+
return JSON.stringify(
|
|
140
|
+
ListCommerceReservationsRequest$outboundSchema.parse(
|
|
141
|
+
listCommerceReservationsRequest,
|
|
142
|
+
),
|
|
143
|
+
);
|
|
144
|
+
}
|
|
@@ -12,6 +12,7 @@ export const ListCommerceReviewsQueryParamFields = {
|
|
|
12
12
|
UpdatedAt: "updated_at",
|
|
13
13
|
ItemId: "item_id",
|
|
14
14
|
ItemVariantId: "item_variant_id",
|
|
15
|
+
LocationId: "location_id",
|
|
15
16
|
Rating: "rating",
|
|
16
17
|
Title: "title",
|
|
17
18
|
Content: "content",
|
|
@@ -29,6 +30,7 @@ export const ListCommerceReviewsQueryParamFields = {
|
|
|
29
30
|
IsPublic: "is_public",
|
|
30
31
|
Comments: "comments",
|
|
31
32
|
Metadata: "metadata",
|
|
33
|
+
Url: "url",
|
|
32
34
|
Raw: "raw",
|
|
33
35
|
} as const;
|
|
34
36
|
export type ListCommerceReviewsQueryParamFields = ClosedEnum<
|
|
@@ -53,6 +55,10 @@ export type ListCommerceReviewsRequest = {
|
|
|
53
55
|
*/
|
|
54
56
|
itemId?: string | undefined;
|
|
55
57
|
limit?: number | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* The location ID to filter by (reference to CommerceLocation)
|
|
60
|
+
*/
|
|
61
|
+
locationId?: string | undefined;
|
|
56
62
|
offset?: number | undefined;
|
|
57
63
|
order?: string | undefined;
|
|
58
64
|
/**
|
|
@@ -83,6 +89,7 @@ export type ListCommerceReviewsRequest$Outbound = {
|
|
|
83
89
|
fields?: Array<string> | undefined;
|
|
84
90
|
item_id?: string | undefined;
|
|
85
91
|
limit?: number | undefined;
|
|
92
|
+
location_id?: string | undefined;
|
|
86
93
|
offset?: number | undefined;
|
|
87
94
|
order?: string | undefined;
|
|
88
95
|
query?: string | undefined;
|
|
@@ -103,6 +110,7 @@ export const ListCommerceReviewsRequest$outboundSchema: z.ZodType<
|
|
|
103
110
|
.optional(),
|
|
104
111
|
itemId: z.string().optional(),
|
|
105
112
|
limit: z.number().optional(),
|
|
113
|
+
locationId: z.string().optional(),
|
|
106
114
|
offset: z.number().optional(),
|
|
107
115
|
order: z.string().optional(),
|
|
108
116
|
query: z.string().optional(),
|
|
@@ -114,6 +122,7 @@ export const ListCommerceReviewsRequest$outboundSchema: z.ZodType<
|
|
|
114
122
|
connectionId: "connection_id",
|
|
115
123
|
contactId: "contact_id",
|
|
116
124
|
itemId: "item_id",
|
|
125
|
+
locationId: "location_id",
|
|
117
126
|
updatedGte: "updated_gte",
|
|
118
127
|
});
|
|
119
128
|
});
|
|
@@ -17,9 +17,10 @@ export const ListUcCallsQueryParamFields = {
|
|
|
17
17
|
UserId: "user_id",
|
|
18
18
|
Contacts: "contacts",
|
|
19
19
|
IsPrivate: "is_private",
|
|
20
|
-
Raw: "raw",
|
|
21
20
|
UserName: "user_name",
|
|
22
21
|
UserPhone: "user_phone",
|
|
22
|
+
Type: "type",
|
|
23
|
+
Raw: "raw",
|
|
23
24
|
} as const;
|
|
24
25
|
export type ListUcCallsQueryParamFields = ClosedEnum<
|
|
25
26
|
typeof ListUcCallsQueryParamFields
|
|
@@ -20,9 +20,10 @@ export const ListUcRecordingsQueryParamFields = {
|
|
|
20
20
|
ContactPhone: "contact_phone",
|
|
21
21
|
UserId: "user_id",
|
|
22
22
|
Media: "media",
|
|
23
|
-
Raw: "raw",
|
|
24
23
|
UserName: "user_name",
|
|
25
24
|
UserPhone: "user_phone",
|
|
25
|
+
Type: "type",
|
|
26
|
+
Raw: "raw",
|
|
26
27
|
} as const;
|
|
27
28
|
export type ListUcRecordingsQueryParamFields = ClosedEnum<
|
|
28
29
|
typeof ListUcRecordingsQueryParamFields
|
|
@@ -21,6 +21,14 @@ export const PatchCommerceItemQueryParamFields = {
|
|
|
21
21
|
IsTaxable: "is_taxable",
|
|
22
22
|
VendorName: "vendor_name",
|
|
23
23
|
Type: "type",
|
|
24
|
+
IsVisible: "is_visible",
|
|
25
|
+
IsFeatured: "is_featured",
|
|
26
|
+
Weight: "weight",
|
|
27
|
+
WeightUnit: "weight_unit",
|
|
28
|
+
RequiresShipping: "requires_shipping",
|
|
29
|
+
Prices: "prices",
|
|
30
|
+
InventoryId: "inventory_id",
|
|
31
|
+
TotalStock: "total_stock",
|
|
24
32
|
Variants: "variants",
|
|
25
33
|
Tags: "tags",
|
|
26
34
|
Media: "media",
|
|
@@ -29,15 +37,9 @@ export const PatchCommerceItemQueryParamFields = {
|
|
|
29
37
|
Metadata: "metadata",
|
|
30
38
|
Collections: "collections",
|
|
31
39
|
TaxrateId: "taxrate_id",
|
|
40
|
+
LocationId: "location_id",
|
|
41
|
+
Duration: "duration",
|
|
32
42
|
Raw: "raw",
|
|
33
|
-
IsVisible: "is_visible",
|
|
34
|
-
IsFeatured: "is_featured",
|
|
35
|
-
Weight: "weight",
|
|
36
|
-
WeightUnit: "weight_unit",
|
|
37
|
-
RequiresShipping: "requires_shipping",
|
|
38
|
-
Prices: "prices",
|
|
39
|
-
InventoryId: "inventory_id",
|
|
40
|
-
TotalStock: "total_stock",
|
|
41
43
|
} as const;
|
|
42
44
|
export type PatchCommerceItemQueryParamFields = ClosedEnum<
|
|
43
45
|
typeof PatchCommerceItemQueryParamFields
|
|
@@ -18,7 +18,18 @@ export const PatchCommerceLocationQueryParamFields = {
|
|
|
18
18
|
LanguageLocale: "language_locale",
|
|
19
19
|
ParentId: "parent_id",
|
|
20
20
|
Currency: "currency",
|
|
21
|
+
LocationType: "location_type",
|
|
22
|
+
Telephones: "telephones",
|
|
23
|
+
Rating: "rating",
|
|
24
|
+
ReviewCount: "review_count",
|
|
25
|
+
PriceLevel: "price_level",
|
|
26
|
+
Latitude: "latitude",
|
|
27
|
+
Longitude: "longitude",
|
|
28
|
+
ImageUrl: "image_url",
|
|
29
|
+
WebUrl: "web_url",
|
|
30
|
+
Media: "media",
|
|
21
31
|
Raw: "raw",
|
|
32
|
+
Categories: "categories",
|
|
22
33
|
} as const;
|
|
23
34
|
export type PatchCommerceLocationQueryParamFields = ClosedEnum<
|
|
24
35
|
typeof PatchCommerceLocationQueryParamFields
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import * as shared from "../shared/index.js";
|
|
9
|
+
|
|
10
|
+
export const PatchCommerceReservationQueryParamFields = {
|
|
11
|
+
Id: "id",
|
|
12
|
+
LocationId: "location_id",
|
|
13
|
+
StartAt: "start_at",
|
|
14
|
+
EndAt: "end_at",
|
|
15
|
+
Size: "size",
|
|
16
|
+
Status: "status",
|
|
17
|
+
GuestName: "guest_name",
|
|
18
|
+
GuestPhone: "guest_phone",
|
|
19
|
+
GuestEmail: "guest_email",
|
|
20
|
+
Notes: "notes",
|
|
21
|
+
ItemId: "item_id",
|
|
22
|
+
ItemName: "item_name",
|
|
23
|
+
StaffUserId: "staff_user_id",
|
|
24
|
+
StaffName: "staff_name",
|
|
25
|
+
CreatedAt: "created_at",
|
|
26
|
+
UpdatedAt: "updated_at",
|
|
27
|
+
Url: "url",
|
|
28
|
+
Raw: "raw",
|
|
29
|
+
} as const;
|
|
30
|
+
export type PatchCommerceReservationQueryParamFields = ClosedEnum<
|
|
31
|
+
typeof PatchCommerceReservationQueryParamFields
|
|
32
|
+
>;
|
|
33
|
+
|
|
34
|
+
export type PatchCommerceReservationRequest = {
|
|
35
|
+
commerceReservation: shared.CommerceReservation;
|
|
36
|
+
/**
|
|
37
|
+
* ID of the connection
|
|
38
|
+
*/
|
|
39
|
+
connectionId: string;
|
|
40
|
+
/**
|
|
41
|
+
* Fields to return
|
|
42
|
+
*/
|
|
43
|
+
fields?: Array<PatchCommerceReservationQueryParamFields> | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* ID of the Reservation
|
|
46
|
+
*/
|
|
47
|
+
id: string;
|
|
48
|
+
/**
|
|
49
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
50
|
+
*/
|
|
51
|
+
raw?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const PatchCommerceReservationQueryParamFields$outboundSchema:
|
|
56
|
+
z.ZodNativeEnum<typeof PatchCommerceReservationQueryParamFields> = z
|
|
57
|
+
.nativeEnum(PatchCommerceReservationQueryParamFields);
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export type PatchCommerceReservationRequest$Outbound = {
|
|
61
|
+
CommerceReservation: shared.CommerceReservation$Outbound;
|
|
62
|
+
connection_id: string;
|
|
63
|
+
fields?: Array<string> | undefined;
|
|
64
|
+
id: string;
|
|
65
|
+
raw?: string | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const PatchCommerceReservationRequest$outboundSchema: z.ZodType<
|
|
70
|
+
PatchCommerceReservationRequest$Outbound,
|
|
71
|
+
z.ZodTypeDef,
|
|
72
|
+
PatchCommerceReservationRequest
|
|
73
|
+
> = z.object({
|
|
74
|
+
commerceReservation: shared.CommerceReservation$outboundSchema,
|
|
75
|
+
connectionId: z.string(),
|
|
76
|
+
fields: z.array(PatchCommerceReservationQueryParamFields$outboundSchema)
|
|
77
|
+
.optional(),
|
|
78
|
+
id: z.string(),
|
|
79
|
+
raw: z.string().optional(),
|
|
80
|
+
}).transform((v) => {
|
|
81
|
+
return remap$(v, {
|
|
82
|
+
commerceReservation: "CommerceReservation",
|
|
83
|
+
connectionId: "connection_id",
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export function patchCommerceReservationRequestToJSON(
|
|
88
|
+
patchCommerceReservationRequest: PatchCommerceReservationRequest,
|
|
89
|
+
): string {
|
|
90
|
+
return JSON.stringify(
|
|
91
|
+
PatchCommerceReservationRequest$outboundSchema.parse(
|
|
92
|
+
patchCommerceReservationRequest,
|
|
93
|
+
),
|
|
94
|
+
);
|
|
95
|
+
}
|
|
@@ -13,6 +13,7 @@ export const PatchCommerceReviewQueryParamFields = {
|
|
|
13
13
|
UpdatedAt: "updated_at",
|
|
14
14
|
ItemId: "item_id",
|
|
15
15
|
ItemVariantId: "item_variant_id",
|
|
16
|
+
LocationId: "location_id",
|
|
16
17
|
Rating: "rating",
|
|
17
18
|
Title: "title",
|
|
18
19
|
Content: "content",
|
|
@@ -30,6 +31,7 @@ export const PatchCommerceReviewQueryParamFields = {
|
|
|
30
31
|
IsPublic: "is_public",
|
|
31
32
|
Comments: "comments",
|
|
32
33
|
Metadata: "metadata",
|
|
34
|
+
Url: "url",
|
|
33
35
|
Raw: "raw",
|
|
34
36
|
} as const;
|
|
35
37
|
export type PatchCommerceReviewQueryParamFields = ClosedEnum<
|
|
@@ -21,9 +21,10 @@ export const PatchUcRecordingQueryParamFields = {
|
|
|
21
21
|
ContactPhone: "contact_phone",
|
|
22
22
|
UserId: "user_id",
|
|
23
23
|
Media: "media",
|
|
24
|
-
Raw: "raw",
|
|
25
24
|
UserName: "user_name",
|
|
26
25
|
UserPhone: "user_phone",
|
|
26
|
+
Type: "type",
|
|
27
|
+
Raw: "raw",
|
|
27
28
|
} as const;
|
|
28
29
|
export type PatchUcRecordingQueryParamFields = ClosedEnum<
|
|
29
30
|
typeof PatchUcRecordingQueryParamFields
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type RemoveCommerceReservationRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* ID of the connection
|
|
14
|
+
*/
|
|
15
|
+
connectionId: string;
|
|
16
|
+
/**
|
|
17
|
+
* ID of the Reservation
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type RemoveCommerceReservationResponse = {
|
|
23
|
+
headers: { [k: string]: Array<string> };
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type RemoveCommerceReservationRequest$Outbound = {
|
|
28
|
+
connection_id: string;
|
|
29
|
+
id: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const RemoveCommerceReservationRequest$outboundSchema: z.ZodType<
|
|
34
|
+
RemoveCommerceReservationRequest$Outbound,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
RemoveCommerceReservationRequest
|
|
37
|
+
> = z.object({
|
|
38
|
+
connectionId: z.string(),
|
|
39
|
+
id: z.string(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
connectionId: "connection_id",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export function removeCommerceReservationRequestToJSON(
|
|
47
|
+
removeCommerceReservationRequest: RemoveCommerceReservationRequest,
|
|
48
|
+
): string {
|
|
49
|
+
return JSON.stringify(
|
|
50
|
+
RemoveCommerceReservationRequest$outboundSchema.parse(
|
|
51
|
+
removeCommerceReservationRequest,
|
|
52
|
+
),
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const RemoveCommerceReservationResponse$inboundSchema: z.ZodType<
|
|
58
|
+
RemoveCommerceReservationResponse,
|
|
59
|
+
z.ZodTypeDef,
|
|
60
|
+
unknown
|
|
61
|
+
> = z.object({
|
|
62
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
"Headers": "headers",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export function removeCommerceReservationResponseFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<RemoveCommerceReservationResponse, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => RemoveCommerceReservationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'RemoveCommerceReservationResponse' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|