@muni-sanfer/types-pre-obligado 0.0.1-alpha-0 → 0.0.1
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.
|
@@ -76,6 +76,13 @@ export declare class BudgetAvailabilityGetByIdResponseEntity implements Omit<Bud
|
|
|
76
76
|
} | null | undefined, employee?: (EmployeeGetByIdResponseEntity | null) | undefined);
|
|
77
77
|
static fromJson(obj: BudgetAvailabilityGetByIdResponseEntity): BudgetAvailabilityGetByIdResponseEntity;
|
|
78
78
|
}
|
|
79
|
+
export declare class BudgetAvailabilityGetAmountsResponseEntity {
|
|
80
|
+
initialAccountBudget: number;
|
|
81
|
+
cumulativeAmount: number;
|
|
82
|
+
balanceRemaining: number;
|
|
83
|
+
constructor(initialAccountBudget: number, cumulativeAmount: number, balanceRemaining: number);
|
|
84
|
+
static fromJson(obj: BudgetAvailabilityGetAmountsResponseEntity): BudgetAvailabilityGetAmountsResponseEntity;
|
|
85
|
+
}
|
|
79
86
|
export declare class BudgetAvailabilityCreateResponseEntity implements Pick<BudgetAvailabilityEntity, 'id'> {
|
|
80
87
|
id: BudgetAvailabilityEntity['id'];
|
|
81
88
|
ok: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BudgetAvailabilityDiscardResponseEntity = exports.BudgetAvailabilityCreateResponseEntity = exports.BudgetAvailabilityGetByIdResponseEntity = exports.BudgetAvailabilityGetAllResponseEntity = exports.BudgetAvailabilityGetAllByAccountPlanResponseEntity = exports.BudgetAvailabilityGetAllByCostCenterResponseEntity = exports.BudgetAvailabilityGetAllByManagementAreaResponseEntity = void 0;
|
|
3
|
+
exports.BudgetAvailabilityDiscardResponseEntity = exports.BudgetAvailabilityCreateResponseEntity = exports.BudgetAvailabilityGetAmountsResponseEntity = exports.BudgetAvailabilityGetByIdResponseEntity = exports.BudgetAvailabilityGetAllResponseEntity = exports.BudgetAvailabilityGetAllByAccountPlanResponseEntity = exports.BudgetAvailabilityGetAllByCostCenterResponseEntity = exports.BudgetAvailabilityGetAllByManagementAreaResponseEntity = void 0;
|
|
4
4
|
class BudgetAvailabilityGetAllByManagementAreaResponseEntity {
|
|
5
5
|
constructor(CodigoAG, NombreAG, PresupuestoInicial, cumulativeAmount) {
|
|
6
6
|
this.CodigoAG = CodigoAG;
|
|
@@ -77,6 +77,18 @@ class BudgetAvailabilityGetByIdResponseEntity {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
exports.BudgetAvailabilityGetByIdResponseEntity = BudgetAvailabilityGetByIdResponseEntity;
|
|
80
|
+
class BudgetAvailabilityGetAmountsResponseEntity {
|
|
81
|
+
constructor(initialAccountBudget, cumulativeAmount, balanceRemaining) {
|
|
82
|
+
this.initialAccountBudget = initialAccountBudget;
|
|
83
|
+
this.cumulativeAmount = cumulativeAmount;
|
|
84
|
+
this.balanceRemaining = balanceRemaining;
|
|
85
|
+
}
|
|
86
|
+
static fromJson(obj) {
|
|
87
|
+
const { initialAccountBudget, cumulativeAmount, balanceRemaining } = obj;
|
|
88
|
+
return new BudgetAvailabilityGetAmountsResponseEntity(initialAccountBudget, cumulativeAmount, balanceRemaining);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.BudgetAvailabilityGetAmountsResponseEntity = BudgetAvailabilityGetAmountsResponseEntity;
|
|
80
92
|
class BudgetAvailabilityCreateResponseEntity {
|
|
81
93
|
constructor(id, ok) {
|
|
82
94
|
this.id = id;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@muni-sanfer/types-pre-obligado",
|
|
3
|
-
"version": "0.0.1
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "tsc"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@muni-sanfer/types-caschile": "^0.0.4
|
|
11
|
-
"@muni-sanfer/types-organizacion": "^0.0.
|
|
10
|
+
"@muni-sanfer/types-caschile": "^0.0.4",
|
|
11
|
+
"@muni-sanfer/types-organizacion": "^0.0.5"
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -173,6 +173,20 @@ export class BudgetAvailabilityGetByIdResponseEntity
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
+
export class BudgetAvailabilityGetAmountsResponseEntity {
|
|
177
|
+
constructor(
|
|
178
|
+
public initialAccountBudget: number,
|
|
179
|
+
public cumulativeAmount: number,
|
|
180
|
+
public balanceRemaining: number,
|
|
181
|
+
) {}
|
|
182
|
+
|
|
183
|
+
public static fromJson(obj: BudgetAvailabilityGetAmountsResponseEntity): BudgetAvailabilityGetAmountsResponseEntity {
|
|
184
|
+
const { initialAccountBudget, cumulativeAmount, balanceRemaining } = obj;
|
|
185
|
+
|
|
186
|
+
return new BudgetAvailabilityGetAmountsResponseEntity(initialAccountBudget, cumulativeAmount, balanceRemaining);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
176
190
|
export class BudgetAvailabilityCreateResponseEntity implements Pick<BudgetAvailabilityEntity, 'id'> {
|
|
177
191
|
constructor(
|
|
178
192
|
public id: BudgetAvailabilityEntity['id'],
|