@wix/create-app 0.0.99 → 0.0.101
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 +132 -4
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -57083,6 +57083,7 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
|
|
|
57083
57083
|
FailedToWriteCache: (0, import_variant11.fields)(),
|
|
57084
57084
|
UploadApplicationFailed: {},
|
|
57085
57085
|
FailedToCreateDevCenterApp: {},
|
|
57086
|
+
FailedToAddPermission: {},
|
|
57086
57087
|
FailedToGetPlacements: {},
|
|
57087
57088
|
FailedToGetAppSecret: {},
|
|
57088
57089
|
FailedToCreateTunnel: {},
|
|
@@ -57163,7 +57164,11 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
|
|
|
57163
57164
|
EditorPendingInstallationCheckTimedout: {},
|
|
57164
57165
|
FailedToParseLatestVersion: (0, import_variant11.fields)(),
|
|
57165
57166
|
FailedToGetMonitoringLoaderScript: (0, import_variant11.fields)(),
|
|
57166
|
-
FailedToFetchWixLockFile: {}
|
|
57167
|
+
FailedToFetchWixLockFile: {},
|
|
57168
|
+
FailedToGetSdkSlotData: {},
|
|
57169
|
+
FailedToListComponentByComponentType: {},
|
|
57170
|
+
FailedToParseBackofficeExtensionContainer: {},
|
|
57171
|
+
FailedToParseBackofficePages: {}
|
|
57167
57172
|
});
|
|
57168
57173
|
var CliUserErrorCode = (0, import_variant11.variant)({
|
|
57169
57174
|
LatestVersionOfCreateAppRequired: (0, import_variant11.fields)(),
|
|
@@ -57261,7 +57266,8 @@ var CliUserErrorCode = (0, import_variant11.variant)({
|
|
|
57261
57266
|
FailedToUpdateIntellisenseAdapterTypes: {},
|
|
57262
57267
|
WebMethodOutsideOfProjectDirectory: (0, import_variant11.fields)(),
|
|
57263
57268
|
FailedToEvalBackendExtension: (0, import_variant11.fields)(),
|
|
57264
|
-
DeploymentPipelineFailed: (0, import_variant11.fields)()
|
|
57269
|
+
DeploymentPipelineFailed: (0, import_variant11.fields)(),
|
|
57270
|
+
InsufficientNonInterractiveReleaseParameters: {}
|
|
57265
57271
|
});
|
|
57266
57272
|
var CliErrorCode = (0, import_variant11.variant)({
|
|
57267
57273
|
...CliSystemErrorCode,
|
|
@@ -66609,6 +66615,9 @@ function getErrorComponent(code, cause) {
|
|
|
66609
66615
|
FailedToCreateDevCenterApp: () => {
|
|
66610
66616
|
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to register your application in Wix" });
|
|
66611
66617
|
},
|
|
66618
|
+
FailedToAddPermission: () => {
|
|
66619
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to add permission" });
|
|
66620
|
+
},
|
|
66612
66621
|
FailedToGetPlacements: () => {
|
|
66613
66622
|
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to get placements" });
|
|
66614
66623
|
},
|
|
@@ -67626,6 +67635,33 @@ function getErrorComponent(code, cause) {
|
|
|
67626
67635
|
}
|
|
67627
67636
|
);
|
|
67628
67637
|
},
|
|
67638
|
+
FailedToGetSdkSlotData: () => {
|
|
67639
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67640
|
+
SystemErrorMessage,
|
|
67641
|
+
{
|
|
67642
|
+
message: `Unable to retrieve slot details to extend`
|
|
67643
|
+
}
|
|
67644
|
+
);
|
|
67645
|
+
},
|
|
67646
|
+
FailedToListComponentByComponentType: () => {
|
|
67647
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67648
|
+
SystemErrorMessage,
|
|
67649
|
+
{
|
|
67650
|
+
message: `Unable to retrieve the list of available extensions for your application`
|
|
67651
|
+
}
|
|
67652
|
+
);
|
|
67653
|
+
},
|
|
67654
|
+
FailedToParseBackofficeExtensionContainer: () => {
|
|
67655
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67656
|
+
SystemErrorMessage,
|
|
67657
|
+
{
|
|
67658
|
+
message: `Failed to parse backoffice extension containers data`
|
|
67659
|
+
}
|
|
67660
|
+
);
|
|
67661
|
+
},
|
|
67662
|
+
FailedToParseBackofficePages: () => {
|
|
67663
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: `Failed to parse backoffice pages data` });
|
|
67664
|
+
},
|
|
67629
67665
|
FailedToDeployDocument: () => {
|
|
67630
67666
|
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to deploy site document." });
|
|
67631
67667
|
},
|
|
@@ -67646,6 +67682,14 @@ ${errorMessage}`
|
|
|
67646
67682
|
}
|
|
67647
67683
|
);
|
|
67648
67684
|
},
|
|
67685
|
+
InsufficientNonInterractiveReleaseParameters: () => {
|
|
67686
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67687
|
+
ErrorMessage,
|
|
67688
|
+
{
|
|
67689
|
+
message: `Release command in non-interactive mode requires following parameters: --comment, --version-type, --approve-minor`
|
|
67690
|
+
}
|
|
67691
|
+
);
|
|
67692
|
+
},
|
|
67649
67693
|
DeploymentPipelineFailed: ({ tasksDescriptions }) => {
|
|
67650
67694
|
return () => /* @__PURE__ */ import_react77.default.createElement(import_react77.default.Fragment, null, /* @__PURE__ */ import_react77.default.createElement(
|
|
67651
67695
|
ErrorMessage,
|
|
@@ -71164,7 +71208,7 @@ function reportCommandStartEvent({
|
|
|
71164
71208
|
}
|
|
71165
71209
|
|
|
71166
71210
|
// package.json
|
|
71167
|
-
var version = "0.0.
|
|
71211
|
+
var version = "0.0.101";
|
|
71168
71212
|
var package_default = {
|
|
71169
71213
|
name: "@wix/create-app",
|
|
71170
71214
|
description: "Create Wix apps",
|
|
@@ -77820,6 +77864,64 @@ var DiscountType;
|
|
|
77820
77864
|
DiscountType2["PERCENTAGE"] = "PERCENTAGE";
|
|
77821
77865
|
})(DiscountType || (DiscountType = {}));
|
|
77822
77866
|
|
|
77867
|
+
// ../../node_modules/@wix/ambassador-devcenter-apps-v1-app-permission/build/es/http.impl.js
|
|
77868
|
+
init_esm_shims();
|
|
77869
|
+
var _appPermission = {
|
|
77870
|
+
createdDate: "google.protobuf.Timestamp",
|
|
77871
|
+
updatedDate: "google.protobuf.Timestamp"
|
|
77872
|
+
};
|
|
77873
|
+
var _createAppPermissionRequest = { appPermission: "_appPermission" };
|
|
77874
|
+
var _createAppPermissionResponse = { appPermission: "_appPermission" };
|
|
77875
|
+
function resolveWixDevcenterAppsPermissionsV1AppPermissionsServiceUrl(opts) {
|
|
77876
|
+
var domainToMappings = {
|
|
77877
|
+
"dev._base_domain_": [
|
|
77878
|
+
{
|
|
77879
|
+
srcPath: "/app-permissions-service",
|
|
77880
|
+
destPath: ""
|
|
77881
|
+
}
|
|
77882
|
+
],
|
|
77883
|
+
"manage._base_domain_": [
|
|
77884
|
+
{
|
|
77885
|
+
srcPath: "/_api/app-permissions-service",
|
|
77886
|
+
destPath: ""
|
|
77887
|
+
}
|
|
77888
|
+
],
|
|
77889
|
+
"www._base_domain_": [
|
|
77890
|
+
{
|
|
77891
|
+
srcPath: "/_api/app-permissions-service",
|
|
77892
|
+
destPath: ""
|
|
77893
|
+
}
|
|
77894
|
+
]
|
|
77895
|
+
};
|
|
77896
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
77897
|
+
}
|
|
77898
|
+
function createAppPermission(payload5) {
|
|
77899
|
+
var _a3 = serializer(_createAppPermissionRequest, { _appPermission }), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
77900
|
+
var fromRes = serializer(_createAppPermissionResponse, {
|
|
77901
|
+
_appPermission
|
|
77902
|
+
}).fromJSON;
|
|
77903
|
+
function __createAppPermission(_a4) {
|
|
77904
|
+
var host = _a4.host;
|
|
77905
|
+
var serializedData = toReq(payload5);
|
|
77906
|
+
var metadata = {
|
|
77907
|
+
entityFqdn: "wix.devcenter.apps.v1.app_permission",
|
|
77908
|
+
method: "POST",
|
|
77909
|
+
methodFqn: "wix.devcenter.apps.permissions.v1.AppPermissionsService.CreateAppPermission",
|
|
77910
|
+
url: resolveWixDevcenterAppsPermissionsV1AppPermissionsServiceUrl({
|
|
77911
|
+
protoPath: "/v1/app-permissions",
|
|
77912
|
+
data: serializedData,
|
|
77913
|
+
host
|
|
77914
|
+
}),
|
|
77915
|
+
data: serializedData,
|
|
77916
|
+
transformResponse: fromRes
|
|
77917
|
+
};
|
|
77918
|
+
return metadata;
|
|
77919
|
+
}
|
|
77920
|
+
__createAppPermission.fromReq = fromReq;
|
|
77921
|
+
__createAppPermission.__isAmbassador = true;
|
|
77922
|
+
return __createAppPermission;
|
|
77923
|
+
}
|
|
77924
|
+
|
|
77823
77925
|
// ../dev-center-client/src/schemas.ts
|
|
77824
77926
|
init_esm_shims();
|
|
77825
77927
|
|
|
@@ -78658,7 +78760,7 @@ var ThumbnailsAlignment2;
|
|
|
78658
78760
|
})(ThumbnailsAlignment2 || (ThumbnailsAlignment2 = {}));
|
|
78659
78761
|
var GIFType;
|
|
78660
78762
|
(function(GIFType2) {
|
|
78661
|
-
GIFType2["
|
|
78763
|
+
GIFType2["NORMAL"] = "NORMAL";
|
|
78662
78764
|
GIFType2["STICKER"] = "STICKER";
|
|
78663
78765
|
})(GIFType || (GIFType = {}));
|
|
78664
78766
|
var Source2;
|
|
@@ -79786,6 +79888,32 @@ var DevCenterClient = class {
|
|
|
79786
79888
|
};
|
|
79787
79889
|
}
|
|
79788
79890
|
retryOptions;
|
|
79891
|
+
addPermission = async ({
|
|
79892
|
+
appId,
|
|
79893
|
+
permissionId
|
|
79894
|
+
}) => {
|
|
79895
|
+
try {
|
|
79896
|
+
const { data } = await pRetry(
|
|
79897
|
+
() => this.httpClient.request(
|
|
79898
|
+
createAppPermission({
|
|
79899
|
+
appPermission: {
|
|
79900
|
+
appId,
|
|
79901
|
+
permission: {
|
|
79902
|
+
permissionId
|
|
79903
|
+
}
|
|
79904
|
+
}
|
|
79905
|
+
})
|
|
79906
|
+
),
|
|
79907
|
+
this.retryOptions
|
|
79908
|
+
);
|
|
79909
|
+
return data;
|
|
79910
|
+
} catch (e2) {
|
|
79911
|
+
throw new CliError({
|
|
79912
|
+
code: CliErrorCode.FailedToAddPermission(),
|
|
79913
|
+
cause: e2
|
|
79914
|
+
});
|
|
79915
|
+
}
|
|
79916
|
+
};
|
|
79789
79917
|
createApp = async (app) => {
|
|
79790
79918
|
try {
|
|
79791
79919
|
const { data } = await pRetry(
|