@wix/app-management 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/app-management",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
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.
|
|
23
|
-
"@wix/app-management_app-plans": "1.0.
|
|
24
|
-
"@wix/app-management_bi-events": "1.0.
|
|
25
|
-
"@wix/app-management_billing": "1.0.
|
|
26
|
-
"@wix/app-management_custom-charges": "1.0.
|
|
27
|
-
"@wix/app-management_embedded-scripts": "1.0.
|
|
22
|
+
"@wix/app-management_app-instances": "1.0.16",
|
|
23
|
+
"@wix/app-management_app-plans": "1.0.16",
|
|
24
|
+
"@wix/app-management_bi-events": "1.0.15",
|
|
25
|
+
"@wix/app-management_billing": "1.0.16",
|
|
26
|
+
"@wix/app-management_custom-charges": "1.0.14",
|
|
27
|
+
"@wix/app-management_embedded-scripts": "1.0.13"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"glob": "^10.4.1",
|
|
@@ -33,8 +33,9 @@
|
|
|
33
33
|
"typescript": "^5.3.2"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
|
-
"build": "tsc -b tsconfig.json tsconfig.esm.json && npm run build:dts-bundles",
|
|
36
|
+
"build": "tsc -b tsconfig.json tsconfig.esm.json && npm run build:dts-bundles && npm run build:validate-dts",
|
|
37
37
|
"build:dts-bundles": "test -f config/rollup-config.js && NODE_OPTIONS=--max-old-space-size=8192 rollup --config config/rollup-config.js || echo 'Warning: config/rollup-config.js not found!'",
|
|
38
|
+
"build:validate-dts": "tsc type-bundles/*.d.ts --noEmit",
|
|
38
39
|
"test": ":"
|
|
39
40
|
},
|
|
40
41
|
"wix": {
|
|
@@ -48,5 +49,5 @@
|
|
|
48
49
|
"fqdn": ""
|
|
49
50
|
}
|
|
50
51
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
52
|
+
"falconPackageHash": "c4c0e29043bcbcef96d15a9644c4df19956fcb419059a6b6d0c43af3"
|
|
52
53
|
}
|
|
@@ -278,9 +278,12 @@ declare global {
|
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
+
declare function listAppPlansByAppId$1(httpClient: HttpClient): (appIds: string[]) => Promise<ListAppPlansByAppIdResponse & ListAppPlansByAppIdResponseNonNullableFields>;
|
|
282
|
+
|
|
281
283
|
declare function createRESTModule$4<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
282
284
|
|
|
283
|
-
|
|
285
|
+
type _publicListAppPlansByAppIdType = typeof listAppPlansByAppId$1;
|
|
286
|
+
declare const listAppPlansByAppId: ReturnType<typeof createRESTModule$4<_publicListAppPlansByAppIdType>>;
|
|
284
287
|
|
|
285
288
|
type context$4_AppPlans = AppPlans;
|
|
286
289
|
type context$4_Cycle = Cycle;
|
|
@@ -298,9 +301,10 @@ type context$4_TaxSettings = TaxSettings;
|
|
|
298
301
|
type context$4_TaxType = TaxType;
|
|
299
302
|
declare const context$4_TaxType: typeof TaxType;
|
|
300
303
|
type context$4_UsageBasedDetails = UsageBasedDetails;
|
|
304
|
+
type context$4__publicListAppPlansByAppIdType = _publicListAppPlansByAppIdType;
|
|
301
305
|
declare const context$4_listAppPlansByAppId: typeof listAppPlansByAppId;
|
|
302
306
|
declare namespace context$4 {
|
|
303
|
-
export { type context$4_AppPlans as AppPlans, type context$4_Cycle as Cycle, context$4_CycleType as CycleType, type context$4_Duration as Duration, context$4_DurationUnit as DurationUnit, type context$4_ListAppPlansByAppIdRequest as ListAppPlansByAppIdRequest, type context$4_ListAppPlansByAppIdResponse as ListAppPlansByAppIdResponse, type context$4_ListAppPlansByAppIdResponseNonNullableFields as ListAppPlansByAppIdResponseNonNullableFields, type context$4_Plan as Plan, type context$4_Price as Price, type context$4_TaxSettings as TaxSettings, context$4_TaxType as TaxType, type context$4_UsageBasedDetails as UsageBasedDetails, context$4_listAppPlansByAppId as listAppPlansByAppId };
|
|
307
|
+
export { type context$4_AppPlans as AppPlans, type context$4_Cycle as Cycle, context$4_CycleType as CycleType, type context$4_Duration as Duration, context$4_DurationUnit as DurationUnit, type context$4_ListAppPlansByAppIdRequest as ListAppPlansByAppIdRequest, type context$4_ListAppPlansByAppIdResponse as ListAppPlansByAppIdResponse, type context$4_ListAppPlansByAppIdResponseNonNullableFields as ListAppPlansByAppIdResponseNonNullableFields, type context$4_Plan as Plan, type context$4_Price as Price, type context$4_TaxSettings as TaxSettings, context$4_TaxType as TaxType, type context$4_UsageBasedDetails as UsageBasedDetails, type context$4__publicListAppPlansByAppIdType as _publicListAppPlansByAppIdType, context$4_listAppPlansByAppId as listAppPlansByAppId };
|
|
304
308
|
}
|
|
305
309
|
|
|
306
310
|
/**
|
|
@@ -707,16 +711,34 @@ interface AppInstancePaidPlanAutoRenewalCancelledEnvelope {
|
|
|
707
711
|
metadata: BaseEventMetadata;
|
|
708
712
|
}
|
|
709
713
|
|
|
714
|
+
declare function getAppInstance$1(httpClient: HttpClient): () => Promise<GetAppInstanceResponse & GetAppInstanceResponseNonNullableFields>;
|
|
715
|
+
declare const onAppInstanceInstalled$1: EventDefinition<AppInstanceInstalledEnvelope, "AppInstalled">;
|
|
716
|
+
declare const onAppInstanceRemoved$1: EventDefinition<AppInstanceRemovedEnvelope, "AppRemoved">;
|
|
717
|
+
declare const onAppInstancePaidPlanPurchased$1: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
|
|
718
|
+
declare const onAppInstancePaidPlanChanged$1: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
|
|
719
|
+
declare const onAppInstancePaidPlanAutoRenewalCancelled$1: EventDefinition<AppInstancePaidPlanAutoRenewalCancelledEnvelope, "PaidPlanAutoRenewalCancelled">;
|
|
720
|
+
|
|
710
721
|
declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
711
722
|
|
|
712
723
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
713
724
|
|
|
714
|
-
|
|
715
|
-
declare const
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
declare const
|
|
719
|
-
|
|
725
|
+
type _publicGetAppInstanceType = typeof getAppInstance$1;
|
|
726
|
+
declare const getAppInstance: ReturnType<typeof createRESTModule$3<_publicGetAppInstanceType>>;
|
|
727
|
+
|
|
728
|
+
type _publicOnAppInstanceInstalledType = typeof onAppInstanceInstalled$1;
|
|
729
|
+
declare const onAppInstanceInstalled: ReturnType<typeof createEventModule<_publicOnAppInstanceInstalledType>>;
|
|
730
|
+
|
|
731
|
+
type _publicOnAppInstanceRemovedType = typeof onAppInstanceRemoved$1;
|
|
732
|
+
declare const onAppInstanceRemoved: ReturnType<typeof createEventModule<_publicOnAppInstanceRemovedType>>;
|
|
733
|
+
|
|
734
|
+
type _publicOnAppInstancePaidPlanPurchasedType = typeof onAppInstancePaidPlanPurchased$1;
|
|
735
|
+
declare const onAppInstancePaidPlanPurchased: ReturnType<typeof createEventModule<_publicOnAppInstancePaidPlanPurchasedType>>;
|
|
736
|
+
|
|
737
|
+
type _publicOnAppInstancePaidPlanChangedType = typeof onAppInstancePaidPlanChanged$1;
|
|
738
|
+
declare const onAppInstancePaidPlanChanged: ReturnType<typeof createEventModule<_publicOnAppInstancePaidPlanChangedType>>;
|
|
739
|
+
|
|
740
|
+
type _publicOnAppInstancePaidPlanAutoRenewalCancelledType = typeof onAppInstancePaidPlanAutoRenewalCancelled$1;
|
|
741
|
+
declare const onAppInstancePaidPlanAutoRenewalCancelled: ReturnType<typeof createEventModule<_publicOnAppInstancePaidPlanAutoRenewalCancelledType>>;
|
|
720
742
|
|
|
721
743
|
type context$3_AppInstalled = AppInstalled;
|
|
722
744
|
type context$3_AppInstance = AppInstance;
|
|
@@ -746,6 +768,12 @@ type context$3_ResolutionMethod = ResolutionMethod;
|
|
|
746
768
|
declare const context$3_ResolutionMethod: typeof ResolutionMethod;
|
|
747
769
|
type context$3_SiteInfo = SiteInfo;
|
|
748
770
|
type context$3_SupportedLanguage = SupportedLanguage;
|
|
771
|
+
type context$3__publicGetAppInstanceType = _publicGetAppInstanceType;
|
|
772
|
+
type context$3__publicOnAppInstanceInstalledType = _publicOnAppInstanceInstalledType;
|
|
773
|
+
type context$3__publicOnAppInstancePaidPlanAutoRenewalCancelledType = _publicOnAppInstancePaidPlanAutoRenewalCancelledType;
|
|
774
|
+
type context$3__publicOnAppInstancePaidPlanChangedType = _publicOnAppInstancePaidPlanChangedType;
|
|
775
|
+
type context$3__publicOnAppInstancePaidPlanPurchasedType = _publicOnAppInstancePaidPlanPurchasedType;
|
|
776
|
+
type context$3__publicOnAppInstanceRemovedType = _publicOnAppInstanceRemovedType;
|
|
749
777
|
declare const context$3_getAppInstance: typeof getAppInstance;
|
|
750
778
|
declare const context$3_onAppInstanceInstalled: typeof onAppInstanceInstalled;
|
|
751
779
|
declare const context$3_onAppInstancePaidPlanAutoRenewalCancelled: typeof onAppInstancePaidPlanAutoRenewalCancelled;
|
|
@@ -753,7 +781,7 @@ declare const context$3_onAppInstancePaidPlanChanged: typeof onAppInstancePaidPl
|
|
|
753
781
|
declare const context$3_onAppInstancePaidPlanPurchased: typeof onAppInstancePaidPlanPurchased;
|
|
754
782
|
declare const context$3_onAppInstanceRemoved: typeof onAppInstanceRemoved;
|
|
755
783
|
declare namespace context$3 {
|
|
756
|
-
export { type context$3_AppInstalled as AppInstalled, type context$3_AppInstance as AppInstance, type context$3_AppInstanceInstalledEnvelope as AppInstanceInstalledEnvelope, type context$3_AppInstancePaidPlanAutoRenewalCancelledEnvelope as AppInstancePaidPlanAutoRenewalCancelledEnvelope, type context$3_AppInstancePaidPlanChangedEnvelope as AppInstancePaidPlanChangedEnvelope, type context$3_AppInstancePaidPlanPurchasedEnvelope as AppInstancePaidPlanPurchasedEnvelope, type context$3_AppInstanceRemovedEnvelope as AppInstanceRemovedEnvelope, type context$3_AppRemoved as AppRemoved, type context$3_AvailablePlan as AvailablePlan, type context$3_BaseEventMetadata as BaseEventMetadata, type context$3_BillingInfo as BillingInfo, type context$3_FreeTrialInfo as FreeTrialInfo, context$3_FreeTrialStatus as FreeTrialStatus, type context$3_GetAppInstanceByInstanceIdRequest as GetAppInstanceByInstanceIdRequest, type context$3_GetAppInstanceRequest as GetAppInstanceRequest, type context$3_GetAppInstanceResponse as GetAppInstanceResponse, type context$3_GetAppInstanceResponseNonNullableFields as GetAppInstanceResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type context$3_Locale as Locale, type MessageEnvelope$1 as MessageEnvelope, type context$3_Multilingual as Multilingual, type context$3_OwnerInfo as OwnerInfo, type context$3_PaidPlanAutoRenewalCancelled as PaidPlanAutoRenewalCancelled, type context$3_PaidPlanChanged as PaidPlanChanged, type context$3_PaidPlanPurchased as PaidPlanPurchased, PaymentCycle$1 as PaymentCycle, context$3_ResolutionMethod as ResolutionMethod, type context$3_SiteInfo as SiteInfo, type context$3_SupportedLanguage as SupportedLanguage, WebhookIdentityType$1 as WebhookIdentityType, 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 };
|
|
784
|
+
export { type context$3_AppInstalled as AppInstalled, type context$3_AppInstance as AppInstance, type context$3_AppInstanceInstalledEnvelope as AppInstanceInstalledEnvelope, type context$3_AppInstancePaidPlanAutoRenewalCancelledEnvelope as AppInstancePaidPlanAutoRenewalCancelledEnvelope, type context$3_AppInstancePaidPlanChangedEnvelope as AppInstancePaidPlanChangedEnvelope, type context$3_AppInstancePaidPlanPurchasedEnvelope as AppInstancePaidPlanPurchasedEnvelope, type context$3_AppInstanceRemovedEnvelope as AppInstanceRemovedEnvelope, type context$3_AppRemoved as AppRemoved, type context$3_AvailablePlan as AvailablePlan, type context$3_BaseEventMetadata as BaseEventMetadata, type context$3_BillingInfo as BillingInfo, type context$3_FreeTrialInfo as FreeTrialInfo, context$3_FreeTrialStatus as FreeTrialStatus, type context$3_GetAppInstanceByInstanceIdRequest as GetAppInstanceByInstanceIdRequest, type context$3_GetAppInstanceRequest as GetAppInstanceRequest, type context$3_GetAppInstanceResponse as GetAppInstanceResponse, type context$3_GetAppInstanceResponseNonNullableFields as GetAppInstanceResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type context$3_Locale as Locale, type MessageEnvelope$1 as MessageEnvelope, type context$3_Multilingual as Multilingual, type context$3_OwnerInfo as OwnerInfo, type context$3_PaidPlanAutoRenewalCancelled as PaidPlanAutoRenewalCancelled, type context$3_PaidPlanChanged as PaidPlanChanged, type context$3_PaidPlanPurchased as PaidPlanPurchased, PaymentCycle$1 as PaymentCycle, context$3_ResolutionMethod as ResolutionMethod, type context$3_SiteInfo as SiteInfo, type context$3_SupportedLanguage as SupportedLanguage, WebhookIdentityType$1 as WebhookIdentityType, type context$3__publicGetAppInstanceType as _publicGetAppInstanceType, type context$3__publicOnAppInstanceInstalledType as _publicOnAppInstanceInstalledType, type context$3__publicOnAppInstancePaidPlanAutoRenewalCancelledType as _publicOnAppInstancePaidPlanAutoRenewalCancelledType, type context$3__publicOnAppInstancePaidPlanChangedType as _publicOnAppInstancePaidPlanChangedType, type context$3__publicOnAppInstancePaidPlanPurchasedType as _publicOnAppInstancePaidPlanPurchasedType, type context$3__publicOnAppInstanceRemovedType as _publicOnAppInstanceRemovedType, 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, onAppInstanceInstalled$1 as publicOnAppInstanceInstalled, onAppInstancePaidPlanAutoRenewalCancelled$1 as publicOnAppInstancePaidPlanAutoRenewalCancelled, onAppInstancePaidPlanChanged$1 as publicOnAppInstancePaidPlanChanged, onAppInstancePaidPlanPurchased$1 as publicOnAppInstancePaidPlanPurchased, onAppInstanceRemoved$1 as publicOnAppInstanceRemoved };
|
|
757
785
|
}
|
|
758
786
|
|
|
759
787
|
interface SendBIEventResponse {
|
|
@@ -844,18 +872,22 @@ interface SendBiEventOptions {
|
|
|
844
872
|
eventData?: Record<string, string>;
|
|
845
873
|
}
|
|
846
874
|
|
|
875
|
+
declare function sendBiEvent$1(httpClient: HttpClient): (options?: SendBiEventOptions) => Promise<void>;
|
|
876
|
+
|
|
847
877
|
declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
848
878
|
|
|
849
|
-
|
|
879
|
+
type _publicSendBiEventType = typeof sendBiEvent$1;
|
|
880
|
+
declare const sendBiEvent: ReturnType<typeof createRESTModule$2<_publicSendBiEventType>>;
|
|
850
881
|
|
|
851
882
|
type context$2_EventName = EventName;
|
|
852
883
|
declare const context$2_EventName: typeof EventName;
|
|
853
884
|
type context$2_SendBIEventRequest = SendBIEventRequest;
|
|
854
885
|
type context$2_SendBIEventResponse = SendBIEventResponse;
|
|
855
886
|
type context$2_SendBiEventOptions = SendBiEventOptions;
|
|
887
|
+
type context$2__publicSendBiEventType = _publicSendBiEventType;
|
|
856
888
|
declare const context$2_sendBiEvent: typeof sendBiEvent;
|
|
857
889
|
declare namespace context$2 {
|
|
858
|
-
export { context$2_EventName as EventName, type context$2_SendBIEventRequest as SendBIEventRequest, type context$2_SendBIEventResponse as SendBIEventResponse, type context$2_SendBiEventOptions as SendBiEventOptions, context$2_sendBiEvent as sendBiEvent };
|
|
890
|
+
export { context$2_EventName as EventName, type context$2_SendBIEventRequest as SendBIEventRequest, type context$2_SendBIEventResponse as SendBIEventResponse, type context$2_SendBiEventOptions as SendBiEventOptions, type context$2__publicSendBiEventType as _publicSendBiEventType, context$2_sendBiEvent as sendBiEvent };
|
|
859
891
|
}
|
|
860
892
|
|
|
861
893
|
interface PurchasedItem {
|
|
@@ -1111,10 +1143,15 @@ interface GetUrlOptions {
|
|
|
1111
1143
|
couponCode?: string | null;
|
|
1112
1144
|
}
|
|
1113
1145
|
|
|
1146
|
+
declare function getUrl$1(httpClient: HttpClient): (productId: string, options?: GetUrlOptions) => Promise<GetUrlResponse & GetUrlResponseNonNullableFields>;
|
|
1147
|
+
declare function getPurchaseHistory$1(httpClient: HttpClient): () => Promise<GetPurchaseHistoryResponse & GetPurchaseHistoryResponseNonNullableFields>;
|
|
1148
|
+
|
|
1114
1149
|
declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
1115
1150
|
|
|
1116
|
-
|
|
1117
|
-
declare const
|
|
1151
|
+
type _publicGetUrlType = typeof getUrl$1;
|
|
1152
|
+
declare const getUrl: ReturnType<typeof createRESTModule$1<_publicGetUrlType>>;
|
|
1153
|
+
type _publicGetPurchaseHistoryType = typeof getPurchaseHistory$1;
|
|
1154
|
+
declare const getPurchaseHistory: ReturnType<typeof createRESTModule$1<_publicGetPurchaseHistoryType>>;
|
|
1118
1155
|
|
|
1119
1156
|
type context$1_Charge = Charge;
|
|
1120
1157
|
type context$1_ChargeOverride = ChargeOverride;
|
|
@@ -1140,10 +1177,12 @@ declare const context$1_PaymentCycle: typeof PaymentCycle;
|
|
|
1140
1177
|
type context$1_PurchasedItem = PurchasedItem;
|
|
1141
1178
|
type context$1_WebhookIdentityType = WebhookIdentityType;
|
|
1142
1179
|
declare const context$1_WebhookIdentityType: typeof WebhookIdentityType;
|
|
1180
|
+
type context$1__publicGetPurchaseHistoryType = _publicGetPurchaseHistoryType;
|
|
1181
|
+
type context$1__publicGetUrlType = _publicGetUrlType;
|
|
1143
1182
|
declare const context$1_getPurchaseHistory: typeof getPurchaseHistory;
|
|
1144
1183
|
declare const context$1_getUrl: typeof getUrl;
|
|
1145
1184
|
declare namespace context$1 {
|
|
1146
|
-
export { type context$1_Charge as Charge, type context$1_ChargeOverride as ChargeOverride, type context$1_GetMeteredBillingChargesRequest as GetMeteredBillingChargesRequest, type context$1_GetMeteredBillingChargesResponse as GetMeteredBillingChargesResponse, type context$1_GetPurchaseHistoryRequest as GetPurchaseHistoryRequest, type context$1_GetPurchaseHistoryResponse as GetPurchaseHistoryResponse, type context$1_GetPurchaseHistoryResponseNonNullableFields as GetPurchaseHistoryResponseNonNullableFields, type context$1_GetSitePaymentMethodsStatusRequest as GetSitePaymentMethodsStatusRequest, type context$1_GetSitePaymentMethodsStatusResponse as GetSitePaymentMethodsStatusResponse, type context$1_GetUrlOptions as GetUrlOptions, type context$1_GetUrlRequest as GetUrlRequest, type context$1_GetUrlResponse as GetUrlResponse, type context$1_GetUrlResponseNonNullableFields as GetUrlResponseNonNullableFields, type context$1_IdentificationData as IdentificationData, type context$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context$1_InvoiceStatus as InvoiceStatus, type context$1_InvoiceStatusUpdate as InvoiceStatusUpdate, type context$1_MessageEnvelope as MessageEnvelope, context$1_PaymentCycle as PaymentCycle, type context$1_PurchasedItem as PurchasedItem, context$1_WebhookIdentityType as WebhookIdentityType, context$1_getPurchaseHistory as getPurchaseHistory, context$1_getUrl as getUrl };
|
|
1185
|
+
export { type context$1_Charge as Charge, type context$1_ChargeOverride as ChargeOverride, type context$1_GetMeteredBillingChargesRequest as GetMeteredBillingChargesRequest, type context$1_GetMeteredBillingChargesResponse as GetMeteredBillingChargesResponse, type context$1_GetPurchaseHistoryRequest as GetPurchaseHistoryRequest, type context$1_GetPurchaseHistoryResponse as GetPurchaseHistoryResponse, type context$1_GetPurchaseHistoryResponseNonNullableFields as GetPurchaseHistoryResponseNonNullableFields, type context$1_GetSitePaymentMethodsStatusRequest as GetSitePaymentMethodsStatusRequest, type context$1_GetSitePaymentMethodsStatusResponse as GetSitePaymentMethodsStatusResponse, type context$1_GetUrlOptions as GetUrlOptions, type context$1_GetUrlRequest as GetUrlRequest, type context$1_GetUrlResponse as GetUrlResponse, type context$1_GetUrlResponseNonNullableFields as GetUrlResponseNonNullableFields, type context$1_IdentificationData as IdentificationData, type context$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context$1_InvoiceStatus as InvoiceStatus, type context$1_InvoiceStatusUpdate as InvoiceStatusUpdate, type context$1_MessageEnvelope as MessageEnvelope, context$1_PaymentCycle as PaymentCycle, type context$1_PurchasedItem as PurchasedItem, context$1_WebhookIdentityType as WebhookIdentityType, type context$1__publicGetPurchaseHistoryType as _publicGetPurchaseHistoryType, type context$1__publicGetUrlType as _publicGetUrlType, context$1_getPurchaseHistory as getPurchaseHistory, context$1_getUrl as getUrl };
|
|
1147
1186
|
}
|
|
1148
1187
|
|
|
1149
1188
|
/** Embedded script data */
|
|
@@ -1199,10 +1238,15 @@ interface GetEmbeddedScriptOptions {
|
|
|
1199
1238
|
componentId?: string | null;
|
|
1200
1239
|
}
|
|
1201
1240
|
|
|
1241
|
+
declare function embedScript$1(httpClient: HttpClient): (properties: ScriptProperties, options?: EmbedScriptOptions) => Promise<EmbedScriptResponse & EmbedScriptResponseNonNullableFields>;
|
|
1242
|
+
declare function getEmbeddedScript$1(httpClient: HttpClient): (options?: GetEmbeddedScriptOptions) => Promise<ScriptProperties & ScriptPropertiesNonNullableFields>;
|
|
1243
|
+
|
|
1202
1244
|
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
1203
1245
|
|
|
1204
|
-
|
|
1205
|
-
declare const
|
|
1246
|
+
type _publicEmbedScriptType = typeof embedScript$1;
|
|
1247
|
+
declare const embedScript: ReturnType<typeof createRESTModule<_publicEmbedScriptType>>;
|
|
1248
|
+
type _publicGetEmbeddedScriptType = typeof getEmbeddedScript$1;
|
|
1249
|
+
declare const getEmbeddedScript: ReturnType<typeof createRESTModule<_publicGetEmbeddedScriptType>>;
|
|
1206
1250
|
|
|
1207
1251
|
type context_EmbedScriptByInstanceIdRequest = EmbedScriptByInstanceIdRequest;
|
|
1208
1252
|
type context_EmbedScriptOptions = EmbedScriptOptions;
|
|
@@ -1216,10 +1260,12 @@ type context_GetEmbeddedScriptResponse = GetEmbeddedScriptResponse;
|
|
|
1216
1260
|
type context_GetEmbeddedScriptResponseNonNullableFields = GetEmbeddedScriptResponseNonNullableFields;
|
|
1217
1261
|
type context_ScriptProperties = ScriptProperties;
|
|
1218
1262
|
type context_ScriptPropertiesNonNullableFields = ScriptPropertiesNonNullableFields;
|
|
1263
|
+
type context__publicEmbedScriptType = _publicEmbedScriptType;
|
|
1264
|
+
type context__publicGetEmbeddedScriptType = _publicGetEmbeddedScriptType;
|
|
1219
1265
|
declare const context_embedScript: typeof embedScript;
|
|
1220
1266
|
declare const context_getEmbeddedScript: typeof getEmbeddedScript;
|
|
1221
1267
|
declare namespace context {
|
|
1222
|
-
export { type context_EmbedScriptByInstanceIdRequest as EmbedScriptByInstanceIdRequest, type context_EmbedScriptOptions as EmbedScriptOptions, type context_EmbedScriptRequest as EmbedScriptRequest, type context_EmbedScriptResponse as EmbedScriptResponse, type context_EmbedScriptResponseNonNullableFields as EmbedScriptResponseNonNullableFields, type context_GetEmbeddedScriptByInstanceIdRequest as GetEmbeddedScriptByInstanceIdRequest, type context_GetEmbeddedScriptOptions as GetEmbeddedScriptOptions, type context_GetEmbeddedScriptRequest as GetEmbeddedScriptRequest, type context_GetEmbeddedScriptResponse as GetEmbeddedScriptResponse, type context_GetEmbeddedScriptResponseNonNullableFields as GetEmbeddedScriptResponseNonNullableFields, type context_ScriptProperties as ScriptProperties, type context_ScriptPropertiesNonNullableFields as ScriptPropertiesNonNullableFields, context_embedScript as embedScript, context_getEmbeddedScript as getEmbeddedScript };
|
|
1268
|
+
export { type context_EmbedScriptByInstanceIdRequest as EmbedScriptByInstanceIdRequest, type context_EmbedScriptOptions as EmbedScriptOptions, type context_EmbedScriptRequest as EmbedScriptRequest, type context_EmbedScriptResponse as EmbedScriptResponse, type context_EmbedScriptResponseNonNullableFields as EmbedScriptResponseNonNullableFields, type context_GetEmbeddedScriptByInstanceIdRequest as GetEmbeddedScriptByInstanceIdRequest, type context_GetEmbeddedScriptOptions as GetEmbeddedScriptOptions, type context_GetEmbeddedScriptRequest as GetEmbeddedScriptRequest, type context_GetEmbeddedScriptResponse as GetEmbeddedScriptResponse, type context_GetEmbeddedScriptResponseNonNullableFields as GetEmbeddedScriptResponseNonNullableFields, type context_ScriptProperties as ScriptProperties, type context_ScriptPropertiesNonNullableFields as ScriptPropertiesNonNullableFields, type context__publicEmbedScriptType as _publicEmbedScriptType, type context__publicGetEmbeddedScriptType as _publicGetEmbeddedScriptType, context_embedScript as embedScript, context_getEmbeddedScript as getEmbeddedScript };
|
|
1223
1269
|
}
|
|
1224
1270
|
|
|
1225
1271
|
export { context$3 as appInstances, context$4 as appPlans, context$2 as biEvents, context$1 as billing, context as embeddedScripts };
|
|
@@ -278,9 +278,12 @@ declare global {
|
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
+
declare function listAppPlansByAppId$1(httpClient: HttpClient): (appIds: string[]) => Promise<ListAppPlansByAppIdResponse & ListAppPlansByAppIdResponseNonNullableFields>;
|
|
282
|
+
|
|
281
283
|
declare function createRESTModule$4<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
282
284
|
|
|
283
|
-
|
|
285
|
+
type _publicListAppPlansByAppIdType = typeof listAppPlansByAppId$1;
|
|
286
|
+
declare const listAppPlansByAppId: ReturnType<typeof createRESTModule$4<_publicListAppPlansByAppIdType>>;
|
|
284
287
|
|
|
285
288
|
type index_d$4_AppPlans = AppPlans;
|
|
286
289
|
type index_d$4_Cycle = Cycle;
|
|
@@ -298,9 +301,10 @@ type index_d$4_TaxSettings = TaxSettings;
|
|
|
298
301
|
type index_d$4_TaxType = TaxType;
|
|
299
302
|
declare const index_d$4_TaxType: typeof TaxType;
|
|
300
303
|
type index_d$4_UsageBasedDetails = UsageBasedDetails;
|
|
304
|
+
type index_d$4__publicListAppPlansByAppIdType = _publicListAppPlansByAppIdType;
|
|
301
305
|
declare const index_d$4_listAppPlansByAppId: typeof listAppPlansByAppId;
|
|
302
306
|
declare namespace index_d$4 {
|
|
303
|
-
export { type index_d$4_AppPlans as AppPlans, type index_d$4_Cycle as Cycle, index_d$4_CycleType as CycleType, type index_d$4_Duration as Duration, index_d$4_DurationUnit as DurationUnit, type index_d$4_ListAppPlansByAppIdRequest as ListAppPlansByAppIdRequest, type index_d$4_ListAppPlansByAppIdResponse as ListAppPlansByAppIdResponse, type index_d$4_ListAppPlansByAppIdResponseNonNullableFields as ListAppPlansByAppIdResponseNonNullableFields, type index_d$4_Plan as Plan, type index_d$4_Price as Price, type index_d$4_TaxSettings as TaxSettings, index_d$4_TaxType as TaxType, type index_d$4_UsageBasedDetails as UsageBasedDetails, index_d$4_listAppPlansByAppId as listAppPlansByAppId };
|
|
307
|
+
export { type index_d$4_AppPlans as AppPlans, type index_d$4_Cycle as Cycle, index_d$4_CycleType as CycleType, type index_d$4_Duration as Duration, index_d$4_DurationUnit as DurationUnit, type index_d$4_ListAppPlansByAppIdRequest as ListAppPlansByAppIdRequest, type index_d$4_ListAppPlansByAppIdResponse as ListAppPlansByAppIdResponse, type index_d$4_ListAppPlansByAppIdResponseNonNullableFields as ListAppPlansByAppIdResponseNonNullableFields, type index_d$4_Plan as Plan, type index_d$4_Price as Price, type index_d$4_TaxSettings as TaxSettings, index_d$4_TaxType as TaxType, type index_d$4_UsageBasedDetails as UsageBasedDetails, type index_d$4__publicListAppPlansByAppIdType as _publicListAppPlansByAppIdType, index_d$4_listAppPlansByAppId as listAppPlansByAppId };
|
|
304
308
|
}
|
|
305
309
|
|
|
306
310
|
/**
|
|
@@ -707,16 +711,34 @@ interface AppInstancePaidPlanAutoRenewalCancelledEnvelope {
|
|
|
707
711
|
metadata: BaseEventMetadata;
|
|
708
712
|
}
|
|
709
713
|
|
|
714
|
+
declare function getAppInstance$1(httpClient: HttpClient): () => Promise<GetAppInstanceResponse & GetAppInstanceResponseNonNullableFields>;
|
|
715
|
+
declare const onAppInstanceInstalled$1: EventDefinition<AppInstanceInstalledEnvelope, "AppInstalled">;
|
|
716
|
+
declare const onAppInstanceRemoved$1: EventDefinition<AppInstanceRemovedEnvelope, "AppRemoved">;
|
|
717
|
+
declare const onAppInstancePaidPlanPurchased$1: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
|
|
718
|
+
declare const onAppInstancePaidPlanChanged$1: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
|
|
719
|
+
declare const onAppInstancePaidPlanAutoRenewalCancelled$1: EventDefinition<AppInstancePaidPlanAutoRenewalCancelledEnvelope, "PaidPlanAutoRenewalCancelled">;
|
|
720
|
+
|
|
710
721
|
declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
711
722
|
|
|
712
723
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
713
724
|
|
|
714
|
-
|
|
715
|
-
declare const
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
declare const
|
|
719
|
-
|
|
725
|
+
type _publicGetAppInstanceType = typeof getAppInstance$1;
|
|
726
|
+
declare const getAppInstance: ReturnType<typeof createRESTModule$3<_publicGetAppInstanceType>>;
|
|
727
|
+
|
|
728
|
+
type _publicOnAppInstanceInstalledType = typeof onAppInstanceInstalled$1;
|
|
729
|
+
declare const onAppInstanceInstalled: ReturnType<typeof createEventModule<_publicOnAppInstanceInstalledType>>;
|
|
730
|
+
|
|
731
|
+
type _publicOnAppInstanceRemovedType = typeof onAppInstanceRemoved$1;
|
|
732
|
+
declare const onAppInstanceRemoved: ReturnType<typeof createEventModule<_publicOnAppInstanceRemovedType>>;
|
|
733
|
+
|
|
734
|
+
type _publicOnAppInstancePaidPlanPurchasedType = typeof onAppInstancePaidPlanPurchased$1;
|
|
735
|
+
declare const onAppInstancePaidPlanPurchased: ReturnType<typeof createEventModule<_publicOnAppInstancePaidPlanPurchasedType>>;
|
|
736
|
+
|
|
737
|
+
type _publicOnAppInstancePaidPlanChangedType = typeof onAppInstancePaidPlanChanged$1;
|
|
738
|
+
declare const onAppInstancePaidPlanChanged: ReturnType<typeof createEventModule<_publicOnAppInstancePaidPlanChangedType>>;
|
|
739
|
+
|
|
740
|
+
type _publicOnAppInstancePaidPlanAutoRenewalCancelledType = typeof onAppInstancePaidPlanAutoRenewalCancelled$1;
|
|
741
|
+
declare const onAppInstancePaidPlanAutoRenewalCancelled: ReturnType<typeof createEventModule<_publicOnAppInstancePaidPlanAutoRenewalCancelledType>>;
|
|
720
742
|
|
|
721
743
|
type index_d$3_AppInstalled = AppInstalled;
|
|
722
744
|
type index_d$3_AppInstance = AppInstance;
|
|
@@ -746,6 +768,12 @@ type index_d$3_ResolutionMethod = ResolutionMethod;
|
|
|
746
768
|
declare const index_d$3_ResolutionMethod: typeof ResolutionMethod;
|
|
747
769
|
type index_d$3_SiteInfo = SiteInfo;
|
|
748
770
|
type index_d$3_SupportedLanguage = SupportedLanguage;
|
|
771
|
+
type index_d$3__publicGetAppInstanceType = _publicGetAppInstanceType;
|
|
772
|
+
type index_d$3__publicOnAppInstanceInstalledType = _publicOnAppInstanceInstalledType;
|
|
773
|
+
type index_d$3__publicOnAppInstancePaidPlanAutoRenewalCancelledType = _publicOnAppInstancePaidPlanAutoRenewalCancelledType;
|
|
774
|
+
type index_d$3__publicOnAppInstancePaidPlanChangedType = _publicOnAppInstancePaidPlanChangedType;
|
|
775
|
+
type index_d$3__publicOnAppInstancePaidPlanPurchasedType = _publicOnAppInstancePaidPlanPurchasedType;
|
|
776
|
+
type index_d$3__publicOnAppInstanceRemovedType = _publicOnAppInstanceRemovedType;
|
|
749
777
|
declare const index_d$3_getAppInstance: typeof getAppInstance;
|
|
750
778
|
declare const index_d$3_onAppInstanceInstalled: typeof onAppInstanceInstalled;
|
|
751
779
|
declare const index_d$3_onAppInstancePaidPlanAutoRenewalCancelled: typeof onAppInstancePaidPlanAutoRenewalCancelled;
|
|
@@ -753,7 +781,7 @@ declare const index_d$3_onAppInstancePaidPlanChanged: typeof onAppInstancePaidPl
|
|
|
753
781
|
declare const index_d$3_onAppInstancePaidPlanPurchased: typeof onAppInstancePaidPlanPurchased;
|
|
754
782
|
declare const index_d$3_onAppInstanceRemoved: typeof onAppInstanceRemoved;
|
|
755
783
|
declare namespace index_d$3 {
|
|
756
|
-
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, 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 };
|
|
784
|
+
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, type index_d$3__publicGetAppInstanceType as _publicGetAppInstanceType, type index_d$3__publicOnAppInstanceInstalledType as _publicOnAppInstanceInstalledType, type index_d$3__publicOnAppInstancePaidPlanAutoRenewalCancelledType as _publicOnAppInstancePaidPlanAutoRenewalCancelledType, type index_d$3__publicOnAppInstancePaidPlanChangedType as _publicOnAppInstancePaidPlanChangedType, type index_d$3__publicOnAppInstancePaidPlanPurchasedType as _publicOnAppInstancePaidPlanPurchasedType, type index_d$3__publicOnAppInstanceRemovedType as _publicOnAppInstanceRemovedType, 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, onAppInstanceInstalled$1 as publicOnAppInstanceInstalled, onAppInstancePaidPlanAutoRenewalCancelled$1 as publicOnAppInstancePaidPlanAutoRenewalCancelled, onAppInstancePaidPlanChanged$1 as publicOnAppInstancePaidPlanChanged, onAppInstancePaidPlanPurchased$1 as publicOnAppInstancePaidPlanPurchased, onAppInstanceRemoved$1 as publicOnAppInstanceRemoved };
|
|
757
785
|
}
|
|
758
786
|
|
|
759
787
|
interface SendBIEventResponse {
|
|
@@ -844,18 +872,22 @@ interface SendBiEventOptions {
|
|
|
844
872
|
eventData?: Record<string, string>;
|
|
845
873
|
}
|
|
846
874
|
|
|
875
|
+
declare function sendBiEvent$1(httpClient: HttpClient): (options?: SendBiEventOptions) => Promise<void>;
|
|
876
|
+
|
|
847
877
|
declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
848
878
|
|
|
849
|
-
|
|
879
|
+
type _publicSendBiEventType = typeof sendBiEvent$1;
|
|
880
|
+
declare const sendBiEvent: ReturnType<typeof createRESTModule$2<_publicSendBiEventType>>;
|
|
850
881
|
|
|
851
882
|
type index_d$2_EventName = EventName;
|
|
852
883
|
declare const index_d$2_EventName: typeof EventName;
|
|
853
884
|
type index_d$2_SendBIEventRequest = SendBIEventRequest;
|
|
854
885
|
type index_d$2_SendBIEventResponse = SendBIEventResponse;
|
|
855
886
|
type index_d$2_SendBiEventOptions = SendBiEventOptions;
|
|
887
|
+
type index_d$2__publicSendBiEventType = _publicSendBiEventType;
|
|
856
888
|
declare const index_d$2_sendBiEvent: typeof sendBiEvent;
|
|
857
889
|
declare namespace index_d$2 {
|
|
858
|
-
export { index_d$2_EventName as EventName, type index_d$2_SendBIEventRequest as SendBIEventRequest, type index_d$2_SendBIEventResponse as SendBIEventResponse, type index_d$2_SendBiEventOptions as SendBiEventOptions, index_d$2_sendBiEvent as sendBiEvent };
|
|
890
|
+
export { index_d$2_EventName as EventName, type index_d$2_SendBIEventRequest as SendBIEventRequest, type index_d$2_SendBIEventResponse as SendBIEventResponse, type index_d$2_SendBiEventOptions as SendBiEventOptions, type index_d$2__publicSendBiEventType as _publicSendBiEventType, index_d$2_sendBiEvent as sendBiEvent };
|
|
859
891
|
}
|
|
860
892
|
|
|
861
893
|
interface PurchasedItem {
|
|
@@ -1111,10 +1143,15 @@ interface GetUrlOptions {
|
|
|
1111
1143
|
couponCode?: string | null;
|
|
1112
1144
|
}
|
|
1113
1145
|
|
|
1146
|
+
declare function getUrl$1(httpClient: HttpClient): (productId: string, options?: GetUrlOptions) => Promise<GetUrlResponse & GetUrlResponseNonNullableFields>;
|
|
1147
|
+
declare function getPurchaseHistory$1(httpClient: HttpClient): () => Promise<GetPurchaseHistoryResponse & GetPurchaseHistoryResponseNonNullableFields>;
|
|
1148
|
+
|
|
1114
1149
|
declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
1115
1150
|
|
|
1116
|
-
|
|
1117
|
-
declare const
|
|
1151
|
+
type _publicGetUrlType = typeof getUrl$1;
|
|
1152
|
+
declare const getUrl: ReturnType<typeof createRESTModule$1<_publicGetUrlType>>;
|
|
1153
|
+
type _publicGetPurchaseHistoryType = typeof getPurchaseHistory$1;
|
|
1154
|
+
declare const getPurchaseHistory: ReturnType<typeof createRESTModule$1<_publicGetPurchaseHistoryType>>;
|
|
1118
1155
|
|
|
1119
1156
|
type index_d$1_Charge = Charge;
|
|
1120
1157
|
type index_d$1_ChargeOverride = ChargeOverride;
|
|
@@ -1140,10 +1177,12 @@ declare const index_d$1_PaymentCycle: typeof PaymentCycle;
|
|
|
1140
1177
|
type index_d$1_PurchasedItem = PurchasedItem;
|
|
1141
1178
|
type index_d$1_WebhookIdentityType = WebhookIdentityType;
|
|
1142
1179
|
declare const index_d$1_WebhookIdentityType: typeof WebhookIdentityType;
|
|
1180
|
+
type index_d$1__publicGetPurchaseHistoryType = _publicGetPurchaseHistoryType;
|
|
1181
|
+
type index_d$1__publicGetUrlType = _publicGetUrlType;
|
|
1143
1182
|
declare const index_d$1_getPurchaseHistory: typeof getPurchaseHistory;
|
|
1144
1183
|
declare const index_d$1_getUrl: typeof getUrl;
|
|
1145
1184
|
declare namespace index_d$1 {
|
|
1146
|
-
export { type index_d$1_Charge as Charge, type index_d$1_ChargeOverride as ChargeOverride, type index_d$1_GetMeteredBillingChargesRequest as GetMeteredBillingChargesRequest, type index_d$1_GetMeteredBillingChargesResponse as GetMeteredBillingChargesResponse, type index_d$1_GetPurchaseHistoryRequest as GetPurchaseHistoryRequest, type index_d$1_GetPurchaseHistoryResponse as GetPurchaseHistoryResponse, type index_d$1_GetPurchaseHistoryResponseNonNullableFields as GetPurchaseHistoryResponseNonNullableFields, type index_d$1_GetSitePaymentMethodsStatusRequest as GetSitePaymentMethodsStatusRequest, type index_d$1_GetSitePaymentMethodsStatusResponse as GetSitePaymentMethodsStatusResponse, type index_d$1_GetUrlOptions as GetUrlOptions, type index_d$1_GetUrlRequest as GetUrlRequest, type index_d$1_GetUrlResponse as GetUrlResponse, type index_d$1_GetUrlResponseNonNullableFields as GetUrlResponseNonNullableFields, type index_d$1_IdentificationData as IdentificationData, type index_d$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d$1_InvoiceStatus as InvoiceStatus, type index_d$1_InvoiceStatusUpdate as InvoiceStatusUpdate, type index_d$1_MessageEnvelope as MessageEnvelope, index_d$1_PaymentCycle as PaymentCycle, type index_d$1_PurchasedItem as PurchasedItem, index_d$1_WebhookIdentityType as WebhookIdentityType, index_d$1_getPurchaseHistory as getPurchaseHistory, index_d$1_getUrl as getUrl };
|
|
1185
|
+
export { type index_d$1_Charge as Charge, type index_d$1_ChargeOverride as ChargeOverride, type index_d$1_GetMeteredBillingChargesRequest as GetMeteredBillingChargesRequest, type index_d$1_GetMeteredBillingChargesResponse as GetMeteredBillingChargesResponse, type index_d$1_GetPurchaseHistoryRequest as GetPurchaseHistoryRequest, type index_d$1_GetPurchaseHistoryResponse as GetPurchaseHistoryResponse, type index_d$1_GetPurchaseHistoryResponseNonNullableFields as GetPurchaseHistoryResponseNonNullableFields, type index_d$1_GetSitePaymentMethodsStatusRequest as GetSitePaymentMethodsStatusRequest, type index_d$1_GetSitePaymentMethodsStatusResponse as GetSitePaymentMethodsStatusResponse, type index_d$1_GetUrlOptions as GetUrlOptions, type index_d$1_GetUrlRequest as GetUrlRequest, type index_d$1_GetUrlResponse as GetUrlResponse, type index_d$1_GetUrlResponseNonNullableFields as GetUrlResponseNonNullableFields, type index_d$1_IdentificationData as IdentificationData, type index_d$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d$1_InvoiceStatus as InvoiceStatus, type index_d$1_InvoiceStatusUpdate as InvoiceStatusUpdate, type index_d$1_MessageEnvelope as MessageEnvelope, index_d$1_PaymentCycle as PaymentCycle, type index_d$1_PurchasedItem as PurchasedItem, index_d$1_WebhookIdentityType as WebhookIdentityType, type index_d$1__publicGetPurchaseHistoryType as _publicGetPurchaseHistoryType, type index_d$1__publicGetUrlType as _publicGetUrlType, index_d$1_getPurchaseHistory as getPurchaseHistory, index_d$1_getUrl as getUrl };
|
|
1147
1186
|
}
|
|
1148
1187
|
|
|
1149
1188
|
/** Embedded script data */
|
|
@@ -1199,10 +1238,15 @@ interface GetEmbeddedScriptOptions {
|
|
|
1199
1238
|
componentId?: string | null;
|
|
1200
1239
|
}
|
|
1201
1240
|
|
|
1241
|
+
declare function embedScript$1(httpClient: HttpClient): (properties: ScriptProperties, options?: EmbedScriptOptions) => Promise<EmbedScriptResponse & EmbedScriptResponseNonNullableFields>;
|
|
1242
|
+
declare function getEmbeddedScript$1(httpClient: HttpClient): (options?: GetEmbeddedScriptOptions) => Promise<ScriptProperties & ScriptPropertiesNonNullableFields>;
|
|
1243
|
+
|
|
1202
1244
|
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
1203
1245
|
|
|
1204
|
-
|
|
1205
|
-
declare const
|
|
1246
|
+
type _publicEmbedScriptType = typeof embedScript$1;
|
|
1247
|
+
declare const embedScript: ReturnType<typeof createRESTModule<_publicEmbedScriptType>>;
|
|
1248
|
+
type _publicGetEmbeddedScriptType = typeof getEmbeddedScript$1;
|
|
1249
|
+
declare const getEmbeddedScript: ReturnType<typeof createRESTModule<_publicGetEmbeddedScriptType>>;
|
|
1206
1250
|
|
|
1207
1251
|
type index_d_EmbedScriptByInstanceIdRequest = EmbedScriptByInstanceIdRequest;
|
|
1208
1252
|
type index_d_EmbedScriptOptions = EmbedScriptOptions;
|
|
@@ -1216,10 +1260,12 @@ type index_d_GetEmbeddedScriptResponse = GetEmbeddedScriptResponse;
|
|
|
1216
1260
|
type index_d_GetEmbeddedScriptResponseNonNullableFields = GetEmbeddedScriptResponseNonNullableFields;
|
|
1217
1261
|
type index_d_ScriptProperties = ScriptProperties;
|
|
1218
1262
|
type index_d_ScriptPropertiesNonNullableFields = ScriptPropertiesNonNullableFields;
|
|
1263
|
+
type index_d__publicEmbedScriptType = _publicEmbedScriptType;
|
|
1264
|
+
type index_d__publicGetEmbeddedScriptType = _publicGetEmbeddedScriptType;
|
|
1219
1265
|
declare const index_d_embedScript: typeof embedScript;
|
|
1220
1266
|
declare const index_d_getEmbeddedScript: typeof getEmbeddedScript;
|
|
1221
1267
|
declare namespace index_d {
|
|
1222
|
-
export { type index_d_EmbedScriptByInstanceIdRequest as EmbedScriptByInstanceIdRequest, type index_d_EmbedScriptOptions as EmbedScriptOptions, type index_d_EmbedScriptRequest as EmbedScriptRequest, type index_d_EmbedScriptResponse as EmbedScriptResponse, type index_d_EmbedScriptResponseNonNullableFields as EmbedScriptResponseNonNullableFields, type index_d_GetEmbeddedScriptByInstanceIdRequest as GetEmbeddedScriptByInstanceIdRequest, type index_d_GetEmbeddedScriptOptions as GetEmbeddedScriptOptions, type index_d_GetEmbeddedScriptRequest as GetEmbeddedScriptRequest, type index_d_GetEmbeddedScriptResponse as GetEmbeddedScriptResponse, type index_d_GetEmbeddedScriptResponseNonNullableFields as GetEmbeddedScriptResponseNonNullableFields, type index_d_ScriptProperties as ScriptProperties, type index_d_ScriptPropertiesNonNullableFields as ScriptPropertiesNonNullableFields, index_d_embedScript as embedScript, index_d_getEmbeddedScript as getEmbeddedScript };
|
|
1268
|
+
export { type index_d_EmbedScriptByInstanceIdRequest as EmbedScriptByInstanceIdRequest, type index_d_EmbedScriptOptions as EmbedScriptOptions, type index_d_EmbedScriptRequest as EmbedScriptRequest, type index_d_EmbedScriptResponse as EmbedScriptResponse, type index_d_EmbedScriptResponseNonNullableFields as EmbedScriptResponseNonNullableFields, type index_d_GetEmbeddedScriptByInstanceIdRequest as GetEmbeddedScriptByInstanceIdRequest, type index_d_GetEmbeddedScriptOptions as GetEmbeddedScriptOptions, type index_d_GetEmbeddedScriptRequest as GetEmbeddedScriptRequest, type index_d_GetEmbeddedScriptResponse as GetEmbeddedScriptResponse, type index_d_GetEmbeddedScriptResponseNonNullableFields as GetEmbeddedScriptResponseNonNullableFields, type index_d_ScriptProperties as ScriptProperties, type index_d_ScriptPropertiesNonNullableFields as ScriptPropertiesNonNullableFields, type index_d__publicEmbedScriptType as _publicEmbedScriptType, type index_d__publicGetEmbeddedScriptType as _publicGetEmbeddedScriptType, index_d_embedScript as embedScript, index_d_getEmbeddedScript as getEmbeddedScript };
|
|
1223
1269
|
}
|
|
1224
1270
|
|
|
1225
1271
|
export { index_d$3 as appInstances, index_d$4 as appPlans, index_d$2 as biEvents, index_d$1 as billing, index_d as embeddedScripts };
|
|
@@ -298,9 +298,38 @@ declare global {
|
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
+
interface GetChargeLimitEnvelope {
|
|
302
|
+
request: GetChargeLimitRequest;
|
|
303
|
+
metadata: Context;
|
|
304
|
+
}
|
|
305
|
+
interface ListChargesEnvelope {
|
|
306
|
+
request: ListChargesRequest;
|
|
307
|
+
metadata: Context;
|
|
308
|
+
}
|
|
309
|
+
interface ChargesRejectedEventEnvelope {
|
|
310
|
+
request: ChargesRejectedRequest;
|
|
311
|
+
metadata: Context;
|
|
312
|
+
}
|
|
313
|
+
interface InvoiceCreatedEventEnvelope {
|
|
314
|
+
request: InvoiceCreatedRequest;
|
|
315
|
+
metadata: Context;
|
|
316
|
+
}
|
|
317
|
+
interface ChargeLimitUpdatedEventEnvelope {
|
|
318
|
+
request: ChargeLimitUpdatedRequest;
|
|
319
|
+
metadata: Context;
|
|
320
|
+
}
|
|
321
|
+
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
322
|
+
getChargeLimit(payload: GetChargeLimitEnvelope): GetChargeLimitResponse | Promise<GetChargeLimitResponse>;
|
|
323
|
+
listCharges(payload: ListChargesEnvelope): ListChargesResponse | Promise<ListChargesResponse>;
|
|
324
|
+
chargesRejectedEvent(payload: ChargesRejectedEventEnvelope): ChargesRejectedResponse | Promise<ChargesRejectedResponse>;
|
|
325
|
+
invoiceCreatedEvent(payload: InvoiceCreatedEventEnvelope): InvoiceCreatedResponse | Promise<InvoiceCreatedResponse>;
|
|
326
|
+
chargeLimitUpdatedEvent(payload: ChargeLimitUpdatedEventEnvelope): ChargeLimitUpdatedResponse | Promise<ChargeLimitUpdatedResponse>;
|
|
327
|
+
}>;
|
|
328
|
+
|
|
301
329
|
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
302
330
|
|
|
303
|
-
|
|
331
|
+
type _publicProvideHandlersType = typeof provideHandlers$1;
|
|
332
|
+
declare const provideHandlers: ReturnType<typeof createServicePluginModule<_publicProvideHandlersType>>;
|
|
304
333
|
|
|
305
334
|
type context_AlternativeUri = AlternativeUri;
|
|
306
335
|
type context_ChargeLimitUpdatedRequest = ChargeLimitUpdatedRequest;
|
|
@@ -326,9 +355,10 @@ type context_InvoiceLineItem = InvoiceLineItem;
|
|
|
326
355
|
type context_ListChargesRequest = ListChargesRequest;
|
|
327
356
|
type context_ListChargesResponse = ListChargesResponse;
|
|
328
357
|
type context_SpiBaseUri = SpiBaseUri;
|
|
358
|
+
type context__publicProvideHandlersType = _publicProvideHandlersType;
|
|
329
359
|
declare const context_provideHandlers: typeof provideHandlers;
|
|
330
360
|
declare namespace context {
|
|
331
|
-
export { type context_AlternativeUri as AlternativeUri, type context_ChargeLimitUpdatedRequest as ChargeLimitUpdatedRequest, type context_ChargeLimitUpdatedResponse as ChargeLimitUpdatedResponse, type context_ChargeLineItem as ChargeLineItem, context_ChargesRejectedReason as ChargesRejectedReason, type context_ChargesRejectedRequest as ChargesRejectedRequest, type context_ChargesRejectedResponse as ChargesRejectedResponse, type context_Context as Context, type context_CustomChargesConfig as CustomChargesConfig, type context_GetChargeLimitRequest as GetChargeLimitRequest, type context_GetChargeLimitResponse as GetChargeLimitResponse, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context_IdentityType as IdentityType, context_Intent as Intent, type context_InvoiceCreatedRequest as InvoiceCreatedRequest, type context_InvoiceCreatedResponse as InvoiceCreatedResponse, type context_InvoiceLineItem as InvoiceLineItem, type context_ListChargesRequest as ListChargesRequest, type context_ListChargesResponse as ListChargesResponse, type context_SpiBaseUri as SpiBaseUri, context_provideHandlers as provideHandlers };
|
|
361
|
+
export { type context_AlternativeUri as AlternativeUri, type context_ChargeLimitUpdatedRequest as ChargeLimitUpdatedRequest, type context_ChargeLimitUpdatedResponse as ChargeLimitUpdatedResponse, type context_ChargeLineItem as ChargeLineItem, context_ChargesRejectedReason as ChargesRejectedReason, type context_ChargesRejectedRequest as ChargesRejectedRequest, type context_ChargesRejectedResponse as ChargesRejectedResponse, type context_Context as Context, type context_CustomChargesConfig as CustomChargesConfig, type context_GetChargeLimitRequest as GetChargeLimitRequest, type context_GetChargeLimitResponse as GetChargeLimitResponse, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context_IdentityType as IdentityType, context_Intent as Intent, type context_InvoiceCreatedRequest as InvoiceCreatedRequest, type context_InvoiceCreatedResponse as InvoiceCreatedResponse, type context_InvoiceLineItem as InvoiceLineItem, type context_ListChargesRequest as ListChargesRequest, type context_ListChargesResponse as ListChargesResponse, type context_SpiBaseUri as SpiBaseUri, type context__publicProvideHandlersType as _publicProvideHandlersType, context_provideHandlers as provideHandlers, provideHandlers$1 as publicProvideHandlers };
|
|
332
362
|
}
|
|
333
363
|
|
|
334
364
|
export { context as customCharges };
|