Raising this on behalf of one of our customers.
Seems there is change in FDK version from Freshdesk and it looks like Fresh Desk stopped supporting recommended FDK version 2 API. Please find below the log which we have collected during our lab test.
PS D:\My Reposit\NaviFreshdesk> fdk validate
Please ensure that the following are addressed for quick review process.
[WARN] app\scripts\app.js::8: Expected rejection to be handled.
[WARN] app\scripts\app.js::28: 'loggedInUserId' declared and assigned in different scopes. Possible asynchronous race condition.
[WARN] app\scripts\app.js::29: 'loggedInUserName' declared and assigned in different scopes. Possible asynchronous race condition.
[WARN] app\scripts\app.js::41: Function has a complexity of 18. Maximum allowed is 7.
[WARN] app\scripts\app.js::51: 'logginuserid' declared and assigned in different scopes. Possible asynchronous race condition.
[WARN] app\scripts\app.js::52: 'logginusername' declared and assigned in different scopes. Possible asynchronous race condition.
[WARN] app\scripts\app.js::58: Expected rejection to be handled.
[WARN] app\scripts\app.js::74: possible deprecated API usage detected
[WARN] app\scripts\app.js::87: Expected rejection to be handled.
[WARN] app\scripts\app.js::87: possible deprecated API usage detected
[WARN] app\scripts\app.js::120: 'logginusername' declared and assigned in different scopes. Possible asynchronous race condition.
[WARN] app\scripts\app.js::149: possible deprecated API usage detected
[WARN] app\scripts\app.js::182: 'logginuserid' declared and assigned in different scopes. Possible asynchronous race condition.
[WARN] app\scripts\app.js::183: 'logginusername' declared and assigned in different scopes. Possible asynchronous race condition.
[WARN] app\scripts\app.js::199: possible deprecated API usage detected
[WARN] app\scripts\app.js::215: Expected rejection to be handled.
[WARN] app\scripts\app.js::215: possible deprecated API usage detected
[WARN] app\scripts\app.js::234: Expected rejection to be handled.
[WARN] app\scripts\app.js::234: possible deprecated API usage detected
[WARN] app\scripts\app.js::249: Expected rejection to be handled.
[WARN] app\scripts\app.js::249: possible deprecated API usage detected
Your app might be using one or more API endpoints that will be deprecated soon. Please go through the deprecation notice (https://community.freshworks.dev/t/freshservice-rest-api-v1-deprecation-notice/5899) to find alternate resources.
ind alternate resources.
Validation Successful
PS D:\My Reposit\NaviFreshdesk> fdk pack
Please ensure that the following are addressed for quick review process.
[WARN] app\scripts\app.js::8: Expected rejection to be handled.
[WARN] app\scripts\app.js::28: 'loggedInUserId' declared and assigned in different scopes. Possible asynchronous race condition.
[WARN] app\scripts\app.js::29: 'loggedInUserName' declared and assigned in different scopes. Possible asynchronous race condition.
[WARN] app\scripts\app.js::41: Function has a complexity of 18. Maximum allowed is 7.
[WARN] app\scripts\app.js::51: 'logginuserid' declared and assigned in different scopes. Possible asynchronous race condition.
[WARN] app\scripts\app.js::52: 'logginusername' declared and assigned in different scopes. Possible asynchronous race condition.
[WARN] app\scripts\app.js::58: Expected rejection to be handled.
[WARN] app\scripts\app.js::58: possible deprecated API usage detected
[WARN] app\scripts\app.js::74: Expected rejection to be handled.
[WARN] app\scripts\app.js::74: possible deprecated API usage detected
[WARN] app\scripts\app.js::87: possible deprecated API usage detected
[WARN] app\scripts\app.js::120: 'logginusername' declared and assigned in different scopes. Possible asynchronous race condition.
[WARN] app\scripts\app.js::149: possible deprecated API usage detected
[WARN] app\scripts\app.js::182: 'logginuserid' declared and assigned in different scopes. Possible asynchronous race condition.
[WARN] app\scripts\app.js::183: 'logginusername' declared and assigned in different scopes. Possible asynchronous race condition.
[WARN] app\scripts\app.js::199: possible deprecated API usage detected
[WARN] app\scripts\app.js::215: Expected rejection to be handled.
[WARN] app\scripts\app.js::215: possible deprecated API usage detected
[WARN] app\scripts\app.js::234: Expected rejection to be handled.
[WARN] app\scripts\app.js::234: possible deprecated API usage detected
[WARN] app\scripts\app.js::249: Expected rejection to be handled.
[WARN] app\scripts\app.js::249: possible deprecated API usage detected
Your app might be using one or more API endpoints that will be deprecated soon. Please go through the deprecation notice (https://community.freshworks.dev/t/freshservice-rest-api-v1-deprecation-notice/5899) to find alternate resources.
App being packed in Node v14.20.1 using FDK 8.6.7
App packed successfully at \dist\NaviFreshdesk.zip
Upload this file to the marketplace by following the instructions at https://developer.freshdesk.com/v2/docs/freshdesk-apps/
Please help