mfance-shark-v1 1.0.2 → 1.0.4

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.
@@ -1,9 +1,10 @@
1
1
  import { AuditableEntity } from '../../../auditable/auditable.entity';
2
2
  import { Caisse } from './caisse.entity';
3
+ import { CaisseOperationType } from './caisse-operation-type.entity';
3
4
  export declare class CaisseOperation extends AuditableEntity {
4
5
  sender: Caisse;
5
6
  recipient: Caisse;
6
7
  amount: number;
7
8
  isSuccess: boolean;
8
- caisseOperation: CaisseOperation;
9
+ caisseOperationType: CaisseOperationType;
9
10
  }
@@ -48,8 +48,8 @@ __decorate([
48
48
  onUpdate: 'CASCADE',
49
49
  }),
50
50
  (0, typeorm_1.JoinColumn)({ name: 'caisse_operation_type_id' }),
51
- __metadata("design:type", CaisseOperation)
52
- ], CaisseOperation.prototype, "caisseOperation", void 0);
51
+ __metadata("design:type", caisse_operation_type_entity_1.CaisseOperationType)
52
+ ], CaisseOperation.prototype, "caisseOperationType", void 0);
53
53
  exports.CaisseOperation = CaisseOperation = __decorate([
54
54
  (0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.CAISSES_OPS)
55
55
  ], CaisseOperation);
@@ -1 +1 @@
1
- {"version":3,"file":"caisse-operation.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/caisse/caisse-operation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAAsE;AACtE,qCAAgE;AAChE,mDAAyC;AACzC,qFAAyE;AACzE,iFAAqE;AAG9D,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,kCAAe;CAwBnD,CAAA;AAxBY,0CAAe;AAM1B;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE;QAC9C,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC1B,sBAAM;+CAAC;AAMf;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE;QAC9C,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;8BAC1B,sBAAM;kDAAC;AAElB;IADC,IAAA,gBAAM,GAAE;;+CACM;AAEf;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;kDACP;AAOnB;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kDAAmB,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE;QACjE,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC;8BAChC,eAAe;wDAAC;0BAvBtB,eAAe;IAD3B,IAAA,gBAAM,EAAC,kCAAW,CAAC,WAAW,CAAC;GACnB,eAAe,CAwB3B"}
1
+ {"version":3,"file":"caisse-operation.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/caisse/caisse-operation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAAsE;AACtE,qCAAgE;AAChE,mDAAyC;AACzC,qFAAyE;AACzE,iFAAqE;AAG9D,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,kCAAe;CAwBnD,CAAA;AAxBY,0CAAe;AAM1B;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE;QAC9C,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC1B,sBAAM;+CAAC;AAMf;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE;QAC9C,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;8BAC1B,sBAAM;kDAAC;AAElB;IADC,IAAA,gBAAM,GAAE;;+CACM;AAEf;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;kDACP;AAOnB;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kDAAmB,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE;QACjE,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC;8BAC5B,kDAAmB;4DAAC;0BAvB9B,eAAe;IAD3B,IAAA,gBAAM,EAAC,kCAAW,CAAC,WAAW,CAAC;GACnB,eAAe,CAwB3B"}
@@ -1,23 +1,20 @@
1
- export * from './file.entity';
2
- export * from './user.entity';
3
- export * from './caisse/caisse-daily-worker.entity';
4
- export * from './caisse/caisse.entity';
5
- export * from './caisse/caisse-operation.entity';
6
- export * from './caisse/caisse-type.entity';
7
- export * from './caisse/caisse-operation.entity';
8
- export * from './caisse/caisse.entity';
9
- export * from './role.entity';
10
- export * from './permission.entity';
11
- export * from './country.entity';
12
- export * from './sale-point.entity';
13
- export * from './currency.entity';
14
- export * from './soldes/solde-caisse.entity';
15
- export * from './soldes/solde-customer.entity';
16
- export * from './soldes/solde-operation.entity';
17
- export * from './stock.entity';
18
- export * from './transaction.entity';
19
- export * from './operation.entity';
20
- export * from './stock-partner.entity';
21
- export * from './stock-sale-point.entity';
22
- export * from './currencyValue.entity';
23
- export * from './stock-stone-partner.entity';
1
+ import { File } from './file.entity';
2
+ import { User } from './user.entity';
3
+ import { CaisseDailyWorker } from './caisse/caisse-daily-worker.entity';
4
+ import { Caisse } from './caisse/caisse.entity';
5
+ import { CaisseOperation } from './caisse/caisse-operation.entity';
6
+ import { Role } from './role.entity';
7
+ import { Permission } from './permission.entity';
8
+ import { Country } from './country.entity';
9
+ import { SalePoint } from './sale-point.entity';
10
+ import { Currency } from './currency.entity';
11
+ import { SoldeCaisses } from './soldes/solde-caisse.entity';
12
+ import { SoldeCustomers } from './soldes/solde-customer.entity';
13
+ import { Stock } from './stock.entity';
14
+ import { StockPartner } from './stock-partner.entity';
15
+ import { StockSalePoint } from './stock-sale-point.entity';
16
+ import { StockStonePartner } from './stock-stone-partner.entity';
17
+ import { Operation } from './operation.entity';
18
+ import { CurrencyValue } from './currencyValue.entity';
19
+ import { Rock } from './rock.entity';
20
+ export declare const entities: (typeof File | typeof Permission | typeof Role | typeof User | typeof SalePoint | typeof Country | typeof Stock | typeof Currency | typeof CaisseDailyWorker | typeof Caisse | typeof Operation | typeof StockSalePoint | typeof CurrencyValue | typeof StockPartner | typeof Rock | typeof StockStonePartner | typeof CaisseOperation | typeof SoldeCaisses | typeof SoldeCustomers)[];
@@ -1,40 +1,54 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./file.entity"), exports);
18
- __exportStar(require("./user.entity"), exports);
19
- __exportStar(require("./caisse/caisse-daily-worker.entity"), exports);
20
- __exportStar(require("./caisse/caisse.entity"), exports);
21
- __exportStar(require("./caisse/caisse-operation.entity"), exports);
22
- __exportStar(require("./caisse/caisse-type.entity"), exports);
23
- __exportStar(require("./caisse/caisse-operation.entity"), exports);
24
- __exportStar(require("./caisse/caisse.entity"), exports);
25
- __exportStar(require("./role.entity"), exports);
26
- __exportStar(require("./permission.entity"), exports);
27
- __exportStar(require("./country.entity"), exports);
28
- __exportStar(require("./sale-point.entity"), exports);
29
- __exportStar(require("./currency.entity"), exports);
30
- __exportStar(require("./soldes/solde-caisse.entity"), exports);
31
- __exportStar(require("./soldes/solde-customer.entity"), exports);
32
- __exportStar(require("./soldes/solde-operation.entity"), exports);
33
- __exportStar(require("./stock.entity"), exports);
34
- __exportStar(require("./transaction.entity"), exports);
35
- __exportStar(require("./operation.entity"), exports);
36
- __exportStar(require("./stock-partner.entity"), exports);
37
- __exportStar(require("./stock-sale-point.entity"), exports);
38
- __exportStar(require("./currencyValue.entity"), exports);
39
- __exportStar(require("./stock-stone-partner.entity"), exports);
3
+ exports.entities = void 0;
4
+ const file_entity_1 = require("./file.entity");
5
+ const user_entity_1 = require("./user.entity");
6
+ const caisse_daily_worker_entity_1 = require("./caisse/caisse-daily-worker.entity");
7
+ const caisse_entity_1 = require("./caisse/caisse.entity");
8
+ const caisse_operation_entity_1 = require("./caisse/caisse-operation.entity");
9
+ const caisse_type_entity_1 = require("./caisse/caisse-type.entity");
10
+ const role_entity_1 = require("./role.entity");
11
+ const permission_entity_1 = require("./permission.entity");
12
+ const country_entity_1 = require("./country.entity");
13
+ const sale_point_entity_1 = require("./sale-point.entity");
14
+ const currency_entity_1 = require("./currency.entity");
15
+ const solde_caisse_entity_1 = require("./soldes/solde-caisse.entity");
16
+ const solde_customer_entity_1 = require("./soldes/solde-customer.entity");
17
+ const solde_operation_entity_1 = require("./soldes/solde-operation.entity");
18
+ const stock_entity_1 = require("./stock.entity");
19
+ const stock_partner_entity_1 = require("./stock-partner.entity");
20
+ const stock_sale_point_entity_1 = require("./stock-sale-point.entity");
21
+ const stock_stone_partner_entity_1 = require("./stock-stone-partner.entity");
22
+ const transaction_entity_1 = require("./transaction.entity");
23
+ const operation_entity_1 = require("./operation.entity");
24
+ const currencyValue_entity_1 = require("./currencyValue.entity");
25
+ const payment_method_entity_1 = require("./payment-method.entity");
26
+ const rock_entity_1 = require("./rock.entity");
27
+ exports.entities = [
28
+ file_entity_1.File,
29
+ user_entity_1.User,
30
+ caisse_daily_worker_entity_1.CaisseDailyWorker,
31
+ caisse_entity_1.Caisse,
32
+ caisse_operation_entity_1.CaisseOperation,
33
+ caisse_type_entity_1.CaisseType,
34
+ role_entity_1.Role,
35
+ permission_entity_1.Permission,
36
+ country_entity_1.Country,
37
+ sale_point_entity_1.SalePoint,
38
+ currency_entity_1.Currency,
39
+ solde_caisse_entity_1.SoldeCaisses,
40
+ solde_customer_entity_1.SoldeCustomers,
41
+ solde_operation_entity_1.SoldeOperations,
42
+ stock_entity_1.Stock,
43
+ stock_partner_entity_1.StockPartner,
44
+ stock_sale_point_entity_1.StockSalePoint,
45
+ stock_stone_partner_entity_1.StockStonePartner,
46
+ transaction_entity_1.Transaction,
47
+ operation_entity_1.Operation,
48
+ currencyValue_entity_1.CurrencyValue,
49
+ payment_method_entity_1.PaymentMethod,
50
+ rock_entity_1.Rock,
51
+ role_entity_1.Role,
52
+ user_entity_1.User,
53
+ ];
40
54
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B;AAC9B,sEAAoD;AACpD,yDAAuC;AACvC,mEAAiD;AACjD,8DAA4C;AAC5C,mEAAiD;AACjD,yDAAuC;AACvC,gDAA8B;AAC9B,sDAAoC;AACpC,mDAAiC;AACjC,sDAAoC;AACpC,oDAAkC;AAClC,+DAA6C;AAC7C,iEAA+C;AAC/C,kEAAgD;AAChD,iDAA+B;AAC/B,uDAAqC;AACrC,qDAAmC;AACnC,yDAAuC;AACvC,4DAA0C;AAC1C,yDAAuC;AACvC,+DAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/entities/index.ts"],"names":[],"mappings":";;;AAAA,+CAAqC;AACrC,+CAAqC;AACrC,oFAAwE;AACxE,0DAAgD;AAChD,8EAAmE;AACnE,oEAAyD;AACzD,+CAAqC;AACrC,2DAAiD;AACjD,qDAA2C;AAC3C,2DAAgD;AAChD,uDAA6C;AAC7C,sEAA4D;AAC5D,0EAAgE;AAChE,4EAAkE;AAClE,iDAAuC;AACvC,iEAAsD;AACtD,uEAA2D;AAC3D,6EAAiE;AACjE,6DAAmD;AACnD,yDAA+C;AAC/C,iEAAuD;AACvD,mEAAwD;AACxD,+CAAqC;AAIxB,QAAA,QAAQ,GAAG;IACpB,kBAAI;IACJ,kBAAI;IACJ,8CAAiB;IACjB,sBAAM;IACN,yCAAe;IACf,+BAAU;IACV,kBAAI;IACJ,8BAAU;IACV,wBAAO;IACP,6BAAS;IACT,0BAAQ;IACR,kCAAY;IACZ,sCAAc;IACd,wCAAe;IACf,oBAAK;IACL,mCAAY;IACZ,wCAAc;IACd,8CAAiB;IACjB,gCAAW;IACX,4BAAS;IACT,oCAAa;IACb,qCAAa;IACb,kBAAI;IACJ,kBAAI;IACJ,kBAAI;CAEP,CAAC"}
package/dist/index.d.ts CHANGED
@@ -12,3 +12,4 @@ export * from './interfaces';
12
12
  export * from './services/logger';
13
13
  export * from './services/auth';
14
14
  export * from './services/validation';
15
+ export { entities } from './common/entities';
package/dist/index.js CHANGED
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.entities = void 0;
17
18
  __exportStar(require("./common/constants"), exports);
18
19
  __exportStar(require("./common/decorators"), exports);
19
20
  __exportStar(require("./common/filters"), exports);
@@ -28,4 +29,6 @@ __exportStar(require("./interfaces"), exports);
28
29
  __exportStar(require("./services/logger"), exports);
29
30
  __exportStar(require("./services/auth"), exports);
30
31
  __exportStar(require("./services/validation"), exports);
32
+ var entities_1 = require("./common/entities");
33
+ Object.defineProperty(exports, "entities", { enumerable: true, get: function () { return entities_1.entities; } });
31
34
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,qDAAmC;AACnC,sDAAoC;AACpC,mDAAiC;AACjC,kDAAgC;AAChC,wDAAsC;AACtC,iDAA+B;AAG/B,6CAA2B;AAC3B,6CAA2B;AAC3B,oDAAkC;AAClC,gDAA8B;AAG9B,+CAA6B;AAG7B,oDAAkC;AAClC,kDAAgC;AAChC,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,qDAAmC;AACnC,sDAAoC;AACpC,mDAAiC;AACjC,kDAAgC;AAChC,wDAAsC;AACtC,iDAA+B;AAG/B,6CAA2B;AAC3B,6CAA2B;AAC3B,oDAAkC;AAClC,gDAA8B;AAG9B,+CAA6B;AAG7B,oDAAkC;AAClC,kDAAgC;AAChC,wDAAsC;AAItC,8CAA6C;AAApC,oGAAA,QAAQ,OAAA"}