@proveanything/smartlinks 2.1.24 → 2.1.28
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/claimSet.d.ts +8 -2
- package/dist/api/claimSet.js +11 -3
- package/dist/api/containers.d.ts +1 -1
- package/dist/api/containers.js +1 -1
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +3 -0
- package/dist/api/places.d.ts +16 -0
- package/dist/api/places.js +16 -0
- package/dist/api/tagCodes.d.ts +17 -0
- package/dist/api/tagCodes.js +28 -0
- package/dist/api/wallet.d.ts +93 -0
- package/dist/api/wallet.js +86 -0
- package/dist/docs/API_SUMMARY.md +192 -1
- package/dist/docs/i18n.md +68 -1
- package/dist/docs/tag-codes.md +97 -0
- package/dist/docs/wallet-passes.md +87 -0
- package/dist/i18n.d.ts +49 -0
- package/dist/i18n.js +298 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/openapi.yaml +324 -0
- package/dist/types/claimSet.d.ts +106 -1
- package/dist/types/containers.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/wallet.d.ts +92 -0
- package/dist/types/wallet.js +1 -0
- package/docs/API_SUMMARY.md +192 -1
- package/docs/i18n.md +68 -1
- package/docs/tag-codes.md +97 -0
- package/docs/wallet-passes.md +87 -0
- package/openapi.yaml +324 -0
- package/package.json +1 -1
package/dist/openapi.yaml
CHANGED
|
@@ -106,6 +106,8 @@ tags:
|
|
|
106
106
|
description: Order records and line items.
|
|
107
107
|
- name: partner
|
|
108
108
|
description: partner API
|
|
109
|
+
- name: places
|
|
110
|
+
description: places API
|
|
109
111
|
- name: product
|
|
110
112
|
description: Single product operations.
|
|
111
113
|
- name: products
|
|
@@ -7262,6 +7264,40 @@ paths:
|
|
|
7262
7264
|
description: Unauthorized
|
|
7263
7265
|
404:
|
|
7264
7266
|
description: Not found
|
|
7267
|
+
/admin/collection/{collectionId}/places/move:
|
|
7268
|
+
post:
|
|
7269
|
+
tags:
|
|
7270
|
+
- places
|
|
7271
|
+
summary: "Move items (by membership), chips without an item (by membership) or containers (re-parented) into `to`, or out of every place with `to: null`."
|
|
7272
|
+
operationId: places_move
|
|
7273
|
+
security:
|
|
7274
|
+
- bearerAuth: []
|
|
7275
|
+
parameters:
|
|
7276
|
+
- name: collectionId
|
|
7277
|
+
in: path
|
|
7278
|
+
required: true
|
|
7279
|
+
schema:
|
|
7280
|
+
type: string
|
|
7281
|
+
responses:
|
|
7282
|
+
200:
|
|
7283
|
+
description: Success
|
|
7284
|
+
content:
|
|
7285
|
+
application/json:
|
|
7286
|
+
schema:
|
|
7287
|
+
$ref: "#/components/schemas/PlaceMoveResult"
|
|
7288
|
+
400:
|
|
7289
|
+
description: Bad request
|
|
7290
|
+
401:
|
|
7291
|
+
description: Unauthorized
|
|
7292
|
+
404:
|
|
7293
|
+
description: Not found
|
|
7294
|
+
requestBody:
|
|
7295
|
+
required: true
|
|
7296
|
+
content:
|
|
7297
|
+
application/json:
|
|
7298
|
+
schema:
|
|
7299
|
+
type: object
|
|
7300
|
+
additionalProperties: true
|
|
7265
7301
|
/admin/collection/{collectionId}/product:
|
|
7266
7302
|
post:
|
|
7267
7303
|
tags:
|
|
@@ -15670,6 +15706,16 @@ paths:
|
|
|
15670
15706
|
required: true
|
|
15671
15707
|
schema:
|
|
15672
15708
|
type: string
|
|
15709
|
+
- name: from
|
|
15710
|
+
in: query
|
|
15711
|
+
required: false
|
|
15712
|
+
schema:
|
|
15713
|
+
type: string
|
|
15714
|
+
- name: to
|
|
15715
|
+
in: query
|
|
15716
|
+
required: false
|
|
15717
|
+
schema:
|
|
15718
|
+
type: string
|
|
15673
15719
|
responses:
|
|
15674
15720
|
200:
|
|
15675
15721
|
description: Success
|
|
@@ -27634,6 +27680,8 @@ components:
|
|
|
27634
27680
|
properties:
|
|
27635
27681
|
changed:
|
|
27636
27682
|
type: number
|
|
27683
|
+
wholeRange:
|
|
27684
|
+
type: boolean
|
|
27637
27685
|
skipped:
|
|
27638
27686
|
type: array
|
|
27639
27687
|
items:
|
|
@@ -27722,6 +27770,17 @@ components:
|
|
|
27722
27770
|
additionalProperties: true
|
|
27723
27771
|
codes:
|
|
27724
27772
|
type: number
|
|
27773
|
+
codeSource:
|
|
27774
|
+
type: string
|
|
27775
|
+
enum:
|
|
27776
|
+
- stored
|
|
27777
|
+
- computed
|
|
27778
|
+
sigBits:
|
|
27779
|
+
type: number
|
|
27780
|
+
bareCodes:
|
|
27781
|
+
type: boolean
|
|
27782
|
+
unassignedUrl:
|
|
27783
|
+
type: string
|
|
27725
27784
|
deleted:
|
|
27726
27785
|
type: boolean
|
|
27727
27786
|
createdAt:
|
|
@@ -27767,9 +27826,104 @@ components:
|
|
|
27767
27826
|
$ref: "#/components/schemas/ClaimSetTagType"
|
|
27768
27827
|
tapDomain:
|
|
27769
27828
|
type: string
|
|
27829
|
+
codeSource:
|
|
27830
|
+
type: string
|
|
27831
|
+
enum:
|
|
27832
|
+
- stored
|
|
27833
|
+
- computed
|
|
27834
|
+
sigBits:
|
|
27835
|
+
type: number
|
|
27836
|
+
bareCodes:
|
|
27837
|
+
type: boolean
|
|
27838
|
+
unassignedUrl:
|
|
27839
|
+
type: string
|
|
27770
27840
|
required:
|
|
27771
27841
|
- name
|
|
27772
27842
|
- tagType
|
|
27843
|
+
TagCodeRef:
|
|
27844
|
+
type: object
|
|
27845
|
+
properties:
|
|
27846
|
+
scan:
|
|
27847
|
+
type: string
|
|
27848
|
+
url:
|
|
27849
|
+
type: string
|
|
27850
|
+
claimSetId:
|
|
27851
|
+
type: string
|
|
27852
|
+
code:
|
|
27853
|
+
type: string
|
|
27854
|
+
tagId:
|
|
27855
|
+
type: string
|
|
27856
|
+
TagCodeAttachRequest:
|
|
27857
|
+
type: object
|
|
27858
|
+
properties:
|
|
27859
|
+
productId:
|
|
27860
|
+
type: string
|
|
27861
|
+
proofId:
|
|
27862
|
+
type: string
|
|
27863
|
+
containerId:
|
|
27864
|
+
type: string
|
|
27865
|
+
container:
|
|
27866
|
+
type: object
|
|
27867
|
+
additionalProperties: true
|
|
27868
|
+
TagCodeState:
|
|
27869
|
+
type: object
|
|
27870
|
+
properties:
|
|
27871
|
+
kind:
|
|
27872
|
+
type: string
|
|
27873
|
+
enum:
|
|
27874
|
+
- claim
|
|
27875
|
+
- chip
|
|
27876
|
+
claimSetId:
|
|
27877
|
+
type: string
|
|
27878
|
+
code:
|
|
27879
|
+
type: string
|
|
27880
|
+
url:
|
|
27881
|
+
type: string
|
|
27882
|
+
computed:
|
|
27883
|
+
type: boolean
|
|
27884
|
+
tagId:
|
|
27885
|
+
type: string
|
|
27886
|
+
tagType:
|
|
27887
|
+
type: string
|
|
27888
|
+
enum:
|
|
27889
|
+
- chip
|
|
27890
|
+
status:
|
|
27891
|
+
type: string
|
|
27892
|
+
enum:
|
|
27893
|
+
- free
|
|
27894
|
+
- attached
|
|
27895
|
+
- elsewhere
|
|
27896
|
+
on:
|
|
27897
|
+
$ref: "#/components/schemas/TagCodeOn"
|
|
27898
|
+
productId:
|
|
27899
|
+
type: string
|
|
27900
|
+
proofId:
|
|
27901
|
+
type: string
|
|
27902
|
+
required:
|
|
27903
|
+
- kind
|
|
27904
|
+
- tagType
|
|
27905
|
+
- status
|
|
27906
|
+
PlaceMoveResult:
|
|
27907
|
+
type: object
|
|
27908
|
+
properties:
|
|
27909
|
+
moved:
|
|
27910
|
+
type: array
|
|
27911
|
+
items:
|
|
27912
|
+
type: object
|
|
27913
|
+
additionalProperties: true
|
|
27914
|
+
unchanged:
|
|
27915
|
+
type: array
|
|
27916
|
+
items:
|
|
27917
|
+
$ref: "#/components/schemas/PlaceMoveItem"
|
|
27918
|
+
refused:
|
|
27919
|
+
type: array
|
|
27920
|
+
items:
|
|
27921
|
+
type: object
|
|
27922
|
+
additionalProperties: true
|
|
27923
|
+
required:
|
|
27924
|
+
- moved
|
|
27925
|
+
- unchanged
|
|
27926
|
+
- refused
|
|
27773
27927
|
ClaimSetScope:
|
|
27774
27928
|
type: object
|
|
27775
27929
|
properties:
|
|
@@ -27777,6 +27931,14 @@ components:
|
|
|
27777
27931
|
type: string
|
|
27778
27932
|
required:
|
|
27779
27933
|
- collectionId
|
|
27934
|
+
PlaceMoveItem:
|
|
27935
|
+
type: object
|
|
27936
|
+
properties:
|
|
27937
|
+
productId:
|
|
27938
|
+
type: object
|
|
27939
|
+
additionalProperties: true
|
|
27940
|
+
required:
|
|
27941
|
+
- productId
|
|
27780
27942
|
ClaimSetTagType:
|
|
27781
27943
|
type: string
|
|
27782
27944
|
enum:
|
|
@@ -27815,6 +27977,9 @@ components:
|
|
|
27815
27977
|
- duplicate_uid
|
|
27816
27978
|
- uid_in_use
|
|
27817
27979
|
- uid_conflict
|
|
27980
|
+
TagCodeOn:
|
|
27981
|
+
type: object
|
|
27982
|
+
additionalProperties: true
|
|
27818
27983
|
ClientErrorReport:
|
|
27819
27984
|
type: object
|
|
27820
27985
|
properties:
|
|
@@ -29671,11 +29836,16 @@ components:
|
|
|
29671
29836
|
FindContainersForItemResponse:
|
|
29672
29837
|
type: object
|
|
29673
29838
|
properties:
|
|
29839
|
+
items:
|
|
29840
|
+
type: array
|
|
29841
|
+
items:
|
|
29842
|
+
$ref: "#/components/schemas/ContainerItem"
|
|
29674
29843
|
containers:
|
|
29675
29844
|
type: array
|
|
29676
29845
|
items:
|
|
29677
29846
|
$ref: "#/components/schemas/Container"
|
|
29678
29847
|
required:
|
|
29848
|
+
- items
|
|
29679
29849
|
- containers
|
|
29680
29850
|
ContainerItemsResponse:
|
|
29681
29851
|
type: object
|
|
@@ -37198,6 +37368,160 @@ components:
|
|
|
37198
37368
|
properties:
|
|
37199
37369
|
name:
|
|
37200
37370
|
type: string
|
|
37371
|
+
WalletPassRef:
|
|
37372
|
+
type: object
|
|
37373
|
+
properties:
|
|
37374
|
+
type:
|
|
37375
|
+
type: string
|
|
37376
|
+
enum:
|
|
37377
|
+
- booking
|
|
37378
|
+
- contact
|
|
37379
|
+
id:
|
|
37380
|
+
type: string
|
|
37381
|
+
required:
|
|
37382
|
+
- type
|
|
37383
|
+
- id
|
|
37384
|
+
WalletPassContent:
|
|
37385
|
+
type: object
|
|
37386
|
+
properties:
|
|
37387
|
+
kind:
|
|
37388
|
+
$ref: "#/components/schemas/WalletPassKind"
|
|
37389
|
+
title:
|
|
37390
|
+
type: string
|
|
37391
|
+
subtitle:
|
|
37392
|
+
type: string
|
|
37393
|
+
start:
|
|
37394
|
+
type: string
|
|
37395
|
+
end:
|
|
37396
|
+
type: string
|
|
37397
|
+
timezone:
|
|
37398
|
+
type: string
|
|
37399
|
+
venue:
|
|
37400
|
+
type: object
|
|
37401
|
+
additionalProperties: true
|
|
37402
|
+
holder:
|
|
37403
|
+
type: string
|
|
37404
|
+
number:
|
|
37405
|
+
type: string
|
|
37406
|
+
level:
|
|
37407
|
+
type: string
|
|
37408
|
+
points:
|
|
37409
|
+
type: number
|
|
37410
|
+
validUntil:
|
|
37411
|
+
type: string
|
|
37412
|
+
fields:
|
|
37413
|
+
type: array
|
|
37414
|
+
items:
|
|
37415
|
+
type: object
|
|
37416
|
+
additionalProperties: true
|
|
37417
|
+
back:
|
|
37418
|
+
type: array
|
|
37419
|
+
items:
|
|
37420
|
+
type: object
|
|
37421
|
+
additionalProperties: true
|
|
37422
|
+
image:
|
|
37423
|
+
type: string
|
|
37424
|
+
url:
|
|
37425
|
+
type: string
|
|
37426
|
+
barcode:
|
|
37427
|
+
type: string
|
|
37428
|
+
required:
|
|
37429
|
+
- kind
|
|
37430
|
+
- title
|
|
37431
|
+
WalletPassLinks:
|
|
37432
|
+
type: object
|
|
37433
|
+
properties:
|
|
37434
|
+
google:
|
|
37435
|
+
type: string
|
|
37436
|
+
apple:
|
|
37437
|
+
type: string
|
|
37438
|
+
WalletPassSummary:
|
|
37439
|
+
type: object
|
|
37440
|
+
properties:
|
|
37441
|
+
id:
|
|
37442
|
+
type: string
|
|
37443
|
+
kind:
|
|
37444
|
+
$ref: "#/components/schemas/WalletPassKind"
|
|
37445
|
+
ref:
|
|
37446
|
+
$ref: "#/components/schemas/WalletPassRef"
|
|
37447
|
+
title:
|
|
37448
|
+
type: string
|
|
37449
|
+
start:
|
|
37450
|
+
type: string
|
|
37451
|
+
links:
|
|
37452
|
+
$ref: "#/components/schemas/WalletPassLinks"
|
|
37453
|
+
required:
|
|
37454
|
+
- id
|
|
37455
|
+
- kind
|
|
37456
|
+
- ref
|
|
37457
|
+
- links
|
|
37458
|
+
WalletPass:
|
|
37459
|
+
type: object
|
|
37460
|
+
properties:
|
|
37461
|
+
id:
|
|
37462
|
+
type: string
|
|
37463
|
+
collectionId:
|
|
37464
|
+
type: string
|
|
37465
|
+
kind:
|
|
37466
|
+
$ref: "#/components/schemas/WalletPassKind"
|
|
37467
|
+
ref:
|
|
37468
|
+
$ref: "#/components/schemas/WalletPassRef"
|
|
37469
|
+
contactId:
|
|
37470
|
+
type: string
|
|
37471
|
+
status:
|
|
37472
|
+
type: string
|
|
37473
|
+
enum:
|
|
37474
|
+
- active
|
|
37475
|
+
- voided
|
|
37476
|
+
issuedBy:
|
|
37477
|
+
type: string
|
|
37478
|
+
model:
|
|
37479
|
+
$ref: "#/components/schemas/WalletPassContent"
|
|
37480
|
+
code:
|
|
37481
|
+
type: string
|
|
37482
|
+
version:
|
|
37483
|
+
type: number
|
|
37484
|
+
notice:
|
|
37485
|
+
type: object
|
|
37486
|
+
additionalProperties: true
|
|
37487
|
+
voidReason:
|
|
37488
|
+
type: string
|
|
37489
|
+
links:
|
|
37490
|
+
$ref: "#/components/schemas/WalletPassLinks"
|
|
37491
|
+
createdAt:
|
|
37492
|
+
type: string
|
|
37493
|
+
updatedAt:
|
|
37494
|
+
type: string
|
|
37495
|
+
required:
|
|
37496
|
+
- id
|
|
37497
|
+
- collectionId
|
|
37498
|
+
- kind
|
|
37499
|
+
- ref
|
|
37500
|
+
- status
|
|
37501
|
+
- model
|
|
37502
|
+
- code
|
|
37503
|
+
- version
|
|
37504
|
+
IssueWalletPassRequest:
|
|
37505
|
+
type: object
|
|
37506
|
+
properties:
|
|
37507
|
+
ref:
|
|
37508
|
+
$ref: "#/components/schemas/WalletPassRef"
|
|
37509
|
+
contactId:
|
|
37510
|
+
type: string
|
|
37511
|
+
appId:
|
|
37512
|
+
type: string
|
|
37513
|
+
pass:
|
|
37514
|
+
$ref: "#/components/schemas/WalletPassContent"
|
|
37515
|
+
required:
|
|
37516
|
+
- ref
|
|
37517
|
+
- pass
|
|
37518
|
+
WalletPassKind:
|
|
37519
|
+
type: string
|
|
37520
|
+
enum:
|
|
37521
|
+
- event
|
|
37522
|
+
- booking
|
|
37523
|
+
- membership
|
|
37524
|
+
- loyalty
|
|
37201
37525
|
NavigationRequest:
|
|
37202
37526
|
type: object
|
|
37203
37527
|
properties:
|
package/dist/types/claimSet.d.ts
CHANGED
|
@@ -176,7 +176,7 @@ export interface CreateClaimSetRangeRequest {
|
|
|
176
176
|
/** Default 'range'. Owners and admins make ranges and open ranges; assigners may make groups too. */
|
|
177
177
|
kind?: ClaimSetRangeKind;
|
|
178
178
|
name: string;
|
|
179
|
-
/** 1 to 10,000 (a range); ignored for open ranges and groups */
|
|
179
|
+
/** 1 to 10,000 (a range), or up to 1,000,000 in a computed set; ignored for open ranges and groups */
|
|
180
180
|
quantity?: number;
|
|
181
181
|
/** Pre-assign every tag at mint time (you must administer the collection) */
|
|
182
182
|
intendedCollectionId?: string;
|
|
@@ -302,6 +302,8 @@ export interface AssignClaimSetRangeRequest {
|
|
|
302
302
|
}
|
|
303
303
|
export interface AssignClaimSetRangeResponse {
|
|
304
304
|
changed: number;
|
|
305
|
+
/** A whole computed run, assigned on the range itself (one write, however many tags) */
|
|
306
|
+
wholeRange?: boolean;
|
|
305
307
|
skipped: Array<{
|
|
306
308
|
code: string;
|
|
307
309
|
index: number;
|
|
@@ -349,6 +351,14 @@ export interface PartnerClaimSet {
|
|
|
349
351
|
id: string | null;
|
|
350
352
|
};
|
|
351
353
|
codes: number;
|
|
354
|
+
/** 'computed': codes are worked out from their index, nothing stored until one is claimed (QR only) */
|
|
355
|
+
codeSource?: 'stored' | 'computed';
|
|
356
|
+
/** computed sets: the signature size, 16 to 32 bits (default 24) */
|
|
357
|
+
sigBits?: number;
|
|
358
|
+
/** computed sets: this set answers bare codes on its domain, https://{tapDomain}/{code} */
|
|
359
|
+
bareCodes?: boolean;
|
|
360
|
+
/** computed sets: where an unused code's scan goes; {set} and {code} are filled in */
|
|
361
|
+
unassignedUrl?: string | null;
|
|
352
362
|
deleted: boolean;
|
|
353
363
|
createdAt: string | null;
|
|
354
364
|
}
|
|
@@ -369,4 +379,99 @@ export interface CreatePartnerClaimSetRequest {
|
|
|
369
379
|
tagType: ClaimSetTagType;
|
|
370
380
|
/** One of the partner's tap domains; default smartlinks.app */
|
|
371
381
|
tapDomain?: string;
|
|
382
|
+
/**
|
|
383
|
+
* 'computed' (QR only): codes are worked out from their index and nothing is stored per code until one is
|
|
384
|
+
* claimed, so a run can hold up to 1,000,000 tags. Default 'stored'.
|
|
385
|
+
*/
|
|
386
|
+
codeSource?: 'stored' | 'computed';
|
|
387
|
+
/** computed sets: signature size, 16 to 32 bits; default 24 (about 1 in 16.7 million guesses passes) */
|
|
388
|
+
sigBits?: number;
|
|
389
|
+
/** computed sets: answer bare codes on the tap domain (https://{domain}/{code}); one set per domain */
|
|
390
|
+
bareCodes?: boolean;
|
|
391
|
+
/** computed sets: a full https:// address for an unused code's scan, with {set} and {code} placeholders */
|
|
392
|
+
unassignedUrl?: string;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* A scanned tag. Any one of: what a scanner read (`scan`: an address is a claim code, anything else a chip id), the
|
|
396
|
+
* address (`url`), a claim set and code, or a chip's id in the tags table (`tagId`: an RFID EPC or NFC UID).
|
|
397
|
+
*/
|
|
398
|
+
export interface TagCodeRef {
|
|
399
|
+
scan?: string;
|
|
400
|
+
/** https://{domain}/{code} or https://{domain}/t/{set}/{code} */
|
|
401
|
+
url?: string;
|
|
402
|
+
claimSetId?: string;
|
|
403
|
+
code?: string;
|
|
404
|
+
/** An RFID EPC or NFC UID */
|
|
405
|
+
tagId?: string;
|
|
406
|
+
}
|
|
407
|
+
/** Attach a tag to an item (productId + proofId), an existing container (containerId), or a new box (container). */
|
|
408
|
+
export interface TagCodeAttachRequest extends TagCodeRef {
|
|
409
|
+
/** The item's type (a product) */
|
|
410
|
+
productId?: string;
|
|
411
|
+
/** The item (a proof) */
|
|
412
|
+
proofId?: string;
|
|
413
|
+
/** An existing container this tag is the label on */
|
|
414
|
+
containerId?: string;
|
|
415
|
+
/** A new box (or bag, shelf…) labelled by this tag */
|
|
416
|
+
container?: {
|
|
417
|
+
name: string;
|
|
418
|
+
containerType?: string;
|
|
419
|
+
parentContainerId?: string;
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
/** What a tag is on: an item, a container it labels, or (older RFID) just a product. */
|
|
423
|
+
export type TagCodeOn = {
|
|
424
|
+
type: 'item';
|
|
425
|
+
productId: string | null;
|
|
426
|
+
proofId: string;
|
|
427
|
+
} | {
|
|
428
|
+
type: 'container';
|
|
429
|
+
containerId: string;
|
|
430
|
+
name?: string | null;
|
|
431
|
+
containerType?: string;
|
|
432
|
+
} | {
|
|
433
|
+
type: 'product';
|
|
434
|
+
productId: string;
|
|
435
|
+
};
|
|
436
|
+
export interface TagCodeState {
|
|
437
|
+
/** claim: a claim-set code (QR, or an NFC claim code); chip: a tags-table chip (RFID EPC, NFC UID) */
|
|
438
|
+
kind: 'claim' | 'chip';
|
|
439
|
+
/** claim codes */
|
|
440
|
+
claimSetId?: string;
|
|
441
|
+
code?: string;
|
|
442
|
+
/** The address a claim code carries */
|
|
443
|
+
url?: string;
|
|
444
|
+
/** A computed set's code (printed QR, nothing stored until attached) */
|
|
445
|
+
computed?: boolean;
|
|
446
|
+
/** chips */
|
|
447
|
+
tagId?: string;
|
|
448
|
+
tagType: ClaimSetTagType | 'chip';
|
|
449
|
+
/** free: may be attached here; attached: on one of this collection's things; elsewhere: another organisation's */
|
|
450
|
+
status: 'free' | 'attached' | 'elsewhere';
|
|
451
|
+
/** Only for this collection's own tags */
|
|
452
|
+
on?: TagCodeOn | null;
|
|
453
|
+
productId?: string | null;
|
|
454
|
+
proofId?: string | null;
|
|
455
|
+
}
|
|
456
|
+
/** places.move: one thing to move. */
|
|
457
|
+
export type PlaceMoveItem = {
|
|
458
|
+
productId: string;
|
|
459
|
+
proofId: string;
|
|
460
|
+
} | {
|
|
461
|
+
tagId: string;
|
|
462
|
+
} | {
|
|
463
|
+
containerId: string;
|
|
464
|
+
};
|
|
465
|
+
export interface PlaceMoveResult {
|
|
466
|
+
moved: Array<{
|
|
467
|
+
item: PlaceMoveItem;
|
|
468
|
+
from: string | null;
|
|
469
|
+
to: string | null;
|
|
470
|
+
}>;
|
|
471
|
+
unchanged: PlaceMoveItem[];
|
|
472
|
+
refused: Array<{
|
|
473
|
+
item: PlaceMoveItem;
|
|
474
|
+
errorCode: string;
|
|
475
|
+
errorText: string;
|
|
476
|
+
}>;
|
|
372
477
|
}
|
|
@@ -139,7 +139,9 @@ export interface ListContainersResponse {
|
|
|
139
139
|
export interface PublicListContainersResponse {
|
|
140
140
|
containers: Container[];
|
|
141
141
|
}
|
|
142
|
+
/** What findForItem answers: the item's current membership rows (each has `containerId`) and those containers. */
|
|
142
143
|
export interface FindContainersForItemResponse {
|
|
144
|
+
items: ContainerItem[];
|
|
143
145
|
containers: Container[];
|
|
144
146
|
}
|
|
145
147
|
export interface ContainerItemsResponse {
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/** Wallet passes: what a pass is and shows (docs/wallet-passes.md). */
|
|
2
|
+
export type WalletPassKind = 'event' | 'booking' | 'membership' | 'loyalty';
|
|
3
|
+
/** What the pass is for: a booking, the person ('contact'), or your own record type. */
|
|
4
|
+
export interface WalletPassRef {
|
|
5
|
+
type: 'booking' | 'contact' | string;
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
/** What a pass shows. Branding (name, logo, colours) always comes from the site. */
|
|
9
|
+
export interface WalletPassContent {
|
|
10
|
+
kind: WalletPassKind;
|
|
11
|
+
/** The main line: the event, "Table for 4", "Gold member". */
|
|
12
|
+
title: string;
|
|
13
|
+
subtitle?: string;
|
|
14
|
+
/** ISO times (events and bookings); the pass surfaces near `start`. */
|
|
15
|
+
start?: string;
|
|
16
|
+
end?: string;
|
|
17
|
+
/** IANA timezone, e.g. 'Europe/London'. */
|
|
18
|
+
timezone?: string;
|
|
19
|
+
/** `lat` / `lng` make the pass appear when the person is nearby. */
|
|
20
|
+
venue?: {
|
|
21
|
+
name?: string;
|
|
22
|
+
address?: string;
|
|
23
|
+
lat?: number;
|
|
24
|
+
lng?: number;
|
|
25
|
+
};
|
|
26
|
+
holder?: string;
|
|
27
|
+
/** A booking reference or member number. */
|
|
28
|
+
number?: string;
|
|
29
|
+
level?: string;
|
|
30
|
+
/** Loyalty balance. */
|
|
31
|
+
points?: number;
|
|
32
|
+
validUntil?: string;
|
|
33
|
+
/** Up to 4 extra lines on the front. */
|
|
34
|
+
fields?: Array<{
|
|
35
|
+
label: string;
|
|
36
|
+
value: string;
|
|
37
|
+
}>;
|
|
38
|
+
/** Lines on the back. */
|
|
39
|
+
back?: Array<{
|
|
40
|
+
label: string;
|
|
41
|
+
value: string;
|
|
42
|
+
}>;
|
|
43
|
+
/** https only. */
|
|
44
|
+
image?: string;
|
|
45
|
+
url?: string;
|
|
46
|
+
/** The QR value; the pass's own code unless you give one. */
|
|
47
|
+
barcode?: string;
|
|
48
|
+
}
|
|
49
|
+
/** "Add to Wallet" links that work for this pass now (a wallet that isn't set up is left out). */
|
|
50
|
+
export interface WalletPassLinks {
|
|
51
|
+
google?: string;
|
|
52
|
+
apple?: string;
|
|
53
|
+
}
|
|
54
|
+
/** A pass as the person sees it (public calls). */
|
|
55
|
+
export interface WalletPassSummary {
|
|
56
|
+
id: string;
|
|
57
|
+
kind: WalletPassKind;
|
|
58
|
+
ref: WalletPassRef;
|
|
59
|
+
title?: string;
|
|
60
|
+
start?: string;
|
|
61
|
+
links: WalletPassLinks;
|
|
62
|
+
}
|
|
63
|
+
/** A pass as an admin or app sees it. */
|
|
64
|
+
export interface WalletPass {
|
|
65
|
+
id: string;
|
|
66
|
+
collectionId: string;
|
|
67
|
+
kind: WalletPassKind;
|
|
68
|
+
ref: WalletPassRef;
|
|
69
|
+
contactId?: string | null;
|
|
70
|
+
status: 'active' | 'voided';
|
|
71
|
+
/** The app that issued it. */
|
|
72
|
+
issuedBy?: string | null;
|
|
73
|
+
model: WalletPassContent;
|
|
74
|
+
/** The value in its QR code (check it with `wallet.byCode`). */
|
|
75
|
+
code: string;
|
|
76
|
+
version: number;
|
|
77
|
+
notice?: {
|
|
78
|
+
header: string;
|
|
79
|
+
body: string;
|
|
80
|
+
at: string;
|
|
81
|
+
};
|
|
82
|
+
voidReason?: string | null;
|
|
83
|
+
links?: WalletPassLinks;
|
|
84
|
+
createdAt?: string;
|
|
85
|
+
updatedAt?: string;
|
|
86
|
+
}
|
|
87
|
+
export interface IssueWalletPassRequest {
|
|
88
|
+
ref: WalletPassRef;
|
|
89
|
+
contactId?: string;
|
|
90
|
+
appId?: string;
|
|
91
|
+
pass: WalletPassContent;
|
|
92
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|