oro-sdk-apis 3.4.0 → 3.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.
@@ -24,7 +24,7 @@ export interface M2MTokenRequest {
24
24
  clientId: string;
25
25
  clientSecret: string;
26
26
  requestedScopes: string[];
27
- practiceUuid: string;
27
+ practiceUuid?: string;
28
28
  }
29
29
  export interface AuthRecoverRequest {
30
30
  practiceUuid: string;
@@ -62,9 +62,15 @@ export interface TileRadioData extends ChoiceInputData {
62
62
  image?: string;
63
63
  description?: string;
64
64
  }
65
+ export declare enum InputApplyFunctions {
66
+ MakeUpperCase = "MakeUpperCase",
67
+ MakeLowerCase = "MakeLowerCase",
68
+ RemoveAllSpaces = "RemoveAllSpaces"
69
+ }
65
70
  export interface EntryData {
66
71
  id?: number;
67
72
  label?: string;
73
+ inputApply?: InputApplyFunctions | InputApplyFunctions[];
68
74
  hideLabel?: boolean;
69
75
  minorLabel?: string;
70
76
  summaryLabel?: string;
@@ -25,6 +25,9 @@ function _regeneratorRuntime() {
25
25
  var exports = {},
26
26
  Op = Object.prototype,
27
27
  hasOwn = Op.hasOwnProperty,
28
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
29
+ obj[key] = desc.value;
30
+ },
28
31
  $Symbol = "function" == typeof Symbol ? Symbol : {},
29
32
  iteratorSymbol = $Symbol.iterator || "@@iterator",
30
33
  asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
@@ -48,40 +51,9 @@ function _regeneratorRuntime() {
48
51
  var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
49
52
  generator = Object.create(protoGenerator.prototype),
50
53
  context = new Context(tryLocsList || []);
51
- return generator._invoke = function (innerFn, self, context) {
52
- var state = "suspendedStart";
53
- return function (method, arg) {
54
- if ("executing" === state) throw new Error("Generator is already running");
55
- if ("completed" === state) {
56
- if ("throw" === method) throw arg;
57
- return doneResult();
58
- }
59
- for (context.method = method, context.arg = arg;;) {
60
- var delegate = context.delegate;
61
- if (delegate) {
62
- var delegateResult = maybeInvokeDelegate(delegate, context);
63
- if (delegateResult) {
64
- if (delegateResult === ContinueSentinel) continue;
65
- return delegateResult;
66
- }
67
- }
68
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
69
- if ("suspendedStart" === state) throw state = "completed", context.arg;
70
- context.dispatchException(context.arg);
71
- } else "return" === context.method && context.abrupt("return", context.arg);
72
- state = "executing";
73
- var record = tryCatch(innerFn, self, context);
74
- if ("normal" === record.type) {
75
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
76
- return {
77
- value: record.arg,
78
- done: context.done
79
- };
80
- }
81
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
82
- }
83
- };
84
- }(innerFn, self, context), generator;
54
+ return defineProperty(generator, "_invoke", {
55
+ value: makeInvokeMethod(innerFn, self, context)
56
+ }), generator;
85
57
  }
86
58
  function tryCatch(fn, obj, arg) {
87
59
  try {
@@ -135,13 +107,49 @@ function _regeneratorRuntime() {
135
107
  reject(record.arg);
136
108
  }
137
109
  var previousPromise;
138
- this._invoke = function (method, arg) {
139
- function callInvokeWithMethodAndArg() {
140
- return new PromiseImpl(function (resolve, reject) {
141
- invoke(method, arg, resolve, reject);
142
- });
110
+ defineProperty(this, "_invoke", {
111
+ value: function (method, arg) {
112
+ function callInvokeWithMethodAndArg() {
113
+ return new PromiseImpl(function (resolve, reject) {
114
+ invoke(method, arg, resolve, reject);
115
+ });
116
+ }
117
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
118
+ }
119
+ });
120
+ }
121
+ function makeInvokeMethod(innerFn, self, context) {
122
+ var state = "suspendedStart";
123
+ return function (method, arg) {
124
+ if ("executing" === state) throw new Error("Generator is already running");
125
+ if ("completed" === state) {
126
+ if ("throw" === method) throw arg;
127
+ return doneResult();
128
+ }
129
+ for (context.method = method, context.arg = arg;;) {
130
+ var delegate = context.delegate;
131
+ if (delegate) {
132
+ var delegateResult = maybeInvokeDelegate(delegate, context);
133
+ if (delegateResult) {
134
+ if (delegateResult === ContinueSentinel) continue;
135
+ return delegateResult;
136
+ }
137
+ }
138
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
139
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
140
+ context.dispatchException(context.arg);
141
+ } else "return" === context.method && context.abrupt("return", context.arg);
142
+ state = "executing";
143
+ var record = tryCatch(innerFn, self, context);
144
+ if ("normal" === record.type) {
145
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
146
+ return {
147
+ value: record.arg,
148
+ done: context.done
149
+ };
150
+ }
151
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
143
152
  }
144
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
145
153
  };
146
154
  }
147
155
  function maybeInvokeDelegate(delegate, context) {
@@ -197,7 +205,13 @@ function _regeneratorRuntime() {
197
205
  done: !0
198
206
  };
199
207
  }
200
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
208
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
209
+ value: GeneratorFunctionPrototype,
210
+ configurable: !0
211
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
212
+ value: GeneratorFunction,
213
+ configurable: !0
214
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
201
215
  var ctor = "function" == typeof genFun && genFun.constructor;
202
216
  return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
203
217
  }, exports.mark = function (genFun) {
@@ -218,8 +232,9 @@ function _regeneratorRuntime() {
218
232
  return this;
219
233
  }), define(Gp, "toString", function () {
220
234
  return "[object Generator]";
221
- }), exports.keys = function (object) {
222
- var keys = [];
235
+ }), exports.keys = function (val) {
236
+ var object = Object(val),
237
+ keys = [];
223
238
  for (var key in object) keys.push(key);
224
239
  return keys.reverse(), function next() {
225
240
  for (; keys.length;) {
@@ -654,18 +669,19 @@ var ApisPracticeManager = /*#__PURE__*/function () {
654
669
  function () {
655
670
  var _get = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(practiceUuid) {
656
671
  var _this = this;
657
- var practiceInstance, newPracticeInstance, authTokenFunc;
672
+ var cacheKey, practiceInstance, newPracticeInstance, authTokenFunc;
658
673
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
659
674
  while (1) {
660
675
  switch (_context2.prev = _context2.next) {
661
676
  case 0:
662
- practiceInstance = this.practiceInstances.get(practiceUuid);
677
+ cacheKey = practiceUuid != null ? practiceUuid : 'none';
678
+ practiceInstance = this.practiceInstances.get(cacheKey);
663
679
  if (!practiceInstance) {
664
- _context2.next = 3;
680
+ _context2.next = 4;
665
681
  break;
666
682
  }
667
683
  return _context2.abrupt("return", practiceInstance);
668
- case 3:
684
+ case 4:
669
685
  newPracticeInstance = init(this.serviceCollReq, undefined, this.useLocalStorage); // Create one auth token callback per practice since the practice uuid needs to change
670
686
  authTokenFunc = /*#__PURE__*/function () {
671
687
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
@@ -695,14 +711,14 @@ var ApisPracticeManager = /*#__PURE__*/function () {
695
711
  return _ref.apply(this, arguments);
696
712
  };
697
713
  }(); // Initialize the M2M token
698
- _context2.next = 7;
714
+ _context2.next = 8;
699
715
  return authTokenFunc();
700
- case 7:
716
+ case 8:
701
717
  // Set the refresh tokens callback
702
718
  newPracticeInstance.apiService.setAuthRefreshFn(authTokenFunc);
703
- this.practiceInstances.set(practiceUuid, newPracticeInstance);
719
+ this.practiceInstances.set(cacheKey, newPracticeInstance);
704
720
  return _context2.abrupt("return", newPracticeInstance);
705
- case 10:
721
+ case 11:
706
722
  case "end":
707
723
  return _context2.stop();
708
724
  }
@@ -1024,6 +1040,11 @@ var VaultDataMissing = /*#__PURE__*/function (_Error8) {
1024
1040
  DocumentType["ImageAlias"] = "ImageAlias";
1025
1041
  })(exports.DocumentType || (exports.DocumentType = {}));
1026
1042
 
1043
+ (function (InputApplyFunctions) {
1044
+ InputApplyFunctions["MakeUpperCase"] = "MakeUpperCase";
1045
+ InputApplyFunctions["MakeLowerCase"] = "MakeLowerCase";
1046
+ InputApplyFunctions["RemoveAllSpaces"] = "RemoveAllSpaces";
1047
+ })(exports.InputApplyFunctions || (exports.InputApplyFunctions = {}));
1027
1048
  (function (MetadataCategory) {
1028
1049
  MetadataCategory["ChildPersonal"] = "ChildPersonal";
1029
1050
  MetadataCategory["Consultation"] = "Consultation";