Const Constants
Constants: { TLS: "tls"; aadEventHubsAudience: "https://eventhubs.azure.net/"; aadEventHubsScope: "https://eventhubs.azure.net//.default"; aadServiceBusAudience: "https://servicebus.azure.net/"; aadServiceBusScope: "https://servicebus.azure.net//.default"; aadTokenValidityMarginInMs: 5000; associatedLinkName: "associated-link-name"; attachEpoch: "com.microsoft:epoch"; cbsEndpoint: "$cbs"; cbsReplyTo: "cbs"; connectionError: "connection_error"; connectionReconnectDelay: 300; dateTimeOffset: "com.microsoft:datetime-offset"; deadLetterDescription: "deadletter-description"; deadLetterName: "com.microsoft:dead-letter"; deadLetterReason: "deadletter-reason"; deadLetterSource: "x-opt-deadletter-source"; defaultConnectionIdleTimeoutInMs: 60000; defaultConsumerGroup: "$default"; defaultDelayBetweenOperationRetriesInMs: 30000; defaultMaxDelayForExponentialRetryInMs: 90000; defaultMaxRetries: 3; defaultMaxRetriesForConnection: 150; defaultOperationTimeoutInMs: 60000; defaultPrefetchCount: 1000; dispositionStatus: "disposition-status"; enableReceiverRuntimeMetricName: "com.microsoft:enable-receiver-runtime-metric"; enqueueSequenceNumber: "x-opt-enqueue-sequence-number"; enqueuedTime: "x-opt-enqueued-time"; enqueuedTimeAnnotation: "amqp.annotation.x-opt-enqueued-time"; ensureContainerAndBlob: "ensureContainerAndBlob"; error: "error"; errorCondition: "error-condition"; establishConnection: "establishConnection"; eventHub: "eventhub"; fromSequenceNumber: "from-sequence-number"; guidSize: 16; lockTokenMapKey: "lock-token"; lockTokens: "lock-tokens"; lockedUntil: "x-opt-locked-until"; management: "$management"; managementRequestKey: "managementRequest"; maxAbsoluteExpiryTime: number; maxDeadLetterReasonLength: 4096; maxDurationValue: 922337203685477; maxMessageIdLength: 128; maxPartitionKeyLength: 128; maxSessionIdLength: 128; maxUserAgentLength: 512; maximumSqlFilterStatementLength: 1024; maximumSqlRuleActionStatementLength: 1024; message: "message"; messageCount: "message-count"; messageIdMapKey: "message-id"; minDurationValue: -922337203685477; negotiateCbsKey: "negotiateCbs"; negotiateClaim: "negotiateClaim"; offset: "x-opt-offset"; offsetAnnotation: "amqp.annotation.x-opt-offset"; operationPutToken: "put-token"; partition: "partition"; partitionId: "partitionId"; partitionIdName: "x-opt-partition-id"; partitionKey: "x-opt-partition-key"; pathDelimiter: "/"; propertiesToModify: "properties-to-modify"; publisher: "x-opt-publisher-name"; readOperation: "READ"; receiverError: "receiver_error"; receiverIdentifierName: "com.microsoft:receiver-name"; receiverSettleMode: "receiver-settle-mode"; reconnectLimit: 100; ruleNameMaximumLength: 50; scheduledEnqueueTime: "x-opt-scheduled-enqueue-time"; senderError: "sender_error"; sequenceNumber: "x-opt-sequence-number"; sequenceNumberAnnotation: "amqp.annotation.x-opt-sequence-number"; sequenceNumberMapKey: "sequence-number"; sequenceNumbers: "sequence-numbers"; serverTimeout: "com.microsoft:server-timeout"; sessionError: "session_error"; sessionFilterName: "com.microsoft:session-filter"; sessionIdMapKey: "session-id"; statusCode: "status-code"; statusDescription: "status-description"; timespan: "com.microsoft:timespan"; trackingId: "com.microsoft:tracking-id"; uri: "com.microsoft:uri"; vendorString: "com.microsoft"; viaPartitionKey: "x-opt-via-partition-key"; descriptorCodes: object; operations: object } = {associatedLinkName: "associated-link-name",partitionKey: "x-opt-partition-key",sequenceNumber: "x-opt-sequence-number",enqueueSequenceNumber: "x-opt-enqueue-sequence-number",enqueuedTime: "x-opt-enqueued-time",scheduledEnqueueTime: "x-opt-scheduled-enqueue-time",offset: "x-opt-offset",lockedUntil: "x-opt-locked-until",partitionIdName: "x-opt-partition-id",publisher: "x-opt-publisher-name",viaPartitionKey: "x-opt-via-partition-key",deadLetterSource: "x-opt-deadletter-source",enqueuedTimeAnnotation: `amqp.annotation.x-opt-enqueued-time`,offsetAnnotation: `amqp.annotation.x-opt-offset`,sequenceNumberAnnotation: `amqp.annotation.x-opt-sequence-number`,guidSize: 16,message: "message",error: "error",statusCode: "status-code",statusDescription: "status-description",errorCondition: "error-condition",management: "$management",partition: "partition",partitionId: "partitionId",readOperation: "READ",TLS: "tls",establishConnection: "establishConnection",defaultConsumerGroup: "$default",eventHub: "eventhub",cbsEndpoint: "$cbs",cbsReplyTo: "cbs",operationPutToken: "put-token",aadEventHubsAudience: "https://eventhubs.azure.net/",aadEventHubsScope: "https://eventhubs.azure.net//.default",aadServiceBusAudience: "https://servicebus.azure.net/",aadServiceBusScope: "https://servicebus.azure.net//.default",maxUserAgentLength: 512,vendorString: "com.microsoft",attachEpoch: `com.microsoft:epoch`,receiverIdentifierName: `com.microsoft:receiver-name`,enableReceiverRuntimeMetricName: `com.microsoft:enable-receiver-runtime-metric`,timespan: `com.microsoft:timespan`,uri: `com.microsoft:uri`,dateTimeOffset: `com.microsoft:datetime-offset`,sessionFilterName: `com.microsoft:session-filter`,receiverError: "receiver_error",senderError: "sender_error",sessionError: "session_error",connectionError: "connection_error",defaultOperationTimeoutInMs: 60000,defaultConnectionIdleTimeoutInMs: 60000,managementRequestKey: "managementRequest",negotiateCbsKey: "negotiateCbs",negotiateClaim: "negotiateClaim",ensureContainerAndBlob: "ensureContainerAndBlob",defaultPrefetchCount: 1000,reconnectLimit: 100,maxMessageIdLength: 128,maxPartitionKeyLength: 128,maxSessionIdLength: 128,pathDelimiter: "/",ruleNameMaximumLength: 50,maximumSqlFilterStatementLength: 1024,maximumSqlRuleActionStatementLength: 1024,maxDeadLetterReasonLength: 4096,// https://stackoverflow.com/questions/11526504/minimum-and-maximum-date for js// However we are setting this to the TimeSpan.MaxValue of C#.maxDurationValue: 922337203685477,minDurationValue: -922337203685477,// https://github.com/Azure/azure-amqp/blob/master/Microsoft.Azure.Amqp/Amqp/AmqpConstants.cs#L47maxAbsoluteExpiryTime: new Date("9999-12-31T07:59:59.000Z").getTime(),aadTokenValidityMarginInMs: 5000,connectionReconnectDelay: 300,defaultMaxRetries: 3,defaultMaxRetriesForConnection: 150,defaultDelayBetweenOperationRetriesInMs: 30000,defaultMaxDelayForExponentialRetryInMs: 90000,receiverSettleMode: "receiver-settle-mode",dispositionStatus: "disposition-status",fromSequenceNumber: "from-sequence-number",messageCount: "message-count",lockTokens: "lock-tokens",messageIdMapKey: "message-id",sequenceNumberMapKey: "sequence-number",lockTokenMapKey: "lock-token",sessionIdMapKey: "session-id",sequenceNumbers: "sequence-numbers",deadLetterReason: "deadletter-reason",deadLetterDescription: "deadletter-description",propertiesToModify: "properties-to-modify",deadLetterName: "com.microsoft:dead-letter",trackingId: "com.microsoft:tracking-id",serverTimeout: "com.microsoft:server-timeout",operations: {putToken: "put-token",read: "READ",cancelScheduledMessage: "com.microsoft:cancel-scheduled-message",scheduleMessage: "com.microsoft:schedule-message",renewLock: "com.microsoft:renew-lock",peekMessage: "com.microsoft:peek-message",receiveBySequenceNumber: "com.microsoft:receive-by-sequence-number",updateDisposition: "com.microsoft:update-disposition",renewSessionLock: "com.microsoft:renew-session-lock",setSessionState: "com.microsoft:set-session-state",getSessionState: "com.microsoft:get-session-state",enumerateSessions: "com.microsoft:get-message-sessions",addRule: "com.microsoft:add-rule",removeRule: "com.microsoft:remove-rule",enumerateRules: "com.microsoft:enumerate-rules"},descriptorCodes: {ruleDescriptionList: 1335734829060,sqlFilterList: 83483426822,correlationFilterList: 83483426825,sqlRuleActionList: 1335734829062,trueFilterList: 83483426823,falseFilterList: 83483426824}} as const
Defines an object with possible properties defined in T.