@marcoappio/marco-config 11.0.15 → 11.0.16
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/schemas/index.d.ts
CHANGED
|
@@ -1292,6 +1292,18 @@ export declare const marcoSchemas: {
|
|
|
1292
1292
|
provider: () => import("valibot").PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
|
|
1293
1293
|
};
|
|
1294
1294
|
pushNotifications: {
|
|
1295
|
+
message: import("valibot").ObjectSchema<{
|
|
1296
|
+
readonly badge: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
1297
|
+
readonly body: import("valibot").StringSchema<undefined>;
|
|
1298
|
+
readonly data: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
1299
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
1300
|
+
readonly messageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "MessageId">]>, undefined>;
|
|
1301
|
+
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>;
|
|
1302
|
+
}, undefined>;
|
|
1303
|
+
readonly event: import("valibot").LiteralSchema<"EMAIL_RECEIVED", undefined>;
|
|
1304
|
+
}, undefined>], undefined>;
|
|
1305
|
+
readonly title: import("valibot").StringSchema<undefined>;
|
|
1306
|
+
}, undefined>;
|
|
1295
1307
|
payload: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
1296
1308
|
readonly data: import("valibot").ObjectSchema<{
|
|
1297
1309
|
readonly messageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "MessageId">]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAqCA,YAAY,EACV,SAAS,EACT,OAAO,EACP,YAAY,EACZ,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,EACT,uBAAuB,EACvB,WAAW,EACX,MAAM,EACN,MAAM,EACN,UAAU,EACV,QAAQ,EACR,MAAM,EACN,MAAM,GACP,MAAM,MAAM,CAAA;AACb,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,SAAS,EACT,IAAI,EACJ,UAAU,EACV,aAAa,EACb,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,IAAI,EACJ,yBAAyB,EACzB,QAAQ,GACT,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAqCA,YAAY,EACV,SAAS,EACT,OAAO,EACP,YAAY,EACZ,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,EACT,uBAAuB,EACvB,WAAW,EACX,MAAM,EACN,MAAM,EACN,UAAU,EACV,QAAQ,EACR,MAAM,EACN,MAAM,GACP,MAAM,MAAM,CAAA;AACb,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,SAAS,EACT,IAAI,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCxB,CAAA"}
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const pushNotifications: {
|
|
3
|
+
message: v.ObjectSchema<{
|
|
4
|
+
readonly badge: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
5
|
+
readonly body: v.StringSchema<undefined>;
|
|
6
|
+
readonly data: v.UnionSchema<[v.ObjectSchema<{
|
|
7
|
+
readonly data: v.ObjectSchema<{
|
|
8
|
+
readonly messageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
9
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
readonly event: v.LiteralSchema<"EMAIL_RECEIVED", undefined>;
|
|
12
|
+
}, undefined>], undefined>;
|
|
13
|
+
readonly title: v.StringSchema<undefined>;
|
|
14
|
+
}, undefined>;
|
|
3
15
|
payload: v.UnionSchema<[v.ObjectSchema<{
|
|
4
16
|
readonly data: v.ObjectSchema<{
|
|
5
17
|
readonly messageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pushNotifications.d.ts","sourceRoot":"","sources":["../../src/schemas/pushNotifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"pushNotifications.d.ts","sourceRoot":"","sources":["../../src/schemas/pushNotifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAuB5B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;CAG7B,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { id } from './id';
|
|
3
|
+
import { number } from './number';
|
|
3
4
|
const pushNotificationEmailReceivedPayload = v.object({
|
|
4
5
|
data: v.object({
|
|
5
6
|
messageId: id.messageId.required(),
|
|
@@ -8,6 +9,14 @@ const pushNotificationEmailReceivedPayload = v.object({
|
|
|
8
9
|
event: v.literal('EMAIL_RECEIVED'),
|
|
9
10
|
});
|
|
10
11
|
const pushNotificationPayload = v.union([pushNotificationEmailReceivedPayload]);
|
|
12
|
+
// The app icon badge is the inbox unread total (labelUtils.getInboxUnreadTotal).
|
|
13
|
+
const pushNotificationMessage = v.object({
|
|
14
|
+
badge: number.positiveInteger(),
|
|
15
|
+
body: v.string(),
|
|
16
|
+
data: pushNotificationPayload,
|
|
17
|
+
title: v.string(),
|
|
18
|
+
});
|
|
11
19
|
export const pushNotifications = {
|
|
20
|
+
message: pushNotificationMessage,
|
|
12
21
|
payload: pushNotificationPayload,
|
|
13
22
|
};
|