Job Components: `Operation Loader Interfaces Asset Bundle Type`
operation-loader/interfaces.AssetBundleType
Table of contents
Enumeration Members
Enumeration Members
BUNDLED
• BUNDLED = "BUNDLED"
This represents operations that live in the index file of the asset name, and returns an object with the 'ASSETS' key which lists all operations and api available
Example
some-asset/index.ts
export default {
* // A list of the operations provided by this asset bundle
* ASSETS: {
// The key here would be the current file name
some-processor-name: {
Processor: ProcessorExampleBatcher,
Schema: ProcessorSchema,
},
some-reader-name: {
Fetcher: ExampleFetcher,
Slicer: ExampleSlicer,
Schema: ReaderSchema,
},
some-api-name: {
API: ExampleAPI,
Schema: SchemaAPI,
},
},
};
Defined in
packages/job-components/src/operation-loader/interfaces.ts:63
LEGACY
• LEGACY = "LEGACY"
This represents legacy operations
Defined in
packages/job-components/src/operation-loader/interfaces.ts:27
STANDARD
• STANDARD = "STANDARD"
This represents operations that are in the format of ASSET_NAME/OP_NAME/OPERATION_TYPE
Example
some-asset/myOP/processor.js
some-asset/myOP/schema.js
Defined in
packages/job-components/src/operation-loader/interfaces.ts:35