@vindentech/api-client 0.3.0-next.12 → 0.3.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.
- package/dist/generated/_all.d.ts +3 -0
- package/dist/generated/_all.d.ts.map +1 -1
- package/dist/generated/_all.js +3 -0
- package/dist/generated/_all.js.map +1 -1
- package/dist/generated/_permissions.d.ts +52 -1
- package/dist/generated/_permissions.d.ts.map +1 -1
- package/dist/generated/_permissions.js +13 -0
- package/dist/generated/_permissions.js.map +1 -1
- package/dist/generated/employee-assignments/employee-assignments.d.ts +127 -0
- package/dist/generated/employee-assignments/employee-assignments.d.ts.map +1 -0
- package/dist/generated/employee-assignments/employee-assignments.js +61 -0
- package/dist/generated/employee-assignments/employee-assignments.js.map +1 -0
- package/dist/generated/index.schemas.d.ts +317 -1
- package/dist/generated/index.schemas.d.ts.map +1 -1
- package/dist/generated/index.schemas.js +82 -0
- package/dist/generated/index.schemas.js.map +1 -1
- package/dist/generated/me/me.d.ts +30 -1
- package/dist/generated/me/me.d.ts.map +1 -1
- package/dist/generated/me/me.js +11 -0
- package/dist/generated/me/me.js.map +1 -1
- package/dist/generated/organization-members/organization-members.d.ts +134 -0
- package/dist/generated/organization-members/organization-members.d.ts.map +1 -0
- package/dist/generated/organization-members/organization-members.js +51 -0
- package/dist/generated/organization-members/organization-members.js.map +1 -0
- package/dist/generated/users/users.d.ts +59 -0
- package/dist/generated/users/users.d.ts.map +1 -0
- package/dist/generated/users/users.js +24 -0
- package/dist/generated/users/users.js.map +1 -0
- package/package.json +1 -1
|
@@ -987,6 +987,83 @@ export interface UpdateOrganizationDto {
|
|
|
987
987
|
preferredWarehouseId?: string;
|
|
988
988
|
metadata?: UpdateOrganizationDtoMetadata;
|
|
989
989
|
}
|
|
990
|
+
export interface OrganizationMemberDto {
|
|
991
|
+
/** Keycloak subject of the member. Within one organization this identifies the membership — it is the `memberId` path segment on the member routes. */
|
|
992
|
+
sub: string;
|
|
993
|
+
organizationId: string;
|
|
994
|
+
/** Role the user holds in this organization. New memberships carry one of the organization roles; rows bootstrapped by `/v1/me` can carry any client role the token held. */
|
|
995
|
+
role: string;
|
|
996
|
+
/** When the membership was created (organization_member.created_at). */
|
|
997
|
+
joinedAt: string;
|
|
998
|
+
/**
|
|
999
|
+
* From the member's user_profile row — null until their first `/v1/me` call creates it (an invited user has no profile yet).
|
|
1000
|
+
* @nullable
|
|
1001
|
+
*/
|
|
1002
|
+
displayName: string | null;
|
|
1003
|
+
/**
|
|
1004
|
+
* From the member's user_profile row — null until their first `/v1/me` call creates it.
|
|
1005
|
+
* @nullable
|
|
1006
|
+
*/
|
|
1007
|
+
email: string | null;
|
|
1008
|
+
}
|
|
1009
|
+
export type AddMemberDtoRole = typeof AddMemberDtoRole[keyof typeof AddMemberDtoRole];
|
|
1010
|
+
export declare const AddMemberDtoRole: {
|
|
1011
|
+
readonly 'org-admin': "org-admin";
|
|
1012
|
+
readonly 'org-orders': "org-orders";
|
|
1013
|
+
readonly 'org-billing': "org-billing";
|
|
1014
|
+
readonly 'org-viewer': "org-viewer";
|
|
1015
|
+
readonly owner: "owner";
|
|
1016
|
+
readonly member: "member";
|
|
1017
|
+
};
|
|
1018
|
+
export interface AddMemberDto {
|
|
1019
|
+
/** Keycloak subject of an EXISTING user to bind to this organization. Mutually exclusive with `email`. */
|
|
1020
|
+
userSub?: string;
|
|
1021
|
+
/** Email address to invite. An existing realm user with this address is bound; otherwise a disabled-until-activated user is created and emailed an invite link. Mutually exclusive with `userSub`. */
|
|
1022
|
+
email?: string;
|
|
1023
|
+
role: AddMemberDtoRole;
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
* Outcome of the best-effort Keycloak push made after the database commit. `synced` — the Keycloak side was updated by this call. `failed` — the push was attempted and failed; the database change stands, and re-running the command re-attempts the push. `not_configured` — no push was attempted because no Keycloak sync client is provisioned for the tenant.
|
|
1027
|
+
*/
|
|
1028
|
+
export type OrganizationMemberSyncResultDtoKeycloakSyncStatus = typeof OrganizationMemberSyncResultDtoKeycloakSyncStatus[keyof typeof OrganizationMemberSyncResultDtoKeycloakSyncStatus];
|
|
1029
|
+
export declare const OrganizationMemberSyncResultDtoKeycloakSyncStatus: {
|
|
1030
|
+
readonly synced: "synced";
|
|
1031
|
+
readonly failed: "failed";
|
|
1032
|
+
readonly not_configured: "not_configured";
|
|
1033
|
+
};
|
|
1034
|
+
export interface OrganizationMemberSyncResultDto {
|
|
1035
|
+
/** Keycloak subject of the member. Within one organization this identifies the membership — it is the `memberId` path segment on the member routes. */
|
|
1036
|
+
sub: string;
|
|
1037
|
+
organizationId: string;
|
|
1038
|
+
/** Role the user holds in this organization. New memberships carry one of the organization roles; rows bootstrapped by `/v1/me` can carry any client role the token held. */
|
|
1039
|
+
role: string;
|
|
1040
|
+
/** When the membership was created (organization_member.created_at). */
|
|
1041
|
+
joinedAt: string;
|
|
1042
|
+
/**
|
|
1043
|
+
* From the member's user_profile row — null until their first `/v1/me` call creates it (an invited user has no profile yet).
|
|
1044
|
+
* @nullable
|
|
1045
|
+
*/
|
|
1046
|
+
displayName: string | null;
|
|
1047
|
+
/**
|
|
1048
|
+
* From the member's user_profile row — null until their first `/v1/me` call creates it.
|
|
1049
|
+
* @nullable
|
|
1050
|
+
*/
|
|
1051
|
+
email: string | null;
|
|
1052
|
+
/** Outcome of the best-effort Keycloak push made after the database commit. `synced` — the Keycloak side was updated by this call. `failed` — the push was attempted and failed; the database change stands, and re-running the command re-attempts the push. `not_configured` — no push was attempted because no Keycloak sync client is provisioned for the tenant. */
|
|
1053
|
+
keycloakSyncStatus: OrganizationMemberSyncResultDtoKeycloakSyncStatus;
|
|
1054
|
+
}
|
|
1055
|
+
export type UpdateMemberDtoRole = typeof UpdateMemberDtoRole[keyof typeof UpdateMemberDtoRole];
|
|
1056
|
+
export declare const UpdateMemberDtoRole: {
|
|
1057
|
+
readonly 'org-admin': "org-admin";
|
|
1058
|
+
readonly 'org-orders': "org-orders";
|
|
1059
|
+
readonly 'org-billing': "org-billing";
|
|
1060
|
+
readonly 'org-viewer': "org-viewer";
|
|
1061
|
+
readonly owner: "owner";
|
|
1062
|
+
readonly member: "member";
|
|
1063
|
+
};
|
|
1064
|
+
export interface UpdateMemberDto {
|
|
1065
|
+
role?: UpdateMemberDtoRole;
|
|
1066
|
+
}
|
|
990
1067
|
export type OrganizationSettingDtoServiceType = typeof OrganizationSettingDtoServiceType[keyof typeof OrganizationSettingDtoServiceType];
|
|
991
1068
|
export declare const OrganizationSettingDtoServiceType: {
|
|
992
1069
|
readonly STORAGE: "STORAGE";
|
|
@@ -1380,6 +1457,13 @@ export interface AssignmentDto {
|
|
|
1380
1457
|
role: string;
|
|
1381
1458
|
active: boolean;
|
|
1382
1459
|
}
|
|
1460
|
+
/**
|
|
1461
|
+
* Opaque per-user preferences object (0079); null when unset.
|
|
1462
|
+
* @nullable
|
|
1463
|
+
*/
|
|
1464
|
+
export type MeResponseDtoPreferences = {
|
|
1465
|
+
[key: string]: unknown;
|
|
1466
|
+
} | null;
|
|
1383
1467
|
export interface MeResponseDto {
|
|
1384
1468
|
/** Keycloak subject identifier */
|
|
1385
1469
|
sub: string;
|
|
@@ -1397,6 +1481,16 @@ export interface MeResponseDto {
|
|
|
1397
1481
|
email: string | null;
|
|
1398
1482
|
/** @nullable */
|
|
1399
1483
|
displayName: string | null;
|
|
1484
|
+
/**
|
|
1485
|
+
* Self-editable contact number (0079).
|
|
1486
|
+
* @nullable
|
|
1487
|
+
*/
|
|
1488
|
+
phone: string | null;
|
|
1489
|
+
/**
|
|
1490
|
+
* Opaque per-user preferences object (0079); null when unset.
|
|
1491
|
+
* @nullable
|
|
1492
|
+
*/
|
|
1493
|
+
preferences: MeResponseDtoPreferences;
|
|
1400
1494
|
memberships: MembershipDto[];
|
|
1401
1495
|
/** Cross-cutting permissions (resource:action) from platform/tenant-wide/warehouse/carrier roles for the active context — drives client-side component visibility. Org-scoped permissions are on each membership. */
|
|
1402
1496
|
capabilities: string[];
|
|
@@ -1410,8 +1504,31 @@ export interface MeResponseDto {
|
|
|
1410
1504
|
/** Long-form staff assignments (own rows only) from employee_assignment — the authoritative warehouse/carrier reach behind the warehouseIds/carrierId summary. */
|
|
1411
1505
|
assignments: AssignmentDto[];
|
|
1412
1506
|
}
|
|
1507
|
+
/**
|
|
1508
|
+
* Opaque per-user preferences object (JSON object, ≤ 16 KB serialized); null clears it.
|
|
1509
|
+
* @nullable
|
|
1510
|
+
*/
|
|
1511
|
+
export type UpdateMeDtoPreferences = {
|
|
1512
|
+
[key: string]: unknown;
|
|
1513
|
+
} | null;
|
|
1413
1514
|
export interface UpdateMeDto {
|
|
1414
|
-
|
|
1515
|
+
/** @nullable */
|
|
1516
|
+
displayName?: string | null;
|
|
1517
|
+
/**
|
|
1518
|
+
* Self-editable contact number; null clears it.
|
|
1519
|
+
* @maxLength 50
|
|
1520
|
+
* @nullable
|
|
1521
|
+
*/
|
|
1522
|
+
phone?: string | null;
|
|
1523
|
+
/**
|
|
1524
|
+
* Opaque per-user preferences object (JSON object, ≤ 16 KB serialized); null clears it.
|
|
1525
|
+
* @nullable
|
|
1526
|
+
*/
|
|
1527
|
+
preferences?: UpdateMeDtoPreferences;
|
|
1528
|
+
}
|
|
1529
|
+
export interface UpdateIdentityNumberDto {
|
|
1530
|
+
/** Swedish personal identity number — YYMMDDNNNN, YYMMDD-NNNN, YYMMDD+NNNN, YYYYMMDDNNNN or YYYYMMDD-NNNN, with a valid Luhn check digit. Stored digits-only. Never returned by any endpoint. */
|
|
1531
|
+
personalIdentityNumber: string;
|
|
1415
1532
|
}
|
|
1416
1533
|
export interface AnonymousSessionDto {
|
|
1417
1534
|
/** Opaque bearer token for the anonymous session. Send it as the X-Session-Token header on guest-capable endpoints. Shown once — it is stored only as a hash. */
|
|
@@ -6714,6 +6831,177 @@ export interface BillableEventsWebhookAckDto {
|
|
|
6714
6831
|
/** Events rejected before enqueue, with a reason (e.g. unknown event_type). */
|
|
6715
6832
|
skipped: BillableEventsWebhookAckDtoSkippedItem[];
|
|
6716
6833
|
}
|
|
6834
|
+
export interface DeactivateUserDto {
|
|
6835
|
+
/**
|
|
6836
|
+
* Optional free-text reason, recorded on the admin_action audit row.
|
|
6837
|
+
* @maxLength 2000
|
|
6838
|
+
*/
|
|
6839
|
+
reason?: string;
|
|
6840
|
+
}
|
|
6841
|
+
/**
|
|
6842
|
+
* Outcome of the best-effort Keycloak push made after the database commit. `synced` — the Keycloak side was updated by this call. `failed` — the push was attempted and failed; the database change stands, and re-running the command re-attempts the push. `not_configured` — no push was attempted because no Keycloak sync client is provisioned for the tenant.
|
|
6843
|
+
*/
|
|
6844
|
+
export type DeactivateUserResultDtoKeycloakSyncStatus = typeof DeactivateUserResultDtoKeycloakSyncStatus[keyof typeof DeactivateUserResultDtoKeycloakSyncStatus];
|
|
6845
|
+
export declare const DeactivateUserResultDtoKeycloakSyncStatus: {
|
|
6846
|
+
readonly synced: "synced";
|
|
6847
|
+
readonly failed: "failed";
|
|
6848
|
+
readonly not_configured: "not_configured";
|
|
6849
|
+
};
|
|
6850
|
+
export interface DeactivateUserResultDto {
|
|
6851
|
+
/** The deactivated user's Keycloak subject. */
|
|
6852
|
+
sub: string;
|
|
6853
|
+
/** When the account was tombstoned. */
|
|
6854
|
+
deactivatedAt: string;
|
|
6855
|
+
/** Outcome of the best-effort Keycloak push made after the database commit. `synced` — the Keycloak side was updated by this call. `failed` — the push was attempted and failed; the database change stands, and re-running the command re-attempts the push. `not_configured` — no push was attempted because no Keycloak sync client is provisioned for the tenant. */
|
|
6856
|
+
keycloakSyncStatus: DeactivateUserResultDtoKeycloakSyncStatus;
|
|
6857
|
+
/** True when this call replayed a prior deactivation (same Idempotency-Key, or an already-deactivated target) with no new mutation. */
|
|
6858
|
+
idempotent: boolean;
|
|
6859
|
+
}
|
|
6860
|
+
export interface ForgetUserDto {
|
|
6861
|
+
/**
|
|
6862
|
+
* Required free-text reason for the erasure, recorded on the admin_action audit row.
|
|
6863
|
+
* @maxLength 2000
|
|
6864
|
+
*/
|
|
6865
|
+
reason: string;
|
|
6866
|
+
}
|
|
6867
|
+
/**
|
|
6868
|
+
* Outcome of the best-effort Keycloak push made after the database commit. `synced` — the Keycloak side was updated by this call. `failed` — the push was attempted and failed; the database change stands, and re-running the command re-attempts the push. `not_configured` — no push was attempted because no Keycloak sync client is provisioned for the tenant.
|
|
6869
|
+
*/
|
|
6870
|
+
export type ForgetUserResultDtoKeycloakSyncStatus = typeof ForgetUserResultDtoKeycloakSyncStatus[keyof typeof ForgetUserResultDtoKeycloakSyncStatus];
|
|
6871
|
+
export declare const ForgetUserResultDtoKeycloakSyncStatus: {
|
|
6872
|
+
readonly synced: "synced";
|
|
6873
|
+
readonly failed: "failed";
|
|
6874
|
+
readonly not_configured: "not_configured";
|
|
6875
|
+
};
|
|
6876
|
+
export interface ForgetUserResultDto {
|
|
6877
|
+
/** The forgotten user's Keycloak subject. */
|
|
6878
|
+
sub: string;
|
|
6879
|
+
/** When the erasure scrub completed (user_profile.forgotten_at). */
|
|
6880
|
+
forgottenAt: string;
|
|
6881
|
+
/** Outcome of the best-effort Keycloak push made after the database commit. `synced` — the Keycloak side was updated by this call. `failed` — the push was attempted and failed; the database change stands, and re-running the command re-attempts the push. `not_configured` — no push was attempted because no Keycloak sync client is provisioned for the tenant. */
|
|
6882
|
+
keycloakSyncStatus: ForgetUserResultDtoKeycloakSyncStatus;
|
|
6883
|
+
/** True when this call replayed a prior forget (same Idempotency-Key, or an already-forgotten target) with no new mutation. */
|
|
6884
|
+
idempotent: boolean;
|
|
6885
|
+
}
|
|
6886
|
+
export type EmployeeAssignmentDtoKind = typeof EmployeeAssignmentDtoKind[keyof typeof EmployeeAssignmentDtoKind];
|
|
6887
|
+
export declare const EmployeeAssignmentDtoKind: {
|
|
6888
|
+
readonly warehouse: "warehouse";
|
|
6889
|
+
readonly carrier: "carrier";
|
|
6890
|
+
readonly tenant_wide: "tenant_wide";
|
|
6891
|
+
};
|
|
6892
|
+
export interface EmployeeAssignmentDto {
|
|
6893
|
+
employeeAssignmentId: string;
|
|
6894
|
+
/** Keycloak subject of the assigned staff member. */
|
|
6895
|
+
userSub: string;
|
|
6896
|
+
kind: EmployeeAssignmentDtoKind;
|
|
6897
|
+
/**
|
|
6898
|
+
* Set for `kind=warehouse`, null otherwise.
|
|
6899
|
+
* @nullable
|
|
6900
|
+
*/
|
|
6901
|
+
warehouseId: string | null;
|
|
6902
|
+
/**
|
|
6903
|
+
* The `tenant_carrier` this assignment scopes to. Set for `kind=carrier`, null otherwise.
|
|
6904
|
+
* @nullable
|
|
6905
|
+
*/
|
|
6906
|
+
tenantCarrierId: string | null;
|
|
6907
|
+
/** Staff role the assignment grants. Rows created here carry one of the assignment roles; rows imported or seeded elsewhere can carry any client role. */
|
|
6908
|
+
role: string;
|
|
6909
|
+
/** False once the assignment has been offboarded. Only active assignments contribute to the Keycloak claims. */
|
|
6910
|
+
active: boolean;
|
|
6911
|
+
/** @nullable */
|
|
6912
|
+
startedAt: string | null;
|
|
6913
|
+
/** @nullable */
|
|
6914
|
+
endedAt: string | null;
|
|
6915
|
+
}
|
|
6916
|
+
export type CreateEmployeeAssignmentDtoKind = typeof CreateEmployeeAssignmentDtoKind[keyof typeof CreateEmployeeAssignmentDtoKind];
|
|
6917
|
+
export declare const CreateEmployeeAssignmentDtoKind: {
|
|
6918
|
+
readonly warehouse: "warehouse";
|
|
6919
|
+
readonly carrier: "carrier";
|
|
6920
|
+
readonly tenant_wide: "tenant_wide";
|
|
6921
|
+
};
|
|
6922
|
+
export type CreateEmployeeAssignmentDtoRole = typeof CreateEmployeeAssignmentDtoRole[keyof typeof CreateEmployeeAssignmentDtoRole];
|
|
6923
|
+
export declare const CreateEmployeeAssignmentDtoRole: {
|
|
6924
|
+
readonly 'operations-manager': "operations-manager";
|
|
6925
|
+
readonly 'warehouse-admin': "warehouse-admin";
|
|
6926
|
+
readonly 'warehouse-operator': "warehouse-operator";
|
|
6927
|
+
readonly 'carrier-admin': "carrier-admin";
|
|
6928
|
+
readonly 'carrier-driver': "carrier-driver";
|
|
6929
|
+
};
|
|
6930
|
+
export interface CreateEmployeeAssignmentDto {
|
|
6931
|
+
/** Keycloak subject of the staff member to hire. They must already exist as a user (their `user_profile` row is created by their first `/v1/me` call). */
|
|
6932
|
+
userSub: string;
|
|
6933
|
+
kind: CreateEmployeeAssignmentDtoKind;
|
|
6934
|
+
role: CreateEmployeeAssignmentDtoRole;
|
|
6935
|
+
/** Required for `kind=warehouse`, rejected for any other kind. */
|
|
6936
|
+
warehouseId?: string;
|
|
6937
|
+
/** Required for `kind=carrier` (drivers are `kind=carrier`), rejected for any other kind. */
|
|
6938
|
+
tenantCarrierId?: string;
|
|
6939
|
+
/** First day of the assignment; defaults to today. */
|
|
6940
|
+
startedAt?: string;
|
|
6941
|
+
}
|
|
6942
|
+
export type EmployeeAssignmentSyncResultDtoKind = typeof EmployeeAssignmentSyncResultDtoKind[keyof typeof EmployeeAssignmentSyncResultDtoKind];
|
|
6943
|
+
export declare const EmployeeAssignmentSyncResultDtoKind: {
|
|
6944
|
+
readonly warehouse: "warehouse";
|
|
6945
|
+
readonly carrier: "carrier";
|
|
6946
|
+
readonly tenant_wide: "tenant_wide";
|
|
6947
|
+
};
|
|
6948
|
+
/**
|
|
6949
|
+
* Outcome of the best-effort Keycloak push made after the database commit. `synced` — the Keycloak side was updated by this call. `failed` — the push was attempted and failed; the database change stands, and re-running the command re-attempts the push. `not_configured` — no push was attempted because no Keycloak sync client is provisioned for the tenant.
|
|
6950
|
+
*/
|
|
6951
|
+
export type EmployeeAssignmentSyncResultDtoKeycloakSyncStatus = typeof EmployeeAssignmentSyncResultDtoKeycloakSyncStatus[keyof typeof EmployeeAssignmentSyncResultDtoKeycloakSyncStatus];
|
|
6952
|
+
export declare const EmployeeAssignmentSyncResultDtoKeycloakSyncStatus: {
|
|
6953
|
+
readonly synced: "synced";
|
|
6954
|
+
readonly failed: "failed";
|
|
6955
|
+
readonly not_configured: "not_configured";
|
|
6956
|
+
};
|
|
6957
|
+
export interface EmployeeAssignmentSyncResultDto {
|
|
6958
|
+
employeeAssignmentId: string;
|
|
6959
|
+
/** Keycloak subject of the assigned staff member. */
|
|
6960
|
+
userSub: string;
|
|
6961
|
+
kind: EmployeeAssignmentSyncResultDtoKind;
|
|
6962
|
+
/**
|
|
6963
|
+
* Set for `kind=warehouse`, null otherwise.
|
|
6964
|
+
* @nullable
|
|
6965
|
+
*/
|
|
6966
|
+
warehouseId: string | null;
|
|
6967
|
+
/**
|
|
6968
|
+
* The `tenant_carrier` this assignment scopes to. Set for `kind=carrier`, null otherwise.
|
|
6969
|
+
* @nullable
|
|
6970
|
+
*/
|
|
6971
|
+
tenantCarrierId: string | null;
|
|
6972
|
+
/** Staff role the assignment grants. Rows created here carry one of the assignment roles; rows imported or seeded elsewhere can carry any client role. */
|
|
6973
|
+
role: string;
|
|
6974
|
+
/** False once the assignment has been offboarded. Only active assignments contribute to the Keycloak claims. */
|
|
6975
|
+
active: boolean;
|
|
6976
|
+
/** @nullable */
|
|
6977
|
+
startedAt: string | null;
|
|
6978
|
+
/** @nullable */
|
|
6979
|
+
endedAt: string | null;
|
|
6980
|
+
/** Outcome of the best-effort Keycloak push made after the database commit. `synced` — the Keycloak side was updated by this call. `failed` — the push was attempted and failed; the database change stands, and re-running the command re-attempts the push. `not_configured` — no push was attempted because no Keycloak sync client is provisioned for the tenant. */
|
|
6981
|
+
keycloakSyncStatus: EmployeeAssignmentSyncResultDtoKeycloakSyncStatus;
|
|
6982
|
+
}
|
|
6983
|
+
export type UpdateEmployeeAssignmentDtoRole = typeof UpdateEmployeeAssignmentDtoRole[keyof typeof UpdateEmployeeAssignmentDtoRole];
|
|
6984
|
+
export declare const UpdateEmployeeAssignmentDtoRole: {
|
|
6985
|
+
readonly 'operations-manager': "operations-manager";
|
|
6986
|
+
readonly 'warehouse-admin': "warehouse-admin";
|
|
6987
|
+
readonly 'warehouse-operator': "warehouse-operator";
|
|
6988
|
+
readonly 'carrier-admin': "carrier-admin";
|
|
6989
|
+
readonly 'carrier-driver': "carrier-driver";
|
|
6990
|
+
};
|
|
6991
|
+
export interface UpdateEmployeeAssignmentDto {
|
|
6992
|
+
role?: UpdateEmployeeAssignmentDtoRole;
|
|
6993
|
+
/** Move a `kind=warehouse` assignment to another warehouse. */
|
|
6994
|
+
warehouseId?: string;
|
|
6995
|
+
/** Move a `kind=carrier` assignment to another carrier. */
|
|
6996
|
+
tenantCarrierId?: string;
|
|
6997
|
+
startedAt?: string;
|
|
6998
|
+
}
|
|
6999
|
+
export interface OffboardEmployeeDto {
|
|
7000
|
+
/** Last day of the assignment; defaults to today. */
|
|
7001
|
+
endedAt?: string;
|
|
7002
|
+
/** Free-text reason, recorded in the service log for ops follow-up. `employee_assignment` has no column for it, so it is not stored on the row or echoed back. */
|
|
7003
|
+
reason?: string;
|
|
7004
|
+
}
|
|
6717
7005
|
export type OrdersControllerListV1Params = {
|
|
6718
7006
|
/**
|
|
6719
7007
|
* Max rows to return (1–100).
|
|
@@ -7665,4 +7953,32 @@ export type PricingRulesControllerListPricingRulesV1Params = {
|
|
|
7665
7953
|
*/
|
|
7666
7954
|
offset?: number;
|
|
7667
7955
|
};
|
|
7956
|
+
export type EmployeeAssignmentsControllerListV1Params = {
|
|
7957
|
+
/**
|
|
7958
|
+
* Filter by scope family.
|
|
7959
|
+
*/
|
|
7960
|
+
kind?: EmployeeAssignmentsControllerListV1Kind;
|
|
7961
|
+
/**
|
|
7962
|
+
* Filter to one warehouse's staff.
|
|
7963
|
+
*/
|
|
7964
|
+
warehouseId?: string;
|
|
7965
|
+
/**
|
|
7966
|
+
* Filter to one carrier's staff (matches `tenantCarrierId`).
|
|
7967
|
+
*/
|
|
7968
|
+
carrierId?: string;
|
|
7969
|
+
/**
|
|
7970
|
+
* Filter by active state; omit for both.
|
|
7971
|
+
*/
|
|
7972
|
+
active?: boolean;
|
|
7973
|
+
/**
|
|
7974
|
+
* Filter to one staff member's assignments.
|
|
7975
|
+
*/
|
|
7976
|
+
userSub?: string;
|
|
7977
|
+
};
|
|
7978
|
+
export type EmployeeAssignmentsControllerListV1Kind = typeof EmployeeAssignmentsControllerListV1Kind[keyof typeof EmployeeAssignmentsControllerListV1Kind];
|
|
7979
|
+
export declare const EmployeeAssignmentsControllerListV1Kind: {
|
|
7980
|
+
readonly warehouse: "warehouse";
|
|
7981
|
+
readonly carrier: "carrier";
|
|
7982
|
+
readonly tenant_wide: "tenant_wide";
|
|
7983
|
+
};
|
|
7668
7984
|
//# sourceMappingURL=index.schemas.d.ts.map
|