@deliverart/sdk-js-company 0.1.0 → 0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @deliverart/sdk-js-company
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 575341f: expose adminby for editable field
8
+
9
+ ## 0.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - f1dee79: fix taxCode nullable
14
+
3
15
  ## 0.1.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -52,7 +52,7 @@ var companySchema = import_zod.z.object({
52
52
  id: import_zod.z.string(),
53
53
  businessName: import_zod.z.string(),
54
54
  vat: import_zod.z.string(),
55
- taxCode: import_zod.z.string(),
55
+ taxCode: import_zod.z.string().nullable(),
56
56
  operationalAddress: import_sdk_js_global_types.addressSchema,
57
57
  createdAt: import_sdk_js_global_types.datetimeSchema,
58
58
  updatedAt: import_sdk_js_global_types.datetimeSchema
@@ -68,7 +68,9 @@ var writableCompanySchema = companyDetailsSchema.pick({
68
68
  taxCode: true,
69
69
  billingAddress: true,
70
70
  operationalAddress: true,
71
- billingData: true
71
+ billingData: true,
72
+ adminBy: true
73
+ // Only Admin can set this
72
74
  });
73
75
  var companiesQuerySchema = import_zod.z.object({
74
76
  businessName: import_zod.z.string().optional(),
package/dist/index.d.cts CHANGED
@@ -8,7 +8,7 @@ declare const companySchema: z.ZodObject<{
8
8
  id: z.ZodString;
9
9
  businessName: z.ZodString;
10
10
  vat: z.ZodString;
11
- taxCode: z.ZodString;
11
+ taxCode: z.ZodNullable<z.ZodString>;
12
12
  operationalAddress: z.ZodObject<{
13
13
  line1: z.ZodString;
14
14
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -37,7 +37,7 @@ declare const companySchema: z.ZodObject<{
37
37
  id: string;
38
38
  businessName: string;
39
39
  vat: string;
40
- taxCode: string;
40
+ taxCode: string | null;
41
41
  operationalAddress: {
42
42
  line1: string;
43
43
  city: string;
@@ -52,7 +52,7 @@ declare const companySchema: z.ZodObject<{
52
52
  id: string;
53
53
  businessName: string;
54
54
  vat: string;
55
- taxCode: string;
55
+ taxCode: string | null;
56
56
  operationalAddress: {
57
57
  line1: string;
58
58
  city: string;
@@ -69,7 +69,7 @@ declare const companyDetailsSchema: z.ZodObject<{
69
69
  id: z.ZodString;
70
70
  businessName: z.ZodString;
71
71
  vat: z.ZodString;
72
- taxCode: z.ZodString;
72
+ taxCode: z.ZodNullable<z.ZodString>;
73
73
  operationalAddress: z.ZodObject<{
74
74
  line1: z.ZodString;
75
75
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -138,7 +138,7 @@ declare const companyDetailsSchema: z.ZodObject<{
138
138
  id: string;
139
139
  businessName: string;
140
140
  vat: string;
141
- taxCode: string;
141
+ taxCode: string | null;
142
142
  operationalAddress: {
143
143
  line1: string;
144
144
  city: string;
@@ -166,7 +166,7 @@ declare const companyDetailsSchema: z.ZodObject<{
166
166
  id: string;
167
167
  businessName: string;
168
168
  vat: string;
169
- taxCode: string;
169
+ taxCode: string | null;
170
170
  operationalAddress: {
171
171
  line1: string;
172
172
  city: string;
@@ -196,7 +196,7 @@ declare const writableCompanySchema: z.ZodObject<Pick<{
196
196
  id: z.ZodString;
197
197
  businessName: z.ZodString;
198
198
  vat: z.ZodString;
199
- taxCode: z.ZodString;
199
+ taxCode: z.ZodNullable<z.ZodString>;
200
200
  operationalAddress: z.ZodObject<{
201
201
  line1: z.ZodString;
202
202
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -261,10 +261,10 @@ declare const writableCompanySchema: z.ZodObject<Pick<{
261
261
  pec?: string | null | undefined;
262
262
  }>;
263
263
  adminBy: z.ZodEffects<z.ZodString, _deliverart_sdk_js_global_types.IriObject<"/users/:id">, string>;
264
- }, "businessName" | "vat" | "taxCode" | "operationalAddress" | "billingAddress" | "billingData">, "strip", z.ZodTypeAny, {
264
+ }, "businessName" | "vat" | "taxCode" | "operationalAddress" | "billingAddress" | "billingData" | "adminBy">, "strip", z.ZodTypeAny, {
265
265
  businessName: string;
266
266
  vat: string;
267
- taxCode: string;
267
+ taxCode: string | null;
268
268
  operationalAddress: {
269
269
  line1: string;
270
270
  city: string;
@@ -285,10 +285,11 @@ declare const writableCompanySchema: z.ZodObject<Pick<{
285
285
  sdi?: string | null | undefined;
286
286
  pec?: string | null | undefined;
287
287
  };
288
+ adminBy: _deliverart_sdk_js_global_types.IriObject<"/users/:id">;
288
289
  }, {
289
290
  businessName: string;
290
291
  vat: string;
291
- taxCode: string;
292
+ taxCode: string | null;
292
293
  operationalAddress: {
293
294
  line1: string;
294
295
  city: string;
@@ -309,6 +310,7 @@ declare const writableCompanySchema: z.ZodObject<Pick<{
309
310
  sdi?: string | null | undefined;
310
311
  pec?: string | null | undefined;
311
312
  };
313
+ adminBy: string;
312
314
  }>;
313
315
  declare const companiesQuerySchema: z.ZodObject<{
314
316
  businessName: z.ZodOptional<z.ZodString>;
@@ -352,7 +354,7 @@ type CompaniesQueryParams = z.infer<typeof companiesQuerySchema>;
352
354
  declare const createCompanyInputSchema: z.ZodObject<{
353
355
  businessName: z.ZodString;
354
356
  vat: z.ZodString;
355
- taxCode: z.ZodString;
357
+ taxCode: z.ZodNullable<z.ZodString>;
356
358
  operationalAddress: z.ZodObject<{
357
359
  line1: z.ZodString;
358
360
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -413,10 +415,11 @@ declare const createCompanyInputSchema: z.ZodObject<{
413
415
  sdi?: string | null | undefined;
414
416
  pec?: string | null | undefined;
415
417
  }>;
418
+ adminBy: z.ZodEffects<z.ZodString, _deliverart_sdk_js_global_types.IriObject<"/users/:id">, string>;
416
419
  }, "strip", z.ZodTypeAny, {
417
420
  businessName: string;
418
421
  vat: string;
419
- taxCode: string;
422
+ taxCode: string | null;
420
423
  operationalAddress: {
421
424
  line1: string;
422
425
  city: string;
@@ -437,10 +440,11 @@ declare const createCompanyInputSchema: z.ZodObject<{
437
440
  sdi?: string | null | undefined;
438
441
  pec?: string | null | undefined;
439
442
  };
443
+ adminBy: _deliverart_sdk_js_global_types.IriObject<"/users/:id">;
440
444
  }, {
441
445
  businessName: string;
442
446
  vat: string;
443
- taxCode: string;
447
+ taxCode: string | null;
444
448
  operationalAddress: {
445
449
  line1: string;
446
450
  city: string;
@@ -461,13 +465,14 @@ declare const createCompanyInputSchema: z.ZodObject<{
461
465
  sdi?: string | null | undefined;
462
466
  pec?: string | null | undefined;
463
467
  };
468
+ adminBy: string;
464
469
  }>;
465
470
  type CreateCompanyInput = z.input<typeof createCompanyInputSchema>;
466
471
  declare const createCompanyResponseSchema: z.ZodObject<{
467
472
  id: z.ZodString;
468
473
  businessName: z.ZodString;
469
474
  vat: z.ZodString;
470
- taxCode: z.ZodString;
475
+ taxCode: z.ZodNullable<z.ZodString>;
471
476
  operationalAddress: z.ZodObject<{
472
477
  line1: z.ZodString;
473
478
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -536,7 +541,7 @@ declare const createCompanyResponseSchema: z.ZodObject<{
536
541
  id: string;
537
542
  businessName: string;
538
543
  vat: string;
539
- taxCode: string;
544
+ taxCode: string | null;
540
545
  operationalAddress: {
541
546
  line1: string;
542
547
  city: string;
@@ -564,7 +569,7 @@ declare const createCompanyResponseSchema: z.ZodObject<{
564
569
  id: string;
565
570
  businessName: string;
566
571
  vat: string;
567
- taxCode: string;
572
+ taxCode: string | null;
568
573
  operationalAddress: {
569
574
  line1: string;
570
575
  city: string;
@@ -597,7 +602,7 @@ declare class CreateCompany extends AbstractApiRequest<typeof createCompanyInput
597
602
  readonly inputSchema: z.ZodObject<{
598
603
  businessName: z.ZodString;
599
604
  vat: z.ZodString;
600
- taxCode: z.ZodString;
605
+ taxCode: z.ZodNullable<z.ZodString>;
601
606
  operationalAddress: z.ZodObject<{
602
607
  line1: z.ZodString;
603
608
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -658,10 +663,11 @@ declare class CreateCompany extends AbstractApiRequest<typeof createCompanyInput
658
663
  sdi?: string | null | undefined;
659
664
  pec?: string | null | undefined;
660
665
  }>;
666
+ adminBy: z.ZodEffects<z.ZodString, _deliverart_sdk_js_global_types.IriObject<"/users/:id">, string>;
661
667
  }, "strip", z.ZodTypeAny, {
662
668
  businessName: string;
663
669
  vat: string;
664
- taxCode: string;
670
+ taxCode: string | null;
665
671
  operationalAddress: {
666
672
  line1: string;
667
673
  city: string;
@@ -682,10 +688,11 @@ declare class CreateCompany extends AbstractApiRequest<typeof createCompanyInput
682
688
  sdi?: string | null | undefined;
683
689
  pec?: string | null | undefined;
684
690
  };
691
+ adminBy: _deliverart_sdk_js_global_types.IriObject<"/users/:id">;
685
692
  }, {
686
693
  businessName: string;
687
694
  vat: string;
688
- taxCode: string;
695
+ taxCode: string | null;
689
696
  operationalAddress: {
690
697
  line1: string;
691
698
  city: string;
@@ -706,12 +713,13 @@ declare class CreateCompany extends AbstractApiRequest<typeof createCompanyInput
706
713
  sdi?: string | null | undefined;
707
714
  pec?: string | null | undefined;
708
715
  };
716
+ adminBy: string;
709
717
  }>;
710
718
  readonly outputSchema: z.ZodObject<{
711
719
  id: z.ZodString;
712
720
  businessName: z.ZodString;
713
721
  vat: z.ZodString;
714
- taxCode: z.ZodString;
722
+ taxCode: z.ZodNullable<z.ZodString>;
715
723
  operationalAddress: z.ZodObject<{
716
724
  line1: z.ZodString;
717
725
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -780,7 +788,7 @@ declare class CreateCompany extends AbstractApiRequest<typeof createCompanyInput
780
788
  id: string;
781
789
  businessName: string;
782
790
  vat: string;
783
- taxCode: string;
791
+ taxCode: string | null;
784
792
  operationalAddress: {
785
793
  line1: string;
786
794
  city: string;
@@ -808,7 +816,7 @@ declare class CreateCompany extends AbstractApiRequest<typeof createCompanyInput
808
816
  id: string;
809
817
  businessName: string;
810
818
  vat: string;
811
- taxCode: string;
819
+ taxCode: string | null;
812
820
  operationalAddress: {
813
821
  line1: string;
814
822
  city: string;
@@ -899,7 +907,7 @@ declare const getCompaniesResponseSchema: z.ZodObject<{
899
907
  id: z.ZodString;
900
908
  businessName: z.ZodString;
901
909
  vat: z.ZodString;
902
- taxCode: z.ZodString;
910
+ taxCode: z.ZodNullable<z.ZodString>;
903
911
  operationalAddress: z.ZodObject<{
904
912
  line1: z.ZodString;
905
913
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -928,7 +936,7 @@ declare const getCompaniesResponseSchema: z.ZodObject<{
928
936
  id: string;
929
937
  businessName: string;
930
938
  vat: string;
931
- taxCode: string;
939
+ taxCode: string | null;
932
940
  operationalAddress: {
933
941
  line1: string;
934
942
  city: string;
@@ -943,7 +951,7 @@ declare const getCompaniesResponseSchema: z.ZodObject<{
943
951
  id: string;
944
952
  businessName: string;
945
953
  vat: string;
946
- taxCode: string;
954
+ taxCode: string | null;
947
955
  operationalAddress: {
948
956
  line1: string;
949
957
  city: string;
@@ -982,7 +990,7 @@ declare const getCompaniesResponseSchema: z.ZodObject<{
982
990
  id: string;
983
991
  businessName: string;
984
992
  vat: string;
985
- taxCode: string;
993
+ taxCode: string | null;
986
994
  operationalAddress: {
987
995
  line1: string;
988
996
  city: string;
@@ -1007,7 +1015,7 @@ declare const getCompaniesResponseSchema: z.ZodObject<{
1007
1015
  id: string;
1008
1016
  businessName: string;
1009
1017
  vat: string;
1010
- taxCode: string;
1018
+ taxCode: string | null;
1011
1019
  operationalAddress: {
1012
1020
  line1: string;
1013
1021
  city: string;
@@ -1039,7 +1047,7 @@ declare class GetCompanies extends AbstractApiRequest<typeof getCompaniesInputSc
1039
1047
  id: z.ZodString;
1040
1048
  businessName: z.ZodString;
1041
1049
  vat: z.ZodString;
1042
- taxCode: z.ZodString;
1050
+ taxCode: z.ZodNullable<z.ZodString>;
1043
1051
  operationalAddress: z.ZodObject<{
1044
1052
  line1: z.ZodString;
1045
1053
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1068,7 +1076,7 @@ declare class GetCompanies extends AbstractApiRequest<typeof getCompaniesInputSc
1068
1076
  id: string;
1069
1077
  businessName: string;
1070
1078
  vat: string;
1071
- taxCode: string;
1079
+ taxCode: string | null;
1072
1080
  operationalAddress: {
1073
1081
  line1: string;
1074
1082
  city: string;
@@ -1083,7 +1091,7 @@ declare class GetCompanies extends AbstractApiRequest<typeof getCompaniesInputSc
1083
1091
  id: string;
1084
1092
  businessName: string;
1085
1093
  vat: string;
1086
- taxCode: string;
1094
+ taxCode: string | null;
1087
1095
  operationalAddress: {
1088
1096
  line1: string;
1089
1097
  city: string;
@@ -1122,7 +1130,7 @@ declare class GetCompanies extends AbstractApiRequest<typeof getCompaniesInputSc
1122
1130
  id: string;
1123
1131
  businessName: string;
1124
1132
  vat: string;
1125
- taxCode: string;
1133
+ taxCode: string | null;
1126
1134
  operationalAddress: {
1127
1135
  line1: string;
1128
1136
  city: string;
@@ -1147,7 +1155,7 @@ declare class GetCompanies extends AbstractApiRequest<typeof getCompaniesInputSc
1147
1155
  id: string;
1148
1156
  businessName: string;
1149
1157
  vat: string;
1150
- taxCode: string;
1158
+ taxCode: string | null;
1151
1159
  operationalAddress: {
1152
1160
  line1: string;
1153
1161
  city: string;
@@ -1219,7 +1227,7 @@ declare const getCompanyDetailsResponseSchema: z.ZodObject<{
1219
1227
  id: z.ZodString;
1220
1228
  businessName: z.ZodString;
1221
1229
  vat: z.ZodString;
1222
- taxCode: z.ZodString;
1230
+ taxCode: z.ZodNullable<z.ZodString>;
1223
1231
  operationalAddress: z.ZodObject<{
1224
1232
  line1: z.ZodString;
1225
1233
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1288,7 +1296,7 @@ declare const getCompanyDetailsResponseSchema: z.ZodObject<{
1288
1296
  id: string;
1289
1297
  businessName: string;
1290
1298
  vat: string;
1291
- taxCode: string;
1299
+ taxCode: string | null;
1292
1300
  operationalAddress: {
1293
1301
  line1: string;
1294
1302
  city: string;
@@ -1316,7 +1324,7 @@ declare const getCompanyDetailsResponseSchema: z.ZodObject<{
1316
1324
  id: string;
1317
1325
  businessName: string;
1318
1326
  vat: string;
1319
- taxCode: string;
1327
+ taxCode: string | null;
1320
1328
  operationalAddress: {
1321
1329
  line1: string;
1322
1330
  city: string;
@@ -1351,7 +1359,7 @@ declare class GetCompanyDetails extends AbstractApiRequest<typeof getCompanyDeta
1351
1359
  id: z.ZodString;
1352
1360
  businessName: z.ZodString;
1353
1361
  vat: z.ZodString;
1354
- taxCode: z.ZodString;
1362
+ taxCode: z.ZodNullable<z.ZodString>;
1355
1363
  operationalAddress: z.ZodObject<{
1356
1364
  line1: z.ZodString;
1357
1365
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1420,7 +1428,7 @@ declare class GetCompanyDetails extends AbstractApiRequest<typeof getCompanyDeta
1420
1428
  id: string;
1421
1429
  businessName: string;
1422
1430
  vat: string;
1423
- taxCode: string;
1431
+ taxCode: string | null;
1424
1432
  operationalAddress: {
1425
1433
  line1: string;
1426
1434
  city: string;
@@ -1448,7 +1456,7 @@ declare class GetCompanyDetails extends AbstractApiRequest<typeof getCompanyDeta
1448
1456
  id: string;
1449
1457
  businessName: string;
1450
1458
  vat: string;
1451
- taxCode: string;
1459
+ taxCode: string | null;
1452
1460
  operationalAddress: {
1453
1461
  line1: string;
1454
1462
  city: string;
@@ -1483,7 +1491,7 @@ declare class GetCompanyDetails extends AbstractApiRequest<typeof getCompanyDeta
1483
1491
  declare const updateCompanyInputSchema: z.ZodObject<{
1484
1492
  businessName: z.ZodOptional<z.ZodString>;
1485
1493
  vat: z.ZodOptional<z.ZodString>;
1486
- taxCode: z.ZodOptional<z.ZodString>;
1494
+ taxCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1487
1495
  operationalAddress: z.ZodOptional<z.ZodObject<{
1488
1496
  line1: z.ZodString;
1489
1497
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1544,10 +1552,11 @@ declare const updateCompanyInputSchema: z.ZodObject<{
1544
1552
  sdi?: string | null | undefined;
1545
1553
  pec?: string | null | undefined;
1546
1554
  }>>;
1555
+ adminBy: z.ZodOptional<z.ZodEffects<z.ZodString, _deliverart_sdk_js_global_types.IriObject<"/users/:id">, string>>;
1547
1556
  }, "strip", z.ZodTypeAny, {
1548
1557
  businessName?: string | undefined;
1549
1558
  vat?: string | undefined;
1550
- taxCode?: string | undefined;
1559
+ taxCode?: string | null | undefined;
1551
1560
  operationalAddress?: {
1552
1561
  line1: string;
1553
1562
  city: string;
@@ -1568,10 +1577,11 @@ declare const updateCompanyInputSchema: z.ZodObject<{
1568
1577
  sdi?: string | null | undefined;
1569
1578
  pec?: string | null | undefined;
1570
1579
  } | undefined;
1580
+ adminBy?: _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | undefined;
1571
1581
  }, {
1572
1582
  businessName?: string | undefined;
1573
1583
  vat?: string | undefined;
1574
- taxCode?: string | undefined;
1584
+ taxCode?: string | null | undefined;
1575
1585
  operationalAddress?: {
1576
1586
  line1: string;
1577
1587
  city: string;
@@ -1592,13 +1602,14 @@ declare const updateCompanyInputSchema: z.ZodObject<{
1592
1602
  sdi?: string | null | undefined;
1593
1603
  pec?: string | null | undefined;
1594
1604
  } | undefined;
1605
+ adminBy?: string | undefined;
1595
1606
  }>;
1596
1607
  type UpdateCompanyInput = z.input<typeof updateCompanyInputSchema>;
1597
1608
  declare const updateCompanyResponseSchema: z.ZodObject<{
1598
1609
  id: z.ZodString;
1599
1610
  businessName: z.ZodString;
1600
1611
  vat: z.ZodString;
1601
- taxCode: z.ZodString;
1612
+ taxCode: z.ZodNullable<z.ZodString>;
1602
1613
  operationalAddress: z.ZodObject<{
1603
1614
  line1: z.ZodString;
1604
1615
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1667,7 +1678,7 @@ declare const updateCompanyResponseSchema: z.ZodObject<{
1667
1678
  id: string;
1668
1679
  businessName: string;
1669
1680
  vat: string;
1670
- taxCode: string;
1681
+ taxCode: string | null;
1671
1682
  operationalAddress: {
1672
1683
  line1: string;
1673
1684
  city: string;
@@ -1695,7 +1706,7 @@ declare const updateCompanyResponseSchema: z.ZodObject<{
1695
1706
  id: string;
1696
1707
  businessName: string;
1697
1708
  vat: string;
1698
- taxCode: string;
1709
+ taxCode: string | null;
1699
1710
  operationalAddress: {
1700
1711
  line1: string;
1701
1712
  city: string;
@@ -1728,7 +1739,7 @@ declare class UpdateCompany extends AbstractApiRequest<typeof updateCompanyInput
1728
1739
  readonly inputSchema: z.ZodObject<{
1729
1740
  businessName: z.ZodOptional<z.ZodString>;
1730
1741
  vat: z.ZodOptional<z.ZodString>;
1731
- taxCode: z.ZodOptional<z.ZodString>;
1742
+ taxCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1732
1743
  operationalAddress: z.ZodOptional<z.ZodObject<{
1733
1744
  line1: z.ZodString;
1734
1745
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1789,10 +1800,11 @@ declare class UpdateCompany extends AbstractApiRequest<typeof updateCompanyInput
1789
1800
  sdi?: string | null | undefined;
1790
1801
  pec?: string | null | undefined;
1791
1802
  }>>;
1803
+ adminBy: z.ZodOptional<z.ZodEffects<z.ZodString, _deliverart_sdk_js_global_types.IriObject<"/users/:id">, string>>;
1792
1804
  }, "strip", z.ZodTypeAny, {
1793
1805
  businessName?: string | undefined;
1794
1806
  vat?: string | undefined;
1795
- taxCode?: string | undefined;
1807
+ taxCode?: string | null | undefined;
1796
1808
  operationalAddress?: {
1797
1809
  line1: string;
1798
1810
  city: string;
@@ -1813,10 +1825,11 @@ declare class UpdateCompany extends AbstractApiRequest<typeof updateCompanyInput
1813
1825
  sdi?: string | null | undefined;
1814
1826
  pec?: string | null | undefined;
1815
1827
  } | undefined;
1828
+ adminBy?: _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | undefined;
1816
1829
  }, {
1817
1830
  businessName?: string | undefined;
1818
1831
  vat?: string | undefined;
1819
- taxCode?: string | undefined;
1832
+ taxCode?: string | null | undefined;
1820
1833
  operationalAddress?: {
1821
1834
  line1: string;
1822
1835
  city: string;
@@ -1837,12 +1850,13 @@ declare class UpdateCompany extends AbstractApiRequest<typeof updateCompanyInput
1837
1850
  sdi?: string | null | undefined;
1838
1851
  pec?: string | null | undefined;
1839
1852
  } | undefined;
1853
+ adminBy?: string | undefined;
1840
1854
  }>;
1841
1855
  readonly outputSchema: z.ZodObject<{
1842
1856
  id: z.ZodString;
1843
1857
  businessName: z.ZodString;
1844
1858
  vat: z.ZodString;
1845
- taxCode: z.ZodString;
1859
+ taxCode: z.ZodNullable<z.ZodString>;
1846
1860
  operationalAddress: z.ZodObject<{
1847
1861
  line1: z.ZodString;
1848
1862
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1911,7 +1925,7 @@ declare class UpdateCompany extends AbstractApiRequest<typeof updateCompanyInput
1911
1925
  id: string;
1912
1926
  businessName: string;
1913
1927
  vat: string;
1914
- taxCode: string;
1928
+ taxCode: string | null;
1915
1929
  operationalAddress: {
1916
1930
  line1: string;
1917
1931
  city: string;
@@ -1939,7 +1953,7 @@ declare class UpdateCompany extends AbstractApiRequest<typeof updateCompanyInput
1939
1953
  id: string;
1940
1954
  businessName: string;
1941
1955
  vat: string;
1942
- taxCode: string;
1956
+ taxCode: string | null;
1943
1957
  operationalAddress: {
1944
1958
  line1: string;
1945
1959
  city: string;
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ declare const companySchema: z.ZodObject<{
8
8
  id: z.ZodString;
9
9
  businessName: z.ZodString;
10
10
  vat: z.ZodString;
11
- taxCode: z.ZodString;
11
+ taxCode: z.ZodNullable<z.ZodString>;
12
12
  operationalAddress: z.ZodObject<{
13
13
  line1: z.ZodString;
14
14
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -37,7 +37,7 @@ declare const companySchema: z.ZodObject<{
37
37
  id: string;
38
38
  businessName: string;
39
39
  vat: string;
40
- taxCode: string;
40
+ taxCode: string | null;
41
41
  operationalAddress: {
42
42
  line1: string;
43
43
  city: string;
@@ -52,7 +52,7 @@ declare const companySchema: z.ZodObject<{
52
52
  id: string;
53
53
  businessName: string;
54
54
  vat: string;
55
- taxCode: string;
55
+ taxCode: string | null;
56
56
  operationalAddress: {
57
57
  line1: string;
58
58
  city: string;
@@ -69,7 +69,7 @@ declare const companyDetailsSchema: z.ZodObject<{
69
69
  id: z.ZodString;
70
70
  businessName: z.ZodString;
71
71
  vat: z.ZodString;
72
- taxCode: z.ZodString;
72
+ taxCode: z.ZodNullable<z.ZodString>;
73
73
  operationalAddress: z.ZodObject<{
74
74
  line1: z.ZodString;
75
75
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -138,7 +138,7 @@ declare const companyDetailsSchema: z.ZodObject<{
138
138
  id: string;
139
139
  businessName: string;
140
140
  vat: string;
141
- taxCode: string;
141
+ taxCode: string | null;
142
142
  operationalAddress: {
143
143
  line1: string;
144
144
  city: string;
@@ -166,7 +166,7 @@ declare const companyDetailsSchema: z.ZodObject<{
166
166
  id: string;
167
167
  businessName: string;
168
168
  vat: string;
169
- taxCode: string;
169
+ taxCode: string | null;
170
170
  operationalAddress: {
171
171
  line1: string;
172
172
  city: string;
@@ -196,7 +196,7 @@ declare const writableCompanySchema: z.ZodObject<Pick<{
196
196
  id: z.ZodString;
197
197
  businessName: z.ZodString;
198
198
  vat: z.ZodString;
199
- taxCode: z.ZodString;
199
+ taxCode: z.ZodNullable<z.ZodString>;
200
200
  operationalAddress: z.ZodObject<{
201
201
  line1: z.ZodString;
202
202
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -261,10 +261,10 @@ declare const writableCompanySchema: z.ZodObject<Pick<{
261
261
  pec?: string | null | undefined;
262
262
  }>;
263
263
  adminBy: z.ZodEffects<z.ZodString, _deliverart_sdk_js_global_types.IriObject<"/users/:id">, string>;
264
- }, "businessName" | "vat" | "taxCode" | "operationalAddress" | "billingAddress" | "billingData">, "strip", z.ZodTypeAny, {
264
+ }, "businessName" | "vat" | "taxCode" | "operationalAddress" | "billingAddress" | "billingData" | "adminBy">, "strip", z.ZodTypeAny, {
265
265
  businessName: string;
266
266
  vat: string;
267
- taxCode: string;
267
+ taxCode: string | null;
268
268
  operationalAddress: {
269
269
  line1: string;
270
270
  city: string;
@@ -285,10 +285,11 @@ declare const writableCompanySchema: z.ZodObject<Pick<{
285
285
  sdi?: string | null | undefined;
286
286
  pec?: string | null | undefined;
287
287
  };
288
+ adminBy: _deliverart_sdk_js_global_types.IriObject<"/users/:id">;
288
289
  }, {
289
290
  businessName: string;
290
291
  vat: string;
291
- taxCode: string;
292
+ taxCode: string | null;
292
293
  operationalAddress: {
293
294
  line1: string;
294
295
  city: string;
@@ -309,6 +310,7 @@ declare const writableCompanySchema: z.ZodObject<Pick<{
309
310
  sdi?: string | null | undefined;
310
311
  pec?: string | null | undefined;
311
312
  };
313
+ adminBy: string;
312
314
  }>;
313
315
  declare const companiesQuerySchema: z.ZodObject<{
314
316
  businessName: z.ZodOptional<z.ZodString>;
@@ -352,7 +354,7 @@ type CompaniesQueryParams = z.infer<typeof companiesQuerySchema>;
352
354
  declare const createCompanyInputSchema: z.ZodObject<{
353
355
  businessName: z.ZodString;
354
356
  vat: z.ZodString;
355
- taxCode: z.ZodString;
357
+ taxCode: z.ZodNullable<z.ZodString>;
356
358
  operationalAddress: z.ZodObject<{
357
359
  line1: z.ZodString;
358
360
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -413,10 +415,11 @@ declare const createCompanyInputSchema: z.ZodObject<{
413
415
  sdi?: string | null | undefined;
414
416
  pec?: string | null | undefined;
415
417
  }>;
418
+ adminBy: z.ZodEffects<z.ZodString, _deliverart_sdk_js_global_types.IriObject<"/users/:id">, string>;
416
419
  }, "strip", z.ZodTypeAny, {
417
420
  businessName: string;
418
421
  vat: string;
419
- taxCode: string;
422
+ taxCode: string | null;
420
423
  operationalAddress: {
421
424
  line1: string;
422
425
  city: string;
@@ -437,10 +440,11 @@ declare const createCompanyInputSchema: z.ZodObject<{
437
440
  sdi?: string | null | undefined;
438
441
  pec?: string | null | undefined;
439
442
  };
443
+ adminBy: _deliverart_sdk_js_global_types.IriObject<"/users/:id">;
440
444
  }, {
441
445
  businessName: string;
442
446
  vat: string;
443
- taxCode: string;
447
+ taxCode: string | null;
444
448
  operationalAddress: {
445
449
  line1: string;
446
450
  city: string;
@@ -461,13 +465,14 @@ declare const createCompanyInputSchema: z.ZodObject<{
461
465
  sdi?: string | null | undefined;
462
466
  pec?: string | null | undefined;
463
467
  };
468
+ adminBy: string;
464
469
  }>;
465
470
  type CreateCompanyInput = z.input<typeof createCompanyInputSchema>;
466
471
  declare const createCompanyResponseSchema: z.ZodObject<{
467
472
  id: z.ZodString;
468
473
  businessName: z.ZodString;
469
474
  vat: z.ZodString;
470
- taxCode: z.ZodString;
475
+ taxCode: z.ZodNullable<z.ZodString>;
471
476
  operationalAddress: z.ZodObject<{
472
477
  line1: z.ZodString;
473
478
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -536,7 +541,7 @@ declare const createCompanyResponseSchema: z.ZodObject<{
536
541
  id: string;
537
542
  businessName: string;
538
543
  vat: string;
539
- taxCode: string;
544
+ taxCode: string | null;
540
545
  operationalAddress: {
541
546
  line1: string;
542
547
  city: string;
@@ -564,7 +569,7 @@ declare const createCompanyResponseSchema: z.ZodObject<{
564
569
  id: string;
565
570
  businessName: string;
566
571
  vat: string;
567
- taxCode: string;
572
+ taxCode: string | null;
568
573
  operationalAddress: {
569
574
  line1: string;
570
575
  city: string;
@@ -597,7 +602,7 @@ declare class CreateCompany extends AbstractApiRequest<typeof createCompanyInput
597
602
  readonly inputSchema: z.ZodObject<{
598
603
  businessName: z.ZodString;
599
604
  vat: z.ZodString;
600
- taxCode: z.ZodString;
605
+ taxCode: z.ZodNullable<z.ZodString>;
601
606
  operationalAddress: z.ZodObject<{
602
607
  line1: z.ZodString;
603
608
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -658,10 +663,11 @@ declare class CreateCompany extends AbstractApiRequest<typeof createCompanyInput
658
663
  sdi?: string | null | undefined;
659
664
  pec?: string | null | undefined;
660
665
  }>;
666
+ adminBy: z.ZodEffects<z.ZodString, _deliverart_sdk_js_global_types.IriObject<"/users/:id">, string>;
661
667
  }, "strip", z.ZodTypeAny, {
662
668
  businessName: string;
663
669
  vat: string;
664
- taxCode: string;
670
+ taxCode: string | null;
665
671
  operationalAddress: {
666
672
  line1: string;
667
673
  city: string;
@@ -682,10 +688,11 @@ declare class CreateCompany extends AbstractApiRequest<typeof createCompanyInput
682
688
  sdi?: string | null | undefined;
683
689
  pec?: string | null | undefined;
684
690
  };
691
+ adminBy: _deliverart_sdk_js_global_types.IriObject<"/users/:id">;
685
692
  }, {
686
693
  businessName: string;
687
694
  vat: string;
688
- taxCode: string;
695
+ taxCode: string | null;
689
696
  operationalAddress: {
690
697
  line1: string;
691
698
  city: string;
@@ -706,12 +713,13 @@ declare class CreateCompany extends AbstractApiRequest<typeof createCompanyInput
706
713
  sdi?: string | null | undefined;
707
714
  pec?: string | null | undefined;
708
715
  };
716
+ adminBy: string;
709
717
  }>;
710
718
  readonly outputSchema: z.ZodObject<{
711
719
  id: z.ZodString;
712
720
  businessName: z.ZodString;
713
721
  vat: z.ZodString;
714
- taxCode: z.ZodString;
722
+ taxCode: z.ZodNullable<z.ZodString>;
715
723
  operationalAddress: z.ZodObject<{
716
724
  line1: z.ZodString;
717
725
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -780,7 +788,7 @@ declare class CreateCompany extends AbstractApiRequest<typeof createCompanyInput
780
788
  id: string;
781
789
  businessName: string;
782
790
  vat: string;
783
- taxCode: string;
791
+ taxCode: string | null;
784
792
  operationalAddress: {
785
793
  line1: string;
786
794
  city: string;
@@ -808,7 +816,7 @@ declare class CreateCompany extends AbstractApiRequest<typeof createCompanyInput
808
816
  id: string;
809
817
  businessName: string;
810
818
  vat: string;
811
- taxCode: string;
819
+ taxCode: string | null;
812
820
  operationalAddress: {
813
821
  line1: string;
814
822
  city: string;
@@ -899,7 +907,7 @@ declare const getCompaniesResponseSchema: z.ZodObject<{
899
907
  id: z.ZodString;
900
908
  businessName: z.ZodString;
901
909
  vat: z.ZodString;
902
- taxCode: z.ZodString;
910
+ taxCode: z.ZodNullable<z.ZodString>;
903
911
  operationalAddress: z.ZodObject<{
904
912
  line1: z.ZodString;
905
913
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -928,7 +936,7 @@ declare const getCompaniesResponseSchema: z.ZodObject<{
928
936
  id: string;
929
937
  businessName: string;
930
938
  vat: string;
931
- taxCode: string;
939
+ taxCode: string | null;
932
940
  operationalAddress: {
933
941
  line1: string;
934
942
  city: string;
@@ -943,7 +951,7 @@ declare const getCompaniesResponseSchema: z.ZodObject<{
943
951
  id: string;
944
952
  businessName: string;
945
953
  vat: string;
946
- taxCode: string;
954
+ taxCode: string | null;
947
955
  operationalAddress: {
948
956
  line1: string;
949
957
  city: string;
@@ -982,7 +990,7 @@ declare const getCompaniesResponseSchema: z.ZodObject<{
982
990
  id: string;
983
991
  businessName: string;
984
992
  vat: string;
985
- taxCode: string;
993
+ taxCode: string | null;
986
994
  operationalAddress: {
987
995
  line1: string;
988
996
  city: string;
@@ -1007,7 +1015,7 @@ declare const getCompaniesResponseSchema: z.ZodObject<{
1007
1015
  id: string;
1008
1016
  businessName: string;
1009
1017
  vat: string;
1010
- taxCode: string;
1018
+ taxCode: string | null;
1011
1019
  operationalAddress: {
1012
1020
  line1: string;
1013
1021
  city: string;
@@ -1039,7 +1047,7 @@ declare class GetCompanies extends AbstractApiRequest<typeof getCompaniesInputSc
1039
1047
  id: z.ZodString;
1040
1048
  businessName: z.ZodString;
1041
1049
  vat: z.ZodString;
1042
- taxCode: z.ZodString;
1050
+ taxCode: z.ZodNullable<z.ZodString>;
1043
1051
  operationalAddress: z.ZodObject<{
1044
1052
  line1: z.ZodString;
1045
1053
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1068,7 +1076,7 @@ declare class GetCompanies extends AbstractApiRequest<typeof getCompaniesInputSc
1068
1076
  id: string;
1069
1077
  businessName: string;
1070
1078
  vat: string;
1071
- taxCode: string;
1079
+ taxCode: string | null;
1072
1080
  operationalAddress: {
1073
1081
  line1: string;
1074
1082
  city: string;
@@ -1083,7 +1091,7 @@ declare class GetCompanies extends AbstractApiRequest<typeof getCompaniesInputSc
1083
1091
  id: string;
1084
1092
  businessName: string;
1085
1093
  vat: string;
1086
- taxCode: string;
1094
+ taxCode: string | null;
1087
1095
  operationalAddress: {
1088
1096
  line1: string;
1089
1097
  city: string;
@@ -1122,7 +1130,7 @@ declare class GetCompanies extends AbstractApiRequest<typeof getCompaniesInputSc
1122
1130
  id: string;
1123
1131
  businessName: string;
1124
1132
  vat: string;
1125
- taxCode: string;
1133
+ taxCode: string | null;
1126
1134
  operationalAddress: {
1127
1135
  line1: string;
1128
1136
  city: string;
@@ -1147,7 +1155,7 @@ declare class GetCompanies extends AbstractApiRequest<typeof getCompaniesInputSc
1147
1155
  id: string;
1148
1156
  businessName: string;
1149
1157
  vat: string;
1150
- taxCode: string;
1158
+ taxCode: string | null;
1151
1159
  operationalAddress: {
1152
1160
  line1: string;
1153
1161
  city: string;
@@ -1219,7 +1227,7 @@ declare const getCompanyDetailsResponseSchema: z.ZodObject<{
1219
1227
  id: z.ZodString;
1220
1228
  businessName: z.ZodString;
1221
1229
  vat: z.ZodString;
1222
- taxCode: z.ZodString;
1230
+ taxCode: z.ZodNullable<z.ZodString>;
1223
1231
  operationalAddress: z.ZodObject<{
1224
1232
  line1: z.ZodString;
1225
1233
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1288,7 +1296,7 @@ declare const getCompanyDetailsResponseSchema: z.ZodObject<{
1288
1296
  id: string;
1289
1297
  businessName: string;
1290
1298
  vat: string;
1291
- taxCode: string;
1299
+ taxCode: string | null;
1292
1300
  operationalAddress: {
1293
1301
  line1: string;
1294
1302
  city: string;
@@ -1316,7 +1324,7 @@ declare const getCompanyDetailsResponseSchema: z.ZodObject<{
1316
1324
  id: string;
1317
1325
  businessName: string;
1318
1326
  vat: string;
1319
- taxCode: string;
1327
+ taxCode: string | null;
1320
1328
  operationalAddress: {
1321
1329
  line1: string;
1322
1330
  city: string;
@@ -1351,7 +1359,7 @@ declare class GetCompanyDetails extends AbstractApiRequest<typeof getCompanyDeta
1351
1359
  id: z.ZodString;
1352
1360
  businessName: z.ZodString;
1353
1361
  vat: z.ZodString;
1354
- taxCode: z.ZodString;
1362
+ taxCode: z.ZodNullable<z.ZodString>;
1355
1363
  operationalAddress: z.ZodObject<{
1356
1364
  line1: z.ZodString;
1357
1365
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1420,7 +1428,7 @@ declare class GetCompanyDetails extends AbstractApiRequest<typeof getCompanyDeta
1420
1428
  id: string;
1421
1429
  businessName: string;
1422
1430
  vat: string;
1423
- taxCode: string;
1431
+ taxCode: string | null;
1424
1432
  operationalAddress: {
1425
1433
  line1: string;
1426
1434
  city: string;
@@ -1448,7 +1456,7 @@ declare class GetCompanyDetails extends AbstractApiRequest<typeof getCompanyDeta
1448
1456
  id: string;
1449
1457
  businessName: string;
1450
1458
  vat: string;
1451
- taxCode: string;
1459
+ taxCode: string | null;
1452
1460
  operationalAddress: {
1453
1461
  line1: string;
1454
1462
  city: string;
@@ -1483,7 +1491,7 @@ declare class GetCompanyDetails extends AbstractApiRequest<typeof getCompanyDeta
1483
1491
  declare const updateCompanyInputSchema: z.ZodObject<{
1484
1492
  businessName: z.ZodOptional<z.ZodString>;
1485
1493
  vat: z.ZodOptional<z.ZodString>;
1486
- taxCode: z.ZodOptional<z.ZodString>;
1494
+ taxCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1487
1495
  operationalAddress: z.ZodOptional<z.ZodObject<{
1488
1496
  line1: z.ZodString;
1489
1497
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1544,10 +1552,11 @@ declare const updateCompanyInputSchema: z.ZodObject<{
1544
1552
  sdi?: string | null | undefined;
1545
1553
  pec?: string | null | undefined;
1546
1554
  }>>;
1555
+ adminBy: z.ZodOptional<z.ZodEffects<z.ZodString, _deliverart_sdk_js_global_types.IriObject<"/users/:id">, string>>;
1547
1556
  }, "strip", z.ZodTypeAny, {
1548
1557
  businessName?: string | undefined;
1549
1558
  vat?: string | undefined;
1550
- taxCode?: string | undefined;
1559
+ taxCode?: string | null | undefined;
1551
1560
  operationalAddress?: {
1552
1561
  line1: string;
1553
1562
  city: string;
@@ -1568,10 +1577,11 @@ declare const updateCompanyInputSchema: z.ZodObject<{
1568
1577
  sdi?: string | null | undefined;
1569
1578
  pec?: string | null | undefined;
1570
1579
  } | undefined;
1580
+ adminBy?: _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | undefined;
1571
1581
  }, {
1572
1582
  businessName?: string | undefined;
1573
1583
  vat?: string | undefined;
1574
- taxCode?: string | undefined;
1584
+ taxCode?: string | null | undefined;
1575
1585
  operationalAddress?: {
1576
1586
  line1: string;
1577
1587
  city: string;
@@ -1592,13 +1602,14 @@ declare const updateCompanyInputSchema: z.ZodObject<{
1592
1602
  sdi?: string | null | undefined;
1593
1603
  pec?: string | null | undefined;
1594
1604
  } | undefined;
1605
+ adminBy?: string | undefined;
1595
1606
  }>;
1596
1607
  type UpdateCompanyInput = z.input<typeof updateCompanyInputSchema>;
1597
1608
  declare const updateCompanyResponseSchema: z.ZodObject<{
1598
1609
  id: z.ZodString;
1599
1610
  businessName: z.ZodString;
1600
1611
  vat: z.ZodString;
1601
- taxCode: z.ZodString;
1612
+ taxCode: z.ZodNullable<z.ZodString>;
1602
1613
  operationalAddress: z.ZodObject<{
1603
1614
  line1: z.ZodString;
1604
1615
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1667,7 +1678,7 @@ declare const updateCompanyResponseSchema: z.ZodObject<{
1667
1678
  id: string;
1668
1679
  businessName: string;
1669
1680
  vat: string;
1670
- taxCode: string;
1681
+ taxCode: string | null;
1671
1682
  operationalAddress: {
1672
1683
  line1: string;
1673
1684
  city: string;
@@ -1695,7 +1706,7 @@ declare const updateCompanyResponseSchema: z.ZodObject<{
1695
1706
  id: string;
1696
1707
  businessName: string;
1697
1708
  vat: string;
1698
- taxCode: string;
1709
+ taxCode: string | null;
1699
1710
  operationalAddress: {
1700
1711
  line1: string;
1701
1712
  city: string;
@@ -1728,7 +1739,7 @@ declare class UpdateCompany extends AbstractApiRequest<typeof updateCompanyInput
1728
1739
  readonly inputSchema: z.ZodObject<{
1729
1740
  businessName: z.ZodOptional<z.ZodString>;
1730
1741
  vat: z.ZodOptional<z.ZodString>;
1731
- taxCode: z.ZodOptional<z.ZodString>;
1742
+ taxCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1732
1743
  operationalAddress: z.ZodOptional<z.ZodObject<{
1733
1744
  line1: z.ZodString;
1734
1745
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1789,10 +1800,11 @@ declare class UpdateCompany extends AbstractApiRequest<typeof updateCompanyInput
1789
1800
  sdi?: string | null | undefined;
1790
1801
  pec?: string | null | undefined;
1791
1802
  }>>;
1803
+ adminBy: z.ZodOptional<z.ZodEffects<z.ZodString, _deliverart_sdk_js_global_types.IriObject<"/users/:id">, string>>;
1792
1804
  }, "strip", z.ZodTypeAny, {
1793
1805
  businessName?: string | undefined;
1794
1806
  vat?: string | undefined;
1795
- taxCode?: string | undefined;
1807
+ taxCode?: string | null | undefined;
1796
1808
  operationalAddress?: {
1797
1809
  line1: string;
1798
1810
  city: string;
@@ -1813,10 +1825,11 @@ declare class UpdateCompany extends AbstractApiRequest<typeof updateCompanyInput
1813
1825
  sdi?: string | null | undefined;
1814
1826
  pec?: string | null | undefined;
1815
1827
  } | undefined;
1828
+ adminBy?: _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | undefined;
1816
1829
  }, {
1817
1830
  businessName?: string | undefined;
1818
1831
  vat?: string | undefined;
1819
- taxCode?: string | undefined;
1832
+ taxCode?: string | null | undefined;
1820
1833
  operationalAddress?: {
1821
1834
  line1: string;
1822
1835
  city: string;
@@ -1837,12 +1850,13 @@ declare class UpdateCompany extends AbstractApiRequest<typeof updateCompanyInput
1837
1850
  sdi?: string | null | undefined;
1838
1851
  pec?: string | null | undefined;
1839
1852
  } | undefined;
1853
+ adminBy?: string | undefined;
1840
1854
  }>;
1841
1855
  readonly outputSchema: z.ZodObject<{
1842
1856
  id: z.ZodString;
1843
1857
  businessName: z.ZodString;
1844
1858
  vat: z.ZodString;
1845
- taxCode: z.ZodString;
1859
+ taxCode: z.ZodNullable<z.ZodString>;
1846
1860
  operationalAddress: z.ZodObject<{
1847
1861
  line1: z.ZodString;
1848
1862
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1911,7 +1925,7 @@ declare class UpdateCompany extends AbstractApiRequest<typeof updateCompanyInput
1911
1925
  id: string;
1912
1926
  businessName: string;
1913
1927
  vat: string;
1914
- taxCode: string;
1928
+ taxCode: string | null;
1915
1929
  operationalAddress: {
1916
1930
  line1: string;
1917
1931
  city: string;
@@ -1939,7 +1953,7 @@ declare class UpdateCompany extends AbstractApiRequest<typeof updateCompanyInput
1939
1953
  id: string;
1940
1954
  businessName: string;
1941
1955
  vat: string;
1942
- taxCode: string;
1956
+ taxCode: string | null;
1943
1957
  operationalAddress: {
1944
1958
  line1: string;
1945
1959
  city: string;
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ var companySchema = z.object({
11
11
  id: z.string(),
12
12
  businessName: z.string(),
13
13
  vat: z.string(),
14
- taxCode: z.string(),
14
+ taxCode: z.string().nullable(),
15
15
  operationalAddress: addressSchema,
16
16
  createdAt: datetimeSchema,
17
17
  updatedAt: datetimeSchema
@@ -27,7 +27,9 @@ var writableCompanySchema = companyDetailsSchema.pick({
27
27
  taxCode: true,
28
28
  billingAddress: true,
29
29
  operationalAddress: true,
30
- billingData: true
30
+ billingData: true,
31
+ adminBy: true
32
+ // Only Admin can set this
31
33
  });
32
34
  var companiesQuerySchema = z.object({
33
35
  businessName: z.string().optional(),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deliverart/sdk-js-company",
3
3
  "description": "Deliverart JavaScript SDK for User Management",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
package/src/models.ts CHANGED
@@ -11,7 +11,7 @@ export const companySchema = z.object({
11
11
  id: z.string(),
12
12
  businessName: z.string(),
13
13
  vat: z.string(),
14
- taxCode: z.string(),
14
+ taxCode: z.string().nullable(),
15
15
  operationalAddress: addressSchema,
16
16
  createdAt: datetimeSchema,
17
17
  updatedAt: datetimeSchema,
@@ -32,6 +32,7 @@ export const writableCompanySchema = companyDetailsSchema.pick({
32
32
  billingAddress: true,
33
33
  operationalAddress: true,
34
34
  billingData: true,
35
+ adminBy: true, // Only Admin can set this
35
36
  })
36
37
 
37
38
  export const companiesQuerySchema = z.object({