shred-api-client 2.13.6 → 2.14.0
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/index.d.ts +524 -224
- package/dist/index.js +109 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -197,7 +197,7 @@ type Context = {
|
|
|
197
197
|
requestId?: string;
|
|
198
198
|
};
|
|
199
199
|
|
|
200
|
-
interface IAPI$
|
|
200
|
+
interface IAPI$g {
|
|
201
201
|
getPrompt: (c: Context) => Promise<Prompt>;
|
|
202
202
|
addScript: (c: Context, script: Partial<Script>) => Promise<Script>;
|
|
203
203
|
deleteScript: (c: Context, id: string) => Promise<boolean>;
|
|
@@ -205,7 +205,7 @@ interface IAPI$f {
|
|
|
205
205
|
generateScript: (c: Context, data: ScriptIARequest) => Promise<string>;
|
|
206
206
|
updateScript: (c: Context, id: string, script: Partial<Script>) => Promise<boolean>;
|
|
207
207
|
}
|
|
208
|
-
declare const Endpoints$
|
|
208
|
+
declare const Endpoints$f: {
|
|
209
209
|
GetPrompt: {
|
|
210
210
|
uri: string;
|
|
211
211
|
method: string;
|
|
@@ -232,15 +232,15 @@ declare const Endpoints$e: {
|
|
|
232
232
|
};
|
|
233
233
|
};
|
|
234
234
|
|
|
235
|
-
type index$
|
|
236
|
-
declare const index$
|
|
237
|
-
declare const index$
|
|
238
|
-
type index$
|
|
239
|
-
type index$
|
|
240
|
-
declare const index$
|
|
241
|
-
declare const index$
|
|
242
|
-
declare namespace index$
|
|
243
|
-
export { type index$
|
|
235
|
+
type index$i_Category = Category;
|
|
236
|
+
declare const index$i_CategorySchema: typeof CategorySchema;
|
|
237
|
+
declare const index$i_PromptSchema: typeof PromptSchema;
|
|
238
|
+
type index$i_Script = Script;
|
|
239
|
+
type index$i_ScriptIARequest = ScriptIARequest;
|
|
240
|
+
declare const index$i_ScriptIARequestSchema: typeof ScriptIARequestSchema;
|
|
241
|
+
declare const index$i_ScriptSchema: typeof ScriptSchema;
|
|
242
|
+
declare namespace index$i {
|
|
243
|
+
export { type index$i_Category as Category, index$i_CategorySchema as CategorySchema, Endpoints$f as Endpoints, type Prompt as Entity, type IAPI$g as IAPI, index$i_PromptSchema as PromptSchema, type index$i_Script as Script, type index$i_ScriptIARequest as ScriptIARequest, index$i_ScriptIARequestSchema as ScriptIARequestSchema, index$i_ScriptSchema as ScriptSchema };
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
declare enum Type {
|
|
@@ -595,7 +595,7 @@ type Plan = z.infer<typeof PlanSchema>;
|
|
|
595
595
|
type Product = z.infer<typeof ProductSchema>;
|
|
596
596
|
type PromoCode = z.infer<typeof PromoCodeSchema>;
|
|
597
597
|
|
|
598
|
-
interface IAPI$
|
|
598
|
+
interface IAPI$f {
|
|
599
599
|
getCharges: (ctx: Context) => Promise<Charge[]>;
|
|
600
600
|
getPortalUrl: (ctx: Context) => Promise<string>;
|
|
601
601
|
getSubscription: (context: Context, userId?: string) => Promise<Subscription | null>;
|
|
@@ -609,7 +609,7 @@ interface IAPI$e {
|
|
|
609
609
|
getSubscriptionsSummary: (ctx: Context) => Promise<SubscriptionSummary[]>;
|
|
610
610
|
listPromoCodes: (ctx: Context) => Promise<PromoCode[]>;
|
|
611
611
|
}
|
|
612
|
-
declare const Endpoints$
|
|
612
|
+
declare const Endpoints$e: {
|
|
613
613
|
GetPortal: {
|
|
614
614
|
uri: string;
|
|
615
615
|
method: string;
|
|
@@ -668,19 +668,19 @@ declare const Endpoints$d: {
|
|
|
668
668
|
};
|
|
669
669
|
};
|
|
670
670
|
|
|
671
|
-
type index$
|
|
672
|
-
declare const index$
|
|
673
|
-
type index$
|
|
674
|
-
declare const index$
|
|
675
|
-
type index$
|
|
676
|
-
declare const index$
|
|
677
|
-
type index$
|
|
678
|
-
declare const index$
|
|
679
|
-
declare const index$
|
|
680
|
-
type index$
|
|
681
|
-
declare const index$
|
|
682
|
-
declare namespace index$
|
|
683
|
-
export { type index$
|
|
671
|
+
type index$h_Charge = Charge;
|
|
672
|
+
declare const index$h_ChargeSchema: typeof ChargeSchema;
|
|
673
|
+
type index$h_Plan = Plan;
|
|
674
|
+
declare const index$h_PlanSchema: typeof PlanSchema;
|
|
675
|
+
type index$h_Product = Product;
|
|
676
|
+
declare const index$h_ProductSchema: typeof ProductSchema;
|
|
677
|
+
type index$h_PromoCode = PromoCode;
|
|
678
|
+
declare const index$h_SubscriptionSchema: typeof SubscriptionSchema;
|
|
679
|
+
declare const index$h_SubscriptionTypeSchema: typeof SubscriptionTypeSchema;
|
|
680
|
+
type index$h_Type = Type;
|
|
681
|
+
declare const index$h_Type: typeof Type;
|
|
682
|
+
declare namespace index$h {
|
|
683
|
+
export { type index$h_Charge as Charge, index$h_ChargeSchema as ChargeSchema, Endpoints$e as Endpoints, type Subscription as Entity, type IAPI$f as IAPI, type index$h_Plan as Plan, index$h_PlanSchema as PlanSchema, type index$h_Product as Product, index$h_ProductSchema as ProductSchema, type index$h_PromoCode as PromoCode, index$h_SubscriptionSchema as SubscriptionSchema, index$h_SubscriptionTypeSchema as SubscriptionTypeSchema, type SubscriptionSummary as Summary, index$h_Type as Type };
|
|
684
684
|
}
|
|
685
685
|
|
|
686
686
|
declare enum Role$1 {
|
|
@@ -873,16 +873,16 @@ type APIResponse<T> = {
|
|
|
873
873
|
perPage?: number;
|
|
874
874
|
};
|
|
875
875
|
|
|
876
|
-
type index$
|
|
877
|
-
type index$
|
|
878
|
-
type index$
|
|
879
|
-
type index$
|
|
880
|
-
type index$
|
|
881
|
-
declare namespace index$
|
|
882
|
-
export type { index$
|
|
876
|
+
type index$g_APIResponse<T> = APIResponse<T>;
|
|
877
|
+
type index$g_QueryFilterOp = QueryFilterOp;
|
|
878
|
+
type index$g_QueryOptions<T> = QueryOptions<T>;
|
|
879
|
+
type index$g_QueryOrderBy<T> = QueryOrderBy<T>;
|
|
880
|
+
type index$g_QueryWhere<T> = QueryWhere<T>;
|
|
881
|
+
declare namespace index$g {
|
|
882
|
+
export type { index$g_APIResponse as APIResponse, index$g_QueryFilterOp as QueryFilterOp, index$g_QueryOptions as QueryOptions, index$g_QueryOrderBy as QueryOrderBy, index$g_QueryWhere as QueryWhere };
|
|
883
883
|
}
|
|
884
884
|
|
|
885
|
-
interface IAPI$
|
|
885
|
+
interface IAPI$e {
|
|
886
886
|
getUserInfo: (context: Context) => Promise<User>;
|
|
887
887
|
isEmailAvaliable: (email: string) => Promise<boolean>;
|
|
888
888
|
sendValidationCode: (email: string) => Promise<boolean>;
|
|
@@ -899,7 +899,7 @@ interface IAPI$d {
|
|
|
899
899
|
search: (ctx: Context, query: QueryOptions<User>) => Promise<APIResponse<User>>;
|
|
900
900
|
createUser: (data: Create$2) => Promise<User>;
|
|
901
901
|
}
|
|
902
|
-
declare const Endpoints$
|
|
902
|
+
declare const Endpoints$d: {
|
|
903
903
|
ChangeEmail: {
|
|
904
904
|
uri: string;
|
|
905
905
|
method: string;
|
|
@@ -966,11 +966,11 @@ declare const Endpoints$c: {
|
|
|
966
966
|
};
|
|
967
967
|
};
|
|
968
968
|
|
|
969
|
-
type index$
|
|
970
|
-
declare const index$
|
|
971
|
-
declare const index$
|
|
972
|
-
declare namespace index$
|
|
973
|
-
export { type Create$2 as Create, Endpoints$
|
|
969
|
+
type index$f_System = System;
|
|
970
|
+
declare const index$f_System: typeof System;
|
|
971
|
+
declare const index$f_UserSchema: typeof UserSchema;
|
|
972
|
+
declare namespace index$f {
|
|
973
|
+
export { type Create$2 as Create, Endpoints$d as Endpoints, type User as Entity, type IAPI$e as IAPI, type Preferences$1 as Preferences, PreferencesSchema$1 as PreferencesSchema, Role$1 as Role, index$f_System as System, type Update$2 as Update, index$f_UserSchema as UserSchema };
|
|
974
974
|
}
|
|
975
975
|
|
|
976
976
|
declare const PreferencesSchema: z.ZodObject<{
|
|
@@ -1710,7 +1710,7 @@ type Tenant = z.infer<typeof TenantSchema>;
|
|
|
1710
1710
|
type Member = z.infer<typeof MemberSchema>;
|
|
1711
1711
|
type Preferences = z.infer<typeof PreferencesSchema>;
|
|
1712
1712
|
|
|
1713
|
-
interface IAPI$
|
|
1713
|
+
interface IAPI$d {
|
|
1714
1714
|
getByInviteCode: (code: string, context?: Context) => Promise<Tenant | null>;
|
|
1715
1715
|
create: (tenant: Tenant, context: Context) => Promise<boolean>;
|
|
1716
1716
|
/** Deleted tenants are left out unless `includeInactive` is true. */
|
|
@@ -1725,7 +1725,7 @@ interface IAPI$c {
|
|
|
1725
1725
|
interface ListOptions {
|
|
1726
1726
|
includeInactive?: boolean;
|
|
1727
1727
|
}
|
|
1728
|
-
declare const Endpoints$
|
|
1728
|
+
declare const Endpoints$c: {
|
|
1729
1729
|
GetByInviteCode: {
|
|
1730
1730
|
uri: string;
|
|
1731
1731
|
method: string;
|
|
@@ -1764,18 +1764,18 @@ declare const Endpoints$b: {
|
|
|
1764
1764
|
};
|
|
1765
1765
|
};
|
|
1766
1766
|
|
|
1767
|
-
type index$
|
|
1768
|
-
type index$
|
|
1769
|
-
declare const index$
|
|
1770
|
-
type index$
|
|
1771
|
-
declare const index$
|
|
1772
|
-
type index$
|
|
1773
|
-
declare const index$
|
|
1774
|
-
declare const index$
|
|
1775
|
-
type index$
|
|
1776
|
-
declare const index$
|
|
1777
|
-
declare namespace index$
|
|
1778
|
-
export { Action$1 as Action, Endpoints$
|
|
1767
|
+
type index$e_ListOptions = ListOptions;
|
|
1768
|
+
type index$e_Member = Member;
|
|
1769
|
+
declare const index$e_MemberSchema: typeof MemberSchema;
|
|
1770
|
+
type index$e_MemberUpdate = MemberUpdate;
|
|
1771
|
+
declare const index$e_MemberUpdateSchema: typeof MemberUpdateSchema;
|
|
1772
|
+
type index$e_Preferences = Preferences;
|
|
1773
|
+
declare const index$e_PreferencesSchema: typeof PreferencesSchema;
|
|
1774
|
+
declare const index$e_TenantSchema: typeof TenantSchema;
|
|
1775
|
+
type index$e_TenantUpdate = TenantUpdate;
|
|
1776
|
+
declare const index$e_TenantUpdateSchema: typeof TenantUpdateSchema;
|
|
1777
|
+
declare namespace index$e {
|
|
1778
|
+
export { Action$1 as Action, Endpoints$c as Endpoints, type Tenant as Entity, type IAPI$d as IAPI, type index$e_ListOptions as ListOptions, type index$e_Member as Member, index$e_MemberSchema as MemberSchema, type index$e_MemberUpdate as MemberUpdate, index$e_MemberUpdateSchema as MemberUpdateSchema, type index$e_Preferences as Preferences, index$e_PreferencesSchema as PreferencesSchema, index$e_TenantSchema as TenantSchema, type index$e_TenantUpdate as TenantUpdate, index$e_TenantUpdateSchema as TenantUpdateSchema };
|
|
1779
1779
|
}
|
|
1780
1780
|
|
|
1781
1781
|
declare const TrackParamSchema: z.ZodObject<{
|
|
@@ -1822,21 +1822,21 @@ declare const TrackSchema: z.ZodObject<{
|
|
|
1822
1822
|
type Track = z.infer<typeof TrackSchema>;
|
|
1823
1823
|
type TrackParam = z.infer<typeof TrackParamSchema>;
|
|
1824
1824
|
|
|
1825
|
-
interface IAPI$
|
|
1825
|
+
interface IAPI$c {
|
|
1826
1826
|
send: (t: Track) => Promise<boolean>;
|
|
1827
1827
|
}
|
|
1828
|
-
declare const Endpoints$
|
|
1828
|
+
declare const Endpoints$b: {
|
|
1829
1829
|
Track: {
|
|
1830
1830
|
uri: string;
|
|
1831
1831
|
method: string;
|
|
1832
1832
|
};
|
|
1833
1833
|
};
|
|
1834
1834
|
|
|
1835
|
-
type index$
|
|
1836
|
-
declare const index$
|
|
1837
|
-
declare const index$
|
|
1838
|
-
declare namespace index$
|
|
1839
|
-
export { Endpoints$
|
|
1835
|
+
type index$d_TrackParam = TrackParam;
|
|
1836
|
+
declare const index$d_TrackParamSchema: typeof TrackParamSchema;
|
|
1837
|
+
declare const index$d_TrackSchema: typeof TrackSchema;
|
|
1838
|
+
declare namespace index$d {
|
|
1839
|
+
export { Endpoints$b as Endpoints, type Track as Entity, type IAPI$c as IAPI, type index$d_TrackParam as TrackParam, index$d_TrackParamSchema as TrackParamSchema, index$d_TrackSchema as TrackSchema };
|
|
1840
1840
|
}
|
|
1841
1841
|
|
|
1842
1842
|
declare const EmailSchema: z.ZodObject<{
|
|
@@ -1854,19 +1854,19 @@ declare const EmailSchema: z.ZodObject<{
|
|
|
1854
1854
|
}>;
|
|
1855
1855
|
type Email = z.infer<typeof EmailSchema>;
|
|
1856
1856
|
|
|
1857
|
-
interface IAPI$
|
|
1857
|
+
interface IAPI$b {
|
|
1858
1858
|
send: (email: Email, ctx?: Context) => Promise<boolean>;
|
|
1859
1859
|
}
|
|
1860
|
-
declare const Endpoints$
|
|
1860
|
+
declare const Endpoints$a: {
|
|
1861
1861
|
SendEmail: {
|
|
1862
1862
|
uri: string;
|
|
1863
1863
|
method: string;
|
|
1864
1864
|
};
|
|
1865
1865
|
};
|
|
1866
1866
|
|
|
1867
|
-
declare const index$
|
|
1868
|
-
declare namespace index$
|
|
1869
|
-
export { index$
|
|
1867
|
+
declare const index$c_EmailSchema: typeof EmailSchema;
|
|
1868
|
+
declare namespace index$c {
|
|
1869
|
+
export { index$c_EmailSchema as EmailSchema, Endpoints$a as Endpoints, type Email as Entity, type IAPI$b as IAPI };
|
|
1870
1870
|
}
|
|
1871
1871
|
|
|
1872
1872
|
declare enum Status$1 {
|
|
@@ -2272,7 +2272,7 @@ type Feedback = z.infer<typeof FeedbackSchema>;
|
|
|
2272
2272
|
type Rating = z.infer<typeof RatingSchema>;
|
|
2273
2273
|
type RatingInput = Pick<Rating, "score" | "tags" | "comment">;
|
|
2274
2274
|
|
|
2275
|
-
interface IAPI$
|
|
2275
|
+
interface IAPI$a {
|
|
2276
2276
|
/** Single-use credential for the SSE stream, which cannot carry a header. */
|
|
2277
2277
|
streamTicket: (context: Context) => Promise<string>;
|
|
2278
2278
|
reorder: (context: Context, projectId: string, position: number) => Promise<boolean>;
|
|
@@ -2300,7 +2300,7 @@ interface IAPI$9 {
|
|
|
2300
2300
|
isEligibleForFreeProject(context: Context): Promise<boolean>;
|
|
2301
2301
|
};
|
|
2302
2302
|
}
|
|
2303
|
-
declare const Endpoints$
|
|
2303
|
+
declare const Endpoints$9: {
|
|
2304
2304
|
Reorder: {
|
|
2305
2305
|
uri: string;
|
|
2306
2306
|
method: string;
|
|
@@ -2431,33 +2431,33 @@ type StatusConfigType = {
|
|
|
2431
2431
|
};
|
|
2432
2432
|
declare const StatusConfig: Record<Status$1, StatusConfigType>;
|
|
2433
2433
|
|
|
2434
|
-
type index$
|
|
2435
|
-
type index$
|
|
2436
|
-
declare const index$
|
|
2437
|
-
type index$
|
|
2438
|
-
declare const index$
|
|
2439
|
-
type index$
|
|
2440
|
-
declare const index$
|
|
2441
|
-
type index$
|
|
2442
|
-
declare const index$
|
|
2443
|
-
type index$
|
|
2444
|
-
declare const index$
|
|
2445
|
-
type index$
|
|
2446
|
-
type index$
|
|
2447
|
-
declare const index$
|
|
2448
|
-
type index$
|
|
2449
|
-
declare const index$
|
|
2450
|
-
type index$
|
|
2451
|
-
declare const index$
|
|
2452
|
-
type index$
|
|
2453
|
-
type index$
|
|
2454
|
-
declare const index$
|
|
2455
|
-
type index$
|
|
2456
|
-
declare const index$
|
|
2457
|
-
type index$
|
|
2458
|
-
declare const index$
|
|
2459
|
-
declare namespace index$
|
|
2460
|
-
export { type index$
|
|
2434
|
+
type index$b_Approve = Approve;
|
|
2435
|
+
type index$b_CaptionStyle = CaptionStyle;
|
|
2436
|
+
declare const index$b_CaptionStyle: typeof CaptionStyle;
|
|
2437
|
+
type index$b_Feedback = Feedback;
|
|
2438
|
+
declare const index$b_FeedbackSchema: typeof FeedbackSchema;
|
|
2439
|
+
type index$b_Interaction = Interaction;
|
|
2440
|
+
declare const index$b_InteractionSchema: typeof InteractionSchema;
|
|
2441
|
+
type index$b_InteractionType = InteractionType;
|
|
2442
|
+
declare const index$b_InteractionType: typeof InteractionType;
|
|
2443
|
+
type index$b_ProjectCreation = ProjectCreation;
|
|
2444
|
+
declare const index$b_ProjectSchema: typeof ProjectSchema;
|
|
2445
|
+
type index$b_Rating = Rating;
|
|
2446
|
+
type index$b_RatingInput = RatingInput;
|
|
2447
|
+
declare const index$b_RatingSchema: typeof RatingSchema;
|
|
2448
|
+
type index$b_RatingTag = RatingTag;
|
|
2449
|
+
declare const index$b_RatingTag: typeof RatingTag;
|
|
2450
|
+
type index$b_SendToApproval = SendToApproval;
|
|
2451
|
+
declare const index$b_StatusConfig: typeof StatusConfig;
|
|
2452
|
+
type index$b_StatusConfigType = StatusConfigType;
|
|
2453
|
+
type index$b_StreamTicket = StreamTicket;
|
|
2454
|
+
declare const index$b_StreamTicketSchema: typeof StreamTicketSchema;
|
|
2455
|
+
type index$b_Style = Style;
|
|
2456
|
+
declare const index$b_Styles: typeof Styles;
|
|
2457
|
+
type index$b_TimelineItem = TimelineItem;
|
|
2458
|
+
declare const index$b_TimelineItemSchema: typeof TimelineItemSchema;
|
|
2459
|
+
declare namespace index$b {
|
|
2460
|
+
export { type index$b_Approve as Approve, index$b_CaptionStyle as CaptionStyle, Endpoints$9 as Endpoints, type Project as Entity, type index$b_Feedback as Feedback, index$b_FeedbackSchema as FeedbackSchema, type IAPI$a as IAPI, type index$b_Interaction as Interaction, index$b_InteractionSchema as InteractionSchema, index$b_InteractionType as InteractionType, type index$b_ProjectCreation as ProjectCreation, index$b_ProjectSchema as ProjectSchema, type index$b_Rating as Rating, type index$b_RatingInput as RatingInput, index$b_RatingSchema as RatingSchema, index$b_RatingTag as RatingTag, type index$b_SendToApproval as SendToApproval, Status$1 as Status, index$b_StatusConfig as StatusConfig, type index$b_StatusConfigType as StatusConfigType, type index$b_StreamTicket as StreamTicket, index$b_StreamTicketSchema as StreamTicketSchema, type index$b_Style as Style, index$b_Styles as Styles, type index$b_TimelineItem as TimelineItem, index$b_TimelineItemSchema as TimelineItemSchema };
|
|
2461
2461
|
}
|
|
2462
2462
|
|
|
2463
2463
|
declare const DailyMilestoneSchema: z.ZodObject<{
|
|
@@ -2529,11 +2529,11 @@ declare const GoalSchema: z.ZodObject<{
|
|
|
2529
2529
|
type DailyMilestone = z.infer<typeof DailyMilestoneSchema>;
|
|
2530
2530
|
type Goal = z.infer<typeof GoalSchema>;
|
|
2531
2531
|
|
|
2532
|
-
interface IAPI$
|
|
2532
|
+
interface IAPI$9 {
|
|
2533
2533
|
getGoals: (context: Context) => Promise<Goal[]>;
|
|
2534
2534
|
getEditorGoals: (context: Context, editorId: string) => Promise<Goal[]>;
|
|
2535
2535
|
}
|
|
2536
|
-
declare const Endpoints$
|
|
2536
|
+
declare const Endpoints$8: {
|
|
2537
2537
|
GetGoals: {
|
|
2538
2538
|
uri: string;
|
|
2539
2539
|
method: string;
|
|
@@ -2544,11 +2544,11 @@ declare const Endpoints$7: {
|
|
|
2544
2544
|
};
|
|
2545
2545
|
};
|
|
2546
2546
|
|
|
2547
|
-
type index$
|
|
2548
|
-
declare const index$
|
|
2549
|
-
declare const index$
|
|
2550
|
-
declare namespace index$
|
|
2551
|
-
export { type index$
|
|
2547
|
+
type index$a_DailyMilestone = DailyMilestone;
|
|
2548
|
+
declare const index$a_DailyMilestoneSchema: typeof DailyMilestoneSchema;
|
|
2549
|
+
declare const index$a_GoalSchema: typeof GoalSchema;
|
|
2550
|
+
declare namespace index$a {
|
|
2551
|
+
export { type index$a_DailyMilestone as DailyMilestone, index$a_DailyMilestoneSchema as DailyMilestoneSchema, Endpoints$8 as Endpoints, type Goal as Entity, index$a_GoalSchema as GoalSchema, type IAPI$9 as IAPI };
|
|
2552
2552
|
}
|
|
2553
2553
|
|
|
2554
2554
|
declare const EditorSchema: z.ZodObject<{
|
|
@@ -2581,11 +2581,11 @@ declare const EditorSchema: z.ZodObject<{
|
|
|
2581
2581
|
}>;
|
|
2582
2582
|
type Editor = z.infer<typeof EditorSchema>;
|
|
2583
2583
|
|
|
2584
|
-
interface IAPI$
|
|
2584
|
+
interface IAPI$8 {
|
|
2585
2585
|
getAll(context: Context): Promise<Editor[]>;
|
|
2586
2586
|
getById(context: Context, editorId: string): Promise<Editor>;
|
|
2587
2587
|
}
|
|
2588
|
-
declare const Endpoints$
|
|
2588
|
+
declare const Endpoints$7: {
|
|
2589
2589
|
GetAll: {
|
|
2590
2590
|
uri: string;
|
|
2591
2591
|
method: string;
|
|
@@ -2596,9 +2596,9 @@ declare const Endpoints$6: {
|
|
|
2596
2596
|
};
|
|
2597
2597
|
};
|
|
2598
2598
|
|
|
2599
|
-
declare const index$
|
|
2600
|
-
declare namespace index$
|
|
2601
|
-
export { index$
|
|
2599
|
+
declare const index$9_EditorSchema: typeof EditorSchema;
|
|
2600
|
+
declare namespace index$9 {
|
|
2601
|
+
export { index$9_EditorSchema as EditorSchema, Endpoints$7 as Endpoints, type Editor as Entity, type IAPI$8 as IAPI };
|
|
2602
2602
|
}
|
|
2603
2603
|
|
|
2604
2604
|
declare enum Frequency {
|
|
@@ -3099,7 +3099,7 @@ type RecurrenceRule = z.infer<typeof RecurrenceRuleSchema>;
|
|
|
3099
3099
|
type History = z.infer<typeof HistorySchema>;
|
|
3100
3100
|
type Criteria = z.infer<typeof CriteriaSchema>;
|
|
3101
3101
|
|
|
3102
|
-
interface IAPI$
|
|
3102
|
+
interface IAPI$7 {
|
|
3103
3103
|
getTriggers: (ctx: Context) => Promise<APIResponse<Trigger>>;
|
|
3104
3104
|
createTrigger: (ctx: Context, t: Trigger) => Promise<Trigger>;
|
|
3105
3105
|
deleteTrigger: (ctx: Context, triggerId: string) => Promise<boolean>;
|
|
@@ -3109,7 +3109,7 @@ interface IAPI$6 {
|
|
|
3109
3109
|
markAsRead: (ctx: Context, id: string) => Promise<boolean>;
|
|
3110
3110
|
clearNotifications: (ctx: Context) => Promise<boolean>;
|
|
3111
3111
|
}
|
|
3112
|
-
declare const Endpoints$
|
|
3112
|
+
declare const Endpoints$6: {
|
|
3113
3113
|
Create: {
|
|
3114
3114
|
uri: string;
|
|
3115
3115
|
method: string;
|
|
@@ -3144,35 +3144,35 @@ declare const Endpoints$5: {
|
|
|
3144
3144
|
};
|
|
3145
3145
|
};
|
|
3146
3146
|
|
|
3147
|
-
type index$
|
|
3148
|
-
declare const index$
|
|
3149
|
-
type index$
|
|
3150
|
-
declare const index$
|
|
3151
|
-
type index$
|
|
3152
|
-
declare const index$
|
|
3153
|
-
type index$
|
|
3154
|
-
declare const index$
|
|
3155
|
-
type index$
|
|
3156
|
-
declare const index$
|
|
3157
|
-
type index$
|
|
3158
|
-
declare const index$
|
|
3159
|
-
type index$
|
|
3160
|
-
declare const index$
|
|
3161
|
-
type index$
|
|
3162
|
-
declare const index$
|
|
3163
|
-
type index$
|
|
3164
|
-
declare const index$
|
|
3165
|
-
type index$
|
|
3166
|
-
declare const index$
|
|
3167
|
-
type index$
|
|
3168
|
-
declare const index$
|
|
3169
|
-
type index$
|
|
3170
|
-
declare const index$
|
|
3171
|
-
declare namespace index$
|
|
3172
|
-
export { type index$
|
|
3147
|
+
type index$8_Criteria = Criteria;
|
|
3148
|
+
declare const index$8_CriteriaSchema: typeof CriteriaSchema;
|
|
3149
|
+
type index$8_CriteriaType = CriteriaType;
|
|
3150
|
+
declare const index$8_CriteriaType: typeof CriteriaType;
|
|
3151
|
+
type index$8_Frequency = Frequency;
|
|
3152
|
+
declare const index$8_Frequency: typeof Frequency;
|
|
3153
|
+
type index$8_History = History;
|
|
3154
|
+
declare const index$8_HistorySchema: typeof HistorySchema;
|
|
3155
|
+
type index$8_NotificationDetail = NotificationDetail;
|
|
3156
|
+
declare const index$8_NotificationDetailSchema: typeof NotificationDetailSchema;
|
|
3157
|
+
type index$8_NotificationItem = NotificationItem;
|
|
3158
|
+
declare const index$8_NotificationItemSchema: typeof NotificationItemSchema;
|
|
3159
|
+
type index$8_NotificationType = NotificationType;
|
|
3160
|
+
declare const index$8_NotificationType: typeof NotificationType;
|
|
3161
|
+
type index$8_RecurrenceRule = RecurrenceRule;
|
|
3162
|
+
declare const index$8_RecurrenceRuleSchema: typeof RecurrenceRuleSchema;
|
|
3163
|
+
type index$8_Status = Status;
|
|
3164
|
+
declare const index$8_Status: typeof Status;
|
|
3165
|
+
type index$8_TransportType = TransportType;
|
|
3166
|
+
declare const index$8_TransportType: typeof TransportType;
|
|
3167
|
+
type index$8_Trigger = Trigger;
|
|
3168
|
+
declare const index$8_TriggerSchema: typeof TriggerSchema;
|
|
3169
|
+
type index$8_WeekDay = WeekDay;
|
|
3170
|
+
declare const index$8_WeekDay: typeof WeekDay;
|
|
3171
|
+
declare namespace index$8 {
|
|
3172
|
+
export { type index$8_Criteria as Criteria, index$8_CriteriaSchema as CriteriaSchema, index$8_CriteriaType as CriteriaType, Endpoints$6 as Endpoints, index$8_Frequency as Frequency, type index$8_History as History, index$8_HistorySchema as HistorySchema, type IAPI$7 as IAPI, type index$8_NotificationDetail as NotificationDetail, index$8_NotificationDetailSchema as NotificationDetailSchema, type index$8_NotificationItem as NotificationItem, index$8_NotificationItemSchema as NotificationItemSchema, index$8_NotificationType as NotificationType, type index$8_RecurrenceRule as RecurrenceRule, index$8_RecurrenceRuleSchema as RecurrenceRuleSchema, index$8_Status as Status, index$8_TransportType as TransportType, type index$8_Trigger as Trigger, index$8_TriggerSchema as TriggerSchema, index$8_WeekDay as WeekDay };
|
|
3173
3173
|
}
|
|
3174
3174
|
|
|
3175
|
-
interface IAPI$
|
|
3175
|
+
interface IAPI$6 {
|
|
3176
3176
|
version: () => Promise<string>;
|
|
3177
3177
|
}
|
|
3178
3178
|
|
|
@@ -3316,13 +3316,13 @@ declare const NoteSchema: z.ZodObject<{
|
|
|
3316
3316
|
type Note = z.infer<typeof NoteSchema>;
|
|
3317
3317
|
type NoteHistory = z.infer<typeof NoteHistorySchema>;
|
|
3318
3318
|
|
|
3319
|
-
interface IAPI$
|
|
3319
|
+
interface IAPI$5 {
|
|
3320
3320
|
list: (c: Context, userId: string) => Promise<Note[]>;
|
|
3321
3321
|
add: (c: Context, note: Partial<Note>) => Promise<Note>;
|
|
3322
3322
|
update: (c: Context, id: string, script: Partial<Note>) => Promise<Note>;
|
|
3323
3323
|
delete: (c: Context, id: string) => Promise<boolean>;
|
|
3324
3324
|
}
|
|
3325
|
-
declare const Endpoints$
|
|
3325
|
+
declare const Endpoints$5: {
|
|
3326
3326
|
GetNotes: {
|
|
3327
3327
|
uri: string;
|
|
3328
3328
|
method: string;
|
|
@@ -3341,11 +3341,11 @@ declare const Endpoints$4: {
|
|
|
3341
3341
|
};
|
|
3342
3342
|
};
|
|
3343
3343
|
|
|
3344
|
-
type index$
|
|
3345
|
-
declare const index$
|
|
3346
|
-
declare const index$
|
|
3347
|
-
declare namespace index$
|
|
3348
|
-
export { Endpoints$
|
|
3344
|
+
type index$7_NoteHistory = NoteHistory;
|
|
3345
|
+
declare const index$7_NoteHistorySchema: typeof NoteHistorySchema;
|
|
3346
|
+
declare const index$7_NoteSchema: typeof NoteSchema;
|
|
3347
|
+
declare namespace index$7 {
|
|
3348
|
+
export { Endpoints$5 as Endpoints, type Note as Entity, type IAPI$5 as IAPI, type index$7_NoteHistory as NoteHistory, index$7_NoteHistorySchema as NoteHistorySchema, index$7_NoteSchema as NoteSchema };
|
|
3349
3349
|
}
|
|
3350
3350
|
|
|
3351
3351
|
declare const SpecialOfferSchema: z.ZodObject<{
|
|
@@ -3462,7 +3462,7 @@ type UserOfferDetails = z.infer<typeof UserOfferDetailsSchema>;
|
|
|
3462
3462
|
type Create$1 = z.infer<typeof CreateSpecialOfferSchema>;
|
|
3463
3463
|
type Update$1 = z.infer<typeof UpdateSpecialOfferSchema>;
|
|
3464
3464
|
|
|
3465
|
-
interface IAPI$
|
|
3465
|
+
interface IAPI$4 {
|
|
3466
3466
|
list: (ctx: Context) => Promise<SpecialOffer[]>;
|
|
3467
3467
|
getActive: (ctx: Context) => Promise<SpecialOffer[]>;
|
|
3468
3468
|
create: (ctx: Context, data: Create$1) => Promise<SpecialOffer>;
|
|
@@ -3472,7 +3472,7 @@ interface IAPI$3 {
|
|
|
3472
3472
|
getMyOffer: (ctx: Context) => Promise<UserOfferDetails | null>;
|
|
3473
3473
|
claim: (ctx: Context, callbackUrl?: string) => Promise<string>;
|
|
3474
3474
|
}
|
|
3475
|
-
declare const Endpoints$
|
|
3475
|
+
declare const Endpoints$4: {
|
|
3476
3476
|
List: {
|
|
3477
3477
|
uri: string;
|
|
3478
3478
|
method: string;
|
|
@@ -3507,13 +3507,13 @@ declare const Endpoints$3: {
|
|
|
3507
3507
|
};
|
|
3508
3508
|
};
|
|
3509
3509
|
|
|
3510
|
-
declare const index$
|
|
3511
|
-
declare const index$
|
|
3512
|
-
declare const index$
|
|
3513
|
-
type index$
|
|
3514
|
-
declare const index$
|
|
3515
|
-
declare namespace index$
|
|
3516
|
-
export { type Create$1 as Create, index$
|
|
3510
|
+
declare const index$6_CreateSpecialOfferSchema: typeof CreateSpecialOfferSchema;
|
|
3511
|
+
declare const index$6_SpecialOfferSchema: typeof SpecialOfferSchema;
|
|
3512
|
+
declare const index$6_UpdateSpecialOfferSchema: typeof UpdateSpecialOfferSchema;
|
|
3513
|
+
type index$6_UserOfferDetails = UserOfferDetails;
|
|
3514
|
+
declare const index$6_UserOfferDetailsSchema: typeof UserOfferDetailsSchema;
|
|
3515
|
+
declare namespace index$6 {
|
|
3516
|
+
export { type Create$1 as Create, index$6_CreateSpecialOfferSchema as CreateSpecialOfferSchema, Endpoints$4 as Endpoints, type SpecialOffer as Entity, type IAPI$4 as IAPI, index$6_SpecialOfferSchema as SpecialOfferSchema, type Update$1 as Update, index$6_UpdateSpecialOfferSchema as UpdateSpecialOfferSchema, type index$6_UserOfferDetails as UserOfferDetails, index$6_UserOfferDetailsSchema as UserOfferDetailsSchema };
|
|
3517
3517
|
}
|
|
3518
3518
|
|
|
3519
3519
|
/**
|
|
@@ -4297,7 +4297,7 @@ type Update = z.infer<typeof UpdateShredUSessionSchema>;
|
|
|
4297
4297
|
type SetRecording = z.infer<typeof SetShredUSessionRecordingSchema>;
|
|
4298
4298
|
type PreviewEmail = z.infer<typeof PreviewShredUEmailSchema>;
|
|
4299
4299
|
|
|
4300
|
-
interface IAPI$
|
|
4300
|
+
interface IAPI$3 {
|
|
4301
4301
|
list: (ctx: Context) => Promise<ShredUSession[]>;
|
|
4302
4302
|
getUpcoming: (ctx: Context) => Promise<ShredUSessionCustomer[]>;
|
|
4303
4303
|
getLibrary: (ctx: Context) => Promise<ShredUSessionCustomer[]>;
|
|
@@ -4311,7 +4311,7 @@ interface IAPI$2 {
|
|
|
4311
4311
|
/** The lead times the dispatch job runs on. Static: fetch once, not per keystroke. */
|
|
4312
4312
|
getDispatchRules: (ctx: Context) => Promise<ShredUDispatchRules>;
|
|
4313
4313
|
}
|
|
4314
|
-
declare const Endpoints$
|
|
4314
|
+
declare const Endpoints$3: {
|
|
4315
4315
|
List: {
|
|
4316
4316
|
uri: string;
|
|
4317
4317
|
method: string;
|
|
@@ -4358,34 +4358,34 @@ declare const Endpoints$2: {
|
|
|
4358
4358
|
};
|
|
4359
4359
|
};
|
|
4360
4360
|
|
|
4361
|
-
type index$
|
|
4362
|
-
type index$
|
|
4363
|
-
declare const index$
|
|
4364
|
-
declare const index$
|
|
4365
|
-
type index$
|
|
4366
|
-
type index$
|
|
4367
|
-
declare const index$
|
|
4368
|
-
type index$
|
|
4369
|
-
declare const index$
|
|
4370
|
-
type index$
|
|
4371
|
-
declare const index$
|
|
4372
|
-
declare const index$
|
|
4373
|
-
type index$
|
|
4374
|
-
declare const index$
|
|
4375
|
-
declare const index$
|
|
4376
|
-
type index$
|
|
4377
|
-
declare const index$
|
|
4378
|
-
type index$
|
|
4379
|
-
declare const index$
|
|
4380
|
-
declare const index$
|
|
4381
|
-
type index$
|
|
4382
|
-
declare const index$
|
|
4383
|
-
type index$
|
|
4384
|
-
declare const index$
|
|
4385
|
-
type index$
|
|
4386
|
-
declare const index$
|
|
4387
|
-
declare namespace index$
|
|
4388
|
-
export { type index$
|
|
4361
|
+
type index$5_Brief = Brief;
|
|
4362
|
+
type index$5_Create = Create;
|
|
4363
|
+
declare const index$5_CreateShredUBriefSchema: typeof CreateShredUBriefSchema;
|
|
4364
|
+
declare const index$5_CreateShredUSessionSchema: typeof CreateShredUSessionSchema;
|
|
4365
|
+
type index$5_Join = Join;
|
|
4366
|
+
type index$5_PreviewEmail = PreviewEmail;
|
|
4367
|
+
declare const index$5_PreviewShredUEmailSchema: typeof PreviewShredUEmailSchema;
|
|
4368
|
+
type index$5_SessionAsset = SessionAsset;
|
|
4369
|
+
declare const index$5_SessionAssetSchema: typeof SessionAssetSchema;
|
|
4370
|
+
type index$5_SetRecording = SetRecording;
|
|
4371
|
+
declare const index$5_SetShredUSessionRecordingSchema: typeof SetShredUSessionRecordingSchema;
|
|
4372
|
+
declare const index$5_ShredUBriefSchema: typeof ShredUBriefSchema;
|
|
4373
|
+
type index$5_ShredUDispatchRules = ShredUDispatchRules;
|
|
4374
|
+
declare const index$5_ShredUDispatchRulesSchema: typeof ShredUDispatchRulesSchema;
|
|
4375
|
+
declare const index$5_ShredUJoinSchema: typeof ShredUJoinSchema;
|
|
4376
|
+
type index$5_ShredUReminderBounds = ShredUReminderBounds;
|
|
4377
|
+
declare const index$5_ShredUReminderBoundsSchema: typeof ShredUReminderBoundsSchema;
|
|
4378
|
+
type index$5_ShredUSessionCustomer = ShredUSessionCustomer;
|
|
4379
|
+
declare const index$5_ShredUSessionCustomerSchema: typeof ShredUSessionCustomerSchema;
|
|
4380
|
+
declare const index$5_ShredUSessionSchema: typeof ShredUSessionSchema;
|
|
4381
|
+
type index$5_ShredUSessionStatus = ShredUSessionStatus;
|
|
4382
|
+
declare const index$5_ShredUSessionStatusSchema: typeof ShredUSessionStatusSchema;
|
|
4383
|
+
type index$5_ShredUStageRule = ShredUStageRule;
|
|
4384
|
+
declare const index$5_ShredUStageRuleSchema: typeof ShredUStageRuleSchema;
|
|
4385
|
+
type index$5_Update = Update;
|
|
4386
|
+
declare const index$5_UpdateShredUSessionSchema: typeof UpdateShredUSessionSchema;
|
|
4387
|
+
declare namespace index$5 {
|
|
4388
|
+
export { type index$5_Brief as Brief, type index$5_Create as Create, index$5_CreateShredUBriefSchema as CreateShredUBriefSchema, index$5_CreateShredUSessionSchema as CreateShredUSessionSchema, Endpoints$3 as Endpoints, type ShredUSession as Entity, type IAPI$3 as IAPI, type index$5_Join as Join, type index$5_PreviewEmail as PreviewEmail, index$5_PreviewShredUEmailSchema as PreviewShredUEmailSchema, type index$5_SessionAsset as SessionAsset, index$5_SessionAssetSchema as SessionAssetSchema, type index$5_SetRecording as SetRecording, index$5_SetShredUSessionRecordingSchema as SetShredUSessionRecordingSchema, index$5_ShredUBriefSchema as ShredUBriefSchema, type index$5_ShredUDispatchRules as ShredUDispatchRules, index$5_ShredUDispatchRulesSchema as ShredUDispatchRulesSchema, index$5_ShredUJoinSchema as ShredUJoinSchema, type index$5_ShredUReminderBounds as ShredUReminderBounds, index$5_ShredUReminderBoundsSchema as ShredUReminderBoundsSchema, type index$5_ShredUSessionCustomer as ShredUSessionCustomer, index$5_ShredUSessionCustomerSchema as ShredUSessionCustomerSchema, index$5_ShredUSessionSchema as ShredUSessionSchema, type index$5_ShredUSessionStatus as ShredUSessionStatus, index$5_ShredUSessionStatusSchema as ShredUSessionStatusSchema, type index$5_ShredUStageRule as ShredUStageRule, index$5_ShredUStageRuleSchema as ShredUStageRuleSchema, type index$5_Update as Update, index$5_UpdateShredUSessionSchema as UpdateShredUSessionSchema };
|
|
4389
4389
|
}
|
|
4390
4390
|
|
|
4391
4391
|
/** The metrics served today. The list grows, so it never gates parsing — see ScoreMetricSchema. */
|
|
@@ -5531,7 +5531,7 @@ type ScoreProgress = z.infer<typeof ScoreProgressSchema>;
|
|
|
5531
5531
|
type ScoreGoalOption = z.infer<typeof ScoreGoalOptionSchema>;
|
|
5532
5532
|
type ScoreGoal = z.infer<typeof ScoreGoalSchema>;
|
|
5533
5533
|
|
|
5534
|
-
interface IAPI$
|
|
5534
|
+
interface IAPI$2 {
|
|
5535
5535
|
/**
|
|
5536
5536
|
* The recap of a closed month, with the last months for the chart.
|
|
5537
5537
|
* Omit `period` for the month that just closed; it is formatted `YYYY-MM`
|
|
@@ -5547,7 +5547,7 @@ interface IAPI$1 {
|
|
|
5547
5547
|
*/
|
|
5548
5548
|
setGoal: (context: Context, target: number) => Promise<ScoreGoal>;
|
|
5549
5549
|
}
|
|
5550
|
-
declare const Endpoints$
|
|
5550
|
+
declare const Endpoints$2: {
|
|
5551
5551
|
GetRecap: {
|
|
5552
5552
|
uri: string;
|
|
5553
5553
|
method: string;
|
|
@@ -5566,31 +5566,330 @@ declare const Endpoints$1: {
|
|
|
5566
5566
|
};
|
|
5567
5567
|
};
|
|
5568
5568
|
|
|
5569
|
-
type index$
|
|
5570
|
-
type index$
|
|
5571
|
-
declare const index$
|
|
5572
|
-
type index$
|
|
5573
|
-
type index$
|
|
5574
|
-
declare const index$
|
|
5575
|
-
declare const index$
|
|
5576
|
-
type index$
|
|
5577
|
-
declare const index$
|
|
5578
|
-
type index$
|
|
5579
|
-
type index$
|
|
5580
|
-
declare const index$
|
|
5581
|
-
declare const index$
|
|
5582
|
-
type index$
|
|
5583
|
-
declare const index$
|
|
5584
|
-
type index$
|
|
5585
|
-
type index$
|
|
5586
|
-
declare const index$
|
|
5587
|
-
declare const index$
|
|
5588
|
-
type index$
|
|
5589
|
-
declare const index$
|
|
5590
|
-
declare const index$
|
|
5591
|
-
declare const index$
|
|
5569
|
+
type index$4_Score = Score;
|
|
5570
|
+
type index$4_ScoreBand = ScoreBand;
|
|
5571
|
+
declare const index$4_ScoreBandSchema: typeof ScoreBandSchema;
|
|
5572
|
+
type index$4_ScoreGoal = ScoreGoal;
|
|
5573
|
+
type index$4_ScoreGoalOption = ScoreGoalOption;
|
|
5574
|
+
declare const index$4_ScoreGoalOptionSchema: typeof ScoreGoalOptionSchema;
|
|
5575
|
+
declare const index$4_ScoreGoalSchema: typeof ScoreGoalSchema;
|
|
5576
|
+
type index$4_ScoreHistoryEntry = ScoreHistoryEntry;
|
|
5577
|
+
declare const index$4_ScoreHistoryEntrySchema: typeof ScoreHistoryEntrySchema;
|
|
5578
|
+
type index$4_ScoreMetric = ScoreMetric;
|
|
5579
|
+
type index$4_ScoreMetricKey = ScoreMetricKey;
|
|
5580
|
+
declare const index$4_ScoreMetricKeySchema: typeof ScoreMetricKeySchema;
|
|
5581
|
+
declare const index$4_ScoreMetricSchema: typeof ScoreMetricSchema;
|
|
5582
|
+
type index$4_ScoreMostShared = ScoreMostShared;
|
|
5583
|
+
declare const index$4_ScoreMostSharedSchema: typeof ScoreMostSharedSchema;
|
|
5584
|
+
type index$4_ScoreProgress = ScoreProgress;
|
|
5585
|
+
type index$4_ScoreProgressMetric = ScoreProgressMetric;
|
|
5586
|
+
declare const index$4_ScoreProgressMetricSchema: typeof ScoreProgressMetricSchema;
|
|
5587
|
+
declare const index$4_ScoreProgressSchema: typeof ScoreProgressSchema;
|
|
5588
|
+
type index$4_ScoreProjection = ScoreProjection;
|
|
5589
|
+
declare const index$4_ScoreProjectionSchema: typeof ScoreProjectionSchema;
|
|
5590
|
+
declare const index$4_ScoreRecapSchema: typeof ScoreRecapSchema;
|
|
5591
|
+
declare const index$4_ScoreSchema: typeof ScoreSchema;
|
|
5592
|
+
declare namespace index$4 {
|
|
5593
|
+
export { Endpoints$2 as Endpoints, type ScoreRecap as Entity, type IAPI$2 as IAPI, type index$4_Score as Score, type index$4_ScoreBand as ScoreBand, index$4_ScoreBandSchema as ScoreBandSchema, type index$4_ScoreGoal as ScoreGoal, type index$4_ScoreGoalOption as ScoreGoalOption, index$4_ScoreGoalOptionSchema as ScoreGoalOptionSchema, index$4_ScoreGoalSchema as ScoreGoalSchema, type index$4_ScoreHistoryEntry as ScoreHistoryEntry, index$4_ScoreHistoryEntrySchema as ScoreHistoryEntrySchema, type index$4_ScoreMetric as ScoreMetric, type index$4_ScoreMetricKey as ScoreMetricKey, index$4_ScoreMetricKeySchema as ScoreMetricKeySchema, index$4_ScoreMetricSchema as ScoreMetricSchema, type index$4_ScoreMostShared as ScoreMostShared, index$4_ScoreMostSharedSchema as ScoreMostSharedSchema, type index$4_ScoreProgress as ScoreProgress, type index$4_ScoreProgressMetric as ScoreProgressMetric, index$4_ScoreProgressMetricSchema as ScoreProgressMetricSchema, index$4_ScoreProgressSchema as ScoreProgressSchema, type index$4_ScoreProjection as ScoreProjection, index$4_ScoreProjectionSchema as ScoreProjectionSchema, index$4_ScoreRecapSchema as ScoreRecapSchema, index$4_ScoreSchema as ScoreSchema };
|
|
5594
|
+
}
|
|
5595
|
+
|
|
5596
|
+
/** A board exists while the KPI catalog has an active KPI for it; the list is not fixed. */
|
|
5597
|
+
declare const KpiBoardSchema: z.ZodObject<{
|
|
5598
|
+
id: z.ZodString;
|
|
5599
|
+
kpiCount: z.ZodNumber;
|
|
5600
|
+
}, "strip", z.ZodTypeAny, {
|
|
5601
|
+
id: string;
|
|
5602
|
+
kpiCount: number;
|
|
5603
|
+
}, {
|
|
5604
|
+
id: string;
|
|
5605
|
+
kpiCount: number;
|
|
5606
|
+
}>;
|
|
5607
|
+
/**
|
|
5608
|
+
* One KPI in one month. The enumerable fields stay strings on purpose: the catalog is a
|
|
5609
|
+
* spreadsheet, so a value added there must not break a client that predates it.
|
|
5610
|
+
*/
|
|
5611
|
+
declare const KpiEntrySchema: z.ZodObject<{
|
|
5612
|
+
kpiId: z.ZodString;
|
|
5613
|
+
kpiName: z.ZodString;
|
|
5614
|
+
category: z.ZodString;
|
|
5615
|
+
/** `num`, `pct` (percentage points: 5.5 means 5.5%), `dec`, `score`, `stars` or `usd`. */
|
|
5616
|
+
unit: z.ZodString;
|
|
5617
|
+
/** `up` or `down`. */
|
|
5618
|
+
better: z.ZodString;
|
|
5619
|
+
/** `stock` (level at the end of the month), `flow` (volume in the month) or `rate`. */
|
|
5620
|
+
kpiType: z.ZodString;
|
|
5621
|
+
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
5622
|
+
/** YYYY-MM-DD, always the first day of the month. */
|
|
5623
|
+
periodStart: z.ZodString;
|
|
5624
|
+
actualValue: z.ZodNullable<z.ZodNumber>;
|
|
5625
|
+
targetValue: z.ZodNullable<z.ZodNumber>;
|
|
5626
|
+
/** `typed` or `derived` (from the plan assumptions). */
|
|
5627
|
+
targetSource: z.ZodNullable<z.ZodString>;
|
|
5628
|
+
/** Only alongside a typed target. */
|
|
5629
|
+
baseline: z.ZodNullable<z.ZodNumber>;
|
|
5630
|
+
/** True for the month still being lived. */
|
|
5631
|
+
isPartial: z.ZodBoolean;
|
|
5632
|
+
/** `no_data`, `no_target`, `in_progress`, `met` or `missed`. */
|
|
5633
|
+
status: z.ZodString;
|
|
5634
|
+
/** Against the previous month's value. */
|
|
5635
|
+
delta: z.ZodNullable<z.ZodNumber>;
|
|
5636
|
+
/** Direction-aware: at or above 1 means the target was met, whichever way `better` points. */
|
|
5637
|
+
attainment: z.ZodNullable<z.ZodNumber>;
|
|
5638
|
+
}, "strip", z.ZodTypeAny, {
|
|
5639
|
+
status: string;
|
|
5640
|
+
category: string;
|
|
5641
|
+
kpiId: string;
|
|
5642
|
+
kpiName: string;
|
|
5643
|
+
unit: string;
|
|
5644
|
+
better: string;
|
|
5645
|
+
kpiType: string;
|
|
5646
|
+
sortOrder: number | null;
|
|
5647
|
+
periodStart: string;
|
|
5648
|
+
actualValue: number | null;
|
|
5649
|
+
targetValue: number | null;
|
|
5650
|
+
targetSource: string | null;
|
|
5651
|
+
baseline: number | null;
|
|
5652
|
+
isPartial: boolean;
|
|
5653
|
+
delta: number | null;
|
|
5654
|
+
attainment: number | null;
|
|
5655
|
+
}, {
|
|
5656
|
+
status: string;
|
|
5657
|
+
category: string;
|
|
5658
|
+
kpiId: string;
|
|
5659
|
+
kpiName: string;
|
|
5660
|
+
unit: string;
|
|
5661
|
+
better: string;
|
|
5662
|
+
kpiType: string;
|
|
5663
|
+
sortOrder: number | null;
|
|
5664
|
+
periodStart: string;
|
|
5665
|
+
actualValue: number | null;
|
|
5666
|
+
targetValue: number | null;
|
|
5667
|
+
targetSource: string | null;
|
|
5668
|
+
baseline: number | null;
|
|
5669
|
+
isPartial: boolean;
|
|
5670
|
+
delta: number | null;
|
|
5671
|
+
attainment: number | null;
|
|
5672
|
+
}>;
|
|
5673
|
+
declare const KpiMonthSummarySchema: z.ZodObject<{
|
|
5674
|
+
periodStart: z.ZodString;
|
|
5675
|
+
met: z.ZodNumber;
|
|
5676
|
+
missed: z.ZodNumber;
|
|
5677
|
+
judged: z.ZodNumber;
|
|
5678
|
+
inProgress: z.ZodNumber;
|
|
5679
|
+
noTarget: z.ZodNumber;
|
|
5680
|
+
noData: z.ZodNumber;
|
|
5681
|
+
/** Null when no KPI was judged in the month. */
|
|
5682
|
+
scoreOutOf10: z.ZodNullable<z.ZodNumber>;
|
|
5683
|
+
}, "strip", z.ZodTypeAny, {
|
|
5684
|
+
periodStart: string;
|
|
5685
|
+
met: number;
|
|
5686
|
+
missed: number;
|
|
5687
|
+
judged: number;
|
|
5688
|
+
inProgress: number;
|
|
5689
|
+
noTarget: number;
|
|
5690
|
+
noData: number;
|
|
5691
|
+
scoreOutOf10: number | null;
|
|
5692
|
+
}, {
|
|
5693
|
+
periodStart: string;
|
|
5694
|
+
met: number;
|
|
5695
|
+
missed: number;
|
|
5696
|
+
judged: number;
|
|
5697
|
+
inProgress: number;
|
|
5698
|
+
noTarget: number;
|
|
5699
|
+
noData: number;
|
|
5700
|
+
scoreOutOf10: number | null;
|
|
5701
|
+
}>;
|
|
5702
|
+
/** Every month of a board: one scorecard per month, flattened into entries plus the monthly summaries. */
|
|
5703
|
+
declare const KpiBoardHistorySchema: z.ZodObject<{
|
|
5704
|
+
board: z.ZodString;
|
|
5705
|
+
/** ISO timestamp of the last automatic calculation. */
|
|
5706
|
+
calculatedAt: z.ZodNullable<z.ZodString>;
|
|
5707
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
5708
|
+
kpiId: z.ZodString;
|
|
5709
|
+
kpiName: z.ZodString;
|
|
5710
|
+
category: z.ZodString;
|
|
5711
|
+
/** `num`, `pct` (percentage points: 5.5 means 5.5%), `dec`, `score`, `stars` or `usd`. */
|
|
5712
|
+
unit: z.ZodString;
|
|
5713
|
+
/** `up` or `down`. */
|
|
5714
|
+
better: z.ZodString;
|
|
5715
|
+
/** `stock` (level at the end of the month), `flow` (volume in the month) or `rate`. */
|
|
5716
|
+
kpiType: z.ZodString;
|
|
5717
|
+
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
5718
|
+
/** YYYY-MM-DD, always the first day of the month. */
|
|
5719
|
+
periodStart: z.ZodString;
|
|
5720
|
+
actualValue: z.ZodNullable<z.ZodNumber>;
|
|
5721
|
+
targetValue: z.ZodNullable<z.ZodNumber>;
|
|
5722
|
+
/** `typed` or `derived` (from the plan assumptions). */
|
|
5723
|
+
targetSource: z.ZodNullable<z.ZodString>;
|
|
5724
|
+
/** Only alongside a typed target. */
|
|
5725
|
+
baseline: z.ZodNullable<z.ZodNumber>;
|
|
5726
|
+
/** True for the month still being lived. */
|
|
5727
|
+
isPartial: z.ZodBoolean;
|
|
5728
|
+
/** `no_data`, `no_target`, `in_progress`, `met` or `missed`. */
|
|
5729
|
+
status: z.ZodString;
|
|
5730
|
+
/** Against the previous month's value. */
|
|
5731
|
+
delta: z.ZodNullable<z.ZodNumber>;
|
|
5732
|
+
/** Direction-aware: at or above 1 means the target was met, whichever way `better` points. */
|
|
5733
|
+
attainment: z.ZodNullable<z.ZodNumber>;
|
|
5734
|
+
}, "strip", z.ZodTypeAny, {
|
|
5735
|
+
status: string;
|
|
5736
|
+
category: string;
|
|
5737
|
+
kpiId: string;
|
|
5738
|
+
kpiName: string;
|
|
5739
|
+
unit: string;
|
|
5740
|
+
better: string;
|
|
5741
|
+
kpiType: string;
|
|
5742
|
+
sortOrder: number | null;
|
|
5743
|
+
periodStart: string;
|
|
5744
|
+
actualValue: number | null;
|
|
5745
|
+
targetValue: number | null;
|
|
5746
|
+
targetSource: string | null;
|
|
5747
|
+
baseline: number | null;
|
|
5748
|
+
isPartial: boolean;
|
|
5749
|
+
delta: number | null;
|
|
5750
|
+
attainment: number | null;
|
|
5751
|
+
}, {
|
|
5752
|
+
status: string;
|
|
5753
|
+
category: string;
|
|
5754
|
+
kpiId: string;
|
|
5755
|
+
kpiName: string;
|
|
5756
|
+
unit: string;
|
|
5757
|
+
better: string;
|
|
5758
|
+
kpiType: string;
|
|
5759
|
+
sortOrder: number | null;
|
|
5760
|
+
periodStart: string;
|
|
5761
|
+
actualValue: number | null;
|
|
5762
|
+
targetValue: number | null;
|
|
5763
|
+
targetSource: string | null;
|
|
5764
|
+
baseline: number | null;
|
|
5765
|
+
isPartial: boolean;
|
|
5766
|
+
delta: number | null;
|
|
5767
|
+
attainment: number | null;
|
|
5768
|
+
}>, "many">;
|
|
5769
|
+
summaries: z.ZodArray<z.ZodObject<{
|
|
5770
|
+
periodStart: z.ZodString;
|
|
5771
|
+
met: z.ZodNumber;
|
|
5772
|
+
missed: z.ZodNumber;
|
|
5773
|
+
judged: z.ZodNumber;
|
|
5774
|
+
inProgress: z.ZodNumber;
|
|
5775
|
+
noTarget: z.ZodNumber;
|
|
5776
|
+
noData: z.ZodNumber;
|
|
5777
|
+
/** Null when no KPI was judged in the month. */
|
|
5778
|
+
scoreOutOf10: z.ZodNullable<z.ZodNumber>;
|
|
5779
|
+
}, "strip", z.ZodTypeAny, {
|
|
5780
|
+
periodStart: string;
|
|
5781
|
+
met: number;
|
|
5782
|
+
missed: number;
|
|
5783
|
+
judged: number;
|
|
5784
|
+
inProgress: number;
|
|
5785
|
+
noTarget: number;
|
|
5786
|
+
noData: number;
|
|
5787
|
+
scoreOutOf10: number | null;
|
|
5788
|
+
}, {
|
|
5789
|
+
periodStart: string;
|
|
5790
|
+
met: number;
|
|
5791
|
+
missed: number;
|
|
5792
|
+
judged: number;
|
|
5793
|
+
inProgress: number;
|
|
5794
|
+
noTarget: number;
|
|
5795
|
+
noData: number;
|
|
5796
|
+
scoreOutOf10: number | null;
|
|
5797
|
+
}>, "many">;
|
|
5798
|
+
}, "strip", z.ZodTypeAny, {
|
|
5799
|
+
entries: {
|
|
5800
|
+
status: string;
|
|
5801
|
+
category: string;
|
|
5802
|
+
kpiId: string;
|
|
5803
|
+
kpiName: string;
|
|
5804
|
+
unit: string;
|
|
5805
|
+
better: string;
|
|
5806
|
+
kpiType: string;
|
|
5807
|
+
sortOrder: number | null;
|
|
5808
|
+
periodStart: string;
|
|
5809
|
+
actualValue: number | null;
|
|
5810
|
+
targetValue: number | null;
|
|
5811
|
+
targetSource: string | null;
|
|
5812
|
+
baseline: number | null;
|
|
5813
|
+
isPartial: boolean;
|
|
5814
|
+
delta: number | null;
|
|
5815
|
+
attainment: number | null;
|
|
5816
|
+
}[];
|
|
5817
|
+
board: string;
|
|
5818
|
+
calculatedAt: string | null;
|
|
5819
|
+
summaries: {
|
|
5820
|
+
periodStart: string;
|
|
5821
|
+
met: number;
|
|
5822
|
+
missed: number;
|
|
5823
|
+
judged: number;
|
|
5824
|
+
inProgress: number;
|
|
5825
|
+
noTarget: number;
|
|
5826
|
+
noData: number;
|
|
5827
|
+
scoreOutOf10: number | null;
|
|
5828
|
+
}[];
|
|
5829
|
+
}, {
|
|
5830
|
+
entries: {
|
|
5831
|
+
status: string;
|
|
5832
|
+
category: string;
|
|
5833
|
+
kpiId: string;
|
|
5834
|
+
kpiName: string;
|
|
5835
|
+
unit: string;
|
|
5836
|
+
better: string;
|
|
5837
|
+
kpiType: string;
|
|
5838
|
+
sortOrder: number | null;
|
|
5839
|
+
periodStart: string;
|
|
5840
|
+
actualValue: number | null;
|
|
5841
|
+
targetValue: number | null;
|
|
5842
|
+
targetSource: string | null;
|
|
5843
|
+
baseline: number | null;
|
|
5844
|
+
isPartial: boolean;
|
|
5845
|
+
delta: number | null;
|
|
5846
|
+
attainment: number | null;
|
|
5847
|
+
}[];
|
|
5848
|
+
board: string;
|
|
5849
|
+
calculatedAt: string | null;
|
|
5850
|
+
summaries: {
|
|
5851
|
+
periodStart: string;
|
|
5852
|
+
met: number;
|
|
5853
|
+
missed: number;
|
|
5854
|
+
judged: number;
|
|
5855
|
+
inProgress: number;
|
|
5856
|
+
noTarget: number;
|
|
5857
|
+
noData: number;
|
|
5858
|
+
scoreOutOf10: number | null;
|
|
5859
|
+
}[];
|
|
5860
|
+
}>;
|
|
5861
|
+
type KpiBoard = z.infer<typeof KpiBoardSchema>;
|
|
5862
|
+
type KpiEntry = z.infer<typeof KpiEntrySchema>;
|
|
5863
|
+
type KpiMonthSummary = z.infer<typeof KpiMonthSummarySchema>;
|
|
5864
|
+
type KpiBoardHistory = z.infer<typeof KpiBoardHistorySchema>;
|
|
5865
|
+
|
|
5866
|
+
interface IAPI$1 {
|
|
5867
|
+
/** The boards with at least one active KPI, in catalog order. */
|
|
5868
|
+
listBoards: (context: Context) => Promise<KpiBoard[]>;
|
|
5869
|
+
/** Every month of the board. A board missing from the catalog answers 404. */
|
|
5870
|
+
getBoard: (context: Context, board: string) => Promise<KpiBoardHistory>;
|
|
5871
|
+
}
|
|
5872
|
+
declare const Endpoints$1: {
|
|
5873
|
+
ListBoards: {
|
|
5874
|
+
uri: string;
|
|
5875
|
+
method: string;
|
|
5876
|
+
};
|
|
5877
|
+
GetBoard: {
|
|
5878
|
+
uri: string;
|
|
5879
|
+
method: string;
|
|
5880
|
+
};
|
|
5881
|
+
};
|
|
5882
|
+
|
|
5883
|
+
type index$3_KpiBoard = KpiBoard;
|
|
5884
|
+
type index$3_KpiBoardHistory = KpiBoardHistory;
|
|
5885
|
+
declare const index$3_KpiBoardHistorySchema: typeof KpiBoardHistorySchema;
|
|
5886
|
+
declare const index$3_KpiBoardSchema: typeof KpiBoardSchema;
|
|
5887
|
+
type index$3_KpiEntry = KpiEntry;
|
|
5888
|
+
declare const index$3_KpiEntrySchema: typeof KpiEntrySchema;
|
|
5889
|
+
type index$3_KpiMonthSummary = KpiMonthSummary;
|
|
5890
|
+
declare const index$3_KpiMonthSummarySchema: typeof KpiMonthSummarySchema;
|
|
5592
5891
|
declare namespace index$3 {
|
|
5593
|
-
export { Endpoints$1 as Endpoints, type
|
|
5892
|
+
export { Endpoints$1 as Endpoints, type KpiBoardHistory as Entity, type IAPI$1 as IAPI, type index$3_KpiBoard as KpiBoard, type index$3_KpiBoardHistory as KpiBoardHistory, index$3_KpiBoardHistorySchema as KpiBoardHistorySchema, index$3_KpiBoardSchema as KpiBoardSchema, type index$3_KpiEntry as KpiEntry, index$3_KpiEntrySchema as KpiEntrySchema, type index$3_KpiMonthSummary as KpiMonthSummary, index$3_KpiMonthSummarySchema as KpiMonthSummarySchema };
|
|
5594
5893
|
}
|
|
5595
5894
|
|
|
5596
5895
|
/**
|
|
@@ -5957,21 +6256,22 @@ declare namespace index$2 {
|
|
|
5957
6256
|
}
|
|
5958
6257
|
|
|
5959
6258
|
declare class ShredAPI {
|
|
5960
|
-
user: IAPI$
|
|
5961
|
-
goal: IAPI$
|
|
5962
|
-
editor: IAPI$
|
|
5963
|
-
subscription: IAPI$
|
|
5964
|
-
prompt: IAPI$
|
|
5965
|
-
pushNotification: IAPI$
|
|
5966
|
-
email: IAPI$
|
|
5967
|
-
tenant: IAPI$
|
|
5968
|
-
app: IAPI$
|
|
5969
|
-
project: IAPI$
|
|
5970
|
-
track: IAPI$
|
|
5971
|
-
note: IAPI$
|
|
5972
|
-
specialOffer: IAPI$
|
|
5973
|
-
shredu: IAPI$
|
|
5974
|
-
score: IAPI$
|
|
6259
|
+
user: IAPI$e;
|
|
6260
|
+
goal: IAPI$9;
|
|
6261
|
+
editor: IAPI$8;
|
|
6262
|
+
subscription: IAPI$f;
|
|
6263
|
+
prompt: IAPI$g;
|
|
6264
|
+
pushNotification: IAPI$7;
|
|
6265
|
+
email: IAPI$b;
|
|
6266
|
+
tenant: IAPI$d;
|
|
6267
|
+
app: IAPI$6;
|
|
6268
|
+
project: IAPI$a;
|
|
6269
|
+
track: IAPI$c;
|
|
6270
|
+
note: IAPI$5;
|
|
6271
|
+
specialOffer: IAPI$4;
|
|
6272
|
+
shredu: IAPI$3;
|
|
6273
|
+
score: IAPI$2;
|
|
6274
|
+
kpi: IAPI$1;
|
|
5975
6275
|
rbac: IAPI;
|
|
5976
6276
|
constructor(env: Environment);
|
|
5977
6277
|
}
|
|
@@ -6064,4 +6364,4 @@ declare namespace index {
|
|
|
6064
6364
|
export { index_AssetSchema as AssetSchema, type Asset as Entity };
|
|
6065
6365
|
}
|
|
6066
6366
|
|
|
6067
|
-
export { index as Asset, index$
|
|
6367
|
+
export { index as Asset, index$g as Core, index$9 as Editor, index$c as Email, index$1 as Exceptions, index$a as Goal, index$3 as Kpi, index$7 as Note, index$8 as Notification, index$b as Project, index$i as Prompt, index$2 as RBAC, index$4 as Score, ShredAPI, index$5 as ShredU, index$6 as SpecialOffer, index$h as Subscription, index$e as Tenant, index$d as Track, index$f as User, ShredAPI as default };
|