@playdrop/playdrop-cli 0.15.9 → 0.15.11
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/config/client-meta.json +2 -2
- package/dist/apps/index.d.ts +2 -2
- package/dist/apps/index.js +2 -1
- package/dist/apps/loadCheck.d.ts +2 -0
- package/dist/apps/loadCheck.js +49 -0
- package/dist/apps/upload.d.ts +38 -0
- package/dist/apps/upload.js +39 -32
- package/dist/commands/upload.js +1 -0
- package/node_modules/@playdrop/api-client/dist/client.d.ts +6 -11
- package/node_modules/@playdrop/api-client/dist/client.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/client.js +11 -0
- package/node_modules/@playdrop/api-client/dist/domains/payments.d.ts +5 -11
- package/node_modules/@playdrop/api-client/dist/domains/payments.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/payments.js +11 -4
- package/node_modules/@playdrop/api-client/dist/index.d.ts +7 -14
- package/node_modules/@playdrop/api-client/dist/index.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/index.js +8 -2
- package/node_modules/@playdrop/config/client-meta.json +2 -2
- package/node_modules/@playdrop/types/dist/api.d.ts +20 -1
- package/node_modules/@playdrop/types/dist/api.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/api.js +7 -0
- package/node_modules/@playdrop/types/dist/index.d.ts +1 -0
- package/node_modules/@playdrop/types/dist/index.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/index.js +3 -1
- package/node_modules/@playdrop/types/dist/locale.d.ts +5 -0
- package/node_modules/@playdrop/types/dist/locale.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/locale.js +47 -0
- package/package.json +1 -1
|
@@ -65,6 +65,7 @@ __export(api_exports, {
|
|
|
65
65
|
CREATOR_FUNNEL_EVENT_NAMES: () => CREATOR_FUNNEL_EVENT_NAMES,
|
|
66
66
|
CREATOR_FUNNEL_SOURCE_SURFACES: () => CREATOR_FUNNEL_SOURCE_SURFACES,
|
|
67
67
|
CREATOR_PLAN_TIER_VALUES: () => CREATOR_PLAN_TIER_VALUES,
|
|
68
|
+
DEFAULT_LOCALE: () => import_locale.DEFAULT_LOCALE,
|
|
68
69
|
EMAIL_EVENT_TYPE_VALUES: () => EMAIL_EVENT_TYPE_VALUES,
|
|
69
70
|
EMAIL_MESSAGE_PROVIDER_STATUS_VALUES: () => EMAIL_MESSAGE_PROVIDER_STATUS_VALUES,
|
|
70
71
|
EMAIL_SUPPRESSION_REASON_VALUES: () => EMAIL_SUPPRESSION_REASON_VALUES,
|
|
@@ -102,6 +103,7 @@ __export(api_exports, {
|
|
|
102
103
|
SEARCH_MODE_VALUES: () => SEARCH_MODE_VALUES,
|
|
103
104
|
SEARCH_RESULT_KIND_VALUES: () => SEARCH_RESULT_KIND_VALUES,
|
|
104
105
|
SEARCH_SORT_VALUES: () => SEARCH_SORT_VALUES,
|
|
106
|
+
SUPPORTED_LOCALES: () => import_locale.SUPPORTED_LOCALES,
|
|
105
107
|
TAG_GROUP_SORT_VALUES: () => TAG_GROUP_SORT_VALUES,
|
|
106
108
|
TAG_SLUG_REGEX: () => TAG_SLUG_REGEX,
|
|
107
109
|
TRACTION_ANALYTICS_GRANULARITY_VALUES: () => TRACTION_ANALYTICS_GRANULARITY_VALUES,
|
|
@@ -109,6 +111,7 @@ __export(api_exports, {
|
|
|
109
111
|
TRACTION_ANALYTICS_SPLIT_VALUES: () => TRACTION_ANALYTICS_SPLIT_VALUES,
|
|
110
112
|
UnsupportedClientError: () => UnsupportedClientError,
|
|
111
113
|
isPaginationMeta: () => isPaginationMeta,
|
|
114
|
+
isSupportedLocale: () => import_locale.isSupportedLocale,
|
|
112
115
|
isValidCollectionSlug: () => isValidCollectionSlug,
|
|
113
116
|
isValidTagSlug: () => isValidTagSlug,
|
|
114
117
|
normalizeAgentTaskModel: () => normalizeAgentTaskModel,
|
|
@@ -118,6 +121,7 @@ __export(api_exports, {
|
|
|
118
121
|
parseTagRef: () => parseTagRef
|
|
119
122
|
});
|
|
120
123
|
module.exports = __toCommonJS(api_exports);
|
|
124
|
+
var import_locale = require("./locale.js");
|
|
121
125
|
const ACQUISITION_ATTRIBUTION_TYPES = ["install", "reengagement", "web_visit"];
|
|
122
126
|
const ACQUISITION_PLATFORMS = ["ios", "android", "web"];
|
|
123
127
|
const APP_SUBTITLE_MAX_LENGTH = 120;
|
|
@@ -636,6 +640,7 @@ class ApiError extends Error {
|
|
|
636
640
|
CREATOR_FUNNEL_EVENT_NAMES,
|
|
637
641
|
CREATOR_FUNNEL_SOURCE_SURFACES,
|
|
638
642
|
CREATOR_PLAN_TIER_VALUES,
|
|
643
|
+
DEFAULT_LOCALE,
|
|
639
644
|
EMAIL_EVENT_TYPE_VALUES,
|
|
640
645
|
EMAIL_MESSAGE_PROVIDER_STATUS_VALUES,
|
|
641
646
|
EMAIL_SUPPRESSION_REASON_VALUES,
|
|
@@ -673,6 +678,7 @@ class ApiError extends Error {
|
|
|
673
678
|
SEARCH_MODE_VALUES,
|
|
674
679
|
SEARCH_RESULT_KIND_VALUES,
|
|
675
680
|
SEARCH_SORT_VALUES,
|
|
681
|
+
SUPPORTED_LOCALES,
|
|
676
682
|
TAG_GROUP_SORT_VALUES,
|
|
677
683
|
TAG_SLUG_REGEX,
|
|
678
684
|
TRACTION_ANALYTICS_GRANULARITY_VALUES,
|
|
@@ -680,6 +686,7 @@ class ApiError extends Error {
|
|
|
680
686
|
TRACTION_ANALYTICS_SPLIT_VALUES,
|
|
681
687
|
UnsupportedClientError,
|
|
682
688
|
isPaginationMeta,
|
|
689
|
+
isSupportedLocale,
|
|
683
690
|
isValidCollectionSlug,
|
|
684
691
|
isValidTagSlug,
|
|
685
692
|
normalizeAgentTaskModel,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AAGzB,mBAAmB,eAAe,CAAC;AAGnC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AAGpC,cAAc,cAAc,CAAC;AAG7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AAGzB,mBAAmB,eAAe,CAAC;AAGnC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AAGpC,cAAc,cAAc,CAAC;AAG7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC"}
|
|
@@ -34,6 +34,7 @@ __reExport(dist_exports, require("./agent-task-playtest.js"), module.exports);
|
|
|
34
34
|
__reExport(dist_exports, require("./app-playtest-tape.js"), module.exports);
|
|
35
35
|
__reExport(dist_exports, require("./agent-task-terminal.js"), module.exports);
|
|
36
36
|
__reExport(dist_exports, require("./release-smoke.js"), module.exports);
|
|
37
|
+
__reExport(dist_exports, require("./locale.js"), module.exports);
|
|
37
38
|
// Annotate the CommonJS export names for ESM import in node:
|
|
38
39
|
0 && (module.exports = {
|
|
39
40
|
...require("./api.js"),
|
|
@@ -55,5 +56,6 @@ __reExport(dist_exports, require("./release-smoke.js"), module.exports);
|
|
|
55
56
|
...require("./agent-task-playtest.js"),
|
|
56
57
|
...require("./app-playtest-tape.js"),
|
|
57
58
|
...require("./agent-task-terminal.js"),
|
|
58
|
-
...require("./release-smoke.js")
|
|
59
|
+
...require("./release-smoke.js"),
|
|
60
|
+
...require("./locale.js")
|
|
59
61
|
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const SUPPORTED_LOCALES: readonly ["en", "fr", "de", "ja", "ko", "es", "pt-BR", "id", "zh-Hant", "zh-Hans"];
|
|
2
|
+
export type SupportedLocale = typeof SUPPORTED_LOCALES[number];
|
|
3
|
+
export declare const DEFAULT_LOCALE: SupportedLocale;
|
|
4
|
+
export declare function isSupportedLocale(value: unknown): value is SupportedLocale;
|
|
5
|
+
//# sourceMappingURL=locale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../src/locale.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,oFAWpB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAE/D,eAAO,MAAM,cAAc,EAAE,eAAsB,CAAC;AAIpD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe,CAE1E"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var locale_exports = {};
|
|
19
|
+
__export(locale_exports, {
|
|
20
|
+
DEFAULT_LOCALE: () => DEFAULT_LOCALE,
|
|
21
|
+
SUPPORTED_LOCALES: () => SUPPORTED_LOCALES,
|
|
22
|
+
isSupportedLocale: () => isSupportedLocale
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(locale_exports);
|
|
25
|
+
const SUPPORTED_LOCALES = [
|
|
26
|
+
"en",
|
|
27
|
+
"fr",
|
|
28
|
+
"de",
|
|
29
|
+
"ja",
|
|
30
|
+
"ko",
|
|
31
|
+
"es",
|
|
32
|
+
"pt-BR",
|
|
33
|
+
"id",
|
|
34
|
+
"zh-Hant",
|
|
35
|
+
"zh-Hans"
|
|
36
|
+
];
|
|
37
|
+
const DEFAULT_LOCALE = "en";
|
|
38
|
+
const SUPPORTED_LOCALE_SET = new Set(SUPPORTED_LOCALES);
|
|
39
|
+
function isSupportedLocale(value) {
|
|
40
|
+
return typeof value === "string" && SUPPORTED_LOCALE_SET.has(value);
|
|
41
|
+
}
|
|
42
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
+
0 && (module.exports = {
|
|
44
|
+
DEFAULT_LOCALE,
|
|
45
|
+
SUPPORTED_LOCALES,
|
|
46
|
+
isSupportedLocale
|
|
47
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playdrop/playdrop-cli",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.11",
|
|
4
4
|
"description": "Official Playdrop CLI for publishing browser games, creator apps, and AI-generated game assets on playdrop.ai",
|
|
5
5
|
"homepage": "https://www.playdrop.ai",
|
|
6
6
|
"repository": {
|