@aptly-as/types
Advanced tools
Comparing version 1.5.1 to 1.6.0
@@ -7,1 +7,8 @@ export interface AptlySearchPaginateResponse<T> { | ||
} | ||
export interface AptlyApiQueries { | ||
limit?: number; | ||
skip?: number; | ||
text?: string; | ||
select?: string; | ||
populate?: string; | ||
} |
@@ -7,2 +7,10 @@ | ||
count: number; | ||
} | ||
export interface AptlyApiQueries { | ||
limit?: number; // Limit documents | ||
skip?: number; // skip document for pagination | ||
text?: string; // search all fields | ||
select?: string; // Split with spaces | ||
populate?: string; // user:_id,fullName;organization | ||
} |
import { AptlyCloudinaryFile } from './cloudinary'; | ||
export * from './api'; | ||
export * from './app'; | ||
export * from './cloudinary'; | ||
export * from './permission'; | ||
export * from './error'; | ||
export * from './fields'; | ||
export * from './scope'; | ||
export * from './signage'; | ||
export * from './webhook-event-data'; | ||
@@ -6,0 +11,0 @@ export interface AptlySchemaFile extends Pick<AptlyCloudinaryFile, 'public_id' | 'url' | 'format' | 'resource_type' | 'bytes'> { |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./api")); | ||
__export(require("./permission")); | ||
__export(require("./error")); | ||
__export(require("./webhook-event-data")); | ||
__exportStar(require("./api"), exports); | ||
__exportStar(require("./app"), exports); | ||
__exportStar(require("./cloudinary"), exports); | ||
__exportStar(require("./permission"), exports); | ||
__exportStar(require("./error"), exports); | ||
__exportStar(require("./fields"), exports); | ||
__exportStar(require("./scope"), exports); | ||
__exportStar(require("./signage"), exports); | ||
__exportStar(require("./webhook-event-data"), exports); | ||
//# sourceMappingURL=index.js.map |
import { AptlyCloudinaryFile } from './cloudinary'; | ||
export * from './api'; | ||
export * from './app'; | ||
export * from './cloudinary'; | ||
export * from './permission'; | ||
export * from './error'; | ||
export * from './fields'; | ||
export * from './scope'; | ||
export * from './signage'; | ||
export * from './webhook-event-data'; | ||
@@ -7,0 +12,0 @@ |
@@ -0,5 +1,112 @@ | ||
/** | ||
* @deprecated use AptlyPermissionGlobalModel enum | ||
*/ | ||
export declare type AptlyPermissionGlobalModels = 'superAdmin' | 'admin' | 'beta' | 'default'; | ||
export declare enum AptlyPermissionGlobalModel { | ||
Admin = "admin", | ||
Beta = "beta", | ||
Default = "default", | ||
SuperAdmin = "superAdmin" | ||
} | ||
/** | ||
* @deprecated Dont think this is used? | ||
*/ | ||
export declare type AptlyPermissionModules = 'projectBooking' | 'projectSupport' | 'projectRecommendations'; | ||
export declare type AptlyPermissionModulesModels = 'default' | 'core' | 'algorithms' | 'departments' | 'booking' | 'unitExtraOptions' | 'unitExtraFields' | 'pages' | 'recommendations' | 'subcontractor' | 'optionLabels' | 'support' | 'testing'; | ||
/** | ||
* @deprecated use AptlyPermissionOrganizationModel enum | ||
*/ | ||
export declare type AptlyPermissionModulesModels = 'default' | 'core' | 'algorithms' | 'departments' | 'booking' | 'unitExtraOptions' | 'unitExtraFields' | 'pages' | 'recommendations' | 'subcontractor' | 'optionLabels' | 'support' | 'productsExtended' | 'testing'; | ||
export declare enum AptlyPermissionModulesModel { | ||
Algorithms = "algorithms", | ||
Booking = "booking", | ||
Core = "core", | ||
Default = "default", | ||
Departments = "departments", | ||
OptionLabels = "optionLabels", | ||
Pages = "pages", | ||
ProductsExtended = "productsExtended", | ||
Recommendations = "recommendations", | ||
Subcontractor = "subcontractor", | ||
Support = "support", | ||
Testing = "testing", | ||
UnitExtraOptions = "unitExtraOptions", | ||
UnitExtraFields = "unitExtraFields" | ||
} | ||
/** | ||
* @deprecated use AptlyPermissionOrganizationModel enum | ||
*/ | ||
export declare type AptlyPermissionOrganizationModels = 'testingAdmin' | 'admin' | 'content' | 'reports' | 'support' | 'thirdParty' | 'default'; | ||
export declare type AptlyPermissionModels = 'admin' | 'adminBilling' | 'adminProducers' | 'adminProducts' | 'adminReport' | 'adminStats' | 'adminSuppliers' | 'adminTags' | 'adminTesting' | 'adminUsers' | 'adminOrganizations' | 'beta' | 'organization' | 'organizationBooking' | 'organizationClients' | 'organizationDepartments' | 'organizationMembers' | 'organizationOptionLabels' | 'organizationOrders' | 'organizationProducts' | 'organizationReport' | 'organizationStats' | 'organizationLogo' | 'organizationWebhooks' | 'project' | 'projectAlgorithms' | 'projectBooking' | 'projectDocuments' | 'projectInquiry' | 'projectOrders' | 'projectPages' | 'projectPeriods' | 'projectProducts' | 'projectRecommendations' | 'projectReport' | 'projectReportPrice' | 'projectTheme' | 'projectSigning' | 'projectSubcontractor' | 'projectUnits' | 'projectUnitInvites' | 'projectUnitExtraFields' | 'projectUnitExtraOptions' | 'projectUnitTemplates' | 'projectUnitTemplatesAlgorithms' | 'projectUnitTemplatesPrices' | 'projectUpsellTemplates' | 'unit' | 'unitBooking' | 'unitInquiry' | 'unitOrders' | 'unitPages' | 'unitProducts' | 'unitReport'; | ||
export declare enum AptlyPermissionOrganizationModel { | ||
Admin = "admin", | ||
Content = "content", | ||
Default = "default", | ||
TestingAdmin = "testingAdmin", | ||
Reports = "reports", | ||
Support = "support", | ||
ThirdParty = "thirdParty" | ||
} | ||
/** | ||
* @deprecated use AptlyPermissionModel enum | ||
*/ | ||
export declare type AptlyPermissionModels = 'admin' | 'adminBilling' | 'adminProducers' | 'adminProducts' | 'adminReport' | 'adminStats' | 'adminSuppliers' | 'adminTags' | 'adminTesting' | 'adminUsers' | 'adminOrganizations' | 'beta' | 'organization' | 'organizationBooking' | 'organizationClients' | 'organizationDepartments' | 'organizationMembers' | 'organizationOptionLabels' | 'organizationOrders' | 'organizationProducts' | 'organizationProductsExtended' | 'organizationReport' | 'organizationStats' | 'organizationLogo' | 'organizationWebhooks' | 'project' | 'projectAlgorithms' | 'projectBooking' | 'projectDocuments' | 'projectInquiry' | 'projectOrders' | 'projectPages' | 'projectPeriods' | 'projectProducts' | 'projectRecommendations' | 'projectReport' | 'projectReportPrice' | 'projectTheme' | 'projectSigning' | 'projectSubcontractor' | 'projectUnits' | 'projectUnitInvites' | 'projectUnitExtraFields' | 'projectUnitExtraOptions' | 'projectUnitTemplates' | 'projectUnitTemplatesAlgorithms' | 'projectUnitTemplatesPrices' | 'projectUpsellTemplates' | 'unit' | 'unitBooking' | 'unitInquiry' | 'unitOrders' | 'unitPages' | 'unitProducts' | 'unitReport'; | ||
export declare enum AptlyPermissionModel { | ||
Admin = "admin", | ||
AdminBilling = "adminBilling", | ||
AdminProducers = "adminProducers", | ||
AdminProducts = "adminProducts", | ||
AdminReport = "adminReport", | ||
AdminStats = "adminStats", | ||
AdminSuppliers = "adminSuppliers", | ||
AdminTags = "adminTags", | ||
AdminTesting = "adminTesting", | ||
AdminUsers = "adminUsers", | ||
AdminOrganizations = "adminOrganizations", | ||
Beta = "beta", | ||
Organization = "organization", | ||
OrganizationBooking = "organizationBooking", | ||
OrganizationClients = "organizationClients", | ||
OrganizationDepartments = "organizationDepartments", | ||
OrganizationMembers = "organizationMembers", | ||
OrganizationOptionLabels = "organizationOptionLabels", | ||
OrganizationOrders = "organizationOrders", | ||
OrganizationProducts = "organizationProducts", | ||
OrganizationProductsExtended = "organizationProductsExtended", | ||
OrganizationReport = "organizationReport", | ||
OrganizationStats = "organizationStats", | ||
OrganizationLogo = "organizationLogo", | ||
OrganizationWebhooks = "organizationWebhooks", | ||
Project = "project", | ||
ProjectAlgorithms = "projectAlgorithms", | ||
ProjectBooking = "projectBooking", | ||
ProjectDocuments = "projectDocuments", | ||
ProjectInquiry = "projectInquiry", | ||
ProjectOrders = "projectOrders", | ||
ProjectPages = "projectPages", | ||
ProjectPeriods = "projectPeriods", | ||
ProjectProducts = "projectProducts", | ||
ProjectRecommendations = "projectRecommendations", | ||
ProjectReport = "projectReport", | ||
ProjectReportPrice = "projectReportPrice", | ||
ProjectTheme = "projectTheme", | ||
ProjectSigning = "projectSigning", | ||
ProjectSubcontractor = "projectSubcontractor", | ||
ProjectUnits = "projectUnits", | ||
ProjectUnitInvites = "projectUnitInvites", | ||
ProjectUnitExtraFields = "projectUnitExtraFields", | ||
ProjectUnitExtraOptions = "projectUnitExtraOptions", | ||
ProjectUnitTemplates = "projectUnitTemplates", | ||
ProjectUnitTemplatesAlgorithms = "projectUnitTemplatesAlgorithms", | ||
ProjectUnitTemplatesPrices = "projectUnitTemplatesPrices", | ||
ProjectUpsellTemplates = "projectUpsellTemplates", | ||
Unit = "unit", | ||
UnitBooking = "unitBooking", | ||
UnitInquiry = "unitInquiry", | ||
UnitOrders = "unitOrders", | ||
UnitPages = "unitPages", | ||
UnitProducts = "unitProducts", | ||
UnitReport = "unitReport" | ||
} | ||
export declare type AptlyPermissionCrud = 'C' | 'R' | 'U' | 'D'; | ||
export declare type AptlyPermissionSchema = { | ||
[key in AptlyPermissionModels]: 'R' | 'CR' | 'CRU' | 'RU' | 'CRUD'; | ||
}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AptlyPermissionModel = exports.AptlyPermissionOrganizationModel = exports.AptlyPermissionModulesModel = exports.AptlyPermissionGlobalModel = void 0; | ||
var AptlyPermissionGlobalModel; | ||
(function (AptlyPermissionGlobalModel) { | ||
AptlyPermissionGlobalModel["Admin"] = "admin"; | ||
AptlyPermissionGlobalModel["Beta"] = "beta"; | ||
AptlyPermissionGlobalModel["Default"] = "default"; | ||
AptlyPermissionGlobalModel["SuperAdmin"] = "superAdmin"; | ||
})(AptlyPermissionGlobalModel = exports.AptlyPermissionGlobalModel || (exports.AptlyPermissionGlobalModel = {})); | ||
var AptlyPermissionModulesModel; | ||
(function (AptlyPermissionModulesModel) { | ||
AptlyPermissionModulesModel["Algorithms"] = "algorithms"; | ||
AptlyPermissionModulesModel["Booking"] = "booking"; | ||
AptlyPermissionModulesModel["Core"] = "core"; | ||
AptlyPermissionModulesModel["Default"] = "default"; | ||
AptlyPermissionModulesModel["Departments"] = "departments"; | ||
AptlyPermissionModulesModel["OptionLabels"] = "optionLabels"; | ||
AptlyPermissionModulesModel["Pages"] = "pages"; | ||
AptlyPermissionModulesModel["ProductsExtended"] = "productsExtended"; | ||
AptlyPermissionModulesModel["Recommendations"] = "recommendations"; | ||
AptlyPermissionModulesModel["Subcontractor"] = "subcontractor"; | ||
AptlyPermissionModulesModel["Support"] = "support"; | ||
AptlyPermissionModulesModel["Testing"] = "testing"; | ||
AptlyPermissionModulesModel["UnitExtraOptions"] = "unitExtraOptions"; | ||
AptlyPermissionModulesModel["UnitExtraFields"] = "unitExtraFields"; | ||
})(AptlyPermissionModulesModel = exports.AptlyPermissionModulesModel || (exports.AptlyPermissionModulesModel = {})); | ||
var AptlyPermissionOrganizationModel; | ||
(function (AptlyPermissionOrganizationModel) { | ||
AptlyPermissionOrganizationModel["Admin"] = "admin"; | ||
AptlyPermissionOrganizationModel["Content"] = "content"; | ||
AptlyPermissionOrganizationModel["Default"] = "default"; | ||
AptlyPermissionOrganizationModel["TestingAdmin"] = "testingAdmin"; | ||
AptlyPermissionOrganizationModel["Reports"] = "reports"; | ||
AptlyPermissionOrganizationModel["Support"] = "support"; | ||
AptlyPermissionOrganizationModel["ThirdParty"] = "thirdParty"; | ||
})(AptlyPermissionOrganizationModel = exports.AptlyPermissionOrganizationModel || (exports.AptlyPermissionOrganizationModel = {})); | ||
var AptlyPermissionModel; | ||
(function (AptlyPermissionModel) { | ||
AptlyPermissionModel["Admin"] = "admin"; | ||
AptlyPermissionModel["AdminBilling"] = "adminBilling"; | ||
AptlyPermissionModel["AdminProducers"] = "adminProducers"; | ||
AptlyPermissionModel["AdminProducts"] = "adminProducts"; | ||
AptlyPermissionModel["AdminReport"] = "adminReport"; | ||
AptlyPermissionModel["AdminStats"] = "adminStats"; | ||
AptlyPermissionModel["AdminSuppliers"] = "adminSuppliers"; | ||
AptlyPermissionModel["AdminTags"] = "adminTags"; | ||
AptlyPermissionModel["AdminTesting"] = "adminTesting"; | ||
AptlyPermissionModel["AdminUsers"] = "adminUsers"; | ||
AptlyPermissionModel["AdminOrganizations"] = "adminOrganizations"; | ||
AptlyPermissionModel["Beta"] = "beta"; | ||
AptlyPermissionModel["Organization"] = "organization"; | ||
AptlyPermissionModel["OrganizationBooking"] = "organizationBooking"; | ||
AptlyPermissionModel["OrganizationClients"] = "organizationClients"; | ||
AptlyPermissionModel["OrganizationDepartments"] = "organizationDepartments"; | ||
AptlyPermissionModel["OrganizationMembers"] = "organizationMembers"; | ||
AptlyPermissionModel["OrganizationOptionLabels"] = "organizationOptionLabels"; | ||
AptlyPermissionModel["OrganizationOrders"] = "organizationOrders"; | ||
AptlyPermissionModel["OrganizationProducts"] = "organizationProducts"; | ||
AptlyPermissionModel["OrganizationProductsExtended"] = "organizationProductsExtended"; | ||
AptlyPermissionModel["OrganizationReport"] = "organizationReport"; | ||
AptlyPermissionModel["OrganizationStats"] = "organizationStats"; | ||
AptlyPermissionModel["OrganizationLogo"] = "organizationLogo"; | ||
AptlyPermissionModel["OrganizationWebhooks"] = "organizationWebhooks"; | ||
AptlyPermissionModel["Project"] = "project"; | ||
AptlyPermissionModel["ProjectAlgorithms"] = "projectAlgorithms"; | ||
AptlyPermissionModel["ProjectBooking"] = "projectBooking"; | ||
AptlyPermissionModel["ProjectDocuments"] = "projectDocuments"; | ||
AptlyPermissionModel["ProjectInquiry"] = "projectInquiry"; | ||
AptlyPermissionModel["ProjectOrders"] = "projectOrders"; | ||
AptlyPermissionModel["ProjectPages"] = "projectPages"; | ||
AptlyPermissionModel["ProjectPeriods"] = "projectPeriods"; | ||
AptlyPermissionModel["ProjectProducts"] = "projectProducts"; | ||
AptlyPermissionModel["ProjectRecommendations"] = "projectRecommendations"; | ||
AptlyPermissionModel["ProjectReport"] = "projectReport"; | ||
AptlyPermissionModel["ProjectReportPrice"] = "projectReportPrice"; | ||
AptlyPermissionModel["ProjectTheme"] = "projectTheme"; | ||
AptlyPermissionModel["ProjectSigning"] = "projectSigning"; | ||
AptlyPermissionModel["ProjectSubcontractor"] = "projectSubcontractor"; | ||
AptlyPermissionModel["ProjectUnits"] = "projectUnits"; | ||
AptlyPermissionModel["ProjectUnitInvites"] = "projectUnitInvites"; | ||
AptlyPermissionModel["ProjectUnitExtraFields"] = "projectUnitExtraFields"; | ||
AptlyPermissionModel["ProjectUnitExtraOptions"] = "projectUnitExtraOptions"; | ||
AptlyPermissionModel["ProjectUnitTemplates"] = "projectUnitTemplates"; | ||
AptlyPermissionModel["ProjectUnitTemplatesAlgorithms"] = "projectUnitTemplatesAlgorithms"; | ||
AptlyPermissionModel["ProjectUnitTemplatesPrices"] = "projectUnitTemplatesPrices"; | ||
AptlyPermissionModel["ProjectUpsellTemplates"] = "projectUpsellTemplates"; | ||
AptlyPermissionModel["Unit"] = "unit"; | ||
AptlyPermissionModel["UnitBooking"] = "unitBooking"; | ||
AptlyPermissionModel["UnitInquiry"] = "unitInquiry"; | ||
AptlyPermissionModel["UnitOrders"] = "unitOrders"; | ||
AptlyPermissionModel["UnitPages"] = "unitPages"; | ||
AptlyPermissionModel["UnitProducts"] = "unitProducts"; | ||
AptlyPermissionModel["UnitReport"] = "unitReport"; | ||
})(AptlyPermissionModel = exports.AptlyPermissionModel || (exports.AptlyPermissionModel = {})); | ||
//# sourceMappingURL=permission.js.map |
/** | ||
* @deprecated use AptlyPermissionGlobalModel enum | ||
*/ | ||
export type AptlyPermissionGlobalModels = 'superAdmin' | 'admin' | 'beta' | 'default'; | ||
export enum AptlyPermissionGlobalModel { | ||
Admin = 'admin', | ||
Beta = 'beta', | ||
Default = 'default', | ||
SuperAdmin = 'superAdmin', | ||
} | ||
/** | ||
* @deprecated Dont think this is used? | ||
*/ | ||
export type AptlyPermissionModules = 'projectBooking' | 'projectSupport' | 'projectRecommendations'; | ||
/** | ||
* @deprecated use AptlyPermissionOrganizationModel enum | ||
*/ | ||
export type AptlyPermissionModulesModels = | ||
@@ -19,4 +35,25 @@ | 'default' | ||
| 'support' | ||
| 'productsExtended' | ||
| 'testing'; | ||
export enum AptlyPermissionModulesModel { | ||
Algorithms = 'algorithms', | ||
Booking = 'booking', | ||
Core = 'core', | ||
Default = 'default', | ||
Departments = 'departments', | ||
OptionLabels = 'optionLabels', | ||
Pages = 'pages', | ||
ProductsExtended = 'productsExtended', | ||
Recommendations = 'recommendations', | ||
Subcontractor = 'subcontractor', | ||
Support = 'support', | ||
Testing = 'testing', | ||
UnitExtraOptions = 'unitExtraOptions', | ||
UnitExtraFields = 'unitExtraFields', | ||
} | ||
/** | ||
* @deprecated use AptlyPermissionOrganizationModel enum | ||
*/ | ||
export type AptlyPermissionOrganizationModels = | ||
@@ -31,2 +68,15 @@ | 'testingAdmin' | ||
export enum AptlyPermissionOrganizationModel { | ||
Admin = 'admin', | ||
Content = 'content', | ||
Default = 'default', | ||
TestingAdmin = 'testingAdmin', | ||
Reports = 'reports', | ||
Support = 'support', | ||
ThirdParty = 'thirdParty', | ||
} | ||
/** | ||
* @deprecated use AptlyPermissionModel enum | ||
*/ | ||
export type AptlyPermissionModels = | ||
@@ -53,2 +103,3 @@ | 'admin' | ||
| 'organizationProducts' | ||
| 'organizationProductsExtended' | ||
| 'organizationReport' | ||
@@ -87,2 +138,65 @@ | 'organizationStats' | ||
| 'unitProducts' | ||
| 'unitReport' | ||
| 'unitReport'; | ||
export enum AptlyPermissionModel { | ||
Admin = 'admin', | ||
AdminBilling = 'adminBilling', | ||
AdminProducers = 'adminProducers', | ||
AdminProducts = 'adminProducts', | ||
AdminReport = 'adminReport', | ||
AdminStats = 'adminStats', | ||
AdminSuppliers = 'adminSuppliers', | ||
AdminTags = 'adminTags', | ||
AdminTesting = 'adminTesting', | ||
AdminUsers = 'adminUsers', | ||
AdminOrganizations = 'adminOrganizations', | ||
Beta = 'beta', | ||
Organization = 'organization', | ||
OrganizationBooking = 'organizationBooking', | ||
OrganizationClients = 'organizationClients', | ||
OrganizationDepartments = 'organizationDepartments', | ||
OrganizationMembers = 'organizationMembers', | ||
OrganizationOptionLabels = 'organizationOptionLabels', | ||
OrganizationOrders = 'organizationOrders', | ||
OrganizationProducts = 'organizationProducts', | ||
OrganizationProductsExtended = 'organizationProductsExtended', | ||
OrganizationReport = 'organizationReport', | ||
OrganizationStats = 'organizationStats', | ||
OrganizationLogo = 'organizationLogo', | ||
OrganizationWebhooks = 'organizationWebhooks', | ||
Project = 'project', | ||
ProjectAlgorithms = 'projectAlgorithms', | ||
ProjectBooking = 'projectBooking', | ||
ProjectDocuments = 'projectDocuments', | ||
ProjectInquiry = 'projectInquiry', | ||
ProjectOrders = 'projectOrders', | ||
ProjectPages = 'projectPages', | ||
ProjectPeriods = 'projectPeriods', | ||
ProjectProducts = 'projectProducts', | ||
ProjectRecommendations = 'projectRecommendations', | ||
ProjectReport = 'projectReport', | ||
ProjectReportPrice = 'projectReportPrice', | ||
ProjectTheme = 'projectTheme', | ||
ProjectSigning = 'projectSigning', | ||
ProjectSubcontractor = 'projectSubcontractor', | ||
ProjectUnits = 'projectUnits', | ||
ProjectUnitInvites = 'projectUnitInvites', | ||
ProjectUnitExtraFields = 'projectUnitExtraFields', | ||
ProjectUnitExtraOptions = 'projectUnitExtraOptions', | ||
ProjectUnitTemplates = 'projectUnitTemplates', | ||
ProjectUnitTemplatesAlgorithms = 'projectUnitTemplatesAlgorithms', | ||
ProjectUnitTemplatesPrices = 'projectUnitTemplatesPrices', | ||
ProjectUpsellTemplates = 'projectUpsellTemplates', | ||
Unit = 'unit', | ||
UnitBooking = 'unitBooking', | ||
UnitInquiry = 'unitInquiry', | ||
UnitOrders = 'unitOrders', | ||
UnitPages = 'unitPages', | ||
UnitProducts = 'unitProducts', | ||
UnitReport = 'unitReport', | ||
} | ||
export type AptlyPermissionCrud = 'C' | 'R' | 'U' | 'D'; | ||
export type AptlyPermissionSchema = { | ||
[key in AptlyPermissionModels]: 'R' | 'CR' | 'CRU' | 'RU' | 'CRUD'; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AptlyHistoryType = exports.AptlyDocumentType = void 0; | ||
var AptlyDocumentType; | ||
@@ -4,0 +5,0 @@ (function (AptlyDocumentType) { |
export * from './document'; | ||
export * from './fields'; | ||
export * from './unit-template'; | ||
@@ -3,0 +4,0 @@ export * from './webhook'; |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./document")); | ||
__export(require("./unit-template")); | ||
__export(require("./webhook")); | ||
exports.AptlyIcon = exports.AptlyQueueDownloadStatus = exports.AptlyQueueDownloadType = exports.AptlyErrorCode = exports.AptlySignageSignerRef = exports.AptlyUnitItemParamKey = exports.AptlyInquiryParticipantRole = exports.AptlyInquiryStatus = exports.AptlyInquiryType = exports.AptlyCategorySectionDisplayType = exports.AptlyIntegrationLevel = exports.AptlyIntegration = exports.AptlyUnitStatus = exports.AptlyCloudinaryResourceType = exports.AptlyPageSectionType = exports.AptlyOrderStatus = void 0; | ||
__exportStar(require("./document"), exports); | ||
__exportStar(require("./fields"), exports); | ||
__exportStar(require("./unit-template"), exports); | ||
__exportStar(require("./webhook"), exports); | ||
var AptlyOrderStatus; | ||
@@ -10,0 +19,0 @@ (function (AptlyOrderStatus) { |
export * from './document'; | ||
export * from './fields'; | ||
export * from './unit-template'; | ||
@@ -4,0 +5,0 @@ export * from './webhook'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AptlyUnitTemplateCategorySectionProductMeasureUnitType = exports.AptlyUnitTemplateCategorySectionProductParamKey = void 0; | ||
var AptlyUnitTemplateCategorySectionProductParamKey; | ||
@@ -4,0 +5,0 @@ (function (AptlyUnitTemplateCategorySectionProductParamKey) { |
@@ -8,3 +8,5 @@ export declare enum AptlyWebhookType { | ||
UnitMessageReply = "as.aptly.unit.message.reply", | ||
UnitOrderSigned = "as.aptly.unit.order.signed" | ||
UnitOrderSigned = "as.aptly.unit.order.signed", | ||
OrganizationAppUpdated = "as.aptly.organization.app.updated", | ||
OrganizationAppDeleted = "as.aptly.organization.app.deleted" | ||
} | ||
@@ -11,0 +13,0 @@ export declare enum AptlyWebhookStatus { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AptlyWebhookEventStatus = exports.AptlyWebhookStatus = exports.AptlyWebhookType = void 0; | ||
var AptlyWebhookType; | ||
@@ -12,2 +13,4 @@ (function (AptlyWebhookType) { | ||
AptlyWebhookType["UnitOrderSigned"] = "as.aptly.unit.order.signed"; | ||
AptlyWebhookType["OrganizationAppUpdated"] = "as.aptly.organization.app.updated"; | ||
AptlyWebhookType["OrganizationAppDeleted"] = "as.aptly.organization.app.deleted"; | ||
})(AptlyWebhookType = exports.AptlyWebhookType || (exports.AptlyWebhookType = {})); | ||
@@ -14,0 +17,0 @@ var AptlyWebhookStatus; |
@@ -9,3 +9,5 @@ | ||
UnitMessageReply = 'as.aptly.unit.message.reply', | ||
UnitOrderSigned = 'as.aptly.unit.order.signed' | ||
UnitOrderSigned = 'as.aptly.unit.order.signed', | ||
OrganizationAppUpdated = 'as.aptly.organization.app.updated', | ||
OrganizationAppDeleted = 'as.aptly.organization.app.deleted', | ||
} | ||
@@ -12,0 +14,0 @@ |
19
index.js
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./core")); | ||
__export(require("./enums")); | ||
__export(require("./models")); | ||
__exportStar(require("./core"), exports); | ||
__exportStar(require("./enums"), exports); | ||
__exportStar(require("./models"), exports); | ||
//# sourceMappingURL=index.js.map |
import { AptlyBaseSchema } from './extends'; | ||
import { AptlyPermissionSchema } from '../core'; | ||
export interface AptlyUserClientSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> { | ||
@@ -7,3 +8,3 @@ user: ID; | ||
clientSecret?: string; | ||
permissions: any; | ||
permissions: AptlyPermissionSchema; | ||
/** | ||
@@ -10,0 +11,0 @@ * @deprecated use createdAt |
import { AptlyBaseSchema } from './extends'; | ||
import { AptlyPermissionSchema } from '../core'; | ||
@@ -8,3 +9,3 @@ export interface AptlyUserClientSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> { | ||
clientSecret?: string; | ||
permissions: any; | ||
permissions: AptlyPermissionSchema; | ||
/** | ||
@@ -11,0 +12,0 @@ * @deprecated use createdAt |
@@ -18,3 +18,3 @@ import { AptlyDocumentType } from '../enums'; | ||
public_id?: string; | ||
boligmappaStatus?: AptlyDocumentSchemaBoligmappaStatusSchema<ID, DATE>[]; | ||
boligmappaStatus?: AptlyDocumentSchemaBoligmappaStatusSchema<ID>[]; | ||
chunks?: ID[]; | ||
@@ -27,4 +27,4 @@ isPasswordProtected?: boolean; | ||
} | ||
export declare type AptlyDocumentSchemaBoligmappaStatus = AptlyDocumentSchemaBoligmappaStatusSchema<string, string>; | ||
export interface AptlyDocumentSchemaBoligmappaStatusSchema<ID, DATE> { | ||
export declare type AptlyDocumentSchemaBoligmappaStatus = AptlyDocumentSchemaBoligmappaStatusSchema<string>; | ||
export interface AptlyDocumentSchemaBoligmappaStatusSchema<ID> { | ||
_id: ID; | ||
@@ -31,0 +31,0 @@ unit: ID; |
@@ -20,3 +20,3 @@ import { AptlyDocumentType } from '../enums'; | ||
public_id?: string; // cloudinary_id or URL | ||
boligmappaStatus?: AptlyDocumentSchemaBoligmappaStatusSchema<ID, DATE>[]; | ||
boligmappaStatus?: AptlyDocumentSchemaBoligmappaStatusSchema<ID>[]; | ||
chunks?: ID[]; | ||
@@ -30,4 +30,4 @@ isPasswordProtected?: boolean; | ||
export type AptlyDocumentSchemaBoligmappaStatus = AptlyDocumentSchemaBoligmappaStatusSchema<string, string>; | ||
export interface AptlyDocumentSchemaBoligmappaStatusSchema<ID, DATE> { | ||
export type AptlyDocumentSchemaBoligmappaStatus = AptlyDocumentSchemaBoligmappaStatusSchema<string>; | ||
export interface AptlyDocumentSchemaBoligmappaStatusSchema<ID> { | ||
_id: ID; | ||
@@ -34,0 +34,0 @@ unit: ID; |
@@ -0,1 +1,2 @@ | ||
export * from './app'; | ||
export * from './booking'; | ||
@@ -2,0 +3,0 @@ export * from './client'; |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./booking")); | ||
__export(require("./client")); | ||
__export(require("./department")); | ||
__export(require("./document")); | ||
__export(require("./extends")); | ||
__export(require("./inquiry")); | ||
__export(require("./media")); | ||
__export(require("./notification-trigger")); | ||
__export(require("./option-label")); | ||
__export(require("./order")); | ||
__export(require("./organization")); | ||
__export(require("./page")); | ||
__export(require("./producer")); | ||
__export(require("./product")); | ||
__export(require("./product-stats")); | ||
__export(require("./project")); | ||
__export(require("./queue-download")); | ||
__export(require("./recommendation")); | ||
__export(require("./supplier")); | ||
__export(require("./tag")); | ||
__export(require("./unit")); | ||
__export(require("./unit-template")); | ||
__export(require("./unit-email")); | ||
__export(require("./upsell-template")); | ||
__export(require("./user")); | ||
__export(require("./webhook")); | ||
__export(require("./webhook-event")); | ||
__exportStar(require("./app"), exports); | ||
__exportStar(require("./booking"), exports); | ||
__exportStar(require("./client"), exports); | ||
__exportStar(require("./department"), exports); | ||
__exportStar(require("./document"), exports); | ||
__exportStar(require("./extends"), exports); | ||
__exportStar(require("./inquiry"), exports); | ||
__exportStar(require("./media"), exports); | ||
__exportStar(require("./notification-trigger"), exports); | ||
__exportStar(require("./option-label"), exports); | ||
__exportStar(require("./order"), exports); | ||
__exportStar(require("./organization"), exports); | ||
__exportStar(require("./page"), exports); | ||
__exportStar(require("./producer"), exports); | ||
__exportStar(require("./product"), exports); | ||
__exportStar(require("./product-stats"), exports); | ||
__exportStar(require("./project"), exports); | ||
__exportStar(require("./queue-download"), exports); | ||
__exportStar(require("./recommendation"), exports); | ||
__exportStar(require("./supplier"), exports); | ||
__exportStar(require("./tag"), exports); | ||
__exportStar(require("./unit"), exports); | ||
__exportStar(require("./unit-template"), exports); | ||
__exportStar(require("./unit-email"), exports); | ||
__exportStar(require("./upsell-template"), exports); | ||
__exportStar(require("./user"), exports); | ||
__exportStar(require("./webhook"), exports); | ||
__exportStar(require("./webhook-event"), exports); | ||
//# sourceMappingURL=index.js.map |
export * from './app'; | ||
export * from './booking'; | ||
@@ -3,0 +4,0 @@ export * from './client'; |
@@ -52,2 +52,6 @@ import { AptlyOrganizationSchema } from './organization'; | ||
location?: AptlyMediaSrcLocation; | ||
/** | ||
* @deprecated used my product images. Is slowly replaced with src/url | ||
*/ | ||
image?: string; | ||
} | ||
@@ -54,0 +58,0 @@ export declare type AptlyMediaSrcKeys = '_id' | 'name' | 'src' | 'url' | 'alt' | 'title' | 'caption' | 'mime' | 'width' | 'height'; |
@@ -62,2 +62,7 @@ import { AptlyOrganizationSchema } from './organization'; | ||
location?: AptlyMediaSrcLocation; | ||
/** | ||
* @deprecated used my product images. Is slowly replaced with src/url | ||
*/ | ||
image?: string; | ||
} | ||
@@ -64,0 +69,0 @@ |
@@ -1,3 +0,2 @@ | ||
import { AptlyPermissionModulesModels, AptlyPermissionOrganizationModels } from '../core'; | ||
import { AptlySignageSchema } from '../core/signage'; | ||
import { AptlyPermissionModulesModels, AptlyPermissionOrganizationModels, AptlyScope, AptlySignageSchema } from '../core'; | ||
import { AptlyUserSchema } from './user'; | ||
@@ -8,2 +7,3 @@ import { AptlyMediaSrc } from './media'; | ||
import { AptlyProducerSchema } from './producer'; | ||
import { AptlyAppSchema } from './app'; | ||
export declare type AptlyOrganization = AptlyOrganizationSchema<string, string>; | ||
@@ -33,2 +33,3 @@ export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
invites: AptlyOrganizationInviteSchema<ID, DATE>[]; | ||
apps: AptlyOrganizationAppConfigSchema<ID, DATE>[]; | ||
/** | ||
@@ -69,1 +70,10 @@ * @deprecated use createdAt | ||
} | ||
export declare type AptlyOrganizationAppConfig = AptlyOrganizationAppConfigSchema<string, string>; | ||
export interface AptlyOrganizationAppConfigSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> { | ||
app: ID | AptlyAppSchema<ID, DATE>; | ||
scope: AptlyScope[]; | ||
settings: AptlyOrganizationAppConfigSetting; | ||
} | ||
export interface AptlyOrganizationAppConfigSetting { | ||
[key: string]: string | number | boolean; | ||
} |
@@ -1,3 +0,7 @@ | ||
import { AptlyPermissionModulesModels, AptlyPermissionOrganizationModels } from '../core'; | ||
import { AptlySignageSchema } from '../core/signage'; | ||
import { | ||
AptlyPermissionModulesModels, | ||
AptlyPermissionOrganizationModels, | ||
AptlyScope, | ||
AptlySignageSchema | ||
} from '../core'; | ||
import { AptlyUserSchema } from './user'; | ||
@@ -8,4 +12,6 @@ import { AptlyMediaSrc } from './media'; | ||
import { AptlyProducerSchema } from './producer'; | ||
import { AptlyAppSchema } from './app'; | ||
export type AptlyOrganization = AptlyOrganizationSchema<string, string>; | ||
export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { | ||
@@ -34,2 +40,3 @@ slug: string; | ||
invites: AptlyOrganizationInviteSchema<ID, DATE>[]; | ||
apps: AptlyOrganizationAppConfigSchema<ID, DATE>[]; | ||
@@ -43,2 +50,3 @@ /** | ||
export type AptlyOrganizationIntegrations = AptlyOrganizationIntegrationsSchema<string>; | ||
export interface AptlyOrganizationIntegrationsSchema<ID> { | ||
@@ -52,2 +60,3 @@ _id: ID; | ||
export type AptlyOrganizationMember = AptlyOrganizationMemberSchema<string, string>; | ||
export interface AptlyOrganizationMemberSchema<ID, DATE> { | ||
@@ -62,2 +71,3 @@ _id: ID; | ||
export type AptlyOrganizationInvite = AptlyOrganizationInviteSchema<string, string>; | ||
export interface AptlyOrganizationInviteSchema<ID, DATE> { | ||
@@ -75,3 +85,15 @@ _id: ID; | ||
claimTime?: DATE; | ||
} | ||
}; | ||
} | ||
export type AptlyOrganizationAppConfig = AptlyOrganizationAppConfigSchema<string, string>; | ||
export interface AptlyOrganizationAppConfigSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> { | ||
app: ID | AptlyAppSchema<ID, DATE>; | ||
scope: AptlyScope[]; | ||
settings: AptlyOrganizationAppConfigSetting; | ||
} | ||
export interface AptlyOrganizationAppConfigSetting { | ||
[key: string]: string | number | boolean; | ||
} |
@@ -26,3 +26,3 @@ import { AptlyPageSectionType } from '../enums'; | ||
export declare type AptlyPageSection = AptlyPageSectionSchema<string, string>; | ||
export interface AptlyPageSectionSchema<ID, DATE, VALUE = any> { | ||
export interface AptlyPageSectionSchema<ID, VALUE = any> { | ||
_id: ID; | ||
@@ -29,0 +29,0 @@ name: string; |
@@ -29,3 +29,3 @@ import { AptlyPageSectionType } from '../enums'; | ||
export type AptlyPageSection = AptlyPageSectionSchema<string, string>; | ||
export interface AptlyPageSectionSchema<ID, DATE, VALUE = any> { | ||
export interface AptlyPageSectionSchema<ID, VALUE = any> { | ||
_id: ID; | ||
@@ -32,0 +32,0 @@ name: string; |
@@ -31,2 +31,3 @@ import { AptlyBaseSchema, AptlyDBCrawlerCleaner } from './extends'; | ||
importID?: ID; | ||
thirdPartyUploader?: string; | ||
/** | ||
@@ -33,0 +34,0 @@ * @deprecated Use name |
@@ -32,2 +32,3 @@ import { AptlyBaseSchema, AptlyDBCrawlerCleaner } from './extends'; | ||
importID?: ID; | ||
thirdPartyUploader?: string; | ||
@@ -34,0 +35,0 @@ /** |
@@ -16,3 +16,3 @@ import { AptlyOrganizationSchema } from './organization'; | ||
periods: AptlyProjectPeriodSchema<ID, DATE>[]; | ||
algorithms: AptlyProjectAlgorithmSchema<ID, DATE>[]; | ||
algorithms: AptlyProjectAlgorithmSchema<ID>[]; | ||
documents: AptlyDocumentSchema<ID, DATE>[]; | ||
@@ -40,4 +40,4 @@ pages: ID[]; | ||
} | ||
export declare type AptlyProjectAlgorithm = AptlyProjectAlgorithmSchema<string, string>; | ||
export interface AptlyProjectAlgorithmSchema<ID, DATE> { | ||
export declare type AptlyProjectAlgorithm = AptlyProjectAlgorithmSchema<string>; | ||
export interface AptlyProjectAlgorithmSchema<ID> { | ||
_id: ID; | ||
@@ -44,0 +44,0 @@ name: string; |
@@ -17,3 +17,3 @@ import { AptlyOrganizationSchema } from './organization'; | ||
periods: AptlyProjectPeriodSchema<ID, DATE>[]; | ||
algorithms: AptlyProjectAlgorithmSchema<ID, DATE>[]; | ||
algorithms: AptlyProjectAlgorithmSchema<ID>[]; | ||
documents: AptlyDocumentSchema<ID, DATE>[]; | ||
@@ -44,4 +44,4 @@ pages: ID[]; | ||
export type AptlyProjectAlgorithm = AptlyProjectAlgorithmSchema<string, string>; | ||
export interface AptlyProjectAlgorithmSchema<ID, DATE> { | ||
export type AptlyProjectAlgorithm = AptlyProjectAlgorithmSchema<string>; | ||
export interface AptlyProjectAlgorithmSchema<ID> { | ||
_id: ID; | ||
@@ -48,0 +48,0 @@ name: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AptlyUnitEmailType = void 0; | ||
var AptlyUnitEmailType; | ||
@@ -4,0 +5,0 @@ (function (AptlyUnitEmailType) { |
@@ -86,3 +86,3 @@ import { AptlyBaseSchema, AptlyHistorySchema } from './extends'; | ||
unitCost?: number; | ||
algorithm: AptlyProjectAlgorithmSchema<ID, DATE> | ID; | ||
algorithm: AptlyProjectAlgorithmSchema<ID> | ID; | ||
standard: boolean; | ||
@@ -89,0 +89,0 @@ standardVariant?: ID; |
@@ -98,3 +98,3 @@ import { AptlyBaseSchema, AptlyHistorySchema } from './extends'; | ||
unitCost?: number; | ||
algorithm: AptlyProjectAlgorithmSchema<ID, DATE> | ID; | ||
algorithm: AptlyProjectAlgorithmSchema<ID> | ID; | ||
standard: boolean; | ||
@@ -101,0 +101,0 @@ standardVariant?: ID; |
@@ -31,3 +31,3 @@ import { AptlyProjectSchema } from './project'; | ||
unitTemplate: ID | AptlyUnitTemplateSchema<ID, DATE>; | ||
confirmedPeriods: AptlyUnitConfirmedPeriodSchema<ID, DATE>[]; | ||
confirmedPeriods: AptlyUnitConfirmedPeriodSchema<ID>[]; | ||
queueInvites: string[]; | ||
@@ -160,4 +160,4 @@ invites: AptlyUnitInviteSchema<ID, DATE>[]; | ||
} | ||
export declare type AptlyUnitConfirmedPeriod = AptlyUnitConfirmedPeriodSchema<string, string>; | ||
export interface AptlyUnitConfirmedPeriodSchema<ID, DATE> { | ||
export declare type AptlyUnitConfirmedPeriod = AptlyUnitConfirmedPeriodSchema<string>; | ||
export interface AptlyUnitConfirmedPeriodSchema<ID> { | ||
_id: ID; | ||
@@ -164,0 +164,0 @@ period: ID; |
@@ -33,3 +33,3 @@ import { AptlyProjectSchema } from './project'; | ||
unitTemplate: ID | AptlyUnitTemplateSchema<ID, DATE>; | ||
confirmedPeriods: AptlyUnitConfirmedPeriodSchema<ID, DATE>[]; | ||
confirmedPeriods: AptlyUnitConfirmedPeriodSchema<ID>[]; | ||
queueInvites: string[]; | ||
@@ -178,4 +178,4 @@ invites: AptlyUnitInviteSchema<ID, DATE>[]; | ||
export type AptlyUnitConfirmedPeriod = AptlyUnitConfirmedPeriodSchema<string, string>; | ||
export interface AptlyUnitConfirmedPeriodSchema<ID, DATE> { | ||
export type AptlyUnitConfirmedPeriod = AptlyUnitConfirmedPeriodSchema<string>; | ||
export interface AptlyUnitConfirmedPeriodSchema<ID> { | ||
_id: ID; | ||
@@ -182,0 +182,0 @@ period: ID; |
@@ -14,7 +14,9 @@ import { AptlyWebhookEventStatus, AptlyWebhookType } from '../enums'; | ||
state?: string; | ||
secret?: string; | ||
run: DATE; | ||
webhook: ID; | ||
organization: ID; | ||
project: ID; | ||
unit: ID; | ||
project?: ID; | ||
unit?: ID; | ||
app?: ID; | ||
status: AptlyWebhookEventStatus; | ||
@@ -41,2 +43,3 @@ url: string; | ||
'x-aptly-content-sha256'?: string; | ||
'x-aptly-organization': string; | ||
'webhook-request-origin': string; | ||
@@ -43,0 +46,0 @@ 'content-type': 'application/json;charset=UTF-8'; |
@@ -15,2 +15,3 @@ import { AptlyWebhookEventStatus, AptlyWebhookType } from '../enums'; | ||
state?: string; | ||
secret?: string; | ||
@@ -20,4 +21,5 @@ run: DATE; | ||
organization: ID; | ||
project: ID; | ||
unit: ID; | ||
project?: ID; | ||
unit?: ID; | ||
app?: ID; | ||
status: AptlyWebhookEventStatus; | ||
@@ -47,4 +49,5 @@ url: string; | ||
'x-aptly-content-sha256'?: string; | ||
'x-aptly-organization': string; | ||
'webhook-request-origin': string; | ||
'content-type': 'application/json;charset=UTF-8'; | ||
} |
@@ -6,2 +6,3 @@ import { AptlyWebhookStatus, AptlyWebhookType } from '../enums'; | ||
user?: ID; | ||
app?: ID; | ||
project?: ID; | ||
@@ -8,0 +9,0 @@ status: AptlyWebhookStatus; |
@@ -7,2 +7,3 @@ import { AptlyWebhookStatus, AptlyWebhookType } from '../enums'; | ||
user?: ID; | ||
app?: ID; | ||
project?: ID; | ||
@@ -9,0 +10,0 @@ status: AptlyWebhookStatus; |
{ | ||
"name": "@aptly-as/types", | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"description": "Aptly types and enums", | ||
@@ -15,6 +15,2 @@ "main": "./index.js", | ||
"build:watch": "tsc --watch --incremental", | ||
"lint": "tslint --project \"./tsconfig.json\"", | ||
"test": "jest", | ||
"test:watch": "jest --watchAll", | ||
"storybook": "start-storybook -p 9001 -c .storybook", | ||
"postversion": "git push && git push --tags", | ||
@@ -25,2 +21,5 @@ "prepublish": "npm run build" | ||
"devDependencies": { | ||
"husky": "^7.0.4", | ||
"lint-staged": "^12.3.4", | ||
"prettier": "^2.5.1", | ||
"typescript": "^4.2.4" | ||
@@ -49,3 +48,6 @@ }, | ||
"index.js.map" | ||
] | ||
], | ||
"lint-staged": { | ||
"**/*": "prettier --write --ignore-unknown" | ||
} | ||
} |
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
Sorry, the diff of this file is not supported yet
158159
182
4075
4