@sildeswj/thechium-schema 1.0.0 → 1.0.2
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/admin.schema.d.ts +16 -0
- package/dist/admin.schema.d.ts.map +1 -0
- package/dist/admin.schema.js +42 -0
- package/dist/admin.schema.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -3
- package/src/collectionCompany.schema.ts +0 -35
- package/src/collectionCompanyEmployee.schema.ts +0 -35
- package/src/collectionOrder.schema.ts +0 -57
- package/src/deliveryMan.schema.ts +0 -36
- package/src/index.ts +0 -10
- package/src/options.ts +0 -5
- package/src/retailBrand.schema.ts +0 -24
- package/src/retailStore.schema.ts +0 -55
- package/src/retailStoreEmployee.schema.ts +0 -37
- package/tsconfig.json +0 -20
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class Admin {
|
|
2
|
+
name: string;
|
|
3
|
+
email: string;
|
|
4
|
+
password: string;
|
|
5
|
+
status: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const AdminSchema: import("mongoose").Schema<Admin, import("mongoose").Model<Admin, any, any, any, import("mongoose").Document<unknown, any, Admin> & Admin & {
|
|
8
|
+
_id: import("mongoose").Types.ObjectId;
|
|
9
|
+
} & {
|
|
10
|
+
__v: number;
|
|
11
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Admin, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Admin>> & import("mongoose").FlatRecord<Admin> & {
|
|
12
|
+
_id: import("mongoose").Types.ObjectId;
|
|
13
|
+
} & {
|
|
14
|
+
__v: number;
|
|
15
|
+
}>;
|
|
16
|
+
//# sourceMappingURL=admin.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.schema.d.ts","sourceRoot":"","sources":["../src/admin.schema.ts"],"names":[],"mappings":"AAGA,qBACa,KAAK;IAEhB,IAAI,EAAE,MAAM,CAAA;IAGZ,KAAK,EAAE,MAAM,CAAA;IAGb,QAAQ,EAAE,MAAM,CAAA;IAOhB,MAAM,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,WAAW;;;;;;;;EAAsC,CAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AdminSchema = exports.Admin = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const options_1 = require("./options");
|
|
15
|
+
let Admin = class Admin {
|
|
16
|
+
};
|
|
17
|
+
exports.Admin = Admin;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], Admin.prototype, "name", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, mongoose_1.Prop)({ required: true, unique: true }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Admin.prototype, "email", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Admin.prototype, "password", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, mongoose_1.Prop)({
|
|
32
|
+
required: true,
|
|
33
|
+
enum: ["active", "deleted"],
|
|
34
|
+
default: "active",
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Admin.prototype, "status", void 0);
|
|
38
|
+
exports.Admin = Admin = __decorate([
|
|
39
|
+
(0, mongoose_1.Schema)(options_1.options)
|
|
40
|
+
], Admin);
|
|
41
|
+
exports.AdminSchema = mongoose_1.SchemaFactory.createForClass(Admin);
|
|
42
|
+
//# sourceMappingURL=admin.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.schema.js","sourceRoot":"","sources":["../src/admin.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA8D;AAC9D,uCAAmC;AAG5B,IAAM,KAAK,GAAX,MAAM,KAAK;CAgBjB,CAAA;AAhBY,sBAAK;AAEhB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mCACb;AAGZ;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;oCAC1B;AAGb;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACT;AAOhB;IALC,IAAA,eAAI,EAAC;QACJ,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;QAC3B,OAAO,EAAE,QAAQ;KAClB,CAAC;;qCACY;gBAfH,KAAK;IADjB,IAAA,iBAAM,EAAC,iBAAO,CAAC;GACH,KAAK,CAgBjB;AAEY,QAAA,WAAW,GAAG,wBAAa,CAAC,cAAc,CAAC,KAAK,CAAC,CAAA"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oCAAoC,CAAA;AAClD,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oCAAoC,CAAA;AAClD,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -17,6 +17,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
__exportStar(require("./collectionCompany.schema"), exports);
|
|
20
|
+
__exportStar(require("./admin.schema"), exports);
|
|
20
21
|
__exportStar(require("./collectionCompanyEmployee.schema"), exports);
|
|
21
22
|
__exportStar(require("./collectionOrder.schema"), exports);
|
|
22
23
|
__exportStar(require("./deliveryMan.schema"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,4CAA4C;AAC5C,6CAA6C;;;;;;;;;;;;;;;;AAE7C,6DAA0C;AAC1C,qEAAkD;AAClD,2DAAwC;AACxC,uDAAoC;AACpC,uDAAoC;AACpC,uDAAoC;AACpC,+DAA4C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,4CAA4C;AAC5C,6CAA6C;;;;;;;;;;;;;;;;AAE7C,6DAA0C;AAC1C,iDAA8B;AAC9B,qEAAkD;AAClD,2DAAwC;AACxC,uDAAoC;AACpC,uDAAoC;AACpC,uDAAoC;AACpC,+DAA4C"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sildeswj/thechium-schema",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
7
|
"build": "rimraf dist && tsc",
|
|
9
8
|
"prepublish": "npm run build",
|
|
10
9
|
"patch": "yarn version --patch",
|
|
@@ -24,4 +23,4 @@
|
|
|
24
23
|
"rxjs": "^7.8.1",
|
|
25
24
|
"typescript": "^5.6.3"
|
|
26
25
|
}
|
|
27
|
-
}
|
|
26
|
+
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
|
|
2
|
-
import { options } from './options';
|
|
3
|
-
import mongoose from 'mongoose';
|
|
4
|
-
|
|
5
|
-
// 좌상 (배송지사)
|
|
6
|
-
@Schema(options)
|
|
7
|
-
export class CollectionCompany {
|
|
8
|
-
@Prop({ required: true })
|
|
9
|
-
name: string;
|
|
10
|
-
|
|
11
|
-
// 대좌상 (유통사) 아래일 경우 위에 다른 좌상이 있을수 있음.
|
|
12
|
-
@Prop({
|
|
13
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
14
|
-
})
|
|
15
|
-
parentCollectionCompany?: mongoose.Schema.Types.ObjectId;
|
|
16
|
-
|
|
17
|
-
// 연락 받는 직원 (collectionCompanyEmployeeId)
|
|
18
|
-
@Prop({
|
|
19
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
20
|
-
})
|
|
21
|
-
contact?: mongoose.Schema.Types.ObjectId;
|
|
22
|
-
|
|
23
|
-
@Prop({ required: true, unique: true })
|
|
24
|
-
code: string;
|
|
25
|
-
|
|
26
|
-
@Prop({
|
|
27
|
-
required: true,
|
|
28
|
-
enum: ['active', 'deleted'],
|
|
29
|
-
default: 'active',
|
|
30
|
-
})
|
|
31
|
-
status: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export const CollectionCompanySchema =
|
|
35
|
-
SchemaFactory.createForClass(CollectionCompany);
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
|
|
2
|
-
import { options } from './options';
|
|
3
|
-
import mongoose from 'mongoose';
|
|
4
|
-
|
|
5
|
-
@Schema(options)
|
|
6
|
-
export class CollectionCompanyEmployee {
|
|
7
|
-
@Prop({ required: true })
|
|
8
|
-
name: string;
|
|
9
|
-
|
|
10
|
-
@Prop({ required: true, unique: true })
|
|
11
|
-
email: string;
|
|
12
|
-
|
|
13
|
-
@Prop({ required: true })
|
|
14
|
-
password: string;
|
|
15
|
-
|
|
16
|
-
@Prop()
|
|
17
|
-
phoneNumber?: string;
|
|
18
|
-
|
|
19
|
-
@Prop({
|
|
20
|
-
required: true,
|
|
21
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
22
|
-
})
|
|
23
|
-
collectionCompany: mongoose.Schema.Types.ObjectId;
|
|
24
|
-
|
|
25
|
-
@Prop({
|
|
26
|
-
required: true,
|
|
27
|
-
enum: ['active', 'deleted'],
|
|
28
|
-
default: 'active',
|
|
29
|
-
})
|
|
30
|
-
status: string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export const CollectionCompanyEmployeeSchema = SchemaFactory.createForClass(
|
|
34
|
-
CollectionCompanyEmployee,
|
|
35
|
-
);
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
|
|
2
|
-
import { options } from './options';
|
|
3
|
-
import mongoose, { Document } from 'mongoose';
|
|
4
|
-
|
|
5
|
-
@Schema(options)
|
|
6
|
-
export class CollectionOrder extends Document {
|
|
7
|
-
// 요청사항 메모
|
|
8
|
-
@Prop({ required: false, maxlength: 500 })
|
|
9
|
-
requestMemo?: string;
|
|
10
|
-
|
|
11
|
-
// 수거량 (매장 점주 요청)
|
|
12
|
-
@Prop({ required: true })
|
|
13
|
-
collectionVolume: string;
|
|
14
|
-
|
|
15
|
-
// 실제 수거량 (배달 기사 실제 수거)
|
|
16
|
-
@Prop()
|
|
17
|
-
actualCollectionVolume?: string;
|
|
18
|
-
|
|
19
|
-
// 픽업한 날짜
|
|
20
|
-
@Prop()
|
|
21
|
-
pickupDate?: Date;
|
|
22
|
-
|
|
23
|
-
// 픽업 요청 날짜
|
|
24
|
-
@Prop({ required: true, type: Date })
|
|
25
|
-
pickupRequestDate: Date;
|
|
26
|
-
|
|
27
|
-
// 매장 점주 사인
|
|
28
|
-
@Prop()
|
|
29
|
-
signature?: string;
|
|
30
|
-
|
|
31
|
-
// 배달 상태
|
|
32
|
-
@Prop({
|
|
33
|
-
required: true,
|
|
34
|
-
enum: ['active', 'deleted', 'completed', 'booking', 'canceled'],
|
|
35
|
-
default: 'booking',
|
|
36
|
-
})
|
|
37
|
-
status: 'active' | 'deleted' | 'completed' | 'booking' | 'canceled';
|
|
38
|
-
|
|
39
|
-
// 배달기사
|
|
40
|
-
@Prop({
|
|
41
|
-
required: true,
|
|
42
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
43
|
-
ref: 'DeliveryMan',
|
|
44
|
-
})
|
|
45
|
-
deliveryMan: mongoose.Schema.Types.ObjectId;
|
|
46
|
-
|
|
47
|
-
// 매장
|
|
48
|
-
@Prop({
|
|
49
|
-
required: true,
|
|
50
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
51
|
-
ref: 'RetailStore',
|
|
52
|
-
})
|
|
53
|
-
retailStore: mongoose.Schema.Types.ObjectId;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export const CollectionOrderSchema =
|
|
57
|
-
SchemaFactory.createForClass(CollectionOrder);
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
|
|
2
|
-
import { options } from './options';
|
|
3
|
-
import mongoose from 'mongoose';
|
|
4
|
-
|
|
5
|
-
@Schema(options)
|
|
6
|
-
export class DeliveryMan {
|
|
7
|
-
@Prop({ required: true })
|
|
8
|
-
name: string;
|
|
9
|
-
|
|
10
|
-
@Prop({ required: true, unique: true })
|
|
11
|
-
phoneNumber: string;
|
|
12
|
-
|
|
13
|
-
@Prop({ required: true })
|
|
14
|
-
password: string;
|
|
15
|
-
|
|
16
|
-
@Prop({ required: false })
|
|
17
|
-
expoPushToken: string[];
|
|
18
|
-
|
|
19
|
-
@Prop({
|
|
20
|
-
required: true,
|
|
21
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
22
|
-
})
|
|
23
|
-
collectionCompany: mongoose.Schema.Types.ObjectId;
|
|
24
|
-
|
|
25
|
-
// @Prop({ type: [String], default: [] })
|
|
26
|
-
// deviceTokens: string[]; // Stores device tokens
|
|
27
|
-
|
|
28
|
-
@Prop({
|
|
29
|
-
required: true,
|
|
30
|
-
enum: ['active', 'deleted'],
|
|
31
|
-
default: 'active',
|
|
32
|
-
})
|
|
33
|
-
status: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export const DeliveryManSchema = SchemaFactory.createForClass(DeliveryMan);
|
package/src/index.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// export * from './thechium-schema.module';
|
|
2
|
-
// export * from './thechium-schema.service';
|
|
3
|
-
|
|
4
|
-
export * from "./collectionCompany.schema"
|
|
5
|
-
export * from "./collectionCompanyEmployee.schema"
|
|
6
|
-
export * from "./collectionOrder.schema"
|
|
7
|
-
export * from "./deliveryMan.schema"
|
|
8
|
-
export * from "./retailBrand.schema"
|
|
9
|
-
export * from "./retailStore.schema"
|
|
10
|
-
export * from "./retailStoreEmployee.schema"
|
package/src/options.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
|
|
2
|
-
import { options } from './options';
|
|
3
|
-
import mongoose from 'mongoose';
|
|
4
|
-
|
|
5
|
-
@Schema(options)
|
|
6
|
-
export class RetailBrand {
|
|
7
|
-
@Prop({ required: true, maxlength: 150, minlength: 2 })
|
|
8
|
-
name: string;
|
|
9
|
-
|
|
10
|
-
@Prop({
|
|
11
|
-
required: true,
|
|
12
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
13
|
-
})
|
|
14
|
-
collectionCompany: mongoose.Schema.Types.ObjectId;
|
|
15
|
-
|
|
16
|
-
@Prop({
|
|
17
|
-
required: true,
|
|
18
|
-
enum: ['active', 'deleted'],
|
|
19
|
-
default: 'active',
|
|
20
|
-
})
|
|
21
|
-
status: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const RetailBrandSchema = SchemaFactory.createForClass(RetailBrand);
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
|
|
2
|
-
import { options } from './options';
|
|
3
|
-
import mongoose from 'mongoose';
|
|
4
|
-
|
|
5
|
-
@Schema(options)
|
|
6
|
-
export class RetailStore {
|
|
7
|
-
@Prop({
|
|
8
|
-
required: true,
|
|
9
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
10
|
-
})
|
|
11
|
-
retailBrand: mongoose.Schema.Types.ObjectId;
|
|
12
|
-
|
|
13
|
-
@Prop({ required: true, maxlength: 150, minlength: 2 })
|
|
14
|
-
name: string;
|
|
15
|
-
|
|
16
|
-
@Prop({ required: true, maxlength: 50, minlength: 2 })
|
|
17
|
-
code: string;
|
|
18
|
-
|
|
19
|
-
@Prop({ required: true })
|
|
20
|
-
address: string;
|
|
21
|
-
|
|
22
|
-
@Prop({ maxlength: 50 })
|
|
23
|
-
addressDetails: string;
|
|
24
|
-
|
|
25
|
-
@Prop({ required: true })
|
|
26
|
-
region: string;
|
|
27
|
-
|
|
28
|
-
@Prop({
|
|
29
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
30
|
-
})
|
|
31
|
-
collectionCompany?: mongoose.Schema.Types.ObjectId;
|
|
32
|
-
|
|
33
|
-
@Prop({
|
|
34
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
35
|
-
})
|
|
36
|
-
deliveryMan?: mongoose.Schema.Types.ObjectId;
|
|
37
|
-
|
|
38
|
-
// @Prop({ minlength: 1 })
|
|
39
|
-
// managerName?: string;
|
|
40
|
-
|
|
41
|
-
// @Prop({ minlength: 2 })
|
|
42
|
-
// managerPhoneNumber?: string;
|
|
43
|
-
|
|
44
|
-
// @Prop({ minlength: 6, maxlength: 6 })
|
|
45
|
-
// managerPassword?: string;
|
|
46
|
-
|
|
47
|
-
@Prop({
|
|
48
|
-
required: true,
|
|
49
|
-
enum: ['active', 'deleted'],
|
|
50
|
-
default: 'active',
|
|
51
|
-
})
|
|
52
|
-
status: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export const RetailStoreSchema = SchemaFactory.createForClass(RetailStore);
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
|
|
2
|
-
import { options } from './options';
|
|
3
|
-
import mongoose from 'mongoose';
|
|
4
|
-
|
|
5
|
-
@Schema(options)
|
|
6
|
-
export class RetailStoreEmployee {
|
|
7
|
-
@Prop({ required: true })
|
|
8
|
-
name: string;
|
|
9
|
-
|
|
10
|
-
@Prop({ required: true, unique: true })
|
|
11
|
-
phoneNumber: string;
|
|
12
|
-
|
|
13
|
-
@Prop({ required: true })
|
|
14
|
-
password: string;
|
|
15
|
-
|
|
16
|
-
@Prop({ required: false })
|
|
17
|
-
expoPushToken: string[];
|
|
18
|
-
|
|
19
|
-
@Prop({
|
|
20
|
-
required: true,
|
|
21
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
22
|
-
})
|
|
23
|
-
retailStore: mongoose.Schema.Types.ObjectId;
|
|
24
|
-
|
|
25
|
-
// @Prop({ type: [String], default: [] })
|
|
26
|
-
// deviceTokens: string[]; // Stores device tokens
|
|
27
|
-
|
|
28
|
-
@Prop({
|
|
29
|
-
required: true,
|
|
30
|
-
enum: ['active', 'deleted'],
|
|
31
|
-
default: 'active',
|
|
32
|
-
})
|
|
33
|
-
status: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export const RetailStoreEmployeeSchema =
|
|
37
|
-
SchemaFactory.createForClass(RetailStoreEmployee);
|
package/tsconfig.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"experimentalDecorators": true,
|
|
4
|
-
"target": "es2017",
|
|
5
|
-
"module": "commonjs",
|
|
6
|
-
"lib": ["es2017", "es7", "es6"],
|
|
7
|
-
"declaration": true,
|
|
8
|
-
"declarationMap": true,
|
|
9
|
-
"sourceMap": true,
|
|
10
|
-
"outDir": "./dist",
|
|
11
|
-
"rootDir": "./src",
|
|
12
|
-
"strict": true,
|
|
13
|
-
"noImplicitAny": false,
|
|
14
|
-
"strictNullChecks": false,
|
|
15
|
-
"allowSyntheticDefaultImports": true,
|
|
16
|
-
"esModuleInterop": true,
|
|
17
|
-
"emitDecoratorMetadata": true
|
|
18
|
-
},
|
|
19
|
-
"exclude": ["node_modules", "dist"]
|
|
20
|
-
}
|