@cemiar/cemiarlink-sdk 1.0.0 → 1.0.1

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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { default as AdminService } from './services/Admin.js';
2
- export { default as BaseEpicService } from './services/BaseEpicService.js';
3
- export { default as Epic } from './services/Epic.js';
4
- export { default as JobEpicService } from './services/JobEpicService.js';
5
- export { default as MultiCarrierScheduleEpicService } from './services/MultiCarrierScheduleEpicService.js';
6
- export * as AdminModels from './models/admin/index.js';
7
- export * as EpicModels from './models/epic/index.js';
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 CHANGED
@@ -38,17 +38,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.EpicModels = exports.AdminModels = exports.MultiCarrierScheduleEpicService = exports.JobEpicService = exports.Epic = exports.BaseEpicService = exports.AdminService = void 0;
40
40
  // Réexport des services
41
- var Admin_js_1 = require("./services/Admin.js");
42
- Object.defineProperty(exports, "AdminService", { enumerable: true, get: function () { return __importDefault(Admin_js_1).default; } });
43
- var BaseEpicService_js_1 = require("./services/BaseEpicService.js");
44
- Object.defineProperty(exports, "BaseEpicService", { enumerable: true, get: function () { return __importDefault(BaseEpicService_js_1).default; } });
45
- var Epic_js_1 = require("./services/Epic.js");
46
- Object.defineProperty(exports, "Epic", { enumerable: true, get: function () { return __importDefault(Epic_js_1).default; } });
47
- var JobEpicService_js_1 = require("./services/JobEpicService.js");
48
- Object.defineProperty(exports, "JobEpicService", { enumerable: true, get: function () { return __importDefault(JobEpicService_js_1).default; } });
49
- var MultiCarrierScheduleEpicService_js_1 = require("./services/MultiCarrierScheduleEpicService.js");
50
- Object.defineProperty(exports, "MultiCarrierScheduleEpicService", { enumerable: true, get: function () { return __importDefault(MultiCarrierScheduleEpicService_js_1).default; } });
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
51
  // Réexport des modèles admin
52
- exports.AdminModels = __importStar(require("./models/admin/index.js"));
52
+ exports.AdminModels = __importStar(require("./models/admin/index"));
53
53
  // Réexport des modèles epic
54
- exports.EpicModels = __importStar(require("./models/epic/index.js"));
54
+ exports.EpicModels = __importStar(require("./models/epic/index"));
@@ -1,9 +1,9 @@
1
- export * from './BusMessage.js';
2
- export * from './Counter.js';
3
- export * from './Email.js';
4
- export * from './ExcelSheet.js';
5
- export * from './ExtractTable.js';
6
- export * from './IDictionary.js';
7
- export * from './KimobyResult.js';
8
- export * from './PdfReader.js';
9
- export * from './Primaco.js';
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';
@@ -14,12 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./BusMessage.js"), exports);
18
- __exportStar(require("./Counter.js"), exports);
19
- __exportStar(require("./Email.js"), exports);
20
- __exportStar(require("./ExcelSheet.js"), exports);
21
- __exportStar(require("./ExtractTable.js"), exports);
22
- __exportStar(require("./IDictionary.js"), exports);
23
- __exportStar(require("./KimobyResult.js"), exports);
24
- __exportStar(require("./PdfReader.js"), exports);
25
- __exportStar(require("./Primaco.js"), exports);
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,4 +1,4 @@
1
- import { Address } from './Address.js';
1
+ import { Address } from './Address';
2
2
  export interface Contact {
3
3
  AccountId: string;
4
4
  AccountType: string;
@@ -1,4 +1,4 @@
1
- import { ServicingContact } from './ServicingContact.js';
1
+ import { ServicingContact } from './ServicingContact';
2
2
  export interface Customer {
3
3
  Address1: string;
4
4
  Address2: string;
@@ -1,4 +1,4 @@
1
- import { Address } from './Address.js';
1
+ import { Address } from './Address';
2
2
  export interface Driver {
3
3
  DriverID: number;
4
4
  LineID: number;
@@ -1,6 +1,6 @@
1
- import { Address } from './Address.js';
2
- import { AgencyDefinedCode } from './Line.js';
3
- import { OptionType } from './OptionType.js';
1
+ import { Address } from './Address';
2
+ import { AgencyDefinedCode } from './Line';
3
+ import { OptionType } from './OptionType';
4
4
  export interface Employee {
5
5
  AccountName: string;
6
6
  AccountStatus: string;
@@ -1,4 +1,4 @@
1
- import { Address } from './Address.js';
1
+ import { Address } from './Address';
2
2
  export interface Habitational {
3
3
  Locations: Location[];
4
4
  PolicyInformations: PolicyInformation[];
@@ -1,6 +1,6 @@
1
- import { Address } from './Address.js';
2
- import { OptionType } from './OptionType.js';
3
- import { ServicingContact } from './ServicingContact.js';
1
+ import { Address } from './Address';
2
+ import { OptionType } from './OptionType';
3
+ import { ServicingContact } from './ServicingContact';
4
4
  export interface BillingValue {
5
5
  BillBrokerNet: boolean;
6
6
  BillingPlan: string;
@@ -1,4 +1,4 @@
1
- import { DeepPartial } from "../../utils/DeepPartial.js";
1
+ import { DeepPartial } from "../../utils/DeepPartial";
2
2
  export declare namespace MultiCarrierScheduleModel {
3
3
  interface MultiCarrierSchedule {
4
4
  Active: boolean;
@@ -1,6 +1,6 @@
1
- import { ServicingContact } from './ServicingContact.js';
2
- import { ServiceSummary } from './ServiceSummary.js';
3
- import { Line } from './Line.js';
1
+ import { ServicingContact } from './ServicingContact';
2
+ import { ServiceSummary } from './ServiceSummary';
3
+ import { Line } from './Line';
4
4
  export interface Policy {
5
5
  AccountId: string;
6
6
  AgencyCode: string;
@@ -1,4 +1,4 @@
1
- import { OptionType } from './OptionType.js';
1
+ import { OptionType } from './OptionType';
2
2
  export interface PolicyV2 {
3
3
  AccountID: number;
4
4
  AgencyCode: string;
@@ -1,4 +1,4 @@
1
- import { OptionType } from './OptionType.js';
1
+ import { OptionType } from './OptionType';
2
2
  export interface Receipt {
3
3
  Id: string;
4
4
  Description: string;
@@ -1,4 +1,4 @@
1
- import { Address } from './Address.js';
1
+ import { Address } from './Address';
2
2
  export interface Transaction {
3
3
  AccountId: string;
4
4
  AccountType: string;
@@ -1,17 +1,17 @@
1
- export * from './Activity.js';
2
- export * from './Address.js';
3
- export * from './Attachment.js';
4
- export * from './Broker.js';
5
- export * from './Commission.js';
6
- export * from './Company.js';
7
- export * from './Contact.js';
8
- export * from './Customer.js';
9
- export * from './Habitational.js';
10
- export * from './Lookup.js';
11
- export * from './Opportunity.js';
12
- export * from './Policy.js';
13
- export * from './Response.js';
14
- export * from './ServiceSummary.js';
15
- export * from './ServicingContact.js';
16
- export * from './Transaction.js';
17
- export * from './Employee.js';
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';
@@ -14,20 +14,20 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./Activity.js"), exports);
18
- __exportStar(require("./Address.js"), exports);
19
- __exportStar(require("./Attachment.js"), exports);
20
- __exportStar(require("./Broker.js"), exports);
21
- __exportStar(require("./Commission.js"), exports);
22
- __exportStar(require("./Company.js"), exports);
23
- __exportStar(require("./Contact.js"), exports);
24
- __exportStar(require("./Customer.js"), exports);
25
- __exportStar(require("./Habitational.js"), exports);
26
- __exportStar(require("./Lookup.js"), exports);
27
- __exportStar(require("./Opportunity.js"), exports);
28
- __exportStar(require("./Policy.js"), exports);
29
- __exportStar(require("./Response.js"), exports);
30
- __exportStar(require("./ServiceSummary.js"), exports);
31
- __exportStar(require("./ServicingContact.js"), exports);
32
- __exportStar(require("./Transaction.js"), exports);
33
- __exportStar(require("./Employee.js"), exports);
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);
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance } from 'axios';
2
- import { AzureOCRResponse, ClassificationResult, Counter, Email, EmailAws, BusMessagePayload, ExtractBody, ExtractInsurerResponse, ExtractTableResponse, FlashPaymentRequest, PdfReaderBody, PdfReaderResponse, SendMailResult, TableExtractBody } from "../models/admin/index.js";
2
+ import { AzureOCRResponse, ClassificationResult, Counter, Email, EmailAws, BusMessagePayload, ExtractBody, ExtractInsurerResponse, ExtractTableResponse, FlashPaymentRequest, PdfReaderBody, PdfReaderResponse, SendMailResult, TableExtractBody } from "../models/admin/index";
3
3
  export default class AdminService {
4
4
  axiosInstance: AxiosInstance;
5
5
  taskId?: string;
@@ -5,13 +5,13 @@ 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_js_1 = require("../utils/AxiosClient.js");
9
- const MissingInfo_js_1 = require("../exceptions/MissingInfo.js");
10
- const Excel_js_1 = __importDefault(require("../utils/Excel.js"));
8
+ const AxiosClient_1 = require("../utils/AxiosClient");
9
+ const MissingInfo_1 = require("../exceptions/MissingInfo");
10
+ const Excel_1 = __importDefault(require("../utils/Excel"));
11
11
  class AdminService {
12
12
  constructor(adminUrl, headers, taskId) {
13
13
  this.taskId = taskId;
14
- this.axiosInstance = new AxiosClient_js_1.AxiosClient(adminUrl, headers).getInstance();
14
+ this.axiosInstance = new AxiosClient_1.AxiosClient(adminUrl, headers).getInstance();
15
15
  }
16
16
  async updateCemiarTask(status) {
17
17
  const dateTime = new Date();
@@ -66,7 +66,7 @@ class AdminService {
66
66
  }
67
67
  catch (error) {
68
68
  if (((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.status) === 400) {
69
- throw new MissingInfo_js_1.MissingInfo(error.response.data.message);
69
+ throw new MissingInfo_1.MissingInfo(error.response.data.message);
70
70
  }
71
71
  throw error;
72
72
  }
@@ -79,10 +79,10 @@ class AdminService {
79
79
  let data = [];
80
80
  let filePath = `./temp/Rapport ${fileName} du ${date}`;
81
81
  if (fs_1.default.existsSync(`${filePath}.csv`)) {
82
- data = await Excel_js_1.default.getFromCSV(`${filePath}.csv`);
82
+ data = await Excel_1.default.getFromCSV(`${filePath}.csv`);
83
83
  }
84
84
  else if (fs_1.default.existsSync(`${filePath}.xlsx`)) {
85
- data = await Excel_js_1.default.getFromXLSX(`${filePath}.xlsx`, sheetNumber);
85
+ data = await Excel_1.default.getFromXLSX(`${filePath}.xlsx`, sheetNumber);
86
86
  }
87
87
  else {
88
88
  return [];
@@ -93,10 +93,10 @@ class AdminService {
93
93
  let data = [];
94
94
  let filePath = `./test/${fileName}`;
95
95
  if (fs_1.default.existsSync(`${filePath}.csv`)) {
96
- data = await Excel_js_1.default.getFromCSV(`${filePath}.csv`);
96
+ data = await Excel_1.default.getFromCSV(`${filePath}.csv`);
97
97
  }
98
98
  else if (fs_1.default.existsSync(`${filePath}.xlsx`)) {
99
- data = await Excel_js_1.default.getFromXLSX(`${filePath}.xlsx`, sheetNumber);
99
+ data = await Excel_1.default.getFromXLSX(`${filePath}.xlsx`, sheetNumber);
100
100
  }
101
101
  else {
102
102
  return [];
@@ -130,12 +130,12 @@ class AdminService {
130
130
  }
131
131
  async createReport(sheatData, headers, name) {
132
132
  if (name.includes('.xlsx')) {
133
- Excel_js_1.default.createFile(sheatData, headers, name);
133
+ Excel_1.default.createFile(sheatData, headers, name);
134
134
  }
135
135
  if (name.includes('.csv')) {
136
- Excel_js_1.default.appendFile(headers, name);
136
+ Excel_1.default.appendFile(headers, name);
137
137
  for (const row of sheatData) {
138
- Excel_js_1.default.appendFile(row, name);
138
+ Excel_1.default.appendFile(row, name);
139
139
  }
140
140
  }
141
141
  }
@@ -147,7 +147,7 @@ class AdminService {
147
147
  }
148
148
  catch (error) {
149
149
  if (((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.status) === 400) {
150
- throw new MissingInfo_js_1.MissingInfo(error.response.data.message);
150
+ throw new MissingInfo_1.MissingInfo(error.response.data.message);
151
151
  }
152
152
  throw error;
153
153
  }
@@ -160,7 +160,7 @@ class AdminService {
160
160
  }
161
161
  catch (error) {
162
162
  if (((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.status) === 400) {
163
- throw new MissingInfo_js_1.MissingInfo(error.response.data.message);
163
+ throw new MissingInfo_1.MissingInfo(error.response.data.message);
164
164
  }
165
165
  throw error;
166
166
  }
@@ -174,7 +174,7 @@ class AdminService {
174
174
  }
175
175
  catch (error) {
176
176
  if (((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.status) === 400) {
177
- throw new MissingInfo_js_1.MissingInfo(error.response.data.message);
177
+ throw new MissingInfo_1.MissingInfo(error.response.data.message);
178
178
  }
179
179
  throw error;
180
180
  }
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const AxiosClient_js_1 = require("../utils/AxiosClient.js");
3
+ const AxiosClient_1 = require("../utils/AxiosClient");
4
4
  class BaseEpicService {
5
5
  constructor(epicUrl, headers) {
6
- this.axiosInstance = new AxiosClient_js_1.AxiosClient(epicUrl, headers).getInstance();
6
+ this.axiosInstance = new AxiosClient_1.AxiosClient(epicUrl, headers).getInstance();
7
7
  }
8
8
  handleError(axiosResponse) {
9
9
  if (axiosResponse.bodyError) {
@@ -1,16 +1,16 @@
1
- import { BaseEpicService, JobEpicService, MultiCarrierScheduleEpicService } from "../index.js";
2
- import { AdditionalInterest } from "../models/epic/AdditionalInterest.js";
3
- import { Claim } from "../models/epic/Claim.js";
4
- import { DirectBillCommission } from "../models/epic/DirectBillCommission.js";
5
- import { Driver } from "../models/epic/Driver.js";
6
- import { GeneralLedgerReconcileBank } from "../models/epic/GeneralLedgerReconcileBank.js";
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.js";
8
- import { Line } from "../models/epic/Line.js";
9
- import { PayableContract } from "../models/epic/PayableContract.js";
10
- import { PolicyV2, PolicyV2Model } from "../models/epic/PolicyV2.js";
11
- import { Receipt } from "../models/epic/Receipt.js";
12
- import { RenewalStage } from "../models/epic/RenewalStage.js";
13
- import { Vehicle } from "../models/epic/Vehicle.js";
1
+ import { BaseEpicService, JobEpicService, MultiCarrierScheduleEpicService } from "../index";
2
+ import { AdditionalInterest } from "../models/epic/AdditionalInterest";
3
+ import { Claim } from "../models/epic/Claim";
4
+ import { DirectBillCommission } from "../models/epic/DirectBillCommission";
5
+ import { Driver } from "../models/epic/Driver";
6
+ 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
+ import { Line } from "../models/epic/Line";
9
+ import { PayableContract } from "../models/epic/PayableContract";
10
+ import { PolicyV2, PolicyV2Model } from "../models/epic/PolicyV2";
11
+ import { Receipt } from "../models/epic/Receipt";
12
+ import { RenewalStage } from "../models/epic/RenewalStage";
13
+ import { Vehicle } from "../models/epic/Vehicle";
14
14
  export default class EpicService extends BaseEpicService {
15
15
  job: JobEpicService;
16
16
  multiCarrierSchedule: MultiCarrierScheduleEpicService;
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const EpicException_js_1 = require("../exceptions/EpicException.js");
4
- const index_js_1 = require("../index.js");
5
- class EpicService extends index_js_1.BaseEpicService {
3
+ const EpicException_1 = require("../exceptions/EpicException");
4
+ const index_1 = require("../index");
5
+ class EpicService extends index_1.BaseEpicService {
6
6
  constructor(epicUrl, headers) {
7
7
  super(epicUrl, headers);
8
- this.job = new index_js_1.JobEpicService(epicUrl, headers);
9
- this.multiCarrierSchedule = new index_js_1.MultiCarrierScheduleEpicService(epicUrl, headers);
8
+ this.job = new index_1.JobEpicService(epicUrl, headers);
9
+ this.multiCarrierSchedule = new index_1.MultiCarrierScheduleEpicService(epicUrl, headers);
10
10
  }
11
11
  async getActivity(activityId) {
12
12
  return this.getOne('activity', activityId);
@@ -151,7 +151,7 @@ class EpicService extends index_js_1.BaseEpicService {
151
151
  const { data: axiosResponse } = await this.axiosInstance.put(`transaction/applyCreditsToDebits/${transactionId}`, payload);
152
152
  if (!axiosResponse.success) {
153
153
  if (axiosResponse.code == '400' || axiosResponse.code == '401' || axiosResponse.code == '404') {
154
- throw new EpicException_js_1.EpicException(axiosResponse.message || axiosResponse.Message);
154
+ throw new EpicException_1.EpicException(axiosResponse.message || axiosResponse.Message);
155
155
  }
156
156
  throw new Error(axiosResponse.message || axiosResponse.Message);
157
157
  }
@@ -260,7 +260,7 @@ class EpicService extends index_js_1.BaseEpicService {
260
260
  const { data: axiosResponse } = await this.axiosInstance.post(`receipt/${receiptId}`, payload);
261
261
  if (!axiosResponse.success) {
262
262
  if (axiosResponse.code == '400' || axiosResponse.code == '401' || axiosResponse.code == '404') {
263
- throw new EpicException_js_1.EpicException(axiosResponse.message || axiosResponse.Message);
263
+ throw new EpicException_1.EpicException(axiosResponse.message || axiosResponse.Message);
264
264
  }
265
265
  throw new Error(axiosResponse.message || axiosResponse.Message);
266
266
  }
@@ -1,5 +1,5 @@
1
- import { BaseEpicService } from "../index.js";
2
- import { DirectBillCommission, Reconciliation } from "../models/epic/DirectBillCommission.js";
1
+ import { BaseEpicService } from "../index";
2
+ import { DirectBillCommission, Reconciliation } from "../models/epic/DirectBillCommission";
3
3
  export default class JobEpicService extends BaseEpicService {
4
4
  readonly baseUrl = "job";
5
5
  reconcile(payload: Reconciliation): Promise<string>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const index_js_1 = require("../index.js");
4
- class JobEpicService extends index_js_1.BaseEpicService {
3
+ const index_1 = require("../index");
4
+ class JobEpicService extends index_1.BaseEpicService {
5
5
  constructor() {
6
6
  super(...arguments);
7
7
  this.baseUrl = 'job';
@@ -1,5 +1,5 @@
1
- import { BaseEpicService } from "../index.js";
2
- import { MultiCarrierScheduleModel } from "../models/epic/MultiCarrierSchedule.js";
1
+ import { BaseEpicService } from "../index";
2
+ import { MultiCarrierScheduleModel } from "../models/epic/MultiCarrierSchedule";
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,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const index_js_1 = require("../index.js");
4
- class MultiCarrierScheduleEpicService extends index_js_1.BaseEpicService {
3
+ const index_1 = require("../index");
4
+ class MultiCarrierScheduleEpicService extends index_1.BaseEpicService {
5
5
  constructor() {
6
6
  super(...arguments);
7
7
  this.baseUrl = 'multiCarrierSchedule';
@@ -1,4 +1,4 @@
1
- import ExcelSheet from "../models/admin/ExcelSheet.js";
1
+ import ExcelSheet from "../models/admin/ExcelSheet";
2
2
  export default class readXlsx {
3
3
  static getFromXLSX<T>(path: string, sheetNumber: number): Promise<T[]>;
4
4
  static getFromCSV<T>(path: string): Promise<T[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cemiar/cemiarlink-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "CemiarLink SDK to access CemiarLink API services",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",