maleo-enums 0.0.1__py3-none-any.whl → 0.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
maleo/enums/cache.py CHANGED
@@ -1,12 +1,12 @@
1
1
  from enum import StrEnum
2
2
 
3
3
 
4
- class CacheOrigin(StrEnum):
4
+ class Origin(StrEnum):
5
5
  CLIENT = "client"
6
6
  SERVICE = "service"
7
7
 
8
8
 
9
- class CacheLayer(StrEnum):
9
+ class Layer(StrEnum):
10
10
  REPOSITORY = "repository"
11
11
  SERVICE = "service"
12
12
  CONTROLLER = "controller"
maleo/enums/client.py CHANGED
@@ -1,6 +1,6 @@
1
1
  from enum import StrEnum
2
2
 
3
3
 
4
- class ClientCategory(StrEnum):
4
+ class Category(StrEnum):
5
5
  GOOGLE = "google"
6
6
  MALEO = "maleo"
maleo/enums/code.py CHANGED
@@ -1,23 +1,7 @@
1
1
  from enum import StrEnum
2
2
 
3
3
 
4
- class Error(StrEnum):
5
- BAD_REQUEST = "MAL-ERR-CLI-BDR-001"
6
- UNAUTHORIZED = "MAL-ERR-CLI-ATH-001"
7
- FORBIDDEN = "MAL-ERR-CLI-FBD-001"
8
- NOT_FOUND = "MAL-ERR-CLI-NTF-001"
9
- METHOD_NOT_ALLOWED = "MAL-ERR-CLI-MNA-001"
10
- CONFLICT = "MAL-ERR-CLI-CFL-001"
11
- UNPROCESSABLE_ENTITY = "MAL-ERR-CLI-UPE-001"
12
- TOO_MANY_REQUESTS = "MAL-ERR-CLI-TMR-001"
13
- INTERNAL_SERVER_ERROR = "MAL-ERR-SRV-ISE-001"
14
- DATABASE_ERROR = "MAL-ERR-SRV-ISE-002"
15
- NOT_IMPLEMENTED = "MAL-ERR-SRV-NIM-001"
16
- BAD_GATEWAY = "MAL-ERR-SRV-BDG-001"
17
- SERVICE_UNAVAILABLE = "MAL-ERR-SRV-SUN-001"
18
-
19
-
20
- class Result(StrEnum):
4
+ class Data(StrEnum):
21
5
  ANY_DATA = "MAL-RES-ADT-001"
22
6
  NO_DATA = "MAL-RES-NDT-001"
23
7
  SINGLE_DATA = "MAL-RES-SGD-001"
maleo/enums/controller.py CHANGED
@@ -1,10 +1,10 @@
1
1
  from enum import StrEnum
2
2
 
3
3
 
4
- class ServiceController(StrEnum):
4
+ class Service(StrEnum):
5
5
  REST = "rest"
6
6
  MESSAGE = "message"
7
7
 
8
8
 
9
- class ClientController(StrEnum):
9
+ class Client(StrEnum):
10
10
  HTTP = "http"
maleo/enums/error.py CHANGED
@@ -1,7 +1,7 @@
1
1
  from enum import StrEnum
2
2
 
3
3
 
4
- class Error(StrEnum):
4
+ class ErrorType(StrEnum):
5
5
  BAD_REQUEST = "client.bad_request"
6
6
  UNAUTHORIZED = "client.unauthorized"
7
7
  FORBIDDEN = "client.forbidden"
@@ -15,3 +15,19 @@ class Error(StrEnum):
15
15
  NOT_IMPLEMENTED = "server.not_implemented"
16
16
  BAD_GATEWAY = "server.bad_gateway"
17
17
  SERVICE_UNAVAILABLE = "server.service_unavailable"
18
+
19
+
20
+ class Code(StrEnum):
21
+ BAD_REQUEST = "MAL-ERR-CLI-BDR-001"
22
+ UNAUTHORIZED = "MAL-ERR-CLI-ATH-001"
23
+ FORBIDDEN = "MAL-ERR-CLI-FBD-001"
24
+ NOT_FOUND = "MAL-ERR-CLI-NTF-001"
25
+ METHOD_NOT_ALLOWED = "MAL-ERR-CLI-MNA-001"
26
+ CONFLICT = "MAL-ERR-CLI-CFL-001"
27
+ UNPROCESSABLE_ENTITY = "MAL-ERR-CLI-UPE-001"
28
+ TOO_MANY_REQUESTS = "MAL-ERR-CLI-TMR-001"
29
+ INTERNAL_SERVER_ERROR = "MAL-ERR-SRV-ISE-001"
30
+ DATABASE_ERROR = "MAL-ERR-SRV-ISE-002"
31
+ NOT_IMPLEMENTED = "MAL-ERR-SRV-NIM-001"
32
+ BAD_GATEWAY = "MAL-ERR-SRV-BDG-001"
33
+ SERVICE_UNAVAILABLE = "MAL-ERR-SRV-SUN-001"
maleo/enums/execution.py CHANGED
@@ -2,10 +2,10 @@ from enum import StrEnum
2
2
 
3
3
 
4
4
  class ApplicationExecution(StrEnum):
5
- DIRECT = "direct"
6
5
  CONTAINER = "container"
6
+ DIRECT = "direct"
7
7
 
8
8
 
9
- class Execution(StrEnum):
10
- SYNC = "sync"
9
+ class FunctionExecution(StrEnum):
11
10
  ASYNC = "async"
11
+ SYNC = "sync"
maleo/enums/operation.py CHANGED
@@ -51,13 +51,13 @@ class ResourceOperationStatusUpdateType(StrEnum):
51
51
  DELETE = "delete"
52
52
 
53
53
 
54
- class OperationOrigin(StrEnum):
54
+ class Origin(StrEnum):
55
55
  SERVICE = "service"
56
56
  CLIENT = "client"
57
57
  UTILITY = "utility"
58
58
 
59
59
 
60
- class OperationLayer(StrEnum):
60
+ class Layer(StrEnum):
61
61
  INFRASTRUCTURE = "infrastructure"
62
62
  CONFIGURATION = "configuration"
63
63
  UTILITY = "utility"
@@ -69,7 +69,7 @@ class OperationLayer(StrEnum):
69
69
  OTHER = "other"
70
70
 
71
71
 
72
- class OperationTarget(StrEnum):
72
+ class Target(StrEnum):
73
73
  MONITORING = "monitoring"
74
74
  CACHE = "cache"
75
75
  CONTROLLER = "controller"
@@ -1,7 +1,7 @@
1
1
  from enum import StrEnum
2
2
 
3
3
 
4
- class PrivilegeLevel(StrEnum):
4
+ class Level(StrEnum):
5
5
  GENERAL = "general"
6
6
  BASIC = "basic"
7
7
  PRIVILEGED = "privileged"
maleo/enums/service.py CHANGED
@@ -11,7 +11,7 @@ class Category(StrEnum):
11
11
  AI = "ai"
12
12
 
13
13
 
14
- class ShortServiceKey(StrEnum):
14
+ class ShortKey(StrEnum):
15
15
  STUDIO = "studio"
16
16
  NEXUS = "nexus"
17
17
  TELEMETRY = "telemetry"
@@ -29,7 +29,7 @@ class ShortServiceKey(StrEnum):
29
29
  MCU = "mcu"
30
30
 
31
31
 
32
- class ServiceKey(StrEnum):
32
+ class Key(StrEnum):
33
33
  STUDIO = "maleo-studio"
34
34
  NEXUS = "maleo-nexus"
35
35
  TELEMETRY = "maleo-telemetry"
@@ -47,7 +47,7 @@ class ServiceKey(StrEnum):
47
47
  MCU = "maleo-mcu"
48
48
 
49
49
 
50
- class ShortServiceName(StrEnum):
50
+ class ShortName(StrEnum):
51
51
  STUDIO = "Studio"
52
52
  NEXUS = "Nexus"
53
53
  TELEMETRY = "Telemetry"
@@ -65,7 +65,7 @@ class ShortServiceName(StrEnum):
65
65
  MCU = "MCU"
66
66
 
67
67
 
68
- class ServiceName(StrEnum):
68
+ class Name(StrEnum):
69
69
  STUDIO = "MaleoStudio"
70
70
  NEXUS = "MaleoNexus"
71
71
  TELEMETRY = "MaleoTelemetry"
maleo/enums/sort.py CHANGED
@@ -1,6 +1,6 @@
1
1
  from enum import StrEnum
2
2
 
3
3
 
4
- class SortOrder(StrEnum):
4
+ class Order(StrEnum):
5
5
  ASC = "asc"
6
6
  DESC = "desc"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo-enums
3
- Version: 0.0.1
3
+ Version: 0.0.3
4
4
  Summary: Enums package for MaleoSuite
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: Proprietary
@@ -0,0 +1,24 @@
1
+ maleo/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ maleo/enums/cache.py,sha256=c4_fKpGF9tP-rlr6tFaJUH4Ki9iKkhMj5HzhGagDLvU,204
3
+ maleo/enums/cardinality.py,sha256=QMS6gSqppfGrH0USlvR08JMAJiFXR23X_rnQcdCpgiU,103
4
+ maleo/enums/client.py,sha256=ldnnsZh8Spq6UhB-T3wypAQgk7nzvGXthAkq8JSzzTg,94
5
+ maleo/enums/code.py,sha256=zWh_6BXmYOr_MB3m710i9Zvenh3NwnO7VDUP1X0fwDY,627
6
+ maleo/enums/controller.py,sha256=GQ5ZhTuwuR6cdbyo7LmwEQ-H8bXRIJjG8NoujJ-xdFM,136
7
+ maleo/enums/environment.py,sha256=G_dwaCEZ4QRZue9GUjhMLliOUGLzQzuQBuxSNozzwB8,129
8
+ maleo/enums/error.py,sha256=a2q0_U8-QALktjQhHCdcdq_aAFBhxZKCpSz6RJTM-rQ,1248
9
+ maleo/enums/execution.py,sha256=47wffragxWOxjaZWbVYVTswlGQGhERgo3tJEAE_9eJc,188
10
+ maleo/enums/expiration.py,sha256=1xjp24C2YFfcdnr4plcNmZpwUOVvFvK8ECKYKIEGr84,524
11
+ maleo/enums/operation.py,sha256=kNPgqxQCpia6C2FlLu-bK97vybDmraKJJJ9V-YUesTg,1771
12
+ maleo/enums/pagination.py,sha256=vMkwBv251PiIg9ah6AxSWp65wx8DkWFmgxmcXQPbCL4,115
13
+ maleo/enums/privilege.py,sha256=RvgqB81WbmBQsoJW5arxw9T7c800q4e_H1tKSIx1NjI,123
14
+ maleo/enums/request.py,sha256=G1Gtwg26vho0dkzT0NB_yBqqDY-nBNK9NijNZihqh6U,527
15
+ maleo/enums/service.py,sha256=CvvI0uXlhGLUcAbNUHYvmfvs9j5ikooOGlPyrz6ZJMk,1773
16
+ maleo/enums/sort.py,sha256=06Zm2T7i7EfHIplvfCKh0aSiuYHRgeNmCTipniSHJis,83
17
+ maleo/enums/status.py,sha256=bwdDNx_9caQUsTzXBOcOsrYCnZt1XRHwcxDjDWMz-2E,126
18
+ maleo/enums/timestamp.py,sha256=YN-11Lzf69is5vnX7qPnWpuqF5vL1AUiAv2aEeJgK5o,516
19
+ maleo/enums/token.py,sha256=vMhmXRoFccJymOrHvjbYL9lOW9crPA8GzpqJ3uDsz64,99
20
+ maleo_enums-0.0.3.dist-info/licenses/LICENSE,sha256=aftGsecnk7TWVX-7KW94FqK4Syy6YSZ8PZEF7EcIp3M,2621
21
+ maleo_enums-0.0.3.dist-info/METADATA,sha256=sDcSQEfMcMQXhJ4KldXJ2COQmxG9A-vxEQB8TTx38Us,1279
22
+ maleo_enums-0.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
+ maleo_enums-0.0.3.dist-info/top_level.txt,sha256=3Tpd1siVsfYoeI9FEOJNYnffx_shzZ3wsPpTvz5bljc,6
24
+ maleo_enums-0.0.3.dist-info/RECORD,,
maleo/enums/case.py DELETED
@@ -1,7 +0,0 @@
1
- from enum import StrEnum
2
-
3
-
4
- class Case(StrEnum):
5
- CAMEL = "camel"
6
- PASCAL = "pascal"
7
- SNAKE = "snake"
maleo/enums/field.py DELETED
@@ -1,11 +0,0 @@
1
- from enum import StrEnum
2
-
3
-
4
- class ExcludableField(StrEnum):
5
- CREATED_AT = "created_at"
6
- UPDATED_AT = "updated_at"
7
- DELETED_AT = "deleted_at"
8
- RESTORED_AT = "restored_at"
9
- DEACTIVATED_AT = "deactivated_at"
10
- ACTIVATED_AT = "activated_at"
11
- STATUS = "status"
maleo/enums/hash.py DELETED
@@ -1,6 +0,0 @@
1
- from enum import StrEnum
2
-
3
-
4
- class Mode(StrEnum):
5
- OBJECT = "object"
6
- DIGEST = "digest"
maleo/enums/key.py DELETED
@@ -1,11 +0,0 @@
1
- from enum import StrEnum
2
-
3
-
4
- class RSAKeyType(StrEnum):
5
- PRIVATE = "private"
6
- PUBLIC = "public"
7
-
8
-
9
- class KeyFormat(StrEnum):
10
- BYTES = "bytes"
11
- STRING = "string"
maleo/enums/logging.py DELETED
@@ -1,24 +0,0 @@
1
- import logging
2
- from enum import IntEnum, StrEnum
3
-
4
-
5
- class LoggerType(StrEnum):
6
- APPLICATION = "application"
7
- CACHE = "cache"
8
- CLIENT = "client"
9
- CONTROLLER = "controller"
10
- DATABASE = "database"
11
- MIDDLEWARE = "middleware"
12
- REPOSITORY = "repository"
13
- SERVICE = "service"
14
-
15
-
16
- class LogLevel(IntEnum):
17
- CRITICAL = logging.CRITICAL
18
- FATAL = logging.FATAL
19
- ERROR = logging.ERROR
20
- WARNING = logging.WARNING
21
- WARN = logging.WARN
22
- INFO = logging.INFO
23
- DEBUG = logging.DEBUG
24
- NOTSET = logging.NOTSET
maleo/enums/secret.py DELETED
@@ -1,11 +0,0 @@
1
- from enum import Enum, StrEnum
2
-
3
-
4
- class SecretFormat(StrEnum):
5
- BYTES = "bytes"
6
- STRING = "string"
7
-
8
-
9
- class SecretFormatType(Enum):
10
- BYTES = bytes
11
- STRING = str
@@ -1,30 +0,0 @@
1
- maleo/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- maleo/enums/cache.py,sha256=-TYkZ_JDK8gXhIzcwf48BS54PrthANJOshUvU6BGGtM,214
3
- maleo/enums/cardinality.py,sha256=QMS6gSqppfGrH0USlvR08JMAJiFXR23X_rnQcdCpgiU,103
4
- maleo/enums/case.py,sha256=MU4MxLJchqEaM-0Kt5bJP4BQIdwXzY_i3udpWZPG-ak,110
5
- maleo/enums/client.py,sha256=OIib1qZgcSP0tI0nM2B1R6rb_dQqJE8HnGwFCDYuTKg,100
6
- maleo/enums/code.py,sha256=fp3IpqE-SgwwLSNPiquzNM8By1KIF5aTTdY3vvnBGlc,1214
7
- maleo/enums/controller.py,sha256=e9DliXrFhnYzEUCeMW6f4mhHy1WSOkQWN0VgCBewygs,156
8
- maleo/enums/environment.py,sha256=G_dwaCEZ4QRZue9GUjhMLliOUGLzQzuQBuxSNozzwB8,129
9
- maleo/enums/error.py,sha256=O9nKmNMKEeYqkV-6sxBNTNkKnVno5MEd0BlbnKubPeQ,660
10
- maleo/enums/execution.py,sha256=LiaTCKAy0FWIkPgkFSf8WqlRCeHEjFzvMelXMTYVdU0,180
11
- maleo/enums/expiration.py,sha256=1xjp24C2YFfcdnr4plcNmZpwUOVvFvK8ECKYKIEGr84,524
12
- maleo/enums/field.py,sha256=kY75g9hqOxNAbuy-qtiWUREtTF2k9EjXl_leuJYMqfQ,275
13
- maleo/enums/hash.py,sha256=WueigDxLZJv7dLFq8Gi3FSBVzw44czoWy7rs3MUS00A,92
14
- maleo/enums/key.py,sha256=K67tfsQlKmP5V4dvi4Hb-OT8X0KUJ1uyQyGP3o_aDrQ,170
15
- maleo/enums/logging.py,sha256=cw0c1i6TfndgKuz0QxuxdlxNwYBO2plyLsmHf6HkGck,535
16
- maleo/enums/operation.py,sha256=MpwvD94FrPvsszVhZhkZtzMbz2jcdRrb6Av8NGnwe0s,1798
17
- maleo/enums/pagination.py,sha256=vMkwBv251PiIg9ah6AxSWp65wx8DkWFmgxmcXQPbCL4,115
18
- maleo/enums/request.py,sha256=G1Gtwg26vho0dkzT0NB_yBqqDY-nBNK9NijNZihqh6U,527
19
- maleo/enums/secret.py,sha256=OB0EqD0uH1IeivOCqAYUn0O8YbOQDuoV8mfGbXaJJ3A,171
20
- maleo/enums/service.py,sha256=S1AA2pS4e9xSdPEXVt8NmpXDbI-vYBrA9cIMGo2iGlo,1801
21
- maleo/enums/sort.py,sha256=_1W6uUO2cHY6FQT2eXRNOt6_RwBvQQ0OUqBNGt-vp5k,87
22
- maleo/enums/status.py,sha256=bwdDNx_9caQUsTzXBOcOsrYCnZt1XRHwcxDjDWMz-2E,126
23
- maleo/enums/timestamp.py,sha256=YN-11Lzf69is5vnX7qPnWpuqF5vL1AUiAv2aEeJgK5o,516
24
- maleo/enums/token.py,sha256=vMhmXRoFccJymOrHvjbYL9lOW9crPA8GzpqJ3uDsz64,99
25
- maleo/enums/user.py,sha256=UduAoVpJq7WetBQ2Dhlc3yW1J6iAhfLcWtQlh1bMn8A,132
26
- maleo_enums-0.0.1.dist-info/licenses/LICENSE,sha256=aftGsecnk7TWVX-7KW94FqK4Syy6YSZ8PZEF7EcIp3M,2621
27
- maleo_enums-0.0.1.dist-info/METADATA,sha256=nbsBVX52nNdF9hlo9FkbHyn7qMwmNQ5-HzOVy78YX38,1279
28
- maleo_enums-0.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
29
- maleo_enums-0.0.1.dist-info/top_level.txt,sha256=3Tpd1siVsfYoeI9FEOJNYnffx_shzZ3wsPpTvz5bljc,6
30
- maleo_enums-0.0.1.dist-info/RECORD,,