diff --git a/packages/nodes-base/nodes/Zulip/StreamDescription.ts b/packages/nodes-base/nodes/Zulip/StreamDescription.ts index c5969af4e..27c9c1044 100644 --- a/packages/nodes-base/nodes/Zulip/StreamDescription.ts +++ b/packages/nodes-base/nodes/Zulip/StreamDescription.ts @@ -33,11 +33,11 @@ export const streamOperations = [ value: 'getSubscribed', description: 'Get subscribed streams.', }, - // { - // name: 'Update', - // value: 'update', - // description: 'Update a stream.', - // }, + { + name: 'Update', + value: 'update', + description: 'Update a stream.', + }, ], default: 'create', description: 'The operation to perform.', @@ -48,51 +48,6 @@ export const streamFields = [ /* -------------------------------------------------------------------------- */ /* stream:create */ /* -------------------------------------------------------------------------- */ - { - displayName: 'Subscriptions', - name: 'subscriptions', - type: 'fixedCollection', - required: true, - default: '', - description: 'A list of dictionaries containing the the key name and value specifying the name of the stream to subscribe. If the stream does not exist a new stream is created.', - displayOptions: { - show: { - resource: [ - 'stream', - ], - operation: [ - 'create', - ], - }, - }, - typeOptions: { - multipleValues: true, - }, - options: [ - { - displayName: 'Subscription Properties', - name: 'properties', - values: [ - { - displayName: 'Name', - name: 'name', - type: 'string', - required: true, - default: '', - description: 'Name of Subscription.', - }, - { - displayName: 'Description', - name: 'description', - type: 'string', - required: true, - default: '', - description: 'Description of Subscription.', - } - ], - }, - ], - }, { displayName: 'JSON Parameters', name: 'jsonParameters', diff --git a/packages/nodes-base/nodes/Zulip/UserDescription.ts b/packages/nodes-base/nodes/Zulip/UserDescription.ts index 5a30b9c0a..8ca33bad1 100644 --- a/packages/nodes-base/nodes/Zulip/UserDescription.ts +++ b/packages/nodes-base/nodes/Zulip/UserDescription.ts @@ -33,11 +33,11 @@ export const userOperations = [ value: 'getAll', description: 'Get all users.', }, - // { - // name: 'Update', - // value: 'update', - // description: 'Update a user.', - // }, + { + name: 'Update', + value: 'update', + description: 'Update a user.', + }, ], default: 'create', description: 'The operation to perform.', diff --git a/packages/nodes-base/nodes/Zulip/Zulip.node.ts b/packages/nodes-base/nodes/Zulip/Zulip.node.ts index 625f60f23..3c6261a37 100644 --- a/packages/nodes-base/nodes/Zulip/Zulip.node.ts +++ b/packages/nodes-base/nodes/Zulip/Zulip.node.ts @@ -263,9 +263,8 @@ export class Zulip implements INodeType { if (operation === 'create') { const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean; - const subscriptions = this.getNodeParameter('subscriptions', i) as IDataObject[]; + const subscriptions = this.getNodeParameter('subscriptions', i) as IDataObject; - //@ts-ignore body.subscriptions = JSON.stringify(subscriptions.properties); if (jsonParameters) {