@abyss-project/storage 1.0.1 → 1.0.3
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/dist/api/application-file-thumbnail.admin.api.d.ts +9 -9
- package/dist/api/application-file-thumbnail.admin.api.js +36 -36
- package/dist/api/application-file-thumbnail.api.d.ts +15 -15
- package/dist/api/application-file-thumbnail.api.js +64 -64
- package/dist/api/application-file.admin.api.d.ts +22 -22
- package/dist/api/application-file.admin.api.js +88 -88
- package/dist/api/application-file.api.d.ts +41 -40
- package/dist/api/application-file.api.js +177 -177
- package/dist/api/application-store.admin.api.d.ts +6 -0
- package/dist/api/application-store.admin.api.js +24 -0
- package/dist/api/application-store.api.d.ts +6 -0
- package/dist/api/application-store.api.js +24 -0
- package/dist/api/application-store.public.api.d.ts +3 -0
- package/dist/api/application-store.public.api.js +12 -0
- package/dist/api/application-webhook-history.admin.api.d.ts +3 -3
- package/dist/api/application-webhook-history.admin.api.js +12 -12
- package/dist/api/application-webhook-history.api.d.ts +3 -3
- package/dist/api/application-webhook-history.api.js +12 -12
- package/dist/api/application-webhook.admin.api.d.ts +7 -7
- package/dist/api/application-webhook.admin.api.js +28 -28
- package/dist/api/application-webhook.api.d.ts +7 -7
- package/dist/api/application-webhook.api.js +28 -28
- package/dist/api/application.admin.api.d.ts +6 -6
- package/dist/api/application.admin.api.js +24 -24
- package/dist/api/application.api.d.ts +3 -3
- package/dist/api/application.api.js +12 -12
- package/dist/api/collection.api.d.ts +3 -3
- package/dist/api/collection.api.js +12 -12
- package/dist/api/generics/download.request.d.ts +2 -2
- package/dist/api/generics/download.request.js +10 -10
- package/dist/api/generics/index.d.ts +2 -2
- package/dist/api/generics/index.js +18 -18
- package/dist/api/generics/upload.request.d.ts +3 -3
- package/dist/api/generics/upload.request.js +10 -10
- package/dist/api/index.d.ts +18 -15
- package/dist/api/index.js +34 -31
- package/dist/api/monitor.api.d.ts +2 -2
- package/dist/api/monitor.api.js +8 -8
- package/dist/api/storage.admin.api.d.ts +4 -4
- package/dist/api/storage.admin.api.js +16 -16
- package/dist/api/stream-media.admin.api.d.ts +7 -7
- package/dist/api/stream-media.admin.api.js +35 -35
- package/dist/api/stream-media.api.d.ts +4 -4
- package/dist/api/stream-media.api.js +18 -18
- package/dist/index.d.ts +21 -21
- package/dist/index.js +91 -89
- package/dist/types/enum/algorithm.enum.d.ts +3 -3
- package/dist/types/enum/algorithm.enum.js +7 -7
- package/dist/types/enum/api-error.enum.d.ts +31 -31
- package/dist/types/enum/api-error.enum.js +36 -36
- package/dist/types/enum/checksum-algorithm.enum.d.ts +5 -5
- package/dist/types/enum/checksum-algorithm.enum.js +9 -9
- package/dist/types/enum/index.d.ts +9 -9
- package/dist/types/enum/index.js +25 -25
- package/dist/types/enum/mime-type-thumbnail.enum.d.ts +15 -15
- package/dist/types/enum/mime-type-thumbnail.enum.js +20 -20
- package/dist/types/enum/picture-collection-source.enum.d.ts +3 -3
- package/dist/types/enum/picture-collection-source.enum.js +7 -7
- package/dist/types/enum/picture-collection-type.enum.d.ts +3 -3
- package/dist/types/enum/picture-collection-type.enum.js +7 -7
- package/dist/types/enum/pre-sign-url-type.enum.d.ts +5 -5
- package/dist/types/enum/pre-sign-url-type.enum.js +9 -9
- package/dist/types/enum/stream-media-type.enum.d.ts +4 -4
- package/dist/types/enum/stream-media-type.enum.js +8 -8
- package/dist/types/enum/webhook-type.enum.d.ts +5 -5
- package/dist/types/enum/webhook-type.enum.js +9 -9
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.js +19 -19
- package/dist/types/interface/api/index.d.ts +38 -32
- package/dist/types/interface/api/index.js +54 -48
- package/dist/types/interface/api/requests/application-file-thumbnail.admin.request.d.ts +37 -37
- package/dist/types/interface/api/requests/application-file-thumbnail.admin.request.js +2 -2
- package/dist/types/interface/api/requests/application-file-thumbnail.request.d.ts +56 -56
- package/dist/types/interface/api/requests/application-file-thumbnail.request.js +2 -2
- package/dist/types/interface/api/requests/application-file.admin.request.d.ts +144 -144
- package/dist/types/interface/api/requests/application-file.admin.request.js +2 -2
- package/dist/types/interface/api/requests/application-file.request.d.ts +228 -228
- package/dist/types/interface/api/requests/application-file.request.js +2 -2
- package/dist/types/interface/api/requests/application-store.admin.request.d.ts +34 -0
- package/dist/types/interface/api/requests/{abyss.admin.request.js → application-store.admin.request.js} +2 -2
- package/dist/types/interface/api/requests/application-store.public.request.d.ts +8 -0
- package/dist/types/interface/api/requests/{logger.admin.request.js → application-store.public.request.js} +2 -2
- package/dist/types/interface/api/requests/application-store.request.d.ts +39 -0
- package/dist/types/interface/api/requests/{picture-collection.request.js → application-store.request.js} +2 -2
- package/dist/types/interface/api/requests/application-webhook-history.admin.request.d.ts +14 -14
- package/dist/types/interface/api/requests/application-webhook-history.admin.request.js +2 -2
- package/dist/types/interface/api/requests/application-webhook-history.request.d.ts +17 -17
- package/dist/types/interface/api/requests/application-webhook-history.request.js +2 -2
- package/dist/types/interface/api/requests/application-webhook.admin.request.d.ts +33 -33
- package/dist/types/interface/api/requests/application-webhook.admin.request.js +2 -2
- package/dist/types/interface/api/requests/application-webhook.request.d.ts +43 -43
- package/dist/types/interface/api/requests/application-webhook.request.js +2 -2
- package/dist/types/interface/api/requests/application.admin.request.d.ts +16 -16
- package/dist/types/interface/api/requests/application.admin.request.js +2 -2
- package/dist/types/interface/api/requests/application.request.d.ts +7 -7
- package/dist/types/interface/api/requests/application.request.js +2 -2
- package/dist/types/interface/api/requests/collection.request.d.ts +10 -10
- package/dist/types/interface/api/requests/collection.request.js +2 -2
- package/dist/types/interface/api/requests/storage.admin.request.d.ts +3 -3
- package/dist/types/interface/api/requests/storage.admin.request.js +2 -2
- package/dist/types/interface/api/requests/stream-media.admin.request.d.ts +28 -28
- package/dist/types/interface/api/requests/stream-media.admin.request.js +2 -2
- package/dist/types/interface/api/requests/stream-media.request.d.ts +12 -12
- package/dist/types/interface/api/requests/stream-media.request.js +2 -2
- package/dist/types/interface/api/responses/application-file-thumbnail.admin.response.d.ts +30 -30
- package/dist/types/interface/api/responses/application-file-thumbnail.admin.response.js +2 -2
- package/dist/types/interface/api/responses/application-file-thumbnail.response.d.ts +36 -35
- package/dist/types/interface/api/responses/application-file-thumbnail.response.js +2 -2
- package/dist/types/interface/api/responses/application-file.admin.response.d.ts +80 -80
- package/dist/types/interface/api/responses/application-file.admin.response.js +2 -2
- package/dist/types/interface/api/responses/application-file.response.d.ts +96 -95
- package/dist/types/interface/api/responses/application-file.response.js +2 -2
- package/dist/types/interface/api/responses/application-store.admin.response.d.ts +17 -0
- package/dist/types/interface/api/{requests/user-application-file-thumbnail.admin.request.js → responses/application-store.admin.response.js} +2 -2
- package/dist/types/interface/api/responses/application-store.public.response.d.ts +21 -0
- package/dist/types/interface/api/responses/application-store.public.response.js +2 -0
- package/dist/types/interface/api/responses/application-store.response.d.ts +17 -0
- package/dist/types/interface/api/responses/application-store.response.js +2 -0
- package/dist/types/interface/api/responses/application-webhook-history.admin.response.d.ts +7 -7
- package/dist/types/interface/api/responses/application-webhook-history.admin.response.js +2 -2
- package/dist/types/interface/api/responses/application-webhook-history.response.d.ts +7 -7
- package/dist/types/interface/api/responses/application-webhook-history.response.js +2 -2
- package/dist/types/interface/api/responses/application-webhook.admin.response.d.ts +21 -21
- package/dist/types/interface/api/responses/application-webhook.admin.response.js +2 -2
- package/dist/types/interface/api/responses/application-webhook.response.d.ts +21 -21
- package/dist/types/interface/api/responses/application-webhook.response.js +2 -2
- package/dist/types/interface/api/responses/application.admin.response.d.ts +33 -33
- package/dist/types/interface/api/responses/application.admin.response.js +2 -2
- package/dist/types/interface/api/responses/application.response.d.ts +14 -14
- package/dist/types/interface/api/responses/application.response.js +2 -2
- package/dist/types/interface/api/responses/collection.response.d.ts +43 -43
- package/dist/types/interface/api/responses/collection.response.js +2 -2
- package/dist/types/interface/api/responses/monitor.response.d.ts +7 -7
- package/dist/types/interface/api/responses/monitor.response.js +2 -2
- package/dist/types/interface/api/responses/stream-media.admin.response.d.ts +20 -20
- package/dist/types/interface/api/responses/stream-media.admin.response.js +2 -2
- package/dist/types/interface/api/responses/stream-media.response.d.ts +10 -9
- package/dist/types/interface/api/responses/stream-media.response.js +2 -2
- package/dist/types/interface/api/type-message/api-error.d.ts +8 -8
- package/dist/types/interface/api/type-message/api-error.js +2 -2
- package/dist/types/interface/api/type-message/base-order.d.ts +4 -4
- package/dist/types/interface/api/type-message/base-order.js +2 -2
- package/dist/types/interface/api/type-message/base-paginate.d.ts +10 -10
- package/dist/types/interface/api/type-message/base-paginate.js +2 -2
- package/dist/types/interface/api/type-message/response.d.ts +5 -5
- package/dist/types/interface/api/type-message/response.js +2 -2
- package/dist/types/interface/constants/application-store.constant.d.ts +1 -0
- package/dist/types/interface/constants/application-store.constant.js +4 -0
- package/dist/types/interface/constants/index.d.ts +1 -0
- package/dist/types/interface/constants/index.js +17 -0
- package/dist/types/interface/dto/archive.d.ts +34 -34
- package/dist/types/interface/dto/archive.js +2 -2
- package/dist/types/interface/dto/index.d.ts +3 -3
- package/dist/types/interface/dto/index.js +19 -19
- package/dist/types/interface/dto/metadata.d.ts +13 -13
- package/dist/types/interface/dto/metadata.js +2 -2
- package/dist/types/interface/dto/webhooks.d.ts +29 -29
- package/dist/types/interface/dto/webhooks.js +2 -2
- package/dist/types/interface/index.d.ts +11 -9
- package/dist/types/interface/index.js +27 -25
- package/dist/types/interface/models/application-file-thumbnail.model.d.ts +15 -15
- package/dist/types/interface/models/application-file-thumbnail.model.js +2 -2
- package/dist/types/interface/models/application-file.model.d.ts +28 -28
- package/dist/types/interface/models/application-file.model.js +2 -2
- package/dist/types/interface/models/application-store-entry.model.d.ts +14 -0
- package/dist/types/interface/models/application-store-entry.model.js +2 -0
- package/dist/types/interface/models/application-webhook-history.model.d.ts +16 -16
- package/dist/types/interface/models/application-webhook-history.model.js +2 -2
- package/dist/types/interface/models/application-webhook.model.d.ts +17 -17
- package/dist/types/interface/models/application-webhook.model.js +2 -2
- package/dist/types/interface/models/application.model.d.ts +14 -12
- package/dist/types/interface/models/application.model.js +2 -2
- package/dist/types/interface/models/pre-sign-url.model.d.ts +11 -11
- package/dist/types/interface/models/pre-sign-url.model.js +2 -2
- package/dist/types/interface/models/stream-media.model.d.ts +9 -9
- package/dist/types/interface/models/stream-media.model.js +2 -2
- package/dist/types/models/index.d.ts +1 -1
- package/dist/types/models/index.js +17 -17
- package/dist/types/models/transfer.model.d.ts +36 -36
- package/dist/types/models/transfer.model.js +73 -73
- package/dist/utils/error.utils.d.ts +15 -15
- package/dist/utils/error.utils.js +24 -24
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +17 -17
- package/package.json +5 -5
- package/dist/api/abyss.admin.api.d.ts +0 -2
- package/dist/api/abyss.admin.api.js +0 -8
- package/dist/api/logger.admin.api.d.ts +0 -3
- package/dist/api/logger.admin.api.js +0 -14
- package/dist/api/picture-collection.api.d.ts +0 -2
- package/dist/api/picture-collection.api.js +0 -10
- package/dist/api/user-application-file-thumbnail.admin.api.d.ts +0 -9
- package/dist/api/user-application-file-thumbnail.admin.api.js +0 -36
- package/dist/api/user-application-file-thumbnail.api.d.ts +0 -10
- package/dist/api/user-application-file-thumbnail.api.js +0 -46
- package/dist/api/user-application-file.admin.api.d.ts +0 -15
- package/dist/api/user-application-file.admin.api.js +0 -62
- package/dist/api/user-application-file.api.d.ts +0 -31
- package/dist/api/user-application-file.api.js +0 -134
- package/dist/api/user-application-webhook-history.admin.api.d.ts +0 -3
- package/dist/api/user-application-webhook-history.admin.api.js +0 -12
- package/dist/api/user-application-webhook-history.api.d.ts +0 -3
- package/dist/api/user-application-webhook-history.api.js +0 -12
- package/dist/api/user-application-webhook.admin.api.d.ts +0 -7
- package/dist/api/user-application-webhook.admin.api.js +0 -28
- package/dist/api/user-application-webhook.api.d.ts +0 -7
- package/dist/api/user-application-webhook.api.js +0 -28
- package/dist/api/user-application.admin.api.d.ts +0 -7
- package/dist/api/user-application.admin.api.js +0 -28
- package/dist/api/user-application.api.d.ts +0 -5
- package/dist/api/user-application.api.js +0 -20
- package/dist/api/user-file-thumbnail.admin.api.d.ts +0 -9
- package/dist/api/user-file-thumbnail.admin.api.js +0 -36
- package/dist/api/user-file-thumbnail.api.d.ts +0 -10
- package/dist/api/user-file-thumbnail.api.js +0 -46
- package/dist/api/user-file.admin.api.d.ts +0 -15
- package/dist/api/user-file.admin.api.js +0 -62
- package/dist/api/user-file.api.d.ts +0 -29
- package/dist/api/user-file.api.js +0 -137
- package/dist/api/user-webhook-history.admin.api.d.ts +0 -3
- package/dist/api/user-webhook-history.admin.api.js +0 -12
- package/dist/api/user-webhook-history.api.d.ts +0 -3
- package/dist/api/user-webhook-history.api.js +0 -12
- package/dist/api/user-webhook.admin.api.d.ts +0 -7
- package/dist/api/user-webhook.admin.api.js +0 -28
- package/dist/api/user-webhook.api.d.ts +0 -7
- package/dist/api/user-webhook.api.js +0 -28
- package/dist/api/user.admin.api.d.ts +0 -5
- package/dist/api/user.admin.api.js +0 -23
- package/dist/api/user.api.d.ts +0 -4
- package/dist/api/user.api.js +0 -17
- package/dist/types/enum/log-type.enum.d.ts +0 -6
- package/dist/types/enum/log-type.enum.js +0 -10
- package/dist/types/interface/api/requests/abyss.admin.request.d.ts +0 -4
- package/dist/types/interface/api/requests/logger.admin.request.d.ts +0 -10
- package/dist/types/interface/api/requests/picture-collection.request.d.ts +0 -3
- package/dist/types/interface/api/requests/user-application-file-thumbnail.admin.request.d.ts +0 -35
- package/dist/types/interface/api/requests/user-application-file-thumbnail.request.d.ts +0 -50
- package/dist/types/interface/api/requests/user-application-file-thumbnail.request.js +0 -2
- package/dist/types/interface/api/requests/user-application-file.admin.request.d.ts +0 -90
- package/dist/types/interface/api/requests/user-application-file.admin.request.js +0 -2
- package/dist/types/interface/api/requests/user-application-file.request.d.ts +0 -141
- package/dist/types/interface/api/requests/user-application-file.request.js +0 -2
- package/dist/types/interface/api/requests/user-application-webhook-history.admin.request.d.ts +0 -14
- package/dist/types/interface/api/requests/user-application-webhook-history.admin.request.js +0 -2
- package/dist/types/interface/api/requests/user-application-webhook-history.request.d.ts +0 -17
- package/dist/types/interface/api/requests/user-application-webhook-history.request.js +0 -2
- package/dist/types/interface/api/requests/user-application-webhook.admin.request.d.ts +0 -33
- package/dist/types/interface/api/requests/user-application-webhook.admin.request.js +0 -2
- package/dist/types/interface/api/requests/user-application-webhook.request.d.ts +0 -43
- package/dist/types/interface/api/requests/user-application-webhook.request.js +0 -2
- package/dist/types/interface/api/requests/user-application.admin.request.d.ts +0 -18
- package/dist/types/interface/api/requests/user-application.admin.request.js +0 -2
- package/dist/types/interface/api/requests/user-application.request.d.ts +0 -12
- package/dist/types/interface/api/requests/user-application.request.js +0 -2
- package/dist/types/interface/api/requests/user.admin.request.d.ts +0 -21
- package/dist/types/interface/api/requests/user.admin.request.js +0 -2
- package/dist/types/interface/api/requests/user.request.d.ts +0 -3
- package/dist/types/interface/api/requests/user.request.js +0 -2
- package/dist/types/interface/api/responses/abyss.admin.response.d.ts +0 -6
- package/dist/types/interface/api/responses/abyss.admin.response.js +0 -2
- package/dist/types/interface/api/responses/logger.admin.response.d.ts +0 -7
- package/dist/types/interface/api/responses/logger.admin.response.js +0 -2
- package/dist/types/interface/api/responses/picture-collection.response.d.ts +0 -17
- package/dist/types/interface/api/responses/picture-collection.response.js +0 -2
- package/dist/types/interface/api/responses/storage.admin.response.d.ts +0 -5
- package/dist/types/interface/api/responses/storage.admin.response.js +0 -2
- package/dist/types/interface/api/responses/user-application-file-thumbnail.admin.response.d.ts +0 -30
- package/dist/types/interface/api/responses/user-application-file-thumbnail.admin.response.js +0 -2
- package/dist/types/interface/api/responses/user-application-file-thumbnail.response.d.ts +0 -33
- package/dist/types/interface/api/responses/user-application-file-thumbnail.response.js +0 -2
- package/dist/types/interface/api/responses/user-application-file.admin.response.d.ts +0 -57
- package/dist/types/interface/api/responses/user-application-file.admin.response.js +0 -2
- package/dist/types/interface/api/responses/user-application-file.response.d.ts +0 -70
- package/dist/types/interface/api/responses/user-application-file.response.js +0 -2
- package/dist/types/interface/api/responses/user-application-webhook-history.admin.response.d.ts +0 -7
- package/dist/types/interface/api/responses/user-application-webhook-history.admin.response.js +0 -2
- package/dist/types/interface/api/responses/user-application-webhook-history.response.d.ts +0 -7
- package/dist/types/interface/api/responses/user-application-webhook-history.response.js +0 -2
- package/dist/types/interface/api/responses/user-application-webhook.admin.response.d.ts +0 -21
- package/dist/types/interface/api/responses/user-application-webhook.admin.response.js +0 -2
- package/dist/types/interface/api/responses/user-application-webhook.response.d.ts +0 -21
- package/dist/types/interface/api/responses/user-application-webhook.response.js +0 -2
- package/dist/types/interface/api/responses/user-application.admin.response.d.ts +0 -25
- package/dist/types/interface/api/responses/user-application.admin.response.js +0 -2
- package/dist/types/interface/api/responses/user-application.response.d.ts +0 -19
- package/dist/types/interface/api/responses/user-application.response.js +0 -2
- package/dist/types/interface/api/responses/user.admin.response.d.ts +0 -15
- package/dist/types/interface/api/responses/user.admin.response.js +0 -2
- package/dist/types/interface/api/responses/user.response.d.ts +0 -13
- package/dist/types/interface/api/responses/user.response.js +0 -2
- package/dist/types/interface/models/log-console.model.d.ts +0 -17
- package/dist/types/interface/models/log-console.model.js +0 -2
- package/dist/types/interface/models/log-endpoint.model.d.ts +0 -22
- package/dist/types/interface/models/log-endpoint.model.js +0 -2
- package/dist/types/interface/models/picture-collection.model.d.ts +0 -17
- package/dist/types/interface/models/picture-collection.model.js +0 -2
- package/dist/types/interface/models/user-application-file-thumbnail.model.d.ts +0 -14
- package/dist/types/interface/models/user-application-file-thumbnail.model.js +0 -2
- package/dist/types/interface/models/user-application-file.model.d.ts +0 -20
- package/dist/types/interface/models/user-application-file.model.js +0 -2
- package/dist/types/interface/models/user-application-webhook-history.model.d.ts +0 -16
- package/dist/types/interface/models/user-application-webhook-history.model.js +0 -2
- package/dist/types/interface/models/user-application-webhook.model.d.ts +0 -17
- package/dist/types/interface/models/user-application-webhook.model.js +0 -2
- package/dist/types/interface/models/user-application.model.d.ts +0 -15
- package/dist/types/interface/models/user-application.model.js +0 -2
- package/dist/types/interface/models/user.model.d.ts +0 -8
- package/dist/types/interface/models/user.model.js +0 -2
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export declare const
|
|
35
|
-
export declare const
|
|
36
|
-
export declare const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export declare const
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
import { IPaginateApplicationFileQuery, IPaginateApplicationFileResponse, IGetApplicationFileParams, IGetApplicationFileResponse, IDeleteApplicationFileResponse, IDuplicateApplicationFileParams, IDuplicateApplicationFileBody, IDuplicateApplicationFileResponse, IUpdateApplicationFileParams, IUpdateApplicationFileBody, IUpdateApplicationFileResponse, IGetPreSignUrlApplicationFileBody, IGetPreSignUrlApplicationFileResponse, IUploadApplicationFileParams, IUploadApplicationFileQuery, IUploadApplicationFileResponse, IWriteApplicationFileParams, IWriteApplicationFileQuery, IWriteApplicationFileResponse, IDownloadApplicationFileParams, IEncryptApplicationFileParams, IEncryptApplicationFileResponse, IEncryptApplicationFileBody, IDecryptApplicationFileParams, IDecryptApplicationFileBody, IDecryptApplicationFileResponse, IDownloadWithPublicAccessIdApplicationFileParams, IResetPublicAccessApplicationFileParams, IResetPublicAccessApplicationFileResponse, IUnsetPublicAccessApplicationFileParams, IUnsetPublicAccessApplicationFileResponse, IDeleteMultipleApplicationFileResponse, IDeleteMultipleApplicationFileBody, IExtractArchiveApplicationFileParams, IExtractArchiveApplicationFileQuery, IExtractArchiveApplicationFileResponse, ICompressArchiveApplicationFileBody, ICompressArchiveApplicationFileResponse, ICompressArchiveApplicationFileQuery, IDuplicateMultipleApplicationFileBody, IDuplicateMultipleApplicationFileResponse, IPaginateApplicationFileParams, IDeleteMultipleApplicationFileParams, ICompressArchiveApplicationFileParams, IDuplicateMultipleApplicationFileParams, IGetPreSignUrlApplicationFileParams, IDeleteApplicationFileParams, Transfer, IListBucketApplicationFileParams, IListBucketApplicationFileQuery, IListBucketApplicationFileResponse, IDeleteBucketApplicationFileParams, IDeleteBucketApplicationFileBody, IDeleteBucketApplicationFileResponse, IRenameBucketApplicationFileParams, IRenameBucketApplicationFileBody, IRenameBucketApplicationFileResponse, IUpdateBucketApplicationFileParams, IUpdateBucketApplicationFileBody, IUpdateBucketApplicationFileResponse, ICustomPublicAccessDownloadIdApplicationFileParams, IUploadFromUrlApplicationFileParams, IUploadFromUrlApplicationFileResponse, IUploadFromUrlApplicationFileBody, ISaveFreepikApplicationFileParams, ISaveFreepikApplicationFileBody, ISaveFreepikApplicationFileResponse } from '../types';
|
|
4
|
+
import { ReadStream } from 'fs-extra';
|
|
5
|
+
export declare const PUBLIC_ACCESS_PASSWORD_HEADER_NAME = "user-file-public-access-password";
|
|
6
|
+
export declare const paginateApplicationFile: (params: IPaginateApplicationFileParams, query: IPaginateApplicationFileQuery) => Promise<IPaginateApplicationFileResponse>;
|
|
7
|
+
export declare const listBucketApplicationFile: (params: IListBucketApplicationFileParams, query: IListBucketApplicationFileQuery) => Promise<IListBucketApplicationFileResponse>;
|
|
8
|
+
export declare const getApplicationFile: (params: IGetApplicationFileParams) => Promise<IGetApplicationFileResponse>;
|
|
9
|
+
export declare const deleteApplicationFile: (params: IDeleteApplicationFileParams) => Promise<IDeleteApplicationFileResponse>;
|
|
10
|
+
export declare const deleteMultipleApplicationFile: (params: IDeleteMultipleApplicationFileParams, body: IDeleteMultipleApplicationFileBody) => Promise<IDeleteMultipleApplicationFileResponse>;
|
|
11
|
+
export declare const extractArchiveApplicationFile: (params: IExtractArchiveApplicationFileParams, query: IExtractArchiveApplicationFileQuery) => Promise<IExtractArchiveApplicationFileResponse>;
|
|
12
|
+
export declare const compressArchiveApplicationFile: (params: ICompressArchiveApplicationFileParams, body: ICompressArchiveApplicationFileBody, query: ICompressArchiveApplicationFileQuery) => Promise<ICompressArchiveApplicationFileResponse>;
|
|
13
|
+
export declare const duplicateApplicationFile: (params: IDuplicateApplicationFileParams, body: IDuplicateApplicationFileBody) => Promise<IDuplicateApplicationFileResponse>;
|
|
14
|
+
export declare const duplicateMultipleApplicationFile: (params: IDuplicateMultipleApplicationFileParams, body: IDuplicateMultipleApplicationFileBody) => Promise<IDuplicateMultipleApplicationFileResponse>;
|
|
15
|
+
export declare const updateApplicationFile: (params: IUpdateApplicationFileParams, body: IUpdateApplicationFileBody) => Promise<IUpdateApplicationFileResponse>;
|
|
16
|
+
export declare const extractMetadataApplicationFile: (params: IExtractArchiveApplicationFileParams) => Promise<IExtractArchiveApplicationFileResponse>;
|
|
17
|
+
export declare const resetPublicAccessApplicationFile: (params: IResetPublicAccessApplicationFileParams) => Promise<IResetPublicAccessApplicationFileResponse>;
|
|
18
|
+
export declare const unsetPublicAccessApplicationFile: (params: IUnsetPublicAccessApplicationFileParams) => Promise<IUnsetPublicAccessApplicationFileResponse>;
|
|
19
|
+
export declare const encryptApplicationFile: (params: IEncryptApplicationFileParams, body: IEncryptApplicationFileBody) => Promise<IEncryptApplicationFileResponse>;
|
|
20
|
+
export declare const decryptApplicationFile: (params: IDecryptApplicationFileParams, body: IDecryptApplicationFileBody) => Promise<IDecryptApplicationFileResponse>;
|
|
21
|
+
export declare const getPreSignedUrlApplicationFile: (params: IGetPreSignUrlApplicationFileParams, body: IGetPreSignUrlApplicationFileBody) => Promise<IGetPreSignUrlApplicationFileResponse>;
|
|
22
|
+
export declare const uploadApplicationFile: (params: IUploadApplicationFileParams, query: IUploadApplicationFileQuery, file: File | ArrayBuffer | Buffer | ReadStream, options?: {
|
|
23
|
+
transfer: Transfer;
|
|
24
|
+
}) => Promise<IUploadApplicationFileResponse>;
|
|
25
|
+
export declare const writeApplicationFile: (params: IWriteApplicationFileParams, query: IWriteApplicationFileQuery, file: File | ArrayBuffer | Buffer, options?: {
|
|
26
|
+
transfer: Transfer;
|
|
27
|
+
}) => Promise<IWriteApplicationFileResponse>;
|
|
28
|
+
export declare const downloadApplicationFile: (params: IDownloadApplicationFileParams, options?: {
|
|
29
|
+
transfer: Transfer;
|
|
30
|
+
}) => Promise<ArrayBuffer>;
|
|
31
|
+
export declare const downloadWithPublicAccessApplicationFile: (params: IDownloadWithPublicAccessIdApplicationFileParams, password?: string, options?: {
|
|
32
|
+
transfer: Transfer;
|
|
33
|
+
}) => Promise<ArrayBuffer>;
|
|
34
|
+
export declare const deleteBucketApplicationFile: (params: IDeleteBucketApplicationFileParams, body: IDeleteBucketApplicationFileBody) => Promise<IDeleteBucketApplicationFileResponse>;
|
|
35
|
+
export declare const renameBucketApplicationFile: (params: IRenameBucketApplicationFileParams, body: IRenameBucketApplicationFileBody) => Promise<IRenameBucketApplicationFileResponse>;
|
|
36
|
+
export declare const updateBucketApplicationFile: (params: IUpdateBucketApplicationFileParams, body: IUpdateBucketApplicationFileBody) => Promise<IUpdateBucketApplicationFileResponse>;
|
|
37
|
+
export declare const customPublicAccessIdDownloadApplicationFile: (params: ICustomPublicAccessDownloadIdApplicationFileParams, options?: {
|
|
38
|
+
transfer: Transfer;
|
|
39
|
+
}) => Promise<ArrayBuffer>;
|
|
40
|
+
export declare const uploadFromUrlApplicationFile: (params: IUploadFromUrlApplicationFileParams, body: IUploadFromUrlApplicationFileBody) => Promise<IUploadFromUrlApplicationFileResponse>;
|
|
41
|
+
export declare const saveFreepikApplicationFile: (params: ISaveFreepikApplicationFileParams, body: ISaveFreepikApplicationFileBody) => Promise<ISaveFreepikApplicationFileResponse>;
|
|
@@ -1,177 +1,177 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.saveFreepikApplicationFile = exports.uploadFromUrlApplicationFile = exports.customPublicAccessIdDownloadApplicationFile = exports.updateBucketApplicationFile = exports.renameBucketApplicationFile = exports.deleteBucketApplicationFile = exports.downloadWithPublicAccessApplicationFile = exports.downloadApplicationFile = exports.writeApplicationFile = exports.uploadApplicationFile = exports.getPreSignedUrlApplicationFile = exports.decryptApplicationFile = exports.encryptApplicationFile = exports.unsetPublicAccessApplicationFile = exports.resetPublicAccessApplicationFile = exports.extractMetadataApplicationFile = exports.updateApplicationFile = exports.duplicateMultipleApplicationFile = exports.duplicateApplicationFile = exports.compressArchiveApplicationFile = exports.extractArchiveApplicationFile = exports.deleteMultipleApplicationFile = exports.deleteApplicationFile = exports.getApplicationFile = exports.listBucketApplicationFile = exports.paginateApplicationFile = exports.PUBLIC_ACCESS_PASSWORD_HEADER_NAME = void 0;
|
|
7
|
-
const __1 = require("..");
|
|
8
|
-
const types_1 = require("../types");
|
|
9
|
-
const generics_1 = require("./generics");
|
|
10
|
-
const form_data_1 = __importDefault(require("form-data"));
|
|
11
|
-
exports.PUBLIC_ACCESS_PASSWORD_HEADER_NAME = 'user-file-public-access-password';
|
|
12
|
-
const paginateApplicationFile = async (params, query) => {
|
|
13
|
-
return (await __1.AbyssStorageCore.axios.get(`application-file/${params.applicationId}/file/paginate`, { params: query })).data;
|
|
14
|
-
};
|
|
15
|
-
exports.paginateApplicationFile = paginateApplicationFile;
|
|
16
|
-
const listBucketApplicationFile = async (params, query) => {
|
|
17
|
-
return (await __1.AbyssStorageCore.axios.get(`application-file/${params.applicationId}/file/bucket/list`, { params: query })).data;
|
|
18
|
-
};
|
|
19
|
-
exports.listBucketApplicationFile = listBucketApplicationFile;
|
|
20
|
-
const getApplicationFile = async (params) => {
|
|
21
|
-
return (await __1.AbyssStorageCore.axios.get(`application-file/${params.applicationId}/file/${params.applicationFileId}`)).data;
|
|
22
|
-
};
|
|
23
|
-
exports.getApplicationFile = getApplicationFile;
|
|
24
|
-
const deleteApplicationFile = async (params) => {
|
|
25
|
-
return (await __1.AbyssStorageCore.axios.delete(`application-file/${params.applicationId}/file/${params.applicationFileId}`)).data;
|
|
26
|
-
};
|
|
27
|
-
exports.deleteApplicationFile = deleteApplicationFile;
|
|
28
|
-
const deleteMultipleApplicationFile = async (params, body) => {
|
|
29
|
-
return (await __1.AbyssStorageCore.axios.delete(`application-file/${params.applicationId}/file/multiple`, { data: body })).data;
|
|
30
|
-
};
|
|
31
|
-
exports.deleteMultipleApplicationFile = deleteMultipleApplicationFile;
|
|
32
|
-
const extractArchiveApplicationFile = async (params, query) => {
|
|
33
|
-
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/${params.applicationFileId}/extract`, {}, { params: query })).data;
|
|
34
|
-
};
|
|
35
|
-
exports.extractArchiveApplicationFile = extractArchiveApplicationFile;
|
|
36
|
-
const compressArchiveApplicationFile = async (params, body, query) => {
|
|
37
|
-
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/compress`, body, { params: query })).data;
|
|
38
|
-
};
|
|
39
|
-
exports.compressArchiveApplicationFile = compressArchiveApplicationFile;
|
|
40
|
-
const duplicateApplicationFile = async (params, body) => {
|
|
41
|
-
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/${params.applicationFileId}/duplicate`, body)).data;
|
|
42
|
-
};
|
|
43
|
-
exports.duplicateApplicationFile = duplicateApplicationFile;
|
|
44
|
-
const duplicateMultipleApplicationFile = async (params, body) => {
|
|
45
|
-
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/duplicate-multiple`, body)).data;
|
|
46
|
-
};
|
|
47
|
-
exports.duplicateMultipleApplicationFile = duplicateMultipleApplicationFile;
|
|
48
|
-
const updateApplicationFile = async (params, body) => {
|
|
49
|
-
return (await __1.AbyssStorageCore.axios.put(`application-file/${params.applicationId}/file/${params.applicationFileId}`, body)).data;
|
|
50
|
-
};
|
|
51
|
-
exports.updateApplicationFile = updateApplicationFile;
|
|
52
|
-
const extractMetadataApplicationFile = async (params) => {
|
|
53
|
-
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/${params.applicationFileId}/metadata/extract`)).data;
|
|
54
|
-
};
|
|
55
|
-
exports.extractMetadataApplicationFile = extractMetadataApplicationFile;
|
|
56
|
-
const resetPublicAccessApplicationFile = async (params) => {
|
|
57
|
-
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/${params.applicationFileId}/reset-public-access`)).data;
|
|
58
|
-
};
|
|
59
|
-
exports.resetPublicAccessApplicationFile = resetPublicAccessApplicationFile;
|
|
60
|
-
const unsetPublicAccessApplicationFile = async (params) => {
|
|
61
|
-
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/${params.applicationFileId}/unset-public-access`)).data;
|
|
62
|
-
};
|
|
63
|
-
exports.unsetPublicAccessApplicationFile = unsetPublicAccessApplicationFile;
|
|
64
|
-
const encryptApplicationFile = async (params, body) => {
|
|
65
|
-
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/${params.applicationFileId}/encrypt`, body)).data;
|
|
66
|
-
};
|
|
67
|
-
exports.encryptApplicationFile = encryptApplicationFile;
|
|
68
|
-
const decryptApplicationFile = async (params, body) => {
|
|
69
|
-
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/${params.applicationFileId}/decrypt`, body)).data;
|
|
70
|
-
};
|
|
71
|
-
exports.decryptApplicationFile = decryptApplicationFile;
|
|
72
|
-
const getPreSignedUrlApplicationFile = async (params, body) => {
|
|
73
|
-
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/pre-signed-url`, body)).data;
|
|
74
|
-
};
|
|
75
|
-
exports.getPreSignedUrlApplicationFile = getPreSignedUrlApplicationFile;
|
|
76
|
-
const uploadApplicationFile = async (params, query, file, options) => {
|
|
77
|
-
var _a, _b;
|
|
78
|
-
const form = new form_data_1.default();
|
|
79
|
-
form.append('file', file, { filename: 'file' });
|
|
80
|
-
const result = (await (0, generics_1.upload)(`application-file/file/upload/${params.token}`, form, {
|
|
81
|
-
params: query,
|
|
82
|
-
timeout: 0,
|
|
83
|
-
cancelToken: (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.cancelTokenSource.token,
|
|
84
|
-
onUploadProgress: (event) => { var _a; return (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.onProgress(event); },
|
|
85
|
-
}, __1.AbyssStorageCore.axios)).data;
|
|
86
|
-
if ((options === null || options === void 0 ? void 0 : options.transfer) && ((_b = options.transfer) === null || _b === void 0 ? void 0 : _b.state) === types_1.TransferState.STARTING) {
|
|
87
|
-
options.transfer.completeEmptyDownload();
|
|
88
|
-
}
|
|
89
|
-
return result;
|
|
90
|
-
};
|
|
91
|
-
exports.uploadApplicationFile = uploadApplicationFile;
|
|
92
|
-
const writeApplicationFile = async (params, query, file, options) => {
|
|
93
|
-
var _a, _b;
|
|
94
|
-
const form = new form_data_1.default();
|
|
95
|
-
form.append('file', file, { filename: 'file' });
|
|
96
|
-
const result = (await (0, generics_1.upload)(`application-file/file/write/${params.token}`, form, {
|
|
97
|
-
params: query,
|
|
98
|
-
timeout: 0,
|
|
99
|
-
cancelToken: (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.cancelTokenSource.token,
|
|
100
|
-
onUploadProgress: (event) => { var _a; return (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.onProgress(event); },
|
|
101
|
-
}, __1.AbyssStorageCore.axios)).data;
|
|
102
|
-
if ((options === null || options === void 0 ? void 0 : options.transfer) && ((_b = options.transfer) === null || _b === void 0 ? void 0 : _b.state) === types_1.TransferState.STARTING) {
|
|
103
|
-
options.transfer.completeEmptyDownload();
|
|
104
|
-
}
|
|
105
|
-
return result;
|
|
106
|
-
};
|
|
107
|
-
exports.writeApplicationFile = writeApplicationFile;
|
|
108
|
-
const downloadApplicationFile = async (params, options) => {
|
|
109
|
-
var _a, _b, _c;
|
|
110
|
-
const response = await (0, generics_1.download)(`application-file/file/download/${params.token}`, {
|
|
111
|
-
timeout: 0,
|
|
112
|
-
cancelToken: (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.cancelTokenSource.token,
|
|
113
|
-
onDownloadProgress: (event) => { var _a; return (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.onProgress(event); },
|
|
114
|
-
}, __1.AbyssStorageCore.axios);
|
|
115
|
-
if ((options === null || options === void 0 ? void 0 : options.transfer) && ((_b = options.transfer) === null || _b === void 0 ? void 0 : _b.state) === types_1.TransferState.STARTING) {
|
|
116
|
-
options.transfer.completeEmptyDownload();
|
|
117
|
-
}
|
|
118
|
-
if ((_c = response.headers['content-type']) === null || _c === void 0 ? void 0 : _c.includes('application/json')) {
|
|
119
|
-
response.data = JSON.parse(Buffer.from(response.data).toString('utf8'));
|
|
120
|
-
}
|
|
121
|
-
return response.data;
|
|
122
|
-
};
|
|
123
|
-
exports.downloadApplicationFile = downloadApplicationFile;
|
|
124
|
-
const downloadWithPublicAccessApplicationFile = async (params, password, options) => {
|
|
125
|
-
var _a, _b, _c;
|
|
126
|
-
const response = await (0, generics_1.download)(`application-file/file/download/public-access/${params.publicAccessId}`, {
|
|
127
|
-
timeout: 0,
|
|
128
|
-
cancelToken: (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.cancelTokenSource.token,
|
|
129
|
-
onDownloadProgress: (event) => { var _a; return (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.onProgress(event); },
|
|
130
|
-
headers: {
|
|
131
|
-
...(password ? { [exports.PUBLIC_ACCESS_PASSWORD_HEADER_NAME]: password } : {}),
|
|
132
|
-
},
|
|
133
|
-
}, __1.AbyssStorageCore.axios);
|
|
134
|
-
if ((options === null || options === void 0 ? void 0 : options.transfer) && ((_b = options.transfer) === null || _b === void 0 ? void 0 : _b.state) === types_1.TransferState.STARTING) {
|
|
135
|
-
options.transfer.completeEmptyDownload();
|
|
136
|
-
}
|
|
137
|
-
if ((_c = response.headers['content-type']) === null || _c === void 0 ? void 0 : _c.includes('application/json')) {
|
|
138
|
-
response.data = JSON.parse(Buffer.from(response.data).toString('utf8'));
|
|
139
|
-
}
|
|
140
|
-
return response.data;
|
|
141
|
-
};
|
|
142
|
-
exports.downloadWithPublicAccessApplicationFile = downloadWithPublicAccessApplicationFile;
|
|
143
|
-
const deleteBucketApplicationFile = async (params, body) => {
|
|
144
|
-
return (await __1.AbyssStorageCore.axios.delete(`application-file/${params.applicationId}/file/bucket`, { data: body })).data;
|
|
145
|
-
};
|
|
146
|
-
exports.deleteBucketApplicationFile = deleteBucketApplicationFile;
|
|
147
|
-
const renameBucketApplicationFile = async (params, body) => {
|
|
148
|
-
return (await __1.AbyssStorageCore.axios.put(`application-file/${params.applicationId}/file/bucket/rename`, body)).data;
|
|
149
|
-
};
|
|
150
|
-
exports.renameBucketApplicationFile = renameBucketApplicationFile;
|
|
151
|
-
const updateBucketApplicationFile = async (params, body) => {
|
|
152
|
-
return (await __1.AbyssStorageCore.axios.put(`application-file/${params.applicationId}/file/bucket/update`, body)).data;
|
|
153
|
-
};
|
|
154
|
-
exports.updateBucketApplicationFile = updateBucketApplicationFile;
|
|
155
|
-
const customPublicAccessIdDownloadApplicationFile = async (params, options) => {
|
|
156
|
-
var _a, _b, _c;
|
|
157
|
-
const response = await (0, generics_1.download)(`application-file/file/custom-access/${params.applicationId}/${params.applicationFileCustomPublicAccessId}/download`, {
|
|
158
|
-
cancelToken: (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.cancelTokenSource.token,
|
|
159
|
-
onDownloadProgress: (event) => { var _a; return (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.onProgress(event); },
|
|
160
|
-
}, __1.AbyssStorageCore.axios);
|
|
161
|
-
if ((options === null || options === void 0 ? void 0 : options.transfer) && ((_b = options.transfer) === null || _b === void 0 ? void 0 : _b.state) === types_1.TransferState.STARTING) {
|
|
162
|
-
options.transfer.completeEmptyDownload();
|
|
163
|
-
}
|
|
164
|
-
if ((_c = response.headers['content-type']) === null || _c === void 0 ? void 0 : _c.includes('application/json')) {
|
|
165
|
-
response.data = JSON.parse(Buffer.from(response.data).toString('utf8'));
|
|
166
|
-
}
|
|
167
|
-
return response.data;
|
|
168
|
-
};
|
|
169
|
-
exports.customPublicAccessIdDownloadApplicationFile = customPublicAccessIdDownloadApplicationFile;
|
|
170
|
-
const uploadFromUrlApplicationFile = async (params, body) => {
|
|
171
|
-
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/upload-from-url`, body)).data;
|
|
172
|
-
};
|
|
173
|
-
exports.uploadFromUrlApplicationFile = uploadFromUrlApplicationFile;
|
|
174
|
-
const saveFreepikApplicationFile = async (params, body) => {
|
|
175
|
-
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/collection/freepik/save/${params.resourceId}`, body)).data;
|
|
176
|
-
};
|
|
177
|
-
exports.saveFreepikApplicationFile = saveFreepikApplicationFile;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.saveFreepikApplicationFile = exports.uploadFromUrlApplicationFile = exports.customPublicAccessIdDownloadApplicationFile = exports.updateBucketApplicationFile = exports.renameBucketApplicationFile = exports.deleteBucketApplicationFile = exports.downloadWithPublicAccessApplicationFile = exports.downloadApplicationFile = exports.writeApplicationFile = exports.uploadApplicationFile = exports.getPreSignedUrlApplicationFile = exports.decryptApplicationFile = exports.encryptApplicationFile = exports.unsetPublicAccessApplicationFile = exports.resetPublicAccessApplicationFile = exports.extractMetadataApplicationFile = exports.updateApplicationFile = exports.duplicateMultipleApplicationFile = exports.duplicateApplicationFile = exports.compressArchiveApplicationFile = exports.extractArchiveApplicationFile = exports.deleteMultipleApplicationFile = exports.deleteApplicationFile = exports.getApplicationFile = exports.listBucketApplicationFile = exports.paginateApplicationFile = exports.PUBLIC_ACCESS_PASSWORD_HEADER_NAME = void 0;
|
|
7
|
+
const __1 = require("..");
|
|
8
|
+
const types_1 = require("../types");
|
|
9
|
+
const generics_1 = require("./generics");
|
|
10
|
+
const form_data_1 = __importDefault(require("form-data"));
|
|
11
|
+
exports.PUBLIC_ACCESS_PASSWORD_HEADER_NAME = 'user-file-public-access-password';
|
|
12
|
+
const paginateApplicationFile = async (params, query) => {
|
|
13
|
+
return (await __1.AbyssStorageCore.axios.get(`application-file/${params.applicationId}/file/paginate`, { params: query })).data;
|
|
14
|
+
};
|
|
15
|
+
exports.paginateApplicationFile = paginateApplicationFile;
|
|
16
|
+
const listBucketApplicationFile = async (params, query) => {
|
|
17
|
+
return (await __1.AbyssStorageCore.axios.get(`application-file/${params.applicationId}/file/bucket/list`, { params: query })).data;
|
|
18
|
+
};
|
|
19
|
+
exports.listBucketApplicationFile = listBucketApplicationFile;
|
|
20
|
+
const getApplicationFile = async (params) => {
|
|
21
|
+
return (await __1.AbyssStorageCore.axios.get(`application-file/${params.applicationId}/file/${params.applicationFileId}`)).data;
|
|
22
|
+
};
|
|
23
|
+
exports.getApplicationFile = getApplicationFile;
|
|
24
|
+
const deleteApplicationFile = async (params) => {
|
|
25
|
+
return (await __1.AbyssStorageCore.axios.delete(`application-file/${params.applicationId}/file/${params.applicationFileId}`)).data;
|
|
26
|
+
};
|
|
27
|
+
exports.deleteApplicationFile = deleteApplicationFile;
|
|
28
|
+
const deleteMultipleApplicationFile = async (params, body) => {
|
|
29
|
+
return (await __1.AbyssStorageCore.axios.delete(`application-file/${params.applicationId}/file/multiple`, { data: body })).data;
|
|
30
|
+
};
|
|
31
|
+
exports.deleteMultipleApplicationFile = deleteMultipleApplicationFile;
|
|
32
|
+
const extractArchiveApplicationFile = async (params, query) => {
|
|
33
|
+
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/${params.applicationFileId}/extract`, {}, { params: query })).data;
|
|
34
|
+
};
|
|
35
|
+
exports.extractArchiveApplicationFile = extractArchiveApplicationFile;
|
|
36
|
+
const compressArchiveApplicationFile = async (params, body, query) => {
|
|
37
|
+
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/compress`, body, { params: query })).data;
|
|
38
|
+
};
|
|
39
|
+
exports.compressArchiveApplicationFile = compressArchiveApplicationFile;
|
|
40
|
+
const duplicateApplicationFile = async (params, body) => {
|
|
41
|
+
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/${params.applicationFileId}/duplicate`, body)).data;
|
|
42
|
+
};
|
|
43
|
+
exports.duplicateApplicationFile = duplicateApplicationFile;
|
|
44
|
+
const duplicateMultipleApplicationFile = async (params, body) => {
|
|
45
|
+
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/duplicate-multiple`, body)).data;
|
|
46
|
+
};
|
|
47
|
+
exports.duplicateMultipleApplicationFile = duplicateMultipleApplicationFile;
|
|
48
|
+
const updateApplicationFile = async (params, body) => {
|
|
49
|
+
return (await __1.AbyssStorageCore.axios.put(`application-file/${params.applicationId}/file/${params.applicationFileId}`, body)).data;
|
|
50
|
+
};
|
|
51
|
+
exports.updateApplicationFile = updateApplicationFile;
|
|
52
|
+
const extractMetadataApplicationFile = async (params) => {
|
|
53
|
+
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/${params.applicationFileId}/metadata/extract`)).data;
|
|
54
|
+
};
|
|
55
|
+
exports.extractMetadataApplicationFile = extractMetadataApplicationFile;
|
|
56
|
+
const resetPublicAccessApplicationFile = async (params) => {
|
|
57
|
+
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/${params.applicationFileId}/reset-public-access`)).data;
|
|
58
|
+
};
|
|
59
|
+
exports.resetPublicAccessApplicationFile = resetPublicAccessApplicationFile;
|
|
60
|
+
const unsetPublicAccessApplicationFile = async (params) => {
|
|
61
|
+
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/${params.applicationFileId}/unset-public-access`)).data;
|
|
62
|
+
};
|
|
63
|
+
exports.unsetPublicAccessApplicationFile = unsetPublicAccessApplicationFile;
|
|
64
|
+
const encryptApplicationFile = async (params, body) => {
|
|
65
|
+
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/${params.applicationFileId}/encrypt`, body)).data;
|
|
66
|
+
};
|
|
67
|
+
exports.encryptApplicationFile = encryptApplicationFile;
|
|
68
|
+
const decryptApplicationFile = async (params, body) => {
|
|
69
|
+
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/${params.applicationFileId}/decrypt`, body)).data;
|
|
70
|
+
};
|
|
71
|
+
exports.decryptApplicationFile = decryptApplicationFile;
|
|
72
|
+
const getPreSignedUrlApplicationFile = async (params, body) => {
|
|
73
|
+
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/pre-signed-url`, body)).data;
|
|
74
|
+
};
|
|
75
|
+
exports.getPreSignedUrlApplicationFile = getPreSignedUrlApplicationFile;
|
|
76
|
+
const uploadApplicationFile = async (params, query, file, options) => {
|
|
77
|
+
var _a, _b;
|
|
78
|
+
const form = new form_data_1.default();
|
|
79
|
+
form.append('file', file, { filename: 'file' });
|
|
80
|
+
const result = (await (0, generics_1.upload)(`application-file/file/upload/${params.token}`, form, {
|
|
81
|
+
params: query,
|
|
82
|
+
timeout: 0,
|
|
83
|
+
cancelToken: (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.cancelTokenSource.token,
|
|
84
|
+
onUploadProgress: (event) => { var _a; return (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.onProgress(event); },
|
|
85
|
+
}, __1.AbyssStorageCore.axios)).data;
|
|
86
|
+
if ((options === null || options === void 0 ? void 0 : options.transfer) && ((_b = options.transfer) === null || _b === void 0 ? void 0 : _b.state) === types_1.TransferState.STARTING) {
|
|
87
|
+
options.transfer.completeEmptyDownload();
|
|
88
|
+
}
|
|
89
|
+
return result;
|
|
90
|
+
};
|
|
91
|
+
exports.uploadApplicationFile = uploadApplicationFile;
|
|
92
|
+
const writeApplicationFile = async (params, query, file, options) => {
|
|
93
|
+
var _a, _b;
|
|
94
|
+
const form = new form_data_1.default();
|
|
95
|
+
form.append('file', file, { filename: 'file' });
|
|
96
|
+
const result = (await (0, generics_1.upload)(`application-file/file/write/${params.token}`, form, {
|
|
97
|
+
params: query,
|
|
98
|
+
timeout: 0,
|
|
99
|
+
cancelToken: (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.cancelTokenSource.token,
|
|
100
|
+
onUploadProgress: (event) => { var _a; return (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.onProgress(event); },
|
|
101
|
+
}, __1.AbyssStorageCore.axios)).data;
|
|
102
|
+
if ((options === null || options === void 0 ? void 0 : options.transfer) && ((_b = options.transfer) === null || _b === void 0 ? void 0 : _b.state) === types_1.TransferState.STARTING) {
|
|
103
|
+
options.transfer.completeEmptyDownload();
|
|
104
|
+
}
|
|
105
|
+
return result;
|
|
106
|
+
};
|
|
107
|
+
exports.writeApplicationFile = writeApplicationFile;
|
|
108
|
+
const downloadApplicationFile = async (params, options) => {
|
|
109
|
+
var _a, _b, _c;
|
|
110
|
+
const response = await (0, generics_1.download)(`application-file/file/download/${params.token}`, {
|
|
111
|
+
timeout: 0,
|
|
112
|
+
cancelToken: (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.cancelTokenSource.token,
|
|
113
|
+
onDownloadProgress: (event) => { var _a; return (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.onProgress(event); },
|
|
114
|
+
}, __1.AbyssStorageCore.axios);
|
|
115
|
+
if ((options === null || options === void 0 ? void 0 : options.transfer) && ((_b = options.transfer) === null || _b === void 0 ? void 0 : _b.state) === types_1.TransferState.STARTING) {
|
|
116
|
+
options.transfer.completeEmptyDownload();
|
|
117
|
+
}
|
|
118
|
+
if ((_c = response.headers['content-type']) === null || _c === void 0 ? void 0 : _c.includes('application/json')) {
|
|
119
|
+
response.data = JSON.parse(Buffer.from(response.data).toString('utf8'));
|
|
120
|
+
}
|
|
121
|
+
return response.data;
|
|
122
|
+
};
|
|
123
|
+
exports.downloadApplicationFile = downloadApplicationFile;
|
|
124
|
+
const downloadWithPublicAccessApplicationFile = async (params, password, options) => {
|
|
125
|
+
var _a, _b, _c;
|
|
126
|
+
const response = await (0, generics_1.download)(`application-file/file/download/public-access/${params.publicAccessId}`, {
|
|
127
|
+
timeout: 0,
|
|
128
|
+
cancelToken: (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.cancelTokenSource.token,
|
|
129
|
+
onDownloadProgress: (event) => { var _a; return (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.onProgress(event); },
|
|
130
|
+
headers: {
|
|
131
|
+
...(password ? { [exports.PUBLIC_ACCESS_PASSWORD_HEADER_NAME]: password } : {}),
|
|
132
|
+
},
|
|
133
|
+
}, __1.AbyssStorageCore.axios);
|
|
134
|
+
if ((options === null || options === void 0 ? void 0 : options.transfer) && ((_b = options.transfer) === null || _b === void 0 ? void 0 : _b.state) === types_1.TransferState.STARTING) {
|
|
135
|
+
options.transfer.completeEmptyDownload();
|
|
136
|
+
}
|
|
137
|
+
if ((_c = response.headers['content-type']) === null || _c === void 0 ? void 0 : _c.includes('application/json')) {
|
|
138
|
+
response.data = JSON.parse(Buffer.from(response.data).toString('utf8'));
|
|
139
|
+
}
|
|
140
|
+
return response.data;
|
|
141
|
+
};
|
|
142
|
+
exports.downloadWithPublicAccessApplicationFile = downloadWithPublicAccessApplicationFile;
|
|
143
|
+
const deleteBucketApplicationFile = async (params, body) => {
|
|
144
|
+
return (await __1.AbyssStorageCore.axios.delete(`application-file/${params.applicationId}/file/bucket`, { data: body })).data;
|
|
145
|
+
};
|
|
146
|
+
exports.deleteBucketApplicationFile = deleteBucketApplicationFile;
|
|
147
|
+
const renameBucketApplicationFile = async (params, body) => {
|
|
148
|
+
return (await __1.AbyssStorageCore.axios.put(`application-file/${params.applicationId}/file/bucket/rename`, body)).data;
|
|
149
|
+
};
|
|
150
|
+
exports.renameBucketApplicationFile = renameBucketApplicationFile;
|
|
151
|
+
const updateBucketApplicationFile = async (params, body) => {
|
|
152
|
+
return (await __1.AbyssStorageCore.axios.put(`application-file/${params.applicationId}/file/bucket/update`, body)).data;
|
|
153
|
+
};
|
|
154
|
+
exports.updateBucketApplicationFile = updateBucketApplicationFile;
|
|
155
|
+
const customPublicAccessIdDownloadApplicationFile = async (params, options) => {
|
|
156
|
+
var _a, _b, _c;
|
|
157
|
+
const response = await (0, generics_1.download)(`application-file/file/custom-access/${params.applicationId}/${params.applicationFileCustomPublicAccessId}/download`, {
|
|
158
|
+
cancelToken: (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.cancelTokenSource.token,
|
|
159
|
+
onDownloadProgress: (event) => { var _a; return (_a = options === null || options === void 0 ? void 0 : options.transfer) === null || _a === void 0 ? void 0 : _a.onProgress(event); },
|
|
160
|
+
}, __1.AbyssStorageCore.axios);
|
|
161
|
+
if ((options === null || options === void 0 ? void 0 : options.transfer) && ((_b = options.transfer) === null || _b === void 0 ? void 0 : _b.state) === types_1.TransferState.STARTING) {
|
|
162
|
+
options.transfer.completeEmptyDownload();
|
|
163
|
+
}
|
|
164
|
+
if ((_c = response.headers['content-type']) === null || _c === void 0 ? void 0 : _c.includes('application/json')) {
|
|
165
|
+
response.data = JSON.parse(Buffer.from(response.data).toString('utf8'));
|
|
166
|
+
}
|
|
167
|
+
return response.data;
|
|
168
|
+
};
|
|
169
|
+
exports.customPublicAccessIdDownloadApplicationFile = customPublicAccessIdDownloadApplicationFile;
|
|
170
|
+
const uploadFromUrlApplicationFile = async (params, body) => {
|
|
171
|
+
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/upload-from-url`, body)).data;
|
|
172
|
+
};
|
|
173
|
+
exports.uploadFromUrlApplicationFile = uploadFromUrlApplicationFile;
|
|
174
|
+
const saveFreepikApplicationFile = async (params, body) => {
|
|
175
|
+
return (await __1.AbyssStorageCore.axios.post(`application-file/${params.applicationId}/file/collection/freepik/save/${params.resourceId}`, body)).data;
|
|
176
|
+
};
|
|
177
|
+
exports.saveFreepikApplicationFile = saveFreepikApplicationFile;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ICreateEntryApplicationStoreAdminBody, ICreateEntryApplicationStoreAdminParams, ICreateEntryApplicationStoreAdminResponse, IDeleteEntryApplicationStoreAdminParams, IDeleteEntryApplicationStoreAdminResponse, IGetEntryApplicationStoreAdminParams, IGetEntryApplicationStoreAdminResponse, IPaginateEntryApplicationStoreAdminQuery, IPaginateEntryApplicationStoreAdminResponse, IUpdateEntryApplicationStoreAdminBody, IUpdateEntryApplicationStoreAdminParams, IUpdateEntryApplicationStoreAdminResponse } from '..';
|
|
2
|
+
export declare const getEntryApplicationStoreAdmin: (params: IGetEntryApplicationStoreAdminParams) => Promise<IGetEntryApplicationStoreAdminResponse>;
|
|
3
|
+
export declare const paginateEntryApplicationStoreAdmin: (query: IPaginateEntryApplicationStoreAdminQuery) => Promise<IPaginateEntryApplicationStoreAdminResponse>;
|
|
4
|
+
export declare const createEntryApplicationStoreAdmin: (params: ICreateEntryApplicationStoreAdminParams, body: ICreateEntryApplicationStoreAdminBody) => Promise<ICreateEntryApplicationStoreAdminResponse>;
|
|
5
|
+
export declare const updateEntryApplicationStoreAdmin: (params: IUpdateEntryApplicationStoreAdminParams, body: IUpdateEntryApplicationStoreAdminBody) => Promise<IUpdateEntryApplicationStoreAdminResponse>;
|
|
6
|
+
export declare const deleteEntryApplicationStoreAdmin: (params: IDeleteEntryApplicationStoreAdminParams) => Promise<IDeleteEntryApplicationStoreAdminResponse>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteEntryApplicationStoreAdmin = exports.updateEntryApplicationStoreAdmin = exports.createEntryApplicationStoreAdmin = exports.paginateEntryApplicationStoreAdmin = exports.getEntryApplicationStoreAdmin = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const getEntryApplicationStoreAdmin = async (params) => {
|
|
6
|
+
return (await __1.AbyssStorageCore.axios.get(`application-store/admin/entry/${params.applicationStoreEntryId}`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.getEntryApplicationStoreAdmin = getEntryApplicationStoreAdmin;
|
|
9
|
+
const paginateEntryApplicationStoreAdmin = async (query) => {
|
|
10
|
+
return (await __1.AbyssStorageCore.axios.get(`application-store/admin/entry/paginate`, { params: query })).data;
|
|
11
|
+
};
|
|
12
|
+
exports.paginateEntryApplicationStoreAdmin = paginateEntryApplicationStoreAdmin;
|
|
13
|
+
const createEntryApplicationStoreAdmin = async (params, body) => {
|
|
14
|
+
return (await __1.AbyssStorageCore.axios.post(`application-store/admin/entry/${params.applicationId}`, body)).data;
|
|
15
|
+
};
|
|
16
|
+
exports.createEntryApplicationStoreAdmin = createEntryApplicationStoreAdmin;
|
|
17
|
+
const updateEntryApplicationStoreAdmin = async (params, body) => {
|
|
18
|
+
return (await __1.AbyssStorageCore.axios.put(`application-store/admin/entry/${params.applicationStoreEntryId}`, body)).data;
|
|
19
|
+
};
|
|
20
|
+
exports.updateEntryApplicationStoreAdmin = updateEntryApplicationStoreAdmin;
|
|
21
|
+
const deleteEntryApplicationStoreAdmin = async (params) => {
|
|
22
|
+
return (await __1.AbyssStorageCore.axios.delete(`application-store/admin/entry/${params.applicationStoreEntryId}`)).data;
|
|
23
|
+
};
|
|
24
|
+
exports.deleteEntryApplicationStoreAdmin = deleteEntryApplicationStoreAdmin;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ICreateEntryApplicationStoreBody, ICreateEntryApplicationStoreParams, ICreateEntryApplicationStoreResponse, IDeleteEntryApplicationStoreParams, IDeleteEntryApplicationStoreResponse, IGetEntryApplicationStoreParams, IGetEntryApplicationStoreResponse, IPaginateEntryApplicationStoreParams, IPaginateEntryApplicationStoreQuery, IPaginateEntryApplicationStoreResponse, IUpdateEntryApplicationStoreBody, IUpdateEntryApplicationStoreParams, IUpdateEntryApplicationStoreResponse } from '..';
|
|
2
|
+
export declare const getEntryApplicationStore: (params: IGetEntryApplicationStoreParams) => Promise<IGetEntryApplicationStoreResponse>;
|
|
3
|
+
export declare const paginateEntryApplicationStore: (params: IPaginateEntryApplicationStoreParams, query: IPaginateEntryApplicationStoreQuery) => Promise<IPaginateEntryApplicationStoreResponse>;
|
|
4
|
+
export declare const createEntryApplicationStore: (params: ICreateEntryApplicationStoreParams, body: ICreateEntryApplicationStoreBody) => Promise<ICreateEntryApplicationStoreResponse>;
|
|
5
|
+
export declare const updateEntryApplicationStore: (params: IUpdateEntryApplicationStoreParams, body: IUpdateEntryApplicationStoreBody) => Promise<IUpdateEntryApplicationStoreResponse>;
|
|
6
|
+
export declare const deleteEntryApplicationStore: (params: IDeleteEntryApplicationStoreParams) => Promise<IDeleteEntryApplicationStoreResponse>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteEntryApplicationStore = exports.updateEntryApplicationStore = exports.createEntryApplicationStore = exports.paginateEntryApplicationStore = exports.getEntryApplicationStore = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const getEntryApplicationStore = async (params) => {
|
|
6
|
+
return (await __1.AbyssStorageCore.axios.get(`application-store/${params.applicationId}/entry/${params.applicationStoreEntryId}`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.getEntryApplicationStore = getEntryApplicationStore;
|
|
9
|
+
const paginateEntryApplicationStore = async (params, query) => {
|
|
10
|
+
return (await __1.AbyssStorageCore.axios.get(`application-store/${params.applicationId}/entry/paginate`, { params: query })).data;
|
|
11
|
+
};
|
|
12
|
+
exports.paginateEntryApplicationStore = paginateEntryApplicationStore;
|
|
13
|
+
const createEntryApplicationStore = async (params, body) => {
|
|
14
|
+
return (await __1.AbyssStorageCore.axios.post(`application-store/${params.applicationId}/entry`, body)).data;
|
|
15
|
+
};
|
|
16
|
+
exports.createEntryApplicationStore = createEntryApplicationStore;
|
|
17
|
+
const updateEntryApplicationStore = async (params, body) => {
|
|
18
|
+
return (await __1.AbyssStorageCore.axios.put(`application-store/${params.applicationId}/entry/${params.applicationStoreEntryId}`, body)).data;
|
|
19
|
+
};
|
|
20
|
+
exports.updateEntryApplicationStore = updateEntryApplicationStore;
|
|
21
|
+
const deleteEntryApplicationStore = async (params) => {
|
|
22
|
+
return (await __1.AbyssStorageCore.axios.delete(`application-store/${params.applicationId}/entry/${params.applicationStoreEntryId}`)).data;
|
|
23
|
+
};
|
|
24
|
+
exports.deleteEntryApplicationStore = deleteEntryApplicationStore;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IGetEntryByIdApplicationStorePublicParams, IGetEntryByIdApplicationStorePublicResponse, IGetEntryBySlugApplicationStorePublicParams, IGetEntryBySlugApplicationStorePublicResponse } from '..';
|
|
2
|
+
export declare const getEntryBySlugApplicationStoreAdmin: (params: IGetEntryBySlugApplicationStorePublicParams) => Promise<IGetEntryBySlugApplicationStorePublicResponse>;
|
|
3
|
+
export declare const getEntryByIdApplicationStoreAdmin: (params: IGetEntryByIdApplicationStorePublicParams) => Promise<IGetEntryByIdApplicationStorePublicResponse>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getEntryByIdApplicationStoreAdmin = exports.getEntryBySlugApplicationStoreAdmin = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const getEntryBySlugApplicationStoreAdmin = async (params) => {
|
|
6
|
+
return (await __1.AbyssStorageCore.axios.get(`application-store/public/${params.applicationId}/entry/slug/${params.slug}`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.getEntryBySlugApplicationStoreAdmin = getEntryBySlugApplicationStoreAdmin;
|
|
9
|
+
const getEntryByIdApplicationStoreAdmin = async (params) => {
|
|
10
|
+
return (await __1.AbyssStorageCore.axios.get(`application-store/public/${params.applicationId}/entry/id/${params.applicationStoreEntryId}`)).data;
|
|
11
|
+
};
|
|
12
|
+
exports.getEntryByIdApplicationStoreAdmin = getEntryByIdApplicationStoreAdmin;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IGetApplicationWebhookHistoryAdminParams, IGetApplicationWebhookHistoryAdminResponse, IPaginateApplicationWebhookHistoryAdminQuery, IPaginateApplicationWebhookHistoryAdminResponse } from '../types';
|
|
2
|
-
export declare const getApplicationWebhookHistoryAdmin: (params: IGetApplicationWebhookHistoryAdminParams) => Promise<IGetApplicationWebhookHistoryAdminResponse>;
|
|
3
|
-
export declare const paginateApplicationWebhookHistoryAdmin: (query: IPaginateApplicationWebhookHistoryAdminQuery) => Promise<IPaginateApplicationWebhookHistoryAdminResponse>;
|
|
1
|
+
import { IGetApplicationWebhookHistoryAdminParams, IGetApplicationWebhookHistoryAdminResponse, IPaginateApplicationWebhookHistoryAdminQuery, IPaginateApplicationWebhookHistoryAdminResponse } from '../types';
|
|
2
|
+
export declare const getApplicationWebhookHistoryAdmin: (params: IGetApplicationWebhookHistoryAdminParams) => Promise<IGetApplicationWebhookHistoryAdminResponse>;
|
|
3
|
+
export declare const paginateApplicationWebhookHistoryAdmin: (query: IPaginateApplicationWebhookHistoryAdminQuery) => Promise<IPaginateApplicationWebhookHistoryAdminResponse>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateApplicationWebhookHistoryAdmin = exports.getApplicationWebhookHistoryAdmin = void 0;
|
|
4
|
-
const __1 = require("..");
|
|
5
|
-
const getApplicationWebhookHistoryAdmin = async (params) => {
|
|
6
|
-
return (await __1.AbyssStorageCore.axios.get(`/application-webhook-history/admin/webhook-history/${params.applicationWebhookHistoryId}`)).data;
|
|
7
|
-
};
|
|
8
|
-
exports.getApplicationWebhookHistoryAdmin = getApplicationWebhookHistoryAdmin;
|
|
9
|
-
const paginateApplicationWebhookHistoryAdmin = async (query) => {
|
|
10
|
-
return (await __1.AbyssStorageCore.axios.get(`/application-webhook-history/admin/webhook-history/paginate`, { params: query })).data;
|
|
11
|
-
};
|
|
12
|
-
exports.paginateApplicationWebhookHistoryAdmin = paginateApplicationWebhookHistoryAdmin;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateApplicationWebhookHistoryAdmin = exports.getApplicationWebhookHistoryAdmin = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const getApplicationWebhookHistoryAdmin = async (params) => {
|
|
6
|
+
return (await __1.AbyssStorageCore.axios.get(`/application-webhook-history/admin/webhook-history/${params.applicationWebhookHistoryId}`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.getApplicationWebhookHistoryAdmin = getApplicationWebhookHistoryAdmin;
|
|
9
|
+
const paginateApplicationWebhookHistoryAdmin = async (query) => {
|
|
10
|
+
return (await __1.AbyssStorageCore.axios.get(`/application-webhook-history/admin/webhook-history/paginate`, { params: query })).data;
|
|
11
|
+
};
|
|
12
|
+
exports.paginateApplicationWebhookHistoryAdmin = paginateApplicationWebhookHistoryAdmin;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IGetApplicationWebhookHistoryParams, IGetApplicationWebhookHistoryResponse, IPaginateApplicationWebhookHistoryParams, IPaginateApplicationWebhookHistoryQuery, IPaginateApplicationWebhookHistoryResponse } from '../types';
|
|
2
|
-
export declare const getApplicationWebhookHistory: (params: IGetApplicationWebhookHistoryParams) => Promise<IGetApplicationWebhookHistoryResponse>;
|
|
3
|
-
export declare const paginateApplicationWebhookHistory: (params: IPaginateApplicationWebhookHistoryParams, query: IPaginateApplicationWebhookHistoryQuery) => Promise<IPaginateApplicationWebhookHistoryResponse>;
|
|
1
|
+
import { IGetApplicationWebhookHistoryParams, IGetApplicationWebhookHistoryResponse, IPaginateApplicationWebhookHistoryParams, IPaginateApplicationWebhookHistoryQuery, IPaginateApplicationWebhookHistoryResponse } from '../types';
|
|
2
|
+
export declare const getApplicationWebhookHistory: (params: IGetApplicationWebhookHistoryParams) => Promise<IGetApplicationWebhookHistoryResponse>;
|
|
3
|
+
export declare const paginateApplicationWebhookHistory: (params: IPaginateApplicationWebhookHistoryParams, query: IPaginateApplicationWebhookHistoryQuery) => Promise<IPaginateApplicationWebhookHistoryResponse>;
|