29 lines
999 B
TypeScript
29 lines
999 B
TypeScript
// Register the licensing template's actions.
|
|
//
|
|
// In your package's top-level actions registry, spread these in:
|
|
//
|
|
// import { licensingActions } from './licensing/actions'
|
|
// export const actions = sdk.Actions.of()
|
|
// // ...your own actions...
|
|
// .addAction(licensingActions.activateLicense)
|
|
// .addAction(licensingActions.buyLicense)
|
|
// .addAction(licensingActions.finishLicensePurchase)
|
|
// .addAction(licensingActions.redeemFreeLicense)
|
|
// .addAction(licensingActions.checkLicense)
|
|
// .addAction(licensingActions.deactivateLicense)
|
|
|
|
import { activateLicense } from './activateLicense'
|
|
import { buyLicense, finishLicensePurchase } from './buyLicense'
|
|
import { checkLicense } from './checkLicense'
|
|
import { deactivateLicense } from './deactivateLicense'
|
|
import { redeemFreeLicense } from './redeemFreeLicense'
|
|
|
|
export const licensingActions = {
|
|
activateLicense,
|
|
buyLicense,
|
|
finishLicensePurchase,
|
|
redeemFreeLicense,
|
|
checkLicense,
|
|
deactivateLicense,
|
|
}
|