@molopos/shared 2.0.71 → 2.0.72

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.
@@ -3,6 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const _1 = require(".");
4
4
  const enum_1 = require("../enum");
5
5
  describe("Date", () => {
6
+ it("formateDDDateISO", () => {
7
+ const dateNow = (0, _1.formateDateUnixInteger)(new Date());
8
+ expect(dateNow).not.toBeNull();
9
+ expect(dateNow).toBeDefined();
10
+ });
6
11
  it("dateTimeNowUtc", () => {
7
12
  const dateNow = (0, _1.dateTimeNowUtc)();
8
13
  expect(dateNow).not.toBeNull();
package/enum/index.d.ts CHANGED
@@ -72,12 +72,16 @@ export declare enum QueryTypeEnum {
72
72
  PaymentType = "PAYMENTTYPE",
73
73
  ApplicationSection = "APPLICATIONSECTION",
74
74
  CollaborativeFund = "COLLABORATIVEFUND",
75
- Subscription = "SUBSCRIPTION"
75
+ Subscription = "SUBSCRIPTION",
76
+ InventoryAdjustment = "INVENTORYADJUSTMENT"
76
77
  }
77
78
  /**
78
79
  * Activity model enum
79
80
  */
80
81
  export declare enum ActivityModelEnum {
82
+ InventoryCreate = "INVENTORY_CREATE",
83
+ InventoryUpdate = "INVENTORY_UPDATE",
84
+ InventoryDelete = "INVENTORY_DELETE",
81
85
  ViewCount = "VIEW_COUNT",
82
86
  ProductCreate = "PRODUCT_CREATE",
83
87
  ProductUpdate = "PRODUCT_UPDATE",
@@ -151,7 +155,10 @@ export declare enum ActivityModelEnum {
151
155
  CustomerDelete = "CUSTOMER_DELETE",
152
156
  PaymentTypeCreate = "PAYMENT_TYPE_CREATE",
153
157
  PaymentTypeUpdate = "PAYMENT_TYPE_UPDATE",
154
- PaymentTypeDelete = "PAYMENT_TYPE_DELETE"
158
+ PaymentTypeDelete = "PAYMENT_TYPE_DELETE",
159
+ InventoryAdjustmentCreate = "INVENTORY_ADJUSTMENT_CREATE",
160
+ InventoryAdjustmentUpdate = "INVENTORY_ADJUSTMENT_UPDATE",
161
+ InventoryAdjustmentDelete = "INVENTORY_ADJUSTMENT_DELETE"
155
162
  }
156
163
  /**
157
164
  * Transaction direction enum
package/enum/index.js CHANGED
@@ -81,12 +81,16 @@ var QueryTypeEnum;
81
81
  QueryTypeEnum["ApplicationSection"] = "APPLICATIONSECTION";
82
82
  QueryTypeEnum["CollaborativeFund"] = "COLLABORATIVEFUND";
83
83
  QueryTypeEnum["Subscription"] = "SUBSCRIPTION";
84
+ QueryTypeEnum["InventoryAdjustment"] = "INVENTORYADJUSTMENT";
84
85
  })(QueryTypeEnum || (exports.QueryTypeEnum = QueryTypeEnum = {}));
85
86
  /**
86
87
  * Activity model enum
87
88
  */
88
89
  var ActivityModelEnum;
89
90
  (function (ActivityModelEnum) {
91
+ ActivityModelEnum["InventoryCreate"] = "INVENTORY_CREATE";
92
+ ActivityModelEnum["InventoryUpdate"] = "INVENTORY_UPDATE";
93
+ ActivityModelEnum["InventoryDelete"] = "INVENTORY_DELETE";
90
94
  ActivityModelEnum["ViewCount"] = "VIEW_COUNT";
91
95
  ActivityModelEnum["ProductCreate"] = "PRODUCT_CREATE";
92
96
  ActivityModelEnum["ProductUpdate"] = "PRODUCT_UPDATE";
@@ -161,6 +165,9 @@ var ActivityModelEnum;
161
165
  ActivityModelEnum["PaymentTypeCreate"] = "PAYMENT_TYPE_CREATE";
162
166
  ActivityModelEnum["PaymentTypeUpdate"] = "PAYMENT_TYPE_UPDATE";
163
167
  ActivityModelEnum["PaymentTypeDelete"] = "PAYMENT_TYPE_DELETE";
168
+ ActivityModelEnum["InventoryAdjustmentCreate"] = "INVENTORY_ADJUSTMENT_CREATE";
169
+ ActivityModelEnum["InventoryAdjustmentUpdate"] = "INVENTORY_ADJUSTMENT_UPDATE";
170
+ ActivityModelEnum["InventoryAdjustmentDelete"] = "INVENTORY_ADJUSTMENT_DELETE";
164
171
  })(ActivityModelEnum || (exports.ActivityModelEnum = ActivityModelEnum = {}));
165
172
  /**
166
173
  * Transaction direction enum
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@molopos/shared","publishConfig":{"access":"public"},"version":"2.0.71","description":"Shared between backend and frontend repos","license":"ISC","repository":{"type":"git","url":"https://github.com/unicubate/molopos-shared.git"},"dependencies":{"class-transformer":"^0.5.1","date-fns":"^4.4.0","luxon":"^3.7.2"}}
1
+ {"name":"@molopos/shared","publishConfig":{"access":"public"},"version":"2.0.72","description":"Shared between backend and frontend repos","license":"ISC","repository":{"type":"git","url":"https://github.com/unicubate/molopos-shared.git"},"dependencies":{"class-transformer":"^0.5.1","date-fns":"^4.4.0","luxon":"^3.7.2"}}