@whatsveg/wv-data-model 1.0.1 → 1.0.3
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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/dist/models/Area.d.ts +6 -0
- package/dist/models/Area.d.ts.map +1 -0
- package/dist/models/Area.js +10 -0
- package/dist/models/Area.js.map +1 -0
- package/dist/models/Category.d.ts +6 -0
- package/dist/models/Category.d.ts.map +1 -0
- package/dist/models/Category.js +10 -0
- package/dist/models/Category.js.map +1 -0
- package/dist/models/City.d.ts +6 -0
- package/dist/models/City.d.ts.map +1 -0
- package/dist/models/City.js +10 -0
- package/dist/models/City.js.map +1 -0
- package/dist/models/Pincode.d.ts +6 -0
- package/dist/models/Pincode.d.ts.map +1 -0
- package/dist/models/Pincode.js +10 -0
- package/dist/models/Pincode.js.map +1 -0
- package/dist/models/Product.d.ts +6 -0
- package/dist/models/Product.d.ts.map +1 -0
- package/dist/models/Product.js +10 -0
- package/dist/models/Product.js.map +1 -0
- package/dist/models/Store.d.ts +6 -0
- package/dist/models/Store.d.ts.map +1 -0
- package/dist/models/Store.js +10 -0
- package/dist/models/Store.js.map +1 -0
- package/dist/models/Unit.d.ts +6 -0
- package/dist/models/Unit.d.ts.map +1 -0
- package/dist/models/Unit.js +10 -0
- package/dist/models/Unit.js.map +1 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +30 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/mappings/CategoryArea.d.ts +4 -0
- package/dist/models/mappings/CategoryArea.d.ts.map +1 -0
- package/dist/models/mappings/CategoryArea.js +11 -0
- package/dist/models/mappings/CategoryArea.js.map +1 -0
- package/dist/models/mappings/ProductArea.d.ts +6 -0
- package/dist/models/mappings/ProductArea.d.ts.map +1 -0
- package/dist/models/mappings/ProductArea.js +11 -0
- package/dist/models/mappings/ProductArea.js.map +1 -0
- package/dist/models/mappings/StoreArea.d.ts +6 -0
- package/dist/models/mappings/StoreArea.d.ts.map +1 -0
- package/dist/models/mappings/StoreArea.js +11 -0
- package/dist/models/mappings/StoreArea.js.map +1 -0
- package/dist/models/mappings/index.d.ts +4 -0
- package/dist/models/mappings/index.d.ts.map +1 -0
- package/dist/models/mappings/index.js +13 -0
- package/dist/models/mappings/index.js.map +1 -0
- package/dist/schemas/AreaSchema.d.ts +95 -0
- package/dist/schemas/AreaSchema.d.ts.map +1 -0
- package/dist/schemas/AreaSchema.js +85 -0
- package/dist/schemas/AreaSchema.js.map +1 -0
- package/dist/schemas/CategoryAreaSchema.d.ts +86 -0
- package/dist/schemas/CategoryAreaSchema.d.ts.map +1 -0
- package/dist/schemas/CategoryAreaSchema.js +45 -0
- package/dist/schemas/CategoryAreaSchema.js.map +1 -0
- package/dist/schemas/CategorySchema.d.ts +125 -0
- package/dist/schemas/CategorySchema.d.ts.map +1 -0
- package/dist/schemas/CategorySchema.js +80 -0
- package/dist/schemas/CategorySchema.js.map +1 -0
- package/dist/schemas/CitySchema.d.ts +85 -0
- package/dist/schemas/CitySchema.d.ts.map +1 -0
- package/dist/schemas/CitySchema.js +35 -0
- package/dist/schemas/CitySchema.js.map +1 -0
- package/dist/schemas/PincodeSchema.d.ts +65 -0
- package/dist/schemas/PincodeSchema.d.ts.map +1 -0
- package/dist/schemas/PincodeSchema.js +26 -0
- package/dist/schemas/PincodeSchema.js.map +1 -0
- package/dist/schemas/ProductAreaSchema.d.ts +95 -0
- package/dist/schemas/ProductAreaSchema.d.ts.map +1 -0
- package/dist/schemas/ProductAreaSchema.js +35 -0
- package/dist/schemas/ProductAreaSchema.js.map +1 -0
- package/dist/schemas/ProductSchema.d.ts +145 -0
- package/dist/schemas/ProductSchema.d.ts.map +1 -0
- package/dist/schemas/ProductSchema.js +108 -0
- package/dist/schemas/ProductSchema.js.map +1 -0
- package/dist/schemas/StoreAreaSchema.d.ts +75 -0
- package/dist/schemas/StoreAreaSchema.d.ts.map +1 -0
- package/dist/schemas/StoreAreaSchema.js +25 -0
- package/dist/schemas/StoreAreaSchema.js.map +1 -0
- package/dist/schemas/StoreSchema.d.ts +145 -0
- package/dist/schemas/StoreSchema.d.ts.map +1 -0
- package/dist/schemas/StoreSchema.js +65 -0
- package/dist/schemas/StoreSchema.js.map +1 -0
- package/dist/schemas/UnitSchema.d.ts +81 -0
- package/dist/schemas/UnitSchema.d.ts.map +1 -0
- package/dist/schemas/UnitSchema.js +69 -0
- package/dist/schemas/UnitSchema.js.map +1 -0
- package/dist/schemas/UserSchema.d.ts +135 -14
- package/dist/schemas/UserSchema.d.ts.map +1 -1
- package/dist/schemas/UserSchema.js +64 -10
- package/dist/schemas/UserSchema.js.map +1 -1
- package/dist/schemas/index.d.ts +21 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +21 -1
- package/dist/schemas/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const StoreSchema = new mongoose_1.Schema({
|
|
5
|
+
name: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true,
|
|
8
|
+
unique: true,
|
|
9
|
+
maxlength: 250
|
|
10
|
+
},
|
|
11
|
+
name_local_language: {
|
|
12
|
+
type: String,
|
|
13
|
+
maxlength: 250
|
|
14
|
+
},
|
|
15
|
+
name_hindi: {
|
|
16
|
+
type: String,
|
|
17
|
+
required: true,
|
|
18
|
+
maxlength: 250
|
|
19
|
+
},
|
|
20
|
+
city: {
|
|
21
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
22
|
+
ref: "City",
|
|
23
|
+
required: true
|
|
24
|
+
},
|
|
25
|
+
address: {
|
|
26
|
+
type: String,
|
|
27
|
+
required: true,
|
|
28
|
+
maxlength: 500
|
|
29
|
+
},
|
|
30
|
+
phone: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: true,
|
|
33
|
+
unique: true,
|
|
34
|
+
maxlength: 15
|
|
35
|
+
},
|
|
36
|
+
owner_name: {
|
|
37
|
+
type: String,
|
|
38
|
+
required: true,
|
|
39
|
+
maxlength: 250
|
|
40
|
+
},
|
|
41
|
+
owner_email: {
|
|
42
|
+
type: String,
|
|
43
|
+
required: true,
|
|
44
|
+
maxlength: 100
|
|
45
|
+
},
|
|
46
|
+
owner_phone: {
|
|
47
|
+
type: String,
|
|
48
|
+
required: true,
|
|
49
|
+
maxlength: 15
|
|
50
|
+
},
|
|
51
|
+
admin_approved: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: false
|
|
54
|
+
},
|
|
55
|
+
status: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: false
|
|
58
|
+
}
|
|
59
|
+
}, {
|
|
60
|
+
timestamps: true,
|
|
61
|
+
toJSON: { virtuals: true },
|
|
62
|
+
toObject: { virtuals: true }
|
|
63
|
+
});
|
|
64
|
+
exports.default = StoreSchema;
|
|
65
|
+
//# sourceMappingURL=StoreSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoreSchema.js","sourceRoot":"","sources":["../../src/schemas/StoreSchema.ts"],"names":[],"mappings":";;AAAA,uCAAyC;AAkBzC,MAAM,WAAW,GAAG,IAAI,iBAAM,CAC5B;IACE,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,IAAI;QACZ,SAAS,EAAE,GAAG;KACf;IACD,mBAAmB,EAAE;QACnB,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,GAAG;KACf;IACD,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,GAAG;KACf;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ;QAC3B,GAAG,EAAE,MAAM;QACX,QAAQ,EAAE,IAAI;KACf;IACD,OAAO,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,GAAG;KACf;IACD,KAAK,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,IAAI;QACZ,SAAS,EAAE,EAAE;KACd;IACD,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,GAAG;KACf;IACD,WAAW,EAAE;QACX,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,GAAG;KACf;IACD,WAAW,EAAE;QACX,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,EAAE;KACd;IACD,cAAc,EAAE;QACd,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,KAAK;KACf;IACD,MAAM,EAAE;QACN,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,KAAK;KACf;CACF,EACD;IACE,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC1B,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;CAC7B,CACF,CAAC;AAEF,kBAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Schema } from "mongoose";
|
|
2
|
+
export interface SubUnitAttributes {
|
|
3
|
+
name: string;
|
|
4
|
+
calculation_factor: unknown;
|
|
5
|
+
status?: boolean;
|
|
6
|
+
index: number;
|
|
7
|
+
}
|
|
8
|
+
export interface UnitAttributes {
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
sub_units?: SubUnitAttributes[];
|
|
12
|
+
status?: boolean;
|
|
13
|
+
createdAt?: Date;
|
|
14
|
+
updatedAt?: Date;
|
|
15
|
+
}
|
|
16
|
+
declare const UnitSchema: Schema<UnitAttributes, import("mongoose").Model<UnitAttributes, any, any, any, any, any, UnitAttributes>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, UnitAttributes, import("mongoose").Document<unknown, {}, UnitAttributes, {
|
|
17
|
+
id: string;
|
|
18
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UnitAttributes & {
|
|
19
|
+
_id: import("mongoose").Types.ObjectId;
|
|
20
|
+
} & {
|
|
21
|
+
__v: number;
|
|
22
|
+
}, "id"> & {
|
|
23
|
+
id: string;
|
|
24
|
+
}, {
|
|
25
|
+
name?: import("mongoose").SchemaDefinitionProperty<string, UnitAttributes, import("mongoose").Document<unknown, {}, UnitAttributes, {
|
|
26
|
+
id: string;
|
|
27
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UnitAttributes & {
|
|
28
|
+
_id: import("mongoose").Types.ObjectId;
|
|
29
|
+
} & {
|
|
30
|
+
__v: number;
|
|
31
|
+
}, "id"> & {
|
|
32
|
+
id: string;
|
|
33
|
+
}> | undefined;
|
|
34
|
+
description?: import("mongoose").SchemaDefinitionProperty<string | undefined, UnitAttributes, import("mongoose").Document<unknown, {}, UnitAttributes, {
|
|
35
|
+
id: string;
|
|
36
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UnitAttributes & {
|
|
37
|
+
_id: import("mongoose").Types.ObjectId;
|
|
38
|
+
} & {
|
|
39
|
+
__v: number;
|
|
40
|
+
}, "id"> & {
|
|
41
|
+
id: string;
|
|
42
|
+
}> | undefined;
|
|
43
|
+
sub_units?: import("mongoose").SchemaDefinitionProperty<SubUnitAttributes[] | undefined, UnitAttributes, import("mongoose").Document<unknown, {}, UnitAttributes, {
|
|
44
|
+
id: string;
|
|
45
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UnitAttributes & {
|
|
46
|
+
_id: import("mongoose").Types.ObjectId;
|
|
47
|
+
} & {
|
|
48
|
+
__v: number;
|
|
49
|
+
}, "id"> & {
|
|
50
|
+
id: string;
|
|
51
|
+
}> | undefined;
|
|
52
|
+
status?: import("mongoose").SchemaDefinitionProperty<boolean | undefined, UnitAttributes, import("mongoose").Document<unknown, {}, UnitAttributes, {
|
|
53
|
+
id: string;
|
|
54
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UnitAttributes & {
|
|
55
|
+
_id: import("mongoose").Types.ObjectId;
|
|
56
|
+
} & {
|
|
57
|
+
__v: number;
|
|
58
|
+
}, "id"> & {
|
|
59
|
+
id: string;
|
|
60
|
+
}> | undefined;
|
|
61
|
+
createdAt?: import("mongoose").SchemaDefinitionProperty<Date | undefined, UnitAttributes, import("mongoose").Document<unknown, {}, UnitAttributes, {
|
|
62
|
+
id: string;
|
|
63
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UnitAttributes & {
|
|
64
|
+
_id: import("mongoose").Types.ObjectId;
|
|
65
|
+
} & {
|
|
66
|
+
__v: number;
|
|
67
|
+
}, "id"> & {
|
|
68
|
+
id: string;
|
|
69
|
+
}> | undefined;
|
|
70
|
+
updatedAt?: import("mongoose").SchemaDefinitionProperty<Date | undefined, UnitAttributes, import("mongoose").Document<unknown, {}, UnitAttributes, {
|
|
71
|
+
id: string;
|
|
72
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UnitAttributes & {
|
|
73
|
+
_id: import("mongoose").Types.ObjectId;
|
|
74
|
+
} & {
|
|
75
|
+
__v: number;
|
|
76
|
+
}, "id"> & {
|
|
77
|
+
id: string;
|
|
78
|
+
}> | undefined;
|
|
79
|
+
}, UnitAttributes>;
|
|
80
|
+
export default UnitSchema;
|
|
81
|
+
//# sourceMappingURL=UnitSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnitSchema.d.ts","sourceRoot":"","sources":["../../src/schemas/UnitSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AA+BD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsBf,CAAC;AAsBF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const subunitSchema = new mongoose_1.Schema({
|
|
5
|
+
name: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true,
|
|
8
|
+
maxLength: 250
|
|
9
|
+
},
|
|
10
|
+
calculation_factor: {
|
|
11
|
+
type: mongoose_1.Schema.Types.Decimal128,
|
|
12
|
+
required: true,
|
|
13
|
+
max: 100000
|
|
14
|
+
},
|
|
15
|
+
status: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: true
|
|
18
|
+
},
|
|
19
|
+
index: {
|
|
20
|
+
type: Number,
|
|
21
|
+
required: true,
|
|
22
|
+
max: 1000
|
|
23
|
+
}
|
|
24
|
+
}, {
|
|
25
|
+
timestamps: true,
|
|
26
|
+
toJSON: { virtuals: true },
|
|
27
|
+
toObject: { virtuals: true }
|
|
28
|
+
});
|
|
29
|
+
const UnitSchema = new mongoose_1.Schema({
|
|
30
|
+
name: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: true,
|
|
33
|
+
unique: true
|
|
34
|
+
},
|
|
35
|
+
description: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: "How to use this unit in product quantity: "
|
|
38
|
+
},
|
|
39
|
+
sub_units: [subunitSchema],
|
|
40
|
+
status: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: true
|
|
43
|
+
}
|
|
44
|
+
}, {
|
|
45
|
+
timestamps: true,
|
|
46
|
+
toJSON: { virtuals: true },
|
|
47
|
+
toObject: { virtuals: true }
|
|
48
|
+
});
|
|
49
|
+
UnitSchema.post("save", async function (doc) {
|
|
50
|
+
if (!doc.sub_units || doc.sub_units.length === 0) {
|
|
51
|
+
const subUnits = [
|
|
52
|
+
{
|
|
53
|
+
name: "1".concat(doc.name),
|
|
54
|
+
calculation_factor: 1,
|
|
55
|
+
index: 99
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: "2".concat(doc.name),
|
|
59
|
+
calculation_factor: 2,
|
|
60
|
+
index: 100
|
|
61
|
+
}
|
|
62
|
+
];
|
|
63
|
+
doc.sub_units = doc.sub_units ?? [];
|
|
64
|
+
doc.sub_units.push(...subUnits);
|
|
65
|
+
await doc.save();
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
exports.default = UnitSchema;
|
|
69
|
+
//# sourceMappingURL=UnitSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnitSchema.js","sourceRoot":"","sources":["../../src/schemas/UnitSchema.ts"],"names":[],"mappings":";;AAAA,uCAAkC;AAkBlC,MAAM,aAAa,GAAG,IAAI,iBAAM,CAC9B;IACE,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,GAAG;KACf;IACD,kBAAkB,EAAE;QAClB,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,UAAU;QAC7B,QAAQ,EAAE,IAAI;QACd,GAAG,EAAE,MAAM;KACZ;IACD,MAAM,EAAE;QACN,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,IAAI;KACd;IACD,KAAK,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,GAAG,EAAE,IAAI;KACV;CACF,EACD;IACE,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC1B,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;CAC7B,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,IAAI,iBAAM,CAC3B;IACE,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,IAAI;KACb;IACD,WAAW,EAAE;QACX,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,4CAA4C;KACtD;IACD,SAAS,EAAE,CAAC,aAAa,CAAC;IAC1B,MAAM,EAAE;QACN,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,IAAI;KACd;CACF,EACD;IACE,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC1B,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;CAC7B,CACF,CAAC;AAEF,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,WAAW,GAAG;IACzC,IAAI,CAAC,GAAG,CAAC,SAAS,IAAI,GAAG,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACjD,MAAM,QAAQ,GAAG;YACf;gBACE,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;gBAC1B,kBAAkB,EAAE,CAAC;gBACrB,KAAK,EAAE,EAAE;aACV;YACD;gBACE,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;gBAC1B,kBAAkB,EAAE,CAAC;gBACrB,KAAK,EAAE,GAAG;aACX;SACF,CAAC;QACF,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC;QACpC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;QAChC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;IACnB,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,kBAAe,UAAU,CAAC"}
|
|
@@ -1,52 +1,173 @@
|
|
|
1
|
-
import { Schema } from "mongoose";
|
|
1
|
+
import { Schema, Types } from "mongoose";
|
|
2
|
+
export type UserRole = "user" | "admin" | "superadmin";
|
|
2
3
|
export interface UserAttributes {
|
|
3
|
-
userId: string;
|
|
4
4
|
name: string;
|
|
5
5
|
email: string;
|
|
6
|
-
|
|
6
|
+
emailVerified?: boolean;
|
|
7
|
+
mobile?: string;
|
|
8
|
+
alternateMobile?: string;
|
|
9
|
+
mobileVerified?: boolean;
|
|
10
|
+
password: string;
|
|
11
|
+
role?: UserRole;
|
|
12
|
+
addressLabel?: string;
|
|
13
|
+
address?: string;
|
|
14
|
+
landmark?: string;
|
|
15
|
+
geo_latitude?: number;
|
|
16
|
+
geo_longitude?: number;
|
|
17
|
+
city: Types.ObjectId;
|
|
18
|
+
pincode: Types.ObjectId;
|
|
19
|
+
area: Types.ObjectId;
|
|
7
20
|
createdAt?: Date;
|
|
8
21
|
updatedAt?: Date;
|
|
9
22
|
}
|
|
10
23
|
declare const UserSchema: Schema<UserAttributes, import("mongoose").Model<UserAttributes, any, any, any, any, any, UserAttributes>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
11
24
|
id: string;
|
|
12
25
|
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
13
|
-
_id:
|
|
26
|
+
_id: Types.ObjectId;
|
|
14
27
|
} & {
|
|
15
28
|
__v: number;
|
|
16
29
|
}, "id"> & {
|
|
17
30
|
id: string;
|
|
18
31
|
}, {
|
|
19
|
-
|
|
32
|
+
name?: import("mongoose").SchemaDefinitionProperty<string, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
20
33
|
id: string;
|
|
21
34
|
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
22
|
-
_id:
|
|
35
|
+
_id: Types.ObjectId;
|
|
23
36
|
} & {
|
|
24
37
|
__v: number;
|
|
25
38
|
}, "id"> & {
|
|
26
39
|
id: string;
|
|
27
40
|
}> | undefined;
|
|
28
|
-
|
|
41
|
+
email?: import("mongoose").SchemaDefinitionProperty<string, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
29
42
|
id: string;
|
|
30
43
|
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
31
|
-
_id:
|
|
44
|
+
_id: Types.ObjectId;
|
|
32
45
|
} & {
|
|
33
46
|
__v: number;
|
|
34
47
|
}, "id"> & {
|
|
35
48
|
id: string;
|
|
36
49
|
}> | undefined;
|
|
37
|
-
|
|
50
|
+
emailVerified?: import("mongoose").SchemaDefinitionProperty<boolean | undefined, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
51
|
+
id: string;
|
|
52
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
53
|
+
_id: Types.ObjectId;
|
|
54
|
+
} & {
|
|
55
|
+
__v: number;
|
|
56
|
+
}, "id"> & {
|
|
57
|
+
id: string;
|
|
58
|
+
}> | undefined;
|
|
59
|
+
mobile?: import("mongoose").SchemaDefinitionProperty<string | undefined, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
60
|
+
id: string;
|
|
61
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
62
|
+
_id: Types.ObjectId;
|
|
63
|
+
} & {
|
|
64
|
+
__v: number;
|
|
65
|
+
}, "id"> & {
|
|
66
|
+
id: string;
|
|
67
|
+
}> | undefined;
|
|
68
|
+
alternateMobile?: import("mongoose").SchemaDefinitionProperty<string | undefined, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
69
|
+
id: string;
|
|
70
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
71
|
+
_id: Types.ObjectId;
|
|
72
|
+
} & {
|
|
73
|
+
__v: number;
|
|
74
|
+
}, "id"> & {
|
|
75
|
+
id: string;
|
|
76
|
+
}> | undefined;
|
|
77
|
+
mobileVerified?: import("mongoose").SchemaDefinitionProperty<boolean | undefined, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
78
|
+
id: string;
|
|
79
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
80
|
+
_id: Types.ObjectId;
|
|
81
|
+
} & {
|
|
82
|
+
__v: number;
|
|
83
|
+
}, "id"> & {
|
|
84
|
+
id: string;
|
|
85
|
+
}> | undefined;
|
|
86
|
+
password?: import("mongoose").SchemaDefinitionProperty<string, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
87
|
+
id: string;
|
|
88
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
89
|
+
_id: Types.ObjectId;
|
|
90
|
+
} & {
|
|
91
|
+
__v: number;
|
|
92
|
+
}, "id"> & {
|
|
93
|
+
id: string;
|
|
94
|
+
}> | undefined;
|
|
95
|
+
role?: import("mongoose").SchemaDefinitionProperty<UserRole | undefined, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
96
|
+
id: string;
|
|
97
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
98
|
+
_id: Types.ObjectId;
|
|
99
|
+
} & {
|
|
100
|
+
__v: number;
|
|
101
|
+
}, "id"> & {
|
|
102
|
+
id: string;
|
|
103
|
+
}> | undefined;
|
|
104
|
+
addressLabel?: import("mongoose").SchemaDefinitionProperty<string | undefined, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
105
|
+
id: string;
|
|
106
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
107
|
+
_id: Types.ObjectId;
|
|
108
|
+
} & {
|
|
109
|
+
__v: number;
|
|
110
|
+
}, "id"> & {
|
|
111
|
+
id: string;
|
|
112
|
+
}> | undefined;
|
|
113
|
+
address?: import("mongoose").SchemaDefinitionProperty<string | undefined, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
114
|
+
id: string;
|
|
115
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
116
|
+
_id: Types.ObjectId;
|
|
117
|
+
} & {
|
|
118
|
+
__v: number;
|
|
119
|
+
}, "id"> & {
|
|
120
|
+
id: string;
|
|
121
|
+
}> | undefined;
|
|
122
|
+
landmark?: import("mongoose").SchemaDefinitionProperty<string | undefined, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
123
|
+
id: string;
|
|
124
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
125
|
+
_id: Types.ObjectId;
|
|
126
|
+
} & {
|
|
127
|
+
__v: number;
|
|
128
|
+
}, "id"> & {
|
|
129
|
+
id: string;
|
|
130
|
+
}> | undefined;
|
|
131
|
+
geo_latitude?: import("mongoose").SchemaDefinitionProperty<number | undefined, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
132
|
+
id: string;
|
|
133
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
134
|
+
_id: Types.ObjectId;
|
|
135
|
+
} & {
|
|
136
|
+
__v: number;
|
|
137
|
+
}, "id"> & {
|
|
138
|
+
id: string;
|
|
139
|
+
}> | undefined;
|
|
140
|
+
geo_longitude?: import("mongoose").SchemaDefinitionProperty<number | undefined, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
141
|
+
id: string;
|
|
142
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
143
|
+
_id: Types.ObjectId;
|
|
144
|
+
} & {
|
|
145
|
+
__v: number;
|
|
146
|
+
}, "id"> & {
|
|
147
|
+
id: string;
|
|
148
|
+
}> | undefined;
|
|
149
|
+
city?: import("mongoose").SchemaDefinitionProperty<Types.ObjectId, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
150
|
+
id: string;
|
|
151
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
152
|
+
_id: Types.ObjectId;
|
|
153
|
+
} & {
|
|
154
|
+
__v: number;
|
|
155
|
+
}, "id"> & {
|
|
156
|
+
id: string;
|
|
157
|
+
}> | undefined;
|
|
158
|
+
pincode?: import("mongoose").SchemaDefinitionProperty<Types.ObjectId, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
38
159
|
id: string;
|
|
39
160
|
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
40
|
-
_id:
|
|
161
|
+
_id: Types.ObjectId;
|
|
41
162
|
} & {
|
|
42
163
|
__v: number;
|
|
43
164
|
}, "id"> & {
|
|
44
165
|
id: string;
|
|
45
166
|
}> | undefined;
|
|
46
|
-
|
|
167
|
+
area?: import("mongoose").SchemaDefinitionProperty<Types.ObjectId, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
47
168
|
id: string;
|
|
48
169
|
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
49
|
-
_id:
|
|
170
|
+
_id: Types.ObjectId;
|
|
50
171
|
} & {
|
|
51
172
|
__v: number;
|
|
52
173
|
}, "id"> & {
|
|
@@ -55,7 +176,7 @@ declare const UserSchema: Schema<UserAttributes, import("mongoose").Model<UserAt
|
|
|
55
176
|
createdAt?: import("mongoose").SchemaDefinitionProperty<Date | undefined, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
56
177
|
id: string;
|
|
57
178
|
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
58
|
-
_id:
|
|
179
|
+
_id: Types.ObjectId;
|
|
59
180
|
} & {
|
|
60
181
|
__v: number;
|
|
61
182
|
}, "id"> & {
|
|
@@ -64,7 +185,7 @@ declare const UserSchema: Schema<UserAttributes, import("mongoose").Model<UserAt
|
|
|
64
185
|
updatedAt?: import("mongoose").SchemaDefinitionProperty<Date | undefined, UserAttributes, import("mongoose").Document<unknown, {}, UserAttributes, {
|
|
65
186
|
id: string;
|
|
66
187
|
}, import("mongoose").DefaultSchemaOptions> & Omit<UserAttributes & {
|
|
67
|
-
_id:
|
|
188
|
+
_id: Types.ObjectId;
|
|
68
189
|
} & {
|
|
69
190
|
__v: number;
|
|
70
191
|
}, "id"> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserSchema.d.ts","sourceRoot":"","sources":["../../src/schemas/UserSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"UserSchema.d.ts","sourceRoot":"","sources":["../../src/schemas/UserSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,YAAY,CAAC;AAEvD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC;IACxB,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAED,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA8Ef,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -2,26 +2,80 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const mongoose_1 = require("mongoose");
|
|
4
4
|
const UserSchema = new mongoose_1.Schema({
|
|
5
|
-
|
|
5
|
+
name: {
|
|
6
6
|
type: String,
|
|
7
7
|
required: true,
|
|
8
|
-
|
|
8
|
+
maxlength: 250
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
email: {
|
|
11
11
|
type: String,
|
|
12
|
-
required: true
|
|
12
|
+
required: true,
|
|
13
|
+
unique: true,
|
|
14
|
+
maxlength: 100
|
|
13
15
|
},
|
|
14
|
-
|
|
16
|
+
emailVerified: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: false
|
|
19
|
+
},
|
|
20
|
+
mobile: {
|
|
21
|
+
type: String,
|
|
22
|
+
maxlength: 15
|
|
23
|
+
},
|
|
24
|
+
alternateMobile: {
|
|
25
|
+
type: String,
|
|
26
|
+
maxlength: 15
|
|
27
|
+
},
|
|
28
|
+
mobileVerified: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false
|
|
31
|
+
},
|
|
32
|
+
password: {
|
|
15
33
|
type: String,
|
|
16
34
|
required: true,
|
|
17
|
-
|
|
35
|
+
maxlength: 100
|
|
36
|
+
},
|
|
37
|
+
role: {
|
|
38
|
+
type: String,
|
|
39
|
+
enum: ["user", "admin", "superadmin"],
|
|
40
|
+
default: "user"
|
|
18
41
|
},
|
|
19
|
-
|
|
20
|
-
type:
|
|
21
|
-
|
|
42
|
+
addressLabel: {
|
|
43
|
+
type: String,
|
|
44
|
+
maxlength: 100
|
|
45
|
+
},
|
|
46
|
+
address: {
|
|
47
|
+
type: String,
|
|
48
|
+
maxlength: 500
|
|
49
|
+
},
|
|
50
|
+
landmark: {
|
|
51
|
+
type: String,
|
|
52
|
+
maxlength: 250
|
|
53
|
+
},
|
|
54
|
+
geo_latitude: {
|
|
55
|
+
type: Number
|
|
56
|
+
},
|
|
57
|
+
geo_longitude: {
|
|
58
|
+
type: Number
|
|
59
|
+
},
|
|
60
|
+
city: {
|
|
61
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
62
|
+
ref: "City",
|
|
63
|
+
required: true
|
|
64
|
+
},
|
|
65
|
+
pincode: {
|
|
66
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
67
|
+
ref: "Pincode",
|
|
68
|
+
required: true
|
|
69
|
+
},
|
|
70
|
+
area: {
|
|
71
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
72
|
+
ref: "Area",
|
|
73
|
+
required: true
|
|
22
74
|
}
|
|
23
75
|
}, {
|
|
24
|
-
timestamps: true
|
|
76
|
+
timestamps: true,
|
|
77
|
+
toJSON: { virtuals: true },
|
|
78
|
+
toObject: { virtuals: true }
|
|
25
79
|
});
|
|
26
80
|
exports.default = UserSchema;
|
|
27
81
|
//# sourceMappingURL=UserSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserSchema.js","sourceRoot":"","sources":["../../src/schemas/UserSchema.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"UserSchema.js","sourceRoot":"","sources":["../../src/schemas/UserSchema.ts"],"names":[],"mappings":";;AAAA,uCAAyC;AAyBzC,MAAM,UAAU,GAAG,IAAI,iBAAM,CAC3B;IACE,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,GAAG;KACf;IACD,KAAK,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,IAAI;QACZ,SAAS,EAAE,GAAG;KACf;IACD,aAAa,EAAE;QACb,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,KAAK;KACf;IACD,MAAM,EAAE;QACN,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,EAAE;KACd;IACD,eAAe,EAAE;QACf,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,EAAE;KACd;IACD,cAAc,EAAE;QACd,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,KAAK;KACf;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,GAAG;KACf;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC;QACrC,OAAO,EAAE,MAAM;KAChB;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,GAAG;KACf;IACD,OAAO,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,GAAG;KACf;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,GAAG;KACf;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,MAAM;KACb;IACD,aAAa,EAAE;QACb,IAAI,EAAE,MAAM;KACb;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ;QAC3B,GAAG,EAAE,MAAM;QACX,QAAQ,EAAE,IAAI;KACf;IACD,OAAO,EAAE;QACP,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ;QAC3B,GAAG,EAAE,SAAS;QACd,QAAQ,EAAE,IAAI;KACf;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ;QAC3B,GAAG,EAAE,MAAM;QACX,QAAQ,EAAE,IAAI;KACf;CACF,EACD;IACE,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC1B,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;CAC7B,CACF,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
export { default as AreaSchema } from "./AreaSchema";
|
|
2
|
+
export type { AreaAttributes } from "./AreaSchema";
|
|
3
|
+
export { default as CategorySchema } from "./CategorySchema";
|
|
4
|
+
export type { CategoryAttributes } from "./CategorySchema";
|
|
5
|
+
export { default as CitySchema } from "./CitySchema";
|
|
6
|
+
export type { CityAttributes } from "./CitySchema";
|
|
7
|
+
export { default as PincodeSchema } from "./PincodeSchema";
|
|
8
|
+
export type { PincodeAttributes } from "./PincodeSchema";
|
|
9
|
+
export { default as ProductSchema } from "./ProductSchema";
|
|
10
|
+
export type { ProductAttributes } from "./ProductSchema";
|
|
11
|
+
export { default as StoreSchema } from "./StoreSchema";
|
|
12
|
+
export type { StoreAttributes } from "./StoreSchema";
|
|
13
|
+
export { default as UnitSchema } from "./UnitSchema";
|
|
14
|
+
export type { SubUnitAttributes, UnitAttributes } from "./UnitSchema";
|
|
1
15
|
export { default as UserSchema } from "./UserSchema";
|
|
2
|
-
export type { UserAttributes } from "./UserSchema";
|
|
16
|
+
export type { UserAttributes, UserRole } from "./UserSchema";
|
|
17
|
+
export { default as CategoryAreaSchema } from "./CategoryAreaSchema";
|
|
18
|
+
export type { CategoryAreaAttributes, CategoryAreaDocument, CategoryAreaMethods, CategoryAreaModel, CategoryAreaStatics } from "./CategoryAreaSchema";
|
|
19
|
+
export { default as ProductAreaSchema } from "./ProductAreaSchema";
|
|
20
|
+
export type { ProductAreaAttributes } from "./ProductAreaSchema";
|
|
21
|
+
export { default as StoreAreaSchema } from "./StoreAreaSchema";
|
|
22
|
+
export type { StoreAreaAttributes } from "./StoreAreaSchema";
|
|
3
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEtE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,YAAY,EACX,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,YAAY,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -3,7 +3,27 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UserSchema = void 0;
|
|
6
|
+
exports.StoreAreaSchema = exports.ProductAreaSchema = exports.CategoryAreaSchema = exports.UserSchema = exports.UnitSchema = exports.StoreSchema = exports.ProductSchema = exports.PincodeSchema = exports.CitySchema = exports.CategorySchema = exports.AreaSchema = void 0;
|
|
7
|
+
var AreaSchema_1 = require("./AreaSchema");
|
|
8
|
+
Object.defineProperty(exports, "AreaSchema", { enumerable: true, get: function () { return __importDefault(AreaSchema_1).default; } });
|
|
9
|
+
var CategorySchema_1 = require("./CategorySchema");
|
|
10
|
+
Object.defineProperty(exports, "CategorySchema", { enumerable: true, get: function () { return __importDefault(CategorySchema_1).default; } });
|
|
11
|
+
var CitySchema_1 = require("./CitySchema");
|
|
12
|
+
Object.defineProperty(exports, "CitySchema", { enumerable: true, get: function () { return __importDefault(CitySchema_1).default; } });
|
|
13
|
+
var PincodeSchema_1 = require("./PincodeSchema");
|
|
14
|
+
Object.defineProperty(exports, "PincodeSchema", { enumerable: true, get: function () { return __importDefault(PincodeSchema_1).default; } });
|
|
15
|
+
var ProductSchema_1 = require("./ProductSchema");
|
|
16
|
+
Object.defineProperty(exports, "ProductSchema", { enumerable: true, get: function () { return __importDefault(ProductSchema_1).default; } });
|
|
17
|
+
var StoreSchema_1 = require("./StoreSchema");
|
|
18
|
+
Object.defineProperty(exports, "StoreSchema", { enumerable: true, get: function () { return __importDefault(StoreSchema_1).default; } });
|
|
19
|
+
var UnitSchema_1 = require("./UnitSchema");
|
|
20
|
+
Object.defineProperty(exports, "UnitSchema", { enumerable: true, get: function () { return __importDefault(UnitSchema_1).default; } });
|
|
7
21
|
var UserSchema_1 = require("./UserSchema");
|
|
8
22
|
Object.defineProperty(exports, "UserSchema", { enumerable: true, get: function () { return __importDefault(UserSchema_1).default; } });
|
|
23
|
+
var CategoryAreaSchema_1 = require("./CategoryAreaSchema");
|
|
24
|
+
Object.defineProperty(exports, "CategoryAreaSchema", { enumerable: true, get: function () { return __importDefault(CategoryAreaSchema_1).default; } });
|
|
25
|
+
var ProductAreaSchema_1 = require("./ProductAreaSchema");
|
|
26
|
+
Object.defineProperty(exports, "ProductAreaSchema", { enumerable: true, get: function () { return __importDefault(ProductAreaSchema_1).default; } });
|
|
27
|
+
var StoreAreaSchema_1 = require("./StoreAreaSchema");
|
|
28
|
+
Object.defineProperty(exports, "StoreAreaSchema", { enumerable: true, get: function () { return __importDefault(StoreAreaSchema_1).default; } });
|
|
9
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAqD;AAA5C,yHAAA,OAAO,OAAc"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAqD;AAA5C,yHAAA,OAAO,OAAc;AAG9B,mDAA6D;AAApD,iIAAA,OAAO,OAAkB;AAGlC,2CAAqD;AAA5C,yHAAA,OAAO,OAAc;AAG9B,iDAA2D;AAAlD,+HAAA,OAAO,OAAiB;AAGjC,iDAA2D;AAAlD,+HAAA,OAAO,OAAiB;AAGjC,6CAAuD;AAA9C,2HAAA,OAAO,OAAe;AAG/B,2CAAqD;AAA5C,yHAAA,OAAO,OAAc;AAG9B,2CAAqD;AAA5C,yHAAA,OAAO,OAAc;AAG9B,2DAAqE;AAA5D,yIAAA,OAAO,OAAsB;AAStC,yDAAmE;AAA1D,uIAAA,OAAO,OAAqB;AAGrC,qDAA+D;AAAtD,mIAAA,OAAO,OAAmB"}
|