@bisondesk/website-commons-sdk 1.0.35 → 1.0.37
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/lib/types/fields.d.ts +3 -1
- package/lib/types/fields.d.ts.map +1 -1
- package/lib/types/fields.js +1 -0
- package/lib/types/fields.js.map +1 -1
- package/lib/types/search.d.ts +1 -0
- package/lib/types/search.d.ts.map +1 -1
- package/lib/types/search.js.map +1 -1
- package/lib/types/user-searches.d.ts +6 -49
- package/lib/types/user-searches.d.ts.map +1 -1
- package/lib/types/user-searches.js +1 -1
- package/lib/types/user-searches.js.map +1 -1
- package/lib/types/user.d.ts +10 -159
- package/lib/types/user.d.ts.map +1 -1
- package/lib/types/user.js +0 -23
- package/lib/types/user.js.map +1 -1
- package/lib/types/vehicle.d.ts +21 -0
- package/lib/types/vehicle.d.ts.map +1 -1
- package/lib/types/vehicle.js.map +1 -1
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/vehicle.d.ts.map +1 -1
- package/package.json +3 -6
- package/src/types/fields.ts +2 -0
- package/src/types/search.ts +1 -0
- package/src/types/user-searches.ts +1 -1
- package/src/types/user.ts +17 -27
- package/src/types/vehicle.ts +21 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/lib/types/mailing-list.d.ts +0 -65
- package/lib/types/mailing-list.d.ts.map +0 -1
- package/lib/types/mailing-list.js +0 -27
- package/lib/types/mailing-list.js.map +0 -1
- package/src/types/mailing-list.ts +0 -44
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const Contact: z.ZodObject<{
|
|
3
|
-
email: z.ZodString;
|
|
4
|
-
fields: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
5
|
-
Country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
-
PreferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
-
FirstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
LastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
Country?: string | null | undefined;
|
|
11
|
-
PreferredLanguage?: string | null | undefined;
|
|
12
|
-
FirstName?: string | null | undefined;
|
|
13
|
-
LastName?: string | null | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
Country?: string | null | undefined;
|
|
16
|
-
PreferredLanguage?: string | null | undefined;
|
|
17
|
-
FirstName?: string | null | undefined;
|
|
18
|
-
LastName?: string | null | undefined;
|
|
19
|
-
}>, {
|
|
20
|
-
[k: string]: string | null;
|
|
21
|
-
}, {
|
|
22
|
-
Country?: string | null | undefined;
|
|
23
|
-
PreferredLanguage?: string | null | undefined;
|
|
24
|
-
FirstName?: string | null | undefined;
|
|
25
|
-
LastName?: string | null | undefined;
|
|
26
|
-
}>>;
|
|
27
|
-
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
28
|
-
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
email: string;
|
|
30
|
-
fields?: {
|
|
31
|
-
[k: string]: string | null;
|
|
32
|
-
} | undefined;
|
|
33
|
-
tags?: Record<string, boolean> | undefined;
|
|
34
|
-
}, {
|
|
35
|
-
email: string;
|
|
36
|
-
fields?: {
|
|
37
|
-
Country?: string | null | undefined;
|
|
38
|
-
PreferredLanguage?: string | null | undefined;
|
|
39
|
-
FirstName?: string | null | undefined;
|
|
40
|
-
LastName?: string | null | undefined;
|
|
41
|
-
} | undefined;
|
|
42
|
-
tags?: Record<string, boolean> | undefined;
|
|
43
|
-
}>;
|
|
44
|
-
export type Contact = z.input<typeof Contact>;
|
|
45
|
-
export declare const CheckUserIsSubscribedRequest: z.ZodObject<{
|
|
46
|
-
email: z.ZodString;
|
|
47
|
-
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
email: string;
|
|
49
|
-
}, {
|
|
50
|
-
email: string;
|
|
51
|
-
}>;
|
|
52
|
-
export type CheckUserIsSubscribedRequest = z.infer<typeof CheckUserIsSubscribedRequest>;
|
|
53
|
-
export declare enum ContactStatus {
|
|
54
|
-
Pending = "pending",
|
|
55
|
-
Unsubscribed = "unsubscribed",
|
|
56
|
-
Subscribed = "subscribed"
|
|
57
|
-
}
|
|
58
|
-
export type CheckUSerIsSubscribedResponse = {
|
|
59
|
-
createdAt?: string;
|
|
60
|
-
status?: ContactStatus;
|
|
61
|
-
};
|
|
62
|
-
export type UpsertContactResponse = {
|
|
63
|
-
subscribed: boolean;
|
|
64
|
-
};
|
|
65
|
-
//# sourceMappingURL=mailing-list.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mailing-list.d.ts","sourceRoot":"/","sources":["types/mailing-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBlB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;AAE9C,eAAO,MAAM,4BAA4B;;;;;;EAEvC,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAExF,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,UAAU,eAAe;CAC1B;AAED,MAAM,MAAM,6BAA6B,GAAG;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export const Contact = z.object({
|
|
3
|
-
email: z.string().email(),
|
|
4
|
-
fields: z
|
|
5
|
-
.object({
|
|
6
|
-
Country: z.string().nullable().optional(),
|
|
7
|
-
PreferredLanguage: z.string().nullable().optional(),
|
|
8
|
-
FirstName: z.string().nullable().optional(),
|
|
9
|
-
LastName: z.string().nullable().optional(),
|
|
10
|
-
})
|
|
11
|
-
.transform((data) => {
|
|
12
|
-
const normalizedData = Object.fromEntries(Object.entries(data).filter(([, value]) => value !== undefined));
|
|
13
|
-
return normalizedData;
|
|
14
|
-
})
|
|
15
|
-
.optional(),
|
|
16
|
-
tags: z.record(z.string(), z.boolean()).optional(),
|
|
17
|
-
});
|
|
18
|
-
export const CheckUserIsSubscribedRequest = z.object({
|
|
19
|
-
email: z.string().email(),
|
|
20
|
-
});
|
|
21
|
-
export var ContactStatus;
|
|
22
|
-
(function (ContactStatus) {
|
|
23
|
-
ContactStatus["Pending"] = "pending";
|
|
24
|
-
ContactStatus["Unsubscribed"] = "unsubscribed";
|
|
25
|
-
ContactStatus["Subscribed"] = "subscribed";
|
|
26
|
-
})(ContactStatus || (ContactStatus = {}));
|
|
27
|
-
//# sourceMappingURL=mailing-list.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mailing-list.js","sourceRoot":"/","sources":["types/mailing-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACzB,MAAM,EAAE,CAAC;SACN,MAAM,CAAC;QACN,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACzC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACnD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAC3C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KAC3C,CAAC;SACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE;QAClB,MAAM,cAAc,GAAG,MAAM,CAAC,WAAW,CACvC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CAChE,CAAC;QAEF,OAAO,cAAc,CAAC;IACxB,CAAC,CAAC;SACD,QAAQ,EAAE;IACb,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;CAC1B,CAAC,CAAC;AAIH,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,8CAA6B,CAAA;IAC7B,0CAAyB,CAAA;AAC3B,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB","sourcesContent":["import { z } from 'zod';\n\nexport const Contact = z.object({\n email: z.string().email(),\n fields: z\n .object({\n Country: z.string().nullable().optional(),\n PreferredLanguage: z.string().nullable().optional(),\n FirstName: z.string().nullable().optional(),\n LastName: z.string().nullable().optional(),\n })\n .transform((data) => {\n const normalizedData = Object.fromEntries(\n Object.entries(data).filter(([, value]) => value !== undefined)\n );\n\n return normalizedData;\n })\n .optional(),\n tags: z.record(z.string(), z.boolean()).optional(),\n});\n\nexport type Contact = z.input<typeof Contact>;\n\nexport const CheckUserIsSubscribedRequest = z.object({\n email: z.string().email(),\n});\n\nexport type CheckUserIsSubscribedRequest = z.infer<typeof CheckUserIsSubscribedRequest>;\n\nexport enum ContactStatus {\n Pending = 'pending',\n Unsubscribed = 'unsubscribed',\n Subscribed = 'subscribed',\n}\n\nexport type CheckUSerIsSubscribedResponse = {\n createdAt?: string;\n status?: ContactStatus;\n};\n\nexport type UpsertContactResponse = {\n subscribed: boolean;\n};\n"]}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export const Contact = z.object({
|
|
4
|
-
email: z.string().email(),
|
|
5
|
-
fields: z
|
|
6
|
-
.object({
|
|
7
|
-
Country: z.string().nullable().optional(),
|
|
8
|
-
PreferredLanguage: z.string().nullable().optional(),
|
|
9
|
-
FirstName: z.string().nullable().optional(),
|
|
10
|
-
LastName: z.string().nullable().optional(),
|
|
11
|
-
})
|
|
12
|
-
.transform((data) => {
|
|
13
|
-
const normalizedData = Object.fromEntries(
|
|
14
|
-
Object.entries(data).filter(([, value]) => value !== undefined)
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
return normalizedData;
|
|
18
|
-
})
|
|
19
|
-
.optional(),
|
|
20
|
-
tags: z.record(z.string(), z.boolean()).optional(),
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
export type Contact = z.input<typeof Contact>;
|
|
24
|
-
|
|
25
|
-
export const CheckUserIsSubscribedRequest = z.object({
|
|
26
|
-
email: z.string().email(),
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
export type CheckUserIsSubscribedRequest = z.infer<typeof CheckUserIsSubscribedRequest>;
|
|
30
|
-
|
|
31
|
-
export enum ContactStatus {
|
|
32
|
-
Pending = 'pending',
|
|
33
|
-
Unsubscribed = 'unsubscribed',
|
|
34
|
-
Subscribed = 'subscribed',
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type CheckUSerIsSubscribedResponse = {
|
|
38
|
-
createdAt?: string;
|
|
39
|
-
status?: ContactStatus;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export type UpsertContactResponse = {
|
|
43
|
-
subscribed: boolean;
|
|
44
|
-
};
|