@proveanything/smartlinks 2.1.36 → 2.1.37

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/openapi.yaml CHANGED
@@ -36730,6 +36730,633 @@ components:
36730
36730
  SegmentFilterRule:
36731
36731
  type: object
36732
36732
  additionalProperties: true
36733
+ ShopPrice:
36734
+ type: object
36735
+ properties:
36736
+ id:
36737
+ type: string
36738
+ collectionId:
36739
+ type: string
36740
+ productId:
36741
+ type: string
36742
+ variantId:
36743
+ type: string
36744
+ appId:
36745
+ type: string
36746
+ currency:
36747
+ type: string
36748
+ amount:
36749
+ type: number
36750
+ compareAtAmount:
36751
+ type: number
36752
+ delivery:
36753
+ $ref: "#/components/schemas/ShopDelivery"
36754
+ deliveryConfig:
36755
+ type: object
36756
+ additionalProperties: true
36757
+ trackStock:
36758
+ type: boolean
36759
+ active:
36760
+ type: boolean
36761
+ sort:
36762
+ type: number
36763
+ metadata:
36764
+ type: object
36765
+ additionalProperties: true
36766
+ createdAt:
36767
+ type: string
36768
+ updatedAt:
36769
+ type: string
36770
+ required:
36771
+ - id
36772
+ - collectionId
36773
+ - productId
36774
+ - variantId
36775
+ - appId
36776
+ - currency
36777
+ - amount
36778
+ - compareAtAmount
36779
+ - delivery
36780
+ - deliveryConfig
36781
+ - trackStock
36782
+ - active
36783
+ - sort
36784
+ - metadata
36785
+ - createdAt
36786
+ - updatedAt
36787
+ ShopPriceInput:
36788
+ type: object
36789
+ properties:
36790
+ productId:
36791
+ type: string
36792
+ variantId:
36793
+ type: string
36794
+ appId:
36795
+ type: string
36796
+ currency:
36797
+ type: string
36798
+ amount:
36799
+ type: number
36800
+ compareAtAmount:
36801
+ type: number
36802
+ delivery:
36803
+ $ref: "#/components/schemas/ShopDelivery"
36804
+ deliveryConfig:
36805
+ $ref: "#/components/schemas/ShopDeliveryConfig"
36806
+ trackStock:
36807
+ type: boolean
36808
+ active:
36809
+ type: boolean
36810
+ sort:
36811
+ type: number
36812
+ metadata:
36813
+ type: object
36814
+ additionalProperties: true
36815
+ required:
36816
+ - productId
36817
+ - amount
36818
+ ShopPriceListParams:
36819
+ type: object
36820
+ properties:
36821
+ productId:
36822
+ type: string
36823
+ currency:
36824
+ type: string
36825
+ active:
36826
+ type: boolean
36827
+ appId:
36828
+ type: string
36829
+ limit:
36830
+ type: number
36831
+ offset:
36832
+ type: number
36833
+ ShopShippingRate:
36834
+ type: object
36835
+ properties:
36836
+ id:
36837
+ type: string
36838
+ label:
36839
+ type: string
36840
+ amount:
36841
+ type: number
36842
+ days:
36843
+ type: string
36844
+ required:
36845
+ - id
36846
+ - label
36847
+ - amount
36848
+ ShopSettings:
36849
+ type: object
36850
+ properties:
36851
+ currency:
36852
+ type: string
36853
+ appId:
36854
+ type: string
36855
+ seller:
36856
+ type: object
36857
+ additionalProperties: true
36858
+ vat:
36859
+ type: object
36860
+ additionalProperties: true
36861
+ shipping:
36862
+ type: object
36863
+ additionalProperties: true
36864
+ rates:
36865
+ type: array
36866
+ items:
36867
+ $ref: "#/components/schemas/ShopShippingRate"
36868
+ freeOver:
36869
+ type: number
36870
+ collection:
36871
+ type: object
36872
+ additionalProperties: true
36873
+ policies:
36874
+ type: object
36875
+ additionalProperties: true
36876
+ stripe:
36877
+ type: object
36878
+ additionalProperties: true
36879
+ stockContainerId:
36880
+ type: string
36881
+ checkout:
36882
+ type: object
36883
+ additionalProperties: true
36884
+ successUrl:
36885
+ type: string
36886
+ cancelUrl:
36887
+ type: string
36888
+ expiresMinutes:
36889
+ type: number
36890
+ allowedHosts:
36891
+ type: array
36892
+ items:
36893
+ type: string
36894
+ digital:
36895
+ type: object
36896
+ additionalProperties: true
36897
+ interaction:
36898
+ type: object
36899
+ additionalProperties: true
36900
+ required:
36901
+ - currency
36902
+ - appId
36903
+ - seller
36904
+ - vat
36905
+ - shipping
36906
+ - rates
36907
+ - freeOver
36908
+ - collection
36909
+ - policies
36910
+ - stripe
36911
+ - stockContainerId
36912
+ - checkout
36913
+ - successUrl
36914
+ - cancelUrl
36915
+ - expiresMinutes
36916
+ - allowedHosts
36917
+ - digital
36918
+ - interaction
36919
+ ShopReadiness:
36920
+ type: object
36921
+ properties:
36922
+ ready:
36923
+ type: boolean
36924
+ missing:
36925
+ type: array
36926
+ items:
36927
+ type: object
36928
+ additionalProperties: true
36929
+ required:
36930
+ - ready
36931
+ - missing
36932
+ ShopSettingsView:
36933
+ type: object
36934
+ properties:
36935
+ readiness:
36936
+ $ref: "#/components/schemas/ShopReadiness"
36937
+ fee:
36938
+ type: object
36939
+ additionalProperties: true
36940
+ required:
36941
+ - readiness
36942
+ - fee
36943
+ ShopConnectStatus:
36944
+ type: object
36945
+ properties:
36946
+ connected:
36947
+ type: boolean
36948
+ chargesEnabled:
36949
+ type: boolean
36950
+ detailsSubmitted:
36951
+ type: boolean
36952
+ payoutsEnabled:
36953
+ type: boolean
36954
+ id:
36955
+ type: string
36956
+ required:
36957
+ - connected
36958
+ ShopPublicConfig:
36959
+ type: object
36960
+ properties:
36961
+ currency:
36962
+ type: string
36963
+ seller:
36964
+ type: object
36965
+ additionalProperties: true
36966
+ vat:
36967
+ type: object
36968
+ additionalProperties: true
36969
+ shipping:
36970
+ type: object
36971
+ additionalProperties: true
36972
+ policies:
36973
+ type: object
36974
+ additionalProperties: true
36975
+ digital:
36976
+ type: object
36977
+ additionalProperties: true
36978
+ ready:
36979
+ type: boolean
36980
+ required:
36981
+ - currency
36982
+ - seller
36983
+ - vat
36984
+ - shipping
36985
+ - policies
36986
+ - digital
36987
+ - ready
36988
+ ShopProduct:
36989
+ type: object
36990
+ properties:
36991
+ priceId:
36992
+ type: string
36993
+ productId:
36994
+ type: string
36995
+ variantId:
36996
+ type: string
36997
+ name:
36998
+ type: string
36999
+ description:
37000
+ type: string
37001
+ heroImage: {}
37002
+ amount:
37003
+ type: number
37004
+ compareAtAmount:
37005
+ type: number
37006
+ currency:
37007
+ type: string
37008
+ delivery:
37009
+ $ref: "#/components/schemas/ShopDelivery"
37010
+ deliveryKind:
37011
+ $ref: "#/components/schemas/ShopDigitalKind"
37012
+ needsSignIn:
37013
+ type: boolean
37014
+ available:
37015
+ type: number
37016
+ inStock:
37017
+ type: boolean
37018
+ required:
37019
+ - priceId
37020
+ - productId
37021
+ - variantId
37022
+ - name
37023
+ - description
37024
+ - heroImage
37025
+ - amount
37026
+ - compareAtAmount
37027
+ - currency
37028
+ - delivery
37029
+ - deliveryKind
37030
+ - needsSignIn
37031
+ - available
37032
+ - inStock
37033
+ ShopCheckoutLine:
37034
+ type: object
37035
+ properties:
37036
+ productId:
37037
+ type: string
37038
+ variantId:
37039
+ type: string
37040
+ quantity:
37041
+ type: number
37042
+ required:
37043
+ - productId
37044
+ ShopCheckoutInput:
37045
+ type: object
37046
+ properties:
37047
+ lines:
37048
+ type: array
37049
+ items:
37050
+ $ref: "#/components/schemas/ShopCheckoutLine"
37051
+ shippingRateId:
37052
+ type: string
37053
+ email:
37054
+ type: string
37055
+ successUrl:
37056
+ type: string
37057
+ cancelUrl:
37058
+ type: string
37059
+ acceptances:
37060
+ type: object
37061
+ additionalProperties: true
37062
+ required:
37063
+ - lines
37064
+ ShopCheckoutResult:
37065
+ type: object
37066
+ properties:
37067
+ orderId:
37068
+ type: string
37069
+ checkoutUrl:
37070
+ type: string
37071
+ expiresAt:
37072
+ type: string
37073
+ total:
37074
+ type: number
37075
+ currency:
37076
+ type: string
37077
+ required:
37078
+ - orderId
37079
+ - checkoutUrl
37080
+ - expiresAt
37081
+ - total
37082
+ - currency
37083
+ ShopOrderLine:
37084
+ type: object
37085
+ properties:
37086
+ id:
37087
+ type: string
37088
+ productId:
37089
+ type: string
37090
+ variantId:
37091
+ type: string
37092
+ name:
37093
+ type: string
37094
+ quantity:
37095
+ type: number
37096
+ unitAmount:
37097
+ type: number
37098
+ lineTotal:
37099
+ type: number
37100
+ delivery:
37101
+ $ref: "#/components/schemas/ShopDelivery"
37102
+ deliveryKind:
37103
+ $ref: "#/components/schemas/ShopDigitalKind"
37104
+ quantityDone:
37105
+ type: number
37106
+ quantityRefunded:
37107
+ type: number
37108
+ priceId:
37109
+ type: string
37110
+ appId:
37111
+ type: string
37112
+ files:
37113
+ type: array
37114
+ items:
37115
+ type: string
37116
+ fee:
37117
+ type: object
37118
+ additionalProperties: true
37119
+ required:
37120
+ - id
37121
+ - productId
37122
+ - variantId
37123
+ - name
37124
+ - quantity
37125
+ - unitAmount
37126
+ - lineTotal
37127
+ - delivery
37128
+ - deliveryKind
37129
+ - quantityDone
37130
+ - quantityRefunded
37131
+ - priceId
37132
+ - appId
37133
+ ShopShipment:
37134
+ type: object
37135
+ properties:
37136
+ id:
37137
+ type: string
37138
+ at:
37139
+ type: string
37140
+ lines:
37141
+ type: array
37142
+ items:
37143
+ type: object
37144
+ additionalProperties: true
37145
+ carrier:
37146
+ type: string
37147
+ trackingNumber:
37148
+ type: string
37149
+ trackingUrl:
37150
+ type: string
37151
+ required:
37152
+ - id
37153
+ - at
37154
+ - lines
37155
+ ShopOrder:
37156
+ type: object
37157
+ properties:
37158
+ id:
37159
+ type: string
37160
+ collectionId:
37161
+ type: string
37162
+ orderRef:
37163
+ type: string
37164
+ status:
37165
+ $ref: "#/components/schemas/ShopOrderStatus"
37166
+ source:
37167
+ type: string
37168
+ enum:
37169
+ - shop
37170
+ contactId:
37171
+ type: string
37172
+ currency:
37173
+ type: string
37174
+ subtotal:
37175
+ type: number
37176
+ shipping:
37177
+ type: number
37178
+ tax:
37179
+ type: number
37180
+ total:
37181
+ type: number
37182
+ refunded:
37183
+ type: number
37184
+ paidAt:
37185
+ type: string
37186
+ expiresAt:
37187
+ type: string
37188
+ createdAt:
37189
+ type: string
37190
+ updatedAt:
37191
+ type: string
37192
+ email:
37193
+ type: string
37194
+ shippingChoice:
37195
+ $ref: "#/components/schemas/ShopShippingRate"
37196
+ shippingAddress:
37197
+ type: object
37198
+ additionalProperties: true
37199
+ shipments:
37200
+ type: array
37201
+ items:
37202
+ $ref: "#/components/schemas/ShopShipment"
37203
+ lines:
37204
+ type: array
37205
+ items:
37206
+ $ref: "#/components/schemas/ShopOrderLine"
37207
+ required:
37208
+ - id
37209
+ - collectionId
37210
+ - orderRef
37211
+ - status
37212
+ - source
37213
+ - contactId
37214
+ - currency
37215
+ - subtotal
37216
+ - shipping
37217
+ - tax
37218
+ - total
37219
+ - refunded
37220
+ - paidAt
37221
+ - expiresAt
37222
+ - createdAt
37223
+ - updatedAt
37224
+ - email
37225
+ - shippingChoice
37226
+ - shippingAddress
37227
+ - shipments
37228
+ - lines
37229
+ ShopAdminOrder:
37230
+ type: object
37231
+ properties:
37232
+ payment:
37233
+ type: object
37234
+ additionalProperties: true
37235
+ refunds:
37236
+ type: array
37237
+ items:
37238
+ type: object
37239
+ additionalProperties: true
37240
+ attention:
37241
+ type: array
37242
+ items:
37243
+ type: object
37244
+ additionalProperties: true
37245
+ acceptances:
37246
+ type: object
37247
+ additionalProperties: true
37248
+ paymentRef:
37249
+ type: string
37250
+ fee:
37251
+ type: object
37252
+ additionalProperties: true
37253
+ required:
37254
+ - payment
37255
+ - refunds
37256
+ - attention
37257
+ - acceptances
37258
+ - paymentRef
37259
+ - fee
37260
+ ShopBuyerOrder:
37261
+ type: object
37262
+ properties:
37263
+ downloads:
37264
+ type: array
37265
+ items:
37266
+ type: object
37267
+ additionalProperties: true
37268
+ required:
37269
+ - downloads
37270
+ ShopOrderListParams:
37271
+ type: object
37272
+ properties:
37273
+ status:
37274
+ type: string
37275
+ contactId:
37276
+ type: string
37277
+ includeExpired:
37278
+ type: boolean
37279
+ limit:
37280
+ type: number
37281
+ offset:
37282
+ type: number
37283
+ ShopPage:
37284
+ type: object
37285
+ properties:
37286
+ items:
37287
+ type: array
37288
+ items:
37289
+ type: object
37290
+ additionalProperties: true
37291
+ total:
37292
+ type: number
37293
+ limit:
37294
+ type: number
37295
+ offset:
37296
+ type: number
37297
+ required:
37298
+ - items
37299
+ - total
37300
+ - limit
37301
+ - offset
37302
+ ShopShipInput:
37303
+ type: object
37304
+ properties:
37305
+ lines:
37306
+ type: array
37307
+ items:
37308
+ type: object
37309
+ additionalProperties: true
37310
+ carrier:
37311
+ type: string
37312
+ trackingNumber:
37313
+ type: string
37314
+ trackingUrl:
37315
+ type: string
37316
+ ShopRefundInput:
37317
+ type: object
37318
+ properties:
37319
+ lines:
37320
+ type: array
37321
+ items:
37322
+ type: object
37323
+ additionalProperties: true
37324
+ shipping:
37325
+ type: boolean
37326
+ amount:
37327
+ type: number
37328
+ restock:
37329
+ type: boolean
37330
+ reason:
37331
+ type: string
37332
+ ShopDelivery:
37333
+ type: string
37334
+ enum:
37335
+ - physical
37336
+ - digital
37337
+ ShopDigitalKind:
37338
+ type: string
37339
+ enum:
37340
+ - proof
37341
+ - download
37342
+ - access
37343
+ - app
37344
+ ShopDeliveryConfig:
37345
+ type: object
37346
+ additionalProperties: true
37347
+ ShopPriceUpdate:
37348
+ $ref: "#/components/schemas/ShopPriceInput"
37349
+ ShopSettingsPatch:
37350
+ $ref: "#/components/schemas/ShopSettings"
37351
+ ShopOrderStatus:
37352
+ type: string
37353
+ enum:
37354
+ - pending-payment
37355
+ - paid
37356
+ - fulfilled
37357
+ - partly-refunded
37358
+ - refunded
37359
+ - expired
36733
37360
  Tag:
36734
37361
  type: object
36735
37362
  properties:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proveanything/smartlinks",
3
- "version": "2.1.36",
3
+ "version": "2.1.37",
4
4
  "description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",