@reactionary/core 0.6.6 → 0.6.7

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.
Files changed (71) hide show
  1. package/capabilities/analytics.capability.js +5 -5
  2. package/capabilities/company-registration.capability.js +9 -0
  3. package/capabilities/company.capability.js +59 -0
  4. package/capabilities/employee-invitation.capability.js +9 -0
  5. package/capabilities/employee.capability.js +9 -0
  6. package/capabilities/index.js +4 -0
  7. package/capabilities/product-recommendations.capability.js +8 -8
  8. package/factories/company-registration.factory.js +0 -0
  9. package/factories/company.factory.js +0 -0
  10. package/factories/employee-invitation.factory.js +0 -0
  11. package/factories/employee.factory.js +0 -0
  12. package/factories/index.js +4 -0
  13. package/package.json +1 -1
  14. package/schemas/models/base.model.js +5 -0
  15. package/schemas/models/checkout.model.js +2 -1
  16. package/schemas/models/company-registration.model.js +14 -0
  17. package/schemas/models/company.model.js +60 -0
  18. package/schemas/models/employee-invitation.model.js +22 -0
  19. package/schemas/models/employee.model.js +20 -0
  20. package/schemas/models/identifiers.model.js +45 -0
  21. package/schemas/models/index.js +4 -0
  22. package/schemas/mutations/company-registration.mutation.js +14 -0
  23. package/schemas/mutations/company.mutation.js +30 -0
  24. package/schemas/mutations/employee-invitation.mutation.js +20 -0
  25. package/schemas/mutations/employee.mutation.js +29 -0
  26. package/schemas/mutations/index.js +4 -0
  27. package/schemas/queries/checkout.query.js +1 -1
  28. package/schemas/queries/company-registration.query.js +8 -0
  29. package/schemas/queries/company.query.js +12 -0
  30. package/schemas/queries/employee-invitation.query.js +8 -0
  31. package/schemas/queries/employee.query.js +19 -0
  32. package/schemas/queries/index.js +4 -0
  33. package/schemas/queries/product-associations.query.js +1 -2
  34. package/schemas/queries/product-reviews.query.js +1 -2
  35. package/schemas/queries/profile.query.js +1 -1
  36. package/schemas/session.schema.js +1 -0
  37. package/src/capabilities/analytics.capability.d.ts +5 -5
  38. package/src/capabilities/company-registration.capability.d.ts +21 -0
  39. package/src/capabilities/company.capability.d.ts +85 -0
  40. package/src/capabilities/employee-invitation.capability.d.ts +34 -0
  41. package/src/capabilities/employee.capability.d.ts +14 -0
  42. package/src/capabilities/index.d.ts +4 -0
  43. package/src/capabilities/product-recommendations.capability.d.ts +8 -8
  44. package/src/client/client.d.ts +6 -1
  45. package/src/factories/company-registration.factory.d.ts +12 -0
  46. package/src/factories/company.factory.d.ts +18 -0
  47. package/src/factories/employee-invitation.factory.d.ts +26 -0
  48. package/src/factories/employee.factory.d.ts +20 -0
  49. package/src/factories/index.d.ts +4 -0
  50. package/src/schemas/models/base.model.d.ts +8 -0
  51. package/src/schemas/models/checkout.model.d.ts +4 -0
  52. package/src/schemas/models/company-registration.model.d.ts +22 -0
  53. package/src/schemas/models/company.model.d.ts +213 -0
  54. package/src/schemas/models/employee-invitation.model.d.ts +88 -0
  55. package/src/schemas/models/employee.model.d.ts +435 -0
  56. package/src/schemas/models/identifiers.model.d.ts +98 -1
  57. package/src/schemas/models/index.d.ts +4 -0
  58. package/src/schemas/mutations/company-registration.mutation.d.ts +26 -0
  59. package/src/schemas/mutations/company.mutation.d.ts +76 -0
  60. package/src/schemas/mutations/employee-invitation.mutation.d.ts +28 -0
  61. package/src/schemas/mutations/employee.mutation.d.ts +39 -0
  62. package/src/schemas/mutations/index.d.ts +4 -0
  63. package/src/schemas/queries/checkout.query.d.ts +15 -16
  64. package/src/schemas/queries/company-registration.query.d.ts +7 -0
  65. package/src/schemas/queries/company.query.d.ts +16 -0
  66. package/src/schemas/queries/employee-invitation.query.d.ts +14 -0
  67. package/src/schemas/queries/employee.query.d.ts +29 -0
  68. package/src/schemas/queries/index.d.ts +4 -0
  69. package/src/schemas/queries/product-reviews.query.d.ts +14 -15
  70. package/src/schemas/queries/profile.query.d.ts +5 -6
  71. package/src/schemas/session.schema.d.ts +1 -0
@@ -0,0 +1,88 @@
1
+ import * as z from 'zod';
2
+ import type { InferType } from '../../zod-utils.js';
3
+ /**
4
+ * Represents an employee invitation to join a company.
5
+ **/
6
+ export declare const EmployeeInvitationSchema: z.ZodObject<{
7
+ identifier: z.ZodObject<{
8
+ key: z.ZodString;
9
+ }, z.core.$loose>;
10
+ company: z.ZodObject<{
11
+ taxIdentifier: z.ZodString;
12
+ }, z.core.$loose>;
13
+ status: z.ZodEnum<{
14
+ invited: "invited";
15
+ accepted: "accepted";
16
+ revoked: "revoked";
17
+ rejected: "rejected";
18
+ }>;
19
+ email: z.ZodEmail;
20
+ role: z.ZodEnum<{
21
+ admin: "admin";
22
+ manager: "manager";
23
+ employee: "employee";
24
+ }>;
25
+ validUntil: z.ZodString;
26
+ }, z.core.$loose>;
27
+ export declare const EmployeeIssuedInvitationSchema: z.ZodObject<{
28
+ identifier: z.ZodObject<{
29
+ key: z.ZodString;
30
+ }, z.core.$loose>;
31
+ company: z.ZodObject<{
32
+ taxIdentifier: z.ZodString;
33
+ }, z.core.$loose>;
34
+ status: z.ZodEnum<{
35
+ invited: "invited";
36
+ accepted: "accepted";
37
+ revoked: "revoked";
38
+ rejected: "rejected";
39
+ }>;
40
+ email: z.ZodEmail;
41
+ role: z.ZodEnum<{
42
+ admin: "admin";
43
+ manager: "manager";
44
+ employee: "employee";
45
+ }>;
46
+ validUntil: z.ZodString;
47
+ securityToken: z.ZodString;
48
+ }, z.core.$loose>;
49
+ export declare const EmployeeInvitationPaginatedListSchema: z.ZodObject<{
50
+ pageNumber: z.ZodNumber;
51
+ pageSize: z.ZodNumber;
52
+ totalCount: z.ZodNumber;
53
+ totalPages: z.ZodNumber;
54
+ items: z.ZodArray<z.ZodObject<{
55
+ identifier: z.ZodObject<{
56
+ key: z.ZodString;
57
+ }, z.core.$loose>;
58
+ company: z.ZodObject<{
59
+ taxIdentifier: z.ZodString;
60
+ }, z.core.$loose>;
61
+ status: z.ZodEnum<{
62
+ invited: "invited";
63
+ accepted: "accepted";
64
+ revoked: "revoked";
65
+ rejected: "rejected";
66
+ }>;
67
+ email: z.ZodEmail;
68
+ role: z.ZodEnum<{
69
+ admin: "admin";
70
+ manager: "manager";
71
+ employee: "employee";
72
+ }>;
73
+ validUntil: z.ZodString;
74
+ }, z.core.$loose>>;
75
+ identifier: z.ZodObject<{
76
+ company: z.ZodOptional<z.ZodObject<{
77
+ taxIdentifier: z.ZodString;
78
+ }, z.core.$loose>>;
79
+ email: z.ZodOptional<z.ZodEmail>;
80
+ paginationOptions: z.ZodObject<{
81
+ pageNumber: z.ZodDefault<z.ZodNumber>;
82
+ pageSize: z.ZodDefault<z.ZodNumber>;
83
+ }, z.core.$loose>;
84
+ }, z.core.$loose>;
85
+ }, z.core.$strip>;
86
+ export type EmployeeInvitation = InferType<typeof EmployeeInvitationSchema>;
87
+ export type EmployeeIssuedInvitation = InferType<typeof EmployeeIssuedInvitationSchema>;
88
+ export type EmployeeInvitationPaginatedList = InferType<typeof EmployeeInvitationPaginatedListSchema>;
@@ -0,0 +1,435 @@
1
+ import * as z from 'zod';
2
+ import type { InferType } from '../../zod-utils.js';
3
+ /**
4
+ * This represents the relationship between a company and an employee.
5
+ * It supports providing some basic information about the employee, as well as a reference to their full profile (which you may or may not be able to load)
6
+ **/
7
+ export declare const EmployeeSchema: z.ZodObject<{
8
+ identifier: z.ZodObject<{
9
+ userId: z.ZodString;
10
+ }, z.core.$loose>;
11
+ company: z.ZodObject<{
12
+ taxIdentifier: z.ZodString;
13
+ }, z.core.$loose>;
14
+ firstName: z.ZodOptional<z.ZodString>;
15
+ lastName: z.ZodOptional<z.ZodString>;
16
+ email: z.ZodEmail;
17
+ role: z.ZodEnum<{
18
+ admin: "admin";
19
+ manager: "manager";
20
+ employee: "employee";
21
+ }>;
22
+ spendingLimit: z.ZodOptional<z.ZodObject<{
23
+ value: z.ZodNumber;
24
+ currency: z.ZodEnum<{
25
+ AED: "AED";
26
+ AFN: "AFN";
27
+ ALL: "ALL";
28
+ AMD: "AMD";
29
+ ANG: "ANG";
30
+ AOA: "AOA";
31
+ ARS: "ARS";
32
+ AUD: "AUD";
33
+ AWG: "AWG";
34
+ AZN: "AZN";
35
+ BAM: "BAM";
36
+ BBD: "BBD";
37
+ BDT: "BDT";
38
+ BGN: "BGN";
39
+ BHD: "BHD";
40
+ BIF: "BIF";
41
+ BMD: "BMD";
42
+ BND: "BND";
43
+ BOB: "BOB";
44
+ BOV: "BOV";
45
+ BRL: "BRL";
46
+ BSD: "BSD";
47
+ BTN: "BTN";
48
+ BWP: "BWP";
49
+ BYN: "BYN";
50
+ BZD: "BZD";
51
+ CAD: "CAD";
52
+ CDF: "CDF";
53
+ CHE: "CHE";
54
+ CHF: "CHF";
55
+ CHW: "CHW";
56
+ CLF: "CLF";
57
+ CLP: "CLP";
58
+ CNY: "CNY";
59
+ COP: "COP";
60
+ COU: "COU";
61
+ CRC: "CRC";
62
+ CUC: "CUC";
63
+ CUP: "CUP";
64
+ CVE: "CVE";
65
+ CZK: "CZK";
66
+ DJF: "DJF";
67
+ DKK: "DKK";
68
+ DOP: "DOP";
69
+ DZD: "DZD";
70
+ EGP: "EGP";
71
+ ERN: "ERN";
72
+ ETB: "ETB";
73
+ EUR: "EUR";
74
+ FJD: "FJD";
75
+ FKP: "FKP";
76
+ GBP: "GBP";
77
+ GEL: "GEL";
78
+ GHS: "GHS";
79
+ GIP: "GIP";
80
+ GMD: "GMD";
81
+ GNF: "GNF";
82
+ GTQ: "GTQ";
83
+ GYD: "GYD";
84
+ HKD: "HKD";
85
+ HNL: "HNL";
86
+ HRK: "HRK";
87
+ HTG: "HTG";
88
+ HUF: "HUF";
89
+ IDR: "IDR";
90
+ ILS: "ILS";
91
+ INR: "INR";
92
+ IQD: "IQD";
93
+ IRR: "IRR";
94
+ ISK: "ISK";
95
+ JMD: "JMD";
96
+ JOD: "JOD";
97
+ JPY: "JPY";
98
+ KES: "KES";
99
+ KGS: "KGS";
100
+ KHR: "KHR";
101
+ KMF: "KMF";
102
+ KPW: "KPW";
103
+ KRW: "KRW";
104
+ KWD: "KWD";
105
+ KYD: "KYD";
106
+ KZT: "KZT";
107
+ LAK: "LAK";
108
+ LBP: "LBP";
109
+ LKR: "LKR";
110
+ LRD: "LRD";
111
+ LSL: "LSL";
112
+ LYD: "LYD";
113
+ MAD: "MAD";
114
+ MDL: "MDL";
115
+ MGA: "MGA";
116
+ MKD: "MKD";
117
+ MMK: "MMK";
118
+ MNT: "MNT";
119
+ MOP: "MOP";
120
+ MRU: "MRU";
121
+ MUR: "MUR";
122
+ MVR: "MVR";
123
+ MWK: "MWK";
124
+ MXN: "MXN";
125
+ MXV: "MXV";
126
+ MYR: "MYR";
127
+ MZN: "MZN";
128
+ NAD: "NAD";
129
+ NGN: "NGN";
130
+ NIO: "NIO";
131
+ NOK: "NOK";
132
+ NPR: "NPR";
133
+ NZD: "NZD";
134
+ OMR: "OMR";
135
+ PAB: "PAB";
136
+ PEN: "PEN";
137
+ PGK: "PGK";
138
+ PHP: "PHP";
139
+ PKR: "PKR";
140
+ PLN: "PLN";
141
+ PYG: "PYG";
142
+ QAR: "QAR";
143
+ RON: "RON";
144
+ RSD: "RSD";
145
+ RUB: "RUB";
146
+ RWF: "RWF";
147
+ SAR: "SAR";
148
+ SBD: "SBD";
149
+ SCR: "SCR";
150
+ SDG: "SDG";
151
+ SEK: "SEK";
152
+ SGD: "SGD";
153
+ SHP: "SHP";
154
+ SLE: "SLE";
155
+ SLL: "SLL";
156
+ SOS: "SOS";
157
+ SRD: "SRD";
158
+ SSP: "SSP";
159
+ STN: "STN";
160
+ SYP: "SYP";
161
+ SZL: "SZL";
162
+ THB: "THB";
163
+ TJS: "TJS";
164
+ TMT: "TMT";
165
+ TND: "TND";
166
+ TOP: "TOP";
167
+ TRY: "TRY";
168
+ TTD: "TTD";
169
+ TVD: "TVD";
170
+ TWD: "TWD";
171
+ TZS: "TZS";
172
+ UAH: "UAH";
173
+ UGX: "UGX";
174
+ USD: "USD";
175
+ USN: "USN";
176
+ UYI: "UYI";
177
+ UYU: "UYU";
178
+ UYW: "UYW";
179
+ UZS: "UZS";
180
+ VED: "VED";
181
+ VES: "VES";
182
+ VND: "VND";
183
+ VUV: "VUV";
184
+ WST: "WST";
185
+ XAF: "XAF";
186
+ XAG: "XAG";
187
+ XAU: "XAU";
188
+ XBA: "XBA";
189
+ XBB: "XBB";
190
+ XBC: "XBC";
191
+ XBD: "XBD";
192
+ XCD: "XCD";
193
+ XDR: "XDR";
194
+ XOF: "XOF";
195
+ XPD: "XPD";
196
+ XPF: "XPF";
197
+ XPT: "XPT";
198
+ XSU: "XSU";
199
+ XTS: "XTS";
200
+ XUA: "XUA";
201
+ XXX: "XXX";
202
+ YER: "YER";
203
+ ZAR: "ZAR";
204
+ ZMW: "ZMW";
205
+ ZWL: "ZWL";
206
+ }>;
207
+ }, z.core.$loose>>;
208
+ }, z.core.$loose>;
209
+ export declare const EmployeePaginatedListSchema: z.ZodObject<{
210
+ pageNumber: z.ZodNumber;
211
+ pageSize: z.ZodNumber;
212
+ totalCount: z.ZodNumber;
213
+ totalPages: z.ZodNumber;
214
+ items: z.ZodArray<z.ZodObject<{
215
+ identifier: z.ZodObject<{
216
+ userId: z.ZodString;
217
+ }, z.core.$loose>;
218
+ company: z.ZodObject<{
219
+ taxIdentifier: z.ZodString;
220
+ }, z.core.$loose>;
221
+ firstName: z.ZodOptional<z.ZodString>;
222
+ lastName: z.ZodOptional<z.ZodString>;
223
+ email: z.ZodEmail;
224
+ role: z.ZodEnum<{
225
+ admin: "admin";
226
+ manager: "manager";
227
+ employee: "employee";
228
+ }>;
229
+ spendingLimit: z.ZodOptional<z.ZodObject<{
230
+ value: z.ZodNumber;
231
+ currency: z.ZodEnum<{
232
+ AED: "AED";
233
+ AFN: "AFN";
234
+ ALL: "ALL";
235
+ AMD: "AMD";
236
+ ANG: "ANG";
237
+ AOA: "AOA";
238
+ ARS: "ARS";
239
+ AUD: "AUD";
240
+ AWG: "AWG";
241
+ AZN: "AZN";
242
+ BAM: "BAM";
243
+ BBD: "BBD";
244
+ BDT: "BDT";
245
+ BGN: "BGN";
246
+ BHD: "BHD";
247
+ BIF: "BIF";
248
+ BMD: "BMD";
249
+ BND: "BND";
250
+ BOB: "BOB";
251
+ BOV: "BOV";
252
+ BRL: "BRL";
253
+ BSD: "BSD";
254
+ BTN: "BTN";
255
+ BWP: "BWP";
256
+ BYN: "BYN";
257
+ BZD: "BZD";
258
+ CAD: "CAD";
259
+ CDF: "CDF";
260
+ CHE: "CHE";
261
+ CHF: "CHF";
262
+ CHW: "CHW";
263
+ CLF: "CLF";
264
+ CLP: "CLP";
265
+ CNY: "CNY";
266
+ COP: "COP";
267
+ COU: "COU";
268
+ CRC: "CRC";
269
+ CUC: "CUC";
270
+ CUP: "CUP";
271
+ CVE: "CVE";
272
+ CZK: "CZK";
273
+ DJF: "DJF";
274
+ DKK: "DKK";
275
+ DOP: "DOP";
276
+ DZD: "DZD";
277
+ EGP: "EGP";
278
+ ERN: "ERN";
279
+ ETB: "ETB";
280
+ EUR: "EUR";
281
+ FJD: "FJD";
282
+ FKP: "FKP";
283
+ GBP: "GBP";
284
+ GEL: "GEL";
285
+ GHS: "GHS";
286
+ GIP: "GIP";
287
+ GMD: "GMD";
288
+ GNF: "GNF";
289
+ GTQ: "GTQ";
290
+ GYD: "GYD";
291
+ HKD: "HKD";
292
+ HNL: "HNL";
293
+ HRK: "HRK";
294
+ HTG: "HTG";
295
+ HUF: "HUF";
296
+ IDR: "IDR";
297
+ ILS: "ILS";
298
+ INR: "INR";
299
+ IQD: "IQD";
300
+ IRR: "IRR";
301
+ ISK: "ISK";
302
+ JMD: "JMD";
303
+ JOD: "JOD";
304
+ JPY: "JPY";
305
+ KES: "KES";
306
+ KGS: "KGS";
307
+ KHR: "KHR";
308
+ KMF: "KMF";
309
+ KPW: "KPW";
310
+ KRW: "KRW";
311
+ KWD: "KWD";
312
+ KYD: "KYD";
313
+ KZT: "KZT";
314
+ LAK: "LAK";
315
+ LBP: "LBP";
316
+ LKR: "LKR";
317
+ LRD: "LRD";
318
+ LSL: "LSL";
319
+ LYD: "LYD";
320
+ MAD: "MAD";
321
+ MDL: "MDL";
322
+ MGA: "MGA";
323
+ MKD: "MKD";
324
+ MMK: "MMK";
325
+ MNT: "MNT";
326
+ MOP: "MOP";
327
+ MRU: "MRU";
328
+ MUR: "MUR";
329
+ MVR: "MVR";
330
+ MWK: "MWK";
331
+ MXN: "MXN";
332
+ MXV: "MXV";
333
+ MYR: "MYR";
334
+ MZN: "MZN";
335
+ NAD: "NAD";
336
+ NGN: "NGN";
337
+ NIO: "NIO";
338
+ NOK: "NOK";
339
+ NPR: "NPR";
340
+ NZD: "NZD";
341
+ OMR: "OMR";
342
+ PAB: "PAB";
343
+ PEN: "PEN";
344
+ PGK: "PGK";
345
+ PHP: "PHP";
346
+ PKR: "PKR";
347
+ PLN: "PLN";
348
+ PYG: "PYG";
349
+ QAR: "QAR";
350
+ RON: "RON";
351
+ RSD: "RSD";
352
+ RUB: "RUB";
353
+ RWF: "RWF";
354
+ SAR: "SAR";
355
+ SBD: "SBD";
356
+ SCR: "SCR";
357
+ SDG: "SDG";
358
+ SEK: "SEK";
359
+ SGD: "SGD";
360
+ SHP: "SHP";
361
+ SLE: "SLE";
362
+ SLL: "SLL";
363
+ SOS: "SOS";
364
+ SRD: "SRD";
365
+ SSP: "SSP";
366
+ STN: "STN";
367
+ SYP: "SYP";
368
+ SZL: "SZL";
369
+ THB: "THB";
370
+ TJS: "TJS";
371
+ TMT: "TMT";
372
+ TND: "TND";
373
+ TOP: "TOP";
374
+ TRY: "TRY";
375
+ TTD: "TTD";
376
+ TVD: "TVD";
377
+ TWD: "TWD";
378
+ TZS: "TZS";
379
+ UAH: "UAH";
380
+ UGX: "UGX";
381
+ USD: "USD";
382
+ USN: "USN";
383
+ UYI: "UYI";
384
+ UYU: "UYU";
385
+ UYW: "UYW";
386
+ UZS: "UZS";
387
+ VED: "VED";
388
+ VES: "VES";
389
+ VND: "VND";
390
+ VUV: "VUV";
391
+ WST: "WST";
392
+ XAF: "XAF";
393
+ XAG: "XAG";
394
+ XAU: "XAU";
395
+ XBA: "XBA";
396
+ XBB: "XBB";
397
+ XBC: "XBC";
398
+ XBD: "XBD";
399
+ XCD: "XCD";
400
+ XDR: "XDR";
401
+ XOF: "XOF";
402
+ XPD: "XPD";
403
+ XPF: "XPF";
404
+ XPT: "XPT";
405
+ XSU: "XSU";
406
+ XTS: "XTS";
407
+ XUA: "XUA";
408
+ XXX: "XXX";
409
+ YER: "YER";
410
+ ZAR: "ZAR";
411
+ ZMW: "ZMW";
412
+ ZWL: "ZWL";
413
+ }>;
414
+ }, z.core.$loose>>;
415
+ }, z.core.$loose>>;
416
+ identifier: z.ZodObject<{
417
+ company: z.ZodObject<{
418
+ taxIdentifier: z.ZodString;
419
+ }, z.core.$loose>;
420
+ email: z.ZodOptional<z.ZodEmail>;
421
+ firstName: z.ZodOptional<z.ZodString>;
422
+ lastName: z.ZodOptional<z.ZodString>;
423
+ role: z.ZodOptional<z.ZodEnum<{
424
+ admin: "admin";
425
+ manager: "manager";
426
+ employee: "employee";
427
+ }>>;
428
+ paginationOptions: z.ZodObject<{
429
+ pageNumber: z.ZodDefault<z.ZodNumber>;
430
+ pageSize: z.ZodDefault<z.ZodNumber>;
431
+ }, z.core.$loose>;
432
+ }, z.core.$loose>;
433
+ }, z.core.$strip>;
434
+ export type Employee = InferType<typeof EmployeeSchema>;
435
+ export type EmployeePaginatedList = InferType<typeof EmployeePaginatedListSchema>;
@@ -18,6 +18,28 @@ export declare const ProductListTypeSchema: z.ZodEnum<{
18
18
  requisition: "requisition";
19
19
  shopping: "shopping";
20
20
  }>;
21
+ export declare const EmployeeRoleSchema: z.ZodEnum<{
22
+ admin: "admin";
23
+ manager: "manager";
24
+ employee: "employee";
25
+ }>;
26
+ /**
27
+ * Status of an employee invitation in the system. This can be used to determine if the invitation is active and allowed to perform certain actions, or if it is pending approval or blocked due to violations of terms of service or other issues.
28
+ */
29
+ export declare const EmployeeInvitationStatusSchema: z.ZodEnum<{
30
+ invited: "invited";
31
+ accepted: "accepted";
32
+ revoked: "revoked";
33
+ rejected: "rejected";
34
+ }>;
35
+ /**
36
+ * Status of a company in the system. This can be used to determine if the company is active and allowed to perform certain actions, or if it is pending approval or blocked due to violations of terms of service or other issues.
37
+ */
38
+ export declare const CompanyRegistrationRequestApprovalStatusSchema: z.ZodEnum<{
39
+ pending: "pending";
40
+ approved: "approved";
41
+ denied: "denied";
42
+ }>;
21
43
  export declare const FacetIdentifierSchema: z.ZodObject<{
22
44
  key: z.ZodString;
23
45
  }, z.core.$loose>;
@@ -223,6 +245,71 @@ export declare const ProductListItemIdentifierSchema: z.ZodObject<{
223
245
  export declare const PromotionIdentifierSchema: z.ZodObject<{
224
246
  key: z.ZodString;
225
247
  }, z.core.$loose>;
248
+ /**
249
+ * The structural top level legal entity
250
+ */
251
+ export declare const CompanyIdentifierSchema: z.ZodObject<{
252
+ /**
253
+ * VAT identifier, used for tax-calculation purposes
254
+ */
255
+ taxIdentifier: z.ZodString;
256
+ }, z.core.$loose>;
257
+ export declare const CompanyRegistrationRequestIdentifierSchema: z.ZodObject<{
258
+ key: z.ZodString;
259
+ }, z.core.$loose>;
260
+ export declare const EmployeeInvitationIdentifierSchema: z.ZodObject<{
261
+ key: z.ZodString;
262
+ }, z.core.$loose>;
263
+ export declare const EmployeeIdentifierSchema: z.ZodObject<{
264
+ user: z.ZodObject<{
265
+ userId: z.ZodString;
266
+ }, z.core.$loose>;
267
+ company: z.ZodObject<{
268
+ /**
269
+ * VAT identifier, used for tax-calculation purposes
270
+ */
271
+ taxIdentifier: z.ZodString;
272
+ }, z.core.$loose>;
273
+ }, z.core.$loose>;
274
+ export declare const CompanySearchIdentifierSchema: z.ZodObject<{
275
+ paginationOptions: z.ZodObject<{
276
+ pageNumber: z.ZodDefault<z.ZodNumber>;
277
+ pageSize: z.ZodDefault<z.ZodNumber>;
278
+ }, z.core.$loose>;
279
+ }, z.core.$loose>;
280
+ export declare const EmployeeInvitationSearchIdentifierSchema: z.ZodObject<{
281
+ company: z.ZodOptional<z.ZodObject<{
282
+ /**
283
+ * VAT identifier, used for tax-calculation purposes
284
+ */
285
+ taxIdentifier: z.ZodString;
286
+ }, z.core.$loose>>;
287
+ email: z.ZodOptional<z.ZodEmail>;
288
+ paginationOptions: z.ZodObject<{
289
+ pageNumber: z.ZodDefault<z.ZodNumber>;
290
+ pageSize: z.ZodDefault<z.ZodNumber>;
291
+ }, z.core.$loose>;
292
+ }, z.core.$loose>;
293
+ export declare const EmployeeSearchIdentifierSchema: z.ZodObject<{
294
+ company: z.ZodObject<{
295
+ /**
296
+ * VAT identifier, used for tax-calculation purposes
297
+ */
298
+ taxIdentifier: z.ZodString;
299
+ }, z.core.$loose>;
300
+ email: z.ZodOptional<z.ZodEmail>;
301
+ firstName: z.ZodOptional<z.ZodString>;
302
+ lastName: z.ZodOptional<z.ZodString>;
303
+ role: z.ZodOptional<z.ZodEnum<{
304
+ admin: "admin";
305
+ manager: "manager";
306
+ employee: "employee";
307
+ }>>;
308
+ paginationOptions: z.ZodObject<{
309
+ pageNumber: z.ZodDefault<z.ZodNumber>;
310
+ pageSize: z.ZodDefault<z.ZodNumber>;
311
+ }, z.core.$loose>;
312
+ }, z.core.$loose>;
226
313
  export type OrderSearchIdentifier = InferType<typeof OrderSearchIdentifierSchema>;
227
314
  export type ProductIdentifier = InferType<typeof ProductIdentifierSchema>;
228
315
  export type ProductVariantIdentifier = InferType<typeof ProductVariantIdentifierSchema>;
@@ -243,6 +330,8 @@ export type AddressIdentifier = InferType<typeof AddressIdentifierSchema>;
243
330
  export type PaymentInstructionIdentifier = InferType<typeof PaymentInstructionIdentifierSchema>;
244
331
  export type OrderIdentifier = InferType<typeof OrderIdentifierSchema>;
245
332
  export type OrderItemIdentifier = InferType<typeof OrderItemIdentifierSchema>;
333
+ export type CompanyIdentifier = InferType<typeof CompanyIdentifierSchema>;
334
+ export type CompanyRegistrationRequestIdentifier = InferType<typeof CompanyRegistrationRequestIdentifierSchema>;
246
335
  export type CheckoutIdentifier = InferType<typeof CheckoutIdentifierSchema>;
247
336
  export type CheckoutItemIdentifier = InferType<typeof CheckoutItemIdentifierSchema>;
248
337
  export type PickupPointIdentifier = InferType<typeof PickupPointIdentifierSchema>;
@@ -261,4 +350,12 @@ export type ProductListSearchIdentifier = InferType<typeof ProductListSearchIden
261
350
  export type ProductListItemSearchIdentifier = InferType<typeof ProductListItemSearchIdentifierSchema>;
262
351
  export type ProductListType = InferType<typeof ProductListTypeSchema>;
263
352
  export type PromotionIdentifier = InferType<typeof PromotionIdentifierSchema>;
264
- export type IdentifierType = ProductIdentifier | ProductVariantIdentifier | SearchIdentifier | FacetIdentifier | FacetValueIdentifier | CartIdentifier | CartItemIdentifier | PriceIdentifier | CategoryIdentifier | WebStoreIdentifier | InventoryIdentifier | ProductRecommendationIdentifier | FulfillmentCenterIdentifier | IdentityIdentifier | ShippingMethodIdentifier | PaymentMethodIdentifier | AddressIdentifier | PaymentInstructionIdentifier | OrderIdentifier | OrderItemIdentifier | CheckoutIdentifier | CheckoutItemIdentifier | StoreIdentifier | ProductOptionIdentifier | ProductOptionValueIdentifier | PickupPointIdentifier | ProductAttributeIdentifier | ProductAttributeValueIdentifier | ProductRatingIdentifier | ProductReviewIdentifier | ProductAssociationsIdentifier | ProductListIdentifier | ProductListItemIdentifier | ProductListSearchIdentifier | PromotionIdentifier;
353
+ export type EmployeeRole = InferType<typeof EmployeeRoleSchema>;
354
+ export type EmployeeInvitationStatus = InferType<typeof EmployeeInvitationStatusSchema>;
355
+ export type CompanyRegistrationRequestApprovalStatus = InferType<typeof CompanyRegistrationRequestApprovalStatusSchema>;
356
+ export type EmployeeIdentifier = InferType<typeof EmployeeIdentifierSchema>;
357
+ export type EmployeeSearchIdentifier = InferType<typeof EmployeeSearchIdentifierSchema>;
358
+ export type EmployeeInvitationIdentifier = InferType<typeof EmployeeInvitationIdentifierSchema>;
359
+ export type EmployeeInvitationSearchIdentifier = InferType<typeof EmployeeInvitationSearchIdentifierSchema>;
360
+ export type CompanySearchIdentifier = InferType<typeof CompanySearchIdentifierSchema>;
361
+ export type IdentifierType = ProductIdentifier | ProductVariantIdentifier | SearchIdentifier | FacetIdentifier | FacetValueIdentifier | CartIdentifier | CartItemIdentifier | PriceIdentifier | CategoryIdentifier | WebStoreIdentifier | InventoryIdentifier | ProductRecommendationIdentifier | FulfillmentCenterIdentifier | IdentityIdentifier | ShippingMethodIdentifier | PaymentMethodIdentifier | AddressIdentifier | PaymentInstructionIdentifier | OrderIdentifier | OrderItemIdentifier | CompanyIdentifier | CompanyRegistrationRequestIdentifier | CheckoutIdentifier | CheckoutItemIdentifier | StoreIdentifier | ProductOptionIdentifier | ProductOptionValueIdentifier | PickupPointIdentifier | ProductAttributeIdentifier | ProductAttributeValueIdentifier | ProductRatingIdentifier | ProductReviewIdentifier | ProductAssociationsIdentifier | ProductListIdentifier | ProductListItemIdentifier | ProductListSearchIdentifier | PromotionIdentifier;
@@ -22,3 +22,7 @@ export * from './order-search.model.js';
22
22
  export * from './product-recommendations.model.js';
23
23
  export * from './product-associations.model.js';
24
24
  export * from './product-list.model.js';
25
+ export * from './company.model.js';
26
+ export * from './company-registration.model.js';
27
+ export * from './employee.model.js';
28
+ export * from './employee-invitation.model.js';
@@ -0,0 +1,26 @@
1
+ import * as z from "zod";
2
+ import type { InferType } from "../../zod-utils.js";
3
+ export declare const CompanyRegistrationMutationRegisterSchema: z.ZodObject<{
4
+ taxIdentifier: z.ZodString;
5
+ dunsIdentifier: z.ZodOptional<z.ZodString>;
6
+ tinIdentifier: z.ZodOptional<z.ZodString>;
7
+ name: z.ZodString;
8
+ pointOfContact: z.ZodObject<{
9
+ email: z.ZodEmail;
10
+ phone: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$loose>;
12
+ billingAddress: z.ZodObject<{
13
+ identifier: z.ZodDefault<z.ZodObject<{
14
+ nickName: z.ZodString;
15
+ }, z.core.$loose>>;
16
+ firstName: z.ZodString;
17
+ lastName: z.ZodString;
18
+ streetAddress: z.ZodString;
19
+ streetNumber: z.ZodString;
20
+ city: z.ZodString;
21
+ region: z.ZodString;
22
+ postalCode: z.ZodString;
23
+ countryCode: z.ZodString;
24
+ }, z.core.$loose>;
25
+ }, z.core.$strip>;
26
+ export type CompanyRegistrationMutationRegister = InferType<typeof CompanyRegistrationMutationRegisterSchema>;