@longdotxyz/shared 0.0.68 → 0.0.70

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.
@@ -3655,7 +3655,7 @@ export declare const rootContract: {
3655
3655
  name: import("zod").ZodString;
3656
3656
  description: import("zod").ZodString;
3657
3657
  image_hash: import("zod").ZodString;
3658
- social_links: import("zod").ZodArray<import("zod").ZodObject<{
3658
+ social_links: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
3659
3659
  label: import("zod").ZodString;
3660
3660
  url: import("zod").ZodString;
3661
3661
  }, "strip", import("zod").ZodTypeAny, {
@@ -3664,8 +3664,8 @@ export declare const rootContract: {
3664
3664
  }, {
3665
3665
  label: string;
3666
3666
  url: string;
3667
- }>, "many">;
3668
- vesting_recipients: import("zod").ZodArray<import("zod").ZodObject<{
3667
+ }>, "many">>>;
3668
+ vesting_recipients: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
3669
3669
  address: import("zod").ZodString;
3670
3670
  amount: import("zod").ZodNumber;
3671
3671
  }, "strip", import("zod").ZodTypeAny, {
@@ -3674,8 +3674,8 @@ export declare const rootContract: {
3674
3674
  }, {
3675
3675
  address: string;
3676
3676
  amount: number;
3677
- }>, "many">;
3678
- fee_receiver: import("zod").ZodString;
3677
+ }>, "many">>>;
3678
+ fee_receiver: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
3679
3679
  }, "strip", import("zod").ZodTypeAny, {
3680
3680
  name: string;
3681
3681
  description: string;
@@ -3693,15 +3693,15 @@ export declare const rootContract: {
3693
3693
  name: string;
3694
3694
  description: string;
3695
3695
  image_hash: string;
3696
- fee_receiver: string;
3697
- social_links: {
3696
+ fee_receiver?: string | undefined;
3697
+ social_links?: {
3698
3698
  label: string;
3699
3699
  url: string;
3700
- }[];
3701
- vesting_recipients: {
3700
+ }[] | undefined;
3701
+ vesting_recipients?: {
3702
3702
  address: string;
3703
3703
  amount: number;
3704
- }[];
3704
+ }[] | undefined;
3705
3705
  }>;
3706
3706
  path: "/ipfs/upload-metadata";
3707
3707
  responses: {
@@ -23,7 +23,7 @@ declare const ipfsContract: {
23
23
  name: z.ZodString;
24
24
  description: z.ZodString;
25
25
  image_hash: z.ZodString;
26
- social_links: z.ZodArray<z.ZodObject<{
26
+ social_links: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
27
27
  label: z.ZodString;
28
28
  url: z.ZodString;
29
29
  }, "strip", z.ZodTypeAny, {
@@ -32,8 +32,8 @@ declare const ipfsContract: {
32
32
  }, {
33
33
  label: string;
34
34
  url: string;
35
- }>, "many">;
36
- vesting_recipients: z.ZodArray<z.ZodObject<{
35
+ }>, "many">>>;
36
+ vesting_recipients: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
37
37
  address: z.ZodString;
38
38
  amount: z.ZodNumber;
39
39
  }, "strip", z.ZodTypeAny, {
@@ -42,8 +42,8 @@ declare const ipfsContract: {
42
42
  }, {
43
43
  address: string;
44
44
  amount: number;
45
- }>, "many">;
46
- fee_receiver: z.ZodString;
45
+ }>, "many">>>;
46
+ fee_receiver: z.ZodDefault<z.ZodOptional<z.ZodString>>;
47
47
  }, "strip", z.ZodTypeAny, {
48
48
  name: string;
49
49
  description: string;
@@ -61,15 +61,15 @@ declare const ipfsContract: {
61
61
  name: string;
62
62
  description: string;
63
63
  image_hash: string;
64
- fee_receiver: string;
65
- social_links: {
64
+ fee_receiver?: string | undefined;
65
+ social_links?: {
66
66
  label: string;
67
67
  url: string;
68
- }[];
69
- vesting_recipients: {
68
+ }[] | undefined;
69
+ vesting_recipients?: {
70
70
  address: string;
71
71
  amount: number;
72
- }[];
72
+ }[] | undefined;
73
73
  }>;
74
74
  path: "/ipfs/upload-metadata";
75
75
  responses: {
@@ -24,15 +24,21 @@ const ipfsContract = contract.router({
24
24
  name: zod_1.default.string(),
25
25
  description: zod_1.default.string(),
26
26
  image_hash: zod_1.default.string(),
27
- social_links: zod_1.default.array(zod_1.default.object({
27
+ social_links: zod_1.default
28
+ .array(zod_1.default.object({
28
29
  label: zod_1.default.string(),
29
30
  url: zod_1.default.string(),
30
- })),
31
- vesting_recipients: zod_1.default.array(zod_1.default.object({
31
+ }))
32
+ .optional()
33
+ .default([]),
34
+ vesting_recipients: zod_1.default
35
+ .array(zod_1.default.object({
32
36
  address: zod_1.default.string(),
33
37
  amount: zod_1.default.number(),
34
- })),
35
- fee_receiver: zod_1.default.string(),
38
+ }))
39
+ .optional()
40
+ .default([]),
41
+ fee_receiver: zod_1.default.string().optional().default(""),
36
42
  }),
37
43
  responses: {
38
44
  200: zod_1.default.object({
@@ -1 +1 @@
1
- {"version":3,"file":"ipfs.contract.js","sourceRoot":"","sources":["../../src/contracts/ipfs.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AAEhC,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,CAChC;IACI,WAAW,EAAE;QACT,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,MAAM;QACd,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,aAAC,CAAC,GAAG,EAAE;QACb,SAAS,EAAE;YACP,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;aACrB,CAAC;SACL;QACD,WAAW,EAAE,yBAAyB;KACzC;IACD,cAAc,EAAE;QACZ,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,aAAC,CAAC,MAAM,CAAC;YACX,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;YAChB,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE;YACvB,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;YACtB,YAAY,EAAE,aAAC,CAAC,KAAK,CACjB,aAAC,CAAC,MAAM,CAAC;gBACL,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;gBACjB,GAAG,EAAE,aAAC,CAAC,MAAM,EAAE;aAClB,CAAC,CACL;YACD,kBAAkB,EAAE,aAAC,CAAC,KAAK,CACvB,aAAC,CAAC,MAAM,CAAC;gBACL,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;gBACnB,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;aACrB,CAAC,CACL;YACD,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;SAC3B,CAAC;QACF,SAAS,EAAE;YACP,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;aACrB,CAAC;SACL;QACD,WAAW,EAAE,yBAAyB;KACzC;CACJ,EACD;IACI,UAAU,EAAE,OAAO;CACtB,CACJ,CAAC;AAEO,oCAAY"}
1
+ {"version":3,"file":"ipfs.contract.js","sourceRoot":"","sources":["../../src/contracts/ipfs.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AAEhC,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,CAChC;IACI,WAAW,EAAE;QACT,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,MAAM;QACd,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,aAAC,CAAC,GAAG,EAAE;QACb,SAAS,EAAE;YACP,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;aACrB,CAAC;SACL;QACD,WAAW,EAAE,yBAAyB;KACzC;IACD,cAAc,EAAE;QACZ,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,aAAC,CAAC,MAAM,CAAC;YACX,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;YAChB,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE;YACvB,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;YACtB,YAAY,EAAE,aAAC;iBACV,KAAK,CACF,aAAC,CAAC,MAAM,CAAC;gBACL,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;gBACjB,GAAG,EAAE,aAAC,CAAC,MAAM,EAAE;aAClB,CAAC,CACL;iBACA,QAAQ,EAAE;iBACV,OAAO,CAAC,EAAE,CAAC;YAChB,kBAAkB,EAAE,aAAC;iBAChB,KAAK,CACF,aAAC,CAAC,MAAM,CAAC;gBACL,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;gBACnB,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;aACrB,CAAC,CACL;iBACA,QAAQ,EAAE;iBACV,OAAO,CAAC,EAAE,CAAC;YAChB,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;SAClD,CAAC;QACF,SAAS,EAAE;YACP,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;aACrB,CAAC;SACL;QACD,WAAW,EAAE,yBAAyB;KACzC;CACJ,EACD;IACI,UAAU,EAAE,OAAO;CACtB,CACJ,CAAC;AAEO,oCAAY"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longdotxyz/shared",
3
- "version": "0.0.68",
3
+ "version": "0.0.70",
4
4
  "description": "Shared types and utilities for Long.xyz API",
5
5
  "files": [
6
6
  "dist"