2.3.10 • Published 1 year ago

@sassoftware/restaflib v2.3.10

Weekly downloads
191
License
Apache-2.0
Repository
github
Last release
1 year ago

casActionRun ⇒ object

Calls cas server and returns the results(async)

Returns: object - returns results from cas

ParamTypeDescription
storeobjectrestaf store
sessionobjectcas session
parametersobjectparameters for the action

casFetchData ⇒ object

Fetch rows from cas Tables

Returns: object - see doc. {pagination: {prev: pagePrev, next: pageNext, count: count}, data: {schema: co The prev and next are as follows: Either it is -1 to indicate EOF or a number to start the next obs no to start the fetc from

ParamTypeDescription
storeobjectrestaf store
sessionobjectcas session
tableobjecttable {caslib: x, name: y} to read from
controlobjectwhat to read {from: n, count:n , format: truefalse}

caslRunBase ⇒ object

Calls cas server and returns the results(async)

Returns: object - returns results from cas

ParamTypeDescription
storeobjectrestaf store
sessionobjectcas session
srcobjectcasl src statements
argsobjectuser input args

caslRunBase ⇒ object

Calls cas server and returns the results(async)

Returns: object - standard return value from apiCall

ParamTypeDescription
storeobjectrestaf store
sessionobjectcas session
srcobjectcasl src statements
argsobjectarguments to pass to on to CAS as args

caslScore ⇒ object

Score data in casl

Returns: object - returns the scores as an object

ParamTypeDescription
storeobjectrestaf store
sessionobjectcas session
scenarioobjectscenario values

casSetup ⇒ object

Calls cas server and returns the results(async)

Returns: object - returns an object {session: xxx, servers: yyy}

ParamTypeDescription
storeobjectrestaf store
logonPayloadobjectif not null, then use this logon to Viya

casTableToJson ⇒ object

Converts a cas table to JSON

Returns: object - - the new json version

ParamTypeDescription
resultobjectthe raf object retrned from a call to cas
tablestringthe name of the table

computeFetchData ⇒ object

Fetch data from a SAS Table

Returns: object - - {columns: , rows: , scrollOptions: }

ParamTypeDescription
storeobjectrestaf store
computeSummaryobjectSummary object created by computeSummary method
tablestringname of the table
directionstringnullnextprevfirstlast

computeResults ⇒ object | string

Return Log|listing|ODS|list of tables in the compute service job

Returns: object | string - - string for all except tables(array)

ParamTypeDescription
storeobjectrestaf store
computeSummaryobjectcomputeSummary object
typestringtype of result( loglistingods\tables)

computeRun ⇒ object

Prepare data for runCompute(@async)

Returns: object - computeSummary object

ParamTypeDescription
storeobjectrestaf store
sessionobjectcurrent compute service session
srcstringcode to execute
argsobjectargs to be passed on as macros

computeRunBase ⇒ object

Reduce compute service to an consummable form(async)

Returns: object - computeSummary Object

ParamTypeDescription
storeobjectrestaf store
sessionobjectcompute service session
codecodeSAS code to be executed

computeSetup ⇒ object

Setup access to compute service

Returns: object - - returns a compute session

ParamTypeDescription
storeobjectrestaf store
contextNamestringname of the context( if null the first context in the list is used)
payloadobjectlogon payload - If null assumes that logon was done earlier.

computeSummary ⇒ object

Reduce the job information into consummable form(async)

Returns: object - - the computeSummary object for easy handling of logs,listing,ods, tables

ParamTypeDescription
storeobjectrestaf store
jobobjectrafObject representing the compute service job

findReport ⇒ object

Search for a named report(async)

Returns: object - - either null or rafObject for the report

ParamTypeDescription
storeobjectrestaf store
namestringname of the VA report

getReportImage ⇒ string

Return the svg of the specified report(async)

Returns: string - - the svg of the report

ParamTypeDescription
storeobjectrestaf store
namestringname of the report

getReportUrl ⇒ string

Generate url for report(async)

Returns: string - url for the report

ParamTypeDescription
storeobjectrestaf store
namestringname of report

getSASTableRows ⇒ object

Convert table to object of the form {var1: value, var2: value,...},....

Returns: object - - resulting json

ParamTypeDescription
storeobjectrestaf store
computeSummaryobjectcomputeSummary
tableNamestringname of the table

jsonToDict ⇒ string

Produce a string with casl dictionary suitable for inclusion in casl code

Returns: string - returns the string containing the casl dictionary

ParamTypeDescription
objobjectthe JS object of interest
namestringthe name to assign to the dictionary

Example

obj = {x: 1, b:2, c: ['a','b']};
 name ='_appEnv_';
 result is a string _appEnv_ = {x=2, b=3, c={"a', "b"}}

masRun ⇒ object

Score using MAS

Returns: object - - return results {name: value, name: value}

ParamTypeDescription
restafstorestore
masControlobjectobject from masSetup
modelNamestringname of model to be executed
stepNamestringif not specified it will default to the first step

masSetup ⇒ object

setup access to MAS

Returns: object - - masControl used in masRun

ParamTypeDescription
storeobjectrestaf store
modelsobjectan array of model names
logonPayloadobjectnullrestaf logon payload
5.2.4

1 year ago

5.2.3

1 year ago

5.2.2

1 year ago

5.2.1

1 year ago

5.2.0

1 year ago

5.1.23

1 year ago

5.1.22

1 year ago

5.1.20

1 year ago

5.1.19

1 year ago

5.1.18

1 year ago

5.1.17

2 years ago

5.1.16

2 years ago

5.1.15

2 years ago

5.1.14

2 years ago

5.1.12

2 years ago

5.1.11

2 years ago

5.1.10

2 years ago

5.1.9

2 years ago

5.0.10-test

2 years ago

5.0.8

2 years ago

5.0.7

2 years ago

5.0.6

2 years ago

5.0.5

2 years ago

5.0.4

2 years ago

5.0.3

2 years ago

5.0.2

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago

5.0.9-test

2 years ago

5.0.10-test2

2 years ago

5.1.8

2 years ago

5.1.7

2 years ago

5.1.6

2 years ago

5.1.5

2 years ago

5.1.4

2 years ago

5.1.3

2 years ago

5.1.2

2 years ago

5.1.1

2 years ago

5.1.0

2 years ago

4.10.5

2 years ago

4.10.1

2 years ago

4.10.2

2 years ago

4.10.3

2 years ago

4.10.4

2 years ago

4.11.0

2 years ago

4.11.1

2 years ago

4.10.0

2 years ago

4.9.4

2 years ago

4.9.3

2 years ago

4.9.6

2 years ago

4.9.5

2 years ago

4.9.0

2 years ago

4.9.2

2 years ago

4.9.1

2 years ago

4.8.11

2 years ago

4.8.9

2 years ago

4.8.8

2 years ago

4.8.7

2 years ago

4.8.10

2 years ago

4.8.5

2 years ago

4.8.6

2 years ago

4.8.4

3 years ago

4.8.1

3 years ago

4.8.0

3 years ago

4.8.3

3 years ago

4.8.2

3 years ago

4.6.5

3 years ago

4.5.4

3 years ago

4.5.3

3 years ago

4.5.6

3 years ago

4.5.5

3 years ago

4.4.29

3 years ago

4.4.32

3 years ago

4.4.31

3 years ago

4.4.30

3 years ago

4.4.36

3 years ago

4.4.35

3 years ago

4.4.34

3 years ago

4.4.33

3 years ago

4.4.38

3 years ago

4.4.37

3 years ago

4.6.1

3 years ago

4.6.0

3 years ago

4.6.3

3 years ago

4.6.2

3 years ago

4.6.4

3 years ago

4.5.0

3 years ago

4.5.2

3 years ago

4.5.1

3 years ago

4.4.21

3 years ago

4.4.20

3 years ago

4.4.25

3 years ago

4.4.24

3 years ago

4.4.23

3 years ago

4.4.22

3 years ago

4.4.28

3 years ago

4.4.27

3 years ago

4.4.26

3 years ago

4.4.1

3 years ago

4.4.0

3 years ago

4.4.3

3 years ago

4.4.2

3 years ago

4.4.14

3 years ago

4.4.12

3 years ago

4.4.11

3 years ago

4.4.18

3 years ago

4.4.17

3 years ago

4.4.16

3 years ago

4.4.15

3 years ago

4.4.19

3 years ago

4.4.9

3 years ago

4.4.8

3 years ago

4.4.5

3 years ago

4.4.4

3 years ago

4.4.7

3 years ago

4.4.6

3 years ago

4.3.1

3 years ago

4.2.10

3 years ago

4.2.11

3 years ago

4.2.12

3 years ago

4.3.0

3 years ago

4.2.3

3 years ago

4.2.2

3 years ago

4.2.5

3 years ago

4.2.4

3 years ago

4.2.1

3 years ago

4.2.7

3 years ago

4.2.6

3 years ago

4.2.8

3 years ago

4.2.0

3 years ago

4.1.3

3 years ago

4.1.0

3 years ago

4.1.2

3 years ago

4.1.1

3 years ago

4.0.9

3 years ago

4.0.5

3 years ago

4.0.4

3 years ago

4.0.7

3 years ago

4.0.6

3 years ago

4.0.3

3 years ago

4.0.2

3 years ago

4.0.8

3 years ago

4.0.1

4 years ago

3.4.0

4 years ago

3.3.1

4 years ago

3.3.4

4 years ago

3.3.3

4 years ago

3.3.2

4 years ago

3.3.0

4 years ago

3.2.62

4 years ago

3.2.61

4 years ago

3.2.6

4 years ago

3.2.5

4 years ago

3.2.4

4 years ago

3.2.2

4 years ago

3.2.3

4 years ago

3.2.1

4 years ago

3.1.5

4 years ago

3.1.4

4 years ago

3.1.3

4 years ago

3.1.0

4 years ago

3.0.8

4 years ago

3.0.7

4 years ago

3.0.6

4 years ago

3.0.5

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

5 years ago

2.14.0

5 years ago

2.13.27

5 years ago

2.13.26

5 years ago

2.13.25

5 years ago

2.13.23

5 years ago

2.13.22

5 years ago

2.13.21

5 years ago

2.13.20

5 years ago

2.13.19

5 years ago

2.13.18

5 years ago

2.3.11

5 years ago

2.3.10

5 years ago

2.3.9

5 years ago

2.3.8

5 years ago

2.3.7

5 years ago

2.3.3

5 years ago

2.3.6

5 years ago

2.3.2

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.8

5 years ago

2.2.4

5 years ago

2.2.3

5 years ago

2.2.0

5 years ago

2.1.6

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.9

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.7.23

5 years ago

1.7.22

5 years ago

1.7.21

5 years ago

1.7.20

5 years ago

1.7.19

5 years ago

1.7.18

5 years ago

1.7.17

5 years ago

1.7.15

5 years ago

1.7.16

5 years ago

1.7.14

5 years ago

1.7.10

5 years ago

1.7.9

6 years ago

1.7.8

6 years ago

1.7.7

6 years ago

1.7.6

6 years ago

1.7.5

6 years ago