@creo-team/structures 2.0.0
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.
- package/LICENSE +15 -0
- package/README.md +58 -0
- package/dist/src/aws.d.ts +35 -0
- package/dist/src/aws.d.ts.map +1 -0
- package/dist/src/aws.js +39 -0
- package/dist/src/aws.js.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +19 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/misc.d.ts +117 -0
- package/dist/src/misc.d.ts.map +1 -0
- package/dist/src/misc.js +130 -0
- package/dist/src/misc.js.map +1 -0
- package/dist/src/package-json.d.ts +70 -0
- package/dist/src/package-json.d.ts.map +1 -0
- package/dist/src/package-json.js +3 -0
- package/dist/src/package-json.js.map +1 -0
- package/dist/vitest.config.d.ts +3 -0
- package/dist/vitest.config.d.ts.map +1 -0
- package/dist/vitest.config.js +15 -0
- package/dist/vitest.config.js.map +1 -0
- package/package.json +52 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Krauters
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
10
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
11
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
13
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
14
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
|
+
PERFORMANCE OF THIS SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# @creo-team/structures
|
|
2
|
+
|
|
3
|
+
Shared TypeScript structures — enums, interfaces, types — for consistency across Creo projects.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @creo-team/structures
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import {
|
|
15
|
+
Env,
|
|
16
|
+
Stage,
|
|
17
|
+
HttpStatus,
|
|
18
|
+
HttpMethod,
|
|
19
|
+
AwsRegion,
|
|
20
|
+
type PackageJson,
|
|
21
|
+
} from '@creo-team/structures'
|
|
22
|
+
|
|
23
|
+
// Environment / stage (aliases: Env, Environment, Stage)
|
|
24
|
+
const stage: Stage = Stage.Production
|
|
25
|
+
if (stage === Stage.Beta) {
|
|
26
|
+
console.log('Running in beta')
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// HTTP
|
|
30
|
+
if (status === HttpStatus.Ok) {
|
|
31
|
+
// ...
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// AWS
|
|
35
|
+
const region = AwsRegion.UsEast1
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Contents
|
|
39
|
+
|
|
40
|
+
| Category | Exports |
|
|
41
|
+
|----------|---------|
|
|
42
|
+
| **Environment** | `Env`, `Stage`, `Environment`, `envs`, `stages`, `environments` |
|
|
43
|
+
| **HTTP** | `HttpStatus`, `HttpMethod`, `HttpContentType`, `ResponseType` |
|
|
44
|
+
| **AWS** | `AwsRegion` |
|
|
45
|
+
| **File** | `FileExtension`, `FileEncoding` |
|
|
46
|
+
| **Other** | `LanguageCode`, `Status` |
|
|
47
|
+
| **Types** | `PackageJson`, `Person`, `Repository`, `Bugs`, `Dependencies`, etc. |
|
|
48
|
+
|
|
49
|
+
## Creo Ecosystem
|
|
50
|
+
|
|
51
|
+
- [@creo-team/eslint-config](https://www.npmjs.com/package/@creo-team/eslint-config) — shared ESLint config
|
|
52
|
+
- [creo-team/venice](https://github.com/creo-team/venice) — AWS Organizations management
|
|
53
|
+
- [creo-team/vecta](https://github.com/creo-team/vecta) — fishing guide booking
|
|
54
|
+
- [creo-team/photos](https://github.com/creo-team/photos) — photographer media site
|
|
55
|
+
|
|
56
|
+
## License
|
|
57
|
+
|
|
58
|
+
ISC
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare enum AwsRegion {
|
|
2
|
+
AfSouth1 = "af-south-1",
|
|
3
|
+
ApEast1 = "ap-east-1",
|
|
4
|
+
ApNortheast1 = "ap-northeast-1",
|
|
5
|
+
ApNortheast2 = "ap-northeast-2",
|
|
6
|
+
ApNortheast3 = "ap-northeast-3",
|
|
7
|
+
ApSouth1 = "ap-south-1",
|
|
8
|
+
ApSouth2 = "ap-south-2",
|
|
9
|
+
ApSoutheast1 = "ap-southeast-1",
|
|
10
|
+
ApSoutheast2 = "ap-southeast-2",
|
|
11
|
+
ApSoutheast3 = "ap-southeast-3",
|
|
12
|
+
CaCentral1 = "ca-central-1",
|
|
13
|
+
CnNorth1 = "cn-north-1",
|
|
14
|
+
CnNorthwest1 = "cn-northwest-1",
|
|
15
|
+
EuCentral1 = "eu-central-1",
|
|
16
|
+
EuNorth1 = "eu-north-1",
|
|
17
|
+
EuSouth1 = "eu-south-1",
|
|
18
|
+
EuSouth2 = "eu-south-2",
|
|
19
|
+
EuWest1 = "eu-west-1",
|
|
20
|
+
EuWest2 = "eu-west-2",
|
|
21
|
+
EuWest3 = "eu-west-3",
|
|
22
|
+
IsobEast1 = "isob-east-1",
|
|
23
|
+
IsoEast1 = "iso-east-1",
|
|
24
|
+
IsoWest1 = "iso-west-1",
|
|
25
|
+
MeCentral1 = "me-central-1",
|
|
26
|
+
MeSouth1 = "me-south-1",
|
|
27
|
+
SaEast1 = "sa-east-1",
|
|
28
|
+
UsEast1 = "us-east-1",
|
|
29
|
+
UsEast2 = "us-east-2",
|
|
30
|
+
UsGovEast1 = "us-gov-east-1",
|
|
31
|
+
UsGovWest1 = "us-gov-west-1",
|
|
32
|
+
UsWest1 = "us-west-1",
|
|
33
|
+
UsWest2 = "us-west-2"
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=aws.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aws.d.ts","sourceRoot":"","sources":["../../src/aws.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACpB,QAAQ,eAAe;IACvB,OAAO,cAAc;IACrB,YAAY,mBAAmB;IAC/B,YAAY,mBAAmB;IAC/B,YAAY,mBAAmB;IAC/B,QAAQ,eAAe;IACvB,QAAQ,eAAe;IACvB,YAAY,mBAAmB;IAC/B,YAAY,mBAAmB;IAC/B,YAAY,mBAAmB;IAC/B,UAAU,iBAAiB;IAC3B,QAAQ,eAAe;IACvB,YAAY,mBAAmB;IAC/B,UAAU,iBAAiB;IAC3B,QAAQ,eAAe;IACvB,QAAQ,eAAe;IACvB,QAAQ,eAAe;IACvB,OAAO,cAAc;IACrB,OAAO,cAAc;IACrB,OAAO,cAAc;IACrB,SAAS,gBAAgB;IACzB,QAAQ,eAAe;IACvB,QAAQ,eAAe;IACvB,UAAU,iBAAiB;IAC3B,QAAQ,eAAe;IACvB,OAAO,cAAc;IACrB,OAAO,cAAc;IACrB,OAAO,cAAc;IACrB,UAAU,kBAAkB;IAC5B,UAAU,kBAAkB;IAC5B,OAAO,cAAc;IACrB,OAAO,cAAc;CACrB"}
|
package/dist/src/aws.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AwsRegion = void 0;
|
|
4
|
+
var AwsRegion;
|
|
5
|
+
(function (AwsRegion) {
|
|
6
|
+
AwsRegion["AfSouth1"] = "af-south-1";
|
|
7
|
+
AwsRegion["ApEast1"] = "ap-east-1";
|
|
8
|
+
AwsRegion["ApNortheast1"] = "ap-northeast-1";
|
|
9
|
+
AwsRegion["ApNortheast2"] = "ap-northeast-2";
|
|
10
|
+
AwsRegion["ApNortheast3"] = "ap-northeast-3";
|
|
11
|
+
AwsRegion["ApSouth1"] = "ap-south-1";
|
|
12
|
+
AwsRegion["ApSouth2"] = "ap-south-2";
|
|
13
|
+
AwsRegion["ApSoutheast1"] = "ap-southeast-1";
|
|
14
|
+
AwsRegion["ApSoutheast2"] = "ap-southeast-2";
|
|
15
|
+
AwsRegion["ApSoutheast3"] = "ap-southeast-3";
|
|
16
|
+
AwsRegion["CaCentral1"] = "ca-central-1";
|
|
17
|
+
AwsRegion["CnNorth1"] = "cn-north-1";
|
|
18
|
+
AwsRegion["CnNorthwest1"] = "cn-northwest-1";
|
|
19
|
+
AwsRegion["EuCentral1"] = "eu-central-1";
|
|
20
|
+
AwsRegion["EuNorth1"] = "eu-north-1";
|
|
21
|
+
AwsRegion["EuSouth1"] = "eu-south-1";
|
|
22
|
+
AwsRegion["EuSouth2"] = "eu-south-2";
|
|
23
|
+
AwsRegion["EuWest1"] = "eu-west-1";
|
|
24
|
+
AwsRegion["EuWest2"] = "eu-west-2";
|
|
25
|
+
AwsRegion["EuWest3"] = "eu-west-3";
|
|
26
|
+
AwsRegion["IsobEast1"] = "isob-east-1";
|
|
27
|
+
AwsRegion["IsoEast1"] = "iso-east-1";
|
|
28
|
+
AwsRegion["IsoWest1"] = "iso-west-1";
|
|
29
|
+
AwsRegion["MeCentral1"] = "me-central-1";
|
|
30
|
+
AwsRegion["MeSouth1"] = "me-south-1";
|
|
31
|
+
AwsRegion["SaEast1"] = "sa-east-1";
|
|
32
|
+
AwsRegion["UsEast1"] = "us-east-1";
|
|
33
|
+
AwsRegion["UsEast2"] = "us-east-2";
|
|
34
|
+
AwsRegion["UsGovEast1"] = "us-gov-east-1";
|
|
35
|
+
AwsRegion["UsGovWest1"] = "us-gov-west-1";
|
|
36
|
+
AwsRegion["UsWest1"] = "us-west-1";
|
|
37
|
+
AwsRegion["UsWest2"] = "us-west-2";
|
|
38
|
+
})(AwsRegion || (exports.AwsRegion = AwsRegion = {}));
|
|
39
|
+
//# sourceMappingURL=aws.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aws.js","sourceRoot":"","sources":["../../src/aws.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAiCX;AAjCD,WAAY,SAAS;IACpB,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;IACrB,4CAA+B,CAAA;IAC/B,4CAA+B,CAAA;IAC/B,4CAA+B,CAAA;IAC/B,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,4CAA+B,CAAA;IAC/B,4CAA+B,CAAA;IAC/B,4CAA+B,CAAA;IAC/B,wCAA2B,CAAA;IAC3B,oCAAuB,CAAA;IACvB,4CAA+B,CAAA;IAC/B,wCAA2B,CAAA;IAC3B,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,sCAAyB,CAAA;IACzB,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,wCAA2B,CAAA;IAC3B,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,yCAA4B,CAAA;IAC5B,yCAA4B,CAAA;IAC5B,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;AACtB,CAAC,EAjCW,SAAS,yBAAT,SAAS,QAiCpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,QAAQ,CAAA;AACtB,mBAAmB,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./aws"), exports);
|
|
18
|
+
__exportStar(require("./misc"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,yCAAsB"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
export declare enum Env {
|
|
2
|
+
Alpha = "Alpha",
|
|
3
|
+
Beta = "Beta",
|
|
4
|
+
Development = "Development",
|
|
5
|
+
Gamma = "Gamma",
|
|
6
|
+
Pipeline = "Pipeline",
|
|
7
|
+
Production = "Production",
|
|
8
|
+
Root = "Root",
|
|
9
|
+
Unknown = "Unknown"
|
|
10
|
+
}
|
|
11
|
+
export declare const envs: Env[];
|
|
12
|
+
export declare enum FileEncoding {
|
|
13
|
+
ASCII = "ascii",
|
|
14
|
+
Base64 = "base64",
|
|
15
|
+
Binary = "binary",
|
|
16
|
+
Hex = "hex",
|
|
17
|
+
ISO88591 = "iso-8859-1",
|
|
18
|
+
ISO88592 = "iso-8859-2",
|
|
19
|
+
UCS2 = "ucs2",
|
|
20
|
+
UTF16LE = "utf16le",
|
|
21
|
+
UTF32 = "utf32",
|
|
22
|
+
UTF8 = "utf8",
|
|
23
|
+
Windows1252 = "windows-1252"
|
|
24
|
+
}
|
|
25
|
+
export declare enum FileExtension {
|
|
26
|
+
CSS = "css",
|
|
27
|
+
CSV = "csv",
|
|
28
|
+
DLL = "dll",
|
|
29
|
+
DOCX = "docx",
|
|
30
|
+
EXE = "exe",
|
|
31
|
+
HTML = "html",
|
|
32
|
+
JPG = "jpg",
|
|
33
|
+
JS = "js",
|
|
34
|
+
JSON = "json",
|
|
35
|
+
MKV = "mkv",
|
|
36
|
+
MP3 = "mp3",
|
|
37
|
+
MP4 = "mp4",
|
|
38
|
+
PDF = "pdf",
|
|
39
|
+
PNG = "png",
|
|
40
|
+
RAR = "rar",
|
|
41
|
+
TS = "ts",
|
|
42
|
+
TXT = "txt",
|
|
43
|
+
XML = "xml",
|
|
44
|
+
ZIP = "zip"
|
|
45
|
+
}
|
|
46
|
+
export declare enum HttpContentType {
|
|
47
|
+
Css = "text/css",
|
|
48
|
+
FormUrlEncoded = "application/x-www-form-urlencoded",
|
|
49
|
+
Html = "text/html",
|
|
50
|
+
Javascript = "application/javascript",
|
|
51
|
+
Json = "application/json",
|
|
52
|
+
MultipartFormData = "multipart/form-data",
|
|
53
|
+
TextPlain = "text/plain",
|
|
54
|
+
Xml = "application/xml"
|
|
55
|
+
}
|
|
56
|
+
export declare enum HttpMethod {
|
|
57
|
+
DELETE = "DELETE",
|
|
58
|
+
GET = "GET",
|
|
59
|
+
HEAD = "HEAD",
|
|
60
|
+
OPTIONS = "OPTIONS",
|
|
61
|
+
PATCH = "PATCH",
|
|
62
|
+
POST = "POST",
|
|
63
|
+
PUT = "PUT"
|
|
64
|
+
}
|
|
65
|
+
export declare enum HttpStatus {
|
|
66
|
+
Accepted = 202,
|
|
67
|
+
BadGateway = 502,
|
|
68
|
+
BadRequest = 400,
|
|
69
|
+
Conflict = 409,
|
|
70
|
+
Created = 201,
|
|
71
|
+
Forbidden = 403,
|
|
72
|
+
GatewayTimeout = 504,
|
|
73
|
+
Gone = 410,
|
|
74
|
+
HttpVersionNotSupported = 505,
|
|
75
|
+
InternalServerError = 500,
|
|
76
|
+
MethodNotAllowed = 405,
|
|
77
|
+
NoContent = 204,
|
|
78
|
+
NotAcceptable = 406,
|
|
79
|
+
NotFound = 404,
|
|
80
|
+
NotImplemented = 501,
|
|
81
|
+
Ok = 200,
|
|
82
|
+
PartialContent = 206,
|
|
83
|
+
PaymentRequired = 402,
|
|
84
|
+
ResetContent = 205,
|
|
85
|
+
ServiceUnavailable = 503,
|
|
86
|
+
TooManyRequests = 429,
|
|
87
|
+
Unauthorized = 401,
|
|
88
|
+
UnavailableForLegalReasons = 451
|
|
89
|
+
}
|
|
90
|
+
export declare enum LanguageCode {
|
|
91
|
+
Chinese = "zh",
|
|
92
|
+
English = "en",
|
|
93
|
+
French = "fr",
|
|
94
|
+
German = "de",
|
|
95
|
+
Hindi = "hi",
|
|
96
|
+
Spanish = "es"
|
|
97
|
+
}
|
|
98
|
+
export declare enum ResponseType {
|
|
99
|
+
ArrayBuffer = "arraybuffer",
|
|
100
|
+
Blob = "blob",
|
|
101
|
+
Document = "document",
|
|
102
|
+
FormData = "formdata",
|
|
103
|
+
Json = "json",
|
|
104
|
+
Stream = "stream",
|
|
105
|
+
Text = "text"
|
|
106
|
+
}
|
|
107
|
+
export declare enum Status {
|
|
108
|
+
Active = "Active",
|
|
109
|
+
Canceled = "Canceled",
|
|
110
|
+
Completed = "Completed",
|
|
111
|
+
Failed = "Failed",
|
|
112
|
+
Inactive = "Inactive",
|
|
113
|
+
Pending = "Pending",
|
|
114
|
+
Suspended = "Suspended"
|
|
115
|
+
}
|
|
116
|
+
export { Env as Environment, envs as environments, Env as Stage, envs as stages };
|
|
117
|
+
//# sourceMappingURL=misc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../src/misc.ts"],"names":[],"mappings":"AAAA,oBAAY,GAAG;IACd,KAAK,UAAU;IACf,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,OAAO,YAAY;CACnB;AACD,eAAO,MAAM,IAAI,OAAqB,CAAA;AAEtC,oBAAY,YAAY;IACvB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,QAAQ,eAAe;IACvB,QAAQ,eAAe;IACvB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,WAAW,iBAAiB;CAC5B;AAED,oBAAY,aAAa;IACxB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,EAAE,OAAO;IACT,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,EAAE,OAAO;IACT,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;CACX;AAED,oBAAY,eAAe;IAC1B,GAAG,aAAa;IAChB,cAAc,sCAAsC;IACpD,IAAI,cAAc;IAClB,UAAU,2BAA2B;IACrC,IAAI,qBAAqB;IACzB,iBAAiB,wBAAwB;IACzC,SAAS,eAAe;IACxB,GAAG,oBAAoB;CACvB;AAED,oBAAY,UAAU;IACrB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,GAAG,QAAQ;CACX;AAED,oBAAY,UAAU;IACrB,QAAQ,MAAM;IACd,UAAU,MAAM;IAChB,UAAU,MAAM;IAChB,QAAQ,MAAM;IACd,OAAO,MAAM;IACb,SAAS,MAAM;IACf,cAAc,MAAM;IACpB,IAAI,MAAM;IACV,uBAAuB,MAAM;IAC7B,mBAAmB,MAAM;IACzB,gBAAgB,MAAM;IACtB,SAAS,MAAM;IACf,aAAa,MAAM;IACnB,QAAQ,MAAM;IACd,cAAc,MAAM;IACpB,EAAE,MAAM;IACR,cAAc,MAAM;IACpB,eAAe,MAAM;IACrB,YAAY,MAAM;IAClB,kBAAkB,MAAM;IACxB,eAAe,MAAM;IACrB,YAAY,MAAM;IAClB,0BAA0B,MAAM;CAChC;AAED,oBAAY,YAAY;IACvB,OAAO,OAAO;IACd,OAAO,OAAO;IACd,MAAM,OAAO;IACb,MAAM,OAAO;IACb,KAAK,OAAO;IACZ,OAAO,OAAO;CACd;AAED,oBAAY,YAAY;IACvB,WAAW,gBAAgB;IAC3B,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;CACb;AAED,oBAAY,MAAM;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,SAAS,cAAc;CACvB;AAGD,OAAO,EAAE,GAAG,IAAI,WAAW,EAAE,IAAI,IAAI,YAAY,EAAE,GAAG,IAAI,KAAK,EAAE,IAAI,IAAI,MAAM,EAAE,CAAA"}
|
package/dist/src/misc.js
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stages = exports.Stage = exports.environments = exports.Environment = exports.Status = exports.ResponseType = exports.LanguageCode = exports.HttpStatus = exports.HttpMethod = exports.HttpContentType = exports.FileExtension = exports.FileEncoding = exports.envs = exports.Env = void 0;
|
|
4
|
+
var Env;
|
|
5
|
+
(function (Env) {
|
|
6
|
+
Env["Alpha"] = "Alpha";
|
|
7
|
+
Env["Beta"] = "Beta";
|
|
8
|
+
Env["Development"] = "Development";
|
|
9
|
+
Env["Gamma"] = "Gamma";
|
|
10
|
+
Env["Pipeline"] = "Pipeline";
|
|
11
|
+
Env["Production"] = "Production";
|
|
12
|
+
Env["Root"] = "Root";
|
|
13
|
+
Env["Unknown"] = "Unknown";
|
|
14
|
+
})(Env || (exports.Stage = exports.Environment = exports.Env = Env = {}));
|
|
15
|
+
exports.envs = Object.values(Env);
|
|
16
|
+
exports.environments = exports.envs;
|
|
17
|
+
exports.stages = exports.envs;
|
|
18
|
+
var FileEncoding;
|
|
19
|
+
(function (FileEncoding) {
|
|
20
|
+
FileEncoding["ASCII"] = "ascii";
|
|
21
|
+
FileEncoding["Base64"] = "base64";
|
|
22
|
+
FileEncoding["Binary"] = "binary";
|
|
23
|
+
FileEncoding["Hex"] = "hex";
|
|
24
|
+
FileEncoding["ISO88591"] = "iso-8859-1";
|
|
25
|
+
FileEncoding["ISO88592"] = "iso-8859-2";
|
|
26
|
+
FileEncoding["UCS2"] = "ucs2";
|
|
27
|
+
FileEncoding["UTF16LE"] = "utf16le";
|
|
28
|
+
FileEncoding["UTF32"] = "utf32";
|
|
29
|
+
FileEncoding["UTF8"] = "utf8";
|
|
30
|
+
FileEncoding["Windows1252"] = "windows-1252";
|
|
31
|
+
})(FileEncoding || (exports.FileEncoding = FileEncoding = {}));
|
|
32
|
+
var FileExtension;
|
|
33
|
+
(function (FileExtension) {
|
|
34
|
+
FileExtension["CSS"] = "css";
|
|
35
|
+
FileExtension["CSV"] = "csv";
|
|
36
|
+
FileExtension["DLL"] = "dll";
|
|
37
|
+
FileExtension["DOCX"] = "docx";
|
|
38
|
+
FileExtension["EXE"] = "exe";
|
|
39
|
+
FileExtension["HTML"] = "html";
|
|
40
|
+
FileExtension["JPG"] = "jpg";
|
|
41
|
+
FileExtension["JS"] = "js";
|
|
42
|
+
FileExtension["JSON"] = "json";
|
|
43
|
+
FileExtension["MKV"] = "mkv";
|
|
44
|
+
FileExtension["MP3"] = "mp3";
|
|
45
|
+
FileExtension["MP4"] = "mp4";
|
|
46
|
+
FileExtension["PDF"] = "pdf";
|
|
47
|
+
FileExtension["PNG"] = "png";
|
|
48
|
+
FileExtension["RAR"] = "rar";
|
|
49
|
+
FileExtension["TS"] = "ts";
|
|
50
|
+
FileExtension["TXT"] = "txt";
|
|
51
|
+
FileExtension["XML"] = "xml";
|
|
52
|
+
FileExtension["ZIP"] = "zip";
|
|
53
|
+
})(FileExtension || (exports.FileExtension = FileExtension = {}));
|
|
54
|
+
var HttpContentType;
|
|
55
|
+
(function (HttpContentType) {
|
|
56
|
+
HttpContentType["Css"] = "text/css";
|
|
57
|
+
HttpContentType["FormUrlEncoded"] = "application/x-www-form-urlencoded";
|
|
58
|
+
HttpContentType["Html"] = "text/html";
|
|
59
|
+
HttpContentType["Javascript"] = "application/javascript";
|
|
60
|
+
HttpContentType["Json"] = "application/json";
|
|
61
|
+
HttpContentType["MultipartFormData"] = "multipart/form-data";
|
|
62
|
+
HttpContentType["TextPlain"] = "text/plain";
|
|
63
|
+
HttpContentType["Xml"] = "application/xml";
|
|
64
|
+
})(HttpContentType || (exports.HttpContentType = HttpContentType = {}));
|
|
65
|
+
var HttpMethod;
|
|
66
|
+
(function (HttpMethod) {
|
|
67
|
+
HttpMethod["DELETE"] = "DELETE";
|
|
68
|
+
HttpMethod["GET"] = "GET";
|
|
69
|
+
HttpMethod["HEAD"] = "HEAD";
|
|
70
|
+
HttpMethod["OPTIONS"] = "OPTIONS";
|
|
71
|
+
HttpMethod["PATCH"] = "PATCH";
|
|
72
|
+
HttpMethod["POST"] = "POST";
|
|
73
|
+
HttpMethod["PUT"] = "PUT";
|
|
74
|
+
})(HttpMethod || (exports.HttpMethod = HttpMethod = {}));
|
|
75
|
+
var HttpStatus;
|
|
76
|
+
(function (HttpStatus) {
|
|
77
|
+
HttpStatus[HttpStatus["Accepted"] = 202] = "Accepted";
|
|
78
|
+
HttpStatus[HttpStatus["BadGateway"] = 502] = "BadGateway";
|
|
79
|
+
HttpStatus[HttpStatus["BadRequest"] = 400] = "BadRequest";
|
|
80
|
+
HttpStatus[HttpStatus["Conflict"] = 409] = "Conflict";
|
|
81
|
+
HttpStatus[HttpStatus["Created"] = 201] = "Created";
|
|
82
|
+
HttpStatus[HttpStatus["Forbidden"] = 403] = "Forbidden";
|
|
83
|
+
HttpStatus[HttpStatus["GatewayTimeout"] = 504] = "GatewayTimeout";
|
|
84
|
+
HttpStatus[HttpStatus["Gone"] = 410] = "Gone";
|
|
85
|
+
HttpStatus[HttpStatus["HttpVersionNotSupported"] = 505] = "HttpVersionNotSupported";
|
|
86
|
+
HttpStatus[HttpStatus["InternalServerError"] = 500] = "InternalServerError";
|
|
87
|
+
HttpStatus[HttpStatus["MethodNotAllowed"] = 405] = "MethodNotAllowed";
|
|
88
|
+
HttpStatus[HttpStatus["NoContent"] = 204] = "NoContent";
|
|
89
|
+
HttpStatus[HttpStatus["NotAcceptable"] = 406] = "NotAcceptable";
|
|
90
|
+
HttpStatus[HttpStatus["NotFound"] = 404] = "NotFound";
|
|
91
|
+
HttpStatus[HttpStatus["NotImplemented"] = 501] = "NotImplemented";
|
|
92
|
+
HttpStatus[HttpStatus["Ok"] = 200] = "Ok";
|
|
93
|
+
HttpStatus[HttpStatus["PartialContent"] = 206] = "PartialContent";
|
|
94
|
+
HttpStatus[HttpStatus["PaymentRequired"] = 402] = "PaymentRequired";
|
|
95
|
+
HttpStatus[HttpStatus["ResetContent"] = 205] = "ResetContent";
|
|
96
|
+
HttpStatus[HttpStatus["ServiceUnavailable"] = 503] = "ServiceUnavailable";
|
|
97
|
+
HttpStatus[HttpStatus["TooManyRequests"] = 429] = "TooManyRequests";
|
|
98
|
+
HttpStatus[HttpStatus["Unauthorized"] = 401] = "Unauthorized";
|
|
99
|
+
HttpStatus[HttpStatus["UnavailableForLegalReasons"] = 451] = "UnavailableForLegalReasons";
|
|
100
|
+
})(HttpStatus || (exports.HttpStatus = HttpStatus = {}));
|
|
101
|
+
var LanguageCode;
|
|
102
|
+
(function (LanguageCode) {
|
|
103
|
+
LanguageCode["Chinese"] = "zh";
|
|
104
|
+
LanguageCode["English"] = "en";
|
|
105
|
+
LanguageCode["French"] = "fr";
|
|
106
|
+
LanguageCode["German"] = "de";
|
|
107
|
+
LanguageCode["Hindi"] = "hi";
|
|
108
|
+
LanguageCode["Spanish"] = "es";
|
|
109
|
+
})(LanguageCode || (exports.LanguageCode = LanguageCode = {}));
|
|
110
|
+
var ResponseType;
|
|
111
|
+
(function (ResponseType) {
|
|
112
|
+
ResponseType["ArrayBuffer"] = "arraybuffer";
|
|
113
|
+
ResponseType["Blob"] = "blob";
|
|
114
|
+
ResponseType["Document"] = "document";
|
|
115
|
+
ResponseType["FormData"] = "formdata";
|
|
116
|
+
ResponseType["Json"] = "json";
|
|
117
|
+
ResponseType["Stream"] = "stream";
|
|
118
|
+
ResponseType["Text"] = "text";
|
|
119
|
+
})(ResponseType || (exports.ResponseType = ResponseType = {}));
|
|
120
|
+
var Status;
|
|
121
|
+
(function (Status) {
|
|
122
|
+
Status["Active"] = "Active";
|
|
123
|
+
Status["Canceled"] = "Canceled";
|
|
124
|
+
Status["Completed"] = "Completed";
|
|
125
|
+
Status["Failed"] = "Failed";
|
|
126
|
+
Status["Inactive"] = "Inactive";
|
|
127
|
+
Status["Pending"] = "Pending";
|
|
128
|
+
Status["Suspended"] = "Suspended";
|
|
129
|
+
})(Status || (exports.Status = Status = {}));
|
|
130
|
+
//# sourceMappingURL=misc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/misc.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W,YAAY,4BAAZ,YAAY,QAQvB;AAED,IAAY,MAQX;AARD,WAAY,MAAM;IACjB,2BAAiB,CAAA;IACjB,+BAAqB,CAAA;IACrB,iCAAuB,CAAA;IACvB,2BAAiB,CAAA;IACjB,+BAAqB,CAAA;IACrB,6BAAmB,CAAA;IACnB,iCAAuB,CAAA;AACxB,CAAC,EARW,MAAM,sBAAN,MAAM,QAQjB"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export type Bin = Record<string, string>;
|
|
2
|
+
export type Browser = Record<string, string>;
|
|
3
|
+
export interface Bugs {
|
|
4
|
+
email?: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
}
|
|
7
|
+
export type Dependencies = Record<string, string>;
|
|
8
|
+
export interface Directories {
|
|
9
|
+
bin?: string;
|
|
10
|
+
doc?: string;
|
|
11
|
+
example?: string;
|
|
12
|
+
lib?: string;
|
|
13
|
+
man?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface Engines {
|
|
16
|
+
[engine: string]: string | undefined;
|
|
17
|
+
node?: string;
|
|
18
|
+
npm?: string;
|
|
19
|
+
yarn?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface PackageJson {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
author?: Person | string;
|
|
24
|
+
bin?: Bin | string;
|
|
25
|
+
browser?: Browser | string;
|
|
26
|
+
bugs?: Bugs | string;
|
|
27
|
+
bundledDependencies?: string[];
|
|
28
|
+
config?: Record<string, any>;
|
|
29
|
+
contributors?: Person[] | string[];
|
|
30
|
+
cpu?: string[];
|
|
31
|
+
dependencies?: Dependencies;
|
|
32
|
+
description?: string;
|
|
33
|
+
devDependencies?: Dependencies;
|
|
34
|
+
directories?: Directories;
|
|
35
|
+
engines?: Engines;
|
|
36
|
+
files?: string[];
|
|
37
|
+
homepage?: string;
|
|
38
|
+
keywords?: string[];
|
|
39
|
+
license?: string;
|
|
40
|
+
main?: string;
|
|
41
|
+
man?: string | string[];
|
|
42
|
+
module?: string;
|
|
43
|
+
name: string;
|
|
44
|
+
optionalDependencies?: Dependencies;
|
|
45
|
+
os?: string[];
|
|
46
|
+
peerDependencies?: Dependencies;
|
|
47
|
+
private?: boolean;
|
|
48
|
+
publishConfig?: PublishConfig;
|
|
49
|
+
repository?: Repository | string;
|
|
50
|
+
scripts?: Scripts;
|
|
51
|
+
type?: 'commonjs' | 'module';
|
|
52
|
+
types?: string;
|
|
53
|
+
version: string;
|
|
54
|
+
}
|
|
55
|
+
export interface Person {
|
|
56
|
+
email?: string;
|
|
57
|
+
name?: string;
|
|
58
|
+
url?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface PublishConfig {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
access?: 'public' | 'restricted';
|
|
63
|
+
registry?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface Repository {
|
|
66
|
+
type: string;
|
|
67
|
+
url: string;
|
|
68
|
+
}
|
|
69
|
+
export type Scripts = Record<string, string>;
|
|
70
|
+
//# sourceMappingURL=package-json.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/package-json.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAExC,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAE5C,MAAM,WAAW,IAAI;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAEjD,MAAM,WAAW,WAAW;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAA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AY,CAAA;IACnC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IACb,gBAAgB,CAAC,EAAE,YAAY,CAAA;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,UAAU,CAAC,EAAE,UAAU,GAAG,MAAM,CAAA;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAA;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,MAAM;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,aAAa;IAE7B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IAClB,MAAM,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAA;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,UAAU;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACX;AAED,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-json.js","sourceRoot":"","sources":["../../src/package-json.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitest.config.d.ts","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":";AAGA,wBASE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const config_1 = require("vitest/config");
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
exports.default = (0, config_1.defineConfig)({
|
|
6
|
+
resolve: {
|
|
7
|
+
alias: {
|
|
8
|
+
'@': (0, path_1.resolve)(__dirname, './src'),
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
test: {
|
|
12
|
+
globals: true,
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=vitest.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitest.config.js","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":";;AAAA,0CAA4C;AAC5C,+BAA8B;AAE9B,kBAAe,IAAA,qBAAY,EAAC;IAC3B,OAAO,EAAE;QACR,KAAK,EAAE;YACN,GAAG,EAAE,IAAA,cAAO,EAAC,SAAS,EAAE,OAAO,CAAC;SAChC;KACD;IACD,IAAI,EAAE;QACL,OAAO,EAAE,IAAI;KACb;CACD,CAAC,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@creo-team/structures",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Shared TypeScript structures — enums, interfaces, types — for consistency across Creo projects.",
|
|
5
|
+
"author": "Creo Team",
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"homepage": "https://github.com/creo-team/structures",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/creo-team/structures.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/creo-team/structures/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"creo-team",
|
|
17
|
+
"enums",
|
|
18
|
+
"interfaces",
|
|
19
|
+
"structures",
|
|
20
|
+
"typescript"
|
|
21
|
+
],
|
|
22
|
+
"main": "dist/src/index.js",
|
|
23
|
+
"types": "dist/src/index.d.ts",
|
|
24
|
+
"type": "commonjs",
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=20.0.0",
|
|
27
|
+
"npm": ">=10"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsc",
|
|
31
|
+
"fix": "npm run lint -- --fix",
|
|
32
|
+
"lint": "npx eslint .",
|
|
33
|
+
"prepublishOnly": "npm run build",
|
|
34
|
+
"test": "vitest run && npm run lint",
|
|
35
|
+
"test:watch": "vitest",
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"upgrade:all": "npx npm-check-updates -u && npm install"
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"dist"
|
|
41
|
+
],
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@creo-team/eslint-config": "^2.4.3",
|
|
47
|
+
"@types/node": "^22.15.29",
|
|
48
|
+
"eslint": "^9.39.3",
|
|
49
|
+
"typescript": "^5.9.3",
|
|
50
|
+
"vitest": "^3.2.4"
|
|
51
|
+
}
|
|
52
|
+
}
|