Skip to content

Commit

Permalink
fix: delete duplicates in cleeng type
Browse files Browse the repository at this point in the history
  • Loading branch information
kiremitrov123 committed Dec 8, 2022
1 parent 459cb9e commit 5111e48
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/services/cleeng.account.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import type {
UpdateCaptureAnswersPayload,
UpdateCustomerConsentsPayload,
UpdateCustomerPayload,
ServiceResponse,
} from '#types/account';

export const setEnvironment = () => true;
Expand Down
1 change: 1 addition & 0 deletions src/services/inplayer.account.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import type {
GetPublisherConsents,
Login,
Register,
ServiceResponse,
UpdateCaptureAnswers,
UpdateCustomer,
UpdateCustomerConsents,
Expand Down
12 changes: 5 additions & 7 deletions types/cleeng.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
interface ApiResponse {
errors: string[];
}
type ServiceResponse<R> = { responseData: R } & ApiResponse;
type ServiceRequest<P, R> = (payload: P) => Promise<ServiceResponse<R>>;
type CleengEmptyRequest<R> = (sandbox: boolean) => Promise<ServiceResponse<R>>;
type CleengEmptyAuthRequest<R> = (sandbox: boolean, jwt: string) => Promise<ServiceResponse<R>>;
type CleengRequest<P, R> = (payload: P, sandbox: boolean) => Promise<ServiceResponse<R>>;
type CleengAuthRequest<P, R> = (payload: P, sandbox: boolean, jwt: string) => Promise<ServiceResponse<R>>;
type EmptyServiceRequest<R> = (sandbox: boolean) => Promise<ServiceResponse<R>>;
type CleengResponse<R> = { responseData: R } & ApiResponse;
type CleengEmptyRequest<R> = (sandbox: boolean) => Promise<CleengResponse<R>>;
type CleengEmptyAuthRequest<R> = (sandbox: boolean, jwt: string) => Promise<CleengResponse<R>>;
type CleengRequest<P, R> = (payload: P, sandbox: boolean) => Promise<CleengResponse<R>>;
type CleengAuthRequest<P, R> = (payload: P, sandbox: boolean, jwt: string) => Promise<CleengResponse<R>>;

0 comments on commit 5111e48

Please sign in to comment.