@searchspring/snapi-oas 0.1.18 → 0.1.23

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.18
1
+ # Snap API OpenAPI Specification v0.1.23
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.18",
3
+ "version": "0.1.23",
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.18",
9
+ "version" : "0.1.23",
10
10
  "x-logo" : {
11
11
  "url" : "./images/searchspring_logo.svg",
12
12
  "altText" : "Searchspring Snap"
@@ -929,7 +929,8 @@
929
929
  "totalResults" : 1305,
930
930
  "page" : 1,
931
931
  "defaultPageSize" : 24,
932
- "pageSize" : 2
932
+ "pageSize" : 2,
933
+ "totalPages" : 653
933
934
  },
934
935
  "results" : [ {
935
936
  "id" : "175130",
@@ -1887,7 +1888,8 @@
1887
1888
  "totalResults" : 758,
1888
1889
  "page" : 1,
1889
1890
  "defaultPageSize" : 24,
1890
- "pageSize" : 2
1891
+ "pageSize" : 2,
1892
+ "totalPages" : 379
1891
1893
  },
1892
1894
  "results" : [ {
1893
1895
  "id" : "134892",
@@ -3168,6 +3170,9 @@
3168
3170
  },
3169
3171
  "tracking" : {
3170
3172
  "$ref" : "#/components/schemas/SearchRequestModel_tracking"
3173
+ },
3174
+ "personalization" : {
3175
+ "$ref" : "#/components/schemas/SearchRequestModel_personalization"
3171
3176
  }
3172
3177
  },
3173
3178
  "title" : "Search Request Data Model",
@@ -3733,7 +3738,33 @@
3733
3738
  },
3734
3739
  "SearchRequestModel_tracking" : {
3735
3740
  "properties" : {
3736
- "loggedInUserId" : {
3741
+ "userId" : {
3742
+ "description" : "shopper identifier",
3743
+ "type" : "string"
3744
+ },
3745
+ "domain" : {
3746
+ "description" : "current website url",
3747
+ "type" : "string"
3748
+ }
3749
+ },
3750
+ "type" : "object"
3751
+ },
3752
+ "SearchRequestModel_personalization" : {
3753
+ "properties" : {
3754
+ "disabled" : {
3755
+ "description" : "ignore personalized boosts",
3756
+ "type" : "boolean"
3757
+ },
3758
+ "cart" : {
3759
+ "description" : "comma-separated list of the products in cart",
3760
+ "type" : "string"
3761
+ },
3762
+ "lastViewed" : {
3763
+ "description" : "comma-separated list of the last viewed products",
3764
+ "type" : "string"
3765
+ },
3766
+ "shopper" : {
3767
+ "description" : "logged in shopper identifier",
3737
3768
  "type" : "string"
3738
3769
  }
3739
3770
  },
@@ -3795,6 +3826,9 @@
3795
3826
  },
3796
3827
  "pageSize" : {
3797
3828
  "type" : "integer"
3829
+ },
3830
+ "totalPages" : {
3831
+ "type" : "integer"
3798
3832
  }
3799
3833
  },
3800
3834
  "type" : "object"
@@ -3821,9 +3855,6 @@
3821
3855
  },
3822
3856
  "SearchResponseModelResult_children" : {
3823
3857
  "properties" : {
3824
- "mappings" : {
3825
- "$ref" : "#/components/schemas/SearchResponseModelResult_mappings"
3826
- },
3827
3858
  "attributes" : {
3828
3859
  "$ref" : "#/components/schemas/SearchResponseModelResultAttributes"
3829
3860
  }
@@ -4,7 +4,7 @@ info:
4
4
  name: Searchspring
5
5
  description: Searchspring Snap Search API
6
6
  title: snAPI
7
- version: 0.1.18
7
+ version: 0.1.23
8
8
  x-logo:
9
9
  url: ./images/searchspring_logo.svg
10
10
  altText: Searchspring Snap
@@ -841,6 +841,7 @@ components:
841
841
  page: 1
842
842
  defaultPageSize: 24
843
843
  pageSize: 2
844
+ totalPages: 653
844
845
  results:
845
846
  - id: "175130"
846
847
  mappings:
@@ -1676,6 +1677,7 @@ components:
1676
1677
  page: 1
1677
1678
  defaultPageSize: 24
1678
1679
  pageSize: 2
1680
+ totalPages: 379
1679
1681
  results:
1680
1682
  - id: "134892"
1681
1683
  mappings:
@@ -2726,6 +2728,11 @@ components:
2726
2728
  - $ref: '#/components/schemas/SearchResponseModel'
2727
2729
  SearchRequestModel:
2728
2730
  example:
2731
+ personalization:
2732
+ lastViewed: lastViewed
2733
+ shopper: shopper
2734
+ disabled: true
2735
+ cart: cart
2729
2736
  search:
2730
2737
  query:
2731
2738
  string: string
@@ -2756,7 +2763,8 @@ components:
2756
2763
  - segments
2757
2764
  - segments
2758
2765
  tracking:
2759
- loggedInUserId: loggedInUserId
2766
+ domain: domain
2767
+ userId: userId
2760
2768
  facets:
2761
2769
  valueLimit: 5
2762
2770
  include:
@@ -2788,6 +2796,8 @@ components:
2788
2796
  $ref: '#/components/schemas/SearchRequestModel_merchandising'
2789
2797
  tracking:
2790
2798
  $ref: '#/components/schemas/SearchRequestModel_tracking'
2799
+ personalization:
2800
+ $ref: '#/components/schemas/SearchRequestModel_personalization'
2791
2801
  title: Search Request Data Model
2792
2802
  type: object
2793
2803
  SearchRequestModelFilter:
@@ -2830,6 +2840,7 @@ components:
2830
2840
  pagination:
2831
2841
  totalResults: 0
2832
2842
  defaultPageSize: 1
2843
+ totalPages: 5
2833
2844
  pageSize: 5
2834
2845
  page: 6
2835
2846
  sorting:
@@ -2848,58 +2859,24 @@ components:
2848
2859
  - mappings:
2849
2860
  core:
2850
2861
  addToCartUrl: addToCartUrl
2851
- rating: 7.061401241503109
2862
+ rating: 9.301444243932576
2852
2863
  description: description
2853
2864
  ratingCount: ratingCount
2854
2865
  url: url
2855
2866
  stockMessage: stockMessage
2856
2867
  uid: uid
2857
2868
  thumbnailImageUrl: thumbnailImageUrl
2858
- price: 5.637376656633329
2859
- msrp: 2.3021358869347655
2869
+ price: 2.3021358869347655
2870
+ msrp: 7.061401241503109
2860
2871
  imageUrl: imageUrl
2861
- popularity: 9.301444243932576
2872
+ popularity: 3.616076749251911
2862
2873
  name: name
2863
2874
  sku: sku
2864
2875
  brand: brand
2865
2876
  children:
2866
- - mappings:
2867
- core:
2868
- addToCartUrl: addToCartUrl
2869
- rating: 7.061401241503109
2870
- description: description
2871
- ratingCount: ratingCount
2872
- url: url
2873
- stockMessage: stockMessage
2874
- uid: uid
2875
- thumbnailImageUrl: thumbnailImageUrl
2876
- price: 5.637376656633329
2877
- msrp: 2.3021358869347655
2878
- imageUrl: imageUrl
2879
- popularity: 9.301444243932576
2880
- name: name
2881
- sku: sku
2882
- brand: brand
2883
- attributes:
2877
+ - attributes:
2884
2878
  key: '{}'
2885
- - mappings:
2886
- core:
2887
- addToCartUrl: addToCartUrl
2888
- rating: 7.061401241503109
2889
- description: description
2890
- ratingCount: ratingCount
2891
- url: url
2892
- stockMessage: stockMessage
2893
- uid: uid
2894
- thumbnailImageUrl: thumbnailImageUrl
2895
- price: 5.637376656633329
2896
- msrp: 2.3021358869347655
2897
- imageUrl: imageUrl
2898
- popularity: 9.301444243932576
2899
- name: name
2900
- sku: sku
2901
- brand: brand
2902
- attributes:
2879
+ - attributes:
2903
2880
  key: '{}'
2904
2881
  attributes:
2905
2882
  key: '{}'
@@ -2907,58 +2884,24 @@ components:
2907
2884
  - mappings:
2908
2885
  core:
2909
2886
  addToCartUrl: addToCartUrl
2910
- rating: 7.061401241503109
2887
+ rating: 9.301444243932576
2911
2888
  description: description
2912
2889
  ratingCount: ratingCount
2913
2890
  url: url
2914
2891
  stockMessage: stockMessage
2915
2892
  uid: uid
2916
2893
  thumbnailImageUrl: thumbnailImageUrl
2917
- price: 5.637376656633329
2918
- msrp: 2.3021358869347655
2894
+ price: 2.3021358869347655
2895
+ msrp: 7.061401241503109
2919
2896
  imageUrl: imageUrl
2920
- popularity: 9.301444243932576
2897
+ popularity: 3.616076749251911
2921
2898
  name: name
2922
2899
  sku: sku
2923
2900
  brand: brand
2924
2901
  children:
2925
- - mappings:
2926
- core:
2927
- addToCartUrl: addToCartUrl
2928
- rating: 7.061401241503109
2929
- description: description
2930
- ratingCount: ratingCount
2931
- url: url
2932
- stockMessage: stockMessage
2933
- uid: uid
2934
- thumbnailImageUrl: thumbnailImageUrl
2935
- price: 5.637376656633329
2936
- msrp: 2.3021358869347655
2937
- imageUrl: imageUrl
2938
- popularity: 9.301444243932576
2939
- name: name
2940
- sku: sku
2941
- brand: brand
2942
- attributes:
2902
+ - attributes:
2943
2903
  key: '{}'
2944
- - mappings:
2945
- core:
2946
- addToCartUrl: addToCartUrl
2947
- rating: 7.061401241503109
2948
- description: description
2949
- ratingCount: ratingCount
2950
- url: url
2951
- stockMessage: stockMessage
2952
- uid: uid
2953
- thumbnailImageUrl: thumbnailImageUrl
2954
- price: 5.637376656633329
2955
- msrp: 2.3021358869347655
2956
- imageUrl: imageUrl
2957
- popularity: 9.301444243932576
2958
- name: name
2959
- sku: sku
2960
- brand: brand
2961
- attributes:
2904
+ - attributes:
2962
2905
  key: '{}'
2963
2906
  attributes:
2964
2907
  key: '{}'
@@ -2969,11 +2912,11 @@ components:
2969
2912
  inline:
2970
2913
  - config:
2971
2914
  position:
2972
- index: 3.616076749251911
2915
+ index: 2.027123023002322
2973
2916
  value: value
2974
2917
  - config:
2975
2918
  position:
2976
- index: 3.616076749251911
2919
+ index: 2.027123023002322
2977
2920
  value: value
2978
2921
  footer:
2979
2922
  - footer
@@ -3055,58 +2998,24 @@ components:
3055
2998
  mappings:
3056
2999
  core:
3057
3000
  addToCartUrl: addToCartUrl
3058
- rating: 7.061401241503109
3001
+ rating: 9.301444243932576
3059
3002
  description: description
3060
3003
  ratingCount: ratingCount
3061
3004
  url: url
3062
3005
  stockMessage: stockMessage
3063
3006
  uid: uid
3064
3007
  thumbnailImageUrl: thumbnailImageUrl
3065
- price: 5.637376656633329
3066
- msrp: 2.3021358869347655
3008
+ price: 2.3021358869347655
3009
+ msrp: 7.061401241503109
3067
3010
  imageUrl: imageUrl
3068
- popularity: 9.301444243932576
3011
+ popularity: 3.616076749251911
3069
3012
  name: name
3070
3013
  sku: sku
3071
3014
  brand: brand
3072
3015
  children:
3073
- - mappings:
3074
- core:
3075
- addToCartUrl: addToCartUrl
3076
- rating: 7.061401241503109
3077
- description: description
3078
- ratingCount: ratingCount
3079
- url: url
3080
- stockMessage: stockMessage
3081
- uid: uid
3082
- thumbnailImageUrl: thumbnailImageUrl
3083
- price: 5.637376656633329
3084
- msrp: 2.3021358869347655
3085
- imageUrl: imageUrl
3086
- popularity: 9.301444243932576
3087
- name: name
3088
- sku: sku
3089
- brand: brand
3090
- attributes:
3016
+ - attributes:
3091
3017
  key: '{}'
3092
- - mappings:
3093
- core:
3094
- addToCartUrl: addToCartUrl
3095
- rating: 7.061401241503109
3096
- description: description
3097
- ratingCount: ratingCount
3098
- url: url
3099
- stockMessage: stockMessage
3100
- uid: uid
3101
- thumbnailImageUrl: thumbnailImageUrl
3102
- price: 5.637376656633329
3103
- msrp: 2.3021358869347655
3104
- imageUrl: imageUrl
3105
- popularity: 9.301444243932576
3106
- name: name
3107
- sku: sku
3108
- brand: brand
3109
- attributes:
3018
+ - attributes:
3110
3019
  key: '{}'
3111
3020
  attributes:
3112
3021
  key: '{}'
@@ -3132,17 +3041,17 @@ components:
3132
3041
  description: Mapping of core fields for the result object
3133
3042
  example:
3134
3043
  addToCartUrl: addToCartUrl
3135
- rating: 7.061401241503109
3044
+ rating: 9.301444243932576
3136
3045
  description: description
3137
3046
  ratingCount: ratingCount
3138
3047
  url: url
3139
3048
  stockMessage: stockMessage
3140
3049
  uid: uid
3141
3050
  thumbnailImageUrl: thumbnailImageUrl
3142
- price: 5.637376656633329
3143
- msrp: 2.3021358869347655
3051
+ price: 2.3021358869347655
3052
+ msrp: 7.061401241503109
3144
3053
  imageUrl: imageUrl
3145
- popularity: 9.301444243932576
3054
+ popularity: 3.616076749251911
3146
3055
  name: name
3147
3056
  sku: sku
3148
3057
  brand: brand
@@ -3240,11 +3149,11 @@ components:
3240
3149
  inline:
3241
3150
  - config:
3242
3151
  position:
3243
- index: 3.616076749251911
3152
+ index: 2.027123023002322
3244
3153
  value: value
3245
3154
  - config:
3246
3155
  position:
3247
- index: 3.616076749251911
3156
+ index: 2.027123023002322
3248
3157
  value: value
3249
3158
  footer:
3250
3159
  - footer
@@ -3522,9 +3431,34 @@ components:
3522
3431
  type: object
3523
3432
  SearchRequestModel_tracking:
3524
3433
  example:
3525
- loggedInUserId: loggedInUserId
3434
+ domain: domain
3435
+ userId: userId
3436
+ properties:
3437
+ userId:
3438
+ description: shopper identifier
3439
+ type: string
3440
+ domain:
3441
+ description: current website url
3442
+ type: string
3443
+ type: object
3444
+ SearchRequestModel_personalization:
3445
+ example:
3446
+ lastViewed: lastViewed
3447
+ shopper: shopper
3448
+ disabled: true
3449
+ cart: cart
3526
3450
  properties:
3527
- loggedInUserId:
3451
+ disabled:
3452
+ description: ignore personalized boosts
3453
+ type: boolean
3454
+ cart:
3455
+ description: comma-separated list of the products in cart
3456
+ type: string
3457
+ lastViewed:
3458
+ description: comma-separated list of the last viewed products
3459
+ type: string
3460
+ shopper:
3461
+ description: logged in shopper identifier
3528
3462
  type: string
3529
3463
  type: object
3530
3464
  SearchRequestModelFilterValue_allOf:
@@ -3563,6 +3497,7 @@ components:
3563
3497
  example:
3564
3498
  totalResults: 0
3565
3499
  defaultPageSize: 1
3500
+ totalPages: 5
3566
3501
  pageSize: 5
3567
3502
  page: 6
3568
3503
  properties:
@@ -3574,6 +3509,8 @@ components:
3574
3509
  type: integer
3575
3510
  pageSize:
3576
3511
  type: integer
3512
+ totalPages:
3513
+ type: integer
3577
3514
  type: object
3578
3515
  SearchResponseModel_sorting:
3579
3516
  example:
@@ -3592,17 +3529,17 @@ components:
3592
3529
  example:
3593
3530
  core:
3594
3531
  addToCartUrl: addToCartUrl
3595
- rating: 7.061401241503109
3532
+ rating: 9.301444243932576
3596
3533
  description: description
3597
3534
  ratingCount: ratingCount
3598
3535
  url: url
3599
3536
  stockMessage: stockMessage
3600
3537
  uid: uid
3601
3538
  thumbnailImageUrl: thumbnailImageUrl
3602
- price: 5.637376656633329
3603
- msrp: 2.3021358869347655
3539
+ price: 2.3021358869347655
3540
+ msrp: 7.061401241503109
3604
3541
  imageUrl: imageUrl
3605
- popularity: 9.301444243932576
3542
+ popularity: 3.616076749251911
3606
3543
  name: name
3607
3544
  sku: sku
3608
3545
  brand: brand
@@ -3612,28 +3549,9 @@ components:
3612
3549
  type: object
3613
3550
  SearchResponseModelResult_children:
3614
3551
  example:
3615
- mappings:
3616
- core:
3617
- addToCartUrl: addToCartUrl
3618
- rating: 7.061401241503109
3619
- description: description
3620
- ratingCount: ratingCount
3621
- url: url
3622
- stockMessage: stockMessage
3623
- uid: uid
3624
- thumbnailImageUrl: thumbnailImageUrl
3625
- price: 5.637376656633329
3626
- msrp: 2.3021358869347655
3627
- imageUrl: imageUrl
3628
- popularity: 9.301444243932576
3629
- name: name
3630
- sku: sku
3631
- brand: brand
3632
3552
  attributes:
3633
3553
  key: '{}'
3634
3554
  properties:
3635
- mappings:
3636
- $ref: '#/components/schemas/SearchResponseModelResult_mappings'
3637
3555
  attributes:
3638
3556
  additionalProperties: true
3639
3557
  description: Additional fields for results - these are site specific fields
@@ -3690,7 +3608,7 @@ components:
3690
3608
  type: object
3691
3609
  SearchResponseModelMerchandising_content_config_position:
3692
3610
  example:
3693
- index: 3.616076749251911
3611
+ index: 2.027123023002322
3694
3612
  properties:
3695
3613
  index:
3696
3614
  type: number
@@ -3698,7 +3616,7 @@ components:
3698
3616
  SearchResponseModelMerchandising_content_config:
3699
3617
  example:
3700
3618
  position:
3701
- index: 3.616076749251911
3619
+ index: 2.027123023002322
3702
3620
  properties:
3703
3621
  position:
3704
3622
  $ref: '#/components/schemas/SearchResponseModelMerchandising_content_config_position'
@@ -3707,7 +3625,7 @@ components:
3707
3625
  example:
3708
3626
  config:
3709
3627
  position:
3710
- index: 3.616076749251911
3628
+ index: 2.027123023002322
3711
3629
  value: value
3712
3630
  properties:
3713
3631
  config:
@@ -3720,11 +3638,11 @@ components:
3720
3638
  inline:
3721
3639
  - config:
3722
3640
  position:
3723
- index: 3.616076749251911
3641
+ index: 2.027123023002322
3724
3642
  value: value
3725
3643
  - config:
3726
3644
  position:
3727
- index: 3.616076749251911
3645
+ index: 2.027123023002322
3728
3646
  value: value
3729
3647
  footer:
3730
3648
  - footer