@simpleapps-com/augur-api 2026.10.15 → 2026.10.17
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/README.md +1 -1
- package/SKILL.md +1 -11
- package/dist/{client-DRN1bfy-.d.mts → client-CgfYhvRm.d.mts} +234 -39
- package/dist/{client-DRN1bfy-.d.ts → client-CgfYhvRm.d.ts} +234 -39
- package/dist/index.d.mts +31 -4
- package/dist/index.d.ts +31 -4
- package/dist/index.js +281 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +277 -17
- package/dist/index.mjs.map +1 -1
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -62,7 +62,7 @@ Each `llms.txt` lists all other available services for discovery.
|
|
|
62
62
|
## Authentication
|
|
63
63
|
|
|
64
64
|
All endpoints require:
|
|
65
|
-
- `siteId` - Site identifier
|
|
65
|
+
- `siteId` - Site identifier: lowercase letters, digits, `_` and `-` (the constructor and `setSiteId` throw `InvalidArgumentError` otherwise)
|
|
66
66
|
- `bearerToken` - Bearer authentication token
|
|
67
67
|
|
|
68
68
|
```typescript
|
package/SKILL.md
CHANGED
|
@@ -158,7 +158,7 @@ Every client also inherits `healthCheck`, `ping`, and `whoami` (each with a `…
|
|
|
158
158
|
|
|
159
159
|
All endpoints require:
|
|
160
160
|
- `bearerToken` - Bearer authentication token
|
|
161
|
-
- `siteId` - Site identifier
|
|
161
|
+
- `siteId` - Site identifier: lowercase letters, digits, `_` and `-` (the constructor and `setSiteId` throw `InvalidArgumentError` otherwise; `isSiteId`, `parseSiteId` and the `SiteId` type are exported)
|
|
162
162
|
|
|
163
163
|
The client handles headers automatically.
|
|
164
164
|
|
|
@@ -248,13 +248,3 @@ result.envelope?.data; // null envelope means the body isn't the 8-key envelope;
|
|
|
248
248
|
- Arguments are checked before any request (`InvalidArgumentError`). A 2xx never fails validation.
|
|
249
249
|
- Errors: 400 → `ValidationError`, 401 → `AuthenticationError`, 404 → `NotFoundError`, 429 → `RateLimitError`, anything else → `AugurError`. `error.endpoint` is the path template.
|
|
250
250
|
- Path values are percent-encoded per segment (`D/S` → `D%2FS`; letters, digits and `-._~!$&'()*+,;=:@` stay as they are). Pass raw values, never pre-encoded ones. Only routes whose backend decodes path values find values like `D/S`; elsewhere use the query param.
|
|
251
|
-
|
|
252
|
-
## Key Differences from Python Client
|
|
253
|
-
|
|
254
|
-
| Aspect | TypeScript | Python |
|
|
255
|
-
|--------|------------|--------|
|
|
256
|
-
| Naming | camelCase | snake_case |
|
|
257
|
-
| Service: brand-folder | api.brandFolder | api.brand_folder |
|
|
258
|
-
| Resource: inv-mast | .invMast | .inv_mast |
|
|
259
|
-
| Method: invMastUid | invMastUid | inv_mast_uid |
|
|
260
|
-
| Validation | Valibot | Pydantic v2 |
|
|
@@ -67,43 +67,6 @@ declare class ContextCreationError extends Error {
|
|
|
67
67
|
constructor(message: string, field?: string | undefined);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
/**
|
|
71
|
-
* `call()`: reach any registry endpoint by id, with no per-endpoint code.
|
|
72
|
-
*
|
|
73
|
-
* Arguments are checked against the registry entry before any I/O. The
|
|
74
|
-
* response is returned as-is: no schema validation, no JSON assumption, and a
|
|
75
|
-
* 2xx never fails. The contract is shared/REGISTRY.md.
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
/** What `call()` sends. Keys are sent as given; there is no case renaming. */
|
|
79
|
-
interface CallArgs {
|
|
80
|
-
/** Exactly the entry's `pathParams` */
|
|
81
|
-
pathParams?: Record<string, string | number>;
|
|
82
|
-
/** A subset of the entry's `queryParams`, plus `edgeCache` where the entry allows it */
|
|
83
|
-
query?: Record<string, unknown>;
|
|
84
|
-
/** Only for entries with `hasBody` */
|
|
85
|
-
body?: unknown;
|
|
86
|
-
}
|
|
87
|
-
/** The standard 8-key response envelope. Values are passed through unchecked. */
|
|
88
|
-
interface Envelope {
|
|
89
|
-
count: unknown;
|
|
90
|
-
data: unknown;
|
|
91
|
-
message: unknown;
|
|
92
|
-
options: unknown;
|
|
93
|
-
params: unknown;
|
|
94
|
-
status: unknown;
|
|
95
|
-
total: unknown;
|
|
96
|
-
totalResults: unknown;
|
|
97
|
-
}
|
|
98
|
-
/** A 2xx response. */
|
|
99
|
-
interface CallResult {
|
|
100
|
-
httpStatus: number;
|
|
101
|
-
/** Set when `body` is an object with all 8 envelope keys, otherwise `null` */
|
|
102
|
-
envelope: Envelope | null;
|
|
103
|
-
/** Parsed JSON, or the raw text when the body isn't JSON (`''` when empty) */
|
|
104
|
-
body: unknown;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
70
|
/** One path or query param of an endpoint. */
|
|
108
71
|
interface EndpointParam {
|
|
109
72
|
/** Where the value goes */
|
|
@@ -140,6 +103,49 @@ interface EndpointEntry {
|
|
|
140
103
|
/** Omitted unless set; a read is `readOnly ?? method === 'GET'` */
|
|
141
104
|
readonly readOnly?: boolean;
|
|
142
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Whether an entry is a read: `readOnly ?? method === 'GET'` (shared/REGISTRY.md → `readOnly` and
|
|
108
|
+
* `isReadOnly`). `readOnly` marks query-style POSTs (searches, lookups, quotes); the generator sets it
|
|
109
|
+
* only on a POST, and then to true. Consumers MUST route reads through this, never through `method`.
|
|
110
|
+
*/
|
|
111
|
+
declare function isReadOnly(entry: Pick<EndpointEntry, 'method' | 'readOnly'>): boolean;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* `call()`: reach any registry endpoint by id, with no per-endpoint code.
|
|
115
|
+
*
|
|
116
|
+
* Arguments are checked against the registry entry before any I/O. The
|
|
117
|
+
* response is returned as-is: no schema validation, no JSON assumption, and a
|
|
118
|
+
* 2xx never fails. The contract is shared/REGISTRY.md.
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
/** What `call()` sends. Keys are sent as given; there is no case renaming. */
|
|
122
|
+
interface CallArgs {
|
|
123
|
+
/** Exactly the entry's `pathParams` */
|
|
124
|
+
pathParams?: Record<string, string | number>;
|
|
125
|
+
/** A subset of the entry's `queryParams`, plus `edgeCache` where the entry allows it */
|
|
126
|
+
query?: Record<string, unknown>;
|
|
127
|
+
/** Only for entries with `hasBody` */
|
|
128
|
+
body?: unknown;
|
|
129
|
+
}
|
|
130
|
+
/** The standard 8-key response envelope. Values are passed through unchecked. */
|
|
131
|
+
interface Envelope {
|
|
132
|
+
count: unknown;
|
|
133
|
+
data: unknown;
|
|
134
|
+
message: unknown;
|
|
135
|
+
options: unknown;
|
|
136
|
+
params: unknown;
|
|
137
|
+
status: unknown;
|
|
138
|
+
total: unknown;
|
|
139
|
+
totalResults: unknown;
|
|
140
|
+
}
|
|
141
|
+
/** A 2xx response. */
|
|
142
|
+
interface CallResult {
|
|
143
|
+
httpStatus: number;
|
|
144
|
+
/** Set when `body` is an object with all 8 envelope keys, otherwise `null` */
|
|
145
|
+
envelope: Envelope | null;
|
|
146
|
+
/** Parsed JSON, or the raw text when the body isn't JSON (`''` when empty) */
|
|
147
|
+
body: unknown;
|
|
148
|
+
}
|
|
143
149
|
|
|
144
150
|
/** A response as text, before any JSON parsing (what `call()` builds its result from). */
|
|
145
151
|
interface RawResponse {
|
|
@@ -15902,6 +15908,38 @@ interface LegacyStateGetParams extends EdgeCacheParams {
|
|
|
15902
15908
|
/** State Abbreviation */
|
|
15903
15909
|
twoLetterCode?: string;
|
|
15904
15910
|
}
|
|
15911
|
+
/** Params for GET /saved-carts */
|
|
15912
|
+
interface SavedCartsListParams extends EdgeCacheParams {
|
|
15913
|
+
/** Maximum rows to return (Default: 10) */
|
|
15914
|
+
limit?: number;
|
|
15915
|
+
/** Starting offset results (Default: 0) */
|
|
15916
|
+
offset?: number;
|
|
15917
|
+
/** Order By (Default: user_id|ASC) */
|
|
15918
|
+
orderBy?: string;
|
|
15919
|
+
/**
|
|
15920
|
+
* Status code or list of codes (700=DELETE, 704=ACTIVE, 705=INACTIVE), sent comma-joined
|
|
15921
|
+
* (704,705); -1 for every status. Default: every status
|
|
15922
|
+
*/
|
|
15923
|
+
statusCd?: number | number[];
|
|
15924
|
+
/** Joomla user ID (joomla.users.id) that owns the cart */
|
|
15925
|
+
userId?: number;
|
|
15926
|
+
}
|
|
15927
|
+
/** Params for GET /saved-carts/{id} */
|
|
15928
|
+
type SavedCartsGetParams = EdgeCacheParams;
|
|
15929
|
+
/** Params for GET /saved-carts/{id}/items */
|
|
15930
|
+
interface SavedCartsItemsListParams extends EdgeCacheParams {
|
|
15931
|
+
/** Maximum rows to return (Default: 10) */
|
|
15932
|
+
limit?: number;
|
|
15933
|
+
/** Starting offset results (Default: 0) */
|
|
15934
|
+
offset?: number;
|
|
15935
|
+
/** Order By (Default: saved_carts_items_uid|ASC) */
|
|
15936
|
+
orderBy?: string;
|
|
15937
|
+
/**
|
|
15938
|
+
* Status code or list of codes (700=DELETE, 704=ACTIVE, 705=INACTIVE), sent comma-joined
|
|
15939
|
+
* (704,705); -1 for every status. Default: every status
|
|
15940
|
+
*/
|
|
15941
|
+
statusCd?: number | number[];
|
|
15942
|
+
}
|
|
15905
15943
|
/**
|
|
15906
15944
|
* Shape of `inventorySupplier` (MINIMUM fields; reused wherever the same shape appears)
|
|
15907
15945
|
* The item's suppliers (not deleted)
|
|
@@ -16783,6 +16821,86 @@ interface LegacyStateUpdateBody {
|
|
|
16783
16821
|
* Returned by: api.legacy.legacy.state.delete(stateUid)
|
|
16784
16822
|
*/
|
|
16785
16823
|
type LegacyStateDeleteData = LegacyStateListItem;
|
|
16824
|
+
/**
|
|
16825
|
+
* List Saved Carts
|
|
16826
|
+
* Response data for GET /saved-carts — MINIMUM fields, extras pass through
|
|
16827
|
+
*
|
|
16828
|
+
* Returned by: api.legacy.savedCarts.list(params) (array items)
|
|
16829
|
+
* Returned by: api.legacy.savedCarts.get(id)
|
|
16830
|
+
*/
|
|
16831
|
+
interface SavedCartsListItem {
|
|
16832
|
+
/** Saved cart ID; the key used to address a cart */
|
|
16833
|
+
id: number;
|
|
16834
|
+
/** Joomla user ID (joomla.users.id) that owns the cart */
|
|
16835
|
+
userId: number;
|
|
16836
|
+
/** Cart ID from the previous saved-cart system */
|
|
16837
|
+
oldId: number | null;
|
|
16838
|
+
/** Cart name, unique per user (max 40 chars) */
|
|
16839
|
+
cartName: string;
|
|
16840
|
+
/** Serialized cart data from the old site */
|
|
16841
|
+
cartData: string | null;
|
|
16842
|
+
/** Serialized item list from the old site */
|
|
16843
|
+
itemList: string | null;
|
|
16844
|
+
/** Shared flag (1 = shared with other users, 0 = private) */
|
|
16845
|
+
shared: number | null;
|
|
16846
|
+
/** Date the cart was last modified (mysql-datetime, e.g. 2025-07-30 15:50:49) */
|
|
16847
|
+
dateLastModified: string;
|
|
16848
|
+
/** Date the owner was last notified about the cart (mysql-datetime, e.g. 2025-07-30 15:50:49) */
|
|
16849
|
+
dateLastNotify: string | null;
|
|
16850
|
+
/** Date the cart was created (mysql-datetime, e.g. 2025-07-30 15:50:49) */
|
|
16851
|
+
dateCreated: string | null;
|
|
16852
|
+
/** Update code (1185 = Import Complete) */
|
|
16853
|
+
updateCd: number;
|
|
16854
|
+
/** Status code (704 = Active, 705 = Inactive, 700 = Deleted) */
|
|
16855
|
+
statusCd: number;
|
|
16856
|
+
/** Process code (704 = Active, 1185 = Import Complete) */
|
|
16857
|
+
processCd: number;
|
|
16858
|
+
[key: string]: unknown;
|
|
16859
|
+
}
|
|
16860
|
+
/** Returned by: api.legacy.savedCarts.list(params) */
|
|
16861
|
+
type SavedCartsListData = SavedCartsListItem[];
|
|
16862
|
+
/**
|
|
16863
|
+
* Get Saved Cart
|
|
16864
|
+
* Response data for GET /saved-carts/{id} — MINIMUM fields, extras pass through
|
|
16865
|
+
*
|
|
16866
|
+
* Returned by: api.legacy.savedCarts.get(id)
|
|
16867
|
+
*/
|
|
16868
|
+
type SavedCartsGetData = SavedCartsListItem;
|
|
16869
|
+
/**
|
|
16870
|
+
* List Saved Cart Lines
|
|
16871
|
+
* Response data for GET /saved-carts/{id}/items — MINIMUM fields, extras pass through
|
|
16872
|
+
*
|
|
16873
|
+
* Returned by: api.legacy.savedCarts.items.list(id, params) (array items)
|
|
16874
|
+
*/
|
|
16875
|
+
interface SavedCartsItemsListItem {
|
|
16876
|
+
/** Saved cart (saved_carts.id) the line belongs to */
|
|
16877
|
+
savedCartsId: number;
|
|
16878
|
+
/** Line option key data from the old site (max 8000 chars) */
|
|
16879
|
+
keyData: string | null;
|
|
16880
|
+
/** Item (inv_mast) on the line */
|
|
16881
|
+
invMastUid: number | null;
|
|
16882
|
+
/** Quantity on the line */
|
|
16883
|
+
qty: number | null;
|
|
16884
|
+
/** Unit of measure for the quantity (max 8 chars) */
|
|
16885
|
+
uom: string | null;
|
|
16886
|
+
/** Serialized extra line data from the old site */
|
|
16887
|
+
otherData: string | null;
|
|
16888
|
+
/** Line option key names from the old site (max 8000 chars) */
|
|
16889
|
+
keyNames: string | null;
|
|
16890
|
+
/** Display order of the line in the cart */
|
|
16891
|
+
ordering: number | null;
|
|
16892
|
+
/** Saved cart line ID (32-character string) (max 32 chars) */
|
|
16893
|
+
savedCartsItemsUid: string;
|
|
16894
|
+
/** Update code (1185 = Import Complete) */
|
|
16895
|
+
updateCd: number;
|
|
16896
|
+
/** Status code (704 = Active, 705 = Inactive, 700 = Deleted) */
|
|
16897
|
+
statusCd: number;
|
|
16898
|
+
/** Process code (704 = Active, 1185 = Import Complete) */
|
|
16899
|
+
processCd: number;
|
|
16900
|
+
[key: string]: unknown;
|
|
16901
|
+
}
|
|
16902
|
+
/** Returned by: api.legacy.savedCarts.items.list(id, params) */
|
|
16903
|
+
type SavedCartsItemsListData = SavedCartsItemsListItem[];
|
|
16786
16904
|
interface LegacyClientSpec {
|
|
16787
16905
|
invMast: {
|
|
16788
16906
|
alsoBought: {
|
|
@@ -17090,6 +17208,62 @@ interface LegacyClientSpec {
|
|
|
17090
17208
|
delete: (stateUid: number) => Promise<BaseResponse$1<LegacyStateDeleteData>>;
|
|
17091
17209
|
};
|
|
17092
17210
|
};
|
|
17211
|
+
savedCarts: {
|
|
17212
|
+
/**
|
|
17213
|
+
* List Saved Carts
|
|
17214
|
+
* Call: api.legacy.savedCarts.list(params)
|
|
17215
|
+
*
|
|
17216
|
+
* List saved carts from the old site
|
|
17217
|
+
*
|
|
17218
|
+
* Errors:
|
|
17219
|
+
* 400: userId is not a number, or orderBy is not one saved_carts column with ASC or DESC.
|
|
17220
|
+
*
|
|
17221
|
+
* GET https://legacy.augur-api.com/saved-carts
|
|
17222
|
+
* Contract: https://legacy.augur-api.com/openapi.json#/paths/~1saved-carts/get
|
|
17223
|
+
*
|
|
17224
|
+
* @param params SavedCartsListParams (query string)
|
|
17225
|
+
* @returns BaseResponse whose `data` is SavedCartsListData
|
|
17226
|
+
*/
|
|
17227
|
+
list: (params?: SavedCartsListParams) => Promise<BaseResponse$1<SavedCartsListData>>;
|
|
17228
|
+
/**
|
|
17229
|
+
* Get Saved Cart
|
|
17230
|
+
* Call: api.legacy.savedCarts.get(id)
|
|
17231
|
+
*
|
|
17232
|
+
* Get one saved cart from the old site
|
|
17233
|
+
*
|
|
17234
|
+
* Errors:
|
|
17235
|
+
* 400: id is below 1.
|
|
17236
|
+
* 404: No saved cart with this id.
|
|
17237
|
+
*
|
|
17238
|
+
* GET https://legacy.augur-api.com/saved-carts/{id}
|
|
17239
|
+
* Contract: https://legacy.augur-api.com/openapi.json#/paths/~1saved-carts~1{id}/get
|
|
17240
|
+
*
|
|
17241
|
+
* @param id Saved cart ID (saved_carts.id)
|
|
17242
|
+
* @param params SavedCartsGetParams (query string)
|
|
17243
|
+
* @returns BaseResponse whose `data` is SavedCartsGetData
|
|
17244
|
+
*/
|
|
17245
|
+
get: (id: number, params?: SavedCartsGetParams) => Promise<BaseResponse$1<SavedCartsGetData>>;
|
|
17246
|
+
items: {
|
|
17247
|
+
/**
|
|
17248
|
+
* List Saved Cart Lines
|
|
17249
|
+
* Call: api.legacy.savedCarts.items.list(id, params)
|
|
17250
|
+
*
|
|
17251
|
+
* List the lines of one saved cart from the old site
|
|
17252
|
+
*
|
|
17253
|
+
* Errors:
|
|
17254
|
+
* 400: id is below 1, or orderBy is not one saved_carts_items column with ASC or DESC.
|
|
17255
|
+
* 404: No saved cart with this id.
|
|
17256
|
+
*
|
|
17257
|
+
* GET https://legacy.augur-api.com/saved-carts/{id}/items
|
|
17258
|
+
* Contract: https://legacy.augur-api.com/openapi.json#/paths/~1saved-carts~1{id}~1items/get
|
|
17259
|
+
*
|
|
17260
|
+
* @param id Saved cart ID (saved_carts.id) whose lines to list
|
|
17261
|
+
* @param params SavedCartsItemsListParams (query string)
|
|
17262
|
+
* @returns BaseResponse whose `data` is SavedCartsItemsListData
|
|
17263
|
+
*/
|
|
17264
|
+
list: (id: number, params?: SavedCartsItemsListParams) => Promise<BaseResponse$1<SavedCartsItemsListData>>;
|
|
17265
|
+
};
|
|
17266
|
+
};
|
|
17093
17267
|
}
|
|
17094
17268
|
|
|
17095
17269
|
type types$j_InvMastAlsoBoughtListData = InvMastAlsoBoughtListData;
|
|
@@ -17142,8 +17316,16 @@ type types$j_LegacyStateListItem = LegacyStateListItem;
|
|
|
17142
17316
|
type types$j_LegacyStateListParams = LegacyStateListParams;
|
|
17143
17317
|
type types$j_LegacyStateUpdateBody = LegacyStateUpdateBody;
|
|
17144
17318
|
type types$j_LegacyStateUpdateData = LegacyStateUpdateData;
|
|
17319
|
+
type types$j_SavedCartsGetData = SavedCartsGetData;
|
|
17320
|
+
type types$j_SavedCartsGetParams = SavedCartsGetParams;
|
|
17321
|
+
type types$j_SavedCartsItemsListData = SavedCartsItemsListData;
|
|
17322
|
+
type types$j_SavedCartsItemsListItem = SavedCartsItemsListItem;
|
|
17323
|
+
type types$j_SavedCartsItemsListParams = SavedCartsItemsListParams;
|
|
17324
|
+
type types$j_SavedCartsListData = SavedCartsListData;
|
|
17325
|
+
type types$j_SavedCartsListItem = SavedCartsListItem;
|
|
17326
|
+
type types$j_SavedCartsListParams = SavedCartsListParams;
|
|
17145
17327
|
declare namespace types$j {
|
|
17146
|
-
export type { types$j_InvMastAlsoBoughtListData as InvMastAlsoBoughtListData, types$j_InvMastAlsoBoughtListItem as InvMastAlsoBoughtListItem, types$j_InvMastAlsoBoughtListItemAttributesItem as InvMastAlsoBoughtListItemAttributesItem, types$j_InvMastAlsoBoughtListItemBrandFolder as InvMastAlsoBoughtListItemBrandFolder, types$j_InvMastAlsoBoughtListItemBrandFolderAssetsItem as InvMastAlsoBoughtListItemBrandFolderAssetsItem, types$j_InvMastAlsoBoughtListItemFullSizedSamples as InvMastAlsoBoughtListItemFullSizedSamples, types$j_InvMastAlsoBoughtListItemInvMastTextItem as InvMastAlsoBoughtListItemInvMastTextItem, types$j_InvMastAlsoBoughtListItemInventorySupplierItem as InvMastAlsoBoughtListItemInventorySupplierItem, types$j_InvMastAlsoBoughtListItemItemUomItem as InvMastAlsoBoughtListItemItemUomItem, types$j_InvMastAlsoBoughtListItemLanguagesItem as InvMastAlsoBoughtListItemLanguagesItem, types$j_InvMastAlsoBoughtListItemLegacyPersonalizationItem as InvMastAlsoBoughtListItemLegacyPersonalizationItem, types$j_InvMastAlsoBoughtListItemLegacyPersonalizationItemItemOptionsHdr as InvMastAlsoBoughtListItemLegacyPersonalizationItemItemOptionsHdr, types$j_InvMastAlsoBoughtListItemLegacyPersonalizationItemItemPersonalizationLinesItem as InvMastAlsoBoughtListItemLegacyPersonalizationItemItemPersonalizationLinesItem, types$j_InvMastAlsoBoughtListItemLegacyPersonalizationItemItemPersonalizationLinesItemItemOptionsLine as InvMastAlsoBoughtListItemLegacyPersonalizationItemItemPersonalizationLinesItemItemOptionsLine, types$j_InvMastAlsoBoughtListItemStock as InvMastAlsoBoughtListItemStock, types$j_InvMastAlsoBoughtListItemStockStockDataItem as InvMastAlsoBoughtListItemStockStockDataItem, types$j_InvMastAlsoBoughtListParams as InvMastAlsoBoughtListParams, types$j_InvMastTagsCreateBody as InvMastTagsCreateBody, types$j_InvMastTagsCreateData as InvMastTagsCreateData, types$j_InvMastTagsDeleteData as InvMastTagsDeleteData, types$j_InvMastTagsGetData as InvMastTagsGetData, types$j_InvMastTagsGetParams as InvMastTagsGetParams, types$j_InvMastTagsListData as InvMastTagsListData, types$j_InvMastTagsListItem as InvMastTagsListItem, types$j_InvMastTagsListParams as InvMastTagsListParams, types$j_InvMastTagsUpdateBody as InvMastTagsUpdateBody, types$j_InvMastTagsUpdateData as InvMastTagsUpdateData, types$j_InvMastWebDescCreateBody as InvMastWebDescCreateBody, types$j_InvMastWebDescCreateData as InvMastWebDescCreateData, types$j_InvMastWebDescDeleteData as InvMastWebDescDeleteData, types$j_InvMastWebDescGetData as InvMastWebDescGetData, types$j_InvMastWebDescGetParams as InvMastWebDescGetParams, types$j_InvMastWebDescListData as InvMastWebDescListData, types$j_InvMastWebDescListItem as InvMastWebDescListItem, types$j_InvMastWebDescListParams as InvMastWebDescListParams, types$j_InvMastWebDescUpdateBody as InvMastWebDescUpdateBody, types$j_InvMastWebDescUpdateData as InvMastWebDescUpdateData, types$j_ItemCategoryGetData as ItemCategoryGetData, types$j_ItemCategoryGetParams as ItemCategoryGetParams, types$j_LegacyClientSpec as LegacyClientSpec, types$j_LegacyStateCreateBody as LegacyStateCreateBody, types$j_LegacyStateCreateData as LegacyStateCreateData, types$j_LegacyStateDeleteData as LegacyStateDeleteData, types$j_LegacyStateGetData as LegacyStateGetData, types$j_LegacyStateGetParams as LegacyStateGetParams, types$j_LegacyStateListData as LegacyStateListData, types$j_LegacyStateListItem as LegacyStateListItem, types$j_LegacyStateListParams as LegacyStateListParams, types$j_LegacyStateUpdateBody as LegacyStateUpdateBody, types$j_LegacyStateUpdateData as LegacyStateUpdateData };
|
|
17328
|
+
export type { types$j_InvMastAlsoBoughtListData as InvMastAlsoBoughtListData, types$j_InvMastAlsoBoughtListItem as InvMastAlsoBoughtListItem, types$j_InvMastAlsoBoughtListItemAttributesItem as InvMastAlsoBoughtListItemAttributesItem, types$j_InvMastAlsoBoughtListItemBrandFolder as InvMastAlsoBoughtListItemBrandFolder, types$j_InvMastAlsoBoughtListItemBrandFolderAssetsItem as InvMastAlsoBoughtListItemBrandFolderAssetsItem, types$j_InvMastAlsoBoughtListItemFullSizedSamples as InvMastAlsoBoughtListItemFullSizedSamples, types$j_InvMastAlsoBoughtListItemInvMastTextItem as InvMastAlsoBoughtListItemInvMastTextItem, types$j_InvMastAlsoBoughtListItemInventorySupplierItem as InvMastAlsoBoughtListItemInventorySupplierItem, types$j_InvMastAlsoBoughtListItemItemUomItem as InvMastAlsoBoughtListItemItemUomItem, types$j_InvMastAlsoBoughtListItemLanguagesItem as InvMastAlsoBoughtListItemLanguagesItem, types$j_InvMastAlsoBoughtListItemLegacyPersonalizationItem as InvMastAlsoBoughtListItemLegacyPersonalizationItem, types$j_InvMastAlsoBoughtListItemLegacyPersonalizationItemItemOptionsHdr as InvMastAlsoBoughtListItemLegacyPersonalizationItemItemOptionsHdr, types$j_InvMastAlsoBoughtListItemLegacyPersonalizationItemItemPersonalizationLinesItem as InvMastAlsoBoughtListItemLegacyPersonalizationItemItemPersonalizationLinesItem, types$j_InvMastAlsoBoughtListItemLegacyPersonalizationItemItemPersonalizationLinesItemItemOptionsLine as InvMastAlsoBoughtListItemLegacyPersonalizationItemItemPersonalizationLinesItemItemOptionsLine, types$j_InvMastAlsoBoughtListItemStock as InvMastAlsoBoughtListItemStock, types$j_InvMastAlsoBoughtListItemStockStockDataItem as InvMastAlsoBoughtListItemStockStockDataItem, types$j_InvMastAlsoBoughtListParams as InvMastAlsoBoughtListParams, types$j_InvMastTagsCreateBody as InvMastTagsCreateBody, types$j_InvMastTagsCreateData as InvMastTagsCreateData, types$j_InvMastTagsDeleteData as InvMastTagsDeleteData, types$j_InvMastTagsGetData as InvMastTagsGetData, types$j_InvMastTagsGetParams as InvMastTagsGetParams, types$j_InvMastTagsListData as InvMastTagsListData, types$j_InvMastTagsListItem as InvMastTagsListItem, types$j_InvMastTagsListParams as InvMastTagsListParams, types$j_InvMastTagsUpdateBody as InvMastTagsUpdateBody, types$j_InvMastTagsUpdateData as InvMastTagsUpdateData, types$j_InvMastWebDescCreateBody as InvMastWebDescCreateBody, types$j_InvMastWebDescCreateData as InvMastWebDescCreateData, types$j_InvMastWebDescDeleteData as InvMastWebDescDeleteData, types$j_InvMastWebDescGetData as InvMastWebDescGetData, types$j_InvMastWebDescGetParams as InvMastWebDescGetParams, types$j_InvMastWebDescListData as InvMastWebDescListData, types$j_InvMastWebDescListItem as InvMastWebDescListItem, types$j_InvMastWebDescListParams as InvMastWebDescListParams, types$j_InvMastWebDescUpdateBody as InvMastWebDescUpdateBody, types$j_InvMastWebDescUpdateData as InvMastWebDescUpdateData, types$j_ItemCategoryGetData as ItemCategoryGetData, types$j_ItemCategoryGetParams as ItemCategoryGetParams, types$j_LegacyClientSpec as LegacyClientSpec, types$j_LegacyStateCreateBody as LegacyStateCreateBody, types$j_LegacyStateCreateData as LegacyStateCreateData, types$j_LegacyStateDeleteData as LegacyStateDeleteData, types$j_LegacyStateGetData as LegacyStateGetData, types$j_LegacyStateGetParams as LegacyStateGetParams, types$j_LegacyStateListData as LegacyStateListData, types$j_LegacyStateListItem as LegacyStateListItem, types$j_LegacyStateListParams as LegacyStateListParams, types$j_LegacyStateUpdateBody as LegacyStateUpdateBody, types$j_LegacyStateUpdateData as LegacyStateUpdateData, types$j_SavedCartsGetData as SavedCartsGetData, types$j_SavedCartsGetParams as SavedCartsGetParams, types$j_SavedCartsItemsListData as SavedCartsItemsListData, types$j_SavedCartsItemsListItem as SavedCartsItemsListItem, types$j_SavedCartsItemsListParams as SavedCartsItemsListParams, types$j_SavedCartsListData as SavedCartsListData, types$j_SavedCartsListItem as SavedCartsListItem, types$j_SavedCartsListParams as SavedCartsListParams };
|
|
17147
17329
|
}
|
|
17148
17330
|
|
|
17149
17331
|
/**
|
|
@@ -17200,15 +17382,21 @@ declare namespace types$j {
|
|
|
17200
17382
|
* LegacyStateUpdateData
|
|
17201
17383
|
* DELETE /legacy/state/{stateUid} → api.legacy.legacy.state.delete(stateUid) →
|
|
17202
17384
|
* LegacyStateDeleteData
|
|
17385
|
+
* GET /saved-carts → api.legacy.savedCarts.list(params) → SavedCartsListData
|
|
17386
|
+
* GET /saved-carts/{id} → api.legacy.savedCarts.get(id) → SavedCartsGetData
|
|
17387
|
+
* GET /saved-carts/{id}/items → api.legacy.savedCarts.items.list(id, params) →
|
|
17388
|
+
* SavedCartsItemsListData
|
|
17203
17389
|
*/
|
|
17204
17390
|
|
|
17205
17391
|
declare class LegacyClient extends BaseServiceClient {
|
|
17206
17392
|
readonly invMast: LegacyClientSpec['invMast'];
|
|
17207
17393
|
readonly itemCategory: LegacyClientSpec['itemCategory'];
|
|
17208
17394
|
readonly legacy: LegacyClientSpec['legacy'];
|
|
17395
|
+
readonly savedCarts: LegacyClientSpec['savedCarts'];
|
|
17209
17396
|
readonly invMastData: DataOnly<LegacyClientSpec['invMast']>;
|
|
17210
17397
|
readonly itemCategoryData: DataOnly<LegacyClientSpec['itemCategory']>;
|
|
17211
17398
|
readonly legacyData: DataOnly<LegacyClientSpec['legacy']>;
|
|
17399
|
+
readonly savedCartsData: DataOnly<LegacyClientSpec['savedCarts']>;
|
|
17212
17400
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
17213
17401
|
}
|
|
17214
17402
|
|
|
@@ -26014,6 +26202,7 @@ interface AgrInfoClientSpec {
|
|
|
26014
26202
|
*
|
|
26015
26203
|
* Errors:
|
|
26016
26204
|
* 403: x-site-id is not augur_info: agr_info serves only the augur_info site.
|
|
26205
|
+
* 404: The path siteId has no domain configured: the site is unknown.
|
|
26017
26206
|
*
|
|
26018
26207
|
* GET https://agr-info.augur-api.com/context/{siteId}
|
|
26019
26208
|
* Contract: https://agr-info.augur-api.com/openapi.json#/paths/~1context~1{siteId}/get
|
|
@@ -35430,6 +35619,11 @@ declare class AugurAPI {
|
|
|
35430
35619
|
private _basecamp2?;
|
|
35431
35620
|
/** Endpoint registry contract version (see shared/REGISTRY.md). */
|
|
35432
35621
|
static readonly registryVersion = 1;
|
|
35622
|
+
/**
|
|
35623
|
+
* @throws InvalidArgumentError when `config.siteId` is not a siteId (`isSiteId`: lowercase
|
|
35624
|
+
* letters, digits, `_` and `-`). The config is copied, so changing the caller's object
|
|
35625
|
+
* afterwards cannot put an empty or malformed one into `x-site-id`; use `setSiteId`.
|
|
35626
|
+
*/
|
|
35433
35627
|
constructor(config: AugurAPIConfig);
|
|
35434
35628
|
/**
|
|
35435
35629
|
* Every endpoint the SDK exposes, one language-neutral entry each, sorted by id.
|
|
@@ -35592,8 +35786,9 @@ declare class AugurAPI {
|
|
|
35592
35786
|
/**
|
|
35593
35787
|
* Update site ID
|
|
35594
35788
|
* @param siteId New site ID
|
|
35789
|
+
* @throws InvalidArgumentError when it is not a siteId (see the constructor)
|
|
35595
35790
|
*/
|
|
35596
35791
|
setSiteId(siteId: string): void;
|
|
35597
35792
|
}
|
|
35598
35793
|
|
|
35599
|
-
export { types$5 as $, AugurAPI as A, type BaseResponse$1 as B, type CallArgs as C, type Envelope as D, type EndpointEntry as E, types$9 as F, GoogMcClient as G, GregorovichClient as H, types$8 as I, type HealthCheckData as J, HealthCheckDataSchema as K, ItemsClient as L, types$k as M, JoomlaClient as N, types$p as O, type Known as P, LegacyClient as Q, types$j as R, LogisticsClient as S, types$7 as T, OpenSearchClient as U, types$l as V, OrdersClient as W, types$g as X, P21ApisClient as Y, types$6 as Z, P21CoreClient as _, AgrInfoClient as a, P21PimClient as a0, types$f as a1, P21SismClient as a2, types$4 as a3, PaginationParamsSchema as a4, PaymentsClient as a5, types$e as a6, type PingData as a7, PricingClient as a8, types$n as a9, type RequestConfig as aa, ShippingClient as ab, types$3 as ac, SmartyStreetsClient as ad, types$2 as ae, UPSClient as af, types$1 as ag, VMIClient as ah, types$m as ai, type WhoamiData as aj, WhoamiDataSchema as ak, AgrIntClient as b, types$c as c, AgrSiteClient as d, types$i as e, AgrWorkClient as f, type AugurAPIConfig as g, type AugurContext as h, type AugurRequestConfig as i, type AugurRequestError as j, type AugurResponse as k, AvalaraClient as l, types$b as m, BaseResponseSchema as n, Basecamp2Client as o, types as p, BrandFolderClient as q, types$a as r, type CallResult as s, types$d as t, CommerceClient as u, types$o as v, ContextCreationError as w, CustomersClient as x, types$h as y, type EndpointParam as z };
|
|
35794
|
+
export { types$5 as $, AugurAPI as A, type BaseResponse$1 as B, type CallArgs as C, type Envelope as D, type EndpointEntry as E, types$9 as F, GoogMcClient as G, GregorovichClient as H, types$8 as I, type HealthCheckData as J, HealthCheckDataSchema as K, ItemsClient as L, types$k as M, JoomlaClient as N, types$p as O, type Known as P, LegacyClient as Q, types$j as R, LogisticsClient as S, types$7 as T, OpenSearchClient as U, types$l as V, OrdersClient as W, types$g as X, P21ApisClient as Y, types$6 as Z, P21CoreClient as _, AgrInfoClient as a, P21PimClient as a0, types$f as a1, P21SismClient as a2, types$4 as a3, PaginationParamsSchema as a4, PaymentsClient as a5, types$e as a6, type PingData as a7, PricingClient as a8, types$n as a9, type RequestConfig as aa, ShippingClient as ab, types$3 as ac, SmartyStreetsClient as ad, types$2 as ae, UPSClient as af, types$1 as ag, VMIClient as ah, types$m as ai, type WhoamiData as aj, WhoamiDataSchema as ak, isReadOnly as al, AgrIntClient as b, types$c as c, AgrSiteClient as d, types$i as e, AgrWorkClient as f, type AugurAPIConfig as g, type AugurContext as h, type AugurRequestConfig as i, type AugurRequestError as j, type AugurResponse as k, AvalaraClient as l, types$b as m, BaseResponseSchema as n, Basecamp2Client as o, types as p, BrandFolderClient as q, types$a as r, type CallResult as s, types$d as t, CommerceClient as u, types$o as v, ContextCreationError as w, CustomersClient as x, types$h as y, type EndpointParam as z };
|