@compassdigital/sdk.typescript 4.158.0 → 4.159.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.
@@ -7,7 +7,7 @@ export interface SendPushNotificationCommand {
7
7
  traceId?: string;
8
8
  };
9
9
  payload: {
10
- notification?: {
10
+ notification: {
11
11
  targets: string[];
12
12
  createdAt: string;
13
13
  updatedAt: string;
@@ -1 +1 @@
1
- {"version":3,"file":"SendPushNotificationCommand.d.ts","sourceRoot":"","sources":["../../../src/messages/commands/SendPushNotificationCommand.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,2BAA2B;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,6BAA6B,CAAC;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE;QACR,YAAY,CAAC,EAAE;YACd,OAAO,EAAE,MAAM,EAAE,CAAC;YAClB,SAAS,EAAE,MAAM,CAAC;YAClB,SAAS,EAAE,MAAM,CAAC;YAClB,KAAK,EAAE,MAAM,CAAC;YACd,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;SAC3B,CAAC;KACF,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CACf"}
1
+ {"version":3,"file":"SendPushNotificationCommand.d.ts","sourceRoot":"","sources":["../../../src/messages/commands/SendPushNotificationCommand.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,2BAA2B;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,6BAA6B,CAAC;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE;QACR,YAAY,EAAE;YACb,OAAO,EAAE,MAAM,EAAE,CAAC;YAClB,SAAS,EAAE,MAAM,CAAC;YAClB,SAAS,EAAE,MAAM,CAAC;YAClB,KAAK,EAAE,MAAM,CAAC;YACd,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;SAC3B,CAAC;KACF,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CACf"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.158.0",
3
+ "version": "4.159.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -909,7 +909,11 @@ import {
909
909
  PostMenuV4BrandResponse,
910
910
  GetMenuV4BrandQuery,
911
911
  GetMenuV4BrandResponse,
912
+ PatchMenuV4BrandBody,
913
+ PatchMenuV4BrandResponse,
912
914
  DeleteMenuV4BrandResponse,
915
+ PostMenuV4BrandAttachmentQuery,
916
+ PostMenuV4BrandAttachmentResponse,
913
917
  PostMenuV4BrandMenuBody,
914
918
  PostMenuV4BrandMenuResponse,
915
919
  PatchMenuV4BrandMenuBody,
@@ -9883,6 +9887,28 @@ export class ServiceClient extends BaseServiceClient {
9883
9887
  );
9884
9888
  }
9885
9889
 
9890
+ /**
9891
+ * PATCH /menu/v4/brand/{id}
9892
+ *
9893
+ * @param id
9894
+ * @param body
9895
+ * @param options - additional request options
9896
+ */
9897
+ patch_menu_v4_brand(
9898
+ id: string,
9899
+ body: PatchMenuV4BrandBody,
9900
+ options?: RequestOptions,
9901
+ ): ResponsePromise<PatchMenuV4BrandResponse> {
9902
+ return this.request(
9903
+ 'menu',
9904
+ '/menu/v4/brand/{id}',
9905
+ 'PATCH',
9906
+ `/menu/v4/brand/${id}`,
9907
+ body,
9908
+ options,
9909
+ );
9910
+ }
9911
+
9886
9912
  /**
9887
9913
  * DELETE /menu/v4/brand/{id}
9888
9914
  *
@@ -9903,6 +9929,30 @@ export class ServiceClient extends BaseServiceClient {
9903
9929
  );
9904
9930
  }
9905
9931
 
9932
+ /**
9933
+ * POST /menu/v4/brand/{id}/attachment/{name}
9934
+ *
9935
+ * @param id
9936
+ * @param name
9937
+ * @param options - additional request options
9938
+ */
9939
+ post_menu_v4_brand_attachment(
9940
+ id: string,
9941
+ name: 'thumbnail',
9942
+ options?: {
9943
+ query?: PostMenuV4BrandAttachmentQuery;
9944
+ } & RequestOptions,
9945
+ ): ResponsePromise<PostMenuV4BrandAttachmentResponse> {
9946
+ return this.request(
9947
+ 'menu',
9948
+ '/menu/v4/brand/{id}/attachment/{name}',
9949
+ 'POST',
9950
+ `/menu/v4/brand/${id}/attachment/${name}`,
9951
+ null,
9952
+ options,
9953
+ );
9954
+ }
9955
+
9906
9956
  /**
9907
9957
  * POST /menu/v4/brand/{id}/menu
9908
9958
  *
@@ -886,8 +886,7 @@ export interface PostOrderResponseDto {
886
886
  location?: string;
887
887
  // Shopping cart ID
888
888
  shoppingcart?: string;
889
- // Payment details
890
- payment?: Record<string, any>;
889
+ payment?: OrderPayment;
891
890
  mealplan?: OrderMealplan;
892
891
  meal_swipes?: OrderMealSwipes;
893
892
  meal_exchange?: OrderMealplan;
@@ -7578,6 +7578,99 @@ export interface GetMenuV4BrandRequest
7578
7578
  RequestQuery<GetMenuV4BrandQuery>,
7579
7579
  GetMenuV4BrandPath {}
7580
7580
 
7581
+ // PATCH /menu/v4/brand/{id}
7582
+
7583
+ export interface PatchMenuV4BrandPath {
7584
+ id: string;
7585
+ }
7586
+
7587
+ export interface PatchMenuV4BrandBody {
7588
+ parent?: DraftBrandDTO;
7589
+ children?: DraftBrandDTO[];
7590
+ menus?: DraftMenuDTO[];
7591
+ categories?: DraftCategoryDTO[];
7592
+ category_to_item_relationships?: DraftCategoryToItemRelationshipDTO[];
7593
+ items?: DraftItemDTO[];
7594
+ item_to_modifier_group_relationships?: DraftItemToModifierGroupRelationshipDTO[];
7595
+ modifier_groups?: DraftModifierGroupDTO[];
7596
+ modifier_group_to_modifier_relationships?: DraftModifierGroupToModifierRelationshipDTO[];
7597
+ modifiers?: DraftModifierDTO[];
7598
+ statuses?: BrandStatusDTO[];
7599
+ audit_logs?: AuditDTO[];
7600
+ catalog_id?: number;
7601
+ published_catalog_id?: number;
7602
+ stocks?: StockDTO[];
7603
+ name: string;
7604
+ description?: string;
7605
+ is_active?: boolean;
7606
+ type?: 'global' | 'local';
7607
+ parent_id?: string;
7608
+ local_menu_group_id?: string;
7609
+ global_menu_group_id?: string;
7610
+ posid_segment?: string;
7611
+ is_simplified_view?: boolean;
7612
+ auto_push_to_local?: boolean;
7613
+ frictionless_partner?: string;
7614
+ meta?: BrandMeta;
7615
+ supported_languages?: SupportedLanguages;
7616
+ applied_diff_snapshot?: Record<string, any>;
7617
+ changes?: BrandChangeDTO[];
7618
+ local_menu_group?: LocalMenuGroupDTO;
7619
+ global_menu_group?: GlobalMenuGroupDTO;
7620
+ vendor_metadata?: VendorMetadataDTO[];
7621
+ attachments?: FileAttachmentsDTO;
7622
+ permissions?: Record<string, any>;
7623
+ [index: string]: any;
7624
+ }
7625
+
7626
+ export interface PatchMenuV4BrandResponse {
7627
+ parent?: DraftBrandDTO;
7628
+ children?: DraftBrandDTO[];
7629
+ menus?: DraftMenuDTO[];
7630
+ categories?: DraftCategoryDTO[];
7631
+ category_to_item_relationships?: DraftCategoryToItemRelationshipDTO[];
7632
+ items?: DraftItemDTO[];
7633
+ item_to_modifier_group_relationships?: DraftItemToModifierGroupRelationshipDTO[];
7634
+ modifier_groups?: DraftModifierGroupDTO[];
7635
+ modifier_group_to_modifier_relationships?: DraftModifierGroupToModifierRelationshipDTO[];
7636
+ modifiers?: DraftModifierDTO[];
7637
+ statuses?: BrandStatusDTO[];
7638
+ audit_logs?: AuditDTO[];
7639
+ catalog_id?: number;
7640
+ published_catalog_id?: number;
7641
+ stocks?: StockDTO[];
7642
+ id: string;
7643
+ created_at?: string;
7644
+ updated_at?: string;
7645
+ deleted_at?: string;
7646
+ name: string;
7647
+ description?: string;
7648
+ is_active?: boolean;
7649
+ type?: 'global' | 'local';
7650
+ parent_id?: string;
7651
+ local_menu_group_id?: string;
7652
+ global_menu_group_id?: string;
7653
+ posid_segment?: string;
7654
+ is_simplified_view?: boolean;
7655
+ auto_push_to_local?: boolean;
7656
+ frictionless_partner?: string;
7657
+ meta?: BrandMeta;
7658
+ supported_languages?: SupportedLanguages;
7659
+ applied_diff_snapshot?: Record<string, any>;
7660
+ version?: number;
7661
+ changes?: BrandChangeDTO[];
7662
+ local_menu_group?: LocalMenuGroupDTO;
7663
+ global_menu_group?: GlobalMenuGroupDTO;
7664
+ vendor_metadata?: VendorMetadataDTO[];
7665
+ attachments?: FileAttachmentsDTO;
7666
+ permissions?: Record<string, any>;
7667
+ [index: string]: any;
7668
+ }
7669
+
7670
+ export interface PatchMenuV4BrandRequest extends BaseRequest, PatchMenuV4BrandPath {
7671
+ body: PatchMenuV4BrandBody;
7672
+ }
7673
+
7581
7674
  // DELETE /menu/v4/brand/{id}
7582
7675
 
7583
7676
  export interface DeleteMenuV4BrandPath {
@@ -7630,6 +7723,26 @@ export interface DeleteMenuV4BrandResponse {
7630
7723
 
7631
7724
  export interface DeleteMenuV4BrandRequest extends BaseRequest, DeleteMenuV4BrandPath {}
7632
7725
 
7726
+ // POST /menu/v4/brand/{id}/attachment/{name}
7727
+
7728
+ export interface PostMenuV4BrandAttachmentPath {
7729
+ name: 'thumbnail';
7730
+ id: string;
7731
+ }
7732
+
7733
+ export interface PostMenuV4BrandAttachmentQuery {
7734
+ 'body.data'?: string;
7735
+ }
7736
+
7737
+ export interface PostMenuV4BrandAttachmentResponse {
7738
+ status?: string;
7739
+ }
7740
+
7741
+ export interface PostMenuV4BrandAttachmentRequest
7742
+ extends BaseRequest,
7743
+ RequestQuery<PostMenuV4BrandAttachmentQuery>,
7744
+ PostMenuV4BrandAttachmentPath {}
7745
+
7633
7746
  // POST /menu/v4/brand/{id}/menu
7634
7747
 
7635
7748
  export interface PostMenuV4BrandMenuPath {
@@ -9,7 +9,7 @@ export interface SendPushNotificationCommand {
9
9
  traceId?: string;
10
10
  };
11
11
  payload: {
12
- notification?: {
12
+ notification: {
13
13
  targets: string[];
14
14
  createdAt: string;
15
15
  updatedAt: string;