@deepintel-ltd/farmpro-contracts 1.5.14 → 1.5.16
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 +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/routes/agents.routes.d.ts +3 -3
- package/dist/routes/agents.routes.js +1 -1
- package/dist/routes/auth.routes.d.ts +516 -0
- package/dist/routes/auth.routes.d.ts.map +1 -1
- package/dist/routes/auth.routes.js +26 -2
- package/dist/routes/index.d.ts +6 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +4 -0
- package/dist/routes/payments.routes.d.ts +1851 -0
- package/dist/routes/payments.routes.d.ts.map +1 -0
- package/dist/routes/payments.routes.js +91 -0
- package/dist/routes/subscriptions.routes.d.ts +3151 -0
- package/dist/routes/subscriptions.routes.d.ts.map +1 -0
- package/dist/routes/subscriptions.routes.js +155 -0
- package/dist/schemas/auth.schemas.d.ts +314 -0
- package/dist/schemas/auth.schemas.d.ts.map +1 -1
- package/dist/schemas/auth.schemas.js +27 -0
- package/dist/schemas/payments.schemas.d.ts +822 -0
- package/dist/schemas/payments.schemas.d.ts.map +1 -0
- package/dist/schemas/payments.schemas.js +105 -0
- package/dist/schemas/subscriptions.schemas.d.ts +1344 -0
- package/dist/schemas/subscriptions.schemas.d.ts.map +1 -0
- package/dist/schemas/subscriptions.schemas.js +150 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module @farmpro/contracts
|
|
7
7
|
*/
|
|
8
8
|
export { apiContract } from './routes';
|
|
9
|
-
export type { ApiContractType, ApiContractDefinition, AuthEndpoints, UsersEndpoints, FarmsEndpoints, FieldsEndpoints, TasksEndpoints, InventoryEndpoints, FinanceEndpoints, HarvestEndpoints, SoilTestsEndpoints, WeatherEndpoints, TeamEndpoints, EquipmentEndpoints, DocumentsEndpoints, SuppliersEndpoints, AnalyticsEndpoints, CategoriesEndpoints, AgentsEndpoints, AgentWorkflowsEndpoints, FieldMonitoringEndpoints, FieldObservationsEndpoints, AdminEndpoints, HealthEndpoints, SeasonalPlansEndpoints, InputUsageEndpoints, } from './routes';
|
|
9
|
+
export type { ApiContractType, ApiContractDefinition, AuthEndpoints, UsersEndpoints, FarmsEndpoints, FieldsEndpoints, TasksEndpoints, InventoryEndpoints, FinanceEndpoints, HarvestEndpoints, SoilTestsEndpoints, WeatherEndpoints, TeamEndpoints, EquipmentEndpoints, DocumentsEndpoints, SuppliersEndpoints, AnalyticsEndpoints, CategoriesEndpoints, AgentsEndpoints, AgentWorkflowsEndpoints, FieldMonitoringEndpoints, FieldObservationsEndpoints, AdminEndpoints, HealthEndpoints, SeasonalPlansEndpoints, InputUsageEndpoints, PaymentsEndpoints, SubscriptionsEndpoints, } from './routes';
|
|
10
10
|
export { authRouter } from './routes/auth.routes';
|
|
11
11
|
export { usersRouter } from './routes/users.routes';
|
|
12
12
|
export { farmsRouter } from './routes/farms.routes';
|
|
@@ -31,6 +31,8 @@ export { adminRouter } from './routes/admin.routes';
|
|
|
31
31
|
export { healthRouter } from './routes/health.routes';
|
|
32
32
|
export { seasonalPlansRouter } from './routes/seasonal-plans.routes';
|
|
33
33
|
export { inputUsageRouter } from './routes/input-usage.routes';
|
|
34
|
+
export { paymentsRouter } from './routes/payments.routes';
|
|
35
|
+
export { subscriptionsRouter } from './routes/subscriptions.routes';
|
|
34
36
|
export * from './schemas/common.schemas';
|
|
35
37
|
export * from './schemas/auth.schemas';
|
|
36
38
|
export * from './schemas/users.schemas';
|
|
@@ -56,4 +58,6 @@ export * from './schemas/field-observations.schemas';
|
|
|
56
58
|
export * from './schemas/health.schemas';
|
|
57
59
|
export * from './schemas/seasonal-plans.schemas';
|
|
58
60
|
export * from './schemas/input-usage.schemas';
|
|
61
|
+
export * from './schemas/payments.schemas';
|
|
62
|
+
export * from './schemas/subscriptions.schemas';
|
|
59
63
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,YAAY,EACV,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACxB,0BAA0B,EAC1B,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/dist/index.js
CHANGED
|
@@ -36,6 +36,8 @@ export { adminRouter } from './routes/admin.routes';
|
|
|
36
36
|
export { healthRouter } from './routes/health.routes';
|
|
37
37
|
export { seasonalPlansRouter } from './routes/seasonal-plans.routes';
|
|
38
38
|
export { inputUsageRouter } from './routes/input-usage.routes';
|
|
39
|
+
export { paymentsRouter } from './routes/payments.routes';
|
|
40
|
+
export { subscriptionsRouter } from './routes/subscriptions.routes';
|
|
39
41
|
// =============================================================================
|
|
40
42
|
// Schemas
|
|
41
43
|
// =============================================================================
|
|
@@ -64,3 +66,5 @@ export * from './schemas/field-observations.schemas';
|
|
|
64
66
|
export * from './schemas/health.schemas';
|
|
65
67
|
export * from './schemas/seasonal-plans.schemas';
|
|
66
68
|
export * from './schemas/input-usage.schemas';
|
|
69
|
+
export * from './schemas/payments.schemas';
|
|
70
|
+
export * from './schemas/subscriptions.schemas';
|
|
@@ -1543,11 +1543,11 @@ export declare const agentsRouter: {
|
|
|
1543
1543
|
method: "POST";
|
|
1544
1544
|
contentType: "multipart/form-data";
|
|
1545
1545
|
body: z.ZodObject<{
|
|
1546
|
-
file: z.
|
|
1546
|
+
file: z.ZodAny;
|
|
1547
1547
|
}, "strip", z.ZodTypeAny, {
|
|
1548
|
-
file
|
|
1548
|
+
file?: any;
|
|
1549
1549
|
}, {
|
|
1550
|
-
file
|
|
1550
|
+
file?: any;
|
|
1551
1551
|
}>;
|
|
1552
1552
|
path: "/agents/survey/geojson";
|
|
1553
1553
|
responses: {
|
|
@@ -94,7 +94,7 @@ export const agentsRouter = c.router({
|
|
|
94
94
|
path: '/agents/survey/geojson',
|
|
95
95
|
contentType: 'multipart/form-data',
|
|
96
96
|
body: z.object({
|
|
97
|
-
file: z.
|
|
97
|
+
file: z.any(), // File type handled at runtime (File on client, MulterFile on server)
|
|
98
98
|
}),
|
|
99
99
|
responses: {
|
|
100
100
|
200: surveyGeoJsonResponseSchema,
|
|
@@ -514,14 +514,17 @@ export declare const authRouter: {
|
|
|
514
514
|
name: z.ZodString;
|
|
515
515
|
email: z.ZodString;
|
|
516
516
|
password: z.ZodString;
|
|
517
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
517
518
|
}, "strip", z.ZodTypeAny, {
|
|
518
519
|
email: string;
|
|
519
520
|
password: string;
|
|
520
521
|
name: string;
|
|
522
|
+
phone?: string | undefined;
|
|
521
523
|
}, {
|
|
522
524
|
email: string;
|
|
523
525
|
password: string;
|
|
524
526
|
name: string;
|
|
527
|
+
phone?: string | undefined;
|
|
525
528
|
}>;
|
|
526
529
|
}, "strip", z.ZodTypeAny, {
|
|
527
530
|
type: "users";
|
|
@@ -529,6 +532,7 @@ export declare const authRouter: {
|
|
|
529
532
|
email: string;
|
|
530
533
|
password: string;
|
|
531
534
|
name: string;
|
|
535
|
+
phone?: string | undefined;
|
|
532
536
|
};
|
|
533
537
|
}, {
|
|
534
538
|
type: "users";
|
|
@@ -536,6 +540,7 @@ export declare const authRouter: {
|
|
|
536
540
|
email: string;
|
|
537
541
|
password: string;
|
|
538
542
|
name: string;
|
|
543
|
+
phone?: string | undefined;
|
|
539
544
|
};
|
|
540
545
|
}>;
|
|
541
546
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -545,6 +550,7 @@ export declare const authRouter: {
|
|
|
545
550
|
email: string;
|
|
546
551
|
password: string;
|
|
547
552
|
name: string;
|
|
553
|
+
phone?: string | undefined;
|
|
548
554
|
};
|
|
549
555
|
};
|
|
550
556
|
}, {
|
|
@@ -554,6 +560,7 @@ export declare const authRouter: {
|
|
|
554
560
|
email: string;
|
|
555
561
|
password: string;
|
|
556
562
|
name: string;
|
|
563
|
+
phone?: string | undefined;
|
|
557
564
|
};
|
|
558
565
|
};
|
|
559
566
|
}>;
|
|
@@ -1022,19 +1029,24 @@ export declare const authRouter: {
|
|
|
1022
1029
|
type: z.ZodLiteral<"auth">;
|
|
1023
1030
|
attributes: z.ZodObject<{
|
|
1024
1031
|
redirectUri: z.ZodOptional<z.ZodString>;
|
|
1032
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1025
1033
|
}, "strip", z.ZodTypeAny, {
|
|
1034
|
+
source?: string | undefined;
|
|
1026
1035
|
redirectUri?: string | undefined;
|
|
1027
1036
|
}, {
|
|
1037
|
+
source?: string | undefined;
|
|
1028
1038
|
redirectUri?: string | undefined;
|
|
1029
1039
|
}>;
|
|
1030
1040
|
}, "strip", z.ZodTypeAny, {
|
|
1031
1041
|
type: "auth";
|
|
1032
1042
|
attributes: {
|
|
1043
|
+
source?: string | undefined;
|
|
1033
1044
|
redirectUri?: string | undefined;
|
|
1034
1045
|
};
|
|
1035
1046
|
}, {
|
|
1036
1047
|
type: "auth";
|
|
1037
1048
|
attributes: {
|
|
1049
|
+
source?: string | undefined;
|
|
1038
1050
|
redirectUri?: string | undefined;
|
|
1039
1051
|
};
|
|
1040
1052
|
}>;
|
|
@@ -1042,6 +1054,7 @@ export declare const authRouter: {
|
|
|
1042
1054
|
data: {
|
|
1043
1055
|
type: "auth";
|
|
1044
1056
|
attributes: {
|
|
1057
|
+
source?: string | undefined;
|
|
1045
1058
|
redirectUri?: string | undefined;
|
|
1046
1059
|
};
|
|
1047
1060
|
};
|
|
@@ -1049,6 +1062,7 @@ export declare const authRouter: {
|
|
|
1049
1062
|
data: {
|
|
1050
1063
|
type: "auth";
|
|
1051
1064
|
attributes: {
|
|
1065
|
+
source?: string | undefined;
|
|
1052
1066
|
redirectUri?: string | undefined;
|
|
1053
1067
|
};
|
|
1054
1068
|
};
|
|
@@ -3832,5 +3846,507 @@ export declare const authRouter: {
|
|
|
3832
3846
|
}>;
|
|
3833
3847
|
};
|
|
3834
3848
|
};
|
|
3849
|
+
completeOnboarding: {
|
|
3850
|
+
summary: "Complete user onboarding";
|
|
3851
|
+
description: "Mark onboarding as complete and optionally add phone number";
|
|
3852
|
+
method: "POST";
|
|
3853
|
+
body: z.ZodObject<{
|
|
3854
|
+
data: z.ZodObject<{
|
|
3855
|
+
type: z.ZodLiteral<"onboarding">;
|
|
3856
|
+
attributes: z.ZodObject<{
|
|
3857
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
3858
|
+
skipOnboarding: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3859
|
+
}, "strip", z.ZodTypeAny, {
|
|
3860
|
+
skipOnboarding: boolean;
|
|
3861
|
+
phone?: string | undefined;
|
|
3862
|
+
}, {
|
|
3863
|
+
phone?: string | undefined;
|
|
3864
|
+
skipOnboarding?: boolean | undefined;
|
|
3865
|
+
}>;
|
|
3866
|
+
}, "strip", z.ZodTypeAny, {
|
|
3867
|
+
type: "onboarding";
|
|
3868
|
+
attributes: {
|
|
3869
|
+
skipOnboarding: boolean;
|
|
3870
|
+
phone?: string | undefined;
|
|
3871
|
+
};
|
|
3872
|
+
}, {
|
|
3873
|
+
type: "onboarding";
|
|
3874
|
+
attributes: {
|
|
3875
|
+
phone?: string | undefined;
|
|
3876
|
+
skipOnboarding?: boolean | undefined;
|
|
3877
|
+
};
|
|
3878
|
+
}>;
|
|
3879
|
+
}, "strip", z.ZodTypeAny, {
|
|
3880
|
+
data: {
|
|
3881
|
+
type: "onboarding";
|
|
3882
|
+
attributes: {
|
|
3883
|
+
skipOnboarding: boolean;
|
|
3884
|
+
phone?: string | undefined;
|
|
3885
|
+
};
|
|
3886
|
+
};
|
|
3887
|
+
}, {
|
|
3888
|
+
data: {
|
|
3889
|
+
type: "onboarding";
|
|
3890
|
+
attributes: {
|
|
3891
|
+
phone?: string | undefined;
|
|
3892
|
+
skipOnboarding?: boolean | undefined;
|
|
3893
|
+
};
|
|
3894
|
+
};
|
|
3895
|
+
}>;
|
|
3896
|
+
path: "/auth/onboarding/complete";
|
|
3897
|
+
responses: {
|
|
3898
|
+
200: z.ZodObject<{
|
|
3899
|
+
meta: z.ZodObject<{
|
|
3900
|
+
message: z.ZodString;
|
|
3901
|
+
}, "strip", z.ZodTypeAny, {
|
|
3902
|
+
message: string;
|
|
3903
|
+
}, {
|
|
3904
|
+
message: string;
|
|
3905
|
+
}>;
|
|
3906
|
+
}, "strip", z.ZodTypeAny, {
|
|
3907
|
+
meta: {
|
|
3908
|
+
message: string;
|
|
3909
|
+
};
|
|
3910
|
+
}, {
|
|
3911
|
+
meta: {
|
|
3912
|
+
message: string;
|
|
3913
|
+
};
|
|
3914
|
+
}>;
|
|
3915
|
+
400: z.ZodObject<{
|
|
3916
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
3917
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3918
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
3919
|
+
about: z.ZodOptional<z.ZodString>;
|
|
3920
|
+
}, "strip", z.ZodTypeAny, {
|
|
3921
|
+
about?: string | undefined;
|
|
3922
|
+
}, {
|
|
3923
|
+
about?: string | undefined;
|
|
3924
|
+
}>>;
|
|
3925
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3926
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3927
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3928
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3929
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
3930
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
3931
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
3932
|
+
}, "strip", z.ZodTypeAny, {
|
|
3933
|
+
pointer?: string | undefined;
|
|
3934
|
+
parameter?: string | undefined;
|
|
3935
|
+
}, {
|
|
3936
|
+
pointer?: string | undefined;
|
|
3937
|
+
parameter?: string | undefined;
|
|
3938
|
+
}>>;
|
|
3939
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3940
|
+
}, "strip", z.ZodTypeAny, {
|
|
3941
|
+
status?: string | undefined;
|
|
3942
|
+
code?: string | undefined;
|
|
3943
|
+
id?: string | undefined;
|
|
3944
|
+
links?: {
|
|
3945
|
+
about?: string | undefined;
|
|
3946
|
+
} | undefined;
|
|
3947
|
+
meta?: Record<string, unknown> | undefined;
|
|
3948
|
+
title?: string | undefined;
|
|
3949
|
+
detail?: string | undefined;
|
|
3950
|
+
source?: {
|
|
3951
|
+
pointer?: string | undefined;
|
|
3952
|
+
parameter?: string | undefined;
|
|
3953
|
+
} | undefined;
|
|
3954
|
+
}, {
|
|
3955
|
+
status?: string | undefined;
|
|
3956
|
+
code?: string | undefined;
|
|
3957
|
+
id?: string | undefined;
|
|
3958
|
+
links?: {
|
|
3959
|
+
about?: string | undefined;
|
|
3960
|
+
} | undefined;
|
|
3961
|
+
meta?: Record<string, unknown> | undefined;
|
|
3962
|
+
title?: string | undefined;
|
|
3963
|
+
detail?: string | undefined;
|
|
3964
|
+
source?: {
|
|
3965
|
+
pointer?: string | undefined;
|
|
3966
|
+
parameter?: string | undefined;
|
|
3967
|
+
} | undefined;
|
|
3968
|
+
}>, "many">;
|
|
3969
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3970
|
+
}, "strip", z.ZodTypeAny, {
|
|
3971
|
+
errors: {
|
|
3972
|
+
status?: string | undefined;
|
|
3973
|
+
code?: string | undefined;
|
|
3974
|
+
id?: string | undefined;
|
|
3975
|
+
links?: {
|
|
3976
|
+
about?: string | undefined;
|
|
3977
|
+
} | undefined;
|
|
3978
|
+
meta?: Record<string, unknown> | undefined;
|
|
3979
|
+
title?: string | undefined;
|
|
3980
|
+
detail?: string | undefined;
|
|
3981
|
+
source?: {
|
|
3982
|
+
pointer?: string | undefined;
|
|
3983
|
+
parameter?: string | undefined;
|
|
3984
|
+
} | undefined;
|
|
3985
|
+
}[];
|
|
3986
|
+
meta?: Record<string, unknown> | undefined;
|
|
3987
|
+
}, {
|
|
3988
|
+
errors: {
|
|
3989
|
+
status?: string | undefined;
|
|
3990
|
+
code?: string | undefined;
|
|
3991
|
+
id?: string | undefined;
|
|
3992
|
+
links?: {
|
|
3993
|
+
about?: string | undefined;
|
|
3994
|
+
} | undefined;
|
|
3995
|
+
meta?: Record<string, unknown> | undefined;
|
|
3996
|
+
title?: string | undefined;
|
|
3997
|
+
detail?: string | undefined;
|
|
3998
|
+
source?: {
|
|
3999
|
+
pointer?: string | undefined;
|
|
4000
|
+
parameter?: string | undefined;
|
|
4001
|
+
} | undefined;
|
|
4002
|
+
}[];
|
|
4003
|
+
meta?: Record<string, unknown> | undefined;
|
|
4004
|
+
}>;
|
|
4005
|
+
422: z.ZodObject<{
|
|
4006
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
4007
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4008
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
4009
|
+
about: z.ZodOptional<z.ZodString>;
|
|
4010
|
+
}, "strip", z.ZodTypeAny, {
|
|
4011
|
+
about?: string | undefined;
|
|
4012
|
+
}, {
|
|
4013
|
+
about?: string | undefined;
|
|
4014
|
+
}>>;
|
|
4015
|
+
status: z.ZodOptional<z.ZodString>;
|
|
4016
|
+
code: z.ZodOptional<z.ZodString>;
|
|
4017
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4018
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
4019
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
4020
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
4021
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
4022
|
+
}, "strip", z.ZodTypeAny, {
|
|
4023
|
+
pointer?: string | undefined;
|
|
4024
|
+
parameter?: string | undefined;
|
|
4025
|
+
}, {
|
|
4026
|
+
pointer?: string | undefined;
|
|
4027
|
+
parameter?: string | undefined;
|
|
4028
|
+
}>>;
|
|
4029
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4030
|
+
}, "strip", z.ZodTypeAny, {
|
|
4031
|
+
status?: string | undefined;
|
|
4032
|
+
code?: string | undefined;
|
|
4033
|
+
id?: string | undefined;
|
|
4034
|
+
links?: {
|
|
4035
|
+
about?: string | undefined;
|
|
4036
|
+
} | undefined;
|
|
4037
|
+
meta?: Record<string, unknown> | undefined;
|
|
4038
|
+
title?: string | undefined;
|
|
4039
|
+
detail?: string | undefined;
|
|
4040
|
+
source?: {
|
|
4041
|
+
pointer?: string | undefined;
|
|
4042
|
+
parameter?: string | undefined;
|
|
4043
|
+
} | undefined;
|
|
4044
|
+
}, {
|
|
4045
|
+
status?: string | undefined;
|
|
4046
|
+
code?: string | undefined;
|
|
4047
|
+
id?: string | undefined;
|
|
4048
|
+
links?: {
|
|
4049
|
+
about?: string | undefined;
|
|
4050
|
+
} | undefined;
|
|
4051
|
+
meta?: Record<string, unknown> | undefined;
|
|
4052
|
+
title?: string | undefined;
|
|
4053
|
+
detail?: string | undefined;
|
|
4054
|
+
source?: {
|
|
4055
|
+
pointer?: string | undefined;
|
|
4056
|
+
parameter?: string | undefined;
|
|
4057
|
+
} | undefined;
|
|
4058
|
+
}>, "many">;
|
|
4059
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4060
|
+
}, "strip", z.ZodTypeAny, {
|
|
4061
|
+
errors: {
|
|
4062
|
+
status?: string | undefined;
|
|
4063
|
+
code?: string | undefined;
|
|
4064
|
+
id?: string | undefined;
|
|
4065
|
+
links?: {
|
|
4066
|
+
about?: string | undefined;
|
|
4067
|
+
} | undefined;
|
|
4068
|
+
meta?: Record<string, unknown> | undefined;
|
|
4069
|
+
title?: string | undefined;
|
|
4070
|
+
detail?: string | undefined;
|
|
4071
|
+
source?: {
|
|
4072
|
+
pointer?: string | undefined;
|
|
4073
|
+
parameter?: string | undefined;
|
|
4074
|
+
} | undefined;
|
|
4075
|
+
}[];
|
|
4076
|
+
meta?: Record<string, unknown> | undefined;
|
|
4077
|
+
}, {
|
|
4078
|
+
errors: {
|
|
4079
|
+
status?: string | undefined;
|
|
4080
|
+
code?: string | undefined;
|
|
4081
|
+
id?: string | undefined;
|
|
4082
|
+
links?: {
|
|
4083
|
+
about?: string | undefined;
|
|
4084
|
+
} | undefined;
|
|
4085
|
+
meta?: Record<string, unknown> | undefined;
|
|
4086
|
+
title?: string | undefined;
|
|
4087
|
+
detail?: string | undefined;
|
|
4088
|
+
source?: {
|
|
4089
|
+
pointer?: string | undefined;
|
|
4090
|
+
parameter?: string | undefined;
|
|
4091
|
+
} | undefined;
|
|
4092
|
+
}[];
|
|
4093
|
+
meta?: Record<string, unknown> | undefined;
|
|
4094
|
+
}>;
|
|
4095
|
+
};
|
|
4096
|
+
};
|
|
4097
|
+
getOnboardingStatus: {
|
|
4098
|
+
summary: "Get user onboarding status";
|
|
4099
|
+
description: "Returns current onboarding completion status";
|
|
4100
|
+
method: "GET";
|
|
4101
|
+
path: "/auth/onboarding/status";
|
|
4102
|
+
responses: {
|
|
4103
|
+
200: z.ZodObject<{
|
|
4104
|
+
data: z.ZodObject<{
|
|
4105
|
+
type: z.ZodLiteral<string>;
|
|
4106
|
+
id: z.ZodString;
|
|
4107
|
+
attributes: z.ZodObject<{
|
|
4108
|
+
onboardingCompleted: z.ZodBoolean;
|
|
4109
|
+
onboardingSkipped: z.ZodBoolean;
|
|
4110
|
+
emailVerified: z.ZodBoolean;
|
|
4111
|
+
hasPhone: z.ZodBoolean;
|
|
4112
|
+
hasFarm: z.ZodBoolean;
|
|
4113
|
+
hasActiveSubscription: z.ZodOptional<z.ZodBoolean>;
|
|
4114
|
+
currentSubscriptionTier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4115
|
+
canUpgrade: z.ZodOptional<z.ZodBoolean>;
|
|
4116
|
+
recommendedTier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4117
|
+
}, "strip", z.ZodTypeAny, {
|
|
4118
|
+
onboardingCompleted: boolean;
|
|
4119
|
+
onboardingSkipped: boolean;
|
|
4120
|
+
emailVerified: boolean;
|
|
4121
|
+
hasPhone: boolean;
|
|
4122
|
+
hasFarm: boolean;
|
|
4123
|
+
hasActiveSubscription?: boolean | undefined;
|
|
4124
|
+
currentSubscriptionTier?: string | null | undefined;
|
|
4125
|
+
canUpgrade?: boolean | undefined;
|
|
4126
|
+
recommendedTier?: string | null | undefined;
|
|
4127
|
+
}, {
|
|
4128
|
+
onboardingCompleted: boolean;
|
|
4129
|
+
onboardingSkipped: boolean;
|
|
4130
|
+
emailVerified: boolean;
|
|
4131
|
+
hasPhone: boolean;
|
|
4132
|
+
hasFarm: boolean;
|
|
4133
|
+
hasActiveSubscription?: boolean | undefined;
|
|
4134
|
+
currentSubscriptionTier?: string | null | undefined;
|
|
4135
|
+
canUpgrade?: boolean | undefined;
|
|
4136
|
+
recommendedTier?: string | null | undefined;
|
|
4137
|
+
}>;
|
|
4138
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4139
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4140
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4141
|
+
}, "strip", z.ZodTypeAny, {
|
|
4142
|
+
type: string;
|
|
4143
|
+
id: string;
|
|
4144
|
+
attributes: {
|
|
4145
|
+
onboardingCompleted: boolean;
|
|
4146
|
+
onboardingSkipped: boolean;
|
|
4147
|
+
emailVerified: boolean;
|
|
4148
|
+
hasPhone: boolean;
|
|
4149
|
+
hasFarm: boolean;
|
|
4150
|
+
hasActiveSubscription?: boolean | undefined;
|
|
4151
|
+
currentSubscriptionTier?: string | null | undefined;
|
|
4152
|
+
canUpgrade?: boolean | undefined;
|
|
4153
|
+
recommendedTier?: string | null | undefined;
|
|
4154
|
+
};
|
|
4155
|
+
relationships?: Record<string, unknown> | undefined;
|
|
4156
|
+
links?: Record<string, string> | undefined;
|
|
4157
|
+
meta?: Record<string, unknown> | undefined;
|
|
4158
|
+
}, {
|
|
4159
|
+
type: string;
|
|
4160
|
+
id: string;
|
|
4161
|
+
attributes: {
|
|
4162
|
+
onboardingCompleted: boolean;
|
|
4163
|
+
onboardingSkipped: boolean;
|
|
4164
|
+
emailVerified: boolean;
|
|
4165
|
+
hasPhone: boolean;
|
|
4166
|
+
hasFarm: boolean;
|
|
4167
|
+
hasActiveSubscription?: boolean | undefined;
|
|
4168
|
+
currentSubscriptionTier?: string | null | undefined;
|
|
4169
|
+
canUpgrade?: boolean | undefined;
|
|
4170
|
+
recommendedTier?: string | null | undefined;
|
|
4171
|
+
};
|
|
4172
|
+
relationships?: Record<string, unknown> | undefined;
|
|
4173
|
+
links?: Record<string, string> | undefined;
|
|
4174
|
+
meta?: Record<string, unknown> | undefined;
|
|
4175
|
+
}>;
|
|
4176
|
+
included: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4177
|
+
type: z.ZodString;
|
|
4178
|
+
id: z.ZodString;
|
|
4179
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4180
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4181
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4182
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4183
|
+
}, "strip", z.ZodTypeAny, {
|
|
4184
|
+
type: string;
|
|
4185
|
+
id: string;
|
|
4186
|
+
attributes?: Record<string, unknown> | undefined;
|
|
4187
|
+
relationships?: Record<string, unknown> | undefined;
|
|
4188
|
+
links?: Record<string, string> | undefined;
|
|
4189
|
+
meta?: Record<string, unknown> | undefined;
|
|
4190
|
+
}, {
|
|
4191
|
+
type: string;
|
|
4192
|
+
id: string;
|
|
4193
|
+
attributes?: Record<string, unknown> | undefined;
|
|
4194
|
+
relationships?: Record<string, unknown> | undefined;
|
|
4195
|
+
links?: Record<string, string> | undefined;
|
|
4196
|
+
meta?: Record<string, unknown> | undefined;
|
|
4197
|
+
}>, "many">>;
|
|
4198
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4199
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4200
|
+
}, "strip", z.ZodTypeAny, {
|
|
4201
|
+
data: {
|
|
4202
|
+
type: string;
|
|
4203
|
+
id: string;
|
|
4204
|
+
attributes: {
|
|
4205
|
+
onboardingCompleted: boolean;
|
|
4206
|
+
onboardingSkipped: boolean;
|
|
4207
|
+
emailVerified: boolean;
|
|
4208
|
+
hasPhone: boolean;
|
|
4209
|
+
hasFarm: boolean;
|
|
4210
|
+
hasActiveSubscription?: boolean | undefined;
|
|
4211
|
+
currentSubscriptionTier?: string | null | undefined;
|
|
4212
|
+
canUpgrade?: boolean | undefined;
|
|
4213
|
+
recommendedTier?: string | null | undefined;
|
|
4214
|
+
};
|
|
4215
|
+
relationships?: Record<string, unknown> | undefined;
|
|
4216
|
+
links?: Record<string, string> | undefined;
|
|
4217
|
+
meta?: Record<string, unknown> | undefined;
|
|
4218
|
+
};
|
|
4219
|
+
links?: Record<string, string> | undefined;
|
|
4220
|
+
meta?: Record<string, unknown> | undefined;
|
|
4221
|
+
included?: {
|
|
4222
|
+
type: string;
|
|
4223
|
+
id: string;
|
|
4224
|
+
attributes?: Record<string, unknown> | undefined;
|
|
4225
|
+
relationships?: Record<string, unknown> | undefined;
|
|
4226
|
+
links?: Record<string, string> | undefined;
|
|
4227
|
+
meta?: Record<string, unknown> | undefined;
|
|
4228
|
+
}[] | undefined;
|
|
4229
|
+
}, {
|
|
4230
|
+
data: {
|
|
4231
|
+
type: string;
|
|
4232
|
+
id: string;
|
|
4233
|
+
attributes: {
|
|
4234
|
+
onboardingCompleted: boolean;
|
|
4235
|
+
onboardingSkipped: boolean;
|
|
4236
|
+
emailVerified: boolean;
|
|
4237
|
+
hasPhone: boolean;
|
|
4238
|
+
hasFarm: boolean;
|
|
4239
|
+
hasActiveSubscription?: boolean | undefined;
|
|
4240
|
+
currentSubscriptionTier?: string | null | undefined;
|
|
4241
|
+
canUpgrade?: boolean | undefined;
|
|
4242
|
+
recommendedTier?: string | null | undefined;
|
|
4243
|
+
};
|
|
4244
|
+
relationships?: Record<string, unknown> | undefined;
|
|
4245
|
+
links?: Record<string, string> | undefined;
|
|
4246
|
+
meta?: Record<string, unknown> | undefined;
|
|
4247
|
+
};
|
|
4248
|
+
links?: Record<string, string> | undefined;
|
|
4249
|
+
meta?: Record<string, unknown> | undefined;
|
|
4250
|
+
included?: {
|
|
4251
|
+
type: string;
|
|
4252
|
+
id: string;
|
|
4253
|
+
attributes?: Record<string, unknown> | undefined;
|
|
4254
|
+
relationships?: Record<string, unknown> | undefined;
|
|
4255
|
+
links?: Record<string, string> | undefined;
|
|
4256
|
+
meta?: Record<string, unknown> | undefined;
|
|
4257
|
+
}[] | undefined;
|
|
4258
|
+
}>;
|
|
4259
|
+
401: z.ZodObject<{
|
|
4260
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
4261
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4262
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
4263
|
+
about: z.ZodOptional<z.ZodString>;
|
|
4264
|
+
}, "strip", z.ZodTypeAny, {
|
|
4265
|
+
about?: string | undefined;
|
|
4266
|
+
}, {
|
|
4267
|
+
about?: string | undefined;
|
|
4268
|
+
}>>;
|
|
4269
|
+
status: z.ZodOptional<z.ZodString>;
|
|
4270
|
+
code: z.ZodOptional<z.ZodString>;
|
|
4271
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4272
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
4273
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
4274
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
4275
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
4276
|
+
}, "strip", z.ZodTypeAny, {
|
|
4277
|
+
pointer?: string | undefined;
|
|
4278
|
+
parameter?: string | undefined;
|
|
4279
|
+
}, {
|
|
4280
|
+
pointer?: string | undefined;
|
|
4281
|
+
parameter?: string | undefined;
|
|
4282
|
+
}>>;
|
|
4283
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4284
|
+
}, "strip", z.ZodTypeAny, {
|
|
4285
|
+
status?: string | undefined;
|
|
4286
|
+
code?: string | undefined;
|
|
4287
|
+
id?: string | undefined;
|
|
4288
|
+
links?: {
|
|
4289
|
+
about?: string | undefined;
|
|
4290
|
+
} | undefined;
|
|
4291
|
+
meta?: Record<string, unknown> | undefined;
|
|
4292
|
+
title?: string | undefined;
|
|
4293
|
+
detail?: string | undefined;
|
|
4294
|
+
source?: {
|
|
4295
|
+
pointer?: string | undefined;
|
|
4296
|
+
parameter?: string | undefined;
|
|
4297
|
+
} | undefined;
|
|
4298
|
+
}, {
|
|
4299
|
+
status?: string | undefined;
|
|
4300
|
+
code?: string | undefined;
|
|
4301
|
+
id?: string | undefined;
|
|
4302
|
+
links?: {
|
|
4303
|
+
about?: string | undefined;
|
|
4304
|
+
} | undefined;
|
|
4305
|
+
meta?: Record<string, unknown> | undefined;
|
|
4306
|
+
title?: string | undefined;
|
|
4307
|
+
detail?: string | undefined;
|
|
4308
|
+
source?: {
|
|
4309
|
+
pointer?: string | undefined;
|
|
4310
|
+
parameter?: string | undefined;
|
|
4311
|
+
} | undefined;
|
|
4312
|
+
}>, "many">;
|
|
4313
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4314
|
+
}, "strip", z.ZodTypeAny, {
|
|
4315
|
+
errors: {
|
|
4316
|
+
status?: string | undefined;
|
|
4317
|
+
code?: string | undefined;
|
|
4318
|
+
id?: string | undefined;
|
|
4319
|
+
links?: {
|
|
4320
|
+
about?: string | undefined;
|
|
4321
|
+
} | undefined;
|
|
4322
|
+
meta?: Record<string, unknown> | undefined;
|
|
4323
|
+
title?: string | undefined;
|
|
4324
|
+
detail?: string | undefined;
|
|
4325
|
+
source?: {
|
|
4326
|
+
pointer?: string | undefined;
|
|
4327
|
+
parameter?: string | undefined;
|
|
4328
|
+
} | undefined;
|
|
4329
|
+
}[];
|
|
4330
|
+
meta?: Record<string, unknown> | undefined;
|
|
4331
|
+
}, {
|
|
4332
|
+
errors: {
|
|
4333
|
+
status?: string | undefined;
|
|
4334
|
+
code?: string | undefined;
|
|
4335
|
+
id?: string | undefined;
|
|
4336
|
+
links?: {
|
|
4337
|
+
about?: string | undefined;
|
|
4338
|
+
} | undefined;
|
|
4339
|
+
meta?: Record<string, unknown> | undefined;
|
|
4340
|
+
title?: string | undefined;
|
|
4341
|
+
detail?: string | undefined;
|
|
4342
|
+
source?: {
|
|
4343
|
+
pointer?: string | undefined;
|
|
4344
|
+
parameter?: string | undefined;
|
|
4345
|
+
} | undefined;
|
|
4346
|
+
}[];
|
|
4347
|
+
meta?: Record<string, unknown> | undefined;
|
|
4348
|
+
}>;
|
|
4349
|
+
};
|
|
4350
|
+
};
|
|
3835
4351
|
};
|
|
3836
4352
|
//# sourceMappingURL=auth.routes.d.ts.map
|