@wix/app-management 1.0.30 → 1.0.32
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/build/cjs/index.d.ts +6 -5
- package/build/cjs/index.js +10 -5
- package/build/cjs/index.js.map +1 -1
- package/build/es/index.d.ts +6 -5
- package/build/es/index.js +6 -5
- package/build/es/index.js.map +1 -1
- package/package.json +8 -8
- package/type-bundles/context.bundle.d.ts +184 -93
- package/type-bundles/index.bundle.d.ts +184 -93
- package/type-bundles/meta.bundle.d.ts +0 -14
- package/type-bundles/service-plugins-context.bundle.d.ts +50 -0
- package/type-bundles/service-plugins.bundle.d.ts +59 -7
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as appPlans from '@wix/app-management_app-plans';
|
|
2
|
+
import * as appInstances from '@wix/app-management_app-instances';
|
|
3
|
+
import * as biEvents from '@wix/app-management_bi-events';
|
|
4
|
+
import * as billing from '@wix/app-management_billing';
|
|
5
|
+
import * as embeddedScripts from '@wix/app-management_embedded-scripts';
|
|
6
|
+
export { appPlans, appInstances, biEvents, billing, embeddedScripts };
|
package/build/cjs/index.js
CHANGED
|
@@ -24,9 +24,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.embeddedScripts = exports.billing = exports.biEvents = exports.appInstances = exports.appPlans = void 0;
|
|
27
|
-
|
|
28
|
-
exports.
|
|
29
|
-
|
|
30
|
-
exports.
|
|
31
|
-
|
|
27
|
+
const appPlans = __importStar(require("@wix/app-management_app-plans"));
|
|
28
|
+
exports.appPlans = appPlans;
|
|
29
|
+
const appInstances = __importStar(require("@wix/app-management_app-instances"));
|
|
30
|
+
exports.appInstances = appInstances;
|
|
31
|
+
const biEvents = __importStar(require("@wix/app-management_bi-events"));
|
|
32
|
+
exports.biEvents = biEvents;
|
|
33
|
+
const billing = __importStar(require("@wix/app-management_billing"));
|
|
34
|
+
exports.billing = billing;
|
|
35
|
+
const embeddedScripts = __importStar(require("@wix/app-management_embedded-scripts"));
|
|
36
|
+
exports.embeddedScripts = embeddedScripts;
|
|
32
37
|
//# sourceMappingURL=index.js.map
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wEAA0D;AAMjD,4BAAQ;AALjB,gFAAkE;AAK/C,oCAAY;AAJ/B,wEAA0D;AAIzB,4BAAQ;AAHzC,qEAAuD;AAGZ,0BAAO;AAFlD,sFAAwE;AAEpB,0CAAe"}
|
package/build/es/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as appPlans from '@wix/app-management_app-plans';
|
|
2
|
+
import * as appInstances from '@wix/app-management_app-instances';
|
|
3
|
+
import * as biEvents from '@wix/app-management_bi-events';
|
|
4
|
+
import * as billing from '@wix/app-management_billing';
|
|
5
|
+
import * as embeddedScripts from '@wix/app-management_embedded-scripts';
|
|
6
|
+
export { appPlans, appInstances, biEvents, billing, embeddedScripts };
|
package/build/es/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as appPlans from '@wix/app-management_app-plans';
|
|
2
|
+
import * as appInstances from '@wix/app-management_app-instances';
|
|
3
|
+
import * as biEvents from '@wix/app-management_bi-events';
|
|
4
|
+
import * as billing from '@wix/app-management_billing';
|
|
5
|
+
import * as embeddedScripts from '@wix/app-management_embedded-scripts';
|
|
6
|
+
export { appPlans, appInstances, biEvents, billing, embeddedScripts };
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
package/build/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAC;AAC1D,OAAO,KAAK,YAAY,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAC;AAC1D,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AACvD,OAAO,KAAK,eAAe,MAAM,sCAAsC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAC;AAC1D,OAAO,KAAK,YAAY,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAC;AAC1D,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AACvD,OAAO,KAAK,eAAe,MAAM,sCAAsC,CAAC;AAExE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/app-management",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.32",
|
|
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.18",
|
|
23
|
+
"@wix/app-management_app-plans": "1.0.18",
|
|
24
|
+
"@wix/app-management_bi-events": "1.0.17",
|
|
25
|
+
"@wix/app-management_billing": "1.0.18",
|
|
26
|
+
"@wix/app-management_custom-charges": "1.0.15",
|
|
27
|
+
"@wix/app-management_embedded-scripts": "1.0.15"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"glob": "^10.4.1",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"fqdn": ""
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
"falconPackageHash": "
|
|
52
|
+
"falconPackageHash": "257ad2e4bdf9f0df54e2729996c8128fc27f70e5a59af94d94e459fc"
|
|
53
53
|
}
|
|
@@ -1,10 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2
|
+
interface HttpClient {
|
|
3
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
4
|
+
fetchWithAuth: typeof fetch;
|
|
5
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
|
+
}
|
|
7
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
8
|
+
type HttpResponse<T = any> = {
|
|
9
|
+
data: T;
|
|
10
|
+
status: number;
|
|
11
|
+
statusText: string;
|
|
12
|
+
headers: any;
|
|
13
|
+
request?: any;
|
|
14
|
+
};
|
|
15
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
16
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
17
|
+
url: string;
|
|
18
|
+
data?: Data;
|
|
19
|
+
params?: URLSearchParams;
|
|
20
|
+
} & APIMetadata;
|
|
21
|
+
type APIMetadata = {
|
|
22
|
+
methodFqn?: string;
|
|
23
|
+
entityFqdn?: string;
|
|
24
|
+
packageName?: string;
|
|
25
|
+
};
|
|
26
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
27
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
28
|
+
__type: 'event-definition';
|
|
29
|
+
type: Type;
|
|
30
|
+
isDomainEvent?: boolean;
|
|
31
|
+
transformations?: (envelope: unknown) => Payload;
|
|
32
|
+
__payload: Payload;
|
|
33
|
+
};
|
|
34
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
35
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
36
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
37
|
+
|
|
38
|
+
declare global {
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
40
|
+
interface SymbolConstructor {
|
|
41
|
+
readonly observable: symbol;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
8
45
|
interface AppPlans {
|
|
9
46
|
/** App ID, as defined in the [Wix Dev Center](https://dev.wix.com/). */
|
|
10
47
|
_id?: string;
|
|
@@ -234,56 +271,41 @@ interface ListAppPlansByAppIdResponseNonNullableFields {
|
|
|
234
271
|
appPlans: AppPlansNonNullableFields[];
|
|
235
272
|
}
|
|
236
273
|
|
|
237
|
-
|
|
238
|
-
interface
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
};
|
|
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;
|
|
273
|
-
|
|
274
|
-
declare global {
|
|
275
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
276
|
-
interface SymbolConstructor {
|
|
277
|
-
readonly observable: symbol;
|
|
278
|
-
}
|
|
274
|
+
declare function listAppPlansByAppId$1(httpClient: HttpClient): ListAppPlansByAppIdSignature;
|
|
275
|
+
interface ListAppPlansByAppIdSignature {
|
|
276
|
+
/**
|
|
277
|
+
* Retrieves plans for the given apps.
|
|
278
|
+
*
|
|
279
|
+
*
|
|
280
|
+
* Also returns tax settings and currency details. Wix calculates this information
|
|
281
|
+
* based on the 2-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
|
|
282
|
+
* format that you pass in the call's header. If you don't pass a country code in
|
|
283
|
+
* the header, Wix calculates the tax settings and currency details based on the
|
|
284
|
+
* call's IP address. Note that the tax settings and currency details may not resolve
|
|
285
|
+
* properly if you call through a VPN.
|
|
286
|
+
*
|
|
287
|
+
* Prices for plans that are managed outside of Wix aren't returned.
|
|
288
|
+
*
|
|
289
|
+
* Consumers must pay for yearly and multi-yearly plans of your app every month.
|
|
290
|
+
* For these plans this endpoint returns the price that the consumer must pay every
|
|
291
|
+
* month and not the total price for the entire year.
|
|
292
|
+
*
|
|
293
|
+
* <blockquote class="important">
|
|
294
|
+
*
|
|
295
|
+
* __Important:__
|
|
296
|
+
* The App Plans API doesn't follow any tenancy model. You don't need any
|
|
297
|
+
* permissions to call `List App Plans by App ID`.
|
|
298
|
+
*
|
|
299
|
+
* </blockquote>
|
|
300
|
+
* @param - List of app IDs to retrieve plans for.
|
|
301
|
+
*
|
|
302
|
+
* Min: 1 app ID
|
|
303
|
+
* Max: 100 app IDs
|
|
304
|
+
*/
|
|
305
|
+
(appIds: string[]): Promise<ListAppPlansByAppIdResponse & ListAppPlansByAppIdResponseNonNullableFields>;
|
|
279
306
|
}
|
|
280
307
|
|
|
281
|
-
declare
|
|
282
|
-
|
|
283
|
-
declare function createRESTModule$4<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
284
|
-
|
|
285
|
-
type _publicListAppPlansByAppIdType = typeof listAppPlansByAppId$1;
|
|
286
|
-
declare const listAppPlansByAppId: ReturnType<typeof createRESTModule$4<_publicListAppPlansByAppIdType>>;
|
|
308
|
+
declare const listAppPlansByAppId: BuildRESTFunction<typeof listAppPlansByAppId$1> & typeof listAppPlansByAppId$1;
|
|
287
309
|
|
|
288
310
|
type context$4_AppPlans = AppPlans;
|
|
289
311
|
type context$4_Cycle = Cycle;
|
|
@@ -301,10 +323,9 @@ type context$4_TaxSettings = TaxSettings;
|
|
|
301
323
|
type context$4_TaxType = TaxType;
|
|
302
324
|
declare const context$4_TaxType: typeof TaxType;
|
|
303
325
|
type context$4_UsageBasedDetails = UsageBasedDetails;
|
|
304
|
-
type context$4__publicListAppPlansByAppIdType = _publicListAppPlansByAppIdType;
|
|
305
326
|
declare const context$4_listAppPlansByAppId: typeof listAppPlansByAppId;
|
|
306
327
|
declare namespace context$4 {
|
|
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,
|
|
328
|
+
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 };
|
|
308
329
|
}
|
|
309
330
|
|
|
310
331
|
/**
|
|
@@ -711,33 +732,62 @@ interface AppInstancePaidPlanAutoRenewalCancelledEnvelope {
|
|
|
711
732
|
metadata: BaseEventMetadata;
|
|
712
733
|
}
|
|
713
734
|
|
|
714
|
-
declare function getAppInstance$1(httpClient: HttpClient):
|
|
735
|
+
declare function getAppInstance$1(httpClient: HttpClient): GetAppInstanceSignature;
|
|
736
|
+
interface GetAppInstanceSignature {
|
|
737
|
+
/**
|
|
738
|
+
* Retrieves data about the instance of your app that's installed on the Wix
|
|
739
|
+
* site and the site itself.
|
|
740
|
+
*
|
|
741
|
+
*
|
|
742
|
+
* You don't have to explicitly pass an identifier for the Wix site as part of
|
|
743
|
+
* the request, since this information is taken automatically from the context.
|
|
744
|
+
*
|
|
745
|
+
* In case you want `site.ownerInfo` to be included in the response, you must
|
|
746
|
+
* have the __Read Site Owner Email__ permission scope in addition to
|
|
747
|
+
* __WIX_DEVELOPERS.MANAGE_APP_INSTANCE__.
|
|
748
|
+
*/
|
|
749
|
+
(): Promise<GetAppInstanceResponse & GetAppInstanceResponseNonNullableFields>;
|
|
750
|
+
}
|
|
715
751
|
declare const onAppInstanceInstalled$1: EventDefinition<AppInstanceInstalledEnvelope, "AppInstalled">;
|
|
716
752
|
declare const onAppInstanceRemoved$1: EventDefinition<AppInstanceRemovedEnvelope, "AppRemoved">;
|
|
717
753
|
declare const onAppInstancePaidPlanPurchased$1: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
|
|
718
754
|
declare const onAppInstancePaidPlanChanged$1: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
|
|
719
755
|
declare const onAppInstancePaidPlanAutoRenewalCancelled$1: EventDefinition<AppInstancePaidPlanAutoRenewalCancelledEnvelope, "PaidPlanAutoRenewalCancelled">;
|
|
720
756
|
|
|
721
|
-
declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
722
|
-
|
|
723
757
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
724
758
|
|
|
725
|
-
|
|
726
|
-
declare const getAppInstance: ReturnType<typeof createRESTModule$3<_publicGetAppInstanceType>>;
|
|
759
|
+
declare const getAppInstance: BuildRESTFunction<typeof getAppInstance$1> & typeof getAppInstance$1;
|
|
727
760
|
|
|
728
761
|
type _publicOnAppInstanceInstalledType = typeof onAppInstanceInstalled$1;
|
|
762
|
+
/**
|
|
763
|
+
* Triggered when an instance of your app is installed on a Wix site.
|
|
764
|
+
*/
|
|
729
765
|
declare const onAppInstanceInstalled: ReturnType<typeof createEventModule<_publicOnAppInstanceInstalledType>>;
|
|
730
766
|
|
|
731
767
|
type _publicOnAppInstanceRemovedType = typeof onAppInstanceRemoved$1;
|
|
768
|
+
/**
|
|
769
|
+
* Triggered when an instance of your app is uninstalled from a Wix site.
|
|
770
|
+
*/
|
|
732
771
|
declare const onAppInstanceRemoved: ReturnType<typeof createEventModule<_publicOnAppInstanceRemovedType>>;
|
|
733
772
|
|
|
734
773
|
type _publicOnAppInstancePaidPlanPurchasedType = typeof onAppInstancePaidPlanPurchased$1;
|
|
774
|
+
/**
|
|
775
|
+
* Triggered when a site owner purchases a paid plan for your app.
|
|
776
|
+
*/
|
|
735
777
|
declare const onAppInstancePaidPlanPurchased: ReturnType<typeof createEventModule<_publicOnAppInstancePaidPlanPurchasedType>>;
|
|
736
778
|
|
|
737
779
|
type _publicOnAppInstancePaidPlanChangedType = typeof onAppInstancePaidPlanChanged$1;
|
|
780
|
+
/**
|
|
781
|
+
* Triggered when a site owner upgrades or downgrades their plan for your app.
|
|
782
|
+
*/
|
|
738
783
|
declare const onAppInstancePaidPlanChanged: ReturnType<typeof createEventModule<_publicOnAppInstancePaidPlanChangedType>>;
|
|
739
784
|
|
|
740
785
|
type _publicOnAppInstancePaidPlanAutoRenewalCancelledType = typeof onAppInstancePaidPlanAutoRenewalCancelled$1;
|
|
786
|
+
/**
|
|
787
|
+
* Triggered when a site owner cancels a paid plan for your app. The
|
|
788
|
+
* site owner can continue to use your app until the end of the current billing
|
|
789
|
+
* cycle.
|
|
790
|
+
*/
|
|
741
791
|
declare const onAppInstancePaidPlanAutoRenewalCancelled: ReturnType<typeof createEventModule<_publicOnAppInstancePaidPlanAutoRenewalCancelledType>>;
|
|
742
792
|
|
|
743
793
|
type context$3_AppInstalled = AppInstalled;
|
|
@@ -768,7 +818,6 @@ type context$3_ResolutionMethod = ResolutionMethod;
|
|
|
768
818
|
declare const context$3_ResolutionMethod: typeof ResolutionMethod;
|
|
769
819
|
type context$3_SiteInfo = SiteInfo;
|
|
770
820
|
type context$3_SupportedLanguage = SupportedLanguage;
|
|
771
|
-
type context$3__publicGetAppInstanceType = _publicGetAppInstanceType;
|
|
772
821
|
type context$3__publicOnAppInstanceInstalledType = _publicOnAppInstanceInstalledType;
|
|
773
822
|
type context$3__publicOnAppInstancePaidPlanAutoRenewalCancelledType = _publicOnAppInstancePaidPlanAutoRenewalCancelledType;
|
|
774
823
|
type context$3__publicOnAppInstancePaidPlanChangedType = _publicOnAppInstancePaidPlanChangedType;
|
|
@@ -781,7 +830,7 @@ declare const context$3_onAppInstancePaidPlanChanged: typeof onAppInstancePaidPl
|
|
|
781
830
|
declare const context$3_onAppInstancePaidPlanPurchased: typeof onAppInstancePaidPlanPurchased;
|
|
782
831
|
declare const context$3_onAppInstanceRemoved: typeof onAppInstanceRemoved;
|
|
783
832
|
declare namespace context$3 {
|
|
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$
|
|
833
|
+
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__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 };
|
|
785
834
|
}
|
|
786
835
|
|
|
787
836
|
interface SendBIEventResponse {
|
|
@@ -872,22 +921,24 @@ interface SendBiEventOptions {
|
|
|
872
921
|
eventData?: Record<string, string>;
|
|
873
922
|
}
|
|
874
923
|
|
|
875
|
-
declare function sendBiEvent$1(httpClient: HttpClient):
|
|
876
|
-
|
|
877
|
-
|
|
924
|
+
declare function sendBiEvent$1(httpClient: HttpClient): SendBiEventSignature;
|
|
925
|
+
interface SendBiEventSignature {
|
|
926
|
+
/**
|
|
927
|
+
* Submit a BI event to Wix.
|
|
928
|
+
*/
|
|
929
|
+
(options?: SendBiEventOptions | undefined): Promise<void>;
|
|
930
|
+
}
|
|
878
931
|
|
|
879
|
-
|
|
880
|
-
declare const sendBiEvent: ReturnType<typeof createRESTModule$2<_publicSendBiEventType>>;
|
|
932
|
+
declare const sendBiEvent: BuildRESTFunction<typeof sendBiEvent$1> & typeof sendBiEvent$1;
|
|
881
933
|
|
|
882
934
|
type context$2_EventName = EventName;
|
|
883
935
|
declare const context$2_EventName: typeof EventName;
|
|
884
936
|
type context$2_SendBIEventRequest = SendBIEventRequest;
|
|
885
937
|
type context$2_SendBIEventResponse = SendBIEventResponse;
|
|
886
938
|
type context$2_SendBiEventOptions = SendBiEventOptions;
|
|
887
|
-
type context$2__publicSendBiEventType = _publicSendBiEventType;
|
|
888
939
|
declare const context$2_sendBiEvent: typeof sendBiEvent;
|
|
889
940
|
declare namespace context$2 {
|
|
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,
|
|
941
|
+
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 };
|
|
891
942
|
}
|
|
892
943
|
|
|
893
944
|
interface PurchasedItem {
|
|
@@ -1143,15 +1194,40 @@ interface GetUrlOptions {
|
|
|
1143
1194
|
couponCode?: string | null;
|
|
1144
1195
|
}
|
|
1145
1196
|
|
|
1146
|
-
declare function getUrl$1(httpClient: HttpClient):
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1197
|
+
declare function getUrl$1(httpClient: HttpClient): GetUrlSignature;
|
|
1198
|
+
interface GetUrlSignature {
|
|
1199
|
+
/**
|
|
1200
|
+
* Retrieves the URL for a Wix checkout page for the specified paid plan of your app.
|
|
1201
|
+
*
|
|
1202
|
+
*
|
|
1203
|
+
* This call succeeds only in case you have previously
|
|
1204
|
+
* [set up an external pricing page in the Wix Developers Center](https://dev.wix.com/docs/build-apps/build-your-app/pricing-plans/set-up-an-external-pricing-page).
|
|
1205
|
+
*
|
|
1206
|
+
* The returned checkout URL is valid for 48 hours.
|
|
1207
|
+
*
|
|
1208
|
+
* This API allows your app to manage your pricing page outside of Wix while
|
|
1209
|
+
* still using the standard Wix checkout flow.
|
|
1210
|
+
* @param - ID of your app's paid plan to retrieve the Wix checkout URL for. Check the
|
|
1211
|
+
* Wix Developers Center for a list of your app's supported product IDs.
|
|
1212
|
+
*/
|
|
1213
|
+
(productId: string, options?: GetUrlOptions | undefined): Promise<GetUrlResponse & GetUrlResponseNonNullableFields>;
|
|
1214
|
+
}
|
|
1215
|
+
declare function getPurchaseHistory$1(httpClient: HttpClient): GetPurchaseHistorySignature;
|
|
1216
|
+
interface GetPurchaseHistorySignature {
|
|
1217
|
+
/**
|
|
1218
|
+
* Retrieves a list of the site owner's past purchases for your app.
|
|
1219
|
+
*
|
|
1220
|
+
*
|
|
1221
|
+
* You don't have to explicitly pass an identifier for the Wix site as part of
|
|
1222
|
+
* the request, since this information is taken automatically from the context.
|
|
1223
|
+
*
|
|
1224
|
+
* The response doesn't include any details about cancellations.
|
|
1225
|
+
*/
|
|
1226
|
+
(): Promise<GetPurchaseHistoryResponse & GetPurchaseHistoryResponseNonNullableFields>;
|
|
1227
|
+
}
|
|
1150
1228
|
|
|
1151
|
-
|
|
1152
|
-
declare const
|
|
1153
|
-
type _publicGetPurchaseHistoryType = typeof getPurchaseHistory$1;
|
|
1154
|
-
declare const getPurchaseHistory: ReturnType<typeof createRESTModule$1<_publicGetPurchaseHistoryType>>;
|
|
1229
|
+
declare const getUrl: BuildRESTFunction<typeof getUrl$1> & typeof getUrl$1;
|
|
1230
|
+
declare const getPurchaseHistory: BuildRESTFunction<typeof getPurchaseHistory$1> & typeof getPurchaseHistory$1;
|
|
1155
1231
|
|
|
1156
1232
|
type context$1_Charge = Charge;
|
|
1157
1233
|
type context$1_ChargeOverride = ChargeOverride;
|
|
@@ -1177,12 +1253,10 @@ declare const context$1_PaymentCycle: typeof PaymentCycle;
|
|
|
1177
1253
|
type context$1_PurchasedItem = PurchasedItem;
|
|
1178
1254
|
type context$1_WebhookIdentityType = WebhookIdentityType;
|
|
1179
1255
|
declare const context$1_WebhookIdentityType: typeof WebhookIdentityType;
|
|
1180
|
-
type context$1__publicGetPurchaseHistoryType = _publicGetPurchaseHistoryType;
|
|
1181
|
-
type context$1__publicGetUrlType = _publicGetUrlType;
|
|
1182
1256
|
declare const context$1_getPurchaseHistory: typeof getPurchaseHistory;
|
|
1183
1257
|
declare const context$1_getUrl: typeof getUrl;
|
|
1184
1258
|
declare namespace context$1 {
|
|
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,
|
|
1259
|
+
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 };
|
|
1186
1260
|
}
|
|
1187
1261
|
|
|
1188
1262
|
/** Embedded script data */
|
|
@@ -1238,15 +1312,34 @@ interface GetEmbeddedScriptOptions {
|
|
|
1238
1312
|
componentId?: string | null;
|
|
1239
1313
|
}
|
|
1240
1314
|
|
|
1241
|
-
declare function embedScript$1(httpClient: HttpClient):
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1315
|
+
declare function embedScript$1(httpClient: HttpClient): EmbedScriptSignature;
|
|
1316
|
+
interface EmbedScriptSignature {
|
|
1317
|
+
/**
|
|
1318
|
+
* Inserts custom script tags into a site.
|
|
1319
|
+
*
|
|
1320
|
+
*
|
|
1321
|
+
* Your app must have an existing
|
|
1322
|
+
* [embedded script component](https://dev.wix.com/docs/build-apps/developer-tools/extensions/embedded-scripts),
|
|
1323
|
+
* with exactly matching parameter names.
|
|
1324
|
+
* @param - Details of the script to embed.
|
|
1325
|
+
*/
|
|
1326
|
+
(properties: ScriptProperties, options?: EmbedScriptOptions | undefined): Promise<EmbedScriptResponse & EmbedScriptResponseNonNullableFields>;
|
|
1327
|
+
}
|
|
1328
|
+
declare function getEmbeddedScript$1(httpClient: HttpClient): GetEmbeddedScriptSignature;
|
|
1329
|
+
interface GetEmbeddedScriptSignature {
|
|
1330
|
+
/**
|
|
1331
|
+
* Retrieves information about your app's existing embedded script.
|
|
1332
|
+
*
|
|
1333
|
+
*
|
|
1334
|
+
* The call fails with `404` error in case your app doesn't include an
|
|
1335
|
+
* embedded script on the site.
|
|
1336
|
+
* @returns Details of the retrieved embedded script.
|
|
1337
|
+
*/
|
|
1338
|
+
(options?: GetEmbeddedScriptOptions | undefined): Promise<ScriptProperties & ScriptPropertiesNonNullableFields>;
|
|
1339
|
+
}
|
|
1245
1340
|
|
|
1246
|
-
|
|
1247
|
-
declare const
|
|
1248
|
-
type _publicGetEmbeddedScriptType = typeof getEmbeddedScript$1;
|
|
1249
|
-
declare const getEmbeddedScript: ReturnType<typeof createRESTModule<_publicGetEmbeddedScriptType>>;
|
|
1341
|
+
declare const embedScript: BuildRESTFunction<typeof embedScript$1> & typeof embedScript$1;
|
|
1342
|
+
declare const getEmbeddedScript: BuildRESTFunction<typeof getEmbeddedScript$1> & typeof getEmbeddedScript$1;
|
|
1250
1343
|
|
|
1251
1344
|
type context_EmbedScriptByInstanceIdRequest = EmbedScriptByInstanceIdRequest;
|
|
1252
1345
|
type context_EmbedScriptOptions = EmbedScriptOptions;
|
|
@@ -1260,12 +1353,10 @@ type context_GetEmbeddedScriptResponse = GetEmbeddedScriptResponse;
|
|
|
1260
1353
|
type context_GetEmbeddedScriptResponseNonNullableFields = GetEmbeddedScriptResponseNonNullableFields;
|
|
1261
1354
|
type context_ScriptProperties = ScriptProperties;
|
|
1262
1355
|
type context_ScriptPropertiesNonNullableFields = ScriptPropertiesNonNullableFields;
|
|
1263
|
-
type context__publicEmbedScriptType = _publicEmbedScriptType;
|
|
1264
|
-
type context__publicGetEmbeddedScriptType = _publicGetEmbeddedScriptType;
|
|
1265
1356
|
declare const context_embedScript: typeof embedScript;
|
|
1266
1357
|
declare const context_getEmbeddedScript: typeof getEmbeddedScript;
|
|
1267
1358
|
declare namespace context {
|
|
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,
|
|
1359
|
+
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 };
|
|
1269
1360
|
}
|
|
1270
1361
|
|
|
1271
1362
|
export { context$3 as appInstances, context$4 as appPlans, context$2 as biEvents, context$1 as billing, context as embeddedScripts };
|
|
@@ -1,10 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2
|
+
interface HttpClient {
|
|
3
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
4
|
+
fetchWithAuth: typeof fetch;
|
|
5
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
|
+
}
|
|
7
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
8
|
+
type HttpResponse<T = any> = {
|
|
9
|
+
data: T;
|
|
10
|
+
status: number;
|
|
11
|
+
statusText: string;
|
|
12
|
+
headers: any;
|
|
13
|
+
request?: any;
|
|
14
|
+
};
|
|
15
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
16
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
17
|
+
url: string;
|
|
18
|
+
data?: Data;
|
|
19
|
+
params?: URLSearchParams;
|
|
20
|
+
} & APIMetadata;
|
|
21
|
+
type APIMetadata = {
|
|
22
|
+
methodFqn?: string;
|
|
23
|
+
entityFqdn?: string;
|
|
24
|
+
packageName?: string;
|
|
25
|
+
};
|
|
26
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
27
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
28
|
+
__type: 'event-definition';
|
|
29
|
+
type: Type;
|
|
30
|
+
isDomainEvent?: boolean;
|
|
31
|
+
transformations?: (envelope: unknown) => Payload;
|
|
32
|
+
__payload: Payload;
|
|
33
|
+
};
|
|
34
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
35
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
36
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
37
|
+
|
|
38
|
+
declare global {
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
40
|
+
interface SymbolConstructor {
|
|
41
|
+
readonly observable: symbol;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
8
45
|
interface AppPlans {
|
|
9
46
|
/** App ID, as defined in the [Wix Dev Center](https://dev.wix.com/). */
|
|
10
47
|
_id?: string;
|
|
@@ -234,56 +271,41 @@ interface ListAppPlansByAppIdResponseNonNullableFields {
|
|
|
234
271
|
appPlans: AppPlansNonNullableFields[];
|
|
235
272
|
}
|
|
236
273
|
|
|
237
|
-
|
|
238
|
-
interface
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
};
|
|
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;
|
|
273
|
-
|
|
274
|
-
declare global {
|
|
275
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
276
|
-
interface SymbolConstructor {
|
|
277
|
-
readonly observable: symbol;
|
|
278
|
-
}
|
|
274
|
+
declare function listAppPlansByAppId$1(httpClient: HttpClient): ListAppPlansByAppIdSignature;
|
|
275
|
+
interface ListAppPlansByAppIdSignature {
|
|
276
|
+
/**
|
|
277
|
+
* Retrieves plans for the given apps.
|
|
278
|
+
*
|
|
279
|
+
*
|
|
280
|
+
* Also returns tax settings and currency details. Wix calculates this information
|
|
281
|
+
* based on the 2-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
|
|
282
|
+
* format that you pass in the call's header. If you don't pass a country code in
|
|
283
|
+
* the header, Wix calculates the tax settings and currency details based on the
|
|
284
|
+
* call's IP address. Note that the tax settings and currency details may not resolve
|
|
285
|
+
* properly if you call through a VPN.
|
|
286
|
+
*
|
|
287
|
+
* Prices for plans that are managed outside of Wix aren't returned.
|
|
288
|
+
*
|
|
289
|
+
* Consumers must pay for yearly and multi-yearly plans of your app every month.
|
|
290
|
+
* For these plans this endpoint returns the price that the consumer must pay every
|
|
291
|
+
* month and not the total price for the entire year.
|
|
292
|
+
*
|
|
293
|
+
* <blockquote class="important">
|
|
294
|
+
*
|
|
295
|
+
* __Important:__
|
|
296
|
+
* The App Plans API doesn't follow any tenancy model. You don't need any
|
|
297
|
+
* permissions to call `List App Plans by App ID`.
|
|
298
|
+
*
|
|
299
|
+
* </blockquote>
|
|
300
|
+
* @param - List of app IDs to retrieve plans for.
|
|
301
|
+
*
|
|
302
|
+
* Min: 1 app ID
|
|
303
|
+
* Max: 100 app IDs
|
|
304
|
+
*/
|
|
305
|
+
(appIds: string[]): Promise<ListAppPlansByAppIdResponse & ListAppPlansByAppIdResponseNonNullableFields>;
|
|
279
306
|
}
|
|
280
307
|
|
|
281
|
-
declare
|
|
282
|
-
|
|
283
|
-
declare function createRESTModule$4<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
284
|
-
|
|
285
|
-
type _publicListAppPlansByAppIdType = typeof listAppPlansByAppId$1;
|
|
286
|
-
declare const listAppPlansByAppId: ReturnType<typeof createRESTModule$4<_publicListAppPlansByAppIdType>>;
|
|
308
|
+
declare const listAppPlansByAppId: BuildRESTFunction<typeof listAppPlansByAppId$1> & typeof listAppPlansByAppId$1;
|
|
287
309
|
|
|
288
310
|
type index_d$4_AppPlans = AppPlans;
|
|
289
311
|
type index_d$4_Cycle = Cycle;
|
|
@@ -301,10 +323,9 @@ type index_d$4_TaxSettings = TaxSettings;
|
|
|
301
323
|
type index_d$4_TaxType = TaxType;
|
|
302
324
|
declare const index_d$4_TaxType: typeof TaxType;
|
|
303
325
|
type index_d$4_UsageBasedDetails = UsageBasedDetails;
|
|
304
|
-
type index_d$4__publicListAppPlansByAppIdType = _publicListAppPlansByAppIdType;
|
|
305
326
|
declare const index_d$4_listAppPlansByAppId: typeof listAppPlansByAppId;
|
|
306
327
|
declare namespace index_d$4 {
|
|
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,
|
|
328
|
+
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 };
|
|
308
329
|
}
|
|
309
330
|
|
|
310
331
|
/**
|
|
@@ -711,33 +732,62 @@ interface AppInstancePaidPlanAutoRenewalCancelledEnvelope {
|
|
|
711
732
|
metadata: BaseEventMetadata;
|
|
712
733
|
}
|
|
713
734
|
|
|
714
|
-
declare function getAppInstance$1(httpClient: HttpClient):
|
|
735
|
+
declare function getAppInstance$1(httpClient: HttpClient): GetAppInstanceSignature;
|
|
736
|
+
interface GetAppInstanceSignature {
|
|
737
|
+
/**
|
|
738
|
+
* Retrieves data about the instance of your app that's installed on the Wix
|
|
739
|
+
* site and the site itself.
|
|
740
|
+
*
|
|
741
|
+
*
|
|
742
|
+
* You don't have to explicitly pass an identifier for the Wix site as part of
|
|
743
|
+
* the request, since this information is taken automatically from the context.
|
|
744
|
+
*
|
|
745
|
+
* In case you want `site.ownerInfo` to be included in the response, you must
|
|
746
|
+
* have the __Read Site Owner Email__ permission scope in addition to
|
|
747
|
+
* __WIX_DEVELOPERS.MANAGE_APP_INSTANCE__.
|
|
748
|
+
*/
|
|
749
|
+
(): Promise<GetAppInstanceResponse & GetAppInstanceResponseNonNullableFields>;
|
|
750
|
+
}
|
|
715
751
|
declare const onAppInstanceInstalled$1: EventDefinition<AppInstanceInstalledEnvelope, "AppInstalled">;
|
|
716
752
|
declare const onAppInstanceRemoved$1: EventDefinition<AppInstanceRemovedEnvelope, "AppRemoved">;
|
|
717
753
|
declare const onAppInstancePaidPlanPurchased$1: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
|
|
718
754
|
declare const onAppInstancePaidPlanChanged$1: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
|
|
719
755
|
declare const onAppInstancePaidPlanAutoRenewalCancelled$1: EventDefinition<AppInstancePaidPlanAutoRenewalCancelledEnvelope, "PaidPlanAutoRenewalCancelled">;
|
|
720
756
|
|
|
721
|
-
declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
722
|
-
|
|
723
757
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
724
758
|
|
|
725
|
-
|
|
726
|
-
declare const getAppInstance: ReturnType<typeof createRESTModule$3<_publicGetAppInstanceType>>;
|
|
759
|
+
declare const getAppInstance: BuildRESTFunction<typeof getAppInstance$1> & typeof getAppInstance$1;
|
|
727
760
|
|
|
728
761
|
type _publicOnAppInstanceInstalledType = typeof onAppInstanceInstalled$1;
|
|
762
|
+
/**
|
|
763
|
+
* Triggered when an instance of your app is installed on a Wix site.
|
|
764
|
+
*/
|
|
729
765
|
declare const onAppInstanceInstalled: ReturnType<typeof createEventModule<_publicOnAppInstanceInstalledType>>;
|
|
730
766
|
|
|
731
767
|
type _publicOnAppInstanceRemovedType = typeof onAppInstanceRemoved$1;
|
|
768
|
+
/**
|
|
769
|
+
* Triggered when an instance of your app is uninstalled from a Wix site.
|
|
770
|
+
*/
|
|
732
771
|
declare const onAppInstanceRemoved: ReturnType<typeof createEventModule<_publicOnAppInstanceRemovedType>>;
|
|
733
772
|
|
|
734
773
|
type _publicOnAppInstancePaidPlanPurchasedType = typeof onAppInstancePaidPlanPurchased$1;
|
|
774
|
+
/**
|
|
775
|
+
* Triggered when a site owner purchases a paid plan for your app.
|
|
776
|
+
*/
|
|
735
777
|
declare const onAppInstancePaidPlanPurchased: ReturnType<typeof createEventModule<_publicOnAppInstancePaidPlanPurchasedType>>;
|
|
736
778
|
|
|
737
779
|
type _publicOnAppInstancePaidPlanChangedType = typeof onAppInstancePaidPlanChanged$1;
|
|
780
|
+
/**
|
|
781
|
+
* Triggered when a site owner upgrades or downgrades their plan for your app.
|
|
782
|
+
*/
|
|
738
783
|
declare const onAppInstancePaidPlanChanged: ReturnType<typeof createEventModule<_publicOnAppInstancePaidPlanChangedType>>;
|
|
739
784
|
|
|
740
785
|
type _publicOnAppInstancePaidPlanAutoRenewalCancelledType = typeof onAppInstancePaidPlanAutoRenewalCancelled$1;
|
|
786
|
+
/**
|
|
787
|
+
* Triggered when a site owner cancels a paid plan for your app. The
|
|
788
|
+
* site owner can continue to use your app until the end of the current billing
|
|
789
|
+
* cycle.
|
|
790
|
+
*/
|
|
741
791
|
declare const onAppInstancePaidPlanAutoRenewalCancelled: ReturnType<typeof createEventModule<_publicOnAppInstancePaidPlanAutoRenewalCancelledType>>;
|
|
742
792
|
|
|
743
793
|
type index_d$3_AppInstalled = AppInstalled;
|
|
@@ -768,7 +818,6 @@ type index_d$3_ResolutionMethod = ResolutionMethod;
|
|
|
768
818
|
declare const index_d$3_ResolutionMethod: typeof ResolutionMethod;
|
|
769
819
|
type index_d$3_SiteInfo = SiteInfo;
|
|
770
820
|
type index_d$3_SupportedLanguage = SupportedLanguage;
|
|
771
|
-
type index_d$3__publicGetAppInstanceType = _publicGetAppInstanceType;
|
|
772
821
|
type index_d$3__publicOnAppInstanceInstalledType = _publicOnAppInstanceInstalledType;
|
|
773
822
|
type index_d$3__publicOnAppInstancePaidPlanAutoRenewalCancelledType = _publicOnAppInstancePaidPlanAutoRenewalCancelledType;
|
|
774
823
|
type index_d$3__publicOnAppInstancePaidPlanChangedType = _publicOnAppInstancePaidPlanChangedType;
|
|
@@ -781,7 +830,7 @@ declare const index_d$3_onAppInstancePaidPlanChanged: typeof onAppInstancePaidPl
|
|
|
781
830
|
declare const index_d$3_onAppInstancePaidPlanPurchased: typeof onAppInstancePaidPlanPurchased;
|
|
782
831
|
declare const index_d$3_onAppInstanceRemoved: typeof onAppInstanceRemoved;
|
|
783
832
|
declare namespace index_d$3 {
|
|
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$
|
|
833
|
+
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__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 };
|
|
785
834
|
}
|
|
786
835
|
|
|
787
836
|
interface SendBIEventResponse {
|
|
@@ -872,22 +921,24 @@ interface SendBiEventOptions {
|
|
|
872
921
|
eventData?: Record<string, string>;
|
|
873
922
|
}
|
|
874
923
|
|
|
875
|
-
declare function sendBiEvent$1(httpClient: HttpClient):
|
|
876
|
-
|
|
877
|
-
|
|
924
|
+
declare function sendBiEvent$1(httpClient: HttpClient): SendBiEventSignature;
|
|
925
|
+
interface SendBiEventSignature {
|
|
926
|
+
/**
|
|
927
|
+
* Submit a BI event to Wix.
|
|
928
|
+
*/
|
|
929
|
+
(options?: SendBiEventOptions | undefined): Promise<void>;
|
|
930
|
+
}
|
|
878
931
|
|
|
879
|
-
|
|
880
|
-
declare const sendBiEvent: ReturnType<typeof createRESTModule$2<_publicSendBiEventType>>;
|
|
932
|
+
declare const sendBiEvent: BuildRESTFunction<typeof sendBiEvent$1> & typeof sendBiEvent$1;
|
|
881
933
|
|
|
882
934
|
type index_d$2_EventName = EventName;
|
|
883
935
|
declare const index_d$2_EventName: typeof EventName;
|
|
884
936
|
type index_d$2_SendBIEventRequest = SendBIEventRequest;
|
|
885
937
|
type index_d$2_SendBIEventResponse = SendBIEventResponse;
|
|
886
938
|
type index_d$2_SendBiEventOptions = SendBiEventOptions;
|
|
887
|
-
type index_d$2__publicSendBiEventType = _publicSendBiEventType;
|
|
888
939
|
declare const index_d$2_sendBiEvent: typeof sendBiEvent;
|
|
889
940
|
declare namespace index_d$2 {
|
|
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,
|
|
941
|
+
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 };
|
|
891
942
|
}
|
|
892
943
|
|
|
893
944
|
interface PurchasedItem {
|
|
@@ -1143,15 +1194,40 @@ interface GetUrlOptions {
|
|
|
1143
1194
|
couponCode?: string | null;
|
|
1144
1195
|
}
|
|
1145
1196
|
|
|
1146
|
-
declare function getUrl$1(httpClient: HttpClient):
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1197
|
+
declare function getUrl$1(httpClient: HttpClient): GetUrlSignature;
|
|
1198
|
+
interface GetUrlSignature {
|
|
1199
|
+
/**
|
|
1200
|
+
* Retrieves the URL for a Wix checkout page for the specified paid plan of your app.
|
|
1201
|
+
*
|
|
1202
|
+
*
|
|
1203
|
+
* This call succeeds only in case you have previously
|
|
1204
|
+
* [set up an external pricing page in the Wix Developers Center](https://dev.wix.com/docs/build-apps/build-your-app/pricing-plans/set-up-an-external-pricing-page).
|
|
1205
|
+
*
|
|
1206
|
+
* The returned checkout URL is valid for 48 hours.
|
|
1207
|
+
*
|
|
1208
|
+
* This API allows your app to manage your pricing page outside of Wix while
|
|
1209
|
+
* still using the standard Wix checkout flow.
|
|
1210
|
+
* @param - ID of your app's paid plan to retrieve the Wix checkout URL for. Check the
|
|
1211
|
+
* Wix Developers Center for a list of your app's supported product IDs.
|
|
1212
|
+
*/
|
|
1213
|
+
(productId: string, options?: GetUrlOptions | undefined): Promise<GetUrlResponse & GetUrlResponseNonNullableFields>;
|
|
1214
|
+
}
|
|
1215
|
+
declare function getPurchaseHistory$1(httpClient: HttpClient): GetPurchaseHistorySignature;
|
|
1216
|
+
interface GetPurchaseHistorySignature {
|
|
1217
|
+
/**
|
|
1218
|
+
* Retrieves a list of the site owner's past purchases for your app.
|
|
1219
|
+
*
|
|
1220
|
+
*
|
|
1221
|
+
* You don't have to explicitly pass an identifier for the Wix site as part of
|
|
1222
|
+
* the request, since this information is taken automatically from the context.
|
|
1223
|
+
*
|
|
1224
|
+
* The response doesn't include any details about cancellations.
|
|
1225
|
+
*/
|
|
1226
|
+
(): Promise<GetPurchaseHistoryResponse & GetPurchaseHistoryResponseNonNullableFields>;
|
|
1227
|
+
}
|
|
1150
1228
|
|
|
1151
|
-
|
|
1152
|
-
declare const
|
|
1153
|
-
type _publicGetPurchaseHistoryType = typeof getPurchaseHistory$1;
|
|
1154
|
-
declare const getPurchaseHistory: ReturnType<typeof createRESTModule$1<_publicGetPurchaseHistoryType>>;
|
|
1229
|
+
declare const getUrl: BuildRESTFunction<typeof getUrl$1> & typeof getUrl$1;
|
|
1230
|
+
declare const getPurchaseHistory: BuildRESTFunction<typeof getPurchaseHistory$1> & typeof getPurchaseHistory$1;
|
|
1155
1231
|
|
|
1156
1232
|
type index_d$1_Charge = Charge;
|
|
1157
1233
|
type index_d$1_ChargeOverride = ChargeOverride;
|
|
@@ -1177,12 +1253,10 @@ declare const index_d$1_PaymentCycle: typeof PaymentCycle;
|
|
|
1177
1253
|
type index_d$1_PurchasedItem = PurchasedItem;
|
|
1178
1254
|
type index_d$1_WebhookIdentityType = WebhookIdentityType;
|
|
1179
1255
|
declare const index_d$1_WebhookIdentityType: typeof WebhookIdentityType;
|
|
1180
|
-
type index_d$1__publicGetPurchaseHistoryType = _publicGetPurchaseHistoryType;
|
|
1181
|
-
type index_d$1__publicGetUrlType = _publicGetUrlType;
|
|
1182
1256
|
declare const index_d$1_getPurchaseHistory: typeof getPurchaseHistory;
|
|
1183
1257
|
declare const index_d$1_getUrl: typeof getUrl;
|
|
1184
1258
|
declare namespace index_d$1 {
|
|
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,
|
|
1259
|
+
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 };
|
|
1186
1260
|
}
|
|
1187
1261
|
|
|
1188
1262
|
/** Embedded script data */
|
|
@@ -1238,15 +1312,34 @@ interface GetEmbeddedScriptOptions {
|
|
|
1238
1312
|
componentId?: string | null;
|
|
1239
1313
|
}
|
|
1240
1314
|
|
|
1241
|
-
declare function embedScript$1(httpClient: HttpClient):
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1315
|
+
declare function embedScript$1(httpClient: HttpClient): EmbedScriptSignature;
|
|
1316
|
+
interface EmbedScriptSignature {
|
|
1317
|
+
/**
|
|
1318
|
+
* Inserts custom script tags into a site.
|
|
1319
|
+
*
|
|
1320
|
+
*
|
|
1321
|
+
* Your app must have an existing
|
|
1322
|
+
* [embedded script component](https://dev.wix.com/docs/build-apps/developer-tools/extensions/embedded-scripts),
|
|
1323
|
+
* with exactly matching parameter names.
|
|
1324
|
+
* @param - Details of the script to embed.
|
|
1325
|
+
*/
|
|
1326
|
+
(properties: ScriptProperties, options?: EmbedScriptOptions | undefined): Promise<EmbedScriptResponse & EmbedScriptResponseNonNullableFields>;
|
|
1327
|
+
}
|
|
1328
|
+
declare function getEmbeddedScript$1(httpClient: HttpClient): GetEmbeddedScriptSignature;
|
|
1329
|
+
interface GetEmbeddedScriptSignature {
|
|
1330
|
+
/**
|
|
1331
|
+
* Retrieves information about your app's existing embedded script.
|
|
1332
|
+
*
|
|
1333
|
+
*
|
|
1334
|
+
* The call fails with `404` error in case your app doesn't include an
|
|
1335
|
+
* embedded script on the site.
|
|
1336
|
+
* @returns Details of the retrieved embedded script.
|
|
1337
|
+
*/
|
|
1338
|
+
(options?: GetEmbeddedScriptOptions | undefined): Promise<ScriptProperties & ScriptPropertiesNonNullableFields>;
|
|
1339
|
+
}
|
|
1245
1340
|
|
|
1246
|
-
|
|
1247
|
-
declare const
|
|
1248
|
-
type _publicGetEmbeddedScriptType = typeof getEmbeddedScript$1;
|
|
1249
|
-
declare const getEmbeddedScript: ReturnType<typeof createRESTModule<_publicGetEmbeddedScriptType>>;
|
|
1341
|
+
declare const embedScript: BuildRESTFunction<typeof embedScript$1> & typeof embedScript$1;
|
|
1342
|
+
declare const getEmbeddedScript: BuildRESTFunction<typeof getEmbeddedScript$1> & typeof getEmbeddedScript$1;
|
|
1250
1343
|
|
|
1251
1344
|
type index_d_EmbedScriptByInstanceIdRequest = EmbedScriptByInstanceIdRequest;
|
|
1252
1345
|
type index_d_EmbedScriptOptions = EmbedScriptOptions;
|
|
@@ -1260,12 +1353,10 @@ type index_d_GetEmbeddedScriptResponse = GetEmbeddedScriptResponse;
|
|
|
1260
1353
|
type index_d_GetEmbeddedScriptResponseNonNullableFields = GetEmbeddedScriptResponseNonNullableFields;
|
|
1261
1354
|
type index_d_ScriptProperties = ScriptProperties;
|
|
1262
1355
|
type index_d_ScriptPropertiesNonNullableFields = ScriptPropertiesNonNullableFields;
|
|
1263
|
-
type index_d__publicEmbedScriptType = _publicEmbedScriptType;
|
|
1264
|
-
type index_d__publicGetEmbeddedScriptType = _publicGetEmbeddedScriptType;
|
|
1265
1356
|
declare const index_d_embedScript: typeof embedScript;
|
|
1266
1357
|
declare const index_d_getEmbeddedScript: typeof getEmbeddedScript;
|
|
1267
1358
|
declare namespace index_d {
|
|
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,
|
|
1359
|
+
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 };
|
|
1269
1360
|
}
|
|
1270
1361
|
|
|
1271
1362
|
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 };
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An `appPlans` object describes how you charge users for using your app.
|
|
3
|
-
* You can set up multiple plans for a single app, with different plans giving access to
|
|
4
|
-
* different tiers of functionality. For example, you can offer a free plan and
|
|
5
|
-
* 3 paid plans with an increasing number of benefits. Learn more about
|
|
6
|
-
* [setting up your app pricing](https://dev.wix.com/docs/build-apps/build-your-app/pricing-plans/set-up-your-app-pricing).
|
|
7
|
-
*/
|
|
8
1
|
interface AppPlans$1 {
|
|
9
2
|
/** App ID, as defined in the [Wix Dev Center](https://dev.wix.com/). */
|
|
10
3
|
id?: string;
|
|
@@ -234,13 +227,6 @@ interface ListAppPlansByAppIdResponseNonNullableFields$1 {
|
|
|
234
227
|
appPlans: AppPlansNonNullableFields$1[];
|
|
235
228
|
}
|
|
236
229
|
|
|
237
|
-
/**
|
|
238
|
-
* An `appPlans` object describes how you charge users for using your app.
|
|
239
|
-
* You can set up multiple plans for a single app, with different plans giving access to
|
|
240
|
-
* different tiers of functionality. For example, you can offer a free plan and
|
|
241
|
-
* 3 paid plans with an increasing number of benefits. Learn more about
|
|
242
|
-
* [setting up your app pricing](https://dev.wix.com/docs/build-apps/build-your-app/pricing-plans/set-up-your-app-pricing).
|
|
243
|
-
*/
|
|
244
230
|
interface AppPlans {
|
|
245
231
|
/** App ID, as defined in the [Wix Dev Center](https://dev.wix.com/). */
|
|
246
232
|
_id?: string;
|
|
@@ -319,10 +319,60 @@ interface ChargeLimitUpdatedEventEnvelope {
|
|
|
319
319
|
metadata: Context;
|
|
320
320
|
}
|
|
321
321
|
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* Wix calls this method to retrieve the initial charge limit for a paid instance
|
|
325
|
+
* of your app. This happens every time a customer is upgrading to a paid version of
|
|
326
|
+
* your app.
|
|
327
|
+
*
|
|
328
|
+
* You can't update the charge limit after you've set an initial
|
|
329
|
+
* value. Customers can increase the limit in their site's dashboard, currently they
|
|
330
|
+
* aren't allowed to decrease it. */
|
|
322
331
|
getChargeLimit(payload: GetChargeLimitEnvelope): GetChargeLimitResponse | Promise<GetChargeLimitResponse>;
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* Wix calls this method to retrieve a list of charges for a paid instance
|
|
335
|
+
* of your app. This happens when Wix creates an invoice or in case the customer
|
|
336
|
+
* wants to preview how much your app would charge them at the moment.
|
|
337
|
+
*
|
|
338
|
+
* You must return the charges in the currency that's specified in the request,
|
|
339
|
+
* you aren't allowed to return more than 5 charges, and their sum must be lower
|
|
340
|
+
* than the charge limit.
|
|
341
|
+
*
|
|
342
|
+
* You may not bill customers for any usage that didn’t occur during the period
|
|
343
|
+
* Wix specifies when retrieving the charges. If Wix discovers that your app has
|
|
344
|
+
* charged customers for usage outside of an invoice's specified period, we may
|
|
345
|
+
* take action such as blocking your app from charging the customer, removing
|
|
346
|
+
* your app from the Wix App Market, revoking your access to the Wix developer
|
|
347
|
+
* program, or pursuing legal action to recover damages caused by overcharging.
|
|
348
|
+
* We understand that mistakes can happen and encourage you to contact
|
|
349
|
+
* [the Wix App Market team](https://devforum.wix.com/kb/en/contact) immediately if you
|
|
350
|
+
* become aware of any overcharging issues so that we can work together to
|
|
351
|
+
* resolve the situation. */
|
|
323
352
|
listCharges(payload: ListChargesEnvelope): ListChargesResponse | Promise<ListChargesResponse>;
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* Triggered in case Wix doesn't accept the charges you've returned in the
|
|
356
|
+
* List Charges method.
|
|
357
|
+
*
|
|
358
|
+
*
|
|
359
|
+
* You aren't allowed to charge a site owner more than the charge limit. Wix
|
|
360
|
+
* call List Charges in regular intervals until the sum of all charges is lower than the
|
|
361
|
+
* charge limit. Wix doesn't create an invoice in case the charges aren't accepted. */
|
|
324
362
|
chargesRejectedEvent(payload: ChargesRejectedEventEnvelope): ChargesRejectedResponse | Promise<ChargesRejectedResponse>;
|
|
363
|
+
/**
|
|
364
|
+
*
|
|
365
|
+
* Triggered in case Wix creates an invoice that includes charges for an instance
|
|
366
|
+
* of your app. */
|
|
325
367
|
invoiceCreatedEvent(payload: InvoiceCreatedEventEnvelope): InvoiceCreatedResponse | Promise<InvoiceCreatedResponse>;
|
|
368
|
+
/**
|
|
369
|
+
*
|
|
370
|
+
* Triggered in case the charge limit for an instance of your app is updated.
|
|
371
|
+
*
|
|
372
|
+
*
|
|
373
|
+
* You can't update the charge limit after you've set an initial
|
|
374
|
+
* value. Site owners can increase the limit in their site's dashboard,
|
|
375
|
+
* currently they aren't allowed to decrease it. */
|
|
326
376
|
chargeLimitUpdatedEvent(payload: ChargeLimitUpdatedEventEnvelope): ChargeLimitUpdatedResponse | Promise<ChargeLimitUpdatedResponse>;
|
|
327
377
|
}>;
|
|
328
378
|
|
|
@@ -289,6 +289,7 @@ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
|
289
289
|
__contract: Contract;
|
|
290
290
|
};
|
|
291
291
|
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
292
|
+
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
292
293
|
|
|
293
294
|
declare global {
|
|
294
295
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -317,27 +318,79 @@ interface ChargeLimitUpdatedEventEnvelope {
|
|
|
317
318
|
request: ChargeLimitUpdatedRequest;
|
|
318
319
|
metadata: Context;
|
|
319
320
|
}
|
|
320
|
-
declare const provideHandlers: ServicePluginDefinition<{
|
|
321
|
+
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* Wix calls this method to retrieve the initial charge limit for a paid instance
|
|
325
|
+
* of your app. This happens every time a customer is upgrading to a paid version of
|
|
326
|
+
* your app.
|
|
327
|
+
*
|
|
328
|
+
* You can't update the charge limit after you've set an initial
|
|
329
|
+
* value. Customers can increase the limit in their site's dashboard, currently they
|
|
330
|
+
* aren't allowed to decrease it. */
|
|
321
331
|
getChargeLimit(payload: GetChargeLimitEnvelope): GetChargeLimitResponse | Promise<GetChargeLimitResponse>;
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* Wix calls this method to retrieve a list of charges for a paid instance
|
|
335
|
+
* of your app. This happens when Wix creates an invoice or in case the customer
|
|
336
|
+
* wants to preview how much your app would charge them at the moment.
|
|
337
|
+
*
|
|
338
|
+
* You must return the charges in the currency that's specified in the request,
|
|
339
|
+
* you aren't allowed to return more than 5 charges, and their sum must be lower
|
|
340
|
+
* than the charge limit.
|
|
341
|
+
*
|
|
342
|
+
* You may not bill customers for any usage that didn’t occur during the period
|
|
343
|
+
* Wix specifies when retrieving the charges. If Wix discovers that your app has
|
|
344
|
+
* charged customers for usage outside of an invoice's specified period, we may
|
|
345
|
+
* take action such as blocking your app from charging the customer, removing
|
|
346
|
+
* your app from the Wix App Market, revoking your access to the Wix developer
|
|
347
|
+
* program, or pursuing legal action to recover damages caused by overcharging.
|
|
348
|
+
* We understand that mistakes can happen and encourage you to contact
|
|
349
|
+
* [the Wix App Market team](https://devforum.wix.com/kb/en/contact) immediately if you
|
|
350
|
+
* become aware of any overcharging issues so that we can work together to
|
|
351
|
+
* resolve the situation. */
|
|
322
352
|
listCharges(payload: ListChargesEnvelope): ListChargesResponse | Promise<ListChargesResponse>;
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* Triggered in case Wix doesn't accept the charges you've returned in the
|
|
356
|
+
* List Charges method.
|
|
357
|
+
*
|
|
358
|
+
*
|
|
359
|
+
* You aren't allowed to charge a site owner more than the charge limit. Wix
|
|
360
|
+
* call List Charges in regular intervals until the sum of all charges is lower than the
|
|
361
|
+
* charge limit. Wix doesn't create an invoice in case the charges aren't accepted. */
|
|
323
362
|
chargesRejectedEvent(payload: ChargesRejectedEventEnvelope): ChargesRejectedResponse | Promise<ChargesRejectedResponse>;
|
|
363
|
+
/**
|
|
364
|
+
*
|
|
365
|
+
* Triggered in case Wix creates an invoice that includes charges for an instance
|
|
366
|
+
* of your app. */
|
|
324
367
|
invoiceCreatedEvent(payload: InvoiceCreatedEventEnvelope): InvoiceCreatedResponse | Promise<InvoiceCreatedResponse>;
|
|
368
|
+
/**
|
|
369
|
+
*
|
|
370
|
+
* Triggered in case the charge limit for an instance of your app is updated.
|
|
371
|
+
*
|
|
372
|
+
*
|
|
373
|
+
* You can't update the charge limit after you've set an initial
|
|
374
|
+
* value. Site owners can increase the limit in their site's dashboard,
|
|
375
|
+
* currently they aren't allowed to decrease it. */
|
|
325
376
|
chargeLimitUpdatedEvent(payload: ChargeLimitUpdatedEventEnvelope): ChargeLimitUpdatedResponse | Promise<ChargeLimitUpdatedResponse>;
|
|
326
377
|
}>;
|
|
327
378
|
|
|
379
|
+
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
380
|
+
|
|
381
|
+
type _publicProvideHandlersType = typeof provideHandlers$1;
|
|
382
|
+
declare const provideHandlers: ReturnType<typeof createServicePluginModule<_publicProvideHandlersType>>;
|
|
383
|
+
|
|
328
384
|
type index_d_AlternativeUri = AlternativeUri;
|
|
329
|
-
type index_d_ChargeLimitUpdatedEventEnvelope = ChargeLimitUpdatedEventEnvelope;
|
|
330
385
|
type index_d_ChargeLimitUpdatedRequest = ChargeLimitUpdatedRequest;
|
|
331
386
|
type index_d_ChargeLimitUpdatedResponse = ChargeLimitUpdatedResponse;
|
|
332
387
|
type index_d_ChargeLineItem = ChargeLineItem;
|
|
333
|
-
type index_d_ChargesRejectedEventEnvelope = ChargesRejectedEventEnvelope;
|
|
334
388
|
type index_d_ChargesRejectedReason = ChargesRejectedReason;
|
|
335
389
|
declare const index_d_ChargesRejectedReason: typeof ChargesRejectedReason;
|
|
336
390
|
type index_d_ChargesRejectedRequest = ChargesRejectedRequest;
|
|
337
391
|
type index_d_ChargesRejectedResponse = ChargesRejectedResponse;
|
|
338
392
|
type index_d_Context = Context;
|
|
339
393
|
type index_d_CustomChargesConfig = CustomChargesConfig;
|
|
340
|
-
type index_d_GetChargeLimitEnvelope = GetChargeLimitEnvelope;
|
|
341
394
|
type index_d_GetChargeLimitRequest = GetChargeLimitRequest;
|
|
342
395
|
type index_d_GetChargeLimitResponse = GetChargeLimitResponse;
|
|
343
396
|
type index_d_IdentificationData = IdentificationData;
|
|
@@ -346,17 +399,16 @@ type index_d_IdentityType = IdentityType;
|
|
|
346
399
|
declare const index_d_IdentityType: typeof IdentityType;
|
|
347
400
|
type index_d_Intent = Intent;
|
|
348
401
|
declare const index_d_Intent: typeof Intent;
|
|
349
|
-
type index_d_InvoiceCreatedEventEnvelope = InvoiceCreatedEventEnvelope;
|
|
350
402
|
type index_d_InvoiceCreatedRequest = InvoiceCreatedRequest;
|
|
351
403
|
type index_d_InvoiceCreatedResponse = InvoiceCreatedResponse;
|
|
352
404
|
type index_d_InvoiceLineItem = InvoiceLineItem;
|
|
353
|
-
type index_d_ListChargesEnvelope = ListChargesEnvelope;
|
|
354
405
|
type index_d_ListChargesRequest = ListChargesRequest;
|
|
355
406
|
type index_d_ListChargesResponse = ListChargesResponse;
|
|
356
407
|
type index_d_SpiBaseUri = SpiBaseUri;
|
|
408
|
+
type index_d__publicProvideHandlersType = _publicProvideHandlersType;
|
|
357
409
|
declare const index_d_provideHandlers: typeof provideHandlers;
|
|
358
410
|
declare namespace index_d {
|
|
359
|
-
export { type index_d_AlternativeUri as AlternativeUri, type
|
|
411
|
+
export { type index_d_AlternativeUri as AlternativeUri, type index_d_ChargeLimitUpdatedRequest as ChargeLimitUpdatedRequest, type index_d_ChargeLimitUpdatedResponse as ChargeLimitUpdatedResponse, type index_d_ChargeLineItem as ChargeLineItem, index_d_ChargesRejectedReason as ChargesRejectedReason, type index_d_ChargesRejectedRequest as ChargesRejectedRequest, type index_d_ChargesRejectedResponse as ChargesRejectedResponse, type index_d_Context as Context, type index_d_CustomChargesConfig as CustomChargesConfig, type index_d_GetChargeLimitRequest as GetChargeLimitRequest, type index_d_GetChargeLimitResponse as GetChargeLimitResponse, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_IdentityType as IdentityType, index_d_Intent as Intent, type index_d_InvoiceCreatedRequest as InvoiceCreatedRequest, type index_d_InvoiceCreatedResponse as InvoiceCreatedResponse, type index_d_InvoiceLineItem as InvoiceLineItem, type index_d_ListChargesRequest as ListChargesRequest, type index_d_ListChargesResponse as ListChargesResponse, type index_d_SpiBaseUri as SpiBaseUri, type index_d__publicProvideHandlersType as _publicProvideHandlersType, index_d_provideHandlers as provideHandlers, provideHandlers$1 as publicProvideHandlers };
|
|
360
412
|
}
|
|
361
413
|
|
|
362
414
|
export { index_d as customCharges };
|