@teardown/ingest-api 0.0.18 → 0.0.20

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.
@@ -67,6 +67,18 @@ export declare const UpdateInfoSchema: z.ZodObject<{
67
67
  created_at: z.ZodCoercedDate<unknown>;
68
68
  }, z.core.$strip>;
69
69
  export type UpdateInfo = z.infer<typeof UpdateInfoSchema>;
70
+ /**
71
+ * Push notification info schema
72
+ */
73
+ export declare const PushNotificationInfoSchema: z.ZodObject<{
74
+ token: z.ZodString;
75
+ platform: z.ZodEnum<{
76
+ APNS: "APNS";
77
+ FCM: "FCM";
78
+ EXPO: "EXPO";
79
+ }>;
80
+ }, z.core.$strip>;
81
+ export type PushNotificationInfo = z.infer<typeof PushNotificationInfoSchema>;
70
82
  /**
71
83
  * Device info schema
72
84
  */
@@ -100,6 +112,14 @@ export declare const DeviceInfoSchema: z.ZodObject<{
100
112
  name: z.ZodString;
101
113
  version: z.ZodString;
102
114
  }, z.core.$strip>;
115
+ push_notification: z.ZodOptional<z.ZodObject<{
116
+ token: z.ZodString;
117
+ platform: z.ZodEnum<{
118
+ APNS: "APNS";
119
+ FCM: "FCM";
120
+ EXPO: "EXPO";
121
+ }>;
122
+ }, z.core.$strip>>;
103
123
  }, z.core.$strip>;
104
124
  export type DeviceInfo = z.infer<typeof DeviceInfoSchema>;
105
125
  /**
@@ -147,6 +167,14 @@ export declare const IdentifyRequestSchema: z.ZodObject<{
147
167
  name: z.ZodString;
148
168
  version: z.ZodString;
149
169
  }, z.core.$strip>;
170
+ push_notification: z.ZodOptional<z.ZodObject<{
171
+ token: z.ZodString;
172
+ platform: z.ZodEnum<{
173
+ APNS: "APNS";
174
+ FCM: "FCM";
175
+ EXPO: "EXPO";
176
+ }>;
177
+ }, z.core.$strip>>;
150
178
  }, z.core.$strip>;
151
179
  persona: z.ZodOptional<z.ZodObject<{
152
180
  user_id: z.ZodOptional<z.ZodString>;
@@ -59,6 +59,13 @@ export const UpdateInfoSchema = z.object({
59
59
  is_embedded_launch: z.boolean(),
60
60
  created_at: z.coerce.date(),
61
61
  });
62
+ /**
63
+ * Push notification info schema
64
+ */
65
+ export const PushNotificationInfoSchema = z.object({
66
+ token: z.string(),
67
+ platform: z.enum(["APNS", "FCM", "EXPO"]),
68
+ });
62
69
  /**
63
70
  * Device info schema
64
71
  */
@@ -79,6 +86,10 @@ export const DeviceInfoSchema = z.object({
79
86
  * OS info, required
80
87
  */
81
88
  os: OSInfoSchema,
89
+ /**
90
+ * Push notification info, optional
91
+ */
92
+ push_notification: PushNotificationInfoSchema.optional(),
82
93
  });
83
94
  /**
84
95
  * Persona info schema (optional fields)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teardown/ingest-api",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"