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