@bizmap/sdk 0.0.65 → 0.0.66
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/main.d.ts +21 -13
- package/dist/main.js +5 -3
- package/package.json +4 -4
package/dist/main.d.ts
CHANGED
|
@@ -98,14 +98,16 @@ declare const CompanyDetails: z.ZodObject<{
|
|
|
98
98
|
}, z.core.$strip>;
|
|
99
99
|
}, z.core.$strip>;
|
|
100
100
|
notifications: z.ZodArray<z.ZodObject<{
|
|
101
|
-
|
|
101
|
+
_id: z.ZodUUID;
|
|
102
|
+
code: z.ZodLiteral<"INVITE_RESPONSE" | "COMPANY_INVITE" | "DEV_MESSAGE" | "ALERT">;
|
|
102
103
|
payload: z.ZodString;
|
|
103
|
-
|
|
104
|
+
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
+
rcpt: z.ZodNullable<z.ZodUnion<[z.ZodUUID, z.ZodUUID]>>;
|
|
104
106
|
src: z.ZodObject<{
|
|
107
|
+
_id: z.ZodUnion<[z.ZodUUID, z.ZodUUID]>;
|
|
105
108
|
name: z.ZodString;
|
|
106
109
|
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
107
110
|
}, z.core.$strip>;
|
|
108
|
-
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
109
111
|
createdAt: z.ZodInt;
|
|
110
112
|
}, z.core.$strip>>;
|
|
111
113
|
receipts: z.ZodArray<z.ZodObject<{
|
|
@@ -594,14 +596,16 @@ declare const MutableCompanyIdentity: z.ZodObject<{
|
|
|
594
596
|
type MutableCompanyIdentity = z.infer<typeof MutableCompanyIdentity>;
|
|
595
597
|
|
|
596
598
|
declare const CompanyNotifications: z.ZodArray<z.ZodObject<{
|
|
597
|
-
|
|
599
|
+
_id: z.ZodUUID;
|
|
600
|
+
code: z.ZodLiteral<"INVITE_RESPONSE" | "COMPANY_INVITE" | "DEV_MESSAGE" | "ALERT">;
|
|
598
601
|
payload: z.ZodString;
|
|
599
|
-
|
|
602
|
+
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
603
|
+
rcpt: z.ZodNullable<z.ZodUnion<[z.ZodUUID, z.ZodUUID]>>;
|
|
600
604
|
src: z.ZodObject<{
|
|
605
|
+
_id: z.ZodUnion<[z.ZodUUID, z.ZodUUID]>;
|
|
601
606
|
name: z.ZodString;
|
|
602
607
|
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
603
608
|
}, z.core.$strip>;
|
|
604
|
-
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
605
609
|
createdAt: z.ZodInt;
|
|
606
610
|
}, z.core.$strip>>;
|
|
607
611
|
type CompanyNotifications = z.infer<typeof CompanyNotifications>;
|
|
@@ -847,14 +851,16 @@ declare const TierList: z.ZodRecord<z.ZodEnum<{
|
|
|
847
851
|
}, z.core.$strip>>;
|
|
848
852
|
type TierList = z.infer<typeof TierList>;
|
|
849
853
|
declare const Notification: z.ZodObject<{
|
|
850
|
-
|
|
854
|
+
_id: z.ZodUUID;
|
|
855
|
+
code: z.ZodLiteral<"INVITE_RESPONSE" | "COMPANY_INVITE" | "DEV_MESSAGE" | "ALERT">;
|
|
851
856
|
payload: z.ZodString;
|
|
852
|
-
|
|
857
|
+
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
858
|
+
rcpt: z.ZodNullable<z.ZodUnion<[z.ZodUUID, z.ZodUUID]>>;
|
|
853
859
|
src: z.ZodObject<{
|
|
860
|
+
_id: z.ZodUnion<[z.ZodUUID, z.ZodUUID]>;
|
|
854
861
|
name: z.ZodString;
|
|
855
862
|
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
856
863
|
}, z.core.$strip>;
|
|
857
|
-
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
858
864
|
createdAt: z.ZodInt;
|
|
859
865
|
}, z.core.$strip>;
|
|
860
866
|
type Notification = z.infer<typeof Notification>;
|
|
@@ -937,19 +943,21 @@ declare const UserDetails: z.ZodObject<{
|
|
|
937
943
|
email: z.ZodEmail;
|
|
938
944
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
939
945
|
name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
940
|
-
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
941
946
|
publicKey: z.ZodNullable<z.ZodString>;
|
|
942
947
|
notifications: z.ZodArray<z.ZodObject<{
|
|
943
|
-
|
|
948
|
+
_id: z.ZodUUID;
|
|
949
|
+
code: z.ZodLiteral<"INVITE_RESPONSE" | "COMPANY_INVITE" | "DEV_MESSAGE" | "ALERT">;
|
|
944
950
|
payload: z.ZodString;
|
|
945
|
-
|
|
951
|
+
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
952
|
+
rcpt: z.ZodNullable<z.ZodUnion<[z.ZodUUID, z.ZodUUID]>>;
|
|
946
953
|
src: z.ZodObject<{
|
|
954
|
+
_id: z.ZodUnion<[z.ZodUUID, z.ZodUUID]>;
|
|
947
955
|
name: z.ZodString;
|
|
948
956
|
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
949
957
|
}, z.core.$strip>;
|
|
950
|
-
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
951
958
|
createdAt: z.ZodInt;
|
|
952
959
|
}, z.core.$strip>>;
|
|
960
|
+
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
953
961
|
linked: z.ZodBoolean;
|
|
954
962
|
}, z.core.$strip>;
|
|
955
963
|
type UserDetails = z.infer<typeof UserDetails>;
|
package/dist/main.js
CHANGED
|
@@ -226,19 +226,21 @@ var TierList = z10.record(
|
|
|
226
226
|
}
|
|
227
227
|
});
|
|
228
228
|
var Notification = z10.object({
|
|
229
|
+
_id: z10.uuidv4(),
|
|
229
230
|
code: z10.literal([
|
|
230
|
-
"COMPANY_INVITE",
|
|
231
231
|
"INVITE_RESPONSE",
|
|
232
|
+
"COMPANY_INVITE",
|
|
232
233
|
"DEV_MESSAGE",
|
|
233
234
|
"ALERT"
|
|
234
235
|
]),
|
|
235
236
|
payload: z10.string(),
|
|
236
|
-
|
|
237
|
+
isArchived: z10.boolean().optional(),
|
|
238
|
+
rcpt: z10.uuidv4().or(z10.uuidv7()).nullable(),
|
|
237
239
|
src: z10.object({
|
|
240
|
+
_id: z10.uuidv4().or(z10.uuidv7()),
|
|
238
241
|
name: z10.string(),
|
|
239
242
|
photoUrl: z10.string().nullish()
|
|
240
243
|
}),
|
|
241
|
-
expiresAt: Timestamp.nullish(),
|
|
242
244
|
createdAt: Timestamp
|
|
243
245
|
}).superRefine((data, ctx) => {
|
|
244
246
|
const expectMessage = () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bizmap/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.66",
|
|
4
4
|
"main": "./dist/main.js",
|
|
5
5
|
"types": "./dist/main.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"author": "",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@wavy/fn": "^0.0.
|
|
19
|
+
"@wavy/fn": "^0.0.41",
|
|
20
20
|
"@wavy/util": ">=0.0.12",
|
|
21
21
|
"zod": "^4.2.1"
|
|
22
22
|
},
|
|
23
23
|
"description": "",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@wavy/fn": "^0.0.
|
|
26
|
-
"@wavy/util": "^0.0.
|
|
25
|
+
"@wavy/fn": "^0.0.41",
|
|
26
|
+
"@wavy/util": "^0.0.18",
|
|
27
27
|
"tsup": "^8.5.0",
|
|
28
28
|
"typescript": "^5.9.2",
|
|
29
29
|
"zod": "^4.2.1"
|