@aptly-as/types
Advanced tools
Comparing version 1.3.4 to 1.4.0
@@ -1,3 +0,3 @@ | ||
export interface AptlyUserClientSchema<ID, DATE> { | ||
_id: ID; | ||
import { AptlyBaseSchema } from './extends'; | ||
export interface AptlyUserClientSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> { | ||
user: ID; | ||
@@ -8,5 +8,7 @@ subject: string; | ||
permissions: any; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
name: string; | ||
} | ||
export declare type AptlyUserClient = AptlyUserClientSchema<string, string>; |
@@ -1,3 +0,4 @@ | ||
export interface AptlyUserClientSchema<ID, DATE> { | ||
_id: ID; | ||
import { AptlyBaseSchema } from './extends'; | ||
export interface AptlyUserClientSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> { | ||
user: ID; | ||
@@ -8,5 +9,7 @@ subject: string; | ||
permissions: any; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
name: string; | ||
} | ||
export type AptlyUserClient = AptlyUserClientSchema<string, string>; |
import { AptlyDocumentType } from '../enums'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export declare type AptlyDocument = AptlyDocumentSchema<string, string>; | ||
export interface AptlyDocumentSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyDocumentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> { | ||
mime: string; | ||
_type: AptlyDocumentType; | ||
name: string; | ||
data: string; | ||
@@ -15,3 +14,2 @@ organization?: string; | ||
size: number; | ||
created: DATE; | ||
thirdPartyUploader: string | null; | ||
@@ -24,2 +22,6 @@ thirdPartyId: string | null; | ||
isPasswordProtected?: boolean; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} | ||
@@ -26,0 +28,0 @@ export declare type AptlyDocumentSchemaBoligmappaStatus = AptlyDocumentSchemaBoligmappaStatusSchema<string, string>; |
import { AptlyDocumentType } from '../enums'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export type AptlyDocument = AptlyDocumentSchema<string, string>; | ||
export interface AptlyDocumentSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyDocumentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> { | ||
mime: string; | ||
_type: AptlyDocumentType; | ||
name: string; | ||
data: string; | ||
@@ -17,3 +16,2 @@ organization?: string; | ||
size: number; | ||
created: DATE; | ||
thirdPartyUploader: string | null; | ||
@@ -26,2 +24,6 @@ thirdPartyId: string | null; | ||
isPasswordProtected?: boolean; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} | ||
@@ -28,0 +30,0 @@ |
import { AptlyUserSchema } from './user'; | ||
import { AptlyHistoryType } from '../enums'; | ||
export interface AptlyBaseSchema<ID, DATE> { | ||
_id: ID; | ||
name: string; | ||
archived: boolean; | ||
createdAt: DATE; | ||
updatedAt: DATE; | ||
} | ||
export declare type AptlyHistory = AptlyHistorySchema<string, string>; | ||
export interface AptlyHistorySchema<ID, DATE> { | ||
/** | ||
* @deprecated not used in v2 | ||
*/ | ||
locked: boolean; | ||
/** | ||
* @deprecated use updatedAt | ||
*/ | ||
lastChange: DATE; | ||
@@ -7,0 +20,0 @@ history: AptlyHistoryHistorySchema<ID, DATE>[]; |
import { AptlyUserSchema } from './user'; | ||
import { AptlyHistoryType } from '../enums'; | ||
export interface AptlyBaseSchema<ID, DATE> { | ||
_id: ID; | ||
name: string; | ||
archived: boolean; | ||
createdAt: DATE; | ||
updatedAt: DATE; | ||
} | ||
export type AptlyHistory = AptlyHistorySchema<string, string>; | ||
export interface AptlyHistorySchema<ID, DATE> { | ||
/** | ||
* @deprecated not used in v2 | ||
*/ | ||
locked: boolean; | ||
/** | ||
* @deprecated use updatedAt | ||
*/ | ||
lastChange: DATE; | ||
@@ -8,0 +22,0 @@ history: AptlyHistoryHistorySchema<ID, DATE>[]; |
import { AptlyOrganizationSchema } from './organization'; | ||
export interface AptlyMediaSchema<ID, DATE> { | ||
_id: ID; | ||
archived: boolean; | ||
created: DATE; | ||
updated: DATE; | ||
import { AptlyBaseSchema } from './extends'; | ||
export interface AptlyMediaSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
organization: ID | AptlyOrganizationSchema<ID, DATE>; | ||
src: string; | ||
name: string; | ||
alt: string; | ||
@@ -32,2 +28,10 @@ caption?: string; | ||
original_filename: string; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
/** | ||
* @deprecated use updatedAt | ||
*/ | ||
updated: DATE; | ||
srcUrl?: string; | ||
@@ -34,0 +38,0 @@ uploadSignature?: string; |
import { AptlyOrganizationSchema } from './organization'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export interface AptlyMediaSchema<ID, DATE> { | ||
export interface AptlyMediaSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
// Aptly data | ||
_id: ID; | ||
archived: boolean; | ||
created: DATE; | ||
updated: DATE; | ||
organization: ID | AptlyOrganizationSchema<ID, DATE>; | ||
src: string; | ||
name: string; | ||
alt: string; | ||
@@ -37,2 +33,11 @@ caption?: string; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
/** | ||
* @deprecated use updatedAt | ||
*/ | ||
updated: DATE; | ||
// Aptly recognize help values | ||
@@ -39,0 +44,0 @@ srcUrl?: string; // Recognize image if uploaded with url. |
@@ -0,9 +1,10 @@ | ||
import { AptlyBaseSchema } from './extends'; | ||
export declare type AptlyOptionLabel = AptlyOptionLabelSchema<string, string>; | ||
export interface AptlyOptionLabelSchema<ID, DATE> { | ||
_id: ID; | ||
name: string; | ||
created: DATE; | ||
export interface AptlyOptionLabelSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
organization?: string; | ||
project?: string; | ||
archived?: boolean; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} |
@@ -0,10 +1,12 @@ | ||
import { AptlyBaseSchema } from './extends'; | ||
export type AptlyOptionLabel = AptlyOptionLabelSchema<string, string>; | ||
export interface AptlyOptionLabelSchema<ID, DATE> { | ||
_id: ID; | ||
name: string; | ||
created: DATE; | ||
export interface AptlyOptionLabelSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
organization?: string; | ||
project?: string; | ||
archived?: boolean; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} |
import { AptlyOrderStatus } from '../enums'; | ||
import { AptlyUnitItemParamSchema } from './unit'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export declare type AptlyOrder = AptlyOrderSchema<string, string>; | ||
export interface AptlyOrderSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> { | ||
orderNumber: string; | ||
created: DATE; | ||
organization: ID; | ||
@@ -20,2 +19,6 @@ project: ID; | ||
pricePipeline: AptlyOrderPricePipelineItemSchema<ID>[]; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} | ||
@@ -22,0 +25,0 @@ export declare type AptlyOrderPricePipelineItem = AptlyOrderPricePipelineItemSchema<string>; |
import { AptlyOrderStatus } from '../enums'; | ||
import { AptlyUnitItemParamSchema } from './unit'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export type AptlyOrder = AptlyOrderSchema<string, string>; | ||
export interface AptlyOrderSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> { | ||
orderNumber: string; | ||
created: DATE; | ||
organization: ID; | ||
@@ -21,2 +20,7 @@ project: ID; | ||
pricePipeline: AptlyOrderPricePipelineItemSchema<ID>[]; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} | ||
@@ -23,0 +27,0 @@ |
@@ -5,6 +5,5 @@ import { AptlyPermissionModulesModels, AptlyPermissionOrganizationModels } from '../core'; | ||
import { AptlyMediaSrc } from './media'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export declare type AptlyOrganization = AptlyOrganizationSchema<string, string>; | ||
export interface AptlyOrganizationSchema<ID, DATE> { | ||
_id: ID; | ||
name: string; | ||
export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
slug: string; | ||
@@ -27,4 +26,2 @@ logo?: string | null; | ||
email: string; | ||
created: DATE; | ||
archived: boolean; | ||
members: AptlyOrganizationMemberSchema<ID, DATE>[]; | ||
@@ -34,2 +31,6 @@ modules: AptlyPermissionModulesModels[]; | ||
integrations: AptlyOrganizationIntegrationsSchema<ID>[]; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} | ||
@@ -36,0 +37,0 @@ export declare type AptlyOrganizationIntegrations = AptlyOrganizationIntegrationsSchema<string>; |
@@ -5,7 +5,6 @@ import { AptlyPermissionModulesModels, AptlyPermissionOrganizationModels } from '../core'; | ||
import { AptlyMediaSrc } from './media'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export type AptlyOrganization = AptlyOrganizationSchema<string, string>; | ||
export interface AptlyOrganizationSchema<ID, DATE> { | ||
_id: ID; | ||
name: string; | ||
export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
slug: string; | ||
@@ -28,4 +27,2 @@ logo?: string | null; | ||
email: string; | ||
created: DATE; | ||
archived: boolean; | ||
members: AptlyOrganizationMemberSchema<ID, DATE>[]; | ||
@@ -35,2 +32,7 @@ modules: AptlyPermissionModulesModels[]; | ||
integrations: AptlyOrganizationIntegrationsSchema<ID>[]; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} | ||
@@ -37,0 +39,0 @@ |
import { AptlyPageSectionType } from '../enums'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export declare type AptlyPage = AptlyPageSchema<string, string>; | ||
export interface AptlyPageSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyPageSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
slug: string; | ||
name: string; | ||
project: ID; | ||
organization: ID; | ||
showInMenu: boolean; | ||
summary: string; | ||
icon?: string; | ||
upsellTemplate?: ID | null; | ||
sections: AptlyPageSectionSchema<ID, DATE>[]; | ||
/** | ||
* @deprecated use upsellTemplate | ||
*/ | ||
legacy?: string; | ||
/** | ||
* @deprecated use upsellTemplate | ||
*/ | ||
image?: string; | ||
upsellTemplate?: ID | null; | ||
sections: AptlyPageSectionSchema<ID, DATE>[]; | ||
archived?: boolean; | ||
/** | ||
* @deprecated connected with project pages | ||
*/ | ||
showInMenu: boolean; | ||
} | ||
@@ -18,0 +25,0 @@ export declare type AptlyPageSection = AptlyPageSectionSchema<string, string>; |
import { AptlyPageSectionType } from '../enums'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export type AptlyPage = AptlyPageSchema<string, string>; | ||
export interface AptlyPageSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyPageSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
slug: string; | ||
name: string; | ||
project: ID; | ||
organization: ID; | ||
showInMenu: boolean; | ||
summary: string; | ||
icon?: string; | ||
upsellTemplate?: ID | null; | ||
sections: AptlyPageSectionSchema<ID, DATE>[]; | ||
/** | ||
* @deprecated use upsellTemplate | ||
*/ | ||
legacy?: string; // Deprecated | ||
/** | ||
* @deprecated use upsellTemplate | ||
*/ | ||
image?: string; // Deprecated | ||
upsellTemplate?: ID | null; | ||
sections: AptlyPageSectionSchema<ID, DATE>[]; | ||
archived?: boolean; | ||
/** | ||
* @deprecated connected with project pages | ||
*/ | ||
showInMenu: boolean; | ||
} | ||
@@ -19,0 +27,0 @@ |
@@ -1,7 +0,5 @@ | ||
import { AptlyHistorySchema } from './extends'; | ||
import { AptlyBaseSchema } from './extends'; | ||
import { AptlyMediaSrc } from './media'; | ||
export declare type AptlyProducer = AptlyProducerSchema<string, string>; | ||
export interface AptlyProducerSchema<ID, DATE> extends AptlyHistorySchema<ID, DATE> { | ||
_id: ID; | ||
name: string; | ||
export interface AptlyProducerSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
email: string; | ||
@@ -11,5 +9,3 @@ logo: string | null; | ||
url?: string; | ||
created: DATE; | ||
organization?: ID; | ||
archived: boolean; | ||
createdBy: ID; | ||
@@ -21,2 +17,6 @@ tags: ID[]; | ||
extends: ID; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} |
@@ -1,8 +0,6 @@ | ||
import { AptlyHistorySchema } from './extends'; | ||
import { AptlyBaseSchema } from './extends'; | ||
import { AptlyMediaSrc } from './media'; | ||
export type AptlyProducer = AptlyProducerSchema<string, string>; | ||
export interface AptlyProducerSchema<ID, DATE> extends AptlyHistorySchema<ID, DATE> { | ||
_id: ID; | ||
name: string; | ||
export interface AptlyProducerSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
email: string; | ||
@@ -12,7 +10,6 @@ logo: string | null; | ||
url?: string; | ||
created: DATE; | ||
organization?: ID; | ||
archived: boolean; | ||
createdBy: ID; | ||
tags: ID[]; | ||
/** | ||
@@ -22,2 +19,6 @@ * @deprecated not used | ||
extends: ID; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} |
@@ -0,4 +1,4 @@ | ||
import { AptlyBaseSchema } from './extends'; | ||
export declare type AptlyProductStats = AptlyProductStatsSchema<string, string>; | ||
export interface AptlyProductStatsSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyProductStatsSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name'> { | ||
product: ID; | ||
@@ -8,3 +8,2 @@ project: ID; | ||
producer: ID; | ||
archived: boolean; | ||
extends?: ID; | ||
@@ -11,0 +10,0 @@ tags: ID[]; |
@@ -0,5 +1,5 @@ | ||
import { AptlyBaseSchema } from './extends'; | ||
export type AptlyProductStats = AptlyProductStatsSchema<string, string>; | ||
export interface AptlyProductStatsSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyProductStatsSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name'> { | ||
product: ID; | ||
@@ -9,3 +9,2 @@ project: ID; | ||
producer: ID; | ||
archived: boolean; | ||
extends?: ID; | ||
@@ -12,0 +11,0 @@ tags: ID[]; |
@@ -1,9 +0,6 @@ | ||
import { AptlyDBCrawlerCleaner, AptlyHistorySchema } from './extends'; | ||
import { AptlyBaseSchema, AptlyDBCrawlerCleaner } from './extends'; | ||
import { AptlyMediaSrcSchema } from './media'; | ||
import { AptlyProducerSchema } from './producer'; | ||
export declare type AptlyProduct = AptlyProductSchema<string, string>; | ||
export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, AptlyHistorySchema<ID, DATE> { | ||
_id: ID; | ||
title: string; | ||
name: string; | ||
export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, AptlyBaseSchema<ID, DATE> { | ||
searchableName: string; | ||
@@ -26,2 +23,3 @@ organization?: ID; | ||
material?: string; | ||
unitCost?: number; | ||
producer?: ID | AptlyProducerSchema<ID, DATE>; | ||
@@ -31,5 +29,10 @@ supplier?: ID; | ||
documents: ID[]; | ||
created: Date; | ||
archived: boolean; | ||
createdBy: ID; | ||
stats?: any; | ||
importID?: ID; | ||
/** | ||
* @deprecated Use name | ||
*/ | ||
title: string; | ||
/** | ||
* @deprecated Not used | ||
@@ -39,7 +42,8 @@ */ | ||
user: ID; | ||
date: Date; | ||
date: DATE; | ||
}[]; | ||
createdBy: ID; | ||
stats?: any; | ||
importID?: ID; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} | ||
@@ -46,0 +50,0 @@ export declare type AptlyProductImage = AptlyProductImageSchema<string, string>; |
@@ -1,2 +0,2 @@ | ||
import { AptlyDBCrawlerCleaner, AptlyHistorySchema } from './extends'; | ||
import { AptlyBaseSchema, AptlyDBCrawlerCleaner } from './extends'; | ||
import { AptlyMediaSrcSchema } from './media'; | ||
@@ -6,6 +6,3 @@ import { AptlyProducerSchema } from './producer'; | ||
export type AptlyProduct = AptlyProductSchema<string, string>; | ||
export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, AptlyHistorySchema<ID, DATE> { | ||
_id: ID; | ||
title: string; | ||
name: string; | ||
export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, AptlyBaseSchema<ID, DATE> { | ||
searchableName: string; | ||
@@ -28,2 +25,3 @@ organization?: ID; | ||
material?: string; | ||
unitCost?: number; | ||
producer?: ID | AptlyProducerSchema<ID, DATE>; | ||
@@ -33,5 +31,11 @@ supplier?: ID; | ||
documents: ID[]; | ||
created: Date; | ||
archived: boolean; | ||
createdBy: ID; | ||
stats?: any; | ||
importID?: ID; | ||
/** | ||
* @deprecated Use name | ||
*/ | ||
title: string; | ||
/** | ||
* @deprecated Not used | ||
@@ -41,7 +45,8 @@ */ | ||
user: ID; | ||
date: Date; | ||
date: DATE; | ||
}[]; | ||
createdBy: ID; | ||
stats?: any; | ||
importID?: ID; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} | ||
@@ -48,0 +53,0 @@ |
import { AptlyOrganizationSchema } from './organization'; | ||
import { AptlyPermissionModulesModels } from '../core'; | ||
import { AptlyUserSchema } from './user'; | ||
import { AptlyHistorySchema } from './extends'; | ||
import { AptlyBaseSchema } from './extends'; | ||
import { AptlyDocumentSchema } from './document'; | ||
@@ -9,5 +9,3 @@ import { AptlyUnitOptionExtraItemSchema } from './unit'; | ||
export declare type AptlyProject = AptlyProjectSchema<string, string>; | ||
export interface AptlyProjectSchema<ID, DATE> extends AptlyHistorySchema<ID, DATE> { | ||
_id: ID; | ||
name: string; | ||
export interface AptlyProjectSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
organization: AptlyOrganizationSchema<ID, DATE> | ID; | ||
@@ -22,4 +20,2 @@ /** | ||
pages: ID[]; | ||
created: Date; | ||
archived: false; | ||
myPageText?: string; | ||
@@ -32,2 +28,6 @@ inviteText?: string; | ||
extraOptions?: AptlyUnitOptionExtraItemSchema<ID, DATE>[]; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} | ||
@@ -34,0 +34,0 @@ export declare type AptlyProjectPeriod = AptlyProjectPeriodSchema<string, string>; |
import { AptlyOrganizationSchema } from './organization'; | ||
import { AptlyPermissionModulesModels } from '../core'; | ||
import { AptlyUserSchema } from './user'; | ||
import { AptlyHistorySchema } from './extends'; | ||
import { AptlyBaseSchema } from './extends'; | ||
import { AptlyDocumentSchema } from './document'; | ||
@@ -10,5 +10,3 @@ import { AptlyUnitOptionExtraItemSchema } from './unit'; | ||
export type AptlyProject = AptlyProjectSchema<string, string>; | ||
export interface AptlyProjectSchema<ID, DATE> extends AptlyHistorySchema<ID, DATE> { | ||
_id: ID; | ||
name: string; | ||
export interface AptlyProjectSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
organization: AptlyOrganizationSchema<ID, DATE> | ID; | ||
@@ -23,4 +21,2 @@ /** | ||
pages: ID[]; | ||
created: Date; | ||
archived: false; | ||
myPageText?: string; | ||
@@ -33,2 +29,7 @@ inviteText?: string; | ||
extraOptions?: AptlyUnitOptionExtraItemSchema<ID, DATE>[]; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} | ||
@@ -35,0 +36,0 @@ |
import { AptlyQueueDownloadStatus, AptlyQueueDownloadType } from '../enums/index'; | ||
import { AptlyDocumentSchema } from './document'; | ||
import { AptlyMediaSchema } from './media'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export declare type AptlyQueueDownload = AptlyQueueDownloadSchema<string, string>; | ||
export interface AptlyQueueDownloadSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyQueueDownloadSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> { | ||
url: string; | ||
@@ -18,4 +18,2 @@ type: AptlyQueueDownloadType; | ||
media?: Partial<Pick<AptlyMediaSchema<ID, DATE>, 'name'>> | null; | ||
createdAt: DATE; | ||
updatedAt: DATE; | ||
} |
import { AptlyQueueDownloadStatus, AptlyQueueDownloadType } from '../enums/index'; | ||
import { AptlyDocumentSchema } from './document'; | ||
import { AptlyMediaSchema } from './media'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export type AptlyQueueDownload = AptlyQueueDownloadSchema<string, string>; | ||
export interface AptlyQueueDownloadSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyQueueDownloadSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> { | ||
url: string; | ||
@@ -21,5 +21,2 @@ type: AptlyQueueDownloadType; | ||
media?: Partial<Pick<AptlyMediaSchema<ID, DATE>, 'name'>> | null; | ||
createdAt: DATE; | ||
updatedAt: DATE; | ||
} |
import { AptlyMediaSrcSchema } from './media'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export declare type AptlyRecommendation = AptlyRecommendationSchema<string, string>; | ||
export interface AptlyRecommendationSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyRecommendationSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
organization?: ID; | ||
project?: ID; | ||
title: string; | ||
name: string; | ||
color: string; | ||
@@ -13,3 +12,2 @@ text: string; | ||
imageMedia?: AptlyMediaSrcSchema<ID, DATE> | null; | ||
archived?: boolean; | ||
} |
import { AptlyMediaSrcSchema } from './media'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export type AptlyRecommendation = AptlyRecommendationSchema<string, string>; | ||
export interface AptlyRecommendationSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyRecommendationSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
organization?: ID; | ||
project?: ID; | ||
title: string; | ||
name: string; | ||
color: string; | ||
@@ -14,3 +13,2 @@ text: string; | ||
imageMedia?: AptlyMediaSrcSchema<ID, DATE> | null; | ||
archived?: boolean; | ||
} |
import { AptlyMediaSrc } from './media'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export declare type AptlySupplier = AptlySupplierSchema<string, string>; | ||
export interface AptlySupplierSchema<ID, DATE> { | ||
_id: ID; | ||
name: string; | ||
export interface AptlySupplierSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
email?: string; | ||
logo: string | null; | ||
logoMedia?: AptlyMediaSrc | null; | ||
created: DATE; | ||
archived: boolean; | ||
createdBy: ID; | ||
organization?: ID; | ||
extends?: ID; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} |
import { AptlyMediaSrc } from './media'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export type AptlySupplier = AptlySupplierSchema<string, string>; | ||
export interface AptlySupplierSchema<ID, DATE> { | ||
_id: ID; | ||
name: string; | ||
export interface AptlySupplierSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
email?: string; | ||
logo: string | null; | ||
logoMedia?: AptlyMediaSrc | null; | ||
created: DATE; | ||
archived: boolean; | ||
createdBy: ID; | ||
organization?: ID; | ||
extends?: ID; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} |
@@ -0,6 +1,8 @@ | ||
import { AptlyBaseSchema } from './extends'; | ||
export declare type AptlyTag = AptlyTagSchema<string, string>; | ||
export interface AptlyTagSchema<ID, DATE> { | ||
_id: ID; | ||
name: string; | ||
export interface AptlyTagSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} |
@@ -0,7 +1,9 @@ | ||
import { AptlyBaseSchema } from './extends'; | ||
export type AptlyTag = AptlyTagSchema<string, string>; | ||
export interface AptlyTagSchema<ID, DATE> { | ||
_id: ID; | ||
name: string; | ||
export interface AptlyTagSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} |
@@ -6,5 +6,5 @@ import { AptlyOrganizationSchema } from './organization'; | ||
import { AptlyBookingSchema } from './booking'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export declare type AptlyUnitEmail = AptlyUnitEmailSchema<string, string>; | ||
export interface AptlyUnitEmailSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyUnitEmailSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> { | ||
type: AptlyUnitEmailType; | ||
@@ -20,2 +20,5 @@ to: string[]; | ||
booking?: ID | AptlyBookingSchema<ID, DATE>; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
@@ -22,0 +25,0 @@ } |
@@ -6,6 +6,6 @@ import { AptlyOrganizationSchema } from './organization'; | ||
import { AptlyBookingSchema } from './booking'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export type AptlyUnitEmail = AptlyUnitEmailSchema<string, string>; | ||
export interface AptlyUnitEmailSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyUnitEmailSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> { | ||
type: AptlyUnitEmailType; | ||
@@ -24,2 +24,5 @@ to: string[]; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
@@ -26,0 +29,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { AptlyHistorySchema } from './extends'; | ||
import { AptlyBaseSchema, AptlyHistorySchema } from './extends'; | ||
import { AptlyCategorySectionDisplayType, AptlyUnitTemplateCategorySectionProductMeasureUnitType, AptlyUnitTemplateCategorySectionProductParamKey } from '../enums'; | ||
@@ -9,4 +9,3 @@ import { AptlyProductSchema } from './product'; | ||
export declare type AptlyUnitTemplateBase = AptlyUnitTemplateBaseSchema<string, string>; | ||
export interface AptlyUnitTemplateBaseSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyUnitTemplateBaseSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
_order_categories: ID[]; | ||
@@ -13,0 +12,0 @@ categories: AptlyUnitTemplateCategorySchema<ID, DATE>[]; |
@@ -1,2 +0,2 @@ | ||
import { AptlyHistorySchema } from './extends'; | ||
import { AptlyBaseSchema, AptlyHistorySchema } from './extends'; | ||
import { | ||
@@ -13,4 +13,3 @@ AptlyCategorySectionDisplayType, AptlyUnitTemplateCategorySectionProductMeasureUnitType, | ||
export type AptlyUnitTemplateBase = AptlyUnitTemplateBaseSchema<string, string>; | ||
export interface AptlyUnitTemplateBaseSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyUnitTemplateBaseSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
_order_categories: ID[]; | ||
@@ -17,0 +16,0 @@ categories: AptlyUnitTemplateCategorySchema<ID, DATE>[]; |
@@ -9,4 +9,2 @@ import { AptlyProjectSchema } from './project'; | ||
export interface AptlyUnitSchema<ID, DATE> extends AptlyUnitTemplateBaseSchema<ID, DATE>, AptlyUnitEditData, AptlyHistorySchema<ID, DATE> { | ||
_id: ID; | ||
name: string; | ||
status: AptlyUnitStatus; | ||
@@ -33,6 +31,4 @@ rooms: AptlyUnitRoomSchema<ID>[]; | ||
users: (AptlyUserSchema<ID, DATE> | ID)[]; | ||
unitTemplate: AptlyUnitTemplateSchema<ID, DATE>; | ||
unitTemplate: ID | AptlyUnitTemplateSchema<ID, DATE>; | ||
confirmedPeriods: AptlyUnitConfirmedPeriodSchema<ID, DATE>[]; | ||
created: DATE; | ||
archived: boolean; | ||
queueInvites: string[]; | ||
@@ -48,2 +44,6 @@ invites: AptlyUnitInviteSchema<ID, DATE>[]; | ||
tree: any[]; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} | ||
@@ -50,0 +50,0 @@ export declare type AptlyUnitOverridePeriod = AptlyUnitOverridePeriodSchema<string, string>; |
@@ -10,4 +10,2 @@ import { AptlyProjectSchema } from './project'; | ||
export interface AptlyUnitSchema<ID, DATE> extends AptlyUnitTemplateBaseSchema<ID, DATE>, AptlyUnitEditData, AptlyHistorySchema<ID, DATE> { | ||
_id: ID; | ||
name: string; | ||
status: AptlyUnitStatus; | ||
@@ -35,6 +33,4 @@ rooms: AptlyUnitRoomSchema<ID>[]; | ||
users: (AptlyUserSchema<ID, DATE> | ID)[]; | ||
unitTemplate: AptlyUnitTemplateSchema<ID, DATE>; | ||
unitTemplate: ID | AptlyUnitTemplateSchema<ID, DATE>; | ||
confirmedPeriods: AptlyUnitConfirmedPeriodSchema<ID, DATE>[]; | ||
created: DATE; | ||
archived: boolean; | ||
queueInvites: string[]; | ||
@@ -50,4 +46,8 @@ invites: AptlyUnitInviteSchema<ID, DATE>[]; | ||
tree: any[]; | ||
tree: any[]; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} | ||
@@ -54,0 +54,0 @@ |
@@ -1,10 +0,4 @@ | ||
import { AptlyHistorySchema } from './extends'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export declare type AptlyUpsellTemplate = AptlyUpsellTemplateSchema<string, string>; | ||
export interface AptlyUpsellTemplateSchema<ID, DATE> extends AptlyHistorySchema<ID, DATE> { | ||
_id: ID; | ||
name: string; | ||
/** | ||
* @deprecated not used.. Only for frontend | ||
*/ | ||
description: string; | ||
export interface AptlyUpsellTemplateSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
image?: string | null; | ||
@@ -17,4 +11,10 @@ imageMedia?: string | null; | ||
project?: ID; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
archived: boolean; | ||
/** | ||
* @deprecated not used.. Only for frontend | ||
*/ | ||
description: string; | ||
} |
@@ -1,11 +0,5 @@ | ||
import { AptlyHistorySchema } from './extends'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export type AptlyUpsellTemplate = AptlyUpsellTemplateSchema<string, string>; | ||
export interface AptlyUpsellTemplateSchema<ID, DATE> extends AptlyHistorySchema<ID, DATE> { | ||
_id: ID; | ||
name: string; | ||
/** | ||
* @deprecated not used.. Only for frontend | ||
*/ | ||
description: string; | ||
export interface AptlyUpsellTemplateSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
image?: string | null; | ||
@@ -18,4 +12,11 @@ imageMedia?: string | null; | ||
project?: ID; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
archived: boolean; | ||
/** | ||
* @deprecated not used.. Only for frontend | ||
*/ | ||
description: string; | ||
} |
@@ -0,4 +1,4 @@ | ||
import { AptlyBaseSchema } from './extends'; | ||
export declare type AptlyUser = AptlyUserSchema<string, string>; | ||
export interface AptlyUserSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyUserSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived' | 'name'> { | ||
email: string; | ||
@@ -13,3 +13,6 @@ fullName: string; | ||
synced: DATE; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} |
@@ -0,5 +1,5 @@ | ||
import { AptlyBaseSchema } from './extends'; | ||
export type AptlyUser = AptlyUserSchema<string, string>; | ||
export interface AptlyUserSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyUserSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived' | 'name'> { | ||
email: string; | ||
@@ -14,3 +14,7 @@ fullName: string; | ||
synced: DATE; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} |
import { AptlyWebhookEventStatus, AptlyWebhookType } from '../enums'; | ||
import { AptlyBaseSchema } from './extends'; | ||
declare type ServerKeys = 'run' | 'organization' | 'project' | 'status' | 'url' | 'headers' | 'responses'; | ||
export declare type AptlyWebhookEvent<T = unknown> = Omit<AptlyWebhookEventSchema<string, string, T>, ServerKeys>; | ||
export interface AptlyWebhookEventSchema<ID, DATE, DATA = unknown> { | ||
_id: ID; | ||
export interface AptlyWebhookEventSchema<ID, DATE, DATA = unknown> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> { | ||
specversion: string; | ||
@@ -23,2 +23,5 @@ type: AptlyWebhookType; | ||
responses: AptlyWebhookEventResponseSchema<ID, DATE>[]; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
@@ -25,0 +28,0 @@ } |
import { AptlyWebhookEventStatus, AptlyWebhookType } from '../enums'; | ||
import { AptlyBaseSchema } from './extends'; | ||
type ServerKeys = 'run' | 'organization' | 'project' | 'status' | 'url' | 'headers' | 'responses'; | ||
export type AptlyWebhookEvent<T = unknown> = Omit<AptlyWebhookEventSchema<string, string, T>, ServerKeys>; | ||
export interface AptlyWebhookEventSchema<ID, DATE, DATA = unknown> { | ||
_id: ID; | ||
export interface AptlyWebhookEventSchema<ID, DATE, DATA = unknown> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> { | ||
specversion: string; | ||
@@ -25,2 +25,6 @@ type: AptlyWebhookType; | ||
responses: AptlyWebhookEventResponseSchema<ID, DATE>[]; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
@@ -27,0 +31,0 @@ } |
import { AptlyWebhookStatus, AptlyWebhookType } from '../enums'; | ||
export interface AptlyWebhookSchema<ID, DATE> { | ||
_id: ID; | ||
import { AptlyBaseSchema } from './extends'; | ||
export interface AptlyWebhookSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
organization: ID; | ||
user?: ID; | ||
project?: ID; | ||
name: string; | ||
created: DATE; | ||
status: AptlyWebhookStatus; | ||
@@ -14,3 +12,7 @@ url: string; | ||
state?: string; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} | ||
export declare type AptlyWebhook = AptlyWebhookSchema<string, string>; |
import { AptlyWebhookStatus, AptlyWebhookType } from '../enums'; | ||
import { AptlyBaseSchema } from './extends'; | ||
export interface AptlyWebhookSchema<ID, DATE> { | ||
_id: ID; | ||
export interface AptlyWebhookSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
organization: ID; | ||
user?: ID; | ||
project?: ID; | ||
name: string; | ||
created: DATE; | ||
status: AptlyWebhookStatus; | ||
@@ -16,3 +14,8 @@ | ||
state?: string; | ||
/** | ||
* @deprecated use createdAt | ||
*/ | ||
created: DATE; | ||
} | ||
export type AptlyWebhook = AptlyWebhookSchema<string, string>; |
{ | ||
"name": "@aptly-as/types", | ||
"version": "1.3.4", | ||
"version": "1.4.0", | ||
"description": "Aptly types and enums", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
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
118453
3180