@tec.pet/tecpet-sdk 0.0.30 → 0.0.32
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/changelog.md +2 -2
- package/dist/domain/pet/dto/pa.create-pet.dto.d.ts +1 -1
- package/dist/domain/pet/dto/pa.edit-pet.dto.d.ts +1 -1
- package/dist/domain/pet/dto/pa.get-pet.dto.d.ts +2 -1
- package/package.json +1 -1
- package/src/domain/pet/dto/pa.create-pet.dto.ts +2 -2
- package/src/domain/pet/dto/pa.edit-pet.dto.ts +3 -3
- package/src/domain/pet/dto/pa.get-pet.dto.ts +4 -3
- package/scripts/dev-link.sh +0 -45
package/changelog.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
🚀 Alterações desde v0.0.
|
|
2
|
-
-
|
|
1
|
+
🚀 Alterações desde v0.0.31:
|
|
2
|
+
- feat: Adjust on dtos of pet (253f3c1)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { BillingItemType } from "../../billingMethod/enum/billing-method-type.enum";
|
|
1
2
|
import { SpecieType } from "../../specie/enum/specie-type.enum";
|
|
2
3
|
import { GenderType } from "./pa.get-pet.dto";
|
|
3
|
-
import { BillingItemType } from "../../billingMethod/enum/billing-method-type.enum";
|
|
4
4
|
export declare class PaEditPetInput {
|
|
5
5
|
name?: string;
|
|
6
6
|
specieId?: string;
|
|
@@ -5,7 +5,7 @@ export declare enum GenderType {
|
|
|
5
5
|
FEMALE = "FEMALE"
|
|
6
6
|
}
|
|
7
7
|
export interface PaPetResponse {
|
|
8
|
-
id: number;
|
|
8
|
+
id: number | string;
|
|
9
9
|
name: string;
|
|
10
10
|
specieId: string;
|
|
11
11
|
specieType: SpecieTypeEnum;
|
|
@@ -14,6 +14,7 @@ export interface PaPetResponse {
|
|
|
14
14
|
breedId: number;
|
|
15
15
|
breedName: string;
|
|
16
16
|
genre: GenderType;
|
|
17
|
+
weigth: number;
|
|
17
18
|
hair: BillingItemType;
|
|
18
19
|
size: BillingItemType;
|
|
19
20
|
birthDate: string;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { BillingItemType } from "../../billingMethod/enum/billing-method-type.enum";
|
|
2
|
+
import { GenderType } from "./pa.get-pet.dto";
|
|
3
3
|
|
|
4
4
|
export interface PaCreatePetInput {
|
|
5
5
|
clientId: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { BillingItemType } from "../../billingMethod/enum/billing-method-type.enum";
|
|
2
|
+
import { SpecieType } from "../../specie/enum/specie-type.enum";
|
|
3
|
+
import { GenderType } from "./pa.get-pet.dto";
|
|
4
4
|
|
|
5
5
|
export class PaEditPetInput {
|
|
6
6
|
name?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {BillingItemType} from "../../billingMethod";
|
|
2
|
-
import {SpecieType, SpecieTypeEnum} from "../../specie/enum/specie-type.enum";
|
|
1
|
+
import { BillingItemType } from "../../billingMethod";
|
|
2
|
+
import { SpecieType, SpecieTypeEnum } from "../../specie/enum/specie-type.enum";
|
|
3
3
|
|
|
4
4
|
export enum GenderType {
|
|
5
5
|
MALE = 'MALE',
|
|
@@ -7,7 +7,7 @@ export enum GenderType {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export interface PaPetResponse {
|
|
10
|
-
id: number;
|
|
10
|
+
id: number | string;
|
|
11
11
|
name: string;
|
|
12
12
|
specieId: string;
|
|
13
13
|
specieType: SpecieTypeEnum;
|
|
@@ -16,6 +16,7 @@ export interface PaPetResponse {
|
|
|
16
16
|
breedId: number;
|
|
17
17
|
breedName: string;
|
|
18
18
|
genre: GenderType;
|
|
19
|
+
weigth: number;
|
|
19
20
|
hair: BillingItemType;
|
|
20
21
|
size: BillingItemType;
|
|
21
22
|
birthDate: string;
|
package/scripts/dev-link.sh
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
## Caminho absoluto do SDK original
|
|
4
|
-
#SDK_SOURCE_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
|
5
|
-
#SDK_BUILD_DIR="$SDK_SOURCE_DIR/dist"
|
|
6
|
-
#TEMP_SDK_DIR="$SDK_SOURCE_DIR/../temp-tecpet-sdk"
|
|
7
|
-
#
|
|
8
|
-
## 1. Builda o SDK
|
|
9
|
-
#echo "🏗️ Buildando o SDK..."
|
|
10
|
-
#npm run build
|
|
11
|
-
#
|
|
12
|
-
## 2. Prepara o diretório temporário contendo apenas o build e o package.json
|
|
13
|
-
#echo "🧼 Preparando pacote isolado para link..."
|
|
14
|
-
#rm -rf "$TEMP_SDK_DIR"
|
|
15
|
-
#mkdir "$TEMP_SDK_DIR"
|
|
16
|
-
#cp -r "$SDK_BUILD_DIR" "$TEMP_SDK_DIR/dist"
|
|
17
|
-
#cp "$SDK_SOURCE_DIR/package.json" "$TEMP_SDK_DIR/package.json"
|
|
18
|
-
#
|
|
19
|
-
## 3. Ajusta o package.json para apontar corretamente pro build
|
|
20
|
-
#sed -i '' 's|"main":.*|"main": "dist/index.js",|' "$TEMP_SDK_DIR/package.json"
|
|
21
|
-
#sed -i '' 's|"types":.*|"types": "dist/index.d.ts",|' "$TEMP_SDK_DIR/package.json"
|
|
22
|
-
#
|
|
23
|
-
## 4. Cria o link global a partir do build isolado
|
|
24
|
-
#echo "🔗 Criando link a partir do dist isolado..."
|
|
25
|
-
#cd "$TEMP_SDK_DIR" || exit 1
|
|
26
|
-
#npm link
|
|
27
|
-
|
|
28
|
-
# 5. Linka nos projetos consumidores
|
|
29
|
-
projects=(
|
|
30
|
-
"/Users/pablo/workspace/tecpet/communication-gateway"
|
|
31
|
-
"/Users/pablo/workspace/tecpet/botflow"
|
|
32
|
-
)
|
|
33
|
-
|
|
34
|
-
for project in "${projects[@]}"; do
|
|
35
|
-
if [ -d "$project" ]; then
|
|
36
|
-
echo "🔁 Linkando SDK em $project"
|
|
37
|
-
cd "$project" || continue
|
|
38
|
-
npm link tecpet-sdk
|
|
39
|
-
cd - > /dev/null
|
|
40
|
-
else
|
|
41
|
-
echo "⚠️ Projeto não encontrado: $project"
|
|
42
|
-
fi
|
|
43
|
-
done
|
|
44
|
-
|
|
45
|
-
echo "✅ Link concluído com sucesso."
|