@proveanything/smartlinks 1.7.4 → 1.7.6

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
@@ -4132,75 +4132,11 @@ paths:
4132
4132
  application/json:
4133
4133
  schema:
4134
4134
  $ref: "#/components/schemas/TimelineRequest"
4135
- /admin/collection/{collectionId}/orders/batch/{batchId}:
4136
- get:
4137
- tags:
4138
- - order
4139
- summary: Find all orders containing items from a specific batch.
4140
- operationId: order_findByBatch
4141
- security:
4142
- - bearerAuth: []
4143
- parameters:
4144
- - name: collectionId
4145
- in: path
4146
- required: true
4147
- schema:
4148
- type: string
4149
- - name: batchId
4150
- in: path
4151
- required: true
4152
- schema:
4153
- type: string
4154
- responses:
4155
- 200:
4156
- description: Success
4157
- content:
4158
- application/json:
4159
- schema:
4160
- $ref: "#/components/schemas/FindOrdersByAttributeResponse"
4161
- 400:
4162
- description: Bad request
4163
- 401:
4164
- description: Unauthorized
4165
- 404:
4166
- description: Not found
4167
- /admin/collection/{collectionId}/orders/batch/{batchId}/items:
4168
- get:
4169
- tags:
4170
- - order
4171
- summary: Get individual order items (not full orders) for a specific batch.
4172
- operationId: order_findItemsByBatch
4173
- security:
4174
- - bearerAuth: []
4175
- parameters:
4176
- - name: collectionId
4177
- in: path
4178
- required: true
4179
- schema:
4180
- type: string
4181
- - name: batchId
4182
- in: path
4183
- required: true
4184
- schema:
4185
- type: string
4186
- responses:
4187
- 200:
4188
- description: Success
4189
- content:
4190
- application/json:
4191
- schema:
4192
- $ref: "#/components/schemas/FindItemsByAttributeResponse"
4193
- 400:
4194
- description: Bad request
4195
- 401:
4196
- description: Unauthorized
4197
- 404:
4198
- description: Not found
4199
4135
  /admin/collection/{collectionId}/orders/ids/{attribute}/{value}:
4200
4136
  get:
4201
4137
  tags:
4202
4138
  - order
4203
- summary: order.getOrderIdsByAttribute
4139
+ summary: Get unique order IDs containing items for a specific product.
4204
4140
  operationId: order_getOrderIdsByAttribute
4205
4141
  security:
4206
4142
  - bearerAuth: []
@@ -4390,70 +4326,6 @@ paths:
4390
4326
  description: Unauthorized
4391
4327
  404:
4392
4328
  description: Not found
4393
- /admin/collection/{collectionId}/orders/variant/{variantId}:
4394
- get:
4395
- tags:
4396
- - order
4397
- summary: Find all orders containing items from a specific variant.
4398
- operationId: order_findByVariant
4399
- security:
4400
- - bearerAuth: []
4401
- parameters:
4402
- - name: collectionId
4403
- in: path
4404
- required: true
4405
- schema:
4406
- type: string
4407
- - name: variantId
4408
- in: path
4409
- required: true
4410
- schema:
4411
- type: string
4412
- responses:
4413
- 200:
4414
- description: Success
4415
- content:
4416
- application/json:
4417
- schema:
4418
- $ref: "#/components/schemas/FindOrdersByAttributeResponse"
4419
- 400:
4420
- description: Bad request
4421
- 401:
4422
- description: Unauthorized
4423
- 404:
4424
- description: Not found
4425
- /admin/collection/{collectionId}/orders/variant/{variantId}/items:
4426
- get:
4427
- tags:
4428
- - order
4429
- summary: Get individual order items for a specific variant.
4430
- operationId: order_findItemsByVariant
4431
- security:
4432
- - bearerAuth: []
4433
- parameters:
4434
- - name: collectionId
4435
- in: path
4436
- required: true
4437
- schema:
4438
- type: string
4439
- - name: variantId
4440
- in: path
4441
- required: true
4442
- schema:
4443
- type: string
4444
- responses:
4445
- 200:
4446
- description: Success
4447
- content:
4448
- application/json:
4449
- schema:
4450
- $ref: "#/components/schemas/FindItemsByAttributeResponse"
4451
- 400:
4452
- description: Bad request
4453
- 401:
4454
- description: Unauthorized
4455
- 404:
4456
- description: Not found
4457
4329
  /admin/collection/{collectionId}/orders/{orderId}:
4458
4330
  get:
4459
4331
  tags:
@@ -9828,8 +9700,9 @@ components:
9828
9700
  id:
9829
9701
  type: string
9830
9702
  type:
9831
- type: object
9832
- additionalProperties: true
9703
+ type: string
9704
+ enum:
9705
+ - function
9833
9706
  function:
9834
9707
  type: object
9835
9708
  additionalProperties: true
@@ -9973,8 +9846,9 @@ components:
9973
9846
  id:
9974
9847
  type: string
9975
9848
  object:
9976
- type: object
9977
- additionalProperties: true
9849
+ type: string
9850
+ enum:
9851
+ - chat.completion
9978
9852
  created:
9979
9853
  type: number
9980
9854
  model:
@@ -10008,8 +9882,9 @@ components:
10008
9882
  id:
10009
9883
  type: string
10010
9884
  object:
10011
- type: object
10012
- additionalProperties: true
9885
+ type: string
9886
+ enum:
9887
+ - chat.completion.chunk
10013
9888
  created:
10014
9889
  type: number
10015
9890
  model:
@@ -12040,8 +11915,9 @@ components:
12040
11915
  items:
12041
11916
  $ref: "#/components/schemas/AttestationSummaryBucket"
12042
11917
  audience:
12043
- type: object
12044
- additionalProperties: true
11918
+ type: string
11919
+ enum:
11920
+ - public
12045
11921
  required:
12046
11922
  - summary
12047
11923
  - audience
@@ -12086,8 +11962,9 @@ components:
12086
11962
  items:
12087
11963
  $ref: "#/components/schemas/AttestationSummaryBucket"
12088
11964
  audience:
12089
- type: object
12090
- additionalProperties: true
11965
+ type: string
11966
+ enum:
11967
+ - public
12091
11968
  subjectCount:
12092
11969
  type: number
12093
11970
  required:
@@ -12114,8 +11991,9 @@ components:
12114
11991
  items:
12115
11992
  $ref: "#/components/schemas/LatestAttestation"
12116
11993
  audience:
12117
- type: object
12118
- additionalProperties: true
11994
+ type: string
11995
+ enum:
11996
+ - public
12119
11997
  subjectCount:
12120
11998
  type: number
12121
11999
  required:
@@ -13952,8 +13830,9 @@ components:
13952
13830
  type: object
13953
13831
  additionalProperties: true
13954
13832
  type:
13955
- type: object
13956
- additionalProperties: true
13833
+ type: string
13834
+ enum:
13835
+ - object
13957
13836
  required:
13958
13837
  type: array
13959
13838
  items:
@@ -14425,8 +14304,9 @@ components:
14425
14304
  type: object
14426
14305
  properties:
14427
14306
  type:
14428
- type: object
14429
- additionalProperties: true
14307
+ type: string
14308
+ enum:
14309
+ - smartlinks-route-change
14430
14310
  path:
14431
14311
  type: string
14432
14312
  context:
@@ -14531,8 +14411,9 @@ components:
14531
14411
  type: object
14532
14412
  additionalProperties: true
14533
14413
  phase:
14534
- type: object
14535
- additionalProperties: true
14414
+ type: string
14415
+ enum:
14416
+ - start
14536
14417
  id:
14537
14418
  type: string
14538
14419
  fields:
@@ -14563,8 +14444,9 @@ components:
14563
14444
  type: object
14564
14445
  additionalProperties: true
14565
14446
  phase:
14566
- type: object
14567
- additionalProperties: true
14447
+ type: string
14448
+ enum:
14449
+ - chunk
14568
14450
  id:
14569
14451
  type: string
14570
14452
  seq:
@@ -14584,8 +14466,9 @@ components:
14584
14466
  type: object
14585
14467
  additionalProperties: true
14586
14468
  phase:
14587
- type: object
14588
- additionalProperties: true
14469
+ type: string
14470
+ enum:
14471
+ - end
14589
14472
  id:
14590
14473
  type: string
14591
14474
  required:
@@ -14599,8 +14482,9 @@ components:
14599
14482
  type: object
14600
14483
  additionalProperties: true
14601
14484
  phase:
14602
- type: object
14603
- additionalProperties: true
14485
+ type: string
14486
+ enum:
14487
+ - ack
14604
14488
  id:
14605
14489
  type: string
14606
14490
  seq:
@@ -14617,8 +14501,9 @@ components:
14617
14501
  type: object
14618
14502
  additionalProperties: true
14619
14503
  phase:
14620
- type: object
14621
- additionalProperties: true
14504
+ type: string
14505
+ enum:
14506
+ - done
14622
14507
  id:
14623
14508
  type: string
14624
14509
  ok:
@@ -14673,8 +14558,9 @@ components:
14673
14558
  include:
14674
14559
  type: array
14675
14560
  items:
14676
- type: object
14677
- additionalProperties: true
14561
+ type: string
14562
+ enum:
14563
+ - interaction
14678
14564
  AdminInteractionsCountsByOutcomeRequest:
14679
14565
  type: object
14680
14566
  properties:
@@ -15734,12 +15620,20 @@ components:
15734
15620
  - items
15735
15621
  - limit
15736
15622
  - offset
15737
- QueryOrdersRequest:
15623
+ QueryOrderItemFilter:
15624
+ type: object
15625
+ properties:
15626
+ productId:
15627
+ type: string
15628
+ batchId:
15629
+ type: string
15630
+ variantId:
15631
+ type: string
15632
+ required:
15633
+ - productId
15634
+ QueryOrdersFilter:
15738
15635
  type: object
15739
15636
  properties:
15740
- query:
15741
- type: object
15742
- additionalProperties: true
15743
15637
  status:
15744
15638
  type: string
15745
15639
  orderRef:
@@ -15761,6 +15655,8 @@ components:
15761
15655
  metadata:
15762
15656
  type: object
15763
15657
  additionalProperties: true
15658
+ item:
15659
+ $ref: "#/components/schemas/QueryOrderItemFilter"
15764
15660
  sortBy:
15765
15661
  type: string
15766
15662
  sortOrder:
@@ -15768,6 +15664,11 @@ components:
15768
15664
  enum:
15769
15665
  - asc
15770
15666
  - desc
15667
+ QueryOrdersRequest:
15668
+ type: object
15669
+ properties:
15670
+ query:
15671
+ $ref: "#/components/schemas/QueryOrdersFilter"
15771
15672
  limit:
15772
15673
  type: number
15773
15674
  offset:
@@ -15955,9 +15856,7 @@ components:
15955
15856
  attribute:
15956
15857
  type: string
15957
15858
  enum:
15958
- - batchId
15959
15859
  - productId
15960
- - variantId
15961
15860
  value:
15962
15861
  type: string
15963
15862
  required:
@@ -16970,8 +16869,9 @@ components:
16970
16869
  type: object
16971
16870
  properties:
16972
16871
  engine:
16973
- type: object
16974
- additionalProperties: true
16872
+ type: string
16873
+ enum:
16874
+ - liquid
16975
16875
  source:
16976
16876
  type: string
16977
16877
  props:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proveanything/smartlinks",
3
- "version": "1.7.4",
3
+ "version": "1.7.6",
4
4
  "description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",