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

@aptly-as/types

Package Overview
Dependencies
Maintainers
2
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aptly-as/types - npm Package Compare versions

Comparing version 1.7.7 to 1.8.0

models/availability.d.ts

1

core/api.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=api.js.map

@@ -13,2 +13,1 @@ "use strict";

})(AptlyAppSandbox = exports.AptlyAppSandbox || (exports.AptlyAppSandbox = {}));
//# sourceMappingURL=app.js.map

@@ -1,10 +0,2 @@

import { AptlyCloudinaryResourceType } from '../enums';
export interface AptlyCloudinaryFile {
public_id: string;
url: string;
secure_url: string;
format: string;
resource_type: AptlyCloudinaryResourceType;
original_filename: string;
bytes: number;
}
import * as cloudinary from 'cloudinary';
export declare type AptlyCloudinaryFile = cloudinary.UploadApiResponse;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=cloudinary.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=error.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=fields.js.map

@@ -22,2 +22,1 @@ "use strict";

__exportStar(require("./webhook-event-data"), exports);
//# sourceMappingURL=index.js.map

@@ -103,2 +103,1 @@ "use strict";

})(AptlyPermissionModel = exports.AptlyPermissionModel || (exports.AptlyPermissionModel = {}));
//# sourceMappingURL=permission.js.map

@@ -9,2 +9,1 @@ "use strict";

})(AptlyScopeAction = exports.AptlyScopeAction || (exports.AptlyScopeAction = {}));
//# sourceMappingURL=scope.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=signage.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=webhook-event-data.js.map

@@ -36,2 +36,1 @@ "use strict";

})(AptlyHistoryType = exports.AptlyHistoryType || (exports.AptlyHistoryType = {}));
//# sourceMappingURL=document.js.map

@@ -30,2 +30,1 @@ "use strict";

})(AptlyFieldType = exports.AptlyFieldType || (exports.AptlyFieldType = {}));
//# sourceMappingURL=fields.js.map

@@ -133,2 +133,1 @@ "use strict";

})(AptlyIcon = exports.AptlyIcon || (exports.AptlyIcon = {}));
//# sourceMappingURL=index.js.map

@@ -16,2 +16,1 @@ "use strict";

})(AptlyUnitTemplateCategorySectionProductMeasureUnitType = exports.AptlyUnitTemplateCategorySectionProductMeasureUnitType || (exports.AptlyUnitTemplateCategorySectionProductMeasureUnitType = {}));
//# sourceMappingURL=unit-template.js.map

@@ -28,2 +28,1 @@ "use strict";

})(AptlyWebhookEventStatus = exports.AptlyWebhookEventStatus || (exports.AptlyWebhookEventStatus = {}));
//# sourceMappingURL=webhook.js.map

@@ -16,2 +16,1 @@ "use strict";

__exportStar(require("./models"), exports);
//# sourceMappingURL=index.js.map

@@ -17,2 +17,1 @@ "use strict";

})(AptlyAlgorithmPipelineApplyTo = exports.AptlyAlgorithmPipelineApplyTo || (exports.AptlyAlgorithmPipelineApplyTo = {}));
//# sourceMappingURL=algorithm.js.map

@@ -27,2 +27,1 @@ "use strict";

})(AptlyAppInjectionType = exports.AptlyAppInjectionType || (exports.AptlyAppInjectionType = {}));
//# sourceMappingURL=app.js.map

@@ -0,6 +1,9 @@

import { AptlyOrganizationSchema } from './organization.js';
import { AptlyProjectSchema } from './project.js';
import { AptlyUnitSchema } from './unit.js';
export declare type AptlyBooking = AptlyBookingSchema<string, string>;
export interface AptlyBookingSchema<ID, DATE> {
_id: ID;
project: ID;
unit: ID;
project: ID | AptlyProjectSchema<ID, DATE>;
unit: ID | AptlyUnitSchema<ID, DATE>;
user: ID;

@@ -16,4 +19,4 @@ availability: ID;

_id: ID;
organization?: ID;
project: ID;
organization?: ID | AptlyOrganizationSchema<ID, DATE>;
project: ID | AptlyProjectSchema<ID, DATE>;
archived?: boolean;

@@ -45,3 +48,3 @@ calendars: AptlyAvailabilityCalendarSchema<ID, DATE>[];

export interface AptlyAvailabilityCalendarAvailableTimesSchema<ID, DATE> {
_ID: ID;
_id: ID;
from: DATE;

@@ -48,0 +51,0 @@ to: DATE;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=booking.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=client.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=department.js.map

@@ -8,6 +8,6 @@ import { AptlyDocumentType } from '../enums';

data: string;
organization?: string;
project?: string;
unit?: string;
product?: string;
organization?: ID;
project?: ID;
unit?: ID;
product?: ID;
text?: string;

@@ -20,5 +20,9 @@ size: number;

boligmappaStatus?: AptlyDocumentSchemaBoligmappaStatusSchema<ID>[];
chunks?: ID[];
chunks?: (AptlyDocumentSchema<ID, DATE> | ID)[];
isPasswordProtected?: boolean;
/**
* Used in frontend.
*/
downloadToken?: string;
/**
* @deprecated use createdAt

@@ -25,0 +29,0 @@ */

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=document.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=extends.js.map

@@ -42,2 +42,1 @@ "use strict";

__exportStar(require("./webhook-event"), exports);
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=inquiry.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=media.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=notification-trigger.js.map
import { AptlyBaseSchema } from './extends';
export declare type AptlyOptionLabel = AptlyOptionLabelSchema<string, string>;
export interface AptlyOptionLabelSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
organization?: string;
project?: string;
organization?: ID;
project?: ID;
/**

@@ -7,0 +7,0 @@ * @deprecated use createdAt

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=option-label.js.map
import { AptlyOrderStatus } from '../enums';
import { AptlyUnitItemParamSchema } from './unit';
import { AptlyOrganizationSchema } from './organization.js';
import { AptlyProjectPeriodSchema, AptlyProjectSchema } from './project.js';
import { AptlyUnitItemParamSchema, AptlyUnitSchema } from './unit';
import { AptlyBaseSchema } from './extends';
import { AptlyUserSchema } from './user.js';
export declare type AptlyOrder = AptlyOrderSchema<string, string>;
export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
orderNumber: string;
organization: ID;
project: ID;
period: ID;
unit: ID;
signers: ID[];
organization: ID | AptlyOrganizationSchema<ID, DATE>;
project: ID | AptlyProjectSchema<ID, DATE>;
period: ID | AptlyProjectPeriodSchema<ID, DATE>;
unit: ID | AptlyUnitSchema<ID, DATE>;
signers: (ID | AptlyUserSchema<ID, DATE>)[];
status: AptlyOrderStatus;

@@ -13,0 +16,0 @@ receipt: ID;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=order.js.map
import { AptlyPermissionModulesModels, AptlyPermissionOrganizationModels, AptlyScope, AptlySignageSchema } from '../core';
import { AptlyUserSchema } from './user';
import { AptlyMediaSrc } from './media';
import { AptlyBaseSchema } from './extends';
import { AptlyBaseSchema, AptlyHistorySchema } from './extends';
import { AptlyDepartmentGeneric } from './department';

@@ -10,3 +10,3 @@ import { AptlyProducerSchema } from './producer';

export declare type AptlyOrganization = AptlyOrganizationSchema<string, string>;
export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>, AptlyHistorySchema<ID, DATE> {
slug: string;

@@ -13,0 +13,0 @@ logo?: string | null;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=organization.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=page.js.map

@@ -1,5 +0,5 @@

import { AptlyBaseSchema } from './extends';
import { AptlyBaseSchema, AptlyHistorySchema } from './extends';
import { AptlyMediaSrc } from './media';
export declare type AptlyProducer = AptlyProducerSchema<string, string>;
export interface AptlyProducerSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
export interface AptlyProducerSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>, AptlyHistorySchema<ID, DATE> {
email: string;

@@ -12,2 +12,3 @@ logo: string | null;

tags: ID[];
featured: boolean;
/**

@@ -14,0 +15,0 @@ * @deprecated not used

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=producer.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=product-stats.js.map

@@ -1,10 +0,10 @@

import { AptlyBaseSchema, AptlyDBCrawlerCleaner } from './extends';
import { AptlyBaseSchema, AptlyDBCrawlerCleaner, AptlyHistorySchema } from './extends';
import { AptlyMediaSrcSchema } from './media';
import { AptlyProducerSchema } from './producer';
export declare type AptlyProduct = AptlyProductSchema<string, string>;
export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, AptlyBaseSchema<ID, DATE> {
export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, AptlyBaseSchema<ID, DATE>, AptlyHistorySchema<ID, DATE> {
searchableName: string;
organization?: ID;
project?: ID;
extends?: ID;
extends?: ID | AptlyProductSchema<ID, DATE>;
productNumber: string;

@@ -11,0 +11,0 @@ description: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=product.js.map
import { AptlyOrganizationSchema } from './organization';
import { AptlyPermissionModulesModels } from '../core';
import { AptlyUserSchema } from './user';
import { AptlyBaseSchema } from './extends';
import { AptlyBaseSchema, AptlyHistorySchema } from './extends';
import { AptlyDocumentSchema } from './document';

@@ -9,3 +9,3 @@ import { AptlyUnitOptionExtraItemSchema } from './unit';

export declare type AptlyProject = AptlyProjectSchema<string, string>;
export interface AptlyProjectSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
export interface AptlyProjectSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>, AptlyHistorySchema<ID, DATE> {
organization: AptlyOrganizationSchema<ID, DATE> | ID;

@@ -12,0 +12,0 @@ template?: ID | null;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=project.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=queue-download.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=recommendation.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=supplier.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=tag.js.map

@@ -16,2 +16,1 @@ "use strict";

})(AptlyUnitEmailType = exports.AptlyUnitEmailType || (exports.AptlyUnitEmailType = {}));
//# sourceMappingURL=unit-email.js.map

@@ -83,4 +83,4 @@ import { AptlyBaseSchema, AptlyHistorySchema } from './extends';

_orderID: ID;
product?: ID | AptlyProductSchema<ID, DATE>;
producer?: ID | AptlyProducerSchema<ID, DATE>;
product?: AptlyProductSchema<ID, DATE>;
producer?: AptlyProducerSchema<ID, DATE>;
availableProducts: ID[];

@@ -95,3 +95,3 @@ variantPrices: AptlyUnitTemplateCategorySectionProductVariantPriceSchema<ID>[];

unitCost?: number;
algorithm: AptlyProjectAlgorithmSchema<ID> | ID;
algorithm: ID | AptlyProjectAlgorithmSchema<ID>;
standard: boolean;

@@ -119,2 +119,5 @@ standardVariant?: ID;

value: VALUE;
categoryName?: string;
sectionNames?: string[];
sectionName?: string;
}

@@ -121,0 +124,0 @@ export declare type AptlyUnitTemplateCategorySectionProductVariantPrice = AptlyUnitTemplateCategorySectionProductVariantPriceSchema<string>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=unit-template.js.map

@@ -0,4 +1,6 @@

import { AptlyProducerSchema } from './producer.js';
import { AptlyProductSchema } from './product.js';
import { AptlyProjectSchema } from './project';
import { AptlyHistorySchema } from './extends';
import { AptlyUnitTemplateBaseSchema, AptlyUnitTemplateSchema } from './unit-template';
import { AptlyUnitTemplateBaseSchema, AptlyUnitTemplateCategorySchema, AptlyUnitTemplateCategorySectionSchema, AptlyUnitTemplateSchema } from './unit-template';
import { AptlyIntegration, AptlyUnitItemParamKey, AptlyUnitStatus } from '../enums';

@@ -8,6 +10,6 @@ import { AptlyUserSchema } from './user';

export declare type AptlyUnit = AptlyUnitSchema<string, string>;
export interface AptlyUnitSchema<ID, DATE> extends AptlyUnitTemplateBaseSchema<ID, DATE>, AptlyUnitEditData, AptlyHistorySchema<ID, DATE> {
export interface AptlyUnitSchema<ID, DATE> extends AptlyUnitTemplateBaseSchema<ID, DATE>, AptlyUnitEditData<DATE>, AptlyHistorySchema<ID, DATE> {
status: AptlyUnitStatus;
rooms: AptlyUnitRoomSchema<ID>[];
selectedOptions: AptlyUnitOptionSchema<ID, DATE>[];
selectedOptions: AptlyUnitSelectedOptionSchema<ID, DATE>[];
items: AptlyUnitOptionItemSchema<ID, DATE>[];

@@ -21,3 +23,3 @@ revertedOptions?: AptlyUnitOptionItemSchema<ID, DATE>[];

categoriesRead: ID[];
spec: IUnitSpec;
spec: AptlyUnitSpec;
buildStep: number;

@@ -42,3 +44,2 @@ documents: ID[];

integrations: AptlyUnitIntegrationSchema<ID>[];
handoverDate?: DATE | null;
tree: any[];

@@ -57,9 +58,9 @@ /**

export declare type AptlyUnitItemBase = AptlyUnitItemBaseSchema<string, string>;
interface AptlyUnitItemBaseSchema<ID, DATE> {
export interface AptlyUnitItemBaseSchema<ID, DATE> {
_id: ID;
product: ID;
product: ID | AptlyProductSchema<ID, DATE>;
variant: ID;
producer: ID;
category?: ID;
section?: ID;
producer: ID | AptlyProducerSchema<ID, DATE>;
category?: ID | AptlyUnitTemplateCategorySchema<ID, DATE>;
section?: ID | AptlyUnitTemplateCategorySectionSchema<ID, DATE>;
period?: ID;

@@ -75,9 +76,9 @@ quantity: number;

}
export declare type AptlyUnitOption = AptlyUnitOptionSchema<string, string>;
export interface AptlyUnitOptionSchema<ID, DATE> {
export declare type AptlyUnitOption = AptlyUnitSelectedOptionSchema<string, string>;
export interface AptlyUnitSelectedOptionSchema<ID, DATE> {
_id: ID;
category: ID;
section: ID;
category: ID | AptlyUnitTemplateCategorySchema<ID, DATE>;
section: ID | AptlyUnitTemplateCategorySectionSchema<ID, DATE>;
sectionProductRef: ID;
product: ID;
product: ID | AptlyProductSchema<ID, DATE>;
variant: ID;

@@ -91,10 +92,14 @@ period: ID;

package?: ID;
standard?: boolean;
text?: string;
producer?: ID;
baseCost?: number;
}
export declare type AptlyUnitOptionItem = AptlyUnitOptionItemSchema<string, string>;
export interface AptlyUnitOptionItemSchema<ID, DATE> extends AptlyUnitOptionSchema<ID, DATE> {
export interface AptlyUnitOptionItemSchema<ID, DATE> extends AptlyUnitSelectedOptionSchema<ID, DATE> {
unitCost: number;
standard?: boolean;
pickRef?: ID;
}
export declare type AptlyUnitOptionExtraItem = AptlyUnitOptionExtraItemSchema<string, string>;
export interface AptlyUnitOptionExtraItemSchema<ID, DATE> extends Partial<AptlyUnitOptionItemSchema<ID, DATE>> {
export interface AptlyUnitOptionExtraItemSchema<ID, DATE> extends AptlyUnitOptionItemSchema<ID, DATE> {
_id: ID;

@@ -109,2 +114,14 @@ unitCost: number;

revertItemRef?: ID;
/** @deprecated. Not sure this is used */
document?: ID;
/** @deprecated. Not sure this is used */
prerequisites?: {
totalCost?: number;
};
/** @deprecated. Not sure this is used */
thirdPartyUploader?: string;
/** @deprecated. Not sure this is used */
cost: number;
/** @deprecated. Cant se this is used anymore */
customTitle?: string;
}

@@ -116,2 +133,3 @@ export declare type AptlyUnitItemParam<VALUE> = AptlyUnitItemParamSchema<string, VALUE>;

value: VALUE;
downloadToken?: string;
}

@@ -155,3 +173,3 @@ export declare type AptlyUnitRoom = AptlyUnitRoomSchema<string>;

}
export interface IUnitSpec {
export interface AptlyUnitSpec {
categories: {

@@ -182,3 +200,3 @@ name: string;

}
interface AptlyUnitEditData {
interface AptlyUnitEditData<DATE> {
address?: string;

@@ -214,2 +232,3 @@ zipCode?: string;

balconyKeys?: number;
handoverDate?: DATE | null;
}

@@ -216,0 +235,0 @@ export interface AptlyUnitInviteSchema<ID, DATE> {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=unit.js.map

@@ -1,4 +0,4 @@

import { AptlyBaseSchema } from './extends';
import { AptlyBaseSchema, AptlyHistorySchema } from './extends';
export declare type AptlyUpsellTemplate = AptlyUpsellTemplateSchema<string, string>;
export interface AptlyUpsellTemplateSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
export interface AptlyUpsellTemplateSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>, AptlyHistorySchema<ID, DATE> {
image?: string | null;

@@ -5,0 +5,0 @@ imageMedia?: string | null;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=upsell-template.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=user.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=webhook-event.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=webhook.js.map
{
"name": "@aptly-as/types",
"version": "1.7.7",
"version": "1.8.0",
"description": "Aptly types and enums",
"main": "./index.js",
"types": "./index.d.ts",
"module": "./index.js",
"author": "Emil A. Olsen <emil@aptly.as>",

@@ -20,2 +21,3 @@ "engines": {

"devDependencies": {
"cloudinary": "^1.32.0",
"husky": "^7.0.4",

@@ -22,0 +24,0 @@ "lint-staged": "^12.3.4",

@@ -1,3 +0,3 @@

# Aptly Types
# Aptly Types
[Swagger API documentation](https://app.swaggerhub.com/apis-docs/Aptly-AS/aptly-api/1.0.0)
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