@abyss-project/storage 1.0.2 → 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 -91
- 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,35 +1,35 @@
|
|
|
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.uploadStreamMediaAdmin = exports.transcodeStreamMediaAdmin = exports.deleteStreamMediaAdmin = exports.updateStreamMediaAdmin = exports.getStreamMediaAdmin = exports.paginateStreamMediaAdmin = void 0;
|
|
7
|
-
const __1 = require("..");
|
|
8
|
-
const generics_1 = require("./generics");
|
|
9
|
-
const form_data_1 = __importDefault(require("form-data"));
|
|
10
|
-
const paginateStreamMediaAdmin = async (query) => {
|
|
11
|
-
return (await __1.AbyssStorageCore.axios.get(`stream-media/admin/paginate`, { params: query })).data;
|
|
12
|
-
};
|
|
13
|
-
exports.paginateStreamMediaAdmin = paginateStreamMediaAdmin;
|
|
14
|
-
const getStreamMediaAdmin = async (params) => {
|
|
15
|
-
return (await __1.AbyssStorageCore.axios.get(`stream-media/admin/${params.streamMediaId}`)).data;
|
|
16
|
-
};
|
|
17
|
-
exports.getStreamMediaAdmin = getStreamMediaAdmin;
|
|
18
|
-
const updateStreamMediaAdmin = async (params, body) => {
|
|
19
|
-
return (await __1.AbyssStorageCore.axios.put(`stream-media/admin/${params.streamMediaId}`, body)).data;
|
|
20
|
-
};
|
|
21
|
-
exports.updateStreamMediaAdmin = updateStreamMediaAdmin;
|
|
22
|
-
const deleteStreamMediaAdmin = async (params) => {
|
|
23
|
-
return (await __1.AbyssStorageCore.axios.delete(`stream-media/admin/${params.streamMediaId}`)).data;
|
|
24
|
-
};
|
|
25
|
-
exports.deleteStreamMediaAdmin = deleteStreamMediaAdmin;
|
|
26
|
-
const transcodeStreamMediaAdmin = async (params) => {
|
|
27
|
-
return (await __1.AbyssStorageCore.axios.post(`stream-media/admin/${params.streamMediaId}/transcode`)).data;
|
|
28
|
-
};
|
|
29
|
-
exports.transcodeStreamMediaAdmin = transcodeStreamMediaAdmin;
|
|
30
|
-
const uploadStreamMediaAdmin = async (query, file) => {
|
|
31
|
-
const form = new form_data_1.default();
|
|
32
|
-
form.append('file', file);
|
|
33
|
-
return (await (0, generics_1.upload)(`stream-media/admin/upload`, form, { params: query }, __1.AbyssStorageCore.axios)).data;
|
|
34
|
-
};
|
|
35
|
-
exports.uploadStreamMediaAdmin = uploadStreamMediaAdmin;
|
|
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.uploadStreamMediaAdmin = exports.transcodeStreamMediaAdmin = exports.deleteStreamMediaAdmin = exports.updateStreamMediaAdmin = exports.getStreamMediaAdmin = exports.paginateStreamMediaAdmin = void 0;
|
|
7
|
+
const __1 = require("..");
|
|
8
|
+
const generics_1 = require("./generics");
|
|
9
|
+
const form_data_1 = __importDefault(require("form-data"));
|
|
10
|
+
const paginateStreamMediaAdmin = async (query) => {
|
|
11
|
+
return (await __1.AbyssStorageCore.axios.get(`stream-media/admin/paginate`, { params: query })).data;
|
|
12
|
+
};
|
|
13
|
+
exports.paginateStreamMediaAdmin = paginateStreamMediaAdmin;
|
|
14
|
+
const getStreamMediaAdmin = async (params) => {
|
|
15
|
+
return (await __1.AbyssStorageCore.axios.get(`stream-media/admin/${params.streamMediaId}`)).data;
|
|
16
|
+
};
|
|
17
|
+
exports.getStreamMediaAdmin = getStreamMediaAdmin;
|
|
18
|
+
const updateStreamMediaAdmin = async (params, body) => {
|
|
19
|
+
return (await __1.AbyssStorageCore.axios.put(`stream-media/admin/${params.streamMediaId}`, body)).data;
|
|
20
|
+
};
|
|
21
|
+
exports.updateStreamMediaAdmin = updateStreamMediaAdmin;
|
|
22
|
+
const deleteStreamMediaAdmin = async (params) => {
|
|
23
|
+
return (await __1.AbyssStorageCore.axios.delete(`stream-media/admin/${params.streamMediaId}`)).data;
|
|
24
|
+
};
|
|
25
|
+
exports.deleteStreamMediaAdmin = deleteStreamMediaAdmin;
|
|
26
|
+
const transcodeStreamMediaAdmin = async (params) => {
|
|
27
|
+
return (await __1.AbyssStorageCore.axios.post(`stream-media/admin/${params.streamMediaId}/transcode`)).data;
|
|
28
|
+
};
|
|
29
|
+
exports.transcodeStreamMediaAdmin = transcodeStreamMediaAdmin;
|
|
30
|
+
const uploadStreamMediaAdmin = async (query, file) => {
|
|
31
|
+
const form = new form_data_1.default();
|
|
32
|
+
form.append('file', file);
|
|
33
|
+
return (await (0, generics_1.upload)(`stream-media/admin/upload`, form, { params: query }, __1.AbyssStorageCore.axios)).data;
|
|
34
|
+
};
|
|
35
|
+
exports.uploadStreamMediaAdmin = uploadStreamMediaAdmin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IGetStreamMediaParams, IGetStreamMediaResponse, IPaginateStreamMediaQuery, IPaginateStreamMediaResponse, IReadStreamMediaParams, IReadStreamMediaResponse } from '../types';
|
|
2
|
-
export declare const paginateStreamMedia: (query: IPaginateStreamMediaQuery) => Promise<IPaginateStreamMediaResponse>;
|
|
3
|
-
export declare const getStreamMedia: (params: IGetStreamMediaParams) => Promise<IGetStreamMediaResponse>;
|
|
4
|
-
export declare const readStreamMedia: (params: IReadStreamMediaParams) => Promise<IReadStreamMediaResponse>;
|
|
1
|
+
import { IGetStreamMediaParams, IGetStreamMediaResponse, IPaginateStreamMediaQuery, IPaginateStreamMediaResponse, IReadStreamMediaParams, IReadStreamMediaResponse } from '../types';
|
|
2
|
+
export declare const paginateStreamMedia: (query: IPaginateStreamMediaQuery) => Promise<IPaginateStreamMediaResponse>;
|
|
3
|
+
export declare const getStreamMedia: (params: IGetStreamMediaParams) => Promise<IGetStreamMediaResponse>;
|
|
4
|
+
export declare const readStreamMedia: (params: IReadStreamMediaParams) => Promise<IReadStreamMediaResponse>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.readStreamMedia = exports.getStreamMedia = exports.paginateStreamMedia = void 0;
|
|
4
|
-
const __1 = require("..");
|
|
5
|
-
const paginateStreamMedia = async (query) => {
|
|
6
|
-
return (await __1.AbyssStorageCore.axios.get(`stream-media/paginate`, {
|
|
7
|
-
params: query,
|
|
8
|
-
})).data;
|
|
9
|
-
};
|
|
10
|
-
exports.paginateStreamMedia = paginateStreamMedia;
|
|
11
|
-
const getStreamMedia = async (params) => {
|
|
12
|
-
return (await __1.AbyssStorageCore.axios.get(`stream-media/${params.streamMediaId}`)).data;
|
|
13
|
-
};
|
|
14
|
-
exports.getStreamMedia = getStreamMedia;
|
|
15
|
-
const readStreamMedia = async (params) => {
|
|
16
|
-
return (await __1.AbyssStorageCore.axios.get(`stream-media/${params.streamMediaId}/read/${params.element}`)).data;
|
|
17
|
-
};
|
|
18
|
-
exports.readStreamMedia = readStreamMedia;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.readStreamMedia = exports.getStreamMedia = exports.paginateStreamMedia = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const paginateStreamMedia = async (query) => {
|
|
6
|
+
return (await __1.AbyssStorageCore.axios.get(`stream-media/paginate`, {
|
|
7
|
+
params: query,
|
|
8
|
+
})).data;
|
|
9
|
+
};
|
|
10
|
+
exports.paginateStreamMedia = paginateStreamMedia;
|
|
11
|
+
const getStreamMedia = async (params) => {
|
|
12
|
+
return (await __1.AbyssStorageCore.axios.get(`stream-media/${params.streamMediaId}`)).data;
|
|
13
|
+
};
|
|
14
|
+
exports.getStreamMedia = getStreamMedia;
|
|
15
|
+
const readStreamMedia = async (params) => {
|
|
16
|
+
return (await __1.AbyssStorageCore.axios.get(`stream-media/${params.streamMediaId}/read/${params.element}`)).data;
|
|
17
|
+
};
|
|
18
|
+
exports.readStreamMedia = readStreamMedia;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { IAxiosRetryConfig } from 'axios-retry';
|
|
2
|
-
export * from './api';
|
|
3
|
-
export * from './types';
|
|
4
|
-
export * from './utils';
|
|
5
|
-
export declare const API_KEY_APPLICATION_HEADER = "abyss-storage-api-key-application";
|
|
6
|
-
export declare const ADMIN_TOKEN_HEADER = "abyss-admin-token";
|
|
7
|
-
export declare const HEADER_WEBHOOK_SIGNATURE_NAME = "abyss-storage-webhook-signature";
|
|
8
|
-
export declare const WEBHOOK_SIGNATURE_ALGORITHM = "sha256";
|
|
9
|
-
type CoreConfig = {
|
|
10
|
-
token?: string;
|
|
11
|
-
applicationApiKey?: string;
|
|
12
|
-
adminToken?: string;
|
|
13
|
-
baseURL?: string;
|
|
14
|
-
};
|
|
15
|
-
export declare class AbyssStorageCore {
|
|
16
|
-
private static config;
|
|
17
|
-
static axios: import("axios").AxiosInstance;
|
|
18
|
-
static setConfig(config: CoreConfig): void;
|
|
19
|
-
static getConfig(): CoreConfig;
|
|
20
|
-
static enableAxiosRetry(axiosRetryConfig?: IAxiosRetryConfig): void;
|
|
21
|
-
}
|
|
1
|
+
import { IAxiosRetryConfig } from 'axios-retry';
|
|
2
|
+
export * from './api';
|
|
3
|
+
export * from './types';
|
|
4
|
+
export * from './utils';
|
|
5
|
+
export declare const API_KEY_APPLICATION_HEADER = "abyss-storage-api-key-application";
|
|
6
|
+
export declare const ADMIN_TOKEN_HEADER = "abyss-admin-token";
|
|
7
|
+
export declare const HEADER_WEBHOOK_SIGNATURE_NAME = "abyss-storage-webhook-signature";
|
|
8
|
+
export declare const WEBHOOK_SIGNATURE_ALGORITHM = "sha256";
|
|
9
|
+
type CoreConfig = {
|
|
10
|
+
token?: string;
|
|
11
|
+
applicationApiKey?: string;
|
|
12
|
+
adminToken?: string;
|
|
13
|
+
baseURL?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare class AbyssStorageCore {
|
|
16
|
+
private static config;
|
|
17
|
+
static axios: import("axios").AxiosInstance;
|
|
18
|
+
static setConfig(config: CoreConfig): void;
|
|
19
|
+
static getConfig(): CoreConfig;
|
|
20
|
+
static enableAxiosRetry(axiosRetryConfig?: IAxiosRetryConfig): void;
|
|
21
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
-
};
|
|
28
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
-
};
|
|
31
|
-
var _a;
|
|
32
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
exports.AbyssStorageCore = exports.WEBHOOK_SIGNATURE_ALGORITHM = exports.HEADER_WEBHOOK_SIGNATURE_NAME = exports.ADMIN_TOKEN_HEADER = exports.API_KEY_APPLICATION_HEADER = void 0;
|
|
34
|
-
const axios_1 = __importDefault(require("axios"));
|
|
35
|
-
const axios_retry_1 = __importStar(require("axios-retry"));
|
|
36
|
-
__exportStar(require("./api"), exports);
|
|
37
|
-
__exportStar(require("./types"), exports);
|
|
38
|
-
__exportStar(require("./utils"), exports);
|
|
39
|
-
const MONITOR_DEFAULT_BASE_URL = 'https://storage-api.abyss-project.fr/api/';
|
|
40
|
-
exports.API_KEY_APPLICATION_HEADER = 'abyss-storage-api-key-application';
|
|
41
|
-
exports.ADMIN_TOKEN_HEADER = 'abyss-admin-token';
|
|
42
|
-
exports.HEADER_WEBHOOK_SIGNATURE_NAME = 'abyss-storage-webhook-signature';
|
|
43
|
-
exports.WEBHOOK_SIGNATURE_ALGORITHM = 'sha256';
|
|
44
|
-
const NUMBER_RETRY_API = 10;
|
|
45
|
-
const BASE_DELAY_BETWEEN_RETRY = 5000;
|
|
46
|
-
const RETRY_CODES = [
|
|
47
|
-
502,
|
|
48
|
-
503,
|
|
49
|
-
];
|
|
50
|
-
class AbyssStorageCore {
|
|
51
|
-
static setConfig(config) {
|
|
52
|
-
|
|
53
|
-
if (config.baseURL) {
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
if (config.token) {
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
if (config.adminToken) {
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
if (config.applicationApiKey) {
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
static getConfig() {
|
|
67
|
-
return
|
|
68
|
-
}
|
|
69
|
-
static enableAxiosRetry(axiosRetryConfig) {
|
|
70
|
-
(0, axios_retry_1.default)(
|
|
71
|
-
retries: NUMBER_RETRY_API,
|
|
72
|
-
retryDelay: (retryCount) => retryCount * BASE_DELAY_BETWEEN_RETRY,
|
|
73
|
-
retryCondition: (error) => {
|
|
74
|
-
var _b;
|
|
75
|
-
return (0, axios_retry_1.isNetworkOrIdempotentRequestError)(error) ||
|
|
76
|
-
RETRY_CODES.includes(((_b = error.response) === null || _b === void 0 ? void 0 : _b.status) || 502);
|
|
77
|
-
},
|
|
78
|
-
...axiosRetryConfig,
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
exports.AbyssStorageCore = AbyssStorageCore;
|
|
83
|
-
_a = AbyssStorageCore;
|
|
84
|
-
AbyssStorageCore.config = {
|
|
85
|
-
token: '',
|
|
86
|
-
applicationApiKey: '',
|
|
87
|
-
applicationId: '',
|
|
88
|
-
adminToken: '',
|
|
89
|
-
baseURL: MONITOR_DEFAULT_BASE_URL,
|
|
90
|
-
};
|
|
91
|
-
AbyssStorageCore.axios = axios_1.default.create({ baseURL: _a.config.baseURL });
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
var _a;
|
|
32
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
+
exports.AbyssStorageCore = exports.WEBHOOK_SIGNATURE_ALGORITHM = exports.HEADER_WEBHOOK_SIGNATURE_NAME = exports.ADMIN_TOKEN_HEADER = exports.API_KEY_APPLICATION_HEADER = void 0;
|
|
34
|
+
const axios_1 = __importDefault(require("axios"));
|
|
35
|
+
const axios_retry_1 = __importStar(require("axios-retry"));
|
|
36
|
+
__exportStar(require("./api"), exports);
|
|
37
|
+
__exportStar(require("./types"), exports);
|
|
38
|
+
__exportStar(require("./utils"), exports);
|
|
39
|
+
const MONITOR_DEFAULT_BASE_URL = 'https://storage-api.abyss-project.fr/api/';
|
|
40
|
+
exports.API_KEY_APPLICATION_HEADER = 'abyss-storage-api-key-application';
|
|
41
|
+
exports.ADMIN_TOKEN_HEADER = 'abyss-admin-token';
|
|
42
|
+
exports.HEADER_WEBHOOK_SIGNATURE_NAME = 'abyss-storage-webhook-signature';
|
|
43
|
+
exports.WEBHOOK_SIGNATURE_ALGORITHM = 'sha256';
|
|
44
|
+
const NUMBER_RETRY_API = 10;
|
|
45
|
+
const BASE_DELAY_BETWEEN_RETRY = 5000;
|
|
46
|
+
const RETRY_CODES = [
|
|
47
|
+
502,
|
|
48
|
+
503,
|
|
49
|
+
];
|
|
50
|
+
class AbyssStorageCore {
|
|
51
|
+
static setConfig(config) {
|
|
52
|
+
_a.config = { ..._a.config, ...config };
|
|
53
|
+
if (config.baseURL) {
|
|
54
|
+
_a.axios.defaults.baseURL = config.baseURL;
|
|
55
|
+
}
|
|
56
|
+
if (config.token) {
|
|
57
|
+
_a.axios.defaults.headers.common.Authorization = `Bearer ${config.token}`;
|
|
58
|
+
}
|
|
59
|
+
if (config.adminToken) {
|
|
60
|
+
_a.axios.defaults.headers.common[exports.ADMIN_TOKEN_HEADER] = `${config.adminToken}`;
|
|
61
|
+
}
|
|
62
|
+
if (config.applicationApiKey) {
|
|
63
|
+
_a.axios.defaults.headers.common[exports.API_KEY_APPLICATION_HEADER] = `${config.applicationApiKey}`;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
static getConfig() {
|
|
67
|
+
return _a.config;
|
|
68
|
+
}
|
|
69
|
+
static enableAxiosRetry(axiosRetryConfig) {
|
|
70
|
+
(0, axios_retry_1.default)(_a.axios, {
|
|
71
|
+
retries: NUMBER_RETRY_API,
|
|
72
|
+
retryDelay: (retryCount) => retryCount * BASE_DELAY_BETWEEN_RETRY,
|
|
73
|
+
retryCondition: (error) => {
|
|
74
|
+
var _b;
|
|
75
|
+
return (0, axios_retry_1.isNetworkOrIdempotentRequestError)(error) ||
|
|
76
|
+
RETRY_CODES.includes(((_b = error.response) === null || _b === void 0 ? void 0 : _b.status) || 502);
|
|
77
|
+
},
|
|
78
|
+
...axiosRetryConfig,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.AbyssStorageCore = AbyssStorageCore;
|
|
83
|
+
_a = AbyssStorageCore;
|
|
84
|
+
AbyssStorageCore.config = {
|
|
85
|
+
token: '',
|
|
86
|
+
applicationApiKey: '',
|
|
87
|
+
applicationId: '',
|
|
88
|
+
adminToken: '',
|
|
89
|
+
baseURL: MONITOR_DEFAULT_BASE_URL,
|
|
90
|
+
};
|
|
91
|
+
AbyssStorageCore.axios = axios_1.default.create({ baseURL: _a.config.baseURL });
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare enum Algorithm {
|
|
2
|
-
AES_256 = "aes256"
|
|
3
|
-
}
|
|
1
|
+
export declare enum Algorithm {
|
|
2
|
+
AES_256 = "aes256"
|
|
3
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Algorithm = void 0;
|
|
4
|
-
var Algorithm;
|
|
5
|
-
(function (Algorithm) {
|
|
6
|
-
Algorithm["AES_256"] = "aes256";
|
|
7
|
-
})(Algorithm
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Algorithm = void 0;
|
|
4
|
+
var Algorithm;
|
|
5
|
+
(function (Algorithm) {
|
|
6
|
+
Algorithm["AES_256"] = "aes256";
|
|
7
|
+
})(Algorithm || (exports.Algorithm = Algorithm = {}));
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export declare enum ErrorType {
|
|
2
|
-
apiError = "api_error",
|
|
3
|
-
authError = "authentication_error",
|
|
4
|
-
resourceError = "resource_error"
|
|
5
|
-
}
|
|
6
|
-
export declare enum Code {
|
|
7
|
-
tokenFailure = "token_authentication_failure",
|
|
8
|
-
authenticationFailure = "authentication_credentials_failure",
|
|
9
|
-
accessNotAllowed = "access_not_allowed",
|
|
10
|
-
notFound = "not_found",
|
|
11
|
-
validationError = "resource_validation_error",
|
|
12
|
-
constraintError = "resource_constraint_error",
|
|
13
|
-
internalServerError = "internal_server_error",
|
|
14
|
-
serviceUnavailable = "service_unavailable",
|
|
15
|
-
invalidData = "invalid_data",
|
|
16
|
-
notImplemented = "not_implemented",
|
|
17
|
-
invalidUser = "invalid_user",
|
|
18
|
-
invalidLogConsole = "invalid_log_console",
|
|
19
|
-
invalidLogEndpoint = "invalid_log_endpoint",
|
|
20
|
-
expiredPreSignUrl = "expired_pre_sign_url",
|
|
21
|
-
alreadyUsedPreSignUrl = "already_used_pre_sign_url",
|
|
22
|
-
invalidPreSignUrlType = "invalid_pre_sign_url_type",
|
|
23
|
-
invalidPreSignUrlUser = "invalid_pre_sign_url_user",
|
|
24
|
-
invalidPreSignUrlContent = "invalid_pre_sign_url_content",
|
|
25
|
-
notEnoughUserSpace = "not_enough_user_space",
|
|
26
|
-
fileBiggerThanLimit = "file_bigger_than_limit",
|
|
27
|
-
maxThumbnailPerFileReached = "max_thumbnail_per_file_reached",
|
|
28
|
-
publicAccessPasswordInvalid = "public_access_password_invalid",
|
|
29
|
-
maxPreSignUrlPerHourReached = "max_pre_sign_url_per_hour_reached",
|
|
30
|
-
collectionSearchFailed = "collection_search_failed"
|
|
31
|
-
}
|
|
1
|
+
export declare enum ErrorType {
|
|
2
|
+
apiError = "api_error",
|
|
3
|
+
authError = "authentication_error",
|
|
4
|
+
resourceError = "resource_error"
|
|
5
|
+
}
|
|
6
|
+
export declare enum Code {
|
|
7
|
+
tokenFailure = "token_authentication_failure",
|
|
8
|
+
authenticationFailure = "authentication_credentials_failure",
|
|
9
|
+
accessNotAllowed = "access_not_allowed",
|
|
10
|
+
notFound = "not_found",
|
|
11
|
+
validationError = "resource_validation_error",
|
|
12
|
+
constraintError = "resource_constraint_error",
|
|
13
|
+
internalServerError = "internal_server_error",
|
|
14
|
+
serviceUnavailable = "service_unavailable",
|
|
15
|
+
invalidData = "invalid_data",
|
|
16
|
+
notImplemented = "not_implemented",
|
|
17
|
+
invalidUser = "invalid_user",
|
|
18
|
+
invalidLogConsole = "invalid_log_console",
|
|
19
|
+
invalidLogEndpoint = "invalid_log_endpoint",
|
|
20
|
+
expiredPreSignUrl = "expired_pre_sign_url",
|
|
21
|
+
alreadyUsedPreSignUrl = "already_used_pre_sign_url",
|
|
22
|
+
invalidPreSignUrlType = "invalid_pre_sign_url_type",
|
|
23
|
+
invalidPreSignUrlUser = "invalid_pre_sign_url_user",
|
|
24
|
+
invalidPreSignUrlContent = "invalid_pre_sign_url_content",
|
|
25
|
+
notEnoughUserSpace = "not_enough_user_space",
|
|
26
|
+
fileBiggerThanLimit = "file_bigger_than_limit",
|
|
27
|
+
maxThumbnailPerFileReached = "max_thumbnail_per_file_reached",
|
|
28
|
+
publicAccessPasswordInvalid = "public_access_password_invalid",
|
|
29
|
+
maxPreSignUrlPerHourReached = "max_pre_sign_url_per_hour_reached",
|
|
30
|
+
collectionSearchFailed = "collection_search_failed"
|
|
31
|
+
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Code = exports.ErrorType = void 0;
|
|
4
|
-
var ErrorType;
|
|
5
|
-
(function (ErrorType) {
|
|
6
|
-
ErrorType["apiError"] = "api_error";
|
|
7
|
-
ErrorType["authError"] = "authentication_error";
|
|
8
|
-
ErrorType["resourceError"] = "resource_error";
|
|
9
|
-
})(ErrorType
|
|
10
|
-
var Code;
|
|
11
|
-
(function (Code) {
|
|
12
|
-
Code["tokenFailure"] = "token_authentication_failure";
|
|
13
|
-
Code["authenticationFailure"] = "authentication_credentials_failure";
|
|
14
|
-
Code["accessNotAllowed"] = "access_not_allowed";
|
|
15
|
-
Code["notFound"] = "not_found";
|
|
16
|
-
Code["validationError"] = "resource_validation_error";
|
|
17
|
-
Code["constraintError"] = "resource_constraint_error";
|
|
18
|
-
Code["internalServerError"] = "internal_server_error";
|
|
19
|
-
Code["serviceUnavailable"] = "service_unavailable";
|
|
20
|
-
Code["invalidData"] = "invalid_data";
|
|
21
|
-
Code["notImplemented"] = "not_implemented";
|
|
22
|
-
Code["invalidUser"] = "invalid_user";
|
|
23
|
-
Code["invalidLogConsole"] = "invalid_log_console";
|
|
24
|
-
Code["invalidLogEndpoint"] = "invalid_log_endpoint";
|
|
25
|
-
Code["expiredPreSignUrl"] = "expired_pre_sign_url";
|
|
26
|
-
Code["alreadyUsedPreSignUrl"] = "already_used_pre_sign_url";
|
|
27
|
-
Code["invalidPreSignUrlType"] = "invalid_pre_sign_url_type";
|
|
28
|
-
Code["invalidPreSignUrlUser"] = "invalid_pre_sign_url_user";
|
|
29
|
-
Code["invalidPreSignUrlContent"] = "invalid_pre_sign_url_content";
|
|
30
|
-
Code["notEnoughUserSpace"] = "not_enough_user_space";
|
|
31
|
-
Code["fileBiggerThanLimit"] = "file_bigger_than_limit";
|
|
32
|
-
Code["maxThumbnailPerFileReached"] = "max_thumbnail_per_file_reached";
|
|
33
|
-
Code["publicAccessPasswordInvalid"] = "public_access_password_invalid";
|
|
34
|
-
Code["maxPreSignUrlPerHourReached"] = "max_pre_sign_url_per_hour_reached";
|
|
35
|
-
Code["collectionSearchFailed"] = "collection_search_failed";
|
|
36
|
-
})(Code
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Code = exports.ErrorType = void 0;
|
|
4
|
+
var ErrorType;
|
|
5
|
+
(function (ErrorType) {
|
|
6
|
+
ErrorType["apiError"] = "api_error";
|
|
7
|
+
ErrorType["authError"] = "authentication_error";
|
|
8
|
+
ErrorType["resourceError"] = "resource_error";
|
|
9
|
+
})(ErrorType || (exports.ErrorType = ErrorType = {}));
|
|
10
|
+
var Code;
|
|
11
|
+
(function (Code) {
|
|
12
|
+
Code["tokenFailure"] = "token_authentication_failure";
|
|
13
|
+
Code["authenticationFailure"] = "authentication_credentials_failure";
|
|
14
|
+
Code["accessNotAllowed"] = "access_not_allowed";
|
|
15
|
+
Code["notFound"] = "not_found";
|
|
16
|
+
Code["validationError"] = "resource_validation_error";
|
|
17
|
+
Code["constraintError"] = "resource_constraint_error";
|
|
18
|
+
Code["internalServerError"] = "internal_server_error";
|
|
19
|
+
Code["serviceUnavailable"] = "service_unavailable";
|
|
20
|
+
Code["invalidData"] = "invalid_data";
|
|
21
|
+
Code["notImplemented"] = "not_implemented";
|
|
22
|
+
Code["invalidUser"] = "invalid_user";
|
|
23
|
+
Code["invalidLogConsole"] = "invalid_log_console";
|
|
24
|
+
Code["invalidLogEndpoint"] = "invalid_log_endpoint";
|
|
25
|
+
Code["expiredPreSignUrl"] = "expired_pre_sign_url";
|
|
26
|
+
Code["alreadyUsedPreSignUrl"] = "already_used_pre_sign_url";
|
|
27
|
+
Code["invalidPreSignUrlType"] = "invalid_pre_sign_url_type";
|
|
28
|
+
Code["invalidPreSignUrlUser"] = "invalid_pre_sign_url_user";
|
|
29
|
+
Code["invalidPreSignUrlContent"] = "invalid_pre_sign_url_content";
|
|
30
|
+
Code["notEnoughUserSpace"] = "not_enough_user_space";
|
|
31
|
+
Code["fileBiggerThanLimit"] = "file_bigger_than_limit";
|
|
32
|
+
Code["maxThumbnailPerFileReached"] = "max_thumbnail_per_file_reached";
|
|
33
|
+
Code["publicAccessPasswordInvalid"] = "public_access_password_invalid";
|
|
34
|
+
Code["maxPreSignUrlPerHourReached"] = "max_pre_sign_url_per_hour_reached";
|
|
35
|
+
Code["collectionSearchFailed"] = "collection_search_failed";
|
|
36
|
+
})(Code || (exports.Code = Code = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare enum ChecksumAlgorithm {
|
|
2
|
-
MD5 = "MD5",
|
|
3
|
-
SHA1 = "SHA1",
|
|
4
|
-
SHA3_512 = "SHA3-512"
|
|
5
|
-
}
|
|
1
|
+
export declare enum ChecksumAlgorithm {
|
|
2
|
+
MD5 = "MD5",
|
|
3
|
+
SHA1 = "SHA1",
|
|
4
|
+
SHA3_512 = "SHA3-512"
|
|
5
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChecksumAlgorithm = void 0;
|
|
4
|
-
var ChecksumAlgorithm;
|
|
5
|
-
(function (ChecksumAlgorithm) {
|
|
6
|
-
ChecksumAlgorithm["MD5"] = "MD5";
|
|
7
|
-
ChecksumAlgorithm["SHA1"] = "SHA1";
|
|
8
|
-
ChecksumAlgorithm["SHA3_512"] = "SHA3-512";
|
|
9
|
-
})(ChecksumAlgorithm
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecksumAlgorithm = void 0;
|
|
4
|
+
var ChecksumAlgorithm;
|
|
5
|
+
(function (ChecksumAlgorithm) {
|
|
6
|
+
ChecksumAlgorithm["MD5"] = "MD5";
|
|
7
|
+
ChecksumAlgorithm["SHA1"] = "SHA1";
|
|
8
|
+
ChecksumAlgorithm["SHA3_512"] = "SHA3-512";
|
|
9
|
+
})(ChecksumAlgorithm || (exports.ChecksumAlgorithm = ChecksumAlgorithm = {}));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './api-error.enum';
|
|
2
|
-
export * from './pre-sign-url-type.enum';
|
|
3
|
-
export * from './webhook-type.enum';
|
|
4
|
-
export * from './mime-type-thumbnail.enum';
|
|
5
|
-
export * from './stream-media-type.enum';
|
|
6
|
-
export * from './checksum-algorithm.enum';
|
|
7
|
-
export * from './algorithm.enum';
|
|
8
|
-
export * from './picture-collection-type.enum';
|
|
9
|
-
export * from './picture-collection-source.enum';
|
|
1
|
+
export * from './api-error.enum';
|
|
2
|
+
export * from './pre-sign-url-type.enum';
|
|
3
|
+
export * from './webhook-type.enum';
|
|
4
|
+
export * from './mime-type-thumbnail.enum';
|
|
5
|
+
export * from './stream-media-type.enum';
|
|
6
|
+
export * from './checksum-algorithm.enum';
|
|
7
|
+
export * from './algorithm.enum';
|
|
8
|
+
export * from './picture-collection-type.enum';
|
|
9
|
+
export * from './picture-collection-source.enum';
|
package/dist/types/enum/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./api-error.enum"), exports);
|
|
18
|
-
__exportStar(require("./pre-sign-url-type.enum"), exports);
|
|
19
|
-
__exportStar(require("./webhook-type.enum"), exports);
|
|
20
|
-
__exportStar(require("./mime-type-thumbnail.enum"), exports);
|
|
21
|
-
__exportStar(require("./stream-media-type.enum"), exports);
|
|
22
|
-
__exportStar(require("./checksum-algorithm.enum"), exports);
|
|
23
|
-
__exportStar(require("./algorithm.enum"), exports);
|
|
24
|
-
__exportStar(require("./picture-collection-type.enum"), exports);
|
|
25
|
-
__exportStar(require("./picture-collection-source.enum"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./api-error.enum"), exports);
|
|
18
|
+
__exportStar(require("./pre-sign-url-type.enum"), exports);
|
|
19
|
+
__exportStar(require("./webhook-type.enum"), exports);
|
|
20
|
+
__exportStar(require("./mime-type-thumbnail.enum"), exports);
|
|
21
|
+
__exportStar(require("./stream-media-type.enum"), exports);
|
|
22
|
+
__exportStar(require("./checksum-algorithm.enum"), exports);
|
|
23
|
+
__exportStar(require("./algorithm.enum"), exports);
|
|
24
|
+
__exportStar(require("./picture-collection-type.enum"), exports);
|
|
25
|
+
__exportStar(require("./picture-collection-source.enum"), exports);
|