triangle-types 1.0.106 → 1.0.107

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.
@@ -1,6 +1,7 @@
1
1
  export * from "./types/APIError.js";
2
2
  export * from "./types/State.js";
3
3
  export * from "./types/User.js";
4
+ export * from "./types/application/ApplicationStage.js";
4
5
  export * from "./types/press/PressArticle.js";
5
6
  export * from "./types/press/PressArticleTag.js";
6
7
  export * from "./types/twitter/TwitterTweet.js";
package/dist/src/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./types/APIError.js";
2
2
  export * from "./types/State.js";
3
3
  export * from "./types/User.js";
4
+ export * from "./types/application/ApplicationStage.js";
4
5
  export * from "./types/press/PressArticle.js";
5
6
  export * from "./types/press/PressArticleTag.js";
6
7
  export * from "./types/twitter/TwitterTweet.js";
@@ -0,0 +1,8 @@
1
+ export declare const application_stage_ids: readonly ["DEV", "ALPHA", "BETA", "GAMMA", "PROD"];
2
+ export type ApplicationStageID = typeof application_stage_ids[number];
3
+ export declare function is_application_stage_id(application_stage_id: any): application_stage_id is ApplicationStageID;
4
+ export interface ApplicationStage {
5
+ application_stage_id: ApplicationStageID;
6
+ port: number;
7
+ }
8
+ export declare const application_stages: Record<ApplicationStageID, ApplicationStage>;
@@ -0,0 +1,26 @@
1
+ export const application_stage_ids = ["DEV", "ALPHA", "BETA", "GAMMA", "PROD"];
2
+ export function is_application_stage_id(application_stage_id) {
3
+ return application_stage_ids.includes(application_stage_id);
4
+ }
5
+ export const application_stages = {
6
+ DEV: {
7
+ application_stage_id: "DEV",
8
+ port: 3000
9
+ },
10
+ ALPHA: {
11
+ application_stage_id: "ALPHA",
12
+ port: 3001
13
+ },
14
+ BETA: {
15
+ application_stage_id: "BETA",
16
+ port: 3002
17
+ },
18
+ GAMMA: {
19
+ application_stage_id: "GAMMA",
20
+ port: 3003
21
+ },
22
+ PROD: {
23
+ application_stage_id: "PROD",
24
+ port: 80
25
+ }
26
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.106",
3
+ "version": "1.0.107",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -2,6 +2,8 @@ export * from "./types/APIError"
2
2
  export * from "./types/State"
3
3
  export * from "./types/User"
4
4
 
5
+ export * from "./types/application/ApplicationStage"
6
+
5
7
  export * from "./types/press/PressArticle"
6
8
  export * from "./types/press/PressArticleTag"
7
9
  export * from "./types/twitter/TwitterTweet"
@@ -0,0 +1,35 @@
1
+ export const application_stage_ids = ["DEV", "ALPHA", "BETA", "GAMMA", "PROD"] as const
2
+
3
+ export type ApplicationStageID = typeof application_stage_ids[number]
4
+
5
+ export function is_application_stage_id(application_stage_id : any) : application_stage_id is ApplicationStageID {
6
+ return application_stage_ids.includes(application_stage_id)
7
+ }
8
+
9
+ export interface ApplicationStage {
10
+ application_stage_id : ApplicationStageID,
11
+ port : number
12
+ }
13
+
14
+ export const application_stages : Record<ApplicationStageID, ApplicationStage> = {
15
+ DEV : {
16
+ application_stage_id : "DEV",
17
+ port : 3000
18
+ },
19
+ ALPHA : {
20
+ application_stage_id : "ALPHA",
21
+ port : 3001
22
+ },
23
+ BETA : {
24
+ application_stage_id : "BETA",
25
+ port : 3002
26
+ },
27
+ GAMMA : {
28
+ application_stage_id : "GAMMA",
29
+ port : 3003
30
+ },
31
+ PROD : {
32
+ application_stage_id : "PROD",
33
+ port : 80
34
+ }
35
+ }