simpleloan_api 1.1.23 → 1.1.25

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.mts CHANGED
@@ -315,6 +315,33 @@ type Brokerclient = {
315
315
  staff_ids: number[];
316
316
  };
317
317
 
318
+ type ChatmessageRoleUserMsg = 'admin' | 'user';
319
+ type ChatmessageThread = {
320
+ id: number;
321
+ title: string;
322
+ quantity: number;
323
+ latest_id: number;
324
+ latest_created_at: string;
325
+ latest_first_name: string;
326
+ latest_last_name: string;
327
+ latest_middle_name: string;
328
+ latest_short_message: string;
329
+ file: UploadedFile | null;
330
+ is_read: boolean;
331
+ role_user_msg: ChatmessageRoleUserMsg;
332
+ };
333
+ type Chatmessage = {
334
+ id: number;
335
+ created_at: string;
336
+ salespoint_id: number;
337
+ user_id: number;
338
+ message: string;
339
+ file: UploadedFile | null;
340
+ is_read: boolean;
341
+ role_user_msg: ChatmessageRoleUserMsg;
342
+ username: string;
343
+ };
344
+
318
345
  type CustomerMeta = {
319
346
  id: string;
320
347
  status: string | 'new';
@@ -988,33 +1015,6 @@ declare const useDeleteStaffBrokerclient: () => {
988
1015
  }>): Promise<ApiResponse<Brokerclient> | null>;
989
1016
  };
990
1017
 
991
- type ChatmessageRoleUserMsg = 'admin' | 'user';
992
- type ChatmessageThread = {
993
- id: number;
994
- title: string;
995
- quantity: number;
996
- latest_id: number;
997
- latest_created_at: string;
998
- latest_first_name: string;
999
- latest_last_name: string;
1000
- latest_middle_name: string;
1001
- latest_short_message: string;
1002
- file: UploadedFile | null;
1003
- is_read: boolean;
1004
- role_user_msg: ChatmessageRoleUserMsg;
1005
- };
1006
- type Chatmessage = {
1007
- id: number;
1008
- created_at: string;
1009
- salespoint_id: number;
1010
- user_id: number;
1011
- message: string;
1012
- file: UploadedFile | null;
1013
- is_read: boolean;
1014
- role_user_msg: ChatmessageRoleUserMsg;
1015
- username: string;
1016
- };
1017
-
1018
1018
  type MessageUpdateBase = {
1019
1019
  message: string;
1020
1020
  file?: {
@@ -1038,19 +1038,23 @@ declare const useUpdateChatmessage: () => {
1038
1038
  declare const useGetChatmessageList: () => {
1039
1039
  readonly response: vue.Ref<ApiResponse<Chatmessage[]> | null>;
1040
1040
  readonly pending: vue.Ref<boolean>;
1041
- post(params?: PostParamsWithoutBody): Promise<ApiResponse<Chatmessage[]> | null>;
1041
+ post(params: PostParams<{
1042
+ salespoint_id: number;
1043
+ }>): Promise<ApiResponse<Chatmessage[]> | null>;
1042
1044
  };
1043
1045
  /** Получить список тредов в чате поддержки */
1044
1046
  declare const useGetChatmessageThreads: () => {
1045
- readonly response: vue.Ref<ApiResponse<ChatmessageThread> | null>;
1047
+ readonly response: vue.Ref<ApiResponse<ChatmessageThread[]> | null>;
1046
1048
  readonly pending: vue.Ref<boolean>;
1047
- post(params?: PostParamsWithoutBody): Promise<ApiResponse<ChatmessageThread> | null>;
1049
+ post(params?: PostParamsWithoutBody): Promise<ApiResponse<ChatmessageThread[]> | null>;
1048
1050
  };
1049
1051
  /** Отметить сообщение как прочитанное в чате поддержки */
1050
1052
  declare const useReadChatmessage: () => {
1051
- readonly response: vue.Ref<ApiResponse<ChatmessageThread> | null>;
1053
+ readonly response: vue.Ref<ApiResponse<Chatmessage> | null>;
1052
1054
  readonly pending: vue.Ref<boolean>;
1053
- post(params?: PostParamsWithoutBody): Promise<ApiResponse<ChatmessageThread> | null>;
1055
+ post(params: PostParams<{
1056
+ id: number;
1057
+ }>): Promise<ApiResponse<Chatmessage> | null>;
1054
1058
  };
1055
1059
  /** Удалить сообщение из чата поддержки */
1056
1060
  declare const useDeleteChatmessage: () => {
@@ -1331,4 +1335,4 @@ type Mode = 'development' | 'production';
1331
1335
  declare function setMode(newMode: Mode): void;
1332
1336
  declare function getMode(): Mode;
1333
1337
 
1334
- export { type Address, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type Alfabankbalance, type AlfabankbalanceOffer, type AlfabankbalanceOfferLoanParameters, type AlfabankbalanceScanState, type AlfabankbalanceStages, type Brokerclient, type Customer, type CustomerFields, type CustomerMeta, type CustomerUpdate, type Dict, type DictItem, type Login, type LoginResponse, type Mortgage, type MortgageBankAppStatus, type MortgageBankNames, type MortgageStages, type Rosbankdom, type RosbankdomOffer, type Salespoint, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type Sex, type UploadB64File, type UploadedFile, type User, getMode, setMode, useAccountCheckLogin, useAccountLogin, useAccountLogout, useAccountLogoutUser, useAccountRegister, useAccountResetPassword, useAccountResetPasswordConfirmNew, useAccountUpdatePassword, useAddGroupUser, useAddStaffBrokerclient, useAddStaffSalespoint, useAskAkbarsPrintforms, useCancelRosbankdom, useCloneAlfabankbalance, useCloneRosbankdom, useCloneSalespoint, useCloneUser, useConfirmRosbankdom, useDeleteAkbars, useDeleteAkbarsDepositScan, useDeleteAlfabankbalance, useDeleteAlfabankbalanceScans, useDeleteBrokerclient, useDeleteChatmessage, useDeleteCustomerList, useDeleteGroupUser, useDeleteRosbankdom, useDeleteSalespoint, useDeleteStaffBrokerclient, useDeleteStaffSalespoint, useDeleteUser, useGenerateAkbarsScansApplications, useGenerateAlfabankbalanceScansApplications, useGetAkbars, useGetAkbarsDeposit, useGetAkbarsDepositScanList, useGetAkbarsDict, useGetAkbarsList, useGetAkbarsPrintformList, useGetAlfabankbalance, useGetAlfabankbalanceDict, useGetAlfabankbalanceList, useGetAlfabankbalanceOffer, useGetBrokerclient, useGetBrokerclientList, useGetChatmessageList, useGetChatmessageThreads, useGetCustomer, useGetCustomerList, useGetRosbankdom, useGetRosbankdomDict, useGetRosbankdomList, useGetRosbankdomPrintformsList, useGetSalespoint, useGetSalespointList, useGetUser, useGetUserList, useLoanerApprovingAkbarsStatus, usePreapprovalAlfabankbalanceStatus, usePreapprovalRosbankdomStatus, useProcessingAkbars, useReadChatmessage, useRosbankdomOpportunity, useSendAkbars, useSendAkbarsDeposit, useSendAkbarsScans, useSendAlfabankbalance, useSendAlfabankbalanceScans, useSendRosbankdom, useSendRosbankdomScans, useStatusManuallyAlfabankbalanceScans, useUpdateAkbars, useUpdateAkbarsDeposit, useUpdateAlfabankbalance, useUpdateBrokerclient, useUpdateChatmessage, useUpdateCustomer, useUpdateManySalespoint, useUpdateManyUser, useUpdateRosbankdom, useUpdateSalespoint, useUpdateUser, useUploadAkbarsDepositScan, useVerifyManuallyAlfabankbalanceScans };
1338
+ export { type Address, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type Alfabankbalance, type AlfabankbalanceOffer, type AlfabankbalanceOfferLoanParameters, type AlfabankbalanceScanState, type AlfabankbalanceStages, type Brokerclient, type Chatmessage, type ChatmessageRoleUserMsg, type ChatmessageThread, type Customer, type CustomerFields, type CustomerMeta, type CustomerUpdate, type Dict, type DictItem, type Login, type LoginResponse, type Mortgage, type MortgageBankAppStatus, type MortgageBankNames, type MortgageStages, type Rosbankdom, type RosbankdomOffer, type Salespoint, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type Sex, type UploadB64File, type UploadedFile, type User, getMode, setMode, useAccountCheckLogin, useAccountLogin, useAccountLogout, useAccountLogoutUser, useAccountRegister, useAccountResetPassword, useAccountResetPasswordConfirmNew, useAccountUpdatePassword, useAddGroupUser, useAddStaffBrokerclient, useAddStaffSalespoint, useAskAkbarsPrintforms, useCancelRosbankdom, useCloneAlfabankbalance, useCloneRosbankdom, useCloneSalespoint, useCloneUser, useConfirmRosbankdom, useDeleteAkbars, useDeleteAkbarsDepositScan, useDeleteAlfabankbalance, useDeleteAlfabankbalanceScans, useDeleteBrokerclient, useDeleteChatmessage, useDeleteCustomerList, useDeleteGroupUser, useDeleteRosbankdom, useDeleteSalespoint, useDeleteStaffBrokerclient, useDeleteStaffSalespoint, useDeleteUser, useGenerateAkbarsScansApplications, useGenerateAlfabankbalanceScansApplications, useGetAkbars, useGetAkbarsDeposit, useGetAkbarsDepositScanList, useGetAkbarsDict, useGetAkbarsList, useGetAkbarsPrintformList, useGetAlfabankbalance, useGetAlfabankbalanceDict, useGetAlfabankbalanceList, useGetAlfabankbalanceOffer, useGetBrokerclient, useGetBrokerclientList, useGetChatmessageList, useGetChatmessageThreads, useGetCustomer, useGetCustomerList, useGetRosbankdom, useGetRosbankdomDict, useGetRosbankdomList, useGetRosbankdomPrintformsList, useGetSalespoint, useGetSalespointList, useGetUser, useGetUserList, useLoanerApprovingAkbarsStatus, usePreapprovalAlfabankbalanceStatus, usePreapprovalRosbankdomStatus, useProcessingAkbars, useReadChatmessage, useRosbankdomOpportunity, useSendAkbars, useSendAkbarsDeposit, useSendAkbarsScans, useSendAlfabankbalance, useSendAlfabankbalanceScans, useSendRosbankdom, useSendRosbankdomScans, useStatusManuallyAlfabankbalanceScans, useUpdateAkbars, useUpdateAkbarsDeposit, useUpdateAlfabankbalance, useUpdateBrokerclient, useUpdateChatmessage, useUpdateCustomer, useUpdateManySalespoint, useUpdateManyUser, useUpdateRosbankdom, useUpdateSalespoint, useUpdateUser, useUploadAkbarsDepositScan, useVerifyManuallyAlfabankbalanceScans };
package/dist/index.d.ts CHANGED
@@ -315,6 +315,33 @@ type Brokerclient = {
315
315
  staff_ids: number[];
316
316
  };
317
317
 
318
+ type ChatmessageRoleUserMsg = 'admin' | 'user';
319
+ type ChatmessageThread = {
320
+ id: number;
321
+ title: string;
322
+ quantity: number;
323
+ latest_id: number;
324
+ latest_created_at: string;
325
+ latest_first_name: string;
326
+ latest_last_name: string;
327
+ latest_middle_name: string;
328
+ latest_short_message: string;
329
+ file: UploadedFile | null;
330
+ is_read: boolean;
331
+ role_user_msg: ChatmessageRoleUserMsg;
332
+ };
333
+ type Chatmessage = {
334
+ id: number;
335
+ created_at: string;
336
+ salespoint_id: number;
337
+ user_id: number;
338
+ message: string;
339
+ file: UploadedFile | null;
340
+ is_read: boolean;
341
+ role_user_msg: ChatmessageRoleUserMsg;
342
+ username: string;
343
+ };
344
+
318
345
  type CustomerMeta = {
319
346
  id: string;
320
347
  status: string | 'new';
@@ -988,33 +1015,6 @@ declare const useDeleteStaffBrokerclient: () => {
988
1015
  }>): Promise<ApiResponse<Brokerclient> | null>;
989
1016
  };
990
1017
 
991
- type ChatmessageRoleUserMsg = 'admin' | 'user';
992
- type ChatmessageThread = {
993
- id: number;
994
- title: string;
995
- quantity: number;
996
- latest_id: number;
997
- latest_created_at: string;
998
- latest_first_name: string;
999
- latest_last_name: string;
1000
- latest_middle_name: string;
1001
- latest_short_message: string;
1002
- file: UploadedFile | null;
1003
- is_read: boolean;
1004
- role_user_msg: ChatmessageRoleUserMsg;
1005
- };
1006
- type Chatmessage = {
1007
- id: number;
1008
- created_at: string;
1009
- salespoint_id: number;
1010
- user_id: number;
1011
- message: string;
1012
- file: UploadedFile | null;
1013
- is_read: boolean;
1014
- role_user_msg: ChatmessageRoleUserMsg;
1015
- username: string;
1016
- };
1017
-
1018
1018
  type MessageUpdateBase = {
1019
1019
  message: string;
1020
1020
  file?: {
@@ -1038,19 +1038,23 @@ declare const useUpdateChatmessage: () => {
1038
1038
  declare const useGetChatmessageList: () => {
1039
1039
  readonly response: vue.Ref<ApiResponse<Chatmessage[]> | null>;
1040
1040
  readonly pending: vue.Ref<boolean>;
1041
- post(params?: PostParamsWithoutBody): Promise<ApiResponse<Chatmessage[]> | null>;
1041
+ post(params: PostParams<{
1042
+ salespoint_id: number;
1043
+ }>): Promise<ApiResponse<Chatmessage[]> | null>;
1042
1044
  };
1043
1045
  /** Получить список тредов в чате поддержки */
1044
1046
  declare const useGetChatmessageThreads: () => {
1045
- readonly response: vue.Ref<ApiResponse<ChatmessageThread> | null>;
1047
+ readonly response: vue.Ref<ApiResponse<ChatmessageThread[]> | null>;
1046
1048
  readonly pending: vue.Ref<boolean>;
1047
- post(params?: PostParamsWithoutBody): Promise<ApiResponse<ChatmessageThread> | null>;
1049
+ post(params?: PostParamsWithoutBody): Promise<ApiResponse<ChatmessageThread[]> | null>;
1048
1050
  };
1049
1051
  /** Отметить сообщение как прочитанное в чате поддержки */
1050
1052
  declare const useReadChatmessage: () => {
1051
- readonly response: vue.Ref<ApiResponse<ChatmessageThread> | null>;
1053
+ readonly response: vue.Ref<ApiResponse<Chatmessage> | null>;
1052
1054
  readonly pending: vue.Ref<boolean>;
1053
- post(params?: PostParamsWithoutBody): Promise<ApiResponse<ChatmessageThread> | null>;
1055
+ post(params: PostParams<{
1056
+ id: number;
1057
+ }>): Promise<ApiResponse<Chatmessage> | null>;
1054
1058
  };
1055
1059
  /** Удалить сообщение из чата поддержки */
1056
1060
  declare const useDeleteChatmessage: () => {
@@ -1331,4 +1335,4 @@ type Mode = 'development' | 'production';
1331
1335
  declare function setMode(newMode: Mode): void;
1332
1336
  declare function getMode(): Mode;
1333
1337
 
1334
- export { type Address, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type Alfabankbalance, type AlfabankbalanceOffer, type AlfabankbalanceOfferLoanParameters, type AlfabankbalanceScanState, type AlfabankbalanceStages, type Brokerclient, type Customer, type CustomerFields, type CustomerMeta, type CustomerUpdate, type Dict, type DictItem, type Login, type LoginResponse, type Mortgage, type MortgageBankAppStatus, type MortgageBankNames, type MortgageStages, type Rosbankdom, type RosbankdomOffer, type Salespoint, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type Sex, type UploadB64File, type UploadedFile, type User, getMode, setMode, useAccountCheckLogin, useAccountLogin, useAccountLogout, useAccountLogoutUser, useAccountRegister, useAccountResetPassword, useAccountResetPasswordConfirmNew, useAccountUpdatePassword, useAddGroupUser, useAddStaffBrokerclient, useAddStaffSalespoint, useAskAkbarsPrintforms, useCancelRosbankdom, useCloneAlfabankbalance, useCloneRosbankdom, useCloneSalespoint, useCloneUser, useConfirmRosbankdom, useDeleteAkbars, useDeleteAkbarsDepositScan, useDeleteAlfabankbalance, useDeleteAlfabankbalanceScans, useDeleteBrokerclient, useDeleteChatmessage, useDeleteCustomerList, useDeleteGroupUser, useDeleteRosbankdom, useDeleteSalespoint, useDeleteStaffBrokerclient, useDeleteStaffSalespoint, useDeleteUser, useGenerateAkbarsScansApplications, useGenerateAlfabankbalanceScansApplications, useGetAkbars, useGetAkbarsDeposit, useGetAkbarsDepositScanList, useGetAkbarsDict, useGetAkbarsList, useGetAkbarsPrintformList, useGetAlfabankbalance, useGetAlfabankbalanceDict, useGetAlfabankbalanceList, useGetAlfabankbalanceOffer, useGetBrokerclient, useGetBrokerclientList, useGetChatmessageList, useGetChatmessageThreads, useGetCustomer, useGetCustomerList, useGetRosbankdom, useGetRosbankdomDict, useGetRosbankdomList, useGetRosbankdomPrintformsList, useGetSalespoint, useGetSalespointList, useGetUser, useGetUserList, useLoanerApprovingAkbarsStatus, usePreapprovalAlfabankbalanceStatus, usePreapprovalRosbankdomStatus, useProcessingAkbars, useReadChatmessage, useRosbankdomOpportunity, useSendAkbars, useSendAkbarsDeposit, useSendAkbarsScans, useSendAlfabankbalance, useSendAlfabankbalanceScans, useSendRosbankdom, useSendRosbankdomScans, useStatusManuallyAlfabankbalanceScans, useUpdateAkbars, useUpdateAkbarsDeposit, useUpdateAlfabankbalance, useUpdateBrokerclient, useUpdateChatmessage, useUpdateCustomer, useUpdateManySalespoint, useUpdateManyUser, useUpdateRosbankdom, useUpdateSalespoint, useUpdateUser, useUploadAkbarsDepositScan, useVerifyManuallyAlfabankbalanceScans };
1338
+ export { type Address, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type Alfabankbalance, type AlfabankbalanceOffer, type AlfabankbalanceOfferLoanParameters, type AlfabankbalanceScanState, type AlfabankbalanceStages, type Brokerclient, type Chatmessage, type ChatmessageRoleUserMsg, type ChatmessageThread, type Customer, type CustomerFields, type CustomerMeta, type CustomerUpdate, type Dict, type DictItem, type Login, type LoginResponse, type Mortgage, type MortgageBankAppStatus, type MortgageBankNames, type MortgageStages, type Rosbankdom, type RosbankdomOffer, type Salespoint, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type Sex, type UploadB64File, type UploadedFile, type User, getMode, setMode, useAccountCheckLogin, useAccountLogin, useAccountLogout, useAccountLogoutUser, useAccountRegister, useAccountResetPassword, useAccountResetPasswordConfirmNew, useAccountUpdatePassword, useAddGroupUser, useAddStaffBrokerclient, useAddStaffSalespoint, useAskAkbarsPrintforms, useCancelRosbankdom, useCloneAlfabankbalance, useCloneRosbankdom, useCloneSalespoint, useCloneUser, useConfirmRosbankdom, useDeleteAkbars, useDeleteAkbarsDepositScan, useDeleteAlfabankbalance, useDeleteAlfabankbalanceScans, useDeleteBrokerclient, useDeleteChatmessage, useDeleteCustomerList, useDeleteGroupUser, useDeleteRosbankdom, useDeleteSalespoint, useDeleteStaffBrokerclient, useDeleteStaffSalespoint, useDeleteUser, useGenerateAkbarsScansApplications, useGenerateAlfabankbalanceScansApplications, useGetAkbars, useGetAkbarsDeposit, useGetAkbarsDepositScanList, useGetAkbarsDict, useGetAkbarsList, useGetAkbarsPrintformList, useGetAlfabankbalance, useGetAlfabankbalanceDict, useGetAlfabankbalanceList, useGetAlfabankbalanceOffer, useGetBrokerclient, useGetBrokerclientList, useGetChatmessageList, useGetChatmessageThreads, useGetCustomer, useGetCustomerList, useGetRosbankdom, useGetRosbankdomDict, useGetRosbankdomList, useGetRosbankdomPrintformsList, useGetSalespoint, useGetSalespointList, useGetUser, useGetUserList, useLoanerApprovingAkbarsStatus, usePreapprovalAlfabankbalanceStatus, usePreapprovalRosbankdomStatus, useProcessingAkbars, useReadChatmessage, useRosbankdomOpportunity, useSendAkbars, useSendAkbarsDeposit, useSendAkbarsScans, useSendAlfabankbalance, useSendAlfabankbalanceScans, useSendRosbankdom, useSendRosbankdomScans, useStatusManuallyAlfabankbalanceScans, useUpdateAkbars, useUpdateAkbarsDeposit, useUpdateAlfabankbalance, useUpdateBrokerclient, useUpdateChatmessage, useUpdateCustomer, useUpdateManySalespoint, useUpdateManyUser, useUpdateRosbankdom, useUpdateSalespoint, useUpdateUser, useUploadAkbarsDepositScan, useVerifyManuallyAlfabankbalanceScans };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpleloan_api",
3
- "version": "1.1.23",
3
+ "version": "1.1.25",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",