@sgftech/medusa-plugin-marketplace-v2 0.1.74 → 0.1.75

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.
@@ -1,8 +1,6 @@
1
1
  import { Customer } from "./customer";
2
2
  import { Address as MedusaAddress } from "@medusajs/medusa/dist/models/address";
3
- import { Country } from "./country";
4
3
  export declare class Address extends MedusaAddress {
5
4
  tax_code?: string;
6
5
  customer: Customer | null;
7
- country: Country | null;
8
6
  }
@@ -15,7 +15,6 @@ exports.Address = void 0;
15
15
  const typeorm_1 = require("typeorm");
16
16
  const customer_1 = require("./customer");
17
17
  const address_1 = require("@medusajs/medusa/dist/models/address");
18
- const country_1 = require("./country");
19
18
  let Address = class Address extends address_1.Address {
20
19
  };
21
20
  __decorate([
@@ -27,11 +26,6 @@ __decorate([
27
26
  (0, typeorm_1.JoinColumn)({ name: "customer_id" }),
28
27
  __metadata("design:type", customer_1.Customer)
29
28
  ], Address.prototype, "customer", void 0);
30
- __decorate([
31
- (0, typeorm_1.ManyToOne)(() => country_1.Country),
32
- (0, typeorm_1.JoinColumn)({ name: "country_code", referencedColumnName: "iso_2" }),
33
- __metadata("design:type", country_1.Country)
34
- ], Address.prototype, "country", void 0);
35
29
  Address = __decorate([
36
30
  (0, typeorm_1.Entity)()
37
31
  ], Address);
@@ -1 +1 @@
1
- {"version":3,"file":"address.js","sourceRoot":"","sources":["../../src/models/address.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA4B;AAC5B,kCAAkC;AAClC,qCAAgE;AAChE,yCAAsC;AACtC,kEAAgF;AAChF,uCAAoC;AAE7B,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,iBAAa;CAYzC,CAAA;AAXG;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;;yCACX;AAGlB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mBAAQ,CAAC;IACzB,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAC1B,mBAAQ;yCAAQ;AAE1B;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iBAAO,CAAC;IACxB,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,oBAAoB,EAAE,OAAO,EAAE,CAAC;8BAC3D,iBAAO;wCAAQ;AAXf,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CAYnB;AAZY,0BAAO"}
1
+ {"version":3,"file":"address.js","sourceRoot":"","sources":["../../src/models/address.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA4B;AAC5B,kCAAkC;AAClC,qCAAgE;AAChE,yCAAsC;AACtC,kEAAgF;AAGzE,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,iBAAa;CAQzC,CAAA;AAPG;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;;yCACX;AAGlB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mBAAQ,CAAC;IACzB,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAC1B,mBAAQ;yCAAQ;AAPjB,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CAQnB;AARY,0BAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sgftech/medusa-plugin-marketplace-v2",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
4
4
  "description": "A plugin to initiate marketplace",
5
5
  "author": "Govind Diwakar",
6
6
  "license": "MIT",
@@ -1,7 +0,0 @@
1
- import { Country as MedusaCountry } from "@medusajs/medusa/dist/models/country";
2
- import { Address } from "./address";
3
- import { Region } from "@medusajs/medusa";
4
- export declare class Country extends MedusaCountry {
5
- addresses: Address[];
6
- region: Region;
7
- }
@@ -1,35 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.Country = void 0;
13
- /* eslint-disable new-cap */
14
- /* eslint-disable require-jsdoc */
15
- const typeorm_1 = require("typeorm");
16
- const country_1 = require("@medusajs/medusa/dist/models/country");
17
- const address_1 = require("./address");
18
- const medusa_1 = require("@medusajs/medusa");
19
- let Country = class Country extends country_1.Country {
20
- };
21
- __decorate([
22
- (0, typeorm_1.OneToMany)(() => address_1.Address, (c) => c.country),
23
- (0, typeorm_1.JoinColumn)(),
24
- __metadata("design:type", Array)
25
- ], Country.prototype, "addresses", void 0);
26
- __decorate([
27
- (0, typeorm_1.ManyToOne)(() => medusa_1.Region, (r) => r.countries),
28
- (0, typeorm_1.JoinColumn)({ name: "region_id" }),
29
- __metadata("design:type", medusa_1.Region)
30
- ], Country.prototype, "region", void 0);
31
- Country = __decorate([
32
- (0, typeorm_1.Entity)()
33
- ], Country);
34
- exports.Country = Country;
35
- //# sourceMappingURL=country.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"country.js","sourceRoot":"","sources":["../../src/models/country.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA4B;AAC5B,kCAAkC;AAClC,qCAAmE;AACnE,kEAAgF;AAChF,uCAAoC;AACpC,6CAA0C;AAGnC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,iBAAa;CAQzC,CAAA;AAPG;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iBAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;IAC1C,IAAA,oBAAU,GAAE;;0CACQ;AAErB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,eAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAC3C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC1B,eAAM;uCAAC;AAPN,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CAQnB;AARY,0BAAO"}