@searchspring/snapi-oas 0.1.40 → 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 CHANGED
@@ -1,4 +1,4 @@
1
- # Snap API OpenAPI Specification v0.1.40
1
+ # Snap API OpenAPI Specification v0.1.43
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.40",
3
+ "version": "0.1.43",
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.40",
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/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" : {
@@ -3296,9 +3335,6 @@
3296
3335
  "id" : {
3297
3336
  "type" : "string"
3298
3337
  },
3299
- "position" : {
3300
- "type" : "number"
3301
- },
3302
3338
  "mappings" : {
3303
3339
  "$ref" : "#/components/schemas/SearchResponseModelResult_mappings"
3304
3340
  },
@@ -3640,19 +3676,26 @@
3640
3676
  "title" : "Meta Request Model",
3641
3677
  "type" : "object"
3642
3678
  },
3643
- "AutocompleteRequestModel_suggestions" : {
3679
+ "AutocompleteRequestModel_allOf" : {
3644
3680
  "properties" : {
3645
- "count" : {
3646
- "type" : "integer"
3681
+ "search" : {
3682
+ "$ref" : "#/components/schemas/AutocompleteRequestModelSearch"
3683
+ },
3684
+ "suggestions" : {
3685
+ "$ref" : "#/components/schemas/AutocompleteRequestModelSuggestions"
3647
3686
  }
3648
3687
  },
3649
- "title" : "AutocompleteRequestModel_suggestions",
3650
3688
  "type" : "object"
3651
3689
  },
3652
- "AutocompleteRequestModel_allOf" : {
3690
+ "AutocompleteRequestModelSearch_allOf" : {
3653
3691
  "properties" : {
3654
- "suggestions" : {
3655
- "$ref" : "#/components/schemas/AutocompleteRequestModel_suggestions"
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"
3656
3699
  }
3657
3700
  },
3658
3701
  "type" : "object"
@@ -3721,42 +3764,6 @@
3721
3764
  },
3722
3765
  "type" : "object"
3723
3766
  },
3724
- "SearchRequestModel_search_query" : {
3725
- "properties" : {
3726
- "string" : {
3727
- "description" : "Query value will search the index for terms that match the query. Will support up to 256 characters.",
3728
- "type" : "string"
3729
- },
3730
- "spellCorrection" : {
3731
- "type" : "boolean"
3732
- }
3733
- },
3734
- "type" : "object"
3735
- },
3736
- "SearchRequestModel_search" : {
3737
- "properties" : {
3738
- "query" : {
3739
- "$ref" : "#/components/schemas/SearchRequestModel_search_query"
3740
- },
3741
- "subQuery" : {
3742
- "type" : "string"
3743
- },
3744
- "originalQuery" : {
3745
- "description" : "Original query if spell correction occured.",
3746
- "type" : "string"
3747
- },
3748
- "fallbackQuery" : {
3749
- "description" : "Integrated spell correction parameter is used as a fallback when the query parameter fails to return results.",
3750
- "type" : "string"
3751
- },
3752
- "redirectResponse" : {
3753
- "description" : "Changes how Redirects behave in the response.",
3754
- "enum" : [ "full", "minimal", "direct" ],
3755
- "type" : "string"
3756
- }
3757
- },
3758
- "type" : "object"
3759
- },
3760
3767
  "SearchRequestModel_pagination" : {
3761
3768
  "properties" : {
3762
3769
  "page" : {
@@ -3859,6 +3866,18 @@
3859
3866
  },
3860
3867
  "type" : "object"
3861
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
+ },
3862
3881
  "SearchRequestModelFilterValue_allOf" : {
3863
3882
  "properties" : {
3864
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.40
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/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:
@@ -2870,17 +2908,17 @@ components:
2870
2908
  mappings:
2871
2909
  core:
2872
2910
  addToCartUrl: addToCartUrl
2873
- rating: 9.301444243932576
2911
+ rating: 7.061401241503109
2874
2912
  description: description
2875
2913
  ratingCount: ratingCount
2876
2914
  url: url
2877
2915
  stockMessage: stockMessage
2878
2916
  uid: uid
2879
2917
  thumbnailImageUrl: thumbnailImageUrl
2880
- price: 2.3021358869347655
2881
- msrp: 7.061401241503109
2918
+ price: 5.637376656633329
2919
+ msrp: 2.3021358869347655
2882
2920
  imageUrl: imageUrl
2883
- popularity: 3.616076749251911
2921
+ popularity: 9.301444243932576
2884
2922
  name: name
2885
2923
  sku: sku
2886
2924
  brand: brand
@@ -2892,7 +2930,6 @@ components:
2892
2930
  attributes:
2893
2931
  key: '{}'
2894
2932
  id: id
2895
- position: 5.637376656633329
2896
2933
  - badges:
2897
2934
  - tag: tag
2898
2935
  value: value
@@ -2901,17 +2938,17 @@ components:
2901
2938
  mappings:
2902
2939
  core:
2903
2940
  addToCartUrl: addToCartUrl
2904
- rating: 9.301444243932576
2941
+ rating: 7.061401241503109
2905
2942
  description: description
2906
2943
  ratingCount: ratingCount
2907
2944
  url: url
2908
2945
  stockMessage: stockMessage
2909
2946
  uid: uid
2910
2947
  thumbnailImageUrl: thumbnailImageUrl
2911
- price: 2.3021358869347655
2912
- msrp: 7.061401241503109
2948
+ price: 5.637376656633329
2949
+ msrp: 2.3021358869347655
2913
2950
  imageUrl: imageUrl
2914
- popularity: 3.616076749251911
2951
+ popularity: 9.301444243932576
2915
2952
  name: name
2916
2953
  sku: sku
2917
2954
  brand: brand
@@ -2923,7 +2960,6 @@ components:
2923
2960
  attributes:
2924
2961
  key: '{}'
2925
2962
  id: id
2926
- position: 5.637376656633329
2927
2963
  merchandising:
2928
2964
  redirect: redirect
2929
2965
  campaigns:
@@ -2945,11 +2981,11 @@ components:
2945
2981
  inline:
2946
2982
  - config:
2947
2983
  position:
2948
- index: 2.027123023002322
2984
+ index: 3.616076749251911
2949
2985
  value: value
2950
2986
  - config:
2951
2987
  position:
2952
- index: 2.027123023002322
2988
+ index: 3.616076749251911
2953
2989
  value: value
2954
2990
  footer:
2955
2991
  - footer
@@ -3036,17 +3072,17 @@ components:
3036
3072
  mappings:
3037
3073
  core:
3038
3074
  addToCartUrl: addToCartUrl
3039
- rating: 9.301444243932576
3075
+ rating: 7.061401241503109
3040
3076
  description: description
3041
3077
  ratingCount: ratingCount
3042
3078
  url: url
3043
3079
  stockMessage: stockMessage
3044
3080
  uid: uid
3045
3081
  thumbnailImageUrl: thumbnailImageUrl
3046
- price: 2.3021358869347655
3047
- msrp: 7.061401241503109
3082
+ price: 5.637376656633329
3083
+ msrp: 2.3021358869347655
3048
3084
  imageUrl: imageUrl
3049
- popularity: 3.616076749251911
3085
+ popularity: 9.301444243932576
3050
3086
  name: name
3051
3087
  sku: sku
3052
3088
  brand: brand
@@ -3058,12 +3094,9 @@ components:
3058
3094
  attributes:
3059
3095
  key: '{}'
3060
3096
  id: id
3061
- position: 5.637376656633329
3062
3097
  properties:
3063
3098
  id:
3064
3099
  type: string
3065
- position:
3066
- type: number
3067
3100
  mappings:
3068
3101
  $ref: '#/components/schemas/SearchResponseModelResult_mappings'
3069
3102
  attributes:
@@ -3088,17 +3121,17 @@ components:
3088
3121
  description: Mapping of core fields for the result object
3089
3122
  example:
3090
3123
  addToCartUrl: addToCartUrl
3091
- rating: 9.301444243932576
3124
+ rating: 7.061401241503109
3092
3125
  description: description
3093
3126
  ratingCount: ratingCount
3094
3127
  url: url
3095
3128
  stockMessage: stockMessage
3096
3129
  uid: uid
3097
3130
  thumbnailImageUrl: thumbnailImageUrl
3098
- price: 2.3021358869347655
3099
- msrp: 7.061401241503109
3131
+ price: 5.637376656633329
3132
+ msrp: 2.3021358869347655
3100
3133
  imageUrl: imageUrl
3101
- popularity: 3.616076749251911
3134
+ popularity: 9.301444243932576
3102
3135
  name: name
3103
3136
  sku: sku
3104
3137
  brand: brand
@@ -3211,11 +3244,11 @@ components:
3211
3244
  inline:
3212
3245
  - config:
3213
3246
  position:
3214
- index: 2.027123023002322
3247
+ index: 3.616076749251911
3215
3248
  value: value
3216
3249
  - config:
3217
3250
  position:
3218
- index: 2.027123023002322
3251
+ index: 3.616076749251911
3219
3252
  value: value
3220
3253
  footer:
3221
3254
  - footer
@@ -3431,16 +3464,22 @@ components:
3431
3464
  - siteId
3432
3465
  title: Meta Request Model
3433
3466
  type: object
3434
- AutocompleteRequestModel_suggestions:
3435
- properties:
3436
- count:
3437
- type: integer
3438
- title: AutocompleteRequestModel_suggestions
3439
- type: object
3440
3467
  AutocompleteRequestModel_allOf:
3441
3468
  properties:
3469
+ search:
3470
+ $ref: '#/components/schemas/AutocompleteRequestModelSearch'
3442
3471
  suggestions:
3443
- $ref: '#/components/schemas/AutocompleteRequestModel_suggestions'
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
3444
3483
  type: object
3445
3484
  AutocompleteResponseModel_allOf_autocomplete_suggested:
3446
3485
  properties:
@@ -3489,47 +3528,6 @@ components:
3489
3528
  - desc
3490
3529
  type: string
3491
3530
  type: object
3492
- SearchRequestModel_search_query:
3493
- example:
3494
- string: string
3495
- spellCorrection: true
3496
- properties:
3497
- string:
3498
- description: Query value will search the index for terms that match the
3499
- query. Will support up to 256 characters.
3500
- type: string
3501
- spellCorrection:
3502
- type: boolean
3503
- type: object
3504
- SearchRequestModel_search:
3505
- example:
3506
- query:
3507
- string: string
3508
- spellCorrection: true
3509
- originalQuery: originalQuery
3510
- redirectResponse: full
3511
- fallbackQuery: fallbackQuery
3512
- subQuery: subQuery
3513
- properties:
3514
- query:
3515
- $ref: '#/components/schemas/SearchRequestModel_search_query'
3516
- subQuery:
3517
- type: string
3518
- originalQuery:
3519
- description: Original query if spell correction occured.
3520
- type: string
3521
- fallbackQuery:
3522
- description: Integrated spell correction parameter is used as a fallback
3523
- when the query parameter fails to return results.
3524
- type: string
3525
- redirectResponse:
3526
- description: Changes how Redirects behave in the response.
3527
- enum:
3528
- - full
3529
- - minimal
3530
- - direct
3531
- type: string
3532
- type: object
3533
3531
  SearchRequestModel_pagination:
3534
3532
  example:
3535
3533
  pageSize: 6
@@ -3630,6 +3628,18 @@ components:
3630
3628
  description: logged in shopper identifier
3631
3629
  type: string
3632
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
3633
3643
  SearchRequestModelFilterValue_allOf:
3634
3644
  properties:
3635
3645
  value:
@@ -3704,17 +3714,17 @@ components:
3704
3714
  example:
3705
3715
  core:
3706
3716
  addToCartUrl: addToCartUrl
3707
- rating: 9.301444243932576
3717
+ rating: 7.061401241503109
3708
3718
  description: description
3709
3719
  ratingCount: ratingCount
3710
3720
  url: url
3711
3721
  stockMessage: stockMessage
3712
3722
  uid: uid
3713
3723
  thumbnailImageUrl: thumbnailImageUrl
3714
- price: 2.3021358869347655
3715
- msrp: 7.061401241503109
3724
+ price: 5.637376656633329
3725
+ msrp: 2.3021358869347655
3716
3726
  imageUrl: imageUrl
3717
- popularity: 3.616076749251911
3727
+ popularity: 9.301444243932576
3718
3728
  name: name
3719
3729
  sku: sku
3720
3730
  brand: brand
@@ -3821,7 +3831,7 @@ components:
3821
3831
  type: object
3822
3832
  SearchResponseModelMerchandising_content_config_position:
3823
3833
  example:
3824
- index: 2.027123023002322
3834
+ index: 3.616076749251911
3825
3835
  properties:
3826
3836
  index:
3827
3837
  type: number
@@ -3829,7 +3839,7 @@ components:
3829
3839
  SearchResponseModelMerchandising_content_config:
3830
3840
  example:
3831
3841
  position:
3832
- index: 2.027123023002322
3842
+ index: 3.616076749251911
3833
3843
  properties:
3834
3844
  position:
3835
3845
  $ref: '#/components/schemas/SearchResponseModelMerchandising_content_config_position'
@@ -3838,7 +3848,7 @@ components:
3838
3848
  example:
3839
3849
  config:
3840
3850
  position:
3841
- index: 2.027123023002322
3851
+ index: 3.616076749251911
3842
3852
  value: value
3843
3853
  properties:
3844
3854
  config:
@@ -3851,11 +3861,11 @@ components:
3851
3861
  inline:
3852
3862
  - config:
3853
3863
  position:
3854
- index: 2.027123023002322
3864
+ index: 3.616076749251911
3855
3865
  value: value
3856
3866
  - config:
3857
3867
  position:
3858
- index: 2.027123023002322
3868
+ index: 3.616076749251911
3859
3869
  value: value
3860
3870
  footer:
3861
3871
  - footer