@ignos/api-client 20240709.0.9769 → 20240710.0.9775

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.
@@ -1233,6 +1233,25 @@ export declare class AlertsClient extends AuthorizedApiBase implements IAlertsCl
1233
1233
  deleteMachineInactivitySubscription(id: string): Promise<void>;
1234
1234
  protected processDeleteMachineInactivitySubscription(response: Response): Promise<void>;
1235
1235
  }
1236
+ export interface ICredentialsClient {
1237
+ listIntegrationCredentials(): Promise<IntegrationCredentialDto[]>;
1238
+ setIntegrationCredential(request: SetIntegrationCredential): Promise<void>;
1239
+ listIntegrationCredentialTypes(): Promise<IntegrationCredentialTypeDto[]>;
1240
+ }
1241
+ export declare class CredentialsClient extends AuthorizedApiBase implements ICredentialsClient {
1242
+ private http;
1243
+ private baseUrl;
1244
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
1245
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
1246
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
1247
+ });
1248
+ listIntegrationCredentials(): Promise<IntegrationCredentialDto[]>;
1249
+ protected processListIntegrationCredentials(response: Response): Promise<IntegrationCredentialDto[]>;
1250
+ setIntegrationCredential(request: SetIntegrationCredential): Promise<void>;
1251
+ protected processSetIntegrationCredential(response: Response): Promise<void>;
1252
+ listIntegrationCredentialTypes(): Promise<IntegrationCredentialTypeDto[]>;
1253
+ protected processListIntegrationCredentialTypes(response: Response): Promise<IntegrationCredentialTypeDto[]>;
1254
+ }
1236
1255
  export interface ICdfClient {
1237
1256
  /**
1238
1257
  * Get CDF config
@@ -7309,6 +7328,73 @@ export interface IUpdateMachineInactivitySubscription {
7309
7328
  subscriptionId: string;
7310
7329
  enabled: boolean;
7311
7330
  }
7331
+ export declare class IntegrationCredentialDto implements IIntegrationCredentialDto {
7332
+ type: CredentialTypeDto;
7333
+ id: string;
7334
+ name?: string;
7335
+ expirationDate?: Date | null;
7336
+ activationDate?: Date | null;
7337
+ responsibleUser?: string | null;
7338
+ updated?: Date | null;
7339
+ created?: Date | null;
7340
+ enabled?: boolean | null;
7341
+ constructor(data?: IIntegrationCredentialDto);
7342
+ init(_data?: any): void;
7343
+ static fromJS(data: any): IntegrationCredentialDto;
7344
+ toJSON(data?: any): any;
7345
+ }
7346
+ export interface IIntegrationCredentialDto {
7347
+ type: CredentialTypeDto;
7348
+ id: string;
7349
+ name?: string;
7350
+ expirationDate?: Date | null;
7351
+ activationDate?: Date | null;
7352
+ responsibleUser?: string | null;
7353
+ updated?: Date | null;
7354
+ created?: Date | null;
7355
+ enabled?: boolean | null;
7356
+ }
7357
+ export type CredentialTypeDto = "ClientIdClientSecret" | "ClientSecret" | "OAuth" | "ConnectionString";
7358
+ export declare class IntegrationCredentialTypeDto implements IIntegrationCredentialTypeDto {
7359
+ id: string;
7360
+ type: CredentialTypeDto;
7361
+ name: string;
7362
+ exists: boolean;
7363
+ constructor(data?: IIntegrationCredentialTypeDto);
7364
+ init(_data?: any): void;
7365
+ static fromJS(data: any): IntegrationCredentialTypeDto;
7366
+ toJSON(data?: any): any;
7367
+ }
7368
+ export interface IIntegrationCredentialTypeDto {
7369
+ id: string;
7370
+ type: CredentialTypeDto;
7371
+ name: string;
7372
+ exists: boolean;
7373
+ }
7374
+ export declare class SetIntegrationCredential implements ISetIntegrationCredential {
7375
+ type: CredentialTypeDto;
7376
+ id: string;
7377
+ expirationDate?: Date | null;
7378
+ activationDate?: Date | null;
7379
+ responsibleUser?: string | null;
7380
+ clientId?: string | null;
7381
+ clientSecret?: string | null;
7382
+ connectionString?: string | null;
7383
+ constructor(data?: ISetIntegrationCredential);
7384
+ init(_data?: any): void;
7385
+ static fromJS(data: any): SetIntegrationCredential;
7386
+ toJSON(data?: any): any;
7387
+ }
7388
+ export interface ISetIntegrationCredential {
7389
+ type: CredentialTypeDto;
7390
+ id: string;
7391
+ expirationDate?: Date | null;
7392
+ activationDate?: Date | null;
7393
+ responsibleUser?: string | null;
7394
+ clientId?: string | null;
7395
+ clientSecret?: string | null;
7396
+ connectionString?: string | null;
7397
+ }
7312
7398
  export declare class CdfConfigDto implements ICdfConfigDto {
7313
7399
  tenantId?: string | null;
7314
7400
  clientId?: string | null;
@@ -10289,6 +10289,132 @@ export class AlertsClient extends AuthorizedApiBase {
10289
10289
  return Promise.resolve(null);
10290
10290
  }
10291
10291
  }
10292
+ export class CredentialsClient extends AuthorizedApiBase {
10293
+ constructor(configuration, baseUrl, http) {
10294
+ super(configuration);
10295
+ this.jsonParseReviver = undefined;
10296
+ this.http = http ? http : window;
10297
+ this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
10298
+ }
10299
+ listIntegrationCredentials() {
10300
+ let url_ = this.baseUrl + "/admin/credentials";
10301
+ url_ = url_.replace(/[?&]$/, "");
10302
+ let options_ = {
10303
+ method: "GET",
10304
+ headers: {
10305
+ "Accept": "application/json"
10306
+ }
10307
+ };
10308
+ return this.transformOptions(options_).then(transformedOptions_ => {
10309
+ return this.http.fetch(url_, transformedOptions_);
10310
+ }).then((_response) => {
10311
+ return this.processListIntegrationCredentials(_response);
10312
+ });
10313
+ }
10314
+ processListIntegrationCredentials(response) {
10315
+ const status = response.status;
10316
+ let _headers = {};
10317
+ if (response.headers && response.headers.forEach) {
10318
+ response.headers.forEach((v, k) => _headers[k] = v);
10319
+ }
10320
+ ;
10321
+ if (status === 200) {
10322
+ return response.text().then((_responseText) => {
10323
+ let result200 = null;
10324
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
10325
+ if (Array.isArray(resultData200)) {
10326
+ result200 = [];
10327
+ for (let item of resultData200)
10328
+ result200.push(IntegrationCredentialDto.fromJS(item));
10329
+ }
10330
+ return result200;
10331
+ });
10332
+ }
10333
+ else if (status !== 200 && status !== 204) {
10334
+ return response.text().then((_responseText) => {
10335
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
10336
+ });
10337
+ }
10338
+ return Promise.resolve(null);
10339
+ }
10340
+ setIntegrationCredential(request) {
10341
+ let url_ = this.baseUrl + "/admin/credentials";
10342
+ url_ = url_.replace(/[?&]$/, "");
10343
+ const content_ = JSON.stringify(request);
10344
+ let options_ = {
10345
+ body: content_,
10346
+ method: "POST",
10347
+ headers: {
10348
+ "Content-Type": "application/json",
10349
+ }
10350
+ };
10351
+ return this.transformOptions(options_).then(transformedOptions_ => {
10352
+ return this.http.fetch(url_, transformedOptions_);
10353
+ }).then((_response) => {
10354
+ return this.processSetIntegrationCredential(_response);
10355
+ });
10356
+ }
10357
+ processSetIntegrationCredential(response) {
10358
+ const status = response.status;
10359
+ let _headers = {};
10360
+ if (response.headers && response.headers.forEach) {
10361
+ response.headers.forEach((v, k) => _headers[k] = v);
10362
+ }
10363
+ ;
10364
+ if (status === 204) {
10365
+ return response.text().then((_responseText) => {
10366
+ return;
10367
+ });
10368
+ }
10369
+ else if (status !== 200 && status !== 204) {
10370
+ return response.text().then((_responseText) => {
10371
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
10372
+ });
10373
+ }
10374
+ return Promise.resolve(null);
10375
+ }
10376
+ listIntegrationCredentialTypes() {
10377
+ let url_ = this.baseUrl + "/admin/credentials/credentialtypes";
10378
+ url_ = url_.replace(/[?&]$/, "");
10379
+ let options_ = {
10380
+ method: "GET",
10381
+ headers: {
10382
+ "Accept": "application/json"
10383
+ }
10384
+ };
10385
+ return this.transformOptions(options_).then(transformedOptions_ => {
10386
+ return this.http.fetch(url_, transformedOptions_);
10387
+ }).then((_response) => {
10388
+ return this.processListIntegrationCredentialTypes(_response);
10389
+ });
10390
+ }
10391
+ processListIntegrationCredentialTypes(response) {
10392
+ const status = response.status;
10393
+ let _headers = {};
10394
+ if (response.headers && response.headers.forEach) {
10395
+ response.headers.forEach((v, k) => _headers[k] = v);
10396
+ }
10397
+ ;
10398
+ if (status === 200) {
10399
+ return response.text().then((_responseText) => {
10400
+ let result200 = null;
10401
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
10402
+ if (Array.isArray(resultData200)) {
10403
+ result200 = [];
10404
+ for (let item of resultData200)
10405
+ result200.push(IntegrationCredentialTypeDto.fromJS(item));
10406
+ }
10407
+ return result200;
10408
+ });
10409
+ }
10410
+ else if (status !== 200 && status !== 204) {
10411
+ return response.text().then((_responseText) => {
10412
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
10413
+ });
10414
+ }
10415
+ return Promise.resolve(null);
10416
+ }
10417
+ }
10292
10418
  export class CdfClient extends AuthorizedApiBase {
10293
10419
  constructor(configuration, baseUrl, http) {
10294
10420
  super(configuration);
@@ -28788,6 +28914,120 @@ export class UpdateMachineInactivitySubscription {
28788
28914
  return data;
28789
28915
  }
28790
28916
  }
28917
+ export class IntegrationCredentialDto {
28918
+ constructor(data) {
28919
+ if (data) {
28920
+ for (var property in data) {
28921
+ if (data.hasOwnProperty(property))
28922
+ this[property] = data[property];
28923
+ }
28924
+ }
28925
+ }
28926
+ init(_data) {
28927
+ if (_data) {
28928
+ this.type = _data["type"];
28929
+ this.id = _data["id"];
28930
+ this.name = _data["name"];
28931
+ this.expirationDate = _data["expirationDate"] ? new Date(_data["expirationDate"].toString()) : undefined;
28932
+ this.activationDate = _data["activationDate"] ? new Date(_data["activationDate"].toString()) : undefined;
28933
+ this.responsibleUser = _data["responsibleUser"];
28934
+ this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : undefined;
28935
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
28936
+ this.enabled = _data["enabled"];
28937
+ }
28938
+ }
28939
+ static fromJS(data) {
28940
+ data = typeof data === 'object' ? data : {};
28941
+ let result = new IntegrationCredentialDto();
28942
+ result.init(data);
28943
+ return result;
28944
+ }
28945
+ toJSON(data) {
28946
+ data = typeof data === 'object' ? data : {};
28947
+ data["type"] = this.type;
28948
+ data["id"] = this.id;
28949
+ data["name"] = this.name;
28950
+ data["expirationDate"] = this.expirationDate ? this.expirationDate.toISOString() : undefined;
28951
+ data["activationDate"] = this.activationDate ? this.activationDate.toISOString() : undefined;
28952
+ data["responsibleUser"] = this.responsibleUser;
28953
+ data["updated"] = this.updated ? this.updated.toISOString() : undefined;
28954
+ data["created"] = this.created ? this.created.toISOString() : undefined;
28955
+ data["enabled"] = this.enabled;
28956
+ return data;
28957
+ }
28958
+ }
28959
+ export class IntegrationCredentialTypeDto {
28960
+ constructor(data) {
28961
+ if (data) {
28962
+ for (var property in data) {
28963
+ if (data.hasOwnProperty(property))
28964
+ this[property] = data[property];
28965
+ }
28966
+ }
28967
+ }
28968
+ init(_data) {
28969
+ if (_data) {
28970
+ this.id = _data["id"];
28971
+ this.type = _data["type"];
28972
+ this.name = _data["name"];
28973
+ this.exists = _data["exists"];
28974
+ }
28975
+ }
28976
+ static fromJS(data) {
28977
+ data = typeof data === 'object' ? data : {};
28978
+ let result = new IntegrationCredentialTypeDto();
28979
+ result.init(data);
28980
+ return result;
28981
+ }
28982
+ toJSON(data) {
28983
+ data = typeof data === 'object' ? data : {};
28984
+ data["id"] = this.id;
28985
+ data["type"] = this.type;
28986
+ data["name"] = this.name;
28987
+ data["exists"] = this.exists;
28988
+ return data;
28989
+ }
28990
+ }
28991
+ export class SetIntegrationCredential {
28992
+ constructor(data) {
28993
+ if (data) {
28994
+ for (var property in data) {
28995
+ if (data.hasOwnProperty(property))
28996
+ this[property] = data[property];
28997
+ }
28998
+ }
28999
+ }
29000
+ init(_data) {
29001
+ if (_data) {
29002
+ this.type = _data["type"];
29003
+ this.id = _data["id"];
29004
+ this.expirationDate = _data["expirationDate"] ? new Date(_data["expirationDate"].toString()) : undefined;
29005
+ this.activationDate = _data["activationDate"] ? new Date(_data["activationDate"].toString()) : undefined;
29006
+ this.responsibleUser = _data["responsibleUser"];
29007
+ this.clientId = _data["clientId"];
29008
+ this.clientSecret = _data["clientSecret"];
29009
+ this.connectionString = _data["connectionString"];
29010
+ }
29011
+ }
29012
+ static fromJS(data) {
29013
+ data = typeof data === 'object' ? data : {};
29014
+ let result = new SetIntegrationCredential();
29015
+ result.init(data);
29016
+ return result;
29017
+ }
29018
+ toJSON(data) {
29019
+ data = typeof data === 'object' ? data : {};
29020
+ data["type"] = this.type;
29021
+ data["id"] = this.id;
29022
+ data["expirationDate"] = this.expirationDate ? this.expirationDate.toISOString() : undefined;
29023
+ data["activationDate"] = this.activationDate ? this.activationDate.toISOString() : undefined;
29024
+ data["responsibleUser"] = this.responsibleUser;
29025
+ data["clientId"] = this.clientId;
29026
+ data["clientSecret"] = this.clientSecret;
29027
+ data["connectionString"] = this.connectionString;
29028
+ return data;
29029
+ }
29030
+ }
28791
29031
  export class CdfConfigDto {
28792
29032
  constructor(data) {
28793
29033
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240709.0.9769",
3
+ "version": "20240710.0.9775",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -10973,6 +10973,143 @@ export class AlertsClient extends AuthorizedApiBase implements IAlertsClient {
10973
10973
  }
10974
10974
  }
10975
10975
 
10976
+ export interface ICredentialsClient {
10977
+
10978
+ listIntegrationCredentials(): Promise<IntegrationCredentialDto[]>;
10979
+
10980
+ setIntegrationCredential(request: SetIntegrationCredential): Promise<void>;
10981
+
10982
+ listIntegrationCredentialTypes(): Promise<IntegrationCredentialTypeDto[]>;
10983
+ }
10984
+
10985
+ export class CredentialsClient extends AuthorizedApiBase implements ICredentialsClient {
10986
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
10987
+ private baseUrl: string;
10988
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
10989
+
10990
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
10991
+ super(configuration);
10992
+ this.http = http ? http : window as any;
10993
+ this.baseUrl = baseUrl ?? "";
10994
+ }
10995
+
10996
+ listIntegrationCredentials(): Promise<IntegrationCredentialDto[]> {
10997
+ let url_ = this.baseUrl + "/admin/credentials";
10998
+ url_ = url_.replace(/[?&]$/, "");
10999
+
11000
+ let options_: RequestInit = {
11001
+ method: "GET",
11002
+ headers: {
11003
+ "Accept": "application/json"
11004
+ }
11005
+ };
11006
+
11007
+ return this.transformOptions(options_).then(transformedOptions_ => {
11008
+ return this.http.fetch(url_, transformedOptions_);
11009
+ }).then((_response: Response) => {
11010
+ return this.processListIntegrationCredentials(_response);
11011
+ });
11012
+ }
11013
+
11014
+ protected processListIntegrationCredentials(response: Response): Promise<IntegrationCredentialDto[]> {
11015
+ const status = response.status;
11016
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
11017
+ if (status === 200) {
11018
+ return response.text().then((_responseText) => {
11019
+ let result200: any = null;
11020
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11021
+ if (Array.isArray(resultData200)) {
11022
+ result200 = [] as any;
11023
+ for (let item of resultData200)
11024
+ result200!.push(IntegrationCredentialDto.fromJS(item));
11025
+ }
11026
+ return result200;
11027
+ });
11028
+ } else if (status !== 200 && status !== 204) {
11029
+ return response.text().then((_responseText) => {
11030
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11031
+ });
11032
+ }
11033
+ return Promise.resolve<IntegrationCredentialDto[]>(null as any);
11034
+ }
11035
+
11036
+ setIntegrationCredential(request: SetIntegrationCredential): Promise<void> {
11037
+ let url_ = this.baseUrl + "/admin/credentials";
11038
+ url_ = url_.replace(/[?&]$/, "");
11039
+
11040
+ const content_ = JSON.stringify(request);
11041
+
11042
+ let options_: RequestInit = {
11043
+ body: content_,
11044
+ method: "POST",
11045
+ headers: {
11046
+ "Content-Type": "application/json",
11047
+ }
11048
+ };
11049
+
11050
+ return this.transformOptions(options_).then(transformedOptions_ => {
11051
+ return this.http.fetch(url_, transformedOptions_);
11052
+ }).then((_response: Response) => {
11053
+ return this.processSetIntegrationCredential(_response);
11054
+ });
11055
+ }
11056
+
11057
+ protected processSetIntegrationCredential(response: Response): Promise<void> {
11058
+ const status = response.status;
11059
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
11060
+ if (status === 204) {
11061
+ return response.text().then((_responseText) => {
11062
+ return;
11063
+ });
11064
+ } else if (status !== 200 && status !== 204) {
11065
+ return response.text().then((_responseText) => {
11066
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11067
+ });
11068
+ }
11069
+ return Promise.resolve<void>(null as any);
11070
+ }
11071
+
11072
+ listIntegrationCredentialTypes(): Promise<IntegrationCredentialTypeDto[]> {
11073
+ let url_ = this.baseUrl + "/admin/credentials/credentialtypes";
11074
+ url_ = url_.replace(/[?&]$/, "");
11075
+
11076
+ let options_: RequestInit = {
11077
+ method: "GET",
11078
+ headers: {
11079
+ "Accept": "application/json"
11080
+ }
11081
+ };
11082
+
11083
+ return this.transformOptions(options_).then(transformedOptions_ => {
11084
+ return this.http.fetch(url_, transformedOptions_);
11085
+ }).then((_response: Response) => {
11086
+ return this.processListIntegrationCredentialTypes(_response);
11087
+ });
11088
+ }
11089
+
11090
+ protected processListIntegrationCredentialTypes(response: Response): Promise<IntegrationCredentialTypeDto[]> {
11091
+ const status = response.status;
11092
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
11093
+ if (status === 200) {
11094
+ return response.text().then((_responseText) => {
11095
+ let result200: any = null;
11096
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11097
+ if (Array.isArray(resultData200)) {
11098
+ result200 = [] as any;
11099
+ for (let item of resultData200)
11100
+ result200!.push(IntegrationCredentialTypeDto.fromJS(item));
11101
+ }
11102
+ return result200;
11103
+ });
11104
+ } else if (status !== 200 && status !== 204) {
11105
+ return response.text().then((_responseText) => {
11106
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11107
+ });
11108
+ }
11109
+ return Promise.resolve<IntegrationCredentialTypeDto[]>(null as any);
11110
+ }
11111
+ }
11112
+
10976
11113
  export interface ICdfClient {
10977
11114
 
10978
11115
  /**
@@ -35133,6 +35270,188 @@ export interface IUpdateMachineInactivitySubscription {
35133
35270
  enabled: boolean;
35134
35271
  }
35135
35272
 
35273
+ export class IntegrationCredentialDto implements IIntegrationCredentialDto {
35274
+ type!: CredentialTypeDto;
35275
+ id!: string;
35276
+ name?: string;
35277
+ expirationDate?: Date | null;
35278
+ activationDate?: Date | null;
35279
+ responsibleUser?: string | null;
35280
+ updated?: Date | null;
35281
+ created?: Date | null;
35282
+ enabled?: boolean | null;
35283
+
35284
+ constructor(data?: IIntegrationCredentialDto) {
35285
+ if (data) {
35286
+ for (var property in data) {
35287
+ if (data.hasOwnProperty(property))
35288
+ (<any>this)[property] = (<any>data)[property];
35289
+ }
35290
+ }
35291
+ }
35292
+
35293
+ init(_data?: any) {
35294
+ if (_data) {
35295
+ this.type = _data["type"];
35296
+ this.id = _data["id"];
35297
+ this.name = _data["name"];
35298
+ this.expirationDate = _data["expirationDate"] ? new Date(_data["expirationDate"].toString()) : <any>undefined;
35299
+ this.activationDate = _data["activationDate"] ? new Date(_data["activationDate"].toString()) : <any>undefined;
35300
+ this.responsibleUser = _data["responsibleUser"];
35301
+ this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : <any>undefined;
35302
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
35303
+ this.enabled = _data["enabled"];
35304
+ }
35305
+ }
35306
+
35307
+ static fromJS(data: any): IntegrationCredentialDto {
35308
+ data = typeof data === 'object' ? data : {};
35309
+ let result = new IntegrationCredentialDto();
35310
+ result.init(data);
35311
+ return result;
35312
+ }
35313
+
35314
+ toJSON(data?: any) {
35315
+ data = typeof data === 'object' ? data : {};
35316
+ data["type"] = this.type;
35317
+ data["id"] = this.id;
35318
+ data["name"] = this.name;
35319
+ data["expirationDate"] = this.expirationDate ? this.expirationDate.toISOString() : <any>undefined;
35320
+ data["activationDate"] = this.activationDate ? this.activationDate.toISOString() : <any>undefined;
35321
+ data["responsibleUser"] = this.responsibleUser;
35322
+ data["updated"] = this.updated ? this.updated.toISOString() : <any>undefined;
35323
+ data["created"] = this.created ? this.created.toISOString() : <any>undefined;
35324
+ data["enabled"] = this.enabled;
35325
+ return data;
35326
+ }
35327
+ }
35328
+
35329
+ export interface IIntegrationCredentialDto {
35330
+ type: CredentialTypeDto;
35331
+ id: string;
35332
+ name?: string;
35333
+ expirationDate?: Date | null;
35334
+ activationDate?: Date | null;
35335
+ responsibleUser?: string | null;
35336
+ updated?: Date | null;
35337
+ created?: Date | null;
35338
+ enabled?: boolean | null;
35339
+ }
35340
+
35341
+ export type CredentialTypeDto = "ClientIdClientSecret" | "ClientSecret" | "OAuth" | "ConnectionString";
35342
+
35343
+ export class IntegrationCredentialTypeDto implements IIntegrationCredentialTypeDto {
35344
+ id!: string;
35345
+ type!: CredentialTypeDto;
35346
+ name!: string;
35347
+ exists!: boolean;
35348
+
35349
+ constructor(data?: IIntegrationCredentialTypeDto) {
35350
+ if (data) {
35351
+ for (var property in data) {
35352
+ if (data.hasOwnProperty(property))
35353
+ (<any>this)[property] = (<any>data)[property];
35354
+ }
35355
+ }
35356
+ }
35357
+
35358
+ init(_data?: any) {
35359
+ if (_data) {
35360
+ this.id = _data["id"];
35361
+ this.type = _data["type"];
35362
+ this.name = _data["name"];
35363
+ this.exists = _data["exists"];
35364
+ }
35365
+ }
35366
+
35367
+ static fromJS(data: any): IntegrationCredentialTypeDto {
35368
+ data = typeof data === 'object' ? data : {};
35369
+ let result = new IntegrationCredentialTypeDto();
35370
+ result.init(data);
35371
+ return result;
35372
+ }
35373
+
35374
+ toJSON(data?: any) {
35375
+ data = typeof data === 'object' ? data : {};
35376
+ data["id"] = this.id;
35377
+ data["type"] = this.type;
35378
+ data["name"] = this.name;
35379
+ data["exists"] = this.exists;
35380
+ return data;
35381
+ }
35382
+ }
35383
+
35384
+ export interface IIntegrationCredentialTypeDto {
35385
+ id: string;
35386
+ type: CredentialTypeDto;
35387
+ name: string;
35388
+ exists: boolean;
35389
+ }
35390
+
35391
+ export class SetIntegrationCredential implements ISetIntegrationCredential {
35392
+ type!: CredentialTypeDto;
35393
+ id!: string;
35394
+ expirationDate?: Date | null;
35395
+ activationDate?: Date | null;
35396
+ responsibleUser?: string | null;
35397
+ clientId?: string | null;
35398
+ clientSecret?: string | null;
35399
+ connectionString?: string | null;
35400
+
35401
+ constructor(data?: ISetIntegrationCredential) {
35402
+ if (data) {
35403
+ for (var property in data) {
35404
+ if (data.hasOwnProperty(property))
35405
+ (<any>this)[property] = (<any>data)[property];
35406
+ }
35407
+ }
35408
+ }
35409
+
35410
+ init(_data?: any) {
35411
+ if (_data) {
35412
+ this.type = _data["type"];
35413
+ this.id = _data["id"];
35414
+ this.expirationDate = _data["expirationDate"] ? new Date(_data["expirationDate"].toString()) : <any>undefined;
35415
+ this.activationDate = _data["activationDate"] ? new Date(_data["activationDate"].toString()) : <any>undefined;
35416
+ this.responsibleUser = _data["responsibleUser"];
35417
+ this.clientId = _data["clientId"];
35418
+ this.clientSecret = _data["clientSecret"];
35419
+ this.connectionString = _data["connectionString"];
35420
+ }
35421
+ }
35422
+
35423
+ static fromJS(data: any): SetIntegrationCredential {
35424
+ data = typeof data === 'object' ? data : {};
35425
+ let result = new SetIntegrationCredential();
35426
+ result.init(data);
35427
+ return result;
35428
+ }
35429
+
35430
+ toJSON(data?: any) {
35431
+ data = typeof data === 'object' ? data : {};
35432
+ data["type"] = this.type;
35433
+ data["id"] = this.id;
35434
+ data["expirationDate"] = this.expirationDate ? this.expirationDate.toISOString() : <any>undefined;
35435
+ data["activationDate"] = this.activationDate ? this.activationDate.toISOString() : <any>undefined;
35436
+ data["responsibleUser"] = this.responsibleUser;
35437
+ data["clientId"] = this.clientId;
35438
+ data["clientSecret"] = this.clientSecret;
35439
+ data["connectionString"] = this.connectionString;
35440
+ return data;
35441
+ }
35442
+ }
35443
+
35444
+ export interface ISetIntegrationCredential {
35445
+ type: CredentialTypeDto;
35446
+ id: string;
35447
+ expirationDate?: Date | null;
35448
+ activationDate?: Date | null;
35449
+ responsibleUser?: string | null;
35450
+ clientId?: string | null;
35451
+ clientSecret?: string | null;
35452
+ connectionString?: string | null;
35453
+ }
35454
+
35136
35455
  export class CdfConfigDto implements ICdfConfigDto {
35137
35456
  tenantId?: string | null;
35138
35457
  clientId?: string | null;