Implements

Constructors

HandlerAndValidators

createAttachment: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    emailVerified: undefined | Predicate;
    organizationExists: undefined | Predicate;
    organizationHasNormalStatus: undefined | Predicate;
} & Record<string, Predicate>>

Description

Create attachment handler and validators

handler: createAttachmentHandler

validators:

createAttribute: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Create attribute handler and validators

handler: createAttributeHandler

validators:

createCategory: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Create category handler and validators

handler: createCategoryHandler

validators:

createFollow: HandlerAndValidators<{
    authentication: undefined | Predicate;
    followExists: undefined | Predicate;
    validBody: undefined | Predicate;
    validFollowerId: undefined | Predicate;
    validFollowerType: undefined | Predicate;
} & Record<string, Predicate>>

Description

Create follower handler and validators

handler: createFollowerHandler

validators:

createLocation: HandlerAndValidators<{
    authorization: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Create location handler and validators

handler: createLocationHandler

validators:

createManyProductVariants: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Create many product variants handler and validators

handler: createManyProductVariantsHandler

validators:

createManyProducts: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    organizationExists: undefined | Predicate;
    organizationHasNormalStatus: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Create many products handler and validators

handler: createManyProductsHandler

validators:

createProduct: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    organizationExists: undefined | Predicate;
    organizationHasNormalStatus: undefined | Predicate;
    validAttributes: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Create product handler and validators

handler: createProductHandler

validators:

createProductVariant: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Create product variant handler and validators

handler: createProductVariantHandler

validators:

deleteAttachment: HandlerAndValidators<{
    attachmentExists: undefined | Predicate;
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    emailVerified: undefined | Predicate;
    organizationExists: undefined | Predicate;
    organizationHasNormalStatus: undefined | Predicate;
} & Record<string, Predicate>>

Description

Delete attachment handler and validators

handler: deleteAttachmentHandler

validators:

deleteAttribute: HandlerAndValidators<{
    attributeExists: undefined | Predicate;
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
} & Record<string, Predicate>>

Description

Delete attribute handler and validators

handler: deleteAttributeHandler

validators:

deleteCategory: HandlerAndValidators<{
    authorization: undefined | Predicate;
} & Record<string, Predicate>>

Description

Delete one category handler and validators

handler: deleteCategoryHandler

validators:

  • authorization: UserDefaultAdapterAPI.createIsAdminUserValidator
deleteFollow: HandlerAndValidators<{
    authentication: undefined | Predicate;
    validBody: undefined | Predicate;
    validFollowerId: undefined | Predicate;
    validFollowerType: undefined | Predicate;
} & Record<string, Predicate>>

Description

Delete follower handler and validators

handler: deleteFollowerHandler

validators:

deleteLocation: HandlerAndValidators<{
    authorization: undefined | Predicate;
} & Record<string, Predicate>>

Description

Delete one location handler and validators

handler: deleteLocationHandler

validators:

  • authorization: UserDefaultAdapterAPI.createIsAdminUserValidator
deleteManyProductVariants: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    variantExists: undefined | Predicate;
} & Record<string, Predicate>>

Description

Delete many product variants handler and validators

handler: deleteManyProductVariantsHandler

validators:

deleteManyProducts: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    organizationExists: undefined | Predicate;
    productsBelongsToOrg: undefined | Predicate;
} & Record<string, Predicate>>

Description

Delete many products handler and validators

handler: deleteManyProductsHandler

validators:

deleteProduct: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
} & Record<string, Predicate>>

Description

Delete one product handler and validators

handler: deleteProductHandler

validators:

deleteProductVariant: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    variantExists: undefined | Predicate;
} & Record<string, Predicate>>

Description

Delete one product variant handler and validators

handler: deleteProductVariantHandler

validators:

duplicateProduct: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
} & Record<string, Predicate>>

Description

Copy product handler and validators

handler: duplicateProductHandler

validators:

  • authentication: UserDefaultAdapterAPI.createIsEmailVerifiedUserValidator
  • authorization: UserDefaultAdapterAPI.createIsAdminUserValidator || isUserOrganizationOwnerOrAdmin
getAttachment: HandlerAndValidators<{
    attachmentExists: undefined | Predicate;
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    emailVerified: undefined | Predicate;
    organizationExists: undefined | Predicate;
    organizationHasNormalStatus: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get attachment handler and validators

handler: getAttachmentHandler

validators:

getAttachmentUploadUrl: HandlerAndValidators<{
    authentication: undefined | Predicate;
    emailVerified: undefined | Predicate;
    organizationExists: undefined | Predicate;
    organizationHasNormalStatus: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get attachment upload url handler and validators

handler: getAttachmentUploadUrlHandler

validators:

  • authentication: createIsAuthenticatedValidator
  • organizationExists: isOrganizationExists
  • organizationHasNormalStatus: OrganizationDefaultAdapterAPI.createIsNormalStatusOrganizationValidator
  • emailVerified: UserDefaultAdapterAPI.createIsEmailVerifiedUserValidator
getCategory: HandlerAndValidators<Record<string, Predicate>>

Description

Get one category handler and validators

handler: getCategoryHandler

getCategoryProductCount: HandlerAndValidators<Record<string, Predicate>>

Description

Get category product count handler and validators

handler: getCategoryProductCountHandler

getCategoryTree: HandlerAndValidators<Record<string, Predicate>>

Description

Get category tree handler and validators

handler: getCategoryTreeHandler

getLocation: HandlerAndValidators<Record<string, Predicate>>

Description

Get one location handler and validators

handler: getLocationHandler

getLocationProductCount: HandlerAndValidators<Record<string, Predicate>>

Description

Get location product count handler and validators

handler: getLocationProductCountHandler

getLocationTree: HandlerAndValidators<Record<string, Predicate>>

Description

Get location tree handler and validators

handler: getLocationTreeHandler

getProduct: HandlerAndValidators<Record<string, Predicate>>

Description

Get one product handler and validators

handler: getProductHandler

getProductVariant: HandlerAndValidators<{
    authentication: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get one product variant handler and validators

handler: getProductVariantHandler

validators:

listAttachments: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    emailVerified: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get attachments handler and validators

handler: getAttachmentsHandler

validators:

  • authentication: createIsAuthenticatedValidator
  • authorization: UserDefaultAdapterAPI.createIsAdminUserValidator
  • emailVerified: UserDefaultAdapterAPI.createIsEmailVerifiedUserValidator
listAttachmentsForOrganization: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    emailVerified: undefined | Predicate;
    organizationExists: undefined | Predicate;
    organizationHasNormalStatus: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get attachments by organization handler and validators

handler: getAttachmentsByOwnerHandler

validators:

listAttributes: HandlerAndValidators<Record<string, Predicate>>

Description

Get attributes handler and validators

handler: listAttributesHandler

listCategories: HandlerAndValidators<Record<string, Predicate>>

Description

Get categories handler and validators

handler: listCategoriesHandler

listFollowers: HandlerAndValidators<{
    authentication: undefined | Predicate;
    validFollowerType: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get followers handler and validators

handler: getFollowersHandler

validators:

listFollowsForUser: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get user follows handler and validators

handler: getUserFollowsHandler

validators:

listLocations: HandlerAndValidators<Record<string, Predicate>>

Description

Get locations handler and validators

handler: listLocationsHandler

listProductVariants: HandlerAndValidators<{
    productExists: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get product variants handler and validators

handler: listProductVariantsHandler

validators:

listProducts: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get products for admin handler and validators handler: listProductsHandler validators:

Memberof

ProductDefaultAdapterAPI

listProductsForActiveStatus: HandlerAndValidators<Record<string, Predicate>>

Description

Get products handler and validators

handler: listProductsForActiveStatusHandler

listProductsForOrganization: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    organizationExists: undefined | Predicate;
    organizationHasNormalStatus: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get products by organization handler and validators

handler: listProductsForOrganizationHandler

validators:

listRailAreas: HandlerAndValidators<Record<string, Predicate>>

Description

Get rail area list handler and validators

handler: listRailAreasHandler

listRailCompanies: HandlerAndValidators<Record<string, Predicate>>

Description

Get rail company list handler and validators

handler: listRailCompaniesHandler

listRailLines: HandlerAndValidators<Record<string, Predicate>>

Description

Get rail line list handler and validators

handler: listRailLinesHandler

listRailStations: HandlerAndValidators<Record<string, Predicate>>

Description

Get rail station list handler and validators

handler: listRailStationsHandler

updateAttribute: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Update attribute handler and validators

handler: updateAttributeHandler

validators:

updateCategory: HandlerAndValidators<{
    authorization: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Update one category handler and validators

handler: updateCategoryHandler

validators:

updateLocation: HandlerAndValidators<{
    authorization: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Update one location handler and validators

handler: updateLocationHandler

validators:

updateManyProductVariants: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    validBody: undefined | Predicate;
    variantExists: undefined | Predicate;
} & Record<string, Predicate>>

Description

Update many product variants handler and validators

handler: updateManyProductVariantsHandler

validators:

updateManyProducts: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    hasSuperAdminOnlyField: undefined | Predicate;
    organizationExists: undefined | Predicate;
    productsBelongsToOrg: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Update many products handler and validators

handler: updateManyProductsHandler

validators:

updateProduct: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    hasSuperAdminOnlyField: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Update one product handler and validators

handler: updateProductHandler

validators:

updateProductVariant: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    validBody: undefined | Predicate;
    variantExists: undefined | Predicate;
} & Record<string, Predicate>>

Description

Update one product variant handler and validators

handler: updateProductVariantHandler

validators:

Properties

adapterName: string = ADAPTER_NAME
authSecrets: AuthSecrets
dataServices: {
    attachment: AttachmentService;
    attribute: AttributeDataService;
    category: CategoryDataService;
    follower: FollowerService;
    location: LocationDataService;
    product: ProductDataService;
    productExpandPipeline: ProductExpandPipelineDataService;
    productStatistics: ProductStatisticsDataService;
    productVariant: ProductVariantDataService;
    railArea: RailAreaDataService;
    railCompany: RailCompanyDataService;
    railLine: RailLineDataService;
    railStation: RailStationDataService;
}

Type declaration

opts: Required<Omit<CatalogDefaultAdapterOptions, keyof AuthSecrets>>

Generated using TypeDoc