@searchspring/snapi-oas 0.1.41 → 0.1.43
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 +68 -46
- package/spec/v1/snapi.oas.v1.yaml +66 -51
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.43",
|
|
10
10
|
"x-logo" : {
|
|
11
11
|
"url" : "./images/searchspring_logo.svg",
|
|
12
12
|
"altText" : "Searchspring Snap"
|
|
@@ -3126,11 +3126,26 @@
|
|
|
3126
3126
|
"schemas" : {
|
|
3127
3127
|
"AutocompleteRequestModel" : {
|
|
3128
3128
|
"allOf" : [ {
|
|
3129
|
+
"$ref" : "#/components/schemas/SearchRequestModel"
|
|
3130
|
+
}, {
|
|
3129
3131
|
"$ref" : "#/components/schemas/AutocompleteRequestModel_allOf"
|
|
3132
|
+
} ]
|
|
3133
|
+
},
|
|
3134
|
+
"AutocompleteRequestModelSearch" : {
|
|
3135
|
+
"allOf" : [ {
|
|
3136
|
+
"$ref" : "#/components/schemas/SearchRequestModelSearch"
|
|
3130
3137
|
}, {
|
|
3131
|
-
"$ref" : "#/components/schemas/
|
|
3138
|
+
"$ref" : "#/components/schemas/AutocompleteRequestModelSearch_allOf"
|
|
3132
3139
|
} ]
|
|
3133
3140
|
},
|
|
3141
|
+
"AutocompleteRequestModelSuggestions" : {
|
|
3142
|
+
"properties" : {
|
|
3143
|
+
"count" : {
|
|
3144
|
+
"type" : "integer"
|
|
3145
|
+
}
|
|
3146
|
+
},
|
|
3147
|
+
"type" : "object"
|
|
3148
|
+
},
|
|
3134
3149
|
"AutocompleteResponseModel" : {
|
|
3135
3150
|
"allOf" : [ {
|
|
3136
3151
|
"$ref" : "#/components/schemas/AutocompleteResponseModel_allOf"
|
|
@@ -3151,7 +3166,7 @@
|
|
|
3151
3166
|
"type" : "array"
|
|
3152
3167
|
},
|
|
3153
3168
|
"search" : {
|
|
3154
|
-
"$ref" : "#/components/schemas/
|
|
3169
|
+
"$ref" : "#/components/schemas/SearchRequestModelSearch"
|
|
3155
3170
|
},
|
|
3156
3171
|
"filters" : {
|
|
3157
3172
|
"items" : {
|
|
@@ -3178,6 +3193,30 @@
|
|
|
3178
3193
|
"title" : "Search Request Data Model",
|
|
3179
3194
|
"type" : "object"
|
|
3180
3195
|
},
|
|
3196
|
+
"SearchRequestModelSearch" : {
|
|
3197
|
+
"properties" : {
|
|
3198
|
+
"query" : {
|
|
3199
|
+
"$ref" : "#/components/schemas/SearchRequestModelSearch_query"
|
|
3200
|
+
},
|
|
3201
|
+
"subQuery" : {
|
|
3202
|
+
"type" : "string"
|
|
3203
|
+
},
|
|
3204
|
+
"originalQuery" : {
|
|
3205
|
+
"description" : "Original query if spell correction occured.",
|
|
3206
|
+
"type" : "string"
|
|
3207
|
+
},
|
|
3208
|
+
"fallbackQuery" : {
|
|
3209
|
+
"description" : "Integrated spell correction parameter is used as a fallback when the query parameter fails to return results.",
|
|
3210
|
+
"type" : "string"
|
|
3211
|
+
},
|
|
3212
|
+
"redirectResponse" : {
|
|
3213
|
+
"description" : "Changes how Redirects behave in the response.",
|
|
3214
|
+
"enum" : [ "full", "minimal", "direct" ],
|
|
3215
|
+
"type" : "string"
|
|
3216
|
+
}
|
|
3217
|
+
},
|
|
3218
|
+
"type" : "object"
|
|
3219
|
+
},
|
|
3181
3220
|
"SearchRequestModelFilter" : {
|
|
3182
3221
|
"discriminator" : {
|
|
3183
3222
|
"mapping" : {
|
|
@@ -3637,19 +3676,26 @@
|
|
|
3637
3676
|
"title" : "Meta Request Model",
|
|
3638
3677
|
"type" : "object"
|
|
3639
3678
|
},
|
|
3640
|
-
"
|
|
3679
|
+
"AutocompleteRequestModel_allOf" : {
|
|
3641
3680
|
"properties" : {
|
|
3642
|
-
"
|
|
3643
|
-
"
|
|
3681
|
+
"search" : {
|
|
3682
|
+
"$ref" : "#/components/schemas/AutocompleteRequestModelSearch"
|
|
3683
|
+
},
|
|
3684
|
+
"suggestions" : {
|
|
3685
|
+
"$ref" : "#/components/schemas/AutocompleteRequestModelSuggestions"
|
|
3644
3686
|
}
|
|
3645
3687
|
},
|
|
3646
|
-
"title" : "AutocompleteRequestModel_suggestions",
|
|
3647
3688
|
"type" : "object"
|
|
3648
3689
|
},
|
|
3649
|
-
"
|
|
3690
|
+
"AutocompleteRequestModelSearch_allOf" : {
|
|
3650
3691
|
"properties" : {
|
|
3651
|
-
"
|
|
3652
|
-
"
|
|
3692
|
+
"input" : {
|
|
3693
|
+
"description" : "current input from the user",
|
|
3694
|
+
"type" : "string"
|
|
3695
|
+
},
|
|
3696
|
+
"source" : {
|
|
3697
|
+
"description" : "source of the autocomplete request (\"historical\", \"popular\", \"suggested\" or \"typed\")",
|
|
3698
|
+
"type" : "string"
|
|
3653
3699
|
}
|
|
3654
3700
|
},
|
|
3655
3701
|
"type" : "object"
|
|
@@ -3718,42 +3764,6 @@
|
|
|
3718
3764
|
},
|
|
3719
3765
|
"type" : "object"
|
|
3720
3766
|
},
|
|
3721
|
-
"SearchRequestModel_search_query" : {
|
|
3722
|
-
"properties" : {
|
|
3723
|
-
"string" : {
|
|
3724
|
-
"description" : "Query value will search the index for terms that match the query. Will support up to 256 characters.",
|
|
3725
|
-
"type" : "string"
|
|
3726
|
-
},
|
|
3727
|
-
"spellCorrection" : {
|
|
3728
|
-
"type" : "boolean"
|
|
3729
|
-
}
|
|
3730
|
-
},
|
|
3731
|
-
"type" : "object"
|
|
3732
|
-
},
|
|
3733
|
-
"SearchRequestModel_search" : {
|
|
3734
|
-
"properties" : {
|
|
3735
|
-
"query" : {
|
|
3736
|
-
"$ref" : "#/components/schemas/SearchRequestModel_search_query"
|
|
3737
|
-
},
|
|
3738
|
-
"subQuery" : {
|
|
3739
|
-
"type" : "string"
|
|
3740
|
-
},
|
|
3741
|
-
"originalQuery" : {
|
|
3742
|
-
"description" : "Original query if spell correction occured.",
|
|
3743
|
-
"type" : "string"
|
|
3744
|
-
},
|
|
3745
|
-
"fallbackQuery" : {
|
|
3746
|
-
"description" : "Integrated spell correction parameter is used as a fallback when the query parameter fails to return results.",
|
|
3747
|
-
"type" : "string"
|
|
3748
|
-
},
|
|
3749
|
-
"redirectResponse" : {
|
|
3750
|
-
"description" : "Changes how Redirects behave in the response.",
|
|
3751
|
-
"enum" : [ "full", "minimal", "direct" ],
|
|
3752
|
-
"type" : "string"
|
|
3753
|
-
}
|
|
3754
|
-
},
|
|
3755
|
-
"type" : "object"
|
|
3756
|
-
},
|
|
3757
3767
|
"SearchRequestModel_pagination" : {
|
|
3758
3768
|
"properties" : {
|
|
3759
3769
|
"page" : {
|
|
@@ -3856,6 +3866,18 @@
|
|
|
3856
3866
|
},
|
|
3857
3867
|
"type" : "object"
|
|
3858
3868
|
},
|
|
3869
|
+
"SearchRequestModelSearch_query" : {
|
|
3870
|
+
"properties" : {
|
|
3871
|
+
"string" : {
|
|
3872
|
+
"description" : "Query value will search the index for terms that match the query. Will support up to 256 characters.",
|
|
3873
|
+
"type" : "string"
|
|
3874
|
+
},
|
|
3875
|
+
"spellCorrection" : {
|
|
3876
|
+
"type" : "boolean"
|
|
3877
|
+
}
|
|
3878
|
+
},
|
|
3879
|
+
"type" : "object"
|
|
3880
|
+
},
|
|
3859
3881
|
"SearchRequestModelFilterValue_allOf" : {
|
|
3860
3882
|
"properties" : {
|
|
3861
3883
|
"value" : {
|
|
@@ -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.43
|
|
8
8
|
x-logo:
|
|
9
9
|
url: ./images/searchspring_logo.svg
|
|
10
10
|
altText: Searchspring Snap
|
|
@@ -2720,8 +2720,17 @@ components:
|
|
|
2720
2720
|
schemas:
|
|
2721
2721
|
AutocompleteRequestModel:
|
|
2722
2722
|
allOf:
|
|
2723
|
-
- $ref: '#/components/schemas/AutocompleteRequestModel_allOf'
|
|
2724
2723
|
- $ref: '#/components/schemas/SearchRequestModel'
|
|
2724
|
+
- $ref: '#/components/schemas/AutocompleteRequestModel_allOf'
|
|
2725
|
+
AutocompleteRequestModelSearch:
|
|
2726
|
+
allOf:
|
|
2727
|
+
- $ref: '#/components/schemas/SearchRequestModelSearch'
|
|
2728
|
+
- $ref: '#/components/schemas/AutocompleteRequestModelSearch_allOf'
|
|
2729
|
+
AutocompleteRequestModelSuggestions:
|
|
2730
|
+
properties:
|
|
2731
|
+
count:
|
|
2732
|
+
type: integer
|
|
2733
|
+
type: object
|
|
2725
2734
|
AutocompleteResponseModel:
|
|
2726
2735
|
allOf:
|
|
2727
2736
|
- $ref: '#/components/schemas/AutocompleteResponseModel_allOf'
|
|
@@ -2789,7 +2798,7 @@ components:
|
|
|
2789
2798
|
$ref: '#/components/schemas/SearchRequestModel_sorts'
|
|
2790
2799
|
type: array
|
|
2791
2800
|
search:
|
|
2792
|
-
$ref: '#/components/schemas/
|
|
2801
|
+
$ref: '#/components/schemas/SearchRequestModelSearch'
|
|
2793
2802
|
filters:
|
|
2794
2803
|
items:
|
|
2795
2804
|
$ref: '#/components/schemas/SearchRequestModelFilter'
|
|
@@ -2806,6 +2815,35 @@ components:
|
|
|
2806
2815
|
$ref: '#/components/schemas/SearchRequestModel_personalization'
|
|
2807
2816
|
title: Search Request Data Model
|
|
2808
2817
|
type: object
|
|
2818
|
+
SearchRequestModelSearch:
|
|
2819
|
+
example:
|
|
2820
|
+
query:
|
|
2821
|
+
string: string
|
|
2822
|
+
spellCorrection: true
|
|
2823
|
+
originalQuery: originalQuery
|
|
2824
|
+
redirectResponse: full
|
|
2825
|
+
fallbackQuery: fallbackQuery
|
|
2826
|
+
subQuery: subQuery
|
|
2827
|
+
properties:
|
|
2828
|
+
query:
|
|
2829
|
+
$ref: '#/components/schemas/SearchRequestModelSearch_query'
|
|
2830
|
+
subQuery:
|
|
2831
|
+
type: string
|
|
2832
|
+
originalQuery:
|
|
2833
|
+
description: Original query if spell correction occured.
|
|
2834
|
+
type: string
|
|
2835
|
+
fallbackQuery:
|
|
2836
|
+
description: Integrated spell correction parameter is used as a fallback
|
|
2837
|
+
when the query parameter fails to return results.
|
|
2838
|
+
type: string
|
|
2839
|
+
redirectResponse:
|
|
2840
|
+
description: Changes how Redirects behave in the response.
|
|
2841
|
+
enum:
|
|
2842
|
+
- full
|
|
2843
|
+
- minimal
|
|
2844
|
+
- direct
|
|
2845
|
+
type: string
|
|
2846
|
+
type: object
|
|
2809
2847
|
SearchRequestModelFilter:
|
|
2810
2848
|
discriminator:
|
|
2811
2849
|
mapping:
|
|
@@ -3426,16 +3464,22 @@ components:
|
|
|
3426
3464
|
- siteId
|
|
3427
3465
|
title: Meta Request Model
|
|
3428
3466
|
type: object
|
|
3429
|
-
AutocompleteRequestModel_suggestions:
|
|
3430
|
-
properties:
|
|
3431
|
-
count:
|
|
3432
|
-
type: integer
|
|
3433
|
-
title: AutocompleteRequestModel_suggestions
|
|
3434
|
-
type: object
|
|
3435
3467
|
AutocompleteRequestModel_allOf:
|
|
3436
3468
|
properties:
|
|
3469
|
+
search:
|
|
3470
|
+
$ref: '#/components/schemas/AutocompleteRequestModelSearch'
|
|
3437
3471
|
suggestions:
|
|
3438
|
-
$ref: '#/components/schemas/
|
|
3472
|
+
$ref: '#/components/schemas/AutocompleteRequestModelSuggestions'
|
|
3473
|
+
type: object
|
|
3474
|
+
AutocompleteRequestModelSearch_allOf:
|
|
3475
|
+
properties:
|
|
3476
|
+
input:
|
|
3477
|
+
description: current input from the user
|
|
3478
|
+
type: string
|
|
3479
|
+
source:
|
|
3480
|
+
description: source of the autocomplete request ("historical", "popular",
|
|
3481
|
+
"suggested" or "typed")
|
|
3482
|
+
type: string
|
|
3439
3483
|
type: object
|
|
3440
3484
|
AutocompleteResponseModel_allOf_autocomplete_suggested:
|
|
3441
3485
|
properties:
|
|
@@ -3484,47 +3528,6 @@ components:
|
|
|
3484
3528
|
- desc
|
|
3485
3529
|
type: string
|
|
3486
3530
|
type: object
|
|
3487
|
-
SearchRequestModel_search_query:
|
|
3488
|
-
example:
|
|
3489
|
-
string: string
|
|
3490
|
-
spellCorrection: true
|
|
3491
|
-
properties:
|
|
3492
|
-
string:
|
|
3493
|
-
description: Query value will search the index for terms that match the
|
|
3494
|
-
query. Will support up to 256 characters.
|
|
3495
|
-
type: string
|
|
3496
|
-
spellCorrection:
|
|
3497
|
-
type: boolean
|
|
3498
|
-
type: object
|
|
3499
|
-
SearchRequestModel_search:
|
|
3500
|
-
example:
|
|
3501
|
-
query:
|
|
3502
|
-
string: string
|
|
3503
|
-
spellCorrection: true
|
|
3504
|
-
originalQuery: originalQuery
|
|
3505
|
-
redirectResponse: full
|
|
3506
|
-
fallbackQuery: fallbackQuery
|
|
3507
|
-
subQuery: subQuery
|
|
3508
|
-
properties:
|
|
3509
|
-
query:
|
|
3510
|
-
$ref: '#/components/schemas/SearchRequestModel_search_query'
|
|
3511
|
-
subQuery:
|
|
3512
|
-
type: string
|
|
3513
|
-
originalQuery:
|
|
3514
|
-
description: Original query if spell correction occured.
|
|
3515
|
-
type: string
|
|
3516
|
-
fallbackQuery:
|
|
3517
|
-
description: Integrated spell correction parameter is used as a fallback
|
|
3518
|
-
when the query parameter fails to return results.
|
|
3519
|
-
type: string
|
|
3520
|
-
redirectResponse:
|
|
3521
|
-
description: Changes how Redirects behave in the response.
|
|
3522
|
-
enum:
|
|
3523
|
-
- full
|
|
3524
|
-
- minimal
|
|
3525
|
-
- direct
|
|
3526
|
-
type: string
|
|
3527
|
-
type: object
|
|
3528
3531
|
SearchRequestModel_pagination:
|
|
3529
3532
|
example:
|
|
3530
3533
|
pageSize: 6
|
|
@@ -3625,6 +3628,18 @@ components:
|
|
|
3625
3628
|
description: logged in shopper identifier
|
|
3626
3629
|
type: string
|
|
3627
3630
|
type: object
|
|
3631
|
+
SearchRequestModelSearch_query:
|
|
3632
|
+
example:
|
|
3633
|
+
string: string
|
|
3634
|
+
spellCorrection: true
|
|
3635
|
+
properties:
|
|
3636
|
+
string:
|
|
3637
|
+
description: Query value will search the index for terms that match the
|
|
3638
|
+
query. Will support up to 256 characters.
|
|
3639
|
+
type: string
|
|
3640
|
+
spellCorrection:
|
|
3641
|
+
type: boolean
|
|
3642
|
+
type: object
|
|
3628
3643
|
SearchRequestModelFilterValue_allOf:
|
|
3629
3644
|
properties:
|
|
3630
3645
|
value:
|