shred-api-client 2.4.13-rc.3 → 2.4.13
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 +10 -8
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -801,12 +801,8 @@ type QueryOrderBy<T> = {
|
|
|
801
801
|
type QueryFilterOp = "==" | "!=" | ">" | "<" | ">=" | "<=" | "in" | "not-in" | "array-contains" | "array-contains-any" | "between";
|
|
802
802
|
type QueryWhere<T> = {
|
|
803
803
|
field: keyof T | "modified";
|
|
804
|
-
operation:
|
|
805
|
-
value: T[keyof T] | T[keyof T][]
|
|
806
|
-
} | {
|
|
807
|
-
field: keyof T | "modified";
|
|
808
|
-
operation: "between";
|
|
809
|
-
value: {
|
|
804
|
+
operation: QueryFilterOp;
|
|
805
|
+
value: T[keyof T] | T[keyof T][] | {
|
|
810
806
|
from: number;
|
|
811
807
|
to: number;
|
|
812
808
|
};
|
|
@@ -2278,11 +2274,12 @@ declare const NotificationDetailSchema: z.ZodObject<Pick<{
|
|
|
2278
2274
|
}>>;
|
|
2279
2275
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
2280
2276
|
error: z.ZodOptional<z.ZodString>;
|
|
2281
|
-
}, "userId" | "title" | "body" | "cta" | "metadata">, "strip", z.ZodTypeAny, {
|
|
2277
|
+
}, "userId" | "title" | "body" | "type" | "cta" | "metadata">, "strip", z.ZodTypeAny, {
|
|
2282
2278
|
userId: string;
|
|
2283
2279
|
title: string;
|
|
2284
2280
|
body: string;
|
|
2285
2281
|
metadata: Record<string, string | number>;
|
|
2282
|
+
type?: NotificationType | undefined;
|
|
2286
2283
|
cta?: {
|
|
2287
2284
|
label: string;
|
|
2288
2285
|
url: string;
|
|
@@ -2292,6 +2289,7 @@ declare const NotificationDetailSchema: z.ZodObject<Pick<{
|
|
|
2292
2289
|
title: string;
|
|
2293
2290
|
body: string;
|
|
2294
2291
|
metadata: Record<string, string | number>;
|
|
2292
|
+
type?: NotificationType | undefined;
|
|
2295
2293
|
cta?: {
|
|
2296
2294
|
label: string;
|
|
2297
2295
|
url: string;
|
|
@@ -2417,11 +2415,12 @@ declare const TriggerSchema: z.ZodObject<{
|
|
|
2417
2415
|
}>>;
|
|
2418
2416
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
2419
2417
|
error: z.ZodOptional<z.ZodString>;
|
|
2420
|
-
}, "userId" | "title" | "body" | "cta" | "metadata">, "strip", z.ZodTypeAny, {
|
|
2418
|
+
}, "userId" | "title" | "body" | "type" | "cta" | "metadata">, "strip", z.ZodTypeAny, {
|
|
2421
2419
|
userId: string;
|
|
2422
2420
|
title: string;
|
|
2423
2421
|
body: string;
|
|
2424
2422
|
metadata: Record<string, string | number>;
|
|
2423
|
+
type?: NotificationType | undefined;
|
|
2425
2424
|
cta?: {
|
|
2426
2425
|
label: string;
|
|
2427
2426
|
url: string;
|
|
@@ -2431,6 +2430,7 @@ declare const TriggerSchema: z.ZodObject<{
|
|
|
2431
2430
|
title: string;
|
|
2432
2431
|
body: string;
|
|
2433
2432
|
metadata: Record<string, string | number>;
|
|
2433
|
+
type?: NotificationType | undefined;
|
|
2434
2434
|
cta?: {
|
|
2435
2435
|
label: string;
|
|
2436
2436
|
url: string;
|
|
@@ -2547,6 +2547,7 @@ declare const TriggerSchema: z.ZodObject<{
|
|
|
2547
2547
|
title: string;
|
|
2548
2548
|
body: string;
|
|
2549
2549
|
metadata: Record<string, string | number>;
|
|
2550
|
+
type?: NotificationType | undefined;
|
|
2550
2551
|
cta?: {
|
|
2551
2552
|
label: string;
|
|
2552
2553
|
url: string;
|
|
@@ -2598,6 +2599,7 @@ declare const TriggerSchema: z.ZodObject<{
|
|
|
2598
2599
|
title: string;
|
|
2599
2600
|
body: string;
|
|
2600
2601
|
metadata: Record<string, string | number>;
|
|
2602
|
+
type?: NotificationType | undefined;
|
|
2601
2603
|
cta?: {
|
|
2602
2604
|
label: string;
|
|
2603
2605
|
url: string;
|
package/dist/index.js
CHANGED
|
@@ -4249,7 +4249,8 @@ var NotificationDetailSchema = NotificationItemSchema.pick({
|
|
|
4249
4249
|
body: true,
|
|
4250
4250
|
userId: true,
|
|
4251
4251
|
metadata: true,
|
|
4252
|
-
cta: true
|
|
4252
|
+
cta: true,
|
|
4253
|
+
type: true
|
|
4253
4254
|
});
|
|
4254
4255
|
var CriteriaSchema = external_exports.object({
|
|
4255
4256
|
type: external_exports.nativeEnum(CriteriaType),
|