@infrab4a/connect 4.4.0-beta.0 → 4.4.0-beta.1
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/index.cjs.js
CHANGED
|
@@ -2298,15 +2298,15 @@ class RequiredArgumentError extends tsCustomError.CustomError {
|
|
|
2298
2298
|
}
|
|
2299
2299
|
|
|
2300
2300
|
class StockLimitError extends BusinessError {
|
|
2301
|
-
constructor(message) {
|
|
2302
|
-
super(message);
|
|
2301
|
+
constructor(message, additionalData) {
|
|
2302
|
+
super(message, additionalData);
|
|
2303
2303
|
this.type = 'stock-limit';
|
|
2304
2304
|
}
|
|
2305
2305
|
}
|
|
2306
2306
|
|
|
2307
2307
|
class StockOutError extends BusinessError {
|
|
2308
|
-
constructor(message) {
|
|
2309
|
-
super(message);
|
|
2308
|
+
constructor(message, additionalData) {
|
|
2309
|
+
super(message, additionalData);
|
|
2310
2310
|
this.type = 'stock-out';
|
|
2311
2311
|
}
|
|
2312
2312
|
}
|
package/index.esm.js
CHANGED
|
@@ -2292,15 +2292,15 @@ class RequiredArgumentError extends CustomError {
|
|
|
2292
2292
|
}
|
|
2293
2293
|
|
|
2294
2294
|
class StockLimitError extends BusinessError {
|
|
2295
|
-
constructor(message) {
|
|
2296
|
-
super(message);
|
|
2295
|
+
constructor(message, additionalData) {
|
|
2296
|
+
super(message, additionalData);
|
|
2297
2297
|
this.type = 'stock-limit';
|
|
2298
2298
|
}
|
|
2299
2299
|
}
|
|
2300
2300
|
|
|
2301
2301
|
class StockOutError extends BusinessError {
|
|
2302
|
-
constructor(message) {
|
|
2303
|
-
super(message);
|
|
2302
|
+
constructor(message, additionalData) {
|
|
2303
|
+
super(message, additionalData);
|
|
2304
2304
|
this.type = 'stock-out';
|
|
2305
2305
|
}
|
|
2306
2306
|
}
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BusinessError } from './business.error';
|
|
2
|
+
import { checkoutAdditionalDataError } from './types';
|
|
2
3
|
export declare class StockLimitError extends BusinessError {
|
|
3
|
-
constructor(message: string);
|
|
4
|
+
constructor(message: string, additionalData: checkoutAdditionalDataError);
|
|
4
5
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BusinessError } from './business.error';
|
|
2
|
+
import { checkoutAdditionalDataError } from './types';
|
|
2
3
|
export declare class StockOutError extends BusinessError {
|
|
3
|
-
constructor(message: string);
|
|
4
|
+
constructor(message: string, additionalData?: checkoutAdditionalDataError);
|
|
4
5
|
}
|