@simpleapps-com/augur-api 2026.10.8 → 2026.10.10

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/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as AugurAPI } from './client-BhbdzKhy.mjs';
2
- export { a as AgrInfoClient, t as AgrInfoTypes, b as AgrIntClient, c as AgrIntTypes, d as AgrSiteClient, e as AgrSiteTypes, f as AgrWorkClient, g as AugurAPIConfig, h as AugurContext, i as AugurRequestConfig, j as AugurRequestError, k as AugurResponse, l as AvalaraClient, m as AvalaraTypes, B as BaseResponse, n as BaseResponseSchema, o as Basecamp2Client, p as Basecamp2Types, q as BrandFolderClient, r as BrandFolderTypes, C as CallArgs, s as CallResult, u as CommerceClient, v as CommerceTypes, w as ContextCreationError, x as CustomersClient, y as CustomersTypes, D as DiscoveryEndpoint, E as EndpointEntry, z as EndpointSearchResult, F as Envelope, G as GregorovichClient, H as GregorovichTypes, I as HealthCheckData, J as HealthCheckDataSchema, K as ItemsClient, L as ItemsTypes, M as JoomlaClient, N as JoomlaTypes, O as LegacyClient, P as LegacyTypes, Q as LogisticsClient, R as LogisticsTypes, S as OpenSearchClient, T as OpenSearchTypes, U as OrdersClient, V as OrdersTypes, W as P21ApisClient, X as P21ApisTypes, Y as P21CoreClient, Z as P21CoreTypes, _ as P21PimClient, $ as P21PimTypes, a0 as P21SismClient, a1 as P21SismTypes, a2 as PaginationParamsSchema, a3 as PaymentsClient, a4 as PaymentsTypes, a5 as PingData, a6 as PricingClient, a7 as PricingTypes, a8 as RequestConfig, a9 as ServiceMap, aa as ShippingClient, ab as ShippingTypes, ac as SmartyStreetsClient, ad as SmartyStreetsTypes, ae as UPSClient, af as UPSTypes, ag as VMIClient, ah as VMITypes, ai as WhoamiData, aj as WhoamiDataSchema } from './client-BhbdzKhy.mjs';
1
+ import { A as AugurAPI } from './client-JXkUhee3.mjs';
2
+ export { a as AgrInfoClient, t as AgrInfoTypes, b as AgrIntClient, c as AgrIntTypes, d as AgrSiteClient, e as AgrSiteTypes, f as AgrWorkClient, g as AugurAPIConfig, h as AugurContext, i as AugurRequestConfig, j as AugurRequestError, k as AugurResponse, l as AvalaraClient, m as AvalaraTypes, B as BaseResponse, n as BaseResponseSchema, o as Basecamp2Client, p as Basecamp2Types, q as BrandFolderClient, r as BrandFolderTypes, C as CallArgs, s as CallResult, u as CommerceClient, v as CommerceTypes, w as ContextCreationError, x as CustomersClient, y as CustomersTypes, D as DiscoveryEndpoint, E as EndpointEntry, z as EndpointSearchResult, F as Envelope, G as GregorovichClient, H as GregorovichTypes, I as HealthCheckData, J as HealthCheckDataSchema, K as ItemsClient, L as ItemsTypes, M as JoomlaClient, N as JoomlaTypes, O as Known, P as LegacyClient, Q as LegacyTypes, R as LogisticsClient, S as LogisticsTypes, T as OpenSearchClient, U as OpenSearchTypes, V as OrdersClient, W as OrdersTypes, X as P21ApisClient, Y as P21ApisTypes, Z as P21CoreClient, _ as P21CoreTypes, $ as P21PimClient, a0 as P21PimTypes, a1 as P21SismClient, a2 as P21SismTypes, a3 as PaginationParamsSchema, a4 as PaymentsClient, a5 as PaymentsTypes, a6 as PingData, a7 as PricingClient, a8 as PricingTypes, a9 as RequestConfig, aa as ServiceMap, ab as ShippingClient, ac as ShippingTypes, ad as SmartyStreetsClient, ae as SmartyStreetsTypes, af as UPSClient, ag as UPSTypes, ah as VMIClient, ai as VMITypes, aj as WhoamiData, ak as WhoamiDataSchema } from './client-JXkUhee3.mjs';
3
3
  import 'valibot';
4
4
 
5
5
  /**
@@ -204,6 +204,6 @@ declare namespace types {
204
204
  export type { types_AgrWorkClientSpec as AgrWorkClientSpec };
205
205
  }
206
206
 
207
- declare const VERSION = "2026.10.8";
207
+ declare const VERSION = "2026.10.10";
208
208
 
209
209
  export { types as AgrWorkTypes, AugurAPI, type AugurAPIError, AugurError, AuthenticationError, type CrossSiteAuthParams, type CrossSiteAuthResult, InvalidArgumentError, NotFoundError, RateLimitError, VERSION, ValidationError, authenticateUserForSite, createCrossSiteAuthenticator };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as AugurAPI } from './client-BhbdzKhy.js';
2
- export { a as AgrInfoClient, t as AgrInfoTypes, b as AgrIntClient, c as AgrIntTypes, d as AgrSiteClient, e as AgrSiteTypes, f as AgrWorkClient, g as AugurAPIConfig, h as AugurContext, i as AugurRequestConfig, j as AugurRequestError, k as AugurResponse, l as AvalaraClient, m as AvalaraTypes, B as BaseResponse, n as BaseResponseSchema, o as Basecamp2Client, p as Basecamp2Types, q as BrandFolderClient, r as BrandFolderTypes, C as CallArgs, s as CallResult, u as CommerceClient, v as CommerceTypes, w as ContextCreationError, x as CustomersClient, y as CustomersTypes, D as DiscoveryEndpoint, E as EndpointEntry, z as EndpointSearchResult, F as Envelope, G as GregorovichClient, H as GregorovichTypes, I as HealthCheckData, J as HealthCheckDataSchema, K as ItemsClient, L as ItemsTypes, M as JoomlaClient, N as JoomlaTypes, O as LegacyClient, P as LegacyTypes, Q as LogisticsClient, R as LogisticsTypes, S as OpenSearchClient, T as OpenSearchTypes, U as OrdersClient, V as OrdersTypes, W as P21ApisClient, X as P21ApisTypes, Y as P21CoreClient, Z as P21CoreTypes, _ as P21PimClient, $ as P21PimTypes, a0 as P21SismClient, a1 as P21SismTypes, a2 as PaginationParamsSchema, a3 as PaymentsClient, a4 as PaymentsTypes, a5 as PingData, a6 as PricingClient, a7 as PricingTypes, a8 as RequestConfig, a9 as ServiceMap, aa as ShippingClient, ab as ShippingTypes, ac as SmartyStreetsClient, ad as SmartyStreetsTypes, ae as UPSClient, af as UPSTypes, ag as VMIClient, ah as VMITypes, ai as WhoamiData, aj as WhoamiDataSchema } from './client-BhbdzKhy.js';
1
+ import { A as AugurAPI } from './client-JXkUhee3.js';
2
+ export { a as AgrInfoClient, t as AgrInfoTypes, b as AgrIntClient, c as AgrIntTypes, d as AgrSiteClient, e as AgrSiteTypes, f as AgrWorkClient, g as AugurAPIConfig, h as AugurContext, i as AugurRequestConfig, j as AugurRequestError, k as AugurResponse, l as AvalaraClient, m as AvalaraTypes, B as BaseResponse, n as BaseResponseSchema, o as Basecamp2Client, p as Basecamp2Types, q as BrandFolderClient, r as BrandFolderTypes, C as CallArgs, s as CallResult, u as CommerceClient, v as CommerceTypes, w as ContextCreationError, x as CustomersClient, y as CustomersTypes, D as DiscoveryEndpoint, E as EndpointEntry, z as EndpointSearchResult, F as Envelope, G as GregorovichClient, H as GregorovichTypes, I as HealthCheckData, J as HealthCheckDataSchema, K as ItemsClient, L as ItemsTypes, M as JoomlaClient, N as JoomlaTypes, O as Known, P as LegacyClient, Q as LegacyTypes, R as LogisticsClient, S as LogisticsTypes, T as OpenSearchClient, U as OpenSearchTypes, V as OrdersClient, W as OrdersTypes, X as P21ApisClient, Y as P21ApisTypes, Z as P21CoreClient, _ as P21CoreTypes, $ as P21PimClient, a0 as P21PimTypes, a1 as P21SismClient, a2 as P21SismTypes, a3 as PaginationParamsSchema, a4 as PaymentsClient, a5 as PaymentsTypes, a6 as PingData, a7 as PricingClient, a8 as PricingTypes, a9 as RequestConfig, aa as ServiceMap, ab as ShippingClient, ac as ShippingTypes, ad as SmartyStreetsClient, ae as SmartyStreetsTypes, af as UPSClient, ag as UPSTypes, ah as VMIClient, ai as VMITypes, aj as WhoamiData, ak as WhoamiDataSchema } from './client-JXkUhee3.js';
3
3
  import 'valibot';
4
4
 
5
5
  /**
@@ -204,6 +204,6 @@ declare namespace types {
204
204
  export type { types_AgrWorkClientSpec as AgrWorkClientSpec };
205
205
  }
206
206
 
207
- declare const VERSION = "2026.10.8";
207
+ declare const VERSION = "2026.10.10";
208
208
 
209
209
  export { types as AgrWorkTypes, AugurAPI, type AugurAPIError, AugurError, AuthenticationError, type CrossSiteAuthParams, type CrossSiteAuthResult, InvalidArgumentError, NotFoundError, RateLimitError, VERSION, ValidationError, authenticateUserForSite, createCrossSiteAuthenticator };
package/dist/index.js CHANGED
@@ -738,6 +738,24 @@ var RubricsListParamsSchema = v2.looseObject({
738
738
  ])
739
739
  )
740
740
  });
741
+ var SitesListParamsSchema = v2.looseObject({
742
+ ...EdgeCacheParamsSchema.entries,
743
+ legacyActiveCd: v2.optional(
744
+ v2.union([
745
+ v2.array(v2.pipe(v2.unknown(), v2.transform(Number))),
746
+ v2.pipe(v2.unknown(), v2.transform(Number))
747
+ ])
748
+ ),
749
+ limit: v2.optional(v2.pipe(v2.unknown(), v2.transform(Number))),
750
+ offset: v2.optional(v2.pipe(v2.unknown(), v2.transform(Number))),
751
+ orderBy: v2.optional(v2.string()),
752
+ statusCd: v2.optional(
753
+ v2.union([
754
+ v2.array(v2.pipe(v2.unknown(), v2.transform(Number))),
755
+ v2.pipe(v2.unknown(), v2.transform(Number))
756
+ ])
757
+ )
758
+ });
741
759
  var WorkflowsListParamsSchema = v2.looseObject({
742
760
  ...EdgeCacheParamsSchema.entries,
743
761
  limit: v2.optional(v2.pipe(v2.unknown(), v2.transform(Number))),
@@ -752,26 +770,16 @@ var WorkflowsListParamsSchema = v2.looseObject({
752
770
  )
753
771
  });
754
772
  var AkashaGenerateCreateDataSchema = v2.string();
755
- var ContextGetDataSchema = v2.union([
756
- v2.looseObject({
757
- siteId: v2.string(),
758
- domain: v2.nullable(v2.string()),
759
- uid: v2.number(),
760
- services: v2.array(
761
- v2.looseObject({ name: v2.string(), prefix: v2.optional(v2.nullable(v2.string())) })
762
- ),
763
- serviceCount: v2.number(),
764
- inactiveServices: v2.array(v2.string())
765
- }),
766
- v2.looseObject({
767
- siteId: v2.string(),
768
- domain: v2.nullable(v2.string()),
769
- uid: v2.number(),
770
- services: v2.array(v2.string()),
771
- serviceCount: v2.number(),
772
- inactiveServices: v2.array(v2.string())
773
- })
774
- ]);
773
+ var ContextGetDataSchema = v2.looseObject({
774
+ siteId: v2.string(),
775
+ domain: v2.nullable(v2.string()),
776
+ uid: v2.number(),
777
+ services: v2.array(
778
+ v2.looseObject({ name: v2.string(), prefix: v2.optional(v2.nullable(v2.string())) })
779
+ ),
780
+ serviceCount: v2.number(),
781
+ inactiveServices: v2.array(v2.string())
782
+ });
775
783
  var JoomlaGenerateCreateDataSchema = AkashaGenerateCreateDataSchema;
776
784
  var MicroservicesListDataSchema = v2.array(
777
785
  v2.looseObject({
@@ -825,6 +833,44 @@ var RubricsCreateDataSchema = v2.looseObject({
825
833
  var RubricsGetDataSchema = RubricsCreateDataSchema;
826
834
  var RubricsUpdateDataSchema = RubricsCreateDataSchema;
827
835
  var RubricsDeleteDataSchema = RubricsCreateDataSchema;
836
+ var SitesListDataSchema = v2.array(
837
+ v2.looseObject({
838
+ sitesUid: v2.number(),
839
+ siteId: v2.string(),
840
+ statusCd: v2.number(),
841
+ legacyActiveCd: v2.number(),
842
+ services: v2.array(v2.string()),
843
+ prophet21Version: v2.nullable(v2.string()),
844
+ sqlserverVersion: v2.nullable(v2.string()),
845
+ prophet21Hosting: v2.string(),
846
+ dateLastConnect: v2.string()
847
+ })
848
+ );
849
+ var SitesP21ApiCreateDataSchema = v2.looseObject({
850
+ valid: v2.boolean(),
851
+ siteId: v2.string(),
852
+ error: v2.string(),
853
+ tokenType: v2.nullable(v2.string()),
854
+ isAdmin: v2.boolean(),
855
+ user: v2.nullable(
856
+ v2.looseObject({
857
+ userId: v2.number(),
858
+ username: v2.string(),
859
+ email: v2.string(),
860
+ name: v2.string(),
861
+ roles: v2.array(v2.string())
862
+ })
863
+ ),
864
+ p21: v2.nullable(
865
+ v2.looseObject({
866
+ baseUrl: v2.string(),
867
+ username: v2.string(),
868
+ password: v2.string(),
869
+ clientSecret: v2.nullable(v2.string()),
870
+ writable: v2.boolean()
871
+ })
872
+ )
873
+ });
828
874
  var SitesStaffTokenCreateDataSchema = v2.looseObject({
829
875
  token: v2.string(),
830
876
  siteId: v2.string(),
@@ -910,7 +956,7 @@ var endpoints = [
910
956
  queryParams: [],
911
957
  edgeCache: true,
912
958
  responseSchema: ContextGetDataSchema,
913
- responseType: "scalar"
959
+ responseType: "object"
914
960
  },
915
961
  {
916
962
  method: "POST",
@@ -1044,6 +1090,30 @@ var endpoints = [
1044
1090
  responseSchema: RubricsDeleteDataSchema,
1045
1091
  responseType: "object"
1046
1092
  },
1093
+ {
1094
+ method: "GET",
1095
+ path: "/sites",
1096
+ chain: "sites",
1097
+ action: "list",
1098
+ aliases: [],
1099
+ pathParams: [],
1100
+ queryParams: ["legacyActiveCd", "limit", "offset", "orderBy", "statusCd"],
1101
+ edgeCache: true,
1102
+ responseSchema: SitesListDataSchema,
1103
+ responseType: "array"
1104
+ },
1105
+ {
1106
+ method: "POST",
1107
+ path: "/sites/p21-api",
1108
+ chain: "sites.p21Api",
1109
+ action: "create",
1110
+ aliases: [],
1111
+ pathParams: [],
1112
+ queryParams: [],
1113
+ edgeCache: false,
1114
+ responseSchema: SitesP21ApiCreateDataSchema,
1115
+ responseType: "object"
1116
+ },
1047
1117
  {
1048
1118
  method: "POST",
1049
1119
  path: "/sites/staff-token",
@@ -6839,8 +6909,8 @@ var CategoriesLookupGetDataSchema = v11.looseObject({
6839
6909
  itemCategoryUid: v11.number(),
6840
6910
  itemCategoryId: v11.string(),
6841
6911
  itemCategoryDesc: v11.string(),
6842
- categoryImage: v11.union([v11.string(), v11.literal(false)]),
6843
- categoryText: v11.union([v11.string(), v11.literal(false)]),
6912
+ categoryImage: v11.nullable(v11.string()),
6913
+ categoryText: v11.nullable(v11.string()),
6844
6914
  parentItemCategoryUid: v11.number(),
6845
6915
  nodeCount: v11.number(),
6846
6916
  fullPath: v11.nullable(v11.string()),
@@ -6849,71 +6919,37 @@ var CategoriesLookupGetDataSchema = v11.looseObject({
6849
6919
  subItemCategoryUids: v11.array(v11.number()),
6850
6920
  maxItems: v11.number(),
6851
6921
  itemsByCategory: v11.number(),
6852
- children: v11.union([
6853
- v11.array(
6854
- v11.looseObject({
6855
- itemCategoryUid: v11.number(),
6856
- itemCategoryId: v11.string(),
6857
- itemCategoryDesc: v11.string(),
6858
- statusCd: v11.number(),
6859
- fullPath: v11.nullable(v11.string()),
6860
- cleanPath: v11.nullable(v11.string()),
6861
- categoryImage: v11.union([v11.string(), v11.literal(false)]),
6862
- sequenceNo: v11.number(),
6863
- productCollection: v11.nullable(v11.string()),
6864
- itemCount: v11.number(),
6865
- userDefined: v11.optional(v11.nullable(v11.record(v11.string(), v11.string()))),
6866
- roomScene: v11.optional(
6867
- v11.union([
6868
- v11.nullable(
6869
- v11.looseObject({
6870
- id: v11.string(),
6871
- name: v11.nullable(v11.string()),
6872
- cdnLink: v11.string(),
6873
- sequenceNo: v11.number()
6874
- })
6875
- ),
6876
- v11.literal(false)
6877
- ])
6878
- ),
6879
- colorList: v11.optional(v11.nullable(v11.array(v11.string()))),
6880
- colorCount: v11.optional(v11.nullable(v11.number())),
6881
- bf: v11.optional(v11.nullable(v11.boolean()))
6882
- })
6883
- ),
6884
- v11.record(
6885
- v11.string(),
6886
- v11.looseObject({
6887
- itemCategoryUid: v11.number(),
6888
- itemCategoryId: v11.string(),
6889
- itemCategoryDesc: v11.string(),
6890
- statusCd: v11.number(),
6891
- fullPath: v11.nullable(v11.string()),
6892
- cleanPath: v11.nullable(v11.string()),
6893
- categoryImage: v11.union([v11.string(), v11.literal(false)]),
6894
- sequenceNo: v11.number(),
6895
- productCollection: v11.nullable(v11.string()),
6896
- itemCount: v11.number(),
6897
- userDefined: v11.optional(v11.nullable(v11.record(v11.string(), v11.string()))),
6898
- roomScene: v11.optional(
6899
- v11.union([
6900
- v11.nullable(
6901
- v11.looseObject({
6902
- id: v11.string(),
6903
- name: v11.nullable(v11.string()),
6904
- cdnLink: v11.string(),
6905
- sequenceNo: v11.number()
6906
- })
6907
- ),
6908
- v11.literal(false)
6909
- ])
6910
- ),
6911
- colorList: v11.optional(v11.nullable(v11.array(v11.string()))),
6912
- colorCount: v11.optional(v11.nullable(v11.number())),
6913
- bf: v11.optional(v11.nullable(v11.boolean()))
6914
- })
6915
- )
6916
- ]),
6922
+ children: v11.array(
6923
+ v11.looseObject({
6924
+ itemCategoryUid: v11.number(),
6925
+ itemCategoryId: v11.string(),
6926
+ itemCategoryDesc: v11.string(),
6927
+ statusCd: v11.number(),
6928
+ fullPath: v11.nullable(v11.string()),
6929
+ cleanPath: v11.nullable(v11.string()),
6930
+ categoryImage: v11.nullable(v11.string()),
6931
+ sequenceNo: v11.number(),
6932
+ productCollection: v11.nullable(v11.string()),
6933
+ itemCount: v11.number(),
6934
+ userDefined: v11.optional(v11.nullable(v11.record(v11.string(), v11.string()))),
6935
+ roomScene: v11.optional(
6936
+ v11.union([
6937
+ v11.nullable(
6938
+ v11.looseObject({
6939
+ id: v11.string(),
6940
+ name: v11.nullable(v11.string()),
6941
+ cdnLink: v11.string(),
6942
+ sequenceNo: v11.number()
6943
+ })
6944
+ ),
6945
+ v11.literal(false)
6946
+ ])
6947
+ ),
6948
+ colorList: v11.optional(v11.nullable(v11.array(v11.string()))),
6949
+ colorCount: v11.optional(v11.nullable(v11.number())),
6950
+ bf: v11.optional(v11.nullable(v11.boolean()))
6951
+ })
6952
+ ),
6917
6953
  childrenTotal: v11.number(),
6918
6954
  childrenCount: v11.number(),
6919
6955
  userDefined: v11.optional(v11.nullable(v11.record(v11.string(), v11.string())))
@@ -7005,6 +7041,7 @@ var CategoriesItemsListDataSchema = v11.looseObject({
7005
7041
  stockable: v11.nullable(v11.string()),
7006
7042
  sellable: v11.nullable(v11.string()),
7007
7043
  discontinued: v11.string(),
7044
+ deleteFlag: v11.nullable(v11.string()),
7008
7045
  unallocated: v11.number(),
7009
7046
  nextDueInPoDate: v11.nullable(v11.string()),
7010
7047
  qtyBackordered: v11.nullable(v11.number()),
@@ -7273,6 +7310,7 @@ var InvMastListDataSchema = v11.array(
7273
7310
  stockable: v11.nullable(v11.string()),
7274
7311
  sellable: v11.nullable(v11.string()),
7275
7312
  discontinued: v11.string(),
7313
+ deleteFlag: v11.nullable(v11.string()),
7276
7314
  unallocated: v11.number(),
7277
7315
  nextDueInPoDate: v11.nullable(v11.string()),
7278
7316
  qtyBackordered: v11.nullable(v11.number()),
@@ -7297,7 +7335,7 @@ var InvMastListDataSchema = v11.array(
7297
7335
  companySummary: v11.record(v11.string(), v11.number())
7298
7336
  }),
7299
7337
  categoryDisplayDescriptions: v11.record(v11.string(), v11.string()),
7300
- userDefined: v11.union([v11.record(v11.string(), v11.unknown()), v11.array(v11.unknown())]),
7338
+ userDefined: v11.record(v11.string(), v11.unknown()),
7301
7339
  invMastText: v11.array(
7302
7340
  v11.looseObject({
7303
7341
  sequenceNo: v11.number(),
@@ -7687,6 +7725,7 @@ var InvMastDocListDataSchema = v11.looseObject({
7687
7725
  stockable: v11.nullable(v11.string()),
7688
7726
  sellable: v11.nullable(v11.string()),
7689
7727
  discontinued: v11.string(),
7728
+ deleteFlag: v11.nullable(v11.string()),
7690
7729
  unallocated: v11.number(),
7691
7730
  nextDueInPoDate: v11.nullable(v11.string()),
7692
7731
  qtyBackordered: v11.nullable(v11.number()),
@@ -7711,7 +7750,7 @@ var InvMastDocListDataSchema = v11.looseObject({
7711
7750
  companySummary: v11.record(v11.string(), v11.number())
7712
7751
  }),
7713
7752
  categoryDisplayDescriptions: v11.record(v11.string(), v11.string()),
7714
- userDefined: v11.union([v11.record(v11.string(), v11.unknown()), v11.array(v11.unknown())]),
7753
+ userDefined: v11.record(v11.string(), v11.unknown()),
7715
7754
  invMastText: v11.array(
7716
7755
  v11.looseObject({
7717
7756
  sequenceNo: v11.number(),
@@ -7937,6 +7976,7 @@ var InvMastStockGetDataSchema = v11.looseObject({
7937
7976
  stockable: v11.nullable(v11.string()),
7938
7977
  sellable: v11.nullable(v11.string()),
7939
7978
  discontinued: v11.string(),
7979
+ deleteFlag: v11.nullable(v11.string()),
7940
7980
  unallocated: v11.number(),
7941
7981
  nextDueInPoDate: v11.nullable(v11.string()),
7942
7982
  qtyBackordered: v11.nullable(v11.number()),
@@ -10267,7 +10307,7 @@ var UsersVerifyPasswordCreateDataSchema = v12.looseObject({
10267
10307
  id: v12.number(),
10268
10308
  isVerified: v12.boolean(),
10269
10309
  username: v12.string(),
10270
- token: v12.union([v12.string(), v12.literal(false)]),
10310
+ token: v12.nullable(v12.string()),
10271
10311
  email: v12.string(),
10272
10312
  hasCustomerId: v12.boolean(),
10273
10313
  hasContactId: v12.boolean(),
@@ -12031,7 +12071,7 @@ var ItemSearchListDataSchema = v15.looseObject({
12031
12071
  itemId: v15.nullable(v15.string()),
12032
12072
  itemDesc: v15.nullable(v15.string()),
12033
12073
  score: v15.nullable(v15.number()),
12034
- sourceFields: v15.nullable(v15.union([v15.record(v15.string(), v15.unknown()), v15.array(v15.unknown())])),
12074
+ sourceFields: v15.nullable(v15.record(v15.string(), v15.unknown())),
12035
12075
  scoreInt: v15.number(),
12036
12076
  brandFolder: v15.optional(
12037
12077
  v15.nullable(
@@ -12058,7 +12098,7 @@ var ItemSearchListDataSchema = v15.looseObject({
12058
12098
  maxScore: v15.nullable(v15.number()),
12059
12099
  took: v15.number(),
12060
12100
  queryStringUid: v15.number(),
12061
- queryStringRedirectLink: v15.union([v15.string(), v15.literal(false)])
12101
+ queryStringRedirectLink: v15.nullable(v15.string())
12062
12102
  });
12063
12103
  var ItemSearchFacetsListDataSchema = v15.looseObject({
12064
12104
  meta: v15.looseObject({
@@ -16560,7 +16600,7 @@ var PriceEngineCreateDataSchema = v22.looseObject({
16560
16600
  var TaxEngineCreateDataSchema = v22.looseObject({
16561
16601
  taxEstimate: v22.number(),
16562
16602
  customerId: v22.number(),
16563
- postalCode: v22.union([v22.string(), v22.number()]),
16603
+ postalCode: v22.string(),
16564
16604
  taxRate: v22.number(),
16565
16605
  items: v22.array(
16566
16606
  v22.looseObject({
@@ -20355,34 +20395,32 @@ async function authenticateUserForSite(params) {
20355
20395
  siteId: "augur_info",
20356
20396
  bearerToken: augurInfoToken
20357
20397
  });
20358
- const authResponse = await augurInfoAPI.joomla.users.verifyPassword.create({
20398
+ const { data } = await augurInfoAPI.joomla.users.verifyPassword.create({
20359
20399
  username,
20360
20400
  password,
20361
20401
  siteId: targetSiteId
20362
20402
  // This tells the API to authenticate against the target site
20363
20403
  });
20364
- const data = authResponse.data;
20365
- if (data.isVerified) {
20366
- const targetSiteAPI = new AugurAPI({
20367
- siteId: targetSiteId,
20368
- bearerToken: data.token
20369
- });
20370
- return {
20371
- success: true,
20372
- userId: data.id?.toString(),
20373
- username: data.username,
20374
- email: data.email,
20375
- token: data.token,
20376
- targetSiteId,
20377
- targetSiteAPI
20378
- };
20379
- } else {
20380
- return {
20381
- success: false,
20382
- targetSiteId,
20383
- error: "Invalid username or password"
20384
- };
20404
+ if (!data.isVerified) {
20405
+ return { success: false, targetSiteId, error: "Invalid username or password" };
20406
+ }
20407
+ if (typeof data.token !== "string" || data.token === "") {
20408
+ return { success: false, targetSiteId, error: "Password verified, but no token was issued" };
20385
20409
  }
20410
+ const targetSiteAPI = new AugurAPI({
20411
+ siteId: targetSiteId,
20412
+ bearerToken: data.token
20413
+ });
20414
+ return {
20415
+ success: true,
20416
+ // `data` is typed, not validated at runtime: a missing id stays undefined, never "undefined"
20417
+ userId: typeof data.id === "number" ? String(data.id) : void 0,
20418
+ username: data.username,
20419
+ email: data.email,
20420
+ token: data.token,
20421
+ targetSiteId,
20422
+ targetSiteAPI
20423
+ };
20386
20424
  } catch (error) {
20387
20425
  return {
20388
20426
  success: false,
@@ -20403,7 +20441,7 @@ function createCrossSiteAuthenticator(augurInfoToken) {
20403
20441
  }
20404
20442
 
20405
20443
  // src/index.ts
20406
- var VERSION = "2026.10.8";
20444
+ var VERSION = "2026.10.10";
20407
20445
  // Annotate the CommonJS export names for ESM import in node:
20408
20446
  0 && (module.exports = {
20409
20447
  AgrInfoClient,