@cosmotech/api-ts 2.4.2 → 2.4.5-private
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/README.md +2 -2
- package/api.ts +74 -74
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +45 -45
- package/dist/api.js +74 -74
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @cosmotech/api-ts@2.4.
|
|
1
|
+
## @cosmotech/api-ts@2.4.5-private
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @cosmotech/api-ts@2.4.
|
|
39
|
+
npm install @cosmotech/api-ts@2.4.5-private --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Cosmo Tech Platform API
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.4.
|
|
7
|
+
* The version of the OpenAPI document: 2.4.5-private
|
|
8
8
|
* Contact: platform@cosmotech.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10077,8 +10077,8 @@ export class SolutionApi extends BaseAPI {
|
|
|
10077
10077
|
export const TwingraphApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
10078
10078
|
return {
|
|
10079
10079
|
/**
|
|
10080
|
-
*
|
|
10081
|
-
* @summary
|
|
10080
|
+
* Delete all versions of a graph and his metadatas
|
|
10081
|
+
* @summary Delete all versions of a graph and his metadatas
|
|
10082
10082
|
* @param {string} organizationId the Organization identifier
|
|
10083
10083
|
* @param {string} graphId the Graph Identifier
|
|
10084
10084
|
* @param {*} [options] Override http request option.
|
|
@@ -10226,24 +10226,24 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
|
|
|
10226
10226
|
* @summary Create new entities in a graph instance
|
|
10227
10227
|
* @param {string} organizationId the Organization identifier
|
|
10228
10228
|
* @param {string} graphId the Graph Identifier
|
|
10229
|
-
* @param {'node' | 'relationship'}
|
|
10229
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
10230
10230
|
* @param {Array<GraphProperties>} graphProperties the entities to create
|
|
10231
10231
|
* @param {*} [options] Override http request option.
|
|
10232
10232
|
* @throws {RequiredError}
|
|
10233
10233
|
*/
|
|
10234
|
-
createEntities: async (organizationId: string, graphId: string,
|
|
10234
|
+
createEntities: async (organizationId: string, graphId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10235
10235
|
// verify required parameter 'organizationId' is not null or undefined
|
|
10236
10236
|
assertParamExists('createEntities', 'organizationId', organizationId)
|
|
10237
10237
|
// verify required parameter 'graphId' is not null or undefined
|
|
10238
10238
|
assertParamExists('createEntities', 'graphId', graphId)
|
|
10239
|
-
// verify required parameter '
|
|
10240
|
-
assertParamExists('createEntities', '
|
|
10239
|
+
// verify required parameter 'type' is not null or undefined
|
|
10240
|
+
assertParamExists('createEntities', 'type', type)
|
|
10241
10241
|
// verify required parameter 'graphProperties' is not null or undefined
|
|
10242
10242
|
assertParamExists('createEntities', 'graphProperties', graphProperties)
|
|
10243
|
-
const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/{
|
|
10243
|
+
const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/entity/{type}`
|
|
10244
10244
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10245
10245
|
.replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)))
|
|
10246
|
-
.replace(`{${"
|
|
10246
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)));
|
|
10247
10247
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10248
10248
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10249
10249
|
let baseOptions;
|
|
@@ -10274,7 +10274,7 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
|
|
|
10274
10274
|
};
|
|
10275
10275
|
},
|
|
10276
10276
|
/**
|
|
10277
|
-
*
|
|
10277
|
+
* To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'Id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * Id those colomns represent * The source of the edge * The target of the edge * The Id of the edge All following columns content are up to you.
|
|
10278
10278
|
* @summary Create a new graph
|
|
10279
10279
|
* @param {string} organizationId the Organization identifier
|
|
10280
10280
|
* @param {string} graphId the Graph Identifier
|
|
@@ -10324,24 +10324,24 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
|
|
|
10324
10324
|
* @summary Delete entities in a graph instance
|
|
10325
10325
|
* @param {string} organizationId the Organization identifier
|
|
10326
10326
|
* @param {string} graphId the Graph Identifier
|
|
10327
|
-
* @param {'node' | 'relationship'}
|
|
10327
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
10328
10328
|
* @param {Array<string>} ids the entities to delete
|
|
10329
10329
|
* @param {*} [options] Override http request option.
|
|
10330
10330
|
* @throws {RequiredError}
|
|
10331
10331
|
*/
|
|
10332
|
-
deleteEntities: async (organizationId: string, graphId: string,
|
|
10332
|
+
deleteEntities: async (organizationId: string, graphId: string, type: 'node' | 'relationship', ids: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10333
10333
|
// verify required parameter 'organizationId' is not null or undefined
|
|
10334
10334
|
assertParamExists('deleteEntities', 'organizationId', organizationId)
|
|
10335
10335
|
// verify required parameter 'graphId' is not null or undefined
|
|
10336
10336
|
assertParamExists('deleteEntities', 'graphId', graphId)
|
|
10337
|
-
// verify required parameter '
|
|
10338
|
-
assertParamExists('deleteEntities', '
|
|
10337
|
+
// verify required parameter 'type' is not null or undefined
|
|
10338
|
+
assertParamExists('deleteEntities', 'type', type)
|
|
10339
10339
|
// verify required parameter 'ids' is not null or undefined
|
|
10340
10340
|
assertParamExists('deleteEntities', 'ids', ids)
|
|
10341
|
-
const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/{
|
|
10341
|
+
const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/entity/{type}`
|
|
10342
10342
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10343
10343
|
.replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)))
|
|
10344
|
-
.replace(`{${"
|
|
10344
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)));
|
|
10345
10345
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10346
10346
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10347
10347
|
let baseOptions;
|
|
@@ -10385,7 +10385,7 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
|
|
|
10385
10385
|
assertParamExists('downloadGraph', 'organizationId', organizationId)
|
|
10386
10386
|
// verify required parameter 'hash' is not null or undefined
|
|
10387
10387
|
assertParamExists('downloadGraph', 'hash', hash)
|
|
10388
|
-
const localVarPath = `/organizations/{organization_id}/twingraph/
|
|
10388
|
+
const localVarPath = `/organizations/{organization_id}/twingraph/download/{hash}`
|
|
10389
10389
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10390
10390
|
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
10391
10391
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -10457,24 +10457,24 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
|
|
|
10457
10457
|
* @summary Get entities in a graph instance
|
|
10458
10458
|
* @param {string} organizationId the Organization identifier
|
|
10459
10459
|
* @param {string} graphId the Graph Identifier
|
|
10460
|
-
* @param {'node' | 'relationship'}
|
|
10460
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
10461
10461
|
* @param {Array<string>} ids the entities to get
|
|
10462
10462
|
* @param {*} [options] Override http request option.
|
|
10463
10463
|
* @throws {RequiredError}
|
|
10464
10464
|
*/
|
|
10465
|
-
getEntities: async (organizationId: string, graphId: string,
|
|
10465
|
+
getEntities: async (organizationId: string, graphId: string, type: 'node' | 'relationship', ids: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10466
10466
|
// verify required parameter 'organizationId' is not null or undefined
|
|
10467
10467
|
assertParamExists('getEntities', 'organizationId', organizationId)
|
|
10468
10468
|
// verify required parameter 'graphId' is not null or undefined
|
|
10469
10469
|
assertParamExists('getEntities', 'graphId', graphId)
|
|
10470
|
-
// verify required parameter '
|
|
10471
|
-
assertParamExists('getEntities', '
|
|
10470
|
+
// verify required parameter 'type' is not null or undefined
|
|
10471
|
+
assertParamExists('getEntities', 'type', type)
|
|
10472
10472
|
// verify required parameter 'ids' is not null or undefined
|
|
10473
10473
|
assertParamExists('getEntities', 'ids', ids)
|
|
10474
|
-
const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/{
|
|
10474
|
+
const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/entity/{type}`
|
|
10475
10475
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10476
10476
|
.replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)))
|
|
10477
|
-
.replace(`{${"
|
|
10477
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)));
|
|
10478
10478
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10479
10479
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10480
10480
|
let baseOptions;
|
|
@@ -10686,24 +10686,24 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
|
|
|
10686
10686
|
* @summary Update entities in a graph instance
|
|
10687
10687
|
* @param {string} organizationId the Organization identifier
|
|
10688
10688
|
* @param {string} graphId the Graph Identifier
|
|
10689
|
-
* @param {'node' | 'relationship'}
|
|
10689
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
10690
10690
|
* @param {Array<GraphProperties>} graphProperties the entities to update
|
|
10691
10691
|
* @param {*} [options] Override http request option.
|
|
10692
10692
|
* @throws {RequiredError}
|
|
10693
10693
|
*/
|
|
10694
|
-
updateEntities: async (organizationId: string, graphId: string,
|
|
10694
|
+
updateEntities: async (organizationId: string, graphId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10695
10695
|
// verify required parameter 'organizationId' is not null or undefined
|
|
10696
10696
|
assertParamExists('updateEntities', 'organizationId', organizationId)
|
|
10697
10697
|
// verify required parameter 'graphId' is not null or undefined
|
|
10698
10698
|
assertParamExists('updateEntities', 'graphId', graphId)
|
|
10699
|
-
// verify required parameter '
|
|
10700
|
-
assertParamExists('updateEntities', '
|
|
10699
|
+
// verify required parameter 'type' is not null or undefined
|
|
10700
|
+
assertParamExists('updateEntities', 'type', type)
|
|
10701
10701
|
// verify required parameter 'graphProperties' is not null or undefined
|
|
10702
10702
|
assertParamExists('updateEntities', 'graphProperties', graphProperties)
|
|
10703
|
-
const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/{
|
|
10703
|
+
const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/entity/{type}`
|
|
10704
10704
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10705
10705
|
.replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)))
|
|
10706
|
-
.replace(`{${"
|
|
10706
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)));
|
|
10707
10707
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10708
10708
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10709
10709
|
let baseOptions;
|
|
@@ -10792,8 +10792,8 @@ export const TwingraphApiFp = function(configuration?: Configuration) {
|
|
|
10792
10792
|
const localVarAxiosParamCreator = TwingraphApiAxiosParamCreator(configuration)
|
|
10793
10793
|
return {
|
|
10794
10794
|
/**
|
|
10795
|
-
*
|
|
10796
|
-
* @summary
|
|
10795
|
+
* Delete all versions of a graph and his metadatas
|
|
10796
|
+
* @summary Delete all versions of a graph and his metadatas
|
|
10797
10797
|
* @param {string} organizationId the Organization identifier
|
|
10798
10798
|
* @param {string} graphId the Graph Identifier
|
|
10799
10799
|
* @param {*} [options] Override http request option.
|
|
@@ -10835,17 +10835,17 @@ export const TwingraphApiFp = function(configuration?: Configuration) {
|
|
|
10835
10835
|
* @summary Create new entities in a graph instance
|
|
10836
10836
|
* @param {string} organizationId the Organization identifier
|
|
10837
10837
|
* @param {string} graphId the Graph Identifier
|
|
10838
|
-
* @param {'node' | 'relationship'}
|
|
10838
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
10839
10839
|
* @param {Array<GraphProperties>} graphProperties the entities to create
|
|
10840
10840
|
* @param {*} [options] Override http request option.
|
|
10841
10841
|
* @throws {RequiredError}
|
|
10842
10842
|
*/
|
|
10843
|
-
async createEntities(organizationId: string, graphId: string,
|
|
10844
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createEntities(organizationId, graphId,
|
|
10843
|
+
async createEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
10844
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createEntities(organizationId, graphId, type, graphProperties, options);
|
|
10845
10845
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10846
10846
|
},
|
|
10847
10847
|
/**
|
|
10848
|
-
*
|
|
10848
|
+
* To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'Id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * Id those colomns represent * The source of the edge * The target of the edge * The Id of the edge All following columns content are up to you.
|
|
10849
10849
|
* @summary Create a new graph
|
|
10850
10850
|
* @param {string} organizationId the Organization identifier
|
|
10851
10851
|
* @param {string} graphId the Graph Identifier
|
|
@@ -10862,13 +10862,13 @@ export const TwingraphApiFp = function(configuration?: Configuration) {
|
|
|
10862
10862
|
* @summary Delete entities in a graph instance
|
|
10863
10863
|
* @param {string} organizationId the Organization identifier
|
|
10864
10864
|
* @param {string} graphId the Graph Identifier
|
|
10865
|
-
* @param {'node' | 'relationship'}
|
|
10865
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
10866
10866
|
* @param {Array<string>} ids the entities to delete
|
|
10867
10867
|
* @param {*} [options] Override http request option.
|
|
10868
10868
|
* @throws {RequiredError}
|
|
10869
10869
|
*/
|
|
10870
|
-
async deleteEntities(organizationId: string, graphId: string,
|
|
10871
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEntities(organizationId, graphId,
|
|
10870
|
+
async deleteEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', ids: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
10871
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEntities(organizationId, graphId, type, ids, options);
|
|
10872
10872
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10873
10873
|
},
|
|
10874
10874
|
/**
|
|
@@ -10899,13 +10899,13 @@ export const TwingraphApiFp = function(configuration?: Configuration) {
|
|
|
10899
10899
|
* @summary Get entities in a graph instance
|
|
10900
10900
|
* @param {string} organizationId the Organization identifier
|
|
10901
10901
|
* @param {string} graphId the Graph Identifier
|
|
10902
|
-
* @param {'node' | 'relationship'}
|
|
10902
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
10903
10903
|
* @param {Array<string>} ids the entities to get
|
|
10904
10904
|
* @param {*} [options] Override http request option.
|
|
10905
10905
|
* @throws {RequiredError}
|
|
10906
10906
|
*/
|
|
10907
|
-
async getEntities(organizationId: string, graphId: string,
|
|
10908
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getEntities(organizationId, graphId,
|
|
10907
|
+
async getEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', ids: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
10908
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEntities(organizationId, graphId, type, ids, options);
|
|
10909
10909
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10910
10910
|
},
|
|
10911
10911
|
/**
|
|
@@ -10962,13 +10962,13 @@ export const TwingraphApiFp = function(configuration?: Configuration) {
|
|
|
10962
10962
|
* @summary Update entities in a graph instance
|
|
10963
10963
|
* @param {string} organizationId the Organization identifier
|
|
10964
10964
|
* @param {string} graphId the Graph Identifier
|
|
10965
|
-
* @param {'node' | 'relationship'}
|
|
10965
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
10966
10966
|
* @param {Array<GraphProperties>} graphProperties the entities to update
|
|
10967
10967
|
* @param {*} [options] Override http request option.
|
|
10968
10968
|
* @throws {RequiredError}
|
|
10969
10969
|
*/
|
|
10970
|
-
async updateEntities(organizationId: string, graphId: string,
|
|
10971
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateEntities(organizationId, graphId,
|
|
10970
|
+
async updateEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
10971
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateEntities(organizationId, graphId, type, graphProperties, options);
|
|
10972
10972
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10973
10973
|
},
|
|
10974
10974
|
/**
|
|
@@ -10995,8 +10995,8 @@ export const TwingraphApiFactory = function (configuration?: Configuration, base
|
|
|
10995
10995
|
const localVarFp = TwingraphApiFp(configuration)
|
|
10996
10996
|
return {
|
|
10997
10997
|
/**
|
|
10998
|
-
*
|
|
10999
|
-
* @summary
|
|
10998
|
+
* Delete all versions of a graph and his metadatas
|
|
10999
|
+
* @summary Delete all versions of a graph and his metadatas
|
|
11000
11000
|
* @param {string} organizationId the Organization identifier
|
|
11001
11001
|
* @param {string} graphId the Graph Identifier
|
|
11002
11002
|
* @param {*} [options] Override http request option.
|
|
@@ -11035,16 +11035,16 @@ export const TwingraphApiFactory = function (configuration?: Configuration, base
|
|
|
11035
11035
|
* @summary Create new entities in a graph instance
|
|
11036
11036
|
* @param {string} organizationId the Organization identifier
|
|
11037
11037
|
* @param {string} graphId the Graph Identifier
|
|
11038
|
-
* @param {'node' | 'relationship'}
|
|
11038
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
11039
11039
|
* @param {Array<GraphProperties>} graphProperties the entities to create
|
|
11040
11040
|
* @param {*} [options] Override http request option.
|
|
11041
11041
|
* @throws {RequiredError}
|
|
11042
11042
|
*/
|
|
11043
|
-
createEntities(organizationId: string, graphId: string,
|
|
11044
|
-
return localVarFp.createEntities(organizationId, graphId,
|
|
11043
|
+
createEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: any): AxiosPromise<string> {
|
|
11044
|
+
return localVarFp.createEntities(organizationId, graphId, type, graphProperties, options).then((request) => request(axios, basePath));
|
|
11045
11045
|
},
|
|
11046
11046
|
/**
|
|
11047
|
-
*
|
|
11047
|
+
* To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'Id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * Id those colomns represent * The source of the edge * The target of the edge * The Id of the edge All following columns content are up to you.
|
|
11048
11048
|
* @summary Create a new graph
|
|
11049
11049
|
* @param {string} organizationId the Organization identifier
|
|
11050
11050
|
* @param {string} graphId the Graph Identifier
|
|
@@ -11060,13 +11060,13 @@ export const TwingraphApiFactory = function (configuration?: Configuration, base
|
|
|
11060
11060
|
* @summary Delete entities in a graph instance
|
|
11061
11061
|
* @param {string} organizationId the Organization identifier
|
|
11062
11062
|
* @param {string} graphId the Graph Identifier
|
|
11063
|
-
* @param {'node' | 'relationship'}
|
|
11063
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
11064
11064
|
* @param {Array<string>} ids the entities to delete
|
|
11065
11065
|
* @param {*} [options] Override http request option.
|
|
11066
11066
|
* @throws {RequiredError}
|
|
11067
11067
|
*/
|
|
11068
|
-
deleteEntities(organizationId: string, graphId: string,
|
|
11069
|
-
return localVarFp.deleteEntities(organizationId, graphId,
|
|
11068
|
+
deleteEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', ids: Array<string>, options?: any): AxiosPromise<void> {
|
|
11069
|
+
return localVarFp.deleteEntities(organizationId, graphId, type, ids, options).then((request) => request(axios, basePath));
|
|
11070
11070
|
},
|
|
11071
11071
|
/**
|
|
11072
11072
|
* Download a graph compressed in a zip file
|
|
@@ -11094,13 +11094,13 @@ export const TwingraphApiFactory = function (configuration?: Configuration, base
|
|
|
11094
11094
|
* @summary Get entities in a graph instance
|
|
11095
11095
|
* @param {string} organizationId the Organization identifier
|
|
11096
11096
|
* @param {string} graphId the Graph Identifier
|
|
11097
|
-
* @param {'node' | 'relationship'}
|
|
11097
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
11098
11098
|
* @param {Array<string>} ids the entities to get
|
|
11099
11099
|
* @param {*} [options] Override http request option.
|
|
11100
11100
|
* @throws {RequiredError}
|
|
11101
11101
|
*/
|
|
11102
|
-
getEntities(organizationId: string, graphId: string,
|
|
11103
|
-
return localVarFp.getEntities(organizationId, graphId,
|
|
11102
|
+
getEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', ids: Array<string>, options?: any): AxiosPromise<string> {
|
|
11103
|
+
return localVarFp.getEntities(organizationId, graphId, type, ids, options).then((request) => request(axios, basePath));
|
|
11104
11104
|
},
|
|
11105
11105
|
/**
|
|
11106
11106
|
* Return the metaData of the specified graph
|
|
@@ -11152,13 +11152,13 @@ export const TwingraphApiFactory = function (configuration?: Configuration, base
|
|
|
11152
11152
|
* @summary Update entities in a graph instance
|
|
11153
11153
|
* @param {string} organizationId the Organization identifier
|
|
11154
11154
|
* @param {string} graphId the Graph Identifier
|
|
11155
|
-
* @param {'node' | 'relationship'}
|
|
11155
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
11156
11156
|
* @param {Array<GraphProperties>} graphProperties the entities to update
|
|
11157
11157
|
* @param {*} [options] Override http request option.
|
|
11158
11158
|
* @throws {RequiredError}
|
|
11159
11159
|
*/
|
|
11160
|
-
updateEntities(organizationId: string, graphId: string,
|
|
11161
|
-
return localVarFp.updateEntities(organizationId, graphId,
|
|
11160
|
+
updateEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: any): AxiosPromise<string> {
|
|
11161
|
+
return localVarFp.updateEntities(organizationId, graphId, type, graphProperties, options).then((request) => request(axios, basePath));
|
|
11162
11162
|
},
|
|
11163
11163
|
/**
|
|
11164
11164
|
* Update the metaData of the specified graph
|
|
@@ -11183,8 +11183,8 @@ export const TwingraphApiFactory = function (configuration?: Configuration, base
|
|
|
11183
11183
|
*/
|
|
11184
11184
|
export class TwingraphApi extends BaseAPI {
|
|
11185
11185
|
/**
|
|
11186
|
-
*
|
|
11187
|
-
* @summary
|
|
11186
|
+
* Delete all versions of a graph and his metadatas
|
|
11187
|
+
* @summary Delete all versions of a graph and his metadatas
|
|
11188
11188
|
* @param {string} organizationId the Organization identifier
|
|
11189
11189
|
* @param {string} graphId the Graph Identifier
|
|
11190
11190
|
* @param {*} [options] Override http request option.
|
|
@@ -11229,18 +11229,18 @@ export class TwingraphApi extends BaseAPI {
|
|
|
11229
11229
|
* @summary Create new entities in a graph instance
|
|
11230
11230
|
* @param {string} organizationId the Organization identifier
|
|
11231
11231
|
* @param {string} graphId the Graph Identifier
|
|
11232
|
-
* @param {'node' | 'relationship'}
|
|
11232
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
11233
11233
|
* @param {Array<GraphProperties>} graphProperties the entities to create
|
|
11234
11234
|
* @param {*} [options] Override http request option.
|
|
11235
11235
|
* @throws {RequiredError}
|
|
11236
11236
|
* @memberof TwingraphApi
|
|
11237
11237
|
*/
|
|
11238
|
-
public createEntities(organizationId: string, graphId: string,
|
|
11239
|
-
return TwingraphApiFp(this.configuration).createEntities(organizationId, graphId,
|
|
11238
|
+
public createEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: AxiosRequestConfig) {
|
|
11239
|
+
return TwingraphApiFp(this.configuration).createEntities(organizationId, graphId, type, graphProperties, options).then((request) => request(this.axios, this.basePath));
|
|
11240
11240
|
}
|
|
11241
11241
|
|
|
11242
11242
|
/**
|
|
11243
|
-
*
|
|
11243
|
+
* To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'Id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * Id those colomns represent * The source of the edge * The target of the edge * The Id of the edge All following columns content are up to you.
|
|
11244
11244
|
* @summary Create a new graph
|
|
11245
11245
|
* @param {string} organizationId the Organization identifier
|
|
11246
11246
|
* @param {string} graphId the Graph Identifier
|
|
@@ -11258,14 +11258,14 @@ export class TwingraphApi extends BaseAPI {
|
|
|
11258
11258
|
* @summary Delete entities in a graph instance
|
|
11259
11259
|
* @param {string} organizationId the Organization identifier
|
|
11260
11260
|
* @param {string} graphId the Graph Identifier
|
|
11261
|
-
* @param {'node' | 'relationship'}
|
|
11261
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
11262
11262
|
* @param {Array<string>} ids the entities to delete
|
|
11263
11263
|
* @param {*} [options] Override http request option.
|
|
11264
11264
|
* @throws {RequiredError}
|
|
11265
11265
|
* @memberof TwingraphApi
|
|
11266
11266
|
*/
|
|
11267
|
-
public deleteEntities(organizationId: string, graphId: string,
|
|
11268
|
-
return TwingraphApiFp(this.configuration).deleteEntities(organizationId, graphId,
|
|
11267
|
+
public deleteEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', ids: Array<string>, options?: AxiosRequestConfig) {
|
|
11268
|
+
return TwingraphApiFp(this.configuration).deleteEntities(organizationId, graphId, type, ids, options).then((request) => request(this.axios, this.basePath));
|
|
11269
11269
|
}
|
|
11270
11270
|
|
|
11271
11271
|
/**
|
|
@@ -11298,14 +11298,14 @@ export class TwingraphApi extends BaseAPI {
|
|
|
11298
11298
|
* @summary Get entities in a graph instance
|
|
11299
11299
|
* @param {string} organizationId the Organization identifier
|
|
11300
11300
|
* @param {string} graphId the Graph Identifier
|
|
11301
|
-
* @param {'node' | 'relationship'}
|
|
11301
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
11302
11302
|
* @param {Array<string>} ids the entities to get
|
|
11303
11303
|
* @param {*} [options] Override http request option.
|
|
11304
11304
|
* @throws {RequiredError}
|
|
11305
11305
|
* @memberof TwingraphApi
|
|
11306
11306
|
*/
|
|
11307
|
-
public getEntities(organizationId: string, graphId: string,
|
|
11308
|
-
return TwingraphApiFp(this.configuration).getEntities(organizationId, graphId,
|
|
11307
|
+
public getEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', ids: Array<string>, options?: AxiosRequestConfig) {
|
|
11308
|
+
return TwingraphApiFp(this.configuration).getEntities(organizationId, graphId, type, ids, options).then((request) => request(this.axios, this.basePath));
|
|
11309
11309
|
}
|
|
11310
11310
|
|
|
11311
11311
|
/**
|
|
@@ -11366,14 +11366,14 @@ export class TwingraphApi extends BaseAPI {
|
|
|
11366
11366
|
* @summary Update entities in a graph instance
|
|
11367
11367
|
* @param {string} organizationId the Organization identifier
|
|
11368
11368
|
* @param {string} graphId the Graph Identifier
|
|
11369
|
-
* @param {'node' | 'relationship'}
|
|
11369
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
11370
11370
|
* @param {Array<GraphProperties>} graphProperties the entities to update
|
|
11371
11371
|
* @param {*} [options] Override http request option.
|
|
11372
11372
|
* @throws {RequiredError}
|
|
11373
11373
|
* @memberof TwingraphApi
|
|
11374
11374
|
*/
|
|
11375
|
-
public updateEntities(organizationId: string, graphId: string,
|
|
11376
|
-
return TwingraphApiFp(this.configuration).updateEntities(organizationId, graphId,
|
|
11375
|
+
public updateEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: AxiosRequestConfig) {
|
|
11376
|
+
return TwingraphApiFp(this.configuration).updateEntities(organizationId, graphId, type, graphProperties, options).then((request) => request(this.axios, this.basePath));
|
|
11377
11377
|
}
|
|
11378
11378
|
|
|
11379
11379
|
/**
|
package/base.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Cosmo Tech Platform API
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.4.
|
|
7
|
+
* The version of the OpenAPI document: 2.4.5-private
|
|
8
8
|
* Contact: platform@cosmotech.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Cosmo Tech Platform API
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.4.
|
|
7
|
+
* The version of the OpenAPI document: 2.4.5-private
|
|
8
8
|
* Contact: platform@cosmotech.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Cosmo Tech Platform API
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.4.
|
|
7
|
+
* The version of the OpenAPI document: 2.4.5-private
|
|
8
8
|
* Contact: platform@cosmotech.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|