@mark1russell7/market-sources 0.2.7 → 0.3.0
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 +32 -2
- package/build/index.d.ts +196 -4
- package/build/index.d.ts.map +1 -1
- package/build/index.js +653 -15
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,13 +38,14 @@ for (const note of result.notes) console.warn(note);
|
|
|
38
38
|
| `parseDigiKeyKeywordSearch` | `KeywordSearch` of the Digi-Key Product Information API v4 |
|
|
39
39
|
| `parseAzureRetailPrices` | one page of the Azure Retail Prices API: `GET /api/retail/prices` |
|
|
40
40
|
| `parseAzureRetailPricePages` | all the pages of one read of the Azure Retail Prices API |
|
|
41
|
+
| `parsePlanLists` | all the pages of the plan list of a provider record, for example `GET /v2/plans` of the Vultr API |
|
|
41
42
|
|
|
42
43
|
Each parser takes the JSON of the answer and the instant `at` of the answer. It gives one of two results:
|
|
43
44
|
|
|
44
45
|
- `{ ok: true, observations, notes }`. The answer has the documented shape. Each observation is an offer and its reading, and the schemas of `@mark1russell7/market` accept both. Each note tells why the parser skipped a record or a field.
|
|
45
46
|
- `{ ok: false, problems }`. The answer does not have the documented shape, for example the error body of an API.
|
|
46
47
|
|
|
47
|
-
The Azure parsers give metered observations of `@mark1russell7/market`, and `next`. The field `next` is the link of the next page, or `null`.
|
|
48
|
+
The Azure parsers and the plan parser give metered observations of `@mark1russell7/market`, and `next`. The field `next` is the link of the next page, or `null`.
|
|
48
49
|
|
|
49
50
|
A parser throws a `RangeError` only when `at` is not an ISO 8601 instant in UTC. It does not throw on the answer, for any JSON value.
|
|
50
51
|
|
|
@@ -118,6 +119,27 @@ These rows give a note, and the parser skips them:
|
|
|
118
119
|
|
|
119
120
|
A reservation and a savings plan cover a fixed amount of use. The metered model has no limit of coverage. Thus give the usage of a committed offer only for the covered hours.
|
|
120
121
|
|
|
122
|
+
### Plan lists
|
|
123
|
+
|
|
124
|
+
A plan list is an API that gives each plan of virtual machines with its prices and its regions. A `PlanProvider` record tells where the API keeps each value. Each value is at a path of names with dots, for example `price.hourly`. Thus a new provider is a record of data, and not new code. `parsePlanProvider` examines a record, for example a record from a JSON file.
|
|
125
|
+
|
|
126
|
+
| Record | API | Regions | Prices of a region | Terms |
|
|
127
|
+
| --- | --- | --- | --- | --- |
|
|
128
|
+
| `VULTR_PLANS` | `GET /v2/plans` of the Vultr API v2 | the list `locations` of each plan | the object `location_cost` | `on-demand` when `deploy_ondemand` is true, `spot` when `deploy_preemptible` is true |
|
|
129
|
+
| `LINODE_PLANS` | `GET /v4/linode/types` of the Linode API v4 of Akamai Cloud | the rows of `GET /v4/regions/availability` with `available: true` | the list `region_prices` | `on-demand` |
|
|
130
|
+
|
|
131
|
+
| Field | Rule |
|
|
132
|
+
| --- | --- |
|
|
133
|
+
| Offers | Each plan in each available region on each term is one offer, with the source id `{plan}/{region}/{term}`. A plan with no available region gives a note. |
|
|
134
|
+
| Meter | The meter `compute` counts the hours of use in 1 month. Its first tier is the hourly price. A tier at the price 0 starts at the monthly price over the hourly price. |
|
|
135
|
+
| Cost | Thus the cost of a month is the smaller of the hourly cost and the monthly price. A plan with no monthly price has only the hourly tier. A plan with an hourly price of 0 and a monthly price above 0 has no offer, and a note tells why. A monthly price of 0 above an hourly price gives no cap, with a note. |
|
|
136
|
+
| Prices of a region | The price of a region replaces the price of the plan. A field that the price of a region does not have comes from the plan. |
|
|
137
|
+
| Specs | Each spec of the record, with its unit, for example `memory` with the value `1024 MiB`. The spec `pricing` has the key of the term. |
|
|
138
|
+
| Availability | The rows of the list of regions with no plan, no region or no `available` of true or false count in one note. The pairs that are not available count in one note. |
|
|
139
|
+
| Transfer | The included transfer is a spec. The plan lists do not give the price of the transfer above it. Thus an offer has no meter of transfer. |
|
|
140
|
+
|
|
141
|
+
`parsePlanLists(provider, { plans, regions }, at)` takes the pages of the plan list. A record with regions of the kind `list` also needs the pages of that list. The field `next` of the result is always `null`, because the client reads each page before the parse.
|
|
142
|
+
|
|
121
143
|
## The clients
|
|
122
144
|
|
|
123
145
|
| Client | Methods | Pace | Access |
|
|
@@ -126,6 +148,7 @@ A reservation and a savings plan cover a fixed amount of use. The metered model
|
|
|
126
148
|
| `createEbayClient` | `item(itemId)`, `search(words, limit)` | 1 s | OAuth 2.0 client credentials with Basic, the scope `api_scope` |
|
|
127
149
|
| `createBestBuyClient` | `product(sku)`, `search(words, pageSize)`, `openBox(sku)` | 1 s | the API key in the query |
|
|
128
150
|
| `createAzureClient` | `prices(filter, { pages, currency })`, `more(next, pages)` | 6 s | no key |
|
|
151
|
+
| `createPlanClient` | `plans(provider, { pages })` | the pace of the record, 2 s for each record of the package | no key |
|
|
129
152
|
|
|
130
153
|
```ts
|
|
131
154
|
import { HostScheduler, realClock } from "polite-crawler/politeness";
|
|
@@ -157,6 +180,8 @@ The package uses no type of a platform. Thus the host gives each port:
|
|
|
157
180
|
- **Secrets.** No message of a client has a key, a secret or a token. The text `[secret]` is in the place of each one, also in its URL form, its form-body form and its Basic form. `redact` uses `redactSecrets` of `@mark1russell7/text`.
|
|
158
181
|
- **Inputs.** A client refuses a bad key, a bad product number, a bad SKU and a limit out of range with a `RangeError`, before a request.
|
|
159
182
|
- **Pages.** The Azure client follows the link of the next page only to the same API, up to 10 pages. An empty filter is a `RangeError`, because a read of all the prices is a large crawl.
|
|
183
|
+
- **Plan lists.** The plan client makes each address from the record. An answer gives only the number or the cursor of the next page. A list with more pages than the limit gives a problem, because a part of a list gives wrong regions. The limit is 20 pages. A cursor that comes again also gives a problem.
|
|
184
|
+
- **Paging faults.** A page whose paging field is missing or of a wrong type gives a problem too, not the end of the list. A cursor of empty text or null is the end. A cursor goes back with no change.
|
|
160
185
|
- **Pace of Azure.** Each answer of Azure tells the requests that remain in a window of 60 seconds, from 10. Thus the client sends 1 request in 6 seconds at most.
|
|
161
186
|
|
|
162
187
|
The clients send each request with `send` of `polite-crawler/api`. It has the scheduler, the classifier and the reaction of the crawler to an answer, with no page store. The entry also gives the token store and the grant. The clients do not use the `Crawler`. The crawler keeps a copy of each page, and the terms of Digi-Key permit no store. The crawler also sends only `GET`, and a token request is a `POST`.
|
|
@@ -171,8 +196,12 @@ Each source has its terms as a `SourceTerms` record of `@mark1russell7/market`,
|
|
|
171
196
|
| `bestbuy` | `BEST_BUY_TERMS` | 72 hours | kept until the limit | no |
|
|
172
197
|
| `digikey` | `DIGIKEY_TERMS` | no store | not applicable | no |
|
|
173
198
|
| `azure` | `AZURE_TERMS` | no limit | kept | yes |
|
|
199
|
+
| `linode` | `LINODE_TERMS` | no store | not applicable | no |
|
|
200
|
+
| `vultr` | `VULTR_TERMS` | no store | not applicable | no |
|
|
201
|
+
|
|
202
|
+
`SOURCE_TERMS` has the six records.
|
|
174
203
|
|
|
175
|
-
`
|
|
204
|
+
The terms pages of Vultr and of Akamai refused an automated read on 2026-11-18. Thus `LINODE_TERMS` and `VULTR_TERMS` have the strictest rules: no store and no model of prices. A person reads the terms before a rule changes. The Linode API reference tells that the reads of the plan list need no permissions.
|
|
176
205
|
|
|
177
206
|
The Microsoft APIs Terms of Use permit copies of the Azure prices only as the application needs them. They forbid the redistribution and the resale of the data.
|
|
178
207
|
|
|
@@ -182,5 +211,6 @@ The Microsoft APIs Terms of Use permit copies of the Azure prices only as the ap
|
|
|
182
211
|
- The Azure parser has a test of a page of 18 real public rows, read on 2026-11-18. Each row has only the fields that the parser reads. The tests also find the cost of each offer with `meteredCost`.
|
|
183
212
|
- Property tests with `fast-check` mutate each documented answer: they delete fields, and put edge values and random JSON in their place. Each result has only valid records, and each reading belongs to its offer.
|
|
184
213
|
- A property test gives each parser random JSON values. No parser throws.
|
|
214
|
+
- The plan parser has tests of plans from public answers of Vultr and Linode, read on 2026-11-18. Property tests mutate each answer. A property test holds the cost of each offer: the smaller of the hourly cost and the monthly price.
|
|
185
215
|
- The tests of the clients use a fake transport and a real scheduler of `polite-crawler` on a fake clock. They hold each rule of the clients: the pace, the waits, the stops, the tokens and the secrets. `polite-crawler/api` has the tests of the send and of the token store.
|
|
186
216
|
- A property test puts a random secret in random texts. No text that `redact` gives has the secret.
|
package/build/index.d.ts
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
* The adapters of the sellers of a market. Each parser reads the answer of an official API at one instant, and
|
|
3
3
|
* gives the current offers and price readings as records of `@mark1russell7/market`. A parser keeps no store,
|
|
4
4
|
* and it sends no request. Each source also has the terms of its API. The Azure parser gives the metered prices
|
|
5
|
-
* of cloud resources as metered offers.
|
|
5
|
+
* of cloud resources as metered offers. The plan parser reads the plan list of each provider record as metered offers.
|
|
6
6
|
*
|
|
7
7
|
* Each client sends the requests of one API through a transport that its host gives. The scheduler of
|
|
8
8
|
* `polite-crawler/api` keeps the pace of each host. A client keeps no store, and no message of a client has a key.
|
|
9
9
|
*/
|
|
10
|
-
import { Condition, MeteredObservation, Observation, SourceTerms } from "@mark1russell7/market";
|
|
10
|
+
import { Condition, MeteredObservation, Observation, PriceTerm, SourceTerms } from "@mark1russell7/market";
|
|
11
11
|
import "@mark1russell7/quantity";
|
|
12
|
+
import { z } from "zod";
|
|
12
13
|
import { ApiError, ApiScheduler, Exchange, Pace, Reply, Signal, Transport } from "polite-crawler/api";
|
|
13
14
|
/**
|
|
14
15
|
* The result of a parser. With `ok`, the answer has the documented shape. Each observation is valid under the
|
|
@@ -346,7 +347,198 @@ interface BestBuyClient<S extends Signal> {
|
|
|
346
347
|
* @throws RangeError when the API key is not a key. The message does not show the value.
|
|
347
348
|
*/
|
|
348
349
|
export declare function createBestBuyClient<S extends Signal>(options: BestBuyClientOptions<S>): BestBuyClient<S>;
|
|
349
|
-
/** The
|
|
350
|
+
/** The name of the meter of each plan offer. It counts the hours of use in one month. */
|
|
351
|
+
export declare const PLAN_METER = "compute";
|
|
352
|
+
/** The name of the spec that the parser adds to each offer. Its value is the key of the price term. */
|
|
353
|
+
export declare const PLAN_PRICING_SPEC = "pricing";
|
|
354
|
+
/**
|
|
355
|
+
* The paging of a list. With `page`, the query parameter `param` has the number of the page, and the field `pages`
|
|
356
|
+
* of an answer has the count of pages. With `cursor`, the field `next` of an answer has the value of `param` for the
|
|
357
|
+
* next page, and an empty value ends the list.
|
|
358
|
+
*/
|
|
359
|
+
type PlanPaging = {
|
|
360
|
+
readonly kind: "none";
|
|
361
|
+
} | {
|
|
362
|
+
readonly kind: "page";
|
|
363
|
+
readonly param: string;
|
|
364
|
+
readonly pages: string;
|
|
365
|
+
} | {
|
|
366
|
+
readonly kind: "cursor";
|
|
367
|
+
readonly param: string;
|
|
368
|
+
readonly next: string;
|
|
369
|
+
};
|
|
370
|
+
/** A list of an API: its path on the host, its query, the field of its items in an answer, and its paging. */
|
|
371
|
+
interface PlanListRead {
|
|
372
|
+
readonly path: string;
|
|
373
|
+
readonly query: Readonly<Record<string, string>>;
|
|
374
|
+
readonly items: string;
|
|
375
|
+
readonly paging: PlanPaging;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* The price of a plan on one term. Each field is a path of names with dots in a plan, for example `price.hourly`.
|
|
379
|
+
* A plan has the term only when the field `when` is `true`. The fields `regionHourly` and `regionMonthly` are the
|
|
380
|
+
* paths in a price of one region. Without them, the paths in the fields `hourly` and `monthly` of the term apply.
|
|
381
|
+
*/
|
|
382
|
+
interface PlanTerm {
|
|
383
|
+
readonly key: string;
|
|
384
|
+
readonly term: PriceTerm;
|
|
385
|
+
readonly when?: string | undefined;
|
|
386
|
+
readonly hourly: string;
|
|
387
|
+
readonly monthly?: string | undefined;
|
|
388
|
+
readonly regionHourly?: string | undefined;
|
|
389
|
+
readonly regionMonthly?: string | undefined;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* The regions of each plan. With `field`, a plan has a list of the ids of its regions. With `list`, a different
|
|
393
|
+
* list of the API has one row for each plan and region. The field `available` of a row tells if the provider has
|
|
394
|
+
* the plan in that region.
|
|
395
|
+
*/
|
|
396
|
+
type PlanRegions = {
|
|
397
|
+
readonly kind: "field";
|
|
398
|
+
readonly path: string;
|
|
399
|
+
} | {
|
|
400
|
+
readonly kind: "list";
|
|
401
|
+
readonly read: PlanListRead;
|
|
402
|
+
readonly plan: string;
|
|
403
|
+
readonly region: string;
|
|
404
|
+
readonly available: string;
|
|
405
|
+
};
|
|
406
|
+
/**
|
|
407
|
+
* The prices of a plan that change with the region. With `map`, an object of a plan has a price for each id of a
|
|
408
|
+
* region. With `list`, a list of a plan has prices, each with the id of its region in the field `id`.
|
|
409
|
+
*/
|
|
410
|
+
type PlanRegionPrices = {
|
|
411
|
+
readonly kind: "none";
|
|
412
|
+
} | {
|
|
413
|
+
readonly kind: "map";
|
|
414
|
+
readonly path: string;
|
|
415
|
+
} | {
|
|
416
|
+
readonly kind: "list";
|
|
417
|
+
readonly path: string;
|
|
418
|
+
readonly id: string;
|
|
419
|
+
};
|
|
420
|
+
/** A spec of each offer: its name, the path of its value in a plan, and the unit that the parser adds to the value. */
|
|
421
|
+
interface PlanSpec {
|
|
422
|
+
readonly name: string;
|
|
423
|
+
readonly path: string;
|
|
424
|
+
readonly unit?: string | undefined;
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* The record of a provider with a plan list. The parser and the client read the API with only this record. Each
|
|
428
|
+
* path is a path of names with dots in an answer or in a plan.
|
|
429
|
+
*/
|
|
430
|
+
interface PlanProvider {
|
|
431
|
+
readonly source: string;
|
|
432
|
+
readonly provider: string;
|
|
433
|
+
readonly name: string;
|
|
434
|
+
readonly host: string;
|
|
435
|
+
readonly paceMs: number;
|
|
436
|
+
readonly currency: string;
|
|
437
|
+
readonly terms: SourceTerms;
|
|
438
|
+
readonly plans: PlanListRead;
|
|
439
|
+
readonly id: string;
|
|
440
|
+
readonly label?: string | undefined;
|
|
441
|
+
readonly regions: PlanRegions;
|
|
442
|
+
readonly regionPrices: PlanRegionPrices;
|
|
443
|
+
readonly prices: readonly PlanTerm[];
|
|
444
|
+
readonly specs: readonly PlanSpec[];
|
|
445
|
+
}
|
|
446
|
+
/** The answers of one read of a provider: the pages of its plan list, and the pages of its list of regions. */
|
|
447
|
+
interface PlanAnswers {
|
|
448
|
+
readonly plans: readonly unknown[];
|
|
449
|
+
readonly regions?: readonly unknown[] | undefined;
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* This schema accepts the record of a provider with a plan list. The terms are the terms of the source of the
|
|
453
|
+
* record. Each price term has its own key, and each spec has its own name. The name `pricing` is for the parser.
|
|
454
|
+
*/
|
|
455
|
+
export declare const planProviderSchema: z.ZodType<PlanProvider>;
|
|
456
|
+
/** The result of a check of a provider record. */
|
|
457
|
+
type PlanProviderRead = {
|
|
458
|
+
readonly ok: true;
|
|
459
|
+
readonly provider: PlanProvider;
|
|
460
|
+
} | {
|
|
461
|
+
readonly ok: false;
|
|
462
|
+
readonly problems: readonly string[];
|
|
463
|
+
};
|
|
464
|
+
/** This function examines a provider record, for example a record from a JSON file. */
|
|
465
|
+
export declare function parsePlanProvider(value: unknown): PlanProviderRead;
|
|
466
|
+
/**
|
|
467
|
+
* This function gives the address of one page of a list of a provider. `after` is the value of the paging parameter
|
|
468
|
+
* of the page. Without it, the address is the address of the first page.
|
|
469
|
+
*/
|
|
470
|
+
export declare function planListUrl(provider: PlanProvider, read: PlanListRead, after?: string): string;
|
|
471
|
+
/**
|
|
472
|
+
* The page after an answer. The kind `next` has the value of the paging parameter of the next page. The kind `end`
|
|
473
|
+
* tells that the answer is the last page. The kind `fault` tells that the answer has no valid paging field.
|
|
474
|
+
*/
|
|
475
|
+
type PlanNextPage = {
|
|
476
|
+
readonly kind: "next";
|
|
477
|
+
readonly after: string;
|
|
478
|
+
} | {
|
|
479
|
+
readonly kind: "end";
|
|
480
|
+
} | {
|
|
481
|
+
readonly kind: "fault";
|
|
482
|
+
readonly why: string;
|
|
483
|
+
};
|
|
484
|
+
/**
|
|
485
|
+
* This function gives the page after an answer. `page` is the number of the page of the answer, from 1. A paging
|
|
486
|
+
* field that is missing or of a wrong type gives a fault, not the end. A part of a list gives wrong offers. A cursor
|
|
487
|
+
* of empty text or null is the end.
|
|
488
|
+
*/
|
|
489
|
+
export declare function planNextPage(read: PlanListRead, answer: unknown, page: number): PlanNextPage;
|
|
490
|
+
/**
|
|
491
|
+
* This function reads the answers of a plan list at the instant `at`. It gives one metered offer for each plan,
|
|
492
|
+
* available region and price term. A provider with regions of the kind `list` needs the pages of that list. The
|
|
493
|
+
* result has no link of a next page: the client reads each page of a list before the parse.
|
|
494
|
+
*/
|
|
495
|
+
export declare function parsePlanLists(provider: PlanProvider, answers: PlanAnswers, at: string): MeteredParseResult;
|
|
496
|
+
/** The name of the Vultr source. */
|
|
497
|
+
export declare const VULTR_SOURCE = "vultr";
|
|
498
|
+
/** The terms of the Vultr source. A reading serves one request. */
|
|
499
|
+
export declare const VULTR_TERMS: SourceTerms;
|
|
500
|
+
/**
|
|
501
|
+
* The record of the Vultr plan list (`GET /v2/plans` of the API v2). The API gave the list with no key on
|
|
502
|
+
* 2026-11-18. Each plan lists its regions, and the object `location_cost` has the prices that change with the region.
|
|
503
|
+
* A plan has the on-demand term when `deploy_ondemand` is true, and the preemptible term when `deploy_preemptible` is true.
|
|
504
|
+
*/
|
|
505
|
+
export declare const VULTR_PLANS: PlanProvider;
|
|
506
|
+
/** The name of the Linode source of Akamai Cloud. */
|
|
507
|
+
export declare const LINODE_SOURCE = "linode";
|
|
508
|
+
/** The terms of the Linode source. A reading serves one request. */
|
|
509
|
+
export declare const LINODE_TERMS: SourceTerms;
|
|
510
|
+
/**
|
|
511
|
+
* The record of the Linode plan list of Akamai Cloud (`GET /v4/linode/types` of the API v4). The API reference
|
|
512
|
+
* tells that the read needs no permissions. The list of `GET /v4/regions/availability` tells the regions of each
|
|
513
|
+
* plan. The list `region_prices` has the prices that change with the region.
|
|
514
|
+
*/
|
|
515
|
+
export declare const LINODE_PLANS: PlanProvider;
|
|
516
|
+
/** The record of each provider with a plan list, in the order of the names. */
|
|
517
|
+
export declare const PLAN_PROVIDERS: readonly PlanProvider[];
|
|
518
|
+
/** The most pages of one list in one read. */
|
|
519
|
+
export declare const PLAN_PAGE_LIMIT = 20;
|
|
520
|
+
/** The options of a plan client. The plan lists of the records of this package need no key. */
|
|
521
|
+
interface PlanClientOptions<S extends Signal> {
|
|
522
|
+
readonly transport: Transport<S>;
|
|
523
|
+
readonly pace: Pace<S>;
|
|
524
|
+
}
|
|
525
|
+
/** The options of one read of a provider. */
|
|
526
|
+
interface PlanReadOptions {
|
|
527
|
+
/** The most pages of each list, from 1 to `PLAN_PAGE_LIMIT`. The default is `PLAN_PAGE_LIMIT`. */
|
|
528
|
+
readonly pages?: number | undefined;
|
|
529
|
+
}
|
|
530
|
+
/** A client of the plan lists of providers. */
|
|
531
|
+
interface PlanClient<S extends Signal> {
|
|
532
|
+
/** This method reads each page of the lists of a provider, and gives the result of `parsePlanLists`. */
|
|
533
|
+
plans(provider: PlanProvider, options?: PlanReadOptions, signal?: S): Promise<MeteredParseResult>;
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* This function makes a client of the plan lists of providers. Each address comes from the provider record. An
|
|
537
|
+
* answer gives only the number or the cursor of the next page. A read refuses a list with more pages than the limit,
|
|
538
|
+
* because a part of a list gives wrong regions.
|
|
539
|
+
*/
|
|
540
|
+
export declare function createPlanClient<S extends Signal>(options: PlanClientOptions<S>): PlanClient<S>;
|
|
541
|
+
/** The terms of each source of this package: the sellers in the order of the hand crawl, then Azure, then the plan lists. */
|
|
350
542
|
export declare const SOURCE_TERMS: readonly SourceTerms[];
|
|
351
|
-
export { ApiError, type ApiScheduler, type AzureClient, type AzureClientOptions, type AzureFilter, type AzureFilterField, type AzureReadOptions, type AzureUnit, type BestBuyClient, type BestBuyClientOptions, type DigiKeyClient, type DigiKeyClientOptions, type DigiKeyLocale, type EbayClient, type EbayClientOptions, type Exchange, type MeteredObservation, type MeteredParseResult, type Observation, type Pace, type ParseResult, type Reply, type Signal, type Transport };
|
|
543
|
+
export { ApiError, type ApiScheduler, type AzureClient, type AzureClientOptions, type AzureFilter, type AzureFilterField, type AzureReadOptions, type AzureUnit, type BestBuyClient, type BestBuyClientOptions, type DigiKeyClient, type DigiKeyClientOptions, type DigiKeyLocale, type EbayClient, type EbayClientOptions, type Exchange, type MeteredObservation, type MeteredParseResult, type Observation, type Pace, type ParseResult, type PlanAnswers, type PlanClient, type PlanClientOptions, type PlanListRead, type PlanNextPage, type PlanPaging, type PlanProvider, type PlanProviderRead, type PlanReadOptions, type PlanRegionPrices, type PlanRegions, type PlanSpec, type PlanTerm, type Reply, type Signal, type Transport };
|
|
352
544
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/parse.ts","../src/azure.ts","../src/bestbuy.ts","../src/digikey.ts","../src/ebay.ts","../src/client.ts","../src/digikey-client.ts","../src/ebay-client.ts","../src/azure-client.ts","../src/bestbuy-client.ts","../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/parse.ts","../src/azure.ts","../src/bestbuy.ts","../src/digikey.ts","../src/ebay.ts","../src/client.ts","../src/digikey-client.ts","../src/ebay-client.ts","../src/azure-client.ts","../src/bestbuy-client.ts","../src/plans.ts","../src/providers.ts","../src/plans-client.ts","../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;KA2BY;WACG;WAAmB,uBAAuB;WAAwB;;WAClE;WAAoB;;;KAGvB,UAAU,QAAQ;WAAwB;;;;;;;KAO1C;WAEG;WACA,uBAAuB;WACvB;WACA;IAEX;;qBCrBS;;qBAGA;;;;;;qBAOA,aAAa;;qBAUb;;qBAGA;;qBAGA;;KAiBD,2BAA2B;;KAG3B,0BAA0B,SAAS;;UAG9B;WACN;WACA;;;;;;;;;;wBAcK,eAAe,QAAQ,aAAa;;wBAwCpC,iBAAiB;;wBAKjB,cAAc;;;;;;wBAwCd,UAAU,wBAAwB;;;;;;;wBAsRlC,uBAAuB,iBA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