@orderingstack/ordering-types 1.28.1 → 1.29.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.
@@ -664,6 +664,7 @@ export interface IFiscalizeData {
664
664
  export declare const sizes: readonly [48, 57, 70, 100, 160, 250, 300, 500, 600, 900, 1000, 1920, 1080, 900];
665
665
  export type TMediaSize = (typeof sizes)[number];
666
666
  export declare enum ENotificationType {
667
+ ORDER_MESSAGE = "OrderMessage",
667
668
  ORDER_EVENT_ERROR = "OrderEventError",
668
669
  ORDER_APPLIED_EVENTS = "OrderAppliedEvents",
669
670
  ORDER_EVENT_FISCAL = "OrderEventFiscal",
@@ -744,3 +745,25 @@ export interface IModuleCommonConfig {
744
745
  [key: string]: string;
745
746
  };
746
747
  }
748
+ export type ISODateTimeString = `${number}-${number}-${number}T${number}:${number}:${number}Z`;
749
+ export interface IUserData {
750
+ active: boolean;
751
+ authStrategies: any[];
752
+ consents?: {
753
+ TERMS_AND_CONDITIONS?: ISODateTimeString | undefined;
754
+ COMMUNICATION_EMAIL?: ISODateTimeString | undefined;
755
+ COMMUNICATION_EMAIL_MARKETING?: ISODateTimeString | undefined;
756
+ } & Record<string, ISODateTimeString | undefined>;
757
+ failedAttempts: number;
758
+ firstName?: string;
759
+ id?: string;
760
+ lastName?: string;
761
+ login: string;
762
+ mfa?: boolean;
763
+ phone?: string;
764
+ properties: any;
765
+ pushId?: string;
766
+ roles: any[];
767
+ trusted?: boolean;
768
+ UUID: string;
769
+ }
package/dist/cjs/index.js CHANGED
@@ -173,6 +173,7 @@ exports.sizes = [
173
173
  ];
174
174
  var ENotificationType;
175
175
  (function (ENotificationType) {
176
+ ENotificationType["ORDER_MESSAGE"] = "OrderMessage";
176
177
  ENotificationType["ORDER_EVENT_ERROR"] = "OrderEventError";
177
178
  ENotificationType["ORDER_APPLIED_EVENTS"] = "OrderAppliedEvents";
178
179
  ENotificationType["ORDER_EVENT_FISCAL"] = "OrderEventFiscal";
@@ -664,6 +664,7 @@ export interface IFiscalizeData {
664
664
  export declare const sizes: readonly [48, 57, 70, 100, 160, 250, 300, 500, 600, 900, 1000, 1920, 1080, 900];
665
665
  export type TMediaSize = (typeof sizes)[number];
666
666
  export declare enum ENotificationType {
667
+ ORDER_MESSAGE = "OrderMessage",
667
668
  ORDER_EVENT_ERROR = "OrderEventError",
668
669
  ORDER_APPLIED_EVENTS = "OrderAppliedEvents",
669
670
  ORDER_EVENT_FISCAL = "OrderEventFiscal",
@@ -744,3 +745,25 @@ export interface IModuleCommonConfig {
744
745
  [key: string]: string;
745
746
  };
746
747
  }
748
+ export type ISODateTimeString = `${number}-${number}-${number}T${number}:${number}:${number}Z`;
749
+ export interface IUserData {
750
+ active: boolean;
751
+ authStrategies: any[];
752
+ consents?: {
753
+ TERMS_AND_CONDITIONS?: ISODateTimeString | undefined;
754
+ COMMUNICATION_EMAIL?: ISODateTimeString | undefined;
755
+ COMMUNICATION_EMAIL_MARKETING?: ISODateTimeString | undefined;
756
+ } & Record<string, ISODateTimeString | undefined>;
757
+ failedAttempts: number;
758
+ firstName?: string;
759
+ id?: string;
760
+ lastName?: string;
761
+ login: string;
762
+ mfa?: boolean;
763
+ phone?: string;
764
+ properties: any;
765
+ pushId?: string;
766
+ roles: any[];
767
+ trusted?: boolean;
768
+ UUID: string;
769
+ }
package/dist/esm/index.js CHANGED
@@ -156,6 +156,7 @@ export const sizes = [
156
156
  ];
157
157
  export var ENotificationType;
158
158
  (function (ENotificationType) {
159
+ ENotificationType["ORDER_MESSAGE"] = "OrderMessage";
159
160
  ENotificationType["ORDER_EVENT_ERROR"] = "OrderEventError";
160
161
  ENotificationType["ORDER_APPLIED_EVENTS"] = "OrderAppliedEvents";
161
162
  ENotificationType["ORDER_EVENT_FISCAL"] = "OrderEventFiscal";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/ordering-types",
3
- "version": "1.28.1",
3
+ "version": "1.29.0",
4
4
  "description": "Typescript types for @orderingstack",
5
5
  "types": "dist/esm/index.d.ts",
6
6
  "main": "dist/cjs/index.js",