Members
Methods
# async inner create(env, plan) → {Promise.<Plan>}
        Create a communication plan in xMatters
https://help.xmatters.com/xmapi/index.html#create-a-communication-plan
    
    https://help.xmatters.com/xmapi/index.html#create-a-communication-plan
Parameters:
| Name | Type | Description | 
|---|---|---|
| env | module:environments.xMattersEnvironment | The xmtoolbox representation of an xMatters instance. | 
| plan | Plan | https://help.xmatters.com/xmapi/index.html#plan-object | 
Plan Object Created
    
    
    
        
        
Promise.<Plan>
    
    
# async inner exportToImport(destination, plans) → {Promise}
        Transforms an array of records exported from xMatters to the format needed to import into xMatters.
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| destination | module:environments.xMattersEnvironment | The xmtoolbox representation of the target or destination xMatters instance. | 
| plans | Array.<Plan> | Array of plan objects to transform. | 
        
        
Promise
    
    
# async inner get(env, planId, query) → {Promise.<Plan>}
Parameters:
| Name | Type | Description | 
|---|---|---|
| env | module:environments.xMattersEnvironment | The xmtoolbox representation of an xMatters instance. | 
| planId | string | The unique identifier (id) or name of the communication plan. Examples: - b2341d69-8b83-4660-b8c8-f2e728f675f9 - MIM | 
| query | Object | A json object representing the query string parameters for this request. | 
Plan Object Requested
    
    
    
        
        
Promise.<Plan>
    
    
# async inner getMany(env, query) → {Promise.<Array.<Plan>>}
        Get all plans from xMatters matching the query. Please refer to the link below for the available query parameters.
https://help.xmatters.com/xmapi/index.html#get-communication-plans
    
    https://help.xmatters.com/xmapi/index.html#get-communication-plans
Parameters:
| Name | Type | Description | 
|---|---|---|
| env | module:environments.xMattersEnvironment | The xmtoolbox representation of an xMatters instance. | 
| query | Object | A json object representing the query string parameters for this request. | 
Array of Plan Objects Requested
    
    
    
        
        
Promise.<Array.<Plan>>
    
    
# async inner sync(destination, sourcePlans, destination, options) → {Promise.<module:sync.SyncResults>}
        Synchronizes an array of objects from a source with destination objects and updates the destination as necessary.
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| destination | module:environments.xMattersEnvironment | The xmtoolbox representation of the target or destination xMatters instance. | 
| sourcePlans | Array.<Plan> | An array of the communication plan objects to synchronize from the source data. | 
| destination | Array.<Plan> | The xmtoolbox representation of the target or destination xMatters instance.Plans | 
| options | Object | 
        
        
Promise.<module:sync.SyncResults>
    
    
# async inner update(env, plan, planId) → {Promise.<Plan>}
Parameters:
| Name | Type | Description | 
|---|---|---|
| env | module:environments.xMattersEnvironment | The xmtoolbox representation of an xMatters instance. | 
| plan | Plan | https://help.xmatters.com/xmapi/index.html#plan-object | 
| planId | string | The unique identifier (id) of the communication plan. Examples: - b2341d69-8b83-4660-b8c8-f2e728f675f9 | 
Plan Object Updated
    
    
    
        
        
Promise.<Plan>