@cemiar/cemiarlink-sdk 1.0.1 → 1.0.2
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/Epic.d.ts +16 -2
- package/dist/services/Epic.js +9 -4
- package/dist/services/JobEpicService.d.ts +1 -1
- package/dist/services/JobEpicService.js +5 -2
- package/dist/services/MultiCarrierScheduleEpicService.d.ts +1 -1
- package/dist/services/MultiCarrierScheduleEpicService.js +5 -2
- 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/Epic.d.ts
CHANGED
|
@@ -1,16 +1,30 @@
|
|
|
1
|
-
import { BaseEpicService, JobEpicService, MultiCarrierScheduleEpicService } from "../index";
|
|
2
1
|
import { AdditionalInterest } from "../models/epic/AdditionalInterest";
|
|
3
2
|
import { Claim } from "../models/epic/Claim";
|
|
4
3
|
import { DirectBillCommission } from "../models/epic/DirectBillCommission";
|
|
5
4
|
import { Driver } from "../models/epic/Driver";
|
|
6
5
|
import { GeneralLedgerReconcileBank } from "../models/epic/GeneralLedgerReconcileBank";
|
|
7
|
-
import { Activity, Attachment, AttachmentDetail, Broker, Commission, Company, Contact, CreateActivity, CreateAttachment, CreateContact, CreateCustomer, CreatePaymentTransaction, CreatePolicy, CreateTransaction, Customer, Employee, FinanceTransaction, FinanceTransactionResult, Habitational, LookUp, Opportunity, Policy, Transaction, TransactionApplyCreditsToDebits } from "../models/epic/index";
|
|
8
6
|
import { Line } from "../models/epic/Line";
|
|
9
7
|
import { PayableContract } from "../models/epic/PayableContract";
|
|
10
8
|
import { PolicyV2, PolicyV2Model } from "../models/epic/PolicyV2";
|
|
11
9
|
import { Receipt } from "../models/epic/Receipt";
|
|
12
10
|
import { RenewalStage } from "../models/epic/RenewalStage";
|
|
13
11
|
import { Vehicle } from "../models/epic/Vehicle";
|
|
12
|
+
import { Activity, CreateActivity } from "../models/epic/Activity";
|
|
13
|
+
import { Attachment, AttachmentDetail, CreateAttachment } from "../models/epic/Attachment";
|
|
14
|
+
import { CreatePolicy, Policy } from "../models/epic/Policy";
|
|
15
|
+
import { Broker } from "../models/epic/Broker";
|
|
16
|
+
import { Employee } from "../models/epic/Employee";
|
|
17
|
+
import { LookUp } from "../models/epic/Lookup";
|
|
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";
|
|
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 = __importDefault(require("./JobEpicService"));
|
|
9
|
+
const MultiCarrierScheduleEpicService_1 = __importDefault(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.default(epicUrl, headers);
|
|
14
|
+
this.multiCarrierSchedule = new MultiCarrierScheduleEpicService_1.default(epicUrl, headers);
|
|
10
15
|
}
|
|
11
16
|
async getActivity(activityId) {
|
|
12
17
|
return this.getOne('activity', activityId);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseEpicService } from "../index";
|
|
2
1
|
import { DirectBillCommission, Reconciliation } from "../models/epic/DirectBillCommission";
|
|
2
|
+
import BaseEpicService from "./BaseEpicService";
|
|
3
3
|
export default class JobEpicService extends BaseEpicService {
|
|
4
4
|
readonly baseUrl = "job";
|
|
5
5
|
reconcile(payload: Reconciliation): Promise<string>;
|
|
@@ -1,7 +1,10 @@
|
|
|
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
|
-
const
|
|
4
|
-
class JobEpicService extends
|
|
6
|
+
const BaseEpicService_1 = __importDefault(require("./BaseEpicService"));
|
|
7
|
+
class JobEpicService extends BaseEpicService_1.default {
|
|
5
8
|
constructor() {
|
|
6
9
|
super(...arguments);
|
|
7
10
|
this.baseUrl = 'job';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseEpicService } from "../index";
|
|
2
1
|
import { MultiCarrierScheduleModel } from "../models/epic/MultiCarrierSchedule";
|
|
2
|
+
import BaseEpicService from "./BaseEpicService";
|
|
3
3
|
export default class MultiCarrierScheduleEpicService extends BaseEpicService {
|
|
4
4
|
readonly baseUrl = "multiCarrierSchedule";
|
|
5
5
|
getMultiCarrierSchedules(req: MultiCarrierScheduleModel.GetRequest): Promise<MultiCarrierScheduleModel.MultiCarrierSchedule[]>;
|
|
@@ -1,7 +1,10 @@
|
|
|
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
|
-
const
|
|
4
|
-
class MultiCarrierScheduleEpicService extends
|
|
6
|
+
const BaseEpicService_1 = __importDefault(require("./BaseEpicService"));
|
|
7
|
+
class MultiCarrierScheduleEpicService extends BaseEpicService_1.default {
|
|
5
8
|
constructor() {
|
|
6
9
|
super(...arguments);
|
|
7
10
|
this.baseUrl = 'multiCarrierSchedule';
|
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);
|