@simpleapps-com/augur-api 2026.11.6 → 2026.11.8

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 (37) hide show
  1. package/README.md +2 -0
  2. package/dist/core/address-id-param.d.ts +22 -0
  3. package/dist/core/address-id-param.d.ts.map +1 -0
  4. package/dist/core/base-client.d.ts +7 -0
  5. package/dist/core/base-client.d.ts.map +1 -1
  6. package/dist/core/call.d.ts.map +1 -1
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.js +466 -51
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.mjs +466 -51
  11. package/dist/index.mjs.map +1 -1
  12. package/dist/services/agr-info/client.d.ts +1 -0
  13. package/dist/services/agr-info/client.d.ts.map +1 -1
  14. package/dist/services/agr-info/generated/endpoints.d.ts.map +1 -1
  15. package/dist/services/agr-info/generated/schemas.d.ts +16 -0
  16. package/dist/services/agr-info/generated/schemas.d.ts.map +1 -1
  17. package/dist/services/agr-info/generated/types.d.ts +102 -28
  18. package/dist/services/agr-info/generated/types.d.ts.map +1 -1
  19. package/dist/services/commerce/generated/schemas.d.ts +1 -1
  20. package/dist/services/commerce/generated/schemas.d.ts.map +1 -1
  21. package/dist/services/customers/generated/schemas.d.ts +12 -12
  22. package/dist/services/customers/generated/schemas.d.ts.map +1 -1
  23. package/dist/services/items/generated/schemas.d.ts +2 -2
  24. package/dist/services/items/generated/schemas.d.ts.map +1 -1
  25. package/dist/services/items/generated/types.d.ts +12 -8
  26. package/dist/services/items/generated/types.d.ts.map +1 -1
  27. package/dist/services/joomla/generated/schemas.d.ts +1 -1
  28. package/dist/services/joomla/generated/schemas.d.ts.map +1 -1
  29. package/dist/services/logistics/generated/schemas.d.ts +1 -1
  30. package/dist/services/orders/generated/schemas.d.ts +10 -10
  31. package/dist/services/orders/generated/schemas.d.ts.map +1 -1
  32. package/dist/services/payments/generated/schemas.d.ts +6 -6
  33. package/dist/services/pricing/generated/schemas.d.ts +11 -11
  34. package/dist/services/pricing/generated/schemas.d.ts.map +1 -1
  35. package/dist/services/vmi/generated/schemas.d.ts +6 -6
  36. package/dist/services/vmi/generated/schemas.d.ts.map +1 -1
  37. package/package.json +2 -2
package/README.md CHANGED
@@ -181,6 +181,8 @@ try {
181
181
 
182
182
  The status decides the class: 400 → `ValidationError`, 401 → `AuthenticationError`, 404 → `NotFoundError`, 429 → `RateLimitError`, anything else → `AugurError`. `error.endpoint` is the path template (`/inv-mast/{invMastUid}`), and messages never contain parameter values.
183
183
 
184
+ A `customerId`, `shipToId`, `supplierId` or `vendorId` is a P21 party's `address.id`, never 0. It may be left out where the spec allows, but one that is sent, in the query, the path or at a request body's top level, and is `""`, `"0"`, `0` or not a whole number at least 1 (as a number, or as digits with surrounding spaces allowed) is refused before any request, never sent as party 0: the typed methods throw `ValidationError` (`validationErrors[].path` names the param, code `address_id`), `call()` throws `InvalidArgumentError`. Neither error carries the value. The exported `*ParamsSchema`s apply the same rule for code that parses with them.
185
+
184
186
  ## Endpoint Registry and `call()`
185
187
 
186
188
  `AugurAPI.endpoints()` lists every endpoint (id, method, path template, params). `call()` invokes one by id or alias id, with no typed method:
@@ -0,0 +1,22 @@
1
+ /** Whether `name` is an address-id param: customerId, shipToId, supplierId or vendorId. */
2
+ export declare function isAddressIdParam(name: string): boolean;
3
+ /**
4
+ * Whether a sent number is an address id: a safe integer at least 1. The proof reads a number as
5
+ * an integer; at runtime `Math.floor(n) === n` refuses a fraction and NaN.
6
+ */
7
+ export declare function numberIsAddressId(n: number): boolean;
8
+ /**
9
+ * Whether a sent text is an address id: trimmed, digits with at least one not 0 ("", " ", "0" and
10
+ * "000" are not; " 0012 " is). No bound: in a query the id goes as text.
11
+ */
12
+ export declare function textIsAddressId(s: string): boolean;
13
+ /** Whether a param is refused: an address id by name, sent, and not usable. */
14
+ export declare function paramRefused(name: string, sent: boolean, usable: boolean): boolean;
15
+ /**
16
+ * The names of the params in `record` that `paramRefused` refuses, in order: the shell for both
17
+ * request paths (`BaseServiceClient.executeRequest` and `call()`). It only reads each value's kind
18
+ * (undefined and null are unsent; a number and a text go to their proved rule; any other kind is
19
+ * not usable, model AugurApiAddressId.ParamValue). Names only: a value never leaves here.
20
+ */
21
+ export declare function addressIdRefusals(record: unknown): string[];
22
+ //# sourceMappingURL=address-id-param.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address-id-param.d.ts","sourceRoot":"","sources":["../../src/core/address-id-param.ts"],"names":[],"mappings":"AAYA,2FAA2F;AAC3F,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAMtD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAIpD;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAIlD;AAED,+EAA+E;AAC/E,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAIlF;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,EAAE,CAW3D"}
@@ -112,6 +112,13 @@ export declare abstract class BaseServiceClient {
112
112
  * @throws AugurError For HTTP errors (handled by HTTPClient interceptors)
113
113
  */
114
114
  protected executeRequest<TParams = unknown, TResponse = unknown>(config: EndpointConfig, params?: TParams, pathParams?: Record<string, string | number>, query?: unknown): Promise<TResponse>;
115
+ /**
116
+ * Refuse the request before it is made when a sent `customerId`, `shipToId`, `supplierId` or
117
+ * `vendorId` (in the query, the path or a body's top level) is not a usable P21 address id
118
+ * (atlas#95): "", "0", 0 and the like never reach a service as party 0. The decision is the
119
+ * proved `paramRefused`; the error names the param, never its value.
120
+ */
121
+ private refuseUnusableAddressIds;
115
122
  /**
116
123
  * GET one of the parameterless base endpoints (health-check, ping, whoami)
117
124
  */
@@ -1 +1 @@
1
- {"version":3,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C;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,sBAAsB;AACtB,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,8EAA8E;IAC9E,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,8EAA8E;IAC9E,IAAI,EAAE,OAAO,CAAC;CACf;AA0ED;;;;GAIG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,aAAa,EACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAC1C,MAAM,CAQR;AAgBD;;;;;;;;;GASG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,cAAc,EACtB,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,QAAa,EACnB,MAAM,GAAE,UAAsB,GAC7B,OAAO,CAAC,UAAU,CAAC,CAmBrB"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2026.11.6";
1
+ export declare const VERSION = "2026.11.8";
2
2
  export { AugurAPI } from "./client";
3
3
  export { authenticateUserForSite, createCrossSiteAuthenticator, type CrossSiteAuthParams, type CrossSiteAuthResult, } from "./utils/cross-site-auth";
4
4
  export { type AugurAPIConfig, type AugurRequestConfig, type AugurResponse, type AugurRequestError, type RequestConfig, type CallOptions, type AugurContext, ContextCreationError, } from "./core/config";