@simpleapps-com/augur-utils 2026.11.4 → 2026.11.6
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/EXPORTS.md +10 -3
- package/README.md +29 -1
- package/dist/address-id.d.ts +41 -0
- package/dist/address-id.d.ts.map +1 -0
- package/dist/build-checkout-payload.d.ts +9 -3
- package/dist/build-checkout-payload.d.ts.map +1 -1
- package/dist/image-rules.d.ts +72 -10
- package/dist/image-rules.d.ts.map +1 -1
- package/dist/image.d.ts +22 -7
- package/dist/image.d.ts.map +1 -1
- package/dist/index.cjs +180 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +174 -20
- package/dist/index.js.map +1 -1
- package/dist/log-line.d.ts +21 -0
- package/dist/log-line.d.ts.map +1 -0
- package/llms.txt +11 -2
- package/package.json +2 -2
package/EXPORTS.md
CHANGED
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
| Export | Kind | Description |
|
|
11
11
|
|--------|------|-------------|
|
|
12
12
|
| `addMillis` | const | A clock reading plus a duration, both milliseconds: when something expires. |
|
|
13
|
+
| `addressIdOf` | function | Any value as an address id, null when it isn't one: absent, a number that is not a safe integer at least 1 (0, -5, 1.5, NaN, Infinity), or a text `addressIdOfText` refuses. Only reads the value's kind; the decisions are the proved `posIntOf` and `addressIdOfText`. |
|
|
14
|
+
| `addressIdOfText` | function | A text as an address id: trimmed, decimal digits with at least one that is not 0, and a safe integer; null for "", " ", "0", "000", "-1", "1.0", "1e3", "0x10", "abc" and past 2^53 - 1. |
|
|
13
15
|
| `BillingAddressInvoiceSchema` | const | Valibot schema for billing address with required PO number (invoice payments). |
|
|
14
16
|
| `BillingAddressSchema` | const | Valibot schema for billing address validation. Less strict than shipping: allows PO Box, no email/phone required. |
|
|
15
17
|
| `BLUR_DATA_URL` | const | 1x1 transparent PNG for Next.js `<Image blurDataURL={...}>` placeholders. |
|
|
@@ -25,14 +27,16 @@
|
|
|
25
27
|
| `createImageConfig` | function | Creates a frozen ImageConfig object. |
|
|
26
28
|
| `days` | const | `n` days, in seconds. |
|
|
27
29
|
| `derivePrice` | function | Pure price derivation — usable in hooks AND server components. |
|
|
30
|
+
| `errorLogLine` | function | The log line for a thrown value: `context` and the error's type name only. The one place the packages read a caught value for a log; it reads `type` and `name`, never `message`, `cause` or `stack`. |
|
|
28
31
|
| `faqLd` | const | A FAQ page's FAQPage markup as text: one Question per entry. |
|
|
32
|
+
| `firstAddressIdFrom` | function | The first id in `ids` from `i` on, null when none is (each already read by `addressIdOf`). |
|
|
29
33
|
| `floorSeconds` | const | Milliseconds as whole seconds, rounded down. |
|
|
30
34
|
| `formatPrice` | function | Locale-aware currency formatting. Defaults to USD -- consumers can override locale and currency. |
|
|
31
35
|
| `generateBreadcrumbJsonLd` | function | Generates a Schema.org BreadcrumbList JSON-LD object from an array of breadcrumb items. |
|
|
32
36
|
| `generateProductJsonLd` | function | Generates a Schema.org Product JSON-LD string from an inventory document. Returns null if the item is suppressed, unnamed, or has no price. |
|
|
33
37
|
| `getBusinessDay` | function | Get the Nth business day from today (skipping weekends). |
|
|
34
38
|
| `getDefaultImageUrl` | function | Returns the default/placeholder image URL. Per-call `options.defaultImage` overrides `config.defaultImage`. |
|
|
35
|
-
| `getImageSrcSet` | function | Generates a `srcset` string for responsive images
|
|
39
|
+
| `getImageSrcSet` | function | Generates a `srcset` string for responsive images: one entry per width with a URL, so a blank or denied image with no default gives `""`. |
|
|
36
40
|
| `getImageUrl` | function | Builds a full agr.media URL for the given image path and transforms. |
|
|
37
41
|
| `getPaymentStatus` | function | Returns "Paid", "Partially Paid", or "Unpaid" based on invoice payment flags and amounts. |
|
|
38
42
|
| `getSchemaAvailability` | function | Maps resolved stock to a Schema.org availability URL. |
|
|
@@ -42,20 +46,23 @@
|
|
|
42
46
|
| `idRef` | const | A reference to another node by its @id, as JSON text. |
|
|
43
47
|
| `isAddressDifferent` | function | Compares a user-entered address with a SmartyStreets-validated address. Returns true if any field differs (case-insensitive for address/city, exact match for state abbreviation and zip code). |
|
|
44
48
|
| `isServerRuntime` | function | Returns true when running outside a browser (Node SSR, edge, Deno). Mirrors `isServer` in `@tanstack/query-core` (`build/modern/utils.js`). Evaluated per call, not at module scope, so `"use client"` modules that also run during SSR resolve correctly on each pass. |
|
|
49
|
+
| `isUsableAddressId` | function | Whether `value` is a usable address id (`addressIdOf` gives one). A plain boolean, not a type guard: "0" is a string that is no id, so a false MUST NOT narrow it away from `string`. |
|
|
45
50
|
| `lineHasQuantity` | function | Whether a cart line has a quantity (augur always stores one; the type allows null). |
|
|
46
51
|
| `linePriceAt` | function | Line `i`'s unit price from the per-line list (cart order): its own, fetched at its own quantity, so one item on two lines (two units of measure) keeps two prices; 0 past the end. |
|
|
52
|
+
| `logLineOf` | function | A log line: `context`, then `": "` and `errorName` when there is one. There is no way to pass anything else, so a token, a customer's details or an upstream body never reach a log. |
|
|
47
53
|
| `millis` | const | `n` milliseconds, for a duration under a second. |
|
|
48
54
|
| `millisOf` | const | `n` as `Millis`, or null unless it is a safe integer at least 0. |
|
|
49
55
|
| `minusMillis` | const | A reading less a duration, never below 0. |
|
|
50
56
|
| `minutes` | const | `n` minutes, in seconds. |
|
|
51
57
|
| `nodeHead` | const | The schema.org context and a node's type: its first two members, as JSON text. |
|
|
52
|
-
| `normalizePath` | function | Normalizes an image path by: 1. Returning
|
|
58
|
+
| `normalizePath` | function | Normalizes an image path by: 1. Returning the path after the origin for a URL on one of `ownOrigins` (the site's own image host: `https://images.<clientDomain>/a/b.jpg` → `a/b.jpg`). 2. Returning `""` for a plain `http://` URL (denied), and any other URL (`https://` in any case, or protocol-relative `//host/…`) as-is (external). 3. Stripping configured prefixes (defaults: `/images`, `images`). 4. Prepending `defaultPath` for bare filenames (no `/`). 5. Stripping leading slashes. |
|
|
53
59
|
| `paginateOffset` | function | Returns a copy of filters with offset adjusted for the given page. |
|
|
54
60
|
| `priceQueryRuns` | function | Whether a line's price query runs: a customer, an itemId, and a quantity (the price engine is never asked for a quantity nobody entered). |
|
|
55
61
|
| `priceQueryUnit` | function | The unit of measure a line's price query asks for: the line's own, so a CASE/6 line is priced per case, not as one EACH (the price engine prices a query without a unit in the item's default selling unit); null for a missing or blank unit (a line saved before the client required one). |
|
|
56
62
|
| `pricingLoadingFrom` | function | Cart pricing is loading when any query that runs is loading. |
|
|
57
63
|
| `pricingSettledFrom` | function | Cart pricing is settled when every query that runs has succeeded: a line whose query never runs (no quantity, no itemId, no customer) can't hold it back (its query stays pending and idle). |
|
|
58
64
|
| `pushTrackingData` | function | Push ecommerce tracking data to window.dataLayer using the GA4 clear-then-push pattern. |
|
|
65
|
+
| `resolveAddressId` | function | The first usable address id among `candidates`, in order, or null when none is: a caller's id, then the session's, then the site's default. "" and "0" are passed over, never read as 0. |
|
|
59
66
|
| `resolveGcTime` | function | Returns the React Query `gcTime` to use for a query built in this runtime. On the server returns `Infinity`, which query-core treats as "schedule no GC timer", so a per-request QueryClient is freed when the request ends. A finite value would start a timer that pins the whole request cache. In the browser returns `clientGcTime` unchanged. The result is a `number`, not `Millis`: `Infinity` is no whole number of milliseconds. |
|
|
60
67
|
| `resolveStock` | function | Pure stock resolution -- usable in hooks AND server components. |
|
|
61
68
|
| `roundHalfAway` | function | Round half away from zero to `decimals` places. |
|
|
@@ -82,7 +89,7 @@
|
|
|
82
89
|
|
|
83
90
|
### Types
|
|
84
91
|
|
|
85
|
-
`AddToCartEventParams`, `BillingAddress`, `BreadcrumbJsonLdItem`, `BuildTrackingDataInput`, `CacheTier`, `CategoryFilterOptions`, `CheckoutInput`, `CheckoutPayment`, `CustomerDocument`, `DerivedPrice`, `DerivePriceInput`, `Faq`, `ImageConfig`, `ImageTransforms`, `ImageUrlOptions`, `MenuItem`, `Millis`, `OeHdr`, `OeLine`, `OrderHeader`, `OrderLine`, `OrderNote`, `OrderPayment`, `PaymentStatus`, `PaymentStatusInvoice`, `ProductJsonLdAggregateRating`, `ProductJsonLdOptions`, `ProductJsonLdSeller`, `ResolvedStock`, `ResolveStockInput`, `SafeActionResult`, `SchemaAvailability`, `SearchParamOptions`, `Seconds`, `ShippingAddress`, `ShipToAddress`, `TAccountQuery`, `TApiResponse`, `TAttribute`, `TAttributeValue`, `TBillingUpdate`, `TCardInfo`, `TCartHdrUid`, `TCartLine`, `TCartLookUp`, `TCategory`, `TCategoryChild`, `TCategoryItemsResult`, `TCheckoutResult`, `TierName`, `TInventorySupplier`, `TInvMast`, `TInvMastDoc`, `TItemAccessory`, `TItemAttribute`, `TItemAttributes`, `TItemCategory`, `TItemDetails`, `TItemRelatedProduct`, `TItemsFilters`, `TItemUom`, `TJoomlaContent`, `TJoomlaContentFilters`, `TLibraryMultiplierData`, `TLibraryPriceBreak`, `TLibraryPriceData`, `TLtlRatesResponse`, `TLtlShipmentData`, `TMenu`, `TMenuFilters`, `TMetaTags`, `TOrderCartLine`, `TPasswordVerification`, `TPaymentValidation`, `TPriceData`, `TProductCategory`, `TProductItem`, `TProductStockData`, `TProfileValues`, `TrackingData`, `TrackingItem`, `TRelatedProduct`, `TSearchSuggestion`, `TSearchSuggestionsResponse`, `TShippingMethod`, `TSmartyStreets`, `TStock`, `TStockData`, `TSurcharge`, `TTax`, `TTaxItem`, `TTransactionSetup`, `TUserProfile`, `TWebDesc`, `UserAddress`, `USState`, `USStateCode`, `ViewItemEventParams`
|
|
92
|
+
`AddressId`, `AddressIdInput`, `AddToCartEventParams`, `BillingAddress`, `BreadcrumbJsonLdItem`, `BuildTrackingDataInput`, `CacheTier`, `CategoryFilterOptions`, `CheckoutInput`, `CheckoutPayment`, `CustomerDocument`, `DerivedPrice`, `DerivePriceInput`, `Faq`, `ImageConfig`, `ImageTransforms`, `ImageUrlOptions`, `MenuItem`, `Millis`, `OeHdr`, `OeLine`, `OrderHeader`, `OrderLine`, `OrderNote`, `OrderPayment`, `PaymentStatus`, `PaymentStatusInvoice`, `ProductJsonLdAggregateRating`, `ProductJsonLdOptions`, `ProductJsonLdSeller`, `ResolvedStock`, `ResolveStockInput`, `SafeActionResult`, `SchemaAvailability`, `SearchParamOptions`, `Seconds`, `ShippingAddress`, `ShipToAddress`, `TAccountQuery`, `TApiResponse`, `TAttribute`, `TAttributeValue`, `TBillingUpdate`, `TCardInfo`, `TCartHdrUid`, `TCartLine`, `TCartLookUp`, `TCategory`, `TCategoryChild`, `TCategoryItemsResult`, `TCheckoutResult`, `TierName`, `TInventorySupplier`, `TInvMast`, `TInvMastDoc`, `TItemAccessory`, `TItemAttribute`, `TItemAttributes`, `TItemCategory`, `TItemDetails`, `TItemRelatedProduct`, `TItemsFilters`, `TItemUom`, `TJoomlaContent`, `TJoomlaContentFilters`, `TLibraryMultiplierData`, `TLibraryPriceBreak`, `TLibraryPriceData`, `TLtlRatesResponse`, `TLtlShipmentData`, `TMenu`, `TMenuFilters`, `TMetaTags`, `TOrderCartLine`, `TPasswordVerification`, `TPaymentValidation`, `TPriceData`, `TProductCategory`, `TProductItem`, `TProductStockData`, `TProfileValues`, `TrackingData`, `TrackingItem`, `TRelatedProduct`, `TSearchSuggestion`, `TSearchSuggestionsResponse`, `TShippingMethod`, `TSmartyStreets`, `TStock`, `TStockData`, `TSurcharge`, `TTax`, `TTaxItem`, `TTransactionSetup`, `TUserProfile`, `TWebDesc`, `UserAddress`, `USState`, `USStateCode`, `ViewItemEventParams`
|
|
86
93
|
|
|
87
94
|
## `@simpleapps-com/augur-utils/web`
|
|
88
95
|
|
package/README.md
CHANGED
|
@@ -24,15 +24,43 @@ pnpm add @simpleapps-com/augur-utils
|
|
|
24
24
|
|
|
25
25
|
TypeScript in `src/`, built to `dist/` (ESM and CJS) by tsup. The decisions are proved
|
|
26
26
|
(`src/rules.ts`, `src/price-outcome.ts`, `src/image-rules.ts`, `src/json-ld-rules.ts`,
|
|
27
|
-
`src/cart-line-rules.ts`; model `models/AugurUtils.dfy`, links
|
|
27
|
+
`src/cart-line-rules.ts`, `src/address-id.ts`; model `models/AugurUtils.dfy`, links
|
|
28
|
+
`models/links/augur-utils-*.dfy`; `src/log-line.ts` against the security model
|
|
29
|
+
`models/AugurServerSecurity.dfy`);
|
|
28
30
|
the rest is tested at 100%.
|
|
29
31
|
|
|
32
|
+
Log lines (`src/log-line.ts`): the augur packages log fixed text and, for a thrown error, its
|
|
33
|
+
type name only (`errorLogLine(context, error)`, `logLineOf(context, name)`), never its message,
|
|
34
|
+
cause, stack or any payload, so a token, a customer's details or an upstream body never reach a
|
|
35
|
+
log (owner 2026-11-16: "remove any log leak").
|
|
36
|
+
|
|
30
37
|
Cart-line pricing (#93) lives in `src/cart-line-rules.ts`: `lineHasQuantity`, `priceQueryRuns`
|
|
31
38
|
(augur never stores a null quantity, `models/AugurCommerceCartLine.dfy`; the type allows one, and
|
|
32
39
|
such a line is not priced), `pricingSettledFrom` / `pricingLoadingFrom` (over the prices that are
|
|
33
40
|
fetched) and `linePriceAt` (each line's own price, so one item on two lines keeps two).
|
|
34
41
|
`buildTrackingData` takes `getLineUnitPrice(index)`, a price per line.
|
|
35
42
|
|
|
43
|
+
An address id (#95) lives in `src/address-id.ts`. A P21 customer, ship-to, supplier and vendor
|
|
44
|
+
id is that party's `address.id`, decimal(19,0), never 0, so one rule reads them all: `""`, `"0"`
|
|
45
|
+
and any non-`PosInt` value are no id. The proved `addressIdOfText` (trimmed digits with one not 0,
|
|
46
|
+
a safe integer) and `firstAddressIdFrom`, and the shells `addressIdOf`, `isUsableAddressId` and
|
|
47
|
+
`resolveAddressId`, which read a value's kind once. An id may be left out, but one that is sent MUST pass: every augur package that takes one resolves it
|
|
48
|
+
here (augur-server pricing, commerce, auth and Joomla profile; augur-hooks cart pricing, checkout
|
|
49
|
+
and payment; `buildCheckoutPayload`'s `customerId` and optional `shipToId`). `AddressId` carries
|
|
50
|
+
foundation's `PosInt` brand.
|
|
51
|
+
|
|
52
|
+
Image URLs (#175) are decided in `src/image-rules.ts`. An absolute URL on one of the config's
|
|
53
|
+
`ownOrigins` (default `images.<clientDomain>`, `www.<clientDomain>/images`,
|
|
54
|
+
`<clientDomain>/images`: the site's own image host, which agr.media mirrors) goes to agr.media
|
|
55
|
+
at its path from the images root; any other URL (`https://` in any case, or protocol-relative
|
|
56
|
+
`//host/…`) passes through. A plain `http://` URL,
|
|
57
|
+
in any case, is denied (owner 2026-11-14): no image, so the default image or `""`, and no
|
|
58
|
+
`http://` URL is ever returned (proved `isInsecure`, model `NeverInsecure`). The proved
|
|
59
|
+
`ownOriginRestFrom` matches an origin after `https://` or `//`, its host caselessly and its
|
|
60
|
+
path exactly, only at a `/` boundary with a file after it; `normalizedPath`, `imageUrlOf` and
|
|
61
|
+
`defaultImageUrlOf` read it once (model `AugurUtils` "own origins", `Resolve`). A site whose
|
|
62
|
+
image host is on another domain lists its own origins; the list replaces the defaults.
|
|
63
|
+
|
|
36
64
|
`CACHE_CONFIG`'s tiers are server-safe (#94): each `gcTime` is a getter through
|
|
37
65
|
`resolveGcTime` (`src/runtime.ts`, the proved `gcTimeFor` in `src/rules.ts`), so it is
|
|
38
66
|
`Infinity` on the server and the tier's value in the browser, decided each time a tier is read.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A usable address id: a whole number at least 1 that a JS number holds exactly. The brand is
|
|
3
|
+
* foundation's `PosInt` (private, so it can't be named in a published `.d.ts`), so the two are
|
|
4
|
+
* the same type.
|
|
5
|
+
*/
|
|
6
|
+
export type AddressId = number & {
|
|
7
|
+
readonly __posInt: true;
|
|
8
|
+
};
|
|
9
|
+
/** A value an address id arrives as: a session or profile field, a site default, a param. */
|
|
10
|
+
export type AddressIdInput = string | number | null | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* A text as an address id: trimmed, decimal digits with at least one that is not 0, and a safe
|
|
13
|
+
* integer; null for "", " ", "0", "000", "-1", "1.0", "1e3", "0x10", "abc" and past 2^53 - 1.
|
|
14
|
+
*
|
|
15
|
+
* @ensures exactly the model's AddressIdOfText: the trimmed digits' value when they are
|
|
16
|
+
* PosDigits and that value is a safe integer at least 1, else null
|
|
17
|
+
*/
|
|
18
|
+
export declare function addressIdOfText(s: string): AddressId | null;
|
|
19
|
+
/**
|
|
20
|
+
* The first id in `ids` from `i` on, null when none is (each already read by `addressIdOf`).
|
|
21
|
+
*
|
|
22
|
+
* @ensures exactly the model's FirstAddressIdFrom
|
|
23
|
+
*/
|
|
24
|
+
export declare function firstAddressIdFrom(ids: (AddressId | null)[], i: number): AddressId | null;
|
|
25
|
+
/**
|
|
26
|
+
* Any value as an address id, null when it isn't one: absent, a number that is not a safe integer
|
|
27
|
+
* at least 1 (0, -5, 1.5, NaN, Infinity), or a text `addressIdOfText` refuses. Only reads the
|
|
28
|
+
* value's kind; the decisions are the proved `posIntOf` and `addressIdOfText`.
|
|
29
|
+
*/
|
|
30
|
+
export declare function addressIdOf(value: AddressIdInput): AddressId | null;
|
|
31
|
+
/**
|
|
32
|
+
* Whether `value` is a usable address id (`addressIdOf` gives one). A plain boolean, not a type
|
|
33
|
+
* guard: "0" is a string that is no id, so a false MUST NOT narrow it away from `string`.
|
|
34
|
+
*/
|
|
35
|
+
export declare function isUsableAddressId(value: AddressIdInput): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The first usable address id among `candidates`, in order, or null when none is: a caller's id,
|
|
38
|
+
* then the session's, then the site's default. "" and "0" are passed over, never read as 0.
|
|
39
|
+
*/
|
|
40
|
+
export declare function resolveAddressId(...candidates: AddressIdInput[]): AddressId | null;
|
|
41
|
+
//# sourceMappingURL=address-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address-id.d.ts","sourceRoot":"","sources":["../src/address-id.ts"],"names":[],"mappings":"AAeA;;;;GAIG;AAEH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CAAE,CAAC;AAE7D,6FAA6F;AAC7F,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAEhE;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAU3D;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,CAAC,SAAS,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAYzF;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI,CAInE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAEhE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,UAAU,EAAE,cAAc,EAAE,GAAG,SAAS,GAAG,IAAI,CAElF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AddressId } from "./address-id";
|
|
1
2
|
import type { TCartLine } from "./types/cart";
|
|
2
3
|
export type OeHdr = {
|
|
3
4
|
customer_id: number;
|
|
@@ -7,7 +8,7 @@ export type OeHdr = {
|
|
|
7
8
|
user_email: string;
|
|
8
9
|
taker: string;
|
|
9
10
|
customer_po_no?: string;
|
|
10
|
-
ship_to_id?:
|
|
11
|
+
ship_to_id?: number;
|
|
11
12
|
delivery_instructions?: string;
|
|
12
13
|
};
|
|
13
14
|
export type OeLine = {
|
|
@@ -18,7 +19,8 @@ export type OeLine = {
|
|
|
18
19
|
unit_price?: number;
|
|
19
20
|
};
|
|
20
21
|
export type CheckoutInput = {
|
|
21
|
-
|
|
22
|
+
/** A usable P21 customer (`resolveAddressId` / `addressIdOf`): an order is never placed for 0 (atlas#95). */
|
|
23
|
+
customerId: AddressId;
|
|
22
24
|
companyId: string;
|
|
23
25
|
salesLocationId: number;
|
|
24
26
|
userId: number;
|
|
@@ -26,7 +28,11 @@ export type CheckoutInput = {
|
|
|
26
28
|
taker?: string;
|
|
27
29
|
cartLines: TCartLine[];
|
|
28
30
|
poNumber?: string;
|
|
29
|
-
|
|
31
|
+
/**
|
|
32
|
+
* The order's ship-to, optional; when given, a usable P21 ship-to id (`addressIdOf` /
|
|
33
|
+
* `resolveAddressId`): it is the ship-to's `address.id`, never "" or 0 (atlas#95).
|
|
34
|
+
*/
|
|
35
|
+
shipToId?: AddressId;
|
|
30
36
|
deliveryInstructions?: string;
|
|
31
37
|
};
|
|
32
38
|
/** Builds the oe_hdr + oe_line payload required by the commerce checkout API from cart data. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-checkout-payload.d.ts","sourceRoot":"","sources":["../src/build-checkout-payload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build-checkout-payload.d.ts","sourceRoot":"","sources":["../src/build-checkout-payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,MAAM,KAAK,GAAG;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,6GAA6G;IAC7G,UAAU,EAAE,SAAS,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,gGAAgG;AAChG,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,aAAa,GAAG;IAC1D,MAAM,EAAE,KAAK,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CA0BA"}
|
package/dist/image-rules.d.ts
CHANGED
|
@@ -23,7 +23,9 @@ export declare function transformPartsFrom(fields: string[], present: boolean[],
|
|
|
23
23
|
*/
|
|
24
24
|
export declare function serializedTransforms(fields: string[], present: boolean[], texts: string[]): string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* A URL, not a site path: "https://" in any case, or protocol-relative "//host/…". A plain
|
|
27
|
+
* http:// URL is denied before this is asked (isInsecure). Was `startsWith("http")`, which
|
|
28
|
+
* mangled "HTTPS://host/x" into an agr.media path and passed a file named "http-x.png" as a URL.
|
|
27
29
|
*
|
|
28
30
|
* @ensures exactly the model's IsExternal
|
|
29
31
|
*/
|
|
@@ -41,13 +43,58 @@ export declare function stripFirstPrefixFrom(path: string, prefixes: string[], i
|
|
|
41
43
|
*/
|
|
42
44
|
export declare function stripLeadingSlashes(s: string): string;
|
|
43
45
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
46
|
+
* A path relative to the site: the first matching prefix stripped once, then the leading
|
|
47
|
+
* slashes, then defaultPath + "/" before a bare file name when a defaultPath ("" for none) is
|
|
48
|
+
* set.
|
|
49
|
+
*
|
|
50
|
+
* @ensures exactly the model's LocalPath
|
|
51
|
+
*/
|
|
52
|
+
export declare function localPath(raw: string, prefixes: string[], defaultPath: string): string;
|
|
53
|
+
/**
|
|
54
|
+
* A plain http:// URL, in any case: denied.
|
|
55
|
+
*
|
|
56
|
+
* @ensures exactly the model's IsInsecure
|
|
57
|
+
*/
|
|
58
|
+
export declare function isInsecure(s: string): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Where the host starts: after "https://" (8, either case) or a protocol-relative "//" (2);
|
|
61
|
+
* 0 otherwise.
|
|
62
|
+
*
|
|
63
|
+
* @ensures exactly the model's SchemeEnd
|
|
64
|
+
*/
|
|
65
|
+
export declare function schemeEnd(raw: string): number;
|
|
66
|
+
/**
|
|
67
|
+
* The index of an origin's first "/", its length when it has none: where its host ends.
|
|
68
|
+
*
|
|
69
|
+
* @ensures exactly the model's SlashAt
|
|
70
|
+
*/
|
|
71
|
+
export declare function slashAt(o: string): number;
|
|
72
|
+
/**
|
|
73
|
+
* Origin `o` sits at `at` in `raw` (its host caselessly, its path exactly), and a "/" follows.
|
|
74
|
+
*
|
|
75
|
+
* @ensures exactly the model's OwnOriginAt
|
|
76
|
+
*/
|
|
77
|
+
export declare function ownOriginAt(raw: string, o: string, at: number): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* The path after the first own origin (from index `i`) the URL starts with; null for any other
|
|
80
|
+
* string, or when nothing follows the origin.
|
|
81
|
+
*
|
|
82
|
+
* @ensures exactly the model's OwnOriginRest
|
|
83
|
+
*/
|
|
84
|
+
export declare function ownOriginRestFrom(raw: string, origins: string[], i: number): string | null;
|
|
85
|
+
/**
|
|
86
|
+
* createImageConfig's default origins for a clientDomain (a bare domain, "example.com").
|
|
87
|
+
*
|
|
88
|
+
* @ensures exactly the model's DefaultOwnOrigins
|
|
89
|
+
*/
|
|
90
|
+
export declare function defaultOwnOrigins(clientDomain: string): string[];
|
|
91
|
+
/**
|
|
92
|
+
* normalizePath: "" for a denied http:// URL; an own-origin URL is its path from the images
|
|
93
|
+
* root; any other external URL as is; else the local path ("" when it reads as http://).
|
|
47
94
|
*
|
|
48
95
|
* @ensures exactly the model's NormalizePath
|
|
49
96
|
*/
|
|
50
|
-
export declare function normalizedPath(raw: string, prefixes: string[], defaultPath: string): string;
|
|
97
|
+
export declare function normalizedPath(raw: string, prefixes: string[], origins: string[], defaultPath: string): string;
|
|
51
98
|
/**
|
|
52
99
|
* The CDN URL for a normalized path, with the transform segment only when there is one.
|
|
53
100
|
*
|
|
@@ -55,16 +102,31 @@ export declare function normalizedPath(raw: string, prefixes: string[], defaultP
|
|
|
55
102
|
*/
|
|
56
103
|
export declare function cdnUrlOf(clientDomain: string, serialized: string, normalized: string): string;
|
|
57
104
|
/**
|
|
58
|
-
*
|
|
105
|
+
* A srcset's entries from index `i`: "<url> <width>w" for each width whose URL is not "" (a
|
|
106
|
+
* blank or denied image with no default has none, and an entry without a URL is unreadable).
|
|
107
|
+
*
|
|
108
|
+
* @ensures exactly the model's SrcSetParts
|
|
109
|
+
*/
|
|
110
|
+
export declare function srcSetPartsFrom(urls: string[], widths: string[], i: number): string[];
|
|
111
|
+
/**
|
|
112
|
+
* getImageSrcSet: the entries joined by ", ".
|
|
113
|
+
*
|
|
114
|
+
* @ensures exactly the model's SrcSet
|
|
115
|
+
*/
|
|
116
|
+
export declare function srcSetOf(urls: string[], widths: string[]): string;
|
|
117
|
+
/**
|
|
118
|
+
* getDefaultImageUrl over the chosen fallback: "" for none or a denied http:// one; an
|
|
119
|
+
* own-origin fallback goes to the CDN at its path, any other external one as is, else the CDN
|
|
120
|
+
* URL of its local path.
|
|
59
121
|
*
|
|
60
122
|
* @ensures exactly the model's DefaultImageUrl
|
|
61
123
|
*/
|
|
62
|
-
export declare function defaultImageUrlOf(clientDomain: string, fallback: string, prefixes: string[], defaultPath: string): string;
|
|
124
|
+
export declare function defaultImageUrlOf(clientDomain: string, fallback: string, prefixes: string[], origins: string[], defaultPath: string): string;
|
|
63
125
|
/**
|
|
64
|
-
* getImageUrl on a trimmed path: a blank one gives the default; an
|
|
65
|
-
* CDN URL.
|
|
126
|
+
* getImageUrl on a trimmed path: a blank or denied http:// one gives the default; an own-origin
|
|
127
|
+
* URL the CDN URL of its path; any other external one passes; else the CDN URL of its local path.
|
|
66
128
|
*
|
|
67
129
|
* @ensures exactly the model's ImageUrl on the trimmed path
|
|
68
130
|
*/
|
|
69
|
-
export declare function imageUrlOf(clientDomain: string, path: string, serialized: string, fallback: string, prefixes: string[], defaultPath: string): string;
|
|
131
|
+
export declare function imageUrlOf(clientDomain: string, path: string, serialized: string, fallback: string, prefixes: string[], origins: string[], defaultPath: string): string;
|
|
70
132
|
//# sourceMappingURL=image-rules.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-rules.d.ts","sourceRoot":"","sources":["../src/image-rules.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"image-rules.d.ts","sourceRoot":"","sources":["../src/image-rules.ts"],"names":[],"mappings":"AAcA;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAcpD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAMrE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EAAE,EAChB,OAAO,EAAE,OAAO,EAAE,EAClB,KAAK,EAAE,MAAM,EAAE,EACf,CAAC,EAAE,MAAM,GACR,MAAM,EAAE,CAcV;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EAAE,EAChB,OAAO,EAAE,OAAO,EAAE,EAClB,KAAK,EAAE,MAAM,EAAE,GACd,MAAM,CAKR;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAKhD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,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,IAAI,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAUrF;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAKjE;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAAE,EAClB,OAAO,EAAE,MAAM,EAAE,EACjB,WAAW,EAAE,MAAM,GAClB,MAAM,CAYR;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAAE,EAClB,OAAO,EAAE,MAAM,EAAE,EACjB,WAAW,EAAE,MAAM,GAClB,MAAM,CAeR"}
|
package/dist/image.d.ts
CHANGED
|
@@ -18,6 +18,13 @@ export interface ImageConfig {
|
|
|
18
18
|
readonly defaultTransforms?: ImageTransforms;
|
|
19
19
|
readonly stripPrefixes?: string[];
|
|
20
20
|
readonly defaultPath?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The site's own image hosts, which agr.media mirrors: an absolute URL on one of them is
|
|
23
|
+
* rewritten to agr.media like a relative path. Each is a host, optionally with a path
|
|
24
|
+
* (`"www.example.com/images"`), no scheme. Defaults to `images.<clientDomain>`,
|
|
25
|
+
* `www.<clientDomain>/images` and `<clientDomain>/images`.
|
|
26
|
+
*/
|
|
27
|
+
readonly ownOrigins?: string[];
|
|
21
28
|
}
|
|
22
29
|
export interface ImageUrlOptions {
|
|
23
30
|
defaultImage?: string;
|
|
@@ -26,12 +33,15 @@ export interface ImageUrlOptions {
|
|
|
26
33
|
* Creates a frozen ImageConfig object.
|
|
27
34
|
*
|
|
28
35
|
* `stripPrefixes` defaults to `["/images", "images"]` — set to `[]` to disable.
|
|
36
|
+
* `ownOrigins` defaults to `images.<clientDomain>`, `www.<clientDomain>/images` and
|
|
37
|
+
* `<clientDomain>/images`; a list replaces them, `[]` disables the rewrite.
|
|
29
38
|
*/
|
|
30
39
|
export declare function createImageConfig(clientDomain: string, opts?: {
|
|
31
40
|
defaultImage?: string;
|
|
32
41
|
defaultTransforms?: ImageTransforms;
|
|
33
42
|
stripPrefixes?: string[];
|
|
34
43
|
defaultPath?: string;
|
|
44
|
+
ownOrigins?: string[];
|
|
35
45
|
}): ImageConfig;
|
|
36
46
|
/**
|
|
37
47
|
* Serializes transform options into the CDN path segment.
|
|
@@ -40,17 +50,21 @@ export declare function createImageConfig(clientDomain: string, opts?: {
|
|
|
40
50
|
export declare function serializeTransforms(transforms: ImageTransforms): string;
|
|
41
51
|
/**
|
|
42
52
|
* Normalizes an image path by:
|
|
43
|
-
* 1. Returning
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
53
|
+
* 1. Returning the path after the origin for a URL on one of `ownOrigins` (the site's own image
|
|
54
|
+
* host: `https://images.<clientDomain>/a/b.jpg` → `a/b.jpg`).
|
|
55
|
+
* 2. Returning `""` for a plain `http://` URL (denied), and any other URL (`https://` in any
|
|
56
|
+
* case, or protocol-relative `//host/…`) as-is (external).
|
|
57
|
+
* 3. Stripping configured prefixes (defaults: `/images`, `images`).
|
|
58
|
+
* 4. Prepending `defaultPath` for bare filenames (no `/`).
|
|
59
|
+
* 5. Stripping leading slashes.
|
|
47
60
|
*/
|
|
48
61
|
export declare function normalizePath(config: ImageConfig, raw: string): string;
|
|
49
62
|
/**
|
|
50
63
|
* Builds a full agr.media URL for the given image path and transforms.
|
|
51
64
|
*
|
|
52
|
-
* - Empty/nullish paths return the default image URL.
|
|
53
|
-
* -
|
|
65
|
+
* - Empty/nullish paths and plain `http://` URLs (denied) return the default image URL.
|
|
66
|
+
* - URLs on the site's own image host (`ownOrigins`) go to agr.media like relative paths.
|
|
67
|
+
* - Other URLs (`https://` in any case, or protocol-relative `//host/…`) are returned as-is.
|
|
54
68
|
* - Configured prefixes (default: `/images`) are stripped automatically.
|
|
55
69
|
* - Bare filenames are prepended with `config.defaultPath` if set.
|
|
56
70
|
*/
|
|
@@ -61,7 +75,8 @@ export declare function getImageUrl(config: ImageConfig, imagePath: string | und
|
|
|
61
75
|
*/
|
|
62
76
|
export declare function getDefaultImageUrl(config: ImageConfig, options?: ImageUrlOptions): string;
|
|
63
77
|
/**
|
|
64
|
-
* Generates a `srcset` string for responsive images
|
|
78
|
+
* Generates a `srcset` string for responsive images: one entry per width with a URL, so a
|
|
79
|
+
* blank or denied image with no default gives `""`.
|
|
65
80
|
*/
|
|
66
81
|
export declare function getImageSrcSet(config: ImageConfig, imagePath: string, widths: number[], transforms?: ImageTransforms): string;
|
|
67
82
|
/**
|
package/dist/image.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../src/image.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../src/image.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAWH,gFAAgF;AAChF,eAAO,MAAM,aAAa,2HACgG,CAAC;AAE3H,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;CAC3D;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,C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