How to use the forge-apis.AppPackagesApi function in forge-apis

To help you get started, we’ve selected a few forge-apis examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / types / forge-apis / forge-apis-tests.ts View on Github external
activitiesApi.deleteActivity('', authClientTwoLegged, authToken);
// $ExpectType Promise
activitiesApi.deleteActivityHistory('', authClientTwoLegged, authToken);
// $ExpectType Promise
activitiesApi.getActivity('', authClientTwoLegged, authToken);
// $ExpectType Promise
activitiesApi.getActivityVersions('', authClientTwoLegged, authToken);
// $ExpectType Promise
activitiesApi.getAllActivities(authClientTwoLegged, authToken);
// $ExpectType Promise
activitiesApi.patchActivity('', {}, authClientTwoLegged, authToken);
// $ExpectType Promise
activitiesApi.setActivityVersion('', {}, authClientTwoLegged, authToken);

// $ExpectType AppPackagesApi
const appPackagesApi = new AppPackagesApi();

// $ExpectType Promise
appPackagesApi.createAppPackage(
    {
        id: '',
        resource: '',
        references: [''],
        requiredEngineVersion: '',
        version: 0,
        description: '',
        isPublic: true,
        isObjectEnabler: true,
    },
    authClientTwoLegged,
    authToken,
);