Event Hub JavaScript SDK
TypeScript/JavaScript client that utilizes Fetch API . The Node module can be used as:
Environment
Node.js
Webpack
Browserify
Language level
ES5 - you must have a Promises/A+ library installed
ES6
Module system
CommonJS
ES6 module system
Usage
npm i -S byu-event-hub-sdk
ES6 imports:
import * as eventHub from 'byu-event-hub-sdk' ;
import {operationId} from 'byu-event-hub-sdk' ;
The CommonJS syntax:
import eventHub = require ('byu-event-hub-sdk' );
Variables
BASE_PATH
BASE_PATH: string = "https://api.byu.edu/domains/eventhub".replace(/\/+$/, "")
expect
expect: ExpectStatic = chai.expect
Functions
ArchivesApiFactory
ArchivesApiFactory( fetch?: FetchAPI , basePath?: string ) : object
Parameters
Optional basePath: string
Returns object
archivesOptions: function
archivesOptions( options?: any ) : Promise < any >
Parameters
Returns Promise < any >
getArchives: function
getArchives( params: object , options?: any ) : Promise < any >
Parameters
params: object
Optional domain?: string
Optional entity?: string
eventDt: string
Optional eventType?: string
Optional pageSize?: number
Optional pageStart?: number
Optional options: any
Returns Promise < any >
DomainsApiFactory
DomainsApiFactory( fetch?: FetchAPI , basePath?: string ) : object
Parameters
Optional basePath: string
Returns object
createDomain: function
Parameters
params: object
Optional options: any
deleteDomain: function
deleteDomain( params: object , options?: any ) : Promise < any >
Parameters
params: object
Optional options: any
Returns Promise < any >
domainOptions: function
domainOptions( params: object , options?: any ) : Promise < any >
Parameters
params: object
Optional options: any
Returns Promise < any >
domainsOptions: function
domainsOptions( options?: any ) : Promise < any >
Parameters
Returns Promise < any >
getDomains: function
getDomains( options?: any ) : Promise < any >
Parameters
Returns Promise < any >
EntitiesApiFactory
EntitiesApiFactory( fetch?: FetchAPI , basePath?: string ) : object
Parameters
Optional basePath: string
Returns object
createEntity: function
Parameters
params: object
Optional options: any
deleteEntity: function
deleteEntity( params: object , options?: any ) : Promise < any >
Parameters
params: object
domain: string
entity: string
Optional options: any
Returns Promise < any >
entitiesOptions: function
entitiesOptions( options?: any ) : Promise < any >
Parameters
Returns Promise < any >
entityOptions: function
entityOptions( params: object , options?: any ) : Promise < string [] >
Parameters
params: object
domain: string
entity: string
Optional options: any
Returns Promise < string [] >
getEntities: function
getEntities( params: object , options?: any ) : Promise < any >
Parameters
params: object
Optional options: any
Returns Promise < any >
EventsApiFactory
EventsApiFactory( fetch?: FetchAPI , basePath?: string ) : object
Parameters
Optional basePath: string
Returns object
acknowledgeEvent: function
acknowledgeEvent( params: object , options?: any ) : Promise < any >
Parameters
params: object
eventID: string
Optional single?: boolean
Optional options: any
Returns Promise < any >
acknowledgeEventDelete: function
acknowledgeEventDelete( params: object , options?: any ) : Promise < any >
Parameters
params: object
Optional options: any
Returns Promise < any >
createEvent: function
createEvent( params: object , options?: any ) : Promise < any >
Parameters
params: object
Optional options: any
Returns Promise < any >
eventOptions: function
eventOptions( params: object , options?: any ) : Promise < string [] >
Parameters
params: object
Optional options: any
Returns Promise < string [] >
eventsOptions: function
eventsOptions( options?: any ) : Promise < any >
Parameters
Returns Promise < any >
getEvents: function
Parameters
params: object
Optional options: any
EventtypesApiFactory
EventtypesApiFactory( fetch?: FetchAPI , basePath?: string ) : object
Parameters
Optional basePath: string
Returns object
createEventType: function
Parameters
params: object
Optional options: any
deleteEventType: function
deleteEventType( params: object , options?: any ) : Promise < any >
Parameters
params: object
domain: string
entity: string
eventType: string
Optional options: any
Returns Promise < any >
eventTypeOptions: function
eventTypeOptions( params: object , options?: any ) : Promise < string [] >
Parameters
params: object
domain: string
entity: string
eventType: string
Optional options: any
Returns Promise < string [] >
eventTypesOptions: function
eventTypesOptions( options?: any ) : Promise < any >
Parameters
Returns Promise < any >
getEventTypes: function
getEventTypes( params: object , options?: any ) : Promise < any >
Parameters
params: object
Optional domain?: string
Optional entity?: string
Optional eventType?: string
Optional options: any
Returns Promise < any >
modifyEventType: function
modifyEventType( params: object , options?: any ) : Promise < any >
Parameters
params: object
domain: string
entity: string
eventType: string
Optional options: any
Returns Promise < any >
SubscriptionsApiFactory
SubscriptionsApiFactory( fetch?: FetchAPI , basePath?: string ) : object
Parameters
Optional basePath: string
Returns object
createSubscription: function
Parameters
params: object
Optional options: any
deleteSubscription: function
deleteSubscription( params: object , options?: any ) : Promise < any >
Parameters
params: object
domain: string
entity: string
eventType: string
Optional options: any
Returns Promise < any >
getSubscriptions: function
getSubscriptions( params: object , options?: any ) : Promise < any >
Parameters
params: object
Optional domain?: string
ecaIdentityId: string
Optional entity?: string
Optional eventType?: string
Optional options: any
Returns Promise < any >
subscriptionOptions: function
subscriptionOptions( params: object , options?: any ) : Promise < string [] >
Parameters
params: object
domain: string
entity: string
eventType: string
Optional options: any
Returns Promise < string [] >
subscriptionsOptions: function
subscriptionsOptions( options?: any ) : Promise < any >
Parameters
Returns Promise < any >
SummariesApiFactory
SummariesApiFactory( fetch?: FetchAPI , basePath?: string ) : object
Parameters
Optional basePath: string
Returns object
getSummaries: function
getSummaries( params: object , options?: any ) : Promise < any >
Parameters
params: object
Optional domain?: string
Optional entity?: string
Optional eventDate?: string
Optional eventType?: string
Optional pageSize?: number
Optional pageStart?: number
Optional options: any
Returns Promise < any >
summariesOptions: function
summariesOptions( options?: any ) : Promise < any >
Parameters
Returns Promise < any >
WebhooksApiFactory
WebhooksApiFactory( fetch?: FetchAPI , basePath?: string ) : object
Parameters
Optional basePath: string
Returns object
deleteWebhook: function
deleteWebhook( options?: any ) : Promise < any >
Parameters
Returns Promise < any >
getWebhooks: function
getWebhooks( params: object , options?: any ) : Promise < any >
Parameters
params: object
Optional endpoint?: string
identityId: string
Optional identityName?: string
Optional pushOption?: string
Optional options: any
Returns Promise < any >
modifyWebhook: function
modifyWebhook( params: object , options?: any ) : Promise < any >
Parameters
params: object
Optional options: any
Returns Promise < any >
registerWebhook: function
registerWebhook( params: object , options?: any ) : Promise < any >
Parameters
params: object
Optional options: any
Returns Promise < any >
webhooksOptions: function
webhooksOptions( options?: any ) : Promise < string [] >
Parameters
Returns Promise < string [] >
Object literals
ArchivesApiFetchParamCreator
ArchivesApiFetchParamCreator: object
getArchives
getArchives( params: object , options?: any ) : FetchArgs
Parameters
params: object
Optional domain?: string
Optional entity?: string
eventDt: string
Optional eventType?: string
Optional pageSize?: number
Optional pageStart?: number
Optional options: any
ArchivesApiFp
ArchivesApiFp: object
archivesOptions
archivesOptions( options?: any ) : function
Parameters
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
getArchives
getArchives( params: object , options?: any ) : function
Parameters
params: object
Optional domain?: string
Optional entity?: string
eventDt: string
Optional eventType?: string
Optional pageSize?: number
Optional pageStart?: number
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
DomainsApiFetchParamCreator
DomainsApiFetchParamCreator: object
createDomain
createDomain( params: object , options?: any ) : FetchArgs
Parameters
params: object
Optional options: any
deleteDomain
deleteDomain( params: object , options?: any ) : FetchArgs
Parameters
params: object
Optional options: any
domainOptions
domainOptions( params: object , options?: any ) : FetchArgs
Parameters
params: object
Optional options: any
DomainsApiFp
DomainsApiFp: object
createDomain
createDomain( params: object , options?: any ) : function
Parameters
params: object
Optional options: any
Returns function
Parameters
Optional basePath: string
deleteDomain
deleteDomain( params: object , options?: any ) : function
Parameters
params: object
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
domainOptions
domainOptions( params: object , options?: any ) : function
Parameters
params: object
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
domainsOptions
domainsOptions( options?: any ) : function
Parameters
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
getDomains
getDomains( options?: any ) : function
Parameters
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
EntitiesApiFetchParamCreator
EntitiesApiFetchParamCreator: object
createEntity
createEntity( params: object , options?: any ) : FetchArgs
Parameters
params: object
Optional options: any
deleteEntity
deleteEntity( params: object , options?: any ) : FetchArgs
Parameters
params: object
domain: string
entity: string
Optional options: any
entityOptions
entityOptions( params: object , options?: any ) : FetchArgs
Parameters
params: object
domain: string
entity: string
Optional options: any
getEntities
getEntities( params: object , options?: any ) : FetchArgs
Parameters
params: object
Optional options: any
EntitiesApiFp
EntitiesApiFp: object
createEntity
createEntity( params: object , options?: any ) : function
Parameters
params: object
Optional options: any
Returns function
Parameters
Optional basePath: string
deleteEntity
deleteEntity( params: object , options?: any ) : function
Parameters
params: object
domain: string
entity: string
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
entitiesOptions
entitiesOptions( options?: any ) : function
Parameters
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
entityOptions
entityOptions( params: object , options?: any ) : function
Parameters
params: object
domain: string
entity: string
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < Array < string > >
Parameters
Optional basePath: string
Returns Promise < Array < string > >
getEntities
getEntities( params: object , options?: any ) : function
Parameters
params: object
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
EventsApiFetchParamCreator
EventsApiFetchParamCreator: object
acknowledgeEvent
acknowledgeEvent( params: object , options?: any ) : FetchArgs
Parameters
params: object
eventID: string
Optional single?: boolean
Optional options: any
acknowledgeEventDelete
acknowledgeEventDelete( params: object , options?: any ) : FetchArgs
Parameters
params: object
Optional options: any
createEvent
createEvent( params: object , options?: any ) : FetchArgs
Parameters
params: object
Optional options: any
eventOptions
eventOptions( params: object , options?: any ) : FetchArgs
Parameters
params: object
Optional options: any
getEvents
getEvents( params: object , options?: any ) : FetchArgs
Parameters
params: object
Optional options: any
EventsApiFp
EventsApiFp: object
acknowledgeEvent
acknowledgeEvent( params: object , options?: any ) : function
Parameters
params: object
eventID: string
Optional single?: boolean
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
acknowledgeEventDelete
acknowledgeEventDelete( params: object , options?: any ) : function
Parameters
params: object
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
createEvent
createEvent( params: object , options?: any ) : function
Parameters
params: object
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
eventOptions
eventOptions( params: object , options?: any ) : function
Parameters
params: object
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < Array < string > >
Parameters
Optional basePath: string
Returns Promise < Array < string > >
eventsOptions
eventsOptions( options?: any ) : function
Parameters
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
getEvents
getEvents( params: object , options?: any ) : function
Parameters
params: object
Optional options: any
Returns function
Parameters
Optional basePath: string
EventtypesApiFetchParamCreator
EventtypesApiFetchParamCreator: object
createEventType
createEventType( params: object , options?: any ) : FetchArgs
Parameters
params: object
Optional options: any
deleteEventType
deleteEventType( params: object , options?: any ) : FetchArgs
Parameters
params: object
domain: string
entity: string
eventType: string
Optional options: any
eventTypeOptions
eventTypeOptions( params: object , options?: any ) : FetchArgs
Parameters
params: object
domain: string
entity: string
eventType: string
Optional options: any
getEventTypes
getEventTypes( params: object , options?: any ) : FetchArgs
Parameters
params: object
Optional domain?: string
Optional entity?: string
Optional eventType?: string
Optional options: any
modifyEventType
modifyEventType( params: object , options?: any ) : FetchArgs
Parameters
params: object
domain: string
entity: string
eventType: string
Optional options: any
EventtypesApiFp
EventtypesApiFp: object
createEventType
createEventType( params: object , options?: any ) : function
Parameters
params: object
Optional options: any
Returns function
Parameters
Optional basePath: string
deleteEventType
deleteEventType( params: object , options?: any ) : function
Parameters
params: object
domain: string
entity: string
eventType: string
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
eventTypeOptions
eventTypeOptions( params: object , options?: any ) : function
Parameters
params: object
domain: string
entity: string
eventType: string
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < Array < string > >
Parameters
Optional basePath: string
Returns Promise < Array < string > >
eventTypesOptions
eventTypesOptions( options?: any ) : function
Parameters
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
getEventTypes
getEventTypes( params: object , options?: any ) : function
Parameters
params: object
Optional domain?: string
Optional entity?: string
Optional eventType?: string
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
modifyEventType
modifyEventType( params: object , options?: any ) : function
Parameters
params: object
domain: string
entity: string
eventType: string
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
SubscriptionsApiFetchParamCreator
SubscriptionsApiFetchParamCreator: object
createSubscription
createSubscription( params: object , options?: any ) : FetchArgs
Parameters
params: object
Optional options: any
deleteSubscription
deleteSubscription( params: object , options?: any ) : FetchArgs
Parameters
params: object
domain: string
entity: string
eventType: string
Optional options: any
getSubscriptions
getSubscriptions( params: object , options?: any ) : FetchArgs
Parameters
params: object
Optional domain?: string
ecaIdentityId: string
Optional entity?: string
Optional eventType?: string
Optional options: any
subscriptionOptions
subscriptionOptions( params: object , options?: any ) : FetchArgs
Parameters
params: object
domain: string
entity: string
eventType: string
Optional options: any
subscriptionsOptions
subscriptionsOptions( options?: any ) : FetchArgs
SubscriptionsApiFp
SubscriptionsApiFp: object
createSubscription
createSubscription( params: object , options?: any ) : function
Parameters
params: object
Optional options: any
Returns function
Parameters
Optional basePath: string
deleteSubscription
deleteSubscription( params: object , options?: any ) : function
Parameters
params: object
domain: string
entity: string
eventType: string
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
getSubscriptions
getSubscriptions( params: object , options?: any ) : function
Parameters
params: object
Optional domain?: string
ecaIdentityId: string
Optional entity?: string
Optional eventType?: string
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
subscriptionOptions
subscriptionOptions( params: object , options?: any ) : function
Parameters
params: object
domain: string
entity: string
eventType: string
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < Array < string > >
Parameters
Optional basePath: string
Returns Promise < Array < string > >
subscriptionsOptions
subscriptionsOptions( options?: any ) : function
Parameters
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
SummariesApiFetchParamCreator
SummariesApiFetchParamCreator: object
getSummaries
getSummaries( params: object , options?: any ) : FetchArgs
Parameters
params: object
Optional domain?: string
Optional entity?: string
Optional eventDate?: string
Optional eventType?: string
Optional pageSize?: number
Optional pageStart?: number
Optional options: any
SummariesApiFp
SummariesApiFp: object
getSummaries
getSummaries( params: object , options?: any ) : function
Parameters
params: object
Optional domain?: string
Optional entity?: string
Optional eventDate?: string
Optional eventType?: string
Optional pageSize?: number
Optional pageStart?: number
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
summariesOptions
summariesOptions( options?: any ) : function
Parameters
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
WebhooksApiFetchParamCreator
WebhooksApiFetchParamCreator: object
getWebhooks
getWebhooks( params: object , options?: any ) : FetchArgs
Parameters
params: object
Optional endpoint?: string
identityId: string
Optional identityName?: string
Optional pushOption?: string
Optional options: any
modifyWebhook
modifyWebhook( params: object , options?: any ) : FetchArgs
Parameters
params: object
Optional options: any
registerWebhook
registerWebhook( params: object , options?: any ) : FetchArgs
Parameters
params: object
Optional options: any
WebhooksApiFp
WebhooksApiFp: object
deleteWebhook
deleteWebhook( options?: any ) : function
Parameters
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
getWebhooks
getWebhooks( params: object , options?: any ) : function
Parameters
params: object
Optional endpoint?: string
identityId: string
Optional identityName?: string
Optional pushOption?: string
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
modifyWebhook
modifyWebhook( params: object , options?: any ) : function
Parameters
params: object
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
registerWebhook
registerWebhook( params: object , options?: any ) : function
Parameters
params: object
Optional options: any
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < any >
Parameters
Optional basePath: string
Returns Promise < any >
webhooksOptions
webhooksOptions( options?: any ) : function
Parameters
Returns function
( fetch?: FetchAPI , basePath?: string ) : Promise < Array < string > >
Parameters
Optional basePath: string
Returns Promise < Array < string > >
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
ArchivesApi - factory interface