@provis/provis-common-be-module 2.3.24 → 2.3.25

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.
Files changed (135) hide show
  1. package/package.json +1 -1
  2. package/dist/class/main.repository.d.ts +0 -27
  3. package/dist/class/main.repository.js +0 -303
  4. package/dist/constants/brokerage.d.ts +0 -25
  5. package/dist/constants/brokerage.js +0 -30
  6. package/dist/constants/claim/document-container.d.ts +0 -14
  7. package/dist/constants/claim/document-container.js +0 -65
  8. package/dist/constants/claim/generalInsurance.d.ts +0 -535
  9. package/dist/constants/claim/generalInsurance.js +0 -18
  10. package/dist/constants/claim/kalog.d.ts +0 -28
  11. package/dist/constants/claim/kalog.js +0 -186
  12. package/dist/constants/claim/loket.d.ts +0 -36
  13. package/dist/constants/claim/loket.js +0 -290
  14. package/dist/constants/claim/motorVehicle.d.ts +0 -158
  15. package/dist/constants/claim/motorVehicle.js +0 -139
  16. package/dist/constants/claim/status.d.ts +0 -137
  17. package/dist/constants/claim/status.js +0 -160
  18. package/dist/constants/claim/travel.d.ts +0 -358
  19. package/dist/constants/claim/travel.js +0 -268
  20. package/dist/constants/config.d.ts +0 -2
  21. package/dist/constants/config.js +0 -23
  22. package/dist/constants/currency.d.ts +0 -2
  23. package/dist/constants/currency.js +0 -7
  24. package/dist/constants/index.d.ts +0 -5
  25. package/dist/constants/index.js +0 -11
  26. package/dist/constants/join.d.ts +0 -5
  27. package/dist/constants/join.js +0 -2
  28. package/dist/constants/loket.d.ts +0 -17
  29. package/dist/constants/loket.js +0 -19
  30. package/dist/constants/martialStatus.d.ts +0 -2
  31. package/dist/constants/martialStatus.js +0 -32
  32. package/dist/constants/operator.d.ts +0 -2
  33. package/dist/constants/operator.js +0 -12
  34. package/dist/constants/product/cargo.d.ts +0 -39
  35. package/dist/constants/product/cargo.js +0 -41
  36. package/dist/constants/product/mv/clause.d.ts +0 -52
  37. package/dist/constants/product/mv/clause.js +0 -214
  38. package/dist/constants/product/mv/merk.d.ts +0 -7
  39. package/dist/constants/product/mv/merk.js +0 -111
  40. package/dist/constants/product/mv/mv.d.ts +0 -48
  41. package/dist/constants/product/mv/mv.js +0 -215
  42. package/dist/constants/product/mv/plat.d.ts +0 -7
  43. package/dist/constants/product/mv/plat.js +0 -334
  44. package/dist/constants/product/mv.d.ts +0 -30
  45. package/dist/constants/product/mv.js +0 -158
  46. package/dist/constants/product/occupation.d.ts +0 -5
  47. package/dist/constants/product/occupation.js +0 -25
  48. package/dist/constants/product/policy.d.ts +0 -31
  49. package/dist/constants/product/policy.js +0 -33
  50. package/dist/constants/product.d.ts +0 -72
  51. package/dist/constants/product.js +0 -394
  52. package/dist/constants/quotation.d.ts +0 -32
  53. package/dist/constants/quotation.js +0 -38
  54. package/dist/constants/report.d.ts +0 -46
  55. package/dist/constants/report.js +0 -60
  56. package/dist/constants/vesselList.d.ts +0 -5
  57. package/dist/constants/vesselList.js +0 -116
  58. package/dist/helpers/addDateTime.d.ts +0 -6
  59. package/dist/helpers/addDateTime.js +0 -30
  60. package/dist/helpers/amountDescription.d.ts +0 -1
  61. package/dist/helpers/amountDescription.js +0 -44
  62. package/dist/helpers/axiosGet.d.ts +0 -8
  63. package/dist/helpers/axiosGet.js +0 -47
  64. package/dist/helpers/axiosPost.d.ts +0 -8
  65. package/dist/helpers/axiosPost.js +0 -46
  66. package/dist/helpers/axiosPut.d.ts +0 -8
  67. package/dist/helpers/axiosPut.js +0 -46
  68. package/dist/helpers/calculateByType.d.ts +0 -5
  69. package/dist/helpers/calculateByType.js +0 -19
  70. package/dist/helpers/calculateForNullable.d.ts +0 -5
  71. package/dist/helpers/calculateForNullable.js +0 -47
  72. package/dist/helpers/combineObj.d.ts +0 -2
  73. package/dist/helpers/combineObj.js +0 -17
  74. package/dist/helpers/compareDiffObj.d.ts +0 -2
  75. package/dist/helpers/compareDiffObj.js +0 -14
  76. package/dist/helpers/convertCurrencySymbol.d.ts +0 -2
  77. package/dist/helpers/convertCurrencySymbol.js +0 -20
  78. package/dist/helpers/convertDateTimeFormat.d.ts +0 -6
  79. package/dist/helpers/convertDateTimeFormat.js +0 -113
  80. package/dist/helpers/convertObjToNumber.d.ts +0 -2
  81. package/dist/helpers/convertObjToNumber.js +0 -14
  82. package/dist/helpers/convertToCurrency.d.ts +0 -2
  83. package/dist/helpers/convertToCurrency.js +0 -21
  84. package/dist/helpers/excelDateToJsDate.d.ts +0 -4
  85. package/dist/helpers/excelDateToJsDate.js +0 -30
  86. package/dist/helpers/filterObj.d.ts +0 -2
  87. package/dist/helpers/filterObj.js +0 -9
  88. package/dist/helpers/generateHashString.d.ts +0 -2
  89. package/dist/helpers/generateHashString.js +0 -15
  90. package/dist/helpers/generateRelationId.d.ts +0 -2
  91. package/dist/helpers/generateRelationId.js +0 -15
  92. package/dist/helpers/getCargoType.d.ts +0 -2
  93. package/dist/helpers/getCargoType.js +0 -9
  94. package/dist/helpers/getCurrentDate.d.ts +0 -2
  95. package/dist/helpers/getCurrentDate.js +0 -11
  96. package/dist/helpers/getDiffValue.d.ts +0 -2
  97. package/dist/helpers/getDiffValue.js +0 -24
  98. package/dist/helpers/getObjByKeys.d.ts +0 -2
  99. package/dist/helpers/getObjByKeys.js +0 -19
  100. package/dist/helpers/index.d.ts +0 -25
  101. package/dist/helpers/index.js +0 -51
  102. package/dist/helpers/loop.d.ts +0 -2
  103. package/dist/helpers/loop.js +0 -21
  104. package/dist/helpers/loopBackward.d.ts +0 -2
  105. package/dist/helpers/loopBackward.js +0 -21
  106. package/dist/helpers/mergeObj.d.ts +0 -2
  107. package/dist/helpers/mergeObj.js +0 -16
  108. package/dist/helpers/readExcel.d.ts +0 -5
  109. package/dist/helpers/readExcel.js +0 -115
  110. package/dist/helpers/searchValue.d.ts +0 -4
  111. package/dist/helpers/searchValue.js +0 -63
  112. package/dist/index.d.ts +0 -3
  113. package/dist/index.js +0 -7
  114. package/dist/interface/axios.interface.d.ts +0 -5
  115. package/dist/interface/axios.interface.js +0 -2
  116. package/dist/interface/find.all.count.interface.d.ts +0 -10
  117. package/dist/interface/find.all.count.interface.js +0 -2
  118. package/dist/interface/multi.join.interface.d.ts +0 -9
  119. package/dist/interface/multi.join.interface.js +0 -2
  120. package/dist/interface/read.excel.interface.d.ts +0 -12
  121. package/dist/interface/read.excel.interface.js +0 -2
  122. package/dist/interface/search.conditions.interface.d.ts +0 -8
  123. package/dist/interface/search.conditions.interface.js +0 -2
  124. package/dist/interface/search.initial.interface.d.ts +0 -8
  125. package/dist/interface/search.initial.interface.js +0 -2
  126. package/dist/interface/search.query.interface.d.ts +0 -5
  127. package/dist/interface/search.query.interface.js +0 -3
  128. package/dist/interface/search.summary.interface.d.ts +0 -9
  129. package/dist/interface/search.summary.interface.js +0 -2
  130. package/dist/interface/search.value.interface.d.ts +0 -6
  131. package/dist/interface/search.value.interface.js +0 -3
  132. package/dist/interface/summary.field.interface.d.ts +0 -4
  133. package/dist/interface/summary.field.interface.js +0 -3
  134. package/dist/interface/user.interface.d.ts +0 -4
  135. package/dist/interface/user.interface.js +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provis/provis-common-be-module",
3
- "version": "2.3.24",
3
+ "version": "2.3.25",
4
4
  "description": "This common module for Provis internal backend use lib",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -1,27 +0,0 @@
1
- import { DeepPartial, FindConditions, Repository } from 'typeorm';
2
- import ISearchQuery from '../interface/search.query.interface';
3
- import { QueryDeepPartialEntity } from 'typeorm/query-builder/QueryPartialEntity';
4
- import IFindAllCount from '../interface/find.all.count.interface';
5
- import ISearchSummary from '../interface/search.summary.interface';
6
- export declare class MainRepository<T> extends Repository<T> {
7
- saveRepo(data: DeepPartial<T>): Promise<T>;
8
- updateRepo(obj: DeepPartial<T>, updated: QueryDeepPartialEntity<T>): Promise<T>;
9
- updateByConditions(conditions: FindConditions<T>, updated: QueryDeepPartialEntity<T>): Promise<import("typeorm").UpdateResult>;
10
- selectFieldOnFindAllAndCount(): string[];
11
- modelName(): string;
12
- orderBy(): string;
13
- aliasTable(): string;
14
- getOrderData(sortBy: string): {
15
- orderBy: string;
16
- orderDirection: 'ASC' | 'DESC';
17
- };
18
- searchBracket(searchOr: any[], searchValues: (value: any) => Promise<ISearchQuery[]>): Promise<ISearchQuery[][]>;
19
- summaryField({ fieldToSum, search, additionalSearchOr, relations, }: ISearchSummary): Promise<any>;
20
- findAllAndCount({ search, additionalSearchOr, relations, sortBy, offset, maxCount, }: IFindAllCount): Promise<[number, T[]]>;
21
- private applySearchConditions;
22
- private generateRawCount;
23
- private generateRawOrder;
24
- private convertRawFilter;
25
- generateRawFilter(search: ISearchQuery[], additionalSearchOr?: ISearchQuery[][], aliasTable?: string): string;
26
- getData(rawQuery: string, page: number, limit: number, orderBy?: string): Promise<[number, any[]]>;
27
- }
@@ -1,303 +0,0 @@
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
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.MainRepository = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const helpers_1 = require("../helpers");
15
- class MainRepository extends typeorm_1.Repository {
16
- saveRepo(data) {
17
- const _super = Object.create(null, {
18
- save: { get: () => super.save }
19
- });
20
- return __awaiter(this, void 0, void 0, function* () {
21
- return yield _super.save.call(this, Object.assign(Object.assign({}, data), { createdDate: (0, helpers_1.getCurrentDate)(), updatedDate: (0, helpers_1.getCurrentDate)() }));
22
- });
23
- }
24
- updateRepo(obj, updated) {
25
- const _super = Object.create(null, {
26
- save: { get: () => super.save }
27
- });
28
- return __awaiter(this, void 0, void 0, function* () {
29
- return yield _super.save.call(this, Object.assign(Object.assign(Object.assign({}, obj), updated), { updatedDate: (0, helpers_1.getCurrentDate)() }));
30
- });
31
- }
32
- updateByConditions(conditions, updated) {
33
- const _super = Object.create(null, {
34
- update: { get: () => super.update }
35
- });
36
- return __awaiter(this, void 0, void 0, function* () {
37
- return yield _super.update.call(this, conditions, Object.assign(Object.assign({}, updated), { updatedDate: (0, helpers_1.getCurrentDate)() }));
38
- });
39
- }
40
- selectFieldOnFindAllAndCount() {
41
- return [`"${this.modelName()}".*`];
42
- }
43
- modelName() {
44
- throw new Error('Model name is not set yet');
45
- }
46
- orderBy() {
47
- return 'createdDate';
48
- }
49
- aliasTable() {
50
- return this.modelName();
51
- }
52
- getOrderData(sortBy) {
53
- const [field, direction] = (sortBy || `${this.orderBy()}.desc`).split('.');
54
- return {
55
- orderBy: field || this.orderBy(),
56
- orderDirection: (direction || 'desc').toUpperCase(),
57
- };
58
- }
59
- /*
60
- searchOr: [
61
- {
62
- portLoadingCodeIn: kalogOutlet.join(','),
63
- portDestinationCodeIn: kalogOutlet.join(','),
64
- source: dataSource,
65
- },
66
- {
67
- policyNumberIn: kalog.POLICY_NO,
68
- },
69
- ],
70
- */
71
- // async implementation(searchOr: any[]) {
72
- // await this.searchBracket(searchOr, this.searchValueDeclaration);
73
- // }
74
- // async searchValueDeclaration(search: any): Promise<ISearchQuery[]> {
75
- // return [
76
- // searchValue({ searchValue: search, searchKey: 'certificateNumber', operatorValue: operator.OPERATOR_LIKE, keyName: 'certificateNumber' }),
77
- // searchValue({ searchValue: search, searchKey: 'interestInsured', operatorValue: operator.OPERATOR_LIKE, keyName: 'interestInsured' }),
78
- // ];
79
- // }
80
- /*
81
- result:
82
- [
83
- [
84
- {
85
- query: 'portLoadingCode',
86
- key: 'IN',
87
- value: 'KALOG001',
88
- },
89
- {
90
- query: 'portDestinationCode',
91
- key: 'IN',
92
- value: 'KALOG001',
93
- },
94
- {
95
- query: 'source',
96
- key: '=',
97
- value: 'KALOG',
98
- },
99
- ],
100
- [
101
- {
102
- query: 'policyNumber',
103
- key: 'ilike',
104
- value: '123456890',
105
- },
106
- ],
107
- ],
108
- */
109
- searchBracket(searchOr, searchValues) {
110
- return __awaiter(this, void 0, void 0, function* () {
111
- // object searchOr -> searchOr[0]={"portLoadingCodeIn":"ZXY001,ZXY022","portDestinationCodeIn":"ZXY001,ZXY022","source":"KALOG"}&searchOr[1]={"policyNumberIn":"10103092500014,10103092400066"}
112
- const result = [];
113
- for (const search of searchOr) {
114
- result.push(yield searchValues(JSON.parse(search)));
115
- }
116
- return result;
117
- });
118
- }
119
- summaryField({ fieldToSum, search, additionalSearchOr, relations, }) {
120
- return __awaiter(this, void 0, void 0, function* () {
121
- let query = this.createQueryBuilder()
122
- .select([
123
- 'COUNT(1) AS totalRows',
124
- ...fieldToSum.map((field) => `SUM(${field.columnName}) AS "${field.aliasColumnName || field.columnName}"`),
125
- ]);
126
- query = this.applySearchConditions({
127
- query,
128
- search,
129
- additionalSearchOr,
130
- relations,
131
- });
132
- return query.getRawOne();
133
- });
134
- }
135
- findAllAndCount({ search, additionalSearchOr, relations, sortBy, offset = 1, maxCount = 50, }) {
136
- return __awaiter(this, void 0, void 0, function* () {
137
- const skipItems = ((offset < 1 ? 1 : offset) - 1) * maxCount;
138
- let query = this.createQueryBuilder().select(this.selectFieldOnFindAllAndCount());
139
- query = this.applySearchConditions({
140
- query,
141
- search,
142
- additionalSearchOr,
143
- relations,
144
- });
145
- const { orderBy, orderDirection } = this.getOrderData(sortBy);
146
- return [
147
- yield query.getCount(),
148
- yield query
149
- .orderBy(`${this.modelName()}.${orderBy}`, orderDirection)
150
- .offset(skipItems)
151
- .limit(maxCount)
152
- .getMany(),
153
- ];
154
- });
155
- }
156
- applySearchConditions({ query, search, additionalSearchOr, relations, }) {
157
- const modelName = this.modelName();
158
- if (search && search.length > 0) {
159
- let index = 0;
160
- search.forEach((value) => {
161
- if (value) {
162
- if (index === 0) {
163
- query = query.where(`${modelName}.${value.query}`, { [value.key]: value.value });
164
- index++;
165
- }
166
- else {
167
- query = query.andWhere(`${modelName}.${value.query}`, { [value.key]: value.value });
168
- }
169
- }
170
- });
171
- }
172
- if (additionalSearchOr && additionalSearchOr.length > 0) {
173
- additionalSearchOr.forEach((group) => {
174
- if (group) {
175
- query.andWhere(new typeorm_1.Brackets((qb) => {
176
- let index = 0;
177
- group.forEach((value) => {
178
- if (value) {
179
- if (index === 0) {
180
- qb = qb.where(`${modelName}.${value.query}`, { [value.key]: value.value });
181
- index++;
182
- }
183
- else {
184
- qb = qb.orWhere(`${modelName}.${value.query}`, { [value.key]: value.value });
185
- }
186
- }
187
- });
188
- }));
189
- }
190
- });
191
- }
192
- if (relations && relations.length > 0) {
193
- let isFirstJoin = true;
194
- relations.forEach((relation) => {
195
- var _a, _b;
196
- if (relation) {
197
- if (relation && relation.join == "left" /* Join.LEFT */) {
198
- query.leftJoin(`${modelName}.${relation.model}`, relation.aliasTable || relation.model);
199
- }
200
- else {
201
- query.innerJoin(`${modelName}.${relation.model}`, relation.aliasTable || relation.model);
202
- }
203
- let index = 0;
204
- (_a = relation.searchs) === null || _a === void 0 ? void 0 : _a.forEach((valueSearch) => {
205
- if (valueSearch) {
206
- if (index == 0) {
207
- if (isFirstJoin) {
208
- // where for first join in left join after primary, ex claim ... and (this) claimCargo ...
209
- query = query.andWhere(`${relation.aliasTable || relation.model}.${valueSearch.query}`, { [valueSearch.key]: valueSearch.value });
210
- isFirstJoin = false;
211
- }
212
- else {
213
- // for next join in left join , ex claim ... and claimCargo ... or (this) claimKalog ...
214
- query = query.orWhere(`${relation.aliasTable || relation.model}.${valueSearch.query}`, { [valueSearch.key]: valueSearch.value });
215
- }
216
- index++;
217
- }
218
- else {
219
- // for next where in left join , ex claim ... and claimCargo ... or claimKalog ... and (this) claimKalog ...
220
- query = query.andWhere(`${relation.aliasTable || relation.model}.${valueSearch.query}`, { [valueSearch.key]: valueSearch.value });
221
- }
222
- }
223
- });
224
- (_b = relation.additionalSearchOr) === null || _b === void 0 ? void 0 : _b.forEach((group) => {
225
- if (group) {
226
- query.andWhere(new typeorm_1.Brackets((qb) => {
227
- let index = 0;
228
- group.forEach((value) => {
229
- if (value) {
230
- if (index === 0) {
231
- qb = qb.where(`${relation.aliasTable || relation.model}.${value.query}`, { [value.key]: value.value });
232
- index++;
233
- }
234
- else {
235
- qb = qb.orWhere(`${relation.aliasTable || relation.model}.${value.query}`, { [value.key]: value.value });
236
- }
237
- }
238
- });
239
- }));
240
- }
241
- });
242
- }
243
- });
244
- }
245
- return query;
246
- }
247
- generateRawCount(query) {
248
- return `SELECT COUNT(*) as total FROM (${query}) as subQry`;
249
- }
250
- generateRawOrder(sortBy, aliasTable = this.aliasTable()) {
251
- const [field, direction] = (sortBy || `${this.orderBy()}.desc`).split('.');
252
- return `ORDER BY ${aliasTable}."${field}" ${direction}`;
253
- }
254
- convertRawFilter(data, aliasTable = this.aliasTable()) {
255
- const columnName = data.query.split(' ')[0];
256
- let condition = data.query.replace(`:${data.key}`, `'${data.value}'`);
257
- if (Array.isArray(data.value)) {
258
- const value = data.value;
259
- const statusValues = value.map((value) => `'${value.trim()}'`).join(',');
260
- condition = data.query.replace(`:...${data.key}`, statusValues);
261
- }
262
- return condition.replace(columnName, `${aliasTable}."${columnName}"`);
263
- }
264
- generateRawFilter(search, additionalSearchOr, aliasTable = this.aliasTable()) {
265
- let rawQueryFilter = 'WHERE 1=1';
266
- search.filter(Boolean).forEach((data) => {
267
- if (data) {
268
- const condition = this.convertRawFilter(data, aliasTable);
269
- rawQueryFilter += ` AND ${condition}`;
270
- }
271
- });
272
- if (additionalSearchOr && additionalSearchOr.length > 0) {
273
- additionalSearchOr.forEach((orGroup) => {
274
- const orConditions = [];
275
- orGroup.filter(Boolean).forEach((data) => {
276
- if (data) {
277
- const condition = this.convertRawFilter(data, aliasTable);
278
- orConditions.push(condition);
279
- }
280
- });
281
- if (orConditions.length > 0) {
282
- rawQueryFilter += ` AND (${orConditions.join(' OR ')})`;
283
- }
284
- });
285
- }
286
- return rawQueryFilter;
287
- }
288
- getData(rawQuery, page, limit, orderBy) {
289
- return __awaiter(this, void 0, void 0, function* () {
290
- const manager = (0, typeorm_1.getManager)();
291
- const offset = (page - 1) * limit;
292
- const rawQueryWithFilter = rawQuery;
293
- const rawCount = this.generateRawCount(rawQueryWithFilter);
294
- const rawOrder = this.generateRawOrder(orderBy);
295
- const [countResult, dataResult] = yield Promise.all([
296
- manager.query(rawCount),
297
- manager.query(`${rawQueryWithFilter} ${rawOrder} LIMIT $1 OFFSET $2`, [limit, offset]),
298
- ]);
299
- return [(countResult[0].total || 0), dataResult];
300
- });
301
- }
302
- }
303
- exports.MainRepository = MainRepository;
@@ -1,25 +0,0 @@
1
- declare const brokerage: {
2
- TYPE_BROKERAGE_FIX_AMOUNT: {
3
- code: string;
4
- desc: {
5
- en: string;
6
- id: string;
7
- };
8
- };
9
- TYPE_BROKERAGE_PERCENTAGE: {
10
- code: string;
11
- desc: {
12
- en: string;
13
- id: string;
14
- };
15
- };
16
- TYPE_BROKERAGE_TOTAL: {
17
- code: string;
18
- desc: {
19
- en: string;
20
- id: string;
21
- };
22
- };
23
- LIST: any[];
24
- };
25
- export default brokerage;
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const brokerage = {
4
- TYPE_BROKERAGE_FIX_AMOUNT: {
5
- code: 'fa',
6
- desc: {
7
- en: "Fix Amount",
8
- id: "Nilai"
9
- },
10
- },
11
- TYPE_BROKERAGE_PERCENTAGE: {
12
- code: 'p',
13
- desc: {
14
- en: "Percentage",
15
- id: "Persentase"
16
- },
17
- },
18
- TYPE_BROKERAGE_TOTAL: {
19
- code: 't',
20
- desc: {
21
- en: "Total",
22
- id: "Total"
23
- },
24
- },
25
- LIST: [],
26
- };
27
- brokerage.LIST.push(brokerage.TYPE_BROKERAGE_FIX_AMOUNT);
28
- brokerage.LIST.push(brokerage.TYPE_BROKERAGE_PERCENTAGE);
29
- brokerage.LIST.push(brokerage.TYPE_BROKERAGE_TOTAL);
30
- exports.default = brokerage;
@@ -1,14 +0,0 @@
1
- declare const doc: {
2
- DOC_CLAIM: string;
3
- DOC_ARRIVAL_NOTICE: string;
4
- DOC_EIR: string;
5
- DOC_DOCUMENTATION: string;
6
- DOC_EOR: string;
7
- DOC_PARTIAL_LOSS: string;
8
- DOC_POLICE_REPORT: string;
9
- DOC_OTHER: string;
10
- DOC_INVOICE: string;
11
- LIST_DESC: {};
12
- LIST_ACTIVE: any[];
13
- };
14
- export default doc;
@@ -1,65 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const doc = {
4
- DOC_CLAIM: 'DOC_CLAIM',
5
- DOC_ARRIVAL_NOTICE: 'DOC_ARRIVAL_NOTICE',
6
- DOC_EIR: 'DOC_EIR',
7
- DOC_DOCUMENTATION: 'DOC_DOCUMENTATION',
8
- DOC_EOR: 'DOC_EOR',
9
- DOC_PARTIAL_LOSS: 'DOC_PARTIAL_LOSS',
10
- DOC_POLICE_REPORT: 'DOC_POLICE_REPORT',
11
- DOC_OTHER: 'DOC_OTHER',
12
- DOC_INVOICE: 'DOC_INVOICE',
13
- LIST_DESC: {},
14
- LIST_ACTIVE: []
15
- };
16
- doc.LIST_DESC = {
17
- [doc.DOC_CLAIM]: {
18
- id: "Formulir klaim yang telah diisi lengkap disertai dengan perincian jumlah kerugian yang ditanda tangani & stampel sesuai atas nama Polis (terlampir)",
19
- en: "Completely filled out claim form with details of loss amount signed & stamped in the name of the policy (attached)",
20
- },
21
- [doc.DOC_ARRIVAL_NOTICE]: {
22
- id: "Pemberitahuan kedatangan",
23
- en: "Arrivel Notice",
24
- },
25
- [doc.DOC_EIR]: {
26
- id: "Tanda bukti serah terima container",
27
- en: "Equipment Interchange Receipt",
28
- },
29
- [doc.DOC_DOCUMENTATION]: {
30
- id: "Foto - foto dokumentasi dan atau rekaman video kontainer yang rusak",
31
- en: "Photo and/or video documentation of damaged containers",
32
- },
33
- [doc.DOC_EOR]: {
34
- id: "Perkiraan Perbaikan",
35
- en: "Estimate of Repair",
36
- },
37
- [doc.DOC_PARTIAL_LOSS]: {
38
- id: "Tagihan perbaikan dalam hal kerusakan sebagian",
39
- en: "Invoice of partial loss",
40
- },
41
- [doc.DOC_POLICE_REPORT]: {
42
- id: "Laporan Kepolisian",
43
- en: "Police report",
44
- },
45
- [doc.DOC_OTHER]: {
46
- id: "Dokumen lain yang mendukung proses klaim",
47
- en: "Other documents that support the claims process",
48
- },
49
- [doc.DOC_INVOICE]: {
50
- id: "Dokumen Tagihan",
51
- en: "Invoice documents",
52
- },
53
- };
54
- doc.LIST_ACTIVE = [
55
- doc.DOC_CLAIM,
56
- doc.DOC_ARRIVAL_NOTICE,
57
- doc.DOC_EIR,
58
- doc.DOC_DOCUMENTATION,
59
- doc.DOC_EOR,
60
- doc.DOC_PARTIAL_LOSS,
61
- doc.DOC_POLICE_REPORT,
62
- doc.DOC_OTHER,
63
- doc.DOC_INVOICE,
64
- ];
65
- exports.default = doc;