qing-client 0.0.6 → 0.0.7
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.
|
@@ -77,7 +77,7 @@ class AigcService extends BaseClient_1.BaseClient {
|
|
|
77
77
|
}
|
|
78
78
|
// 老照片修复任务
|
|
79
79
|
async submitOldPhotoRestoreTask(request, options) {
|
|
80
|
-
return this.request('/old-photo/tasks', {
|
|
80
|
+
return this.request('/lib/old-photo/tasks', {
|
|
81
81
|
...options,
|
|
82
82
|
method: 'POST',
|
|
83
83
|
body: request
|
|
@@ -85,7 +85,7 @@ class AigcService extends BaseClient_1.BaseClient {
|
|
|
85
85
|
}
|
|
86
86
|
// 产品换背景任务
|
|
87
87
|
async submitProductBackgroundTask(request, options) {
|
|
88
|
-
return this.request('/product-background/tasks', {
|
|
88
|
+
return this.request('/lib/product-background/tasks', {
|
|
89
89
|
...options,
|
|
90
90
|
method: 'POST',
|
|
91
91
|
body: request
|
|
@@ -93,7 +93,7 @@ class AigcService extends BaseClient_1.BaseClient {
|
|
|
93
93
|
}
|
|
94
94
|
// 青苹果风格洗稿任务
|
|
95
95
|
async submitQingpingguoTask(request, options) {
|
|
96
|
-
return this.request('/qingpingguo/tasks', {
|
|
96
|
+
return this.request('/lib/qingpingguo/tasks', {
|
|
97
97
|
...options,
|
|
98
98
|
method: 'POST',
|
|
99
99
|
body: request
|
|
@@ -101,7 +101,7 @@ class AigcService extends BaseClient_1.BaseClient {
|
|
|
101
101
|
}
|
|
102
102
|
// 风格转绘任务
|
|
103
103
|
async submitStyleTransferTask(request, options) {
|
|
104
|
-
return this.request('/style-transfer/tasks', {
|
|
104
|
+
return this.request('/lib/style-transfer/tasks', {
|
|
105
105
|
...options,
|
|
106
106
|
method: 'POST',
|
|
107
107
|
body: request
|
|
@@ -109,7 +109,7 @@ class AigcService extends BaseClient_1.BaseClient {
|
|
|
109
109
|
}
|
|
110
110
|
// 获取任务状态
|
|
111
111
|
async getTaskStatus(request, options) {
|
|
112
|
-
return this.request(`/comfy/tasks/${request.taskId}`, {
|
|
112
|
+
return this.request(`/lib/comfy/tasks/${request.taskId}`, {
|
|
113
113
|
...options,
|
|
114
114
|
method: 'GET'
|
|
115
115
|
});
|
package/package.json
CHANGED
|
@@ -116,7 +116,7 @@ export class AigcService extends BaseClient {
|
|
|
116
116
|
|
|
117
117
|
// 老照片修复任务
|
|
118
118
|
async submitOldPhotoRestoreTask(request: OldPhotoRestoreTaskRequest, options?: RequestOptions): Promise<OldPhotoRestoreTaskResponse> {
|
|
119
|
-
return this.request<OldPhotoRestoreTaskResponse>('/old-photo/tasks', {
|
|
119
|
+
return this.request<OldPhotoRestoreTaskResponse>('/lib/old-photo/tasks', {
|
|
120
120
|
...options,
|
|
121
121
|
method: 'POST',
|
|
122
122
|
body: request
|
|
@@ -125,7 +125,7 @@ export class AigcService extends BaseClient {
|
|
|
125
125
|
|
|
126
126
|
// 产品换背景任务
|
|
127
127
|
async submitProductBackgroundTask(request: ProductBackgroundTaskRequest, options?: RequestOptions): Promise<ProductBackgroundTaskResponse> {
|
|
128
|
-
return this.request<ProductBackgroundTaskResponse>('/product-background/tasks', {
|
|
128
|
+
return this.request<ProductBackgroundTaskResponse>('/lib/product-background/tasks', {
|
|
129
129
|
...options,
|
|
130
130
|
method: 'POST',
|
|
131
131
|
body: request
|
|
@@ -134,7 +134,7 @@ export class AigcService extends BaseClient {
|
|
|
134
134
|
|
|
135
135
|
// 青苹果风格洗稿任务
|
|
136
136
|
async submitQingpingguoTask(request: QingpingguoTaskRequest, options?: RequestOptions): Promise<QingpingguoTaskResponse> {
|
|
137
|
-
return this.request<QingpingguoTaskResponse>('/qingpingguo/tasks', {
|
|
137
|
+
return this.request<QingpingguoTaskResponse>('/lib/qingpingguo/tasks', {
|
|
138
138
|
...options,
|
|
139
139
|
method: 'POST',
|
|
140
140
|
body: request
|
|
@@ -143,7 +143,7 @@ export class AigcService extends BaseClient {
|
|
|
143
143
|
|
|
144
144
|
// 风格转绘任务
|
|
145
145
|
async submitStyleTransferTask(request: StyleTransferTaskRequest, options?: RequestOptions): Promise<StyleTransferTaskResponse> {
|
|
146
|
-
return this.request<StyleTransferTaskResponse>('/style-transfer/tasks', {
|
|
146
|
+
return this.request<StyleTransferTaskResponse>('/lib/style-transfer/tasks', {
|
|
147
147
|
...options,
|
|
148
148
|
method: 'POST',
|
|
149
149
|
body: request
|
|
@@ -152,7 +152,7 @@ export class AigcService extends BaseClient {
|
|
|
152
152
|
|
|
153
153
|
// 获取任务状态
|
|
154
154
|
async getTaskStatus(request: TaskStatusRequest, options?: RequestOptions): Promise<TaskStatusResponse> {
|
|
155
|
-
return this.request<TaskStatusResponse>(`/comfy/tasks/${request.taskId}`, {
|
|
155
|
+
return this.request<TaskStatusResponse>(`/lib/comfy/tasks/${request.taskId}`, {
|
|
156
156
|
...options,
|
|
157
157
|
method: 'GET'
|
|
158
158
|
});
|