@usereactify/search 5.58.0 → 5.59.0-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/CHANGELOG.md +21 -0
- package/dist/package.json +1 -1
- package/dist/src/components/ReactifySearchProvider/ReactifySearchProvider.d.ts +14 -3
- package/dist/src/components/ReactifySearchProvider/ReactifySearchProvider.js +5 -6
- package/dist/src/components/ReactifySearchProvider/ReactifySearchProvider.js.map +1 -1
- package/dist/src/components/Result/Results.d.ts +3 -1
- package/dist/src/components/Result/Results.js +33 -34
- package/dist/src/components/Result/Results.js.map +1 -1
- package/dist/src/components/Sensor/SensorCollection.js +2 -1
- package/dist/src/components/Sensor/SensorCollection.js.map +1 -1
- package/dist/src/components/Sensor/SensorCuratedPageCollection.d.ts +1 -0
- package/dist/src/components/Sensor/SensorCuratedPageCollection.js +22 -0
- package/dist/src/components/Sensor/SensorCuratedPageCollection.js.map +1 -0
- package/dist/src/components/Sensor/SensorCuratedPageSearch.d.ts +1 -0
- package/dist/src/components/Sensor/SensorCuratedPageSearch.js +21 -0
- package/dist/src/components/Sensor/SensorCuratedPageSearch.js.map +1 -0
- package/dist/src/components/Sensor/Sensors.js +18 -0
- package/dist/src/components/Sensor/Sensors.js.map +1 -1
- package/dist/src/components/Sensor/index.d.ts +4 -1
- package/dist/src/components/Sensor/index.js +5 -1
- package/dist/src/components/Sensor/index.js.map +1 -1
- package/dist/src/hooks/useReactifySearchContext.d.ts +17 -1
- package/dist/src/hooks/useReactifySearchContext.js +30 -4
- package/dist/src/hooks/useReactifySearchContext.js.map +1 -1
- package/dist/src/types/config.d.ts +7 -5
- package/dist/src/types/config.js.map +1 -1
- package/dist/src/types/firestore.d.ts +84 -392
- package/dist/src/types/firestore.js +53 -84
- package/dist/src/types/firestore.js.map +1 -1
- package/dist/src/types/reactivesearch.d.ts +2 -0
- package/dist/src/types/reactivesearch.js.map +1 -1
- package/dist/src/utility/liquid.d.ts +8 -1
- package/dist/src/utility/liquid.js +32 -11
- package/dist/src/utility/liquid.js.map +1 -1
- package/dist/src/utility/props.d.ts +210 -8
- package/dist/src/utility/props.js +90 -80
- package/dist/src/utility/props.js.map +1 -1
- package/dist/src/utility/queries.d.ts +391 -0
- package/dist/src/utility/queries.js +225 -0
- package/dist/src/utility/queries.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ElasticDataType } from "./elastic";
|
|
3
|
-
import { AppPurchaseStatus } from "./graphql";
|
|
1
|
+
import { ShopifyProduct, ShopifyProductImage } from "./shopify";
|
|
4
2
|
export interface ResourceDocument {
|
|
5
3
|
id: string;
|
|
6
4
|
keywords: Array<string>;
|
|
@@ -13,6 +11,8 @@ export declare enum ResourceType {
|
|
|
13
11
|
Product = "product",
|
|
14
12
|
Collection = "collection",
|
|
15
13
|
Curation = "curation",
|
|
14
|
+
CurationPin = "curation_pin",
|
|
15
|
+
CurationHiding = "curation_hiding",
|
|
16
16
|
Callout = "callout",
|
|
17
17
|
SettingsAccount = "account_settings",
|
|
18
18
|
SettingsAutomation = "automation_settings",
|
|
@@ -25,283 +25,29 @@ export declare enum ResourceType {
|
|
|
25
25
|
Sort = "sort",
|
|
26
26
|
Antonym = "antonym",
|
|
27
27
|
Synonym = "synonym",
|
|
28
|
-
Task = "task"
|
|
29
|
-
|
|
30
|
-
export declare const ResourceTypeLabel: Record<ResourceType, string>;
|
|
31
|
-
export interface Log {
|
|
32
|
-
id: string;
|
|
33
|
-
keywords: Array<string>;
|
|
34
|
-
message: string;
|
|
35
|
-
platform: "reactify" | "shopify" | "google" | "elastic";
|
|
36
|
-
percentCompleted: number;
|
|
37
|
-
action?: {
|
|
38
|
-
type: "retry";
|
|
39
|
-
label: string;
|
|
40
|
-
task: Task["taskId"];
|
|
41
|
-
};
|
|
42
|
-
step: "syncMainDownload" | "syncBulkStart" | "syncBulkDownload" | "syncBulkTransform" | "syncBulkMerge" | "syncBulkUpload" | "syncBulkCleanup" | "syncBulkCleanupCurations" | "analyticsDownload" | "analyticsTransform" | "analyticsUpload" | "complete" | "analyticsStart";
|
|
43
|
-
title: string;
|
|
44
|
-
type: "bulk" | "analytics";
|
|
45
|
-
data?: string;
|
|
46
|
-
progress: "new" | "error" | "complete" | "partiallyComplete";
|
|
47
|
-
status: "success" | "info" | "warning" | "critical";
|
|
48
|
-
createdAt: string;
|
|
49
|
-
updatedAt?: string;
|
|
50
|
-
finishedAt?: string;
|
|
51
|
-
}
|
|
52
|
-
export interface Task {
|
|
53
|
-
logId: string;
|
|
54
|
-
taskId: "setupInstall" | "setupWebhook" | "syncCollectionId" | "syncProductId" | "syncMainDownload" | "syncBulkReset" | "syncBulkStart" | "syncBulkDownload" | "syncBulkTransform" | "syncBulkMerge" | "syncBulkUpload" | "syncBulkCleanup" | "syncBulkCleanupCurations" | "cleanCuration" | "cleanCurationId" | "plantSeeds" | "refreshMappings" | "refreshDefinedFields" | "refreshCurations" | "analyticsStart" | "analyticsDownload" | "analyticsTransform" | "analyticsUpload" | "indexCleanup" | "cacheClear" | "syncMarkets" | "syncConfig" | "syncShop";
|
|
55
|
-
firstRun?: boolean;
|
|
56
|
-
createdAt: string;
|
|
57
|
-
updatedAt?: string;
|
|
58
|
-
}
|
|
59
|
-
export interface TaskSub extends Task {
|
|
60
|
-
taskSubId: string;
|
|
61
|
-
}
|
|
62
|
-
export interface TaskSubSyncCollectionId extends TaskSub {
|
|
63
|
-
taskId: "syncCollectionId";
|
|
64
|
-
collectionGid: string;
|
|
65
|
-
}
|
|
66
|
-
export interface TaskSubSyncProductId extends TaskSub {
|
|
67
|
-
taskId: "syncProductId";
|
|
68
|
-
productGid: string;
|
|
69
|
-
}
|
|
70
|
-
export interface TaskSyncShop extends Task {
|
|
71
|
-
taskId: "syncShop";
|
|
72
|
-
manual?: boolean;
|
|
73
|
-
}
|
|
74
|
-
export interface TaskSyncMainDownload extends Task {
|
|
75
|
-
taskId: "syncMainDownload";
|
|
76
|
-
type: "product_download" | "product_polling" | "collection_download" | "collection_polling";
|
|
77
|
-
productUrl?: string;
|
|
78
|
-
collectionUrl?: string;
|
|
79
|
-
manual?: boolean;
|
|
80
|
-
}
|
|
81
|
-
export interface TaskSyncBulkReset extends Task {
|
|
82
|
-
taskId: "syncBulkReset";
|
|
83
|
-
manual?: boolean;
|
|
84
|
-
}
|
|
85
|
-
export interface TaskSyncBulkStart extends Task {
|
|
86
|
-
taskId: "syncBulkStart";
|
|
87
|
-
manual?: boolean;
|
|
88
|
-
}
|
|
89
|
-
export interface TaskSyncBulkDownload extends Task {
|
|
90
|
-
taskId: "syncBulkDownload";
|
|
91
|
-
type: "collection" | "product" | "product_market";
|
|
92
|
-
productUrl?: string;
|
|
93
|
-
productMarketUrl?: string;
|
|
94
|
-
collectionUrl?: string;
|
|
95
|
-
syncAt: string;
|
|
96
|
-
}
|
|
97
|
-
export declare const TaskSyncBulkDownloadTypeLabel: Record<"collection" | "product" | "product_market", string>;
|
|
98
|
-
export interface TaskSyncBulkTransform extends Task {
|
|
99
|
-
taskId: "syncBulkTransform";
|
|
100
|
-
productUrl: string;
|
|
101
|
-
productMarketUrl?: string;
|
|
102
|
-
collectionUrl: string;
|
|
103
|
-
collectionCount?: number;
|
|
104
|
-
lastCollectionCursor?: string;
|
|
105
|
-
syncAt: string;
|
|
106
|
-
}
|
|
107
|
-
export interface TaskSyncBulkMerge extends Task {
|
|
108
|
-
taskId: "syncBulkMerge";
|
|
109
|
-
productCount: number;
|
|
110
|
-
collectionCount: number;
|
|
111
|
-
productCompletedCount?: number;
|
|
112
|
-
startAfterId?: string;
|
|
113
|
-
syncAt: string;
|
|
114
|
-
}
|
|
115
|
-
export interface TaskSyncBulkUpload extends Task {
|
|
116
|
-
taskId: "syncBulkUpload";
|
|
117
|
-
productCount: number;
|
|
118
|
-
collectionCount: number;
|
|
119
|
-
productCompletedCount?: number;
|
|
120
|
-
startAfterId?: string;
|
|
121
|
-
syncAt: string;
|
|
122
|
-
}
|
|
123
|
-
export interface TaskSyncBulkCleanup extends Task {
|
|
124
|
-
taskId: "syncBulkCleanup";
|
|
125
|
-
syncAt: string;
|
|
126
|
-
}
|
|
127
|
-
export interface TaskSyncBulkCleanupCurations extends Task {
|
|
128
|
-
taskId: "syncBulkCleanupCurations";
|
|
129
|
-
}
|
|
130
|
-
export interface TaskCleanCuration extends Task {
|
|
131
|
-
taskId: "cleanCuration";
|
|
132
|
-
startAfterId?: string;
|
|
133
|
-
manual?: boolean;
|
|
134
|
-
}
|
|
135
|
-
export interface TaskSubCleanCurationId extends TaskSub {
|
|
136
|
-
taskId: "cleanCurationId";
|
|
137
|
-
curationId: string;
|
|
138
|
-
manual?: boolean;
|
|
139
|
-
}
|
|
140
|
-
export interface TaskSetupInstall extends Task {
|
|
141
|
-
taskId: "setupInstall";
|
|
142
|
-
}
|
|
143
|
-
export interface TaskSetupWebhook extends Task {
|
|
144
|
-
taskId: "setupWebhook";
|
|
145
|
-
}
|
|
146
|
-
export interface TaskPlantSeeds extends Task {
|
|
147
|
-
taskId: "plantSeeds";
|
|
148
|
-
}
|
|
149
|
-
export interface TaskRefreshMappings extends Task {
|
|
150
|
-
taskId: "refreshMappings";
|
|
151
|
-
manual?: boolean;
|
|
152
|
-
}
|
|
153
|
-
export interface TaskRefreshDefinedFields extends Task {
|
|
154
|
-
taskId: "refreshDefinedFields";
|
|
155
|
-
manual?: boolean;
|
|
156
|
-
}
|
|
157
|
-
export interface TaskRefreshCurations extends Task {
|
|
158
|
-
taskId: "refreshCurations";
|
|
159
|
-
manual?: boolean;
|
|
160
|
-
}
|
|
161
|
-
export interface TaskAnalyticsStart extends Task {
|
|
162
|
-
taskId: "analyticsStart";
|
|
163
|
-
manual?: boolean;
|
|
164
|
-
}
|
|
165
|
-
export interface TaskAnalyticsDownload extends Task {
|
|
166
|
-
taskId: "analyticsDownload";
|
|
167
|
-
reports: AnalyticsReports[];
|
|
168
|
-
manual?: boolean;
|
|
169
|
-
}
|
|
170
|
-
export interface TaskAnalyticsTransform extends Task {
|
|
171
|
-
taskId: "analyticsTransform";
|
|
172
|
-
startAfterId?: string;
|
|
173
|
-
manual?: boolean;
|
|
174
|
-
}
|
|
175
|
-
export interface TaskAnalyticsUpload extends Task {
|
|
176
|
-
taskId: "analyticsUpload";
|
|
177
|
-
startAfterId?: string;
|
|
178
|
-
manual?: boolean;
|
|
179
|
-
}
|
|
180
|
-
export interface TaskIndexCleanup extends Task {
|
|
181
|
-
taskId: "indexCleanup";
|
|
182
|
-
manual?: boolean;
|
|
183
|
-
}
|
|
184
|
-
export interface TaskCacheClear extends Task {
|
|
185
|
-
taskId: "cacheClear";
|
|
186
|
-
manual?: boolean;
|
|
187
|
-
}
|
|
188
|
-
export interface TaskSyncMarkets extends Task {
|
|
189
|
-
taskId: "syncMarkets";
|
|
190
|
-
manual?: boolean;
|
|
191
|
-
}
|
|
192
|
-
export interface TaskSyncConfig extends Task {
|
|
193
|
-
taskId: "syncConfig";
|
|
194
|
-
manual?: boolean;
|
|
195
|
-
}
|
|
196
|
-
export interface Lock {
|
|
197
|
-
logId: string;
|
|
198
|
-
taskType: "sync" | "syncConfig" | "syncCollectionId" | "syncProductId" | "analytics";
|
|
199
|
-
createdAt: string;
|
|
200
|
-
expiresAt: string;
|
|
201
|
-
}
|
|
202
|
-
export declare enum ManageAdminFlag {
|
|
203
|
-
Example = "example"
|
|
204
|
-
}
|
|
205
|
-
export interface ManageAdmin {
|
|
206
|
-
installed: boolean;
|
|
207
|
-
indexRead: string;
|
|
208
|
-
indexWrite: string;
|
|
209
|
-
indexAlias: string;
|
|
210
|
-
indexAutomatic: boolean;
|
|
211
|
-
indexRollback: Array<{
|
|
212
|
-
indexName: string;
|
|
213
|
-
documentCount: number;
|
|
214
|
-
createdAt: number;
|
|
215
|
-
}>;
|
|
216
|
-
indexRefreshInterval: string;
|
|
217
|
-
endpoint: string;
|
|
218
|
-
cluster: string;
|
|
219
|
-
customMappings: string;
|
|
220
|
-
customFilters: string;
|
|
221
|
-
timezone: string;
|
|
222
|
-
cacheEnabled: boolean;
|
|
223
|
-
cacheSeconds: number;
|
|
224
|
-
flags?: Array<ManageAdminFlag>;
|
|
225
|
-
production: boolean;
|
|
226
|
-
}
|
|
227
|
-
export interface ManageProduct {
|
|
228
|
-
tagChild?: string;
|
|
229
|
-
tagKeys?: Array<string>;
|
|
230
|
-
tagParent?: string;
|
|
231
|
-
tagRelated?: string;
|
|
232
|
-
syncObjects?: Array<string>;
|
|
233
|
-
tagExclude?: Array<string>;
|
|
234
|
-
tagExcludeSearch?: Array<string>;
|
|
235
|
-
tagExcludeCollection?: Array<string>;
|
|
236
|
-
tagSeparator?: string;
|
|
237
|
-
metafieldWhitelist?: Array<string>;
|
|
238
|
-
externalAppReactifyImageAI: boolean;
|
|
239
|
-
suggestionsExclude?: Array<string>;
|
|
240
|
-
automaticCleanCurations?: boolean;
|
|
241
|
-
merchandisingCalloutAutofillBehaviour: MerchandisingCalloutAutofillBehaviour;
|
|
28
|
+
Task = "task",
|
|
29
|
+
SearchableField = "searchable_field"
|
|
242
30
|
}
|
|
243
31
|
export declare enum MerchandisingCalloutAutofillBehaviour {
|
|
244
32
|
Always = "always",
|
|
245
33
|
MoreResults = "more_results"
|
|
246
34
|
}
|
|
247
|
-
export
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
syncConfigHash?: string;
|
|
262
|
-
}
|
|
263
|
-
export interface ManageAccount {
|
|
264
|
-
shopifyPlanCustomCost?: number;
|
|
265
|
-
shopifyPlanType?: "general" | "partner" | "custom";
|
|
266
|
-
shopifyPlanStore?: "primary" | "addon";
|
|
267
|
-
shopifyPlan?: "non-plus" | "plus" | "development";
|
|
268
|
-
shopifyPlanSubscriptionShareCode?: string;
|
|
269
|
-
stripeCustomerId?: string;
|
|
270
|
-
googleAnalyticsId?: string;
|
|
271
|
-
googleEmail?: string;
|
|
272
|
-
googleAccessToken?: string;
|
|
273
|
-
googleRefreshToken?: string;
|
|
274
|
-
googleAccessTokenExpiryDate?: number;
|
|
275
|
-
googleAnalyticsType?: "UA" | "GA4";
|
|
276
|
-
googleIdField?: "shopify_code" | "product_id" | "variant_id" | "variant_sku" | "variant_barcode";
|
|
277
|
-
}
|
|
278
|
-
export declare enum SettingsCurationsImageOption {
|
|
279
|
-
Index = "index",
|
|
280
|
-
Suffix = "suffix"
|
|
281
|
-
}
|
|
282
|
-
export interface SettingsCurations {
|
|
283
|
-
pageSize?: number;
|
|
284
|
-
gridColumns?: number;
|
|
285
|
-
imageOption: SettingsCurationsImageOption;
|
|
286
|
-
imagePosition: number;
|
|
287
|
-
imageSuffix: string;
|
|
288
|
-
imageSize?: "small" | "medium" | "large";
|
|
289
|
-
imageSizePx: number;
|
|
290
|
-
showCardDetailTitle?: boolean;
|
|
291
|
-
showCardDetailContent?: boolean;
|
|
292
|
-
showCardDetailPrice?: boolean;
|
|
293
|
-
showCardDetailVendor?: boolean;
|
|
294
|
-
showCardDetailPreorder?: boolean;
|
|
295
|
-
showCardDetailDiscount?: boolean;
|
|
296
|
-
showCardDetailInventory?: boolean;
|
|
297
|
-
showCardDetailAvailability?: boolean;
|
|
298
|
-
showCardDetailProfitMargin?: boolean;
|
|
299
|
-
showCardDetailPublishedDays?: boolean;
|
|
300
|
-
showCardDetailAnalyticsSales7Days?: boolean;
|
|
301
|
-
showCardDetailAnalyticsSales30Days?: boolean;
|
|
302
|
-
showCardDetailAnalyticsRevenue7Days?: boolean;
|
|
303
|
-
showCardDetailAnalyticsRevenue30Days?: boolean;
|
|
35
|
+
export declare const MerchandisingCalloutAutofillBehaviourLabel: Record<MerchandisingCalloutAutofillBehaviour, string>;
|
|
36
|
+
export declare enum SharedStoreResource {
|
|
37
|
+
Curation = "curation",
|
|
38
|
+
Callout = "callout",
|
|
39
|
+
FilterGroup = "filter_group",
|
|
40
|
+
FilterFacet = "filter_facet",
|
|
41
|
+
MergedValue = "merged_value",
|
|
42
|
+
Redirect = "redirect",
|
|
43
|
+
Relevancy = "relevancy",
|
|
44
|
+
Sort = "sort",
|
|
45
|
+
Synonym = "synonym",
|
|
46
|
+
SettingsAccount = "account_settings",
|
|
47
|
+
SettingsAutomation = "automation_settings",
|
|
48
|
+
SettingsProduct = "product_settings"
|
|
304
49
|
}
|
|
50
|
+
export declare const SharedStoreResourceLabels: Record<SharedStoreResource, string>;
|
|
305
51
|
export interface Relevance extends ResourceDocument {
|
|
306
52
|
field: string;
|
|
307
53
|
enabled: boolean;
|
|
@@ -309,10 +55,18 @@ export interface Relevance extends ResourceDocument {
|
|
|
309
55
|
searchType: "always_search" | "search_page" | "instant_search";
|
|
310
56
|
hidden?: boolean;
|
|
311
57
|
}
|
|
58
|
+
export declare const DefinedFieldType: {
|
|
59
|
+
readonly Array: "array";
|
|
60
|
+
readonly Text: "text";
|
|
61
|
+
readonly Float: "float";
|
|
62
|
+
readonly Long: "long";
|
|
63
|
+
readonly Boolean: "boolean";
|
|
64
|
+
};
|
|
65
|
+
export type DefinedFieldType = typeof DefinedFieldType[keyof typeof DefinedFieldType] | (string & {});
|
|
312
66
|
export interface DefinedField {
|
|
313
67
|
label: string;
|
|
314
|
-
|
|
315
|
-
type:
|
|
68
|
+
name: string;
|
|
69
|
+
type: DefinedFieldType;
|
|
316
70
|
}
|
|
317
71
|
export interface Sort extends ResourceDocument {
|
|
318
72
|
name: string;
|
|
@@ -329,7 +83,6 @@ export interface FilterGroup extends ResourceDocument {
|
|
|
329
83
|
handle: string;
|
|
330
84
|
enabled: boolean;
|
|
331
85
|
pageSize: number;
|
|
332
|
-
keywords: Array<string>;
|
|
333
86
|
collections: Array<string>;
|
|
334
87
|
type: "search" | "collection";
|
|
335
88
|
paginationType: "pagination" | "load_more" | "next_prev" | "infinite_scroll";
|
|
@@ -367,33 +120,35 @@ export interface Redirect extends ResourceDocument {
|
|
|
367
120
|
url: string;
|
|
368
121
|
query: string;
|
|
369
122
|
enabled: boolean;
|
|
370
|
-
keywords: Array<string>;
|
|
371
123
|
hidden?: boolean;
|
|
372
124
|
}
|
|
373
125
|
export interface Curation extends ResourceDocument {
|
|
374
126
|
title: string;
|
|
375
127
|
status: CurationStatus;
|
|
376
128
|
published: boolean;
|
|
377
|
-
keywords: Array<string>;
|
|
378
129
|
searchTerm?: string;
|
|
379
130
|
longRunningTask?: boolean;
|
|
380
131
|
collectionHandle?: string;
|
|
381
132
|
collectionId?: string;
|
|
382
133
|
type: CurationType;
|
|
134
|
+
/** @deprecated */
|
|
383
135
|
boosting?: {
|
|
384
136
|
groupings?: BoostGrouping[];
|
|
385
137
|
sortings?: BoostSorting[];
|
|
386
138
|
};
|
|
387
139
|
sort?: CurationSort;
|
|
388
140
|
schedule?: CurationSchedule;
|
|
141
|
+
scheduleEnabled?: boolean;
|
|
142
|
+
scheduleTimezone?: string;
|
|
389
143
|
hidden?: boolean;
|
|
390
|
-
markets
|
|
144
|
+
markets: Array<string>;
|
|
145
|
+
boostings?: Boosting[];
|
|
146
|
+
sortings?: Sorting[];
|
|
391
147
|
}
|
|
392
148
|
export declare enum CurationType {
|
|
393
149
|
Search = "search",
|
|
394
150
|
Collection = "collection"
|
|
395
151
|
}
|
|
396
|
-
export declare const CurationTypeLabel: Record<CurationType, string>;
|
|
397
152
|
export interface CurationSort {
|
|
398
153
|
sortTag?: string;
|
|
399
154
|
sortOption: string;
|
|
@@ -416,7 +171,6 @@ export declare enum CurationStatus {
|
|
|
416
171
|
Pinning = "pinning",
|
|
417
172
|
Sorting = "sorting"
|
|
418
173
|
}
|
|
419
|
-
export declare const CurationStatusLabel: Record<CurationStatus, string>;
|
|
420
174
|
export interface CurationHiding {
|
|
421
175
|
productId: number;
|
|
422
176
|
}
|
|
@@ -425,9 +179,11 @@ export interface Market {
|
|
|
425
179
|
label: string;
|
|
426
180
|
enabled: boolean;
|
|
427
181
|
publicationId: string;
|
|
428
|
-
locationId
|
|
182
|
+
locationId: string;
|
|
429
183
|
currencyCode?: string;
|
|
184
|
+
countryCode?: string;
|
|
430
185
|
}
|
|
186
|
+
/** @deprecated This entity will be removed once the curation is fully refactored into merchandisable entities */
|
|
431
187
|
export interface BoostGrouping {
|
|
432
188
|
key: string;
|
|
433
189
|
value: string;
|
|
@@ -435,6 +191,7 @@ export interface BoostGrouping {
|
|
|
435
191
|
position: number;
|
|
436
192
|
operation: string;
|
|
437
193
|
}
|
|
194
|
+
/** @deprecated This entity will be removed once the curation is fully refactored into merchandisable entities */
|
|
438
195
|
export interface BoostSorting {
|
|
439
196
|
key: string;
|
|
440
197
|
field: string;
|
|
@@ -442,39 +199,12 @@ export interface BoostSorting {
|
|
|
442
199
|
position: number;
|
|
443
200
|
direction: "asc" | "desc";
|
|
444
201
|
}
|
|
445
|
-
export type Pin = PinProduct | PinCallout;
|
|
446
|
-
export declare enum PinSource {
|
|
447
|
-
Manual = "manual",
|
|
448
|
-
Automatic = "automatic"
|
|
449
|
-
}
|
|
450
|
-
export declare enum PinType {
|
|
451
|
-
Product = "product",
|
|
452
|
-
Callout = "callout"
|
|
453
|
-
}
|
|
454
|
-
export type PinTypeOnly = Pick<Pin, "type">;
|
|
455
|
-
export declare function isPinProduct(pin: PinTypeOnly): pin is PinProduct;
|
|
456
|
-
export declare function isPinCallout(pin: PinTypeOnly): pin is PinCallout;
|
|
457
|
-
export interface PinProduct {
|
|
458
|
-
key: string;
|
|
459
|
-
type: PinType.Product;
|
|
460
|
-
position: number;
|
|
461
|
-
productId: number;
|
|
462
|
-
source?: PinSource;
|
|
463
|
-
}
|
|
464
|
-
export interface PinCallout {
|
|
465
|
-
key: string;
|
|
466
|
-
type: PinType.Callout;
|
|
467
|
-
position: number;
|
|
468
|
-
calloutId: string;
|
|
469
|
-
source?: PinSource;
|
|
470
|
-
}
|
|
471
202
|
export interface Link {
|
|
472
203
|
content: string;
|
|
473
204
|
url: string;
|
|
474
205
|
key: string;
|
|
475
206
|
}
|
|
476
207
|
export interface Callout extends ResourceDocument {
|
|
477
|
-
id: string;
|
|
478
208
|
type: CalloutType;
|
|
479
209
|
link: string;
|
|
480
210
|
links: Array<Link>;
|
|
@@ -482,7 +212,6 @@ export interface Callout extends ResourceDocument {
|
|
|
482
212
|
content: string;
|
|
483
213
|
enabled: boolean;
|
|
484
214
|
textColor: string;
|
|
485
|
-
keywords: Array<string>;
|
|
486
215
|
mobileImage: string;
|
|
487
216
|
mobileVideo: string;
|
|
488
217
|
desktopVideo: string;
|
|
@@ -492,42 +221,36 @@ export interface Callout extends ResourceDocument {
|
|
|
492
221
|
displayColumns: string;
|
|
493
222
|
displayRows: string;
|
|
494
223
|
selectedDates?: {
|
|
495
|
-
end:
|
|
496
|
-
start:
|
|
224
|
+
end: number;
|
|
225
|
+
start: number;
|
|
497
226
|
};
|
|
498
227
|
hidden?: boolean;
|
|
499
228
|
}
|
|
500
229
|
export declare enum CalloutType {
|
|
501
230
|
Standard = "standard",
|
|
502
|
-
|
|
231
|
+
Autofill = "autofill"
|
|
503
232
|
}
|
|
504
233
|
export declare enum SynonymType {
|
|
505
234
|
Group = "group",
|
|
506
235
|
Oneway = "oneway"
|
|
507
236
|
}
|
|
508
237
|
export interface Synonym extends ResourceDocument {
|
|
509
|
-
id: string;
|
|
510
238
|
name: string;
|
|
511
239
|
enabled: boolean;
|
|
512
|
-
keywords: Array<string>;
|
|
513
240
|
synonyms: Array<string>;
|
|
514
241
|
type: SynonymType;
|
|
515
242
|
hidden?: boolean;
|
|
516
243
|
}
|
|
517
244
|
export interface Antonym extends ResourceDocument {
|
|
518
|
-
id: string;
|
|
519
245
|
name: string;
|
|
520
246
|
enabled: boolean;
|
|
521
|
-
keywords: Array<string>;
|
|
522
247
|
antonyms: Array<string>;
|
|
523
248
|
hidden?: boolean;
|
|
524
249
|
}
|
|
525
250
|
export interface MergedValue extends ResourceDocument {
|
|
526
|
-
id: string;
|
|
527
251
|
name: string;
|
|
528
252
|
field: string;
|
|
529
253
|
enabled: boolean;
|
|
530
|
-
keywords: Array<string>;
|
|
531
254
|
values: Array<string>;
|
|
532
255
|
hidden?: boolean;
|
|
533
256
|
}
|
|
@@ -543,12 +266,22 @@ export interface Collection extends ResourceDocument {
|
|
|
543
266
|
}
|
|
544
267
|
export type Product = ResourceDocument & Omit<ShopifyProduct, "variants" | "images" | "media" | "metafields" | "category" | "unpublishedPublications"> & {
|
|
545
268
|
category: string;
|
|
546
|
-
|
|
547
|
-
|
|
269
|
+
variants: Array<Omit<ShopifyProduct["variants"]["edges"][0]["node"], "presentmentPrices"> & {
|
|
270
|
+
productId?: string;
|
|
548
271
|
images?: Array<ShopifyProductImage>;
|
|
549
272
|
presentmentPrices: ShopifyProduct["variants"]["edges"][0]["node"]["presentmentPrices"]["edges"][0]["node"][];
|
|
550
|
-
|
|
551
|
-
|
|
273
|
+
marketPrices: Array<{
|
|
274
|
+
marketId: string;
|
|
275
|
+
price: {
|
|
276
|
+
amount: string;
|
|
277
|
+
currencyCode: string;
|
|
278
|
+
};
|
|
279
|
+
compareAtPrice: {
|
|
280
|
+
amount: string;
|
|
281
|
+
currencyCode: string;
|
|
282
|
+
} | null;
|
|
283
|
+
}>;
|
|
284
|
+
}>;
|
|
552
285
|
related?: Array<string>;
|
|
553
286
|
images: Array<ShopifyProductImage>;
|
|
554
287
|
media: ShopifyProduct["media"]["edges"][0]["node"][];
|
|
@@ -558,75 +291,34 @@ export type Product = ResourceDocument & Omit<ShopifyProduct, "variants" | "imag
|
|
|
558
291
|
syncAt?: string;
|
|
559
292
|
markets?: Array<string>;
|
|
560
293
|
};
|
|
561
|
-
export interface
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
profileName: string;
|
|
571
|
-
webPropertyId: string;
|
|
572
|
-
internalWebPropertyId: string;
|
|
573
|
-
}
|
|
574
|
-
export interface AnalyticsDownloadItem {
|
|
575
|
-
id: string;
|
|
576
|
-
name: string;
|
|
577
|
-
value: number;
|
|
578
|
-
externalId: string;
|
|
579
|
-
type: AnalyticsReports;
|
|
580
|
-
}
|
|
581
|
-
export interface AnalyticsUploadItems {
|
|
582
|
-
id: string;
|
|
583
|
-
[AnalyticsReports.Sales7Days]: number;
|
|
584
|
-
[AnalyticsReports.Sales30Days]: number;
|
|
585
|
-
[AnalyticsReports.Revenue7Days]: number;
|
|
586
|
-
[AnalyticsReports.Revenue30Days]: number;
|
|
587
|
-
}
|
|
588
|
-
export declare enum AnalyticsReports {
|
|
589
|
-
Sales7Days = "sales_7days",
|
|
590
|
-
Sales30Days = "sales_30days",
|
|
591
|
-
Revenue7Days = "revenue_7days",
|
|
592
|
-
Revenue30Days = "revenue_30days"
|
|
593
|
-
}
|
|
594
|
-
export declare enum ActivityLogAction {
|
|
595
|
-
Create = "create",
|
|
596
|
-
Delete = "delete",
|
|
597
|
-
Duplicate = "duplicate",
|
|
598
|
-
Sync = "sync",
|
|
599
|
-
Trigger = "trigger",
|
|
600
|
-
Update = "update"
|
|
294
|
+
export interface SearchableField extends ResourceDocument {
|
|
295
|
+
field: string;
|
|
296
|
+
enabled: boolean;
|
|
297
|
+
hidden?: boolean;
|
|
298
|
+
points: number;
|
|
299
|
+
allowedMistakes: number;
|
|
300
|
+
mistakePenaltyPercent: number;
|
|
301
|
+
synyonymEnabled: boolean;
|
|
302
|
+
synonymPenaltyPercent: number;
|
|
601
303
|
}
|
|
602
|
-
export interface
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
im: string;
|
|
609
|
-
last_name: string;
|
|
610
|
-
permissions: Array<string>;
|
|
611
|
-
phone: string;
|
|
612
|
-
receive_announcements: number;
|
|
613
|
-
screen_name: string;
|
|
614
|
-
url: string;
|
|
615
|
-
locale: string;
|
|
616
|
-
user_type: string;
|
|
304
|
+
export interface Boosting {
|
|
305
|
+
key: string;
|
|
306
|
+
fieldName: string;
|
|
307
|
+
operation: Operation;
|
|
308
|
+
value: string;
|
|
309
|
+
points: number;
|
|
617
310
|
}
|
|
618
|
-
export interface
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
resourceType: ResourceType;
|
|
623
|
-
shopifyStaffMemberId: string | undefined;
|
|
311
|
+
export interface Sorting {
|
|
312
|
+
field: string;
|
|
313
|
+
position: number;
|
|
314
|
+
direction: "asc" | "desc";
|
|
624
315
|
}
|
|
625
|
-
export
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
316
|
+
export declare const Operation: {
|
|
317
|
+
readonly Equals: "equals";
|
|
318
|
+
readonly NotEquals: "not equals";
|
|
319
|
+
readonly Contains: "contains";
|
|
320
|
+
readonly NotContains: "not contains";
|
|
321
|
+
readonly LessThan: "less than";
|
|
322
|
+
readonly GreaterThan: "greater than";
|
|
632
323
|
};
|
|
324
|
+
export type Operation = typeof Operation[keyof typeof Operation];
|