Library
core
src
elawsApi
Readme

Lawtext core referencesDocs


Lawtext core references / core/src/elawsApi

core/src/elawsApi

Index

Classes

Variables

allXMLZipURL

const allXMLZipURL: "https://laws.e-gov.go.jp/download?file_section=1&only_xml_flag=true" = "https://laws.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://laws.e-gov.go.jp/api/1/articles/" = "https://laws.e-gov.go.jp/api/1/articles/"

Defined in

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


lawdataURL

const lawdataURL: "https://laws.e-gov.go.jp/api/1/lawdata/" = "https://laws.e-gov.go.jp/api/1/lawdata/"

Defined in

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


lawlistsURL

const lawlistsURL: "https://laws.e-gov.go.jp/api/1/lawlists/1" = "https://laws.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

url: string

retry: number = 5

Returns

Promise<Element>

Defined in

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


fetchLawData()

fetchLawData(lawIDOrLawNum): Promise<ElawsLawData>

Parameters

lawIDOrLawNum: string

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

options

options.appdxTable?: string

options.article?: string

options.lawNum: string

options.paragraph?: string

Returns

Promise<string>

Defined in

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