@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.
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/kiosk.d.ts +1 -0
- package/dist/cjs/loyalty.d.ts +102 -0
- package/dist/cjs/loyalty.js +2 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/kiosk.d.ts +1 -0
- package/dist/esm/loyalty.d.ts +102 -0
- package/dist/esm/loyalty.js +1 -0
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
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";
|
package/dist/cjs/kiosk.d.ts
CHANGED
|
@@ -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 {};
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/esm/kiosk.d.ts
CHANGED
|
@@ -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 {};
|