@little-samo/samo-ai-sdk 0.1.1-rv7 → 0.1.2

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.
@@ -1,8 +1,10 @@
1
+ import { DayOfWeek } from '@little-samo/samo-ai/common';
1
2
  import { z } from 'zod';
2
3
  import { LocationConfig } from '../../models/locations/location.config';
3
4
  import { LocationListItemDto, LocationPrivateDto } from './location';
4
5
  import { LocationMessageDto } from './location.message';
5
6
  import { LocationPresetDto } from './location.preset';
7
+ import { LocationScheduledMessageDto } from './location.scheduled-message';
6
8
  export declare const UserLocationsQuerySchema: z.ZodObject<{
7
9
  cursor: z.ZodOptional<z.ZodString>;
8
10
  limit: z.ZodDefault<z.ZodNumber>;
@@ -22,41 +24,41 @@ export interface UserLocationsResponseDto {
22
24
  };
23
25
  }
24
26
  export declare const GetLocationParamsSchema: z.ZodObject<{
25
- locationId: z.ZodEffects<z.ZodString, bigint, string>;
27
+ locationId: z.ZodBigInt;
26
28
  }, "strip", z.ZodTypeAny, {
27
29
  locationId: bigint;
28
30
  }, {
29
- locationId: string;
31
+ locationId: bigint;
30
32
  }>;
31
33
  export type GetLocationParamsDto = z.infer<typeof GetLocationParamsSchema>;
32
34
  export interface GetLocationResponseDto {
33
35
  location: LocationListItemDto;
34
36
  }
35
37
  export declare const GetLocationPrivateParamsSchema: z.ZodObject<{
36
- locationId: z.ZodEffects<z.ZodString, bigint, string>;
38
+ locationId: z.ZodBigInt;
37
39
  }, "strip", z.ZodTypeAny, {
38
40
  locationId: bigint;
39
41
  }, {
40
- locationId: string;
42
+ locationId: bigint;
41
43
  }>;
42
44
  export type GetLocationPrivateParamsDto = z.infer<typeof GetLocationPrivateParamsSchema>;
43
45
  export interface GetLocationPrivateResponseDto {
44
46
  location: LocationPrivateDto;
45
47
  }
46
48
  export declare const MarkLocationAsReadParamsSchema: z.ZodObject<{
47
- locationId: z.ZodEffects<z.ZodString, bigint, string>;
49
+ locationId: z.ZodBigInt;
48
50
  }, "strip", z.ZodTypeAny, {
49
51
  locationId: bigint;
50
52
  }, {
51
- locationId: string;
53
+ locationId: bigint;
52
54
  }>;
53
55
  export type MarkLocationAsReadParamsDto = z.infer<typeof MarkLocationAsReadParamsSchema>;
54
56
  export declare const LocationUnreadCountParamsSchema: z.ZodObject<{
55
- locationId: z.ZodEffects<z.ZodString, bigint, string>;
57
+ locationId: z.ZodBigInt;
56
58
  }, "strip", z.ZodTypeAny, {
57
59
  locationId: bigint;
58
60
  }, {
59
- locationId: string;
61
+ locationId: bigint;
60
62
  }>;
61
63
  export type LocationUnreadCountParamsDto = z.infer<typeof LocationUnreadCountParamsSchema>;
62
64
  export interface LocationUnreadCountResponseDto {
@@ -79,11 +81,11 @@ export interface LocationsUnreadCountResponseDto {
79
81
  data: LocationUnreadCountItemDto[];
80
82
  }
81
83
  export declare const JoinAgentToLocationParamsSchema: z.ZodObject<{
82
- locationId: z.ZodEffects<z.ZodString, bigint, string>;
84
+ locationId: z.ZodBigInt;
83
85
  }, "strip", z.ZodTypeAny, {
84
86
  locationId: bigint;
85
87
  }, {
86
- locationId: string;
88
+ locationId: bigint;
87
89
  }>;
88
90
  export type JoinAgentToLocationParamsDto = z.infer<typeof JoinAgentToLocationParamsSchema>;
89
91
  export declare const JoinAgentToLocationBodySchema: z.ZodObject<{
@@ -110,11 +112,11 @@ export declare const JoinAgentToLocationToolSchema: z.ZodObject<{
110
112
  }>;
111
113
  export type JoinAgentToLocationToolDto = z.infer<typeof JoinAgentToLocationToolSchema>;
112
114
  export declare const RemoveAgentFromLocationParamsSchema: z.ZodObject<{
113
- locationId: z.ZodEffects<z.ZodString, bigint, string>;
115
+ locationId: z.ZodBigInt;
114
116
  }, "strip", z.ZodTypeAny, {
115
117
  locationId: bigint;
116
118
  }, {
117
- locationId: string;
119
+ locationId: bigint;
118
120
  }>;
119
121
  export type RemoveAgentFromLocationParamsDto = z.infer<typeof RemoveAgentFromLocationParamsSchema>;
120
122
  export declare const RemoveAgentFromLocationBodySchema: z.ZodObject<{
@@ -382,3 +384,135 @@ export type GetAgentDmLocationDto = z.infer<typeof GetAgentDmLocationQuerySchema
382
384
  export interface GetAgentDmLocationResponseDto {
383
385
  location: LocationPrivateDto;
384
386
  }
387
+ export declare const GetLocationScheduledMessagesParamsSchema: z.ZodObject<{
388
+ locationId: z.ZodBigInt;
389
+ }, "strip", z.ZodTypeAny, {
390
+ locationId: bigint;
391
+ }, {
392
+ locationId: bigint;
393
+ }>;
394
+ export type GetLocationScheduledMessagesParamsDto = z.infer<typeof GetLocationScheduledMessagesParamsSchema>;
395
+ export interface GetLocationScheduledMessagesResponseDto {
396
+ scheduledMessages: LocationScheduledMessageDto[];
397
+ }
398
+ export declare const CreateLocationScheduledMessageParamsSchema: z.ZodObject<{
399
+ locationId: z.ZodBigInt;
400
+ }, "strip", z.ZodTypeAny, {
401
+ locationId: bigint;
402
+ }, {
403
+ locationId: bigint;
404
+ }>;
405
+ export type CreateLocationScheduledMessageParamsDto = z.infer<typeof CreateLocationScheduledMessageParamsSchema>;
406
+ export declare const CreateLocationScheduledMessageBodySchema: z.ZodObject<{
407
+ repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
408
+ repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
409
+ } & {
410
+ message: z.ZodString;
411
+ }, "strip", z.ZodTypeAny, {
412
+ message: string;
413
+ repeatTimesOfDay: string[];
414
+ repeatDaysOfWeek: DayOfWeek[];
415
+ }, {
416
+ message: string;
417
+ repeatTimesOfDay: string[];
418
+ repeatDaysOfWeek?: DayOfWeek[] | undefined;
419
+ }>;
420
+ export type CreateLocationScheduledMessageBodyDto = z.infer<typeof CreateLocationScheduledMessageBodySchema>;
421
+ export interface CreateLocationScheduledMessageResponseDto {
422
+ scheduledMessage: LocationScheduledMessageDto;
423
+ }
424
+ export declare const UpdateLocationScheduledMessageParamsSchema: z.ZodObject<{
425
+ locationId: z.ZodBigInt;
426
+ messageId: z.ZodString;
427
+ }, "strip", z.ZodTypeAny, {
428
+ locationId: bigint;
429
+ messageId: string;
430
+ }, {
431
+ locationId: bigint;
432
+ messageId: string;
433
+ }>;
434
+ export type UpdateLocationScheduledMessageParamsDto = z.infer<typeof UpdateLocationScheduledMessageParamsSchema>;
435
+ export declare const UpdateLocationScheduledMessageBodySchema: z.ZodObject<{
436
+ repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
437
+ repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
438
+ } & {
439
+ message: z.ZodOptional<z.ZodString>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ repeatTimesOfDay: string[];
442
+ repeatDaysOfWeek: DayOfWeek[];
443
+ message?: string | undefined;
444
+ }, {
445
+ repeatTimesOfDay: string[];
446
+ message?: string | undefined;
447
+ repeatDaysOfWeek?: DayOfWeek[] | undefined;
448
+ }>;
449
+ export type UpdateLocationScheduledMessageBodyDto = z.infer<typeof UpdateLocationScheduledMessageBodySchema>;
450
+ export interface UpdateLocationScheduledMessageResponseDto {
451
+ scheduledMessage: LocationScheduledMessageDto;
452
+ }
453
+ export declare const DeleteLocationScheduledMessageParamsSchema: z.ZodObject<{
454
+ locationId: z.ZodBigInt;
455
+ messageId: z.ZodString;
456
+ }, "strip", z.ZodTypeAny, {
457
+ locationId: bigint;
458
+ messageId: string;
459
+ }, {
460
+ locationId: bigint;
461
+ messageId: string;
462
+ }>;
463
+ export type DeleteLocationScheduledMessageParamsDto = z.infer<typeof DeleteLocationScheduledMessageParamsSchema>;
464
+ export interface DeleteLocationScheduledMessageResponseDto {
465
+ deleted: boolean;
466
+ }
467
+ export declare const CreateLocationScheduledMessageToolSchema: z.ZodObject<{
468
+ locationId: z.ZodBigInt;
469
+ } & {
470
+ repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
471
+ repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
472
+ } & {
473
+ message: z.ZodString;
474
+ }, "strip", z.ZodTypeAny, {
475
+ message: string;
476
+ locationId: bigint;
477
+ repeatTimesOfDay: string[];
478
+ repeatDaysOfWeek: DayOfWeek[];
479
+ }, {
480
+ message: string;
481
+ locationId: bigint;
482
+ repeatTimesOfDay: string[];
483
+ repeatDaysOfWeek?: DayOfWeek[] | undefined;
484
+ }>;
485
+ export type CreateLocationScheduledMessageToolDto = z.infer<typeof CreateLocationScheduledMessageToolSchema>;
486
+ export declare const UpdateLocationScheduledMessageToolSchema: z.ZodObject<{
487
+ locationId: z.ZodBigInt;
488
+ } & {
489
+ repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
490
+ repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
491
+ } & {
492
+ messageId: z.ZodString;
493
+ message: z.ZodOptional<z.ZodString>;
494
+ }, "strip", z.ZodTypeAny, {
495
+ locationId: bigint;
496
+ repeatTimesOfDay: string[];
497
+ repeatDaysOfWeek: DayOfWeek[];
498
+ messageId: string;
499
+ message?: string | undefined;
500
+ }, {
501
+ locationId: bigint;
502
+ repeatTimesOfDay: string[];
503
+ messageId: string;
504
+ message?: string | undefined;
505
+ repeatDaysOfWeek?: DayOfWeek[] | undefined;
506
+ }>;
507
+ export type UpdateLocationScheduledMessageToolDto = z.infer<typeof UpdateLocationScheduledMessageToolSchema>;
508
+ export declare const DeleteLocationScheduledMessageToolSchema: z.ZodObject<{
509
+ locationId: z.ZodBigInt;
510
+ messageId: z.ZodString;
511
+ }, "strip", z.ZodTypeAny, {
512
+ locationId: bigint;
513
+ messageId: string;
514
+ }, {
515
+ locationId: bigint;
516
+ messageId: string;
517
+ }>;
518
+ export type DeleteLocationScheduledMessageToolDto = z.infer<typeof DeleteLocationScheduledMessageToolSchema>;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetAgentDmLocationQuerySchema = exports.GetLocationHelperLocationQuerySchema = exports.GetAgentHelperLocationQuerySchema = exports.LocationUpdateConfigSchema = exports.CreateLocationFromPresetSchema = exports.LocationPresetsPaginationQuerySchema = exports.RemoveAgentFromLocationToolSchema = exports.RemoveAgentFromLocationBodySchema = exports.RemoveAgentFromLocationParamsSchema = exports.JoinAgentToLocationToolSchema = exports.JoinAgentToLocationBodySchema = exports.JoinAgentToLocationParamsSchema = exports.LocationsUnreadCountQuerySchema = exports.LocationUnreadCountParamsSchema = exports.MarkLocationAsReadParamsSchema = exports.GetLocationPrivateParamsSchema = exports.GetLocationParamsSchema = exports.UserLocationsQuerySchema = void 0;
3
+ exports.DeleteLocationScheduledMessageToolSchema = exports.UpdateLocationScheduledMessageToolSchema = exports.CreateLocationScheduledMessageToolSchema = exports.DeleteLocationScheduledMessageParamsSchema = exports.UpdateLocationScheduledMessageBodySchema = exports.UpdateLocationScheduledMessageParamsSchema = exports.CreateLocationScheduledMessageBodySchema = exports.CreateLocationScheduledMessageParamsSchema = exports.GetLocationScheduledMessagesParamsSchema = exports.GetAgentDmLocationQuerySchema = exports.GetLocationHelperLocationQuerySchema = exports.GetAgentHelperLocationQuerySchema = exports.LocationUpdateConfigSchema = exports.CreateLocationFromPresetSchema = exports.LocationPresetsPaginationQuerySchema = exports.RemoveAgentFromLocationToolSchema = exports.RemoveAgentFromLocationBodySchema = exports.RemoveAgentFromLocationParamsSchema = exports.JoinAgentToLocationToolSchema = exports.JoinAgentToLocationBodySchema = exports.JoinAgentToLocationParamsSchema = exports.LocationsUnreadCountQuerySchema = exports.LocationUnreadCountParamsSchema = exports.MarkLocationAsReadParamsSchema = exports.GetLocationPrivateParamsSchema = exports.GetLocationParamsSchema = exports.UserLocationsQuerySchema = void 0;
4
+ const common_1 = require("@little-samo/samo-ai/common");
4
5
  const zod_1 = require("zod");
5
6
  const location_config_1 = require("../../models/locations/location.config");
6
7
  exports.UserLocationsQuerySchema = zod_1.z.object({
@@ -13,27 +14,27 @@ exports.UserLocationsQuerySchema = zod_1.z.object({
13
14
  .describe('Number of locations to return'),
14
15
  });
15
16
  exports.GetLocationParamsSchema = zod_1.z.object({
16
- locationId: zod_1.z.string().transform((val) => BigInt(val)),
17
+ locationId: zod_1.z.coerce.bigint(),
17
18
  });
18
19
  exports.GetLocationPrivateParamsSchema = zod_1.z.object({
19
- locationId: zod_1.z.string().transform((val) => BigInt(val)),
20
+ locationId: zod_1.z.coerce.bigint(),
20
21
  });
21
22
  exports.MarkLocationAsReadParamsSchema = zod_1.z.object({
22
- locationId: zod_1.z.string().transform((val) => BigInt(val)),
23
+ locationId: zod_1.z.coerce.bigint(),
23
24
  });
24
25
  exports.LocationUnreadCountParamsSchema = zod_1.z.object({
25
- locationId: zod_1.z.string().transform((val) => BigInt(val)),
26
+ locationId: zod_1.z.coerce.bigint(),
26
27
  });
27
28
  exports.LocationsUnreadCountQuerySchema = zod_1.z.object({
28
29
  locationIds: zod_1.z
29
30
  .string()
30
- .transform((val) => val.split(',').map((id) => BigInt(id.trim())))
31
+ .transform((val) => val.split(',').map((id) => zod_1.z.coerce.bigint().parse(id.trim())))
31
32
  .refine((arr) => arr.length > 0 && arr.length <= 10, {
32
33
  message: 'locationIds must contain 1-10 location IDs',
33
34
  }),
34
35
  });
35
36
  exports.JoinAgentToLocationParamsSchema = zod_1.z.object({
36
- locationId: zod_1.z.string().transform((val) => BigInt(val)),
37
+ locationId: zod_1.z.coerce.bigint(),
37
38
  });
38
39
  exports.JoinAgentToLocationBodySchema = zod_1.z.object({
39
40
  agentId: zod_1.z.coerce.bigint(),
@@ -43,7 +44,7 @@ exports.JoinAgentToLocationToolSchema = zod_1.z.object({
43
44
  agentId: zod_1.z.coerce.bigint(),
44
45
  });
45
46
  exports.RemoveAgentFromLocationParamsSchema = zod_1.z.object({
46
- locationId: zod_1.z.string().transform((val) => BigInt(val)),
47
+ locationId: zod_1.z.coerce.bigint(),
47
48
  });
48
49
  exports.RemoveAgentFromLocationBodySchema = zod_1.z.object({
49
50
  agentId: zod_1.z.coerce.bigint(),
@@ -74,4 +75,53 @@ exports.GetLocationHelperLocationQuerySchema = zod_1.z.object({
74
75
  exports.GetAgentDmLocationQuerySchema = zod_1.z.object({
75
76
  agentId: zod_1.z.coerce.bigint(),
76
77
  });
78
+ exports.GetLocationScheduledMessagesParamsSchema = zod_1.z.object({
79
+ locationId: zod_1.z.coerce.bigint(),
80
+ });
81
+ exports.CreateLocationScheduledMessageParamsSchema = zod_1.z.object({
82
+ locationId: zod_1.z.coerce.bigint(),
83
+ });
84
+ const LocationScheduledMessageBaseSchema = zod_1.z.object({
85
+ repeatTimesOfDay: zod_1.z
86
+ .array(zod_1.z.string().regex(/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/))
87
+ .min(1)
88
+ .max(24)
89
+ .describe('Times of day to repeat the message (24-hour format)'),
90
+ repeatDaysOfWeek: zod_1.z
91
+ .array(zod_1.z.nativeEnum(common_1.DayOfWeek))
92
+ .max(7)
93
+ .optional()
94
+ .default([])
95
+ .describe('Days of week to repeat the message'),
96
+ });
97
+ exports.CreateLocationScheduledMessageBodySchema = LocationScheduledMessageBaseSchema.extend({
98
+ message: zod_1.z.string().max(500),
99
+ });
100
+ exports.UpdateLocationScheduledMessageParamsSchema = zod_1.z.object({
101
+ locationId: zod_1.z.coerce.bigint(),
102
+ messageId: zod_1.z.string(),
103
+ });
104
+ exports.UpdateLocationScheduledMessageBodySchema = LocationScheduledMessageBaseSchema.extend({
105
+ message: zod_1.z.string().max(500).optional(),
106
+ });
107
+ exports.DeleteLocationScheduledMessageParamsSchema = zod_1.z.object({
108
+ locationId: zod_1.z.coerce.bigint(),
109
+ messageId: zod_1.z.string(),
110
+ });
111
+ const LocationScheduledMessageToolBaseSchema = zod_1.z
112
+ .object({
113
+ locationId: zod_1.z.coerce.bigint(),
114
+ })
115
+ .merge(LocationScheduledMessageBaseSchema);
116
+ exports.CreateLocationScheduledMessageToolSchema = LocationScheduledMessageToolBaseSchema.extend({
117
+ message: zod_1.z.string().max(500),
118
+ });
119
+ exports.UpdateLocationScheduledMessageToolSchema = LocationScheduledMessageToolBaseSchema.extend({
120
+ messageId: zod_1.z.string(),
121
+ message: zod_1.z.string().max(500).optional(),
122
+ });
123
+ exports.DeleteLocationScheduledMessageToolSchema = zod_1.z.object({
124
+ locationId: zod_1.z.coerce.bigint(),
125
+ messageId: zod_1.z.string(),
126
+ });
77
127
  //# sourceMappingURL=location.requests.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"location.requests.js","sourceRoot":"","sources":["../../../src/dto/locations/location.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,4EAGgD;AAOnC,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IACzE,KAAK,EAAE,OAAC,CAAC,MAAM;SACZ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,OAAO,CAAC,EAAE,CAAC;SACX,QAAQ,CAAC,+BAA+B,CAAC;CAC7C,CAAC,CAAC;AAaU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;CACvD,CAAC,CAAC;AASU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;CACvD,CAAC,CAAC;AAWU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,UAAU,EA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AAC,CAAC;AAMU,QAAA,wCAAwC,GACnD,kCAAkC,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAWQ,QAAA,0CAA0C,GAAG,OAAC,CAAC,MAAM,CAAC;IACjE,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC7B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAWH,MAAM,sCAAsC,GAAG,OAAC;KAC7C,MAAM,CAAC;IACN,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC9B,CAAC;KACD,KAAK,CAAC,kCAAkC,CAAC,CAAC;AAEhC,QAAA,wCAAwC,GACnD,sCAAsC,CAAC,MAAM,CAAC;IAC5C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;CAC7B,CAAC,CAAC;AAMQ,QAAA,wCAAwC,GACnD,sCAAsC,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAMQ,QAAA,wCAAwC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/D,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC7B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { DayOfWeek } from '@little-samo/samo-ai/common';
2
+ import { LocationId } from '@little-samo/samo-ai/models';
3
+ export interface LocationScheduledMessageDto {
4
+ id: string;
5
+ locationId: LocationId;
6
+ message: string;
7
+ nextMessageAt: Date | null;
8
+ repeatTimesOfDay: string[];
9
+ repeatDaysOfWeek: DayOfWeek[];
10
+ createdAt: Date;
11
+ updatedAt: Date;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=location.scheduled-message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location.scheduled-message.js","sourceRoot":"","sources":["../../../src/dto/locations/location.scheduled-message.ts"],"names":[],"mappings":""}