@activepieces/shared
Advanced tools
Comparing version 0.10.84 to 0.10.85
{ | ||
"name": "@activepieces/shared", | ||
"version": "0.10.84", | ||
"version": "0.10.85", | ||
"type": "commonjs", | ||
@@ -9,5 +9,5 @@ "dependencies": { | ||
"semver": "7.6.0", | ||
"tslib": "2.6.2" | ||
"tslib": "2.6.1" | ||
}, | ||
"main": "./src/index.js" | ||
} |
@@ -12,2 +12,24 @@ import { ApId } from '../common/id-generator'; | ||
} | ||
export declare const ProjectUsage: import("@sinclair/typebox").TObject<{ | ||
tasks: import("@sinclair/typebox").TNumber; | ||
teamMembers: import("@sinclair/typebox").TNumber; | ||
}>; | ||
export type ProjectUsage = Static<typeof ProjectUsage>; | ||
export type ProjectPlanId = string; | ||
export declare const ProjectPlan: import("@sinclair/typebox").TObject<{ | ||
projectId: import("@sinclair/typebox").TString<string>; | ||
stripeCustomerId: import("@sinclair/typebox").TString<string>; | ||
stripeSubscriptionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>; | ||
subscriptionStartDatetime: import("@sinclair/typebox").TString<string>; | ||
flowPlanName: import("@sinclair/typebox").TString<string>; | ||
minimumPollingInterval: import("@sinclair/typebox").TNumber; | ||
connections: import("@sinclair/typebox").TNumber; | ||
teamMembers: import("@sinclair/typebox").TNumber; | ||
tasks: import("@sinclair/typebox").TNumber; | ||
tasksPerDay: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>; | ||
id: import("@sinclair/typebox").TString<string>; | ||
created: import("@sinclair/typebox").TString<string>; | ||
updated: import("@sinclair/typebox").TString<string>; | ||
}>; | ||
export type ProjectPlan = Static<typeof ProjectPlan>; | ||
export declare const Project: import("@sinclair/typebox").TObject<{ | ||
@@ -25,1 +47,33 @@ ownerId: import("@sinclair/typebox").TString<string>; | ||
export type Project = Static<typeof Project>; | ||
export declare const ProjectWithLimits: import("@sinclair/typebox").TComposite<[import("@sinclair/typebox").TObject<{ | ||
ownerId: import("@sinclair/typebox").TString<string>; | ||
displayName: import("@sinclair/typebox").TString<string>; | ||
notifyStatus: import("@sinclair/typebox").TEnum<typeof NotificationStatus>; | ||
type: import("@sinclair/typebox").TEnum<typeof ProjectType>; | ||
platformId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>; | ||
externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>; | ||
id: import("@sinclair/typebox").TString<string>; | ||
created: import("@sinclair/typebox").TString<string>; | ||
updated: import("@sinclair/typebox").TString<string>; | ||
}>, import("@sinclair/typebox").TObject<{ | ||
usage: import("@sinclair/typebox").TObject<{ | ||
tasks: import("@sinclair/typebox").TNumber; | ||
teamMembers: import("@sinclair/typebox").TNumber; | ||
}>; | ||
plan: import("@sinclair/typebox").TObject<{ | ||
projectId: import("@sinclair/typebox").TString<string>; | ||
stripeCustomerId: import("@sinclair/typebox").TString<string>; | ||
stripeSubscriptionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>; | ||
subscriptionStartDatetime: import("@sinclair/typebox").TString<string>; | ||
flowPlanName: import("@sinclair/typebox").TString<string>; | ||
minimumPollingInterval: import("@sinclair/typebox").TNumber; | ||
connections: import("@sinclair/typebox").TNumber; | ||
teamMembers: import("@sinclair/typebox").TNumber; | ||
tasks: import("@sinclair/typebox").TNumber; | ||
tasksPerDay: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>; | ||
id: import("@sinclair/typebox").TString<string>; | ||
created: import("@sinclair/typebox").TString<string>; | ||
updated: import("@sinclair/typebox").TString<string>; | ||
}>; | ||
}>]>; | ||
export type ProjectWithLimits = Static<typeof ProjectWithLimits>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Project = exports.ProjectType = exports.NotificationStatus = void 0; | ||
exports.ProjectWithLimits = exports.Project = exports.ProjectPlan = exports.ProjectUsage = exports.ProjectType = exports.NotificationStatus = void 0; | ||
const base_model_1 = require("../common/base-model"); | ||
@@ -17,3 +17,15 @@ const id_generator_1 = require("../common/id-generator"); | ||
})(ProjectType || (exports.ProjectType = ProjectType = {})); | ||
exports.ProjectUsage = typebox_1.Type.Object({ | ||
tasks: typebox_1.Type.Number(), | ||
teamMembers: typebox_1.Type.Number(), | ||
}); | ||
exports.ProjectPlan = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { projectId: typebox_1.Type.String(), stripeCustomerId: typebox_1.Type.String(), stripeSubscriptionId: (0, base_model_1.Nullable)(typebox_1.Type.String()), subscriptionStartDatetime: typebox_1.Type.String(), flowPlanName: typebox_1.Type.String(), minimumPollingInterval: typebox_1.Type.Number(), connections: typebox_1.Type.Number(), teamMembers: typebox_1.Type.Number(), tasks: typebox_1.Type.Number(), tasksPerDay: (0, base_model_1.Nullable)(typebox_1.Type.Number()) })); | ||
exports.Project = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { ownerId: typebox_1.Type.String(), displayName: typebox_1.Type.String(), notifyStatus: typebox_1.Type.Enum(NotificationStatus), type: typebox_1.Type.Enum(ProjectType), platformId: typebox_1.Type.Optional(id_generator_1.ApId), externalId: typebox_1.Type.Optional(typebox_1.Type.String()) })); | ||
exports.ProjectWithLimits = typebox_1.Type.Composite([ | ||
exports.Project, | ||
typebox_1.Type.Object({ | ||
usage: exports.ProjectUsage, | ||
plan: exports.ProjectPlan, | ||
}), | ||
]); | ||
//# sourceMappingURL=project.js.map |
Sorry, the diff of this file is not supported yet
468201
6448
+ Addedtslib@2.6.1(transitive)
- Removedtslib@2.6.2(transitive)
Updatedtslib@2.6.1