npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@acoustic-content-sdk/component-rest

v9.0.10076

Published

Implementation of base classes to implement SDK services based on REST.

Downloads

72

Readme

npm

Implementation of base classes to implement SDK services based on REST.

API Documentation

Home > @acoustic-content-sdk/component-rest

component-rest package

Implementation of base classes to implement SDK services based on REST.

Classes

| Class | Description | | --- | --- | | AbstractAuthStatusService | Checks for the authentication status based on a REST request | | AbstractDeliveryContentResolverService | Base class to implement DeliveryContentResolver | | AbstractDeliveryLayoutMappingResolverService | Base class to implement DeliveryLayoutMappingResolver | | AbstractDeliveryLayoutResolverService | Base class to implement DeliveryLayoutResolver | | AbstractDeliveryPageResolverService | Base class to implement DeliveryPageResolver | | AbstractDeliveryTypeResolverService | Base class to implement DeliveryTypeResolver | | AbstractSiteResolverService | |

Functions

| Function | Description | | --- | --- | | createUrlConfig(aBaseUrl, aApiUrl, aResourceUrl, aDocument) | Construcs a UrlConfig object based on some configuration |

Variables

| Variable | Description | | --- | --- | | VERSION | Version and build number of the package |

Home > @acoustic-content-sdk/component-rest > AbstractAuthStatusService

AbstractAuthStatusService class

Checks for the authentication status based on a REST request

Signature:

export declare class AbstractAuthStatusService implements AuthStatus 

Constructors

| Constructor | Modifiers | Description | | --- | --- | --- | | (constructor)(aFetchText, aLogSvc) | | Initialization of the service. |

Properties

| Property | Modifiers | Type | Description | | --- | --- | --- | --- | | authenticated$ | | Observable<boolean> | |

Home > @acoustic-content-sdk/component-rest > AbstractDeliveryContentResolverService

AbstractDeliveryContentResolverService class

Base class to implement DeliveryContentResolver

Signature:

export declare class AbstractDeliveryContentResolverService implements DeliveryContentResolver 

Constructors

| Constructor | Modifiers | Description | | --- | --- | --- | | (constructor)(aSearch, aLogSvc) | | Initialization |

Properties

| Property | Modifiers | Type | Description | | --- | --- | --- | --- | | getDeliveryContentItem | | (aID: string) => Observable<DeliveryContentItem> | |

Home > @acoustic-content-sdk/component-rest > AbstractDeliveryLayoutMappingResolverService

AbstractDeliveryLayoutMappingResolverService class

Base class to implement DeliveryLayoutMappingResolver

Signature:

export declare class AbstractDeliveryLayoutMappingResolverService implements DeliveryLayoutMappingResolver 

Constructors

| Constructor | Modifiers | Description | | --- | --- | --- | | (constructor)(aSearch, aLogSvc) | | Initialization |

Properties

| Property | Modifiers | Type | Description | | --- | --- | --- | --- | | getDeliveryLayoutMapping | | (aTypeId: string) => Observable<DeliveryLayoutMapping> | |

Home > @acoustic-content-sdk/component-rest > AbstractDeliveryLayoutResolverService

AbstractDeliveryLayoutResolverService class

Base class to implement DeliveryLayoutResolver

Signature:

export declare class AbstractDeliveryLayoutResolverService implements DeliveryLayoutResolver 

Constructors

| Constructor | Modifiers | Description | | --- | --- | --- | | (constructor)(aSearch, aLogSvc) | | Initialization |

Properties

| Property | Modifiers | Type | Description | | --- | --- | --- | --- | | getDeliveryLayout | | (aID: string) => Observable<DeliveryLayout> | |

Home > @acoustic-content-sdk/component-rest > AbstractDeliveryPageResolverService

AbstractDeliveryPageResolverService class

Base class to implement DeliveryPageResolver

Signature:

export declare class AbstractDeliveryPageResolverService implements DeliveryPageResolver 

Constructors

| Constructor | Modifiers | Description | | --- | --- | --- | | (constructor)(aSearch, aLogSvc) | | Initialization |

Properties

| Property | Modifiers | Type | Description | | --- | --- | --- | --- | | getDeliveryPage | | (aPath: string) => Observable<DeliveryContentItem> | |

Home > @acoustic-content-sdk/component-rest > AbstractDeliveryTypeResolverService

AbstractDeliveryTypeResolverService class

Base class to implement DeliveryTypeResolver

Signature:

export declare class AbstractDeliveryTypeResolverService implements DeliveryTypeResolver 

Constructors

| Constructor | Modifiers | Description | | --- | --- | --- | | (constructor)(aSearch, aLogSvc) | | Initialization |

Properties

| Property | Modifiers | Type | Description | | --- | --- | --- | --- | | getDeliveryType | | (aId: string) => Observable<DeliveryType> | |

Home > @acoustic-content-sdk/component-rest > AbstractSiteResolverService

AbstractSiteResolverService class

Signature:

export declare class AbstractSiteResolverService implements DeliverySiteResolver 

Constructors

| Constructor | Modifiers | Description | | --- | --- | --- | | (constructor)(aFetchText, aProtected, aLogSvc) | | Constructs a new instance of the AbstractSiteResolverService class |

Properties

| Property | Modifiers | Type | Description | | --- | --- | --- | --- | | getSiteDeliveryContentItem | | () => Observable<SiteDeliveryContentItem> | |

Home > @acoustic-content-sdk/component-rest > createUrlConfig

createUrlConfig() function

Construcs a UrlConfig object based on some configuration

Signature:

export declare function createUrlConfig(aBaseUrl?: HubInfoUrlProvider, aApiUrl?: HubInfoUrlProvider, aResourceUrl?: HubInfoUrlProvider, aDocument?: any): Observable<UrlConfig>;

Parameters

| Parameter | Type | Description | | --- | --- | --- | | aBaseUrl | HubInfoUrlProvider | the base URL | | aApiUrl | HubInfoUrlProvider | the API URL | | aResourceUrl | HubInfoUrlProvider | the resource URL | | aDocument | any | the document |

Returns:

Observable<UrlConfig>

the observable of the UrlConfig object

Home > @acoustic-content-sdk/component-rest > VERSION

VERSION variable

Version and build number of the package

Signature:

VERSION: {
    version: {
        major: string;
        minor: string;
        patch: string;
        branch: string;
    };
    build: Date;
}

Home > @acoustic-content-sdk/component-rest > AbstractAuthStatusService > (constructor)

AbstractAuthStatusService.(constructor)

Initialization of the service.

Signature:

protected constructor(aFetchText: FetchText, aLogSvc?: LoggerService);

Parameters

| Parameter | Type | Description | | --- | --- | --- | | aFetchText | FetchText | the callback to make a request | | aLogSvc | LoggerService | the logger service |

Home > @acoustic-content-sdk/component-rest > AbstractAuthStatusService > authenticated$

AbstractAuthStatusService.authenticated$ property

Signature:

authenticated$: Observable<boolean>;

Home > @acoustic-content-sdk/component-rest > AbstractDeliveryContentResolverService > (constructor)

AbstractDeliveryContentResolverService.(constructor)

Initialization

Signature:

protected constructor(aSearch: DeliverySearchResolver, aLogSvc?: LoggerService);

Parameters

| Parameter | Type | Description | | --- | --- | --- | | aSearch | DeliverySearchResolver | search service that is uses to back the content service | | aLogSvc | LoggerService | logger service |

Home > @acoustic-content-sdk/component-rest > AbstractDeliveryContentResolverService > getDeliveryContentItem

AbstractDeliveryContentResolverService.getDeliveryContentItem property

Signature:

getDeliveryContentItem: (aID: string) => Observable<DeliveryContentItem>;

Home > @acoustic-content-sdk/component-rest > AbstractDeliveryLayoutMappingResolverService > (constructor)

AbstractDeliveryLayoutMappingResolverService.(constructor)

Initialization

Signature:

protected constructor(aSearch: DeliverySearchResolver, aLogSvc?: LoggerService);

Parameters

| Parameter | Type | Description | | --- | --- | --- | | aSearch | DeliverySearchResolver | search service that is uses to back the content service | | aLogSvc | LoggerService | logger service |

Home > @acoustic-content-sdk/component-rest > AbstractDeliveryLayoutMappingResolverService > getDeliveryLayoutMapping

AbstractDeliveryLayoutMappingResolverService.getDeliveryLayoutMapping property

Signature:

getDeliveryLayoutMapping: (aTypeId: string) => Observable<DeliveryLayoutMapping>;

Home > @acoustic-content-sdk/component-rest > AbstractDeliveryLayoutResolverService > (constructor)

AbstractDeliveryLayoutResolverService.(constructor)

Initialization

Signature:

protected constructor(aSearch: DeliverySearchResolver, aLogSvc?: LoggerService);

Parameters

| Parameter | Type | Description | | --- | --- | --- | | aSearch | DeliverySearchResolver | search service that is uses to back the content service | | aLogSvc | LoggerService | logger service |

Home > @acoustic-content-sdk/component-rest > AbstractDeliveryLayoutResolverService > getDeliveryLayout

AbstractDeliveryLayoutResolverService.getDeliveryLayout property

Signature:

getDeliveryLayout: (aID: string) => Observable<DeliveryLayout>;

Home > @acoustic-content-sdk/component-rest > AbstractDeliveryPageResolverService > (constructor)

AbstractDeliveryPageResolverService.(constructor)

Initialization

Signature:

protected constructor(aSearch: DeliverySearchResolver, aLogSvc?: LoggerService);

Parameters

| Parameter | Type | Description | | --- | --- | --- | | aSearch | DeliverySearchResolver | search service that is uses to back the content service | | aLogSvc | LoggerService | logger service |

Home > @acoustic-content-sdk/component-rest > AbstractDeliveryPageResolverService > getDeliveryPage

AbstractDeliveryPageResolverService.getDeliveryPage property

Signature:

getDeliveryPage: (aPath: string) => Observable<DeliveryContentItem>;

Home > @acoustic-content-sdk/component-rest > AbstractDeliveryTypeResolverService > (constructor)

AbstractDeliveryTypeResolverService.(constructor)

Initialization

Signature:

protected constructor(aSearch: DeliverySearchResolver, aLogSvc?: LoggerService);

Parameters

| Parameter | Type | Description | | --- | --- | --- | | aSearch | DeliverySearchResolver | search service that is uses to back the content service | | aLogSvc | LoggerService | logger service |

Home > @acoustic-content-sdk/component-rest > AbstractDeliveryTypeResolverService > getDeliveryType

AbstractDeliveryTypeResolverService.getDeliveryType property

Signature:

getDeliveryType: (aId: string) => Observable<DeliveryType>;

Home > @acoustic-content-sdk/component-rest > AbstractSiteResolverService > (constructor)

AbstractSiteResolverService.(constructor)

Constructs a new instance of the AbstractSiteResolverService class

Signature:

protected constructor(aFetchText: FetchText, aProtected: ProtectedContent, aLogSvc?: LoggerService);

Parameters

| Parameter | Type | Description | | --- | --- | --- | | aFetchText | FetchText | | | aProtected | ProtectedContent | | | aLogSvc | LoggerService | |

Home > @acoustic-content-sdk/component-rest > AbstractSiteResolverService > getSiteDeliveryContentItem

AbstractSiteResolverService.getSiteDeliveryContentItem property

Signature:

getSiteDeliveryContentItem: () => Observable<SiteDeliveryContentItem>;