@wix/sdk-types 1.13.23 → 1.13.25
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MonitoringClient } from '@wix/monitoring-types';
|
|
2
2
|
import { ConditionalExcept, EmptyObject, Simplify, Paths, SetRequiredDeep, JsonObject } from 'type-fest';
|
|
3
|
+
export { ErrorCodesMap, ErrorHandlerPublicAPI as ErrorHandler, ResolvedError } from '@wix/error-handler-types/v2';
|
|
3
4
|
|
|
4
5
|
type HostModule<T, H extends Host> = {
|
|
5
6
|
__type: 'host';
|
|
@@ -107,6 +108,7 @@ type AuthenticationStrategy<Host = unknown> = {
|
|
|
107
108
|
* @returns the token that is currently active in the context of the strategy
|
|
108
109
|
*/
|
|
109
110
|
getActiveToken?: () => string | undefined;
|
|
111
|
+
shouldUseCDN?: boolean;
|
|
110
112
|
};
|
|
111
113
|
type BoundAuthenticationStrategy = {
|
|
112
114
|
getAuthHeaders: () => Promise<{
|
package/build/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MonitoringClient } from '@wix/monitoring-types';
|
|
2
2
|
import { ConditionalExcept, EmptyObject, Simplify, Paths, SetRequiredDeep, JsonObject } from 'type-fest';
|
|
3
|
+
export { ErrorCodesMap, ErrorHandlerPublicAPI as ErrorHandler, ResolvedError } from '@wix/error-handler-types/v2';
|
|
3
4
|
|
|
4
5
|
type HostModule<T, H extends Host> = {
|
|
5
6
|
__type: 'host';
|
|
@@ -107,6 +108,7 @@ type AuthenticationStrategy<Host = unknown> = {
|
|
|
107
108
|
* @returns the token that is currently active in the context of the strategy
|
|
108
109
|
*/
|
|
109
110
|
getActiveToken?: () => string | undefined;
|
|
111
|
+
shouldUseCDN?: boolean;
|
|
110
112
|
};
|
|
111
113
|
type BoundAuthenticationStrategy = {
|
|
112
114
|
getAuthHeaders: () => Promise<{
|
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MonitoringClient } from '@wix/monitoring-types';
|
|
2
2
|
import { ConditionalExcept, EmptyObject, Simplify, Paths, SetRequiredDeep, JsonObject } from 'type-fest';
|
|
3
|
+
export { ErrorCodesMap, ErrorHandlerPublicAPI as ErrorHandler, ResolvedError } from '@wix/error-handler-types/v2';
|
|
3
4
|
|
|
4
5
|
type HostModule<T, H extends Host> = {
|
|
5
6
|
__type: 'host';
|
|
@@ -107,6 +108,7 @@ type AuthenticationStrategy<Host = unknown> = {
|
|
|
107
108
|
* @returns the token that is currently active in the context of the strategy
|
|
108
109
|
*/
|
|
109
110
|
getActiveToken?: () => string | undefined;
|
|
111
|
+
shouldUseCDN?: boolean;
|
|
110
112
|
};
|
|
111
113
|
type BoundAuthenticationStrategy = {
|
|
112
114
|
getAuthHeaders: () => Promise<{
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { MonitoringClient } from '@wix/monitoring-types';
|
|
2
|
+
import { ErrorHandlerAPI } from '@wix/error-handler-types/v2';
|
|
3
|
+
export { ErrorCodesMap, ErrorHandlerPublicAPI as ErrorHandler, ResolvedError } from '@wix/error-handler-types/v2';
|
|
2
4
|
import { ConditionalExcept, EmptyObject, Simplify, Paths, SetRequiredDeep, JsonObject } from 'type-fest';
|
|
3
5
|
|
|
4
6
|
interface BiLogger {
|
|
@@ -90,6 +92,11 @@ type Host<Environment = unknown> = {
|
|
|
90
92
|
* @internal
|
|
91
93
|
*/
|
|
92
94
|
getConductorClient?: () => Conductor;
|
|
95
|
+
/**
|
|
96
|
+
* Optional ErrorHandler instance provided by the host
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
getErrorHandler?: () => ErrorHandlerAPI;
|
|
93
100
|
/**
|
|
94
101
|
* Possible data to be provided by every host, for cross cutting concerns
|
|
95
102
|
* like internationalization, billing, etc.
|
|
@@ -170,6 +177,7 @@ type AuthenticationStrategy<Host = unknown> = {
|
|
|
170
177
|
* @returns the token that is currently active in the context of the strategy
|
|
171
178
|
*/
|
|
172
179
|
getActiveToken?: () => string | undefined;
|
|
180
|
+
shouldUseCDN?: boolean;
|
|
173
181
|
};
|
|
174
182
|
type BoundAuthenticationStrategy = {
|
|
175
183
|
getAuthHeaders: () => Promise<{
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { MonitoringClient } from '@wix/monitoring-types';
|
|
2
|
+
import { ErrorHandlerAPI } from '@wix/error-handler-types/v2';
|
|
3
|
+
export { ErrorCodesMap, ErrorHandlerPublicAPI as ErrorHandler, ResolvedError } from '@wix/error-handler-types/v2';
|
|
2
4
|
import { ConditionalExcept, EmptyObject, Simplify, Paths, SetRequiredDeep, JsonObject } from 'type-fest';
|
|
3
5
|
|
|
4
6
|
interface BiLogger {
|
|
@@ -90,6 +92,11 @@ type Host<Environment = unknown> = {
|
|
|
90
92
|
* @internal
|
|
91
93
|
*/
|
|
92
94
|
getConductorClient?: () => Conductor;
|
|
95
|
+
/**
|
|
96
|
+
* Optional ErrorHandler instance provided by the host
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
getErrorHandler?: () => ErrorHandlerAPI;
|
|
93
100
|
/**
|
|
94
101
|
* Possible data to be provided by every host, for cross cutting concerns
|
|
95
102
|
* like internationalization, billing, etc.
|
|
@@ -170,6 +177,7 @@ type AuthenticationStrategy<Host = unknown> = {
|
|
|
170
177
|
* @returns the token that is currently active in the context of the strategy
|
|
171
178
|
*/
|
|
172
179
|
getActiveToken?: () => string | undefined;
|
|
180
|
+
shouldUseCDN?: boolean;
|
|
173
181
|
};
|
|
174
182
|
type BoundAuthenticationStrategy = {
|
|
175
183
|
getAuthHeaders: () => Promise<{
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { MonitoringClient } from '@wix/monitoring-types';
|
|
2
|
+
import { ErrorHandlerAPI } from '@wix/error-handler-types/v2';
|
|
3
|
+
export { ErrorCodesMap, ErrorHandlerPublicAPI as ErrorHandler, ResolvedError } from '@wix/error-handler-types/v2';
|
|
2
4
|
import { ConditionalExcept, EmptyObject, Simplify, Paths, SetRequiredDeep, JsonObject } from 'type-fest';
|
|
3
5
|
|
|
4
6
|
interface BiLogger {
|
|
@@ -90,6 +92,11 @@ type Host<Environment = unknown> = {
|
|
|
90
92
|
* @internal
|
|
91
93
|
*/
|
|
92
94
|
getConductorClient?: () => Conductor;
|
|
95
|
+
/**
|
|
96
|
+
* Optional ErrorHandler instance provided by the host
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
getErrorHandler?: () => ErrorHandlerAPI;
|
|
93
100
|
/**
|
|
94
101
|
* Possible data to be provided by every host, for cross cutting concerns
|
|
95
102
|
* like internationalization, billing, etc.
|
|
@@ -170,6 +177,7 @@ type AuthenticationStrategy<Host = unknown> = {
|
|
|
170
177
|
* @returns the token that is currently active in the context of the strategy
|
|
171
178
|
*/
|
|
172
179
|
getActiveToken?: () => string | undefined;
|
|
180
|
+
shouldUseCDN?: boolean;
|
|
173
181
|
};
|
|
174
182
|
type BoundAuthenticationStrategy = {
|
|
175
183
|
getAuthHeaders: () => Promise<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/sdk-types",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.25",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Ronny Ringel",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"*.{js,ts}": "yarn lint"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
+
"@wix/error-handler-types": "^1.6.0",
|
|
33
34
|
"@wix/monitoring-types": "^0.12.0",
|
|
34
35
|
"type-fest": "^4.41.0"
|
|
35
36
|
},
|
|
@@ -61,5 +62,5 @@
|
|
|
61
62
|
"wallaby": {
|
|
62
63
|
"autoDetect": true
|
|
63
64
|
},
|
|
64
|
-
"falconPackageHash": "
|
|
65
|
+
"falconPackageHash": "daf115af3a2d78a3098d8de49edd1587ee8fb49858364957e149e667"
|
|
65
66
|
}
|