@wix/app-management 1.0.21 → 1.0.23
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 +8 -8
- package/type-bundles/context.bundle.d.ts +1124 -5
- package/type-bundles/index.bundle.d.ts +129 -115
- package/type-bundles/meta.bundle.d.ts +190 -160
|
@@ -199,35 +199,42 @@ declare enum TaxType {
|
|
|
199
199
|
VAT = "VAT",
|
|
200
200
|
GST = "GST"
|
|
201
201
|
}
|
|
202
|
+
interface TaxSettingsNonNullableFields {
|
|
203
|
+
showPriceWithTax: boolean;
|
|
204
|
+
taxType: TaxType;
|
|
205
|
+
}
|
|
206
|
+
interface DurationNonNullableFields {
|
|
207
|
+
unit: DurationUnit;
|
|
208
|
+
count: number;
|
|
209
|
+
}
|
|
210
|
+
interface CycleNonNullableFields {
|
|
211
|
+
cycleType: CycleType;
|
|
212
|
+
cycleDuration?: DurationNonNullableFields;
|
|
213
|
+
}
|
|
214
|
+
interface PriceNonNullableFields {
|
|
215
|
+
priceBeforeTax: string;
|
|
216
|
+
totalPrice: string;
|
|
217
|
+
billingCycle?: CycleNonNullableFields;
|
|
218
|
+
}
|
|
219
|
+
interface PlanNonNullableFields {
|
|
220
|
+
_id: string;
|
|
221
|
+
vendorId: string;
|
|
222
|
+
name: string;
|
|
223
|
+
benefits: string[];
|
|
224
|
+
prices: PriceNonNullableFields[];
|
|
225
|
+
}
|
|
226
|
+
interface AppPlansNonNullableFields {
|
|
227
|
+
_id: string;
|
|
228
|
+
plans: PlanNonNullableFields[];
|
|
229
|
+
}
|
|
202
230
|
interface ListAppPlansByAppIdResponseNonNullableFields {
|
|
203
|
-
taxSettings?:
|
|
204
|
-
showPriceWithTax: boolean;
|
|
205
|
-
taxType: TaxType;
|
|
206
|
-
};
|
|
231
|
+
taxSettings?: TaxSettingsNonNullableFields;
|
|
207
232
|
currency: string;
|
|
208
233
|
currencySymbol: string;
|
|
209
|
-
appPlans:
|
|
210
|
-
_id: string;
|
|
211
|
-
plans: {
|
|
212
|
-
_id: string;
|
|
213
|
-
vendorId: string;
|
|
214
|
-
name: string;
|
|
215
|
-
benefits: string[];
|
|
216
|
-
prices: {
|
|
217
|
-
priceBeforeTax: string;
|
|
218
|
-
totalPrice: string;
|
|
219
|
-
billingCycle?: {
|
|
220
|
-
cycleType: CycleType;
|
|
221
|
-
cycleDuration?: {
|
|
222
|
-
unit: DurationUnit;
|
|
223
|
-
count: number;
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
|
-
}[];
|
|
227
|
-
}[];
|
|
228
|
-
}[];
|
|
234
|
+
appPlans: AppPlansNonNullableFields[];
|
|
229
235
|
}
|
|
230
236
|
|
|
237
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
231
238
|
interface HttpClient {
|
|
232
239
|
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
233
240
|
fetchWithAuth: typeof fetch;
|
|
@@ -252,6 +259,7 @@ type APIMetadata = {
|
|
|
252
259
|
entityFqdn?: string;
|
|
253
260
|
packageName?: string;
|
|
254
261
|
};
|
|
262
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
255
263
|
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
256
264
|
__type: 'event-definition';
|
|
257
265
|
type: Type;
|
|
@@ -260,6 +268,8 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
|
260
268
|
__payload: Payload;
|
|
261
269
|
};
|
|
262
270
|
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
271
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
272
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
263
273
|
|
|
264
274
|
declare global {
|
|
265
275
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -268,10 +278,9 @@ declare global {
|
|
|
268
278
|
}
|
|
269
279
|
}
|
|
270
280
|
|
|
271
|
-
declare
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
declare function listAppPlansByAppId(httpClient: HttpClient): (appIds: string[]) => Promise<ListAppPlansByAppIdResponse & ListAppPlansByAppIdResponseNonNullableFields>;
|
|
281
|
+
declare function createRESTModule$4<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
282
|
+
|
|
283
|
+
declare const listAppPlansByAppId: ReturnType<typeof createRESTModule$4<typeof publicListAppPlansByAppId>>;
|
|
275
284
|
|
|
276
285
|
type index_d$4_AppPlans = AppPlans;
|
|
277
286
|
type index_d$4_Cycle = Cycle;
|
|
@@ -291,7 +300,7 @@ declare const index_d$4_TaxType: typeof TaxType;
|
|
|
291
300
|
type index_d$4_UsageBasedDetails = UsageBasedDetails;
|
|
292
301
|
declare const index_d$4_listAppPlansByAppId: typeof listAppPlansByAppId;
|
|
293
302
|
declare namespace index_d$4 {
|
|
294
|
-
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,
|
|
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 };
|
|
295
304
|
}
|
|
296
305
|
|
|
297
306
|
/**
|
|
@@ -614,51 +623,60 @@ declare enum WebhookIdentityType$1 {
|
|
|
614
623
|
WIX_USER = "WIX_USER",
|
|
615
624
|
APP = "APP"
|
|
616
625
|
}
|
|
626
|
+
interface FreeTrialInfoNonNullableFields {
|
|
627
|
+
status: FreeTrialStatus;
|
|
628
|
+
}
|
|
629
|
+
interface BillingInfoNonNullableFields {
|
|
630
|
+
packageName: string;
|
|
631
|
+
billingCycle: PaymentCycle$1;
|
|
632
|
+
timeStamp: string;
|
|
633
|
+
freeTrialInfo?: FreeTrialInfoNonNullableFields;
|
|
634
|
+
}
|
|
635
|
+
interface AvailablePlanNonNullableFields {
|
|
636
|
+
packageName: string;
|
|
637
|
+
source: string;
|
|
638
|
+
}
|
|
639
|
+
interface AppInstanceNonNullableFields {
|
|
640
|
+
instanceId: string;
|
|
641
|
+
appName: string;
|
|
642
|
+
isFree: boolean;
|
|
643
|
+
billing?: BillingInfoNonNullableFields;
|
|
644
|
+
permissions: string[];
|
|
645
|
+
availablePlans: AvailablePlanNonNullableFields[];
|
|
646
|
+
isOriginSiteTemplate: boolean;
|
|
647
|
+
copiedFromTemplate: boolean;
|
|
648
|
+
freeTrialAvailable: boolean;
|
|
649
|
+
}
|
|
650
|
+
interface LocaleNonNullableFields {
|
|
651
|
+
languageCode: string;
|
|
652
|
+
country: string;
|
|
653
|
+
}
|
|
654
|
+
interface SupportedLanguageNonNullableFields {
|
|
655
|
+
languageCode: string;
|
|
656
|
+
locale?: LocaleNonNullableFields;
|
|
657
|
+
isPrimary: boolean;
|
|
658
|
+
countryCode: string;
|
|
659
|
+
resolutionMethod: ResolutionMethod;
|
|
660
|
+
}
|
|
661
|
+
interface MultilingualNonNullableFields {
|
|
662
|
+
isMultiLingual: boolean;
|
|
663
|
+
supportedLanguages: SupportedLanguageNonNullableFields[];
|
|
664
|
+
}
|
|
665
|
+
interface OwnerInfoNonNullableFields {
|
|
666
|
+
email: string;
|
|
667
|
+
emailStatus: string;
|
|
668
|
+
}
|
|
669
|
+
interface SiteInfoNonNullableFields {
|
|
670
|
+
locale: string;
|
|
671
|
+
paymentCurrency: string;
|
|
672
|
+
multilingual?: MultilingualNonNullableFields;
|
|
673
|
+
installedWixApps: string[];
|
|
674
|
+
ownerInfo?: OwnerInfoNonNullableFields;
|
|
675
|
+
siteId: string;
|
|
676
|
+
}
|
|
617
677
|
interface GetAppInstanceResponseNonNullableFields {
|
|
618
|
-
instance?:
|
|
619
|
-
|
|
620
|
-
appName: string;
|
|
621
|
-
isFree: boolean;
|
|
622
|
-
billing?: {
|
|
623
|
-
packageName: string;
|
|
624
|
-
billingCycle: PaymentCycle$1;
|
|
625
|
-
timeStamp: string;
|
|
626
|
-
freeTrialInfo?: {
|
|
627
|
-
status: FreeTrialStatus;
|
|
628
|
-
};
|
|
629
|
-
};
|
|
630
|
-
permissions: string[];
|
|
631
|
-
availablePlans: {
|
|
632
|
-
packageName: string;
|
|
633
|
-
source: string;
|
|
634
|
-
}[];
|
|
635
|
-
isOriginSiteTemplate: boolean;
|
|
636
|
-
copiedFromTemplate: boolean;
|
|
637
|
-
freeTrialAvailable: boolean;
|
|
638
|
-
};
|
|
639
|
-
site?: {
|
|
640
|
-
locale: string;
|
|
641
|
-
paymentCurrency: string;
|
|
642
|
-
multilingual?: {
|
|
643
|
-
isMultiLingual: boolean;
|
|
644
|
-
supportedLanguages: {
|
|
645
|
-
languageCode: string;
|
|
646
|
-
locale?: {
|
|
647
|
-
languageCode: string;
|
|
648
|
-
country: string;
|
|
649
|
-
};
|
|
650
|
-
isPrimary: boolean;
|
|
651
|
-
countryCode: string;
|
|
652
|
-
resolutionMethod: ResolutionMethod;
|
|
653
|
-
}[];
|
|
654
|
-
};
|
|
655
|
-
installedWixApps: string[];
|
|
656
|
-
ownerInfo?: {
|
|
657
|
-
email: string;
|
|
658
|
-
emailStatus: string;
|
|
659
|
-
};
|
|
660
|
-
siteId: string;
|
|
661
|
-
};
|
|
678
|
+
instance?: AppInstanceNonNullableFields;
|
|
679
|
+
site?: SiteInfoNonNullableFields;
|
|
662
680
|
}
|
|
663
681
|
interface BaseEventMetadata {
|
|
664
682
|
/** App instance ID. */
|
|
@@ -689,15 +707,16 @@ interface AppInstancePaidPlanAutoRenewalCancelledEnvelope {
|
|
|
689
707
|
metadata: BaseEventMetadata;
|
|
690
708
|
}
|
|
691
709
|
|
|
692
|
-
declare
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
declare const
|
|
697
|
-
declare const
|
|
698
|
-
declare const
|
|
699
|
-
declare const
|
|
700
|
-
declare const
|
|
710
|
+
declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
711
|
+
|
|
712
|
+
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
713
|
+
|
|
714
|
+
declare const getAppInstance: ReturnType<typeof createRESTModule$3<typeof publicGetAppInstance>>;
|
|
715
|
+
declare const onAppInstanceInstalled: ReturnType<typeof createEventModule<typeof publicOnAppInstanceInstalled>>;
|
|
716
|
+
declare const onAppInstanceRemoved: ReturnType<typeof createEventModule<typeof publicOnAppInstanceRemoved>>;
|
|
717
|
+
declare const onAppInstancePaidPlanPurchased: ReturnType<typeof createEventModule<typeof publicOnAppInstancePaidPlanPurchased>>;
|
|
718
|
+
declare const onAppInstancePaidPlanChanged: ReturnType<typeof createEventModule<typeof publicOnAppInstancePaidPlanChanged>>;
|
|
719
|
+
declare const onAppInstancePaidPlanAutoRenewalCancelled: ReturnType<typeof createEventModule<typeof publicOnAppInstancePaidPlanAutoRenewalCancelled>>;
|
|
701
720
|
|
|
702
721
|
type index_d$3_AppInstalled = AppInstalled;
|
|
703
722
|
type index_d$3_AppInstance = AppInstance;
|
|
@@ -734,7 +753,7 @@ declare const index_d$3_onAppInstancePaidPlanChanged: typeof onAppInstancePaidPl
|
|
|
734
753
|
declare const index_d$3_onAppInstancePaidPlanPurchased: typeof onAppInstancePaidPlanPurchased;
|
|
735
754
|
declare const index_d$3_onAppInstanceRemoved: typeof onAppInstanceRemoved;
|
|
736
755
|
declare namespace index_d$3 {
|
|
737
|
-
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,
|
|
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 };
|
|
738
757
|
}
|
|
739
758
|
|
|
740
759
|
interface SendBIEventResponse {
|
|
@@ -825,10 +844,9 @@ interface SendBiEventOptions {
|
|
|
825
844
|
eventData?: Record<string, string>;
|
|
826
845
|
}
|
|
827
846
|
|
|
828
|
-
declare
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
declare function sendBiEvent(httpClient: HttpClient): (options?: SendBiEventOptions) => Promise<void>;
|
|
847
|
+
declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
848
|
+
|
|
849
|
+
declare const sendBiEvent: ReturnType<typeof createRESTModule$2<typeof publicSendBiEvent>>;
|
|
832
850
|
|
|
833
851
|
type index_d$2_EventName = EventName;
|
|
834
852
|
declare const index_d$2_EventName: typeof EventName;
|
|
@@ -837,7 +855,7 @@ type index_d$2_SendBIEventResponse = SendBIEventResponse;
|
|
|
837
855
|
type index_d$2_SendBiEventOptions = SendBiEventOptions;
|
|
838
856
|
declare const index_d$2_sendBiEvent: typeof sendBiEvent;
|
|
839
857
|
declare namespace index_d$2 {
|
|
840
|
-
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,
|
|
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 };
|
|
841
859
|
}
|
|
842
860
|
|
|
843
861
|
interface PurchasedItem {
|
|
@@ -1051,13 +1069,14 @@ declare enum WebhookIdentityType {
|
|
|
1051
1069
|
interface GetUrlResponseNonNullableFields {
|
|
1052
1070
|
checkoutUrl: string;
|
|
1053
1071
|
}
|
|
1072
|
+
interface PurchasedItemNonNullableFields {
|
|
1073
|
+
productId: string;
|
|
1074
|
+
price: string;
|
|
1075
|
+
currency: string;
|
|
1076
|
+
billingCycle: PaymentCycle;
|
|
1077
|
+
}
|
|
1054
1078
|
interface GetPurchaseHistoryResponseNonNullableFields {
|
|
1055
|
-
purchases:
|
|
1056
|
-
productId: string;
|
|
1057
|
-
price: string;
|
|
1058
|
-
currency: string;
|
|
1059
|
-
billingCycle: PaymentCycle;
|
|
1060
|
-
}[];
|
|
1079
|
+
purchases: PurchasedItemNonNullableFields[];
|
|
1061
1080
|
}
|
|
1062
1081
|
interface GetUrlOptions {
|
|
1063
1082
|
/**
|
|
@@ -1092,11 +1111,10 @@ interface GetUrlOptions {
|
|
|
1092
1111
|
couponCode?: string | null;
|
|
1093
1112
|
}
|
|
1094
1113
|
|
|
1095
|
-
declare
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
declare
|
|
1099
|
-
declare function getPurchaseHistory(httpClient: HttpClient): () => Promise<GetPurchaseHistoryResponse & GetPurchaseHistoryResponseNonNullableFields>;
|
|
1114
|
+
declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
1115
|
+
|
|
1116
|
+
declare const getUrl: ReturnType<typeof createRESTModule$1<typeof publicGetUrl>>;
|
|
1117
|
+
declare const getPurchaseHistory: ReturnType<typeof createRESTModule$1<typeof publicGetPurchaseHistory>>;
|
|
1100
1118
|
|
|
1101
1119
|
type index_d$1_Charge = Charge;
|
|
1102
1120
|
type index_d$1_ChargeOverride = ChargeOverride;
|
|
@@ -1125,7 +1143,7 @@ declare const index_d$1_WebhookIdentityType: typeof WebhookIdentityType;
|
|
|
1125
1143
|
declare const index_d$1_getPurchaseHistory: typeof getPurchaseHistory;
|
|
1126
1144
|
declare const index_d$1_getUrl: typeof getUrl;
|
|
1127
1145
|
declare namespace index_d$1 {
|
|
1128
|
-
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,
|
|
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 };
|
|
1129
1147
|
}
|
|
1130
1148
|
|
|
1131
1149
|
/** Embedded script data */
|
|
@@ -1163,15 +1181,14 @@ interface GetEmbeddedScriptByInstanceIdRequest {
|
|
|
1163
1181
|
instanceId?: string;
|
|
1164
1182
|
componentId?: string | null;
|
|
1165
1183
|
}
|
|
1184
|
+
interface ScriptPropertiesNonNullableFields {
|
|
1185
|
+
disabled: boolean;
|
|
1186
|
+
}
|
|
1166
1187
|
interface EmbedScriptResponseNonNullableFields {
|
|
1167
|
-
properties?:
|
|
1168
|
-
disabled: boolean;
|
|
1169
|
-
};
|
|
1188
|
+
properties?: ScriptPropertiesNonNullableFields;
|
|
1170
1189
|
}
|
|
1171
1190
|
interface GetEmbeddedScriptResponseNonNullableFields {
|
|
1172
|
-
properties?:
|
|
1173
|
-
disabled: boolean;
|
|
1174
|
-
};
|
|
1191
|
+
properties?: ScriptPropertiesNonNullableFields;
|
|
1175
1192
|
}
|
|
1176
1193
|
interface EmbedScriptOptions {
|
|
1177
1194
|
/** ID of the corresponding embedded script component. */
|
|
@@ -1182,13 +1199,10 @@ interface GetEmbeddedScriptOptions {
|
|
|
1182
1199
|
componentId?: string | null;
|
|
1183
1200
|
}
|
|
1184
1201
|
|
|
1185
|
-
declare
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
declare
|
|
1189
|
-
declare function getEmbeddedScript(httpClient: HttpClient): (options?: GetEmbeddedScriptOptions) => Promise<ScriptProperties & {
|
|
1190
|
-
disabled: boolean;
|
|
1191
|
-
}>;
|
|
1202
|
+
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
1203
|
+
|
|
1204
|
+
declare const embedScript: ReturnType<typeof createRESTModule<typeof publicEmbedScript>>;
|
|
1205
|
+
declare const getEmbeddedScript: ReturnType<typeof createRESTModule<typeof publicGetEmbeddedScript>>;
|
|
1192
1206
|
|
|
1193
1207
|
type index_d_EmbedScriptByInstanceIdRequest = EmbedScriptByInstanceIdRequest;
|
|
1194
1208
|
type index_d_EmbedScriptOptions = EmbedScriptOptions;
|
|
@@ -1201,11 +1215,11 @@ type index_d_GetEmbeddedScriptRequest = GetEmbeddedScriptRequest;
|
|
|
1201
1215
|
type index_d_GetEmbeddedScriptResponse = GetEmbeddedScriptResponse;
|
|
1202
1216
|
type index_d_GetEmbeddedScriptResponseNonNullableFields = GetEmbeddedScriptResponseNonNullableFields;
|
|
1203
1217
|
type index_d_ScriptProperties = ScriptProperties;
|
|
1204
|
-
|
|
1218
|
+
type index_d_ScriptPropertiesNonNullableFields = ScriptPropertiesNonNullableFields;
|
|
1205
1219
|
declare const index_d_embedScript: typeof embedScript;
|
|
1206
1220
|
declare const index_d_getEmbeddedScript: typeof getEmbeddedScript;
|
|
1207
1221
|
declare namespace index_d {
|
|
1208
|
-
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,
|
|
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 };
|
|
1209
1223
|
}
|
|
1210
1224
|
|
|
1211
1225
|
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 };
|