plac-micro-common 1.3.57 → 1.3.59
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.
|
@@ -31,7 +31,7 @@ let AuthClientService = AuthClientService_1 = class AuthClientService {
|
|
|
31
31
|
headers: this.getHeaders(),
|
|
32
32
|
timeout: this.options.timeout_ms ?? 5000,
|
|
33
33
|
}));
|
|
34
|
-
return response.data;
|
|
34
|
+
return response.data?.data;
|
|
35
35
|
}
|
|
36
36
|
catch (error) {
|
|
37
37
|
this.handleError(error, `Failed to resolve user by id: ${userId}`);
|
|
@@ -45,7 +45,7 @@ let AuthClientService = AuthClientService_1 = class AuthClientService {
|
|
|
45
45
|
headers: this.getHeaders(),
|
|
46
46
|
timeout: this.options.timeout_ms ?? 5000,
|
|
47
47
|
}));
|
|
48
|
-
return response.data;
|
|
48
|
+
return response.data?.data;
|
|
49
49
|
}
|
|
50
50
|
catch (error) {
|
|
51
51
|
this.handleError(error, `Failed to resolve users by ids: ${ids.join(", ")}`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AddressType, AppDocumentType, ApplicationActionType, AppPhLaRelation, ContactType, Gender, IdentifierType } from "../../types";
|
|
1
|
+
import { AddressType, AppDocumentType, ApplicationActionType, AppPhLaRelation, ChannelType, ContactType, Gender, IdentifierType, OrgType } from "../../types";
|
|
2
2
|
export declare function getGenderDesc(val: Gender): "Male" | "Female";
|
|
3
3
|
export declare function getAppPhLaRelationDesc(val: AppPhLaRelation): "PH = LA" | "PH != LA";
|
|
4
4
|
export declare function getIdentifierTypeDesc(val: IdentifierType): "Other" | "National ID" | "Passport" | "Birth Certificate" | "Tax ID" | "Company Registration";
|
|
@@ -6,3 +6,5 @@ export declare function getContactTypeDesc(val: ContactType): "Other" | "Phone N
|
|
|
6
6
|
export declare function getAddressTypeDesc(val: AddressType): "Other" | "Home" | "Work" | "Billing";
|
|
7
7
|
export declare function getAppDocumentTypeDesc(val: AppDocumentType): "Other" | "National ID" | "Passport" | "Application Form" | "Quotation Form" | "Claim Form";
|
|
8
8
|
export declare function getAppActionTypeDesc(val: ApplicationActionType): ApplicationActionType.Created | ApplicationActionType.DraftSaved | ApplicationActionType.Completed | ApplicationActionType.EditCompleted | ApplicationActionType.TakenForReview | ApplicationActionType.Assigned | ApplicationActionType.Unassigned | ApplicationActionType.DocumentRemoved | ApplicationActionType.DataUpdated | "Submit" | "Re-Submit" | "Approve" | "Reject" | "Request Edit" | "Request More Documents" | "Cancel" | "Transfer" | "Add Note" | "Upload Document";
|
|
9
|
+
export declare function getOrgTypeDesc(val: OrgType): "Internal" | "Bank" | "Micro Finance" | "Agency" | "Broker";
|
|
10
|
+
export declare function getChannelTypeDesc(val: ChannelType): "Other" | "Bank" | "Agency" | "Broker" | "Direct" | "Online" | "Partner" | "Telesales";
|
|
@@ -7,6 +7,8 @@ exports.getContactTypeDesc = getContactTypeDesc;
|
|
|
7
7
|
exports.getAddressTypeDesc = getAddressTypeDesc;
|
|
8
8
|
exports.getAppDocumentTypeDesc = getAppDocumentTypeDesc;
|
|
9
9
|
exports.getAppActionTypeDesc = getAppActionTypeDesc;
|
|
10
|
+
exports.getOrgTypeDesc = getOrgTypeDesc;
|
|
11
|
+
exports.getChannelTypeDesc = getChannelTypeDesc;
|
|
10
12
|
const types_1 = require("../../types");
|
|
11
13
|
function getGenderDesc(val) {
|
|
12
14
|
switch (val) {
|
|
@@ -120,3 +122,41 @@ function getAppActionTypeDesc(val) {
|
|
|
120
122
|
return val;
|
|
121
123
|
}
|
|
122
124
|
}
|
|
125
|
+
function getOrgTypeDesc(val) {
|
|
126
|
+
switch (val) {
|
|
127
|
+
case types_1.OrgType.Internal:
|
|
128
|
+
return "Internal";
|
|
129
|
+
case types_1.OrgType.Bank:
|
|
130
|
+
return "Bank";
|
|
131
|
+
case types_1.OrgType.MicroFinance:
|
|
132
|
+
return "Micro Finance";
|
|
133
|
+
case types_1.OrgType.Agency:
|
|
134
|
+
return "Agency";
|
|
135
|
+
case types_1.OrgType.Broker:
|
|
136
|
+
return "Broker";
|
|
137
|
+
default:
|
|
138
|
+
return val;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
function getChannelTypeDesc(val) {
|
|
142
|
+
switch (val) {
|
|
143
|
+
case types_1.ChannelType.Direct:
|
|
144
|
+
return "Direct";
|
|
145
|
+
case types_1.ChannelType.Agency:
|
|
146
|
+
return "Agency";
|
|
147
|
+
case types_1.ChannelType.Broker:
|
|
148
|
+
return "Broker";
|
|
149
|
+
case types_1.ChannelType.Bank:
|
|
150
|
+
return "Bank";
|
|
151
|
+
case types_1.ChannelType.Online:
|
|
152
|
+
return "Online";
|
|
153
|
+
case types_1.ChannelType.Partner:
|
|
154
|
+
return "Partner";
|
|
155
|
+
case types_1.ChannelType.Telesales:
|
|
156
|
+
return "Telesales";
|
|
157
|
+
case types_1.ChannelType.Other:
|
|
158
|
+
return "Other";
|
|
159
|
+
default:
|
|
160
|
+
return val;
|
|
161
|
+
}
|
|
162
|
+
}
|