stadata-js 2.0.0 → 2.0.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/README.md +62 -29
- package/dist/index.d.mts +35 -19
- package/dist/index.d.ts +35 -19
- package/dist/index.global.js +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ The STADATA JS SDK provides TypeScript/JavaScript developers with streamlined ac
|
|
|
12
12
|
|
|
13
13
|
## Features
|
|
14
14
|
|
|
15
|
-
- **Functional Composable API** — `
|
|
15
|
+
- **Functional Composable API** — `initStadata()` + `use*()` composables by default, with optional explicit clients for advanced use cases
|
|
16
16
|
- **Full TypeScript Support** — Complete type definitions with IntelliSense support
|
|
17
17
|
- **Result Pattern** — Uses `neverthrow` for elegant, type-safe error handling
|
|
18
18
|
- **Tree-shakeable** — Only bundle what you use
|
|
@@ -75,26 +75,26 @@ Full documentation: **[ipds-59.github.io/stadata_js](https://ipds-59.github.io/s
|
|
|
75
75
|
|
|
76
76
|
| Composable | Functions |
|
|
77
77
|
|-----------|-----------|
|
|
78
|
-
| `
|
|
79
|
-
| `
|
|
80
|
-
| `
|
|
81
|
-
| `
|
|
82
|
-
| `
|
|
83
|
-
| `
|
|
84
|
-
| `
|
|
85
|
-
| `
|
|
86
|
-
| `
|
|
87
|
-
| `
|
|
88
|
-
| `
|
|
89
|
-
| `
|
|
90
|
-
| `
|
|
91
|
-
| `
|
|
92
|
-
| `
|
|
93
|
-
| `
|
|
94
|
-
| `
|
|
95
|
-
| `
|
|
96
|
-
| `
|
|
97
|
-
| `
|
|
78
|
+
| `useDomains()` | `fetchDomainList` |
|
|
79
|
+
| `usePublications()` | `fetchPublicationList`, `fetchPublicationDetail` |
|
|
80
|
+
| `usePressReleases()` | `fetchPressReleaseList`, `fetchPressReleaseDetail` |
|
|
81
|
+
| `useStaticTables()` | `fetchStaticTableList`, `fetchStaticTableDetail` |
|
|
82
|
+
| `useDynamicTables()` | `fetchDynamicTableList` |
|
|
83
|
+
| `useInfographics()` | `fetchInfographicList` |
|
|
84
|
+
| `useNews()` | `fetchNewsList`, `fetchNewsDetail` |
|
|
85
|
+
| `useNewsCategories()` | `fetchNewsCategoryList` |
|
|
86
|
+
| `useVariables()` | `fetchVariableList`, `fetchVariableDetail` |
|
|
87
|
+
| `useVerticalVariables()` | `fetchVerticalVariableList` |
|
|
88
|
+
| `useDerivedVariables()` | `fetchDerivedVariableList` |
|
|
89
|
+
| `useSubjects()` | `fetchSubjectList`, `fetchSubjectDetail` |
|
|
90
|
+
| `useSubjectCategories()` | `fetchSubjectCategoryList` |
|
|
91
|
+
| `useUnits()` | `fetchUnitList`, `fetchUnitDetail` |
|
|
92
|
+
| `usePeriods()` | `fetchPeriodList` |
|
|
93
|
+
| `useDerivedPeriods()` | `fetchDerivedPeriodList` |
|
|
94
|
+
| `useStrategicIndicators()` | `fetchStrategicIndicatorList`, `fetchStrategicIndicatorDetail` |
|
|
95
|
+
| `useStatisticClassifications()` | `fetchStatisticClassificationList`, `fetchStatisticClassificationDetail` |
|
|
96
|
+
| `useCensus()` | `fetchCensusList` |
|
|
97
|
+
| `useTrade()` | `fetchTradeData` |
|
|
98
98
|
|
|
99
99
|
### Error Handling
|
|
100
100
|
|
|
@@ -132,24 +132,57 @@ const stadata = createStadataClient({
|
|
|
132
132
|
|
|
133
133
|
## Migration from v1
|
|
134
134
|
|
|
135
|
-
**
|
|
135
|
+
Version 2 introduces a **breaking change** from the class-based API to the composable API.
|
|
136
|
+
|
|
137
|
+
### v1 (deprecated)
|
|
138
|
+
|
|
136
139
|
```typescript
|
|
137
140
|
await StadataJS.init({ apiKey: 'key' })
|
|
138
141
|
const stadata = StadataJS.instance
|
|
139
|
-
|
|
142
|
+
|
|
143
|
+
const publications = await stadata.list.publications({
|
|
144
|
+
domain: '7200',
|
|
145
|
+
lang: DataLanguage.ID,
|
|
146
|
+
})
|
|
140
147
|
```
|
|
141
148
|
|
|
142
|
-
|
|
149
|
+
### v2 (recommended)
|
|
150
|
+
|
|
143
151
|
```typescript
|
|
144
|
-
|
|
152
|
+
import { initStadata, usePublications, DataLanguage } from 'stadata-js'
|
|
153
|
+
|
|
154
|
+
// initialize once at app entry point
|
|
145
155
|
initStadata({ apiKey: 'key' })
|
|
146
156
|
|
|
147
|
-
//
|
|
148
|
-
const { fetchPublicationList } = usePublications()
|
|
149
|
-
|
|
157
|
+
// use composables anywhere in your app
|
|
158
|
+
const { fetchPublicationList, fetchPublicationDetail } = usePublications()
|
|
159
|
+
|
|
160
|
+
const publications = await fetchPublicationList({
|
|
161
|
+
domain: '7200',
|
|
162
|
+
lang: DataLanguage.ID,
|
|
163
|
+
})
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### What changed
|
|
167
|
+
|
|
168
|
+
- `StadataJS.init()` → `initStadata()`
|
|
169
|
+
- `StadataJS.instance.list.publications()` → `usePublications().fetchPublicationList()`
|
|
170
|
+
- `StadataJS.instance.view.publication()` → `usePublications().fetchPublicationDetail()`
|
|
171
|
+
- list/view methods are now grouped by composable (`useDomains`, `useNews`, `useDynamicTables`, etc.)
|
|
172
|
+
- global initialization is the default pattern, so you no longer need to carry a singleton instance around your app
|
|
173
|
+
|
|
174
|
+
### Advanced migration path
|
|
175
|
+
|
|
176
|
+
If you need multiple clients (for example different API keys), you can still use an explicit client:
|
|
177
|
+
|
|
178
|
+
```typescript
|
|
179
|
+
import { createStadataClient, usePublications } from 'stadata-js'
|
|
180
|
+
|
|
181
|
+
const client = createStadataClient({ apiKey: 'other-key' })
|
|
182
|
+
const { fetchPublicationList } = usePublications(client)
|
|
150
183
|
```
|
|
151
184
|
|
|
152
|
-
> `StadataJS` class is kept as `@deprecated` in v2 and will be removed in v3.
|
|
185
|
+
> `StadataJS` class is kept as `@deprecated` in v2 for transition purposes and will be removed in v3.
|
|
153
186
|
|
|
154
187
|
## Advanced: Multiple Clients
|
|
155
188
|
|
package/dist/index.d.mts
CHANGED
|
@@ -200,68 +200,76 @@ declare enum DomainType {
|
|
|
200
200
|
|
|
201
201
|
type JSON = Record<string, unknown>;
|
|
202
202
|
interface BaseListParams {
|
|
203
|
-
domain?: string;
|
|
204
203
|
lang?: DataLanguage;
|
|
205
204
|
page?: number;
|
|
206
205
|
perPage?: number;
|
|
207
206
|
cancelToken?: CancelToken;
|
|
208
207
|
}
|
|
209
|
-
interface
|
|
208
|
+
interface BaseDomainListParams extends BaseListParams {
|
|
209
|
+
domain: string;
|
|
210
|
+
}
|
|
211
|
+
interface DomainListParams extends BaseListParams {
|
|
210
212
|
type: DomainType;
|
|
211
213
|
provinceCode?: string;
|
|
212
214
|
keyword?: string;
|
|
213
215
|
}
|
|
214
|
-
interface PublicationListParams extends
|
|
216
|
+
interface PublicationListParams extends BaseDomainListParams {
|
|
215
217
|
keyword?: string;
|
|
216
218
|
month?: number;
|
|
217
219
|
year?: number;
|
|
218
220
|
}
|
|
219
|
-
interface InfographicListParams extends
|
|
221
|
+
interface InfographicListParams extends BaseDomainListParams {
|
|
220
222
|
keyword?: string;
|
|
221
223
|
}
|
|
222
|
-
interface StaticTableListParams extends
|
|
224
|
+
interface StaticTableListParams extends BaseDomainListParams {
|
|
223
225
|
keyword?: string;
|
|
224
226
|
month?: number;
|
|
225
227
|
year?: number;
|
|
226
228
|
}
|
|
227
|
-
interface NewsListParams extends
|
|
229
|
+
interface NewsListParams extends BaseDomainListParams {
|
|
228
230
|
keyword?: string;
|
|
229
231
|
month?: number;
|
|
230
232
|
year?: number;
|
|
231
233
|
newsCategoryId?: string;
|
|
232
234
|
}
|
|
233
|
-
interface NewsCategoryListParams extends
|
|
235
|
+
interface NewsCategoryListParams extends BaseDomainListParams {
|
|
234
236
|
}
|
|
235
|
-
interface PressReleaseListParams extends
|
|
237
|
+
interface PressReleaseListParams extends BaseDomainListParams {
|
|
236
238
|
keyword?: string;
|
|
237
239
|
month?: number;
|
|
238
240
|
year?: number;
|
|
239
241
|
}
|
|
240
|
-
interface SubjectListParams extends
|
|
242
|
+
interface SubjectListParams extends BaseDomainListParams {
|
|
243
|
+
subjectCategoryId?: number;
|
|
241
244
|
}
|
|
242
|
-
interface SubjectCategoryListParams extends
|
|
245
|
+
interface SubjectCategoryListParams extends BaseDomainListParams {
|
|
243
246
|
}
|
|
244
|
-
interface StrategicIndicatorListParams extends
|
|
247
|
+
interface StrategicIndicatorListParams extends BaseDomainListParams {
|
|
248
|
+
variableId?: number;
|
|
245
249
|
}
|
|
246
|
-
interface VariableListParams extends
|
|
250
|
+
interface VariableListParams extends BaseDomainListParams {
|
|
247
251
|
subjectId?: number;
|
|
252
|
+
year?: number;
|
|
253
|
+
showExistingVariables?: boolean;
|
|
248
254
|
showDeleted?: boolean;
|
|
249
255
|
}
|
|
250
|
-
interface VerticalVariableListParams extends
|
|
256
|
+
interface VerticalVariableListParams extends BaseDomainListParams {
|
|
251
257
|
variableId?: number;
|
|
252
258
|
}
|
|
253
|
-
interface UnitListParams extends
|
|
259
|
+
interface UnitListParams extends BaseDomainListParams {
|
|
260
|
+
variableId?: number;
|
|
254
261
|
}
|
|
255
|
-
interface PeriodListParams extends
|
|
262
|
+
interface PeriodListParams extends BaseDomainListParams {
|
|
256
263
|
variableId?: number;
|
|
257
264
|
}
|
|
258
|
-
interface DerivedPeriodListParams extends
|
|
265
|
+
interface DerivedPeriodListParams extends BaseDomainListParams {
|
|
259
266
|
variableId?: number;
|
|
260
267
|
}
|
|
261
|
-
interface DerivedVariableListParams extends
|
|
268
|
+
interface DerivedVariableListParams extends BaseDomainListParams {
|
|
262
269
|
variableId?: number;
|
|
270
|
+
verticalGroup?: number;
|
|
263
271
|
}
|
|
264
|
-
interface DynamicTableParams extends
|
|
272
|
+
interface DynamicTableParams extends BaseDomainListParams {
|
|
265
273
|
variableId: number;
|
|
266
274
|
periodId: string;
|
|
267
275
|
derivedVariableId?: number;
|
|
@@ -269,6 +277,7 @@ interface DynamicTableParams extends BaseListParams {
|
|
|
269
277
|
derivedPeriodId?: string;
|
|
270
278
|
}
|
|
271
279
|
interface StatisticClassificationListParams extends BaseListParams {
|
|
280
|
+
domain?: string;
|
|
272
281
|
type?: ClassificationType;
|
|
273
282
|
level?: ClassificationLevel;
|
|
274
283
|
keyword?: string;
|
|
@@ -872,6 +881,13 @@ declare function initStadata(config: StadataClientConfig): StadataClientInstance
|
|
|
872
881
|
declare function getGlobalClient(): StadataClientInstance;
|
|
873
882
|
declare function resetGlobalClient(): void;
|
|
874
883
|
|
|
884
|
+
declare class DynamicTableHtmlGenerator {
|
|
885
|
+
static generate(table: DynamicTable): string;
|
|
886
|
+
private static generateHeader;
|
|
887
|
+
private static generateBody;
|
|
888
|
+
private static formatValue;
|
|
889
|
+
}
|
|
890
|
+
|
|
875
891
|
interface StadataList {
|
|
876
892
|
domains(params?: DomainListParams): Promise<Result<ListResult<Domain>, ApiFailure>>;
|
|
877
893
|
publications(params: PublicationListParams): Promise<Result<ListResult<Publication>, ApiFailure>>;
|
|
@@ -974,4 +990,4 @@ declare class Trade extends BaseEntity {
|
|
|
974
990
|
static fromJson(json: Record<string, unknown>): Trade;
|
|
975
991
|
}
|
|
976
992
|
|
|
977
|
-
export { ApiConstant, ApiEndpoint, ApiFailure, type BaseListParams, CancelToken, CancelledFailure, CensusArea, CensusCategory, CensusData, CensusDataset, CensusEvent, type CensusListParams, CensusTopic, ClassificationType, DataAvailability, DataLanguage, DerivedPeriod, type DerivedPeriodListParams, DerivedVariable, type DerivedVariableListParams, Domain, type DomainListParams, DomainType, DynamicTable, type DynamicTableParams, ForbiddenFailure, HSCodeType, Infographic, type InfographicListParams, type JSON, KBKILevel, KBLILevel, ListResult, LogLevel, NetworkClient, type NetworkClientConfig, NetworkFailure, type NetworkInterceptor, News, NewsCategory, type NewsCategoryListParams, type NewsListParams, NotFoundFailure, Pagination, ParseFailure, Period, type PeriodListParams, PressRelease, type PressReleaseListParams, Publication, type PublicationListParams, RelatedPublication, type RequestData, type RequestOptions, type ResponseData, ServerFailure, type StadataClient, type StadataClientConfig, type StadataClientInstance, StadataJS, type StadataJSConfig, StaticTable, type StaticTableListParams, StatisticClassification, type StatisticClassificationListParams, StrategicIndicator, type StrategicIndicatorListParams, Subject, SubjectCategory, type SubjectCategoryListParams, type SubjectListParams, TimeoutFailure, Trade, type TradeParams, TradePeriod, TradeSource, UnauthorizedFailure, Unit, type UnitListParams, type UseCensus, type UseDerivedPeriods, type UseDerivedVariables, type UseDomains, type UseDynamicTables, type UseInfographics, type UseNews, type UseNewsCategories, type UsePeriods, type UsePressReleases, type UsePublications, type UseStaticTables, type UseStatisticClassifications, type UseStrategicIndicators, type UseSubjectCategories, type UseSubjects, type UseTrade, type UseUnits, type UseVariables, type UseVerticalVariables, ValidationFailure, Variable, type VariableListParams, VerticalVariable, type VerticalVariableListParams, type ViewParams, createStadataClient, getGlobalClient, initStadata, resetGlobalClient, useCensus, useDerivedPeriods, useDerivedVariables, useDomains, useDynamicTables, useInfographics, useNews, useNewsCategories, usePeriods, usePressReleases, usePublications, useStaticTables, useStatisticClassifications, useStrategicIndicators, useSubjectCategories, useSubjects, useTrade, useUnits, useVariables, useVerticalVariables };
|
|
993
|
+
export { ApiConstant, ApiEndpoint, ApiFailure, type BaseDomainListParams, type BaseListParams, CancelToken, CancelledFailure, CensusArea, CensusCategory, CensusData, CensusDataset, CensusEvent, type CensusListParams, CensusTopic, ClassificationType, DataAvailability, DataLanguage, DerivedPeriod, type DerivedPeriodListParams, DerivedVariable, type DerivedVariableListParams, Domain, type DomainListParams, DomainType, DynamicTable, DynamicTableHtmlGenerator, type DynamicTableParams, ForbiddenFailure, HSCodeType, Infographic, type InfographicListParams, type JSON, KBKILevel, KBLILevel, ListResult, LogLevel, NetworkClient, type NetworkClientConfig, NetworkFailure, type NetworkInterceptor, News, NewsCategory, type NewsCategoryListParams, type NewsListParams, NotFoundFailure, Pagination, ParseFailure, Period, type PeriodListParams, PressRelease, type PressReleaseListParams, Publication, type PublicationListParams, RelatedPublication, type RequestData, type RequestOptions, type ResponseData, ServerFailure, type StadataClient, type StadataClientConfig, type StadataClientInstance, StadataJS, type StadataJSConfig, StaticTable, type StaticTableListParams, StatisticClassification, type StatisticClassificationListParams, StrategicIndicator, type StrategicIndicatorListParams, Subject, SubjectCategory, type SubjectCategoryListParams, type SubjectListParams, TimeoutFailure, Trade, type TradeParams, TradePeriod, TradeSource, UnauthorizedFailure, Unit, type UnitListParams, type UseCensus, type UseDerivedPeriods, type UseDerivedVariables, type UseDomains, type UseDynamicTables, type UseInfographics, type UseNews, type UseNewsCategories, type UsePeriods, type UsePressReleases, type UsePublications, type UseStaticTables, type UseStatisticClassifications, type UseStrategicIndicators, type UseSubjectCategories, type UseSubjects, type UseTrade, type UseUnits, type UseVariables, type UseVerticalVariables, ValidationFailure, Variable, type VariableListParams, VerticalVariable, type VerticalVariableListParams, type ViewParams, createStadataClient, getGlobalClient, initStadata, resetGlobalClient, useCensus, useDerivedPeriods, useDerivedVariables, useDomains, useDynamicTables, useInfographics, useNews, useNewsCategories, usePeriods, usePressReleases, usePublications, useStaticTables, useStatisticClassifications, useStrategicIndicators, useSubjectCategories, useSubjects, useTrade, useUnits, useVariables, useVerticalVariables };
|
package/dist/index.d.ts
CHANGED
|
@@ -200,68 +200,76 @@ declare enum DomainType {
|
|
|
200
200
|
|
|
201
201
|
type JSON = Record<string, unknown>;
|
|
202
202
|
interface BaseListParams {
|
|
203
|
-
domain?: string;
|
|
204
203
|
lang?: DataLanguage;
|
|
205
204
|
page?: number;
|
|
206
205
|
perPage?: number;
|
|
207
206
|
cancelToken?: CancelToken;
|
|
208
207
|
}
|
|
209
|
-
interface
|
|
208
|
+
interface BaseDomainListParams extends BaseListParams {
|
|
209
|
+
domain: string;
|
|
210
|
+
}
|
|
211
|
+
interface DomainListParams extends BaseListParams {
|
|
210
212
|
type: DomainType;
|
|
211
213
|
provinceCode?: string;
|
|
212
214
|
keyword?: string;
|
|
213
215
|
}
|
|
214
|
-
interface PublicationListParams extends
|
|
216
|
+
interface PublicationListParams extends BaseDomainListParams {
|
|
215
217
|
keyword?: string;
|
|
216
218
|
month?: number;
|
|
217
219
|
year?: number;
|
|
218
220
|
}
|
|
219
|
-
interface InfographicListParams extends
|
|
221
|
+
interface InfographicListParams extends BaseDomainListParams {
|
|
220
222
|
keyword?: string;
|
|
221
223
|
}
|
|
222
|
-
interface StaticTableListParams extends
|
|
224
|
+
interface StaticTableListParams extends BaseDomainListParams {
|
|
223
225
|
keyword?: string;
|
|
224
226
|
month?: number;
|
|
225
227
|
year?: number;
|
|
226
228
|
}
|
|
227
|
-
interface NewsListParams extends
|
|
229
|
+
interface NewsListParams extends BaseDomainListParams {
|
|
228
230
|
keyword?: string;
|
|
229
231
|
month?: number;
|
|
230
232
|
year?: number;
|
|
231
233
|
newsCategoryId?: string;
|
|
232
234
|
}
|
|
233
|
-
interface NewsCategoryListParams extends
|
|
235
|
+
interface NewsCategoryListParams extends BaseDomainListParams {
|
|
234
236
|
}
|
|
235
|
-
interface PressReleaseListParams extends
|
|
237
|
+
interface PressReleaseListParams extends BaseDomainListParams {
|
|
236
238
|
keyword?: string;
|
|
237
239
|
month?: number;
|
|
238
240
|
year?: number;
|
|
239
241
|
}
|
|
240
|
-
interface SubjectListParams extends
|
|
242
|
+
interface SubjectListParams extends BaseDomainListParams {
|
|
243
|
+
subjectCategoryId?: number;
|
|
241
244
|
}
|
|
242
|
-
interface SubjectCategoryListParams extends
|
|
245
|
+
interface SubjectCategoryListParams extends BaseDomainListParams {
|
|
243
246
|
}
|
|
244
|
-
interface StrategicIndicatorListParams extends
|
|
247
|
+
interface StrategicIndicatorListParams extends BaseDomainListParams {
|
|
248
|
+
variableId?: number;
|
|
245
249
|
}
|
|
246
|
-
interface VariableListParams extends
|
|
250
|
+
interface VariableListParams extends BaseDomainListParams {
|
|
247
251
|
subjectId?: number;
|
|
252
|
+
year?: number;
|
|
253
|
+
showExistingVariables?: boolean;
|
|
248
254
|
showDeleted?: boolean;
|
|
249
255
|
}
|
|
250
|
-
interface VerticalVariableListParams extends
|
|
256
|
+
interface VerticalVariableListParams extends BaseDomainListParams {
|
|
251
257
|
variableId?: number;
|
|
252
258
|
}
|
|
253
|
-
interface UnitListParams extends
|
|
259
|
+
interface UnitListParams extends BaseDomainListParams {
|
|
260
|
+
variableId?: number;
|
|
254
261
|
}
|
|
255
|
-
interface PeriodListParams extends
|
|
262
|
+
interface PeriodListParams extends BaseDomainListParams {
|
|
256
263
|
variableId?: number;
|
|
257
264
|
}
|
|
258
|
-
interface DerivedPeriodListParams extends
|
|
265
|
+
interface DerivedPeriodListParams extends BaseDomainListParams {
|
|
259
266
|
variableId?: number;
|
|
260
267
|
}
|
|
261
|
-
interface DerivedVariableListParams extends
|
|
268
|
+
interface DerivedVariableListParams extends BaseDomainListParams {
|
|
262
269
|
variableId?: number;
|
|
270
|
+
verticalGroup?: number;
|
|
263
271
|
}
|
|
264
|
-
interface DynamicTableParams extends
|
|
272
|
+
interface DynamicTableParams extends BaseDomainListParams {
|
|
265
273
|
variableId: number;
|
|
266
274
|
periodId: string;
|
|
267
275
|
derivedVariableId?: number;
|
|
@@ -269,6 +277,7 @@ interface DynamicTableParams extends BaseListParams {
|
|
|
269
277
|
derivedPeriodId?: string;
|
|
270
278
|
}
|
|
271
279
|
interface StatisticClassificationListParams extends BaseListParams {
|
|
280
|
+
domain?: string;
|
|
272
281
|
type?: ClassificationType;
|
|
273
282
|
level?: ClassificationLevel;
|
|
274
283
|
keyword?: string;
|
|
@@ -872,6 +881,13 @@ declare function initStadata(config: StadataClientConfig): StadataClientInstance
|
|
|
872
881
|
declare function getGlobalClient(): StadataClientInstance;
|
|
873
882
|
declare function resetGlobalClient(): void;
|
|
874
883
|
|
|
884
|
+
declare class DynamicTableHtmlGenerator {
|
|
885
|
+
static generate(table: DynamicTable): string;
|
|
886
|
+
private static generateHeader;
|
|
887
|
+
private static generateBody;
|
|
888
|
+
private static formatValue;
|
|
889
|
+
}
|
|
890
|
+
|
|
875
891
|
interface StadataList {
|
|
876
892
|
domains(params?: DomainListParams): Promise<Result<ListResult<Domain>, ApiFailure>>;
|
|
877
893
|
publications(params: PublicationListParams): Promise<Result<ListResult<Publication>, ApiFailure>>;
|
|
@@ -974,4 +990,4 @@ declare class Trade extends BaseEntity {
|
|
|
974
990
|
static fromJson(json: Record<string, unknown>): Trade;
|
|
975
991
|
}
|
|
976
992
|
|
|
977
|
-
export { ApiConstant, ApiEndpoint, ApiFailure, type BaseListParams, CancelToken, CancelledFailure, CensusArea, CensusCategory, CensusData, CensusDataset, CensusEvent, type CensusListParams, CensusTopic, ClassificationType, DataAvailability, DataLanguage, DerivedPeriod, type DerivedPeriodListParams, DerivedVariable, type DerivedVariableListParams, Domain, type DomainListParams, DomainType, DynamicTable, type DynamicTableParams, ForbiddenFailure, HSCodeType, Infographic, type InfographicListParams, type JSON, KBKILevel, KBLILevel, ListResult, LogLevel, NetworkClient, type NetworkClientConfig, NetworkFailure, type NetworkInterceptor, News, NewsCategory, type NewsCategoryListParams, type NewsListParams, NotFoundFailure, Pagination, ParseFailure, Period, type PeriodListParams, PressRelease, type PressReleaseListParams, Publication, type PublicationListParams, RelatedPublication, type RequestData, type RequestOptions, type ResponseData, ServerFailure, type StadataClient, type StadataClientConfig, type StadataClientInstance, StadataJS, type StadataJSConfig, StaticTable, type StaticTableListParams, StatisticClassification, type StatisticClassificationListParams, StrategicIndicator, type StrategicIndicatorListParams, Subject, SubjectCategory, type SubjectCategoryListParams, type SubjectListParams, TimeoutFailure, Trade, type TradeParams, TradePeriod, TradeSource, UnauthorizedFailure, Unit, type UnitListParams, type UseCensus, type UseDerivedPeriods, type UseDerivedVariables, type UseDomains, type UseDynamicTables, type UseInfographics, type UseNews, type UseNewsCategories, type UsePeriods, type UsePressReleases, type UsePublications, type UseStaticTables, type UseStatisticClassifications, type UseStrategicIndicators, type UseSubjectCategories, type UseSubjects, type UseTrade, type UseUnits, type UseVariables, type UseVerticalVariables, ValidationFailure, Variable, type VariableListParams, VerticalVariable, type VerticalVariableListParams, type ViewParams, createStadataClient, getGlobalClient, initStadata, resetGlobalClient, useCensus, useDerivedPeriods, useDerivedVariables, useDomains, useDynamicTables, useInfographics, useNews, useNewsCategories, usePeriods, usePressReleases, usePublications, useStaticTables, useStatisticClassifications, useStrategicIndicators, useSubjectCategories, useSubjects, useTrade, useUnits, useVariables, useVerticalVariables };
|
|
993
|
+
export { ApiConstant, ApiEndpoint, ApiFailure, type BaseDomainListParams, type BaseListParams, CancelToken, CancelledFailure, CensusArea, CensusCategory, CensusData, CensusDataset, CensusEvent, type CensusListParams, CensusTopic, ClassificationType, DataAvailability, DataLanguage, DerivedPeriod, type DerivedPeriodListParams, DerivedVariable, type DerivedVariableListParams, Domain, type DomainListParams, DomainType, DynamicTable, DynamicTableHtmlGenerator, type DynamicTableParams, ForbiddenFailure, HSCodeType, Infographic, type InfographicListParams, type JSON, KBKILevel, KBLILevel, ListResult, LogLevel, NetworkClient, type NetworkClientConfig, NetworkFailure, type NetworkInterceptor, News, NewsCategory, type NewsCategoryListParams, type NewsListParams, NotFoundFailure, Pagination, ParseFailure, Period, type PeriodListParams, PressRelease, type PressReleaseListParams, Publication, type PublicationListParams, RelatedPublication, type RequestData, type RequestOptions, type ResponseData, ServerFailure, type StadataClient, type StadataClientConfig, type StadataClientInstance, StadataJS, type StadataJSConfig, StaticTable, type StaticTableListParams, StatisticClassification, type StatisticClassificationListParams, StrategicIndicator, type StrategicIndicatorListParams, Subject, SubjectCategory, type SubjectCategoryListParams, type SubjectListParams, TimeoutFailure, Trade, type TradeParams, TradePeriod, TradeSource, UnauthorizedFailure, Unit, type UnitListParams, type UseCensus, type UseDerivedPeriods, type UseDerivedVariables, type UseDomains, type UseDynamicTables, type UseInfographics, type UseNews, type UseNewsCategories, type UsePeriods, type UsePressReleases, type UsePublications, type UseStaticTables, type UseStatisticClassifications, type UseStrategicIndicators, type UseSubjectCategories, type UseSubjects, type UseTrade, type UseUnits, type UseVariables, type UseVerticalVariables, ValidationFailure, Variable, type VariableListParams, VerticalVariable, type VerticalVariableListParams, type ViewParams, createStadataClient, getGlobalClient, initStadata, resetGlobalClient, useCensus, useDerivedPeriods, useDerivedVariables, useDomains, useDynamicTables, useInfographics, useNews, useNewsCategories, usePeriods, usePressReleases, usePublications, useStaticTables, useStatisticClassifications, useStrategicIndicators, useSubjectCategories, useSubjects, useTrade, useUnits, useVariables, useVerticalVariables };
|