@simpleapps-com/augur-api 0.4.10 → 0.4.11
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/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/services/items/client.d.ts +164 -10
- package/dist/cjs/services/items/client.d.ts.map +1 -1
- package/dist/cjs/services/items/client.js +95 -12
- package/dist/cjs/services/items/client.js.map +1 -1
- package/dist/cjs/services/items/schemas/categories.d.ts +0 -51
- package/dist/cjs/services/items/schemas/categories.d.ts.map +1 -1
- package/dist/cjs/services/items/schemas/categories.js +2 -22
- package/dist/cjs/services/items/schemas/categories.js.map +1 -1
- package/dist/cjs/services/items/schemas/index.d.ts +1 -0
- package/dist/cjs/services/items/schemas/index.d.ts.map +1 -1
- package/dist/cjs/services/items/schemas/index.js +2 -0
- package/dist/cjs/services/items/schemas/index.js.map +1 -1
- package/dist/cjs/services/items/schemas/itemUom.d.ts +436 -0
- package/dist/cjs/services/items/schemas/itemUom.d.ts.map +1 -0
- package/dist/cjs/services/items/schemas/itemUom.js +45 -0
- package/dist/cjs/services/items/schemas/itemUom.js.map +1 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/services/items/client.d.ts +164 -10
- package/dist/esm/services/items/client.d.ts.map +1 -1
- package/dist/esm/services/items/client.js +99 -14
- package/dist/esm/services/items/client.js.map +1 -1
- package/dist/esm/services/items/schemas/categories.d.ts +0 -51
- package/dist/esm/services/items/schemas/categories.d.ts.map +1 -1
- package/dist/esm/services/items/schemas/categories.js +1 -21
- package/dist/esm/services/items/schemas/categories.js.map +1 -1
- package/dist/esm/services/items/schemas/index.d.ts +1 -0
- package/dist/esm/services/items/schemas/index.d.ts.map +1 -1
- package/dist/esm/services/items/schemas/index.js +2 -0
- package/dist/esm/services/items/schemas/index.js.map +1 -1
- package/dist/esm/services/items/schemas/itemUom.d.ts +436 -0
- package/dist/esm/services/items/schemas/itemUom.d.ts.map +1 -0
- package/dist/esm/services/items/schemas/itemUom.js +42 -0
- package/dist/esm/services/items/schemas/itemUom.js.map +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/services/items/client.d.ts +164 -10
- package/dist/types/services/items/client.d.ts.map +1 -1
- package/dist/types/services/items/schemas/categories.d.ts +0 -51
- package/dist/types/services/items/schemas/categories.d.ts.map +1 -1
- package/dist/types/services/items/schemas/index.d.ts +1 -0
- package/dist/types/services/items/schemas/index.d.ts.map +1 -1
- package/dist/types/services/items/schemas/itemUom.d.ts +436 -0
- package/dist/types/services/items/schemas/itemUom.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ItemUomListResponseSchema = exports.ItemUomResponseSchema = exports.ItemUomDetailParamsSchema = exports.ItemUomListParamsSchema = exports.ItemUomSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../../../core/schemas");
|
|
6
|
+
const schema_utils_1 = require("../../../core/schema-utils");
|
|
7
|
+
/**
|
|
8
|
+
* Item Unit of Measure (UOM) schemas for Items service
|
|
9
|
+
* Based on OpenAPI specification /item-uom endpoints
|
|
10
|
+
*/
|
|
11
|
+
// Core ItemUom data schema - matches OpenAPI spec exactly
|
|
12
|
+
exports.ItemUomSchema = zod_1.z.object({
|
|
13
|
+
unitOfMeasure: zod_1.z.string().max(8),
|
|
14
|
+
deleteFlag: zod_1.z.string().max(1),
|
|
15
|
+
dateCreated: (0, schema_utils_1.mysqlDatetimeSchema)(),
|
|
16
|
+
dateLastModified: (0, schema_utils_1.mysqlDatetimeSchema)(),
|
|
17
|
+
lastMaintainedBy: zod_1.z.string().max(30),
|
|
18
|
+
unitSize: zod_1.z.number(),
|
|
19
|
+
sellingUnit: zod_1.z.string().max(1).nullable(),
|
|
20
|
+
purchasingUnit: zod_1.z.string().max(1).nullable(),
|
|
21
|
+
invMastUid: zod_1.z.number(),
|
|
22
|
+
createdBy: zod_1.z.string().max(255).nullable(),
|
|
23
|
+
itemUomUid: zod_1.z.number(),
|
|
24
|
+
b2bUnitFlag: zod_1.z.string().max(1),
|
|
25
|
+
tallyFactor: zod_1.z.number().nullable(),
|
|
26
|
+
wwmsFlag: zod_1.z.string().max(1).nullable(),
|
|
27
|
+
prodOrderFactor: zod_1.z.number().nullable(),
|
|
28
|
+
minimumOrderQty: zod_1.z.number().nullable(),
|
|
29
|
+
updateCd: zod_1.z.number(),
|
|
30
|
+
});
|
|
31
|
+
// Parameter schemas for item-uom endpoints
|
|
32
|
+
exports.ItemUomListParamsSchema = zod_1.z.object({
|
|
33
|
+
invMastUid: zod_1.z.coerce.number().optional(),
|
|
34
|
+
limit: zod_1.z.coerce.number().optional(),
|
|
35
|
+
offset: zod_1.z.coerce.number().optional(),
|
|
36
|
+
orderBy: zod_1.z.string().optional(),
|
|
37
|
+
unitOfMeasure: zod_1.z.string().optional(),
|
|
38
|
+
});
|
|
39
|
+
exports.ItemUomDetailParamsSchema = zod_1.z.object({
|
|
40
|
+
itemUomUid: zod_1.z.coerce.number(),
|
|
41
|
+
});
|
|
42
|
+
// Response schemas using BaseResponseSchema (8-field format)
|
|
43
|
+
exports.ItemUomResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.ItemUomSchema);
|
|
44
|
+
exports.ItemUomListResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.ItemUomSchema));
|
|
45
|
+
//# sourceMappingURL=itemUom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itemUom.js","sourceRoot":"","sources":["../../../../../src/services/items/schemas/itemUom.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mDAA2D;AAC3D,6DAAiE;AAEjE;;;GAGG;AAEH,0DAA0D;AAC7C,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,aAA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QAAQ,EAAE;IACxC,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAEU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC;AAEH,6DAA6D;AAChD,QAAA,qBAAqB,GAAG,IAAA,4BAAkB,EAAC,qBAAa,CAAC,CAAC;AAC1D,QAAA,yBAAyB,GAAG,IAAA,4BAAkB,EAAC,OAAC,CAAC,KAAK,CAAC,qBAAa,CAAC,CAAC,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "0.4.
|
|
1
|
+
export declare const VERSION = "0.4.11";
|
|
2
2
|
export { AugurAPI } from './client';
|
|
3
3
|
export { authenticateUserForSite, createCrossSiteAuthenticator, type CrossSiteAuthParams, type CrossSiteAuthResult, } from './utils/cross-site-auth';
|
|
4
4
|
export { AugurAPIConfig, RequestConfig, type AugurContext, ContextCreationError, } from './core/config';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseServiceClient } from '../../core/base-client';
|
|
2
2
|
import type { HTTPClient } from '../../core/client';
|
|
3
|
-
import { CreateAttributeRequest, UpdateAttributeRequest, CreateAttributeGroupRequest, UpdateAttributeGroupRequest, AttributeGroupListParams, CreateBrandRequest, UpdateBrandRequest, BrandListParams, CategoryListParams, CategoryLookupParams, ProductListParams, InvMastLookupParams, GetStockParams, CreateItemVariantHeaderRequest, UpdateItemVariantHeaderRequest, ItemVariantListParams, CreateItemWishlistHeaderRequest, CreateAttributeGroupAttributeRequest, UpdateAttributeGroupAttributeRequest, CreateAttributeValueRequest, UpdateAttributeValueRequest, CreateBrandItemRequest, UpdateBrandItemRequest, CreateInvMastFaqRequest, UpdateInvMastFaqRequest, CreateItemWishlistHdrRequest, CreateItemAttributeValueRequest, CreateItemFavoriteRequest, UpdateItemFavoriteRequest, CreateInternalPdfRequest, UpdateItemAttributeValueRequest, InvMastLocationsBinsParams, LocationsBinsParams, ContractsItemsParams } from './schemas';
|
|
3
|
+
import { CreateAttributeRequest, UpdateAttributeRequest, CreateAttributeGroupRequest, UpdateAttributeGroupRequest, AttributeGroupListParams, CreateBrandRequest, UpdateBrandRequest, BrandListParams, CategoryListParams, CategoryLookupParams, ProductListParams, InvMastLookupParams, GetStockParams, CreateItemVariantHeaderRequest, UpdateItemVariantHeaderRequest, ItemVariantListParams, CreateItemWishlistHeaderRequest, CreateAttributeGroupAttributeRequest, UpdateAttributeGroupAttributeRequest, CreateAttributeValueRequest, UpdateAttributeValueRequest, CreateBrandItemRequest, UpdateBrandItemRequest, CreateInvMastFaqRequest, UpdateInvMastFaqRequest, CreateItemWishlistHdrRequest, CreateItemAttributeValueRequest, CreateItemFavoriteRequest, UpdateItemFavoriteRequest, CreateInternalPdfRequest, UpdateItemAttributeValueRequest, InvMastLocationsBinsParams, LocationsBinsParams, ContractsItemsParams, ItemUomListParams } from './schemas';
|
|
4
4
|
/**
|
|
5
5
|
* Items service client implementing OpenAPI Path Mirroring Pattern
|
|
6
6
|
*
|
|
@@ -1026,19 +1026,31 @@ export declare class ItemsClient extends BaseServiceClient {
|
|
|
1026
1026
|
}>;
|
|
1027
1027
|
};
|
|
1028
1028
|
/**
|
|
1029
|
-
* OpenAPI Path: /categories/{itemCategoryUid}/
|
|
1030
|
-
* @description Nested path for category
|
|
1029
|
+
* OpenAPI Path: /categories/{itemCategoryUid}/items → categories.items.list
|
|
1030
|
+
* @description Nested path for category items (plural)
|
|
1031
1031
|
*/
|
|
1032
|
-
|
|
1032
|
+
items: {
|
|
1033
1033
|
/**
|
|
1034
|
-
*
|
|
1035
|
-
* @description
|
|
1036
|
-
* @fullPath api.items.categories.
|
|
1034
|
+
* List category items
|
|
1035
|
+
* @description List items in a category with filtering and search capabilities
|
|
1036
|
+
* @fullPath api.items.categories.items.list
|
|
1037
1037
|
* @service items
|
|
1038
1038
|
* @domain inventory-management
|
|
1039
1039
|
* @discoverable true
|
|
1040
|
+
* @dataMethod categoriesData.items.list
|
|
1041
|
+
* @searchTerms ["category", "items", "products", "list", "filter"]
|
|
1042
|
+
* @relatedEndpoints ["categories.get", "invMast.list", "categories.attributes.list"]
|
|
1043
|
+
* @commonPatterns ["List items in category", "Filter category products", "Search category items"]
|
|
1044
|
+
* @workflow ["inventory-management", "product-discovery"]
|
|
1045
|
+
* @prerequisites ["Valid itemCategoryUid", "Bearer token", "x-site-id header", "Required q parameter"]
|
|
1046
|
+
* @nextSteps ["Use item details for product display", "Apply filters for refinement"]
|
|
1047
|
+
* @businessRules ["Returns array of items", "Requires q search parameter", "Supports pagination and filtering"]
|
|
1048
|
+
* @functionalArea "inventory-management"
|
|
1049
|
+
* @crossSite true
|
|
1050
|
+
* @caching "Variable TTL based on cacheTtl parameter"
|
|
1051
|
+
* @performance "Good - supports caching and filtering"
|
|
1040
1052
|
*/
|
|
1041
|
-
|
|
1053
|
+
list: (itemCategoryUid: number, params?: Record<string, unknown>) => Promise<{
|
|
1042
1054
|
params: Record<string, unknown> | unknown[];
|
|
1043
1055
|
data: {
|
|
1044
1056
|
invMastUid: number;
|
|
@@ -2278,6 +2290,108 @@ export declare class ItemsClient extends BaseServiceClient {
|
|
|
2278
2290
|
totalResults: number;
|
|
2279
2291
|
}>;
|
|
2280
2292
|
};
|
|
2293
|
+
/**
|
|
2294
|
+
* OpenAPI Path: /item-uom → itemUom.*
|
|
2295
|
+
* @description Methods for managing item units of measure (UOM)
|
|
2296
|
+
*/
|
|
2297
|
+
itemUom: {
|
|
2298
|
+
/**
|
|
2299
|
+
* List item units of measure
|
|
2300
|
+
* @description Retrieve a paginated list of item UOMs with filtering options
|
|
2301
|
+
* @fullPath api.items.itemUom.list
|
|
2302
|
+
* @service items
|
|
2303
|
+
* @domain inventory-management
|
|
2304
|
+
* @discoverable true
|
|
2305
|
+
* @dataMethod itemUomData.list
|
|
2306
|
+
* @searchTerms ["uom", "unit", "measure", "items", "inventory"]
|
|
2307
|
+
* @relatedEndpoints ["invMast.list", "attributes.list", "categories.list"]
|
|
2308
|
+
* @commonPatterns ["Get item units of measure", "List UOMs for items", "Filter UOMs by item"]
|
|
2309
|
+
* @workflow ["inventory-management", "product-configuration"]
|
|
2310
|
+
* @prerequisites ["Bearer token", "x-site-id header"]
|
|
2311
|
+
* @nextSteps ["Use UOM data for pricing calculations", "Configure item units"]
|
|
2312
|
+
* @businessRules ["Returns paginated results", "Supports filtering by item and unit of measure"]
|
|
2313
|
+
* @functionalArea "inventory-management"
|
|
2314
|
+
* @crossSite true
|
|
2315
|
+
* @caching "5 minutes - UOM data changes infrequently"
|
|
2316
|
+
* @performance "Fast - indexed lookup operation"
|
|
2317
|
+
*/
|
|
2318
|
+
list: (params?: ItemUomListParams) => Promise<{
|
|
2319
|
+
params: Record<string, unknown> | unknown[];
|
|
2320
|
+
data: {
|
|
2321
|
+
dateCreated: string;
|
|
2322
|
+
dateLastModified: string;
|
|
2323
|
+
updateCd: number;
|
|
2324
|
+
invMastUid: number;
|
|
2325
|
+
unitOfMeasure: string;
|
|
2326
|
+
unitSize: number;
|
|
2327
|
+
deleteFlag: string;
|
|
2328
|
+
createdBy: string | null;
|
|
2329
|
+
lastMaintainedBy: string;
|
|
2330
|
+
sellingUnit: string | null;
|
|
2331
|
+
purchasingUnit: string | null;
|
|
2332
|
+
itemUomUid: number;
|
|
2333
|
+
b2bUnitFlag: string;
|
|
2334
|
+
tallyFactor: number | null;
|
|
2335
|
+
wwmsFlag: string | null;
|
|
2336
|
+
prodOrderFactor: number | null;
|
|
2337
|
+
minimumOrderQty: number | null;
|
|
2338
|
+
}[];
|
|
2339
|
+
options: Record<string, unknown> | unknown[];
|
|
2340
|
+
status: number;
|
|
2341
|
+
message: string;
|
|
2342
|
+
count: number;
|
|
2343
|
+
total: number;
|
|
2344
|
+
totalResults: number;
|
|
2345
|
+
}>;
|
|
2346
|
+
/**
|
|
2347
|
+
* Get item unit of measure details
|
|
2348
|
+
* @description Retrieve specific item UOM details by ID
|
|
2349
|
+
* @fullPath api.items.itemUom.get
|
|
2350
|
+
* @service items
|
|
2351
|
+
* @domain inventory-management
|
|
2352
|
+
* @discoverable true
|
|
2353
|
+
* @dataMethod itemUomData.get
|
|
2354
|
+
* @searchTerms ["uom", "unit", "measure", "details", "specific"]
|
|
2355
|
+
* @relatedEndpoints ["itemUom.list", "invMast.get", "attributes.get"]
|
|
2356
|
+
* @commonPatterns ["Get UOM details by ID", "Retrieve unit of measure information"]
|
|
2357
|
+
* @workflow ["inventory-management", "product-configuration"]
|
|
2358
|
+
* @prerequisites ["Valid itemUomUid", "Bearer token", "x-site-id header"]
|
|
2359
|
+
* @nextSteps ["Use UOM details for calculations", "Update item configurations"]
|
|
2360
|
+
* @businessRules ["Returns single UOM record", "Must provide valid itemUomUid"]
|
|
2361
|
+
* @functionalArea "inventory-management"
|
|
2362
|
+
* @crossSite true
|
|
2363
|
+
* @caching "5 minutes - UOM data changes infrequently"
|
|
2364
|
+
* @performance "Very fast - direct ID lookup"
|
|
2365
|
+
*/
|
|
2366
|
+
get: (itemUomUid: number) => Promise<{
|
|
2367
|
+
params: Record<string, unknown> | unknown[];
|
|
2368
|
+
data: {
|
|
2369
|
+
dateCreated: string;
|
|
2370
|
+
dateLastModified: string;
|
|
2371
|
+
updateCd: number;
|
|
2372
|
+
invMastUid: number;
|
|
2373
|
+
unitOfMeasure: string;
|
|
2374
|
+
unitSize: number;
|
|
2375
|
+
deleteFlag: string;
|
|
2376
|
+
createdBy: string | null;
|
|
2377
|
+
lastMaintainedBy: string;
|
|
2378
|
+
sellingUnit: string | null;
|
|
2379
|
+
purchasingUnit: string | null;
|
|
2380
|
+
itemUomUid: number;
|
|
2381
|
+
b2bUnitFlag: string;
|
|
2382
|
+
tallyFactor: number | null;
|
|
2383
|
+
wwmsFlag: string | null;
|
|
2384
|
+
prodOrderFactor: number | null;
|
|
2385
|
+
minimumOrderQty: number | null;
|
|
2386
|
+
};
|
|
2387
|
+
options: Record<string, unknown> | unknown[];
|
|
2388
|
+
status: number;
|
|
2389
|
+
message: string;
|
|
2390
|
+
count: number;
|
|
2391
|
+
total: number;
|
|
2392
|
+
totalResults: number;
|
|
2393
|
+
}>;
|
|
2394
|
+
};
|
|
2281
2395
|
/**
|
|
2282
2396
|
* OpenAPI Path: /item-wishlist/{usersId} → itemWishlist.* (with required parameter)
|
|
2283
2397
|
* @description Methods for managing user wishlists
|
|
@@ -3076,8 +3190,8 @@ export declare class ItemsClient extends BaseServiceClient {
|
|
|
3076
3190
|
altText?: string | undefined;
|
|
3077
3191
|
}[]>;
|
|
3078
3192
|
};
|
|
3079
|
-
|
|
3080
|
-
|
|
3193
|
+
items: {
|
|
3194
|
+
list: (itemCategoryUid: number, params?: Record<string, unknown>) => Promise<{
|
|
3081
3195
|
invMastUid: number;
|
|
3082
3196
|
itemId: string;
|
|
3083
3197
|
itemDesc: string;
|
|
@@ -3568,6 +3682,46 @@ export declare class ItemsClient extends BaseServiceClient {
|
|
|
3568
3682
|
get: (locationId: string, bin: string) => Promise<import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">[]>;
|
|
3569
3683
|
};
|
|
3570
3684
|
};
|
|
3685
|
+
itemUomData: {
|
|
3686
|
+
list: (params?: ItemUomListParams) => Promise<{
|
|
3687
|
+
dateCreated: string;
|
|
3688
|
+
dateLastModified: string;
|
|
3689
|
+
updateCd: number;
|
|
3690
|
+
invMastUid: number;
|
|
3691
|
+
unitOfMeasure: string;
|
|
3692
|
+
unitSize: number;
|
|
3693
|
+
deleteFlag: string;
|
|
3694
|
+
createdBy: string | null;
|
|
3695
|
+
lastMaintainedBy: string;
|
|
3696
|
+
sellingUnit: string | null;
|
|
3697
|
+
purchasingUnit: string | null;
|
|
3698
|
+
itemUomUid: number;
|
|
3699
|
+
b2bUnitFlag: string;
|
|
3700
|
+
tallyFactor: number | null;
|
|
3701
|
+
wwmsFlag: string | null;
|
|
3702
|
+
prodOrderFactor: number | null;
|
|
3703
|
+
minimumOrderQty: number | null;
|
|
3704
|
+
}[]>;
|
|
3705
|
+
get: (itemUomUid: number) => Promise<{
|
|
3706
|
+
dateCreated: string;
|
|
3707
|
+
dateLastModified: string;
|
|
3708
|
+
updateCd: number;
|
|
3709
|
+
invMastUid: number;
|
|
3710
|
+
unitOfMeasure: string;
|
|
3711
|
+
unitSize: number;
|
|
3712
|
+
deleteFlag: string;
|
|
3713
|
+
createdBy: string | null;
|
|
3714
|
+
lastMaintainedBy: string;
|
|
3715
|
+
sellingUnit: string | null;
|
|
3716
|
+
purchasingUnit: string | null;
|
|
3717
|
+
itemUomUid: number;
|
|
3718
|
+
b2bUnitFlag: string;
|
|
3719
|
+
tallyFactor: number | null;
|
|
3720
|
+
wwmsFlag: string | null;
|
|
3721
|
+
prodOrderFactor: number | null;
|
|
3722
|
+
minimumOrderQty: number | null;
|
|
3723
|
+
}>;
|
|
3724
|
+
};
|
|
3571
3725
|
variantsData: {
|
|
3572
3726
|
list: (params?: ItemVariantListParams) => Promise<{
|
|
3573
3727
|
itemVariantHdrUid: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/services/items/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAsHL,sBAAsB,EACtB,sBAAsB,EACtB,2BAA2B,EAC3B,2BAA2B,EAC3B,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EAGjB,mBAAmB,EACnB,cAAc,EACd,8BAA8B,EAC9B,8BAA8B,EAC9B,qBAAqB,EACrB,+BAA+B,EAG/B,oCAAoC,EACpC,oCAAoC,EACpC,2BAA2B,EAC3B,2BAA2B,EAC3B,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,4BAA4B,EAC5B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,+BAA+B,EAC/B,0BAA0B,EAC1B,mBAAmB,EAGnB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/services/items/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAsHL,sBAAsB,EACtB,sBAAsB,EACtB,2BAA2B,EAC3B,2BAA2B,EAC3B,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EAGjB,mBAAmB,EACnB,cAAc,EACd,8BAA8B,EAC9B,8BAA8B,EAC9B,qBAAqB,EACrB,+BAA+B,EAG/B,oCAAoC,EACpC,oCAAoC,EACpC,2BAA2B,EAC3B,2BAA2B,EAC3B,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,4BAA4B,EAC5B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,+BAA+B,EAC/B,0BAA0B,EAC1B,mBAAmB,EAGnB,oBAAoB,EAMpB,iBAAiB,EAClB,MAAM,WAAW,CAAC;AAEnB;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,iBAAiB;IAChD;;;;OAIG;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CAKH,MAAM;;;;;;;;;;MAKtC;IAEF,iBAAiB;wBACO,MAAM,WAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;;;;;0BAItC,MAAM,QAAQ,yBAAyB;;;;;;;;;;;0BAIvC,MAAM,cAAc,MAAM,QAAQ,yBAAyB;;;;;;;;;;;0BAI3D,MAAM,cAAc,MAAM;;;;;;;;;;;MAIlD;IAEF,gBAAgB;wBACQ,MAAM,WAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;;;;;;0BAItC,MAAM,QAAQ,+BAA+B;;;;;;;;;;;;;2BAK9C,MAAM,sBAAsB,MAAM;;;;;;;;;;;8BAK5C,MAAM,sBACK,MAAM,QACpB,4BAA4B;;;;;;;;;;;;kCAOvB,MAAM,sBACK,MAAM,uBACL,MAAM;;;;;;;;;;;;MAWjC;IAEF,aAAa;;+BAEgB,MAAM,WAAW,mBAAmB;8BAIrC,MAAM,OAAO,MAAM;;MAK7C;IAEF,WAAW;wBACa,iBAAiB;;;;;;;;;;;;;;;;;;;0BAIf,MAAM;;;;;;;;;;;;;;;;;;;MAI9B;IAEF,YAAY;wBACY,qBAAqB;;;;;;;;;;;;;;;uBAItB,8BAA8B;;;;;;;;;;;;;;;iCAIpB,MAAM;;;;;;;;;;;;;;;oCAIH,MAAM,QAAQ,8BAA8B;;;;;;;;;;;;;;;oCAI5C,MAAM;;;;;;;;;;;;;;;MAIxC;CACH"}
|
|
@@ -10,7 +10,7 @@ CreateAttributeGroupRequestSchema, UpdateAttributeGroupRequestSchema, AttributeG
|
|
|
10
10
|
// Brand schemas
|
|
11
11
|
CreateBrandRequestSchema, UpdateBrandRequestSchema, BrandListParamsSchema, BrandResponseSchema, BrandListResponseSchema,
|
|
12
12
|
// Category schemas
|
|
13
|
-
CategoryListParamsSchema, CategoryLookupParamsSchema, CategoryResponseSchema, CategoryListResponseSchema, CategoryLookupResponseSchema, CategoryItemsResponseSchema,
|
|
13
|
+
CategoryListParamsSchema, CategoryLookupParamsSchema, CategoryResponseSchema, CategoryListResponseSchema, CategoryLookupResponseSchema, CategoryItemsResponseSchema, CategoryItemsParamsSchema, CategoryAttributesResponseSchema, CategoryImagesResponseSchema,
|
|
14
14
|
// Product/Inventory Master schemas
|
|
15
15
|
ProductListParamsSchema, ProductResponseSchema, ProductListResponseSchema,
|
|
16
16
|
// Endpoint-specific schemas
|
|
@@ -28,7 +28,9 @@ AlternateCodeListResponseSchema, LocationsBinsParamsSchema, LocationsBinsRespons
|
|
|
28
28
|
// Contract schemas
|
|
29
29
|
ContractsAttributesResponseSchema, ContractsItemsParamsSchema, ContractsItemsResponseSchema,
|
|
30
30
|
// New schemas for fixing inline issues
|
|
31
|
-
InvMastDocResponseSchema, InvMastDocParamsSchema, SimilarProductListResponseSchema, ItemCategoryDocListResponseSchema, UpdateItemAttributeValueRequestSchema,
|
|
31
|
+
InvMastDocResponseSchema, InvMastDocParamsSchema, SimilarProductListResponseSchema, ItemCategoryDocListResponseSchema, UpdateItemAttributeValueRequestSchema,
|
|
32
|
+
// Item UOM schemas
|
|
33
|
+
ItemUomListParamsSchema, ItemUomResponseSchema, ItemUomListResponseSchema, } from './schemas';
|
|
32
34
|
/**
|
|
33
35
|
* Items service client implementing OpenAPI Path Mirroring Pattern
|
|
34
36
|
*
|
|
@@ -634,23 +636,35 @@ export class ItemsClient extends BaseServiceClient {
|
|
|
634
636
|
},
|
|
635
637
|
},
|
|
636
638
|
/**
|
|
637
|
-
* OpenAPI Path: /categories/{itemCategoryUid}/
|
|
638
|
-
* @description Nested path for category
|
|
639
|
+
* OpenAPI Path: /categories/{itemCategoryUid}/items → categories.items.list
|
|
640
|
+
* @description Nested path for category items (plural)
|
|
639
641
|
*/
|
|
640
|
-
|
|
642
|
+
items: {
|
|
641
643
|
/**
|
|
642
|
-
*
|
|
643
|
-
* @description
|
|
644
|
-
* @fullPath api.items.categories.
|
|
644
|
+
* List category items
|
|
645
|
+
* @description List items in a category with filtering and search capabilities
|
|
646
|
+
* @fullPath api.items.categories.items.list
|
|
645
647
|
* @service items
|
|
646
648
|
* @domain inventory-management
|
|
647
649
|
* @discoverable true
|
|
650
|
+
* @dataMethod categoriesData.items.list
|
|
651
|
+
* @searchTerms ["category", "items", "products", "list", "filter"]
|
|
652
|
+
* @relatedEndpoints ["categories.get", "invMast.list", "categories.attributes.list"]
|
|
653
|
+
* @commonPatterns ["List items in category", "Filter category products", "Search category items"]
|
|
654
|
+
* @workflow ["inventory-management", "product-discovery"]
|
|
655
|
+
* @prerequisites ["Valid itemCategoryUid", "Bearer token", "x-site-id header", "Required q parameter"]
|
|
656
|
+
* @nextSteps ["Use item details for product display", "Apply filters for refinement"]
|
|
657
|
+
* @businessRules ["Returns array of items", "Requires q search parameter", "Supports pagination and filtering"]
|
|
658
|
+
* @functionalArea "inventory-management"
|
|
659
|
+
* @crossSite true
|
|
660
|
+
* @caching "Variable TTL based on cacheTtl parameter"
|
|
661
|
+
* @performance "Good - supports caching and filtering"
|
|
648
662
|
*/
|
|
649
|
-
|
|
663
|
+
list: async (itemCategoryUid, params) => {
|
|
650
664
|
return this.executeRequest({
|
|
651
665
|
method: 'GET',
|
|
652
|
-
path: `/categories/${itemCategoryUid}/
|
|
653
|
-
paramsSchema:
|
|
666
|
+
path: `/categories/${itemCategoryUid}/items`,
|
|
667
|
+
paramsSchema: CategoryItemsParamsSchema,
|
|
654
668
|
responseSchema: CategoryItemsResponseSchema,
|
|
655
669
|
}, params);
|
|
656
670
|
},
|
|
@@ -1389,6 +1403,67 @@ export class ItemsClient extends BaseServiceClient {
|
|
|
1389
1403
|
});
|
|
1390
1404
|
},
|
|
1391
1405
|
};
|
|
1406
|
+
/**
|
|
1407
|
+
* OpenAPI Path: /item-uom → itemUom.*
|
|
1408
|
+
* @description Methods for managing item units of measure (UOM)
|
|
1409
|
+
*/
|
|
1410
|
+
this.itemUom = {
|
|
1411
|
+
/**
|
|
1412
|
+
* List item units of measure
|
|
1413
|
+
* @description Retrieve a paginated list of item UOMs with filtering options
|
|
1414
|
+
* @fullPath api.items.itemUom.list
|
|
1415
|
+
* @service items
|
|
1416
|
+
* @domain inventory-management
|
|
1417
|
+
* @discoverable true
|
|
1418
|
+
* @dataMethod itemUomData.list
|
|
1419
|
+
* @searchTerms ["uom", "unit", "measure", "items", "inventory"]
|
|
1420
|
+
* @relatedEndpoints ["invMast.list", "attributes.list", "categories.list"]
|
|
1421
|
+
* @commonPatterns ["Get item units of measure", "List UOMs for items", "Filter UOMs by item"]
|
|
1422
|
+
* @workflow ["inventory-management", "product-configuration"]
|
|
1423
|
+
* @prerequisites ["Bearer token", "x-site-id header"]
|
|
1424
|
+
* @nextSteps ["Use UOM data for pricing calculations", "Configure item units"]
|
|
1425
|
+
* @businessRules ["Returns paginated results", "Supports filtering by item and unit of measure"]
|
|
1426
|
+
* @functionalArea "inventory-management"
|
|
1427
|
+
* @crossSite true
|
|
1428
|
+
* @caching "5 minutes - UOM data changes infrequently"
|
|
1429
|
+
* @performance "Fast - indexed lookup operation"
|
|
1430
|
+
*/
|
|
1431
|
+
list: async (params) => {
|
|
1432
|
+
return this.executeRequest({
|
|
1433
|
+
method: 'GET',
|
|
1434
|
+
path: '/item-uom',
|
|
1435
|
+
paramsSchema: ItemUomListParamsSchema,
|
|
1436
|
+
responseSchema: ItemUomListResponseSchema,
|
|
1437
|
+
}, params);
|
|
1438
|
+
},
|
|
1439
|
+
/**
|
|
1440
|
+
* Get item unit of measure details
|
|
1441
|
+
* @description Retrieve specific item UOM details by ID
|
|
1442
|
+
* @fullPath api.items.itemUom.get
|
|
1443
|
+
* @service items
|
|
1444
|
+
* @domain inventory-management
|
|
1445
|
+
* @discoverable true
|
|
1446
|
+
* @dataMethod itemUomData.get
|
|
1447
|
+
* @searchTerms ["uom", "unit", "measure", "details", "specific"]
|
|
1448
|
+
* @relatedEndpoints ["itemUom.list", "invMast.get", "attributes.get"]
|
|
1449
|
+
* @commonPatterns ["Get UOM details by ID", "Retrieve unit of measure information"]
|
|
1450
|
+
* @workflow ["inventory-management", "product-configuration"]
|
|
1451
|
+
* @prerequisites ["Valid itemUomUid", "Bearer token", "x-site-id header"]
|
|
1452
|
+
* @nextSteps ["Use UOM details for calculations", "Update item configurations"]
|
|
1453
|
+
* @businessRules ["Returns single UOM record", "Must provide valid itemUomUid"]
|
|
1454
|
+
* @functionalArea "inventory-management"
|
|
1455
|
+
* @crossSite true
|
|
1456
|
+
* @caching "5 minutes - UOM data changes infrequently"
|
|
1457
|
+
* @performance "Very fast - direct ID lookup"
|
|
1458
|
+
*/
|
|
1459
|
+
get: async (itemUomUid) => {
|
|
1460
|
+
return this.executeRequest({
|
|
1461
|
+
method: 'GET',
|
|
1462
|
+
path: `/item-uom/${itemUomUid}`,
|
|
1463
|
+
responseSchema: ItemUomResponseSchema,
|
|
1464
|
+
});
|
|
1465
|
+
},
|
|
1466
|
+
};
|
|
1392
1467
|
/**
|
|
1393
1468
|
* OpenAPI Path: /item-wishlist/{usersId} → itemWishlist.* (with required parameter)
|
|
1394
1469
|
* @description Methods for managing user wishlists
|
|
@@ -1803,9 +1878,9 @@ export class ItemsClient extends BaseServiceClient {
|
|
|
1803
1878
|
return response.data;
|
|
1804
1879
|
},
|
|
1805
1880
|
},
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
const response = await this.categories.
|
|
1881
|
+
items: {
|
|
1882
|
+
list: async (itemCategoryUid, params) => {
|
|
1883
|
+
const response = await this.categories.items.list(itemCategoryUid, params);
|
|
1809
1884
|
return response.data;
|
|
1810
1885
|
},
|
|
1811
1886
|
},
|
|
@@ -2008,6 +2083,16 @@ export class ItemsClient extends BaseServiceClient {
|
|
|
2008
2083
|
},
|
|
2009
2084
|
},
|
|
2010
2085
|
};
|
|
2086
|
+
this.itemUomData = {
|
|
2087
|
+
list: async (params) => {
|
|
2088
|
+
const response = await this.itemUom.list(params);
|
|
2089
|
+
return response.data;
|
|
2090
|
+
},
|
|
2091
|
+
get: async (itemUomUid) => {
|
|
2092
|
+
const response = await this.itemUom.get(itemUomUid);
|
|
2093
|
+
return response.data;
|
|
2094
|
+
},
|
|
2095
|
+
};
|
|
2011
2096
|
this.variantsData = {
|
|
2012
2097
|
list: async (params) => {
|
|
2013
2098
|
const response = await this.variants.list(params);
|