@orderingstack/ordering-types 1.4.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.
- package/dist/cjs/index.d.ts +24 -1
- package/dist/esm/index.d.ts +24 -1
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -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 =
|
|
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
|
+
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -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 =
|
|
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
|
+
}
|