@longdotxyz/shared 0.0.22 → 0.0.23

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.
@@ -0,0 +1,50 @@
1
+ import z from "zod";
2
+ declare const AuctionTemplateResponse: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ description: z.ZodNullable<z.ZodString>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ id: string;
8
+ name: string;
9
+ description: string | null;
10
+ }, {
11
+ id: string;
12
+ name: string;
13
+ description: string | null;
14
+ }>;
15
+ declare const auctionTemplateContract: {
16
+ listAuctionTemplates: {
17
+ method: "GET";
18
+ path: "/auction-templates/";
19
+ responses: {
20
+ 200: z.ZodObject<{
21
+ result: z.ZodArray<z.ZodObject<{
22
+ id: z.ZodString;
23
+ name: z.ZodString;
24
+ description: z.ZodNullable<z.ZodString>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ id: string;
27
+ name: string;
28
+ description: string | null;
29
+ }, {
30
+ id: string;
31
+ name: string;
32
+ description: string | null;
33
+ }>, "many">;
34
+ }, "strip", z.ZodTypeAny, {
35
+ result: {
36
+ id: string;
37
+ name: string;
38
+ description: string | null;
39
+ }[];
40
+ }, {
41
+ result: {
42
+ id: string;
43
+ name: string;
44
+ description: string | null;
45
+ }[];
46
+ }>;
47
+ };
48
+ };
49
+ };
50
+ export { auctionTemplateContract, AuctionTemplateResponse };
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuctionTemplateResponse = exports.auctionTemplateContract = void 0;
4
+ const core_1 = require("@ts-rest/core");
5
+ const zod_1 = require("zod");
6
+ const contract = (0, core_1.initContract)();
7
+ const AuctionTemplateResponse = zod_1.default.object({
8
+ id: zod_1.default.string(),
9
+ name: zod_1.default.string(),
10
+ description: zod_1.default.string().nullable(),
11
+ });
12
+ exports.AuctionTemplateResponse = AuctionTemplateResponse;
13
+ const auctionTemplateContract = contract.router({
14
+ listAuctionTemplates: {
15
+ method: "GET",
16
+ path: "/",
17
+ responses: {
18
+ 200: zod_1.default.object({
19
+ result: zod_1.default.array(AuctionTemplateResponse),
20
+ }),
21
+ },
22
+ },
23
+ }, {
24
+ pathPrefix: "/auction-templates",
25
+ });
26
+ exports.auctionTemplateContract = auctionTemplateContract;
27
+ //# sourceMappingURL=auction-template.contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auction-template.contract.js","sourceRoot":"","sources":["../../src/contracts/auction-template.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AAEhC,MAAM,uBAAuB,GAAG,aAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAmB+B,0DAAuB;AAjBzD,MAAM,uBAAuB,GAAG,QAAQ,CAAC,MAAM,CAC3C;IACI,oBAAoB,EAAE;QAClB,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,GAAG;QACT,SAAS,EAAE;YACP,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,MAAM,EAAE,aAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC;aAC3C,CAAC;SACL;KACJ;CACJ,EACD;IACI,UAAU,EAAE,oBAAoB;CACnC,CACJ,CAAC;AAEO,0DAAuB"}
@@ -6,14 +6,14 @@ declare const CommunityResponse: z.ZodObject<{
6
6
  funding_amount: z.ZodNumber;
7
7
  image_url: z.ZodNullable<z.ZodString>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- description: string | null;
10
9
  id: number;
10
+ description: string | null;
11
11
  label: string;
12
12
  funding_amount: number;
13
13
  image_url: string | null;
14
14
  }, {
15
- description: string | null;
16
15
  id: number;
16
+ description: string | null;
17
17
  label: string;
18
18
  funding_amount: number;
19
19
  image_url: string | null;
@@ -31,30 +31,30 @@ declare const communityContract: {
31
31
  funding_amount: z.ZodNumber;
32
32
  image_url: z.ZodNullable<z.ZodString>;
33
33
  }, "strip", z.ZodTypeAny, {
34
- description: string | null;
35
34
  id: number;
35
+ description: string | null;
36
36
  label: string;
37
37
  funding_amount: number;
38
38
  image_url: string | null;
39
39
  }, {
40
- description: string | null;
41
40
  id: number;
41
+ description: string | null;
42
42
  label: string;
43
43
  funding_amount: number;
44
44
  image_url: string | null;
45
45
  }>, "many">;
46
46
  }, "strip", z.ZodTypeAny, {
47
47
  result: {
48
- description: string | null;
49
48
  id: number;
49
+ description: string | null;
50
50
  label: string;
51
51
  funding_amount: number;
52
52
  image_url: string | null;
53
53
  }[];
54
54
  }, {
55
55
  result: {
56
- description: string | null;
57
56
  id: number;
57
+ description: string | null;
58
58
  label: string;
59
59
  funding_amount: number;
60
60
  image_url: string | null;
@@ -81,30 +81,30 @@ declare const communityContract: {
81
81
  funding_amount: z.ZodNumber;
82
82
  image_url: z.ZodNullable<z.ZodString>;
83
83
  }, "strip", z.ZodTypeAny, {
84
- description: string | null;
85
84
  id: number;
85
+ description: string | null;
86
86
  label: string;
87
87
  funding_amount: number;
88
88
  image_url: string | null;
89
89
  }, {
90
- description: string | null;
91
90
  id: number;
91
+ description: string | null;
92
92
  label: string;
93
93
  funding_amount: number;
94
94
  image_url: string | null;
95
95
  }>;
96
96
  }, "strip", z.ZodTypeAny, {
97
97
  result: {
98
- description: string | null;
99
98
  id: number;
99
+ description: string | null;
100
100
  label: string;
101
101
  funding_amount: number;
102
102
  image_url: string | null;
103
103
  };
104
104
  }, {
105
105
  result: {
106
- description: string | null;
107
106
  id: number;
107
+ description: string | null;
108
108
  label: string;
109
109
  funding_amount: number;
110
110
  image_url: string | null;
@@ -332,6 +332,41 @@ export declare const rootContract: {
332
332
  };
333
333
  };
334
334
  };
335
+ auctionTemplates: {
336
+ listAuctionTemplates: {
337
+ method: "GET";
338
+ path: "/auction-templates/";
339
+ responses: {
340
+ 200: import("zod").ZodObject<{
341
+ result: import("zod").ZodArray<import("zod").ZodObject<{
342
+ id: import("zod").ZodString;
343
+ name: import("zod").ZodString;
344
+ description: import("zod").ZodNullable<import("zod").ZodString>;
345
+ }, "strip", import("zod").ZodTypeAny, {
346
+ id: string;
347
+ name: string;
348
+ description: string | null;
349
+ }, {
350
+ id: string;
351
+ name: string;
352
+ description: string | null;
353
+ }>, "many">;
354
+ }, "strip", import("zod").ZodTypeAny, {
355
+ result: {
356
+ id: string;
357
+ name: string;
358
+ description: string | null;
359
+ }[];
360
+ }, {
361
+ result: {
362
+ id: string;
363
+ name: string;
364
+ description: string | null;
365
+ }[];
366
+ }>;
367
+ };
368
+ };
369
+ };
335
370
  communities: {
336
371
  fetchCommunities: {
337
372
  method: "GET";
@@ -345,30 +380,30 @@ export declare const rootContract: {
345
380
  funding_amount: import("zod").ZodNumber;
346
381
  image_url: import("zod").ZodNullable<import("zod").ZodString>;
347
382
  }, "strip", import("zod").ZodTypeAny, {
348
- description: string | null;
349
383
  id: number;
384
+ description: string | null;
350
385
  label: string;
351
386
  funding_amount: number;
352
387
  image_url: string | null;
353
388
  }, {
354
- description: string | null;
355
389
  id: number;
390
+ description: string | null;
356
391
  label: string;
357
392
  funding_amount: number;
358
393
  image_url: string | null;
359
394
  }>, "many">;
360
395
  }, "strip", import("zod").ZodTypeAny, {
361
396
  result: {
362
- description: string | null;
363
397
  id: number;
398
+ description: string | null;
364
399
  label: string;
365
400
  funding_amount: number;
366
401
  image_url: string | null;
367
402
  }[];
368
403
  }, {
369
404
  result: {
370
- description: string | null;
371
405
  id: number;
406
+ description: string | null;
372
407
  label: string;
373
408
  funding_amount: number;
374
409
  image_url: string | null;
@@ -395,30 +430,30 @@ export declare const rootContract: {
395
430
  funding_amount: import("zod").ZodNumber;
396
431
  image_url: import("zod").ZodNullable<import("zod").ZodString>;
397
432
  }, "strip", import("zod").ZodTypeAny, {
398
- description: string | null;
399
433
  id: number;
434
+ description: string | null;
400
435
  label: string;
401
436
  funding_amount: number;
402
437
  image_url: string | null;
403
438
  }, {
404
- description: string | null;
405
439
  id: number;
440
+ description: string | null;
406
441
  label: string;
407
442
  funding_amount: number;
408
443
  image_url: string | null;
409
444
  }>;
410
445
  }, "strip", import("zod").ZodTypeAny, {
411
446
  result: {
412
- description: string | null;
413
447
  id: number;
448
+ description: string | null;
414
449
  label: string;
415
450
  funding_amount: number;
416
451
  image_url: string | null;
417
452
  };
418
453
  }, {
419
454
  result: {
420
- description: string | null;
421
455
  id: number;
456
+ description: string | null;
422
457
  label: string;
423
458
  funding_amount: number;
424
459
  image_url: string | null;
@@ -473,8 +508,8 @@ export declare const rootContract: {
473
508
  }>, "many">;
474
509
  fee_receiver: import("zod").ZodString;
475
510
  }, "strip", import("zod").ZodTypeAny, {
476
- description: string;
477
511
  name: string;
512
+ description: string;
478
513
  image_hash: string;
479
514
  social_links: {
480
515
  label: string;
@@ -486,8 +521,8 @@ export declare const rootContract: {
486
521
  }[];
487
522
  fee_receiver: string;
488
523
  }, {
489
- description: string;
490
524
  name: string;
525
+ description: string;
491
526
  image_hash: string;
492
527
  social_links: {
493
528
  label: string;
@@ -786,6 +821,7 @@ export declare const rootContract: {
786
821
  };
787
822
  };
788
823
  export * from "./auction.contract";
824
+ export * from "./auction-template.contract";
789
825
  export * from "./community.contract";
790
826
  export * from "./ipfs.contract";
791
827
  export * from "./quote.contract";
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.rootContract = void 0;
18
18
  const core_1 = require("@ts-rest/core");
19
+ const auction_template_contract_1 = require("./auction-template.contract");
19
20
  const auction_contract_1 = require("./auction.contract");
20
21
  const community_contract_1 = require("./community.contract");
21
22
  const ipfs_contract_1 = require("./ipfs.contract");
@@ -23,11 +24,13 @@ const quote_contract_1 = require("./quote.contract");
23
24
  const contract = (0, core_1.initContract)();
24
25
  exports.rootContract = contract.router({
25
26
  auctions: auction_contract_1.auctionContract,
27
+ auctionTemplates: auction_template_contract_1.auctionTemplateContract,
26
28
  communities: community_contract_1.communityContract,
27
29
  ipfs: ipfs_contract_1.ipfsContract,
28
30
  quotes: quote_contract_1.quoteContract,
29
31
  });
30
32
  __exportStar(require("./auction.contract"), exports);
33
+ __exportStar(require("./auction-template.contract"), exports);
31
34
  __exportStar(require("./community.contract"), exports);
32
35
  __exportStar(require("./ipfs.contract"), exports);
33
36
  __exportStar(require("./quote.contract"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,wCAA6C;AAE7C,yDAAqD;AACrD,6DAAyD;AACzD,mDAA+C;AAC/C,qDAAiD;AAEjD,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AACnB,QAAA,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,kCAAe;IACzB,WAAW,EAAE,sCAAiB;IAC9B,IAAI,EAAE,4BAAY;IAClB,MAAM,EAAE,8BAAa;CACxB,CAAC,CAAC;AAEH,qDAAmC;AACnC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,wCAA6C;AAE7C,2EAAsE;AACtE,yDAAqD;AACrD,6DAAyD;AACzD,mDAA+C;AAC/C,qDAAiD;AAEjD,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AACnB,QAAA,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,kCAAe;IACzB,gBAAgB,EAAE,mDAAuB;IACzC,WAAW,EAAE,sCAAiB;IAC9B,IAAI,EAAE,4BAAY;IAClB,MAAM,EAAE,8BAAa;CACxB,CAAC,CAAC;AAEH,qDAAmC;AACnC,8DAA4C;AAC5C,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC"}
@@ -45,8 +45,8 @@ declare const ipfsContract: {
45
45
  }>, "many">;
46
46
  fee_receiver: z.ZodString;
47
47
  }, "strip", z.ZodTypeAny, {
48
- description: string;
49
48
  name: string;
49
+ description: string;
50
50
  image_hash: string;
51
51
  social_links: {
52
52
  label: string;
@@ -58,8 +58,8 @@ declare const ipfsContract: {
58
58
  }[];
59
59
  fee_receiver: string;
60
60
  }, {
61
- description: string;
62
61
  name: string;
62
+ description: string;
63
63
  image_hash: string;
64
64
  social_links: {
65
65
  label: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longdotxyz/shared",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "Shared types and utilities for Long.xyz API",
5
5
  "files": [
6
6
  "dist"