ns8-protect-models
Advanced tools
Comparing version 1.0.305-cd.47c9733e21465947555b39cc12650fd474f840ea.0 to 1.0.305-cd.49cc6febe709f46cdb3dc602dd3fe21377395c60.0
@@ -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'; | ||
@@ -52,2 +53,3 @@ export * from './event/MerchantEventType'; | ||
export * from './merchant/TestCustomerVerificationResponse'; | ||
export * from './MerchantMigration'; | ||
export * from './MerchantStatus'; | ||
@@ -54,0 +56,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")); |
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,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 |
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.47c9733e21465947555b39cc12650fd474f840ea.0", | ||
"version": "1.0.305-cd.49cc6febe709f46cdb3dc602dd3fe21377395c60.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
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
259672
375
4441