lucid-extension-sdk 0.0.407 → 0.0.409
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/core/data/serializedfield/serializedfielddefinition.d.ts +3 -3
- package/core/data/serializedfield/serializedfielddefinition.js +1 -1
- package/core/sharedcardintegration/cardintegrationdefinitions.d.ts +3 -2
- package/dataconnector/datasourceupdatetypes.d.ts +3 -0
- package/dataconnector/datasourceupdatetypes.js +2 -0
- package/package.json +1 -1
|
@@ -18,12 +18,12 @@ export declare const isFieldConstraintType: (x: unknown) => x is FieldConstraint
|
|
|
18
18
|
export type SerializedFieldConstraint = {
|
|
19
19
|
'Type': FieldConstraintType;
|
|
20
20
|
'Details'?: UnsafeJsonSerializableOrUndefined;
|
|
21
|
-
'Reason'?: string | undefined;
|
|
21
|
+
'Reason'?: string | undefined | null;
|
|
22
22
|
};
|
|
23
23
|
export declare const isSerializedFieldConstraint: (subject: unknown) => subject is import("../../guards").DestructureGuardedTypeObj<{
|
|
24
24
|
Type: (x: unknown) => x is FieldConstraintType;
|
|
25
25
|
Details: (x: unknown) => x is any;
|
|
26
|
-
Reason: (x: unknown) => x is string | undefined;
|
|
26
|
+
Reason: (x: unknown) => x is string | null | undefined;
|
|
27
27
|
}>;
|
|
28
28
|
export type SerializedFieldDefinition = {
|
|
29
29
|
'Name': string;
|
|
@@ -38,7 +38,7 @@ export declare const isSerializedFieldDefinition: (subject: unknown) => subject
|
|
|
38
38
|
Constraints: (x: unknown) => x is import("../../guards").DestructureGuardedTypeObj<{
|
|
39
39
|
Type: (x: unknown) => x is FieldConstraintType;
|
|
40
40
|
Details: (x: unknown) => x is any;
|
|
41
|
-
Reason: (x: unknown) => x is string | undefined;
|
|
41
|
+
Reason: (x: unknown) => x is string | null | undefined;
|
|
42
42
|
}>[] | undefined;
|
|
43
43
|
SyncSchema: (x: unknown) => x is string | undefined;
|
|
44
44
|
Mapping: (x: unknown) => x is LucidFields[] | SemanticKind[] | undefined;
|
|
@@ -22,7 +22,7 @@ exports.isFieldConstraintType = (0, validators_1.enumValidator)(FieldConstraintT
|
|
|
22
22
|
exports.isSerializedFieldConstraint = (0, validators_1.objectValidator)({
|
|
23
23
|
'Type': (0, validators_1.enumValidator)(FieldConstraintType),
|
|
24
24
|
'Details': (0, validators_1.option)(checks_1.isAny),
|
|
25
|
-
'Reason': (0, validators_1.
|
|
25
|
+
'Reason': (0, validators_1.nullableOption)(checks_1.isString),
|
|
26
26
|
});
|
|
27
27
|
exports.isSerializedFieldDefinition = (0, validators_1.strictObjectValidator)({
|
|
28
28
|
'Name': checks_1.isString,
|
|
@@ -105,8 +105,9 @@ export declare const isSerializedExtensionCardFieldDefinition: (subject: unknown
|
|
|
105
105
|
Type: typeof isSerializedFieldTypeDefinition;
|
|
106
106
|
Constraints: (x: unknown) => x is import("../guards").DestructureGuardedTypeObj<{
|
|
107
107
|
Type: (x: unknown) => x is import("../data/serializedfield/serializedfielddefinition").FieldConstraintType;
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
/** If defined, the default value for this field */
|
|
109
|
+
Details: (x: unknown) => x is any;
|
|
110
|
+
Reason: (x: unknown) => x is string | null | undefined;
|
|
110
111
|
}>[] | undefined;
|
|
111
112
|
l: typeof isString;
|
|
112
113
|
d: (x: unknown) => x is string | undefined;
|
|
@@ -58,6 +58,7 @@ export interface SerializedCollectionPatch {
|
|
|
58
58
|
'itemsPatch': SerializedItemsPatch;
|
|
59
59
|
'properties'?: serializedPropertiesForApi;
|
|
60
60
|
}
|
|
61
|
+
/** Represents a standard, incremental update to a collection. */
|
|
61
62
|
export declare class ItemsPatchInexhaustive {
|
|
62
63
|
/**
|
|
63
64
|
* Items to be added or changed in the collection. Mapping from item serialized primary key to
|
|
@@ -78,6 +79,7 @@ export declare class ItemsPatchInexhaustive {
|
|
|
78
79
|
/** Items to remove from the collection, based on the same primary key algorithm. */
|
|
79
80
|
itemsDeleted?: string[] | undefined, errors?: Map<string, SerializedLucidDictionary> | undefined, fieldConstraintsPerItem?: Map<string, Map<string, FieldConstraintDefinition[]>> | undefined);
|
|
80
81
|
}
|
|
82
|
+
/** Sets the collection to exactly the items in this patch, deleting all others. */
|
|
81
83
|
export declare class ItemsPatchExhaustive {
|
|
82
84
|
items: Map<string, SerializedFields>;
|
|
83
85
|
rekeyingMap?: Map<string, string | null> | undefined;
|
|
@@ -87,6 +89,7 @@ export declare class ItemsPatchExhaustive {
|
|
|
87
89
|
private readonly _brand;
|
|
88
90
|
constructor(items: Map<string, SerializedFields>, rekeyingMap?: Map<string, string | null> | undefined, fieldNamesChanged?: Map<string, string | null> | undefined, errors?: Map<string, SerializedLucidDictionary> | undefined, fieldConstraintsPerItem?: Map<string, Map<string, FieldConstraintDefinition[]>> | undefined);
|
|
89
91
|
}
|
|
92
|
+
/** The anonymous type is kept for backward compatibility; use ItemsPatchInexhaustive instead. */
|
|
90
93
|
export type ItemsPatch = {
|
|
91
94
|
/**
|
|
92
95
|
* Items to be added or changed in the collection. Mapping from item serialized primary key to
|
|
@@ -5,6 +5,7 @@ const checks_1 = require("../core/checks");
|
|
|
5
5
|
const fieldtypedefinition_1 = require("../core/data/fieldtypedefinition/fieldtypedefinition");
|
|
6
6
|
const object_1 = require("../core/object");
|
|
7
7
|
const collectionerrortypes_1 = require("../data/collectionerrortypes");
|
|
8
|
+
/** Represents a standard, incremental update to a collection. */
|
|
8
9
|
class ItemsPatchInexhaustive {
|
|
9
10
|
constructor(
|
|
10
11
|
/**
|
|
@@ -22,6 +23,7 @@ class ItemsPatchInexhaustive {
|
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
exports.ItemsPatchInexhaustive = ItemsPatchInexhaustive;
|
|
26
|
+
/** Sets the collection to exactly the items in this patch, deleting all others. */
|
|
25
27
|
class ItemsPatchExhaustive {
|
|
26
28
|
constructor(items, rekeyingMap, fieldNamesChanged, errors, fieldConstraintsPerItem) {
|
|
27
29
|
this.items = items;
|