@vindentech/api-client 2.0.0-next.11 → 2.0.0-next.13

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.
@@ -1578,6 +1578,31 @@ export interface OrganizationOwnerDto {
1578
1578
  /** @nullable */
1579
1579
  phone: string | null;
1580
1580
  }
1581
+ export interface OrganizationPaymentMethodDto {
1582
+ /** The tenant's code for the method, e.g. `manual_invoice` or `stripe_card`. */
1583
+ code: string;
1584
+ /** The method's name, as the tenant labels it. */
1585
+ displayName: string;
1586
+ /** True when invoices are charged automatically (a card), false when the customer pays an invoice they receive. */
1587
+ isAutoChargeable: boolean;
1588
+ }
1589
+ export interface OrganizationContractSummaryDto {
1590
+ /**
1591
+ * The binding plan the contract is on. null for a contract that names no plan (older contracts carry only `bindingType`).
1592
+ * @nullable
1593
+ */
1594
+ bindingPlanId: string | null;
1595
+ /**
1596
+ * The binding plan's code.
1597
+ * @nullable
1598
+ */
1599
+ bindingType: string | null;
1600
+ /**
1601
+ * The binding plan's name. null when the contract names no plan.
1602
+ * @nullable
1603
+ */
1604
+ name: string | null;
1605
+ }
1581
1606
  export type OrganizationListItemDtoType = typeof OrganizationListItemDtoType[keyof typeof OrganizationListItemDtoType];
1582
1607
  export declare const OrganizationListItemDtoType: {
1583
1608
  readonly business: "business";
@@ -1640,6 +1665,36 @@ export interface OrganizationListItemDto {
1640
1665
  * @nullable
1641
1666
  */
1642
1667
  invoiceRecipientEmail: string | null;
1668
+ /**
1669
+ * The customer's orders (jobs), every status: the `total` of `GET /v1/orders?organizationId=…`. null for a caller without `order:read` (org-billing).
1670
+ * @nullable
1671
+ */
1672
+ ordersCount: number | null;
1673
+ /**
1674
+ * The customer's orders not yet in a final status (completed, cancelled or failed): the orders that keep a customer from being deleted. `openOrdersCount > 0` is a customer with active orders. null for a caller without `order:read`.
1675
+ * @nullable
1676
+ */
1677
+ openOrdersCount: number | null;
1678
+ /**
1679
+ * When the customer's newest order was created, the time the orders list sorts by. null when the customer has no orders, and for a caller without `order:read` (`ordersCount` is then null too).
1680
+ * @nullable
1681
+ */
1682
+ lastOrderAt: string | null;
1683
+ /**
1684
+ * Units of the customer's goods in storage: the `units` of `GET /v1/products/stats?organizationId=…&status=IN_STORAGE`, the number the customer profile shows. Goods awaiting disposal are not counted, so a customer at 0 can still be refused deletion for goods on the shelf. null for a caller without `product:read` (org-billing).
1685
+ * @nullable
1686
+ */
1687
+ inStorageUnits: number | null;
1688
+ /**
1689
+ * How the customer pays: their billing account's payment method, else the tenant's default. null when the customer has no billing account or the tenant no default, and for a caller without `billingaccount:read`.
1690
+ * @nullable
1691
+ */
1692
+ paymentMethod: OrganizationPaymentMethodDto | null;
1693
+ /**
1694
+ * The customer's active contract (binding), as `GET /v1/organizations/:id/contract` returns it. null when none is active, and for a caller without `organizationcontract:read` (tenant-admin and operations-manager hold it).
1695
+ * @nullable
1696
+ */
1697
+ contract: OrganizationContractSummaryDto | null;
1643
1698
  }
1644
1699
  export interface PaginatedOrganizationsDto {
1645
1700
  /** The page of rows. */
@@ -11390,6 +11445,11 @@ export interface ExportedProfileDto {
11390
11445
  deletedAt: string | null;
11391
11446
  /** @nullable */
11392
11447
  forgottenAt: string | null;
11448
+ /**
11449
+ * The personnummer, null when none is held. Absent when `notIncluded` lists `personal_identity_number`: the tenant has no credential to read it with.
11450
+ * @nullable
11451
+ */
11452
+ personalIdentityNumber?: string | null;
11393
11453
  }
11394
11454
  export interface ExportedMembershipDto {
11395
11455
  organizationId: string;
@@ -11595,7 +11655,7 @@ export interface ExportedBillingDto {
11595
11655
  couponRedemptions: ExportedBillingDtoCouponRedemptionsItem[];
11596
11656
  }
11597
11657
  /**
11598
- * The `public.organization` row.
11658
+ * The `public.organization` row. Its `personalIdentityNumber` is absent when `notIncluded` lists `personal_identity_number`.
11599
11659
  * @nullable
11600
11660
  */
11601
11661
  export type ExportedPersonalOrganizationDtoOrganization = {
@@ -11609,7 +11669,7 @@ export type ExportedPersonalOrganizationDtoAddressesItem = {
11609
11669
  };
11610
11670
  export interface ExportedPersonalOrganizationDto {
11611
11671
  /**
11612
- * The `public.organization` row.
11672
+ * The `public.organization` row. Its `personalIdentityNumber` is absent when `notIncluded` lists `personal_identity_number`.
11613
11673
  * @nullable
11614
11674
  */
11615
11675
  organization: ExportedPersonalOrganizationDtoOrganization;
@@ -11652,7 +11712,7 @@ export interface ExportUserDataResultDto {
11652
11712
  /** One entry per personal organization of the target's. Empty for a person with none, such as a staff member. */
11653
11713
  personalOrganizations: ExportedPersonalOrganizationDto[];
11654
11714
  messaging: ExportedMessagingDto;
11655
- /** Personal data categories this export does NOT include: the `personal_identity_number` columns (the RUT identity numbers on carts and orders are included), audit history, the records business organizations hold about the target, and the notes staff write for staff. Staff identifiers are left out too: they are other people's data. */
11715
+ /** Personal data categories this export does NOT include: audit history, the records business organizations hold about the target, and the notes staff write for staff. Staff identifiers are left out too: they are other people's data. `personal_identity_number` is listed when the tenant has no credential to read the personnummer on the profile and the personal organizations; the billing accounts' and invoices' are included either way, as are the RUT identity numbers on carts and orders. */
11656
11716
  notIncluded: string[];
11657
11717
  }
11658
11718
  export type EmployeeAssignmentDtoKind = typeof EmployeeAssignmentDtoKind[keyof typeof EmployeeAssignmentDtoKind];
@@ -14936,6 +14996,11 @@ export type OrganizationsControllerListV1Params = {
14936
14996
  * Filter by the organization's preferred warehouse (`preferredWarehouseId`), not by where its goods are stored.
14937
14997
  */
14938
14998
  warehouseId?: string;
14999
+ /**
15000
+ * Filter by how the customer pays: the code of their billing account's payment method, else the tenant's default (as `paymentMethod.code` on each row). A customer with no billing account never matches. Requires `billingaccount:read`: anyone else is refused with 403 `payment_method_filter_requires_billing_account_read`.
15001
+ * @pattern ^[a-z0-9_]{1,64}$
15002
+ */
15003
+ paymentMethod?: string;
14939
15004
  /**
14940
15005
  * Sort key. Rows that tie on it are ordered by organization id, in the same direction.
14941
15006
  */
@@ -14998,6 +15063,11 @@ export type OrganizationsControllerStatsV1Params = {
14998
15063
  * Filter by the organization's preferred warehouse (`preferredWarehouseId`), not by where its goods are stored.
14999
15064
  */
15000
15065
  warehouseId?: string;
15066
+ /**
15067
+ * Filter by how the customer pays: the code of their billing account's payment method, else the tenant's default (as `paymentMethod.code` on each row). A customer with no billing account never matches. Requires `billingaccount:read`: anyone else is refused with 403 `payment_method_filter_requires_billing_account_read`.
15068
+ * @pattern ^[a-z0-9_]{1,64}$
15069
+ */
15070
+ paymentMethod?: string;
15001
15071
  };
15002
15072
  export type OrganizationsControllerStatsV1Type = typeof OrganizationsControllerStatsV1Type[keyof typeof OrganizationsControllerStatsV1Type];
15003
15073
  export declare const OrganizationsControllerStatsV1Type: {