@edgebound/bigcommerce 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bigcommerce-entities/products/products.service.d.ts +12 -0
- package/dist/bigcommerce-entities/products/products.service.d.ts.map +1 -1
- package/dist/bigcommerce-entities/products/schemas/find-products.schema.d.ts +4 -0
- package/dist/bigcommerce-entities/products/schemas/find-products.schema.d.ts.map +1 -1
- package/dist/bigcommerce-entities/products/schemas/find-products.schema.js +4 -0
- package/dist/bigcommerce-entities/products/schemas/find-products.schema.js.map +1 -1
- package/dist/bigcommerce-entities/products/schemas/get-all-products.schema.d.ts +16 -0
- package/dist/bigcommerce-entities/products/schemas/get-all-products.schema.d.ts.map +1 -1
- package/dist/bigcommerce-entities/products/schemas/get-all-products.schema.js +10 -0
- package/dist/bigcommerce-entities/products/schemas/get-all-products.schema.js.map +1 -1
- package/package.json +1 -1
|
@@ -404,6 +404,18 @@ export declare class BigCommerceProductsService {
|
|
|
404
404
|
total_pages: number;
|
|
405
405
|
};
|
|
406
406
|
};
|
|
407
|
+
custom_fields?: {
|
|
408
|
+
id: number;
|
|
409
|
+
name: string;
|
|
410
|
+
value: string;
|
|
411
|
+
}[] | null | undefined;
|
|
412
|
+
bulk_pricing_rules?: {
|
|
413
|
+
id: number;
|
|
414
|
+
quantity_min: number;
|
|
415
|
+
quantity_max: number;
|
|
416
|
+
type: "fixed" | "price" | "percent";
|
|
417
|
+
amount: number;
|
|
418
|
+
}[] | null | undefined;
|
|
407
419
|
}, import("../../core").BigCommerceError>;
|
|
408
420
|
/**
|
|
409
421
|
* Gets all products matching the criteria with automatic pagination.
|
|
@@ -1 +1 @@
|
|
|
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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;;;;;;;;;;;;;;;;;;;;;IAI7E;;;;;;;;;;;;;;;OAeG;IACH,iBAAiB,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC;;;;;;;;;;;;;;;;;;IAe9D;;;;;;;;;;;;;;;OAeG;IACH,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC
|
|
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,EACL,wBAAwB,EAGxB,wBAAwB,EAExB,0BAA0B,EAE1B,uBAAuB,EAGvB,6BAA6B,EAE7B,wBAAwB,EACxB,6BAA6B,EAC7B,mBAAmB,EAEnB,6BAA6B,EAC9B,MAAM,WAAW,CAAC;AAEnB;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBACa,0BAA0B;IACzB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,yBAAyB;IAE/D;;;;;;;;;;;;;;;;;OAiBG;IACH,aAAa,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC;;;;;IAa7D;;;;;;;;;;;;;;;;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;;;;;;;;;;;;OAYG;IACH,uBAAuB,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAI7E;;;;;;;;;;;;;;;OAeG;IACH,iBAAiB,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC;;;;;;;;;;;;;;;;;;IAe9D;;;;;;;;;;;;;;;OAeG;IACH,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAa9D;;;;;;;;;;;;OAYG;IACH,gBAAgB,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;;;;;;IAgB9F,kBAAkB,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC;;;;IAWlE,OAAO,CAAC,iBAAiB;CAa1B"}
|
|
@@ -6,5 +6,9 @@ export declare const FindProductsCriteriaSchema: z.ZodObject<{
|
|
|
6
6
|
is_featured: z.ZodOptional<z.ZodPipe<z.ZodBoolean, z.ZodTransform<1 | 0, boolean>>>;
|
|
7
7
|
'id:in': z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodInt>, z.ZodTransform<string, number[]>>>;
|
|
8
8
|
'categories:in': z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodInt>, z.ZodTransform<string, number[]>>>;
|
|
9
|
+
include: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodEnum<{
|
|
10
|
+
custom_fields: "custom_fields";
|
|
11
|
+
bulk_pricing_rules: "bulk_pricing_rules";
|
|
12
|
+
}>>, z.ZodTransform<string, ("custom_fields" | "bulk_pricing_rules")[]>>>;
|
|
9
13
|
}, z.core.$strip>;
|
|
10
14
|
//# sourceMappingURL=find-products.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-products.schema.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/products/schemas/find-products.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"find-products.schema.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/products/schemas/find-products.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,0BAA0B;;;;;;;;;;;iBAoBrC,CAAC"}
|
|
@@ -52,5 +52,9 @@ exports.FindProductsCriteriaSchema = z.object({
|
|
|
52
52
|
.array(z.int())
|
|
53
53
|
.transform((ids) => ids.join(','))
|
|
54
54
|
.optional(),
|
|
55
|
+
include: z
|
|
56
|
+
.array(z.enum(['custom_fields', 'bulk_pricing_rules']))
|
|
57
|
+
.transform((fields) => fields.join(','))
|
|
58
|
+
.optional(),
|
|
55
59
|
});
|
|
56
60
|
//# sourceMappingURL=find-products.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-products.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/products/schemas/find-products.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,kDAA8C;AACjC,QAAA,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnC,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,oBAAQ,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,QAAQ,EAAE;IAC3E,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,WAAW,EAAE,CAAC;SACX,OAAO,EAAE;SACT,SAAS,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SAC/C,QAAQ,EAAE;IACb,OAAO,EAAE,CAAC;SACP,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;SACd,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACjC,QAAQ,EAAE;IACb,eAAe,EAAE,CAAC;SACf,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;SACd,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACjC,QAAQ,EAAE;CACd,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"find-products.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/products/schemas/find-products.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,kDAA8C;AACjC,QAAA,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnC,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,oBAAQ,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,QAAQ,EAAE;IAC3E,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,WAAW,EAAE,CAAC;SACX,OAAO,EAAE;SACT,SAAS,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SAC/C,QAAQ,EAAE;IACb,OAAO,EAAE,CAAC;SACP,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;SACd,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACjC,QAAQ,EAAE;IACb,eAAe,EAAE,CAAC;SACf,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;SACd,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACjC,QAAQ,EAAE;IACb,OAAO,EAAE,CAAC;SACP,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,oBAAoB,CAAC,CAAC,CAAC;SACtD,SAAS,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACvC,QAAQ,EAAE;CACd,CAAC,CAAC"}
|
|
@@ -31,6 +31,22 @@ export declare const GetAllProductsResponseSchema: z.ZodObject<{
|
|
|
31
31
|
total_pages: z.ZodInt;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
|
+
custom_fields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
35
|
+
id: z.ZodInt;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
value: z.ZodString;
|
|
38
|
+
}, z.core.$strip>>>>;
|
|
39
|
+
bulk_pricing_rules: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
40
|
+
id: z.ZodInt;
|
|
41
|
+
quantity_min: z.ZodInt;
|
|
42
|
+
quantity_max: z.ZodInt;
|
|
43
|
+
type: z.ZodEnum<{
|
|
44
|
+
fixed: "fixed";
|
|
45
|
+
price: "price";
|
|
46
|
+
percent: "percent";
|
|
47
|
+
}>;
|
|
48
|
+
amount: z.ZodNumber;
|
|
49
|
+
}, z.core.$strip>>>>;
|
|
34
50
|
}, z.core.$strip>;
|
|
35
51
|
export type BigCommerceSimplifiedProduct = z.infer<typeof SimplifiedProductSchema>;
|
|
36
52
|
//# sourceMappingURL=get-all-products.schema.d.ts.map
|
|
@@ -1 +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;
|
|
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;AAGzB,eAAO,MAAM,iBAAiB;;;EAAkC,CAAC;AAEjE,eAAO,MAAM,uBAAuB;;;;;;;;iBAKlC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsBvC,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -35,6 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.GetAllProductsResponseSchema = exports.SimplifiedProductSchema = exports.ProductTypeSchema = void 0;
|
|
37
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const get_product_details_schema_1 = require("./get-product-details.schema");
|
|
38
39
|
exports.ProductTypeSchema = z.enum(['physical', 'digital']);
|
|
39
40
|
exports.SimplifiedProductSchema = z.object({
|
|
40
41
|
id: z.int(),
|
|
@@ -53,5 +54,14 @@ exports.GetAllProductsResponseSchema = z.object({
|
|
|
53
54
|
total_pages: z.int(),
|
|
54
55
|
}),
|
|
55
56
|
}),
|
|
57
|
+
custom_fields: z
|
|
58
|
+
.array(z.object({
|
|
59
|
+
id: z.int(),
|
|
60
|
+
name: z.string(),
|
|
61
|
+
value: z.string(),
|
|
62
|
+
}))
|
|
63
|
+
.optional()
|
|
64
|
+
.nullable(),
|
|
65
|
+
bulk_pricing_rules: get_product_details_schema_1.ProductPricingBulkSchema.array().optional().nullable(),
|
|
56
66
|
});
|
|
57
67
|
//# sourceMappingURL=get-all-products.schema.js.map
|
|
@@ -1 +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;
|
|
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;AACzB,6EAAwE;AAE3D,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;IACvB,UAAU,EA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