szpt-driver-api 1.0.21 → 1.0.23

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/oss.d.ts CHANGED
@@ -1,19 +1,56 @@
1
- export declare class Base64File {
1
+ export declare class Base64FileUpload {
2
2
  /** base64 */
3
3
  "base64"?: string;
4
4
  /** bucket */
5
5
  bucket?: string;
6
+ /**
7
+ * 是否压缩
8
+ * @example false
9
+ */
10
+ compress?: boolean;
6
11
  /** 文件类型。例子:image/jpeg、image/png */
7
12
  contentType?: string;
8
13
  /** endpoint */
9
14
  endpoint?: string;
10
15
  /**
11
- * expireAt
16
+ * 过期时间
12
17
  * @format date-time
13
18
  */
14
19
  expireAt?: string;
15
20
  /** 文件名 */
16
21
  fileName?: string;
22
+ /**
23
+ * 图片压缩高度
24
+ * @format int32
25
+ */
26
+ h?: number;
27
+ /** objectId */
28
+ objectId?: string;
29
+ /**
30
+ * 是否覆盖
31
+ * @example false
32
+ */
33
+ overwrite?: boolean;
34
+ /**
35
+ * 图片压缩质量 默认:75
36
+ * @format int32
37
+ */
38
+ q?: number;
39
+ /**
40
+ * 图片压缩宽度
41
+ * @format int32
42
+ */
43
+ w?: number;
44
+ }
45
+ export declare class BatchTransferToRemoteRequest {
46
+ bucket?: string;
47
+ endpoint?: string;
48
+ excludeContentType?: string[];
49
+ remote?: string;
50
+ /** @format date-time */
51
+ timeBegin: string;
52
+ /** @format date-time */
53
+ timeEnd: string;
17
54
  }
18
55
  export declare class FileObjectEntity {
19
56
  bucket: string;
@@ -47,15 +84,56 @@ export declare class PageResultFileObjectEntity {
47
84
  total: number;
48
85
  }
49
86
  export declare type StreamingResponseBody = any;
50
- export declare class TransferRequest {
87
+ export declare class TransferToEndpointRequest {
51
88
  bucket?: string;
52
89
  endpoint?: string;
53
90
  excludeContentType?: string[];
54
- remote: string;
55
- /** @format date-time */
56
- timeBegin: string;
57
- /** @format date-time */
58
- timeEnd: string;
91
+ }
92
+ export declare class TransferToRemoteRequest {
93
+ bucket?: string;
94
+ endpoint?: string;
95
+ excludeContentType?: string[];
96
+ remote?: string;
97
+ }
98
+ export declare class URLFileUpload {
99
+ /** bucket */
100
+ bucket?: string;
101
+ /**
102
+ * 是否压缩
103
+ * @example false
104
+ */
105
+ compress?: boolean;
106
+ /** endpoint */
107
+ endpoint?: string;
108
+ /**
109
+ * 过期时间
110
+ * @format date-time
111
+ */
112
+ expireAt?: string;
113
+ /**
114
+ * 图片压缩高度
115
+ * @format int32
116
+ */
117
+ h?: number;
118
+ /** objectId */
119
+ objectId?: string;
120
+ /**
121
+ * 是否覆盖
122
+ * @example false
123
+ */
124
+ overwrite?: boolean;
125
+ /**
126
+ * 图片压缩质量 默认:75
127
+ * @format int32
128
+ */
129
+ q?: number;
130
+ /** url */
131
+ url?: string;
132
+ /**
133
+ * 图片压缩宽度
134
+ * @format int32
135
+ */
136
+ w?: number;
59
137
  }
60
138
  export declare class ResourceParams {
61
139
  /** id */
@@ -65,10 +143,13 @@ export declare class ResourceParams {
65
143
  /** withMimeType */
66
144
  withMimeType?: boolean;
67
145
  }
68
- /**
69
- * @format binary
70
- */
71
- export declare type UploadPayload = File;
146
+ export declare class UploadPayload {
147
+ /**
148
+ * file
149
+ * @format binary
150
+ */
151
+ file: File;
152
+ }
72
153
  export declare class UploadParams {
73
154
  /** bucket */
74
155
  bucket?: string;
@@ -79,6 +160,27 @@ export declare class UploadParams {
79
160
  * @format int64
80
161
  */
81
162
  expireAt?: number;
163
+ /** objectId */
164
+ objectId?: string;
165
+ /** overwrite */
166
+ overwrite?: boolean;
167
+ /** compress */
168
+ compress?: boolean;
169
+ /**
170
+ * w
171
+ * @format int32
172
+ */
173
+ w?: number;
174
+ /**
175
+ * h
176
+ * @format int32
177
+ */
178
+ h?: number;
179
+ /**
180
+ * q
181
+ * @format int32
182
+ */
183
+ q?: number;
82
184
  }
83
185
  export declare class ByIdParams {
84
186
  /** format */
@@ -169,7 +271,7 @@ export declare class ResourceConvertByIdParams {
169
271
  /** id */
170
272
  id: string;
171
273
  }
172
- export declare class ResourceParams2 {
274
+ export declare class ResourceParams4 {
173
275
  bucket?: string;
174
276
  contentTypeLike?: string;
175
277
  deleted?: boolean;
@@ -245,6 +347,34 @@ declare class Api {
245
347
  * @response `404` `void` Not Found
246
348
  */
247
349
  resource: (query: ResourceParams, axiosConfig?: AxiosRequestConfig) => Promise<any>;
350
+ /**
351
+ * No description
352
+ *
353
+ * @tags resource
354
+ * @name TransferToEndpointByResourceId
355
+ * @summary 迁移单个文件到其他Endpoint
356
+ * @request POST:/oss/resource/transfer-to-endpoint/{resourceId}
357
+ * @response `200` `void` OK
358
+ * @response `201` `void` Created
359
+ * @response `401` `void` Unauthorized
360
+ * @response `403` `void` Forbidden
361
+ * @response `404` `void` Not Found
362
+ */
363
+ transferToEndpointByResourceId: (resourceId: string, data: TransferToRemoteRequest, axiosConfig?: AxiosRequestConfig) => Promise<void>;
364
+ /**
365
+ * No description
366
+ *
367
+ * @tags resource
368
+ * @name TransferToRemoteByResourceId
369
+ * @summary 迁移单个文件到远端服务
370
+ * @request POST:/oss/resource/transfer-to-remote/{resourceId}
371
+ * @response `200` `void` OK
372
+ * @response `201` `void` Created
373
+ * @response `401` `void` Unauthorized
374
+ * @response `403` `void` Forbidden
375
+ * @response `404` `void` Not Found
376
+ */
377
+ transferToRemoteByResourceId: (resourceId: string, data: TransferToRemoteRequest, axiosConfig?: AxiosRequestConfig) => Promise<void>;
248
378
  /**
249
379
  * No description
250
380
  *
@@ -272,7 +402,21 @@ declare class Api {
272
402
  * @response `403` `void` Forbidden
273
403
  * @response `404` `void` Not Found
274
404
  */
275
- uploadBase64: (data: Base64File, axiosConfig?: AxiosRequestConfig) => Promise<string>;
405
+ uploadBase64: (data: Base64FileUpload, axiosConfig?: AxiosRequestConfig) => Promise<string>;
406
+ /**
407
+ * No description
408
+ *
409
+ * @tags resource
410
+ * @name UploadUrl
411
+ * @summary 文件上传 - url形式
412
+ * @request POST:/oss/resource/upload-url
413
+ * @response `200` `string` OK
414
+ * @response `201` `void` Created
415
+ * @response `401` `void` Unauthorized
416
+ * @response `403` `void` Forbidden
417
+ * @response `404` `void` Not Found
418
+ */
419
+ uploadUrl: (data: URLFileUpload, axiosConfig?: AxiosRequestConfig) => Promise<string>;
276
420
  /**
277
421
  * @description format: base64/redirect-url
278
422
  *
@@ -382,6 +526,34 @@ declare class Api {
382
526
  * @response `404` `void` Not Found
383
527
  */
384
528
  resourceUpload: (query: ResourceUploadParams, data: ResourceUploadPayload, axiosConfig?: AxiosRequestConfig) => Promise<string>;
529
+ /**
530
+ * No description
531
+ *
532
+ * @tags inner
533
+ * @name ResourceUploadBase64
534
+ * @summary 文件上传 - base64形式
535
+ * @request POST:/oss/inner/resource/upload-base64
536
+ * @response `200` `string` OK
537
+ * @response `201` `void` Created
538
+ * @response `401` `void` Unauthorized
539
+ * @response `403` `void` Forbidden
540
+ * @response `404` `void` Not Found
541
+ */
542
+ resourceUploadBase64: (data: Base64FileUpload, axiosConfig?: AxiosRequestConfig) => Promise<string>;
543
+ /**
544
+ * No description
545
+ *
546
+ * @tags inner
547
+ * @name ResourceUploadUrl
548
+ * @summary 文件上传 - url形式
549
+ * @request POST:/oss/inner/resource/upload-url
550
+ * @response `200` `string` OK
551
+ * @response `201` `void` Created
552
+ * @response `401` `void` Unauthorized
553
+ * @response `403` `void` Forbidden
554
+ * @response `404` `void` Not Found
555
+ */
556
+ resourceUploadUrl: (data: URLFileUpload, axiosConfig?: AxiosRequestConfig) => Promise<string>;
385
557
  /**
386
558
  * No description
387
559
  *
@@ -413,30 +585,44 @@ declare class Api {
413
585
  * No description
414
586
  *
415
587
  * @tags inner
416
- * @name Transfer
588
+ * @name TransferToEndpointByResourceId
589
+ * @summary 迁移单个文件到其他Endpoint
590
+ * @request POST:/oss/inner/transfer-to-endpoint/{resourceId}
591
+ * @response `200` `void` OK
592
+ * @response `201` `void` Created
593
+ * @response `401` `void` Unauthorized
594
+ * @response `403` `void` Forbidden
595
+ * @response `404` `void` Not Found
596
+ */
597
+ transferToEndpointByResourceId: (resourceId: string, data: TransferToEndpointRequest, axiosConfig?: AxiosRequestConfig) => Promise<void>;
598
+ /**
599
+ * No description
600
+ *
601
+ * @tags inner
602
+ * @name TransferToRemote
417
603
  * @summary 迁移文件
418
- * @request POST:/oss/inner/transfer
604
+ * @request POST:/oss/inner/transfer-to-remote
419
605
  * @response `200` `void` OK
420
606
  * @response `201` `void` Created
421
607
  * @response `401` `void` Unauthorized
422
608
  * @response `403` `void` Forbidden
423
609
  * @response `404` `void` Not Found
424
610
  */
425
- transfer: (data: TransferRequest, axiosConfig?: AxiosRequestConfig) => Promise<void>;
611
+ transferToRemote: (data: BatchTransferToRemoteRequest, axiosConfig?: AxiosRequestConfig) => Promise<void>;
426
612
  /**
427
613
  * No description
428
614
  *
429
615
  * @tags inner
430
- * @name TransferByResourceId
431
- * @summary 迁移单个文件
432
- * @request POST:/oss/inner/transfer/{resourceId}
616
+ * @name TransferToRemoteByResourceId
617
+ * @summary 迁移单个文件到远端服务
618
+ * @request POST:/oss/inner/transfer-to-remote/{resourceId}
433
619
  * @response `200` `void` OK
434
620
  * @response `201` `void` Created
435
621
  * @response `401` `void` Unauthorized
436
622
  * @response `403` `void` Forbidden
437
623
  * @response `404` `void` Not Found
438
624
  */
439
- transferByResourceId: (resourceId: string, data: TransferRequest, axiosConfig?: AxiosRequestConfig) => Promise<void>;
625
+ transferToRemoteByResourceId: (resourceId: string, data: TransferToRemoteRequest, axiosConfig?: AxiosRequestConfig) => Promise<void>;
440
626
  };
441
627
  manage: {
442
628
  /**
@@ -465,7 +651,7 @@ declare class Api {
465
651
  * @response `403` `void` Forbidden
466
652
  * @response `404` `void` Not Found
467
653
  */
468
- resource: (query: ResourceParams2, axiosConfig?: AxiosRequestConfig) => Promise<PageResultFileObjectEntity>;
654
+ resource: (query: ResourceParams4, axiosConfig?: AxiosRequestConfig) => Promise<PageResultFileObjectEntity>;
469
655
  /**
470
656
  * No description
471
657
  *
package/oss.js CHANGED
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";var e={289:(e,s,t)=>{t.d(s,{M:()=>r});const r={request(e){throw new Error("please setup http client first")}}}},s={};function t(r){var a=s[r];if(void 0!==a)return a.exports;var o=s[r]={exports:{}};return e[r](o,o.exports,t),o.exports}t.d=(e,s)=>{for(var r in s)t.o(s,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:s[r]})},t.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{t.r(r),t.d(r,{Base64File:()=>o,ByIdParams:()=>p,ContentType:()=>e,ConvertByIdParams:()=>h,CreateBucketParams:()=>O,DeleteResourceRemoveByIdParams:()=>y,FileObjectEntity:()=>u,FileObjectMeta:()=>n,PageResultFileObjectEntity:()=>c,ResourceConvertByIdParams:()=>g,ResourceMetaParams:()=>b,ResourceParams:()=>l,ResourceParams2:()=>j,ResourceUploadParams:()=>v,ThumbnailByIdParams:()=>m,TransferRequest:()=>i,UploadParams:()=>d,ossApi:()=>P});var e,s=t(289),a=function(e,s){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&s.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)s.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t};class o{}class u{}class n{}class c{}class i{}class l{}class d{}class p{}class h{}class m{}class O{}class b{}class y{}class v{}class g{}class j{}!function(e){e.Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded"}(e||(e={}));const P=new class{constructor(e){this.resource={resource:(e,s={})=>this.http.request(Object.assign({url:"/oss/resource",method:"GET",params:e},s)),upload:(e,s,t={})=>this.http.request(Object.assign({url:"/oss/resource/upload",method:"POST",params:e,data:s},t)),uploadBase64:(e,s={})=>this.http.request(Object.assign({url:"/oss/resource/upload-base64",method:"POST",data:e},s)),byId:(e,s)=>{var{id:t}=e,r=a(e,["id"]);return void 0===s&&(s={}),this.http.request(Object.assign({url:`/oss/resource/${t}`,method:"GET",params:r},s))},convertById:(e,s)=>{var{id:t}=e,r=a(e,["id"]);return void 0===s&&(s={}),this.http.request(Object.assign({url:`/oss/resource/${t}/convert`,method:"POST",params:r},s))},metaById:(e,s={})=>this.http.request(Object.assign({url:`/oss/resource/${e}/meta`,method:"GET"},s)),thumbnailById:(e,s)=>{var{id:t}=e,r=a(e,["id"]);return void 0===s&&(s={}),this.http.request(Object.assign({url:`/oss/resource/${t}/thumbnail`,method:"GET",params:r},s))}},this.inner={createBucket:(e,s={})=>this.http.request(Object.assign({url:"/oss/inner/create-bucket",method:"POST",params:e},s)),resourceMeta:(e,s={})=>this.http.request(Object.assign({url:"/oss/inner/resource-meta",method:"GET",params:e},s)),deleteResourceRemoveById:(e,s)=>{var{id:t}=e,r=a(e,["id"]);return void 0===s&&(s={}),this.http.request(Object.assign({url:`/oss/inner/resource/remove/${t}`,method:"DELETE",params:r},s))},resourceUpload:(e,s,t={})=>this.http.request(Object.assign({url:"/oss/inner/resource/upload",method:"POST",params:e,data:s},t)),resourceConvertById:(e,s)=>{var{id:t}=e,r=a(e,["id"]);return void 0===s&&(s={}),this.http.request(Object.assign({url:`/oss/inner/resource/${t}/convert`,method:"POST",params:r},s))},resourceMetaById:(e,s={})=>this.http.request(Object.assign({url:`/oss/inner/resource/${e}/meta`,method:"GET"},s)),transfer:(e,s={})=>this.http.request(Object.assign({url:"/oss/inner/transfer",method:"POST",data:e},s)),transferByResourceId:(e,s,t={})=>this.http.request(Object.assign({url:`/oss/inner/transfer/${e}`,method:"POST",data:s},t))},this.manage={clearExpiredResource:(e={})=>this.http.request(Object.assign({url:"/oss/manage/clear-expired-resource",method:"POST"},e)),resource:(e,s={})=>this.http.request(Object.assign({url:"/oss/manage/resource",method:"GET",params:e},s)),deleteResourceById:(e,s={})=>this.http.request(Object.assign({url:`/oss/manage/resource/${e}`,method:"DELETE"},s))},this.http=e}}(s.M)})();var a=exports;for(var o in r)a[o]=r[o];r.__esModule&&Object.defineProperty(a,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={289:(e,s,t)=>{t.d(s,{M:()=>r});const r={request(e){throw new Error("please setup http client first")}}}},s={};function t(r){var a=s[r];if(void 0!==a)return a.exports;var o=s[r]={exports:{}};return e[r](o,o.exports,t),o.exports}t.d=(e,s)=>{for(var r in s)t.o(s,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:s[r]})},t.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{t.r(r),t.d(r,{Base64FileUpload:()=>o,BatchTransferToRemoteRequest:()=>u,ByIdParams:()=>b,ContentType:()=>e,ConvertByIdParams:()=>y,CreateBucketParams:()=>g,DeleteResourceRemoveByIdParams:()=>P,FileObjectEntity:()=>n,FileObjectMeta:()=>c,PageResultFileObjectEntity:()=>i,ResourceConvertByIdParams:()=>v,ResourceMetaParams:()=>j,ResourceParams:()=>h,ResourceParams4:()=>q,ResourceUploadParams:()=>f,ThumbnailByIdParams:()=>T,TransferToEndpointRequest:()=>d,TransferToRemoteRequest:()=>l,URLFileUpload:()=>p,UploadParams:()=>O,UploadPayload:()=>m,ossApi:()=>R});var e,s=t(289),a=function(e,s){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&s.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)s.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t};class o{}class u{}class n{}class c{}class i{}class d{}class l{}class p{}class h{}class m{}class O{}class b{}class y{}class T{}class g{}class j{}class P{}class f{}class v{}class q{}!function(e){e.Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded"}(e||(e={}));const R=new class{constructor(e){this.resource={resource:(e,s={})=>this.http.request(Object.assign({url:"/oss/resource",method:"GET",params:e},s)),transferToEndpointByResourceId:(e,s,t={})=>this.http.request(Object.assign({url:`/oss/resource/transfer-to-endpoint/${e}`,method:"POST",data:s},t)),transferToRemoteByResourceId:(e,s,t={})=>this.http.request(Object.assign({url:`/oss/resource/transfer-to-remote/${e}`,method:"POST",data:s},t)),upload:(e,s,t={})=>this.http.request(Object.assign({url:"/oss/resource/upload",method:"POST",params:e,data:s},t)),uploadBase64:(e,s={})=>this.http.request(Object.assign({url:"/oss/resource/upload-base64",method:"POST",data:e},s)),uploadUrl:(e,s={})=>this.http.request(Object.assign({url:"/oss/resource/upload-url",method:"POST",data:e},s)),byId:(e,s)=>{var{id:t}=e,r=a(e,["id"]);return void 0===s&&(s={}),this.http.request(Object.assign({url:`/oss/resource/${t}`,method:"GET",params:r},s))},convertById:(e,s)=>{var{id:t}=e,r=a(e,["id"]);return void 0===s&&(s={}),this.http.request(Object.assign({url:`/oss/resource/${t}/convert`,method:"POST",params:r},s))},metaById:(e,s={})=>this.http.request(Object.assign({url:`/oss/resource/${e}/meta`,method:"GET"},s)),thumbnailById:(e,s)=>{var{id:t}=e,r=a(e,["id"]);return void 0===s&&(s={}),this.http.request(Object.assign({url:`/oss/resource/${t}/thumbnail`,method:"GET",params:r},s))}},this.inner={createBucket:(e,s={})=>this.http.request(Object.assign({url:"/oss/inner/create-bucket",method:"POST",params:e},s)),resourceMeta:(e,s={})=>this.http.request(Object.assign({url:"/oss/inner/resource-meta",method:"GET",params:e},s)),deleteResourceRemoveById:(e,s)=>{var{id:t}=e,r=a(e,["id"]);return void 0===s&&(s={}),this.http.request(Object.assign({url:`/oss/inner/resource/remove/${t}`,method:"DELETE",params:r},s))},resourceUpload:(e,s,t={})=>this.http.request(Object.assign({url:"/oss/inner/resource/upload",method:"POST",params:e,data:s},t)),resourceUploadBase64:(e,s={})=>this.http.request(Object.assign({url:"/oss/inner/resource/upload-base64",method:"POST",data:e},s)),resourceUploadUrl:(e,s={})=>this.http.request(Object.assign({url:"/oss/inner/resource/upload-url",method:"POST",data:e},s)),resourceConvertById:(e,s)=>{var{id:t}=e,r=a(e,["id"]);return void 0===s&&(s={}),this.http.request(Object.assign({url:`/oss/inner/resource/${t}/convert`,method:"POST",params:r},s))},resourceMetaById:(e,s={})=>this.http.request(Object.assign({url:`/oss/inner/resource/${e}/meta`,method:"GET"},s)),transferToEndpointByResourceId:(e,s,t={})=>this.http.request(Object.assign({url:`/oss/inner/transfer-to-endpoint/${e}`,method:"POST",data:s},t)),transferToRemote:(e,s={})=>this.http.request(Object.assign({url:"/oss/inner/transfer-to-remote",method:"POST",data:e},s)),transferToRemoteByResourceId:(e,s,t={})=>this.http.request(Object.assign({url:`/oss/inner/transfer-to-remote/${e}`,method:"POST",data:s},t))},this.manage={clearExpiredResource:(e={})=>this.http.request(Object.assign({url:"/oss/manage/clear-expired-resource",method:"POST"},e)),resource:(e,s={})=>this.http.request(Object.assign({url:"/oss/manage/resource",method:"GET",params:e},s)),deleteResourceById:(e,s={})=>this.http.request(Object.assign({url:`/oss/manage/resource/${e}`,method:"DELETE"},s))},this.http=e}}(s.M)})();var a=exports;for(var o in r)a[o]=r[o];r.__esModule&&Object.defineProperty(a,"__esModule",{value:!0})})();
2
2
  //# sourceMappingURL=oss.js.map
package/oss.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"oss.js","mappings":"yDAUO,MAAMA,EAAyB,CACrCC,QAAQC,GAEN,MAAM,IAAIC,MAAM,iCAElB,E,GCdGC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EA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pack/bootstrap","webpack://nestjs-vue3-ssr/webpack/runtime/define property getters","webpack://nestjs-vue3-ssr/webpack/runtime/hasOwnProperty shorthand","webpack://nestjs-vue3-ssr/webpack/runtime/make namespace object","webpack://nestjs-vue3-ssr/./dist/modules/api/oss.ts"],"sourcesContent":["\nimport { AxiosRequestConfig, AxiosResponse } from 'axios'\n\nlet isSetup = false\n\ninterface HttpClient {\n\trequest: <T = any, _E = any>(config: AxiosRequestConfig) => Promise<T>\n}\n\n//@ts-ignore\nexport const httpClient: HttpClient = {\n\trequest(config: AxiosRequestConfig):any {\n\t\tif (!isSetup) {\n\t\t\tthrow new Error('please setup http client first')\n\t\t}\n\t},\n}\n\nexport const setupApi = (request: HttpClient['request']) => {\n\thttpClient.request = request\n\tisSetup = true\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export class Base64File {\n /** base64 */\n \"base64\"?: string;\n\n /** bucket */\n bucket?: string;\n\n /** 文件类型。例子:image/jpeg、image/png */\n contentType?: string;\n\n /** endpoint */\n endpoint?: string;\n\n /**\n * expireAt\n * @format date-time\n */\n expireAt?: string;\n\n /** 文件名 */\n fileName?: string;\n}\n\nexport class FileObjectEntity {\n bucket: string;\n contentType: string;\n deleted: boolean;\n endpoint: string;\n\n /** @format date-time */\n expireAt: string;\n fileName: string;\n id: string;\n path: string;\n\n /** @format int64 */\n size: number;\n\n /** @format date-time */\n time: string;\n user: string;\n}\n\nexport class FileObjectMeta {\n contentType: string;\n deleted: boolean;\n\n /** @format date-time */\n expireAt: string;\n fileName: string;\n id: string;\n\n /** @format int64 */\n size: number;\n}\n\nexport class PageResultFileObjectEntity {\n list: FileObjectEntity[];\n\n /** @format int64 */\n total: number;\n}\n\nexport type StreamingResponseBody = any;\n\nexport class TransferRequest {\n bucket?: string;\n endpoint?: string;\n excludeContentType?: string[];\n remote: string;\n\n /** @format date-time */\n timeBegin: string;\n\n /** @format date-time */\n timeEnd: string;\n}\n\nexport class ResourceParams {\n /** id */\n id: string;\n\n /** format */\n format?: string;\n\n /** withMimeType */\n withMimeType?: boolean;\n}\n\n/**\n * @format binary\n */\nexport type UploadPayload = File;\n\nexport class UploadParams {\n /** bucket */\n bucket?: string;\n\n /** endpoint */\n endpoint?: string;\n\n /**\n * expireAt\n * @format int64\n */\n expireAt?: number;\n}\n\nexport class ByIdParams {\n /** format */\n format?: string;\n\n /** withMimeType */\n withMimeType?: boolean;\n\n /** id */\n id: string;\n}\n\nexport class ConvertByIdParams {\n /** 目标类型,如: image/jpeg */\n type: string;\n\n /** 是否强制重新生成 */\n forceReconvert?: boolean;\n\n /** id */\n id: string;\n}\n\nexport class ThumbnailByIdParams {\n /**\n * h\n * @format int32\n */\n h?: number;\n\n /**\n * w\n * @format int32\n */\n w?: number;\n\n /**\n * q\n * @format int32\n */\n q?: number;\n\n /** format */\n format?: string;\n\n /** withMimeType */\n withMimeType?: boolean;\n\n /** id */\n id: string;\n}\n\nexport class CreateBucketParams {\n /** endpoint */\n endpoint: string;\n\n /** bucket */\n bucket: string;\n}\n\nexport class ResourceMetaParams {\n /** id */\n id: string;\n}\n\nexport class DeleteResourceRemoveByIdParams {\n /** forceDelete */\n forceDelete?: boolean;\n\n /** id */\n id: string;\n}\n\n/**\n * @format binary\n */\nexport type ResourceUploadPayload = File;\n\nexport class ResourceUploadParams {\n /** user */\n user?: string;\n\n /**\n * time\n * @format int64\n */\n time?: number;\n\n /**\n * expireAt\n * @format int64\n */\n expireAt?: number;\n\n /** bucket */\n bucket?: string;\n\n /** endpoint */\n endpoint?: string;\n\n /** objectId */\n objectId?: string;\n\n /** overwrite */\n overwrite?: boolean;\n}\n\nexport class ResourceConvertByIdParams {\n /** 目标类型,如: image/jpeg */\n type: string;\n\n /** 是否强制重新生成 */\n forceReconvert?: boolean;\n\n /** id */\n id: string;\n}\n\nexport class ResourceParams2 {\n bucket?: string;\n contentTypeLike?: string;\n deleted?: boolean;\n endpoint?: string;\n\n /** @format date-time */\n expireAtBegin?: string;\n\n /** @format date-time */\n expireAtEnd?: string;\n id?: string;\n orderBy?: string[];\n\n /** @format int32 */\n pageIndex?: number;\n\n /** @format int32 */\n pageSize?: number;\n pathLike?: string;\n\n /** @format date-time */\n timeBegin?: string;\n\n /** @format date-time */\n timeEnd?: string;\n user?: string;\n}\n\nimport { AxiosRequestConfig, ResponseType } from \"axios\";\n\nexport type QueryParamsType = Record<string | number, any>;\n\nexport interface FullRequestParams extends Omit<AxiosRequestConfig, \"data\" | \"params\" | \"url\" | \"responseType\"> {\n /** set parameter to `true` for call `securityWorker` for this request */\n secure?: boolean;\n /** request path */\n url: string;\n /** content type of request body */\n type?: ContentType;\n /** query params */\n params?: QueryParamsType;\n /** format of response (i.e. response.json() -> format: \"json\") */\n ResponseType?: ResponseType;\n /** request body */\n body?: unknown;\n}\n\nexport type RequestParams = Omit<FullRequestParams, \"body\" | \"method\" | \"query\" | \"path\">;\n\nexport interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, \"data\" | \"cancelToken\"> {\n securityWorker?: (\n securityData: SecurityDataType | null,\n ) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;\n secure?: boolean;\n ResponseType?: ResponseType;\n}\n\nexport enum ContentType {\n Json = \"application/json\",\n FormData = \"multipart/form-data\",\n UrlEncoded = \"application/x-www-form-urlencoded\",\n}\n\ninterface HttpClient {\n request: <T = any, _E = any>(config: AxiosRequestConfig) => Promise<T>;\n}\n\n/**\n * @title OSS\n * @version 1.0\n * @baseUrl http://192.168.200.12:5000\n *\n * OSS\n */\nclass Api {\n private http: HttpClient;\n\n constructor(http: HttpClient) {\n this.http = http;\n }\n\n resource = {\n /**\n * @description format: base64/redirect-url\n *\n * @tags resource\n * @name Resource\n * @summary 文件下载\n * @request GET:/oss/resource\n * @response `200` `StreamingResponseBody` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n resource: (query: ResourceParams, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<StreamingResponseBody, void>({\n url: `/oss/resource`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags resource\n * @name Upload\n * @summary 文件上传\n * @request POST:/oss/resource/upload\n * @response `200` `string` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n upload: (query: UploadParams, data: UploadPayload, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<string, void>({\n url: `/oss/resource/upload`,\n method: \"POST\",\n params: query,\n data: data,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags resource\n * @name UploadBase64\n * @summary 文件上传 - base64形式\n * @request POST:/oss/resource/upload-base64\n * @response `200` `string` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n uploadBase64: (data: Base64File, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<string, void>({\n url: `/oss/resource/upload-base64`,\n method: \"POST\",\n data: data,\n ...axiosConfig,\n }),\n\n /**\n * @description format: base64/redirect-url\n *\n * @tags resource\n * @name ById\n * @summary 文件下载\n * @request GET:/oss/resource/{id}\n * @response `200` `StreamingResponseBody` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n byId: ({ id, ...query }: ByIdParams, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<StreamingResponseBody, void>({\n url: `/oss/resource/${id}`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags resource\n * @name ConvertById\n * @summary 格式转换\n * @request POST:/oss/resource/{id}/convert\n * @response `200` `FileObjectMeta` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n convertById: ({ id, ...query }: ConvertByIdParams, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<FileObjectMeta, void>({\n url: `/oss/resource/${id}/convert`,\n method: \"POST\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags resource\n * @name MetaById\n * @summary 文件元信息\n * @request GET:/oss/resource/{id}/meta\n * @response `200` `FileObjectMeta` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n metaById: (id: string, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<FileObjectMeta, void>({\n url: `/oss/resource/${id}/meta`,\n method: \"GET\",\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags resource\n * @name ThumbnailById\n * @summary 图片缩略图\n * @request GET:/oss/resource/{id}/thumbnail\n * @response `200` `StreamingResponseBody` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n thumbnailById: ({ id, ...query }: ThumbnailByIdParams, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<StreamingResponseBody, void>({\n url: `/oss/resource/${id}/thumbnail`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n };\n inner = {\n /**\n * No description\n *\n * @tags inner\n * @name CreateBucket\n * @summary 创建bucket\n * @request POST:/oss/inner/create-bucket\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n createBucket: (query: CreateBucketParams, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/oss/inner/create-bucket`,\n method: \"POST\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name ResourceMeta\n * @summary 文件元信息\n * @request GET:/oss/inner/resource-meta\n * @response `200` `FileObjectMeta` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n resourceMeta: (query: ResourceMetaParams, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<FileObjectMeta, void>({\n url: `/oss/inner/resource-meta`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name DeleteResourceRemoveById\n * @summary 删除文件\n * @request DELETE:/oss/inner/resource/remove/{id}\n * @response `200` `void` OK\n * @response `204` `void` No Content\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n */\n deleteResourceRemoveById: (\n { id, ...query }: DeleteResourceRemoveByIdParams,\n axiosConfig: AxiosRequestConfig = {},\n ) =>\n this.http.request<void, void>({\n url: `/oss/inner/resource/remove/${id}`,\n method: \"DELETE\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name ResourceUpload\n * @summary 文件上传\n * @request POST:/oss/inner/resource/upload\n * @response `200` `string` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n resourceUpload: (query: ResourceUploadParams, data: ResourceUploadPayload, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<string, void>({\n url: `/oss/inner/resource/upload`,\n method: \"POST\",\n params: query,\n data: data,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name ResourceConvertById\n * @summary 格式转换\n * @request POST:/oss/inner/resource/{id}/convert\n * @response `200` `FileObjectMeta` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n resourceConvertById: ({ id, ...query }: ResourceConvertByIdParams, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<FileObjectMeta, void>({\n url: `/oss/inner/resource/${id}/convert`,\n method: \"POST\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name ResourceMetaById\n * @summary 文件元信息\n * @request GET:/oss/inner/resource/{id}/meta\n * @response `200` `FileObjectMeta` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n resourceMetaById: (id: string, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<FileObjectMeta, void>({\n url: `/oss/inner/resource/${id}/meta`,\n method: \"GET\",\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name Transfer\n * @summary 迁移文件\n * @request POST:/oss/inner/transfer\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n transfer: (data: TransferRequest, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/oss/inner/transfer`,\n method: \"POST\",\n data: data,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name TransferByResourceId\n * @summary 迁移单个文件\n * @request POST:/oss/inner/transfer/{resourceId}\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n transferByResourceId: (resourceId: string, data: TransferRequest, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/oss/inner/transfer/${resourceId}`,\n method: \"POST\",\n data: data,\n ...axiosConfig,\n }),\n };\n manage = {\n /**\n * No description\n *\n * @tags manage\n * @name ClearExpiredResource\n * @summary 删除过期文件\n * @request POST:/oss/manage/clear-expired-resource\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n clearExpiredResource: (axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/oss/manage/clear-expired-resource`,\n method: \"POST\",\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags manage\n * @name Resource\n * @summary 列出资源\n * @request GET:/oss/manage/resource\n * @response `200` `PageResultFileObjectEntity` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n resource: (query: ResourceParams2, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<PageResultFileObjectEntity, void>({\n url: `/oss/manage/resource`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags manage\n * @name DeleteResourceById\n * @summary 删除文件\n * @request DELETE:/oss/manage/resource/{id}\n * @response `200` `void` OK\n * @response `204` `void` No Content\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n */\n deleteResourceById: (id: string, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/oss/manage/resource/${id}`,\n method: \"DELETE\",\n ...axiosConfig,\n }),\n };\n}\n\nimport { httpClient } from \"./_request\";\n\nexport const ossApi = new Api(httpClient);\n"],"names":["httpClient","request","config","Error","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","ContentType","Base64File","FileObjectEntity","FileObjectMeta","PageResultFileObjectEntity","TransferRequest","ResourceParams","UploadParams","ByIdParams","ConvertByIdParams","ThumbnailByIdParams","CreateBucketParams","ResourceMetaParams","DeleteResourceRemoveByIdParams","ResourceUploadParams","ResourceConvertByIdParams","ResourceParams2","ossApi","constructor","http","resource","query","axiosConfig","this","url","method","params","upload","data","uploadBase64","byId","id","convertById","metaById","thumbnailById","inner","createBucket","resourceMeta","deleteResourceRemoveById","resourceUpload","resourceConvertById","resourceMetaById","transfer","transferByResourceId","resourceId","manage","clearExpiredResource","deleteResourceById"],"sourceRoot":""}
1
+ {"version":3,"file":"oss.js","mappings":"yDAUO,MAAMA,EAAyB,CACrCC,QAAQC,GAEN,MAAM,IAAIC,MAAM,iCAElB,E,GCdGC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaE,QAGrB,IAAIC,EAASN,EAAyBE,GAAY,CAGjDG,QAAS,CAAC,GAOX,OAHAE,EAAoBL,GAAUI,EAAQA,EAAOD,QAASJ,GAG/CK,EAAOD,OACf,CCrBAJ,EAAoBO,EAAI,CAACH,EAASI,KACjC,IAAI,IAAIC,KAAOD,EACXR,EAAoBU,EAAEF,EAAYC,KAAST,EAAoBU,EAAEN,EAASK,IAC5EE,OAAOC,eAAeR,EAASK,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDT,EAAoBU,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFhB,EAAoBoB,EAAKhB,IACH,oBAAXiB,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAeR,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAeR,EAAS,aAAc,CAAEmB,OAAO,GAAO,E,kkBCoZlDC,E,q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AoB,CAAChB,EAAYb,EAAkC,CAAC,IAClEC,KAAKJ,KAAKnD,QAAO,eACfwD,IAAK,wBAAwBW,IAC7BV,OAAQ,UACLH,KAngBPC,KAAKJ,KAAOA,CACd,GAygB4B,I","sources":["webpack://nestjs-vue3-ssr/./dist/modules/api/_request.ts","webpack://nestjs-vue3-ssr/webpack/bootstrap","webpack://nestjs-vue3-ssr/webpack/runtime/define property getters","webpack://nestjs-vue3-ssr/webpack/runtime/hasOwnProperty shorthand","webpack://nestjs-vue3-ssr/webpack/runtime/make namespace object","webpack://nestjs-vue3-ssr/./dist/modules/api/oss.ts"],"sourcesContent":["\nimport { AxiosRequestConfig, AxiosResponse } from 'axios'\n\nlet isSetup = false\n\ninterface HttpClient {\n\trequest: <T = any, _E = any>(config: AxiosRequestConfig) => Promise<T>\n}\n\n//@ts-ignore\nexport const httpClient: HttpClient = {\n\trequest(config: AxiosRequestConfig):any {\n\t\tif (!isSetup) {\n\t\t\tthrow new Error('please setup http client first')\n\t\t}\n\t},\n}\n\nexport const setupApi = (request: HttpClient['request']) => {\n\thttpClient.request = request\n\tisSetup = true\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export class Base64FileUpload {\n /** base64 */\n \"base64\"?: string;\n\n /** bucket */\n bucket?: string;\n\n /**\n * 是否压缩\n * @example false\n */\n compress?: boolean;\n\n /** 文件类型。例子:image/jpeg、image/png */\n contentType?: string;\n\n /** endpoint */\n endpoint?: string;\n\n /**\n * 过期时间\n * @format date-time\n */\n expireAt?: string;\n\n /** 文件名 */\n fileName?: string;\n\n /**\n * 图片压缩高度\n * @format int32\n */\n h?: number;\n\n /** objectId */\n objectId?: string;\n\n /**\n * 是否覆盖\n * @example false\n */\n overwrite?: boolean;\n\n /**\n * 图片压缩质量 默认:75\n * @format int32\n */\n q?: number;\n\n /**\n * 图片压缩宽度\n * @format int32\n */\n w?: number;\n}\n\nexport class BatchTransferToRemoteRequest {\n bucket?: string;\n endpoint?: string;\n excludeContentType?: string[];\n remote?: string;\n\n /** @format date-time */\n timeBegin: string;\n\n /** @format date-time */\n timeEnd: string;\n}\n\nexport class FileObjectEntity {\n bucket: string;\n contentType: string;\n deleted: boolean;\n endpoint: string;\n\n /** @format date-time */\n expireAt: string;\n fileName: string;\n id: string;\n path: string;\n\n /** @format int64 */\n size: number;\n\n /** @format date-time */\n time: string;\n user: string;\n}\n\nexport class FileObjectMeta {\n contentType: string;\n deleted: boolean;\n\n /** @format date-time */\n expireAt: string;\n fileName: string;\n id: string;\n\n /** @format int64 */\n size: number;\n}\n\nexport class PageResultFileObjectEntity {\n list: FileObjectEntity[];\n\n /** @format int64 */\n total: number;\n}\n\nexport type StreamingResponseBody = any;\n\nexport class TransferToEndpointRequest {\n bucket?: string;\n endpoint?: string;\n excludeContentType?: string[];\n}\n\nexport class TransferToRemoteRequest {\n bucket?: string;\n endpoint?: string;\n excludeContentType?: string[];\n remote?: string;\n}\n\nexport class URLFileUpload {\n /** bucket */\n bucket?: string;\n\n /**\n * 是否压缩\n * @example false\n */\n compress?: boolean;\n\n /** endpoint */\n endpoint?: string;\n\n /**\n * 过期时间\n * @format date-time\n */\n expireAt?: string;\n\n /**\n * 图片压缩高度\n * @format int32\n */\n h?: number;\n\n /** objectId */\n objectId?: string;\n\n /**\n * 是否覆盖\n * @example false\n */\n overwrite?: boolean;\n\n /**\n * 图片压缩质量 默认:75\n * @format int32\n */\n q?: number;\n\n /** url */\n url?: string;\n\n /**\n * 图片压缩宽度\n * @format int32\n */\n w?: number;\n}\n\nexport class ResourceParams {\n /** id */\n id: string;\n\n /** format */\n format?: string;\n\n /** withMimeType */\n withMimeType?: boolean;\n}\n\nexport class UploadPayload {\n /**\n * file\n * @format binary\n */\n file: File;\n}\n\nexport class UploadParams {\n /** bucket */\n bucket?: string;\n\n /** endpoint */\n endpoint?: string;\n\n /**\n * expireAt\n * @format int64\n */\n expireAt?: number;\n\n /** objectId */\n objectId?: string;\n\n /** overwrite */\n overwrite?: boolean;\n\n /** compress */\n compress?: boolean;\n\n /**\n * w\n * @format int32\n */\n w?: number;\n\n /**\n * h\n * @format int32\n */\n h?: number;\n\n /**\n * q\n * @format int32\n */\n q?: number;\n}\n\nexport class ByIdParams {\n /** format */\n format?: string;\n\n /** withMimeType */\n withMimeType?: boolean;\n\n /** id */\n id: string;\n}\n\nexport class ConvertByIdParams {\n /** 目标类型,如: image/jpeg */\n type: string;\n\n /** 是否强制重新生成 */\n forceReconvert?: boolean;\n\n /** id */\n id: string;\n}\n\nexport class ThumbnailByIdParams {\n /**\n * h\n * @format int32\n */\n h?: number;\n\n /**\n * w\n * @format int32\n */\n w?: number;\n\n /**\n * q\n * @format int32\n */\n q?: number;\n\n /** format */\n format?: string;\n\n /** withMimeType */\n withMimeType?: boolean;\n\n /** id */\n id: string;\n}\n\nexport class CreateBucketParams {\n /** endpoint */\n endpoint: string;\n\n /** bucket */\n bucket: string;\n}\n\nexport class ResourceMetaParams {\n /** id */\n id: string;\n}\n\nexport class DeleteResourceRemoveByIdParams {\n /** forceDelete */\n forceDelete?: boolean;\n\n /** id */\n id: string;\n}\n\n/**\n * @format binary\n */\nexport type ResourceUploadPayload = File;\n\nexport class ResourceUploadParams {\n /** user */\n user?: string;\n\n /**\n * time\n * @format int64\n */\n time?: number;\n\n /**\n * expireAt\n * @format int64\n */\n expireAt?: number;\n\n /** bucket */\n bucket?: string;\n\n /** endpoint */\n endpoint?: string;\n\n /** objectId */\n objectId?: string;\n\n /** overwrite */\n overwrite?: boolean;\n}\n\nexport class ResourceConvertByIdParams {\n /** 目标类型,如: image/jpeg */\n type: string;\n\n /** 是否强制重新生成 */\n forceReconvert?: boolean;\n\n /** id */\n id: string;\n}\n\nexport class ResourceParams4 {\n bucket?: string;\n contentTypeLike?: string;\n deleted?: boolean;\n endpoint?: string;\n\n /** @format date-time */\n expireAtBegin?: string;\n\n /** @format date-time */\n expireAtEnd?: string;\n id?: string;\n orderBy?: string[];\n\n /** @format int32 */\n pageIndex?: number;\n\n /** @format int32 */\n pageSize?: number;\n pathLike?: string;\n\n /** @format date-time */\n timeBegin?: string;\n\n /** @format date-time */\n timeEnd?: string;\n user?: string;\n}\n\nimport { AxiosRequestConfig, ResponseType } from \"axios\";\n\nexport type QueryParamsType = Record<string | number, any>;\n\nexport interface FullRequestParams extends Omit<AxiosRequestConfig, \"data\" | \"params\" | \"url\" | \"responseType\"> {\n /** set parameter to `true` for call `securityWorker` for this request */\n secure?: boolean;\n /** request path */\n url: string;\n /** content type of request body */\n type?: ContentType;\n /** query params */\n params?: QueryParamsType;\n /** format of response (i.e. response.json() -> format: \"json\") */\n ResponseType?: ResponseType;\n /** request body */\n body?: unknown;\n}\n\nexport type RequestParams = Omit<FullRequestParams, \"body\" | \"method\" | \"query\" | \"path\">;\n\nexport interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, \"data\" | \"cancelToken\"> {\n securityWorker?: (\n securityData: SecurityDataType | null,\n ) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;\n secure?: boolean;\n ResponseType?: ResponseType;\n}\n\nexport enum ContentType {\n Json = \"application/json\",\n FormData = \"multipart/form-data\",\n UrlEncoded = \"application/x-www-form-urlencoded\",\n}\n\ninterface HttpClient {\n request: <T = any, _E = any>(config: AxiosRequestConfig) => Promise<T>;\n}\n\n/**\n * @title OSS\n * @version 1.0\n * @baseUrl http://192.168.200.12:5000\n *\n * OSS\n */\nclass Api {\n private http: HttpClient;\n\n constructor(http: HttpClient) {\n this.http = http;\n }\n\n resource = {\n /**\n * @description format: base64/redirect-url\n *\n * @tags resource\n * @name Resource\n * @summary 文件下载\n * @request GET:/oss/resource\n * @response `200` `StreamingResponseBody` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n resource: (query: ResourceParams, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<StreamingResponseBody, void>({\n url: `/oss/resource`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags resource\n * @name TransferToEndpointByResourceId\n * @summary 迁移单个文件到其他Endpoint\n * @request POST:/oss/resource/transfer-to-endpoint/{resourceId}\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n transferToEndpointByResourceId: (\n resourceId: string,\n data: TransferToRemoteRequest,\n axiosConfig: AxiosRequestConfig = {},\n ) =>\n this.http.request<void, void>({\n url: `/oss/resource/transfer-to-endpoint/${resourceId}`,\n method: \"POST\",\n data: data,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags resource\n * @name TransferToRemoteByResourceId\n * @summary 迁移单个文件到远端服务\n * @request POST:/oss/resource/transfer-to-remote/{resourceId}\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n transferToRemoteByResourceId: (\n resourceId: string,\n data: TransferToRemoteRequest,\n axiosConfig: AxiosRequestConfig = {},\n ) =>\n this.http.request<void, void>({\n url: `/oss/resource/transfer-to-remote/${resourceId}`,\n method: \"POST\",\n data: data,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags resource\n * @name Upload\n * @summary 文件上传\n * @request POST:/oss/resource/upload\n * @response `200` `string` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n upload: (query: UploadParams, data: UploadPayload, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<string, void>({\n url: `/oss/resource/upload`,\n method: \"POST\",\n params: query,\n data: data,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags resource\n * @name UploadBase64\n * @summary 文件上传 - base64形式\n * @request POST:/oss/resource/upload-base64\n * @response `200` `string` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n uploadBase64: (data: Base64FileUpload, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<string, void>({\n url: `/oss/resource/upload-base64`,\n method: \"POST\",\n data: data,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags resource\n * @name UploadUrl\n * @summary 文件上传 - url形式\n * @request POST:/oss/resource/upload-url\n * @response `200` `string` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n uploadUrl: (data: URLFileUpload, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<string, void>({\n url: `/oss/resource/upload-url`,\n method: \"POST\",\n data: data,\n ...axiosConfig,\n }),\n\n /**\n * @description format: base64/redirect-url\n *\n * @tags resource\n * @name ById\n * @summary 文件下载\n * @request GET:/oss/resource/{id}\n * @response `200` `StreamingResponseBody` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n byId: ({ id, ...query }: ByIdParams, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<StreamingResponseBody, void>({\n url: `/oss/resource/${id}`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags resource\n * @name ConvertById\n * @summary 格式转换\n * @request POST:/oss/resource/{id}/convert\n * @response `200` `FileObjectMeta` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n convertById: ({ id, ...query }: ConvertByIdParams, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<FileObjectMeta, void>({\n url: `/oss/resource/${id}/convert`,\n method: \"POST\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags resource\n * @name MetaById\n * @summary 文件元信息\n * @request GET:/oss/resource/{id}/meta\n * @response `200` `FileObjectMeta` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n metaById: (id: string, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<FileObjectMeta, void>({\n url: `/oss/resource/${id}/meta`,\n method: \"GET\",\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags resource\n * @name ThumbnailById\n * @summary 图片缩略图\n * @request GET:/oss/resource/{id}/thumbnail\n * @response `200` `StreamingResponseBody` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n thumbnailById: ({ id, ...query }: ThumbnailByIdParams, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<StreamingResponseBody, void>({\n url: `/oss/resource/${id}/thumbnail`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n };\n inner = {\n /**\n * No description\n *\n * @tags inner\n * @name CreateBucket\n * @summary 创建bucket\n * @request POST:/oss/inner/create-bucket\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n createBucket: (query: CreateBucketParams, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/oss/inner/create-bucket`,\n method: \"POST\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name ResourceMeta\n * @summary 文件元信息\n * @request GET:/oss/inner/resource-meta\n * @response `200` `FileObjectMeta` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n resourceMeta: (query: ResourceMetaParams, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<FileObjectMeta, void>({\n url: `/oss/inner/resource-meta`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name DeleteResourceRemoveById\n * @summary 删除文件\n * @request DELETE:/oss/inner/resource/remove/{id}\n * @response `200` `void` OK\n * @response `204` `void` No Content\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n */\n deleteResourceRemoveById: (\n { id, ...query }: DeleteResourceRemoveByIdParams,\n axiosConfig: AxiosRequestConfig = {},\n ) =>\n this.http.request<void, void>({\n url: `/oss/inner/resource/remove/${id}`,\n method: \"DELETE\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name ResourceUpload\n * @summary 文件上传\n * @request POST:/oss/inner/resource/upload\n * @response `200` `string` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n resourceUpload: (query: ResourceUploadParams, data: ResourceUploadPayload, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<string, void>({\n url: `/oss/inner/resource/upload`,\n method: \"POST\",\n params: query,\n data: data,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name ResourceUploadBase64\n * @summary 文件上传 - base64形式\n * @request POST:/oss/inner/resource/upload-base64\n * @response `200` `string` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n resourceUploadBase64: (data: Base64FileUpload, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<string, void>({\n url: `/oss/inner/resource/upload-base64`,\n method: \"POST\",\n data: data,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name ResourceUploadUrl\n * @summary 文件上传 - url形式\n * @request POST:/oss/inner/resource/upload-url\n * @response `200` `string` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n resourceUploadUrl: (data: URLFileUpload, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<string, void>({\n url: `/oss/inner/resource/upload-url`,\n method: \"POST\",\n data: data,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name ResourceConvertById\n * @summary 格式转换\n * @request POST:/oss/inner/resource/{id}/convert\n * @response `200` `FileObjectMeta` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n resourceConvertById: ({ id, ...query }: ResourceConvertByIdParams, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<FileObjectMeta, void>({\n url: `/oss/inner/resource/${id}/convert`,\n method: \"POST\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name ResourceMetaById\n * @summary 文件元信息\n * @request GET:/oss/inner/resource/{id}/meta\n * @response `200` `FileObjectMeta` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n resourceMetaById: (id: string, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<FileObjectMeta, void>({\n url: `/oss/inner/resource/${id}/meta`,\n method: \"GET\",\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name TransferToEndpointByResourceId\n * @summary 迁移单个文件到其他Endpoint\n * @request POST:/oss/inner/transfer-to-endpoint/{resourceId}\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n transferToEndpointByResourceId: (\n resourceId: string,\n data: TransferToEndpointRequest,\n axiosConfig: AxiosRequestConfig = {},\n ) =>\n this.http.request<void, void>({\n url: `/oss/inner/transfer-to-endpoint/${resourceId}`,\n method: \"POST\",\n data: data,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name TransferToRemote\n * @summary 迁移文件\n * @request POST:/oss/inner/transfer-to-remote\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n transferToRemote: (data: BatchTransferToRemoteRequest, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/oss/inner/transfer-to-remote`,\n method: \"POST\",\n data: data,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name TransferToRemoteByResourceId\n * @summary 迁移单个文件到远端服务\n * @request POST:/oss/inner/transfer-to-remote/{resourceId}\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n transferToRemoteByResourceId: (\n resourceId: string,\n data: TransferToRemoteRequest,\n axiosConfig: AxiosRequestConfig = {},\n ) =>\n this.http.request<void, void>({\n url: `/oss/inner/transfer-to-remote/${resourceId}`,\n method: \"POST\",\n data: data,\n ...axiosConfig,\n }),\n };\n manage = {\n /**\n * No description\n *\n * @tags manage\n * @name ClearExpiredResource\n * @summary 删除过期文件\n * @request POST:/oss/manage/clear-expired-resource\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n clearExpiredResource: (axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/oss/manage/clear-expired-resource`,\n method: \"POST\",\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags manage\n * @name Resource\n * @summary 列出资源\n * @request GET:/oss/manage/resource\n * @response `200` `PageResultFileObjectEntity` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n resource: (query: ResourceParams4, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<PageResultFileObjectEntity, void>({\n url: `/oss/manage/resource`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags manage\n * @name DeleteResourceById\n * @summary 删除文件\n * @request DELETE:/oss/manage/resource/{id}\n * @response `200` `void` OK\n * @response `204` `void` No Content\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n */\n deleteResourceById: (id: string, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/oss/manage/resource/${id}`,\n method: \"DELETE\",\n ...axiosConfig,\n }),\n };\n}\n\nimport { httpClient } from \"./_request\";\n\nexport const ossApi = new Api(httpClient);\n"],"names":["httpClient","request","config","Error","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","ContentType","Base64FileUpload","BatchTransferToRemoteRequest","FileObjectEntity","FileObjectMeta","PageResultFileObjectEntity","TransferToEndpointRequest","TransferToRemoteRequest","URLFileUpload","ResourceParams","UploadPayload","UploadParams","ByIdParams","ConvertByIdParams","ThumbnailByIdParams","CreateBucketParams","ResourceMetaParams","DeleteResourceRemoveByIdParams","ResourceUploadParams","ResourceConvertByIdParams","ResourceParams4","ossApi","constructor","http","resource","query","axiosConfig","this","url","method","params","transferToEndpointByResourceId","resourceId","data","transferToRemoteByResourceId","upload","uploadBase64","uploadUrl","byId","id","convertById","metaById","thumbnailById","inner","createBucket","resourceMeta","deleteResourceRemoveById","resourceUpload","resourceUploadBase64","resourceUploadUrl","resourceConvertById","resourceMetaById","transferToRemote","manage","clearExpiredResource","deleteResourceById"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "szpt-driver-api",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "main": "index.js",
5
5
  "license": "private",
6
6
  "dependencies": {