@medusajs/tax 0.1.2-snapshot-20240929093043 → 0.1.2-snapshot-20240930060235
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/migrations/Migration20240924114005.d.ts +6 -0
- package/dist/migrations/Migration20240924114005.d.ts.map +1 -0
- package/dist/migrations/Migration20240924114005.js +15 -0
- package/dist/migrations/Migration20240924114005.js.map +1 -0
- package/dist/models/tax-rate.d.ts +1 -1
- package/dist/models/tax-rate.d.ts.map +1 -1
- package/dist/models/tax-rate.js +2 -3
- package/dist/models/tax-rate.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Migration20240924114005.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20240924114005.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,qBAAa,uBAAwB,SAAQ,SAAS;IAC9C,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IASnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAK5B"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Migration20240924114005 = void 0;
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
5
|
+
class Migration20240924114005 extends migrations_1.Migration {
|
6
|
+
async up() {
|
7
|
+
this.addSql(`UPDATE "tax_rate" SET code = 'default' WHERE code IS NULL;`);
|
8
|
+
this.addSql(`ALTER TABLE IF EXISTS "tax_rate" ALTER COLUMN "code" SET NOT NULL;`);
|
9
|
+
}
|
10
|
+
async down() {
|
11
|
+
this.addSql(`ALTER TABLE IF EXISTS "tax_rate" ALTER COLUMN "code" DROP NOT NULL;`);
|
12
|
+
}
|
13
|
+
}
|
14
|
+
exports.Migration20240924114005 = Migration20240924114005;
|
15
|
+
//# sourceMappingURL=Migration20240924114005.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Migration20240924114005.js","sourceRoot":"","sources":["../../src/migrations/Migration20240924114005.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AAEjD,MAAa,uBAAwB,SAAQ,sBAAS;IACpD,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CACT,4DAA4D,CAC7D,CAAA;QACD,IAAI,CAAC,MAAM,CACT,oEAAoE,CACrE,CAAA;IACH,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CACT,qEAAqE,CACtE,CAAA;IACH,CAAC;CACF;AAfD,0DAeC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tax-rate.d.ts","sourceRoot":"","sources":["../../src/models/tax-rate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAA;AAO/C,OAAO,EAGL,UAAU,EAMV,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,WAAW,MAAM,iBAAiB,CAAA;AACzC,OAAO,SAAS,MAAM,cAAc,CAAA;AAEpC,KAAK,oBAAoB,GAAG,GAAG,CAAC,6BAA6B,CAAA;AAI7D,eAAO,MAAM,4BAA4B,8BAA8B,CAAA;AAyBvE,MAAM,CAAC,OAAO,OAAO,OAAO;IAC1B,CAAC,aAAa,CAAC,CAAC,EAAE,oBAAoB,CAAA;IAGtC,EAAE,EAAG,MAAM,CAAA;IAGX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAO;IAI1B,IAAI,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"tax-rate.d.ts","sourceRoot":"","sources":["../../src/models/tax-rate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAA;AAO/C,OAAO,EAGL,UAAU,EAMV,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,WAAW,MAAM,iBAAiB,CAAA;AACzC,OAAO,SAAS,MAAM,cAAc,CAAA;AAEpC,KAAK,oBAAoB,GAAG,GAAG,CAAC,6BAA6B,CAAA;AAI7D,eAAO,MAAM,4BAA4B,8BAA8B,CAAA;AAyBvE,MAAM,CAAC,OAAO,OAAO,OAAO;IAC1B,CAAC,aAAa,CAAC,CAAC,EAAE,oBAAoB,CAAA;IAGtC,EAAE,EAAG,MAAM,CAAA;IAGX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAO;IAI1B,IAAI,EAAE,MAAM,CAAA;IAIZ,IAAI,EAAE,MAAM,CAAA;IAGZ,UAAU,EAAE,OAAO,CAAQ;IAG3B,aAAa,EAAE,OAAO,CAAQ;IAS9B,aAAa,EAAE,MAAM,CAAA;IAGrB,UAAU,EAAE,GAAG,CAAC,SAAS,CAAC,CAAA;IAK1B,KAAK,kCAAyC;IAG9C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAO/C,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAGhB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAO;IAIhC,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAKR,MAAM;CAGP"}
|
package/dist/models/tax-rate.js
CHANGED
@@ -41,7 +41,6 @@ const deletedAtIndexStatement = (0, utils_1.createPsqlIndexStatementHelper)({
|
|
41
41
|
let TaxRate = class TaxRate {
|
42
42
|
constructor() {
|
43
43
|
this.rate = null;
|
44
|
-
this.code = null;
|
45
44
|
this.is_default = false;
|
46
45
|
this.is_combinable = false;
|
47
46
|
this.rules = new core_1.Collection(this);
|
@@ -66,8 +65,8 @@ __decorate([
|
|
66
65
|
], TaxRate.prototype, "rate", void 0);
|
67
66
|
__decorate([
|
68
67
|
(0, utils_1.Searchable)(),
|
69
|
-
(0, core_1.Property)({ columnType: "text"
|
70
|
-
__metadata("design:type",
|
68
|
+
(0, core_1.Property)({ columnType: "text" }),
|
69
|
+
__metadata("design:type", String)
|
71
70
|
], TaxRate.prototype, "code", void 0);
|
72
71
|
__decorate([
|
73
72
|
(0, utils_1.Searchable)(),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tax-rate.js","sourceRoot":"","sources":["../../src/models/tax-rate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,qDAKkC;AAClC,0CAawB;AACxB,oEAAyC;AACzC,8DAAoC;AAIpC,MAAM,UAAU,GAAG,UAAU,CAAA;AAEhB,QAAA,4BAA4B,GAAG,2BAA2B,CAAA;AACvE,MAAM,iCAAiC,GAAG,IAAA,sCAA8B,EAAC;IACvE,IAAI,EAAE,oCAA4B;IAClC,SAAS,EAAE,UAAU;IACrB,OAAO,EAAE,eAAe;IACxB,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,0CAA0C;CAClD,CAAC,CAAA;AAEF,MAAM,oBAAoB,GAAG,4BAA4B,CAAA;AACzD,MAAM,yBAAyB,GAAG,IAAA,sCAA8B,EAAC;IAC/D,IAAI,EAAE,oBAAoB;IAC1B,SAAS,EAAE,UAAU;IACrB,OAAO,EAAE,eAAe;IACxB,KAAK,EAAE,oBAAoB;CAC5B,CAAC,CAAA;AACF,MAAM,uBAAuB,GAAG,IAAA,sCAA8B,EAAC;IAC7D,SAAS,EAAE,UAAU;IACrB,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAKa,IAAM,OAAO,GAAb,MAAM,OAAO;IAAb;QAOb,SAAI,GAAkB,IAAI,CAAA;
|
1
|
+
{"version":3,"file":"tax-rate.js","sourceRoot":"","sources":["../../src/models/tax-rate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,qDAKkC;AAClC,0CAawB;AACxB,oEAAyC;AACzC,8DAAoC;AAIpC,MAAM,UAAU,GAAG,UAAU,CAAA;AAEhB,QAAA,4BAA4B,GAAG,2BAA2B,CAAA;AACvE,MAAM,iCAAiC,GAAG,IAAA,sCAA8B,EAAC;IACv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CAAC,IAAI,IAAI,EAAE;QAC1B,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,OAAO;KACpB,CAAC;8BACU,IAAI;2CAAA;AAGhB;IADC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACjB;AAIhC;IAFC,uBAAuB,CAAC,aAAa,EAAE;IACvC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC1B;AAG9B;IADC,IAAA,mBAAY,GAAE;;;;uCAGd;AAGD;IADC,IAAA,aAAM,GAAE;;;;qCAGR;AAzEkB,OAAO;IAH3B,iCAAiC,CAAC,aAAa,EAAE;IACjD,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;IACjC,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC/B,OAAO,CA0E3B;kBA1EoB,OAAO"}
|
@@ -1 +1 @@
|
|
1
|
-
{"root":["../src/index.ts","../src/loaders/providers.ts","../src/migrations/Migration20240227090331.ts","../src/migrations/Migration20240710135844.ts","../src/models/index.ts","../src/models/tax-provider.ts","../src/models/tax-rate-rule.ts","../src/models/tax-rate.ts","../src/models/tax-region.ts","../src/providers/index.ts","../src/providers/system.ts","../src/services/index.ts","../src/services/tax-module-service.ts","../src/services/__tests__/noop.ts"],"version":"5.6.2"}
|
1
|
+
{"root":["../src/index.ts","../src/loaders/providers.ts","../src/migrations/Migration20240227090331.ts","../src/migrations/Migration20240710135844.ts","../src/migrations/Migration20240924114005.ts","../src/models/index.ts","../src/models/tax-provider.ts","../src/models/tax-rate-rule.ts","../src/models/tax-rate.ts","../src/models/tax-region.ts","../src/providers/index.ts","../src/providers/system.ts","../src/services/index.ts","../src/services/tax-module-service.ts","../src/services/__tests__/noop.ts"],"version":"5.6.2"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/tax",
|
3
|
-
"version": "0.1.2-snapshot-
|
3
|
+
"version": "0.1.2-snapshot-20240930060235",
|
4
4
|
"description": "Medusa Tax module",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -37,7 +37,7 @@
|
|
37
37
|
"orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm cache:clear"
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
|
-
"@medusajs/framework": "0.0.2-snapshot-
|
40
|
+
"@medusajs/framework": "0.0.2-snapshot-20240930060235",
|
41
41
|
"@mikro-orm/cli": "5.9.7",
|
42
42
|
"@mikro-orm/core": "5.9.7",
|
43
43
|
"@mikro-orm/migrations": "5.9.7",
|
@@ -45,13 +45,13 @@
|
|
45
45
|
"@swc/core": "^1.7.28",
|
46
46
|
"@swc/jest": "^0.2.36",
|
47
47
|
"jest": "^29.7.0",
|
48
|
-
"medusa-test-utils": "1.1.45-snapshot-
|
48
|
+
"medusa-test-utils": "1.1.45-snapshot-20240930060235",
|
49
49
|
"rimraf": "^3.0.2",
|
50
50
|
"tsc-alias": "^1.8.6",
|
51
51
|
"typescript": "^5.6.2"
|
52
52
|
},
|
53
53
|
"peerDependencies": {
|
54
|
-
"@medusajs/framework": "0.0.2-snapshot-
|
54
|
+
"@medusajs/framework": "0.0.2-snapshot-20240930060235",
|
55
55
|
"@mikro-orm/core": "5.9.7",
|
56
56
|
"@mikro-orm/migrations": "5.9.7",
|
57
57
|
"@mikro-orm/postgresql": "5.9.7",
|