@wix/packages 1.0.3 → 1.0.5

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.
@@ -397,215 +397,66 @@ interface AdjustProductInstanceSpecificationsResponse$1 {
397
397
  /** Updated package that includes the adjusted product instance. */
398
398
  package?: Package$1;
399
399
  }
400
- interface UpdatePackageRequest$1 {
401
- /** Idempotency Key */
402
- idempotencyKey?: string | null;
403
- /** Updated Package */
404
- package?: Package$1;
400
+ interface UpdatePackageExternalIdRequest$1 {
401
+ /** The id of the package that we want to update. */
402
+ packageId: string;
403
+ /** The external id that will be assigned to the package. */
404
+ externalId: string;
405
405
  }
406
- interface UpdatePackageResponse$1 {
407
- /** Idempotency Key */
408
- idempotencyKey?: string | null;
406
+ interface UpdatePackageExternalIdResponse$1 {
409
407
  /** Updated Package */
410
- package?: Package$1;
408
+ updatedPackage?: Package$1;
409
+ }
410
+ interface CycleIntervalNonNullableFields$1 {
411
+ unit: IntervalIntervalUnit$1;
412
+ count: number;
413
+ }
414
+ interface ProductInstanceCycleNonNullableFields$1 {
415
+ type: CycleDescriptorType$1;
416
+ cycleDuration?: CycleIntervalNonNullableFields$1;
417
+ }
418
+ interface FailureReasonNonNullableFields$1 {
419
+ code: FailureReasonFailureReason$1;
420
+ message: string;
421
+ }
422
+ interface ProductInstanceNonNullableFields$1 {
423
+ billingInfo?: ProductInstanceCycleNonNullableFields$1;
424
+ instanceId: string;
425
+ catalogProductId: string;
426
+ status: Status$1;
427
+ failure?: FailureReasonNonNullableFields$1;
428
+ }
429
+ interface PackageNonNullableFields$1 {
430
+ id: string;
431
+ accountId: string;
432
+ productInstances: ProductInstanceNonNullableFields$1[];
411
433
  }
412
434
  interface CreatePackageResponseNonNullableFields$1 {
413
- package?: {
414
- id: string;
415
- accountId: string;
416
- productInstances: {
417
- billingInfo?: {
418
- type: CycleDescriptorType$1;
419
- cycleDuration?: {
420
- unit: IntervalIntervalUnit$1;
421
- count: number;
422
- };
423
- };
424
- instanceId: string;
425
- catalogProductId: string;
426
- status: Status$1;
427
- failure?: {
428
- code: FailureReasonFailureReason$1;
429
- message: string;
430
- };
431
- }[];
432
- };
435
+ package?: PackageNonNullableFields$1;
433
436
  }
434
437
  interface CancelPackageResponseNonNullableFields$1 {
435
- package?: {
436
- id: string;
437
- accountId: string;
438
- productInstances: {
439
- billingInfo?: {
440
- type: CycleDescriptorType$1;
441
- cycleDuration?: {
442
- unit: IntervalIntervalUnit$1;
443
- count: number;
444
- };
445
- };
446
- instanceId: string;
447
- catalogProductId: string;
448
- status: Status$1;
449
- failure?: {
450
- code: FailureReasonFailureReason$1;
451
- message: string;
452
- };
453
- }[];
454
- };
438
+ package?: PackageNonNullableFields$1;
455
439
  }
456
440
  interface GetPackageResponseNonNullableFields$1 {
457
- package?: {
458
- id: string;
459
- accountId: string;
460
- productInstances: {
461
- billingInfo?: {
462
- type: CycleDescriptorType$1;
463
- cycleDuration?: {
464
- unit: IntervalIntervalUnit$1;
465
- count: number;
466
- };
467
- };
468
- instanceId: string;
469
- catalogProductId: string;
470
- status: Status$1;
471
- failure?: {
472
- code: FailureReasonFailureReason$1;
473
- message: string;
474
- };
475
- }[];
476
- };
441
+ package?: PackageNonNullableFields$1;
477
442
  }
478
443
  interface QueryPackagesResponseNonNullableFields$1 {
479
- packages: {
480
- id: string;
481
- accountId: string;
482
- productInstances: {
483
- billingInfo?: {
484
- type: CycleDescriptorType$1;
485
- cycleDuration?: {
486
- unit: IntervalIntervalUnit$1;
487
- count: number;
488
- };
489
- };
490
- instanceId: string;
491
- catalogProductId: string;
492
- status: Status$1;
493
- failure?: {
494
- code: FailureReasonFailureReason$1;
495
- message: string;
496
- };
497
- }[];
498
- }[];
444
+ packages: PackageNonNullableFields$1[];
499
445
  }
500
446
  interface AssignProductInstanceToSiteResponseNonNullableFields$1 {
501
- package?: {
502
- id: string;
503
- accountId: string;
504
- productInstances: {
505
- billingInfo?: {
506
- type: CycleDescriptorType$1;
507
- cycleDuration?: {
508
- unit: IntervalIntervalUnit$1;
509
- count: number;
510
- };
511
- };
512
- instanceId: string;
513
- catalogProductId: string;
514
- status: Status$1;
515
- failure?: {
516
- code: FailureReasonFailureReason$1;
517
- message: string;
518
- };
519
- }[];
520
- };
447
+ package?: PackageNonNullableFields$1;
521
448
  }
522
449
  interface UnassignProductInstanceFromSiteResponseNonNullableFields$1 {
523
- package?: {
524
- id: string;
525
- accountId: string;
526
- productInstances: {
527
- billingInfo?: {
528
- type: CycleDescriptorType$1;
529
- cycleDuration?: {
530
- unit: IntervalIntervalUnit$1;
531
- count: number;
532
- };
533
- };
534
- instanceId: string;
535
- catalogProductId: string;
536
- status: Status$1;
537
- failure?: {
538
- code: FailureReasonFailureReason$1;
539
- message: string;
540
- };
541
- }[];
542
- };
450
+ package?: PackageNonNullableFields$1;
543
451
  }
544
452
  interface CancelProductInstanceResponseNonNullableFields$1 {
545
- package?: {
546
- id: string;
547
- accountId: string;
548
- productInstances: {
549
- billingInfo?: {
550
- type: CycleDescriptorType$1;
551
- cycleDuration?: {
552
- unit: IntervalIntervalUnit$1;
553
- count: number;
554
- };
555
- };
556
- instanceId: string;
557
- catalogProductId: string;
558
- status: Status$1;
559
- failure?: {
560
- code: FailureReasonFailureReason$1;
561
- message: string;
562
- };
563
- }[];
564
- };
453
+ package?: PackageNonNullableFields$1;
565
454
  }
566
455
  interface AdjustProductInstanceSpecificationsResponseNonNullableFields$1 {
567
- package?: {
568
- id: string;
569
- accountId: string;
570
- productInstances: {
571
- billingInfo?: {
572
- type: CycleDescriptorType$1;
573
- cycleDuration?: {
574
- unit: IntervalIntervalUnit$1;
575
- count: number;
576
- };
577
- };
578
- instanceId: string;
579
- catalogProductId: string;
580
- status: Status$1;
581
- failure?: {
582
- code: FailureReasonFailureReason$1;
583
- message: string;
584
- };
585
- }[];
586
- };
587
- }
588
- interface UpdatePackageResponseNonNullableFields$1 {
589
- package?: {
590
- id: string;
591
- accountId: string;
592
- productInstances: {
593
- billingInfo?: {
594
- type: CycleDescriptorType$1;
595
- cycleDuration?: {
596
- unit: IntervalIntervalUnit$1;
597
- count: number;
598
- };
599
- };
600
- instanceId: string;
601
- catalogProductId: string;
602
- status: Status$1;
603
- failure?: {
604
- code: FailureReasonFailureReason$1;
605
- message: string;
606
- };
607
- }[];
608
- };
456
+ package?: PackageNonNullableFields$1;
457
+ }
458
+ interface UpdatePackageExternalIdResponseNonNullableFields$1 {
459
+ updatedPackage?: PackageNonNullableFields$1;
609
460
  }
610
461
 
611
462
  /**
@@ -1007,215 +858,66 @@ interface AdjustProductInstanceSpecificationsResponse {
1007
858
  /** Updated package that includes the adjusted product instance. */
1008
859
  package?: Package;
1009
860
  }
1010
- interface UpdatePackageRequest {
1011
- /** Idempotency Key */
1012
- idempotencyKey?: string | null;
1013
- /** Updated Package */
1014
- package?: Package;
861
+ interface UpdatePackageExternalIdRequest {
862
+ /** The id of the package that we want to update. */
863
+ packageId: string;
864
+ /** The external id that will be assigned to the package. */
865
+ externalId: string;
1015
866
  }
1016
- interface UpdatePackageResponse {
1017
- /** Idempotency Key */
1018
- idempotencyKey?: string | null;
867
+ interface UpdatePackageExternalIdResponse {
1019
868
  /** Updated Package */
1020
- package?: Package;
869
+ updatedPackage?: Package;
870
+ }
871
+ interface CycleIntervalNonNullableFields {
872
+ unit: IntervalIntervalUnit;
873
+ count: number;
874
+ }
875
+ interface ProductInstanceCycleNonNullableFields {
876
+ type: CycleDescriptorType;
877
+ cycleDuration?: CycleIntervalNonNullableFields;
878
+ }
879
+ interface FailureReasonNonNullableFields {
880
+ code: FailureReasonFailureReason;
881
+ message: string;
882
+ }
883
+ interface ProductInstanceNonNullableFields {
884
+ billingInfo?: ProductInstanceCycleNonNullableFields;
885
+ instanceId: string;
886
+ catalogProductId: string;
887
+ status: Status;
888
+ failure?: FailureReasonNonNullableFields;
889
+ }
890
+ interface PackageNonNullableFields {
891
+ _id: string;
892
+ accountId: string;
893
+ productInstances: ProductInstanceNonNullableFields[];
1021
894
  }
1022
895
  interface CreatePackageResponseNonNullableFields {
1023
- package?: {
1024
- _id: string;
1025
- accountId: string;
1026
- productInstances: {
1027
- billingInfo?: {
1028
- type: CycleDescriptorType;
1029
- cycleDuration?: {
1030
- unit: IntervalIntervalUnit;
1031
- count: number;
1032
- };
1033
- };
1034
- instanceId: string;
1035
- catalogProductId: string;
1036
- status: Status;
1037
- failure?: {
1038
- code: FailureReasonFailureReason;
1039
- message: string;
1040
- };
1041
- }[];
1042
- };
896
+ package?: PackageNonNullableFields;
1043
897
  }
1044
898
  interface CancelPackageResponseNonNullableFields {
1045
- package?: {
1046
- _id: string;
1047
- accountId: string;
1048
- productInstances: {
1049
- billingInfo?: {
1050
- type: CycleDescriptorType;
1051
- cycleDuration?: {
1052
- unit: IntervalIntervalUnit;
1053
- count: number;
1054
- };
1055
- };
1056
- instanceId: string;
1057
- catalogProductId: string;
1058
- status: Status;
1059
- failure?: {
1060
- code: FailureReasonFailureReason;
1061
- message: string;
1062
- };
1063
- }[];
1064
- };
899
+ package?: PackageNonNullableFields;
1065
900
  }
1066
901
  interface GetPackageResponseNonNullableFields {
1067
- package?: {
1068
- _id: string;
1069
- accountId: string;
1070
- productInstances: {
1071
- billingInfo?: {
1072
- type: CycleDescriptorType;
1073
- cycleDuration?: {
1074
- unit: IntervalIntervalUnit;
1075
- count: number;
1076
- };
1077
- };
1078
- instanceId: string;
1079
- catalogProductId: string;
1080
- status: Status;
1081
- failure?: {
1082
- code: FailureReasonFailureReason;
1083
- message: string;
1084
- };
1085
- }[];
1086
- };
902
+ package?: PackageNonNullableFields;
1087
903
  }
1088
904
  interface QueryPackagesResponseNonNullableFields {
1089
- packages: {
1090
- _id: string;
1091
- accountId: string;
1092
- productInstances: {
1093
- billingInfo?: {
1094
- type: CycleDescriptorType;
1095
- cycleDuration?: {
1096
- unit: IntervalIntervalUnit;
1097
- count: number;
1098
- };
1099
- };
1100
- instanceId: string;
1101
- catalogProductId: string;
1102
- status: Status;
1103
- failure?: {
1104
- code: FailureReasonFailureReason;
1105
- message: string;
1106
- };
1107
- }[];
1108
- }[];
905
+ packages: PackageNonNullableFields[];
1109
906
  }
1110
907
  interface AssignProductInstanceToSiteResponseNonNullableFields {
1111
- package?: {
1112
- _id: string;
1113
- accountId: string;
1114
- productInstances: {
1115
- billingInfo?: {
1116
- type: CycleDescriptorType;
1117
- cycleDuration?: {
1118
- unit: IntervalIntervalUnit;
1119
- count: number;
1120
- };
1121
- };
1122
- instanceId: string;
1123
- catalogProductId: string;
1124
- status: Status;
1125
- failure?: {
1126
- code: FailureReasonFailureReason;
1127
- message: string;
1128
- };
1129
- }[];
1130
- };
908
+ package?: PackageNonNullableFields;
1131
909
  }
1132
910
  interface UnassignProductInstanceFromSiteResponseNonNullableFields {
1133
- package?: {
1134
- _id: string;
1135
- accountId: string;
1136
- productInstances: {
1137
- billingInfo?: {
1138
- type: CycleDescriptorType;
1139
- cycleDuration?: {
1140
- unit: IntervalIntervalUnit;
1141
- count: number;
1142
- };
1143
- };
1144
- instanceId: string;
1145
- catalogProductId: string;
1146
- status: Status;
1147
- failure?: {
1148
- code: FailureReasonFailureReason;
1149
- message: string;
1150
- };
1151
- }[];
1152
- };
911
+ package?: PackageNonNullableFields;
1153
912
  }
1154
913
  interface CancelProductInstanceResponseNonNullableFields {
1155
- package?: {
1156
- _id: string;
1157
- accountId: string;
1158
- productInstances: {
1159
- billingInfo?: {
1160
- type: CycleDescriptorType;
1161
- cycleDuration?: {
1162
- unit: IntervalIntervalUnit;
1163
- count: number;
1164
- };
1165
- };
1166
- instanceId: string;
1167
- catalogProductId: string;
1168
- status: Status;
1169
- failure?: {
1170
- code: FailureReasonFailureReason;
1171
- message: string;
1172
- };
1173
- }[];
1174
- };
914
+ package?: PackageNonNullableFields;
1175
915
  }
1176
916
  interface AdjustProductInstanceSpecificationsResponseNonNullableFields {
1177
- package?: {
1178
- _id: string;
1179
- accountId: string;
1180
- productInstances: {
1181
- billingInfo?: {
1182
- type: CycleDescriptorType;
1183
- cycleDuration?: {
1184
- unit: IntervalIntervalUnit;
1185
- count: number;
1186
- };
1187
- };
1188
- instanceId: string;
1189
- catalogProductId: string;
1190
- status: Status;
1191
- failure?: {
1192
- code: FailureReasonFailureReason;
1193
- message: string;
1194
- };
1195
- }[];
1196
- };
1197
- }
1198
- interface UpdatePackageResponseNonNullableFields {
1199
- package?: {
1200
- _id: string;
1201
- accountId: string;
1202
- productInstances: {
1203
- billingInfo?: {
1204
- type: CycleDescriptorType;
1205
- cycleDuration?: {
1206
- unit: IntervalIntervalUnit;
1207
- count: number;
1208
- };
1209
- };
1210
- instanceId: string;
1211
- catalogProductId: string;
1212
- status: Status;
1213
- failure?: {
1214
- code: FailureReasonFailureReason;
1215
- message: string;
1216
- };
1217
- }[];
1218
- };
917
+ package?: PackageNonNullableFields;
918
+ }
919
+ interface UpdatePackageExternalIdResponseNonNullableFields {
920
+ updatedPackage?: PackageNonNullableFields;
1219
921
  }
1220
922
 
1221
923
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
@@ -1250,7 +952,7 @@ declare function cancelProductInstance(): __PublicMethodMetaInfo<'DELETE', {
1250
952
  declare function adjustProductInstanceSpecifications(): __PublicMethodMetaInfo<'PATCH', {
1251
953
  instanceId: string;
1252
954
  }, AdjustProductInstanceSpecificationsRequest, AdjustProductInstanceSpecificationsRequest$1, AdjustProductInstanceSpecificationsResponse & AdjustProductInstanceSpecificationsResponseNonNullableFields, AdjustProductInstanceSpecificationsResponse$1 & AdjustProductInstanceSpecificationsResponseNonNullableFields$1>;
1253
- declare function updatePackage(): __PublicMethodMetaInfo<'POST', {}, UpdatePackageRequest, UpdatePackageRequest$1, UpdatePackageResponse & UpdatePackageResponseNonNullableFields, UpdatePackageResponse$1 & UpdatePackageResponseNonNullableFields$1>;
955
+ declare function updatePackageExternalId(): __PublicMethodMetaInfo<'POST', {}, UpdatePackageExternalIdRequest, UpdatePackageExternalIdRequest$1, UpdatePackageExternalIdResponse & UpdatePackageExternalIdResponseNonNullableFields, UpdatePackageExternalIdResponse$1 & UpdatePackageExternalIdResponseNonNullableFields$1>;
1254
956
 
1255
957
  type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
1256
958
  declare const meta_adjustProductInstanceSpecifications: typeof adjustProductInstanceSpecifications;
@@ -1262,9 +964,9 @@ declare const meta_createPackageV2: typeof createPackageV2;
1262
964
  declare const meta_getPackage: typeof getPackage;
1263
965
  declare const meta_queryPackages: typeof queryPackages;
1264
966
  declare const meta_unassignProductInstanceFromSite: typeof unassignProductInstanceFromSite;
1265
- declare const meta_updatePackage: typeof updatePackage;
967
+ declare const meta_updatePackageExternalId: typeof updatePackageExternalId;
1266
968
  declare namespace meta {
1267
- export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_adjustProductInstanceSpecifications as adjustProductInstanceSpecifications, meta_assignProductInstanceToSite as assignProductInstanceToSite, meta_cancelPackage as cancelPackage, meta_cancelProductInstance as cancelProductInstance, meta_createPackage as createPackage, meta_createPackageV2 as createPackageV2, meta_getPackage as getPackage, meta_queryPackages as queryPackages, meta_unassignProductInstanceFromSite as unassignProductInstanceFromSite, meta_updatePackage as updatePackage };
969
+ export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_adjustProductInstanceSpecifications as adjustProductInstanceSpecifications, meta_assignProductInstanceToSite as assignProductInstanceToSite, meta_cancelPackage as cancelPackage, meta_cancelProductInstance as cancelProductInstance, meta_createPackage as createPackage, meta_createPackageV2 as createPackageV2, meta_getPackage as getPackage, meta_queryPackages as queryPackages, meta_unassignProductInstanceFromSite as unassignProductInstanceFromSite, meta_updatePackageExternalId as updatePackageExternalId };
1268
970
  }
1269
971
 
1270
972
  export { meta as packages };