asfur 1.0.110 → 1.0.111

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/types.d.ts CHANGED
@@ -913,6 +913,7 @@ export declare const scenarioScoreTypeList: readonly ["ten_score", "hundred_scor
913
913
  export declare const zodAlertSchema: z.ZodObject<{
914
914
  title: z.ZodOptional<z.ZodString>;
915
915
  threshold: z.ZodOptional<z.ZodNumber>;
916
+ is_on: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
916
917
  is_triggered: z.ZodOptional<z.ZodBoolean>;
917
918
  triggered_at: z.ZodOptional<z.ZodNumber>;
918
919
  is_sent: z.ZodOptional<z.ZodBoolean>;
@@ -922,6 +923,7 @@ export declare const zodAlertSchema: z.ZodObject<{
922
923
  emails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
923
924
  phone_numbers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
924
925
  }, "strip", z.ZodTypeAny, {
926
+ is_on: boolean;
925
927
  by_email: boolean;
926
928
  by_whatsapp: boolean;
927
929
  message?: string | undefined;
@@ -937,6 +939,7 @@ export declare const zodAlertSchema: z.ZodObject<{
937
939
  title?: string | undefined;
938
940
  emails?: string[] | undefined;
939
941
  threshold?: number | undefined;
942
+ is_on?: boolean | undefined;
940
943
  is_triggered?: boolean | undefined;
941
944
  triggered_at?: number | undefined;
942
945
  is_sent?: boolean | undefined;
@@ -984,6 +987,7 @@ export declare const zodScenarioSchema: z.ZodObject<{
984
987
  alert: z.ZodOptional<z.ZodObject<{
985
988
  title: z.ZodOptional<z.ZodString>;
986
989
  threshold: z.ZodOptional<z.ZodNumber>;
990
+ is_on: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
987
991
  is_triggered: z.ZodOptional<z.ZodBoolean>;
988
992
  triggered_at: z.ZodOptional<z.ZodNumber>;
989
993
  is_sent: z.ZodOptional<z.ZodBoolean>;
@@ -993,6 +997,7 @@ export declare const zodScenarioSchema: z.ZodObject<{
993
997
  emails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
994
998
  phone_numbers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
995
999
  }, "strip", z.ZodTypeAny, {
1000
+ is_on: boolean;
996
1001
  by_email: boolean;
997
1002
  by_whatsapp: boolean;
998
1003
  message?: string | undefined;
@@ -1008,6 +1013,7 @@ export declare const zodScenarioSchema: z.ZodObject<{
1008
1013
  title?: string | undefined;
1009
1014
  emails?: string[] | undefined;
1010
1015
  threshold?: number | undefined;
1016
+ is_on?: boolean | undefined;
1011
1017
  is_triggered?: boolean | undefined;
1012
1018
  triggered_at?: number | undefined;
1013
1019
  is_sent?: boolean | undefined;
@@ -1039,6 +1045,7 @@ export declare const zodScenarioSchema: z.ZodObject<{
1039
1045
  time_zone?: string | undefined;
1040
1046
  additional_instructions?: string | undefined;
1041
1047
  alert?: {
1048
+ is_on: boolean;
1042
1049
  by_email: boolean;
1043
1050
  by_whatsapp: boolean;
1044
1051
  message?: string | undefined;
@@ -1078,6 +1085,7 @@ export declare const zodScenarioSchema: z.ZodObject<{
1078
1085
  title?: string | undefined;
1079
1086
  emails?: string[] | undefined;
1080
1087
  threshold?: number | undefined;
1088
+ is_on?: boolean | undefined;
1081
1089
  is_triggered?: boolean | undefined;
1082
1090
  triggered_at?: number | undefined;
1083
1091
  is_sent?: boolean | undefined;
@@ -1198,6 +1206,7 @@ export declare const zodScenarioScoreSchema: z.ZodObject<{
1198
1206
  alert: z.ZodOptional<z.ZodObject<{
1199
1207
  title: z.ZodOptional<z.ZodString>;
1200
1208
  threshold: z.ZodOptional<z.ZodNumber>;
1209
+ is_on: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1201
1210
  is_triggered: z.ZodOptional<z.ZodBoolean>;
1202
1211
  triggered_at: z.ZodOptional<z.ZodNumber>;
1203
1212
  is_sent: z.ZodOptional<z.ZodBoolean>;
@@ -1207,6 +1216,7 @@ export declare const zodScenarioScoreSchema: z.ZodObject<{
1207
1216
  emails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1208
1217
  phone_numbers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1209
1218
  }, "strip", z.ZodTypeAny, {
1219
+ is_on: boolean;
1210
1220
  by_email: boolean;
1211
1221
  by_whatsapp: boolean;
1212
1222
  message?: string | undefined;
@@ -1222,6 +1232,7 @@ export declare const zodScenarioScoreSchema: z.ZodObject<{
1222
1232
  title?: string | undefined;
1223
1233
  emails?: string[] | undefined;
1224
1234
  threshold?: number | undefined;
1235
+ is_on?: boolean | undefined;
1225
1236
  is_triggered?: boolean | undefined;
1226
1237
  triggered_at?: number | undefined;
1227
1238
  is_sent?: boolean | undefined;
@@ -1269,6 +1280,7 @@ export declare const zodScenarioScoreSchema: z.ZodObject<{
1269
1280
  created_at?: number | undefined;
1270
1281
  updated_at?: number | undefined;
1271
1282
  alert?: {
1283
+ is_on: boolean;
1272
1284
  by_email: boolean;
1273
1285
  by_whatsapp: boolean;
1274
1286
  message?: string | undefined;
@@ -1324,6 +1336,7 @@ export declare const zodScenarioScoreSchema: z.ZodObject<{
1324
1336
  title?: string | undefined;
1325
1337
  emails?: string[] | undefined;
1326
1338
  threshold?: number | undefined;
1339
+ is_on?: boolean | undefined;
1327
1340
  is_triggered?: boolean | undefined;
1328
1341
  triggered_at?: number | undefined;
1329
1342
  is_sent?: boolean | undefined;
package/dist/types.js CHANGED
@@ -220,6 +220,7 @@ exports.scenarioScoreTypeList = [
220
220
  exports.zodAlertSchema = zod_1.z.object({
221
221
  title: zod_1.z.string().optional(),
222
222
  threshold: zod_1.z.number().optional(),
223
+ is_on: zod_1.z.boolean().optional().default(false),
223
224
  is_triggered: zod_1.z.boolean().optional(),
224
225
  triggered_at: zod_1.z.number().optional(),
225
226
  is_sent: zod_1.z.boolean().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asfur",
3
- "version": "1.0.110",
3
+ "version": "1.0.111",
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
@@ -265,6 +265,7 @@ export const scenarioScoreTypeList = [
265
265
  export const zodAlertSchema = z.object({
266
266
  title: z.string().optional(), // optional title for the alert when the scenario score exceeds the alert_threshold
267
267
  threshold: z.number().optional(), // threshold for the alert
268
+ is_on: z.boolean().optional().default(false), // true if the alert is enabled
268
269
  is_triggered: z.boolean().optional(), // true if the alert has been triggered
269
270
  triggered_at: z.number().optional(), // date when the alert was triggered
270
271
  is_sent: z.boolean().optional(), // true if the alert has been sent to the user