Module

resources/items

Items resources

View Source resources/items.js, line 1

View Source resources/member-saved-items.js, line 1

Methods

# protected inner getAllProgramItems(programId) → {module:resources/items~GetAllFunc}

Higher order function for creating a getAll program items function.

Parameters:
Name Type Description
programId number

The ID of the item's parent program

See:

View Source resources/member-saved-items.js, line 22

Returns getAll program items function.

# protected inner getProgramItem(programId) → {module:resources/items~GetFunc}

Higher order function for creating a get program item function.

Parameters:
Name Type Description
programId number

The ID of the item's parent program

See:

View Source resources/items.js, line 75

Returns get program item function.

# protected inner getProgramItemParameters(programId) → {module:resources/items~GetParametersFunc}

Higher order function for creating a getParameters program item function.

Parameters:
Name Type Description
programId number

The ID of the item's parent program

See:

View Source resources/items.js, line 133

Returns getParameters program item function.

# inner getSavedItemsSummary(programCode)

Parameters:
Name Type Description
programCode string

string that contains the programCode

View Source resources/member-saved-items.js, line 53

api caller

# inner items(programId) → {module:resources/items~ProgramItems}

Factory for items objects.

Parameters:
Name Type Description
programId number

The ID of the item's parent program

View Source resources/items.js, line 186

Program items object.

Example
// Returns a items object for the program with ID 55
const items = ro.program(756).items;

# inner memberSavedItems(programId, code) → {module:resources/member_saved_items~ProgramItems}

Factory for items objects.

Parameters:
Name Type Description
programId number

The ID of the item's parent program

code

View Source resources/member-saved-items.js, line 79

Program items object.

module:resources/member_saved_items~ProgramItems
Example
// Returns a items object for the program with ID 55
const items = ro.program(756).items;

Type Definitions

# GetAllFunc

Function for getting an array of item JSON objects.

Properties:
Name Type Description
params object

Request params to pass to the API call

callback module:api~requestCallback

Callback that handles the response

View Source resources/items.js, line 49

Example
// Gets an array of item detail objects the program with id 12
ro.program(12).items.getAll((error, responseBody, response) => {
  // ...
});

# GetFunc

Function for getting a item JSON object.

Properties:
Name Type Description
itemId string

Program item ID

params object

Request params to pass to the API call

callback module:api~requestCallback

Callback that handles the response

View Source resources/items.js, line 102

Example
// Get JSON for the item with ID 938
ro.program(12).items.get(938, (error, responseBody, response) => {
  if (error) {
    console.log(error);
  } else {
    console.log(result);
  }
});

# GetParametersFunc

Function for getting an array of filter parameter JSON objects that are relevant to the program.

Properties:
Name Type Description
params object

Request params to pass to the API call

callback module:api~requestCallback

Callback that handles the response

View Source resources/items.js, line 160

Example
// Gets an array of filter parameter objects for the program with id 12
ro.program(12).items.getParameters((error, responseBody, response) => {
  // ...
});

# ProgramItems

Program items object.

Properties:
Name Type Description
programId number

The ID of the item's parent program

get module:resources/items~GetFunc

get program item function.

getAll module:resources/items~GetAllFunc

getAll program items function.

getParameters function

Get parameters function

View Source resources/items.js, line 193

# ProgramItems

Program items object.

Properties:
Name Type Description
programId number

The ID of the item's parent program

getAll module:resources/msmber_saved_items~GetAllFunc

getAll program items function.

summary module:resources/member_saved_items_summary~GetAllSummaryFunc

View Source resources/member-saved-items.js, line 85

Member Saved Items resources

View Source resources/items.js, line 1

View Source resources/member-saved-items.js, line 1

Methods

# protected inner getAllProgramItems(programId) → {module:resources/items~GetAllFunc}

Higher order function for creating a getAll program items function.

Parameters:
Name Type Description
programId number

The ID of the item's parent program

See:

View Source resources/member-saved-items.js, line 22

Returns getAll program items function.

# protected inner getProgramItem(programId) → {module:resources/items~GetFunc}

Higher order function for creating a get program item function.

Parameters:
Name Type Description
programId number

The ID of the item's parent program

See:

View Source resources/items.js, line 75

Returns get program item function.

# protected inner getProgramItemParameters(programId) → {module:resources/items~GetParametersFunc}

Higher order function for creating a getParameters program item function.

Parameters:
Name Type Description
programId number

The ID of the item's parent program

See:

View Source resources/items.js, line 133

Returns getParameters program item function.

# inner getSavedItemsSummary(programCode)

Parameters:
Name Type Description
programCode string

string that contains the programCode

View Source resources/member-saved-items.js, line 53

api caller

# inner items(programId) → {module:resources/items~ProgramItems}

Factory for items objects.

Parameters:
Name Type Description
programId number

The ID of the item's parent program

View Source resources/items.js, line 186

Program items object.

Example
// Returns a items object for the program with ID 55
const items = ro.program(756).items;

# inner memberSavedItems(programId, code) → {module:resources/member_saved_items~ProgramItems}

Factory for items objects.

Parameters:
Name Type Description
programId number

The ID of the item's parent program

code

View Source resources/member-saved-items.js, line 79

Program items object.

module:resources/member_saved_items~ProgramItems
Example
// Returns a items object for the program with ID 55
const items = ro.program(756).items;

Type Definitions

# GetAllFunc

Function for getting an array of item JSON objects.

Properties:
Name Type Description
params object

Request params to pass to the API call

callback module:api~requestCallback

Callback that handles the response

View Source resources/items.js, line 49

Example
// Gets an array of item detail objects the program with id 12
ro.program(12).items.getAll((error, responseBody, response) => {
  // ...
});

# GetFunc

Function for getting a item JSON object.

Properties:
Name Type Description
itemId string

Program item ID

params object

Request params to pass to the API call

callback module:api~requestCallback

Callback that handles the response

View Source resources/items.js, line 102

Example
// Get JSON for the item with ID 938
ro.program(12).items.get(938, (error, responseBody, response) => {
  if (error) {
    console.log(error);
  } else {
    console.log(result);
  }
});

# GetParametersFunc

Function for getting an array of filter parameter JSON objects that are relevant to the program.

Properties:
Name Type Description
params object

Request params to pass to the API call

callback module:api~requestCallback

Callback that handles the response

View Source resources/items.js, line 160

Example
// Gets an array of filter parameter objects for the program with id 12
ro.program(12).items.getParameters((error, responseBody, response) => {
  // ...
});

# ProgramItems

Program items object.

Properties:
Name Type Description
programId number

The ID of the item's parent program

get module:resources/items~GetFunc

get program item function.

getAll module:resources/items~GetAllFunc

getAll program items function.

getParameters function

Get parameters function

View Source resources/items.js, line 193

# ProgramItems

Program items object.

Properties:
Name Type Description
programId number

The ID of the item's parent program

getAll module:resources/msmber_saved_items~GetAllFunc

getAll program items function.

summary module:resources/member_saved_items_summary~GetAllSummaryFunc

View Source resources/member-saved-items.js, line 85