rerobe-js-orm 3.0.10 → 3.0.11

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.
@@ -4,7 +4,6 @@ const MerchantFactory_1 = require("./MerchantFactory");
4
4
  const Merchant_1 = require("../../models/Merchant");
5
5
  class MerchantFromFormState extends MerchantFactory_1.default {
6
6
  createMerchant(fs) {
7
- var _a;
8
7
  const MerchantMutableData = {
9
8
  name: fs.fields.name.inputValue,
10
9
  type: fs.fields.type.selectedValue,
@@ -18,7 +17,6 @@ class MerchantFromFormState extends MerchantFactory_1.default {
18
17
  timeZone: fs.fields.timeZone.selectedValue,
19
18
  unitSystem: fs.fields.unitSystem.selectedValue,
20
19
  defaultWeightUnit: fs.fields.defaultWeightUnit.selectedValue,
21
- defaultLocation: (_a = fs.props) === null || _a === void 0 ? void 0 : _a.defaultLocation,
22
20
  webhooks: fs.fields.webhooks.selectedValues,
23
21
  primaryDomain: fs.fields.primaryDomain.inputValue,
24
22
  socialLinks: fs.fields.socialLinks.selectedValue,
@@ -91,7 +91,6 @@ class Merchant extends Base_1.default {
91
91
  timeZone: this.timeZone,
92
92
  unitSystem: this.unitSystem,
93
93
  defaultWeightUnit: this.defaultWeightUnit,
94
- defaultLocation: this.defaultLocation,
95
94
  primaryDomain: this.primaryDomain,
96
95
  webhooks: this.webhooks,
97
96
  socialLinks: this.socialLinks,
@@ -510,7 +510,7 @@ class Product extends Base_1.default {
510
510
  },
511
511
  {
512
512
  facet: false,
513
- optional: false,
513
+ optional: true,
514
514
  name: 'merchantId',
515
515
  type: 'string',
516
516
  },
@@ -19,7 +19,6 @@ declare type MerchantMutableData = {
19
19
  timeZone: string;
20
20
  unitSystem: UnitSystemTypes | string | null;
21
21
  defaultWeightUnit: MetricWeightTypes | ImperialWeightTypes | string | null;
22
- defaultLocation: string;
23
22
  primaryDomain: string;
24
23
  webhooks: MerchantWebHook[];
25
24
  socialLinks: SocialLinksType | null;
@@ -35,6 +34,7 @@ declare type MerchantSystemOnlyMutableData = {
35
34
  sharedSecret: string;
36
35
  ribbnId: string;
37
36
  webshopHomePageId: string;
37
+ defaultLocation: string;
38
38
  };
39
39
  declare type MerchantObj = MerchantMutableData & MerchantSystemOnlyMutableData;
40
40
  declare type MerchantTypes = 'INDIVIDUAL' | 'BUSINESS';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "3.0.10",
3
+ "version": "3.0.11",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",