asfur 1.0.136 → 1.0.138
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 +9 -0
- package/dist/index.js +7 -4
- package/dist/types.d.ts +21 -0
- package/dist/types.js +6 -3
- package/index.ts +4 -1
- package/package.json +1 -1
- package/types.ts +3 -0
package/dist/index.d.ts
CHANGED
|
@@ -1022,14 +1022,17 @@ export declare const MongoTierSchema: Schema<any, import("mongoose").Model<any,
|
|
|
1022
1022
|
ask?: {
|
|
1023
1023
|
has_access: boolean;
|
|
1024
1024
|
has_limit: boolean;
|
|
1025
|
+
viewable: boolean;
|
|
1025
1026
|
asks_limit?: number | null | undefined;
|
|
1026
1027
|
} | null | undefined;
|
|
1027
1028
|
jobs?: {
|
|
1028
1029
|
has_access: boolean;
|
|
1030
|
+
viewable: boolean;
|
|
1029
1031
|
active_jobs_limit?: number | null | undefined;
|
|
1030
1032
|
} | null | undefined;
|
|
1031
1033
|
scenarios?: {
|
|
1032
1034
|
has_access: boolean;
|
|
1035
|
+
viewable: boolean;
|
|
1033
1036
|
active_scenarios_limit?: number | null | undefined;
|
|
1034
1037
|
} | null | undefined;
|
|
1035
1038
|
} | null | undefined;
|
|
@@ -1045,14 +1048,17 @@ export declare const MongoTierSchema: Schema<any, import("mongoose").Model<any,
|
|
|
1045
1048
|
ask?: {
|
|
1046
1049
|
has_access: boolean;
|
|
1047
1050
|
has_limit: boolean;
|
|
1051
|
+
viewable: boolean;
|
|
1048
1052
|
asks_limit?: number | null | undefined;
|
|
1049
1053
|
} | null | undefined;
|
|
1050
1054
|
jobs?: {
|
|
1051
1055
|
has_access: boolean;
|
|
1056
|
+
viewable: boolean;
|
|
1052
1057
|
active_jobs_limit?: number | null | undefined;
|
|
1053
1058
|
} | null | undefined;
|
|
1054
1059
|
scenarios?: {
|
|
1055
1060
|
has_access: boolean;
|
|
1061
|
+
viewable: boolean;
|
|
1056
1062
|
active_scenarios_limit?: number | null | undefined;
|
|
1057
1063
|
} | null | undefined;
|
|
1058
1064
|
} | null | undefined;
|
|
@@ -1068,14 +1074,17 @@ export declare const MongoTierSchema: Schema<any, import("mongoose").Model<any,
|
|
|
1068
1074
|
ask?: {
|
|
1069
1075
|
has_access: boolean;
|
|
1070
1076
|
has_limit: boolean;
|
|
1077
|
+
viewable: boolean;
|
|
1071
1078
|
asks_limit?: number | null | undefined;
|
|
1072
1079
|
} | null | undefined;
|
|
1073
1080
|
jobs?: {
|
|
1074
1081
|
has_access: boolean;
|
|
1082
|
+
viewable: boolean;
|
|
1075
1083
|
active_jobs_limit?: number | null | undefined;
|
|
1076
1084
|
} | null | undefined;
|
|
1077
1085
|
scenarios?: {
|
|
1078
1086
|
has_access: boolean;
|
|
1087
|
+
viewable: boolean;
|
|
1079
1088
|
active_scenarios_limit?: number | null | undefined;
|
|
1080
1089
|
} | null | undefined;
|
|
1081
1090
|
} | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -392,20 +392,23 @@ exports.MongoTierSchema = new mongoose_1.Schema({
|
|
|
392
392
|
description: { type: String },
|
|
393
393
|
features: {
|
|
394
394
|
events: {
|
|
395
|
-
has_access: { type: Boolean, default:
|
|
395
|
+
has_access: { type: Boolean, default: true }, // true if the tier has access to events data
|
|
396
396
|
},
|
|
397
397
|
ask: {
|
|
398
398
|
has_access: { type: Boolean, default: false },
|
|
399
399
|
has_limit: { type: Boolean, default: false },
|
|
400
|
-
asks_limit: { type: Number },
|
|
400
|
+
asks_limit: { type: Number },
|
|
401
|
+
viewable: { type: Boolean, default: true }, // true if the user can view the ask results, false if the ask results are hidden from the user
|
|
401
402
|
},
|
|
402
403
|
jobs: {
|
|
403
404
|
has_access: { type: Boolean, default: false },
|
|
404
|
-
active_jobs_limit: { type: Number },
|
|
405
|
+
active_jobs_limit: { type: Number },
|
|
406
|
+
viewable: { type: Boolean, default: true }, // true if the user can view the job results, false if the job results are hidden from the user
|
|
405
407
|
},
|
|
406
408
|
scenarios: {
|
|
407
409
|
has_access: { type: Boolean, default: false },
|
|
408
|
-
active_scenarios_limit: { type: Number },
|
|
410
|
+
active_scenarios_limit: { type: Number },
|
|
411
|
+
viewable: { type: Boolean, default: true }, // true if the user can view the scenario results, false if the scenario results are hidden from the user
|
|
409
412
|
},
|
|
410
413
|
},
|
|
411
414
|
created_at: { type: Number, default: Date.now },
|
package/dist/types.d.ts
CHANGED
|
@@ -2381,33 +2381,42 @@ export declare const zodTierSchema: z.ZodObject<{
|
|
|
2381
2381
|
has_access: z.ZodDefault<z.ZodBoolean>;
|
|
2382
2382
|
has_limit: z.ZodDefault<z.ZodBoolean>;
|
|
2383
2383
|
asks_limit: z.ZodOptional<z.ZodNumber>;
|
|
2384
|
+
viewable: z.ZodDefault<z.ZodBoolean>;
|
|
2384
2385
|
}, "strip", z.ZodTypeAny, {
|
|
2385
2386
|
has_access: boolean;
|
|
2386
2387
|
has_limit: boolean;
|
|
2388
|
+
viewable: boolean;
|
|
2387
2389
|
asks_limit?: number | undefined;
|
|
2388
2390
|
}, {
|
|
2389
2391
|
has_access?: boolean | undefined;
|
|
2390
2392
|
has_limit?: boolean | undefined;
|
|
2391
2393
|
asks_limit?: number | undefined;
|
|
2394
|
+
viewable?: boolean | undefined;
|
|
2392
2395
|
}>;
|
|
2393
2396
|
jobs: z.ZodObject<{
|
|
2394
2397
|
has_access: z.ZodDefault<z.ZodBoolean>;
|
|
2395
2398
|
active_jobs_limit: z.ZodOptional<z.ZodNumber>;
|
|
2399
|
+
viewable: z.ZodDefault<z.ZodBoolean>;
|
|
2396
2400
|
}, "strip", z.ZodTypeAny, {
|
|
2397
2401
|
has_access: boolean;
|
|
2402
|
+
viewable: boolean;
|
|
2398
2403
|
active_jobs_limit?: number | undefined;
|
|
2399
2404
|
}, {
|
|
2400
2405
|
active_jobs_limit?: number | undefined;
|
|
2401
2406
|
has_access?: boolean | undefined;
|
|
2407
|
+
viewable?: boolean | undefined;
|
|
2402
2408
|
}>;
|
|
2403
2409
|
scenarios: z.ZodObject<{
|
|
2404
2410
|
has_access: z.ZodDefault<z.ZodBoolean>;
|
|
2405
2411
|
active_scenarios_limit: z.ZodOptional<z.ZodNumber>;
|
|
2412
|
+
viewable: z.ZodDefault<z.ZodBoolean>;
|
|
2406
2413
|
}, "strip", z.ZodTypeAny, {
|
|
2407
2414
|
has_access: boolean;
|
|
2415
|
+
viewable: boolean;
|
|
2408
2416
|
active_scenarios_limit?: number | undefined;
|
|
2409
2417
|
}, {
|
|
2410
2418
|
has_access?: boolean | undefined;
|
|
2419
|
+
viewable?: boolean | undefined;
|
|
2411
2420
|
active_scenarios_limit?: number | undefined;
|
|
2412
2421
|
}>;
|
|
2413
2422
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2417,14 +2426,17 @@ export declare const zodTierSchema: z.ZodObject<{
|
|
|
2417
2426
|
ask: {
|
|
2418
2427
|
has_access: boolean;
|
|
2419
2428
|
has_limit: boolean;
|
|
2429
|
+
viewable: boolean;
|
|
2420
2430
|
asks_limit?: number | undefined;
|
|
2421
2431
|
};
|
|
2422
2432
|
jobs: {
|
|
2423
2433
|
has_access: boolean;
|
|
2434
|
+
viewable: boolean;
|
|
2424
2435
|
active_jobs_limit?: number | undefined;
|
|
2425
2436
|
};
|
|
2426
2437
|
scenarios: {
|
|
2427
2438
|
has_access: boolean;
|
|
2439
|
+
viewable: boolean;
|
|
2428
2440
|
active_scenarios_limit?: number | undefined;
|
|
2429
2441
|
};
|
|
2430
2442
|
}, {
|
|
@@ -2435,13 +2447,16 @@ export declare const zodTierSchema: z.ZodObject<{
|
|
|
2435
2447
|
has_access?: boolean | undefined;
|
|
2436
2448
|
has_limit?: boolean | undefined;
|
|
2437
2449
|
asks_limit?: number | undefined;
|
|
2450
|
+
viewable?: boolean | undefined;
|
|
2438
2451
|
};
|
|
2439
2452
|
jobs: {
|
|
2440
2453
|
active_jobs_limit?: number | undefined;
|
|
2441
2454
|
has_access?: boolean | undefined;
|
|
2455
|
+
viewable?: boolean | undefined;
|
|
2442
2456
|
};
|
|
2443
2457
|
scenarios: {
|
|
2444
2458
|
has_access?: boolean | undefined;
|
|
2459
|
+
viewable?: boolean | undefined;
|
|
2445
2460
|
active_scenarios_limit?: number | undefined;
|
|
2446
2461
|
};
|
|
2447
2462
|
}>;
|
|
@@ -2456,14 +2471,17 @@ export declare const zodTierSchema: z.ZodObject<{
|
|
|
2456
2471
|
ask: {
|
|
2457
2472
|
has_access: boolean;
|
|
2458
2473
|
has_limit: boolean;
|
|
2474
|
+
viewable: boolean;
|
|
2459
2475
|
asks_limit?: number | undefined;
|
|
2460
2476
|
};
|
|
2461
2477
|
jobs: {
|
|
2462
2478
|
has_access: boolean;
|
|
2479
|
+
viewable: boolean;
|
|
2463
2480
|
active_jobs_limit?: number | undefined;
|
|
2464
2481
|
};
|
|
2465
2482
|
scenarios: {
|
|
2466
2483
|
has_access: boolean;
|
|
2484
|
+
viewable: boolean;
|
|
2467
2485
|
active_scenarios_limit?: number | undefined;
|
|
2468
2486
|
};
|
|
2469
2487
|
};
|
|
@@ -2481,13 +2499,16 @@ export declare const zodTierSchema: z.ZodObject<{
|
|
|
2481
2499
|
has_access?: boolean | undefined;
|
|
2482
2500
|
has_limit?: boolean | undefined;
|
|
2483
2501
|
asks_limit?: number | undefined;
|
|
2502
|
+
viewable?: boolean | undefined;
|
|
2484
2503
|
};
|
|
2485
2504
|
jobs: {
|
|
2486
2505
|
active_jobs_limit?: number | undefined;
|
|
2487
2506
|
has_access?: boolean | undefined;
|
|
2507
|
+
viewable?: boolean | undefined;
|
|
2488
2508
|
};
|
|
2489
2509
|
scenarios: {
|
|
2490
2510
|
has_access?: boolean | undefined;
|
|
2511
|
+
viewable?: boolean | undefined;
|
|
2491
2512
|
active_scenarios_limit?: number | undefined;
|
|
2492
2513
|
};
|
|
2493
2514
|
};
|
package/dist/types.js
CHANGED
|
@@ -366,15 +366,18 @@ exports.zodTierSchema = zod_1.z.object({
|
|
|
366
366
|
ask: zod_1.z.object({
|
|
367
367
|
has_access: zod_1.z.boolean().default(false),
|
|
368
368
|
has_limit: zod_1.z.boolean().default(false),
|
|
369
|
-
asks_limit: zod_1.z.number().optional(),
|
|
369
|
+
asks_limit: zod_1.z.number().optional(),
|
|
370
|
+
viewable: zod_1.z.boolean().default(true), // true if the user can view the ask results, false if the ask results are hidden from the user
|
|
370
371
|
}),
|
|
371
372
|
jobs: zod_1.z.object({
|
|
372
373
|
has_access: zod_1.z.boolean().default(false),
|
|
373
|
-
active_jobs_limit: zod_1.z.number().optional(),
|
|
374
|
+
active_jobs_limit: zod_1.z.number().optional(),
|
|
375
|
+
viewable: zod_1.z.boolean().default(true), // true if the user can view the ask results, false if the ask results are hidden from the user
|
|
374
376
|
}),
|
|
375
377
|
scenarios: zod_1.z.object({
|
|
376
378
|
has_access: zod_1.z.boolean().default(false),
|
|
377
|
-
active_scenarios_limit: zod_1.z.number().optional(),
|
|
379
|
+
active_scenarios_limit: zod_1.z.number().optional(),
|
|
380
|
+
viewable: zod_1.z.boolean().default(true), // true if the user can view the ask results, false if the ask results are hidden from the user
|
|
378
381
|
}),
|
|
379
382
|
}),
|
|
380
383
|
created_at: zod_1.z.number().optional(),
|
package/index.ts
CHANGED
|
@@ -459,20 +459,23 @@ export const MongoTierSchema = new Schema(
|
|
|
459
459
|
description: { type: String }, // optional description of the tier
|
|
460
460
|
features: {
|
|
461
461
|
events: {
|
|
462
|
-
has_access: { type: Boolean, default:
|
|
462
|
+
has_access: { type: Boolean, default: true }, // true if the tier has access to events data
|
|
463
463
|
},
|
|
464
464
|
ask: {
|
|
465
465
|
has_access: { type: Boolean, default: false }, // true if the tier has access to ask feature
|
|
466
466
|
has_limit: { type: Boolean, default: false }, // true if there is a limit on the number of asks for the tier
|
|
467
467
|
asks_limit: { type: Number }, // maximum number of asks allowed for the tier
|
|
468
|
+
viewable: { type: Boolean, default: true }, // true if the user can view the ask results, false if the ask results are hidden from the user
|
|
468
469
|
},
|
|
469
470
|
jobs: {
|
|
470
471
|
has_access: { type: Boolean, default: false }, // true if the tier has access to jobs feature
|
|
471
472
|
active_jobs_limit: { type: Number }, // maximum number of active jobs allowed for the tier
|
|
473
|
+
viewable: { type: Boolean, default: true }, // true if the user can view the job results, false if the job results are hidden from the user
|
|
472
474
|
},
|
|
473
475
|
scenarios: {
|
|
474
476
|
has_access: { type: Boolean, default: false }, // true if the tier has access to scenarios feature
|
|
475
477
|
active_scenarios_limit: { type: Number }, // maximum number of active scenarios allowed for the tier
|
|
478
|
+
viewable: { type: Boolean, default: true }, // true if the user can view the scenario results, false if the scenario results are hidden from the user
|
|
476
479
|
},
|
|
477
480
|
},
|
|
478
481
|
created_at: { type: Number, default: Date.now }, // creation date
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -425,14 +425,17 @@ export const zodTierSchema = z.object({
|
|
|
425
425
|
has_access: z.boolean().default(false), // true if the tier has access to ask feature
|
|
426
426
|
has_limit: z.boolean().default(false), // true if there is a limit on the number of asks for the tier
|
|
427
427
|
asks_limit: z.number().optional(), // maximum number of asks allowed for the tier
|
|
428
|
+
viewable: z.boolean().default(true), // true if the user can view the ask results, false if the ask results are hidden from the user
|
|
428
429
|
}),
|
|
429
430
|
jobs: z.object({
|
|
430
431
|
has_access: z.boolean().default(false), // true if the tier has access to jobs feature
|
|
431
432
|
active_jobs_limit: z.number().optional(), // maximum number of active jobs allowed for the tier
|
|
433
|
+
viewable: z.boolean().default(true), // true if the user can view the ask results, false if the ask results are hidden from the user
|
|
432
434
|
}),
|
|
433
435
|
scenarios: z.object({
|
|
434
436
|
has_access: z.boolean().default(false), // true if the tier has access to scenarios feature
|
|
435
437
|
active_scenarios_limit: z.number().optional(), // maximum number of active scenarios allowed for the tier
|
|
438
|
+
viewable: z.boolean().default(true), // true if the user can view the ask results, false if the ask results are hidden from the user
|
|
436
439
|
}),
|
|
437
440
|
}),
|
|
438
441
|
created_at: z.number().optional(), // creation date
|