@whatsveg/wv-data-model 1.0.1 → 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.
Files changed (101) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +15 -3
  4. package/dist/index.js.map +1 -1
  5. package/dist/models/Area.d.ts +6 -0
  6. package/dist/models/Area.d.ts.map +1 -0
  7. package/dist/models/Area.js +10 -0
  8. package/dist/models/Area.js.map +1 -0
  9. package/dist/models/Category.d.ts +6 -0
  10. package/dist/models/Category.d.ts.map +1 -0
  11. package/dist/models/Category.js +10 -0
  12. package/dist/models/Category.js.map +1 -0
  13. package/dist/models/City.d.ts +6 -0
  14. package/dist/models/City.d.ts.map +1 -0
  15. package/dist/models/City.js +10 -0
  16. package/dist/models/City.js.map +1 -0
  17. package/dist/models/Pincode.d.ts +6 -0
  18. package/dist/models/Pincode.d.ts.map +1 -0
  19. package/dist/models/Pincode.js +10 -0
  20. package/dist/models/Pincode.js.map +1 -0
  21. package/dist/models/Product.d.ts +6 -0
  22. package/dist/models/Product.d.ts.map +1 -0
  23. package/dist/models/Product.js +10 -0
  24. package/dist/models/Product.js.map +1 -0
  25. package/dist/models/Store.d.ts +6 -0
  26. package/dist/models/Store.d.ts.map +1 -0
  27. package/dist/models/Store.js +10 -0
  28. package/dist/models/Store.js.map +1 -0
  29. package/dist/models/Unit.d.ts +6 -0
  30. package/dist/models/Unit.d.ts.map +1 -0
  31. package/dist/models/Unit.js +10 -0
  32. package/dist/models/Unit.js.map +1 -0
  33. package/dist/models/index.d.ts +15 -0
  34. package/dist/models/index.d.ts.map +1 -1
  35. package/dist/models/index.js +30 -1
  36. package/dist/models/index.js.map +1 -1
  37. package/dist/models/mappings/CategoryArea.d.ts +4 -0
  38. package/dist/models/mappings/CategoryArea.d.ts.map +1 -0
  39. package/dist/models/mappings/CategoryArea.js +11 -0
  40. package/dist/models/mappings/CategoryArea.js.map +1 -0
  41. package/dist/models/mappings/ProductArea.d.ts +6 -0
  42. package/dist/models/mappings/ProductArea.d.ts.map +1 -0
  43. package/dist/models/mappings/ProductArea.js +11 -0
  44. package/dist/models/mappings/ProductArea.js.map +1 -0
  45. package/dist/models/mappings/StoreArea.d.ts +6 -0
  46. package/dist/models/mappings/StoreArea.d.ts.map +1 -0
  47. package/dist/models/mappings/StoreArea.js +11 -0
  48. package/dist/models/mappings/StoreArea.js.map +1 -0
  49. package/dist/models/mappings/index.d.ts +4 -0
  50. package/dist/models/mappings/index.d.ts.map +1 -0
  51. package/dist/models/mappings/index.js +13 -0
  52. package/dist/models/mappings/index.js.map +1 -0
  53. package/dist/schemas/AreaSchema.d.ts +95 -0
  54. package/dist/schemas/AreaSchema.d.ts.map +1 -0
  55. package/dist/schemas/AreaSchema.js +85 -0
  56. package/dist/schemas/AreaSchema.js.map +1 -0
  57. package/dist/schemas/CategoryAreaSchema.d.ts +86 -0
  58. package/dist/schemas/CategoryAreaSchema.d.ts.map +1 -0
  59. package/dist/schemas/CategoryAreaSchema.js +45 -0
  60. package/dist/schemas/CategoryAreaSchema.js.map +1 -0
  61. package/dist/schemas/CategorySchema.d.ts +125 -0
  62. package/dist/schemas/CategorySchema.d.ts.map +1 -0
  63. package/dist/schemas/CategorySchema.js +80 -0
  64. package/dist/schemas/CategorySchema.js.map +1 -0
  65. package/dist/schemas/CitySchema.d.ts +85 -0
  66. package/dist/schemas/CitySchema.d.ts.map +1 -0
  67. package/dist/schemas/CitySchema.js +35 -0
  68. package/dist/schemas/CitySchema.js.map +1 -0
  69. package/dist/schemas/PincodeSchema.d.ts +65 -0
  70. package/dist/schemas/PincodeSchema.d.ts.map +1 -0
  71. package/dist/schemas/PincodeSchema.js +26 -0
  72. package/dist/schemas/PincodeSchema.js.map +1 -0
  73. package/dist/schemas/ProductAreaSchema.d.ts +95 -0
  74. package/dist/schemas/ProductAreaSchema.d.ts.map +1 -0
  75. package/dist/schemas/ProductAreaSchema.js +35 -0
  76. package/dist/schemas/ProductAreaSchema.js.map +1 -0
  77. package/dist/schemas/ProductSchema.d.ts +145 -0
  78. package/dist/schemas/ProductSchema.d.ts.map +1 -0
  79. package/dist/schemas/ProductSchema.js +108 -0
  80. package/dist/schemas/ProductSchema.js.map +1 -0
  81. package/dist/schemas/StoreAreaSchema.d.ts +75 -0
  82. package/dist/schemas/StoreAreaSchema.d.ts.map +1 -0
  83. package/dist/schemas/StoreAreaSchema.js +25 -0
  84. package/dist/schemas/StoreAreaSchema.js.map +1 -0
  85. package/dist/schemas/StoreSchema.d.ts +145 -0
  86. package/dist/schemas/StoreSchema.d.ts.map +1 -0
  87. package/dist/schemas/StoreSchema.js +65 -0
  88. package/dist/schemas/StoreSchema.js.map +1 -0
  89. package/dist/schemas/UnitSchema.d.ts +81 -0
  90. package/dist/schemas/UnitSchema.d.ts.map +1 -0
  91. package/dist/schemas/UnitSchema.js +69 -0
  92. package/dist/schemas/UnitSchema.js.map +1 -0
  93. package/dist/schemas/UserSchema.d.ts +135 -14
  94. package/dist/schemas/UserSchema.d.ts.map +1 -1
  95. package/dist/schemas/UserSchema.js +64 -10
  96. package/dist/schemas/UserSchema.js.map +1 -1
  97. package/dist/schemas/index.d.ts +21 -1
  98. package/dist/schemas/index.d.ts.map +1 -1
  99. package/dist/schemas/index.js +21 -1
  100. package/dist/schemas/index.js.map +1 -1
  101. package/package.json +1 -1
@@ -0,0 +1,95 @@
1
+ import { Schema, Types } from "mongoose";
2
+ export interface ProductAreaAttributes {
3
+ name_local_language?: string;
4
+ product: Types.ObjectId;
5
+ area: Types.ObjectId;
6
+ mrp?: number;
7
+ price?: number;
8
+ status?: boolean;
9
+ createdAt?: Date;
10
+ updatedAt?: Date;
11
+ }
12
+ declare const ProductAreaSchema: Schema<ProductAreaAttributes, import("mongoose").Model<ProductAreaAttributes, any, any, any, any, any, ProductAreaAttributes>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ProductAreaAttributes, import("mongoose").Document<unknown, {}, ProductAreaAttributes, {
13
+ id: string;
14
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAreaAttributes & {
15
+ _id: Types.ObjectId;
16
+ } & {
17
+ __v: number;
18
+ }, "id"> & {
19
+ id: string;
20
+ }, {
21
+ name_local_language?: import("mongoose").SchemaDefinitionProperty<string | undefined, ProductAreaAttributes, import("mongoose").Document<unknown, {}, ProductAreaAttributes, {
22
+ id: string;
23
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAreaAttributes & {
24
+ _id: Types.ObjectId;
25
+ } & {
26
+ __v: number;
27
+ }, "id"> & {
28
+ id: string;
29
+ }> | undefined;
30
+ product?: import("mongoose").SchemaDefinitionProperty<Types.ObjectId, ProductAreaAttributes, import("mongoose").Document<unknown, {}, ProductAreaAttributes, {
31
+ id: string;
32
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAreaAttributes & {
33
+ _id: Types.ObjectId;
34
+ } & {
35
+ __v: number;
36
+ }, "id"> & {
37
+ id: string;
38
+ }> | undefined;
39
+ area?: import("mongoose").SchemaDefinitionProperty<Types.ObjectId, ProductAreaAttributes, import("mongoose").Document<unknown, {}, ProductAreaAttributes, {
40
+ id: string;
41
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAreaAttributes & {
42
+ _id: Types.ObjectId;
43
+ } & {
44
+ __v: number;
45
+ }, "id"> & {
46
+ id: string;
47
+ }> | undefined;
48
+ mrp?: import("mongoose").SchemaDefinitionProperty<number | undefined, ProductAreaAttributes, import("mongoose").Document<unknown, {}, ProductAreaAttributes, {
49
+ id: string;
50
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAreaAttributes & {
51
+ _id: Types.ObjectId;
52
+ } & {
53
+ __v: number;
54
+ }, "id"> & {
55
+ id: string;
56
+ }> | undefined;
57
+ price?: import("mongoose").SchemaDefinitionProperty<number | undefined, ProductAreaAttributes, import("mongoose").Document<unknown, {}, ProductAreaAttributes, {
58
+ id: string;
59
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAreaAttributes & {
60
+ _id: Types.ObjectId;
61
+ } & {
62
+ __v: number;
63
+ }, "id"> & {
64
+ id: string;
65
+ }> | undefined;
66
+ status?: import("mongoose").SchemaDefinitionProperty<boolean | undefined, ProductAreaAttributes, import("mongoose").Document<unknown, {}, ProductAreaAttributes, {
67
+ id: string;
68
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAreaAttributes & {
69
+ _id: Types.ObjectId;
70
+ } & {
71
+ __v: number;
72
+ }, "id"> & {
73
+ id: string;
74
+ }> | undefined;
75
+ createdAt?: import("mongoose").SchemaDefinitionProperty<Date | undefined, ProductAreaAttributes, import("mongoose").Document<unknown, {}, ProductAreaAttributes, {
76
+ id: string;
77
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAreaAttributes & {
78
+ _id: Types.ObjectId;
79
+ } & {
80
+ __v: number;
81
+ }, "id"> & {
82
+ id: string;
83
+ }> | undefined;
84
+ updatedAt?: import("mongoose").SchemaDefinitionProperty<Date | undefined, ProductAreaAttributes, import("mongoose").Document<unknown, {}, ProductAreaAttributes, {
85
+ id: string;
86
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAreaAttributes & {
87
+ _id: Types.ObjectId;
88
+ } & {
89
+ __v: number;
90
+ }, "id"> & {
91
+ id: string;
92
+ }> | undefined;
93
+ }, ProductAreaAttributes>;
94
+ export default ProductAreaSchema;
95
+ //# sourceMappingURL=ProductAreaSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductAreaSchema.d.ts","sourceRoot":"","sources":["../../src/schemas/ProductAreaSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,WAAW,qBAAqB;IACpC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC;IACxB,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAED,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAgCtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const mongoose_1 = require("mongoose");
4
+ const ProductAreaSchema = new mongoose_1.Schema({
5
+ name_local_language: {
6
+ type: String,
7
+ maxlength: 250
8
+ },
9
+ product: {
10
+ type: mongoose_1.Schema.Types.ObjectId,
11
+ ref: "Product",
12
+ required: true
13
+ },
14
+ area: {
15
+ type: mongoose_1.Schema.Types.ObjectId,
16
+ ref: "Area",
17
+ required: true
18
+ },
19
+ mrp: {
20
+ type: Number,
21
+ default: 0,
22
+ maxlength: 5
23
+ },
24
+ price: {
25
+ type: Number,
26
+ default: 0,
27
+ maxlength: 5
28
+ },
29
+ status: {
30
+ type: Boolean,
31
+ default: true
32
+ }
33
+ }, { timestamps: true });
34
+ exports.default = ProductAreaSchema;
35
+ //# sourceMappingURL=ProductAreaSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductAreaSchema.js","sourceRoot":"","sources":["../../src/schemas/ProductAreaSchema.ts"],"names":[],"mappings":";;AAAA,uCAAyC;AAazC,MAAM,iBAAiB,GAAG,IAAI,iBAAM,CAClC;IACE,mBAAmB,EAAE;QACnB,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,GAAG;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;IACD,GAAG,EAAE;QACH,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;QACV,SAAS,EAAE,CAAC;KACb;IACD,KAAK,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;QACV,SAAS,EAAE,CAAC;KACb;IACD,MAAM,EAAE;QACN,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,IAAI;KACd;CACF,EACD,EAAE,UAAU,EAAE,IAAI,EAAE,CACrB,CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
@@ -0,0 +1,145 @@
1
+ import { Schema, Types } from "mongoose";
2
+ export interface ProductAttributes {
3
+ name: string;
4
+ name_hindi: string;
5
+ sku: string;
6
+ description: string;
7
+ emoji: string;
8
+ image_url?: string;
9
+ base_price: number;
10
+ base_unit: Types.ObjectId;
11
+ category: Types.ObjectId;
12
+ is_global?: boolean;
13
+ status?: boolean;
14
+ createdAt?: Date;
15
+ updatedAt?: Date;
16
+ }
17
+ declare const ProductSchema: Schema<ProductAttributes, import("mongoose").Model<ProductAttributes, any, any, any, any, any, ProductAttributes>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ProductAttributes, import("mongoose").Document<unknown, {}, ProductAttributes, {
18
+ id: string;
19
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAttributes & {
20
+ _id: Types.ObjectId;
21
+ } & {
22
+ __v: number;
23
+ }, "id"> & {
24
+ id: string;
25
+ }, {
26
+ name?: import("mongoose").SchemaDefinitionProperty<string, ProductAttributes, import("mongoose").Document<unknown, {}, ProductAttributes, {
27
+ id: string;
28
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAttributes & {
29
+ _id: Types.ObjectId;
30
+ } & {
31
+ __v: number;
32
+ }, "id"> & {
33
+ id: string;
34
+ }> | undefined;
35
+ name_hindi?: import("mongoose").SchemaDefinitionProperty<string, ProductAttributes, import("mongoose").Document<unknown, {}, ProductAttributes, {
36
+ id: string;
37
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAttributes & {
38
+ _id: Types.ObjectId;
39
+ } & {
40
+ __v: number;
41
+ }, "id"> & {
42
+ id: string;
43
+ }> | undefined;
44
+ sku?: import("mongoose").SchemaDefinitionProperty<string, ProductAttributes, import("mongoose").Document<unknown, {}, ProductAttributes, {
45
+ id: string;
46
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAttributes & {
47
+ _id: Types.ObjectId;
48
+ } & {
49
+ __v: number;
50
+ }, "id"> & {
51
+ id: string;
52
+ }> | undefined;
53
+ description?: import("mongoose").SchemaDefinitionProperty<string, ProductAttributes, import("mongoose").Document<unknown, {}, ProductAttributes, {
54
+ id: string;
55
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAttributes & {
56
+ _id: Types.ObjectId;
57
+ } & {
58
+ __v: number;
59
+ }, "id"> & {
60
+ id: string;
61
+ }> | undefined;
62
+ emoji?: import("mongoose").SchemaDefinitionProperty<string, ProductAttributes, import("mongoose").Document<unknown, {}, ProductAttributes, {
63
+ id: string;
64
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAttributes & {
65
+ _id: Types.ObjectId;
66
+ } & {
67
+ __v: number;
68
+ }, "id"> & {
69
+ id: string;
70
+ }> | undefined;
71
+ image_url?: import("mongoose").SchemaDefinitionProperty<string | undefined, ProductAttributes, import("mongoose").Document<unknown, {}, ProductAttributes, {
72
+ id: string;
73
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAttributes & {
74
+ _id: Types.ObjectId;
75
+ } & {
76
+ __v: number;
77
+ }, "id"> & {
78
+ id: string;
79
+ }> | undefined;
80
+ base_price?: import("mongoose").SchemaDefinitionProperty<number, ProductAttributes, import("mongoose").Document<unknown, {}, ProductAttributes, {
81
+ id: string;
82
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAttributes & {
83
+ _id: Types.ObjectId;
84
+ } & {
85
+ __v: number;
86
+ }, "id"> & {
87
+ id: string;
88
+ }> | undefined;
89
+ base_unit?: import("mongoose").SchemaDefinitionProperty<Types.ObjectId, ProductAttributes, import("mongoose").Document<unknown, {}, ProductAttributes, {
90
+ id: string;
91
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAttributes & {
92
+ _id: Types.ObjectId;
93
+ } & {
94
+ __v: number;
95
+ }, "id"> & {
96
+ id: string;
97
+ }> | undefined;
98
+ category?: import("mongoose").SchemaDefinitionProperty<Types.ObjectId, ProductAttributes, import("mongoose").Document<unknown, {}, ProductAttributes, {
99
+ id: string;
100
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAttributes & {
101
+ _id: Types.ObjectId;
102
+ } & {
103
+ __v: number;
104
+ }, "id"> & {
105
+ id: string;
106
+ }> | undefined;
107
+ is_global?: import("mongoose").SchemaDefinitionProperty<boolean | undefined, ProductAttributes, import("mongoose").Document<unknown, {}, ProductAttributes, {
108
+ id: string;
109
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAttributes & {
110
+ _id: Types.ObjectId;
111
+ } & {
112
+ __v: number;
113
+ }, "id"> & {
114
+ id: string;
115
+ }> | undefined;
116
+ status?: import("mongoose").SchemaDefinitionProperty<boolean | undefined, ProductAttributes, import("mongoose").Document<unknown, {}, ProductAttributes, {
117
+ id: string;
118
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAttributes & {
119
+ _id: Types.ObjectId;
120
+ } & {
121
+ __v: number;
122
+ }, "id"> & {
123
+ id: string;
124
+ }> | undefined;
125
+ createdAt?: import("mongoose").SchemaDefinitionProperty<Date | undefined, ProductAttributes, import("mongoose").Document<unknown, {}, ProductAttributes, {
126
+ id: string;
127
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAttributes & {
128
+ _id: Types.ObjectId;
129
+ } & {
130
+ __v: number;
131
+ }, "id"> & {
132
+ id: string;
133
+ }> | undefined;
134
+ updatedAt?: import("mongoose").SchemaDefinitionProperty<Date | undefined, ProductAttributes, import("mongoose").Document<unknown, {}, ProductAttributes, {
135
+ id: string;
136
+ }, import("mongoose").DefaultSchemaOptions> & Omit<ProductAttributes & {
137
+ _id: Types.ObjectId;
138
+ } & {
139
+ __v: number;
140
+ }, "id"> & {
141
+ id: string;
142
+ }> | undefined;
143
+ }, ProductAttributes>;
144
+ export default ProductSchema;
145
+ //# sourceMappingURL=ProductSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductSchema.d.ts","sourceRoot":"","sources":["../../src/schemas/ProductSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC1B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAED,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA6DlB,CAAC;AAmDF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const mongoose_1 = require("mongoose");
4
+ const ProductSchema = new mongoose_1.Schema({
5
+ name: {
6
+ type: String,
7
+ required: true,
8
+ maxlength: 250
9
+ },
10
+ name_hindi: {
11
+ type: String,
12
+ required: true,
13
+ maxlength: 250
14
+ },
15
+ sku: {
16
+ type: String,
17
+ required: true,
18
+ unique: true,
19
+ maxlength: 100
20
+ },
21
+ description: {
22
+ type: String,
23
+ required: true,
24
+ maxlength: 2000
25
+ },
26
+ emoji: {
27
+ type: String,
28
+ required: true,
29
+ maxlength: 5
30
+ },
31
+ image_url: {
32
+ type: String,
33
+ maxlength: 500
34
+ },
35
+ base_price: {
36
+ type: Number,
37
+ required: true,
38
+ default: 10
39
+ },
40
+ base_unit: {
41
+ type: mongoose_1.Schema.Types.ObjectId,
42
+ ref: "Unit",
43
+ required: true
44
+ },
45
+ category: {
46
+ type: mongoose_1.Schema.Types.ObjectId,
47
+ ref: "Category",
48
+ required: true
49
+ },
50
+ is_global: {
51
+ type: Boolean,
52
+ default: false
53
+ },
54
+ status: {
55
+ type: Boolean,
56
+ default: false
57
+ }
58
+ }, {
59
+ timestamps: true,
60
+ toJSON: { virtuals: true },
61
+ toObject: { virtuals: true }
62
+ });
63
+ ProductSchema.post("save", async function (doc) {
64
+ const ProductArea = (await import("../models/mappings/ProductArea.js")).default;
65
+ if (doc.is_global) {
66
+ const Area = (await import("../models/Area.js")).default;
67
+ const areas = await Area.find();
68
+ const existingMappings = await ProductArea.find({
69
+ product: doc._id,
70
+ area: { $in: areas.map((area) => area._id) }
71
+ });
72
+ if (existingMappings.length === 0) {
73
+ const productAreaMappings = areas.map((area) => ({
74
+ product: doc._id,
75
+ area: area._id,
76
+ name_local_language: doc.name_hindi,
77
+ mrp: doc.base_price,
78
+ price: doc.base_price
79
+ }));
80
+ await ProductArea.insertMany(productAreaMappings);
81
+ }
82
+ }
83
+ if (!doc.status) {
84
+ await ProductArea.deleteMany({ product: doc._id });
85
+ }
86
+ else if (doc.status && doc.is_global) {
87
+ const Area = (await import("../models/Area.js")).default;
88
+ const areas = await Area.find();
89
+ const existingMappings = await ProductArea.find({
90
+ product: doc._id,
91
+ area: { $in: areas.map((area) => area._id) }
92
+ });
93
+ if (existingMappings.length === 0) {
94
+ const productAreaMappings = areas.map((area) => ({
95
+ product: doc._id,
96
+ area: area._id,
97
+ name_local_language: doc.name_hindi
98
+ }));
99
+ await ProductArea.insertMany(productAreaMappings);
100
+ }
101
+ }
102
+ });
103
+ ProductSchema.post("deleteOne", { document: true, query: false }, async function (doc) {
104
+ const ProductArea = (await import("../models/mappings/ProductArea.js")).default;
105
+ await ProductArea.deleteMany({ product: doc._id });
106
+ });
107
+ exports.default = ProductSchema;
108
+ //# sourceMappingURL=ProductSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductSchema.js","sourceRoot":"","sources":["../../src/schemas/ProductSchema.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,75 @@
1
+ import { Schema, Types } from "mongoose";
2
+ export interface StoreAreaAttributes {
3
+ store: Types.ObjectId;
4
+ area: Types.ObjectId;
5
+ admin_approved?: boolean;
6
+ status?: boolean;
7
+ createdAt?: Date;
8
+ updatedAt?: Date;
9
+ }
10
+ declare const StoreAreaSchema: Schema<StoreAreaAttributes, import("mongoose").Model<StoreAreaAttributes, any, any, any, any, any, StoreAreaAttributes>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, StoreAreaAttributes, import("mongoose").Document<unknown, {}, StoreAreaAttributes, {
11
+ id: string;
12
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAreaAttributes & {
13
+ _id: Types.ObjectId;
14
+ } & {
15
+ __v: number;
16
+ }, "id"> & {
17
+ id: string;
18
+ }, {
19
+ store?: import("mongoose").SchemaDefinitionProperty<Types.ObjectId, StoreAreaAttributes, import("mongoose").Document<unknown, {}, StoreAreaAttributes, {
20
+ id: string;
21
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAreaAttributes & {
22
+ _id: Types.ObjectId;
23
+ } & {
24
+ __v: number;
25
+ }, "id"> & {
26
+ id: string;
27
+ }> | undefined;
28
+ area?: import("mongoose").SchemaDefinitionProperty<Types.ObjectId, StoreAreaAttributes, import("mongoose").Document<unknown, {}, StoreAreaAttributes, {
29
+ id: string;
30
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAreaAttributes & {
31
+ _id: Types.ObjectId;
32
+ } & {
33
+ __v: number;
34
+ }, "id"> & {
35
+ id: string;
36
+ }> | undefined;
37
+ admin_approved?: import("mongoose").SchemaDefinitionProperty<boolean | undefined, StoreAreaAttributes, import("mongoose").Document<unknown, {}, StoreAreaAttributes, {
38
+ id: string;
39
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAreaAttributes & {
40
+ _id: Types.ObjectId;
41
+ } & {
42
+ __v: number;
43
+ }, "id"> & {
44
+ id: string;
45
+ }> | undefined;
46
+ status?: import("mongoose").SchemaDefinitionProperty<boolean | undefined, StoreAreaAttributes, import("mongoose").Document<unknown, {}, StoreAreaAttributes, {
47
+ id: string;
48
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAreaAttributes & {
49
+ _id: Types.ObjectId;
50
+ } & {
51
+ __v: number;
52
+ }, "id"> & {
53
+ id: string;
54
+ }> | undefined;
55
+ createdAt?: import("mongoose").SchemaDefinitionProperty<Date | undefined, StoreAreaAttributes, import("mongoose").Document<unknown, {}, StoreAreaAttributes, {
56
+ id: string;
57
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAreaAttributes & {
58
+ _id: Types.ObjectId;
59
+ } & {
60
+ __v: number;
61
+ }, "id"> & {
62
+ id: string;
63
+ }> | undefined;
64
+ updatedAt?: import("mongoose").SchemaDefinitionProperty<Date | undefined, StoreAreaAttributes, import("mongoose").Document<unknown, {}, StoreAreaAttributes, {
65
+ id: string;
66
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAreaAttributes & {
67
+ _id: Types.ObjectId;
68
+ } & {
69
+ __v: number;
70
+ }, "id"> & {
71
+ id: string;
72
+ }> | undefined;
73
+ }, StoreAreaAttributes>;
74
+ export default StoreAreaSchema;
75
+ //# sourceMappingURL=StoreAreaSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StoreAreaSchema.d.ts","sourceRoot":"","sources":["../../src/schemas/StoreAreaSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC;IACtB,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAED,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAsBpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const mongoose_1 = require("mongoose");
4
+ const StoreAreaSchema = new mongoose_1.Schema({
5
+ store: {
6
+ type: mongoose_1.Schema.Types.ObjectId,
7
+ ref: "Store",
8
+ required: true
9
+ },
10
+ area: {
11
+ type: mongoose_1.Schema.Types.ObjectId,
12
+ ref: "Area",
13
+ required: true
14
+ },
15
+ admin_approved: {
16
+ type: Boolean,
17
+ default: false
18
+ },
19
+ status: {
20
+ type: Boolean,
21
+ default: true
22
+ }
23
+ }, { timestamps: true });
24
+ exports.default = StoreAreaSchema;
25
+ //# sourceMappingURL=StoreAreaSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StoreAreaSchema.js","sourceRoot":"","sources":["../../src/schemas/StoreAreaSchema.ts"],"names":[],"mappings":";;AAAA,uCAAyC;AAWzC,MAAM,eAAe,GAAG,IAAI,iBAAM,CAChC;IACE,KAAK,EAAE;QACL,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ;QAC3B,GAAG,EAAE,OAAO;QACZ,QAAQ,EAAE,IAAI;KACf;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ;QAC3B,GAAG,EAAE,MAAM;QACX,QAAQ,EAAE,IAAI;KACf;IACD,cAAc,EAAE;QACd,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,KAAK;KACf;IACD,MAAM,EAAE;QACN,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,IAAI;KACd;CACF,EACD,EAAE,UAAU,EAAE,IAAI,EAAE,CACrB,CAAC;AAEF,kBAAe,eAAe,CAAC"}
@@ -0,0 +1,145 @@
1
+ import { Schema, Types } from "mongoose";
2
+ export interface StoreAttributes {
3
+ name: string;
4
+ name_local_language?: string;
5
+ name_hindi: string;
6
+ city: Types.ObjectId;
7
+ address: string;
8
+ phone: string;
9
+ owner_name: string;
10
+ owner_email: string;
11
+ owner_phone: string;
12
+ admin_approved?: boolean;
13
+ status?: boolean;
14
+ createdAt?: Date;
15
+ updatedAt?: Date;
16
+ }
17
+ declare const StoreSchema: Schema<StoreAttributes, import("mongoose").Model<StoreAttributes, any, any, any, any, any, StoreAttributes>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, StoreAttributes, import("mongoose").Document<unknown, {}, StoreAttributes, {
18
+ id: string;
19
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAttributes & {
20
+ _id: Types.ObjectId;
21
+ } & {
22
+ __v: number;
23
+ }, "id"> & {
24
+ id: string;
25
+ }, {
26
+ name?: import("mongoose").SchemaDefinitionProperty<string, StoreAttributes, import("mongoose").Document<unknown, {}, StoreAttributes, {
27
+ id: string;
28
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAttributes & {
29
+ _id: Types.ObjectId;
30
+ } & {
31
+ __v: number;
32
+ }, "id"> & {
33
+ id: string;
34
+ }> | undefined;
35
+ name_local_language?: import("mongoose").SchemaDefinitionProperty<string | undefined, StoreAttributes, import("mongoose").Document<unknown, {}, StoreAttributes, {
36
+ id: string;
37
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAttributes & {
38
+ _id: Types.ObjectId;
39
+ } & {
40
+ __v: number;
41
+ }, "id"> & {
42
+ id: string;
43
+ }> | undefined;
44
+ name_hindi?: import("mongoose").SchemaDefinitionProperty<string, StoreAttributes, import("mongoose").Document<unknown, {}, StoreAttributes, {
45
+ id: string;
46
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAttributes & {
47
+ _id: Types.ObjectId;
48
+ } & {
49
+ __v: number;
50
+ }, "id"> & {
51
+ id: string;
52
+ }> | undefined;
53
+ city?: import("mongoose").SchemaDefinitionProperty<Types.ObjectId, StoreAttributes, import("mongoose").Document<unknown, {}, StoreAttributes, {
54
+ id: string;
55
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAttributes & {
56
+ _id: Types.ObjectId;
57
+ } & {
58
+ __v: number;
59
+ }, "id"> & {
60
+ id: string;
61
+ }> | undefined;
62
+ address?: import("mongoose").SchemaDefinitionProperty<string, StoreAttributes, import("mongoose").Document<unknown, {}, StoreAttributes, {
63
+ id: string;
64
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAttributes & {
65
+ _id: Types.ObjectId;
66
+ } & {
67
+ __v: number;
68
+ }, "id"> & {
69
+ id: string;
70
+ }> | undefined;
71
+ phone?: import("mongoose").SchemaDefinitionProperty<string, StoreAttributes, import("mongoose").Document<unknown, {}, StoreAttributes, {
72
+ id: string;
73
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAttributes & {
74
+ _id: Types.ObjectId;
75
+ } & {
76
+ __v: number;
77
+ }, "id"> & {
78
+ id: string;
79
+ }> | undefined;
80
+ owner_name?: import("mongoose").SchemaDefinitionProperty<string, StoreAttributes, import("mongoose").Document<unknown, {}, StoreAttributes, {
81
+ id: string;
82
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAttributes & {
83
+ _id: Types.ObjectId;
84
+ } & {
85
+ __v: number;
86
+ }, "id"> & {
87
+ id: string;
88
+ }> | undefined;
89
+ owner_email?: import("mongoose").SchemaDefinitionProperty<string, StoreAttributes, import("mongoose").Document<unknown, {}, StoreAttributes, {
90
+ id: string;
91
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAttributes & {
92
+ _id: Types.ObjectId;
93
+ } & {
94
+ __v: number;
95
+ }, "id"> & {
96
+ id: string;
97
+ }> | undefined;
98
+ owner_phone?: import("mongoose").SchemaDefinitionProperty<string, StoreAttributes, import("mongoose").Document<unknown, {}, StoreAttributes, {
99
+ id: string;
100
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAttributes & {
101
+ _id: Types.ObjectId;
102
+ } & {
103
+ __v: number;
104
+ }, "id"> & {
105
+ id: string;
106
+ }> | undefined;
107
+ admin_approved?: import("mongoose").SchemaDefinitionProperty<boolean | undefined, StoreAttributes, import("mongoose").Document<unknown, {}, StoreAttributes, {
108
+ id: string;
109
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAttributes & {
110
+ _id: Types.ObjectId;
111
+ } & {
112
+ __v: number;
113
+ }, "id"> & {
114
+ id: string;
115
+ }> | undefined;
116
+ status?: import("mongoose").SchemaDefinitionProperty<boolean | undefined, StoreAttributes, import("mongoose").Document<unknown, {}, StoreAttributes, {
117
+ id: string;
118
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAttributes & {
119
+ _id: Types.ObjectId;
120
+ } & {
121
+ __v: number;
122
+ }, "id"> & {
123
+ id: string;
124
+ }> | undefined;
125
+ createdAt?: import("mongoose").SchemaDefinitionProperty<Date | undefined, StoreAttributes, import("mongoose").Document<unknown, {}, StoreAttributes, {
126
+ id: string;
127
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAttributes & {
128
+ _id: Types.ObjectId;
129
+ } & {
130
+ __v: number;
131
+ }, "id"> & {
132
+ id: string;
133
+ }> | undefined;
134
+ updatedAt?: import("mongoose").SchemaDefinitionProperty<Date | undefined, StoreAttributes, import("mongoose").Document<unknown, {}, StoreAttributes, {
135
+ id: string;
136
+ }, import("mongoose").DefaultSchemaOptions> & Omit<StoreAttributes & {
137
+ _id: Types.ObjectId;
138
+ } & {
139
+ __v: number;
140
+ }, "id"> & {
141
+ id: string;
142
+ }> | undefined;
143
+ }, StoreAttributes>;
144
+ export default StoreSchema;
145
+ //# sourceMappingURL=StoreSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StoreSchema.d.ts","sourceRoot":"","sources":["../../src/schemas/StoreSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAED,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA8DhB,CAAC;AAEF,eAAe,WAAW,CAAC"}