@cemiar/cemiarlink-sdk 1.0.48 → 1.0.50

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.
@@ -1,3 +1,4 @@
1
+ import { DeepPartial } from '../../utils/DeepPartial';
1
2
  import { Address } from './Address';
2
3
  export declare enum CertificateGetType {
3
4
  CertificateID = 0,
@@ -28,8 +29,8 @@ export interface CertificateFilter {
28
29
  SearchType: CertificateGetType;
29
30
  FilterType: CertificateFilterType;
30
31
  ComparisonType: CertificateComparisonType;
31
- FilterField1?: string;
32
- FilterField2?: string;
32
+ FilterField1: string;
33
+ FilterField2: string;
33
34
  }
34
35
  export interface CertificateHolderFilter {
35
36
  ID: number;
@@ -40,10 +41,11 @@ export interface Certificate {
40
41
  Address: Address;
41
42
  CertificateID: number;
42
43
  Name: string;
44
+ Title: string;
43
45
  Type: string;
44
46
  Timestamp: string | null;
45
47
  }
46
- export type CreateCertificate = Partial<Omit<Certificate, 'CertificateID' | 'Timestamp'>>;
48
+ export type CreateCertificate = DeepPartial<Omit<Certificate, 'CertificateID' | 'Timestamp'>>;
47
49
  export interface HolderAttachment {
48
50
  AttachmentID: number;
49
51
  AttachmentValue: HolderAttachmentItem;
@@ -114,6 +116,7 @@ export interface LiabilityHolderDetails {
114
116
  SubrogationWaivedOnWorkersCompensationEmployeeLiability: boolean;
115
117
  }
116
118
  export interface LiabilityHolderTemplate {
119
+ Address: Address;
117
120
  AutomobileLiabilityID: number | null;
118
121
  DistributeVia: string;
119
122
  EmailRecipientItems: any;
@@ -149,7 +152,7 @@ export interface LiabilityCertificateHolder {
149
152
  TemplateValue: LiabilityHolderTemplate;
150
153
  Timestamp: string | null;
151
154
  }
152
- export type CreateLiabilityCertificateHolder = Partial<Omit<LiabilityCertificateHolder, 'HolderID' | 'Timestamp'>>;
155
+ export type CreateLiabilityCertificateHolder = DeepPartial<Omit<LiabilityCertificateHolder, 'HolderID' | 'Timestamp'>>;
153
156
  export interface PropertyCertificateHolder {
154
157
  CertificateID: number;
155
158
  HolderID: number;
@@ -160,4 +163,4 @@ export interface PropertyCertificateHolder {
160
163
  SpecialConditionsOtherCoveragesValue: any;
161
164
  Timestamp: string | null;
162
165
  }
163
- export type CreatePropertyCertificateHolder = Partial<Omit<PropertyCertificateHolder, 'HolderID' | 'Timestamp'>>;
166
+ export type CreatePropertyCertificateHolder = DeepPartial<Omit<PropertyCertificateHolder, 'HolderID' | 'Timestamp'>>;
@@ -2,9 +2,9 @@ import { OptionType } from './OptionType';
2
2
  export interface CriteriaValue {
3
3
  AllSelectedOption: OptionType;
4
4
  Inactive: boolean;
5
- SelectedItems: CriteraSelectedItem[];
5
+ SelectedItems: CriteriaSelectedItem[];
6
6
  }
7
- export interface CriteraSelectedItem {
7
+ export interface CriteriaSelectedItem {
8
8
  Code: string;
9
9
  Name: string;
10
10
  }
@@ -10,6 +10,7 @@ export declare class DirectBillCommissionEpicService extends BaseEpicService {
10
10
  readonly asyncUrl: string;
11
11
  getItem(id: number): Promise<DirectBillCommission>;
12
12
  getList(queryParams: DirectBillCommissionFilter): Promise<DirectBillCommission[]>;
13
+ getListAsync(request: CallbackRequest<DirectBillCommissionFilter>): Promise<string | string[]>;
13
14
  update(id: number, payload: Partial<DirectBillCommission>): Promise<string>;
14
15
  updateAsync(id: number, request: CallbackRequest<Partial<DirectBillCommission>>): Promise<string>;
15
16
  }
@@ -18,6 +18,9 @@ class DirectBillCommissionEpicService extends BaseEpicService_1.BaseEpicService
18
18
  async getList(queryParams) {
19
19
  return this.get(this.baseUrl, queryParams);
20
20
  }
21
+ async getListAsync(request) {
22
+ return this.post(`${this.asyncUrl}/list`, request);
23
+ }
21
24
  async update(id, payload) {
22
25
  return await this.put(`${this.baseUrl}/${id}`, payload);
23
26
  }
@@ -7,7 +7,8 @@ const fs_1 = __importDefault(require("fs"));
7
7
  const xlsx_1 = __importDefault(require("xlsx"));
8
8
  class readXlsx {
9
9
  static async getFromXLSX(path, sheetNumber) {
10
- var _a, _b;
10
+ var _a;
11
+ var _b;
11
12
  const file = xlsx_1.default.readFile(path);
12
13
  const worksheet = file.Sheets[file.SheetNames[sheetNumber]];
13
14
  if (!worksheet) {
package/package.json CHANGED
@@ -1,30 +1,30 @@
1
- {
2
- "name": "@cemiar/cemiarlink-sdk",
3
- "version": "1.0.48",
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/index.js",
12
- "module": "./dist/index.mjs",
13
- "types": "./dist/index.d.ts",
14
- "files": [
15
- "dist"
16
- ],
17
- "dependencies": {
18
- "axios": "^1.18.0",
19
- "nodemailer": "^9.0.1",
20
- "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
21
- },
22
- "devDependencies": {
23
- "@types/node": "^18.19.0",
24
- "@types/nodemailer": "^8.0.1"
25
- },
26
- "scripts": {
27
- "build": "rm -rf dist/ && tsc -p tsconfig.json",
28
- "buildWindows": "rmdir /s /q dist & tsc -p tsconfig.json"
29
- }
30
- }
1
+ {
2
+ "name": "@cemiar/cemiarlink-sdk",
3
+ "version": "1.0.50",
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/index.js",
12
+ "module": "./dist/index.mjs",
13
+ "types": "./dist/index.d.ts",
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "dependencies": {
18
+ "axios": "^1.18.0",
19
+ "nodemailer": "^9.0.1",
20
+ "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
21
+ },
22
+ "devDependencies": {
23
+ "@types/node": "^18.19.0",
24
+ "@types/nodemailer": "^8.0.1"
25
+ },
26
+ "scripts": {
27
+ "build": "rm -rf dist/ && tsc -p tsconfig.json",
28
+ "buildWindows": "rmdir /s /q dist & tsc -p tsconfig.json"
29
+ }
30
+ }