sales-frontend-api 0.0.39 → 0.0.40

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/method.d.cts CHANGED
@@ -2,7 +2,7 @@ import * as axios from 'axios';
2
2
  import { AxiosRequestConfig, AxiosError } from 'axios';
3
3
  import { H as HttpClientAxios } from './http-client-axios-Cz6Oo35g.cjs';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
- import { UseQueryOptions } from '@tanstack/react-query';
5
+ import { UseQueryOptions, UseSuspenseQueryOptions, UseMutationOptions } from '@tanstack/react-query';
6
6
  import './header.types-duHbFvO0.cjs';
7
7
 
8
8
  interface Geo {
@@ -75,6 +75,22 @@ declare const getAddressMethod: ({ searchKeyword, config }: AddressSearchParam)
75
75
  * string[] 쿼리 키 배열
76
76
  */
77
77
  type CustomQueryOptions<QueryFnReturnType, SelectReturnType = QueryFnReturnType> = Omit<UseQueryOptions<QueryFnReturnType, AxiosError, SelectReturnType, string[]>, 'queryKey' | 'queryFn'>;
78
+ /**
79
+ * @description
80
+ * QueryFnReturnType QueryFn 실행시, 성공시 반환되는 데이터타입
81
+ * SelectReturnType Select 옵션으로 가공처리된 데이터타입
82
+ * AxiosError Axios 요청시 발생하는 에러타입
83
+ * string[] 쿼리 키 배열
84
+ */
85
+ type CustomSuspenseOptions<QueryFnReturnType, SelectReturnType = QueryFnReturnType> = Omit<UseSuspenseQueryOptions<QueryFnReturnType, AxiosError, SelectReturnType, string[]>, 'queryKey' | 'queryFn'>;
86
+ /**
87
+ * @description
88
+ * TVariables 뮤테이션 함수 실행시, 전달하는 변수타입
89
+ * TContext 뮤테이션 함수 실행시, 반환되어 onError/onSettled 로 전달되는 컨텍스트타입
90
+ * AxiosError 뮤테이션 함수 실행시, 전달되는 에러타입
91
+ * MutationFnReturnType 뮤테이션 함수 실행 성공시, 반환하는 데이터 타입
92
+ */
93
+ type CustomMutationOptions<MutationFnReturnType, TVariables = void, TContext = unknown> = Omit<UseMutationOptions<MutationFnReturnType, AxiosError, TVariables, TContext>, 'mutationFn'>;
78
94
  interface Pagination {
79
95
  /**
80
96
  * Format: int32
@@ -239,4 +255,4 @@ interface FpLoginResponseDto {
239
255
  */
240
256
  declare const postLoginMethod: (userId: number) => Promise<FpLoginResponseDto>;
241
257
 
242
- export { type Address, type AddressSearchDetailInputProps, type AddressSearchResultProps, type DspResponseOccupationListResponseDto, type DspResponseVehicleTypeListResponseDto, type FpLoginData, type FpLoginResponseDto, type FullAddress, type OccupationListRequestDto, type OccupationListResponseDto, type OccupationResponseDto, type SelectedAddressProps, type Step, type TestResponse, type VehicleTypeListResponseDto, type VehicleTypeResponseDto, getAddressMethod, getOccupationListMethod, getTestMethod, getVehicleListMethod, postLoginMethod, useSearchModalAddressQuery, useSearchOccupationQuery, useSearchVehicleQuery };
258
+ export { type Address, type AddressSearchDetailInputProps, type AddressSearchResultProps, type CustomMutationOptions, type CustomQueryOptions, type CustomSuspenseOptions, type DspResponseOccupationListResponseDto, type DspResponseVehicleTypeListResponseDto, type FpLoginData, type FpLoginResponseDto, type FullAddress, type OccupationListRequestDto, type OccupationListResponseDto, type OccupationResponseDto, type Pagination, type SelectedAddressProps, type Step, type TestResponse, type VehicleTypeListResponseDto, type VehicleTypeResponseDto, getAddressMethod, getOccupationListMethod, getTestMethod, getVehicleListMethod, postLoginMethod, useSearchModalAddressQuery, useSearchOccupationQuery, useSearchVehicleQuery };
package/dist/method.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as axios from 'axios';
2
2
  import { AxiosRequestConfig, AxiosError } from 'axios';
3
3
  import { H as HttpClientAxios } from './http-client-axios-D4Ub9Xlb.js';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
- import { UseQueryOptions } from '@tanstack/react-query';
5
+ import { UseQueryOptions, UseSuspenseQueryOptions, UseMutationOptions } from '@tanstack/react-query';
6
6
  import './header.types-duHbFvO0.js';
7
7
 
8
8
  interface Geo {
@@ -75,6 +75,22 @@ declare const getAddressMethod: ({ searchKeyword, config }: AddressSearchParam)
75
75
  * string[] 쿼리 키 배열
76
76
  */
77
77
  type CustomQueryOptions<QueryFnReturnType, SelectReturnType = QueryFnReturnType> = Omit<UseQueryOptions<QueryFnReturnType, AxiosError, SelectReturnType, string[]>, 'queryKey' | 'queryFn'>;
78
+ /**
79
+ * @description
80
+ * QueryFnReturnType QueryFn 실행시, 성공시 반환되는 데이터타입
81
+ * SelectReturnType Select 옵션으로 가공처리된 데이터타입
82
+ * AxiosError Axios 요청시 발생하는 에러타입
83
+ * string[] 쿼리 키 배열
84
+ */
85
+ type CustomSuspenseOptions<QueryFnReturnType, SelectReturnType = QueryFnReturnType> = Omit<UseSuspenseQueryOptions<QueryFnReturnType, AxiosError, SelectReturnType, string[]>, 'queryKey' | 'queryFn'>;
86
+ /**
87
+ * @description
88
+ * TVariables 뮤테이션 함수 실행시, 전달하는 변수타입
89
+ * TContext 뮤테이션 함수 실행시, 반환되어 onError/onSettled 로 전달되는 컨텍스트타입
90
+ * AxiosError 뮤테이션 함수 실행시, 전달되는 에러타입
91
+ * MutationFnReturnType 뮤테이션 함수 실행 성공시, 반환하는 데이터 타입
92
+ */
93
+ type CustomMutationOptions<MutationFnReturnType, TVariables = void, TContext = unknown> = Omit<UseMutationOptions<MutationFnReturnType, AxiosError, TVariables, TContext>, 'mutationFn'>;
78
94
  interface Pagination {
79
95
  /**
80
96
  * Format: int32
@@ -239,4 +255,4 @@ interface FpLoginResponseDto {
239
255
  */
240
256
  declare const postLoginMethod: (userId: number) => Promise<FpLoginResponseDto>;
241
257
 
242
- export { type Address, type AddressSearchDetailInputProps, type AddressSearchResultProps, type DspResponseOccupationListResponseDto, type DspResponseVehicleTypeListResponseDto, type FpLoginData, type FpLoginResponseDto, type FullAddress, type OccupationListRequestDto, type OccupationListResponseDto, type OccupationResponseDto, type SelectedAddressProps, type Step, type TestResponse, type VehicleTypeListResponseDto, type VehicleTypeResponseDto, getAddressMethod, getOccupationListMethod, getTestMethod, getVehicleListMethod, postLoginMethod, useSearchModalAddressQuery, useSearchOccupationQuery, useSearchVehicleQuery };
258
+ export { type Address, type AddressSearchDetailInputProps, type AddressSearchResultProps, type CustomMutationOptions, type CustomQueryOptions, type CustomSuspenseOptions, type DspResponseOccupationListResponseDto, type DspResponseVehicleTypeListResponseDto, type FpLoginData, type FpLoginResponseDto, type FullAddress, type OccupationListRequestDto, type OccupationListResponseDto, type OccupationResponseDto, type Pagination, type SelectedAddressProps, type Step, type TestResponse, type VehicleTypeListResponseDto, type VehicleTypeResponseDto, getAddressMethod, getOccupationListMethod, getTestMethod, getVehicleListMethod, postLoginMethod, useSearchModalAddressQuery, useSearchOccupationQuery, useSearchVehicleQuery };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sales-frontend-api",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",
@@ -47,24 +47,24 @@
47
47
  "react": "^19.1.0",
48
48
  "tsup": "^8.4.0",
49
49
  "typescript": "5.8.2",
50
- "eslint-config-sales-frontend-eslint-config-v8": "^0.0.6",
51
- "sales-frontend-bridge": "0.0.23",
52
50
  "sales-frontend-stores": "0.0.3",
53
- "sales-frontend-design-system": "0.0.58",
51
+ "sales-frontend-design-system": "0.0.59",
52
+ "eslint-config-sales-frontend-eslint-config-v8": "^0.0.6",
54
53
  "sales-frontend-typescript-config": "0.0.2",
54
+ "sales-frontend-bridge": "0.0.24",
55
55
  "sales-frontend-utils": "0.0.10"
56
56
  },
57
57
  "dependencies": {
58
58
  "@tanstack/react-query": "^5.81.2",
59
59
  "axios": "^1.10.0",
60
60
  "zustand": "^5.0.6",
61
- "sales-frontend-debug": "0.0.3",
62
- "sales-frontend-utils": "0.0.10"
61
+ "sales-frontend-utils": "0.0.10",
62
+ "sales-frontend-debug": "0.0.3"
63
63
  },
64
64
  "peerDependencies": {
65
- "sales-frontend-bridge": "0.0.23",
66
- "sales-frontend-design-system": "0.0.58",
67
- "sales-frontend-stores": "0.0.3"
65
+ "sales-frontend-stores": "0.0.3",
66
+ "sales-frontend-design-system": "0.0.59",
67
+ "sales-frontend-bridge": "0.0.24"
68
68
  },
69
69
  "scripts": {
70
70
  "lint": "eslint . --max-warnings 0",