ia-common 1.1.1-beta.3 → 1.1.1-beta.31
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/@constants.d.ts +1 -0
- package/build/@constants.js +17 -0
- package/build/src/@constants.d.ts +1 -0
- package/build/src/@constants.js +17 -0
- package/build/src/@enum.d.ts +1 -33
- package/build/src/@enum.js +1 -33
- package/build/src/constants/entity_constants.d.ts +1 -0
- package/build/src/constants/entity_constants.js +17 -0
- package/build/src/constants/index.d.ts +1 -0
- package/build/src/constants/index.js +17 -0
- package/build/src/enum/corporate-actions/corporate-actions-type.enum.js +0 -1
- package/build/src/enum/error.key.enum.d.ts +3 -1
- package/build/src/enum/error.key.enum.js +2 -0
- package/build/src/enum/index.d.ts +34 -0
- package/build/src/enum/index.js +50 -0
- package/build/src/enum/permission-actions.enum.d.ts +7 -0
- package/build/src/enum/permission-actions.enum.js +11 -0
- package/build/src/enum/user/user-role.enum.d.ts +2 -4
- package/build/src/enum/user/user-role.enum.js +6 -4
- package/build/src/interface/api/bank-details-create-dto..interface.d.ts +4 -3
- package/build/src/interface/api/bank-details-update.dto.interface.d.ts +1 -3
- package/build/src/interface/api/configuration-update-dto.interface.d.ts +1 -1
- package/build/src/interface/api/corporate-actions-create.dto.d.ts +1 -1
- package/build/src/interface/api/create-corporate-action-advice.interface.d.ts +5 -6
- package/build/src/interface/api/create-user-dto.interface.d.ts +1 -2
- package/build/src/interface/api/equity-advice-create-dto.interface.d.ts +1 -1
- package/build/src/interface/api/equity-advice-update-dto..d.ts +1 -1
- package/build/src/interface/api/get-corporate-actions.interface.d.ts +1 -1
- package/build/src/interface/api/get-corporate-actions.interface.js +1 -1
- package/build/src/interface/api/get-cron-job-by-date-range.interface.d.ts +1 -1
- package/build/src/interface/api/get-staff-members.interface.d.ts +1 -1
- package/build/src/interface/api/index.d.ts +2 -0
- package/build/src/interface/api/index.js +2 -0
- package/build/src/interface/api/login.interface.d.ts +0 -1
- package/build/src/interface/api/manual-trigger-cron-job.interface.d.ts +1 -1
- package/build/src/interface/api/mutual-fund-advice-create-dto.interface.d.ts +1 -1
- package/build/src/interface/api/mutual-funds-create-dto.interface.d.ts +1 -1
- package/build/src/interface/api/nfo-advice-update-dto.interface.d.ts +1 -1
- package/build/src/interface/api/organization-update-dto.interface.d.ts +1 -1
- package/build/src/interface/api/permission.create.dto.interface.d.ts +4 -1
- package/build/src/interface/api/permission.update.dto.interface.d.ts +5 -1
- package/build/src/interface/api/pricing-plan-create.dto.interface.d.ts +3 -8
- package/build/src/interface/api/pricing-plan-update-dto.interface.d.ts +2 -2
- package/build/src/interface/api/role-user-mapping-create-dto.interface.d.ts +7 -0
- package/build/src/interface/api/role-user-mapping-create-dto.interface.js +2 -0
- package/build/src/interface/api/role-user-mapping-delete-dto.interface.d.ts +3 -0
- package/build/src/interface/api/role-user-mapping-delete-dto.interface.js +2 -0
- package/build/src/interface/api/subscription-create.dto.interface.d.ts +7 -1
- package/build/src/interface/api/subscription-update.dto.interface.d.ts +4 -7
- package/build/src/interface/api/update-corporate-action-advice.interface.d.ts +4 -7
- package/build/src/interface/api/update-corporate-action.interface.d.ts +1 -1
- package/build/src/interface/api/update-pricing-plan-by-id.interface.d.ts +2 -2
- package/build/src/interface/corporate-actions/base-corporate-actions.interface.d.ts +2 -1
- package/build/src/interface/corporate-actions/buy-back-corporate-actions.interface.d.ts +1 -1
- package/build/src/interface/corporate-actions/ipo-corporate-action.interface.d.ts +1 -1
- package/build/src/interface/corporate-actions/split-bonus-corporate-action.interface.d.ts +1 -1
- package/build/src/interface/entity/advice-entity.interface.d.ts +1 -1
- package/build/src/interface/entity/advisor-user-mapping-entity.interface.d.ts +1 -1
- package/build/src/interface/entity/bank-details-entity.interface.d.ts +2 -2
- package/build/src/interface/entity/configurations-entity.interface.d.ts +1 -1
- package/build/src/interface/entity/corporate-action-advice-entity.interface.d.ts +4 -4
- package/build/src/interface/entity/cron-job-entity.interface.d.ts +1 -1
- package/build/src/interface/entity/entity-utils.interface.d.ts +6 -3
- package/build/src/interface/entity/entity-utils.interface.js +1 -0
- package/build/src/interface/entity/equity-advice-in-process-entity.interface.d.ts +1 -1
- package/build/src/interface/entity/index.d.ts +1 -0
- package/build/src/interface/entity/index.js +1 -0
- package/build/src/interface/entity/mutual-fund-advice-entity.interface.d.ts +1 -1
- package/build/src/interface/entity/mutual-funds-entity.interface.d.ts +1 -1
- package/build/src/interface/entity/nfo-advice-entity.interface.d.ts +1 -1
- package/build/src/interface/entity/nfo-entity.interface.d.ts +1 -1
- package/build/src/interface/entity/permission.entity.interface.d.ts +2 -1
- package/build/src/interface/entity/pricing-plan-entity.interface.d.ts +1 -1
- package/build/src/interface/entity/relation-config.interface.d.ts +1 -1
- package/build/src/interface/entity/role-user-mapping-entity.interface.d.ts +8 -0
- package/build/src/interface/entity/role-user-mapping-entity.interface.js +2 -0
- package/build/src/interface/entity/role.entity.interface.d.ts +0 -1
- package/build/src/interface/entity/subscription-entity.interface.d.ts +1 -1
- package/build/src/interface/entity/user-entity.interface.d.ts +0 -2
- package/build/src/model/bank-details-entity-model.d.ts +2 -2
- package/build/src/model/bank-details-entity-model.js +3 -3
- package/build/src/model/corporate-actions/bonus-corporate-action-model.d.ts +2 -1
- package/build/src/model/corporate-actions/bonus-corporate-action-model.js +2 -2
- package/build/src/model/corporate-actions/buy-back-corporate-action-model.d.ts +3 -1
- package/build/src/model/corporate-actions/buy-back-corporate-action-model.js +2 -2
- package/build/src/model/corporate-actions/corporate-action-model.d.ts +2 -1
- package/build/src/model/corporate-actions/corporate-action-model.js +4 -3
- package/build/src/model/corporate-actions/corporate-actions-advice-model.d.ts +4 -4
- package/build/src/model/corporate-actions/corporate-actions-advice-model.js +3 -3
- package/build/src/model/corporate-actions/delisting-corporate-action-model.d.ts +2 -1
- package/build/src/model/corporate-actions/delisting-corporate-action-model.js +2 -2
- package/build/src/model/corporate-actions/dividend-corporate-action-model.d.ts +2 -1
- package/build/src/model/corporate-actions/dividend-corporate-action-model.js +2 -2
- package/build/src/model/corporate-actions/fpo-corporate-action-model.d.ts +2 -1
- package/build/src/model/corporate-actions/fpo-corporate-action-model.js +2 -2
- package/build/src/model/corporate-actions/ipo-corporate-action-model.d.ts +3 -1
- package/build/src/model/corporate-actions/ipo-corporate-action-model.js +2 -2
- package/build/src/model/corporate-actions/ofs-corporate-action-model.d.ts +2 -1
- package/build/src/model/corporate-actions/ofs-corporate-action-model.js +2 -2
- package/build/src/model/corporate-actions/open-offer-corporate-action-model.d.ts +2 -1
- package/build/src/model/corporate-actions/open-offer-corporate-action-model.js +2 -2
- package/build/src/model/corporate-actions/right-issue-corporate-action-model.d.ts +2 -1
- package/build/src/model/corporate-actions/right-issue-corporate-action-model.js +2 -2
- package/build/src/model/corporate-actions/split-bonus-corporate-action-model.d.ts +3 -1
- package/build/src/model/corporate-actions/split-corporate-action-model.d.ts +2 -1
- package/build/src/model/corporate-actions/split-corporate-action-model.js +2 -2
- package/build/src/model/index.d.ts +1 -0
- package/build/src/model/index.js +1 -0
- package/build/src/model/interface/entity.model.interface.js +3 -0
- package/build/src/model/interface/pricing-plan-model.interface.d.ts +2 -2
- package/build/src/model/mutual-funds-entity.model.d.ts +1 -1
- package/build/src/model/mutual-funds-entity.model.js +2 -2
- package/build/src/model/nfo-advice-entity.model.d.ts +1 -1
- package/build/src/model/nfo-advice-entity.model.js +3 -3
- package/build/src/model/nfo-entity.model.d.ts +1 -1
- package/build/src/model/nfo-entity.model.js +2 -2
- package/build/src/model/organization-entity-model.d.ts +0 -1
- package/build/src/model/organization-entity-model.js +13 -13
- package/build/src/model/permission-entity-model.d.ts +3 -1
- package/build/src/model/permission-entity-model.js +3 -1
- package/build/src/model/pricing-plan-entity-model.d.ts +1 -1
- package/build/src/model/pricing-plan-entity-model.js +4 -4
- package/build/src/model/pricing-plan-model.d.ts +2 -2
- package/build/src/model/pricing-plan-model.js +4 -4
- package/build/src/model/role-entity-model.d.ts +0 -1
- package/build/src/model/role-entity-model.js +0 -1
- package/build/src/model/role-user-mapping-entity-model.d.ts +15 -0
- package/build/src/model/role-user-mapping-entity-model.js +26 -0
- package/build/src/model/user-entity-model.d.ts +1 -3
- package/build/src/model/user-entity-model.js +2 -13
- package/build/src/red-black-tree/js-cols.d.ts +2 -0
- package/build/src/red-black-tree/js-cols.js +12 -0
- package/build/src/utils/date-util.d.ts +1 -0
- package/build/src/utils/date-util.js +44 -0
- package/build/src/utils/helper.fn.utils.d.ts +47 -1
- package/build/src/utils/helper.fn.utils.js +150 -1
- package/build/src/utils/validate-utils.d.ts +1 -1
- package/package.json +6 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Modify } from "../@type";
|
|
1
|
+
import { EntityEnum, IEntitySearch, Modify } from "../@type";
|
|
2
2
|
/**
|
|
3
3
|
* Returns epoch time (ms) for today's date at the given local time (IST).
|
|
4
4
|
*/
|
|
@@ -83,3 +83,49 @@ export declare function toDateFromEpoch(epoch: number): Date;
|
|
|
83
83
|
*/
|
|
84
84
|
export declare function deepMerge(existing: any, incoming: any): any;
|
|
85
85
|
export declare function groupByOneToOneFunction<T, K>(list: T[], keyGetter: (input: T) => K): Map<K, T>;
|
|
86
|
+
export declare function getPropertyFilterByPermissionFn<T extends EntityEnum>(permissionFilterConfig: {
|
|
87
|
+
[key: string]: () => Promise<IEntitySearch<T>>;
|
|
88
|
+
}, propertyNames: string[], userPermission: string, filterDto: IEntitySearch<T>, emptyValue?: any): Promise<IEntitySearch<T>>;
|
|
89
|
+
/**
|
|
90
|
+
* Returns the list of duplicate values from an array.
|
|
91
|
+
*
|
|
92
|
+
* @template T - The type of elements in the array.
|
|
93
|
+
*
|
|
94
|
+
* @param {T[]} arr - The array to check for duplicates.
|
|
95
|
+
*
|
|
96
|
+
* @returns {T[]} An array containing the values that appear more than once.
|
|
97
|
+
* Each duplicate value is included only once.
|
|
98
|
+
*
|
|
99
|
+
* @description
|
|
100
|
+
* This function scans the array and counts occurrences of each value using a Map.
|
|
101
|
+
* Any value with a count greater than 1 is considered a duplicate.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* getDuplicates([1, 2, 2, 3, 3, 3]);
|
|
105
|
+
* // Returns: [2, 3]
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* getDuplicates(['a', 'b', 'b', 'c']);
|
|
109
|
+
* // Returns: ['b']
|
|
110
|
+
*
|
|
111
|
+
* @remarks
|
|
112
|
+
* - Works with all primitive types: number, string, boolean, undefined, null.
|
|
113
|
+
* - For objects, duplicates are based on **reference equality**, not deep equality.
|
|
114
|
+
*/
|
|
115
|
+
export declare function getDuplicates<T>(arr: T[]): T[];
|
|
116
|
+
/**
|
|
117
|
+
* Derives permission group from permission name.
|
|
118
|
+
*
|
|
119
|
+
* Rules:
|
|
120
|
+
* - Entity is resolved using EntityEnum (longest prefix match)
|
|
121
|
+
* - Action is the part immediately after the entity name
|
|
122
|
+
* - Scope (ORG / SELF / BULK / etc.) is ignored
|
|
123
|
+
* - Group format: <entity>_<action> (lowercase)
|
|
124
|
+
*
|
|
125
|
+
* Examples:
|
|
126
|
+
* CORPORATE_ACTIONS_CREATE_ORG → corporate_actions_create
|
|
127
|
+
* CORPORATE_ACTIONS_ADVICE_CREATE_ORG → corporate_actions_advice_create
|
|
128
|
+
* USER_EXPORT_EXCEL → user_export
|
|
129
|
+
* USER_NAV → user_nav
|
|
130
|
+
*/
|
|
131
|
+
export declare function derivePermissionGroup(permissionName: string): string;
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.groupByOneToOneFunction = exports.deepMerge = exports.toDateFromEpoch = exports.groupByFunction = exports.transformDate = exports.getStringValues = exports.getTodayISTEpoch = void 0;
|
|
12
|
+
exports.derivePermissionGroup = exports.getDuplicates = exports.getPropertyFilterByPermissionFn = exports.groupByOneToOneFunction = exports.deepMerge = exports.toDateFromEpoch = exports.groupByFunction = exports.transformDate = exports.getStringValues = exports.getTodayISTEpoch = void 0;
|
|
13
|
+
const _enum_1 = require("../@enum");
|
|
14
|
+
const _type_1 = require("../@type");
|
|
15
|
+
const model_1 = require("../model");
|
|
4
16
|
/**
|
|
5
17
|
* Returns epoch time (ms) for today's date at the given local time (IST).
|
|
6
18
|
*/
|
|
@@ -133,3 +145,140 @@ function groupByOneToOneFunction(list, keyGetter) {
|
|
|
133
145
|
return map;
|
|
134
146
|
}
|
|
135
147
|
exports.groupByOneToOneFunction = groupByOneToOneFunction;
|
|
148
|
+
function getPropertyFilterByPermissionFn(permissionFilterConfig, propertyNames, userPermission, filterDto, emptyValue = []) {
|
|
149
|
+
var _a, _b;
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
const permissionFilterData = yield permissionFilterConfig[userPermission]();
|
|
152
|
+
const result = {
|
|
153
|
+
name: filterDto.name,
|
|
154
|
+
include: {},
|
|
155
|
+
};
|
|
156
|
+
for (const propertyName of propertyNames) {
|
|
157
|
+
const dtoInclude = (_a = filterDto.include) !== null && _a !== void 0 ? _a : {};
|
|
158
|
+
const dtoFilter = dtoInclude[propertyName];
|
|
159
|
+
const permissionInclude = (_b = permissionFilterData.include) !== null && _b !== void 0 ? _b : {};
|
|
160
|
+
const permissionFilter = permissionInclude[propertyName];
|
|
161
|
+
const isDtoPresent = Array.isArray(dtoFilter) && dtoFilter.length > 0;
|
|
162
|
+
const isPermissionPresent = Array.isArray(permissionFilter) && permissionFilter.length > 0;
|
|
163
|
+
// --------- CASE 1: Permission says allow all ([]) ----------
|
|
164
|
+
if (Array.isArray(permissionFilter) && permissionFilter.length === 0) {
|
|
165
|
+
result.include[propertyName] = dtoFilter !== null && dtoFilter !== void 0 ? dtoFilter : []; // allow everything
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
// --------- CASE 2: Permission has restriction ----------
|
|
169
|
+
if (isPermissionPresent) {
|
|
170
|
+
if (isDtoPresent) {
|
|
171
|
+
const intersection = (0, _type_1.arrayIntersection)(permissionFilter, dtoFilter);
|
|
172
|
+
result.include[propertyName] =
|
|
173
|
+
intersection.length > 0 ? intersection : emptyValue;
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
// no dto filter → use full permission filter
|
|
177
|
+
result.include[propertyName] = permissionFilter;
|
|
178
|
+
}
|
|
179
|
+
continue;
|
|
180
|
+
}
|
|
181
|
+
// --------- CASE 3: No permission restriction → use dto filter ----------
|
|
182
|
+
if (Array.isArray(dtoFilter)) {
|
|
183
|
+
result.include[propertyName] = dtoFilter;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return result;
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
exports.getPropertyFilterByPermissionFn = getPropertyFilterByPermissionFn;
|
|
190
|
+
/**
|
|
191
|
+
* Returns the list of duplicate values from an array.
|
|
192
|
+
*
|
|
193
|
+
* @template T - The type of elements in the array.
|
|
194
|
+
*
|
|
195
|
+
* @param {T[]} arr - The array to check for duplicates.
|
|
196
|
+
*
|
|
197
|
+
* @returns {T[]} An array containing the values that appear more than once.
|
|
198
|
+
* Each duplicate value is included only once.
|
|
199
|
+
*
|
|
200
|
+
* @description
|
|
201
|
+
* This function scans the array and counts occurrences of each value using a Map.
|
|
202
|
+
* Any value with a count greater than 1 is considered a duplicate.
|
|
203
|
+
*
|
|
204
|
+
* @example
|
|
205
|
+
* getDuplicates([1, 2, 2, 3, 3, 3]);
|
|
206
|
+
* // Returns: [2, 3]
|
|
207
|
+
*
|
|
208
|
+
* @example
|
|
209
|
+
* getDuplicates(['a', 'b', 'b', 'c']);
|
|
210
|
+
* // Returns: ['b']
|
|
211
|
+
*
|
|
212
|
+
* @remarks
|
|
213
|
+
* - Works with all primitive types: number, string, boolean, undefined, null.
|
|
214
|
+
* - For objects, duplicates are based on **reference equality**, not deep equality.
|
|
215
|
+
*/
|
|
216
|
+
function getDuplicates(arr) {
|
|
217
|
+
const countMap = new Map();
|
|
218
|
+
for (const item of arr) {
|
|
219
|
+
countMap.set(item, (countMap.get(item) || 0) + 1);
|
|
220
|
+
}
|
|
221
|
+
const duplicates = [];
|
|
222
|
+
for (const [value, count] of countMap.entries()) {
|
|
223
|
+
if (count > 1)
|
|
224
|
+
duplicates.push(value);
|
|
225
|
+
}
|
|
226
|
+
return duplicates;
|
|
227
|
+
}
|
|
228
|
+
exports.getDuplicates = getDuplicates;
|
|
229
|
+
/**
|
|
230
|
+
* Derives permission group from permission name.
|
|
231
|
+
*
|
|
232
|
+
* Rules:
|
|
233
|
+
* - Entity is resolved using EntityEnum (longest prefix match)
|
|
234
|
+
* - Action is the part immediately after the entity name
|
|
235
|
+
* - Scope (ORG / SELF / BULK / etc.) is ignored
|
|
236
|
+
* - Group format: <entity>_<action> (lowercase)
|
|
237
|
+
*
|
|
238
|
+
* Examples:
|
|
239
|
+
* CORPORATE_ACTIONS_CREATE_ORG → corporate_actions_create
|
|
240
|
+
* CORPORATE_ACTIONS_ADVICE_CREATE_ORG → corporate_actions_advice_create
|
|
241
|
+
* USER_EXPORT_EXCEL → user_export
|
|
242
|
+
* USER_NAV → user_nav
|
|
243
|
+
*/
|
|
244
|
+
function derivePermissionGroup(permissionName) {
|
|
245
|
+
const parts = permissionName.split("_");
|
|
246
|
+
// handle NAV permissions first
|
|
247
|
+
if (parts[parts.length - 1] === "NAV") {
|
|
248
|
+
return `${parts.slice(0, -1).join("_").toLowerCase()}_nav`;
|
|
249
|
+
}
|
|
250
|
+
// resolve entity (longest match from EntityEnum)
|
|
251
|
+
let matchedEntityKey = null;
|
|
252
|
+
let matchedLength = 0;
|
|
253
|
+
for (const key of Object.keys(_type_1.EntityEnum)) {
|
|
254
|
+
const entityParts = key.split("_");
|
|
255
|
+
const matches = entityParts.every((part, idx) => parts[idx] === part);
|
|
256
|
+
if (matches && entityParts.length > matchedLength) {
|
|
257
|
+
matchedEntityKey = key;
|
|
258
|
+
matchedLength = entityParts.length;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
if (!matchedEntityKey) {
|
|
262
|
+
throw new model_1.AppBadRequestException({
|
|
263
|
+
key: _enum_1.ErrorKeyEnum.PERMISSION_NAME,
|
|
264
|
+
message: [
|
|
265
|
+
`Invalid permission name (entity not found): ${permissionName}`,
|
|
266
|
+
],
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
// the action is the first part after the entity
|
|
270
|
+
const remainingParts = parts.slice(matchedLength);
|
|
271
|
+
if (remainingParts.length === 0) {
|
|
272
|
+
throw new model_1.AppBadRequestException({
|
|
273
|
+
key: _enum_1.ErrorKeyEnum.PERMISSION_NAME,
|
|
274
|
+
message: [
|
|
275
|
+
`Invalid permission name (action not found): ${permissionName}`,
|
|
276
|
+
],
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
const action = remainingParts[0];
|
|
280
|
+
// build group
|
|
281
|
+
const entity = _type_1.EntityEnum[matchedEntityKey];
|
|
282
|
+
return `${entity}_${action.toLowerCase()}`;
|
|
283
|
+
}
|
|
284
|
+
exports.derivePermissionGroup = derivePermissionGroup;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CorporateActionsType } from "
|
|
1
|
+
import { CorporateActionsType } from "../enum/corporate-actions/corporate-actions-type.enum";
|
|
2
2
|
export declare class ValidateUtils {
|
|
3
3
|
static validateCorporateActionType(corporateActionType: CorporateActionsType, expectedType: CorporateActionsType): void;
|
|
4
4
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ia-common",
|
|
3
|
-
"version": "1.1.1-beta.
|
|
3
|
+
"version": "1.1.1-beta.31",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -10,13 +10,14 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"clean": "rm -rf build",
|
|
12
12
|
"build": "npm run clean && tsc",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
13
|
+
"publish:beta": "npm version prerelease --preid beta && git push && npm run build && npm publish --tag beta",
|
|
14
|
+
"publish:patch": "npm version patch && git push && npm run build && npm publish",
|
|
15
|
+
"publish:minor": "npm version minor && git push && npm run build && npm publish",
|
|
16
16
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
17
17
|
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" 2>&1| tee eslint.log",
|
|
18
18
|
"lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
19
|
-
"link": "npm run build && npm link"
|
|
19
|
+
"link": "npm run build && npm link",
|
|
20
|
+
"pull:link": "git pull && npm run link"
|
|
20
21
|
},
|
|
21
22
|
"repository": {
|
|
22
23
|
"type": "git",
|