@orderingstack/ordering-types 1.3.0 → 1.6.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.
@@ -505,7 +505,7 @@ export declare enum ENotificationType {
505
505
  ORDER_EVENT_FISCAL = "OrderEventFiscal",
506
506
  ORDER_UPSELL = "OrderUpsell"
507
507
  }
508
- export type TUpsellKind = 'ANY' | 'POPUP' | 'SIDE' | 'BASKET';
508
+ export type TUpsellKind = "ANY" | "POPUP" | "SIDE" | "BASKET";
509
509
  export interface IUpsellNotification {
510
510
  details: {
511
511
  literals?: Record<string, string>;
@@ -519,3 +519,26 @@ export interface IUpsellNotification {
519
519
  showAs: TUpsellKind;
520
520
  type: ENotificationType.ORDER_UPSELL;
521
521
  }
522
+ /**
523
+ * @interface INotificationMessage
524
+ * correlationId can be directly in correlationId property, event.correlationId or events array
525
+ */
526
+ export interface INotificationMessage {
527
+ type: ENotificationType;
528
+ users?: string[];
529
+ orderId: string;
530
+ correlationId?: string;
531
+ event?: {
532
+ correlationId: string;
533
+ user?: string;
534
+ orderId?: string;
535
+ };
536
+ events?: string[];
537
+ message?: string;
538
+ codes?: {
539
+ code: string;
540
+ message: string;
541
+ args?: string[];
542
+ }[];
543
+ fiscal?: IFiscalData;
544
+ }
@@ -182,6 +182,7 @@ export interface IMenuProductUIProps {
182
182
  handleCounterDecrementQty: () => void;
183
183
  currency: string;
184
184
  children: ReactElement;
185
+ parentProduct?: IProduct;
185
186
  }
186
187
  export interface IMenuItemsUIProps {
187
188
  productItems: IProduct[];
@@ -505,7 +505,7 @@ export declare enum ENotificationType {
505
505
  ORDER_EVENT_FISCAL = "OrderEventFiscal",
506
506
  ORDER_UPSELL = "OrderUpsell"
507
507
  }
508
- export type TUpsellKind = 'ANY' | 'POPUP' | 'SIDE' | 'BASKET';
508
+ export type TUpsellKind = "ANY" | "POPUP" | "SIDE" | "BASKET";
509
509
  export interface IUpsellNotification {
510
510
  details: {
511
511
  literals?: Record<string, string>;
@@ -519,3 +519,26 @@ export interface IUpsellNotification {
519
519
  showAs: TUpsellKind;
520
520
  type: ENotificationType.ORDER_UPSELL;
521
521
  }
522
+ /**
523
+ * @interface INotificationMessage
524
+ * correlationId can be directly in correlationId property, event.correlationId or events array
525
+ */
526
+ export interface INotificationMessage {
527
+ type: ENotificationType;
528
+ users?: string[];
529
+ orderId: string;
530
+ correlationId?: string;
531
+ event?: {
532
+ correlationId: string;
533
+ user?: string;
534
+ orderId?: string;
535
+ };
536
+ events?: string[];
537
+ message?: string;
538
+ codes?: {
539
+ code: string;
540
+ message: string;
541
+ args?: string[];
542
+ }[];
543
+ fiscal?: IFiscalData;
544
+ }
@@ -182,6 +182,7 @@ export interface IMenuProductUIProps {
182
182
  handleCounterDecrementQty: () => void;
183
183
  currency: string;
184
184
  children: ReactElement;
185
+ parentProduct?: IProduct;
185
186
  }
186
187
  export interface IMenuItemsUIProps {
187
188
  productItems: IProduct[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/ordering-types",
3
- "version": "1.3.0",
3
+ "version": "1.6.0",
4
4
  "description": "Typescript types for @orderingstack",
5
5
  "types": "dist/esm/index.d.ts",
6
6
  "main": "dist/cjs/index.js",