@searchspring/snapi-oas 0.1.31 → 0.1.33
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/README.md +1 -1
- package/package.json +1 -1
- package/spec/v1/snapi.oas.v1.json +108 -1
- package/spec/v1/snapi.oas.v1.yaml +210 -1
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
},
|
|
7
7
|
"description" : "Searchspring Snap Search API",
|
|
8
8
|
"title" : "snAPI",
|
|
9
|
-
"version" : "0.1.
|
|
9
|
+
"version" : "0.1.33",
|
|
10
10
|
"x-logo" : {
|
|
11
11
|
"url" : "./images/searchspring_logo.svg",
|
|
12
12
|
"altText" : "Searchspring Snap"
|
|
@@ -3379,6 +3379,22 @@
|
|
|
3379
3379
|
"title" : "Result Core Field Mappings",
|
|
3380
3380
|
"type" : "object"
|
|
3381
3381
|
},
|
|
3382
|
+
"SearchResponseModelResultBadges" : {
|
|
3383
|
+
"description" : "List of matching badges for the result",
|
|
3384
|
+
"items" : {
|
|
3385
|
+
"properties" : {
|
|
3386
|
+
"tag" : {
|
|
3387
|
+
"type" : "string"
|
|
3388
|
+
},
|
|
3389
|
+
"value" : {
|
|
3390
|
+
"type" : "string"
|
|
3391
|
+
}
|
|
3392
|
+
},
|
|
3393
|
+
"type" : "object"
|
|
3394
|
+
},
|
|
3395
|
+
"title" : "Result Badges Array",
|
|
3396
|
+
"type" : "array"
|
|
3397
|
+
},
|
|
3382
3398
|
"SearchResponseModelResultAttributes" : {
|
|
3383
3399
|
"additionalProperties" : true,
|
|
3384
3400
|
"description" : "Additional fields for results - these are site specific fields which can have various value types",
|
|
@@ -3440,6 +3456,9 @@
|
|
|
3440
3456
|
},
|
|
3441
3457
|
"type" : "array"
|
|
3442
3458
|
},
|
|
3459
|
+
"personalized" : {
|
|
3460
|
+
"type" : "boolean"
|
|
3461
|
+
},
|
|
3443
3462
|
"content" : {
|
|
3444
3463
|
"$ref" : "#/components/schemas/SearchResponseModelMerchandising_content"
|
|
3445
3464
|
}
|
|
@@ -3462,6 +3481,9 @@
|
|
|
3462
3481
|
},
|
|
3463
3482
|
"pagination" : {
|
|
3464
3483
|
"$ref" : "#/components/schemas/MetaResponseModel_pagination"
|
|
3484
|
+
},
|
|
3485
|
+
"badges" : {
|
|
3486
|
+
"$ref" : "#/components/schemas/MetaResponseModel_badges"
|
|
3465
3487
|
}
|
|
3466
3488
|
},
|
|
3467
3489
|
"type" : "object"
|
|
@@ -3570,6 +3592,42 @@
|
|
|
3570
3592
|
"$ref" : "#/components/schemas/MetaResponseModelFacetHierarchy_allOf"
|
|
3571
3593
|
} ]
|
|
3572
3594
|
},
|
|
3595
|
+
"MetaResponseModelBadgeLocation" : {
|
|
3596
|
+
"properties" : {
|
|
3597
|
+
"name" : {
|
|
3598
|
+
"type" : "string"
|
|
3599
|
+
},
|
|
3600
|
+
"label" : {
|
|
3601
|
+
"type" : "string"
|
|
3602
|
+
},
|
|
3603
|
+
"description" : {
|
|
3604
|
+
"type" : "string"
|
|
3605
|
+
}
|
|
3606
|
+
},
|
|
3607
|
+
"type" : "object"
|
|
3608
|
+
},
|
|
3609
|
+
"MetaResponseModelBadgeTag" : {
|
|
3610
|
+
"properties" : {
|
|
3611
|
+
"location" : {
|
|
3612
|
+
"type" : "string"
|
|
3613
|
+
},
|
|
3614
|
+
"component" : {
|
|
3615
|
+
"type" : "string"
|
|
3616
|
+
},
|
|
3617
|
+
"priority" : {
|
|
3618
|
+
"type" : "number"
|
|
3619
|
+
},
|
|
3620
|
+
"enabled" : {
|
|
3621
|
+
"type" : "boolean"
|
|
3622
|
+
},
|
|
3623
|
+
"parameters" : {
|
|
3624
|
+
"additionalProperties" : true,
|
|
3625
|
+
"description" : "Additional badge parameters - these are template specific fields which can have various value types",
|
|
3626
|
+
"type" : "object"
|
|
3627
|
+
}
|
|
3628
|
+
},
|
|
3629
|
+
"type" : "object"
|
|
3630
|
+
},
|
|
3573
3631
|
"Meta_Request_Model" : {
|
|
3574
3632
|
"properties" : {
|
|
3575
3633
|
"siteId" : {
|
|
@@ -3666,6 +3724,7 @@
|
|
|
3666
3724
|
"SearchRequestModel_search_query" : {
|
|
3667
3725
|
"properties" : {
|
|
3668
3726
|
"string" : {
|
|
3727
|
+
"description" : "Query value will search the index for terms that match the query. Will support up to 256 characters.",
|
|
3669
3728
|
"type" : "string"
|
|
3670
3729
|
},
|
|
3671
3730
|
"spellCorrection" : {
|
|
@@ -3881,6 +3940,9 @@
|
|
|
3881
3940
|
"properties" : {
|
|
3882
3941
|
"core" : {
|
|
3883
3942
|
"$ref" : "#/components/schemas/SearchResponseModelResultCoreMappings"
|
|
3943
|
+
},
|
|
3944
|
+
"badges" : {
|
|
3945
|
+
"$ref" : "#/components/schemas/SearchResponseModelResultBadges"
|
|
3884
3946
|
}
|
|
3885
3947
|
},
|
|
3886
3948
|
"type" : "object"
|
|
@@ -4050,6 +4112,51 @@
|
|
|
4050
4112
|
},
|
|
4051
4113
|
"type" : "object"
|
|
4052
4114
|
},
|
|
4115
|
+
"MetaResponseModel_badges_locations_overlay" : {
|
|
4116
|
+
"properties" : {
|
|
4117
|
+
"left" : {
|
|
4118
|
+
"items" : {
|
|
4119
|
+
"$ref" : "#/components/schemas/MetaResponseModelBadgeLocation"
|
|
4120
|
+
},
|
|
4121
|
+
"type" : "array"
|
|
4122
|
+
},
|
|
4123
|
+
"right" : {
|
|
4124
|
+
"items" : {
|
|
4125
|
+
"$ref" : "#/components/schemas/MetaResponseModelBadgeLocation"
|
|
4126
|
+
},
|
|
4127
|
+
"type" : "array"
|
|
4128
|
+
}
|
|
4129
|
+
},
|
|
4130
|
+
"type" : "object"
|
|
4131
|
+
},
|
|
4132
|
+
"MetaResponseModel_badges_locations" : {
|
|
4133
|
+
"properties" : {
|
|
4134
|
+
"overlay" : {
|
|
4135
|
+
"$ref" : "#/components/schemas/MetaResponseModel_badges_locations_overlay"
|
|
4136
|
+
},
|
|
4137
|
+
"callouts" : {
|
|
4138
|
+
"items" : {
|
|
4139
|
+
"$ref" : "#/components/schemas/MetaResponseModelBadgeLocation"
|
|
4140
|
+
},
|
|
4141
|
+
"type" : "array"
|
|
4142
|
+
}
|
|
4143
|
+
},
|
|
4144
|
+
"type" : "object"
|
|
4145
|
+
},
|
|
4146
|
+
"MetaResponseModel_badges" : {
|
|
4147
|
+
"properties" : {
|
|
4148
|
+
"locations" : {
|
|
4149
|
+
"$ref" : "#/components/schemas/MetaResponseModel_badges_locations"
|
|
4150
|
+
},
|
|
4151
|
+
"tags" : {
|
|
4152
|
+
"additionalProperties" : {
|
|
4153
|
+
"$ref" : "#/components/schemas/MetaResponseModelBadgeTag"
|
|
4154
|
+
},
|
|
4155
|
+
"type" : "object"
|
|
4156
|
+
}
|
|
4157
|
+
},
|
|
4158
|
+
"type" : "object"
|
|
4159
|
+
},
|
|
4053
4160
|
"MetaResponseModelFacetSlider_allOf" : {
|
|
4054
4161
|
"properties" : {
|
|
4055
4162
|
"formatSeparator" : {
|
|
@@ -4,7 +4,7 @@ info:
|
|
|
4
4
|
name: Searchspring
|
|
5
5
|
description: Searchspring Snap Search API
|
|
6
6
|
title: snAPI
|
|
7
|
-
version: 0.1.
|
|
7
|
+
version: 0.1.33
|
|
8
8
|
x-logo:
|
|
9
9
|
url: ./images/searchspring_logo.svg
|
|
10
10
|
altText: Searchspring Snap
|
|
@@ -2863,6 +2863,9 @@ components:
|
|
|
2863
2863
|
type: value
|
|
2864
2864
|
results:
|
|
2865
2865
|
- mappings:
|
|
2866
|
+
badges:
|
|
2867
|
+
- '{}'
|
|
2868
|
+
- '{}'
|
|
2866
2869
|
core:
|
|
2867
2870
|
addToCartUrl: addToCartUrl
|
|
2868
2871
|
rating: 7.061401241503109
|
|
@@ -2888,6 +2891,9 @@ components:
|
|
|
2888
2891
|
key: '{}'
|
|
2889
2892
|
id: id
|
|
2890
2893
|
- mappings:
|
|
2894
|
+
badges:
|
|
2895
|
+
- '{}'
|
|
2896
|
+
- '{}'
|
|
2891
2897
|
core:
|
|
2892
2898
|
addToCartUrl: addToCartUrl
|
|
2893
2899
|
rating: 7.061401241503109
|
|
@@ -2921,6 +2927,7 @@ components:
|
|
|
2921
2927
|
- id: id
|
|
2922
2928
|
title: title
|
|
2923
2929
|
type: type
|
|
2930
|
+
personalized: true
|
|
2924
2931
|
content:
|
|
2925
2932
|
inline:
|
|
2926
2933
|
- config:
|
|
@@ -3009,6 +3016,9 @@ components:
|
|
|
3009
3016
|
SearchResponseModelResult:
|
|
3010
3017
|
example:
|
|
3011
3018
|
mappings:
|
|
3019
|
+
badges:
|
|
3020
|
+
- '{}'
|
|
3021
|
+
- '{}'
|
|
3012
3022
|
core:
|
|
3013
3023
|
addToCartUrl: addToCartUrl
|
|
3014
3024
|
rating: 7.061401241503109
|
|
@@ -3116,6 +3126,17 @@ components:
|
|
|
3116
3126
|
type: number
|
|
3117
3127
|
title: Result Core Field Mappings
|
|
3118
3128
|
type: object
|
|
3129
|
+
SearchResponseModelResultBadges:
|
|
3130
|
+
description: List of matching badges for the result
|
|
3131
|
+
items:
|
|
3132
|
+
properties:
|
|
3133
|
+
tag:
|
|
3134
|
+
type: string
|
|
3135
|
+
value:
|
|
3136
|
+
type: string
|
|
3137
|
+
type: object
|
|
3138
|
+
title: Result Badges Array
|
|
3139
|
+
type: array
|
|
3119
3140
|
SearchResponseModelResultAttributes:
|
|
3120
3141
|
additionalProperties: true
|
|
3121
3142
|
description: Additional fields for results - these are site specific fields
|
|
@@ -3165,6 +3186,7 @@ components:
|
|
|
3165
3186
|
- id: id
|
|
3166
3187
|
title: title
|
|
3167
3188
|
type: type
|
|
3189
|
+
personalized: true
|
|
3168
3190
|
content:
|
|
3169
3191
|
inline:
|
|
3170
3192
|
- config:
|
|
@@ -3194,11 +3216,45 @@ components:
|
|
|
3194
3216
|
items:
|
|
3195
3217
|
$ref: '#/components/schemas/SearchResponseModelMerchandising_campaigns'
|
|
3196
3218
|
type: array
|
|
3219
|
+
personalized:
|
|
3220
|
+
type: boolean
|
|
3197
3221
|
content:
|
|
3198
3222
|
$ref: '#/components/schemas/SearchResponseModelMerchandising_content'
|
|
3199
3223
|
type: object
|
|
3200
3224
|
MetaResponseModel:
|
|
3201
3225
|
example:
|
|
3226
|
+
badges:
|
|
3227
|
+
locations:
|
|
3228
|
+
callouts:
|
|
3229
|
+
- name: name
|
|
3230
|
+
description: description
|
|
3231
|
+
label: label
|
|
3232
|
+
- name: name
|
|
3233
|
+
description: description
|
|
3234
|
+
label: label
|
|
3235
|
+
overlay:
|
|
3236
|
+
left:
|
|
3237
|
+
- name: name
|
|
3238
|
+
description: description
|
|
3239
|
+
label: label
|
|
3240
|
+
- name: name
|
|
3241
|
+
description: description
|
|
3242
|
+
label: label
|
|
3243
|
+
right:
|
|
3244
|
+
- name: name
|
|
3245
|
+
description: description
|
|
3246
|
+
label: label
|
|
3247
|
+
- name: name
|
|
3248
|
+
description: description
|
|
3249
|
+
label: label
|
|
3250
|
+
tags:
|
|
3251
|
+
key:
|
|
3252
|
+
component: component
|
|
3253
|
+
location: location
|
|
3254
|
+
priority: 6.027456183070403
|
|
3255
|
+
parameters:
|
|
3256
|
+
key: '{}'
|
|
3257
|
+
enabled: true
|
|
3202
3258
|
pagination:
|
|
3203
3259
|
defaultPageSize: 0.8008281904610115
|
|
3204
3260
|
sortOptions:
|
|
@@ -3224,6 +3280,8 @@ components:
|
|
|
3224
3280
|
type: object
|
|
3225
3281
|
pagination:
|
|
3226
3282
|
$ref: '#/components/schemas/MetaResponseModel_pagination'
|
|
3283
|
+
badges:
|
|
3284
|
+
$ref: '#/components/schemas/MetaResponseModel_badges'
|
|
3227
3285
|
type: object
|
|
3228
3286
|
MetaResponseModelSortOption:
|
|
3229
3287
|
example:
|
|
@@ -3304,6 +3362,42 @@ components:
|
|
|
3304
3362
|
- $ref: '#/components/schemas/MetaResponseModelFacetDefaults'
|
|
3305
3363
|
- $ref: '#/components/schemas/MetaResponseModelFacetValue'
|
|
3306
3364
|
- $ref: '#/components/schemas/MetaResponseModelFacetHierarchy_allOf'
|
|
3365
|
+
MetaResponseModelBadgeLocation:
|
|
3366
|
+
example:
|
|
3367
|
+
name: name
|
|
3368
|
+
description: description
|
|
3369
|
+
label: label
|
|
3370
|
+
properties:
|
|
3371
|
+
name:
|
|
3372
|
+
type: string
|
|
3373
|
+
label:
|
|
3374
|
+
type: string
|
|
3375
|
+
description:
|
|
3376
|
+
type: string
|
|
3377
|
+
type: object
|
|
3378
|
+
MetaResponseModelBadgeTag:
|
|
3379
|
+
example:
|
|
3380
|
+
component: component
|
|
3381
|
+
location: location
|
|
3382
|
+
priority: 6.027456183070403
|
|
3383
|
+
parameters:
|
|
3384
|
+
key: '{}'
|
|
3385
|
+
enabled: true
|
|
3386
|
+
properties:
|
|
3387
|
+
location:
|
|
3388
|
+
type: string
|
|
3389
|
+
component:
|
|
3390
|
+
type: string
|
|
3391
|
+
priority:
|
|
3392
|
+
type: number
|
|
3393
|
+
enabled:
|
|
3394
|
+
type: boolean
|
|
3395
|
+
parameters:
|
|
3396
|
+
additionalProperties: true
|
|
3397
|
+
description: Additional badge parameters - these are template specific fields
|
|
3398
|
+
which can have various value types
|
|
3399
|
+
type: object
|
|
3400
|
+
type: object
|
|
3307
3401
|
Meta_Request_Model:
|
|
3308
3402
|
properties:
|
|
3309
3403
|
siteId:
|
|
@@ -3378,6 +3472,8 @@ components:
|
|
|
3378
3472
|
spellCorrection: true
|
|
3379
3473
|
properties:
|
|
3380
3474
|
string:
|
|
3475
|
+
description: Query value will search the index for terms that match the
|
|
3476
|
+
query. Will support up to 256 characters.
|
|
3381
3477
|
type: string
|
|
3382
3478
|
spellCorrection:
|
|
3383
3479
|
type: boolean
|
|
@@ -3582,6 +3678,9 @@ components:
|
|
|
3582
3678
|
type: object
|
|
3583
3679
|
SearchResponseModelResult_mappings:
|
|
3584
3680
|
example:
|
|
3681
|
+
badges:
|
|
3682
|
+
- '{}'
|
|
3683
|
+
- '{}'
|
|
3585
3684
|
core:
|
|
3586
3685
|
addToCartUrl: addToCartUrl
|
|
3587
3686
|
rating: 7.061401241503109
|
|
@@ -3601,6 +3700,17 @@ components:
|
|
|
3601
3700
|
properties:
|
|
3602
3701
|
core:
|
|
3603
3702
|
$ref: '#/components/schemas/SearchResponseModelResultCoreMappings'
|
|
3703
|
+
badges:
|
|
3704
|
+
description: List of matching badges for the result
|
|
3705
|
+
items:
|
|
3706
|
+
properties:
|
|
3707
|
+
tag:
|
|
3708
|
+
type: string
|
|
3709
|
+
value:
|
|
3710
|
+
type: string
|
|
3711
|
+
type: object
|
|
3712
|
+
title: Result Badges Array
|
|
3713
|
+
type: array
|
|
3604
3714
|
type: object
|
|
3605
3715
|
SearchResponseModelResult_children:
|
|
3606
3716
|
example:
|
|
@@ -3753,6 +3863,105 @@ components:
|
|
|
3753
3863
|
defaultPageSize:
|
|
3754
3864
|
type: number
|
|
3755
3865
|
type: object
|
|
3866
|
+
MetaResponseModel_badges_locations_overlay:
|
|
3867
|
+
example:
|
|
3868
|
+
left:
|
|
3869
|
+
- name: name
|
|
3870
|
+
description: description
|
|
3871
|
+
label: label
|
|
3872
|
+
- name: name
|
|
3873
|
+
description: description
|
|
3874
|
+
label: label
|
|
3875
|
+
right:
|
|
3876
|
+
- name: name
|
|
3877
|
+
description: description
|
|
3878
|
+
label: label
|
|
3879
|
+
- name: name
|
|
3880
|
+
description: description
|
|
3881
|
+
label: label
|
|
3882
|
+
properties:
|
|
3883
|
+
left:
|
|
3884
|
+
items:
|
|
3885
|
+
$ref: '#/components/schemas/MetaResponseModelBadgeLocation'
|
|
3886
|
+
type: array
|
|
3887
|
+
right:
|
|
3888
|
+
items:
|
|
3889
|
+
$ref: '#/components/schemas/MetaResponseModelBadgeLocation'
|
|
3890
|
+
type: array
|
|
3891
|
+
type: object
|
|
3892
|
+
MetaResponseModel_badges_locations:
|
|
3893
|
+
example:
|
|
3894
|
+
callouts:
|
|
3895
|
+
- name: name
|
|
3896
|
+
description: description
|
|
3897
|
+
label: label
|
|
3898
|
+
- name: name
|
|
3899
|
+
description: description
|
|
3900
|
+
label: label
|
|
3901
|
+
overlay:
|
|
3902
|
+
left:
|
|
3903
|
+
- name: name
|
|
3904
|
+
description: description
|
|
3905
|
+
label: label
|
|
3906
|
+
- name: name
|
|
3907
|
+
description: description
|
|
3908
|
+
label: label
|
|
3909
|
+
right:
|
|
3910
|
+
- name: name
|
|
3911
|
+
description: description
|
|
3912
|
+
label: label
|
|
3913
|
+
- name: name
|
|
3914
|
+
description: description
|
|
3915
|
+
label: label
|
|
3916
|
+
properties:
|
|
3917
|
+
overlay:
|
|
3918
|
+
$ref: '#/components/schemas/MetaResponseModel_badges_locations_overlay'
|
|
3919
|
+
callouts:
|
|
3920
|
+
items:
|
|
3921
|
+
$ref: '#/components/schemas/MetaResponseModelBadgeLocation'
|
|
3922
|
+
type: array
|
|
3923
|
+
type: object
|
|
3924
|
+
MetaResponseModel_badges:
|
|
3925
|
+
example:
|
|
3926
|
+
locations:
|
|
3927
|
+
callouts:
|
|
3928
|
+
- name: name
|
|
3929
|
+
description: description
|
|
3930
|
+
label: label
|
|
3931
|
+
- name: name
|
|
3932
|
+
description: description
|
|
3933
|
+
label: label
|
|
3934
|
+
overlay:
|
|
3935
|
+
left:
|
|
3936
|
+
- name: name
|
|
3937
|
+
description: description
|
|
3938
|
+
label: label
|
|
3939
|
+
- name: name
|
|
3940
|
+
description: description
|
|
3941
|
+
label: label
|
|
3942
|
+
right:
|
|
3943
|
+
- name: name
|
|
3944
|
+
description: description
|
|
3945
|
+
label: label
|
|
3946
|
+
- name: name
|
|
3947
|
+
description: description
|
|
3948
|
+
label: label
|
|
3949
|
+
tags:
|
|
3950
|
+
key:
|
|
3951
|
+
component: component
|
|
3952
|
+
location: location
|
|
3953
|
+
priority: 6.027456183070403
|
|
3954
|
+
parameters:
|
|
3955
|
+
key: '{}'
|
|
3956
|
+
enabled: true
|
|
3957
|
+
properties:
|
|
3958
|
+
locations:
|
|
3959
|
+
$ref: '#/components/schemas/MetaResponseModel_badges_locations'
|
|
3960
|
+
tags:
|
|
3961
|
+
additionalProperties:
|
|
3962
|
+
$ref: '#/components/schemas/MetaResponseModelBadgeTag'
|
|
3963
|
+
type: object
|
|
3964
|
+
type: object
|
|
3756
3965
|
MetaResponseModelFacetSlider_allOf:
|
|
3757
3966
|
properties:
|
|
3758
3967
|
formatSeparator:
|