@medusajs/tax 0.1.2 → 1.0.0-rc-20241001083650
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +6 -7
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -24
- package/dist/index.js.map +1 -0
- package/dist/loaders/providers.d.ts +2 -2
- package/dist/loaders/providers.d.ts.map +1 -0
- package/dist/loaders/providers.js +2 -1
- package/dist/loaders/providers.js.map +1 -0
- package/dist/migrations/Migration20240227090331.d.ts +1 -0
- package/dist/migrations/Migration20240227090331.d.ts.map +1 -0
- package/dist/migrations/Migration20240227090331.js +2 -1
- package/dist/migrations/Migration20240227090331.js.map +1 -0
- package/dist/migrations/Migration20240710135844.d.ts +6 -0
- package/dist/migrations/Migration20240710135844.d.ts.map +1 -0
- package/dist/migrations/Migration20240710135844.js +18 -0
- package/dist/migrations/Migration20240710135844.js.map +1 -0
- 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/index.d.ts +1 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/tax-provider.d.ts +1 -0
- package/dist/models/tax-provider.d.ts.map +1 -0
- package/dist/models/tax-provider.js +1 -0
- package/dist/models/tax-provider.js.map +1 -0
- package/dist/models/tax-rate-rule.d.ts +5 -4
- package/dist/models/tax-rate-rule.d.ts.map +1 -0
- package/dist/models/tax-rate-rule.js +9 -7
- package/dist/models/tax-rate-rule.js.map +1 -0
- package/dist/models/tax-rate.d.ts +6 -5
- package/dist/models/tax-rate.d.ts.map +1 -0
- package/dist/models/tax-rate.js +13 -12
- package/dist/models/tax-rate.js.map +1 -0
- package/dist/models/tax-region.d.ts +7 -5
- package/dist/models/tax-region.d.ts.map +1 -0
- package/dist/models/tax-region.js +21 -9
- package/dist/models/tax-region.js.map +1 -0
- package/dist/providers/index.d.ts +1 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +1 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/system.d.ts +2 -1
- package/dist/providers/system.d.ts.map +1 -0
- package/dist/providers/system.js +1 -0
- package/dist/providers/system.js.map +1 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +1 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/tax-module-service.d.ts +27 -24
- package/dist/services/tax-module-service.d.ts.map +1 -0
- package/dist/services/tax-module-service.js +32 -35
- package/dist/services/tax-module-service.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +20 -21
- package/dist/joiner-config.d.ts +0 -5
- package/dist/joiner-config.js +0 -54
- package/dist/module-definition.d.ts +0 -2
- package/dist/module-definition.js +0 -61
- package/dist/scripts/bin/run-seed.d.ts +0 -3
- package/dist/scripts/bin/run-seed.js +0 -48
package/dist/index.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
export
|
6
|
-
|
7
|
-
export default moduleDefinition;
|
1
|
+
import { TaxModuleService } from "./services";
|
2
|
+
declare const _default: import("@medusajs/types").ModuleExports<typeof TaxModuleService> & {
|
3
|
+
linkable: Record<string, any>;
|
4
|
+
};
|
5
|
+
export default _default;
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;;;;AAI5C,wBAGE"}
|
package/dist/index.js
CHANGED
@@ -1,28 +1,13 @@
|
|
1
1
|
"use strict";
|
2
|
-
var
|
3
|
-
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
4
|
};
|
16
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
|
18
|
-
const
|
19
|
-
const
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
moduleName: modules_sdk_1.Modules.TAX,
|
24
|
-
moduleDefinition: module_definition_1.moduleDefinition,
|
6
|
+
const _services_1 = require("./services");
|
7
|
+
const providers_1 = __importDefault(require("./loaders/providers"));
|
8
|
+
const utils_1 = require("@medusajs/framework/utils");
|
9
|
+
exports.default = (0, utils_1.Module)(utils_1.Modules.TAX, {
|
10
|
+
service: _services_1.TaxModuleService,
|
11
|
+
loaders: [providers_1.default],
|
25
12
|
});
|
26
|
-
|
27
|
-
exports.revertMigration = module_definition_1.moduleDefinition.revertMigration;
|
28
|
-
exports.default = module_definition_1.moduleDefinition;
|
13
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,yCAA4C;AAC5C,oEAA+C;AAC/C,qDAA2D;AAE3D,kBAAe,IAAA,cAAM,EAAC,eAAO,CAAC,GAAG,EAAE;IACjC,OAAO,EAAE,4BAAgB;IACzB,OAAO,EAAE,CAAC,mBAAa,CAAC;CACzB,CAAC,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { LoaderOptions, ModuleProvider, ModulesSdkTypes } from "@medusajs/types";
|
2
|
-
import * as providers from "../providers";
|
1
|
+
import { LoaderOptions, ModuleProvider, ModulesSdkTypes } from "@medusajs/framework/types";
|
3
2
|
declare const _default: ({ container, options, }: LoaderOptions<(ModulesSdkTypes.ModuleServiceInitializeOptions | ModulesSdkTypes.ModuleServiceInitializeCustomDataLayerOptions) & {
|
4
3
|
providers: ModuleProvider[];
|
5
4
|
}>) => Promise<void>;
|
6
5
|
export default _default;
|
6
|
+
//# sourceMappingURL=providers.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../src/loaders/providers.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,cAAc,EACd,eAAe,EAChB,MAAM,2BAA2B,CAAA;kDAwB/B,aAAa,CACd,CACI,eAAe,CAAC,8BAA8B,GAC9C,eAAe,CAAC,6CAA6C,CAChE,GAAG;IAAE,SAAS,EAAE,cAAc,EAAE,CAAA;CAAE,CACpC,KAAG,OAAO,CAAC,IAAI,CAAC;AARjB,wBAmBC"}
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
23
|
return result;
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
26
|
+
const modules_sdk_1 = require("@medusajs/framework/modules-sdk");
|
27
27
|
const awilix_1 = require("awilix");
|
28
28
|
const providers = __importStar(require("../providers"));
|
29
29
|
const registrationFn = async (klass, container, pluginOptions) => {
|
@@ -45,3 +45,4 @@ exports.default = async ({ container, options, }) => {
|
|
45
45
|
registerServiceFn: registrationFn,
|
46
46
|
});
|
47
47
|
};
|
48
|
+
//# sourceMappingURL=providers.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../src/loaders/providers.ts"],"names":[],"mappings":";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;AAEjD,qBAAa,uBAAwB,SAAQ,SAAS;IAC9C,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;CA6G1B"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.Migration20240227090331 = 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 Migration20240227090331 extends migrations_1.Migration {
|
7
7
|
async up() {
|
@@ -46,3 +46,4 @@ class Migration20240227090331 extends migrations_1.Migration {
|
|
46
46
|
}
|
47
47
|
}
|
48
48
|
exports.Migration20240227090331 = Migration20240227090331;
|
49
|
+
//# sourceMappingURL=Migration20240227090331.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Migration20240227090331.js","sourceRoot":"","sources":["../../src/migrations/Migration20240227090331.ts"],"names":[],"mappings":";;;AAAA,qDAAwF;AACxF,sDAAiD;AAEjD,MAAa,uBAAwB,SAAQ,sBAAS;IACpD,KAAK,CAAC,EAAE;QACN,4BAA4B;QAC5B,IAAI,CAAC,MAAM,CACT,wGAAwG,CACzG,CAAA;QAED,IAAI,CAAC,MAAM,CACT,gKAAgK,CACjK,CAAA;QAED,oCAAoC;QACpC,IAAI,CAAC,MAAM,CACT,8kBAA8kB,CAC/kB,CAAA;QACD,yBAAyB;QACzB,IAAI,CAAC,MAAM,CACT,sFAAsF,CACvF,CAAA;QACD,IAAI,CAAC,MAAM,CACT,qHAAqH,CACtH,CAAA;QACD,IAAI,CAAC,MAAM,CACT,+HAA+H,CAChI,CAAA;QAED,+BAA+B;QAC/B,IAAI,CAAC,MAAM,CACT,IAAA,oDAA4C,EAC1C,UAAU,EACV,CAAC,WAAW,CAAC,EACb,eAAe,CAChB,CACF,CAAA;QACD,IAAI,CAAC,MAAM,CACT,8FAA8F,CAC/F,CAAA;QACD,IAAI,CAAC,MAAM,CACT,0FAA0F,CAC3F,CAAA;QACD,IAAI,CAAC,MAAM,CACT,0FAA0F,CAC3F,CAAA;QACD,IAAI,CAAC,MAAM,CACT,mFAAmF,CACpF,CAAA;QACD,IAAI,CAAC,MAAM,CACT,qGAAqG,CACtG,CAAA;QACD,IAAI,CAAC,MAAM,CACT,wGAAwG,CACzG,CAAA;QACD,IAAI,CAAC,MAAM,CACT,4cAA4c,CAC7c,CAAA;QAED,uBAAuB;QACvB,IAAI,CAAC,MAAM,CACT,mHAAmH,CACpH,CAAA;QACD,IAAI,CAAC,MAAM,CACT,iHAAiH,CAClH,CAAA;QACD,IAAI,CAAC,MAAM,CACT,+IAA+I,CAChJ,CAAA;QAED,uCAAuC;QACvC,IAAI,CAAC,MAAM,CACT,4XAA4X,CAC7X,CAAA;QACD,4BAA4B;QAC5B,IAAI,CAAC,MAAM,CACT,yHAAyH,CAC1H,CAAA;QACD,IAAI,CAAC,MAAM,CACT,2HAA2H,CAC5H,CAAA;QACD,IAAI,CAAC,MAAM,CACT,2HAA2H,CAC5H,CAAA;QACD,IAAI,CAAC,MAAM,CACT,0JAA0J,CAC3J,CAAA;QAED,2BAA2B;QAC3B,IAAI,CAAC,MAAM,CACT,sJAAsJ,CACvJ,CAAA;QACD,IAAI,CAAC,MAAM,CACT,+IAA+I,CAChJ,CAAA;QACD,IAAI,CAAC,MAAM,CACT,mJAAmJ,CACpJ,CAAA;QACD,IAAI,CAAC,MAAM,CACT,uJAAuJ,CACxJ,CAAA;QAED,iDAAiD;QACjD,IAAI,CAAC,MAAM,CACT,sGAAsG,CACvG,CAAA;QACD,IAAI,CAAC,MAAM,CACT,2GAA2G,CAC5G,CAAA;QACD,IAAI,CAAC,MAAM,CACT,uGAAuG,CACxG,CAAA;IACH,CAAC;CACF;AA9GD,0DA8GC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Migration20240710135844.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20240710135844.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,uBAAwB,SAAQ,SAAS;IAE9C,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAMnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAM5B"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Migration20240710135844 = void 0;
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
5
|
+
class Migration20240710135844 extends migrations_1.Migration {
|
6
|
+
async up() {
|
7
|
+
this.addSql('drop index if exists "IDX_tax_region_unique_country_province";');
|
8
|
+
this.addSql('CREATE UNIQUE INDEX IF NOT EXISTS "IDX_tax_region_unique_country_province" ON "tax_region" (country_code, province_code) WHERE deleted_at IS NULL;');
|
9
|
+
this.addSql('CREATE UNIQUE INDEX IF NOT EXISTS "IDX_tax_region_unique_country_nullable_province" ON "tax_region" (country_code) WHERE province_code IS NULL AND deleted_at IS NULL;');
|
10
|
+
}
|
11
|
+
async down() {
|
12
|
+
this.addSql('drop index if exists "IDX_tax_region_unique_country_province";');
|
13
|
+
this.addSql('drop index if exists "IDX_tax_region_unique_country_nullable_province";');
|
14
|
+
this.addSql('CREATE UNIQUE INDEX IF NOT EXISTS "IDX_tax_region_unique_country_province" ON "tax_region" (country_code, province_code);');
|
15
|
+
}
|
16
|
+
}
|
17
|
+
exports.Migration20240710135844 = Migration20240710135844;
|
18
|
+
//# sourceMappingURL=Migration20240710135844.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Migration20240710135844.js","sourceRoot":"","sources":["../../src/migrations/Migration20240710135844.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAEpD,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC,gEAAgE,CAAC,CAAC;QAC9E,IAAI,CAAC,MAAM,CAAC,oJAAoJ,CAAC,CAAC;QAClK,IAAI,CAAC,MAAM,CAAC,wKAAwK,CAAC,CAAC;IACxL,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CAAC,gEAAgE,CAAC,CAAC;QAC9E,IAAI,CAAC,MAAM,CAAC,yEAAyE,CAAC,CAAC;QACvF,IAAI,CAAC,MAAM,CAAC,2HAA2H,CAAC,CAAC;IAC3I,CAAC;CAEF;AAdD,0DAcC"}
|
@@ -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"}
|
package/dist/models/index.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAA"}
|
package/dist/models/index.js
CHANGED
@@ -12,3 +12,4 @@ var tax_rate_rule_1 = require("./tax-rate-rule");
|
|
12
12
|
Object.defineProperty(exports, "TaxRateRule", { enumerable: true, get: function () { return __importDefault(tax_rate_rule_1).default; } });
|
13
13
|
var tax_provider_1 = require("./tax-provider");
|
14
14
|
Object.defineProperty(exports, "TaxProvider", { enumerable: true, get: function () { return __importDefault(tax_provider_1).default; } });
|
15
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;AAAA,uCAA+C;AAAtC,oHAAA,OAAO,OAAW;AAC3B,2CAAmD;AAA1C,wHAAA,OAAO,OAAa;AAC7B,iDAAwD;AAA/C,6HAAA,OAAO,OAAe;AAC/B,+CAAuD;AAA9C,4HAAA,OAAO,OAAe"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tax-provider.d.ts","sourceRoot":"","sources":["../../src/models/tax-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,aAAa,EAAwB,MAAM,iBAAiB,CAAA;AAI7E,MAAM,CAAC,OAAO,OAAO,WAAW;IAC9B,CAAC,aAAa,CAAC,CAAC,EAAE,YAAY,CAAA;IAG9B,EAAE,EAAE,MAAM,CAAA;IAMV,UAAU,EAAE,OAAO,CAAO;CAC3B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tax-provider.js","sourceRoot":"","sources":["../../src/models/tax-provider.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,0CAA6E;AAE7E,MAAM,UAAU,GAAG,cAAc,CAAA;AAElB,IAAM,WAAW,GAAjB,MAAM,WAAW;IAAjB;QAUb,eAAU,GAAY,IAAI,CAAA;IAC5B,CAAC;CAAA,CAAA;AAPC;IADC,IAAA,iBAAU,EAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;;uCACzB;AAMV;IAJC,IAAA,eAAQ,EAAC;QACR,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,SAAS;KACtB,CAAC;;+CACwB;AAVP,WAAW;IAD/B,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;GACb,WAAW,CAW/B;kBAXoB,WAAW"}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { DAL } from "@medusajs/types";
|
2
|
-
import { OptionalProps } from "@mikro-orm/core";
|
1
|
+
import { DAL } from "@medusajs/framework/types";
|
2
|
+
import { OptionalProps, Rel } from "@mikro-orm/core";
|
3
3
|
import TaxRate from "./tax-rate";
|
4
|
-
type OptionalRuleProps = DAL.
|
4
|
+
type OptionalRuleProps = DAL.SoftDeletableModelDateColumns;
|
5
5
|
export declare const uniqueRateReferenceIndexName = "IDX_tax_rate_rule_unique_rate_reference";
|
6
6
|
export default class TaxRateRule {
|
7
7
|
[OptionalProps]?: OptionalRuleProps;
|
@@ -9,7 +9,7 @@ export default class TaxRateRule {
|
|
9
9
|
tax_rate_id: string;
|
10
10
|
reference_id: string;
|
11
11
|
reference: string;
|
12
|
-
tax_rate: TaxRate
|
12
|
+
tax_rate: Rel<TaxRate>;
|
13
13
|
metadata: Record<string, unknown> | null;
|
14
14
|
created_at: Date;
|
15
15
|
updated_at: Date;
|
@@ -19,3 +19,4 @@ export default class TaxRateRule {
|
|
19
19
|
onInit(): void;
|
20
20
|
}
|
21
21
|
export {};
|
22
|
+
//# sourceMappingURL=tax-rate-rule.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tax-rate-rule.d.ts","sourceRoot":"","sources":["../../src/models/tax-rate-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAA;AAM/C,OAAO,EAML,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,OAAO,MAAM,YAAY,CAAA;AAIhC,KAAK,iBAAiB,GAAG,GAAG,CAAC,6BAA6B,CAAA;AAuB1D,eAAO,MAAM,4BAA4B,4CACE,CAAA;AAY3C,MAAM,CAAC,OAAO,OAAO,WAAW;IAC9B,CAAC,aAAa,CAAC,CAAC,EAAE,iBAAiB,CAAA;IAGnC,EAAE,EAAG,MAAM,CAAA;IASX,WAAW,EAAE,MAAM,CAAA;IAInB,YAAY,EAAE,MAAM,CAAA;IAGpB,SAAS,EAAE,MAAM,CAAA;IAGjB,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAGtB,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"}
|
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
13
|
};
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
15
|
exports.uniqueRateReferenceIndexName = void 0;
|
16
|
-
const utils_1 = require("@medusajs/utils");
|
16
|
+
const utils_1 = require("@medusajs/framework/utils");
|
17
17
|
const core_1 = require("@mikro-orm/core");
|
18
18
|
const tax_rate_1 = __importDefault(require("./tax-rate"));
|
19
19
|
const TABLE_NAME = "tax_rate_rule";
|
@@ -24,6 +24,11 @@ const taxRateIdIndexStatement = (0, utils_1.createPsqlIndexStatementHelper)({
|
|
24
24
|
columns: "tax_rate_id",
|
25
25
|
where: "deleted_at IS NULL",
|
26
26
|
});
|
27
|
+
const deletedAtIndexStatement = (0, utils_1.createPsqlIndexStatementHelper)({
|
28
|
+
tableName: TABLE_NAME,
|
29
|
+
columns: "deleted_at",
|
30
|
+
where: "deleted_at IS NOT NULL",
|
31
|
+
});
|
27
32
|
const referenceIdIndexName = "IDX_tax_rate_rule_reference_id";
|
28
33
|
const referenceIdIndexStatement = (0, utils_1.createPsqlIndexStatementHelper)({
|
29
34
|
name: referenceIdIndexName,
|
@@ -77,7 +82,7 @@ __decorate([
|
|
77
82
|
], TaxRateRule.prototype, "reference", void 0);
|
78
83
|
__decorate([
|
79
84
|
(0, core_1.ManyToOne)(() => tax_rate_1.default, { persist: false }),
|
80
|
-
__metadata("design:type",
|
85
|
+
__metadata("design:type", Object)
|
81
86
|
], TaxRateRule.prototype, "tax_rate", void 0);
|
82
87
|
__decorate([
|
83
88
|
(0, core_1.Property)({ columnType: "jsonb", nullable: true }),
|
@@ -105,11 +110,7 @@ __decorate([
|
|
105
110
|
__metadata("design:type", Object)
|
106
111
|
], TaxRateRule.prototype, "created_by", void 0);
|
107
112
|
__decorate([
|
108
|
-
(
|
109
|
-
tableName: TABLE_NAME,
|
110
|
-
columns: "deleted_at",
|
111
|
-
where: "deleted_at IS NOT NULL",
|
112
|
-
}).MikroORMIndex(),
|
113
|
+
deletedAtIndexStatement.MikroORMIndex(),
|
113
114
|
(0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
|
114
115
|
__metadata("design:type", Object)
|
115
116
|
], TaxRateRule.prototype, "deleted_at", void 0);
|
@@ -131,3 +132,4 @@ TaxRateRule = __decorate([
|
|
131
132
|
uniqueRateReferenceIndexStatement.MikroORMIndex()
|
132
133
|
], TaxRateRule);
|
133
134
|
exports.default = TaxRateRule;
|
135
|
+
//# sourceMappingURL=tax-rate-rule.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tax-rate-rule.js","sourceRoot":"","sources":["../../src/models/tax-rate-rule.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,qDAIkC;AAClC,0CAUwB;AACxB,0DAAgC;AAEhC,MAAM,UAAU,GAAG,eAAe,CAAA;AAIlC,MAAM,kBAAkB,GAAG,+BAA+B,CAAA;AAC1D,MAAM,uBAAuB,GAAG,IAAA,sCAA8B,EAAC;IAC7D,IAAI,EAAE,kBAAkB;IACxB,SAAS,EAAE,UAAU;IACrB,OAAO,EAAE,aAAa;IACtB,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;AAEF,MAAM,oBAAoB,GAAG,gCAAgC,CAAA;AAC7D,MAAM,yBAAyB,GAAG,IAAA,sCAA8B,EAAC;IAC/D,IAAI,EAAE,oBAAoB;IAC1B,SAAS,EAAE,UAAU;IACrB,OAAO,EAAE,cAAc;IACvB,KAAK,EAAE,oBAAoB;CAC5B,CAAC,CAAA;AAEW,QAAA,4BAA4B,GACvC,yCAAyC,CAAA;AAC3C,MAAM,iCAAiC,GAAG,IAAA,sCAA8B,EAAC;IACvE,IAAI,EAAE,oCAA4B;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IALC,IAAA,eAAQ,EAAC;QACR,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,OAAO;KACpB,CAAC;8BACU,IAAI;+CAAA;AAQhB;IANC,IAAA,eAAQ,EAAC;QACR,QAAQ,EAAE,GAAG,EAAE,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;+CAAA;AAGhB;IADC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACjB;AAIhC;IAFC,uBAAuB,CAAC,aAAa,EAAE;IACvC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC1B;AAG9B;IADC,IAAA,mBAAY,GAAE;;;;2CAGd;AAGD;IADC,IAAA,aAAM,GAAE;;;;yCAGR;AA1DkB,WAAW;IAH/B,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;IACjC,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;IACnD,iCAAiC,CAAC,aAAa,EAAE;GAC7B,WAAW,CA2D/B;kBA3DoB,WAAW"}
|
@@ -1,19 +1,19 @@
|
|
1
|
-
import { DAL } from "@medusajs/types";
|
2
|
-
import { Collection, OptionalProps } from "@mikro-orm/core";
|
1
|
+
import { DAL } from "@medusajs/framework/types";
|
2
|
+
import { Collection, OptionalProps, Rel } from "@mikro-orm/core";
|
3
3
|
import TaxRateRule from "./tax-rate-rule";
|
4
4
|
import TaxRegion from "./tax-region";
|
5
|
-
type OptionalTaxRateProps = DAL.
|
5
|
+
type OptionalTaxRateProps = DAL.SoftDeletableModelDateColumns;
|
6
6
|
export declare const singleDefaultRegionIndexName = "IDX_single_default_region";
|
7
7
|
export default class TaxRate {
|
8
8
|
[OptionalProps]?: OptionalTaxRateProps;
|
9
9
|
id: string;
|
10
10
|
rate: number | null;
|
11
|
-
code: string
|
11
|
+
code: string;
|
12
12
|
name: string;
|
13
13
|
is_default: boolean;
|
14
14
|
is_combinable: boolean;
|
15
15
|
tax_region_id: string;
|
16
|
-
tax_region: TaxRegion
|
16
|
+
tax_region: Rel<TaxRegion>;
|
17
17
|
rules: Collection<TaxRateRule, object>;
|
18
18
|
metadata: Record<string, unknown> | null;
|
19
19
|
created_at: Date;
|
@@ -24,3 +24,4 @@ export default class TaxRate {
|
|
24
24
|
onInit(): void;
|
25
25
|
}
|
26
26
|
export {};
|
27
|
+
//# sourceMappingURL=tax-rate.d.ts.map
|
@@ -0,0 +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,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
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
13
|
};
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
15
|
exports.singleDefaultRegionIndexName = void 0;
|
16
|
-
const utils_1 = require("@medusajs/utils");
|
16
|
+
const utils_1 = require("@medusajs/framework/utils");
|
17
17
|
const core_1 = require("@mikro-orm/core");
|
18
18
|
const tax_rate_rule_1 = __importDefault(require("./tax-rate-rule"));
|
19
19
|
const tax_region_1 = __importDefault(require("./tax-region"));
|
@@ -33,10 +33,14 @@ const taxRegionIdIndexStatement = (0, utils_1.createPsqlIndexStatementHelper)({
|
|
33
33
|
columns: "tax_region_id",
|
34
34
|
where: "deleted_at IS NULL",
|
35
35
|
});
|
36
|
+
const deletedAtIndexStatement = (0, utils_1.createPsqlIndexStatementHelper)({
|
37
|
+
tableName: TABLE_NAME,
|
38
|
+
columns: "deleted_at",
|
39
|
+
where: "deleted_at IS NOT NULL",
|
40
|
+
});
|
36
41
|
let TaxRate = class TaxRate {
|
37
42
|
constructor() {
|
38
43
|
this.rate = null;
|
39
|
-
this.code = null;
|
40
44
|
this.is_default = false;
|
41
45
|
this.is_combinable = false;
|
42
46
|
this.rules = new core_1.Collection(this);
|
@@ -61,8 +65,8 @@ __decorate([
|
|
61
65
|
], TaxRate.prototype, "rate", void 0);
|
62
66
|
__decorate([
|
63
67
|
(0, utils_1.Searchable)(),
|
64
|
-
(0, core_1.Property)({ columnType: "text"
|
65
|
-
__metadata("design:type",
|
68
|
+
(0, core_1.Property)({ columnType: "text" }),
|
69
|
+
__metadata("design:type", String)
|
66
70
|
], TaxRate.prototype, "code", void 0);
|
67
71
|
__decorate([
|
68
72
|
(0, utils_1.Searchable)(),
|
@@ -71,11 +75,11 @@ __decorate([
|
|
71
75
|
], TaxRate.prototype, "name", void 0);
|
72
76
|
__decorate([
|
73
77
|
(0, core_1.Property)({ columnType: "bool", default: false }),
|
74
|
-
__metadata("design:type",
|
78
|
+
__metadata("design:type", Boolean)
|
75
79
|
], TaxRate.prototype, "is_default", void 0);
|
76
80
|
__decorate([
|
77
81
|
(0, core_1.Property)({ columnType: "bool", default: false }),
|
78
|
-
__metadata("design:type",
|
82
|
+
__metadata("design:type", Boolean)
|
79
83
|
], TaxRate.prototype, "is_combinable", void 0);
|
80
84
|
__decorate([
|
81
85
|
(0, core_1.ManyToOne)(() => tax_region_1.default, {
|
@@ -89,7 +93,7 @@ __decorate([
|
|
89
93
|
], TaxRate.prototype, "tax_region_id", void 0);
|
90
94
|
__decorate([
|
91
95
|
(0, core_1.ManyToOne)({ entity: () => tax_region_1.default, persist: false }),
|
92
|
-
__metadata("design:type",
|
96
|
+
__metadata("design:type", Object)
|
93
97
|
], TaxRate.prototype, "tax_region", void 0);
|
94
98
|
__decorate([
|
95
99
|
(0, core_1.OneToMany)(() => tax_rate_rule_1.default, (rule) => rule.tax_rate, {
|
@@ -123,11 +127,7 @@ __decorate([
|
|
123
127
|
__metadata("design:type", Object)
|
124
128
|
], TaxRate.prototype, "created_by", void 0);
|
125
129
|
__decorate([
|
126
|
-
(
|
127
|
-
tableName: TABLE_NAME,
|
128
|
-
columns: "deleted_at",
|
129
|
-
where: "deleted_at IS NOT NULL",
|
130
|
-
}).MikroORMIndex(),
|
130
|
+
deletedAtIndexStatement.MikroORMIndex(),
|
131
131
|
(0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
|
132
132
|
__metadata("design:type", Object)
|
133
133
|
], TaxRate.prototype, "deleted_at", void 0);
|
@@ -149,3 +149,4 @@ TaxRate = __decorate([
|
|
149
149
|
(0, core_1.Filter)(utils_1.DALUtils.mikroOrmSoftDeletableFilterOptions)
|
150
150
|
], TaxRate);
|
151
151
|
exports.default = TaxRate;
|
152
|
+
//# sourceMappingURL=tax-rate.js.map
|
@@ -0,0 +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;QAW1B,eAAU,GAAY,KAAK,CAAA;QAG3B,kBAAa,GAAY,KAAK,CAAA;QAiB9B,UAAK,GAAG,IAAI,iBAAU,CAAmB,IAAI,CAAC,CAAA;QAG9C,aAAQ,GAAmC,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1
|
-
import { DAL } from "@medusajs/types";
|
2
|
-
import { Collection, OptionalProps } from "@mikro-orm/core";
|
1
|
+
import { DAL } from "@medusajs/framework/types";
|
2
|
+
import { Collection, OptionalProps, Rel } from "@mikro-orm/core";
|
3
3
|
import TaxProvider from "./tax-provider";
|
4
4
|
import TaxRate from "./tax-rate";
|
5
|
-
type OptionalTaxRegionProps = DAL.
|
5
|
+
type OptionalTaxRegionProps = DAL.SoftDeletableModelDateColumns;
|
6
|
+
export declare const countryCodeNullProvinceIndexName = "IDX_tax_region_unique_country_nullable_province";
|
6
7
|
export declare const countryCodeProvinceIndexName = "IDX_tax_region_unique_country_province";
|
7
8
|
export declare const taxRegionProviderTopLevelCheckName = "CK_tax_region_provider_top_level";
|
8
9
|
export declare const taxRegionCountryTopLevelCheckName = "CK_tax_region_country_top_level";
|
@@ -10,11 +11,11 @@ export default class TaxRegion {
|
|
10
11
|
[OptionalProps]?: OptionalTaxRegionProps;
|
11
12
|
id: string;
|
12
13
|
provider_id: string | null;
|
13
|
-
provider: TaxProvider
|
14
|
+
provider: Rel<TaxProvider>;
|
14
15
|
country_code: string;
|
15
16
|
province_code: string | null;
|
16
17
|
parent_id: string | null;
|
17
|
-
parent: TaxRegion
|
18
|
+
parent: Rel<TaxRegion>;
|
18
19
|
tax_rates: Collection<TaxRate, object>;
|
19
20
|
children: Collection<TaxRegion, object>;
|
20
21
|
metadata: Record<string, unknown> | null;
|
@@ -26,3 +27,4 @@ export default class TaxRegion {
|
|
26
27
|
onInit(): void;
|
27
28
|
}
|
28
29
|
export {};
|
30
|
+
//# sourceMappingURL=tax-region.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tax-region.d.ts","sourceRoot":"","sources":["../../src/models/tax-region.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAA;AAO/C,OAAO,EAIL,UAAU,EAMV,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,WAAW,MAAM,gBAAgB,CAAA;AACxC,OAAO,OAAO,MAAM,YAAY,CAAA;AAEhC,KAAK,sBAAsB,GAAG,GAAG,CAAC,6BAA6B,CAAA;AAI/D,eAAO,MAAM,gCAAgC,oDACM,CAAA;AACnD,eAAO,MAAM,4BAA4B,2CACC,CAAA;AAuB1C,eAAO,MAAM,kCAAkC,qCACX,CAAA;AACpC,eAAO,MAAM,iCAAiC,oCACX,CAAA;AAcnC,MAAM,CAAC,OAAO,OAAO,SAAS;IAC5B,CAAC,aAAa,CAAC,CAAC,EAAE,sBAAsB,CAAA;IAGxC,EAAE,EAAG,MAAM,CAAA;IAOX,WAAW,EAAE,MAAM,GAAG,IAAI,CAAO;IAGjC,QAAQ,EAAE,GAAG,CAAC,WAAW,CAAC,CAAA;IAI1B,YAAY,EAAE,MAAM,CAAA;IAIpB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAO;IASnC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAO;IAG/B,MAAM,EAAE,GAAG,CAAC,SAAS,CAAC,CAAA;IAKtB,SAAS,8BAAgC;IAKzC,QAAQ,gCAAuC;IAG/C,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"}
|
@@ -12,18 +12,32 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
13
|
};
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
exports.taxRegionCountryTopLevelCheckName = exports.taxRegionProviderTopLevelCheckName = exports.countryCodeProvinceIndexName = void 0;
|
16
|
-
const utils_1 = require("@medusajs/utils");
|
15
|
+
exports.taxRegionCountryTopLevelCheckName = exports.taxRegionProviderTopLevelCheckName = exports.countryCodeProvinceIndexName = exports.countryCodeNullProvinceIndexName = void 0;
|
16
|
+
const utils_1 = require("@medusajs/framework/utils");
|
17
17
|
const core_1 = require("@mikro-orm/core");
|
18
18
|
const tax_provider_1 = __importDefault(require("./tax-provider"));
|
19
19
|
const tax_rate_1 = __importDefault(require("./tax-rate"));
|
20
20
|
const TABLE_NAME = "tax_region";
|
21
|
+
exports.countryCodeNullProvinceIndexName = "IDX_tax_region_unique_country_nullable_province";
|
21
22
|
exports.countryCodeProvinceIndexName = "IDX_tax_region_unique_country_province";
|
22
23
|
const countryCodeProvinceIndexStatement = (0, utils_1.createPsqlIndexStatementHelper)({
|
23
24
|
name: exports.countryCodeProvinceIndexName,
|
24
25
|
tableName: TABLE_NAME,
|
25
26
|
columns: ["country_code", "province_code"],
|
26
27
|
unique: true,
|
28
|
+
where: "deleted_at IS NULL",
|
29
|
+
});
|
30
|
+
const deletedAtIndexStatement = (0, utils_1.createPsqlIndexStatementHelper)({
|
31
|
+
tableName: TABLE_NAME,
|
32
|
+
columns: "deleted_at",
|
33
|
+
where: "deleted_at IS NOT NULL",
|
34
|
+
});
|
35
|
+
const countryCodeNullableProvinceIndexStatement = (0, utils_1.createPsqlIndexStatementHelper)({
|
36
|
+
name: exports.countryCodeNullProvinceIndexName,
|
37
|
+
tableName: TABLE_NAME,
|
38
|
+
columns: ["country_code"],
|
39
|
+
unique: true,
|
40
|
+
where: "province_code IS NULL AND deleted_at IS NULL",
|
27
41
|
});
|
28
42
|
exports.taxRegionProviderTopLevelCheckName = "CK_tax_region_provider_top_level";
|
29
43
|
exports.taxRegionCountryTopLevelCheckName = "CK_tax_region_country_top_level";
|
@@ -59,7 +73,7 @@ __decorate([
|
|
59
73
|
], TaxRegion.prototype, "provider_id", void 0);
|
60
74
|
__decorate([
|
61
75
|
(0, core_1.ManyToOne)(() => tax_provider_1.default, { persist: false }),
|
62
|
-
__metadata("design:type",
|
76
|
+
__metadata("design:type", Object)
|
63
77
|
], TaxRegion.prototype, "provider", void 0);
|
64
78
|
__decorate([
|
65
79
|
(0, utils_1.Searchable)(),
|
@@ -83,7 +97,7 @@ __decorate([
|
|
83
97
|
], TaxRegion.prototype, "parent_id", void 0);
|
84
98
|
__decorate([
|
85
99
|
(0, core_1.ManyToOne)(() => TaxRegion, { persist: false }),
|
86
|
-
__metadata("design:type",
|
100
|
+
__metadata("design:type", Object)
|
87
101
|
], TaxRegion.prototype, "parent", void 0);
|
88
102
|
__decorate([
|
89
103
|
(0, core_1.OneToMany)(() => tax_rate_1.default, (label) => label.tax_region, {
|
@@ -123,11 +137,7 @@ __decorate([
|
|
123
137
|
__metadata("design:type", Object)
|
124
138
|
], TaxRegion.prototype, "created_by", void 0);
|
125
139
|
__decorate([
|
126
|
-
(
|
127
|
-
tableName: TABLE_NAME,
|
128
|
-
columns: "deleted_at",
|
129
|
-
where: "deleted_at IS NOT NULL",
|
130
|
-
}).MikroORMIndex(),
|
140
|
+
deletedAtIndexStatement.MikroORMIndex(),
|
131
141
|
(0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
|
132
142
|
__metadata("design:type", Object)
|
133
143
|
], TaxRegion.prototype, "deleted_at", void 0);
|
@@ -152,8 +162,10 @@ TaxRegion = __decorate([
|
|
152
162
|
name: exports.taxRegionCountryTopLevelCheckName,
|
153
163
|
expression: `parent_id IS NULL OR province_code IS NOT NULL`,
|
154
164
|
}),
|
165
|
+
countryCodeNullableProvinceIndexStatement.MikroORMIndex(),
|
155
166
|
countryCodeProvinceIndexStatement.MikroORMIndex(),
|
156
167
|
(0, core_1.Entity)({ tableName: TABLE_NAME }),
|
157
168
|
(0, core_1.Filter)(utils_1.DALUtils.mikroOrmSoftDeletableFilterOptions)
|
158
169
|
], TaxRegion);
|
159
170
|
exports.default = TaxRegion;
|
171
|
+
//# sourceMappingURL=tax-region.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"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CAAiC;QACvC,UAAU,EAAE,gDAAgD;KAC7D,CAAC;IACD,yCAAyC,CAAC,aAAa,EAAE;IACzD,iCAAiC,CAAC,aAAa,EAAE;IACjD,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;IACjC,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC/B,SAAS,CAgF7B;kBAhFoB,SAAS"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAA"}
|
package/dist/providers/index.js
CHANGED
@@ -6,3 +6,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.SystemTaxProvider = void 0;
|
7
7
|
var system_1 = require("./system");
|
8
8
|
Object.defineProperty(exports, "SystemTaxProvider", { enumerable: true, get: function () { return __importDefault(system_1).default; } });
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":";;;;;;AAAA,mCAAuD;AAA9C,4HAAA,OAAO,OAAqB"}
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import { ITaxProvider, TaxTypes } from "@medusajs/types";
|
1
|
+
import { ITaxProvider, TaxTypes } from "@medusajs/framework/types";
|
2
2
|
export default class SystemTaxService implements ITaxProvider {
|
3
3
|
static identifier: string;
|
4
4
|
getIdentifier(): string;
|
5
5
|
getTaxLines(itemLines: TaxTypes.ItemTaxCalculationLine[], shippingLines: TaxTypes.ShippingTaxCalculationLine[], _: TaxTypes.TaxCalculationContext): Promise<(TaxTypes.ItemTaxLineDTO | TaxTypes.ShippingTaxLineDTO)[]>;
|
6
6
|
}
|
7
|
+
//# sourceMappingURL=system.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../src/providers/system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAElE,MAAM,CAAC,OAAO,OAAO,gBAAiB,YAAW,YAAY;IAC3D,MAAM,CAAC,UAAU,SAAW;IAE5B,aAAa,IAAI,MAAM;IAIjB,WAAW,CACf,SAAS,EAAE,QAAQ,CAAC,sBAAsB,EAAE,EAC5C,aAAa,EAAE,QAAQ,CAAC,0BAA0B,EAAE,EACpD,CAAC,EAAE,QAAQ,CAAC,qBAAqB,GAChC,OAAO,CAAC,CAAC,QAAQ,CAAC,cAAc,GAAG,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC;CA4BtE"}
|
package/dist/providers/system.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../src/providers/system.ts"],"names":[],"mappings":";;AAEA,MAAqB,gBAAgB;IAGnC,aAAa;QACX,OAAO,gBAAgB,CAAC,UAAU,CAAA;IACpC,CAAC;IAED,KAAK,CAAC,WAAW,CACf,SAA4C,EAC5C,aAAoD,EACpD,CAAiC;QAEjC,IAAI,QAAQ,GACV,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACtB,OAAO,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBACzB,OAAO,EAAE,CAAC,CAAC,EAAE;gBACb,IAAI,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC;gBACjB,IAAI,EAAE,CAAC,CAAC,IAAI;gBACZ,IAAI,EAAE,CAAC,CAAC,IAAI;gBACZ,YAAY,EAAE,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC5B,WAAW,EAAE,IAAI,CAAC,aAAa,EAAE;aAClC,CAAC,CAAC,CAAA;QACL,CAAC,CAAC,CAAA;QAEJ,QAAQ,GAAG,QAAQ,CA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