@cemiar/cemiarlink-sdk 1.0.2 → 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.js +1 -1
- package/dist/services/Epic.d.ts +26 -26
- package/dist/services/Epic.js +4 -4
- package/dist/services/JobEpicService.d.ts +3 -3
- package/dist/services/JobEpicService.js +2 -1
- package/dist/services/MultiCarrierScheduleEpicService.d.ts +3 -3
- package/dist/services/MultiCarrierScheduleEpicService.js +2 -1
- package/package.json +1 -1
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,30 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
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';
|
|
16
26
|
import { Employee } from "../models/epic/Employee";
|
|
17
|
-
import {
|
|
18
|
-
import { Contact, CreateContact } from "../models/epic/Contact";
|
|
19
|
-
import { CreatePaymentTransaction, CreateTransaction, FinanceTransaction, FinanceTransactionResult, Transaction, TransactionApplyCreditsToDebits } from "../models/epic/Transaction";
|
|
20
|
-
import { Company } from "../models/epic/Company";
|
|
21
|
-
import { CreateCustomer, Customer } from "../models/epic/Customer";
|
|
22
|
-
import { Habitational } from "../models/epic/Habitational";
|
|
23
|
-
import { Commission } from "../models/epic/Commission";
|
|
24
|
-
import { Opportunity } from "../models/epic/Opportunity";
|
|
25
|
-
import BaseEpicService from "./BaseEpicService";
|
|
26
|
-
import JobEpicService from "./JobEpicService";
|
|
27
|
-
import MultiCarrierScheduleEpicService from "./MultiCarrierScheduleEpicService";
|
|
27
|
+
import { Broker } from "../models/epic/Broker";
|
|
28
28
|
export default class EpicService extends BaseEpicService {
|
|
29
29
|
job: JobEpicService;
|
|
30
30
|
multiCarrierSchedule: MultiCarrierScheduleEpicService;
|
package/dist/services/Epic.js
CHANGED
|
@@ -5,13 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const EpicException_1 = require("../exceptions/EpicException");
|
|
7
7
|
const BaseEpicService_1 = __importDefault(require("./BaseEpicService"));
|
|
8
|
-
const JobEpicService_1 =
|
|
9
|
-
const MultiCarrierScheduleEpicService_1 =
|
|
8
|
+
const JobEpicService_1 = require("./JobEpicService");
|
|
9
|
+
const MultiCarrierScheduleEpicService_1 = require("./MultiCarrierScheduleEpicService");
|
|
10
10
|
class EpicService extends BaseEpicService_1.default {
|
|
11
11
|
constructor(epicUrl, headers) {
|
|
12
12
|
super(epicUrl, headers);
|
|
13
|
-
this.job = new JobEpicService_1.
|
|
14
|
-
this.multiCarrierSchedule = new MultiCarrierScheduleEpicService_1.
|
|
13
|
+
this.job = new JobEpicService_1.JobEpicService(epicUrl, headers);
|
|
14
|
+
this.multiCarrierSchedule = new MultiCarrierScheduleEpicService_1.MultiCarrierScheduleEpicService(epicUrl, headers);
|
|
15
15
|
}
|
|
16
16
|
async getActivity(activityId) {
|
|
17
17
|
return this.getOne('activity', activityId);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DirectBillCommission, Reconciliation } from
|
|
2
|
-
import BaseEpicService from
|
|
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>;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.JobEpicService = void 0;
|
|
6
7
|
const BaseEpicService_1 = __importDefault(require("./BaseEpicService"));
|
|
7
8
|
class JobEpicService extends BaseEpicService_1.default {
|
|
8
9
|
constructor() {
|
|
@@ -16,4 +17,4 @@ class JobEpicService extends BaseEpicService_1.default {
|
|
|
16
17
|
return this.put(`${this.baseUrl}/directBillCommission/${commissionId}`, payload);
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
|
-
exports.
|
|
20
|
+
exports.JobEpicService = JobEpicService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MultiCarrierScheduleModel } from
|
|
2
|
-
import BaseEpicService from
|
|
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>;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MultiCarrierScheduleEpicService = void 0;
|
|
6
7
|
const BaseEpicService_1 = __importDefault(require("./BaseEpicService"));
|
|
7
8
|
class MultiCarrierScheduleEpicService extends BaseEpicService_1.default {
|
|
8
9
|
constructor() {
|
|
@@ -19,4 +20,4 @@ class MultiCarrierScheduleEpicService extends BaseEpicService_1.default {
|
|
|
19
20
|
return this.put(`${this.baseUrl}/${multiCarrierScheduleID}`, payload);
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
|
-
exports.
|
|
23
|
+
exports.MultiCarrierScheduleEpicService = MultiCarrierScheduleEpicService;
|