@epam/statgpt-sdmx-toolkit 0.1.0-rc.0 → 0.1.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/statgpt-sdmx-toolkit",
3
- "version": "0.1.0-rc.0",
3
+ "version": "0.1.0-rc.1",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": {
@@ -14,8 +14,8 @@
14
14
  "module": "./index.mjs",
15
15
  "types": "./index.d.ts",
16
16
  "dependencies": {
17
- "@epam/statgpt-dial-toolkit": "0.1.0-rc.0",
18
- "@epam/statgpt-shared-toolkit": "0.1.0-rc.0",
17
+ "@epam/statgpt-dial-toolkit": "0.1.0-rc.1",
18
+ "@epam/statgpt-shared-toolkit": "0.1.0-rc.1",
19
19
  "compare-versions": "^6.1.1"
20
20
  }
21
21
  }
@@ -4,5 +4,6 @@ import { TimeRange } from '../../../shared-toolkit/src/models/time-range';
4
4
  import { Codelist } from '../models/structural-metadata/codelist';
5
5
  export declare const TIME_PERIOD_END = "time_period_end";
6
6
  export declare const TIME_PERIOD_START = "time_period_start";
7
+ export declare const TIME_PERIOD = "TIME_PERIOD";
7
8
  export declare const getAnnotationPeriod: (annotations: Annotation[] | undefined) => TimeRange;
8
9
  export declare const getAvailableCodesFromConstrains: (codes: Codelist[] | undefined, dimensionId: string | undefined, contentConstraints: DataConstraints[] | undefined, locale?: string, filters?: string[]) => Codelist[];
@@ -0,0 +1,55 @@
1
+ import { TimeRange } from '../../../shared-toolkit/src/models/time-range';
2
+ import { DataConstraints } from '../models';
3
+ export declare const quarterPattern: RegExp;
4
+ export declare const weeklyPattern: RegExp;
5
+ export declare const semiAnnuallyPattern: RegExp;
6
+ export declare const yearlyPattern: RegExp;
7
+ export declare const dailyPattern: RegExp;
8
+ export declare const monthlyPattern: RegExp;
9
+ export declare const getYearlyRegExp: (date: string) => RegExpExecArray | null;
10
+ export declare const isYearly: (date: string) => boolean;
11
+ export declare const getSemiAnnuallyRegExp: (date: string) => RegExpExecArray | null;
12
+ export declare const isSemiAnnually: (date: string) => boolean;
13
+ export declare const getMonthlyRegExp: (date: string) => RegExpExecArray | null;
14
+ export declare const isMonthly: (date: string) => boolean;
15
+ export declare const getQuarterlyRegExp: (date: string) => RegExpExecArray | null;
16
+ export declare const isQuarterly: (date: string) => boolean;
17
+ export declare const getDailyRegExp: (date: string) => RegExpExecArray | null;
18
+ export declare const isDaily: (date: string) => boolean;
19
+ export declare const getWeeklyRegExp: (date: string) => RegExpExecArray | null;
20
+ export declare const isWeekly: (date: string) => boolean;
21
+ export declare const getYearPeriod: (year: string | number, startPeriod: string, endPeriod: string) => {
22
+ start: Date;
23
+ end: Date;
24
+ };
25
+ export declare const getQuartersData: (year: number, startMonth?: number, endMonth?: number, includeBorderValues?: boolean, quarterSymbol?: string) => string[];
26
+ export declare const getSemiAnnualData: (year: number, startMonth?: number, endMonth?: number, semiAnnualSymbol?: string) => string[];
27
+ export declare const getQuarterByMonth: (month: number) => number;
28
+ export declare const getMonthlyData: (year: number, startMonth?: number, endMonth?: number, monthSymbol?: string) => string[];
29
+ export declare const getMonthlyDataByQuarter: (year: number, quarter: number, monthSymbol?: string) => string[];
30
+ export declare const getYears: (end: number | string, start: number | string) => number[];
31
+ export declare const getPeriodDate: (period: number | string, isStart?: boolean) => Date | undefined;
32
+ export declare const getWeeksColumns: (year: string | number, startPeriod: string, endPeriod: string, weekSymbol?: string) => string[];
33
+ export declare const getDaysColumns: (year: string | number, startPeriod: string, endPeriod: string) => string[];
34
+ export declare function getLastWeekNumberOfYear(year: number, weekSymbol?: string): number;
35
+ export declare function getWeekCode(year: number, week: number, weekSymbol?: string): string;
36
+ export declare function getISOWeek(d: Date, weekSymbol?: string): {
37
+ code: string;
38
+ weekYear: number;
39
+ weekNumber: number;
40
+ };
41
+ export declare function getWeeklyPeriodStartDate(period: string): Date;
42
+ export declare function getWeeklyPeriodEndDate(period: string): Date;
43
+ export interface ExistingPeriods {
44
+ isDailyExist: boolean;
45
+ isWeeklyExist: boolean;
46
+ isMonthlyExist: boolean;
47
+ isQuarterlyExist: boolean;
48
+ isSemiAnnualExist: boolean;
49
+ isYearlyExist: boolean;
50
+ }
51
+ export declare const getPeriods: (arr: {
52
+ memberValue: string;
53
+ }[]) => ExistingPeriods;
54
+ export declare const FREQUENCY_DIM_ID: string[];
55
+ export declare const getAdditionalColumns: (constraints: DataConstraints[], selectedTimePeriod: TimeRange) => string[];