@homespot-sdk/validators 0.0.634 → 0.0.635

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 CHANGED
@@ -432,6 +432,104 @@ export declare const schemas: {
432
432
  status: z.ZodEnum<["NEW", "ACTIVE", "PAYMENT_FAILED", "INACTIVE"]>;
433
433
  }, z.ZodTypeAny, "passthrough">>, "many">;
434
434
  }, z.ZodTypeAny, "passthrough">>;
435
+ AddressViewResponse: z.ZodObject<{
436
+ country: z.ZodString;
437
+ city: z.ZodString;
438
+ district: z.ZodString;
439
+ subdistrict: z.ZodString;
440
+ street: z.ZodString;
441
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
442
+ country: z.ZodString;
443
+ city: z.ZodString;
444
+ district: z.ZodString;
445
+ subdistrict: z.ZodString;
446
+ street: z.ZodString;
447
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
448
+ country: z.ZodString;
449
+ city: z.ZodString;
450
+ district: z.ZodString;
451
+ subdistrict: z.ZodString;
452
+ street: z.ZodString;
453
+ }, z.ZodTypeAny, "passthrough">>;
454
+ AgencyViewResponse: z.ZodObject<{
455
+ name: z.ZodString;
456
+ email: z.ZodString;
457
+ seats: z.ZodNumber;
458
+ subDomain: z.ZodString;
459
+ phone: z.ZodString;
460
+ address: z.ZodObject<{
461
+ country: z.ZodString;
462
+ city: z.ZodString;
463
+ district: z.ZodString;
464
+ subdistrict: z.ZodString;
465
+ street: z.ZodString;
466
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
467
+ country: z.ZodString;
468
+ city: z.ZodString;
469
+ district: z.ZodString;
470
+ subdistrict: z.ZodString;
471
+ street: z.ZodString;
472
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
473
+ country: z.ZodString;
474
+ city: z.ZodString;
475
+ district: z.ZodString;
476
+ subdistrict: z.ZodString;
477
+ street: z.ZodString;
478
+ }, z.ZodTypeAny, "passthrough">>;
479
+ yearSince: z.ZodNumber;
480
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
481
+ name: z.ZodString;
482
+ email: z.ZodString;
483
+ seats: z.ZodNumber;
484
+ subDomain: z.ZodString;
485
+ phone: z.ZodString;
486
+ address: z.ZodObject<{
487
+ country: z.ZodString;
488
+ city: z.ZodString;
489
+ district: z.ZodString;
490
+ subdistrict: z.ZodString;
491
+ street: z.ZodString;
492
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
493
+ country: z.ZodString;
494
+ city: z.ZodString;
495
+ district: z.ZodString;
496
+ subdistrict: z.ZodString;
497
+ street: z.ZodString;
498
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
499
+ country: z.ZodString;
500
+ city: z.ZodString;
501
+ district: z.ZodString;
502
+ subdistrict: z.ZodString;
503
+ street: z.ZodString;
504
+ }, z.ZodTypeAny, "passthrough">>;
505
+ yearSince: z.ZodNumber;
506
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
507
+ name: z.ZodString;
508
+ email: z.ZodString;
509
+ seats: z.ZodNumber;
510
+ subDomain: z.ZodString;
511
+ phone: z.ZodString;
512
+ address: z.ZodObject<{
513
+ country: z.ZodString;
514
+ city: z.ZodString;
515
+ district: z.ZodString;
516
+ subdistrict: z.ZodString;
517
+ street: z.ZodString;
518
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
519
+ country: z.ZodString;
520
+ city: z.ZodString;
521
+ district: z.ZodString;
522
+ subdistrict: z.ZodString;
523
+ street: z.ZodString;
524
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
525
+ country: z.ZodString;
526
+ city: z.ZodString;
527
+ district: z.ZodString;
528
+ subdistrict: z.ZodString;
529
+ street: z.ZodString;
530
+ }, z.ZodTypeAny, "passthrough">>;
531
+ yearSince: z.ZodNumber;
532
+ }, z.ZodTypeAny, "passthrough">>;
435
533
  InvitationViewResponse: z.ZodObject<{
436
534
  invitationId: z.ZodString;
437
535
  email: z.ZodString;
package/dist/index.js CHANGED
@@ -99,6 +99,26 @@ const UserContextViewResponse = zod_1.z
99
99
  organizations: zod_1.z.array(OrganizationSummaryViewResponse),
100
100
  })
101
101
  .passthrough();
102
+ const AddressViewResponse = zod_1.z
103
+ .object({
104
+ country: zod_1.z.string(),
105
+ city: zod_1.z.string(),
106
+ district: zod_1.z.string(),
107
+ subdistrict: zod_1.z.string(),
108
+ street: zod_1.z.string(),
109
+ })
110
+ .passthrough();
111
+ const AgencyViewResponse = zod_1.z
112
+ .object({
113
+ name: zod_1.z.string(),
114
+ email: zod_1.z.string(),
115
+ seats: zod_1.z.number().int(),
116
+ subDomain: zod_1.z.string(),
117
+ phone: zod_1.z.string(),
118
+ address: AddressViewResponse,
119
+ yearSince: zod_1.z.number().int(),
120
+ })
121
+ .passthrough();
102
122
  const InvitationViewResponse = zod_1.z
103
123
  .object({
104
124
  invitationId: zod_1.z.string().uuid(),
@@ -125,6 +145,8 @@ exports.schemas = {
125
145
  OrganizationSummaryViewResponse,
126
146
  UserSummaryViewResponse,
127
147
  UserContextViewResponse,
148
+ AddressViewResponse,
149
+ AgencyViewResponse,
128
150
  InvitationViewResponse,
129
151
  };
130
152
  const endpoints = (0, core_1.makeApi)([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homespot-sdk/validators",
3
- "version": "0.0.634",
3
+ "version": "0.0.635",
4
4
  "main": "dist/index.js",
5
5
  "types": "src/index.ts",
6
6
  "files": [
package/src/index.ts CHANGED
@@ -100,6 +100,26 @@ const UserContextViewResponse = z
100
100
  organizations: z.array(OrganizationSummaryViewResponse),
101
101
  })
102
102
  .passthrough();
103
+ const AddressViewResponse = z
104
+ .object({
105
+ country: z.string(),
106
+ city: z.string(),
107
+ district: z.string(),
108
+ subdistrict: z.string(),
109
+ street: z.string(),
110
+ })
111
+ .passthrough();
112
+ const AgencyViewResponse = z
113
+ .object({
114
+ name: z.string(),
115
+ email: z.string(),
116
+ seats: z.number().int(),
117
+ subDomain: z.string(),
118
+ phone: z.string(),
119
+ address: AddressViewResponse,
120
+ yearSince: z.number().int(),
121
+ })
122
+ .passthrough();
103
123
  const InvitationViewResponse = z
104
124
  .object({
105
125
  invitationId: z.string().uuid(),
@@ -127,6 +147,8 @@ export const schemas = {
127
147
  OrganizationSummaryViewResponse,
128
148
  UserSummaryViewResponse,
129
149
  UserContextViewResponse,
150
+ AddressViewResponse,
151
+ AgencyViewResponse,
130
152
  InvitationViewResponse,
131
153
  };
132
154