@deepintel-ltd/farmpro-contracts 1.11.4 → 1.11.6
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/routes/admin.routes.d.ts +334 -618
- package/dist/routes/admin.routes.d.ts.map +1 -1
- package/dist/routes/admin.routes.js +26 -36
- package/dist/routes/commodity-deals.routes.d.ts +490 -0
- package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
- package/dist/schemas/admin.schemas.d.ts +45 -6
- package/dist/schemas/admin.schemas.d.ts.map +1 -1
- package/dist/schemas/admin.schemas.js +15 -5
- package/dist/schemas/commodity-deals.schemas.d.ts +284 -0
- package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.js +18 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commodity-deals.routes.d.ts","sourceRoot":"","sources":["../../src/routes/commodity-deals.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"commodity-deals.routes.d.ts","sourceRoot":"","sources":["../../src/routes/commodity-deals.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0J/B,CAAC"}
|
|
@@ -496,39 +496,77 @@ export declare const adminLoginLinkResponseSchema: z.ZodObject<{
|
|
|
496
496
|
meta?: Record<string, unknown> | undefined;
|
|
497
497
|
}[] | undefined;
|
|
498
498
|
}>;
|
|
499
|
-
export declare const
|
|
499
|
+
export declare const adminInviteUserAttributesSchema: z.ZodObject<{
|
|
500
500
|
name: z.ZodString;
|
|
501
501
|
email: z.ZodString;
|
|
502
|
+
/** Role to grant on invite. Extensible later without a new resource. */
|
|
503
|
+
platformRole: z.ZodDefault<z.ZodEnum<["super_admin"]>>;
|
|
502
504
|
}, "strip", z.ZodTypeAny, {
|
|
503
505
|
email: string;
|
|
504
506
|
name: string;
|
|
507
|
+
platformRole: "super_admin";
|
|
505
508
|
}, {
|
|
506
509
|
email: string;
|
|
507
510
|
name: string;
|
|
511
|
+
platformRole?: "super_admin" | undefined;
|
|
508
512
|
}>;
|
|
509
|
-
export declare const
|
|
510
|
-
type: z.ZodLiteral<"
|
|
513
|
+
export declare const adminInviteUserSchema: z.ZodObject<{
|
|
514
|
+
type: z.ZodLiteral<"user-invites">;
|
|
511
515
|
attributes: z.ZodObject<{
|
|
512
516
|
name: z.ZodString;
|
|
513
517
|
email: z.ZodString;
|
|
518
|
+
/** Role to grant on invite. Extensible later without a new resource. */
|
|
519
|
+
platformRole: z.ZodDefault<z.ZodEnum<["super_admin"]>>;
|
|
514
520
|
}, "strip", z.ZodTypeAny, {
|
|
515
521
|
email: string;
|
|
516
522
|
name: string;
|
|
523
|
+
platformRole: "super_admin";
|
|
517
524
|
}, {
|
|
518
525
|
email: string;
|
|
519
526
|
name: string;
|
|
527
|
+
platformRole?: "super_admin" | undefined;
|
|
520
528
|
}>;
|
|
521
529
|
}, "strip", z.ZodTypeAny, {
|
|
522
|
-
type: "
|
|
530
|
+
type: "user-invites";
|
|
523
531
|
attributes: {
|
|
524
532
|
email: string;
|
|
525
533
|
name: string;
|
|
534
|
+
platformRole: "super_admin";
|
|
526
535
|
};
|
|
527
536
|
}, {
|
|
528
|
-
type: "
|
|
537
|
+
type: "user-invites";
|
|
529
538
|
attributes: {
|
|
530
539
|
email: string;
|
|
531
540
|
name: string;
|
|
541
|
+
platformRole?: "super_admin" | undefined;
|
|
542
|
+
};
|
|
543
|
+
}>;
|
|
544
|
+
/** Grant or clear platform role on an existing user. */
|
|
545
|
+
export declare const updatePlatformRoleAttributesSchema: z.ZodObject<{
|
|
546
|
+
platformRole: z.ZodNullable<z.ZodEnum<["super_admin"]>>;
|
|
547
|
+
}, "strip", z.ZodTypeAny, {
|
|
548
|
+
platformRole: "super_admin" | null;
|
|
549
|
+
}, {
|
|
550
|
+
platformRole: "super_admin" | null;
|
|
551
|
+
}>;
|
|
552
|
+
export declare const updatePlatformRoleSchema: z.ZodObject<{
|
|
553
|
+
type: z.ZodLiteral<"users">;
|
|
554
|
+
attributes: z.ZodObject<{
|
|
555
|
+
platformRole: z.ZodNullable<z.ZodEnum<["super_admin"]>>;
|
|
556
|
+
}, "strip", z.ZodTypeAny, {
|
|
557
|
+
platformRole: "super_admin" | null;
|
|
558
|
+
}, {
|
|
559
|
+
platformRole: "super_admin" | null;
|
|
560
|
+
}>;
|
|
561
|
+
}, "strip", z.ZodTypeAny, {
|
|
562
|
+
type: "users";
|
|
563
|
+
attributes: {
|
|
564
|
+
platformRole: "super_admin" | null;
|
|
565
|
+
};
|
|
566
|
+
}, {
|
|
567
|
+
type: "users";
|
|
568
|
+
attributes: {
|
|
569
|
+
platformRole: "super_admin" | null;
|
|
532
570
|
};
|
|
533
571
|
}>;
|
|
534
572
|
export declare const acceptAdminInviteAttributesSchema: z.ZodObject<{
|
|
@@ -1868,7 +1906,8 @@ export type AdminCreateUserResponse = z.infer<typeof userResponseSchema>;
|
|
|
1868
1906
|
export type AdminUserListAttributes = z.infer<typeof adminUserListAttributesSchema>;
|
|
1869
1907
|
export type AdminUserListResponse = z.infer<typeof adminUserListResponseSchema>;
|
|
1870
1908
|
export type AdminLoginLinkResponse = z.infer<typeof adminLoginLinkResponseSchema>;
|
|
1871
|
-
export type
|
|
1909
|
+
export type AdminInviteUserInput = z.infer<typeof adminInviteUserSchema>;
|
|
1910
|
+
export type UpdatePlatformRoleInput = z.infer<typeof updatePlatformRoleSchema>;
|
|
1872
1911
|
export type AcceptAdminInviteInput = z.infer<typeof acceptAdminInviteSchema>;
|
|
1873
1912
|
export type ImpersonationResponse = z.infer<typeof impersonationResponseSchema>;
|
|
1874
1913
|
export type SourceStats = z.infer<typeof sourceStatsSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/admin.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAGrD;;GAEG;AAGH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;EAAyB,CAAC;AAEtE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGhC,CAAC;AAGH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;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AAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,yCAAyC,CACjD,CAAC;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC"}
|
|
@@ -33,14 +33,24 @@ export const adminLoginLinkAttributesSchema = z.object({
|
|
|
33
33
|
});
|
|
34
34
|
export const adminLoginLinkResourceSchema = createJsonApiResourceSchema('login-links', adminLoginLinkAttributesSchema);
|
|
35
35
|
export const adminLoginLinkResponseSchema = jsonApiSingleResponseSchema(adminLoginLinkResourceSchema);
|
|
36
|
-
// Invite
|
|
37
|
-
export const
|
|
36
|
+
// Invite user by email (no password). Currently used to mint super admins.
|
|
37
|
+
export const adminInviteUserAttributesSchema = z.object({
|
|
38
38
|
name: z.string().min(1).max(200),
|
|
39
39
|
email: z.string().email(),
|
|
40
|
+
/** Role to grant on invite. Extensible later without a new resource. */
|
|
41
|
+
platformRole: z.enum(['super_admin']).default('super_admin'),
|
|
40
42
|
});
|
|
41
|
-
export const
|
|
42
|
-
type: z.literal('
|
|
43
|
-
attributes:
|
|
43
|
+
export const adminInviteUserSchema = z.object({
|
|
44
|
+
type: z.literal('user-invites'),
|
|
45
|
+
attributes: adminInviteUserAttributesSchema,
|
|
46
|
+
});
|
|
47
|
+
/** Grant or clear platform role on an existing user. */
|
|
48
|
+
export const updatePlatformRoleAttributesSchema = z.object({
|
|
49
|
+
platformRole: z.enum(['super_admin']).nullable(),
|
|
50
|
+
});
|
|
51
|
+
export const updatePlatformRoleSchema = z.object({
|
|
52
|
+
type: z.literal('users'),
|
|
53
|
+
attributes: updatePlatformRoleAttributesSchema,
|
|
44
54
|
});
|
|
45
55
|
export const acceptAdminInviteAttributesSchema = z.object({
|
|
46
56
|
token: z.string().min(1),
|