feat: a lot of a lot
This commit is contained in:
@@ -44,6 +44,8 @@ export type { CreateBarcodeTemplateAttributeRequest } from './models/CreateBarco
|
||||
export type { CreateBarcodeTemplateAttributeResponse } from './models/CreateBarcodeTemplateAttributeResponse';
|
||||
export type { CreateDealBillRequest } from './models/CreateDealBillRequest';
|
||||
export type { CreateDealBillResponse } from './models/CreateDealBillResponse';
|
||||
export type { CreateMarketplaceRequest } from './models/CreateMarketplaceRequest';
|
||||
export type { CreateMarketplaceResponse } from './models/CreateMarketplaceResponse';
|
||||
export type { CreatePaymentRecordRequest } from './models/CreatePaymentRecordRequest';
|
||||
export type { CreatePaymentRecordResponse } from './models/CreatePaymentRecordResponse';
|
||||
export type { CreatePayRateRequest } from './models/CreatePayRateRequest';
|
||||
@@ -55,6 +57,7 @@ export type { CreateServicesKitRequest } from './models/CreateServicesKitRequest
|
||||
export type { CreateServicesKitResponse } from './models/CreateServicesKitResponse';
|
||||
export type { CreateShippingWarehouseRequest } from './models/CreateShippingWarehouseRequest';
|
||||
export type { CreateShippingWarehouseResponse } from './models/CreateShippingWarehouseResponse';
|
||||
export type { CreateTaskResponse } from './models/CreateTaskResponse';
|
||||
export type { CreateUserRequest } from './models/CreateUserRequest';
|
||||
export type { CreateUserResponse } from './models/CreateUserResponse';
|
||||
export type { DealAddKitRequest } from './models/DealAddKitRequest';
|
||||
@@ -107,6 +110,8 @@ export type { DealUpdateServiceQuantityRequest } from './models/DealUpdateServic
|
||||
export type { DealUpdateServiceQuantityResponse } from './models/DealUpdateServiceQuantityResponse';
|
||||
export type { DealUpdateServiceRequest } from './models/DealUpdateServiceRequest';
|
||||
export type { DealUpdateServiceResponse } from './models/DealUpdateServiceResponse';
|
||||
export type { DeleteMarketplaceRequest } from './models/DeleteMarketplaceRequest';
|
||||
export type { DeleteMarketplaceResponse } from './models/DeleteMarketplaceResponse';
|
||||
export type { DeletePaymentRecordRequest } from './models/DeletePaymentRecordRequest';
|
||||
export type { DeletePaymentRecordResponse } from './models/DeletePaymentRecordResponse';
|
||||
export type { DeletePayRateRequest } from './models/DeletePayRateRequest';
|
||||
@@ -128,6 +133,8 @@ export type { GetAllShippingWarehousesResponse } from './models/GetAllShippingWa
|
||||
export type { GetAllUsersResponse } from './models/GetAllUsersResponse';
|
||||
export type { GetBarcodeTemplateByIdRequest } from './models/GetBarcodeTemplateByIdRequest';
|
||||
export type { GetBarcodeTemplateByIdResponse } from './models/GetBarcodeTemplateByIdResponse';
|
||||
export type { GetClientMarketplacesRequest } from './models/GetClientMarketplacesRequest';
|
||||
export type { GetClientMarketplacesResponse } from './models/GetClientMarketplacesResponse';
|
||||
export type { GetDealBillById } from './models/GetDealBillById';
|
||||
export type { GetPaymentRecordsResponse } from './models/GetPaymentRecordsResponse';
|
||||
export type { GetProductBarcodePdfRequest } from './models/GetProductBarcodePdfRequest';
|
||||
@@ -138,6 +145,8 @@ export type { GetServiceKitSchema } from './models/GetServiceKitSchema';
|
||||
export type { GetTimeTrackingRecordsRequest } from './models/GetTimeTrackingRecordsRequest';
|
||||
export type { GetTimeTrackingRecordsResponse } from './models/GetTimeTrackingRecordsResponse';
|
||||
export type { HTTPValidationError } from './models/HTTPValidationError';
|
||||
export type { MarketplaceCreateSchema } from './models/MarketplaceCreateSchema';
|
||||
export type { MarketplaceSchema } from './models/MarketplaceSchema';
|
||||
export type { NotificationChannel } from './models/NotificationChannel';
|
||||
export type { PaginationInfoSchema } from './models/PaginationInfoSchema';
|
||||
export type { PaymentRecordCreateSchema } from './models/PaymentRecordCreateSchema';
|
||||
@@ -177,8 +186,12 @@ export type { ServiceSchema } from './models/ServiceSchema';
|
||||
export type { ServiceUpdateRequest } from './models/ServiceUpdateRequest';
|
||||
export type { ServiceUpdateResponse } from './models/ServiceUpdateResponse';
|
||||
export type { ShippingWarehouseSchema } from './models/ShippingWarehouseSchema';
|
||||
export type { SynchronizeMarketplaceRequest } from './models/SynchronizeMarketplaceRequest';
|
||||
export type { TaskInfoResponse } from './models/TaskInfoResponse';
|
||||
export type { TimeTrackingData } from './models/TimeTrackingData';
|
||||
export type { TimeTrackingRecord } from './models/TimeTrackingRecord';
|
||||
export type { UpdateMarketplaceRequest } from './models/UpdateMarketplaceRequest';
|
||||
export type { UpdateMarketplaceResponse } from './models/UpdateMarketplaceResponse';
|
||||
export type { UpdatePayRateRequest } from './models/UpdatePayRateRequest';
|
||||
export type { UpdatePayRateResponse } from './models/UpdatePayRateResponse';
|
||||
export type { UpdateServiceKitSchema } from './models/UpdateServiceKitSchema';
|
||||
@@ -207,5 +220,6 @@ export { ProductService } from './services/ProductService';
|
||||
export { RoleService } from './services/RoleService';
|
||||
export { ServiceService } from './services/ServiceService';
|
||||
export { ShippingWarehouseService } from './services/ShippingWarehouseService';
|
||||
export { TaskService } from './services/TaskService';
|
||||
export { TimeTrackingService } from './services/TimeTrackingService';
|
||||
export { UserService } from './services/UserService';
|
||||
|
||||
9
src/client/models/CreateMarketplaceRequest.ts
Normal file
9
src/client/models/CreateMarketplaceRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { MarketplaceCreateSchema } from './MarketplaceCreateSchema';
|
||||
export type CreateMarketplaceRequest = {
|
||||
marketplace: MarketplaceCreateSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateMarketplaceResponse.ts
Normal file
9
src/client/models/CreateMarketplaceResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateMarketplaceResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
8
src/client/models/CreateTaskResponse.ts
Normal file
8
src/client/models/CreateTaskResponse.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateTaskResponse = {
|
||||
taskId: string;
|
||||
};
|
||||
|
||||
8
src/client/models/DeleteMarketplaceRequest.ts
Normal file
8
src/client/models/DeleteMarketplaceRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeleteMarketplaceRequest = {
|
||||
marketplaceId: number;
|
||||
};
|
||||
|
||||
9
src/client/models/DeleteMarketplaceResponse.ts
Normal file
9
src/client/models/DeleteMarketplaceResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeleteMarketplaceResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
8
src/client/models/GetClientMarketplacesRequest.ts
Normal file
8
src/client/models/GetClientMarketplacesRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type GetClientMarketplacesRequest = {
|
||||
clientId: number;
|
||||
};
|
||||
|
||||
9
src/client/models/GetClientMarketplacesResponse.ts
Normal file
9
src/client/models/GetClientMarketplacesResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { MarketplaceSchema } from './MarketplaceSchema';
|
||||
export type GetClientMarketplacesResponse = {
|
||||
marketplaces: Array<MarketplaceSchema>;
|
||||
};
|
||||
|
||||
11
src/client/models/MarketplaceCreateSchema.ts
Normal file
11
src/client/models/MarketplaceCreateSchema.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type MarketplaceCreateSchema = {
|
||||
name: string;
|
||||
clientId: number;
|
||||
baseMarketplaceKey: string;
|
||||
authData: Record<string, any>;
|
||||
};
|
||||
|
||||
14
src/client/models/MarketplaceSchema.ts
Normal file
14
src/client/models/MarketplaceSchema.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BaseMarketplaceSchema } from './BaseMarketplaceSchema';
|
||||
import type { ClientSchema } from './ClientSchema';
|
||||
export type MarketplaceSchema = {
|
||||
name: string;
|
||||
baseMarketplace: BaseMarketplaceSchema;
|
||||
client: ClientSchema;
|
||||
authData: Record<string, any>;
|
||||
id: number;
|
||||
};
|
||||
|
||||
8
src/client/models/SynchronizeMarketplaceRequest.ts
Normal file
8
src/client/models/SynchronizeMarketplaceRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type SynchronizeMarketplaceRequest = {
|
||||
marketplaceId: number;
|
||||
};
|
||||
|
||||
9
src/client/models/TaskInfoResponse.ts
Normal file
9
src/client/models/TaskInfoResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type TaskInfoResponse = {
|
||||
taskId: string;
|
||||
status: string;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateMarketplaceRequest.ts
Normal file
9
src/client/models/UpdateMarketplaceRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { MarketplaceSchema } from './MarketplaceSchema';
|
||||
export type UpdateMarketplaceRequest = {
|
||||
marketplace: MarketplaceSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateMarketplaceResponse.ts
Normal file
9
src/client/models/UpdateMarketplaceResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateMarketplaceResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
@@ -28,4 +28,15 @@ export class AuthService {
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Test
|
||||
* @returns any Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static testAuthTestPost(): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/auth/test',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ export class ClientService {
|
||||
* @returns ClientCreateResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createClient({
|
||||
public static createClientApi({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: ClientCreateRequest,
|
||||
|
||||
@@ -2,7 +2,15 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreateMarketplaceRequest } from '../models/CreateMarketplaceRequest';
|
||||
import type { CreateMarketplaceResponse } from '../models/CreateMarketplaceResponse';
|
||||
import type { DeleteMarketplaceRequest } from '../models/DeleteMarketplaceRequest';
|
||||
import type { DeleteMarketplaceResponse } from '../models/DeleteMarketplaceResponse';
|
||||
import type { GetAllBaseMarketplacesResponse } from '../models/GetAllBaseMarketplacesResponse';
|
||||
import type { GetClientMarketplacesRequest } from '../models/GetClientMarketplacesRequest';
|
||||
import type { GetClientMarketplacesResponse } from '../models/GetClientMarketplacesResponse';
|
||||
import type { UpdateMarketplaceRequest } from '../models/UpdateMarketplaceRequest';
|
||||
import type { UpdateMarketplaceResponse } from '../models/UpdateMarketplaceResponse';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
@@ -18,4 +26,84 @@ export class MarketplaceService {
|
||||
url: '/marketplace/base/get-all',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Get
|
||||
* @returns GetClientMarketplacesResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getClientMarketplaces({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: GetClientMarketplacesRequest,
|
||||
}): CancelablePromise<GetClientMarketplacesResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/marketplace/get',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Create
|
||||
* @returns CreateMarketplaceResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createMarketplace({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: CreateMarketplaceRequest,
|
||||
}): CancelablePromise<CreateMarketplaceResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/marketplace/create',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Delete
|
||||
* @returns DeleteMarketplaceResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static deleteMarketplace({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: DeleteMarketplaceRequest,
|
||||
}): CancelablePromise<DeleteMarketplaceResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/marketplace/delete',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Update
|
||||
* @returns UpdateMarketplaceResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updateMarketplace({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: UpdateMarketplaceRequest,
|
||||
}): CancelablePromise<UpdateMarketplaceResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/marketplace/update',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
53
src/client/services/TaskService.ts
Normal file
53
src/client/services/TaskService.ts
Normal file
@@ -0,0 +1,53 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreateTaskResponse } from '../models/CreateTaskResponse';
|
||||
import type { SynchronizeMarketplaceRequest } from '../models/SynchronizeMarketplaceRequest';
|
||||
import type { TaskInfoResponse } from '../models/TaskInfoResponse';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
export class TaskService {
|
||||
/**
|
||||
* Synchronize Marketplace
|
||||
* @returns CreateTaskResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createSynchronizeMarketplaceTask({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: SynchronizeMarketplaceRequest,
|
||||
}): CancelablePromise<CreateTaskResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/task/synchronize-marketplace',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Task Info
|
||||
* @returns TaskInfoResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getTaskInfo({
|
||||
taskId,
|
||||
}: {
|
||||
taskId: string,
|
||||
}): CancelablePromise<TaskInfoResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/task/info/{task_id}',
|
||||
path: {
|
||||
'task_id': taskId,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user