hl-core 0.0.10-beta.20 → 0.0.10-beta.22

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/api/base.api.ts CHANGED
@@ -182,7 +182,7 @@ export class ApiClass {
182
182
  async getContragent(queryData: Types.GetContragentRequest) {
183
183
  return await this.axiosCall<Types.GetContragentResponse>({
184
184
  method: Methods.GET,
185
- url: `/Ekk/api/Contragentinsis/Contragent?Iin=${queryData.iin}&FirstName=${queryData.firstName}&LastName=${queryData.lastName}&MiddleName=${queryData.middleName}`,
185
+ url: `/Ekk/api/Contragentinsis/Contragent?Iin=${queryData.iin}&FirstName=${queryData.firstName}&LastName=${queryData.lastName}&MiddleName=${queryData.middleName}&BirthDate=${queryData.birthDate ?? ''}`,
186
186
  });
187
187
  }
188
188
 
@@ -299,17 +299,6 @@ export class ApiClass {
299
299
  });
300
300
  }
301
301
 
302
- async getFile(id: string) {
303
- return await this.axiosCall({
304
- method: Methods.GET,
305
- url: `/File/api/Data/DownloadFile/${id}`,
306
- responseType: 'arraybuffer',
307
- headers: {
308
- 'Content-Type': 'application/pdf',
309
- },
310
- });
311
- }
312
-
313
302
  async getDicFileTypeList() {
314
303
  return await this.axiosCall<Value[]>({
315
304
  method: Methods.GET,
@@ -453,25 +442,6 @@ export class ApiClass {
453
442
  });
454
443
  }
455
444
 
456
- async deleteFile(data: any) {
457
- return await this.axiosCall<void>({
458
- method: Methods.POST,
459
- url: '/File/api/Data/DeleteFiles',
460
- data: data,
461
- });
462
- }
463
-
464
- async uploadFiles(data: any) {
465
- return await this.axiosCall({
466
- method: Methods.POST,
467
- url: '/File/api/Data/UploadFiles',
468
- headers: {
469
- 'Content-Type': 'multipart/form-data',
470
- },
471
- data: data,
472
- });
473
- }
474
-
475
445
  async sendTask(data: Types.SendTask) {
476
446
  return await this.axiosCall<void>({
477
447
  method: Methods.POST,
@@ -530,39 +500,6 @@ export class ApiClass {
530
500
  });
531
501
  }
532
502
 
533
- async signDocument(data: Types.SignDataType[]) {
534
- return await this.axiosCall<Types.SignUrlType[]>({
535
- method: Methods.POST,
536
- url: '/File/api/Document/SignBts',
537
- data: data,
538
- });
539
- }
540
-
541
- async signQR(data: Types.SignDataType[]) {
542
- return await this.axiosCall<Types.ResponseStructure<any>>({
543
- method: Methods.POST,
544
- url: '/File/api/Sign/SignQr',
545
- data: data,
546
- });
547
- }
548
-
549
- async generateDocument(data: Types.SignDataType) {
550
- return await this.axiosCall<void>({
551
- method: Methods.POST,
552
- url: '/File/api/Document/Generate',
553
- responseType: 'arraybuffer',
554
- data: data,
555
- });
556
- }
557
-
558
- async getSignedDocList(data: { processInstanceId: string | number }) {
559
- return await this.axiosCall<IDocument[]>({
560
- method: Methods.POST,
561
- url: '/File/api/Data/List',
562
- data: data,
563
- });
564
- }
565
-
566
503
  async calculateWithoutApplication(data: Types.RecalculationDataType, product: string | undefined | null = this.productUrl) {
567
504
  return await this.axiosCall<Types.RecalculationResponseType>({
568
505
  method: Methods.POST,
@@ -966,30 +903,6 @@ export class ApiClass {
966
903
  });
967
904
  }
968
905
 
969
- async uploadXml(data: any) {
970
- return await this.axiosCall<void>({
971
- url: `/File/api/Document/UploadXml`,
972
- method: Methods.POST,
973
- data: data,
974
- });
975
- }
976
-
977
- async signXml(data: any) {
978
- return await this.axiosCall<Types.ResponseStructure<any>>({
979
- url: `/File/api/Sign/SignXml`,
980
- method: Methods.POST,
981
- data: data,
982
- });
983
- }
984
-
985
- async signBts(data: any) {
986
- return await this.axiosCall<Types.ResponseStructure<Types.SignUrlType[]>>({
987
- url: `/File/api/Sign/SignBts`,
988
- method: Methods.POST,
989
- data: data,
990
- });
991
- }
992
-
993
906
  async generateShortLink(data: Types.Api.GenerateShortLink.Request) {
994
907
  return await this.axiosCall<Types.Api.GenerateShortLink.Response>({
995
908
  url: '/notification/shorteners',
@@ -1038,28 +951,6 @@ export class ApiClass {
1038
951
  });
1039
952
  }
1040
953
 
1041
- async uploadDigitalCertifijcate(data: any) {
1042
- return await this.axiosCall<any>({
1043
- method: Methods.POST,
1044
- url: '/File/api/Document/UploadDigitalCertifijcate',
1045
- headers: {
1046
- 'Content-Type': 'multipart/form-data',
1047
- },
1048
- data: data,
1049
- });
1050
- }
1051
-
1052
- async uploadDigitalCertificatePensionAnnuityNew(data: any) {
1053
- return await this.axiosCall<any>({
1054
- method: Methods.POST,
1055
- url: '/File/api/Document/UploadDigitalCertificatePensionAnnuityNew',
1056
- headers: {
1057
- 'Content-Type': 'multipart/form-data',
1058
- },
1059
- data: data,
1060
- });
1061
- }
1062
-
1063
954
  async startRejectedApplication(data: any) {
1064
955
  return await this.axiosCall({
1065
956
  method: Methods.POST,
@@ -1068,13 +959,6 @@ export class ApiClass {
1068
959
  });
1069
960
  }
1070
961
 
1071
- async getDocumentsByEdsXmlId(edsXmlId: string) {
1072
- return await this.axiosCall<Types.ResponseStructure<any>>({
1073
- method: Methods.GET,
1074
- url: `/File/api/Sign/GetDocumentsByEdsXmlId/${edsXmlId}`,
1075
- });
1076
- }
1077
-
1078
962
  async checkSign(id: string) {
1079
963
  return await this.axiosCall<Types.SignedState>({
1080
964
  method: Methods.POST,
@@ -1091,23 +975,23 @@ export class ApiClass {
1091
975
  });
1092
976
  }
1093
977
 
1094
- async getEnpfRedirectUrl(id: string) {
1095
- return await this.axiosCall<{ redirectUrl: string }>({
1096
- method: Methods.POST,
1097
- // TODO
1098
- baseURL: 'https://products.halyklife.kz/test/efo/api',
1099
- url: `/pensionannuityNew/GetEnpfRedirectUrl?id=${id}`,
1100
- });
1101
- }
1102
-
1103
- async setEnpfSharedId(sharedId: string, infoId: string) {
1104
- return await this.axiosCall<void>({
1105
- method: Methods.POST,
1106
- // TODO
1107
- baseURL: 'https://products.halyklife.kz/test/efo/api',
1108
- url: `/pensionannuityNew/SetEnpfSharedId/${sharedId}/${infoId}`,
1109
- });
1110
- }
978
+ pensionannuityNew = {
979
+ base: '/pensionannuityNew',
980
+ getEnpfRedirectUrl: async (id: string) => {
981
+ return await this.axiosCall<{ redirectUrl: string }>({
982
+ method: Methods.POST,
983
+ baseURL: getStrValuePerEnv('efoBaseApi'),
984
+ url: `${this.pensionannuityNew.base}/GetEnpfRedirectUrl?id=${id}`,
985
+ });
986
+ },
987
+ setEnpfSharedId: async (sharedId: string, infoId: string) => {
988
+ return await this.axiosCall<void>({
989
+ method: Methods.POST,
990
+ baseURL: getStrValuePerEnv('efoBaseApi'),
991
+ url: `${this.pensionannuityNew.base}/SetEnpfSharedId/${sharedId}/${infoId}`,
992
+ });
993
+ },
994
+ };
1111
995
 
1112
996
  externalServices = {
1113
997
  base: '/externalservices',
@@ -1126,4 +1010,126 @@ export class ApiClass {
1126
1010
  });
1127
1011
  },
1128
1012
  };
1013
+
1014
+ file = {
1015
+ base: '/File',
1016
+ uploadFilesNew: async (groupId: string, data: any) => {
1017
+ return await this.axiosCall({
1018
+ method: Methods.POST,
1019
+ url: `${this.file.base}/api/GeneralSign/UploadPaper/${groupId}`,
1020
+ headers: {
1021
+ 'Content-Type': 'multipart/form-data',
1022
+ },
1023
+ data: data,
1024
+ });
1025
+ },
1026
+ generalGetFile: async (groupId: string, documentSignType: number) => {
1027
+ return await this.axiosCall<any>({
1028
+ method: Methods.GET,
1029
+ url: `${this.file.base}/api/GeneralSign/Group/${groupId}/${documentSignType} `,
1030
+ responseType: documentSignType === 5 ? 'json' : 'arraybuffer',
1031
+ });
1032
+ },
1033
+ generalSign: async (data: Types.Api.Sign.New.GeneralResponse) => {
1034
+ return await this.axiosCall<Types.Api.Sign.New.Response>({
1035
+ method: Methods.POST,
1036
+ url: `${this.file.base}/api/GeneralSign/Sign`,
1037
+ data: data,
1038
+ });
1039
+ },
1040
+ generateSign: async (data: Types.Api.Sign.New.Request) => {
1041
+ return await this.axiosCall<Types.Api.Sign.New.GeneralResponse[]>({
1042
+ method: Methods.POST,
1043
+ url: `${this.file.base}/api/GeneralSign/GenerateSign`,
1044
+ data: data,
1045
+ });
1046
+ },
1047
+ uploadDigitalCertificateNca: async (groupId: string, data: any) => {
1048
+ return await this.axiosCall<void>({
1049
+ method: Methods.POST,
1050
+ url: `${this.file.base}/api/GeneralSign/UploadNClayer/${groupId}`,
1051
+ headers: {
1052
+ 'Content-Type': 'multipart/form-data',
1053
+ },
1054
+ data: data,
1055
+ });
1056
+ },
1057
+ uploadXml: async (data: any) => {
1058
+ return await this.axiosCall<void>({
1059
+ url: `${this.file.base}/api/GeneralSign/UploadXml`,
1060
+ method: Methods.POST,
1061
+ data: data,
1062
+ });
1063
+ },
1064
+ signXml: async (data: any) => {
1065
+ return await this.axiosCall<Types.ResponseStructure<any>>({
1066
+ url: `${this.file.base}/api/Sign/SignXml`,
1067
+ method: Methods.POST,
1068
+ data: data,
1069
+ });
1070
+ },
1071
+ signBts: async (data: any) => {
1072
+ return await this.axiosCall<Types.ResponseStructure<Types.SignUrlType[]>>({
1073
+ url: `${this.file.base}/api/Sign/SignBts`,
1074
+ method: Methods.POST,
1075
+ data: data,
1076
+ });
1077
+ },
1078
+ getFile: async (id: string) => {
1079
+ return await this.axiosCall({
1080
+ method: Methods.GET,
1081
+ url: `${this.file.base}/api/Data/DownloadFile/${id}`,
1082
+ responseType: 'arraybuffer',
1083
+ headers: {
1084
+ 'Content-Type': 'application/pdf',
1085
+ },
1086
+ });
1087
+ },
1088
+ deleteFile: async (data: any) => {
1089
+ return await this.axiosCall<void>({
1090
+ method: Methods.POST,
1091
+ url: `${this.file.base}/api/Data/DeleteFiles`,
1092
+ data: data,
1093
+ });
1094
+ },
1095
+ uploadFiles: async (data: any) => {
1096
+ return await this.axiosCall({
1097
+ method: Methods.POST,
1098
+ url: `${this.file.base}/api/Data/UploadFiles`,
1099
+ headers: {
1100
+ 'Content-Type': 'multipart/form-data',
1101
+ },
1102
+ data: data,
1103
+ });
1104
+ },
1105
+ signDocument: async (data: Types.SignDataType[]) => {
1106
+ return await this.axiosCall<Types.SignUrlType[]>({
1107
+ method: Methods.POST,
1108
+ url: `${this.file.base}/api/Document/SignBts`,
1109
+ data: data,
1110
+ });
1111
+ },
1112
+ signQR: async (data: Types.SignDataType[]) => {
1113
+ return await this.axiosCall<Types.ResponseStructure<any>>({
1114
+ method: Methods.POST,
1115
+ url: `${this.file.base}/api/Sign/SignQr`,
1116
+ data: data,
1117
+ });
1118
+ },
1119
+ generateDocument: async (data: Types.SignDataType) => {
1120
+ return await this.axiosCall<void>({
1121
+ method: Methods.POST,
1122
+ url: `${this.file.base}/api/Document/Generate`,
1123
+ responseType: 'arraybuffer',
1124
+ data: data,
1125
+ });
1126
+ },
1127
+ getSignedDocList: async (data: { processInstanceId: string | number }) => {
1128
+ return await this.axiosCall<IDocument[]>({
1129
+ method: Methods.POST,
1130
+ url: `${this.file.base}/api/Data/List`,
1131
+ data: data,
1132
+ });
1133
+ },
1134
+ };
1129
1135
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <v-dialog class="base-dialog" :model-value="Boolean(modelValue)" @update:modelValue="$emit('update:modelValue', $event)" :persistent="true">
2
+ <v-dialog class="base-dialog" :model-value="Boolean(modelValue)" @update:modelValue="$emit('update:modelValue', $event)" :persistent="persistent">
3
3
  <v-card class="self-center w-full sm:w-4/4 md:w-2/3 lg:w-[35%] xl:w-[500px] rounded-lg !p-[36px]">
4
4
  <div class="flex sm:flex-row flex-col place-items-center sm:place-items-start">
5
5
  <div class="h-20 w-20 place-items-start pt-1">
@@ -44,6 +44,10 @@ export default defineComponent({
44
44
  type: Boolean as PropType<boolean | null>,
45
45
  default: false,
46
46
  },
47
+ persistent: {
48
+ type: Boolean as PropType<boolean>,
49
+ default: true,
50
+ },
47
51
  title: {
48
52
  type: String,
49
53
  default() {
@@ -155,19 +155,16 @@ export default defineComponent({
155
155
  return isReadonly.value;
156
156
  });
157
157
  const isSaleChanellShown = computed(() => {
158
- if (dataStore.isGons) return dataStore.isServiceManager();
159
158
  return true;
160
159
  });
161
160
  const isRegionShown = computed(() => {
162
- if (dataStore.isGons) return dataStore.isServiceManager() || dataStore.isAgent();
163
161
  return true;
164
162
  });
165
163
  const isManagerShown = computed(() => {
166
- if (dataStore.isGons) return dataStore.isServiceManager();
167
164
  return true;
168
165
  });
169
166
  const isAgentShown = computed(() => {
170
- if (dataStore.isGons || dataStore.isPension) return dataStore.isServiceManager();
167
+ if (dataStore.isPension) return dataStore.isServiceManager();
171
168
  return true;
172
169
  });
173
170
  const openPanel = async (currentDict: ManagerAttachmentFiels, title: string) => {
@@ -150,6 +150,8 @@ export default defineComponent({
150
150
  border: 1px solid #dadada;
151
151
  box-shadow: none;
152
152
  font-size: 14px;
153
+ padding-top: 6px;
154
+ padding-bottom: 4px;
153
155
  }
154
156
  .rounded-select .v-field--error {
155
157
  border-color: #ff5449;