@aptly-as/types
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -5,4 +5,4 @@ import { AptlyDocumentSchema, AptlyOrderSchema, AptlyUnitSchema } from '../models'; | ||
interface NewUnitOrderSignedSchema<ID, DATE> { | ||
order: AptlyOrderSchema<ID, DATE>; | ||
unit: AptlyUnitSchema<ID, DATE>; | ||
order: Pick<AptlyOrderSchema<ID, DATE>, '_id' | 'orderNumber' | 'receipt' | 'period'>; | ||
unit: Pick<AptlyUnitSchema<ID, DATE>, '_id' | 'name'>; | ||
document: AptlyDocumentSchema<ID, DATE>; | ||
@@ -9,0 +9,0 @@ documentUrl: string; |
@@ -10,4 +10,4 @@ import { | ||
export interface NewUnitOrderSignedSchema<ID, DATE> { | ||
order: AptlyOrderSchema<ID, DATE>; | ||
unit: AptlyUnitSchema<ID, DATE>; | ||
order: Pick<AptlyOrderSchema<ID, DATE>, '_id' | 'orderNumber' | 'receipt' | 'period'>; | ||
unit: Pick<AptlyUnitSchema<ID, DATE>, '_id' | 'name'>; | ||
document: AptlyDocumentSchema<ID, DATE>; | ||
@@ -14,0 +14,0 @@ documentUrl: string; |
@@ -6,3 +6,2 @@ export declare enum AptlyWebhookType { | ||
UnitUpdated = "as.aptly.unit.updated", | ||
UnitInviteAccepted = "as.aptly.unit.invite.accepted", | ||
UnitMessageNew = "as.aptly.unit.message.new", | ||
@@ -12,2 +11,6 @@ UnitMessageReply = "as.aptly.unit.message.reply", | ||
} | ||
export declare enum AptlyWebhookStatus { | ||
Active = "active", | ||
Gone = "gone-401" | ||
} | ||
export declare enum AptlyWebhookEventStatus { | ||
@@ -14,0 +17,0 @@ New = "new", |
@@ -9,3 +9,2 @@ "use strict"; | ||
AptlyWebhookType["UnitUpdated"] = "as.aptly.unit.updated"; | ||
AptlyWebhookType["UnitInviteAccepted"] = "as.aptly.unit.invite.accepted"; | ||
AptlyWebhookType["UnitMessageNew"] = "as.aptly.unit.message.new"; | ||
@@ -15,2 +14,7 @@ AptlyWebhookType["UnitMessageReply"] = "as.aptly.unit.message.reply"; | ||
})(AptlyWebhookType = exports.AptlyWebhookType || (exports.AptlyWebhookType = {})); | ||
var AptlyWebhookStatus; | ||
(function (AptlyWebhookStatus) { | ||
AptlyWebhookStatus["Active"] = "active"; | ||
AptlyWebhookStatus["Gone"] = "gone-401"; | ||
})(AptlyWebhookStatus = exports.AptlyWebhookStatus || (exports.AptlyWebhookStatus = {})); | ||
var AptlyWebhookEventStatus; | ||
@@ -17,0 +21,0 @@ (function (AptlyWebhookEventStatus) { |
@@ -7,3 +7,2 @@ | ||
UnitUpdated = 'as.aptly.unit.updated', | ||
UnitInviteAccepted = 'as.aptly.unit.invite.accepted', | ||
UnitMessageNew = 'as.aptly.unit.message.new', | ||
@@ -13,2 +12,8 @@ UnitMessageReply = 'as.aptly.unit.message.reply', | ||
} | ||
export enum AptlyWebhookStatus { | ||
Active = 'active', | ||
Gone = 'gone-401' | ||
} | ||
export enum AptlyWebhookEventStatus { | ||
@@ -15,0 +20,0 @@ New = 'new', |
@@ -1,2 +0,2 @@ | ||
import { AptlyWebhookType } from '../enums'; | ||
import { AptlyWebhookStatus, AptlyWebhookType } from '../enums'; | ||
export interface AptlyWebhookSchema<ID, DATE> { | ||
@@ -8,2 +8,3 @@ _id: ID; | ||
created: DATE; | ||
status: AptlyWebhookStatus; | ||
url: string; | ||
@@ -10,0 +11,0 @@ types: AptlyWebhookType[]; |
@@ -1,2 +0,2 @@ | ||
import { AptlyWebhookType } from '../enums'; | ||
import { AptlyWebhookStatus, AptlyWebhookType } from '../enums'; | ||
@@ -9,2 +9,3 @@ export interface AptlyWebhookSchema<ID, DATE> { | ||
created: DATE; | ||
status: AptlyWebhookStatus; | ||
@@ -11,0 +12,0 @@ url: string; |
{ | ||
"name": "@aptly-as/types", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Aptly types and enums", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
Sorry, the diff of this file is not supported yet
101438
2751