asfur 1.0.126 → 1.0.127

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
@@ -791,6 +791,7 @@ export declare const MongoPredefinedQuerySchema: Schema<any, import("mongoose").
791
791
  query: string;
792
792
  geos: string[];
793
793
  geos_ids: any[];
794
+ user_id: string;
794
795
  created_at: number;
795
796
  updated_at: number;
796
797
  title?: string | null | undefined;
@@ -801,6 +802,7 @@ export declare const MongoPredefinedQuerySchema: Schema<any, import("mongoose").
801
802
  query: string;
802
803
  geos: string[];
803
804
  geos_ids: any[];
805
+ user_id: string;
804
806
  created_at: number;
805
807
  updated_at: number;
806
808
  title?: string | null | undefined;
@@ -811,6 +813,7 @@ export declare const MongoPredefinedQuerySchema: Schema<any, import("mongoose").
811
813
  query: string;
812
814
  geos: string[];
813
815
  geos_ids: any[];
816
+ user_id: string;
814
817
  created_at: number;
815
818
  updated_at: number;
816
819
  title?: string | null | undefined;
package/dist/index.js CHANGED
@@ -312,6 +312,7 @@ exports.MongoSendWhatsappSchema = new mongoose_1.Schema({
312
312
  toObject: { virtuals: true },
313
313
  });
314
314
  exports.MongoPredefinedQuerySchema = new mongoose_1.Schema({
315
+ user_id: { type: String, required: true },
315
316
  title: { type: String },
316
317
  query: { type: String, required: true },
317
318
  geos: { type: [String] },
package/dist/types.d.ts CHANGED
@@ -2065,6 +2065,7 @@ export declare const zodSendWhatsappSchema: z.ZodObject<{
2065
2065
  }>;
2066
2066
  export declare const zodPredefinedQuerySchema: z.ZodObject<{
2067
2067
  _id: z.ZodOptional<z.ZodString>;
2068
+ user_id: z.ZodString;
2068
2069
  title: z.ZodString;
2069
2070
  query: z.ZodString;
2070
2071
  geos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2116,6 +2117,7 @@ export declare const zodPredefinedQuerySchema: z.ZodObject<{
2116
2117
  start: number;
2117
2118
  end: number;
2118
2119
  };
2120
+ user_id: string;
2119
2121
  _id?: string | undefined;
2120
2122
  geos?: string[] | undefined;
2121
2123
  geos_ids?: (string | {
@@ -2136,6 +2138,7 @@ export declare const zodPredefinedQuerySchema: z.ZodObject<{
2136
2138
  start: number;
2137
2139
  end: number;
2138
2140
  };
2141
+ user_id: string;
2139
2142
  status?: "active" | "inactive" | undefined;
2140
2143
  _id?: string | undefined;
2141
2144
  geos?: string[] | undefined;
package/dist/types.js CHANGED
@@ -295,6 +295,7 @@ exports.zodSendWhatsappSchema = zod_1.z.object({
295
295
  });
296
296
  exports.zodPredefinedQuerySchema = zod_1.z.object({
297
297
  _id: zod_1.z.string().optional(),
298
+ user_id: zod_1.z.string().nonempty('User ID must be provided'),
298
299
  title: zod_1.z.string().nonempty('Predefined query title must be provided'),
299
300
  query: zod_1.z.string().nonempty('Predefined query must be provided'),
300
301
  geos: zod_1.z.array(zod_1.z.string()).optional(),
package/index.ts CHANGED
@@ -359,6 +359,7 @@ export const MongoSendWhatsappSchema = new Schema(
359
359
 
360
360
  export const MongoPredefinedQuerySchema = new Schema(
361
361
  {
362
+ user_id: { type: String, required: true }, // user identifier
362
363
  title: { type: String }, // title of the predefined query
363
364
  query: { type: String, required: true }, // the actual predefined query
364
365
  geos: { type: [String] }, // array of geo strings
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asfur",
3
- "version": "1.0.126",
3
+ "version": "1.0.127",
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
@@ -348,6 +348,7 @@ export const zodSendWhatsappSchema = z.object({
348
348
 
349
349
  export const zodPredefinedQuerySchema = z.object({
350
350
  _id: z.string().optional(),
351
+ user_id: z.string().nonempty('User ID must be provided'), // user identifier
351
352
  title: z.string().nonempty('Predefined query title must be provided'), // title of the predefined query
352
353
  query: z.string().nonempty('Predefined query must be provided'), // the actual predefined query
353
354
  geos: z.array(z.string()).optional(), // array of geo strings