@proveanything/smartlinks 1.1.4 → 1.1.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/API_SUMMARY.md +5 -2
- package/dist/api/qr.d.ts +0 -1
- package/dist/api/qr.js +1 -2
- package/dist/types/actions.d.ts +3 -0
- package/package.json +1 -1
package/API_SUMMARY.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Smartlinks API Summary
|
|
2
2
|
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.6 | Generated: 2025-12-23T16:56:04.230Z
|
|
4
4
|
|
|
5
5
|
This is a concise summary of all available API functions and types.
|
|
6
6
|
|
|
@@ -176,6 +176,7 @@ interface PublicByUserRequest {
|
|
|
176
176
|
```typescript
|
|
177
177
|
interface ActionEventRow {
|
|
178
178
|
orgId: string
|
|
179
|
+
collectionId: string
|
|
179
180
|
timestamp: string
|
|
180
181
|
appId?: string
|
|
181
182
|
actionId?: string
|
|
@@ -183,6 +184,7 @@ interface ActionEventRow {
|
|
|
183
184
|
userId?: string
|
|
184
185
|
contactId?: string
|
|
185
186
|
outcome?: string | null
|
|
187
|
+
metadata?: Record<string, unknown>
|
|
186
188
|
[k: string]: unknown
|
|
187
189
|
}
|
|
188
190
|
```
|
|
@@ -211,6 +213,7 @@ interface AppendActionBody {
|
|
|
211
213
|
broadcastId?: string
|
|
212
214
|
outcome?: string
|
|
213
215
|
timestamp?: string
|
|
216
|
+
metadata?: Record<string, unknown>
|
|
214
217
|
[k: string]: any
|
|
215
218
|
}
|
|
216
219
|
```
|
|
@@ -1960,7 +1963,7 @@ Get proofs for a batch (admin only). GET /admin/collection/:collectionId/product
|
|
|
1960
1963
|
### qr
|
|
1961
1964
|
|
|
1962
1965
|
**lookupShortCode**(shortId: string, code: string) → `Promise<QrShortCodeLookupResponse>`
|
|
1963
|
-
Resolve a short code to related resource identifiers.
|
|
1966
|
+
Resolve a short code to related resource identifiers.
|
|
1964
1967
|
|
|
1965
1968
|
### segments
|
|
1966
1969
|
|
package/dist/api/qr.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import type { QrShortCodeLookupResponse } from "../types/qr";
|
|
|
5
5
|
export declare namespace qr {
|
|
6
6
|
/**
|
|
7
7
|
* Resolve a short code to related resource identifiers.
|
|
8
|
-
* GET /public/lookupShortCode/:shortId/:code
|
|
9
8
|
*
|
|
10
9
|
* @param shortId - The short code identifier namespace
|
|
11
10
|
* @param code - The actual code to look up
|
package/dist/api/qr.js
CHANGED
|
@@ -8,14 +8,13 @@ export var qr;
|
|
|
8
8
|
(function (qr) {
|
|
9
9
|
/**
|
|
10
10
|
* Resolve a short code to related resource identifiers.
|
|
11
|
-
* GET /public/lookupShortCode/:shortId/:code
|
|
12
11
|
*
|
|
13
12
|
* @param shortId - The short code identifier namespace
|
|
14
13
|
* @param code - The actual code to look up
|
|
15
14
|
* @returns Mapping with optional `collectionId`, `productId`, `proofId` and the `code`
|
|
16
15
|
*/
|
|
17
16
|
async function lookupShortCode(shortId, code) {
|
|
18
|
-
const path = `/public/lookupShortCode/${encodeURIComponent(shortId)}/${encodeURIComponent(code)}`;
|
|
17
|
+
const path = `/public/qr/lookupShortCode/${encodeURIComponent(shortId)}/${encodeURIComponent(code)}`;
|
|
19
18
|
return request(path);
|
|
20
19
|
}
|
|
21
20
|
qr.lookupShortCode = lookupShortCode;
|
package/dist/types/actions.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export interface PublicByUserRequest {
|
|
|
44
44
|
}
|
|
45
45
|
export interface ActionEventRow {
|
|
46
46
|
orgId: string;
|
|
47
|
+
collectionId: string;
|
|
47
48
|
timestamp: string;
|
|
48
49
|
appId?: string;
|
|
49
50
|
actionId?: string;
|
|
@@ -51,6 +52,7 @@ export interface ActionEventRow {
|
|
|
51
52
|
userId?: string;
|
|
52
53
|
contactId?: string;
|
|
53
54
|
outcome?: string | null;
|
|
55
|
+
metadata?: Record<string, unknown>;
|
|
54
56
|
[k: string]: unknown;
|
|
55
57
|
}
|
|
56
58
|
export interface OutcomeCount {
|
|
@@ -70,6 +72,7 @@ export interface AppendActionBody {
|
|
|
70
72
|
broadcastId?: string;
|
|
71
73
|
outcome?: string;
|
|
72
74
|
timestamp?: string;
|
|
75
|
+
metadata?: Record<string, unknown>;
|
|
73
76
|
[k: string]: any;
|
|
74
77
|
}
|
|
75
78
|
export interface ActionPermissions {
|