@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/dist/index.js CHANGED
@@ -82,6 +82,9 @@ __export(index_exports, {
82
82
  module.exports = __toCommonJS(index_exports);
83
83
 
84
84
  // ../foundation/src/chars.ts
85
+ function isDigit(c) {
86
+ return c >= 48 && c <= 57;
87
+ }
85
88
  function isAlnumChar(c) {
86
89
  return c >= 65 && c <= 90 || c >= 97 && c <= 122 || c >= 48 && c <= 57;
87
90
  }
@@ -234,6 +237,38 @@ function restorePcharFrom(s, i) {
234
237
  return s.slice(i, i + 1) + restorePcharFrom(s, i + 1);
235
238
  }
236
239
 
240
+ // ../foundation/src/pos-digits.ts
241
+ function posDigitsFrom(s, i, nonZero) {
242
+ if (i === s.length) return nonZero;
243
+ const c = s.charCodeAt(i);
244
+ if (!isDigit(c)) return false;
245
+ return posDigitsFrom(s, i + 1, nonZero || c !== 48);
246
+ }
247
+ function isPosDigits(s) {
248
+ return posDigitsFrom(s, 0, false);
249
+ }
250
+
251
+ // src/core/address-id-param.ts
252
+ function isAddressIdParam(name) {
253
+ return name === "customerId" || name === "shipToId" || name === "supplierId" || name === "vendorId";
254
+ }
255
+ function numberIsAddressId(n) {
256
+ return Math.floor(n) === n && n >= 1 && n <= 9007199254740991;
257
+ }
258
+ function textIsAddressId(s) {
259
+ return isPosDigits(s.trim());
260
+ }
261
+ function paramRefused(name, sent, usable) {
262
+ return isAddressIdParam(name) && sent && !usable;
263
+ }
264
+ function addressIdRefusals(record32) {
265
+ if (record32 === null || typeof record32 !== "object" || Array.isArray(record32)) return [];
266
+ return Object.entries(record32).filter(([name, value]) => {
267
+ const usable = typeof value === "number" ? numberIsAddressId(value) : typeof value === "string" && textIsAddressId(value);
268
+ return paramRefused(name, value !== void 0 && value !== null, usable);
269
+ }).map(([name]) => name);
270
+ }
271
+
237
272
  // ../utils/src/replace.ts
238
273
  function replaceText(s, find, put) {
239
274
  if (s.length < find.length) return s;
@@ -1555,6 +1590,22 @@ var SitesValidateCreateDataSchema = v2.looseObject({
1555
1590
  }),
1556
1591
  env: v2.optional(v2.nullable(v2.picklist(["live", "play"])))
1557
1592
  });
1593
+ var SitesUpdateDataSchema = v2.looseObject({
1594
+ sitesUid: v2.number(),
1595
+ legacyId: v2.number(),
1596
+ siteId: v2.nullable(v2.string()),
1597
+ updateCd: v2.number(),
1598
+ statusCd: v2.number(),
1599
+ processCd: v2.number(),
1600
+ dateCreated: v2.string(),
1601
+ dateLastModified: v2.string(),
1602
+ legacyActiveCd: v2.number(),
1603
+ sqlserverVersion: v2.nullable(v2.string()),
1604
+ prophet21Version: v2.nullable(v2.string()),
1605
+ profitSharingFlag: v2.string(),
1606
+ prophet21Hosting: v2.string(),
1607
+ dateLastConnect: v2.string()
1608
+ });
1558
1609
  var WorkflowsListDataSchema = v2.array(
1559
1610
  v2.looseObject({
1560
1611
  workflowsUid: v2.number(),
@@ -1864,6 +1915,21 @@ var endpoints = [
1864
1915
  responseSchema: SitesValidateCreateDataSchema,
1865
1916
  responseType: "object"
1866
1917
  },
1918
+ {
1919
+ method: "PUT",
1920
+ path: "/sites/{siteId}",
1921
+ chain: "sites",
1922
+ action: "update",
1923
+ aliases: [],
1924
+ pathParams: ["siteId"],
1925
+ pathPatterns: {},
1926
+ queryParams: [],
1927
+ edgeCache: false,
1928
+ summary: "Update a site",
1929
+ params: { siteId: { in: "path", type: "string", required: true } },
1930
+ responseSchema: SitesUpdateDataSchema,
1931
+ responseType: "object"
1932
+ },
1867
1933
  {
1868
1934
  method: "GET",
1869
1935
  path: "/workflows",
@@ -5596,7 +5662,13 @@ var CartHdrLookupGetParamsSchema = v9.looseObject({
5596
5662
  ...EdgeCacheParamsSchema.entries,
5597
5663
  cartToken: v9.optional(v9.string()),
5598
5664
  contactId: v9.pipe(v9.unknown(), v9.transform(Number)),
5599
- customerId: v9.pipe(v9.unknown(), v9.transform(Number)),
5665
+ customerId: v9.pipe(
5666
+ v9.unknown(),
5667
+ v9.transform(Number),
5668
+ v9.integer(),
5669
+ v9.minValue(1),
5670
+ v9.maxValue(9007199254740991)
5671
+ ),
5600
5672
  userCartNo: v9.optional(v9.pipe(v9.unknown(), v9.transform(Number))),
5601
5673
  userId: v9.pipe(v9.unknown(), v9.transform(Number))
5602
5674
  });
@@ -6188,7 +6260,15 @@ var ContactsXShipToListParamsSchema = v10.looseObject({
6188
6260
  v10.pipe(v10.unknown(), v10.transform(Number))
6189
6261
  ])
6190
6262
  ),
6191
- shipToId: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number)))
6263
+ shipToId: v10.optional(
6264
+ v10.pipe(
6265
+ v10.unknown(),
6266
+ v10.transform(Number),
6267
+ v10.integer(),
6268
+ v10.minValue(1),
6269
+ v10.maxValue(9007199254740991)
6270
+ )
6271
+ )
6192
6272
  });
6193
6273
  var ContactsCustomersListParamsSchema = v10.looseObject({
6194
6274
  ...EdgeCacheParamsSchema.entries,
@@ -6217,7 +6297,15 @@ var CustomerListParamsSchema = v10.looseObject({
6217
6297
  var CustomerLanguageListParamsSchema = v10.looseObject({
6218
6298
  ...EdgeCacheParamsSchema.entries,
6219
6299
  companyId: v10.optional(v10.string()),
6220
- customerId: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6300
+ customerId: v10.optional(
6301
+ v10.pipe(
6302
+ v10.unknown(),
6303
+ v10.transform(Number),
6304
+ v10.integer(),
6305
+ v10.minValue(1),
6306
+ v10.maxValue(9007199254740991)
6307
+ )
6308
+ ),
6221
6309
  limit: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6222
6310
  offset: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6223
6311
  orderBy: v10.optional(v10.string())
@@ -6225,7 +6313,15 @@ var CustomerLanguageListParamsSchema = v10.looseObject({
6225
6313
  var CustomerUdListParamsSchema = v10.looseObject({
6226
6314
  ...EdgeCacheParamsSchema.entries,
6227
6315
  companyId: v10.optional(v10.string()),
6228
- customerId: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6316
+ customerId: v10.optional(
6317
+ v10.pipe(
6318
+ v10.unknown(),
6319
+ v10.transform(Number),
6320
+ v10.integer(),
6321
+ v10.minValue(1),
6322
+ v10.maxValue(9007199254740991)
6323
+ )
6324
+ ),
6229
6325
  limit: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6230
6326
  offset: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6231
6327
  orderBy: v10.optional(v10.string()),
@@ -6239,7 +6335,15 @@ var CustomerUdListParamsSchema = v10.looseObject({
6239
6335
  var CustomerXRestrictedClassListParamsSchema = v10.looseObject({
6240
6336
  ...EdgeCacheParamsSchema.entries,
6241
6337
  companyId: v10.optional(v10.string()),
6242
- customerId: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6338
+ customerId: v10.optional(
6339
+ v10.pipe(
6340
+ v10.unknown(),
6341
+ v10.transform(Number),
6342
+ v10.integer(),
6343
+ v10.minValue(1),
6344
+ v10.maxValue(9007199254740991)
6345
+ )
6346
+ ),
6243
6347
  limit: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6244
6348
  offset: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6245
6349
  orderBy: v10.optional(v10.string()),
@@ -6254,7 +6358,15 @@ var CustomerXRestrictedClassListParamsSchema = v10.looseObject({
6254
6358
  var CustomerXRewardsProgramListParamsSchema = v10.looseObject({
6255
6359
  ...EdgeCacheParamsSchema.entries,
6256
6360
  companyId: v10.optional(v10.string()),
6257
- customerId: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6361
+ customerId: v10.optional(
6362
+ v10.pipe(
6363
+ v10.unknown(),
6364
+ v10.transform(Number),
6365
+ v10.integer(),
6366
+ v10.minValue(1),
6367
+ v10.maxValue(9007199254740991)
6368
+ )
6369
+ ),
6258
6370
  limit: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6259
6371
  offset: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6260
6372
  orderBy: v10.optional(v10.string()),
@@ -6310,7 +6422,15 @@ var CustomerAgingListParamsSchema = v10.looseObject({
6310
6422
  limit: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6311
6423
  offset: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6312
6424
  orderBy: v10.optional(v10.string()),
6313
- shipToId: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number)))
6425
+ shipToId: v10.optional(
6426
+ v10.pipe(
6427
+ v10.unknown(),
6428
+ v10.transform(Number),
6429
+ v10.integer(),
6430
+ v10.minValue(1),
6431
+ v10.maxValue(9007199254740991)
6432
+ )
6433
+ )
6314
6434
  });
6315
6435
  var CustomerContactsListParamsSchema = v10.looseObject({
6316
6436
  ...EdgeCacheParamsSchema.entries,
@@ -6331,7 +6451,15 @@ var CustomerInvoicesListParamsSchema = v10.looseObject({
6331
6451
  orderBy: v10.optional(v10.string()),
6332
6452
  paidInFull: v10.optional(v10.string()),
6333
6453
  q: v10.optional(v10.string()),
6334
- shipToId: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number)))
6454
+ shipToId: v10.optional(
6455
+ v10.pipe(
6456
+ v10.unknown(),
6457
+ v10.transform(Number),
6458
+ v10.integer(),
6459
+ v10.minValue(1),
6460
+ v10.maxValue(9007199254740991)
6461
+ )
6462
+ )
6335
6463
  });
6336
6464
  var CustomerOrdersListParamsSchema = v10.looseObject({
6337
6465
  ...EdgeCacheParamsSchema.entries,
@@ -6400,8 +6528,24 @@ var CustomerSalesUsageListParamsSchema = v10.looseObject({
6400
6528
  offset: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6401
6529
  orderBy: v10.optional(v10.string()),
6402
6530
  q: v10.optional(v10.string()),
6403
- shipToId: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6404
- supplierId: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6531
+ shipToId: v10.optional(
6532
+ v10.pipe(
6533
+ v10.unknown(),
6534
+ v10.transform(Number),
6535
+ v10.integer(),
6536
+ v10.minValue(1),
6537
+ v10.maxValue(9007199254740991)
6538
+ )
6539
+ ),
6540
+ supplierId: v10.optional(
6541
+ v10.pipe(
6542
+ v10.unknown(),
6543
+ v10.transform(Number),
6544
+ v10.integer(),
6545
+ v10.minValue(1),
6546
+ v10.maxValue(9007199254740991)
6547
+ )
6548
+ ),
6405
6549
  totalBy: v10.optional(v10.string())
6406
6550
  });
6407
6551
  var CustomerShipToListParamsSchema = v10.looseObject({
@@ -6433,7 +6577,15 @@ var OeContactsCustomerListParamsSchema = v10.looseObject({
6433
6577
  ...EdgeCacheParamsSchema.entries,
6434
6578
  companyId: v10.optional(v10.string()),
6435
6579
  contactId: v10.optional(v10.string()),
6436
- customerId: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6580
+ customerId: v10.optional(
6581
+ v10.pipe(
6582
+ v10.unknown(),
6583
+ v10.transform(Number),
6584
+ v10.integer(),
6585
+ v10.minValue(1),
6586
+ v10.maxValue(9007199254740991)
6587
+ )
6588
+ ),
6437
6589
  deleteFlag: v10.optional(v10.string()),
6438
6590
  limit: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6439
6591
  offset: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
@@ -6460,7 +6612,15 @@ var RewardsProgramListParamsSchema = v10.looseObject({
6460
6612
  v10.pipe(v10.unknown(), v10.transform(Number))
6461
6613
  ])
6462
6614
  ),
6463
- supplierId: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number)))
6615
+ supplierId: v10.optional(
6616
+ v10.pipe(
6617
+ v10.unknown(),
6618
+ v10.transform(Number),
6619
+ v10.integer(),
6620
+ v10.minValue(1),
6621
+ v10.maxValue(9007199254740991)
6622
+ )
6623
+ )
6464
6624
  });
6465
6625
  var ShipToUdListParamsSchema = v10.looseObject({
6466
6626
  ...EdgeCacheParamsSchema.entries,
@@ -6468,7 +6628,15 @@ var ShipToUdListParamsSchema = v10.looseObject({
6468
6628
  limit: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6469
6629
  offset: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number))),
6470
6630
  orderBy: v10.optional(v10.string()),
6471
- shipToId: v10.optional(v10.pipe(v10.unknown(), v10.transform(Number)))
6631
+ shipToId: v10.optional(
6632
+ v10.pipe(
6633
+ v10.unknown(),
6634
+ v10.transform(Number),
6635
+ v10.integer(),
6636
+ v10.minValue(1),
6637
+ v10.maxValue(9007199254740991)
6638
+ )
6639
+ )
6472
6640
  });
6473
6641
  var ContactRoleListDataSchema = v10.array(
6474
6642
  v10.looseObject({
@@ -9853,7 +10021,15 @@ var InvPeriodUsageListParamsSchema = v13.looseObject({
9853
10021
  var InvXrefListParamsSchema = v13.looseObject({
9854
10022
  ...EdgeCacheParamsSchema.entries,
9855
10023
  companyId: v13.optional(v13.string()),
9856
- customerId: v13.optional(v13.pipe(v13.unknown(), v13.transform(Number))),
10024
+ customerId: v13.optional(
10025
+ v13.pipe(
10026
+ v13.unknown(),
10027
+ v13.transform(Number),
10028
+ v13.integer(),
10029
+ v13.minValue(1),
10030
+ v13.maxValue(9007199254740991)
10031
+ )
10032
+ ),
9857
10033
  deleteFlag: v13.optional(v13.string()),
9858
10034
  invMastUid: v13.optional(v13.pipe(v13.unknown(), v13.transform(Number))),
9859
10035
  itemRevisionUid: v13.optional(v13.pipe(v13.unknown(), v13.transform(Number))),
@@ -9880,7 +10056,15 @@ var InventorySupplierListParamsSchema = v13.looseObject({
9880
10056
  limit: v13.optional(v13.pipe(v13.unknown(), v13.transform(Number))),
9881
10057
  offset: v13.optional(v13.pipe(v13.unknown(), v13.transform(Number))),
9882
10058
  orderBy: v13.optional(v13.string()),
9883
- supplierId: v13.optional(v13.pipe(v13.unknown(), v13.transform(Number)))
10059
+ supplierId: v13.optional(
10060
+ v13.pipe(
10061
+ v13.unknown(),
10062
+ v13.transform(Number),
10063
+ v13.integer(),
10064
+ v13.minValue(1),
10065
+ v13.maxValue(9007199254740991)
10066
+ )
10067
+ )
9884
10068
  });
9885
10069
  var InventorySupplierXLocListParamsSchema = v13.looseObject({
9886
10070
  ...EdgeCacheParamsSchema.entries,
@@ -17291,7 +17475,15 @@ var UsersListParamsSchema2 = v14.looseObject({
17291
17475
  accessLevelList: v14.optional(v14.string()),
17292
17476
  blocked: v14.optional(v14.pipe(v14.unknown(), v14.transform(Number))),
17293
17477
  contactId: v14.optional(v14.string()),
17294
- customerId: v14.optional(v14.pipe(v14.unknown(), v14.transform(Number))),
17478
+ customerId: v14.optional(
17479
+ v14.pipe(
17480
+ v14.unknown(),
17481
+ v14.transform(Number),
17482
+ v14.integer(),
17483
+ v14.minValue(1),
17484
+ v14.maxValue(9007199254740991)
17485
+ )
17486
+ ),
17295
17487
  hasContactId: v14.optional(v14.string()),
17296
17488
  hasCustomerId: v14.optional(v14.string()),
17297
17489
  limit: v14.optional(v14.pipe(v14.unknown(), v14.transform(Number))),
@@ -19226,7 +19418,7 @@ var SpeedshipFreightListParamsSchema = v16.looseObject({
19226
19418
  toPostalCode: v16.string(),
19227
19419
  toState: v16.optional(v16.string()),
19228
19420
  totalWeight: v16.pipe(v16.unknown(), v16.transform(Number)),
19229
- vendorId: v16.optional(v16.string()),
19421
+ vendorId: v16.optional(v16.pipe(v16.string(), v16.trim(), v16.regex(/^0*[1-9][0-9]*$/))),
19230
19422
  weightUnit: v16.string()
19231
19423
  });
19232
19424
  var UPSAddressValidationListParamsSchema = v16.looseObject({
@@ -21216,15 +21408,39 @@ var endpoints18 = [
21216
21408
  var v20 = __toESM(require("valibot"));
21217
21409
  var ApinvHdrListParamsSchema = v20.looseObject({
21218
21410
  ...EdgeCacheParamsSchema.entries,
21219
- customerId: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21411
+ customerId: v20.optional(
21412
+ v20.pipe(
21413
+ v20.unknown(),
21414
+ v20.transform(Number),
21415
+ v20.integer(),
21416
+ v20.minValue(1),
21417
+ v20.maxValue(9007199254740991)
21418
+ )
21419
+ ),
21220
21420
  invoiceNo: v20.optional(v20.string()),
21221
21421
  limit: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21222
21422
  offset: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21223
21423
  orderBy: v20.optional(v20.string()),
21224
21424
  payableSourceUid: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21225
21425
  poNo: v20.optional(v20.string()),
21226
- shipToId: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21227
- vendorId: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21426
+ shipToId: v20.optional(
21427
+ v20.pipe(
21428
+ v20.unknown(),
21429
+ v20.transform(Number),
21430
+ v20.integer(),
21431
+ v20.minValue(1),
21432
+ v20.maxValue(9007199254740991)
21433
+ )
21434
+ ),
21435
+ vendorId: v20.optional(
21436
+ v20.pipe(
21437
+ v20.unknown(),
21438
+ v20.transform(Number),
21439
+ v20.integer(),
21440
+ v20.minValue(1),
21441
+ v20.maxValue(9007199254740991)
21442
+ )
21443
+ ),
21228
21444
  voucherReasonCodeUid: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21229
21445
  warrantyClaimPaymentsUid: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number)))
21230
21446
  });
@@ -21249,7 +21465,15 @@ var ArReceiptsListParamsSchema = v20.looseObject({
21249
21465
  var ArReceiptsDetailListParamsSchema = v20.looseObject({
21250
21466
  ...EdgeCacheParamsSchema.entries,
21251
21467
  companyId: v20.optional(v20.string()),
21252
- customerId: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21468
+ customerId: v20.optional(
21469
+ v20.pipe(
21470
+ v20.unknown(),
21471
+ v20.transform(Number),
21472
+ v20.integer(),
21473
+ v20.minValue(1),
21474
+ v20.maxValue(9007199254740991)
21475
+ )
21476
+ ),
21253
21477
  deleteFlag: v20.optional(v20.string()),
21254
21478
  invoiceNo: v20.optional(v20.string()),
21255
21479
  limit: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
@@ -21293,7 +21517,15 @@ var ImportSuspenseHdrListParamsSchema = v20.looseObject({
21293
21517
  var ImportSuspenseLineListParamsSchema = v20.looseObject({
21294
21518
  ...EdgeCacheParamsSchema.entries,
21295
21519
  companyId: v20.optional(v20.string()),
21296
- customerId: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21520
+ customerId: v20.optional(
21521
+ v20.pipe(
21522
+ v20.unknown(),
21523
+ v20.transform(Number),
21524
+ v20.integer(),
21525
+ v20.minValue(1),
21526
+ v20.maxValue(9007199254740991)
21527
+ )
21528
+ ),
21297
21529
  importSuspenseHdrUid: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21298
21530
  limit: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21299
21531
  locationId: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
@@ -21309,7 +21541,7 @@ var ImportSuspenseLineListParamsSchema = v20.looseObject({
21309
21541
  var InvoiceHdrListParamsSchema = v20.looseObject({
21310
21542
  ...EdgeCacheParamsSchema.entries,
21311
21543
  currencyLineUid: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21312
- customerId: v20.optional(v20.string()),
21544
+ customerId: v20.optional(v20.pipe(v20.string(), v20.trim(), v20.regex(/^0*[1-9][0-9]*$/))),
21313
21545
  freightCodeUid: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21314
21546
  invoiceBatchUid: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21315
21547
  limit: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
@@ -21320,7 +21552,15 @@ var InvoiceHdrListParamsSchema = v20.looseObject({
21320
21552
  reasonCreditMemoCodeUid: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21321
21553
  rebillInvoiceReasonUid: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21322
21554
  salesMarketGroupUid: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21323
- shipToId: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21555
+ shipToId: v20.optional(
21556
+ v20.pipe(
21557
+ v20.unknown(),
21558
+ v20.transform(Number),
21559
+ v20.integer(),
21560
+ v20.minValue(1),
21561
+ v20.maxValue(9007199254740991)
21562
+ )
21563
+ ),
21324
21564
  shippingRouteUid: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21325
21565
  soldToAhUid: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21326
21566
  sourceCreditMemoCodeUid: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number)))
@@ -21343,14 +21583,30 @@ var InvoiceLineListParamsSchema = v20.looseObject({
21343
21583
  v20.pipe(v20.unknown(), v20.transform(Number))
21344
21584
  ])
21345
21585
  ),
21346
- supplierId: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number)))
21586
+ supplierId: v20.optional(
21587
+ v20.pipe(
21588
+ v20.unknown(),
21589
+ v20.transform(Number),
21590
+ v20.integer(),
21591
+ v20.minValue(1),
21592
+ v20.maxValue(9007199254740991)
21593
+ )
21594
+ )
21347
21595
  });
21348
21596
  var OeHdrListParamsSchema = v20.looseObject({
21349
21597
  ...EdgeCacheParamsSchema.entries,
21350
21598
  addressId: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21351
21599
  cancelFlag: v20.optional(v20.string()),
21352
21600
  contactId: v20.optional(v20.string()),
21353
- customerId: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21601
+ customerId: v20.optional(
21602
+ v20.pipe(
21603
+ v20.unknown(),
21604
+ v20.transform(Number),
21605
+ v20.integer(),
21606
+ v20.minValue(1),
21607
+ v20.maxValue(9007199254740991)
21608
+ )
21609
+ ),
21354
21610
  deleteFlag: v20.optional(v20.string()),
21355
21611
  limit: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21356
21612
  offset: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
@@ -21481,7 +21737,15 @@ var PaymentsListParamsSchema = v20.looseObject({
21481
21737
  limit: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21482
21738
  offset: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number))),
21483
21739
  orderBy: v20.optional(v20.string()),
21484
- vendorId: v20.optional(v20.pipe(v20.unknown(), v20.transform(Number)))
21740
+ vendorId: v20.optional(
21741
+ v20.pipe(
21742
+ v20.unknown(),
21743
+ v20.transform(Number),
21744
+ v20.integer(),
21745
+ v20.minValue(1),
21746
+ v20.maxValue(9007199254740991)
21747
+ )
21748
+ )
21485
21749
  });
21486
21750
  var PendingPaymentsListParamsSchema = v20.looseObject({
21487
21751
  ...EdgeCacheParamsSchema.entries,
@@ -33391,7 +33655,7 @@ var PaypalWebhookCreateParamsSchema = v25.looseObject({
33391
33655
  });
33392
33656
  var UnifiedAccountQueryListParamsSchema = v25.looseObject({
33393
33657
  ...EdgeCacheParamsSchema.entries,
33394
- customerId: v25.string(),
33658
+ customerId: v25.pipe(v25.string(), v25.trim(), v25.regex(/^0*[1-9][0-9]*$/)),
33395
33659
  mode: v25.optional(v25.string()),
33396
33660
  transactionSetupId: v25.string()
33397
33661
  });
@@ -33400,7 +33664,7 @@ var UnifiedBillingUpdateListParamsSchema = v25.looseObject({
33400
33664
  address1: v25.string(),
33401
33665
  address2: v25.optional(v25.string()),
33402
33666
  city: v25.string(),
33403
- customerId: v25.optional(v25.string()),
33667
+ customerId: v25.optional(v25.pipe(v25.string(), v25.trim(), v25.regex(/^0*[1-9][0-9]*$/))),
33404
33668
  mode: v25.optional(v25.string()),
33405
33669
  state: v25.string(),
33406
33670
  transactionSetupId: v25.string(),
@@ -33408,7 +33672,7 @@ var UnifiedBillingUpdateListParamsSchema = v25.looseObject({
33408
33672
  });
33409
33673
  var UnifiedCardInfoListParamsSchema = v25.looseObject({
33410
33674
  ...EdgeCacheParamsSchema.entries,
33411
- customerId: v25.optional(v25.string()),
33675
+ customerId: v25.optional(v25.pipe(v25.string(), v25.trim(), v25.regex(/^0*[1-9][0-9]*$/))),
33412
33676
  mode: v25.optional(v25.string()),
33413
33677
  transactionSetupId: v25.string()
33414
33678
  });
@@ -33416,7 +33680,7 @@ var UnifiedSurchargeListParamsSchema = v25.looseObject({
33416
33680
  ...EdgeCacheParamsSchema.entries,
33417
33681
  amount: v25.string(),
33418
33682
  country: v25.string(),
33419
- customerId: v25.string(),
33683
+ customerId: v25.pipe(v25.string(), v25.trim(), v25.regex(/^0*[1-9][0-9]*$/)),
33420
33684
  fromState: v25.string(),
33421
33685
  mode: v25.optional(v25.string()),
33422
33686
  paymentAccountId: v25.string(),
@@ -33428,12 +33692,12 @@ var UnifiedTransactionResponseListParamsSchema = v25.looseObject({
33428
33692
  });
33429
33693
  var UnifiedTransactionSetupListParamsSchema = v25.looseObject({
33430
33694
  ...EdgeCacheParamsSchema.entries,
33431
- customerId: v25.string(),
33695
+ customerId: v25.pipe(v25.string(), v25.trim(), v25.regex(/^0*[1-9][0-9]*$/)),
33432
33696
  mode: v25.optional(v25.string())
33433
33697
  });
33434
33698
  var UnifiedValidateListParamsSchema = v25.looseObject({
33435
33699
  ...EdgeCacheParamsSchema.entries,
33436
- customerId: v25.string(),
33700
+ customerId: v25.pipe(v25.string(), v25.trim(), v25.regex(/^0*[1-9][0-9]*$/)),
33437
33701
  mode: v25.optional(v25.string()),
33438
33702
  transactionSetupId: v25.string()
33439
33703
  });
@@ -34426,7 +34690,15 @@ var endpoints24 = [
34426
34690
  var v26 = __toESM(require("valibot"));
34427
34691
  var JobPriceBinListParamsSchema = v26.looseObject({
34428
34692
  ...EdgeCacheParamsSchema.entries,
34429
- customerId: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number))),
34693
+ customerId: v26.optional(
34694
+ v26.pipe(
34695
+ v26.unknown(),
34696
+ v26.transform(Number),
34697
+ v26.integer(),
34698
+ v26.minValue(1),
34699
+ v26.maxValue(9007199254740991)
34700
+ )
34701
+ ),
34430
34702
  jobPriceLineUid: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number))),
34431
34703
  limit: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number))),
34432
34704
  offset: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number))),
@@ -34437,12 +34709,28 @@ var JobPriceBinListParamsSchema = v26.looseObject({
34437
34709
  v26.pipe(v26.unknown(), v26.transform(Number))
34438
34710
  ])
34439
34711
  ),
34440
- shipToId: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number)))
34712
+ shipToId: v26.optional(
34713
+ v26.pipe(
34714
+ v26.unknown(),
34715
+ v26.transform(Number),
34716
+ v26.integer(),
34717
+ v26.minValue(1),
34718
+ v26.maxValue(9007199254740991)
34719
+ )
34720
+ )
34441
34721
  });
34442
34722
  var JobPriceCustomerShiptoListParamsSchema = v26.looseObject({
34443
34723
  ...EdgeCacheParamsSchema.entries,
34444
34724
  companyId: v26.optional(v26.string()),
34445
- customerId: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number))),
34725
+ customerId: v26.optional(
34726
+ v26.pipe(
34727
+ v26.unknown(),
34728
+ v26.transform(Number),
34729
+ v26.integer(),
34730
+ v26.minValue(1),
34731
+ v26.maxValue(9007199254740991)
34732
+ )
34733
+ ),
34446
34734
  jobPriceHdrUid: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number))),
34447
34735
  limit: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number))),
34448
34736
  offset: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number))),
@@ -34453,7 +34741,15 @@ var JobPriceCustomerShiptoListParamsSchema = v26.looseObject({
34453
34741
  v26.pipe(v26.unknown(), v26.transform(Number))
34454
34742
  ])
34455
34743
  ),
34456
- shipToId: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number)))
34744
+ shipToId: v26.optional(
34745
+ v26.pipe(
34746
+ v26.unknown(),
34747
+ v26.transform(Number),
34748
+ v26.integer(),
34749
+ v26.minValue(1),
34750
+ v26.maxValue(9007199254740991)
34751
+ )
34752
+ )
34457
34753
  });
34458
34754
  var JobPriceHdrListParamsSchema = v26.looseObject({
34459
34755
  ...EdgeCacheParamsSchema.entries,
@@ -34501,10 +34797,24 @@ var PriceBookXLibraryListParamsSchema = v26.looseObject({
34501
34797
  var PriceEngineListParamsSchema = v26.looseObject({
34502
34798
  ...EdgeCacheParamsSchema.entries,
34503
34799
  cartItems: v26.optional(v26.string()),
34504
- customerId: v26.pipe(v26.unknown(), v26.transform(Number)),
34800
+ customerId: v26.pipe(
34801
+ v26.unknown(),
34802
+ v26.transform(Number),
34803
+ v26.integer(),
34804
+ v26.minValue(1),
34805
+ v26.maxValue(9007199254740991)
34806
+ ),
34505
34807
  itemId: v26.string(),
34506
34808
  quantity: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number))),
34507
- shipToId: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number))),
34809
+ shipToId: v26.optional(
34810
+ v26.pipe(
34811
+ v26.unknown(),
34812
+ v26.transform(Number),
34813
+ v26.integer(),
34814
+ v26.minValue(1),
34815
+ v26.maxValue(9007199254740991)
34816
+ )
34817
+ ),
34508
34818
  unitOfMeasure: v26.optional(v26.string())
34509
34819
  });
34510
34820
  var PriceFamilyListParamsSchema = v26.looseObject({
@@ -34551,7 +34861,15 @@ var PriceLibraryListParamsSchema = v26.looseObject({
34551
34861
  var PriceLibraryXCustXCmpyListParamsSchema = v26.looseObject({
34552
34862
  ...EdgeCacheParamsSchema.entries,
34553
34863
  companyId: v26.optional(v26.string()),
34554
- customerId: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number))),
34864
+ customerId: v26.optional(
34865
+ v26.pipe(
34866
+ v26.unknown(),
34867
+ v26.transform(Number),
34868
+ v26.integer(),
34869
+ v26.minValue(1),
34870
+ v26.maxValue(9007199254740991)
34871
+ )
34872
+ ),
34555
34873
  limit: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number))),
34556
34874
  offset: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number))),
34557
34875
  orderBy: v26.optional(v26.string()),
@@ -34576,17 +34894,41 @@ var PriceLibraryXShipToListParamsSchema = v26.looseObject({
34576
34894
  v26.pipe(v26.unknown(), v26.transform(Number))
34577
34895
  ])
34578
34896
  ),
34579
- shipToId: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number)))
34897
+ shipToId: v26.optional(
34898
+ v26.pipe(
34899
+ v26.unknown(),
34900
+ v26.transform(Number),
34901
+ v26.integer(),
34902
+ v26.minValue(1),
34903
+ v26.maxValue(9007199254740991)
34904
+ )
34905
+ )
34580
34906
  });
34581
34907
  var PriceMethodXCustomerListParamsSchema = v26.looseObject({
34582
34908
  ...EdgeCacheParamsSchema.entries,
34583
34909
  companyId: v26.optional(v26.string()),
34584
- customerId: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number))),
34910
+ customerId: v26.optional(
34911
+ v26.pipe(
34912
+ v26.unknown(),
34913
+ v26.transform(Number),
34914
+ v26.integer(),
34915
+ v26.minValue(1),
34916
+ v26.maxValue(9007199254740991)
34917
+ )
34918
+ ),
34585
34919
  limit: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number))),
34586
34920
  offset: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number))),
34587
34921
  orderBy: v26.optional(v26.string()),
34588
34922
  priceMethodUid: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number))),
34589
- shipToId: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number)))
34923
+ shipToId: v26.optional(
34924
+ v26.pipe(
34925
+ v26.unknown(),
34926
+ v26.transform(Number),
34927
+ v26.integer(),
34928
+ v26.minValue(1),
34929
+ v26.maxValue(9007199254740991)
34930
+ )
34931
+ )
34590
34932
  });
34591
34933
  var PricePageListParamsSchema = v26.looseObject({
34592
34934
  ...EdgeCacheParamsSchema.entries,
@@ -34602,7 +34944,15 @@ var PricePageListParamsSchema = v26.looseObject({
34602
34944
  v26.pipe(v26.unknown(), v26.transform(Number))
34603
34945
  ])
34604
34946
  ),
34605
- supplierId: v26.optional(v26.pipe(v26.unknown(), v26.transform(Number)))
34947
+ supplierId: v26.optional(
34948
+ v26.pipe(
34949
+ v26.unknown(),
34950
+ v26.transform(Number),
34951
+ v26.integer(),
34952
+ v26.minValue(1),
34953
+ v26.maxValue(9007199254740991)
34954
+ )
34955
+ )
34606
34956
  });
34607
34957
  var PricePageDealerCommissionListParamsSchema = v26.looseObject({
34608
34958
  ...EdgeCacheParamsSchema.entries,
@@ -38425,7 +38775,13 @@ var endpoints29 = [
38425
38775
  var v31 = __toESM(require("valibot"));
38426
38776
  var DistributorsListParamsSchema = v31.looseObject({
38427
38777
  ...EdgeCacheParamsSchema.entries,
38428
- customerId: v31.pipe(v31.unknown(), v31.transform(Number)),
38778
+ customerId: v31.pipe(
38779
+ v31.unknown(),
38780
+ v31.transform(Number),
38781
+ v31.integer(),
38782
+ v31.minValue(1),
38783
+ v31.maxValue(9007199254740991)
38784
+ ),
38429
38785
  limit: v31.optional(v31.pipe(v31.unknown(), v31.transform(Number))),
38430
38786
  offset: v31.optional(v31.pipe(v31.unknown(), v31.transform(Number))),
38431
38787
  orderBy: v31.optional(v31.string()),
@@ -38438,7 +38794,13 @@ var DistributorsListParamsSchema = v31.looseObject({
38438
38794
  });
38439
38795
  var InvProfileHdrListParamsSchema = v31.looseObject({
38440
38796
  ...EdgeCacheParamsSchema.entries,
38441
- customerId: v31.pipe(v31.unknown(), v31.transform(Number)),
38797
+ customerId: v31.pipe(
38798
+ v31.unknown(),
38799
+ v31.transform(Number),
38800
+ v31.integer(),
38801
+ v31.minValue(1),
38802
+ v31.maxValue(9007199254740991)
38803
+ ),
38442
38804
  limit: v31.optional(v31.pipe(v31.unknown(), v31.transform(Number))),
38443
38805
  offset: v31.optional(v31.pipe(v31.unknown(), v31.transform(Number))),
38444
38806
  orderBy: v31.optional(v31.string()),
@@ -38464,7 +38826,13 @@ var InvProfileHdrInvProfileLineListParamsSchema = v31.looseObject({
38464
38826
  });
38465
38827
  var ProductsListParamsSchema2 = v31.looseObject({
38466
38828
  ...EdgeCacheParamsSchema.entries,
38467
- customerId: v31.pipe(v31.unknown(), v31.transform(Number)),
38829
+ customerId: v31.pipe(
38830
+ v31.unknown(),
38831
+ v31.transform(Number),
38832
+ v31.integer(),
38833
+ v31.minValue(1),
38834
+ v31.maxValue(9007199254740991)
38835
+ ),
38468
38836
  distributorsUid: v31.pipe(v31.unknown(), v31.transform(Number)),
38469
38837
  limit: v31.optional(v31.pipe(v31.unknown(), v31.transform(Number))),
38470
38838
  offset: v31.optional(v31.pipe(v31.unknown(), v31.transform(Number))),
@@ -38480,7 +38848,13 @@ var ProductsListParamsSchema2 = v31.looseObject({
38480
38848
  });
38481
38849
  var ProductsFindListParamsSchema = v31.looseObject({
38482
38850
  ...EdgeCacheParamsSchema.entries,
38483
- customerId: v31.pipe(v31.unknown(), v31.transform(Number)),
38851
+ customerId: v31.pipe(
38852
+ v31.unknown(),
38853
+ v31.transform(Number),
38854
+ v31.integer(),
38855
+ v31.minValue(1),
38856
+ v31.maxValue(9007199254740991)
38857
+ ),
38484
38858
  limit: v31.optional(v31.pipe(v31.unknown(), v31.transform(Number))),
38485
38859
  offset: v31.optional(v31.pipe(v31.unknown(), v31.transform(Number))),
38486
38860
  prefix: v31.optional(v31.string()),
@@ -38507,7 +38881,13 @@ var RestockHdrListParamsSchema = v31.looseObject({
38507
38881
  });
38508
38882
  var SectionsListParamsSchema = v31.looseObject({
38509
38883
  ...EdgeCacheParamsSchema.entries,
38510
- customerId: v31.pipe(v31.unknown(), v31.transform(Number)),
38884
+ customerId: v31.pipe(
38885
+ v31.unknown(),
38886
+ v31.transform(Number),
38887
+ v31.integer(),
38888
+ v31.minValue(1),
38889
+ v31.maxValue(9007199254740991)
38890
+ ),
38511
38891
  limit: v31.optional(v31.pipe(v31.unknown(), v31.transform(Number))),
38512
38892
  offset: v31.optional(v31.pipe(v31.unknown(), v31.transform(Number))),
38513
38893
  orderBy: v31.optional(v31.string()),
@@ -38520,7 +38900,13 @@ var SectionsListParamsSchema = v31.looseObject({
38520
38900
  });
38521
38901
  var WarehouseListParamsSchema = v31.looseObject({
38522
38902
  ...EdgeCacheParamsSchema.entries,
38523
- customerId: v31.pipe(v31.unknown(), v31.transform(Number)),
38903
+ customerId: v31.pipe(
38904
+ v31.unknown(),
38905
+ v31.transform(Number),
38906
+ v31.integer(),
38907
+ v31.minValue(1),
38908
+ v31.maxValue(9007199254740991)
38909
+ ),
38524
38910
  limit: v31.optional(v31.pipe(v31.unknown(), v31.transform(Number))),
38525
38911
  offset: v31.optional(v31.pipe(v31.unknown(), v31.transform(Number))),
38526
38912
  orderBy: v31.optional(v31.string()),
@@ -40114,6 +40500,13 @@ function checkArgs(entry, args) {
40114
40500
  if (isBodyRefused(args.body !== void 0 && args.body !== null, entry.hasBody)) {
40115
40501
  throw invalid(noBodyMessage(entry.id), entry);
40116
40502
  }
40503
+ const refused = [args.query, args.pathParams, args.body].flatMap(addressIdRefusals);
40504
+ if (refused.length > 0) {
40505
+ throw invalid(
40506
+ `${entry.id}: not a usable P21 address id (a whole number at least 1): ${joinFrom(refused, ", ", 0)}`,
40507
+ entry
40508
+ );
40509
+ }
40117
40510
  }
40118
40511
  function fillPath(entry, pathParams) {
40119
40512
  const segments = {};
@@ -40190,6 +40583,7 @@ var CommonWhoamiResponseSchema = BaseResponseSchema(WhoamiDataSchema);
40190
40583
 
40191
40584
  // src/core/base-client.ts
40192
40585
  var v32 = __toESM(require("valibot"));
40586
+ var ADDRESS_ID_MESSAGE = "Invalid parameters: a customerId, shipToId, supplierId or vendorId was sent that is not a usable P21 address id";
40193
40587
  var BaseServiceClient = class {
40194
40588
  serviceName;
40195
40589
  http;
@@ -40248,6 +40642,7 @@ var BaseServiceClient = class {
40248
40642
  * @throws AugurError For HTTP errors (handled by HTTPClient interceptors)
40249
40643
  */
40250
40644
  async executeRequest(config, params, pathParams, query) {
40645
+ this.refuseUnusableAddressIds(config, [params, query, pathParams]);
40251
40646
  const endpoint = this.buildEndpointPath(config.path, pathParams, config.pathPatterns);
40252
40647
  try {
40253
40648
  const validatedParams = this.validateParameters(config, params);
@@ -40261,6 +40656,26 @@ var BaseServiceClient = class {
40261
40656
  throw error;
40262
40657
  }
40263
40658
  }
40659
+ /**
40660
+ * Refuse the request before it is made when a sent `customerId`, `shipToId`, `supplierId` or
40661
+ * `vendorId` (in the query, the path or a body's top level) is not a usable P21 address id
40662
+ * (atlas#95): "", "0", 0 and the like never reach a service as party 0. The decision is the
40663
+ * proved `paramRefused`; the error names the param, never its value.
40664
+ */
40665
+ refuseUnusableAddressIds(config, parts) {
40666
+ const refused = parts.flatMap(addressIdRefusals);
40667
+ if (refused.length === 0) return;
40668
+ throw new ValidationError({
40669
+ message: ADDRESS_ID_MESSAGE,
40670
+ service: this.serviceName,
40671
+ endpoint: config.path,
40672
+ validationErrors: refused.map((name) => ({
40673
+ path: [name],
40674
+ message: "Not a usable P21 address id: a whole number at least 1",
40675
+ code: "address_id"
40676
+ }))
40677
+ });
40678
+ }
40264
40679
  /**
40265
40680
  * GET one of the parameterless base endpoints (health-check, ping, whoami)
40266
40681
  */
@@ -42790,7 +43205,7 @@ function createCrossSiteAuthenticator(augurInfoToken) {
42790
43205
  }
42791
43206
 
42792
43207
  // src/index.ts
42793
- var VERSION = "2026.11.6";
43208
+ var VERSION = "2026.11.8";
42794
43209
  // Annotate the CommonJS export names for ESM import in node:
42795
43210
  0 && (module.exports = {
42796
43211
  AgrInfoClient,