@proveanything/smartlinks 1.10.0 → 1.10.1
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/dist/api/appObjects.d.ts +16 -1
- package/dist/api/appObjects.js +23 -0
- package/dist/docs/API_SUMMARY.md +107 -4
- package/dist/docs/app-objects.md +79 -9
- package/dist/openapi.yaml +213 -3
- package/dist/types/appObjects.d.ts +128 -6
- package/docs/API_SUMMARY.md +107 -4
- package/docs/app-objects.md +79 -9
- package/openapi.yaml +213 -3
- package/package.json +1 -1
package/openapi.yaml
CHANGED
|
@@ -12404,6 +12404,90 @@ paths:
|
|
|
12404
12404
|
application/json:
|
|
12405
12405
|
schema:
|
|
12406
12406
|
$ref: "#/components/schemas/MatchRecordsInput"
|
|
12407
|
+
/{zone}/collection/{collectionId}/app/{appId}/records/preview-rule:
|
|
12408
|
+
post:
|
|
12409
|
+
tags:
|
|
12410
|
+
- records
|
|
12411
|
+
summary: Preview which products in the collection match a given facetRule.
|
|
12412
|
+
operationId: records_previewRule
|
|
12413
|
+
security: []
|
|
12414
|
+
parameters:
|
|
12415
|
+
- name: zone
|
|
12416
|
+
in: path
|
|
12417
|
+
required: true
|
|
12418
|
+
schema:
|
|
12419
|
+
type: string
|
|
12420
|
+
- name: collectionId
|
|
12421
|
+
in: path
|
|
12422
|
+
required: true
|
|
12423
|
+
schema:
|
|
12424
|
+
type: string
|
|
12425
|
+
- name: appId
|
|
12426
|
+
in: path
|
|
12427
|
+
required: true
|
|
12428
|
+
schema:
|
|
12429
|
+
type: string
|
|
12430
|
+
responses:
|
|
12431
|
+
200:
|
|
12432
|
+
description: Success
|
|
12433
|
+
content:
|
|
12434
|
+
application/json:
|
|
12435
|
+
schema:
|
|
12436
|
+
$ref: "#/components/schemas/PreviewRuleResult"
|
|
12437
|
+
400:
|
|
12438
|
+
description: Bad request
|
|
12439
|
+
401:
|
|
12440
|
+
description: Unauthorized
|
|
12441
|
+
404:
|
|
12442
|
+
description: Not found
|
|
12443
|
+
requestBody:
|
|
12444
|
+
required: true
|
|
12445
|
+
content:
|
|
12446
|
+
application/json:
|
|
12447
|
+
schema:
|
|
12448
|
+
$ref: "#/components/schemas/PreviewRuleParams"
|
|
12449
|
+
/{zone}/collection/{collectionId}/app/{appId}/records/resolve-all:
|
|
12450
|
+
post:
|
|
12451
|
+
tags:
|
|
12452
|
+
- records
|
|
12453
|
+
summary: Resolve every applicable record for a product context in one call.
|
|
12454
|
+
operationId: records_resolveAll
|
|
12455
|
+
security: []
|
|
12456
|
+
parameters:
|
|
12457
|
+
- name: zone
|
|
12458
|
+
in: path
|
|
12459
|
+
required: true
|
|
12460
|
+
schema:
|
|
12461
|
+
type: string
|
|
12462
|
+
- name: collectionId
|
|
12463
|
+
in: path
|
|
12464
|
+
required: true
|
|
12465
|
+
schema:
|
|
12466
|
+
type: string
|
|
12467
|
+
- name: appId
|
|
12468
|
+
in: path
|
|
12469
|
+
required: true
|
|
12470
|
+
schema:
|
|
12471
|
+
type: string
|
|
12472
|
+
responses:
|
|
12473
|
+
200:
|
|
12474
|
+
description: Success
|
|
12475
|
+
content:
|
|
12476
|
+
application/json:
|
|
12477
|
+
schema:
|
|
12478
|
+
$ref: "#/components/schemas/ResolveAllResult"
|
|
12479
|
+
400:
|
|
12480
|
+
description: Bad request
|
|
12481
|
+
401:
|
|
12482
|
+
description: Unauthorized
|
|
12483
|
+
404:
|
|
12484
|
+
description: Not found
|
|
12485
|
+
requestBody:
|
|
12486
|
+
required: true
|
|
12487
|
+
content:
|
|
12488
|
+
application/json:
|
|
12489
|
+
schema:
|
|
12490
|
+
$ref: "#/components/schemas/ResolveAllParams"
|
|
12407
12491
|
/{zone}/collection/{collectionId}/app/{appId}/records/upsert:
|
|
12408
12492
|
post:
|
|
12409
12493
|
tags:
|
|
@@ -15514,6 +15598,27 @@ components:
|
|
|
15514
15598
|
type: string
|
|
15515
15599
|
contactId:
|
|
15516
15600
|
type: string
|
|
15601
|
+
FacetRuleClause:
|
|
15602
|
+
type: object
|
|
15603
|
+
properties:
|
|
15604
|
+
facetKey:
|
|
15605
|
+
type: string
|
|
15606
|
+
anyOf:
|
|
15607
|
+
type: array
|
|
15608
|
+
items:
|
|
15609
|
+
type: string
|
|
15610
|
+
required:
|
|
15611
|
+
- facetKey
|
|
15612
|
+
- anyOf
|
|
15613
|
+
FacetRule:
|
|
15614
|
+
type: object
|
|
15615
|
+
properties:
|
|
15616
|
+
all:
|
|
15617
|
+
type: array
|
|
15618
|
+
items:
|
|
15619
|
+
$ref: "#/components/schemas/FacetRuleClause"
|
|
15620
|
+
required:
|
|
15621
|
+
- all
|
|
15517
15622
|
ScopeFacetClause:
|
|
15518
15623
|
type: object
|
|
15519
15624
|
properties:
|
|
@@ -15583,6 +15688,8 @@ components:
|
|
|
15583
15688
|
metadata:
|
|
15584
15689
|
type: object
|
|
15585
15690
|
additionalProperties: true
|
|
15691
|
+
facetRule:
|
|
15692
|
+
$ref: "#/components/schemas/FacetRule"
|
|
15586
15693
|
required:
|
|
15587
15694
|
- ref
|
|
15588
15695
|
BulkUpsertResult:
|
|
@@ -15610,20 +15717,37 @@ components:
|
|
|
15610
15717
|
type: object
|
|
15611
15718
|
properties:
|
|
15612
15719
|
matchedAt:
|
|
15613
|
-
$ref: "#/components/schemas/
|
|
15720
|
+
$ref: "#/components/schemas/MatchedAt"
|
|
15721
|
+
required:
|
|
15722
|
+
- matchedAt
|
|
15723
|
+
MatchEntry:
|
|
15724
|
+
type: object
|
|
15725
|
+
properties:
|
|
15726
|
+
record:
|
|
15727
|
+
$ref: "#/components/schemas/AppRecord"
|
|
15728
|
+
matchedAt:
|
|
15729
|
+
$ref: "#/components/schemas/MatchedAt"
|
|
15730
|
+
matchedRule:
|
|
15731
|
+
$ref: "#/components/schemas/FacetRule"
|
|
15732
|
+
matchedClauseCount:
|
|
15733
|
+
type: number
|
|
15734
|
+
specificity:
|
|
15735
|
+
type: number
|
|
15614
15736
|
required:
|
|
15737
|
+
- record
|
|
15615
15738
|
- matchedAt
|
|
15739
|
+
- specificity
|
|
15616
15740
|
MatchResult:
|
|
15617
15741
|
type: object
|
|
15618
15742
|
properties:
|
|
15619
15743
|
records:
|
|
15620
15744
|
type: array
|
|
15621
15745
|
items:
|
|
15622
|
-
$ref: "#/components/schemas/
|
|
15746
|
+
$ref: "#/components/schemas/MatchEntry"
|
|
15623
15747
|
best:
|
|
15624
15748
|
type: object
|
|
15625
15749
|
additionalProperties:
|
|
15626
|
-
$ref: "#/components/schemas/
|
|
15750
|
+
$ref: "#/components/schemas/MatchEntry"
|
|
15627
15751
|
required:
|
|
15628
15752
|
- records
|
|
15629
15753
|
UpsertRecordInput:
|
|
@@ -15651,6 +15775,8 @@ components:
|
|
|
15651
15775
|
metadata:
|
|
15652
15776
|
type: object
|
|
15653
15777
|
additionalProperties: true
|
|
15778
|
+
facetRule:
|
|
15779
|
+
$ref: "#/components/schemas/FacetRule"
|
|
15654
15780
|
required:
|
|
15655
15781
|
- ref
|
|
15656
15782
|
UpsertRecordResponse:
|
|
@@ -15733,6 +15859,8 @@ components:
|
|
|
15733
15859
|
$ref: "#/components/schemas/RecordScope"
|
|
15734
15860
|
specificity:
|
|
15735
15861
|
type: number
|
|
15862
|
+
facetRule:
|
|
15863
|
+
$ref: "#/components/schemas/FacetRule"
|
|
15736
15864
|
data:
|
|
15737
15865
|
type: object
|
|
15738
15866
|
additionalProperties: true
|
|
@@ -15770,6 +15898,7 @@ components:
|
|
|
15770
15898
|
- deletedAt
|
|
15771
15899
|
- scope
|
|
15772
15900
|
- specificity
|
|
15901
|
+
- facetRule
|
|
15773
15902
|
- data
|
|
15774
15903
|
- owner
|
|
15775
15904
|
- admin
|
|
@@ -15821,6 +15950,8 @@ components:
|
|
|
15821
15950
|
metadata:
|
|
15822
15951
|
type: object
|
|
15823
15952
|
additionalProperties: true
|
|
15953
|
+
facetRule:
|
|
15954
|
+
$ref: "#/components/schemas/FacetRule"
|
|
15824
15955
|
required:
|
|
15825
15956
|
- recordType
|
|
15826
15957
|
UpdateRecordInput:
|
|
@@ -15856,6 +15987,8 @@ components:
|
|
|
15856
15987
|
metadata:
|
|
15857
15988
|
type: object
|
|
15858
15989
|
additionalProperties: true
|
|
15990
|
+
facetRule:
|
|
15991
|
+
$ref: "#/components/schemas/FacetRule"
|
|
15859
15992
|
RecordListQueryParams:
|
|
15860
15993
|
type: object
|
|
15861
15994
|
properties:
|
|
@@ -15897,6 +16030,83 @@ components:
|
|
|
15897
16030
|
type: string
|
|
15898
16031
|
includeDeleted:
|
|
15899
16032
|
type: boolean
|
|
16033
|
+
ResolveAllParams:
|
|
16034
|
+
type: object
|
|
16035
|
+
properties:
|
|
16036
|
+
context:
|
|
16037
|
+
type: object
|
|
16038
|
+
additionalProperties: true
|
|
16039
|
+
productId:
|
|
16040
|
+
type: string
|
|
16041
|
+
variantId:
|
|
16042
|
+
type: string
|
|
16043
|
+
batchId:
|
|
16044
|
+
type: string
|
|
16045
|
+
proofId:
|
|
16046
|
+
type: string
|
|
16047
|
+
facets:
|
|
16048
|
+
type: object
|
|
16049
|
+
additionalProperties:
|
|
16050
|
+
type: array
|
|
16051
|
+
items:
|
|
16052
|
+
type: object
|
|
16053
|
+
additionalProperties: true
|
|
16054
|
+
recordType:
|
|
16055
|
+
type: string
|
|
16056
|
+
tiers:
|
|
16057
|
+
type: array
|
|
16058
|
+
items:
|
|
16059
|
+
type: string
|
|
16060
|
+
enum:
|
|
16061
|
+
- proof
|
|
16062
|
+
- batch
|
|
16063
|
+
- variant
|
|
16064
|
+
- product
|
|
16065
|
+
- rule
|
|
16066
|
+
- facet
|
|
16067
|
+
- collection
|
|
16068
|
+
limit:
|
|
16069
|
+
type: number
|
|
16070
|
+
at:
|
|
16071
|
+
type: string
|
|
16072
|
+
includeScheduled:
|
|
16073
|
+
type: boolean
|
|
16074
|
+
includeExpired:
|
|
16075
|
+
type: boolean
|
|
16076
|
+
required:
|
|
16077
|
+
- context
|
|
16078
|
+
ResolveAllResult:
|
|
16079
|
+
type: object
|
|
16080
|
+
properties:
|
|
16081
|
+
records:
|
|
16082
|
+
type: array
|
|
16083
|
+
items:
|
|
16084
|
+
$ref: "#/components/schemas/MatchEntry"
|
|
16085
|
+
truncated:
|
|
16086
|
+
type: boolean
|
|
16087
|
+
required:
|
|
16088
|
+
- records
|
|
16089
|
+
PreviewRuleParams:
|
|
16090
|
+
type: object
|
|
16091
|
+
properties:
|
|
16092
|
+
facetRule:
|
|
16093
|
+
$ref: "#/components/schemas/FacetRule"
|
|
16094
|
+
limit:
|
|
16095
|
+
type: number
|
|
16096
|
+
required:
|
|
16097
|
+
- facetRule
|
|
16098
|
+
PreviewRuleResult:
|
|
16099
|
+
type: object
|
|
16100
|
+
properties:
|
|
16101
|
+
sampleProductIds:
|
|
16102
|
+
type: array
|
|
16103
|
+
items:
|
|
16104
|
+
type: string
|
|
16105
|
+
totalMatches:
|
|
16106
|
+
type: number
|
|
16107
|
+
required:
|
|
16108
|
+
- sampleProductIds
|
|
16109
|
+
- totalMatches
|
|
15900
16110
|
RelatedResponse:
|
|
15901
16111
|
type: object
|
|
15902
16112
|
properties:
|