@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.339.0",
3
+ "version": "4.341.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
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
- options: {
14885
- query: GetRewardsQuery;
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
  }
@@ -595,11 +595,11 @@ export interface GetOneOptionsDTO {
595
595
 
596
596
  export interface LocalMenuLabelGroupDTO {
597
597
  // Global menu group ID
598
- gmg_id: string;
598
+ gmg_id?: string;
599
599
  // Global menu group name
600
- gmg_name: string;
600
+ gmg_name?: string;
601
601
  // Menu labels array
602
- labels: MenuLabelItemDTO[];
602
+ labels?: MenuLabelItemDTO[];
603
603
  [index: string]: any;
604
604
  }
605
605