@ignos/api-client 20261103.340.1-alpha → 20261103.342.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.
@@ -3294,8 +3294,10 @@ export declare class MeasurementFormSchemasAdminClient extends AuthorizedApiBase
3294
3294
  }
3295
3295
  export interface IMeasurementFormSchemasClient {
3296
3296
  getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
3297
- postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
3297
+ postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormSchemaOverviewDto>;
3298
+ postCountMeasurementFormSchemas(request: CountMeasurementFormSchemasRequest | undefined): Promise<MeasurementFormSchemaCountsDto>;
3298
3299
  listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]>;
3300
+ listMeasurementFormSchemaInstances(id: string): Promise<MeasurementFormSchemaInstanceDto[]>;
3299
3301
  listMeasurementFormSchemaVersionChanges(id: string): Promise<MeasurementFormSchemaVersionChangesDto[]>;
3300
3302
  listFrequencies(): Promise<MeasurementFrequencyDto[]>;
3301
3303
  /**
@@ -3319,10 +3321,14 @@ export declare class MeasurementFormSchemasClient extends AuthorizedApiBase impl
3319
3321
  });
3320
3322
  getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
3321
3323
  protected processGetMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto>;
3322
- postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
3323
- protected processPostListMeasurementFormSchemas(response: Response): Promise<PagedResultOfMeasurementFormListDto>;
3324
+ postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormSchemaOverviewDto>;
3325
+ protected processPostListMeasurementFormSchemas(response: Response): Promise<PagedResultOfMeasurementFormSchemaOverviewDto>;
3326
+ postCountMeasurementFormSchemas(request: CountMeasurementFormSchemasRequest | undefined): Promise<MeasurementFormSchemaCountsDto>;
3327
+ protected processPostCountMeasurementFormSchemas(response: Response): Promise<MeasurementFormSchemaCountsDto>;
3324
3328
  listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]>;
3325
3329
  protected processListMeasurementFormSchemaVersions(response: Response): Promise<MeasurementFormSchemaVersionDto[]>;
3330
+ listMeasurementFormSchemaInstances(id: string): Promise<MeasurementFormSchemaInstanceDto[]>;
3331
+ protected processListMeasurementFormSchemaInstances(response: Response): Promise<MeasurementFormSchemaInstanceDto[]>;
3326
3332
  listMeasurementFormSchemaVersionChanges(id: string): Promise<MeasurementFormSchemaVersionChangesDto[]>;
3327
3333
  protected processListMeasurementFormSchemaVersionChanges(response: Response): Promise<MeasurementFormSchemaVersionChangesDto[]>;
3328
3334
  listFrequencies(): Promise<MeasurementFrequencyDto[]>;
@@ -10195,6 +10201,16 @@ export interface ListMeasurementFormSchemasWithHistoryRequest {
10195
10201
  version?: number | null;
10196
10202
  continuationToken?: string | null;
10197
10203
  }
10204
+ export interface PagedResultOfMeasurementFormSchemaOverviewDto {
10205
+ results: MeasurementFormSchemaOverviewDto[];
10206
+ continuationToken?: string | null;
10207
+ }
10208
+ export interface MeasurementFormSchemaOverviewDto extends MeasurementFormListDto {
10209
+ referenceCount: number;
10210
+ instanceCount: number;
10211
+ activeInstanceCount: number;
10212
+ hasSchemaCreator: boolean;
10213
+ }
10198
10214
  export interface ListMeasurementFormSchemasRequest {
10199
10215
  pageSize?: number | null;
10200
10216
  customerId?: string | null;
@@ -10206,6 +10222,34 @@ export interface ListMeasurementFormSchemasRequest {
10206
10222
  drawingRevision?: string | null;
10207
10223
  filter?: string | null;
10208
10224
  continuationToken?: string | null;
10225
+ statuses?: MeasurementFormStatus[] | null;
10226
+ /** Schemas for any of these customers. */
10227
+ customerIds?: string[] | null;
10228
+ /** Also schemas without a customer. */
10229
+ withoutCustomer?: boolean | null;
10230
+ /** Schemas with, or without, a schema creator document. */
10231
+ schemaCreator?: boolean | null;
10232
+ }
10233
+ export interface MeasurementFormSchemaCountsDto {
10234
+ total: number;
10235
+ draft: number;
10236
+ released: number;
10237
+ revoked: number;
10238
+ schemaCreator: number;
10239
+ withoutCustomer: number;
10240
+ customers: CustomerSchemaCountDto[];
10241
+ }
10242
+ export interface CustomerSchemaCountDto {
10243
+ customerId: string;
10244
+ customerName: string;
10245
+ count: number;
10246
+ }
10247
+ export interface CountMeasurementFormSchemasRequest {
10248
+ filter?: string | null;
10249
+ statuses?: MeasurementFormStatus[] | null;
10250
+ customerIds?: string[] | null;
10251
+ withoutCustomer?: boolean | null;
10252
+ schemaCreator?: boolean | null;
10209
10253
  }
10210
10254
  export interface MeasurementFormSchemaVersionDto {
10211
10255
  id: string;
@@ -10216,6 +10260,15 @@ export interface MeasurementFormSchemaVersionDto {
10216
10260
  released?: Date | null;
10217
10261
  drawingChanged?: boolean | null;
10218
10262
  }
10263
+ export interface MeasurementFormSchemaInstanceDto {
10264
+ id: string;
10265
+ schemaId: string;
10266
+ versionId: number;
10267
+ status: MeasurementFormInstanceStatus;
10268
+ progress: number;
10269
+ created: Date;
10270
+ }
10271
+ export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved" | "MissingCompletion";
10219
10272
  export interface MeasurementFormSchemaVersionChangesDto {
10220
10273
  versionId: number;
10221
10274
  added: number;
@@ -10288,7 +10341,6 @@ export interface MeasurementFormInstanceDto {
10288
10341
  approvedReportUrl?: string | null;
10289
10342
  currentResource?: ResourceDto | null;
10290
10343
  }
10291
- export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved" | "MissingCompletion";
10292
10344
  export interface MeasurementFormWorkorderSchemaDto {
10293
10345
  id: string;
10294
10346
  partNumber?: string | null;
@@ -10672,6 +10724,7 @@ export interface SerialNumberMeasurementsDto {
10672
10724
  measurementCount: number;
10673
10725
  previousMeasurementCount: number;
10674
10726
  measuredBy: SerialNumberMeasurerDto[];
10727
+ archivedAt?: Date | null;
10675
10728
  }
10676
10729
  export interface SerialNumberMeasurerDto {
10677
10730
  userId: string;
@@ -27802,6 +27802,45 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
27802
27802
  }
27803
27803
  return Promise.resolve(null);
27804
27804
  }
27805
+ postCountMeasurementFormSchemas(request) {
27806
+ let url_ = this.baseUrl + "/measurementforms/schemas/list/counts";
27807
+ url_ = url_.replace(/[?&]$/, "");
27808
+ const content_ = JSON.stringify(request);
27809
+ let options_ = {
27810
+ body: content_,
27811
+ method: "POST",
27812
+ headers: {
27813
+ "Content-Type": "application/json",
27814
+ "Accept": "application/json"
27815
+ }
27816
+ };
27817
+ return this.transformOptions(options_).then(transformedOptions_ => {
27818
+ return this.http.fetch(url_, transformedOptions_);
27819
+ }).then((_response) => {
27820
+ return this.processPostCountMeasurementFormSchemas(_response);
27821
+ });
27822
+ }
27823
+ processPostCountMeasurementFormSchemas(response) {
27824
+ const status = response.status;
27825
+ let _headers = {};
27826
+ if (response.headers && response.headers.forEach) {
27827
+ response.headers.forEach((v, k) => _headers[k] = v);
27828
+ }
27829
+ ;
27830
+ if (status === 200) {
27831
+ return response.text().then((_responseText) => {
27832
+ let result200 = null;
27833
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
27834
+ return result200;
27835
+ });
27836
+ }
27837
+ else if (status !== 200 && status !== 204) {
27838
+ return response.text().then((_responseText) => {
27839
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
27840
+ });
27841
+ }
27842
+ return Promise.resolve(null);
27843
+ }
27805
27844
  listMeasurementFormSchemaVersions(id) {
27806
27845
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions";
27807
27846
  if (id === undefined || id === null)
@@ -27841,6 +27880,45 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
27841
27880
  }
27842
27881
  return Promise.resolve(null);
27843
27882
  }
27883
+ listMeasurementFormSchemaInstances(id) {
27884
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/instances";
27885
+ if (id === undefined || id === null)
27886
+ throw new globalThis.Error("The parameter 'id' must be defined.");
27887
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
27888
+ url_ = url_.replace(/[?&]$/, "");
27889
+ let options_ = {
27890
+ method: "GET",
27891
+ headers: {
27892
+ "Accept": "application/json"
27893
+ }
27894
+ };
27895
+ return this.transformOptions(options_).then(transformedOptions_ => {
27896
+ return this.http.fetch(url_, transformedOptions_);
27897
+ }).then((_response) => {
27898
+ return this.processListMeasurementFormSchemaInstances(_response);
27899
+ });
27900
+ }
27901
+ processListMeasurementFormSchemaInstances(response) {
27902
+ const status = response.status;
27903
+ let _headers = {};
27904
+ if (response.headers && response.headers.forEach) {
27905
+ response.headers.forEach((v, k) => _headers[k] = v);
27906
+ }
27907
+ ;
27908
+ if (status === 200) {
27909
+ return response.text().then((_responseText) => {
27910
+ let result200 = null;
27911
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
27912
+ return result200;
27913
+ });
27914
+ }
27915
+ else if (status !== 200 && status !== 204) {
27916
+ return response.text().then((_responseText) => {
27917
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
27918
+ });
27919
+ }
27920
+ return Promise.resolve(null);
27921
+ }
27844
27922
  listMeasurementFormSchemaVersionChanges(id) {
27845
27923
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions/changes";
27846
27924
  if (id === undefined || id === null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20261103.340.1-alpha",
3
+ "version": "20261103.342.1-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -29429,10 +29429,14 @@ export interface IMeasurementFormSchemasClient {
29429
29429
 
29430
29430
  getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
29431
29431
 
29432
- postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
29432
+ postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormSchemaOverviewDto>;
29433
+
29434
+ postCountMeasurementFormSchemas(request: CountMeasurementFormSchemasRequest | undefined): Promise<MeasurementFormSchemaCountsDto>;
29433
29435
 
29434
29436
  listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]>;
29435
29437
 
29438
+ listMeasurementFormSchemaInstances(id: string): Promise<MeasurementFormSchemaInstanceDto[]>;
29439
+
29436
29440
  listMeasurementFormSchemaVersionChanges(id: string): Promise<MeasurementFormSchemaVersionChangesDto[]>;
29437
29441
 
29438
29442
  listFrequencies(): Promise<MeasurementFrequencyDto[]>;
@@ -29501,7 +29505,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
29501
29505
  return Promise.resolve<MeasurementFormSchemaDto>(null as any);
29502
29506
  }
29503
29507
 
29504
- postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto> {
29508
+ postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormSchemaOverviewDto> {
29505
29509
  let url_ = this.baseUrl + "/measurementforms/schemas/list";
29506
29510
  url_ = url_.replace(/[?&]$/, "");
29507
29511
 
@@ -29523,13 +29527,13 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
29523
29527
  });
29524
29528
  }
29525
29529
 
29526
- protected processPostListMeasurementFormSchemas(response: Response): Promise<PagedResultOfMeasurementFormListDto> {
29530
+ protected processPostListMeasurementFormSchemas(response: Response): Promise<PagedResultOfMeasurementFormSchemaOverviewDto> {
29527
29531
  const status = response.status;
29528
29532
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
29529
29533
  if (status === 200) {
29530
29534
  return response.text().then((_responseText) => {
29531
29535
  let result200: any = null;
29532
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PagedResultOfMeasurementFormListDto;
29536
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PagedResultOfMeasurementFormSchemaOverviewDto;
29533
29537
  return result200;
29534
29538
  });
29535
29539
  } else if (status !== 200 && status !== 204) {
@@ -29537,7 +29541,46 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
29537
29541
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
29538
29542
  });
29539
29543
  }
29540
- return Promise.resolve<PagedResultOfMeasurementFormListDto>(null as any);
29544
+ return Promise.resolve<PagedResultOfMeasurementFormSchemaOverviewDto>(null as any);
29545
+ }
29546
+
29547
+ postCountMeasurementFormSchemas(request: CountMeasurementFormSchemasRequest | undefined): Promise<MeasurementFormSchemaCountsDto> {
29548
+ let url_ = this.baseUrl + "/measurementforms/schemas/list/counts";
29549
+ url_ = url_.replace(/[?&]$/, "");
29550
+
29551
+ const content_ = JSON.stringify(request);
29552
+
29553
+ let options_: RequestInit = {
29554
+ body: content_,
29555
+ method: "POST",
29556
+ headers: {
29557
+ "Content-Type": "application/json",
29558
+ "Accept": "application/json"
29559
+ }
29560
+ };
29561
+
29562
+ return this.transformOptions(options_).then(transformedOptions_ => {
29563
+ return this.http.fetch(url_, transformedOptions_);
29564
+ }).then((_response: Response) => {
29565
+ return this.processPostCountMeasurementFormSchemas(_response);
29566
+ });
29567
+ }
29568
+
29569
+ protected processPostCountMeasurementFormSchemas(response: Response): Promise<MeasurementFormSchemaCountsDto> {
29570
+ const status = response.status;
29571
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
29572
+ if (status === 200) {
29573
+ return response.text().then((_responseText) => {
29574
+ let result200: any = null;
29575
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormSchemaCountsDto;
29576
+ return result200;
29577
+ });
29578
+ } else if (status !== 200 && status !== 204) {
29579
+ return response.text().then((_responseText) => {
29580
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
29581
+ });
29582
+ }
29583
+ return Promise.resolve<MeasurementFormSchemaCountsDto>(null as any);
29541
29584
  }
29542
29585
 
29543
29586
  listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]> {
@@ -29578,6 +29621,44 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
29578
29621
  return Promise.resolve<MeasurementFormSchemaVersionDto[]>(null as any);
29579
29622
  }
29580
29623
 
29624
+ listMeasurementFormSchemaInstances(id: string): Promise<MeasurementFormSchemaInstanceDto[]> {
29625
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/instances";
29626
+ if (id === undefined || id === null)
29627
+ throw new globalThis.Error("The parameter 'id' must be defined.");
29628
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
29629
+ url_ = url_.replace(/[?&]$/, "");
29630
+
29631
+ let options_: RequestInit = {
29632
+ method: "GET",
29633
+ headers: {
29634
+ "Accept": "application/json"
29635
+ }
29636
+ };
29637
+
29638
+ return this.transformOptions(options_).then(transformedOptions_ => {
29639
+ return this.http.fetch(url_, transformedOptions_);
29640
+ }).then((_response: Response) => {
29641
+ return this.processListMeasurementFormSchemaInstances(_response);
29642
+ });
29643
+ }
29644
+
29645
+ protected processListMeasurementFormSchemaInstances(response: Response): Promise<MeasurementFormSchemaInstanceDto[]> {
29646
+ const status = response.status;
29647
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
29648
+ if (status === 200) {
29649
+ return response.text().then((_responseText) => {
29650
+ let result200: any = null;
29651
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormSchemaInstanceDto[];
29652
+ return result200;
29653
+ });
29654
+ } else if (status !== 200 && status !== 204) {
29655
+ return response.text().then((_responseText) => {
29656
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
29657
+ });
29658
+ }
29659
+ return Promise.resolve<MeasurementFormSchemaInstanceDto[]>(null as any);
29660
+ }
29661
+
29581
29662
  listMeasurementFormSchemaVersionChanges(id: string): Promise<MeasurementFormSchemaVersionChangesDto[]> {
29582
29663
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions/changes";
29583
29664
  if (id === undefined || id === null)
@@ -40840,6 +40921,18 @@ export interface ListMeasurementFormSchemasWithHistoryRequest {
40840
40921
  continuationToken?: string | null;
40841
40922
  }
40842
40923
 
40924
+ export interface PagedResultOfMeasurementFormSchemaOverviewDto {
40925
+ results: MeasurementFormSchemaOverviewDto[];
40926
+ continuationToken?: string | null;
40927
+ }
40928
+
40929
+ export interface MeasurementFormSchemaOverviewDto extends MeasurementFormListDto {
40930
+ referenceCount: number;
40931
+ instanceCount: number;
40932
+ activeInstanceCount: number;
40933
+ hasSchemaCreator: boolean;
40934
+ }
40935
+
40843
40936
  export interface ListMeasurementFormSchemasRequest {
40844
40937
  pageSize?: number | null;
40845
40938
  customerId?: string | null;
@@ -40851,6 +40944,37 @@ export interface ListMeasurementFormSchemasRequest {
40851
40944
  drawingRevision?: string | null;
40852
40945
  filter?: string | null;
40853
40946
  continuationToken?: string | null;
40947
+ statuses?: MeasurementFormStatus[] | null;
40948
+ /** Schemas for any of these customers. */
40949
+ customerIds?: string[] | null;
40950
+ /** Also schemas without a customer. */
40951
+ withoutCustomer?: boolean | null;
40952
+ /** Schemas with, or without, a schema creator document. */
40953
+ schemaCreator?: boolean | null;
40954
+ }
40955
+
40956
+ export interface MeasurementFormSchemaCountsDto {
40957
+ total: number;
40958
+ draft: number;
40959
+ released: number;
40960
+ revoked: number;
40961
+ schemaCreator: number;
40962
+ withoutCustomer: number;
40963
+ customers: CustomerSchemaCountDto[];
40964
+ }
40965
+
40966
+ export interface CustomerSchemaCountDto {
40967
+ customerId: string;
40968
+ customerName: string;
40969
+ count: number;
40970
+ }
40971
+
40972
+ export interface CountMeasurementFormSchemasRequest {
40973
+ filter?: string | null;
40974
+ statuses?: MeasurementFormStatus[] | null;
40975
+ customerIds?: string[] | null;
40976
+ withoutCustomer?: boolean | null;
40977
+ schemaCreator?: boolean | null;
40854
40978
  }
40855
40979
 
40856
40980
  export interface MeasurementFormSchemaVersionDto {
@@ -40863,6 +40987,17 @@ export interface MeasurementFormSchemaVersionDto {
40863
40987
  drawingChanged?: boolean | null;
40864
40988
  }
40865
40989
 
40990
+ export interface MeasurementFormSchemaInstanceDto {
40991
+ id: string;
40992
+ schemaId: string;
40993
+ versionId: number;
40994
+ status: MeasurementFormInstanceStatus;
40995
+ progress: number;
40996
+ created: Date;
40997
+ }
40998
+
40999
+ export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved" | "MissingCompletion";
41000
+
40866
41001
  export interface MeasurementFormSchemaVersionChangesDto {
40867
41002
  versionId: number;
40868
41003
  added: number;
@@ -40946,8 +41081,6 @@ export interface MeasurementFormInstanceDto {
40946
41081
  currentResource?: ResourceDto | null;
40947
41082
  }
40948
41083
 
40949
- export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved" | "MissingCompletion";
40950
-
40951
41084
  export interface MeasurementFormWorkorderSchemaDto {
40952
41085
  id: string;
40953
41086
  partNumber?: string | null;
@@ -41377,6 +41510,7 @@ export interface SerialNumberMeasurementsDto {
41377
41510
  measurementCount: number;
41378
41511
  previousMeasurementCount: number;
41379
41512
  measuredBy: SerialNumberMeasurerDto[];
41513
+ archivedAt?: Date | null;
41380
41514
  }
41381
41515
 
41382
41516
  export interface SerialNumberMeasurerDto {