@cosmotech/api-ts 3.0.14-dev → 3.0.15-dev

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @cosmotech/api-ts@3.0.14-dev
1
+ ## @cosmotech/api-ts@3.0.16-SNAPSHOT
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@3.0.14-dev --save
39
+ npm install @cosmotech/api-ts@3.0.16-SNAPSHOT --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: 3.0.14-dev
7
+ * The version of the OpenAPI document: 3.0.16-SNAPSHOT
8
8
  * Contact: platform@cosmotech.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -324,11 +324,17 @@ export interface Dataset {
324
324
  */
325
325
  'source'?: SourceInfo;
326
326
  /**
327
- * the Dataset status
327
+ * the Dataset ingestion status
328
328
  * @type {string}
329
329
  * @memberof Dataset
330
330
  */
331
- 'status'?: DatasetStatusEnum;
331
+ 'ingestionStatus'?: DatasetIngestionStatusEnum;
332
+ /**
333
+ * the twincache data status
334
+ * @type {string}
335
+ * @memberof Dataset
336
+ */
337
+ 'twincacheStatus'?: DatasetTwincacheStatusEnum;
332
338
  /**
333
339
  * the list of queries
334
340
  * @type {Array<string>}
@@ -373,14 +379,20 @@ export interface Dataset {
373
379
  'security'?: DatasetSecurity;
374
380
  }
375
381
 
376
- export const DatasetStatusEnum = {
377
- Draft: 'DRAFT',
382
+ export const DatasetIngestionStatusEnum = {
383
+ None: 'NONE',
378
384
  Pending: 'PENDING',
379
385
  Error: 'ERROR',
380
- Ready: 'READY'
386
+ Success: 'SUCCESS'
387
+ } as const;
388
+
389
+ export type DatasetIngestionStatusEnum = typeof DatasetIngestionStatusEnum[keyof typeof DatasetIngestionStatusEnum];
390
+ export const DatasetTwincacheStatusEnum = {
391
+ Empty: 'EMPTY',
392
+ Full: 'FULL'
381
393
  } as const;
382
394
 
383
- export type DatasetStatusEnum = typeof DatasetStatusEnum[keyof typeof DatasetStatusEnum];
395
+ export type DatasetTwincacheStatusEnum = typeof DatasetTwincacheStatusEnum[keyof typeof DatasetTwincacheStatusEnum];
384
396
 
385
397
  /**
386
398
  * a Dataset access control item
@@ -620,6 +632,44 @@ export interface DeleteHistoricalData {
620
632
  */
621
633
  'timeOut'?: number;
622
634
  }
635
+ /**
636
+ *
637
+ * @export
638
+ * @interface FileUploadMetadata
639
+ */
640
+ export interface FileUploadMetadata {
641
+ /**
642
+ *
643
+ * @type {string}
644
+ * @memberof FileUploadMetadata
645
+ */
646
+ 'name'?: string;
647
+ /**
648
+ *
649
+ * @type {number}
650
+ * @memberof FileUploadMetadata
651
+ */
652
+ 'size'?: number;
653
+ }
654
+ /**
655
+ * files read on upload
656
+ * @export
657
+ * @interface FileUploadValidation
658
+ */
659
+ export interface FileUploadValidation {
660
+ /**
661
+ * list of filename found on nodes folder
662
+ * @type {Array<FileUploadMetadata>}
663
+ * @memberof FileUploadValidation
664
+ */
665
+ 'nodes'?: Array<FileUploadMetadata>;
666
+ /**
667
+ * list of filename found on edges folder
668
+ * @type {Array<FileUploadMetadata>}
669
+ * @memberof FileUploadValidation
670
+ */
671
+ 'edges'?: Array<FileUploadMetadata>;
672
+ }
623
673
  /**
624
674
  *
625
675
  * @export
@@ -3935,7 +3985,7 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3935
3985
  };
3936
3986
  },
3937
3987
  /**
3938
- * Get the status of the import workflow lauch on the dataset\'s refresh.
3988
+ * Get the status of the import workflow lauch on the dataset\'s refresh. This endpoint needs to be called to update a dataset IngestionStatus or TwincacheStatus
3939
3989
  * @summary Get the dataset\'s refresh job status
3940
3990
  * @param {string} organizationId the Organization identifier
3941
3991
  * @param {string} datasetId the dataset identifier
@@ -4150,6 +4200,48 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
4150
4200
 
4151
4201
 
4152
4202
 
4203
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4204
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4205
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4206
+
4207
+ return {
4208
+ url: toPathString(localVarUrlObj),
4209
+ options: localVarRequestOptions,
4210
+ };
4211
+ },
4212
+ /**
4213
+ * Rollback the twingraph on a dataset after a failed refresh
4214
+ * @summary Rollback the dataset after a failed refresh
4215
+ * @param {string} organizationId the Organization identifier
4216
+ * @param {string} datasetId the Dataset identifier
4217
+ * @param {*} [options] Override http request option.
4218
+ * @throws {RequiredError}
4219
+ */
4220
+ rollbackRefresh: async (organizationId: string, datasetId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4221
+ // verify required parameter 'organizationId' is not null or undefined
4222
+ assertParamExists('rollbackRefresh', 'organizationId', organizationId)
4223
+ // verify required parameter 'datasetId' is not null or undefined
4224
+ assertParamExists('rollbackRefresh', 'datasetId', datasetId)
4225
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/refresh/rollback`
4226
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
4227
+ .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
4228
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4229
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4230
+ let baseOptions;
4231
+ if (configuration) {
4232
+ baseOptions = configuration.baseOptions;
4233
+ }
4234
+
4235
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4236
+ const localVarHeaderParameter = {} as any;
4237
+ const localVarQueryParameter = {} as any;
4238
+
4239
+ // authentication oAuth2AuthCode required
4240
+ // oauth required
4241
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
4242
+
4243
+
4244
+
4153
4245
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4154
4246
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4155
4247
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -4800,7 +4892,7 @@ export const DatasetApiFp = function(configuration?: Configuration) {
4800
4892
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4801
4893
  },
4802
4894
  /**
4803
- * Get the status of the import workflow lauch on the dataset\'s refresh.
4895
+ * Get the status of the import workflow lauch on the dataset\'s refresh. This endpoint needs to be called to update a dataset IngestionStatus or TwincacheStatus
4804
4896
  * @summary Get the dataset\'s refresh job status
4805
4897
  * @param {string} organizationId the Organization identifier
4806
4898
  * @param {string} datasetId the dataset identifier
@@ -4862,6 +4954,18 @@ export const DatasetApiFp = function(configuration?: Configuration) {
4862
4954
  const localVarAxiosArgs = await localVarAxiosParamCreator.removeDatasetAccessControl(organizationId, datasetId, identityId, options);
4863
4955
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4864
4956
  },
4957
+ /**
4958
+ * Rollback the twingraph on a dataset after a failed refresh
4959
+ * @summary Rollback the dataset after a failed refresh
4960
+ * @param {string} organizationId the Organization identifier
4961
+ * @param {string} datasetId the Dataset identifier
4962
+ * @param {*} [options] Override http request option.
4963
+ * @throws {RequiredError}
4964
+ */
4965
+ async rollbackRefresh(organizationId: string, datasetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
4966
+ const localVarAxiosArgs = await localVarAxiosParamCreator.rollbackRefresh(organizationId, datasetId, options);
4967
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4968
+ },
4865
4969
  /**
4866
4970
  *
4867
4971
  * @summary Search Datasets by tags
@@ -4979,7 +5083,7 @@ export const DatasetApiFp = function(configuration?: Configuration) {
4979
5083
  * @param {*} [options] Override http request option.
4980
5084
  * @throws {RequiredError}
4981
5085
  */
4982
- async uploadTwingraph(organizationId: string, datasetId: string, body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
5086
+ async uploadTwingraph(organizationId: string, datasetId: string, body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileUploadValidation>> {
4983
5087
  const localVarAxiosArgs = await localVarAxiosParamCreator.uploadTwingraph(organizationId, datasetId, body, options);
4984
5088
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4985
5089
  },
@@ -5157,7 +5261,7 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
5157
5261
  return localVarFp.getDatasetSecurityUsers(organizationId, datasetId, options).then((request) => request(axios, basePath));
5158
5262
  },
5159
5263
  /**
5160
- * Get the status of the import workflow lauch on the dataset\'s refresh.
5264
+ * Get the status of the import workflow lauch on the dataset\'s refresh. This endpoint needs to be called to update a dataset IngestionStatus or TwincacheStatus
5161
5265
  * @summary Get the dataset\'s refresh job status
5162
5266
  * @param {string} organizationId the Organization identifier
5163
5267
  * @param {string} datasetId the dataset identifier
@@ -5214,6 +5318,17 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
5214
5318
  removeDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, options?: any): AxiosPromise<void> {
5215
5319
  return localVarFp.removeDatasetAccessControl(organizationId, datasetId, identityId, options).then((request) => request(axios, basePath));
5216
5320
  },
5321
+ /**
5322
+ * Rollback the twingraph on a dataset after a failed refresh
5323
+ * @summary Rollback the dataset after a failed refresh
5324
+ * @param {string} organizationId the Organization identifier
5325
+ * @param {string} datasetId the Dataset identifier
5326
+ * @param {*} [options] Override http request option.
5327
+ * @throws {RequiredError}
5328
+ */
5329
+ rollbackRefresh(organizationId: string, datasetId: string, options?: any): AxiosPromise<string> {
5330
+ return localVarFp.rollbackRefresh(organizationId, datasetId, options).then((request) => request(axios, basePath));
5331
+ },
5217
5332
  /**
5218
5333
  *
5219
5334
  * @summary Search Datasets by tags
@@ -5323,7 +5438,7 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
5323
5438
  * @param {*} [options] Override http request option.
5324
5439
  * @throws {RequiredError}
5325
5440
  */
5326
- uploadTwingraph(organizationId: string, datasetId: string, body: any, options?: any): AxiosPromise<void> {
5441
+ uploadTwingraph(organizationId: string, datasetId: string, body: any, options?: any): AxiosPromise<FileUploadValidation> {
5327
5442
  return localVarFp.uploadTwingraph(organizationId, datasetId, body, options).then((request) => request(axios, basePath));
5328
5443
  },
5329
5444
  };
@@ -5528,7 +5643,7 @@ export class DatasetApi extends BaseAPI {
5528
5643
  }
5529
5644
 
5530
5645
  /**
5531
- * Get the status of the import workflow lauch on the dataset\'s refresh.
5646
+ * Get the status of the import workflow lauch on the dataset\'s refresh. This endpoint needs to be called to update a dataset IngestionStatus or TwincacheStatus
5532
5647
  * @summary Get the dataset\'s refresh job status
5533
5648
  * @param {string} organizationId the Organization identifier
5534
5649
  * @param {string} datasetId the dataset identifier
@@ -5595,6 +5710,19 @@ export class DatasetApi extends BaseAPI {
5595
5710
  return DatasetApiFp(this.configuration).removeDatasetAccessControl(organizationId, datasetId, identityId, options).then((request) => request(this.axios, this.basePath));
5596
5711
  }
5597
5712
 
5713
+ /**
5714
+ * Rollback the twingraph on a dataset after a failed refresh
5715
+ * @summary Rollback the dataset after a failed refresh
5716
+ * @param {string} organizationId the Organization identifier
5717
+ * @param {string} datasetId the Dataset identifier
5718
+ * @param {*} [options] Override http request option.
5719
+ * @throws {RequiredError}
5720
+ * @memberof DatasetApi
5721
+ */
5722
+ public rollbackRefresh(organizationId: string, datasetId: string, options?: AxiosRequestConfig) {
5723
+ return DatasetApiFp(this.configuration).rollbackRefresh(organizationId, datasetId, options).then((request) => request(this.axios, this.basePath));
5724
+ }
5725
+
5598
5726
  /**
5599
5727
  *
5600
5728
  * @summary Search Datasets by tags
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: 3.0.14-dev
7
+ * The version of the OpenAPI document: 3.0.16-SNAPSHOT
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: 3.0.14-dev
7
+ * The version of the OpenAPI document: 3.0.16-SNAPSHOT
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: 3.0.14-dev
7
+ * The version of the OpenAPI document: 3.0.16-SNAPSHOT
8
8
  * Contact: platform@cosmotech.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Cosmo Tech Platform API
3
3
  * Cosmo Tech Platform API
4
4
  *
5
- * The version of the OpenAPI document: 3.0.14-dev
5
+ * The version of the OpenAPI document: 3.0.16-SNAPSHOT
6
6
  * Contact: platform@cosmotech.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -314,11 +314,17 @@ export interface Dataset {
314
314
  */
315
315
  'source'?: SourceInfo;
316
316
  /**
317
- * the Dataset status
317
+ * the Dataset ingestion status
318
318
  * @type {string}
319
319
  * @memberof Dataset
320
320
  */
321
- 'status'?: DatasetStatusEnum;
321
+ 'ingestionStatus'?: DatasetIngestionStatusEnum;
322
+ /**
323
+ * the twincache data status
324
+ * @type {string}
325
+ * @memberof Dataset
326
+ */
327
+ 'twincacheStatus'?: DatasetTwincacheStatusEnum;
322
328
  /**
323
329
  * the list of queries
324
330
  * @type {Array<string>}
@@ -362,13 +368,18 @@ export interface Dataset {
362
368
  */
363
369
  'security'?: DatasetSecurity;
364
370
  }
365
- export declare const DatasetStatusEnum: {
366
- readonly Draft: "DRAFT";
371
+ export declare const DatasetIngestionStatusEnum: {
372
+ readonly None: "NONE";
367
373
  readonly Pending: "PENDING";
368
374
  readonly Error: "ERROR";
369
- readonly Ready: "READY";
375
+ readonly Success: "SUCCESS";
370
376
  };
371
- export declare type DatasetStatusEnum = typeof DatasetStatusEnum[keyof typeof DatasetStatusEnum];
377
+ export declare type DatasetIngestionStatusEnum = typeof DatasetIngestionStatusEnum[keyof typeof DatasetIngestionStatusEnum];
378
+ export declare const DatasetTwincacheStatusEnum: {
379
+ readonly Empty: "EMPTY";
380
+ readonly Full: "FULL";
381
+ };
382
+ export declare type DatasetTwincacheStatusEnum = typeof DatasetTwincacheStatusEnum[keyof typeof DatasetTwincacheStatusEnum];
372
383
  /**
373
384
  * a Dataset access control item
374
385
  * @export
@@ -607,6 +618,44 @@ export interface DeleteHistoricalData {
607
618
  */
608
619
  'timeOut'?: number;
609
620
  }
621
+ /**
622
+ *
623
+ * @export
624
+ * @interface FileUploadMetadata
625
+ */
626
+ export interface FileUploadMetadata {
627
+ /**
628
+ *
629
+ * @type {string}
630
+ * @memberof FileUploadMetadata
631
+ */
632
+ 'name'?: string;
633
+ /**
634
+ *
635
+ * @type {number}
636
+ * @memberof FileUploadMetadata
637
+ */
638
+ 'size'?: number;
639
+ }
640
+ /**
641
+ * files read on upload
642
+ * @export
643
+ * @interface FileUploadValidation
644
+ */
645
+ export interface FileUploadValidation {
646
+ /**
647
+ * list of filename found on nodes folder
648
+ * @type {Array<FileUploadMetadata>}
649
+ * @memberof FileUploadValidation
650
+ */
651
+ 'nodes'?: Array<FileUploadMetadata>;
652
+ /**
653
+ * list of filename found on edges folder
654
+ * @type {Array<FileUploadMetadata>}
655
+ * @memberof FileUploadValidation
656
+ */
657
+ 'edges'?: Array<FileUploadMetadata>;
658
+ }
610
659
  /**
611
660
  *
612
661
  * @export
@@ -3205,7 +3254,7 @@ export declare const DatasetApiAxiosParamCreator: (configuration?: Configuration
3205
3254
  */
3206
3255
  getDatasetSecurityUsers: (organizationId: string, datasetId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3207
3256
  /**
3208
- * Get the status of the import workflow lauch on the dataset\'s refresh.
3257
+ * Get the status of the import workflow lauch on the dataset\'s refresh. This endpoint needs to be called to update a dataset IngestionStatus or TwincacheStatus
3209
3258
  * @summary Get the dataset\'s refresh job status
3210
3259
  * @param {string} organizationId the Organization identifier
3211
3260
  * @param {string} datasetId the dataset identifier
@@ -3252,6 +3301,15 @@ export declare const DatasetApiAxiosParamCreator: (configuration?: Configuration
3252
3301
  * @throws {RequiredError}
3253
3302
  */
3254
3303
  removeDatasetAccessControl: (organizationId: string, datasetId: string, identityId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3304
+ /**
3305
+ * Rollback the twingraph on a dataset after a failed refresh
3306
+ * @summary Rollback the dataset after a failed refresh
3307
+ * @param {string} organizationId the Organization identifier
3308
+ * @param {string} datasetId the Dataset identifier
3309
+ * @param {*} [options] Override http request option.
3310
+ * @throws {RequiredError}
3311
+ */
3312
+ rollbackRefresh: (organizationId: string, datasetId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3255
3313
  /**
3256
3314
  *
3257
3315
  * @summary Search Datasets by tags
@@ -3488,7 +3546,7 @@ export declare const DatasetApiFp: (configuration?: Configuration) => {
3488
3546
  */
3489
3547
  getDatasetSecurityUsers(organizationId: string, datasetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
3490
3548
  /**
3491
- * Get the status of the import workflow lauch on the dataset\'s refresh.
3549
+ * Get the status of the import workflow lauch on the dataset\'s refresh. This endpoint needs to be called to update a dataset IngestionStatus or TwincacheStatus
3492
3550
  * @summary Get the dataset\'s refresh job status
3493
3551
  * @param {string} organizationId the Organization identifier
3494
3552
  * @param {string} datasetId the dataset identifier
@@ -3535,6 +3593,15 @@ export declare const DatasetApiFp: (configuration?: Configuration) => {
3535
3593
  * @throws {RequiredError}
3536
3594
  */
3537
3595
  removeDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3596
+ /**
3597
+ * Rollback the twingraph on a dataset after a failed refresh
3598
+ * @summary Rollback the dataset after a failed refresh
3599
+ * @param {string} organizationId the Organization identifier
3600
+ * @param {string} datasetId the Dataset identifier
3601
+ * @param {*} [options] Override http request option.
3602
+ * @throws {RequiredError}
3603
+ */
3604
+ rollbackRefresh(organizationId: string, datasetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
3538
3605
  /**
3539
3606
  *
3540
3607
  * @summary Search Datasets by tags
@@ -3628,7 +3695,7 @@ export declare const DatasetApiFp: (configuration?: Configuration) => {
3628
3695
  * @param {*} [options] Override http request option.
3629
3696
  * @throws {RequiredError}
3630
3697
  */
3631
- uploadTwingraph(organizationId: string, datasetId: string, body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3698
+ uploadTwingraph(organizationId: string, datasetId: string, body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileUploadValidation>>;
3632
3699
  };
3633
3700
  /**
3634
3701
  * DatasetApi - factory interface
@@ -3771,7 +3838,7 @@ export declare const DatasetApiFactory: (configuration?: Configuration, basePath
3771
3838
  */
3772
3839
  getDatasetSecurityUsers(organizationId: string, datasetId: string, options?: any): AxiosPromise<Array<string>>;
3773
3840
  /**
3774
- * Get the status of the import workflow lauch on the dataset\'s refresh.
3841
+ * Get the status of the import workflow lauch on the dataset\'s refresh. This endpoint needs to be called to update a dataset IngestionStatus or TwincacheStatus
3775
3842
  * @summary Get the dataset\'s refresh job status
3776
3843
  * @param {string} organizationId the Organization identifier
3777
3844
  * @param {string} datasetId the dataset identifier
@@ -3818,6 +3885,15 @@ export declare const DatasetApiFactory: (configuration?: Configuration, basePath
3818
3885
  * @throws {RequiredError}
3819
3886
  */
3820
3887
  removeDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, options?: any): AxiosPromise<void>;
3888
+ /**
3889
+ * Rollback the twingraph on a dataset after a failed refresh
3890
+ * @summary Rollback the dataset after a failed refresh
3891
+ * @param {string} organizationId the Organization identifier
3892
+ * @param {string} datasetId the Dataset identifier
3893
+ * @param {*} [options] Override http request option.
3894
+ * @throws {RequiredError}
3895
+ */
3896
+ rollbackRefresh(organizationId: string, datasetId: string, options?: any): AxiosPromise<string>;
3821
3897
  /**
3822
3898
  *
3823
3899
  * @summary Search Datasets by tags
@@ -3911,7 +3987,7 @@ export declare const DatasetApiFactory: (configuration?: Configuration, basePath
3911
3987
  * @param {*} [options] Override http request option.
3912
3988
  * @throws {RequiredError}
3913
3989
  */
3914
- uploadTwingraph(organizationId: string, datasetId: string, body: any, options?: any): AxiosPromise<void>;
3990
+ uploadTwingraph(organizationId: string, datasetId: string, body: any, options?: any): AxiosPromise<FileUploadValidation>;
3915
3991
  };
3916
3992
  /**
3917
3993
  * DatasetApi - object-oriented interface
@@ -4070,7 +4146,7 @@ export declare class DatasetApi extends BaseAPI {
4070
4146
  */
4071
4147
  getDatasetSecurityUsers(organizationId: string, datasetId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string[]>>;
4072
4148
  /**
4073
- * Get the status of the import workflow lauch on the dataset\'s refresh.
4149
+ * Get the status of the import workflow lauch on the dataset\'s refresh. This endpoint needs to be called to update a dataset IngestionStatus or TwincacheStatus
4074
4150
  * @summary Get the dataset\'s refresh job status
4075
4151
  * @param {string} organizationId the Organization identifier
4076
4152
  * @param {string} datasetId the dataset identifier
@@ -4122,6 +4198,16 @@ export declare class DatasetApi extends BaseAPI {
4122
4198
  * @memberof DatasetApi
4123
4199
  */
4124
4200
  removeDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
4201
+ /**
4202
+ * Rollback the twingraph on a dataset after a failed refresh
4203
+ * @summary Rollback the dataset after a failed refresh
4204
+ * @param {string} organizationId the Organization identifier
4205
+ * @param {string} datasetId the Dataset identifier
4206
+ * @param {*} [options] Override http request option.
4207
+ * @throws {RequiredError}
4208
+ * @memberof DatasetApi
4209
+ */
4210
+ rollbackRefresh(organizationId: string, datasetId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string>>;
4125
4211
  /**
4126
4212
  *
4127
4213
  * @summary Search Datasets by tags
@@ -4224,7 +4310,7 @@ export declare class DatasetApi extends BaseAPI {
4224
4310
  * @throws {RequiredError}
4225
4311
  * @memberof DatasetApi
4226
4312
  */
4227
- uploadTwingraph(organizationId: string, datasetId: string, body: any, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
4313
+ uploadTwingraph(organizationId: string, datasetId: string, body: any, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<FileUploadValidation>>;
4228
4314
  }
4229
4315
  /**
4230
4316
  * OrganizationApi - axios parameter creator
@@ -5775,7 +5861,7 @@ export declare class ScenarioApi extends BaseAPI {
5775
5861
  * @throws {RequiredError}
5776
5862
  * @memberof ScenarioApi
5777
5863
  */
5778
- getScenarioValidationStatusById(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<"Draft" | "Unknown" | "Rejected" | "Validated">>;
5864
+ getScenarioValidationStatusById(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<"Unknown" | "Draft" | "Rejected" | "Validated">>;
5779
5865
  /**
5780
5866
  *
5781
5867
  * @summary Get the Scenarios Tree
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Cosmo Tech Platform API
6
6
  * Cosmo Tech Platform API
7
7
  *
8
- * The version of the OpenAPI document: 3.0.14-dev
8
+ * The version of the OpenAPI document: 3.0.16-SNAPSHOT
9
9
  * Contact: platform@cosmotech.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -73,7 +73,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
73
73
  }
74
74
  };
75
75
  Object.defineProperty(exports, "__esModule", { value: true });
76
- exports.WorkspaceApi = exports.WorkspaceApiFactory = exports.WorkspaceApiFp = exports.WorkspaceApiAxiosParamCreator = exports.ValidatorApi = exports.ValidatorApiFactory = exports.ValidatorApiFp = exports.ValidatorApiAxiosParamCreator = exports.TwingraphApi = exports.TwingraphApiFactory = exports.TwingraphApiFp = exports.TwingraphApiAxiosParamCreator = exports.SolutionApi = exports.SolutionApiFactory = exports.SolutionApiFp = exports.SolutionApiAxiosParamCreator = exports.ScenariorunresultApi = exports.ScenariorunresultApiFactory = exports.ScenariorunresultApiFp = exports.ScenariorunresultApiAxiosParamCreator = exports.ScenariorunApi = exports.ScenariorunApiFactory = exports.ScenariorunApiFp = exports.ScenariorunApiAxiosParamCreator = exports.ScenarioApi = exports.ScenarioApiFactory = exports.ScenarioApiFp = exports.ScenarioApiAxiosParamCreator = exports.OrganizationApi = exports.OrganizationApiFactory = exports.OrganizationApiFp = exports.OrganizationApiAxiosParamCreator = exports.DatasetApi = exports.DatasetApiFactory = exports.DatasetApiFp = exports.DatasetApiAxiosParamCreator = exports.ConnectorApi = exports.ConnectorApiFactory = exports.ConnectorApiFp = exports.ConnectorApiAxiosParamCreator = exports.ValidatorRunStateEnum = exports.ScenarioValidationStatus = exports.ScenarioRunState = exports.ScenarioRunSearchStateEnum = exports.ScenarioJobState = exports.RunTemplateStepSource = exports.RunTemplateOrchestrator = exports.RunTemplateHandlerId = exports.DatasetSourceType = exports.DatasetStatusEnum = exports.ConnectorIoTypesEnum = void 0;
76
+ exports.WorkspaceApi = exports.WorkspaceApiFactory = exports.WorkspaceApiFp = exports.WorkspaceApiAxiosParamCreator = exports.ValidatorApi = exports.ValidatorApiFactory = exports.ValidatorApiFp = exports.ValidatorApiAxiosParamCreator = exports.TwingraphApi = exports.TwingraphApiFactory = exports.TwingraphApiFp = exports.TwingraphApiAxiosParamCreator = exports.SolutionApi = exports.SolutionApiFactory = exports.SolutionApiFp = exports.SolutionApiAxiosParamCreator = exports.ScenariorunresultApi = exports.ScenariorunresultApiFactory = exports.ScenariorunresultApiFp = exports.ScenariorunresultApiAxiosParamCreator = exports.ScenariorunApi = exports.ScenariorunApiFactory = exports.ScenariorunApiFp = exports.ScenariorunApiAxiosParamCreator = exports.ScenarioApi = exports.ScenarioApiFactory = exports.ScenarioApiFp = exports.ScenarioApiAxiosParamCreator = exports.OrganizationApi = exports.OrganizationApiFactory = exports.OrganizationApiFp = exports.OrganizationApiAxiosParamCreator = exports.DatasetApi = exports.DatasetApiFactory = exports.DatasetApiFp = exports.DatasetApiAxiosParamCreator = exports.ConnectorApi = exports.ConnectorApiFactory = exports.ConnectorApiFp = exports.ConnectorApiAxiosParamCreator = exports.ValidatorRunStateEnum = exports.ScenarioValidationStatus = exports.ScenarioRunState = exports.ScenarioRunSearchStateEnum = exports.ScenarioJobState = exports.RunTemplateStepSource = exports.RunTemplateOrchestrator = exports.RunTemplateHandlerId = exports.DatasetSourceType = exports.DatasetTwincacheStatusEnum = exports.DatasetIngestionStatusEnum = exports.ConnectorIoTypesEnum = void 0;
77
77
  var axios_1 = require("axios");
78
78
  // Some imports not used depending on template conditions
79
79
  // @ts-ignore
@@ -84,11 +84,15 @@ exports.ConnectorIoTypesEnum = {
84
84
  Read: 'read',
85
85
  Write: 'write'
86
86
  };
87
- exports.DatasetStatusEnum = {
88
- Draft: 'DRAFT',
87
+ exports.DatasetIngestionStatusEnum = {
88
+ None: 'NONE',
89
89
  Pending: 'PENDING',
90
90
  Error: 'ERROR',
91
- Ready: 'READY'
91
+ Success: 'SUCCESS'
92
+ };
93
+ exports.DatasetTwincacheStatusEnum = {
94
+ Empty: 'EMPTY',
95
+ Full: 'FULL'
92
96
  };
93
97
  /**
94
98
  * the Dataset Source Type
@@ -1373,7 +1377,7 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
1373
1377
  });
1374
1378
  },
1375
1379
  /**
1376
- * Get the status of the import workflow lauch on the dataset\'s refresh.
1380
+ * Get the status of the import workflow lauch on the dataset\'s refresh. This endpoint needs to be called to update a dataset IngestionStatus or TwincacheStatus
1377
1381
  * @summary Get the dataset\'s refresh job status
1378
1382
  * @param {string} organizationId the Organization identifier
1379
1383
  * @param {string} datasetId the dataset identifier
@@ -1621,6 +1625,53 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
1621
1625
  });
1622
1626
  });
1623
1627
  },
1628
+ /**
1629
+ * Rollback the twingraph on a dataset after a failed refresh
1630
+ * @summary Rollback the dataset after a failed refresh
1631
+ * @param {string} organizationId the Organization identifier
1632
+ * @param {string} datasetId the Dataset identifier
1633
+ * @param {*} [options] Override http request option.
1634
+ * @throws {RequiredError}
1635
+ */
1636
+ rollbackRefresh: function (organizationId, datasetId, options) {
1637
+ if (options === void 0) { options = {}; }
1638
+ return __awaiter(_this, void 0, void 0, function () {
1639
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1640
+ return __generator(this, function (_a) {
1641
+ switch (_a.label) {
1642
+ case 0:
1643
+ // verify required parameter 'organizationId' is not null or undefined
1644
+ common_1.assertParamExists('rollbackRefresh', 'organizationId', organizationId);
1645
+ // verify required parameter 'datasetId' is not null or undefined
1646
+ common_1.assertParamExists('rollbackRefresh', 'datasetId', datasetId);
1647
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/refresh/rollback"
1648
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1649
+ .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)));
1650
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1651
+ if (configuration) {
1652
+ baseOptions = configuration.baseOptions;
1653
+ }
1654
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1655
+ localVarHeaderParameter = {};
1656
+ localVarQueryParameter = {};
1657
+ // authentication oAuth2AuthCode required
1658
+ // oauth required
1659
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1660
+ case 1:
1661
+ // authentication oAuth2AuthCode required
1662
+ // oauth required
1663
+ _a.sent();
1664
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1665
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1666
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1667
+ return [2 /*return*/, {
1668
+ url: common_1.toPathString(localVarUrlObj),
1669
+ options: localVarRequestOptions,
1670
+ }];
1671
+ }
1672
+ });
1673
+ });
1674
+ },
1624
1675
  /**
1625
1676
  *
1626
1677
  * @summary Search Datasets by tags
@@ -2420,7 +2471,7 @@ exports.DatasetApiFp = function (configuration) {
2420
2471
  });
2421
2472
  },
2422
2473
  /**
2423
- * Get the status of the import workflow lauch on the dataset\'s refresh.
2474
+ * Get the status of the import workflow lauch on the dataset\'s refresh. This endpoint needs to be called to update a dataset IngestionStatus or TwincacheStatus
2424
2475
  * @summary Get the dataset\'s refresh job status
2425
2476
  * @param {string} organizationId the Organization identifier
2426
2477
  * @param {string} datasetId the dataset identifier
@@ -2527,6 +2578,27 @@ exports.DatasetApiFp = function (configuration) {
2527
2578
  });
2528
2579
  });
2529
2580
  },
2581
+ /**
2582
+ * Rollback the twingraph on a dataset after a failed refresh
2583
+ * @summary Rollback the dataset after a failed refresh
2584
+ * @param {string} organizationId the Organization identifier
2585
+ * @param {string} datasetId the Dataset identifier
2586
+ * @param {*} [options] Override http request option.
2587
+ * @throws {RequiredError}
2588
+ */
2589
+ rollbackRefresh: function (organizationId, datasetId, options) {
2590
+ return __awaiter(this, void 0, void 0, function () {
2591
+ var localVarAxiosArgs;
2592
+ return __generator(this, function (_a) {
2593
+ switch (_a.label) {
2594
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.rollbackRefresh(organizationId, datasetId, options)];
2595
+ case 1:
2596
+ localVarAxiosArgs = _a.sent();
2597
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2598
+ }
2599
+ });
2600
+ });
2601
+ },
2530
2602
  /**
2531
2603
  *
2532
2604
  * @summary Search Datasets by tags
@@ -2902,7 +2974,7 @@ exports.DatasetApiFactory = function (configuration, basePath, axios) {
2902
2974
  return localVarFp.getDatasetSecurityUsers(organizationId, datasetId, options).then(function (request) { return request(axios, basePath); });
2903
2975
  },
2904
2976
  /**
2905
- * Get the status of the import workflow lauch on the dataset\'s refresh.
2977
+ * Get the status of the import workflow lauch on the dataset\'s refresh. This endpoint needs to be called to update a dataset IngestionStatus or TwincacheStatus
2906
2978
  * @summary Get the dataset\'s refresh job status
2907
2979
  * @param {string} organizationId the Organization identifier
2908
2980
  * @param {string} datasetId the dataset identifier
@@ -2959,6 +3031,17 @@ exports.DatasetApiFactory = function (configuration, basePath, axios) {
2959
3031
  removeDatasetAccessControl: function (organizationId, datasetId, identityId, options) {
2960
3032
  return localVarFp.removeDatasetAccessControl(organizationId, datasetId, identityId, options).then(function (request) { return request(axios, basePath); });
2961
3033
  },
3034
+ /**
3035
+ * Rollback the twingraph on a dataset after a failed refresh
3036
+ * @summary Rollback the dataset after a failed refresh
3037
+ * @param {string} organizationId the Organization identifier
3038
+ * @param {string} datasetId the Dataset identifier
3039
+ * @param {*} [options] Override http request option.
3040
+ * @throws {RequiredError}
3041
+ */
3042
+ rollbackRefresh: function (organizationId, datasetId, options) {
3043
+ return localVarFp.rollbackRefresh(organizationId, datasetId, options).then(function (request) { return request(axios, basePath); });
3044
+ },
2962
3045
  /**
2963
3046
  *
2964
3047
  * @summary Search Datasets by tags
@@ -3276,7 +3359,7 @@ var DatasetApi = /** @class */ (function (_super) {
3276
3359
  return exports.DatasetApiFp(this.configuration).getDatasetSecurityUsers(organizationId, datasetId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3277
3360
  };
3278
3361
  /**
3279
- * Get the status of the import workflow lauch on the dataset\'s refresh.
3362
+ * Get the status of the import workflow lauch on the dataset\'s refresh. This endpoint needs to be called to update a dataset IngestionStatus or TwincacheStatus
3280
3363
  * @summary Get the dataset\'s refresh job status
3281
3364
  * @param {string} organizationId the Organization identifier
3282
3365
  * @param {string} datasetId the dataset identifier
@@ -3343,6 +3426,19 @@ var DatasetApi = /** @class */ (function (_super) {
3343
3426
  var _this = this;
3344
3427
  return exports.DatasetApiFp(this.configuration).removeDatasetAccessControl(organizationId, datasetId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3345
3428
  };
3429
+ /**
3430
+ * Rollback the twingraph on a dataset after a failed refresh
3431
+ * @summary Rollback the dataset after a failed refresh
3432
+ * @param {string} organizationId the Organization identifier
3433
+ * @param {string} datasetId the Dataset identifier
3434
+ * @param {*} [options] Override http request option.
3435
+ * @throws {RequiredError}
3436
+ * @memberof DatasetApi
3437
+ */
3438
+ DatasetApi.prototype.rollbackRefresh = function (organizationId, datasetId, options) {
3439
+ var _this = this;
3440
+ return exports.DatasetApiFp(this.configuration).rollbackRefresh(organizationId, datasetId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3441
+ };
3346
3442
  /**
3347
3443
  *
3348
3444
  * @summary Search Datasets by tags
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Cosmo Tech Platform API
3
3
  * Cosmo Tech Platform API
4
4
  *
5
- * The version of the OpenAPI document: 3.0.14-dev
5
+ * The version of the OpenAPI document: 3.0.16-SNAPSHOT
6
6
  * Contact: platform@cosmotech.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Cosmo Tech Platform API
6
6
  * Cosmo Tech Platform API
7
7
  *
8
- * The version of the OpenAPI document: 3.0.14-dev
8
+ * The version of the OpenAPI document: 3.0.16-SNAPSHOT
9
9
  * Contact: platform@cosmotech.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Cosmo Tech Platform API
3
3
  * Cosmo Tech Platform API
4
4
  *
5
- * The version of the OpenAPI document: 3.0.14-dev
5
+ * The version of the OpenAPI document: 3.0.16-SNAPSHOT
6
6
  * Contact: platform@cosmotech.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Cosmo Tech Platform API
6
6
  * Cosmo Tech Platform API
7
7
  *
8
- * The version of the OpenAPI document: 3.0.14-dev
8
+ * The version of the OpenAPI document: 3.0.16-SNAPSHOT
9
9
  * Contact: platform@cosmotech.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Cosmo Tech Platform API
3
3
  * Cosmo Tech Platform API
4
4
  *
5
- * The version of the OpenAPI document: 3.0.14-dev
5
+ * The version of the OpenAPI document: 3.0.16-SNAPSHOT
6
6
  * Contact: platform@cosmotech.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Cosmo Tech Platform API
6
6
  * Cosmo Tech Platform API
7
7
  *
8
- * The version of the OpenAPI document: 3.0.14-dev
8
+ * The version of the OpenAPI document: 3.0.16-SNAPSHOT
9
9
  * Contact: platform@cosmotech.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Cosmo Tech Platform API
3
3
  * Cosmo Tech Platform API
4
4
  *
5
- * The version of the OpenAPI document: 3.0.14-dev
5
+ * The version of the OpenAPI document: 3.0.16-SNAPSHOT
6
6
  * Contact: platform@cosmotech.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Cosmo Tech Platform API
6
6
  * Cosmo Tech Platform API
7
7
  *
8
- * The version of the OpenAPI document: 3.0.14-dev
8
+ * The version of the OpenAPI document: 3.0.16-SNAPSHOT
9
9
  * Contact: platform@cosmotech.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/index.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: 3.0.14-dev
7
+ * The version of the OpenAPI document: 3.0.16-SNAPSHOT
8
8
  * Contact: platform@cosmotech.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmotech/api-ts",
3
- "version": "3.0.14-dev",
3
+ "version": "3.0.15-dev",
4
4
  "description": "OpenAPI client for @cosmotech/api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [