@ignos/api-client 20260608.148.1 → 20260612.150.1-alpha

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.
@@ -11,14 +11,18 @@ export class AuthorizedApiBase {
11
11
  return options;
12
12
  };
13
13
  this.jsonParseReviver = (_, value) => {
14
- // Matches starts with "2025-12-09T13:19:39"
15
- // Will also match "2025-12-09T13:19:39.4576289+00:00"
16
14
  if (typeof value !== "string")
17
15
  return value;
16
+ // Matches starts with "2025-12-09T13:19:39"
17
+ // Will also match "2025-12-09T13:19:39.4576289+00:00"
18
18
  const regex = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/;
19
19
  if (!regex.test(value))
20
20
  return value;
21
- const date = new Date(value);
21
+ // JS Date only supports millisecond precision (3 fractional digits).
22
+ // Timestamps with microseconds or higher (e.g. ".4576289") produce Invalid Date.
23
+ // Truncate any excess fractional digits before parsing.
24
+ const normalized = value.replace(/(\.\d{3})\d+/, "$1");
25
+ const date = new Date(normalized);
22
26
  // Prevent values like "2025-12-09T13:19:39.4576289+00:00 bla bla bla" from being parsed as Date
23
27
  // (values not starting with an ISO date-time are already filtered out by the regex above)
24
28
  return isNaN(date.getTime()) ? value : date;
@@ -127,6 +127,7 @@ export declare class CustomersClient extends AuthorizedApiBase implements ICusto
127
127
  }
128
128
  export interface IGuestsClient {
129
129
  getGuestLoginInfo(search: string | undefined): Promise<GuestLoginInfoDto>;
130
+ getSupplierLoginInfo(search: string | undefined): Promise<GuestLoginInfoDto>;
130
131
  }
131
132
  export declare class GuestsClient extends AuthorizedApiBase implements IGuestsClient {
132
133
  private http;
@@ -136,6 +137,8 @@ export declare class GuestsClient extends AuthorizedApiBase implements IGuestsCl
136
137
  });
137
138
  getGuestLoginInfo(search: string | undefined): Promise<GuestLoginInfoDto>;
138
139
  protected processGetGuestLoginInfo(response: Response): Promise<GuestLoginInfoDto>;
140
+ getSupplierLoginInfo(search: string | undefined): Promise<GuestLoginInfoDto>;
141
+ protected processGetSupplierLoginInfo(response: Response): Promise<GuestLoginInfoDto>;
139
142
  }
140
143
  export interface IPresentationClient {
141
144
  getComponentSettings(componentId: string): Promise<ComponentSettingsDto>;
@@ -1499,99 +1502,6 @@ export declare class DocumentTypesClient extends AuthorizedApiBase implements ID
1499
1502
  listDocumentGenerators(): Promise<DocumentGeneratorTypeDto[]>;
1500
1503
  protected processListDocumentGenerators(response: Response): Promise<DocumentGeneratorTypeDto[]>;
1501
1504
  }
1502
- export interface IExternalAccessClient {
1503
- listUsers(companyId: string | null | undefined): Promise<CompanyUserDto[]>;
1504
- createCompanyUser(request: CreateCompanyUserRequest): Promise<CompanyUserDto>;
1505
- updateCompanyUser(id: string, request: UpdateCompanyUserRequest): Promise<CompanyUserDto>;
1506
- deleteCompanyUser(id: string, companyId: string | null | undefined): Promise<void>;
1507
- listRoles(): Promise<ExternalRoleDto[]>;
1508
- listCompanyCustomers(): Promise<CompanyCustomerDto[]>;
1509
- deleteCompanyCustomer(tenantId: string): Promise<void>;
1510
- }
1511
- export declare class ExternalAccessClient extends AuthorizedApiBase implements IExternalAccessClient {
1512
- private http;
1513
- private baseUrl;
1514
- constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
1515
- fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
1516
- });
1517
- listUsers(companyId: string | null | undefined): Promise<CompanyUserDto[]>;
1518
- protected processListUsers(response: Response): Promise<CompanyUserDto[]>;
1519
- createCompanyUser(request: CreateCompanyUserRequest): Promise<CompanyUserDto>;
1520
- protected processCreateCompanyUser(response: Response): Promise<CompanyUserDto>;
1521
- updateCompanyUser(id: string, request: UpdateCompanyUserRequest): Promise<CompanyUserDto>;
1522
- protected processUpdateCompanyUser(response: Response): Promise<CompanyUserDto>;
1523
- deleteCompanyUser(id: string, companyId: string | null | undefined): Promise<void>;
1524
- protected processDeleteCompanyUser(response: Response): Promise<void>;
1525
- listRoles(): Promise<ExternalRoleDto[]>;
1526
- protected processListRoles(response: Response): Promise<ExternalRoleDto[]>;
1527
- listCompanyCustomers(): Promise<CompanyCustomerDto[]>;
1528
- protected processListCompanyCustomers(response: Response): Promise<CompanyCustomerDto[]>;
1529
- deleteCompanyCustomer(tenantId: string): Promise<void>;
1530
- protected processDeleteCompanyCustomer(response: Response): Promise<void>;
1531
- }
1532
- export interface IExternalClient {
1533
- listInvites(): Promise<InviteDto[]>;
1534
- acceptSupplierInvite(request: AcceptSupplierInviteRequest): Promise<CompanyDto>;
1535
- listCompanies(): Promise<CompanyDto[]>;
1536
- }
1537
- export declare class ExternalClient extends AuthorizedApiBase implements IExternalClient {
1538
- private http;
1539
- private baseUrl;
1540
- constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
1541
- fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
1542
- });
1543
- listInvites(): Promise<InviteDto[]>;
1544
- protected processListInvites(response: Response): Promise<InviteDto[]>;
1545
- acceptSupplierInvite(request: AcceptSupplierInviteRequest): Promise<CompanyDto>;
1546
- protected processAcceptSupplierInvite(response: Response): Promise<CompanyDto>;
1547
- listCompanies(): Promise<CompanyDto[]>;
1548
- protected processListCompanies(response: Response): Promise<CompanyDto[]>;
1549
- }
1550
- export interface ISuppliersClient {
1551
- listSupplierInvites(): Promise<SupplierInviteDto[]>;
1552
- createSupplierInvite(request: CreateSupplierInvite): Promise<SupplierInviteDto>;
1553
- deleteSupplierInvite(id: string): Promise<void>;
1554
- listSuppliers(): Promise<ExternalSupplierDto[]>;
1555
- deleteSupplier(id: string): Promise<void>;
1556
- importSupplier(importSupplier: ImportSupplier): Promise<ExternalSupplierDto>;
1557
- /**
1558
- * Creates a mapping between old supplier id and new supplier id.
1559
- */
1560
- createSupplierMapping(request: CreateSupplierMapping): Promise<void>;
1561
- /**
1562
- * Delete all supplier mappings between old supplier ids and new supplier ids.
1563
- */
1564
- deleteSupplierMappings(): Promise<void>;
1565
- }
1566
- export declare class SuppliersClient extends AuthorizedApiBase implements ISuppliersClient {
1567
- private http;
1568
- private baseUrl;
1569
- constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
1570
- fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
1571
- });
1572
- listSupplierInvites(): Promise<SupplierInviteDto[]>;
1573
- protected processListSupplierInvites(response: Response): Promise<SupplierInviteDto[]>;
1574
- createSupplierInvite(request: CreateSupplierInvite): Promise<SupplierInviteDto>;
1575
- protected processCreateSupplierInvite(response: Response): Promise<SupplierInviteDto>;
1576
- deleteSupplierInvite(id: string): Promise<void>;
1577
- protected processDeleteSupplierInvite(response: Response): Promise<void>;
1578
- listSuppliers(): Promise<ExternalSupplierDto[]>;
1579
- protected processListSuppliers(response: Response): Promise<ExternalSupplierDto[]>;
1580
- deleteSupplier(id: string): Promise<void>;
1581
- protected processDeleteSupplier(response: Response): Promise<void>;
1582
- importSupplier(importSupplier: ImportSupplier): Promise<ExternalSupplierDto>;
1583
- protected processImportSupplier(response: Response): Promise<ExternalSupplierDto>;
1584
- /**
1585
- * Creates a mapping between old supplier id and new supplier id.
1586
- */
1587
- createSupplierMapping(request: CreateSupplierMapping): Promise<void>;
1588
- protected processCreateSupplierMapping(response: Response): Promise<void>;
1589
- /**
1590
- * Delete all supplier mappings between old supplier ids and new supplier ids.
1591
- */
1592
- deleteSupplierMappings(): Promise<void>;
1593
- protected processDeleteSupplierMappings(response: Response): Promise<void>;
1594
- }
1595
1505
  export interface ICncFileTransferClient {
1596
1506
  startCncMachineOperationTransferToCloud(id: string): Promise<CncMachineTransferDto>;
1597
1507
  startCncMachineOperationTransferToMachine(id: string, request: TransferToMachineRequest | undefined): Promise<CncMachineTransferDto>;
@@ -2996,22 +2906,22 @@ export declare class MeasurementFormsInstancesAdminClient extends AuthorizedApiB
2996
2906
  protected processExportDimensionReportValues(response: Response): Promise<DownloadDto>;
2997
2907
  }
2998
2908
  export interface IMeasurementFormsInstancesClient {
2999
- listMeasurementForms(pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined, tenantId: string | null | undefined, inactive: boolean | null | undefined, includeInactiveSupplierAccess: boolean | null | undefined): Promise<PagedResultOfMeasurementFormInstanceOverviewDto>;
2909
+ listMeasurementForms(pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined, inactive: boolean | null | undefined, includeInactiveSupplierAccess: boolean | null | undefined): Promise<PagedResultOfMeasurementFormInstanceOverviewDto>;
3000
2910
  postListMeasurementForms(request: ListMeasurementFormsRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceOverviewDto>;
3001
- getMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
2911
+ getMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
3002
2912
  listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
3003
- completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
3004
- completeMeasurementFormInstanceV2(id: string, tenantId: string | null | undefined): Promise<CompleteMeasurementFormInstanceResult>;
3005
- getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
3006
- getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
3007
- getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
2913
+ completeMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
2914
+ completeMeasurementFormInstanceV2(id: string): Promise<CompleteMeasurementFormInstanceResult>;
2915
+ getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
2916
+ getWorkorderMeasurementFormProgress(id: string): Promise<MeasurementFormInstanceProgressDto>;
2917
+ getAuditLog(id: string, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
3008
2918
  getValidationRules(): Promise<ValidationRuleDto[]>;
3009
- saveValue(id: string, tenantId: string | null | undefined, request: SaveValueRequest): Promise<SaveValueResponseDto>;
3010
- saveTool(id: string, tenantId: string | null | undefined, request: SaveToolRequest): Promise<SaveValueResponseDto>;
3011
- saveComment(id: string, tenantId: string | null | undefined, request: SaveCommentRequest): Promise<void>;
3012
- batchInsertValues(id: string, tenantId: string | null | undefined, request: BatchInsertValueRequest): Promise<BatchInsertValuesResponseDto>;
3013
- saveMeasurementFormInstanceSchemaComment(id: string, schemaId: string, tenantId: string | null | undefined, request: SaveMeasurementFormInstanceSchemaCommentRequest): Promise<void>;
3014
- createMeasurementFormInstanceSchemaFeedback(id: string, schemaId: string, tenantId: string | null | undefined, request: CreateMeasurementFormSchemaFeedbackRequest): Promise<SchemaFeedbackCreatedDto>;
2919
+ saveValue(id: string, request: SaveValueRequest): Promise<SaveValueResponseDto>;
2920
+ saveTool(id: string, request: SaveToolRequest): Promise<SaveValueResponseDto>;
2921
+ saveComment(id: string, request: SaveCommentRequest): Promise<void>;
2922
+ batchInsertValues(id: string, request: BatchInsertValueRequest): Promise<BatchInsertValuesResponseDto>;
2923
+ saveMeasurementFormInstanceSchemaComment(id: string, schemaId: string, request: SaveMeasurementFormInstanceSchemaCommentRequest): Promise<void>;
2924
+ createMeasurementFormInstanceSchemaFeedback(id: string, schemaId: string, request: CreateMeasurementFormSchemaFeedbackRequest): Promise<SchemaFeedbackCreatedDto>;
3015
2925
  listSupplierMeasurementFormInstances(supplierId: string): Promise<MeasurementFormSupplierAccessInstanceDto[]>;
3016
2926
  upsertSupplierToMeasurmentFormInstance(id: string, supplierId: string, request: UpsertSupplierToMeasurementFormInstanceRequest): Promise<void>;
3017
2927
  removeSupplierFromMeasurmentFormInstance(id: string, supplierId: string): Promise<void>;
@@ -3027,37 +2937,37 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
3027
2937
  constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
3028
2938
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
3029
2939
  });
3030
- listMeasurementForms(pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined, tenantId: string | null | undefined, inactive: boolean | null | undefined, includeInactiveSupplierAccess: boolean | null | undefined): Promise<PagedResultOfMeasurementFormInstanceOverviewDto>;
2940
+ listMeasurementForms(pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined, inactive: boolean | null | undefined, includeInactiveSupplierAccess: boolean | null | undefined): Promise<PagedResultOfMeasurementFormInstanceOverviewDto>;
3031
2941
  protected processListMeasurementForms(response: Response): Promise<PagedResultOfMeasurementFormInstanceOverviewDto>;
3032
2942
  postListMeasurementForms(request: ListMeasurementFormsRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceOverviewDto>;
3033
2943
  protected processPostListMeasurementForms(response: Response): Promise<PagedResultOfMeasurementFormInstanceOverviewDto>;
3034
- getMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
2944
+ getMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
3035
2945
  protected processGetMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
3036
2946
  listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
3037
2947
  protected processListMeasurementFormInstanceFeedback(response: Response): Promise<MeasurementFormInstanceFeedbackDto[]>;
3038
- completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
2948
+ completeMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
3039
2949
  protected processCompleteMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
3040
- completeMeasurementFormInstanceV2(id: string, tenantId: string | null | undefined): Promise<CompleteMeasurementFormInstanceResult>;
2950
+ completeMeasurementFormInstanceV2(id: string): Promise<CompleteMeasurementFormInstanceResult>;
3041
2951
  protected processCompleteMeasurementFormInstanceV2(response: Response): Promise<CompleteMeasurementFormInstanceResult>;
3042
- getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
2952
+ getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
3043
2953
  protected processGetMeasurementFormInstanceSchema(response: Response): Promise<MeasurementFormInstanceSchemaDto>;
3044
- getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
2954
+ getWorkorderMeasurementFormProgress(id: string): Promise<MeasurementFormInstanceProgressDto>;
3045
2955
  protected processGetWorkorderMeasurementFormProgress(response: Response): Promise<MeasurementFormInstanceProgressDto>;
3046
- getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
2956
+ getAuditLog(id: string, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
3047
2957
  protected processGetAuditLog(response: Response): Promise<MeasurementFormElementValueAuditDto[]>;
3048
2958
  getValidationRules(): Promise<ValidationRuleDto[]>;
3049
2959
  protected processGetValidationRules(response: Response): Promise<ValidationRuleDto[]>;
3050
- saveValue(id: string, tenantId: string | null | undefined, request: SaveValueRequest): Promise<SaveValueResponseDto>;
2960
+ saveValue(id: string, request: SaveValueRequest): Promise<SaveValueResponseDto>;
3051
2961
  protected processSaveValue(response: Response): Promise<SaveValueResponseDto>;
3052
- saveTool(id: string, tenantId: string | null | undefined, request: SaveToolRequest): Promise<SaveValueResponseDto>;
2962
+ saveTool(id: string, request: SaveToolRequest): Promise<SaveValueResponseDto>;
3053
2963
  protected processSaveTool(response: Response): Promise<SaveValueResponseDto>;
3054
- saveComment(id: string, tenantId: string | null | undefined, request: SaveCommentRequest): Promise<void>;
2964
+ saveComment(id: string, request: SaveCommentRequest): Promise<void>;
3055
2965
  protected processSaveComment(response: Response): Promise<void>;
3056
- batchInsertValues(id: string, tenantId: string | null | undefined, request: BatchInsertValueRequest): Promise<BatchInsertValuesResponseDto>;
2966
+ batchInsertValues(id: string, request: BatchInsertValueRequest): Promise<BatchInsertValuesResponseDto>;
3057
2967
  protected processBatchInsertValues(response: Response): Promise<BatchInsertValuesResponseDto>;
3058
- saveMeasurementFormInstanceSchemaComment(id: string, schemaId: string, tenantId: string | null | undefined, request: SaveMeasurementFormInstanceSchemaCommentRequest): Promise<void>;
2968
+ saveMeasurementFormInstanceSchemaComment(id: string, schemaId: string, request: SaveMeasurementFormInstanceSchemaCommentRequest): Promise<void>;
3059
2969
  protected processSaveMeasurementFormInstanceSchemaComment(response: Response): Promise<void>;
3060
- createMeasurementFormInstanceSchemaFeedback(id: string, schemaId: string, tenantId: string | null | undefined, request: CreateMeasurementFormSchemaFeedbackRequest): Promise<SchemaFeedbackCreatedDto>;
2970
+ createMeasurementFormInstanceSchemaFeedback(id: string, schemaId: string, request: CreateMeasurementFormSchemaFeedbackRequest): Promise<SchemaFeedbackCreatedDto>;
3061
2971
  protected processCreateMeasurementFormInstanceSchemaFeedback(response: Response): Promise<SchemaFeedbackCreatedDto>;
3062
2972
  listSupplierMeasurementFormInstances(supplierId: string): Promise<MeasurementFormSupplierAccessInstanceDto[]>;
3063
2973
  protected processListSupplierMeasurementFormInstances(response: Response): Promise<MeasurementFormSupplierAccessInstanceDto[]>;
@@ -3082,7 +2992,7 @@ export interface IMeasurementFormsInstancesInstanceAdminClient {
3082
2992
  createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
3083
2993
  reactivateMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
3084
2994
  cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
3085
- toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
2995
+ toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string): Promise<void>;
3086
2996
  }
3087
2997
  export declare class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiBase implements IMeasurementFormsInstancesInstanceAdminClient {
3088
2998
  private http;
@@ -3106,7 +3016,7 @@ export declare class MeasurementFormsInstancesInstanceAdminClient extends Author
3106
3016
  protected processReactivateMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
3107
3017
  cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
3108
3018
  protected processCancelMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
3109
- toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
3019
+ toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string): Promise<void>;
3110
3020
  protected processToggleSchemaInstanceElementDocumentedExternallyOverride(response: Response): Promise<void>;
3111
3021
  }
3112
3022
  export interface ICompaniesClient {
@@ -3446,6 +3356,111 @@ export declare class WorkordersClient extends AuthorizedApiBase implements IWork
3446
3356
  generateContentPartsForDiscussions(): Promise<WorkorderDiscussionMessageDto[]>;
3447
3357
  protected processGenerateContentPartsForDiscussions(response: Response): Promise<WorkorderDiscussionMessageDto[]>;
3448
3358
  }
3359
+ export interface IExternalAccessClient {
3360
+ listUsers(companyId: string | null | undefined): Promise<CompanyUserDto[]>;
3361
+ createCompanyUser(request: CreateCompanyUser): Promise<CompanyUserDto>;
3362
+ updateCompanyUser(id: string, request: UpdateCompanyUserRequest): Promise<CompanyUserDto>;
3363
+ deleteCompanyUser(id: string, companyId: string | null | undefined): Promise<void>;
3364
+ migrateLegacyCompanyUsersToEntra(): Promise<CompanyUserDto[]>;
3365
+ listRoles(): Promise<ExternalRoleDto[]>;
3366
+ listCompanyCustomers(): Promise<CompanyCustomerDto[]>;
3367
+ deleteCompanyCustomer(tenantId: string): Promise<void>;
3368
+ }
3369
+ export declare class ExternalAccessClient extends AuthorizedApiBase implements IExternalAccessClient {
3370
+ private http;
3371
+ private baseUrl;
3372
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
3373
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
3374
+ });
3375
+ listUsers(companyId: string | null | undefined): Promise<CompanyUserDto[]>;
3376
+ protected processListUsers(response: Response): Promise<CompanyUserDto[]>;
3377
+ createCompanyUser(request: CreateCompanyUser): Promise<CompanyUserDto>;
3378
+ protected processCreateCompanyUser(response: Response): Promise<CompanyUserDto>;
3379
+ updateCompanyUser(id: string, request: UpdateCompanyUserRequest): Promise<CompanyUserDto>;
3380
+ protected processUpdateCompanyUser(response: Response): Promise<CompanyUserDto>;
3381
+ deleteCompanyUser(id: string, companyId: string | null | undefined): Promise<void>;
3382
+ protected processDeleteCompanyUser(response: Response): Promise<void>;
3383
+ migrateLegacyCompanyUsersToEntra(): Promise<CompanyUserDto[]>;
3384
+ protected processMigrateLegacyCompanyUsersToEntra(response: Response): Promise<CompanyUserDto[]>;
3385
+ listRoles(): Promise<ExternalRoleDto[]>;
3386
+ protected processListRoles(response: Response): Promise<ExternalRoleDto[]>;
3387
+ listCompanyCustomers(): Promise<CompanyCustomerDto[]>;
3388
+ protected processListCompanyCustomers(response: Response): Promise<CompanyCustomerDto[]>;
3389
+ deleteCompanyCustomer(tenantId: string): Promise<void>;
3390
+ protected processDeleteCompanyCustomer(response: Response): Promise<void>;
3391
+ }
3392
+ export interface IExternalClient {
3393
+ listCompanies(): Promise<CompanyDto[]>;
3394
+ getCompany(id: string): Promise<CompanyDto>;
3395
+ getCurrentSupplierInvite(): Promise<SupplierInviteDto>;
3396
+ acceptSupplierInviteNewCompany(request: AcceptSupplierInviteNewCompany): Promise<SupplierInviteDto>;
3397
+ acceptSupplierInviteExistingCompany(request: AcceptSupplierInviteExistingCompany): Promise<SupplierInviteDto>;
3398
+ acceptSupplierInviteCustomer(request: AcceptSupplierInviteCustomer): Promise<SupplierInviteDto>;
3399
+ listTenantsWithSuppliers(): Promise<TenantWithSupplierDto[]>;
3400
+ }
3401
+ export declare class ExternalClient extends AuthorizedApiBase implements IExternalClient {
3402
+ private http;
3403
+ private baseUrl;
3404
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
3405
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
3406
+ });
3407
+ listCompanies(): Promise<CompanyDto[]>;
3408
+ protected processListCompanies(response: Response): Promise<CompanyDto[]>;
3409
+ getCompany(id: string): Promise<CompanyDto>;
3410
+ protected processGetCompany(response: Response): Promise<CompanyDto>;
3411
+ getCurrentSupplierInvite(): Promise<SupplierInviteDto>;
3412
+ protected processGetCurrentSupplierInvite(response: Response): Promise<SupplierInviteDto>;
3413
+ acceptSupplierInviteNewCompany(request: AcceptSupplierInviteNewCompany): Promise<SupplierInviteDto>;
3414
+ protected processAcceptSupplierInviteNewCompany(response: Response): Promise<SupplierInviteDto>;
3415
+ acceptSupplierInviteExistingCompany(request: AcceptSupplierInviteExistingCompany): Promise<SupplierInviteDto>;
3416
+ protected processAcceptSupplierInviteExistingCompany(response: Response): Promise<SupplierInviteDto>;
3417
+ acceptSupplierInviteCustomer(request: AcceptSupplierInviteCustomer): Promise<SupplierInviteDto>;
3418
+ protected processAcceptSupplierInviteCustomer(response: Response): Promise<SupplierInviteDto>;
3419
+ listTenantsWithSuppliers(): Promise<TenantWithSupplierDto[]>;
3420
+ protected processListTenantsWithSuppliers(response: Response): Promise<TenantWithSupplierDto[]>;
3421
+ }
3422
+ export interface ISuppliersClient {
3423
+ listSupplierInvites(): Promise<SupplierInviteDto[]>;
3424
+ createSupplierInvite(request: CreateSupplierInviteRequest): Promise<SupplierInviteDto>;
3425
+ deleteSupplierInvite(id: string): Promise<void>;
3426
+ listSuppliers(): Promise<ExternalSupplierDto[]>;
3427
+ deleteSupplier(id: string): Promise<void>;
3428
+ /**
3429
+ * Creates a mapping between old supplier id and new supplier id.
3430
+ */
3431
+ createSupplierMapping(request: CreateSupplierMapping): Promise<void>;
3432
+ /**
3433
+ * Delete all supplier mappings between old supplier ids and new supplier ids.
3434
+ */
3435
+ deleteSupplierMappings(): Promise<void>;
3436
+ }
3437
+ export declare class SuppliersClient extends AuthorizedApiBase implements ISuppliersClient {
3438
+ private http;
3439
+ private baseUrl;
3440
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
3441
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
3442
+ });
3443
+ listSupplierInvites(): Promise<SupplierInviteDto[]>;
3444
+ protected processListSupplierInvites(response: Response): Promise<SupplierInviteDto[]>;
3445
+ createSupplierInvite(request: CreateSupplierInviteRequest): Promise<SupplierInviteDto>;
3446
+ protected processCreateSupplierInvite(response: Response): Promise<SupplierInviteDto>;
3447
+ deleteSupplierInvite(id: string): Promise<void>;
3448
+ protected processDeleteSupplierInvite(response: Response): Promise<void>;
3449
+ listSuppliers(): Promise<ExternalSupplierDto[]>;
3450
+ protected processListSuppliers(response: Response): Promise<ExternalSupplierDto[]>;
3451
+ deleteSupplier(id: string): Promise<void>;
3452
+ protected processDeleteSupplier(response: Response): Promise<void>;
3453
+ /**
3454
+ * Creates a mapping between old supplier id and new supplier id.
3455
+ */
3456
+ createSupplierMapping(request: CreateSupplierMapping): Promise<void>;
3457
+ protected processCreateSupplierMapping(response: Response): Promise<void>;
3458
+ /**
3459
+ * Delete all supplier mappings between old supplier ids and new supplier ids.
3460
+ */
3461
+ deleteSupplierMappings(): Promise<void>;
3462
+ protected processDeleteSupplierMappings(response: Response): Promise<void>;
3463
+ }
3449
3464
  export interface AzureRegionDto {
3450
3465
  displayName: string;
3451
3466
  name: string;
@@ -3757,6 +3772,9 @@ export interface UserDetailsDto {
3757
3772
  isExternalUser?: boolean;
3758
3773
  isBetaTester?: boolean | null;
3759
3774
  hasAccessToIgnos?: boolean;
3775
+ isInvitedUser?: boolean;
3776
+ isSupplier?: boolean;
3777
+ companyId?: string | null;
3760
3778
  }
3761
3779
  export interface UserDto {
3762
3780
  id?: string | null;
@@ -5735,97 +5753,6 @@ export interface DocumentGeneratorTypeDto {
5735
5753
  key: string;
5736
5754
  description: string;
5737
5755
  }
5738
- export interface CompanyUserDto {
5739
- companyId?: string | null;
5740
- username?: string | null;
5741
- name?: string | null;
5742
- roles?: string[] | null;
5743
- }
5744
- export interface CreateCompanyUserRequest {
5745
- username: string;
5746
- name: string;
5747
- roles: string[];
5748
- companyId?: string | null;
5749
- }
5750
- export interface UpdateCompanyUserRequest {
5751
- name: string;
5752
- roles: string[];
5753
- companyId?: string | null;
5754
- }
5755
- export interface ExternalRoleDto {
5756
- id: string;
5757
- name: string;
5758
- }
5759
- export interface CompanyCustomerDto {
5760
- customerTenantId?: string | null;
5761
- customerAzureAdTenantId?: string | null;
5762
- customerName?: string | null;
5763
- supplierId?: string | null;
5764
- supplierName?: string | null;
5765
- }
5766
- export interface InviteDto {
5767
- tenantId: string;
5768
- companyName: string;
5769
- id: string;
5770
- supplierId: string;
5771
- supplierName: string;
5772
- username: string;
5773
- deadline: Date;
5774
- createdTime: Date;
5775
- createdBy: string;
5776
- }
5777
- export interface CompanyDto {
5778
- id?: string | null;
5779
- name?: string | null;
5780
- organizationNumber?: string | null;
5781
- country?: string | null;
5782
- tenantId?: string | null;
5783
- }
5784
- export interface AcceptSupplierInviteRequest {
5785
- tenantId: string;
5786
- existingCompanyId?: string | null;
5787
- companyName?: string | null;
5788
- organizationNumber?: string | null;
5789
- threeLetterIsoCountry?: string | null;
5790
- }
5791
- export interface SupplierInviteDto {
5792
- id: string;
5793
- supplierId: string;
5794
- name: string;
5795
- username: string;
5796
- deadline: Date;
5797
- createdTime: Date;
5798
- createdBy: string;
5799
- }
5800
- export interface CreateSupplierInvite {
5801
- supplierId: string;
5802
- name: string;
5803
- username: string;
5804
- deadline: Date;
5805
- }
5806
- export interface ExternalSupplierDto {
5807
- id: string;
5808
- name: string;
5809
- companyId: string;
5810
- active: boolean;
5811
- }
5812
- export interface ImportSupplier {
5813
- supplierId: string;
5814
- name: string;
5815
- organizationNumber?: string | null;
5816
- threeLetterIsoCountry: string;
5817
- users: ImportSupplierUserDto[];
5818
- }
5819
- export interface ImportSupplierUserDto {
5820
- username: string;
5821
- name: string;
5822
- roles: string[];
5823
- }
5824
- export interface CreateSupplierMapping {
5825
- companyId: string;
5826
- existingSupplierId: string;
5827
- newSupplierId: string;
5828
- }
5829
5756
  export interface CncMachineTransferDto {
5830
5757
  id: string;
5831
5758
  cncMachineOperationId?: string | null;
@@ -9126,7 +9053,6 @@ export interface ListMeasurementFormsRequest {
9126
9053
  pageSize?: number | null;
9127
9054
  search?: string | null;
9128
9055
  continuationToken?: string | null;
9129
- tenantId?: string | null;
9130
9056
  inactive?: boolean | null;
9131
9057
  includeInactiveSupplierAccess?: boolean | null;
9132
9058
  }
@@ -9322,7 +9248,6 @@ export interface UpsertSupplierToMeasurementFormInstanceRequest {
9322
9248
  externalOrderNumber?: string | null;
9323
9249
  }
9324
9250
  export interface ExportDimensionReportV2Request {
9325
- tenantId?: string | null;
9326
9251
  type: DimensionReportType;
9327
9252
  extras?: DimensionReportExtras | null;
9328
9253
  specificSerialNumbers?: string[] | null;
@@ -9665,6 +9590,87 @@ export interface SetDiscussionLastReadRequest {
9665
9590
  operationId?: string | null;
9666
9591
  resourceId?: string | null;
9667
9592
  }
9593
+ export interface CompanyUserDto {
9594
+ companyId: string;
9595
+ userObjectId: string;
9596
+ username?: string | null;
9597
+ name?: string | null;
9598
+ roles: string[];
9599
+ }
9600
+ export interface CreateCompanyUser {
9601
+ username: string;
9602
+ name: string;
9603
+ roles: string[];
9604
+ companyId?: string | null;
9605
+ }
9606
+ export interface UpdateCompanyUserRequest {
9607
+ roles: string[];
9608
+ companyId?: string | null;
9609
+ }
9610
+ export interface ExternalRoleDto {
9611
+ id: string;
9612
+ name: string;
9613
+ }
9614
+ export interface CompanyCustomerDto {
9615
+ customerTenantId?: string | null;
9616
+ customerAzureAdTenantId?: string | null;
9617
+ customerName?: string | null;
9618
+ supplierId?: string | null;
9619
+ supplierName?: string | null;
9620
+ customerIgnosPortalPrefix?: string | null;
9621
+ }
9622
+ export interface CompanyDto {
9623
+ id: string;
9624
+ name: string;
9625
+ organizationNumber?: string | null;
9626
+ country: string;
9627
+ tenantId?: string | null;
9628
+ }
9629
+ export interface SupplierInviteDto {
9630
+ id: string;
9631
+ supplierId: string;
9632
+ supplierName?: string | null;
9633
+ customerName?: string | null;
9634
+ userId: string;
9635
+ userName?: string | null;
9636
+ acceptedTimestamp?: Date | null;
9637
+ createdTime: Date;
9638
+ createdBy: string;
9639
+ }
9640
+ export interface AcceptSupplierInviteNewCompany {
9641
+ companyName?: string;
9642
+ organizationNumber?: string;
9643
+ threeLetterIsoCountry?: string;
9644
+ }
9645
+ export interface AcceptSupplierInviteExistingCompany {
9646
+ companyId?: string;
9647
+ }
9648
+ export interface AcceptSupplierInviteCustomer {
9649
+ tenantId?: string;
9650
+ organizationNumber?: string;
9651
+ }
9652
+ export interface TenantWithSupplierDto {
9653
+ tenantId: string;
9654
+ customerName: string;
9655
+ supplierTenantEntraId: string;
9656
+ }
9657
+ export interface CreateSupplierInviteRequest {
9658
+ supplierId: string;
9659
+ supplierName?: string | null;
9660
+ username: string;
9661
+ invitedName: string;
9662
+ }
9663
+ export interface ExternalSupplierDto {
9664
+ id: string;
9665
+ name: string;
9666
+ companyId: string;
9667
+ active: boolean;
9668
+ }
9669
+ export interface CreateSupplierMapping {
9670
+ companyId: string;
9671
+ existingSupplierId: string;
9672
+ newSupplierId: string;
9673
+ }
9668
9674
  export type FeatureCollectionType = "FeatureCollection";
9669
9675
  export interface Features {
9670
9676
  type: FeaturesType;