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

ns8-protect-models

Package Overview
Dependencies
Maintainers
1
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.a4985b7cf17edf910605d0e8624c6dcd0a159c4e.0 to 1.0.305-cd.a9da379a526ea05af2121800191bde6f67f8b09a.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;
}

3

lib/extension/EkataMigrationListOptions.js

@@ -14,4 +14,3 @@ "use strict";

class_validator_1.IsInt(),
class_validator_1.Min(1),
class_validator_1.Max(50)
class_validator_1.Min(1)
], EkataMigrationListOptions.prototype, "count", void 0);

@@ -18,0 +17,0 @@ __decorate([

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

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

@@ -52,4 +53,6 @@ export * from './event/MerchantEventType';

export * from './merchant/TestCustomerVerificationResponse';
export * from './MerchantMigration';
export * from './MerchantStatus';
export * from './MerchantUpdate';
export * from './migrations/EkataMigrationStatusResponse';
export * from './MonitorPutOptions';

@@ -56,0 +59,0 @@ export * from './MonitorStationType';

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

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

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

__export(require("./merchant/TestCustomerVerificationResponse"));
__export(require("./MerchantMigration"));
__export(require("./MerchantStatus"));
__export(require("./MerchantUpdate"));
__export(require("./migrations/EkataMigrationStatusResponse"));
__export(require("./MonitorPutOptions"));

@@ -57,0 +60,0 @@ __export(require("./MonitorStationType"));

import { Contact } from './Contact';
import { MerchantStatus } from './MerchantStatus';
import { Profile } from './Profile';
export declare class MerchantUpdate {

@@ -8,3 +9,4 @@ constructor(partial?: Partial<MerchantUpdate>);

contact?: Contact;
profile?: Profile;
storefrontUrl?: string;
}

@@ -31,2 +31,6 @@ "use strict";

class_validator_1.IsOptional(),
class_validator_1.ValidateNested()
], MerchantUpdate.prototype, "profile", void 0);
__decorate([
class_validator_1.IsOptional(),
class_validator_1.IsString()

@@ -33,0 +37,0 @@ ], MerchantUpdate.prototype, "storefrontUrl", void 0);

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

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

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

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

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

@@ -48,12 +48,2 @@ "use strict";

], 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);
exports.PartnerBase = PartnerBase;

@@ -86,2 +76,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()

@@ -88,0 +92,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
export declare enum SubjectType {
MERCHANT = "MERCHANT",
DEVELOPER = "DEVELOPER",
STRIPE = "STRIPE"
EXTENSION = "EXTENSION"
}

@@ -7,4 +7,4 @@ "use strict";

SubjectType["DEVELOPER"] = "DEVELOPER";
SubjectType["STRIPE"] = "STRIPE";
SubjectType["EXTENSION"] = "EXTENSION";
})(SubjectType = exports.SubjectType || (exports.SubjectType = {}));
//# sourceMappingURL=SubjectType.js.map
{
"name": "ns8-protect-models",
"version": "1.0.305-cd.a4985b7cf17edf910605d0e8624c6dcd0a159c4e.0",
"version": "1.0.305-cd.a9da379a526ea05af2121800191bde6f67f8b09a.0",
"description": "Core data model classes defined by protect and shared with consumers like switchboard",

@@ -5,0 +5,0 @@ "types": "lib/index.d.ts",

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

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