@vindentech/api-client 1.6.0-next.0 → 1.6.0-next.1

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.
@@ -13434,6 +13434,416 @@ export interface UpdateTransportOptionDto {
13434
13434
  bookingSoftware?: string;
13435
13435
  active?: boolean;
13436
13436
  }
13437
+ export interface AnalyticsStoredVolumeDto {
13438
+ /** Measured m³ in storage: the pods' recorded sizes. Reads low while a provider-run warehouse has not reported its measurements. */
13439
+ measuredM3: number;
13440
+ /**
13441
+ * Estimated m³ in storage: an unsized pod taken at its product's size. Null for a night written before the estimate existed.
13442
+ * @nullable
13443
+ */
13444
+ estimatedM3: number | null;
13445
+ /**
13446
+ * Share of the pods in storage that are measured, 0–1. Null when the night does not record it.
13447
+ * @nullable
13448
+ */
13449
+ measuredPodShare: number | null;
13450
+ }
13451
+ export interface AnalyticsVolumePerCustomerDto {
13452
+ /**
13453
+ * Null when no customer has goods in storage.
13454
+ * @nullable
13455
+ */
13456
+ measuredM3: number | null;
13457
+ /** @nullable */
13458
+ estimatedM3: number | null;
13459
+ }
13460
+ export interface AnalyticsNightsBucketDto {
13461
+ /** Stays, or customers, in the bucket. */
13462
+ count: number;
13463
+ /**
13464
+ * Average stored nights, one decimal. Null for an empty bucket.
13465
+ * @nullable
13466
+ */
13467
+ averageNights: number | null;
13468
+ }
13469
+ export interface AnalyticsNightsByStatusDto {
13470
+ /** Stored on the night. */
13471
+ active: AnalyticsNightsBucketDto;
13472
+ /** Ended: empty for `stayGapNights` consecutive nights. */
13473
+ ended: AnalyticsNightsBucketDto;
13474
+ /** Every one, including those between stays (emptied, for fewer than `stayGapNights` nights), which are in neither bucket above. */
13475
+ all: AnalyticsNightsBucketDto;
13476
+ }
13477
+ export interface AnalyticsStorageTimeDto {
13478
+ /** Per stay, by the stay's status. */
13479
+ perStay: AnalyticsNightsByStatusDto;
13480
+ /** Per customer, nights totalled across their stays, by the status of their latest stay. */
13481
+ perCustomer: AnalyticsNightsByStatusDto;
13482
+ /** Customers with exactly one stay, so returning customers are left out. */
13483
+ singleStayCustomers: AnalyticsNightsByStatusDto;
13484
+ }
13485
+ export interface AnalyticsReturningCustomersDto {
13486
+ /** Customers with two or more stays. */
13487
+ count: number;
13488
+ /**
13489
+ * Their share of the customers who have stored, 0–1. Null when none has.
13490
+ * @nullable
13491
+ */
13492
+ shareOfStoringCustomers: number | null;
13493
+ }
13494
+ export interface AnalyticsLifetimeValueDto {
13495
+ /**
13496
+ * The tenant's default currency, which lifetime revenue is counted in; revenue in any other currency is not in it. Null before the first build or for a tenant with no default currency.
13497
+ * @nullable
13498
+ */
13499
+ currencyCode: string | null;
13500
+ /**
13501
+ * Average invoiced revenue ex VAT, minor units, of the customers whose latest stay has ended.
13502
+ * @nullable
13503
+ */
13504
+ endedCustomersMinor: number | null;
13505
+ /**
13506
+ * The same over every customer who has stored.
13507
+ * @nullable
13508
+ */
13509
+ storingCustomersMinor: number | null;
13510
+ }
13511
+ export interface AnalyticsPointInTimeDto {
13512
+ /** The night these figures describe. */
13513
+ date: string;
13514
+ /** Customers with goods in storage. */
13515
+ activeCustomers: number;
13516
+ storedVolume: AnalyticsStoredVolumeDto;
13517
+ averageVolumePerActiveCustomer: AnalyticsVolumePerCustomerDto;
13518
+ /** Customers registered on or before the night, cumulative. */
13519
+ registeredCustomers: number;
13520
+ /** Customers who had stored by the night, cumulative. */
13521
+ storingCustomers: number;
13522
+ storageTime: AnalyticsStorageTimeDto;
13523
+ returningCustomers: AnalyticsReturningCustomersDto;
13524
+ averageLifetimeValue: AnalyticsLifetimeValueDto;
13525
+ }
13526
+ export interface AnalyticsPointInTimeSetDto {
13527
+ asOf: AnalyticsPointInTimeDto;
13528
+ /** The last day of the month before asOf's. */
13529
+ previousMonthEnd: AnalyticsPointInTimeDto;
13530
+ /** asOf a month earlier, clamped to that month's last day (31 Oct → 30 Sep). */
13531
+ sameDayLastMonth: AnalyticsPointInTimeDto;
13532
+ }
13533
+ export interface AnalyticsRevenueCategoryDto {
13534
+ /**
13535
+ * The article's category; null when it has none.
13536
+ * @nullable
13537
+ */
13538
+ category: string | null;
13539
+ /** Revenue ex VAT, minor units. */
13540
+ amountMinor: number;
13541
+ }
13542
+ export interface AnalyticsRevenueArticleDto {
13543
+ /**
13544
+ * Null for a row with no article.
13545
+ * @nullable
13546
+ */
13547
+ articleId: string | null;
13548
+ /** @nullable */
13549
+ code: string | null;
13550
+ /** @nullable */
13551
+ name: string | null;
13552
+ /** @nullable */
13553
+ category: string | null;
13554
+ /** Revenue ex VAT, minor units. */
13555
+ amountMinor: number;
13556
+ }
13557
+ export interface AnalyticsRevenueDto {
13558
+ currencyCode: string;
13559
+ /** Revenue ex VAT, minor units. */
13560
+ totalMinor: number;
13561
+ byCategory: AnalyticsRevenueCategoryDto[];
13562
+ byArticle: AnalyticsRevenueArticleDto[];
13563
+ }
13564
+ export interface AnalyticsPeriodDto {
13565
+ from: string;
13566
+ /** Included. */
13567
+ to: string;
13568
+ /** Customers registered in the window. */
13569
+ newRegisteredCustomers: number;
13570
+ /** Customers whose first stay started in the window. */
13571
+ newStoringCustomers: number;
13572
+ /** Invoiced revenue by invoice date, one entry per currency, never summed across currencies. Invoices sent, paid, overdue or written off; credit notes net against them. */
13573
+ revenue: AnalyticsRevenueDto[];
13574
+ }
13575
+ export interface AnalyticsPeriodSetDto {
13576
+ /** From the 1st of asOf's month through asOf. */
13577
+ monthToDate: AnalyticsPeriodDto;
13578
+ /** The same days of the month before, the last one clamped to that month's end. */
13579
+ sameDaysLastMonth: AnalyticsPeriodDto;
13580
+ /** The month before asOf's. */
13581
+ lastFullMonth: AnalyticsPeriodDto;
13582
+ /** The month before that. */
13583
+ monthBefore: AnalyticsPeriodDto;
13584
+ }
13585
+ export interface AnalyticsRevenueTotalDto {
13586
+ currencyCode: string;
13587
+ /** Revenue ex VAT, minor units. */
13588
+ totalMinor: number;
13589
+ byCategory: AnalyticsRevenueCategoryDto[];
13590
+ }
13591
+ export interface AnalyticsRevenueYearToDateDto {
13592
+ /** 1 January of asOf's year. */
13593
+ from: string;
13594
+ to: string;
13595
+ /** One entry per currency. */
13596
+ revenue: AnalyticsRevenueTotalDto[];
13597
+ }
13598
+ export interface AnalyticsPricePerM3MonthDto {
13599
+ /** First day of the service month. */
13600
+ serviceMonth: string;
13601
+ /** Storage-category revenue ex VAT for the service month, minor units. */
13602
+ storageRevenueMinor: number;
13603
+ /** Average m³ stored over the month's nights, measured. */
13604
+ averageMeasuredM3: number;
13605
+ /**
13606
+ * The same, estimated; null when no night of the month carries an estimate.
13607
+ * @nullable
13608
+ */
13609
+ averageEstimatedM3: number | null;
13610
+ /**
13611
+ * Minor units per measured m³; null when nothing measured was stored.
13612
+ * @nullable
13613
+ */
13614
+ pricePerMeasuredM3Minor: number | null;
13615
+ /**
13616
+ * Minor units per estimated m³.
13617
+ * @nullable
13618
+ */
13619
+ pricePerEstimatedM3Minor: number | null;
13620
+ }
13621
+ export interface AnalyticsPricePerM3Dto {
13622
+ currencyCode: string;
13623
+ /** The latest service month before asOf's that has invoiced storage revenue. A month has no price until it is invoiced, so the current one never appears. */
13624
+ lastInvoicedServiceMonth: AnalyticsPricePerM3MonthDto;
13625
+ /** The service month before it. */
13626
+ monthBefore: AnalyticsPricePerM3MonthDto;
13627
+ }
13628
+ export interface AnalyticsEstimateCategoryDto {
13629
+ /** @nullable */
13630
+ category: string | null;
13631
+ /** Priced charges of the window, storage projected to month end, minor units. */
13632
+ grossMinor: number;
13633
+ /** Last window's invoiced net ÷ the priced gross it was invoiced from, for this category; 1 when last window had none. Four decimals. */
13634
+ ratio: number;
13635
+ /** grossMinor × ratio, minor units. */
13636
+ estimateMinor: number;
13637
+ /** Last window's invoiced net in this category, minor units. */
13638
+ lastMonthActualMinor: number;
13639
+ }
13640
+ export interface AnalyticsEstimateCurrencyDto {
13641
+ currencyCode: string;
13642
+ /** rowsMinor + projectedMinor. */
13643
+ grossMinor: number;
13644
+ /** Priced charges of the window so far, minor units. */
13645
+ rowsMinor: number;
13646
+ /** Storage projected for the days after storageCoveredThrough, minor units. */
13647
+ projectedMinor: number;
13648
+ /** The estimate: the sum of the categories' estimates, minor units. */
13649
+ estimateMinor: number;
13650
+ /** The invoices of the previous window, net, minor units. */
13651
+ lastMonthActualMinor: number;
13652
+ byCategory: AnalyticsEstimateCategoryDto[];
13653
+ }
13654
+ export interface AnalyticsInvoiceEstimateDto {
13655
+ /** Always true: these are projections, not invoices. */
13656
+ isEstimate: boolean;
13657
+ /** The invoice window estimated: asOf's month. */
13658
+ windowFrom: string;
13659
+ windowTo: string;
13660
+ /**
13661
+ * The day storage is counted from priced charges through; later days are projected from it. Null when the window has no priced storage to project from.
13662
+ * @nullable
13663
+ */
13664
+ storageCoveredThrough: string | null;
13665
+ /** Days of storage projected. */
13666
+ projectedDays: number;
13667
+ /** False while charges of the previous window are still to be invoiced, when lastMonthActualMinor is short and the ratios rest on the invoices built so far. */
13668
+ lastMonthComplete: boolean;
13669
+ /** One entry per currency. */
13670
+ currencies: AnalyticsEstimateCurrencyDto[];
13671
+ }
13672
+ export interface AnalyticsOverviewDto {
13673
+ /** The night the figures describe. */
13674
+ asOf: string;
13675
+ /**
13676
+ * When the nightly analytics build these figures read was computed; null before the first.
13677
+ * @nullable
13678
+ */
13679
+ computedAt: string | null;
13680
+ /** Consecutive empty nights that end a storage stay. */
13681
+ stayGapNights: number;
13682
+ pointInTime: AnalyticsPointInTimeSetDto;
13683
+ periods: AnalyticsPeriodSetDto;
13684
+ revenueYearToDate: AnalyticsRevenueYearToDateDto;
13685
+ /** One entry per currency with invoiced storage. */
13686
+ averagePricePerM3: AnalyticsPricePerM3Dto[];
13687
+ estimatedInvoicesThisMonth: AnalyticsInvoiceEstimateDto;
13688
+ }
13689
+ export interface AnalyticsDailyRowDto {
13690
+ date: string;
13691
+ /** Customers with goods in storage that night. */
13692
+ activeCustomers: number;
13693
+ measuredM3: number;
13694
+ /**
13695
+ * Null for a night written before the estimate existed.
13696
+ * @nullable
13697
+ */
13698
+ estimatedM3: number | null;
13699
+ /**
13700
+ * Pods in storage with no size. Null when the night does not record it.
13701
+ * @nullable
13702
+ */
13703
+ unmeasuredPods: number | null;
13704
+ newRegisteredCustomers: number;
13705
+ /** Customers whose first stay started that day. */
13706
+ newStoringCustomers: number;
13707
+ /** Registered on or before the day, cumulative. */
13708
+ registeredCustomers: number;
13709
+ /** Had stored by the day, cumulative. */
13710
+ storingCustomers: number;
13711
+ }
13712
+ export interface AnalyticsDailyPageDto {
13713
+ items: AnalyticsDailyRowDto[];
13714
+ /**
13715
+ * Pass as `cursor` for the next page; null on the last page.
13716
+ * @nullable
13717
+ */
13718
+ nextCursor: string | null;
13719
+ }
13720
+ export type AnalyticsCustomerRowDtoOrganizationType = typeof AnalyticsCustomerRowDtoOrganizationType[keyof typeof AnalyticsCustomerRowDtoOrganizationType];
13721
+ export declare const AnalyticsCustomerRowDtoOrganizationType: {
13722
+ readonly personal: "personal";
13723
+ readonly business: "business";
13724
+ };
13725
+ export type AnalyticsCustomerRowDtoStatus = typeof AnalyticsCustomerRowDtoStatus[keyof typeof AnalyticsCustomerRowDtoStatus];
13726
+ export declare const AnalyticsCustomerRowDtoStatus: {
13727
+ readonly never_stored: "never_stored";
13728
+ readonly active: "active";
13729
+ readonly between: "between";
13730
+ readonly ended: "ended";
13731
+ };
13732
+ export interface AnalyticsCustomerRowDto {
13733
+ /** The customer's pseudonymous key, stable across builds. */
13734
+ customerKey: string;
13735
+ organizationType: AnalyticsCustomerRowDtoOrganizationType;
13736
+ registeredOn: string;
13737
+ status: AnalyticsCustomerRowDtoStatus;
13738
+ stayCount: number;
13739
+ /** Two or more stays. */
13740
+ isReturning: boolean;
13741
+ /** @nullable */
13742
+ firstStoredOn: string | null;
13743
+ totalStoredNights: number;
13744
+ /** Measured m³ in storage on the latest night built. */
13745
+ currentMeasuredM3: number;
13746
+ /** @nullable */
13747
+ currentEstimatedM3: number | null;
13748
+ /** Invoiced revenue ex VAT in currencyCode, minor units. */
13749
+ lifetimeRevenueMinor: number;
13750
+ /**
13751
+ * The tenant's default currency.
13752
+ * @nullable
13753
+ */
13754
+ currencyCode: string | null;
13755
+ }
13756
+ export interface AnalyticsCustomerPageDto {
13757
+ items: AnalyticsCustomerRowDto[];
13758
+ /**
13759
+ * Pass as `cursor` for the next page; null on the last page.
13760
+ * @nullable
13761
+ */
13762
+ nextCursor: string | null;
13763
+ }
13764
+ export type AnalyticsStayRowDtoStatus = typeof AnalyticsStayRowDtoStatus[keyof typeof AnalyticsStayRowDtoStatus];
13765
+ export declare const AnalyticsStayRowDtoStatus: {
13766
+ readonly active: "active";
13767
+ readonly between: "between";
13768
+ readonly ended: "ended";
13769
+ };
13770
+ export interface AnalyticsStayRowDto {
13771
+ customerKey: string;
13772
+ /** 1 for the customer's first stay, then 2, 3, … */
13773
+ stayNumber: number;
13774
+ startedOn: string;
13775
+ lastStoredOn: string;
13776
+ /**
13777
+ * The first of the empty nights that ended the stay; null until it has ended.
13778
+ * @nullable
13779
+ */
13780
+ endedOn: string | null;
13781
+ status: AnalyticsStayRowDtoStatus;
13782
+ /** Nights with goods in storage; empty nights inside the stay are not counted. */
13783
+ storedNights: number;
13784
+ averageMeasuredM3: number;
13785
+ peakMeasuredM3: number;
13786
+ /** @nullable */
13787
+ averageEstimatedM3: number | null;
13788
+ /** @nullable */
13789
+ peakEstimatedM3: number | null;
13790
+ }
13791
+ export interface AnalyticsStayPageDto {
13792
+ items: AnalyticsStayRowDto[];
13793
+ /**
13794
+ * Pass as `cursor` for the next page; null on the last page.
13795
+ * @nullable
13796
+ */
13797
+ nextCursor: string | null;
13798
+ }
13799
+ export interface AnalyticsCustomerMonthRowDto {
13800
+ /** First day of the month. */
13801
+ month: string;
13802
+ customerKey: string;
13803
+ /** Nights with goods in storage that month; at least 1. */
13804
+ storedNights: number;
13805
+ /** Over the stored nights. */
13806
+ averageMeasuredM3: number;
13807
+ peakMeasuredM3: number;
13808
+ /** @nullable */
13809
+ averageEstimatedM3: number | null;
13810
+ /** @nullable */
13811
+ peakEstimatedM3: number | null;
13812
+ }
13813
+ export interface AnalyticsCustomerMonthPageDto {
13814
+ items: AnalyticsCustomerMonthRowDto[];
13815
+ /**
13816
+ * Pass as `cursor` for the next page; null on the last page.
13817
+ * @nullable
13818
+ */
13819
+ nextCursor: string | null;
13820
+ }
13821
+ export interface AnalyticsRevenueRowDto {
13822
+ /** First day of the invoice's month. */
13823
+ invoiceMonth: string;
13824
+ /** First day of the month the charge was for. */
13825
+ serviceMonth: string;
13826
+ customerKey: string;
13827
+ currencyCode: string;
13828
+ /** @nullable */
13829
+ articleId: string | null;
13830
+ /** @nullable */
13831
+ articleCode: string | null;
13832
+ /** @nullable */
13833
+ articleName: string | null;
13834
+ /** @nullable */
13835
+ articleCategory: string | null;
13836
+ /** Revenue ex VAT, minor units; negative where credit notes outweigh. */
13837
+ amountMinor: number;
13838
+ }
13839
+ export interface AnalyticsRevenuePageDto {
13840
+ items: AnalyticsRevenueRowDto[];
13841
+ /**
13842
+ * Pass as `cursor` for the next page; null on the last page.
13843
+ * @nullable
13844
+ */
13845
+ nextCursor: string | null;
13846
+ }
13437
13847
  export type OrdersControllerListV1Params = {
13438
13848
  /**
13439
13849
  * Max rows to return (1–100).
@@ -15249,4 +15659,103 @@ export type TransportOptionsControllerListV1Params = {
15249
15659
  */
15250
15660
  active?: boolean;
15251
15661
  };
15662
+ export type AnalyticsControllerOverviewV1Params = {
15663
+ /**
15664
+ * The night the figures describe (YYYY-MM-DD), in the tenant's billing calendar. Defaults to the latest night the nightly analytics build covers, normally last night. A later night is 400 as_of_not_built.
15665
+ */
15666
+ asOf?: string;
15667
+ };
15668
+ export type AnalyticsControllerDailyV1Params = {
15669
+ /**
15670
+ * The `nextCursor` of the previous page. Omit for the first page.
15671
+ */
15672
+ cursor?: string;
15673
+ /**
15674
+ * Rows per page (1–5000).
15675
+ * @minimum 1
15676
+ * @maximum 5000
15677
+ */
15678
+ limit?: number;
15679
+ /**
15680
+ * First day (YYYY-MM-DD), in the billing calendar. Defaults to the 1st of the month twelve months before `to`'s. A monthly dataset covers `from`'s month.
15681
+ */
15682
+ from?: string;
15683
+ /**
15684
+ * Last day, included. Defaults to the latest night the nightly build covers. The range may span at most 25 calendar months.
15685
+ */
15686
+ to?: string;
15687
+ };
15688
+ export type AnalyticsControllerCustomersV1Params = {
15689
+ /**
15690
+ * The `nextCursor` of the previous page. Omit for the first page.
15691
+ */
15692
+ cursor?: string;
15693
+ /**
15694
+ * Rows per page (1–5000).
15695
+ * @minimum 1
15696
+ * @maximum 5000
15697
+ */
15698
+ limit?: number;
15699
+ };
15700
+ export type AnalyticsControllerStaysV1Params = {
15701
+ /**
15702
+ * The `nextCursor` of the previous page. Omit for the first page.
15703
+ */
15704
+ cursor?: string;
15705
+ /**
15706
+ * Rows per page (1–5000).
15707
+ * @minimum 1
15708
+ * @maximum 5000
15709
+ */
15710
+ limit?: number;
15711
+ };
15712
+ export type AnalyticsControllerCustomerMonthsV1Params = {
15713
+ /**
15714
+ * The `nextCursor` of the previous page. Omit for the first page.
15715
+ */
15716
+ cursor?: string;
15717
+ /**
15718
+ * Rows per page (1–5000).
15719
+ * @minimum 1
15720
+ * @maximum 5000
15721
+ */
15722
+ limit?: number;
15723
+ /**
15724
+ * First day (YYYY-MM-DD), in the billing calendar. Defaults to the 1st of the month twelve months before `to`'s. A monthly dataset covers `from`'s month.
15725
+ */
15726
+ from?: string;
15727
+ /**
15728
+ * Last day, included. Defaults to the latest night the nightly build covers. The range may span at most 25 calendar months.
15729
+ */
15730
+ to?: string;
15731
+ };
15732
+ export type AnalyticsControllerRevenueV1Params = {
15733
+ /**
15734
+ * The `nextCursor` of the previous page. Omit for the first page.
15735
+ */
15736
+ cursor?: string;
15737
+ /**
15738
+ * Rows per page (1–5000).
15739
+ * @minimum 1
15740
+ * @maximum 5000
15741
+ */
15742
+ limit?: number;
15743
+ /**
15744
+ * First day (YYYY-MM-DD), in the billing calendar. Defaults to the 1st of the month twelve months before `to`'s. A monthly dataset covers `from`'s month.
15745
+ */
15746
+ from?: string;
15747
+ /**
15748
+ * Last day, included. Defaults to the latest night the nightly build covers. The range may span at most 25 calendar months.
15749
+ */
15750
+ to?: string;
15751
+ /**
15752
+ * Which month `from`/`to` select and the rows are ordered by: the invoice's month, or the month the charge was for.
15753
+ */
15754
+ dateBasis?: AnalyticsControllerRevenueV1DateBasis;
15755
+ };
15756
+ export type AnalyticsControllerRevenueV1DateBasis = typeof AnalyticsControllerRevenueV1DateBasis[keyof typeof AnalyticsControllerRevenueV1DateBasis];
15757
+ export declare const AnalyticsControllerRevenueV1DateBasis: {
15758
+ readonly invoice: "invoice";
15759
+ readonly service: "service";
15760
+ };
15252
15761
  //# sourceMappingURL=index.schemas.d.ts.map