ia-common 1.0.1-beta.55 → 1.0.1-beta.56
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/build/@model.d.ts +1 -0
- package/build/@model.js +1 -0
- package/build/interface/entity/index.d.ts +1 -0
- package/build/interface/entity/index.js +1 -0
- package/build/interface/model/organization-entity-model.interface.d.ts +11 -0
- package/build/interface/model/organization-entity-model.interface.js +2 -0
- package/build/model/organization-entity-model.d.ts +33 -0
- package/build/model/organization-entity-model.js +40 -0
- package/package.json +1 -1
package/build/@model.d.ts
CHANGED
package/build/@model.js
CHANGED
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./model/pricing-plan-entity-model"), exports);
|
|
18
18
|
__exportStar(require("./model/subscribed-pricing-plan-model"), exports);
|
|
19
19
|
__exportStar(require("./exception/app-badrequest.exception"), exports);
|
|
20
|
+
__exportStar(require("./model/organization-entity-model"), exports);
|
|
@@ -23,3 +23,4 @@ __exportStar(require("./pricing-plan-entity.interface"), exports);
|
|
|
23
23
|
__exportStar(require("./subscription-entity.interface"), exports);
|
|
24
24
|
__exportStar(require("./advice-entity.interface"), exports);
|
|
25
25
|
__exportStar(require("./mutual-funds-entity.interface"), exports);
|
|
26
|
+
__exportStar(require("../model/organization-entity-model.interface"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IOrganizationEntity } from "../entity";
|
|
2
|
+
export interface IOrganizationEntityModel extends IOrganizationEntity {
|
|
3
|
+
getPanFolderName(): string;
|
|
4
|
+
getPanFileName(): string;
|
|
5
|
+
getGstFolderName(): string | undefined;
|
|
6
|
+
getGstFileName(): string | undefined;
|
|
7
|
+
getDeedFolderName(): string | undefined;
|
|
8
|
+
getDeedFileName(): string | undefined;
|
|
9
|
+
getSebiCertificateFolderName(): string | undefined;
|
|
10
|
+
getSebiCertificateFileName(): string | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { OrganizationStatus, OrganizationType } from "../@enum";
|
|
2
|
+
import { IOrganizationEntity } from "../@type";
|
|
3
|
+
export declare class OrganizationEntityModel implements IOrganizationEntity {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
email: string | null;
|
|
7
|
+
contactNo: string | null;
|
|
8
|
+
type: OrganizationType;
|
|
9
|
+
panNo: string;
|
|
10
|
+
panFilePath: string;
|
|
11
|
+
gstNo: string | null;
|
|
12
|
+
gstFilePath: string | null;
|
|
13
|
+
deed: string | null;
|
|
14
|
+
deedFilePath: string | null;
|
|
15
|
+
status: OrganizationStatus;
|
|
16
|
+
registrationId: number;
|
|
17
|
+
sebiCertificate: string;
|
|
18
|
+
validateFrom: string;
|
|
19
|
+
validateTo: string;
|
|
20
|
+
createdOn: Date;
|
|
21
|
+
updatedOn: Date;
|
|
22
|
+
createdBy: number;
|
|
23
|
+
updatedBy: number;
|
|
24
|
+
constructor(data: IOrganizationEntity);
|
|
25
|
+
getPanFolderName(): string;
|
|
26
|
+
getPanFileName(): string;
|
|
27
|
+
getGstFolderName(): string | undefined;
|
|
28
|
+
getGstFileName(): string | undefined;
|
|
29
|
+
getDeedFolderName(): string | undefined;
|
|
30
|
+
getDeedFileName(): string | undefined;
|
|
31
|
+
getSebiCertificateFolderName(): string | undefined;
|
|
32
|
+
getSebiCertificateFileName(): string | undefined;
|
|
33
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganizationEntityModel = void 0;
|
|
4
|
+
var OrganizationEntityModel = /** @class */ (function () {
|
|
5
|
+
function OrganizationEntityModel(data) {
|
|
6
|
+
Object.assign(this, data);
|
|
7
|
+
}
|
|
8
|
+
OrganizationEntityModel.prototype.getPanFolderName = function () {
|
|
9
|
+
return this.panFilePath.split("/").slice(3, 5)[0];
|
|
10
|
+
};
|
|
11
|
+
OrganizationEntityModel.prototype.getPanFileName = function () {
|
|
12
|
+
return this.panFilePath.split("/").slice(3, 5)[1];
|
|
13
|
+
};
|
|
14
|
+
OrganizationEntityModel.prototype.getGstFolderName = function () {
|
|
15
|
+
var _a;
|
|
16
|
+
return (_a = this.gstFilePath) === null || _a === void 0 ? void 0 : _a.split("/").slice(3, 5)[0];
|
|
17
|
+
};
|
|
18
|
+
OrganizationEntityModel.prototype.getGstFileName = function () {
|
|
19
|
+
var _a;
|
|
20
|
+
return (_a = this.gstFilePath) === null || _a === void 0 ? void 0 : _a.split("/").slice(3, 5)[1];
|
|
21
|
+
};
|
|
22
|
+
OrganizationEntityModel.prototype.getDeedFolderName = function () {
|
|
23
|
+
var _a;
|
|
24
|
+
return (_a = this.deedFilePath) === null || _a === void 0 ? void 0 : _a.split("/").slice(3, 5)[0];
|
|
25
|
+
};
|
|
26
|
+
OrganizationEntityModel.prototype.getDeedFileName = function () {
|
|
27
|
+
var _a;
|
|
28
|
+
return (_a = this.deedFilePath) === null || _a === void 0 ? void 0 : _a.split("/").slice(3, 5)[1];
|
|
29
|
+
};
|
|
30
|
+
OrganizationEntityModel.prototype.getSebiCertificateFolderName = function () {
|
|
31
|
+
var _a;
|
|
32
|
+
return (_a = this.sebiCertificate) === null || _a === void 0 ? void 0 : _a.split("/").slice(3, 5)[0];
|
|
33
|
+
};
|
|
34
|
+
OrganizationEntityModel.prototype.getSebiCertificateFileName = function () {
|
|
35
|
+
var _a;
|
|
36
|
+
return (_a = this.sebiCertificate) === null || _a === void 0 ? void 0 : _a.split("/").slice(3, 5)[1];
|
|
37
|
+
};
|
|
38
|
+
return OrganizationEntityModel;
|
|
39
|
+
}());
|
|
40
|
+
exports.OrganizationEntityModel = OrganizationEntityModel;
|