oro-sdk-apis 5.15.4 → 5.17.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -385,6 +385,7 @@ export interface PracticeWorkflow {
385
385
  uuidWorkflow: string;
386
386
  typeWorkflow: WorkflowType;
387
387
  tagSpecialty?: string;
388
+ associatedWorkflowUuid?: string;
388
389
  }
389
390
  export declare type PracticeWorkflowWithTagSpecialty = PracticeWorkflow & {
390
391
  tagSpecialty: string;
@@ -407,6 +408,7 @@ export interface PracticePlan {
407
408
  dateCreatedAt: Date;
408
409
  dateUpdateAt: Date;
409
410
  ratePerThousandOverride: number;
411
+ activateFollowUp: boolean;
410
412
  }
411
413
  export declare enum StripePriceType {
412
414
  Default = "Default",
@@ -245,8 +245,8 @@ export interface WorkflowData {
245
245
  */
246
246
  hidePlanRules?: HidePlanRule[];
247
247
  /**
248
- * (optional) extension of another workflow referenced by uuid
249
- */
248
+ * (optional) extension of another workflow referenced by uuid
249
+ */
250
250
  extendingWorkflow?: string;
251
251
  /**
252
252
  * (optional) rules for the extension of another workflow
@@ -8,6 +8,7 @@ var hash_js = require('hash.js');
8
8
  var _ = require('buffer/');
9
9
  var createAuthRefreshInterceptor = _interopDefault(require('axios-auth-refresh'));
10
10
  var axios = _interopDefault(require('axios'));
11
+ var uuid = require('uuid');
11
12
 
12
13
  /**
13
14
  * This function return a base64 string representation of a hashed string
@@ -549,10 +550,13 @@ var APIService = /*#__PURE__*/function (_AxiosService) {
549
550
  _this.tokenRefreshFailureCallback = tokenRefreshFailureCallback;
550
551
  _this.tokens = {};
551
552
  var self = _assertThisInitialized(_this);
553
+ var sessionId = uuid.v4();
552
554
  _this.axios.interceptors.request.use(function (config) {
553
555
  var token = config.useRefreshToken ? self.getTokens().refreshToken : self.getTokens().accessToken;
554
556
  config.headers = _extends({}, config.headers, {
555
- Authorization: "Bearer " + token
557
+ Authorization: "Bearer " + token,
558
+ 'X-Session-Id': sessionId,
559
+ 'X-Request-Id': uuid.v4()
556
560
  });
557
561
  return config;
558
562
  }, function (error) {