@playdrop/playdrop-cli 0.15.9 → 0.15.14
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/dist/commands/worker.d.ts +3 -1
- package/dist/commands/worker.js +12 -3
- package/dist/index.js +7 -4
- package/node_modules/@playdrop/api-client/dist/client.d.ts +7 -12
- 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/admin.d.ts +2 -2
- package/node_modules/@playdrop/api-client/dist/domains/admin.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/admin.js +10 -2
- 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/config/dist/src/creator-plans.d.ts +13 -0
- package/node_modules/@playdrop/config/dist/src/creator-plans.d.ts.map +1 -1
- package/node_modules/@playdrop/config/dist/src/creator-plans.js +20 -1
- package/node_modules/@playdrop/config/dist/test/creator-plans.test.js +15 -0
- package/node_modules/@playdrop/config/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@playdrop/config/package.json +4 -0
- package/node_modules/@playdrop/types/dist/api.d.ts +52 -4
- package/node_modules/@playdrop/types/dist/api.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/api.js +25 -1
- 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 +10 -0
- package/node_modules/@playdrop/types/dist/locale.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/locale.js +76 -0
- package/package.json +1 -1
|
@@ -58,6 +58,7 @@ __export(api_exports, {
|
|
|
58
58
|
COMMUNICATION_ACTION_EXECUTION_STATUS_VALUES: () => COMMUNICATION_ACTION_EXECUTION_STATUS_VALUES,
|
|
59
59
|
COMMUNICATION_ACTION_TYPE_VALUES: () => COMMUNICATION_ACTION_TYPE_VALUES,
|
|
60
60
|
CREATOR_ACQUISITION_SOURCE_VALUES: () => CREATOR_ACQUISITION_SOURCE_VALUES,
|
|
61
|
+
CREATOR_ADVERTISING_EVENT_NAMES: () => CREATOR_ADVERTISING_EVENT_NAMES,
|
|
61
62
|
CREATOR_CREATE_MODES: () => CREATOR_CREATE_MODES,
|
|
62
63
|
CREATOR_EMAIL_CHANNEL_VALUES: () => CREATOR_EMAIL_CHANNEL_VALUES,
|
|
63
64
|
CREATOR_ENGAGEMENT_RULE_EXECUTION_STATUS_VALUES: () => CREATOR_ENGAGEMENT_RULE_EXECUTION_STATUS_VALUES,
|
|
@@ -65,6 +66,7 @@ __export(api_exports, {
|
|
|
65
66
|
CREATOR_FUNNEL_EVENT_NAMES: () => CREATOR_FUNNEL_EVENT_NAMES,
|
|
66
67
|
CREATOR_FUNNEL_SOURCE_SURFACES: () => CREATOR_FUNNEL_SOURCE_SURFACES,
|
|
67
68
|
CREATOR_PLAN_TIER_VALUES: () => CREATOR_PLAN_TIER_VALUES,
|
|
69
|
+
DEFAULT_LOCALE: () => import_locale.DEFAULT_LOCALE,
|
|
68
70
|
EMAIL_EVENT_TYPE_VALUES: () => EMAIL_EVENT_TYPE_VALUES,
|
|
69
71
|
EMAIL_MESSAGE_PROVIDER_STATUS_VALUES: () => EMAIL_MESSAGE_PROVIDER_STATUS_VALUES,
|
|
70
72
|
EMAIL_SUPPRESSION_REASON_VALUES: () => EMAIL_SUPPRESSION_REASON_VALUES,
|
|
@@ -96,21 +98,27 @@ __export(api_exports, {
|
|
|
96
98
|
NOTIFICATION_STATUS_VALUES: () => NOTIFICATION_STATUS_VALUES,
|
|
97
99
|
PAID_ACQUISITION_MAX_RANGE_DAYS: () => PAID_ACQUISITION_MAX_RANGE_DAYS,
|
|
98
100
|
PLATFORM_ANALYTICS_CLIENT_SURFACE_VALUES: () => PLATFORM_ANALYTICS_CLIENT_SURFACE_VALUES,
|
|
101
|
+
PRIMARY_LOCALE: () => import_locale.PRIMARY_LOCALE,
|
|
99
102
|
SAVED_ITEM_KIND_VALUES: () => SAVED_ITEM_KIND_VALUES,
|
|
100
103
|
SEARCH_ASSET_TYPE_VALUES: () => SEARCH_ASSET_TYPE_VALUES,
|
|
101
104
|
SEARCH_KIND_VALUES: () => SEARCH_KIND_VALUES,
|
|
102
105
|
SEARCH_MODE_VALUES: () => SEARCH_MODE_VALUES,
|
|
103
106
|
SEARCH_RESULT_KIND_VALUES: () => SEARCH_RESULT_KIND_VALUES,
|
|
104
107
|
SEARCH_SORT_VALUES: () => SEARCH_SORT_VALUES,
|
|
108
|
+
SECONDARY_LOCALES: () => import_locale.SECONDARY_LOCALES,
|
|
109
|
+
SUPPORTED_LOCALES: () => import_locale.SUPPORTED_LOCALES,
|
|
105
110
|
TAG_GROUP_SORT_VALUES: () => TAG_GROUP_SORT_VALUES,
|
|
106
111
|
TAG_SLUG_REGEX: () => TAG_SLUG_REGEX,
|
|
112
|
+
TERTIARY_LOCALES: () => import_locale.TERTIARY_LOCALES,
|
|
107
113
|
TRACTION_ANALYTICS_GRANULARITY_VALUES: () => TRACTION_ANALYTICS_GRANULARITY_VALUES,
|
|
108
114
|
TRACTION_ANALYTICS_MAX_RANGE_DAYS: () => TRACTION_ANALYTICS_MAX_RANGE_DAYS,
|
|
109
115
|
TRACTION_ANALYTICS_SPLIT_VALUES: () => TRACTION_ANALYTICS_SPLIT_VALUES,
|
|
110
116
|
UnsupportedClientError: () => UnsupportedClientError,
|
|
111
117
|
isPaginationMeta: () => isPaginationMeta,
|
|
118
|
+
isSupportedLocale: () => import_locale.isSupportedLocale,
|
|
112
119
|
isValidCollectionSlug: () => isValidCollectionSlug,
|
|
113
120
|
isValidTagSlug: () => isValidTagSlug,
|
|
121
|
+
localePriority: () => import_locale.localePriority,
|
|
114
122
|
normalizeAgentTaskModel: () => normalizeAgentTaskModel,
|
|
115
123
|
normalizeCollectionSlug: () => normalizeCollectionSlug,
|
|
116
124
|
normalizeTagRef: () => normalizeTagRef,
|
|
@@ -118,9 +126,16 @@ __export(api_exports, {
|
|
|
118
126
|
parseTagRef: () => parseTagRef
|
|
119
127
|
});
|
|
120
128
|
module.exports = __toCommonJS(api_exports);
|
|
129
|
+
var import_locale = require("./locale.js");
|
|
121
130
|
const ACQUISITION_ATTRIBUTION_TYPES = ["install", "reengagement", "web_visit"];
|
|
122
131
|
const ACQUISITION_PLATFORMS = ["ios", "android", "web"];
|
|
123
132
|
const APP_SUBTITLE_MAX_LENGTH = 120;
|
|
133
|
+
const CREATOR_ADVERTISING_EVENT_NAMES = [
|
|
134
|
+
"creator_game_playtested",
|
|
135
|
+
"creator_subscription_started",
|
|
136
|
+
"creator_referral_succeeded",
|
|
137
|
+
"creator_game_shared"
|
|
138
|
+
];
|
|
124
139
|
const CREATOR_FUNNEL_EVENT_NAMES = [
|
|
125
140
|
"creator_landed",
|
|
126
141
|
"sign_up",
|
|
@@ -135,7 +150,8 @@ const CREATOR_FUNNEL_EVENT_NAMES = [
|
|
|
135
150
|
"creator_agent_deep_link_retried",
|
|
136
151
|
"new_game_prompt_sent",
|
|
137
152
|
"creator_game_registered",
|
|
138
|
-
"creator_game_uploaded"
|
|
153
|
+
"creator_game_uploaded",
|
|
154
|
+
...CREATOR_ADVERTISING_EVENT_NAMES
|
|
139
155
|
];
|
|
140
156
|
const CREATOR_FUNNEL_SOURCE_SURFACES = [
|
|
141
157
|
"home",
|
|
@@ -629,6 +645,7 @@ class ApiError extends Error {
|
|
|
629
645
|
COMMUNICATION_ACTION_EXECUTION_STATUS_VALUES,
|
|
630
646
|
COMMUNICATION_ACTION_TYPE_VALUES,
|
|
631
647
|
CREATOR_ACQUISITION_SOURCE_VALUES,
|
|
648
|
+
CREATOR_ADVERTISING_EVENT_NAMES,
|
|
632
649
|
CREATOR_CREATE_MODES,
|
|
633
650
|
CREATOR_EMAIL_CHANNEL_VALUES,
|
|
634
651
|
CREATOR_ENGAGEMENT_RULE_EXECUTION_STATUS_VALUES,
|
|
@@ -636,6 +653,7 @@ class ApiError extends Error {
|
|
|
636
653
|
CREATOR_FUNNEL_EVENT_NAMES,
|
|
637
654
|
CREATOR_FUNNEL_SOURCE_SURFACES,
|
|
638
655
|
CREATOR_PLAN_TIER_VALUES,
|
|
656
|
+
DEFAULT_LOCALE,
|
|
639
657
|
EMAIL_EVENT_TYPE_VALUES,
|
|
640
658
|
EMAIL_MESSAGE_PROVIDER_STATUS_VALUES,
|
|
641
659
|
EMAIL_SUPPRESSION_REASON_VALUES,
|
|
@@ -667,21 +685,27 @@ class ApiError extends Error {
|
|
|
667
685
|
NOTIFICATION_STATUS_VALUES,
|
|
668
686
|
PAID_ACQUISITION_MAX_RANGE_DAYS,
|
|
669
687
|
PLATFORM_ANALYTICS_CLIENT_SURFACE_VALUES,
|
|
688
|
+
PRIMARY_LOCALE,
|
|
670
689
|
SAVED_ITEM_KIND_VALUES,
|
|
671
690
|
SEARCH_ASSET_TYPE_VALUES,
|
|
672
691
|
SEARCH_KIND_VALUES,
|
|
673
692
|
SEARCH_MODE_VALUES,
|
|
674
693
|
SEARCH_RESULT_KIND_VALUES,
|
|
675
694
|
SEARCH_SORT_VALUES,
|
|
695
|
+
SECONDARY_LOCALES,
|
|
696
|
+
SUPPORTED_LOCALES,
|
|
676
697
|
TAG_GROUP_SORT_VALUES,
|
|
677
698
|
TAG_SLUG_REGEX,
|
|
699
|
+
TERTIARY_LOCALES,
|
|
678
700
|
TRACTION_ANALYTICS_GRANULARITY_VALUES,
|
|
679
701
|
TRACTION_ANALYTICS_MAX_RANGE_DAYS,
|
|
680
702
|
TRACTION_ANALYTICS_SPLIT_VALUES,
|
|
681
703
|
UnsupportedClientError,
|
|
682
704
|
isPaginationMeta,
|
|
705
|
+
isSupportedLocale,
|
|
683
706
|
isValidCollectionSlug,
|
|
684
707
|
isValidTagSlug,
|
|
708
|
+
localePriority,
|
|
685
709
|
normalizeAgentTaskModel,
|
|
686
710
|
normalizeCollectionSlug,
|
|
687
711
|
normalizeTagRef,
|
|
@@ -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,10 @@
|
|
|
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 const PRIMARY_LOCALE: "en";
|
|
5
|
+
export declare const SECONDARY_LOCALES: readonly ["de", "ja", "ko"];
|
|
6
|
+
export declare const TERTIARY_LOCALES: readonly ["fr", "es", "pt-BR", "id", "zh-Hant", "zh-Hans"];
|
|
7
|
+
export type LocalePriority = 'primary' | 'secondary' | 'tertiary';
|
|
8
|
+
export declare function localePriority(locale: SupportedLocale): LocalePriority;
|
|
9
|
+
export declare function isSupportedLocale(value: unknown): value is SupportedLocale;
|
|
10
|
+
//# 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;AAEpD,eAAO,MAAM,cAAc,MAAiB,CAAC;AAE7C,eAAO,MAAM,iBAAiB,6BAIiB,CAAC;AAEhD,eAAO,MAAM,gBAAgB,4DAOkB,CAAC;AAEhD,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;AAIlE,wBAAgB,cAAc,CAAC,MAAM,EAAE,eAAe,GAAG,cAAc,CAKtE;AAID,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe,CAE1E"}
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
PRIMARY_LOCALE: () => PRIMARY_LOCALE,
|
|
22
|
+
SECONDARY_LOCALES: () => SECONDARY_LOCALES,
|
|
23
|
+
SUPPORTED_LOCALES: () => SUPPORTED_LOCALES,
|
|
24
|
+
TERTIARY_LOCALES: () => TERTIARY_LOCALES,
|
|
25
|
+
isSupportedLocale: () => isSupportedLocale,
|
|
26
|
+
localePriority: () => localePriority
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(locale_exports);
|
|
29
|
+
const SUPPORTED_LOCALES = [
|
|
30
|
+
"en",
|
|
31
|
+
"fr",
|
|
32
|
+
"de",
|
|
33
|
+
"ja",
|
|
34
|
+
"ko",
|
|
35
|
+
"es",
|
|
36
|
+
"pt-BR",
|
|
37
|
+
"id",
|
|
38
|
+
"zh-Hant",
|
|
39
|
+
"zh-Hans"
|
|
40
|
+
];
|
|
41
|
+
const DEFAULT_LOCALE = "en";
|
|
42
|
+
const PRIMARY_LOCALE = DEFAULT_LOCALE;
|
|
43
|
+
const SECONDARY_LOCALES = [
|
|
44
|
+
"de",
|
|
45
|
+
"ja",
|
|
46
|
+
"ko"
|
|
47
|
+
];
|
|
48
|
+
const TERTIARY_LOCALES = [
|
|
49
|
+
"fr",
|
|
50
|
+
"es",
|
|
51
|
+
"pt-BR",
|
|
52
|
+
"id",
|
|
53
|
+
"zh-Hant",
|
|
54
|
+
"zh-Hans"
|
|
55
|
+
];
|
|
56
|
+
const SECONDARY_LOCALE_SET = new Set(SECONDARY_LOCALES);
|
|
57
|
+
function localePriority(locale) {
|
|
58
|
+
if (locale === PRIMARY_LOCALE) {
|
|
59
|
+
return "primary";
|
|
60
|
+
}
|
|
61
|
+
return SECONDARY_LOCALE_SET.has(locale) ? "secondary" : "tertiary";
|
|
62
|
+
}
|
|
63
|
+
const SUPPORTED_LOCALE_SET = new Set(SUPPORTED_LOCALES);
|
|
64
|
+
function isSupportedLocale(value) {
|
|
65
|
+
return typeof value === "string" && SUPPORTED_LOCALE_SET.has(value);
|
|
66
|
+
}
|
|
67
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
68
|
+
0 && (module.exports = {
|
|
69
|
+
DEFAULT_LOCALE,
|
|
70
|
+
PRIMARY_LOCALE,
|
|
71
|
+
SECONDARY_LOCALES,
|
|
72
|
+
SUPPORTED_LOCALES,
|
|
73
|
+
TERTIARY_LOCALES,
|
|
74
|
+
isSupportedLocale,
|
|
75
|
+
localePriority
|
|
76
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playdrop/playdrop-cli",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.14",
|
|
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": {
|