@managesome/eposmatic-toolkit 0.2.437 → 0.2.438

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.
@@ -50,6 +50,7 @@ export * from './tenant_days';
50
50
  export * from './tenant_metadata';
51
51
  export * from './tenant_shifts';
52
52
  export * from './tenant_staffs';
53
+ export * from './tenant_vendors';
53
54
  export * from './tenants';
54
55
  export * from './terminal_devices';
55
56
  export * from './tokens';
@@ -66,6 +66,7 @@ __exportStar(require("./tenant_days"), exports);
66
66
  __exportStar(require("./tenant_metadata"), exports);
67
67
  __exportStar(require("./tenant_shifts"), exports);
68
68
  __exportStar(require("./tenant_staffs"), exports);
69
+ __exportStar(require("./tenant_vendors"), exports);
69
70
  __exportStar(require("./tenants"), exports);
70
71
  __exportStar(require("./terminal_devices"), exports);
71
72
  __exportStar(require("./tokens"), exports);
@@ -0,0 +1,89 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const TenantVendorsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
3
+ timestamps: true;
4
+ versionKey: false;
5
+ minimize: false;
6
+ }, {
7
+ createdAt: NativeDate;
8
+ updatedAt: NativeDate;
9
+ } & {
10
+ _id: import("mongoose").Types.ObjectId;
11
+ name: string;
12
+ tenant_id: string;
13
+ createdAt: NativeDate;
14
+ updatedAt: NativeDate;
15
+ subtitle: string;
16
+ active: boolean;
17
+ sort_id: number;
18
+ included_categories: import("mongoose").Types.DocumentArray<{
19
+ category_id: import("mongoose").Types.ObjectId;
20
+ excluded_items: import("mongoose").Types.ObjectId[];
21
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
22
+ category_id: import("mongoose").Types.ObjectId;
23
+ excluded_items: import("mongoose").Types.ObjectId[];
24
+ }> & {
25
+ category_id: import("mongoose").Types.ObjectId;
26
+ excluded_items: import("mongoose").Types.ObjectId[];
27
+ }>;
28
+ phone_number: string;
29
+ uid: string;
30
+ email: string;
31
+ tax_business_number: string;
32
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
33
+ createdAt: NativeDate;
34
+ updatedAt: NativeDate;
35
+ } & {
36
+ _id: import("mongoose").Types.ObjectId;
37
+ name: string;
38
+ tenant_id: string;
39
+ createdAt: NativeDate;
40
+ updatedAt: NativeDate;
41
+ subtitle: string;
42
+ active: boolean;
43
+ sort_id: number;
44
+ included_categories: import("mongoose").Types.DocumentArray<{
45
+ category_id: import("mongoose").Types.ObjectId;
46
+ excluded_items: import("mongoose").Types.ObjectId[];
47
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
48
+ category_id: import("mongoose").Types.ObjectId;
49
+ excluded_items: import("mongoose").Types.ObjectId[];
50
+ }> & {
51
+ category_id: import("mongoose").Types.ObjectId;
52
+ excluded_items: import("mongoose").Types.ObjectId[];
53
+ }>;
54
+ phone_number: string;
55
+ uid: string;
56
+ email: string;
57
+ tax_business_number: string;
58
+ }>> & import("mongoose").FlatRecord<{
59
+ createdAt: NativeDate;
60
+ updatedAt: NativeDate;
61
+ } & {
62
+ _id: import("mongoose").Types.ObjectId;
63
+ name: string;
64
+ tenant_id: string;
65
+ createdAt: NativeDate;
66
+ updatedAt: NativeDate;
67
+ subtitle: string;
68
+ active: boolean;
69
+ sort_id: number;
70
+ included_categories: import("mongoose").Types.DocumentArray<{
71
+ category_id: import("mongoose").Types.ObjectId;
72
+ excluded_items: import("mongoose").Types.ObjectId[];
73
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
74
+ category_id: import("mongoose").Types.ObjectId;
75
+ excluded_items: import("mongoose").Types.ObjectId[];
76
+ }> & {
77
+ category_id: import("mongoose").Types.ObjectId;
78
+ excluded_items: import("mongoose").Types.ObjectId[];
79
+ }>;
80
+ phone_number: string;
81
+ uid: string;
82
+ email: string;
83
+ tax_business_number: string;
84
+ }> & Required<{
85
+ _id: import("mongoose").Types.ObjectId;
86
+ }> & {
87
+ __v: number;
88
+ }>;
89
+ export declare const VENDORS_COLLECTION_NAME = "tenant_vendors";
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VENDORS_COLLECTION_NAME = exports.TenantVendorsSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const common_models_1 = require("./common-models");
6
+ exports.TenantVendorsSchema = new mongoose_1.Schema({
7
+ _id: {
8
+ type: mongoose_1.Schema.Types.ObjectId,
9
+ required: true,
10
+ immutable: true,
11
+ },
12
+ tenant_id: {
13
+ type: String,
14
+ required: true,
15
+ immutable: true,
16
+ ref: 'tenants',
17
+ },
18
+ uid: {
19
+ type: String,
20
+ required: true,
21
+ immutable: true,
22
+ },
23
+ phone_number: {
24
+ type: String,
25
+ required: true,
26
+ minlength: 10,
27
+ immutable: true,
28
+ },
29
+ email: {
30
+ type: String,
31
+ default: null,
32
+ },
33
+ name: {
34
+ type: String,
35
+ required: true,
36
+ },
37
+ subtitle: {
38
+ type: String,
39
+ required: true,
40
+ },
41
+ sort_id: {
42
+ type: Number,
43
+ required: true,
44
+ },
45
+ active: {
46
+ type: Boolean,
47
+ required: true,
48
+ },
49
+ tax_business_number: {
50
+ type: String,
51
+ default: '',
52
+ },
53
+ included_categories: {
54
+ type: [common_models_1.IncludedCategoriesSchema],
55
+ default: [],
56
+ },
57
+ createdAt: {
58
+ type: mongoose_1.Schema.Types.Date,
59
+ required: true,
60
+ default: () => new Date(),
61
+ immutable: true,
62
+ },
63
+ updatedAt: {
64
+ type: mongoose_1.Schema.Types.Date,
65
+ required: true,
66
+ default: () => new Date(),
67
+ },
68
+ }, {
69
+ timestamps: true,
70
+ versionKey: false,
71
+ minimize: false,
72
+ });
73
+ exports.VENDORS_COLLECTION_NAME = 'tenant_vendors';
@@ -18,6 +18,7 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
18
18
  quantity: number;
19
19
  item_name: string;
20
20
  received_qty: number;
21
+ unit_price?: number | null | undefined;
21
22
  notes?: string | null | undefined;
22
23
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
23
24
  _id: import("mongoose").Types.ObjectId;
@@ -26,6 +27,7 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
26
27
  quantity: number;
27
28
  item_name: string;
28
29
  received_qty: number;
30
+ unit_price?: number | null | undefined;
29
31
  notes?: string | null | undefined;
30
32
  }> & {
31
33
  _id: import("mongoose").Types.ObjectId;
@@ -34,6 +36,7 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
34
36
  quantity: number;
35
37
  item_name: string;
36
38
  received_qty: number;
39
+ unit_price?: number | null | undefined;
37
40
  notes?: string | null | undefined;
38
41
  }>;
39
42
  status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
@@ -133,6 +136,7 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
133
136
  quantity: number;
134
137
  item_name: string;
135
138
  received_qty: number;
139
+ unit_price?: number | null | undefined;
136
140
  notes?: string | null | undefined;
137
141
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
138
142
  _id: import("mongoose").Types.ObjectId;
@@ -141,6 +145,7 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
141
145
  quantity: number;
142
146
  item_name: string;
143
147
  received_qty: number;
148
+ unit_price?: number | null | undefined;
144
149
  notes?: string | null | undefined;
145
150
  }> & {
146
151
  _id: import("mongoose").Types.ObjectId;
@@ -149,6 +154,7 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
149
154
  quantity: number;
150
155
  item_name: string;
151
156
  received_qty: number;
157
+ unit_price?: number | null | undefined;
152
158
  notes?: string | null | undefined;
153
159
  }>;
154
160
  status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
@@ -248,6 +254,7 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
248
254
  quantity: number;
249
255
  item_name: string;
250
256
  received_qty: number;
257
+ unit_price?: number | null | undefined;
251
258
  notes?: string | null | undefined;
252
259
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
253
260
  _id: import("mongoose").Types.ObjectId;
@@ -256,6 +263,7 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
256
263
  quantity: number;
257
264
  item_name: string;
258
265
  received_qty: number;
266
+ unit_price?: number | null | undefined;
259
267
  notes?: string | null | undefined;
260
268
  }> & {
261
269
  _id: import("mongoose").Types.ObjectId;
@@ -264,6 +272,7 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
264
272
  quantity: number;
265
273
  item_name: string;
266
274
  received_qty: number;
275
+ unit_price?: number | null | undefined;
267
276
  notes?: string | null | undefined;
268
277
  }>;
269
278
  status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
@@ -50,6 +50,11 @@ const WarehouseInternalMovementItemSchema = new mongoose_1.Schema({
50
50
  required: true,
51
51
  default: 0,
52
52
  },
53
+ unit_price: {
54
+ type: Number,
55
+ min: 0,
56
+ required: false,
57
+ },
53
58
  notes: {
54
59
  type: String,
55
60
  required: false,
@@ -53,6 +53,7 @@ export * from './tenant_days';
53
53
  export * from './tenant_metadata';
54
54
  export * from './tenant_shifts';
55
55
  export * from './tenant_staffs';
56
+ export * from './tenant_vendors';
56
57
  export * from './tenants';
57
58
  export * from './terminal_devices';
58
59
  export * from './tokens';
@@ -69,6 +69,7 @@ __exportStar(require("./tenant_days"), exports);
69
69
  __exportStar(require("./tenant_metadata"), exports);
70
70
  __exportStar(require("./tenant_shifts"), exports);
71
71
  __exportStar(require("./tenant_staffs"), exports);
72
+ __exportStar(require("./tenant_vendors"), exports);
72
73
  __exportStar(require("./tenants"), exports);
73
74
  __exportStar(require("./terminal_devices"), exports);
74
75
  __exportStar(require("./tokens"), exports);
@@ -0,0 +1,16 @@
1
+ import { IIncludedCategory } from './courses';
2
+ export interface ITenantVendor {
3
+ _id: string;
4
+ tenant_id: string;
5
+ uid: string;
6
+ phone_number: string;
7
+ email: string | null;
8
+ name: string;
9
+ subtitle: string;
10
+ sort_id: number;
11
+ active: boolean;
12
+ tax_business_number: string;
13
+ included_categories: IIncludedCategory[];
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,6 +10,7 @@ export interface IWarehouseInternalMovementItem {
10
10
  item_name: string;
11
11
  quantity: number;
12
12
  received_qty: number;
13
+ unit_price?: number;
13
14
  notes?: string | null;
14
15
  }
15
16
  export interface IWarehouseInternalMovementStatusMeta {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.437",
3
+ "version": "0.2.438",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",