Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vivse/backend-library

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vivse/backend-library - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

8

config/defs.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc