@aptly-as/types
Advanced tools
Comparing version 1.0.1 to 1.1.0
export declare enum AptlyWebhookType { | ||
UnitInviteAccepted = "as.aptly.unit.invite.accepted", | ||
NewUnitMessage = "as.aptly.unit.message.new", | ||
UnitMessageNew = "as.aptly.unit.message.new", | ||
UnitMessageReply = "as.aptly.unit.message.reply", | ||
NewUnitOrderSigned = "as.aptly.unit.order.signed" | ||
@@ -5,0 +6,0 @@ } |
@@ -6,3 +6,4 @@ "use strict"; | ||
AptlyWebhookType["UnitInviteAccepted"] = "as.aptly.unit.invite.accepted"; | ||
AptlyWebhookType["NewUnitMessage"] = "as.aptly.unit.message.new"; | ||
AptlyWebhookType["UnitMessageNew"] = "as.aptly.unit.message.new"; | ||
AptlyWebhookType["UnitMessageReply"] = "as.aptly.unit.message.reply"; | ||
AptlyWebhookType["NewUnitOrderSigned"] = "as.aptly.unit.order.signed"; | ||
@@ -9,0 +10,0 @@ })(AptlyWebhookType = exports.AptlyWebhookType || (exports.AptlyWebhookType = {})); |
export enum AptlyWebhookType { | ||
UnitInviteAccepted = 'as.aptly.unit.invite.accepted', | ||
NewUnitMessage = 'as.aptly.unit.message.new', | ||
UnitMessageNew = 'as.aptly.unit.message.new', | ||
UnitMessageReply = 'as.aptly.unit.message.reply', | ||
NewUnitOrderSigned = 'as.aptly.unit.order.signed' | ||
@@ -6,0 +7,0 @@ } |
@@ -20,2 +20,3 @@ export * from './booking'; | ||
export * from './unit-template'; | ||
export * from './unit-email'; | ||
export * from './upsell-template'; | ||
@@ -22,0 +23,0 @@ export * from './user'; |
@@ -25,2 +25,3 @@ "use strict"; | ||
__export(require("./unit-template")); | ||
__export(require("./unit-email")); | ||
__export(require("./upsell-template")); | ||
@@ -27,0 +28,0 @@ __export(require("./user")); |
@@ -21,2 +21,3 @@ | ||
export * from './unit-template'; | ||
export * from './unit-email'; | ||
export * from './upsell-template'; | ||
@@ -23,0 +24,0 @@ export * from './user'; |
import { AptlyInquiryParticipantRole, AptlyInquiryStatus, AptlyInquiryType } from '../enums'; | ||
import { AptlySchemaFile } from '../core'; | ||
import { AptlyUnitSchema } from './unit'; | ||
import { AptlyOrganizationSchema } from './organization'; | ||
import { AptlyProjectSchema } from './project'; | ||
import { AptlyUserSchema } from './user'; | ||
export declare type AptlyInquiry = AptlyInquirySchema<string, string>; | ||
@@ -8,5 +12,5 @@ export interface AptlyInquirySchema<ID, DATE> { | ||
title: string; | ||
project: ID; | ||
organization: ID; | ||
unit: ID; | ||
project: ID | AptlyProjectSchema<ID, DATE>; | ||
organization: ID | AptlyOrganizationSchema<ID, DATE>; | ||
unit: ID | AptlyUnitSchema<ID, DATE>; | ||
product?: ID; | ||
@@ -19,5 +23,7 @@ producer?: ID; | ||
lastParticipant?: ID; | ||
lastMessageId?: string; | ||
status: AptlyInquiryStatus; | ||
participants: AptlyInquiryParticipantSchema<ID, DATE>[]; | ||
messages: AptlyInquiryMessageSchema<ID, DATE>[]; | ||
references?: string; | ||
} | ||
@@ -27,3 +33,4 @@ export declare type AptlyInquiryParticipant = AptlyInquiryParticipantSchema<string, string>; | ||
_id: ID; | ||
user: ID; | ||
user?: ID | AptlyUserSchema<ID, DATE>; | ||
email?: string; | ||
role: AptlyInquiryParticipantRole; | ||
@@ -41,3 +48,3 @@ readAll: boolean; | ||
files: AptlySchemaFile[]; | ||
author: ID; | ||
author?: ID; | ||
sentTime: DATE; | ||
@@ -48,2 +55,3 @@ read: { | ||
}[]; | ||
messageId?: string; | ||
} |
import { AptlyInquiryParticipantRole, AptlyInquiryStatus, AptlyInquiryType } from '../enums'; | ||
import { AptlySchemaFile } from '../core'; | ||
import { AptlyUnitSchema } from './unit'; | ||
import { AptlyOrganizationSchema } from './organization'; | ||
import { AptlyProjectSchema } from './project'; | ||
import { AptlyUserSchema } from './user'; | ||
@@ -9,5 +13,5 @@ export type AptlyInquiry = AptlyInquirySchema<string, string>; | ||
title: string; | ||
project: ID; | ||
organization: ID; | ||
unit: ID; | ||
project: ID | AptlyProjectSchema<ID, DATE>; | ||
organization: ID | AptlyOrganizationSchema<ID, DATE>; | ||
unit: ID | AptlyUnitSchema<ID, DATE>; | ||
product?: ID; | ||
@@ -20,5 +24,7 @@ producer?: ID; | ||
lastParticipant?: ID; | ||
lastMessageId?: string; | ||
status: AptlyInquiryStatus; | ||
participants: AptlyInquiryParticipantSchema<ID, DATE>[]; | ||
messages: AptlyInquiryMessageSchema<ID, DATE>[]; | ||
references?: string; | ||
} | ||
@@ -29,3 +35,4 @@ | ||
_id: ID; | ||
user: ID; | ||
user?: ID | AptlyUserSchema<ID, DATE>; | ||
email?: string; | ||
role: AptlyInquiryParticipantRole; | ||
@@ -44,3 +51,3 @@ readAll: boolean; | ||
files: AptlySchemaFile[]; | ||
author: ID; | ||
author?: ID; | ||
sentTime: DATE; | ||
@@ -51,2 +58,3 @@ read: { | ||
}[]; | ||
messageId?: string; | ||
} |
@@ -6,2 +6,3 @@ import { AptlyProjectSchema } from './project'; | ||
import { AptlyUserSchema } from './user'; | ||
import { AptlyOrganizationSchema } from './organization'; | ||
export declare type AptlyUnit = AptlyUnitSchema<string, string>; | ||
@@ -29,2 +30,3 @@ export interface AptlyUnitSchema<ID, DATE> extends AptlyUnitTemplateBaseSchema<ID, DATE>, AptlyUnitEditData, AptlyHistorySchema<ID, DATE> { | ||
}[]; | ||
organization: AptlyOrganizationSchema<ID, DATE> | ID; | ||
project: AptlyProjectSchema<ID, DATE> | ID; | ||
@@ -209,2 +211,3 @@ users: (AptlyUserSchema<ID, DATE> | ID)[]; | ||
created: DATE; | ||
createdBy?: ID | AptlyUserSchema<ID, DATE>; | ||
newOwner: boolean; | ||
@@ -211,0 +214,0 @@ claim: { |
@@ -6,2 +6,3 @@ import { AptlyProjectSchema } from './project'; | ||
import { AptlyUserSchema } from './user'; | ||
import { AptlyOrganizationSchema } from './organization'; | ||
@@ -31,2 +32,3 @@ export type AptlyUnit = AptlyUnitSchema<string, string>; | ||
}[]; | ||
organization: AptlyOrganizationSchema<ID, DATE> | ID; | ||
project: AptlyProjectSchema<ID, DATE> | ID; | ||
@@ -233,3 +235,4 @@ users: (AptlyUserSchema<ID, DATE> | ID)[]; | ||
code: string; | ||
created: DATE, | ||
created: DATE; | ||
createdBy?: ID | AptlyUserSchema<ID, DATE>; | ||
newOwner: boolean; | ||
@@ -236,0 +239,0 @@ claim: { |
@@ -13,2 +13,3 @@ import { AptlyWebhookEventStatus, AptlyWebhookType } from '../enums'; | ||
data?: DATA; | ||
state?: string; | ||
run: DATE; | ||
@@ -15,0 +16,0 @@ webhook: ID; |
@@ -14,2 +14,3 @@ import { AptlyWebhookEventStatus, AptlyWebhookType } from '../enums'; | ||
data?: DATA; | ||
state?: string; | ||
@@ -16,0 +17,0 @@ run: DATE; |
@@ -10,4 +10,5 @@ import { AptlyWebhookType } from '../enums'; | ||
types: AptlyWebhookType[]; | ||
secret: string; | ||
secret?: string; | ||
state?: string; | ||
} | ||
export declare type AptlyWebhook = AptlyWebhookSchema<string, string>; |
@@ -12,4 +12,5 @@ import { AptlyWebhookType } from '../enums'; | ||
types: AptlyWebhookType[]; | ||
secret: string; | ||
secret?: string; | ||
state?: string; | ||
} | ||
export type AptlyWebhook = AptlyWebhookSchema<string, string>; |
{ | ||
"name": "@aptly-as/types", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Aptly types and enums", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
99367
146
2703