@orbis-systems/orbis-api-clients 0.5.3 → 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.');
@@ -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
@@ -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);
@@ -3168,6 +3288,23 @@ var $64de154218b7fbdb$export$b942b4f86682a31c = /*#__PURE__*/ function(UmaOption
3168
3288
  UmaOption["TOTPMfaOption"] = "totp";
3169
3289
  return UmaOption;
3170
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
+ }({});
3171
3308
  var $64de154218b7fbdb$export$f225bf8d20c34dc4 = /*#__PURE__*/ function(UmaAuthProviderAppType) {
3172
3309
  UmaAuthProviderAppType["GoogleOAuth2Provider"] = "google-oauth2";
3173
3310
  UmaAuthProviderAppType["AppleIDOAuth2Provider"] = "apple-id";
@@ -3183,6 +3320,20 @@ var $64de154218b7fbdb$export$d0740a1f11370fb3 = /*#__PURE__*/ function(UmaEntity
3183
3320
  UmaEntityAccessType["HighLevelEntityAccessType"] = "high-level";
3184
3321
  return UmaEntityAccessType;
3185
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
+ }({});
3186
3337
  var $64de154218b7fbdb$export$6cb5e83f5f5af956 = /*#__PURE__*/ function(UmaPermissionAG) {
3187
3338
  UmaPermissionAG["ChiefadminPermissionAG"] = "chiefadmin";
3188
3339
  UmaPermissionAG["SuperadminPermissionAG"] = "superadmin";
@@ -3199,6 +3350,7 @@ var $64de154218b7fbdb$export$40c85964c9d60a16 = /*#__PURE__*/ function(UmaUserSt
3199
3350
  var $64de154218b7fbdb$export$51b69238136d8bf1 = /*#__PURE__*/ function(UmaUserType) {
3200
3351
  UmaUserType["B2BUserType"] = "b2b";
3201
3352
  UmaUserType["SystemUserType"] = "system";
3353
+ UmaUserType["B2CUserType"] = "b2c";
3202
3354
  return UmaUserType;
3203
3355
  }({});
3204
3356
  var $64de154218b7fbdb$export$9eb6fa5a85b589e6 = /*#__PURE__*/ function(UmaTenantSettingLabel) {
@@ -3735,6 +3887,7 @@ $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $ffa44a7a6cb1797b$exports);
3735
3887
  $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $804aecfbbda535b0$exports);
3736
3888
  $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $1e21fcd680cfce14$exports);
3737
3889
  $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $fa365a2bc9112c99$exports);
3890
+ $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $8a7b2186643ed4fa$exports);
3738
3891
  $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $64de154218b7fbdb$exports);
3739
3892
  $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $80f9a3dfb8c7bd16$exports);
3740
3893
  $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $9d93f73b1440f840$exports);
@@ -3807,8 +3960,10 @@ class $e0cb59dd918b422a$export$ae615290d7b354e extends (0, $780091c10287ceed$exp
3807
3960
  this.roleTypes = new (0, $3b4bcede9184e796$export$2cb4a31baf73b247)(this.apiClient);
3808
3961
  this.secretNotes = new (0, $35dafdf54ad816d8$export$49d1d1bca95f1922)(this.apiClient);
3809
3962
  this.sessions = new (0, $ffa44a7a6cb1797b$export$c8d7e81b9a544c06)(this.apiClient);
3963
+ this.systemUsers = new (0, $804aecfbbda535b0$export$636de4c783ade7b8)(this.apiClient);
3810
3964
  this.tablePresets = new (0, $1e21fcd680cfce14$export$f946eed22c6da23d)(this.apiClient);
3811
3965
  this.tags = new (0, $fa365a2bc9112c99$export$b72686b556e29ca6)(this.apiClient);
3966
+ this.trustedDevices = new (0, $8a7b2186643ed4fa$export$31b14c8b5a956c9c)(this.apiClient);
3812
3967
  this.userDetails = new (0, $80f9a3dfb8c7bd16$export$a398983943bbde23)(this.apiClient);
3813
3968
  this.usersCommon = new (0, $9d93f73b1440f840$export$12728e6e259e1581)(this.apiClient);
3814
3969
  this.watchmenAuth = new (0, $3d93a2bbc8d670c7$export$b5681ba9d8d05c26)(this.apiClient);