From 1a00f01d4101aa48d0b108522f48d09326791692 Mon Sep 17 00:00:00 2001 From: Supan Adit Pratama Date: Sat, 26 Oct 2024 18:38:45 +0700 Subject: [PATCH] wip: skeleton process --- .../src/processes/batch/delete.process.ts | 1 + .../src/processes/batch/update.process.ts | 1 + libs/skeleton/src/processes/create.process.ts | 30 +++++++++++++++++++ libs/skeleton/src/processes/delete.process.ts | 1 + libs/skeleton/src/processes/list.process.ts | 1 + .../src/processes/pagination.process.ts | 1 + .../processes/partial/batch/update.process.ts | 1 + libs/skeleton/src/processes/read.process.ts | 1 + libs/skeleton/src/processes/update.process.ts | 1 + 9 files changed, 38 insertions(+) create mode 100644 libs/skeleton/src/processes/batch/delete.process.ts create mode 100644 libs/skeleton/src/processes/batch/update.process.ts create mode 100644 libs/skeleton/src/processes/create.process.ts create mode 100644 libs/skeleton/src/processes/delete.process.ts create mode 100644 libs/skeleton/src/processes/list.process.ts create mode 100644 libs/skeleton/src/processes/pagination.process.ts create mode 100644 libs/skeleton/src/processes/partial/batch/update.process.ts create mode 100644 libs/skeleton/src/processes/read.process.ts create mode 100644 libs/skeleton/src/processes/update.process.ts diff --git a/libs/skeleton/src/processes/batch/delete.process.ts b/libs/skeleton/src/processes/batch/delete.process.ts new file mode 100644 index 0000000..32c39f2 --- /dev/null +++ b/libs/skeleton/src/processes/batch/delete.process.ts @@ -0,0 +1 @@ +export class BatchDeleteProcess {} diff --git a/libs/skeleton/src/processes/batch/update.process.ts b/libs/skeleton/src/processes/batch/update.process.ts new file mode 100644 index 0000000..b251550 --- /dev/null +++ b/libs/skeleton/src/processes/batch/update.process.ts @@ -0,0 +1 @@ +export class BatchUpdateProcess {} diff --git a/libs/skeleton/src/processes/create.process.ts b/libs/skeleton/src/processes/create.process.ts new file mode 100644 index 0000000..df0e891 --- /dev/null +++ b/libs/skeleton/src/processes/create.process.ts @@ -0,0 +1,30 @@ +import { Observable, of } from 'rxjs'; +import { SkeletonProcess } from '../interfaces/skeleton-process.interface'; + +export class CreateProcess implements SkeletonProcess { + constructor() {} + + initialization(): Observable { + return of(undefined); + } + + before(): Observable { + return of(undefined); + } + + begin(): Observable { + return of(undefined); + } + + process(): Observable { + return of(undefined); + } + + end(): Observable { + return of(undefined); + } + + after(): Observable { + return of(undefined); + } +} diff --git a/libs/skeleton/src/processes/delete.process.ts b/libs/skeleton/src/processes/delete.process.ts new file mode 100644 index 0000000..1638463 --- /dev/null +++ b/libs/skeleton/src/processes/delete.process.ts @@ -0,0 +1 @@ +export class DeleteProcess {} diff --git a/libs/skeleton/src/processes/list.process.ts b/libs/skeleton/src/processes/list.process.ts new file mode 100644 index 0000000..cc508c3 --- /dev/null +++ b/libs/skeleton/src/processes/list.process.ts @@ -0,0 +1 @@ +export class ListProcess {} diff --git a/libs/skeleton/src/processes/pagination.process.ts b/libs/skeleton/src/processes/pagination.process.ts new file mode 100644 index 0000000..155f496 --- /dev/null +++ b/libs/skeleton/src/processes/pagination.process.ts @@ -0,0 +1 @@ +export class PaginationProcess {} diff --git a/libs/skeleton/src/processes/partial/batch/update.process.ts b/libs/skeleton/src/processes/partial/batch/update.process.ts new file mode 100644 index 0000000..9040acd --- /dev/null +++ b/libs/skeleton/src/processes/partial/batch/update.process.ts @@ -0,0 +1 @@ +export class PartialBatchUpdateProcess {} diff --git a/libs/skeleton/src/processes/read.process.ts b/libs/skeleton/src/processes/read.process.ts new file mode 100644 index 0000000..87bf2a9 --- /dev/null +++ b/libs/skeleton/src/processes/read.process.ts @@ -0,0 +1 @@ +export class ReadProcess {} diff --git a/libs/skeleton/src/processes/update.process.ts b/libs/skeleton/src/processes/update.process.ts new file mode 100644 index 0000000..0084c1a --- /dev/null +++ b/libs/skeleton/src/processes/update.process.ts @@ -0,0 +1 @@ +export class UpdateProcess {}