Skip to content

Commit

Permalink
move src/constants.ts to src/libs/constants.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sugat009 committed Dec 5, 2024
1 parent f8087b9 commit e6aea4f
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion shared-libs/cht-datasource/src/contact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { RemoteDataContext } from './remote/libs/data-context';
import * as Local from './local';
import * as Remote from './remote';
import * as ContactTypes from './contact-types';
import { DEFAULT_CONTACT_PAGE_LIMIT } from './constants';
import { DEFAULT_CONTACT_PAGE_LIMIT } from './libs/constants';

/** */
export namespace v1 {
Expand Down
2 changes: 1 addition & 1 deletion shared-libs/cht-datasource/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import {
DEFAULT_PEOPLE_PAGE_LIMIT,
DEFAULT_PLACE_PAGE_LIMIT,
DEFAULT_REPORT_PAGE_LIMIT
} from './constants';
} from './libs/constants';

export { Nullable, NonEmptyArray } from './libs/core';
export { DataContext } from './libs/data-context';
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion shared-libs/cht-datasource/src/local/contact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import contactTypeUtils from '@medic/contact-types-utils';
import { getLineageDocsById, getPrimaryContactIds, hydrateLineage, hydratePrimaryContact } from './libs/lineage';
import { InvalidArgumentError } from '../libs/error';
import { validateCursor } from './libs/core';
import { END_OF_ALPHABET_MARKER } from '../constants';
import { END_OF_ALPHABET_MARKER } from '../libs/constants';

/** @internal */
export namespace v1 {
Expand Down
2 changes: 1 addition & 1 deletion shared-libs/cht-datasource/src/local/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as Report from '../report';
import { Doc } from '../libs/doc';
import logger from '@medic/logger';
import { validateCursor } from './libs/core';
import { END_OF_ALPHABET_MARKER } from '../constants';
import { END_OF_ALPHABET_MARKER } from '../libs/constants';

/** @internal */
export namespace v1 {
Expand Down
2 changes: 1 addition & 1 deletion shared-libs/cht-datasource/src/person.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { LocalDataContext } from './local/libs/data-context';
import { RemoteDataContext } from './remote/libs/data-context';
import { InvalidArgumentError } from './libs/error';
import { assertCursor, assertLimit, assertTypeQualifier, getPagedGenerator, Nullable, Page } from './libs/core';
import { DEFAULT_PEOPLE_PAGE_LIMIT } from './constants';
import { DEFAULT_PEOPLE_PAGE_LIMIT } from './libs/constants';

/** */
export namespace v1 {
Expand Down
2 changes: 1 addition & 1 deletion shared-libs/cht-datasource/src/place.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as Local from './local';
import * as Remote from './remote';
import { assertCursor, assertLimit, assertTypeQualifier, getPagedGenerator, Nullable, Page } from './libs/core';
import { InvalidArgumentError } from './libs/error';
import { DEFAULT_PLACE_PAGE_LIMIT } from './constants';
import { DEFAULT_PLACE_PAGE_LIMIT } from './libs/constants';

/** */
export namespace v1 {
Expand Down
2 changes: 1 addition & 1 deletion shared-libs/cht-datasource/src/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { InvalidArgumentError } from './libs/error';
import * as Local from './local';
import { FreetextQualifier, isUuidQualifier, UuidQualifier } from './qualifier';
import * as Remote from './remote';
import { DEFAULT_REPORT_PAGE_LIMIT } from './constants';
import { DEFAULT_REPORT_PAGE_LIMIT } from './libs/constants';

/** */
export namespace v1 {
Expand Down

0 comments on commit e6aea4f

Please sign in to comment.