@spscommerce/asst-api 2.0.0 → 4.1.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/{chunk-GDARBI5R.js → chunk-BLMS4KUD.js} +19 -40
- package/dist/{chunk-Z6PXGHNC.js → chunk-SI7CWAHC.js} +6 -2
- package/dist/index.cjs +24 -41
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/msw.cjs +19 -40
- package/dist/msw.js +2 -2
- package/dist/{zod-BUCQsGOm.d.ts → zod-BdDmL7rg.d.ts} +6 -0
- package/dist/{zod-6gU8y6oS.d.cts → zod-DBbdP-KT.d.cts} +6 -0
- package/dist/zod.cjs +19 -40
- package/dist/zod.d.cts +1 -1
- package/dist/zod.d.ts +1 -1
- package/dist/zod.js +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ var __export = (target, all) => {
|
|
|
7
7
|
// lib/asstClient.ts
|
|
8
8
|
import ky from "ky";
|
|
9
9
|
|
|
10
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
10
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/external.js
|
|
11
11
|
var external_exports = {};
|
|
12
12
|
__export(external_exports, {
|
|
13
13
|
BRAND: () => BRAND,
|
|
@@ -119,7 +119,7 @@ __export(external_exports, {
|
|
|
119
119
|
void: () => voidType
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
122
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/helpers/util.js
|
|
123
123
|
var util;
|
|
124
124
|
(function(util2) {
|
|
125
125
|
util2.assertEqual = (_) => {
|
|
@@ -253,7 +253,7 @@ var getParsedType = (data) => {
|
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
256
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/ZodError.js
|
|
257
257
|
var ZodIssueCode = util.arrayToEnum([
|
|
258
258
|
"invalid_type",
|
|
259
259
|
"invalid_literal",
|
|
@@ -370,7 +370,7 @@ ZodError.create = (issues) => {
|
|
|
370
370
|
return error;
|
|
371
371
|
};
|
|
372
372
|
|
|
373
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
373
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/locales/en.js
|
|
374
374
|
var errorMap = (issue, _ctx) => {
|
|
375
375
|
let message;
|
|
376
376
|
switch (issue.code) {
|
|
@@ -471,7 +471,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
471
471
|
};
|
|
472
472
|
var en_default = errorMap;
|
|
473
473
|
|
|
474
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
474
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/errors.js
|
|
475
475
|
var overrideErrorMap = en_default;
|
|
476
476
|
function setErrorMap(map) {
|
|
477
477
|
overrideErrorMap = map;
|
|
@@ -480,7 +480,7 @@ function getErrorMap() {
|
|
|
480
480
|
return overrideErrorMap;
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
483
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/helpers/parseUtil.js
|
|
484
484
|
var makeIssue = (params) => {
|
|
485
485
|
const { data, path, errorMaps, issueData } = params;
|
|
486
486
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -590,27 +590,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
590
590
|
var isValid = (x) => x.status === "valid";
|
|
591
591
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
592
592
|
|
|
593
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
593
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/helpers/errorUtil.js
|
|
594
594
|
var errorUtil;
|
|
595
595
|
(function(errorUtil2) {
|
|
596
596
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
597
597
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
598
598
|
})(errorUtil || (errorUtil = {}));
|
|
599
599
|
|
|
600
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
601
|
-
var __classPrivateFieldGet = function(receiver, state, kind, f) {
|
|
602
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
603
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
604
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
605
|
-
};
|
|
606
|
-
var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
|
|
607
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
608
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
609
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
610
|
-
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
611
|
-
};
|
|
612
|
-
var _ZodEnum_cache;
|
|
613
|
-
var _ZodNativeEnum_cache;
|
|
600
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/types.js
|
|
614
601
|
var ParseInputLazyPath = class {
|
|
615
602
|
constructor(parent, value, path, key) {
|
|
616
603
|
this._cachedPath = [];
|
|
@@ -3435,10 +3422,6 @@ function createZodEnum(values, params) {
|
|
|
3435
3422
|
});
|
|
3436
3423
|
}
|
|
3437
3424
|
var ZodEnum = class _ZodEnum extends ZodType {
|
|
3438
|
-
constructor() {
|
|
3439
|
-
super(...arguments);
|
|
3440
|
-
_ZodEnum_cache.set(this, void 0);
|
|
3441
|
-
}
|
|
3442
3425
|
_parse(input) {
|
|
3443
3426
|
if (typeof input.data !== "string") {
|
|
3444
3427
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -3450,10 +3433,10 @@ var ZodEnum = class _ZodEnum extends ZodType {
|
|
|
3450
3433
|
});
|
|
3451
3434
|
return INVALID;
|
|
3452
3435
|
}
|
|
3453
|
-
if (!
|
|
3454
|
-
|
|
3436
|
+
if (!this._cache) {
|
|
3437
|
+
this._cache = new Set(this._def.values);
|
|
3455
3438
|
}
|
|
3456
|
-
if (!
|
|
3439
|
+
if (!this._cache.has(input.data)) {
|
|
3457
3440
|
const ctx = this._getOrReturnCtx(input);
|
|
3458
3441
|
const expectedValues = this._def.values;
|
|
3459
3442
|
addIssueToContext(ctx, {
|
|
@@ -3502,13 +3485,8 @@ var ZodEnum = class _ZodEnum extends ZodType {
|
|
|
3502
3485
|
});
|
|
3503
3486
|
}
|
|
3504
3487
|
};
|
|
3505
|
-
_ZodEnum_cache = /* @__PURE__ */ new WeakMap();
|
|
3506
3488
|
ZodEnum.create = createZodEnum;
|
|
3507
3489
|
var ZodNativeEnum = class extends ZodType {
|
|
3508
|
-
constructor() {
|
|
3509
|
-
super(...arguments);
|
|
3510
|
-
_ZodNativeEnum_cache.set(this, void 0);
|
|
3511
|
-
}
|
|
3512
3490
|
_parse(input) {
|
|
3513
3491
|
const nativeEnumValues = util.getValidEnumValues(this._def.values);
|
|
3514
3492
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -3521,10 +3499,10 @@ var ZodNativeEnum = class extends ZodType {
|
|
|
3521
3499
|
});
|
|
3522
3500
|
return INVALID;
|
|
3523
3501
|
}
|
|
3524
|
-
if (!
|
|
3525
|
-
|
|
3502
|
+
if (!this._cache) {
|
|
3503
|
+
this._cache = new Set(util.getValidEnumValues(this._def.values));
|
|
3526
3504
|
}
|
|
3527
|
-
if (!
|
|
3505
|
+
if (!this._cache.has(input.data)) {
|
|
3528
3506
|
const expectedValues = util.objectValues(nativeEnumValues);
|
|
3529
3507
|
addIssueToContext(ctx, {
|
|
3530
3508
|
received: ctx.data,
|
|
@@ -3539,7 +3517,6 @@ var ZodNativeEnum = class extends ZodType {
|
|
|
3539
3517
|
return this._def.values;
|
|
3540
3518
|
}
|
|
3541
3519
|
};
|
|
3542
|
-
_ZodNativeEnum_cache = /* @__PURE__ */ new WeakMap();
|
|
3543
3520
|
ZodNativeEnum.create = (values, params) => {
|
|
3544
3521
|
return new ZodNativeEnum({
|
|
3545
3522
|
values,
|
|
@@ -3680,7 +3657,7 @@ var ZodEffects = class extends ZodType {
|
|
|
3680
3657
|
parent: ctx
|
|
3681
3658
|
});
|
|
3682
3659
|
if (!isValid(base))
|
|
3683
|
-
return
|
|
3660
|
+
return INVALID;
|
|
3684
3661
|
const result = effect.transform(base.value, checkCtx);
|
|
3685
3662
|
if (result instanceof Promise) {
|
|
3686
3663
|
throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
|
|
@@ -3689,7 +3666,7 @@ var ZodEffects = class extends ZodType {
|
|
|
3689
3666
|
} else {
|
|
3690
3667
|
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
|
|
3691
3668
|
if (!isValid(base))
|
|
3692
|
-
return
|
|
3669
|
+
return INVALID;
|
|
3693
3670
|
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
3694
3671
|
status: status.value,
|
|
3695
3672
|
value: result
|
|
@@ -4259,7 +4236,9 @@ var exportSchema = external_exports.object({
|
|
|
4259
4236
|
// lib/exports/models/DownloadItemsParams.ts
|
|
4260
4237
|
var downLoadItemsParamsSchema = external_exports.object({
|
|
4261
4238
|
"multi-sheet": external_exports.boolean(),
|
|
4262
|
-
ids: external_exports.array(external_exports.string())
|
|
4239
|
+
ids: external_exports.array(external_exports.string()),
|
|
4240
|
+
availableAttributes: external_exports.array(external_exports.string()).optional(),
|
|
4241
|
+
orgId: external_exports.string().optional()
|
|
4263
4242
|
});
|
|
4264
4243
|
|
|
4265
4244
|
// lib/categories/models/ItemCategory.ts
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
tradingPartnerAccessByCompanyIdSchema,
|
|
24
24
|
userAccountSchema,
|
|
25
25
|
vendorPartnerAttGroupsSchema
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-BLMS4KUD.js";
|
|
27
27
|
|
|
28
28
|
// lib/imports/index.ts
|
|
29
29
|
var BASE_URL = "imports";
|
|
@@ -93,7 +93,11 @@ function createExportsApi(client) {
|
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
async function downloadItems(params) {
|
|
96
|
-
const searchParams = {
|
|
96
|
+
const searchParams = {
|
|
97
|
+
...params,
|
|
98
|
+
ids: params.ids.join(","),
|
|
99
|
+
availableAttributes: params.availableAttributes?.join(",") ?? ""
|
|
100
|
+
};
|
|
97
101
|
const response = await client.get(`${BASE_URL2}/spreadsheet/by-item`, {
|
|
98
102
|
searchParams,
|
|
99
103
|
headers: {
|
package/dist/index.cjs
CHANGED
|
@@ -57,7 +57,7 @@ module.exports = __toCommonJS(lib_exports);
|
|
|
57
57
|
// lib/asstClient.ts
|
|
58
58
|
var import_ky = __toESM(require("ky"), 1);
|
|
59
59
|
|
|
60
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
60
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/external.js
|
|
61
61
|
var external_exports = {};
|
|
62
62
|
__export(external_exports, {
|
|
63
63
|
BRAND: () => BRAND,
|
|
@@ -169,7 +169,7 @@ __export(external_exports, {
|
|
|
169
169
|
void: () => voidType
|
|
170
170
|
});
|
|
171
171
|
|
|
172
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
172
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/helpers/util.js
|
|
173
173
|
var util;
|
|
174
174
|
(function(util2) {
|
|
175
175
|
util2.assertEqual = (_) => {
|
|
@@ -303,7 +303,7 @@ var getParsedType = (data) => {
|
|
|
303
303
|
}
|
|
304
304
|
};
|
|
305
305
|
|
|
306
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
306
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/ZodError.js
|
|
307
307
|
var ZodIssueCode = util.arrayToEnum([
|
|
308
308
|
"invalid_type",
|
|
309
309
|
"invalid_literal",
|
|
@@ -420,7 +420,7 @@ ZodError.create = (issues) => {
|
|
|
420
420
|
return error;
|
|
421
421
|
};
|
|
422
422
|
|
|
423
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
423
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/locales/en.js
|
|
424
424
|
var errorMap = (issue, _ctx) => {
|
|
425
425
|
let message;
|
|
426
426
|
switch (issue.code) {
|
|
@@ -521,7 +521,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
521
521
|
};
|
|
522
522
|
var en_default = errorMap;
|
|
523
523
|
|
|
524
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
524
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/errors.js
|
|
525
525
|
var overrideErrorMap = en_default;
|
|
526
526
|
function setErrorMap(map) {
|
|
527
527
|
overrideErrorMap = map;
|
|
@@ -530,7 +530,7 @@ function getErrorMap() {
|
|
|
530
530
|
return overrideErrorMap;
|
|
531
531
|
}
|
|
532
532
|
|
|
533
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
533
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/helpers/parseUtil.js
|
|
534
534
|
var makeIssue = (params) => {
|
|
535
535
|
const { data, path, errorMaps, issueData } = params;
|
|
536
536
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -640,27 +640,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
640
640
|
var isValid = (x) => x.status === "valid";
|
|
641
641
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
642
642
|
|
|
643
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
643
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/helpers/errorUtil.js
|
|
644
644
|
var errorUtil;
|
|
645
645
|
(function(errorUtil2) {
|
|
646
646
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
647
647
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
648
648
|
})(errorUtil || (errorUtil = {}));
|
|
649
649
|
|
|
650
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
651
|
-
var __classPrivateFieldGet = function(receiver, state, kind, f) {
|
|
652
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
653
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
654
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
655
|
-
};
|
|
656
|
-
var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
|
|
657
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
658
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
659
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
660
|
-
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
661
|
-
};
|
|
662
|
-
var _ZodEnum_cache;
|
|
663
|
-
var _ZodNativeEnum_cache;
|
|
650
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/types.js
|
|
664
651
|
var ParseInputLazyPath = class {
|
|
665
652
|
constructor(parent, value, path, key) {
|
|
666
653
|
this._cachedPath = [];
|
|
@@ -3485,10 +3472,6 @@ function createZodEnum(values, params) {
|
|
|
3485
3472
|
});
|
|
3486
3473
|
}
|
|
3487
3474
|
var ZodEnum = class _ZodEnum extends ZodType {
|
|
3488
|
-
constructor() {
|
|
3489
|
-
super(...arguments);
|
|
3490
|
-
_ZodEnum_cache.set(this, void 0);
|
|
3491
|
-
}
|
|
3492
3475
|
_parse(input) {
|
|
3493
3476
|
if (typeof input.data !== "string") {
|
|
3494
3477
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -3500,10 +3483,10 @@ var ZodEnum = class _ZodEnum extends ZodType {
|
|
|
3500
3483
|
});
|
|
3501
3484
|
return INVALID;
|
|
3502
3485
|
}
|
|
3503
|
-
if (!
|
|
3504
|
-
|
|
3486
|
+
if (!this._cache) {
|
|
3487
|
+
this._cache = new Set(this._def.values);
|
|
3505
3488
|
}
|
|
3506
|
-
if (!
|
|
3489
|
+
if (!this._cache.has(input.data)) {
|
|
3507
3490
|
const ctx = this._getOrReturnCtx(input);
|
|
3508
3491
|
const expectedValues = this._def.values;
|
|
3509
3492
|
addIssueToContext(ctx, {
|
|
@@ -3552,13 +3535,8 @@ var ZodEnum = class _ZodEnum extends ZodType {
|
|
|
3552
3535
|
});
|
|
3553
3536
|
}
|
|
3554
3537
|
};
|
|
3555
|
-
_ZodEnum_cache = /* @__PURE__ */ new WeakMap();
|
|
3556
3538
|
ZodEnum.create = createZodEnum;
|
|
3557
3539
|
var ZodNativeEnum = class extends ZodType {
|
|
3558
|
-
constructor() {
|
|
3559
|
-
super(...arguments);
|
|
3560
|
-
_ZodNativeEnum_cache.set(this, void 0);
|
|
3561
|
-
}
|
|
3562
3540
|
_parse(input) {
|
|
3563
3541
|
const nativeEnumValues = util.getValidEnumValues(this._def.values);
|
|
3564
3542
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -3571,10 +3549,10 @@ var ZodNativeEnum = class extends ZodType {
|
|
|
3571
3549
|
});
|
|
3572
3550
|
return INVALID;
|
|
3573
3551
|
}
|
|
3574
|
-
if (!
|
|
3575
|
-
|
|
3552
|
+
if (!this._cache) {
|
|
3553
|
+
this._cache = new Set(util.getValidEnumValues(this._def.values));
|
|
3576
3554
|
}
|
|
3577
|
-
if (!
|
|
3555
|
+
if (!this._cache.has(input.data)) {
|
|
3578
3556
|
const expectedValues = util.objectValues(nativeEnumValues);
|
|
3579
3557
|
addIssueToContext(ctx, {
|
|
3580
3558
|
received: ctx.data,
|
|
@@ -3589,7 +3567,6 @@ var ZodNativeEnum = class extends ZodType {
|
|
|
3589
3567
|
return this._def.values;
|
|
3590
3568
|
}
|
|
3591
3569
|
};
|
|
3592
|
-
_ZodNativeEnum_cache = /* @__PURE__ */ new WeakMap();
|
|
3593
3570
|
ZodNativeEnum.create = (values, params) => {
|
|
3594
3571
|
return new ZodNativeEnum({
|
|
3595
3572
|
values,
|
|
@@ -3730,7 +3707,7 @@ var ZodEffects = class extends ZodType {
|
|
|
3730
3707
|
parent: ctx
|
|
3731
3708
|
});
|
|
3732
3709
|
if (!isValid(base))
|
|
3733
|
-
return
|
|
3710
|
+
return INVALID;
|
|
3734
3711
|
const result = effect.transform(base.value, checkCtx);
|
|
3735
3712
|
if (result instanceof Promise) {
|
|
3736
3713
|
throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
|
|
@@ -3739,7 +3716,7 @@ var ZodEffects = class extends ZodType {
|
|
|
3739
3716
|
} else {
|
|
3740
3717
|
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
|
|
3741
3718
|
if (!isValid(base))
|
|
3742
|
-
return
|
|
3719
|
+
return INVALID;
|
|
3743
3720
|
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
3744
3721
|
status: status.value,
|
|
3745
3722
|
value: result
|
|
@@ -4325,7 +4302,11 @@ function createExportsApi(client) {
|
|
|
4325
4302
|
});
|
|
4326
4303
|
}
|
|
4327
4304
|
async function downloadItems(params) {
|
|
4328
|
-
const searchParams = {
|
|
4305
|
+
const searchParams = {
|
|
4306
|
+
...params,
|
|
4307
|
+
ids: params.ids.join(","),
|
|
4308
|
+
availableAttributes: params.availableAttributes?.join(",") ?? ""
|
|
4309
|
+
};
|
|
4329
4310
|
const response = await client.get(`${BASE_URL2}/spreadsheet/by-item`, {
|
|
4330
4311
|
searchParams,
|
|
4331
4312
|
headers: {
|
|
@@ -5085,7 +5066,9 @@ var exportSchema = external_exports.object({
|
|
|
5085
5066
|
// lib/exports/models/DownloadItemsParams.ts
|
|
5086
5067
|
var downLoadItemsParamsSchema = external_exports.object({
|
|
5087
5068
|
"multi-sheet": external_exports.boolean(),
|
|
5088
|
-
ids: external_exports.array(external_exports.string())
|
|
5069
|
+
ids: external_exports.array(external_exports.string()),
|
|
5070
|
+
availableAttributes: external_exports.array(external_exports.string()).optional(),
|
|
5071
|
+
orgId: external_exports.string().optional()
|
|
5089
5072
|
});
|
|
5090
5073
|
|
|
5091
5074
|
// lib/errors/v1/models/ItemErrorDetails.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as AsstClient, a as AttributeValidValues, S as SpsItemIdResponse } from './CompanyBriefByOrg-itus4RMD.cjs';
|
|
2
2
|
export { b as AsstClientOptions, c as AsstUrl, B as BASE_URLS, C as CompanyBriefByOrg, E as Env, e as envSchema } from './CompanyBriefByOrg-itus4RMD.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, e as AttributeMetaData, f as AttributesByCompany, g as AttributeDefinition, L as Locale, S as SpreadsheetTemplate, U as UserAccount, h as ItemSearchView, i as ItemDetailView, j as ItemDetail, k as ItemErrorDetailsResult, l as ItemErrorSummaryResultV2, m as ItemErrorDetailsResultV2 } from './zod-
|
|
4
|
-
export { x as AttrDatatypeNameEnum, W as AttributeDetail, y as AttributeGroup, w as AttributeSummary, a5 as Bulb, X as CategoryEnum, Y as ComponentDetails, u as Connection, r as ExportDayOfWeek, s as ExportFrequency, t as ExportType, Z as GroupedAttributeList, _ as GroupedAttributes, $ as GroupedItem, a0 as HierarchyCategory, a1 as HierarchyDetails, F as IdentityServiceDatetimePreferences, H as IdentityServiceOrganization, B as IdentityServiceOrganizationMetadata, J as IdentityServicePreferences, K as IdentityServiceUser, n as ImportDetails, o as ImportError, p as ImportErrors, q as ImportStatusEnum, v as ItemCategory, a9 as ItemErrorDetails, ab as ItemErrorDetailsV2, aa as ItemErrorSummaryV2, M as ItemHeader, N as ItemMap, a2 as ItemPrice, O as ItemTable, a4 as MediaItem, a6 as PackComponent, a3 as PackComponentDetails, a8 as PackComponentItemInfo, P as PhaseEnum, R as RegisteredService, a7 as RepeatableGroup, z as SpreadsheetTemplateCompany, Q as TradingPartnerStage, ac as TradingPartnerStageV2 } from './zod-
|
|
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, e as AttributeMetaData, f as AttributesByCompany, g as AttributeDefinition, L as Locale, S as SpreadsheetTemplate, U as UserAccount, h as ItemSearchView, i as ItemDetailView, j as ItemDetail, k as ItemErrorDetailsResult, l as ItemErrorSummaryResultV2, m as ItemErrorDetailsResultV2 } from './zod-DBbdP-KT.cjs';
|
|
4
|
+
export { x as AttrDatatypeNameEnum, W as AttributeDetail, y as AttributeGroup, w as AttributeSummary, a5 as Bulb, X as CategoryEnum, Y as ComponentDetails, u as Connection, r as ExportDayOfWeek, s as ExportFrequency, t as ExportType, Z as GroupedAttributeList, _ as GroupedAttributes, $ as GroupedItem, a0 as HierarchyCategory, a1 as HierarchyDetails, F as IdentityServiceDatetimePreferences, H as IdentityServiceOrganization, B as IdentityServiceOrganizationMetadata, J as IdentityServicePreferences, K as IdentityServiceUser, n as ImportDetails, o as ImportError, p as ImportErrors, q as ImportStatusEnum, v as ItemCategory, a9 as ItemErrorDetails, ab as ItemErrorDetailsV2, aa as ItemErrorSummaryV2, M as ItemHeader, N as ItemMap, a2 as ItemPrice, O as ItemTable, a4 as MediaItem, a6 as PackComponent, a3 as PackComponentDetails, a8 as PackComponentItemInfo, P as PhaseEnum, R as RegisteredService, a7 as RepeatableGroup, z as SpreadsheetTemplateCompany, Q as TradingPartnerStage, ac as TradingPartnerStageV2 } from './zod-DBbdP-KT.cjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export { c as createCompaniesApi } from './index-B8ovDTs5.cjs';
|
|
7
7
|
import 'ky';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as AsstClient, a as AttributeValidValues, S as SpsItemIdResponse } from './CompanyBriefByOrg-itus4RMD.js';
|
|
2
2
|
export { b as AsstClientOptions, c as AsstUrl, B as BASE_URLS, C as CompanyBriefByOrg, E as Env, e as envSchema } from './CompanyBriefByOrg-itus4RMD.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, e as AttributeMetaData, f as AttributesByCompany, g as AttributeDefinition, L as Locale, S as SpreadsheetTemplate, U as UserAccount, h as ItemSearchView, i as ItemDetailView, j as ItemDetail, k as ItemErrorDetailsResult, l as ItemErrorSummaryResultV2, m as ItemErrorDetailsResultV2 } from './zod-
|
|
4
|
-
export { x as AttrDatatypeNameEnum, W as AttributeDetail, y as AttributeGroup, w as AttributeSummary, a5 as Bulb, X as CategoryEnum, Y as ComponentDetails, u as Connection, r as ExportDayOfWeek, s as ExportFrequency, t as ExportType, Z as GroupedAttributeList, _ as GroupedAttributes, $ as GroupedItem, a0 as HierarchyCategory, a1 as HierarchyDetails, F as IdentityServiceDatetimePreferences, H as IdentityServiceOrganization, B as IdentityServiceOrganizationMetadata, J as IdentityServicePreferences, K as IdentityServiceUser, n as ImportDetails, o as ImportError, p as ImportErrors, q as ImportStatusEnum, v as ItemCategory, a9 as ItemErrorDetails, ab as ItemErrorDetailsV2, aa as ItemErrorSummaryV2, M as ItemHeader, N as ItemMap, a2 as ItemPrice, O as ItemTable, a4 as MediaItem, a6 as PackComponent, a3 as PackComponentDetails, a8 as PackComponentItemInfo, P as PhaseEnum, R as RegisteredService, a7 as RepeatableGroup, z as SpreadsheetTemplateCompany, Q as TradingPartnerStage, ac as TradingPartnerStageV2 } from './zod-
|
|
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, e as AttributeMetaData, f as AttributesByCompany, g as AttributeDefinition, L as Locale, S as SpreadsheetTemplate, U as UserAccount, h as ItemSearchView, i as ItemDetailView, j as ItemDetail, k as ItemErrorDetailsResult, l as ItemErrorSummaryResultV2, m as ItemErrorDetailsResultV2 } from './zod-BdDmL7rg.js';
|
|
4
|
+
export { x as AttrDatatypeNameEnum, W as AttributeDetail, y as AttributeGroup, w as AttributeSummary, a5 as Bulb, X as CategoryEnum, Y as ComponentDetails, u as Connection, r as ExportDayOfWeek, s as ExportFrequency, t as ExportType, Z as GroupedAttributeList, _ as GroupedAttributes, $ as GroupedItem, a0 as HierarchyCategory, a1 as HierarchyDetails, F as IdentityServiceDatetimePreferences, H as IdentityServiceOrganization, B as IdentityServiceOrganizationMetadata, J as IdentityServicePreferences, K as IdentityServiceUser, n as ImportDetails, o as ImportError, p as ImportErrors, q as ImportStatusEnum, v as ItemCategory, a9 as ItemErrorDetails, ab as ItemErrorDetailsV2, aa as ItemErrorSummaryV2, M as ItemHeader, N as ItemMap, a2 as ItemPrice, O as ItemTable, a4 as MediaItem, a6 as PackComponent, a3 as PackComponentDetails, a8 as PackComponentItemInfo, P as PhaseEnum, R as RegisteredService, a7 as RepeatableGroup, z as SpreadsheetTemplateCompany, Q as TradingPartnerStage, ac as TradingPartnerStageV2 } from './zod-BdDmL7rg.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export { c as createCompaniesApi } from './index-BFKgtuVI.js';
|
|
7
7
|
import 'ky';
|
package/dist/index.js
CHANGED
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
createTradingPartnerSettingsApi,
|
|
17
17
|
createUniqueCriteriaApi,
|
|
18
18
|
createWhoAmIApi
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SI7CWAHC.js";
|
|
20
20
|
import {
|
|
21
21
|
AsstClient,
|
|
22
22
|
BASE_URLS,
|
|
23
23
|
envSchema,
|
|
24
24
|
itemStatusV2ResponseSchema
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-BLMS4KUD.js";
|
|
26
26
|
|
|
27
27
|
// lib/items/v2/index.ts
|
|
28
28
|
var BASE_URL = "v2/items";
|
package/dist/msw.cjs
CHANGED
|
@@ -54,7 +54,7 @@ module.exports = __toCommonJS(msw_exports);
|
|
|
54
54
|
var import_zod_mock = require("@anatine/zod-mock");
|
|
55
55
|
var import_msw = require("msw");
|
|
56
56
|
|
|
57
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
57
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/external.js
|
|
58
58
|
var external_exports = {};
|
|
59
59
|
__export(external_exports, {
|
|
60
60
|
BRAND: () => BRAND,
|
|
@@ -166,7 +166,7 @@ __export(external_exports, {
|
|
|
166
166
|
void: () => voidType
|
|
167
167
|
});
|
|
168
168
|
|
|
169
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
169
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/helpers/util.js
|
|
170
170
|
var util;
|
|
171
171
|
(function(util2) {
|
|
172
172
|
util2.assertEqual = (_) => {
|
|
@@ -300,7 +300,7 @@ var getParsedType = (data) => {
|
|
|
300
300
|
}
|
|
301
301
|
};
|
|
302
302
|
|
|
303
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
303
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/ZodError.js
|
|
304
304
|
var ZodIssueCode = util.arrayToEnum([
|
|
305
305
|
"invalid_type",
|
|
306
306
|
"invalid_literal",
|
|
@@ -417,7 +417,7 @@ ZodError.create = (issues) => {
|
|
|
417
417
|
return error;
|
|
418
418
|
};
|
|
419
419
|
|
|
420
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
420
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/locales/en.js
|
|
421
421
|
var errorMap = (issue, _ctx) => {
|
|
422
422
|
let message;
|
|
423
423
|
switch (issue.code) {
|
|
@@ -518,7 +518,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
518
518
|
};
|
|
519
519
|
var en_default = errorMap;
|
|
520
520
|
|
|
521
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
521
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/errors.js
|
|
522
522
|
var overrideErrorMap = en_default;
|
|
523
523
|
function setErrorMap(map) {
|
|
524
524
|
overrideErrorMap = map;
|
|
@@ -527,7 +527,7 @@ function getErrorMap() {
|
|
|
527
527
|
return overrideErrorMap;
|
|
528
528
|
}
|
|
529
529
|
|
|
530
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
530
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/helpers/parseUtil.js
|
|
531
531
|
var makeIssue = (params) => {
|
|
532
532
|
const { data, path, errorMaps, issueData } = params;
|
|
533
533
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -637,27 +637,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
637
637
|
var isValid = (x) => x.status === "valid";
|
|
638
638
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
639
639
|
|
|
640
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
640
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/helpers/errorUtil.js
|
|
641
641
|
var errorUtil;
|
|
642
642
|
(function(errorUtil2) {
|
|
643
643
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
644
644
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
645
645
|
})(errorUtil || (errorUtil = {}));
|
|
646
646
|
|
|
647
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
648
|
-
var __classPrivateFieldGet = function(receiver, state, kind, f) {
|
|
649
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
650
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
651
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
652
|
-
};
|
|
653
|
-
var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
|
|
654
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
655
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
656
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
657
|
-
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
658
|
-
};
|
|
659
|
-
var _ZodEnum_cache;
|
|
660
|
-
var _ZodNativeEnum_cache;
|
|
647
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/types.js
|
|
661
648
|
var ParseInputLazyPath = class {
|
|
662
649
|
constructor(parent, value, path, key) {
|
|
663
650
|
this._cachedPath = [];
|
|
@@ -3482,10 +3469,6 @@ function createZodEnum(values, params) {
|
|
|
3482
3469
|
});
|
|
3483
3470
|
}
|
|
3484
3471
|
var ZodEnum = class _ZodEnum extends ZodType {
|
|
3485
|
-
constructor() {
|
|
3486
|
-
super(...arguments);
|
|
3487
|
-
_ZodEnum_cache.set(this, void 0);
|
|
3488
|
-
}
|
|
3489
3472
|
_parse(input) {
|
|
3490
3473
|
if (typeof input.data !== "string") {
|
|
3491
3474
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -3497,10 +3480,10 @@ var ZodEnum = class _ZodEnum extends ZodType {
|
|
|
3497
3480
|
});
|
|
3498
3481
|
return INVALID;
|
|
3499
3482
|
}
|
|
3500
|
-
if (!
|
|
3501
|
-
|
|
3483
|
+
if (!this._cache) {
|
|
3484
|
+
this._cache = new Set(this._def.values);
|
|
3502
3485
|
}
|
|
3503
|
-
if (!
|
|
3486
|
+
if (!this._cache.has(input.data)) {
|
|
3504
3487
|
const ctx = this._getOrReturnCtx(input);
|
|
3505
3488
|
const expectedValues = this._def.values;
|
|
3506
3489
|
addIssueToContext(ctx, {
|
|
@@ -3549,13 +3532,8 @@ var ZodEnum = class _ZodEnum extends ZodType {
|
|
|
3549
3532
|
});
|
|
3550
3533
|
}
|
|
3551
3534
|
};
|
|
3552
|
-
_ZodEnum_cache = /* @__PURE__ */ new WeakMap();
|
|
3553
3535
|
ZodEnum.create = createZodEnum;
|
|
3554
3536
|
var ZodNativeEnum = class extends ZodType {
|
|
3555
|
-
constructor() {
|
|
3556
|
-
super(...arguments);
|
|
3557
|
-
_ZodNativeEnum_cache.set(this, void 0);
|
|
3558
|
-
}
|
|
3559
3537
|
_parse(input) {
|
|
3560
3538
|
const nativeEnumValues = util.getValidEnumValues(this._def.values);
|
|
3561
3539
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -3568,10 +3546,10 @@ var ZodNativeEnum = class extends ZodType {
|
|
|
3568
3546
|
});
|
|
3569
3547
|
return INVALID;
|
|
3570
3548
|
}
|
|
3571
|
-
if (!
|
|
3572
|
-
|
|
3549
|
+
if (!this._cache) {
|
|
3550
|
+
this._cache = new Set(util.getValidEnumValues(this._def.values));
|
|
3573
3551
|
}
|
|
3574
|
-
if (!
|
|
3552
|
+
if (!this._cache.has(input.data)) {
|
|
3575
3553
|
const expectedValues = util.objectValues(nativeEnumValues);
|
|
3576
3554
|
addIssueToContext(ctx, {
|
|
3577
3555
|
received: ctx.data,
|
|
@@ -3586,7 +3564,6 @@ var ZodNativeEnum = class extends ZodType {
|
|
|
3586
3564
|
return this._def.values;
|
|
3587
3565
|
}
|
|
3588
3566
|
};
|
|
3589
|
-
_ZodNativeEnum_cache = /* @__PURE__ */ new WeakMap();
|
|
3590
3567
|
ZodNativeEnum.create = (values, params) => {
|
|
3591
3568
|
return new ZodNativeEnum({
|
|
3592
3569
|
values,
|
|
@@ -3727,7 +3704,7 @@ var ZodEffects = class extends ZodType {
|
|
|
3727
3704
|
parent: ctx
|
|
3728
3705
|
});
|
|
3729
3706
|
if (!isValid(base))
|
|
3730
|
-
return
|
|
3707
|
+
return INVALID;
|
|
3731
3708
|
const result = effect.transform(base.value, checkCtx);
|
|
3732
3709
|
if (result instanceof Promise) {
|
|
3733
3710
|
throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
|
|
@@ -3736,7 +3713,7 @@ var ZodEffects = class extends ZodType {
|
|
|
3736
3713
|
} else {
|
|
3737
3714
|
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
|
|
3738
3715
|
if (!isValid(base))
|
|
3739
|
-
return
|
|
3716
|
+
return INVALID;
|
|
3740
3717
|
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
3741
3718
|
status: status.value,
|
|
3742
3719
|
value: result
|
|
@@ -4778,7 +4755,9 @@ var exportSchema = external_exports.object({
|
|
|
4778
4755
|
// lib/exports/models/DownloadItemsParams.ts
|
|
4779
4756
|
var downLoadItemsParamsSchema = external_exports.object({
|
|
4780
4757
|
"multi-sheet": external_exports.boolean(),
|
|
4781
|
-
ids: external_exports.array(external_exports.string())
|
|
4758
|
+
ids: external_exports.array(external_exports.string()),
|
|
4759
|
+
availableAttributes: external_exports.array(external_exports.string()).optional(),
|
|
4760
|
+
orgId: external_exports.string().optional()
|
|
4782
4761
|
});
|
|
4783
4762
|
|
|
4784
4763
|
// lib/attributes/models/AttributeMetaData.ts
|
package/dist/msw.js
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
FlattenedItemIdentifierKeysSchema,
|
|
20
20
|
createCompaniesApi,
|
|
21
21
|
retailerTradingPartnerStages
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SI7CWAHC.js";
|
|
23
23
|
import {
|
|
24
24
|
attrProdTypeSchema,
|
|
25
25
|
attributeDefinitionSchema,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
tradingPartnerAccessByCompanyIdSchema,
|
|
46
46
|
userAccountSchema,
|
|
47
47
|
vendorPartnerAttGroupsSchema
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-BLMS4KUD.js";
|
|
49
49
|
|
|
50
50
|
// lib/imports/mockHandlers.ts
|
|
51
51
|
import { generateMock } from "@anatine/zod-mock";
|
|
@@ -300,12 +300,18 @@ type ExportType = z.infer<typeof exportTypeEnum>;
|
|
|
300
300
|
declare const downLoadItemsParamsSchema: z.ZodObject<{
|
|
301
301
|
"multi-sheet": z.ZodBoolean;
|
|
302
302
|
ids: z.ZodArray<z.ZodString, "many">;
|
|
303
|
+
availableAttributes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
304
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
303
305
|
}, "strip", z.ZodTypeAny, {
|
|
304
306
|
"multi-sheet": boolean;
|
|
305
307
|
ids: string[];
|
|
308
|
+
availableAttributes?: string[] | undefined;
|
|
309
|
+
orgId?: string | undefined;
|
|
306
310
|
}, {
|
|
307
311
|
"multi-sheet": boolean;
|
|
308
312
|
ids: string[];
|
|
313
|
+
availableAttributes?: string[] | undefined;
|
|
314
|
+
orgId?: string | undefined;
|
|
309
315
|
}>;
|
|
310
316
|
type DownLoadItemsParams = z.infer<typeof downLoadItemsParamsSchema>;
|
|
311
317
|
|
|
@@ -300,12 +300,18 @@ type ExportType = z.infer<typeof exportTypeEnum>;
|
|
|
300
300
|
declare const downLoadItemsParamsSchema: z.ZodObject<{
|
|
301
301
|
"multi-sheet": z.ZodBoolean;
|
|
302
302
|
ids: z.ZodArray<z.ZodString, "many">;
|
|
303
|
+
availableAttributes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
304
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
303
305
|
}, "strip", z.ZodTypeAny, {
|
|
304
306
|
"multi-sheet": boolean;
|
|
305
307
|
ids: string[];
|
|
308
|
+
availableAttributes?: string[] | undefined;
|
|
309
|
+
orgId?: string | undefined;
|
|
306
310
|
}, {
|
|
307
311
|
"multi-sheet": boolean;
|
|
308
312
|
ids: string[];
|
|
313
|
+
availableAttributes?: string[] | undefined;
|
|
314
|
+
orgId?: string | undefined;
|
|
309
315
|
}>;
|
|
310
316
|
type DownLoadItemsParams = z.infer<typeof downLoadItemsParamsSchema>;
|
|
311
317
|
|
package/dist/zod.cjs
CHANGED
|
@@ -107,7 +107,7 @@ module.exports = __toCommonJS(zod_exports);
|
|
|
107
107
|
// lib/asstClient.ts
|
|
108
108
|
var import_ky = __toESM(require("ky"), 1);
|
|
109
109
|
|
|
110
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
110
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/external.js
|
|
111
111
|
var external_exports = {};
|
|
112
112
|
__export(external_exports, {
|
|
113
113
|
BRAND: () => BRAND,
|
|
@@ -219,7 +219,7 @@ __export(external_exports, {
|
|
|
219
219
|
void: () => voidType
|
|
220
220
|
});
|
|
221
221
|
|
|
222
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
222
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/helpers/util.js
|
|
223
223
|
var util;
|
|
224
224
|
(function(util2) {
|
|
225
225
|
util2.assertEqual = (_) => {
|
|
@@ -353,7 +353,7 @@ var getParsedType = (data) => {
|
|
|
353
353
|
}
|
|
354
354
|
};
|
|
355
355
|
|
|
356
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
356
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/ZodError.js
|
|
357
357
|
var ZodIssueCode = util.arrayToEnum([
|
|
358
358
|
"invalid_type",
|
|
359
359
|
"invalid_literal",
|
|
@@ -470,7 +470,7 @@ ZodError.create = (issues) => {
|
|
|
470
470
|
return error;
|
|
471
471
|
};
|
|
472
472
|
|
|
473
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
473
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/locales/en.js
|
|
474
474
|
var errorMap = (issue, _ctx) => {
|
|
475
475
|
let message;
|
|
476
476
|
switch (issue.code) {
|
|
@@ -571,7 +571,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
571
571
|
};
|
|
572
572
|
var en_default = errorMap;
|
|
573
573
|
|
|
574
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
574
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/errors.js
|
|
575
575
|
var overrideErrorMap = en_default;
|
|
576
576
|
function setErrorMap(map) {
|
|
577
577
|
overrideErrorMap = map;
|
|
@@ -580,7 +580,7 @@ function getErrorMap() {
|
|
|
580
580
|
return overrideErrorMap;
|
|
581
581
|
}
|
|
582
582
|
|
|
583
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
583
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/helpers/parseUtil.js
|
|
584
584
|
var makeIssue = (params) => {
|
|
585
585
|
const { data, path, errorMaps, issueData } = params;
|
|
586
586
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -690,27 +690,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
690
690
|
var isValid = (x) => x.status === "valid";
|
|
691
691
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
692
692
|
|
|
693
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
693
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/helpers/errorUtil.js
|
|
694
694
|
var errorUtil;
|
|
695
695
|
(function(errorUtil2) {
|
|
696
696
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
697
697
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
698
698
|
})(errorUtil || (errorUtil = {}));
|
|
699
699
|
|
|
700
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
701
|
-
var __classPrivateFieldGet = function(receiver, state, kind, f) {
|
|
702
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
703
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
704
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
705
|
-
};
|
|
706
|
-
var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
|
|
707
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
708
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
709
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
710
|
-
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
711
|
-
};
|
|
712
|
-
var _ZodEnum_cache;
|
|
713
|
-
var _ZodNativeEnum_cache;
|
|
700
|
+
// ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/esm/v3/types.js
|
|
714
701
|
var ParseInputLazyPath = class {
|
|
715
702
|
constructor(parent, value, path, key) {
|
|
716
703
|
this._cachedPath = [];
|
|
@@ -3535,10 +3522,6 @@ function createZodEnum(values, params) {
|
|
|
3535
3522
|
});
|
|
3536
3523
|
}
|
|
3537
3524
|
var ZodEnum = class _ZodEnum extends ZodType {
|
|
3538
|
-
constructor() {
|
|
3539
|
-
super(...arguments);
|
|
3540
|
-
_ZodEnum_cache.set(this, void 0);
|
|
3541
|
-
}
|
|
3542
3525
|
_parse(input) {
|
|
3543
3526
|
if (typeof input.data !== "string") {
|
|
3544
3527
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -3550,10 +3533,10 @@ var ZodEnum = class _ZodEnum extends ZodType {
|
|
|
3550
3533
|
});
|
|
3551
3534
|
return INVALID;
|
|
3552
3535
|
}
|
|
3553
|
-
if (!
|
|
3554
|
-
|
|
3536
|
+
if (!this._cache) {
|
|
3537
|
+
this._cache = new Set(this._def.values);
|
|
3555
3538
|
}
|
|
3556
|
-
if (!
|
|
3539
|
+
if (!this._cache.has(input.data)) {
|
|
3557
3540
|
const ctx = this._getOrReturnCtx(input);
|
|
3558
3541
|
const expectedValues = this._def.values;
|
|
3559
3542
|
addIssueToContext(ctx, {
|
|
@@ -3602,13 +3585,8 @@ var ZodEnum = class _ZodEnum extends ZodType {
|
|
|
3602
3585
|
});
|
|
3603
3586
|
}
|
|
3604
3587
|
};
|
|
3605
|
-
_ZodEnum_cache = /* @__PURE__ */ new WeakMap();
|
|
3606
3588
|
ZodEnum.create = createZodEnum;
|
|
3607
3589
|
var ZodNativeEnum = class extends ZodType {
|
|
3608
|
-
constructor() {
|
|
3609
|
-
super(...arguments);
|
|
3610
|
-
_ZodNativeEnum_cache.set(this, void 0);
|
|
3611
|
-
}
|
|
3612
3590
|
_parse(input) {
|
|
3613
3591
|
const nativeEnumValues = util.getValidEnumValues(this._def.values);
|
|
3614
3592
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -3621,10 +3599,10 @@ var ZodNativeEnum = class extends ZodType {
|
|
|
3621
3599
|
});
|
|
3622
3600
|
return INVALID;
|
|
3623
3601
|
}
|
|
3624
|
-
if (!
|
|
3625
|
-
|
|
3602
|
+
if (!this._cache) {
|
|
3603
|
+
this._cache = new Set(util.getValidEnumValues(this._def.values));
|
|
3626
3604
|
}
|
|
3627
|
-
if (!
|
|
3605
|
+
if (!this._cache.has(input.data)) {
|
|
3628
3606
|
const expectedValues = util.objectValues(nativeEnumValues);
|
|
3629
3607
|
addIssueToContext(ctx, {
|
|
3630
3608
|
received: ctx.data,
|
|
@@ -3639,7 +3617,6 @@ var ZodNativeEnum = class extends ZodType {
|
|
|
3639
3617
|
return this._def.values;
|
|
3640
3618
|
}
|
|
3641
3619
|
};
|
|
3642
|
-
_ZodNativeEnum_cache = /* @__PURE__ */ new WeakMap();
|
|
3643
3620
|
ZodNativeEnum.create = (values, params) => {
|
|
3644
3621
|
return new ZodNativeEnum({
|
|
3645
3622
|
values,
|
|
@@ -3780,7 +3757,7 @@ var ZodEffects = class extends ZodType {
|
|
|
3780
3757
|
parent: ctx
|
|
3781
3758
|
});
|
|
3782
3759
|
if (!isValid(base))
|
|
3783
|
-
return
|
|
3760
|
+
return INVALID;
|
|
3784
3761
|
const result = effect.transform(base.value, checkCtx);
|
|
3785
3762
|
if (result instanceof Promise) {
|
|
3786
3763
|
throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
|
|
@@ -3789,7 +3766,7 @@ var ZodEffects = class extends ZodType {
|
|
|
3789
3766
|
} else {
|
|
3790
3767
|
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
|
|
3791
3768
|
if (!isValid(base))
|
|
3792
|
-
return
|
|
3769
|
+
return INVALID;
|
|
3793
3770
|
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
3794
3771
|
status: status.value,
|
|
3795
3772
|
value: result
|
|
@@ -4309,7 +4286,9 @@ var exportSchema = external_exports.object({
|
|
|
4309
4286
|
// lib/exports/models/DownloadItemsParams.ts
|
|
4310
4287
|
var downLoadItemsParamsSchema = external_exports.object({
|
|
4311
4288
|
"multi-sheet": external_exports.boolean(),
|
|
4312
|
-
ids: external_exports.array(external_exports.string())
|
|
4289
|
+
ids: external_exports.array(external_exports.string()),
|
|
4290
|
+
availableAttributes: external_exports.array(external_exports.string()).optional(),
|
|
4291
|
+
orgId: external_exports.string().optional()
|
|
4313
4292
|
});
|
|
4314
4293
|
|
|
4315
4294
|
// lib/categories/models/ItemCategory.ts
|
package/dist/zod.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { d as attributeValidValuesSchema, f as companyBriefByOrgSchema, e as envSchema, s as spsItemIdResponseSchema } from './CompanyBriefByOrg-itus4RMD.cjs';
|
|
2
|
-
export { at as attrDatatypeNameEnumSchema, aX as attrProdTypeSchema, au as attributeDefinitionSchema, aN as attributeDetailSchema, av as attributeGroupSchema, aw as attributeMetaDataSchema, ax as attributeSummarySchema, ay as attributesByCompanySchema, aF as bulbSchema, aK as categoryEnumSchema, b1 as companyRelationshipUpsertBodySchema, aP as componentDetailsSchema, a_ as connectionSchema, ap as downLoadItemsParamsSchema, al as exportDayOfWeekEnum, am as exportFrequencyEnum, ao as exportSchema, an as exportTypeEnum, aj as generateImportTemplateParamsSchema, aT as groupedAttributeListSchema, aR as groupedAttributesSchema, aJ as groupedItemSchema, aS as hierarchyCategorySchema, aQ as hierarchyDetailsSchema, b2 as identityServiceDatetimePreferencesSchema, b3 as identityServiceOrganizationMetadataSchema, b4 as identityServiceOrganizationSchema, b5 as identityServicePreferencesSchema, b6 as identityServiceUserSchema, ad as importDetailSchema, ae as importErrorSchema, af as importErrorsSchema, ag as importSchema, ai as importStatusEnumSchema, ah as importsStatusSchema, aq as itemCategoriesSearchSchema, ar as itemCategorySchema, aI as itemDetailSchema, aM as itemDetailViewSchema, b9 as itemErrorDetailsResultSchema, bb as itemErrorDetailsResultV2Schema, ba as itemErrorDetailsSchema, bd as itemErrorDetailsV2Schema, bf as itemErrorSummaryResultV2Schema, bc as itemErrorSummaryV2Schema, az as itemHeaderSchema, as as itemHierarchyResponseSchema, aA as itemMapSchema, b0 as itemPartnerSchema, aG as itemPriceSchema, aB as itemSearchViewSchema, aC as itemTableSchema, aW as localeSchema, aH as mediaItemSchema, aU as packComponentDetailsSchema, aV as packComponentItemInfoSchema, aL as packComponentSchema, aD as phaseEnumSchema, b7 as registeredServiceSchema, aO as repeatableGroupSchema, aY as spreadsheetTemplateCompanySchema, aZ as spreadsheetTemplateSchema, a$ as tradingPartnerAccessByCompanyIdSchema, aE as tradingPartnerStageSchema, be as tradingPartnerStageV2Schema, b8 as userAccountSchema, ak as vendorPartnerAttGroupsSchema } from './zod-
|
|
2
|
+
export { at as attrDatatypeNameEnumSchema, aX as attrProdTypeSchema, au as attributeDefinitionSchema, aN as attributeDetailSchema, av as attributeGroupSchema, aw as attributeMetaDataSchema, ax as attributeSummarySchema, ay as attributesByCompanySchema, aF as bulbSchema, aK as categoryEnumSchema, b1 as companyRelationshipUpsertBodySchema, aP as componentDetailsSchema, a_ as connectionSchema, ap as downLoadItemsParamsSchema, al as exportDayOfWeekEnum, am as exportFrequencyEnum, ao as exportSchema, an as exportTypeEnum, aj as generateImportTemplateParamsSchema, aT as groupedAttributeListSchema, aR as groupedAttributesSchema, aJ as groupedItemSchema, aS as hierarchyCategorySchema, aQ as hierarchyDetailsSchema, b2 as identityServiceDatetimePreferencesSchema, b3 as identityServiceOrganizationMetadataSchema, b4 as identityServiceOrganizationSchema, b5 as identityServicePreferencesSchema, b6 as identityServiceUserSchema, ad as importDetailSchema, ae as importErrorSchema, af as importErrorsSchema, ag as importSchema, ai as importStatusEnumSchema, ah as importsStatusSchema, aq as itemCategoriesSearchSchema, ar as itemCategorySchema, aI as itemDetailSchema, aM as itemDetailViewSchema, b9 as itemErrorDetailsResultSchema, bb as itemErrorDetailsResultV2Schema, ba as itemErrorDetailsSchema, bd as itemErrorDetailsV2Schema, bf as itemErrorSummaryResultV2Schema, bc as itemErrorSummaryV2Schema, az as itemHeaderSchema, as as itemHierarchyResponseSchema, aA as itemMapSchema, b0 as itemPartnerSchema, aG as itemPriceSchema, aB as itemSearchViewSchema, aC as itemTableSchema, aW as localeSchema, aH as mediaItemSchema, aU as packComponentDetailsSchema, aV as packComponentItemInfoSchema, aL as packComponentSchema, aD as phaseEnumSchema, b7 as registeredServiceSchema, aO as repeatableGroupSchema, aY as spreadsheetTemplateCompanySchema, aZ as spreadsheetTemplateSchema, a$ as tradingPartnerAccessByCompanyIdSchema, aE as tradingPartnerStageSchema, be as tradingPartnerStageV2Schema, b8 as userAccountSchema, ak as vendorPartnerAttGroupsSchema } from './zod-DBbdP-KT.cjs';
|
|
3
3
|
import 'ky';
|
|
4
4
|
import 'zod';
|
package/dist/zod.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { d as attributeValidValuesSchema, f as companyBriefByOrgSchema, e as envSchema, s as spsItemIdResponseSchema } from './CompanyBriefByOrg-itus4RMD.js';
|
|
2
|
-
export { at as attrDatatypeNameEnumSchema, aX as attrProdTypeSchema, au as attributeDefinitionSchema, aN as attributeDetailSchema, av as attributeGroupSchema, aw as attributeMetaDataSchema, ax as attributeSummarySchema, ay as attributesByCompanySchema, aF as bulbSchema, aK as categoryEnumSchema, b1 as companyRelationshipUpsertBodySchema, aP as componentDetailsSchema, a_ as connectionSchema, ap as downLoadItemsParamsSchema, al as exportDayOfWeekEnum, am as exportFrequencyEnum, ao as exportSchema, an as exportTypeEnum, aj as generateImportTemplateParamsSchema, aT as groupedAttributeListSchema, aR as groupedAttributesSchema, aJ as groupedItemSchema, aS as hierarchyCategorySchema, aQ as hierarchyDetailsSchema, b2 as identityServiceDatetimePreferencesSchema, b3 as identityServiceOrganizationMetadataSchema, b4 as identityServiceOrganizationSchema, b5 as identityServicePreferencesSchema, b6 as identityServiceUserSchema, ad as importDetailSchema, ae as importErrorSchema, af as importErrorsSchema, ag as importSchema, ai as importStatusEnumSchema, ah as importsStatusSchema, aq as itemCategoriesSearchSchema, ar as itemCategorySchema, aI as itemDetailSchema, aM as itemDetailViewSchema, b9 as itemErrorDetailsResultSchema, bb as itemErrorDetailsResultV2Schema, ba as itemErrorDetailsSchema, bd as itemErrorDetailsV2Schema, bf as itemErrorSummaryResultV2Schema, bc as itemErrorSummaryV2Schema, az as itemHeaderSchema, as as itemHierarchyResponseSchema, aA as itemMapSchema, b0 as itemPartnerSchema, aG as itemPriceSchema, aB as itemSearchViewSchema, aC as itemTableSchema, aW as localeSchema, aH as mediaItemSchema, aU as packComponentDetailsSchema, aV as packComponentItemInfoSchema, aL as packComponentSchema, aD as phaseEnumSchema, b7 as registeredServiceSchema, aO as repeatableGroupSchema, aY as spreadsheetTemplateCompanySchema, aZ as spreadsheetTemplateSchema, a$ as tradingPartnerAccessByCompanyIdSchema, aE as tradingPartnerStageSchema, be as tradingPartnerStageV2Schema, b8 as userAccountSchema, ak as vendorPartnerAttGroupsSchema } from './zod-
|
|
2
|
+
export { at as attrDatatypeNameEnumSchema, aX as attrProdTypeSchema, au as attributeDefinitionSchema, aN as attributeDetailSchema, av as attributeGroupSchema, aw as attributeMetaDataSchema, ax as attributeSummarySchema, ay as attributesByCompanySchema, aF as bulbSchema, aK as categoryEnumSchema, b1 as companyRelationshipUpsertBodySchema, aP as componentDetailsSchema, a_ as connectionSchema, ap as downLoadItemsParamsSchema, al as exportDayOfWeekEnum, am as exportFrequencyEnum, ao as exportSchema, an as exportTypeEnum, aj as generateImportTemplateParamsSchema, aT as groupedAttributeListSchema, aR as groupedAttributesSchema, aJ as groupedItemSchema, aS as hierarchyCategorySchema, aQ as hierarchyDetailsSchema, b2 as identityServiceDatetimePreferencesSchema, b3 as identityServiceOrganizationMetadataSchema, b4 as identityServiceOrganizationSchema, b5 as identityServicePreferencesSchema, b6 as identityServiceUserSchema, ad as importDetailSchema, ae as importErrorSchema, af as importErrorsSchema, ag as importSchema, ai as importStatusEnumSchema, ah as importsStatusSchema, aq as itemCategoriesSearchSchema, ar as itemCategorySchema, aI as itemDetailSchema, aM as itemDetailViewSchema, b9 as itemErrorDetailsResultSchema, bb as itemErrorDetailsResultV2Schema, ba as itemErrorDetailsSchema, bd as itemErrorDetailsV2Schema, bf as itemErrorSummaryResultV2Schema, bc as itemErrorSummaryV2Schema, az as itemHeaderSchema, as as itemHierarchyResponseSchema, aA as itemMapSchema, b0 as itemPartnerSchema, aG as itemPriceSchema, aB as itemSearchViewSchema, aC as itemTableSchema, aW as localeSchema, aH as mediaItemSchema, aU as packComponentDetailsSchema, aV as packComponentItemInfoSchema, aL as packComponentSchema, aD as phaseEnumSchema, b7 as registeredServiceSchema, aO as repeatableGroupSchema, aY as spreadsheetTemplateCompanySchema, aZ as spreadsheetTemplateSchema, a$ as tradingPartnerAccessByCompanyIdSchema, aE as tradingPartnerStageSchema, be as tradingPartnerStageV2Schema, b8 as userAccountSchema, ak as vendorPartnerAttGroupsSchema } from './zod-BdDmL7rg.js';
|
|
3
3
|
import 'ky';
|
|
4
4
|
import 'zod';
|
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": "
|
|
6
|
+
"version": "4.1.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|