@aurispec/core-backend 1.0.20 → 1.0.21
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/common/enums/MarketplaceEnum.d.ts +4 -0
- package/dist/common/enums/MarketplaceEnum.d.ts.map +1 -1
- package/dist/common/enums/MarketplaceEnum.js +6 -1
- package/dist/models/BusinessServiceModel.d.ts +2 -0
- package/dist/models/BusinessServiceModel.d.ts.map +1 -1
- package/dist/models/BusinessServiceModel.js +10 -0
- package/dist/models/ProductModel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarketplaceEnum.d.ts","sourceRoot":"","sources":["../../../src/common/enums/MarketplaceEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,KAAK,UAAU;IACf,SAAS,cAAc;CAC1B;AAED,oBAAY,cAAc;IACtB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,WAAW;CACpB"}
|
|
1
|
+
{"version":3,"file":"MarketplaceEnum.d.ts","sourceRoot":"","sources":["../../../src/common/enums/MarketplaceEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,KAAK,UAAU;IACf,SAAS,cAAc;CAC1B;AAED,oBAAY,cAAc;IACtB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,WAAW;CACpB;AAED,oBAAY,aAAa;IACrB,KAAK,UAAU;IACf,SAAS,cAAc;CAC1B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BusinessStatus = exports.ProductStatus = void 0;
|
|
3
|
+
exports.ServiceStatus = exports.BusinessStatus = exports.ProductStatus = void 0;
|
|
4
4
|
var ProductStatus;
|
|
5
5
|
(function (ProductStatus) {
|
|
6
6
|
ProductStatus["DRAFT"] = "DRAFT";
|
|
@@ -13,3 +13,8 @@ var BusinessStatus;
|
|
|
13
13
|
BusinessStatus["SUSPENDED"] = "SUSPENDED";
|
|
14
14
|
BusinessStatus["ACTIVE"] = "ACTIVE";
|
|
15
15
|
})(BusinessStatus || (exports.BusinessStatus = BusinessStatus = {}));
|
|
16
|
+
var ServiceStatus;
|
|
17
|
+
(function (ServiceStatus) {
|
|
18
|
+
ServiceStatus["DRAFT"] = "DRAFT";
|
|
19
|
+
ServiceStatus["PUBLISHED"] = "PUBLISHED";
|
|
20
|
+
})(ServiceStatus || (exports.ServiceStatus = ServiceStatus = {}));
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { BaseModel } from "./BaseModel";
|
|
2
2
|
import { UserModel } from "./UserModel";
|
|
3
3
|
import { ServiceProviderModel } from "./ServiceProviderModel";
|
|
4
|
+
import { ServiceStatus } from "@/common/enums";
|
|
4
5
|
export declare class BusinessServiceModel extends BaseModel {
|
|
5
6
|
name: string;
|
|
6
7
|
user_id: number;
|
|
7
8
|
provider_info_id: number;
|
|
8
9
|
amount: string;
|
|
10
|
+
status: ServiceStatus;
|
|
9
11
|
user: UserModel;
|
|
10
12
|
provider_info: ServiceProviderModel;
|
|
11
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessServiceModel.d.ts","sourceRoot":"","sources":["../../src/models/BusinessServiceModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"BusinessServiceModel.d.ts","sourceRoot":"","sources":["../../src/models/BusinessServiceModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,qBACa,oBAAqB,SAAQ,SAAS;IAEjD,IAAI,EAAG,MAAM,CAAC;IAGd,OAAO,EAAG,MAAM,CAAC;IAGjB,gBAAgB,EAAG,MAAM,CAAC;IAG1B,MAAM,EAAG,MAAM,CAAC;IAOhB,MAAM,EAAG,aAAa,CAAC;IAIvB,IAAI,EAAG,SAAS,CAAC;IAIjB,aAAa,EAAG,oBAAoB,CAAC;CACtC"}
|
|
@@ -14,11 +14,13 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
const UserModel_1 = require("./UserModel");
|
|
16
16
|
const ServiceProviderModel_1 = require("./ServiceProviderModel");
|
|
17
|
+
const enums_1 = require("@/common/enums");
|
|
17
18
|
let BusinessServiceModel = class BusinessServiceModel extends BaseModel_1.BaseModel {
|
|
18
19
|
name;
|
|
19
20
|
user_id;
|
|
20
21
|
provider_info_id;
|
|
21
22
|
amount;
|
|
23
|
+
status;
|
|
22
24
|
user;
|
|
23
25
|
provider_info;
|
|
24
26
|
};
|
|
@@ -39,6 +41,14 @@ __decorate([
|
|
|
39
41
|
(0, typeorm_1.Column)({ type: "decimal" }),
|
|
40
42
|
__metadata("design:type", String)
|
|
41
43
|
], BusinessServiceModel.prototype, "amount", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({
|
|
46
|
+
type: "enum",
|
|
47
|
+
enum: enums_1.ServiceStatus,
|
|
48
|
+
default: enums_1.ServiceStatus.DRAFT
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], BusinessServiceModel.prototype, "status", void 0);
|
|
42
52
|
__decorate([
|
|
43
53
|
(0, typeorm_1.ManyToOne)(() => UserModel_1.UserModel),
|
|
44
54
|
(0, typeorm_1.JoinColumn)({ name: "user_id", referencedColumnName: "id" }),
|
|
@@ -71,7 +71,7 @@ __decorate([
|
|
|
71
71
|
(0, typeorm_1.Column)({
|
|
72
72
|
type: "enum",
|
|
73
73
|
enum: MarketplaceEnum_1.ProductStatus,
|
|
74
|
-
default: MarketplaceEnum_1.ProductStatus.
|
|
74
|
+
default: MarketplaceEnum_1.ProductStatus.DRAFT
|
|
75
75
|
}),
|
|
76
76
|
__metadata("design:type", String)
|
|
77
77
|
], ProductModel.prototype, "status", void 0);
|