@platform-modules/foreign-ministry 1.2.7 → 1.2.8
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/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/models/DiplomaticClubSubscriptionMasterModel.d.ts +6 -7
- package/dist/models/DiplomaticClubSubscriptionMasterModel.js +9 -29
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/models/DiplomaticClubSubscriptionMasterModel.ts +8 -27
package/dist/index.d.ts
CHANGED
|
@@ -158,6 +158,7 @@ export * from './models/UserEducationDetailsModel';
|
|
|
158
158
|
export { ProfileUpdateRequestStatus } from './models/ProfileUpdateRequestsModel';
|
|
159
159
|
export * from './models/DiplomaticTitlesMasterModel';
|
|
160
160
|
export { TitleCategory } from './models/DiplomaticTitlesMasterModel';
|
|
161
|
+
export { SubscriptionType } from './models/DiplomaticClubSubscriptionMasterModel';
|
|
161
162
|
export * from './models/CountryMasterModel';
|
|
162
163
|
export * from './models/NationalityMasterModel';
|
|
163
164
|
export * from './models/OfficeMasterModel';
|
package/dist/index.js
CHANGED
|
@@ -14,7 +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.TitleCategory = exports.ProfileUpdateRequestStatus = exports.StayAfterHoursTransactionStatus = exports.StayAfterHoursTransaction = exports.StayAfterHoursBalance = exports.EarlyCheckoutTransactionStatus = exports.EarlyCheckoutTransaction = exports.EarlyCheckoutFrequency = exports.EarlyCheckoutConfiguration = exports.EarlyCheckoutBalance = exports.LeaveTransactionStatus = exports.LeaveTransaction = exports.LeaveConfigurationGrades = exports.enumFrequency = exports.LeaveConfiguration = void 0;
|
|
17
|
+
exports.SubscriptionType = exports.TitleCategory = exports.ProfileUpdateRequestStatus = exports.StayAfterHoursTransactionStatus = exports.StayAfterHoursTransaction = exports.StayAfterHoursBalance = exports.EarlyCheckoutTransactionStatus = exports.EarlyCheckoutTransaction = exports.EarlyCheckoutFrequency = exports.EarlyCheckoutConfiguration = exports.EarlyCheckoutBalance = exports.LeaveTransactionStatus = exports.LeaveTransaction = exports.LeaveConfigurationGrades = exports.enumFrequency = exports.LeaveConfiguration = void 0;
|
|
18
18
|
__exportStar(require("./models/user"), exports);
|
|
19
19
|
__exportStar(require("./models/role"), exports);
|
|
20
20
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -190,6 +190,8 @@ Object.defineProperty(exports, "ProfileUpdateRequestStatus", { enumerable: true,
|
|
|
190
190
|
__exportStar(require("./models/DiplomaticTitlesMasterModel"), exports);
|
|
191
191
|
var DiplomaticTitlesMasterModel_1 = require("./models/DiplomaticTitlesMasterModel");
|
|
192
192
|
Object.defineProperty(exports, "TitleCategory", { enumerable: true, get: function () { return DiplomaticTitlesMasterModel_1.TitleCategory; } });
|
|
193
|
+
var DiplomaticClubSubscriptionMasterModel_1 = require("./models/DiplomaticClubSubscriptionMasterModel");
|
|
194
|
+
Object.defineProperty(exports, "SubscriptionType", { enumerable: true, get: function () { return DiplomaticClubSubscriptionMasterModel_1.SubscriptionType; } });
|
|
193
195
|
__exportStar(require("./models/CountryMasterModel"), exports);
|
|
194
196
|
__exportStar(require("./models/NationalityMasterModel"), exports);
|
|
195
197
|
__exportStar(require("./models/OfficeMasterModel"), exports);
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum SubscriptionType {
|
|
3
|
+
SINGLE = "Single",
|
|
4
|
+
FAMILY = "Family"
|
|
5
|
+
}
|
|
2
6
|
export declare class DiplomaticClubSubscriptionMaster extends BaseModel {
|
|
3
|
-
subscription_type:
|
|
7
|
+
subscription_type: SubscriptionType;
|
|
4
8
|
subscription_amount: number;
|
|
5
9
|
currency: string | null;
|
|
6
|
-
|
|
7
|
-
is_active: boolean;
|
|
8
|
-
effective_from: Date | null;
|
|
9
|
-
effective_to: Date | null;
|
|
10
|
-
subscription_period: string | null;
|
|
11
|
-
constructor(subscription_type: string, subscription_amount: number, currency?: string | null, description?: string | null, effective_from?: Date | null, effective_to?: Date | null, subscription_period?: string | null);
|
|
10
|
+
constructor(subscription_type: SubscriptionType, subscription_amount: number, currency?: string | null);
|
|
12
11
|
}
|
|
@@ -9,25 +9,25 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.DiplomaticClubSubscriptionMaster = void 0;
|
|
12
|
+
exports.DiplomaticClubSubscriptionMaster = exports.SubscriptionType = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var SubscriptionType;
|
|
16
|
+
(function (SubscriptionType) {
|
|
17
|
+
SubscriptionType["SINGLE"] = "Single";
|
|
18
|
+
SubscriptionType["FAMILY"] = "Family";
|
|
19
|
+
})(SubscriptionType || (exports.SubscriptionType = SubscriptionType = {}));
|
|
15
20
|
let DiplomaticClubSubscriptionMaster = class DiplomaticClubSubscriptionMaster extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(subscription_type, subscription_amount, currency
|
|
21
|
+
constructor(subscription_type, subscription_amount, currency) {
|
|
17
22
|
super();
|
|
18
23
|
this.subscription_type = subscription_type;
|
|
19
24
|
this.subscription_amount = subscription_amount;
|
|
20
25
|
this.currency = currency || null;
|
|
21
|
-
this.description = description || null;
|
|
22
|
-
this.is_active = true;
|
|
23
|
-
this.effective_from = effective_from || null;
|
|
24
|
-
this.effective_to = effective_to || null;
|
|
25
|
-
this.subscription_period = subscription_period || null;
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
exports.DiplomaticClubSubscriptionMaster = DiplomaticClubSubscriptionMaster;
|
|
29
29
|
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: '
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: SubscriptionType, nullable: false, default: SubscriptionType.SINGLE }),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], DiplomaticClubSubscriptionMaster.prototype, "subscription_type", void 0);
|
|
33
33
|
__decorate([
|
|
@@ -38,27 +38,7 @@ __decorate([
|
|
|
38
38
|
(0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true }),
|
|
39
39
|
__metadata("design:type", Object)
|
|
40
40
|
], DiplomaticClubSubscriptionMaster.prototype, "currency", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
43
|
-
__metadata("design:type", Object)
|
|
44
|
-
], DiplomaticClubSubscriptionMaster.prototype, "description", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
47
|
-
__metadata("design:type", Boolean)
|
|
48
|
-
], DiplomaticClubSubscriptionMaster.prototype, "is_active", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
51
|
-
__metadata("design:type", Object)
|
|
52
|
-
], DiplomaticClubSubscriptionMaster.prototype, "effective_from", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
55
|
-
__metadata("design:type", Object)
|
|
56
|
-
], DiplomaticClubSubscriptionMaster.prototype, "effective_to", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: true }),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], DiplomaticClubSubscriptionMaster.prototype, "subscription_period", void 0);
|
|
61
41
|
exports.DiplomaticClubSubscriptionMaster = DiplomaticClubSubscriptionMaster = __decorate([
|
|
62
42
|
(0, typeorm_1.Entity)({ name: 'diplomatic_club_subscription_master' }),
|
|
63
|
-
__metadata("design:paramtypes", [String, Number, Object
|
|
43
|
+
__metadata("design:paramtypes", [String, Number, Object])
|
|
64
44
|
], DiplomaticClubSubscriptionMaster);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -158,6 +158,7 @@ export * from './models/UserEducationDetailsModel';
|
|
|
158
158
|
export { ProfileUpdateRequestStatus } from './models/ProfileUpdateRequestsModel';
|
|
159
159
|
export * from './models/DiplomaticTitlesMasterModel';
|
|
160
160
|
export { TitleCategory } from './models/DiplomaticTitlesMasterModel';
|
|
161
|
+
export { SubscriptionType } from './models/DiplomaticClubSubscriptionMasterModel';
|
|
161
162
|
export * from './models/CountryMasterModel';
|
|
162
163
|
export * from './models/NationalityMasterModel';
|
|
163
164
|
export * from './models/OfficeMasterModel';
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { Column, Entity } from "typeorm";
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
3
|
|
|
4
|
+
export enum SubscriptionType {
|
|
5
|
+
SINGLE = "Single",
|
|
6
|
+
FAMILY = "Family"
|
|
7
|
+
}
|
|
8
|
+
|
|
4
9
|
@Entity({ name: 'diplomatic_club_subscription_master' })
|
|
5
10
|
export class DiplomaticClubSubscriptionMaster extends BaseModel {
|
|
6
|
-
@Column({ type: '
|
|
7
|
-
subscription_type:
|
|
11
|
+
@Column({ type: 'enum', enum: SubscriptionType, nullable: false, default: SubscriptionType.SINGLE })
|
|
12
|
+
subscription_type: SubscriptionType; // Type: Single or Family
|
|
8
13
|
|
|
9
14
|
@Column({ type: 'decimal', precision: 10, scale: 2 })
|
|
10
15
|
subscription_amount: number;
|
|
@@ -12,39 +17,15 @@ export class DiplomaticClubSubscriptionMaster extends BaseModel {
|
|
|
12
17
|
@Column({ type: 'varchar', length: 10, nullable: true })
|
|
13
18
|
currency: string | null;
|
|
14
19
|
|
|
15
|
-
@Column({ type: 'text', nullable: true })
|
|
16
|
-
description: string | null;
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'boolean', default: true })
|
|
19
|
-
is_active: boolean;
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'date', nullable: true })
|
|
22
|
-
effective_from: Date | null;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'date', nullable: true })
|
|
25
|
-
effective_to: Date | null;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'varchar', length: 20, nullable: true })
|
|
28
|
-
subscription_period: string | null; // e.g., "Monthly", "Yearly"
|
|
29
|
-
|
|
30
20
|
constructor(
|
|
31
|
-
subscription_type:
|
|
21
|
+
subscription_type: SubscriptionType,
|
|
32
22
|
subscription_amount: number,
|
|
33
23
|
currency?: string | null,
|
|
34
|
-
description?: string | null,
|
|
35
|
-
effective_from?: Date | null,
|
|
36
|
-
effective_to?: Date | null,
|
|
37
|
-
subscription_period?: string | null
|
|
38
24
|
) {
|
|
39
25
|
super();
|
|
40
26
|
this.subscription_type = subscription_type;
|
|
41
27
|
this.subscription_amount = subscription_amount;
|
|
42
28
|
this.currency = currency || null;
|
|
43
|
-
this.description = description || null;
|
|
44
|
-
this.is_active = true;
|
|
45
|
-
this.effective_from = effective_from || null;
|
|
46
|
-
this.effective_to = effective_to || null;
|
|
47
|
-
this.subscription_period = subscription_period || null;
|
|
48
29
|
}
|
|
49
30
|
}
|
|
50
31
|
|