@inferencebureau/apps-sdk 0.8.0 → 0.8.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/index.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -47,6 +47,13 @@ export interface FieldDef {
|
|
|
47
47
|
* webhook writes what its payload carries.
|
|
48
48
|
*/
|
|
49
49
|
fetch?: "onWebhook" | "later";
|
|
50
|
+
/**
|
|
51
|
+
* On a synced Shopify model (products, variants, collections, customers, orders, draft orders, locations, companies,
|
|
52
|
+
* company locations, markets, pages, blogs, articles): the metafield the field holds, `"namespace.key"`
|
|
53
|
+
* (`"$app:reviews.rating"` for the app's own). Sync passes refresh it; with `fetch: "onWebhook"`, so does the
|
|
54
|
+
* record's webhook. A reference metafield goes in a belongsTo to the synced model it names, a list in a json field.
|
|
55
|
+
*/
|
|
56
|
+
metafield?: string;
|
|
50
57
|
/**
|
|
51
58
|
* Computed fields, worked out when a record is read: an expression over the record's own fields (`"price * quantity"`,
|
|
52
59
|
* `"concat(firstName, ' ', lastName)"`), or an aggregate over a hasMany's records. They filter and sort like stored ones.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inferencebureau/apps-sdk",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "The SDK an Inference Bureau app's code imports: action helpers, metadata types, the records API client and a test harness for its actions.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"keywords": [
|