@constructor-io/constructorio-node 4.6.2 → 4.6.3
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/package.json +1 -1
- package/src/types/catalog.d.ts +16 -16
- package/src/types/tracker.d.ts +60 -59
package/package.json
CHANGED
package/src/types/catalog.d.ts
CHANGED
|
@@ -70,12 +70,12 @@ export interface RetrieveVariationsParameters {
|
|
|
70
70
|
export interface AddItemGroupParameters {
|
|
71
71
|
id: string;
|
|
72
72
|
name: string;
|
|
73
|
-
|
|
73
|
+
parentId?: string;
|
|
74
74
|
data?: Record<string, any>;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
export interface AddItemGroupsParameters {
|
|
78
|
-
|
|
78
|
+
itemGroups: ItemGroup[];
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
export interface GetItemGroupParameters {
|
|
@@ -87,7 +87,7 @@ export interface AddOrUpdateItemGroupsParameters
|
|
|
87
87
|
|
|
88
88
|
export interface AddOneWaySynonymParameters {
|
|
89
89
|
phrase: string;
|
|
90
|
-
|
|
90
|
+
childPhrases: string[];
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
export interface ModifyOneWaySynonymParameters
|
|
@@ -98,7 +98,7 @@ export interface GetOneWaySynonymParameters {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
export interface GetOneWaySynonymsParameters {
|
|
101
|
-
|
|
101
|
+
numResultsPerPage?: number;
|
|
102
102
|
page?: number;
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -120,7 +120,7 @@ export interface GetSynonymGroupParameters {
|
|
|
120
120
|
|
|
121
121
|
export interface GetSynonymGroupsParameters {
|
|
122
122
|
phrase?: string;
|
|
123
|
-
|
|
123
|
+
numResultsPerPage?: number;
|
|
124
124
|
page?: number;
|
|
125
125
|
}
|
|
126
126
|
|
|
@@ -131,9 +131,9 @@ export interface RemoveSynonymGroupParameters {
|
|
|
131
131
|
export interface AddRedirectRuleParameters {
|
|
132
132
|
url: string;
|
|
133
133
|
matches: RedirectRuleMatchObject[];
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
startTime?: string;
|
|
135
|
+
endTime?: string;
|
|
136
|
+
userSegments?: string[];
|
|
137
137
|
metadata?: Record<string, any>;
|
|
138
138
|
}
|
|
139
139
|
|
|
@@ -152,7 +152,7 @@ export interface GetRedirectRuleParameters {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
export interface GetRedirectRulesParameters {
|
|
155
|
-
|
|
155
|
+
numResultsPerPage?: number;
|
|
156
156
|
page?: number;
|
|
157
157
|
query?: string;
|
|
158
158
|
status?: string;
|
|
@@ -164,28 +164,28 @@ export interface RemoveRedirectRuleParameters {
|
|
|
164
164
|
|
|
165
165
|
export interface ReplaceCatalogParameters {
|
|
166
166
|
section: string;
|
|
167
|
-
|
|
167
|
+
notificationEmail?: string;
|
|
168
168
|
force?: boolean;
|
|
169
169
|
items?: File;
|
|
170
170
|
variations?: File;
|
|
171
|
-
|
|
171
|
+
itemGroups?: File;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
export interface UpdateCatalogParameters extends ReplaceCatalogParameters {}
|
|
175
175
|
|
|
176
176
|
export interface PatchCatalogParameters {
|
|
177
177
|
section: string;
|
|
178
|
-
|
|
178
|
+
notificationEmail?: string;
|
|
179
179
|
force?: boolean;
|
|
180
180
|
onMissing?: 'IGNORE' | 'CREATE' | 'FAIL';
|
|
181
181
|
items?: File;
|
|
182
182
|
variations?: File;
|
|
183
|
-
|
|
183
|
+
itemGroups?: File;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
export interface ReplaceCatalogUsingTarArchiveParameters {
|
|
187
187
|
section: string;
|
|
188
|
-
|
|
188
|
+
notificationEmail?: string;
|
|
189
189
|
force?: boolean;
|
|
190
190
|
tarArchive?: File;
|
|
191
191
|
}
|
|
@@ -200,7 +200,7 @@ export interface PatchCatalogUsingTarArchiveParameters
|
|
|
200
200
|
|
|
201
201
|
export interface GetFacetConfigurationsParameters {
|
|
202
202
|
page?: number;
|
|
203
|
-
|
|
203
|
+
numResultsPerPage?: number;
|
|
204
204
|
section?: string;
|
|
205
205
|
}
|
|
206
206
|
|
|
@@ -232,7 +232,7 @@ export interface AddOrModifyFacetOptionConfigurationsParameters {
|
|
|
232
232
|
export interface GetFacetOptionConfigurationsParameters {
|
|
233
233
|
facetGroupName: string;
|
|
234
234
|
page?: number;
|
|
235
|
-
|
|
235
|
+
numResultsPerPage?: number;
|
|
236
236
|
section?: string;
|
|
237
237
|
}
|
|
238
238
|
|
package/src/types/tracker.d.ts
CHANGED
|
@@ -35,9 +35,10 @@ declare class Tracker {
|
|
|
35
35
|
|
|
36
36
|
trackItemDetailLoad(
|
|
37
37
|
parameters: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
itemName: string;
|
|
39
|
+
itemId: string;
|
|
40
|
+
url: string;
|
|
41
|
+
variationId?: string;
|
|
41
42
|
},
|
|
42
43
|
userParameters?: TrackerUserParameters,
|
|
43
44
|
networkParameters?: NetworkParameters
|
|
@@ -46,11 +47,11 @@ declare class Tracker {
|
|
|
46
47
|
trackAutocompleteSelect(
|
|
47
48
|
term: string,
|
|
48
49
|
parameters: {
|
|
49
|
-
|
|
50
|
+
originalQuery: string;
|
|
50
51
|
section: string;
|
|
51
52
|
tr?: string;
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
groupId?: string;
|
|
54
|
+
displayName?: string;
|
|
54
55
|
},
|
|
55
56
|
userParameters?: TrackerUserParameters,
|
|
56
57
|
networkParameters?: NetworkParameters
|
|
@@ -59,9 +60,9 @@ declare class Tracker {
|
|
|
59
60
|
trackSearchSubmit(
|
|
60
61
|
term: string,
|
|
61
62
|
parameters: {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
originalQuery: string;
|
|
64
|
+
groupId?: string;
|
|
65
|
+
displayName?: string;
|
|
65
66
|
},
|
|
66
67
|
userParameters?: TrackerUserParameters,
|
|
67
68
|
networkParameters?: NetworkParameters
|
|
@@ -70,8 +71,8 @@ declare class Tracker {
|
|
|
70
71
|
trackSearchResultsLoaded(
|
|
71
72
|
term: string,
|
|
72
73
|
parameters: {
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
numResults: number;
|
|
75
|
+
itemIds?: string[];
|
|
75
76
|
},
|
|
76
77
|
userParameters?: TrackerUserParameters,
|
|
77
78
|
networkParameters?: NetworkParameters
|
|
@@ -80,11 +81,11 @@ declare class Tracker {
|
|
|
80
81
|
trackSearchResultClick(
|
|
81
82
|
term: string,
|
|
82
83
|
parameters: {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
itemName: string;
|
|
85
|
+
itemId: string;
|
|
86
|
+
variationId?: string;
|
|
87
|
+
resultId?: string;
|
|
88
|
+
itemIsConvertible?: string;
|
|
88
89
|
section?: string;
|
|
89
90
|
},
|
|
90
91
|
userParameters?: TrackerUserParameters,
|
|
@@ -94,14 +95,14 @@ declare class Tracker {
|
|
|
94
95
|
trackConversion(
|
|
95
96
|
term : string | null | undefined,
|
|
96
97
|
parameters: {
|
|
97
|
-
|
|
98
|
+
itemId: string;
|
|
98
99
|
revenue?: number;
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
itemName?: string;
|
|
101
|
+
variationId?: string;
|
|
101
102
|
type?: string;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
isCustomType?: boolean;
|
|
104
|
+
displayName?: string;
|
|
105
|
+
resultId?: string;
|
|
105
106
|
section?: string;
|
|
106
107
|
},
|
|
107
108
|
userParameters?: TrackerUserParameters,
|
|
@@ -112,7 +113,7 @@ declare class Tracker {
|
|
|
112
113
|
parameters: {
|
|
113
114
|
items: object[];
|
|
114
115
|
revenue: number;
|
|
115
|
-
|
|
116
|
+
orderId?: string;
|
|
116
117
|
section?: string;
|
|
117
118
|
},
|
|
118
119
|
userParameters?: TrackerUserParameters,
|
|
@@ -122,12 +123,12 @@ declare class Tracker {
|
|
|
122
123
|
trackRecommendationView(
|
|
123
124
|
parameters: {
|
|
124
125
|
url: string;
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
podId: string;
|
|
127
|
+
numResultsViewed: number;
|
|
127
128
|
items?: object[];
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
resultCount?: number;
|
|
130
|
+
resultPage?: number;
|
|
131
|
+
resultId?: string;
|
|
131
132
|
section?: string;
|
|
132
133
|
},
|
|
133
134
|
userParameters?: TrackerUserParameters,
|
|
@@ -136,17 +137,17 @@ declare class Tracker {
|
|
|
136
137
|
|
|
137
138
|
trackRecommendationClick(
|
|
138
139
|
parameters: {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
podId: string;
|
|
141
|
+
strategyId: string;
|
|
142
|
+
itemId: string;
|
|
143
|
+
itemName: string;
|
|
144
|
+
variationId?: string;
|
|
144
145
|
section?: string;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
146
|
+
resultId?: string;
|
|
147
|
+
resultCount?: number;
|
|
148
|
+
resultPage?: number;
|
|
149
|
+
resultPositionOnPage?: number;
|
|
150
|
+
numResultsPerPage?: number;
|
|
150
151
|
},
|
|
151
152
|
userParameters?: TrackerUserParameters,
|
|
152
153
|
networkParameters?: NetworkParameters
|
|
@@ -155,15 +156,15 @@ declare class Tracker {
|
|
|
155
156
|
trackBrowseResultsLoaded(
|
|
156
157
|
parameters: {
|
|
157
158
|
url: string;
|
|
158
|
-
|
|
159
|
-
|
|
159
|
+
filterName: string;
|
|
160
|
+
filterValue: string;
|
|
160
161
|
section?: string;
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
162
|
+
resultCount?: number;
|
|
163
|
+
resultPage?: number;
|
|
164
|
+
resultId?: string;
|
|
165
|
+
selectedFilters?: object;
|
|
166
|
+
sortOrder?: string;
|
|
167
|
+
sortBy?: string;
|
|
167
168
|
items?: object[];
|
|
168
169
|
},
|
|
169
170
|
userParameters?: TrackerUserParameters,
|
|
@@ -172,17 +173,17 @@ declare class Tracker {
|
|
|
172
173
|
|
|
173
174
|
trackBrowseResultClick(
|
|
174
175
|
parameters: {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
filterName: string;
|
|
177
|
+
filterValue: string;
|
|
178
|
+
itemId: string;
|
|
178
179
|
section?: string;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
180
|
+
variationId?: string;
|
|
181
|
+
resultId?: string;
|
|
182
|
+
resultCount?: number;
|
|
183
|
+
resultPage?: number;
|
|
184
|
+
resultPositionOnPage?: number;
|
|
185
|
+
numResultsPerPage?: number;
|
|
186
|
+
selectedFilters?: object;
|
|
186
187
|
},
|
|
187
188
|
userParameters?: TrackerUserParameters,
|
|
188
189
|
networkParameters?: NetworkParameters
|
|
@@ -190,9 +191,9 @@ declare class Tracker {
|
|
|
190
191
|
|
|
191
192
|
trackGenericResultClick(
|
|
192
193
|
parameters: {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
194
|
+
itemId: string;
|
|
195
|
+
itemName?: string;
|
|
196
|
+
variationId?: string;
|
|
196
197
|
section?: string;
|
|
197
198
|
},
|
|
198
199
|
userParameters?: TrackerUserParameters,
|