@wix/auto_sdk_app-management_app-instances 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/meta.d.ts +245 -1
- package/build/cjs/meta.js +57 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/meta.d.mts +245 -1
- package/build/es/meta.mjs +51 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/meta.d.ts +245 -1
- package/build/internal/cjs/meta.js +57 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/meta.d.mts +245 -1
- package/build/internal/es/meta.mjs +51 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/meta.d.ts
CHANGED
|
@@ -137,6 +137,171 @@ interface AvailablePlan {
|
|
|
137
137
|
/** Source of the available plan. Can be a bundle or 3rd-party app. */
|
|
138
138
|
source?: string;
|
|
139
139
|
}
|
|
140
|
+
interface AppInstalled {
|
|
141
|
+
/**
|
|
142
|
+
* Unique identifier of the app within the website.
|
|
143
|
+
* @format GUID
|
|
144
|
+
*/
|
|
145
|
+
appId?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Instance ID of the app in the original website (relevant only when this site was [duplicated from another site](https://support.wix.com/en/article/duplicating-your-site-1472847)).
|
|
148
|
+
* @format GUID
|
|
149
|
+
*/
|
|
150
|
+
originInstanceId?: string | null;
|
|
151
|
+
}
|
|
152
|
+
interface AppRemoved {
|
|
153
|
+
/**
|
|
154
|
+
* Unique identifier of the app within the website.
|
|
155
|
+
* @format GUID
|
|
156
|
+
*/
|
|
157
|
+
appId?: string;
|
|
158
|
+
}
|
|
159
|
+
interface PaidPlanPurchased {
|
|
160
|
+
/** Date and time of purchase. */
|
|
161
|
+
operationTimeStamp?: Date | null;
|
|
162
|
+
/**
|
|
163
|
+
* Purchased app plan.
|
|
164
|
+
* @maxLength 100
|
|
165
|
+
*/
|
|
166
|
+
vendorProductId?: string;
|
|
167
|
+
/** Selected payment cycle. */
|
|
168
|
+
cycle?: PaymentCycleWithLiterals;
|
|
169
|
+
/** Plan expiration date. */
|
|
170
|
+
expiresOn?: Date | null;
|
|
171
|
+
/**
|
|
172
|
+
* Coupon applied to purchase (if relevant).
|
|
173
|
+
* @maxLength 150
|
|
174
|
+
*/
|
|
175
|
+
couponName?: string | null;
|
|
176
|
+
/**
|
|
177
|
+
* Invoice ID.
|
|
178
|
+
* @maxLength 50
|
|
179
|
+
*/
|
|
180
|
+
invoiceId?: string | null;
|
|
181
|
+
}
|
|
182
|
+
interface PaidPlanChanged {
|
|
183
|
+
/** Date and time of change. */
|
|
184
|
+
operationTimeStamp?: Date | null;
|
|
185
|
+
/**
|
|
186
|
+
* Newly purchased app plan.
|
|
187
|
+
* @maxLength 100
|
|
188
|
+
*/
|
|
189
|
+
vendorProductId?: string;
|
|
190
|
+
/** Newly selected payment cycle. */
|
|
191
|
+
cycle?: PaymentCycleWithLiterals;
|
|
192
|
+
/**
|
|
193
|
+
* Previous app plan.
|
|
194
|
+
* @maxLength 100
|
|
195
|
+
*/
|
|
196
|
+
previousVendorProductId?: string | null;
|
|
197
|
+
/** Previous payment cycle. */
|
|
198
|
+
previousCycle?: PaymentCycleWithLiterals;
|
|
199
|
+
/**
|
|
200
|
+
* Coupon applied to purchase (if relevant).
|
|
201
|
+
* @maxLength 150
|
|
202
|
+
*/
|
|
203
|
+
couponName?: string | null;
|
|
204
|
+
/**
|
|
205
|
+
* Invoice ID.
|
|
206
|
+
* @maxLength 50
|
|
207
|
+
*/
|
|
208
|
+
invoiceId?: string | null;
|
|
209
|
+
}
|
|
210
|
+
interface PaidPlanAutoRenewalCancelled {
|
|
211
|
+
/** Date and time of auto-renewal cancellation. */
|
|
212
|
+
operationTimeStamp?: Date | null;
|
|
213
|
+
/**
|
|
214
|
+
* Current app plan.
|
|
215
|
+
* @maxLength 100
|
|
216
|
+
*/
|
|
217
|
+
vendorProductId?: string;
|
|
218
|
+
/** Current payment cycle. */
|
|
219
|
+
cycle?: PaymentCycleWithLiterals;
|
|
220
|
+
/**
|
|
221
|
+
* Supported values: `UNKNOWN_CANCELLATION_TYPE_ERROR_STATE`, `USER_CANCEL`, `FAILED_PAYMENT`, `TRANSFER_CANCELLATION_REASON`. Reason provided by app for cancellation (if relevant).
|
|
222
|
+
* @maxLength 100
|
|
223
|
+
*/
|
|
224
|
+
cancelReason?: string | null;
|
|
225
|
+
/**
|
|
226
|
+
* Reason provided by site owner for cancellation (if relevant).
|
|
227
|
+
* @maxLength 150
|
|
228
|
+
*/
|
|
229
|
+
userReason?: string | null;
|
|
230
|
+
/**
|
|
231
|
+
* Cancellation type.
|
|
232
|
+
* @maxLength 100
|
|
233
|
+
*/
|
|
234
|
+
subscriptionCancellationType?: string | null;
|
|
235
|
+
/** Whether the cancellation occurred during a free trial. */
|
|
236
|
+
cancelledDuringFreeTrial?: FreeTrialPeriodWithLiterals;
|
|
237
|
+
}
|
|
238
|
+
declare enum FreeTrialPeriod {
|
|
239
|
+
/** Free trial status unknown. */
|
|
240
|
+
FREE_TRIAL_PERIOD_UNKNOWN = "FREE_TRIAL_PERIOD_UNKNOWN",
|
|
241
|
+
/** During a free trial period. */
|
|
242
|
+
DURING_FREE_TRIAL = "DURING_FREE_TRIAL",
|
|
243
|
+
/** Not during a free trial period. */
|
|
244
|
+
NOT_DURING_FREE_TRIAL = "NOT_DURING_FREE_TRIAL"
|
|
245
|
+
}
|
|
246
|
+
/** @enumType */
|
|
247
|
+
type FreeTrialPeriodWithLiterals = FreeTrialPeriod | 'FREE_TRIAL_PERIOD_UNKNOWN' | 'DURING_FREE_TRIAL' | 'NOT_DURING_FREE_TRIAL';
|
|
248
|
+
interface PlanTransferred {
|
|
249
|
+
/** Date and time of transfer. */
|
|
250
|
+
operationTimeStamp?: Date | null;
|
|
251
|
+
/**
|
|
252
|
+
* Current app plan.
|
|
253
|
+
* @maxLength 100
|
|
254
|
+
*/
|
|
255
|
+
vendorProductId?: string;
|
|
256
|
+
/** Selected payment cycle. */
|
|
257
|
+
cycle?: PaymentCycleWithLiterals;
|
|
258
|
+
/**
|
|
259
|
+
* Invoice ID.
|
|
260
|
+
* @maxLength 50
|
|
261
|
+
*/
|
|
262
|
+
invoiceId?: string | null;
|
|
263
|
+
}
|
|
264
|
+
interface PlanReactivated {
|
|
265
|
+
/** Date and time of reactivation. */
|
|
266
|
+
operationTimeStamp?: Date | null;
|
|
267
|
+
/**
|
|
268
|
+
* Current app plan.
|
|
269
|
+
* @maxLength 100
|
|
270
|
+
*/
|
|
271
|
+
vendorProductId?: string;
|
|
272
|
+
/** Selected payment cycle. */
|
|
273
|
+
cycle?: PaymentCycleWithLiterals;
|
|
274
|
+
/** Plan expiration date. */
|
|
275
|
+
expiresOn?: Date | null;
|
|
276
|
+
/**
|
|
277
|
+
* Invoice ID.
|
|
278
|
+
* @maxLength 50
|
|
279
|
+
*/
|
|
280
|
+
invoiceId?: string | null;
|
|
281
|
+
/** Reason for reactivation. */
|
|
282
|
+
reason?: ReactivationReasonWithLiterals;
|
|
283
|
+
}
|
|
284
|
+
declare enum ReactivationReason {
|
|
285
|
+
/** Reactivation reason unknown. */
|
|
286
|
+
REACTIVATION_REASON_UNKNOWN = "REACTIVATION_REASON_UNKNOWN",
|
|
287
|
+
/** The subscription's auto-renewal is turned on. */
|
|
288
|
+
AUTO_RENEW_TURNED_ON = "AUTO_RENEW_TURNED_ON"
|
|
289
|
+
}
|
|
290
|
+
/** @enumType */
|
|
291
|
+
type ReactivationReasonWithLiterals = ReactivationReason | 'REACTIVATION_REASON_UNKNOWN' | 'AUTO_RENEW_TURNED_ON';
|
|
292
|
+
interface PlanConvertedToPaid {
|
|
293
|
+
/** Date and time of conversion to paid subscription (free-trial ended). */
|
|
294
|
+
operationTimeStamp?: Date | null;
|
|
295
|
+
/**
|
|
296
|
+
* Current app plan.
|
|
297
|
+
* @maxLength 100
|
|
298
|
+
*/
|
|
299
|
+
vendorProductId?: string;
|
|
300
|
+
/** Selected payment cycle. */
|
|
301
|
+
cycle?: PaymentCycleWithLiterals;
|
|
302
|
+
/** Plan expiration date. */
|
|
303
|
+
expiresOn?: Date | null;
|
|
304
|
+
}
|
|
140
305
|
interface GetAppInstanceRequest {
|
|
141
306
|
}
|
|
142
307
|
interface GetAppInstanceResponse {
|
|
@@ -228,6 +393,85 @@ interface OwnerInfo {
|
|
|
228
393
|
*/
|
|
229
394
|
emailStatus?: string;
|
|
230
395
|
}
|
|
396
|
+
interface GetAppInstanceByInstanceIdRequest {
|
|
397
|
+
/**
|
|
398
|
+
* ID of the app instance to retrieve.
|
|
399
|
+
* @format GUID
|
|
400
|
+
*/
|
|
401
|
+
instanceId?: string;
|
|
402
|
+
}
|
|
403
|
+
interface MessageEnvelope {
|
|
404
|
+
/**
|
|
405
|
+
* App instance ID.
|
|
406
|
+
* @format GUID
|
|
407
|
+
*/
|
|
408
|
+
instanceId?: string | null;
|
|
409
|
+
/**
|
|
410
|
+
* Event type.
|
|
411
|
+
* @maxLength 150
|
|
412
|
+
*/
|
|
413
|
+
eventType?: string;
|
|
414
|
+
/** The identification type and identity data. */
|
|
415
|
+
identity?: IdentificationData;
|
|
416
|
+
/** Stringify payload. */
|
|
417
|
+
data?: string;
|
|
418
|
+
}
|
|
419
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
420
|
+
/**
|
|
421
|
+
* ID of a site visitor that has not logged in to the site.
|
|
422
|
+
* @format GUID
|
|
423
|
+
*/
|
|
424
|
+
anonymousVisitorId?: string;
|
|
425
|
+
/**
|
|
426
|
+
* ID of a site visitor that has logged in to the site.
|
|
427
|
+
* @format GUID
|
|
428
|
+
*/
|
|
429
|
+
memberId?: string;
|
|
430
|
+
/**
|
|
431
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
432
|
+
* @format GUID
|
|
433
|
+
*/
|
|
434
|
+
wixUserId?: string;
|
|
435
|
+
/**
|
|
436
|
+
* ID of an app.
|
|
437
|
+
* @format GUID
|
|
438
|
+
*/
|
|
439
|
+
appId?: string;
|
|
440
|
+
/** @readonly */
|
|
441
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
442
|
+
}
|
|
443
|
+
/** @oneof */
|
|
444
|
+
interface IdentificationDataIdOneOf {
|
|
445
|
+
/**
|
|
446
|
+
* ID of a site visitor that has not logged in to the site.
|
|
447
|
+
* @format GUID
|
|
448
|
+
*/
|
|
449
|
+
anonymousVisitorId?: string;
|
|
450
|
+
/**
|
|
451
|
+
* ID of a site visitor that has logged in to the site.
|
|
452
|
+
* @format GUID
|
|
453
|
+
*/
|
|
454
|
+
memberId?: string;
|
|
455
|
+
/**
|
|
456
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
457
|
+
* @format GUID
|
|
458
|
+
*/
|
|
459
|
+
wixUserId?: string;
|
|
460
|
+
/**
|
|
461
|
+
* ID of an app.
|
|
462
|
+
* @format GUID
|
|
463
|
+
*/
|
|
464
|
+
appId?: string;
|
|
465
|
+
}
|
|
466
|
+
declare enum WebhookIdentityType {
|
|
467
|
+
UNKNOWN = "UNKNOWN",
|
|
468
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
469
|
+
MEMBER = "MEMBER",
|
|
470
|
+
WIX_USER = "WIX_USER",
|
|
471
|
+
APP = "APP"
|
|
472
|
+
}
|
|
473
|
+
/** @enumType */
|
|
474
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
231
475
|
|
|
232
476
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
233
477
|
getUrl: (context: any) => string;
|
|
@@ -241,4 +485,4 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
241
485
|
};
|
|
242
486
|
declare function getAppInstance(): __PublicMethodMetaInfo<'GET', {}, GetAppInstanceRequest$1, GetAppInstanceRequest, GetAppInstanceResponse$1, GetAppInstanceResponse>;
|
|
243
487
|
|
|
244
|
-
export { type __PublicMethodMetaInfo, getAppInstance };
|
|
488
|
+
export { type AppInstalled as AppInstalledOriginal, type AppInstance as AppInstanceOriginal, type AppRemoved as AppRemovedOriginal, type AvailablePlan as AvailablePlanOriginal, type BillingInfo as BillingInfoOriginal, type FreeTrialInfo as FreeTrialInfoOriginal, FreeTrialPeriod as FreeTrialPeriodOriginal, type FreeTrialPeriodWithLiterals as FreeTrialPeriodWithLiteralsOriginal, FreeTrialStatus as FreeTrialStatusOriginal, type FreeTrialStatusWithLiterals as FreeTrialStatusWithLiteralsOriginal, type GetAppInstanceByInstanceIdRequest as GetAppInstanceByInstanceIdRequestOriginal, type GetAppInstanceRequest as GetAppInstanceRequestOriginal, type GetAppInstanceResponse as GetAppInstanceResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Locale as LocaleOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Multilingual as MultilingualOriginal, type OwnerInfo as OwnerInfoOriginal, type PaidPlanAutoRenewalCancelled as PaidPlanAutoRenewalCancelledOriginal, type PaidPlanChanged as PaidPlanChangedOriginal, type PaidPlanPurchased as PaidPlanPurchasedOriginal, PaymentCycle as PaymentCycleOriginal, type PaymentCycleWithLiterals as PaymentCycleWithLiteralsOriginal, type PlanConvertedToPaid as PlanConvertedToPaidOriginal, type PlanReactivated as PlanReactivatedOriginal, type PlanTransferred as PlanTransferredOriginal, ReactivationReason as ReactivationReasonOriginal, type ReactivationReasonWithLiterals as ReactivationReasonWithLiteralsOriginal, ResolutionMethod as ResolutionMethodOriginal, type ResolutionMethodWithLiterals as ResolutionMethodWithLiteralsOriginal, type SiteInfo as SiteInfoOriginal, type SupportedLanguage as SupportedLanguageOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, getAppInstance };
|
package/build/cjs/meta.js
CHANGED
|
@@ -20,6 +20,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// meta.ts
|
|
21
21
|
var meta_exports = {};
|
|
22
22
|
__export(meta_exports, {
|
|
23
|
+
FreeTrialPeriodOriginal: () => FreeTrialPeriod,
|
|
24
|
+
FreeTrialStatusOriginal: () => FreeTrialStatus,
|
|
25
|
+
PaymentCycleOriginal: () => PaymentCycle,
|
|
26
|
+
ReactivationReasonOriginal: () => ReactivationReason,
|
|
27
|
+
ResolutionMethodOriginal: () => ResolutionMethod,
|
|
28
|
+
WebhookIdentityTypeOriginal: () => WebhookIdentityType,
|
|
23
29
|
getAppInstance: () => getAppInstance2
|
|
24
30
|
});
|
|
25
31
|
module.exports = __toCommonJS(meta_exports);
|
|
@@ -137,6 +143,51 @@ function getAppInstance(payload) {
|
|
|
137
143
|
return __getAppInstance;
|
|
138
144
|
}
|
|
139
145
|
|
|
146
|
+
// src/devcenter-app-instance-v1-app-instance-app-instances.types.ts
|
|
147
|
+
var PaymentCycle = /* @__PURE__ */ ((PaymentCycle2) => {
|
|
148
|
+
PaymentCycle2["NO_CYCLE"] = "NO_CYCLE";
|
|
149
|
+
PaymentCycle2["MONTHLY"] = "MONTHLY";
|
|
150
|
+
PaymentCycle2["YEARLY"] = "YEARLY";
|
|
151
|
+
PaymentCycle2["ONE_TIME"] = "ONE_TIME";
|
|
152
|
+
PaymentCycle2["TWO_YEARS"] = "TWO_YEARS";
|
|
153
|
+
PaymentCycle2["THREE_YEARS"] = "THREE_YEARS";
|
|
154
|
+
PaymentCycle2["FOUR_YEARS"] = "FOUR_YEARS";
|
|
155
|
+
PaymentCycle2["FIVE_YEARS"] = "FIVE_YEARS";
|
|
156
|
+
return PaymentCycle2;
|
|
157
|
+
})(PaymentCycle || {});
|
|
158
|
+
var FreeTrialStatus = /* @__PURE__ */ ((FreeTrialStatus2) => {
|
|
159
|
+
FreeTrialStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
160
|
+
FreeTrialStatus2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
161
|
+
FreeTrialStatus2["ENDED"] = "ENDED";
|
|
162
|
+
FreeTrialStatus2["NOT_AVAILABLE"] = "NOT_AVAILABLE";
|
|
163
|
+
return FreeTrialStatus2;
|
|
164
|
+
})(FreeTrialStatus || {});
|
|
165
|
+
var FreeTrialPeriod = /* @__PURE__ */ ((FreeTrialPeriod2) => {
|
|
166
|
+
FreeTrialPeriod2["FREE_TRIAL_PERIOD_UNKNOWN"] = "FREE_TRIAL_PERIOD_UNKNOWN";
|
|
167
|
+
FreeTrialPeriod2["DURING_FREE_TRIAL"] = "DURING_FREE_TRIAL";
|
|
168
|
+
FreeTrialPeriod2["NOT_DURING_FREE_TRIAL"] = "NOT_DURING_FREE_TRIAL";
|
|
169
|
+
return FreeTrialPeriod2;
|
|
170
|
+
})(FreeTrialPeriod || {});
|
|
171
|
+
var ReactivationReason = /* @__PURE__ */ ((ReactivationReason2) => {
|
|
172
|
+
ReactivationReason2["REACTIVATION_REASON_UNKNOWN"] = "REACTIVATION_REASON_UNKNOWN";
|
|
173
|
+
ReactivationReason2["AUTO_RENEW_TURNED_ON"] = "AUTO_RENEW_TURNED_ON";
|
|
174
|
+
return ReactivationReason2;
|
|
175
|
+
})(ReactivationReason || {});
|
|
176
|
+
var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
177
|
+
ResolutionMethod2["QUERY_PARAM"] = "QUERY_PARAM";
|
|
178
|
+
ResolutionMethod2["SUBDOMAIN"] = "SUBDOMAIN";
|
|
179
|
+
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
180
|
+
return ResolutionMethod2;
|
|
181
|
+
})(ResolutionMethod || {});
|
|
182
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
183
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
184
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
185
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
186
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
187
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
188
|
+
return WebhookIdentityType2;
|
|
189
|
+
})(WebhookIdentityType || {});
|
|
190
|
+
|
|
140
191
|
// src/devcenter-app-instance-v1-app-instance-app-instances.meta.ts
|
|
141
192
|
function getAppInstance2() {
|
|
142
193
|
const payload = {};
|
|
@@ -158,6 +209,12 @@ function getAppInstance2() {
|
|
|
158
209
|
}
|
|
159
210
|
// Annotate the CommonJS export names for ESM import in node:
|
|
160
211
|
0 && (module.exports = {
|
|
212
|
+
FreeTrialPeriodOriginal,
|
|
213
|
+
FreeTrialStatusOriginal,
|
|
214
|
+
PaymentCycleOriginal,
|
|
215
|
+
ReactivationReasonOriginal,
|
|
216
|
+
ResolutionMethodOriginal,
|
|
217
|
+
WebhookIdentityTypeOriginal,
|
|
161
218
|
getAppInstance
|
|
162
219
|
});
|
|
163
220
|
//# sourceMappingURL=meta.js.map
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../src/devcenter-app-instance-v1-app-instance-app-instances.http.ts","../../src/devcenter-app-instance-v1-app-instance-app-instances.meta.ts"],"sourcesContent":["export * from './src/devcenter-app-instance-v1-app-instance-app-instances.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressMarketAimApiAppInstanceServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/app-instance-manager-webapp',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/apps',\n destPath: '',\n },\n ],\n 'wixapis.com': [\n {\n srcPath: '/apps',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n {\n srcPath: '/api/v1/instance',\n destPath: '/v1/instance',\n },\n {\n srcPath: '/api/v1/scripts',\n destPath: '/v1/scripts',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/devcenter/app-instance/v1/instance',\n destPath: '/v1/instance',\n },\n ],\n _: [\n {\n srcPath: '/devcenter/app-instance/v1/instance',\n destPath: '/v1/instance',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_app-management_app-instances';\n\n/**\n * Retrieves data about the instance of your app that's installed on a Wix\n * 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,\n * or to check which apps made by Wix are installed on the site.\n *\n * 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).\n *\n * To retrieve `site.ownerInfo` in the response, you must\n * have the __READ SITE OWNER EMAIL__ permission scope in addition to\n * __MANAGE YOUR APP__.\n */\nexport function getAppInstance(payload: object): RequestOptionsFactory<any> {\n function __getAppInstance({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.devcenter.app_instance.v1.app_instance',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.market.aim.api.AppInstanceService.GetAppInstance',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMarketAimApiAppInstanceServiceUrl({\n protoPath: '/v1/instance',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'instance.billing.freeTrialInfo.endDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getAppInstance;\n}\n","import * as ambassadorWixDevcenterAppInstanceV1AppInstance from './devcenter-app-instance-v1-app-instance-app-instances.http.js';\nimport * as ambassadorWixDevcenterAppInstanceV1AppInstanceTypes from './devcenter-app-instance-v1-app-instance-app-instances.types.js';\nimport * as ambassadorWixDevcenterAppInstanceV1AppInstanceUniversalTypes from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getAppInstance(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixDevcenterAppInstanceV1AppInstanceUniversalTypes.GetAppInstanceRequest,\n ambassadorWixDevcenterAppInstanceV1AppInstanceTypes.GetAppInstanceRequest,\n ambassadorWixDevcenterAppInstanceV1AppInstanceUniversalTypes.GetAppInstanceResponse,\n ambassadorWixDevcenterAppInstanceV1AppInstanceTypes.GetAppInstanceResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixDevcenterAppInstanceV1AppInstance.getAppInstance(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/instance',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAAA;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,oDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,eAAe;AAAA,MACb;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UA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
+
{"version":3,"sources":["../../meta.ts","../../src/devcenter-app-instance-v1-app-instance-app-instances.http.ts","../../src/devcenter-app-instance-v1-app-instance-app-instances.types.ts","../../src/devcenter-app-instance-v1-app-instance-app-instances.meta.ts"],"sourcesContent":["export * from './src/devcenter-app-instance-v1-app-instance-app-instances.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressMarketAimApiAppInstanceServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/app-instance-manager-webapp',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/apps',\n destPath: '',\n },\n ],\n 'wixapis.com': [\n {\n srcPath: '/apps',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n {\n srcPath: '/api/v1/instance',\n destPath: '/v1/instance',\n },\n {\n srcPath: '/api/v1/scripts',\n destPath: '/v1/scripts',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/devcenter/app-instance/v1/instance',\n destPath: '/v1/instance',\n },\n ],\n _: [\n {\n srcPath: '/devcenter/app-instance/v1/instance',\n destPath: '/v1/instance',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_app-management_app-instances';\n\n/**\n * Retrieves data about the instance of your app that's installed on a Wix\n * 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,\n * or to check which apps made by Wix are installed on the site.\n *\n * 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).\n *\n * To retrieve `site.ownerInfo` in the response, you must\n * have the __READ SITE OWNER EMAIL__ permission scope in addition to\n * __MANAGE YOUR APP__.\n */\nexport function getAppInstance(payload: object): RequestOptionsFactory<any> {\n function __getAppInstance({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.devcenter.app_instance.v1.app_instance',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.market.aim.api.AppInstanceService.GetAppInstance',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMarketAimApiAppInstanceServiceUrl({\n protoPath: '/v1/instance',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'instance.billing.freeTrialInfo.endDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getAppInstance;\n}\n","/**\n * An app instance is a specific occurrence of an app on a Wix site.\n * When a Wix user installs an app, a unique instance is generated for that\n * specific site. Use the `instanceId` to keep track of the individual data\n * associated with each app instance.\n */\nexport interface AppInstance {\n /**\n * App instance ID. Useful to keep track of the\n * data that's associated with the specific instance of your app\n * installed on a Wix site.\n */\n instanceId?: string;\n /** App name, as you entered it in the App Dashboard. */\n appName?: string;\n /** Version of your app that's installed on the Wix site. */\n appVersion?: string | null;\n /**\n * Whether the Wix user has installed a free or paid version of your app\n * on their site.\n */\n isFree?: boolean;\n /**\n * Billing information for the app instance. Available only in case\n * `{\"isFree\": false}`.\n */\n billing?: BillingInfo;\n /**\n * List of [permissions](https://dev.wix.com/docs/build-apps/developer-tools/developers-center/example-app-walkthrough/build-an-app#4-add-permissions)\n * that the Wix user has granted your app. You set the list of permissions that\n * your app requires from the Wix user in your app's Permissions page.\n */\n permissions?: string[];\n /** Plans available to this app instance. */\n availablePlans?: AvailablePlan[];\n /**\n * ID of the Wix site from which the instance of your app has been cloned.\n * Available only when `{\"copiedFromTemplate\": true}`.\n * All visual settings of the Wix site and app data are duplicated during the\n * cloning process. Wix also notifies you in case there is any additional\n * external functionality for the original site.\n */\n originInstanceId?: string | null;\n /**\n * __Deprecated__. This parameter will be removed on March 30, 2023. Use\n * `copiedFromTemplate` instead.\n * @deprecated\n */\n isOriginSiteTemplate?: boolean;\n /** Whether this app instance was created when another Wix site was cloned. */\n copiedFromTemplate?: boolean;\n /** Whether this app instance includes a free trial that hasn't started yet. */\n freeTrialAvailable?: boolean;\n}\n\nexport interface BillingInfo {\n /** Name of the package that the site owner has paid for. */\n packageName?: string;\n /**\n * Interval of the billing cycle. `ONE_TIME` indicates that the Wix user has\n * made a single upfront payment without any automatic subscription renewal.\n * This is primarily for usage credits (for example, 5 SMS) but may occasionally apply\n * to a one-time setup for the app.\n */\n billingCycle?: PaymentCycleWithLiterals;\n /**\n * Date and time the Wix user purchased the app's paid plan or began their free trial. In\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n */\n timeStamp?: string;\n /**\n * Date and time the app's current billing cycle ends in\n * `YYYY-MM-DDThh:mm:ss.sssZ` format. Available only for yearly and\n * multi-yearly plans.\n */\n expirationDate?: string | null;\n /**\n * Whether the app's subscription automatically renews at the end of the\n * current billing cycle.\n */\n autoRenewing?: boolean | null;\n /** ID of the invoice for the current billing cycle. */\n invoiceId?: string | null;\n /**\n * Information about any discounts applied to the app instance's current billing cycle.\n * If the site owners applied a developer coupon or Wix Voucher\n * when installing the paid version of your app, this field holds the coupon's\n * name or `“Wix discount coupon”`. Site owners may receive a Wix Voucher when\n * upgrading their Wix subscription. If there is no discount for the\n * current billing cycle, the field is an empty string.\n */\n source?: string | null;\n /** Information about the free trial applied, if relevant. */\n freeTrialInfo?: FreeTrialInfo;\n}\n\nexport enum PaymentCycle {\n NO_CYCLE = 'NO_CYCLE',\n MONTHLY = 'MONTHLY',\n YEARLY = 'YEARLY',\n ONE_TIME = 'ONE_TIME',\n TWO_YEARS = 'TWO_YEARS',\n THREE_YEARS = 'THREE_YEARS',\n FOUR_YEARS = 'FOUR_YEARS',\n FIVE_YEARS = 'FIVE_YEARS',\n}\n\n/** @enumType */\nexport type PaymentCycleWithLiterals =\n | PaymentCycle\n | 'NO_CYCLE'\n | 'MONTHLY'\n | 'YEARLY'\n | 'ONE_TIME'\n | 'TWO_YEARS'\n | 'THREE_YEARS'\n | 'FOUR_YEARS'\n | 'FIVE_YEARS';\n\nexport interface FreeTrialInfo {\n /**\n * Current free trial status.\n * @readonly\n */\n status?: FreeTrialStatusWithLiterals;\n /**\n * When the free trial has ended. Populated only once the free trial is over.\n * @readonly\n */\n endDate?: Date | null;\n}\n\nexport enum FreeTrialStatus {\n /** Unknown trial status. */\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n /** The free trial is currently in progress. */\n IN_PROGRESS = 'IN_PROGRESS',\n /** The free trial has ended. */\n ENDED = 'ENDED',\n /** No free trial was applied, as none was available. */\n NOT_AVAILABLE = 'NOT_AVAILABLE',\n}\n\n/** @enumType */\nexport type FreeTrialStatusWithLiterals =\n | FreeTrialStatus\n | 'UNKNOWN_STATUS'\n | 'IN_PROGRESS'\n | 'ENDED'\n | 'NOT_AVAILABLE';\n\nexport interface AvailablePlan {\n /** Package name of the available plan. */\n packageName?: string;\n /** Source of the available plan. Can be a bundle or 3rd-party app. */\n source?: string;\n}\n\nexport interface AppInstalled {\n /**\n * Unique identifier of the app within the website.\n * @format GUID\n */\n appId?: string;\n /**\n * Instance ID of the app in the original website (relevant only when this site was [duplicated from another site](https://support.wix.com/en/article/duplicating-your-site-1472847)).\n * @format GUID\n */\n originInstanceId?: string | null;\n}\n\nexport interface AppRemoved {\n /**\n * Unique identifier of the app within the website.\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface PaidPlanPurchased {\n /** Date and time of purchase. */\n operationTimeStamp?: Date | null;\n /**\n * Purchased app plan.\n * @maxLength 100\n */\n vendorProductId?: string;\n /** Selected payment cycle. */\n cycle?: PaymentCycleWithLiterals;\n /** Plan expiration date. */\n expiresOn?: Date | null;\n /**\n * Coupon applied to purchase (if relevant).\n * @maxLength 150\n */\n couponName?: string | null;\n /**\n * Invoice ID.\n * @maxLength 50\n */\n invoiceId?: string | null;\n}\n\nexport interface PaidPlanChanged {\n /** Date and time of change. */\n operationTimeStamp?: Date | null;\n /**\n * Newly purchased app plan.\n * @maxLength 100\n */\n vendorProductId?: string;\n /** Newly selected payment cycle. */\n cycle?: PaymentCycleWithLiterals;\n /**\n * Previous app plan.\n * @maxLength 100\n */\n previousVendorProductId?: string | null;\n /** Previous payment cycle. */\n previousCycle?: PaymentCycleWithLiterals;\n /**\n * Coupon applied to purchase (if relevant).\n * @maxLength 150\n */\n couponName?: string | null;\n /**\n * Invoice ID.\n * @maxLength 50\n */\n invoiceId?: string | null;\n}\n\nexport interface PaidPlanAutoRenewalCancelled {\n /** Date and time of auto-renewal cancellation. */\n operationTimeStamp?: Date | null;\n /**\n * Current app plan.\n * @maxLength 100\n */\n vendorProductId?: string;\n /** Current payment cycle. */\n cycle?: PaymentCycleWithLiterals;\n /**\n * Supported values: `UNKNOWN_CANCELLATION_TYPE_ERROR_STATE`, `USER_CANCEL`, `FAILED_PAYMENT`, `TRANSFER_CANCELLATION_REASON`. Reason provided by app for cancellation (if relevant).\n * @maxLength 100\n */\n cancelReason?: string | null;\n /**\n * Reason provided by site owner for cancellation (if relevant).\n * @maxLength 150\n */\n userReason?: string | null;\n /**\n * Cancellation type.\n * @maxLength 100\n */\n subscriptionCancellationType?: string | null;\n /** Whether the cancellation occurred during a free trial. */\n cancelledDuringFreeTrial?: FreeTrialPeriodWithLiterals;\n}\n\nexport enum FreeTrialPeriod {\n /** Free trial status unknown. */\n FREE_TRIAL_PERIOD_UNKNOWN = 'FREE_TRIAL_PERIOD_UNKNOWN',\n /** During a free trial period. */\n DURING_FREE_TRIAL = 'DURING_FREE_TRIAL',\n /** Not during a free trial period. */\n NOT_DURING_FREE_TRIAL = 'NOT_DURING_FREE_TRIAL',\n}\n\n/** @enumType */\nexport type FreeTrialPeriodWithLiterals =\n | FreeTrialPeriod\n | 'FREE_TRIAL_PERIOD_UNKNOWN'\n | 'DURING_FREE_TRIAL'\n | 'NOT_DURING_FREE_TRIAL';\n\nexport interface PlanTransferred {\n /** Date and time of transfer. */\n operationTimeStamp?: Date | null;\n /**\n * Current app plan.\n * @maxLength 100\n */\n vendorProductId?: string;\n /** Selected payment cycle. */\n cycle?: PaymentCycleWithLiterals;\n /**\n * Invoice ID.\n * @maxLength 50\n */\n invoiceId?: string | null;\n}\n\nexport interface PlanReactivated {\n /** Date and time of reactivation. */\n operationTimeStamp?: Date | null;\n /**\n * Current app plan.\n * @maxLength 100\n */\n vendorProductId?: string;\n /** Selected payment cycle. */\n cycle?: PaymentCycleWithLiterals;\n /** Plan expiration date. */\n expiresOn?: Date | null;\n /**\n * Invoice ID.\n * @maxLength 50\n */\n invoiceId?: string | null;\n /** Reason for reactivation. */\n reason?: ReactivationReasonWithLiterals;\n}\n\nexport enum ReactivationReason {\n /** Reactivation reason unknown. */\n REACTIVATION_REASON_UNKNOWN = 'REACTIVATION_REASON_UNKNOWN',\n /** The subscription's auto-renewal is turned on. */\n AUTO_RENEW_TURNED_ON = 'AUTO_RENEW_TURNED_ON',\n}\n\n/** @enumType */\nexport type ReactivationReasonWithLiterals =\n | ReactivationReason\n | 'REACTIVATION_REASON_UNKNOWN'\n | 'AUTO_RENEW_TURNED_ON';\n\nexport interface PlanConvertedToPaid {\n /** Date and time of conversion to paid subscription (free-trial ended). */\n operationTimeStamp?: Date | null;\n /**\n * Current app plan.\n * @maxLength 100\n */\n vendorProductId?: string;\n /** Selected payment cycle. */\n cycle?: PaymentCycleWithLiterals;\n /** Plan expiration date. */\n expiresOn?: Date | null;\n}\n\nexport interface GetAppInstanceRequest {}\n\nexport interface GetAppInstanceResponse {\n /** Retrieved app instance. */\n instance?: AppInstance;\n /** Information about the site. */\n site?: SiteInfo;\n}\n\nexport interface SiteInfo {\n /** Display name of the site. */\n siteDisplayName?: string | null;\n /**\n * 2-letter language code of the site's locale in\n * [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\n */\n locale?: string;\n /**\n * 3-letter currency code for the site's billing in\n * [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n */\n paymentCurrency?: string;\n /** Information about the site's supported languages. */\n multilingual?: Multilingual;\n /** URL of the site. Available only when the site has been published. */\n url?: string | null;\n /** Description of the site. */\n description?: string | null;\n /** Apps made by Wix that are installed on the site. */\n installedWixApps?: string[];\n /**\n * > **Deprecation Notice:** This parameter will be removed on June 30, 2022. Use `ownerInfo` instead.\n * @format EMAIL\n * @deprecated\n */\n ownerEmail?: string | null;\n /**\n * Information about the site's Wix user. Available only when calling\n * _Get App Instance_ with the __Read Site Owner Email__ permission scope.\n */\n ownerInfo?: OwnerInfo;\n /** Site ID. */\n siteId?: string;\n}\n\nexport interface Multilingual {\n /** Whether the site supports more than a single language. */\n isMultiLingual?: boolean;\n /** List of supported languages. Returned only when `{\"isMultiLingual\": true}`. */\n supportedLanguages?: SupportedLanguage[];\n}\n\nexport interface SupportedLanguage {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Locale. */\n locale?: Locale;\n /** Whether the supported language is the primary language for the site. */\n isPrimary?: boolean;\n /** Language icon. */\n countryCode?: string;\n /** How the language will be resolved. For internal use. */\n resolutionMethod?: ResolutionMethodWithLiterals;\n /** Whether the supported language is the primary language for site visitors. */\n isVisitorPrimary?: boolean | null;\n}\n\nexport interface Locale {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */\n country?: string;\n}\n\nexport enum ResolutionMethod {\n QUERY_PARAM = 'QUERY_PARAM',\n SUBDOMAIN = 'SUBDOMAIN',\n SUBDIRECTORY = 'SUBDIRECTORY',\n}\n\n/** @enumType */\nexport type ResolutionMethodWithLiterals =\n | ResolutionMethod\n | 'QUERY_PARAM'\n | 'SUBDOMAIN'\n | 'SUBDIRECTORY';\n\nexport interface OwnerInfo {\n /**\n * Wix user's email address. Identical to the their login email.\n * @format EMAIL\n */\n email?: string;\n /**\n * Supported values: `VERIFIED_OPT_IN`, `VERIFIED_OPT_OUT`,\n * `NOT_VERIFIED_OPT_IN`, `NOT_VERIFIED_OPT_OUT`.\n *\n * Whether the Wix user has verified their email and whether they have chosen\n * to receive email notifications from Wix.\n */\n emailStatus?: string;\n}\n\nexport interface GetAppInstanceByInstanceIdRequest {\n /**\n * ID of the app instance to retrieve.\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n","import * as ambassadorWixDevcenterAppInstanceV1AppInstance from './devcenter-app-instance-v1-app-instance-app-instances.http.js';\nimport * as ambassadorWixDevcenterAppInstanceV1AppInstanceTypes from './devcenter-app-instance-v1-app-instance-app-instances.types.js';\nimport * as ambassadorWixDevcenterAppInstanceV1AppInstanceUniversalTypes from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getAppInstance(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixDevcenterAppInstanceV1AppInstanceUniversalTypes.GetAppInstanceRequest,\n ambassadorWixDevcenterAppInstanceV1AppInstanceTypes.GetAppInstanceRequest,\n ambassadorWixDevcenterAppInstanceV1AppInstanceUniversalTypes.GetAppInstanceResponse,\n ambassadorWixDevcenterAppInstanceV1AppInstanceTypes.GetAppInstanceResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixDevcenterAppInstanceV1AppInstance.getAppInstance(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/instance',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n AppInstance as AppInstanceOriginal,\n BillingInfo as BillingInfoOriginal,\n PaymentCycle as PaymentCycleOriginal,\n PaymentCycleWithLiterals as PaymentCycleWithLiteralsOriginal,\n FreeTrialInfo as FreeTrialInfoOriginal,\n FreeTrialStatus as FreeTrialStatusOriginal,\n FreeTrialStatusWithLiterals as FreeTrialStatusWithLiteralsOriginal,\n AvailablePlan as AvailablePlanOriginal,\n AppInstalled as AppInstalledOriginal,\n AppRemoved as AppRemovedOriginal,\n PaidPlanPurchased as PaidPlanPurchasedOriginal,\n PaidPlanChanged as PaidPlanChangedOriginal,\n PaidPlanAutoRenewalCancelled as PaidPlanAutoRenewalCancelledOriginal,\n FreeTrialPeriod as FreeTrialPeriodOriginal,\n FreeTrialPeriodWithLiterals as FreeTrialPeriodWithLiteralsOriginal,\n PlanTransferred as PlanTransferredOriginal,\n PlanReactivated as PlanReactivatedOriginal,\n ReactivationReason as ReactivationReasonOriginal,\n ReactivationReasonWithLiterals as ReactivationReasonWithLiteralsOriginal,\n PlanConvertedToPaid as PlanConvertedToPaidOriginal,\n GetAppInstanceRequest as GetAppInstanceRequestOriginal,\n GetAppInstanceResponse as GetAppInstanceResponseOriginal,\n SiteInfo as SiteInfoOriginal,\n Multilingual as MultilingualOriginal,\n SupportedLanguage as SupportedLanguageOriginal,\n Locale as LocaleOriginal,\n ResolutionMethod as ResolutionMethodOriginal,\n ResolutionMethodWithLiterals as ResolutionMethodWithLiteralsOriginal,\n OwnerInfo as OwnerInfoOriginal,\n GetAppInstanceByInstanceIdRequest as GetAppInstanceByInstanceIdRequestOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n} from './devcenter-app-instance-v1-app-instance-app-instances.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAAA;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,oDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,eAAe;AAAA,MACb;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,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activationReason","ResolutionMethod","WebhookIdentityType","getAppInstance"]}
|