Skip to content

Commit

Permalink
chore: transfer for x-spacy organization
Browse files Browse the repository at this point in the history
  • Loading branch information
gutyerrez committed Sep 28, 2024
1 parent 4909a54 commit 677cc13
Show file tree
Hide file tree
Showing 47 changed files with 2,507 additions and 3,449 deletions.
4 changes: 2 additions & 2 deletions @types/body.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module '@vyrnnstudios/messages' {
import { Body } from '@vyrnnstudios/messages';
declare module '@x-spacy/message-builder' {
import { Body } from '@x-spacy/message-builder';

export class BodyBuilder {
public static newBuilder(): BodyBuilder
Expand Down
4 changes: 2 additions & 2 deletions @types/contact.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module '@vyrnnstudios/messages' {
declare module '@x-spacy/message-builder' {
import {
Contact,
ContactAddress,
Expand All @@ -11,7 +11,7 @@ declare module '@vyrnnstudios/messages' {
ContactEmailType,
ContactPhoneType,
ContactUrlType
} from '@vyrnnstudios/messages';
} from '@x-spacy/message-builder';

export class ContactBuilder {
public static newBuilder(): ContactBuilder
Expand Down
4 changes: 2 additions & 2 deletions @types/context.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module '@vyrnnstudios/messages' {
import { Context } from '@vyrnnstudios/messages';
declare module '@x-spacy/message-builder' {
import { Context } from '@x-spacy/message-builder';

export class ContextBuilder {
public static newBuilder(): ContextBuilder
Expand Down
4 changes: 2 additions & 2 deletions @types/data.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module '@vyrnnstudios/messages' {
declare module '@x-spacy/message-builder' {
import {
MessageType,
RecipientType,
Expand All @@ -16,7 +16,7 @@ declare module '@vyrnnstudios/messages' {
HeaderBuilder,
BodyBuilder,
FooterBuilder
} from '@vyrnnstudios/messages';
} from '@x-spacy/message-builder';

export class Message {
public set to(to: string)
Expand Down
2 changes: 1 addition & 1 deletion @types/enums.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module '@vyrnnstudios/messages' {
declare module '@x-spacy/message-builder' {
export enum MessageType {
TEXT = 'text',
IMAGE = 'image',
Expand Down
4 changes: 2 additions & 2 deletions @types/footer.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module '@vyrnnstudios/messages' {
import { Footer } from '@vyrnnstudios/messages';
declare module '@x-spacy/message-builder' {
import { Footer } from '@x-spacy/message-builder';

export class FooterBuilder {
public static newBuilder(): FooterBuilder
Expand Down
4 changes: 2 additions & 2 deletions @types/header.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
declare module '@vyrnnstudios/messages' {
declare module '@x-spacy/message-builder' {
import {
Header,
HeaderImage,
HeaderVideo,
HeaderDocument,
HeaderType
} from '@vyrnnstudios/messages';
} from '@x-spacy/message-builder';

export class HeaderBuilder {
public static newBuilder(): HeaderBuilder
Expand Down
4 changes: 2 additions & 2 deletions @types/interactive.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module '@vyrnnstudios/messages' {
declare module '@x-spacy/message-builder' {
import {
Interactive,
Header,
Expand All @@ -23,7 +23,7 @@ declare module '@vyrnnstudios/messages' {
BodyBuilder,
FooterBuilder,
InteractiveType
} from '@vyrnnstudios/messages';
} from '@x-spacy/message-builder';

export class InteractiveBuilder {
public static newBuilder(): InteractiveBuilder
Expand Down
4 changes: 2 additions & 2 deletions @types/location.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module '@vyrnnstudios/messages' {
import { Location } from '@vyrnnstudios/messages';
declare module '@x-spacy/message-builder' {
import { Location } from '@x-spacy/message-builder';

export class LocationBuilder {
public static newBuilder(): LocationBuilder
Expand Down
4 changes: 2 additions & 2 deletions @types/media.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module '@vyrnnstudios/messages' {
import { Media } from '@vyrnnstudios/messages';
declare module '@x-spacy/message-builder' {
import { Media } from '@x-spacy/message-builder';

export class MediaBuilder {
public static newBuilder(): MediaBuilder
Expand Down
4 changes: 2 additions & 2 deletions @types/message.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module '@vyrnnstudios/messages' {
declare module '@x-spacy/message-builder' {
import {
Message,
Text,
Expand All @@ -17,7 +17,7 @@ declare module '@vyrnnstudios/messages' {
MessageType,
MessagingProduct,
RecipientType
} from '@vyrnnstudios/messages';
} from '@x-spacy/message-builder';

export class MessageBuilder {
public static newBuilder(): MessageBuilder
Expand Down
4 changes: 2 additions & 2 deletions @types/template.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module '@vyrnnstudios/messages' {
declare module '@x-spacy/message-builder' {
import {
Template,
TemplateComponent,
Expand All @@ -8,7 +8,7 @@ declare module '@vyrnnstudios/messages' {
Media,
TemplateComponentParameterType,
TemplateIndex
} from '@vyrnnstudios/messages';
} from '@x-spacy/message-builder';

export class TemplateBuilder {
public static newBuilder(): TemplateBuilder
Expand Down
2 changes: 1 addition & 1 deletion @types/text.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module '@vyrnnstudios/messages' {
declare module '@x-spacy/message-builder' {
export class TextBuilder {
public static newBuilder(): TextBuilder

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(The MIT License)

Copyright (c) 2023 Vyrnn Studios <https://vyrnn.net>
Copyright (c) 2024 X-Spacy <https://x-spacy.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ A fully typed message builder created using TypeScript. A better way to creating
## Installation

```bash
npm install @vyrnnstudios/messages
npm install @x-spacy/message-builder
```

## Usage

```typescript
import { MessageBuilder, MessageType } from '@vyrnnstudios/messages';
import { MessageBuilder, MessageType } from '@x-spacy/message-builder';

const message = MessageBuilder.newBuilder()
.to('000000000000')
Expand All @@ -26,4 +26,4 @@ const message = MessageBuilder.newBuilder()

## License

Vyrnn Studios is [MIT Licensed](LICENSE).
X-Spacy LTDA is [MIT Licensed](LICENSE).
10 changes: 10 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"presets": [
"@babel/preset-typescript",
["@babel/preset-env", {
"targets": {
"node": 20
}
}]
]
}
3 changes: 3 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import config from '@x-spacy/eslint-config';

export default config;
26 changes: 0 additions & 26 deletions jest.config.ts

This file was deleted.

45 changes: 24 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@vyrnnstudios/messages",
"version": "1.2.3",
"description": "A WhatsApp message builder made for Vyrnn Studios.",
"name": "@x-spacy/message-builder",
"version": "0.0.0",
"description": "A WhatsApp message builder made for X Spacy LTDA.",
"license": "MIT",
"private": false,
"keywords": [
Expand All @@ -18,15 +18,16 @@
"wa-message-builder"
],
"types": "@types/index.d.ts",
"type": "commonjs",
"main": "dist/index.js",
"author": {
"name": "Vyrnn Studios",
"email": "viniciusgutierrez@vyrnn.net",
"url": "https://vyrnn.net"
"name": "Vinícius Gutierrez da Silva Rocha",
"email": "srgutyerrez@gmail.com",
"url": "https://github.com/gutyerrez"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vyrnnstudios/messages.git"
"url": "git+https://github.com/x-spacy/messages.git"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
Expand All @@ -37,24 +38,26 @@
"node": "v20.x.x"
},
"scripts": {
"prepublish": "pnpm run build",
"start:development": "ts-node-dev -r tsconfig-paths/register --watch node_modules,.env --clear --respawn --transpile-only src/index.ts",
"build": "sh scripts/build.sh"
},
"dependencies": {
"@somosprte/exceptions": "^1.0.0"
"@x-spacy/exceptions": "^1.4.0"
},
"devDependencies": {
"@somosprte/eslint-config": "^1.8.0",
"@types/jest": "^29.5.2",
"jest": "^29.5.0",
"ts-jest": "^29.1.0",
"ts-node-dev": "^2.0.0",
"tsconfig-paths": "^4.2.0",
"tsconfig-replace-paths": "^0.0.14",
"typescript": "^5.1.3"
},
"eslintConfig": {
"extends": "@somosprte/eslint-config"
"@babel/cli": "^7.25.6",
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.4",
"@babel/preset-typescript": "^7.24.7",
"@x-spacy/eslint-config": "^1.26.2",
"eslint": "^9.11.1",
"typescript": "^5.6.2"
},
"peerDependencies": {
"typescript": "^5.4.5"
},
"peerDependenciesMeta": {
"typescript": {
"optional": false
}
}
}
Loading

0 comments on commit 677cc13

Please sign in to comment.