@edgebound/bigcommerce 0.5.33 → 0.5.34
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/bigcommerce-entities/products/products.service.d.ts +63 -1
- package/dist/bigcommerce-entities/products/products.service.d.ts.map +1 -1
- package/dist/bigcommerce-entities/products/products.service.js +83 -0
- package/dist/bigcommerce-entities/products/products.service.js.map +1 -1
- package/dist/bigcommerce-entities/products/schemas/get-all-products.schema.d.ts +34 -0
- package/dist/bigcommerce-entities/products/schemas/get-all-products.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/products/schemas/get-all-products.schema.js +56 -0
- package/dist/bigcommerce-entities/products/schemas/get-all-products.schema.js.map +1 -0
- package/dist/bigcommerce-entities/products/schemas/get-product-details.schema.d.ts +40 -0
- package/dist/bigcommerce-entities/products/schemas/get-product-details.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/products/schemas/get-product-details.schema.js +76 -0
- package/dist/bigcommerce-entities/products/schemas/get-product-details.schema.js.map +1 -0
- package/dist/bigcommerce-entities/products/schemas/index.d.ts +2 -0
- package/dist/bigcommerce-entities/products/schemas/index.d.ts.map +1 -1
- package/dist/bigcommerce-entities/products/schemas/index.js +2 -0
- package/dist/bigcommerce-entities/products/schemas/index.js.map +1 -1
- package/dist/bigcommerce-entities/products/schemas/update-products.schema.d.ts +15 -0
- package/dist/bigcommerce-entities/products/schemas/update-products.schema.d.ts.map +1 -1
- package/dist/bigcommerce-entities/products/schemas/update-products.schema.js +13 -2
- package/dist/bigcommerce-entities/products/schemas/update-products.schema.js.map +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +1 -0
- package/dist/constants.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
import { BigCommerceFetcherService } from '../../core';
|
|
3
|
-
import { SetProductInventoryItemSchema, UpdateProductSchema, UpdateProductVisibilitySchema } from './schemas';
|
|
3
|
+
import { GetProductDetailsSchema, SetProductInventoryItemSchema, UpdateCustomFieldsSchema, UpdateProductSchema, UpdateProductVisibilitySchema } from './schemas';
|
|
4
4
|
/**
|
|
5
5
|
* Service for managing BigCommerce products.
|
|
6
6
|
*
|
|
@@ -84,5 +84,67 @@ export declare class BigCommerceProductsService {
|
|
|
84
84
|
success: unknown[];
|
|
85
85
|
errors: import("../../core").BigCommerceError[];
|
|
86
86
|
}, never>;
|
|
87
|
+
/**
|
|
88
|
+
* Updates custom fields for multiple products in batch.
|
|
89
|
+
*
|
|
90
|
+
* @param dtos - Array of product custom fields updates
|
|
91
|
+
* @returns ResultAsync with success/error results for each batch
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* const result = await productsService.updateCustomFields([
|
|
96
|
+
* { id: 1, custom_fields: [{ name: 'field1', value: 'value1' }] },
|
|
97
|
+
* { id: 2, custom_fields: [{ id: 10, name: 'field2', value: 'value2' }] }
|
|
98
|
+
* ]);
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
updateCustomFields(dtos: z.input<typeof UpdateCustomFieldsSchema>[]): import("neverthrow").ResultAsync<{
|
|
102
|
+
success: unknown[];
|
|
103
|
+
errors: import("../../core").BigCommerceError[];
|
|
104
|
+
}, never>;
|
|
105
|
+
/**
|
|
106
|
+
* Gets detailed information for a specific product.
|
|
107
|
+
*
|
|
108
|
+
* @param dto - Product ID and optional query parameters for including related data
|
|
109
|
+
* @returns ResultAsync with product details
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```typescript
|
|
113
|
+
* const result = await productsService.getProductDetails({
|
|
114
|
+
* id: 123,
|
|
115
|
+
* query: {
|
|
116
|
+
* include: ['custom_fields', 'images', 'variants']
|
|
117
|
+
* }
|
|
118
|
+
* });
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
getProductDetails(dto: z.input<typeof GetProductDetailsSchema>): import("neverthrow").ResultAsync<{
|
|
122
|
+
id: number;
|
|
123
|
+
sku?: string | null | undefined;
|
|
124
|
+
categories?: number[] | null | undefined;
|
|
125
|
+
brand_id?: number | null | undefined;
|
|
126
|
+
custom_fields?: {
|
|
127
|
+
id: number;
|
|
128
|
+
name: string;
|
|
129
|
+
value: string;
|
|
130
|
+
}[] | null | undefined;
|
|
131
|
+
}, import("../../core").BigCommerceError>;
|
|
132
|
+
/**
|
|
133
|
+
* Gets all products with simplified information using pagination.
|
|
134
|
+
*
|
|
135
|
+
* Fetches all products in batches, returning only id, sku, and type fields.
|
|
136
|
+
*
|
|
137
|
+
* @returns ResultAsync with array of simplified products
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* ```typescript
|
|
141
|
+
* const result = await productsService.getAllProducts();
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
getAllProducts(): import("neverthrow").ResultAsync<{
|
|
145
|
+
id: number;
|
|
146
|
+
type: "physical" | "digital";
|
|
147
|
+
sku?: string | null | undefined;
|
|
148
|
+
}[], import("../../core").BigCommerceError>;
|
|
87
149
|
}
|
|
88
150
|
//# sourceMappingURL=products.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.service.d.ts","sourceRoot":"","sources":["../../../src/bigcommerce-entities/products/products.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"products.service.d.ts","sourceRoot":"","sources":["../../../src/bigcommerce-entities/products/products.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAIvD,OAAO,EAEL,uBAAuB,EAGvB,6BAA6B,EAE7B,wBAAwB,EAExB,mBAAmB,EACnB,6BAA6B,EAC9B,MAAM,WAAW,CAAC;AAEnB;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBACa,0BAA0B;IACzB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,yBAAyB;IAE/D;;;;;;;;;;;;;;;;OAgBG;IACH,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,EAAE;;;;;;IAyB3F;;;;;;;;;;;;;;;OAeG;IACH,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,EAAE;;;;IAsB1D;;;;;;;;;;;;;OAaG;IACH,oBAAoB,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,EAAE;;;;IAI1E;;;;;;;;;;;;;OAaG;IACH,kBAAkB,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,EAAE;;;;IAInE;;;;;;;;;;;;;;;OAeG;IACH,iBAAiB,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC;;;;;;;;;;;IAe9D;;;;;;;;;;;OAWG;IACH,cAAc;;;;;CAyBf"}
|
|
@@ -44,11 +44,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
45
|
exports.BigCommerceProductsService = void 0;
|
|
46
46
|
const common_1 = require("@nestjs/common");
|
|
47
|
+
const querystring_1 = require("querystring");
|
|
47
48
|
const z = __importStar(require("zod"));
|
|
48
49
|
const constants_1 = require("../../constants");
|
|
49
50
|
const core_1 = require("../../core");
|
|
50
51
|
const concurrency_1 = require("../../utils/concurrency");
|
|
51
52
|
const validate_1 = require("../../utils/validate");
|
|
53
|
+
const while_1 = require("../../utils/while");
|
|
52
54
|
const schemas_1 = require("./schemas");
|
|
53
55
|
/**
|
|
54
56
|
* Service for managing BigCommerce products.
|
|
@@ -157,6 +159,87 @@ let BigCommerceProductsService = class BigCommerceProductsService {
|
|
|
157
159
|
setProductVisibility(dtos) {
|
|
158
160
|
return this.updateProducts(dtos);
|
|
159
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* Updates custom fields for multiple products in batch.
|
|
164
|
+
*
|
|
165
|
+
* @param dtos - Array of product custom fields updates
|
|
166
|
+
* @returns ResultAsync with success/error results for each batch
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* ```typescript
|
|
170
|
+
* const result = await productsService.updateCustomFields([
|
|
171
|
+
* { id: 1, custom_fields: [{ name: 'field1', value: 'value1' }] },
|
|
172
|
+
* { id: 2, custom_fields: [{ id: 10, name: 'field2', value: 'value2' }] }
|
|
173
|
+
* ]);
|
|
174
|
+
* ```
|
|
175
|
+
*/
|
|
176
|
+
updateCustomFields(dtos) {
|
|
177
|
+
return this.updateProducts(dtos);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Gets detailed information for a specific product.
|
|
181
|
+
*
|
|
182
|
+
* @param dto - Product ID and optional query parameters for including related data
|
|
183
|
+
* @returns ResultAsync with product details
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* ```typescript
|
|
187
|
+
* const result = await productsService.getProductDetails({
|
|
188
|
+
* id: 123,
|
|
189
|
+
* query: {
|
|
190
|
+
* include: ['custom_fields', 'images', 'variants']
|
|
191
|
+
* }
|
|
192
|
+
* });
|
|
193
|
+
* ```
|
|
194
|
+
*/
|
|
195
|
+
getProductDetails(dto) {
|
|
196
|
+
return (0, validate_1.validateInputData)(schemas_1.GetProductDetailsSchema, dto)
|
|
197
|
+
.asyncAndThen((validated) => this.fetcher.fetch({
|
|
198
|
+
isB2B: false,
|
|
199
|
+
method: 'GET',
|
|
200
|
+
path: `catalog/products/${validated.id}`,
|
|
201
|
+
version: 'v3',
|
|
202
|
+
query: validated.query,
|
|
203
|
+
resultSchema: schemas_1.ProductDetailsSchema,
|
|
204
|
+
}))
|
|
205
|
+
.map((d) => d.data);
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Gets all products with simplified information using pagination.
|
|
209
|
+
*
|
|
210
|
+
* Fetches all products in batches, returning only id, sku, and type fields.
|
|
211
|
+
*
|
|
212
|
+
* @returns ResultAsync with array of simplified products
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* ```typescript
|
|
216
|
+
* const result = await productsService.getAllProducts();
|
|
217
|
+
* ```
|
|
218
|
+
*/
|
|
219
|
+
getAllProducts() {
|
|
220
|
+
return (0, while_1.whileLoop)({
|
|
221
|
+
initialParams: {
|
|
222
|
+
page: 1,
|
|
223
|
+
limit: constants_1.DEFAULTS.products.getAllBatchSize,
|
|
224
|
+
},
|
|
225
|
+
step: (params) => this.fetcher.fetch({
|
|
226
|
+
isB2B: false,
|
|
227
|
+
method: 'GET',
|
|
228
|
+
path: 'catalog/products',
|
|
229
|
+
version: 'v3',
|
|
230
|
+
query: (0, querystring_1.stringify)({
|
|
231
|
+
...params,
|
|
232
|
+
include_fields: 'id,sku,type',
|
|
233
|
+
}),
|
|
234
|
+
resultSchema: schemas_1.GetAllProductsResponseSchema,
|
|
235
|
+
}),
|
|
236
|
+
condition: (response, params) => params.page < response.meta.pagination.total_pages,
|
|
237
|
+
onStep: (_, params) => ({
|
|
238
|
+
...params,
|
|
239
|
+
page: params.page + 1,
|
|
240
|
+
}),
|
|
241
|
+
}).map((results) => results.flatMap((r) => r.data));
|
|
242
|
+
}
|
|
160
243
|
};
|
|
161
244
|
exports.BigCommerceProductsService = BigCommerceProductsService;
|
|
162
245
|
exports.BigCommerceProductsService = BigCommerceProductsService = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.service.js","sourceRoot":"","sources":["../../../src/bigcommerce-entities/products/products.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,uCAAyB;AACzB,+CAA2C;AAC3C,qCAAuD;AACvD,yDAAsD;AACtD,mDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"products.service.js","sourceRoot":"","sources":["../../../src/bigcommerce-entities/products/products.service.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const ProductTypeSchema: z.ZodEnum<{
|
|
3
|
+
physical: "physical";
|
|
4
|
+
digital: "digital";
|
|
5
|
+
}>;
|
|
6
|
+
export declare const SimplifiedProductSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodInt;
|
|
8
|
+
sku: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9
|
+
type: z.ZodEnum<{
|
|
10
|
+
physical: "physical";
|
|
11
|
+
digital: "digital";
|
|
12
|
+
}>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const GetAllProductsResponseSchema: z.ZodObject<{
|
|
15
|
+
data: z.ZodArray<z.ZodObject<{
|
|
16
|
+
id: z.ZodInt;
|
|
17
|
+
sku: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
|
+
type: z.ZodEnum<{
|
|
19
|
+
physical: "physical";
|
|
20
|
+
digital: "digital";
|
|
21
|
+
}>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
meta: z.ZodObject<{
|
|
24
|
+
pagination: z.ZodObject<{
|
|
25
|
+
total: z.ZodInt;
|
|
26
|
+
count: z.ZodInt;
|
|
27
|
+
per_page: z.ZodInt;
|
|
28
|
+
current_page: z.ZodInt;
|
|
29
|
+
total_pages: z.ZodInt;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export type BigCommerceSimplifiedProduct = z.infer<typeof SimplifiedProductSchema>;
|
|
34
|
+
//# sourceMappingURL=get-all-products.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-all-products.schema.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/products/schemas/get-all-products.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,iBAAiB;;;EAAkC,CAAC;AAEjE,eAAO,MAAM,uBAAuB;;;;;;;iBAIlC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;iBAWvC,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.GetAllProductsResponseSchema = exports.SimplifiedProductSchema = exports.ProductTypeSchema = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
exports.ProductTypeSchema = z.enum(['physical', 'digital']);
|
|
39
|
+
exports.SimplifiedProductSchema = z.object({
|
|
40
|
+
id: z.int(),
|
|
41
|
+
sku: z.string().optional().nullable(),
|
|
42
|
+
type: exports.ProductTypeSchema,
|
|
43
|
+
});
|
|
44
|
+
exports.GetAllProductsResponseSchema = z.object({
|
|
45
|
+
data: z.array(exports.SimplifiedProductSchema),
|
|
46
|
+
meta: z.object({
|
|
47
|
+
pagination: z.object({
|
|
48
|
+
total: z.int(),
|
|
49
|
+
count: z.int(),
|
|
50
|
+
per_page: z.int(),
|
|
51
|
+
current_page: z.int(),
|
|
52
|
+
total_pages: z.int(),
|
|
53
|
+
}),
|
|
54
|
+
}),
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=get-all-products.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-all-products.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/products/schemas/get-all-products.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEZ,QAAA,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC;AAEpD,QAAA,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACrC,IAAI,EAAE,yBAAiB;CACxB,CAAC,CAAC;AAEU,QAAA,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,+BAAuB,CAAC;IACtC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC;YACnB,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE;YACd,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE;YACd,QAAQ,EAAE,CAAC,CAAC,GAAG,EAAE;YACjB,YAAY,EAAE,CAAC,CAAC,GAAG,EAAE;YACrB,WAAW,EAAE,CAAC,CAAC,GAAG,EAAE;SACrB,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const CustomFieldSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodInt;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
value: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const GetProductDetailsSchema: z.ZodObject<{
|
|
8
|
+
id: z.ZodInt;
|
|
9
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
include: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodEnum<{
|
|
11
|
+
bulk_pricing_rules: "bulk_pricing_rules";
|
|
12
|
+
channels: "channels";
|
|
13
|
+
custom_fields: "custom_fields";
|
|
14
|
+
images: "images";
|
|
15
|
+
modifiers: "modifiers";
|
|
16
|
+
options: "options";
|
|
17
|
+
parent_relations: "parent_relations";
|
|
18
|
+
primary_image: "primary_image";
|
|
19
|
+
reviews: "reviews";
|
|
20
|
+
variants: "variants";
|
|
21
|
+
videos: "videos";
|
|
22
|
+
}>>, z.ZodTransform<string, ("bulk_pricing_rules" | "channels" | "custom_fields" | "images" | "modifiers" | "options" | "parent_relations" | "primary_image" | "reviews" | "variants" | "videos")[]>>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export declare const ProductDetailsSchema: z.ZodObject<{
|
|
26
|
+
data: z.ZodObject<{
|
|
27
|
+
id: z.ZodInt;
|
|
28
|
+
sku: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
29
|
+
categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodInt>>>;
|
|
30
|
+
brand_id: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
31
|
+
custom_fields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32
|
+
id: z.ZodInt;
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
value: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export type BigCommerceCustomField = z.infer<typeof CustomFieldSchema>;
|
|
39
|
+
export type BigCommerceProductDetails = z.infer<typeof ProductDetailsSchema>;
|
|
40
|
+
//# sourceMappingURL=get-product-details.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-product-details.schema.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/products/schemas/get-product-details.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAgBzB,eAAO,MAAM,iBAAiB;;;;iBAI5B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;iBAUlC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;iBAQ/B,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACvE,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ProductDetailsSchema = exports.GetProductDetailsSchema = exports.CustomFieldSchema = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
const IncludeOptionsSchema = z.enum([
|
|
39
|
+
'bulk_pricing_rules',
|
|
40
|
+
'channels',
|
|
41
|
+
'custom_fields',
|
|
42
|
+
'images',
|
|
43
|
+
'modifiers',
|
|
44
|
+
'options',
|
|
45
|
+
'parent_relations',
|
|
46
|
+
'primary_image',
|
|
47
|
+
'reviews',
|
|
48
|
+
'variants',
|
|
49
|
+
'videos',
|
|
50
|
+
]);
|
|
51
|
+
exports.CustomFieldSchema = z.object({
|
|
52
|
+
id: z.int(),
|
|
53
|
+
name: z.string(),
|
|
54
|
+
value: z.string(),
|
|
55
|
+
});
|
|
56
|
+
exports.GetProductDetailsSchema = z.object({
|
|
57
|
+
id: z.int(),
|
|
58
|
+
query: z
|
|
59
|
+
.object({
|
|
60
|
+
include: z
|
|
61
|
+
.array(IncludeOptionsSchema)
|
|
62
|
+
.transform((include) => include.join(','))
|
|
63
|
+
.optional(),
|
|
64
|
+
})
|
|
65
|
+
.optional(),
|
|
66
|
+
});
|
|
67
|
+
exports.ProductDetailsSchema = z.object({
|
|
68
|
+
data: z.object({
|
|
69
|
+
id: z.int(),
|
|
70
|
+
sku: z.string().optional().nullable(),
|
|
71
|
+
categories: z.array(z.int()).nullable().optional(),
|
|
72
|
+
brand_id: z.int().nullable().optional(),
|
|
73
|
+
custom_fields: z.array(exports.CustomFieldSchema).optional().nullable(),
|
|
74
|
+
}),
|
|
75
|
+
});
|
|
76
|
+
//# sourceMappingURL=get-product-details.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-product-details.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/products/schemas/get-product-details.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEzB,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC;IAClC,oBAAoB;IACpB,UAAU;IACV,eAAe;IACf,QAAQ;IACR,WAAW;IACX,SAAS;IACT,kBAAkB;IAClB,eAAe;IACf,SAAS;IACT,UAAU;IACV,QAAQ;CACT,CAAC,CAAC;AAEU,QAAA,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEU,QAAA,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;IACX,KAAK,EAAE,CAAC;SACL,MAAM,CAAC;QACN,OAAO,EAAE,CAAC;aACP,KAAK,CAAC,oBAAoB,CAAC;aAC3B,SAAS,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;aACzC,QAAQ,EAAE;KACd,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC;AAEU,QAAA,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;QACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACrC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAClD,QAAQ,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACvC,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAiB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KAChE,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/products/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/products/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC"}
|
|
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./get-all-products.schema"), exports);
|
|
18
|
+
__exportStar(require("./get-product-details.schema"), exports);
|
|
17
19
|
__exportStar(require("./set-inventory.schema"), exports);
|
|
18
20
|
__exportStar(require("./update-products.schema"), exports);
|
|
19
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/products/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,2DAAyC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/products/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,+DAA6C;AAC7C,yDAAuC;AACvC,2DAAyC"}
|
|
@@ -3,9 +3,24 @@ export declare const UpdateProductVisibilitySchema: z.ZodObject<{
|
|
|
3
3
|
id: z.ZodNumber;
|
|
4
4
|
is_visible: z.ZodBoolean;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
|
+
export declare const UpdateCustomFieldsSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodInt;
|
|
8
|
+
custom_fields: z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodInt>>;
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
value: z.ZodString;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
6
14
|
export declare const UpdateProductSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
7
15
|
id: z.ZodNumber;
|
|
8
16
|
is_visible: z.ZodBoolean;
|
|
17
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
+
id: z.ZodInt;
|
|
19
|
+
custom_fields: z.ZodArray<z.ZodObject<{
|
|
20
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodInt>>;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
value: z.ZodString;
|
|
23
|
+
}, z.core.$strip>>;
|
|
9
24
|
}, z.core.$strip>]>;
|
|
10
25
|
export declare const UpdateProductResponseSchema: z.ZodUnknown;
|
|
11
26
|
//# sourceMappingURL=update-products.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-products.schema.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/products/schemas/update-products.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,eAAO,MAAM,6BAA6B;;;iBAGxC,CAAC;AAEH,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"update-products.schema.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/products/schemas/update-products.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,eAAO,MAAM,6BAA6B;;;iBAGxC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;iBASnC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;mBAG9B,CAAC;AAEH,eAAO,MAAM,2BAA2B,cAAc,CAAC"}
|
|
@@ -33,12 +33,23 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.UpdateProductResponseSchema = exports.UpdateProductSchema = exports.UpdateProductVisibilitySchema = void 0;
|
|
36
|
+
exports.UpdateProductResponseSchema = exports.UpdateProductSchema = exports.UpdateCustomFieldsSchema = exports.UpdateProductVisibilitySchema = void 0;
|
|
37
37
|
const z = __importStar(require("zod"));
|
|
38
38
|
exports.UpdateProductVisibilitySchema = z.object({
|
|
39
39
|
id: z.number(),
|
|
40
40
|
is_visible: z.boolean(),
|
|
41
41
|
});
|
|
42
|
-
exports.
|
|
42
|
+
exports.UpdateCustomFieldsSchema = z.object({
|
|
43
|
+
id: z.int(),
|
|
44
|
+
custom_fields: z.array(z.object({
|
|
45
|
+
id: z.int().optional().nullable(),
|
|
46
|
+
name: z.string(),
|
|
47
|
+
value: z.string().nonempty(),
|
|
48
|
+
})),
|
|
49
|
+
});
|
|
50
|
+
exports.UpdateProductSchema = z.union([
|
|
51
|
+
exports.UpdateProductVisibilitySchema,
|
|
52
|
+
exports.UpdateCustomFieldsSchema,
|
|
53
|
+
]);
|
|
43
54
|
exports.UpdateProductResponseSchema = z.unknown();
|
|
44
55
|
//# sourceMappingURL=update-products.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-products.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/products/schemas/update-products.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACZ,QAAA,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;CACxB,CAAC,CAAC;AAEU,QAAA,
|
|
1
|
+
{"version":3,"file":"update-products.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/products/schemas/update-products.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACZ,QAAA,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;CACxB,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;IACX,aAAa,EAAE,CAAC,CAAC,KAAK,CACpB,CAAC,CAAC,MAAM,CAAC;QACP,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACjC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC7B,CAAC,CACH;CACF,CAAC,CAAC;AAEU,QAAA,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC;IACzC,qCAA6B;IAC7B,gCAAwB;CACzB,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC"}
|
package/dist/constants.d.ts
CHANGED
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DX,CAAC"}
|
package/dist/constants.js
CHANGED
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,KAAK,EAAE;QACL,UAAU,EAAE,CAAC;QACb,gBAAgB,EAAE,CAAC;KACpB;IACD,OAAO,EAAE;QACP,EAAE,EAAE,KAAK;KACV;IACD,eAAe,EAAE;QACf,GAAG,EAAE,qCAAqC;QAC1C,OAAO,EAAE,oCAAoC;KAC9C;IACD,SAAS,EAAE;QACT,YAAY,EAAE,GAAG;KAClB;IACD,UAAU,EAAE;QACV,YAAY,EAAE,GAAG;KAClB;IACD,SAAS,EAAE;QACT,qBAAqB,EAAE;YACrB,eAAe,EAAE,EAAE;YACnB,WAAW,EAAE,CAAC;SACf;QACD,WAAW,EAAE;YACX,YAAY,EAAE,GAAG;SAClB;QACD,KAAK,EAAE;YACL,YAAY,EAAE,GAAG;SAClB;QACD,IAAI,EAAE;YACJ,QAAQ,EAAE,GAAG;SACd;KACF;IACD,QAAQ,EAAE;QACR,eAAe,EAAE,CAAC;QAClB,iBAAiB,EAAE,CAAC;QACpB,SAAS,EAAE;YACT,eAAe,EAAE,IAAI;YACrB,iBAAiB,EAAE,CAAC;SACrB;KACF;IACD,MAAM,EAAE;QACN,eAAe,EAAE,GAAG;QACpB,iBAAiB,EAAE;YACjB,eAAe,EAAE,GAAG;SACrB;QACD,QAAQ,EAAE;YACR,eAAe,EAAE,GAAG;SACrB;KACF;IACD,UAAU,EAAE;QACV,eAAe,EAAE,GAAG;QACpB,OAAO,EAAE;YACP,eAAe,EAAE,IAAI;SACtB;KACF;IACD,SAAS,EAAE;QACT,YAAY,EAAE,GAAG;KAClB;IACD,KAAK,EAAE,IAAI;CACH,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,KAAK,EAAE;QACL,UAAU,EAAE,CAAC;QACb,gBAAgB,EAAE,CAAC;KACpB;IACD,OAAO,EAAE;QACP,EAAE,EAAE,KAAK;KACV;IACD,eAAe,EAAE;QACf,GAAG,EAAE,qCAAqC;QAC1C,OAAO,EAAE,oCAAoC;KAC9C;IACD,SAAS,EAAE;QACT,YAAY,EAAE,GAAG;KAClB;IACD,UAAU,EAAE;QACV,YAAY,EAAE,GAAG;KAClB;IACD,SAAS,EAAE;QACT,qBAAqB,EAAE;YACrB,eAAe,EAAE,EAAE;YACnB,WAAW,EAAE,CAAC;SACf;QACD,WAAW,EAAE;YACX,YAAY,EAAE,GAAG;SAClB;QACD,KAAK,EAAE;YACL,YAAY,EAAE,GAAG;SAClB;QACD,IAAI,EAAE;YACJ,QAAQ,EAAE,GAAG;SACd;KACF;IACD,QAAQ,EAAE;QACR,eAAe,EAAE,GAAG;QACpB,eAAe,EAAE,CAAC;QAClB,iBAAiB,EAAE,CAAC;QACpB,SAAS,EAAE;YACT,eAAe,EAAE,IAAI;YACrB,iBAAiB,EAAE,CAAC;SACrB;KACF;IACD,MAAM,EAAE;QACN,eAAe,EAAE,GAAG;QACpB,iBAAiB,EAAE;YACjB,eAAe,EAAE,GAAG;SACrB;QACD,QAAQ,EAAE;YACR,eAAe,EAAE,GAAG;SACrB;KACF;IACD,UAAU,EAAE;QACV,eAAe,EAAE,GAAG;QACpB,OAAO,EAAE;YACP,eAAe,EAAE,IAAI;SACtB;KACF;IACD,SAAS,EAAE;QACT,YAAY,EAAE,GAAG;KAClB;IACD,KAAK,EAAE,IAAI;CACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edgebound/bigcommerce",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.34",
|
|
4
4
|
"types": "./dist/index.d.ts",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"reflect-metadata": "^0.2.2",
|
|
23
23
|
"rxjs": "^7.8.2",
|
|
24
24
|
"zod": "^4.3.3",
|
|
25
|
-
"@edgebound/
|
|
26
|
-
"@edgebound/
|
|
25
|
+
"@edgebound/typescript-config": "0.0.1",
|
|
26
|
+
"@edgebound/eslint-config": "0.0.4"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@nestjs/common": "^11.1.12",
|