@ama-sdk/core 11.3.0-prerelease.11 → 11.3.0-prerelease.13

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/cjs/fwk/date.js CHANGED
@@ -36,6 +36,10 @@ function _assert_this_initialized(self) {
36
36
  }
37
37
  return self;
38
38
  }
39
+ function _call_super(_this, derived, args) {
40
+ derived = _get_prototype_of(derived);
41
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
42
+ }
39
43
  function _class_call_check(instance, Constructor) {
40
44
  if (!(instance instanceof Constructor)) {
41
45
  throw new TypeError("Cannot call a class as a function");
@@ -162,28 +166,12 @@ function _wrap_native_super(Class) {
162
166
  return _wrap_native_super(Class);
163
167
  }
164
168
  function _is_native_reflect_construct() {
165
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
166
- if (Reflect.construct.sham) return false;
167
- if (typeof Proxy === "function") return true;
168
169
  try {
169
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
170
- return true;
171
- } catch (e) {
172
- return false;
173
- }
174
- }
175
- function _create_super(Derived) {
176
- var hasNativeReflectConstruct = _is_native_reflect_construct();
177
- return function _createSuperInternal() {
178
- var Super = _get_prototype_of(Derived), result;
179
- if (hasNativeReflectConstruct) {
180
- var NewTarget = _get_prototype_of(this).constructor;
181
- result = Reflect.construct(Super, arguments, NewTarget);
182
- } else {
183
- result = Super.apply(this, arguments);
184
- }
185
- return _possible_constructor_return(this, result);
186
- };
170
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
171
+ } catch (_) {}
172
+ return (_is_native_reflect_construct = function() {
173
+ return !!result;
174
+ })();
187
175
  }
188
176
  var _NativeDateClass = Date;
189
177
  function pad(val) {
@@ -194,7 +182,6 @@ function pad(val) {
194
182
  var CommonDate = /*#__PURE__*/ function(Date1) {
195
183
  "use strict";
196
184
  _inherits(CommonDate, Date1);
197
- var _super = _create_super(CommonDate);
198
185
  function CommonDate() {
199
186
  for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
200
187
  args[_key] = arguments[_key];
@@ -223,9 +210,7 @@ var CommonDate = /*#__PURE__*/ function(Date1) {
223
210
  args[0] = args[0];
224
211
  }
225
212
  }
226
- return _super.call.apply(_super, [
227
- this
228
- ].concat(_to_consumable_array(args)));
213
+ return _call_super(this, CommonDate, _to_consumable_array(args));
229
214
  }
230
215
  _create_class(CommonDate, [
231
216
  {
@@ -244,7 +229,6 @@ var utils;
244
229
  'use strict';
245
230
  var _$Date = /*#__PURE__*/ function(CommonDate) {
246
231
  _inherits(Date1, CommonDate);
247
- var _super = _create_super(Date1);
248
232
  function Date1() {
249
233
  for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
250
234
  args[_key] = arguments[_key];
@@ -255,9 +239,7 @@ var utils;
255
239
  } else if (_instanceof(args[0], _NativeDateClass)) {
256
240
  args[0] = "".concat(args[0].getFullYear(), "-").concat(pad(args[0].getMonth() + 1), "-").concat(pad(args[0].getDate()), "T00:00:00Z");
257
241
  }
258
- return _super.call.apply(_super, [
259
- this
260
- ].concat(_to_consumable_array(args)));
242
+ return _call_super(this, Date1, _to_consumable_array(args));
261
243
  }
262
244
  _create_class(Date1, [
263
245
  {
@@ -294,15 +276,12 @@ var utils;
294
276
  utils.Date = _$Date;
295
277
  var DateTime = /*#__PURE__*/ function(CommonDate) {
296
278
  _inherits(DateTime, CommonDate);
297
- var _super = _create_super(DateTime);
298
279
  function DateTime() {
299
280
  for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
300
281
  args[_key] = arguments[_key];
301
282
  }
302
283
  _class_call_check(this, DateTime);
303
- return _super.call.apply(_super, [
304
- this
305
- ].concat(_to_consumable_array(args)));
284
+ return _call_super(this, DateTime, _to_consumable_array(args));
306
285
  }
307
286
  _create_class(DateTime, [
308
287
  {
package/cjs/fwk/errors.js CHANGED
@@ -36,6 +36,10 @@ function _assert_this_initialized(self) {
36
36
  }
37
37
  return self;
38
38
  }
39
+ function _call_super(_this, derived, args) {
40
+ derived = _get_prototype_of(derived);
41
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
42
+ }
39
43
  function _class_call_check(instance, Constructor) {
40
44
  if (!(instance instanceof Constructor)) {
41
45
  throw new TypeError("Cannot call a class as a function");
@@ -137,56 +141,41 @@ function _wrap_native_super(Class) {
137
141
  return _wrap_native_super(Class);
138
142
  }
139
143
  function _is_native_reflect_construct() {
140
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
141
- if (Reflect.construct.sham) return false;
142
- if (typeof Proxy === "function") return true;
143
144
  try {
144
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
145
- return true;
146
- } catch (e) {
147
- return false;
148
- }
149
- }
150
- function _create_super(Derived) {
151
- var hasNativeReflectConstruct = _is_native_reflect_construct();
152
- return function _createSuperInternal() {
153
- var Super = _get_prototype_of(Derived), result;
154
- if (hasNativeReflectConstruct) {
155
- var NewTarget = _get_prototype_of(this).constructor;
156
- result = Reflect.construct(Super, arguments, NewTarget);
157
- } else {
158
- result = Super.apply(this, arguments);
159
- }
160
- return _possible_constructor_return(this, result);
161
- };
145
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
146
+ } catch (_) {}
147
+ return (_is_native_reflect_construct = function() {
148
+ return !!result;
149
+ })();
162
150
  }
163
151
  var GenericError = /*#__PURE__*/ function(Error1) {
164
152
  "use strict";
165
153
  _inherits(GenericError, Error1);
166
- var _super = _create_super(GenericError);
167
154
  function GenericError(message, context) {
168
155
  _class_call_check(this, GenericError);
169
156
  var httpRegexp = /^https?:\/\//;
170
157
  var baseUrl = (context === null || context === void 0 ? void 0 : context.url) ? context.url.replace(httpRegexp, '') : 'unknown';
171
158
  var origin = (context === null || context === void 0 ? void 0 : context.origin) ? context.origin.replace(httpRegexp, '') : 'unknown';
172
- return _super.call(this, context ? "[SDK] [apiName: ".concat(context.apiName || 'unknown', "] [operationId: ").concat(context.operationId || 'unknown', "] [baseUrl: ").concat(baseUrl, "] [origin: ").concat(origin, "] [errorType: SDK] ").concat(message) : "[SDK] ".concat(message));
159
+ return _call_super(this, GenericError, [
160
+ context ? "[SDK] [apiName: ".concat(context.apiName || 'unknown', "] [operationId: ").concat(context.operationId || 'unknown', "] [baseUrl: ").concat(baseUrl, "] [origin: ").concat(origin, "] [errorType: SDK] ").concat(message) : "[SDK] ".concat(message)
161
+ ]);
173
162
  }
174
163
  return GenericError;
175
164
  }(_wrap_native_super(Error));
176
165
  var RequestFailedError = /*#__PURE__*/ function(GenericError) {
177
166
  "use strict";
178
167
  _inherits(RequestFailedError, GenericError);
179
- var _super = _create_super(RequestFailedError);
180
168
  function RequestFailedError(message, statusCode, data, context) {
181
169
  _class_call_check(this, RequestFailedError);
182
170
  var _this;
183
- _this = _super.call(this, "[status: ".concat(statusCode, "] ").concat(message), context);
184
- /**
171
+ _this = _call_super(this, RequestFailedError, [
172
+ "[status: ".concat(statusCode, "] ").concat(message),
173
+ context
174
+ ]), /**
185
175
  * Request status code
186
- */ _define_property(_assert_this_initialized(_this), "statusCode", void 0);
187
- /**
176
+ */ _define_property(_this, "statusCode", void 0), /**
188
177
  * Data decoded from the response body
189
- */ _define_property(_assert_this_initialized(_this), "data", void 0);
178
+ */ _define_property(_this, "data", void 0);
190
179
  _this.statusCode = statusCode;
191
180
  _this.data = data;
192
181
  return _this;
@@ -196,14 +185,15 @@ var RequestFailedError = /*#__PURE__*/ function(GenericError) {
196
185
  var EmptyResponseError = /*#__PURE__*/ function(GenericError) {
197
186
  "use strict";
198
187
  _inherits(EmptyResponseError, GenericError);
199
- var _super = _create_super(EmptyResponseError);
200
188
  function EmptyResponseError(message, data, context) {
201
189
  _class_call_check(this, EmptyResponseError);
202
190
  var _this;
203
- _this = _super.call(this, "[Empty response] ".concat(message), context);
204
- /**
191
+ _this = _call_super(this, EmptyResponseError, [
192
+ "[Empty response] ".concat(message),
193
+ context
194
+ ]), /**
205
195
  * Data decoded from the response body
206
- */ _define_property(_assert_this_initialized(_this), "data", void 0);
196
+ */ _define_property(_this, "data", void 0);
207
197
  _this.data = data;
208
198
  return _this;
209
199
  }
@@ -212,37 +202,43 @@ var EmptyResponseError = /*#__PURE__*/ function(GenericError) {
212
202
  var ResponseTimeoutError = /*#__PURE__*/ function(GenericError) {
213
203
  "use strict";
214
204
  _inherits(ResponseTimeoutError, GenericError);
215
- var _super = _create_super(ResponseTimeoutError);
216
205
  function ResponseTimeoutError(message, context) {
217
206
  _class_call_check(this, ResponseTimeoutError);
218
- return _super.call(this, "[Response timeout] ".concat(message), context);
207
+ return _call_super(this, ResponseTimeoutError, [
208
+ "[Response timeout] ".concat(message),
209
+ context
210
+ ]);
219
211
  }
220
212
  return ResponseTimeoutError;
221
213
  }(GenericError);
222
214
  var ResponseJSONParseError = /*#__PURE__*/ function(RequestFailedError) {
223
215
  "use strict";
224
216
  _inherits(ResponseJSONParseError, RequestFailedError);
225
- var _super = _create_super(ResponseJSONParseError);
226
217
  function ResponseJSONParseError(message, httpStatus, bodyContent, context) {
227
218
  _class_call_check(this, ResponseJSONParseError);
228
- return _super.call(this, "[Response JSON parse error] ".concat(message), httpStatus, bodyContent, context);
219
+ return _call_super(this, ResponseJSONParseError, [
220
+ "[Response JSON parse error] ".concat(message),
221
+ httpStatus,
222
+ bodyContent,
223
+ context
224
+ ]);
229
225
  }
230
226
  return ResponseJSONParseError;
231
227
  }(RequestFailedError);
232
228
  var CanceledCallError = /*#__PURE__*/ function(GenericError) {
233
229
  "use strict";
234
230
  _inherits(CanceledCallError, GenericError);
235
- var _super = _create_super(CanceledCallError);
236
231
  function CanceledCallError(message, pluginIndex, pluginCanceling, context) {
237
232
  _class_call_check(this, CanceledCallError);
238
233
  var _this;
239
- _this = _super.call(this, "[Canceled call] ".concat(message), context);
240
- /**
234
+ _this = _call_super(this, CanceledCallError, [
235
+ "[Canceled call] ".concat(message),
236
+ context
237
+ ]), /**
241
238
  * First plugin canceling the call
242
- */ _define_property(_assert_this_initialized(_this), "pluginCanceling", void 0);
243
- /**
239
+ */ _define_property(_this, "pluginCanceling", void 0), /**
244
240
  * Index of the first plugin canceling the call
245
- */ _define_property(_assert_this_initialized(_this), "pluginIndex", void 0);
241
+ */ _define_property(_this, "pluginIndex", void 0);
246
242
  _this.pluginIndex = pluginIndex;
247
243
  _this.pluginCanceling = pluginCanceling;
248
244
  return _this;
@@ -15,6 +15,10 @@ function _assert_this_initialized(self) {
15
15
  }
16
16
  return self;
17
17
  }
18
+ function _call_super(_this, derived, args) {
19
+ derived = _get_prototype_of(derived);
20
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
21
+ }
18
22
  function _class_call_check(instance, Constructor) {
19
23
  if (!(instance instanceof Constructor)) {
20
24
  throw new TypeError("Cannot call a class as a function");
@@ -84,38 +88,20 @@ function _type_of(obj) {
84
88
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
85
89
  }
86
90
  function _is_native_reflect_construct() {
87
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
88
- if (Reflect.construct.sham) return false;
89
- if (typeof Proxy === "function") return true;
90
91
  try {
91
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
92
- return true;
93
- } catch (e) {
94
- return false;
95
- }
96
- }
97
- function _create_super(Derived) {
98
- var hasNativeReflectConstruct = _is_native_reflect_construct();
99
- return function _createSuperInternal() {
100
- var Super = _get_prototype_of(Derived), result;
101
- if (hasNativeReflectConstruct) {
102
- var NewTarget = _get_prototype_of(this).constructor;
103
- result = Reflect.construct(Super, arguments, NewTarget);
104
- } else {
105
- result = Super.apply(this, arguments);
106
- }
107
- return _possible_constructor_return(this, result);
108
- };
92
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
93
+ } catch (_) {}
94
+ return (_is_native_reflect_construct = function() {
95
+ return !!result;
96
+ })();
109
97
  }
110
98
  var RandomMockAdapter = /*#__PURE__*/ function(BaseMockAdapter) {
111
99
  "use strict";
112
100
  _inherits(RandomMockAdapter, BaseMockAdapter);
113
- var _super = _create_super(RandomMockAdapter);
114
101
  function RandomMockAdapter() {
115
102
  _class_call_check(this, RandomMockAdapter);
116
103
  var _this;
117
- _this = _super.apply(this, arguments);
118
- _define_property(_assert_this_initialized(_this), "cache", {});
104
+ _this = _call_super(this, RandomMockAdapter, arguments), _define_property(_this, "cache", {});
119
105
  return _this;
120
106
  }
121
107
  _create_class(RandomMockAdapter, [
@@ -15,6 +15,10 @@ function _assert_this_initialized(self) {
15
15
  }
16
16
  return self;
17
17
  }
18
+ function _call_super(_this, derived, args) {
19
+ derived = _get_prototype_of(derived);
20
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
21
+ }
18
22
  function _class_call_check(instance, Constructor) {
19
23
  if (!(instance instanceof Constructor)) {
20
24
  throw new TypeError("Cannot call a class as a function");
@@ -84,38 +88,20 @@ function _type_of(obj) {
84
88
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
85
89
  }
86
90
  function _is_native_reflect_construct() {
87
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
88
- if (Reflect.construct.sham) return false;
89
- if (typeof Proxy === "function") return true;
90
91
  try {
91
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
92
- return true;
93
- } catch (e) {
94
- return false;
95
- }
96
- }
97
- function _create_super(Derived) {
98
- var hasNativeReflectConstruct = _is_native_reflect_construct();
99
- return function _createSuperInternal() {
100
- var Super = _get_prototype_of(Derived), result;
101
- if (hasNativeReflectConstruct) {
102
- var NewTarget = _get_prototype_of(this).constructor;
103
- result = Reflect.construct(Super, arguments, NewTarget);
104
- } else {
105
- result = Super.apply(this, arguments);
106
- }
107
- return _possible_constructor_return(this, result);
108
- };
92
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
93
+ } catch (_) {}
94
+ return (_is_native_reflect_construct = function() {
95
+ return !!result;
96
+ })();
109
97
  }
110
98
  var SequentialMockAdapter = /*#__PURE__*/ function(BaseMockAdapter) {
111
99
  "use strict";
112
100
  _inherits(SequentialMockAdapter, BaseMockAdapter);
113
- var _super = _create_super(SequentialMockAdapter);
114
101
  function SequentialMockAdapter() {
115
102
  _class_call_check(this, SequentialMockAdapter);
116
103
  var _this;
117
- _this = _super.apply(this, arguments);
118
- _define_property(_assert_this_initialized(_this), "operationCounter", {});
104
+ _this = _call_super(this, SequentialMockAdapter, arguments), _define_property(_this, "operationCounter", {});
119
105
  return _this;
120
106
  }
121
107
  _create_class(SequentialMockAdapter, [
@@ -15,6 +15,10 @@ function _assert_this_initialized(self) {
15
15
  }
16
16
  return self;
17
17
  }
18
+ function _call_super(_this, derived, args) {
19
+ derived = _get_prototype_of(derived);
20
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
21
+ }
18
22
  function _class_call_check(instance, Constructor) {
19
23
  if (!(instance instanceof Constructor)) {
20
24
  throw new TypeError("Cannot call a class as a function");
@@ -70,50 +74,33 @@ function _type_of(obj) {
70
74
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
71
75
  }
72
76
  function _is_native_reflect_construct() {
73
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
74
- if (Reflect.construct.sham) return false;
75
- if (typeof Proxy === "function") return true;
76
77
  try {
77
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
78
- return true;
79
- } catch (e) {
80
- return false;
81
- }
82
- }
83
- function _create_super(Derived) {
84
- var hasNativeReflectConstruct = _is_native_reflect_construct();
85
- return function _createSuperInternal() {
86
- var Super = _get_prototype_of(Derived), result;
87
- if (hasNativeReflectConstruct) {
88
- var NewTarget = _get_prototype_of(this).constructor;
89
- result = Reflect.construct(Super, arguments, NewTarget);
90
- } else {
91
- result = Super.apply(this, arguments);
92
- }
93
- return _possible_constructor_return(this, result);
94
- };
78
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
79
+ } catch (_) {}
80
+ return (_is_native_reflect_construct = function() {
81
+ return !!result;
82
+ })();
95
83
  }
96
84
  var SiTokenRequest = /*#__PURE__*/ function(AdditionalParamsRequest) {
97
85
  "use strict";
98
86
  _inherits(SiTokenRequest, AdditionalParamsRequest);
99
- var _super = _create_super(SiTokenRequest);
100
87
  function SiTokenRequest(siToken, siToken2) {
101
88
  _class_call_check(this, SiTokenRequest);
102
89
  var _this;
103
- _this = _super.call(this, {
104
- queryParams: function(queryParams) {
105
- var ret = queryParams || {};
106
- if (_this.siToken) {
107
- ret.SITK = _this.siToken;
108
- }
109
- if (_this.siToken2) {
110
- ret.SITK2 = _this.siToken2;
90
+ _this = _call_super(this, SiTokenRequest, [
91
+ {
92
+ queryParams: function(queryParams) {
93
+ var ret = queryParams || {};
94
+ if (_assert_this_initialized(_this).siToken) {
95
+ ret.SITK = _assert_this_initialized(_this).siToken;
96
+ }
97
+ if (_assert_this_initialized(_this).siToken2) {
98
+ ret.SITK2 = _assert_this_initialized(_this).siToken2;
99
+ }
100
+ return ret;
111
101
  }
112
- return ret;
113
102
  }
114
- });
115
- /** SI Token */ _define_property(_assert_this_initialized(_this), "siToken", void 0);
116
- /** SI Token 2 */ _define_property(_assert_this_initialized(_this), "siToken2", void 0);
103
+ ]), /** SI Token */ _define_property(_this, "siToken", void 0), /** SI Token 2 */ _define_property(_this, "siToken2", void 0);
117
104
  _this.siToken = siToken;
118
105
  _this.siToken2 = siToken2;
119
106
  return _this;
@@ -12,6 +12,10 @@ function _assert_this_initialized(self) {
12
12
  }
13
13
  return self;
14
14
  }
15
+ function _call_super(_this, derived, args) {
16
+ derived = _get_prototype_of(derived);
17
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
18
+ }
15
19
  function _class_call_check(instance, Constructor) {
16
20
  if (!(instance instanceof Constructor)) {
17
21
  throw new TypeError("Cannot call a class as a function");
@@ -138,28 +142,12 @@ function _wrap_native_super(Class) {
138
142
  return _wrap_native_super(Class);
139
143
  }
140
144
  function _is_native_reflect_construct() {
141
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
142
- if (Reflect.construct.sham) return false;
143
- if (typeof Proxy === "function") return true;
144
145
  try {
145
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
146
- return true;
147
- } catch (e) {
148
- return false;
149
- }
150
- }
151
- function _create_super(Derived) {
152
- var hasNativeReflectConstruct = _is_native_reflect_construct();
153
- return function _createSuperInternal() {
154
- var Super = _get_prototype_of(Derived), result;
155
- if (hasNativeReflectConstruct) {
156
- var NewTarget = _get_prototype_of(this).constructor;
157
- result = Reflect.construct(Super, arguments, NewTarget);
158
- } else {
159
- result = Super.apply(this, arguments);
160
- }
161
- return _possible_constructor_return(this, result);
162
- };
146
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
147
+ } catch (_) {}
148
+ return (_is_native_reflect_construct = function() {
149
+ return !!result;
150
+ })();
163
151
  }
164
152
  export var _NativeDateClass = Date;
165
153
  /**
@@ -175,7 +163,6 @@ export var _NativeDateClass = Date;
175
163
  export var CommonDate = /*#__PURE__*/ function(Date1) {
176
164
  "use strict";
177
165
  _inherits(CommonDate, Date1);
178
- var _super = _create_super(CommonDate);
179
166
  function CommonDate() {
180
167
  for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
181
168
  args[_key] = arguments[_key];
@@ -204,9 +191,7 @@ export var CommonDate = /*#__PURE__*/ function(Date1) {
204
191
  args[0] = args[0];
205
192
  }
206
193
  }
207
- return _super.call.apply(_super, [
208
- this
209
- ].concat(_to_consumable_array(args)));
194
+ return _call_super(this, CommonDate, _to_consumable_array(args));
210
195
  }
211
196
  _create_class(CommonDate, [
212
197
  {
@@ -225,7 +210,6 @@ export var utils;
225
210
  'use strict';
226
211
  var _$Date = /*#__PURE__*/ function(CommonDate) {
227
212
  _inherits(Date1, CommonDate);
228
- var _super = _create_super(Date1);
229
213
  function Date1() {
230
214
  for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
231
215
  args[_key] = arguments[_key];
@@ -236,9 +220,7 @@ export var utils;
236
220
  } else if (_instanceof(args[0], _NativeDateClass)) {
237
221
  args[0] = "".concat(args[0].getFullYear(), "-").concat(pad(args[0].getMonth() + 1), "-").concat(pad(args[0].getDate()), "T00:00:00Z");
238
222
  }
239
- return _super.call.apply(_super, [
240
- this
241
- ].concat(_to_consumable_array(args)));
223
+ return _call_super(this, Date1, _to_consumable_array(args));
242
224
  }
243
225
  _create_class(Date1, [
244
226
  {
@@ -275,15 +257,12 @@ export var utils;
275
257
  utils.Date = _$Date;
276
258
  var DateTime = /*#__PURE__*/ function(CommonDate) {
277
259
  _inherits(DateTime, CommonDate);
278
- var _super = _create_super(DateTime);
279
260
  function DateTime() {
280
261
  for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
281
262
  args[_key] = arguments[_key];
282
263
  }
283
264
  _class_call_check(this, DateTime);
284
- return _super.call.apply(_super, [
285
- this
286
- ].concat(_to_consumable_array(args)));
265
+ return _call_super(this, DateTime, _to_consumable_array(args));
287
266
  }
288
267
  _create_class(DateTime, [
289
268
  {
@@ -6,6 +6,10 @@
6
6
  }
7
7
  return self;
8
8
  }
9
+ function _call_super(_this, derived, args) {
10
+ derived = _get_prototype_of(derived);
11
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
12
+ }
9
13
  function _class_call_check(instance, Constructor) {
10
14
  if (!(instance instanceof Constructor)) {
11
15
  throw new TypeError("Cannot call a class as a function");
@@ -107,41 +111,26 @@ function _wrap_native_super(Class) {
107
111
  return _wrap_native_super(Class);
108
112
  }
109
113
  function _is_native_reflect_construct() {
110
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
111
- if (Reflect.construct.sham) return false;
112
- if (typeof Proxy === "function") return true;
113
114
  try {
114
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
115
- return true;
116
- } catch (e) {
117
- return false;
118
- }
119
- }
120
- function _create_super(Derived) {
121
- var hasNativeReflectConstruct = _is_native_reflect_construct();
122
- return function _createSuperInternal() {
123
- var Super = _get_prototype_of(Derived), result;
124
- if (hasNativeReflectConstruct) {
125
- var NewTarget = _get_prototype_of(this).constructor;
126
- result = Reflect.construct(Super, arguments, NewTarget);
127
- } else {
128
- result = Super.apply(this, arguments);
129
- }
130
- return _possible_constructor_return(this, result);
131
- };
115
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
116
+ } catch (_) {}
117
+ return (_is_native_reflect_construct = function() {
118
+ return !!result;
119
+ })();
132
120
  }
133
121
  /**
134
122
  * Generic error class
135
123
  */ export var GenericError = /*#__PURE__*/ function(Error1) {
136
124
  "use strict";
137
125
  _inherits(GenericError, Error1);
138
- var _super = _create_super(GenericError);
139
126
  function GenericError(message, context) {
140
127
  _class_call_check(this, GenericError);
141
128
  var httpRegexp = /^https?:\/\//;
142
129
  var baseUrl = (context === null || context === void 0 ? void 0 : context.url) ? context.url.replace(httpRegexp, '') : 'unknown';
143
130
  var origin = (context === null || context === void 0 ? void 0 : context.origin) ? context.origin.replace(httpRegexp, '') : 'unknown';
144
- return _super.call(this, context ? "[SDK] [apiName: ".concat(context.apiName || 'unknown', "] [operationId: ").concat(context.operationId || 'unknown', "] [baseUrl: ").concat(baseUrl, "] [origin: ").concat(origin, "] [errorType: SDK] ").concat(message) : "[SDK] ".concat(message));
131
+ return _call_super(this, GenericError, [
132
+ context ? "[SDK] [apiName: ".concat(context.apiName || 'unknown', "] [operationId: ").concat(context.operationId || 'unknown', "] [baseUrl: ").concat(baseUrl, "] [origin: ").concat(origin, "] [errorType: SDK] ").concat(message) : "[SDK] ".concat(message)
133
+ ]);
145
134
  }
146
135
  return GenericError;
147
136
  }(_wrap_native_super(Error));
@@ -150,17 +139,17 @@ function _create_super(Derived) {
150
139
  */ export var RequestFailedError = /*#__PURE__*/ function(GenericError) {
151
140
  "use strict";
152
141
  _inherits(RequestFailedError, GenericError);
153
- var _super = _create_super(RequestFailedError);
154
142
  function RequestFailedError(message, statusCode, data, context) {
155
143
  _class_call_check(this, RequestFailedError);
156
144
  var _this;
157
- _this = _super.call(this, "[status: ".concat(statusCode, "] ").concat(message), context);
158
- /**
145
+ _this = _call_super(this, RequestFailedError, [
146
+ "[status: ".concat(statusCode, "] ").concat(message),
147
+ context
148
+ ]), /**
159
149
  * Request status code
160
- */ _define_property(_assert_this_initialized(_this), "statusCode", void 0);
161
- /**
150
+ */ _define_property(_this, "statusCode", void 0), /**
162
151
  * Data decoded from the response body
163
- */ _define_property(_assert_this_initialized(_this), "data", void 0);
152
+ */ _define_property(_this, "data", void 0);
164
153
  _this.statusCode = statusCode;
165
154
  _this.data = data;
166
155
  return _this;
@@ -172,14 +161,15 @@ function _create_super(Derived) {
172
161
  */ export var EmptyResponseError = /*#__PURE__*/ function(GenericError) {
173
162
  "use strict";
174
163
  _inherits(EmptyResponseError, GenericError);
175
- var _super = _create_super(EmptyResponseError);
176
164
  function EmptyResponseError(message, data, context) {
177
165
  _class_call_check(this, EmptyResponseError);
178
166
  var _this;
179
- _this = _super.call(this, "[Empty response] ".concat(message), context);
180
- /**
167
+ _this = _call_super(this, EmptyResponseError, [
168
+ "[Empty response] ".concat(message),
169
+ context
170
+ ]), /**
181
171
  * Data decoded from the response body
182
- */ _define_property(_assert_this_initialized(_this), "data", void 0);
172
+ */ _define_property(_this, "data", void 0);
183
173
  _this.data = data;
184
174
  return _this;
185
175
  }
@@ -190,10 +180,12 @@ function _create_super(Derived) {
190
180
  */ export var ResponseTimeoutError = /*#__PURE__*/ function(GenericError) {
191
181
  "use strict";
192
182
  _inherits(ResponseTimeoutError, GenericError);
193
- var _super = _create_super(ResponseTimeoutError);
194
183
  function ResponseTimeoutError(message, context) {
195
184
  _class_call_check(this, ResponseTimeoutError);
196
- return _super.call(this, "[Response timeout] ".concat(message), context);
185
+ return _call_super(this, ResponseTimeoutError, [
186
+ "[Response timeout] ".concat(message),
187
+ context
188
+ ]);
197
189
  }
198
190
  return ResponseTimeoutError;
199
191
  }(GenericError);
@@ -202,10 +194,14 @@ function _create_super(Derived) {
202
194
  */ export var ResponseJSONParseError = /*#__PURE__*/ function(RequestFailedError) {
203
195
  "use strict";
204
196
  _inherits(ResponseJSONParseError, RequestFailedError);
205
- var _super = _create_super(ResponseJSONParseError);
206
197
  function ResponseJSONParseError(message, httpStatus, bodyContent, context) {
207
198
  _class_call_check(this, ResponseJSONParseError);
208
- return _super.call(this, "[Response JSON parse error] ".concat(message), httpStatus, bodyContent, context);
199
+ return _call_super(this, ResponseJSONParseError, [
200
+ "[Response JSON parse error] ".concat(message),
201
+ httpStatus,
202
+ bodyContent,
203
+ context
204
+ ]);
209
205
  }
210
206
  return ResponseJSONParseError;
211
207
  }(RequestFailedError);
@@ -214,17 +210,17 @@ function _create_super(Derived) {
214
210
  */ export var CanceledCallError = /*#__PURE__*/ function(GenericError) {
215
211
  "use strict";
216
212
  _inherits(CanceledCallError, GenericError);
217
- var _super = _create_super(CanceledCallError);
218
213
  function CanceledCallError(message, pluginIndex, pluginCanceling, context) {
219
214
  _class_call_check(this, CanceledCallError);
220
215
  var _this;
221
- _this = _super.call(this, "[Canceled call] ".concat(message), context);
222
- /**
216
+ _this = _call_super(this, CanceledCallError, [
217
+ "[Canceled call] ".concat(message),
218
+ context
219
+ ]), /**
223
220
  * First plugin canceling the call
224
- */ _define_property(_assert_this_initialized(_this), "pluginCanceling", void 0);
225
- /**
221
+ */ _define_property(_this, "pluginCanceling", void 0), /**
226
222
  * Index of the first plugin canceling the call
227
- */ _define_property(_assert_this_initialized(_this), "pluginIndex", void 0);
223
+ */ _define_property(_this, "pluginIndex", void 0);
228
224
  _this.pluginIndex = pluginIndex;
229
225
  _this.pluginCanceling = pluginCanceling;
230
226
  return _this;
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
4
4
  }
5
5
  return self;
6
6
  }
7
+ function _call_super(_this, derived, args) {
8
+ derived = _get_prototype_of(derived);
9
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
+ }
7
11
  function _class_call_check(instance, Constructor) {
8
12
  if (!(instance instanceof Constructor)) {
9
13
  throw new TypeError("Cannot call a class as a function");
@@ -73,28 +77,12 @@ function _type_of(obj) {
73
77
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
74
78
  }
75
79
  function _is_native_reflect_construct() {
76
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
77
- if (Reflect.construct.sham) return false;
78
- if (typeof Proxy === "function") return true;
79
80
  try {
80
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
81
- return true;
82
- } catch (e) {
83
- return false;
84
- }
85
- }
86
- function _create_super(Derived) {
87
- var hasNativeReflectConstruct = _is_native_reflect_construct();
88
- return function _createSuperInternal() {
89
- var Super = _get_prototype_of(Derived), result;
90
- if (hasNativeReflectConstruct) {
91
- var NewTarget = _get_prototype_of(this).constructor;
92
- result = Reflect.construct(Super, arguments, NewTarget);
93
- } else {
94
- result = Super.apply(this, arguments);
95
- }
96
- return _possible_constructor_return(this, result);
97
- };
81
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
82
+ } catch (_) {}
83
+ return (_is_native_reflect_construct = function() {
84
+ return !!result;
85
+ })();
98
86
  }
99
87
  import { BaseMockAdapter } from './base-mock-adapter';
100
88
  /**
@@ -102,12 +90,10 @@ import { BaseMockAdapter } from './base-mock-adapter';
102
90
  */ export var RandomMockAdapter = /*#__PURE__*/ function(BaseMockAdapter) {
103
91
  "use strict";
104
92
  _inherits(RandomMockAdapter, BaseMockAdapter);
105
- var _super = _create_super(RandomMockAdapter);
106
93
  function RandomMockAdapter() {
107
94
  _class_call_check(this, RandomMockAdapter);
108
95
  var _this;
109
- _this = _super.apply(this, arguments);
110
- _define_property(_assert_this_initialized(_this), "cache", {});
96
+ _this = _call_super(this, RandomMockAdapter, arguments), _define_property(_this, "cache", {});
111
97
  return _this;
112
98
  }
113
99
  _create_class(RandomMockAdapter, [
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
4
4
  }
5
5
  return self;
6
6
  }
7
+ function _call_super(_this, derived, args) {
8
+ derived = _get_prototype_of(derived);
9
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
+ }
7
11
  function _class_call_check(instance, Constructor) {
8
12
  if (!(instance instanceof Constructor)) {
9
13
  throw new TypeError("Cannot call a class as a function");
@@ -73,28 +77,12 @@ function _type_of(obj) {
73
77
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
74
78
  }
75
79
  function _is_native_reflect_construct() {
76
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
77
- if (Reflect.construct.sham) return false;
78
- if (typeof Proxy === "function") return true;
79
80
  try {
80
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
81
- return true;
82
- } catch (e) {
83
- return false;
84
- }
85
- }
86
- function _create_super(Derived) {
87
- var hasNativeReflectConstruct = _is_native_reflect_construct();
88
- return function _createSuperInternal() {
89
- var Super = _get_prototype_of(Derived), result;
90
- if (hasNativeReflectConstruct) {
91
- var NewTarget = _get_prototype_of(this).constructor;
92
- result = Reflect.construct(Super, arguments, NewTarget);
93
- } else {
94
- result = Super.apply(this, arguments);
95
- }
96
- return _possible_constructor_return(this, result);
97
- };
81
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
82
+ } catch (_) {}
83
+ return (_is_native_reflect_construct = function() {
84
+ return !!result;
85
+ })();
98
86
  }
99
87
  import { BaseMockAdapter } from './base-mock-adapter';
100
88
  /**
@@ -103,12 +91,10 @@ import { BaseMockAdapter } from './base-mock-adapter';
103
91
  */ export var SequentialMockAdapter = /*#__PURE__*/ function(BaseMockAdapter) {
104
92
  "use strict";
105
93
  _inherits(SequentialMockAdapter, BaseMockAdapter);
106
- var _super = _create_super(SequentialMockAdapter);
107
94
  function SequentialMockAdapter() {
108
95
  _class_call_check(this, SequentialMockAdapter);
109
96
  var _this;
110
- _this = _super.apply(this, arguments);
111
- _define_property(_assert_this_initialized(_this), "operationCounter", {});
97
+ _this = _call_super(this, SequentialMockAdapter, arguments), _define_property(_this, "operationCounter", {});
112
98
  return _this;
113
99
  }
114
100
  _create_class(SequentialMockAdapter, [
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
4
4
  }
5
5
  return self;
6
6
  }
7
+ function _call_super(_this, derived, args) {
8
+ derived = _get_prototype_of(derived);
9
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
+ }
7
11
  function _class_call_check(instance, Constructor) {
8
12
  if (!(instance instanceof Constructor)) {
9
13
  throw new TypeError("Cannot call a class as a function");
@@ -59,28 +63,12 @@ function _type_of(obj) {
59
63
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
60
64
  }
61
65
  function _is_native_reflect_construct() {
62
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
63
- if (Reflect.construct.sham) return false;
64
- if (typeof Proxy === "function") return true;
65
66
  try {
66
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
67
- return true;
68
- } catch (e) {
69
- return false;
70
- }
71
- }
72
- function _create_super(Derived) {
73
- var hasNativeReflectConstruct = _is_native_reflect_construct();
74
- return function _createSuperInternal() {
75
- var Super = _get_prototype_of(Derived), result;
76
- if (hasNativeReflectConstruct) {
77
- var NewTarget = _get_prototype_of(this).constructor;
78
- result = Reflect.construct(Super, arguments, NewTarget);
79
- } else {
80
- result = Super.apply(this, arguments);
81
- }
82
- return _possible_constructor_return(this, result);
83
- };
67
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
68
+ } catch (_) {}
69
+ return (_is_native_reflect_construct = function() {
70
+ return !!result;
71
+ })();
84
72
  }
85
73
  import { AdditionalParamsRequest } from '../additional-params';
86
74
  /**
@@ -88,24 +76,23 @@ import { AdditionalParamsRequest } from '../additional-params';
88
76
  */ export var SiTokenRequest = /*#__PURE__*/ function(AdditionalParamsRequest) {
89
77
  "use strict";
90
78
  _inherits(SiTokenRequest, AdditionalParamsRequest);
91
- var _super = _create_super(SiTokenRequest);
92
79
  function SiTokenRequest(siToken, siToken2) {
93
80
  _class_call_check(this, SiTokenRequest);
94
81
  var _this;
95
- _this = _super.call(this, {
96
- queryParams: function(queryParams) {
97
- var ret = queryParams || {};
98
- if (_this.siToken) {
99
- ret.SITK = _this.siToken;
100
- }
101
- if (_this.siToken2) {
102
- ret.SITK2 = _this.siToken2;
82
+ _this = _call_super(this, SiTokenRequest, [
83
+ {
84
+ queryParams: function(queryParams) {
85
+ var ret = queryParams || {};
86
+ if (_assert_this_initialized(_this).siToken) {
87
+ ret.SITK = _assert_this_initialized(_this).siToken;
88
+ }
89
+ if (_assert_this_initialized(_this).siToken2) {
90
+ ret.SITK2 = _assert_this_initialized(_this).siToken2;
91
+ }
92
+ return ret;
103
93
  }
104
- return ret;
105
94
  }
106
- });
107
- /** SI Token */ _define_property(_assert_this_initialized(_this), "siToken", void 0);
108
- /** SI Token 2 */ _define_property(_assert_this_initialized(_this), "siToken2", void 0);
95
+ ]), /** SI Token */ _define_property(_this, "siToken", void 0), /** SI Token 2 */ _define_property(_this, "siToken2", void 0);
109
96
  _this.siToken = siToken;
110
97
  _this.siToken2 = siToken2;
111
98
  return _this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ama-sdk/core",
3
- "version": "11.3.0-prerelease.11",
3
+ "version": "11.3.0-prerelease.13",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -79,7 +79,7 @@
79
79
  "@angular-devkit/schematics": "~18.2.0",
80
80
  "@angular/cli": "~18.2.0",
81
81
  "@angular/common": "~18.2.0",
82
- "@o3r/schematics": "^11.3.0-prerelease.11",
82
+ "@o3r/schematics": "^11.3.0-prerelease.13",
83
83
  "@schematics/angular": "~18.2.0",
84
84
  "isomorphic-fetch": "^3.0.0",
85
85
  "rxjs": "^7.8.1",
@@ -119,9 +119,9 @@
119
119
  "@angular/core": "~18.2.0",
120
120
  "@nx/eslint-plugin": "~19.5.0",
121
121
  "@nx/jest": "~19.5.0",
122
- "@o3r/build-helpers": "^11.3.0-prerelease.11",
123
- "@o3r/eslint-plugin": "^11.3.0-prerelease.11",
124
- "@o3r/test-helpers": "^11.3.0-prerelease.11",
122
+ "@o3r/build-helpers": "^11.3.0-prerelease.13",
123
+ "@o3r/eslint-plugin": "^11.3.0-prerelease.13",
124
+ "@o3r/test-helpers": "^11.3.0-prerelease.13",
125
125
  "@schematics/angular": "~18.2.0",
126
126
  "@stylistic/eslint-plugin-ts": "~2.4.0",
127
127
  "@swc/cli": "~0.4.0",