@vindentech/api-client 0.3.0-next.69 → 0.3.0-next.71

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.
@@ -2758,129 +2758,43 @@ export interface QuoteResponseDto {
2758
2758
  /** Components present on the cart that this quote did not price, or reductions it did not apply. Their absence from `totals` is intentional, never a zero charge. Values: GOODS, SERVICE, START_FEE, TRANSPORT (no configured article, price row, or computable rate — no line is emitted at all), INSURANCE (no plan catalogue exists yet), TRANSPORT_PARTIAL (a transport line IS priced from the rate card but excludes a component the cart carries no quantity for — a per-hour rate with no `estimatedHours`, or a per-unit rate with no shipment manifest — so the transport amount is a floor, not the final charge), TRANSPORT_RUT (the line is RUT-eligible but its price source carries no post-deduction price to derive the amount from), MATERIAL_DELIVERY (the cart holds a material:delivery timeslot; its underlying slot may carry a real price, but materials pricing is not yet designed, so it is excluded from `totals` rather than priced as ordinary transport), MERCHANDISE (at least one basketed SKU could not be priced and is excluded from `totals` — it was deactivated after being basketed, it has no active price for today in the cart's currency, or its price rule is malformed. Priceable SKUs in the same basket still appear as MERCHANDISE lines, so this value means 'some of the basket is missing from the total', not 'none of it is priced'). */
2759
2759
  deferred: string[];
2760
2760
  }
2761
- /**
2762
- * @nullable
2763
- */
2764
- export type CartContactInputDtoName = {
2765
- [key: string]: unknown;
2766
- } | null;
2767
- /**
2768
- * @nullable
2769
- */
2770
- export type CartContactInputDtoEmail = {
2771
- [key: string]: unknown;
2772
- } | null;
2773
- /**
2774
- * @nullable
2775
- */
2776
- export type CartContactInputDtoPhone = {
2777
- [key: string]: unknown;
2778
- } | null;
2779
2761
  export interface CartContactInputDto {
2780
2762
  /** @nullable */
2781
- name?: CartContactInputDtoName;
2763
+ name?: string | null;
2782
2764
  /** @nullable */
2783
- email?: CartContactInputDtoEmail;
2765
+ email?: string | null;
2784
2766
  /** @nullable */
2785
- phone?: CartContactInputDtoPhone;
2767
+ phone?: string | null;
2786
2768
  }
2787
- /**
2788
- * @nullable
2789
- */
2790
- export type CartLocationInputDtoAddressLine1 = {
2791
- [key: string]: unknown;
2792
- } | null;
2793
- /**
2794
- * @nullable
2795
- */
2796
- export type CartLocationInputDtoAddressLine2 = {
2797
- [key: string]: unknown;
2798
- } | null;
2799
- /**
2800
- * @nullable
2801
- */
2802
- export type CartLocationInputDtoZipCode = {
2803
- [key: string]: unknown;
2804
- } | null;
2805
- /**
2806
- * @nullable
2807
- */
2808
- export type CartLocationInputDtoCity = {
2809
- [key: string]: unknown;
2810
- } | null;
2811
- /**
2812
- * ISO 3166-1 alpha-2
2813
- * @nullable
2814
- */
2815
- export type CartLocationInputDtoCountryCode = {
2816
- [key: string]: unknown;
2817
- } | null;
2818
- /**
2819
- * @nullable
2820
- */
2821
- export type CartLocationInputDtoSquareMeters = {
2822
- [key: string]: unknown;
2823
- } | null;
2824
- /**
2825
- * @nullable
2826
- */
2827
- export type CartLocationInputDtoNumberOfRooms = {
2828
- [key: string]: unknown;
2829
- } | null;
2830
- /**
2831
- * @nullable
2832
- */
2833
- export type CartLocationInputDtoFloor = {
2834
- [key: string]: unknown;
2835
- } | null;
2836
- /**
2837
- * Value from the elevator_type lookup (e.g. NONE, SMALL, BIG)
2838
- * @nullable
2839
- */
2840
- export type CartLocationInputDtoElevatorType = {
2841
- [key: string]: unknown;
2842
- } | null;
2843
- /**
2844
- * @nullable
2845
- */
2846
- export type CartLocationInputDtoIsBackyardHouse = {
2847
- [key: string]: unknown;
2848
- } | null;
2849
- /**
2850
- * @nullable
2851
- */
2852
- export type CartLocationInputDtoExtraStorageM2 = {
2853
- [key: string]: unknown;
2854
- } | null;
2855
2769
  export interface CartLocationInputDto {
2856
2770
  /** @nullable */
2857
- addressLine1?: CartLocationInputDtoAddressLine1;
2771
+ addressLine1?: string | null;
2858
2772
  /** @nullable */
2859
- addressLine2?: CartLocationInputDtoAddressLine2;
2773
+ addressLine2?: string | null;
2860
2774
  /** @nullable */
2861
- zipCode?: CartLocationInputDtoZipCode;
2775
+ zipCode?: string | null;
2862
2776
  /** @nullable */
2863
- city?: CartLocationInputDtoCity;
2777
+ city?: string | null;
2864
2778
  /**
2865
2779
  * ISO 3166-1 alpha-2
2866
2780
  * @nullable
2867
2781
  */
2868
- countryCode?: CartLocationInputDtoCountryCode;
2782
+ countryCode?: string | null;
2869
2783
  /** @nullable */
2870
- squareMeters?: CartLocationInputDtoSquareMeters;
2784
+ squareMeters?: number | null;
2871
2785
  /** @nullable */
2872
- numberOfRooms?: CartLocationInputDtoNumberOfRooms;
2786
+ numberOfRooms?: number | null;
2873
2787
  /** @nullable */
2874
- floor?: CartLocationInputDtoFloor;
2788
+ floor?: number | null;
2875
2789
  /**
2876
2790
  * Value from the elevator_type lookup (e.g. NONE, SMALL, BIG)
2877
2791
  * @nullable
2878
2792
  */
2879
- elevatorType?: CartLocationInputDtoElevatorType;
2793
+ elevatorType?: string | null;
2880
2794
  /** @nullable */
2881
- isBackyardHouse?: CartLocationInputDtoIsBackyardHouse;
2795
+ isBackyardHouse?: boolean | null;
2882
2796
  /** @nullable */
2883
- extraStorageM2?: CartLocationInputDtoExtraStorageM2;
2797
+ extraStorageM2?: number | null;
2884
2798
  /**
2885
2799
  * WGS84 latitude of the address. Not derived from the address text — send it alongside, paired with longitude. Copied onto this side's transport legs at placement.
2886
2800
  * @minimum -90
@@ -2896,81 +2810,6 @@ export interface CartLocationInputDto {
2896
2810
  */
2897
2811
  longitude?: number | null;
2898
2812
  }
2899
- /**
2900
- * @nullable
2901
- */
2902
- export type CartDeliveryLocationInputDtoAddressLine1 = {
2903
- [key: string]: unknown;
2904
- } | null;
2905
- /**
2906
- * @nullable
2907
- */
2908
- export type CartDeliveryLocationInputDtoAddressLine2 = {
2909
- [key: string]: unknown;
2910
- } | null;
2911
- /**
2912
- * @nullable
2913
- */
2914
- export type CartDeliveryLocationInputDtoZipCode = {
2915
- [key: string]: unknown;
2916
- } | null;
2917
- /**
2918
- * @nullable
2919
- */
2920
- export type CartDeliveryLocationInputDtoCity = {
2921
- [key: string]: unknown;
2922
- } | null;
2923
- /**
2924
- * ISO 3166-1 alpha-2
2925
- * @nullable
2926
- */
2927
- export type CartDeliveryLocationInputDtoCountryCode = {
2928
- [key: string]: unknown;
2929
- } | null;
2930
- /**
2931
- * @nullable
2932
- */
2933
- export type CartDeliveryLocationInputDtoSquareMeters = {
2934
- [key: string]: unknown;
2935
- } | null;
2936
- /**
2937
- * @nullable
2938
- */
2939
- export type CartDeliveryLocationInputDtoNumberOfRooms = {
2940
- [key: string]: unknown;
2941
- } | null;
2942
- /**
2943
- * @nullable
2944
- */
2945
- export type CartDeliveryLocationInputDtoFloor = {
2946
- [key: string]: unknown;
2947
- } | null;
2948
- /**
2949
- * Value from the elevator_type lookup (e.g. NONE, SMALL, BIG)
2950
- * @nullable
2951
- */
2952
- export type CartDeliveryLocationInputDtoElevatorType = {
2953
- [key: string]: unknown;
2954
- } | null;
2955
- /**
2956
- * @nullable
2957
- */
2958
- export type CartDeliveryLocationInputDtoIsBackyardHouse = {
2959
- [key: string]: unknown;
2960
- } | null;
2961
- /**
2962
- * @nullable
2963
- */
2964
- export type CartDeliveryLocationInputDtoExtraStorageM2 = {
2965
- [key: string]: unknown;
2966
- } | null;
2967
- /**
2968
- * Opaque provider-specific id; requires servicePointProvider alongside it.
2969
- * @nullable
2970
- */
2971
- export type CartDeliveryLocationInputDtoServicePointId = {
2972
- [key: string]: unknown;
2973
- } | null;
2974
2813
  /**
2975
2814
  * Required alongside servicePointId.
2976
2815
  * @nullable
@@ -2981,33 +2820,33 @@ export declare const CartDeliveryLocationInputDtoServicePointProvider: {
2981
2820
  };
2982
2821
  export interface CartDeliveryLocationInputDto {
2983
2822
  /** @nullable */
2984
- addressLine1?: CartDeliveryLocationInputDtoAddressLine1;
2823
+ addressLine1?: string | null;
2985
2824
  /** @nullable */
2986
- addressLine2?: CartDeliveryLocationInputDtoAddressLine2;
2825
+ addressLine2?: string | null;
2987
2826
  /** @nullable */
2988
- zipCode?: CartDeliveryLocationInputDtoZipCode;
2827
+ zipCode?: string | null;
2989
2828
  /** @nullable */
2990
- city?: CartDeliveryLocationInputDtoCity;
2829
+ city?: string | null;
2991
2830
  /**
2992
2831
  * ISO 3166-1 alpha-2
2993
2832
  * @nullable
2994
2833
  */
2995
- countryCode?: CartDeliveryLocationInputDtoCountryCode;
2834
+ countryCode?: string | null;
2996
2835
  /** @nullable */
2997
- squareMeters?: CartDeliveryLocationInputDtoSquareMeters;
2836
+ squareMeters?: number | null;
2998
2837
  /** @nullable */
2999
- numberOfRooms?: CartDeliveryLocationInputDtoNumberOfRooms;
2838
+ numberOfRooms?: number | null;
3000
2839
  /** @nullable */
3001
- floor?: CartDeliveryLocationInputDtoFloor;
2840
+ floor?: number | null;
3002
2841
  /**
3003
2842
  * Value from the elevator_type lookup (e.g. NONE, SMALL, BIG)
3004
2843
  * @nullable
3005
2844
  */
3006
- elevatorType?: CartDeliveryLocationInputDtoElevatorType;
2845
+ elevatorType?: string | null;
3007
2846
  /** @nullable */
3008
- isBackyardHouse?: CartDeliveryLocationInputDtoIsBackyardHouse;
2847
+ isBackyardHouse?: boolean | null;
3009
2848
  /** @nullable */
3010
- extraStorageM2?: CartDeliveryLocationInputDtoExtraStorageM2;
2849
+ extraStorageM2?: number | null;
3011
2850
  /**
3012
2851
  * WGS84 latitude of the address. Not derived from the address text — send it alongside, paired with longitude. Copied onto this side's transport legs at placement.
3013
2852
  * @minimum -90
@@ -3026,31 +2865,13 @@ export interface CartDeliveryLocationInputDto {
3026
2865
  * Opaque provider-specific id; requires servicePointProvider alongside it.
3027
2866
  * @nullable
3028
2867
  */
3029
- servicePointId?: CartDeliveryLocationInputDtoServicePointId;
2868
+ servicePointId?: string | null;
3030
2869
  /**
3031
2870
  * Required alongside servicePointId.
3032
2871
  * @nullable
3033
2872
  */
3034
2873
  servicePointProvider?: CartDeliveryLocationInputDtoServicePointProvider;
3035
2874
  }
3036
- /**
3037
- * @nullable
3038
- */
3039
- export type CartItemInputDtoLengthMm = {
3040
- [key: string]: unknown;
3041
- } | null;
3042
- /**
3043
- * @nullable
3044
- */
3045
- export type CartItemInputDtoWidthMm = {
3046
- [key: string]: unknown;
3047
- } | null;
3048
- /**
3049
- * @nullable
3050
- */
3051
- export type CartItemInputDtoHeightMm = {
3052
- [key: string]: unknown;
3053
- } | null;
3054
2875
  /**
3055
2876
  * @nullable
3056
2877
  */
@@ -3067,33 +2888,14 @@ export interface CartItemInputDto {
3067
2888
  /** @minimum 1 */
3068
2889
  quantity: number;
3069
2890
  /** @nullable */
3070
- lengthMm?: CartItemInputDtoLengthMm;
2891
+ lengthMm?: number | null;
3071
2892
  /** @nullable */
3072
- widthMm?: CartItemInputDtoWidthMm;
2893
+ widthMm?: number | null;
3073
2894
  /** @nullable */
3074
- heightMm?: CartItemInputDtoHeightMm;
2895
+ heightMm?: number | null;
3075
2896
  /** @nullable */
3076
2897
  metadata?: CartItemInputDtoMetadata;
3077
2898
  }
3078
- /**
3079
- * @nullable
3080
- */
3081
- export type CartServiceInputDtoLevel = {
3082
- [key: string]: unknown;
3083
- } | null;
3084
- /**
3085
- * @minimum 1
3086
- * @nullable
3087
- */
3088
- export type CartServiceInputDtoQuantity = {
3089
- [key: string]: unknown;
3090
- } | null;
3091
- /**
3092
- * @nullable
3093
- */
3094
- export type CartServiceInputDtoHours = {
3095
- [key: string]: unknown;
3096
- } | null;
3097
2899
  /**
3098
2900
  * @nullable
3099
2901
  */
@@ -3106,14 +2908,14 @@ export interface CartServiceInputDto {
3106
2908
  /** Service code string (becomes sales_order_service at placement) */
3107
2909
  serviceCode: string;
3108
2910
  /** @nullable */
3109
- level?: CartServiceInputDtoLevel;
2911
+ level?: string | null;
3110
2912
  /**
3111
2913
  * @minimum 1
3112
2914
  * @nullable
3113
2915
  */
3114
- quantity?: CartServiceInputDtoQuantity;
2916
+ quantity?: number | null;
3115
2917
  /** @nullable */
3116
- hours?: CartServiceInputDtoHours;
2918
+ hours?: number | null;
3117
2919
  /** @nullable */
3118
2920
  metadata?: CartServiceInputDtoMetadata;
3119
2921
  }
@@ -3142,39 +2944,6 @@ export declare const UpdateCartDtoCustomerType: {
3142
2944
  readonly business: "business";
3143
2945
  readonly personal: "personal";
3144
2946
  };
3145
- /**
3146
- * PII — personal identity number the RUT deduction is claimed against; frozen onto the order at placement.
3147
- * @nullable
3148
- */
3149
- export type UpdateCartDtoRutIdentityNumber = {
3150
- [key: string]: unknown;
3151
- } | null;
3152
- /**
3153
- * Opaque billing plan id (deferred FK)
3154
- * @nullable
3155
- */
3156
- export type UpdateCartDtoInsuranceId = {
3157
- [key: string]: unknown;
3158
- } | null;
3159
- /**
3160
- * Selected binding plan. Validated against the tenant's active billing.binding_plan rows — an unknown, inactive or foreign-tenant plan is rejected with 422 invalid_binding_plan. Null clears the selection.
3161
- * @nullable
3162
- */
3163
- export type UpdateCartDtoBindingId = {
3164
- [key: string]: unknown;
3165
- } | null;
3166
- /**
3167
- * @nullable
3168
- */
3169
- export type UpdateCartDtoCouponCode = {
3170
- [key: string]: unknown;
3171
- } | null;
3172
- /**
3173
- * @nullable
3174
- */
3175
- export type UpdateCartDtoEstimatedHours = {
3176
- [key: string]: unknown;
3177
- } | null;
3178
2947
  export interface UpdateCartDto {
3179
2948
  /** Optimistic-concurrency precondition; must equal the cart's current revision or the write fails with 409 cart_version_conflict. */
3180
2949
  expectedRevision: number;
@@ -3184,19 +2953,19 @@ export interface UpdateCartDto {
3184
2953
  * PII — personal identity number the RUT deduction is claimed against; frozen onto the order at placement.
3185
2954
  * @nullable
3186
2955
  */
3187
- rutIdentityNumber?: UpdateCartDtoRutIdentityNumber;
2956
+ rutIdentityNumber?: string | null;
3188
2957
  /**
3189
2958
  * Opaque billing plan id (deferred FK)
3190
2959
  * @nullable
3191
2960
  */
3192
- insuranceId?: UpdateCartDtoInsuranceId;
2961
+ insuranceId?: string | null;
3193
2962
  /**
3194
2963
  * Selected binding plan. Validated against the tenant's active billing.binding_plan rows — an unknown, inactive or foreign-tenant plan is rejected with 422 invalid_binding_plan. Null clears the selection.
3195
2964
  * @nullable
3196
2965
  */
3197
- bindingId?: UpdateCartDtoBindingId;
2966
+ bindingId?: string | null;
3198
2967
  /** @nullable */
3199
- couponCode?: UpdateCartDtoCouponCode;
2968
+ couponCode?: string | null;
3200
2969
  /** @nullable */
3201
2970
  customer?: CartContactInputDto | null;
3202
2971
  /** @nullable */
@@ -3206,7 +2975,7 @@ export interface UpdateCartDto {
3206
2975
  /** @nullable */
3207
2976
  delivery?: CartDeliveryLocationInputDto | null;
3208
2977
  /** @nullable */
3209
- estimatedHours?: UpdateCartDtoEstimatedHours;
2978
+ estimatedHours?: number | null;
3210
2979
  /** Full reconcile of cart lines: update by cartProductId, insert without one, remove lines absent from the array. Omit the field to leave lines untouched. */
3211
2980
  items?: CartItemInputDto[];
3212
2981
  /** Full reconcile of extra-service lines; same semantics as items. */
@@ -3227,18 +2996,6 @@ export declare const HoldTimeslotDtoComponentKey: {
3227
2996
  readonly 'move:delivery': "move:delivery";
3228
2997
  readonly 'material:delivery': "material:delivery";
3229
2998
  };
3230
- /**
3231
- * @nullable
3232
- */
3233
- export type HoldTimeslotDtoVolumeCm3 = {
3234
- [key: string]: unknown;
3235
- } | null;
3236
- /**
3237
- * @nullable
3238
- */
3239
- export type HoldTimeslotDtoWeightG = {
3240
- [key: string]: unknown;
3241
- } | null;
3242
2999
  export interface HoldTimeslotDto {
3243
3000
  expectedRevision: number;
3244
3001
  /** transport_slot id to draw capacity from */
@@ -3248,9 +3005,9 @@ export interface HoldTimeslotDto {
3248
3005
  /** @minimum 1 */
3249
3006
  quantityOrders?: number;
3250
3007
  /** @nullable */
3251
- volumeCm3?: HoldTimeslotDtoVolumeCm3;
3008
+ volumeCm3?: number | null;
3252
3009
  /** @nullable */
3253
- weightG?: HoldTimeslotDtoWeightG;
3010
+ weightG?: number | null;
3254
3011
  }
3255
3012
  export interface HoldResultDto {
3256
3013
  reservationId: string;
@@ -3951,13 +3708,6 @@ export interface UpdateServiceZoneDto {
3951
3708
  /** Reconciled postal-code set; omitted leaves the zip set unchanged. */
3952
3709
  postalCodes?: ServiceZonePostalCodeInputDto[];
3953
3710
  }
3954
- /**
3955
- * NULL = all eligible zones.
3956
- * @nullable
3957
- */
3958
- export type SlotConfigDtoServiceZoneId = {
3959
- [key: string]: unknown;
3960
- } | null;
3961
3711
  /**
3962
3712
  * NULL = daily-cap-only.
3963
3713
  * @nullable
@@ -3982,7 +3732,7 @@ export interface SlotConfigDto {
3982
3732
  * NULL = all eligible zones.
3983
3733
  * @nullable
3984
3734
  */
3985
- serviceZoneId: SlotConfigDtoServiceZoneId;
3735
+ serviceZoneId: string | null;
3986
3736
  /**
3987
3737
  * NULL = daily-cap-only.
3988
3738
  * @nullable
@@ -4395,24 +4145,12 @@ export interface SlotAvailabilityDto {
4395
4145
  status: string;
4396
4146
  availability: SlotPatchAvailabilityDto;
4397
4147
  }
4398
- /**
4399
- * @nullable
4400
- */
4401
- export type CapacityOverrideDtoTransportSlotId = {
4402
- [key: string]: unknown;
4403
- } | null;
4404
- /**
4405
- * @nullable
4406
- */
4407
- export type CapacityOverrideDtoTransportCapacityDayId = {
4408
- [key: string]: unknown;
4409
- } | null;
4410
4148
  export interface CapacityOverrideDto {
4411
4149
  transportCapacityOverrideId: string;
4412
4150
  /** @nullable */
4413
- transportSlotId: CapacityOverrideDtoTransportSlotId;
4151
+ transportSlotId: string | null;
4414
4152
  /** @nullable */
4415
- transportCapacityDayId: CapacityOverrideDtoTransportCapacityDayId;
4153
+ transportCapacityDayId: string | null;
4416
4154
  /** Signed (may be negative). */
4417
4155
  deltaMaxOrders: number;
4418
4156
  /** bigint, signed. */
@@ -4466,18 +4204,6 @@ export interface UpdateCapacityOverrideDto {
4466
4204
  effectiveUntil?: string;
4467
4205
  isActive?: boolean;
4468
4206
  }
4469
- /**
4470
- * @nullable
4471
- */
4472
- export type PriceSuggestionDtoTransportSlotId = {
4473
- [key: string]: unknown;
4474
- } | null;
4475
- /**
4476
- * @nullable
4477
- */
4478
- export type PriceSuggestionDtoTransportCapacityDayId = {
4479
- [key: string]: unknown;
4480
- } | null;
4481
4207
  export type PriceSuggestionDtoRationale = typeof PriceSuggestionDtoRationale[keyof typeof PriceSuggestionDtoRationale];
4482
4208
  export declare const PriceSuggestionDtoRationale: {
4483
4209
  readonly LOW_REMAINING_CAPACITY: "LOW_REMAINING_CAPACITY";
@@ -4488,9 +4214,9 @@ export interface PriceSuggestionDto {
4488
4214
  transportServiceId: string;
4489
4215
  serviceZoneId: string;
4490
4216
  /** @nullable */
4491
- transportSlotId?: PriceSuggestionDtoTransportSlotId;
4217
+ transportSlotId?: string | null;
4492
4218
  /** @nullable */
4493
- transportCapacityDayId?: PriceSuggestionDtoTransportCapacityDayId;
4219
+ transportCapacityDayId?: string | null;
4494
4220
  /** The target's current base price */
4495
4221
  basePrice: MoneyDto;
4496
4222
  /** Non-binding recommended price */
@@ -8001,6 +7727,68 @@ export interface SetPostiIntegrationModeResultDto {
8001
7727
  /** Every operation's mode after the change, as the read returns it. */
8002
7728
  modes: PostiIntegrationModeDto[];
8003
7729
  }
7730
+ export type IntegrationRequestDtoDirection = typeof IntegrationRequestDtoDirection[keyof typeof IntegrationRequestDtoDirection];
7731
+ export declare const IntegrationRequestDtoDirection: {
7732
+ readonly outbound: "outbound";
7733
+ readonly inbound: "inbound";
7734
+ };
7735
+ export type IntegrationRequestDtoOutcome = typeof IntegrationRequestDtoOutcome[keyof typeof IntegrationRequestDtoOutcome];
7736
+ export declare const IntegrationRequestDtoOutcome: {
7737
+ readonly SUCCEEDED: "SUCCEEDED";
7738
+ readonly FAILED: "FAILED";
7739
+ readonly PENDING: "PENDING";
7740
+ readonly NOT_SENT: "NOT_SENT";
7741
+ };
7742
+ export interface IntegrationRequestDto {
7743
+ webhookEventId: string;
7744
+ /** When the exchange was archived. Also the partition key. */
7745
+ occurredAt: string;
7746
+ /** The integration that produced the exchange, e.g. `posti_wms`, `omaposti_pro`, `ses`. Free text rather than an enum: the set grows with each provider that starts archiving, and a client that hard-codes today's members would break on the next one. */
7747
+ provider: string;
7748
+ /** What was exchanged, in the provider's own terms — `purchase_order`, `sales_order`, `receipt_confirmation`, `posti.omaposti_pro.pickup_order`, `ses.Bounce`. Free text for the same reason as `provider`. */
7749
+ operation: string;
7750
+ direction: IntegrationRequestDtoDirection;
7751
+ outcome: IntegrationRequestDtoOutcome;
7752
+ /**
7753
+ * What the exchange was about — `sales_order` today. Null where the writer had no aggregate to name: an inbound receipt is archived before it is matched to an order, and a mail-delivery callback is about a notification.
7754
+ * @nullable
7755
+ */
7756
+ aggregateType: string | null;
7757
+ /**
7758
+ * The aggregate row itself.
7759
+ * @nullable
7760
+ */
7761
+ aggregateId: string | null;
7762
+ /** @nullable */
7763
+ organizationId: string | null;
7764
+ /**
7765
+ * The key to quote to support. Whichever identifier the writer had — the outbox event key, the document's message identifier, or the provider's own event id — so it is comparable ACROSS rows of one provider but not across providers.
7766
+ * @nullable
7767
+ */
7768
+ correlationKey: string | null;
7769
+ /**
7770
+ * The provider's HTTP status, where there was one. Null on an inbound document and on a request that was built but never sent.
7771
+ * @nullable
7772
+ */
7773
+ responseStatus: number | null;
7774
+ /** Ingest attempts against THIS row. An outbound retry archives a row of its own rather than incrementing this, so it is the inbound counter; to see an outbound request's attempts, filter on its `correlationKey`. */
7775
+ attemptCount: number;
7776
+ /**
7777
+ * Why it failed, as the provider or the transport put it. Null unless FAILED.
7778
+ * @nullable
7779
+ */
7780
+ errorMessage: string | null;
7781
+ }
7782
+ export interface PaginatedIntegrationRequestsDto {
7783
+ /** The page of rows. */
7784
+ items: IntegrationRequestDto[];
7785
+ /** Exact count of all rows matching the filter, pre-pagination (RLS-scoped). */
7786
+ total: number;
7787
+ /** Effective max rows applied (after defaults/clamp). */
7788
+ limit: number;
7789
+ /** Effective rows skipped applied. */
7790
+ offset: number;
7791
+ }
8004
7792
  export interface FortnoxAuthorizeUrlDto {
8005
7793
  /** Fortnox OAuth authorize URL the SPA should redirect the browser to. Carries a signed, tenant-bound `state` parameter. */
8006
7794
  authorizeUrl: string;
@@ -11941,13 +11729,6 @@ export interface UpdateTenantGoodsDto {
11941
11729
  /** Recorded on the pricing rule when the price changes. */
11942
11730
  changeReason?: string;
11943
11731
  }
11944
- /**
11945
- * Free-text note (e.g. a delivery note id).
11946
- * @nullable
11947
- */
11948
- export type ReceiveStockDtoReason = {
11949
- [key: string]: unknown;
11950
- } | null;
11951
11732
  export interface ReceiveStockDto {
11952
11733
  /** Warehouse the stock arrived at. Must be one the caller is assigned to. */
11953
11734
  warehouseId: string;
@@ -11961,7 +11742,7 @@ export interface ReceiveStockDto {
11961
11742
  * Free-text note (e.g. a delivery note id).
11962
11743
  * @nullable
11963
11744
  */
11964
- reason?: ReceiveStockDtoReason;
11745
+ reason?: string | null;
11965
11746
  }
11966
11747
  export type StockMovementResultDtoMovementType = typeof StockMovementResultDtoMovementType[keyof typeof StockMovementResultDtoMovementType];
11967
11748
  export declare const StockMovementResultDtoMovementType: {
@@ -13385,6 +13166,57 @@ export declare const LookupsControllerListV1Kind: {
13385
13166
  readonly 'org-contact-role': "org-contact-role";
13386
13167
  readonly 'damage-report-condition': "damage-report-condition";
13387
13168
  };
13169
+ export type IntegrationRequestsControllerListV1Params = {
13170
+ /**
13171
+ * Max rows to return (1–100).
13172
+ * @minimum 1
13173
+ * @maximum 100
13174
+ */
13175
+ limit?: number;
13176
+ /**
13177
+ * Rows to skip.
13178
+ * @minimum 0
13179
+ */
13180
+ offset?: number;
13181
+ /**
13182
+ * Exact-match on the provider code, e.g. `posti_wms`.
13183
+ */
13184
+ provider?: string;
13185
+ /**
13186
+ * Exact-match on the operation, e.g. `purchase_order`.
13187
+ */
13188
+ operation?: string;
13189
+ direction?: IntegrationRequestsControllerListV1Direction;
13190
+ outcome?: IntegrationRequestsControllerListV1Outcome;
13191
+ /**
13192
+ * Everything this integration did about one order.
13193
+ */
13194
+ aggregateId?: string;
13195
+ /**
13196
+ * Exact-match on the correlation key — every attempt of one request.
13197
+ */
13198
+ correlationKey?: string;
13199
+ /**
13200
+ * Inclusive lower bound on occurredAt. Defaults to 30 days ago.
13201
+ */
13202
+ occurredFrom?: string;
13203
+ /**
13204
+ * Exclusive upper bound on occurredAt. Defaults to now.
13205
+ */
13206
+ occurredTo?: string;
13207
+ };
13208
+ export type IntegrationRequestsControllerListV1Direction = typeof IntegrationRequestsControllerListV1Direction[keyof typeof IntegrationRequestsControllerListV1Direction];
13209
+ export declare const IntegrationRequestsControllerListV1Direction: {
13210
+ readonly outbound: "outbound";
13211
+ readonly inbound: "inbound";
13212
+ };
13213
+ export type IntegrationRequestsControllerListV1Outcome = typeof IntegrationRequestsControllerListV1Outcome[keyof typeof IntegrationRequestsControllerListV1Outcome];
13214
+ export declare const IntegrationRequestsControllerListV1Outcome: {
13215
+ readonly SUCCEEDED: "SUCCEEDED";
13216
+ readonly FAILED: "FAILED";
13217
+ readonly PENDING: "PENDING";
13218
+ readonly NOT_SENT: "NOT_SENT";
13219
+ };
13388
13220
  export type BillingAccountsControllerListAccountsV1Params = {
13389
13221
  /**
13390
13222
  * Max rows to return (1–100).