@simpleapps-com/augur-utils 2.4.0 → 2026.11.1

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.
Files changed (114) hide show
  1. package/EXPORTS.md +24 -31
  2. package/README.md +19 -180
  3. package/dist/address-comparison.d.ts +18 -0
  4. package/dist/address-comparison.d.ts.map +1 -0
  5. package/dist/address-schemas.d.ts +45 -0
  6. package/dist/address-schemas.d.ts.map +1 -0
  7. package/dist/analytics.d.ts +66 -0
  8. package/dist/analytics.d.ts.map +1 -0
  9. package/dist/build-checkout-payload.d.ts +37 -0
  10. package/dist/build-checkout-payload.d.ts.map +1 -0
  11. package/dist/cache-config.d.ts +42 -0
  12. package/dist/cache-config.d.ts.map +1 -0
  13. package/dist/chunk-5UMFBGVA.cjs.map +1 -1
  14. package/dist/date-helpers.d.ts +16 -0
  15. package/dist/date-helpers.d.ts.map +1 -0
  16. package/dist/derive-price.d.ts +49 -0
  17. package/dist/derive-price.d.ts.map +1 -0
  18. package/dist/format-price.d.ts +6 -0
  19. package/dist/format-price.d.ts.map +1 -0
  20. package/dist/get-payment-status.d.ts +10 -0
  21. package/dist/get-payment-status.d.ts.map +1 -0
  22. package/dist/image-rules.d.ts +70 -0
  23. package/dist/image-rules.d.ts.map +1 -0
  24. package/dist/image.d.ts +80 -0
  25. package/dist/image.d.ts.map +1 -0
  26. package/dist/index.cjs +371 -167
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.ts +63 -1448
  29. package/dist/index.d.ts.map +1 -0
  30. package/dist/index.js +370 -166
  31. package/dist/index.js.map +1 -1
  32. package/dist/json-ld-rules.d.ts +50 -0
  33. package/dist/json-ld-rules.d.ts.map +1 -0
  34. package/dist/json-ld.d.ts +34 -0
  35. package/dist/json-ld.d.ts.map +1 -0
  36. package/dist/money.d.ts +37 -0
  37. package/dist/money.d.ts.map +1 -0
  38. package/dist/price-breaks.d.ts +16 -0
  39. package/dist/price-breaks.d.ts.map +1 -0
  40. package/dist/price-outcome.d.ts +19 -0
  41. package/dist/price-outcome.d.ts.map +1 -0
  42. package/dist/resolve-stock.d.ts +22 -0
  43. package/dist/resolve-stock.d.ts.map +1 -0
  44. package/dist/result.d.ts +33 -0
  45. package/dist/result.d.ts.map +1 -0
  46. package/dist/rules.d.ts +45 -0
  47. package/dist/rules.d.ts.map +1 -0
  48. package/dist/schema-availability.d.ts +11 -0
  49. package/dist/schema-availability.d.ts.map +1 -0
  50. package/dist/transform-ship-to-address.d.ts +15 -0
  51. package/dist/transform-ship-to-address.d.ts.map +1 -0
  52. package/dist/transforms.d.ts +70 -0
  53. package/dist/transforms.d.ts.map +1 -0
  54. package/dist/types/api.d.ts +8 -0
  55. package/dist/types/api.d.ts.map +1 -0
  56. package/dist/types/attribute.d.ts +12 -0
  57. package/dist/types/attribute.d.ts.map +1 -0
  58. package/dist/types/cart.d.ts +25 -0
  59. package/dist/types/cart.d.ts.map +1 -0
  60. package/dist/types/category-items.d.ts +4 -0
  61. package/dist/types/category-items.d.ts.map +1 -0
  62. package/dist/types/category.d.ts +19 -0
  63. package/dist/types/category.d.ts.map +1 -0
  64. package/dist/types/checkout.d.ts +4 -0
  65. package/dist/types/checkout.d.ts.map +1 -0
  66. package/dist/types/customer.d.ts +4 -0
  67. package/dist/types/customer.d.ts.map +1 -0
  68. package/dist/types/filter.d.ts +9 -0
  69. package/dist/types/filter.d.ts.map +1 -0
  70. package/dist/types/inventory.d.ts +10 -0
  71. package/dist/types/inventory.d.ts.map +1 -0
  72. package/dist/types/joomla.d.ts +11 -0
  73. package/dist/types/joomla.d.ts.map +1 -0
  74. package/dist/types/ltl-shipping.d.ts +45 -0
  75. package/dist/types/ltl-shipping.d.ts.map +1 -0
  76. package/dist/types/menu.d.ts +14 -0
  77. package/dist/types/menu.d.ts.map +1 -0
  78. package/dist/types/meta.d.ts +11 -0
  79. package/dist/types/meta.d.ts.map +1 -0
  80. package/dist/types/order.d.ts +72 -0
  81. package/dist/types/order.d.ts.map +1 -0
  82. package/dist/types/password.d.ts +7 -0
  83. package/dist/types/password.d.ts.map +1 -0
  84. package/dist/types/payment.d.ts +69 -0
  85. package/dist/types/payment.d.ts.map +1 -0
  86. package/dist/types/pricing.d.ts +25 -0
  87. package/dist/types/pricing.d.ts.map +1 -0
  88. package/dist/types/product.d.ts +58 -0
  89. package/dist/types/product.d.ts.map +1 -0
  90. package/dist/types/search.d.ts +16 -0
  91. package/dist/types/search.d.ts.map +1 -0
  92. package/dist/types/shipping.d.ts +4 -0
  93. package/dist/types/shipping.d.ts.map +1 -0
  94. package/dist/types/smarty-streets.d.ts +4 -0
  95. package/dist/types/smarty-streets.d.ts.map +1 -0
  96. package/dist/types/supplier.d.ts +4 -0
  97. package/dist/types/supplier.d.ts.map +1 -0
  98. package/dist/types/tax.d.ts +6 -0
  99. package/dist/types/tax.d.ts.map +1 -0
  100. package/dist/types/uom.d.ts +4 -0
  101. package/dist/types/uom.d.ts.map +1 -0
  102. package/dist/types/user-profile.d.ts +5 -0
  103. package/dist/types/user-profile.d.ts.map +1 -0
  104. package/dist/us-states.d.ts +15 -0
  105. package/dist/us-states.d.ts.map +1 -0
  106. package/dist/validation-patterns.d.ts +22 -0
  107. package/dist/validation-patterns.d.ts.map +1 -0
  108. package/dist/web.cjs.map +1 -1
  109. package/dist/web.d.ts +3 -5
  110. package/dist/web.d.ts.map +1 -0
  111. package/llms.txt +44 -38
  112. package/package.json +25 -13
  113. package/dist/index.d.cts +0 -1448
  114. package/dist/web.d.cts +0 -6
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Round half away from zero to `decimals` places.
3
+ *
4
+ * Shifts the decimal point through the exponent string instead of multiplying,
5
+ * so float noise in `value * 10^decimals` cannot flip a tie
6
+ * (`Math.round(1.005 * 100) / 100` is 1; this returns 1.01).
7
+ *
8
+ * @requires decimals ∈ ℕ // whole, non-negative; otherwise RangeError
9
+ * @ensures ¬isFinite(value) → result = value // NaN and ±Infinity pass through unchanged
10
+ * @ensures |value| · 10^decimals ≥ 2^51 → result = value // too large to round at that precision
11
+ * @ensures |value| · 10^decimals < 2^51 → result = sign(value) · round½↑(|value| · 10^decimals) · 10^−decimals
12
+ * // half away from zero on the value's shortest decimal string; a 17-significant-digit input whose
13
+ * // shifted fraction falls within one float spacing of .5 can still double-round (not observed for
14
+ * // real price × quantity products)
15
+ * @ensures result = 0 → result is +0 // a small negative rounds to 0, never −0 ("-$0.00")
16
+ *
17
+ * @param value Number to round
18
+ * @param decimals Decimal places to keep
19
+ * @returns `value` rounded half away from zero
20
+ */
21
+ export declare function roundHalfAway(value: number, decimals: number): number;
22
+ /**
23
+ * Remove JS float noise from a money product or sum.
24
+ *
25
+ * `38.0714 * 3` is 114.21419999999999; this returns 114.2142. Rounds half away
26
+ * from zero to 8 decimals: enough to represent real prices and quantities, not
27
+ * exact decimal arithmetic. Apply it to every product and running sum of money.
28
+ *
29
+ * @ensures cleanMoney(cleanMoney(value)) = cleanMoney(value)
30
+ * // idempotent: an in-range result is k · 10^−8 with integer k < 2^51, whose shortest
31
+ * // decimal string shifts back to k exactly; out-of-range values pass through unchanged
32
+ *
33
+ * @param value Result of a money product or sum
34
+ * @returns `value` without float noise
35
+ */
36
+ export declare function cleanMoney(value: number): number;
37
+ //# sourceMappingURL=money.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"money.d.ts","sourceRoot":"","sources":["../src/money.ts"],"names":[],"mappings":"AA2BA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAYrE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD"}
@@ -0,0 +1,16 @@
1
+ import type { TLibraryPriceData, TPriceData } from "./types/pricing";
2
+ /**
3
+ * Type guard: true when `libraryPriceData` is the price-page shape with quantity `breaks`.
4
+ *
5
+ * `"breaks" in libraryPriceData` does not narrow, because both SDK shapes allow
6
+ * arbitrary extra keys.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * if (hasPriceBreaks(priceData.libraryPriceData)) {
11
+ * priceData.libraryPriceData.breaks.map((tier) => tier.startQuantity);
12
+ * }
13
+ * ```
14
+ */
15
+ export declare function hasPriceBreaks(libraryPriceData: TPriceData["libraryPriceData"]): libraryPriceData is TLibraryPriceData;
16
+ //# sourceMappingURL=price-breaks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"price-breaks.d.ts","sourceRoot":"","sources":["../src/price-breaks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAErE;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAC5B,gBAAgB,EAAE,UAAU,CAAC,kBAAkB,CAAC,GAC/C,gBAAgB,IAAI,iBAAiB,CAEvC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * - `badQuantity`: the quantity is negative or not finite (derivePrice throws).
3
+ * - `loading`: no price record, or the record has no `unitPrice` yet (GH #454).
4
+ * - `badPrice`: the record's `unitPrice` is negative or not finite (derivePrice throws).
5
+ * - `callForPrice`: the record's `unitPrice` is 0.
6
+ * - `priced`: the record's `unitPrice` is greater than 0.
7
+ */
8
+ export type PriceOutcome = "badQuantity" | "loading" | "badPrice" | "callForPrice" | "priced";
9
+ /**
10
+ * Decide the outcome. `quantityOk` is "finite and ≥ 0"; `hasPrice` is "a record with a
11
+ * `unitPrice`"; `priceFinite` is `Number.isFinite(unitPrice)`; `unitPrice` is the record's price
12
+ * (any value when `hasPrice` is false).
13
+ *
14
+ * Proven: each outcome holds exactly when its condition does, so the five are exhaustive and
15
+ * mutually exclusive. A bad quantity wins over everything (a negative quantity throws even while
16
+ * loading), and loading wins over a bad price (a missing price is never reported as bad).
17
+ */
18
+ export declare function priceOutcome(quantityOk: boolean, hasPrice: boolean, priceFinite: boolean, unitPrice: number): PriceOutcome;
19
+ //# sourceMappingURL=price-outcome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"price-outcome.d.ts","sourceRoot":"","sources":["../src/price-outcome.ts"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc,GAAG,QAAQ,CAAC;AAE9F;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,OAAO,EACnB,QAAQ,EAAE,OAAO,EACjB,WAAW,EAAE,OAAO,EACpB,SAAS,EAAE,MAAM,GAChB,YAAY,CAYd"}
@@ -0,0 +1,22 @@
1
+ import type { TStock } from "./types/inventory";
2
+ export interface ResolveStockInput {
3
+ stock: TStock | null | undefined;
4
+ companyKey?: string;
5
+ round?: boolean;
6
+ lowStockThreshold?: number;
7
+ showQuantity?: boolean;
8
+ }
9
+ export interface ResolvedStock {
10
+ quantity: number;
11
+ isInStock: boolean;
12
+ isLowStock: boolean;
13
+ isDiscontinued: boolean;
14
+ displayQuantity: number | null;
15
+ }
16
+ /**
17
+ * Pure stock resolution -- usable in hooks AND server components.
18
+ *
19
+ * Returns `null` when `stock` is missing (loading / error state).
20
+ */
21
+ export declare function resolveStock(input: ResolveStockInput): ResolvedStock | null;
22
+ //# sourceMappingURL=resolve-stock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-stock.d.ts","sourceRoot":"","sources":["../src/resolve-stock.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAkBD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,aAAa,GAAG,IAAI,CAmB3E"}
@@ -0,0 +1,33 @@
1
+ /** Result type for safe action wrappers. */
2
+ export type SafeActionResult<T> = {
3
+ ok: true;
4
+ data: T;
5
+ } | {
6
+ ok: false;
7
+ error: string;
8
+ };
9
+ /**
10
+ * Extracts the data from a `SafeActionResult`, throwing on error.
11
+ *
12
+ * Ideal for React Query `queryFn` where errors should propagate
13
+ * to the error boundary.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const cart = unwrap(await getCartLines(cartId));
18
+ * ```
19
+ */
20
+ export declare function unwrap<T>(result: SafeActionResult<T>): T;
21
+ /**
22
+ * Extracts the data from a `SafeActionResult`, returning `null` on error.
23
+ *
24
+ * For direct calls that prefer `null` over thrown errors.
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * const cart = unwrapOr(await getCartLines(cartId));
29
+ * if (!cart) { /* handle missing data *\/ }
30
+ * ```
31
+ */
32
+ export declare function unwrapOr<T>(result: SafeActionResult<T>): T | null;
33
+ //# sourceMappingURL=result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../src/result.ts"],"names":[],"mappings":"AAEA,4CAA4C;AAC5C,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,CAAC,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvF;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,CAGxD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAEjE"}
@@ -0,0 +1,45 @@
1
+ /** An invoice's payment status, from its flag and amounts. */
2
+ export type PaymentStatus = "Paid" | "Partially Paid" | "Unpaid";
3
+ /**
4
+ * "Paid" when the invoice is flagged paid in full; else "Partially Paid" when both amounts are
5
+ * present and something was paid; else "Unpaid". The total is never compared with the amount
6
+ * (a finding: a full payment without the flag reads "Partially Paid").
7
+ */
8
+ export declare function paymentStatusOf(paidInFull: boolean, hasAmounts: boolean, amountPaid: number): PaymentStatus;
9
+ /** Low stock: in stock, a threshold set (above 0), and the quantity at or under it. */
10
+ export declare function isLowStockOf(quantity: number, threshold: number): boolean;
11
+ /** Every flag from `i` on is "Y" (vacuously when there are none). */
12
+ export declare function allYesFrom(flags: string[], i: number): boolean;
13
+ /** Discontinued: there are stock rows, and every one says "Y". */
14
+ export declare function isDiscontinuedOf(flags: string[]): boolean;
15
+ /** serializeCategoryFilters' sortBy: the prefix applied only when both are non-empty. */
16
+ export declare function categorySortBy(prefix: string, sortBy: string): string;
17
+ /** serializeSearchParams' sortBy: an empty one is left out. */
18
+ export declare function searchSortBy(sortBy: string): string | undefined;
19
+ /** A page's first item. */
20
+ export declare function pageOffset(page: number, limit: number): number;
21
+ /** unwrap's error message: the action's, or "Action failed" when it is empty. */
22
+ export declare function unwrapMessage(error: string): string;
23
+ /** A shipping lead's business-day range; `to` is 0 for a single day. */
24
+ export interface ShippingLead {
25
+ from: number;
26
+ to: number;
27
+ }
28
+ /** The shipping-lead table: a days key's business-day range, or null for any other key. */
29
+ export declare function shippingLeadOf(days: string): ShippingLead | null;
30
+ /** A business day is any day but Saturday and Sunday (by its en-US weekday name). */
31
+ export declare function isBusinessDayName(dayName: string): boolean;
32
+ /** Schema.org availability, by the resolved stock's flags. */
33
+ export type Availability = "InStock" | "OutOfStock" | "BackOrder";
34
+ /** In stock, else discontinued is out of stock, else back order (also with no stock record). */
35
+ export declare function availabilityOf(isInStock: boolean, isDiscontinued: boolean): Availability;
36
+ /** The order taker: the caller's, else "ESTORE". */
37
+ export declare function takerOf(taker: string | undefined): string;
38
+ /**
39
+ * An address differs from its validated form when line 1 or the city differ after lower-casing
40
+ * (compared by the caller with JS `toLowerCase`), or the state or zip differ exactly.
41
+ *
42
+ * @ensures exactly the model's AddressDifferent
43
+ */
44
+ export declare function addressDifferentOf(line1Same: boolean, citySame: boolean, stateSame: boolean, zipSame: boolean): boolean;
45
+ //# sourceMappingURL=rules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../src/rules.ts"],"names":[],"mappings":"AAMA,8DAA8D;AAC9D,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,gBAAgB,GAAG,QAAQ,CAAC;AAEjE;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,UAAU,EAAE,OAAO,EACnB,UAAU,EAAE,OAAO,EACnB,UAAU,EAAE,MAAM,GACjB,aAAa,CAQf;AAED,uFAAuF;AACvF,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAIzE;AAED,qEAAqE;AACrE,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAO9D;AAED,kEAAkE;AAClE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAIzD;AAED,yFAAyF;AACzF,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAKrE;AAED,+DAA+D;AAC/D,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAK/D;AAED,2BAA2B;AAC3B,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAI9D;AAED,iFAAiF;AACjF,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKnD;AAED,wEAAwE;AACxE,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,2FAA2F;AAC3F,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAkBhE;AAED,qFAAqF;AACrF,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAI1D;AAED,8DAA8D;AAC9D,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,WAAW,CAAC;AAElE,gGAAgG;AAChG,wBAAgB,cAAc,CAAC,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,GAAG,YAAY,CAQxF;AAED,oDAAoD;AACpD,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAKzD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,OAAO,EAClB,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,OAAO,EAClB,OAAO,EAAE,OAAO,GACf,OAAO,CAIT"}
@@ -0,0 +1,11 @@
1
+ import type { ResolvedStock } from "./resolve-stock";
2
+ export type SchemaAvailability = "https://schema.org/InStock" | "https://schema.org/OutOfStock" | "https://schema.org/LimitedAvailability" | "https://schema.org/BackOrder" | "https://schema.org/Discontinued";
3
+ /**
4
+ * Maps resolved stock to a Schema.org availability URL.
5
+ *
6
+ * - InStock: quantity > 0
7
+ * - OutOfStock: discontinued at all locations with zero inventory
8
+ * - BackOrder: zero stock but not discontinued (accepts backorders)
9
+ */
10
+ export declare function getSchemaAvailability(resolved: ResolvedStock | null | undefined): SchemaAvailability;
11
+ //# sourceMappingURL=schema-availability.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-availability.d.ts","sourceRoot":"","sources":["../src/schema-availability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,MAAM,MAAM,kBAAkB,GAC1B,4BAA4B,GAC5B,+BAA+B,GAC/B,wCAAwC,GACxC,8BAA8B,GAC9B,iCAAiC,CAAC;AAEtC;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,GACzC,kBAAkB,CAEpB"}
@@ -0,0 +1,15 @@
1
+ export type ShipToAddress = {
2
+ shipToId: string | number;
3
+ name: string;
4
+ address1: string;
5
+ address2?: string;
6
+ city: string;
7
+ state: string;
8
+ zip: string;
9
+ country?: string;
10
+ };
11
+ type RawShipTo = Record<string, unknown>;
12
+ /** Normalizes a raw ship-to address object (camelCase or snake_case, physical or mailing) into a consistent ShipToAddress shape. */
13
+ export declare function transformShipToAddress(raw: RawShipTo): ShipToAddress;
14
+ export {};
15
+ //# sourceMappingURL=transform-ship-to-address.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transform-ship-to-address.d.ts","sourceRoot":"","sources":["../src/transform-ship-to-address.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAgDzC,oIAAoI;AACpI,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,SAAS,GAAG,aAAa,CAqBpE"}
@@ -0,0 +1,70 @@
1
+ import type { TItemsFilters } from "./types/filter";
2
+ /**
3
+ * Options for category item filter serialization.
4
+ * All fields optional — omit what you don't need.
5
+ */
6
+ export interface CategoryFilterOptions {
7
+ /** Prefix prepended to non-empty sortBy values (e.g. "item_category_sequence_no_min|"). */
8
+ sortByPrefix?: string;
9
+ /** Whether to include stock data in results. Default: true. */
10
+ includeStock?: boolean;
11
+ }
12
+ /**
13
+ * Options for search param serialization.
14
+ * All fields optional — omit what you don't need.
15
+ */
16
+ export interface SearchParamOptions {
17
+ /** Category UID to scope search results. Converted to classId5List string. */
18
+ categoryUid?: number | string;
19
+ /** Source fields for search results. Default: "display_desc". */
20
+ sourceFields?: string;
21
+ }
22
+ /**
23
+ * Converts TItemsFilters to the SDK params shape for category item endpoints.
24
+ *
25
+ * Pure function. Idempotent. Produces params ready to spread into
26
+ * `q.items.itemCategory.categoryItems.list(uid, params)`.
27
+ *
28
+ * Transforms applied:
29
+ * - filters: [string, string][] -> JSON string
30
+ * - sortBy: prefixed with sortByPrefix if configured and non-empty
31
+ * - includeStock: "Y" added by default
32
+ * - page field: stripped (SDK uses limit/offset, not page)
33
+ */
34
+ export declare function serializeCategoryFilters(filters: TItemsFilters, options?: CategoryFilterOptions): Record<string, unknown>;
35
+ /**
36
+ * Converts TItemsFilters to the SDK params shape for search endpoints.
37
+ *
38
+ * Pure function. Idempotent. Produces params ready to spread into
39
+ * `q.openSearch.itemSearch.list(params)`.
40
+ *
41
+ * Transforms applied:
42
+ * - limit -> size, offset -> from (field rename)
43
+ * - searchType: "query" injected
44
+ * - categoryUid -> classId5List (string conversion)
45
+ * - filters: [string, string][] -> JSON string (or undefined if empty)
46
+ * - sourceFieldsList: injected from options or default "display_desc"
47
+ * - page field: stripped
48
+ */
49
+ export declare function serializeSearchParams(filters: TItemsFilters, options?: SearchParamOptions): Record<string, unknown>;
50
+ /**
51
+ * Returns a copy of filters with offset adjusted for the given page.
52
+ *
53
+ * Pure function. Idempotent. Use with useInfiniteQuery's pageParam
54
+ * to compute the correct offset for each page.
55
+ *
56
+ * @example
57
+ * ```tsx
58
+ * useInfiniteQuery({
59
+ * ...q.items.itemCategory.categoryItems.list(
60
+ * uid,
61
+ * serializeCategoryFilters(paginateOffset(filters, pageParam), site)
62
+ * ),
63
+ * initialPageParam: 0,
64
+ * getNextPageParam: (last, _all, lastPage) =>
65
+ * (lastPage + 1) * filters.limit < last.total ? lastPage + 1 : undefined,
66
+ * });
67
+ * ```
68
+ */
69
+ export declare function paginateOffset(filters: TItemsFilters, pageParam: number): TItemsFilters;
70
+ //# sourceMappingURL=transforms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transforms.d.ts","sourceRoot":"","sources":["../src/transforms.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,2FAA2F;IAC3F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,8EAA8E;IAC9E,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,iEAAiE;IACjE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,aAAa,EACtB,OAAO,CAAC,EAAE,qBAAqB,GAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAqBzB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,aAAa,EACtB,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAazB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,GAAG,aAAa,CAKvF"}
@@ -0,0 +1,8 @@
1
+ export type TApiResponse<T> = {
2
+ status: string;
3
+ data: T | undefined;
4
+ error: {
5
+ message: string;
6
+ } | undefined;
7
+ };
8
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/types/api.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,CAAC,GAAG,SAAS,CAAC;IACpB,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;CACxC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { ItemsTypes } from "@simpleapps-com/augur-api";
2
+ /** One name/value attribute on an item. Aliases the augur-api SDK type. */
3
+ export type TItemAttribute = ItemsTypes.InvMastListItemAttributesItem;
4
+ /** One value of an attribute. Aliases the augur-api SDK type. */
5
+ export type TAttributeValue = ItemsTypes.BrandsAttributesListDataAttributesItemValuesItem;
6
+ /** Attribute with its values. Aliases the augur-api SDK type. */
7
+ export type TAttribute = ItemsTypes.BrandsAttributesListDataAttributesItem;
8
+ /** Wrapper returned by the OpenSearch item category attributes endpoint. */
9
+ export type TItemAttributes = {
10
+ attributes: TAttribute[];
11
+ };
12
+ //# sourceMappingURL=attribute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attribute.d.ts","sourceRoot":"","sources":["../../src/types/attribute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,2EAA2E;AAC3E,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;AAEtE,iEAAiE;AACjE,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,gDAAgD,CAAC;AAE1F,iEAAiE;AACjE,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,sCAAsC,CAAC;AAE3E,4EAA4E;AAC5E,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,UAAU,EAAE,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { CommerceTypes } from "@simpleapps-com/augur-api";
2
+ /**
3
+ * One cart line, as returned by `commerce.cartLine.get`. Aliases the augur-api
4
+ * SDK type. `quantity`, `unitOfMeasure`, `unitPrice`, and `key` are nullable.
5
+ */
6
+ export type TCartLine = CommerceTypes.CartLineGetItem;
7
+ /**
8
+ * Cart header found by `commerce.cartHdr.lookup.get`. Aliases the augur-api SDK
9
+ * type. The endpoint returns `false` when no cart matches.
10
+ */
11
+ export type TCartLookUp = CommerceTypes.CartHdrLookupGetDataOption1;
12
+ export type TCartHdrUid = {
13
+ cartHdrUid?: string | number;
14
+ };
15
+ export type TOrderCartLine = {
16
+ inv_mast_uid: number;
17
+ item_id: string;
18
+ qty: number;
19
+ uom: string;
20
+ weight: number;
21
+ classId5: string | null;
22
+ unitPrice: number;
23
+ manualPriceOverride?: string;
24
+ };
25
+ //# sourceMappingURL=cart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart.d.ts","sourceRoot":"","sources":["../../src/types/cart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,aAAa,CAAC,eAAe,CAAC;AAEtD;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,aAAa,CAAC,2BAA2B,CAAC;AAEpE,MAAM,MAAM,WAAW,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ItemsTypes } from "@simpleapps-com/augur-api";
2
+ /** Category items page from `items.categories.items.list`. Aliases the augur-api SDK type. */
3
+ export type TCategoryItemsResult = ItemsTypes.CategoriesItemsListData;
4
+ //# sourceMappingURL=category-items.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"category-items.d.ts","sourceRoot":"","sources":["../../src/types/category-items.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,8FAA8F;AAC9F,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,uBAAuB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { ItemsTypes } from "@simpleapps-com/augur-api";
2
+ /** One child category of a category lookup. Aliases the augur-api SDK type. */
3
+ export type TCategoryChild = ItemsTypes.CategoriesLookupGetDataChildrenOption1Item;
4
+ /** Category from `items.categories.get`. Aliases the augur-api SDK type. */
5
+ export type TCategory = ItemsTypes.CategoriesGetData;
6
+ /** One row of `items.itemCategory.list`. Aliases the augur-api SDK type. */
7
+ export type TItemCategory = ItemsTypes.ItemCategoryListItem;
8
+ export type TProductCategory = {
9
+ fullPath: string;
10
+ itemCategoryDesc: string;
11
+ itemCategoryId: string;
12
+ itemCategoryUid: number;
13
+ itemCount: number;
14
+ productCollection: string | null;
15
+ sequenceNo: number;
16
+ children: TProductCategory[];
17
+ childrenTotal: number;
18
+ };
19
+ //# sourceMappingURL=category.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../src/types/category.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,+EAA+E;AAC/E,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,0CAA0C,CAAC;AAEnF,4EAA4E;AAC5E,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,iBAAiB,CAAC;AAErD,4EAA4E;AAC5E,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,oBAAoB,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { CommerceTypes } from "@simpleapps-com/augur-api";
2
+ /** Checkout created by `commerce.checkout.create`. Aliases the augur-api SDK type. */
3
+ export type TCheckoutResult = CommerceTypes.CheckoutCreateData;
4
+ //# sourceMappingURL=checkout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../src/types/checkout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,sFAAsF;AACtF,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC,kBAAkB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { CustomersTypes } from "@simpleapps-com/augur-api";
2
+ /** Customer document from `customers.customer.doc.list`. Aliases the augur-api SDK type. */
3
+ export type CustomerDocument = CustomersTypes.CustomerDocListData;
4
+ //# sourceMappingURL=customer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../src/types/customer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,4FAA4F;AAC5F,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,mBAAmB,CAAC"}
@@ -0,0 +1,9 @@
1
+ export type TItemsFilters = {
2
+ filters: [string, string][];
3
+ limit: number;
4
+ offset: number;
5
+ sortBy: string;
6
+ q: string;
7
+ page?: number;
8
+ };
9
+ //# sourceMappingURL=filter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../src/types/filter.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ItemsTypes } from "@simpleapps-com/augur-api";
2
+ /** Item master record from `items.invMast.get`. Aliases the augur-api SDK type. */
3
+ export type TInvMast = ItemsTypes.InvMastGetData;
4
+ /** One location row of `items.invMast.stock.get`. Aliases the augur-api SDK type. */
5
+ export type TStockData = ItemsTypes.InvMastStockGetDataStockDataItem;
6
+ /** Stock response from `items.invMast.stock.get`. Aliases the augur-api SDK type. */
7
+ export type TStock = ItemsTypes.InvMastStockGetData;
8
+ /** Item document from `items.invMast.doc.list`. Aliases the augur-api SDK type. */
9
+ export type TInvMastDoc = ItemsTypes.InvMastDocListData;
10
+ //# sourceMappingURL=inventory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inventory.d.ts","sourceRoot":"","sources":["../../src/types/inventory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,mFAAmF;AACnF,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,cAAc,CAAC;AAEjD,qFAAqF;AACrF,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,gCAAgC,CAAC;AAErE,qFAAqF;AACrF,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,mBAAmB,CAAC;AAEpD,mFAAmF;AACnF,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,kBAAkB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { JoomlaTypes } from "@simpleapps-com/augur-api";
2
+ /** One content article from `joomla.content.list`. Aliases the augur-api SDK type. */
3
+ export type TJoomlaContent = JoomlaTypes.ContentListItem;
4
+ export type TJoomlaContentFilters = {
5
+ limit: number;
6
+ offset: number;
7
+ q: string;
8
+ sortBy: string;
9
+ tagslist: string;
10
+ };
11
+ //# sourceMappingURL=joomla.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"joomla.d.ts","sourceRoot":"","sources":["../../src/types/joomla.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,sFAAsF;AACtF,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,eAAe,CAAC;AAEzD,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1,45 @@
1
+ export type TLtlRatesResponse = {
2
+ vendorContractId: string;
3
+ vendorId: string;
4
+ vendorName: string;
5
+ transitDays: number;
6
+ estimatedDeliveryDate: string;
7
+ milesInTransit: string;
8
+ totalCharges: number;
9
+ };
10
+ export type TLtlShipmentData = {
11
+ international: boolean;
12
+ fromAddressLine: string;
13
+ fromCity: string;
14
+ fromState: string;
15
+ fromPostalCode: string;
16
+ fromCountryCode: string;
17
+ fromCompanyName: string;
18
+ fromPhone: string;
19
+ fromFirstName: string;
20
+ fromLastName: string;
21
+ toAddressLine: string;
22
+ toCity: string;
23
+ toRegion: string;
24
+ toPostalCode: string;
25
+ toCountryCode: string;
26
+ toCompanyName: string;
27
+ toPhone: string;
28
+ toFirstName: string;
29
+ toLastName: string;
30
+ totalWeight: number;
31
+ handlingCharge: number;
32
+ handlingChargeUnit: string;
33
+ pickupInstructions: string;
34
+ deliveryInstructions: string;
35
+ packageLength: number;
36
+ packageWidth: number;
37
+ packageHeight: number;
38
+ dimensionUnit: string;
39
+ weightUnit: string;
40
+ quantity: number;
41
+ responseFormat: string;
42
+ version: string;
43
+ siteid: string;
44
+ };
45
+ //# sourceMappingURL=ltl-shipping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ltl-shipping.d.ts","sourceRoot":"","sources":["../../src/types/ltl-shipping.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { JoomlaTypes } from "@simpleapps-com/augur-api";
2
+ /** Menu item document (with children) from `joomla.menu.doc.list`. Aliases the augur-api SDK type. */
3
+ export type MenuItem = JoomlaTypes.MenuDocListData;
4
+ /** One menu row from `joomla.menu.list`. Aliases the augur-api SDK type. */
5
+ export type TMenu = JoomlaTypes.MenuListItem;
6
+ export type TMenuFilters = {
7
+ limit: number;
8
+ offset: number;
9
+ menutype: string;
10
+ parentId: number;
11
+ published: number;
12
+ orderBy: string;
13
+ };
14
+ //# sourceMappingURL=menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/types/menu.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,sGAAsG;AACtG,MAAM,MAAM,QAAQ,GAAG,WAAW,CAAC,eAAe,CAAC;AAEnD,4EAA4E;AAC5E,MAAM,MAAM,KAAK,GAAG,WAAW,CAAC,YAAY,CAAC;AAE7C,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { LegacyTypes } from "@simpleapps-com/augur-api";
2
+ export type TMetaTags = {
3
+ invMastExtUid: number;
4
+ invMastUid: number;
5
+ metaTitle: string;
6
+ metaDescription: string;
7
+ metaKeywords: string;
8
+ };
9
+ /** Item web description from `legacy.invMast.webDesc.list`. Aliases the augur-api SDK type. */
10
+ export type TWebDesc = LegacyTypes.InvMastWebDescListItem;
11
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../src/types/meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,MAAM,MAAM,SAAS,GAAG;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,+FAA+F;AAC/F,MAAM,MAAM,QAAQ,GAAG,WAAW,CAAC,sBAAsB,CAAC"}