@cemiar/cemiarlink-sdk 1.0.1 → 1.0.3
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/dist/services/Admin.d.ts +6 -1
- package/dist/services/Admin.js +1 -1
- package/dist/services/Epic.d.ts +27 -13
- package/dist/services/Epic.js +9 -4
- package/dist/services/JobEpicService.d.ts +3 -3
- package/dist/services/JobEpicService.js +7 -3
- package/dist/services/MultiCarrierScheduleEpicService.d.ts +3 -3
- package/dist/services/MultiCarrierScheduleEpicService.js +7 -3
- package/package.json +1 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -54
- package/dist/models/admin/index.d.ts +0 -9
- package/dist/models/admin/index.js +0 -25
- package/dist/models/epic/index.d.ts +0 -17
- package/dist/models/epic/index.js +0 -33
package/dist/services/Admin.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
|
-
import {
|
|
2
|
+
import { ClassificationResult, PdfReaderBody, PdfReaderResponse } from "../models/admin/PdfReader";
|
|
3
|
+
import { AzureOCRResponse, ExtractBody, ExtractInsurerResponse, ExtractTableResponse, TableExtractBody } from "../models/admin/ExtractTable";
|
|
4
|
+
import { FlashPaymentRequest } from "../models/admin/Primaco";
|
|
5
|
+
import { Counter } from "../models/admin/Counter";
|
|
6
|
+
import { BusMessagePayload } from "../models/admin/BusMessage";
|
|
7
|
+
import { Email, EmailAws, SendMailResult } from "../models/admin/Email";
|
|
3
8
|
export default class AdminService {
|
|
4
9
|
axiosInstance: AxiosInstance;
|
|
5
10
|
taskId?: string;
|
package/dist/services/Admin.js
CHANGED
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const fs_1 = __importDefault(require("fs"));
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
|
-
const AxiosClient_1 = require("../utils/AxiosClient");
|
|
9
8
|
const MissingInfo_1 = require("../exceptions/MissingInfo");
|
|
10
9
|
const Excel_1 = __importDefault(require("../utils/Excel"));
|
|
10
|
+
const AxiosClient_1 = require("../utils/AxiosClient");
|
|
11
11
|
class AdminService {
|
|
12
12
|
constructor(adminUrl, headers, taskId) {
|
|
13
13
|
this.taskId = taskId;
|
package/dist/services/Epic.d.ts
CHANGED
|
@@ -1,16 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AdditionalInterest } from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
1
|
+
import { Activity, CreateActivity } from '../models/epic/Activity';
|
|
2
|
+
import { AdditionalInterest } from '../models/epic/AdditionalInterest';
|
|
3
|
+
import { Attachment, AttachmentDetail, CreateAttachment } from '../models/epic/Attachment';
|
|
4
|
+
import { Claim } from '../models/epic/Claim';
|
|
5
|
+
import { Commission } from '../models/epic/Commission';
|
|
6
|
+
import { Company } from '../models/epic/Company';
|
|
7
|
+
import { Contact, CreateContact } from '../models/epic/Contact';
|
|
8
|
+
import { CreateCustomer, Customer } from '../models/epic/Customer';
|
|
9
|
+
import { DirectBillCommission } from '../models/epic/DirectBillCommission';
|
|
10
|
+
import { Driver } from '../models/epic/Driver';
|
|
11
|
+
import { GeneralLedgerReconcileBank } from '../models/epic/GeneralLedgerReconcileBank';
|
|
12
|
+
import { Habitational } from '../models/epic/Habitational';
|
|
13
|
+
import { Line } from '../models/epic/Line';
|
|
14
|
+
import { LookUp } from '../models/epic/Lookup';
|
|
15
|
+
import { Opportunity } from '../models/epic/Opportunity';
|
|
16
|
+
import { PayableContract } from '../models/epic/PayableContract';
|
|
17
|
+
import { CreatePolicy, Policy } from '../models/epic/Policy';
|
|
18
|
+
import { PolicyV2, PolicyV2Model } from '../models/epic/PolicyV2';
|
|
19
|
+
import { Receipt } from '../models/epic/Receipt';
|
|
20
|
+
import { RenewalStage } from '../models/epic/RenewalStage';
|
|
21
|
+
import { CreatePaymentTransaction, CreateTransaction, FinanceTransaction, FinanceTransactionResult, Transaction, TransactionApplyCreditsToDebits } from '../models/epic/Transaction';
|
|
22
|
+
import { Vehicle } from '../models/epic/Vehicle';
|
|
23
|
+
import BaseEpicService from './BaseEpicService';
|
|
24
|
+
import { JobEpicService } from './JobEpicService';
|
|
25
|
+
import { MultiCarrierScheduleEpicService } from './MultiCarrierScheduleEpicService';
|
|
26
|
+
import { Employee } from "../models/epic/Employee";
|
|
27
|
+
import { Broker } from "../models/epic/Broker";
|
|
14
28
|
export default class EpicService extends BaseEpicService {
|
|
15
29
|
job: JobEpicService;
|
|
16
30
|
multiCarrierSchedule: MultiCarrierScheduleEpicService;
|
package/dist/services/Epic.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
const EpicException_1 = require("../exceptions/EpicException");
|
|
4
|
-
const
|
|
5
|
-
|
|
7
|
+
const BaseEpicService_1 = __importDefault(require("./BaseEpicService"));
|
|
8
|
+
const JobEpicService_1 = require("./JobEpicService");
|
|
9
|
+
const MultiCarrierScheduleEpicService_1 = require("./MultiCarrierScheduleEpicService");
|
|
10
|
+
class EpicService extends BaseEpicService_1.default {
|
|
6
11
|
constructor(epicUrl, headers) {
|
|
7
12
|
super(epicUrl, headers);
|
|
8
|
-
this.job = new
|
|
9
|
-
this.multiCarrierSchedule = new
|
|
13
|
+
this.job = new JobEpicService_1.JobEpicService(epicUrl, headers);
|
|
14
|
+
this.multiCarrierSchedule = new MultiCarrierScheduleEpicService_1.MultiCarrierScheduleEpicService(epicUrl, headers);
|
|
10
15
|
}
|
|
11
16
|
async getActivity(activityId) {
|
|
12
17
|
return this.getOne('activity', activityId);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
export
|
|
1
|
+
import { DirectBillCommission, Reconciliation } from '../models/epic/DirectBillCommission';
|
|
2
|
+
import BaseEpicService from './BaseEpicService';
|
|
3
|
+
export declare class JobEpicService extends BaseEpicService {
|
|
4
4
|
readonly baseUrl = "job";
|
|
5
5
|
reconcile(payload: Reconciliation): Promise<string>;
|
|
6
6
|
updateDirectBillCommission(commissionId: string, payload: Partial<DirectBillCommission>): Promise<string>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
6
|
+
exports.JobEpicService = void 0;
|
|
7
|
+
const BaseEpicService_1 = __importDefault(require("./BaseEpicService"));
|
|
8
|
+
class JobEpicService extends BaseEpicService_1.default {
|
|
5
9
|
constructor() {
|
|
6
10
|
super(...arguments);
|
|
7
11
|
this.baseUrl = 'job';
|
|
@@ -13,4 +17,4 @@ class JobEpicService extends index_1.BaseEpicService {
|
|
|
13
17
|
return this.put(`${this.baseUrl}/directBillCommission/${commissionId}`, payload);
|
|
14
18
|
}
|
|
15
19
|
}
|
|
16
|
-
exports.
|
|
20
|
+
exports.JobEpicService = JobEpicService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
export
|
|
1
|
+
import { MultiCarrierScheduleModel } from '../models/epic/MultiCarrierSchedule';
|
|
2
|
+
import BaseEpicService from './BaseEpicService';
|
|
3
|
+
export declare class MultiCarrierScheduleEpicService extends BaseEpicService {
|
|
4
4
|
readonly baseUrl = "multiCarrierSchedule";
|
|
5
5
|
getMultiCarrierSchedules(req: MultiCarrierScheduleModel.GetRequest): Promise<MultiCarrierScheduleModel.MultiCarrierSchedule[]>;
|
|
6
6
|
createMultiCarrierSchedule(req: MultiCarrierScheduleModel.CreateRequest): Promise<string>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
6
|
+
exports.MultiCarrierScheduleEpicService = void 0;
|
|
7
|
+
const BaseEpicService_1 = __importDefault(require("./BaseEpicService"));
|
|
8
|
+
class MultiCarrierScheduleEpicService extends BaseEpicService_1.default {
|
|
5
9
|
constructor() {
|
|
6
10
|
super(...arguments);
|
|
7
11
|
this.baseUrl = 'multiCarrierSchedule';
|
|
@@ -16,4 +20,4 @@ class MultiCarrierScheduleEpicService extends index_1.BaseEpicService {
|
|
|
16
20
|
return this.put(`${this.baseUrl}/${multiCarrierScheduleID}`, payload);
|
|
17
21
|
}
|
|
18
22
|
}
|
|
19
|
-
exports.
|
|
23
|
+
exports.MultiCarrierScheduleEpicService = MultiCarrierScheduleEpicService;
|
package/package.json
CHANGED
package/dist/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as AdminService } from './services/Admin';
|
|
2
|
-
export { default as BaseEpicService } from './services/BaseEpicService';
|
|
3
|
-
export { default as Epic } from './services/Epic';
|
|
4
|
-
export { default as JobEpicService } from './services/JobEpicService';
|
|
5
|
-
export { default as MultiCarrierScheduleEpicService } from './services/MultiCarrierScheduleEpicService';
|
|
6
|
-
export * as AdminModels from './models/admin/index';
|
|
7
|
-
export * as EpicModels from './models/epic/index';
|
package/dist/index.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.EpicModels = exports.AdminModels = exports.MultiCarrierScheduleEpicService = exports.JobEpicService = exports.Epic = exports.BaseEpicService = exports.AdminService = void 0;
|
|
40
|
-
// Réexport des services
|
|
41
|
-
var Admin_1 = require("./services/Admin");
|
|
42
|
-
Object.defineProperty(exports, "AdminService", { enumerable: true, get: function () { return __importDefault(Admin_1).default; } });
|
|
43
|
-
var BaseEpicService_1 = require("./services/BaseEpicService");
|
|
44
|
-
Object.defineProperty(exports, "BaseEpicService", { enumerable: true, get: function () { return __importDefault(BaseEpicService_1).default; } });
|
|
45
|
-
var Epic_1 = require("./services/Epic");
|
|
46
|
-
Object.defineProperty(exports, "Epic", { enumerable: true, get: function () { return __importDefault(Epic_1).default; } });
|
|
47
|
-
var JobEpicService_1 = require("./services/JobEpicService");
|
|
48
|
-
Object.defineProperty(exports, "JobEpicService", { enumerable: true, get: function () { return __importDefault(JobEpicService_1).default; } });
|
|
49
|
-
var MultiCarrierScheduleEpicService_1 = require("./services/MultiCarrierScheduleEpicService");
|
|
50
|
-
Object.defineProperty(exports, "MultiCarrierScheduleEpicService", { enumerable: true, get: function () { return __importDefault(MultiCarrierScheduleEpicService_1).default; } });
|
|
51
|
-
// Réexport des modèles admin
|
|
52
|
-
exports.AdminModels = __importStar(require("./models/admin/index"));
|
|
53
|
-
// Réexport des modèles epic
|
|
54
|
-
exports.EpicModels = __importStar(require("./models/epic/index"));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './BusMessage';
|
|
2
|
-
export * from './Counter';
|
|
3
|
-
export * from './Email';
|
|
4
|
-
export * from './ExcelSheet';
|
|
5
|
-
export * from './ExtractTable';
|
|
6
|
-
export * from './IDictionary';
|
|
7
|
-
export * from './KimobyResult';
|
|
8
|
-
export * from './PdfReader';
|
|
9
|
-
export * from './Primaco';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./BusMessage"), exports);
|
|
18
|
-
__exportStar(require("./Counter"), exports);
|
|
19
|
-
__exportStar(require("./Email"), exports);
|
|
20
|
-
__exportStar(require("./ExcelSheet"), exports);
|
|
21
|
-
__exportStar(require("./ExtractTable"), exports);
|
|
22
|
-
__exportStar(require("./IDictionary"), exports);
|
|
23
|
-
__exportStar(require("./KimobyResult"), exports);
|
|
24
|
-
__exportStar(require("./PdfReader"), exports);
|
|
25
|
-
__exportStar(require("./Primaco"), exports);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export * from './Activity';
|
|
2
|
-
export * from './Address';
|
|
3
|
-
export * from './Attachment';
|
|
4
|
-
export * from './Broker';
|
|
5
|
-
export * from './Commission';
|
|
6
|
-
export * from './Company';
|
|
7
|
-
export * from './Contact';
|
|
8
|
-
export * from './Customer';
|
|
9
|
-
export * from './Habitational';
|
|
10
|
-
export * from './Lookup';
|
|
11
|
-
export * from './Opportunity';
|
|
12
|
-
export * from './Policy';
|
|
13
|
-
export * from './Response';
|
|
14
|
-
export * from './ServiceSummary';
|
|
15
|
-
export * from './ServicingContact';
|
|
16
|
-
export * from './Transaction';
|
|
17
|
-
export * from './Employee';
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./Activity"), exports);
|
|
18
|
-
__exportStar(require("./Address"), exports);
|
|
19
|
-
__exportStar(require("./Attachment"), exports);
|
|
20
|
-
__exportStar(require("./Broker"), exports);
|
|
21
|
-
__exportStar(require("./Commission"), exports);
|
|
22
|
-
__exportStar(require("./Company"), exports);
|
|
23
|
-
__exportStar(require("./Contact"), exports);
|
|
24
|
-
__exportStar(require("./Customer"), exports);
|
|
25
|
-
__exportStar(require("./Habitational"), exports);
|
|
26
|
-
__exportStar(require("./Lookup"), exports);
|
|
27
|
-
__exportStar(require("./Opportunity"), exports);
|
|
28
|
-
__exportStar(require("./Policy"), exports);
|
|
29
|
-
__exportStar(require("./Response"), exports);
|
|
30
|
-
__exportStar(require("./ServiceSummary"), exports);
|
|
31
|
-
__exportStar(require("./ServicingContact"), exports);
|
|
32
|
-
__exportStar(require("./Transaction"), exports);
|
|
33
|
-
__exportStar(require("./Employee"), exports);
|