stadata-js 0.1.1 → 0.1.2

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/dist/index.d.mts CHANGED
@@ -39,13 +39,17 @@ declare class ValidationFailure extends Failure {
39
39
  constructor(message: string);
40
40
  }
41
41
 
42
+ interface InterceptedRequest {
43
+ url: string;
44
+ init: RequestInit;
45
+ }
42
46
  interface NetworkInterceptor {
43
- onRequest?(url: string, init: RequestInit): RequestInit | Promise<RequestInit>;
47
+ onRequest?(url: string, init: RequestInit): InterceptedRequest | Promise<InterceptedRequest>;
44
48
  onResponse?(response: Response): Response | Promise<Response>;
45
49
  onError?(error: Error): Error | Promise<Error> | null;
46
50
  }
47
51
  declare abstract class BaseNetworkInterceptor implements NetworkInterceptor {
48
- onRequest?(url: string, init: RequestInit): RequestInit | Promise<RequestInit>;
52
+ onRequest?(url: string, init: RequestInit): InterceptedRequest | Promise<InterceptedRequest>;
49
53
  onResponse?(response: Response): Response | Promise<Response>;
50
54
  onError?(error: Error): Error | Promise<Error> | null;
51
55
  }
@@ -53,7 +57,7 @@ declare abstract class BaseNetworkInterceptor implements NetworkInterceptor {
53
57
  declare class AuthInterceptor extends BaseNetworkInterceptor {
54
58
  private apiKey;
55
59
  constructor(apiKey: string);
56
- onRequest(url: string, init: RequestInit): RequestInit;
60
+ onRequest(url: string, init: RequestInit): InterceptedRequest;
57
61
  setApiKey(apiKey: string): void;
58
62
  getApiKey(): string;
59
63
  }
@@ -112,7 +116,7 @@ declare class Logger {
112
116
  declare class LoggingInterceptor extends BaseNetworkInterceptor {
113
117
  private logger;
114
118
  constructor(logger?: Logger);
115
- onRequest(url: string, init: RequestInit): RequestInit;
119
+ onRequest(url: string, init: RequestInit): InterceptedRequest;
116
120
  onResponse(response: Response): Response;
117
121
  onError(error: Error): Error;
118
122
  }
@@ -265,6 +269,38 @@ declare enum DataAvailability {
265
269
  LIST_NOT_AVAILABLE = "list-not-available"
266
270
  }
267
271
 
272
+ declare enum ClassificationType {
273
+ KBLI_2009 = "kbli2009",
274
+ KBLI_2015 = "kbli2015",
275
+ KBLI_2017 = "kbli2017",
276
+ KBLI_2020 = "kbli2020",
277
+ KBKI_2015 = "kbki2015"
278
+ }
279
+ declare enum KBLILevel {
280
+ CATEGORY = "kategori",
281
+ PRIMARY_GROUP = "golongan pokok",
282
+ GROUP = "golongan",
283
+ SUB_GROUP = "subgolongan",
284
+ CLUSTER = "kelompok"
285
+ }
286
+ declare enum KBKILevel {
287
+ SECTION = "seksi",
288
+ DIVISION = "divisi",
289
+ GROUP = "kelompok",
290
+ CLASSES = "kelas",
291
+ SUB_CLASS = "subkelas",
292
+ COMMODITY_GROUP = "kelompok komoditas",
293
+ COMMODITY = "komoditas"
294
+ }
295
+ type ClassificationLevel = KBLILevel | KBKILevel;
296
+
297
+ declare enum DomainType {
298
+ ALL = "all",
299
+ PROVINCE = "prov",
300
+ REGENCY = "kab",
301
+ REGENCY_BY_PROVINCE = "kabbyprov"
302
+ }
303
+
268
304
  type JSON = Record<string, unknown>;
269
305
  interface BaseListParams {
270
306
  domain?: string;
@@ -274,6 +310,8 @@ interface BaseListParams {
274
310
  cancelToken?: CancelToken;
275
311
  }
276
312
  interface DomainListParams extends Omit<BaseListParams, 'domain'> {
313
+ type: DomainType;
314
+ provinceCode?: string;
277
315
  keyword?: string;
278
316
  }
279
317
  interface PublicationListParams extends BaseListParams {
@@ -313,18 +351,18 @@ interface VariableListParams extends BaseListParams {
313
351
  showDeleted?: boolean;
314
352
  }
315
353
  interface VerticalVariableListParams extends BaseListParams {
316
- variableId: number;
354
+ variableId?: number;
317
355
  }
318
356
  interface UnitListParams extends BaseListParams {
319
357
  }
320
358
  interface PeriodListParams extends BaseListParams {
321
- variableId: number;
359
+ variableId?: number;
322
360
  }
323
361
  interface DerivedPeriodListParams extends BaseListParams {
324
- variableId: number;
362
+ variableId?: number;
325
363
  }
326
364
  interface DerivedVariableListParams extends BaseListParams {
327
- variableId: number;
365
+ variableId?: number;
328
366
  }
329
367
  interface DynamicTableParams extends BaseListParams {
330
368
  tableId: string;
@@ -334,9 +372,17 @@ interface DynamicTableParams extends BaseListParams {
334
372
  derivedPeriodId?: number;
335
373
  }
336
374
  interface StatisticClassificationListParams extends BaseListParams {
375
+ type?: ClassificationType;
376
+ level?: ClassificationLevel;
337
377
  keyword?: string;
338
378
  }
339
- interface CensusListParams extends BaseListParams {
379
+ interface CensusListParams {
380
+ type?: 'events' | 'topics' | 'areas' | 'datasets' | 'data';
381
+ censusId?: string;
382
+ topicId?: number;
383
+ censusAreaId?: string;
384
+ datasetId?: string;
385
+ cancelToken?: CancelToken;
340
386
  }
341
387
  interface ViewParams {
342
388
  id: number | string;
@@ -388,7 +434,6 @@ declare class Domain extends BaseEntity {
388
434
 
389
435
  interface DomainRepository {
390
436
  getAll(params?: DomainListParams): Promise<Result<ListResult<Domain>, ApiFailure>>;
391
- getById(params: ViewParams): Promise<Result<Domain, ApiFailure>>;
392
437
  }
393
438
 
394
439
  declare class GetAllDomains extends UseCase<DomainListParams | undefined, ListResult<Domain>> {
@@ -397,12 +442,6 @@ declare class GetAllDomains extends UseCase<DomainListParams | undefined, ListRe
397
442
  execute(params?: DomainListParams): Promise<Result<ListResult<Domain>, ApiFailure>>;
398
443
  }
399
444
 
400
- declare class GetDomainById extends UseCase<ViewParams, Domain> {
401
- private repository;
402
- constructor(repository: DomainRepository);
403
- execute(params: ViewParams): Promise<Result<Domain, ApiFailure>>;
404
- }
405
-
406
445
  declare class Injector {
407
446
  private static instance;
408
447
  private container;
@@ -502,43 +541,40 @@ declare const ApiConstant: {
502
541
  };
503
542
 
504
543
  declare const ApiEndpoint: {
505
- readonly DOMAIN_LIST: "/list/domain";
506
- readonly DOMAIN_VIEW: "/view/domain";
507
- readonly PUBLICATION_LIST: "/list/publication";
508
- readonly PUBLICATION_VIEW: "/view/publication";
509
- readonly INFOGRAPHIC_LIST: "/list/infographic";
510
- readonly INFOGRAPHIC_VIEW: "/view/infographic";
511
- readonly STATIC_TABLE_LIST: "/list/statictable";
512
- readonly STATIC_TABLE_VIEW: "/view/statictable";
513
- readonly NEWS_LIST: "/list/news";
514
- readonly NEWS_VIEW: "/view/news";
515
- readonly NEWS_CATEGORY_LIST: "/list/newscategory";
516
- readonly NEWS_CATEGORY_VIEW: "/view/newscategory";
517
- readonly PRESS_RELEASE_LIST: "/list/pressrelease";
518
- readonly PRESS_RELEASE_VIEW: "/view/pressrelease";
519
- readonly SUBJECT_LIST: "/list/subject";
520
- readonly SUBJECT_VIEW: "/view/subject";
521
- readonly SUBJECT_CATEGORY_LIST: "/list/subjectcat";
522
- readonly SUBJECT_CATEGORY_VIEW: "/view/subjectcat";
523
- readonly STRATEGIC_INDICATOR_LIST: "/list/stratind";
524
- readonly STRATEGIC_INDICATOR_VIEW: "/view/stratind";
525
- readonly VARIABLE_LIST: "/list/var";
526
- readonly VARIABLE_VIEW: "/view/var";
527
- readonly VERTICAL_VARIABLE_LIST: "/list/vervar";
528
- readonly VERTICAL_VARIABLE_VIEW: "/view/vervar";
529
- readonly UNIT_LIST: "/list/unit";
530
- readonly UNIT_VIEW: "/view/unit";
531
- readonly PERIOD_LIST: "/list/period";
532
- readonly PERIOD_VIEW: "/view/period";
533
- readonly DERIVED_PERIOD_LIST: "/list/turth";
534
- readonly DERIVED_PERIOD_VIEW: "/view/turth";
535
- readonly DERIVED_VARIABLE_LIST: "/list/turvar";
536
- readonly DERIVED_VARIABLE_VIEW: "/view/turvar";
537
- readonly DYNAMIC_TABLE_LIST: "/list/dynamictable";
538
- readonly STATISTIC_CLASSIFICATION_LIST: "/list/kbli";
539
- readonly STATISTIC_CLASSIFICATION_VIEW: "/view/kbli";
540
- readonly CENSUS_LIST: "/list/sensus";
541
- readonly CENSUS_VIEW: "/view/sensus";
544
+ readonly DOMAIN_LIST: "/domain";
545
+ readonly PUBLICATION_LIST: "/list/model/publication";
546
+ readonly PUBLICATION_VIEW: "/view/model/publication";
547
+ readonly INFOGRAPHIC_LIST: "/list/model/infographic";
548
+ readonly INFOGRAPHIC_VIEW: "/view/model/infographic";
549
+ readonly STATIC_TABLE_LIST: "/list/model/statictable";
550
+ readonly STATIC_TABLE_VIEW: "/view/model/statictable";
551
+ readonly NEWS_LIST: "/list/model/news";
552
+ readonly NEWS_VIEW: "/view/model/news";
553
+ readonly NEWS_CATEGORY_LIST: "/list/model/newscategory";
554
+ readonly NEWS_CATEGORY_VIEW: "/view/model/newscategory";
555
+ readonly PRESS_RELEASE_LIST: "/list/model/pressrelease";
556
+ readonly PRESS_RELEASE_VIEW: "/view/model/pressrelease";
557
+ readonly SUBJECT_LIST: "/list/model/subject";
558
+ readonly SUBJECT_VIEW: "/view/model/subject";
559
+ readonly SUBJECT_CATEGORY_LIST: "/list/model/subcat";
560
+ readonly SUBJECT_CATEGORY_VIEW: "/view/model/subcat";
561
+ readonly STRATEGIC_INDICATOR_LIST: "/list/model/indicators";
562
+ readonly STRATEGIC_INDICATOR_VIEW: "/view/model/indicators";
563
+ readonly VARIABLE_LIST: "/list/model/var";
564
+ readonly VARIABLE_VIEW: "/view/model/var";
565
+ readonly VERTICAL_VARIABLE_LIST: "/list/model/vervar";
566
+ readonly VERTICAL_VARIABLE_VIEW: "/view/model/vervar";
567
+ readonly UNIT_LIST: "/list/model/unit";
568
+ readonly UNIT_VIEW: "/view/model/unit";
569
+ readonly PERIOD_LIST: "/list/model/th";
570
+ readonly PERIOD_VIEW: "/view/model/th";
571
+ readonly DERIVED_PERIOD_LIST: "/list/model/turth";
572
+ readonly DERIVED_PERIOD_VIEW: "/view/model/turth";
573
+ readonly DERIVED_VARIABLE_LIST: "/list/model/turvar";
574
+ readonly DERIVED_VARIABLE_VIEW: "/view/model/turvar";
575
+ readonly DYNAMIC_TABLE_LIST: "/list/model/data";
576
+ readonly statisticClassification: (type?: ClassificationType) => string;
577
+ readonly CENSUS: "/interoperabilitas/datasource/sensus";
542
578
  readonly TRADE: "/dataexim";
543
579
  };
544
580
 
@@ -648,12 +684,18 @@ declare class GetNewsCategoryById implements UseCase<ViewParams, NewsCategory> {
648
684
  }
649
685
 
650
686
  declare class PressRelease extends BaseEntity {
651
- readonly id: string;
687
+ readonly id: number;
688
+ readonly subjectId: number;
689
+ readonly subject: string;
652
690
  readonly title: string;
653
691
  readonly abstract: string;
654
692
  readonly releaseDate: string;
655
- readonly picture: string | null;
656
- constructor(id: string, title: string, abstract: string, releaseDate: string, picture: string | null);
693
+ readonly updatedDate: string | null;
694
+ readonly pdf: string;
695
+ readonly size: string;
696
+ readonly slide: string;
697
+ readonly thumbnail: string;
698
+ constructor(id: number, subjectId: number, subject: string, title: string, abstract: string, releaseDate: string, updatedDate: string | null, pdf: string, size: string, slide: string, thumbnail: string);
657
699
  toJson(): Record<string, unknown>;
658
700
  static fromJson(json: Record<string, unknown>): PressRelease;
659
701
  }
@@ -756,9 +798,18 @@ declare class GetSubjectCategoryById implements UseCase<ViewParams, SubjectCateg
756
798
  }
757
799
 
758
800
  declare class StrategicIndicator extends BaseEntity {
759
- readonly id: number;
801
+ readonly variableId: number;
802
+ readonly indicatorId: number;
803
+ readonly subjectCsa: number;
804
+ readonly title: string;
760
805
  readonly name: string;
761
- constructor(id: number, name: string);
806
+ readonly dataSource: string;
807
+ readonly value: number;
808
+ readonly unit: string;
809
+ readonly category: number;
810
+ readonly hashId: string;
811
+ readonly period: string;
812
+ constructor(variableId: number, indicatorId: number, subjectCsa: number, title: string, name: string, dataSource: string, value: number, unit: string, category: number, hashId: string, period: string);
762
813
  toJson(): Record<string, unknown>;
763
814
  static fromJson(json: Record<string, unknown>): StrategicIndicator;
764
815
  }
@@ -812,10 +863,11 @@ declare class GetVariableById implements UseCase<ViewParams, Variable> {
812
863
 
813
864
  declare class VerticalVariable extends BaseEntity {
814
865
  readonly id: number;
815
- readonly variableId: number;
816
866
  readonly label: string;
817
- readonly alias: string;
818
- constructor(id: number, variableId: number, label: string, alias: string);
867
+ readonly itemId: number;
868
+ readonly groupId: number;
869
+ readonly groupName: string;
870
+ constructor(id: number, label: string, itemId: number, groupId: number, groupName: string);
819
871
  toJson(): Record<string, unknown>;
820
872
  static fromJson(json: Record<string, unknown>): VerticalVariable;
821
873
  }
@@ -864,8 +916,8 @@ declare class GetUnitById implements UseCase<ViewParams, Unit> {
864
916
 
865
917
  declare class Period extends BaseEntity {
866
918
  readonly id: number;
867
- readonly label: string;
868
- constructor(id: number, label: string);
919
+ readonly period: number;
920
+ constructor(id: number, period: number);
869
921
  toJson(): Record<string, unknown>;
870
922
  static fromJson(json: Record<string, unknown>): Period;
871
923
  }
@@ -889,8 +941,10 @@ declare class GetPeriodById implements UseCase<ViewParams, Period> {
889
941
 
890
942
  declare class DerivedPeriod extends BaseEntity {
891
943
  readonly id: number;
892
- readonly label: string;
893
- constructor(id: number, label: string);
944
+ readonly period: string;
945
+ readonly groupId: number;
946
+ readonly groupName: string;
947
+ constructor(id: number, period: string, groupId: number, groupName: string);
894
948
  toJson(): Record<string, unknown>;
895
949
  static fromJson(json: Record<string, unknown>): DerivedPeriod;
896
950
  }
@@ -915,7 +969,9 @@ declare class GetDerivedPeriodById {
915
969
  declare class DerivedVariable extends BaseEntity {
916
970
  readonly id: number;
917
971
  readonly name: string;
918
- constructor(id: number, name: string);
972
+ readonly groupId: number;
973
+ readonly groupName: string;
974
+ constructor(id: number, name: string, groupId: number, groupName: string);
919
975
  toJson(): Record<string, unknown>;
920
976
  static fromJson(json: Record<string, unknown>): DerivedVariable;
921
977
  }
@@ -962,30 +1018,95 @@ declare class GetStatisticClassificationById {
962
1018
  execute(params: ViewParams): Promise<Result<StatisticClassification, ApiFailure>>;
963
1019
  }
964
1020
 
965
- declare class Census extends BaseEntity {
1021
+ declare class CensusCategory extends BaseEntity {
1022
+ readonly id: string;
1023
+ readonly name: string;
1024
+ readonly itemId: string;
1025
+ readonly itemCode: string;
1026
+ readonly itemName: string;
1027
+ constructor(id: string, name: string, itemId: string, itemCode: string, itemName: string);
1028
+ toJson(): Record<string, unknown>;
1029
+ toJSON(): Record<string, unknown>;
1030
+ static fromJson(json: Record<string, unknown>): CensusCategory;
1031
+ }
1032
+
1033
+ declare class CensusEvent extends BaseEntity {
1034
+ readonly id: string;
1035
+ readonly name: string;
1036
+ readonly year: number;
1037
+ constructor(id: string, name: string, year: number);
1038
+ toJson(): Record<string, unknown>;
1039
+ toJSON(): Record<string, unknown>;
1040
+ static fromJson(json: Record<string, unknown>): CensusEvent;
1041
+ }
1042
+
1043
+ declare class CensusTopic extends BaseEntity {
966
1044
  readonly id: number;
967
- readonly activity: string;
968
- readonly year: string;
969
- constructor(id: number, activity: string, year: string);
1045
+ readonly topic: string;
1046
+ readonly eventId: string;
1047
+ readonly eventName: string;
1048
+ constructor(id: number, topic: string, eventId: string, eventName: string);
1049
+ toJson(): Record<string, unknown>;
1050
+ toJSON(): Record<string, unknown>;
1051
+ static fromJson(json: Record<string, unknown>): CensusTopic;
1052
+ }
1053
+
1054
+ declare class CensusArea extends BaseEntity {
1055
+ readonly id: number;
1056
+ readonly mfdCode: string;
1057
+ readonly name: string;
1058
+ readonly slug: string;
1059
+ constructor(id: number, mfdCode: string, name: string, slug: string);
1060
+ toJson(): Record<string, unknown>;
1061
+ toJSON(): Record<string, unknown>;
1062
+ static fromJson(json: Record<string, unknown>): CensusArea;
1063
+ }
1064
+
1065
+ declare class CensusDataset extends BaseEntity {
1066
+ readonly id: number;
1067
+ readonly topicId: number;
1068
+ readonly topic: string;
1069
+ readonly eventId: number;
1070
+ readonly name: string;
1071
+ readonly description?: string | null | undefined;
1072
+ constructor(id: number, topicId: number, topic: string, eventId: number, name: string, description?: string | null | undefined);
1073
+ toJson(): Record<string, unknown>;
1074
+ toJSON(): Record<string, unknown>;
1075
+ static fromJson(json: Record<string, unknown>): CensusDataset;
1076
+ }
1077
+
1078
+ declare class CensusData extends BaseEntity {
1079
+ readonly regionId: string;
1080
+ readonly regionCode: string;
1081
+ readonly regionName: string;
1082
+ readonly indicatorId: string;
1083
+ readonly indicatorName: string;
1084
+ readonly categories: CensusCategory[];
1085
+ readonly period: string;
1086
+ readonly value: number;
1087
+ readonly regionLevel?: string | null | undefined;
1088
+ constructor(regionId: string, regionCode: string, regionName: string, indicatorId: string, indicatorName: string, categories: CensusCategory[], period: string, value: number, regionLevel?: string | null | undefined);
970
1089
  toJson(): Record<string, unknown>;
971
- static fromJson(json: Record<string, unknown>): Census;
1090
+ toJSON(): Record<string, unknown>;
1091
+ static fromJson(json: Record<string, unknown>): CensusData;
972
1092
  }
973
1093
 
974
1094
  interface CensusRepository {
975
- getAll(params?: CensusListParams): Promise<Result<ListResult<Census>, ApiFailure>>;
976
- getById(params: ViewParams): Promise<Result<Census, ApiFailure>>;
1095
+ getAll(params?: CensusListParams): Promise<Result<ListResult<CensusEvent | CensusTopic | CensusArea | CensusDataset | CensusData>, ApiFailure>>;
1096
+ getById(params: ViewParams): Promise<Result<CensusEvent, ApiFailure>>;
977
1097
  }
978
1098
 
979
- declare class GetAllCensuses implements UseCase<CensusListParams | undefined, ListResult<Census>> {
1099
+ type CensusEntity = CensusEvent | CensusTopic | CensusArea | CensusDataset | CensusData;
1100
+ declare class GetAllCensuses implements UseCase<CensusListParams | undefined, ListResult<CensusEntity>> {
980
1101
  private repository;
981
1102
  constructor(repository: CensusRepository);
982
- execute(params?: CensusListParams): Promise<Result<ListResult<Census>, ApiFailure>>;
1103
+ execute(params?: CensusListParams): Promise<Result<ListResult<CensusEntity>, ApiFailure>>;
983
1104
  }
984
1105
 
985
- declare class GetCensusById implements UseCase<ViewParams, Census> {
1106
+ declare class GetCensusById implements UseCase<ViewParams, CensusEvent> {
986
1107
  private repository;
987
1108
  constructor(repository: CensusRepository);
988
- execute(params: ViewParams): Promise<Result<Census, ApiFailure>>;
1109
+ execute(params: ViewParams): Promise<Result<CensusEvent, ApiFailure>>;
989
1110
  }
990
1111
 
991
1112
  declare class DynamicTable extends BaseEntity {
@@ -1034,12 +1155,26 @@ interface StadataList {
1034
1155
  derivedPeriods(params: DerivedPeriodListParams): Promise<Result<ListResult<DerivedPeriod>, ApiFailure>>;
1035
1156
  derivedVariables(params: DerivedVariableListParams): Promise<Result<ListResult<DerivedVariable>, ApiFailure>>;
1036
1157
  statisticClassifications(params?: StatisticClassificationListParams): Promise<Result<ListResult<StatisticClassification>, ApiFailure>>;
1037
- censuses(params?: CensusListParams): Promise<Result<ListResult<Census>, ApiFailure>>;
1158
+ censusEvents(): Promise<Result<ListResult<CensusEvent>, ApiFailure>>;
1159
+ censusTopics(params: {
1160
+ censusId: string;
1161
+ }): Promise<Result<ListResult<CensusTopic>, ApiFailure>>;
1162
+ censusEventAreas(params: {
1163
+ censusId: string;
1164
+ }): Promise<Result<ListResult<CensusArea>, ApiFailure>>;
1165
+ censusEventDatasets(params: {
1166
+ censusId: string;
1167
+ topicId: number;
1168
+ }): Promise<Result<ListResult<CensusDataset>, ApiFailure>>;
1169
+ censusData(params: {
1170
+ censusId: string;
1171
+ censusAreaId: string;
1172
+ datasetId: string;
1173
+ }): Promise<Result<ListResult<CensusData>, ApiFailure>>;
1038
1174
  dynamicTables(params: DynamicTableParams): Promise<Result<ListResult<DynamicTable>, ApiFailure>>;
1039
1175
  }
1040
1176
 
1041
1177
  interface StadataView {
1042
- domain(params: ViewParams): Promise<Result<Domain, ApiFailure>>;
1043
1178
  publication(params: ViewParams): Promise<Result<Publication, ApiFailure>>;
1044
1179
  infographic(params: ViewParams): Promise<Result<Infographic, ApiFailure>>;
1045
1180
  news(params: ViewParams): Promise<Result<News, ApiFailure>>;
@@ -1056,7 +1191,7 @@ interface StadataView {
1056
1191
  derivedPeriod(params: ViewParams): Promise<Result<DerivedPeriod, ApiFailure>>;
1057
1192
  derivedVariable(params: ViewParams): Promise<Result<DerivedVariable, ApiFailure>>;
1058
1193
  statisticClassification(params: ViewParams): Promise<Result<StatisticClassification, ApiFailure>>;
1059
- census(params: ViewParams): Promise<Result<Census, ApiFailure>>;
1194
+ census(params: ViewParams): Promise<Result<CensusEvent, ApiFailure>>;
1060
1195
  }
1061
1196
 
1062
1197
  interface StadataJSConfig {
@@ -1114,4 +1249,4 @@ declare class GetTrade implements UseCase<TradeParams, ResponseData<Record<strin
1114
1249
  execute(params: TradeParams): Promise<Result<ResponseData<Record<string, unknown>>, ApiFailure>>;
1115
1250
  }
1116
1251
 
1117
- export { ApiConstant, ApiEndpoint, ApiException, ApiFailure, ApiResponse, AuthInterceptor, BaseEntity, type BaseListParams, CancelToken, CancelledException, CancelledFailure, Census, type CensusListParams, type CensusRepository, ConsoleLogPrinter, DataAvailability, DataLanguage, DateHelper, DerivedPeriod, type DerivedPeriodListParams, type DerivedPeriodRepository, DerivedVariable, type DerivedVariableListParams, type DerivedVariableRepository, Domain, type DomainListParams, type DomainRepository, DynamicTable, type DynamicTableParams, type DynamicTableRepository, Failure, ForbiddenException, ForbiddenFailure, GetAllCensuses, GetAllDerivedPeriods, GetAllDerivedVariables, GetAllDomains, GetAllDynamicTables, GetAllInfographics, GetAllNews, GetAllNewsCategories, GetAllPeriods, GetAllPressReleases, GetAllPublications, GetAllStaticTables, GetAllStatisticClassifications, GetAllStrategicIndicators, GetAllSubjectCategories, GetAllSubjects, GetAllUnits, GetAllVariables, GetAllVerticalVariables, GetCensusById, GetDerivedPeriodById, GetDerivedVariableById, GetDomainById, GetInfographicById, GetNewsById, GetNewsCategoryById, GetPeriodById, GetPressReleaseById, GetPublicationById, GetStaticTableById, GetStatisticClassificationById, GetStrategicIndicatorById, GetSubjectById, GetSubjectCategoryById, GetTrade, GetUnitById, GetVariableById, GetVerticalVariableById, HSCodeType, Infographic, type InfographicListParams, type InfographicRepository, Injector, type JSON, ListResult, type LogEntry, type LogFilter, LogLevel, type LogPrinter, Logger, LoggingInterceptor, NetworkClient, type NetworkClientConfig, NetworkException, NetworkFailure, type NetworkInterceptor, News, NewsCategory, type NewsCategoryListParams, type NewsCategoryRepository, type NewsListParams, type NewsRepository, NoParamsUseCase, NotFoundException, NotFoundFailure, Pagination, ParseFailure, Period, type PeriodListParams, type PeriodRepository, PressRelease, type PressReleaseListParams, type PressReleaseRepository, ProductionLogFilter, Publication, type PublicationListParams, type PublicationRepository, QueryParamConstant, RelatedPublication, type RequestData, type RequestOptions, type ResponseData, RetryInterceptor, ServerException, ServerFailure, StadataException, StadataJS, type StadataJSConfig, type StadataList, type StadataView, StaticTable, type StaticTableListParams, type StaticTableRepository, StatisticClassification, type StatisticClassificationListParams, type StatisticClassificationRepository, StrategicIndicator, type StrategicIndicatorListParams, type StrategicIndicatorRepository, Subject, SubjectCategory, type SubjectCategoryListParams, type SubjectCategoryRepository, type SubjectListParams, type SubjectRepository, TimeoutException, TimeoutFailure, Trade, type TradeParams, TradePeriod, type TradeRepository, TradeSource, UnauthorizedException, UnauthorizedFailure, Unit, type UnitListParams, type UnitRepository, UseCase, ValidationFailure, Variable, type VariableListParams, type VariableRepository, VerticalVariable, type VerticalVariableListParams, type VerticalVariableRepository, type ViewParams };
1252
+ export { ApiConstant, ApiEndpoint, ApiException, ApiFailure, ApiResponse, AuthInterceptor, BaseEntity, type BaseListParams, CancelToken, CancelledException, CancelledFailure, CensusArea, CensusCategory, CensusData, CensusDataset, CensusEvent, type CensusListParams, type CensusRepository, CensusTopic, ClassificationType, ConsoleLogPrinter, DataAvailability, DataLanguage, DateHelper, DerivedPeriod, type DerivedPeriodListParams, type DerivedPeriodRepository, DerivedVariable, type DerivedVariableListParams, type DerivedVariableRepository, Domain, type DomainListParams, type DomainRepository, DomainType, DynamicTable, type DynamicTableParams, type DynamicTableRepository, Failure, ForbiddenException, ForbiddenFailure, GetAllCensuses, GetAllDerivedPeriods, GetAllDerivedVariables, GetAllDomains, GetAllDynamicTables, GetAllInfographics, GetAllNews, GetAllNewsCategories, GetAllPeriods, GetAllPressReleases, GetAllPublications, GetAllStaticTables, GetAllStatisticClassifications, GetAllStrategicIndicators, GetAllSubjectCategories, GetAllSubjects, GetAllUnits, GetAllVariables, GetAllVerticalVariables, GetCensusById, GetDerivedPeriodById, GetDerivedVariableById, GetInfographicById, GetNewsById, GetNewsCategoryById, GetPeriodById, GetPressReleaseById, GetPublicationById, GetStaticTableById, GetStatisticClassificationById, GetStrategicIndicatorById, GetSubjectById, GetSubjectCategoryById, GetTrade, GetUnitById, GetVariableById, GetVerticalVariableById, HSCodeType, Infographic, type InfographicListParams, type InfographicRepository, Injector, type JSON, KBKILevel, KBLILevel, ListResult, type LogEntry, type LogFilter, LogLevel, type LogPrinter, Logger, LoggingInterceptor, NetworkClient, type NetworkClientConfig, NetworkException, NetworkFailure, type NetworkInterceptor, News, NewsCategory, type NewsCategoryListParams, type NewsCategoryRepository, type NewsListParams, type NewsRepository, NoParamsUseCase, NotFoundException, NotFoundFailure, Pagination, ParseFailure, Period, type PeriodListParams, type PeriodRepository, PressRelease, type PressReleaseListParams, type PressReleaseRepository, ProductionLogFilter, Publication, type PublicationListParams, type PublicationRepository, QueryParamConstant, RelatedPublication, type RequestData, type RequestOptions, type ResponseData, RetryInterceptor, ServerException, ServerFailure, StadataException, StadataJS, type StadataJSConfig, type StadataList, type StadataView, StaticTable, type StaticTableListParams, type StaticTableRepository, StatisticClassification, type StatisticClassificationListParams, type StatisticClassificationRepository, StrategicIndicator, type StrategicIndicatorListParams, type StrategicIndicatorRepository, Subject, SubjectCategory, type SubjectCategoryListParams, type SubjectCategoryRepository, type SubjectListParams, type SubjectRepository, TimeoutException, TimeoutFailure, Trade, type TradeParams, TradePeriod, type TradeRepository, TradeSource, UnauthorizedException, UnauthorizedFailure, Unit, type UnitListParams, type UnitRepository, UseCase, ValidationFailure, Variable, type VariableListParams, type VariableRepository, VerticalVariable, type VerticalVariableListParams, type VerticalVariableRepository, type ViewParams };