This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const amendDraft = (context) => { | |
console.log("saving", context.pendingQueue) | |
let resolver; | |
const promise = new Promise((resolve) => resolver = resolve) | |
setTimeout(() => resolver(), 200); | |
return promise; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const amendDraft = (context) => { | |
console.log("saving", context) | |
let resolver; | |
const promise = new Promise((resolve) => resolver = resolve) | |
setTimeout(() => resolver(), 200); | |
return promise; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const isAllRejected = () => {} | |
const isAllSucceed = () => {} | |
const assignCounts = () => {} | |
const assignErrorMessages = () => {} | |
const fetchMachine = Machine({ | |
id: 'home', | |
initial: 'loading', | |
context: { | |
capGuardrailsWorkItemsCount: undefined, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getWorklistItems = () => {}; | |
const fetchMachine = Machine({ | |
id: 'fetch', | |
type: 'parallel', | |
context: { | |
}, | |
states: { | |
page: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Notification; | |
use Aws\Sns\Message; | |
use Aws\Sns\MessageValidator; | |
use Aws\Sns\Exception\InvalidSnsMessageException; | |
class SNSController extends Controller | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Route::group([ | |
'namespace' => 'Eder\Controllers\Aws', | |
'prefix' => 'aws', | |
], | |
function () { | |
Route::post('/sns/handle-bounces', 'SNSController@handleNotification'); | |
} | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Eder\Jobs; | |
use Eder\Jobs\Job; | |
use Illuminate\Contracts\Mail\Mailer; | |
use Illuminate\Queue\SerializesModels; | |
use Illuminate\Queue\InteractsWithQueue; | |
use Illuminate\Contracts\Bus\SelfHandling; | |
use Illuminate\Contracts\Queue\ShouldQueue; |
NewerOlder