@medusajs/region 0.1.2-snapshot-20240925105124 → 0.1.2-snapshot-20240926160837
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/loaders/defaults.d.ts +1 -1
- package/dist/loaders/defaults.d.ts.map +1 -1
- package/dist/loaders/defaults.js +1 -1
- package/dist/loaders/defaults.js.map +1 -1
- package/dist/migrations/Migration20240205173216.js +1 -1
- package/dist/migrations/Migration20240205173216.js.map +1 -1
- package/dist/migrations/Migration20240624200006.js +1 -1
- package/dist/migrations/Migration20240624200006.js.map +1 -1
- package/dist/models/country.d.ts +132 -132
- package/dist/models/country.js +1 -1
- package/dist/models/country.js.map +1 -1
- package/dist/models/region.d.ts +100 -100
- package/dist/models/region.js +1 -1
- package/dist/models/region.js.map +1 -1
- package/dist/services/region-module.d.ts +2 -2
- package/dist/services/region-module.d.ts.map +1 -1
- package/dist/services/region-module.js +1 -1
- package/dist/services/region-module.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +9 -8
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { RegionModuleService } from "./services";
|
2
|
-
import { Modules } from "@medusajs/utils";
|
2
|
+
import { Modules } from "@medusajs/framework/utils";
|
3
3
|
declare const _default: import("@medusajs/types").ModuleExports<typeof RegionModuleService> & {
|
4
4
|
linkable: {
|
5
5
|
region: {
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAEhD,OAAO,EAAU,OAAO,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAEhD,OAAO,EAAU,OAAO,EAAE,MAAM,2BAA2B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE3D,wBAGE"}
|
package/dist/index.js
CHANGED
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
const services_1 = require("./services");
|
7
7
|
const defaults_1 = __importDefault(require("./loaders/defaults"));
|
8
|
-
const utils_1 = require("@medusajs/utils");
|
8
|
+
const utils_1 = require("@medusajs/framework/utils");
|
9
9
|
exports.default = (0, utils_1.Module)(utils_1.Modules.REGION, {
|
10
10
|
service: services_1.RegionModuleService,
|
11
11
|
loaders: [defaults_1.default],
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,yCAAgD;AAChD,kEAA6C;AAC7C,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,yCAAgD;AAChD,kEAA6C;AAC7C,qDAA2D;AAE3D,kBAAe,IAAA,cAAM,EAAC,eAAO,CAAC,MAAM,EAAE;IACpC,OAAO,EAAE,8BAAmB;IAC5B,OAAO,EAAE,CAAC,kBAAY,CAAC;CACxB,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/loaders/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/loaders/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAGd,MAAM,2BAA2B,CAAA;wCAOG,aAAa,KAAG,OAAO,CAAC,IAAI,CAAC;AAAlE,wBAwBC"}
|
package/dist/loaders/defaults.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const utils_1 = require("@medusajs/utils");
|
3
|
+
const utils_1 = require("@medusajs/framework/utils");
|
4
4
|
exports.default = async ({ container }) => {
|
5
5
|
// TODO: Add default logger to the container when running tests
|
6
6
|
const logger = container.resolve(utils_1.ContainerRegistrationKeys.LOGGER) ?? console;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../src/loaders/defaults.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../src/loaders/defaults.ts"],"names":[],"mappings":";;AAKA,qDAGkC;AAGlC,kBAAe,KAAK,EAAE,EAAE,SAAS,EAAiB,EAAiB,EAAE;IACnE,+DAA+D;IAC/D,MAAM,MAAM,GACV,SAAS,CAAC,OAAO,CAAS,iCAAyB,CAAC,MAAM,CAAC,IAAI,OAAO,CAAA;IACxE,MAAM,eAAe,GAEjB,SAAS,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;IAEvC,IAAI,CAAC;QACH,MAAM,mBAAmB,GAAG,qBAAa,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YACrE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,WAAW,EAAE;YAC7B,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,WAAW,EAAE;YAC7B,QAAQ,EAAE,CAAC,CAAC,OAAO;YACnB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE;YAC1B,YAAY,EAAE,CAAC,CAAC,IAAI;SACrB,CAAC,CAAC,CAAA;QAEH,MAAM,IAAI,GAAG,MAAM,eAAe,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAA;QAC9D,MAAM,CAAC,KAAK,CAAC,UAAU,IAAI,CAAC,MAAM,YAAY,CAAC,CAAA;IACjD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,CAAC,IAAI,CACT,8DAA8D,KAAK,CAAC,OAAO,EAAE,CAC9E,CAAA;IACH,CAAC;AACH,CAAC,CAAA"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.RegionModuleSetup20240205173216 = void 0;
|
4
|
-
const utils_1 = require("@medusajs/utils");
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
5
5
|
const migrations_1 = require("@mikro-orm/migrations");
|
6
6
|
class RegionModuleSetup20240205173216 extends migrations_1.Migration {
|
7
7
|
async up() {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Migration20240205173216.js","sourceRoot":"","sources":["../../src/migrations/Migration20240205173216.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"Migration20240205173216.js","sourceRoot":"","sources":["../../src/migrations/Migration20240205173216.ts"],"names":[],"mappings":";;;AAAA,qDAAwF;AACxF,sDAAiD;AAEjD,MAAa,+BAAgC,SAAQ,sBAAS;IAC5D,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;EAed,IAAA,oDAA4C,EAC5C,QAAQ,EACR,CAAC,UAAU,EAAE,oBAAoB,EAAE,cAAc,CAAC,EAClD,eAAe,CAChB;;;;;;;;;;;;;;;;;CAiBA,CAAC,CAAA;IACA,CAAC;CACF;AAxCD,0EAwCC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.Migration20240624200006 = void 0;
|
4
|
-
const utils_1 = require("@medusajs/utils");
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
5
5
|
const migrations_1 = require("@mikro-orm/migrations");
|
6
6
|
class Migration20240624200006 extends migrations_1.Migration {
|
7
7
|
async up() {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Migration20240624200006.js","sourceRoot":"","sources":["../../src/migrations/Migration20240624200006.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"Migration20240624200006.js","sourceRoot":"","sources":["../../src/migrations/Migration20240624200006.ts"],"names":[],"mappings":";;;AAAA,qDAAwF;AACxF,sDAAiD;AAEjD,MAAa,uBAAwB,SAAQ,sBAAS;IACpD,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CACT,0PAA0P,CAC3P,CAAA;QACD,IAAI,CAAC,MAAM,CACT,IAAA,oDAA4C,EAC1C,gBAAgB,EAChB,CAAC,WAAW,CAAC,EACb,eAAe,CAChB,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CACT,0EAA0E,CAC3E,CAAA;QACD,IAAI,CAAC,MAAM,CACT,4EAA4E,CAC7E,CAAA;QACD,IAAI,CAAC,MAAM,CACT,4EAA4E,CAC7E,CAAA;QACD,IAAI,CAAC,MAAM,CACT,4EAA4E,CAC7E,CAAA;QACD,IAAI,CAAC,MAAM,CACT,IAAA,oDAA4C,EAC1C,gBAAgB,EAChB,CAAC,WAAW,CAAC,EACb,cAAc,CACf,CACF,CAAA;IACH,CAAC;CACF;AAnCD,0DAmCC"}
|
package/dist/models/country.d.ts
CHANGED
@@ -1,164 +1,164 @@
|
|
1
|
-
declare const _default: import("@medusajs/utils").DmlEntity<{
|
2
|
-
iso_2: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").TextProperty>;
|
3
|
-
iso_3: import("@medusajs/utils").TextProperty;
|
4
|
-
num_code: import("@medusajs/utils").TextProperty;
|
5
|
-
name: import("@medusajs/utils").TextProperty;
|
6
|
-
display_name: import("@medusajs/utils").TextProperty;
|
7
|
-
region: import("@medusajs/utils").RelationNullableModifier<() => import("@medusajs/utils").DmlEntity<{
|
8
|
-
id: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").IdProperty>;
|
9
|
-
name: import("@medusajs/utils").TextProperty;
|
10
|
-
currency_code: import("@medusajs/utils").TextProperty;
|
11
|
-
automatic_taxes: import("@medusajs/utils").BooleanProperty;
|
12
|
-
countries: import("@medusajs/utils").HasMany<() => import("@medusajs/utils").DmlEntity<any & {
|
13
|
-
iso_2: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").TextProperty>;
|
14
|
-
iso_3: import("@medusajs/utils").TextProperty;
|
15
|
-
num_code: import("@medusajs/utils").TextProperty;
|
16
|
-
name: import("@medusajs/utils").TextProperty;
|
17
|
-
display_name: import("@medusajs/utils").TextProperty;
|
18
|
-
region: import("@medusajs/utils").RelationNullableModifier<any, import("@medusajs/utils").BelongsTo<any>>;
|
19
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
20
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, {
|
1
|
+
declare const _default: import("@medusajs/framework/utils").DmlEntity<{
|
2
|
+
iso_2: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
3
|
+
iso_3: import("@medusajs/framework/utils").TextProperty;
|
4
|
+
num_code: import("@medusajs/framework/utils").TextProperty;
|
5
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
6
|
+
display_name: import("@medusajs/framework/utils").TextProperty;
|
7
|
+
region: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<{
|
8
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
9
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
10
|
+
currency_code: import("@medusajs/framework/utils").TextProperty;
|
11
|
+
automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
|
12
|
+
countries: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<any & {
|
13
|
+
iso_2: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
14
|
+
iso_3: import("@medusajs/framework/utils").TextProperty;
|
15
|
+
num_code: import("@medusajs/framework/utils").TextProperty;
|
16
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
17
|
+
display_name: import("@medusajs/framework/utils").TextProperty;
|
18
|
+
region: import("@medusajs/framework/utils").RelationNullableModifier<any, import("@medusajs/framework/utils").BelongsTo<any>>;
|
19
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
20
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, {
|
21
21
|
readonly name: "Country";
|
22
22
|
readonly tableName: "region_country";
|
23
23
|
}>>;
|
24
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
24
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
25
25
|
} & {
|
26
|
-
id: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").IdProperty>;
|
27
|
-
name: import("@medusajs/utils").TextProperty;
|
28
|
-
currency_code: import("@medusajs/utils").TextProperty;
|
29
|
-
automatic_taxes: import("@medusajs/utils").BooleanProperty;
|
30
|
-
countries: import("@medusajs/utils").HasMany<() => import("@medusajs/utils").DmlEntity<any & {
|
31
|
-
iso_2: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").TextProperty>;
|
32
|
-
iso_3: import("@medusajs/utils").TextProperty;
|
33
|
-
num_code: import("@medusajs/utils").TextProperty;
|
34
|
-
name: import("@medusajs/utils").TextProperty;
|
35
|
-
display_name: import("@medusajs/utils").TextProperty;
|
36
|
-
region: import("@medusajs/utils").RelationNullableModifier<any, import("@medusajs/utils").BelongsTo<any>>;
|
37
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
38
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, {
|
26
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
27
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
28
|
+
currency_code: import("@medusajs/framework/utils").TextProperty;
|
29
|
+
automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
|
30
|
+
countries: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<any & {
|
31
|
+
iso_2: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
32
|
+
iso_3: import("@medusajs/framework/utils").TextProperty;
|
33
|
+
num_code: import("@medusajs/framework/utils").TextProperty;
|
34
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
35
|
+
display_name: import("@medusajs/framework/utils").TextProperty;
|
36
|
+
region: import("@medusajs/framework/utils").RelationNullableModifier<any, import("@medusajs/framework/utils").BelongsTo<any>>;
|
37
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
38
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, {
|
39
39
|
readonly name: "Country";
|
40
40
|
readonly tableName: "region_country";
|
41
41
|
}>>;
|
42
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
43
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, "region">, import("@medusajs/utils").BelongsTo<() => import("@medusajs/utils").DmlEntity<{
|
44
|
-
id: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").IdProperty>;
|
45
|
-
name: import("@medusajs/utils").TextProperty;
|
46
|
-
currency_code: import("@medusajs/utils").TextProperty;
|
47
|
-
automatic_taxes: import("@medusajs/utils").BooleanProperty;
|
48
|
-
countries: import("@medusajs/utils").HasMany<() => import("@medusajs/utils").DmlEntity<any & {
|
49
|
-
iso_2: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").TextProperty>;
|
50
|
-
iso_3: import("@medusajs/utils").TextProperty;
|
51
|
-
num_code: import("@medusajs/utils").TextProperty;
|
52
|
-
name: import("@medusajs/utils").TextProperty;
|
53
|
-
display_name: import("@medusajs/utils").TextProperty;
|
54
|
-
region: import("@medusajs/utils").RelationNullableModifier<any, import("@medusajs/utils").BelongsTo<any>>;
|
55
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
56
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, {
|
42
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
43
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, "region">, import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<{
|
44
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
45
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
46
|
+
currency_code: import("@medusajs/framework/utils").TextProperty;
|
47
|
+
automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
|
48
|
+
countries: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<any & {
|
49
|
+
iso_2: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
50
|
+
iso_3: import("@medusajs/framework/utils").TextProperty;
|
51
|
+
num_code: import("@medusajs/framework/utils").TextProperty;
|
52
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
53
|
+
display_name: import("@medusajs/framework/utils").TextProperty;
|
54
|
+
region: import("@medusajs/framework/utils").RelationNullableModifier<any, import("@medusajs/framework/utils").BelongsTo<any>>;
|
55
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
56
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, {
|
57
57
|
readonly name: "Country";
|
58
58
|
readonly tableName: "region_country";
|
59
59
|
}>>;
|
60
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
60
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
61
61
|
} & {
|
62
|
-
id: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").IdProperty>;
|
63
|
-
name: import("@medusajs/utils").TextProperty;
|
64
|
-
currency_code: import("@medusajs/utils").TextProperty;
|
65
|
-
automatic_taxes: import("@medusajs/utils").BooleanProperty;
|
66
|
-
countries: import("@medusajs/utils").HasMany<() => import("@medusajs/utils").DmlEntity<any & {
|
67
|
-
iso_2: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").TextProperty>;
|
68
|
-
iso_3: import("@medusajs/utils").TextProperty;
|
69
|
-
num_code: import("@medusajs/utils").TextProperty;
|
70
|
-
name: import("@medusajs/utils").TextProperty;
|
71
|
-
display_name: import("@medusajs/utils").TextProperty;
|
72
|
-
region: import("@medusajs/utils").RelationNullableModifier<any, import("@medusajs/utils").BelongsTo<any>>;
|
73
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
74
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, {
|
62
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
63
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
64
|
+
currency_code: import("@medusajs/framework/utils").TextProperty;
|
65
|
+
automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
|
66
|
+
countries: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<any & {
|
67
|
+
iso_2: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
68
|
+
iso_3: import("@medusajs/framework/utils").TextProperty;
|
69
|
+
num_code: import("@medusajs/framework/utils").TextProperty;
|
70
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
71
|
+
display_name: import("@medusajs/framework/utils").TextProperty;
|
72
|
+
region: import("@medusajs/framework/utils").RelationNullableModifier<any, import("@medusajs/framework/utils").BelongsTo<any>>;
|
73
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
74
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, {
|
75
75
|
readonly name: "Country";
|
76
76
|
readonly tableName: "region_country";
|
77
77
|
}>>;
|
78
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
79
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, "region">>>;
|
80
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
78
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
79
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, "region">>>;
|
80
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
81
81
|
} & {
|
82
|
-
iso_2: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").TextProperty>;
|
83
|
-
iso_3: import("@medusajs/utils").TextProperty;
|
84
|
-
num_code: import("@medusajs/utils").TextProperty;
|
85
|
-
name: import("@medusajs/utils").TextProperty;
|
86
|
-
display_name: import("@medusajs/utils").TextProperty;
|
87
|
-
region: import("@medusajs/utils").RelationNullableModifier<() => import("@medusajs/utils").DmlEntity<{
|
88
|
-
id: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").IdProperty>;
|
89
|
-
name: import("@medusajs/utils").TextProperty;
|
90
|
-
currency_code: import("@medusajs/utils").TextProperty;
|
91
|
-
automatic_taxes: import("@medusajs/utils").BooleanProperty;
|
92
|
-
countries: import("@medusajs/utils").HasMany<() => import("@medusajs/utils").DmlEntity<any & {
|
93
|
-
iso_2: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").TextProperty>;
|
94
|
-
iso_3: import("@medusajs/utils").TextProperty;
|
95
|
-
num_code: import("@medusajs/utils").TextProperty;
|
96
|
-
name: import("@medusajs/utils").TextProperty;
|
97
|
-
display_name: import("@medusajs/utils").TextProperty;
|
98
|
-
region: import("@medusajs/utils").RelationNullableModifier<any, import("@medusajs/utils").BelongsTo<any>>;
|
99
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
100
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, {
|
82
|
+
iso_2: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
83
|
+
iso_3: import("@medusajs/framework/utils").TextProperty;
|
84
|
+
num_code: import("@medusajs/framework/utils").TextProperty;
|
85
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
86
|
+
display_name: import("@medusajs/framework/utils").TextProperty;
|
87
|
+
region: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<{
|
88
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
89
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
90
|
+
currency_code: import("@medusajs/framework/utils").TextProperty;
|
91
|
+
automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
|
92
|
+
countries: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<any & {
|
93
|
+
iso_2: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
94
|
+
iso_3: import("@medusajs/framework/utils").TextProperty;
|
95
|
+
num_code: import("@medusajs/framework/utils").TextProperty;
|
96
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
97
|
+
display_name: import("@medusajs/framework/utils").TextProperty;
|
98
|
+
region: import("@medusajs/framework/utils").RelationNullableModifier<any, import("@medusajs/framework/utils").BelongsTo<any>>;
|
99
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
100
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, {
|
101
101
|
readonly name: "Country";
|
102
102
|
readonly tableName: "region_country";
|
103
103
|
}>>;
|
104
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
104
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
105
105
|
} & {
|
106
|
-
id: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").IdProperty>;
|
107
|
-
name: import("@medusajs/utils").TextProperty;
|
108
|
-
currency_code: import("@medusajs/utils").TextProperty;
|
109
|
-
automatic_taxes: import("@medusajs/utils").BooleanProperty;
|
110
|
-
countries: import("@medusajs/utils").HasMany<() => import("@medusajs/utils").DmlEntity<any & {
|
111
|
-
iso_2: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").TextProperty>;
|
112
|
-
iso_3: import("@medusajs/utils").TextProperty;
|
113
|
-
num_code: import("@medusajs/utils").TextProperty;
|
114
|
-
name: import("@medusajs/utils").TextProperty;
|
115
|
-
display_name: import("@medusajs/utils").TextProperty;
|
116
|
-
region: import("@medusajs/utils").RelationNullableModifier<any, import("@medusajs/utils").BelongsTo<any>>;
|
117
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
118
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, {
|
106
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
107
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
108
|
+
currency_code: import("@medusajs/framework/utils").TextProperty;
|
109
|
+
automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
|
110
|
+
countries: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<any & {
|
111
|
+
iso_2: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
112
|
+
iso_3: import("@medusajs/framework/utils").TextProperty;
|
113
|
+
num_code: import("@medusajs/framework/utils").TextProperty;
|
114
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
115
|
+
display_name: import("@medusajs/framework/utils").TextProperty;
|
116
|
+
region: import("@medusajs/framework/utils").RelationNullableModifier<any, import("@medusajs/framework/utils").BelongsTo<any>>;
|
117
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
118
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, {
|
119
119
|
readonly name: "Country";
|
120
120
|
readonly tableName: "region_country";
|
121
121
|
}>>;
|
122
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
123
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, "region">, import("@medusajs/utils").BelongsTo<() => import("@medusajs/utils").DmlEntity<{
|
124
|
-
id: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").IdProperty>;
|
125
|
-
name: import("@medusajs/utils").TextProperty;
|
126
|
-
currency_code: import("@medusajs/utils").TextProperty;
|
127
|
-
automatic_taxes: import("@medusajs/utils").BooleanProperty;
|
128
|
-
countries: import("@medusajs/utils").HasMany<() => import("@medusajs/utils").DmlEntity<any & {
|
129
|
-
iso_2: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").TextProperty>;
|
130
|
-
iso_3: import("@medusajs/utils").TextProperty;
|
131
|
-
num_code: import("@medusajs/utils").TextProperty;
|
132
|
-
name: import("@medusajs/utils").TextProperty;
|
133
|
-
display_name: import("@medusajs/utils").TextProperty;
|
134
|
-
region: import("@medusajs/utils").RelationNullableModifier<any, import("@medusajs/utils").BelongsTo<any>>;
|
135
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
136
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, {
|
122
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
123
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, "region">, import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<{
|
124
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
125
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
126
|
+
currency_code: import("@medusajs/framework/utils").TextProperty;
|
127
|
+
automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
|
128
|
+
countries: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<any & {
|
129
|
+
iso_2: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
130
|
+
iso_3: import("@medusajs/framework/utils").TextProperty;
|
131
|
+
num_code: import("@medusajs/framework/utils").TextProperty;
|
132
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
133
|
+
display_name: import("@medusajs/framework/utils").TextProperty;
|
134
|
+
region: import("@medusajs/framework/utils").RelationNullableModifier<any, import("@medusajs/framework/utils").BelongsTo<any>>;
|
135
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
136
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, {
|
137
137
|
readonly name: "Country";
|
138
138
|
readonly tableName: "region_country";
|
139
139
|
}>>;
|
140
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
140
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
141
141
|
} & {
|
142
|
-
id: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").IdProperty>;
|
143
|
-
name: import("@medusajs/utils").TextProperty;
|
144
|
-
currency_code: import("@medusajs/utils").TextProperty;
|
145
|
-
automatic_taxes: import("@medusajs/utils").BooleanProperty;
|
146
|
-
countries: import("@medusajs/utils").HasMany<() => import("@medusajs/utils").DmlEntity<any & {
|
147
|
-
iso_2: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").TextProperty>;
|
148
|
-
iso_3: import("@medusajs/utils").TextProperty;
|
149
|
-
num_code: import("@medusajs/utils").TextProperty;
|
150
|
-
name: import("@medusajs/utils").TextProperty;
|
151
|
-
display_name: import("@medusajs/utils").TextProperty;
|
152
|
-
region: import("@medusajs/utils").RelationNullableModifier<any, import("@medusajs/utils").BelongsTo<any>>;
|
153
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
154
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, {
|
142
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
143
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
144
|
+
currency_code: import("@medusajs/framework/utils").TextProperty;
|
145
|
+
automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
|
146
|
+
countries: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<any & {
|
147
|
+
iso_2: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
148
|
+
iso_3: import("@medusajs/framework/utils").TextProperty;
|
149
|
+
num_code: import("@medusajs/framework/utils").TextProperty;
|
150
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
151
|
+
display_name: import("@medusajs/framework/utils").TextProperty;
|
152
|
+
region: import("@medusajs/framework/utils").RelationNullableModifier<any, import("@medusajs/framework/utils").BelongsTo<any>>;
|
153
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
154
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, {
|
155
155
|
readonly name: "Country";
|
156
156
|
readonly tableName: "region_country";
|
157
157
|
}>>;
|
158
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
159
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, "region">>>;
|
160
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
161
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, {
|
158
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
159
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, "region">>>;
|
160
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
161
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, {
|
162
162
|
readonly name: "Country";
|
163
163
|
readonly tableName: "region_country";
|
164
164
|
}>;
|
package/dist/models/country.js
CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const utils_1 = require("@medusajs/utils");
|
6
|
+
const utils_1 = require("@medusajs/framework/utils");
|
7
7
|
const region_1 = __importDefault(require("./region"));
|
8
8
|
exports.default = utils_1.model
|
9
9
|
.define({ name: "Country", tableName: "region_country" }, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"country.js","sourceRoot":"","sources":["../../src/models/country.ts"],"names":[],"mappings":";;;;;AAAA,
|
1
|
+
{"version":3,"file":"country.js","sourceRoot":"","sources":["../../src/models/country.ts"],"names":[],"mappings":";;;;;AAAA,qDAAiD;AACjD,sDAA6B;AAE7B,kBAAe,aAAK;KACjB,MAAM,CACL,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB,EAAE,EAChD;IACE,KAAK,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE,CAAC,UAAU,EAAE;IAC7C,KAAK,EAAE,aAAK,CAAC,IAAI,EAAE;IACnB,QAAQ,EAAE,aAAK,CAAC,IAAI,EAAE;IACtB,IAAI,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE;IAC/B,YAAY,EAAE,aAAK,CAAC,IAAI,EAAE;IAC1B,MAAM,EAAE,aAAK;SACV,SAAS,CAAC,GAAG,EAAE,CAAC,gBAAM,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;SAClD,QAAQ,EAAE;IACb,QAAQ,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CAClC,CACF;KACA,OAAO,CAAC;IACP;QACE,uFAAuF;QACvF,aAAa;QACb,EAAE,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC;QAC1B,MAAM,EAAE,IAAI;KACb;CACF,CAAC,CAAA"}
|
package/dist/models/region.d.ts
CHANGED
@@ -1,111 +1,111 @@
|
|
1
|
-
declare const _default: import("@medusajs/utils").DmlEntity<{
|
2
|
-
id: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").IdProperty>;
|
3
|
-
name: import("@medusajs/utils").TextProperty;
|
4
|
-
currency_code: import("@medusajs/utils").TextProperty;
|
5
|
-
automatic_taxes: import("@medusajs/utils").BooleanProperty;
|
6
|
-
countries: import("@medusajs/utils").HasMany<() => import("@medusajs/utils").DmlEntity<{
|
7
|
-
iso_2: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").TextProperty>;
|
8
|
-
iso_3: import("@medusajs/utils").TextProperty;
|
9
|
-
num_code: import("@medusajs/utils").TextProperty;
|
10
|
-
name: import("@medusajs/utils").TextProperty;
|
11
|
-
display_name: import("@medusajs/utils").TextProperty;
|
12
|
-
region: import("@medusajs/utils").RelationNullableModifier<() => import("@medusajs/utils").DmlEntity<any & {
|
13
|
-
id: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").IdProperty>;
|
14
|
-
name: import("@medusajs/utils").TextProperty;
|
15
|
-
currency_code: import("@medusajs/utils").TextProperty;
|
16
|
-
automatic_taxes: import("@medusajs/utils").BooleanProperty;
|
17
|
-
countries: import("@medusajs/utils").HasMany<any>;
|
18
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
19
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, "region">, import("@medusajs/utils").BelongsTo<() => import("@medusajs/utils").DmlEntity<any & {
|
20
|
-
id: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").IdProperty>;
|
21
|
-
name: import("@medusajs/utils").TextProperty;
|
22
|
-
currency_code: import("@medusajs/utils").TextProperty;
|
23
|
-
automatic_taxes: import("@medusajs/utils").BooleanProperty;
|
24
|
-
countries: import("@medusajs/utils").HasMany<any>;
|
25
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
26
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, "region">>>;
|
27
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
1
|
+
declare const _default: import("@medusajs/framework/utils").DmlEntity<{
|
2
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
3
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
4
|
+
currency_code: import("@medusajs/framework/utils").TextProperty;
|
5
|
+
automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
|
6
|
+
countries: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<{
|
7
|
+
iso_2: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
8
|
+
iso_3: import("@medusajs/framework/utils").TextProperty;
|
9
|
+
num_code: import("@medusajs/framework/utils").TextProperty;
|
10
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
11
|
+
display_name: import("@medusajs/framework/utils").TextProperty;
|
12
|
+
region: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<any & {
|
13
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
14
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
15
|
+
currency_code: import("@medusajs/framework/utils").TextProperty;
|
16
|
+
automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
|
17
|
+
countries: import("@medusajs/framework/utils").HasMany<any>;
|
18
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
19
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, "region">, import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<any & {
|
20
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
21
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
22
|
+
currency_code: import("@medusajs/framework/utils").TextProperty;
|
23
|
+
automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
|
24
|
+
countries: import("@medusajs/framework/utils").HasMany<any>;
|
25
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
26
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, "region">>>;
|
27
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
28
28
|
} & {
|
29
|
-
iso_2: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").TextProperty>;
|
30
|
-
iso_3: import("@medusajs/utils").TextProperty;
|
31
|
-
num_code: import("@medusajs/utils").TextProperty;
|
32
|
-
name: import("@medusajs/utils").TextProperty;
|
33
|
-
display_name: import("@medusajs/utils").TextProperty;
|
34
|
-
region: import("@medusajs/utils").RelationNullableModifier<() => import("@medusajs/utils").DmlEntity<any & {
|
35
|
-
id: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").IdProperty>;
|
36
|
-
name: import("@medusajs/utils").TextProperty;
|
37
|
-
currency_code: import("@medusajs/utils").TextProperty;
|
38
|
-
automatic_taxes: import("@medusajs/utils").BooleanProperty;
|
39
|
-
countries: import("@medusajs/utils").HasMany<any>;
|
40
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
41
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, "region">, import("@medusajs/utils").BelongsTo<() => import("@medusajs/utils").DmlEntity<any & {
|
42
|
-
id: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").IdProperty>;
|
43
|
-
name: import("@medusajs/utils").TextProperty;
|
44
|
-
currency_code: import("@medusajs/utils").TextProperty;
|
45
|
-
automatic_taxes: import("@medusajs/utils").BooleanProperty;
|
46
|
-
countries: import("@medusajs/utils").HasMany<any>;
|
47
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
48
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, "region">>>;
|
49
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
50
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, {
|
29
|
+
iso_2: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
30
|
+
iso_3: import("@medusajs/framework/utils").TextProperty;
|
31
|
+
num_code: import("@medusajs/framework/utils").TextProperty;
|
32
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
33
|
+
display_name: import("@medusajs/framework/utils").TextProperty;
|
34
|
+
region: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<any & {
|
35
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
36
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
37
|
+
currency_code: import("@medusajs/framework/utils").TextProperty;
|
38
|
+
automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
|
39
|
+
countries: import("@medusajs/framework/utils").HasMany<any>;
|
40
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
41
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, "region">, import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<any & {
|
42
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
43
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
44
|
+
currency_code: import("@medusajs/framework/utils").TextProperty;
|
45
|
+
automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
|
46
|
+
countries: import("@medusajs/framework/utils").HasMany<any>;
|
47
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
48
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, "region">>>;
|
49
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
50
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, {
|
51
51
|
readonly name: "Country";
|
52
52
|
readonly tableName: "region_country";
|
53
53
|
}>>;
|
54
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
54
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
55
55
|
} & {
|
56
|
-
id: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").IdProperty>;
|
57
|
-
name: import("@medusajs/utils").TextProperty;
|
58
|
-
currency_code: import("@medusajs/utils").TextProperty;
|
59
|
-
automatic_taxes: import("@medusajs/utils").BooleanProperty;
|
60
|
-
countries: import("@medusajs/utils").HasMany<() => import("@medusajs/utils").DmlEntity<{
|
61
|
-
iso_2: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").TextProperty>;
|
62
|
-
iso_3: import("@medusajs/utils").TextProperty;
|
63
|
-
num_code: import("@medusajs/utils").TextProperty;
|
64
|
-
name: import("@medusajs/utils").TextProperty;
|
65
|
-
display_name: import("@medusajs/utils").TextProperty;
|
66
|
-
region: import("@medusajs/utils").RelationNullableModifier<() => import("@medusajs/utils").DmlEntity<any & {
|
67
|
-
id: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").IdProperty>;
|
68
|
-
name: import("@medusajs/utils").TextProperty;
|
69
|
-
currency_code: import("@medusajs/utils").TextProperty;
|
70
|
-
automatic_taxes: import("@medusajs/utils").BooleanProperty;
|
71
|
-
countries: import("@medusajs/utils").HasMany<any>;
|
72
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
73
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, "region">, import("@medusajs/utils").BelongsTo<() => import("@medusajs/utils").DmlEntity<any & {
|
74
|
-
id: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").IdProperty>;
|
75
|
-
name: import("@medusajs/utils").TextProperty;
|
76
|
-
currency_code: import("@medusajs/utils").TextProperty;
|
77
|
-
automatic_taxes: import("@medusajs/utils").BooleanProperty;
|
78
|
-
countries: import("@medusajs/utils").HasMany<any>;
|
79
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
80
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, "region">>>;
|
81
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
56
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
57
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
58
|
+
currency_code: import("@medusajs/framework/utils").TextProperty;
|
59
|
+
automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
|
60
|
+
countries: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<{
|
61
|
+
iso_2: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
62
|
+
iso_3: import("@medusajs/framework/utils").TextProperty;
|
63
|
+
num_code: import("@medusajs/framework/utils").TextProperty;
|
64
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
65
|
+
display_name: import("@medusajs/framework/utils").TextProperty;
|
66
|
+
region: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<any & {
|
67
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
68
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
69
|
+
currency_code: import("@medusajs/framework/utils").TextProperty;
|
70
|
+
automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
|
71
|
+
countries: import("@medusajs/framework/utils").HasMany<any>;
|
72
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
73
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, "region">, import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<any & {
|
74
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
75
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
76
|
+
currency_code: import("@medusajs/framework/utils").TextProperty;
|
77
|
+
automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
|
78
|
+
countries: import("@medusajs/framework/utils").HasMany<any>;
|
79
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
80
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, "region">>>;
|
81
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
82
82
|
} & {
|
83
|
-
iso_2: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").TextProperty>;
|
84
|
-
iso_3: import("@medusajs/utils").TextProperty;
|
85
|
-
num_code: import("@medusajs/utils").TextProperty;
|
86
|
-
name: import("@medusajs/utils").TextProperty;
|
87
|
-
display_name: import("@medusajs/utils").TextProperty;
|
88
|
-
region: import("@medusajs/utils").RelationNullableModifier<() => import("@medusajs/utils").DmlEntity<any & {
|
89
|
-
id: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").IdProperty>;
|
90
|
-
name: import("@medusajs/utils").TextProperty;
|
91
|
-
currency_code: import("@medusajs/utils").TextProperty;
|
92
|
-
automatic_taxes: import("@medusajs/utils").BooleanProperty;
|
93
|
-
countries: import("@medusajs/utils").HasMany<any>;
|
94
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
95
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, "region">, import("@medusajs/utils").BelongsTo<() => import("@medusajs/utils").DmlEntity<any & {
|
96
|
-
id: import("@medusajs/utils").PrimaryKeyModifier<string, import("@medusajs/utils").IdProperty>;
|
97
|
-
name: import("@medusajs/utils").TextProperty;
|
98
|
-
currency_code: import("@medusajs/utils").TextProperty;
|
99
|
-
automatic_taxes: import("@medusajs/utils").BooleanProperty;
|
100
|
-
countries: import("@medusajs/utils").HasMany<any>;
|
101
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
102
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, "region">>>;
|
103
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
104
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, {
|
83
|
+
iso_2: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
84
|
+
iso_3: import("@medusajs/framework/utils").TextProperty;
|
85
|
+
num_code: import("@medusajs/framework/utils").TextProperty;
|
86
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
87
|
+
display_name: import("@medusajs/framework/utils").TextProperty;
|
88
|
+
region: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<any & {
|
89
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
90
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
91
|
+
currency_code: import("@medusajs/framework/utils").TextProperty;
|
92
|
+
automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
|
93
|
+
countries: import("@medusajs/framework/utils").HasMany<any>;
|
94
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
95
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, "region">, import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<any & {
|
96
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
97
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
98
|
+
currency_code: import("@medusajs/framework/utils").TextProperty;
|
99
|
+
automatic_taxes: import("@medusajs/framework/utils").BooleanProperty;
|
100
|
+
countries: import("@medusajs/framework/utils").HasMany<any>;
|
101
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
102
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, "region">>>;
|
103
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
104
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, {
|
105
105
|
readonly name: "Country";
|
106
106
|
readonly tableName: "region_country";
|
107
107
|
}>>;
|
108
|
-
metadata: import("@medusajs/utils").NullableModifier<Record<string, unknown>, import("@medusajs/utils").JSONProperty>;
|
109
|
-
} & {} & import("@medusajs/utils").DMLSchemaDefaults, "region">;
|
108
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
109
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, "region">;
|
110
110
|
export default _default;
|
111
111
|
//# sourceMappingURL=region.d.ts.map
|
package/dist/models/region.js
CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const utils_1 = require("@medusajs/utils");
|
6
|
+
const utils_1 = require("@medusajs/framework/utils");
|
7
7
|
const country_1 = __importDefault(require("./country"));
|
8
8
|
exports.default = utils_1.model.define("region", {
|
9
9
|
id: utils_1.model.id({ prefix: "reg" }).primaryKey(),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"region.js","sourceRoot":"","sources":["../../src/models/region.ts"],"names":[],"mappings":";;;;;AAAA,
|
1
|
+
{"version":3,"file":"region.js","sourceRoot":"","sources":["../../src/models/region.ts"],"names":[],"mappings":";;;;;AAAA,qDAAiD;AACjD,wDAAqC;AAErC,kBAAe,aAAK,CAAC,MAAM,CAAC,QAAQ,EAAE;IACpC,EAAE,EAAE,aAAK,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,UAAU,EAAE;IAC5C,IAAI,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE;IAC/B,aAAa,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE;IACxC,eAAe,EAAE,aAAK,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAC9C,SAAS,EAAE,aAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,iBAAa,CAAC;IAC7C,QAAQ,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Context, CreateRegionDTO, DAL, FilterableRegionProps, InferEntityType, InternalModuleDeclaration, IRegionModuleService, ModulesSdkTypes, RegionCountryDTO, RegionDTO, SoftDeleteReturn, UpdateRegionDTO, UpsertRegionDTO } from "@medusajs/types";
|
1
|
+
import { Context, CreateRegionDTO, DAL, FilterableRegionProps, InferEntityType, InternalModuleDeclaration, IRegionModuleService, ModulesSdkTypes, RegionCountryDTO, RegionDTO, SoftDeleteReturn, UpdateRegionDTO, UpsertRegionDTO } from "@medusajs/framework/types";
|
2
2
|
import { Country, Region } from "../models";
|
3
3
|
import { UpdateRegionInput } from "../types";
|
4
4
|
type InjectedDependencies = {
|
@@ -6,7 +6,7 @@ type InjectedDependencies = {
|
|
6
6
|
regionService: ModulesSdkTypes.IMedusaInternalService<any>;
|
7
7
|
countryService: ModulesSdkTypes.IMedusaInternalService<any>;
|
8
8
|
};
|
9
|
-
declare const RegionModuleService_base: import("@medusajs/utils").MedusaServiceReturnType<{
|
9
|
+
declare const RegionModuleService_base: import("@medusajs/framework/utils").MedusaServiceReturnType<{
|
10
10
|
Region: {
|
11
11
|
dto: RegionDTO;
|
12
12
|
model: typeof Region;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"region-module.d.ts","sourceRoot":"","sources":["../../src/services/region-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,eAAe,EACf,GAAG,EACH,qBAAqB,EACrB,eAAe,EACf,yBAAyB,EACzB,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,eAAe,EAChB,MAAM,
|
1
|
+
{"version":3,"file":"region-module.d.ts","sourceRoot":"","sources":["../../src/services/region-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,eAAe,EACf,GAAG,EACH,qBAAqB,EACrB,eAAe,EACf,yBAAyB,EACzB,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,eAAe,EAChB,MAAM,2BAA2B,CAAA;AAalC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAE1C,KAAK,oBAAoB,GAAG;IAC1B,cAAc,EAAE,GAAG,CAAC,iBAAiB,CAAA;IACrC,aAAa,EAAE,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAA;IAC1D,cAAc,EAAE,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAA;CAC5D,CAAA;;YAIW;QACN,GAAG,EAAE,SAAS,CAAA;QACd,KAAK,EAAE,OAAO,MAAM,CAAA;KACrB;aACQ;QACP,GAAG,EAAE,gBAAgB,CAAA;QACrB,KAAK,EAAE,OAAO,OAAO,CAAA;KACtB;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,CAAC;IA+Bf,aAAa,CACjB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,eAAe,EACrB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,SAAS,CAAC;IACf,aAAa,CACjB,QAAQ,EAAE,qBAAqB,EAC/B,IAAI,EAAE,eAAe,EACrB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,SAAS,EAAE,CAAC;cAqCP,cAAc,CAC5B,IAAI,EAAE,iBAAiB,EAAE,EACR,aAAa,GAAE,OAAY,GAC3C,OAAO,CAAC,eAAe,CAAC,OAAO,MAAM,CAAC,EAAE,CAAC;IA+C5C,OAAO,CAAC,MAAM,CAAC,cAAc;IAW7B;;;;;;;OAOG;YACW,iBAAiB;CAqDhC"}
|
@@ -12,7 +12,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
12
|
return function (target, key) { decorator(target, key, paramIndex); }
|
13
13
|
};
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
const utils_1 = require("@medusajs/utils");
|
15
|
+
const utils_1 = require("@medusajs/framework/utils");
|
16
16
|
const _models_1 = require("../models");
|
17
17
|
class RegionModuleService extends (0, utils_1.MedusaService)({ Region: _models_1.Region, Country: _models_1.Country }) {
|
18
18
|
constructor({ baseRepository, regionService, countryService }, moduleDeclaration) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"region-module.js","sourceRoot":"","sources":["../../src/services/region-module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAeA,
|
1
|
+
{"version":3,"file":"region-module.js","sourceRoot":"","sources":["../../src/services/region-module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAeA,qDAWkC;AAClC,qCAAyC;AASzC,MAAqB,mBACnB,SAAQ,IAAA,qBAAa,EASlB,EAAE,MAAM,EAAN,gBAAM,EAAE,OAAO,EAAP,iBAAO,EAAE,CAAC;IAWvB,YACE,EAAE,cAAc,EAAE,aAAa,EAAE,cAAc,EAAwB,E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AAGK;IADL,IAAA,gCAAwB,GAAE;IAGxB,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;yDAkCjB;AAIK;IAFL,IAAA,qBAAa,GAAE;IAChB,aAAa;;IAIV,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;4DAajB;AAYK;IADL,IAAA,gCAAwB,GAAE;IAGxB,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;wDAuBjB;AAeK;IADL,IAAA,qBAAa,GAAE;IAIb,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;wDA4BjB;AAGe;IADf,IAAA,gCAAwB,GAAE;IAGxB,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;yDA8CjB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"root":["../src/index.ts","../src/loaders/defaults.ts","../src/loaders/index.ts","../src/migrations/Migration20240205173216.ts","../src/migrations/Migration20240624200006.ts","../src/models/country.ts","../src/models/index.ts","../src/models/region.ts","../src/services/index.ts","../src/services/region-module.ts","../src/types/index.ts"],"version":"5.6.2"}
|
package/dist/types/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEnE,MAAM,MAAM,sCAAsC,GAAG;IACnD,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/region",
|
3
|
-
"version": "0.1.2-snapshot-
|
3
|
+
"version": "0.1.2-snapshot-20240926160837",
|
4
4
|
"description": "Medusa Region module",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -37,20 +37,21 @@
|
|
37
37
|
"orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm cache:clear"
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
|
-
"@medusajs/
|
40
|
+
"@medusajs/framework": "0.0.2-snapshot-20240926160837",
|
41
41
|
"@mikro-orm/cli": "5.9.7",
|
42
|
-
"
|
42
|
+
"@mikro-orm/core": "5.9.7",
|
43
|
+
"@mikro-orm/migrations": "5.9.7",
|
44
|
+
"@mikro-orm/postgresql": "5.9.7",
|
45
|
+
"@swc/core": "^1.7.28",
|
46
|
+
"@swc/jest": "^0.2.36",
|
43
47
|
"jest": "^29.7.0",
|
44
|
-
"medusa-test-utils": "1.1.45-snapshot-
|
48
|
+
"medusa-test-utils": "1.1.45-snapshot-20240926160837",
|
45
49
|
"rimraf": "^3.0.2",
|
46
|
-
"ts-node": "^10.9.1",
|
47
50
|
"tsc-alias": "^1.8.6",
|
48
51
|
"typescript": "^5.6.2"
|
49
52
|
},
|
50
|
-
"dependencies": {
|
51
|
-
"@medusajs/utils": "1.12.0-snapshot-20240925105124"
|
52
|
-
},
|
53
53
|
"peerDependencies": {
|
54
|
+
"@medusajs/framework": "0.0.2-snapshot-20240926160837",
|
54
55
|
"@mikro-orm/core": "5.9.7",
|
55
56
|
"@mikro-orm/migrations": "5.9.7",
|
56
57
|
"@mikro-orm/postgresql": "5.9.7",
|