@compassdigital/sdk.typescript 4.339.0 → 4.341.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 +4 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -3
- package/lib/index.js.map +1 -1
- package/lib/interface/discount.d.ts +3 -1
- package/lib/interface/discount.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +3 -3
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +7 -5
- package/src/interface/discount.ts +6 -3
- package/src/interface/menu.ts +3 -3
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -14876,20 +14876,22 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14876
14876
|
}
|
|
14877
14877
|
|
|
14878
14878
|
/**
|
|
14879
|
-
* GET /discount/rewards - Get eligible rewards for a customer and site
|
|
14879
|
+
* GET /discount/site/{id}/rewards - Get eligible rewards for a customer and site
|
|
14880
14880
|
*
|
|
14881
|
+
* @param id - Site ID
|
|
14881
14882
|
* @param options - additional request options
|
|
14882
14883
|
*/
|
|
14883
14884
|
get_rewards(
|
|
14884
|
-
|
|
14885
|
-
|
|
14885
|
+
id: string,
|
|
14886
|
+
options?: {
|
|
14887
|
+
query?: GetRewardsQuery;
|
|
14886
14888
|
} & RequestOptions,
|
|
14887
14889
|
): ResponsePromise<GetRewardsResponse> {
|
|
14888
14890
|
return this.request(
|
|
14889
14891
|
'discount',
|
|
14890
|
-
'/discount/rewards',
|
|
14892
|
+
'/discount/site/{id}/rewards',
|
|
14891
14893
|
'GET',
|
|
14892
|
-
`/discount/rewards`,
|
|
14894
|
+
`/discount/site/${id}/rewards`,
|
|
14893
14895
|
null,
|
|
14894
14896
|
options,
|
|
14895
14897
|
);
|
|
@@ -449,13 +449,16 @@ export type PutDiscountPublishBody = PutDiscountPublishRequestDTO;
|
|
|
449
449
|
|
|
450
450
|
export type PutDiscountPublishResponse = PutDiscountPublishResponseDTO;
|
|
451
451
|
|
|
452
|
-
// GET /discount/rewards - Get eligible rewards for a customer and site
|
|
452
|
+
// GET /discount/site/{id}/rewards - Get eligible rewards for a customer and site
|
|
453
|
+
|
|
454
|
+
export interface GetRewardsPath {
|
|
455
|
+
// Site ID
|
|
456
|
+
id: string;
|
|
457
|
+
}
|
|
453
458
|
|
|
454
459
|
export interface GetRewardsQuery {
|
|
455
460
|
// Customer ID to fetch rewards for
|
|
456
461
|
customerId?: string;
|
|
457
|
-
// Site ID to filter rewards by
|
|
458
|
-
siteId: string;
|
|
459
462
|
// Graphql query string
|
|
460
463
|
_query?: string;
|
|
461
464
|
}
|
package/src/interface/menu.ts
CHANGED
|
@@ -595,11 +595,11 @@ export interface GetOneOptionsDTO {
|
|
|
595
595
|
|
|
596
596
|
export interface LocalMenuLabelGroupDTO {
|
|
597
597
|
// Global menu group ID
|
|
598
|
-
gmg_id
|
|
598
|
+
gmg_id?: string;
|
|
599
599
|
// Global menu group name
|
|
600
|
-
gmg_name
|
|
600
|
+
gmg_name?: string;
|
|
601
601
|
// Menu labels array
|
|
602
|
-
labels
|
|
602
|
+
labels?: MenuLabelItemDTO[];
|
|
603
603
|
[index: string]: any;
|
|
604
604
|
}
|
|
605
605
|
|