@vivse/backend-library
Advanced tools
Comparing version 1.0.6 to 1.0.7
export declare const WRK_IMAGE_PROCESSING_SERVICE = "VIVSE_WRK_IMAGE_PROCESSING_SERVICE"; | ||
export declare enum WrkImageProcessingEvents { | ||
IMAGE_READY = "VIVSE_WRK_IMAGE_PROCESSING__IMAGE_READY", | ||
IMAGE_REQUEST = "VIVSE_WRK_IMAGE_PROCESSING__IMAGE_REQUEST" | ||
IMAGE_READY = "VIVSE_WRK_IMAGE_PROCESSING_EVENT__IMAGE_READY", | ||
IMAGE_REQUEST = "VIVSE_WRK_IMAGE_PROCESSING_EVENT__IMAGE_REQUEST" | ||
} | ||
export declare enum WrkImageProcessingContext { | ||
GALLERY_UPLOAD = "VIVSE_WRK_IMAGE_PROCESSING_CONTEXT__GALLERY_UPLOAD", | ||
EDITED_PHOTO_UPLOAD = "VIVSE_WRK_IMAGE_PROCESSING_CONTEXT__EDITED_PHOTO_UPLOAD" | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.WrkImageProcessingEvents = exports.WRK_IMAGE_PROCESSING_SERVICE = void 0; | ||
exports.WrkImageProcessingContext = exports.WrkImageProcessingEvents = exports.WRK_IMAGE_PROCESSING_SERVICE = void 0; | ||
exports.WRK_IMAGE_PROCESSING_SERVICE = 'VIVSE_WRK_IMAGE_PROCESSING_SERVICE'; | ||
var WrkImageProcessingEvents; | ||
(function (WrkImageProcessingEvents) { | ||
WrkImageProcessingEvents["IMAGE_READY"] = "VIVSE_WRK_IMAGE_PROCESSING__IMAGE_READY"; | ||
WrkImageProcessingEvents["IMAGE_REQUEST"] = "VIVSE_WRK_IMAGE_PROCESSING__IMAGE_REQUEST"; | ||
WrkImageProcessingEvents["IMAGE_READY"] = "VIVSE_WRK_IMAGE_PROCESSING_EVENT__IMAGE_READY"; | ||
WrkImageProcessingEvents["IMAGE_REQUEST"] = "VIVSE_WRK_IMAGE_PROCESSING_EVENT__IMAGE_REQUEST"; | ||
})(WrkImageProcessingEvents = exports.WrkImageProcessingEvents || (exports.WrkImageProcessingEvents = {})); | ||
var WrkImageProcessingContext; | ||
(function (WrkImageProcessingContext) { | ||
WrkImageProcessingContext["GALLERY_UPLOAD"] = "VIVSE_WRK_IMAGE_PROCESSING_CONTEXT__GALLERY_UPLOAD"; | ||
WrkImageProcessingContext["EDITED_PHOTO_UPLOAD"] = "VIVSE_WRK_IMAGE_PROCESSING_CONTEXT__EDITED_PHOTO_UPLOAD"; | ||
})(WrkImageProcessingContext = exports.WrkImageProcessingContext || (exports.WrkImageProcessingContext = {})); | ||
//# sourceMappingURL=defs.js.map |
@@ -0,10 +1,26 @@ | ||
/// <reference types="node" /> | ||
import { FileWithMeta } from '../types'; | ||
export interface WrkImageProcessingImageRequestMetadata { | ||
photoId: string; | ||
import { WrkImageProcessingContext } from './defs'; | ||
export interface WrkImageProcessingMetadataBase { | ||
fileName: string; | ||
} | ||
export interface WrkImageProcessingImageRequestPayload { | ||
image: any; | ||
metadata: WrkImageProcessingImageRequestMetadata; | ||
export interface WrkImageProcessingGalleryUploadContextMetadata extends WrkImageProcessingMetadataBase { | ||
galleryId: string; | ||
photoId: string; | ||
} | ||
export interface WrkImageProcessingEditedPhotoUploadContextMetadata extends WrkImageProcessingGalleryUploadContextMetadata { | ||
orderId: string; | ||
} | ||
export interface WrkImageProcessingImageRequestPayloadBase { | ||
image: Buffer; | ||
} | ||
export interface WrkImageProcessingImageRequestGalleryUploadContextPayload extends WrkImageProcessingImageRequestPayloadBase { | ||
context: WrkImageProcessingContext.GALLERY_UPLOAD; | ||
metadata: WrkImageProcessingGalleryUploadContextMetadata; | ||
} | ||
export interface WrkImageProcessingImageRequestEditedPhotoUploadContextPayload extends WrkImageProcessingImageRequestPayloadBase { | ||
context: WrkImageProcessingContext.EDITED_PHOTO_UPLOAD; | ||
metadata: WrkImageProcessingEditedPhotoUploadContextMetadata; | ||
} | ||
export declare type WrkImageProcessingImageRequestPayload = WrkImageProcessingImageRequestGalleryUploadContextPayload | WrkImageProcessingImageRequestEditedPhotoUploadContextPayload; | ||
export declare type WrkImageProcessingImageData = FileWithMeta; | ||
@@ -16,5 +32,13 @@ export interface WrkImageProcessingImageSetData { | ||
} | ||
export interface WrkImageProcessingImageReadyPayload { | ||
export interface WrkImageProcessingImageReadyPayloadBase { | ||
images: WrkImageProcessingImageSetData; | ||
metadata: WrkImageProcessingImageRequestMetadata; | ||
} | ||
export interface WrkImageProcessingImageReadyGalleryUploadContextPayload extends WrkImageProcessingImageReadyPayloadBase { | ||
context: WrkImageProcessingContext.GALLERY_UPLOAD; | ||
metadata: WrkImageProcessingGalleryUploadContextMetadata; | ||
} | ||
export interface WrkImageProcessingImageReadyEditedPhotoUploadContextPayload extends WrkImageProcessingImageReadyPayloadBase { | ||
context: WrkImageProcessingContext.EDITED_PHOTO_UPLOAD; | ||
metadata: WrkImageProcessingEditedPhotoUploadContextMetadata; | ||
} | ||
export declare type WrkImageProcessingImageReadyPayload = WrkImageProcessingImageReadyGalleryUploadContextPayload | WrkImageProcessingImageReadyEditedPhotoUploadContextPayload; |
{ | ||
"name": "@vivse/backend-library", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "NestJS library for vivse.sk", | ||
@@ -5,0 +5,0 @@ "author": "Kristián Žuffa <kristian.zuffa@gmail.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91991
181