Root namespace for GPF type documentation.
Note that this symbol does not exist and is used only for documentation purposes.
- Since:
-
- 0.1.5
Classes
Type Definitions
-
contextResult
-
Result of gpf.context call, depends on the specified path
- when not specified, it returns the current host main context object
- when
"gpf", it always returns the GPF object - when it leads to nothing,
undefinedis returned
Type:
- *
- Since:
-
- 0.1.5
-
csvParserOptions
-
- Since:
-
- 0.2.3
Properties:
Name Type Argument Default Description headerString <optional>
Header line: if not specified, the first write of the input stream becomes the header
separatorString <optional>
Column separator, detected from the header line if not specified (allowed characters are ";" "," and "\t")
quoteString <optional>
"\"" Quote sign: introduces an escaped value in which quotes, separator and carriage returns are allowed. Consequently, the value may stand on several lines
newLineString <optional>
"\n" New line: each input stream write is considered as a separate line. If a quoted value stands on several lines, this character is used to represents every new line
-
fileStorageInfo
-
- Since:
-
- 0.1.9
Properties:
Name Type Description typegpf.fs.types See gpf.fs.types
fileNameString file name only
filePathString full path to the file
sizeNumber Size of the object (if relevant)
createdDateTimeDate modifiedDateTimeDate -
filterAnd
-
Filter AND specification
- Since:
-
- 0.1.9
- See:
Properties:
Name Type Description andArray.<gpf.typedef.filterItem> List of items to and, returns the first falsy value or the last truthy value
-
filterEq
-
Filter equal specification
- Since:
-
- 0.1.9
- See:
Properties:
Name Type Description eqArray.<gpf.typedef.filterItem> List of items to compare, returns true if all values are strictly equal
-
filterFunc(data)
-
Filtering function
Parameters:
Name Type Description data* Data to filter
- Since:
-
- 0.2.4
Returns:
truthy / falsy value indicating if the data matches the filter
- Type
- Boolean
-
filterGt
-
Filter greater than specification
- Since:
-
- 0.1.9
- See:
Properties:
Name Type Description gtArray.<gpf.typedef.filterItem> List of items to compare
-
filterGte
-
Filter greater than or equal specification
- Since:
-
- 0.1.9
- See:
Properties:
Name Type Description gteArray.<gpf.typedef.filterItem> List of items to compare
-
filterItem
-
Filter specification
Type:
- gpf.typedef.filterProperty | gpf.typedef.filterEq | gpf.typedef.filterNe | gpf.typedef.filterLt | gpf.typedef.filterLte | gpf.typedef.filterGt | gpf.typedef.filterGte | gpf.typedef.filterNot | gpf.typedef.filterLike | gpf.typedef.filterOr | gpf.typedef.filterAnd
- Since:
-
- 0.1.9
- See:
-
filterLike
-
Filter like specification
- Since:
-
- 0.1.9
- See:
Properties:
Name Type Argument Description likegpf.typedef.filterItem Item
regexpString Regular expression specification
groupNumber <optional>
If the regular expression contains capturing group, this members can be used to return the group by index (1-based)
-
filterLt
-
Filter lower than specification
- Since:
-
- 0.1.9
- See:
Properties:
Name Type Description ltArray.<gpf.typedef.filterItem> List of items to compare
-
filterLte
-
Filter lower than or equal specification
- Since:
-
- 0.1.9
- See:
Properties:
Name Type Description lteArray.<gpf.typedef.filterItem> List of items to compare
-
filterNe
-
Filter not equal specification
- Since:
-
- 0.1.9
- See:
Properties:
Name Type Description eqArray.<gpf.typedef.filterItem> List of items to compare, returns true if all values are strictly different
-
filterNot
-
Filter not specification
- Since:
-
- 0.1.9
- See:
Properties:
Name Type Description notgpf.typedef.filterItem Item to negate, returns true if the item is falsy, false otherwise
-
filterOr
-
Filter OR specification
- Since:
-
- 0.1.9
- See:
Properties:
Name Type Description orArray.<gpf.typedef.filterItem> List of items to or, returns the first truthy value or the last falsy value
-
filterProperty
-
Filter property read specification
- Since:
-
- 0.1.9
- See:
Properties:
Name Type Description propertyString Property name to read
-
forEachCallback(value, index, container)
-
Callback function executed on each array / dictionary item
Parameters:
Name Type Description value* The current item
indexString The index of the current item
containerObject The container currently being enumerated (array or dictionary)
- Since:
-
- 0.1.5
Returns:
returned value
- Type
- *
-
httpRequestResponse
-
HTTP request response
- Since:
-
- 0.2.1
- See:
Properties:
Name Type Description statusint HTTP status
headersObject HTTP response headers
responseTextString Response Text
-
httpRequestSettings
-
HTTP request settings
- Since:
-
- 0.2.1
- See:
Properties:
Name Type Argument Default Description methodgpf.http.methods <optional>
gpf.http.methods.get HTTP method. Custom verbs (use any string) may be supported depending on the host (see Compatibility layer).
urlString URL to submit the request to
headersObject <optional>
Request headers
dataString <optional>
Request data, valid only for gpf.http.methods.post and gpf.http.methods.put
-
mapFunc(data)
-
Mapping function
Parameters:
Name Type Description data* Data to map
- Since:
-
- 0.2.5
Returns:
Mapped data (might be the received parameter)
- Type
- *
-
mockedRequest
-
Definition of a mocked request
- Since:
-
- 0.2.2
Properties:
Name Type Description methodgpf.http.methods HTTP method to mock
urlRegExp Regular expression matching the URL to mock
responsegpf.typedef.mockedResponseCallback Function that generates response when mocking applies
-
mockedRequestID
-
Mocked request identifier
- Since:
-
- 0.2.2
-
mockedResponseCallback(HTTP, captured)
-
Mocked response callback
Parameters:
Name Type Argument Description HTTPgpf.typedef.httpRequestSettings request settings
capturedString <repeatable>
Regular expression capturing group values
- Since:
-
- 0.2.2
Returns:
- Type
- Promise.<gpf.typedef.httpRequestResponse> | undefined
-
regExpForEachCallback(match, string)
-
Callback function executed on each regular expression match
Parameters:
Name Type Description matchArray The current match
stringString The string that is currently being matched
- Since:
-
- 0.2.1
-
requireOptions
-
- Since:
-
- 0.2.2
Properties:
Name Type Argument Default Description baseString <optional>
Base path used to resolve names
cacheObject <optional>
Inject names into the require cache
clearCacheBoolean <optional>
false When set, the require cache is first cleared
preloadObject <optional>
Inject names into the loading cache
preprocessgpf.typedef.requirePreprocessFunc <optional>
Resource preprocessor
-
requirePreprocessFunc(resource)
-
Resource preprocessing function. It enables changing the resource content and / or the resource type before it is evaluated.
Parameters:
Name Type Description resourcegpf.typedef.requireResource Resource definition
- Since:
-
- 0.2.9
Returns:
- Type
- Promise.<gpf.typedef.requireResource>
-
requireResource
-
- Since:
-
- 0.2.9
Properties:
Name Type Description nameString Resource resolved name
contentString Resource content
typeString Resource type (extension, for instance: ".js")
-
serialConverter(value, property, member)
-
Converter function executed upen property value serialization
Parameters:
Name Type Description value* The value to convert
propertygpf.typedef.serializableProperty The property definition
memberString The object member
- Since:
-
- 0.2.8
Returns:
converter value
- Type
- *
-
serializableProperty
-
Serializable property specification
- Since:
-
- 0.2.8
- See:
Properties:
Name Type Argument Default Description nameString Name of the property
typegpf.serial.types <optional>
gpf.serial.types.string Type of the property
requiredBoolean <optional>
false Property must have a value
readOnlyBoolean <optional>
Property is read only. When undefined, and if the host supports [Object.getOwnPropertyDescriptors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ Object/getOwnPropertyDescriptors), the framework will check if the property can be set. This property is resolved when used in the gpf.typedef.serialConverter.
-
sortItem
-
Property sorting specification
- Since:
-
- 0.1.9
Properties:
Name Type Argument Default Description propertyString Name of the property to sort by
typeString <optional>
"number" Property type, only allowed values are "number" and "string"
ascendingBoolean <optional>
true Descending if false
-
tagChild
-
Tag generation function child specification. When string, a text node is created.
- Since:
-
- 0.2.1
- See:
Properties:
Type Description String | gpf.typedef.Tag -
tagChildren
-
Tag generation function children specification
- Since:
-
- 0.2.1
- See:
Properties:
Type Description gpf.typedef.tagChild | Array.<gpf.typedef.tagChild> -
tagFunc( [attributes] [, children])
-
Tag generation function, it accepts up to two parameters:
- When no parameter is passed, an empty node is created
- If the first parameter is a literal object (see gpf.isLiteralObject), its properties are used to define the node attributes
- Otherwise, the second (or first if not a literal object) is used to define children that will be appended to this tag
Parameters:
Name Type Argument Description attributesObject | gpf.typedef.tagChildren <optional>
When a literal object is passed, it is interpreted as an attribute dictionary. The attribute name may contain the xlink namespace prefix.
childrengpf.typedef.tagChildren <optional>
List of children
- Since:
-
- 0.2.1
- See:
Returns:
Tag object
- Type
- gpf.typedef.Tag