Skip to content

Commit f115279

Browse files
committed
Update all libraries and tests to new API
1 parent 1992e95 commit f115279

File tree

276 files changed

+5079
-6559
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

276 files changed

+5079
-6559
lines changed

docs/examples/Catalog.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ <h2>React + Vite Example</h2>
9292

9393
const catalog_api = new CatalogApi();
9494
catalog_api
95-
.getCwmsDataCatalogWithDataset({
95+
.getCatalogWithDataset({
9696
office: 'SWT',
9797
like: 'KEYS..*.Inst.1Hour.0.Ccp-Rev',
9898
dataset: 'TIMESERIES',
@@ -125,7 +125,7 @@ <h2>Bundle / Vanilla JS Example</h2>
125125
&lt;script type=&quot;module&quot;&gt;
126126
const catalog_api = new cwmsjs.CatalogApi();
127127
catalog_api
128-
.getCwmsDataCatalogWithDataset({
128+
.getCatalogWithDataset({
129129
office: &#039;SWT&#039;,
130130
like: &#039;KEYS..*.Inst.1Hour.0.Ccp-Rev&#039;,
131131
dataset: &#039;TIMESERIES&#039;,

docs/examples/Configuration.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ <h2>React + Vite Example</h2>
100100
});
101101
const ts_api = new TimeSeriesApi(v2_config);
102102
ts_api
103-
.getCwmsDataTimeseries({
103+
.getDataTimeseries({
104104
office: 'SWT',
105105
name: 'KEYS.Elev.Inst.1Hour.0.Ccp-Rev',
106106
})
@@ -146,7 +146,7 @@ <h2>Bundle / Vanilla JS Example</h2>
146146
});
147147
const ts_api = new cwmsjs.TimeSeriesApi(v2_config);
148148
ts_api
149-
.getCwmsDataTimeseries({
149+
.getDataTimeseries({
150150
office: &#039;SWT&#039;,
151151
name: &#039;KEYS.Elev.Inst.1Hour.0.Ccp-Rev&#039;,
152152
})

docs/examples/Counties.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ <h2>React + Vite Example</h2>
9292

9393
const c_api = new CountiesApi(c_config);
9494
c_api
95-
.getCwmsDataCounties()
95+
.getCounties()
9696
.then((data) => {
9797
console.log(data);
9898
data.forEach((value) => {
@@ -130,7 +130,7 @@ <h2>Bundle / Vanilla JS Example</h2>
130130
&lt;script type=&quot;module&quot;&gt;
131131
const c_api = new cwmsjs.CountiesApi(c_config);
132132
c_api
133-
.getCwmsDataCounties()
133+
.getCounties()
134134
.then((data) =&gt; {
135135
console.log(data);
136136
data.forEach((value) =&gt; {

docs/examples/Levels.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ <h2>React + Vite Example</h2>
9292

9393
const l_api = new LevelsApi();
9494
l_api
95-
.getCwmsDataLevels({
95+
.getLevels({
9696
levelIdMask: '*KEYS*',
9797
office: 'SWT',
9898
format: 'json',
@@ -134,7 +134,7 @@ <h2>Bundle / Vanilla JS Example</h2>
134134
&lt;script type=&quot;module&quot;&gt;
135135
const l_api = new cwmsjs.LevelsApi();
136136
l_api
137-
.getCwmsDataLevels({
137+
.getLevels({
138138
levelIdMask: &#039;*KEYS*&#039;,
139139
office: &#039;SWT&#039;,
140140
format: &#039;json&#039;,

docs/examples/LocationCategories.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ <h2>React + Vite Example</h2>
9292

9393
const lc_api = new LocationCategoriesApi();
9494
lc_api
95-
.getCwmsDataLocationCategory({
95+
.getLocationCategory({
9696
office: 'SWT',
9797
})
9898
.then((data) => {
@@ -132,7 +132,7 @@ <h2>Bundle / Vanilla JS Example</h2>
132132
&lt;script type=&quot;module&quot;&gt;
133133
const lc_api = new cwmsjs.LocationCategoriesApi();
134134
lc_api
135-
.getCwmsDataLocationCategory({
135+
.getLocationCategory({
136136
office: &#039;SWT&#039;,
137137
})
138138
.then((data) =&gt; {

docs/examples/LocationGroups.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ <h2>React + Vite Example</h2>
9292

9393
const lg_api = new LocationGroupsApi();
9494
lg_api
95-
.getCwmsDataLocationGroup({
95+
.getLocationGroup({
9696
office: 'SWT',
9797
})
9898
.then((data) => {
@@ -133,7 +133,7 @@ <h2>Bundle / Vanilla JS Example</h2>
133133
&lt;script type=&quot;module&quot;&gt;
134134
const lg_api = new cwmsjs.LocationGroupsApi();
135135
lg_api
136-
.getCwmsDataLocationGroup({
136+
.getLocationGroup({
137137
office: &#039;SWT&#039;,
138138
})
139139
.then((data) =&gt; {

docs/examples/Locations.html

Lines changed: 0 additions & 184 deletions
This file was deleted.

docs/examples/Offices.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ <h2>React + Vite Example</h2>
9292

9393
const o_api = new OfficesApi();
9494
o_api
95-
.getCwmsDataOffices()
95+
.getOffices()
9696
.then((data) => {
9797
console.log(data?.offices);
9898
console.log(data?.offices?.offices);
@@ -132,7 +132,7 @@ <h2>Bundle / Vanilla JS Example</h2>
132132
&lt;script type=&quot;module&quot;&gt;
133133
const o_api = new cwmsjs.OfficesApi();
134134
o_api
135-
.getCwmsDataOffices()
135+
.getOffices()
136136
.then((data) =&gt; {
137137
console.log(data?.offices);
138138
console.log(data?.offices?.offices);

docs/examples/Parameters.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ <h2>React + Vite Example</h2>
9292

9393
const p_api = new ParametersApi();
9494
p_api
95-
.getCwmsDataParametersRaw({
95+
.getParametersRaw({
9696
office: 'SWT',
9797
})
9898
.then((r) => r.raw.json())
@@ -139,7 +139,7 @@ <h2>Bundle / Vanilla JS Example</h2>
139139
&lt;script type=&quot;module&quot;&gt;
140140
const p_api = new cwmsjs.ParametersApi();
141141
p_api
142-
.getCwmsDataParametersRaw({
142+
.getParametersRaw({
143143
office: &#039;SWT&#039;,
144144
})
145145
.then((r) =&gt; r.raw.json())

docs/examples/Pools.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ <h2>React + Vite Example</h2>
8787
<b>To Install:</b>
8888
<code class="language-shell">npm install cwmsjs --save</code><br>
8989
<pre>
90-
<code class="language-javascript">import { PoolsApi, Configuration} from "cwmsjs";
90+
<code class="language-javascript">import { PoolsApi, Configuration } from "cwmsjs";
9191

9292

9393
const config = new Configuration({
@@ -97,7 +97,7 @@ <h2>React + Vite Example</h2>
9797
});
9898
const p_api = new PoolsApi(config);
9999
p_api
100-
.getCwmsDataPoolsRaw({
100+
.getPoolsRaw({
101101
office: 'SWT',
102102
})
103103
.then(async (r) => {
@@ -138,7 +138,7 @@ <h2>Bundle / Vanilla JS Example</h2>
138138
});
139139
const p_api = new cwmsjs.PoolsApi(config);
140140
p_api
141-
.getCwmsDataPoolsRaw({
141+
.getPoolsRaw({
142142
office: &#039;SWT&#039;,
143143
})
144144
.then(async (r) =&gt; {

0 commit comments

Comments
 (0)