@loczer/storefront-sdk 0.225.0 → 0.227.0

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 (42) hide show
  1. package/dist/chunks/pkg/booking-engine/dist/{schemas-DGn2a1my.js → schemas-DW5gdDYz.js} +4 -3
  2. package/dist/chunks/pkg/booking-engine/dist/utils/opening-hours-period-TCyLhzZw.js +82 -0
  3. package/dist/components/ContractSaleDocument/DocumentAcceptanceSection.d.ts +2 -1
  4. package/dist/components/ContractSaleDocument/DocumentAcceptanceSection.d.ts.map +1 -1
  5. package/dist/components/ContractSaleDocument/DocumentAcceptanceSection.js +27 -27
  6. package/dist/components/ContractSaleDocument/Invoice.d.ts.map +1 -1
  7. package/dist/components/ContractSaleDocument/Invoice.js +6 -3
  8. package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts +2 -1
  9. package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts.map +1 -1
  10. package/dist/components/ContractSaleDocument/InvoiceDetails.js +147 -90
  11. package/dist/components/ContractSaleDocument/PageFooter.d.ts +2 -1
  12. package/dist/components/ContractSaleDocument/PageFooter.d.ts.map +1 -1
  13. package/dist/components/ContractSaleDocument/PageFooter.js +10 -9
  14. package/dist/components/ContractSaleDocument/PageHeader.d.ts +2 -1
  15. package/dist/components/ContractSaleDocument/PageHeader.d.ts.map +1 -1
  16. package/dist/components/ContractSaleDocument/PageHeader.js +10 -9
  17. package/dist/components/Footer/businessHoursStatus.d.ts.map +1 -1
  18. package/dist/components/Footer/businessHoursStatus.js +21 -36
  19. package/dist/components/Footer/businessHoursUtils.d.ts.map +1 -1
  20. package/dist/components/Footer/businessHoursUtils.js +2 -1
  21. package/dist/i18n/en.d.ts +6 -0
  22. package/dist/i18n/en.d.ts.map +1 -1
  23. package/dist/i18n/en.js +6 -0
  24. package/dist/i18n/fr.d.ts +6 -0
  25. package/dist/i18n/fr.d.ts.map +1 -1
  26. package/dist/i18n/fr.js +6 -0
  27. package/dist/index.d.ts +144 -0
  28. package/dist/index.js +75 -74
  29. package/dist/lib/booking-period.d.ts.map +1 -1
  30. package/dist/lib/booking-period.js +120 -138
  31. package/dist/lib/booking.js +1 -1
  32. package/dist/lib/checkoutSubmit.js +1 -1
  33. package/dist/lib/contractSaleDocument.d.ts +41 -0
  34. package/dist/lib/contractSaleDocument.d.ts.map +1 -1
  35. package/dist/lib/contractSaleDocument.js +40 -30
  36. package/dist/lib/contractSaleDocumentApi.d.ts +60 -0
  37. package/dist/lib/contractSaleDocumentApi.d.ts.map +1 -1
  38. package/dist/pages/ContractSaleDocumentPage.d.ts +20 -0
  39. package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -1
  40. package/dist/storefront.css +1 -1
  41. package/dist/storefrontSchemas.js +1 -1
  42. package/package.json +1 -1
@@ -84,6 +84,16 @@ export declare const contractSaleDocumentApiSchema: z.ZodObject<{
84
84
  }, z.core.$strict>>;
85
85
  email: z.ZodOptional<z.ZodString>;
86
86
  phone: z.ZodOptional<z.ZodString>;
87
+ legalIdentity: z.ZodOptional<z.ZodObject<{
88
+ legalName: z.ZodOptional<z.ZodString>;
89
+ registeredAddress: z.ZodOptional<z.ZodString>;
90
+ companyRegistrationNumber: z.ZodOptional<z.ZodString>;
91
+ establishmentRegistrationNumber: z.ZodOptional<z.ZodString>;
92
+ vatNumber: z.ZodOptional<z.ZodString>;
93
+ legalForm: z.ZodOptional<z.ZodString>;
94
+ shareCapital: z.ZodOptional<z.ZodString>;
95
+ tradeRegister: z.ZodOptional<z.ZodString>;
96
+ }, z.core.$strict>>;
87
97
  }, z.core.$strip>;
88
98
  recipient: z.ZodObject<{
89
99
  name: z.ZodString;
@@ -108,6 +118,16 @@ export declare const contractSaleDocumentApiSchema: z.ZodObject<{
108
118
  }, z.core.$strict>>;
109
119
  email: z.ZodOptional<z.ZodString>;
110
120
  phone: z.ZodOptional<z.ZodString>;
121
+ legalIdentity: z.ZodOptional<z.ZodObject<{
122
+ legalName: z.ZodOptional<z.ZodString>;
123
+ registeredAddress: z.ZodOptional<z.ZodString>;
124
+ companyRegistrationNumber: z.ZodOptional<z.ZodString>;
125
+ establishmentRegistrationNumber: z.ZodOptional<z.ZodString>;
126
+ vatNumber: z.ZodOptional<z.ZodString>;
127
+ legalForm: z.ZodOptional<z.ZodString>;
128
+ shareCapital: z.ZodOptional<z.ZodString>;
129
+ tradeRegister: z.ZodOptional<z.ZodString>;
130
+ }, z.core.$strict>>;
111
131
  }, z.core.$strip>;
112
132
  items: z.ZodArray<z.ZodObject<{
113
133
  id: z.ZodNumber;
@@ -252,6 +272,16 @@ export declare const getContractSaleDocumentResponseSchema: z.ZodObject<{
252
272
  }, z.core.$strict>>;
253
273
  email: z.ZodOptional<z.ZodString>;
254
274
  phone: z.ZodOptional<z.ZodString>;
275
+ legalIdentity: z.ZodOptional<z.ZodObject<{
276
+ legalName: z.ZodOptional<z.ZodString>;
277
+ registeredAddress: z.ZodOptional<z.ZodString>;
278
+ companyRegistrationNumber: z.ZodOptional<z.ZodString>;
279
+ establishmentRegistrationNumber: z.ZodOptional<z.ZodString>;
280
+ vatNumber: z.ZodOptional<z.ZodString>;
281
+ legalForm: z.ZodOptional<z.ZodString>;
282
+ shareCapital: z.ZodOptional<z.ZodString>;
283
+ tradeRegister: z.ZodOptional<z.ZodString>;
284
+ }, z.core.$strict>>;
255
285
  }, z.core.$strip>;
256
286
  recipient: z.ZodObject<{
257
287
  name: z.ZodString;
@@ -276,6 +306,16 @@ export declare const getContractSaleDocumentResponseSchema: z.ZodObject<{
276
306
  }, z.core.$strict>>;
277
307
  email: z.ZodOptional<z.ZodString>;
278
308
  phone: z.ZodOptional<z.ZodString>;
309
+ legalIdentity: z.ZodOptional<z.ZodObject<{
310
+ legalName: z.ZodOptional<z.ZodString>;
311
+ registeredAddress: z.ZodOptional<z.ZodString>;
312
+ companyRegistrationNumber: z.ZodOptional<z.ZodString>;
313
+ establishmentRegistrationNumber: z.ZodOptional<z.ZodString>;
314
+ vatNumber: z.ZodOptional<z.ZodString>;
315
+ legalForm: z.ZodOptional<z.ZodString>;
316
+ shareCapital: z.ZodOptional<z.ZodString>;
317
+ tradeRegister: z.ZodOptional<z.ZodString>;
318
+ }, z.core.$strict>>;
279
319
  }, z.core.$strip>;
280
320
  items: z.ZodArray<z.ZodObject<{
281
321
  id: z.ZodNumber;
@@ -407,6 +447,16 @@ export declare const acceptContractSaleDocumentResponseSchema: z.ZodObject<{
407
447
  }, z.core.$strict>>;
408
448
  email: z.ZodOptional<z.ZodString>;
409
449
  phone: z.ZodOptional<z.ZodString>;
450
+ legalIdentity: z.ZodOptional<z.ZodObject<{
451
+ legalName: z.ZodOptional<z.ZodString>;
452
+ registeredAddress: z.ZodOptional<z.ZodString>;
453
+ companyRegistrationNumber: z.ZodOptional<z.ZodString>;
454
+ establishmentRegistrationNumber: z.ZodOptional<z.ZodString>;
455
+ vatNumber: z.ZodOptional<z.ZodString>;
456
+ legalForm: z.ZodOptional<z.ZodString>;
457
+ shareCapital: z.ZodOptional<z.ZodString>;
458
+ tradeRegister: z.ZodOptional<z.ZodString>;
459
+ }, z.core.$strict>>;
410
460
  }, z.core.$strip>;
411
461
  recipient: z.ZodObject<{
412
462
  name: z.ZodString;
@@ -431,6 +481,16 @@ export declare const acceptContractSaleDocumentResponseSchema: z.ZodObject<{
431
481
  }, z.core.$strict>>;
432
482
  email: z.ZodOptional<z.ZodString>;
433
483
  phone: z.ZodOptional<z.ZodString>;
484
+ legalIdentity: z.ZodOptional<z.ZodObject<{
485
+ legalName: z.ZodOptional<z.ZodString>;
486
+ registeredAddress: z.ZodOptional<z.ZodString>;
487
+ companyRegistrationNumber: z.ZodOptional<z.ZodString>;
488
+ establishmentRegistrationNumber: z.ZodOptional<z.ZodString>;
489
+ vatNumber: z.ZodOptional<z.ZodString>;
490
+ legalForm: z.ZodOptional<z.ZodString>;
491
+ shareCapital: z.ZodOptional<z.ZodString>;
492
+ tradeRegister: z.ZodOptional<z.ZodString>;
493
+ }, z.core.$strict>>;
434
494
  }, z.core.$strip>;
435
495
  items: z.ZodArray<z.ZodObject<{
436
496
  id: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"contractSaleDocumentApi.d.ts","sourceRoot":"","sources":["../../src/lib/contractSaleDocumentApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAsBvB,eAAO,MAAM,uCAAuC;;;EAA8B,CAAA;AAClF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAA;AAEvG,eAAO,MAAM,mCAAmC;;;;;;;;iBAK9C,CAAA;AACF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA;AAE/F,eAAO,MAAM,uCAAuC;;;iBAElD,CAAA;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAA;AAEvG,eAAO,MAAM,sCAAsC;;;;;;iBAEjD,CAAA;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAA;AAErG,eAAO,MAAM,6CAA6C;;;;;;;;;2BAGxD,CAAA;AACF,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6CAA6C,CAAC,CAAA;AAEnH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQxC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAEnF,eAAO,MAAM,yCAAyC;;iBAEpD,CAAA;AACF,MAAM,MAAM,mCAAmC,GAAG,CAAC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;iBAMlD,CAAA;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAA;AAEvG,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKnD,CAAA;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAA"}
@@ -47,6 +47,16 @@ export declare const loader: ({ ctx, params, request }: ContractSaleDocumentLoad
47
47
  } | undefined;
48
48
  email?: string | undefined;
49
49
  phone?: string | undefined;
50
+ legalIdentity?: {
51
+ legalName?: string | undefined;
52
+ registeredAddress?: string | undefined;
53
+ companyRegistrationNumber?: string | undefined;
54
+ establishmentRegistrationNumber?: string | undefined;
55
+ vatNumber?: string | undefined;
56
+ legalForm?: string | undefined;
57
+ shareCapital?: string | undefined;
58
+ tradeRegister?: string | undefined;
59
+ } | undefined;
50
60
  };
51
61
  recipient: {
52
62
  name: string;
@@ -71,6 +81,16 @@ export declare const loader: ({ ctx, params, request }: ContractSaleDocumentLoad
71
81
  } | undefined;
72
82
  email?: string | undefined;
73
83
  phone?: string | undefined;
84
+ legalIdentity?: {
85
+ legalName?: string | undefined;
86
+ registeredAddress?: string | undefined;
87
+ companyRegistrationNumber?: string | undefined;
88
+ establishmentRegistrationNumber?: string | undefined;
89
+ vatNumber?: string | undefined;
90
+ legalForm?: string | undefined;
91
+ shareCapital?: string | undefined;
92
+ tradeRegister?: string | undefined;
93
+ } | undefined;
74
94
  };
75
95
  items: {
76
96
  id: number;
@@ -1 +1 @@
1
- {"version":3,"file":"ContractSaleDocumentPage.d.ts","sourceRoot":"","sources":["../../src/pages/ContractSaleDocumentPage.tsx"],"names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