@wix/payments 1.0.2 → 1.0.3
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/payments",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
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/payments_refunds": "1.0.
|
|
21
|
+
"@wix/payments_refunds": "1.0.3"
|
|
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": "bb89c54e2fe412112a0ff60b85758c01fb7cbf452226065ad2662f1d"
|
|
47
46
|
}
|
|
@@ -375,6 +375,7 @@ interface UpdateExtendedFieldsOptions {
|
|
|
375
375
|
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
376
376
|
interface HttpClient {
|
|
377
377
|
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
378
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
378
379
|
}
|
|
379
380
|
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
380
381
|
type HttpResponse<T = any> = {
|
|
@@ -400,13 +401,20 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
|
400
401
|
__type: 'event-definition';
|
|
401
402
|
type: Type;
|
|
402
403
|
isDomainEvent?: boolean;
|
|
403
|
-
transformations?: unknown;
|
|
404
|
+
transformations?: (envelope: unknown) => Payload;
|
|
404
405
|
__payload: Payload;
|
|
405
406
|
};
|
|
406
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean,
|
|
407
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
407
408
|
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
408
409
|
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
409
410
|
|
|
411
|
+
declare global {
|
|
412
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
413
|
+
interface SymbolConstructor {
|
|
414
|
+
readonly observable: symbol;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
410
418
|
declare function createRefund$1(httpClient: HttpClient): (refund: Refund, options?: CreateRefundOptions) => Promise<Refund & {
|
|
411
419
|
status: Status;
|
|
412
420
|
statusInfo?: {
|
|
@@ -624,6 +624,7 @@ interface UpdateExtendedFieldsOptions {
|
|
|
624
624
|
|
|
625
625
|
interface HttpClient {
|
|
626
626
|
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
627
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
627
628
|
}
|
|
628
629
|
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
629
630
|
type HttpResponse<T = any> = {
|
|
@@ -648,10 +649,17 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
|
648
649
|
__type: 'event-definition';
|
|
649
650
|
type: Type;
|
|
650
651
|
isDomainEvent?: boolean;
|
|
651
|
-
transformations?: unknown;
|
|
652
|
+
transformations?: (envelope: unknown) => Payload;
|
|
652
653
|
__payload: Payload;
|
|
653
654
|
};
|
|
654
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean,
|
|
655
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
656
|
+
|
|
657
|
+
declare global {
|
|
658
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
659
|
+
interface SymbolConstructor {
|
|
660
|
+
readonly observable: symbol;
|
|
661
|
+
}
|
|
662
|
+
}
|
|
655
663
|
|
|
656
664
|
declare const __metadata: {
|
|
657
665
|
PACKAGE_NAME: string;
|