@jsdev_ninja/core 0.13.31 → 0.13.32

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.
@@ -31,6 +31,32 @@ export declare const OrganizationSchema: z.ZodObject<{
31
31
  name: string;
32
32
  }>, "many">;
33
33
  paymentType: z.ZodEnum<["external", "j5", "none"]>;
34
+ companyNumber: z.ZodOptional<z.ZodString>;
35
+ address: z.ZodOptional<z.ZodObject<{
36
+ country: z.ZodOptional<z.ZodString>;
37
+ city: z.ZodOptional<z.ZodString>;
38
+ street: z.ZodOptional<z.ZodString>;
39
+ streetNumber: z.ZodOptional<z.ZodString>;
40
+ floor: z.ZodOptional<z.ZodString>;
41
+ apartmentEnterNumber: z.ZodOptional<z.ZodString>;
42
+ apartmentNumber: z.ZodOptional<z.ZodString>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ country?: string | undefined;
45
+ city?: string | undefined;
46
+ street?: string | undefined;
47
+ streetNumber?: string | undefined;
48
+ floor?: string | undefined;
49
+ apartmentEnterNumber?: string | undefined;
50
+ apartmentNumber?: string | undefined;
51
+ }, {
52
+ country?: string | undefined;
53
+ city?: string | undefined;
54
+ street?: string | undefined;
55
+ streetNumber?: string | undefined;
56
+ floor?: string | undefined;
57
+ apartmentEnterNumber?: string | undefined;
58
+ apartmentNumber?: string | undefined;
59
+ }>>;
34
60
  }, "strip", z.ZodTypeAny, {
35
61
  id: string;
36
62
  name: string;
@@ -40,8 +66,18 @@ export declare const OrganizationSchema: z.ZodObject<{
40
66
  id: string;
41
67
  name: string;
42
68
  }[];
69
+ address?: {
70
+ country?: string | undefined;
71
+ city?: string | undefined;
72
+ street?: string | undefined;
73
+ streetNumber?: string | undefined;
74
+ floor?: string | undefined;
75
+ apartmentEnterNumber?: string | undefined;
76
+ apartmentNumber?: string | undefined;
77
+ } | undefined;
43
78
  discountPercentage?: number | undefined;
44
79
  nameOnInvoice?: string | undefined;
80
+ companyNumber?: string | undefined;
45
81
  }, {
46
82
  id: string;
47
83
  name: string;
@@ -51,8 +87,18 @@ export declare const OrganizationSchema: z.ZodObject<{
51
87
  id: string;
52
88
  name: string;
53
89
  }[];
90
+ address?: {
91
+ country?: string | undefined;
92
+ city?: string | undefined;
93
+ street?: string | undefined;
94
+ streetNumber?: string | undefined;
95
+ floor?: string | undefined;
96
+ apartmentEnterNumber?: string | undefined;
97
+ apartmentNumber?: string | undefined;
98
+ } | undefined;
54
99
  discountPercentage?: number | undefined;
55
100
  nameOnInvoice?: string | undefined;
101
+ companyNumber?: string | undefined;
56
102
  }>;
57
103
  export declare const NewOrganizationSchema: z.ZodObject<Omit<{
58
104
  id: z.ZodString;
@@ -73,6 +119,32 @@ export declare const NewOrganizationSchema: z.ZodObject<Omit<{
73
119
  name: string;
74
120
  }>, "many">;
75
121
  paymentType: z.ZodEnum<["external", "j5", "none"]>;
122
+ companyNumber: z.ZodOptional<z.ZodString>;
123
+ address: z.ZodOptional<z.ZodObject<{
124
+ country: z.ZodOptional<z.ZodString>;
125
+ city: z.ZodOptional<z.ZodString>;
126
+ street: z.ZodOptional<z.ZodString>;
127
+ streetNumber: z.ZodOptional<z.ZodString>;
128
+ floor: z.ZodOptional<z.ZodString>;
129
+ apartmentEnterNumber: z.ZodOptional<z.ZodString>;
130
+ apartmentNumber: z.ZodOptional<z.ZodString>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ country?: string | undefined;
133
+ city?: string | undefined;
134
+ street?: string | undefined;
135
+ streetNumber?: string | undefined;
136
+ floor?: string | undefined;
137
+ apartmentEnterNumber?: string | undefined;
138
+ apartmentNumber?: string | undefined;
139
+ }, {
140
+ country?: string | undefined;
141
+ city?: string | undefined;
142
+ street?: string | undefined;
143
+ streetNumber?: string | undefined;
144
+ floor?: string | undefined;
145
+ apartmentEnterNumber?: string | undefined;
146
+ apartmentNumber?: string | undefined;
147
+ }>>;
76
148
  }, "id">, "strip", z.ZodTypeAny, {
77
149
  name: string;
78
150
  paymentType: "none" | "external" | "j5";
@@ -81,8 +153,18 @@ export declare const NewOrganizationSchema: z.ZodObject<Omit<{
81
153
  id: string;
82
154
  name: string;
83
155
  }[];
156
+ address?: {
157
+ country?: string | undefined;
158
+ city?: string | undefined;
159
+ street?: string | undefined;
160
+ streetNumber?: string | undefined;
161
+ floor?: string | undefined;
162
+ apartmentEnterNumber?: string | undefined;
163
+ apartmentNumber?: string | undefined;
164
+ } | undefined;
84
165
  discountPercentage?: number | undefined;
85
166
  nameOnInvoice?: string | undefined;
167
+ companyNumber?: string | undefined;
86
168
  }, {
87
169
  name: string;
88
170
  paymentType: "none" | "external" | "j5";
@@ -91,8 +173,18 @@ export declare const NewOrganizationSchema: z.ZodObject<Omit<{
91
173
  id: string;
92
174
  name: string;
93
175
  }[];
176
+ address?: {
177
+ country?: string | undefined;
178
+ city?: string | undefined;
179
+ street?: string | undefined;
180
+ streetNumber?: string | undefined;
181
+ floor?: string | undefined;
182
+ apartmentEnterNumber?: string | undefined;
183
+ apartmentNumber?: string | undefined;
184
+ } | undefined;
94
185
  discountPercentage?: number | undefined;
95
186
  nameOnInvoice?: string | undefined;
187
+ companyNumber?: string | undefined;
96
188
  }>;
97
189
  export type TBillingAccount = z.infer<typeof BillingAccountSchema>;
98
190
  export type TNewOrganization = z.infer<typeof NewOrganizationSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"Organization.d.ts","sourceRoot":"","sources":["../../../lib/entities/Organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO7B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAwC,CAAC;AAE3E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACrE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"Organization.d.ts","sourceRoot":"","sources":["../../../lib/entities/Organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS7B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAwC,CAAC;AAE3E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACrE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { PaymentTypeSchema } from "./Payment";
3
+ import { AddressSchema } from "./Address";
3
4
  export const BillingAccountSchema = z.object({
4
5
  number: z.string(),
5
6
  name: z.string(),
@@ -12,6 +13,8 @@ export const OrganizationSchema = z.object({
12
13
  discountPercentage: z.number().positive().min(0).max(100).optional(),
13
14
  nameOnInvoice: z.string().optional(),
14
15
  billingAccounts: z.array(BillingAccountSchema),
15
- paymentType: PaymentTypeSchema
16
+ paymentType: PaymentTypeSchema,
17
+ companyNumber: z.string().optional(),
18
+ address: AddressSchema.optional(),
16
19
  });
17
20
  export const NewOrganizationSchema = OrganizationSchema.omit({ id: true });
@@ -60,10 +60,10 @@ export declare const StoreSchema: z.ZodObject<{
60
60
  apartmentEnterNumber?: string | undefined;
61
61
  apartmentNumber?: string | undefined;
62
62
  } | undefined;
63
+ companyNumber?: string | undefined;
63
64
  deliveryPrice?: number | undefined;
64
65
  freeDeliveryPrice?: number | undefined;
65
66
  minimumOrder?: number | undefined;
66
- companyNumber?: string | undefined;
67
67
  }, {
68
68
  id: string;
69
69
  companyId: string;
@@ -84,10 +84,10 @@ export declare const StoreSchema: z.ZodObject<{
84
84
  apartmentEnterNumber?: string | undefined;
85
85
  apartmentNumber?: string | undefined;
86
86
  } | undefined;
87
+ companyNumber?: string | undefined;
87
88
  deliveryPrice?: number | undefined;
88
89
  freeDeliveryPrice?: number | undefined;
89
90
  minimumOrder?: number | undefined;
90
- companyNumber?: string | undefined;
91
91
  }>;
92
92
  export type TStore = z.infer<typeof StoreSchema>;
93
93
  //# sourceMappingURL=Store.d.ts.map