@vc-shell/framework 1.0.80 → 1.0.82

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.
@@ -1,6 +1,6 @@
1
1
  //----------------------
2
2
  // <auto-generated>
3
- // Generated using the NSwag toolchain v13.18.3.0 (NJsonSchema v10.8.0.0 (Newtonsoft.Json v12.0.0.0)) (http://NSwag.org)
3
+ // Generated using the NSwag toolchain v13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v12.0.0.0)) (http://NSwag.org)
4
4
  // </auto-generated>
5
5
  //----------------------
6
6
 
@@ -22,7 +22,9 @@ export class AuthApiBase {
22
22
  }
23
23
 
24
24
  protected transformOptions(options: any): Promise<any> {
25
- options.headers['authorization'] = `Bearer ${this.authToken}`;
25
+ if (this.authToken) {
26
+ options.headers['authorization'] = `Bearer ${this.authToken}`;
27
+ }
26
28
  return Promise.resolve(options);
27
29
  }
28
30
  }
@@ -103,15 +105,20 @@ export class ExternalSignInClient extends AuthApiBase {
103
105
  }
104
106
 
105
107
  /**
106
- * @param authenticationType (optional)
108
+ * @param authenticationType (optional)
109
+ * @param returnUrl (optional)
107
110
  * @return Success
108
111
  */
109
- signIn(authenticationType?: string | undefined): Promise<void> {
112
+ signIn(authenticationType?: string | undefined, returnUrl?: string | undefined): Promise<void> {
110
113
  let url_ = this.baseUrl + "/externalsignin?";
111
114
  if (authenticationType === null)
112
115
  throw new Error("The parameter 'authenticationType' cannot be null.");
113
116
  else if (authenticationType !== undefined)
114
117
  url_ += "authenticationType=" + encodeURIComponent("" + authenticationType) + "&";
118
+ if (returnUrl === null)
119
+ throw new Error("The parameter 'returnUrl' cannot be null.");
120
+ else if (returnUrl !== undefined)
121
+ url_ += "returnUrl=" + encodeURIComponent("" + returnUrl) + "&";
115
122
  url_ = url_.replace(/[?&]$/, "");
116
123
 
117
124
  let options_: RequestInit = {
@@ -143,7 +150,7 @@ export class ExternalSignInClient extends AuthApiBase {
143
150
  }
144
151
 
145
152
  /**
146
- * @param authenticationType (optional)
153
+ * @param authenticationType (optional)
147
154
  * @return Success
148
155
  */
149
156
  signOut(authenticationType?: string | undefined): Promise<void> {
@@ -183,7 +190,7 @@ export class ExternalSignInClient extends AuthApiBase {
183
190
  }
184
191
 
185
192
  /**
186
- * @param returnUrl (optional)
193
+ * @param returnUrl (optional)
187
194
  * @return Success
188
195
  */
189
196
  signInCallback(returnUrl?: string | undefined): Promise<void> {
@@ -225,13 +232,14 @@ export class ExternalSignInClient extends AuthApiBase {
225
232
  /**
226
233
  * @return Success
227
234
  */
228
- getExternalLoginProviders(): Promise<void> {
235
+ getExternalLoginProviders(): Promise<ExternalSignInProviderInfo[]> {
229
236
  let url_ = this.baseUrl + "/externalsignin/providers";
230
237
  url_ = url_.replace(/[?&]$/, "");
231
238
 
232
239
  let options_: RequestInit = {
233
240
  method: "GET",
234
241
  headers: {
242
+ "Accept": "text/plain"
235
243
  }
236
244
  };
237
245
 
@@ -242,19 +250,29 @@ export class ExternalSignInClient extends AuthApiBase {
242
250
  });
243
251
  }
244
252
 
245
- protected processGetExternalLoginProviders(response: Response): Promise<void> {
253
+ protected processGetExternalLoginProviders(response: Response): Promise<ExternalSignInProviderInfo[]> {
246
254
  const status = response.status;
247
255
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
248
256
  if (status === 200) {
249
257
  return response.text().then((_responseText) => {
250
- return;
258
+ let result200: any = null;
259
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
260
+ if (Array.isArray(resultData200)) {
261
+ result200 = [] as any;
262
+ for (let item of resultData200)
263
+ result200!.push(ExternalSignInProviderInfo.fromJS(item));
264
+ }
265
+ else {
266
+ result200 = <any>null;
267
+ }
268
+ return result200;
251
269
  });
252
270
  } else if (status !== 200 && status !== 204) {
253
271
  return response.text().then((_responseText) => {
254
272
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
255
273
  });
256
274
  }
257
- return Promise.resolve<void>(null as any);
275
+ return Promise.resolve<ExternalSignInProviderInfo[]>(null as any);
258
276
  }
259
277
  }
260
278
 
@@ -328,7 +346,7 @@ export class ChangeLogClient extends AuthApiBase {
328
346
  }
329
347
 
330
348
  /**
331
- * @param scope (optional)
349
+ * @param scope (optional)
332
350
  * @return Success
333
351
  */
334
352
  forceChanges(scope?: string | undefined): Promise<void> {
@@ -419,7 +437,7 @@ export class ChangeLogClient extends AuthApiBase {
419
437
  }
420
438
 
421
439
  /**
422
- * @param scope (optional)
440
+ * @param scope (optional)
423
441
  * @return Success
424
442
  */
425
443
  getLastModifiedDate(scope?: string | undefined): Promise<LastModifiedResponse> {
@@ -463,7 +481,7 @@ export class ChangeLogClient extends AuthApiBase {
463
481
  }
464
482
 
465
483
  /**
466
- * @param body (optional)
484
+ * @param body (optional)
467
485
  * @return Success
468
486
  */
469
487
  getChangedEntities(body?: ChangedEntitiesRequest | undefined): Promise<ChangedEntitiesResponse> {
@@ -507,7 +525,7 @@ export class ChangeLogClient extends AuthApiBase {
507
525
  }
508
526
 
509
527
  /**
510
- * @param body (optional)
528
+ * @param body (optional)
511
529
  * @return Success
512
530
  */
513
531
  resetChangedEntities(body?: string[] | undefined): Promise<void> {
@@ -555,7 +573,7 @@ export class ChangeLogClient extends AuthApiBase {
555
573
  }
556
574
 
557
575
  /**
558
- * @param body (optional)
576
+ * @param body (optional)
559
577
  * @return Success
560
578
  */
561
579
  searchChanges(body?: ChangeLogSearchCriteria | undefined): Promise<ChangeLogSearchResult> {
@@ -607,8 +625,8 @@ export class ChangeLogClient extends AuthApiBase {
607
625
  }
608
626
 
609
627
  /**
610
- * @param start (optional)
611
- * @param end (optional)
628
+ * @param start (optional)
629
+ * @param end (optional)
612
630
  * @return Success
613
631
  */
614
632
  searchTypeChangeHistory(type: string, start?: Date | undefined, end?: Date | undefined): Promise<OperationLog[]> {
@@ -845,7 +863,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
845
863
  }
846
864
 
847
865
  /**
848
- * @param body (optional)
866
+ * @param body (optional)
849
867
  * @return Success
850
868
  */
851
869
  searchDynamicProperties(body?: DynamicPropertySearchCriteria | undefined): Promise<DynamicPropertySearchResult> {
@@ -897,7 +915,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
897
915
  }
898
916
 
899
917
  /**
900
- * @param body (optional)
918
+ * @param body (optional)
901
919
  * @return Success
902
920
  */
903
921
  createProperty(body?: DynamicProperty | undefined): Promise<DynamicProperty> {
@@ -949,7 +967,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
949
967
  }
950
968
 
951
969
  /**
952
- * @param body (optional)
970
+ * @param body (optional)
953
971
  * @return Success
954
972
  */
955
973
  updateProperty(body?: DynamicProperty | undefined): Promise<void> {
@@ -997,7 +1015,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
997
1015
  }
998
1016
 
999
1017
  /**
1000
- * @param propertyIds (optional)
1018
+ * @param propertyIds (optional)
1001
1019
  * @return Success
1002
1020
  */
1003
1021
  deleteProperty(propertyIds?: string[] | undefined): Promise<void> {
@@ -1096,7 +1114,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
1096
1114
  }
1097
1115
 
1098
1116
  /**
1099
- * @param body (optional)
1117
+ * @param body (optional)
1100
1118
  * @return Success
1101
1119
  */
1102
1120
  searchDictionaryItems(body?: DynamicPropertyDictionaryItemSearchCriteria | undefined): Promise<DynamicPropertyDictionaryItemSearchResult> {
@@ -1148,7 +1166,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
1148
1166
  }
1149
1167
 
1150
1168
  /**
1151
- * @param body (optional)
1169
+ * @param body (optional)
1152
1170
  * @return Success
1153
1171
  */
1154
1172
  saveDictionaryItems(body?: DynamicPropertyDictionaryItem[] | undefined): Promise<void> {
@@ -1196,7 +1214,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
1196
1214
  }
1197
1215
 
1198
1216
  /**
1199
- * @param ids (optional)
1217
+ * @param ids (optional)
1200
1218
  * @return Success
1201
1219
  */
1202
1220
  deleteDictionaryItem(ids?: string[] | undefined): Promise<void> {
@@ -1415,7 +1433,7 @@ export class ModulesClient extends AuthApiBase {
1415
1433
  }
1416
1434
 
1417
1435
  /**
1418
- * @param body (optional)
1436
+ * @param body (optional)
1419
1437
  * @return Success
1420
1438
  */
1421
1439
  getDependingModules(body?: ModuleDescriptor[] | undefined): Promise<ModuleDescriptor[]> {
@@ -1474,7 +1492,7 @@ export class ModulesClient extends AuthApiBase {
1474
1492
  }
1475
1493
 
1476
1494
  /**
1477
- * @param body (optional)
1495
+ * @param body (optional)
1478
1496
  * @return Success
1479
1497
  */
1480
1498
  getMissingDependencies(body?: ModuleDescriptor[] | undefined): Promise<ModuleDescriptor[]> {
@@ -1580,7 +1598,7 @@ export class ModulesClient extends AuthApiBase {
1580
1598
  }
1581
1599
 
1582
1600
  /**
1583
- * @param body (optional)
1601
+ * @param body (optional)
1584
1602
  * @return Success
1585
1603
  */
1586
1604
  installModules(body?: ModuleDescriptor[] | undefined): Promise<ModulePushNotification> {
@@ -1632,7 +1650,7 @@ export class ModulesClient extends AuthApiBase {
1632
1650
  }
1633
1651
 
1634
1652
  /**
1635
- * @param body (optional)
1653
+ * @param body (optional)
1636
1654
  * @return Success
1637
1655
  */
1638
1656
  uninstallModule(body?: ModuleDescriptor[] | undefined): Promise<ModulePushNotification> {
@@ -1833,7 +1851,7 @@ export class OAuthAppsClient extends AuthApiBase {
1833
1851
  }
1834
1852
 
1835
1853
  /**
1836
- * @param body (optional)
1854
+ * @param body (optional)
1837
1855
  * @return Success
1838
1856
  */
1839
1857
  save(body?: OpenIddictApplicationDescriptor | undefined): Promise<OpenIddictApplicationDescriptor> {
@@ -1885,7 +1903,7 @@ export class OAuthAppsClient extends AuthApiBase {
1885
1903
  }
1886
1904
 
1887
1905
  /**
1888
- * @param clientIds (optional)
1906
+ * @param clientIds (optional)
1889
1907
  * @return Success
1890
1908
  */
1891
1909
  delete(clientIds?: string[] | undefined): Promise<void> {
@@ -1933,7 +1951,7 @@ export class OAuthAppsClient extends AuthApiBase {
1933
1951
  }
1934
1952
 
1935
1953
  /**
1936
- * @param body (optional)
1954
+ * @param body (optional)
1937
1955
  * @return Success
1938
1956
  */
1939
1957
  search(body?: OAuthAppSearchCriteria | undefined): Promise<OAuthAppSearchResult> {
@@ -1997,7 +2015,7 @@ export class PushNotificationClient extends AuthApiBase {
1997
2015
  }
1998
2016
 
1999
2017
  /**
2000
- * @param body (optional)
2018
+ * @param body (optional)
2001
2019
  * @return Success
2002
2020
  */
2003
2021
  searchPushNotification(body?: PushNotificationSearchCriteria | undefined): Promise<PushNotificationSearchResult> {
@@ -2108,7 +2126,7 @@ export class SecurityClient extends AuthApiBase {
2108
2126
  }
2109
2127
 
2110
2128
  /**
2111
- * @param body (optional)
2129
+ * @param body (optional)
2112
2130
  * @return Success
2113
2131
  */
2114
2132
  login(body?: LoginRequest | undefined): Promise<SignInResult> {
@@ -2350,7 +2368,7 @@ export class SecurityClient extends AuthApiBase {
2350
2368
  }
2351
2369
 
2352
2370
  /**
2353
- * @param body (optional)
2371
+ * @param body (optional)
2354
2372
  * @return Success
2355
2373
  */
2356
2374
  searchRoles(body?: RoleSearchCriteria | undefined): Promise<RoleSearchResult> {
@@ -2452,7 +2470,7 @@ export class SecurityClient extends AuthApiBase {
2452
2470
  }
2453
2471
 
2454
2472
  /**
2455
- * @param ids (optional)
2473
+ * @param ids (optional)
2456
2474
  * @return Success
2457
2475
  */
2458
2476
  deleteRoles(ids?: string[] | undefined): Promise<void> {
@@ -2500,7 +2518,7 @@ export class SecurityClient extends AuthApiBase {
2500
2518
  }
2501
2519
 
2502
2520
  /**
2503
- * @param body (optional)
2521
+ * @param body (optional)
2504
2522
  * @return Success
2505
2523
  */
2506
2524
  updateRole(body?: Role | undefined): Promise<SecurityResult> {
@@ -2552,7 +2570,7 @@ export class SecurityClient extends AuthApiBase {
2552
2570
  }
2553
2571
 
2554
2572
  /**
2555
- * @param body (optional)
2573
+ * @param body (optional)
2556
2574
  * @return Success
2557
2575
  */
2558
2576
  searchUsers(body?: UserSearchCriteria | undefined): Promise<UserSearchResult> {
@@ -2807,7 +2825,7 @@ export class SecurityClient extends AuthApiBase {
2807
2825
  }
2808
2826
 
2809
2827
  /**
2810
- * @param body (optional)
2828
+ * @param body (optional)
2811
2829
  * @return Success
2812
2830
  */
2813
2831
  create(body?: ApplicationUser | undefined): Promise<SecurityResult> {
@@ -2859,7 +2877,7 @@ export class SecurityClient extends AuthApiBase {
2859
2877
  }
2860
2878
 
2861
2879
  /**
2862
- * @param body (optional)
2880
+ * @param body (optional)
2863
2881
  * @return Success
2864
2882
  */
2865
2883
  changeCurrentUserPassword(body?: ChangePasswordRequest | undefined): Promise<SecurityResult> {
@@ -2915,7 +2933,7 @@ export class SecurityClient extends AuthApiBase {
2915
2933
  }
2916
2934
 
2917
2935
  /**
2918
- * @param body (optional)
2936
+ * @param body (optional)
2919
2937
  * @return Success
2920
2938
  */
2921
2939
  changePassword(userName: string, body?: ChangePasswordRequest | undefined): Promise<SecurityResult> {
@@ -2974,7 +2992,7 @@ export class SecurityClient extends AuthApiBase {
2974
2992
  }
2975
2993
 
2976
2994
  /**
2977
- * @param body (optional)
2995
+ * @param body (optional)
2978
2996
  * @return Success
2979
2997
  */
2980
2998
  resetPassword(userName: string, body?: ResetPasswordConfirmRequest | undefined): Promise<SecurityResult> {
@@ -3029,7 +3047,7 @@ export class SecurityClient extends AuthApiBase {
3029
3047
  }
3030
3048
 
3031
3049
  /**
3032
- * @param body (optional)
3050
+ * @param body (optional)
3033
3051
  * @return Success
3034
3052
  */
3035
3053
  resetPasswordByToken(userId: string, body?: ResetPasswordConfirmRequest | undefined): Promise<SecurityResult> {
@@ -3076,7 +3094,7 @@ export class SecurityClient extends AuthApiBase {
3076
3094
  }
3077
3095
 
3078
3096
  /**
3079
- * @param body (optional)
3097
+ * @param body (optional)
3080
3098
  * @return Success
3081
3099
  */
3082
3100
  validatePasswordResetToken(userId: string, body?: ValidatePasswordResetTokenRequest | undefined): Promise<boolean> {
@@ -3112,7 +3130,7 @@ export class SecurityClient extends AuthApiBase {
3112
3130
  let result200: any = null;
3113
3131
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3114
3132
  result200 = resultData200 !== undefined ? resultData200 : <any>null;
3115
-
3133
+
3116
3134
  return result200;
3117
3135
  });
3118
3136
  } else if (status !== 200 && status !== 204) {
@@ -3162,7 +3180,7 @@ export class SecurityClient extends AuthApiBase {
3162
3180
  }
3163
3181
 
3164
3182
  /**
3165
- * @param body (optional)
3183
+ * @param body (optional)
3166
3184
  * @return Success
3167
3185
  */
3168
3186
  validatePassword(body?: string | undefined): Promise<IdentityResult> {
@@ -3206,7 +3224,7 @@ export class SecurityClient extends AuthApiBase {
3206
3224
  }
3207
3225
 
3208
3226
  /**
3209
- * @param body (optional)
3227
+ * @param body (optional)
3210
3228
  * @return Success
3211
3229
  */
3212
3230
  validateUserPassword(body?: ChangePasswordRequest | undefined): Promise<IdentityResult> {
@@ -3258,7 +3276,7 @@ export class SecurityClient extends AuthApiBase {
3258
3276
  }
3259
3277
 
3260
3278
  /**
3261
- * @param body (optional)
3279
+ * @param body (optional)
3262
3280
  * @return Success
3263
3281
  */
3264
3282
  update(body?: ApplicationUser | undefined): Promise<SecurityResult> {
@@ -3310,7 +3328,7 @@ export class SecurityClient extends AuthApiBase {
3310
3328
  }
3311
3329
 
3312
3330
  /**
3313
- * @param names (optional)
3331
+ * @param names (optional)
3314
3332
  * @return Success
3315
3333
  */
3316
3334
  delete(names?: string[] | undefined): Promise<void> {
@@ -3612,7 +3630,7 @@ export class SecurityClient extends AuthApiBase {
3612
3630
  }
3613
3631
 
3614
3632
  /**
3615
- * @param body (optional)
3633
+ * @param body (optional)
3616
3634
  * @return Success
3617
3635
  */
3618
3636
  saveUserApiKey(body?: UserApiKey | undefined): Promise<UserApiKey[]> {
@@ -3671,7 +3689,7 @@ export class SecurityClient extends AuthApiBase {
3671
3689
  }
3672
3690
 
3673
3691
  /**
3674
- * @param body (optional)
3692
+ * @param body (optional)
3675
3693
  * @return Success
3676
3694
  */
3677
3695
  updateUserApiKey(body?: UserApiKey | undefined): Promise<UserApiKey[]> {
@@ -3730,7 +3748,7 @@ export class SecurityClient extends AuthApiBase {
3730
3748
  }
3731
3749
 
3732
3750
  /**
3733
- * @param ids (optional)
3751
+ * @param ids (optional)
3734
3752
  * @return Success
3735
3753
  */
3736
3754
  deleteUserApiKeys(ids?: string[] | undefined): Promise<UserApiKey[]> {
@@ -3791,13 +3809,14 @@ export class SecurityClient extends AuthApiBase {
3791
3809
  /**
3792
3810
  * @return Success
3793
3811
  */
3794
- getLoginTypes(): Promise<void> {
3812
+ getLoginTypes(): Promise<LoginType[]> {
3795
3813
  let url_ = this.baseUrl + "/api/platform/security/logintypes";
3796
3814
  url_ = url_.replace(/[?&]$/, "");
3797
3815
 
3798
3816
  let options_: RequestInit = {
3799
3817
  method: "GET",
3800
3818
  headers: {
3819
+ "Accept": "text/plain"
3801
3820
  }
3802
3821
  };
3803
3822
 
@@ -3808,19 +3827,29 @@ export class SecurityClient extends AuthApiBase {
3808
3827
  });
3809
3828
  }
3810
3829
 
3811
- protected processGetLoginTypes(response: Response): Promise<void> {
3830
+ protected processGetLoginTypes(response: Response): Promise<LoginType[]> {
3812
3831
  const status = response.status;
3813
3832
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
3814
3833
  if (status === 200) {
3815
3834
  return response.text().then((_responseText) => {
3816
- return;
3835
+ let result200: any = null;
3836
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3837
+ if (Array.isArray(resultData200)) {
3838
+ result200 = [] as any;
3839
+ for (let item of resultData200)
3840
+ result200!.push(LoginType.fromJS(item));
3841
+ }
3842
+ else {
3843
+ result200 = <any>null;
3844
+ }
3845
+ return result200;
3817
3846
  });
3818
3847
  } else if (status !== 200 && status !== 204) {
3819
3848
  return response.text().then((_responseText) => {
3820
3849
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3821
3850
  });
3822
3851
  }
3823
- return Promise.resolve<void>(null as any);
3852
+ return Promise.resolve<LoginType[]>(null as any);
3824
3853
  }
3825
3854
 
3826
3855
  /**
@@ -3870,7 +3899,7 @@ export class SecurityClient extends AuthApiBase {
3870
3899
  }
3871
3900
 
3872
3901
  /**
3873
- * @param body (optional)
3902
+ * @param body (optional)
3874
3903
  * @return Success
3875
3904
  */
3876
3905
  confirmEmail(userId: string, body?: ConfirmEmailRequest | undefined): Promise<SecurityResult> {
@@ -3925,7 +3954,7 @@ export class SecurityClient extends AuthApiBase {
3925
3954
  }
3926
3955
 
3927
3956
  /**
3928
- * @param newEmail (optional)
3957
+ * @param newEmail (optional)
3929
3958
  * @return Success
3930
3959
  */
3931
3960
  generateChangeEmailToken(userId: string, newEmail?: string | undefined): Promise<string> {
@@ -3961,7 +3990,7 @@ export class SecurityClient extends AuthApiBase {
3961
3990
  let result200: any = null;
3962
3991
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3963
3992
  result200 = resultData200 !== undefined ? resultData200 : <any>null;
3964
-
3993
+
3965
3994
  return result200;
3966
3995
  });
3967
3996
  } else if (status === 401) {
@@ -4012,7 +4041,7 @@ export class SecurityClient extends AuthApiBase {
4012
4041
  let result200: any = null;
4013
4042
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4014
4043
  result200 = resultData200 !== undefined ? resultData200 : <any>null;
4015
-
4044
+
4016
4045
  return result200;
4017
4046
  });
4018
4047
  } else if (status === 401) {
@@ -4063,7 +4092,7 @@ export class SecurityClient extends AuthApiBase {
4063
4092
  let result200: any = null;
4064
4093
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4065
4094
  result200 = resultData200 !== undefined ? resultData200 : <any>null;
4066
-
4095
+
4067
4096
  return result200;
4068
4097
  });
4069
4098
  } else if (status === 401) {
@@ -4083,8 +4112,8 @@ export class SecurityClient extends AuthApiBase {
4083
4112
  }
4084
4113
 
4085
4114
  /**
4086
- * @param tokenProvider (optional)
4087
- * @param purpose (optional)
4115
+ * @param tokenProvider (optional)
4116
+ * @param purpose (optional)
4088
4117
  * @return Success
4089
4118
  */
4090
4119
  generateUserToken(userId: string, tokenProvider?: string | undefined, purpose?: string | undefined): Promise<string> {
@@ -4124,7 +4153,7 @@ export class SecurityClient extends AuthApiBase {
4124
4153
  let result200: any = null;
4125
4154
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4126
4155
  result200 = resultData200 !== undefined ? resultData200 : <any>null;
4127
-
4156
+
4128
4157
  return result200;
4129
4158
  });
4130
4159
  } else if (status === 401) {
@@ -4144,7 +4173,7 @@ export class SecurityClient extends AuthApiBase {
4144
4173
  }
4145
4174
 
4146
4175
  /**
4147
- * @param body (optional)
4176
+ * @param body (optional)
4148
4177
  * @return Success
4149
4178
  */
4150
4179
  verifyUserToken(userId: string, body?: VerifyTokenRequest | undefined): Promise<boolean> {
@@ -4180,7 +4209,7 @@ export class SecurityClient extends AuthApiBase {
4180
4209
  let result200: any = null;
4181
4210
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4182
4211
  result200 = resultData200 !== undefined ? resultData200 : <any>null;
4183
-
4212
+
4184
4213
  return result200;
4185
4214
  });
4186
4215
  } else if (status === 401) {
@@ -4259,7 +4288,7 @@ export class SettingClient extends AuthApiBase {
4259
4288
  }
4260
4289
 
4261
4290
  /**
4262
- * @param body (optional)
4291
+ * @param body (optional)
4263
4292
  * @return Success
4264
4293
  */
4265
4294
  update(body?: ObjectSettingEntry[] | undefined): Promise<void> {
@@ -4535,6 +4564,7 @@ export class ApplicationUser implements IApplicationUser {
4535
4564
  passwordExpired?: boolean;
4536
4565
  lastPasswordChangedDate?: Date | undefined;
4537
4566
  lastPasswordChangeRequestDate?: Date | undefined;
4567
+ lastLoginDate?: Date | undefined;
4538
4568
  id?: string | undefined;
4539
4569
  userName?: string | undefined;
4540
4570
  normalizedUserName?: string | undefined;
@@ -4593,6 +4623,7 @@ export class ApplicationUser implements IApplicationUser {
4593
4623
  this.passwordExpired = _data["passwordExpired"];
4594
4624
  this.lastPasswordChangedDate = _data["lastPasswordChangedDate"] ? new Date(_data["lastPasswordChangedDate"].toString()) : <any>undefined;
4595
4625
  this.lastPasswordChangeRequestDate = _data["lastPasswordChangeRequestDate"] ? new Date(_data["lastPasswordChangeRequestDate"].toString()) : <any>undefined;
4626
+ this.lastLoginDate = _data["lastLoginDate"] ? new Date(_data["lastLoginDate"].toString()) : <any>undefined;
4596
4627
  this.id = _data["id"];
4597
4628
  this.userName = _data["userName"];
4598
4629
  this.normalizedUserName = _data["normalizedUserName"];
@@ -4651,6 +4682,7 @@ export class ApplicationUser implements IApplicationUser {
4651
4682
  data["passwordExpired"] = this.passwordExpired;
4652
4683
  data["lastPasswordChangedDate"] = this.lastPasswordChangedDate ? this.lastPasswordChangedDate.toISOString() : <any>undefined;
4653
4684
  data["lastPasswordChangeRequestDate"] = this.lastPasswordChangeRequestDate ? this.lastPasswordChangeRequestDate.toISOString() : <any>undefined;
4685
+ data["lastLoginDate"] = this.lastLoginDate ? this.lastLoginDate.toISOString() : <any>undefined;
4654
4686
  data["id"] = this.id;
4655
4687
  data["userName"] = this.userName;
4656
4688
  data["normalizedUserName"] = this.normalizedUserName;
@@ -4690,6 +4722,7 @@ export interface IApplicationUser {
4690
4722
  passwordExpired?: boolean;
4691
4723
  lastPasswordChangedDate?: Date | undefined;
4692
4724
  lastPasswordChangeRequestDate?: Date | undefined;
4725
+ lastLoginDate?: Date | undefined;
4693
4726
  id?: string | undefined;
4694
4727
  userName?: string | undefined;
4695
4728
  normalizedUserName?: string | undefined;
@@ -6031,6 +6064,46 @@ export enum EntryState {
6031
6064
  Modified = "Modified",
6032
6065
  }
6033
6066
 
6067
+ export class ExternalSignInProviderInfo implements IExternalSignInProviderInfo {
6068
+ authenticationType?: string | undefined;
6069
+ displayName?: string | undefined;
6070
+
6071
+ constructor(data?: IExternalSignInProviderInfo) {
6072
+ if (data) {
6073
+ for (var property in data) {
6074
+ if (data.hasOwnProperty(property))
6075
+ (<any>this)[property] = (<any>data)[property];
6076
+ }
6077
+ }
6078
+ }
6079
+
6080
+ init(_data?: any) {
6081
+ if (_data) {
6082
+ this.authenticationType = _data["authenticationType"];
6083
+ this.displayName = _data["displayName"];
6084
+ }
6085
+ }
6086
+
6087
+ static fromJS(data: any): ExternalSignInProviderInfo {
6088
+ data = typeof data === 'object' ? data : {};
6089
+ let result = new ExternalSignInProviderInfo();
6090
+ result.init(data);
6091
+ return result;
6092
+ }
6093
+
6094
+ toJSON(data?: any) {
6095
+ data = typeof data === 'object' ? data : {};
6096
+ data["authenticationType"] = this.authenticationType;
6097
+ data["displayName"] = this.displayName;
6098
+ return data;
6099
+ }
6100
+ }
6101
+
6102
+ export interface IExternalSignInProviderInfo {
6103
+ authenticationType?: string | undefined;
6104
+ displayName?: string | undefined;
6105
+ }
6106
+
6034
6107
  export class IdentityError implements IIdentityError {
6035
6108
  code?: string | undefined;
6036
6109
  description?: string | undefined;
@@ -6346,6 +6419,54 @@ export interface ILoginRequest {
6346
6419
  rememberMe?: boolean;
6347
6420
  }
6348
6421
 
6422
+ export class LoginType implements ILoginType {
6423
+ enabled?: boolean;
6424
+ hasLoginForm?: boolean;
6425
+ authenticationType?: string | undefined;
6426
+ priority?: number;
6427
+
6428
+ constructor(data?: ILoginType) {
6429
+ if (data) {
6430
+ for (var property in data) {
6431
+ if (data.hasOwnProperty(property))
6432
+ (<any>this)[property] = (<any>data)[property];
6433
+ }
6434
+ }
6435
+ }
6436
+
6437
+ init(_data?: any) {
6438
+ if (_data) {
6439
+ this.enabled = _data["enabled"];
6440
+ this.hasLoginForm = _data["hasLoginForm"];
6441
+ this.authenticationType = _data["authenticationType"];
6442
+ this.priority = _data["priority"];
6443
+ }
6444
+ }
6445
+
6446
+ static fromJS(data: any): LoginType {
6447
+ data = typeof data === 'object' ? data : {};
6448
+ let result = new LoginType();
6449
+ result.init(data);
6450
+ return result;
6451
+ }
6452
+
6453
+ toJSON(data?: any) {
6454
+ data = typeof data === 'object' ? data : {};
6455
+ data["enabled"] = this.enabled;
6456
+ data["hasLoginForm"] = this.hasLoginForm;
6457
+ data["authenticationType"] = this.authenticationType;
6458
+ data["priority"] = this.priority;
6459
+ return data;
6460
+ }
6461
+ }
6462
+
6463
+ export interface ILoginType {
6464
+ enabled?: boolean;
6465
+ hasLoginForm?: boolean;
6466
+ authenticationType?: string | undefined;
6467
+ priority?: number;
6468
+ }
6469
+
6349
6470
  export class ModuleAutoInstallPushNotification implements IModuleAutoInstallPushNotification {
6350
6471
  started?: Date | undefined;
6351
6472
  finished?: Date | undefined;
@@ -8866,4 +8987,4 @@ function throwException(message: string, status: number, response: string, heade
8866
8987
  throw new ApiException(message, status, response, headers, null);
8867
8988
  }
8868
8989
 
8869
- /* eslint-disable */
8990
+ /* eslint-disable */