From 58501e217f253f3375416c2749e17c4235d3913e Mon Sep 17 00:00:00 2001 From: Scaleway Bot Date: Fri, 13 Oct 2023 15:49:07 +0200 Subject: [PATCH] feat(serverless): add mnq_nats_account_id in trigger responses (#931) --- .../src/api/container/v1beta1/marshalling.gen.ts | 1 + .../clients/src/api/container/v1beta1/types.gen.ts | 13 +++++++++---- .../src/api/function/v1beta1/marshalling.gen.ts | 1 + .../clients/src/api/function/v1beta1/types.gen.ts | 13 +++++++++---- 4 files changed, 20 insertions(+), 8 deletions(-) diff --git a/packages/clients/src/api/container/v1beta1/marshalling.gen.ts b/packages/clients/src/api/container/v1beta1/marshalling.gen.ts index 80f45b0a6..f62f36e04 100644 --- a/packages/clients/src/api/container/v1beta1/marshalling.gen.ts +++ b/packages/clients/src/api/container/v1beta1/marshalling.gen.ts @@ -64,6 +64,7 @@ const unmarshalTriggerMnqNatsClientConfig = (data: unknown) => { return { mnqCredentialId: data.mnq_credential_id, mnqNamespaceId: data.mnq_namespace_id, + mnqNatsAccountId: data.mnq_nats_account_id, mnqProjectId: data.mnq_project_id, mnqRegion: data.mnq_region, subject: data.subject, diff --git a/packages/clients/src/api/container/v1beta1/types.gen.ts b/packages/clients/src/api/container/v1beta1/types.gen.ts index 91eb5a2cc..1ba6efa71 100644 --- a/packages/clients/src/api/container/v1beta1/types.gen.ts +++ b/packages/clients/src/api/container/v1beta1/types.gen.ts @@ -155,7 +155,8 @@ export interface Container { } export interface CreateTriggerRequestMnqNatsClientConfig { - mnqNamespaceId: string + /** @deprecated */ + mnqNamespaceId?: string subject: string mnqProjectId: string mnqRegion: string @@ -163,7 +164,8 @@ export interface CreateTriggerRequestMnqNatsClientConfig { } export interface CreateTriggerRequestMnqSqsClientConfig { - mnqNamespaceId: string + /** @deprecated */ + mnqNamespaceId?: string queue: string mnqProjectId: string mnqRegion: string @@ -361,15 +363,18 @@ export interface Trigger { } export interface TriggerMnqNatsClientConfig { - mnqNamespaceId: string + /** @deprecated */ + mnqNamespaceId?: string subject: string mnqProjectId: string mnqRegion: string mnqCredentialId?: string + mnqNatsAccountId: string } export interface TriggerMnqSqsClientConfig { - mnqNamespaceId: string + /** @deprecated */ + mnqNamespaceId?: string queue: string mnqProjectId: string mnqRegion: string diff --git a/packages/clients/src/api/function/v1beta1/marshalling.gen.ts b/packages/clients/src/api/function/v1beta1/marshalling.gen.ts index d6fee9c8d..56b952465 100644 --- a/packages/clients/src/api/function/v1beta1/marshalling.gen.ts +++ b/packages/clients/src/api/function/v1beta1/marshalling.gen.ts @@ -68,6 +68,7 @@ const unmarshalTriggerMnqNatsClientConfig = (data: unknown) => { return { mnqCredentialId: data.mnq_credential_id, mnqNamespaceId: data.mnq_namespace_id, + mnqNatsAccountId: data.mnq_nats_account_id, mnqProjectId: data.mnq_project_id, mnqRegion: data.mnq_region, subject: data.subject, diff --git a/packages/clients/src/api/function/v1beta1/types.gen.ts b/packages/clients/src/api/function/v1beta1/types.gen.ts index c99ecc00f..65f597f7c 100644 --- a/packages/clients/src/api/function/v1beta1/types.gen.ts +++ b/packages/clients/src/api/function/v1beta1/types.gen.ts @@ -133,7 +133,8 @@ export type TriggerStatus = | 'pending' export interface CreateTriggerRequestMnqNatsClientConfig { - mnqNamespaceId: string + /** @deprecated */ + mnqNamespaceId?: string subject: string mnqProjectId: string mnqRegion: string @@ -141,7 +142,8 @@ export interface CreateTriggerRequestMnqNatsClientConfig { } export interface CreateTriggerRequestMnqSqsClientConfig { - mnqNamespaceId: string + /** @deprecated */ + mnqNamespaceId?: string queue: string mnqProjectId: string mnqRegion: string @@ -420,15 +422,18 @@ export interface Trigger { } export interface TriggerMnqNatsClientConfig { - mnqNamespaceId: string + /** @deprecated */ + mnqNamespaceId?: string subject: string mnqProjectId: string mnqRegion: string mnqCredentialId?: string + mnqNatsAccountId: string } export interface TriggerMnqSqsClientConfig { - mnqNamespaceId: string + /** @deprecated */ + mnqNamespaceId?: string queue: string mnqProjectId: string mnqRegion: string