mftsccs-node 0.0.74 → 0.0.76
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.
|
@@ -8,6 +8,16 @@
|
|
|
8
8
|
* @see https://documentation.freeschema.com for concept structure and API reference
|
|
9
9
|
*/
|
|
10
10
|
import { Concept } from "../../DataStructures/Concept";
|
|
11
|
+
export type CreateConceptPayload = {
|
|
12
|
+
id: number;
|
|
13
|
+
userId: number;
|
|
14
|
+
characterValue: string;
|
|
15
|
+
typeId: number;
|
|
16
|
+
categoryId: number;
|
|
17
|
+
accessId?: number;
|
|
18
|
+
referentId?: number;
|
|
19
|
+
sessionInformationId?: number;
|
|
20
|
+
};
|
|
11
21
|
/**
|
|
12
22
|
* Creates a new concept in the Concept Connection System database.
|
|
13
23
|
* This function sends a POST request to the CCS API to persist a new concept.
|
|
@@ -49,4 +59,4 @@ import { Concept } from "../../DataStructures/Concept";
|
|
|
49
59
|
* @see HandleHttpError for error handling
|
|
50
60
|
* @see https://documentation.freeschema.com for concept data model
|
|
51
61
|
*/
|
|
52
|
-
export declare function CreateTheConceptApi(conceptData:
|
|
62
|
+
export declare function CreateTheConceptApi(conceptData: Concept | Concept[] | CreateConceptPayload | CreateConceptPayload[]): Promise<Concept>;
|
|
@@ -8,6 +8,18 @@
|
|
|
8
8
|
* @see https://documentation.freeschema.com for connection structure and relationship types
|
|
9
9
|
*/
|
|
10
10
|
import { Connection } from "../../DataStructures/Connection";
|
|
11
|
+
export type CreateConnectionPayload = {
|
|
12
|
+
id: number;
|
|
13
|
+
ofTheConceptId: number;
|
|
14
|
+
toTheConceptId: number;
|
|
15
|
+
ofTheConceptUserId: number;
|
|
16
|
+
toTheConceptUserId: number;
|
|
17
|
+
typeId: number;
|
|
18
|
+
userId: number;
|
|
19
|
+
orderId?: number;
|
|
20
|
+
accessId?: number;
|
|
21
|
+
sessionInformationId?: number;
|
|
22
|
+
};
|
|
11
23
|
/**
|
|
12
24
|
* Creates one or more connections between concepts in the Concept Connection System.
|
|
13
25
|
* This function sends a batch of connection data to the CCS API to establish
|
|
@@ -45,4 +57,4 @@ import { Connection } from "../../DataStructures/Connection";
|
|
|
45
57
|
* @see HandleHttpError for error handling
|
|
46
58
|
* @see https://documentation.freeschema.com for connection types and semantics
|
|
47
59
|
*/
|
|
48
|
-
export declare function CreateTheConnectionApi(connectionData: Connection[]): Promise<Connection>;
|
|
60
|
+
export declare function CreateTheConnectionApi(connectionData: Connection[] | CreateConnectionPayload[]): Promise<Connection>;
|