@wix/app-management 1.0.22 → 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 +97 -81
- package/type-bundles/index.bundle.d.ts +129 -115
- package/type-bundles/meta.bundle.d.ts +190 -160
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/app-management",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
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.13",
|
|
23
|
+
"@wix/app-management_app-plans": "1.0.13",
|
|
24
|
+
"@wix/app-management_bi-events": "1.0.12",
|
|
25
|
+
"@wix/app-management_billing": "1.0.13",
|
|
26
|
+
"@wix/app-management_custom-charges": "1.0.7",
|
|
27
|
+
"@wix/app-management_embedded-scripts": "1.0.10"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"glob": "^10.4.1",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": ""
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "b60ef9345f892fdc7a224a6a9587d795a3f5a5a2428cd782d54880c7"
|
|
52
52
|
}
|
|
@@ -199,33 +199,39 @@ 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
|
|
|
231
237
|
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
@@ -617,51 +623,60 @@ declare enum WebhookIdentityType$1 {
|
|
|
617
623
|
WIX_USER = "WIX_USER",
|
|
618
624
|
APP = "APP"
|
|
619
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
|
+
}
|
|
620
677
|
interface GetAppInstanceResponseNonNullableFields {
|
|
621
|
-
instance?:
|
|
622
|
-
|
|
623
|
-
appName: string;
|
|
624
|
-
isFree: boolean;
|
|
625
|
-
billing?: {
|
|
626
|
-
packageName: string;
|
|
627
|
-
billingCycle: PaymentCycle$1;
|
|
628
|
-
timeStamp: string;
|
|
629
|
-
freeTrialInfo?: {
|
|
630
|
-
status: FreeTrialStatus;
|
|
631
|
-
};
|
|
632
|
-
};
|
|
633
|
-
permissions: string[];
|
|
634
|
-
availablePlans: {
|
|
635
|
-
packageName: string;
|
|
636
|
-
source: string;
|
|
637
|
-
}[];
|
|
638
|
-
isOriginSiteTemplate: boolean;
|
|
639
|
-
copiedFromTemplate: boolean;
|
|
640
|
-
freeTrialAvailable: boolean;
|
|
641
|
-
};
|
|
642
|
-
site?: {
|
|
643
|
-
locale: string;
|
|
644
|
-
paymentCurrency: string;
|
|
645
|
-
multilingual?: {
|
|
646
|
-
isMultiLingual: boolean;
|
|
647
|
-
supportedLanguages: {
|
|
648
|
-
languageCode: string;
|
|
649
|
-
locale?: {
|
|
650
|
-
languageCode: string;
|
|
651
|
-
country: string;
|
|
652
|
-
};
|
|
653
|
-
isPrimary: boolean;
|
|
654
|
-
countryCode: string;
|
|
655
|
-
resolutionMethod: ResolutionMethod;
|
|
656
|
-
}[];
|
|
657
|
-
};
|
|
658
|
-
installedWixApps: string[];
|
|
659
|
-
ownerInfo?: {
|
|
660
|
-
email: string;
|
|
661
|
-
emailStatus: string;
|
|
662
|
-
};
|
|
663
|
-
siteId: string;
|
|
664
|
-
};
|
|
678
|
+
instance?: AppInstanceNonNullableFields;
|
|
679
|
+
site?: SiteInfoNonNullableFields;
|
|
665
680
|
}
|
|
666
681
|
interface BaseEventMetadata {
|
|
667
682
|
/** App instance ID. */
|
|
@@ -1054,13 +1069,14 @@ declare enum WebhookIdentityType {
|
|
|
1054
1069
|
interface GetUrlResponseNonNullableFields {
|
|
1055
1070
|
checkoutUrl: string;
|
|
1056
1071
|
}
|
|
1072
|
+
interface PurchasedItemNonNullableFields {
|
|
1073
|
+
productId: string;
|
|
1074
|
+
price: string;
|
|
1075
|
+
currency: string;
|
|
1076
|
+
billingCycle: PaymentCycle;
|
|
1077
|
+
}
|
|
1057
1078
|
interface GetPurchaseHistoryResponseNonNullableFields {
|
|
1058
|
-
purchases:
|
|
1059
|
-
productId: string;
|
|
1060
|
-
price: string;
|
|
1061
|
-
currency: string;
|
|
1062
|
-
billingCycle: PaymentCycle;
|
|
1063
|
-
}[];
|
|
1079
|
+
purchases: PurchasedItemNonNullableFields[];
|
|
1064
1080
|
}
|
|
1065
1081
|
interface GetUrlOptions {
|
|
1066
1082
|
/**
|
|
@@ -1165,15 +1181,14 @@ interface GetEmbeddedScriptByInstanceIdRequest {
|
|
|
1165
1181
|
instanceId?: string;
|
|
1166
1182
|
componentId?: string | null;
|
|
1167
1183
|
}
|
|
1184
|
+
interface ScriptPropertiesNonNullableFields {
|
|
1185
|
+
disabled: boolean;
|
|
1186
|
+
}
|
|
1168
1187
|
interface EmbedScriptResponseNonNullableFields {
|
|
1169
|
-
properties?:
|
|
1170
|
-
disabled: boolean;
|
|
1171
|
-
};
|
|
1188
|
+
properties?: ScriptPropertiesNonNullableFields;
|
|
1172
1189
|
}
|
|
1173
1190
|
interface GetEmbeddedScriptResponseNonNullableFields {
|
|
1174
|
-
properties?:
|
|
1175
|
-
disabled: boolean;
|
|
1176
|
-
};
|
|
1191
|
+
properties?: ScriptPropertiesNonNullableFields;
|
|
1177
1192
|
}
|
|
1178
1193
|
interface EmbedScriptOptions {
|
|
1179
1194
|
/** ID of the corresponding embedded script component. */
|
|
@@ -1200,10 +1215,11 @@ type context_GetEmbeddedScriptRequest = GetEmbeddedScriptRequest;
|
|
|
1200
1215
|
type context_GetEmbeddedScriptResponse = GetEmbeddedScriptResponse;
|
|
1201
1216
|
type context_GetEmbeddedScriptResponseNonNullableFields = GetEmbeddedScriptResponseNonNullableFields;
|
|
1202
1217
|
type context_ScriptProperties = ScriptProperties;
|
|
1218
|
+
type context_ScriptPropertiesNonNullableFields = ScriptPropertiesNonNullableFields;
|
|
1203
1219
|
declare const context_embedScript: typeof embedScript;
|
|
1204
1220
|
declare const context_getEmbeddedScript: typeof getEmbeddedScript;
|
|
1205
1221
|
declare namespace context {
|
|
1206
|
-
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, context_embedScript as embedScript, context_getEmbeddedScript as getEmbeddedScript };
|
|
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 };
|
|
1207
1223
|
}
|
|
1208
1224
|
|
|
1209
1225
|
export { context$3 as appInstances, context$4 as appPlans, context$2 as biEvents, context$1 as billing, context as embeddedScripts };
|
|
@@ -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 };
|
|
@@ -199,33 +199,39 @@ declare enum TaxType$1 {
|
|
|
199
199
|
VAT = "VAT",
|
|
200
200
|
GST = "GST"
|
|
201
201
|
}
|
|
202
|
+
interface TaxSettingsNonNullableFields$1 {
|
|
203
|
+
showPriceWithTax: boolean;
|
|
204
|
+
taxType: TaxType$1;
|
|
205
|
+
}
|
|
206
|
+
interface DurationNonNullableFields$1 {
|
|
207
|
+
unit: DurationUnit$1;
|
|
208
|
+
count: number;
|
|
209
|
+
}
|
|
210
|
+
interface CycleNonNullableFields$1 {
|
|
211
|
+
cycleType: CycleType$1;
|
|
212
|
+
cycleDuration?: DurationNonNullableFields$1;
|
|
213
|
+
}
|
|
214
|
+
interface PriceNonNullableFields$1 {
|
|
215
|
+
priceBeforeTax: string;
|
|
216
|
+
totalPrice: string;
|
|
217
|
+
billingCycle?: CycleNonNullableFields$1;
|
|
218
|
+
}
|
|
219
|
+
interface PlanNonNullableFields$1 {
|
|
220
|
+
id: string;
|
|
221
|
+
vendorId: string;
|
|
222
|
+
name: string;
|
|
223
|
+
benefits: string[];
|
|
224
|
+
prices: PriceNonNullableFields$1[];
|
|
225
|
+
}
|
|
226
|
+
interface AppPlansNonNullableFields$1 {
|
|
227
|
+
id: string;
|
|
228
|
+
plans: PlanNonNullableFields$1[];
|
|
229
|
+
}
|
|
202
230
|
interface ListAppPlansByAppIdResponseNonNullableFields$1 {
|
|
203
|
-
taxSettings?:
|
|
204
|
-
showPriceWithTax: boolean;
|
|
205
|
-
taxType: TaxType$1;
|
|
206
|
-
};
|
|
231
|
+
taxSettings?: TaxSettingsNonNullableFields$1;
|
|
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$1;
|
|
221
|
-
cycleDuration?: {
|
|
222
|
-
unit: DurationUnit$1;
|
|
223
|
-
count: number;
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
|
-
}[];
|
|
227
|
-
}[];
|
|
228
|
-
}[];
|
|
234
|
+
appPlans: AppPlansNonNullableFields$1[];
|
|
229
235
|
}
|
|
230
236
|
|
|
231
237
|
/**
|
|
@@ -429,33 +435,39 @@ declare enum TaxType {
|
|
|
429
435
|
VAT = "VAT",
|
|
430
436
|
GST = "GST"
|
|
431
437
|
}
|
|
438
|
+
interface TaxSettingsNonNullableFields {
|
|
439
|
+
showPriceWithTax: boolean;
|
|
440
|
+
taxType: TaxType;
|
|
441
|
+
}
|
|
442
|
+
interface DurationNonNullableFields {
|
|
443
|
+
unit: DurationUnit;
|
|
444
|
+
count: number;
|
|
445
|
+
}
|
|
446
|
+
interface CycleNonNullableFields {
|
|
447
|
+
cycleType: CycleType;
|
|
448
|
+
cycleDuration?: DurationNonNullableFields;
|
|
449
|
+
}
|
|
450
|
+
interface PriceNonNullableFields {
|
|
451
|
+
priceBeforeTax: string;
|
|
452
|
+
totalPrice: string;
|
|
453
|
+
billingCycle?: CycleNonNullableFields;
|
|
454
|
+
}
|
|
455
|
+
interface PlanNonNullableFields {
|
|
456
|
+
_id: string;
|
|
457
|
+
vendorId: string;
|
|
458
|
+
name: string;
|
|
459
|
+
benefits: string[];
|
|
460
|
+
prices: PriceNonNullableFields[];
|
|
461
|
+
}
|
|
462
|
+
interface AppPlansNonNullableFields {
|
|
463
|
+
_id: string;
|
|
464
|
+
plans: PlanNonNullableFields[];
|
|
465
|
+
}
|
|
432
466
|
interface ListAppPlansByAppIdResponseNonNullableFields {
|
|
433
|
-
taxSettings?:
|
|
434
|
-
showPriceWithTax: boolean;
|
|
435
|
-
taxType: TaxType;
|
|
436
|
-
};
|
|
467
|
+
taxSettings?: TaxSettingsNonNullableFields;
|
|
437
468
|
currency: string;
|
|
438
469
|
currencySymbol: string;
|
|
439
|
-
appPlans:
|
|
440
|
-
_id: string;
|
|
441
|
-
plans: {
|
|
442
|
-
_id: string;
|
|
443
|
-
vendorId: string;
|
|
444
|
-
name: string;
|
|
445
|
-
benefits: string[];
|
|
446
|
-
prices: {
|
|
447
|
-
priceBeforeTax: string;
|
|
448
|
-
totalPrice: string;
|
|
449
|
-
billingCycle?: {
|
|
450
|
-
cycleType: CycleType;
|
|
451
|
-
cycleDuration?: {
|
|
452
|
-
unit: DurationUnit;
|
|
453
|
-
count: number;
|
|
454
|
-
};
|
|
455
|
-
};
|
|
456
|
-
}[];
|
|
457
|
-
}[];
|
|
458
|
-
}[];
|
|
470
|
+
appPlans: AppPlansNonNullableFields[];
|
|
459
471
|
}
|
|
460
472
|
|
|
461
473
|
type __PublicMethodMetaInfo$4<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
@@ -699,51 +711,60 @@ interface OwnerInfo$1 {
|
|
|
699
711
|
*/
|
|
700
712
|
emailStatus?: string;
|
|
701
713
|
}
|
|
714
|
+
interface FreeTrialInfoNonNullableFields$1 {
|
|
715
|
+
status: FreeTrialStatus$1;
|
|
716
|
+
}
|
|
717
|
+
interface BillingInfoNonNullableFields$1 {
|
|
718
|
+
packageName: string;
|
|
719
|
+
billingCycle: PaymentCycle$3;
|
|
720
|
+
timeStamp: string;
|
|
721
|
+
freeTrialInfo?: FreeTrialInfoNonNullableFields$1;
|
|
722
|
+
}
|
|
723
|
+
interface AvailablePlanNonNullableFields$1 {
|
|
724
|
+
packageName: string;
|
|
725
|
+
source: string;
|
|
726
|
+
}
|
|
727
|
+
interface AppInstanceNonNullableFields$1 {
|
|
728
|
+
instanceId: string;
|
|
729
|
+
appName: string;
|
|
730
|
+
isFree: boolean;
|
|
731
|
+
billing?: BillingInfoNonNullableFields$1;
|
|
732
|
+
permissions: string[];
|
|
733
|
+
availablePlans: AvailablePlanNonNullableFields$1[];
|
|
734
|
+
isOriginSiteTemplate: boolean;
|
|
735
|
+
copiedFromTemplate: boolean;
|
|
736
|
+
freeTrialAvailable: boolean;
|
|
737
|
+
}
|
|
738
|
+
interface LocaleNonNullableFields$1 {
|
|
739
|
+
languageCode: string;
|
|
740
|
+
country: string;
|
|
741
|
+
}
|
|
742
|
+
interface SupportedLanguageNonNullableFields$1 {
|
|
743
|
+
languageCode: string;
|
|
744
|
+
locale?: LocaleNonNullableFields$1;
|
|
745
|
+
isPrimary: boolean;
|
|
746
|
+
countryCode: string;
|
|
747
|
+
resolutionMethod: ResolutionMethod$1;
|
|
748
|
+
}
|
|
749
|
+
interface MultilingualNonNullableFields$1 {
|
|
750
|
+
isMultiLingual: boolean;
|
|
751
|
+
supportedLanguages: SupportedLanguageNonNullableFields$1[];
|
|
752
|
+
}
|
|
753
|
+
interface OwnerInfoNonNullableFields$1 {
|
|
754
|
+
email: string;
|
|
755
|
+
emailStatus: string;
|
|
756
|
+
}
|
|
757
|
+
interface SiteInfoNonNullableFields$1 {
|
|
758
|
+
locale: string;
|
|
759
|
+
paymentCurrency: string;
|
|
760
|
+
multilingual?: MultilingualNonNullableFields$1;
|
|
761
|
+
installedWixApps: string[];
|
|
762
|
+
ownerInfo?: OwnerInfoNonNullableFields$1;
|
|
763
|
+
siteId: string;
|
|
764
|
+
}
|
|
702
765
|
interface GetAppInstanceResponseNonNullableFields$1 {
|
|
703
|
-
instance?:
|
|
704
|
-
|
|
705
|
-
appName: string;
|
|
706
|
-
isFree: boolean;
|
|
707
|
-
billing?: {
|
|
708
|
-
packageName: string;
|
|
709
|
-
billingCycle: PaymentCycle$3;
|
|
710
|
-
timeStamp: string;
|
|
711
|
-
freeTrialInfo?: {
|
|
712
|
-
status: FreeTrialStatus$1;
|
|
713
|
-
};
|
|
714
|
-
};
|
|
715
|
-
permissions: string[];
|
|
716
|
-
availablePlans: {
|
|
717
|
-
packageName: string;
|
|
718
|
-
source: string;
|
|
719
|
-
}[];
|
|
720
|
-
isOriginSiteTemplate: boolean;
|
|
721
|
-
copiedFromTemplate: boolean;
|
|
722
|
-
freeTrialAvailable: boolean;
|
|
723
|
-
};
|
|
724
|
-
site?: {
|
|
725
|
-
locale: string;
|
|
726
|
-
paymentCurrency: string;
|
|
727
|
-
multilingual?: {
|
|
728
|
-
isMultiLingual: boolean;
|
|
729
|
-
supportedLanguages: {
|
|
730
|
-
languageCode: string;
|
|
731
|
-
locale?: {
|
|
732
|
-
languageCode: string;
|
|
733
|
-
country: string;
|
|
734
|
-
};
|
|
735
|
-
isPrimary: boolean;
|
|
736
|
-
countryCode: string;
|
|
737
|
-
resolutionMethod: ResolutionMethod$1;
|
|
738
|
-
}[];
|
|
739
|
-
};
|
|
740
|
-
installedWixApps: string[];
|
|
741
|
-
ownerInfo?: {
|
|
742
|
-
email: string;
|
|
743
|
-
emailStatus: string;
|
|
744
|
-
};
|
|
745
|
-
siteId: string;
|
|
746
|
-
};
|
|
766
|
+
instance?: AppInstanceNonNullableFields$1;
|
|
767
|
+
site?: SiteInfoNonNullableFields$1;
|
|
747
768
|
}
|
|
748
769
|
|
|
749
770
|
/**
|
|
@@ -968,51 +989,60 @@ interface OwnerInfo {
|
|
|
968
989
|
*/
|
|
969
990
|
emailStatus?: string;
|
|
970
991
|
}
|
|
992
|
+
interface FreeTrialInfoNonNullableFields {
|
|
993
|
+
status: FreeTrialStatus;
|
|
994
|
+
}
|
|
995
|
+
interface BillingInfoNonNullableFields {
|
|
996
|
+
packageName: string;
|
|
997
|
+
billingCycle: PaymentCycle$2;
|
|
998
|
+
timeStamp: string;
|
|
999
|
+
freeTrialInfo?: FreeTrialInfoNonNullableFields;
|
|
1000
|
+
}
|
|
1001
|
+
interface AvailablePlanNonNullableFields {
|
|
1002
|
+
packageName: string;
|
|
1003
|
+
source: string;
|
|
1004
|
+
}
|
|
1005
|
+
interface AppInstanceNonNullableFields {
|
|
1006
|
+
instanceId: string;
|
|
1007
|
+
appName: string;
|
|
1008
|
+
isFree: boolean;
|
|
1009
|
+
billing?: BillingInfoNonNullableFields;
|
|
1010
|
+
permissions: string[];
|
|
1011
|
+
availablePlans: AvailablePlanNonNullableFields[];
|
|
1012
|
+
isOriginSiteTemplate: boolean;
|
|
1013
|
+
copiedFromTemplate: boolean;
|
|
1014
|
+
freeTrialAvailable: boolean;
|
|
1015
|
+
}
|
|
1016
|
+
interface LocaleNonNullableFields {
|
|
1017
|
+
languageCode: string;
|
|
1018
|
+
country: string;
|
|
1019
|
+
}
|
|
1020
|
+
interface SupportedLanguageNonNullableFields {
|
|
1021
|
+
languageCode: string;
|
|
1022
|
+
locale?: LocaleNonNullableFields;
|
|
1023
|
+
isPrimary: boolean;
|
|
1024
|
+
countryCode: string;
|
|
1025
|
+
resolutionMethod: ResolutionMethod;
|
|
1026
|
+
}
|
|
1027
|
+
interface MultilingualNonNullableFields {
|
|
1028
|
+
isMultiLingual: boolean;
|
|
1029
|
+
supportedLanguages: SupportedLanguageNonNullableFields[];
|
|
1030
|
+
}
|
|
1031
|
+
interface OwnerInfoNonNullableFields {
|
|
1032
|
+
email: string;
|
|
1033
|
+
emailStatus: string;
|
|
1034
|
+
}
|
|
1035
|
+
interface SiteInfoNonNullableFields {
|
|
1036
|
+
locale: string;
|
|
1037
|
+
paymentCurrency: string;
|
|
1038
|
+
multilingual?: MultilingualNonNullableFields;
|
|
1039
|
+
installedWixApps: string[];
|
|
1040
|
+
ownerInfo?: OwnerInfoNonNullableFields;
|
|
1041
|
+
siteId: string;
|
|
1042
|
+
}
|
|
971
1043
|
interface GetAppInstanceResponseNonNullableFields {
|
|
972
|
-
instance?:
|
|
973
|
-
|
|
974
|
-
appName: string;
|
|
975
|
-
isFree: boolean;
|
|
976
|
-
billing?: {
|
|
977
|
-
packageName: string;
|
|
978
|
-
billingCycle: PaymentCycle$2;
|
|
979
|
-
timeStamp: string;
|
|
980
|
-
freeTrialInfo?: {
|
|
981
|
-
status: FreeTrialStatus;
|
|
982
|
-
};
|
|
983
|
-
};
|
|
984
|
-
permissions: string[];
|
|
985
|
-
availablePlans: {
|
|
986
|
-
packageName: string;
|
|
987
|
-
source: string;
|
|
988
|
-
}[];
|
|
989
|
-
isOriginSiteTemplate: boolean;
|
|
990
|
-
copiedFromTemplate: boolean;
|
|
991
|
-
freeTrialAvailable: boolean;
|
|
992
|
-
};
|
|
993
|
-
site?: {
|
|
994
|
-
locale: string;
|
|
995
|
-
paymentCurrency: string;
|
|
996
|
-
multilingual?: {
|
|
997
|
-
isMultiLingual: boolean;
|
|
998
|
-
supportedLanguages: {
|
|
999
|
-
languageCode: string;
|
|
1000
|
-
locale?: {
|
|
1001
|
-
languageCode: string;
|
|
1002
|
-
country: string;
|
|
1003
|
-
};
|
|
1004
|
-
isPrimary: boolean;
|
|
1005
|
-
countryCode: string;
|
|
1006
|
-
resolutionMethod: ResolutionMethod;
|
|
1007
|
-
}[];
|
|
1008
|
-
};
|
|
1009
|
-
installedWixApps: string[];
|
|
1010
|
-
ownerInfo?: {
|
|
1011
|
-
email: string;
|
|
1012
|
-
emailStatus: string;
|
|
1013
|
-
};
|
|
1014
|
-
siteId: string;
|
|
1015
|
-
};
|
|
1044
|
+
instance?: AppInstanceNonNullableFields;
|
|
1045
|
+
site?: SiteInfoNonNullableFields;
|
|
1016
1046
|
}
|
|
1017
1047
|
|
|
1018
1048
|
type __PublicMethodMetaInfo$3<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
@@ -1237,13 +1267,14 @@ interface GetPurchaseHistoryResponse$1 {
|
|
|
1237
1267
|
interface GetUrlResponseNonNullableFields$1 {
|
|
1238
1268
|
checkoutUrl: string;
|
|
1239
1269
|
}
|
|
1270
|
+
interface PurchasedItemNonNullableFields$1 {
|
|
1271
|
+
productId: string;
|
|
1272
|
+
price: string;
|
|
1273
|
+
currency: string;
|
|
1274
|
+
billingCycle: PaymentCycle$1;
|
|
1275
|
+
}
|
|
1240
1276
|
interface GetPurchaseHistoryResponseNonNullableFields$1 {
|
|
1241
|
-
purchases:
|
|
1242
|
-
productId: string;
|
|
1243
|
-
price: string;
|
|
1244
|
-
currency: string;
|
|
1245
|
-
billingCycle: PaymentCycle$1;
|
|
1246
|
-
}[];
|
|
1277
|
+
purchases: PurchasedItemNonNullableFields$1[];
|
|
1247
1278
|
}
|
|
1248
1279
|
|
|
1249
1280
|
interface PurchasedItem {
|
|
@@ -1330,13 +1361,14 @@ interface GetPurchaseHistoryResponse {
|
|
|
1330
1361
|
interface GetUrlResponseNonNullableFields {
|
|
1331
1362
|
checkoutUrl: string;
|
|
1332
1363
|
}
|
|
1364
|
+
interface PurchasedItemNonNullableFields {
|
|
1365
|
+
productId: string;
|
|
1366
|
+
price: string;
|
|
1367
|
+
currency: string;
|
|
1368
|
+
billingCycle: PaymentCycle;
|
|
1369
|
+
}
|
|
1333
1370
|
interface GetPurchaseHistoryResponseNonNullableFields {
|
|
1334
|
-
purchases:
|
|
1335
|
-
productId: string;
|
|
1336
|
-
price: string;
|
|
1337
|
-
currency: string;
|
|
1338
|
-
billingCycle: PaymentCycle;
|
|
1339
|
-
}[];
|
|
1371
|
+
purchases: PurchasedItemNonNullableFields[];
|
|
1340
1372
|
}
|
|
1341
1373
|
|
|
1342
1374
|
type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
@@ -1383,15 +1415,14 @@ interface GetEmbeddedScriptResponse$1 {
|
|
|
1383
1415
|
/** Details of the retrieved embedded script. */
|
|
1384
1416
|
properties?: ScriptProperties$1;
|
|
1385
1417
|
}
|
|
1418
|
+
interface ScriptPropertiesNonNullableFields$1 {
|
|
1419
|
+
disabled: boolean;
|
|
1420
|
+
}
|
|
1386
1421
|
interface EmbedScriptResponseNonNullableFields$1 {
|
|
1387
|
-
properties?:
|
|
1388
|
-
disabled: boolean;
|
|
1389
|
-
};
|
|
1422
|
+
properties?: ScriptPropertiesNonNullableFields$1;
|
|
1390
1423
|
}
|
|
1391
1424
|
interface GetEmbeddedScriptResponseNonNullableFields$1 {
|
|
1392
|
-
properties?:
|
|
1393
|
-
disabled: boolean;
|
|
1394
|
-
};
|
|
1425
|
+
properties?: ScriptPropertiesNonNullableFields$1;
|
|
1395
1426
|
}
|
|
1396
1427
|
|
|
1397
1428
|
/** Embedded script data */
|
|
@@ -1419,15 +1450,14 @@ interface GetEmbeddedScriptResponse {
|
|
|
1419
1450
|
/** Details of the retrieved embedded script. */
|
|
1420
1451
|
properties?: ScriptProperties;
|
|
1421
1452
|
}
|
|
1453
|
+
interface ScriptPropertiesNonNullableFields {
|
|
1454
|
+
disabled: boolean;
|
|
1455
|
+
}
|
|
1422
1456
|
interface EmbedScriptResponseNonNullableFields {
|
|
1423
|
-
properties?:
|
|
1424
|
-
disabled: boolean;
|
|
1425
|
-
};
|
|
1457
|
+
properties?: ScriptPropertiesNonNullableFields;
|
|
1426
1458
|
}
|
|
1427
1459
|
interface GetEmbeddedScriptResponseNonNullableFields {
|
|
1428
|
-
properties?:
|
|
1429
|
-
disabled: boolean;
|
|
1430
|
-
};
|
|
1460
|
+
properties?: ScriptPropertiesNonNullableFields;
|
|
1431
1461
|
}
|
|
1432
1462
|
|
|
1433
1463
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|