Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import type {Model} from '@loopback/repository';
import type {CompleteMultipartUploadOutput} from 'aws-sdk/clients/s3';
import {CalistaResponseCode} from './services';
import {UserSetting} from './models';
export interface AnyObject {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[property: string]: any;
}
/**
* The ID type.
*/
export type ID = number;
/**
* The Identifier type.
*/
export type Identifier = string;
/**
* The bol document type.
*/
export type BolDocumentType = 'Report' | 'Additional' | string;
/**
* The eri document type.
*/
export type EirDocumentType = 'Receipt' | 'Additional' | string;
/**
* Interface created
*/
export interface Created {
created_date?: Date;
created_by?: number;
}
/**
* Interface modified
*/
export interface Modified {
modified_date?: Date;
modified_by?: number;
}
/**
* Blockchain Info
*/
export interface BlockchainInfo {
uri: string;
version: string;
hash: string;
blockchain_tx: string;
}
/**
* Interface Status
*/
export interface Status {
status?: boolean | number;
}
/**
* Interface for access
*/
export interface Access {
allow_create: number;
allow_retrieve: number;
allow_update: number;
allow_delete: number;
allow_validate: number;
allow_override: number;
}
/**
* Interface for string format
*/
export interface StringFormat {
str: string;
args: (string | number)[];
}
/**
* Interface for activity logs
*/
export interface ActivityInfo {
action: string;
model_class: typeof Model;
resource_name: string;
template: StringFormat;
entity_id?: number | string;
}
/**
* Interface for stats flow.
*/
export interface Stats {
groups: number;
steps: number;
personas: number;
forms: number;
documents: number;
}
/**
* Interface for GEO
*/
export interface GeoPoint {
/**
* latitude
*/
lat: number;
/**
* longitude
*/
long: number;
}
/**
* Interface of details group
*/
export interface GroupDetail {
group_id: number;
group_name: string;
ref_id?: number;
action_id: number;
journey_point_id: number;
journey_point_name: string;
form_id?: number;
form_type: string;
form_name: string;
}
/**
* Interface of journey point actions.
*/
export interface Action {
action_id: number;
form_id: number;
action_name: string;
}
/**
* Interface of journey point documents.
*/
export interface Documents {
action_id: number;
form_id: number;
form_type: string;
form_name: string;
}
/**
*
*/
export interface NeededInfo {
container_no: string | string[];
category_ids: number[];
product_no: string;
desired_temp: number;
location: number;
delivered_by: string;
vehicle_no: string;
delivery_note: string;
}
export interface PdfTemplate {
content: AnyObject;
model_name: string;
}
/**
* Interface of reply message from sqs.
*/
export interface RetryReplyMessage {
retry: boolean;
content: AnyObject;
model_name: string;
}
/**
* Interface of reply message from sqs.
*/
export interface ReplyMessage {
id: number;
table_name: string;
flow_id: number;
flow_action_id: number;
journey_point_id: number;
actor_id: number;
validator_company_id?: number;
call_from_validation?: boolean;
type?: number;
metadata: CompleteMultipartUploadOutput;
suttonData: AnyObject;
}
export interface TotOutPack {
qty_value: number;
qty_uom: string;
}
export type TotGrossWt = TotOutPack;
export interface TotDutyTax {
tot_gst_amt: number;
tot_excise_duty_amt: number;
tot_customs_duty_amt: number;
tot_other_tax_amt: number;
tot_payable_amt: number;
}
export interface RegulatoryDashboardsFilter {
field: string;
rule: string;
value: string;
}
export interface RegulatoryDeclarationUpdateTransactionParam {
Response: {
SenderID: string;
RecipientID: string;
RegulatoryFilingNo: string;
RegulatoryFilingType: string;
RegulatoryFilingDesc: string;
CustomerRefNo1: string;
CustomerRefNo2: CalistaResponseCode;
GeTSRefNo: string;
Status: string;
StatusDesc: string;
DraftCreatedDateTime: string;
ClearanceDateTime: string; // '2021-10-21 19:08:00'
TotalDuty: string;
TotalDutyCurrencyCode: string;
TotalTax: string;
TotalTaxCurrencyCode: string;
TotalDeclarationAmt: string;
TotalDeclarationAmtCurrCode: string;
BrokerUEN: string;
BrokerName: string;
DeclaringAgentId: string;
DeclaringAgentName: AnyObject[];
LastUpdateStaus: string; //'2021-10-21 19:08:00',
DeclarationData: string;
Remarks: AnyObject[];
};
}
export interface Amendment {
ame_fields_count: number;
sc_update_info: {
update_summary: {
code: number;
type: string;
};
};
pmt_val_ext_ind: boolean;
ext_reason: string;
ame_reason: string;
}
export interface RecipientNotification {
sub: string | undefined;
settings: UserSetting;
replacement_data: AnyObject;
language: string;
}
export interface TemplateParamNotification {
template: string;
recipients: RecipientNotification[];
}
export enum RegulatoryDashboardsValueEnum {
COUNT = 'Count',
}
export enum RegulatoryDashboardsFilterFieldEnum {
STATUS = 'status',
TYPE = 'car_type',
CREATED_DATE = 'created_date',
MODIFIED_DATE = 'modified_date',
PARTY = 'party',
CARGO_RELEASE = 'release_loc',
CARGO_RECEIPT = 'receipt_loc',
}
export enum FilterOperatorEnum {
LESS_THAN = 'lt',
LESS_THAN_EQUAL = 'lte',
EQUAL = 'eq',
GREATER_THAN = 'gt',
GREATER_THAN_EQUAL = 'gte',
}
export const RegulatoryDashboardsFilterConditions: Record<string, Array<string>> = {};
RegulatoryDashboardsFilterConditions[RegulatoryDashboardsFilterFieldEnum.STATUS] = [FilterOperatorEnum.EQUAL];
RegulatoryDashboardsFilterConditions[RegulatoryDashboardsFilterFieldEnum.TYPE] = [FilterOperatorEnum.EQUAL];
RegulatoryDashboardsFilterConditions[RegulatoryDashboardsFilterFieldEnum.CREATED_DATE] = [
FilterOperatorEnum.EQUAL,
FilterOperatorEnum.LESS_THAN,
FilterOperatorEnum.LESS_THAN_EQUAL,
FilterOperatorEnum.GREATER_THAN,
FilterOperatorEnum.GREATER_THAN_EQUAL,
];
RegulatoryDashboardsFilterConditions[RegulatoryDashboardsFilterFieldEnum.MODIFIED_DATE] = [
FilterOperatorEnum.EQUAL,
FilterOperatorEnum.LESS_THAN,
FilterOperatorEnum.LESS_THAN_EQUAL,
FilterOperatorEnum.GREATER_THAN,
FilterOperatorEnum.GREATER_THAN_EQUAL,
];
RegulatoryDashboardsFilterConditions[RegulatoryDashboardsFilterFieldEnum.PARTY] = [FilterOperatorEnum.EQUAL];
RegulatoryDashboardsFilterConditions[RegulatoryDashboardsFilterFieldEnum.CARGO_RELEASE] = [FilterOperatorEnum.EQUAL];
RegulatoryDashboardsFilterConditions[RegulatoryDashboardsFilterFieldEnum.CARGO_RECEIPT] = [FilterOperatorEnum.EQUAL];
export enum RAM_ORDER_MSGTYPE_ENUM {
NEW = 'New',
UPDATE = 'Update',
CANCEL = 'Cancel',
}
export interface RAM_ORDER {
xml: AnyObject;
MsgType: string;
Jobno: string;
Outgoing_Docid: string;
Consignment_num: string;
Unitkey: string;
POL: string;
POD: string;
ProductId: string;
ExpectedDate?: string;
LoadWeight?: string;
VesselData?: AnyObject;
}
export enum TimelineStep {
DROPPED = 'Dropped',
RECEIVED = 'Received',
PACKING = 'Packing',
PACKED = 'Packed',
PICKUP = 'Pickup',
PICKED = 'Picked',
COMPLETE = 'Completed',
REJECT = 'Rejected',
}
export enum AttachmentType {
DROPPED = 'Dropped',
RECEIVED = 'Received',
PACKING = 'Packing',
PACKED = 'Packed',
PICKUP = 'Pickup',
PICKED = 'Picked',
}
export enum ShipmentStatus {
NEW = 'New',
IN_PROGRESS = 'In_progress',
COMPLETED = 'Completed',
REJECTED = 'Rejected',
}
export enum PmoStatus {
NEW = 1,
DROPPED = 2,
RECEIVED = 3,
PACKING = 4,
PACKED = 5,
PICKUP = 6,
COMPLETED = 7,
REJECTED = 8,
}
export const PmoStatusLabelMap: Record<number, string> = {
[PmoStatus.NEW]: 'New',
[PmoStatus.DROPPED]: 'Dropped',
[PmoStatus.RECEIVED]: 'Received',
[PmoStatus.PACKING]: 'Packing',
[PmoStatus.PACKED]: 'Packed',
[PmoStatus.PICKUP]: 'Pickup',
[PmoStatus.COMPLETED]: 'Completed',
[PmoStatus.REJECTED]: 'Rejected',
};
export const PmoStatusValueMap: Record<string, number> = {
Drop: PmoStatus.NEW,
Receive: PmoStatus.DROPPED,
Packing: PmoStatus.RECEIVED,
PackedUp: PmoStatus.PACKING,
ForPickup: PmoStatus.PACKED,
Picked: PmoStatus.PICKUP,
Completed: PmoStatus.COMPLETED,
Rejected: PmoStatus.REJECTED,
}; |