controlresell 2.25.1 → 2.25.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/package.json +1 -1
- package/src/com/controlresell/api/requests/coach/AskCoachRequest.d.ts +22 -0
- package/src/com/controlresell/api/requests/coach/AskCoachRequest.d.ts.map +1 -0
- package/src/com/controlresell/api/requests/coach/AskCoachRequest.js +9 -0
- package/src/com/controlresell/api/requests/coach/AskCoachRequest.js.map +1 -0
- package/src/com/controlresell/api/requests/coach/AskCoachRequest.ts +10 -0
- package/src/com/controlresell/api/requests/coach/CoachUploadRequest.d.ts +16 -0
- package/src/com/controlresell/api/requests/coach/CoachUploadRequest.d.ts.map +1 -0
- package/src/com/controlresell/api/requests/coach/CoachUploadRequest.js +7 -0
- package/src/com/controlresell/api/requests/coach/CoachUploadRequest.js.map +1 -0
- package/src/com/controlresell/api/requests/coach/CoachUploadRequest.ts +8 -0
- package/src/com/controlresell/api/requests/coach/EscalateCoachRequest.d.ts +13 -0
- package/src/com/controlresell/api/requests/coach/EscalateCoachRequest.d.ts.map +1 -0
- package/src/com/controlresell/api/requests/coach/EscalateCoachRequest.js +6 -0
- package/src/com/controlresell/api/requests/coach/EscalateCoachRequest.js.map +1 -0
- package/src/com/controlresell/api/requests/coach/EscalateCoachRequest.ts +7 -0
- package/src/com/controlresell/api/requests/coach/MarkCoachReadRequest.d.ts +10 -0
- package/src/com/controlresell/api/requests/coach/MarkCoachReadRequest.d.ts.map +1 -0
- package/src/com/controlresell/api/requests/coach/MarkCoachReadRequest.js +5 -0
- package/src/com/controlresell/api/requests/coach/MarkCoachReadRequest.js.map +1 -0
- package/src/com/controlresell/api/requests/coach/MarkCoachReadRequest.ts +6 -0
- package/src/com/controlresell/api/responses/coach/CoachAnswerResponse.d.ts +31 -0
- package/src/com/controlresell/api/responses/coach/CoachAnswerResponse.d.ts.map +1 -0
- package/src/com/controlresell/api/responses/coach/CoachAnswerResponse.js +12 -0
- package/src/com/controlresell/api/responses/coach/CoachAnswerResponse.js.map +1 -0
- package/src/com/controlresell/api/responses/coach/CoachAnswerResponse.ts +13 -0
- package/src/com/controlresell/api/responses/coach/CoachMessageResponse.d.ts +22 -0
- package/src/com/controlresell/api/responses/coach/CoachMessageResponse.d.ts.map +1 -0
- package/src/com/controlresell/api/responses/coach/CoachMessageResponse.js +9 -0
- package/src/com/controlresell/api/responses/coach/CoachMessageResponse.js.map +1 -0
- package/src/com/controlresell/api/responses/coach/CoachMessageResponse.ts +10 -0
- package/src/com/controlresell/api/responses/coach/CoachThreadResponse.d.ts +67 -0
- package/src/com/controlresell/api/responses/coach/CoachThreadResponse.d.ts.map +1 -0
- package/src/com/controlresell/api/responses/coach/CoachThreadResponse.js +15 -0
- package/src/com/controlresell/api/responses/coach/CoachThreadResponse.js.map +1 -0
- package/src/com/controlresell/api/responses/coach/CoachThreadResponse.ts +16 -0
- package/src/com/controlresell/api/responses/coach/CoachThreadsResponse.d.ts +110 -0
- package/src/com/controlresell/api/responses/coach/CoachThreadsResponse.d.ts.map +1 -0
- package/src/com/controlresell/api/responses/coach/CoachThreadsResponse.js +7 -0
- package/src/com/controlresell/api/responses/coach/CoachThreadsResponse.js.map +1 -0
- package/src/com/controlresell/api/responses/coach/CoachThreadsResponse.ts +8 -0
- package/src/com/controlresell/api/responses/coach/CoachUploadResponse.d.ts +13 -0
- package/src/com/controlresell/api/responses/coach/CoachUploadResponse.d.ts.map +1 -0
- package/src/com/controlresell/api/responses/coach/CoachUploadResponse.js +6 -0
- package/src/com/controlresell/api/responses/coach/CoachUploadResponse.js.map +1 -0
- package/src/com/controlresell/api/responses/coach/CoachUploadResponse.ts +7 -0
- package/src/com/controlresell/models/subscriptions/UserLimits.d.ts +49 -0
- package/src/com/controlresell/models/subscriptions/UserLimits.d.ts.map +1 -1
- package/src/com/controlresell/models/subscriptions/UserLimits.js +2 -1
- package/src/com/controlresell/models/subscriptions/UserLimits.js.map +1 -1
- package/src/com/controlresell/models/subscriptions/UserLimits.ts +2 -1
- package/src/com/controlresell/models/users/ws/UserLimitsUpdate.d.ts +67 -0
- package/src/com/controlresell/models/users/ws/UserLimitsUpdate.d.ts.map +1 -1
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +222 -0
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
- package/src/com/controlresell/models/users/ws/UserWsPayload.js +18 -0
- package/src/com/controlresell/models/users/ws/UserWsPayload.js.map +1 -1
- package/src/com/controlresell/models/users/ws/UserWsPayload.ts +22 -0
- package/src/index.d.ts +9 -0
- package/src/index.d.ts.map +1 -1
- package/src/index.js +9 -0
- package/src/index.js.map +1 -1
- package/src/index.ts +9 -0
package/package.json
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const AskCoachRequestSchema: z.ZodObject<{
|
|
3
|
+
question: z.ZodString;
|
|
4
|
+
kind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
threadRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
question: string;
|
|
10
|
+
threadRef?: string | null | undefined;
|
|
11
|
+
attachments?: string[] | null | undefined;
|
|
12
|
+
kind?: string | null | undefined;
|
|
13
|
+
topic?: string | null | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
question: string;
|
|
16
|
+
threadRef?: string | null | undefined;
|
|
17
|
+
attachments?: string[] | null | undefined;
|
|
18
|
+
kind?: string | null | undefined;
|
|
19
|
+
topic?: string | null | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
export type AskCoachRequest = z.infer<typeof AskCoachRequestSchema>;
|
|
22
|
+
//# sourceMappingURL=AskCoachRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AskCoachRequest.d.ts","sourceRoot":"","sources":["AskCoachRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;EAMhC,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const AskCoachRequestSchema = z.object({
|
|
3
|
+
question: z.string(),
|
|
4
|
+
kind: z.string().nullish(),
|
|
5
|
+
topic: z.string().nullish(),
|
|
6
|
+
threadRef: z.string().nullish(),
|
|
7
|
+
attachments: z.array(z.string()).nullish()
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=AskCoachRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AskCoachRequest.js","sourceRoot":"","sources":["AskCoachRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC1B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC3B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC/B,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;CAC7C,CAAC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
|
|
3
|
+
export const AskCoachRequestSchema = z.object({
|
|
4
|
+
question: z.string(),
|
|
5
|
+
kind: z.string().nullish(),
|
|
6
|
+
topic: z.string().nullish(),
|
|
7
|
+
threadRef: z.string().nullish(),
|
|
8
|
+
attachments: z.array(z.string()).nullish()
|
|
9
|
+
})
|
|
10
|
+
export type AskCoachRequest = z.infer<typeof AskCoachRequestSchema>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CoachUploadRequestSchema: z.ZodObject<{
|
|
3
|
+
filename: z.ZodString;
|
|
4
|
+
contentType: z.ZodString;
|
|
5
|
+
contentLength: z.ZodNumber;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
filename: string;
|
|
8
|
+
contentType: string;
|
|
9
|
+
contentLength: number;
|
|
10
|
+
}, {
|
|
11
|
+
filename: string;
|
|
12
|
+
contentType: string;
|
|
13
|
+
contentLength: number;
|
|
14
|
+
}>;
|
|
15
|
+
export type CoachUploadRequest = z.infer<typeof CoachUploadRequestSchema>;
|
|
16
|
+
//# sourceMappingURL=CoachUploadRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoachUploadRequest.d.ts","sourceRoot":"","sources":["CoachUploadRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoachUploadRequest.js","sourceRoot":"","sources":["CoachUploadRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const EscalateCoachRequestSchema: z.ZodObject<{
|
|
3
|
+
threadId: z.ZodNumber;
|
|
4
|
+
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
threadId: number;
|
|
7
|
+
note?: string | null | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
threadId: number;
|
|
10
|
+
note?: string | null | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export type EscalateCoachRequest = z.infer<typeof EscalateCoachRequestSchema>;
|
|
13
|
+
//# sourceMappingURL=EscalateCoachRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EscalateCoachRequest.d.ts","sourceRoot":"","sources":["EscalateCoachRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,0BAA0B;;;;;;;;;EAGrC,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EscalateCoachRequest.js","sourceRoot":"","sources":["EscalateCoachRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;CAC7B,CAAC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const MarkCoachReadRequestSchema: z.ZodObject<{
|
|
3
|
+
threadRef: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
threadRef: string;
|
|
6
|
+
}, {
|
|
7
|
+
threadRef: string;
|
|
8
|
+
}>;
|
|
9
|
+
export type MarkCoachReadRequest = z.infer<typeof MarkCoachReadRequestSchema>;
|
|
10
|
+
//# sourceMappingURL=MarkCoachReadRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkCoachReadRequest.d.ts","sourceRoot":"","sources":["MarkCoachReadRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,0BAA0B;;;;;;EAErC,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkCoachReadRequest.js","sourceRoot":"","sources":["MarkCoachReadRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CoachAnswerResponseSchema: z.ZodObject<{
|
|
3
|
+
threadId: z.ZodNumber;
|
|
4
|
+
threadRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
kind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
answer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
suggestHuman: z.ZodBoolean;
|
|
8
|
+
escalated: z.ZodBoolean;
|
|
9
|
+
wait: z.ZodString;
|
|
10
|
+
steps: z.ZodArray<z.ZodString, "many">;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
threadId: number;
|
|
13
|
+
suggestHuman: boolean;
|
|
14
|
+
escalated: boolean;
|
|
15
|
+
wait: string;
|
|
16
|
+
steps: string[];
|
|
17
|
+
threadRef?: string | null | undefined;
|
|
18
|
+
kind?: string | null | undefined;
|
|
19
|
+
answer?: string | null | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
threadId: number;
|
|
22
|
+
suggestHuman: boolean;
|
|
23
|
+
escalated: boolean;
|
|
24
|
+
wait: string;
|
|
25
|
+
steps: string[];
|
|
26
|
+
threadRef?: string | null | undefined;
|
|
27
|
+
kind?: string | null | undefined;
|
|
28
|
+
answer?: string | null | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export type CoachAnswerResponse = z.infer<typeof CoachAnswerResponseSchema>;
|
|
31
|
+
//# sourceMappingURL=CoachAnswerResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoachAnswerResponse.d.ts","sourceRoot":"","sources":["CoachAnswerResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;EASpC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const CoachAnswerResponseSchema = z.object({
|
|
3
|
+
threadId: z.number(),
|
|
4
|
+
threadRef: z.string().nullish(),
|
|
5
|
+
kind: z.string().nullish(),
|
|
6
|
+
answer: z.string().nullish(),
|
|
7
|
+
suggestHuman: z.boolean(),
|
|
8
|
+
escalated: z.boolean(),
|
|
9
|
+
wait: z.string(),
|
|
10
|
+
steps: z.array(z.string())
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=CoachAnswerResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoachAnswerResponse.js","sourceRoot":"","sources":["CoachAnswerResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC1B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC5B,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;IACzB,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC7B,CAAC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
|
|
3
|
+
export const CoachAnswerResponseSchema = z.object({
|
|
4
|
+
threadId: z.number(),
|
|
5
|
+
threadRef: z.string().nullish(),
|
|
6
|
+
kind: z.string().nullish(),
|
|
7
|
+
answer: z.string().nullish(),
|
|
8
|
+
suggestHuman: z.boolean(),
|
|
9
|
+
escalated: z.boolean(),
|
|
10
|
+
wait: z.string(),
|
|
11
|
+
steps: z.array(z.string())
|
|
12
|
+
})
|
|
13
|
+
export type CoachAnswerResponse = z.infer<typeof CoachAnswerResponseSchema>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CoachMessageResponseSchema: z.ZodObject<{
|
|
3
|
+
author: z.ZodString;
|
|
4
|
+
authorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
body: z.ZodString;
|
|
6
|
+
attachments: z.ZodArray<z.ZodString, "many">;
|
|
7
|
+
createdAt: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
createdAt: string;
|
|
10
|
+
body: string;
|
|
11
|
+
author: string;
|
|
12
|
+
attachments: string[];
|
|
13
|
+
authorName?: string | null | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
createdAt: string;
|
|
16
|
+
body: string;
|
|
17
|
+
author: string;
|
|
18
|
+
attachments: string[];
|
|
19
|
+
authorName?: string | null | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
export type CoachMessageResponse = z.infer<typeof CoachMessageResponseSchema>;
|
|
22
|
+
//# sourceMappingURL=CoachMessageResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoachMessageResponse.d.ts","sourceRoot":"","sources":["CoachMessageResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;EAMrC,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const CoachMessageResponseSchema = z.object({
|
|
3
|
+
author: z.string(),
|
|
4
|
+
authorName: z.string().nullish(),
|
|
5
|
+
body: z.string(),
|
|
6
|
+
attachments: z.array(z.string()),
|
|
7
|
+
createdAt: z.string()
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=CoachMessageResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoachMessageResponse.js","sourceRoot":"","sources":["CoachMessageResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAChC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
|
|
3
|
+
export const CoachMessageResponseSchema = z.object({
|
|
4
|
+
author: z.string(),
|
|
5
|
+
authorName: z.string().nullish(),
|
|
6
|
+
body: z.string(),
|
|
7
|
+
attachments: z.array(z.string()),
|
|
8
|
+
createdAt: z.string()
|
|
9
|
+
})
|
|
10
|
+
export type CoachMessageResponse = z.infer<typeof CoachMessageResponseSchema>
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CoachThreadResponseSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
threadRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
kind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
subject: z.ZodString;
|
|
7
|
+
status: z.ZodString;
|
|
8
|
+
awaitingCoach: z.ZodBoolean;
|
|
9
|
+
unread: z.ZodBoolean;
|
|
10
|
+
createdAt: z.ZodString;
|
|
11
|
+
updatedAt: z.ZodString;
|
|
12
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
13
|
+
author: z.ZodString;
|
|
14
|
+
authorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
body: z.ZodString;
|
|
16
|
+
attachments: z.ZodArray<z.ZodString, "many">;
|
|
17
|
+
createdAt: z.ZodString;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
createdAt: string;
|
|
20
|
+
body: string;
|
|
21
|
+
author: string;
|
|
22
|
+
attachments: string[];
|
|
23
|
+
authorName?: string | null | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
createdAt: string;
|
|
26
|
+
body: string;
|
|
27
|
+
author: string;
|
|
28
|
+
attachments: string[];
|
|
29
|
+
authorName?: string | null | undefined;
|
|
30
|
+
}>, "many">;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
status: string;
|
|
33
|
+
id: number;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
messages: {
|
|
36
|
+
createdAt: string;
|
|
37
|
+
body: string;
|
|
38
|
+
author: string;
|
|
39
|
+
attachments: string[];
|
|
40
|
+
authorName?: string | null | undefined;
|
|
41
|
+
}[];
|
|
42
|
+
unread: boolean;
|
|
43
|
+
updatedAt: string;
|
|
44
|
+
subject: string;
|
|
45
|
+
awaitingCoach: boolean;
|
|
46
|
+
threadRef?: string | null | undefined;
|
|
47
|
+
kind?: string | null | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
status: string;
|
|
50
|
+
id: number;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
messages: {
|
|
53
|
+
createdAt: string;
|
|
54
|
+
body: string;
|
|
55
|
+
author: string;
|
|
56
|
+
attachments: string[];
|
|
57
|
+
authorName?: string | null | undefined;
|
|
58
|
+
}[];
|
|
59
|
+
unread: boolean;
|
|
60
|
+
updatedAt: string;
|
|
61
|
+
subject: string;
|
|
62
|
+
awaitingCoach: boolean;
|
|
63
|
+
threadRef?: string | null | undefined;
|
|
64
|
+
kind?: string | null | undefined;
|
|
65
|
+
}>;
|
|
66
|
+
export type CoachThreadResponse = z.infer<typeof CoachThreadResponseSchema>;
|
|
67
|
+
//# sourceMappingURL=CoachThreadResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoachThreadResponse.d.ts","sourceRoot":"","sources":["CoachThreadResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWpC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { CoachMessageResponseSchema } from "./CoachMessageResponse";
|
|
3
|
+
export const CoachThreadResponseSchema = z.object({
|
|
4
|
+
id: z.number(),
|
|
5
|
+
threadRef: z.string().nullish(),
|
|
6
|
+
kind: z.string().nullish(),
|
|
7
|
+
subject: z.string(),
|
|
8
|
+
status: z.string(),
|
|
9
|
+
awaitingCoach: z.boolean(),
|
|
10
|
+
unread: z.boolean(),
|
|
11
|
+
createdAt: z.string(),
|
|
12
|
+
updatedAt: z.string(),
|
|
13
|
+
messages: z.array(CoachMessageResponseSchema)
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=CoachThreadResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoachThreadResponse.js","sourceRoot":"","sources":["CoachThreadResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AACrB,OAAO,EAAC,0BAA0B,EAAC,MAAM,wBAAwB,CAAA;AAEjE,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC1B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE;IAC1B,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC;CAChD,CAAC,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {CoachMessageResponseSchema} from "./CoachMessageResponse"
|
|
3
|
+
|
|
4
|
+
export const CoachThreadResponseSchema = z.object({
|
|
5
|
+
id: z.number(),
|
|
6
|
+
threadRef: z.string().nullish(),
|
|
7
|
+
kind: z.string().nullish(),
|
|
8
|
+
subject: z.string(),
|
|
9
|
+
status: z.string(),
|
|
10
|
+
awaitingCoach: z.boolean(),
|
|
11
|
+
unread: z.boolean(),
|
|
12
|
+
createdAt: z.string(),
|
|
13
|
+
updatedAt: z.string(),
|
|
14
|
+
messages: z.array(CoachMessageResponseSchema)
|
|
15
|
+
})
|
|
16
|
+
export type CoachThreadResponse = z.infer<typeof CoachThreadResponseSchema>
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CoachThreadsResponseSchema: z.ZodObject<{
|
|
3
|
+
threads: z.ZodArray<z.ZodObject<{
|
|
4
|
+
id: z.ZodNumber;
|
|
5
|
+
threadRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
kind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
subject: z.ZodString;
|
|
8
|
+
status: z.ZodString;
|
|
9
|
+
awaitingCoach: z.ZodBoolean;
|
|
10
|
+
unread: z.ZodBoolean;
|
|
11
|
+
createdAt: z.ZodString;
|
|
12
|
+
updatedAt: z.ZodString;
|
|
13
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
14
|
+
author: z.ZodString;
|
|
15
|
+
authorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
body: z.ZodString;
|
|
17
|
+
attachments: z.ZodArray<z.ZodString, "many">;
|
|
18
|
+
createdAt: z.ZodString;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
createdAt: string;
|
|
21
|
+
body: string;
|
|
22
|
+
author: string;
|
|
23
|
+
attachments: string[];
|
|
24
|
+
authorName?: string | null | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
createdAt: string;
|
|
27
|
+
body: string;
|
|
28
|
+
author: string;
|
|
29
|
+
attachments: string[];
|
|
30
|
+
authorName?: string | null | undefined;
|
|
31
|
+
}>, "many">;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
status: string;
|
|
34
|
+
id: number;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
messages: {
|
|
37
|
+
createdAt: string;
|
|
38
|
+
body: string;
|
|
39
|
+
author: string;
|
|
40
|
+
attachments: string[];
|
|
41
|
+
authorName?: string | null | undefined;
|
|
42
|
+
}[];
|
|
43
|
+
unread: boolean;
|
|
44
|
+
updatedAt: string;
|
|
45
|
+
subject: string;
|
|
46
|
+
awaitingCoach: boolean;
|
|
47
|
+
threadRef?: string | null | undefined;
|
|
48
|
+
kind?: string | null | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
status: string;
|
|
51
|
+
id: number;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
messages: {
|
|
54
|
+
createdAt: string;
|
|
55
|
+
body: string;
|
|
56
|
+
author: string;
|
|
57
|
+
attachments: string[];
|
|
58
|
+
authorName?: string | null | undefined;
|
|
59
|
+
}[];
|
|
60
|
+
unread: boolean;
|
|
61
|
+
updatedAt: string;
|
|
62
|
+
subject: string;
|
|
63
|
+
awaitingCoach: boolean;
|
|
64
|
+
threadRef?: string | null | undefined;
|
|
65
|
+
kind?: string | null | undefined;
|
|
66
|
+
}>, "many">;
|
|
67
|
+
wait: z.ZodString;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
wait: string;
|
|
70
|
+
threads: {
|
|
71
|
+
status: string;
|
|
72
|
+
id: number;
|
|
73
|
+
createdAt: string;
|
|
74
|
+
messages: {
|
|
75
|
+
createdAt: string;
|
|
76
|
+
body: string;
|
|
77
|
+
author: string;
|
|
78
|
+
attachments: string[];
|
|
79
|
+
authorName?: string | null | undefined;
|
|
80
|
+
}[];
|
|
81
|
+
unread: boolean;
|
|
82
|
+
updatedAt: string;
|
|
83
|
+
subject: string;
|
|
84
|
+
awaitingCoach: boolean;
|
|
85
|
+
threadRef?: string | null | undefined;
|
|
86
|
+
kind?: string | null | undefined;
|
|
87
|
+
}[];
|
|
88
|
+
}, {
|
|
89
|
+
wait: string;
|
|
90
|
+
threads: {
|
|
91
|
+
status: string;
|
|
92
|
+
id: number;
|
|
93
|
+
createdAt: string;
|
|
94
|
+
messages: {
|
|
95
|
+
createdAt: string;
|
|
96
|
+
body: string;
|
|
97
|
+
author: string;
|
|
98
|
+
attachments: string[];
|
|
99
|
+
authorName?: string | null | undefined;
|
|
100
|
+
}[];
|
|
101
|
+
unread: boolean;
|
|
102
|
+
updatedAt: string;
|
|
103
|
+
subject: string;
|
|
104
|
+
awaitingCoach: boolean;
|
|
105
|
+
threadRef?: string | null | undefined;
|
|
106
|
+
kind?: string | null | undefined;
|
|
107
|
+
}[];
|
|
108
|
+
}>;
|
|
109
|
+
export type CoachThreadsResponse = z.infer<typeof CoachThreadsResponseSchema>;
|
|
110
|
+
//# sourceMappingURL=CoachThreadsResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoachThreadsResponse.d.ts","sourceRoot":"","sources":["CoachThreadsResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGrC,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { CoachThreadResponseSchema } from "./CoachThreadResponse";
|
|
3
|
+
export const CoachThreadsResponseSchema = z.object({
|
|
4
|
+
threads: z.array(CoachThreadResponseSchema),
|
|
5
|
+
wait: z.string()
|
|
6
|
+
});
|
|
7
|
+
//# sourceMappingURL=CoachThreadsResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoachThreadsResponse.js","sourceRoot":"","sources":["CoachThreadsResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AACrB,OAAO,EAAC,yBAAyB,EAAC,MAAM,uBAAuB,CAAA;AAE/D,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC;IAC3C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {CoachThreadResponseSchema} from "./CoachThreadResponse"
|
|
3
|
+
|
|
4
|
+
export const CoachThreadsResponseSchema = z.object({
|
|
5
|
+
threads: z.array(CoachThreadResponseSchema),
|
|
6
|
+
wait: z.string()
|
|
7
|
+
})
|
|
8
|
+
export type CoachThreadsResponse = z.infer<typeof CoachThreadsResponseSchema>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CoachUploadResponseSchema: z.ZodObject<{
|
|
3
|
+
uploadUrl: z.ZodString;
|
|
4
|
+
fileUrl: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
uploadUrl: string;
|
|
7
|
+
fileUrl: string;
|
|
8
|
+
}, {
|
|
9
|
+
uploadUrl: string;
|
|
10
|
+
fileUrl: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type CoachUploadResponse = z.infer<typeof CoachUploadResponseSchema>;
|
|
13
|
+
//# sourceMappingURL=CoachUploadResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoachUploadResponse.d.ts","sourceRoot":"","sources":["CoachUploadResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoachUploadResponse.js","sourceRoot":"","sources":["CoachUploadResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAA"}
|