gemcap-be-common 1.5.42 → 1.5.43

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.
@@ -221,25 +221,33 @@ exports.COLLATERALS = {
221
221
  validators: [validators_enums_1.EValidators.NOT_EMPTY, validators_enums_1.EValidators.IS_DATE],
222
222
  },
223
223
  {
224
- db_title: 'apDate',
225
- title: 'AP date',
226
- required: false,
224
+ db_title: 'sku',
225
+ title: 'SKU',
226
+ required: true,
227
227
  items: [],
228
- validators: [validators_enums_1.EValidators.NOT_EMPTY, validators_enums_1.EValidators.IS_DATE],
229
- isDate: true,
228
+ validators: [validators_enums_1.EValidators.NOT_EMPTY],
230
229
  },
231
- { db_title: 'poNumber', title: 'PO number', required: false, items: [] },
232
- { db_title: 'customerName', title: 'Customer name', required: false, items: [] },
233
230
  {
234
- db_title: 'amount',
235
- title: 'Amount',
231
+ db_title: 'skuName',
232
+ title: 'SKU Name',
233
+ required: true,
234
+ items: [],
235
+ validators: [validators_enums_1.EValidators.NOT_EMPTY],
236
+ },
237
+ {
238
+ db_title: 'unitsSold',
239
+ title: 'Units Sold',
240
+ required: true,
241
+ items: [],
242
+ validators: [validators_enums_1.EValidators.NOT_EMPTY, validators_enums_1.EValidators.IS_NUMBER, validators_enums_1.EValidators.NUMBER_GT_NULL],
243
+ },
244
+ {
245
+ db_title: 'unitSalePrice',
246
+ title: 'Unit Sale Price',
236
247
  required: true,
237
248
  items: [],
238
249
  validators: [validators_enums_1.EValidators.NOT_EMPTY, validators_enums_1.EValidators.IS_NUMBER, validators_enums_1.EValidators.NUMBER_GT_NULL],
239
250
  },
240
- { db_title: 'otherInformation1', title: 'Other Information 1', required: false, items: [] },
241
- { db_title: 'otherInformation2', title: 'Other Information 2', required: false, items: [] },
242
- { db_title: 'otherInformation3', title: 'Other Information 3', required: false, items: [] },
243
251
  ],
244
252
  [collaterals_enum_1.ECollaterals.LOAN_TRANSACTIONS]: [
245
253
  {
@@ -221,25 +221,33 @@ COLLATERALS = {
221
221
  validators: [EValidators.NOT_EMPTY, EValidators.IS_DATE],
222
222
  },
223
223
  {
224
- db_title: 'apDate',
225
- title: 'AP date',
226
- required: false,
224
+ db_title: 'sku',
225
+ title: 'SKU',
226
+ required: true,
227
227
  items: [],
228
- validators: [EValidators.NOT_EMPTY, EValidators.IS_DATE],
229
- isDate: true,
228
+ validators: [EValidators.NOT_EMPTY],
230
229
  },
231
- { db_title: 'poNumber', title: 'PO number', required: false, items: [] },
232
- { db_title: 'customerName', title: 'Customer name', required: false, items: [] },
233
230
  {
234
- db_title: 'amount',
235
- title: 'Amount',
231
+ db_title: 'skuName',
232
+ title: 'SKU Name',
233
+ required: true,
234
+ items: [],
235
+ validators: [EValidators.NOT_EMPTY],
236
+ },
237
+ {
238
+ db_title: 'unitsSold',
239
+ title: 'Units Sold',
240
+ required: true,
241
+ items: [],
242
+ validators: [EValidators.NOT_EMPTY, EValidators.IS_NUMBER, EValidators.NUMBER_GT_NULL],
243
+ },
244
+ {
245
+ db_title: 'unitSalePrice',
246
+ title: 'Unit Sale Price',
236
247
  required: true,
237
248
  items: [],
238
249
  validators: [EValidators.NOT_EMPTY, EValidators.IS_NUMBER, EValidators.NUMBER_GT_NULL],
239
250
  },
240
- { db_title: 'otherInformation1', title: 'Other Information 1', required: false, items: [] },
241
- { db_title: 'otherInformation2', title: 'Other Information 2', required: false, items: [] },
242
- { db_title: 'otherInformation3', title: 'Other Information 3', required: false, items: [] },
243
251
  ],
244
252
  [ECollaterals.LOAN_TRANSACTIONS]: [
245
253
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.5.42",
3
+ "version": "1.5.43",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {