@wix/create-app 0.0.5 → 0.0.6
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.cjs
CHANGED
|
@@ -16372,9 +16372,9 @@ var require_verror = __commonJS({
|
|
|
16372
16372
|
}
|
|
16373
16373
|
});
|
|
16374
16374
|
|
|
16375
|
-
// ../../node_modules/retry/lib/retry_operation.js
|
|
16375
|
+
// ../../node_modules/p-retry/node_modules/retry/lib/retry_operation.js
|
|
16376
16376
|
var require_retry_operation = __commonJS({
|
|
16377
|
-
"../../node_modules/retry/lib/retry_operation.js"(exports, module2) {
|
|
16377
|
+
"../../node_modules/p-retry/node_modules/retry/lib/retry_operation.js"(exports, module2) {
|
|
16378
16378
|
function RetryOperation(timeouts, options) {
|
|
16379
16379
|
if (typeof options === "boolean") {
|
|
16380
16380
|
options = { forever: options };
|
|
@@ -16507,9 +16507,9 @@ var require_retry_operation = __commonJS({
|
|
|
16507
16507
|
}
|
|
16508
16508
|
});
|
|
16509
16509
|
|
|
16510
|
-
// ../../node_modules/retry/lib/retry.js
|
|
16510
|
+
// ../../node_modules/p-retry/node_modules/retry/lib/retry.js
|
|
16511
16511
|
var require_retry = __commonJS({
|
|
16512
|
-
"../../node_modules/retry/lib/retry.js"(exports) {
|
|
16512
|
+
"../../node_modules/p-retry/node_modules/retry/lib/retry.js"(exports) {
|
|
16513
16513
|
var RetryOperation = require_retry_operation();
|
|
16514
16514
|
exports.operation = function(options) {
|
|
16515
16515
|
var timeouts = exports.timeouts(options);
|
|
@@ -16593,9 +16593,9 @@ var require_retry = __commonJS({
|
|
|
16593
16593
|
}
|
|
16594
16594
|
});
|
|
16595
16595
|
|
|
16596
|
-
// ../../node_modules/retry/index.js
|
|
16596
|
+
// ../../node_modules/p-retry/node_modules/retry/index.js
|
|
16597
16597
|
var require_retry2 = __commonJS({
|
|
16598
|
-
"../../node_modules/retry/index.js"(exports, module2) {
|
|
16598
|
+
"../../node_modules/p-retry/node_modules/retry/index.js"(exports, module2) {
|
|
16599
16599
|
module2.exports = require_retry();
|
|
16600
16600
|
}
|
|
16601
16601
|
});
|
|
@@ -42492,6 +42492,9 @@ var ComponentType;
|
|
|
42492
42492
|
ComponentType2["PING_UOU_NOTIFICATION"] = "PING_UOU_NOTIFICATION";
|
|
42493
42493
|
ComponentType2["HEADLESS_OAUTH"] = "HEADLESS_OAUTH";
|
|
42494
42494
|
ComponentType2["ECOM_TAX_CALCULATOR_SPI"] = "ECOM_TAX_CALCULATOR_SPI";
|
|
42495
|
+
ComponentType2["ENTITLEMENT_PROVIDER"] = "ENTITLEMENT_PROVIDER";
|
|
42496
|
+
ComponentType2["COMMENTS_MODERATION_PROVIDER"] = "COMMENTS_MODERATION_PROVIDER";
|
|
42497
|
+
ComponentType2["GRID_APP_FILES_TRANSFORMER"] = "GRID_APP_FILES_TRANSFORMER";
|
|
42495
42498
|
})(ComponentType || (ComponentType = {}));
|
|
42496
42499
|
var WidgetVertical;
|
|
42497
42500
|
(function(WidgetVertical2) {
|
|
@@ -42664,6 +42667,7 @@ var PluginInterface;
|
|
|
42664
42667
|
PluginInterface2["RATINGS_SUMMARY"] = "RATINGS_SUMMARY";
|
|
42665
42668
|
PluginInterface2["ENV"] = "ENV";
|
|
42666
42669
|
PluginInterface2["RATINGS_SUMMARY_OOI_LIST"] = "RATINGS_SUMMARY_OOI_LIST";
|
|
42670
|
+
PluginInterface2["BOOKINGS_SERVICE"] = "BOOKINGS_SERVICE";
|
|
42667
42671
|
})(PluginInterface || (PluginInterface = {}));
|
|
42668
42672
|
var MandatoryField;
|
|
42669
42673
|
(function(MandatoryField2) {
|
|
@@ -43644,6 +43648,23 @@ function getDevelopmentSites(payload) {
|
|
|
43644
43648
|
return __getDevelopmentSites;
|
|
43645
43649
|
}
|
|
43646
43650
|
|
|
43651
|
+
// src/clients/dev-center/schemas.ts
|
|
43652
|
+
var createAppSchema = mod.object({
|
|
43653
|
+
appId: mod.string()
|
|
43654
|
+
});
|
|
43655
|
+
var createComponentSchema = mod.object({
|
|
43656
|
+
compId: mod.string()
|
|
43657
|
+
});
|
|
43658
|
+
var createDevelopmentSiteSchema = mod.object({
|
|
43659
|
+
developmentSite: mod.object({
|
|
43660
|
+
id: mod.string(),
|
|
43661
|
+
siteName: mod.string()
|
|
43662
|
+
})
|
|
43663
|
+
});
|
|
43664
|
+
var getDevelopmentSitesSchema = mod.object({
|
|
43665
|
+
developmentSites: mod.array(mod.object({}))
|
|
43666
|
+
});
|
|
43667
|
+
|
|
43647
43668
|
// src/clients/dev-center/dev-center-client.ts
|
|
43648
43669
|
var DevCenterClient = class {
|
|
43649
43670
|
constructor(httpClient, retryOptions = {
|
|
@@ -43658,28 +43679,28 @@ var DevCenterClient = class {
|
|
|
43658
43679
|
() => this.httpClient.request(create(opts)),
|
|
43659
43680
|
this.retryOptions
|
|
43660
43681
|
);
|
|
43661
|
-
return data;
|
|
43682
|
+
return createAppSchema.parse(data);
|
|
43662
43683
|
}
|
|
43663
43684
|
async createComponent(opts) {
|
|
43664
43685
|
const { data } = await pRetry(
|
|
43665
43686
|
() => this.httpClient.request(create2(opts)),
|
|
43666
43687
|
this.retryOptions
|
|
43667
43688
|
);
|
|
43668
|
-
return data;
|
|
43689
|
+
return createComponentSchema.parse(data);
|
|
43669
43690
|
}
|
|
43670
43691
|
async createDevSite(opts) {
|
|
43671
43692
|
const { data } = await pRetry(
|
|
43672
43693
|
() => this.httpClient.request(createDevelopmentSite(opts)),
|
|
43673
43694
|
this.retryOptions
|
|
43674
43695
|
);
|
|
43675
|
-
return data.developmentSite;
|
|
43696
|
+
return createDevelopmentSiteSchema.parse(data).developmentSite;
|
|
43676
43697
|
}
|
|
43677
43698
|
async getDevSites() {
|
|
43678
43699
|
const { data } = await pRetry(
|
|
43679
43700
|
() => this.httpClient.request(getDevelopmentSites({})),
|
|
43680
43701
|
this.retryOptions
|
|
43681
43702
|
);
|
|
43682
|
-
return data.developmentSites;
|
|
43703
|
+
return getDevelopmentSitesSchema.parse(data).developmentSites;
|
|
43683
43704
|
}
|
|
43684
43705
|
};
|
|
43685
43706
|
|
|
@@ -43688,6 +43709,7 @@ var _querySitesRequest = {};
|
|
|
43688
43709
|
var _querySitesResponse = { sites: "_site" };
|
|
43689
43710
|
var _site = {
|
|
43690
43711
|
createdDate: "google.protobuf.Timestamp",
|
|
43712
|
+
updatedDate: "google.protobuf.Timestamp",
|
|
43691
43713
|
trashedDate: "google.protobuf.Timestamp"
|
|
43692
43714
|
};
|
|
43693
43715
|
function resolveComWixpressSitelistApiSiteListServiceV2Url(opts) {
|
|
@@ -43771,6 +43793,17 @@ function querySites(payload) {
|
|
|
43771
43793
|
return __querySites;
|
|
43772
43794
|
}
|
|
43773
43795
|
|
|
43796
|
+
// src/clients/site-list/schemas.ts
|
|
43797
|
+
var siteSchema = mod.object({
|
|
43798
|
+
id: mod.string(),
|
|
43799
|
+
name: mod.string(),
|
|
43800
|
+
displayName: mod.string().optional(),
|
|
43801
|
+
viewUrl: mod.string().url()
|
|
43802
|
+
});
|
|
43803
|
+
var querySitesSchema = mod.object({
|
|
43804
|
+
sites: mod.array(siteSchema)
|
|
43805
|
+
});
|
|
43806
|
+
|
|
43774
43807
|
// src/clients/site-list/site-list-client.ts
|
|
43775
43808
|
var SiteListClient = class {
|
|
43776
43809
|
constructor(httpClient) {
|
|
@@ -43778,7 +43811,7 @@ var SiteListClient = class {
|
|
|
43778
43811
|
}
|
|
43779
43812
|
async querySites(opts = {}) {
|
|
43780
43813
|
const { data } = await this.httpClient.request(querySites(opts));
|
|
43781
|
-
return data.sites;
|
|
43814
|
+
return querySitesSchema.parse(data).sites;
|
|
43782
43815
|
}
|
|
43783
43816
|
};
|
|
43784
43817
|
|
|
@@ -44410,7 +44443,7 @@ function destroyStdinStreamForTestsToWork() {
|
|
|
44410
44443
|
|
|
44411
44444
|
// package.json
|
|
44412
44445
|
var name = "@wix/create-app";
|
|
44413
|
-
var version = "0.0.
|
|
44446
|
+
var version = "0.0.6";
|
|
44414
44447
|
|
|
44415
44448
|
// src/index.ts
|
|
44416
44449
|
(async () => {
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/create-app",
|
|
3
3
|
"description": "Create Wix apps",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6",
|
|
5
5
|
"author": "Ihor Machuzhak",
|
|
6
6
|
"bin": "bin/index.cjs",
|
|
7
7
|
"devDependencies": {
|
|
8
8
|
"@commander-js/extra-typings": "^10.0.2",
|
|
9
9
|
"@types/prompts": "^2.4.2",
|
|
10
|
-
"@wix/ambassador-devcenter-apps-v1-app": "^1.0.
|
|
11
|
-
"@wix/ambassador-devcenter-components-v1-component": "^1.0.
|
|
12
|
-
"@wix/ambassador-devcenter-dsm-v1-development-site": "^1.0.
|
|
13
|
-
"@wix/ambassador-site-list-v2-site": "^1.0.
|
|
10
|
+
"@wix/ambassador-devcenter-apps-v1-app": "^1.0.208",
|
|
11
|
+
"@wix/ambassador-devcenter-components-v1-component": "^1.0.178",
|
|
12
|
+
"@wix/ambassador-devcenter-dsm-v1-development-site": "^1.0.16",
|
|
13
|
+
"@wix/ambassador-site-list-v2-site": "^1.0.59",
|
|
14
14
|
"@wix/cli-auth": "0.0.0",
|
|
15
15
|
"@wix/gena": "0.0.0",
|
|
16
16
|
"@wix/http-client": "^1.526.0",
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"ora": "^6.1.2",
|
|
22
22
|
"p-retry": "^5.1.2",
|
|
23
23
|
"prompts": "^2.4.2",
|
|
24
|
-
"tsup": "^6.5.0"
|
|
24
|
+
"tsup": "^6.5.0",
|
|
25
|
+
"zod": "^3.20.2"
|
|
25
26
|
},
|
|
26
27
|
"engines": {
|
|
27
28
|
"node": ">= 14.18"
|
|
@@ -65,5 +66,5 @@
|
|
|
65
66
|
]
|
|
66
67
|
}
|
|
67
68
|
},
|
|
68
|
-
"falconPackageHash": "
|
|
69
|
+
"falconPackageHash": "8a71c776050674e8beee4e3ed0130397b562082f80cda88660e1e066"
|
|
69
70
|
}
|
package/templates/app/.env.ejs
DELETED