@compassdigital/sdk.typescript 4.597.0 → 4.599.0

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/lib/index.d.ts CHANGED
@@ -29,6 +29,7 @@ import { GetSearchOrderQuery, GetSearchOrderResponse, GetSearchLocationQuery, Ge
29
29
  import { PostAuthFlowBody, PostAuthFlowResponse, GetAuthSsoConfigQuery, GetAuthSsoConfigResponse, GetAuthSsoConfigsResponse, PostAuthSsoConfigBody, PostAuthSsoConfigResponse, PutAuthSsoConfigBody, PutAuthSsoConfigResponse, DeleteAuthSsoConfigResponse, PostAuthSsoBody, PostAuthSsoResponse, PostAuthSsoExchangeBody, PostAuthSsoExchangeResponse, GetAuthSsoExchangeQuery, GetAuthSsoExchangeResponse, PostAuthJwtAssertionBody, PostAuthJwtAssertionResponse, GetAuthJwtAssertionJwkResponse } from './interface/auth';
30
30
  import { GetReviewsQuery, GetReviewsResponse, PostReviewBody, PostReviewResponse, GetReviewPingResponse, GetReviewHealthResponse, GetReviewResponse, DeleteReviewResponse } from './interface/review';
31
31
  import { DeleteDiscountResponse, GetDiscountResponse, PutDiscountBody, PutDiscountResponse, GetDiscountsQuery, GetDiscountsResponse, PostDiscountBody, PostDiscountResponse, GetDiscountHealthResponse, GetDiscountPingResponse, PostDiscountEventBody, PostDiscountEventResponse, PostRewardsQuery, PostRewardsBody, PostRewardsResponse, PostDiscountValidateDiscountsBody, PostDiscountValidateDiscountsResponse, PutDiscountPublishBody, PutDiscountPublishResponse } from './interface/discount';
32
+ import { GetLoyaltyBundlesQuery, GetLoyaltyBundlesResponse, PostLoyaltyBundleBody, PostLoyaltyBundleResponse, GetLoyaltyBundleResponse, PatchLoyaltyBundleBody, PatchLoyaltyBundleResponse, DeleteLoyaltyBundleResponse, GetLoyaltyCampaignsQuery, GetLoyaltyCampaignsResponse, PostLoyaltyCampaignBody, PostLoyaltyCampaignResponse, GetLoyaltyCampaignResponse, PutLoyaltyCampaignBody, PutLoyaltyCampaignResponse, DeleteLoyaltyCampaignResponse, PatchLoyaltyCampaignStatusBody, PatchLoyaltyCampaignStatusResponse, PostLoyaltyCampaignCloneResponse, GetLoyaltyVouchersQuery, GetLoyaltyVouchersResponse, PostLoyaltyVoucherBody, PostLoyaltyVoucherResponse, GetLoyaltyVoucherResponse, PutLoyaltyVoucherBody, PutLoyaltyVoucherResponse, DeleteLoyaltyVoucherResponse, PostLoyaltyVoucherRevokeBody, PostLoyaltyVoucherRevokeResponse, PostLoyaltyVouchersBatchBody, PostLoyaltyVouchersBatchResponse, GetLoyaltyVoucherRedemptionsQuery, GetLoyaltyVoucherRedemptionsResponse, PostLoyaltyVouchersValidateBody, PostLoyaltyVouchersValidateResponse, PostLoyaltyVouchersRedeemBody, PostLoyaltyVouchersRedeemResponse, GetLoyaltySegmentsQuery, GetLoyaltySegmentsResponse, PostLoyaltySegmentBody, PostLoyaltySegmentResponse, GetLoyaltySegmentAttributesResponse, PostLoyaltySegmentPreviewCountBody, PostLoyaltySegmentPreviewCountResponse, GetLoyaltySegmentResponse, PatchLoyaltySegmentBody, PatchLoyaltySegmentResponse, DeleteLoyaltySegmentResponse, GetLoyaltySegmentMembersQuery, GetLoyaltySegmentMembersResponse, PostLoyaltySegmentMembersBody, PostLoyaltySegmentMembersResponse, DeleteLoyaltySegmentMembersBody, DeleteLoyaltySegmentMembersResponse, PostLoyaltyRedemptionRollbackBody, PostLoyaltyRedemptionRollbackResponse, GetLoyaltyRewardsQuery, GetLoyaltyRewardsResponse, PostLoyaltyRewardBody, PostLoyaltyRewardResponse, GetLoyaltyRewardResponse, PutLoyaltyRewardBody, PutLoyaltyRewardResponse, PatchLoyaltyRewardStatusBody, PatchLoyaltyRewardStatusResponse, GetLoyaltyRewardCardsQuery, GetLoyaltyRewardCardsResponse, GetLoyaltyRewardCardResponse, PostLoyaltyRewardCardAdjustBody, PostLoyaltyRewardCardAdjustResponse, PostLoyaltyRewardOrderEarnBody, PostLoyaltyRewardOrderEarnResponse } from './interface/loyalty';
32
33
  import { GetTimeslotsBrandQuery, GetTimeslotsBrandResponse, PostTimeslotsBrandsBody, PostTimeslotsBrandsResponse, PostTimeslotsBrandIncrementBody, PostTimeslotsBrandIncrementResponse } from './interface/timeslots';
33
34
  import { ProductionSheetControllerCreateSheetBody, ProductionSheetControllerCreateSheetResponse, ProductionSheetControllerGetProductionSheetPaginatedQuery, ProductionSheetControllerGetProductionSheetPaginatedResponse, ProductionSheetControllerGetScheduledMenuDataQuery, ProductionSheetControllerGetScheduledMenuDataResponse, ProductionSheetControllerSaveItemForecastDifferentialBody, ProductionSheetControllerSaveItemForecastDifferentialResponse, ProductionSheetControllerSendChatMessageBody, ProductionSheetControllerSendChatMessageResponse, ProductionSheetControllerSendChatFeedbackBody, ProductionSheetControllerSendChatFeedbackResponse, ProductionSheetControllerGetForecastMetaDataQuery, ProductionSheetControllerGetForecastMetaDataResponse, ProductionSheetControllerPingResponse, ProductionSheetControllerChatStreamBody, ProductionSheetControllerChatStreamResponse, GetForecastingHealthResponse } from './interface/forecasting';
34
35
  import { BaseServiceClient, RequestOptions, ResponsePromise } from './base';
@@ -5942,6 +5943,323 @@ export declare class ServiceClient extends BaseServiceClient {
5942
5943
  * @param options - additional request options
5943
5944
  */
5944
5945
  put_discount_publish(id: string, body: PutDiscountPublishBody, options?: RequestOptions): ResponsePromise<PutDiscountPublishResponse>;
5946
+ /**
5947
+ * GET /loyalty/bundles - List bundles with optional filters
5948
+ *
5949
+ * @param options - additional request options
5950
+ */
5951
+ get_loyalty_bundles(options?: {
5952
+ query?: GetLoyaltyBundlesQuery;
5953
+ } & RequestOptions): ResponsePromise<GetLoyaltyBundlesResponse>;
5954
+ /**
5955
+ * POST /loyalty/bundles - Create a new bundle
5956
+ *
5957
+ * @param body
5958
+ * @param options - additional request options
5959
+ */
5960
+ post_loyalty_bundle(body: PostLoyaltyBundleBody, options?: RequestOptions): ResponsePromise<PostLoyaltyBundleResponse>;
5961
+ /**
5962
+ * GET /loyalty/bundles/{id} - Get bundle by ID with groups
5963
+ *
5964
+ * @param id
5965
+ * @param options - additional request options
5966
+ */
5967
+ get_loyalty_bundle(id: string, options?: RequestOptions): ResponsePromise<GetLoyaltyBundleResponse>;
5968
+ /**
5969
+ * PATCH /loyalty/bundles/{id} - Update a bundle
5970
+ *
5971
+ * @param id
5972
+ * @param body
5973
+ * @param options - additional request options
5974
+ */
5975
+ patch_loyalty_bundle(id: string, body: PatchLoyaltyBundleBody, options?: RequestOptions): ResponsePromise<PatchLoyaltyBundleResponse>;
5976
+ /**
5977
+ * DELETE /loyalty/bundles/{id} - Soft-delete a bundle
5978
+ *
5979
+ * @param id
5980
+ * @param options - additional request options
5981
+ */
5982
+ delete_loyalty_bundle(id: string, options?: RequestOptions): ResponsePromise<DeleteLoyaltyBundleResponse>;
5983
+ /**
5984
+ * GET /loyalty/campaigns - List campaigns with filters and pagination
5985
+ *
5986
+ * @param options - additional request options
5987
+ */
5988
+ get_loyalty_campaigns(options?: {
5989
+ query?: GetLoyaltyCampaignsQuery;
5990
+ } & RequestOptions): ResponsePromise<GetLoyaltyCampaignsResponse>;
5991
+ /**
5992
+ * POST /loyalty/campaigns - Create a campaign with nested child entities
5993
+ *
5994
+ * @param body
5995
+ * @param options - additional request options
5996
+ */
5997
+ post_loyalty_campaign(body: PostLoyaltyCampaignBody, options?: RequestOptions): ResponsePromise<PostLoyaltyCampaignResponse>;
5998
+ /**
5999
+ * GET /loyalty/campaigns/{id} - Get campaign detail with all child entities
6000
+ *
6001
+ * @param id
6002
+ * @param options - additional request options
6003
+ */
6004
+ get_loyalty_campaign(id: string, options?: RequestOptions): ResponsePromise<GetLoyaltyCampaignResponse>;
6005
+ /**
6006
+ * PUT /loyalty/campaigns/{id} - Update a campaign and its child entities
6007
+ *
6008
+ * @param id
6009
+ * @param body
6010
+ * @param options - additional request options
6011
+ */
6012
+ put_loyalty_campaign(id: string, body: PutLoyaltyCampaignBody, options?: RequestOptions): ResponsePromise<PutLoyaltyCampaignResponse>;
6013
+ /**
6014
+ * DELETE /loyalty/campaigns/{id} - Soft-delete a campaign
6015
+ *
6016
+ * @param id
6017
+ * @param options - additional request options
6018
+ */
6019
+ delete_loyalty_campaign(id: string, options?: RequestOptions): ResponsePromise<DeleteLoyaltyCampaignResponse>;
6020
+ /**
6021
+ * PATCH /loyalty/campaigns/{id}/status - Transition campaign status
6022
+ *
6023
+ * @param id
6024
+ * @param body
6025
+ * @param options - additional request options
6026
+ */
6027
+ patch_loyalty_campaign_status(id: string, body: PatchLoyaltyCampaignStatusBody, options?: RequestOptions): ResponsePromise<PatchLoyaltyCampaignStatusResponse>;
6028
+ /**
6029
+ * POST /loyalty/campaigns/{id}/clone - Deep clone a campaign and all child entities
6030
+ *
6031
+ * @param id
6032
+ * @param options - additional request options
6033
+ */
6034
+ post_loyalty_campaign_clone(id: string, options?: RequestOptions): ResponsePromise<PostLoyaltyCampaignCloneResponse>;
6035
+ /**
6036
+ * GET /loyalty/vouchers - List vouchers with optional filters
6037
+ *
6038
+ * @param options - additional request options
6039
+ */
6040
+ get_loyalty_vouchers(options?: {
6041
+ query?: GetLoyaltyVouchersQuery;
6042
+ } & RequestOptions): ResponsePromise<GetLoyaltyVouchersResponse>;
6043
+ /**
6044
+ * POST /loyalty/vouchers - Create a single voucher
6045
+ *
6046
+ * @param body
6047
+ * @param options - additional request options
6048
+ */
6049
+ post_loyalty_voucher(body: PostLoyaltyVoucherBody, options?: RequestOptions): ResponsePromise<PostLoyaltyVoucherResponse>;
6050
+ /**
6051
+ * GET /loyalty/vouchers/{id} - Get voucher by ID with campaign info and redemption count
6052
+ *
6053
+ * @param id
6054
+ * @param options - additional request options
6055
+ */
6056
+ get_loyalty_voucher(id: string, options?: RequestOptions): ResponsePromise<GetLoyaltyVoucherResponse>;
6057
+ /**
6058
+ * PUT /loyalty/vouchers/{id} - Update a voucher
6059
+ *
6060
+ * @param id
6061
+ * @param body
6062
+ * @param options - additional request options
6063
+ */
6064
+ put_loyalty_voucher(id: string, body: PutLoyaltyVoucherBody, options?: RequestOptions): ResponsePromise<PutLoyaltyVoucherResponse>;
6065
+ /**
6066
+ * DELETE /loyalty/vouchers/{id} - Soft-delete a voucher
6067
+ *
6068
+ * @param id
6069
+ * @param options - additional request options
6070
+ */
6071
+ delete_loyalty_voucher(id: string, options?: RequestOptions): ResponsePromise<DeleteLoyaltyVoucherResponse>;
6072
+ /**
6073
+ * POST /loyalty/vouchers/{id}/revoke - Revoke a voucher with a required reason
6074
+ *
6075
+ * @param id
6076
+ * @param body
6077
+ * @param options - additional request options
6078
+ */
6079
+ post_loyalty_voucher_revoke(id: string, body: PostLoyaltyVoucherRevokeBody, options?: RequestOptions): ResponsePromise<PostLoyaltyVoucherRevokeResponse>;
6080
+ /**
6081
+ * POST /loyalty/vouchers/batch - Batch generate voucher codes for a campaign
6082
+ *
6083
+ * @param body
6084
+ * @param options - additional request options
6085
+ */
6086
+ post_loyalty_vouchers_batch(body: PostLoyaltyVouchersBatchBody, options?: RequestOptions): ResponsePromise<PostLoyaltyVouchersBatchResponse>;
6087
+ /**
6088
+ * GET /loyalty/vouchers/{id}/redemptions - Get redemption history for a voucher
6089
+ *
6090
+ * @param id
6091
+ * @param options - additional request options
6092
+ */
6093
+ get_loyalty_voucher_redemptions(id: string, options?: {
6094
+ query?: GetLoyaltyVoucherRedemptionsQuery;
6095
+ } & RequestOptions): ResponsePromise<GetLoyaltyVoucherRedemptionsResponse>;
6096
+ /**
6097
+ * POST /loyalty/vouchers/validate - Validate one or more voucher codes
6098
+ *
6099
+ * @param body
6100
+ * @param options - additional request options
6101
+ */
6102
+ post_loyalty_vouchers_validate(body: PostLoyaltyVouchersValidateBody, options?: RequestOptions): ResponsePromise<PostLoyaltyVouchersValidateResponse>;
6103
+ /**
6104
+ * POST /loyalty/vouchers/redeem - Redeem one or more voucher codes
6105
+ *
6106
+ * @param body
6107
+ * @param options - additional request options
6108
+ */
6109
+ post_loyalty_vouchers_redeem(body: PostLoyaltyVouchersRedeemBody, options?: RequestOptions): ResponsePromise<PostLoyaltyVouchersRedeemResponse>;
6110
+ /**
6111
+ * GET /loyalty/segments - List segments with optional filters
6112
+ *
6113
+ * @param options - additional request options
6114
+ */
6115
+ get_loyalty_segments(options?: {
6116
+ query?: GetLoyaltySegmentsQuery;
6117
+ } & RequestOptions): ResponsePromise<GetLoyaltySegmentsResponse>;
6118
+ /**
6119
+ * POST /loyalty/segments - Create a new segment
6120
+ *
6121
+ * @param body
6122
+ * @param options - additional request options
6123
+ */
6124
+ post_loyalty_segment(body: PostLoyaltySegmentBody, options?: RequestOptions): ResponsePromise<PostLoyaltySegmentResponse>;
6125
+ /**
6126
+ * GET /loyalty/segments/attributes - List available attributes for rule-based segments
6127
+ *
6128
+ * @param options - additional request options
6129
+ */
6130
+ get_loyalty_segment_attributes(options?: RequestOptions): ResponsePromise<GetLoyaltySegmentAttributesResponse>;
6131
+ /**
6132
+ * POST /loyalty/segments/preview-count - Preview how many customers match a segment rule
6133
+ *
6134
+ * @param body
6135
+ * @param options - additional request options
6136
+ */
6137
+ post_loyalty_segment_preview_count(body: PostLoyaltySegmentPreviewCountBody, options?: RequestOptions): ResponsePromise<PostLoyaltySegmentPreviewCountResponse>;
6138
+ /**
6139
+ * GET /loyalty/segments/{id} - Get segment by ID
6140
+ *
6141
+ * @param id
6142
+ * @param options - additional request options
6143
+ */
6144
+ get_loyalty_segment(id: string, options?: RequestOptions): ResponsePromise<GetLoyaltySegmentResponse>;
6145
+ /**
6146
+ * PATCH /loyalty/segments/{id} - Update a segment
6147
+ *
6148
+ * @param id
6149
+ * @param body
6150
+ * @param options - additional request options
6151
+ */
6152
+ patch_loyalty_segment(id: string, body: PatchLoyaltySegmentBody, options?: RequestOptions): ResponsePromise<PatchLoyaltySegmentResponse>;
6153
+ /**
6154
+ * DELETE /loyalty/segments/{id} - Soft-delete a segment
6155
+ *
6156
+ * @param id
6157
+ * @param options - additional request options
6158
+ */
6159
+ delete_loyalty_segment(id: string, options?: RequestOptions): ResponsePromise<DeleteLoyaltySegmentResponse>;
6160
+ /**
6161
+ * GET /loyalty/segments/{id}/members - List members of a static_list segment
6162
+ *
6163
+ * @param id
6164
+ * @param options - additional request options
6165
+ */
6166
+ get_loyalty_segment_members(id: string, options?: {
6167
+ query?: GetLoyaltySegmentMembersQuery;
6168
+ } & RequestOptions): ResponsePromise<GetLoyaltySegmentMembersResponse>;
6169
+ /**
6170
+ * POST /loyalty/segments/{id}/members - Add members to a segment
6171
+ *
6172
+ * @param id
6173
+ * @param body
6174
+ * @param options - additional request options
6175
+ */
6176
+ post_loyalty_segment_members(id: string, body: PostLoyaltySegmentMembersBody, options?: RequestOptions): ResponsePromise<PostLoyaltySegmentMembersResponse>;
6177
+ /**
6178
+ * DELETE /loyalty/segments/{id}/members - Remove members from a segment
6179
+ *
6180
+ * @param id
6181
+ * @param body
6182
+ * @param options - additional request options
6183
+ */
6184
+ delete_loyalty_segment_members(id: string, body: DeleteLoyaltySegmentMembersBody, options?: RequestOptions): ResponsePromise<DeleteLoyaltySegmentMembersResponse>;
6185
+ /**
6186
+ * POST /loyalty/redemptions/{id}/rollback - Roll back a redemption and restore the voucher
6187
+ *
6188
+ * @param id
6189
+ * @param body
6190
+ * @param options - additional request options
6191
+ */
6192
+ post_loyalty_redemption_rollback(id: string, body: PostLoyaltyRedemptionRollbackBody, options?: RequestOptions): ResponsePromise<PostLoyaltyRedemptionRollbackResponse>;
6193
+ /**
6194
+ * GET /loyalty/rewards - List rewards with filters and pagination
6195
+ *
6196
+ * @param options - additional request options
6197
+ */
6198
+ get_loyalty_rewards(options?: {
6199
+ query?: GetLoyaltyRewardsQuery;
6200
+ } & RequestOptions): ResponsePromise<GetLoyaltyRewardsResponse>;
6201
+ /**
6202
+ * POST /loyalty/rewards - Create a reward with earning rules and milestones
6203
+ *
6204
+ * @param body
6205
+ * @param options - additional request options
6206
+ */
6207
+ post_loyalty_reward(body: PostLoyaltyRewardBody, options?: RequestOptions): ResponsePromise<PostLoyaltyRewardResponse>;
6208
+ /**
6209
+ * GET /loyalty/rewards/{id} - Get reward detail with earning rules and milestones
6210
+ *
6211
+ * @param id
6212
+ * @param options - additional request options
6213
+ */
6214
+ get_loyalty_reward(id: string, options?: RequestOptions): ResponsePromise<GetLoyaltyRewardResponse>;
6215
+ /**
6216
+ * PUT /loyalty/rewards/{id} - Update a reward and replace its earning rules and milestones
6217
+ *
6218
+ * @param id
6219
+ * @param body
6220
+ * @param options - additional request options
6221
+ */
6222
+ put_loyalty_reward(id: string, body: PutLoyaltyRewardBody, options?: RequestOptions): ResponsePromise<PutLoyaltyRewardResponse>;
6223
+ /**
6224
+ * PATCH /loyalty/rewards/{id}/status - Transition reward status
6225
+ *
6226
+ * @param id
6227
+ * @param body
6228
+ * @param options - additional request options
6229
+ */
6230
+ patch_loyalty_reward_status(id: string, body: PatchLoyaltyRewardStatusBody, options?: RequestOptions): ResponsePromise<PatchLoyaltyRewardStatusResponse>;
6231
+ /**
6232
+ * GET /loyalty/rewards/{id}/cards - List enrolled customer cards for a reward
6233
+ *
6234
+ * @param id
6235
+ * @param options - additional request options
6236
+ */
6237
+ get_loyalty_reward_cards(id: string, options?: {
6238
+ query?: GetLoyaltyRewardCardsQuery;
6239
+ } & RequestOptions): ResponsePromise<GetLoyaltyRewardCardsResponse>;
6240
+ /**
6241
+ * GET /loyalty/rewards/{id}/cards/{customerId} - Get card detail with transaction event history
6242
+ *
6243
+ * @param id
6244
+ * @param customerId
6245
+ * @param options - additional request options
6246
+ */
6247
+ get_loyalty_reward_card(id: string, customerId: string, options?: RequestOptions): ResponsePromise<GetLoyaltyRewardCardResponse>;
6248
+ /**
6249
+ * POST /loyalty/rewards/cards/{cardId}/adjust - Manual point adjustment on a reward card
6250
+ *
6251
+ * @param cardId
6252
+ * @param body
6253
+ * @param options - additional request options
6254
+ */
6255
+ post_loyalty_reward_card_adjust(cardId: string, body: PostLoyaltyRewardCardAdjustBody, options?: RequestOptions): ResponsePromise<PostLoyaltyRewardCardAdjustResponse>;
6256
+ /**
6257
+ * POST /loyalty/rewards/orders/earn - Evaluate an order against active reward rules and award points idempotently
6258
+ *
6259
+ * @param body
6260
+ * @param options - additional request options
6261
+ */
6262
+ post_loyalty_reward_order_earn(body: PostLoyaltyRewardOrderEarnBody, options?: RequestOptions): ResponsePromise<PostLoyaltyRewardOrderEarnResponse>;
5945
6263
  /**
5946
6264
  * GET /timeslots/brand/{brandId} - Get timeslots for brand
5947
6265
  *