asfur 1.0.133 → 1.0.135

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
@@ -968,6 +968,9 @@ export declare const MongoUserRequestSchema: Schema<any, import("mongoose").Mode
968
968
  request_type: string;
969
969
  request: string;
970
970
  status?: string | null | undefined;
971
+ title?: string | null | undefined;
972
+ user_name?: string | null | undefined;
973
+ where?: string | null | undefined;
971
974
  file_url?: string | null | undefined;
972
975
  admin_notes?: string | null | undefined;
973
976
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
@@ -977,6 +980,9 @@ export declare const MongoUserRequestSchema: Schema<any, import("mongoose").Mode
977
980
  request_type: string;
978
981
  request: string;
979
982
  status?: string | null | undefined;
983
+ title?: string | null | undefined;
984
+ user_name?: string | null | undefined;
985
+ where?: string | null | undefined;
980
986
  file_url?: string | null | undefined;
981
987
  admin_notes?: string | null | undefined;
982
988
  }>, {}> & import("mongoose").FlatRecord<{
@@ -986,6 +992,9 @@ export declare const MongoUserRequestSchema: Schema<any, import("mongoose").Mode
986
992
  request_type: string;
987
993
  request: string;
988
994
  status?: string | null | undefined;
995
+ title?: string | null | undefined;
996
+ user_name?: string | null | undefined;
997
+ where?: string | null | undefined;
989
998
  file_url?: string | null | undefined;
990
999
  admin_notes?: string | null | undefined;
991
1000
  }> & {
package/dist/index.js CHANGED
@@ -372,7 +372,10 @@ exports.MongoPolygonSchema = new mongoose_1.Schema({
372
372
  });
373
373
  exports.MongoUserRequestSchema = new mongoose_1.Schema({
374
374
  user_id: { type: String, required: true },
375
+ user_name: { type: String },
376
+ title: { type: String },
375
377
  request_type: { type: String, required: true },
378
+ where: { type: String },
376
379
  request: { type: String, required: true },
377
380
  file_url: { type: String },
378
381
  created_at: { type: Number, default: Date.now },
package/dist/types.d.ts CHANGED
@@ -2328,7 +2328,10 @@ export declare const zodPolygonSchema: z.ZodObject<{
2328
2328
  export declare const zodUserRequestSchema: z.ZodObject<{
2329
2329
  _id: z.ZodOptional<z.ZodString>;
2330
2330
  user_id: z.ZodString;
2331
+ user_name: z.ZodOptional<z.ZodString>;
2331
2332
  request_type: z.ZodString;
2333
+ where: z.ZodOptional<z.ZodString>;
2334
+ title: z.ZodOptional<z.ZodString>;
2332
2335
  request: z.ZodString;
2333
2336
  file_url: z.ZodOptional<z.ZodString>;
2334
2337
  created_at: z.ZodOptional<z.ZodNumber>;
@@ -2340,9 +2343,12 @@ export declare const zodUserRequestSchema: z.ZodObject<{
2340
2343
  request_type: string;
2341
2344
  request: string;
2342
2345
  status?: string | undefined;
2346
+ title?: string | undefined;
2343
2347
  _id?: string | undefined;
2344
2348
  created_at?: number | undefined;
2345
2349
  updated_at?: number | undefined;
2350
+ user_name?: string | undefined;
2351
+ where?: string | undefined;
2346
2352
  file_url?: string | undefined;
2347
2353
  admin_notes?: string | undefined;
2348
2354
  }, {
@@ -2350,9 +2356,12 @@ export declare const zodUserRequestSchema: z.ZodObject<{
2350
2356
  request_type: string;
2351
2357
  request: string;
2352
2358
  status?: string | undefined;
2359
+ title?: string | undefined;
2353
2360
  _id?: string | undefined;
2354
2361
  created_at?: number | undefined;
2355
2362
  updated_at?: number | undefined;
2363
+ user_name?: string | undefined;
2364
+ where?: string | undefined;
2356
2365
  file_url?: string | undefined;
2357
2366
  admin_notes?: string | undefined;
2358
2367
  }>;
package/dist/types.js CHANGED
@@ -344,7 +344,10 @@ exports.zodPolygonSchema = zod_1.z.object({
344
344
  exports.zodUserRequestSchema = zod_1.z.object({
345
345
  _id: zod_1.z.string().optional(),
346
346
  user_id: zod_1.z.string(),
347
+ user_name: zod_1.z.string().optional(),
347
348
  request_type: zod_1.z.string(),
349
+ where: zod_1.z.string().optional(),
350
+ title: zod_1.z.string().optional(),
348
351
  request: zod_1.z.string(),
349
352
  file_url: zod_1.z.string().url().optional(),
350
353
  created_at: zod_1.z.number().optional(),
package/index.ts CHANGED
@@ -435,7 +435,10 @@ export const MongoPolygonSchema = new Schema(
435
435
  export const MongoUserRequestSchema = new Schema(
436
436
  {
437
437
  user_id: { type: String, required: true }, // user identifier
438
+ user_name: { type: String }, // optional user name for better understanding of the request context
439
+ title: { type: String }, // optional title for the user request or feedback
438
440
  request_type: { type: String, required: true },
441
+ where: { type: String }, // where the user encountered the issue or has the request (e.g., "dashboard", "API", "mobile app")
439
442
  request: { type: String, required: true }, // user request or feedback
440
443
  file_url: { type: String }, // optional URL for any file attached to the request
441
444
  created_at: { type: Number, default: Date.now }, // creation date
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asfur",
3
- "version": "1.0.133",
3
+ "version": "1.0.135",
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
@@ -401,7 +401,10 @@ export const zodPolygonSchema = z.object({
401
401
  export const zodUserRequestSchema = z.object({
402
402
  _id: z.string().optional(),
403
403
  user_id: z.string(), // user identifier
404
+ user_name: z.string().optional(), // optional user name for better understanding of the request context
404
405
  request_type: z.string(),
406
+ where: z.string().optional(), // optional field to specify where the user request or feedback is related to (e.g., "dashboard", "mobile_app", "specific_feature")
407
+ title: z.string().optional(), // optional title for the user request or feedback
405
408
  request: z.string(), // user request or feedback
406
409
  file_url: z.string().url().optional(), // optional URL for any file attached to the request
407
410
  created_at: z.number().optional(), // creation date