@managesome/eposmatic-toolkit 0.4.37 → 0.4.39

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 (57) hide show
  1. package/esm/constants/accounting-templates.js +431 -0
  2. package/esm/constants/index.js +1 -0
  3. package/esm/helpers/store/cart-actions.js +54 -6
  4. package/esm/helpers/utils/cart-helpers.js +19 -5
  5. package/esm/helpers/utils/common.js +18 -1
  6. package/esm/helpers/utils/offer-apply-helpers.js +5 -3
  7. package/esm/helpers/utils/offers-helpers.js +92 -63
  8. package/lib/constants/accounting-templates.d.ts +8 -0
  9. package/lib/constants/accounting-templates.js +434 -0
  10. package/lib/constants/index.d.ts +1 -0
  11. package/lib/constants/index.js +1 -0
  12. package/lib/helpers/store/cart-actions.js +54 -6
  13. package/lib/helpers/utils/cart-helpers.js +19 -5
  14. package/lib/helpers/utils/common.d.ts +15 -0
  15. package/lib/helpers/utils/common.js +19 -1
  16. package/lib/helpers/utils/offer-apply-helpers.js +5 -3
  17. package/lib/helpers/utils/offers-helpers.d.ts +15 -4
  18. package/lib/helpers/utils/offers-helpers.js +92 -62
  19. package/lib/schemas/models/expense_categories.d.ts +3 -3
  20. package/lib/schemas/models/expense_details.d.ts +3 -3
  21. package/lib/schemas/models/gift_cards.d.ts +3 -3
  22. package/lib/schemas/models/halfhalf_setup.d.ts +3 -3
  23. package/lib/schemas/models/internal_invoices.d.ts +3 -3
  24. package/lib/schemas/models/items.d.ts +12 -12
  25. package/lib/schemas/models/marketing_fingerprints.d.ts +3 -3
  26. package/lib/schemas/models/modifier_extras.d.ts +3 -3
  27. package/lib/schemas/models/offers.d.ts +3 -3
  28. package/lib/schemas/models/public_holidays.d.ts +3 -3
  29. package/lib/schemas/models/specials.d.ts +3 -3
  30. package/lib/schemas/models/tenant_chart_of_accounts.d.ts +3 -3
  31. package/lib/schemas/models/tenant_hr_departments.d.ts +3 -3
  32. package/lib/schemas/models/tenant_hr_documents.d.ts +3 -3
  33. package/lib/schemas/models/tenant_hr_policies.d.ts +3 -3
  34. package/lib/schemas/models/tenant_hr_positions.d.ts +3 -3
  35. package/lib/schemas/models/tenant_journal_entries.d.ts +3 -3
  36. package/lib/schemas/models/void_order_items.d.ts +3 -3
  37. package/lib/schemas/models/vouchers.d.ts +3 -3
  38. package/lib/schemas/models/warehouse_communications.d.ts +3 -3
  39. package/lib/schemas/models/warehouse_items.d.ts +3 -3
  40. package/lib/schemas/models/warehouse_void_purchase_order_items.d.ts +3 -3
  41. package/lib/schemas/models/warehouse_void_sale_order_items.d.ts +3 -3
  42. package/lib/schemas/types/tenant_chart_of_accounts.d.ts +7 -0
  43. package/lib/tests/cart-helpers-edit-item-refs.test.d.ts +1 -0
  44. package/lib/tests/cart-helpers-edit-item-refs.test.js +99 -0
  45. package/lib/tests/code-redemption-helpers.test.d.ts +1 -0
  46. package/lib/tests/code-redemption-helpers.test.js +246 -0
  47. package/lib/tests/gift-card-helpers.test.d.ts +1 -0
  48. package/lib/tests/gift-card-helpers.test.js +100 -0
  49. package/lib/tests/offer-claim-regressions.test.d.ts +1 -0
  50. package/lib/tests/offer-claim-regressions.test.js +367 -0
  51. package/lib/tests/offers-helpers.test.js +24 -4
  52. package/lib/tests/offers-matrix.test.js +248 -20
  53. package/lib/tests/ref-exclusion-matching.test.d.ts +1 -0
  54. package/lib/tests/ref-exclusion-matching.test.js +168 -0
  55. package/lib/tests/wallet-cashback-helpers.test.d.ts +1 -0
  56. package/lib/tests/wallet-cashback-helpers.test.js +108 -0
  57. package/package.json +1 -1
@@ -324,6 +324,7 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
324
324
  createdAt: NativeDate;
325
325
  updatedAt: NativeDate;
326
326
  } & {
327
+ description: string;
327
328
  _id: import("mongoose").Types.ObjectId;
328
329
  name: string;
329
330
  image_url: string;
@@ -334,7 +335,6 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
334
335
  active: boolean;
335
336
  sort_id: number;
336
337
  category_id: import("mongoose").Types.ObjectId;
337
- description: string;
338
338
  price: {
339
339
  "POS_WALK-IN": number;
340
340
  "POS_TAKE-AWAY": number;
@@ -771,12 +771,12 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
771
771
  } | null | undefined;
772
772
  }>;
773
773
  modifiers: import("mongoose").Types.DocumentArray<{
774
+ description: string;
774
775
  _id: string;
775
776
  name: string;
776
777
  ref: string;
777
778
  active: boolean;
778
779
  sort_id: number;
779
- description: string;
780
780
  sold_out: string[];
781
781
  options: import("mongoose").Types.DocumentArray<{
782
782
  _id: string;
@@ -1851,12 +1851,12 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
1851
1851
  exempt_discount?: boolean | null | undefined;
1852
1852
  minimized?: boolean | null | undefined;
1853
1853
  }, import("mongoose").Types.Subdocument<string, any, {
1854
+ description: string;
1854
1855
  _id: string;
1855
1856
  name: string;
1856
1857
  ref: string;
1857
1858
  active: boolean;
1858
1859
  sort_id: number;
1859
- description: string;
1860
1860
  sold_out: string[];
1861
1861
  options: import("mongoose").Types.DocumentArray<{
1862
1862
  _id: string;
@@ -2931,12 +2931,12 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
2931
2931
  exempt_discount?: boolean | null | undefined;
2932
2932
  minimized?: boolean | null | undefined;
2933
2933
  }> & {
2934
+ description: string;
2934
2935
  _id: string;
2935
2936
  name: string;
2936
2937
  ref: string;
2937
2938
  active: boolean;
2938
2939
  sort_id: number;
2939
- description: string;
2940
2940
  sold_out: string[];
2941
2941
  options: import("mongoose").Types.DocumentArray<{
2942
2942
  _id: string;
@@ -4019,6 +4019,7 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
4019
4019
  createdAt: NativeDate;
4020
4020
  updatedAt: NativeDate;
4021
4021
  } & {
4022
+ description: string;
4022
4023
  _id: import("mongoose").Types.ObjectId;
4023
4024
  name: string;
4024
4025
  image_url: string;
@@ -4029,7 +4030,6 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
4029
4030
  active: boolean;
4030
4031
  sort_id: number;
4031
4032
  category_id: import("mongoose").Types.ObjectId;
4032
- description: string;
4033
4033
  price: {
4034
4034
  "POS_WALK-IN": number;
4035
4035
  "POS_TAKE-AWAY": number;
@@ -4466,12 +4466,12 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
4466
4466
  } | null | undefined;
4467
4467
  }>;
4468
4468
  modifiers: import("mongoose").Types.DocumentArray<{
4469
+ description: string;
4469
4470
  _id: string;
4470
4471
  name: string;
4471
4472
  ref: string;
4472
4473
  active: boolean;
4473
4474
  sort_id: number;
4474
- description: string;
4475
4475
  sold_out: string[];
4476
4476
  options: import("mongoose").Types.DocumentArray<{
4477
4477
  _id: string;
@@ -5546,12 +5546,12 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
5546
5546
  exempt_discount?: boolean | null | undefined;
5547
5547
  minimized?: boolean | null | undefined;
5548
5548
  }, import("mongoose").Types.Subdocument<string, any, {
5549
+ description: string;
5549
5550
  _id: string;
5550
5551
  name: string;
5551
5552
  ref: string;
5552
5553
  active: boolean;
5553
5554
  sort_id: number;
5554
- description: string;
5555
5555
  sold_out: string[];
5556
5556
  options: import("mongoose").Types.DocumentArray<{
5557
5557
  _id: string;
@@ -6626,12 +6626,12 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
6626
6626
  exempt_discount?: boolean | null | undefined;
6627
6627
  minimized?: boolean | null | undefined;
6628
6628
  }> & {
6629
+ description: string;
6629
6630
  _id: string;
6630
6631
  name: string;
6631
6632
  ref: string;
6632
6633
  active: boolean;
6633
6634
  sort_id: number;
6634
- description: string;
6635
6635
  sold_out: string[];
6636
6636
  options: import("mongoose").Types.DocumentArray<{
6637
6637
  _id: string;
@@ -7714,6 +7714,7 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
7714
7714
  createdAt: NativeDate;
7715
7715
  updatedAt: NativeDate;
7716
7716
  } & {
7717
+ description: string;
7717
7718
  _id: import("mongoose").Types.ObjectId;
7718
7719
  name: string;
7719
7720
  image_url: string;
@@ -7724,7 +7725,6 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
7724
7725
  active: boolean;
7725
7726
  sort_id: number;
7726
7727
  category_id: import("mongoose").Types.ObjectId;
7727
- description: string;
7728
7728
  price: {
7729
7729
  "POS_WALK-IN": number;
7730
7730
  "POS_TAKE-AWAY": number;
@@ -8161,12 +8161,12 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
8161
8161
  } | null | undefined;
8162
8162
  }>;
8163
8163
  modifiers: import("mongoose").Types.DocumentArray<{
8164
+ description: string;
8164
8165
  _id: string;
8165
8166
  name: string;
8166
8167
  ref: string;
8167
8168
  active: boolean;
8168
8169
  sort_id: number;
8169
- description: string;
8170
8170
  sold_out: string[];
8171
8171
  options: import("mongoose").Types.DocumentArray<{
8172
8172
  _id: string;
@@ -9241,12 +9241,12 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
9241
9241
  exempt_discount?: boolean | null | undefined;
9242
9242
  minimized?: boolean | null | undefined;
9243
9243
  }, import("mongoose").Types.Subdocument<string, any, {
9244
+ description: string;
9244
9245
  _id: string;
9245
9246
  name: string;
9246
9247
  ref: string;
9247
9248
  active: boolean;
9248
9249
  sort_id: number;
9249
- description: string;
9250
9250
  sold_out: string[];
9251
9251
  options: import("mongoose").Types.DocumentArray<{
9252
9252
  _id: string;
@@ -10321,12 +10321,12 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
10321
10321
  exempt_discount?: boolean | null | undefined;
10322
10322
  minimized?: boolean | null | undefined;
10323
10323
  }> & {
10324
+ description: string;
10324
10325
  _id: string;
10325
10326
  name: string;
10326
10327
  ref: string;
10327
10328
  active: boolean;
10328
10329
  sort_id: number;
10329
- description: string;
10330
10330
  sold_out: string[];
10331
10331
  options: import("mongoose").Types.DocumentArray<{
10332
10332
  _id: string;
@@ -7,12 +7,12 @@ export declare const MarketingFingerprintSchema: Schema<any, import("mongoose").
7
7
  createdAt: NativeDate;
8
8
  updatedAt: NativeDate;
9
9
  } & {
10
+ description: string;
10
11
  message: string;
11
12
  _id: import("mongoose").Types.ObjectId;
12
13
  type: import("../../constants").MARKETING_TYPE_ENUM;
13
14
  createdAt: NativeDate;
14
15
  updatedAt: NativeDate;
15
- description: string;
16
16
  tenant_id: string;
17
17
  customer_phone: string;
18
18
  createdAt_mins: number;
@@ -24,12 +24,12 @@ export declare const MarketingFingerprintSchema: Schema<any, import("mongoose").
24
24
  createdAt: NativeDate;
25
25
  updatedAt: NativeDate;
26
26
  } & {
27
+ description: string;
27
28
  message: string;
28
29
  _id: import("mongoose").Types.ObjectId;
29
30
  type: import("../../constants").MARKETING_TYPE_ENUM;
30
31
  createdAt: NativeDate;
31
32
  updatedAt: NativeDate;
32
- description: string;
33
33
  tenant_id: string;
34
34
  customer_phone: string;
35
35
  createdAt_mins: number;
@@ -41,12 +41,12 @@ export declare const MarketingFingerprintSchema: Schema<any, import("mongoose").
41
41
  createdAt: NativeDate;
42
42
  updatedAt: NativeDate;
43
43
  } & {
44
+ description: string;
44
45
  message: string;
45
46
  _id: import("mongoose").Types.ObjectId;
46
47
  type: import("../../constants").MARKETING_TYPE_ENUM;
47
48
  createdAt: NativeDate;
48
49
  updatedAt: NativeDate;
49
- description: string;
50
50
  tenant_id: string;
51
51
  customer_phone: string;
52
52
  createdAt_mins: number;
@@ -7,13 +7,13 @@ export declare const ModifierExtraSchema: Schema<any, import("mongoose").Model<a
7
7
  createdAt: NativeDate;
8
8
  updatedAt: NativeDate;
9
9
  } & {
10
+ description: string;
10
11
  _id: import("mongoose").Types.ObjectId;
11
12
  name: string;
12
13
  createdAt: NativeDate;
13
14
  updatedAt: NativeDate;
14
15
  tenants: string[];
15
16
  sort_id: number;
16
- description: string;
17
17
  sold_out: string[];
18
18
  max_num_options: number;
19
19
  min_option_choice_quantity: number;
@@ -181,13 +181,13 @@ export declare const ModifierExtraSchema: Schema<any, import("mongoose").Model<a
181
181
  createdAt: NativeDate;
182
182
  updatedAt: NativeDate;
183
183
  } & {
184
+ description: string;
184
185
  _id: import("mongoose").Types.ObjectId;
185
186
  name: string;
186
187
  createdAt: NativeDate;
187
188
  updatedAt: NativeDate;
188
189
  tenants: string[];
189
190
  sort_id: number;
190
- description: string;
191
191
  sold_out: string[];
192
192
  max_num_options: number;
193
193
  min_option_choice_quantity: number;
@@ -355,13 +355,13 @@ export declare const ModifierExtraSchema: Schema<any, import("mongoose").Model<a
355
355
  createdAt: NativeDate;
356
356
  updatedAt: NativeDate;
357
357
  } & {
358
+ description: string;
358
359
  _id: import("mongoose").Types.ObjectId;
359
360
  name: string;
360
361
  createdAt: NativeDate;
361
362
  updatedAt: NativeDate;
362
363
  tenants: string[];
363
364
  sort_id: number;
364
- description: string;
365
365
  sold_out: string[];
366
366
  max_num_options: number;
367
367
  min_option_choice_quantity: number;
@@ -8,6 +8,7 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
8
8
  createdAt: NativeDate;
9
9
  updatedAt: NativeDate;
10
10
  } & {
11
+ description: string;
11
12
  _id: import("mongoose").Types.ObjectId;
12
13
  name: string;
13
14
  image_url: string;
@@ -17,7 +18,6 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
17
18
  tenants: string[];
18
19
  active: boolean;
19
20
  sort_id: number;
20
- description: string;
21
21
  included_platforms: import("../../constants").PLATFORMS_ENUM[];
22
22
  auto_apply: boolean;
23
23
  pathway_to_unlock_type: PATHWAY_TO_UNLOCK_TYPE_ENUM;
@@ -404,6 +404,7 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
404
404
  createdAt: NativeDate;
405
405
  updatedAt: NativeDate;
406
406
  } & {
407
+ description: string;
407
408
  _id: import("mongoose").Types.ObjectId;
408
409
  name: string;
409
410
  image_url: string;
@@ -413,7 +414,6 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
413
414
  tenants: string[];
414
415
  active: boolean;
415
416
  sort_id: number;
416
- description: string;
417
417
  included_platforms: import("../../constants").PLATFORMS_ENUM[];
418
418
  auto_apply: boolean;
419
419
  pathway_to_unlock_type: PATHWAY_TO_UNLOCK_TYPE_ENUM;
@@ -800,6 +800,7 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
800
800
  createdAt: NativeDate;
801
801
  updatedAt: NativeDate;
802
802
  } & {
803
+ description: string;
803
804
  _id: import("mongoose").Types.ObjectId;
804
805
  name: string;
805
806
  image_url: string;
@@ -809,7 +810,6 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
809
810
  tenants: string[];
810
811
  active: boolean;
811
812
  sort_id: number;
812
- description: string;
813
813
  included_platforms: import("../../constants").PLATFORMS_ENUM[];
814
814
  auto_apply: boolean;
815
815
  pathway_to_unlock_type: PATHWAY_TO_UNLOCK_TYPE_ENUM;
@@ -7,11 +7,11 @@ export declare const PublicHolidaySchema: Schema<any, import("mongoose").Model<a
7
7
  createdAt: NativeDate;
8
8
  updatedAt: NativeDate;
9
9
  } & {
10
+ description: string;
10
11
  _id: import("mongoose").Types.ObjectId;
11
12
  name: string;
12
13
  createdAt: NativeDate;
13
14
  updatedAt: NativeDate;
14
- description: string;
15
15
  included_platforms: import("../..").PLATFORMS_ENUM[];
16
16
  tenant_id: string;
17
17
  dates: NativeDate[];
@@ -63,11 +63,11 @@ export declare const PublicHolidaySchema: Schema<any, import("mongoose").Model<a
63
63
  createdAt: NativeDate;
64
64
  updatedAt: NativeDate;
65
65
  } & {
66
+ description: string;
66
67
  _id: import("mongoose").Types.ObjectId;
67
68
  name: string;
68
69
  createdAt: NativeDate;
69
70
  updatedAt: NativeDate;
70
- description: string;
71
71
  included_platforms: import("../..").PLATFORMS_ENUM[];
72
72
  tenant_id: string;
73
73
  dates: NativeDate[];
@@ -119,11 +119,11 @@ export declare const PublicHolidaySchema: Schema<any, import("mongoose").Model<a
119
119
  createdAt: NativeDate;
120
120
  updatedAt: NativeDate;
121
121
  } & {
122
+ description: string;
122
123
  _id: import("mongoose").Types.ObjectId;
123
124
  name: string;
124
125
  createdAt: NativeDate;
125
126
  updatedAt: NativeDate;
126
- description: string;
127
127
  included_platforms: import("../..").PLATFORMS_ENUM[];
128
128
  tenant_id: string;
129
129
  dates: NativeDate[];
@@ -153,6 +153,7 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
153
153
  createdAt: NativeDate;
154
154
  updatedAt: NativeDate;
155
155
  } & {
156
+ description: string;
156
157
  _id: import("mongoose").Types.ObjectId;
157
158
  name: string;
158
159
  image_url: string;
@@ -163,7 +164,6 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
163
164
  active: boolean;
164
165
  sort_id: number;
165
166
  category_id: import("mongoose").Types.ObjectId;
166
- description: string;
167
167
  price: {
168
168
  "POS_WALK-IN": number;
169
169
  "POS_TAKE-AWAY": number;
@@ -990,6 +990,7 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
990
990
  createdAt: NativeDate;
991
991
  updatedAt: NativeDate;
992
992
  } & {
993
+ description: string;
993
994
  _id: import("mongoose").Types.ObjectId;
994
995
  name: string;
995
996
  image_url: string;
@@ -1000,7 +1001,6 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
1000
1001
  active: boolean;
1001
1002
  sort_id: number;
1002
1003
  category_id: import("mongoose").Types.ObjectId;
1003
- description: string;
1004
1004
  price: {
1005
1005
  "POS_WALK-IN": number;
1006
1006
  "POS_TAKE-AWAY": number;
@@ -1827,6 +1827,7 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
1827
1827
  createdAt: NativeDate;
1828
1828
  updatedAt: NativeDate;
1829
1829
  } & {
1830
+ description: string;
1830
1831
  _id: import("mongoose").Types.ObjectId;
1831
1832
  name: string;
1832
1833
  image_url: string;
@@ -1837,7 +1838,6 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
1837
1838
  active: boolean;
1838
1839
  sort_id: number;
1839
1840
  category_id: import("mongoose").Types.ObjectId;
1840
- description: string;
1841
1841
  price: {
1842
1842
  "POS_WALK-IN": number;
1843
1843
  "POS_TAKE-AWAY": number;
@@ -8,11 +8,11 @@ export declare const TenantChartOfAccountsSchema: Schema<any, import("mongoose")
8
8
  createdAt: NativeDate;
9
9
  updatedAt: NativeDate;
10
10
  } & {
11
+ description: string;
11
12
  _id: import("mongoose").Types.ObjectId;
12
13
  type: ACCOUNT_TYPE_ENUM;
13
14
  name: string;
14
15
  sort_id: number;
15
- description: string;
16
16
  tenant_id: string;
17
17
  increases_on: import("../../constants").ACCOUNT_NORMAL_BALANCE_ENUM;
18
18
  is_system: boolean;
@@ -26,11 +26,11 @@ export declare const TenantChartOfAccountsSchema: Schema<any, import("mongoose")
26
26
  createdAt: NativeDate;
27
27
  updatedAt: NativeDate;
28
28
  } & {
29
+ description: string;
29
30
  _id: import("mongoose").Types.ObjectId;
30
31
  type: ACCOUNT_TYPE_ENUM;
31
32
  name: string;
32
33
  sort_id: number;
33
- description: string;
34
34
  tenant_id: string;
35
35
  increases_on: import("../../constants").ACCOUNT_NORMAL_BALANCE_ENUM;
36
36
  is_system: boolean;
@@ -44,11 +44,11 @@ export declare const TenantChartOfAccountsSchema: Schema<any, import("mongoose")
44
44
  createdAt: NativeDate;
45
45
  updatedAt: NativeDate;
46
46
  } & {
47
+ description: string;
47
48
  _id: import("mongoose").Types.ObjectId;
48
49
  type: ACCOUNT_TYPE_ENUM;
49
50
  name: string;
50
51
  sort_id: number;
51
- description: string;
52
52
  tenant_id: string;
53
53
  increases_on: import("../../constants").ACCOUNT_NORMAL_BALANCE_ENUM;
54
54
  is_system: boolean;
@@ -7,33 +7,33 @@ export declare const TenantHrDepartmentSchema: Schema<any, import("mongoose").Mo
7
7
  createdAt: NativeDate;
8
8
  updatedAt: NativeDate;
9
9
  } & {
10
+ description: string;
10
11
  _id: import("mongoose").Types.ObjectId;
11
12
  name: string;
12
13
  createdAt: NativeDate;
13
14
  updatedAt: NativeDate;
14
- description: string;
15
15
  tenant_id: string;
16
16
  is_active: boolean;
17
17
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
18
18
  createdAt: NativeDate;
19
19
  updatedAt: NativeDate;
20
20
  } & {
21
+ description: string;
21
22
  _id: import("mongoose").Types.ObjectId;
22
23
  name: string;
23
24
  createdAt: NativeDate;
24
25
  updatedAt: NativeDate;
25
- description: string;
26
26
  tenant_id: string;
27
27
  is_active: boolean;
28
28
  }>> & import("mongoose").FlatRecord<{
29
29
  createdAt: NativeDate;
30
30
  updatedAt: NativeDate;
31
31
  } & {
32
+ description: string;
32
33
  _id: import("mongoose").Types.ObjectId;
33
34
  name: string;
34
35
  createdAt: NativeDate;
35
36
  updatedAt: NativeDate;
36
- description: string;
37
37
  tenant_id: string;
38
38
  is_active: boolean;
39
39
  }> & Required<{
@@ -8,10 +8,10 @@ export declare const TenantHrDocumentSchema: Schema<any, import("mongoose").Mode
8
8
  createdAt: NativeDate;
9
9
  updatedAt: NativeDate;
10
10
  } & {
11
+ description: string;
11
12
  _id: import("mongoose").Types.ObjectId;
12
13
  createdAt: NativeDate;
13
14
  updatedAt: NativeDate;
14
- description: string;
15
15
  tenant_id: string;
16
16
  employee_id: string;
17
17
  is_archived: boolean;
@@ -25,10 +25,10 @@ export declare const TenantHrDocumentSchema: Schema<any, import("mongoose").Mode
25
25
  createdAt: NativeDate;
26
26
  updatedAt: NativeDate;
27
27
  } & {
28
+ description: string;
28
29
  _id: import("mongoose").Types.ObjectId;
29
30
  createdAt: NativeDate;
30
31
  updatedAt: NativeDate;
31
- description: string;
32
32
  tenant_id: string;
33
33
  employee_id: string;
34
34
  is_archived: boolean;
@@ -42,10 +42,10 @@ export declare const TenantHrDocumentSchema: Schema<any, import("mongoose").Mode
42
42
  createdAt: NativeDate;
43
43
  updatedAt: NativeDate;
44
44
  } & {
45
+ description: string;
45
46
  _id: import("mongoose").Types.ObjectId;
46
47
  createdAt: NativeDate;
47
48
  updatedAt: NativeDate;
48
- description: string;
49
49
  tenant_id: string;
50
50
  employee_id: string;
51
51
  is_archived: boolean;
@@ -8,11 +8,11 @@ export declare const TenantHrPolicySchema: Schema<any, import("mongoose").Model<
8
8
  createdAt: NativeDate;
9
9
  updatedAt: NativeDate;
10
10
  } & {
11
+ description: string;
11
12
  _id: import("mongoose").Types.ObjectId;
12
13
  version: string;
13
14
  createdAt: NativeDate;
14
15
  updatedAt: NativeDate;
15
- description: string;
16
16
  tenant_id: string;
17
17
  status: HR_POLICY_STATUS_ENUM;
18
18
  title: string;
@@ -22,11 +22,11 @@ export declare const TenantHrPolicySchema: Schema<any, import("mongoose").Model<
22
22
  createdAt: NativeDate;
23
23
  updatedAt: NativeDate;
24
24
  } & {
25
+ description: string;
25
26
  _id: import("mongoose").Types.ObjectId;
26
27
  version: string;
27
28
  createdAt: NativeDate;
28
29
  updatedAt: NativeDate;
29
- description: string;
30
30
  tenant_id: string;
31
31
  status: HR_POLICY_STATUS_ENUM;
32
32
  title: string;
@@ -36,11 +36,11 @@ export declare const TenantHrPolicySchema: Schema<any, import("mongoose").Model<
36
36
  createdAt: NativeDate;
37
37
  updatedAt: NativeDate;
38
38
  } & {
39
+ description: string;
39
40
  _id: import("mongoose").Types.ObjectId;
40
41
  version: string;
41
42
  createdAt: NativeDate;
42
43
  updatedAt: NativeDate;
43
- description: string;
44
44
  tenant_id: string;
45
45
  status: HR_POLICY_STATUS_ENUM;
46
46
  title: string;
@@ -7,11 +7,11 @@ export declare const TenantHrPositionSchema: Schema<any, import("mongoose").Mode
7
7
  createdAt: NativeDate;
8
8
  updatedAt: NativeDate;
9
9
  } & {
10
+ description: string;
10
11
  _id: import("mongoose").Types.ObjectId;
11
12
  name: string;
12
13
  createdAt: NativeDate;
13
14
  updatedAt: NativeDate;
14
- description: string;
15
15
  tenant_id: string;
16
16
  is_active: boolean;
17
17
  department_id: string;
@@ -19,11 +19,11 @@ export declare const TenantHrPositionSchema: Schema<any, import("mongoose").Mode
19
19
  createdAt: NativeDate;
20
20
  updatedAt: NativeDate;
21
21
  } & {
22
+ description: string;
22
23
  _id: import("mongoose").Types.ObjectId;
23
24
  name: string;
24
25
  createdAt: NativeDate;
25
26
  updatedAt: NativeDate;
26
- description: string;
27
27
  tenant_id: string;
28
28
  is_active: boolean;
29
29
  department_id: string;
@@ -31,11 +31,11 @@ export declare const TenantHrPositionSchema: Schema<any, import("mongoose").Mode
31
31
  createdAt: NativeDate;
32
32
  updatedAt: NativeDate;
33
33
  } & {
34
+ description: string;
34
35
  _id: import("mongoose").Types.ObjectId;
35
36
  name: string;
36
37
  createdAt: NativeDate;
37
38
  updatedAt: NativeDate;
38
- description: string;
39
39
  tenant_id: string;
40
40
  is_active: boolean;
41
41
  department_id: string;
@@ -8,8 +8,8 @@ export declare const TenantJournalEntriesSchema: Schema<any, import("mongoose").
8
8
  createdAt: NativeDate;
9
9
  updatedAt: NativeDate;
10
10
  } & {
11
- _id: import("mongoose").Types.ObjectId;
12
11
  description: string;
12
+ _id: import("mongoose").Types.ObjectId;
13
13
  tenant_id: string;
14
14
  status: JOURNAL_ENTRY_STATUS_ENUM;
15
15
  source_type: import("../../constants").JOURNAL_ENTRY_SOURCE_ENUM;
@@ -48,8 +48,8 @@ export declare const TenantJournalEntriesSchema: Schema<any, import("mongoose").
48
48
  createdAt: NativeDate;
49
49
  updatedAt: NativeDate;
50
50
  } & {
51
- _id: import("mongoose").Types.ObjectId;
52
51
  description: string;
52
+ _id: import("mongoose").Types.ObjectId;
53
53
  tenant_id: string;
54
54
  status: JOURNAL_ENTRY_STATUS_ENUM;
55
55
  source_type: import("../../constants").JOURNAL_ENTRY_SOURCE_ENUM;
@@ -88,8 +88,8 @@ export declare const TenantJournalEntriesSchema: Schema<any, import("mongoose").
88
88
  createdAt: NativeDate;
89
89
  updatedAt: NativeDate;
90
90
  } & {
91
- _id: import("mongoose").Types.ObjectId;
92
91
  description: string;
92
+ _id: import("mongoose").Types.ObjectId;
93
93
  tenant_id: string;
94
94
  status: JOURNAL_ENTRY_STATUS_ENUM;
95
95
  source_type: import("../../constants").JOURNAL_ENTRY_SOURCE_ENUM;
@@ -7,11 +7,11 @@ export declare const VoidOrderItemSchema: Schema<any, import("mongoose").Model<a
7
7
  createdAt: NativeDate;
8
8
  updatedAt: NativeDate;
9
9
  } & {
10
+ description: string;
10
11
  _id: import("mongoose").Types.ObjectId;
11
12
  name: string;
12
13
  createdAt: NativeDate;
13
14
  updatedAt: NativeDate;
14
- description: string;
15
15
  tenant_id: string;
16
16
  createdAt_mins: number;
17
17
  order_id: import("mongoose").Types.ObjectId;
@@ -61,11 +61,11 @@ export declare const VoidOrderItemSchema: Schema<any, import("mongoose").Model<a
61
61
  createdAt: NativeDate;
62
62
  updatedAt: NativeDate;
63
63
  } & {
64
+ description: string;
64
65
  _id: import("mongoose").Types.ObjectId;
65
66
  name: string;
66
67
  createdAt: NativeDate;
67
68
  updatedAt: NativeDate;
68
- description: string;
69
69
  tenant_id: string;
70
70
  createdAt_mins: number;
71
71
  order_id: import("mongoose").Types.ObjectId;
@@ -115,11 +115,11 @@ export declare const VoidOrderItemSchema: Schema<any, import("mongoose").Model<a
115
115
  createdAt: NativeDate;
116
116
  updatedAt: NativeDate;
117
117
  } & {
118
+ description: string;
118
119
  _id: import("mongoose").Types.ObjectId;
119
120
  name: string;
120
121
  createdAt: NativeDate;
121
122
  updatedAt: NativeDate;
122
- description: string;
123
123
  tenant_id: string;
124
124
  createdAt_mins: number;
125
125
  order_id: import("mongoose").Types.ObjectId;