@spscommerce/asst-api 0.0.1-beta.7 → 0.0.1-beta.8
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/{ItemErrorDetailsResult-0b4a628c.d.ts → ItemErrorDetailsResult-c12c4eac.d.ts} +17 -17
- package/dist/{chunk-4WER3ZLX.js → chunk-3JRE7YYE.js} +2 -2
- package/dist/{chunk-ETURPA7W.js → chunk-OVOZIZA2.js} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/msw.cjs +2 -2
- package/dist/msw.d.ts +8 -8
- package/dist/msw.js +2 -2
- package/dist/zod.cjs +2 -2
- package/dist/zod.d.ts +1 -1
- package/dist/zod.js +1 -1
- package/package.json +1 -1
- package/dist/ImportsStatus-52d26b01.d.ts +0 -134
- package/dist/ImportsStatusEnum-22c03a0b.d.ts +0 -51
- package/dist/ItemCategoriesSearch-1bb945de.d.ts +0 -275
- package/dist/ItemCategoriesSearch-44b87663.d.ts +0 -318
- package/dist/ItemCategoriesSearch-e0870a34.d.ts +0 -318
- package/dist/ItemCategoriesSearch-e3298650.d.ts +0 -319
- package/dist/ItemCategoriesSearch-ec43591f.d.ts +0 -319
- package/dist/ItemCategory-14816deb.d.ts +0 -99
- package/dist/ItemCategory-768179bd.d.ts +0 -99
- package/dist/TradingPartnerAccessByCompanyId-29866586.d.ts +0 -97
- package/dist/TradingPartnerAccessByCompanyId-43f83fb6.d.ts +0 -130
- package/dist/TradingPartnerAccessByCompanyId-479e3e57.d.ts +0 -124
- package/dist/TradingPartnerAccessByCompanyId-53b868a8.d.ts +0 -125
- package/dist/TradingPartnerAccessByCompanyId-b227f0c5.d.ts +0 -125
- package/dist/TradingPartnerAccessByCompanyId-e7a1d443.d.ts +0 -129
- package/dist/asstClient-f6a1693a.d.ts +0 -29
- package/dist/chunk-3FMMM7IS.js +0 -80
- package/dist/chunk-6ZNFOWTV.js +0 -78
- package/dist/chunk-7HCJJATJ.js +0 -40
- package/dist/chunk-B7B2ACF4.js +0 -3794
- package/dist/chunk-D3ML6E4G.js +0 -3787
- package/dist/chunk-F3KCLICG.js +0 -77
- package/dist/chunk-FS6LHGAR.js +0 -87
- package/dist/chunk-GDFX3WTX.js +0 -78
- package/dist/chunk-LGP22FRF.js +0 -0
- package/dist/chunk-LYMGZWSR.js +0 -80
- package/dist/chunk-N2OYWNHF.js +0 -80
- package/dist/chunk-OA6PO3QG.js +0 -78
- package/dist/chunk-OBXZRDPY.js +0 -77
- package/dist/chunk-OI47EFQH.js +0 -82
- package/dist/chunk-RNUSCCKB.js +0 -183
- package/dist/chunk-T3UCSW2B.js +0 -81
- package/dist/chunk-XMNYZGXF.js +0 -84
- package/dist/chunk-YCQUK6KV.js +0 -85
|
@@ -148,28 +148,28 @@ declare const importsStatusSchema: z.ZodObject<{
|
|
|
148
148
|
errorCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
149
149
|
importId: z.ZodNumber;
|
|
150
150
|
invalidItemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
151
|
-
name: z.ZodString
|
|
151
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
152
152
|
status: z.ZodEnum<["QUEUED_FOR_IMPORT", "IN_PROGRESS", "DOC_FAILED", "VALIDATION_FAILED", "COMPLETED"]>;
|
|
153
153
|
totalItemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
154
154
|
validItemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
155
155
|
}, "strip", z.ZodTypeAny, {
|
|
156
156
|
status: "QUEUED_FOR_IMPORT" | "IN_PROGRESS" | "DOC_FAILED" | "VALIDATION_FAILED" | "COMPLETED";
|
|
157
157
|
importId: number;
|
|
158
|
-
name: string;
|
|
159
158
|
completedAt?: string | null | undefined;
|
|
160
159
|
docInEventId?: string | null | undefined;
|
|
161
160
|
errorCount?: number | null | undefined;
|
|
162
161
|
invalidItemCount?: number | null | undefined;
|
|
162
|
+
name?: string | null | undefined;
|
|
163
163
|
totalItemCount?: number | null | undefined;
|
|
164
164
|
validItemCount?: number | null | undefined;
|
|
165
165
|
}, {
|
|
166
166
|
status: "QUEUED_FOR_IMPORT" | "IN_PROGRESS" | "DOC_FAILED" | "VALIDATION_FAILED" | "COMPLETED";
|
|
167
167
|
importId: number;
|
|
168
|
-
name: string;
|
|
169
168
|
completedAt?: string | null | undefined;
|
|
170
169
|
docInEventId?: string | null | undefined;
|
|
171
170
|
errorCount?: number | null | undefined;
|
|
172
171
|
invalidItemCount?: number | null | undefined;
|
|
172
|
+
name?: string | null | undefined;
|
|
173
173
|
totalItemCount?: number | null | undefined;
|
|
174
174
|
validItemCount?: number | null | undefined;
|
|
175
175
|
}>;
|
|
@@ -587,7 +587,7 @@ declare const attributeDefinitionSchema: z.ZodObject<{
|
|
|
587
587
|
isDefault: boolean;
|
|
588
588
|
orderWeight: number;
|
|
589
589
|
}>, "many">;
|
|
590
|
-
attrRestrictions: z.ZodArray<z.ZodObject<{
|
|
590
|
+
attrRestrictions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
591
591
|
attrRestrictId: z.ZodNumber;
|
|
592
592
|
ignoreGlobal: z.ZodOptional<z.ZodBoolean>;
|
|
593
593
|
isDefault: z.ZodBoolean;
|
|
@@ -617,7 +617,7 @@ declare const attributeDefinitionSchema: z.ZodObject<{
|
|
|
617
617
|
ignoreGlobal?: boolean | undefined;
|
|
618
618
|
minLength?: number | undefined;
|
|
619
619
|
maxLength?: number | undefined;
|
|
620
|
-
}>, "many"
|
|
620
|
+
}>, "many">>;
|
|
621
621
|
attrRoundId: z.ZodNumber;
|
|
622
622
|
attrStorage: z.ZodObject<{
|
|
623
623
|
attrStorageId: z.ZodNumber;
|
|
@@ -974,7 +974,11 @@ declare const attributeDefinitionSchema: z.ZodObject<{
|
|
|
974
974
|
isDefault: boolean;
|
|
975
975
|
orderWeight: number;
|
|
976
976
|
};
|
|
977
|
-
|
|
977
|
+
attrStorage: {
|
|
978
|
+
attrStorageId: number;
|
|
979
|
+
storageName: string;
|
|
980
|
+
};
|
|
981
|
+
attrRestrictions?: {
|
|
978
982
|
repeatable: boolean;
|
|
979
983
|
isDefault: boolean;
|
|
980
984
|
attrRestrictId: number;
|
|
@@ -984,11 +988,7 @@ declare const attributeDefinitionSchema: z.ZodObject<{
|
|
|
984
988
|
ignoreGlobal?: boolean | undefined;
|
|
985
989
|
minLength?: number | undefined;
|
|
986
990
|
maxLength?: number | undefined;
|
|
987
|
-
}[];
|
|
988
|
-
attrStorage: {
|
|
989
|
-
attrStorageId: number;
|
|
990
|
-
storageName: string;
|
|
991
|
-
};
|
|
991
|
+
}[] | undefined;
|
|
992
992
|
attrValues?: {
|
|
993
993
|
value: string;
|
|
994
994
|
isDefault: boolean;
|
|
@@ -1091,7 +1091,11 @@ declare const attributeDefinitionSchema: z.ZodObject<{
|
|
|
1091
1091
|
isDefault: boolean;
|
|
1092
1092
|
orderWeight: number;
|
|
1093
1093
|
};
|
|
1094
|
-
|
|
1094
|
+
attrStorage: {
|
|
1095
|
+
attrStorageId: number;
|
|
1096
|
+
storageName: string;
|
|
1097
|
+
};
|
|
1098
|
+
attrRestrictions?: {
|
|
1095
1099
|
repeatable: boolean;
|
|
1096
1100
|
isDefault: boolean;
|
|
1097
1101
|
attrRestrictId: number;
|
|
@@ -1101,11 +1105,7 @@ declare const attributeDefinitionSchema: z.ZodObject<{
|
|
|
1101
1105
|
ignoreGlobal?: boolean | undefined;
|
|
1102
1106
|
minLength?: number | undefined;
|
|
1103
1107
|
maxLength?: number | undefined;
|
|
1104
|
-
}[];
|
|
1105
|
-
attrStorage: {
|
|
1106
|
-
attrStorageId: number;
|
|
1107
|
-
storageName: string;
|
|
1108
|
-
};
|
|
1108
|
+
}[] | undefined;
|
|
1109
1109
|
attrValues?: {
|
|
1110
1110
|
value: string;
|
|
1111
1111
|
isDefault: boolean;
|
|
@@ -3800,7 +3800,7 @@ var importsStatusSchema = z.object({
|
|
|
3800
3800
|
errorCount: z.number().nullish(),
|
|
3801
3801
|
importId: z.number(),
|
|
3802
3802
|
invalidItemCount: z.number().nullish(),
|
|
3803
|
-
name: z.string(),
|
|
3803
|
+
name: z.string().nullish(),
|
|
3804
3804
|
status: importStatusEnumSchema,
|
|
3805
3805
|
totalItemCount: z.number().nullish(),
|
|
3806
3806
|
validItemCount: z.number().nullish()
|
|
@@ -4008,7 +4008,7 @@ var attributeDefinitionSchema = z.object({
|
|
|
4008
4008
|
minLength: z.number().optional(),
|
|
4009
4009
|
maxLength: z.number().optional()
|
|
4010
4010
|
})
|
|
4011
|
-
),
|
|
4011
|
+
).optional(),
|
|
4012
4012
|
attrRoundId: z.number(),
|
|
4013
4013
|
attrStorage: z.object({
|
|
4014
4014
|
attrStorageId: z.number(),
|
package/dist/index.cjs
CHANGED
|
@@ -3849,7 +3849,7 @@ var importsStatusSchema = z.object({
|
|
|
3849
3849
|
errorCount: z.number().nullish(),
|
|
3850
3850
|
importId: z.number(),
|
|
3851
3851
|
invalidItemCount: z.number().nullish(),
|
|
3852
|
-
name: z.string(),
|
|
3852
|
+
name: z.string().nullish(),
|
|
3853
3853
|
status: importStatusEnumSchema,
|
|
3854
3854
|
totalItemCount: z.number().nullish(),
|
|
3855
3855
|
validItemCount: z.number().nullish()
|
|
@@ -4181,7 +4181,7 @@ var attributeDefinitionSchema = z.object({
|
|
|
4181
4181
|
minLength: z.number().optional(),
|
|
4182
4182
|
maxLength: z.number().optional()
|
|
4183
4183
|
})
|
|
4184
|
-
),
|
|
4184
|
+
).optional(),
|
|
4185
4185
|
attrRoundId: z.number(),
|
|
4186
4186
|
attrStorage: z.object({
|
|
4187
4187
|
attrStorageId: z.number(),
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AsstClient, I as Import, a as ImportsStatus, V as VendorPartnerAttGroups, E as Export, b as AttrProdType, T as TradingPartnerAccessByCompanyId, c as ItemCategoriesSearch, d as AttributeMetaData, e as AttributesByCompany, f as AttributeDefinition, g as AttributeValidValues, L as Locale, S as SpreadsheetTemplate, U as UserAccount, h as ItemSearchView, i as ItemDetailView, j as ItemErrorDetailsResult } from './ItemErrorDetailsResult-
|
|
2
|
-
export { k as AsstClientOptions, l as AsstUrl, B as BASE_URLS, m as Env, n as ImportErrors } from './ItemErrorDetailsResult-
|
|
1
|
+
import { A as AsstClient, I as Import, a as ImportsStatus, V as VendorPartnerAttGroups, E as Export, b as AttrProdType, T as TradingPartnerAccessByCompanyId, c as ItemCategoriesSearch, d as AttributeMetaData, e as AttributesByCompany, f as AttributeDefinition, g as AttributeValidValues, L as Locale, S as SpreadsheetTemplate, U as UserAccount, h as ItemSearchView, i as ItemDetailView, j as ItemErrorDetailsResult } from './ItemErrorDetailsResult-c12c4eac.js';
|
|
2
|
+
export { k as AsstClientOptions, l as AsstUrl, B as BASE_URLS, m as Env, n as ImportErrors } from './ItemErrorDetailsResult-c12c4eac.js';
|
|
3
3
|
import { G as GenerateImportTemplateParams, D as DownLoadItemsParams, I as ItemDetail } from './ItemErrorDetails-1614b511.js';
|
|
4
4
|
export { g as AttrDatatypeNameEnum, q as AttributeDetail, h as AttributeGroup, A as AttributeSummary, B as Bulb, r as CategoryEnum, s as ComponentDetails, C as Connection, E as ExportDayOfWeek, d as ExportFrequency, e as ExportType, t as GroupedAttributeList, u as GroupedAttributes, v as GroupedItem, H as HierarchyCategory, w as HierarchyDetails, j as IdentityServiceDatetimePreferences, k as IdentityServiceOrganization, i as IdentityServiceOrganizationMetadata, l as IdentityServicePreferences, m as IdentityServiceUser, a as ImportDetails, b as ImportError, c as ImportStatusEnum, f as ItemCategory, K as ItemErrorDetails, n as ItemHeader, o as ItemMap, x as ItemPrice, p as ItemTable, M as MediaItem, z as PackComponent, y as PackComponentDetails, J as PackComponentItemInfo, P as PhaseEnum, R as RegisteredService, F as RepeatableGroup, S as SpreadsheetTemplateCompany, T as TradingPartnerStage } from './ItemErrorDetails-1614b511.js';
|
|
5
5
|
import 'ky-universal';
|
package/dist/index.js
CHANGED
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
createSpreadsheetTemplateApi,
|
|
12
12
|
createTradingPartnerAccessApi,
|
|
13
13
|
createWhoAmIApi
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OVOZIZA2.js";
|
|
15
15
|
import {
|
|
16
16
|
AsstClient,
|
|
17
17
|
BASE_URLS
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3JRE7YYE.js";
|
|
19
19
|
export {
|
|
20
20
|
AsstClient,
|
|
21
21
|
BASE_URLS,
|
package/dist/msw.cjs
CHANGED
|
@@ -3781,7 +3781,7 @@ var importsStatusSchema = z.object({
|
|
|
3781
3781
|
errorCount: z.number().nullish(),
|
|
3782
3782
|
importId: z.number(),
|
|
3783
3783
|
invalidItemCount: z.number().nullish(),
|
|
3784
|
-
name: z.string(),
|
|
3784
|
+
name: z.string().nullish(),
|
|
3785
3785
|
status: importStatusEnumSchema,
|
|
3786
3786
|
totalItemCount: z.number().nullish(),
|
|
3787
3787
|
validItemCount: z.number().nullish()
|
|
@@ -4406,7 +4406,7 @@ var attributeDefinitionSchema = z.object({
|
|
|
4406
4406
|
minLength: z.number().optional(),
|
|
4407
4407
|
maxLength: z.number().optional()
|
|
4408
4408
|
})
|
|
4409
|
-
),
|
|
4409
|
+
).optional(),
|
|
4410
4410
|
attrRoundId: z.number(),
|
|
4411
4411
|
attrStorage: z.object({
|
|
4412
4412
|
attrStorageId: z.number(),
|
package/dist/msw.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as msw from 'msw';
|
|
2
2
|
import { ResponseResolver, RestRequest, RestContext, DefaultBodyType } from 'msw';
|
|
3
3
|
import * as msw_lib_glossary_de6278a9 from 'msw/lib/glossary-de6278a9';
|
|
4
|
-
import { A as AsstClient, n as ImportErrors, I as Import, a as ImportsStatus, V as VendorPartnerAttGroups, c as ItemCategoriesSearch, E as Export, o as attrProdTypeSchema, T as TradingPartnerAccessByCompanyId, U as UserAccount, j as ItemErrorDetailsResult, L as Locale, h as ItemSearchView, i as ItemDetailView, d as AttributeMetaData, e as AttributesByCompany, f as AttributeDefinition, g as AttributeValidValues, S as SpreadsheetTemplate } from './ItemErrorDetailsResult-
|
|
4
|
+
import { A as AsstClient, n as ImportErrors, I as Import, a as ImportsStatus, V as VendorPartnerAttGroups, c as ItemCategoriesSearch, E as Export, o as attrProdTypeSchema, T as TradingPartnerAccessByCompanyId, U as UserAccount, j as ItemErrorDetailsResult, L as Locale, h as ItemSearchView, i as ItemDetailView, d as AttributeMetaData, e as AttributesByCompany, f as AttributeDefinition, g as AttributeValidValues, S as SpreadsheetTemplate } from './ItemErrorDetailsResult-c12c4eac.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import 'ky-universal';
|
|
7
7
|
import 'ky';
|
|
@@ -71,11 +71,11 @@ declare function createImportsApiHandlers(client: AsstClient): {
|
|
|
71
71
|
generateData(): {
|
|
72
72
|
status: "QUEUED_FOR_IMPORT" | "IN_PROGRESS" | "DOC_FAILED" | "VALIDATION_FAILED" | "COMPLETED";
|
|
73
73
|
importId: number;
|
|
74
|
-
name: string;
|
|
75
74
|
completedAt?: string | null | undefined;
|
|
76
75
|
docInEventId?: string | null | undefined;
|
|
77
76
|
errorCount?: number | null | undefined;
|
|
78
77
|
invalidItemCount?: number | null | undefined;
|
|
78
|
+
name?: string | null | undefined;
|
|
79
79
|
totalItemCount?: number | null | undefined;
|
|
80
80
|
validItemCount?: number | null | undefined;
|
|
81
81
|
}[];
|
|
@@ -601,7 +601,11 @@ declare function createAttributesApiHandlers(client: AsstClient): {
|
|
|
601
601
|
isDefault: boolean;
|
|
602
602
|
orderWeight: number;
|
|
603
603
|
};
|
|
604
|
-
|
|
604
|
+
attrStorage: {
|
|
605
|
+
attrStorageId: number;
|
|
606
|
+
storageName: string;
|
|
607
|
+
};
|
|
608
|
+
attrRestrictions?: {
|
|
605
609
|
locale: string;
|
|
606
610
|
repeatable: boolean;
|
|
607
611
|
isDefault: boolean;
|
|
@@ -611,11 +615,7 @@ declare function createAttributesApiHandlers(client: AsstClient): {
|
|
|
611
615
|
ignoreGlobal?: boolean | undefined;
|
|
612
616
|
minLength?: number | undefined;
|
|
613
617
|
maxLength?: number | undefined;
|
|
614
|
-
}[];
|
|
615
|
-
attrStorage: {
|
|
616
|
-
attrStorageId: number;
|
|
617
|
-
storageName: string;
|
|
618
|
-
};
|
|
618
|
+
}[] | undefined;
|
|
619
619
|
attrValues?: {
|
|
620
620
|
value: string;
|
|
621
621
|
locale: string;
|
package/dist/msw.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
BASE_URL8,
|
|
13
13
|
BASE_URL9,
|
|
14
14
|
BASE_URL_V2
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OVOZIZA2.js";
|
|
16
16
|
import {
|
|
17
17
|
attrProdTypeSchema,
|
|
18
18
|
attributeDefinitionSchema,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
userAccountSchema,
|
|
34
34
|
vendorPartnerAttGroupsSchema,
|
|
35
35
|
z
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3JRE7YYE.js";
|
|
37
37
|
|
|
38
38
|
// lib/imports/mockHandlers.ts
|
|
39
39
|
import { generateMock } from "@anatine/zod-mock";
|
package/dist/zod.cjs
CHANGED
|
@@ -3846,7 +3846,7 @@ var importsStatusSchema = z.object({
|
|
|
3846
3846
|
errorCount: z.number().nullish(),
|
|
3847
3847
|
importId: z.number(),
|
|
3848
3848
|
invalidItemCount: z.number().nullish(),
|
|
3849
|
-
name: z.string(),
|
|
3849
|
+
name: z.string().nullish(),
|
|
3850
3850
|
status: importStatusEnumSchema,
|
|
3851
3851
|
totalItemCount: z.number().nullish(),
|
|
3852
3852
|
validItemCount: z.number().nullish()
|
|
@@ -4054,7 +4054,7 @@ var attributeDefinitionSchema = z.object({
|
|
|
4054
4054
|
minLength: z.number().optional(),
|
|
4055
4055
|
maxLength: z.number().optional()
|
|
4056
4056
|
})
|
|
4057
|
-
),
|
|
4057
|
+
).optional(),
|
|
4058
4058
|
attrRoundId: z.number(),
|
|
4059
4059
|
attrStorage: z.object({
|
|
4060
4060
|
attrStorageId: z.number(),
|
package/dist/zod.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { o as attrProdTypeSchema, w as attributeDefinitionSchema, x as attributeMetaDataSchema, z as attributeValidValuesSchema, y as attributesByCompanySchema, p as envSchema, t as exportSchema, q as importErrorsSchema, r as importSchema, s as importsStatusSchema, u as itemCategoriesSearchSchema, D as itemDetailViewSchema, K as itemErrorDetailsResultSchema, C as itemSearchViewSchema, F as localeSchema, G as spreadsheetTemplateSchema, H as tradingPartnerAccessByCompanyIdSchema, J as userAccountSchema, v as vendorPartnerAttGroupsSchema } from './ItemErrorDetailsResult-
|
|
1
|
+
export { o as attrProdTypeSchema, w as attributeDefinitionSchema, x as attributeMetaDataSchema, z as attributeValidValuesSchema, y as attributesByCompanySchema, p as envSchema, t as exportSchema, q as importErrorsSchema, r as importSchema, s as importsStatusSchema, u as itemCategoriesSearchSchema, D as itemDetailViewSchema, K as itemErrorDetailsResultSchema, C as itemSearchViewSchema, F as localeSchema, G as spreadsheetTemplateSchema, H as tradingPartnerAccessByCompanyIdSchema, J as userAccountSchema, v as vendorPartnerAttGroupsSchema } from './ItemErrorDetailsResult-c12c4eac.js';
|
|
2
2
|
export { Z as attrDatatypeNameEnumSchema, ac as attributeDetailSchema, _ as attributeGroupSchema, $ as attributeSummarySchema, a5 as bulbSchema, aa as categoryEnumSchema, ae as componentDetailsSchema, am as connectionSchema, X as downLoadItemsParamsSchema, U as exportDayOfWeekEnum, V as exportFrequencyEnum, W as exportTypeEnum, Q as generateImportTemplateParamsSchema, ai as groupedAttributeListSchema, ag as groupedAttributesSchema, a9 as groupedItemSchema, ah as hierarchyCategorySchema, af as hierarchyDetailsSchema, an as identityServiceDatetimePreferencesSchema, ao as identityServiceOrganizationMetadataSchema, ap as identityServiceOrganizationSchema, aq as identityServicePreferencesSchema, ar as identityServiceUserSchema, L as importDetailSchema, N as importErrorSchema, O as importStatusEnumSchema, Y as itemCategorySchema, a8 as itemDetailSchema, at as itemErrorDetailsSchema, a0 as itemHeaderSchema, a1 as itemMapSchema, a6 as itemPriceSchema, a2 as itemTableSchema, a7 as mediaItemSchema, aj as packComponentDetailsSchema, ak as packComponentItemInfoSchema, ab as packComponentSchema, a3 as phaseEnumSchema, as as registeredServiceSchema, ad as repeatableGroupSchema, al as spreadsheetTemplateCompanySchema, a4 as tradingPartnerStageSchema } from './ItemErrorDetails-1614b511.js';
|
|
3
3
|
import 'ky-universal';
|
|
4
4
|
import 'ky';
|
package/dist/zod.js
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Assortment Api is a collection of HTTP functions to use Assortment endpoints",
|
|
4
4
|
"author": "Assortment",
|
|
5
5
|
"repository": "https://github.com/SPSCommerce/assortment-main/tree/main/ui/packages/asst-api",
|
|
6
|
-
"version": "0.0.1-beta.
|
|
6
|
+
"version": "0.0.1-beta.8",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const importSchema: z.ZodObject<{
|
|
4
|
-
count: z.ZodNumber;
|
|
5
|
-
imports: z.ZodArray<z.ZodObject<{
|
|
6
|
-
completedAt: z.ZodString;
|
|
7
|
-
errorCount: z.ZodNumber;
|
|
8
|
-
importId: z.ZodNumber;
|
|
9
|
-
name: z.ZodString;
|
|
10
|
-
startedAt: z.ZodString;
|
|
11
|
-
status: z.ZodString;
|
|
12
|
-
uploadedAt: z.ZodString;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
completedAt: string;
|
|
15
|
-
errorCount: number;
|
|
16
|
-
importId: number;
|
|
17
|
-
name: string;
|
|
18
|
-
startedAt: string;
|
|
19
|
-
status: string;
|
|
20
|
-
uploadedAt: string;
|
|
21
|
-
}, {
|
|
22
|
-
completedAt: string;
|
|
23
|
-
errorCount: number;
|
|
24
|
-
importId: number;
|
|
25
|
-
name: string;
|
|
26
|
-
startedAt: string;
|
|
27
|
-
status: string;
|
|
28
|
-
uploadedAt: string;
|
|
29
|
-
}>, "many">;
|
|
30
|
-
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
count: number;
|
|
32
|
-
imports: {
|
|
33
|
-
completedAt: string;
|
|
34
|
-
errorCount: number;
|
|
35
|
-
importId: number;
|
|
36
|
-
name: string;
|
|
37
|
-
startedAt: string;
|
|
38
|
-
status: string;
|
|
39
|
-
uploadedAt: string;
|
|
40
|
-
}[];
|
|
41
|
-
}, {
|
|
42
|
-
count: number;
|
|
43
|
-
imports: {
|
|
44
|
-
completedAt: string;
|
|
45
|
-
errorCount: number;
|
|
46
|
-
importId: number;
|
|
47
|
-
name: string;
|
|
48
|
-
startedAt: string;
|
|
49
|
-
status: string;
|
|
50
|
-
uploadedAt: string;
|
|
51
|
-
}[];
|
|
52
|
-
}>;
|
|
53
|
-
type Import = z.infer<typeof importSchema>;
|
|
54
|
-
|
|
55
|
-
declare const importErrorsSchema: z.ZodObject<{
|
|
56
|
-
count: z.ZodNumber;
|
|
57
|
-
errors: z.ZodArray<z.ZodObject<{
|
|
58
|
-
attribute: z.ZodString;
|
|
59
|
-
description: z.ZodString;
|
|
60
|
-
importErrorId: z.ZodNumber;
|
|
61
|
-
row: z.ZodNumber;
|
|
62
|
-
}, "strip", z.ZodTypeAny, {
|
|
63
|
-
attribute: string;
|
|
64
|
-
description: string;
|
|
65
|
-
importErrorId: number;
|
|
66
|
-
row: number;
|
|
67
|
-
}, {
|
|
68
|
-
attribute: string;
|
|
69
|
-
description: string;
|
|
70
|
-
importErrorId: number;
|
|
71
|
-
row: number;
|
|
72
|
-
}>, "many">;
|
|
73
|
-
hasNext: z.ZodBoolean;
|
|
74
|
-
importId: z.ZodNumber;
|
|
75
|
-
totalCount: z.ZodNumber;
|
|
76
|
-
}, "strip", z.ZodTypeAny, {
|
|
77
|
-
importId: number;
|
|
78
|
-
count: number;
|
|
79
|
-
errors: {
|
|
80
|
-
attribute: string;
|
|
81
|
-
description: string;
|
|
82
|
-
importErrorId: number;
|
|
83
|
-
row: number;
|
|
84
|
-
}[];
|
|
85
|
-
hasNext: boolean;
|
|
86
|
-
totalCount: number;
|
|
87
|
-
}, {
|
|
88
|
-
importId: number;
|
|
89
|
-
count: number;
|
|
90
|
-
errors: {
|
|
91
|
-
attribute: string;
|
|
92
|
-
description: string;
|
|
93
|
-
importErrorId: number;
|
|
94
|
-
row: number;
|
|
95
|
-
}[];
|
|
96
|
-
hasNext: boolean;
|
|
97
|
-
totalCount: number;
|
|
98
|
-
}>;
|
|
99
|
-
type ImportErrors = z.infer<typeof importErrorsSchema>;
|
|
100
|
-
|
|
101
|
-
declare const importsStatusSchema: z.ZodObject<{
|
|
102
|
-
completedAt: z.ZodOptional<z.ZodString>;
|
|
103
|
-
docInEventId: z.ZodOptional<z.ZodString>;
|
|
104
|
-
errorCount: z.ZodOptional<z.ZodNumber>;
|
|
105
|
-
importId: z.ZodNumber;
|
|
106
|
-
invalidItemCount: z.ZodOptional<z.ZodNumber>;
|
|
107
|
-
name: z.ZodString;
|
|
108
|
-
status: z.ZodEnum<["QUEUED_FOR_IMPORT", "IN_PROGRESS", "DOC_FAILED", "VALIDATION_FAILED", "COMPLETED"]>;
|
|
109
|
-
totalItemCount: z.ZodOptional<z.ZodNumber>;
|
|
110
|
-
validItemCount: z.ZodOptional<z.ZodNumber>;
|
|
111
|
-
}, "strip", z.ZodTypeAny, {
|
|
112
|
-
importId: number;
|
|
113
|
-
name: string;
|
|
114
|
-
status: "QUEUED_FOR_IMPORT" | "IN_PROGRESS" | "DOC_FAILED" | "VALIDATION_FAILED" | "COMPLETED";
|
|
115
|
-
completedAt?: string | undefined;
|
|
116
|
-
docInEventId?: string | undefined;
|
|
117
|
-
errorCount?: number | undefined;
|
|
118
|
-
invalidItemCount?: number | undefined;
|
|
119
|
-
totalItemCount?: number | undefined;
|
|
120
|
-
validItemCount?: number | undefined;
|
|
121
|
-
}, {
|
|
122
|
-
importId: number;
|
|
123
|
-
name: string;
|
|
124
|
-
status: "QUEUED_FOR_IMPORT" | "IN_PROGRESS" | "DOC_FAILED" | "VALIDATION_FAILED" | "COMPLETED";
|
|
125
|
-
completedAt?: string | undefined;
|
|
126
|
-
docInEventId?: string | undefined;
|
|
127
|
-
errorCount?: number | undefined;
|
|
128
|
-
invalidItemCount?: number | undefined;
|
|
129
|
-
totalItemCount?: number | undefined;
|
|
130
|
-
validItemCount?: number | undefined;
|
|
131
|
-
}>;
|
|
132
|
-
type ImportsStatus = z.infer<typeof importsStatusSchema>;
|
|
133
|
-
|
|
134
|
-
export { Import as I, ImportsStatus as a, ImportErrors as b, importSchema as c, importsStatusSchema as d, importErrorsSchema as i };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const importDetailSchema: z.ZodObject<{
|
|
4
|
-
completedAt: z.ZodString;
|
|
5
|
-
errorCount: z.ZodNumber;
|
|
6
|
-
importId: z.ZodNumber;
|
|
7
|
-
name: z.ZodString;
|
|
8
|
-
startedAt: z.ZodString;
|
|
9
|
-
status: z.ZodString;
|
|
10
|
-
uploadedAt: z.ZodString;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
completedAt: string;
|
|
13
|
-
errorCount: number;
|
|
14
|
-
importId: number;
|
|
15
|
-
name: string;
|
|
16
|
-
startedAt: string;
|
|
17
|
-
status: string;
|
|
18
|
-
uploadedAt: string;
|
|
19
|
-
}, {
|
|
20
|
-
completedAt: string;
|
|
21
|
-
errorCount: number;
|
|
22
|
-
importId: number;
|
|
23
|
-
name: string;
|
|
24
|
-
startedAt: string;
|
|
25
|
-
status: string;
|
|
26
|
-
uploadedAt: string;
|
|
27
|
-
}>;
|
|
28
|
-
type ImportDetails = z.infer<typeof importDetailSchema>;
|
|
29
|
-
|
|
30
|
-
declare const importErrorSchema: z.ZodObject<{
|
|
31
|
-
attribute: z.ZodString;
|
|
32
|
-
description: z.ZodString;
|
|
33
|
-
importErrorId: z.ZodNumber;
|
|
34
|
-
row: z.ZodNumber;
|
|
35
|
-
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
attribute: string;
|
|
37
|
-
description: string;
|
|
38
|
-
importErrorId: number;
|
|
39
|
-
row: number;
|
|
40
|
-
}, {
|
|
41
|
-
attribute: string;
|
|
42
|
-
description: string;
|
|
43
|
-
importErrorId: number;
|
|
44
|
-
row: number;
|
|
45
|
-
}>;
|
|
46
|
-
type ImportError = z.infer<typeof importErrorSchema>;
|
|
47
|
-
|
|
48
|
-
declare const importStatusEnumSchema: z.ZodEnum<["QUEUED_FOR_IMPORT", "IN_PROGRESS", "DOC_FAILED", "VALIDATION_FAILED", "COMPLETED"]>;
|
|
49
|
-
type ImportStatusEnum = z.infer<typeof importStatusEnumSchema>;
|
|
50
|
-
|
|
51
|
-
export { ImportDetails as I, ImportError as a, ImportStatusEnum as b, importErrorSchema as c, importStatusEnumSchema as d, importDetailSchema as i };
|