@wix/app-management 1.0.18 → 1.0.19

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/app-management",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -19,12 +19,12 @@
19
19
  "service-plugins"
20
20
  ],
21
21
  "dependencies": {
22
- "@wix/app-management_app-instances": "1.0.9",
23
- "@wix/app-management_app-plans": "1.0.9",
24
- "@wix/app-management_bi-events": "1.0.8",
25
- "@wix/app-management_billing": "1.0.9",
26
- "@wix/app-management_custom-charges": "1.0.4",
27
- "@wix/app-management_embedded-scripts": "1.0.6"
22
+ "@wix/app-management_app-instances": "1.0.10",
23
+ "@wix/app-management_app-plans": "1.0.10",
24
+ "@wix/app-management_bi-events": "1.0.9",
25
+ "@wix/app-management_billing": "1.0.10",
26
+ "@wix/app-management_custom-charges": "1.0.5",
27
+ "@wix/app-management_embedded-scripts": "1.0.7"
28
28
  },
29
29
  "devDependencies": {
30
30
  "glob": "^10.4.1",
@@ -48,5 +48,5 @@
48
48
  "fqdn": ""
49
49
  }
50
50
  },
51
- "falconPackageHash": "c93ddde8a502652d4d9c0c1f79738a8318be5afb21b0d7a670e63b88"
51
+ "falconPackageHash": "e21d5d1a848dbeeb5ad5bc688ab353b7a68ee4f413a33c9c7ea9f9b4"
52
52
  }
@@ -219,31 +219,41 @@ interface ListAppPlansByAppIdResponseNonNullableFields {
219
219
  }[];
220
220
  }
221
221
 
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>>;
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>>;
225
225
  fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
226
226
  }
227
- type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
228
- type HttpResponse$4<T = any> = {
227
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
228
+ type HttpResponse<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$4<_TResponse = any, Data = any> = {
235
+ type RequestOptions<_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$4;
241
- type APIMetadata$4 = {
240
+ } & APIMetadata;
241
+ type APIMetadata = {
242
242
  methodFqn?: string;
243
243
  entityFqdn?: string;
244
244
  packageName?: string;
245
245
  };
246
- type BuildRESTFunction$4<T extends RESTFunctionDescriptor$4> = T extends RESTFunctionDescriptor$4<infer U> ? U : never;
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;
247
257
 
248
258
  declare global {
249
259
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -252,9 +262,9 @@ declare global {
252
262
  }
253
263
  }
254
264
 
255
- declare function listAppPlansByAppId$1(httpClient: HttpClient$4): (appIds: string[]) => Promise<ListAppPlansByAppIdResponse & ListAppPlansByAppIdResponseNonNullableFields>;
265
+ declare function listAppPlansByAppId$1(httpClient: HttpClient): (appIds: string[]) => Promise<ListAppPlansByAppIdResponse & ListAppPlansByAppIdResponseNonNullableFields>;
256
266
 
257
- declare const listAppPlansByAppId: BuildRESTFunction$4<typeof listAppPlansByAppId$1>;
267
+ declare const listAppPlansByAppId: BuildRESTFunction<typeof listAppPlansByAppId$1>;
258
268
 
259
269
  declare const context$4_listAppPlansByAppId: typeof listAppPlansByAppId;
260
270
  declare namespace context$4 {
@@ -640,57 +650,14 @@ interface AppInstancePaidPlanAutoRenewalCancelledEnvelope {
640
650
  metadata: BaseEventMetadata;
641
651
  }
642
652
 
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>;
653
+ declare function getAppInstance$1(httpClient: HttpClient): () => Promise<GetAppInstanceResponse & GetAppInstanceResponseNonNullableFields>;
687
654
  declare const onAppInstanceInstalled$1: EventDefinition<AppInstanceInstalledEnvelope, "AppInstalled">;
688
655
  declare const onAppInstanceRemoved$1: EventDefinition<AppInstanceRemovedEnvelope, "AppRemoved">;
689
656
  declare const onAppInstancePaidPlanPurchased$1: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
690
657
  declare const onAppInstancePaidPlanChanged$1: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
691
658
  declare const onAppInstancePaidPlanAutoRenewalCancelled$1: EventDefinition<AppInstancePaidPlanAutoRenewalCancelledEnvelope, "PaidPlanAutoRenewalCancelled">;
692
659
 
693
- declare const getAppInstance: BuildRESTFunction$3<typeof getAppInstance$1>;
660
+ declare const getAppInstance: BuildRESTFunction<typeof getAppInstance$1>;
694
661
  declare const onAppInstanceInstalled: BuildEventDefinition<typeof onAppInstanceInstalled$1>;
695
662
  declare const onAppInstanceRemoved: BuildEventDefinition<typeof onAppInstanceRemoved$1>;
696
663
  declare const onAppInstancePaidPlanPurchased: BuildEventDefinition<typeof onAppInstancePaidPlanPurchased$1>;
@@ -707,39 +674,6 @@ declare namespace context$3 {
707
674
  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 };
708
675
  }
709
676
 
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
-
743
677
  declare enum EventName {
744
678
  UNKNOWN = "UNKNOWN",
745
679
  APP_DASHBOARD_LOADED = "APP_DASHBOARD_LOADED",
@@ -790,9 +724,9 @@ interface SendBiEventOptions {
790
724
  eventData?: Record<string, string>;
791
725
  }
792
726
 
793
- declare function sendBiEvent$1(httpClient: HttpClient$2): (options?: SendBiEventOptions) => Promise<void>;
727
+ declare function sendBiEvent$1(httpClient: HttpClient): (options?: SendBiEventOptions) => Promise<void>;
794
728
 
795
- declare const sendBiEvent: BuildRESTFunction$2<typeof sendBiEvent$1>;
729
+ declare const sendBiEvent: BuildRESTFunction<typeof sendBiEvent$1>;
796
730
 
797
731
  declare const context$2_sendBiEvent: typeof sendBiEvent;
798
732
  declare namespace context$2 {
@@ -885,44 +819,11 @@ interface GetUrlOptions {
885
819
  couponCode?: string | null;
886
820
  }
887
821
 
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>;
822
+ declare function getUrl$1(httpClient: HttpClient): (productId: string, options?: GetUrlOptions) => Promise<GetUrlResponse & GetUrlResponseNonNullableFields>;
823
+ declare function getPurchaseHistory$1(httpClient: HttpClient): () => Promise<GetPurchaseHistoryResponse & GetPurchaseHistoryResponseNonNullableFields>;
923
824
 
924
- declare const getUrl: BuildRESTFunction$1<typeof getUrl$1>;
925
- declare const getPurchaseHistory: BuildRESTFunction$1<typeof getPurchaseHistory$1>;
825
+ declare const getUrl: BuildRESTFunction<typeof getUrl$1>;
826
+ declare const getPurchaseHistory: BuildRESTFunction<typeof getPurchaseHistory$1>;
926
827
 
927
828
  declare const context$1_getPurchaseHistory: typeof getPurchaseHistory;
928
829
  declare const context$1_getUrl: typeof getUrl;
@@ -955,39 +856,6 @@ interface GetEmbeddedScriptOptions {
955
856
  componentId?: string | null;
956
857
  }
957
858
 
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
-
991
859
  declare function embedScript$1(httpClient: HttpClient): (properties: ScriptProperties, options?: EmbedScriptOptions) => Promise<EmbedScriptResponse & EmbedScriptResponseNonNullableFields>;
992
860
  declare function getEmbeddedScript$1(httpClient: HttpClient): (options?: GetEmbeddedScriptOptions) => Promise<ScriptProperties & {
993
861
  disabled: boolean;
@@ -228,29 +228,37 @@ interface ListAppPlansByAppIdResponseNonNullableFields {
228
228
  }[];
229
229
  }
230
230
 
231
- interface HttpClient$4 {
232
- request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
231
+ interface HttpClient {
232
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
233
233
  fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
234
234
  }
235
- type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
236
- type HttpResponse$4<T = any> = {
235
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
236
+ type HttpResponse<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$4<_TResponse = any, Data = any> = {
243
+ type RequestOptions<_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$4;
249
- type APIMetadata$4 = {
248
+ } & APIMetadata;
249
+ type APIMetadata = {
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>;
254
262
 
255
263
  declare global {
256
264
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -262,7 +270,7 @@ declare global {
262
270
  declare const __metadata$4: {
263
271
  PACKAGE_NAME: string;
264
272
  };
265
- declare function listAppPlansByAppId(httpClient: HttpClient$4): (appIds: string[]) => Promise<ListAppPlansByAppIdResponse & ListAppPlansByAppIdResponseNonNullableFields>;
273
+ declare function listAppPlansByAppId(httpClient: HttpClient): (appIds: string[]) => Promise<ListAppPlansByAppIdResponse & ListAppPlansByAppIdResponseNonNullableFields>;
266
274
 
267
275
  type index_d$4_AppPlans = AppPlans;
268
276
  type index_d$4_Cycle = Cycle;
@@ -680,49 +688,10 @@ interface AppInstancePaidPlanAutoRenewalCancelledEnvelope {
680
688
  metadata: BaseEventMetadata;
681
689
  }
682
690
 
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
-
722
691
  declare const __metadata$3: {
723
692
  PACKAGE_NAME: string;
724
693
  };
725
- declare function getAppInstance(httpClient: HttpClient$3): () => Promise<GetAppInstanceResponse & GetAppInstanceResponseNonNullableFields>;
694
+ declare function getAppInstance(httpClient: HttpClient): () => Promise<GetAppInstanceResponse & GetAppInstanceResponseNonNullableFields>;
726
695
  declare const onAppInstanceInstalled: EventDefinition<AppInstanceInstalledEnvelope, "AppInstalled">;
727
696
  declare const onAppInstanceRemoved: EventDefinition<AppInstanceRemovedEnvelope, "AppRemoved">;
728
697
  declare const onAppInstancePaidPlanPurchased: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
@@ -767,37 +736,6 @@ declare namespace index_d$3 {
767
736
  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 };
768
737
  }
769
738
 
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
-
801
739
  interface SendBIEventResponse {
802
740
  }
803
741
  interface SendBIEventRequest {
@@ -889,7 +827,7 @@ interface SendBiEventOptions {
889
827
  declare const __metadata$2: {
890
828
  PACKAGE_NAME: string;
891
829
  };
892
- declare function sendBiEvent(httpClient: HttpClient$2): (options?: SendBiEventOptions) => Promise<void>;
830
+ declare function sendBiEvent(httpClient: HttpClient): (options?: SendBiEventOptions) => Promise<void>;
893
831
 
894
832
  type index_d$2_EventName = EventName;
895
833
  declare const index_d$2_EventName: typeof EventName;
@@ -1153,42 +1091,11 @@ interface GetUrlOptions {
1153
1091
  couponCode?: string | null;
1154
1092
  }
1155
1093
 
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
-
1187
1094
  declare const __metadata$1: {
1188
1095
  PACKAGE_NAME: string;
1189
1096
  };
1190
- declare function getUrl(httpClient: HttpClient$1): (productId: string, options?: GetUrlOptions) => Promise<GetUrlResponse & GetUrlResponseNonNullableFields>;
1191
- declare function getPurchaseHistory(httpClient: HttpClient$1): () => Promise<GetPurchaseHistoryResponse & GetPurchaseHistoryResponseNonNullableFields>;
1097
+ declare function getUrl(httpClient: HttpClient): (productId: string, options?: GetUrlOptions) => Promise<GetUrlResponse & GetUrlResponseNonNullableFields>;
1098
+ declare function getPurchaseHistory(httpClient: HttpClient): () => Promise<GetPurchaseHistoryResponse & GetPurchaseHistoryResponseNonNullableFields>;
1192
1099
 
1193
1100
  type index_d$1_Charge = Charge;
1194
1101
  type index_d$1_ChargeOverride = ChargeOverride;
@@ -1274,37 +1181,6 @@ interface GetEmbeddedScriptOptions {
1274
1181
  componentId?: string | null;
1275
1182
  }
1276
1183
 
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
-
1308
1184
  declare const __metadata: {
1309
1185
  PACKAGE_NAME: string;
1310
1186
  };