@wix/auto_sdk_app-management_apps 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +11 -30
- package/build/cjs/index.js +6 -131
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +32 -49
- package/build/cjs/index.typings.js +6 -113
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +18 -18
- package/build/cjs/meta.js +6 -95
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +11 -30
- package/build/es/index.mjs +6 -129
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +32 -49
- package/build/es/index.typings.mjs +6 -111
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +18 -18
- package/build/es/meta.mjs +6 -93
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -30
- package/build/internal/cjs/index.typings.d.ts +38 -50
- package/build/internal/cjs/meta.d.ts +24 -19
- package/build/internal/es/index.d.mts +11 -30
- package/build/internal/es/index.typings.d.mts +38 -50
- package/build/internal/es/meta.d.mts +24 -19
- package/package.json +4 -4
package/build/es/meta.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateAppRequest as CreateAppRequest$1, CreateAppResponse as CreateAppResponse$1, GetAppRequest as GetAppRequest$1, GetAppResponse as GetAppResponse$1, UpdateAppRequest as UpdateAppRequest$1, UpdateAppResponse as UpdateAppResponse$1, GenerateSlugRequest as GenerateSlugRequest$1, GenerateSlugResponse as GenerateSlugResponse$1, GetNamespaceSuggestionRequest as GetNamespaceSuggestionRequest$1, GetNamespaceSuggestionResponse as GetNamespaceSuggestionResponse$1, GetNamespaceSuggestionByNameRequest as GetNamespaceSuggestionByNameRequest$1, GetNamespaceSuggestionByNameResponse as GetNamespaceSuggestionByNameResponse$1, SetNamespaceRequest as SetNamespaceRequest$1, SetNamespaceResponse as SetNamespaceResponse$1
|
|
1
|
+
import { CreateAppRequest as CreateAppRequest$1, CreateAppResponse as CreateAppResponse$1, GetAppRequest as GetAppRequest$1, GetAppResponse as GetAppResponse$1, UpdateAppRequest as UpdateAppRequest$1, UpdateAppResponse as UpdateAppResponse$1, GenerateSlugRequest as GenerateSlugRequest$1, GenerateSlugResponse as GenerateSlugResponse$1, GetNamespaceSuggestionRequest as GetNamespaceSuggestionRequest$1, GetNamespaceSuggestionResponse as GetNamespaceSuggestionResponse$1, GetNamespaceSuggestionByNameRequest as GetNamespaceSuggestionByNameRequest$1, GetNamespaceSuggestionByNameResponse as GetNamespaceSuggestionByNameResponse$1, SetNamespaceRequest as SetNamespaceRequest$1, SetNamespaceResponse as SetNamespaceResponse$1 } from './index.typings.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -14,6 +14,7 @@ interface V1App {
|
|
|
14
14
|
id?: string | null;
|
|
15
15
|
/**
|
|
16
16
|
* The display name shown to users and in App Market after publication, separate from the namespace, slug, and code identifier.
|
|
17
|
+
* Apps intended for publication in the Wix App Market should have a name of no more than 30 characters.
|
|
17
18
|
* On creation and update, `<`, `>`, double quotes, and apostrophes are escaped as
|
|
18
19
|
* `<`, `>`, `"`, and `'`. Responses contain the escaped value, which can be longer than the submitted name.
|
|
19
20
|
* @maxLength 50
|
|
@@ -65,7 +66,11 @@ interface V1App {
|
|
|
65
66
|
* @maxLength 50
|
|
66
67
|
*/
|
|
67
68
|
slug?: string | null;
|
|
68
|
-
/**
|
|
69
|
+
/**
|
|
70
|
+
* URL settings for Advanced OAuth and post-installation navigation.
|
|
71
|
+
* Using Advanced OAuth through `appUri` and `redirectUris` is highly discouraged.
|
|
72
|
+
* See [Advanced OAuth](https://dev.wix.com/docs/build-apps/develop-your-app/access/authentication/use-advanced-oauth).
|
|
73
|
+
*/
|
|
69
74
|
appUrls?: AppUrls;
|
|
70
75
|
/**
|
|
71
76
|
* Identity and creation channel of the user or app that created the app, including its source template when applicable.
|
|
@@ -86,7 +91,7 @@ interface V1App {
|
|
|
86
91
|
* @readonly
|
|
87
92
|
*/
|
|
88
93
|
updatedDate?: Date | null;
|
|
89
|
-
/**
|
|
94
|
+
/** Automatically calculated, event-based tracking of unreleased changes, grouped by type. Updates asynchronously; see each flag for its tracking scope. */
|
|
90
95
|
unreleasedChanges?: UnreleasedChanges;
|
|
91
96
|
/** Indicates whether this app is a companion app assigned to a specific site or account. */
|
|
92
97
|
companionApp?: boolean | null;
|
|
@@ -141,19 +146,22 @@ declare enum AppType {
|
|
|
141
146
|
type AppTypeWithLiterals = AppType | 'SITE_APP' | 'API_KEY' | 'VELO_APP' | 'HEADLESS' | 'FUNCTION_ACTIVATION_APP';
|
|
142
147
|
interface AppUrls {
|
|
143
148
|
/**
|
|
144
|
-
* App URL used to initiate
|
|
149
|
+
* App URL used to initiate Advanced OAuth, whose use is highly discouraged.
|
|
145
150
|
* @format WEB_URL
|
|
146
151
|
*/
|
|
147
152
|
appUri?: string | null;
|
|
148
153
|
/**
|
|
149
|
-
* Allowed redirect URLs for
|
|
154
|
+
* Allowed redirect URLs for Advanced OAuth, whose use is highly discouraged.
|
|
150
155
|
* @format WEB_URL
|
|
151
156
|
* @maxSize 100
|
|
152
157
|
*/
|
|
153
158
|
redirectUris?: string[];
|
|
154
159
|
/**
|
|
155
160
|
* Allowed post-installation URLs, where Wix redirects the user after installing the app from an external install link.
|
|
156
|
-
*
|
|
161
|
+
* The `postInstallationUrl` must match an entry, unless it is a Wix-managed destination allowed separately.
|
|
162
|
+
* URLs are compared after normalizing whitespace and ignoring query strings and fragments.
|
|
163
|
+
* To replace this list without changing other URL settings, use Update App with
|
|
164
|
+
* `appUrls.postInstallationUrls` in the field mask.
|
|
157
165
|
* @format WEB_URL
|
|
158
166
|
* @maxSize 100
|
|
159
167
|
*/
|
|
@@ -532,8 +540,6 @@ interface GetAppRequest {
|
|
|
532
540
|
* @format GUID
|
|
533
541
|
*/
|
|
534
542
|
appId: string;
|
|
535
|
-
/** Whether to use a consistent read to retrieve the latest stored app data. Default: `false`. */
|
|
536
|
-
consistent?: boolean;
|
|
537
543
|
/**
|
|
538
544
|
* Additional fields to include in the response. Include `APP_SECRETS` to return `app.appSecrets`, which is omitted by default.
|
|
539
545
|
* Retrieving secrets requires authorization to access the app's secrets.
|
|
@@ -1012,7 +1018,7 @@ interface CreateSecondarySecretRequest {
|
|
|
1012
1018
|
* App ID.
|
|
1013
1019
|
* @format GUID
|
|
1014
1020
|
*/
|
|
1015
|
-
appId
|
|
1021
|
+
appId?: string;
|
|
1016
1022
|
/** Latest app revision, available from Get App. An outdated revision is rejected. */
|
|
1017
1023
|
revision?: string;
|
|
1018
1024
|
}
|
|
@@ -1058,9 +1064,9 @@ interface RevokeSecretRequest {
|
|
|
1058
1064
|
* App ID.
|
|
1059
1065
|
* @format GUID
|
|
1060
1066
|
*/
|
|
1061
|
-
appId
|
|
1067
|
+
appId?: string;
|
|
1062
1068
|
/** Credential to revoke. The app must have both a previous and a replacement secret. */
|
|
1063
|
-
secretToRevoke
|
|
1069
|
+
secretToRevoke?: SecretToRevokeWithLiterals;
|
|
1064
1070
|
}
|
|
1065
1071
|
/** Credential to revoke during app-secret rotation. */
|
|
1066
1072
|
declare enum SecretToRevoke {
|
|
@@ -1301,11 +1307,5 @@ declare function getNamespaceSuggestionByName(): __PublicMethodMetaInfo<'GET', {
|
|
|
1301
1307
|
declare function setNamespace(): __PublicMethodMetaInfo<'PATCH', {
|
|
1302
1308
|
appId: string;
|
|
1303
1309
|
}, SetNamespaceRequest$1, SetNamespaceRequest, SetNamespaceResponse$1, SetNamespaceResponse>;
|
|
1304
|
-
declare function createSecondarySecret(): __PublicMethodMetaInfo<'POST', {
|
|
1305
|
-
appId: string;
|
|
1306
|
-
}, CreateSecondarySecretRequest$1, CreateSecondarySecretRequest, CreateSecondarySecretResponse$1, CreateSecondarySecretResponse>;
|
|
1307
|
-
declare function revokeSecret(): __PublicMethodMetaInfo<'POST', {
|
|
1308
|
-
appId: string;
|
|
1309
|
-
}, RevokeSecretRequest$1, RevokeSecretRequest, RevokeSecretResponse$1, RevokeSecretResponse>;
|
|
1310
1310
|
|
|
1311
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, Action as ActionOriginal, type ActionWithLiterals as ActionWithLiteralsOriginal, type ActivateSecondarySecretRequest as ActivateSecondarySecretRequestOriginal, type ActivateSecondarySecretResponse as ActivateSecondarySecretResponseOriginal, type AddressLocation as AddressLocationOriginal, type AppChangedEvent as AppChangedEventOriginal, type AppComponentMetadata as AppComponentMetadataOriginal, type App as AppOriginal, type AppOwnerChangedEvent as AppOwnerChangedEventOriginal, type AppSecrets as AppSecretsOriginal, type AppSlugChanged as AppSlugChangedOriginal, AppType as AppTypeOriginal, type AppTypeWithLiterals as AppTypeWithLiteralsOriginal, type AppUriMessage as AppUriMessageOriginal, type AppUrlsChangedInOldServiceEventChangedUrlOneOf as AppUrlsChangedInOldServiceEventChangedUrlOneOfOriginal, type AppUrlsChangedInOldServiceEvent as AppUrlsChangedInOldServiceEventOriginal, type AppUrls as AppUrlsOriginal, type AppVersionApproved as AppVersionApprovedOriginal, type AppVersionArchived as AppVersionArchivedOriginal, type AppVersionCreated as AppVersionCreatedOriginal, type AppVersionDeclined as AppVersionDeclinedOriginal, type AppVersionDraftChanged as AppVersionDraftChangedOriginal, type AppVersionPublished as AppVersionPublishedOriginal, type AppVersionReleased as AppVersionReleasedOriginal, type AppVersionStateChanged as AppVersionStateChangedOriginal, type AppVersionStateChangedStateOneOf as AppVersionStateChangedStateOneOfOriginal, type AppVersionSubmitted as AppVersionSubmittedOriginal, type AssociateServiceAppRequest as AssociateServiceAppRequestOriginal, type AssociateServiceAppResponse as AssociateServiceAppResponseOriginal, type CompanionAppOptions as CompanionAppOptionsOriginal, type ConsentOptions as ConsentOptionsOriginal, type ContactEmails as ContactEmailsOriginal, type CreateAppRequest as CreateAppRequestOriginal, type CreateAppResponse as CreateAppResponseOriginal, type CreateSecondarySecretRequest as CreateSecondarySecretRequestOriginal, type CreateSecondarySecretResponse as CreateSecondarySecretResponseOriginal, type CreateServiceAppRequest as CreateServiceAppRequestOriginal, type CreateServiceAppResponse as CreateServiceAppResponseOriginal, type CreatedBy as CreatedByOriginal, CreatedByType as CreatedByTypeOriginal, type CreatedByTypeWithLiterals as CreatedByTypeWithLiteralsOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DeleteAppRequest as DeleteAppRequestOriginal, type DeleteAppResponse as DeleteAppResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, ForceCascadeDeleteAppDecision as ForceCascadeDeleteAppDecisionOriginal, type ForceCascadeDeleteAppDecisionWithLiterals as ForceCascadeDeleteAppDecisionWithLiteralsOriginal, type ForceCascadeDeleteAppRequest as ForceCascadeDeleteAppRequestOriginal, type ForceCascadeDeleteAppResponse as ForceCascadeDeleteAppResponseOriginal, type GenerateSlugRequest as GenerateSlugRequestOriginal, type GenerateSlugResponse as GenerateSlugResponseOriginal, type GetAppRequest as GetAppRequestOriginal, type GetAppResponse as GetAppResponseOriginal, type GetNamespaceSuggestionByNameRequest as GetNamespaceSuggestionByNameRequestOriginal, type GetNamespaceSuggestionByNameResponse as GetNamespaceSuggestionByNameResponseOriginal, type GetNamespaceSuggestionRequest as GetNamespaceSuggestionRequestOriginal, type GetNamespaceSuggestionResponse as GetNamespaceSuggestionResponseOriginal, type HostAppConfig as HostAppConfigOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type InstallationPreferencesOpenButtonOptionsOneOf as InstallationPreferencesOpenButtonOptionsOneOfOriginal, type InstallationPreferences as InstallationPreferencesOriginal, LoginPolicy as LoginPolicyOriginal, type LoginPolicyWithLiterals as LoginPolicyWithLiteralsOriginal, type MessageEnvelope as MessageEnvelopeOriginal, NamespaceType as NamespaceTypeOriginal, type NamespaceTypeWithLiterals as NamespaceTypeWithLiteralsOriginal, OpenButtonAction as OpenButtonActionOriginal, type OpenButtonActionWithLiterals as OpenButtonActionWithLiteralsOriginal, type OpenComponentId as OpenComponentIdOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type PartialVersionOptions as PartialVersionOptionsOriginal, PermissionLevel as PermissionLevelOriginal, type PermissionLevelWithLiterals as PermissionLevelWithLiteralsOriginal, type QueryAppRequest as QueryAppRequestOriginal, type QueryAppResponse as QueryAppResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, RedirectTarget as RedirectTargetOriginal, type RedirectTargetWithLiterals as RedirectTargetWithLiteralsOriginal, type RedirectUrlMessage as RedirectUrlMessageOriginal, type RenameCodeIdentifierRequest as RenameCodeIdentifierRequestOriginal, type RenameCodeIdentifierResponse as RenameCodeIdentifierResponseOriginal, type RenameSlugRequest as RenameSlugRequestOriginal, type RenameSlugResponse as RenameSlugResponseOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type RevokeSecretRequest as RevokeSecretRequestOriginal, type RevokeSecretResponse as RevokeSecretResponseOriginal, type RollbackSecretRequest as RollbackSecretRequestOriginal, type RollbackSecretResponse as RollbackSecretResponseOriginal, type RotateSecretRequest as RotateSecretRequestOriginal, type RotateSecretResponse as RotateSecretResponseOriginal, SecretToRevoke as SecretToRevokeOriginal, type SecretToRevokeWithLiterals as SecretToRevokeWithLiteralsOriginal, type SetAppOwnerRequest as SetAppOwnerRequestOriginal, type SetAppOwnerResponse as SetAppOwnerResponseOriginal, type SetCacheableAppRequest as SetCacheableAppRequestOriginal, type SetCacheableAppResponse as SetCacheableAppResponseOriginal, type SetCodeIdentifierRequest as SetCodeIdentifierRequestOriginal, type SetCodeIdentifierResponse as SetCodeIdentifierResponseOriginal, type SetCompanionAppOptionsRequest as SetCompanionAppOptionsRequestOriginal, type SetCompanionAppOptionsResponse as SetCompanionAppOptionsResponseOriginal, type SetComponentsMetadataRequest as SetComponentsMetadataRequestOriginal, type SetComponentsMetadataResponse as SetComponentsMetadataResponseOriginal, type SetExceededSizeRequest as SetExceededSizeRequestOriginal, type SetExceededSizeResponse as SetExceededSizeResponseOriginal, type SetHipaaCompliantRequest as SetHipaaCompliantRequestOriginal, type SetHipaaCompliantResponse as SetHipaaCompliantResponseOriginal, type SetNamespaceRequest as SetNamespaceRequestOriginal, type SetNamespaceResponse as SetNamespaceResponseOriginal, type SetOwnershipTagRequest as SetOwnershipTagRequestOriginal, type SetOwnershipTagResponse as SetOwnershipTagResponseOriginal, type SetPrivateAppRequest as SetPrivateAppRequestOriginal, type SetPrivateAppResponse as SetPrivateAppResponseOriginal, ShowConsentBehaviour as ShowConsentBehaviourOriginal, type ShowConsentBehaviourWithLiterals as ShowConsentBehaviourWithLiteralsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type SuggestCodeIdentifierRequest as SuggestCodeIdentifierRequestOriginal, type SuggestCodeIdentifierResponse as SuggestCodeIdentifierResponseOriginal, TenantType as TenantTypeOriginal, type TenantTypeWithLiterals as TenantTypeWithLiteralsOriginal, UninstallActions as UninstallActionsOriginal, type UninstallActionsWithLiterals as UninstallActionsWithLiteralsOriginal, type UnreleasedChanges as UnreleasedChangesOriginal, type UpdateAppRequest as UpdateAppRequestOriginal, type UpdateAppResponse as UpdateAppResponseOriginal, type UpdateHostAppConfigRequest as UpdateHostAppConfigRequestOriginal, type UpdateHostAppConfigResponse as UpdateHostAppConfigResponseOriginal, type V1App as V1AppOriginal, VersionStatus as VersionStatusOriginal, type VersionStatusWithLiterals as VersionStatusWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createApp,
|
|
1311
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, Action as ActionOriginal, type ActionWithLiterals as ActionWithLiteralsOriginal, type ActivateSecondarySecretRequest as ActivateSecondarySecretRequestOriginal, type ActivateSecondarySecretResponse as ActivateSecondarySecretResponseOriginal, type AddressLocation as AddressLocationOriginal, type AppChangedEvent as AppChangedEventOriginal, type AppComponentMetadata as AppComponentMetadataOriginal, type App as AppOriginal, type AppOwnerChangedEvent as AppOwnerChangedEventOriginal, type AppSecrets as AppSecretsOriginal, type AppSlugChanged as AppSlugChangedOriginal, AppType as AppTypeOriginal, type AppTypeWithLiterals as AppTypeWithLiteralsOriginal, type AppUriMessage as AppUriMessageOriginal, type AppUrlsChangedInOldServiceEventChangedUrlOneOf as AppUrlsChangedInOldServiceEventChangedUrlOneOfOriginal, type AppUrlsChangedInOldServiceEvent as AppUrlsChangedInOldServiceEventOriginal, type AppUrls as AppUrlsOriginal, type AppVersionApproved as AppVersionApprovedOriginal, type AppVersionArchived as AppVersionArchivedOriginal, type AppVersionCreated as AppVersionCreatedOriginal, type AppVersionDeclined as AppVersionDeclinedOriginal, type AppVersionDraftChanged as AppVersionDraftChangedOriginal, type AppVersionPublished as AppVersionPublishedOriginal, type AppVersionReleased as AppVersionReleasedOriginal, type AppVersionStateChanged as AppVersionStateChangedOriginal, type AppVersionStateChangedStateOneOf as AppVersionStateChangedStateOneOfOriginal, type AppVersionSubmitted as AppVersionSubmittedOriginal, type AssociateServiceAppRequest as AssociateServiceAppRequestOriginal, type AssociateServiceAppResponse as AssociateServiceAppResponseOriginal, type CompanionAppOptions as CompanionAppOptionsOriginal, type ConsentOptions as ConsentOptionsOriginal, type ContactEmails as ContactEmailsOriginal, type CreateAppRequest as CreateAppRequestOriginal, type CreateAppResponse as CreateAppResponseOriginal, type CreateSecondarySecretRequest as CreateSecondarySecretRequestOriginal, type CreateSecondarySecretResponse as CreateSecondarySecretResponseOriginal, type CreateServiceAppRequest as CreateServiceAppRequestOriginal, type CreateServiceAppResponse as CreateServiceAppResponseOriginal, type CreatedBy as CreatedByOriginal, CreatedByType as CreatedByTypeOriginal, type CreatedByTypeWithLiterals as CreatedByTypeWithLiteralsOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DeleteAppRequest as DeleteAppRequestOriginal, type DeleteAppResponse as DeleteAppResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, ForceCascadeDeleteAppDecision as ForceCascadeDeleteAppDecisionOriginal, type ForceCascadeDeleteAppDecisionWithLiterals as ForceCascadeDeleteAppDecisionWithLiteralsOriginal, type ForceCascadeDeleteAppRequest as ForceCascadeDeleteAppRequestOriginal, type ForceCascadeDeleteAppResponse as ForceCascadeDeleteAppResponseOriginal, type GenerateSlugRequest as GenerateSlugRequestOriginal, type GenerateSlugResponse as GenerateSlugResponseOriginal, type GetAppRequest as GetAppRequestOriginal, type GetAppResponse as GetAppResponseOriginal, type GetNamespaceSuggestionByNameRequest as GetNamespaceSuggestionByNameRequestOriginal, type GetNamespaceSuggestionByNameResponse as GetNamespaceSuggestionByNameResponseOriginal, type GetNamespaceSuggestionRequest as GetNamespaceSuggestionRequestOriginal, type GetNamespaceSuggestionResponse as GetNamespaceSuggestionResponseOriginal, type HostAppConfig as HostAppConfigOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type InstallationPreferencesOpenButtonOptionsOneOf as InstallationPreferencesOpenButtonOptionsOneOfOriginal, type InstallationPreferences as InstallationPreferencesOriginal, LoginPolicy as LoginPolicyOriginal, type LoginPolicyWithLiterals as LoginPolicyWithLiteralsOriginal, type MessageEnvelope as MessageEnvelopeOriginal, NamespaceType as NamespaceTypeOriginal, type NamespaceTypeWithLiterals as NamespaceTypeWithLiteralsOriginal, OpenButtonAction as OpenButtonActionOriginal, type OpenButtonActionWithLiterals as OpenButtonActionWithLiteralsOriginal, type OpenComponentId as OpenComponentIdOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type PartialVersionOptions as PartialVersionOptionsOriginal, PermissionLevel as PermissionLevelOriginal, type PermissionLevelWithLiterals as PermissionLevelWithLiteralsOriginal, type QueryAppRequest as QueryAppRequestOriginal, type QueryAppResponse as QueryAppResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, RedirectTarget as RedirectTargetOriginal, type RedirectTargetWithLiterals as RedirectTargetWithLiteralsOriginal, type RedirectUrlMessage as RedirectUrlMessageOriginal, type RenameCodeIdentifierRequest as RenameCodeIdentifierRequestOriginal, type RenameCodeIdentifierResponse as RenameCodeIdentifierResponseOriginal, type RenameSlugRequest as RenameSlugRequestOriginal, type RenameSlugResponse as RenameSlugResponseOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type RevokeSecretRequest as RevokeSecretRequestOriginal, type RevokeSecretResponse as RevokeSecretResponseOriginal, type RollbackSecretRequest as RollbackSecretRequestOriginal, type RollbackSecretResponse as RollbackSecretResponseOriginal, type RotateSecretRequest as RotateSecretRequestOriginal, type RotateSecretResponse as RotateSecretResponseOriginal, SecretToRevoke as SecretToRevokeOriginal, type SecretToRevokeWithLiterals as SecretToRevokeWithLiteralsOriginal, type SetAppOwnerRequest as SetAppOwnerRequestOriginal, type SetAppOwnerResponse as SetAppOwnerResponseOriginal, type SetCacheableAppRequest as SetCacheableAppRequestOriginal, type SetCacheableAppResponse as SetCacheableAppResponseOriginal, type SetCodeIdentifierRequest as SetCodeIdentifierRequestOriginal, type SetCodeIdentifierResponse as SetCodeIdentifierResponseOriginal, type SetCompanionAppOptionsRequest as SetCompanionAppOptionsRequestOriginal, type SetCompanionAppOptionsResponse as SetCompanionAppOptionsResponseOriginal, type SetComponentsMetadataRequest as SetComponentsMetadataRequestOriginal, type SetComponentsMetadataResponse as SetComponentsMetadataResponseOriginal, type SetExceededSizeRequest as SetExceededSizeRequestOriginal, type SetExceededSizeResponse as SetExceededSizeResponseOriginal, type SetHipaaCompliantRequest as SetHipaaCompliantRequestOriginal, type SetHipaaCompliantResponse as SetHipaaCompliantResponseOriginal, type SetNamespaceRequest as SetNamespaceRequestOriginal, type SetNamespaceResponse as SetNamespaceResponseOriginal, type SetOwnershipTagRequest as SetOwnershipTagRequestOriginal, type SetOwnershipTagResponse as SetOwnershipTagResponseOriginal, type SetPrivateAppRequest as SetPrivateAppRequestOriginal, type SetPrivateAppResponse as SetPrivateAppResponseOriginal, ShowConsentBehaviour as ShowConsentBehaviourOriginal, type ShowConsentBehaviourWithLiterals as ShowConsentBehaviourWithLiteralsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type SuggestCodeIdentifierRequest as SuggestCodeIdentifierRequestOriginal, type SuggestCodeIdentifierResponse as SuggestCodeIdentifierResponseOriginal, TenantType as TenantTypeOriginal, type TenantTypeWithLiterals as TenantTypeWithLiteralsOriginal, UninstallActions as UninstallActionsOriginal, type UninstallActionsWithLiterals as UninstallActionsWithLiteralsOriginal, type UnreleasedChanges as UnreleasedChangesOriginal, type UpdateAppRequest as UpdateAppRequestOriginal, type UpdateAppResponse as UpdateAppResponseOriginal, type UpdateHostAppConfigRequest as UpdateHostAppConfigRequestOriginal, type UpdateHostAppConfigResponse as UpdateHostAppConfigResponseOriginal, type V1App as V1AppOriginal, VersionStatus as VersionStatusOriginal, type VersionStatusWithLiterals as VersionStatusWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createApp, generateSlug, getApp, getNamespaceSuggestion, getNamespaceSuggestionByName, setNamespace, updateApp };
|
package/build/es/meta.mjs
CHANGED
|
@@ -11,7 +11,6 @@ var TRANSFORM_PATHS_0 = [
|
|
|
11
11
|
{ path: "app.appSecrets.previousSecretRevokeDate" }
|
|
12
12
|
];
|
|
13
13
|
var TRANSFORM_PATHS_1 = [{ path: "mask" }];
|
|
14
|
-
var TRANSFORM_PATHS_2 = [{ path: "previousSecretRevokeAt" }];
|
|
15
14
|
function resolveWixDevcenterAppsV1AppsServiceUrl(opts) {
|
|
16
15
|
const domainToMappings = {
|
|
17
16
|
"editor._base_domain_": [
|
|
@@ -101,6 +100,12 @@ function resolveWixDevcenterAppsV1AppsServiceUrl(opts) {
|
|
|
101
100
|
srcPath: "/apps/v1/apps",
|
|
102
101
|
destPath: "/v1/apps"
|
|
103
102
|
}
|
|
103
|
+
],
|
|
104
|
+
"api._api_base_domain_": [
|
|
105
|
+
{
|
|
106
|
+
srcPath: "/apps-service",
|
|
107
|
+
destPath: ""
|
|
108
|
+
}
|
|
104
109
|
]
|
|
105
110
|
};
|
|
106
111
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
@@ -293,60 +298,6 @@ function setNamespace(payload) {
|
|
|
293
298
|
}
|
|
294
299
|
return __setNamespace;
|
|
295
300
|
}
|
|
296
|
-
function createSecondarySecret(payload) {
|
|
297
|
-
function __createSecondarySecret({ host }) {
|
|
298
|
-
const metadata = {
|
|
299
|
-
entityFqdn: "wix.devcenter.apps.v1.app",
|
|
300
|
-
method: "POST",
|
|
301
|
-
methodFqn: "wix.devcenter.apps.v1.AppsService.CreateSecondarySecret",
|
|
302
|
-
packageName: PACKAGE_NAME,
|
|
303
|
-
migrationOptions: {
|
|
304
|
-
optInTransformResponse: true
|
|
305
|
-
},
|
|
306
|
-
url: resolveWixDevcenterAppsV1AppsServiceUrl({
|
|
307
|
-
protoPath: "/v1/apps/{appId}/secrets/secondary",
|
|
308
|
-
data: payload,
|
|
309
|
-
host
|
|
310
|
-
}),
|
|
311
|
-
data: payload,
|
|
312
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
313
|
-
{
|
|
314
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
315
|
-
paths: TRANSFORM_PATHS_0
|
|
316
|
-
}
|
|
317
|
-
])
|
|
318
|
-
};
|
|
319
|
-
return metadata;
|
|
320
|
-
}
|
|
321
|
-
return __createSecondarySecret;
|
|
322
|
-
}
|
|
323
|
-
function revokeSecret(payload) {
|
|
324
|
-
function __revokeSecret({ host }) {
|
|
325
|
-
const metadata = {
|
|
326
|
-
entityFqdn: "wix.devcenter.apps.v1.app",
|
|
327
|
-
method: "POST",
|
|
328
|
-
methodFqn: "wix.devcenter.apps.v1.AppsService.RevokeSecret",
|
|
329
|
-
packageName: PACKAGE_NAME,
|
|
330
|
-
migrationOptions: {
|
|
331
|
-
optInTransformResponse: true
|
|
332
|
-
},
|
|
333
|
-
url: resolveWixDevcenterAppsV1AppsServiceUrl({
|
|
334
|
-
protoPath: "/v1/apps/{appId}/secrets/revoke",
|
|
335
|
-
data: payload,
|
|
336
|
-
host
|
|
337
|
-
}),
|
|
338
|
-
data: payload,
|
|
339
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
340
|
-
{
|
|
341
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
342
|
-
paths: TRANSFORM_PATHS_2
|
|
343
|
-
}
|
|
344
|
-
])
|
|
345
|
-
};
|
|
346
|
-
return metadata;
|
|
347
|
-
}
|
|
348
|
-
return __revokeSecret;
|
|
349
|
-
}
|
|
350
301
|
|
|
351
302
|
// src/devcenter-apps-v1-app-apps.types.ts
|
|
352
303
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
@@ -596,42 +547,6 @@ function setNamespace2() {
|
|
|
596
547
|
__originalResponseType: null
|
|
597
548
|
};
|
|
598
549
|
}
|
|
599
|
-
function createSecondarySecret2() {
|
|
600
|
-
const payload = { appId: ":appId" };
|
|
601
|
-
const getRequestOptions = createSecondarySecret(payload);
|
|
602
|
-
const getUrl = (context) => {
|
|
603
|
-
const { url } = getRequestOptions(context);
|
|
604
|
-
return url;
|
|
605
|
-
};
|
|
606
|
-
return {
|
|
607
|
-
getUrl,
|
|
608
|
-
httpMethod: "POST",
|
|
609
|
-
path: "/v1/apps/{appId}/secrets/secondary",
|
|
610
|
-
pathParams: { appId: "appId" },
|
|
611
|
-
__requestType: null,
|
|
612
|
-
__originalRequestType: null,
|
|
613
|
-
__responseType: null,
|
|
614
|
-
__originalResponseType: null
|
|
615
|
-
};
|
|
616
|
-
}
|
|
617
|
-
function revokeSecret2() {
|
|
618
|
-
const payload = { appId: ":appId" };
|
|
619
|
-
const getRequestOptions = revokeSecret(payload);
|
|
620
|
-
const getUrl = (context) => {
|
|
621
|
-
const { url } = getRequestOptions(context);
|
|
622
|
-
return url;
|
|
623
|
-
};
|
|
624
|
-
return {
|
|
625
|
-
getUrl,
|
|
626
|
-
httpMethod: "POST",
|
|
627
|
-
path: "/v1/apps/{appId}/secrets/revoke",
|
|
628
|
-
pathParams: { appId: "appId" },
|
|
629
|
-
__requestType: null,
|
|
630
|
-
__originalRequestType: null,
|
|
631
|
-
__responseType: null,
|
|
632
|
-
__originalResponseType: null
|
|
633
|
-
};
|
|
634
|
-
}
|
|
635
550
|
export {
|
|
636
551
|
Action as ActionOriginal,
|
|
637
552
|
AppType as AppTypeOriginal,
|
|
@@ -652,12 +567,10 @@ export {
|
|
|
652
567
|
VersionStatus as VersionStatusOriginal,
|
|
653
568
|
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
654
569
|
createApp2 as createApp,
|
|
655
|
-
createSecondarySecret2 as createSecondarySecret,
|
|
656
570
|
generateSlug2 as generateSlug,
|
|
657
571
|
getApp2 as getApp,
|
|
658
572
|
getNamespaceSuggestion2 as getNamespaceSuggestion,
|
|
659
573
|
getNamespaceSuggestionByName2 as getNamespaceSuggestionByName,
|
|
660
|
-
revokeSecret2 as revokeSecret,
|
|
661
574
|
setNamespace2 as setNamespace,
|
|
662
575
|
updateApp2 as updateApp
|
|
663
576
|
};
|