@thryveai/theme-interfaces 1.4.8-beta3 → 1.4.8-beta4
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/admin-settings-interfaces.d.ts +0 -10
- package/admin-settings-template.js +85 -72
- package/package.json +1 -1
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
import { IDefaultCounty, IValidationType } from "./retailer-settings.interfaces";
|
|
2
2
|
export interface IAdminSettingsTemplate {
|
|
3
|
-
accountPage: {
|
|
4
|
-
loyaltyTab: {
|
|
5
|
-
disabledEdit: IAdminControl;
|
|
6
|
-
enabled: IAdminControl;
|
|
7
|
-
loyaltyNumberLength: IAdminControl;
|
|
8
|
-
loyaltyNumberPrefix: IAdminControl;
|
|
9
|
-
loyaltyValidationType: IAdminControl;
|
|
10
|
-
};
|
|
11
|
-
optional: boolean;
|
|
12
|
-
};
|
|
13
3
|
addressValidationTypes: IAdminControl;
|
|
14
4
|
allowInStorePurchases: IAdminControl;
|
|
15
5
|
allowPastPurchases: IAdminControl;
|
|
@@ -2,66 +2,70 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdminSettingsTemplate = void 0;
|
|
4
4
|
exports.AdminSettingsTemplate = {
|
|
5
|
-
accountPage: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
5
|
+
// accountPage: {
|
|
6
|
+
// loyaltyTab: {
|
|
7
|
+
// disabledEdit: {
|
|
8
|
+
// title: "Disable Edit",
|
|
9
|
+
// description: "Disable edit mode in loyalty tabs",
|
|
10
|
+
// helpLink:
|
|
11
|
+
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
12
|
+
// type: "checkbox",
|
|
13
|
+
// },
|
|
14
|
+
// enabled: {
|
|
15
|
+
// title: "Enable Loyalty",
|
|
16
|
+
// description: "Enable loyalty tab and functionality",
|
|
17
|
+
// helpLink:
|
|
18
|
+
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
19
|
+
// type: "checkbox",
|
|
20
|
+
// },
|
|
21
|
+
// loyaltyNumberLength: {
|
|
22
|
+
// title: "Loyalty Number Length",
|
|
23
|
+
// description: "Set the loyalty card character number length",
|
|
24
|
+
// helpLink:
|
|
25
|
+
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
26
|
+
// type: "inputNumber",
|
|
27
|
+
// },
|
|
28
|
+
// loyaltyNumberPrefix: {
|
|
29
|
+
// title: "Loyalty Number Prefix",
|
|
30
|
+
// description: "Set the loyalty card prefix",
|
|
31
|
+
// helpLink:
|
|
32
|
+
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
33
|
+
// type: "inputChar",
|
|
34
|
+
// },
|
|
35
|
+
// loyaltyValidationType: {
|
|
36
|
+
// title: "Loyalty Validation",
|
|
37
|
+
// description: "Select the loyalty validation types",
|
|
38
|
+
// helpLink:
|
|
39
|
+
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
40
|
+
// type: "multiDropdown",
|
|
41
|
+
// options: [
|
|
42
|
+
// "luhnValidation",
|
|
43
|
+
// "alphaNumeric",
|
|
44
|
+
// "alphaOnly",
|
|
45
|
+
// "numericOnly",
|
|
46
|
+
// "anyPhone",
|
|
47
|
+
// "email",
|
|
48
|
+
// "password",
|
|
49
|
+
// "required",
|
|
50
|
+
// "usPhone",
|
|
51
|
+
// "usMobileNumber",
|
|
52
|
+
// "caPhone",
|
|
53
|
+
// "auPhone",
|
|
54
|
+
// "iePhone",
|
|
55
|
+
// "caProvince",
|
|
56
|
+
// "usState",
|
|
57
|
+
// "auState",
|
|
58
|
+
// "ieCounty",
|
|
59
|
+
// "caPostCode",
|
|
60
|
+
// "usPostCode",
|
|
61
|
+
// "auPostCode",
|
|
62
|
+
// "iePostCode",
|
|
63
|
+
// "noSpecialChar",
|
|
64
|
+
// "correctDate",
|
|
65
|
+
// ],
|
|
66
|
+
// },
|
|
67
|
+
// },
|
|
68
|
+
// },
|
|
65
69
|
// advertSettings:{},
|
|
66
70
|
// addresses:{}
|
|
67
71
|
// addressIntegration
|
|
@@ -69,84 +73,91 @@ exports.AdminSettingsTemplate = {
|
|
|
69
73
|
addressValidationTypes: {
|
|
70
74
|
title: "Address Validation Types",
|
|
71
75
|
description: "Types of address validation",
|
|
72
|
-
type: "
|
|
76
|
+
type: "object",
|
|
73
77
|
value: {
|
|
74
78
|
addressLine1: {
|
|
75
79
|
title: "addressLine1",
|
|
76
80
|
description: "addressLine1",
|
|
77
|
-
type: "
|
|
81
|
+
type: "multiDropdown",
|
|
78
82
|
options: [
|
|
79
83
|
"alphaNumeric",
|
|
80
84
|
"alphaOnly",
|
|
81
85
|
"usState",
|
|
82
86
|
"usPhone",
|
|
83
87
|
"usPostCode",
|
|
88
|
+
"required",
|
|
84
89
|
],
|
|
85
90
|
},
|
|
86
91
|
addressLine2: {
|
|
87
92
|
title: "addressLine2",
|
|
88
93
|
description: "addressLine2",
|
|
89
|
-
type: "
|
|
94
|
+
type: "multiDropdown",
|
|
90
95
|
options: [
|
|
91
96
|
"alphaNumeric",
|
|
92
97
|
"alphaOnly",
|
|
93
98
|
"usState",
|
|
94
99
|
"usPhone",
|
|
95
100
|
"usPostCode",
|
|
101
|
+
"required",
|
|
96
102
|
],
|
|
97
103
|
},
|
|
98
104
|
city: {
|
|
99
105
|
title: "city",
|
|
100
106
|
description: "city",
|
|
101
|
-
type: "
|
|
107
|
+
type: "multiDropdown",
|
|
102
108
|
options: [
|
|
103
109
|
"alphaNumeric",
|
|
104
110
|
"alphaOnly",
|
|
105
111
|
"usState",
|
|
106
112
|
"usPhone",
|
|
113
|
+
"required",
|
|
107
114
|
"usPostCode",
|
|
115
|
+
"required",
|
|
108
116
|
],
|
|
109
117
|
},
|
|
110
118
|
countyProvinceState: {
|
|
111
119
|
title: "countyProvinceState",
|
|
112
120
|
description: "countyProvinceState",
|
|
113
|
-
type: "
|
|
121
|
+
type: "multiDropdown",
|
|
114
122
|
options: [
|
|
115
123
|
"alphaNumeric",
|
|
116
124
|
"alphaOnly",
|
|
117
125
|
"usState",
|
|
118
126
|
"usPhone",
|
|
119
127
|
"usPostCode",
|
|
128
|
+
"required",
|
|
120
129
|
],
|
|
121
130
|
},
|
|
122
131
|
familyName: {
|
|
123
132
|
title: "familyName",
|
|
124
133
|
description: "familyName",
|
|
125
|
-
type: "
|
|
134
|
+
type: "multiDropdown",
|
|
126
135
|
options: [
|
|
127
136
|
"alphaNumeric",
|
|
128
137
|
"alphaOnly",
|
|
129
138
|
"usState",
|
|
130
139
|
"usPhone",
|
|
131
140
|
"usPostCode",
|
|
141
|
+
"required",
|
|
132
142
|
],
|
|
133
143
|
},
|
|
134
144
|
firstName: {
|
|
135
145
|
title: "firstName",
|
|
136
146
|
description: "firstName",
|
|
137
|
-
type: "
|
|
147
|
+
type: "multiDropdown",
|
|
138
148
|
options: [
|
|
139
149
|
"alphaNumeric",
|
|
140
150
|
"alphaOnly",
|
|
141
151
|
"usState",
|
|
142
152
|
"usPhone",
|
|
143
153
|
"usPostCode",
|
|
154
|
+
"required",
|
|
144
155
|
],
|
|
145
156
|
},
|
|
146
157
|
instructions: {
|
|
147
158
|
title: "instructions",
|
|
148
159
|
description: "instructions",
|
|
149
|
-
type: "
|
|
160
|
+
type: "multiDropdown",
|
|
150
161
|
options: [
|
|
151
162
|
"alphaNumeric",
|
|
152
163
|
"alphaOnly",
|
|
@@ -155,28 +166,30 @@ exports.AdminSettingsTemplate = {
|
|
|
155
166
|
"usPostCode",
|
|
156
167
|
],
|
|
157
168
|
},
|
|
158
|
-
|
|
169
|
+
phoneNumber: {
|
|
159
170
|
title: "phoneNumber",
|
|
160
171
|
description: "phoneNumber",
|
|
161
|
-
type: "
|
|
172
|
+
type: "multiDropdown",
|
|
162
173
|
options: [
|
|
163
174
|
"alphaNumeric",
|
|
164
175
|
"alphaOnly",
|
|
165
176
|
"usState",
|
|
166
177
|
"usPhone",
|
|
167
178
|
"usPostCode",
|
|
179
|
+
"required",
|
|
168
180
|
],
|
|
169
181
|
},
|
|
170
182
|
postCode: {
|
|
171
183
|
title: "postCode",
|
|
172
184
|
description: "postCode",
|
|
173
|
-
type: "
|
|
185
|
+
type: "multiDropdown",
|
|
174
186
|
options: [
|
|
175
187
|
"alphaNumeric",
|
|
176
188
|
"alphaOnly",
|
|
177
189
|
"usState",
|
|
178
190
|
"usPhone",
|
|
179
191
|
"usPostCode",
|
|
192
|
+
"required",
|
|
180
193
|
],
|
|
181
194
|
},
|
|
182
195
|
},
|
|
@@ -265,7 +278,7 @@ exports.AdminSettingsTemplate = {
|
|
|
265
278
|
flipp: {
|
|
266
279
|
title: "Flipp Circulars",
|
|
267
280
|
description: "Configure Flipp circulars integration",
|
|
268
|
-
type: "
|
|
281
|
+
type: "nullObject",
|
|
269
282
|
value: {
|
|
270
283
|
version: {
|
|
271
284
|
title: "Version",
|