waha-shared 1.0.532-orpc.1 → 1.0.532-orpc.2
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/chunks/{chunk-VXH4TEFN.mjs → chunk-2MRJ3NHH.mjs} +1 -1
- package/dist/chunks/chunk-B6AHOHTE.mjs +14 -0
- package/dist/chunks/{chunk-X4O4PDUX.mjs → chunk-HQZNMKDF.mjs} +1 -1
- package/dist/chunks/{chunk-Y3OLIW3R.mjs → chunk-JGHPELIU.mjs} +8 -4
- package/dist/chunks/{chunk-XYTASRXU.mjs → chunk-TR5OECTS.mjs} +1 -1
- package/dist/chunks/{chunk-K66PAL7H.mjs → chunk-YHXIMP5W.mjs} +1 -1
- package/dist/contract/content.mjs +2 -2
- package/dist/contract/fields.d.ts +4 -1
- package/dist/contract/fields.mjs +1 -1
- package/dist/contract/forms.mjs +2 -2
- package/dist/contract/index.d.ts +17 -0
- package/dist/contract/index.mjs +6 -5
- package/dist/contract/location.d.ts +17 -0
- package/dist/contract/location.mjs +10 -0
- package/dist/contract/resend.mjs +2 -2
- package/dist/contract.mjs +6 -5
- package/dist/functions/apiClient.mjs +6 -5
- package/dist/types/users.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
publicProcedure
|
|
3
|
+
} from "./chunk-RQBWI27C.mjs";
|
|
4
|
+
import {
|
|
5
|
+
WahaUserLocation
|
|
6
|
+
} from "./chunk-AOV74NGM.mjs";
|
|
7
|
+
|
|
8
|
+
// contract/location.ts
|
|
9
|
+
var get = publicProcedure.route({ method: "GET", path: "/location" }).output(WahaUserLocation);
|
|
10
|
+
var location = { get };
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
location
|
|
14
|
+
};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
forms
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2MRJ3NHH.mjs";
|
|
4
|
+
import {
|
|
5
|
+
location
|
|
6
|
+
} from "./chunk-B6AHOHTE.mjs";
|
|
4
7
|
import {
|
|
5
8
|
resend
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HQZNMKDF.mjs";
|
|
7
10
|
import {
|
|
8
11
|
content
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YHXIMP5W.mjs";
|
|
10
13
|
import {
|
|
11
14
|
donations
|
|
12
15
|
} from "./chunk-WABRK7MS.mjs";
|
|
@@ -16,7 +19,8 @@ var contract = {
|
|
|
16
19
|
resend,
|
|
17
20
|
donations,
|
|
18
21
|
forms,
|
|
19
|
-
content
|
|
22
|
+
content,
|
|
23
|
+
location
|
|
20
24
|
};
|
|
21
25
|
|
|
22
26
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// contract/fields.ts
|
|
2
2
|
import z from "zod";
|
|
3
3
|
var QueryBoolean = z.union([z.boolean(), z.stringbool()]);
|
|
4
|
-
var Email = z.string().trim().pipe(z.email());
|
|
4
|
+
var Email = z.string().trim().toLowerCase().pipe(z.email());
|
|
5
5
|
var Name = z.string().trim().max(200);
|
|
6
6
|
|
|
7
7
|
export {
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
ContentLanguagesResponse,
|
|
4
4
|
MicroLessonsResponse,
|
|
5
5
|
content
|
|
6
|
-
} from "../chunks/chunk-
|
|
7
|
-
import "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-YHXIMP5W.mjs";
|
|
7
|
+
import "../chunks/chunk-TR5OECTS.mjs";
|
|
8
8
|
import "../chunks/chunk-RQBWI27C.mjs";
|
|
9
9
|
import "../chunks/chunk-NCJ6KJVG.mjs";
|
|
10
10
|
import "../chunks/chunk-AJDVACGU.mjs";
|
|
@@ -5,7 +5,10 @@ import z from 'zod';
|
|
|
5
5
|
* callers still pass a real boolean.
|
|
6
6
|
*/
|
|
7
7
|
export declare const QueryBoolean: z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>;
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* An email address someone typed into a form. Lowercased, so the same address
|
|
10
|
+
* typed differently matches one contact.
|
|
11
|
+
*/
|
|
9
12
|
export declare const Email: z.ZodPipe<z.ZodString, z.ZodEmail>;
|
|
10
13
|
/** A person's name as they typed it. */
|
|
11
14
|
export declare const Name: z.ZodString;
|
package/dist/contract/fields.mjs
CHANGED
package/dist/contract/forms.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
VolunteerFormBody,
|
|
5
5
|
VolunteerInvolvement,
|
|
6
6
|
forms
|
|
7
|
-
} from "../chunks/chunk-
|
|
8
|
-
import "../chunks/chunk-
|
|
7
|
+
} from "../chunks/chunk-2MRJ3NHH.mjs";
|
|
8
|
+
import "../chunks/chunk-TR5OECTS.mjs";
|
|
9
9
|
import "../chunks/chunk-RQBWI27C.mjs";
|
|
10
10
|
import "../chunks/chunk-NCJ6KJVG.mjs";
|
|
11
11
|
import "../chunks/chunk-XIRJNFTI.mjs";
|
package/dist/contract/index.d.ts
CHANGED
|
@@ -613,6 +613,23 @@ export declare const contract: {
|
|
|
613
613
|
};
|
|
614
614
|
}>, ApiMeta & Record<never, never>>;
|
|
615
615
|
};
|
|
616
|
+
location: {
|
|
617
|
+
get: import("@orpc/contract", { with: { "resolution-mode": "import" } }).ContractProcedureBuilderWithOutput<import("@orpc/contract", { with: { "resolution-mode": "import" } }).Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
618
|
+
city: import("zod").ZodOptional<import("zod").ZodString>;
|
|
619
|
+
country: import("zod").ZodOptional<import("zod").ZodString>;
|
|
620
|
+
region: import("zod").ZodOptional<import("zod").ZodString>;
|
|
621
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract", { with: { "resolution-mode": "import" } }).MergedErrorMap<Record<never, never>, {
|
|
622
|
+
BAD_REQUEST: {
|
|
623
|
+
status: number;
|
|
624
|
+
data: import("zod").ZodObject<{
|
|
625
|
+
issues: import("zod").ZodArray<import("zod").ZodObject<{
|
|
626
|
+
message: import("zod").ZodString;
|
|
627
|
+
path: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>>;
|
|
628
|
+
}, import("zod/v4/core").$strip>>;
|
|
629
|
+
}, import("zod/v4/core").$strip>;
|
|
630
|
+
};
|
|
631
|
+
}>, ApiMeta & Record<never, never>>;
|
|
632
|
+
};
|
|
616
633
|
};
|
|
617
634
|
/**
|
|
618
635
|
* Per-call options a client passes as `{ context }`, for credentials that
|
package/dist/contract/index.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
contract
|
|
3
|
-
} from "../chunks/chunk-
|
|
4
|
-
import "../chunks/chunk-
|
|
5
|
-
import "../chunks/chunk-
|
|
6
|
-
import "../chunks/chunk-
|
|
7
|
-
import "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-JGHPELIU.mjs";
|
|
4
|
+
import "../chunks/chunk-2MRJ3NHH.mjs";
|
|
5
|
+
import "../chunks/chunk-B6AHOHTE.mjs";
|
|
6
|
+
import "../chunks/chunk-HQZNMKDF.mjs";
|
|
7
|
+
import "../chunks/chunk-YHXIMP5W.mjs";
|
|
8
|
+
import "../chunks/chunk-TR5OECTS.mjs";
|
|
8
9
|
import "../chunks/chunk-WABRK7MS.mjs";
|
|
9
10
|
import "../chunks/chunk-RQBWI27C.mjs";
|
|
10
11
|
import "../chunks/chunk-NCJ6KJVG.mjs";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const location: {
|
|
2
|
+
get: import("@orpc/contract", { with: { "resolution-mode": "import" } }).ContractProcedureBuilderWithOutput<import("@orpc/contract", { with: { "resolution-mode": "import" } }).Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
3
|
+
city: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
+
country: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5
|
+
region: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract", { with: { "resolution-mode": "import" } }).MergedErrorMap<Record<never, never>, {
|
|
7
|
+
BAD_REQUEST: {
|
|
8
|
+
status: number;
|
|
9
|
+
data: import("zod").ZodObject<{
|
|
10
|
+
issues: import("zod").ZodArray<import("zod").ZodObject<{
|
|
11
|
+
message: import("zod").ZodString;
|
|
12
|
+
path: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>>;
|
|
13
|
+
}, import("zod/v4/core").$strip>>;
|
|
14
|
+
}, import("zod/v4/core").$strip>;
|
|
15
|
+
};
|
|
16
|
+
}>, import("./procedure").ApiMeta & Record<never, never>>;
|
|
17
|
+
};
|
package/dist/contract/resend.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
SubscribeDripBody,
|
|
5
5
|
UnsubscribeBody,
|
|
6
6
|
resend
|
|
7
|
-
} from "../chunks/chunk-
|
|
8
|
-
import "../chunks/chunk-
|
|
7
|
+
} from "../chunks/chunk-HQZNMKDF.mjs";
|
|
8
|
+
import "../chunks/chunk-TR5OECTS.mjs";
|
|
9
9
|
import "../chunks/chunk-RQBWI27C.mjs";
|
|
10
10
|
import "../chunks/chunk-NCJ6KJVG.mjs";
|
|
11
11
|
import "../chunks/chunk-IIGS6PNG.mjs";
|
package/dist/contract.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
contract
|
|
3
|
-
} from "./chunks/chunk-
|
|
4
|
-
import "./chunks/chunk-
|
|
5
|
-
import "./chunks/chunk-
|
|
6
|
-
import "./chunks/chunk-
|
|
7
|
-
import "./chunks/chunk-
|
|
3
|
+
} from "./chunks/chunk-JGHPELIU.mjs";
|
|
4
|
+
import "./chunks/chunk-2MRJ3NHH.mjs";
|
|
5
|
+
import "./chunks/chunk-B6AHOHTE.mjs";
|
|
6
|
+
import "./chunks/chunk-HQZNMKDF.mjs";
|
|
7
|
+
import "./chunks/chunk-YHXIMP5W.mjs";
|
|
8
|
+
import "./chunks/chunk-TR5OECTS.mjs";
|
|
8
9
|
import "./chunks/chunk-WABRK7MS.mjs";
|
|
9
10
|
import "./chunks/chunk-RQBWI27C.mjs";
|
|
10
11
|
import "./chunks/chunk-NCJ6KJVG.mjs";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
contract
|
|
3
|
-
} from "../chunks/chunk-
|
|
4
|
-
import "../chunks/chunk-
|
|
5
|
-
import "../chunks/chunk-
|
|
6
|
-
import "../chunks/chunk-
|
|
7
|
-
import "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-JGHPELIU.mjs";
|
|
4
|
+
import "../chunks/chunk-2MRJ3NHH.mjs";
|
|
5
|
+
import "../chunks/chunk-B6AHOHTE.mjs";
|
|
6
|
+
import "../chunks/chunk-HQZNMKDF.mjs";
|
|
7
|
+
import "../chunks/chunk-YHXIMP5W.mjs";
|
|
8
|
+
import "../chunks/chunk-TR5OECTS.mjs";
|
|
8
9
|
import "../chunks/chunk-WABRK7MS.mjs";
|
|
9
10
|
import {
|
|
10
11
|
ApiAuth,
|
package/dist/types/users.d.ts
CHANGED
|
@@ -153,8 +153,8 @@ export declare const WahaUserFields: {
|
|
|
153
153
|
name: "name";
|
|
154
154
|
email: "email";
|
|
155
155
|
meet: "meet";
|
|
156
|
-
wahaUserId: "wahaUserId";
|
|
157
156
|
location: "location";
|
|
157
|
+
wahaUserId: "wahaUserId";
|
|
158
158
|
phoneNumber: "phoneNumber";
|
|
159
159
|
isInAGroup: "isInAGroup";
|
|
160
160
|
hasDonated: "hasDonated";
|
|
@@ -315,12 +315,12 @@ export declare const LegacyWahaUserFields: {
|
|
|
315
315
|
platform: "platform";
|
|
316
316
|
email: "email";
|
|
317
317
|
meet: "meet";
|
|
318
|
+
location: "location";
|
|
318
319
|
completions: "completions";
|
|
319
320
|
meetFavorites: "meetFavorites";
|
|
320
321
|
trainingUnlocked: "trainingUnlocked";
|
|
321
322
|
appVersion: "appVersion";
|
|
322
323
|
wahaUserId: "wahaUserId";
|
|
323
|
-
location: "location";
|
|
324
324
|
phoneNumber: "phoneNumber";
|
|
325
325
|
isInAGroup: "isInAGroup";
|
|
326
326
|
hasDonated: "hasDonated";
|