Socket
Socket
Sign inDemoInstall

ns8-protect-models

Package Overview
Dependencies
Maintainers
2
Versions
415
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ns8-protect-models - npm Package Compare versions

Comparing version 1.0.305-cd.f920fcefb314e37ee8155b2d6288686b3b52569e.0 to 1.0.305-cd.fe00ea12a61261e951f7f1a6e42e30844c1920c7.0

lib/event/ExtensionEventType.d.ts

2

lib/AccessToken.d.ts

@@ -8,2 +8,4 @@ import { SubjectType } from './SubjectType';

subjectType: SubjectType;
clientId: string;
clientSecret: string;
}

@@ -20,2 +20,3 @@ export * from './AccessToken';

export * from './event/ActorType';
export * from './event/ExtensionEventType';
export * from './event/MerchantEvent';

@@ -39,3 +40,5 @@ export * from './event/MerchantEventType';

export * from './InterceptOption';
export * from './interface/Chargeback';
export * from './interface/IValidatable';
export * from './interface/MerchantRelationships';
export * from './interface/PartnerMerchantFilter';

@@ -53,2 +56,3 @@ export * from './interface/PlatformInstallRequest';

export * from './merchant/TestCustomerVerificationResponse';
export * from './MerchantMigration';
export * from './MerchantStatus';

@@ -55,0 +59,0 @@ export * from './MerchantUpdate';

@@ -25,2 +25,3 @@ "use strict";

__export(require("./event/ActorType"));
__export(require("./event/ExtensionEventType"));
__export(require("./event/MerchantEvent"));

@@ -53,2 +54,3 @@ __export(require("./event/MerchantEventType"));

__export(require("./merchant/TestCustomerVerificationResponse"));
__export(require("./MerchantMigration"));
__export(require("./MerchantStatus"));

@@ -55,0 +57,0 @@ __export(require("./MerchantUpdate"));

@@ -8,2 +8,3 @@ import { MerchantInstallProfile } from './MerchantInstallProfile';

storeUrl: string;
name?: string;
identitySecret?: string;

@@ -10,0 +11,0 @@ secret?: string;

6

lib/Partner.d.ts

@@ -16,5 +16,2 @@ import { Account } from './accounts/Account';

isVisible: boolean;
publicUrlSlug?: string;
logoSrc?: string;
stripeId?: string;
}

@@ -26,2 +23,5 @@ export declare class Partner extends PartnerBase implements AuditObject {

isAccountReviewed?: boolean;
publicUrlSlug?: string;
logoSrc?: string;
stripeId?: string;
createdAt: Date;

@@ -28,0 +28,0 @@ updatedAt: Date;

@@ -28,4 +28,5 @@ "use strict";

__decorate([
class_validator_1.IsOptional(),
class_validator_1.ValidateIf((partner) => partner.website && partner.website.length > 0),
class_validator_1.IsUrl(),
class_validator_1.IsOptional(),
class_validator_1.MaxLength(255)

@@ -49,16 +50,2 @@ ], PartnerBase.prototype, "website", void 0);

], PartnerBase.prototype, "isVisible", void 0);
__decorate([
class_validator_1.IsString(),
class_validator_1.IsOptional(),
class_validator_1.MaxLength(100)
], PartnerBase.prototype, "publicUrlSlug", void 0);
__decorate([
class_validator_1.IsUrl(),
class_validator_1.IsOptional(),
class_validator_1.MaxLength(255)
], PartnerBase.prototype, "logoSrc", void 0);
__decorate([
class_validator_1.IsOptional(),
class_validator_1.MaxLength(255)
], PartnerBase.prototype, "stripeId", void 0);
exports.PartnerBase = PartnerBase;

@@ -91,2 +78,16 @@ class Partner extends PartnerBase {

__decorate([
class_validator_1.IsString(),
class_validator_1.IsOptional(),
class_validator_1.MaxLength(100)
], Partner.prototype, "publicUrlSlug", void 0);
__decorate([
class_validator_1.IsUrl(),
class_validator_1.IsOptional(),
class_validator_1.MaxLength(255)
], Partner.prototype, "logoSrc", void 0);
__decorate([
class_validator_1.IsOptional(),
class_validator_1.MaxLength(255)
], Partner.prototype, "stripeId", void 0);
__decorate([
class_validator_1.ValidateNested()

@@ -93,0 +94,0 @@ ], Partner.prototype, "account", void 0);

import { IntegrationPlatformType } from './IntegrationPlatformType';
export declare class PartnerReferralRequest {
constructor(partial?: Partial<PartnerReferralRequest>);
id: string;
export declare class PartnerReferralRequestBase {
contactName: string;

@@ -9,2 +7,6 @@ website: string;

platform: IntegrationPlatformType;
}
export declare class PartnerReferralRequest extends PartnerReferralRequestBase {
constructor(partial?: Partial<PartnerReferralRequest>);
id: string;
partnerId: string;

@@ -11,0 +13,0 @@ createdAt: Date;

@@ -11,4 +11,24 @@ "use strict";

const IntegrationPlatformType_1 = require("./IntegrationPlatformType");
class PartnerReferralRequest {
class PartnerReferralRequestBase {
}
__decorate([
class_validator_1.IsString(),
class_validator_1.MaxLength(255)
], PartnerReferralRequestBase.prototype, "contactName", void 0);
__decorate([
class_validator_1.IsString(),
class_validator_1.IsUrl(),
class_validator_1.MaxLength(255)
], PartnerReferralRequestBase.prototype, "website", void 0);
__decorate([
class_validator_1.IsDateString()
], PartnerReferralRequestBase.prototype, "estimatedReferralDate", void 0);
__decorate([
class_validator_1.IsEnum(IntegrationPlatformType_1.IntegrationPlatformType),
class_validator_1.MaxLength(50)
], PartnerReferralRequestBase.prototype, "platform", void 0);
exports.PartnerReferralRequestBase = PartnerReferralRequestBase;
class PartnerReferralRequest extends PartnerReferralRequestBase {
constructor(partial) {
super();
Object.assign(this, partial || {});

@@ -26,17 +46,2 @@ }

__decorate([
class_validator_1.IsString(),
class_validator_1.MaxLength(255)
], PartnerReferralRequest.prototype, "contactName", void 0);
__decorate([
class_validator_1.IsString(),
class_validator_1.MaxLength(255)
], PartnerReferralRequest.prototype, "website", void 0);
__decorate([
class_validator_1.IsDate()
], PartnerReferralRequest.prototype, "estimatedReferralDate", void 0);
__decorate([
class_validator_1.IsEnum(IntegrationPlatformType_1.IntegrationPlatformType),
class_validator_1.MaxLength(50)
], PartnerReferralRequest.prototype, "platform", void 0);
__decorate([
class_validator_1.IsUUID()

@@ -43,0 +48,0 @@ ], PartnerReferralRequest.prototype, "partnerId", void 0);

import { Partner } from './Partner';
export declare class PartnerShowcase {
export declare class PartnerShowcaseBase {
title: string;
caption: string;
order: number;
}
export declare class PartnerShowcase extends PartnerShowcaseBase {
static readonly MAX_IMAGE_SIZE: number;

@@ -7,7 +12,4 @@ constructor(partial?: Partial<PartnerShowcase>);

imageURL?: string;
title: string;
caption: string;
partnerId: string;
partner: Partner;
order: number;
}

@@ -10,4 +10,26 @@ "use strict";

const class_validator_1 = require("class-validator");
class PartnerShowcase {
class PartnerShowcaseBase {
}
__decorate([
class_validator_1.IsString({ always: true }),
class_validator_1.IsNotEmpty({ groups: ['create'] }),
class_validator_1.IsOptional({ groups: ['update'] }),
class_validator_1.MaxLength(255, { always: true })
], PartnerShowcaseBase.prototype, "title", void 0);
__decorate([
class_validator_1.IsString({ always: true }),
class_validator_1.IsNotEmpty({ groups: ['create'] }),
class_validator_1.IsOptional({ groups: ['update'] }),
class_validator_1.MaxLength(255, { always: true })
], PartnerShowcaseBase.prototype, "caption", void 0);
__decorate([
class_validator_1.IsInt({ always: true }),
class_validator_1.IsOptional({ groups: ['update'] }),
class_validator_1.Min(0, { always: true }),
class_validator_1.Max(10, { always: true })
], PartnerShowcaseBase.prototype, "order", void 0);
exports.PartnerShowcaseBase = PartnerShowcaseBase;
class PartnerShowcase extends PartnerShowcaseBase {
constructor(partial) {
super();
Object.assign(this, partial || {});

@@ -25,18 +47,5 @@ }

__decorate([
class_validator_1.IsString(),
class_validator_1.MaxLength(255)
], PartnerShowcase.prototype, "title", void 0);
__decorate([
class_validator_1.IsString(),
class_validator_1.MaxLength(255)
], PartnerShowcase.prototype, "caption", void 0);
__decorate([
class_validator_1.IsUUID()
], PartnerShowcase.prototype, "partnerId", void 0);
__decorate([
class_validator_1.IsInt(),
class_validator_1.Min(0),
class_validator_1.Max(10)
], PartnerShowcase.prototype, "order", void 0);
exports.PartnerShowcase = PartnerShowcase;
//# sourceMappingURL=PartnerShowcase.js.map
import { Partner } from './Partner';
export declare class PartnerTestimonial {
export declare class PartnerTestimonialBase {
testimonial: string;
company: string;
contact: string;
businessURL: string;
order: number;
}
export declare class PartnerTestimonial extends PartnerTestimonialBase {
static readonly MAX_IMAGE_SIZE: number;

@@ -7,9 +14,4 @@ constructor(partial?: Partial<PartnerTestimonial>);

imageURL?: string;
testimonial: string;
company: string;
contact: string;
businessURL: string;
partnerId: string;
partner: Partner;
order: number;
}

@@ -10,4 +10,38 @@ "use strict";

const class_validator_1 = require("class-validator");
class PartnerTestimonial {
class PartnerTestimonialBase {
}
__decorate([
class_validator_1.IsString({ always: true }),
class_validator_1.IsNotEmpty({ groups: ['create'] }),
class_validator_1.IsOptional({ groups: ['update'] }),
class_validator_1.MaxLength(255, { always: true })
], PartnerTestimonialBase.prototype, "testimonial", void 0);
__decorate([
class_validator_1.IsString({ always: true }),
class_validator_1.IsNotEmpty({ groups: ['create'] }),
class_validator_1.IsOptional({ groups: ['update'] }),
class_validator_1.MaxLength(255, { always: true })
], PartnerTestimonialBase.prototype, "company", void 0);
__decorate([
class_validator_1.IsString({ always: true }),
class_validator_1.IsNotEmpty({ groups: ['create'] }),
class_validator_1.IsOptional({ groups: ['update'] }),
class_validator_1.MaxLength(255, { always: true })
], PartnerTestimonialBase.prototype, "contact", void 0);
__decorate([
class_validator_1.IsString({ always: true }),
class_validator_1.IsNotEmpty({ groups: ['create'] }),
class_validator_1.IsOptional({ groups: ['update'] }),
class_validator_1.MaxLength(255, { always: true })
], PartnerTestimonialBase.prototype, "businessURL", void 0);
__decorate([
class_validator_1.IsInt({ always: true }),
class_validator_1.IsOptional({ groups: ['update'] }),
class_validator_1.Min(0, { always: true }),
class_validator_1.Max(10, { always: true })
], PartnerTestimonialBase.prototype, "order", void 0);
exports.PartnerTestimonialBase = PartnerTestimonialBase;
class PartnerTestimonial extends PartnerTestimonialBase {
constructor(partial) {
super();
Object.assign(this, partial || {});

@@ -25,26 +59,5 @@ }

__decorate([
class_validator_1.IsString(),
class_validator_1.MaxLength(255)
], PartnerTestimonial.prototype, "testimonial", void 0);
__decorate([
class_validator_1.IsString(),
class_validator_1.MaxLength(255)
], PartnerTestimonial.prototype, "company", void 0);
__decorate([
class_validator_1.IsString(),
class_validator_1.MaxLength(255)
], PartnerTestimonial.prototype, "contact", void 0);
__decorate([
class_validator_1.IsString(),
class_validator_1.MaxLength(255)
], PartnerTestimonial.prototype, "businessURL", void 0);
__decorate([
class_validator_1.IsUUID()
], PartnerTestimonial.prototype, "partnerId", void 0);
__decorate([
class_validator_1.IsInt(),
class_validator_1.Min(0),
class_validator_1.Max(10)
], PartnerTestimonial.prototype, "order", void 0);
exports.PartnerTestimonial = PartnerTestimonial;
//# sourceMappingURL=PartnerTestimonial.js.map

@@ -6,1 +6,2 @@ import { ValidationError } from 'class-validator';

}
export declare function isValidUUID(uuid: string): boolean;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const class_validator_1 = require("class-validator");
const validator_1 = require("validator");
class ProtectValidator {

@@ -23,2 +24,6 @@ static async isValid(obj) {

exports.ProtectValidator = ProtectValidator;
function isValidUUID(uuid) {
return typeof uuid === 'string' && validator_1.isUUID(uuid);
}
exports.isValidUUID = isValidUUID;
//# sourceMappingURL=ProtectValidator.js.map
{
"name": "ns8-protect-models",
"version": "1.0.305-cd.f920fcefb314e37ee8155b2d6288686b3b52569e.0",
"version": "1.0.305-cd.fe00ea12a61261e951f7f1a6e42e30844c1920c7.0",
"description": "Core data model classes defined by protect and shared with consumers like switchboard",

@@ -33,3 +33,3 @@ "types": "lib/index.d.ts",

"class-validator": "^0.11.0",
"ns8-billing-core": "^1.0.1980",
"ns8-billing-core": "^1.0.2049",
"uuid": "^7.0.3"

@@ -36,0 +36,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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