WIP
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
export interface AddressDto {
|
||||
street: string;
|
||||
city: string;
|
||||
zip: string;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=address.dto.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"address.dto.js","sourceRoot":"","sources":["../../src/common/address.dto.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1,3 @@
|
||||
export * from './address.dto';
|
||||
export * from './paginated-result.dto';
|
||||
export * from './validation-error';
|
||||
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__exportStar(require("./address.dto"), exports);
|
||||
__exportStar(require("./paginated-result.dto"), exports);
|
||||
__exportStar(require("./validation-error"), exports);
|
||||
//# sourceMappingURL=index.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,yDAAuC;AACvC,qDAAmC"}
|
||||
@@ -0,0 +1,9 @@
|
||||
export interface PaginatedResult<T> {
|
||||
data: T[];
|
||||
meta: {
|
||||
total: number;
|
||||
page: number;
|
||||
limit: number;
|
||||
totalPages: number;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=paginated-result.dto.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"paginated-result.dto.js","sourceRoot":"","sources":["../../src/common/paginated-result.dto.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1,8 @@
|
||||
export interface ValidationError {
|
||||
field: string;
|
||||
message: string;
|
||||
source: {
|
||||
type: 'TOUR' | 'PATIENT';
|
||||
id: string;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=validation-error.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"validation-error.js","sourceRoot":"","sources":["../../src/common/validation-error.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from './common';
|
||||
export * from './tickets';
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__exportStar(require("./common"), exports);
|
||||
__exportStar(require("./tickets"), exports);
|
||||
//# sourceMappingURL=index.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,4CAA0B"}
|
||||
@@ -0,0 +1,5 @@
|
||||
export declare class GetBoardQueryDto {
|
||||
stage: string;
|
||||
page: number;
|
||||
limit: number;
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.GetBoardQueryDto = void 0;
|
||||
const class_transformer_1 = require("class-transformer");
|
||||
const class_validator_1 = require("class-validator");
|
||||
class GetBoardQueryDto {
|
||||
constructor() {
|
||||
this.page = 1;
|
||||
this.limit = 10;
|
||||
}
|
||||
}
|
||||
exports.GetBoardQueryDto = GetBoardQueryDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], GetBoardQueryDto.prototype, "stage", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_transformer_1.Type)(() => Number),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.Min)(1),
|
||||
__metadata("design:type", Number)
|
||||
], GetBoardQueryDto.prototype, "page", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_transformer_1.Type)(() => Number),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.Min)(1),
|
||||
(0, class_validator_1.Max)(50),
|
||||
__metadata("design:type", Number)
|
||||
], GetBoardQueryDto.prototype, "limit", void 0);
|
||||
//# sourceMappingURL=get-board-query.dto.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"get-board-query.dto.js","sourceRoot":"","sources":["../../src/tickets/get-board-query.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAAwE;AAExE,MAAa,gBAAgB;IAA7B;QAQE,SAAI,GAAW,CAAC,CAAC;QAOjB,UAAK,GAAW,EAAE,CAAC;IACrB,CAAC;CAAA;AAhBD,4CAgBC;AAdC;IADC,IAAA,0BAAQ,GAAE;;+CACI;AAMf;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;8CACU;AAOjB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,EAAE,CAAC;;+CACW"}
|
||||
@@ -0,0 +1,4 @@
|
||||
export * from './get-board-query.dto';
|
||||
export * from './ticket-detail.dto';
|
||||
export * from './ticket-list.dto';
|
||||
export * from './ticket.enum';
|
||||
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__exportStar(require("./get-board-query.dto"), exports);
|
||||
__exportStar(require("./ticket-detail.dto"), exports);
|
||||
__exportStar(require("./ticket-list.dto"), exports);
|
||||
__exportStar(require("./ticket.enum"), exports);
|
||||
//# sourceMappingURL=index.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tickets/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,sDAAoC;AACpC,oDAAkC;AAClC,gDAA6B"}
|
||||
@@ -0,0 +1,63 @@
|
||||
import { ValidationError } from '../common';
|
||||
import { AddressDto } from '../common/address.dto';
|
||||
import { ApprovalRequestStatus, ApprovalRequirement, TicketStage } from './ticket.enum';
|
||||
export interface TicketTourSummaryDto {
|
||||
id: string;
|
||||
operationId: string;
|
||||
date: string;
|
||||
startAddress: AddressDto;
|
||||
targetAddress: AddressDto;
|
||||
}
|
||||
export interface TicketApprovalViewDto {
|
||||
requirement: ApprovalRequirement;
|
||||
status: ApprovalRequestStatus;
|
||||
statusLabel: string;
|
||||
actions: {
|
||||
override: {
|
||||
isPossible: boolean;
|
||||
label: string;
|
||||
confirmationMessage?: string;
|
||||
};
|
||||
sendRequest: {
|
||||
isPossible: boolean;
|
||||
label: string;
|
||||
description: string;
|
||||
};
|
||||
sendReminder: {
|
||||
isPossible: boolean;
|
||||
label: string;
|
||||
description: string;
|
||||
};
|
||||
approve: {
|
||||
isPossible: boolean;
|
||||
};
|
||||
};
|
||||
}
|
||||
export interface TicketDetailDto {
|
||||
id: string;
|
||||
stage: TicketStage;
|
||||
general: {
|
||||
ordinanceType: string;
|
||||
transportType: string;
|
||||
category: string;
|
||||
hasInfection: boolean;
|
||||
infectionName: string | null;
|
||||
isSeries: boolean;
|
||||
seriesEndDate: Date;
|
||||
};
|
||||
validationErrors: ValidationError[];
|
||||
patient: {
|
||||
id: string;
|
||||
name: string;
|
||||
healthInsurance: string;
|
||||
address: AddressDto;
|
||||
};
|
||||
approval: TicketApprovalViewDto;
|
||||
transportDocument: {
|
||||
isUploaded: boolean;
|
||||
link: string;
|
||||
};
|
||||
tours: TicketTourSummaryDto[];
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=ticket-detail.dto.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ticket-detail.dto.js","sourceRoot":"","sources":["../../src/tickets/ticket-detail.dto.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1,12 @@
|
||||
export interface TicketListItemDto {
|
||||
id: string;
|
||||
ordinanceType: string;
|
||||
patientName: string;
|
||||
stage: string;
|
||||
tourCount: number;
|
||||
errorCount: number;
|
||||
approvalStatus: string;
|
||||
isOverdue: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=ticket-list.dto.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ticket-list.dto.js","sourceRoot":"","sources":["../../src/tickets/ticket-list.dto.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1,20 @@
|
||||
export declare enum TicketStage {
|
||||
DRAFT = "DRAFT",
|
||||
DATA_INCOMPLETE = "DATA_INCOMPLETE",
|
||||
ASSESSMENT_PENDING = "ASSESSMENT",
|
||||
APPROVAL_IN_PROGRESS = "APPROVAL",
|
||||
DOCUMENTS_PENDING = "DOCS_PENDING",
|
||||
READY = "READY",
|
||||
ARCHIVED = "ARCHIVED"
|
||||
}
|
||||
export declare enum ApprovalRequirement {
|
||||
UNKOWN = "UNKNOWN",
|
||||
NOT_REQUIRED = "NOT_REQUIRED",
|
||||
REQUIRED = "REQUIRED"
|
||||
}
|
||||
export declare enum ApprovalRequestStatus {
|
||||
NOT_STARTED = "NOT_STARTED",
|
||||
PRE_INQUIRY_SENT = "PRE_INQUIRY_SENT",
|
||||
FULL_REQUEST_SENT = "FULL_REQUEST_SENT",
|
||||
GRANTED = "GRANTED"
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ApprovalRequestStatus = exports.ApprovalRequirement = exports.TicketStage = void 0;
|
||||
var TicketStage;
|
||||
(function (TicketStage) {
|
||||
TicketStage["DRAFT"] = "DRAFT";
|
||||
TicketStage["DATA_INCOMPLETE"] = "DATA_INCOMPLETE";
|
||||
TicketStage["ASSESSMENT_PENDING"] = "ASSESSMENT";
|
||||
TicketStage["APPROVAL_IN_PROGRESS"] = "APPROVAL";
|
||||
TicketStage["DOCUMENTS_PENDING"] = "DOCS_PENDING";
|
||||
TicketStage["READY"] = "READY";
|
||||
TicketStage["ARCHIVED"] = "ARCHIVED";
|
||||
})(TicketStage || (exports.TicketStage = TicketStage = {}));
|
||||
var ApprovalRequirement;
|
||||
(function (ApprovalRequirement) {
|
||||
ApprovalRequirement["UNKOWN"] = "UNKNOWN";
|
||||
ApprovalRequirement["NOT_REQUIRED"] = "NOT_REQUIRED";
|
||||
ApprovalRequirement["REQUIRED"] = "REQUIRED";
|
||||
})(ApprovalRequirement || (exports.ApprovalRequirement = ApprovalRequirement = {}));
|
||||
var ApprovalRequestStatus;
|
||||
(function (ApprovalRequestStatus) {
|
||||
ApprovalRequestStatus["NOT_STARTED"] = "NOT_STARTED";
|
||||
ApprovalRequestStatus["PRE_INQUIRY_SENT"] = "PRE_INQUIRY_SENT";
|
||||
ApprovalRequestStatus["FULL_REQUEST_SENT"] = "FULL_REQUEST_SENT";
|
||||
ApprovalRequestStatus["GRANTED"] = "GRANTED";
|
||||
})(ApprovalRequestStatus || (exports.ApprovalRequestStatus = ApprovalRequestStatus = {}));
|
||||
//# sourceMappingURL=ticket.enum.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ticket.enum.js","sourceRoot":"","sources":["../../src/tickets/ticket.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,kDAAmC,CAAA;IACnC,gDAAiC,CAAA;IACjC,gDAAiC,CAAA;IACjC,iDAAkC,CAAA;IAClC,8BAAe,CAAA;IACf,oCAAqB,CAAA;AACvB,CAAC,EARW,WAAW,2BAAX,WAAW,QAQtB;AAED,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,yCAAkB,CAAA;IAClB,oDAA6B,CAAA;IAC7B,4CAAqB,CAAA;AACvB,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B;AAED,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,oDAA2B,CAAA;IAC3B,8DAAqC,CAAA;IACrC,gEAAuC,CAAA;IACvC,4CAAmB,CAAA;AACrB,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC"}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "@avicenna/shared-dtos",
|
||||
"version": "1.0.0",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"watch": "tsc --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"class-transformer": "^0.5.1",
|
||||
"class-validator": "^0.14.3"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
export interface AddressDto {
|
||||
street: string;
|
||||
city: string;
|
||||
zip: string;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export * from './address.dto';
|
||||
export * from './paginated-result.dto';
|
||||
export * from './validation-error';
|
||||
@@ -0,0 +1,9 @@
|
||||
export interface PaginatedResult<T> {
|
||||
data: T[];
|
||||
meta: {
|
||||
total: number;
|
||||
page: number;
|
||||
limit: number;
|
||||
totalPages: number;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
export interface ValidationError {
|
||||
field: string;
|
||||
message: string;
|
||||
source: { type: 'TOUR' | 'PATIENT'; id: string };
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from './common';
|
||||
export * from './tickets';
|
||||
@@ -0,0 +1,20 @@
|
||||
import { Type } from 'class-transformer';
|
||||
import { IsInt, IsOptional, IsString, Max, Min } from 'class-validator';
|
||||
|
||||
export class GetBoardQueryDto {
|
||||
@IsString()
|
||||
stage!: string;
|
||||
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsInt()
|
||||
@Min(1)
|
||||
page: number = 1;
|
||||
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsInt()
|
||||
@Min(1)
|
||||
@Max(50)
|
||||
limit: number = 10;
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
export * from './get-board-query.dto';
|
||||
export * from './ticket-detail.dto';
|
||||
export * from './ticket-list.dto';
|
||||
export * from './ticket.enum'
|
||||
@@ -0,0 +1,82 @@
|
||||
import { ValidationError } from '../common';
|
||||
import { AddressDto } from '../common/address.dto';
|
||||
import {
|
||||
ApprovalRequestStatus,
|
||||
ApprovalRequirement,
|
||||
TicketStage,
|
||||
} from './ticket.enum';
|
||||
|
||||
export interface TicketTourSummaryDto {
|
||||
id: string;
|
||||
operationId: string;
|
||||
date: string;
|
||||
startAddress: AddressDto;
|
||||
targetAddress: AddressDto;
|
||||
}
|
||||
|
||||
export interface TicketApprovalViewDto {
|
||||
requirement: ApprovalRequirement;
|
||||
status: ApprovalRequestStatus;
|
||||
statusLabel: string;
|
||||
|
||||
actions: {
|
||||
override: {
|
||||
isPossible: boolean;
|
||||
label: string;
|
||||
confirmationMessage?: string;
|
||||
};
|
||||
|
||||
sendRequest: {
|
||||
isPossible: boolean;
|
||||
label: string;
|
||||
description: string;
|
||||
};
|
||||
|
||||
sendReminder: {
|
||||
isPossible: boolean;
|
||||
label: string;
|
||||
description: string;
|
||||
};
|
||||
|
||||
approve: {
|
||||
isPossible: boolean;
|
||||
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export interface TicketDetailDto {
|
||||
id: string;
|
||||
stage: TicketStage;
|
||||
|
||||
general: {
|
||||
ordinanceType: string;
|
||||
transportType: string;
|
||||
category: string;
|
||||
hasInfection: boolean;
|
||||
infectionName: string | null;
|
||||
isSeries: boolean;
|
||||
seriesEndDate: Date;
|
||||
};
|
||||
|
||||
validationErrors: ValidationError[]
|
||||
|
||||
patient: {
|
||||
id: string;
|
||||
name: string;
|
||||
healthInsurance: string;
|
||||
address: AddressDto;
|
||||
};
|
||||
|
||||
approval: TicketApprovalViewDto;
|
||||
|
||||
transportDocument: {
|
||||
isUploaded: boolean;
|
||||
link: string;
|
||||
};
|
||||
|
||||
tours: TicketTourSummaryDto[];
|
||||
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
export interface TicketListItemDto {
|
||||
id: string;
|
||||
|
||||
ordinanceType: string;
|
||||
patientName: string;
|
||||
stage: string;
|
||||
tourCount: number;
|
||||
errorCount: number;
|
||||
approvalStatus: string;
|
||||
isOverdue: boolean;
|
||||
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
export enum TicketStage {
|
||||
DRAFT = 'DRAFT',
|
||||
DATA_INCOMPLETE = 'DATA_INCOMPLETE',
|
||||
ASSESSMENT_PENDING = 'ASSESSMENT',
|
||||
APPROVAL_IN_PROGRESS = 'APPROVAL',
|
||||
DOCUMENTS_PENDING = 'DOCS_PENDING',
|
||||
READY = 'READY',
|
||||
ARCHIVED = 'ARCHIVED',
|
||||
}
|
||||
|
||||
export enum ApprovalRequirement {
|
||||
UNKOWN = 'UNKNOWN',
|
||||
NOT_REQUIRED = 'NOT_REQUIRED',
|
||||
REQUIRED = 'REQUIRED',
|
||||
}
|
||||
|
||||
export enum ApprovalRequestStatus {
|
||||
NOT_STARTED = 'NOT_STARTED',
|
||||
PRE_INQUIRY_SENT = 'PRE_INQUIRY_SENT',
|
||||
FULL_REQUEST_SENT = 'FULL_REQUEST_SENT',
|
||||
GRANTED = 'GRANTED',
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "ES2020",
|
||||
"moduleResolution": "node",
|
||||
|
||||
"outDir": "./dist",
|
||||
"declaration": true,
|
||||
"sourceMap": true,
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["node_modules", "dist", "**/*.spec.ts", "**/*.test.ts"]
|
||||
}
|
||||
Reference in New Issue
Block a user