@alicloud/aligenieip_1_0 1.0.19 → 1.0.20

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/client.d.ts CHANGED
@@ -358,79 +358,6 @@ export declare class AddOrUpdateHotelSettingResponse extends $tea.Model {
358
358
  [key: string]: any;
359
359
  });
360
360
  }
361
- export declare class AddOrUpdateNightModeHeaders extends $tea.Model {
362
- commonHeaders?: {
363
- [key: string]: string;
364
- };
365
- xAcsAligenieAccessToken?: string;
366
- authorization?: string;
367
- static names(): {
368
- [key: string]: string;
369
- };
370
- static types(): {
371
- [key: string]: any;
372
- };
373
- constructor(map?: {
374
- [key: string]: any;
375
- });
376
- }
377
- export declare class AddOrUpdateNightModeRequest extends $tea.Model {
378
- hotelId?: string;
379
- nightMode?: AddOrUpdateNightModeRequestNightMode;
380
- static names(): {
381
- [key: string]: string;
382
- };
383
- static types(): {
384
- [key: string]: any;
385
- };
386
- constructor(map?: {
387
- [key: string]: any;
388
- });
389
- }
390
- export declare class AddOrUpdateNightModeShrinkRequest extends $tea.Model {
391
- hotelId?: string;
392
- nightModeShrink?: string;
393
- static names(): {
394
- [key: string]: string;
395
- };
396
- static types(): {
397
- [key: string]: any;
398
- };
399
- constructor(map?: {
400
- [key: string]: any;
401
- });
402
- }
403
- export declare class AddOrUpdateNightModeResponseBody extends $tea.Model {
404
- message?: string;
405
- requestId?: string;
406
- result?: boolean;
407
- statusCode?: number;
408
- static names(): {
409
- [key: string]: string;
410
- };
411
- static types(): {
412
- [key: string]: any;
413
- };
414
- constructor(map?: {
415
- [key: string]: any;
416
- });
417
- }
418
- export declare class AddOrUpdateNightModeResponse extends $tea.Model {
419
- headers: {
420
- [key: string]: string;
421
- };
422
- statusCode: number;
423
- body: AddOrUpdateNightModeResponseBody;
424
- static names(): {
425
- [key: string]: string;
426
- };
427
- static types(): {
428
- [key: string]: any;
429
- };
430
- constructor(map?: {
431
- [key: string]: any;
432
- });
433
- }
434
361
  export declare class AddOrUpdateScreenSaverHeaders extends $tea.Model {
435
362
  commonHeaders?: {
436
363
  [key: string]: string;
@@ -934,6 +861,29 @@ export declare class CreateHotelRequest extends $tea.Model {
934
861
  hotelName?: string;
935
862
  phoneNumber?: string;
936
863
  relatedPk?: string;
864
+ relatedPks?: string[];
865
+ remark?: string;
866
+ roomNum?: number;
867
+ tbOpenId?: string;
868
+ static names(): {
869
+ [key: string]: string;
870
+ };
871
+ static types(): {
872
+ [key: string]: any;
873
+ };
874
+ constructor(map?: {
875
+ [key: string]: any;
876
+ });
877
+ }
878
+ export declare class CreateHotelShrinkRequest extends $tea.Model {
879
+ appKey?: string;
880
+ estOpenTime?: string;
881
+ hotelAddress?: string;
882
+ hotelEmail?: string;
883
+ hotelName?: string;
884
+ phoneNumber?: string;
885
+ relatedPk?: string;
886
+ relatedPksShrink?: string;
937
887
  remark?: string;
938
888
  roomNum?: number;
939
889
  tbOpenId?: string;
@@ -4799,6 +4749,11 @@ export declare class SyncDeviceStatusWithAkRequest extends $tea.Model {
4799
4749
  number?: string;
4800
4750
  roomNo?: string;
4801
4751
  switch?: number;
4752
+ fanSpeed?: string;
4753
+ mode?: string;
4754
+ roomTemperature?: string;
4755
+ temperature?: string;
4756
+ value?: number;
4802
4757
  static names(): {
4803
4758
  [key: string]: string;
4804
4759
  };
@@ -5015,6 +4970,29 @@ export declare class UpdateHotelRequest extends $tea.Model {
5015
4970
  hotelId?: string;
5016
4971
  hotelName?: string;
5017
4972
  phoneNumber?: string;
4973
+ relatedPks?: string[];
4974
+ remark?: string;
4975
+ roomNum?: number;
4976
+ tbOpenId?: string;
4977
+ static names(): {
4978
+ [key: string]: string;
4979
+ };
4980
+ static types(): {
4981
+ [key: string]: any;
4982
+ };
4983
+ constructor(map?: {
4984
+ [key: string]: any;
4985
+ });
4986
+ }
4987
+ export declare class UpdateHotelShrinkRequest extends $tea.Model {
4988
+ appKey?: string;
4989
+ estOpenTime?: string;
4990
+ hotelAddress?: string;
4991
+ hotelEmail?: string;
4992
+ hotelId?: string;
4993
+ hotelName?: string;
4994
+ phoneNumber?: string;
4995
+ relatedPksShrink?: string;
5018
4996
  remark?: string;
5019
4997
  roomNum?: number;
5020
4998
  tbOpenId?: string;
@@ -5486,27 +5464,10 @@ export declare class AddOrUpdateHotelSettingRequestHotelScreenSaver extends $tea
5486
5464
  });
5487
5465
  }
5488
5466
  export declare class AddOrUpdateHotelSettingRequestNightMode extends $tea.Model {
5467
+ defaultBright?: string;
5468
+ defaultVolume?: string;
5489
5469
  enable?: boolean;
5490
5470
  end?: string;
5491
- maxBright?: string;
5492
- maxVolume?: string;
5493
- standbyAction?: string;
5494
- start?: string;
5495
- static names(): {
5496
- [key: string]: string;
5497
- };
5498
- static types(): {
5499
- [key: string]: any;
5500
- };
5501
- constructor(map?: {
5502
- [key: string]: any;
5503
- });
5504
- }
5505
- export declare class AddOrUpdateNightModeRequestNightMode extends $tea.Model {
5506
- enable?: boolean;
5507
- end?: string;
5508
- maxBright?: string;
5509
- maxVolume?: string;
5510
5471
  standbyAction?: string;
5511
5472
  start?: string;
5512
5473
  static names(): {
@@ -6077,10 +6038,10 @@ export declare class GetHotelSettingResponseBodyResultHotelScreenSaver extends $
6077
6038
  });
6078
6039
  }
6079
6040
  export declare class GetHotelSettingResponseBodyResultNightMode extends $tea.Model {
6041
+ defaultBright?: string;
6042
+ defaultVolume?: string;
6080
6043
  enable?: boolean;
6081
6044
  end?: string;
6082
- maxBright?: string;
6083
- maxVolume?: string;
6084
6045
  standbyAction?: string;
6085
6046
  start?: string;
6086
6047
  static names(): {
@@ -7304,8 +7265,6 @@ export default class Client extends OpenApi {
7304
7265
  addOrUpdateDisPlayModes(request: AddOrUpdateDisPlayModesRequest): Promise<AddOrUpdateDisPlayModesResponse>;
7305
7266
  addOrUpdateHotelSettingWithOptions(tmpReq: AddOrUpdateHotelSettingRequest, headers: AddOrUpdateHotelSettingHeaders, runtime: $Util.RuntimeOptions): Promise<AddOrUpdateHotelSettingResponse>;
7306
7267
  addOrUpdateHotelSetting(request: AddOrUpdateHotelSettingRequest): Promise<AddOrUpdateHotelSettingResponse>;
7307
- addOrUpdateNightModeWithOptions(tmpReq: AddOrUpdateNightModeRequest, headers: AddOrUpdateNightModeHeaders, runtime: $Util.RuntimeOptions): Promise<AddOrUpdateNightModeResponse>;
7308
- addOrUpdateNightMode(request: AddOrUpdateNightModeRequest): Promise<AddOrUpdateNightModeResponse>;
7309
7268
  addOrUpdateScreenSaverWithOptions(tmpReq: AddOrUpdateScreenSaverRequest, headers: AddOrUpdateScreenSaverHeaders, runtime: $Util.RuntimeOptions): Promise<AddOrUpdateScreenSaverResponse>;
7310
7269
  addOrUpdateScreenSaver(request: AddOrUpdateScreenSaverRequest): Promise<AddOrUpdateScreenSaverResponse>;
7311
7270
  addOrUpdateWelcomeTextWithOptions(request: AddOrUpdateWelcomeTextRequest, headers: AddOrUpdateWelcomeTextHeaders, runtime: $Util.RuntimeOptions): Promise<AddOrUpdateWelcomeTextResponse>;
@@ -7320,7 +7279,7 @@ export default class Client extends OpenApi {
7320
7279
  checkoutWithAK(request: CheckoutWithAKRequest): Promise<CheckoutWithAKResponse>;
7321
7280
  childAccountAuthWithOptions(request: ChildAccountAuthRequest, headers: ChildAccountAuthHeaders, runtime: $Util.RuntimeOptions): Promise<ChildAccountAuthResponse>;
7322
7281
  childAccountAuth(request: ChildAccountAuthRequest): Promise<ChildAccountAuthResponse>;
7323
- createHotelWithOptions(request: CreateHotelRequest, headers: CreateHotelHeaders, runtime: $Util.RuntimeOptions): Promise<CreateHotelResponse>;
7282
+ createHotelWithOptions(tmpReq: CreateHotelRequest, headers: CreateHotelHeaders, runtime: $Util.RuntimeOptions): Promise<CreateHotelResponse>;
7324
7283
  createHotel(request: CreateHotelRequest): Promise<CreateHotelResponse>;
7325
7284
  createHotelAlarmWithOptions(tmpReq: CreateHotelAlarmRequest, headers: CreateHotelAlarmHeaders, runtime: $Util.RuntimeOptions): Promise<CreateHotelAlarmResponse>;
7326
7285
  createHotelAlarm(request: CreateHotelAlarmRequest): Promise<CreateHotelAlarmResponse>;
@@ -7440,7 +7399,7 @@ export default class Client extends OpenApi {
7440
7399
  updateBasicInfoQA(request: UpdateBasicInfoQARequest): Promise<UpdateBasicInfoQAResponse>;
7441
7400
  updateCustomQAWithOptions(tmpReq: UpdateCustomQARequest, headers: UpdateCustomQAHeaders, runtime: $Util.RuntimeOptions): Promise<UpdateCustomQAResponse>;
7442
7401
  updateCustomQA(request: UpdateCustomQARequest): Promise<UpdateCustomQAResponse>;
7443
- updateHotelWithOptions(request: UpdateHotelRequest, headers: UpdateHotelHeaders, runtime: $Util.RuntimeOptions): Promise<UpdateHotelResponse>;
7402
+ updateHotelWithOptions(tmpReq: UpdateHotelRequest, headers: UpdateHotelHeaders, runtime: $Util.RuntimeOptions): Promise<UpdateHotelResponse>;
7444
7403
  updateHotel(request: UpdateHotelRequest): Promise<UpdateHotelResponse>;
7445
7404
  updateHotelAlarmWithOptions(tmpReq: UpdateHotelAlarmRequest, headers: UpdateHotelAlarmHeaders, runtime: $Util.RuntimeOptions): Promise<UpdateHotelAlarmResponse>;
7446
7405
  updateHotelAlarm(request: UpdateHotelAlarmRequest): Promise<UpdateHotelAlarmResponse>;
package/dist/client.js CHANGED
@@ -503,104 +503,6 @@ class AddOrUpdateHotelSettingResponse extends $tea.Model {
503
503
  }
504
504
  }
505
505
  exports.AddOrUpdateHotelSettingResponse = AddOrUpdateHotelSettingResponse;
506
- class AddOrUpdateNightModeHeaders extends $tea.Model {
507
- constructor(map) {
508
- super(map);
509
- }
510
- static names() {
511
- return {
512
- commonHeaders: 'commonHeaders',
513
- xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
514
- authorization: 'Authorization',
515
- };
516
- }
517
- static types() {
518
- return {
519
- commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
520
- xAcsAligenieAccessToken: 'string',
521
- authorization: 'string',
522
- };
523
- }
524
- }
525
- exports.AddOrUpdateNightModeHeaders = AddOrUpdateNightModeHeaders;
526
- class AddOrUpdateNightModeRequest extends $tea.Model {
527
- constructor(map) {
528
- super(map);
529
- }
530
- static names() {
531
- return {
532
- hotelId: 'HotelId',
533
- nightMode: 'NightMode',
534
- };
535
- }
536
- static types() {
537
- return {
538
- hotelId: 'string',
539
- nightMode: AddOrUpdateNightModeRequestNightMode,
540
- };
541
- }
542
- }
543
- exports.AddOrUpdateNightModeRequest = AddOrUpdateNightModeRequest;
544
- class AddOrUpdateNightModeShrinkRequest extends $tea.Model {
545
- constructor(map) {
546
- super(map);
547
- }
548
- static names() {
549
- return {
550
- hotelId: 'HotelId',
551
- nightModeShrink: 'NightMode',
552
- };
553
- }
554
- static types() {
555
- return {
556
- hotelId: 'string',
557
- nightModeShrink: 'string',
558
- };
559
- }
560
- }
561
- exports.AddOrUpdateNightModeShrinkRequest = AddOrUpdateNightModeShrinkRequest;
562
- class AddOrUpdateNightModeResponseBody extends $tea.Model {
563
- constructor(map) {
564
- super(map);
565
- }
566
- static names() {
567
- return {
568
- message: 'Message',
569
- requestId: 'RequestId',
570
- result: 'Result',
571
- statusCode: 'StatusCode',
572
- };
573
- }
574
- static types() {
575
- return {
576
- message: 'string',
577
- requestId: 'string',
578
- result: 'boolean',
579
- statusCode: 'number',
580
- };
581
- }
582
- }
583
- exports.AddOrUpdateNightModeResponseBody = AddOrUpdateNightModeResponseBody;
584
- class AddOrUpdateNightModeResponse extends $tea.Model {
585
- constructor(map) {
586
- super(map);
587
- }
588
- static names() {
589
- return {
590
- headers: 'headers',
591
- statusCode: 'statusCode',
592
- body: 'body',
593
- };
594
- }
595
- static types() {
596
- return {
597
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
598
- statusCode: 'number',
599
- body: AddOrUpdateNightModeResponseBody,
600
- };
601
- }
602
- }
603
- exports.AddOrUpdateNightModeResponse = AddOrUpdateNightModeResponse;
604
506
  class AddOrUpdateScreenSaverHeaders extends $tea.Model {
605
507
  constructor(map) {
606
508
  super(map);
@@ -1272,6 +1174,7 @@ class CreateHotelRequest extends $tea.Model {
1272
1174
  hotelName: 'HotelName',
1273
1175
  phoneNumber: 'PhoneNumber',
1274
1176
  relatedPk: 'RelatedPk',
1177
+ relatedPks: 'RelatedPks',
1275
1178
  remark: 'Remark',
1276
1179
  roomNum: 'RoomNum',
1277
1180
  tbOpenId: 'TbOpenId',
@@ -1286,6 +1189,7 @@ class CreateHotelRequest extends $tea.Model {
1286
1189
  hotelName: 'string',
1287
1190
  phoneNumber: 'string',
1288
1191
  relatedPk: 'string',
1192
+ relatedPks: { 'type': 'array', 'itemType': 'string' },
1289
1193
  remark: 'string',
1290
1194
  roomNum: 'number',
1291
1195
  tbOpenId: 'string',
@@ -1293,6 +1197,42 @@ class CreateHotelRequest extends $tea.Model {
1293
1197
  }
1294
1198
  }
1295
1199
  exports.CreateHotelRequest = CreateHotelRequest;
1200
+ class CreateHotelShrinkRequest extends $tea.Model {
1201
+ constructor(map) {
1202
+ super(map);
1203
+ }
1204
+ static names() {
1205
+ return {
1206
+ appKey: 'AppKey',
1207
+ estOpenTime: 'EstOpenTime',
1208
+ hotelAddress: 'HotelAddress',
1209
+ hotelEmail: 'HotelEmail',
1210
+ hotelName: 'HotelName',
1211
+ phoneNumber: 'PhoneNumber',
1212
+ relatedPk: 'RelatedPk',
1213
+ relatedPksShrink: 'RelatedPks',
1214
+ remark: 'Remark',
1215
+ roomNum: 'RoomNum',
1216
+ tbOpenId: 'TbOpenId',
1217
+ };
1218
+ }
1219
+ static types() {
1220
+ return {
1221
+ appKey: 'string',
1222
+ estOpenTime: 'string',
1223
+ hotelAddress: 'string',
1224
+ hotelEmail: 'string',
1225
+ hotelName: 'string',
1226
+ phoneNumber: 'string',
1227
+ relatedPk: 'string',
1228
+ relatedPksShrink: 'string',
1229
+ remark: 'string',
1230
+ roomNum: 'number',
1231
+ tbOpenId: 'string',
1232
+ };
1233
+ }
1234
+ }
1235
+ exports.CreateHotelShrinkRequest = CreateHotelShrinkRequest;
1296
1236
  class CreateHotelResponseBody extends $tea.Model {
1297
1237
  constructor(map) {
1298
1238
  super(map);
@@ -6428,6 +6368,11 @@ class SyncDeviceStatusWithAkRequest extends $tea.Model {
6428
6368
  number: 'Number',
6429
6369
  roomNo: 'RoomNo',
6430
6370
  switch: 'Switch',
6371
+ fanSpeed: 'fanSpeed',
6372
+ mode: 'mode',
6373
+ roomTemperature: 'roomTemperature',
6374
+ temperature: 'temperature',
6375
+ value: 'value',
6431
6376
  };
6432
6377
  }
6433
6378
  static types() {
@@ -6441,6 +6386,11 @@ class SyncDeviceStatusWithAkRequest extends $tea.Model {
6441
6386
  number: 'string',
6442
6387
  roomNo: 'string',
6443
6388
  switch: 'number',
6389
+ fanSpeed: 'string',
6390
+ mode: 'string',
6391
+ roomTemperature: 'string',
6392
+ temperature: 'string',
6393
+ value: 'number',
6444
6394
  };
6445
6395
  }
6446
6396
  }
@@ -6734,6 +6684,7 @@ class UpdateHotelRequest extends $tea.Model {
6734
6684
  hotelId: 'HotelId',
6735
6685
  hotelName: 'HotelName',
6736
6686
  phoneNumber: 'PhoneNumber',
6687
+ relatedPks: 'RelatedPks',
6737
6688
  remark: 'Remark',
6738
6689
  roomNum: 'RoomNum',
6739
6690
  tbOpenId: 'TbOpenId',
@@ -6748,6 +6699,7 @@ class UpdateHotelRequest extends $tea.Model {
6748
6699
  hotelId: 'string',
6749
6700
  hotelName: 'string',
6750
6701
  phoneNumber: 'string',
6702
+ relatedPks: { 'type': 'array', 'itemType': 'string' },
6751
6703
  remark: 'string',
6752
6704
  roomNum: 'number',
6753
6705
  tbOpenId: 'string',
@@ -6755,6 +6707,42 @@ class UpdateHotelRequest extends $tea.Model {
6755
6707
  }
6756
6708
  }
6757
6709
  exports.UpdateHotelRequest = UpdateHotelRequest;
6710
+ class UpdateHotelShrinkRequest extends $tea.Model {
6711
+ constructor(map) {
6712
+ super(map);
6713
+ }
6714
+ static names() {
6715
+ return {
6716
+ appKey: 'AppKey',
6717
+ estOpenTime: 'EstOpenTime',
6718
+ hotelAddress: 'HotelAddress',
6719
+ hotelEmail: 'HotelEmail',
6720
+ hotelId: 'HotelId',
6721
+ hotelName: 'HotelName',
6722
+ phoneNumber: 'PhoneNumber',
6723
+ relatedPksShrink: 'RelatedPks',
6724
+ remark: 'Remark',
6725
+ roomNum: 'RoomNum',
6726
+ tbOpenId: 'TbOpenId',
6727
+ };
6728
+ }
6729
+ static types() {
6730
+ return {
6731
+ appKey: 'string',
6732
+ estOpenTime: 'string',
6733
+ hotelAddress: 'string',
6734
+ hotelEmail: 'string',
6735
+ hotelId: 'string',
6736
+ hotelName: 'string',
6737
+ phoneNumber: 'string',
6738
+ relatedPksShrink: 'string',
6739
+ remark: 'string',
6740
+ roomNum: 'number',
6741
+ tbOpenId: 'string',
6742
+ };
6743
+ }
6744
+ }
6745
+ exports.UpdateHotelShrinkRequest = UpdateHotelShrinkRequest;
6758
6746
  class UpdateHotelResponseBody extends $tea.Model {
6759
6747
  constructor(map) {
6760
6748
  super(map);
@@ -7375,52 +7363,26 @@ class AddOrUpdateHotelSettingRequestNightMode extends $tea.Model {
7375
7363
  }
7376
7364
  static names() {
7377
7365
  return {
7366
+ defaultBright: 'DefaultBright',
7367
+ defaultVolume: 'DefaultVolume',
7378
7368
  enable: 'Enable',
7379
7369
  end: 'End',
7380
- maxBright: 'MaxBright',
7381
- maxVolume: 'MaxVolume',
7382
7370
  standbyAction: 'StandbyAction',
7383
7371
  start: 'Start',
7384
7372
  };
7385
7373
  }
7386
7374
  static types() {
7387
7375
  return {
7376
+ defaultBright: 'string',
7377
+ defaultVolume: 'string',
7388
7378
  enable: 'boolean',
7389
7379
  end: 'string',
7390
- maxBright: 'string',
7391
- maxVolume: 'string',
7392
7380
  standbyAction: 'string',
7393
7381
  start: 'string',
7394
7382
  };
7395
7383
  }
7396
7384
  }
7397
7385
  exports.AddOrUpdateHotelSettingRequestNightMode = AddOrUpdateHotelSettingRequestNightMode;
7398
- class AddOrUpdateNightModeRequestNightMode extends $tea.Model {
7399
- constructor(map) {
7400
- super(map);
7401
- }
7402
- static names() {
7403
- return {
7404
- enable: 'Enable',
7405
- end: 'End',
7406
- maxBright: 'MaxBright',
7407
- maxVolume: 'MaxVolume',
7408
- standbyAction: 'StandbyAction',
7409
- start: 'Start',
7410
- };
7411
- }
7412
- static types() {
7413
- return {
7414
- enable: 'boolean',
7415
- end: 'string',
7416
- maxBright: 'string',
7417
- maxVolume: 'string',
7418
- standbyAction: 'string',
7419
- start: 'string',
7420
- };
7421
- }
7422
- }
7423
- exports.AddOrUpdateNightModeRequestNightMode = AddOrUpdateNightModeRequestNightMode;
7424
7386
  class AddOrUpdateScreenSaverRequestHotelScreenSaver extends $tea.Model {
7425
7387
  constructor(map) {
7426
7388
  super(map);
@@ -8257,20 +8219,20 @@ class GetHotelSettingResponseBodyResultNightMode extends $tea.Model {
8257
8219
  }
8258
8220
  static names() {
8259
8221
  return {
8222
+ defaultBright: 'DefaultBright',
8223
+ defaultVolume: 'DefaultVolume',
8260
8224
  enable: 'Enable',
8261
8225
  end: 'End',
8262
- maxBright: 'MaxBright',
8263
- maxVolume: 'MaxVolume',
8264
8226
  standbyAction: 'StandbyAction',
8265
8227
  start: 'Start',
8266
8228
  };
8267
8229
  }
8268
8230
  static types() {
8269
8231
  return {
8232
+ defaultBright: 'string',
8233
+ defaultVolume: 'string',
8270
8234
  enable: 'boolean',
8271
8235
  end: 'string',
8272
- maxBright: 'string',
8273
- maxVolume: 'string',
8274
8236
  standbyAction: 'string',
8275
8237
  start: 'string',
8276
8238
  };
@@ -10297,52 +10259,6 @@ class Client extends openapi_client_1.default {
10297
10259
  let headers = new AddOrUpdateHotelSettingHeaders({});
10298
10260
  return await this.addOrUpdateHotelSettingWithOptions(request, headers, runtime);
10299
10261
  }
10300
- async addOrUpdateNightModeWithOptions(tmpReq, headers, runtime) {
10301
- tea_util_1.default.validateModel(tmpReq);
10302
- let request = new AddOrUpdateNightModeShrinkRequest({});
10303
- openapi_util_1.default.convert(tmpReq, request);
10304
- if (!tea_util_1.default.isUnset(tmpReq.nightMode)) {
10305
- request.nightModeShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.nightMode, "NightMode", "json");
10306
- }
10307
- let body = {};
10308
- if (!tea_util_1.default.isUnset(request.hotelId)) {
10309
- body["HotelId"] = request.hotelId;
10310
- }
10311
- if (!tea_util_1.default.isUnset(request.nightModeShrink)) {
10312
- body["NightMode"] = request.nightModeShrink;
10313
- }
10314
- let realHeaders = {};
10315
- if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
10316
- realHeaders = headers.commonHeaders;
10317
- }
10318
- if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
10319
- realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
10320
- }
10321
- if (!tea_util_1.default.isUnset(headers.authorization)) {
10322
- realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
10323
- }
10324
- let req = new $OpenApi.OpenApiRequest({
10325
- headers: realHeaders,
10326
- body: openapi_util_1.default.parseToMap(body),
10327
- });
10328
- let params = new $OpenApi.Params({
10329
- action: "AddOrUpdateNightMode",
10330
- version: "ip_1.0",
10331
- protocol: "HTTPS",
10332
- pathname: `/v1.0/ip/addOrUpdateNightMode`,
10333
- method: "POST",
10334
- authType: "AK",
10335
- style: "ROA",
10336
- reqBodyType: "formData",
10337
- bodyType: "json",
10338
- });
10339
- return $tea.cast(await this.callApi(params, req, runtime), new AddOrUpdateNightModeResponse({}));
10340
- }
10341
- async addOrUpdateNightMode(request) {
10342
- let runtime = new $Util.RuntimeOptions({});
10343
- let headers = new AddOrUpdateNightModeHeaders({});
10344
- return await this.addOrUpdateNightModeWithOptions(request, headers, runtime);
10345
- }
10346
10262
  async addOrUpdateScreenSaverWithOptions(tmpReq, headers, runtime) {
10347
10263
  tea_util_1.default.validateModel(tmpReq);
10348
10264
  let request = new AddOrUpdateScreenSaverShrinkRequest({});
@@ -10656,8 +10572,13 @@ class Client extends openapi_client_1.default {
10656
10572
  let headers = new ChildAccountAuthHeaders({});
10657
10573
  return await this.childAccountAuthWithOptions(request, headers, runtime);
10658
10574
  }
10659
- async createHotelWithOptions(request, headers, runtime) {
10660
- tea_util_1.default.validateModel(request);
10575
+ async createHotelWithOptions(tmpReq, headers, runtime) {
10576
+ tea_util_1.default.validateModel(tmpReq);
10577
+ let request = new CreateHotelShrinkRequest({});
10578
+ openapi_util_1.default.convert(tmpReq, request);
10579
+ if (!tea_util_1.default.isUnset(tmpReq.relatedPks)) {
10580
+ request.relatedPksShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.relatedPks, "RelatedPks", "json");
10581
+ }
10661
10582
  let body = {};
10662
10583
  if (!tea_util_1.default.isUnset(request.appKey)) {
10663
10584
  body["AppKey"] = request.appKey;
@@ -10680,6 +10601,9 @@ class Client extends openapi_client_1.default {
10680
10601
  if (!tea_util_1.default.isUnset(request.relatedPk)) {
10681
10602
  body["RelatedPk"] = request.relatedPk;
10682
10603
  }
10604
+ if (!tea_util_1.default.isUnset(request.relatedPksShrink)) {
10605
+ body["RelatedPks"] = request.relatedPksShrink;
10606
+ }
10683
10607
  if (!tea_util_1.default.isUnset(request.remark)) {
10684
10608
  body["Remark"] = request.remark;
10685
10609
  }
@@ -13226,6 +13150,21 @@ class Client extends openapi_client_1.default {
13226
13150
  if (!tea_util_1.default.isUnset(request.switch)) {
13227
13151
  body["Switch"] = request.switch;
13228
13152
  }
13153
+ if (!tea_util_1.default.isUnset(request.fanSpeed)) {
13154
+ body["fanSpeed"] = request.fanSpeed;
13155
+ }
13156
+ if (!tea_util_1.default.isUnset(request.mode)) {
13157
+ body["mode"] = request.mode;
13158
+ }
13159
+ if (!tea_util_1.default.isUnset(request.roomTemperature)) {
13160
+ body["roomTemperature"] = request.roomTemperature;
13161
+ }
13162
+ if (!tea_util_1.default.isUnset(request.temperature)) {
13163
+ body["temperature"] = request.temperature;
13164
+ }
13165
+ if (!tea_util_1.default.isUnset(request.value)) {
13166
+ body["value"] = request.value;
13167
+ }
13229
13168
  let realHeaders = {};
13230
13169
  if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
13231
13170
  realHeaders = headers.commonHeaders;
@@ -13393,8 +13332,13 @@ class Client extends openapi_client_1.default {
13393
13332
  let headers = new UpdateCustomQAHeaders({});
13394
13333
  return await this.updateCustomQAWithOptions(request, headers, runtime);
13395
13334
  }
13396
- async updateHotelWithOptions(request, headers, runtime) {
13397
- tea_util_1.default.validateModel(request);
13335
+ async updateHotelWithOptions(tmpReq, headers, runtime) {
13336
+ tea_util_1.default.validateModel(tmpReq);
13337
+ let request = new UpdateHotelShrinkRequest({});
13338
+ openapi_util_1.default.convert(tmpReq, request);
13339
+ if (!tea_util_1.default.isUnset(tmpReq.relatedPks)) {
13340
+ request.relatedPksShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.relatedPks, "RelatedPks", "json");
13341
+ }
13398
13342
  let body = {};
13399
13343
  if (!tea_util_1.default.isUnset(request.appKey)) {
13400
13344
  body["AppKey"] = request.appKey;
@@ -13417,6 +13361,9 @@ class Client extends openapi_client_1.default {
13417
13361
  if (!tea_util_1.default.isUnset(request.phoneNumber)) {
13418
13362
  body["PhoneNumber"] = request.phoneNumber;
13419
13363
  }
13364
+ if (!tea_util_1.default.isUnset(request.relatedPksShrink)) {
13365
+ body["RelatedPks"] = request.relatedPksShrink;
13366
+ }
13420
13367
  if (!tea_util_1.default.isUnset(request.remark)) {
13421
13368
  body["Remark"] = request.remark;
13422
13369
  }