Skip to content
Snippets Groups Projects
Select Git revision
  • 58971a6000deec338234619bffa55f3e42c12816
  • master default protected
  • dev_2022
  • patch-1
  • develop
  • 50-use-ubuntus-libhidapi
  • issue-highLevelDispatch
  • issue-highLevelDesign
  • issue-motorStartBug
  • issue-commandLayerDesign
  • v1.0
  • v0.4-rc.13
  • v0.4-rc.12
  • v0.4-rc.11
  • v0.4-rc.10
  • v0.4-rc.9
  • v0.3-rc.8
  • v0.3-rc.7
  • v0.3-rc.6
  • v0.3-rc.5
  • v0.3-rc.4
  • v0.3-rc.3
  • v0.3-rc.2
  • v0.3-rc.1
  • v0.3-rc
  • v0.2
  • v0.1.1
  • v0.1
28 results

source.html

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    admin.ts 591 B
    import { MapperConfiguration, MappingPair } from "@dynamic-mapper/mapper";
    
    import type { QuotaDto } from "@coscine/api-client/dist/types/Coscine.Api";
    import { QuotaDimObject } from "@coscine/api-client/dist/types/Coscine.Api.Admin";
    
    /**
     * @deprecated - Delete this mapping pair once APIv2 is used globally.
     */
    export const QuotaDimObject2QuotaDto = new MappingPair<
      QuotaDimObject,
      QuotaDto
    >();
    
    const configuration = new MapperConfiguration((cfg) => {
      // Other maps
      cfg.createAutoMap(QuotaDimObject2QuotaDto, {});
    });
    
    export const adminMapper = configuration.createMapper();