@edgebound/bigcommerce 0.6.2 → 0.6.3

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.
@@ -394,6 +394,18 @@ export declare class BigCommerceProductsService {
394
394
  type: "physical" | "digital";
395
395
  sku?: string | null | undefined;
396
396
  categories?: number[] | null | undefined;
397
+ custom_fields?: {
398
+ id: number;
399
+ name: string;
400
+ value: string;
401
+ }[] | null | undefined;
402
+ bulk_pricing_rules?: {
403
+ id: number;
404
+ quantity_min: number;
405
+ quantity_max: number;
406
+ type: "fixed" | "price" | "percent";
407
+ amount: number;
408
+ }[] | null | undefined;
397
409
  }[];
398
410
  meta: {
399
411
  pagination: {
@@ -404,18 +416,6 @@ export declare class BigCommerceProductsService {
404
416
  total_pages: number;
405
417
  };
406
418
  };
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;
419
419
  }, import("../../core").BigCommerceError>;
420
420
  /**
421
421
  * Gets all products matching the criteria with automatic pagination.
@@ -435,6 +435,18 @@ export declare class BigCommerceProductsService {
435
435
  type: "physical" | "digital";
436
436
  sku?: string | null | undefined;
437
437
  categories?: number[] | null | undefined;
438
+ custom_fields?: {
439
+ id: number;
440
+ name: string;
441
+ value: string;
442
+ }[] | null | undefined;
443
+ bulk_pricing_rules?: {
444
+ id: number;
445
+ quantity_min: number;
446
+ quantity_max: number;
447
+ type: "fixed" | "price" | "percent";
448
+ amount: number;
449
+ }[] | null | undefined;
438
450
  }[], import("../../core").BigCommerceError>;
439
451
  deleteCustomFields(input: z.input<typeof DeleteCustomFieldsSchema>): import("neverthrow").ResultAsync<{
440
452
  data: number;
@@ -1 +1 @@
1
- {"version":3,"file":"products.service.d.ts","sourceRoot":"","sources":["../../../src/bigcommerce-entities/products/products.service.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AAE,MAAM,GAAG,OAAO,CAAC;;;;;;;;;;;;;;;;;;IAgB9F,kBAAkB,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC;;;;IAWlE,OAAO,CAAC,iBAAiB;CAa1B"}
@@ -11,6 +11,22 @@ export declare const SimplifiedProductSchema: z.ZodObject<{
11
11
  digital: "digital";
12
12
  }>;
13
13
  categories: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodInt>>>;
14
+ custom_fields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
15
+ id: z.ZodInt;
16
+ name: z.ZodString;
17
+ value: z.ZodString;
18
+ }, z.core.$strip>>>>;
19
+ bulk_pricing_rules: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
20
+ id: z.ZodInt;
21
+ quantity_min: z.ZodInt;
22
+ quantity_max: z.ZodInt;
23
+ type: z.ZodEnum<{
24
+ fixed: "fixed";
25
+ price: "price";
26
+ percent: "percent";
27
+ }>;
28
+ amount: z.ZodNumber;
29
+ }, z.core.$strip>>>>;
14
30
  }, z.core.$strip>;
15
31
  export declare const GetAllProductsResponseSchema: z.ZodObject<{
16
32
  data: z.ZodArray<z.ZodObject<{
@@ -21,6 +37,22 @@ export declare const GetAllProductsResponseSchema: z.ZodObject<{
21
37
  digital: "digital";
22
38
  }>;
23
39
  categories: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodInt>>>;
40
+ custom_fields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
41
+ id: z.ZodInt;
42
+ name: z.ZodString;
43
+ value: z.ZodString;
44
+ }, z.core.$strip>>>>;
45
+ bulk_pricing_rules: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
46
+ id: z.ZodInt;
47
+ quantity_min: z.ZodInt;
48
+ quantity_max: z.ZodInt;
49
+ type: z.ZodEnum<{
50
+ fixed: "fixed";
51
+ price: "price";
52
+ percent: "percent";
53
+ }>;
54
+ amount: z.ZodNumber;
55
+ }, z.core.$strip>>>>;
24
56
  }, z.core.$strip>>;
25
57
  meta: z.ZodObject<{
26
58
  pagination: z.ZodObject<{
@@ -31,22 +63,6 @@ export declare const GetAllProductsResponseSchema: z.ZodObject<{
31
63
  total_pages: z.ZodInt;
32
64
  }, z.core.$strip>;
33
65
  }, 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>>>>;
50
66
  }, z.core.$strip>;
51
67
  export type BigCommerceSimplifiedProduct = z.infer<typeof SimplifiedProductSchema>;
52
68
  //# 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;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"}
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;;;;;;;;;;;;;;;;;;;;;;;;iBAgBlC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWvC,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -42,6 +42,15 @@ exports.SimplifiedProductSchema = z.object({
42
42
  sku: z.string().optional().nullable(),
43
43
  type: exports.ProductTypeSchema,
44
44
  categories: z.array(z.int()).optional().nullable(),
45
+ custom_fields: z
46
+ .array(z.object({
47
+ id: z.int(),
48
+ name: z.string(),
49
+ value: z.string(),
50
+ }))
51
+ .optional()
52
+ .nullable(),
53
+ bulk_pricing_rules: get_product_details_schema_1.ProductPricingBulkSchema.array().optional().nullable(),
45
54
  });
46
55
  exports.GetAllProductsResponseSchema = z.object({
47
56
  data: z.array(exports.SimplifiedProductSchema),
@@ -54,14 +63,5 @@ exports.GetAllProductsResponseSchema = z.object({
54
63
  total_pages: z.int(),
55
64
  }),
56
65
  }),
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(),
66
66
  });
67
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;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,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACnD,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;IACF,aAAa,EAAE,CAAC;SACb,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;QACP,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;QACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;KAClB,CAAC,CACH;SACA,QAAQ,EAAE;SACV,QAAQ,EAAE;IACb,kBAAkB,EAAE,qDAAwB,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC3E,CAAC,CAAC"}
1
+ {"version":3,"file":"get-all-products.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/products/schemas/get-all-products.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgebound/bigcommerce",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
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/eslint-config": "0.0.4",
26
- "@edgebound/typescript-config": "0.0.1"
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",