@cemiar/cemiarlink-sdk 1.0.15 → 1.0.17

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.
@@ -0,0 +1,69 @@
1
+ import { OptionType } from './OptionType';
2
+ export interface DefaultEntryValue {
3
+ NewDefaultEntry: any;
4
+ NewDefaultEntryOption: OptionType;
5
+ OverrideExistingDefaultEntryID: number;
6
+ }
7
+ export interface JournalDetailItem {
8
+ Amount: number;
9
+ DebitCreditOption: OptionType;
10
+ Description: string;
11
+ DetailItemID: number;
12
+ Flag: number;
13
+ GeneralLedgerAccountNumberCode: string;
14
+ GeneralLedgerScheduleCode: string;
15
+ GeneralLedgerSubAccountNumberCode: string;
16
+ StructureAgencyCode: string;
17
+ StructureBranchCode: string;
18
+ StructureDepartmentCode: string;
19
+ StructureProfitCenterCode: string;
20
+ AllocationMethodID: number;
21
+ AllocationStructureGroupingID: number;
22
+ }
23
+ export interface JournalDetailValue {
24
+ AddAsDefaultEntry: boolean;
25
+ DefaultEntryValue: DefaultEntryValue;
26
+ DetailItemsValue: JournalDetailItem[];
27
+ TotalCredit: number;
28
+ TotalDebit: number;
29
+ }
30
+ export interface JournalEntry {
31
+ AssociateToAccountLookupCode: string;
32
+ AssociateToAccountType: string;
33
+ AutomaticallyReverse: boolean;
34
+ DetailValue: JournalDetailValue;
35
+ IsReadOnly: boolean;
36
+ JournalEntryAccountingMonth: string;
37
+ JournalEntryBackPost: boolean;
38
+ JournalEntryDefaultEntryID: number;
39
+ JournalEntryDescription: string;
40
+ JournalEntryEffectiveDate: string;
41
+ JournalEntryID: number;
42
+ JournalEntryRecurringEntry: string;
43
+ JournalEntryReferNumber: string;
44
+ JournalEntryReopenClosedYearsForBackPosting: boolean;
45
+ Timestamp: string;
46
+ VoidReferNumber: string;
47
+ VoidVoided: string;
48
+ }
49
+ export interface CreateJournalDetailItem {
50
+ Flag: number;
51
+ DebitCreditOption: OptionType;
52
+ Amount: number;
53
+ Description: string;
54
+ GeneralLedgerAccountNumberCode: string;
55
+ GeneralLedgerSubAccountNumberCode: string;
56
+ StructureAgencyCode: string;
57
+ StructureBranchCode: string;
58
+ StructureDepartmentCode: string;
59
+ StructureProfitCenterCode: string;
60
+ }
61
+ export interface CreateJournalDetailValue {
62
+ DetailItemsValue: CreateJournalDetailItem[];
63
+ }
64
+ export interface CreateJournalEntry {
65
+ JournalEntryAccountingMonth: string;
66
+ JournalEntryDescription: string;
67
+ JournalEntryEffectiveDate: string;
68
+ DetailValue: CreateJournalDetailValue;
69
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -18,13 +18,14 @@ import { CreatePolicy, Policy } from '../models/epic/Policy';
18
18
  import { PolicyV2, PolicyV2Model } from '../models/epic/PolicyV2';
19
19
  import { Receipt } from '../models/epic/Receipt';
20
20
  import { RenewalStage } from '../models/epic/RenewalStage';
21
- import { BaseEpicService } from "./BaseEpicService";
22
- import { JobEpicService } from "./JobEpicService";
23
- import { MultiCarrierScheduleEpicService } from "./MultiCarrierScheduleEpicService";
24
- import { Broker } from "../models/epic/Broker";
25
- import { Employee } from "../models/epic/Employee";
26
- import { CreatePaymentTransaction, CreateTransaction, FinanceTransaction, FinanceTransactionResult, Transaction, TransactionApplyCreditsToDebits } from "../models/epic/Transaction";
27
- import { Vehicle } from "../models/epic/Vehicle";
21
+ import { BaseEpicService } from './BaseEpicService';
22
+ import { JobEpicService } from './JobEpicService';
23
+ import { MultiCarrierScheduleEpicService } from './MultiCarrierScheduleEpicService';
24
+ import { Broker } from '../models/epic/Broker';
25
+ import { Employee } from '../models/epic/Employee';
26
+ import { CreatePaymentTransaction, CreateTransaction, FinanceTransaction, FinanceTransactionResult, Transaction, TransactionApplyCreditsToDebits } from '../models/epic/Transaction';
27
+ import { Vehicle } from '../models/epic/Vehicle';
28
+ import { CreateJournalEntry, JournalEntry } from '../models/epic/JournalEntry';
28
29
  /**
29
30
  * EpicService provides methods to interact with the Epic API for activities, attachments, policies, transactions, and more.
30
31
  * It extends BaseEpicService and includes job and multi-carrier schedule services for specialized operations.
@@ -119,5 +120,9 @@ export declare class EpicService extends BaseEpicService {
119
120
  createGeneralLedgerReconcileBank(payload: Partial<GeneralLedgerReconcileBank>): Promise<string | string[]>;
120
121
  updateGeneralLedgerBank(bankId: string, payload: object): Promise<string>;
121
122
  getAdditionalInterests(queryParams: object): Promise<AdditionalInterest[]>;
123
+ getJournalEntry(journalEntryId: string): Promise<JournalEntry>;
124
+ getJournalEntries(queryParams: object): Promise<JournalEntry[]>;
125
+ createJournalEntry(payload: CreateJournalEntry): Promise<string | string[]>;
126
+ updateJournalEntry(journalEntryId: string, payload: JournalEntry): Promise<string>;
122
127
  }
123
128
  export type EpicServiceType = EpicService;
@@ -294,5 +294,17 @@ class EpicService extends BaseEpicService_1.BaseEpicService {
294
294
  async getAdditionalInterests(queryParams) {
295
295
  return this.get('personalAuto/additionalinterests', queryParams);
296
296
  }
297
+ async getJournalEntry(journalEntryId) {
298
+ return this.getOne('journalEntry', journalEntryId);
299
+ }
300
+ async getJournalEntries(queryParams) {
301
+ return this.get('journalEntry', queryParams);
302
+ }
303
+ async createJournalEntry(payload) {
304
+ return await this.post(`journalEntry`, payload);
305
+ }
306
+ async updateJournalEntry(journalEntryId, payload) {
307
+ return await this.put(`journalEntry/${journalEntryId}`, payload);
308
+ }
297
309
  }
298
310
  exports.EpicService = EpicService;
package/package.json CHANGED
@@ -1,37 +1,37 @@
1
1
  {
2
- "name": "@cemiar/cemiarlink-sdk",
3
- "version": "1.0.15",
4
- "description": "CemiarLink SDK to access CemiarLink API services",
5
- "engines": {
6
- "npm": ">=9.5.1",
7
- "node": ">=18.16.0"
8
- },
9
- "author": "Cemiar",
10
- "license": "ISC",
11
- "main": "dist/services/Admin.js",
12
- "module": "./dist/services/Admin.mjs",
13
- "types": "./dist/services/Admin.d.ts",
14
- "files": [
15
- "dist"
16
- ],
17
- "dependencies": {
18
- "axios": "^1.13.5",
19
- "path": "^0.12.7",
20
- "xlsx": "^0.18.5",
21
- "nodemailer": "^7.0.11",
22
- "fs": "^0.0.1-security",
23
- "@types/nodemailer": "^7.0.11"
24
- },
25
- "devDependencies": {
26
- "ts-node": "^10.9.2"
27
- },
28
- "scripts": {
29
- "build": "rm -rf dist/ && tsc -p tsconfig.json",
30
- "buildWindows": "rmdir /s /q dist & tsc -p tsconfig.json"
31
- },
32
- "overrides": {
33
- "xlsx": {
34
- "sheetjs": "^2.0.0"
2
+ "name": "@cemiar/cemiarlink-sdk",
3
+ "version": "1.0.17",
4
+ "description": "CemiarLink SDK to access CemiarLink API services",
5
+ "engines": {
6
+ "npm": ">=9.5.1",
7
+ "node": ">=18.16.0"
8
+ },
9
+ "author": "Cemiar",
10
+ "license": "ISC",
11
+ "main": "dist/services/Admin.js",
12
+ "module": "./dist/services/Admin.mjs",
13
+ "types": "./dist/services/Admin.d.ts",
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "dependencies": {
18
+ "@types/nodemailer": "^7.0.11",
19
+ "axios": "^1.15.0",
20
+ "fs": "^0.0.1-security",
21
+ "nodemailer": "^7.0.11",
22
+ "path": "^0.12.7",
23
+ "xlsx": "^0.18.5"
24
+ },
25
+ "devDependencies": {
26
+ "ts-node": "^10.9.2"
27
+ },
28
+ "scripts": {
29
+ "build": "rm -rf dist/ && tsc -p tsconfig.json",
30
+ "buildWindows": "rmdir /s /q dist & tsc -p tsconfig.json"
31
+ },
32
+ "overrides": {
33
+ "xlsx": {
34
+ "sheetjs": "^2.0.0"
35
+ }
35
36
  }
36
- }
37
37
  }