@cloudcommerce/types 0.0.126 → 0.0.128

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/index.ts CHANGED
@@ -78,6 +78,26 @@ type AppModuleBody = {
78
78
  application: Applications,
79
79
  };
80
80
 
81
+ type CmsSettings = {
82
+ domain: string,
83
+ name: string,
84
+ description: string,
85
+ logo: string,
86
+ icon: string,
87
+ primary_color: string,
88
+ secondary_color?: string,
89
+ bg_color?: string,
90
+ email: string,
91
+ phone: string,
92
+ address: string,
93
+ corporate_name: string,
94
+ doc_number: string,
95
+ lang: string,
96
+ currency: string,
97
+ currency_symbol: string,
98
+ country_code: string,
99
+ };
100
+
81
101
  export type {
82
102
  Products,
83
103
  Categories,
@@ -118,4 +138,5 @@ export type {
118
138
  CreateTransactionParams,
119
139
  CreateTransactionResponse,
120
140
  CheckoutBody,
141
+ CmsSettings,
121
142
  };
@@ -68,4 +68,36 @@ export interface ApplyDiscountResponse {
68
68
  * @maxItems 3000
69
69
  */
70
70
  freebie_product_ids?: string[];
71
+ /**
72
+ * List of buy together offers
73
+ *
74
+ * @maxItems 300
75
+ */
76
+ buy_together?: {
77
+ /**
78
+ * Products to buy together with respective quantity, product ID as object property
79
+ */
80
+ products?: {
81
+ /**
82
+ * Product quantity to buy
83
+ *
84
+ * This interface was referenced by `undefined`'s JSON-Schema definition
85
+ * via the `patternProperty` "^([a-f0-9]{24})$".
86
+ */
87
+ [k: string]: number;
88
+ };
89
+ /**
90
+ * Discount object
91
+ */
92
+ discount: {
93
+ /**
94
+ * Discount type
95
+ */
96
+ type?: 'percentage' | 'fixed';
97
+ /**
98
+ * Discount value, percentage or fixed
99
+ */
100
+ value: number;
101
+ };
102
+ }[];
71
103
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/types",
3
3
  "type": "module",
4
- "version": "0.0.126",
4
+ "version": "0.0.128",
5
5
  "description": "E-Com Plus Cloud Commerce reusable type definitions",
6
6
  "main": "index.ts",
7
7
  "repository": {
@@ -16,6 +16,6 @@
16
16
  },
17
17
  "homepage": "https://github.com/ecomplus/cloud-commerce/tree/main/packages/types#readme",
18
18
  "dependencies": {
19
- "@cloudcommerce/api": "0.0.126"
19
+ "@cloudcommerce/api": "0.0.128"
20
20
  }
21
21
  }