Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,254 @@
import {
ApidomCompletionItem,
CompletionFormat,
CompletionType,
} from '../../../../../../apidom-language-types';

const completion: ApidomCompletionItem[] = [
{
label: 'expiration',
insertText: 'expiration',
kind: 14,
format: CompletionFormat.UNQUOTED,
type: CompletionType.PROPERTY,
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value:
'`integer`\n\\\n\\\nTTL (Time-To-Live) for the message. It MUST be greater than or equal to zero.',
},
conditions: [
{
targets: [{ path: 'bindingVersion' }],
function: 'apilintValueOrArray',
params: [['0.1.0']],
},
],
},
{
label: 'userId',
insertText: 'userId',
kind: 14,
format: CompletionFormat.QUOTED,
type: CompletionType.PROPERTY,
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value: 'Identifies the user who has sent the message.',
},
conditions: [
{
targets: [{ path: 'bindingVersion' }],
function: 'apilintValueOrArray',
params: [['0.1.0']],
},
],
},
{
label: 'cc',
insertText: 'cc',
kind: 14,
format: CompletionFormat.ARRAY,
type: CompletionType.PROPERTY,
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value:
'[string]`\n\\\n\\\nThe routing keys the message should be routed to at the time of publishing.',
},
conditions: [
{
targets: [{ path: 'bindingVersion' }],
function: 'apilintValueOrArray',
params: [['0.1.0']],
},
],
},
{
label: 'priority',
insertText: 'priority',
kind: 14,
format: CompletionFormat.UNQUOTED,
type: CompletionType.PROPERTY,
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value: '`integer`\n\\\n\\\nA priority for the message.',
},
conditions: [
{
targets: [{ path: 'bindingVersion' }],
function: 'apilintValueOrArray',
params: [['0.1.0']],
},
],
},
{
label: 'deliveryMode',
insertText: 'deliveryMode',
kind: 14,
format: CompletionFormat.UNQUOTED,
type: CompletionType.PROPERTY,
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value:
'`integer`\n\\\n\\\nDelivery mode of the message. Its value MUST be either 1 (transient) or 2 (persistent).',
},
conditions: [
{
targets: [{ path: 'bindingVersion' }],
function: 'apilintValueOrArray',
params: [['0.1.0']],
},
],
},
{
label: 'mandatory',
insertText: 'mandatory',
kind: 14,
format: CompletionFormat.UNQUOTED,
type: CompletionType.PROPERTY,
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value: '`boolean`\n\\\n\\\nWhether the message is mandatory or not.',
},
conditions: [
{
targets: [{ path: 'bindingVersion' }],
function: 'apilintValueOrArray',
params: [['0.1.0']],
},
],
},
{
label: 'bcc',
insertText: 'bcc',
kind: 14,
format: CompletionFormat.ARRAY,
type: CompletionType.PROPERTY,
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value: '`[string]`\n\\\n\\\nLike cc but consumers will not receive this information.',
},
conditions: [
{
targets: [{ path: 'bindingVersion' }],
function: 'apilintValueOrArray',
params: [['0.1.0']],
},
],
},
{
label: 'replyTo',
insertText: 'replyTo',
kind: 14,
format: CompletionFormat.QUOTED,
type: CompletionType.PROPERTY,
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value: '`boolean`\n\\\n\\\nName of the queue where the consumer should send the response.',
},
conditions: [
{
targets: [{ path: 'bindingVersion' }],
function: 'apilintValueOrArray',
params: [['0.1.0']],
},
],
},
{
label: 'timestamp',
insertText: 'timestamp',
kind: 14,
format: CompletionFormat.UNQUOTED,
type: CompletionType.PROPERTY,
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value: '`boolean`\n\\\n\\\nWhether the message should include a timestamp or not.',
},
conditions: [
{
targets: [{ path: 'bindingVersion' }],
function: 'apilintValueOrArray',
params: [['0.1.0']],
},
],
},
{
label: 'ack',
insertText: 'ack',
kind: 14,
format: CompletionFormat.UNQUOTED,
type: CompletionType.PROPERTY,
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value: '`boolean`\n\\\n\\\nWhether the consumer should ack the message or not.',
},
conditions: [
{
targets: [{ path: 'bindingVersion' }],
function: 'apilintValueOrArray',
params: [['0.1.0']],
},
],
},
{
label: 'bindingVersion',
insertText: 'bindingVersion',
kind: 14,
format: CompletionFormat.QUOTED,
type: CompletionType.PROPERTY,
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value: 'The version of this binding. If omitted, "0.2.0" MUST be assumed.',
},
conditions: [
{
targets: [{ path: 'bindingVersion' }],
function: 'apilintValueOrArray',
params: [['0.1.0']],
},
],
},
{
target: 'deliveryMode',
label: '1',
insertText: '1',
kind: 12,
format: CompletionFormat.UNQUOTED,
type: CompletionType.VALUE,
insertTextFormat: 2,
conditions: [
{
targets: [{ path: 'bindingVersion' }],
function: 'apilintValueOrArray',
params: [['0.1.0']],
},
],
},
{
target: 'deliveryMode',
label: '2',
insertText: '2',
kind: 12,
format: CompletionFormat.UNQUOTED,
type: CompletionType.VALUE,
insertTextFormat: 2,
conditions: [
{
targets: [{ path: 'bindingVersion' }],
function: 'apilintValueOrArray',
params: [['0.1.0']],
},
],
},
];

export default completion;
Loading