nevus-nodejs-sdk 0.1.0-alpha.1 → 0.1.0-alpha.2

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/dist/index.cjs CHANGED
@@ -26517,7 +26517,7 @@ var TicketsResource = class {
26517
26517
  findMany() {
26518
26518
  return this.http.get("/tickets");
26519
26519
  }
26520
- findById(id) {
26520
+ findUnique(id) {
26521
26521
  return this.http.get(`/tickets/${id}`);
26522
26522
  }
26523
26523
  create(data) {
@@ -26539,7 +26539,7 @@ var CustomersResource = class {
26539
26539
  findMany() {
26540
26540
  return this.http.get("/customers");
26541
26541
  }
26542
- findById(id) {
26542
+ findUnique(id) {
26543
26543
  return this.http.get(`/customers/${id}`);
26544
26544
  }
26545
26545
  create(data) {
@@ -26561,7 +26561,7 @@ var ChatsResource = class {
26561
26561
  findMany() {
26562
26562
  return this.http.get("/chats");
26563
26563
  }
26564
- findById(id) {
26564
+ findUnique(id) {
26565
26565
  return this.http.get(`/chats/${id}`);
26566
26566
  }
26567
26567
  create(data) {
@@ -26583,7 +26583,7 @@ var MessagesResource = class {
26583
26583
  findMany() {
26584
26584
  return this.http.get("/messages");
26585
26585
  }
26586
- findById(id) {
26586
+ findUnique(id) {
26587
26587
  return this.http.get(`/messages/${id}`);
26588
26588
  }
26589
26589
  create(data) {
package/dist/index.d.cts CHANGED
@@ -58,7 +58,7 @@ declare class MessagesResource {
58
58
  private readonly http;
59
59
  constructor(http: Http);
60
60
  findMany(): Promise<Message[]>;
61
- findById(id: string): Promise<Message>;
61
+ findUnique(id: string): Promise<Message>;
62
62
  create(data: Partial<Message>): Promise<Message>;
63
63
  update(id: string, data: Partial<Message>): Promise<Message>;
64
64
  delete(id: string): Promise<void>;
@@ -72,7 +72,7 @@ declare class ChatsResource {
72
72
  private readonly http;
73
73
  constructor(http: Http);
74
74
  findMany(): Promise<Chat[]>;
75
- findById(id: string): Promise<Chat>;
75
+ findUnique(id: string): Promise<Chat>;
76
76
  create(data: Partial<Chat>): Promise<Chat>;
77
77
  update(id: string, data: Partial<Chat>): Promise<Chat>;
78
78
  delete(id: string): Promise<void>;
@@ -86,7 +86,7 @@ declare class CustomersResource {
86
86
  private readonly http;
87
87
  constructor(http: Http);
88
88
  findMany(): Promise<Customer[]>;
89
- findById(id: string): Promise<Customer>;
89
+ findUnique(id: string): Promise<Customer>;
90
90
  create(data: Partial<Customer>): Promise<Customer>;
91
91
  update(id: string, data: Partial<Customer>): Promise<Customer>;
92
92
  delete(id: string): Promise<void>;
@@ -100,7 +100,7 @@ declare class TicketsResource {
100
100
  private readonly http;
101
101
  constructor(http: Http);
102
102
  findMany(): Promise<Ticket[]>;
103
- findById(id: string): Promise<Ticket>;
103
+ findUnique(id: string): Promise<Ticket>;
104
104
  create(data: Partial<Ticket>): Promise<Ticket>;
105
105
  update(id: string, data: Partial<Ticket>): Promise<Ticket>;
106
106
  delete(id: string): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -58,7 +58,7 @@ declare class MessagesResource {
58
58
  private readonly http;
59
59
  constructor(http: Http);
60
60
  findMany(): Promise<Message[]>;
61
- findById(id: string): Promise<Message>;
61
+ findUnique(id: string): Promise<Message>;
62
62
  create(data: Partial<Message>): Promise<Message>;
63
63
  update(id: string, data: Partial<Message>): Promise<Message>;
64
64
  delete(id: string): Promise<void>;
@@ -72,7 +72,7 @@ declare class ChatsResource {
72
72
  private readonly http;
73
73
  constructor(http: Http);
74
74
  findMany(): Promise<Chat[]>;
75
- findById(id: string): Promise<Chat>;
75
+ findUnique(id: string): Promise<Chat>;
76
76
  create(data: Partial<Chat>): Promise<Chat>;
77
77
  update(id: string, data: Partial<Chat>): Promise<Chat>;
78
78
  delete(id: string): Promise<void>;
@@ -86,7 +86,7 @@ declare class CustomersResource {
86
86
  private readonly http;
87
87
  constructor(http: Http);
88
88
  findMany(): Promise<Customer[]>;
89
- findById(id: string): Promise<Customer>;
89
+ findUnique(id: string): Promise<Customer>;
90
90
  create(data: Partial<Customer>): Promise<Customer>;
91
91
  update(id: string, data: Partial<Customer>): Promise<Customer>;
92
92
  delete(id: string): Promise<void>;
@@ -100,7 +100,7 @@ declare class TicketsResource {
100
100
  private readonly http;
101
101
  constructor(http: Http);
102
102
  findMany(): Promise<Ticket[]>;
103
- findById(id: string): Promise<Ticket>;
103
+ findUnique(id: string): Promise<Ticket>;
104
104
  create(data: Partial<Ticket>): Promise<Ticket>;
105
105
  update(id: string, data: Partial<Ticket>): Promise<Ticket>;
106
106
  delete(id: string): Promise<void>;
package/dist/index.js CHANGED
@@ -26515,7 +26515,7 @@ var TicketsResource = class {
26515
26515
  findMany() {
26516
26516
  return this.http.get("/tickets");
26517
26517
  }
26518
- findById(id) {
26518
+ findUnique(id) {
26519
26519
  return this.http.get(`/tickets/${id}`);
26520
26520
  }
26521
26521
  create(data) {
@@ -26537,7 +26537,7 @@ var CustomersResource = class {
26537
26537
  findMany() {
26538
26538
  return this.http.get("/customers");
26539
26539
  }
26540
- findById(id) {
26540
+ findUnique(id) {
26541
26541
  return this.http.get(`/customers/${id}`);
26542
26542
  }
26543
26543
  create(data) {
@@ -26559,7 +26559,7 @@ var ChatsResource = class {
26559
26559
  findMany() {
26560
26560
  return this.http.get("/chats");
26561
26561
  }
26562
- findById(id) {
26562
+ findUnique(id) {
26563
26563
  return this.http.get(`/chats/${id}`);
26564
26564
  }
26565
26565
  create(data) {
@@ -26581,7 +26581,7 @@ var MessagesResource = class {
26581
26581
  findMany() {
26582
26582
  return this.http.get("/messages");
26583
26583
  }
26584
- findById(id) {
26584
+ findUnique(id) {
26585
26585
  return this.http.get(`/messages/${id}`);
26586
26586
  }
26587
26587
  create(data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nevus-nodejs-sdk",
3
- "version": "0.1.0-alpha.1",
3
+ "version": "0.1.0-alpha.2",
4
4
  "description": "Official Nevus Node.js SDK (REST, realtime events, webhooks).",
5
5
  "author": "Nevus",
6
6
  "license": "MIT",
@@ -10,17 +10,15 @@
10
10
  "types": "./dist/index.d.ts",
11
11
  "exports": {
12
12
  ".": {
13
+ "types": "./dist/index.d.ts",
13
14
  "import": "./dist/index.js",
14
- "require": "./dist/index.cjs"
15
+ "require": "./dist/index.cjs",
16
+ "default": "./dist/index.js"
15
17
  }
16
18
  },
17
19
  "files": [
18
20
  "dist"
19
21
  ],
20
- "scripts": {
21
- "build": "tsup src/index.ts --dts --format esm,cjs",
22
- "prepublishOnly": "npm run build"
23
- },
24
22
  "repository": {
25
23
  "type": "git",
26
24
  "url": "git+https://github.com/m3l0-d3v/nevus-nodejs-sdk.git"
@@ -32,5 +30,8 @@
32
30
  "nodejs",
33
31
  "webhooks",
34
32
  "mqtt"
35
- ]
33
+ ],
34
+ "scripts": {
35
+ "build": "tsup src/index.ts --dts --format esm,cjs"
36
+ }
36
37
  }