@wix/auto_sdk_apps-installer_apps-installer 1.0.3 → 1.0.5

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +30 -3
  2. package/build/cjs/index.js +114 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +49 -2
  5. package/build/cjs/index.typings.js +105 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +417 -2
  8. package/build/cjs/meta.js +137 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +30 -3
  11. package/build/es/index.mjs +113 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +49 -2
  14. package/build/es/index.typings.mjs +104 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +417 -2
  17. package/build/es/meta.mjs +131 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +30 -3
  20. package/build/internal/cjs/index.js +114 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +49 -2
  23. package/build/internal/cjs/index.typings.js +105 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +417 -2
  26. package/build/internal/cjs/meta.js +137 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +30 -3
  29. package/build/internal/es/index.mjs +113 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +49 -2
  32. package/build/internal/es/index.typings.mjs +104 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +417 -2
  35. package/build/internal/es/meta.mjs +131 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { InstallAppRequest as InstallAppRequest$1, InstallAppResponse as InstallAppResponse$1, UninstallAppRequest as UninstallAppRequest$1, UninstallAppResponse as UninstallAppResponse$1, BulkUninstallAppRequest as BulkUninstallAppRequest$1, BulkUninstallAppResponse as BulkUninstallAppResponse$1, InstallAppFromShareUrlRequest as InstallAppFromShareUrlRequest$1, InstallAppFromShareUrlResponse as InstallAppFromShareUrlResponse$1, IsPermittedToInstallAppsRequest as IsPermittedToInstallAppsRequest$1, IsPermittedToInstallAppsResponse as IsPermittedToInstallAppsResponse$1, GetInstalledAppsRequest as GetInstalledAppsRequest$1, GetInstalledAppsResponse as GetInstalledAppsResponse$1 } from './index.typings.mjs';
1
+ import { InstallAppRequest as InstallAppRequest$1, InstallAppResponse as InstallAppResponse$1, BulkInstallAppRequest as BulkInstallAppRequest$1, BulkInstallAppResponse as BulkInstallAppResponse$1, UninstallAppRequest as UninstallAppRequest$1, UninstallAppResponse as UninstallAppResponse$1, BulkUninstallAppRequest as BulkUninstallAppRequest$1, BulkUninstallAppResponse as BulkUninstallAppResponse$1, InstallAppFromShareUrlRequest as InstallAppFromShareUrlRequest$1, InstallAppFromShareUrlResponse as InstallAppFromShareUrlResponse$1, IsPermittedToInstallAppsRequest as IsPermittedToInstallAppsRequest$1, IsPermittedToInstallAppsResponse as IsPermittedToInstallAppsResponse$1, GetInstalledAppsRequest as GetInstalledAppsRequest$1, GetInstalledAppsResponse as GetInstalledAppsResponse$1 } from './index.typings.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  interface AppInstance {
@@ -37,6 +37,27 @@ interface AppInstance {
37
37
  */
38
38
  updatedDate?: Date | null;
39
39
  }
40
+ declare enum Status {
41
+ /** Installation status is unknown. */
42
+ UNKNOWN = "UNKNOWN",
43
+ /** Waiting for OAUTH authentication to complete installation. */
44
+ WAITING_FOR_OAUTH = "WAITING_FOR_OAUTH",
45
+ /** App instance authenticated successfully. */
46
+ AUTHENTICATED = "AUTHENTICATED",
47
+ /** Payment hasn't been completed and is required for access to the app. */
48
+ DIDNT_COMPLETE_PAYMENT = "DIDNT_COMPLETE_PAYMENT"
49
+ }
50
+ /** @enumType */
51
+ type StatusWithLiterals = Status | 'UNKNOWN' | 'WAITING_FOR_OAUTH' | 'AUTHENTICATED' | 'DIDNT_COMPLETE_PAYMENT';
52
+ interface LegacyParams {
53
+ /** Legacy int id */
54
+ intId?: number | null;
55
+ /**
56
+ * Legacy source template id
57
+ * @format GUID
58
+ */
59
+ sourceTemplateId?: string | null;
60
+ }
40
61
  interface DevVersionInstallation {
41
62
  /**
42
63
  * ID of the override to assign to the development version.
@@ -44,6 +65,10 @@ interface DevVersionInstallation {
44
65
  */
45
66
  overrideId?: string;
46
67
  }
68
+ interface ListAppInstancesRequest {
69
+ /** Tenant to fetch app instances for */
70
+ tenant?: Tenant;
71
+ }
47
72
  interface Tenant {
48
73
  /** Tenant ID. For a site, this is the [site ID](https://dev.wix.com/docs/rest/account-level/sites/sites/introduction). For an account this is the [account ID](https://dev.wix.com/docs/rest/account-level/user-management/accounts/accounts/about-accounts). */
49
74
  id?: string;
@@ -56,6 +81,151 @@ declare enum TenantType {
56
81
  }
57
82
  /** @enumType */
58
83
  type TenantTypeWithLiterals = TenantType | 'SITE' | 'ACCOUNT';
84
+ interface ListAppInstancesResponse {
85
+ /** List of installed app instances list for the specified tenant */
86
+ appInstances?: AppInstance[];
87
+ }
88
+ interface DomainEvent extends DomainEventBodyOneOf {
89
+ createdEvent?: EntityCreatedEvent;
90
+ updatedEvent?: EntityUpdatedEvent;
91
+ deletedEvent?: EntityDeletedEvent;
92
+ actionEvent?: ActionEvent;
93
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
94
+ id?: string;
95
+ /**
96
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
97
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
98
+ */
99
+ entityFqdn?: string;
100
+ /**
101
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
102
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
103
+ */
104
+ slug?: string;
105
+ /** ID of the entity associated with the event. */
106
+ entityId?: string;
107
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
108
+ eventTime?: Date | null;
109
+ /**
110
+ * Whether the event was triggered as a result of a privacy regulation application
111
+ * (for example, GDPR).
112
+ */
113
+ triggeredByAnonymizeRequest?: boolean | null;
114
+ /** If present, indicates the action that triggered the event. */
115
+ originatedFrom?: string | null;
116
+ /**
117
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
118
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
119
+ */
120
+ entityEventSequence?: string | null;
121
+ }
122
+ /** @oneof */
123
+ interface DomainEventBodyOneOf {
124
+ createdEvent?: EntityCreatedEvent;
125
+ updatedEvent?: EntityUpdatedEvent;
126
+ deletedEvent?: EntityDeletedEvent;
127
+ actionEvent?: ActionEvent;
128
+ }
129
+ interface EntityCreatedEvent {
130
+ entityAsJson?: string;
131
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
132
+ restoreInfo?: RestoreInfo;
133
+ }
134
+ interface RestoreInfo {
135
+ deletedDate?: Date | null;
136
+ }
137
+ interface EntityUpdatedEvent {
138
+ /**
139
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
140
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
141
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
142
+ */
143
+ currentEntityAsJson?: string;
144
+ }
145
+ interface EntityDeletedEvent {
146
+ /** Entity that was deleted. */
147
+ deletedEntityAsJson?: string | null;
148
+ }
149
+ interface ActionEvent {
150
+ bodyAsJson?: string;
151
+ }
152
+ interface MessageEnvelope {
153
+ /**
154
+ * App instance ID.
155
+ * @format GUID
156
+ */
157
+ instanceId?: string | null;
158
+ /**
159
+ * Event type.
160
+ * @maxLength 150
161
+ */
162
+ eventType?: string;
163
+ /** The identification type and identity data. */
164
+ identity?: IdentificationData;
165
+ /** Stringify payload. */
166
+ data?: string;
167
+ }
168
+ interface IdentificationData extends IdentificationDataIdOneOf {
169
+ /**
170
+ * ID of a site visitor that has not logged in to the site.
171
+ * @format GUID
172
+ */
173
+ anonymousVisitorId?: string;
174
+ /**
175
+ * ID of a site visitor that has logged in to the site.
176
+ * @format GUID
177
+ */
178
+ memberId?: string;
179
+ /**
180
+ * ID of a Wix user (site owner, contributor, etc.).
181
+ * @format GUID
182
+ */
183
+ wixUserId?: string;
184
+ /**
185
+ * ID of an app.
186
+ * @format GUID
187
+ */
188
+ appId?: string;
189
+ /** @readonly */
190
+ identityType?: WebhookIdentityTypeWithLiterals;
191
+ }
192
+ /** @oneof */
193
+ interface IdentificationDataIdOneOf {
194
+ /**
195
+ * ID of a site visitor that has not logged in to the site.
196
+ * @format GUID
197
+ */
198
+ anonymousVisitorId?: string;
199
+ /**
200
+ * ID of a site visitor that has logged in to the site.
201
+ * @format GUID
202
+ */
203
+ memberId?: string;
204
+ /**
205
+ * ID of a Wix user (site owner, contributor, etc.).
206
+ * @format GUID
207
+ */
208
+ wixUserId?: string;
209
+ /**
210
+ * ID of an app.
211
+ * @format GUID
212
+ */
213
+ appId?: string;
214
+ }
215
+ declare enum WebhookIdentityType {
216
+ UNKNOWN = "UNKNOWN",
217
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
218
+ MEMBER = "MEMBER",
219
+ WIX_USER = "WIX_USER",
220
+ APP = "APP"
221
+ }
222
+ /** @enumType */
223
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
224
+ interface InstallDefaultAppsEvent {
225
+ tenant?: Tenant;
226
+ }
227
+ interface Empty {
228
+ }
59
229
  interface InstallAppRequest {
60
230
  /** Tenant details. */
61
231
  tenant: Tenant;
@@ -66,6 +236,42 @@ interface InstallAppResponse {
66
236
  /** The app instance created when the app was installed. */
67
237
  appInstance?: AppInstance;
68
238
  }
239
+ interface AppInstalledOnTenant {
240
+ /** Tenant details. */
241
+ tenant?: Tenant;
242
+ /** App instance details. */
243
+ appInstance?: AppInstance;
244
+ }
245
+ interface BulkInstallAppRequest {
246
+ /** Tenant details. */
247
+ tenant: Tenant;
248
+ /**
249
+ * Details of the app instances to create when the apps are installed.
250
+ * @maxSize 20
251
+ */
252
+ appInstances?: AppInstance[];
253
+ }
254
+ /** A list of possible additional fields to be included in the response. */
255
+ declare enum RequestedFields {
256
+ /** The requested field is unknown. */
257
+ UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
258
+ /** The client spec map. */
259
+ CLIENT_SPEC_MAP = "CLIENT_SPEC_MAP"
260
+ }
261
+ /** @enumType */
262
+ type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'CLIENT_SPEC_MAP';
263
+ interface BulkInstallAppResponse {
264
+ /** Information and metadata about the app installations. */
265
+ results?: BulkInstallAppResult[];
266
+ /** Metadata about the bulk installation. */
267
+ bulkActionMetadata?: BulkActionMetadata;
268
+ }
269
+ interface BulkInstallAppResult {
270
+ /** Metadata about the app installation. */
271
+ itemMetadata?: ItemMetadata;
272
+ /** Details of the created app instance. */
273
+ appInstance?: AppInstance;
274
+ }
69
275
  interface ItemMetadata {
70
276
  /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
71
277
  id?: string | null;
@@ -92,6 +298,166 @@ interface BulkActionMetadata {
92
298
  /** Number of failures without details because detailed failure threshold was exceeded. */
93
299
  undetailedFailures?: number;
94
300
  }
301
+ interface ClientSpecMap {
302
+ /** The Client Spec Map data. */
303
+ data?: Record<number, ClientSpec>;
304
+ }
305
+ /**
306
+ * ClientSpec is a merge of meta site and dev center data about application.
307
+ *
308
+ * This API is very old, but used a lot in editor and viewer.
309
+ *
310
+ * It represents a flatten hierarchy of subclasses of [com.wixpress.apps.dto.ClientSpec](https://github.com/wix-private/meta-site/blob/master/wix-meta-site-server/app-store-service/client-spec-map-api/src/main/scala/com/wixpress/apps/dto/ClientSpec.java).
311
+ */
312
+ interface ClientSpec {
313
+ /** Possible values: editor, public, wixapps, appbuilder, sitemembers, siteextension, mobileapp, onboarding, metasite or ignored. */
314
+ type?: string;
315
+ /**
316
+ * Deprecated. Represents so-called intId -- a "position" of the application in Site Pages (previously editor saved intId
317
+ * instead of appDefId in pages to correlate with applications).
318
+ */
319
+ applicationId?: number;
320
+ appDefinitionId?: string | null;
321
+ instanceId?: string | null;
322
+ state?: string | null;
323
+ expirationDate?: string | null;
324
+ /** This field will be deprecated in the future. It currently contains either the access token or the data token. */
325
+ instance?: string | null;
326
+ /** A OAuth access token for the application - provides API access. */
327
+ accessToken?: string | null;
328
+ /** A data token for the application - provides data about the application user. */
329
+ dataToken?: string | null;
330
+ /** MetaSiteClientSpec */
331
+ metaSiteId?: string | null;
332
+ /** deprecated */
333
+ appDefId?: string | null;
334
+ /** BaseTPAClientSpec */
335
+ versionFailure?: string | null;
336
+ appWorkerUrl?: string | null;
337
+ appDefinitionName?: string | null;
338
+ sectionDefaultPage?: string | null;
339
+ sectionUrl?: string | null;
340
+ widgets?: Record<string, Widget>;
341
+ gluedWidgets?: Record<string, GluedWidget>;
342
+ pixelUrl?: string | null;
343
+ embeddedScriptUrl?: string | null;
344
+ appRequirements?: TPAAppRequirements;
345
+ sectionRefreshOnWidthChange?: boolean | null;
346
+ sectionMobileUrl?: string | null;
347
+ sectionPublished?: boolean | null;
348
+ sectionMobilePublished?: boolean | null;
349
+ sectionSeoEnabled?: boolean | null;
350
+ /** TODO check serialization */
351
+ isWixTPA?: boolean | null;
352
+ installedAtDashboard?: boolean | null;
353
+ permissions?: TPAPermissions;
354
+ appFields?: any;
355
+ version?: string | null;
356
+ requiresEditorComponent?: boolean | null;
357
+ editorPartDismissed?: boolean | null;
358
+ openPremiumPage?: boolean | null;
359
+ /** TPAEditorClientSpec */
360
+ settingsUrl?: string | null;
361
+ onboardingSettingsUrl?: string | null;
362
+ dashboardUrl?: string | null;
363
+ dashboardDefaultHeight?: number | null;
364
+ settingsDialogBanner?: string | null;
365
+ settingsCompanyName?: string | null;
366
+ settingsWidth?: number | null;
367
+ settingsHeight?: number | null;
368
+ demoMode?: boolean | null;
369
+ sectionSettings?: TPASettingsClientSpec;
370
+ vendorProductId?: string | null;
371
+ vendorProducts?: string[];
372
+ preInstalled?: boolean | null;
373
+ appType?: string | null;
374
+ provisionOnSaveSite?: boolean | null;
375
+ components?: any;
376
+ /** WLAClientSpec */
377
+ datastoreId?: string | null;
378
+ originDatastoreId?: string | null;
379
+ packageName?: string | null;
380
+ /** SiteMembersClientSpec */
381
+ smcollectionId?: string | null;
382
+ collectionType?: string | null;
383
+ collectionFormFace?: string | null;
384
+ collectionExposure?: string | null;
385
+ smtoken?: string | null;
386
+ /** MobileAppClientSpec */
387
+ name?: string | null;
388
+ iconUrl?: string | null;
389
+ /** OnboardingClientSpec */
390
+ storyId?: string | null;
391
+ inUse?: boolean | null;
392
+ }
393
+ interface Widget {
394
+ /** BaseTPAClientWidget */
395
+ widgetId?: string | null;
396
+ widgetUrl?: string | null;
397
+ tpaWidgetId?: string | null;
398
+ refreshOnWidthChange?: boolean | null;
399
+ mobileUrl?: string | null;
400
+ appPage?: TPAAppPage;
401
+ published?: boolean | null;
402
+ mobilePublished?: boolean | null;
403
+ seoEnabled?: boolean | null;
404
+ preFetch?: boolean | null;
405
+ shouldBeStretchedByDefault?: boolean | null;
406
+ shouldBeStretchedByDefaultMobile?: boolean | null;
407
+ gluedOptions?: GluedOptions;
408
+ componentFields?: any;
409
+ default?: boolean | null;
410
+ /** TPAEditorClientWidget */
411
+ defaultWidth?: number | null;
412
+ defaultHeight?: number | null;
413
+ defaultShowOnAllPages?: boolean | null;
414
+ settings?: TPASettingsClientSpec;
415
+ autoAddToSite?: boolean | null;
416
+ defaultPosition?: TPAWidgetPosition;
417
+ canBeStretched?: boolean | null;
418
+ santaEditorPublished?: boolean | null;
419
+ addOnlyOnce?: boolean | null;
420
+ }
421
+ interface TPAAppPage {
422
+ id?: string;
423
+ name?: string;
424
+ defaultPage?: string;
425
+ hidden?: boolean;
426
+ multiInstanceEnabled?: boolean | null;
427
+ order?: number | null;
428
+ indexable?: boolean | null;
429
+ fullPage?: boolean | null;
430
+ landingPageInMobile?: boolean | null;
431
+ hideFromMenu?: boolean | null;
432
+ }
433
+ interface GluedOptions {
434
+ placement?: string | null;
435
+ verticalMargin?: number | null;
436
+ horizontalMargin?: number | null;
437
+ }
438
+ interface TPASettingsClientSpec {
439
+ height?: number;
440
+ width?: number;
441
+ url?: string | null;
442
+ urlV2?: string | null;
443
+ onboardingUrl?: string | null;
444
+ abTest?: boolean | null;
445
+ version?: number | null;
446
+ }
447
+ interface TPAWidgetPosition {
448
+ region?: string;
449
+ placement?: string;
450
+ }
451
+ interface GluedWidget {
452
+ widgetId?: string | null;
453
+ widgetUrl?: string | null;
454
+ }
455
+ interface TPAAppRequirements {
456
+ requireSiteMembers?: boolean;
457
+ }
458
+ interface TPAPermissions {
459
+ revoked?: boolean;
460
+ }
95
461
  interface UninstallAppRequest {
96
462
  /** Tenant details. */
97
463
  tenant?: Tenant;
@@ -205,6 +571,54 @@ interface GetInstalledAppsResponse {
205
571
  /** The installed app instances */
206
572
  appInstances?: AppInstance[];
207
573
  }
574
+ /** @docsIgnore */
575
+ type InstallAppApplicationErrors = {
576
+ code?: 'DOMAIN_ENTITY_MISSING';
577
+ description?: string;
578
+ data?: Record<string, any>;
579
+ } | {
580
+ code?: 'UNSUPPORTED_TENANT_TYPE';
581
+ description?: string;
582
+ data?: Record<string, any>;
583
+ } | {
584
+ code?: 'INVALID_DEV_VERSION';
585
+ description?: string;
586
+ data?: Record<string, any>;
587
+ } | {
588
+ code?: 'ACCOUNT_INVALID_DEV_VERSION';
589
+ description?: string;
590
+ data?: Record<string, any>;
591
+ };
592
+ /** @docsIgnore */
593
+ type BulkInstallAppApplicationErrors = {
594
+ code?: 'DOMAIN_ENTITY_MISSING';
595
+ description?: string;
596
+ data?: Record<string, any>;
597
+ } | {
598
+ code?: 'UNSUPPORTED_TENANT_TYPE';
599
+ description?: string;
600
+ data?: Record<string, any>;
601
+ };
602
+ /** @docsIgnore */
603
+ type InstallAppFromShareUrlApplicationErrors = {
604
+ code?: 'UNSUPPORTED_TENANT_TYPE';
605
+ description?: string;
606
+ data?: Record<string, any>;
607
+ } | {
608
+ code?: 'SHARE_URL_IS_REVOKED';
609
+ description?: string;
610
+ data?: Record<string, any>;
611
+ } | {
612
+ code?: 'SHARE_URL_NOT_FOUND';
613
+ description?: string;
614
+ data?: Record<string, any>;
615
+ };
616
+ /** @docsIgnore */
617
+ type IsPermittedToInstallAppsApplicationErrors = {
618
+ code?: 'UNSUPPORTED_TENANT_TYPE';
619
+ description?: string;
620
+ data?: Record<string, any>;
621
+ };
208
622
 
209
623
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
210
624
  getUrl: (context: any) => string;
@@ -217,10 +631,11 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
217
631
  __originalResponseType: R;
218
632
  };
219
633
  declare function installApp(): __PublicMethodMetaInfo<'POST', {}, InstallAppRequest$1, InstallAppRequest, InstallAppResponse$1, InstallAppResponse>;
634
+ declare function bulkInstallApp(): __PublicMethodMetaInfo<'POST', {}, BulkInstallAppRequest$1, BulkInstallAppRequest, BulkInstallAppResponse$1, BulkInstallAppResponse>;
220
635
  declare function uninstallApp(): __PublicMethodMetaInfo<'POST', {}, UninstallAppRequest$1, UninstallAppRequest, UninstallAppResponse$1, UninstallAppResponse>;
221
636
  declare function bulkUninstallApp(): __PublicMethodMetaInfo<'POST', {}, BulkUninstallAppRequest$1, BulkUninstallAppRequest, BulkUninstallAppResponse$1, BulkUninstallAppResponse>;
222
637
  declare function installAppFromShareUrl(): __PublicMethodMetaInfo<'POST', {}, InstallAppFromShareUrlRequest$1, InstallAppFromShareUrlRequest, InstallAppFromShareUrlResponse$1, InstallAppFromShareUrlResponse>;
223
638
  declare function isPermittedToInstallApps(): __PublicMethodMetaInfo<'POST', {}, IsPermittedToInstallAppsRequest$1, IsPermittedToInstallAppsRequest, IsPermittedToInstallAppsResponse$1, IsPermittedToInstallAppsResponse>;
224
639
  declare function getInstalledApps(): __PublicMethodMetaInfo<'GET', {}, GetInstalledAppsRequest$1, GetInstalledAppsRequest, GetInstalledAppsResponse$1, GetInstalledAppsResponse>;
225
640
 
226
- export { type __PublicMethodMetaInfo, bulkUninstallApp, getInstalledApps, installApp, installAppFromShareUrl, isPermittedToInstallApps, uninstallApp };
641
+ export { type ActionEvent as ActionEventOriginal, type AppInstalledOnTenant as AppInstalledOnTenantOriginal, type AppInstance as AppInstanceOriginal, type ApplicationError as ApplicationErrorOriginal, type AppsInstallOptions as AppsInstallOptionsOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkInstallAppApplicationErrors as BulkInstallAppApplicationErrorsOriginal, type BulkInstallAppRequest as BulkInstallAppRequestOriginal, type BulkInstallAppResponse as BulkInstallAppResponseOriginal, type BulkInstallAppResult as BulkInstallAppResultOriginal, type BulkUninstallAppRequest as BulkUninstallAppRequestOriginal, type BulkUninstallAppResponse as BulkUninstallAppResponseOriginal, type BulkUninstallAppResult as BulkUninstallAppResultOriginal, type ClientSpecMap as ClientSpecMapOriginal, type ClientSpec as ClientSpecOriginal, type DevVersionInstallation as DevVersionInstallationOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type GetInstalledAppsRequest as GetInstalledAppsRequestOriginal, type GetInstalledAppsResponse as GetInstalledAppsResponseOriginal, type GluedOptions as GluedOptionsOriginal, type GluedWidget as GluedWidgetOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type InstallAppApplicationErrors as InstallAppApplicationErrorsOriginal, type InstallAppFromShareUrlApplicationErrors as InstallAppFromShareUrlApplicationErrorsOriginal, type InstallAppFromShareUrlRequest as InstallAppFromShareUrlRequestOriginal, type InstallAppFromShareUrlResponse as InstallAppFromShareUrlResponseOriginal, type InstallAppRequest as InstallAppRequestOriginal, type InstallAppResponse as InstallAppResponseOriginal, type InstallDefaultAppsEvent as InstallDefaultAppsEventOriginal, InstallType as InstallTypeOriginal, type InstallTypeWithLiterals as InstallTypeWithLiteralsOriginal, type IsPermittedToInstallAppsApplicationErrors as IsPermittedToInstallAppsApplicationErrorsOriginal, type IsPermittedToInstallAppsRequestOptionsOneOf as IsPermittedToInstallAppsRequestOptionsOneOfOriginal, type IsPermittedToInstallAppsRequest as IsPermittedToInstallAppsRequestOriginal, type IsPermittedToInstallAppsResponse as IsPermittedToInstallAppsResponseOriginal, type ItemMetadata as ItemMetadataOriginal, type LegacyParams as LegacyParamsOriginal, type ListAppInstancesRequest as ListAppInstancesRequestOriginal, type ListAppInstancesResponse as ListAppInstancesResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type ShareUrlInstallOptions as ShareUrlInstallOptionsOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type TPAAppPage as TPAAppPageOriginal, type TPAAppRequirements as TPAAppRequirementsOriginal, type TPAPermissions as TPAPermissionsOriginal, type TPASettingsClientSpec as TPASettingsClientSpecOriginal, type TPAWidgetPosition as TPAWidgetPositionOriginal, type Tenant as TenantOriginal, TenantType as TenantTypeOriginal, type TenantTypeWithLiterals as TenantTypeWithLiteralsOriginal, type UninstallAppRequest as UninstallAppRequestOriginal, type UninstallAppResponse as UninstallAppResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type Widget as WidgetOriginal, type __PublicMethodMetaInfo, bulkInstallApp, bulkUninstallApp, getInstalledApps, installApp, installAppFromShareUrl, isPermittedToInstallApps, uninstallApp };
package/build/es/meta.mjs CHANGED
@@ -72,6 +72,12 @@ function resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl(opts) {
72
72
  srcPath: "/_api/apps-installer-service",
73
73
  destPath: ""
74
74
  }
75
+ ],
76
+ "vibe._base_domain_": [
77
+ {
78
+ srcPath: "/_api/apps-installer-service",
79
+ destPath: ""
80
+ }
75
81
  ]
76
82
  };
77
83
  return resolveUrl(Object.assign(opts, { domainToMappings }));
@@ -93,6 +99,9 @@ function installApp(payload) {
93
99
  method: "POST",
94
100
  methodFqn: "wix.devcenter.apps.installer.v1.AppsInstallerService.InstallApp",
95
101
  packageName: PACKAGE_NAME,
102
+ migrationOptions: {
103
+ optInTransformResponse: true
104
+ },
96
105
  url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
97
106
  protoPath: "/v1/app-instance/install",
98
107
  data: serializedData,
@@ -115,6 +124,56 @@ function installApp(payload) {
115
124
  }
116
125
  return __installApp;
117
126
  }
127
+ function bulkInstallApp(payload) {
128
+ function __bulkInstallApp({ host }) {
129
+ const serializedData = transformPaths(payload, [
130
+ {
131
+ transformFn: transformSDKTimestampToRESTTimestamp,
132
+ paths: [
133
+ { path: "appInstances.installedDate" },
134
+ { path: "appInstances.updatedDate" }
135
+ ]
136
+ }
137
+ ]);
138
+ const metadata = {
139
+ entityFqdn: "wix.apps.v1.app_instance",
140
+ method: "POST",
141
+ methodFqn: "wix.devcenter.apps.installer.v1.AppsInstallerService.BulkInstallApp",
142
+ packageName: PACKAGE_NAME,
143
+ migrationOptions: {
144
+ optInTransformResponse: true
145
+ },
146
+ url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
147
+ protoPath: "/v1/bulk/app-instance/install",
148
+ data: serializedData,
149
+ host
150
+ }),
151
+ data: serializedData,
152
+ transformResponse: (payload2) => transformPaths(payload2, [
153
+ {
154
+ transformFn: transformRESTTimestampToSDKTimestamp,
155
+ paths: [
156
+ { path: "results.appInstance.installedDate" },
157
+ { path: "results.appInstance.updatedDate" }
158
+ ]
159
+ },
160
+ {
161
+ transformFn: transformRESTFloatToSDKFloat,
162
+ paths: [
163
+ {
164
+ path: "clientSpecMap.data.widgets.*.gluedOptions.verticalMargin"
165
+ },
166
+ {
167
+ path: "clientSpecMap.data.widgets.*.gluedOptions.horizontalMargin"
168
+ }
169
+ ]
170
+ }
171
+ ])
172
+ };
173
+ return metadata;
174
+ }
175
+ return __bulkInstallApp;
176
+ }
118
177
  function uninstallApp(payload) {
119
178
  function __uninstallApp({ host }) {
120
179
  const metadata = {
@@ -122,6 +181,9 @@ function uninstallApp(payload) {
122
181
  method: "POST",
123
182
  methodFqn: "wix.devcenter.apps.installer.v1.AppsInstallerService.UninstallApp",
124
183
  packageName: PACKAGE_NAME,
184
+ migrationOptions: {
185
+ optInTransformResponse: true
186
+ },
125
187
  url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
126
188
  protoPath: "/v1/app-instance/uninstall",
127
189
  data: payload,
@@ -140,6 +202,9 @@ function bulkUninstallApp(payload) {
140
202
  method: "POST",
141
203
  methodFqn: "wix.devcenter.apps.installer.v1.AppsInstallerService.BulkUninstallApp",
142
204
  packageName: PACKAGE_NAME,
205
+ migrationOptions: {
206
+ optInTransformResponse: true
207
+ },
143
208
  url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
144
209
  protoPath: "/v1/bulk/app-instance/uninstall",
145
210
  data: payload,
@@ -178,6 +243,9 @@ function installAppFromShareUrl(payload) {
178
243
  method: "POST",
179
244
  methodFqn: "wix.devcenter.apps.installer.v1.AppsInstallerService.InstallAppFromShareUrl",
180
245
  packageName: PACKAGE_NAME,
246
+ migrationOptions: {
247
+ optInTransformResponse: true
248
+ },
181
249
  url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
182
250
  protoPath: "/v1/app-share-url/install",
183
251
  data: payload,
@@ -216,6 +284,9 @@ function isPermittedToInstallApps(payload) {
216
284
  method: "POST",
217
285
  methodFqn: "wix.devcenter.apps.installer.v1.AppsInstallerService.IsPermittedToInstallApps",
218
286
  packageName: PACKAGE_NAME,
287
+ migrationOptions: {
288
+ optInTransformResponse: true
289
+ },
219
290
  url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
220
291
  protoPath: "/v1/app-instance/is-permitted-to-install",
221
292
  data: serializedData,
@@ -234,6 +305,9 @@ function getInstalledApps(payload) {
234
305
  method: "GET",
235
306
  methodFqn: "wix.devcenter.apps.installer.v1.AppsInstallerService.GetInstalledApps",
236
307
  packageName: PACKAGE_NAME,
308
+ migrationOptions: {
309
+ optInTransformResponse: true
310
+ },
237
311
  url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
238
312
  protoPath: "/v1/app-instances",
239
313
  data: payload,
@@ -266,6 +340,39 @@ function getInstalledApps(payload) {
266
340
  return __getInstalledApps;
267
341
  }
268
342
 
343
+ // src/apps-v1-app-instance-apps-installer.types.ts
344
+ var Status = /* @__PURE__ */ ((Status2) => {
345
+ Status2["UNKNOWN"] = "UNKNOWN";
346
+ Status2["WAITING_FOR_OAUTH"] = "WAITING_FOR_OAUTH";
347
+ Status2["AUTHENTICATED"] = "AUTHENTICATED";
348
+ Status2["DIDNT_COMPLETE_PAYMENT"] = "DIDNT_COMPLETE_PAYMENT";
349
+ return Status2;
350
+ })(Status || {});
351
+ var TenantType = /* @__PURE__ */ ((TenantType2) => {
352
+ TenantType2["SITE"] = "SITE";
353
+ TenantType2["ACCOUNT"] = "ACCOUNT";
354
+ return TenantType2;
355
+ })(TenantType || {});
356
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
357
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
358
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
359
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
360
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
361
+ WebhookIdentityType2["APP"] = "APP";
362
+ return WebhookIdentityType2;
363
+ })(WebhookIdentityType || {});
364
+ var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
365
+ RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
366
+ RequestedFields2["CLIENT_SPEC_MAP"] = "CLIENT_SPEC_MAP";
367
+ return RequestedFields2;
368
+ })(RequestedFields || {});
369
+ var InstallType = /* @__PURE__ */ ((InstallType2) => {
370
+ InstallType2["UNKNOWN_INSTALL_TYPE"] = "UNKNOWN_INSTALL_TYPE";
371
+ InstallType2["APPS_INSTALL"] = "APPS_INSTALL";
372
+ InstallType2["SHARE_URL_INSTALL"] = "SHARE_URL_INSTALL";
373
+ return InstallType2;
374
+ })(InstallType || {});
375
+
269
376
  // src/apps-v1-app-instance-apps-installer.meta.ts
270
377
  function installApp2() {
271
378
  const payload = {};
@@ -285,6 +392,24 @@ function installApp2() {
285
392
  __originalResponseType: null
286
393
  };
287
394
  }
395
+ function bulkInstallApp2() {
396
+ const payload = {};
397
+ const getRequestOptions = bulkInstallApp(payload);
398
+ const getUrl = (context) => {
399
+ const { url } = getRequestOptions(context);
400
+ return url;
401
+ };
402
+ return {
403
+ getUrl,
404
+ httpMethod: "POST",
405
+ path: "/v1/bulk/app-instance/install",
406
+ pathParams: {},
407
+ __requestType: null,
408
+ __originalRequestType: null,
409
+ __responseType: null,
410
+ __originalResponseType: null
411
+ };
412
+ }
288
413
  function uninstallApp2() {
289
414
  const payload = {};
290
415
  const getRequestOptions = uninstallApp(payload);
@@ -376,6 +501,12 @@ function getInstalledApps2() {
376
501
  };
377
502
  }
378
503
  export {
504
+ InstallType as InstallTypeOriginal,
505
+ RequestedFields as RequestedFieldsOriginal,
506
+ Status as StatusOriginal,
507
+ TenantType as TenantTypeOriginal,
508
+ WebhookIdentityType as WebhookIdentityTypeOriginal,
509
+ bulkInstallApp2 as bulkInstallApp,
379
510
  bulkUninstallApp2 as bulkUninstallApp,
380
511
  getInstalledApps2 as getInstalledApps,
381
512
  installApp2 as installApp,