asfur 1.0.118 → 1.0.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.js +2 -1
- package/index.ts +1 -0
- package/package.json +1 -1
- package/types.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -430,6 +430,7 @@ export declare const MongoScenarioSchema: Schema<any, import("mongoose").Model<a
|
|
|
430
430
|
updated_at: number;
|
|
431
431
|
score_type: "ten_score" | "hundred_score" | "percentage_score" | "four_point_scale";
|
|
432
432
|
scenario: string;
|
|
433
|
+
shared_with: string[];
|
|
433
434
|
time_range?: any;
|
|
434
435
|
schedule?: string | null | undefined;
|
|
435
436
|
schedule_text?: string | null | undefined;
|
|
@@ -447,6 +448,7 @@ export declare const MongoScenarioSchema: Schema<any, import("mongoose").Model<a
|
|
|
447
448
|
updated_at: number;
|
|
448
449
|
score_type: "ten_score" | "hundred_score" | "percentage_score" | "four_point_scale";
|
|
449
450
|
scenario: string;
|
|
451
|
+
shared_with: string[];
|
|
450
452
|
time_range?: any;
|
|
451
453
|
schedule?: string | null | undefined;
|
|
452
454
|
schedule_text?: string | null | undefined;
|
|
@@ -464,6 +466,7 @@ export declare const MongoScenarioSchema: Schema<any, import("mongoose").Model<a
|
|
|
464
466
|
updated_at: number;
|
|
465
467
|
score_type: "ten_score" | "hundred_score" | "percentage_score" | "four_point_scale";
|
|
466
468
|
scenario: string;
|
|
469
|
+
shared_with: string[];
|
|
467
470
|
time_range?: any;
|
|
468
471
|
schedule?: string | null | undefined;
|
|
469
472
|
schedule_text?: string | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -197,7 +197,8 @@ exports.MongoScenarioSchema = new mongoose_1.Schema({
|
|
|
197
197
|
updated_at: { type: Number, default: Date.now },
|
|
198
198
|
active_until: { type: Number },
|
|
199
199
|
time_zone: { type: String },
|
|
200
|
-
alert: { type: mongoose_1.Schema.Types.Mixed },
|
|
200
|
+
alert: { type: mongoose_1.Schema.Types.Mixed },
|
|
201
|
+
shared_with: { type: [String] }, // array of user IDs with whom the scenario is shared
|
|
201
202
|
}, {
|
|
202
203
|
versionKey: false,
|
|
203
204
|
toJSON: { virtuals: true },
|
package/dist/types.d.ts
CHANGED
|
@@ -1614,6 +1614,7 @@ export declare const zodScenarioSchema: z.ZodObject<{
|
|
|
1614
1614
|
}[] | undefined;
|
|
1615
1615
|
confidence_level?: string | undefined;
|
|
1616
1616
|
}>, "many">>;
|
|
1617
|
+
shared_with: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1617
1618
|
}, "strip", z.ZodTypeAny, {
|
|
1618
1619
|
status: "active" | "inactive";
|
|
1619
1620
|
title: string;
|
|
@@ -1713,6 +1714,7 @@ export declare const zodScenarioSchema: z.ZodObject<{
|
|
|
1713
1714
|
}[] | undefined;
|
|
1714
1715
|
confidence_level?: string | undefined;
|
|
1715
1716
|
}[] | undefined;
|
|
1717
|
+
shared_with?: string[] | undefined;
|
|
1716
1718
|
}, {
|
|
1717
1719
|
title: string;
|
|
1718
1720
|
time_range: {
|
|
@@ -1812,6 +1814,7 @@ export declare const zodScenarioSchema: z.ZodObject<{
|
|
|
1812
1814
|
}[] | undefined;
|
|
1813
1815
|
confidence_level?: string | undefined;
|
|
1814
1816
|
}[] | undefined;
|
|
1817
|
+
shared_with?: string[] | undefined;
|
|
1815
1818
|
}>;
|
|
1816
1819
|
export declare const zodSendEmailSchema: z.ZodObject<{
|
|
1817
1820
|
user_id: z.ZodString;
|
package/dist/types.js
CHANGED
|
@@ -263,7 +263,8 @@ exports.zodScenarioSchema = zod_1.z.object({
|
|
|
263
263
|
active_until: zod_1.z.number().optional(),
|
|
264
264
|
time_zone: zod_1.z.string().optional(),
|
|
265
265
|
alert: exports.zodAlertSchema.optional(),
|
|
266
|
-
scores: zod_1.z.array(exports.zodScenarioScoreSchema).optional(),
|
|
266
|
+
scores: zod_1.z.array(exports.zodScenarioScoreSchema).optional(),
|
|
267
|
+
shared_with: zod_1.z.array(zod_1.z.string()).optional(), // array of user IDs with whom the scenario is shared
|
|
267
268
|
});
|
|
268
269
|
exports.zodSendEmailSchema = zod_1.z.object({
|
|
269
270
|
user_id: zod_1.z.string(),
|
package/index.ts
CHANGED
|
@@ -221,6 +221,7 @@ export const MongoScenarioSchema = new Schema(
|
|
|
221
221
|
active_until: { type: Number }, // optional date until which the scenario is active
|
|
222
222
|
time_zone: { type: String }, // optional timezone for the scenario
|
|
223
223
|
alert: { type: Schema.Types.Mixed }, // optional alert configuration for the scenario
|
|
224
|
+
shared_with: { type: [String] }, // array of user IDs with whom the scenario is shared
|
|
224
225
|
},
|
|
225
226
|
{
|
|
226
227
|
versionKey: false,
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -314,6 +314,7 @@ export const zodScenarioSchema = z.object({
|
|
|
314
314
|
time_zone: z.string().optional(), // optional timezone for the scenario
|
|
315
315
|
alert: zodAlertSchema.optional(), // optional alert configuration for the scenario
|
|
316
316
|
scores: z.array(zodScenarioScoreSchema).optional(), // array of scenario scores associated with the scenario
|
|
317
|
+
shared_with: z.array(z.string()).optional(), // array of user IDs with whom the scenario is shared
|
|
317
318
|
});
|
|
318
319
|
|
|
319
320
|
export const zodSendEmailSchema = z.object({
|