asfur 1.0.138 → 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 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;
@@ -1041,6 +1042,7 @@ export declare const MongoTierSchema: Schema<any, import("mongoose").Model<any,
1041
1042
  updated_at: number;
1042
1043
  name: string;
1043
1044
  description?: string | null | undefined;
1045
+ badge?: string | null | undefined;
1044
1046
  features?: {
1045
1047
  events?: {
1046
1048
  has_access: boolean;
@@ -1067,6 +1069,7 @@ export declare const MongoTierSchema: Schema<any, import("mongoose").Model<any,
1067
1069
  updated_at: number;
1068
1070
  name: string;
1069
1071
  description?: string | null | undefined;
1072
+ badge?: string | null | undefined;
1070
1073
  features?: {
1071
1074
  events?: {
1072
1075
  has_access: boolean;
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
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>;
@@ -2489,6 +2490,7 @@ export declare const zodTierSchema: z.ZodObject<{
2489
2490
  created_at?: number | undefined;
2490
2491
  updated_at?: number | undefined;
2491
2492
  description?: string | undefined;
2493
+ badge?: string | undefined;
2492
2494
  }, {
2493
2495
  name: string;
2494
2496
  features: {
@@ -2516,6 +2518,7 @@ export declare const zodTierSchema: z.ZodObject<{
2516
2518
  created_at?: number | undefined;
2517
2519
  updated_at?: number | undefined;
2518
2520
  description?: string | undefined;
2521
+ badge?: string | undefined;
2519
2522
  }>;
2520
2523
  /**
2521
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
@@ -372,12 +373,12 @@ exports.zodTierSchema = zod_1.z.object({
372
373
  jobs: zod_1.z.object({
373
374
  has_access: zod_1.z.boolean().default(false),
374
375
  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
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
376
377
  }),
377
378
  scenarios: zod_1.z.object({
378
379
  has_access: zod_1.z.boolean().default(false),
379
380
  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
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
381
382
  }),
382
383
  }),
383
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asfur",
3
- "version": "1.0.138",
3
+ "version": "1.0.139",
4
4
  "description": "SDK for interacting with the Asfur API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
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
@@ -430,12 +431,12 @@ export const zodTierSchema = z.object({
430
431
  jobs: z.object({
431
432
  has_access: z.boolean().default(false), // true if the tier has access to jobs feature
432
433
  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
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
434
435
  }),
435
436
  scenarios: z.object({
436
437
  has_access: z.boolean().default(false), // true if the tier has access to scenarios feature
437
438
  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
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
439
440
  }),
440
441
  }),
441
442
  created_at: z.number().optional(), // creation date