@spscommerce/asst-api 4.1.0 → 4.2.0
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/{CompanyBriefByOrg-itus4RMD.d.cts → CompanyBriefByOrg-Dy2omcT0.d.cts} +1 -37
- package/dist/{CompanyBriefByOrg-itus4RMD.d.ts → CompanyBriefByOrg-Dy2omcT0.d.ts} +1 -37
- package/dist/{chunk-SI7CWAHC.js → chunk-2ETQHIXC.js} +40 -86
- package/dist/{chunk-BLMS4KUD.js → chunk-HHJDDPFR.js} +200 -478
- package/dist/chunk-LCK4AEWB.js +79 -0
- package/dist/{index-B8ovDTs5.d.cts → index-9KKchLwe.d.cts} +1 -1
- package/dist/{index-BFKgtuVI.d.ts → index-DeivEdv0.d.ts} +1 -1
- package/dist/index.cjs +225 -458
- package/dist/index.d.cts +6 -24
- package/dist/index.d.ts +6 -24
- package/dist/index.js +5 -5
- package/dist/msw.cjs +225 -510
- package/dist/msw.d.cts +10 -197
- package/dist/msw.d.ts +10 -197
- package/dist/msw.js +51 -117
- package/dist/{zod-BdDmL7rg.d.ts → zod-DyBGOUbG.d.ts} +110 -952
- package/dist/{zod-DBbdP-KT.d.cts → zod-rs54beS2.d.cts} +110 -952
- package/dist/zod.cjs +30 -178
- package/dist/zod.d.cts +2 -2
- package/dist/zod.d.ts +2 -2
- package/dist/zod.js +62 -21
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as AsstClient,
|
|
2
|
-
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,
|
|
4
|
-
export {
|
|
1
|
+
import { A as AsstClient, S as SpsItemIdResponse } from './CompanyBriefByOrg-Dy2omcT0.cjs';
|
|
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-rs54beS2.cjs';
|
|
4
|
+
export { J as AttributeDetail, $ as Bulb, K as CategoryEnum, M as ComponentDetails, r as Connection, o as ExportDayOfWeek, p as ExportFrequency, q as ExportType, N as GroupedAttributeList, O as GroupedAttributes, Q as GroupedItem, W as HierarchyCategory, X as HierarchyDetails, v as IdentityServiceDatetimePreferences, w as IdentityServiceOrganization, u as IdentityServiceOrganizationMetadata, x as IdentityServicePreferences, y as IdentityServiceUser, k as ImportDetails, l as ImportError, m as ImportErrors, n as ImportStatusEnum, s as ItemCategory, a3 as ItemErrorDetails, a5 as ItemErrorDetailsV2, a4 as ItemErrorSummaryV2, z as ItemHeader, B as ItemMap, Y as ItemPrice, F as ItemTable, _ as MediaItem, a0 as PackComponent, Z as PackComponentDetails, a2 as PackComponentItemInfo, P as PhaseEnum, R as RegisteredService, a1 as RepeatableGroup, t as SpreadsheetTemplateCompany, H as TradingPartnerStage, a6 as TradingPartnerStageV2 } from './zod-rs54beS2.cjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
export { c as createCompaniesApi } from './index-
|
|
6
|
+
export { c as createCompaniesApi } from './index-9KKchLwe.cjs';
|
|
7
7
|
import 'ky';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -109,24 +109,6 @@ type CategoriesApi = {
|
|
|
109
109
|
*/
|
|
110
110
|
declare function createCategoriesApi(client: AsstClient): CategoriesApi;
|
|
111
111
|
|
|
112
|
-
/**
|
|
113
|
-
* Initialize Attributes Api functions
|
|
114
|
-
* @param client Assortment Client instance
|
|
115
|
-
* @returns An object containing Attributes API functions
|
|
116
|
-
*/
|
|
117
|
-
declare function createAttributesApi(client: AsstClient): {
|
|
118
|
-
getAllAttributes: (signal?: AbortSignal) => Promise<AttributeMetaData[]>;
|
|
119
|
-
getAllAttributesByCompany: (params?: {
|
|
120
|
-
offset?: number;
|
|
121
|
-
limit?: number;
|
|
122
|
-
}, signal?: AbortSignal) => Promise<AttributesByCompany>;
|
|
123
|
-
getAttributesExtensiveInfo: (signal?: AbortSignal) => Promise<AttributeDefinition[]>;
|
|
124
|
-
getAttributeValidValues: (attributeDbName: string, signal?: AbortSignal) => Promise<AttributeValidValues[]>;
|
|
125
|
-
getCompanyInterestedAttributes: (params?: {
|
|
126
|
-
orgId?: string;
|
|
127
|
-
}, signal?: AbortSignal) => Promise<string[]>;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
112
|
/**
|
|
131
113
|
* Initialize Locale Api functions
|
|
132
114
|
* @param client Assortment Client instance
|
|
@@ -734,4 +716,4 @@ declare function createUniqueCriteriaApi(client: AsstClient): {
|
|
|
734
716
|
}, signal?: AbortSignal) => Promise<FlattenedItemIdentifiers[]>;
|
|
735
717
|
};
|
|
736
718
|
|
|
737
|
-
export { type ApplicationType, AsstClient, AttrProdType,
|
|
719
|
+
export { type ApplicationType, AsstClient, AttrProdType, type CategoriesApi, CompanyRelationshipUpsertBody, DownLoadItemsParams, Export, type FlagOptions, type FlattenedItemIdentifiers, GenerateImportTemplateParams, type GetItemErrorSummaryParams, Import, ImportsStatus, ItemCategoriesSearch, ItemDetail, ItemDetailView, ItemErrorDetailsResult, ItemErrorDetailsResultV2, ItemErrorSummaryResultV2, ItemHierarchyResponse, type ItemOrgStageDetails, type ItemOrgStatus, ItemPartner, ItemSearchView, type ItemStatus, type ItemStatusResponse, type ItemStatusV2, type ItemStatusV2Response, type ItemsApi, Locale, type OrgSummary, type RetailerTradingPartnerStages, SpreadsheetTemplate, SpsItemIdResponse, type Stage, TradingPartnerAccessByCompanyId, UserAccount, VendorPartnerAttGroups, createCategoriesApi, createCompanyFeaturesApi, createErrorsApi, createErrorsApiV2, createExportsApi, createFeatureFlagsApi, createImportsApi, createItemsApi, createItemsApiV2, createLocaleApi, createProductTypesApi, createSpreadsheetTemplateApi, createTradingPartnerAccessApi, createTradingPartnerSettingsApi, createUniqueCriteriaApi, createWhoAmIApi };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as AsstClient,
|
|
2
|
-
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,
|
|
4
|
-
export {
|
|
1
|
+
import { A as AsstClient, S as SpsItemIdResponse } from './CompanyBriefByOrg-Dy2omcT0.js';
|
|
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-DyBGOUbG.js';
|
|
4
|
+
export { J as AttributeDetail, $ as Bulb, K as CategoryEnum, M as ComponentDetails, r as Connection, o as ExportDayOfWeek, p as ExportFrequency, q as ExportType, N as GroupedAttributeList, O as GroupedAttributes, Q as GroupedItem, W as HierarchyCategory, X as HierarchyDetails, v as IdentityServiceDatetimePreferences, w as IdentityServiceOrganization, u as IdentityServiceOrganizationMetadata, x as IdentityServicePreferences, y as IdentityServiceUser, k as ImportDetails, l as ImportError, m as ImportErrors, n as ImportStatusEnum, s as ItemCategory, a3 as ItemErrorDetails, a5 as ItemErrorDetailsV2, a4 as ItemErrorSummaryV2, z as ItemHeader, B as ItemMap, Y as ItemPrice, F as ItemTable, _ as MediaItem, a0 as PackComponent, Z as PackComponentDetails, a2 as PackComponentItemInfo, P as PhaseEnum, R as RegisteredService, a1 as RepeatableGroup, t as SpreadsheetTemplateCompany, H as TradingPartnerStage, a6 as TradingPartnerStageV2 } from './zod-DyBGOUbG.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
export { c as createCompaniesApi } from './index-
|
|
6
|
+
export { c as createCompaniesApi } from './index-DeivEdv0.js';
|
|
7
7
|
import 'ky';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -109,24 +109,6 @@ type CategoriesApi = {
|
|
|
109
109
|
*/
|
|
110
110
|
declare function createCategoriesApi(client: AsstClient): CategoriesApi;
|
|
111
111
|
|
|
112
|
-
/**
|
|
113
|
-
* Initialize Attributes Api functions
|
|
114
|
-
* @param client Assortment Client instance
|
|
115
|
-
* @returns An object containing Attributes API functions
|
|
116
|
-
*/
|
|
117
|
-
declare function createAttributesApi(client: AsstClient): {
|
|
118
|
-
getAllAttributes: (signal?: AbortSignal) => Promise<AttributeMetaData[]>;
|
|
119
|
-
getAllAttributesByCompany: (params?: {
|
|
120
|
-
offset?: number;
|
|
121
|
-
limit?: number;
|
|
122
|
-
}, signal?: AbortSignal) => Promise<AttributesByCompany>;
|
|
123
|
-
getAttributesExtensiveInfo: (signal?: AbortSignal) => Promise<AttributeDefinition[]>;
|
|
124
|
-
getAttributeValidValues: (attributeDbName: string, signal?: AbortSignal) => Promise<AttributeValidValues[]>;
|
|
125
|
-
getCompanyInterestedAttributes: (params?: {
|
|
126
|
-
orgId?: string;
|
|
127
|
-
}, signal?: AbortSignal) => Promise<string[]>;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
112
|
/**
|
|
131
113
|
* Initialize Locale Api functions
|
|
132
114
|
* @param client Assortment Client instance
|
|
@@ -734,4 +716,4 @@ declare function createUniqueCriteriaApi(client: AsstClient): {
|
|
|
734
716
|
}, signal?: AbortSignal) => Promise<FlattenedItemIdentifiers[]>;
|
|
735
717
|
};
|
|
736
718
|
|
|
737
|
-
export { type ApplicationType, AsstClient, AttrProdType,
|
|
719
|
+
export { type ApplicationType, AsstClient, AttrProdType, type CategoriesApi, CompanyRelationshipUpsertBody, DownLoadItemsParams, Export, type FlagOptions, type FlattenedItemIdentifiers, GenerateImportTemplateParams, type GetItemErrorSummaryParams, Import, ImportsStatus, ItemCategoriesSearch, ItemDetail, ItemDetailView, ItemErrorDetailsResult, ItemErrorDetailsResultV2, ItemErrorSummaryResultV2, ItemHierarchyResponse, type ItemOrgStageDetails, type ItemOrgStatus, ItemPartner, ItemSearchView, type ItemStatus, type ItemStatusResponse, type ItemStatusV2, type ItemStatusV2Response, type ItemsApi, Locale, type OrgSummary, type RetailerTradingPartnerStages, SpreadsheetTemplate, SpsItemIdResponse, type Stage, TradingPartnerAccessByCompanyId, UserAccount, VendorPartnerAttGroups, createCategoriesApi, createCompanyFeaturesApi, createErrorsApi, createErrorsApiV2, createExportsApi, createFeatureFlagsApi, createImportsApi, createItemsApi, createItemsApiV2, createLocaleApi, createProductTypesApi, createSpreadsheetTemplateApi, createTradingPartnerAccessApi, createTradingPartnerSettingsApi, createUniqueCriteriaApi, createWhoAmIApi };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
createAttributesApi,
|
|
3
2
|
createCategoriesApi,
|
|
4
3
|
createCompaniesApi,
|
|
5
4
|
createCompanyFeaturesApi,
|
|
@@ -16,13 +15,15 @@ import {
|
|
|
16
15
|
createTradingPartnerSettingsApi,
|
|
17
16
|
createUniqueCriteriaApi,
|
|
18
17
|
createWhoAmIApi
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2ETQHIXC.js";
|
|
20
19
|
import {
|
|
21
20
|
AsstClient,
|
|
22
21
|
BASE_URLS,
|
|
23
|
-
envSchema
|
|
22
|
+
envSchema
|
|
23
|
+
} from "./chunk-LCK4AEWB.js";
|
|
24
|
+
import {
|
|
24
25
|
itemStatusV2ResponseSchema
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-HHJDDPFR.js";
|
|
26
27
|
|
|
27
28
|
// lib/items/v2/index.ts
|
|
28
29
|
var BASE_URL = "v2/items";
|
|
@@ -38,7 +39,6 @@ function createItemsApiV2(client) {
|
|
|
38
39
|
export {
|
|
39
40
|
AsstClient,
|
|
40
41
|
BASE_URLS,
|
|
41
|
-
createAttributesApi,
|
|
42
42
|
createCategoriesApi,
|
|
43
43
|
createCompaniesApi,
|
|
44
44
|
createCompanyFeaturesApi,
|