@wix/secrets 1.0.29 → 1.0.30
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/secrets",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -18,10 +18,9 @@
|
|
|
18
18
|
"type-bundles"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@wix/secrets_secrets": "1.0.
|
|
21
|
+
"@wix/secrets_secrets": "1.0.19"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
|
|
25
24
|
"glob": "^10.4.1",
|
|
26
25
|
"rollup": "^4.18.0",
|
|
27
26
|
"rollup-plugin-dts": "^6.1.1",
|
|
@@ -43,5 +42,5 @@
|
|
|
43
42
|
"fqdn": ""
|
|
44
43
|
}
|
|
45
44
|
},
|
|
46
|
-
"falconPackageHash": "
|
|
45
|
+
"falconPackageHash": "1947c54322cb55cefec367f8752a7ad5ddc2c08d79079ab78963df02"
|
|
47
46
|
}
|
|
@@ -132,6 +132,7 @@ interface SecretUpdatedEnvelope {
|
|
|
132
132
|
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
133
133
|
interface HttpClient {
|
|
134
134
|
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
135
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
135
136
|
}
|
|
136
137
|
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
137
138
|
type HttpResponse<T = any> = {
|
|
@@ -157,13 +158,20 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
|
157
158
|
__type: 'event-definition';
|
|
158
159
|
type: Type;
|
|
159
160
|
isDomainEvent?: boolean;
|
|
160
|
-
transformations?: unknown;
|
|
161
|
+
transformations?: (envelope: unknown) => Payload;
|
|
161
162
|
__payload: Payload;
|
|
162
163
|
};
|
|
163
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean,
|
|
164
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
164
165
|
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
165
166
|
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
166
167
|
|
|
168
|
+
declare global {
|
|
169
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
170
|
+
interface SymbolConstructor {
|
|
171
|
+
readonly observable: symbol;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
167
175
|
declare function getSecretValue$1(httpClient: HttpClient): (name: string) => Promise<GetSecretValueResponse & GetSecretValueResponseNonNullableFields>;
|
|
168
176
|
declare function listSecretInfo$1(httpClient: HttpClient): () => Promise<ListSecretInfoResponse & ListSecretInfoResponseNonNullableFields>;
|
|
169
177
|
declare function createSecret$1(httpClient: HttpClient): (secret: Secret) => Promise<string>;
|
|
@@ -245,6 +245,7 @@ interface SecretUpdatedEnvelope {
|
|
|
245
245
|
|
|
246
246
|
interface HttpClient {
|
|
247
247
|
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
248
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
248
249
|
}
|
|
249
250
|
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
250
251
|
type HttpResponse<T = any> = {
|
|
@@ -269,10 +270,17 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
|
269
270
|
__type: 'event-definition';
|
|
270
271
|
type: Type;
|
|
271
272
|
isDomainEvent?: boolean;
|
|
272
|
-
transformations?: unknown;
|
|
273
|
+
transformations?: (envelope: unknown) => Payload;
|
|
273
274
|
__payload: Payload;
|
|
274
275
|
};
|
|
275
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean,
|
|
276
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
277
|
+
|
|
278
|
+
declare global {
|
|
279
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
280
|
+
interface SymbolConstructor {
|
|
281
|
+
readonly observable: symbol;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
276
284
|
|
|
277
285
|
declare const __metadata: {
|
|
278
286
|
PACKAGE_NAME: string;
|