@archdao/archdao-client 2.0.1 → 2.1.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/README.md +7 -6
- package/dist/commonjs/lib/config.d.ts +4 -4
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +10 -6
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/components/decisionmarket.d.ts +4 -4
- package/dist/commonjs/models/components/decisionmarket.d.ts.map +1 -1
- package/dist/commonjs/models/components/decisionmarket.js +6 -6
- package/dist/commonjs/models/components/decisionmarket.js.map +1 -1
- package/dist/commonjs/models/components/nonce.d.ts +4 -4
- package/dist/commonjs/models/components/nonce.d.ts.map +1 -1
- package/dist/commonjs/models/components/nonce.js +6 -4
- package/dist/commonjs/models/components/nonce.js.map +1 -1
- package/dist/commonjs/models/components/organization.d.ts +4 -4
- package/dist/commonjs/models/components/organization.d.ts.map +1 -1
- package/dist/commonjs/models/components/organization.js +6 -4
- package/dist/commonjs/models/components/organization.js.map +1 -1
- package/dist/commonjs/models/components/proposal.d.ts +4 -4
- package/dist/commonjs/models/components/proposal.d.ts.map +1 -1
- package/dist/commonjs/models/components/proposal.js +6 -4
- package/dist/commonjs/models/components/proposal.js.map +1 -1
- package/dist/commonjs/models/components/raise.d.ts +4 -4
- package/dist/commonjs/models/components/raise.d.ts.map +1 -1
- package/dist/commonjs/models/components/raise.js +6 -6
- package/dist/commonjs/models/components/raise.js.map +1 -1
- package/dist/commonjs/models/components/raisecontribution.d.ts +4 -4
- package/dist/commonjs/models/components/raisecontribution.d.ts.map +1 -1
- package/dist/commonjs/models/components/raisecontribution.js +6 -4
- package/dist/commonjs/models/components/raisecontribution.js.map +1 -1
- package/dist/commonjs/models/components/user.d.ts +4 -4
- package/dist/commonjs/models/components/user.d.ts.map +1 -1
- package/dist/commonjs/models/components/user.js +6 -4
- package/dist/commonjs/models/components/user.js.map +1 -1
- package/dist/esm/lib/config.d.ts +4 -4
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +10 -6
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/components/decisionmarket.d.ts +4 -4
- package/dist/esm/models/components/decisionmarket.d.ts.map +1 -1
- package/dist/esm/models/components/decisionmarket.js +6 -6
- package/dist/esm/models/components/decisionmarket.js.map +1 -1
- package/dist/esm/models/components/nonce.d.ts +4 -4
- package/dist/esm/models/components/nonce.d.ts.map +1 -1
- package/dist/esm/models/components/nonce.js +6 -4
- package/dist/esm/models/components/nonce.js.map +1 -1
- package/dist/esm/models/components/organization.d.ts +4 -4
- package/dist/esm/models/components/organization.d.ts.map +1 -1
- package/dist/esm/models/components/organization.js +6 -4
- package/dist/esm/models/components/organization.js.map +1 -1
- package/dist/esm/models/components/proposal.d.ts +4 -4
- package/dist/esm/models/components/proposal.d.ts.map +1 -1
- package/dist/esm/models/components/proposal.js +6 -4
- package/dist/esm/models/components/proposal.js.map +1 -1
- package/dist/esm/models/components/raise.d.ts +4 -4
- package/dist/esm/models/components/raise.d.ts.map +1 -1
- package/dist/esm/models/components/raise.js +6 -6
- package/dist/esm/models/components/raise.js.map +1 -1
- package/dist/esm/models/components/raisecontribution.d.ts +4 -4
- package/dist/esm/models/components/raisecontribution.d.ts.map +1 -1
- package/dist/esm/models/components/raisecontribution.js +6 -4
- package/dist/esm/models/components/raisecontribution.js.map +1 -1
- package/dist/esm/models/components/user.d.ts +4 -4
- package/dist/esm/models/components/user.d.ts.map +1 -1
- package/dist/esm/models/components/user.js +6 -4
- package/dist/esm/models/components/user.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +10 -6
- package/src/models/components/decisionmarket.ts +10 -10
- package/src/models/components/nonce.ts +10 -8
- package/src/models/components/organization.ts +10 -8
- package/src/models/components/proposal.ts +10 -8
- package/src/models/components/raise.ts +10 -10
- package/src/models/components/raisecontribution.ts +10 -8
- package/src/models/components/user.ts +10 -8
|
@@ -19,6 +19,8 @@ import {
|
|
|
19
19
|
} from "./raisestatus.js";
|
|
20
20
|
|
|
21
21
|
export type Raise = {
|
|
22
|
+
created?: Date | undefined;
|
|
23
|
+
updated?: Date | undefined;
|
|
22
24
|
id: number;
|
|
23
25
|
organizationId: number;
|
|
24
26
|
address?: string | undefined;
|
|
@@ -29,13 +31,15 @@ export type Raise = {
|
|
|
29
31
|
endDate?: Date | undefined;
|
|
30
32
|
status: RaiseStatus;
|
|
31
33
|
allocations?: Array<RaiseAllocation> | undefined;
|
|
32
|
-
created?: Date | undefined;
|
|
33
|
-
updated?: Date | undefined;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
/** @internal */
|
|
37
37
|
export const Raise$inboundSchema: z.ZodType<Raise, z.ZodTypeDef, unknown> = z
|
|
38
38
|
.object({
|
|
39
|
+
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
40
|
+
.optional(),
|
|
41
|
+
updated: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
42
|
+
.optional(),
|
|
39
43
|
id: z.number().int(),
|
|
40
44
|
organizationId: z.number().int(),
|
|
41
45
|
address: z.string().optional(),
|
|
@@ -48,14 +52,12 @@ export const Raise$inboundSchema: z.ZodType<Raise, z.ZodTypeDef, unknown> = z
|
|
|
48
52
|
.optional(),
|
|
49
53
|
status: RaiseStatus$inboundSchema,
|
|
50
54
|
allocations: z.array(RaiseAllocation$inboundSchema).optional(),
|
|
51
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
52
|
-
.optional(),
|
|
53
|
-
updated: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
54
|
-
.optional(),
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
/** @internal */
|
|
58
58
|
export type Raise$Outbound = {
|
|
59
|
+
created?: string | undefined;
|
|
60
|
+
updated?: string | undefined;
|
|
59
61
|
id: number;
|
|
60
62
|
organizationId: number;
|
|
61
63
|
address?: string | undefined;
|
|
@@ -66,8 +68,6 @@ export type Raise$Outbound = {
|
|
|
66
68
|
endDate?: string | undefined;
|
|
67
69
|
status: string;
|
|
68
70
|
allocations?: Array<RaiseAllocation$Outbound> | undefined;
|
|
69
|
-
created?: string | undefined;
|
|
70
|
-
updated?: string | undefined;
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
/** @internal */
|
|
@@ -76,6 +76,8 @@ export const Raise$outboundSchema: z.ZodType<
|
|
|
76
76
|
z.ZodTypeDef,
|
|
77
77
|
Raise
|
|
78
78
|
> = z.object({
|
|
79
|
+
created: z.date().transform(v => v.toISOString()).optional(),
|
|
80
|
+
updated: z.date().transform(v => v.toISOString()).optional(),
|
|
79
81
|
id: z.number().int(),
|
|
80
82
|
organizationId: z.number().int(),
|
|
81
83
|
address: z.string().optional(),
|
|
@@ -86,8 +88,6 @@ export const Raise$outboundSchema: z.ZodType<
|
|
|
86
88
|
endDate: z.date().transform(v => v.toISOString()).optional(),
|
|
87
89
|
status: RaiseStatus$outboundSchema,
|
|
88
90
|
allocations: z.array(RaiseAllocation$outboundSchema).optional(),
|
|
89
|
-
created: z.date().transform(v => v.toISOString()).optional(),
|
|
90
|
-
updated: z.date().transform(v => v.toISOString()).optional(),
|
|
91
91
|
});
|
|
92
92
|
|
|
93
93
|
/**
|
|
@@ -8,12 +8,12 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type RaiseContribution = {
|
|
11
|
+
created?: Date | undefined;
|
|
12
|
+
updated?: Date | undefined;
|
|
11
13
|
id: number;
|
|
12
14
|
raiseId: number;
|
|
13
15
|
address: string;
|
|
14
16
|
amountInvested: number;
|
|
15
|
-
created: Date;
|
|
16
|
-
updated: Date;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
/** @internal */
|
|
@@ -22,22 +22,24 @@ export const RaiseContribution$inboundSchema: z.ZodType<
|
|
|
22
22
|
z.ZodTypeDef,
|
|
23
23
|
unknown
|
|
24
24
|
> = z.object({
|
|
25
|
+
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
26
|
+
.optional(),
|
|
27
|
+
updated: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
28
|
+
.optional(),
|
|
25
29
|
id: z.number().int(),
|
|
26
30
|
raiseId: z.number().int(),
|
|
27
31
|
address: z.string(),
|
|
28
32
|
amountInvested: z.number(),
|
|
29
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
30
|
-
updated: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
31
33
|
});
|
|
32
34
|
|
|
33
35
|
/** @internal */
|
|
34
36
|
export type RaiseContribution$Outbound = {
|
|
37
|
+
created?: string | undefined;
|
|
38
|
+
updated?: string | undefined;
|
|
35
39
|
id: number;
|
|
36
40
|
raiseId: number;
|
|
37
41
|
address: string;
|
|
38
42
|
amountInvested: number;
|
|
39
|
-
created: string;
|
|
40
|
-
updated: string;
|
|
41
43
|
};
|
|
42
44
|
|
|
43
45
|
/** @internal */
|
|
@@ -46,12 +48,12 @@ export const RaiseContribution$outboundSchema: z.ZodType<
|
|
|
46
48
|
z.ZodTypeDef,
|
|
47
49
|
RaiseContribution
|
|
48
50
|
> = z.object({
|
|
51
|
+
created: z.date().transform(v => v.toISOString()).optional(),
|
|
52
|
+
updated: z.date().transform(v => v.toISOString()).optional(),
|
|
49
53
|
id: z.number().int(),
|
|
50
54
|
raiseId: z.number().int(),
|
|
51
55
|
address: z.string(),
|
|
52
56
|
amountInvested: z.number(),
|
|
53
|
-
created: z.date().transform(v => v.toISOString()),
|
|
54
|
-
updated: z.date().transform(v => v.toISOString()),
|
|
55
57
|
});
|
|
56
58
|
|
|
57
59
|
/**
|
|
@@ -13,48 +13,50 @@ import {
|
|
|
13
13
|
} from "./userrole.js";
|
|
14
14
|
|
|
15
15
|
export type User = {
|
|
16
|
+
created?: Date | undefined;
|
|
17
|
+
updated?: Date | undefined;
|
|
16
18
|
id: number;
|
|
17
19
|
address: string;
|
|
18
20
|
name: string;
|
|
19
21
|
imageUrl?: string | undefined;
|
|
20
22
|
role: UserRole;
|
|
21
|
-
created: Date;
|
|
22
|
-
updated: Date;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
/** @internal */
|
|
26
26
|
export const User$inboundSchema: z.ZodType<User, z.ZodTypeDef, unknown> = z
|
|
27
27
|
.object({
|
|
28
|
+
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
29
|
+
.optional(),
|
|
30
|
+
updated: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
31
|
+
.optional(),
|
|
28
32
|
id: z.number().int(),
|
|
29
33
|
address: z.string(),
|
|
30
34
|
name: z.string(),
|
|
31
35
|
imageUrl: z.string().optional(),
|
|
32
36
|
role: UserRole$inboundSchema,
|
|
33
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
34
|
-
updated: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
35
37
|
});
|
|
36
38
|
|
|
37
39
|
/** @internal */
|
|
38
40
|
export type User$Outbound = {
|
|
41
|
+
created?: string | undefined;
|
|
42
|
+
updated?: string | undefined;
|
|
39
43
|
id: number;
|
|
40
44
|
address: string;
|
|
41
45
|
name: string;
|
|
42
46
|
imageUrl?: string | undefined;
|
|
43
47
|
role: string;
|
|
44
|
-
created: string;
|
|
45
|
-
updated: string;
|
|
46
48
|
};
|
|
47
49
|
|
|
48
50
|
/** @internal */
|
|
49
51
|
export const User$outboundSchema: z.ZodType<User$Outbound, z.ZodTypeDef, User> =
|
|
50
52
|
z.object({
|
|
53
|
+
created: z.date().transform(v => v.toISOString()).optional(),
|
|
54
|
+
updated: z.date().transform(v => v.toISOString()).optional(),
|
|
51
55
|
id: z.number().int(),
|
|
52
56
|
address: z.string(),
|
|
53
57
|
name: z.string(),
|
|
54
58
|
imageUrl: z.string().optional(),
|
|
55
59
|
role: UserRole$outboundSchema,
|
|
56
|
-
created: z.date().transform(v => v.toISOString()),
|
|
57
|
-
updated: z.date().transform(v => v.toISOString()),
|
|
58
60
|
});
|
|
59
61
|
|
|
60
62
|
/**
|