@wix/app-management 1.0.19 → 1.0.20
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 +2 -2
- package/type-bundles/context.bundle.d.ts +161 -29
- package/type-bundles/index.bundle.d.ts +144 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/app-management",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": ""
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "f0f955ac8e896531b8cea739edeb81cdb8b61a576443933a3de44add"
|
|
52
52
|
}
|
|
@@ -219,41 +219,31 @@ interface ListAppPlansByAppIdResponseNonNullableFields {
|
|
|
219
219
|
}[];
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
223
|
-
interface HttpClient {
|
|
224
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
222
|
+
type RESTFunctionDescriptor$4<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$4) => T;
|
|
223
|
+
interface HttpClient$4 {
|
|
224
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
225
225
|
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
226
226
|
}
|
|
227
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
228
|
-
type HttpResponse<T = any> = {
|
|
227
|
+
type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
|
|
228
|
+
type HttpResponse$4<T = any> = {
|
|
229
229
|
data: T;
|
|
230
230
|
status: number;
|
|
231
231
|
statusText: string;
|
|
232
232
|
headers: any;
|
|
233
233
|
request?: any;
|
|
234
234
|
};
|
|
235
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
235
|
+
type RequestOptions$4<_TResponse = any, Data = any> = {
|
|
236
236
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
237
237
|
url: string;
|
|
238
238
|
data?: Data;
|
|
239
239
|
params?: URLSearchParams;
|
|
240
|
-
} & APIMetadata;
|
|
241
|
-
type APIMetadata = {
|
|
240
|
+
} & APIMetadata$4;
|
|
241
|
+
type APIMetadata$4 = {
|
|
242
242
|
methodFqn?: string;
|
|
243
243
|
entityFqdn?: string;
|
|
244
244
|
packageName?: string;
|
|
245
245
|
};
|
|
246
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
247
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
248
|
-
__type: 'event-definition';
|
|
249
|
-
type: Type;
|
|
250
|
-
isDomainEvent?: boolean;
|
|
251
|
-
transformations?: (envelope: unknown) => Payload;
|
|
252
|
-
__payload: Payload;
|
|
253
|
-
};
|
|
254
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
255
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
256
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
246
|
+
type BuildRESTFunction$4<T extends RESTFunctionDescriptor$4> = T extends RESTFunctionDescriptor$4<infer U> ? U : never;
|
|
257
247
|
|
|
258
248
|
declare global {
|
|
259
249
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -262,9 +252,9 @@ declare global {
|
|
|
262
252
|
}
|
|
263
253
|
}
|
|
264
254
|
|
|
265
|
-
declare function listAppPlansByAppId$1(httpClient: HttpClient): (appIds: string[]) => Promise<ListAppPlansByAppIdResponse & ListAppPlansByAppIdResponseNonNullableFields>;
|
|
255
|
+
declare function listAppPlansByAppId$1(httpClient: HttpClient$4): (appIds: string[]) => Promise<ListAppPlansByAppIdResponse & ListAppPlansByAppIdResponseNonNullableFields>;
|
|
266
256
|
|
|
267
|
-
declare const listAppPlansByAppId: BuildRESTFunction<typeof listAppPlansByAppId$1>;
|
|
257
|
+
declare const listAppPlansByAppId: BuildRESTFunction$4<typeof listAppPlansByAppId$1>;
|
|
268
258
|
|
|
269
259
|
declare const context$4_listAppPlansByAppId: typeof listAppPlansByAppId;
|
|
270
260
|
declare namespace context$4 {
|
|
@@ -650,14 +640,57 @@ interface AppInstancePaidPlanAutoRenewalCancelledEnvelope {
|
|
|
650
640
|
metadata: BaseEventMetadata;
|
|
651
641
|
}
|
|
652
642
|
|
|
653
|
-
|
|
643
|
+
type RESTFunctionDescriptor$3<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$3) => T;
|
|
644
|
+
interface HttpClient$3 {
|
|
645
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
646
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
647
|
+
}
|
|
648
|
+
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
649
|
+
type HttpResponse$3<T = any> = {
|
|
650
|
+
data: T;
|
|
651
|
+
status: number;
|
|
652
|
+
statusText: string;
|
|
653
|
+
headers: any;
|
|
654
|
+
request?: any;
|
|
655
|
+
};
|
|
656
|
+
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
657
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
658
|
+
url: string;
|
|
659
|
+
data?: Data;
|
|
660
|
+
params?: URLSearchParams;
|
|
661
|
+
} & APIMetadata$3;
|
|
662
|
+
type APIMetadata$3 = {
|
|
663
|
+
methodFqn?: string;
|
|
664
|
+
entityFqdn?: string;
|
|
665
|
+
packageName?: string;
|
|
666
|
+
};
|
|
667
|
+
type BuildRESTFunction$3<T extends RESTFunctionDescriptor$3> = T extends RESTFunctionDescriptor$3<infer U> ? U : never;
|
|
668
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
669
|
+
__type: 'event-definition';
|
|
670
|
+
type: Type;
|
|
671
|
+
isDomainEvent?: boolean;
|
|
672
|
+
transformations?: (envelope: unknown) => Payload;
|
|
673
|
+
__payload: Payload;
|
|
674
|
+
};
|
|
675
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
676
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
677
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
678
|
+
|
|
679
|
+
declare global {
|
|
680
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
681
|
+
interface SymbolConstructor {
|
|
682
|
+
readonly observable: symbol;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
declare function getAppInstance$1(httpClient: HttpClient$3): () => Promise<GetAppInstanceResponse & GetAppInstanceResponseNonNullableFields>;
|
|
654
687
|
declare const onAppInstanceInstalled$1: EventDefinition<AppInstanceInstalledEnvelope, "AppInstalled">;
|
|
655
688
|
declare const onAppInstanceRemoved$1: EventDefinition<AppInstanceRemovedEnvelope, "AppRemoved">;
|
|
656
689
|
declare const onAppInstancePaidPlanPurchased$1: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
|
|
657
690
|
declare const onAppInstancePaidPlanChanged$1: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
|
|
658
691
|
declare const onAppInstancePaidPlanAutoRenewalCancelled$1: EventDefinition<AppInstancePaidPlanAutoRenewalCancelledEnvelope, "PaidPlanAutoRenewalCancelled">;
|
|
659
692
|
|
|
660
|
-
declare const getAppInstance: BuildRESTFunction<typeof getAppInstance$1>;
|
|
693
|
+
declare const getAppInstance: BuildRESTFunction$3<typeof getAppInstance$1>;
|
|
661
694
|
declare const onAppInstanceInstalled: BuildEventDefinition<typeof onAppInstanceInstalled$1>;
|
|
662
695
|
declare const onAppInstanceRemoved: BuildEventDefinition<typeof onAppInstanceRemoved$1>;
|
|
663
696
|
declare const onAppInstancePaidPlanPurchased: BuildEventDefinition<typeof onAppInstancePaidPlanPurchased$1>;
|
|
@@ -674,6 +707,39 @@ declare namespace context$3 {
|
|
|
674
707
|
export { context$3_getAppInstance as getAppInstance, context$3_onAppInstanceInstalled as onAppInstanceInstalled, context$3_onAppInstancePaidPlanAutoRenewalCancelled as onAppInstancePaidPlanAutoRenewalCancelled, context$3_onAppInstancePaidPlanChanged as onAppInstancePaidPlanChanged, context$3_onAppInstancePaidPlanPurchased as onAppInstancePaidPlanPurchased, context$3_onAppInstanceRemoved as onAppInstanceRemoved };
|
|
675
708
|
}
|
|
676
709
|
|
|
710
|
+
type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
|
|
711
|
+
interface HttpClient$2 {
|
|
712
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
713
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
714
|
+
}
|
|
715
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
716
|
+
type HttpResponse$2<T = any> = {
|
|
717
|
+
data: T;
|
|
718
|
+
status: number;
|
|
719
|
+
statusText: string;
|
|
720
|
+
headers: any;
|
|
721
|
+
request?: any;
|
|
722
|
+
};
|
|
723
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
724
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
725
|
+
url: string;
|
|
726
|
+
data?: Data;
|
|
727
|
+
params?: URLSearchParams;
|
|
728
|
+
} & APIMetadata$2;
|
|
729
|
+
type APIMetadata$2 = {
|
|
730
|
+
methodFqn?: string;
|
|
731
|
+
entityFqdn?: string;
|
|
732
|
+
packageName?: string;
|
|
733
|
+
};
|
|
734
|
+
type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
|
|
735
|
+
|
|
736
|
+
declare global {
|
|
737
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
738
|
+
interface SymbolConstructor {
|
|
739
|
+
readonly observable: symbol;
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
|
|
677
743
|
declare enum EventName {
|
|
678
744
|
UNKNOWN = "UNKNOWN",
|
|
679
745
|
APP_DASHBOARD_LOADED = "APP_DASHBOARD_LOADED",
|
|
@@ -724,9 +790,9 @@ interface SendBiEventOptions {
|
|
|
724
790
|
eventData?: Record<string, string>;
|
|
725
791
|
}
|
|
726
792
|
|
|
727
|
-
declare function sendBiEvent$1(httpClient: HttpClient): (options?: SendBiEventOptions) => Promise<void>;
|
|
793
|
+
declare function sendBiEvent$1(httpClient: HttpClient$2): (options?: SendBiEventOptions) => Promise<void>;
|
|
728
794
|
|
|
729
|
-
declare const sendBiEvent: BuildRESTFunction<typeof sendBiEvent$1>;
|
|
795
|
+
declare const sendBiEvent: BuildRESTFunction$2<typeof sendBiEvent$1>;
|
|
730
796
|
|
|
731
797
|
declare const context$2_sendBiEvent: typeof sendBiEvent;
|
|
732
798
|
declare namespace context$2 {
|
|
@@ -819,11 +885,44 @@ interface GetUrlOptions {
|
|
|
819
885
|
couponCode?: string | null;
|
|
820
886
|
}
|
|
821
887
|
|
|
822
|
-
|
|
823
|
-
|
|
888
|
+
type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
|
|
889
|
+
interface HttpClient$1 {
|
|
890
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
891
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
892
|
+
}
|
|
893
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
894
|
+
type HttpResponse$1<T = any> = {
|
|
895
|
+
data: T;
|
|
896
|
+
status: number;
|
|
897
|
+
statusText: string;
|
|
898
|
+
headers: any;
|
|
899
|
+
request?: any;
|
|
900
|
+
};
|
|
901
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
902
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
903
|
+
url: string;
|
|
904
|
+
data?: Data;
|
|
905
|
+
params?: URLSearchParams;
|
|
906
|
+
} & APIMetadata$1;
|
|
907
|
+
type APIMetadata$1 = {
|
|
908
|
+
methodFqn?: string;
|
|
909
|
+
entityFqdn?: string;
|
|
910
|
+
packageName?: string;
|
|
911
|
+
};
|
|
912
|
+
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
913
|
+
|
|
914
|
+
declare global {
|
|
915
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
916
|
+
interface SymbolConstructor {
|
|
917
|
+
readonly observable: symbol;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
declare function getUrl$1(httpClient: HttpClient$1): (productId: string, options?: GetUrlOptions) => Promise<GetUrlResponse & GetUrlResponseNonNullableFields>;
|
|
922
|
+
declare function getPurchaseHistory$1(httpClient: HttpClient$1): () => Promise<GetPurchaseHistoryResponse & GetPurchaseHistoryResponseNonNullableFields>;
|
|
824
923
|
|
|
825
|
-
declare const getUrl: BuildRESTFunction<typeof getUrl$1>;
|
|
826
|
-
declare const getPurchaseHistory: BuildRESTFunction<typeof getPurchaseHistory$1>;
|
|
924
|
+
declare const getUrl: BuildRESTFunction$1<typeof getUrl$1>;
|
|
925
|
+
declare const getPurchaseHistory: BuildRESTFunction$1<typeof getPurchaseHistory$1>;
|
|
827
926
|
|
|
828
927
|
declare const context$1_getPurchaseHistory: typeof getPurchaseHistory;
|
|
829
928
|
declare const context$1_getUrl: typeof getUrl;
|
|
@@ -856,6 +955,39 @@ interface GetEmbeddedScriptOptions {
|
|
|
856
955
|
componentId?: string | null;
|
|
857
956
|
}
|
|
858
957
|
|
|
958
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
959
|
+
interface HttpClient {
|
|
960
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
961
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
962
|
+
}
|
|
963
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
964
|
+
type HttpResponse<T = any> = {
|
|
965
|
+
data: T;
|
|
966
|
+
status: number;
|
|
967
|
+
statusText: string;
|
|
968
|
+
headers: any;
|
|
969
|
+
request?: any;
|
|
970
|
+
};
|
|
971
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
972
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
973
|
+
url: string;
|
|
974
|
+
data?: Data;
|
|
975
|
+
params?: URLSearchParams;
|
|
976
|
+
} & APIMetadata;
|
|
977
|
+
type APIMetadata = {
|
|
978
|
+
methodFqn?: string;
|
|
979
|
+
entityFqdn?: string;
|
|
980
|
+
packageName?: string;
|
|
981
|
+
};
|
|
982
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
983
|
+
|
|
984
|
+
declare global {
|
|
985
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
986
|
+
interface SymbolConstructor {
|
|
987
|
+
readonly observable: symbol;
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
|
|
859
991
|
declare function embedScript$1(httpClient: HttpClient): (properties: ScriptProperties, options?: EmbedScriptOptions) => Promise<EmbedScriptResponse & EmbedScriptResponseNonNullableFields>;
|
|
860
992
|
declare function getEmbeddedScript$1(httpClient: HttpClient): (options?: GetEmbeddedScriptOptions) => Promise<ScriptProperties & {
|
|
861
993
|
disabled: boolean;
|
|
@@ -228,37 +228,29 @@ interface ListAppPlansByAppIdResponseNonNullableFields {
|
|
|
228
228
|
}[];
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
interface HttpClient {
|
|
232
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
231
|
+
interface HttpClient$4 {
|
|
232
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
233
233
|
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
234
234
|
}
|
|
235
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
236
|
-
type HttpResponse<T = any> = {
|
|
235
|
+
type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
|
|
236
|
+
type HttpResponse$4<T = any> = {
|
|
237
237
|
data: T;
|
|
238
238
|
status: number;
|
|
239
239
|
statusText: string;
|
|
240
240
|
headers: any;
|
|
241
241
|
request?: any;
|
|
242
242
|
};
|
|
243
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
243
|
+
type RequestOptions$4<_TResponse = any, Data = any> = {
|
|
244
244
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
245
245
|
url: string;
|
|
246
246
|
data?: Data;
|
|
247
247
|
params?: URLSearchParams;
|
|
248
|
-
} & APIMetadata;
|
|
249
|
-
type APIMetadata = {
|
|
248
|
+
} & APIMetadata$4;
|
|
249
|
+
type APIMetadata$4 = {
|
|
250
250
|
methodFqn?: string;
|
|
251
251
|
entityFqdn?: string;
|
|
252
252
|
packageName?: string;
|
|
253
253
|
};
|
|
254
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
255
|
-
__type: 'event-definition';
|
|
256
|
-
type: Type;
|
|
257
|
-
isDomainEvent?: boolean;
|
|
258
|
-
transformations?: (envelope: unknown) => Payload;
|
|
259
|
-
__payload: Payload;
|
|
260
|
-
};
|
|
261
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
262
254
|
|
|
263
255
|
declare global {
|
|
264
256
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -270,7 +262,7 @@ declare global {
|
|
|
270
262
|
declare const __metadata$4: {
|
|
271
263
|
PACKAGE_NAME: string;
|
|
272
264
|
};
|
|
273
|
-
declare function listAppPlansByAppId(httpClient: HttpClient): (appIds: string[]) => Promise<ListAppPlansByAppIdResponse & ListAppPlansByAppIdResponseNonNullableFields>;
|
|
265
|
+
declare function listAppPlansByAppId(httpClient: HttpClient$4): (appIds: string[]) => Promise<ListAppPlansByAppIdResponse & ListAppPlansByAppIdResponseNonNullableFields>;
|
|
274
266
|
|
|
275
267
|
type index_d$4_AppPlans = AppPlans;
|
|
276
268
|
type index_d$4_Cycle = Cycle;
|
|
@@ -688,10 +680,49 @@ interface AppInstancePaidPlanAutoRenewalCancelledEnvelope {
|
|
|
688
680
|
metadata: BaseEventMetadata;
|
|
689
681
|
}
|
|
690
682
|
|
|
683
|
+
interface HttpClient$3 {
|
|
684
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
685
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
686
|
+
}
|
|
687
|
+
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
688
|
+
type HttpResponse$3<T = any> = {
|
|
689
|
+
data: T;
|
|
690
|
+
status: number;
|
|
691
|
+
statusText: string;
|
|
692
|
+
headers: any;
|
|
693
|
+
request?: any;
|
|
694
|
+
};
|
|
695
|
+
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
696
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
697
|
+
url: string;
|
|
698
|
+
data?: Data;
|
|
699
|
+
params?: URLSearchParams;
|
|
700
|
+
} & APIMetadata$3;
|
|
701
|
+
type APIMetadata$3 = {
|
|
702
|
+
methodFqn?: string;
|
|
703
|
+
entityFqdn?: string;
|
|
704
|
+
packageName?: string;
|
|
705
|
+
};
|
|
706
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
707
|
+
__type: 'event-definition';
|
|
708
|
+
type: Type;
|
|
709
|
+
isDomainEvent?: boolean;
|
|
710
|
+
transformations?: (envelope: unknown) => Payload;
|
|
711
|
+
__payload: Payload;
|
|
712
|
+
};
|
|
713
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
714
|
+
|
|
715
|
+
declare global {
|
|
716
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
717
|
+
interface SymbolConstructor {
|
|
718
|
+
readonly observable: symbol;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
|
|
691
722
|
declare const __metadata$3: {
|
|
692
723
|
PACKAGE_NAME: string;
|
|
693
724
|
};
|
|
694
|
-
declare function getAppInstance(httpClient: HttpClient): () => Promise<GetAppInstanceResponse & GetAppInstanceResponseNonNullableFields>;
|
|
725
|
+
declare function getAppInstance(httpClient: HttpClient$3): () => Promise<GetAppInstanceResponse & GetAppInstanceResponseNonNullableFields>;
|
|
695
726
|
declare const onAppInstanceInstalled: EventDefinition<AppInstanceInstalledEnvelope, "AppInstalled">;
|
|
696
727
|
declare const onAppInstanceRemoved: EventDefinition<AppInstanceRemovedEnvelope, "AppRemoved">;
|
|
697
728
|
declare const onAppInstancePaidPlanPurchased: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
|
|
@@ -736,6 +767,37 @@ declare namespace index_d$3 {
|
|
|
736
767
|
export { type index_d$3_AppInstalled as AppInstalled, type index_d$3_AppInstance as AppInstance, type index_d$3_AppInstanceInstalledEnvelope as AppInstanceInstalledEnvelope, type index_d$3_AppInstancePaidPlanAutoRenewalCancelledEnvelope as AppInstancePaidPlanAutoRenewalCancelledEnvelope, type index_d$3_AppInstancePaidPlanChangedEnvelope as AppInstancePaidPlanChangedEnvelope, type index_d$3_AppInstancePaidPlanPurchasedEnvelope as AppInstancePaidPlanPurchasedEnvelope, type index_d$3_AppInstanceRemovedEnvelope as AppInstanceRemovedEnvelope, type index_d$3_AppRemoved as AppRemoved, type index_d$3_AvailablePlan as AvailablePlan, type index_d$3_BaseEventMetadata as BaseEventMetadata, type index_d$3_BillingInfo as BillingInfo, type index_d$3_FreeTrialInfo as FreeTrialInfo, index_d$3_FreeTrialStatus as FreeTrialStatus, type index_d$3_GetAppInstanceByInstanceIdRequest as GetAppInstanceByInstanceIdRequest, type index_d$3_GetAppInstanceRequest as GetAppInstanceRequest, type index_d$3_GetAppInstanceResponse as GetAppInstanceResponse, type index_d$3_GetAppInstanceResponseNonNullableFields as GetAppInstanceResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$3_Locale as Locale, type MessageEnvelope$1 as MessageEnvelope, type index_d$3_Multilingual as Multilingual, type index_d$3_OwnerInfo as OwnerInfo, type index_d$3_PaidPlanAutoRenewalCancelled as PaidPlanAutoRenewalCancelled, type index_d$3_PaidPlanChanged as PaidPlanChanged, type index_d$3_PaidPlanPurchased as PaidPlanPurchased, PaymentCycle$1 as PaymentCycle, index_d$3_ResolutionMethod as ResolutionMethod, type index_d$3_SiteInfo as SiteInfo, type index_d$3_SupportedLanguage as SupportedLanguage, WebhookIdentityType$1 as WebhookIdentityType, __metadata$3 as __metadata, index_d$3_getAppInstance as getAppInstance, index_d$3_onAppInstanceInstalled as onAppInstanceInstalled, index_d$3_onAppInstancePaidPlanAutoRenewalCancelled as onAppInstancePaidPlanAutoRenewalCancelled, index_d$3_onAppInstancePaidPlanChanged as onAppInstancePaidPlanChanged, index_d$3_onAppInstancePaidPlanPurchased as onAppInstancePaidPlanPurchased, index_d$3_onAppInstanceRemoved as onAppInstanceRemoved };
|
|
737
768
|
}
|
|
738
769
|
|
|
770
|
+
interface HttpClient$2 {
|
|
771
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
772
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
773
|
+
}
|
|
774
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
775
|
+
type HttpResponse$2<T = any> = {
|
|
776
|
+
data: T;
|
|
777
|
+
status: number;
|
|
778
|
+
statusText: string;
|
|
779
|
+
headers: any;
|
|
780
|
+
request?: any;
|
|
781
|
+
};
|
|
782
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
783
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
784
|
+
url: string;
|
|
785
|
+
data?: Data;
|
|
786
|
+
params?: URLSearchParams;
|
|
787
|
+
} & APIMetadata$2;
|
|
788
|
+
type APIMetadata$2 = {
|
|
789
|
+
methodFqn?: string;
|
|
790
|
+
entityFqdn?: string;
|
|
791
|
+
packageName?: string;
|
|
792
|
+
};
|
|
793
|
+
|
|
794
|
+
declare global {
|
|
795
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
796
|
+
interface SymbolConstructor {
|
|
797
|
+
readonly observable: symbol;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
|
|
739
801
|
interface SendBIEventResponse {
|
|
740
802
|
}
|
|
741
803
|
interface SendBIEventRequest {
|
|
@@ -827,7 +889,7 @@ interface SendBiEventOptions {
|
|
|
827
889
|
declare const __metadata$2: {
|
|
828
890
|
PACKAGE_NAME: string;
|
|
829
891
|
};
|
|
830
|
-
declare function sendBiEvent(httpClient: HttpClient): (options?: SendBiEventOptions) => Promise<void>;
|
|
892
|
+
declare function sendBiEvent(httpClient: HttpClient$2): (options?: SendBiEventOptions) => Promise<void>;
|
|
831
893
|
|
|
832
894
|
type index_d$2_EventName = EventName;
|
|
833
895
|
declare const index_d$2_EventName: typeof EventName;
|
|
@@ -1091,11 +1153,42 @@ interface GetUrlOptions {
|
|
|
1091
1153
|
couponCode?: string | null;
|
|
1092
1154
|
}
|
|
1093
1155
|
|
|
1156
|
+
interface HttpClient$1 {
|
|
1157
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
1158
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1159
|
+
}
|
|
1160
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
1161
|
+
type HttpResponse$1<T = any> = {
|
|
1162
|
+
data: T;
|
|
1163
|
+
status: number;
|
|
1164
|
+
statusText: string;
|
|
1165
|
+
headers: any;
|
|
1166
|
+
request?: any;
|
|
1167
|
+
};
|
|
1168
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
1169
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1170
|
+
url: string;
|
|
1171
|
+
data?: Data;
|
|
1172
|
+
params?: URLSearchParams;
|
|
1173
|
+
} & APIMetadata$1;
|
|
1174
|
+
type APIMetadata$1 = {
|
|
1175
|
+
methodFqn?: string;
|
|
1176
|
+
entityFqdn?: string;
|
|
1177
|
+
packageName?: string;
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1180
|
+
declare global {
|
|
1181
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1182
|
+
interface SymbolConstructor {
|
|
1183
|
+
readonly observable: symbol;
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1094
1187
|
declare const __metadata$1: {
|
|
1095
1188
|
PACKAGE_NAME: string;
|
|
1096
1189
|
};
|
|
1097
|
-
declare function getUrl(httpClient: HttpClient): (productId: string, options?: GetUrlOptions) => Promise<GetUrlResponse & GetUrlResponseNonNullableFields>;
|
|
1098
|
-
declare function getPurchaseHistory(httpClient: HttpClient): () => Promise<GetPurchaseHistoryResponse & GetPurchaseHistoryResponseNonNullableFields>;
|
|
1190
|
+
declare function getUrl(httpClient: HttpClient$1): (productId: string, options?: GetUrlOptions) => Promise<GetUrlResponse & GetUrlResponseNonNullableFields>;
|
|
1191
|
+
declare function getPurchaseHistory(httpClient: HttpClient$1): () => Promise<GetPurchaseHistoryResponse & GetPurchaseHistoryResponseNonNullableFields>;
|
|
1099
1192
|
|
|
1100
1193
|
type index_d$1_Charge = Charge;
|
|
1101
1194
|
type index_d$1_ChargeOverride = ChargeOverride;
|
|
@@ -1181,6 +1274,37 @@ interface GetEmbeddedScriptOptions {
|
|
|
1181
1274
|
componentId?: string | null;
|
|
1182
1275
|
}
|
|
1183
1276
|
|
|
1277
|
+
interface HttpClient {
|
|
1278
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1279
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1280
|
+
}
|
|
1281
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
1282
|
+
type HttpResponse<T = any> = {
|
|
1283
|
+
data: T;
|
|
1284
|
+
status: number;
|
|
1285
|
+
statusText: string;
|
|
1286
|
+
headers: any;
|
|
1287
|
+
request?: any;
|
|
1288
|
+
};
|
|
1289
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
1290
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1291
|
+
url: string;
|
|
1292
|
+
data?: Data;
|
|
1293
|
+
params?: URLSearchParams;
|
|
1294
|
+
} & APIMetadata;
|
|
1295
|
+
type APIMetadata = {
|
|
1296
|
+
methodFqn?: string;
|
|
1297
|
+
entityFqdn?: string;
|
|
1298
|
+
packageName?: string;
|
|
1299
|
+
};
|
|
1300
|
+
|
|
1301
|
+
declare global {
|
|
1302
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1303
|
+
interface SymbolConstructor {
|
|
1304
|
+
readonly observable: symbol;
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1184
1308
|
declare const __metadata: {
|
|
1185
1309
|
PACKAGE_NAME: string;
|
|
1186
1310
|
};
|