mfance-shark-v1 1.0.34 → 1.0.36

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.
@@ -23,4 +23,5 @@ import { Audit } from './audit.entity';
23
23
  import { OtpCode } from './otp-code.entity';
24
24
  import { Agent } from './users/agent.entity';
25
25
  import { TotupsDist } from './totups/totups-dist.entity';
26
- 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 OtpCode | typeof CaisseOperationType | typeof CaisseOperation | typeof SoldeCaisses | typeof SoldeCustomers | typeof Distributor | typeof Audit | typeof Agent | typeof TotupsDist)[];
26
+ import { ThirdPartyProvider } from './thirdpartyprovider.entity';
27
+ 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 OtpCode | typeof CaisseOperationType | typeof CaisseOperation | typeof SoldeCaisses | typeof SoldeCustomers | typeof Distributor | typeof Audit | typeof Agent | typeof TotupsDist | typeof ThirdPartyProvider)[];
@@ -31,6 +31,8 @@ const otp_code_entity_1 = require("./otp-code.entity");
31
31
  const agent_entity_1 = require("./users/agent.entity");
32
32
  const totups_agent_entity_1 = require("./totups/totups-agent.entity");
33
33
  const totups_dist_entity_1 = require("./totups/totups-dist.entity");
34
+ const thirdpartytype_entity_1 = require("./thirdpartytype.entity");
35
+ const thirdpartyprovider_entity_1 = require("./thirdpartyprovider.entity");
34
36
  exports.entities = [
35
37
  file_entity_1.File,
36
38
  user_entity_1.User,
@@ -62,5 +64,7 @@ exports.entities = [
62
64
  agent_entity_1.Agent,
63
65
  totups_agent_entity_1.TotupsAgent,
64
66
  totups_dist_entity_1.TotupsDist,
67
+ thirdpartytype_entity_1.ThirdPartyType,
68
+ thirdpartyprovider_entity_1.ThirdPartyProvider,
65
69
  ];
66
70
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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,wFAA4E;AAC5E,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;AACrC,mEAAyD;AACzD,iDAAuC;AACvC,uDAA4C;AAC5C,uDAA6C;AAC7C,sEAA2D;AAC3D,oEAAyD;AAM5C,QAAA,QAAQ,GAAG;IACpB,kBAAI;IACJ,kBAAI;IACJ,8CAAiB;IACjB,sBAAM;IACN,yCAAe;IACf,kDAAmB;IACnB,+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,gCAAW;IACX,oBAAK;IACL,yBAAO;IACP,oBAAK;IACL,iCAAW;IACX,+BAAU;CACb,CAAC"}
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,wFAA4E;AAC5E,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;AACrC,mEAAyD;AACzD,iDAAuC;AACvC,uDAA4C;AAC5C,uDAA6C;AAC7C,sEAA2D;AAC3D,oEAAyD;AACzD,mEAAyD;AACzD,2EAAiE;AAMpD,QAAA,QAAQ,GAAG;IACpB,kBAAI;IACJ,kBAAI;IACJ,8CAAiB;IACjB,sBAAM;IACN,yCAAe;IACf,kDAAmB;IACnB,+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,gCAAW;IACX,oBAAK;IACL,yBAAO;IACP,oBAAK;IACL,iCAAW;IACX,+BAAU;IACV,sCAAc;IACd,8CAAkB;CACrB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { AuditableEntity } from "../../auditable/auditable.entity";
2
+ import { ThirdPartyType } from "./thirdpartytype.entity";
3
+ export declare class ThirdPartyProvider extends AuditableEntity {
4
+ name: string;
5
+ thirdPartyTypeId: number;
6
+ thirdPartyType: ThirdPartyType;
7
+ isActive: boolean;
8
+ isDeleted: boolean;
9
+ isArchived: boolean;
10
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ThirdPartyProvider = void 0;
13
+ const auditable_entity_1 = require("../../auditable/auditable.entity");
14
+ const typeorm_1 = require("typeorm");
15
+ const utils_1 = require("../utils");
16
+ const thirdpartytype_entity_1 = require("./thirdpartytype.entity");
17
+ let ThirdPartyProvider = class ThirdPartyProvider extends auditable_entity_1.AuditableEntity {
18
+ };
19
+ exports.ThirdPartyProvider = ThirdPartyProvider;
20
+ __decorate([
21
+ (0, typeorm_1.Column)(),
22
+ __metadata("design:type", String)
23
+ ], ThirdPartyProvider.prototype, "name", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ name: "third_party_type_id" }),
26
+ __metadata("design:type", Number)
27
+ ], ThirdPartyProvider.prototype, "thirdPartyTypeId", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.ManyToOne)(() => thirdpartytype_entity_1.ThirdPartyType, (thirdPartyType) => thirdPartyType.thirdPartyProviders),
30
+ (0, typeorm_1.JoinColumn)({ name: "third_party_type_id" }),
31
+ __metadata("design:type", thirdpartytype_entity_1.ThirdPartyType)
32
+ ], ThirdPartyProvider.prototype, "thirdPartyType", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ name: "is_active", default: true }),
35
+ __metadata("design:type", Boolean)
36
+ ], ThirdPartyProvider.prototype, "isActive", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ name: "is_deleted", default: false }),
39
+ __metadata("design:type", Boolean)
40
+ ], ThirdPartyProvider.prototype, "isDeleted", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ name: "is_archived", default: false }),
43
+ __metadata("design:type", Boolean)
44
+ ], ThirdPartyProvider.prototype, "isArchived", void 0);
45
+ exports.ThirdPartyProvider = ThirdPartyProvider = __decorate([
46
+ (0, typeorm_1.Entity)({
47
+ name: utils_1.TABLE_NAMES.THIRD_PARTY_PROVIDER,
48
+ })
49
+ ], ThirdPartyProvider);
50
+ //# sourceMappingURL=thirdpartyprovider.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thirdpartyprovider.entity.js","sourceRoot":"","sources":["../../../src/common/entities/thirdpartyprovider.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAmE;AACnE,qCAAwF;AACxF,oCAAuC;AACvC,mEAAyD;AAOlD,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,kCAAe;CAsBtD,CAAA;AAtBY,gDAAkB;AAG3B;IADC,IAAA,gBAAM,GAAE;;gDACI;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAG,qBAAqB,EAAE,CAAC;;4DAChB;AAIzB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sCAAc,EAAE,CAAC,cAAc,EAAE,EAAE,CAAC,cAAc,CAAC,mBAAmB,CAAC;IACvF,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;8BAC5B,sCAAc;0DAAC;AAG/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAG,WAAW,EAAG,OAAO,EAAG,IAAI,EAAE,CAAC;;oDAC9B;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAG,YAAY,EAAG,OAAO,EAAG,KAAK,EAAE,CAAC;;qDAC/B;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAG,aAAa,EAAG,OAAO,EAAG,KAAK,EAAE,CAAC;;sDAC/B;6BAnBX,kBAAkB;IAL9B,IAAA,gBAAM,EACL;QACE,IAAI,EAAE,mBAAW,CAAC,oBAAoB;KACvC,CACF;GACY,kBAAkB,CAsB9B"}
@@ -0,0 +1,10 @@
1
+ import { AuditableEntity } from "../../auditable/auditable.entity";
2
+ import { ThirdPartyProvider } from "./thirdpartyprovider.entity";
3
+ export declare class ThirdPartyType extends AuditableEntity {
4
+ name: string;
5
+ description: string;
6
+ thirdPartyProviders: ThirdPartyProvider[];
7
+ isActive: boolean;
8
+ isArchived: boolean;
9
+ isDeleted: boolean;
10
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ThirdPartyType = void 0;
13
+ const auditable_entity_1 = require("../../auditable/auditable.entity");
14
+ const typeorm_1 = require("typeorm");
15
+ const utils_1 = require("../utils");
16
+ const thirdpartyprovider_entity_1 = require("./thirdpartyprovider.entity");
17
+ let ThirdPartyType = class ThirdPartyType extends auditable_entity_1.AuditableEntity {
18
+ };
19
+ exports.ThirdPartyType = ThirdPartyType;
20
+ __decorate([
21
+ (0, typeorm_1.Column)(),
22
+ __metadata("design:type", String)
23
+ ], ThirdPartyType.prototype, "name", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.Column)(),
26
+ __metadata("design:type", String)
27
+ ], ThirdPartyType.prototype, "description", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.OneToMany)(() => thirdpartyprovider_entity_1.ThirdPartyProvider, (thirdPartyProvider) => thirdPartyProvider.thirdPartyType),
30
+ __metadata("design:type", Array)
31
+ ], ThirdPartyType.prototype, "thirdPartyProviders", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ name: "is_active", default: true }),
34
+ __metadata("design:type", Boolean)
35
+ ], ThirdPartyType.prototype, "isActive", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ name: "is_archived", default: false }),
38
+ __metadata("design:type", Boolean)
39
+ ], ThirdPartyType.prototype, "isArchived", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ name: "is_deleted", default: false }),
42
+ __metadata("design:type", Boolean)
43
+ ], ThirdPartyType.prototype, "isDeleted", void 0);
44
+ exports.ThirdPartyType = ThirdPartyType = __decorate([
45
+ (0, typeorm_1.Entity)({
46
+ name: utils_1.TABLE_NAMES.THIRD_PARTY_TYPE,
47
+ })
48
+ ], ThirdPartyType);
49
+ //# sourceMappingURL=thirdpartytype.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thirdpartytype.entity.js","sourceRoot":"","sources":["../../../src/common/entities/thirdpartytype.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAmE;AACnE,qCAAoD;AACpD,oCAAuC;AACvC,2EAAiE;AAO1D,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,kCAAe;CAmBlD,CAAA;AAnBY,wCAAc;AAEvB;IADC,IAAA,gBAAM,GAAE;;4CACI;AAGb;IADC,IAAA,gBAAM,GAAE;;mDACW;AAGpB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8CAAkB,EAAE,CAAC,kBAAkB,EAAE,EAAE,CAAC,kBAAkB,CAAC,cAAc,CAAC;;2DACrD;AAG1C;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAG,WAAW,EAAG,OAAO,EAAG,IAAI,EAAE,CAAC;;gDAC9B;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAG,aAAa,EAAG,OAAO,EAAG,KAAK,EAAE,CAAC;;kDAC/B;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAG,YAAY,EAAG,OAAO,EAAG,KAAK,EAAE,CAAC;;iDAC/B;yBAjBV,cAAc;IAL1B,IAAA,gBAAM,EACH;QACI,IAAI,EAAE,mBAAW,CAAC,gBAAgB;KACrC,CACJ;GACY,cAAc,CAmB1B"}
@@ -30,4 +30,6 @@ export declare const TABLE_NAMES: {
30
30
  AUDIT: string;
31
31
  OTP_CODE: string;
32
32
  AGENT: string;
33
+ THIRD_PARTY_PROVIDER: string;
34
+ THIRD_PARTY_TYPE: string;
33
35
  };
@@ -33,5 +33,7 @@ exports.TABLE_NAMES = {
33
33
  AUDIT: 'audits',
34
34
  OTP_CODE: 'otp_codes',
35
35
  AGENT: 'agents',
36
+ THIRD_PARTY_PROVIDER: 'third_party_providers',
37
+ THIRD_PARTY_TYPE: 'third_party_types',
36
38
  };
37
39
  //# sourceMappingURL=table-names.constant.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"table-names.constant.js","sourceRoot":"","sources":["../../../../src/common/utils/constants/table-names.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,kBAAkB;IAC/B,gBAAgB,EAAE,uBAAuB;IACzC,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,qBAAqB;IACpC,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,aAAa;IACzB,OAAO,EAAE,WAAW;IACpB,YAAY,EAAE,eAAe;IAC7B,cAAc,EAAE,iBAAiB;IACjC,SAAS,EAAE,kBAAkB;IAC7B,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,YAAY;IACtB,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,eAAe;IAC7B,gBAAgB,EAAE,mBAAmB;IACrC,cAAc,EAAE,iBAAiB;IACjC,KAAK,EAAE,OAAO;IACd,mBAAmB,EAAE,qBAAqB;IAC1C,cAAc,EAAE,iBAAiB;IACjC,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,eAAe;IAC7B,WAAW,EAAE,qBAAqB;IAClC,UAAU,EAAG,YAAY;IACzB,KAAK,EAAE,QAAQ;IACf,QAAQ,EAAE,WAAW;IACrB,KAAK,EAAE,QAAQ;CAChB,CAAC"}
1
+ {"version":3,"file":"table-names.constant.js","sourceRoot":"","sources":["../../../../src/common/utils/constants/table-names.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,kBAAkB;IAC/B,gBAAgB,EAAE,uBAAuB;IACzC,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,qBAAqB;IACpC,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,aAAa;IACzB,OAAO,EAAE,WAAW;IACpB,YAAY,EAAE,eAAe;IAC7B,cAAc,EAAE,iBAAiB;IACjC,SAAS,EAAE,kBAAkB;IAC7B,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,YAAY;IACtB,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,eAAe;IAC7B,gBAAgB,EAAE,mBAAmB;IACrC,cAAc,EAAE,iBAAiB;IACjC,KAAK,EAAE,OAAO;IACd,mBAAmB,EAAE,qBAAqB;IAC1C,cAAc,EAAE,iBAAiB;IACjC,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,eAAe;IAC7B,WAAW,EAAE,qBAAqB;IAClC,UAAU,EAAG,YAAY;IACzB,KAAK,EAAE,QAAQ;IACf,QAAQ,EAAE,WAAW;IACrB,KAAK,EAAE,QAAQ;IACf,oBAAoB,EAAE,uBAAuB;IAC7C,gBAAgB,EAAE,mBAAmB;CACtC,CAAC"}