@orbis-systems/orbis-api-clients 0.5.2 → 0.6.0

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/dist/uma/index.js CHANGED
@@ -87,6 +87,7 @@ class $3621850f1f570615$export$4f22f74eddb7716a {
87
87
  this.storage = config.storage ?? sessionStorage;
88
88
  this.axiosInstance = (0, ($parcel$interopDefault($l6jTM$axios))).create({
89
89
  baseURL: config.baseUrl,
90
+ withCredentials: config.withCredentials,
90
91
  headers: {
91
92
  'Content-Type': 'application/json',
92
93
  ...config.defaultHeaders
@@ -228,6 +229,7 @@ class $538ed1203bac2e79$export$f280b732bbc5934b extends (0, $3621850f1f570615$ex
228
229
  this.renewTokenCallback = renewTokenCallback;
229
230
  }
230
231
  async prepareAuthRequestConfig() {
232
+ if (this.config.withCredentials) return {};
231
233
  let { accessToken: accessToken } = this.getAuthData() || {};
232
234
  if (!accessToken) {
233
235
  (0, $l6jTM$consola.consola).warn('No access token found. Please set auth data after authorization.');
@@ -252,7 +254,7 @@ class $538ed1203bac2e79$export$f280b732bbc5934b extends (0, $3621850f1f570615$ex
252
254
  isTokenExpired(token) {
253
255
  const payload = (0, $l6jTM$jwtdecode.jwtDecode)(token);
254
256
  if (!payload.exp) return true;
255
- return (0, $l6jTM$datefns.isBefore)((0, $l6jTM$datefns.subMinutes)(payload.exp * 1000, 5), Date.now());
257
+ return (0, $l6jTM$datefns.isBefore)((0, $l6jTM$datefns.subMinutes)(payload.exp * 1000, 1), Date.now());
256
258
  }
257
259
  async renewToken() {
258
260
  const callback = this.config.onRenewToken ?? this.renewTokenCallback;
@@ -918,6 +920,21 @@ class $c1c4df84d5d3a23d$export$9f8c8ef54665205 {
918
920
  responseType: 'json'
919
921
  });
920
922
  }
923
+ /**
924
+ * @description Generate B2B User PDF
925
+ * @tags b2b_users
926
+ * @name GenerateAsPdf
927
+ * @summary Generate B2B User PDF
928
+ * @request POST:/v1/users/b2b/{id}/generate-as-pdf
929
+ * @secure
930
+ */ generateAsPdf(id, config) {
931
+ return this.apiClient.request({
932
+ ...config,
933
+ url: `/v1/users/b2b/${id}/generate-as-pdf`,
934
+ method: 'POST',
935
+ secure: true
936
+ });
937
+ }
921
938
  /**
922
939
  * @description Change B2B User status
923
940
  * @tags b2b_users
@@ -1408,6 +1425,21 @@ class $8679c96643548d8f$export$50c35e5cd2b1a04b {
1408
1425
  responseType: 'json'
1409
1426
  });
1410
1427
  }
1428
+ /**
1429
+ * @description Generate B2C User PDF
1430
+ * @tags b2c_users
1431
+ * @name GenerateAsPdf
1432
+ * @summary Generate B2C User PDF
1433
+ * @request POST:/v1/users/b2c/{id}/generate-as-pdf
1434
+ * @secure
1435
+ */ generateAsPdf(id, config) {
1436
+ return this.apiClient.request({
1437
+ ...config,
1438
+ url: `/v1/users/b2c/${id}/generate-as-pdf`,
1439
+ method: 'POST',
1440
+ secure: true
1441
+ });
1442
+ }
1411
1443
  /**
1412
1444
  * @description Change B2C User status
1413
1445
  * @tags b2c_users
@@ -1464,7 +1496,7 @@ class $6a1ecdc6ed5475ef$export$af92e794dd76d018 {
1464
1496
  (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
1465
1497
  }
1466
1498
  /**
1467
- * @description Set B2C User Settings
1499
+ * @description Set B2C User Settings (test)
1468
1500
  * @tags b2c_user_settings
1469
1501
  * @name SetUserSettings
1470
1502
  * @summary Set B2C User Settings
@@ -2491,6 +2523,21 @@ class $46005671a41e8997$export$d1d9e451800db729 {
2491
2523
  responseType: 'json'
2492
2524
  });
2493
2525
  }
2526
+ /**
2527
+ * @description Generate Role PDF
2528
+ * @tags roles
2529
+ * @name GenerateAsPdf
2530
+ * @summary Generate Role PDF
2531
+ * @request POST:/v1/roles/{id}/generate-as-pdf
2532
+ * @secure
2533
+ */ generateAsPdf(id, config) {
2534
+ return this.apiClient.request({
2535
+ ...config,
2536
+ url: `/v1/roles/${id}/generate-as-pdf`,
2537
+ method: 'POST',
2538
+ secure: true
2539
+ });
2540
+ }
2494
2541
  /**
2495
2542
  * @description Get Roles with pagination
2496
2543
  * @tags roles
@@ -2847,6 +2894,21 @@ class $804aecfbbda535b0$export$636de4c783ade7b8 {
2847
2894
  responseType: 'json'
2848
2895
  });
2849
2896
  }
2897
+ /**
2898
+ * @description Generate System User PDF
2899
+ * @tags system_users
2900
+ * @name GenerateAsPdf
2901
+ * @summary Generate System User PDF
2902
+ * @request POST:/v1/users/system/{id}/generate-as-pdf
2903
+ * @secure
2904
+ */ generateAsPdf(id, config) {
2905
+ return this.apiClient.request({
2906
+ ...config,
2907
+ url: `/v1/users/system/${id}/generate-as-pdf`,
2908
+ method: 'POST',
2909
+ secure: true
2910
+ });
2911
+ }
2850
2912
  /**
2851
2913
  * @description Change System User status
2852
2914
  * @tags system_users
@@ -3028,6 +3090,61 @@ class $fa365a2bc9112c99$export$b72686b556e29ca6 {
3028
3090
  }
3029
3091
 
3030
3092
 
3093
+ var $8a7b2186643ed4fa$exports = {};
3094
+
3095
+ $parcel$export($8a7b2186643ed4fa$exports, "TrustedDevices", () => $8a7b2186643ed4fa$export$31b14c8b5a956c9c);
3096
+ /* eslint-disable */ /* tslint:disable */ /*
3097
+ * ---------------------------------------------------------------
3098
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
3099
+ * ## ##
3100
+ * ## AUTHOR: acacode ##
3101
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
3102
+ * ---------------------------------------------------------------
3103
+ */
3104
+
3105
+ class $8a7b2186643ed4fa$export$31b14c8b5a956c9c {
3106
+ constructor(apiClient){
3107
+ this.apiClient = apiClient;
3108
+ (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
3109
+ }
3110
+ /**
3111
+ * @description Delete trusted devices
3112
+ * @tags trusted_devices
3113
+ * @name DeleteMany
3114
+ * @summary Delete trusted devices
3115
+ * @request DELETE:/v1/auth/trusted-devices
3116
+ * @secure
3117
+ */ deleteMany(deleteTrustedDevicesDto, config) {
3118
+ return this.apiClient.request({
3119
+ ...config,
3120
+ url: `/v1/auth/trusted-devices`,
3121
+ method: 'DELETE',
3122
+ data: deleteTrustedDevicesDto,
3123
+ secure: true,
3124
+ contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
3125
+ });
3126
+ }
3127
+ /**
3128
+ * @description Get trusted devices
3129
+ * @tags trusted_devices
3130
+ * @name Get
3131
+ * @summary Get trusted devices
3132
+ * @request POST:/v1/auth/trusted-devices/list
3133
+ * @secure
3134
+ */ get(getTrustedDevicesListDto, config) {
3135
+ return this.apiClient.request({
3136
+ ...config,
3137
+ url: `/v1/auth/trusted-devices/list`,
3138
+ method: 'POST',
3139
+ data: getTrustedDevicesListDto,
3140
+ secure: true,
3141
+ contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3142
+ responseType: 'json'
3143
+ });
3144
+ }
3145
+ }
3146
+
3147
+
3031
3148
  var $64de154218b7fbdb$exports = {};
3032
3149
 
3033
3150
  $parcel$export($64de154218b7fbdb$exports, "UmaAuthAppType", () => $64de154218b7fbdb$export$80a68721ef65174d);
@@ -3035,9 +3152,12 @@ $parcel$export($64de154218b7fbdb$exports, "UmaAuthUserType", () => $64de154218b7
3035
3152
  $parcel$export($64de154218b7fbdb$exports, "UmaResetPasswordType", () => $64de154218b7fbdb$export$4d8761baa197d101);
3036
3153
  $parcel$export($64de154218b7fbdb$exports, "UmaErrorCode", () => $64de154218b7fbdb$export$26e40f3b3a68dd88);
3037
3154
  $parcel$export($64de154218b7fbdb$exports, "UmaOption", () => $64de154218b7fbdb$export$b942b4f86682a31c);
3155
+ $parcel$export($64de154218b7fbdb$exports, "UmaActionTrigger", () => $64de154218b7fbdb$export$dd3d01a6c6dab020);
3156
+ $parcel$export($64de154218b7fbdb$exports, "UmaActionType", () => $64de154218b7fbdb$export$6a1481c139cb5523);
3038
3157
  $parcel$export($64de154218b7fbdb$exports, "UmaAuthProviderAppType", () => $64de154218b7fbdb$export$f225bf8d20c34dc4);
3039
3158
  $parcel$export($64de154218b7fbdb$exports, "UmaEndpointType", () => $64de154218b7fbdb$export$fbeeb34ec62b81a3);
3040
3159
  $parcel$export($64de154218b7fbdb$exports, "UmaEntityAccessType", () => $64de154218b7fbdb$export$d0740a1f11370fb3);
3160
+ $parcel$export($64de154218b7fbdb$exports, "UmaEntityName", () => $64de154218b7fbdb$export$1c13342d5e11f506);
3041
3161
  $parcel$export($64de154218b7fbdb$exports, "UmaPermissionAG", () => $64de154218b7fbdb$export$6cb5e83f5f5af956);
3042
3162
  $parcel$export($64de154218b7fbdb$exports, "UmaUserStatus", () => $64de154218b7fbdb$export$40c85964c9d60a16);
3043
3163
  $parcel$export($64de154218b7fbdb$exports, "UmaUserType", () => $64de154218b7fbdb$export$51b69238136d8bf1);
@@ -3056,11 +3176,9 @@ $parcel$export($64de154218b7fbdb$exports, "UmaCreateRoleDtoAssignmentGroupEnum",
3056
3176
  $parcel$export($64de154218b7fbdb$exports, "UmaCreateSecretNoteDtoTypeEnum", () => $64de154218b7fbdb$export$1185a2dff04b24a9);
3057
3177
  $parcel$export($64de154218b7fbdb$exports, "UmaEndpointMetadataDtoUserTypeEnum", () => $64de154218b7fbdb$export$dc5b15ad0821f43b);
3058
3178
  $parcel$export($64de154218b7fbdb$exports, "UmaEndpointSerializerMethodEnum", () => $64de154218b7fbdb$export$139725f1c32bb1b1);
3059
- $parcel$export($64de154218b7fbdb$exports, "UmaGetB2CUsersListFiltersDtoTypeEnum", () => $64de154218b7fbdb$export$4a93085e3ec25283);
3060
3179
  $parcel$export($64de154218b7fbdb$exports, "UmaGetB2CUsersListFiltersDtoShowOnlyEnum", () => $64de154218b7fbdb$export$b42b48ae4eee4675);
3061
3180
  $parcel$export($64de154218b7fbdb$exports, "UmaGetFirmsListFiltersDtoStatusesEnum", () => $64de154218b7fbdb$export$d860c2e62b63d49b);
3062
3181
  $parcel$export($64de154218b7fbdb$exports, "UmaGetIdentityProvidersListFiltersDtoTypesEnum", () => $64de154218b7fbdb$export$7da111135c500e8e);
3063
- $parcel$export($64de154218b7fbdb$exports, "UmaGetUsersListFiltersDtoTypeEnum", () => $64de154218b7fbdb$export$b3b8396b0f842b7f);
3064
3182
  $parcel$export($64de154218b7fbdb$exports, "UmaGetUsersListFiltersDtoShowOnlyEnum", () => $64de154218b7fbdb$export$57978e26cf68bf29);
3065
3183
  $parcel$export($64de154218b7fbdb$exports, "UmaGetWebAuthnLoginChallengeDtoUserTypeEnum", () => $64de154218b7fbdb$export$cf1623cf2c62174d);
3066
3184
  $parcel$export($64de154218b7fbdb$exports, "UmaIdentityProviderSerializerTypeEnum", () => $64de154218b7fbdb$export$74fda118814b2c69);
@@ -3170,6 +3288,23 @@ var $64de154218b7fbdb$export$b942b4f86682a31c = /*#__PURE__*/ function(UmaOption
3170
3288
  UmaOption["TOTPMfaOption"] = "totp";
3171
3289
  return UmaOption;
3172
3290
  }({});
3291
+ var $64de154218b7fbdb$export$dd3d01a6c6dab020 = /*#__PURE__*/ function(UmaActionTrigger) {
3292
+ UmaActionTrigger["B2BUserTrigger"] = "b2b_user";
3293
+ UmaActionTrigger["OwnerUserTrigger"] = "owner_user";
3294
+ UmaActionTrigger["RegularMigrationsTrigger"] = "regular_migrations";
3295
+ UmaActionTrigger["DataMigrationsTrigger"] = "data_migrations";
3296
+ return UmaActionTrigger;
3297
+ }({});
3298
+ var $64de154218b7fbdb$export$6a1481c139cb5523 = /*#__PURE__*/ function(UmaActionType) {
3299
+ UmaActionType["CreateAction"] = "create";
3300
+ UmaActionType["UpdateAction"] = "update";
3301
+ UmaActionType["DeleteAction"] = "delete";
3302
+ UmaActionType["ResetPasswordAction"] = "reset_password";
3303
+ UmaActionType["RegistrationAction"] = "registration";
3304
+ UmaActionType["SettingsChangeAction"] = "settings_change";
3305
+ UmaActionType["AvatarChangeAction"] = "avatar_change";
3306
+ return UmaActionType;
3307
+ }({});
3173
3308
  var $64de154218b7fbdb$export$f225bf8d20c34dc4 = /*#__PURE__*/ function(UmaAuthProviderAppType) {
3174
3309
  UmaAuthProviderAppType["GoogleOAuth2Provider"] = "google-oauth2";
3175
3310
  UmaAuthProviderAppType["AppleIDOAuth2Provider"] = "apple-id";
@@ -3185,6 +3320,20 @@ var $64de154218b7fbdb$export$d0740a1f11370fb3 = /*#__PURE__*/ function(UmaEntity
3185
3320
  UmaEntityAccessType["HighLevelEntityAccessType"] = "high-level";
3186
3321
  return UmaEntityAccessType;
3187
3322
  }({});
3323
+ var $64de154218b7fbdb$export$1c13342d5e11f506 = /*#__PURE__*/ function(UmaEntityName) {
3324
+ UmaEntityName["B2BUsersEntity"] = "b2b_users";
3325
+ UmaEntityName["B2CUsersEntity"] = "b2c_users";
3326
+ UmaEntityName["RolesEntity"] = "roles";
3327
+ UmaEntityName["RoleTypesEntity"] = "role_types";
3328
+ UmaEntityName["PermissionsEntity"] = "permissions";
3329
+ UmaEntityName["MicroservicesEntity"] = "microservices";
3330
+ UmaEntityName["IdentityProvidersEntity"] = "identity_providers";
3331
+ UmaEntityName["FirmsEntity"] = "firms";
3332
+ UmaEntityName["EndpointsEntity"] = "endpoints";
3333
+ UmaEntityName["BranchesEntity"] = "branches";
3334
+ UmaEntityName["APIKeysEntity"] = "api_keys";
3335
+ return UmaEntityName;
3336
+ }({});
3188
3337
  var $64de154218b7fbdb$export$6cb5e83f5f5af956 = /*#__PURE__*/ function(UmaPermissionAG) {
3189
3338
  UmaPermissionAG["ChiefadminPermissionAG"] = "chiefadmin";
3190
3339
  UmaPermissionAG["SuperadminPermissionAG"] = "superadmin";
@@ -3201,6 +3350,7 @@ var $64de154218b7fbdb$export$40c85964c9d60a16 = /*#__PURE__*/ function(UmaUserSt
3201
3350
  var $64de154218b7fbdb$export$51b69238136d8bf1 = /*#__PURE__*/ function(UmaUserType) {
3202
3351
  UmaUserType["B2BUserType"] = "b2b";
3203
3352
  UmaUserType["SystemUserType"] = "system";
3353
+ UmaUserType["B2CUserType"] = "b2c";
3204
3354
  return UmaUserType;
3205
3355
  }({});
3206
3356
  var $64de154218b7fbdb$export$9eb6fa5a85b589e6 = /*#__PURE__*/ function(UmaTenantSettingLabel) {
@@ -3290,11 +3440,6 @@ var $64de154218b7fbdb$export$139725f1c32bb1b1 = /*#__PURE__*/ function(UmaEndpoi
3290
3440
  UmaEndpointSerializerMethodEnum["ALL"] = "ALL";
3291
3441
  return UmaEndpointSerializerMethodEnum;
3292
3442
  }({});
3293
- var $64de154218b7fbdb$export$4a93085e3ec25283 = /*#__PURE__*/ function(UmaGetB2CUsersListFiltersDtoTypeEnum) {
3294
- UmaGetB2CUsersListFiltersDtoTypeEnum["B2B"] = "b2b";
3295
- UmaGetB2CUsersListFiltersDtoTypeEnum["System"] = "system";
3296
- return UmaGetB2CUsersListFiltersDtoTypeEnum;
3297
- }({});
3298
3443
  var $64de154218b7fbdb$export$b42b48ae4eee4675 = /*#__PURE__*/ function(UmaGetB2CUsersListFiltersDtoShowOnlyEnum) {
3299
3444
  UmaGetB2CUsersListFiltersDtoShowOnlyEnum["Admin"] = "admin";
3300
3445
  UmaGetB2CUsersListFiltersDtoShowOnlyEnum["BranchAdmin"] = "branch_admin";
@@ -3312,11 +3457,6 @@ var $64de154218b7fbdb$export$7da111135c500e8e = /*#__PURE__*/ function(UmaGetIde
3312
3457
  UmaGetIdentityProvidersListFiltersDtoTypesEnum["Okta"] = "okta";
3313
3458
  return UmaGetIdentityProvidersListFiltersDtoTypesEnum;
3314
3459
  }({});
3315
- var $64de154218b7fbdb$export$b3b8396b0f842b7f = /*#__PURE__*/ function(UmaGetUsersListFiltersDtoTypeEnum) {
3316
- UmaGetUsersListFiltersDtoTypeEnum["B2B"] = "b2b";
3317
- UmaGetUsersListFiltersDtoTypeEnum["System"] = "system";
3318
- return UmaGetUsersListFiltersDtoTypeEnum;
3319
- }({});
3320
3460
  var $64de154218b7fbdb$export$57978e26cf68bf29 = /*#__PURE__*/ function(UmaGetUsersListFiltersDtoShowOnlyEnum) {
3321
3461
  UmaGetUsersListFiltersDtoShowOnlyEnum["Admin"] = "admin";
3322
3462
  UmaGetUsersListFiltersDtoShowOnlyEnum["BranchAdmin"] = "branch_admin";
@@ -3747,6 +3887,7 @@ $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $ffa44a7a6cb1797b$exports);
3747
3887
  $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $804aecfbbda535b0$exports);
3748
3888
  $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $1e21fcd680cfce14$exports);
3749
3889
  $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $fa365a2bc9112c99$exports);
3890
+ $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $8a7b2186643ed4fa$exports);
3750
3891
  $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $64de154218b7fbdb$exports);
3751
3892
  $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $80f9a3dfb8c7bd16$exports);
3752
3893
  $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $9d93f73b1440f840$exports);
@@ -3819,8 +3960,10 @@ class $e0cb59dd918b422a$export$ae615290d7b354e extends (0, $780091c10287ceed$exp
3819
3960
  this.roleTypes = new (0, $3b4bcede9184e796$export$2cb4a31baf73b247)(this.apiClient);
3820
3961
  this.secretNotes = new (0, $35dafdf54ad816d8$export$49d1d1bca95f1922)(this.apiClient);
3821
3962
  this.sessions = new (0, $ffa44a7a6cb1797b$export$c8d7e81b9a544c06)(this.apiClient);
3963
+ this.systemUsers = new (0, $804aecfbbda535b0$export$636de4c783ade7b8)(this.apiClient);
3822
3964
  this.tablePresets = new (0, $1e21fcd680cfce14$export$f946eed22c6da23d)(this.apiClient);
3823
3965
  this.tags = new (0, $fa365a2bc9112c99$export$b72686b556e29ca6)(this.apiClient);
3966
+ this.trustedDevices = new (0, $8a7b2186643ed4fa$export$31b14c8b5a956c9c)(this.apiClient);
3824
3967
  this.userDetails = new (0, $80f9a3dfb8c7bd16$export$a398983943bbde23)(this.apiClient);
3825
3968
  this.usersCommon = new (0, $9d93f73b1440f840$export$12728e6e259e1581)(this.apiClient);
3826
3969
  this.watchmenAuth = new (0, $3d93a2bbc8d670c7$export$b5681ba9d8d05c26)(this.apiClient);