@spscommerce/asst-api 4.2.0 → 4.2.2
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/{chunk-2ETQHIXC.js → chunk-4RARACQK.js} +1 -1
- package/dist/{chunk-LCK4AEWB.js → chunk-BVCWT7AV.js} +1 -1
- package/dist/{chunk-HHJDDPFR.js → chunk-MH76527N.js} +7 -1
- package/dist/index.cjs +8 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -3
- package/dist/msw.cjs +2 -1
- package/dist/msw.d.cts +4 -4
- package/dist/msw.d.ts +4 -4
- package/dist/msw.js +2 -2
- package/dist/{zod-rs54beS2.d.cts → zod-BRmUARvM.d.cts} +68 -65
- package/dist/{zod-DyBGOUbG.d.ts → zod-CFNzalN6.d.ts} +68 -65
- package/dist/zod.cjs +4 -1
- package/dist/zod.d.cts +1 -1
- package/dist/zod.d.ts +1 -1
- package/dist/zod.js +4 -2
- package/package.json +4 -4
|
@@ -4180,6 +4180,9 @@ var tradingPartnerAccessByCompanyIdSchema = external_exports.object({
|
|
|
4180
4180
|
});
|
|
4181
4181
|
|
|
4182
4182
|
// lib/categories/models/ItemCategory.ts
|
|
4183
|
+
var categoryTypeSchema = external_exports.enum(["CATALOG", "SELECTION_CODE", "PRODUCT_CODE", "EXPORT"]);
|
|
4184
|
+
var PRODUCT_CODE_DEFAULT_VALUE = "DEFAULT";
|
|
4185
|
+
var SELECTION_CODE_DEFAULT_VALUE = "000";
|
|
4183
4186
|
var itemCategorySchema = external_exports.object({
|
|
4184
4187
|
categoryid: external_exports.number(),
|
|
4185
4188
|
encodedCategoryId: external_exports.string(),
|
|
@@ -4189,7 +4192,7 @@ var itemCategorySchema = external_exports.object({
|
|
|
4189
4192
|
createdDate: external_exports.number().nullish(),
|
|
4190
4193
|
categorytimestamp: external_exports.number().nullish(),
|
|
4191
4194
|
typeId: external_exports.number(),
|
|
4192
|
-
type:
|
|
4195
|
+
type: categoryTypeSchema,
|
|
4193
4196
|
categorykey: external_exports.string().nullish(),
|
|
4194
4197
|
description: external_exports.string().nullish(),
|
|
4195
4198
|
categoryCatalogName: external_exports.string().nullish()
|
|
@@ -4836,6 +4839,9 @@ export {
|
|
|
4836
4839
|
companyRelationshipUpsertBodySchema,
|
|
4837
4840
|
itemPartnerSchema,
|
|
4838
4841
|
tradingPartnerAccessByCompanyIdSchema,
|
|
4842
|
+
categoryTypeSchema,
|
|
4843
|
+
PRODUCT_CODE_DEFAULT_VALUE,
|
|
4844
|
+
SELECTION_CODE_DEFAULT_VALUE,
|
|
4839
4845
|
itemCategorySchema,
|
|
4840
4846
|
itemCategoriesSearchSchema,
|
|
4841
4847
|
itemHierarchyResponseSchema,
|
package/dist/index.cjs
CHANGED
|
@@ -32,6 +32,8 @@ var lib_exports = {};
|
|
|
32
32
|
__export(lib_exports, {
|
|
33
33
|
AsstClient: () => AsstClient,
|
|
34
34
|
BASE_URLS: () => BASE_URLS,
|
|
35
|
+
PRODUCT_CODE_DEFAULT_VALUE: () => PRODUCT_CODE_DEFAULT_VALUE,
|
|
36
|
+
SELECTION_CODE_DEFAULT_VALUE: () => SELECTION_CODE_DEFAULT_VALUE,
|
|
35
37
|
createCategoriesApi: () => createCategoriesApi,
|
|
36
38
|
createCompaniesApi: () => createCompaniesApi,
|
|
37
39
|
createCompanyFeaturesApi: () => createCompanyFeaturesApi,
|
|
@@ -4455,6 +4457,9 @@ function createTradingPartnerSettingsApi(client) {
|
|
|
4455
4457
|
}
|
|
4456
4458
|
|
|
4457
4459
|
// lib/categories/models/ItemCategory.ts
|
|
4460
|
+
var categoryTypeSchema = external_exports.enum(["CATALOG", "SELECTION_CODE", "PRODUCT_CODE", "EXPORT"]);
|
|
4461
|
+
var PRODUCT_CODE_DEFAULT_VALUE = "DEFAULT";
|
|
4462
|
+
var SELECTION_CODE_DEFAULT_VALUE = "000";
|
|
4458
4463
|
var itemCategorySchema = external_exports.object({
|
|
4459
4464
|
categoryid: external_exports.number(),
|
|
4460
4465
|
encodedCategoryId: external_exports.string(),
|
|
@@ -4464,7 +4469,7 @@ var itemCategorySchema = external_exports.object({
|
|
|
4464
4469
|
createdDate: external_exports.number().nullish(),
|
|
4465
4470
|
categorytimestamp: external_exports.number().nullish(),
|
|
4466
4471
|
typeId: external_exports.number(),
|
|
4467
|
-
type:
|
|
4472
|
+
type: categoryTypeSchema,
|
|
4468
4473
|
categorykey: external_exports.string().nullish(),
|
|
4469
4474
|
description: external_exports.string().nullish(),
|
|
4470
4475
|
categoryCatalogName: external_exports.string().nullish()
|
|
@@ -5415,6 +5420,8 @@ function createCompaniesApi(client) {
|
|
|
5415
5420
|
0 && (module.exports = {
|
|
5416
5421
|
AsstClient,
|
|
5417
5422
|
BASE_URLS,
|
|
5423
|
+
PRODUCT_CODE_DEFAULT_VALUE,
|
|
5424
|
+
SELECTION_CODE_DEFAULT_VALUE,
|
|
5418
5425
|
createCategoriesApi,
|
|
5419
5426
|
createCompaniesApi,
|
|
5420
5427
|
createCompanyFeaturesApi,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as AsstClient, S as SpsItemIdResponse } from './CompanyBriefByOrg-Dy2omcT0.cjs';
|
|
2
2
|
export { a as AsstClientOptions, b as AsstUrl, B as BASE_URLS, C as CompanyBriefByOrg, E as Env, e as envSchema } from './CompanyBriefByOrg-Dy2omcT0.cjs';
|
|
3
|
-
import { I as Import, a as ImportsStatus, V as VendorPartnerAttGroups, G as GenerateImportTemplateParams, E as Export, D as DownLoadItemsParams, A as AttrProdType, T as TradingPartnerAccessByCompanyId, C as CompanyRelationshipUpsertBody, b as ItemPartner, c as ItemCategoriesSearch, d as ItemHierarchyResponse, L as Locale, S as SpreadsheetTemplate, U as UserAccount, e as ItemSearchView, f as ItemDetailView, g as ItemDetail, h as ItemErrorDetailsResult, i as ItemErrorSummaryResultV2, j as ItemErrorDetailsResultV2 } from './zod-
|
|
4
|
-
export {
|
|
3
|
+
import { I as Import, a as ImportsStatus, V as VendorPartnerAttGroups, G as GenerateImportTemplateParams, E as Export, D as DownLoadItemsParams, A as AttrProdType, T as TradingPartnerAccessByCompanyId, C as CompanyRelationshipUpsertBody, b as ItemPartner, c as ItemCategoriesSearch, d as ItemHierarchyResponse, L as Locale, S as SpreadsheetTemplate, U as UserAccount, e as ItemSearchView, f as ItemDetailView, g as ItemDetail, h as ItemErrorDetailsResult, i as ItemErrorSummaryResultV2, j as ItemErrorDetailsResultV2 } from './zod-BRmUARvM.cjs';
|
|
4
|
+
export { M as AttributeDetail, a1 as Bulb, N as CategoryEnum, O as ComponentDetails, r as Connection, o as ExportDayOfWeek, p as ExportFrequency, q as ExportType, Q as GroupedAttributeList, W as GroupedAttributes, X as GroupedItem, Y as HierarchyCategory, Z as HierarchyDetails, w as IdentityServiceDatetimePreferences, x as IdentityServiceOrganization, v as IdentityServiceOrganizationMetadata, y as IdentityServicePreferences, z as IdentityServiceUser, k as ImportDetails, l as ImportError, m as ImportErrors, n as ImportStatusEnum, t as ItemCategory, a5 as ItemErrorDetails, a7 as ItemErrorDetailsV2, a6 as ItemErrorSummaryV2, B as ItemHeader, F as ItemMap, _ as ItemPrice, H as ItemTable, a0 as MediaItem, P as PRODUCT_CODE_DEFAULT_VALUE, a2 as PackComponent, $ as PackComponentDetails, a4 as PackComponentItemInfo, J as PhaseEnum, R as RegisteredService, a3 as RepeatableGroup, s as SELECTION_CODE_DEFAULT_VALUE, u as SpreadsheetTemplateCompany, K as TradingPartnerStage, a8 as TradingPartnerStageV2 } from './zod-BRmUARvM.cjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export { c as createCompaniesApi } from './index-9KKchLwe.cjs';
|
|
7
7
|
import 'ky';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as AsstClient, S as SpsItemIdResponse } from './CompanyBriefByOrg-Dy2omcT0.js';
|
|
2
2
|
export { a as AsstClientOptions, b as AsstUrl, B as BASE_URLS, C as CompanyBriefByOrg, E as Env, e as envSchema } from './CompanyBriefByOrg-Dy2omcT0.js';
|
|
3
|
-
import { I as Import, a as ImportsStatus, V as VendorPartnerAttGroups, G as GenerateImportTemplateParams, E as Export, D as DownLoadItemsParams, A as AttrProdType, T as TradingPartnerAccessByCompanyId, C as CompanyRelationshipUpsertBody, b as ItemPartner, c as ItemCategoriesSearch, d as ItemHierarchyResponse, L as Locale, S as SpreadsheetTemplate, U as UserAccount, e as ItemSearchView, f as ItemDetailView, g as ItemDetail, h as ItemErrorDetailsResult, i as ItemErrorSummaryResultV2, j as ItemErrorDetailsResultV2 } from './zod-
|
|
4
|
-
export {
|
|
3
|
+
import { I as Import, a as ImportsStatus, V as VendorPartnerAttGroups, G as GenerateImportTemplateParams, E as Export, D as DownLoadItemsParams, A as AttrProdType, T as TradingPartnerAccessByCompanyId, C as CompanyRelationshipUpsertBody, b as ItemPartner, c as ItemCategoriesSearch, d as ItemHierarchyResponse, L as Locale, S as SpreadsheetTemplate, U as UserAccount, e as ItemSearchView, f as ItemDetailView, g as ItemDetail, h as ItemErrorDetailsResult, i as ItemErrorSummaryResultV2, j as ItemErrorDetailsResultV2 } from './zod-CFNzalN6.js';
|
|
4
|
+
export { M as AttributeDetail, a1 as Bulb, N as CategoryEnum, O as ComponentDetails, r as Connection, o as ExportDayOfWeek, p as ExportFrequency, q as ExportType, Q as GroupedAttributeList, W as GroupedAttributes, X as GroupedItem, Y as HierarchyCategory, Z as HierarchyDetails, w as IdentityServiceDatetimePreferences, x as IdentityServiceOrganization, v as IdentityServiceOrganizationMetadata, y as IdentityServicePreferences, z as IdentityServiceUser, k as ImportDetails, l as ImportError, m as ImportErrors, n as ImportStatusEnum, t as ItemCategory, a5 as ItemErrorDetails, a7 as ItemErrorDetailsV2, a6 as ItemErrorSummaryV2, B as ItemHeader, F as ItemMap, _ as ItemPrice, H as ItemTable, a0 as MediaItem, P as PRODUCT_CODE_DEFAULT_VALUE, a2 as PackComponent, $ as PackComponentDetails, a4 as PackComponentItemInfo, J as PhaseEnum, R as RegisteredService, a3 as RepeatableGroup, s as SELECTION_CODE_DEFAULT_VALUE, u as SpreadsheetTemplateCompany, K as TradingPartnerStage, a8 as TradingPartnerStageV2 } from './zod-CFNzalN6.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export { c as createCompaniesApi } from './index-DeivEdv0.js';
|
|
7
7
|
import 'ky';
|
package/dist/index.js
CHANGED
|
@@ -15,15 +15,17 @@ import {
|
|
|
15
15
|
createTradingPartnerSettingsApi,
|
|
16
16
|
createUniqueCriteriaApi,
|
|
17
17
|
createWhoAmIApi
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4RARACQK.js";
|
|
19
19
|
import {
|
|
20
20
|
AsstClient,
|
|
21
21
|
BASE_URLS,
|
|
22
22
|
envSchema
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BVCWT7AV.js";
|
|
24
24
|
import {
|
|
25
|
+
PRODUCT_CODE_DEFAULT_VALUE,
|
|
26
|
+
SELECTION_CODE_DEFAULT_VALUE,
|
|
25
27
|
itemStatusV2ResponseSchema
|
|
26
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-MH76527N.js";
|
|
27
29
|
|
|
28
30
|
// lib/items/v2/index.ts
|
|
29
31
|
var BASE_URL = "v2/items";
|
|
@@ -39,6 +41,8 @@ function createItemsApiV2(client) {
|
|
|
39
41
|
export {
|
|
40
42
|
AsstClient,
|
|
41
43
|
BASE_URLS,
|
|
44
|
+
PRODUCT_CODE_DEFAULT_VALUE,
|
|
45
|
+
SELECTION_CODE_DEFAULT_VALUE,
|
|
42
46
|
createCategoriesApi,
|
|
43
47
|
createCompaniesApi,
|
|
44
48
|
createCompanyFeaturesApi,
|
package/dist/msw.cjs
CHANGED
|
@@ -4223,6 +4223,7 @@ var import_zod_mock2 = require("@anatine/zod-mock");
|
|
|
4223
4223
|
var import_msw2 = require("msw");
|
|
4224
4224
|
|
|
4225
4225
|
// lib/categories/models/ItemCategory.ts
|
|
4226
|
+
var categoryTypeSchema = external_exports.enum(["CATALOG", "SELECTION_CODE", "PRODUCT_CODE", "EXPORT"]);
|
|
4226
4227
|
var itemCategorySchema = external_exports.object({
|
|
4227
4228
|
categoryid: external_exports.number(),
|
|
4228
4229
|
encodedCategoryId: external_exports.string(),
|
|
@@ -4232,7 +4233,7 @@ var itemCategorySchema = external_exports.object({
|
|
|
4232
4233
|
createdDate: external_exports.number().nullish(),
|
|
4233
4234
|
categorytimestamp: external_exports.number().nullish(),
|
|
4234
4235
|
typeId: external_exports.number(),
|
|
4235
|
-
type:
|
|
4236
|
+
type: categoryTypeSchema,
|
|
4236
4237
|
categorykey: external_exports.string().nullish(),
|
|
4237
4238
|
description: external_exports.string().nullish(),
|
|
4238
4239
|
categoryCatalogName: external_exports.string().nullish()
|
package/dist/msw.d.cts
CHANGED
|
@@ -78,7 +78,7 @@ declare function createCategoriesApiHandlers(client: AsstClient): {
|
|
|
78
78
|
generateData(): {
|
|
79
79
|
count: number;
|
|
80
80
|
data: {
|
|
81
|
-
type:
|
|
81
|
+
type: "CATALOG" | "SELECTION_CODE" | "PRODUCT_CODE" | "EXPORT";
|
|
82
82
|
name: string;
|
|
83
83
|
categoryid: number;
|
|
84
84
|
encodedCategoryId: string;
|
|
@@ -433,21 +433,21 @@ declare function createItemsApiHandlers(client: AsstClient): {
|
|
|
433
433
|
identifiers: Record<string, any>;
|
|
434
434
|
hierarchyDetails: {
|
|
435
435
|
catalogs: {
|
|
436
|
-
type: "CATALOG" | "
|
|
436
|
+
type: "CATALOG" | "SELECTION_CODE" | "PRODUCT_CODE" | "EXPORT" | "ALIAS" | "LEGACY_PRODUCT_TYPE" | "PRODUCT_CLASSIFICATION" | "TAG" | "TAXONOMY_ROOT";
|
|
437
437
|
name: string;
|
|
438
438
|
id: number;
|
|
439
439
|
description?: string | null | undefined;
|
|
440
440
|
companyId?: number | null | undefined;
|
|
441
441
|
}[];
|
|
442
442
|
selectionCodes: {
|
|
443
|
-
type: "CATALOG" | "
|
|
443
|
+
type: "CATALOG" | "SELECTION_CODE" | "PRODUCT_CODE" | "EXPORT" | "ALIAS" | "LEGACY_PRODUCT_TYPE" | "PRODUCT_CLASSIFICATION" | "TAG" | "TAXONOMY_ROOT";
|
|
444
444
|
name: string;
|
|
445
445
|
id: number;
|
|
446
446
|
description?: string | null | undefined;
|
|
447
447
|
companyId?: number | null | undefined;
|
|
448
448
|
}[];
|
|
449
449
|
productCodes: {
|
|
450
|
-
type: "CATALOG" | "
|
|
450
|
+
type: "CATALOG" | "SELECTION_CODE" | "PRODUCT_CODE" | "EXPORT" | "ALIAS" | "LEGACY_PRODUCT_TYPE" | "PRODUCT_CLASSIFICATION" | "TAG" | "TAXONOMY_ROOT";
|
|
451
451
|
name: string;
|
|
452
452
|
id: number;
|
|
453
453
|
description?: string | null | undefined;
|
package/dist/msw.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ declare function createCategoriesApiHandlers(client: AsstClient): {
|
|
|
78
78
|
generateData(): {
|
|
79
79
|
count: number;
|
|
80
80
|
data: {
|
|
81
|
-
type:
|
|
81
|
+
type: "CATALOG" | "SELECTION_CODE" | "PRODUCT_CODE" | "EXPORT";
|
|
82
82
|
name: string;
|
|
83
83
|
categoryid: number;
|
|
84
84
|
encodedCategoryId: string;
|
|
@@ -433,21 +433,21 @@ declare function createItemsApiHandlers(client: AsstClient): {
|
|
|
433
433
|
identifiers: Record<string, any>;
|
|
434
434
|
hierarchyDetails: {
|
|
435
435
|
catalogs: {
|
|
436
|
-
type: "CATALOG" | "
|
|
436
|
+
type: "CATALOG" | "SELECTION_CODE" | "PRODUCT_CODE" | "EXPORT" | "ALIAS" | "LEGACY_PRODUCT_TYPE" | "PRODUCT_CLASSIFICATION" | "TAG" | "TAXONOMY_ROOT";
|
|
437
437
|
name: string;
|
|
438
438
|
id: number;
|
|
439
439
|
description?: string | null | undefined;
|
|
440
440
|
companyId?: number | null | undefined;
|
|
441
441
|
}[];
|
|
442
442
|
selectionCodes: {
|
|
443
|
-
type: "CATALOG" | "
|
|
443
|
+
type: "CATALOG" | "SELECTION_CODE" | "PRODUCT_CODE" | "EXPORT" | "ALIAS" | "LEGACY_PRODUCT_TYPE" | "PRODUCT_CLASSIFICATION" | "TAG" | "TAXONOMY_ROOT";
|
|
444
444
|
name: string;
|
|
445
445
|
id: number;
|
|
446
446
|
description?: string | null | undefined;
|
|
447
447
|
companyId?: number | null | undefined;
|
|
448
448
|
}[];
|
|
449
449
|
productCodes: {
|
|
450
|
-
type: "CATALOG" | "
|
|
450
|
+
type: "CATALOG" | "SELECTION_CODE" | "PRODUCT_CODE" | "EXPORT" | "ALIAS" | "LEGACY_PRODUCT_TYPE" | "PRODUCT_CLASSIFICATION" | "TAG" | "TAXONOMY_ROOT";
|
|
451
451
|
name: string;
|
|
452
452
|
id: number;
|
|
453
453
|
description?: string | null | undefined;
|
package/dist/msw.js
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
FlattenedItemIdentifierKeysSchema,
|
|
19
19
|
createCompaniesApi,
|
|
20
20
|
retailerTradingPartnerStages
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4RARACQK.js";
|
|
22
22
|
import {
|
|
23
23
|
attrProdTypeSchema,
|
|
24
24
|
external_exports,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
tradingPartnerAccessByCompanyIdSchema,
|
|
41
41
|
userAccountSchema,
|
|
42
42
|
vendorPartnerAttGroupsSchema
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-MH76527N.js";
|
|
44
44
|
|
|
45
45
|
// lib/imports/mockHandlers.ts
|
|
46
46
|
import { generateMock } from "@anatine/zod-mock";
|