@proveanything/smartlinks 2.1.22 → 2.1.24
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/adminCardsView.d.ts +1 -1
- package/dist/adminCardsView.js +70 -55
- package/dist/api/appObjects.d.ts +26 -0
- package/dist/api/appObjects.js +31 -1
- package/dist/api/conditions.d.ts +51 -0
- package/dist/api/conditions.js +57 -0
- package/dist/api/contact.d.ts +23 -0
- package/dist/api/contact.js +30 -0
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/products.d.ts +22 -0
- package/dist/api/products.js +29 -0
- package/dist/api/proof.d.ts +30 -0
- package/dist/api/proof.js +37 -0
- package/dist/docs/API_SUMMARY.md +322 -172
- package/dist/docs/admin-cards.md +1 -1
- package/dist/docs/app-docs.md +73 -0
- package/dist/docs/app-manifest.md +20 -0
- package/dist/docs/standard-query.md +187 -0
- package/dist/docs/utils.md +22 -8
- package/dist/openapi.yaml +462 -0
- package/dist/types/adminCards.d.ts +2 -1
- package/dist/types/appManifest.d.ts +29 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/query.d.ts +121 -0
- package/dist/types/query.js +5 -0
- package/dist/utils/conditions.d.ts +1 -1
- package/dist/utils/conditions.js +21 -6
- package/docs/API_SUMMARY.md +322 -172
- package/docs/admin-cards.md +1 -1
- package/docs/app-docs.md +73 -0
- package/docs/app-manifest.md +20 -0
- package/docs/standard-query.md +187 -0
- package/docs/utils.md +22 -8
- package/openapi.yaml +462 -0
- package/package.json +1 -1
package/dist/openapi.yaml
CHANGED
|
@@ -70,6 +70,8 @@ tags:
|
|
|
70
70
|
description: Collection (tenant) configuration and resources.
|
|
71
71
|
- name: comms
|
|
72
72
|
description: Communications preferences, consent and delivery.
|
|
73
|
+
- name: conditions
|
|
74
|
+
description: conditions API
|
|
73
75
|
- name: config
|
|
74
76
|
description: Proof-type and platform configuration.
|
|
75
77
|
- name: contact
|
|
@@ -3324,6 +3326,65 @@ paths:
|
|
|
3324
3326
|
description: Unauthorized
|
|
3325
3327
|
404:
|
|
3326
3328
|
description: Not found
|
|
3329
|
+
/admin/collection/{collectionId}/contacts/query:
|
|
3330
|
+
get:
|
|
3331
|
+
tags:
|
|
3332
|
+
- contact
|
|
3333
|
+
summary: "What a contacts query can use: its fields and what each can filter, sort, group or total."
|
|
3334
|
+
operationId: contact_queryFields
|
|
3335
|
+
security:
|
|
3336
|
+
- bearerAuth: []
|
|
3337
|
+
parameters:
|
|
3338
|
+
- name: collectionId
|
|
3339
|
+
in: path
|
|
3340
|
+
required: true
|
|
3341
|
+
schema:
|
|
3342
|
+
type: string
|
|
3343
|
+
responses:
|
|
3344
|
+
200:
|
|
3345
|
+
description: Success
|
|
3346
|
+
content:
|
|
3347
|
+
application/json:
|
|
3348
|
+
schema:
|
|
3349
|
+
$ref: "#/components/schemas/QueryDescription"
|
|
3350
|
+
400:
|
|
3351
|
+
description: Bad request
|
|
3352
|
+
401:
|
|
3353
|
+
description: Unauthorized
|
|
3354
|
+
404:
|
|
3355
|
+
description: Not found
|
|
3356
|
+
post:
|
|
3357
|
+
tags:
|
|
3358
|
+
- contact
|
|
3359
|
+
summary: "The standard query on contacts (admin only): filter, sort, page, count and total in one call."
|
|
3360
|
+
operationId: contact_query
|
|
3361
|
+
security:
|
|
3362
|
+
- bearerAuth: []
|
|
3363
|
+
parameters:
|
|
3364
|
+
- name: collectionId
|
|
3365
|
+
in: path
|
|
3366
|
+
required: true
|
|
3367
|
+
schema:
|
|
3368
|
+
type: string
|
|
3369
|
+
responses:
|
|
3370
|
+
200:
|
|
3371
|
+
description: Success
|
|
3372
|
+
content:
|
|
3373
|
+
application/json:
|
|
3374
|
+
schema:
|
|
3375
|
+
$ref: "#/components/schemas/QueryResult"
|
|
3376
|
+
400:
|
|
3377
|
+
description: Bad request
|
|
3378
|
+
401:
|
|
3379
|
+
description: Unauthorized
|
|
3380
|
+
404:
|
|
3381
|
+
description: Not found
|
|
3382
|
+
requestBody:
|
|
3383
|
+
required: true
|
|
3384
|
+
content:
|
|
3385
|
+
application/json:
|
|
3386
|
+
schema:
|
|
3387
|
+
$ref: "#/components/schemas/StandardQuery"
|
|
3327
3388
|
/admin/collection/{collectionId}/contacts/search:
|
|
3328
3389
|
get:
|
|
3329
3390
|
tags:
|
|
@@ -7970,6 +8031,65 @@ paths:
|
|
|
7970
8031
|
application/json:
|
|
7971
8032
|
schema:
|
|
7972
8033
|
$ref: "#/components/schemas/ProductCreateRequest"
|
|
8034
|
+
/admin/collection/{collectionId}/products/standard/query:
|
|
8035
|
+
get:
|
|
8036
|
+
tags:
|
|
8037
|
+
- products
|
|
8038
|
+
summary: "What a products standard query can use: its fields and what each can filter, sort, group or total."
|
|
8039
|
+
operationId: products_standardQueryFields
|
|
8040
|
+
security:
|
|
8041
|
+
- bearerAuth: []
|
|
8042
|
+
parameters:
|
|
8043
|
+
- name: collectionId
|
|
8044
|
+
in: path
|
|
8045
|
+
required: true
|
|
8046
|
+
schema:
|
|
8047
|
+
type: string
|
|
8048
|
+
responses:
|
|
8049
|
+
200:
|
|
8050
|
+
description: Success
|
|
8051
|
+
content:
|
|
8052
|
+
application/json:
|
|
8053
|
+
schema:
|
|
8054
|
+
$ref: "#/components/schemas/QueryDescription"
|
|
8055
|
+
400:
|
|
8056
|
+
description: Bad request
|
|
8057
|
+
401:
|
|
8058
|
+
description: Unauthorized
|
|
8059
|
+
404:
|
|
8060
|
+
description: Not found
|
|
8061
|
+
post:
|
|
8062
|
+
tags:
|
|
8063
|
+
- products
|
|
8064
|
+
summary: "The standard query on products (admin only): the one query shape every resource is moving to, with counts, totals and filtering by facet."
|
|
8065
|
+
operationId: products_standardQuery
|
|
8066
|
+
security:
|
|
8067
|
+
- bearerAuth: []
|
|
8068
|
+
parameters:
|
|
8069
|
+
- name: collectionId
|
|
8070
|
+
in: path
|
|
8071
|
+
required: true
|
|
8072
|
+
schema:
|
|
8073
|
+
type: string
|
|
8074
|
+
responses:
|
|
8075
|
+
200:
|
|
8076
|
+
description: Success
|
|
8077
|
+
content:
|
|
8078
|
+
application/json:
|
|
8079
|
+
schema:
|
|
8080
|
+
$ref: "#/components/schemas/QueryResult"
|
|
8081
|
+
400:
|
|
8082
|
+
description: Bad request
|
|
8083
|
+
401:
|
|
8084
|
+
description: Unauthorized
|
|
8085
|
+
404:
|
|
8086
|
+
description: Not found
|
|
8087
|
+
requestBody:
|
|
8088
|
+
required: true
|
|
8089
|
+
content:
|
|
8090
|
+
application/json:
|
|
8091
|
+
schema:
|
|
8092
|
+
$ref: "#/components/schemas/StandardQuery"
|
|
7973
8093
|
/admin/collection/{collectionId}/products/{productId}:
|
|
7974
8094
|
put:
|
|
7975
8095
|
tags:
|
|
@@ -8340,6 +8460,65 @@ paths:
|
|
|
8340
8460
|
description: Unauthorized
|
|
8341
8461
|
404:
|
|
8342
8462
|
description: Not found
|
|
8463
|
+
/admin/collection/{collectionId}/proof/query:
|
|
8464
|
+
get:
|
|
8465
|
+
tags:
|
|
8466
|
+
- proof
|
|
8467
|
+
summary: "What a proofs query can use: its fields, what each can filter, sort, group or total, and its links."
|
|
8468
|
+
operationId: proof_queryFields
|
|
8469
|
+
security:
|
|
8470
|
+
- bearerAuth: []
|
|
8471
|
+
parameters:
|
|
8472
|
+
- name: collectionId
|
|
8473
|
+
in: path
|
|
8474
|
+
required: true
|
|
8475
|
+
schema:
|
|
8476
|
+
type: string
|
|
8477
|
+
responses:
|
|
8478
|
+
200:
|
|
8479
|
+
description: Success
|
|
8480
|
+
content:
|
|
8481
|
+
application/json:
|
|
8482
|
+
schema:
|
|
8483
|
+
$ref: "#/components/schemas/QueryDescription"
|
|
8484
|
+
400:
|
|
8485
|
+
description: Bad request
|
|
8486
|
+
401:
|
|
8487
|
+
description: Unauthorized
|
|
8488
|
+
404:
|
|
8489
|
+
description: Not found
|
|
8490
|
+
post:
|
|
8491
|
+
tags:
|
|
8492
|
+
- proof
|
|
8493
|
+
summary: "The standard query on proofs (admin only): filter, sort, page, count and total a collection's proofs in one call, and follow a proof to its `product` and its `owner` (the owner's contact)."
|
|
8494
|
+
operationId: proof_query
|
|
8495
|
+
security:
|
|
8496
|
+
- bearerAuth: []
|
|
8497
|
+
parameters:
|
|
8498
|
+
- name: collectionId
|
|
8499
|
+
in: path
|
|
8500
|
+
required: true
|
|
8501
|
+
schema:
|
|
8502
|
+
type: string
|
|
8503
|
+
responses:
|
|
8504
|
+
200:
|
|
8505
|
+
description: Success
|
|
8506
|
+
content:
|
|
8507
|
+
application/json:
|
|
8508
|
+
schema:
|
|
8509
|
+
$ref: "#/components/schemas/QueryResult"
|
|
8510
|
+
400:
|
|
8511
|
+
description: Bad request
|
|
8512
|
+
401:
|
|
8513
|
+
description: Unauthorized
|
|
8514
|
+
404:
|
|
8515
|
+
description: Not found
|
|
8516
|
+
requestBody:
|
|
8517
|
+
required: true
|
|
8518
|
+
content:
|
|
8519
|
+
application/json:
|
|
8520
|
+
schema:
|
|
8521
|
+
$ref: "#/components/schemas/StandardQuery"
|
|
8343
8522
|
/admin/collection/{collectionId}/research/fetch:
|
|
8344
8523
|
post:
|
|
8345
8524
|
tags:
|
|
@@ -15299,6 +15478,32 @@ paths:
|
|
|
15299
15478
|
description: Unauthorized
|
|
15300
15479
|
404:
|
|
15301
15480
|
description: Not found
|
|
15481
|
+
/{conditionId}:
|
|
15482
|
+
get:
|
|
15483
|
+
tags:
|
|
15484
|
+
- conditions
|
|
15485
|
+
summary: One saved condition.
|
|
15486
|
+
operationId: conditions_get
|
|
15487
|
+
security: []
|
|
15488
|
+
parameters:
|
|
15489
|
+
- name: conditionId
|
|
15490
|
+
in: path
|
|
15491
|
+
required: true
|
|
15492
|
+
schema:
|
|
15493
|
+
type: string
|
|
15494
|
+
responses:
|
|
15495
|
+
200:
|
|
15496
|
+
description: Success
|
|
15497
|
+
content:
|
|
15498
|
+
application/json:
|
|
15499
|
+
schema:
|
|
15500
|
+
$ref: "#/components/schemas/SavedCondition"
|
|
15501
|
+
400:
|
|
15502
|
+
description: Bad request
|
|
15503
|
+
401:
|
|
15504
|
+
description: Unauthorized
|
|
15505
|
+
404:
|
|
15506
|
+
description: Not found
|
|
15302
15507
|
/{groupId}/members:
|
|
15303
15508
|
post:
|
|
15304
15509
|
tags:
|
|
@@ -16412,6 +16617,83 @@ paths:
|
|
|
16412
16617
|
application/json:
|
|
16413
16618
|
schema:
|
|
16414
16619
|
$ref: "#/components/schemas/PreviewRuleParams"
|
|
16620
|
+
/{zone}/collection/{collectionId}/app/{appId}/records/query:
|
|
16621
|
+
get:
|
|
16622
|
+
tags:
|
|
16623
|
+
- records
|
|
16624
|
+
summary: "What a records query can use: its fields, what each can filter, sort, group or total, and its links."
|
|
16625
|
+
operationId: records_queryFields
|
|
16626
|
+
security: []
|
|
16627
|
+
parameters:
|
|
16628
|
+
- name: zone
|
|
16629
|
+
in: path
|
|
16630
|
+
required: true
|
|
16631
|
+
schema:
|
|
16632
|
+
type: string
|
|
16633
|
+
- name: collectionId
|
|
16634
|
+
in: path
|
|
16635
|
+
required: true
|
|
16636
|
+
schema:
|
|
16637
|
+
type: string
|
|
16638
|
+
- name: appId
|
|
16639
|
+
in: path
|
|
16640
|
+
required: true
|
|
16641
|
+
schema:
|
|
16642
|
+
type: string
|
|
16643
|
+
responses:
|
|
16644
|
+
200:
|
|
16645
|
+
description: Success
|
|
16646
|
+
content:
|
|
16647
|
+
application/json:
|
|
16648
|
+
schema:
|
|
16649
|
+
$ref: "#/components/schemas/QueryDescription"
|
|
16650
|
+
400:
|
|
16651
|
+
description: Bad request
|
|
16652
|
+
401:
|
|
16653
|
+
description: Unauthorized
|
|
16654
|
+
404:
|
|
16655
|
+
description: Not found
|
|
16656
|
+
post:
|
|
16657
|
+
tags:
|
|
16658
|
+
- records
|
|
16659
|
+
summary: "The standard query on an app's records (admin only): filter, sort, page, count and total in one call, reaching into a record's own fields by path, and following a record to its `product` and its `contact`."
|
|
16660
|
+
operationId: records_query
|
|
16661
|
+
security: []
|
|
16662
|
+
parameters:
|
|
16663
|
+
- name: zone
|
|
16664
|
+
in: path
|
|
16665
|
+
required: true
|
|
16666
|
+
schema:
|
|
16667
|
+
type: string
|
|
16668
|
+
- name: collectionId
|
|
16669
|
+
in: path
|
|
16670
|
+
required: true
|
|
16671
|
+
schema:
|
|
16672
|
+
type: string
|
|
16673
|
+
- name: appId
|
|
16674
|
+
in: path
|
|
16675
|
+
required: true
|
|
16676
|
+
schema:
|
|
16677
|
+
type: string
|
|
16678
|
+
responses:
|
|
16679
|
+
200:
|
|
16680
|
+
description: Success
|
|
16681
|
+
content:
|
|
16682
|
+
application/json:
|
|
16683
|
+
schema:
|
|
16684
|
+
$ref: "#/components/schemas/QueryResult"
|
|
16685
|
+
400:
|
|
16686
|
+
description: Bad request
|
|
16687
|
+
401:
|
|
16688
|
+
description: Unauthorized
|
|
16689
|
+
404:
|
|
16690
|
+
description: Not found
|
|
16691
|
+
requestBody:
|
|
16692
|
+
required: true
|
|
16693
|
+
content:
|
|
16694
|
+
application/json:
|
|
16695
|
+
schema:
|
|
16696
|
+
$ref: "#/components/schemas/StandardQuery"
|
|
16415
16697
|
/{zone}/collection/{collectionId}/app/{appId}/records/resolve-all:
|
|
16416
16698
|
post:
|
|
16417
16699
|
tags:
|
|
@@ -21815,6 +22097,8 @@ components:
|
|
|
21815
22097
|
$ref: "#/components/schemas/AppConnectorDeclaration"
|
|
21816
22098
|
assistant:
|
|
21817
22099
|
$ref: "#/components/schemas/AppAssistantDeclaration"
|
|
22100
|
+
docs:
|
|
22101
|
+
$ref: "#/components/schemas/AppDocsDeclaration"
|
|
21818
22102
|
required:
|
|
21819
22103
|
- name
|
|
21820
22104
|
- version
|
|
@@ -21822,6 +22106,31 @@ components:
|
|
|
21822
22106
|
- function
|
|
21823
22107
|
- files
|
|
21824
22108
|
- components
|
|
22109
|
+
AppDocsPage:
|
|
22110
|
+
type: object
|
|
22111
|
+
properties:
|
|
22112
|
+
file:
|
|
22113
|
+
type: string
|
|
22114
|
+
title:
|
|
22115
|
+
type: string
|
|
22116
|
+
description:
|
|
22117
|
+
type: string
|
|
22118
|
+
audience:
|
|
22119
|
+
$ref: "#/components/schemas/AppDocsAudience"
|
|
22120
|
+
required:
|
|
22121
|
+
- file
|
|
22122
|
+
- title
|
|
22123
|
+
AppDocsDeclaration:
|
|
22124
|
+
type: object
|
|
22125
|
+
properties:
|
|
22126
|
+
pages:
|
|
22127
|
+
type: array
|
|
22128
|
+
items:
|
|
22129
|
+
$ref: "#/components/schemas/AppDocsPage"
|
|
22130
|
+
listed:
|
|
22131
|
+
type: boolean
|
|
22132
|
+
required:
|
|
22133
|
+
- pages
|
|
21825
22134
|
AppAssistantFile:
|
|
21826
22135
|
type: object
|
|
21827
22136
|
properties:
|
|
@@ -22311,6 +22620,13 @@ components:
|
|
|
22311
22620
|
ServerFunctionMessageResult:
|
|
22312
22621
|
type: object
|
|
22313
22622
|
additionalProperties: true
|
|
22623
|
+
AppDocsAudience:
|
|
22624
|
+
type: string
|
|
22625
|
+
enum:
|
|
22626
|
+
- team
|
|
22627
|
+
- admin
|
|
22628
|
+
- customer
|
|
22629
|
+
- developer
|
|
22314
22630
|
PaginatedResponse:
|
|
22315
22631
|
type: object
|
|
22316
22632
|
properties:
|
|
@@ -35542,6 +35858,136 @@ components:
|
|
|
35542
35858
|
type: string
|
|
35543
35859
|
required:
|
|
35544
35860
|
- code
|
|
35861
|
+
QueryFieldTest:
|
|
35862
|
+
type: object
|
|
35863
|
+
properties:
|
|
35864
|
+
eq:
|
|
35865
|
+
$ref: "#/components/schemas/QueryValue"
|
|
35866
|
+
ne:
|
|
35867
|
+
$ref: "#/components/schemas/QueryValue"
|
|
35868
|
+
gt:
|
|
35869
|
+
$ref: "#/components/schemas/QueryValue"
|
|
35870
|
+
gte:
|
|
35871
|
+
$ref: "#/components/schemas/QueryValue"
|
|
35872
|
+
lt:
|
|
35873
|
+
$ref: "#/components/schemas/QueryValue"
|
|
35874
|
+
lte:
|
|
35875
|
+
$ref: "#/components/schemas/QueryValue"
|
|
35876
|
+
in:
|
|
35877
|
+
type: array
|
|
35878
|
+
items:
|
|
35879
|
+
$ref: "#/components/schemas/QueryValue"
|
|
35880
|
+
nin:
|
|
35881
|
+
type: array
|
|
35882
|
+
items:
|
|
35883
|
+
$ref: "#/components/schemas/QueryValue"
|
|
35884
|
+
contains:
|
|
35885
|
+
type: string
|
|
35886
|
+
startsWith:
|
|
35887
|
+
type: string
|
|
35888
|
+
isNull:
|
|
35889
|
+
type: boolean
|
|
35890
|
+
has:
|
|
35891
|
+
type: string
|
|
35892
|
+
hasAny:
|
|
35893
|
+
type: array
|
|
35894
|
+
items:
|
|
35895
|
+
type: string
|
|
35896
|
+
hasAll:
|
|
35897
|
+
type: array
|
|
35898
|
+
items:
|
|
35899
|
+
type: string
|
|
35900
|
+
QueryWhere:
|
|
35901
|
+
type: object
|
|
35902
|
+
properties:
|
|
35903
|
+
and:
|
|
35904
|
+
type: array
|
|
35905
|
+
items:
|
|
35906
|
+
$ref: "#/components/schemas/QueryWhere"
|
|
35907
|
+
or:
|
|
35908
|
+
type: array
|
|
35909
|
+
items:
|
|
35910
|
+
$ref: "#/components/schemas/QueryWhere"
|
|
35911
|
+
not:
|
|
35912
|
+
$ref: "#/components/schemas/QueryWhere"
|
|
35913
|
+
StandardQuery:
|
|
35914
|
+
type: object
|
|
35915
|
+
properties:
|
|
35916
|
+
where:
|
|
35917
|
+
$ref: "#/components/schemas/QueryWhere"
|
|
35918
|
+
orderBy:
|
|
35919
|
+
type: array
|
|
35920
|
+
items:
|
|
35921
|
+
type: object
|
|
35922
|
+
additionalProperties:
|
|
35923
|
+
type: string
|
|
35924
|
+
enum:
|
|
35925
|
+
- asc
|
|
35926
|
+
- desc
|
|
35927
|
+
limit:
|
|
35928
|
+
type: number
|
|
35929
|
+
cursor:
|
|
35930
|
+
type: string
|
|
35931
|
+
select:
|
|
35932
|
+
type: array
|
|
35933
|
+
items:
|
|
35934
|
+
type: string
|
|
35935
|
+
count:
|
|
35936
|
+
type: boolean
|
|
35937
|
+
groupBy:
|
|
35938
|
+
type: array
|
|
35939
|
+
items:
|
|
35940
|
+
type: string
|
|
35941
|
+
aggregates:
|
|
35942
|
+
type: object
|
|
35943
|
+
additionalProperties:
|
|
35944
|
+
$ref: "#/components/schemas/QueryAggregate"
|
|
35945
|
+
expand:
|
|
35946
|
+
type: object
|
|
35947
|
+
additionalProperties: true
|
|
35948
|
+
QueryDescription:
|
|
35949
|
+
type: object
|
|
35950
|
+
properties:
|
|
35951
|
+
name:
|
|
35952
|
+
type: string
|
|
35953
|
+
fields:
|
|
35954
|
+
type: object
|
|
35955
|
+
additionalProperties:
|
|
35956
|
+
type: object
|
|
35957
|
+
additionalProperties: true
|
|
35958
|
+
count:
|
|
35959
|
+
type: boolean
|
|
35960
|
+
aggregates:
|
|
35961
|
+
type: boolean
|
|
35962
|
+
links:
|
|
35963
|
+
type: object
|
|
35964
|
+
additionalProperties:
|
|
35965
|
+
type: object
|
|
35966
|
+
additionalProperties: true
|
|
35967
|
+
limits:
|
|
35968
|
+
type: object
|
|
35969
|
+
additionalProperties: true
|
|
35970
|
+
shape:
|
|
35971
|
+
type: string
|
|
35972
|
+
required:
|
|
35973
|
+
- name
|
|
35974
|
+
- fields
|
|
35975
|
+
- count
|
|
35976
|
+
- aggregates
|
|
35977
|
+
- links
|
|
35978
|
+
- limits
|
|
35979
|
+
- shape
|
|
35980
|
+
QueryValue:
|
|
35981
|
+
type: object
|
|
35982
|
+
additionalProperties: true
|
|
35983
|
+
QueryKeyedTest:
|
|
35984
|
+
type: object
|
|
35985
|
+
additionalProperties:
|
|
35986
|
+
type: object
|
|
35987
|
+
additionalProperties: true
|
|
35988
|
+
QueryAggregate:
|
|
35989
|
+
type: object
|
|
35990
|
+
additionalProperties: true
|
|
35545
35991
|
RealtimeTokenRequest:
|
|
35546
35992
|
type: object
|
|
35547
35993
|
properties:
|
|
@@ -36999,6 +37445,22 @@ components:
|
|
|
36999
37445
|
additionalProperties: true
|
|
37000
37446
|
required:
|
|
37001
37447
|
- valid
|
|
37448
|
+
SavedCondition:
|
|
37449
|
+
type: object
|
|
37450
|
+
properties:
|
|
37451
|
+
id:
|
|
37452
|
+
type: string
|
|
37453
|
+
title:
|
|
37454
|
+
type: string
|
|
37455
|
+
disabled:
|
|
37456
|
+
type: boolean
|
|
37457
|
+
deleted:
|
|
37458
|
+
type: boolean
|
|
37459
|
+
required:
|
|
37460
|
+
- id
|
|
37461
|
+
- title
|
|
37462
|
+
SaveConditionRequest:
|
|
37463
|
+
$ref: "#/components/schemas/SavedCondition"
|
|
37002
37464
|
FunctionListEntry:
|
|
37003
37465
|
type: object
|
|
37004
37466
|
properties:
|
|
@@ -102,12 +102,13 @@ export interface AdminCardPayload {
|
|
|
102
102
|
total: number;
|
|
103
103
|
label?: string;
|
|
104
104
|
};
|
|
105
|
-
/** A short list — at most 5 are shown. */
|
|
105
|
+
/** A short list — at most 5 are shown. `image` (https) is a small picture beside the row, e.g. a product photo. */
|
|
106
106
|
items?: Array<{
|
|
107
107
|
title: string;
|
|
108
108
|
subtitle?: string;
|
|
109
109
|
meta?: string;
|
|
110
110
|
path?: string;
|
|
111
|
+
image?: string;
|
|
111
112
|
}>;
|
|
112
113
|
/** Things that need doing — collected into the dashboard's To do strip. */
|
|
113
114
|
todo?: Array<{
|
|
@@ -1351,8 +1351,37 @@ export interface AppManifest {
|
|
|
1351
1351
|
* planned change set. See docs/assistant-apps.md. @see AppAssistantDeclaration
|
|
1352
1352
|
*/
|
|
1353
1353
|
assistant?: AppAssistantDeclaration;
|
|
1354
|
+
/**
|
|
1355
|
+
* The app's manual: Markdown pages (and their images) under `public/docs/`, shipped with every
|
|
1356
|
+
* release. First-party apps' manuals are published on docs.smartlinks.app straight from the
|
|
1357
|
+
* stable release. See docs/app-docs.md. @see AppDocsDeclaration
|
|
1358
|
+
*/
|
|
1359
|
+
docs?: AppDocsDeclaration;
|
|
1354
1360
|
[key: string]: any;
|
|
1355
1361
|
}
|
|
1362
|
+
/** Who a manual page is written for. */
|
|
1363
|
+
export type AppDocsAudience = 'team' | 'admin' | 'customer' | 'developer';
|
|
1364
|
+
/** One page of an app's manual. */
|
|
1365
|
+
export interface AppDocsPage {
|
|
1366
|
+
/**
|
|
1367
|
+
* Path of the Markdown file in the published build, relative to the app's root (`public/` in the
|
|
1368
|
+
* project): `docs/index.md`. Images it links with relative paths ship beside it (`docs/images/...`).
|
|
1369
|
+
*/
|
|
1370
|
+
file: string;
|
|
1371
|
+
/** Page title, as it appears in the docs menu. */
|
|
1372
|
+
title: string;
|
|
1373
|
+
/** One sentence: what the page helps with. Used for listings and search results. */
|
|
1374
|
+
description?: string;
|
|
1375
|
+
/** Who it is for. Default `team` (the staff who use the app). */
|
|
1376
|
+
audience?: AppDocsAudience;
|
|
1377
|
+
}
|
|
1378
|
+
/** The `docs` block in `app.manifest.json`. */
|
|
1379
|
+
export interface AppDocsDeclaration {
|
|
1380
|
+
/** Pages in reading order. The first one is the manual's front page. */
|
|
1381
|
+
pages: AppDocsPage[];
|
|
1382
|
+
/** `false` keeps this manual off docs.smartlinks.app (it still ships with the app). Default `true`. */
|
|
1383
|
+
listed?: boolean;
|
|
1384
|
+
}
|
|
1356
1385
|
/** One skill or knowledge file the app ships for the assistant. */
|
|
1357
1386
|
export interface AppAssistantFile {
|
|
1358
1387
|
/** Short id, unique within the app (`theme`, `pages`, `settings-schema`). */
|
package/dist/types/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from "./segments.js";
|
|
|
18
18
|
export * from "./userGroups.js";
|
|
19
19
|
export * from "./operations.js";
|
|
20
20
|
export * from "./common.js";
|
|
21
|
+
export * from "./query.js";
|
|
21
22
|
export * from "./journeys.js";
|
|
22
23
|
export * from "./journeysAnalytics.js";
|
|
23
24
|
export * from "./qr.js";
|
package/dist/types/index.js
CHANGED
|
@@ -20,6 +20,7 @@ export * from "./segments.js";
|
|
|
20
20
|
export * from "./userGroups.js";
|
|
21
21
|
export * from "./operations.js";
|
|
22
22
|
export * from "./common.js";
|
|
23
|
+
export * from "./query.js";
|
|
23
24
|
export * from "./journeys.js";
|
|
24
25
|
export * from "./journeysAnalytics.js";
|
|
25
26
|
export * from "./qr.js";
|