@d-najd/universal-media-tracker-sdk 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -14,16 +14,17 @@ export { default as CreateHandler } from './types/handler/base/CreateHandler';
14
14
  export { default as BaseHandlerResponse } from './types/handler/base/BaseHandlerResponse';
15
15
  export { default as BaseHandlerArgs } from './types/handler/base/BaseHandlerArgs';
16
16
  export { default as BaseHandler } from './types/handler/base/BaseHandler';
17
- export { default as PluginSourceHandlerResponse } from './types/handler/plugin/source/PluginSourceHandlerResponse';
18
- export { default as PluginSourceHandlerArgs } from './types/handler/plugin/source/PluginSourceHandlerArgs';
19
- export { default as CreatePluginSourceHandler } from './types/handler/plugin/source/CreatePluginSourceHandler';
20
- export { default as PluginFactoryHandlerResponse } from './types/handler/plugin/factory/PluginFactoryHandlerResponse';
21
- export { default as PluginFactoryHandlerArgs } from './types/handler/plugin/factory/PluginFactoryHandlerArgs';
22
- export { default as CreatePluginFactoryHandler } from './types/handler/plugin/factory/CreatePluginFactoryHandler';
23
17
  export { default as MetaPreview } from './types/handler/media/catalog/MetaPreview';
24
18
  export { default as CreateCatalogHandler } from './types/handler/media/catalog/CreateCatalogHandler';
25
19
  export { default as CatalogHandlerResponse } from './types/handler/media/catalog/CatalogHandlerResponse';
26
20
  export { default as CatalogHandlerArgs } from './types/handler/media/catalog/CatalogHandlerArgs';
27
21
  export { default as ResourceBrowseOptionDefaults } from './types/handler/media/browse-option/ResourceBrowseOptionDefaults';
22
+ export { default as ResourceBrowseOptionConverter } from './types/handler/media/browse-option/ResourceBrowseOptionConverter';
28
23
  export { default as ResourceBrowseOptionArgs } from './types/handler/media/browse-option/ResourceBrowseOptionArgs';
29
24
  export { default as ResourceBrowseOption } from './types/handler/media/browse-option/ResourceBrowseOption';
25
+ export { default as PluginSourceHandlerResponse } from './types/handler/plugin/source/PluginSourceHandlerResponse';
26
+ export { default as PluginSourceHandlerArgs } from './types/handler/plugin/source/PluginSourceHandlerArgs';
27
+ export { default as CreatePluginSourceHandler } from './types/handler/plugin/source/CreatePluginSourceHandler';
28
+ export { default as PluginFactoryHandlerResponse } from './types/handler/plugin/factory/PluginFactoryHandlerResponse';
29
+ export { default as PluginFactoryHandlerArgs } from './types/handler/plugin/factory/PluginFactoryHandlerArgs';
30
+ export { default as CreatePluginFactoryHandler } from './types/handler/plugin/factory/CreatePluginFactoryHandler';
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  // Auto‑generated barrel file – do not edit manually
2
2
  export { default as Plugin } from './Plugin';
3
+ export { default as ResourceBrowseOptionConverter } from './types/handler/media/browse-option/ResourceBrowseOptionConverter';
@@ -6,6 +6,6 @@ import ResourceHandlerResponse from "./ResourceHandlerResponse";
6
6
  type BaseResourceHandler<T extends ResourceHandlerArgs = ResourceHandlerArgs, R extends ResourceHandlerResponse = ResourceHandlerResponse> = BaseHandler<T, R> & {
7
7
  readonly name?: string;
8
8
  readonly resourceType?: ResourceType | string;
9
- readonly extra?: ResourceBrowseOption[];
9
+ readonly browseOptions?: ResourceBrowseOption[];
10
10
  };
11
11
  export default BaseResourceHandler;
@@ -1,6 +1,6 @@
1
1
  import BaseHandlerArgs from "../base/BaseHandlerArgs";
2
- import ResourceBrowseOption from "./browse-option/ResourceBrowseOption";
2
+ import { ResourceBrowseOptionArgs } from "../../../index";
3
3
  type ResourceHandlerArgs = BaseHandlerArgs & {
4
- readonly browseOptions?: ResourceBrowseOption[];
4
+ readonly browseOptions?: ResourceBrowseOptionArgs[];
5
5
  };
6
6
  export default ResourceHandlerArgs;
@@ -1,4 +1,4 @@
1
- import { ResourceBrowseOptionDefaults } from "./ResourceBrowseOptionDefaults";
1
+ import ResourceBrowseOptionDefaults from "./ResourceBrowseOptionDefaults";
2
2
  /**
3
3
  * @see ResourceBrowseOptionDefaults
4
4
  * @see ResourceBrowseOptionArgs
@@ -0,0 +1,5 @@
1
+ declare const browseOptionConverter: {
2
+ toArg: () => void;
3
+ toType: () => void;
4
+ };
5
+ export default browseOptionConverter;
@@ -0,0 +1,7 @@
1
+ const browseOptionConverter = {
2
+ toArg: () => {
3
+ },
4
+ toType: () => {
5
+ }
6
+ };
7
+ export default browseOptionConverter;
@@ -1,3 +1,4 @@
1
1
  type ResourceBrowseOptionDefaults = 'search' | // type string
2
- 'skip';
2
+ 'skip' | // type number (int), `isRequired` always false
3
+ 'genre';
3
4
  export default ResourceBrowseOptionDefaults;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-najd/universal-media-tracker-sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [