@bygnet/types 1.0.0 → 1.2.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/README.md ADDED
@@ -0,0 +1,10 @@
1
+ # Byg Platform Types
2
+ TypeScript types for Byg Platform.
3
+ > Learn more about Byg: [here](https://github.com/BygNet).
4
+
5
+ ## Install
6
+ Byg Platform recommends using [Bun](https://bun.sh/) to manage your dependencies.
7
+
8
+ ```shell
9
+ bun add @bygnet/types
10
+ ```
@@ -0,0 +1,4 @@
1
+ export interface BygAd {
2
+ name: string;
3
+ image: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ export interface BygComment {
2
+ id: number;
3
+ author: string;
4
+ content: string;
5
+ createdDate: string;
6
+ }
@@ -0,0 +1,10 @@
1
+ export interface BygImage {
2
+ id: number;
3
+ title: string;
4
+ imageUrl: string;
5
+ author: string;
6
+ createdDate: string;
7
+ likes: number;
8
+ shares: number;
9
+ commentCount: number;
10
+ }
@@ -0,0 +1,10 @@
1
+ export interface BygPost {
2
+ id: number;
3
+ title: string;
4
+ content: string;
5
+ author: string;
6
+ createdDate: string;
7
+ likes: number;
8
+ shares: number;
9
+ commentCount: number;
10
+ }
@@ -0,0 +1,7 @@
1
+ export interface BygShop {
2
+ title: string;
3
+ subtitle: string;
4
+ imageName: string;
5
+ tint: string;
6
+ openUrl: string;
7
+ }
@@ -0,0 +1,7 @@
1
+ export * from './content/ad';
2
+ export * from './content/comment';
3
+ export * from './content/image';
4
+ export * from './content/post';
5
+ export * from './content/shop';
6
+ export * from './unions/create';
7
+ export * from './web/page';
@@ -0,0 +1 @@
1
+ export type CreateType = 'post' | 'image';
@@ -0,0 +1,6 @@
1
+ export interface BygPage {
2
+ title: string;
3
+ description: string;
4
+ path: string;
5
+ icon: string;
6
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bygnet/types",
3
- "version": "1.0.0",
4
- "description": "Byg Social's types for posts, images, and more, for Byg devs and the community.",
3
+ "version": "1.2.0",
4
+ "description": "Byg Platform's types for posts, images, and more, for Byg devs and the community.",
5
5
  "keywords": [
6
6
  "social-network",
7
7
  "typescript",
@@ -14,14 +14,21 @@
14
14
  "email": "ash@a35.dev",
15
15
  "url": "https://a35.dev"
16
16
  },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/BygNet/Types.git"
20
+ },
17
21
  "type": "module",
18
22
  "main": "src/index.ts",
23
+
24
+ "files": ["dist"],
19
25
  "types": "dist/index.d.ts",
20
26
  "exports": {
21
27
  ".": {
22
28
  "types": "./dist/index.d.ts"
23
29
  }
24
30
  },
31
+
25
32
  "scripts": {
26
33
  "build": "tsc",
27
34
  "format": "prettier --write src/"
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  // content
2
+ export * from './content/ad'
2
3
  export * from './content/comment'
3
4
  export * from './content/image'
4
5
  export * from './content/post'
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Ask2AgentMigrationStateService">
4
- <option name="migrationStatus" value="COMPLETED" />
5
- </component>
6
- </project>
@@ -1,38 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="HtmlUnknownTag" enabled="true" level="WARNING" enabled_by_default="true">
5
- <option name="myValues">
6
- <value>
7
- <list size="7">
8
- <item index="0" class="java.lang.String" itemvalue="nobr" />
9
- <item index="1" class="java.lang.String" itemvalue="noembed" />
10
- <item index="2" class="java.lang.String" itemvalue="comment" />
11
- <item index="3" class="java.lang.String" itemvalue="noscript" />
12
- <item index="4" class="java.lang.String" itemvalue="embed" />
13
- <item index="5" class="java.lang.String" itemvalue="script" />
14
- <item index="6" class="java.lang.String" itemvalue="iconify-icon" />
15
- </list>
16
- </value>
17
- </option>
18
- <option name="myCustomValuesEnabled" value="true" />
19
- </inspection_tool>
20
- <inspection_tool class="PyPep8Inspection" enabled="true" level="INFORMATION" enabled_by_default="true">
21
- <option name="ignoredErrors">
22
- <list>
23
- <option value="E302" />
24
- </list>
25
- </option>
26
- </inspection_tool>
27
- <inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
28
- <option name="ignoredErrors">
29
- <list>
30
- <option value="N802" />
31
- <option value="N806" />
32
- <option value="N812" />
33
- <option value="N803" />
34
- </list>
35
- </option>
36
- </inspection_tool>
37
- </profile>
38
- </component>
package/.idea/misc.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectRootManager" version="2">
4
- <output url="file://$PROJECT_DIR$/out" />
5
- </component>
6
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/byg-types.iml" filepath="$PROJECT_DIR$/byg-types.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
6
- </project>
package/.prettierrc DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "semi": false,
3
- "singleQuote": true,
4
- "trailingComma": "es5",
5
- "bracketSpacing": true,
6
- "arrowParens": "avoid",
7
- "endOfLine": "lf",
8
- "tabWidth": 2
9
- }
package/bun.lock DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "lockfileVersion": 1,
3
- "configVersion": 1,
4
- "workspaces": {
5
- "": {
6
- "name": "@bygnet/types",
7
- "dependencies": {
8
- "prettier": "^3.8.1",
9
- },
10
- },
11
- },
12
- "packages": {
13
- "prettier": ["prettier@3.8.1", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg=="],
14
- }
15
- }
package/byg-types.iml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="GENERAL_MODULE" version="4">
3
- <component name="NewModuleRootManager" inherit-compiler-output="true">
4
- <exclude-output />
5
- <content url="file://$MODULE_DIR$" />
6
- <orderEntry type="sourceFolder" forTests="false" />
7
- </component>
8
- </module>
@@ -1,6 +0,0 @@
1
- export interface BygComment {
2
- id: number
3
- author: string
4
- content: string
5
- createdDate: string
6
- }
@@ -1,10 +0,0 @@
1
- export interface BygImage {
2
- id: number
3
- title: string
4
- imageUrl: string
5
- author: string
6
- createdDate: string
7
- likes: number
8
- shares: number
9
- commentCount: number
10
- }
@@ -1,10 +0,0 @@
1
- export interface BygPost {
2
- id: number
3
- title: string
4
- content: string
5
- author: string
6
- createdDate: string
7
- likes: number
8
- shares: number
9
- commentCount: number
10
- }
@@ -1,7 +0,0 @@
1
- export interface BygShop {
2
- title: string
3
- subtitle: string
4
- imageName: string
5
- tint: string
6
- openUrl: string
7
- }
@@ -1 +0,0 @@
1
- export type CreateType = 'post' | 'image'
package/src/web/page.ts DELETED
@@ -1,6 +0,0 @@
1
- export interface BygPage {
2
- title: string
3
- description: string
4
- path: string
5
- icon: string
6
- }
package/tsconfig.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "declaration": true,
4
- "emitDeclarationOnly": true,
5
- "outDir": "dist",
6
- "strict": true,
7
- "skipLibCheck": true
8
- },
9
- "include": ["src"]
10
- }