diff --git a/web/src/elements/oauth/UserCodeList.ts b/web/src/elements/oauth/UserCodeList.ts index a7a5b1aa9..ad75e690a 100644 --- a/web/src/elements/oauth/UserCodeList.ts +++ b/web/src/elements/oauth/UserCodeList.ts @@ -45,7 +45,7 @@ export class UserOAuthCodeList extends Table { .obj=${item} objectLabel=${t`Authorization Code`} .delete=${() => { - return new Oauth2Api(DEFAULT_CONFIG).oauth2AuthorizationCodesDelete({ + return new Oauth2Api(DEFAULT_CONFIG).oauth2AuthorizationCodesDestroy({ id: item.pk || 0, }); }}> diff --git a/web/src/elements/oauth/UserRefreshList.ts b/web/src/elements/oauth/UserRefreshList.ts index 5cb6ef1f7..413db9219 100644 --- a/web/src/elements/oauth/UserRefreshList.ts +++ b/web/src/elements/oauth/UserRefreshList.ts @@ -45,7 +45,7 @@ export class UserOAuthRefreshList extends Table { .obj=${item} objectLabel=${t`Refresh Code`} .delete=${() => { - return new Oauth2Api(DEFAULT_CONFIG).oauth2RefreshTokensDelete({ + return new Oauth2Api(DEFAULT_CONFIG).oauth2RefreshTokensDestroy({ id: item.pk || 0, }); }}> diff --git a/web/src/elements/user/UserConsentList.ts b/web/src/elements/user/UserConsentList.ts index 7067adda5..15be03cfe 100644 --- a/web/src/elements/user/UserConsentList.ts +++ b/web/src/elements/user/UserConsentList.ts @@ -41,7 +41,7 @@ export class UserConsentList extends Table { .obj=${item} objectLabel=${t`Consent`} .delete=${() => { - return new CoreApi(DEFAULT_CONFIG).coreUserConsentDelete({ + return new CoreApi(DEFAULT_CONFIG).coreUserConsentDestroy({ id: item.pk || 0, }); }}> diff --git a/web/src/pages/applications/ApplicationListPage.ts b/web/src/pages/applications/ApplicationListPage.ts index 3bdebecc8..e1dc6a4b2 100644 --- a/web/src/pages/applications/ApplicationListPage.ts +++ b/web/src/pages/applications/ApplicationListPage.ts @@ -104,7 +104,7 @@ export class ApplicationListPage extends TablePage { .obj=${item} objectLabel=${t`Application`} .delete=${() => { - return new CoreApi(DEFAULT_CONFIG).coreApplicationsDelete({ + return new CoreApi(DEFAULT_CONFIG).coreApplicationsDestroy({ slug: item.slug || "" }); }}> diff --git a/web/src/pages/crypto/CertificateKeyPairListPage.ts b/web/src/pages/crypto/CertificateKeyPairListPage.ts index 8a9c81665..41a3c5446 100644 --- a/web/src/pages/crypto/CertificateKeyPairListPage.ts +++ b/web/src/pages/crypto/CertificateKeyPairListPage.ts @@ -80,7 +80,7 @@ export class CertificateKeyPairListPage extends TablePage { .obj=${item} objectLabel=${t`Certificate-Key Pair`} .delete=${() => { - return new CryptoApi(DEFAULT_CONFIG).cryptoCertificatekeypairsDelete({ + return new CryptoApi(DEFAULT_CONFIG).cryptoCertificatekeypairsDestroy({ kpUuid: item.pk || "" }); }}> diff --git a/web/src/pages/events/RuleListPage.ts b/web/src/pages/events/RuleListPage.ts index 3852fd293..e4ac3f123 100644 --- a/web/src/pages/events/RuleListPage.ts +++ b/web/src/pages/events/RuleListPage.ts @@ -74,7 +74,7 @@ export class RuleListPage extends TablePage { .obj=${item} objectLabel=${t`Notification rule`} .delete=${() => { - return new EventsApi(DEFAULT_CONFIG).eventsRulesDelete({ + return new EventsApi(DEFAULT_CONFIG).eventsRulesDestroy({ pbmUuid: item.pk || "" }); }}> diff --git a/web/src/pages/events/TransportListPage.ts b/web/src/pages/events/TransportListPage.ts index cf3ab4a16..870149347 100644 --- a/web/src/pages/events/TransportListPage.ts +++ b/web/src/pages/events/TransportListPage.ts @@ -78,7 +78,7 @@ export class TransportListPage extends TablePage { .obj=${item} objectLabel=${t`Notifications Transport`} .delete=${() => { - return new EventsApi(DEFAULT_CONFIG).eventsTransportsDelete({ + return new EventsApi(DEFAULT_CONFIG).eventsTransportsDestroy({ uuid: item.pk || "" }); }}> diff --git a/web/src/pages/flows/BoundStagesList.ts b/web/src/pages/flows/BoundStagesList.ts index cc602929a..4af81f8c2 100644 --- a/web/src/pages/flows/BoundStagesList.ts +++ b/web/src/pages/flows/BoundStagesList.ts @@ -83,7 +83,7 @@ export class BoundStagesList extends Table { .obj=${item} objectLabel=${t`Stage binding`} .delete=${() => { - return new FlowsApi(DEFAULT_CONFIG).flowsBindingsDelete({ + return new FlowsApi(DEFAULT_CONFIG).flowsBindingsDestroy({ fsbUuid: item.pk || "", }); }}> diff --git a/web/src/pages/flows/FlowListPage.ts b/web/src/pages/flows/FlowListPage.ts index 89e9d041d..741097e25 100644 --- a/web/src/pages/flows/FlowListPage.ts +++ b/web/src/pages/flows/FlowListPage.ts @@ -78,7 +78,7 @@ export class FlowListPage extends TablePage { .obj=${item} objectLabel=${t`Flow`} .delete=${() => { - return new FlowsApi(DEFAULT_CONFIG).flowsInstancesDelete({ + return new FlowsApi(DEFAULT_CONFIG).flowsInstancesDestroy({ slug: item.slug }); }}> diff --git a/web/src/pages/groups/GroupListPage.ts b/web/src/pages/groups/GroupListPage.ts index 9c2d71bec..69ef0eda1 100644 --- a/web/src/pages/groups/GroupListPage.ts +++ b/web/src/pages/groups/GroupListPage.ts @@ -73,7 +73,7 @@ export class GroupListPage extends TablePage { .obj=${item} objectLabel=${t`Group`} .delete=${() => { - return new CoreApi(DEFAULT_CONFIG).coreGroupsDelete({ + return new CoreApi(DEFAULT_CONFIG).coreGroupsDestroy({ groupUuid: item.pk || "" }); }}> diff --git a/web/src/pages/outposts/OutpostListPage.ts b/web/src/pages/outposts/OutpostListPage.ts index 02118d1f5..83e0260ec 100644 --- a/web/src/pages/outposts/OutpostListPage.ts +++ b/web/src/pages/outposts/OutpostListPage.ts @@ -76,7 +76,7 @@ export class OutpostListPage extends TablePage { .obj=${item} objectLabel=${t`Outpost`} .delete=${() => { - return new OutpostsApi(DEFAULT_CONFIG).outpostsOutpostsDelete({ + return new OutpostsApi(DEFAULT_CONFIG).outpostsOutpostsDestroy({ uuid: item.pk || "" }); }}> diff --git a/web/src/pages/outposts/ServiceConnectionListPage.ts b/web/src/pages/outposts/ServiceConnectionListPage.ts index 14232fb61..e5844acee 100644 --- a/web/src/pages/outposts/ServiceConnectionListPage.ts +++ b/web/src/pages/outposts/ServiceConnectionListPage.ts @@ -94,7 +94,7 @@ export class OutpostServiceConnectionListPage extends TablePage { - return new OutpostsApi(DEFAULT_CONFIG).outpostsServiceConnectionsAllDelete({ + return new OutpostsApi(DEFAULT_CONFIG).outpostsServiceConnectionsAllDestroy({ uuid: item.pk || "" }); }}> diff --git a/web/src/pages/policies/BoundPoliciesList.ts b/web/src/pages/policies/BoundPoliciesList.ts index a7a9bf21a..2d4eaf0b7 100644 --- a/web/src/pages/policies/BoundPoliciesList.ts +++ b/web/src/pages/policies/BoundPoliciesList.ts @@ -138,7 +138,7 @@ export class BoundPoliciesList extends Table { .obj=${item} objectLabel=${t`Policy binding`} .delete=${() => { - return new PoliciesApi(DEFAULT_CONFIG).policiesBindingsDelete({ + return new PoliciesApi(DEFAULT_CONFIG).policiesBindingsDestroy({ policyBindingUuid: item.pk || "", }); }}> diff --git a/web/src/pages/policies/PolicyListPage.ts b/web/src/pages/policies/PolicyListPage.ts index 3acf2f101..c8eb49c7c 100644 --- a/web/src/pages/policies/PolicyListPage.ts +++ b/web/src/pages/policies/PolicyListPage.ts @@ -107,7 +107,7 @@ export class PolicyListPage extends TablePage { .obj=${item} objectLabel=${t`Policy`} .delete=${() => { - return new PoliciesApi(DEFAULT_CONFIG).policiesAllDelete({ + return new PoliciesApi(DEFAULT_CONFIG).policiesAllDestroy({ policyUuid: item.pk || "" }); }}> diff --git a/web/src/pages/property-mappings/PropertyMappingListPage.ts b/web/src/pages/property-mappings/PropertyMappingListPage.ts index 743f2bf84..af904fdfb 100644 --- a/web/src/pages/property-mappings/PropertyMappingListPage.ts +++ b/web/src/pages/property-mappings/PropertyMappingListPage.ts @@ -98,7 +98,7 @@ export class PropertyMappingListPage extends TablePage { .obj=${item} objectLabel=${t`Property Mapping`} .delete=${() => { - return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsAllDelete({ + return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsAllDestroy({ pmUuid: item.pk || "" }); }}> diff --git a/web/src/pages/providers/ProviderListPage.ts b/web/src/pages/providers/ProviderListPage.ts index 233ede457..951f4368a 100644 --- a/web/src/pages/providers/ProviderListPage.ts +++ b/web/src/pages/providers/ProviderListPage.ts @@ -91,7 +91,7 @@ export class ProviderListPage extends TablePage { .obj=${item} objectLabel=${t`Provider`} .delete=${() => { - return new ProvidersApi(DEFAULT_CONFIG).providersAllDelete({ + return new ProvidersApi(DEFAULT_CONFIG).providersAllDestroy({ id: item.pk || 0 }); }}> diff --git a/web/src/pages/sources/SourcesListPage.ts b/web/src/pages/sources/SourcesListPage.ts index a2c4d6121..decbf2baa 100644 --- a/web/src/pages/sources/SourcesListPage.ts +++ b/web/src/pages/sources/SourcesListPage.ts @@ -87,7 +87,7 @@ export class SourceListPage extends TablePage { .obj=${item} objectLabel=${t`Source`} .delete=${() => { - return new SourcesApi(DEFAULT_CONFIG).sourcesAllDelete({ + return new SourcesApi(DEFAULT_CONFIG).sourcesAllDestroy({ slug: item.slug || "" }); }}> diff --git a/web/src/pages/stages/StageListPage.ts b/web/src/pages/stages/StageListPage.ts index 17f62e267..59ce49b37 100644 --- a/web/src/pages/stages/StageListPage.ts +++ b/web/src/pages/stages/StageListPage.ts @@ -102,7 +102,7 @@ export class StageListPage extends TablePage { .obj=${item} objectLabel=${item.verboseName || ""} .delete=${() => { - return new StagesApi(DEFAULT_CONFIG).stagesAllDelete({ + return new StagesApi(DEFAULT_CONFIG).stagesAllDestroy({ stageUuid: item.pk || "" }); }}> diff --git a/web/src/pages/stages/invitation/InvitationListPage.ts b/web/src/pages/stages/invitation/InvitationListPage.ts index c6c30ea31..788f03474 100644 --- a/web/src/pages/stages/invitation/InvitationListPage.ts +++ b/web/src/pages/stages/invitation/InvitationListPage.ts @@ -59,7 +59,7 @@ export class InvitationListPage extends TablePage { .obj=${item} objectLabel=${t`Prompt`} .delete=${() => { - return new StagesApi(DEFAULT_CONFIG).stagesInvitationInvitationsDelete({ + return new StagesApi(DEFAULT_CONFIG).stagesInvitationInvitationsDestroy({ inviteUuid: item.pk || "" }); }}> diff --git a/web/src/pages/stages/prompt/PromptListPage.ts b/web/src/pages/stages/prompt/PromptListPage.ts index 5cdf6af94..cc2ef4210 100644 --- a/web/src/pages/stages/prompt/PromptListPage.ts +++ b/web/src/pages/stages/prompt/PromptListPage.ts @@ -78,7 +78,7 @@ export class PromptListPage extends TablePage { .obj=${item} objectLabel=${t`Prompt`} .delete=${() => { - return new StagesApi(DEFAULT_CONFIG).stagesPromptPromptsDelete({ + return new StagesApi(DEFAULT_CONFIG).stagesPromptPromptsDestroy({ promptUuid: item.pk || "" }); }}> diff --git a/web/src/pages/tokens/TokenListPage.ts b/web/src/pages/tokens/TokenListPage.ts index b34bc5a52..a3fd39b45 100644 --- a/web/src/pages/tokens/TokenListPage.ts +++ b/web/src/pages/tokens/TokenListPage.ts @@ -59,7 +59,7 @@ export class TokenListPage extends TablePage { .obj=${item} objectLabel=${t`Token`} .delete=${() => { - return new CoreApi(DEFAULT_CONFIG).coreTokensDelete({ + return new CoreApi(DEFAULT_CONFIG).coreTokensDestroy({ identifier: item.identifier }); }}> diff --git a/web/src/pages/user-settings/settings/SourceSettingsOAuth.ts b/web/src/pages/user-settings/settings/SourceSettingsOAuth.ts index a3d1eeeff..fa94b7f7e 100644 --- a/web/src/pages/user-settings/settings/SourceSettingsOAuth.ts +++ b/web/src/pages/user-settings/settings/SourceSettingsOAuth.ts @@ -31,7 +31,7 @@ export class SourceSettingsOAuth extends BaseUserSettings { return html`

${t`Connected.`}