@ignos/api-client 20250313.0.11366 → 20250318.0.11384

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.
@@ -1908,6 +1908,7 @@ export interface IMeasurementFormSchemasClient {
1908
1908
  updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto>;
1909
1909
  updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
1910
1910
  updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
1911
+ deleteSchemaRow(id: string, ballonId: string | null | undefined): Promise<MeasurementFormSchemaDto>;
1911
1912
  uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
1912
1913
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
1913
1914
  uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
@@ -1979,6 +1980,8 @@ export declare class MeasurementFormSchemasClient extends AuthorizedApiBase impl
1979
1980
  protected processUpdateSchemaGroupedElements(response: Response): Promise<MeasurementFormSchemaDto>;
1980
1981
  updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
1981
1982
  protected processUpdateSchemaRow(response: Response): Promise<MeasurementFormSchemaDto>;
1983
+ deleteSchemaRow(id: string, ballonId: string | null | undefined): Promise<MeasurementFormSchemaDto>;
1984
+ protected processDeleteSchemaRow(response: Response): Promise<MeasurementFormSchemaDto>;
1982
1985
  uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
1983
1986
  protected processUploadMeasurementImage(response: Response): Promise<MeasurementFormSchemaDto>;
1984
1987
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
@@ -10901,9 +10904,10 @@ export interface IMeasurementFormSchemaAttachmentDto {
10901
10904
  title: string;
10902
10905
  }
10903
10906
  export declare class MeasurementFormGroupedElementDto implements IMeasurementFormGroupedElementDto {
10907
+ id: string;
10908
+ balloonId: string;
10904
10909
  imageUrl?: string | null;
10905
10910
  thumbnailUrl?: string | null;
10906
- balloonId: string;
10907
10911
  section?: string | null;
10908
10912
  pageNumber?: number;
10909
10913
  sheetZone?: string | null;
@@ -10945,9 +10949,10 @@ export declare class MeasurementFormGroupedElementDto implements IMeasurementFor
10945
10949
  toJSON(data?: any): any;
10946
10950
  }
10947
10951
  export interface IMeasurementFormGroupedElementDto {
10952
+ id: string;
10953
+ balloonId: string;
10948
10954
  imageUrl?: string | null;
10949
10955
  thumbnailUrl?: string | null;
10950
- balloonId: string;
10951
10956
  section?: string | null;
10952
10957
  pageNumber?: number;
10953
10958
  sheetZone?: string | null;
@@ -11108,6 +11113,7 @@ export interface IUpdateSchemaGroupedElementDto {
11108
11113
  isDocumentedExternally: boolean;
11109
11114
  }
11110
11115
  export declare class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {
11116
+ id: string;
11111
11117
  balloonId: string;
11112
11118
  section?: string | null;
11113
11119
  pageNumber?: number | null;
@@ -11133,6 +11139,7 @@ export declare class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGr
11133
11139
  toJSON(data?: any): any;
11134
11140
  }
11135
11141
  export interface IUpdateSchemaGroupedElementRowDto {
11142
+ id: string;
11136
11143
  balloonId: string;
11137
11144
  section?: string | null;
11138
11145
  pageNumber?: number | null;
@@ -11404,6 +11411,8 @@ export declare class MeasurementFormSettingsDto implements IMeasurementFormSetti
11404
11411
  generateReportForApprovedInstances: boolean;
11405
11412
  includeMeasuringToolsInReportAsDefault: boolean;
11406
11413
  requireCustomerOnWorkOrders: boolean;
11414
+ allowSchemaUpdates: boolean;
11415
+ allowCreateInstances: boolean;
11407
11416
  resourceTypesBlockingAutoWorkflow?: string[] | null;
11408
11417
  constructor(data?: IMeasurementFormSettingsDto);
11409
11418
  init(_data?: any): void;
@@ -11421,6 +11430,8 @@ export interface IMeasurementFormSettingsDto {
11421
11430
  generateReportForApprovedInstances: boolean;
11422
11431
  includeMeasuringToolsInReportAsDefault: boolean;
11423
11432
  requireCustomerOnWorkOrders: boolean;
11433
+ allowSchemaUpdates: boolean;
11434
+ allowCreateInstances: boolean;
11424
11435
  resourceTypesBlockingAutoWorkflow?: string[] | null;
11425
11436
  }
11426
11437
  export declare class UpdateMeasurementFormSettings implements IUpdateMeasurementFormSettings {
@@ -11434,7 +11445,9 @@ export declare class UpdateMeasurementFormSettings implements IUpdateMeasurement
11434
11445
  generateReportForApprovedInstances: boolean;
11435
11446
  includeMeasuringToolsInReportAsDefault: boolean;
11436
11447
  requireCustomerOnWorkOrders: boolean;
11437
- resourceTypesBlockingAutoWorkflow?: string[] | null;
11448
+ allowSchemaUpdates: boolean;
11449
+ allowCreateInstances: boolean;
11450
+ resourceTypesBlockingAutoWorkflow: string[];
11438
11451
  constructor(data?: IUpdateMeasurementFormSettings);
11439
11452
  init(_data?: any): void;
11440
11453
  static fromJS(data: any): UpdateMeasurementFormSettings;
@@ -11451,7 +11464,9 @@ export interface IUpdateMeasurementFormSettings {
11451
11464
  generateReportForApprovedInstances: boolean;
11452
11465
  includeMeasuringToolsInReportAsDefault: boolean;
11453
11466
  requireCustomerOnWorkOrders: boolean;
11454
- resourceTypesBlockingAutoWorkflow?: string[] | null;
11467
+ allowSchemaUpdates: boolean;
11468
+ allowCreateInstances: boolean;
11469
+ resourceTypesBlockingAutoWorkflow: string[];
11455
11470
  }
11456
11471
  export declare class MeasurementFormCustomerSettingsDto implements IMeasurementFormCustomerSettingsDto {
11457
11472
  customerId: string;
@@ -12321,6 +12336,7 @@ export interface IMeasurementFormInstanceFeedbackDto {
12321
12336
  }
12322
12337
  export declare class CreateMeasurementFormInstanceRequest implements ICreateMeasurementFormInstanceRequest {
12323
12338
  schemaId: string;
12339
+ customerId?: string | null;
12324
12340
  purchaseOrder?: string | null;
12325
12341
  series: CreateMeasurementFormInstanceRequestSeries[];
12326
12342
  constructor(data?: ICreateMeasurementFormInstanceRequest);
@@ -12330,6 +12346,7 @@ export declare class CreateMeasurementFormInstanceRequest implements ICreateMeas
12330
12346
  }
12331
12347
  export interface ICreateMeasurementFormInstanceRequest {
12332
12348
  schemaId: string;
12349
+ customerId?: string | null;
12333
12350
  purchaseOrder?: string | null;
12334
12351
  series: CreateMeasurementFormInstanceRequestSeries[];
12335
12352
  }
@@ -15760,6 +15760,48 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
15760
15760
  }
15761
15761
  return Promise.resolve(null);
15762
15762
  }
15763
+ deleteSchemaRow(id, ballonId) {
15764
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/deleterow?";
15765
+ if (id === undefined || id === null)
15766
+ throw new Error("The parameter 'id' must be defined.");
15767
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
15768
+ if (ballonId !== undefined && ballonId !== null)
15769
+ url_ += "ballonId=" + encodeURIComponent("" + ballonId) + "&";
15770
+ url_ = url_.replace(/[?&]$/, "");
15771
+ let options_ = {
15772
+ method: "DELETE",
15773
+ headers: {
15774
+ "Accept": "application/json"
15775
+ }
15776
+ };
15777
+ return this.transformOptions(options_).then(transformedOptions_ => {
15778
+ return this.http.fetch(url_, transformedOptions_);
15779
+ }).then((_response) => {
15780
+ return this.processDeleteSchemaRow(_response);
15781
+ });
15782
+ }
15783
+ processDeleteSchemaRow(response) {
15784
+ const status = response.status;
15785
+ let _headers = {};
15786
+ if (response.headers && response.headers.forEach) {
15787
+ response.headers.forEach((v, k) => _headers[k] = v);
15788
+ }
15789
+ ;
15790
+ if (status === 200) {
15791
+ return response.text().then((_responseText) => {
15792
+ let result200 = null;
15793
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
15794
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
15795
+ return result200;
15796
+ });
15797
+ }
15798
+ else if (status !== 200 && status !== 204) {
15799
+ return response.text().then((_responseText) => {
15800
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
15801
+ });
15802
+ }
15803
+ return Promise.resolve(null);
15804
+ }
15763
15805
  uploadMeasurementImage(id, request) {
15764
15806
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmeasurementimage";
15765
15807
  if (id === undefined || id === null)
@@ -38355,9 +38397,10 @@ export class MeasurementFormGroupedElementDto {
38355
38397
  }
38356
38398
  init(_data) {
38357
38399
  if (_data) {
38400
+ this.id = _data["id"];
38401
+ this.balloonId = _data["balloonId"];
38358
38402
  this.imageUrl = _data["imageUrl"];
38359
38403
  this.thumbnailUrl = _data["thumbnailUrl"];
38360
- this.balloonId = _data["balloonId"];
38361
38404
  this.section = _data["section"];
38362
38405
  this.pageNumber = _data["pageNumber"];
38363
38406
  this.sheetZone = _data["sheetZone"];
@@ -38403,9 +38446,10 @@ export class MeasurementFormGroupedElementDto {
38403
38446
  }
38404
38447
  toJSON(data) {
38405
38448
  data = typeof data === 'object' ? data : {};
38449
+ data["id"] = this.id;
38450
+ data["balloonId"] = this.balloonId;
38406
38451
  data["imageUrl"] = this.imageUrl;
38407
38452
  data["thumbnailUrl"] = this.thumbnailUrl;
38408
- data["balloonId"] = this.balloonId;
38409
38453
  data["section"] = this.section;
38410
38454
  data["pageNumber"] = this.pageNumber;
38411
38455
  data["sheetZone"] = this.sheetZone;
@@ -38693,6 +38737,7 @@ export class UpdateSchemaGroupedElementRowDto {
38693
38737
  }
38694
38738
  init(_data) {
38695
38739
  if (_data) {
38740
+ this.id = _data["id"];
38696
38741
  this.balloonId = _data["balloonId"];
38697
38742
  this.section = _data["section"];
38698
38743
  this.pageNumber = _data["pageNumber"];
@@ -38722,6 +38767,7 @@ export class UpdateSchemaGroupedElementRowDto {
38722
38767
  }
38723
38768
  toJSON(data) {
38724
38769
  data = typeof data === 'object' ? data : {};
38770
+ data["id"] = this.id;
38725
38771
  data["balloonId"] = this.balloonId;
38726
38772
  data["section"] = this.section;
38727
38773
  data["pageNumber"] = this.pageNumber;
@@ -39149,6 +39195,8 @@ export class MeasurementFormSettingsDto {
39149
39195
  this.generateReportForApprovedInstances = _data["generateReportForApprovedInstances"];
39150
39196
  this.includeMeasuringToolsInReportAsDefault = _data["includeMeasuringToolsInReportAsDefault"];
39151
39197
  this.requireCustomerOnWorkOrders = _data["requireCustomerOnWorkOrders"];
39198
+ this.allowSchemaUpdates = _data["allowSchemaUpdates"];
39199
+ this.allowCreateInstances = _data["allowCreateInstances"];
39152
39200
  if (Array.isArray(_data["resourceTypesBlockingAutoWorkflow"])) {
39153
39201
  this.resourceTypesBlockingAutoWorkflow = [];
39154
39202
  for (let item of _data["resourceTypesBlockingAutoWorkflow"])
@@ -39174,6 +39222,8 @@ export class MeasurementFormSettingsDto {
39174
39222
  data["generateReportForApprovedInstances"] = this.generateReportForApprovedInstances;
39175
39223
  data["includeMeasuringToolsInReportAsDefault"] = this.includeMeasuringToolsInReportAsDefault;
39176
39224
  data["requireCustomerOnWorkOrders"] = this.requireCustomerOnWorkOrders;
39225
+ data["allowSchemaUpdates"] = this.allowSchemaUpdates;
39226
+ data["allowCreateInstances"] = this.allowCreateInstances;
39177
39227
  if (Array.isArray(this.resourceTypesBlockingAutoWorkflow)) {
39178
39228
  data["resourceTypesBlockingAutoWorkflow"] = [];
39179
39229
  for (let item of this.resourceTypesBlockingAutoWorkflow)
@@ -39190,6 +39240,9 @@ export class UpdateMeasurementFormSettings {
39190
39240
  this[property] = data[property];
39191
39241
  }
39192
39242
  }
39243
+ if (!data) {
39244
+ this.resourceTypesBlockingAutoWorkflow = [];
39245
+ }
39193
39246
  }
39194
39247
  init(_data) {
39195
39248
  if (_data) {
@@ -39203,6 +39256,8 @@ export class UpdateMeasurementFormSettings {
39203
39256
  this.generateReportForApprovedInstances = _data["generateReportForApprovedInstances"];
39204
39257
  this.includeMeasuringToolsInReportAsDefault = _data["includeMeasuringToolsInReportAsDefault"];
39205
39258
  this.requireCustomerOnWorkOrders = _data["requireCustomerOnWorkOrders"];
39259
+ this.allowSchemaUpdates = _data["allowSchemaUpdates"];
39260
+ this.allowCreateInstances = _data["allowCreateInstances"];
39206
39261
  if (Array.isArray(_data["resourceTypesBlockingAutoWorkflow"])) {
39207
39262
  this.resourceTypesBlockingAutoWorkflow = [];
39208
39263
  for (let item of _data["resourceTypesBlockingAutoWorkflow"])
@@ -39228,6 +39283,8 @@ export class UpdateMeasurementFormSettings {
39228
39283
  data["generateReportForApprovedInstances"] = this.generateReportForApprovedInstances;
39229
39284
  data["includeMeasuringToolsInReportAsDefault"] = this.includeMeasuringToolsInReportAsDefault;
39230
39285
  data["requireCustomerOnWorkOrders"] = this.requireCustomerOnWorkOrders;
39286
+ data["allowSchemaUpdates"] = this.allowSchemaUpdates;
39287
+ data["allowCreateInstances"] = this.allowCreateInstances;
39231
39288
  if (Array.isArray(this.resourceTypesBlockingAutoWorkflow)) {
39232
39289
  data["resourceTypesBlockingAutoWorkflow"] = [];
39233
39290
  for (let item of this.resourceTypesBlockingAutoWorkflow)
@@ -40955,6 +41012,7 @@ export class CreateMeasurementFormInstanceRequest {
40955
41012
  init(_data) {
40956
41013
  if (_data) {
40957
41014
  this.schemaId = _data["schemaId"];
41015
+ this.customerId = _data["customerId"];
40958
41016
  this.purchaseOrder = _data["purchaseOrder"];
40959
41017
  if (Array.isArray(_data["series"])) {
40960
41018
  this.series = [];
@@ -40972,6 +41030,7 @@ export class CreateMeasurementFormInstanceRequest {
40972
41030
  toJSON(data) {
40973
41031
  data = typeof data === 'object' ? data : {};
40974
41032
  data["schemaId"] = this.schemaId;
41033
+ data["customerId"] = this.customerId;
40975
41034
  data["purchaseOrder"] = this.purchaseOrder;
40976
41035
  if (Array.isArray(this.series)) {
40977
41036
  data["series"] = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250313.0.11366",
3
+ "version": "20250318.0.11384",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -16538,6 +16538,8 @@ export interface IMeasurementFormSchemasClient {
16538
16538
 
16539
16539
  updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
16540
16540
 
16541
+ deleteSchemaRow(id: string, ballonId: string | null | undefined): Promise<MeasurementFormSchemaDto>;
16542
+
16541
16543
  uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
16542
16544
 
16543
16545
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
@@ -16949,6 +16951,47 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
16949
16951
  return Promise.resolve<MeasurementFormSchemaDto>(null as any);
16950
16952
  }
16951
16953
 
16954
+ deleteSchemaRow(id: string, ballonId: string | null | undefined): Promise<MeasurementFormSchemaDto> {
16955
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/deleterow?";
16956
+ if (id === undefined || id === null)
16957
+ throw new Error("The parameter 'id' must be defined.");
16958
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
16959
+ if (ballonId !== undefined && ballonId !== null)
16960
+ url_ += "ballonId=" + encodeURIComponent("" + ballonId) + "&";
16961
+ url_ = url_.replace(/[?&]$/, "");
16962
+
16963
+ let options_: RequestInit = {
16964
+ method: "DELETE",
16965
+ headers: {
16966
+ "Accept": "application/json"
16967
+ }
16968
+ };
16969
+
16970
+ return this.transformOptions(options_).then(transformedOptions_ => {
16971
+ return this.http.fetch(url_, transformedOptions_);
16972
+ }).then((_response: Response) => {
16973
+ return this.processDeleteSchemaRow(_response);
16974
+ });
16975
+ }
16976
+
16977
+ protected processDeleteSchemaRow(response: Response): Promise<MeasurementFormSchemaDto> {
16978
+ const status = response.status;
16979
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
16980
+ if (status === 200) {
16981
+ return response.text().then((_responseText) => {
16982
+ let result200: any = null;
16983
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
16984
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
16985
+ return result200;
16986
+ });
16987
+ } else if (status !== 200 && status !== 204) {
16988
+ return response.text().then((_responseText) => {
16989
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16990
+ });
16991
+ }
16992
+ return Promise.resolve<MeasurementFormSchemaDto>(null as any);
16993
+ }
16994
+
16952
16995
  uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto> {
16953
16996
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmeasurementimage";
16954
16997
  if (id === undefined || id === null)
@@ -48168,9 +48211,10 @@ export interface IMeasurementFormSchemaAttachmentDto {
48168
48211
  }
48169
48212
 
48170
48213
  export class MeasurementFormGroupedElementDto implements IMeasurementFormGroupedElementDto {
48214
+ id!: string;
48215
+ balloonId!: string;
48171
48216
  imageUrl?: string | null;
48172
48217
  thumbnailUrl?: string | null;
48173
- balloonId!: string;
48174
48218
  section?: string | null;
48175
48219
  pageNumber?: number;
48176
48220
  sheetZone?: string | null;
@@ -48218,9 +48262,10 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
48218
48262
 
48219
48263
  init(_data?: any) {
48220
48264
  if (_data) {
48265
+ this.id = _data["id"];
48266
+ this.balloonId = _data["balloonId"];
48221
48267
  this.imageUrl = _data["imageUrl"];
48222
48268
  this.thumbnailUrl = _data["thumbnailUrl"];
48223
- this.balloonId = _data["balloonId"];
48224
48269
  this.section = _data["section"];
48225
48270
  this.pageNumber = _data["pageNumber"];
48226
48271
  this.sheetZone = _data["sheetZone"];
@@ -48268,9 +48313,10 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
48268
48313
 
48269
48314
  toJSON(data?: any) {
48270
48315
  data = typeof data === 'object' ? data : {};
48316
+ data["id"] = this.id;
48317
+ data["balloonId"] = this.balloonId;
48271
48318
  data["imageUrl"] = this.imageUrl;
48272
48319
  data["thumbnailUrl"] = this.thumbnailUrl;
48273
- data["balloonId"] = this.balloonId;
48274
48320
  data["section"] = this.section;
48275
48321
  data["pageNumber"] = this.pageNumber;
48276
48322
  data["sheetZone"] = this.sheetZone;
@@ -48311,9 +48357,10 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
48311
48357
  }
48312
48358
 
48313
48359
  export interface IMeasurementFormGroupedElementDto {
48360
+ id: string;
48361
+ balloonId: string;
48314
48362
  imageUrl?: string | null;
48315
48363
  thumbnailUrl?: string | null;
48316
- balloonId: string;
48317
48364
  section?: string | null;
48318
48365
  pageNumber?: number;
48319
48366
  sheetZone?: string | null;
@@ -48716,6 +48763,7 @@ export interface IUpdateSchemaGroupedElementDto {
48716
48763
  }
48717
48764
 
48718
48765
  export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {
48766
+ id!: string;
48719
48767
  balloonId!: string;
48720
48768
  section?: string | null;
48721
48769
  pageNumber?: number | null;
@@ -48747,6 +48795,7 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
48747
48795
 
48748
48796
  init(_data?: any) {
48749
48797
  if (_data) {
48798
+ this.id = _data["id"];
48750
48799
  this.balloonId = _data["balloonId"];
48751
48800
  this.section = _data["section"];
48752
48801
  this.pageNumber = _data["pageNumber"];
@@ -48778,6 +48827,7 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
48778
48827
 
48779
48828
  toJSON(data?: any) {
48780
48829
  data = typeof data === 'object' ? data : {};
48830
+ data["id"] = this.id;
48781
48831
  data["balloonId"] = this.balloonId;
48782
48832
  data["section"] = this.section;
48783
48833
  data["pageNumber"] = this.pageNumber;
@@ -48802,6 +48852,7 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
48802
48852
  }
48803
48853
 
48804
48854
  export interface IUpdateSchemaGroupedElementRowDto {
48855
+ id: string;
48805
48856
  balloonId: string;
48806
48857
  section?: string | null;
48807
48858
  pageNumber?: number | null;
@@ -49458,6 +49509,8 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
49458
49509
  generateReportForApprovedInstances!: boolean;
49459
49510
  includeMeasuringToolsInReportAsDefault!: boolean;
49460
49511
  requireCustomerOnWorkOrders!: boolean;
49512
+ allowSchemaUpdates!: boolean;
49513
+ allowCreateInstances!: boolean;
49461
49514
  resourceTypesBlockingAutoWorkflow?: string[] | null;
49462
49515
 
49463
49516
  constructor(data?: IMeasurementFormSettingsDto) {
@@ -49481,6 +49534,8 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
49481
49534
  this.generateReportForApprovedInstances = _data["generateReportForApprovedInstances"];
49482
49535
  this.includeMeasuringToolsInReportAsDefault = _data["includeMeasuringToolsInReportAsDefault"];
49483
49536
  this.requireCustomerOnWorkOrders = _data["requireCustomerOnWorkOrders"];
49537
+ this.allowSchemaUpdates = _data["allowSchemaUpdates"];
49538
+ this.allowCreateInstances = _data["allowCreateInstances"];
49484
49539
  if (Array.isArray(_data["resourceTypesBlockingAutoWorkflow"])) {
49485
49540
  this.resourceTypesBlockingAutoWorkflow = [] as any;
49486
49541
  for (let item of _data["resourceTypesBlockingAutoWorkflow"])
@@ -49508,6 +49563,8 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
49508
49563
  data["generateReportForApprovedInstances"] = this.generateReportForApprovedInstances;
49509
49564
  data["includeMeasuringToolsInReportAsDefault"] = this.includeMeasuringToolsInReportAsDefault;
49510
49565
  data["requireCustomerOnWorkOrders"] = this.requireCustomerOnWorkOrders;
49566
+ data["allowSchemaUpdates"] = this.allowSchemaUpdates;
49567
+ data["allowCreateInstances"] = this.allowCreateInstances;
49511
49568
  if (Array.isArray(this.resourceTypesBlockingAutoWorkflow)) {
49512
49569
  data["resourceTypesBlockingAutoWorkflow"] = [];
49513
49570
  for (let item of this.resourceTypesBlockingAutoWorkflow)
@@ -49528,6 +49585,8 @@ export interface IMeasurementFormSettingsDto {
49528
49585
  generateReportForApprovedInstances: boolean;
49529
49586
  includeMeasuringToolsInReportAsDefault: boolean;
49530
49587
  requireCustomerOnWorkOrders: boolean;
49588
+ allowSchemaUpdates: boolean;
49589
+ allowCreateInstances: boolean;
49531
49590
  resourceTypesBlockingAutoWorkflow?: string[] | null;
49532
49591
  }
49533
49592
 
@@ -49542,7 +49601,9 @@ export class UpdateMeasurementFormSettings implements IUpdateMeasurementFormSett
49542
49601
  generateReportForApprovedInstances!: boolean;
49543
49602
  includeMeasuringToolsInReportAsDefault!: boolean;
49544
49603
  requireCustomerOnWorkOrders!: boolean;
49545
- resourceTypesBlockingAutoWorkflow?: string[] | null;
49604
+ allowSchemaUpdates!: boolean;
49605
+ allowCreateInstances!: boolean;
49606
+ resourceTypesBlockingAutoWorkflow!: string[];
49546
49607
 
49547
49608
  constructor(data?: IUpdateMeasurementFormSettings) {
49548
49609
  if (data) {
@@ -49551,6 +49612,9 @@ export class UpdateMeasurementFormSettings implements IUpdateMeasurementFormSett
49551
49612
  (<any>this)[property] = (<any>data)[property];
49552
49613
  }
49553
49614
  }
49615
+ if (!data) {
49616
+ this.resourceTypesBlockingAutoWorkflow = [];
49617
+ }
49554
49618
  }
49555
49619
 
49556
49620
  init(_data?: any) {
@@ -49565,6 +49629,8 @@ export class UpdateMeasurementFormSettings implements IUpdateMeasurementFormSett
49565
49629
  this.generateReportForApprovedInstances = _data["generateReportForApprovedInstances"];
49566
49630
  this.includeMeasuringToolsInReportAsDefault = _data["includeMeasuringToolsInReportAsDefault"];
49567
49631
  this.requireCustomerOnWorkOrders = _data["requireCustomerOnWorkOrders"];
49632
+ this.allowSchemaUpdates = _data["allowSchemaUpdates"];
49633
+ this.allowCreateInstances = _data["allowCreateInstances"];
49568
49634
  if (Array.isArray(_data["resourceTypesBlockingAutoWorkflow"])) {
49569
49635
  this.resourceTypesBlockingAutoWorkflow = [] as any;
49570
49636
  for (let item of _data["resourceTypesBlockingAutoWorkflow"])
@@ -49592,6 +49658,8 @@ export class UpdateMeasurementFormSettings implements IUpdateMeasurementFormSett
49592
49658
  data["generateReportForApprovedInstances"] = this.generateReportForApprovedInstances;
49593
49659
  data["includeMeasuringToolsInReportAsDefault"] = this.includeMeasuringToolsInReportAsDefault;
49594
49660
  data["requireCustomerOnWorkOrders"] = this.requireCustomerOnWorkOrders;
49661
+ data["allowSchemaUpdates"] = this.allowSchemaUpdates;
49662
+ data["allowCreateInstances"] = this.allowCreateInstances;
49595
49663
  if (Array.isArray(this.resourceTypesBlockingAutoWorkflow)) {
49596
49664
  data["resourceTypesBlockingAutoWorkflow"] = [];
49597
49665
  for (let item of this.resourceTypesBlockingAutoWorkflow)
@@ -49612,7 +49680,9 @@ export interface IUpdateMeasurementFormSettings {
49612
49680
  generateReportForApprovedInstances: boolean;
49613
49681
  includeMeasuringToolsInReportAsDefault: boolean;
49614
49682
  requireCustomerOnWorkOrders: boolean;
49615
- resourceTypesBlockingAutoWorkflow?: string[] | null;
49683
+ allowSchemaUpdates: boolean;
49684
+ allowCreateInstances: boolean;
49685
+ resourceTypesBlockingAutoWorkflow: string[];
49616
49686
  }
49617
49687
 
49618
49688
  export class MeasurementFormCustomerSettingsDto implements IMeasurementFormCustomerSettingsDto {
@@ -52189,6 +52259,7 @@ export interface IMeasurementFormInstanceFeedbackDto {
52189
52259
 
52190
52260
  export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementFormInstanceRequest {
52191
52261
  schemaId!: string;
52262
+ customerId?: string | null;
52192
52263
  purchaseOrder?: string | null;
52193
52264
  series!: CreateMeasurementFormInstanceRequestSeries[];
52194
52265
 
@@ -52207,6 +52278,7 @@ export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementF
52207
52278
  init(_data?: any) {
52208
52279
  if (_data) {
52209
52280
  this.schemaId = _data["schemaId"];
52281
+ this.customerId = _data["customerId"];
52210
52282
  this.purchaseOrder = _data["purchaseOrder"];
52211
52283
  if (Array.isArray(_data["series"])) {
52212
52284
  this.series = [] as any;
@@ -52226,6 +52298,7 @@ export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementF
52226
52298
  toJSON(data?: any) {
52227
52299
  data = typeof data === 'object' ? data : {};
52228
52300
  data["schemaId"] = this.schemaId;
52301
+ data["customerId"] = this.customerId;
52229
52302
  data["purchaseOrder"] = this.purchaseOrder;
52230
52303
  if (Array.isArray(this.series)) {
52231
52304
  data["series"] = [];
@@ -52238,6 +52311,7 @@ export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementF
52238
52311
 
52239
52312
  export interface ICreateMeasurementFormInstanceRequest {
52240
52313
  schemaId: string;
52314
+ customerId?: string | null;
52241
52315
  purchaseOrder?: string | null;
52242
52316
  series: CreateMeasurementFormInstanceRequestSeries[];
52243
52317
  }