law-common 12.6.3-beta.3 → 12.6.3-beta.4

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/README.md CHANGED
@@ -1 +1 @@
1
- # law-common
1
+ # law-common
@@ -117,3 +117,5 @@ export * from "./interface/client_debit_note.create.dto.interface";
117
117
  export * from "./interface/client_debit_note.update.dto.interface";
118
118
  export * from "./interface/client_debit_note_particulars.create.dto.interface";
119
119
  export * from "./interface/client_debit_note_particulars.update.dto.interface";
120
+ export * from "./interface/industry.create.dto.interface";
121
+ export * from "./interface/industry.update.dto.interface";
@@ -137,3 +137,5 @@ __exportStar(require("./interface/client_debit_note.create.dto.interface"), expo
137
137
  __exportStar(require("./interface/client_debit_note.update.dto.interface"), exports);
138
138
  __exportStar(require("./interface/client_debit_note_particulars.create.dto.interface"), exports);
139
139
  __exportStar(require("./interface/client_debit_note_particulars.update.dto.interface"), exports);
140
+ __exportStar(require("./interface/industry.create.dto.interface"), exports);
141
+ __exportStar(require("./interface/industry.update.dto.interface"), exports);
@@ -0,0 +1,5 @@
1
+ import { IEntityCreateDto } from "../../entities";
2
+ import { IIndustryEntity } from "../../entities/interface/industry.entity.interface";
3
+ export type IIndustryCreateExclude = "status";
4
+ export interface IIndustryCreateDto extends Omit<IEntityCreateDto<IIndustryEntity>, IIndustryCreateExclude> {
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import { DeepPartialButRequired } from "./api.utils.interface";
2
+ import { IIndustryCreateDto } from "./industry.create.dto.interface";
3
+ export type IIndustryUpdateDto = DeepPartialButRequired<IIndustryCreateDto, never> & {
4
+ actionData: IIndustryActionDataDto;
5
+ };
6
+ export interface IIndustryActionDataDto {
7
+ action: IndustryActionEnum;
8
+ remark?: string;
9
+ }
10
+ export declare enum IndustryActionEnum {
11
+ CREATE = "create",
12
+ UPDATE = "update",
13
+ DELETE = "delete",
14
+ DEACTIVATE = "deactivate",
15
+ ACTIVATE = "activate",
16
+ RESTORE = "restore"
17
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IndustryActionEnum = void 0;
4
+ var IndustryActionEnum;
5
+ (function (IndustryActionEnum) {
6
+ IndustryActionEnum["CREATE"] = "create";
7
+ IndustryActionEnum["UPDATE"] = "update";
8
+ IndustryActionEnum["DELETE"] = "delete";
9
+ IndustryActionEnum["DEACTIVATE"] = "deactivate";
10
+ IndustryActionEnum["ACTIVATE"] = "activate";
11
+ IndustryActionEnum["RESTORE"] = "restore";
12
+ // APPROVE = "approve",
13
+ // REJECT = "reject",
14
+ // RECALL = "recall",
15
+ // REQUEST_CHANGES = "request_changes",
16
+ // CHANGES_DONE = "changes_done",
17
+ })(IndustryActionEnum || (exports.IndustryActionEnum = IndustryActionEnum = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum IndustryStatusEnum {
2
+ APPROVED = "APPROVED",
3
+ DEACTIVATED = "DEACTIVATED",
4
+ DELETED = "DELETED"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IndustryStatusEnum = void 0;
4
+ var IndustryStatusEnum;
5
+ (function (IndustryStatusEnum) {
6
+ IndustryStatusEnum["APPROVED"] = "APPROVED";
7
+ IndustryStatusEnum["DEACTIVATED"] = "DEACTIVATED";
8
+ IndustryStatusEnum["DELETED"] = "DELETED";
9
+ })(IndustryStatusEnum || (exports.IndustryStatusEnum = IndustryStatusEnum = {}));
@@ -0,0 +1,6 @@
1
+ import { FlowConfig } from "./flow-config.type";
2
+ import { IndustryActionEnum } from "../../api";
3
+ import { IndustryStatusEnum } from "../enums/industry_status_enum";
4
+ export interface IIndustryFlowConfigContextData {
5
+ }
6
+ export declare const industryFlowConfig: FlowConfig<IndustryStatusEnum, IndustryActionEnum, IIndustryFlowConfigContextData>;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.industryFlowConfig = void 0;
4
+ const base_flow_config_factory_1 = require("./base-flow-config.factory");
5
+ const api_1 = require("../../api");
6
+ const industry_status_enum_1 = require("../enums/industry_status_enum");
7
+ const INDUSTRY_CREATE_PERMISSION = ["INDUSTRY_CREATE"];
8
+ const INDUSTRY_UPDATE_PERMISSION = ["INDUSTRY_UPDATE"];
9
+ const INDUSTRY_DELETE_PERMISSION = ["INDUSTRY_DELETE"];
10
+ const INDUSTRY_DEACTIVATE_PERMISSION = ["INDUSTRY_DEACTIVATE"];
11
+ const INDUSTRY_ACTIVATE_PERMISSION = ["INDUSTRY_ACTIVATE"];
12
+ const INDUSTRY_RESTORE_PERMISSION = ["INDUSTRY_RESTORE"];
13
+ const ACTION_MAP = {
14
+ [api_1.IndustryActionEnum.CREATE]: {
15
+ reachableStatues: [industry_status_enum_1.IndustryStatusEnum.APPROVED],
16
+ permissions: INDUSTRY_CREATE_PERMISSION,
17
+ },
18
+ [api_1.IndustryActionEnum.UPDATE]: {
19
+ reachableStatues: [industry_status_enum_1.IndustryStatusEnum.APPROVED],
20
+ permissions: INDUSTRY_UPDATE_PERMISSION,
21
+ },
22
+ [api_1.IndustryActionEnum.DELETE]: {
23
+ reachableStatues: [industry_status_enum_1.IndustryStatusEnum.DELETED],
24
+ permissions: INDUSTRY_DELETE_PERMISSION,
25
+ },
26
+ [api_1.IndustryActionEnum.DEACTIVATE]: {
27
+ reachableStatues: [industry_status_enum_1.IndustryStatusEnum.DEACTIVATED],
28
+ permissions: INDUSTRY_DEACTIVATE_PERMISSION,
29
+ },
30
+ [api_1.IndustryActionEnum.ACTIVATE]: {
31
+ reachableStatues: [industry_status_enum_1.IndustryStatusEnum.APPROVED],
32
+ permissions: INDUSTRY_ACTIVATE_PERMISSION,
33
+ },
34
+ [api_1.IndustryActionEnum.RESTORE]: {
35
+ reachableStatues: [industry_status_enum_1.IndustryStatusEnum.APPROVED],
36
+ permissions: INDUSTRY_RESTORE_PERMISSION,
37
+ },
38
+ };
39
+ const { createActionConfig } = (0, base_flow_config_factory_1.createFlowConfigFactory)()(ACTION_MAP);
40
+ // APPROVED status transitions
41
+ const transitionApprovedStatusUpdateAction = createActionConfig(api_1.IndustryActionEnum.UPDATE, industry_status_enum_1.IndustryStatusEnum.APPROVED);
42
+ const transitionApprovedStatusDeleteAction = createActionConfig(api_1.IndustryActionEnum.DELETE, industry_status_enum_1.IndustryStatusEnum.DELETED);
43
+ const transitionApprovedStatusDeactivateAction = createActionConfig(api_1.IndustryActionEnum.DEACTIVATE, industry_status_enum_1.IndustryStatusEnum.DEACTIVATED);
44
+ // DEACTIVATED status transitions
45
+ const transitionDeactivatedStatusDeleteAction = createActionConfig(api_1.IndustryActionEnum.DELETE, industry_status_enum_1.IndustryStatusEnum.DELETED);
46
+ const transitionDeactivatedStatusActivateAction = createActionConfig(api_1.IndustryActionEnum.ACTIVATE, industry_status_enum_1.IndustryStatusEnum.APPROVED);
47
+ // DELETED status transitions
48
+ const transitionDeletedStatusUpdateAction = createActionConfig(api_1.IndustryActionEnum.UPDATE, industry_status_enum_1.IndustryStatusEnum.APPROVED);
49
+ const transitionDeletedStatusRestoreAction = createActionConfig(api_1.IndustryActionEnum.RESTORE, industry_status_enum_1.IndustryStatusEnum.APPROVED);
50
+ exports.industryFlowConfig = {
51
+ [industry_status_enum_1.IndustryStatusEnum.APPROVED]: {
52
+ actions: {
53
+ [api_1.IndustryActionEnum.UPDATE]: transitionApprovedStatusUpdateAction,
54
+ [api_1.IndustryActionEnum.DELETE]: transitionApprovedStatusDeleteAction,
55
+ [api_1.IndustryActionEnum.DEACTIVATE]: transitionApprovedStatusDeactivateAction,
56
+ },
57
+ },
58
+ [industry_status_enum_1.IndustryStatusEnum.DEACTIVATED]: {
59
+ actions: {
60
+ [api_1.IndustryActionEnum.DELETE]: transitionDeactivatedStatusDeleteAction,
61
+ [api_1.IndustryActionEnum.ACTIVATE]: transitionDeactivatedStatusActivateAction,
62
+ },
63
+ },
64
+ [industry_status_enum_1.IndustryStatusEnum.DELETED]: {
65
+ actions: {
66
+ [api_1.IndustryActionEnum.UPDATE]: transitionDeletedStatusUpdateAction,
67
+ [api_1.IndustryActionEnum.RESTORE]: transitionDeletedStatusRestoreAction,
68
+ },
69
+ },
70
+ };
@@ -265,6 +265,10 @@ export * from "./interface/debit_note_sequence_generator.entity.interface";
265
265
  export * from "./model/debit_note_sequence_generator.entity.model";
266
266
  export * from "./enums/client_debit_note_gst_visible_enum";
267
267
  export * from "./enums/client_debit_note_pan_visible_enum";
268
+ export * from "./enums/industry_status_enum";
269
+ export * from "./flow-configs/industry_flow.config";
270
+ export * from "./interface/industry.entity.interface";
271
+ export * from "./model/industry.entity.model";
268
272
  export * from "./enums/task.action.enum";
269
273
  export * from "./enums/task_status.enum";
270
274
  export * from "./flow-configs/task_flow.config";
@@ -282,6 +282,10 @@ __exportStar(require("./interface/debit_note_sequence_generator.entity.interface
282
282
  __exportStar(require("./model/debit_note_sequence_generator.entity.model"), exports);
283
283
  __exportStar(require("./enums/client_debit_note_gst_visible_enum"), exports);
284
284
  __exportStar(require("./enums/client_debit_note_pan_visible_enum"), exports);
285
+ __exportStar(require("./enums/industry_status_enum"), exports);
286
+ __exportStar(require("./flow-configs/industry_flow.config"), exports);
287
+ __exportStar(require("./interface/industry.entity.interface"), exports);
288
+ __exportStar(require("./model/industry.entity.model"), exports);
285
289
  __exportStar(require("./enums/task.action.enum"), exports);
286
290
  __exportStar(require("./enums/task_status.enum"), exports);
287
291
  __exportStar(require("./flow-configs/task_flow.config"), exports);
@@ -1,12 +1,15 @@
1
+ import { IndustryStatusEnum } from "../enums/industry_status_enum";
1
2
  import { IEntityAuditColumn } from "./entity-audit-columns.interface";
2
- import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
3
+ import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto, Nullable } from "./entity.utils.interface";
3
4
  export interface IIndustryEntity extends IEntityAuditColumn {
4
5
  id: number;
5
6
  name: string;
6
- description?: string;
7
+ description?: Nullable<string>;
8
+ status: IndustryStatusEnum;
7
9
  }
8
- export interface IIndustryEntityCreateDto extends IEntityCreateDto<IIndustryEntity> {
10
+ export type IIndustryCreateDtoExculde = "status";
11
+ export interface IIndustryEntityCreateDto extends Omit<IEntityCreateDto<IIndustryEntity>, IIndustryCreateDtoExculde> {
9
12
  }
10
- export interface IIndustryEntityUpdateDto extends IEntityUpdateDto<IIndustryEntity> {
13
+ export interface IIndustryEntityUpdateDto extends Omit<IEntityUpdateDto<IIndustryEntity>, IIndustryCreateDtoExculde> {
11
14
  }
12
15
  export type IIndustryEntityFilterData = IEntityFilterData<IIndustryEntity>;
@@ -1,16 +1,34 @@
1
1
  import { EntityEnum } from "../interface/entity.utils.interface";
2
- import { IIndustryEntity } from "../interface/industry.entity.interface";
3
- import { RelationConfigs } from "../interface/relation-config.interface";
4
2
  import { BaseEntityModel } from "./base.entity.model";
3
+ import { RelationConfigs } from "../interface/relation-config.interface";
4
+ import { IUserEntity } from "../interface/user.entity.interface";
5
+ import { UserEntityModel } from "./user.entity.model";
6
+ import { IRowActions } from "./interface/row-actions.interface";
7
+ import { IIndustryEntity } from "../interface/industry.entity.interface";
8
+ import { IndustryStatusEnum } from "../enums/industry_status_enum";
9
+ import { IndustryActionEnum } from "../../api";
10
+ import { IIndustryFlowConfigContextData } from "../flow-configs/industry_flow.config";
5
11
  export declare class IndustryEntityModel extends BaseEntityModel<EntityEnum.INDUSTRY> implements IIndustryEntity {
6
12
  id: number;
7
13
  name: string;
8
14
  description?: string;
15
+ status: IndustryStatusEnum;
9
16
  createdOn: number;
10
17
  updatedOn: number;
11
18
  createdBy: number;
12
19
  updatedBy: number;
13
20
  static relationConfigs: RelationConfigs<[], EntityEnum.INDUSTRY>;
14
21
  static fromEntity(entity: IIndustryEntity): IndustryEntityModel;
15
- getRelationConfigs(): [];
22
+ getRelationConfigs(): any[];
23
+ getNextStatus(currentUser: IUserEntity, action: IndustryActionEnum, industryFlowConfigContextData: IIndustryFlowConfigContextData): IndustryStatusEnum;
24
+ getAvailableActions(currentUser: UserEntityModel, config?: {
25
+ combinedActions?: Record<string, {
26
+ combineActions: IndustryActionEnum[];
27
+ label: string;
28
+ }>;
29
+ customLabels?: Partial<Record<IndustryActionEnum, string>>;
30
+ }): IRowActions<EntityEnum.INDUSTRY>[];
31
+ getUpdateActionVisibility(currentUser: UserEntityModel): {
32
+ [key: string]: () => boolean;
33
+ };
16
34
  }
@@ -3,11 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IndustryEntityModel = void 0;
4
4
  const entity_utils_interface_1 = require("../interface/entity.utils.interface");
5
5
  const base_entity_model_1 = require("./base.entity.model");
6
+ const exceptions_1 = require("../../exceptions");
7
+ const error_key_enum_1 = require("../../enums/error.key.enum");
8
+ const utils_1 = require("../../utils");
9
+ const industry_status_enum_1 = require("../enums/industry_status_enum");
10
+ const industry_flow_config_1 = require("../flow-configs/industry_flow.config");
6
11
  class IndustryEntityModel extends base_entity_model_1.BaseEntityModel {
7
12
  constructor() {
8
13
  super(...arguments);
9
14
  this.id = 0;
10
15
  this.name = "";
16
+ this.status = industry_status_enum_1.IndustryStatusEnum.APPROVED;
11
17
  this.createdOn = 0;
12
18
  this.updatedOn = 0;
13
19
  this.createdBy = 0;
@@ -19,7 +25,65 @@ class IndustryEntityModel extends base_entity_model_1.BaseEntityModel {
19
25
  return result;
20
26
  }
21
27
  getRelationConfigs() {
22
- return IndustryEntityModel.relationConfigs;
28
+ return this.constructor.prototype.constructor.relationConfigs || [];
29
+ }
30
+ getNextStatus(currentUser, action, industryFlowConfigContextData) {
31
+ if (!this.status) {
32
+ throw new exceptions_1.AppBadRequestException({
33
+ key: error_key_enum_1.ErrorKeyEnum.STATUS,
34
+ message: [`Status not found: ${this.status}`],
35
+ });
36
+ }
37
+ const flowForStatus = industry_flow_config_1.industryFlowConfig[this.status];
38
+ if (!flowForStatus) {
39
+ throw new exceptions_1.AppBadRequestException({
40
+ key: error_key_enum_1.ErrorKeyEnum.STATUS,
41
+ message: [`No flow configuration found for status: ${this.status}`],
42
+ });
43
+ }
44
+ if (!action) {
45
+ throw new exceptions_1.AppBadRequestException({
46
+ key: error_key_enum_1.ErrorKeyEnum.ACTION_DATA,
47
+ message: ["actionData is required"],
48
+ });
49
+ }
50
+ const matchingPermissionConfig = flowForStatus.actions[action];
51
+ if (!matchingPermissionConfig) {
52
+ throw new exceptions_1.AppBadRequestException({
53
+ key: error_key_enum_1.ErrorKeyEnum.ACTION,
54
+ message: [`Action '${action}' is not valid for the current status.`],
55
+ });
56
+ }
57
+ if (!currentUser.permissions || currentUser.permissions.length === 0) {
58
+ throw new exceptions_1.AppBadRequestException({
59
+ key: error_key_enum_1.ErrorKeyEnum.PERMISSIONS,
60
+ message: ["Permission not available for currentUser"],
61
+ });
62
+ }
63
+ const hasPermission = matchingPermissionConfig.permissions.some((permission) => currentUser.permissions.includes(permission));
64
+ if (!hasPermission) {
65
+ throw new exceptions_1.AppBadRequestException({
66
+ key: error_key_enum_1.ErrorKeyEnum.PERMISSION,
67
+ message: [`Current user does not have permission to ${action} industry`],
68
+ });
69
+ }
70
+ const nextStatus = matchingPermissionConfig.next(industryFlowConfigContextData);
71
+ return nextStatus;
72
+ }
73
+ getAvailableActions(currentUser, config) {
74
+ var _a;
75
+ const params = {
76
+ flowConfig: industry_flow_config_1.industryFlowConfig,
77
+ currentStatus: this.status,
78
+ userPermissions: (_a = currentUser.permissions) !== null && _a !== void 0 ? _a : [],
79
+ visibilityData: this.getUpdateActionVisibility.bind(this, currentUser),
80
+ combinedActions: config === null || config === void 0 ? void 0 : config.combinedActions,
81
+ customLabels: config === null || config === void 0 ? void 0 : config.customLabels,
82
+ };
83
+ return utils_1.EntityActionFlowResolverV2.getAvailableActionsData(params);
84
+ }
85
+ getUpdateActionVisibility(currentUser) {
86
+ return {};
23
87
  }
24
88
  }
25
89
  exports.IndustryEntityModel = IndustryEntityModel;
package/package.json CHANGED
@@ -1,56 +1,56 @@
1
- {
2
- "name": "law-common",
3
- "version": "12.6.3-beta.3",
4
- "description": "",
5
- "main": "dist/index.js",
6
- "files": [
7
- "dist/**/*"
8
- ],
9
- "scripts": {
10
- "clean": "rm -rf dist",
11
- "build": "npm run clean && tsc",
12
- "publish:beta": "npm run build && npm version prerelease --preid beta && git push && npm publish --tag beta",
13
- "publish:beta:link": "npm run build && npm version prerelease --preid beta && git push && npm publish --tag beta && npm run link",
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
- "publish:major": "npm verYsion major && git push && npm run build && npm publish",
17
- "link": "npm run build && npm link",
18
- "link:backend": "npm run build && npm link && cd ../law-backend && npm link law-common && cd ../law-common",
19
- "link:frontend": "npm run build && npm link && cd ../law-admin-web && npm link law-common && cd ../law-common",
20
- "link:both": "npm run build && npm link && cd ../law-backend && npm link law-common && cd ../law-admin-web && npm link law-common && cd ../law-common",
21
- "test": "jest",
22
- "format": "prettier --write .",
23
- "check-format": "prettier --check .",
24
- "pull:link": "git pull && npm run link",
25
- "check-version": "npm view law-common versions --json | jq -r '.[-1]'",
26
- "script:publish": "node scripts/publish.js",
27
- "script:publish:latest:beta": "npm run build && node scripts/publish.js prerelease beta && git push",
28
- "script:publish:latest:patch": "npm run build && node scripts/publish.js patch && git push",
29
- "script:nobuild:publish:latest:beta": "node scripts/publish.js prerelease beta && git push",
30
- "install:version": "node scripts/install-version.js",
31
- "script:publish:install:beta": "node scripts/publish-and-install.js prerelease beta",
32
- "script:publish:install:patch": "node scripts/publish-and-install.js patch",
33
- "script:publish:install:minor": "node scripts/publish-and-install.js minor",
34
- "script:publish:install:major": "node scripts/publish-and-install.js major"
35
- },
36
- "keywords": [],
37
- "author": "",
38
- "license": "ISC",
39
- "devDependencies": {
40
- "@types/jest": "^29.5.13",
41
- "@types/lodash": "^4.17.21",
42
- "@types/node": "^22.6.1",
43
- "jest": "^29.7.0",
44
- "prettier": "3.8.1",
45
- "semver": "^7.8.1",
46
- "ts-jest": "^29.2.5",
47
- "ts-node": "^10.9.2",
48
- "typescript": "^5.6.2"
49
- },
50
- "dependencies": {
51
- "@types/express": "^5.0.0",
52
- "@types/multer": "^1.4.12",
53
- "date-fns": "^4.1.0",
54
- "lodash": "4.17.21"
55
- }
56
- }
1
+ {
2
+ "name": "law-common",
3
+ "version": "12.6.3-beta.4",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "files": [
7
+ "dist/**/*"
8
+ ],
9
+ "scripts": {
10
+ "clean": "rm -rf dist",
11
+ "build": "npm run clean && tsc",
12
+ "publish:beta": "npm run build && npm version prerelease --preid beta && git push && npm publish --tag beta",
13
+ "publish:beta:link": "npm run build && npm version prerelease --preid beta && git push && npm publish --tag beta && npm run link",
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
+ "publish:major": "npm verYsion major && git push && npm run build && npm publish",
17
+ "link": "npm run build && npm link",
18
+ "link:backend": "npm run build && npm link && cd ../law-backend && npm link law-common && cd ../law-common",
19
+ "link:frontend": "npm run build && npm link && cd ../law-admin-web && npm link law-common && cd ../law-common",
20
+ "link:both": "npm run build && npm link && cd ../law-backend && npm link law-common && cd ../law-admin-web && npm link law-common && cd ../law-common",
21
+ "test": "jest",
22
+ "format": "prettier --write .",
23
+ "check-format": "prettier --check .",
24
+ "pull:link": "git pull && npm run link",
25
+ "check-version": "npm view law-common versions --json | jq -r '.[-1]'",
26
+ "script:publish": "node scripts/publish.js",
27
+ "script:publish:latest:beta": "npm run build && node scripts/publish.js prerelease beta && git push",
28
+ "script:publish:latest:patch": "npm run build && node scripts/publish.js patch && git push",
29
+ "script:nobuild:publish:latest:beta": "node scripts/publish.js prerelease beta && git push",
30
+ "install:version": "node scripts/install-version.js",
31
+ "script:publish:install:beta": "node scripts/publish-and-install.js prerelease beta",
32
+ "script:publish:install:patch": "node scripts/publish-and-install.js patch",
33
+ "script:publish:install:minor": "node scripts/publish-and-install.js minor",
34
+ "script:publish:install:major": "node scripts/publish-and-install.js major"
35
+ },
36
+ "keywords": [],
37
+ "author": "",
38
+ "license": "ISC",
39
+ "devDependencies": {
40
+ "@types/jest": "^29.5.13",
41
+ "@types/lodash": "^4.17.21",
42
+ "@types/node": "^22.6.1",
43
+ "jest": "^29.7.0",
44
+ "prettier": "3.8.1",
45
+ "semver": "^7.8.1",
46
+ "ts-jest": "^29.2.5",
47
+ "ts-node": "^10.9.2",
48
+ "typescript": "^5.6.2"
49
+ },
50
+ "dependencies": {
51
+ "@types/express": "^5.0.0",
52
+ "@types/multer": "^1.4.12",
53
+ "date-fns": "^4.1.0",
54
+ "lodash": "4.17.21"
55
+ }
56
+ }