@wix/create-app 0.0.127 → 0.0.128

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/build/index.js CHANGED
@@ -45652,7 +45652,7 @@ var require_loader = __commonJS({
45652
45652
  simpleEscapeMap[i2] = simpleEscapeSequence(i2);
45653
45653
  }
45654
45654
  var i2;
45655
- function State3(input, options) {
45655
+ function State2(input, options) {
45656
45656
  this.input = input;
45657
45657
  this.filename = options["filename"] || null;
45658
45658
  this.schema = options["schema"] || DEFAULT_FULL_SCHEMA;
@@ -46619,7 +46619,7 @@ var require_loader = __commonJS({
46619
46619
  input = input.slice(1);
46620
46620
  }
46621
46621
  }
46622
- var state = new State3(input, options);
46622
+ var state = new State2(input, options);
46623
46623
  var nullpos = input.indexOf("\0");
46624
46624
  if (nullpos !== -1) {
46625
46625
  state.position = nullpos;
@@ -46779,7 +46779,7 @@ var require_dumper = __commonJS({
46779
46779
  }
46780
46780
  return "\\" + handle + common2.repeat("0", length - string.length) + string;
46781
46781
  }
46782
- function State3(options) {
46782
+ function State2(options) {
46783
46783
  this.schema = options["schema"] || DEFAULT_FULL_SCHEMA;
46784
46784
  this.indent = Math.max(1, options["indent"] || 2);
46785
46785
  this.noArrayIndent = options["noArrayIndent"] || false;
@@ -47210,7 +47210,7 @@ var require_dumper = __commonJS({
47210
47210
  }
47211
47211
  function dump(input, options) {
47212
47212
  options = options || {};
47213
- var state = new State3(options);
47213
+ var state = new State2(options);
47214
47214
  if (!state.noRefs) getDuplicateReferences(input, state);
47215
47215
  if (writeNode(state, 0, input, true, true)) return state.dump + "\n";
47216
47216
  return "";
@@ -57984,7 +57984,6 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
57984
57984
  FailedToDeployDocument: {},
57985
57985
  WaitForEditorInstallationStateFailure: {},
57986
57986
  EditorPendingInstallationCheckTimedout: {},
57987
- FailedToParseLatestVersion: (0, import_variant11.fields)(),
57988
57987
  FailedToGetMonitoringLoaderScript: (0, import_variant11.fields)(),
57989
57988
  FailedToFetchWixLockFile: {},
57990
57989
  FailedToGetSdkSlotData: {},
@@ -58001,7 +58000,8 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
58001
58000
  FailedCreatingNewFunnelProject: {},
58002
58001
  FailedToFindAstroConfig: {},
58003
58002
  FailedToCreateShareUrl: {},
58004
- FailedToListShareUrls: {}
58003
+ FailedToListShareUrls: {},
58004
+ FailedToParseNextVersion: (0, import_variant11.fields)()
58005
58005
  });
58006
58006
  var CliUserErrorCode = (0, import_variant11.variant)({
58007
58007
  LatestVersionOfCreateAppRequired: (0, import_variant11.fields)(),
@@ -58092,7 +58092,6 @@ var CliUserErrorCode = (0, import_variant11.variant)({
58092
58092
  FailedToApplySiteFsManagerExternalUpdates: {},
58093
58093
  ServeDeprecated: (0, import_variant11.fields)(),
58094
58094
  CannotFindConfigReferencedAsset: (0, import_variant11.fields)(),
58095
- CannotReleaseLockedApplication: {},
58096
58095
  FailedToCreateIntellisenseAdapter: {},
58097
58096
  FailedToInitIntellisenseAdapterTypes: {},
58098
58097
  FailedToUpdateIntellisenseAdapterTypes: {},
@@ -68471,15 +68470,6 @@ function getErrorComponent(code, cause) {
68471
68470
  }
68472
68471
  );
68473
68472
  },
68474
- CannotReleaseLockedApplication: () => {
68475
- return () => /* @__PURE__ */ import_react77.default.createElement(
68476
- ErrorMessage,
68477
- {
68478
- message: "A new version of the app can not be released at this point.",
68479
- explanation: "We\u2019re reviewing this app. You can\u2019t update new changes while it\u2019s in review."
68480
- }
68481
- );
68482
- },
68483
68473
  FailedToCreateIntellisenseAdapter: () => {
68484
68474
  return () => /* @__PURE__ */ import_react77.default.createElement(
68485
68475
  ErrorMessage,
@@ -68614,14 +68604,6 @@ ${errorMessage2}`
68614
68604
  /* @__PURE__ */ import_react77.default.createElement(Text2, null, content.trim())
68615
68605
  ))))));
68616
68606
  },
68617
- FailedToParseLatestVersion: ({ version }) => {
68618
- return () => /* @__PURE__ */ import_react77.default.createElement(
68619
- SystemErrorMessage,
68620
- {
68621
- message: `The version "${version}" produced by the system does not conform to the expected semantic versioning format and could not be parsed.`
68622
- }
68623
- );
68624
- },
68625
68607
  FailedToFetchWixLockFile: () => {
68626
68608
  return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: `Failed to fetch "wix.lock" file.` });
68627
68609
  },
@@ -68773,6 +68755,14 @@ ${errorMessage2}`
68773
68755
  },
68774
68756
  FailedToListShareUrls: () => {
68775
68757
  return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to list preview URLs." });
68758
+ },
68759
+ FailedToParseNextVersion: ({ version }) => {
68760
+ return () => /* @__PURE__ */ import_react77.default.createElement(
68761
+ SystemErrorMessage,
68762
+ {
68763
+ message: `The version "${version}" produced by the system does not conform to the expected semantic versioning format and could not be parsed.`
68764
+ }
68765
+ );
68776
68766
  }
68777
68767
  });
68778
68768
  }
@@ -72308,7 +72298,7 @@ function reportCommandStartEvent({
72308
72298
  var package_default = {
72309
72299
  name: "@wix/create-app",
72310
72300
  description: "Create Wix apps",
72311
- version: "0.0.127",
72301
+ version: "0.0.128",
72312
72302
  author: "Ihor Machuzhak",
72313
72303
  bin: "bin/index.cjs",
72314
72304
  devDependencies: {
@@ -76557,176 +76547,6 @@ function updateOAuthApp(payload5) {
76557
76547
  return __updateOAuthApp;
76558
76548
  }
76559
76549
 
76560
- // ../../node_modules/@wix/ambassador-devcenter-apps-v1-app-version/build/es/http.impl.js
76561
- init_esm_shims();
76562
- var _appVersion = {
76563
- createdDate: "google.protobuf.Timestamp",
76564
- updatedDate: "google.protobuf.Timestamp"
76565
- };
76566
- var _queryAppVersionRequest = {};
76567
- var _queryAppVersionResponse = { appVersions: "_appVersion" };
76568
- function resolveWixDevcenterAppsVersionsV1AppVersionsServiceUrl(opts) {
76569
- var domainToMappings = {
76570
- "bo._base_domain_": [
76571
- {
76572
- srcPath: "/app-versions",
76573
- destPath: ""
76574
- }
76575
- ],
76576
- "wixbo.ai": [
76577
- {
76578
- srcPath: "/app-versions",
76579
- destPath: ""
76580
- }
76581
- ],
76582
- "wix-bo.com": [
76583
- {
76584
- srcPath: "/app-versions",
76585
- destPath: ""
76586
- }
76587
- ],
76588
- "dev._base_domain_": [
76589
- {
76590
- srcPath: "/app-versions",
76591
- destPath: ""
76592
- }
76593
- ],
76594
- "editor._base_domain_": [
76595
- {
76596
- srcPath: "/_api/app-versions",
76597
- destPath: ""
76598
- }
76599
- ],
76600
- "blocks._base_domain_": [
76601
- {
76602
- srcPath: "/_api/app-versions",
76603
- destPath: ""
76604
- }
76605
- ],
76606
- "create.editorx": [
76607
- {
76608
- srcPath: "/_api/app-versions",
76609
- destPath: ""
76610
- }
76611
- ],
76612
- "manage._base_domain_": [
76613
- {
76614
- srcPath: "/_api/app-versions",
76615
- destPath: ""
76616
- }
76617
- ]
76618
- };
76619
- return resolveUrl(Object.assign(opts, { domainToMappings }));
76620
- }
76621
- function queryAppVersion(payload5) {
76622
- var _a3 = serializer(_queryAppVersionRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
76623
- var fromRes = serializer(_queryAppVersionResponse, {
76624
- _appVersion
76625
- }).fromJSON;
76626
- function __queryAppVersion(_a4) {
76627
- var host = _a4.host;
76628
- var serializedData = toReq(payload5);
76629
- var metadata = {
76630
- entityFqdn: "wix.devcenter.apps.v1.app_version",
76631
- method: "POST",
76632
- methodFqn: "wix.devcenter.apps.versions.v1.AppVersionsService.QueryAppVersion",
76633
- url: resolveWixDevcenterAppsVersionsV1AppVersionsServiceUrl({
76634
- protoPath: "/v1/app-versions/query",
76635
- data: serializedData,
76636
- host
76637
- }),
76638
- data: serializedData,
76639
- transformResponse: fromRes
76640
- };
76641
- return metadata;
76642
- }
76643
- __queryAppVersion.fromReq = fromReq;
76644
- __queryAppVersion.__isAmbassador = true;
76645
- return __queryAppVersion;
76646
- }
76647
-
76648
- // ../../node_modules/@wix/ambassador-devcenter-apps-v1-app-version/build/es/types.impl.js
76649
- init_esm_shims();
76650
- var State;
76651
- (function(State3) {
76652
- State3["UNKNOWN_STATE"] = "UNKNOWN_STATE";
76653
- State3["UNLOCKED_DRAFT"] = "UNLOCKED_DRAFT";
76654
- State3["LOCKED_DRAFT"] = "LOCKED_DRAFT";
76655
- State3["PRODUCTION"] = "PRODUCTION";
76656
- })(State || (State = {}));
76657
- var Status;
76658
- (function(Status5) {
76659
- Status5["UNKNOWN"] = "UNKNOWN";
76660
- Status5["DEPRECATED"] = "DEPRECATED";
76661
- Status5["ARCHIVED"] = "ARCHIVED";
76662
- })(Status || (Status = {}));
76663
- var CreatedByType;
76664
- (function(CreatedByType3) {
76665
- CreatedByType3["UNKNOWN_CREATED_BY"] = "UNKNOWN_CREATED_BY";
76666
- CreatedByType3["USER"] = "USER";
76667
- CreatedByType3["SERVICE"] = "SERVICE";
76668
- CreatedByType3["ACCOUNT"] = "ACCOUNT";
76669
- })(CreatedByType || (CreatedByType = {}));
76670
- var PromoteStrategy;
76671
- (function(PromoteStrategy2) {
76672
- PromoteStrategy2["UNKNOWN_STRATEGY"] = "UNKNOWN_STRATEGY";
76673
- PromoteStrategy2["ENTIRE_APP"] = "ENTIRE_APP";
76674
- })(PromoteStrategy || (PromoteStrategy = {}));
76675
- var VersionStatus;
76676
- (function(VersionStatus3) {
76677
- VersionStatus3["NONE_STATUS"] = "NONE_STATUS";
76678
- VersionStatus3["DRAFT"] = "DRAFT";
76679
- VersionStatus3["SUBMITTED"] = "SUBMITTED";
76680
- VersionStatus3["IN_REVIEW"] = "IN_REVIEW";
76681
- VersionStatus3["APPROVED"] = "APPROVED";
76682
- VersionStatus3["PUBLISHED"] = "PUBLISHED";
76683
- VersionStatus3["DECLINED"] = "DECLINED";
76684
- VersionStatus3["ARCHIVED"] = "ARCHIVED";
76685
- VersionStatus3["HIDDEN"] = "HIDDEN";
76686
- VersionStatus3["RELEASED"] = "RELEASED";
76687
- })(VersionStatus || (VersionStatus = {}));
76688
- var SortOrder;
76689
- (function(SortOrder2) {
76690
- SortOrder2["ASC"] = "ASC";
76691
- SortOrder2["DESC"] = "DESC";
76692
- })(SortOrder || (SortOrder = {}));
76693
- var PlanStatus;
76694
- (function(PlanStatus3) {
76695
- PlanStatus3["UNKNOWN"] = "UNKNOWN";
76696
- PlanStatus3["VISIBLE"] = "VISIBLE";
76697
- PlanStatus3["HIDDEN"] = "HIDDEN";
76698
- })(PlanStatus || (PlanStatus = {}));
76699
- var PlanDescription;
76700
- (function(PlanDescription3) {
76701
- PlanDescription3["UNKNOWN_DESCRIPTION"] = "UNKNOWN_DESCRIPTION";
76702
- PlanDescription3["BENEFITS"] = "BENEFITS";
76703
- PlanDescription3["CUSTOM_TEXT"] = "CUSTOM_TEXT";
76704
- })(PlanDescription || (PlanDescription = {}));
76705
- var BusinessModel;
76706
- (function(BusinessModel3) {
76707
- BusinessModel3["None"] = "None";
76708
- BusinessModel3["FREEMIUM"] = "FREEMIUM";
76709
- BusinessModel3["PREMIUM"] = "PREMIUM";
76710
- BusinessModel3["FREE"] = "FREE";
76711
- BusinessModel3["WIX_PREMIUM"] = "WIX_PREMIUM";
76712
- BusinessModel3["DYNAMIC"] = "DYNAMIC";
76713
- })(BusinessModel || (BusinessModel = {}));
76714
- var Action;
76715
- (function(Action2) {
76716
- Action2["CREATED"] = "CREATED";
76717
- Action2["UPDATED"] = "UPDATED";
76718
- Action2["RESTORED"] = "RESTORED";
76719
- Action2["DELETED"] = "DELETED";
76720
- })(Action || (Action = {}));
76721
- var WebhookIdentityType;
76722
- (function(WebhookIdentityType4) {
76723
- WebhookIdentityType4["UNKNOWN"] = "UNKNOWN";
76724
- WebhookIdentityType4["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
76725
- WebhookIdentityType4["MEMBER"] = "MEMBER";
76726
- WebhookIdentityType4["WIX_USER"] = "WIX_USER";
76727
- WebhookIdentityType4["APP"] = "APP";
76728
- })(WebhookIdentityType || (WebhookIdentityType = {}));
76729
-
76730
76550
  // ../../node_modules/@wix/ambassador-devcenter-myapps-v1-my-app/build/es/http.impl.js
76731
76551
  init_esm_shims();
76732
76552
  var _myApp = {
@@ -78315,11 +78135,11 @@ var Domain;
78315
78135
  Domain3["USER"] = "USER";
78316
78136
  Domain3["WIX"] = "WIX";
78317
78137
  })(Domain || (Domain = {}));
78318
- var Status2;
78319
- (function(Status5) {
78320
- Status5["ACTIVE"] = "ACTIVE";
78321
- Status5["INACTIVE"] = "INACTIVE";
78322
- })(Status2 || (Status2 = {}));
78138
+ var Status;
78139
+ (function(Status4) {
78140
+ Status4["ACTIVE"] = "ACTIVE";
78141
+ Status4["INACTIVE"] = "INACTIVE";
78142
+ })(Status || (Status = {}));
78323
78143
  var TextInputDisplayType;
78324
78144
  (function(TextInputDisplayType3) {
78325
78145
  TextInputDisplayType3["TEXT"] = "TEXT";
@@ -78732,13 +78552,13 @@ var NavigationType;
78732
78552
  NavigationType3["NAVIGATE"] = "NAVIGATE";
78733
78553
  NavigationType3["MODAL"] = "MODAL";
78734
78554
  })(NavigationType || (NavigationType = {}));
78735
- var State2;
78736
- (function(State3) {
78737
- State3["UNKNOWN_STATE"] = "UNKNOWN_STATE";
78738
- State3["DEFAULT_ON"] = "DEFAULT_ON";
78739
- State3["DEFAULT_OFF"] = "DEFAULT_OFF";
78740
- State3["ALWAYS_ON"] = "ALWAYS_ON";
78741
- })(State2 || (State2 = {}));
78555
+ var State;
78556
+ (function(State2) {
78557
+ State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
78558
+ State2["DEFAULT_ON"] = "DEFAULT_ON";
78559
+ State2["DEFAULT_OFF"] = "DEFAULT_OFF";
78560
+ State2["ALWAYS_ON"] = "ALWAYS_ON";
78561
+ })(State || (State = {}));
78742
78562
  var NotificationTopicState;
78743
78563
  (function(NotificationTopicState3) {
78744
78564
  NotificationTopicState3["UNKNOWN_STATE"] = "UNKNOWN_STATE";
@@ -80280,14 +80100,14 @@ var VersionType;
80280
80100
  VersionType2["LATEST_VERSION"] = "LATEST_VERSION";
80281
80101
  VersionType2["DEV_VERSION"] = "DEV_VERSION";
80282
80102
  })(VersionType || (VersionType = {}));
80283
- var WebhookIdentityType2;
80284
- (function(WebhookIdentityType4) {
80285
- WebhookIdentityType4["UNKNOWN"] = "UNKNOWN";
80286
- WebhookIdentityType4["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
80287
- WebhookIdentityType4["MEMBER"] = "MEMBER";
80288
- WebhookIdentityType4["WIX_USER"] = "WIX_USER";
80289
- WebhookIdentityType4["APP"] = "APP";
80290
- })(WebhookIdentityType2 || (WebhookIdentityType2 = {}));
80103
+ var WebhookIdentityType;
80104
+ (function(WebhookIdentityType3) {
80105
+ WebhookIdentityType3["UNKNOWN"] = "UNKNOWN";
80106
+ WebhookIdentityType3["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
80107
+ WebhookIdentityType3["MEMBER"] = "MEMBER";
80108
+ WebhookIdentityType3["WIX_USER"] = "WIX_USER";
80109
+ WebhookIdentityType3["APP"] = "APP";
80110
+ })(WebhookIdentityType || (WebhookIdentityType = {}));
80291
80111
 
80292
80112
  // ../dev-center-client/src/schemas.ts
80293
80113
  init_esm_shims();
@@ -80303,19 +80123,19 @@ var Classification;
80303
80123
  Classification2["HEADLESS"] = "HEADLESS";
80304
80124
  Classification2["FUNCTION_ACTIVATION_APP"] = "FUNCTION_ACTIVATION_APP";
80305
80125
  })(Classification || (Classification = {}));
80306
- var VersionStatus2;
80307
- (function(VersionStatus3) {
80308
- VersionStatus3["NONE_STATUS"] = "NONE_STATUS";
80309
- VersionStatus3["DRAFT"] = "DRAFT";
80310
- VersionStatus3["SUBMITTED"] = "SUBMITTED";
80311
- VersionStatus3["IN_REVIEW"] = "IN_REVIEW";
80312
- VersionStatus3["APPROVED"] = "APPROVED";
80313
- VersionStatus3["PUBLISHED"] = "PUBLISHED";
80314
- VersionStatus3["DECLINED"] = "DECLINED";
80315
- VersionStatus3["ARCHIVED"] = "ARCHIVED";
80316
- VersionStatus3["HIDDEN"] = "HIDDEN";
80317
- VersionStatus3["RELEASED"] = "RELEASED";
80318
- })(VersionStatus2 || (VersionStatus2 = {}));
80126
+ var VersionStatus;
80127
+ (function(VersionStatus2) {
80128
+ VersionStatus2["NONE_STATUS"] = "NONE_STATUS";
80129
+ VersionStatus2["DRAFT"] = "DRAFT";
80130
+ VersionStatus2["SUBMITTED"] = "SUBMITTED";
80131
+ VersionStatus2["IN_REVIEW"] = "IN_REVIEW";
80132
+ VersionStatus2["APPROVED"] = "APPROVED";
80133
+ VersionStatus2["PUBLISHED"] = "PUBLISHED";
80134
+ VersionStatus2["DECLINED"] = "DECLINED";
80135
+ VersionStatus2["ARCHIVED"] = "ARCHIVED";
80136
+ VersionStatus2["HIDDEN"] = "HIDDEN";
80137
+ VersionStatus2["RELEASED"] = "RELEASED";
80138
+ })(VersionStatus || (VersionStatus = {}));
80319
80139
  var ComponentType2;
80320
80140
  (function(ComponentType3) {
80321
80141
  ComponentType3["NONE"] = "NONE";
@@ -80862,11 +80682,11 @@ var Domain2;
80862
80682
  Domain3["USER"] = "USER";
80863
80683
  Domain3["WIX"] = "WIX";
80864
80684
  })(Domain2 || (Domain2 = {}));
80865
- var Status3;
80866
- (function(Status5) {
80867
- Status5["ACTIVE"] = "ACTIVE";
80868
- Status5["INACTIVE"] = "INACTIVE";
80869
- })(Status3 || (Status3 = {}));
80685
+ var Status2;
80686
+ (function(Status4) {
80687
+ Status4["ACTIVE"] = "ACTIVE";
80688
+ Status4["INACTIVE"] = "INACTIVE";
80689
+ })(Status2 || (Status2 = {}));
80870
80690
  var TextInputDisplayType2;
80871
80691
  (function(TextInputDisplayType3) {
80872
80692
  TextInputDisplayType3["TEXT"] = "TEXT";
@@ -82653,40 +82473,40 @@ var MediaType;
82653
82473
  MediaType2["IMAGE"] = "IMAGE";
82654
82474
  MediaType2["YOUTUBE"] = "YOUTUBE";
82655
82475
  })(MediaType || (MediaType = {}));
82656
- var PlanStatus2;
82657
- (function(PlanStatus3) {
82658
- PlanStatus3["UNKNOWN"] = "UNKNOWN";
82659
- PlanStatus3["VISIBLE"] = "VISIBLE";
82660
- PlanStatus3["HIDDEN"] = "HIDDEN";
82661
- })(PlanStatus2 || (PlanStatus2 = {}));
82662
- var PlanDescription2;
82663
- (function(PlanDescription3) {
82664
- PlanDescription3["UNKNOWN_DESCRIPTION"] = "UNKNOWN_DESCRIPTION";
82665
- PlanDescription3["BENEFITS"] = "BENEFITS";
82666
- PlanDescription3["CUSTOM_TEXT"] = "CUSTOM_TEXT";
82667
- })(PlanDescription2 || (PlanDescription2 = {}));
82668
- var BusinessModel2;
82669
- (function(BusinessModel3) {
82670
- BusinessModel3["None"] = "None";
82671
- BusinessModel3["FREEMIUM"] = "FREEMIUM";
82672
- BusinessModel3["PREMIUM"] = "PREMIUM";
82673
- BusinessModel3["FREE"] = "FREE";
82674
- BusinessModel3["WIX_PREMIUM"] = "WIX_PREMIUM";
82675
- BusinessModel3["DYNAMIC"] = "DYNAMIC";
82676
- })(BusinessModel2 || (BusinessModel2 = {}));
82476
+ var PlanStatus;
82477
+ (function(PlanStatus2) {
82478
+ PlanStatus2["UNKNOWN"] = "UNKNOWN";
82479
+ PlanStatus2["VISIBLE"] = "VISIBLE";
82480
+ PlanStatus2["HIDDEN"] = "HIDDEN";
82481
+ })(PlanStatus || (PlanStatus = {}));
82482
+ var PlanDescription;
82483
+ (function(PlanDescription2) {
82484
+ PlanDescription2["UNKNOWN_DESCRIPTION"] = "UNKNOWN_DESCRIPTION";
82485
+ PlanDescription2["BENEFITS"] = "BENEFITS";
82486
+ PlanDescription2["CUSTOM_TEXT"] = "CUSTOM_TEXT";
82487
+ })(PlanDescription || (PlanDescription = {}));
82488
+ var BusinessModel;
82489
+ (function(BusinessModel2) {
82490
+ BusinessModel2["None"] = "None";
82491
+ BusinessModel2["FREEMIUM"] = "FREEMIUM";
82492
+ BusinessModel2["PREMIUM"] = "PREMIUM";
82493
+ BusinessModel2["FREE"] = "FREE";
82494
+ BusinessModel2["WIX_PREMIUM"] = "WIX_PREMIUM";
82495
+ BusinessModel2["DYNAMIC"] = "DYNAMIC";
82496
+ })(BusinessModel || (BusinessModel = {}));
82677
82497
  var TranslationType;
82678
82498
  (function(TranslationType2) {
82679
82499
  TranslationType2["UNINITIALIZED"] = "UNINITIALIZED";
82680
82500
  TranslationType2["COMPONENT"] = "COMPONENT";
82681
82501
  })(TranslationType || (TranslationType = {}));
82682
- var WebhookIdentityType3;
82683
- (function(WebhookIdentityType4) {
82684
- WebhookIdentityType4["UNKNOWN"] = "UNKNOWN";
82685
- WebhookIdentityType4["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
82686
- WebhookIdentityType4["MEMBER"] = "MEMBER";
82687
- WebhookIdentityType4["WIX_USER"] = "WIX_USER";
82688
- WebhookIdentityType4["APP"] = "APP";
82689
- })(WebhookIdentityType3 || (WebhookIdentityType3 = {}));
82502
+ var WebhookIdentityType2;
82503
+ (function(WebhookIdentityType3) {
82504
+ WebhookIdentityType3["UNKNOWN"] = "UNKNOWN";
82505
+ WebhookIdentityType3["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
82506
+ WebhookIdentityType3["MEMBER"] = "MEMBER";
82507
+ WebhookIdentityType3["WIX_USER"] = "WIX_USER";
82508
+ WebhookIdentityType3["APP"] = "APP";
82509
+ })(WebhookIdentityType2 || (WebhookIdentityType2 = {}));
82690
82510
 
82691
82511
  // ../../node_modules/@wix/ambassador-devcenter-apps-v1-app-template/build/es/types.impl.js
82692
82512
  init_esm_shims();
@@ -82715,12 +82535,12 @@ var NamespaceType;
82715
82535
  NamespaceType2["ACCOUNT"] = "ACCOUNT";
82716
82536
  NamespaceType2["COMPANY"] = "COMPANY";
82717
82537
  })(NamespaceType || (NamespaceType = {}));
82718
- var Status4;
82719
- (function(Status5) {
82720
- Status5["ACTIVE"] = "ACTIVE";
82721
- Status5["DEPRECATED"] = "DEPRECATED";
82722
- Status5["ARCHIVED"] = "ARCHIVED";
82723
- })(Status4 || (Status4 = {}));
82538
+ var Status3;
82539
+ (function(Status4) {
82540
+ Status4["ACTIVE"] = "ACTIVE";
82541
+ Status4["DEPRECATED"] = "DEPRECATED";
82542
+ Status4["ARCHIVED"] = "ARCHIVED";
82543
+ })(Status3 || (Status3 = {}));
82724
82544
  var AppType3;
82725
82545
  (function(AppType4) {
82726
82546
  AppType4["SITE_APP"] = "SITE_APP";
@@ -82730,11 +82550,11 @@ var AppType3;
82730
82550
  AppType4["HEADLESS"] = "HEADLESS";
82731
82551
  AppType4["FUNCTION_ACTIVATION_APP"] = "FUNCTION_ACTIVATION_APP";
82732
82552
  })(AppType3 || (AppType3 = {}));
82733
- var CreatedByType2;
82734
- (function(CreatedByType3) {
82735
- CreatedByType3["USER"] = "USER";
82736
- CreatedByType3["APP"] = "APP";
82737
- })(CreatedByType2 || (CreatedByType2 = {}));
82553
+ var CreatedByType;
82554
+ (function(CreatedByType2) {
82555
+ CreatedByType2["USER"] = "USER";
82556
+ CreatedByType2["APP"] = "APP";
82557
+ })(CreatedByType || (CreatedByType = {}));
82738
82558
  var ShowConsentBehaviour;
82739
82559
  (function(ShowConsentBehaviour2) {
82740
82560
  ShowConsentBehaviour2["DEFAULT_BEHAVIOUR"] = "DEFAULT_BEHAVIOUR";
@@ -82795,19 +82615,6 @@ var appByVersionSchema = z.object({
82795
82615
  components: componentsSchema
82796
82616
  })
82797
82617
  });
82798
- var appVersionSchema = z.object({
82799
- appVersions: z.array(
82800
- z.object({
82801
- /** Application ID */
82802
- id: z.string(),
82803
- fullVersion: z.string().optional().default("0.0.0"),
82804
- /** indicates if this is the draft instance of the version. */
82805
- state: z.string().optional(),
82806
- /** status of the app */
82807
- status: z.string().optional()
82808
- })
82809
- )
82810
- });
82811
82618
  var appSecretsSchema = z.object({
82812
82619
  appSecret: z.string(),
82813
82620
  webhookPublicKey: z.string()
@@ -83008,55 +82815,8 @@ var DevCenterClient = class {
83008
82815
  });
83009
82816
  }
83010
82817
  };
83011
- queryAppVersion = async ({ appId }) => {
83012
- try {
83013
- const { data } = await pRetry(
83014
- () => this.httpClient.request(
83015
- queryAppVersion({
83016
- query: {
83017
- paging: {
83018
- limit: 1
83019
- },
83020
- filter: { appId },
83021
- sort: [{ fieldName: "updatedDate", order: SortOrder.DESC }]
83022
- }
83023
- })
83024
- ),
83025
- this.retryOptions
83026
- );
83027
- const parsedData = appVersionSchema.parse(data);
83028
- const lastVersion = parsedData.appVersions[0];
83029
- if (!lastVersion) {
83030
- throw new CliError({
83031
- code: CliErrorCode.AppForVersionNotFound({
83032
- version: "latest"
83033
- }),
83034
- cause: null
83035
- });
83036
- }
83037
- return {
83038
- latestVersion: lastVersion.fullVersion,
83039
- isPublished: lastVersion.state === State.PRODUCTION,
83040
- isLocked: lastVersion.state === State.LOCKED_DRAFT
83041
- };
83042
- } catch (cause) {
83043
- if (isHttpError(cause) && cause.response?.status === 404) {
83044
- throw new CliError({
83045
- code: CliErrorCode.AppForVersionNotFound({
83046
- version: "latest"
83047
- }),
83048
- cause
83049
- });
83050
- }
83051
- throw new CliError({
83052
- code: CliErrorCode.FailedToFetchAppForVersion(),
83053
- cause
83054
- });
83055
- }
83056
- };
83057
82818
  /**
83058
82819
  * This method is deprecated.
83059
- * Use `queryAppVersion()` if you need to get information about app version.
83060
82820
  */
83061
82821
  getAppByVersion = async ({
83062
82822
  appId,