Library
core
modules
Core Src Elawsapi

Lawtext core references / core/src/elawsApi

Module: core/src/elawsApi

Table of contents

Classes

Variables

Functions

Variables

allXMLZipURL

Const allXMLZipURL: "https://elaws.e-gov.go.jp/download?file_section=1&only_xml_flag=true"

Defined in

core/src/elawsApi.ts:19 (opens in a new tab)


articlesURL

Const articlesURL: "https://elaws.e-gov.go.jp/api/1/articles/"

Defined in

core/src/elawsApi.ts:18 (opens in a new tab)


lawdataURL

Const lawdataURL: "https://elaws.e-gov.go.jp/api/1/lawdata/"

Defined in

core/src/elawsApi.ts:17 (opens in a new tab)


lawlistsURL

Const lawlistsURL: "https://elaws.e-gov.go.jp/api/1/lawlists/1"

Defined in

core/src/elawsApi.ts:16 (opens in a new tab)

Functions

fetchAllXMLZip

fetchAllXMLZip(): Promise<ArrayBuffer>

Returns

Promise<ArrayBuffer>

Defined in

core/src/elawsApi.ts:163 (opens in a new tab)


fetchElaws

fetchElaws(url, retry?): Promise<Element>

Parameters

NameTypeDefault value
urlstringundefined
retrynumber5

Returns

Promise<Element>

Defined in

core/src/elawsApi.ts:21 (opens in a new tab)


fetchLawData

fetchLawData(lawIDOrLawNum): Promise<ElawsLawData>

Parameters

NameType
lawIDOrLawNumstring

Returns

Promise<ElawsLawData>

Defined in

core/src/elawsApi.ts:142 (opens in a new tab)


fetchLawNameList

fetchLawNameList(): Promise<LawNameListInfo[]>

Returns

Promise<LawNameListInfo[]>

Defined in

core/src/elawsApi.ts:71 (opens in a new tab)


fetchPartialLaw

fetchPartialLaw(options): Promise<string>

Parameters

NameType
optionsObject
options.appdxTable?string
options.article?string
options.lawNumstring
options.paragraph?string

Returns

Promise<string>

Defined in

core/src/elawsApi.ts:171 (opens in a new tab)