asfur 1.0.129 → 1.0.131
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 +28 -0
- package/dist/index.js +11 -1
- package/dist/types.d.ts +21 -0
- package/dist/types.js +8 -1
- package/index.ts +14 -0
- package/package.json +1 -1
- package/types.ts +10 -0
package/dist/index.d.ts
CHANGED
|
@@ -867,3 +867,31 @@ export declare const MongoGeoSelectionGroupSchema: Schema<any, import("mongoose"
|
|
|
867
867
|
} & {
|
|
868
868
|
__v: number;
|
|
869
869
|
}>;
|
|
870
|
+
export declare const MongoFavoriteEventSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
871
|
+
versionKey: false;
|
|
872
|
+
toJSON: {
|
|
873
|
+
virtuals: true;
|
|
874
|
+
};
|
|
875
|
+
toObject: {
|
|
876
|
+
virtuals: true;
|
|
877
|
+
};
|
|
878
|
+
}, {
|
|
879
|
+
user_id: string;
|
|
880
|
+
created_at: number;
|
|
881
|
+
updated_at: number;
|
|
882
|
+
event_id: string;
|
|
883
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
884
|
+
user_id: string;
|
|
885
|
+
created_at: number;
|
|
886
|
+
updated_at: number;
|
|
887
|
+
event_id: string;
|
|
888
|
+
}>, {}> & import("mongoose").FlatRecord<{
|
|
889
|
+
user_id: string;
|
|
890
|
+
created_at: number;
|
|
891
|
+
updated_at: number;
|
|
892
|
+
event_id: string;
|
|
893
|
+
}> & {
|
|
894
|
+
_id: import("mongoose").Types.ObjectId;
|
|
895
|
+
} & {
|
|
896
|
+
__v: number;
|
|
897
|
+
}>;
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.MongoGeoSelectionGroupSchema = exports.MongoPredefinedQuerySchema = exports.MongoSendWhatsappSchema = exports.MongoSendEmailSchema = exports.MongoMessageSchema = exports.MongoHeatmapSchema = exports.MongoScenarioScoreSchema = exports.MongoScenarioSchema = exports.MongoNotificationSchema = exports.MongoReportSchema = exports.MongoApiKeySchema = exports.MongoJobSchema = exports.MongoConversationSchema = exports.MongoUserSettingsSchema = exports.MongoQuerySchema = exports.MongoInstructionsSchema = void 0;
|
|
17
|
+
exports.MongoFavoriteEventSchema = exports.MongoGeoSelectionGroupSchema = exports.MongoPredefinedQuerySchema = exports.MongoSendWhatsappSchema = exports.MongoSendEmailSchema = exports.MongoMessageSchema = exports.MongoHeatmapSchema = exports.MongoScenarioScoreSchema = exports.MongoScenarioSchema = exports.MongoNotificationSchema = exports.MongoReportSchema = exports.MongoApiKeySchema = exports.MongoJobSchema = exports.MongoConversationSchema = exports.MongoUserSettingsSchema = exports.MongoQuerySchema = exports.MongoInstructionsSchema = void 0;
|
|
18
18
|
// Export types for consumers
|
|
19
19
|
__exportStar(require("./types"), exports);
|
|
20
20
|
const mongoose_1 = require("mongoose");
|
|
@@ -346,3 +346,13 @@ exports.MongoGeoSelectionGroupSchema = new mongoose_1.Schema({
|
|
|
346
346
|
toJSON: { virtuals: true },
|
|
347
347
|
toObject: { virtuals: true },
|
|
348
348
|
});
|
|
349
|
+
exports.MongoFavoriteEventSchema = new mongoose_1.Schema({
|
|
350
|
+
user_id: { type: String, required: true },
|
|
351
|
+
event_id: { type: String, required: true },
|
|
352
|
+
created_at: { type: Number, default: Date.now },
|
|
353
|
+
updated_at: { type: Number, default: Date.now }, // last update date
|
|
354
|
+
}, {
|
|
355
|
+
versionKey: false,
|
|
356
|
+
toJSON: { virtuals: true },
|
|
357
|
+
toObject: { virtuals: true },
|
|
358
|
+
});
|
package/dist/types.d.ts
CHANGED
|
@@ -2275,6 +2275,25 @@ export declare const zodGeoSelectionGroupSchema: z.ZodObject<{
|
|
|
2275
2275
|
lng?: number | undefined;
|
|
2276
2276
|
}[] | undefined;
|
|
2277
2277
|
}>;
|
|
2278
|
+
export declare const zodFavoriteEventSchema: z.ZodObject<{
|
|
2279
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
2280
|
+
user_id: z.ZodString;
|
|
2281
|
+
event_id: z.ZodString;
|
|
2282
|
+
created_at: z.ZodOptional<z.ZodNumber>;
|
|
2283
|
+
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
2284
|
+
}, "strip", z.ZodTypeAny, {
|
|
2285
|
+
user_id: string;
|
|
2286
|
+
event_id: string;
|
|
2287
|
+
_id?: string | undefined;
|
|
2288
|
+
created_at?: number | undefined;
|
|
2289
|
+
updated_at?: number | undefined;
|
|
2290
|
+
}, {
|
|
2291
|
+
user_id: string;
|
|
2292
|
+
event_id: string;
|
|
2293
|
+
_id?: string | undefined;
|
|
2294
|
+
created_at?: number | undefined;
|
|
2295
|
+
updated_at?: number | undefined;
|
|
2296
|
+
}>;
|
|
2278
2297
|
/**
|
|
2279
2298
|
* 'approved' - active and approved sources,
|
|
2280
2299
|
* 'back_to_business' - sources that were paused and now resumed,
|
|
@@ -2302,6 +2321,8 @@ export type HeatmapType = z.infer<typeof zodHeatmapSchema>;
|
|
|
2302
2321
|
export type SendEmailType = z.infer<typeof zodSendEmailSchema>;
|
|
2303
2322
|
export type SendWhatsappType = z.infer<typeof zodSendWhatsappSchema>;
|
|
2304
2323
|
export type PredefinedQueryType = z.infer<typeof zodPredefinedQuerySchema>;
|
|
2324
|
+
export type GeoSelectionGroupType = z.infer<typeof zodGeoSelectionGroupSchema>;
|
|
2325
|
+
export type FavoriteEventType = z.infer<typeof zodFavoriteEventSchema>;
|
|
2305
2326
|
export type UserPublicMetadata = {
|
|
2306
2327
|
is_admin?: boolean;
|
|
2307
2328
|
regions?: {
|
package/dist/types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zodGeoSelectionGroupSchema = exports.zodPredefinedQuerySchema = exports.zodSendWhatsappSchema = exports.zodSendEmailSchema = exports.zodScenarioSchema = exports.zodScenarioScoreSchema = exports.scenarioScoreTypeList = exports.zodNotificationSchema = exports.notificationPriorityList = exports.zodReportSchema = exports.reportProcessStatusList = exports.zodApiKeySchema = exports.zodCronScheduleResponseSchema = exports.zodMessageSchema = exports.zodHeatmapSchema = exports.zodJobSchema = exports.zodConversationSchema = exports.zodUserSettingsSchema = exports.zodInstructionsSchema = exports.zodQuerySchema = exports.zodAlertSchema = exports.zodAbsoluteTimeRangeSchema = exports.zodRelativeTimeRangeSchema = exports.requestedContentList = exports.relativeTimeRangeList = exports.jobRunStatusList = exports.generalStatusList = void 0;
|
|
3
|
+
exports.zodFavoriteEventSchema = exports.zodGeoSelectionGroupSchema = exports.zodPredefinedQuerySchema = exports.zodSendWhatsappSchema = exports.zodSendEmailSchema = exports.zodScenarioSchema = exports.zodScenarioScoreSchema = exports.scenarioScoreTypeList = exports.zodNotificationSchema = exports.notificationPriorityList = exports.zodReportSchema = exports.reportProcessStatusList = exports.zodApiKeySchema = exports.zodCronScheduleResponseSchema = exports.zodMessageSchema = exports.zodHeatmapSchema = exports.zodJobSchema = exports.zodConversationSchema = exports.zodUserSettingsSchema = exports.zodInstructionsSchema = exports.zodQuerySchema = exports.zodAlertSchema = exports.zodAbsoluteTimeRangeSchema = exports.zodRelativeTimeRangeSchema = exports.requestedContentList = exports.relativeTimeRangeList = exports.jobRunStatusList = exports.generalStatusList = void 0;
|
|
4
4
|
const harvester_sdk_1 = require("harvester_sdk");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.generalStatusList = ['active', 'inactive'];
|
|
@@ -321,3 +321,10 @@ exports.zodGeoSelectionGroupSchema = zod_1.z.object({
|
|
|
321
321
|
geo_selections_ids: zod_1.z.array(zod_1.z.string()).optional(),
|
|
322
322
|
geo_selections: harvester_sdk_1.zodGeoSelectionSchema.array().optional(), // array of geo selection objects
|
|
323
323
|
});
|
|
324
|
+
exports.zodFavoriteEventSchema = zod_1.z.object({
|
|
325
|
+
_id: zod_1.z.string().optional(),
|
|
326
|
+
user_id: zod_1.z.string(),
|
|
327
|
+
event_id: zod_1.z.string(),
|
|
328
|
+
created_at: zod_1.z.number().optional(),
|
|
329
|
+
updated_at: zod_1.z.number().optional(), // last update date
|
|
330
|
+
});
|
package/index.ts
CHANGED
|
@@ -400,3 +400,17 @@ export const MongoGeoSelectionGroupSchema = new Schema(
|
|
|
400
400
|
},
|
|
401
401
|
);
|
|
402
402
|
|
|
403
|
+
export const MongoFavoriteEventSchema = new Schema(
|
|
404
|
+
{
|
|
405
|
+
user_id: { type: String, required: true }, // user identifier
|
|
406
|
+
event_id: { type: String, required: true }, // event identifier
|
|
407
|
+
created_at: { type: Number, default: Date.now }, // creation date
|
|
408
|
+
updated_at: { type: Number, default: Date.now }, // last update date
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
versionKey: false,
|
|
412
|
+
toJSON: { virtuals: true },
|
|
413
|
+
toObject: { virtuals: true },
|
|
414
|
+
},
|
|
415
|
+
);
|
|
416
|
+
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -376,6 +376,14 @@ export const zodGeoSelectionGroupSchema = z.object({
|
|
|
376
376
|
geo_selections: zodGeoSelectionSchema.array().optional(), // array of geo selection objects
|
|
377
377
|
});
|
|
378
378
|
|
|
379
|
+
export const zodFavoriteEventSchema = z.object({
|
|
380
|
+
_id: z.string().optional(),
|
|
381
|
+
user_id: z.string(), // user identifier
|
|
382
|
+
event_id: z.string(), // event identifier
|
|
383
|
+
created_at: z.number().optional(), // creation date
|
|
384
|
+
updated_at: z.number().optional(), // last update date
|
|
385
|
+
});
|
|
386
|
+
|
|
379
387
|
/**
|
|
380
388
|
* 'approved' - active and approved sources,
|
|
381
389
|
* 'back_to_business' - sources that were paused and now resumed,
|
|
@@ -408,6 +416,8 @@ export type HeatmapType = z.infer<typeof zodHeatmapSchema>;
|
|
|
408
416
|
export type SendEmailType = z.infer<typeof zodSendEmailSchema>;
|
|
409
417
|
export type SendWhatsappType = z.infer<typeof zodSendWhatsappSchema>;
|
|
410
418
|
export type PredefinedQueryType = z.infer<typeof zodPredefinedQuerySchema>;
|
|
419
|
+
export type GeoSelectionGroupType = z.infer<typeof zodGeoSelectionGroupSchema>;
|
|
420
|
+
export type FavoriteEventType = z.infer<typeof zodFavoriteEventSchema>;
|
|
411
421
|
|
|
412
422
|
export type UserPublicMetadata = {
|
|
413
423
|
is_admin?: boolean;
|