@shopimind/integration-kit-js 1.1.0 → 1.2.0
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/contracts/sdk.d.ts +11 -2
- package/package.json +1 -1
package/dist/contracts/sdk.d.ts
CHANGED
|
@@ -37,9 +37,18 @@ export interface NewCustomDataDefinition {
|
|
|
37
37
|
description?: string;
|
|
38
38
|
unique_keys?: string[];
|
|
39
39
|
fields: NewCustomDataField[];
|
|
40
|
+
/**
|
|
41
|
+
* Schema-level relationships to other definitions (forwarded as-is to the API).
|
|
42
|
+
* `sourceField` is a field of THIS definition; it links to `targetSchema` — a
|
|
43
|
+
* `'system'` schema (e.g. `contacts`, `products`) or another `'custom'` definition
|
|
44
|
+
* (by its numeric id) — optionally matched on `targetField` (defaults to the
|
|
45
|
+
* target's id). Mirrors the API's relationship DTO; `custom`→`custom` is supported.
|
|
46
|
+
*/
|
|
40
47
|
relationships?: Array<{
|
|
41
|
-
|
|
42
|
-
|
|
48
|
+
sourceField: string;
|
|
49
|
+
targetSchemaType: 'system' | 'custom';
|
|
50
|
+
targetSchema: string;
|
|
51
|
+
targetField?: string;
|
|
43
52
|
}>;
|
|
44
53
|
}
|
|
45
54
|
/** Order status to provision (declaration). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopimind/integration-kit-js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Foundation for building ShopiMind integrations: a runtime plus typed, once-tested primitives (HMAC webhook signatures, encryption, log redaction, a safe cursor-based sync engine, pagination/concurrency, persistence, ShopiMind SDK re-export, idempotent provisioning, secured inbound middleware, HTTP server). An integration only writes pure functions and declarations passed to defineIntegration.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"repository": {
|