@hiennc24/constant 1.0.15 → 1.0.16

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.
package/lib/index.d.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  import SERVICE_BROKER from "./service.constant.json";
2
- export default SERVICE_BROKER;
2
+ import * as COLLECTIONS from "./collections.constant";
3
+ export { SERVICE_BROKER, COLLECTIONS };
3
4
  export type ServiceBrokerConstantType = {
4
5
  [key: string]: any;
5
6
  };
7
+ export type CollectionsConstantType = {
8
+ [key: string]: string;
9
+ };
6
10
  export declare const addLocalServices: (services: ServiceBrokerConstantType) => void;
package/lib/index.js CHANGED
@@ -1,11 +1,36 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
27
  };
5
28
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.addLocalServices = void 0;
29
+ exports.addLocalServices = exports.COLLECTIONS = exports.SERVICE_BROKER = void 0;
7
30
  const service_constant_json_1 = __importDefault(require("./service.constant.json"));
8
- exports.default = service_constant_json_1.default;
31
+ exports.SERVICE_BROKER = service_constant_json_1.default;
32
+ const COLLECTIONS = __importStar(require("./collections.constant"));
33
+ exports.COLLECTIONS = COLLECTIONS;
9
34
  const addLocalServices = (services) => {
10
35
  Object.assign(service_constant_json_1.default, services);
11
36
  console.log("added local services!");
@@ -131,6 +131,11 @@
131
131
  "API_WAREHOUSE_VOUCHER_PRODUCTS": {
132
132
  "NAME": "api-warehouse.voucherProduct"
133
133
  },
134
+ "API_SALES_SALES_PROMOTION_DETAIL": {
135
+ "NAME": "api-sales.promotionDetail",
136
+ "ACTION_ADD_OR_UPDATE_PROMOTION_DETAILS": "addOrUpdatePromotionDetails",
137
+ "ACTION_DELETE_BY_PROMOTION_IDS": "delteByPromotionIds"
138
+ },
134
139
  "API_SALES_CAMPAIGN_PRICE": {
135
140
  "NAME": "api-sales.campaign-price"
136
141
  },
@@ -1794,5 +1799,10 @@
1794
1799
  "NAME": "svc-migrations",
1795
1800
  "ACTION_INIT_MASTER_DATA": "initMasterData",
1796
1801
  "ACTION_MIGRATION_DATA": "migrationData"
1802
+ },
1803
+ "SVC_INVENTORY_TRANSACTIONS": {
1804
+ "NAME": "svc-inventory-transactions",
1805
+ "ACTION_CREATE_INVENTORY_TRANSACTION": "createInventoryTransaction",
1806
+ "ACTION_GET_INVENTORY_REPORTS": "getInventoryReport"
1797
1807
  }
1798
1808
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiennc24/constant",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {