@medusajs/sales-channel 2.1.1-preview-20241205120152 → 2.1.1-preview-20241205180149

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,18 +1,15 @@
1
- import { DAL } from "@medusajs/framework/types";
2
- import { OptionalProps } from "@mikro-orm/core";
3
- type SalesChannelOptionalProps = "is_disabled" | DAL.ModelDateColumns;
4
- export default class SalesChannel {
5
- [OptionalProps]?: SalesChannelOptionalProps;
6
- id: string;
7
- name: string;
8
- description: string | null;
9
- is_disabled: boolean;
10
- created_at: Date;
11
- metadata: Record<string, unknown> | null;
12
- updated_at: Date;
13
- deleted_at: Date | null;
14
- onCreate(): void;
15
- onInit(): void;
16
- }
17
- export {};
1
+ declare const SalesChannel: 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
+ description: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
5
+ is_disabled: import("@medusajs/framework/utils").BooleanProperty;
6
+ metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
7
+ } & {
8
+ id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
9
+ name: import("@medusajs/framework/utils").TextProperty;
10
+ description: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
11
+ is_disabled: import("@medusajs/framework/utils").BooleanProperty;
12
+ metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
13
+ } & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, "SalesChannel">;
14
+ export default SalesChannel;
18
15
  //# sourceMappingURL=sales-channel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sales-channel.d.ts","sourceRoot":"","sources":["../../src/models/sales-channel.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAA;AAC/C,OAAO,EAML,aAAa,EAGd,MAAM,iBAAiB,CAAA;AAExB,KAAK,yBAAyB,GAAG,aAAa,GAAG,GAAG,CAAC,gBAAgB,CAAA;AAIrE,MAAM,CAAC,OAAO,OAAO,YAAY;IAC/B,CAAC,aAAa,CAAC,CAAC,EAAE,yBAAyB,CAAA;IAG3C,EAAE,EAAG,MAAM,CAAA;IAIX,IAAI,EAAG,MAAM,CAAA;IAIb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAO;IAGjC,WAAW,EAAE,OAAO,CAAQ;IAO5B,UAAU,EAAE,IAAI,CAAA;IAGhB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAQ/C,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAKR,MAAM;CAGP"}
1
+ {"version":3,"file":"sales-channel.d.ts","sourceRoot":"","sources":["../../src/models/sales-channel.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY;;;;;;;;;;;;+EAMhB,CAAA;AAEF,eAAe,YAAY,CAAA"}
@@ -1,89 +1,12 @@
1
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
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  const utils_1 = require("@medusajs/framework/utils");
13
- const core_1 = require("@mikro-orm/core");
14
- let SalesChannel = class SalesChannel {
15
- constructor() {
16
- this.description = null;
17
- this.is_disabled = false;
18
- this.metadata = null;
19
- this.deleted_at = null;
20
- }
21
- onCreate() {
22
- this.id = (0, utils_1.generateEntityId)(this.id, "sc");
23
- }
24
- onInit() {
25
- this.id = (0, utils_1.generateEntityId)(this.id, "sc");
26
- }
27
- };
28
- __decorate([
29
- (0, core_1.PrimaryKey)({ columnType: "text" }),
30
- __metadata("design:type", String)
31
- ], SalesChannel.prototype, "id", void 0);
32
- __decorate([
33
- (0, utils_1.Searchable)(),
34
- (0, core_1.Property)({ columnType: "text" }),
35
- __metadata("design:type", String)
36
- ], SalesChannel.prototype, "name", void 0);
37
- __decorate([
38
- (0, utils_1.Searchable)(),
39
- (0, core_1.Property)({ columnType: "text", nullable: true }),
40
- __metadata("design:type", Object)
41
- ], SalesChannel.prototype, "description", void 0);
42
- __decorate([
43
- (0, core_1.Property)({ columnType: "boolean", default: false }),
44
- __metadata("design:type", Boolean)
45
- ], SalesChannel.prototype, "is_disabled", void 0);
46
- __decorate([
47
- (0, core_1.Property)({
48
- onCreate: () => new Date(),
49
- columnType: "timestamptz",
50
- defaultRaw: "now()",
51
- }),
52
- __metadata("design:type", Date)
53
- ], SalesChannel.prototype, "created_at", void 0);
54
- __decorate([
55
- (0, core_1.Property)({ columnType: "jsonb", nullable: true }),
56
- __metadata("design:type", Object)
57
- ], SalesChannel.prototype, "metadata", void 0);
58
- __decorate([
59
- (0, core_1.Property)({
60
- onCreate: () => new Date(),
61
- onUpdate: () => new Date(),
62
- columnType: "timestamptz",
63
- defaultRaw: "now()",
64
- }),
65
- __metadata("design:type", Date)
66
- ], SalesChannel.prototype, "updated_at", void 0);
67
- __decorate([
68
- (0, core_1.Index)({ name: "IDX_sales_channel_deleted_at" }),
69
- (0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
70
- __metadata("design:type", Object)
71
- ], SalesChannel.prototype, "deleted_at", void 0);
72
- __decorate([
73
- (0, core_1.BeforeCreate)(),
74
- __metadata("design:type", Function),
75
- __metadata("design:paramtypes", []),
76
- __metadata("design:returntype", void 0)
77
- ], SalesChannel.prototype, "onCreate", null);
78
- __decorate([
79
- (0, core_1.OnInit)(),
80
- __metadata("design:type", Function),
81
- __metadata("design:paramtypes", []),
82
- __metadata("design:returntype", void 0)
83
- ], SalesChannel.prototype, "onInit", null);
84
- SalesChannel = __decorate([
85
- (0, core_1.Entity)(),
86
- (0, core_1.Filter)(utils_1.DALUtils.mikroOrmSoftDeletableFilterOptions)
87
- ], SalesChannel);
4
+ const SalesChannel = utils_1.model.define("SalesChannel", {
5
+ id: utils_1.model.id({ prefix: "sc" }).primaryKey(),
6
+ name: utils_1.model.text().searchable(),
7
+ description: utils_1.model.text().searchable().nullable(),
8
+ is_disabled: utils_1.model.boolean().default(false),
9
+ metadata: utils_1.model.json().nullable(),
10
+ });
88
11
  exports.default = SalesChannel;
89
12
  //# sourceMappingURL=sales-channel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sales-channel.js","sourceRoot":"","sources":["../../src/models/sales-channel.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qDAIkC;AAGlC,0CASwB;AAMT,IAAM,YAAY,GAAlB,MAAM,YAAY;IAAlB;QAYb,gBAAW,GAAkB,IAAI,CAAA;QAGjC,gBAAW,GAAY,KAAK,CAAA;QAU5B,aAAQ,GAAmC,IAAI,CAAA;QAY/C,eAAU,GAAgB,IAAI,CAAA;IAWhC,CAAC;IARC,QAAQ;QACN,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;IAC3C,CAAC;IAGD,MAAM;QACJ,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;IAC3C,CAAC;CACF,CAAA;AA5CC;IADC,IAAA,iBAA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kBAhDoB,YAAY"}
1
+ {"version":3,"file":"sales-channel.js","sourceRoot":"","sources":["../../src/models/sales-channel.ts"],"names":[],"mappings":";;AAAA,qDAAiD;AAEjD,MAAM,YAAY,GAAG,aAAK,CAAC,MAAM,CAAC,cAAc,EAAE;IAChD,EAAE,EAAE,aAAK,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,UAAU,EAAE;IAC3C,IAAI,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE;IAC/B,WAAW,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE;IACjD,WAAW,EAAE,aAAK,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAC3C,QAAQ,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAA;AAEF,kBAAe,YAAY,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Context, CreateSalesChannelDTO, DAL, FilterableSalesChannelProps, InternalModuleDeclaration, ISalesChannelModuleService, ModuleJoinerConfig, ModulesSdkTypes, SalesChannelDTO, UpdateSalesChannelDTO, UpsertSalesChannelDTO } from "@medusajs/framework/types";
1
+ import { Context, CreateSalesChannelDTO, DAL, FilterableSalesChannelProps, InferEntityType, InternalModuleDeclaration, ISalesChannelModuleService, ModuleJoinerConfig, ModulesSdkTypes, SalesChannelDTO, UpdateSalesChannelDTO, UpsertSalesChannelDTO } from "@medusajs/framework/types";
2
2
  import { SalesChannel } from "../models";
3
3
  type InjectedDependencies = {
4
4
  baseRepository: DAL.RepositoryService;
@@ -12,15 +12,24 @@ declare const SalesChannelModuleService_base: import("@medusajs/framework/utils"
12
12
  export default class SalesChannelModuleService extends SalesChannelModuleService_base implements ISalesChannelModuleService {
13
13
  protected readonly moduleDeclaration: InternalModuleDeclaration;
14
14
  protected baseRepository_: DAL.RepositoryService;
15
- protected readonly salesChannelService_: ModulesSdkTypes.IMedusaInternalService<SalesChannel>;
15
+ protected readonly salesChannelService_: ModulesSdkTypes.IMedusaInternalService<InferEntityType<typeof SalesChannel>>;
16
16
  constructor({ baseRepository, salesChannelService }: InjectedDependencies, moduleDeclaration: InternalModuleDeclaration);
17
17
  __joinerConfig(): ModuleJoinerConfig;
18
18
  createSalesChannels(data: CreateSalesChannelDTO[], sharedContext?: Context): Promise<SalesChannelDTO[]>;
19
19
  createSalesChannels(data: CreateSalesChannelDTO, sharedContext?: Context): Promise<SalesChannelDTO>;
20
- createSalesChannels_(data: CreateSalesChannelDTO[], sharedContext: Context): Promise<SalesChannel[]>;
20
+ createSalesChannels_(data: CreateSalesChannelDTO[], sharedContext: Context): Promise<InferEntityType<typeof SalesChannel>[]>;
21
21
  updateSalesChannels(id: string, data: UpdateSalesChannelDTO, sharedContext?: Context): Promise<SalesChannelDTO>;
22
22
  updateSalesChannels(selector: FilterableSalesChannelProps, data: UpdateSalesChannelDTO, sharedContext?: Context): Promise<SalesChannelDTO[]>;
23
- updateSalesChannels_(data: UpdateSalesChannelDTO[], sharedContext: Context): Promise<SalesChannel[]>;
23
+ updateSalesChannels_(data: UpdateSalesChannelDTO[], sharedContext: Context): Promise<{
24
+ id: string;
25
+ name: string;
26
+ description: string | null;
27
+ is_disabled: boolean;
28
+ metadata: Record<string, unknown> | null;
29
+ created_at: Date;
30
+ updated_at: Date;
31
+ deleted_at: Date | null;
32
+ }[]>;
24
33
  upsertSalesChannels(data: UpsertSalesChannelDTO[], sharedContext?: Context): Promise<SalesChannelDTO[]>;
25
34
  upsertSalesChannels(data: UpsertSalesChannelDTO, sharedContext?: Context): Promise<SalesChannelDTO>;
26
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sales-channel-module.d.ts","sourceRoot":"","sources":["../../src/services/sales-channel-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,qBAAqB,EACrB,GAAG,EACH,2BAA2B,EAC3B,yBAAyB,EACzB,0BAA0B,EAC1B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AAE,oBAAoB,EAC1C,iBAAiB,EAAE,yBAAyB;IAQjE,cAAc,IAAI,kBAAkB;IAK9B,mBAAmB,CACvB,IAAI,EAAE,qBAAqB,EAAE,EAC7B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,eAAe,EAAE,CAAC;IACvB,mBAAmB,CACvB,IAAI,EAAE,qBAAqB,EAC3B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,eAAe,CAAC;IAoBrB,oBAAoB,CACxB,IAAI,EAAE,qBAAqB,EAAE,EACZ,aAAa,EAAE,OAAO,GACtC,OAAO,CAAC,eAAe,CAAC,OAAO,YAAY,CAAC,EAAE,CAAC;IAK5C,mBAAmB,CACvB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,qBAAqB,EAC3B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,eAAe,CAAC;IACrB,mBAAmB,CACvB,QAAQ,EAAE,2BAA2B,EACrC,IAAI,EAAE,qBAAqB,EAC3B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,eAAe,EAAE,CAAC;IAsCvB,oBAAoB,CACxB,IAAI,EAAE,qBAAqB,EAAE,EAC7B,aAAa,EAAE,OAAO;;;;;;;;;;IAKlB,mBAAmB,CACvB,IAAI,EAAE,qBAAqB,EAAE,EAC7B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,eAAe,EAAE,CAAC;IACvB,mBAAmB,CACvB,IAAI,EAAE,qBAAqB,EAC3B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,eAAe,CAAC;CA4B5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"sales-channel-module.js","sourceRoot":"","sources":["../../src/services/sales-channel-module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAaA,qDAOkC;AAElC,qCAAsC;AAEtC,sDAAgD;AAOhD,MAAqB,yBACnB,SAAQ,IAAA,qBAAa,EAA6C;IAChE,YAAY,EAAZ,sBAAY;CACb,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,CAAC,oBAAoB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC,CAAA;QACtE,CAAC;QACD,IAAI,SAAS,CAAC,MAAM,EAAE,CAAC;YACrB,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC,CAAA;QACtE,CAAC;QAED,MAAM,MAAM,GAAG,CAAC,MAAM,IAAA,kBAAU,EAAC,UAAU,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;QACpD,OAAO,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAEzC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;IAC7C,CAAC;CACF;AAtJD,4CAsJC;AAlHO;IADL,IAAA,qBAAa,GAAE;IAGb,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;oEAYjB;AAGK;IADL,IAAA,gCAAwB,GAAE;IAGxB,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;qEAGjB;AAeK;IADL,IAAA,qBAAa,GAAE;IAIb,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;oEA6BjB;AAGK;IADL,IAAA,gCAAwB,GAAE;;;;qEAM1B;AAWK;IADL,IAAA,gCAAwB,GAAE;IAGxB,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;oEAuBjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/sales-channel",
3
- "version": "2.1.1-preview-20241205120152",
3
+ "version": "2.1.1-preview-20241205180149",
4
4
  "description": "Medusa Sales Channel module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -36,8 +36,8 @@
36
36
  "orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts medusa-mikro-orm cache:clear"
37
37
  },
38
38
  "devDependencies": {
39
- "@medusajs/framework": "2.1.1-preview-20241205120152",
40
- "@medusajs/test-utils": "2.1.1-preview-20241205120152",
39
+ "@medusajs/framework": "2.1.1-preview-20241205180149",
40
+ "@medusajs/test-utils": "2.1.1-preview-20241205180149",
41
41
  "@mikro-orm/cli": "5.9.7",
42
42
  "@mikro-orm/core": "5.9.7",
43
43
  "@mikro-orm/migrations": "5.9.7",
@@ -50,7 +50,7 @@
50
50
  "typescript": "^5.6.2"
51
51
  },
52
52
  "peerDependencies": {
53
- "@medusajs/framework": "2.1.1-preview-20241205120152",
53
+ "@medusajs/framework": "2.1.1-preview-20241205180149",
54
54
  "@mikro-orm/core": "5.9.7",
55
55
  "@mikro-orm/migrations": "5.9.7",
56
56
  "@mikro-orm/postgresql": "5.9.7",