@searchspring/snapi-oas 0.1.41 → 0.1.44

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 CHANGED
@@ -1,4 +1,4 @@
1
- # Snap API OpenAPI Specification v0.1.41
1
+ # Snap API OpenAPI Specification v0.1.44
2
2
 
3
3
  https://searchspring.github.io/snapi-oas/
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchspring/snapi-oas",
3
- "version": "0.1.41",
3
+ "version": "0.1.44",
4
4
  "description": "Snap OpenAPI Specification",
5
5
  "author": "Searchspring",
6
6
  "license": "MIT",
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "description" : "Searchspring Snap Search API",
8
8
  "title" : "snAPI",
9
- "version" : "0.1.41",
9
+ "version" : "0.1.44",
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/SearchRequestModel"
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/SearchRequestModel_search"
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" : {
@@ -3249,6 +3288,9 @@
3249
3288
  },
3250
3289
  "merchandising" : {
3251
3290
  "$ref" : "#/components/schemas/SearchResponseModelMerchandising"
3291
+ },
3292
+ "tracking" : {
3293
+ "$ref" : "#/components/schemas/SearchResponseModelTracking"
3252
3294
  }
3253
3295
  },
3254
3296
  "title" : "Search Response Data Model",
@@ -3463,6 +3505,14 @@
3463
3505
  },
3464
3506
  "type" : "object"
3465
3507
  },
3508
+ "SearchResponseModelTracking" : {
3509
+ "properties" : {
3510
+ "responseId" : {
3511
+ "type" : "string"
3512
+ }
3513
+ },
3514
+ "type" : "object"
3515
+ },
3466
3516
  "MetaResponseModel" : {
3467
3517
  "properties" : {
3468
3518
  "sortOptions" : {
@@ -3637,19 +3687,26 @@
3637
3687
  "title" : "Meta Request Model",
3638
3688
  "type" : "object"
3639
3689
  },
3640
- "AutocompleteRequestModel_suggestions" : {
3690
+ "AutocompleteRequestModel_allOf" : {
3641
3691
  "properties" : {
3642
- "count" : {
3643
- "type" : "integer"
3692
+ "search" : {
3693
+ "$ref" : "#/components/schemas/AutocompleteRequestModelSearch"
3694
+ },
3695
+ "suggestions" : {
3696
+ "$ref" : "#/components/schemas/AutocompleteRequestModelSuggestions"
3644
3697
  }
3645
3698
  },
3646
- "title" : "AutocompleteRequestModel_suggestions",
3647
3699
  "type" : "object"
3648
3700
  },
3649
- "AutocompleteRequestModel_allOf" : {
3701
+ "AutocompleteRequestModelSearch_allOf" : {
3650
3702
  "properties" : {
3651
- "suggestions" : {
3652
- "$ref" : "#/components/schemas/AutocompleteRequestModel_suggestions"
3703
+ "input" : {
3704
+ "description" : "current input from the user",
3705
+ "type" : "string"
3706
+ },
3707
+ "source" : {
3708
+ "description" : "source of the autocomplete request (\"historical\", \"popular\", \"suggested\" or \"typed\")",
3709
+ "type" : "string"
3653
3710
  }
3654
3711
  },
3655
3712
  "type" : "object"
@@ -3718,42 +3775,6 @@
3718
3775
  },
3719
3776
  "type" : "object"
3720
3777
  },
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
3778
  "SearchRequestModel_pagination" : {
3758
3779
  "properties" : {
3759
3780
  "page" : {
@@ -3856,6 +3877,18 @@
3856
3877
  },
3857
3878
  "type" : "object"
3858
3879
  },
3880
+ "SearchRequestModelSearch_query" : {
3881
+ "properties" : {
3882
+ "string" : {
3883
+ "description" : "Query value will search the index for terms that match the query. Will support up to 256 characters.",
3884
+ "type" : "string"
3885
+ },
3886
+ "spellCorrection" : {
3887
+ "type" : "boolean"
3888
+ }
3889
+ },
3890
+ "type" : "object"
3891
+ },
3859
3892
  "SearchRequestModelFilterValue_allOf" : {
3860
3893
  "properties" : {
3861
3894
  "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.41
7
+ version: 0.1.44
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/SearchRequestModel_search'
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:
@@ -2961,6 +2999,8 @@ components:
2961
2999
  banner:
2962
3000
  - banner
2963
3001
  - banner
3002
+ tracking:
3003
+ responseId: responseId
2964
3004
  facets:
2965
3005
  - field: field
2966
3006
  filtered: true
@@ -2991,6 +3031,8 @@ components:
2991
3031
  type: array
2992
3032
  merchandising:
2993
3033
  $ref: '#/components/schemas/SearchResponseModelMerchandising'
3034
+ tracking:
3035
+ $ref: '#/components/schemas/SearchResponseModelTracking'
2994
3036
  title: Search Response Data Model
2995
3037
  type: object
2996
3038
  SearchResponseModelFilter:
@@ -3240,6 +3282,13 @@ components:
3240
3282
  content:
3241
3283
  $ref: '#/components/schemas/SearchResponseModelMerchandising_content'
3242
3284
  type: object
3285
+ SearchResponseModelTracking:
3286
+ example:
3287
+ responseId: responseId
3288
+ properties:
3289
+ responseId:
3290
+ type: string
3291
+ type: object
3243
3292
  MetaResponseModel:
3244
3293
  example:
3245
3294
  badges:
@@ -3426,16 +3475,22 @@ components:
3426
3475
  - siteId
3427
3476
  title: Meta Request Model
3428
3477
  type: object
3429
- AutocompleteRequestModel_suggestions:
3430
- properties:
3431
- count:
3432
- type: integer
3433
- title: AutocompleteRequestModel_suggestions
3434
- type: object
3435
3478
  AutocompleteRequestModel_allOf:
3436
3479
  properties:
3480
+ search:
3481
+ $ref: '#/components/schemas/AutocompleteRequestModelSearch'
3437
3482
  suggestions:
3438
- $ref: '#/components/schemas/AutocompleteRequestModel_suggestions'
3483
+ $ref: '#/components/schemas/AutocompleteRequestModelSuggestions'
3484
+ type: object
3485
+ AutocompleteRequestModelSearch_allOf:
3486
+ properties:
3487
+ input:
3488
+ description: current input from the user
3489
+ type: string
3490
+ source:
3491
+ description: source of the autocomplete request ("historical", "popular",
3492
+ "suggested" or "typed")
3493
+ type: string
3439
3494
  type: object
3440
3495
  AutocompleteResponseModel_allOf_autocomplete_suggested:
3441
3496
  properties:
@@ -3484,47 +3539,6 @@ components:
3484
3539
  - desc
3485
3540
  type: string
3486
3541
  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
3542
  SearchRequestModel_pagination:
3529
3543
  example:
3530
3544
  pageSize: 6
@@ -3625,6 +3639,18 @@ components:
3625
3639
  description: logged in shopper identifier
3626
3640
  type: string
3627
3641
  type: object
3642
+ SearchRequestModelSearch_query:
3643
+ example:
3644
+ string: string
3645
+ spellCorrection: true
3646
+ properties:
3647
+ string:
3648
+ description: Query value will search the index for terms that match the
3649
+ query. Will support up to 256 characters.
3650
+ type: string
3651
+ spellCorrection:
3652
+ type: boolean
3653
+ type: object
3628
3654
  SearchRequestModelFilterValue_allOf:
3629
3655
  properties:
3630
3656
  value: