@orderingstack/ordering-types 1.13.0 → 1.14.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.
@@ -1,6 +1,7 @@
1
1
  export * from "./kiosk";
2
2
  export * from "./kioskErrors";
3
3
  export * from "./api";
4
+ export * from "./loyalty";
4
5
  export interface IRestaurant {
5
6
  id: string;
6
7
  name: string;
package/dist/cjs/index.js CHANGED
@@ -18,6 +18,7 @@ exports.ENotificationType = exports.EChannelName = exports.EOrderProductKind = e
18
18
  __exportStar(require("./kiosk"), exports);
19
19
  __exportStar(require("./kioskErrors"), exports);
20
20
  __exportStar(require("./api"), exports);
21
+ __exportStar(require("./loyalty"), exports);
21
22
  var ECouponViewType;
22
23
  (function (ECouponViewType) {
23
24
  ECouponViewType["CAROUSEL"] = "carousel";
@@ -70,6 +70,7 @@ export interface IMenuTileProps {
70
70
  isDisabled?: boolean;
71
71
  rewardsPrice?: ReactElement;
72
72
  isRewardsCategory?: boolean;
73
+ setCategoryWithScroll?: (ICategory: ICategory) => void;
73
74
  }
74
75
  export interface IMenuCategorySectionProps {
75
76
  category: IProduct;
@@ -0,0 +1,102 @@
1
+ import { IOrder } from "./index";
2
+ export interface Campaign {
3
+ /**
4
+ * @minLength 0
5
+ * @maxLength 64
6
+ * @pattern [a-zA-Z0-9_-]+
7
+ */
8
+ id: string;
9
+ initialized?: boolean;
10
+ /**
11
+ * @minLength 0
12
+ * @maxLength 128
13
+ */
14
+ name: string;
15
+ /**
16
+ * @maxItems 16
17
+ * @minItems 1
18
+ */
19
+ constraints: Constraint[];
20
+ /** @format date-time */
21
+ initializedAt?: string;
22
+ initializedBy?: string;
23
+ /** @format int64 */
24
+ cnt?: number;
25
+ /** @format date-time */
26
+ previewedAt?: string;
27
+ samples?: string[];
28
+ }
29
+ interface Constraint {
30
+ /**
31
+ * @minLength 0
32
+ * @maxLength 64
33
+ * @pattern ((counters|properties|venues|tags)\.[a-zA-Z0-9_-]+)|(header\.(firstName|created|lastOrder|birthdate))
34
+ */
35
+ field: string;
36
+ op: "EQ" | "NE" | "IN" | "GT" | "GTE" | "LT" | "LTE" | "EXISTS";
37
+ /**
38
+ * @maxItems 16
39
+ * @minItems 0
40
+ */
41
+ value?: string[];
42
+ }
43
+ interface AccountHeader {
44
+ phone?: string;
45
+ email?: string;
46
+ pushId?: string;
47
+ firstName?: string;
48
+ lastName?: string;
49
+ /** @format date */
50
+ birthdate?: string;
51
+ /** @format date-time */
52
+ created?: string;
53
+ /** @format date-time */
54
+ lastEvent?: string;
55
+ /** @format date-time */
56
+ lastLogged?: string;
57
+ /** @format date-time */
58
+ lastOrder?: string;
59
+ }
60
+ export interface ApiAccount {
61
+ id?: string;
62
+ card?: string;
63
+ mgm?: string;
64
+ header?: AccountHeader;
65
+ consents?: Consents;
66
+ /** @uniqueItems true */
67
+ tags?: string[];
68
+ /** @uniqueItems true */
69
+ importantTags?: string[];
70
+ /** @uniqueItems true */
71
+ venues?: string[];
72
+ properties?: Record<string, string>;
73
+ counters?: Record<string, number>;
74
+ relations?: Relation[];
75
+ openedOrders?: IOrder[];
76
+ previousOrders?: IOrder[];
77
+ /** @uniqueItems true */
78
+ coupons?: string[];
79
+ campaigns?: CampaignState[];
80
+ segment?: string;
81
+ }
82
+ interface CampaignState {
83
+ id?: string;
84
+ state?: string;
85
+ }
86
+ interface Consents {
87
+ scope: "ACCOUNT" | "TRANSACTION";
88
+ /**
89
+ * @minLength 0
90
+ * @maxLength 128
91
+ * @pattern [a-zA-Z0-9_.-]+
92
+ */
93
+ transaction?: string;
94
+ consents: Record<string, string>;
95
+ }
96
+ interface Relation {
97
+ id?: string;
98
+ /** @format date-time */
99
+ at?: string;
100
+ type?: "INVITED_BY" | "INVITED" | "FRIEND" | "UNKNOWN";
101
+ }
102
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,7 @@
1
1
  export * from "./kiosk";
2
2
  export * from "./kioskErrors";
3
3
  export * from "./api";
4
+ export * from "./loyalty";
4
5
  export interface IRestaurant {
5
6
  id: string;
6
7
  name: string;
package/dist/esm/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./kiosk";
2
2
  export * from "./kioskErrors";
3
3
  export * from "./api";
4
+ export * from "./loyalty";
4
5
  export var ECouponViewType;
5
6
  (function (ECouponViewType) {
6
7
  ECouponViewType["CAROUSEL"] = "carousel";
@@ -70,6 +70,7 @@ export interface IMenuTileProps {
70
70
  isDisabled?: boolean;
71
71
  rewardsPrice?: ReactElement;
72
72
  isRewardsCategory?: boolean;
73
+ setCategoryWithScroll?: (ICategory: ICategory) => void;
73
74
  }
74
75
  export interface IMenuCategorySectionProps {
75
76
  category: IProduct;
@@ -0,0 +1,102 @@
1
+ import { IOrder } from "./index";
2
+ export interface Campaign {
3
+ /**
4
+ * @minLength 0
5
+ * @maxLength 64
6
+ * @pattern [a-zA-Z0-9_-]+
7
+ */
8
+ id: string;
9
+ initialized?: boolean;
10
+ /**
11
+ * @minLength 0
12
+ * @maxLength 128
13
+ */
14
+ name: string;
15
+ /**
16
+ * @maxItems 16
17
+ * @minItems 1
18
+ */
19
+ constraints: Constraint[];
20
+ /** @format date-time */
21
+ initializedAt?: string;
22
+ initializedBy?: string;
23
+ /** @format int64 */
24
+ cnt?: number;
25
+ /** @format date-time */
26
+ previewedAt?: string;
27
+ samples?: string[];
28
+ }
29
+ interface Constraint {
30
+ /**
31
+ * @minLength 0
32
+ * @maxLength 64
33
+ * @pattern ((counters|properties|venues|tags)\.[a-zA-Z0-9_-]+)|(header\.(firstName|created|lastOrder|birthdate))
34
+ */
35
+ field: string;
36
+ op: "EQ" | "NE" | "IN" | "GT" | "GTE" | "LT" | "LTE" | "EXISTS";
37
+ /**
38
+ * @maxItems 16
39
+ * @minItems 0
40
+ */
41
+ value?: string[];
42
+ }
43
+ interface AccountHeader {
44
+ phone?: string;
45
+ email?: string;
46
+ pushId?: string;
47
+ firstName?: string;
48
+ lastName?: string;
49
+ /** @format date */
50
+ birthdate?: string;
51
+ /** @format date-time */
52
+ created?: string;
53
+ /** @format date-time */
54
+ lastEvent?: string;
55
+ /** @format date-time */
56
+ lastLogged?: string;
57
+ /** @format date-time */
58
+ lastOrder?: string;
59
+ }
60
+ export interface ApiAccount {
61
+ id?: string;
62
+ card?: string;
63
+ mgm?: string;
64
+ header?: AccountHeader;
65
+ consents?: Consents;
66
+ /** @uniqueItems true */
67
+ tags?: string[];
68
+ /** @uniqueItems true */
69
+ importantTags?: string[];
70
+ /** @uniqueItems true */
71
+ venues?: string[];
72
+ properties?: Record<string, string>;
73
+ counters?: Record<string, number>;
74
+ relations?: Relation[];
75
+ openedOrders?: IOrder[];
76
+ previousOrders?: IOrder[];
77
+ /** @uniqueItems true */
78
+ coupons?: string[];
79
+ campaigns?: CampaignState[];
80
+ segment?: string;
81
+ }
82
+ interface CampaignState {
83
+ id?: string;
84
+ state?: string;
85
+ }
86
+ interface Consents {
87
+ scope: "ACCOUNT" | "TRANSACTION";
88
+ /**
89
+ * @minLength 0
90
+ * @maxLength 128
91
+ * @pattern [a-zA-Z0-9_.-]+
92
+ */
93
+ transaction?: string;
94
+ consents: Record<string, string>;
95
+ }
96
+ interface Relation {
97
+ id?: string;
98
+ /** @format date-time */
99
+ at?: string;
100
+ type?: "INVITED_BY" | "INVITED" | "FRIEND" | "UNKNOWN";
101
+ }
102
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/ordering-types",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "Typescript types for @orderingstack",
5
5
  "types": "dist/esm/index.d.ts",
6
6
  "main": "dist/cjs/index.js",