@vendit-dev/thirdparty-adapters 0.4.0 → 0.4.1-beta.2
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/.github/PULL_REQUEST_TEMPLATE.md +16 -16
- package/lib/adapters/amanoKorea.d.ts +60 -60
- package/lib/adapters/amanoKorea.js +292 -292
- package/lib/adapters/sanhaWings.d.ts +179 -179
- package/lib/adapters/sanhaWings.js +841 -841
- package/lib/adapters/smartAccess.d.ts +109 -90
- package/lib/adapters/smartAccess.js +500 -465
- package/lib/adapters/themrIoT.d.ts +148 -148
- package/lib/adapters/themrIoT.js +301 -301
- package/lib/index.d.ts +5 -5
- package/lib/index.js +14 -14
- package/lib/types/amanoKorea.d.ts +124 -124
- package/lib/types/amanoKorea.js +2 -2
- package/lib/utils/mutex.d.ts +14 -14
- package/lib/utils/mutex.js +93 -93
- package/package.json +43 -43
- package/readme.md +4 -4
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
## PR 개요
|
|
2
|
-
|
|
3
|
-
- Jira Ticket: VENDIT-
|
|
4
|
-
- Notion Ticket link:
|
|
5
|
-
- 요약:
|
|
6
|
-
- 예상 PR 소요시간:
|
|
7
|
-
- 요청 리뷰어:
|
|
8
|
-
- 요청 PR Due Date:
|
|
9
|
-
|
|
10
|
-
## 변경사항 상세
|
|
11
|
-
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
## References
|
|
15
|
-
|
|
16
|
-
- 참고 문서, 스크린샷, 기타 자료 등등...
|
|
1
|
+
## PR 개요
|
|
2
|
+
|
|
3
|
+
- Jira Ticket: VENDIT-
|
|
4
|
+
- Notion Ticket link:
|
|
5
|
+
- 요약:
|
|
6
|
+
- 예상 PR 소요시간:
|
|
7
|
+
- 요청 리뷰어:
|
|
8
|
+
- 요청 PR Due Date:
|
|
9
|
+
|
|
10
|
+
## 변경사항 상세
|
|
11
|
+
|
|
12
|
+
-
|
|
13
|
+
|
|
14
|
+
## References
|
|
15
|
+
|
|
16
|
+
- 참고 문서, 스크린샷, 기타 자료 등등...
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { UserServiceGrpcCaller } from '@vendit-dev/utility-modules';
|
|
2
|
-
import { AmanoHttpResponse, DeletePreDiscountInfoInput, DeletePreDiscountInfoResponse, FeeCarSearchInput, GetFeeCarSearchResponse, GetPreDiscountListInfoResponse, InsertPreDiscountInfoInput, InsertPreDiscountInfoResponse, PreDiscountListInfoInput, UpdatePreDiscountInfoInput, UpdatePreDiscountInfoResponse } from '../types/amanoKorea';
|
|
3
|
-
import MutexLock from '../utils/mutex';
|
|
4
|
-
declare type VenditAmanoKoreaAuthInfo = {
|
|
5
|
-
scope: string;
|
|
6
|
-
credential: {
|
|
7
|
-
lotAreaNo: string;
|
|
8
|
-
registUserId: string;
|
|
9
|
-
password: string;
|
|
10
|
-
eqpmNo: string;
|
|
11
|
-
discCodeNo: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default class AmanoKoreaAdapter {
|
|
15
|
-
API_HOST: string;
|
|
16
|
-
API_PORT: number;
|
|
17
|
-
authenticator: UserServiceGrpcCaller;
|
|
18
|
-
redis: any;
|
|
19
|
-
PROVIDER_KEY: string;
|
|
20
|
-
mutexLock: MutexLock;
|
|
21
|
-
authorization: string;
|
|
22
|
-
dateFormat: string;
|
|
23
|
-
lotAreaNo: number;
|
|
24
|
-
discCodeNo: number;
|
|
25
|
-
constructor({ authenticator, redis, }: {
|
|
26
|
-
authenticator: UserServiceGrpcCaller;
|
|
27
|
-
redis: any;
|
|
28
|
-
});
|
|
29
|
-
parseJSONSafe: (str: string) => any | boolean;
|
|
30
|
-
static indexAccommodation: ({ accommodationId, }: {
|
|
31
|
-
accommodationId: string;
|
|
32
|
-
}) => string;
|
|
33
|
-
checkAmanoKoreaIntegration: ({ accommodationId, }: {
|
|
34
|
-
accommodationId: string;
|
|
35
|
-
}) => Promise<boolean>;
|
|
36
|
-
getAccommodationAuthInfo: ({ accommodationId, }: {
|
|
37
|
-
accommodationId: string;
|
|
38
|
-
}) => Promise<VenditAmanoKoreaAuthInfo | boolean>;
|
|
39
|
-
setAuthorization: ({ authorization }: {
|
|
40
|
-
authorization: string;
|
|
41
|
-
}) => void;
|
|
42
|
-
callAPI: <TRequestType, TReturnType extends AmanoHttpResponse<any> = AmanoHttpResponse<any>, TErrorType extends AmanoHttpResponse<any> = AmanoHttpResponse<any>>({ directory, resources, }: {
|
|
43
|
-
directory: string;
|
|
44
|
-
resources: TRequestType;
|
|
45
|
-
}) => Promise<TReturnType | TErrorType>;
|
|
46
|
-
getPreDiscountListInfo: (resources: PreDiscountListInfoInput) => Promise<AmanoHttpResponse<GetPreDiscountListInfoResponse>>;
|
|
47
|
-
insertPreDiscountInfo: ({ resources, }: {
|
|
48
|
-
resources: InsertPreDiscountInfoInput;
|
|
49
|
-
}) => Promise<AmanoHttpResponse<InsertPreDiscountInfoResponse>>;
|
|
50
|
-
updatePreDiscountInfo: ({ resources, }: {
|
|
51
|
-
resources: UpdatePreDiscountInfoInput;
|
|
52
|
-
}) => Promise<AmanoHttpResponse<UpdatePreDiscountInfoResponse>>;
|
|
53
|
-
deletePreDiscountInfo: ({ resources, }: {
|
|
54
|
-
resources: DeletePreDiscountInfoInput;
|
|
55
|
-
}) => Promise<AmanoHttpResponse<DeletePreDiscountInfoResponse>>;
|
|
56
|
-
getFeeCarSearch: ({ resources, }: {
|
|
57
|
-
resources: FeeCarSearchInput;
|
|
58
|
-
}) => Promise<AmanoHttpResponse<GetFeeCarSearchResponse>>;
|
|
59
|
-
}
|
|
60
|
-
export {};
|
|
1
|
+
import { UserServiceGrpcCaller } from '@vendit-dev/utility-modules';
|
|
2
|
+
import { AmanoHttpResponse, DeletePreDiscountInfoInput, DeletePreDiscountInfoResponse, FeeCarSearchInput, GetFeeCarSearchResponse, GetPreDiscountListInfoResponse, InsertPreDiscountInfoInput, InsertPreDiscountInfoResponse, PreDiscountListInfoInput, UpdatePreDiscountInfoInput, UpdatePreDiscountInfoResponse } from '../types/amanoKorea';
|
|
3
|
+
import MutexLock from '../utils/mutex';
|
|
4
|
+
declare type VenditAmanoKoreaAuthInfo = {
|
|
5
|
+
scope: string;
|
|
6
|
+
credential: {
|
|
7
|
+
lotAreaNo: string;
|
|
8
|
+
registUserId: string;
|
|
9
|
+
password: string;
|
|
10
|
+
eqpmNo: string;
|
|
11
|
+
discCodeNo: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default class AmanoKoreaAdapter {
|
|
15
|
+
API_HOST: string;
|
|
16
|
+
API_PORT: number;
|
|
17
|
+
authenticator: UserServiceGrpcCaller;
|
|
18
|
+
redis: any;
|
|
19
|
+
PROVIDER_KEY: string;
|
|
20
|
+
mutexLock: MutexLock;
|
|
21
|
+
authorization: string;
|
|
22
|
+
dateFormat: string;
|
|
23
|
+
lotAreaNo: number;
|
|
24
|
+
discCodeNo: number;
|
|
25
|
+
constructor({ authenticator, redis, }: {
|
|
26
|
+
authenticator: UserServiceGrpcCaller;
|
|
27
|
+
redis: any;
|
|
28
|
+
});
|
|
29
|
+
parseJSONSafe: (str: string) => any | boolean;
|
|
30
|
+
static indexAccommodation: ({ accommodationId, }: {
|
|
31
|
+
accommodationId: string;
|
|
32
|
+
}) => string;
|
|
33
|
+
checkAmanoKoreaIntegration: ({ accommodationId, }: {
|
|
34
|
+
accommodationId: string;
|
|
35
|
+
}) => Promise<boolean>;
|
|
36
|
+
getAccommodationAuthInfo: ({ accommodationId, }: {
|
|
37
|
+
accommodationId: string;
|
|
38
|
+
}) => Promise<VenditAmanoKoreaAuthInfo | boolean>;
|
|
39
|
+
setAuthorization: ({ authorization }: {
|
|
40
|
+
authorization: string;
|
|
41
|
+
}) => void;
|
|
42
|
+
callAPI: <TRequestType, TReturnType extends AmanoHttpResponse<any> = AmanoHttpResponse<any>, TErrorType extends AmanoHttpResponse<any> = AmanoHttpResponse<any>>({ directory, resources, }: {
|
|
43
|
+
directory: string;
|
|
44
|
+
resources: TRequestType;
|
|
45
|
+
}) => Promise<TReturnType | TErrorType>;
|
|
46
|
+
getPreDiscountListInfo: (resources: PreDiscountListInfoInput) => Promise<AmanoHttpResponse<GetPreDiscountListInfoResponse>>;
|
|
47
|
+
insertPreDiscountInfo: ({ resources, }: {
|
|
48
|
+
resources: InsertPreDiscountInfoInput;
|
|
49
|
+
}) => Promise<AmanoHttpResponse<InsertPreDiscountInfoResponse>>;
|
|
50
|
+
updatePreDiscountInfo: ({ resources, }: {
|
|
51
|
+
resources: UpdatePreDiscountInfoInput;
|
|
52
|
+
}) => Promise<AmanoHttpResponse<UpdatePreDiscountInfoResponse>>;
|
|
53
|
+
deletePreDiscountInfo: ({ resources, }: {
|
|
54
|
+
resources: DeletePreDiscountInfoInput;
|
|
55
|
+
}) => Promise<AmanoHttpResponse<DeletePreDiscountInfoResponse>>;
|
|
56
|
+
getFeeCarSearch: ({ resources, }: {
|
|
57
|
+
resources: FeeCarSearchInput;
|
|
58
|
+
}) => Promise<AmanoHttpResponse<GetFeeCarSearchResponse>>;
|
|
59
|
+
}
|
|
60
|
+
export {};
|