@managesome/eposmatic-toolkit 0.2.758 → 0.2.759

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.
@@ -292,6 +292,13 @@ export declare enum WAREHOUSE_CLIENT_TYPE_ENUM {
292
292
  WAREHOUSE = "WAREHOUSE"
293
293
  }
294
294
  export declare const ALL_WAREHOUSE_CLIENT_TYPE_NAMES: WAREHOUSE_CLIENT_TYPE_ENUM[];
295
+ export declare enum TENANT_CLIENT_TYPE_ENUM {
296
+ EXTERNAL = "EXTERNAL",
297
+ EXTERNAL_WAREHOUSE = "EXTERNAL_WAREHOUSE",
298
+ TENANT = "TENANT",
299
+ WAREHOUSE = "WAREHOUSE"
300
+ }
301
+ export declare const ALL_TENANT_CLIENT_TYPE_NAMES: TENANT_CLIENT_TYPE_ENUM[];
295
302
  export declare enum VENDOR_TYPE_ENUM {
296
303
  EXTERNAL = "EXTERNAL",
297
304
  EXTERNAL_WAREHOUSE = "EXTERNAL_WAREHOUSE",
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ALL_WAREHOUSE_INTERNAL_MOVEMENT_LOCATION_TYPE_NAMES = exports.WAREHOUSE_INTERNAL_MOVEMENT_LOCATION_TYPE_ENUM = exports.ALL_WAREHOUSE_INTERNAL_MOVEMENT_FLOW_NAMES = exports.WAREHOUSE_INTERNAL_MOVEMENT_FLOW_ENUM = exports.ALL_WAREHOUSE_INTERNAL_MOVEMENT_EDIT_REQUEST_STATUS_NAMES = exports.ALL_WAREHOUSE_INVENTORY_LOT_SERIAL_MUTATION_ACTION_NAMES = exports.WAREHOUSE_INVENTORY_LOT_SERIAL_MUTATION_ACTION_ENUM = exports.ALL_WAREHOUSE_INVENTORY_LOT_SERIAL_MOVEMENT_TYPE_NAMES = exports.WAREHOUSE_INVENTORY_LOT_SERIAL_MOVEMENT_TYPE_ENUM = exports.WAREHOUSE_INTERNAL_MOVEMENT_EDIT_REQUEST_STATUS_ENUM = exports.ALL_WAREHOUSE_INTERNAL_MOVEMENT_STATUS_NAMES = exports.WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM = exports.ALL_WAREHOUSE_INTERNAL_MOVEMENT_RECORD_TYPE_NAMES = exports.WAREHOUSE_INTERNAL_MOVEMENT_RECORD_TYPE_ENUM = exports.ALL_WAREHOUSE_REF_TYPE_NAMES = exports.WAREHOUSE_REF_TYPE_ENUM = exports.ALL_WAREHOUSE_SALE_ORDER_DELIVERY_RETURN_STATUS_NAMES = exports.WAREHOUSE_SALE_ORDER_DELIVERY_RETURN_STATUS_ENUM = exports.ALL_WAREHOUSE_SALE_ORDER_DELIVERY_STATUS_NAMES = exports.WAREHOUSE_SALE_ORDER_DELIVERY_STATUS_ENUM = exports.ALL_WAREHOUSE_SALE_ORDER_PHYSICAL_DOC_KIND_NAMES = exports.WAREHOUSE_SALE_ORDER_PHYSICAL_DOC_KIND_ENUM = exports.ALL_WAREHOUSE_SALE_ORDER_CREDIT_NOTE_STATUS_NAMES = exports.WAREHOUSE_SALE_ORDER_CREDIT_NOTE_STATUS_ENUM = exports.ALL_WAREHOUSE_SALE_ORDER_INVOICE_PAYMENT_STATUS_NAMES = exports.WAREHOUSE_SALE_ORDER_INVOICE_PAYMENT_STATUS_ENUM = exports.ALL_WAREHOUSE_SALE_ORDER_INVOICE_TYPE_NAMES = exports.WAREHOUSE_SALE_ORDER_INVOICE_TYPE_ENUM = exports.ALL_WAREHOUSE_SALE_ORDER_FIN_DOC_KIND_NAMES = exports.WAREHOUSE_SALE_ORDER_FIN_DOC_KIND_ENUM = exports.ALL_WAREHOUSE_SALES_ORDER_STATUS_NAMES = exports.WAREHOUSE_SALES_ORDER_STATUS_ENUM = exports.ALL_WAREHOUSE_SALE_ORDER_RFQ_STATUS_NAMES = exports.WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM = exports.ALL_WAREHOUSE_RFQ_VENDOR_STATUS_NAMES = exports.WAREHOUSE_PURCHASE_ORDER_RFQ_VENDOR_STATUS_ENUM = exports.ALL_WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_NAMES = exports.WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM = exports.ALL_WAREHOUSE_PURCHASE_ORDER_STATUS_NAMES = exports.WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM = exports.ALL_VOID_WAREHOUSE_INVOICE_ITEM_TYPE_NAMES = exports.VOID_WAREHOUSE_INVOICE_ITEM_TYPE_ENUM = exports.ALL_WAREHOUSE_REMOVAL_STRATEGY_NAMES = exports.WAREHOUSE_REMOVAL_STRATEGY_ENUM = exports.ALL_WAREHOUSE_LOT_SERIAL_MOVEMENT_SOURCE_NAMES = exports.WAREHOUSE_LOT_SERIAL_MOVEMENT_SOURCE_ENUM = exports.ALL_WAREHOUSE_LOT_SERIAL_DOC_TYPE_NAMES = exports.WAREHOUSE_LOT_SERIAL_DOC_TYPE_ENUM = exports.ALL_WAREHOUSE_TRACKING_MODE_NAMES = exports.WAREHOUSE_TRACKING_MODE_ENUM = void 0;
4
- exports.ALL_VENDOR_TYPE_NAMES = exports.VENDOR_TYPE_ENUM = exports.ALL_WAREHOUSE_CLIENT_TYPE_NAMES = exports.WAREHOUSE_CLIENT_TYPE_ENUM = exports.ALL_WAREHOUSE_SUPPORT_SPECIALIST_PERMISSION_NAMES = exports.ALL_WAREHOUSE_MODERATOR_PERMISSION_NAMES = exports.ALL_WAREHOUSE_USER_PERMISSION_NAMES = exports.WAREHOUSE_USER_PERMISSIONS_ENUM = exports.ALL_WAREHOUSE_ACTIVITY_LOG_SEVERITY_NAMES = exports.WAREHOUSE_ACTIVITY_LOG_SEVERITY_ENUM = exports.ALL_WAREHOUSE_ACTIVITY_LOG_ACTION_NAMES = exports.WAREHOUSE_ACTIVITY_LOG_ACTION_ENUM = exports.ALL_WAREHOUSE_ACTIVITY_LOG_ENTITY_TYPE_NAMES = exports.WAREHOUSE_ACTIVITY_LOG_ENTITY_TYPE_ENUM = exports.ALL_WAREHOUSE_PURCHASE_ORDER_VENDOR_RETURN_STATUS_NAMES = exports.WAREHOUSE_PURCHASE_ORDER_VENDOR_RETURN_STATUS_ENUM = exports.ALL_WAREHOUSE_PURCHASE_ORDER_RECEIPT_STATUS_NAMES = exports.WAREHOUSE_PURCHASE_ORDER_RECEIPT_STATUS_ENUM = exports.ALL_WAREHOUSE_INTERNAL_MOVEMENT_DIRECTION_NAMES = exports.WAREHOUSE_INTERNAL_MOVEMENT_DIRECTION_ENUM = void 0;
4
+ exports.ALL_VENDOR_TYPE_NAMES = exports.VENDOR_TYPE_ENUM = exports.ALL_TENANT_CLIENT_TYPE_NAMES = exports.TENANT_CLIENT_TYPE_ENUM = exports.ALL_WAREHOUSE_CLIENT_TYPE_NAMES = exports.WAREHOUSE_CLIENT_TYPE_ENUM = exports.ALL_WAREHOUSE_SUPPORT_SPECIALIST_PERMISSION_NAMES = exports.ALL_WAREHOUSE_MODERATOR_PERMISSION_NAMES = exports.ALL_WAREHOUSE_USER_PERMISSION_NAMES = exports.WAREHOUSE_USER_PERMISSIONS_ENUM = exports.ALL_WAREHOUSE_ACTIVITY_LOG_SEVERITY_NAMES = exports.WAREHOUSE_ACTIVITY_LOG_SEVERITY_ENUM = exports.ALL_WAREHOUSE_ACTIVITY_LOG_ACTION_NAMES = exports.WAREHOUSE_ACTIVITY_LOG_ACTION_ENUM = exports.ALL_WAREHOUSE_ACTIVITY_LOG_ENTITY_TYPE_NAMES = exports.WAREHOUSE_ACTIVITY_LOG_ENTITY_TYPE_ENUM = exports.ALL_WAREHOUSE_PURCHASE_ORDER_VENDOR_RETURN_STATUS_NAMES = exports.WAREHOUSE_PURCHASE_ORDER_VENDOR_RETURN_STATUS_ENUM = exports.ALL_WAREHOUSE_PURCHASE_ORDER_RECEIPT_STATUS_NAMES = exports.WAREHOUSE_PURCHASE_ORDER_RECEIPT_STATUS_ENUM = exports.ALL_WAREHOUSE_INTERNAL_MOVEMENT_DIRECTION_NAMES = exports.WAREHOUSE_INTERNAL_MOVEMENT_DIRECTION_ENUM = void 0;
5
5
  // ======================>> <<====================== //
6
6
  var WAREHOUSE_TRACKING_MODE_ENUM;
7
7
  (function (WAREHOUSE_TRACKING_MODE_ENUM) {
@@ -397,6 +397,15 @@ var WAREHOUSE_CLIENT_TYPE_ENUM;
397
397
  })(WAREHOUSE_CLIENT_TYPE_ENUM || (exports.WAREHOUSE_CLIENT_TYPE_ENUM = WAREHOUSE_CLIENT_TYPE_ENUM = {}));
398
398
  exports.ALL_WAREHOUSE_CLIENT_TYPE_NAMES = Object.values(WAREHOUSE_CLIENT_TYPE_ENUM);
399
399
  // ======================>> <<====================== //
400
+ var TENANT_CLIENT_TYPE_ENUM;
401
+ (function (TENANT_CLIENT_TYPE_ENUM) {
402
+ TENANT_CLIENT_TYPE_ENUM["EXTERNAL"] = "EXTERNAL";
403
+ TENANT_CLIENT_TYPE_ENUM["EXTERNAL_WAREHOUSE"] = "EXTERNAL_WAREHOUSE";
404
+ TENANT_CLIENT_TYPE_ENUM["TENANT"] = "TENANT";
405
+ TENANT_CLIENT_TYPE_ENUM["WAREHOUSE"] = "WAREHOUSE";
406
+ })(TENANT_CLIENT_TYPE_ENUM || (exports.TENANT_CLIENT_TYPE_ENUM = TENANT_CLIENT_TYPE_ENUM = {}));
407
+ exports.ALL_TENANT_CLIENT_TYPE_NAMES = Object.values(TENANT_CLIENT_TYPE_ENUM);
408
+ // ======================>> <<====================== //
400
409
  var VENDOR_TYPE_ENUM;
401
410
  (function (VENDOR_TYPE_ENUM) {
402
411
  VENDOR_TYPE_ENUM["EXTERNAL"] = "EXTERNAL";
@@ -49,6 +49,7 @@ export * from './tenant_cash_drawer_sessions';
49
49
  export * from './tenant_cash_drawers';
50
50
  export * from './tenant_cash_in_hand_transactions';
51
51
  export * from './tenant_cash_in_out';
52
+ export * from './tenant_clients';
52
53
  export * from './tenant_day_sessions';
53
54
  export * from './tenant_hr_attendance_records';
54
55
  export * from './tenant_hr_biometric_enrollments';
@@ -65,6 +65,7 @@ __exportStar(require("./tenant_cash_drawer_sessions"), exports);
65
65
  __exportStar(require("./tenant_cash_drawers"), exports);
66
66
  __exportStar(require("./tenant_cash_in_hand_transactions"), exports);
67
67
  __exportStar(require("./tenant_cash_in_out"), exports);
68
+ __exportStar(require("./tenant_clients"), exports);
68
69
  __exportStar(require("./tenant_day_sessions"), exports);
69
70
  __exportStar(require("./tenant_hr_attendance_records"), exports);
70
71
  __exportStar(require("./tenant_hr_biometric_enrollments"), exports);
@@ -0,0 +1,59 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const TenantClientsSchema: 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
+ type: import("../../constants").TENANT_CLIENT_TYPE_ENUM;
12
+ name: string;
13
+ tenant_id: string;
14
+ createdAt: NativeDate;
15
+ updatedAt: NativeDate;
16
+ subtitle: string;
17
+ active: boolean;
18
+ sort_id: number;
19
+ ref_id: string;
20
+ phone_number: string;
21
+ email: string;
22
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
23
+ createdAt: NativeDate;
24
+ updatedAt: NativeDate;
25
+ } & {
26
+ _id: import("mongoose").Types.ObjectId;
27
+ type: import("../../constants").TENANT_CLIENT_TYPE_ENUM;
28
+ name: string;
29
+ tenant_id: string;
30
+ createdAt: NativeDate;
31
+ updatedAt: NativeDate;
32
+ subtitle: string;
33
+ active: boolean;
34
+ sort_id: number;
35
+ ref_id: string;
36
+ phone_number: string;
37
+ email: string;
38
+ }>> & import("mongoose").FlatRecord<{
39
+ createdAt: NativeDate;
40
+ updatedAt: NativeDate;
41
+ } & {
42
+ _id: import("mongoose").Types.ObjectId;
43
+ type: import("../../constants").TENANT_CLIENT_TYPE_ENUM;
44
+ name: string;
45
+ tenant_id: string;
46
+ createdAt: NativeDate;
47
+ updatedAt: NativeDate;
48
+ subtitle: string;
49
+ active: boolean;
50
+ sort_id: number;
51
+ ref_id: string;
52
+ phone_number: string;
53
+ email: string;
54
+ }> & Required<{
55
+ _id: import("mongoose").Types.ObjectId;
56
+ }> & {
57
+ __v: number;
58
+ }>;
59
+ export declare const TENANT_CLIENTS_COLLECTION_NAME = "tenant_clients";
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TENANT_CLIENTS_COLLECTION_NAME = exports.TenantClientsSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const constants_1 = require("../../constants");
6
+ exports.TenantClientsSchema = 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
+ ref_id: {
19
+ type: String,
20
+ immutable: true,
21
+ default: null,
22
+ },
23
+ type: {
24
+ type: String,
25
+ required: true,
26
+ enum: constants_1.ALL_TENANT_CLIENT_TYPE_NAMES,
27
+ immutable: true,
28
+ },
29
+ email: {
30
+ type: String,
31
+ default: null,
32
+ },
33
+ phone_number: {
34
+ type: String,
35
+ default: null,
36
+ },
37
+ name: {
38
+ type: String,
39
+ required: true,
40
+ },
41
+ subtitle: {
42
+ type: String,
43
+ required: true,
44
+ },
45
+ sort_id: {
46
+ type: Number,
47
+ required: true,
48
+ },
49
+ active: {
50
+ type: Boolean,
51
+ required: true,
52
+ },
53
+ createdAt: {
54
+ type: mongoose_1.Schema.Types.Date,
55
+ required: true,
56
+ default: () => new Date(),
57
+ immutable: true,
58
+ },
59
+ updatedAt: {
60
+ type: mongoose_1.Schema.Types.Date,
61
+ required: true,
62
+ default: () => new Date(),
63
+ },
64
+ }, {
65
+ timestamps: true,
66
+ versionKey: false,
67
+ minimize: false,
68
+ });
69
+ exports.TENANT_CLIENTS_COLLECTION_NAME = 'tenant_clients';
@@ -56,6 +56,7 @@ export * from './tenant_cash_drawer_sessions';
56
56
  export * from './tenant_cash_drawers';
57
57
  export * from './tenant_cash_in_hand_transactions';
58
58
  export * from './tenant_cash_in_out';
59
+ export * from './tenant_clients';
59
60
  export * from './tenant_day_sessions';
60
61
  export * from './tenant_hr_attendance_records';
61
62
  export * from './tenant_hr_biometric_enrollments';
@@ -72,6 +72,7 @@ __exportStar(require("./tenant_cash_drawer_sessions"), exports);
72
72
  __exportStar(require("./tenant_cash_drawers"), exports);
73
73
  __exportStar(require("./tenant_cash_in_hand_transactions"), exports);
74
74
  __exportStar(require("./tenant_cash_in_out"), exports);
75
+ __exportStar(require("./tenant_clients"), exports);
75
76
  __exportStar(require("./tenant_day_sessions"), exports);
76
77
  __exportStar(require("./tenant_hr_attendance_records"), exports);
77
78
  __exportStar(require("./tenant_hr_biometric_enrollments"), exports);
@@ -0,0 +1,15 @@
1
+ import { TENANT_CLIENT_TYPE_ENUM } from '../../constants';
2
+ export interface ITenantClient {
3
+ _id: string;
4
+ tenant_id: string;
5
+ ref_id: string | null;
6
+ type: TENANT_CLIENT_TYPE_ENUM;
7
+ email: string | null;
8
+ phone_number: string | null;
9
+ name: string;
10
+ subtitle: string;
11
+ sort_id: number;
12
+ active: boolean;
13
+ createdAt: Date;
14
+ updatedAt: Date;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.758",
3
+ "version": "0.2.759",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",