@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
|
@@ -1 +1,243 @@
|
|
|
1
|
-
|
|
1
|
+
import { u as GetAppInstanceRequest$1, G as GetAppInstanceResponse$1 } from './devcenter-app-instance-v1-app-instance-app-instances.universal-Bfi1qsvM.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* An app instance is a specific occurrence of an app on a Wix site.
|
|
5
|
+
* When a Wix user installs an app, a unique instance is generated for that
|
|
6
|
+
* specific site. Use the `instanceId` to keep track of the individual data
|
|
7
|
+
* associated with each app instance.
|
|
8
|
+
*/
|
|
9
|
+
interface AppInstance {
|
|
10
|
+
/**
|
|
11
|
+
* App instance ID. Useful to keep track of the
|
|
12
|
+
* data that's associated with the specific instance of your app
|
|
13
|
+
* installed on a Wix site.
|
|
14
|
+
*/
|
|
15
|
+
instanceId?: string;
|
|
16
|
+
/** App name, as you entered it in the App Dashboard. */
|
|
17
|
+
appName?: string;
|
|
18
|
+
/** Version of your app that's installed on the Wix site. */
|
|
19
|
+
appVersion?: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the Wix user has installed a free or paid version of your app
|
|
22
|
+
* on their site.
|
|
23
|
+
*/
|
|
24
|
+
isFree?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Billing information for the app instance. Available only in case
|
|
27
|
+
* `{"isFree": false}`.
|
|
28
|
+
*/
|
|
29
|
+
billing?: BillingInfo;
|
|
30
|
+
/**
|
|
31
|
+
* List of [permissions](https://dev.wix.com/docs/build-apps/developer-tools/developers-center/example-app-walkthrough/build-an-app#4-add-permissions)
|
|
32
|
+
* that the Wix user has granted your app. You set the list of permissions that
|
|
33
|
+
* your app requires from the Wix user in your app's Permissions page.
|
|
34
|
+
*/
|
|
35
|
+
permissions?: string[];
|
|
36
|
+
/** Plans available to this app instance. */
|
|
37
|
+
availablePlans?: AvailablePlan[];
|
|
38
|
+
/**
|
|
39
|
+
* ID of the Wix site from which the instance of your app has been cloned.
|
|
40
|
+
* Available only when `{"copiedFromTemplate": true}`.
|
|
41
|
+
* All visual settings of the Wix site and app data are duplicated during the
|
|
42
|
+
* cloning process. Wix also notifies you in case there is any additional
|
|
43
|
+
* external functionality for the original site.
|
|
44
|
+
*/
|
|
45
|
+
originInstanceId?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* __Deprecated__. This parameter will be removed on March 30, 2023. Use
|
|
48
|
+
* `copiedFromTemplate` instead.
|
|
49
|
+
* @deprecated
|
|
50
|
+
*/
|
|
51
|
+
isOriginSiteTemplate?: boolean;
|
|
52
|
+
/** Whether this app instance was created when another Wix site was cloned. */
|
|
53
|
+
copiedFromTemplate?: boolean;
|
|
54
|
+
/** Whether this app instance includes a free trial that hasn't started yet. */
|
|
55
|
+
freeTrialAvailable?: boolean;
|
|
56
|
+
}
|
|
57
|
+
interface BillingInfo {
|
|
58
|
+
/** Name of the package that the site owner has paid for. */
|
|
59
|
+
packageName?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Interval of the billing cycle. `ONE_TIME` indicates that the Wix user has
|
|
62
|
+
* made a single upfront payment without any automatic subscription renewal.
|
|
63
|
+
* This is primarily for usage credits (for example, 5 SMS) but may occasionally apply
|
|
64
|
+
* to a one-time setup for the app.
|
|
65
|
+
*/
|
|
66
|
+
billingCycle?: PaymentCycleWithLiterals;
|
|
67
|
+
/**
|
|
68
|
+
* Date and time the Wix user purchased the app's paid plan or began their free trial. In
|
|
69
|
+
* `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
70
|
+
*/
|
|
71
|
+
timeStamp?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Date and time the app's current billing cycle ends in
|
|
74
|
+
* `YYYY-MM-DDThh:mm:ss.sssZ` format. Available only for yearly and
|
|
75
|
+
* multi-yearly plans.
|
|
76
|
+
*/
|
|
77
|
+
expirationDate?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Whether the app's subscription automatically renews at the end of the
|
|
80
|
+
* current billing cycle.
|
|
81
|
+
*/
|
|
82
|
+
autoRenewing?: boolean | null;
|
|
83
|
+
/** ID of the invoice for the current billing cycle. */
|
|
84
|
+
invoiceId?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Information about any discounts applied to the app instance's current billing cycle.
|
|
87
|
+
* If the site owners applied a developer coupon or Wix Voucher
|
|
88
|
+
* when installing the paid version of your app, this field holds the coupon's
|
|
89
|
+
* name or `“Wix discount coupon”`. Site owners may receive a Wix Voucher when
|
|
90
|
+
* upgrading their Wix subscription. If there is no discount for the
|
|
91
|
+
* current billing cycle, the field is an empty string.
|
|
92
|
+
*/
|
|
93
|
+
source?: string | null;
|
|
94
|
+
/** Information about the free trial applied, if relevant. */
|
|
95
|
+
freeTrialInfo?: FreeTrialInfo;
|
|
96
|
+
}
|
|
97
|
+
declare enum PaymentCycle {
|
|
98
|
+
NO_CYCLE = "NO_CYCLE",
|
|
99
|
+
MONTHLY = "MONTHLY",
|
|
100
|
+
YEARLY = "YEARLY",
|
|
101
|
+
ONE_TIME = "ONE_TIME",
|
|
102
|
+
TWO_YEARS = "TWO_YEARS",
|
|
103
|
+
THREE_YEARS = "THREE_YEARS",
|
|
104
|
+
FOUR_YEARS = "FOUR_YEARS",
|
|
105
|
+
FIVE_YEARS = "FIVE_YEARS"
|
|
106
|
+
}
|
|
107
|
+
/** @enumType */
|
|
108
|
+
type PaymentCycleWithLiterals = PaymentCycle | 'NO_CYCLE' | 'MONTHLY' | 'YEARLY' | 'ONE_TIME' | 'TWO_YEARS' | 'THREE_YEARS' | 'FOUR_YEARS' | 'FIVE_YEARS';
|
|
109
|
+
interface FreeTrialInfo {
|
|
110
|
+
/**
|
|
111
|
+
* Current free trial status.
|
|
112
|
+
* @readonly
|
|
113
|
+
*/
|
|
114
|
+
status?: FreeTrialStatusWithLiterals;
|
|
115
|
+
/**
|
|
116
|
+
* When the free trial has ended. Populated only once the free trial is over.
|
|
117
|
+
* @readonly
|
|
118
|
+
*/
|
|
119
|
+
endDate?: Date | null;
|
|
120
|
+
}
|
|
121
|
+
declare enum FreeTrialStatus {
|
|
122
|
+
/** Unknown trial status. */
|
|
123
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
124
|
+
/** The free trial is currently in progress. */
|
|
125
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
126
|
+
/** The free trial has ended. */
|
|
127
|
+
ENDED = "ENDED",
|
|
128
|
+
/** No free trial was applied, as none was available. */
|
|
129
|
+
NOT_AVAILABLE = "NOT_AVAILABLE"
|
|
130
|
+
}
|
|
131
|
+
/** @enumType */
|
|
132
|
+
type FreeTrialStatusWithLiterals = FreeTrialStatus | 'UNKNOWN_STATUS' | 'IN_PROGRESS' | 'ENDED' | 'NOT_AVAILABLE';
|
|
133
|
+
interface AvailablePlan {
|
|
134
|
+
/** Package name of the available plan. */
|
|
135
|
+
packageName?: string;
|
|
136
|
+
/** Source of the available plan. Can be a bundle or 3rd-party app. */
|
|
137
|
+
source?: string;
|
|
138
|
+
}
|
|
139
|
+
interface GetAppInstanceRequest {
|
|
140
|
+
}
|
|
141
|
+
interface GetAppInstanceResponse {
|
|
142
|
+
/** Retrieved app instance. */
|
|
143
|
+
instance?: AppInstance;
|
|
144
|
+
/** Information about the site. */
|
|
145
|
+
site?: SiteInfo;
|
|
146
|
+
}
|
|
147
|
+
interface SiteInfo {
|
|
148
|
+
/** Display name of the site. */
|
|
149
|
+
siteDisplayName?: string | null;
|
|
150
|
+
/**
|
|
151
|
+
* 2-letter language code of the site's locale in
|
|
152
|
+
* [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
153
|
+
*/
|
|
154
|
+
locale?: string;
|
|
155
|
+
/**
|
|
156
|
+
* 3-letter currency code for the site's billing in
|
|
157
|
+
* [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
158
|
+
*/
|
|
159
|
+
paymentCurrency?: string;
|
|
160
|
+
/** Information about the site's supported languages. */
|
|
161
|
+
multilingual?: Multilingual;
|
|
162
|
+
/** URL of the site. Available only when the site has been published. */
|
|
163
|
+
url?: string | null;
|
|
164
|
+
/** Description of the site. */
|
|
165
|
+
description?: string | null;
|
|
166
|
+
/** Apps made by Wix that are installed on the site. */
|
|
167
|
+
installedWixApps?: string[];
|
|
168
|
+
/**
|
|
169
|
+
* > **Deprecation Notice:** This parameter will be removed on June 30, 2022. Use `ownerInfo` instead.
|
|
170
|
+
* @format EMAIL
|
|
171
|
+
* @deprecated
|
|
172
|
+
*/
|
|
173
|
+
ownerEmail?: string | null;
|
|
174
|
+
/**
|
|
175
|
+
* Information about the site's Wix user. Available only when calling
|
|
176
|
+
* _Get App Instance_ with the __Read Site Owner Email__ permission scope.
|
|
177
|
+
*/
|
|
178
|
+
ownerInfo?: OwnerInfo;
|
|
179
|
+
/** Site ID. */
|
|
180
|
+
siteId?: string;
|
|
181
|
+
}
|
|
182
|
+
interface Multilingual {
|
|
183
|
+
/** Whether the site supports more than a single language. */
|
|
184
|
+
isMultiLingual?: boolean;
|
|
185
|
+
/** List of supported languages. Returned only when `{"isMultiLingual": true}`. */
|
|
186
|
+
supportedLanguages?: SupportedLanguage[];
|
|
187
|
+
}
|
|
188
|
+
interface SupportedLanguage {
|
|
189
|
+
/** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
|
|
190
|
+
languageCode?: string;
|
|
191
|
+
/** Locale. */
|
|
192
|
+
locale?: Locale;
|
|
193
|
+
/** Whether the supported language is the primary language for the site. */
|
|
194
|
+
isPrimary?: boolean;
|
|
195
|
+
/** Language icon. */
|
|
196
|
+
countryCode?: string;
|
|
197
|
+
/** How the language will be resolved. For internal use. */
|
|
198
|
+
resolutionMethod?: ResolutionMethodWithLiterals;
|
|
199
|
+
/** Whether the supported language is the primary language for site visitors. */
|
|
200
|
+
isVisitorPrimary?: boolean | null;
|
|
201
|
+
}
|
|
202
|
+
interface Locale {
|
|
203
|
+
/** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
|
|
204
|
+
languageCode?: string;
|
|
205
|
+
/** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */
|
|
206
|
+
country?: string;
|
|
207
|
+
}
|
|
208
|
+
declare enum ResolutionMethod {
|
|
209
|
+
QUERY_PARAM = "QUERY_PARAM",
|
|
210
|
+
SUBDOMAIN = "SUBDOMAIN",
|
|
211
|
+
SUBDIRECTORY = "SUBDIRECTORY"
|
|
212
|
+
}
|
|
213
|
+
/** @enumType */
|
|
214
|
+
type ResolutionMethodWithLiterals = ResolutionMethod | 'QUERY_PARAM' | 'SUBDOMAIN' | 'SUBDIRECTORY';
|
|
215
|
+
interface OwnerInfo {
|
|
216
|
+
/**
|
|
217
|
+
* Wix user's email address. Identical to the their login email.
|
|
218
|
+
* @format EMAIL
|
|
219
|
+
*/
|
|
220
|
+
email?: string;
|
|
221
|
+
/**
|
|
222
|
+
* Supported values: `VERIFIED_OPT_IN`, `VERIFIED_OPT_OUT`,
|
|
223
|
+
* `NOT_VERIFIED_OPT_IN`, `NOT_VERIFIED_OPT_OUT`.
|
|
224
|
+
*
|
|
225
|
+
* Whether the Wix user has verified their email and whether they have chosen
|
|
226
|
+
* to receive email notifications from Wix.
|
|
227
|
+
*/
|
|
228
|
+
emailStatus?: string;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
232
|
+
getUrl: (context: any) => string;
|
|
233
|
+
httpMethod: K;
|
|
234
|
+
path: string;
|
|
235
|
+
pathParams: M;
|
|
236
|
+
__requestType: T;
|
|
237
|
+
__originalRequestType: S;
|
|
238
|
+
__responseType: Q;
|
|
239
|
+
__originalResponseType: R;
|
|
240
|
+
};
|
|
241
|
+
declare function getAppInstance(): __PublicMethodMetaInfo<'GET', {}, GetAppInstanceRequest$1, GetAppInstanceRequest, GetAppInstanceResponse$1, GetAppInstanceResponse>;
|
|
242
|
+
|
|
243
|
+
export { type __PublicMethodMetaInfo, getAppInstance };
|
|
@@ -1,18 +1,148 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
15
9
|
};
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// meta.ts
|
|
21
|
+
var meta_exports = {};
|
|
22
|
+
__export(meta_exports, {
|
|
23
|
+
getAppInstance: () => getAppInstance2
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(meta_exports);
|
|
26
|
+
|
|
27
|
+
// src/devcenter-app-instance-v1-app-instance-app-instances.http.ts
|
|
28
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
29
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
30
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
31
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
32
|
+
function resolveComWixpressMarketAimApiAppInstanceServiceUrl(opts) {
|
|
33
|
+
const domainToMappings = {
|
|
34
|
+
"api._api_base_domain_": [
|
|
35
|
+
{
|
|
36
|
+
srcPath: "/app-instance-manager-webapp",
|
|
37
|
+
destPath: ""
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"www.wixapis.com": [
|
|
41
|
+
{
|
|
42
|
+
srcPath: "/apps",
|
|
43
|
+
destPath: ""
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"wixapis.com": [
|
|
47
|
+
{
|
|
48
|
+
srcPath: "/apps",
|
|
49
|
+
destPath: ""
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"dev._base_domain_": [
|
|
53
|
+
{
|
|
54
|
+
srcPath: "/_api/app-instance-manager",
|
|
55
|
+
destPath: ""
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
srcPath: "/api/v1/instance",
|
|
59
|
+
destPath: "/v1/instance"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
srcPath: "/api/v1/scripts",
|
|
63
|
+
destPath: "/v1/scripts"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"manage._base_domain_": [
|
|
67
|
+
{
|
|
68
|
+
srcPath: "/_api/app-instance-manager",
|
|
69
|
+
destPath: ""
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"www._base_domain_": [
|
|
73
|
+
{
|
|
74
|
+
srcPath: "/_api/app-instance-manager",
|
|
75
|
+
destPath: ""
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"editor._base_domain_": [
|
|
79
|
+
{
|
|
80
|
+
srcPath: "/_api/app-instance-manager",
|
|
81
|
+
destPath: ""
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"blocks._base_domain_": [
|
|
85
|
+
{
|
|
86
|
+
srcPath: "/_api/app-instance-manager",
|
|
87
|
+
destPath: ""
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"create.editorx": [
|
|
91
|
+
{
|
|
92
|
+
srcPath: "/_api/app-instance-manager",
|
|
93
|
+
destPath: ""
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
};
|
|
97
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
98
|
+
}
|
|
99
|
+
var PACKAGE_NAME = "@wix/auto_sdk_app-management_app-instances";
|
|
100
|
+
function getAppInstance(payload) {
|
|
101
|
+
function __getAppInstance({ host }) {
|
|
102
|
+
const metadata = {
|
|
103
|
+
entityFqdn: "wix.devcenter.app_instance.v1.app_instance",
|
|
104
|
+
method: "GET",
|
|
105
|
+
methodFqn: "com.wixpress.market.aim.api.AppInstanceService.GetAppInstance",
|
|
106
|
+
packageName: PACKAGE_NAME,
|
|
107
|
+
url: resolveComWixpressMarketAimApiAppInstanceServiceUrl({
|
|
108
|
+
protoPath: "/v1/instance",
|
|
109
|
+
data: payload,
|
|
110
|
+
host
|
|
111
|
+
}),
|
|
112
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
113
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
114
|
+
{
|
|
115
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
116
|
+
paths: [{ path: "instance.billing.freeTrialInfo.endDate" }]
|
|
117
|
+
}
|
|
118
|
+
])
|
|
119
|
+
};
|
|
120
|
+
return metadata;
|
|
121
|
+
}
|
|
122
|
+
return __getAppInstance;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// src/devcenter-app-instance-v1-app-instance-app-instances.meta.ts
|
|
126
|
+
function getAppInstance2() {
|
|
127
|
+
const payload = {};
|
|
128
|
+
const getRequestOptions = getAppInstance(payload);
|
|
129
|
+
const getUrl = (context) => {
|
|
130
|
+
const { url } = getRequestOptions(context);
|
|
131
|
+
return url;
|
|
132
|
+
};
|
|
133
|
+
return {
|
|
134
|
+
getUrl,
|
|
135
|
+
httpMethod: "GET",
|
|
136
|
+
path: "/v1/instance",
|
|
137
|
+
pathParams: {},
|
|
138
|
+
__requestType: null,
|
|
139
|
+
__originalRequestType: null,
|
|
140
|
+
__responseType: null,
|
|
141
|
+
__originalResponseType: null
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
145
|
+
0 && (module.exports = {
|
|
146
|
+
getAppInstance
|
|
147
|
+
});
|
|
18
148
|
//# sourceMappingURL=meta.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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 };\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 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,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAad,SAAS,eAAe,SAA6C;AAC1E,WAAS,iBAAiB,EAAE,KAAK,GAAQ;AACvC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,KAAK,oDAAoD;AAAA,QACvD,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,YAAQ,uCAAkB,OAAO;AAAA,MACjC,mBAAmB,CAACC,iBAClB,uCAAeA,UAAS;AAAA,QACtB;AAAA,UACE,aAAa;AAAA,UACb,OAAO,CAAC,EAAE,MAAM,yCAAyC,CAAC;AAAA,QAC5D;AAAA,MACF,CAAC;AAAA,IACL;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;AChGO,SAASC,kBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC2C,eAAe,OAAO;AAEvE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getAppInstance","import_rest_modules","payload","getAppInstance"]}
|