@medusajs/pricing 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/joiner-config.d.ts +1 -2
- package/dist/joiner-config.js +1 -9
- package/dist/migrations/Migration20230929122253.js +60 -29
- package/dist/migrations/Migration20240322094407.d.ts +5 -0
- package/dist/migrations/Migration20240322094407.js +15 -0
- package/dist/migrations/{Migration20231101232834.d.ts → Migration20240322113359.d.ts} +1 -1
- package/dist/migrations/Migration20240322113359.js +19 -0
- package/dist/migrations/{Migration20240103140327.d.ts → Migration20240322120125.d.ts} +1 -1
- package/dist/migrations/Migration20240322120125.js +15 -0
- package/dist/models/index.d.ts +1 -3
- package/dist/models/index.js +3 -7
- package/dist/models/price-list-rule-value.d.ts +9 -0
- package/dist/models/price-list-rule-value.js +49 -4
- package/dist/models/price-list-rule.d.ts +8 -3
- package/dist/models/price-list-rule.js +65 -15
- package/dist/models/price-list.d.ts +7 -6
- package/dist/models/price-list.js +23 -11
- package/dist/models/price-rule.d.ts +8 -5
- package/dist/models/price-rule.js +63 -19
- package/dist/models/price-set-rule-type.d.ts +5 -4
- package/dist/models/price-set-rule-type.js +57 -8
- package/dist/models/price-set.d.ts +7 -6
- package/dist/models/price-set.js +42 -19
- package/dist/models/price.d.ts +27 -0
- package/dist/models/price.js +167 -0
- package/dist/models/rule-type.d.ts +1 -0
- package/dist/models/rule-type.js +21 -2
- package/dist/repositories/pricing.js +40 -38
- package/dist/scripts/seed.js +9 -17
- package/dist/services/index.d.ts +0 -3
- package/dist/services/index.js +1 -7
- package/dist/services/pricing-module.d.ts +19 -33
- package/dist/services/pricing-module.js +163 -348
- package/dist/services/rule-type.d.ts +5 -6
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js +1 -2
- package/dist/types/services/index.d.ts +0 -10
- package/dist/types/services/index.js +0 -10
- package/dist/types/services/price-list.d.ts +0 -21
- package/package.json +5 -5
- package/dist/migrations/Migration20231101232834.js +0 -50
- package/dist/migrations/Migration20240103140327.js +0 -29
- package/dist/models/money-amount.d.ts +0 -19
- package/dist/models/money-amount.js +0 -111
- package/dist/models/price-set-money-amount-rules.d.ts +0 -10
- package/dist/models/price-set-money-amount-rules.js +0 -63
- package/dist/models/price-set-money-amount.d.ts +0 -24
- package/dist/models/price-set-money-amount.js +0 -128
- package/dist/services/price-list-rule-value.d.ts +0 -13
- package/dist/services/price-list-rule-value.js +0 -22
- package/dist/services/price-list-rule.d.ts +0 -15
- package/dist/services/price-list-rule.js +0 -41
- package/dist/services/price-rule.d.ts +0 -13
- package/dist/services/price-rule.js +0 -22
- package/dist/types/repositories/index.d.ts +0 -10
- package/dist/types/repositories/index.js +0 -26
- package/dist/types/repositories/money-amount.d.ts +0 -14
- package/dist/types/repositories/money-amount.js +0 -2
- package/dist/types/repositories/price-list-rule-value.d.ts +0 -10
- package/dist/types/repositories/price-list-rule-value.js +0 -2
- package/dist/types/repositories/price-list-rule.d.ts +0 -14
- package/dist/types/repositories/price-list-rule.js +0 -2
- package/dist/types/repositories/price-list.d.ts +0 -18
- package/dist/types/repositories/price-list.js +0 -2
- package/dist/types/repositories/price-rule.d.ts +0 -21
- package/dist/types/repositories/price-rule.js +0 -2
- package/dist/types/repositories/price-set-money-amount-rules.d.ts +0 -11
- package/dist/types/repositories/price-set-money-amount-rules.js +0 -2
- package/dist/types/repositories/price-set-money-amount.d.ts +0 -13
- package/dist/types/repositories/price-set-money-amount.js +0 -2
- package/dist/types/repositories/price-set-rule-type.d.ts +0 -10
- package/dist/types/repositories/price-set-rule-type.js +0 -2
- package/dist/types/repositories/price-set.d.ts +0 -5
- package/dist/types/repositories/price-set.js +0 -2
- package/dist/types/repositories/rule-type.d.ts +0 -12
- package/dist/types/repositories/rule-type.js +0 -2
- package/dist/types/services/money-amount.d.ts +0 -30
- package/dist/types/services/money-amount.js +0 -2
- package/dist/types/services/price-list-rule-value.d.ts +0 -21
- package/dist/types/services/price-list-rule-value.js +0 -2
- package/dist/types/services/price-list-rule.d.ts +0 -27
- package/dist/types/services/price-list-rule.js +0 -2
- package/dist/types/services/price-rule.d.ts +0 -42
- package/dist/types/services/price-rule.js +0 -2
- package/dist/types/services/price-set-money-amount-rules.d.ts +0 -24
- package/dist/types/services/price-set-money-amount-rules.js +0 -2
- package/dist/types/services/price-set-money-amount.d.ts +0 -32
- package/dist/types/services/price-set-money-amount.js +0 -2
- package/dist/types/services/price-set-rule-type.d.ts +0 -21
- package/dist/types/services/price-set-rule-type.js +0 -2
- package/dist/types/services/price-set.d.ts +0 -15
- package/dist/types/services/price-set.js +0 -2
- package/dist/types/services/pricing.d.ts +0 -20
- package/dist/types/services/pricing.js +0 -2
- package/dist/types/services/rule-type.d.ts +0 -32
- package/dist/types/services/rule-type.js +0 -2
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Context, DAL } from "@medusajs/types";
|
|
1
|
+
import { Context, DAL, PricingTypes } from "@medusajs/types";
|
|
2
2
|
import { RuleType } from "../models";
|
|
3
|
-
import { ServiceTypes } from "../types";
|
|
4
3
|
type InjectedDependencies = {
|
|
5
4
|
ruleTypeRepository: DAL.RepositoryService;
|
|
6
5
|
};
|
|
@@ -8,9 +7,9 @@ declare const RuleTypeService_base: new <TEntity_1 extends object = any>(contain
|
|
|
8
7
|
export default class RuleTypeService<TEntity extends RuleType = RuleType> extends RuleTypeService_base<TEntity> {
|
|
9
8
|
protected readonly ruleTypeRepository_: DAL.RepositoryService<TEntity>;
|
|
10
9
|
constructor({ ruleTypeRepository }: InjectedDependencies);
|
|
11
|
-
create(data:
|
|
12
|
-
create(data:
|
|
13
|
-
update(data:
|
|
14
|
-
update(data:
|
|
10
|
+
create(data: PricingTypes.CreateRuleTypeDTO, sharedContext: Context): Promise<TEntity>;
|
|
11
|
+
create(data: PricingTypes.CreateRuleTypeDTO[], sharedContext: Context): Promise<TEntity[]>;
|
|
12
|
+
update(data: PricingTypes.UpdateRuleTypeDTO[], sharedContext: Context): Promise<TEntity[]>;
|
|
13
|
+
update(data: PricingTypes.UpdateRuleTypeDTO, sharedContext: Context): Promise<TEntity>;
|
|
15
14
|
}
|
|
16
15
|
export {};
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -23,6 +23,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.ServiceTypes =
|
|
27
|
-
exports.RepositoryTypes = __importStar(require("./repositories"));
|
|
26
|
+
exports.ServiceTypes = void 0;
|
|
28
27
|
exports.ServiceTypes = __importStar(require("./services"));
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
export * from "./money-amount";
|
|
2
|
-
export * from "./price-list-rule-value";
|
|
3
|
-
export * from "./price-list-rule";
|
|
4
1
|
export * from "./price-list";
|
|
5
|
-
export * from "./price-rule";
|
|
6
|
-
export * from "./price-set-money-amount-rules";
|
|
7
|
-
export * from "./price-set-money-amount";
|
|
8
|
-
export * from "./price-set-rule-type";
|
|
9
|
-
export * from "./price-set";
|
|
10
|
-
export * from "./pricing";
|
|
11
|
-
export * from "./rule-type";
|
|
@@ -14,14 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./money-amount"), exports);
|
|
18
|
-
__exportStar(require("./price-list-rule-value"), exports);
|
|
19
|
-
__exportStar(require("./price-list-rule"), exports);
|
|
20
17
|
__exportStar(require("./price-list"), exports);
|
|
21
|
-
__exportStar(require("./price-rule"), exports);
|
|
22
|
-
__exportStar(require("./price-set-money-amount-rules"), exports);
|
|
23
|
-
__exportStar(require("./price-set-money-amount"), exports);
|
|
24
|
-
__exportStar(require("./price-set-rule-type"), exports);
|
|
25
|
-
__exportStar(require("./price-set"), exports);
|
|
26
|
-
__exportStar(require("./pricing"), exports);
|
|
27
|
-
__exportStar(require("./rule-type"), exports);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BaseFilterable, MoneyAmountDTO, PriceListRuleDTO, PriceSetMoneyAmountDTO, RuleTypeDTO } from "@medusajs/types";
|
|
2
1
|
import { PriceListStatus, PriceListType } from "@medusajs/utils";
|
|
3
2
|
export interface CreatePriceListDTO {
|
|
4
3
|
title: string;
|
|
@@ -17,23 +16,3 @@ export interface UpdatePriceListDTO {
|
|
|
17
16
|
status?: PriceListStatus;
|
|
18
17
|
number_rules?: number;
|
|
19
18
|
}
|
|
20
|
-
export interface PriceListDTO {
|
|
21
|
-
id: string;
|
|
22
|
-
title?: string;
|
|
23
|
-
starts_at?: string | null;
|
|
24
|
-
status?: PriceListStatus;
|
|
25
|
-
ends_at?: string | null;
|
|
26
|
-
number_rules?: number;
|
|
27
|
-
price_set_money_amounts?: PriceSetMoneyAmountDTO[];
|
|
28
|
-
money_amounts?: MoneyAmountDTO[];
|
|
29
|
-
rule_types?: RuleTypeDTO[];
|
|
30
|
-
rules?: PriceListRuleDTO[];
|
|
31
|
-
price_list_rules?: PriceListRuleDTO[];
|
|
32
|
-
}
|
|
33
|
-
export interface FilterablePriceListProps extends BaseFilterable<FilterablePriceListProps> {
|
|
34
|
-
id?: string[];
|
|
35
|
-
starts_at?: string[];
|
|
36
|
-
ends_at?: string[];
|
|
37
|
-
status?: PriceListStatus[];
|
|
38
|
-
number_rules?: number[];
|
|
39
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/pricing",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Medusa Pricing module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@mikro-orm/cli": "5.9.7",
|
|
41
41
|
"cross-env": "^5.2.1",
|
|
42
42
|
"jest": "^29.6.3",
|
|
43
|
-
"medusa-test-utils": "^1.1.
|
|
43
|
+
"medusa-test-utils": "^1.1.43",
|
|
44
44
|
"rimraf": "^3.0.2",
|
|
45
45
|
"ts-jest": "^29.1.1",
|
|
46
46
|
"ts-node": "^10.9.1",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"typescript": "^5.1.6"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@medusajs/modules-sdk": "^1.12.
|
|
52
|
-
"@medusajs/types": "^1.11.
|
|
53
|
-
"@medusajs/utils": "^1.11.
|
|
51
|
+
"@medusajs/modules-sdk": "^1.12.10",
|
|
52
|
+
"@medusajs/types": "^1.11.15",
|
|
53
|
+
"@medusajs/utils": "^1.11.8",
|
|
54
54
|
"@mikro-orm/core": "5.9.7",
|
|
55
55
|
"@mikro-orm/migrations": "5.9.7",
|
|
56
56
|
"@mikro-orm/postgresql": "5.9.7",
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Migration20231101232834 = void 0;
|
|
4
|
-
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
-
class Migration20231101232834 extends migrations_1.Migration {
|
|
6
|
-
async up() {
|
|
7
|
-
this.addSql('create table "price_list_rule_value" ("id" text not null, "value" text not null, "price_list_rule_id" text not null, constraint "price_list_rule_value_pkey" primary key ("id"));');
|
|
8
|
-
this.addSql('create index "IDX_price_list_rule_price_list_rule_value_id" on "price_list_rule_value" ("price_list_rule_id");');
|
|
9
|
-
this.addSql('alter table "price_list_rule_value" add constraint "price_list_rule_value_price_list_rule_id_foreign" foreign key ("price_list_rule_id") references "price_list_rule" ("id") on update cascade on delete cascade;');
|
|
10
|
-
this.addSql(`ALTER TABLE price_list
|
|
11
|
-
ADD COLUMN IF NOT EXISTS rules_count integer not null default 0`);
|
|
12
|
-
this.addSql('alter table "price_set_money_amount" drop constraint "price_set_money_amount_price_list_id_foreign";');
|
|
13
|
-
this.addSql('alter table "price_set_money_amount" add constraint "price_set_money_amount_price_list_id_foreign" foreign key ("price_list_id") references "price_list" ("id") on update cascade on delete cascade;');
|
|
14
|
-
this.addSql('alter table "price_list" add column if not exists "title" text, add column if not exists "name" text, add column if not exists "description" text not null, add column if not exists "type" text check ("type" in (\'sale\', \'override\')) not null default \'sale\', add column if not exists "created_at" timestamptz not null default now(), add column if not exists "updated_at" timestamptz not null default now(), add column if not exists "deleted_at" timestamptz null;');
|
|
15
|
-
this.addSql(`
|
|
16
|
-
UPDATE "price_list"
|
|
17
|
-
SET title = name
|
|
18
|
-
`);
|
|
19
|
-
this.addSql(`alter table "price_list" alter column "title" set not null `);
|
|
20
|
-
this.addSql('create index if not exists "IDX_price_list_deleted_at" on "price_list" ("deleted_at");');
|
|
21
|
-
this.addSql('alter table "price_list_rule" drop constraint if exists "IDX_price_list_rule_rule_type_id_price_list_id_unique"');
|
|
22
|
-
this.addSql('alter table "price_list_rule" add constraint "IDX_price_list_rule_rule_type_id_price_list_id_unique" unique ("price_list_id", "rule_type_id");');
|
|
23
|
-
this.addSql('alter table "money_amount" add column if not exists "created_at" timestamptz not null default now(), add column if not exists "updated_at" timestamptz not null default now(), add column if not exists "deleted_at" timestamptz null;');
|
|
24
|
-
this.addSql('create index if not exists "IDX_money_amount_deleted_at" on "money_amount" ("deleted_at");');
|
|
25
|
-
this.addSql('alter table "price_set_money_amount" add constraint "price_set_money_amount_money_amount_id_unique" unique ("money_amount_id");');
|
|
26
|
-
}
|
|
27
|
-
async down() {
|
|
28
|
-
this.addSql('drop table if exists "price_list_rule_value" cascade;');
|
|
29
|
-
this.addSql(`ALTER TABLE price_list DROP COLUMN IF EXISTS rules_count`);
|
|
30
|
-
this.addSql('alter table "price_list" drop column if exists "title";');
|
|
31
|
-
this.addSql('alter table "price_list" drop column if exists "description";');
|
|
32
|
-
this.addSql('alter table "price_list" drop column if exists "type";');
|
|
33
|
-
this.addSql('alter table "price_set_money_amount" drop constraint "price_set_money_amount_price_list_id_foreign";');
|
|
34
|
-
this.addSql('alter table "price_set_money_amount" add constraint "price_set_money_amount_price_list_id_foreign" foreign key ("price_list_id") references "price_list" ("id") on update cascade on delete set null;');
|
|
35
|
-
this.addSql('drop index if exists "IDX_price_list_deleted_at";');
|
|
36
|
-
this.addSql('alter table "price_list" drop column if exists "title";');
|
|
37
|
-
this.addSql('alter table "price_list" drop column if exists "description";');
|
|
38
|
-
this.addSql('alter table "price_list" drop column if exists "type";');
|
|
39
|
-
this.addSql('alter table "price_list" drop column if exists "created_at";');
|
|
40
|
-
this.addSql('alter table "price_list" drop column if exists "updated_at";');
|
|
41
|
-
this.addSql('alter table "price_list" drop column if exists "deleted_at";');
|
|
42
|
-
this.addSql('alter table "price_list_rule" drop constraint if exists "IDX_price_list_rule_rule_type_id_price_list_id_unique";');
|
|
43
|
-
this.addSql('drop index if exists "IDX_money_amount_deleted_at";');
|
|
44
|
-
this.addSql('alter table "money_amount" drop column if exists "created_at";');
|
|
45
|
-
this.addSql('alter table "money_amount" drop column if exists "updated_at";');
|
|
46
|
-
this.addSql('alter table "money_amount" drop column if exists "deleted_at";');
|
|
47
|
-
this.addSql('alter table "price_set_money_amount" drop constraint if exists "price_set_money_amount_money_amount_id_unique";');
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.Migration20231101232834 = Migration20231101232834;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Migration20240103140327 = void 0;
|
|
4
|
-
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
-
class Migration20240103140327 extends migrations_1.Migration {
|
|
6
|
-
async up() {
|
|
7
|
-
this.addSql('alter table "price_set_money_amount" drop constraint "price_set_money_amount_price_list_id_foreign";');
|
|
8
|
-
this.addSql('alter table "price_set_money_amount" add column "created_at" timestamptz not null default now(), add column "updated_at" timestamptz not null default now(), add column "deleted_at" timestamptz null;');
|
|
9
|
-
this.addSql('alter table "price_set_money_amount" add constraint "price_set_money_amount_price_list_id_foreign" foreign key ("price_list_id") references "price_list" ("id") on delete cascade;');
|
|
10
|
-
this.addSql('create index "IDX_price_set_money_amount_deleted_at" on "price_set_money_amount" ("deleted_at");');
|
|
11
|
-
this.addSql('alter table "price_rule" add column "created_at" timestamptz not null default now(), add column "updated_at" timestamptz not null default now(), add column "deleted_at" timestamptz null;');
|
|
12
|
-
this.addSql('alter table "price_rule" drop column "is_dynamic";');
|
|
13
|
-
this.addSql('create index "IDX_price_rule_deleted_at" on "price_rule" ("deleted_at");');
|
|
14
|
-
}
|
|
15
|
-
async down() {
|
|
16
|
-
this.addSql('alter table "price_set_money_amount" drop constraint "price_set_money_amount_price_list_id_foreign";');
|
|
17
|
-
this.addSql('drop index "IDX_price_set_money_amount_deleted_at";');
|
|
18
|
-
this.addSql('alter table "price_set_money_amount" drop column "created_at";');
|
|
19
|
-
this.addSql('alter table "price_set_money_amount" drop column "updated_at";');
|
|
20
|
-
this.addSql('alter table "price_set_money_amount" drop column "deleted_at";');
|
|
21
|
-
this.addSql('alter table "price_set_money_amount" add constraint "price_set_money_amount_price_list_id_foreign" foreign key ("price_list_id") references "price_list" ("id") on update cascade on delete cascade;');
|
|
22
|
-
this.addSql('alter table "price_rule" add column "is_dynamic" boolean not null default false;');
|
|
23
|
-
this.addSql('drop index "IDX_price_rule_deleted_at";');
|
|
24
|
-
this.addSql('alter table "price_rule" drop column "created_at";');
|
|
25
|
-
this.addSql('alter table "price_rule" drop column "updated_at";');
|
|
26
|
-
this.addSql('alter table "price_rule" drop column "deleted_at";');
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.Migration20240103140327 = Migration20240103140327;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Collection, OptionalProps } from "@mikro-orm/core";
|
|
2
|
-
import { PriceSetMoneyAmount } from "./index";
|
|
3
|
-
import PriceSet from "./price-set";
|
|
4
|
-
declare class MoneyAmount {
|
|
5
|
-
[OptionalProps]?: "created_at" | "updated_at" | "deleted_at" | "price_set_money_amount" | "amount";
|
|
6
|
-
id: string;
|
|
7
|
-
currency_code: string | null;
|
|
8
|
-
price_sets: Collection<PriceSet, object>;
|
|
9
|
-
price_set_money_amount: PriceSetMoneyAmount;
|
|
10
|
-
amount: number | null;
|
|
11
|
-
min_quantity: number | null;
|
|
12
|
-
max_quantity: number | null;
|
|
13
|
-
created_at: Date;
|
|
14
|
-
updated_at: Date;
|
|
15
|
-
deleted_at: Date | null;
|
|
16
|
-
onCreate(): void;
|
|
17
|
-
onInit(): void;
|
|
18
|
-
}
|
|
19
|
-
export default MoneyAmount;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const utils_1 = require("@medusajs/utils");
|
|
16
|
-
const core_1 = require("@mikro-orm/core");
|
|
17
|
-
const index_1 = require("./index");
|
|
18
|
-
const price_set_1 = __importDefault(require("./price-set"));
|
|
19
|
-
let MoneyAmount = class MoneyAmount {
|
|
20
|
-
constructor() {
|
|
21
|
-
this.price_sets = new core_1.Collection(this);
|
|
22
|
-
}
|
|
23
|
-
onCreate() {
|
|
24
|
-
this.id = (0, utils_1.generateEntityId)(this.id, "ma");
|
|
25
|
-
}
|
|
26
|
-
onInit() {
|
|
27
|
-
this.id = (0, utils_1.generateEntityId)(this.id, "ma");
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, core_1.PrimaryKey)({ columnType: "text" }),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], MoneyAmount.prototype, "id", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, core_1.Property)({
|
|
36
|
-
columnType: "text",
|
|
37
|
-
nullable: true,
|
|
38
|
-
index: "IDX_money_amount_currency_code",
|
|
39
|
-
}),
|
|
40
|
-
__metadata("design:type", Object)
|
|
41
|
-
], MoneyAmount.prototype, "currency_code", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, core_1.ManyToMany)({
|
|
44
|
-
entity: () => price_set_1.default,
|
|
45
|
-
mappedBy: (ps) => ps.money_amounts,
|
|
46
|
-
}),
|
|
47
|
-
__metadata("design:type", Object)
|
|
48
|
-
], MoneyAmount.prototype, "price_sets", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, core_1.OneToOne)({
|
|
51
|
-
entity: () => index_1.PriceSetMoneyAmount,
|
|
52
|
-
mappedBy: (psma) => psma.money_amount,
|
|
53
|
-
cascade: ["soft-remove"],
|
|
54
|
-
}),
|
|
55
|
-
__metadata("design:type", index_1.PriceSetMoneyAmount)
|
|
56
|
-
], MoneyAmount.prototype, "price_set_money_amount", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, core_1.Property)({
|
|
59
|
-
columnType: "numeric",
|
|
60
|
-
nullable: true,
|
|
61
|
-
serializer: Number,
|
|
62
|
-
}),
|
|
63
|
-
__metadata("design:type", Object)
|
|
64
|
-
], MoneyAmount.prototype, "amount", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, core_1.Property)({ columnType: "numeric", nullable: true }),
|
|
67
|
-
__metadata("design:type", Object)
|
|
68
|
-
], MoneyAmount.prototype, "min_quantity", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, core_1.Property)({ columnType: "numeric", nullable: true }),
|
|
71
|
-
__metadata("design:type", Object)
|
|
72
|
-
], MoneyAmount.prototype, "max_quantity", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, core_1.Property)({
|
|
75
|
-
onCreate: () => new Date(),
|
|
76
|
-
columnType: "timestamptz",
|
|
77
|
-
defaultRaw: "now()",
|
|
78
|
-
}),
|
|
79
|
-
__metadata("design:type", Date)
|
|
80
|
-
], MoneyAmount.prototype, "created_at", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, core_1.Property)({
|
|
83
|
-
onCreate: () => new Date(),
|
|
84
|
-
onUpdate: () => new Date(),
|
|
85
|
-
columnType: "timestamptz",
|
|
86
|
-
defaultRaw: "now()",
|
|
87
|
-
}),
|
|
88
|
-
__metadata("design:type", Date)
|
|
89
|
-
], MoneyAmount.prototype, "updated_at", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
(0, core_1.Index)({ name: "IDX_money_amount_deleted_at" }),
|
|
92
|
-
(0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
|
|
93
|
-
__metadata("design:type", Object)
|
|
94
|
-
], MoneyAmount.prototype, "deleted_at", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
(0, core_1.BeforeCreate)(),
|
|
97
|
-
__metadata("design:type", Function),
|
|
98
|
-
__metadata("design:paramtypes", []),
|
|
99
|
-
__metadata("design:returntype", void 0)
|
|
100
|
-
], MoneyAmount.prototype, "onCreate", null);
|
|
101
|
-
__decorate([
|
|
102
|
-
(0, core_1.OnInit)(),
|
|
103
|
-
__metadata("design:type", Function),
|
|
104
|
-
__metadata("design:paramtypes", []),
|
|
105
|
-
__metadata("design:returntype", void 0)
|
|
106
|
-
], MoneyAmount.prototype, "onInit", null);
|
|
107
|
-
MoneyAmount = __decorate([
|
|
108
|
-
(0, core_1.Entity)(),
|
|
109
|
-
(0, core_1.Filter)(utils_1.DALUtils.mikroOrmSoftDeletableFilterOptions)
|
|
110
|
-
], MoneyAmount);
|
|
111
|
-
exports.default = MoneyAmount;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import PriceSetMoneyAmount from "./price-set-money-amount";
|
|
2
|
-
import RuleType from "./rule-type";
|
|
3
|
-
export default class PriceSetMoneyAmountRules {
|
|
4
|
-
id: string;
|
|
5
|
-
price_set_money_amount: PriceSetMoneyAmount;
|
|
6
|
-
rule_type: RuleType;
|
|
7
|
-
value: string;
|
|
8
|
-
onCreate(): void;
|
|
9
|
-
onInit(): void;
|
|
10
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const utils_1 = require("@medusajs/utils");
|
|
16
|
-
const core_1 = require("@mikro-orm/core");
|
|
17
|
-
const price_set_money_amount_1 = __importDefault(require("./price-set-money-amount"));
|
|
18
|
-
const rule_type_1 = __importDefault(require("./rule-type"));
|
|
19
|
-
let PriceSetMoneyAmountRules = class PriceSetMoneyAmountRules {
|
|
20
|
-
onCreate() {
|
|
21
|
-
this.id = (0, utils_1.generateEntityId)(this.id, "psmar");
|
|
22
|
-
}
|
|
23
|
-
onInit() {
|
|
24
|
-
this.id = (0, utils_1.generateEntityId)(this.id, "psmar");
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, core_1.PrimaryKey)({ columnType: "text" }),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], PriceSetMoneyAmountRules.prototype, "id", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, core_1.ManyToOne)(() => price_set_money_amount_1.default, {
|
|
33
|
-
onDelete: "cascade",
|
|
34
|
-
index: "IDX_price_set_money_amount_rules_price_set_money_amount_id",
|
|
35
|
-
}),
|
|
36
|
-
__metadata("design:type", price_set_money_amount_1.default)
|
|
37
|
-
], PriceSetMoneyAmountRules.prototype, "price_set_money_amount", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, core_1.ManyToOne)(() => rule_type_1.default, {
|
|
40
|
-
index: "IDX_price_set_money_amount_rules_rule_type_id",
|
|
41
|
-
}),
|
|
42
|
-
__metadata("design:type", rule_type_1.default)
|
|
43
|
-
], PriceSetMoneyAmountRules.prototype, "rule_type", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, core_1.Property)({ columnType: "text" }),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], PriceSetMoneyAmountRules.prototype, "value", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, core_1.BeforeCreate)(),
|
|
50
|
-
__metadata("design:type", Function),
|
|
51
|
-
__metadata("design:paramtypes", []),
|
|
52
|
-
__metadata("design:returntype", void 0)
|
|
53
|
-
], PriceSetMoneyAmountRules.prototype, "onCreate", null);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, core_1.OnInit)(),
|
|
56
|
-
__metadata("design:type", Function),
|
|
57
|
-
__metadata("design:paramtypes", []),
|
|
58
|
-
__metadata("design:returntype", void 0)
|
|
59
|
-
], PriceSetMoneyAmountRules.prototype, "onInit", null);
|
|
60
|
-
PriceSetMoneyAmountRules = __decorate([
|
|
61
|
-
(0, core_1.Entity)()
|
|
62
|
-
], PriceSetMoneyAmountRules);
|
|
63
|
-
exports.default = PriceSetMoneyAmountRules;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Collection, OptionalProps, PrimaryKeyType } from "@mikro-orm/core";
|
|
2
|
-
import MoneyAmount from "./money-amount";
|
|
3
|
-
import PriceList from "./price-list";
|
|
4
|
-
import PriceRule from "./price-rule";
|
|
5
|
-
import PriceSet from "./price-set";
|
|
6
|
-
import PriceSetMoneyAmountRules from "./price-set-money-amount-rules";
|
|
7
|
-
export default class PriceSetMoneyAmount {
|
|
8
|
-
[OptionalProps]?: "created_at" | "updated_at" | "deleted_at";
|
|
9
|
-
id: string;
|
|
10
|
-
title: string;
|
|
11
|
-
price_set: PriceSet;
|
|
12
|
-
money_amount: MoneyAmount;
|
|
13
|
-
rules_count: number;
|
|
14
|
-
price_rules: Collection<PriceRule, object>;
|
|
15
|
-
price_set_money_amount_rules: Collection<PriceSetMoneyAmountRules, object>;
|
|
16
|
-
price_list: PriceList | null;
|
|
17
|
-
created_at: Date;
|
|
18
|
-
updated_at: Date;
|
|
19
|
-
deleted_at: Date | null;
|
|
20
|
-
onCreate(): void;
|
|
21
|
-
onInit(): void;
|
|
22
|
-
[PrimaryKeyType]?: [string, string];
|
|
23
|
-
constructor(money_amount: MoneyAmount, price_set: PriceSet);
|
|
24
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const core_1 = require("@mikro-orm/core");
|
|
16
|
-
const utils_1 = require("@medusajs/utils");
|
|
17
|
-
const money_amount_1 = __importDefault(require("./money-amount"));
|
|
18
|
-
const price_list_1 = __importDefault(require("./price-list"));
|
|
19
|
-
const price_rule_1 = __importDefault(require("./price-rule"));
|
|
20
|
-
const price_set_1 = __importDefault(require("./price-set"));
|
|
21
|
-
const price_set_money_amount_rules_1 = __importDefault(require("./price-set-money-amount-rules"));
|
|
22
|
-
let PriceSetMoneyAmount = class PriceSetMoneyAmount {
|
|
23
|
-
onCreate() {
|
|
24
|
-
this.id = (0, utils_1.generateEntityId)(this.id, "psma");
|
|
25
|
-
}
|
|
26
|
-
onInit() {
|
|
27
|
-
this.id = (0, utils_1.generateEntityId)(this.id, "psma");
|
|
28
|
-
}
|
|
29
|
-
constructor(money_amount, price_set) {
|
|
30
|
-
this.price_rules = new core_1.Collection(this);
|
|
31
|
-
this.price_set_money_amount_rules = new core_1.Collection(this);
|
|
32
|
-
this.money_amount = money_amount;
|
|
33
|
-
this.price_set = price_set;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, core_1.PrimaryKey)({ columnType: "text" }),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], PriceSetMoneyAmount.prototype, "id", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, core_1.Property)({ columnType: "text" }),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], PriceSetMoneyAmount.prototype, "title", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, core_1.ManyToOne)(() => price_set_1.default, {
|
|
46
|
-
onDelete: "cascade",
|
|
47
|
-
index: "IDX_price_set_money_amount_price_set_id",
|
|
48
|
-
}),
|
|
49
|
-
__metadata("design:type", price_set_1.default)
|
|
50
|
-
], PriceSetMoneyAmount.prototype, "price_set", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, core_1.OneToOne)(() => money_amount_1.default, {
|
|
53
|
-
onDelete: "cascade",
|
|
54
|
-
index: "IDX_price_set_money_amount_money_amount_id",
|
|
55
|
-
}),
|
|
56
|
-
__metadata("design:type", money_amount_1.default)
|
|
57
|
-
], PriceSetMoneyAmount.prototype, "money_amount", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, core_1.Property)({ columnType: "integer", default: 0 }),
|
|
60
|
-
__metadata("design:type", Number)
|
|
61
|
-
], PriceSetMoneyAmount.prototype, "rules_count", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, core_1.OneToMany)({
|
|
64
|
-
entity: () => price_rule_1.default,
|
|
65
|
-
mappedBy: (pr) => pr.price_set_money_amount,
|
|
66
|
-
cascade: ["soft-remove"],
|
|
67
|
-
}),
|
|
68
|
-
__metadata("design:type", Object)
|
|
69
|
-
], PriceSetMoneyAmount.prototype, "price_rules", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, core_1.OneToMany)({
|
|
72
|
-
entity: () => price_set_money_amount_rules_1.default,
|
|
73
|
-
mappedBy: (psmar) => psmar.price_set_money_amount,
|
|
74
|
-
}),
|
|
75
|
-
__metadata("design:type", Object)
|
|
76
|
-
], PriceSetMoneyAmount.prototype, "price_set_money_amount_rules", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, core_1.ManyToOne)(() => price_list_1.default, {
|
|
79
|
-
index: "IDX_price_rule_price_list_id",
|
|
80
|
-
onDelete: "cascade",
|
|
81
|
-
cascade: [core_1.Cascade.REMOVE, "soft-remove"],
|
|
82
|
-
nullable: true,
|
|
83
|
-
}),
|
|
84
|
-
__metadata("design:type", Object)
|
|
85
|
-
], PriceSetMoneyAmount.prototype, "price_list", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, core_1.Property)({
|
|
88
|
-
onCreate: () => new Date(),
|
|
89
|
-
columnType: "timestamptz",
|
|
90
|
-
defaultRaw: "now()",
|
|
91
|
-
}),
|
|
92
|
-
__metadata("design:type", Date)
|
|
93
|
-
], PriceSetMoneyAmount.prototype, "created_at", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
(0, core_1.Property)({
|
|
96
|
-
onCreate: () => new Date(),
|
|
97
|
-
onUpdate: () => new Date(),
|
|
98
|
-
columnType: "timestamptz",
|
|
99
|
-
defaultRaw: "now()",
|
|
100
|
-
}),
|
|
101
|
-
__metadata("design:type", Date)
|
|
102
|
-
], PriceSetMoneyAmount.prototype, "updated_at", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
(0, core_1.Property)({
|
|
105
|
-
columnType: "timestamptz",
|
|
106
|
-
nullable: true,
|
|
107
|
-
index: "IDX_price_set_money_amount_deleted_at",
|
|
108
|
-
}),
|
|
109
|
-
__metadata("design:type", Object)
|
|
110
|
-
], PriceSetMoneyAmount.prototype, "deleted_at", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
(0, core_1.BeforeCreate)(),
|
|
113
|
-
__metadata("design:type", Function),
|
|
114
|
-
__metadata("design:paramtypes", []),
|
|
115
|
-
__metadata("design:returntype", void 0)
|
|
116
|
-
], PriceSetMoneyAmount.prototype, "onCreate", null);
|
|
117
|
-
__decorate([
|
|
118
|
-
(0, core_1.OnInit)(),
|
|
119
|
-
__metadata("design:type", Function),
|
|
120
|
-
__metadata("design:paramtypes", []),
|
|
121
|
-
__metadata("design:returntype", void 0)
|
|
122
|
-
], PriceSetMoneyAmount.prototype, "onInit", null);
|
|
123
|
-
PriceSetMoneyAmount = __decorate([
|
|
124
|
-
(0, core_1.Entity)(),
|
|
125
|
-
(0, core_1.Filter)(utils_1.DALUtils.mikroOrmSoftDeletableFilterOptions),
|
|
126
|
-
__metadata("design:paramtypes", [money_amount_1.default, price_set_1.default])
|
|
127
|
-
], PriceSetMoneyAmount);
|
|
128
|
-
exports.default = PriceSetMoneyAmount;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Context, DAL } from "@medusajs/types";
|
|
2
|
-
import { PriceListRuleValue } from "../models";
|
|
3
|
-
import { ServiceTypes } from "../types";
|
|
4
|
-
type InjectedDependencies = {
|
|
5
|
-
priceListRuleValueRepository: DAL.RepositoryService;
|
|
6
|
-
};
|
|
7
|
-
declare const PriceListRuleValueService_base: new <TEntity_1 extends object = any>(container: InjectedDependencies) => import("@medusajs/types").InternalModuleService<TEntity_1, InjectedDependencies>;
|
|
8
|
-
export default class PriceListRuleValueService<TEntity extends PriceListRuleValue = PriceListRuleValue> extends PriceListRuleValueService_base<TEntity> {
|
|
9
|
-
constructor(container: InjectedDependencies);
|
|
10
|
-
create(data: ServiceTypes.CreatePriceListRuleValueDTO[], context: Context): Promise<TEntity[]>;
|
|
11
|
-
create(data: ServiceTypes.CreatePriceListRuleValueDTO, context: Context): Promise<TEntity>;
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const utils_1 = require("@medusajs/utils");
|
|
4
|
-
const _models_1 = require("../models");
|
|
5
|
-
class PriceListRuleValueService extends utils_1.ModulesSdkUtils.internalModuleServiceFactory(_models_1.PriceListRuleValue) {
|
|
6
|
-
constructor(container) {
|
|
7
|
-
// @ts-ignore
|
|
8
|
-
super(...arguments);
|
|
9
|
-
}
|
|
10
|
-
async create(data, context = {}) {
|
|
11
|
-
const data_ = Array.isArray(data) ? data : [data];
|
|
12
|
-
const priceListRuleValues = data_.map((priceRuleValueData) => {
|
|
13
|
-
const { price_list_rule_id: priceListRuleId, ...priceRuleValue } = priceRuleValueData;
|
|
14
|
-
if (priceListRuleId) {
|
|
15
|
-
priceRuleValue.price_list_rule = priceListRuleId;
|
|
16
|
-
}
|
|
17
|
-
return priceRuleValue;
|
|
18
|
-
});
|
|
19
|
-
return await super.create(priceListRuleValues, context);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.default = PriceListRuleValueService;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Context, DAL } from "@medusajs/types";
|
|
2
|
-
import { PriceListRule } from "../models";
|
|
3
|
-
import { ServiceTypes } from "../types";
|
|
4
|
-
type InjectedDependencies = {
|
|
5
|
-
priceListRuleRepository: DAL.RepositoryService;
|
|
6
|
-
};
|
|
7
|
-
declare const PriceListRuleService_base: new <TEntity_1 extends object = any>(container: InjectedDependencies) => import("@medusajs/types").InternalModuleService<TEntity_1, InjectedDependencies>;
|
|
8
|
-
export default class PriceListRuleService<TEntity extends PriceListRule = PriceListRule> extends PriceListRuleService_base<TEntity> {
|
|
9
|
-
constructor(container: InjectedDependencies);
|
|
10
|
-
create(data: ServiceTypes.CreatePriceListRuleDTO[], sharedContext?: Context): Promise<TEntity[]>;
|
|
11
|
-
create(data: ServiceTypes.CreatePriceListRuleDTO, sharedContext?: Context): Promise<TEntity>;
|
|
12
|
-
update(data: ServiceTypes.UpdatePriceListRuleDTO[], context: Context): Promise<TEntity[]>;
|
|
13
|
-
update(data: ServiceTypes.UpdatePriceListRuleDTO, context: Context): Promise<TEntity>;
|
|
14
|
-
}
|
|
15
|
-
export {};
|