@leatcom/portal-sessions 0.0.75-beta.1 → 0.0.75-beta.2
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/portal-sessions.es.d.ts +14 -28
- package/package.json +1 -1
|
@@ -24,12 +24,8 @@ declare type ContactResource = {
|
|
|
24
24
|
subscriptions: Array<Subscription>;
|
|
25
25
|
credit_balance: CreditBalance;
|
|
26
26
|
prepaid_balance: PrepaidBalance;
|
|
27
|
-
current_values: {
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
current_display_values: {
|
|
31
|
-
[key: string]: string;
|
|
32
|
-
};
|
|
27
|
+
current_values: { [key: string]: string | number };
|
|
28
|
+
current_display_values: { [key: string]: string };
|
|
33
29
|
};
|
|
34
30
|
|
|
35
31
|
declare type CreditBalance = {
|
|
@@ -46,7 +42,7 @@ export declare type DefaultSessionProps = {
|
|
|
46
42
|
|
|
47
43
|
declare enum FacingMode {
|
|
48
44
|
USER = "user",
|
|
49
|
-
ENVIRONMENT = "environment"
|
|
45
|
+
ENVIRONMENT = "environment",
|
|
50
46
|
}
|
|
51
47
|
|
|
52
48
|
declare type GiftcardTransactionResource = {
|
|
@@ -55,16 +51,9 @@ declare type GiftcardTransactionResource = {
|
|
|
55
51
|
amount_in_cents: number;
|
|
56
52
|
type: string;
|
|
57
53
|
settled: boolean;
|
|
58
|
-
card: {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
};
|
|
62
|
-
shop: {
|
|
63
|
-
id: number;
|
|
64
|
-
uuid: string;
|
|
65
|
-
name: string;
|
|
66
|
-
};
|
|
67
|
-
settlements: [];
|
|
54
|
+
card: { id: number; uuid: string };
|
|
55
|
+
shop: { id: number; uuid: string; name: string };
|
|
56
|
+
settlements: []; // GiftcardTransactionSettlementResource
|
|
68
57
|
created_at: string;
|
|
69
58
|
};
|
|
70
59
|
|
|
@@ -111,7 +100,7 @@ declare enum PortalType {
|
|
|
111
100
|
PAY_PREPAID = "PAY_PREPAID",
|
|
112
101
|
TOP_UP_PREPAID = "TOP_UP_PREPAID",
|
|
113
102
|
POINTS_TRANSACTION = "POINTS_TRANSACTION",
|
|
114
|
-
VOUCHER = "VOUCHER"
|
|
103
|
+
VOUCHER = "VOUCHER",
|
|
115
104
|
}
|
|
116
105
|
|
|
117
106
|
declare type PrepaidBalance = {
|
|
@@ -120,7 +109,7 @@ declare type PrepaidBalance = {
|
|
|
120
109
|
|
|
121
110
|
declare enum PrimaryIdentificationMethod {
|
|
122
111
|
IDENTIFIER = "identifier",
|
|
123
|
-
EMAIL = "email"
|
|
112
|
+
EMAIL = "email",
|
|
124
113
|
}
|
|
125
114
|
|
|
126
115
|
declare type Promotion = {
|
|
@@ -131,9 +120,7 @@ declare type Promotion = {
|
|
|
131
120
|
limit_per_contact: number;
|
|
132
121
|
expiration_duration: number;
|
|
133
122
|
image: Image_2;
|
|
134
|
-
} & {
|
|
135
|
-
[p: string]: string | boolean | number;
|
|
136
|
-
};
|
|
123
|
+
} & { [p: string]: string | boolean | number };
|
|
137
124
|
|
|
138
125
|
declare type RewardResource = {
|
|
139
126
|
uuid: string;
|
|
@@ -145,9 +132,7 @@ declare type RewardResource = {
|
|
|
145
132
|
media: Media;
|
|
146
133
|
reward_type: string;
|
|
147
134
|
stock: number;
|
|
148
|
-
} & {
|
|
149
|
-
[attributeKey: string]: string | number | boolean;
|
|
150
|
-
};
|
|
135
|
+
} & { [attributeKey: string]: string | number | boolean };
|
|
151
136
|
|
|
152
137
|
declare type Subscription = {
|
|
153
138
|
is_subscribed: boolean;
|
|
@@ -165,18 +150,19 @@ declare type Subscription = {
|
|
|
165
150
|
declare enum SubscriptionStatus {
|
|
166
151
|
SUBSCRIBED = "SUBSCRIBED",
|
|
167
152
|
UNSUBSCRIBED = "UNSUBSCRIBED",
|
|
168
|
-
PENDING_CONFIRMATION = "PENDING_CONFIRMATION"
|
|
153
|
+
PENDING_CONFIRMATION = "PENDING_CONFIRMATION",
|
|
169
154
|
}
|
|
170
155
|
|
|
171
156
|
declare enum SubscriptionStrategy {
|
|
172
157
|
OPT_OUT = "OPT_OUT",
|
|
173
158
|
OPT_IN = "OPT_IN",
|
|
174
159
|
DOUBLE_OPT_IN = "DOUBLE_OPT_IN",
|
|
175
|
-
FUNCTIONAL = "FUNCTIONAL"
|
|
160
|
+
FUNCTIONAL = "FUNCTIONAL",
|
|
176
161
|
}
|
|
177
162
|
|
|
178
163
|
declare type Tier = {
|
|
179
164
|
description: string;
|
|
165
|
+
// media:
|
|
180
166
|
name: string;
|
|
181
167
|
position: number;
|
|
182
168
|
uuid: string;
|
|
@@ -207,7 +193,7 @@ declare enum VoucherStatus {
|
|
|
207
193
|
EXPIRED = "EXPIRED",
|
|
208
194
|
LOCKED = "LOCKED",
|
|
209
195
|
REDEEMED = "REDEEMED",
|
|
210
|
-
DEACTIVATED = "DEACTIVATED"
|
|
196
|
+
DEACTIVATED = "DEACTIVATED",
|
|
211
197
|
}
|
|
212
198
|
|
|
213
199
|
export { }
|