@wix/auto_sdk_app-management_app-instances 1.0.19 → 1.0.21
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/{src/devcenter-app-instance-v1-app-instance-app-instances.types.d.ts → devcenter-app-instance-v1-app-instance-app-instances.universal-Bfi1qsvM.d.ts} +83 -35
- package/build/cjs/index.d.ts +65 -1
- package/build/cjs/index.js +343 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +243 -1
- package/build/cjs/meta.js +145 -15
- package/build/cjs/meta.js.map +1 -1
- package/build/{internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.d.ts → es/devcenter-app-instance-v1-app-instance-app-instances.universal-Bfi1qsvM.d.mts} +83 -35
- package/build/es/index.d.mts +65 -0
- package/build/es/index.mjs +308 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/meta.d.mts +243 -0
- package/build/es/meta.mjs +121 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/{es/src/devcenter-app-instance-v1-app-instance-app-instances.types.d.ts → internal/cjs/devcenter-app-instance-v1-app-instance-app-instances.universal-Bfi1qsvM.d.ts} +83 -35
- package/build/internal/cjs/index.d.ts +65 -1
- package/build/internal/cjs/index.js +343 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +243 -1
- package/build/internal/cjs/meta.js +145 -15
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{src/devcenter-app-instance-v1-app-instance-app-instances.types.d.ts → devcenter-app-instance-v1-app-instance-app-instances.universal-Bfi1qsvM.d.mts} +83 -35
- package/build/internal/es/index.d.mts +65 -0
- package/build/internal/es/index.mjs +308 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +243 -0
- package/build/internal/es/meta.mjs +121 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +9 -8
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.d.ts +0 -48
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.js +0 -57
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.js.map +0 -1
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.http.d.ts +0 -13
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.http.js +0 -112
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.http.js.map +0 -1
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.meta.d.ts +0 -13
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js +0 -47
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js.map +0 -1
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.d.ts +0 -29
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.js +0 -70
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.js.map +0 -1
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.js +0 -56
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.js.map +0 -1
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +0 -651
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js +0 -123
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.d.ts +0 -48
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.js +0 -48
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.js.map +0 -1
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.http.d.ts +0 -13
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.http.js +0 -108
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.http.js.map +0 -1
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.meta.d.ts +0 -13
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js +0 -20
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js.map +0 -1
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.d.ts +0 -29
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.js +0 -60
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.js.map +0 -1
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.types.js +0 -53
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.types.js.map +0 -1
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +0 -651
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js +0 -96
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.d.ts +0 -48
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.js +0 -57
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.js.map +0 -1
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.http.d.ts +0 -13
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.http.js +0 -112
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.http.js.map +0 -1
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.meta.d.ts +0 -13
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js +0 -47
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js.map +0 -1
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.d.ts +0 -29
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.js +0 -70
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.js.map +0 -1
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.js +0 -56
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.js.map +0 -1
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +0 -651
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js +0 -123
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.d.ts +0 -48
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.js +0 -48
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.js.map +0 -1
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.http.d.ts +0 -13
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.http.js +0 -108
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.http.js.map +0 -1
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.meta.d.ts +0 -13
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js +0 -20
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js.map +0 -1
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.d.ts +0 -29
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.js +0 -60
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.js.map +0 -1
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.types.js +0 -53
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.types.js.map +0 -1
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +0 -651
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js +0 -96
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +0 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* specific site. Use the `instanceId` to keep track of the individual data
|
|
5
5
|
* associated with each app instance.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
interface AppInstance {
|
|
8
8
|
/**
|
|
9
9
|
* App instance ID. Useful to keep track of the
|
|
10
10
|
* data that's associated with the specific instance of your app
|
|
@@ -52,7 +52,7 @@ export interface AppInstance {
|
|
|
52
52
|
/** Whether this app instance includes a free trial that hasn't started yet. */
|
|
53
53
|
freeTrialAvailable?: boolean;
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
interface BillingInfo {
|
|
56
56
|
/** Name of the package that the site owner has paid for. */
|
|
57
57
|
packageName?: string;
|
|
58
58
|
/**
|
|
@@ -92,7 +92,7 @@ export interface BillingInfo {
|
|
|
92
92
|
/** Information about the free trial applied, if relevant. */
|
|
93
93
|
freeTrialInfo?: FreeTrialInfo;
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
declare enum PaymentCycle {
|
|
96
96
|
NO_CYCLE = "NO_CYCLE",
|
|
97
97
|
MONTHLY = "MONTHLY",
|
|
98
98
|
YEARLY = "YEARLY",
|
|
@@ -103,8 +103,8 @@ export declare enum PaymentCycle {
|
|
|
103
103
|
FIVE_YEARS = "FIVE_YEARS"
|
|
104
104
|
}
|
|
105
105
|
/** @enumType */
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
type PaymentCycleWithLiterals = PaymentCycle | 'NO_CYCLE' | 'MONTHLY' | 'YEARLY' | 'ONE_TIME' | 'TWO_YEARS' | 'THREE_YEARS' | 'FOUR_YEARS' | 'FIVE_YEARS';
|
|
107
|
+
interface FreeTrialInfo {
|
|
108
108
|
/**
|
|
109
109
|
* Current free trial status.
|
|
110
110
|
* @readonly
|
|
@@ -116,7 +116,7 @@ export interface FreeTrialInfo {
|
|
|
116
116
|
*/
|
|
117
117
|
endDate?: Date | null;
|
|
118
118
|
}
|
|
119
|
-
|
|
119
|
+
declare enum FreeTrialStatus {
|
|
120
120
|
/** Unknown trial status. */
|
|
121
121
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
122
122
|
/** The free trial is currently in progress. */
|
|
@@ -127,14 +127,14 @@ export declare enum FreeTrialStatus {
|
|
|
127
127
|
NOT_AVAILABLE = "NOT_AVAILABLE"
|
|
128
128
|
}
|
|
129
129
|
/** @enumType */
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
type FreeTrialStatusWithLiterals = FreeTrialStatus | 'UNKNOWN_STATUS' | 'IN_PROGRESS' | 'ENDED' | 'NOT_AVAILABLE';
|
|
131
|
+
interface AvailablePlan {
|
|
132
132
|
/** Package name of the available plan. */
|
|
133
133
|
packageName?: string;
|
|
134
134
|
/** Source of the available plan. Can be a bundle or 3rd-party app. */
|
|
135
135
|
source?: string;
|
|
136
136
|
}
|
|
137
|
-
|
|
137
|
+
interface AppInstalled {
|
|
138
138
|
/**
|
|
139
139
|
* Unique identifier of the app within the website.
|
|
140
140
|
* @format GUID
|
|
@@ -146,14 +146,14 @@ export interface AppInstalled {
|
|
|
146
146
|
*/
|
|
147
147
|
originInstanceId?: string | null;
|
|
148
148
|
}
|
|
149
|
-
|
|
149
|
+
interface AppRemoved {
|
|
150
150
|
/**
|
|
151
151
|
* Unique identifier of the app within the website.
|
|
152
152
|
* @format GUID
|
|
153
153
|
*/
|
|
154
154
|
appId?: string;
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
interface PaidPlanPurchased {
|
|
157
157
|
/** Date and time of purchase. */
|
|
158
158
|
operationTimeStamp?: Date | null;
|
|
159
159
|
/**
|
|
@@ -176,7 +176,7 @@ export interface PaidPlanPurchased {
|
|
|
176
176
|
*/
|
|
177
177
|
invoiceId?: string | null;
|
|
178
178
|
}
|
|
179
|
-
|
|
179
|
+
interface PaidPlanChanged {
|
|
180
180
|
/** Date and time of change. */
|
|
181
181
|
operationTimeStamp?: Date | null;
|
|
182
182
|
/**
|
|
@@ -204,7 +204,7 @@ export interface PaidPlanChanged {
|
|
|
204
204
|
*/
|
|
205
205
|
invoiceId?: string | null;
|
|
206
206
|
}
|
|
207
|
-
|
|
207
|
+
interface PaidPlanAutoRenewalCancelled {
|
|
208
208
|
/** Date and time of auto-renewal cancellation. */
|
|
209
209
|
operationTimeStamp?: Date | null;
|
|
210
210
|
/**
|
|
@@ -232,7 +232,7 @@ export interface PaidPlanAutoRenewalCancelled {
|
|
|
232
232
|
/** Whether the cancellation occurred during a free trial. */
|
|
233
233
|
cancelledDuringFreeTrial?: FreeTrialPeriodWithLiterals;
|
|
234
234
|
}
|
|
235
|
-
|
|
235
|
+
declare enum FreeTrialPeriod {
|
|
236
236
|
/** Free trial status unknown. */
|
|
237
237
|
FREE_TRIAL_PERIOD_UNKNOWN = "FREE_TRIAL_PERIOD_UNKNOWN",
|
|
238
238
|
/** During a free trial period. */
|
|
@@ -241,8 +241,8 @@ export declare enum FreeTrialPeriod {
|
|
|
241
241
|
NOT_DURING_FREE_TRIAL = "NOT_DURING_FREE_TRIAL"
|
|
242
242
|
}
|
|
243
243
|
/** @enumType */
|
|
244
|
-
|
|
245
|
-
|
|
244
|
+
type FreeTrialPeriodWithLiterals = FreeTrialPeriod | 'FREE_TRIAL_PERIOD_UNKNOWN' | 'DURING_FREE_TRIAL' | 'NOT_DURING_FREE_TRIAL';
|
|
245
|
+
interface PlanTransferred {
|
|
246
246
|
/** Date and time of transfer. */
|
|
247
247
|
operationTimeStamp?: Date | null;
|
|
248
248
|
/**
|
|
@@ -258,7 +258,7 @@ export interface PlanTransferred {
|
|
|
258
258
|
*/
|
|
259
259
|
invoiceId?: string | null;
|
|
260
260
|
}
|
|
261
|
-
|
|
261
|
+
interface PlanReactivated {
|
|
262
262
|
/** Date and time of reactivation. */
|
|
263
263
|
operationTimeStamp?: Date | null;
|
|
264
264
|
/**
|
|
@@ -278,15 +278,15 @@ export interface PlanReactivated {
|
|
|
278
278
|
/** Reason for reactivation. */
|
|
279
279
|
reason?: ReactivationReasonWithLiterals;
|
|
280
280
|
}
|
|
281
|
-
|
|
281
|
+
declare enum ReactivationReason {
|
|
282
282
|
/** Reactivation reason unknown. */
|
|
283
283
|
REACTIVATION_REASON_UNKNOWN = "REACTIVATION_REASON_UNKNOWN",
|
|
284
284
|
/** The subscription's auto-renewal is turned on. */
|
|
285
285
|
AUTO_RENEW_TURNED_ON = "AUTO_RENEW_TURNED_ON"
|
|
286
286
|
}
|
|
287
287
|
/** @enumType */
|
|
288
|
-
|
|
289
|
-
|
|
288
|
+
type ReactivationReasonWithLiterals = ReactivationReason | 'REACTIVATION_REASON_UNKNOWN' | 'AUTO_RENEW_TURNED_ON';
|
|
289
|
+
interface PlanConvertedToPaid {
|
|
290
290
|
/** Date and time of conversion to paid subscription (free-trial ended). */
|
|
291
291
|
operationTimeStamp?: Date | null;
|
|
292
292
|
/**
|
|
@@ -299,15 +299,15 @@ export interface PlanConvertedToPaid {
|
|
|
299
299
|
/** Plan expiration date. */
|
|
300
300
|
expiresOn?: Date | null;
|
|
301
301
|
}
|
|
302
|
-
|
|
302
|
+
interface GetAppInstanceRequest {
|
|
303
303
|
}
|
|
304
|
-
|
|
304
|
+
interface GetAppInstanceResponse {
|
|
305
305
|
/** Retrieved app instance. */
|
|
306
306
|
instance?: AppInstance;
|
|
307
307
|
/** Information about the site. */
|
|
308
308
|
site?: SiteInfo;
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
interface SiteInfo {
|
|
311
311
|
/** Display name of the site. */
|
|
312
312
|
siteDisplayName?: string | null;
|
|
313
313
|
/**
|
|
@@ -342,13 +342,13 @@ export interface SiteInfo {
|
|
|
342
342
|
/** Site ID. */
|
|
343
343
|
siteId?: string;
|
|
344
344
|
}
|
|
345
|
-
|
|
345
|
+
interface Multilingual {
|
|
346
346
|
/** Whether the site supports more than a single language. */
|
|
347
347
|
isMultiLingual?: boolean;
|
|
348
348
|
/** List of supported languages. Returned only when `{"isMultiLingual": true}`. */
|
|
349
349
|
supportedLanguages?: SupportedLanguage[];
|
|
350
350
|
}
|
|
351
|
-
|
|
351
|
+
interface SupportedLanguage {
|
|
352
352
|
/** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
|
|
353
353
|
languageCode?: string;
|
|
354
354
|
/** Locale. */
|
|
@@ -362,20 +362,20 @@ export interface SupportedLanguage {
|
|
|
362
362
|
/** Whether the supported language is the primary language for site visitors. */
|
|
363
363
|
isVisitorPrimary?: boolean | null;
|
|
364
364
|
}
|
|
365
|
-
|
|
365
|
+
interface Locale {
|
|
366
366
|
/** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
|
|
367
367
|
languageCode?: string;
|
|
368
368
|
/** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */
|
|
369
369
|
country?: string;
|
|
370
370
|
}
|
|
371
|
-
|
|
371
|
+
declare enum ResolutionMethod {
|
|
372
372
|
QUERY_PARAM = "QUERY_PARAM",
|
|
373
373
|
SUBDOMAIN = "SUBDOMAIN",
|
|
374
374
|
SUBDIRECTORY = "SUBDIRECTORY"
|
|
375
375
|
}
|
|
376
376
|
/** @enumType */
|
|
377
|
-
|
|
378
|
-
|
|
377
|
+
type ResolutionMethodWithLiterals = ResolutionMethod | 'QUERY_PARAM' | 'SUBDOMAIN' | 'SUBDIRECTORY';
|
|
378
|
+
interface OwnerInfo {
|
|
379
379
|
/**
|
|
380
380
|
* Wix user's email address. Identical to the their login email.
|
|
381
381
|
* @format EMAIL
|
|
@@ -390,14 +390,14 @@ export interface OwnerInfo {
|
|
|
390
390
|
*/
|
|
391
391
|
emailStatus?: string;
|
|
392
392
|
}
|
|
393
|
-
|
|
393
|
+
interface GetAppInstanceByInstanceIdRequest {
|
|
394
394
|
/**
|
|
395
395
|
* ID of the app instance to retrieve.
|
|
396
396
|
* @format GUID
|
|
397
397
|
*/
|
|
398
398
|
instanceId?: string;
|
|
399
399
|
}
|
|
400
|
-
|
|
400
|
+
interface MessageEnvelope {
|
|
401
401
|
/**
|
|
402
402
|
* App instance ID.
|
|
403
403
|
* @format GUID
|
|
@@ -413,7 +413,7 @@ export interface MessageEnvelope {
|
|
|
413
413
|
/** Stringify payload. */
|
|
414
414
|
data?: string;
|
|
415
415
|
}
|
|
416
|
-
|
|
416
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
417
417
|
/**
|
|
418
418
|
* ID of a site visitor that has not logged in to the site.
|
|
419
419
|
* @format GUID
|
|
@@ -438,7 +438,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
438
438
|
identityType?: WebhookIdentityTypeWithLiterals;
|
|
439
439
|
}
|
|
440
440
|
/** @oneof */
|
|
441
|
-
|
|
441
|
+
interface IdentificationDataIdOneOf {
|
|
442
442
|
/**
|
|
443
443
|
* ID of a site visitor that has not logged in to the site.
|
|
444
444
|
* @format GUID
|
|
@@ -460,7 +460,7 @@ export interface IdentificationDataIdOneOf {
|
|
|
460
460
|
*/
|
|
461
461
|
appId?: string;
|
|
462
462
|
}
|
|
463
|
-
|
|
463
|
+
declare enum WebhookIdentityType {
|
|
464
464
|
UNKNOWN = "UNKNOWN",
|
|
465
465
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
466
466
|
MEMBER = "MEMBER",
|
|
@@ -468,4 +468,52 @@ export declare enum WebhookIdentityType {
|
|
|
468
468
|
APP = "APP"
|
|
469
469
|
}
|
|
470
470
|
/** @enumType */
|
|
471
|
-
|
|
471
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
472
|
+
interface BaseEventMetadata {
|
|
473
|
+
/**
|
|
474
|
+
* App instance ID.
|
|
475
|
+
* @format GUID
|
|
476
|
+
*/
|
|
477
|
+
instanceId?: string | null;
|
|
478
|
+
/**
|
|
479
|
+
* Event type.
|
|
480
|
+
* @maxLength 150
|
|
481
|
+
*/
|
|
482
|
+
eventType?: string;
|
|
483
|
+
/** The identification type and identity data. */
|
|
484
|
+
identity?: IdentificationData;
|
|
485
|
+
}
|
|
486
|
+
interface AppInstanceInstalledEnvelope {
|
|
487
|
+
data: AppInstalled;
|
|
488
|
+
metadata: BaseEventMetadata;
|
|
489
|
+
}
|
|
490
|
+
interface AppInstanceRemovedEnvelope {
|
|
491
|
+
data: AppRemoved;
|
|
492
|
+
metadata: BaseEventMetadata;
|
|
493
|
+
}
|
|
494
|
+
interface AppInstancePaidPlanAutoRenewalCancelledEnvelope {
|
|
495
|
+
data: PaidPlanAutoRenewalCancelled;
|
|
496
|
+
metadata: BaseEventMetadata;
|
|
497
|
+
}
|
|
498
|
+
interface AppInstancePaidPlanChangedEnvelope {
|
|
499
|
+
data: PaidPlanChanged;
|
|
500
|
+
metadata: BaseEventMetadata;
|
|
501
|
+
}
|
|
502
|
+
interface AppInstancePaidPlanPurchasedEnvelope {
|
|
503
|
+
data: PaidPlanPurchased;
|
|
504
|
+
metadata: BaseEventMetadata;
|
|
505
|
+
}
|
|
506
|
+
interface AppInstancePlanConvertedToPaidEnvelope {
|
|
507
|
+
data: PlanConvertedToPaid;
|
|
508
|
+
metadata: BaseEventMetadata;
|
|
509
|
+
}
|
|
510
|
+
interface AppInstancePlanReactivatedEnvelope {
|
|
511
|
+
data: PlanReactivated;
|
|
512
|
+
metadata: BaseEventMetadata;
|
|
513
|
+
}
|
|
514
|
+
interface AppInstancePlanTransferredEnvelope {
|
|
515
|
+
data: PlanTransferred;
|
|
516
|
+
metadata: BaseEventMetadata;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
export { type AppInstanceInstalledEnvelope as A, type BillingInfo as B, FreeTrialStatus as F, type GetAppInstanceResponse as G, type IdentificationData as I, type Locale as L, type Multilingual as M, type OwnerInfo as O, PaymentCycle as P, ReactivationReason as R, type SiteInfo as S, WebhookIdentityType as W, type AppInstanceRemovedEnvelope as a, type AppInstancePaidPlanAutoRenewalCancelledEnvelope as b, type AppInstancePaidPlanChangedEnvelope as c, type AppInstancePaidPlanPurchasedEnvelope as d, type AppInstancePlanConvertedToPaidEnvelope as e, type AppInstancePlanReactivatedEnvelope as f, type AppInstancePlanTransferredEnvelope as g, FreeTrialPeriod as h, ResolutionMethod as i, type AppInstance as j, type FreeTrialInfo as k, type AvailablePlan as l, type AppInstalled as m, type AppRemoved as n, type PaidPlanPurchased as o, type PaidPlanChanged as p, type PaidPlanAutoRenewalCancelled as q, type PlanTransferred as r, type PlanReactivated as s, type PlanConvertedToPaid as t, type GetAppInstanceRequest as u, type SupportedLanguage as v, type GetAppInstanceByInstanceIdRequest as w, type MessageEnvelope as x, type IdentificationDataIdOneOf as y, type BaseEventMetadata as z };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { G as GetAppInstanceResponse, A as AppInstanceInstalledEnvelope, a as AppInstanceRemovedEnvelope, b as AppInstancePaidPlanAutoRenewalCancelledEnvelope, c as AppInstancePaidPlanChangedEnvelope, d as AppInstancePaidPlanPurchasedEnvelope, e as AppInstancePlanConvertedToPaidEnvelope, f as AppInstancePlanReactivatedEnvelope, g as AppInstancePlanTransferredEnvelope } from './devcenter-app-instance-v1-app-instance-app-instances.universal-Bfi1qsvM.mjs';
|
|
3
|
+
export { m as AppInstalled, j as AppInstance, n as AppRemoved, l as AvailablePlan, z as BaseEventMetadata, B as BillingInfo, k as FreeTrialInfo, h as FreeTrialPeriod, F as FreeTrialStatus, w as GetAppInstanceByInstanceIdRequest, u as GetAppInstanceRequest, I as IdentificationData, y as IdentificationDataIdOneOf, L as Locale, x as MessageEnvelope, M as Multilingual, O as OwnerInfo, q as PaidPlanAutoRenewalCancelled, p as PaidPlanChanged, o as PaidPlanPurchased, P as PaymentCycle, t as PlanConvertedToPaid, s as PlanReactivated, r as PlanTransferred, R as ReactivationReason, i as ResolutionMethod, S as SiteInfo, v as SupportedLanguage, W as WebhookIdentityType } from './devcenter-app-instance-v1-app-instance-app-instances.universal-Bfi1qsvM.mjs';
|
|
4
|
+
|
|
5
|
+
declare function getAppInstance$1(httpClient: HttpClient): GetAppInstanceSignature;
|
|
6
|
+
interface GetAppInstanceSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves data about the instance of your app that's installed on a Wix
|
|
9
|
+
* site and data about the site itself. For example, to check whether the Wix user has installed a free or paid version of your app,
|
|
10
|
+
* or to check which apps made by Wix are installed on the site.
|
|
11
|
+
*
|
|
12
|
+
* You must authenticate this method [as a Wix app](https://dev.wix.com/docs/build-apps/develop-your-app/access/authentication/authenticate-using-oauth#step-2--make-an-authenticated-api-request).
|
|
13
|
+
*
|
|
14
|
+
* To retrieve `site.ownerInfo` in the response, you must
|
|
15
|
+
* have the __READ SITE OWNER EMAIL__ permission scope in addition to
|
|
16
|
+
* __MANAGE YOUR APP__.
|
|
17
|
+
*/
|
|
18
|
+
(): Promise<GetAppInstanceResponse>;
|
|
19
|
+
}
|
|
20
|
+
declare const onAppInstanceInstalled$1: EventDefinition<AppInstanceInstalledEnvelope, "AppInstalled">;
|
|
21
|
+
declare const onAppInstanceRemoved$1: EventDefinition<AppInstanceRemovedEnvelope, "AppRemoved">;
|
|
22
|
+
declare const onAppInstancePaidPlanAutoRenewalCancelled$1: EventDefinition<AppInstancePaidPlanAutoRenewalCancelledEnvelope, "PaidPlanAutoRenewalCancelled">;
|
|
23
|
+
declare const onAppInstancePaidPlanChanged$1: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
|
|
24
|
+
declare const onAppInstancePaidPlanPurchased$1: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
|
|
25
|
+
declare const onAppInstancePlanConvertedToPaid$1: EventDefinition<AppInstancePlanConvertedToPaidEnvelope, "PlanConvertedToPaid">;
|
|
26
|
+
declare const onAppInstancePlanReactivated$1: EventDefinition<AppInstancePlanReactivatedEnvelope, "PlanReactivated">;
|
|
27
|
+
declare const onAppInstancePlanTransferred$1: EventDefinition<AppInstancePlanTransferredEnvelope, "PlanTransferred">;
|
|
28
|
+
|
|
29
|
+
declare const getAppInstance: MaybeContext<BuildRESTFunction<typeof getAppInstance$1> & typeof getAppInstance$1>;
|
|
30
|
+
/**
|
|
31
|
+
* Triggered when an instance of your app is installed on a Wix site.
|
|
32
|
+
*/
|
|
33
|
+
declare const onAppInstanceInstalled: BuildEventDefinition<typeof onAppInstanceInstalled$1>;
|
|
34
|
+
/**
|
|
35
|
+
* Triggered when an instance of your app is uninstalled from a Wix site.
|
|
36
|
+
*/
|
|
37
|
+
declare const onAppInstanceRemoved: BuildEventDefinition<typeof onAppInstanceRemoved$1>;
|
|
38
|
+
/**
|
|
39
|
+
* Triggered when a Wix user either cancels a paid plan for your app, or cancels the plan's auto-renewal. The
|
|
40
|
+
* Wix user can continue to use your app until the end of the current billing
|
|
41
|
+
* cycle.
|
|
42
|
+
*/
|
|
43
|
+
declare const onAppInstancePaidPlanAutoRenewalCancelled: BuildEventDefinition<typeof onAppInstancePaidPlanAutoRenewalCancelled$1>;
|
|
44
|
+
/**
|
|
45
|
+
* Triggered when a Wix user upgrades or downgrades their plan for your app.
|
|
46
|
+
*/
|
|
47
|
+
declare const onAppInstancePaidPlanChanged: BuildEventDefinition<typeof onAppInstancePaidPlanChanged$1>;
|
|
48
|
+
/**
|
|
49
|
+
* Triggered when a Wix user purchases a paid plan for your app.
|
|
50
|
+
*/
|
|
51
|
+
declare const onAppInstancePaidPlanPurchased: BuildEventDefinition<typeof onAppInstancePaidPlanPurchased$1>;
|
|
52
|
+
/**
|
|
53
|
+
* Triggered when a Wix user reaches the end of a free-trial period and is charged successfully.
|
|
54
|
+
*/
|
|
55
|
+
declare const onAppInstancePlanConvertedToPaid: BuildEventDefinition<typeof onAppInstancePlanConvertedToPaid$1>;
|
|
56
|
+
/**
|
|
57
|
+
* Triggered when auto-renewal is turned on for a paid plan.
|
|
58
|
+
*/
|
|
59
|
+
declare const onAppInstancePlanReactivated: BuildEventDefinition<typeof onAppInstancePlanReactivated$1>;
|
|
60
|
+
/**
|
|
61
|
+
* Triggered when a paid plan for your app is transferred to a different Wix account.
|
|
62
|
+
*/
|
|
63
|
+
declare const onAppInstancePlanTransferred: BuildEventDefinition<typeof onAppInstancePlanTransferred$1>;
|
|
64
|
+
|
|
65
|
+
export { AppInstanceInstalledEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstancePlanConvertedToPaidEnvelope, AppInstancePlanReactivatedEnvelope, AppInstancePlanTransferredEnvelope, AppInstanceRemovedEnvelope, GetAppInstanceResponse, getAppInstance, onAppInstanceInstalled, onAppInstancePaidPlanAutoRenewalCancelled, onAppInstancePaidPlanChanged, onAppInstancePaidPlanPurchased, onAppInstancePlanConvertedToPaid, onAppInstancePlanReactivated, onAppInstancePlanTransferred, onAppInstanceRemoved };
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
// src/devcenter-app-instance-v1-app-instance-app-instances.public.ts
|
|
2
|
+
import { renameKeysFromRESTResponseToSDKResponse as renameKeysFromRESTResponseToSDKResponse2 } from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
3
|
+
import { transformRESTTimestampToSDKTimestamp as transformRESTTimestampToSDKTimestamp2 } from "@wix/sdk-runtime/transformations/timestamp";
|
|
4
|
+
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
5
|
+
import { EventDefinition } from "@wix/sdk-types";
|
|
6
|
+
|
|
7
|
+
// src/devcenter-app-instance-v1-app-instance-app-instances.universal.ts
|
|
8
|
+
import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
|
|
9
|
+
import {
|
|
10
|
+
renameKeysFromSDKRequestToRESTRequest,
|
|
11
|
+
renameKeysFromRESTResponseToSDKResponse
|
|
12
|
+
} from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
13
|
+
|
|
14
|
+
// src/devcenter-app-instance-v1-app-instance-app-instances.http.ts
|
|
15
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
16
|
+
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
17
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
18
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
19
|
+
function resolveComWixpressMarketAimApiAppInstanceServiceUrl(opts) {
|
|
20
|
+
const domainToMappings = {
|
|
21
|
+
"api._api_base_domain_": [
|
|
22
|
+
{
|
|
23
|
+
srcPath: "/app-instance-manager-webapp",
|
|
24
|
+
destPath: ""
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"www.wixapis.com": [
|
|
28
|
+
{
|
|
29
|
+
srcPath: "/apps",
|
|
30
|
+
destPath: ""
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"wixapis.com": [
|
|
34
|
+
{
|
|
35
|
+
srcPath: "/apps",
|
|
36
|
+
destPath: ""
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"dev._base_domain_": [
|
|
40
|
+
{
|
|
41
|
+
srcPath: "/_api/app-instance-manager",
|
|
42
|
+
destPath: ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
srcPath: "/api/v1/instance",
|
|
46
|
+
destPath: "/v1/instance"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
srcPath: "/api/v1/scripts",
|
|
50
|
+
destPath: "/v1/scripts"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"manage._base_domain_": [
|
|
54
|
+
{
|
|
55
|
+
srcPath: "/_api/app-instance-manager",
|
|
56
|
+
destPath: ""
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"www._base_domain_": [
|
|
60
|
+
{
|
|
61
|
+
srcPath: "/_api/app-instance-manager",
|
|
62
|
+
destPath: ""
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"editor._base_domain_": [
|
|
66
|
+
{
|
|
67
|
+
srcPath: "/_api/app-instance-manager",
|
|
68
|
+
destPath: ""
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"blocks._base_domain_": [
|
|
72
|
+
{
|
|
73
|
+
srcPath: "/_api/app-instance-manager",
|
|
74
|
+
destPath: ""
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"create.editorx": [
|
|
78
|
+
{
|
|
79
|
+
srcPath: "/_api/app-instance-manager",
|
|
80
|
+
destPath: ""
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
};
|
|
84
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
85
|
+
}
|
|
86
|
+
var PACKAGE_NAME = "@wix/auto_sdk_app-management_app-instances";
|
|
87
|
+
function getAppInstance(payload) {
|
|
88
|
+
function __getAppInstance({ host }) {
|
|
89
|
+
const metadata = {
|
|
90
|
+
entityFqdn: "wix.devcenter.app_instance.v1.app_instance",
|
|
91
|
+
method: "GET",
|
|
92
|
+
methodFqn: "com.wixpress.market.aim.api.AppInstanceService.GetAppInstance",
|
|
93
|
+
packageName: PACKAGE_NAME,
|
|
94
|
+
url: resolveComWixpressMarketAimApiAppInstanceServiceUrl({
|
|
95
|
+
protoPath: "/v1/instance",
|
|
96
|
+
data: payload,
|
|
97
|
+
host
|
|
98
|
+
}),
|
|
99
|
+
params: toURLSearchParams(payload),
|
|
100
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
101
|
+
{
|
|
102
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
103
|
+
paths: [{ path: "instance.billing.freeTrialInfo.endDate" }]
|
|
104
|
+
}
|
|
105
|
+
])
|
|
106
|
+
};
|
|
107
|
+
return metadata;
|
|
108
|
+
}
|
|
109
|
+
return __getAppInstance;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// src/devcenter-app-instance-v1-app-instance-app-instances.universal.ts
|
|
113
|
+
var PaymentCycle = /* @__PURE__ */ ((PaymentCycle2) => {
|
|
114
|
+
PaymentCycle2["NO_CYCLE"] = "NO_CYCLE";
|
|
115
|
+
PaymentCycle2["MONTHLY"] = "MONTHLY";
|
|
116
|
+
PaymentCycle2["YEARLY"] = "YEARLY";
|
|
117
|
+
PaymentCycle2["ONE_TIME"] = "ONE_TIME";
|
|
118
|
+
PaymentCycle2["TWO_YEARS"] = "TWO_YEARS";
|
|
119
|
+
PaymentCycle2["THREE_YEARS"] = "THREE_YEARS";
|
|
120
|
+
PaymentCycle2["FOUR_YEARS"] = "FOUR_YEARS";
|
|
121
|
+
PaymentCycle2["FIVE_YEARS"] = "FIVE_YEARS";
|
|
122
|
+
return PaymentCycle2;
|
|
123
|
+
})(PaymentCycle || {});
|
|
124
|
+
var FreeTrialStatus = /* @__PURE__ */ ((FreeTrialStatus2) => {
|
|
125
|
+
FreeTrialStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
126
|
+
FreeTrialStatus2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
127
|
+
FreeTrialStatus2["ENDED"] = "ENDED";
|
|
128
|
+
FreeTrialStatus2["NOT_AVAILABLE"] = "NOT_AVAILABLE";
|
|
129
|
+
return FreeTrialStatus2;
|
|
130
|
+
})(FreeTrialStatus || {});
|
|
131
|
+
var FreeTrialPeriod = /* @__PURE__ */ ((FreeTrialPeriod2) => {
|
|
132
|
+
FreeTrialPeriod2["FREE_TRIAL_PERIOD_UNKNOWN"] = "FREE_TRIAL_PERIOD_UNKNOWN";
|
|
133
|
+
FreeTrialPeriod2["DURING_FREE_TRIAL"] = "DURING_FREE_TRIAL";
|
|
134
|
+
FreeTrialPeriod2["NOT_DURING_FREE_TRIAL"] = "NOT_DURING_FREE_TRIAL";
|
|
135
|
+
return FreeTrialPeriod2;
|
|
136
|
+
})(FreeTrialPeriod || {});
|
|
137
|
+
var ReactivationReason = /* @__PURE__ */ ((ReactivationReason2) => {
|
|
138
|
+
ReactivationReason2["REACTIVATION_REASON_UNKNOWN"] = "REACTIVATION_REASON_UNKNOWN";
|
|
139
|
+
ReactivationReason2["AUTO_RENEW_TURNED_ON"] = "AUTO_RENEW_TURNED_ON";
|
|
140
|
+
return ReactivationReason2;
|
|
141
|
+
})(ReactivationReason || {});
|
|
142
|
+
var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
143
|
+
ResolutionMethod2["QUERY_PARAM"] = "QUERY_PARAM";
|
|
144
|
+
ResolutionMethod2["SUBDOMAIN"] = "SUBDOMAIN";
|
|
145
|
+
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
146
|
+
return ResolutionMethod2;
|
|
147
|
+
})(ResolutionMethod || {});
|
|
148
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
149
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
150
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
151
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
152
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
153
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
154
|
+
return WebhookIdentityType2;
|
|
155
|
+
})(WebhookIdentityType || {});
|
|
156
|
+
async function getAppInstance2() {
|
|
157
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
158
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
159
|
+
const reqOpts = getAppInstance(payload);
|
|
160
|
+
sideEffects?.onSiteCall?.();
|
|
161
|
+
try {
|
|
162
|
+
const result = await httpClient.request(reqOpts);
|
|
163
|
+
sideEffects?.onSuccess?.(result);
|
|
164
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
165
|
+
} catch (err) {
|
|
166
|
+
const transformedError = sdkTransformError(
|
|
167
|
+
err,
|
|
168
|
+
{
|
|
169
|
+
spreadPathsToArguments: {},
|
|
170
|
+
explicitPathsToArguments: {},
|
|
171
|
+
singleArgumentUnchanged: false
|
|
172
|
+
},
|
|
173
|
+
[]
|
|
174
|
+
);
|
|
175
|
+
sideEffects?.onError?.(err);
|
|
176
|
+
throw transformedError;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// src/devcenter-app-instance-v1-app-instance-app-instances.public.ts
|
|
181
|
+
function getAppInstance3(httpClient) {
|
|
182
|
+
return () => getAppInstance2(
|
|
183
|
+
// @ts-ignore
|
|
184
|
+
{ httpClient }
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
var onAppInstanceInstalled = EventDefinition(
|
|
188
|
+
"AppInstalled",
|
|
189
|
+
false,
|
|
190
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(event)
|
|
191
|
+
)();
|
|
192
|
+
var onAppInstanceRemoved = EventDefinition(
|
|
193
|
+
"AppRemoved",
|
|
194
|
+
false,
|
|
195
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(event)
|
|
196
|
+
)();
|
|
197
|
+
var onAppInstancePaidPlanAutoRenewalCancelled = EventDefinition(
|
|
198
|
+
"PaidPlanAutoRenewalCancelled",
|
|
199
|
+
false,
|
|
200
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
201
|
+
transformPaths2(event, [
|
|
202
|
+
{
|
|
203
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
204
|
+
paths: [{ path: "data.operationTimeStamp" }]
|
|
205
|
+
}
|
|
206
|
+
])
|
|
207
|
+
)
|
|
208
|
+
)();
|
|
209
|
+
var onAppInstancePaidPlanChanged = EventDefinition(
|
|
210
|
+
"PaidPlanChanged",
|
|
211
|
+
false,
|
|
212
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
213
|
+
transformPaths2(event, [
|
|
214
|
+
{
|
|
215
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
216
|
+
paths: [{ path: "data.operationTimeStamp" }]
|
|
217
|
+
}
|
|
218
|
+
])
|
|
219
|
+
)
|
|
220
|
+
)();
|
|
221
|
+
var onAppInstancePaidPlanPurchased = EventDefinition(
|
|
222
|
+
"PaidPlanPurchased",
|
|
223
|
+
false,
|
|
224
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
225
|
+
transformPaths2(event, [
|
|
226
|
+
{
|
|
227
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
228
|
+
paths: [
|
|
229
|
+
{ path: "data.operationTimeStamp" },
|
|
230
|
+
{ path: "data.expiresOn" }
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
])
|
|
234
|
+
)
|
|
235
|
+
)();
|
|
236
|
+
var onAppInstancePlanConvertedToPaid = EventDefinition(
|
|
237
|
+
"PlanConvertedToPaid",
|
|
238
|
+
false,
|
|
239
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
240
|
+
transformPaths2(event, [
|
|
241
|
+
{
|
|
242
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
243
|
+
paths: [
|
|
244
|
+
{ path: "data.operationTimeStamp" },
|
|
245
|
+
{ path: "data.expiresOn" }
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
])
|
|
249
|
+
)
|
|
250
|
+
)();
|
|
251
|
+
var onAppInstancePlanReactivated = EventDefinition(
|
|
252
|
+
"PlanReactivated",
|
|
253
|
+
false,
|
|
254
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
255
|
+
transformPaths2(event, [
|
|
256
|
+
{
|
|
257
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
258
|
+
paths: [
|
|
259
|
+
{ path: "data.operationTimeStamp" },
|
|
260
|
+
{ path: "data.expiresOn" }
|
|
261
|
+
]
|
|
262
|
+
}
|
|
263
|
+
])
|
|
264
|
+
)
|
|
265
|
+
)();
|
|
266
|
+
var onAppInstancePlanTransferred = EventDefinition(
|
|
267
|
+
"PlanTransferred",
|
|
268
|
+
false,
|
|
269
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
270
|
+
transformPaths2(event, [
|
|
271
|
+
{
|
|
272
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
273
|
+
paths: [{ path: "data.operationTimeStamp" }]
|
|
274
|
+
}
|
|
275
|
+
])
|
|
276
|
+
)
|
|
277
|
+
)();
|
|
278
|
+
|
|
279
|
+
// src/devcenter-app-instance-v1-app-instance-app-instances.context.ts
|
|
280
|
+
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
281
|
+
import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
|
|
282
|
+
var getAppInstance4 = /* @__PURE__ */ createRESTModule(getAppInstance3);
|
|
283
|
+
var onAppInstanceInstalled2 = createEventModule(onAppInstanceInstalled);
|
|
284
|
+
var onAppInstanceRemoved2 = createEventModule(onAppInstanceRemoved);
|
|
285
|
+
var onAppInstancePaidPlanAutoRenewalCancelled2 = createEventModule(onAppInstancePaidPlanAutoRenewalCancelled);
|
|
286
|
+
var onAppInstancePaidPlanChanged2 = createEventModule(onAppInstancePaidPlanChanged);
|
|
287
|
+
var onAppInstancePaidPlanPurchased2 = createEventModule(onAppInstancePaidPlanPurchased);
|
|
288
|
+
var onAppInstancePlanConvertedToPaid2 = createEventModule(onAppInstancePlanConvertedToPaid);
|
|
289
|
+
var onAppInstancePlanReactivated2 = createEventModule(onAppInstancePlanReactivated);
|
|
290
|
+
var onAppInstancePlanTransferred2 = createEventModule(onAppInstancePlanTransferred);
|
|
291
|
+
export {
|
|
292
|
+
FreeTrialPeriod,
|
|
293
|
+
FreeTrialStatus,
|
|
294
|
+
PaymentCycle,
|
|
295
|
+
ReactivationReason,
|
|
296
|
+
ResolutionMethod,
|
|
297
|
+
WebhookIdentityType,
|
|
298
|
+
getAppInstance4 as getAppInstance,
|
|
299
|
+
onAppInstanceInstalled2 as onAppInstanceInstalled,
|
|
300
|
+
onAppInstancePaidPlanAutoRenewalCancelled2 as onAppInstancePaidPlanAutoRenewalCancelled,
|
|
301
|
+
onAppInstancePaidPlanChanged2 as onAppInstancePaidPlanChanged,
|
|
302
|
+
onAppInstancePaidPlanPurchased2 as onAppInstancePaidPlanPurchased,
|
|
303
|
+
onAppInstancePlanConvertedToPaid2 as onAppInstancePlanConvertedToPaid,
|
|
304
|
+
onAppInstancePlanReactivated2 as onAppInstancePlanReactivated,
|
|
305
|
+
onAppInstancePlanTransferred2 as onAppInstancePlanTransferred,
|
|
306
|
+
onAppInstanceRemoved2 as onAppInstanceRemoved
|
|
307
|
+
};
|
|
308
|
+
//# sourceMappingURL=index.mjs.map
|