@playdrop/playdrop-cli 0.7.24 → 0.7.26
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 +1 -1
- package/dist/commands/feedback.d.ts +2 -1
- package/dist/commands/feedback.js +21 -8
- package/dist/index.js +2 -1
- package/node_modules/@playdrop/api-client/dist/client.d.ts +14 -2
- package/node_modules/@playdrop/api-client/dist/client.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/client.js +67 -2
- package/node_modules/@playdrop/api-client/dist/index.d.ts +21 -2
- package/node_modules/@playdrop/api-client/dist/index.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/index.js +36 -0
- package/node_modules/@playdrop/config/client-meta.json +1 -1
- package/node_modules/@playdrop/config/dist/src/server/fastify.d.ts +1 -0
- package/node_modules/@playdrop/config/dist/src/server/fastify.d.ts.map +1 -1
- package/node_modules/@playdrop/config/dist/src/server/fastify.js +1 -0
- package/node_modules/@playdrop/config/dist/test/fastify.test.js +4 -0
- package/node_modules/@playdrop/config/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@playdrop/types/dist/api.d.ts +34 -4
- package/node_modules/@playdrop/types/dist/api.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/api.js +29 -0
- package/package.json +1 -1
|
@@ -23,6 +23,9 @@ __export(dist_exports, {
|
|
|
23
23
|
ApiError: () => import_types3.ApiError,
|
|
24
24
|
DEFAULT_APP_SURFACE_TARGETS: () => import_types2.DEFAULT_APP_SURFACE_TARGETS,
|
|
25
25
|
DEFAULT_APP_TYPE: () => import_types2.DEFAULT_APP_TYPE,
|
|
26
|
+
FEEDBACK_CATEGORY_VALUES: () => import_types2.FEEDBACK_CATEGORY_VALUES,
|
|
27
|
+
FEEDBACK_CLIENT_VALUES: () => import_types2.FEEDBACK_CLIENT_VALUES,
|
|
28
|
+
FEEDBACK_STATUS_VALUES: () => import_types2.FEEDBACK_STATUS_VALUES,
|
|
26
29
|
UnsupportedClientError: () => import_types3.UnsupportedClientError,
|
|
27
30
|
activateAppBoost: () => activateAppBoost,
|
|
28
31
|
apiFetch: () => apiFetch,
|
|
@@ -48,6 +51,7 @@ __export(dist_exports, {
|
|
|
48
51
|
createContentComment: () => createContentComment,
|
|
49
52
|
createCreditPackCheckoutSession: () => createCreditPackCheckoutSession,
|
|
50
53
|
deleteAccount: () => deleteAccount,
|
|
54
|
+
deleteAdminFeedback: () => deleteAdminFeedback,
|
|
51
55
|
deleteAdminGameCollection: () => deleteAdminGameCollection,
|
|
52
56
|
deleteApp: () => deleteApp,
|
|
53
57
|
deleteAppVersion: () => deleteAppVersion,
|
|
@@ -73,6 +77,8 @@ __export(dist_exports, {
|
|
|
73
77
|
fetchAdminAppPlayerMetaUser: () => fetchAdminAppPlayerMetaUser,
|
|
74
78
|
fetchAdminAppVersionReviews: () => fetchAdminAppVersionReviews,
|
|
75
79
|
fetchAdminApps: () => fetchAdminApps,
|
|
80
|
+
fetchAdminFeedback: () => fetchAdminFeedback,
|
|
81
|
+
fetchAdminFeedbackEntry: () => fetchAdminFeedbackEntry,
|
|
76
82
|
fetchAdminGameCollection: () => fetchAdminGameCollection,
|
|
77
83
|
fetchAdminGameCollections: () => fetchAdminGameCollections,
|
|
78
84
|
fetchAiGeneration: () => fetchAiGeneration,
|
|
@@ -156,6 +162,7 @@ __export(dist_exports, {
|
|
|
156
162
|
listAssets: () => listAssets,
|
|
157
163
|
listAssetsForCreator: () => listAssetsForCreator,
|
|
158
164
|
listAssetsForCreatorPage: () => listAssetsForCreatorPage,
|
|
165
|
+
listFeedback: () => listFeedback,
|
|
159
166
|
listLeaderboards: () => listLeaderboards,
|
|
160
167
|
loadDevInterstitialAd: () => loadDevInterstitialAd,
|
|
161
168
|
loadDevRewardedAd: () => loadDevRewardedAd,
|
|
@@ -199,6 +206,7 @@ __export(dist_exports, {
|
|
|
199
206
|
signInWithGoogleApple: () => signInWithGoogleApple,
|
|
200
207
|
startCliLogin: () => startCliLogin,
|
|
201
208
|
startCliWebLaunch: () => startCliWebLaunch,
|
|
209
|
+
submitFeedback: () => submitFeedback,
|
|
202
210
|
submitLeaderboardScore: () => submitLeaderboardScore,
|
|
203
211
|
submitMyInviteCode: () => submitMyInviteCode,
|
|
204
212
|
suggestSearch: () => suggestSearch,
|
|
@@ -215,6 +223,7 @@ __export(dist_exports, {
|
|
|
215
223
|
unlockAchievement: () => unlockAchievement,
|
|
216
224
|
unsaveItem: () => unsaveItem,
|
|
217
225
|
updateAdminAppVersionReview: () => updateAdminAppVersionReview,
|
|
226
|
+
updateAdminFeedback: () => updateAdminFeedback,
|
|
218
227
|
updateAdminGameCollection: () => updateAdminGameCollection,
|
|
219
228
|
updateAppVersion: () => updateAppVersion,
|
|
220
229
|
updateAsset: () => updateAsset,
|
|
@@ -744,6 +753,24 @@ async function cancelAppIapReceipt(receiptId) {
|
|
|
744
753
|
async function fetchCreditTransactions(options) {
|
|
745
754
|
return await getDefaultClient().fetchCreditTransactions(options);
|
|
746
755
|
}
|
|
756
|
+
async function submitFeedback(request) {
|
|
757
|
+
return await getDefaultClient().submitFeedback(request);
|
|
758
|
+
}
|
|
759
|
+
async function listFeedback(options) {
|
|
760
|
+
return await getDefaultClient().listFeedback(options);
|
|
761
|
+
}
|
|
762
|
+
async function fetchAdminFeedback(options) {
|
|
763
|
+
return await getDefaultClient().fetchAdminFeedback(options);
|
|
764
|
+
}
|
|
765
|
+
async function fetchAdminFeedbackEntry(id) {
|
|
766
|
+
return await getDefaultClient().fetchAdminFeedbackEntry(id);
|
|
767
|
+
}
|
|
768
|
+
async function updateAdminFeedback(id, request) {
|
|
769
|
+
return await getDefaultClient().updateAdminFeedback(id, request);
|
|
770
|
+
}
|
|
771
|
+
async function deleteAdminFeedback(id) {
|
|
772
|
+
return await getDefaultClient().deleteAdminFeedback(id);
|
|
773
|
+
}
|
|
747
774
|
async function fetchBoostBalance() {
|
|
748
775
|
return await getDefaultClient().fetchBoostBalance();
|
|
749
776
|
}
|
|
@@ -985,6 +1012,9 @@ function getClientVersionLabel() {
|
|
|
985
1012
|
ApiError,
|
|
986
1013
|
DEFAULT_APP_SURFACE_TARGETS,
|
|
987
1014
|
DEFAULT_APP_TYPE,
|
|
1015
|
+
FEEDBACK_CATEGORY_VALUES,
|
|
1016
|
+
FEEDBACK_CLIENT_VALUES,
|
|
1017
|
+
FEEDBACK_STATUS_VALUES,
|
|
988
1018
|
UnsupportedClientError,
|
|
989
1019
|
activateAppBoost,
|
|
990
1020
|
apiFetch,
|
|
@@ -1010,6 +1040,7 @@ function getClientVersionLabel() {
|
|
|
1010
1040
|
createContentComment,
|
|
1011
1041
|
createCreditPackCheckoutSession,
|
|
1012
1042
|
deleteAccount,
|
|
1043
|
+
deleteAdminFeedback,
|
|
1013
1044
|
deleteAdminGameCollection,
|
|
1014
1045
|
deleteApp,
|
|
1015
1046
|
deleteAppVersion,
|
|
@@ -1035,6 +1066,8 @@ function getClientVersionLabel() {
|
|
|
1035
1066
|
fetchAdminAppPlayerMetaUser,
|
|
1036
1067
|
fetchAdminAppVersionReviews,
|
|
1037
1068
|
fetchAdminApps,
|
|
1069
|
+
fetchAdminFeedback,
|
|
1070
|
+
fetchAdminFeedbackEntry,
|
|
1038
1071
|
fetchAdminGameCollection,
|
|
1039
1072
|
fetchAdminGameCollections,
|
|
1040
1073
|
fetchAiGeneration,
|
|
@@ -1118,6 +1151,7 @@ function getClientVersionLabel() {
|
|
|
1118
1151
|
listAssets,
|
|
1119
1152
|
listAssetsForCreator,
|
|
1120
1153
|
listAssetsForCreatorPage,
|
|
1154
|
+
listFeedback,
|
|
1121
1155
|
listLeaderboards,
|
|
1122
1156
|
loadDevInterstitialAd,
|
|
1123
1157
|
loadDevRewardedAd,
|
|
@@ -1161,6 +1195,7 @@ function getClientVersionLabel() {
|
|
|
1161
1195
|
signInWithGoogleApple,
|
|
1162
1196
|
startCliLogin,
|
|
1163
1197
|
startCliWebLaunch,
|
|
1198
|
+
submitFeedback,
|
|
1164
1199
|
submitLeaderboardScore,
|
|
1165
1200
|
submitMyInviteCode,
|
|
1166
1201
|
suggestSearch,
|
|
@@ -1177,6 +1212,7 @@ function getClientVersionLabel() {
|
|
|
1177
1212
|
unlockAchievement,
|
|
1178
1213
|
unsaveItem,
|
|
1179
1214
|
updateAdminAppVersionReview,
|
|
1215
|
+
updateAdminFeedback,
|
|
1180
1216
|
updateAdminGameCollection,
|
|
1181
1217
|
updateAppVersion,
|
|
1182
1218
|
updateAsset,
|
|
@@ -62,6 +62,7 @@ export declare function buildFastifyLogger(service: string): (FastifyLoggerOptio
|
|
|
62
62
|
export declare function buildFastifyServerOptions(params: {
|
|
63
63
|
service: string;
|
|
64
64
|
bodyLimit?: number;
|
|
65
|
+
trustProxy?: FastifyServerOptions<RawServerDefault>['trustProxy'];
|
|
65
66
|
}): FastifyServerOptions<RawServerDefault>;
|
|
66
67
|
export declare function registerStructuredRequestLogging(app: FastifyInstance): void;
|
|
67
68
|
export declare function readClientHeaders(request: FastifyRequest): ClientRuntimeInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../../../src/server/fastify.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,oBAAoB,EAEpB,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAQjB,OAAO,KAAK,EACV,uBAAuB,EACvB,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,WAAW,EACX,2BAA2B,EAC5B,MAAM,UAAU,CAAC;AAElB,OAAO,QAAQ,SAAS,CAAC;IACvB,UAAU,cAAc;QACtB,aAAa,CAAC,EAAE,2BAA2B,CAAC;QAC5C,iBAAiB,CAAC,EAAE;YAClB,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,CAAC;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C,OAAO,EAAE,cAAc,GAAG,iBAAiB,CAiB5E;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,uBAAuB,GAC/B,uBAAuB,CAkEzB;AAED,wBAAgB,gBAAgB,CAC9B,MAAM,GAAE,CAAC,OAAO,EAAE,cAAc,KAAK,iBAAqC,EAC1E,SAAS,GAAE,eAA2C,EACtD,SAAS,GAAE,CAAC,OAAO,EAAE,uBAAuB,KAAK,uBAA2C,GAC3F,WAAW,CAkBb;AAED,eAAO,MAAM,qBAAqB,aAAqB,CAAC"}
|
|
@@ -88,6 +88,7 @@ function buildFastifyServerOptions(params) {
|
|
|
88
88
|
return (0, node_crypto_1.randomUUID)();
|
|
89
89
|
},
|
|
90
90
|
...(typeof params.bodyLimit === 'number' ? { bodyLimit: params.bodyLimit } : {}),
|
|
91
|
+
...(params.trustProxy !== undefined ? { trustProxy: params.trustProxy } : {}),
|
|
91
92
|
};
|
|
92
93
|
}
|
|
93
94
|
function registerStructuredRequestLogging(app) {
|
|
@@ -10,3 +10,7 @@ const fastify_1 = require("../src/server/fastify");
|
|
|
10
10
|
const options = (0, fastify_1.buildFastifyServerOptions)({ service: 'api-server' });
|
|
11
11
|
strict_1.default.equal(options.routerOptions?.maxParamLength, 2048);
|
|
12
12
|
});
|
|
13
|
+
(0, node_test_1.default)('buildFastifyServerOptions supports trusted proxy configuration', () => {
|
|
14
|
+
const options = (0, fastify_1.buildFastifyServerOptions)({ service: 'api-server', trustProxy: true });
|
|
15
|
+
strict_1.default.equal(options.trustProxy, true);
|
|
16
|
+
});
|