Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Private baseUrl

baseUrl: string
memberof

BaseService

Private key

key: string
memberof

BaseService

Private urlService

urlService: string

Base Url of the Service API

memberof

BaseService

Private user

user: string
memberof

BaseService

Accessors

Protected serviceUrl

  • get serviceUrl(): string

Methods

getOne

getSearch

getSearchForStock

getUpdated

  • getUpdated(__namedParameters?: { length: undefined | number; start: undefined | number; updated: Date }): Promise<KobanResultList<KobanProduct>>
  • Renvoie la liste des produits créés ou modifiés depuis une date de référence

    memberof

    ProductService

    Parameters

    • Default value __namedParameters: { length: undefined | number; start: undefined | number; updated: Date } = {length: 20,start: 0,updated: new Date()}

      Options object

      • length: undefined | number

        Longueur de la liste renvoyée (pagination).

      • start: undefined | number

        Index de départ (pagination).

      • updated: Date

        date de référence.

    Returns Promise<KobanResultList<KobanProduct>>

handleApiError

postMany

  • Crée ou modifie un ensemble de produits. Si un produit correspondant à la clé uniqueproperty existe, alors l'API effectue une création. Sinon l'API met à jour le produit.

    memberof

    ProductService

    Parameters

    • products: KobanProduct[]

      Tableau de Produits

    • uniqueproperty: KobanProductUniqueProperty

      Propriété sélectionnée pour vérifier si le produit doit être créé ou modifié. L'API vérifie qu'un produit correspondant à cette clé existe. Si il existe, il effectue une modification, sinon il effectue une création

    • catproductuniqueproperty: KobanProductCategoryUniqueProperty

      Propriété définissant la clé de la catégorie de produit associée au produit.

    Returns Promise<string[]>

postOne

  • Crée ou modifie un produit. Si un produit correspondant à la clé uniqueproperty existe, alors l'API effectue une création. Sinon l'API met à jour le produit.

    memberof

    ProductService

    Parameters

    • product: KobanProduct

      Le produit

    • uniqueproperty: KobanProductUniqueProperty

      Propriété sélectionnée pour vérifier si le produit doit être créé ou modifié. L'API vérifie qu'un produit correspondant à cette clé existe. Si il existe, il effectue une modification, sinon il effectue une création

    • catproductuniqueproperty: KobanProductCategoryUniqueProperty

      Propriété définissant la clé de la catégorie de produit associée au produit.

    Returns Promise<string>

Legend

  • Constructor
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Private property
  • Private method
  • Property

Generated using TypeDoc